summaryrefslogtreecommitdiffstats
path: root/sw/source/ui
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:15:01 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:15:01 +0000
commit7b0b5cdfeed656b279bc32cd929630d5fc25878b (patch)
tree5b89fb8497d7329d26c43f109bb014c54ffb0e8c /sw/source/ui
parentinitial import (diff)
downloadcore-7b0b5cdfeed656b279bc32cd929630d5fc25878b.tar.gz
core-7b0b5cdfeed656b279bc32cd929630d5fc25878b.zip
initial import
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/app/app.src2966
-rw-r--r--sw/source/ui/app/appenv.cxx739
-rw-r--r--sw/source/ui/app/apphdl.cxx1389
-rw-r--r--sw/source/ui/app/applab.cxx759
-rw-r--r--sw/source/ui/app/appopt.cxx776
-rw-r--r--sw/source/ui/app/docsh.cxx1690
-rw-r--r--sw/source/ui/app/docsh2.cxx1981
-rw-r--r--sw/source/ui/app/docshdrw.cxx194
-rw-r--r--sw/source/ui/app/docshini.cxx897
-rw-r--r--sw/source/ui/app/docst.cxx1450
-rw-r--r--sw/source/ui/app/docstyle.cxx2782
-rw-r--r--sw/source/ui/app/error.src1265
-rw-r--r--sw/source/ui/app/mainwn.cxx343
-rw-r--r--sw/source/ui/app/makefile.mk179
-rw-r--r--sw/source/ui/app/mn.src599
-rw-r--r--sw/source/ui/app/swdll.cxx207
-rw-r--r--sw/source/ui/app/swmodul1.cxx1092
-rw-r--r--sw/source/ui/app/swmodule.cxx664
-rw-r--r--sw/source/ui/app/swwait.cxx118
-rw-r--r--sw/source/ui/cctrl/actctrl.cxx231
-rw-r--r--sw/source/ui/cctrl/makefile.mk97
-rw-r--r--sw/source/ui/cctrl/popbox.cxx182
-rw-r--r--sw/source/ui/cctrl/swlbox.cxx622
-rw-r--r--sw/source/ui/chrdlg/break.cxx408
-rw-r--r--sw/source/ui/chrdlg/break.hrc75
-rw-r--r--sw/source/ui/chrdlg/ccoll.cxx593
-rw-r--r--sw/source/ui/chrdlg/ccoll.hrc84
-rw-r--r--sw/source/ui/chrdlg/ccoll.src949
-rw-r--r--sw/source/ui/chrdlg/chardlg.cxx520
-rw-r--r--sw/source/ui/chrdlg/chardlg.hrc120
-rw-r--r--sw/source/ui/chrdlg/chardlg.src615
-rw-r--r--sw/source/ui/chrdlg/chrdlg.src169
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx744
-rw-r--r--sw/source/ui/chrdlg/drpcps.hrc86
-rw-r--r--sw/source/ui/chrdlg/drpcps.src493
-rw-r--r--sw/source/ui/chrdlg/makefile.mk112
-rw-r--r--sw/source/ui/chrdlg/numpara.cxx366
-rw-r--r--sw/source/ui/chrdlg/numpara.hrc85
-rw-r--r--sw/source/ui/chrdlg/numpara.src417
-rw-r--r--sw/source/ui/chrdlg/paradlg.hrc105
-rw-r--r--sw/source/ui/chrdlg/paradlg.src446
-rw-r--r--sw/source/ui/chrdlg/pardlg.cxx505
-rw-r--r--sw/source/ui/chrdlg/swbreak.src412
-rw-r--r--sw/source/ui/chrdlg/tblnumfm.cxx127
-rw-r--r--sw/source/ui/config/barcfg.cxx183
-rw-r--r--sw/source/ui/config/caption.cxx238
-rw-r--r--sw/source/ui/config/cfgitems.cxx855
-rw-r--r--sw/source/ui/config/config.hrc98
-rw-r--r--sw/source/ui/config/fontcfg.cxx240
-rw-r--r--sw/source/ui/config/makefile.mk122
-rw-r--r--sw/source/ui/config/modcfg.cxx573
-rw-r--r--sw/source/ui/config/optdlg.hrc263
-rw-r--r--sw/source/ui/config/optdlg.src3186
-rw-r--r--sw/source/ui/config/optload.cxx311
-rw-r--r--sw/source/ui/config/optload.hrc75
-rw-r--r--sw/source/ui/config/optload.src413
-rw-r--r--sw/source/ui/config/optpage.cxx2695
-rw-r--r--sw/source/ui/config/prtopt.cxx228
-rw-r--r--sw/source/ui/config/redlopt.hrc83
-rw-r--r--sw/source/ui/config/redlopt.src1422
-rw-r--r--sw/source/ui/config/uinums.cxx795
-rw-r--r--sw/source/ui/config/usrpref.cxx818
-rw-r--r--sw/source/ui/config/viewopt.cxx754
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx2470
-rw-r--r--sw/source/ui/dbui/dbinsdlg.hrc107
-rw-r--r--sw/source/ui/dbui/dbinsdlg.src666
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx2589
-rw-r--r--sw/source/ui/dbui/dbtree.cxx833
-rw-r--r--sw/source/ui/dbui/dbui.cxx216
-rw-r--r--sw/source/ui/dbui/dbui.src322
-rw-r--r--sw/source/ui/dbui/makefile.mk107
-rw-r--r--sw/source/ui/dialog/abstract.cxx144
-rw-r--r--sw/source/ui/dialog/abstract.hrc70
-rw-r--r--sw/source/ui/dialog/abstract.src258
-rw-r--r--sw/source/ui/dialog/addrdlg.cxx175
-rw-r--r--sw/source/ui/dialog/ascfldlg.cxx682
-rw-r--r--sw/source/ui/dialog/ascfldlg.hrc80
-rw-r--r--sw/source/ui/dialog/ascfldlg.src563
-rw-r--r--sw/source/ui/dialog/dialog.src201
-rw-r--r--sw/source/ui/dialog/docstdlg.cxx427
-rw-r--r--sw/source/ui/dialog/docstdlg.hrc83
-rw-r--r--sw/source/ui/dialog/docstdlg.src411
-rw-r--r--sw/source/ui/dialog/macassgn.cxx293
-rw-r--r--sw/source/ui/dialog/makefile.mk114
-rw-r--r--sw/source/ui/dialog/regionsw.cxx2365
-rw-r--r--sw/source/ui/dialog/regionsw.hrc144
-rw-r--r--sw/source/ui/dialog/regionsw.src1697
-rw-r--r--sw/source/ui/dochdl/dochdl.src431
-rw-r--r--sw/source/ui/dochdl/gloshdl.cxx1099
-rw-r--r--sw/source/ui/dochdl/makefile.mk99
-rw-r--r--sw/source/ui/dochdl/selglos.cxx170
-rw-r--r--sw/source/ui/dochdl/selglos.hrc65
-rw-r--r--sw/source/ui/dochdl/selglos.src155
-rw-r--r--sw/source/ui/docvw/docvw.hrc120
-rw-r--r--sw/source/ui/docvw/docvw.src1216
-rw-r--r--sw/source/ui/docvw/edtdd.cxx787
-rw-r--r--sw/source/ui/docvw/edtwin.cxx4222
-rw-r--r--sw/source/ui/docvw/edtwin2.cxx694
-rw-r--r--sw/source/ui/docvw/edtwin3.cxx346
-rw-r--r--sw/source/ui/docvw/makefile.mk104
-rw-r--r--sw/source/ui/docvw/romenu.cxx820
-rw-r--r--sw/source/ui/docvw/romenu.hxx111
-rw-r--r--sw/source/ui/docvw/srcedtw.cxx1016
-rw-r--r--sw/source/ui/envelp/envelp.src202
-rw-r--r--sw/source/ui/envelp/envfmt.cxx803
-rw-r--r--sw/source/ui/envelp/envfmt.hrc111
-rw-r--r--sw/source/ui/envelp/envfmt.hxx140
-rw-r--r--sw/source/ui/envelp/envfmt.src632
-rw-r--r--sw/source/ui/envelp/envimg.cxx496
-rw-r--r--sw/source/ui/envelp/envlop.hrc99
-rw-r--r--sw/source/ui/envelp/envlop.src473
-rw-r--r--sw/source/ui/envelp/envlop1.cxx617
-rw-r--r--sw/source/ui/envelp/envprt.cxx428
-rw-r--r--sw/source/ui/envelp/envprt.hrc114
-rw-r--r--sw/source/ui/envelp/envprt.hxx134
-rw-r--r--sw/source/ui/envelp/envprt.src372
-rw-r--r--sw/source/ui/envelp/label.hrc158
-rw-r--r--sw/source/ui/envelp/label.src1606
-rw-r--r--sw/source/ui/envelp/label1.cxx1846
-rw-r--r--sw/source/ui/envelp/labfmt.cxx754
-rw-r--r--sw/source/ui/envelp/labfmt.hrc112
-rw-r--r--sw/source/ui/envelp/labfmt.hxx166
-rw-r--r--sw/source/ui/envelp/labfmt.src626
-rw-r--r--sw/source/ui/envelp/labimg.cxx594
-rw-r--r--sw/source/ui/envelp/labimp.hxx456
-rw-r--r--sw/source/ui/envelp/labprt.cxx381
-rw-r--r--sw/source/ui/envelp/labprt.hrc93
-rw-r--r--sw/source/ui/envelp/labprt.hxx124
-rw-r--r--sw/source/ui/envelp/labprt.src317
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx686
-rw-r--r--sw/source/ui/envelp/mailmrge.hrc108
-rw-r--r--sw/source/ui/envelp/mailmrge.src785
-rw-r--r--sw/source/ui/envelp/makefile.mk122
-rw-r--r--sw/source/ui/envelp/syncbtn.cxx171
-rw-r--r--sw/source/ui/fldui/changedb.cxx663
-rw-r--r--sw/source/ui/fldui/changedb.hrc93
-rw-r--r--sw/source/ui/fldui/changedb.src413
-rw-r--r--sw/source/ui/fldui/flddb.cxx756
-rw-r--r--sw/source/ui/fldui/flddb.hxx137
-rw-r--r--sw/source/ui/fldui/flddb.src337
-rw-r--r--sw/source/ui/fldui/flddinf.cxx571
-rw-r--r--sw/source/ui/fldui/flddinf.hxx132
-rw-r--r--sw/source/ui/fldui/flddinf.src398
-rw-r--r--sw/source/ui/fldui/flddok.cxx872
-rw-r--r--sw/source/ui/fldui/flddok.hxx141
-rw-r--r--sw/source/ui/fldui/flddok.src367
-rw-r--r--sw/source/ui/fldui/fldedt.cxx505
-rw-r--r--sw/source/ui/fldui/fldfunc.cxx779
-rw-r--r--sw/source/ui/fldui/fldfunc.hxx141
-rw-r--r--sw/source/ui/fldui/fldfunc.src380
-rw-r--r--sw/source/ui/fldui/fldmgr.cxx2450
-rw-r--r--sw/source/ui/fldui/fldpage.cxx544
-rw-r--r--sw/source/ui/fldui/fldpage.hxx134
-rw-r--r--sw/source/ui/fldui/fldref.cxx908
-rw-r--r--sw/source/ui/fldui/fldref.hxx130
-rw-r--r--sw/source/ui/fldui/fldref.src352
-rw-r--r--sw/source/ui/fldui/fldtdlg.cxx567
-rw-r--r--sw/source/ui/fldui/fldtdlg.hrc189
-rw-r--r--sw/source/ui/fldui/fldtdlg.src306
-rw-r--r--sw/source/ui/fldui/fldui.src3383
-rw-r--r--sw/source/ui/fldui/fldvar.cxx1562
-rw-r--r--sw/source/ui/fldui/fldvar.hxx172
-rw-r--r--sw/source/ui/fldui/fldvar.src560
-rw-r--r--sw/source/ui/fldui/inpdlg.cxx320
-rw-r--r--sw/source/ui/fldui/inpdlg.hrc68
-rw-r--r--sw/source/ui/fldui/inpdlg.src228
-rw-r--r--sw/source/ui/fldui/javaedit.cxx417
-rw-r--r--sw/source/ui/fldui/javaedit.hrc85
-rw-r--r--sw/source/ui/fldui/javaedit.src319
-rw-r--r--sw/source/ui/fldui/makefile.mk131
-rw-r--r--sw/source/ui/fmtui/fmtui.src140
-rw-r--r--sw/source/ui/fmtui/makefile.mk94
-rw-r--r--sw/source/ui/fmtui/tmpdlg.cxx628
-rw-r--r--sw/source/ui/fmtui/tmpdlg.src1283
-rw-r--r--sw/source/ui/frmdlg/colex.cxx514
-rw-r--r--sw/source/ui/frmdlg/colmgr.cxx289
-rw-r--r--sw/source/ui/frmdlg/column.cxx1561
-rw-r--r--sw/source/ui/frmdlg/column.hrc117
-rw-r--r--sw/source/ui/frmdlg/column.src1145
-rw-r--r--sw/source/ui/frmdlg/cption.cxx715
-rw-r--r--sw/source/ui/frmdlg/cption.hrc95
-rw-r--r--sw/source/ui/frmdlg/cption.src722
-rw-r--r--sw/source/ui/frmdlg/frmdlg.cxx332
-rw-r--r--sw/source/ui/frmdlg/frmmgr.cxx832
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx2837
-rw-r--r--sw/source/ui/frmdlg/frmpage.hrc137
-rw-r--r--sw/source/ui/frmdlg/frmpage.src2707
-rw-r--r--sw/source/ui/frmdlg/frmui.src1388
-rw-r--r--sw/source/ui/frmdlg/makefile.mk125
-rw-r--r--sw/source/ui/frmdlg/pattern.cxx167
-rw-r--r--sw/source/ui/frmdlg/pattern.hrc80
-rw-r--r--sw/source/ui/frmdlg/uiborder.cxx164
-rw-r--r--sw/source/ui/frmdlg/wrap.cxx974
-rw-r--r--sw/source/ui/frmdlg/wrap.hrc98
-rw-r--r--sw/source/ui/frmdlg/wrap.src597
-rw-r--r--sw/source/ui/globdoc/globdoc.cxx181
-rw-r--r--sw/source/ui/globdoc/globdoc.src96
-rw-r--r--sw/source/ui/globdoc/makefile.mk94
-rw-r--r--sw/source/ui/inc/abstract.hxx113
-rw-r--r--sw/source/ui/inc/actctrl.hxx123
-rw-r--r--sw/source/ui/inc/addrdlg.hxx80
-rw-r--r--sw/source/ui/inc/app.hrc204
-rw-r--r--sw/source/ui/inc/ascfldlg.hxx119
-rw-r--r--sw/source/ui/inc/autoedit.hxx84
-rw-r--r--sw/source/ui/inc/barcfg.hxx86
-rw-r--r--sw/source/ui/inc/basesh.hxx177
-rw-r--r--sw/source/ui/inc/beziersh.hxx78
-rw-r--r--sw/source/ui/inc/bmpwin.hxx104
-rw-r--r--sw/source/ui/inc/bookctrl.hxx95
-rw-r--r--sw/source/ui/inc/bookmark.hxx127
-rw-r--r--sw/source/ui/inc/break.hxx124
-rw-r--r--sw/source/ui/inc/caption.hxx146
-rw-r--r--sw/source/ui/inc/cfgdesc.hxx105
-rw-r--r--sw/source/ui/inc/cfgid.h180
-rw-r--r--sw/source/ui/inc/cfgitems.hxx300
-rw-r--r--sw/source/ui/inc/changedb.hxx135
-rw-r--r--sw/source/ui/inc/chartins.hxx160
-rw-r--r--sw/source/ui/inc/chldwrap.hxx94
-rw-r--r--sw/source/ui/inc/chrdlg.hxx157
-rw-r--r--sw/source/ui/inc/cnttab.hxx581
-rw-r--r--sw/source/ui/inc/colex.hxx119
-rw-r--r--sw/source/ui/inc/colmgr.hxx166
-rw-r--r--sw/source/ui/inc/column.hxx266
-rw-r--r--sw/source/ui/inc/conarc.hxx91
-rw-r--r--sw/source/ui/inc/condedit.hxx103
-rw-r--r--sw/source/ui/inc/conform.hxx80
-rw-r--r--sw/source/ui/inc/conpoly.hxx89
-rw-r--r--sw/source/ui/inc/conrect.hxx90
-rw-r--r--sw/source/ui/inc/content.hxx256
-rw-r--r--sw/source/ui/inc/conttree.hxx332
-rw-r--r--sw/source/ui/inc/convert.hxx120
-rw-r--r--sw/source/ui/inc/cption.hxx176
-rw-r--r--sw/source/ui/inc/dbinsdlg.hxx245
-rw-r--r--sw/source/ui/inc/dbtree.hxx121
-rw-r--r--sw/source/ui/inc/dbui.hxx114
-rw-r--r--sw/source/ui/inc/docfnote.hxx86
-rw-r--r--sw/source/ui/inc/docstdlg.hxx124
-rw-r--r--sw/source/ui/inc/drawbase.hxx117
-rw-r--r--sw/source/ui/inc/drawsh.hxx88
-rw-r--r--sw/source/ui/inc/drformsh.hxx83
-rw-r--r--sw/source/ui/inc/drpcps.hxx166
-rw-r--r--sw/source/ui/inc/drwbassh.hxx101
-rw-r--r--sw/source/ui/inc/drwtxtsh.hxx123
-rw-r--r--sw/source/ui/inc/dselect.hxx86
-rw-r--r--sw/source/ui/inc/edtwin.hxx304
-rw-r--r--sw/source/ui/inc/envimg.hxx138
-rw-r--r--sw/source/ui/inc/envlop.hxx181
-rw-r--r--sw/source/ui/inc/fldedt.hxx108
-rw-r--r--sw/source/ui/inc/fldmgr.hxx273
-rw-r--r--sw/source/ui/inc/fldwrap.hxx80
-rw-r--r--sw/source/ui/inc/fontcfg.hxx154
-rw-r--r--sw/source/ui/inc/formedt.hxx148
-rw-r--r--sw/source/ui/inc/frmdlg.hxx102
-rw-r--r--sw/source/ui/inc/frmmgr.hxx283
-rw-r--r--sw/source/ui/inc/frmpage.hxx337
-rw-r--r--sw/source/ui/inc/frmsh.hxx86
-rw-r--r--sw/source/ui/inc/frmui.hrc176
-rw-r--r--sw/source/ui/inc/globals.h83
-rw-r--r--sw/source/ui/inc/globdoc.hrc80
-rw-r--r--sw/source/ui/inc/glosbib.hxx163
-rw-r--r--sw/source/ui/inc/glosdoc.hxx132
-rw-r--r--sw/source/ui/inc/gloshdl.hxx150
-rw-r--r--sw/source/ui/inc/gloslst.hxx131
-rw-r--r--sw/source/ui/inc/glossary.hxx249
-rw-r--r--sw/source/ui/inc/glshell.hxx140
-rw-r--r--sw/source/ui/inc/grfsh.hxx79
-rw-r--r--sw/source/ui/inc/hidfunc.h383
-rw-r--r--sw/source/ui/inc/hyp.hxx105
-rw-r--r--sw/source/ui/inc/idxmrk.hxx345
-rw-r--r--sw/source/ui/inc/initui.hxx109
-rw-r--r--sw/source/ui/inc/inpdlg.hxx123
-rw-r--r--sw/source/ui/inc/inputwin.hxx165
-rw-r--r--sw/source/ui/inc/insfnote.hxx125
-rw-r--r--sw/source/ui/inc/insrc.hxx125
-rw-r--r--sw/source/ui/inc/insrule.hxx105
-rw-r--r--sw/source/ui/inc/instable.hxx127
-rw-r--r--sw/source/ui/inc/itemdef.hxx73
-rw-r--r--sw/source/ui/inc/javaedit.hxx144
-rw-r--r--sw/source/ui/inc/label.hxx136
-rw-r--r--sw/source/ui/inc/labimg.hxx176
-rw-r--r--sw/source/ui/inc/linenum.hxx158
-rw-r--r--sw/source/ui/inc/listsh.hxx78
-rw-r--r--sw/source/ui/inc/macassgn.hxx96
-rw-r--r--sw/source/ui/inc/mailmrge.hxx178
-rw-r--r--sw/source/ui/inc/makefile.mk61
-rw-r--r--sw/source/ui/inc/mergetbl.hxx94
-rw-r--r--sw/source/ui/inc/misc.hrc142
-rw-r--r--sw/source/ui/inc/multmrk.hxx119
-rw-r--r--sw/source/ui/inc/navicfg.hxx154
-rw-r--r--sw/source/ui/inc/navicont.hxx112
-rw-r--r--sw/source/ui/inc/navipi.hxx235
-rw-r--r--sw/source/ui/inc/num.hxx236
-rw-r--r--sw/source/ui/inc/numfmtlb.hxx116
-rw-r--r--sw/source/ui/inc/numpara.hxx134
-rw-r--r--sw/source/ui/inc/numprevw.hxx107
-rw-r--r--sw/source/ui/inc/olesh.hxx82
-rw-r--r--sw/source/ui/inc/olmenu.hxx102
-rw-r--r--sw/source/ui/inc/optload.hxx118
-rw-r--r--sw/source/ui/inc/optpage.hxx531
-rw-r--r--sw/source/ui/inc/outline.hxx209
-rw-r--r--sw/source/ui/inc/pardlg.hxx96
-rw-r--r--sw/source/ui/inc/pattern.hxx80
-rw-r--r--sw/source/ui/inc/pgfnote.hxx141
-rw-r--r--sw/source/ui/inc/popbox.hxx94
-rw-r--r--sw/source/ui/inc/popup.hrc84
-rw-r--r--sw/source/ui/inc/prcntfld.hxx106
-rw-r--r--sw/source/ui/inc/prtopt.hxx129
-rw-r--r--sw/source/ui/inc/pview.hxx283
-rw-r--r--sw/source/ui/inc/redlndlg.hxx131
-rw-r--r--sw/source/ui/inc/regionsw.hxx418
-rw-r--r--sw/source/ui/inc/ribbar.hrc168
-rw-r--r--sw/source/ui/inc/rowht.hxx103
-rw-r--r--sw/source/ui/inc/scroll.hxx105
-rw-r--r--sw/source/ui/inc/selglos.hxx113
-rw-r--r--sw/source/ui/inc/shdwcrsr.hxx105
-rw-r--r--sw/source/ui/inc/shells.hrc140
-rw-r--r--sw/source/ui/inc/split.hxx115
-rw-r--r--sw/source/ui/inc/splittbl.hxx100
-rw-r--r--sw/source/ui/inc/srcedtw.hxx198
-rw-r--r--sw/source/ui/inc/srcview.hxx165
-rw-r--r--sw/source/ui/inc/srtdlg.hxx142
-rw-r--r--sw/source/ui/inc/swcont.hxx149
-rw-r--r--sw/source/ui/inc/swlbox.hxx231
-rw-r--r--sw/source/ui/inc/swvset.hxx88
-rw-r--r--sw/source/ui/inc/syncbtn.hxx113
-rw-r--r--sw/source/ui/inc/table.hrc84
-rw-r--r--sw/source/ui/inc/tabledlg.hxx148
-rw-r--r--sw/source/ui/inc/tablemgr.hxx112
-rw-r--r--sw/source/ui/inc/tabsh.hxx83
-rw-r--r--sw/source/ui/inc/tautofmt.hxx162
-rw-r--r--sw/source/ui/inc/tblctrl.hxx93
-rw-r--r--sw/source/ui/inc/tblnumfm.hxx80
-rw-r--r--sw/source/ui/inc/tbxanchr.hxx84
-rw-r--r--sw/source/ui/inc/tbxmgr.hxx86
-rw-r--r--sw/source/ui/inc/textsh.hxx132
-rw-r--r--sw/source/ui/inc/tmpdlg.hxx104
-rw-r--r--sw/source/ui/inc/tmplctrl.hxx96
-rw-r--r--sw/source/ui/inc/toxmgr.hxx351
-rw-r--r--sw/source/ui/inc/uiborder.hxx85
-rw-r--r--sw/source/ui/inc/uiitems.hxx147
-rw-r--r--sw/source/ui/inc/uinums.hxx178
-rw-r--r--sw/source/ui/inc/uitool.hxx139
-rw-r--r--sw/source/ui/inc/uivwimp.hxx121
-rw-r--r--sw/source/ui/inc/unotools.hxx218
-rw-r--r--sw/source/ui/inc/unotxvw.hxx262
-rw-r--r--sw/source/ui/inc/usrpref.hxx86
-rw-r--r--sw/source/ui/inc/utlui.hrc198
-rw-r--r--sw/source/ui/inc/view.hxx655
-rw-r--r--sw/source/ui/inc/web.hrc117
-rw-r--r--sw/source/ui/inc/wformsh.hxx79
-rw-r--r--sw/source/ui/inc/wfrmsh.hxx82
-rw-r--r--sw/source/ui/inc/wgrfsh.hxx79
-rw-r--r--sw/source/ui/inc/wlistsh.hxx76
-rw-r--r--sw/source/ui/inc/wolesh.hxx82
-rw-r--r--sw/source/ui/inc/workctrl.hxx228
-rw-r--r--sw/source/ui/inc/wrap.hxx185
-rw-r--r--sw/source/ui/inc/wrtsh.hxx611
-rw-r--r--sw/source/ui/inc/wtabsh.hxx76
-rw-r--r--sw/source/ui/inc/wtextsh.hxx82
-rw-r--r--sw/source/ui/inc/wview.hxx85
-rw-r--r--sw/source/ui/inc/zoomctrl.hxx88
-rw-r--r--sw/source/ui/index/cnttab.cxx4853
-rw-r--r--sw/source/ui/index/cnttab.hrc308
-rw-r--r--sw/source/ui/index/cnttab.src4444
-rw-r--r--sw/source/ui/index/idxmrk.cxx1892
-rw-r--r--sw/source/ui/index/idxmrk.hrc105
-rw-r--r--sw/source/ui/index/idxmrk.src1236
-rw-r--r--sw/source/ui/index/makefile.mk105
-rw-r--r--sw/source/ui/index/multmrk.cxx224
-rw-r--r--sw/source/ui/index/multmrk.hrc68
-rw-r--r--sw/source/ui/index/multmrk.src217
-rw-r--r--sw/source/ui/index/toxmgr.cxx798
-rw-r--r--sw/source/ui/lingu/cvdata.mac19
-rw-r--r--sw/source/ui/lingu/hyp.cxx505
-rw-r--r--sw/source/ui/lingu/makefile.mk100
-rw-r--r--sw/source/ui/lingu/olmenu.cxx895
-rw-r--r--sw/source/ui/lingu/olmenu.hrc87
-rw-r--r--sw/source/ui/lingu/olmenu.src298
-rw-r--r--sw/source/ui/makefile.mk320
-rw-r--r--sw/source/ui/misc/autocorr.src63
-rw-r--r--sw/source/ui/misc/bookmark.cxx452
-rw-r--r--sw/source/ui/misc/bookmark.hrc68
-rw-r--r--sw/source/ui/misc/bookmark.src199
-rw-r--r--sw/source/ui/misc/docfnote.cxx719
-rw-r--r--sw/source/ui/misc/docfnote.hrc92
-rw-r--r--sw/source/ui/misc/docfnote.src1577
-rw-r--r--sw/source/ui/misc/glosbib.cxx723
-rw-r--r--sw/source/ui/misc/glosbib.hrc73
-rw-r--r--sw/source/ui/misc/glosbib.src280
-rw-r--r--sw/source/ui/misc/glosdoc.cxx1101
-rw-r--r--sw/source/ui/misc/glossary.cxx1433
-rw-r--r--sw/source/ui/misc/glossary.hrc126
-rw-r--r--sw/source/ui/misc/glossary.src1169
-rw-r--r--sw/source/ui/misc/glshell.cxx515
-rw-r--r--sw/source/ui/misc/impfnote.hxx155
-rw-r--r--sw/source/ui/misc/insfnote.cxx487
-rw-r--r--sw/source/ui/misc/insfnote.hrc75
-rw-r--r--sw/source/ui/misc/insfnote.src318
-rw-r--r--sw/source/ui/misc/insrule.cxx377
-rw-r--r--sw/source/ui/misc/insrule.hrc69
-rw-r--r--sw/source/ui/misc/insrule.src171
-rw-r--r--sw/source/ui/misc/linenum.cxx431
-rw-r--r--sw/source/ui/misc/linenum.hrc84
-rw-r--r--sw/source/ui/misc/linenum.src729
-rw-r--r--sw/source/ui/misc/makefile.mk141
-rw-r--r--sw/source/ui/misc/num.cxx1000
-rw-r--r--sw/source/ui/misc/num.hrc80
-rw-r--r--sw/source/ui/misc/num.src755
-rw-r--r--sw/source/ui/misc/outline.cxx1371
-rw-r--r--sw/source/ui/misc/outline.hrc133
-rw-r--r--sw/source/ui/misc/outline.src1506
-rw-r--r--sw/source/ui/misc/pgfnote.cxx478
-rw-r--r--sw/source/ui/misc/pgfnote.hrc80
-rw-r--r--sw/source/ui/misc/pgfnote.src590
-rw-r--r--sw/source/ui/misc/redlndlg.cxx1708
-rw-r--r--sw/source/ui/misc/redlndlg.hrc72
-rw-r--r--sw/source/ui/misc/redlndlg.src347
-rw-r--r--sw/source/ui/misc/srtdlg.cxx459
-rw-r--r--sw/source/ui/misc/srtdlg.hrc93
-rw-r--r--sw/source/ui/misc/srtdlg.src1193
-rw-r--r--sw/source/ui/mui110
-rw-r--r--sw/source/ui/ribbar/conarc.cxx257
-rw-r--r--sw/source/ui/ribbar/conform.cxx193
-rw-r--r--sw/source/ui/ribbar/conpoly.cxx304
-rw-r--r--sw/source/ui/ribbar/conrect.cxx338
-rw-r--r--sw/source/ui/ribbar/drawbase.cxx873
-rw-r--r--sw/source/ui/ribbar/dselect.cxx253
-rw-r--r--sw/source/ui/ribbar/inputwin.cxx881
-rw-r--r--sw/source/ui/ribbar/inputwin.hrc118
-rw-r--r--sw/source/ui/ribbar/inputwin.src1137
-rw-r--r--sw/source/ui/ribbar/makefile.mk109
-rw-r--r--sw/source/ui/ribbar/tblctrl.cxx209
-rw-r--r--sw/source/ui/ribbar/tblctrl.hrc69
-rw-r--r--sw/source/ui/ribbar/tblctrl.src123
-rw-r--r--sw/source/ui/ribbar/tbxanchr.cxx240
-rw-r--r--sw/source/ui/ribbar/tbxanchr.src204
-rw-r--r--sw/source/ui/ribbar/tbxmgr.cxx304
-rw-r--r--sw/source/ui/ribbar/workctrl.cxx838
-rw-r--r--sw/source/ui/ribbar/workctrl.hrc118
-rw-r--r--sw/source/ui/ribbar/workctrl.src1936
-rw-r--r--sw/source/ui/shells/basesh.cxx2507
-rw-r--r--sw/source/ui/shells/beziersh.cxx488
-rw-r--r--sw/source/ui/shells/drawdlg.cxx439
-rw-r--r--sw/source/ui/shells/drawsh.cxx640
-rw-r--r--sw/source/ui/shells/drformsh.cxx375
-rw-r--r--sw/source/ui/shells/drwbassh.cxx762
-rw-r--r--sw/source/ui/shells/drwtxtex.cxx1021
-rw-r--r--sw/source/ui/shells/drwtxtsh.cxx815
-rw-r--r--sw/source/ui/shells/frmsh.cxx1082
-rw-r--r--sw/source/ui/shells/grfsh.cxx1010
-rw-r--r--sw/source/ui/shells/listsh.cxx362
-rw-r--r--sw/source/ui/shells/makefile.mk120
-rw-r--r--sw/source/ui/shells/olesh.cxx224
-rw-r--r--sw/source/ui/shells/shells.src2392
-rw-r--r--sw/source/ui/shells/slotadd.cxx423
-rw-r--r--sw/source/ui/shells/tabsh.cxx1575
-rw-r--r--sw/source/ui/shells/textdrw.cxx278
-rw-r--r--sw/source/ui/shells/textfld.cxx1175
-rw-r--r--sw/source/ui/shells/textglos.cxx209
-rw-r--r--sw/source/ui/shells/textidx.cxx437
-rw-r--r--sw/source/ui/shells/textsh.cxx1043
-rw-r--r--sw/source/ui/shells/textsh1.cxx1154
-rw-r--r--sw/source/ui/shells/textsh2.cxx777
-rw-r--r--sw/source/ui/shells/txtattr.cxx875
-rw-r--r--sw/source/ui/shells/txtcrsr.cxx412
-rw-r--r--sw/source/ui/shells/txtnum.cxx439
-rw-r--r--sw/source/ui/table/chartins.cxx609
-rw-r--r--sw/source/ui/table/chartins.hrc81
-rw-r--r--sw/source/ui/table/chartins.src349
-rw-r--r--sw/source/ui/table/colwd.cxx209
-rw-r--r--sw/source/ui/table/colwd.hrc70
-rw-r--r--sw/source/ui/table/colwd.src232
-rw-r--r--sw/source/ui/table/convert.cxx331
-rw-r--r--sw/source/ui/table/convert.hrc79
-rw-r--r--sw/source/ui/table/convert.src485
-rw-r--r--sw/source/ui/table/insrc.cxx203
-rw-r--r--sw/source/ui/table/insrc.hrc74
-rw-r--r--sw/source/ui/table/insrc.src305
-rw-r--r--sw/source/ui/table/instable.cxx308
-rw-r--r--sw/source/ui/table/instable.hrc78
-rw-r--r--sw/source/ui/table/instable.src430
-rw-r--r--sw/source/ui/table/makefile.mk127
-rw-r--r--sw/source/ui/table/mergetbl.cxx119
-rw-r--r--sw/source/ui/table/mergetbl.hrc66
-rw-r--r--sw/source/ui/table/mergetbl.src193
-rw-r--r--sw/source/ui/table/rowht.cxx228
-rw-r--r--sw/source/ui/table/rowht.hrc68
-rw-r--r--sw/source/ui/table/rowht.src186
-rw-r--r--sw/source/ui/table/splittbl.cxx136
-rw-r--r--sw/source/ui/table/splittbl.hrc68
-rw-r--r--sw/source/ui/table/splittbl.src245
-rw-r--r--sw/source/ui/table/table.src87
-rw-r--r--sw/source/ui/table/tabledlg.cxx2321
-rw-r--r--sw/source/ui/table/tabledlg.hrc137
-rw-r--r--sw/source/ui/table/tabledlg.src1600
-rw-r--r--sw/source/ui/table/tablemgr.cxx441
-rw-r--r--sw/source/ui/table/tablepg.hxx263
-rw-r--r--sw/source/ui/table/tautofmt.cxx1888
-rw-r--r--sw/source/ui/table/tautofmt.hrc113
-rw-r--r--sw/source/ui/table/tautofmt.src875
-rw-r--r--sw/source/ui/uiview/makefile.mk117
-rw-r--r--sw/source/ui/uiview/pview.cxx2322
-rw-r--r--sw/source/ui/uiview/pview.hrc108
-rw-r--r--sw/source/ui/uiview/pview.src988
-rw-r--r--sw/source/ui/uiview/scroll.cxx287
-rw-r--r--sw/source/ui/uiview/srcview.cxx1345
-rw-r--r--sw/source/ui/uiview/swcli.cxx308
-rw-r--r--sw/source/ui/uiview/uivwimp.cxx310
-rw-r--r--sw/source/ui/uiview/view.cxx1743
-rw-r--r--sw/source/ui/uiview/view.hrc125
-rw-r--r--sw/source/ui/uiview/view.src1166
-rw-r--r--sw/source/ui/uiview/view0.cxx270
-rw-r--r--sw/source/ui/uiview/view1.cxx272
-rw-r--r--sw/source/ui/uiview/view2.cxx1587
-rw-r--r--sw/source/ui/uiview/viewcoll.cxx249
-rw-r--r--sw/source/ui/uiview/viewdlg.cxx198
-rw-r--r--sw/source/ui/uiview/viewdlg2.cxx403
-rw-r--r--sw/source/ui/uiview/viewdraw.cxx809
-rw-r--r--sw/source/ui/uiview/viewfunc.hxx107
-rw-r--r--sw/source/ui/uiview/viewling.cxx841
-rw-r--r--sw/source/ui/uiview/viewmdi.cxx890
-rw-r--r--sw/source/ui/uiview/viewport.cxx1508
-rw-r--r--sw/source/ui/uiview/viewprt.cxx770
-rw-r--r--sw/source/ui/uiview/viewsrch.cxx940
-rw-r--r--sw/source/ui/uiview/viewstat.cxx606
-rw-r--r--sw/source/ui/uiview/viewtab.cxx1974
-rw-r--r--sw/source/ui/uno/dlelstnr.cxx164
-rw-r--r--sw/source/ui/uno/makefile.mk109
-rw-r--r--sw/source/ui/uno/unoatxt.cxx1292
-rw-r--r--sw/source/ui/uno/unomod.cxx781
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx2818
-rw-r--r--sw/source/ui/uno/unotxvw.cxx1925
-rw-r--r--sw/source/ui/utlui/attrdesc.cxx1367
-rw-r--r--sw/source/ui/utlui/attrdesc.hrc149
-rw-r--r--sw/source/ui/utlui/attrdesc.src1953
-rw-r--r--sw/source/ui/utlui/bookctrl.cxx291
-rw-r--r--sw/source/ui/utlui/condedit.cxx179
-rw-r--r--sw/source/ui/utlui/content.cxx3223
-rw-r--r--sw/source/ui/utlui/glbltree.cxx1678
-rw-r--r--sw/source/ui/utlui/gloslst.cxx758
-rw-r--r--sw/source/ui/utlui/gloslst.hrc72
-rw-r--r--sw/source/ui/utlui/gloslst.src153
-rw-r--r--sw/source/ui/utlui/initui.cxx440
-rw-r--r--sw/source/ui/utlui/initui.hrc94
-rw-r--r--sw/source/ui/utlui/initui.src2303
-rw-r--r--sw/source/ui/utlui/makefile.mk146
-rw-r--r--sw/source/ui/utlui/navicfg.cxx189
-rw-r--r--sw/source/ui/utlui/navipi.cxx1814
-rw-r--r--sw/source/ui/utlui/navipi.hrc128
-rw-r--r--sw/source/ui/utlui/navipi.src1615
-rw-r--r--sw/source/ui/utlui/numfmtlb.cxx688
-rw-r--r--sw/source/ui/utlui/poolfmt.src4956
-rw-r--r--sw/source/ui/utlui/prcntfld.cxx486
-rw-r--r--sw/source/ui/utlui/shdwcrsr.cxx196
-rw-r--r--sw/source/ui/utlui/tmplctrl.cxx306
-rw-r--r--sw/source/ui/utlui/uiitems.cxx370
-rw-r--r--sw/source/ui/utlui/uitool.cxx1045
-rw-r--r--sw/source/ui/utlui/unotools.cxx700
-rw-r--r--sw/source/ui/utlui/unotools.hrc75
-rw-r--r--sw/source/ui/utlui/unotools.src330
-rw-r--r--sw/source/ui/utlui/utlui.src1624
-rw-r--r--sw/source/ui/utlui/zoomctrl.cxx175
-rw-r--r--sw/source/ui/web/makefile.mk113
-rw-r--r--sw/source/ui/web/wdocsh.cxx264
-rw-r--r--sw/source/ui/web/web.src623
-rw-r--r--sw/source/ui/web/wformsh.cxx146
-rw-r--r--sw/source/ui/web/wfrmsh.cxx170
-rw-r--r--sw/source/ui/web/wgrfsh.cxx147
-rw-r--r--sw/source/ui/web/wlistsh.cxx146
-rw-r--r--sw/source/ui/web/wolesh.cxx183
-rw-r--r--sw/source/ui/web/wtabsh.cxx154
-rw-r--r--sw/source/ui/web/wtextsh.cxx207
-rw-r--r--sw/source/ui/web/wview.cxx523
-rw-r--r--sw/source/ui/wrtsh/delete.cxx504
-rw-r--r--sw/source/ui/wrtsh/makefile.mk111
-rw-r--r--sw/source/ui/wrtsh/move.cxx823
-rw-r--r--sw/source/ui/wrtsh/select.cxx1010
-rw-r--r--sw/source/ui/wrtsh/wrtsh.hrc206
-rw-r--r--sw/source/ui/wrtsh/wrtsh.src2601
-rw-r--r--sw/source/ui/wrtsh/wrtsh1.cxx1630
-rw-r--r--sw/source/ui/wrtsh/wrtsh2.cxx805
-rw-r--r--sw/source/ui/wrtsh/wrtsh3.cxx468
-rw-r--r--sw/source/ui/wrtsh/wrtsh4.cxx289
-rw-r--r--sw/source/ui/wrtsh/wrtundo.cxx246
584 files changed, 291412 insertions, 0 deletions
diff --git a/sw/source/ui/app/app.src b/sw/source/ui/app/app.src
new file mode 100644
index 000000000000..4aab9297f1d4
--- /dev/null
+++ b/sw/source/ui/app/app.src
@@ -0,0 +1,2966 @@
+/*************************************************************************
+ *
+ * $RCSfile: app.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+
+#include <svtools/style.hrc>
+#include <sfx2/sfx.hrc>
+#include <svx/dialogs.hrc>
+#include <svx/globlmn.hrc>
+#include <basctl/basicide.hrc>
+#include <offmgr/sba.hrc>
+#include "cmdid.h"
+#include "globals.hrc"
+#include "app.hrc"
+#include "statstr.hrc"
+#include "swstyle.h"
+#include "comcore.hrc"
+#include "shells.hrc"
+
+
+#define IMAGE_STDBTN_COLOR Color { Red = 0xC000; Green = 0xC000; Blue = 0xC000; }
+
+String RID_SW_NAME
+{
+ TEXT = "StarWriter" ;
+};
+
+String STR_PRINT_MERGE_MACRO
+{
+ TEXT = "Serienbriefe drucken" ;
+ TEXT [ English ] = "Print merge" ;
+ Text [ english_us ] = "Print form letters" ;
+ Text [ italian ] = "Stampa in serie" ;
+ Text [ spanish ] = "Imprimir cartas en serie" ;
+ Text [ french ] = "Imprimer un mailing" ;
+ Text [ dutch ] = "Standaardbrieven afdrukken" ;
+ Text [ swedish ] = "Skriv ut standardbrev" ;
+ Text [ danish ] = "Udskriv flettede breve" ;
+ Text [ portuguese_brazilian ] = "Serienbriefe drucken" ;
+ Text [ portuguese ] = "Imprimir cartas em série" ;
+ Text[ chinese_simplified ] = "´òÓ¡ÓʼþºÏ²¢";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ïå÷àòü ñëèÿíèÿ";
+ Text[ polish ] = "Drukuj listy seryjne";
+ Text[ japanese ] = "·‚µž‚݈óü";
+ Text[ chinese_traditional ] = "¦X¨Ö¦C¦L";
+ Text[ arabic ] = "ØÈÇÚÉ ÎØÇÈÇÊ ãÓáÓáÉ";
+ Text[ dutch ] = "Standaardbrieven afdrukken";
+ Text[ chinese_simplified ] = "´òÓ¡ÓʼþºÏ²¢";
+ Text[ greek ] = "Åêôýðùóç ïìáäéêÞò åðéóôïëÞò";
+ Text[ korean ] = "¿¬¼ÓÆíÁö Àμâ";
+ Text[ turkish ] = "Standart mektup yazdýr";
+};
+
+String STR_PAGE_COUNT_MACRO
+{
+ TEXT = "Änderung der Seitenanzahl" ;
+ TEXT [ English ] = "Page count changed" ;
+ Text [ english_us ] = "Changing the page count" ;
+ Text [ portuguese_brazilian ] = "Änderung der Seitenanzahl" ;
+ Text [ swedish ] = "Ändring av sidantal" ;
+ Text [ danish ] = "Modificer sideantal" ;
+ Text [ italian ] = "Modifica del numero delle pagine" ;
+ Text [ spanish ] = "Modificación del número de páginas" ;
+ Text [ french ] = "Modification du nombre de pages" ;
+ Text [ dutch ] = "Wijziging van het aantal pagina's" ;
+ Text [ portuguese ] = "Modificar número de páginas" ;
+ Text[ chinese_simplified ] = "¸ü¸ÄÒ³Êý";
+ Text[ russian ] = "Èçìåíåíèå êîëè÷åñòâà ñòðàíèö";
+ Text[ polish ] = "Zmiana liczby stron";
+ Text[ japanese ] = "Íß°¼Þ”‚Ì•ÏX";
+ Text[ chinese_traditional ] = "Åܧ󭶼Æ";
+ Text[ arabic ] = "ÊÛííÑ ÚÏÏ ÇáÕÝÍÇÊ";
+ Text[ dutch ] = "Wijziging van het aantal pagina's";
+ Text[ chinese_simplified ] = "¸ü¸ÄÒ³Êý";
+ Text[ greek ] = "Äéüñèùóç ðëÞèïõò óåëéäþí";
+ Text[ korean ] = "ÆäÀÌÁö Ä«¿îÆ® º¯°æ";
+ Text[ turkish ] = "Sayfa sayýsýnýn deðiþtirilmesi";
+ Text[ language_user1 ] = " ";
+};
+
+ // Image-Liste ----------------------------------------------------------------
+ //Dafuer gibt es jetzt eine Vorsortierung:
+ //1. SID_
+ //2. RID_
+ //3. FN_
+ //4. Ids, die noch aus der Default-Liste entfernt werden muessen
+
+#define IMAGELIST_AND_COUNT \
+ IdList = { \
+ SID_SELECTALL ;\
+ SID_NEWDOCDIRECT ;\
+ SID_DOCINFO ;\
+ SID_CLOSEDOCS ;\
+ SID_MAIL_SENDDOC ;\
+ SID_PRINTPREVIEW ;\
+ \
+ SID_INSERT_GRAPHIC ;\
+ SID_INSERT_DRAW ;\
+ SID_DOCTEMPLATE ;\
+ SID_AUTOFORMAT ;\
+ SID_AUTOSPELL_CHECK ;\
+ SID_EXTENDEDHELP ;\
+ SID_ATTR_CHAR_FONT ;\
+ SID_ATTR_CHAR_FONTHEIGHT ;\
+ SID_ATTR_CHAR_STRIKEOUT ;\
+ SID_ATTR_CHAR_SHADOWED ;\
+ SID_OBJECT_HELL ;\
+ SID_OBJECT_HEAVEN ;\
+ SID_ATTR_FILL_STYLE ;\
+ SID_ATTR_LINE_STYLE ;\
+ SID_ATTR_LINE_WIDTH ;\
+ SID_ATTR_LINE_COLOR ;\
+ SID_ATTR_LINEEND_STYLE ;\
+ SID_BACKGROUND_COLOR ;\
+ SID_FRAME_LINESTYLE ;\
+ SID_FRAME_LINECOLOR ;\
+ SID_SIM_START ;\
+ SID_ATTR_ZOOM ;\
+ SID_WIN_FULLSCREEN ;\
+ SID_FRAME_TO_TOP ;\
+ SID_FRAME_TO_BOTTOM ;\
+ SID_SBA_ADDRPI ;\
+ SID_FONTWORK ;\
+ \
+ SID_ATTR_TRANSFORM ;\
+ SID_ATTR_CHAR_COLOR2;\
+ SID_ATTR_CHAR_COLOR_BACKGROUND ;\
+ \
+ FN_NUMBER_BULLETS ;\
+ FN_NUM_BULLET_DOWN ;\
+ FN_NUM_BULLET_UP ;\
+ FN_NUM_BULLET_MOVEUP ;\
+ FN_NUM_BULLET_MOVEDOWN ;\
+ FN_NUM_BULLET_NONUM ;\
+ FN_NUM_BULLET_OFF ;\
+ FN_NUM_BULLET_OUTLINE_DOWN ;\
+ FN_NUM_BULLET_OUTLINE_UP ;\
+ FN_NUM_BULLET_OUTLINE_MOVEUP ;\
+ FN_NUM_BULLET_OUTLINE_MOVEDOWN ;\
+ FN_NUMBER_NEWSTART ;\
+ FN_INSERT_FIELD ;\
+ FN_VIEW_FIELDS ;\
+ FN_VIEW_FIELDNAME ;\
+ FN_VIEW_GRAPHIC ;\
+ FN_VIEW_MARKS ;\
+ FN_VIEW_META_CHARS ;\
+ FN_INSERT_TABLE ;\
+ FN_INSERT_FRAME_INTERACT ;\
+ FN_INSERT_FRAME_INTERACT_NOCOL ;\
+ FN_FRAME_CHAIN ;\
+ FN_FRAME_UNCHAIN ;\
+ FN_INSERT_FRAME ;\
+ FN_TOOL_ANKER ;\
+ FN_SET_SUPER_SCRIPT ;\
+ FN_SET_SUB_SCRIPT ;\
+ FN_UNDERLINE_DOUBLE ;\
+ SID_ATTR_PARA_ADJUST_BLOCK ;\
+ FN_FORMAT_FRAME_DLG ;\
+ FN_FRAME_NOWRAP ;\
+ FN_FRAME_WRAP ;\
+ FN_FRAME_WRAPTHRU ;\
+ FN_FRAME_WRAP_IDEAL ;\
+ FN_FRAME_WRAP_LEFT ;\
+ FN_FRAME_WRAP_RIGHT ;\
+ FN_FRAME_WRAP_CONTOUR ;\
+ SID_CONTOUR_DLG ;\
+ FN_FRAME_ALIGN_HORZ_LEFT ;\
+ FN_FRAME_ALIGN_HORZ_RIGHT ;\
+ FN_FRAME_ALIGN_HORZ_CENTER ;\
+ FN_FRAME_ALIGN_VERT_TOP ;\
+ FN_FRAME_ALIGN_VERT_BOTTOM ;\
+ FN_FRAME_ALIGN_VERT_CENTER ;\
+ FN_TABLE_INSERT_ROW ;\
+ FN_TABLE_INSERT_COL ;\
+ FN_TABLE_DELETE_ROW ;\
+ FN_TABLE_DELETE_COL ;\
+ FN_TABLE_SPLIT_CELLS ;\
+ FN_TABLE_MERGE_CELLS ;\
+ FN_TABLE_SELECT_ROW ;\
+ FN_TABLE_SELECT_COL ;\
+ FN_TABLE_SELECT_ALL ;\
+ FN_OPTIMIZE_TABLE ;\
+ FN_TABLE_OPTIMAL_HEIGHT;\
+ FN_TABLE_BALANCE_ROWS ;\
+ FN_TABLE_ADJUST_CELLS ;\
+ FN_TABLE_BALANCE_CELLS ;\
+ FN_PAGE_STYLE_SET_COLS ;\
+ FN_FLIP_HORZ_GRAFIC ;\
+ FN_FLIP_VERT_GRAFIC ;\
+ FN_SPELLING_DLG ;\
+ FN_START_TABLE ;\
+ FN_END_TABLE ;\
+ FN_FORMULA_CALC ;\
+ FN_FORMULA_CANCEL ;\
+ FN_FORMULA_APPLY ;\
+ SID_NAVIGATOR ;\
+ FN_PAGEUP ;\
+ FN_PAGEDOWN ;\
+ FN_START_OF_DOCUMENT ;\
+ FN_END_OF_DOCUMENT ;\
+ FN_SHOW_TWO_PAGES ;\
+ FN_SHOW_FOUR_PAGES ;\
+ FN_FORMAT_PAGE_DLG ;\
+ FN_PRINT_PAGEPREVIEW ;\
+ FN_FAX ;\
+ FN_QRY_MERGE ;\
+ FN_EDIT_FORMULA; \
+ FN_INSERT_CTRL ;\
+ FN_INSERT_OBJ_CTRL ;\
+ FN_INSERT_FIELD_CTRL ;\
+ SID_SOURCEVIEW;\
+ FN_TABLE_VERT_NONE;\
+ FN_TABLE_VERT_CENTER;\
+ FN_TABLE_VERT_BOTTOM;\
+ FN_TABLE_MODE_FIX ;\
+ FN_TABLE_MODE_FIX_PROP ;\
+ FN_TABLE_MODE_VARIABLE ;\
+ FN_PRINT_LAYOUT ;\
+ FN_INSERT_HEADER;\
+ FN_INSERT_FOOTER;\
+ FN_TABLE_AUTOSUM;\
+ FN_PREVIEW_PRINT_OPTIONS;\
+ FN_PREVIEW_ZOOM;\
+ \
+ SID_STYLE_APPLY ;\
+ SID_STYLE_NEW_BY_EXAMPLE ;\
+ SID_STYLE_UPDATE_BY_EXAMPLE ;\
+ SID_ATTR_BORDER ;\
+ SID_PLAYMACRO ;\
+ SID_CHAR_DLG ;\
+ SID_PARA_DLG ;\
+ SID_INSERT_PREVIEW ; \
+ SID_INSERT_SPINBUTTON ;\
+ SID_INSERT_HSCROLLBAR ;\
+ SID_INSERT_VSCROLLBAR ;\
+ FN_QRY ;\
+ FN_INSERT_OBJECT_DLG ;\
+ FN_INSERT_SYMBOL ;\
+ FN_POSTIT ;\
+ FN_GROW_FONT_SIZE ;\
+ FN_SHRINK_FONT_SIZE ;\
+ FN_THESAURUS_DLG ;\
+ FN_HYPHENATE_OPT_DLG ;\
+ FN_GLOSSARY_DLG ;\
+ SID_INSERT_URLBUTTON ;\
+ \
+ FN_INSERT_FLD_DATE ;\
+ FN_INSERT_FLD_TIME ;\
+ FN_INSERT_FLD_PGNUMBER;\
+ FN_INSERT_FLD_PGCOUNT ;\
+ FN_INSERT_FLD_TOPIC ;\
+ FN_INSERT_FLD_TITLE ;\
+ FN_INSERT_FLD_AUTHOR ;\
+ FN_INSERT_SIM; \
+ FN_INSERT_SMA; \
+ FN_INSERT_FOOTNOTE; \
+ FN_INSERT_ENDNOTE; \
+ FN_INSERT_IDX_ENTRY_DLG;\
+ FN_INSERT_BOOKMARK; \
+ SID_SEARCH_DLG; \
+ SID_INSERTDOC; \
+ SID_INSERT_FLOATINGFRAME;\
+ FN_SHADOWCURSOR;\
+ FN_INSERT_CAPTION;\
+ FN_INSERT_REF_FIELD;\
+ FN_INSERT_COLUMN_SECTION;\
+ \
+ \
+ }; \
+ IdCount = { \
+ 172; \
+ };
+
+
+
+ImageList RID_DEFAULTIMAGELIST_SC
+{
+ ImageBitmap = Bitmap
+ {
+ File = "sc_out.bmp" ;
+ File [ english ] = "sc_out01.bmp" ;
+ File [ english_us ] = "sc_out01.bmp" ;
+ File [ dutch ] = "sc_out31.bmp" ;
+ File [ french ] = "sc_out33.bmp" ;
+ File [ spanish ] = "sc_out34.bmp" ;
+ File [ italian ] = "sc_out39.bmp" ;
+ File [ swedish ] = "sc_out46.bmp" ;
+ File [ danish ] = "sc_out45.bmp" ;
+ File [ russian ] = "sc_out07.bmp" ;
+ File [ polish ] = "sc_out48.bmp" ;
+ File [ greek ] = "sc_out30.bmp" ;
+ File [ japanese ] = "sc_out81.bmp" ;
+ File [ portuguese ] = "sc_out03.bmp" ;
+ };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ IMAGELIST_AND_COUNT
+};
+ImageList RID_DEFAULTIMAGELIST_LC
+{
+ ImageBitmap = Bitmap
+ {
+ File = "lc_out.bmp" ;
+ File [ english ] = "lc_out01.bmp" ;
+ File [ english_us ] = "lc_out01.bmp" ;
+ File [ dutch ] = "lc_out31.bmp" ;
+ File [ french ] = "lc_out33.bmp" ;
+ File [ spanish ] = "lc_out34.bmp" ;
+ File [ italian ] = "lc_out39.bmp" ;
+ File [ swedish ] = "lc_out46.bmp" ;
+ File [ danish ] = "lc_out45.bmp" ;
+ File [ russian ] = "lc_out07.bmp" ;
+ File [ polish ] = "lc_out48.bmp" ;
+ File [ greek ] = "lc_out30.bmp" ;
+ File [ japanese ] = "lc_out81.bmp" ;
+ File [ portuguese ] = "lc_out03.bmp" ;
+ };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ IMAGELIST_AND_COUNT
+};
+
+ // Vorlagen
+SfxStyleFamilies DLG_STYLE_DESIGNER
+{
+ StyleFamilyList =
+ {
+ SfxStyleFamilyItem
+ {
+ StyleImage = Image
+ {
+ ImageBitmap = Bitmap { File = "catpar.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text = "Absatzvorlagen" ;
+ Text [ ENGLISH ] = "Paragraph Styles" ;
+ Text [ norwegian ] = "Avsnittsmaler" ;
+ Text [ italian ] = "Modelli di paragrafo" ;
+ Text [ portuguese_brazilian ] = "Estilos de parágrafo" ;
+ Text [ portuguese ] = "Estilos de parágrafo" ;
+ Text [ finnish ] = "Kappaletyylit" ;
+ Text [ danish ] = "Afsnitstypografier" ;
+ Text [ french ] = "Styles de paragraphe" ;
+ Text [ swedish ] = "Styckeformatmallar" ;
+ Text [ dutch ] = "Alinea-opmaakprofielen" ;
+ Text [ spanish ] = "Estilos de párrafo" ;
+ Text [ english_us ] = "Paragraph Styles" ;
+ StyleFamily = SFX_STYLE_FAMILY_PARA ;
+ FilterList =
+ {
+ < "Automatisch" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alle Vorlagen" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Textvorlagen" ; SWSTYLEBIT_TEXT ; > ;
+ < "Kapitelvorlagen" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Listenvorlagen" ; SWSTYLEBIT_LIST ; > ;
+ < "Verzeichnisvorlagen" ; SWSTYLEBIT_IDX ; > ;
+ < "Vorlagen Sonderbereiche" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML Vorlagen" ; SWSTYLEBIT_HTML ; > ;
+ < "Bedingte Vorlagen" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ ENGLISH ] =
+ {
+ < "Automatisch" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alle Vorlagen" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Textvorlagen" ; SWSTYLEBIT_TEXT ; > ;
+ < "Kapitelvorlagen" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Listenvorlagen" ; SWSTYLEBIT_LIST ; > ;
+ < "Verzeichnisvorlagen" ; SWSTYLEBIT_IDX ; > ;
+ < "Vorlagen Sonderbereiche" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML Vorlagen" ; SWSTYLEBIT_HTML ; > ;
+ < "Bedingte Vorlagen" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ english_us ] =
+ {
+ < "Automatic" ; SFXSTYLEBIT_AUTO ; > ;
+ < "All Styles" ; SFXSTYLEBIT_ALL ; > ;
+ < "Applied Styles" ; SFXSTYLEBIT_USED ; > ;
+ < "Custom Styles" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Text Styles" ; SWSTYLEBIT_TEXT ; > ;
+ < "Chapter Styles" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "List Styles" ; SWSTYLEBIT_LIST ; > ;
+ < "Index Styles" ; SWSTYLEBIT_IDX ; > ;
+ < "Special Styles" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML Styles" ; SWSTYLEBIT_HTML ; > ;
+ < "Conditional Styles" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ portuguese_brazilian ] =
+ {
+ < "Automatisch" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alle Vorlagen" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Textvorlagen" ; SWSTYLEBIT_TEXT ; > ;
+ < "Kapitelvorlagen" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Listenvorlagen" ; SWSTYLEBIT_LIST ; > ;
+ < "Verzeichnisvorlagen" ; SWSTYLEBIT_IDX ; > ;
+ < "Vorlagen Sonderbereiche" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML Vorlagen" ; SWSTYLEBIT_HTML ; > ;
+ < "Bedingte Vorlagen" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ swedish ] =
+ {
+ < "Automatiskt" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alla formatmallar" ; SFXSTYLEBIT_ALL ; > ;
+ < "Använda formatmallar" ; SFXSTYLEBIT_USED ; > ;
+ < "Användardefinierade formatmallar" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Textformatmallar" ; SWSTYLEBIT_TEXT ; > ;
+ < "Kapitelformatmallar" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Listformatmallar" ; SWSTYLEBIT_LIST ; > ;
+ < "Förteckningsformatmallar" ; SWSTYLEBIT_IDX ; > ;
+ < "Formatmallar specialområde" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML formatmallar" ; SWSTYLEBIT_HTML ; > ;
+ < "Villkorliga formatmallar" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ danish ] =
+ {
+ < "Automatisk" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alle typografier" ; SFXSTYLEBIT_ALL ; > ;
+ < "Anvendte typografier" ; SFXSTYLEBIT_USED ; > ;
+ < "Brugerdefinerede typografier" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Teksttypografier" ; SWSTYLEBIT_TEXT ; > ;
+ < "Kapiteltypografier" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Listetypografier" ; SWSTYLEBIT_LIST ; > ;
+ < "Indekstypografier" ; SWSTYLEBIT_IDX ; > ;
+ < "Typografi særområder" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML-typografier" ; SWSTYLEBIT_HTML ; > ;
+ < "Betingede typografier" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ italian ] =
+ {
+ < "Automatico" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Tutti i modelli" ; SFXSTYLEBIT_ALL ; > ;
+ < "Modelli usati" ; SFXSTYLEBIT_USED ; > ;
+ < "Modelli utente" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Modelli di testo" ; SWSTYLEBIT_TEXT ; > ;
+ < "Modelli di capitolo" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Modelli di elenchi" ; SWSTYLEBIT_LIST ; > ;
+ < "Modelli di indice" ; SWSTYLEBIT_IDX ; > ;
+ < "Modelli aree speciali" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Modelli HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Modelli condizionati" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ spanish ] =
+ {
+ < "Automático" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Todos los estilos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos aplicados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos del usuario" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Estilos de texto" ; SWSTYLEBIT_TEXT ; > ;
+ < "Estilos de capítulos" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Estilos de listas" ; SWSTYLEBIT_LIST ; > ;
+ < "Estilos de índices" ; SWSTYLEBIT_IDX ; > ;
+ < "Estilos de áreas especiales" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Estilos HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Estilos condicionados" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ french ] =
+ {
+ < "Automatiquement" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Tous les styles" ; SFXSTYLEBIT_ALL ; > ;
+ < "Styles utilisés" ; SFXSTYLEBIT_USED ; > ;
+ < "Styles personnalisés" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Styles de texte" ; SWSTYLEBIT_TEXT ; > ;
+ < "Styles de chapitre" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Styles de liste" ; SWSTYLEBIT_LIST ; > ;
+ < "Styles d'index/de tables des matières" ; SWSTYLEBIT_IDX ; > ;
+ < "Styles pour zones spéciales" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Styles HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Styles conditionnels" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ dutch ] =
+ {
+ < "Automatisch" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alle opmaakprofielen" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Tekstopmaakprofielen" ; SWSTYLEBIT_TEXT ; > ;
+ < "Opmaakprofielen voor hoofdtukken" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Lijstopmaakprofielen" ; SWSTYLEBIT_LIST ; > ;
+ < "Indexopmaakprofielen" ; SWSTYLEBIT_IDX ; > ;
+ < "Opmaakprof. speciale bereiken" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML-opmaakprofielen" ; SWSTYLEBIT_HTML ; > ;
+ < "Conditionele opmaakprofielen" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ filterlist [ portuguese ] =
+ {
+ < "Automático" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Estilos todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos usados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos personalizados" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Estilos de texto" ; SWSTYLEBIT_TEXT ; > ;
+ < "Estilos de capítulos" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Estilos de listas" ; SWSTYLEBIT_LIST ; > ;
+ < "Estilos de índices" ; SWSTYLEBIT_IDX ; > ;
+ < "Estilos de áreas especiais" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Estilos HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Estilos condicionados" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ chinese_simplified ] = "¶ÎÂäÑùʽ";
+ FilterList [ chinese_simplified ] =
+ {
+ < "×Ô¶¯" ; SFXSTYLEBIT_AUTO ; > ;
+ < "È«²¿Ñùʽ" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "ÎÄ×ÖÑùʽ" ; SWSTYLEBIT_TEXT ; > ;
+ < "ÕÂÑùʽ" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Áе¥Ñùʽ" ; SWSTYLEBIT_LIST ; > ;
+ < "Ë÷ÒýÑùʽ" ; SWSTYLEBIT_IDX ; > ;
+ < "ÑùʽÌØÊâÇøÓò" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML Ñùʽ" ; SWSTYLEBIT_HTML ; > ;
+ < "ÓÐÌõ¼þµÄÑùʽ" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < " " ; SFXSTYLEBIT_AUTO ; > ;
+ < " " ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ < " " ; SWSTYLEBIT_TEXT ; > ;
+ < " " ; SWSTYLEBIT_CHAPTER ; > ;
+ < " " ; SWSTYLEBIT_LIST ; > ;
+ < " " ; SWSTYLEBIT_IDX ; > ;
+ < " " ; SWSTYLEBIT_EXTRA ; > ;
+ < " " ; SWSTYLEBIT_HTML ; > ;
+ < " " ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < " " ; SFXSTYLEBIT_AUTO ; > ;
+ < " " ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ < " " ; SWSTYLEBIT_TEXT ; > ;
+ < " " ; SWSTYLEBIT_CHAPTER ; > ;
+ < " " ; SWSTYLEBIT_LIST ; > ;
+ < " " ; SWSTYLEBIT_IDX ; > ;
+ < " " ; SWSTYLEBIT_EXTRA ; > ;
+ < " " ; SWSTYLEBIT_HTML ; > ;
+ < " " ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ñòèëè àáçàöà";
+ Text[ polish ] = "Style akapitu";
+ Text[ japanese ] = "’i—Ž½À²Ù";
+ FilterList [ russian ] =
+ {
+ < "Àâòîìàòè÷åñêè" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Âñå ñòèëè" ; SFXSTYLEBIT_ALL ; > ;
+ < "Ïðèìåíåííûå ñòèëè" ; SFXSTYLEBIT_USED ; > ;
+ < "Ñòèëè ïîëüçîâàòåëÿ" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Ñòèëè òåêñòà" ; SWSTYLEBIT_TEXT ; > ;
+ < "Ñòèëè ãëàâû" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Ñòèëè ñïèñêà" ; SWSTYLEBIT_LIST ; > ;
+ < "Ñòèëè óêàçàòåëÿ" ; SWSTYLEBIT_IDX ; > ;
+ < "Ñòèëè ñïåöèàëüíûõ îáëàñòåé" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Ñòèëè HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Óñëîâíûå ñòèëè" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ polish ] =
+ {
+ < "Automatycznie" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Wszystkie style" ; SFXSTYLEBIT_ALL ; > ;
+ < "U¿yte style" ; SFXSTYLEBIT_USED ; > ;
+ < "Style u¿ytkownika" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Style tekstu" ; SWSTYLEBIT_TEXT ; > ;
+ < "Style rozdzia³u" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Style listy" ; SWSTYLEBIT_LIST ; > ;
+ < "Style indeksu" ; SWSTYLEBIT_IDX ; > ;
+ < "Style dla specjalnych zadañ" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Style HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Warunkowe style" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ japanese ] =
+ {
+ < "Ž©“®" ; SFXSTYLEBIT_AUTO ; > ;
+ < "‚·‚ׂĂ̽À²Ù" ; SFXSTYLEBIT_ALL ; > ;
+ < "Žg—p‚µ‚½½À²Ù" ; SFXSTYLEBIT_USED ; > ;
+ < "Õ°»Þ°’è‹`‚̽À²Ù" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "•¶‘½À²Ù" ; SWSTYLEBIT_TEXT ; > ;
+ < "͂̽À²Ù" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "ؽĂ̽À²Ù" ; SWSTYLEBIT_LIST ; > ;
+ < "õˆø½À²Ù" ; SWSTYLEBIT_IDX ; > ;
+ < "“Á•Ê”͈͂̽À²Ù" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML½À²Ù" ; SWSTYLEBIT_HTML ; > ;
+ < "ðŒ•t‚«½À²Ù" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ chinese_traditional ] = "¬q¸¨¼Ë¦¡";
+ FilterList [ chinese_traditional ] =
+ {
+ < "¦Û°Ê" ; SFXSTYLEBIT_AUTO ; > ;
+ < "¥þ³¡¼Ë¦¡" ; SFXSTYLEBIT_ALL ; > ;
+ < "¨Ï¥Îªº¼Ë¦¡" ; SFXSTYLEBIT_USED ; > ;
+ < "¦Û­q¼Ë¦¡" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "¤å¦r¼Ë¦¡" ; SWSTYLEBIT_TEXT ; > ;
+ < "³¹¼Ë¦¡" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "²M³æ¼Ë¦¡" ; SWSTYLEBIT_LIST ; > ;
+ < "¥Ø¿ý¼Ë¦¡" ; SWSTYLEBIT_IDX ; > ;
+ < "¼Ë¦¡¯S®í°Ï°ì" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML ¼Ë¦¡" ; SWSTYLEBIT_HTML ; > ;
+ < "¦³±ø¥óªº¼Ë¦¡" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ arabic ] = "ÃäãÇØ ÝÞÑÉ";
+ FilterList [ arabic ] =
+ {
+ < "ÊáÞÇÆí" ; SFXSTYLEBIT_AUTO ; > ;
+ < "ßá ÇáÃäãÇØ" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÃäãÇØ ÞíÏ ÇáÇÓÊÎÏÇã" ; SFXSTYLEBIT_USED ; > ;
+ < "ÃäãÇØ ãÎÕÕÉ" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "ÃäãÇØ äÕ" ; SWSTYLEBIT_TEXT ; > ;
+ < "ÃäãÇØ ÇáÝÕá" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "ÃäãÇØ ÇáÞÇÆãÉ" ; SWSTYLEBIT_LIST ; > ;
+ < "ÃäãÇØ ÝåÑÓ" ; SWSTYLEBIT_IDX ; > ;
+ < "ÃäãÇØ äØÇÞÇÊ ÎÇÕÉ" ; SWSTYLEBIT_EXTRA ; > ;
+ < "ÃäãÇØ HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "ÃäãÇØ ãÔÑæØÉ" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ dutch ] = "Alinea-opmaakprofielen";
+ Text[ chinese_simplified ] = "¶ÎÂäÑùʽ";
+ FilterList [ dutch ] =
+ {
+ < "Automatisch" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Alle opmaakprofielen" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Tekstopmaakprofielen" ; SWSTYLEBIT_TEXT ; > ;
+ < "Opmaakprofielen voor hoofdtukken" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Lijstopmaakprofielen" ; SWSTYLEBIT_LIST ; > ;
+ < "Indexopmaakprofielen" ; SWSTYLEBIT_IDX ; > ;
+ < "Opmaakprof. speciale bereiken" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML-opmaakprofielen" ; SWSTYLEBIT_HTML ; > ;
+ < "Conditionele opmaakprofielen" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ chinese_simplified ] =
+ {
+ < "×Ô¶¯" ; SFXSTYLEBIT_AUTO ; > ;
+ < "È«²¿Ñùʽ" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "ÎÄ×ÖÑùʽ" ; SWSTYLEBIT_TEXT ; > ;
+ < "ÕÂÑùʽ" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Áе¥Ñùʽ" ; SWSTYLEBIT_LIST ; > ;
+ < "Ë÷ÒýÑùʽ" ; SWSTYLEBIT_IDX ; > ;
+ < "ÑùʽÌØÊâÇøÓò" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML Ñùʽ" ; SWSTYLEBIT_HTML ; > ;
+ < "ÓÐÌõ¼þµÄÑùʽ" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ greek ] = "Ðñüôõðá ðáñáãñÜöùí";
+ Text[ korean ] = "´Ü¶ô À¯Çü";
+ FilterList [ greek ] =
+ {
+ < "Áõôüìáôá" ; SFXSTYLEBIT_AUTO ; > ;
+ < "¼ëá ôá ðñüôõðá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÅöáñìïóìÝíá óôõë" ; SFXSTYLEBIT_USED ; > ;
+ < "Ðñüôõðá ÷ñÞóôç" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Ðñüôõðï êåéìÝíïõ" ; SWSTYLEBIT_TEXT ; > ;
+ < "Ðñüôõðá êåöáëáßùí" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Óôõë ëßóôáò" ; SWSTYLEBIT_LIST ; > ;
+ < "Ðñüôõðá åõñåôçñßùí" ; SWSTYLEBIT_IDX ; > ;
+ < "Ðñüôõðá åéäéêþí ðåñéï÷þí" ; SWSTYLEBIT_EXTRA ; > ;
+ < "Ðñüôõðá HTML" ; SWSTYLEBIT_HTML ; > ;
+ < "Ðñüôõðá õðü üñïõò" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ FilterList [ korean ] =
+ {
+ < "ÀÚµ¿" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Àüü À¯Çü" ; SFXSTYLEBIT_ALL ; > ;
+ < "À¯ÇüÀÌ Àû¿ëµÇ¾ú½À´Ï´Ù." ; SFXSTYLEBIT_USED ; > ;
+ < "»ç¿ëÀÚ Á¤ÀÇ À¯Çü" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "ÅؽºÆ® À¯Çü" ; SWSTYLEBIT_TEXT ; > ;
+ < "Àå À¯Çü" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "¸®½ºÆ® À¯Çü" ; SWSTYLEBIT_LIST ; > ;
+ < "»öÀÎ À¯Çü" ; SWSTYLEBIT_IDX ; > ;
+ < "Ưº° Áö¿ª À¯Çü" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML À¯Çü" ; SWSTYLEBIT_HTML ; > ;
+ < "Á¶°ÇÀû À¯Çü" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ Text[ turkish ] = "Paragraf biçimi";
+ FilterList [ turkish ] =
+ {
+ < "Otomatik" ; SFXSTYLEBIT_AUTO ; > ;
+ < "Bütün biçimler" ; SFXSTYLEBIT_ALL ; > ;
+ < "Kullanýlan biçim" ; SFXSTYLEBIT_USED ; > ;
+ < "Kullanýcý biçimi" ; SFXSTYLEBIT_USERDEF ; > ;
+ < "Metin biçimi" ; SWSTYLEBIT_TEXT ; > ;
+ < "Bölüm biçimi" ; SWSTYLEBIT_CHAPTER ; > ;
+ < "Liste biçimi" ; SWSTYLEBIT_LIST ; > ;
+ < "Dizin biçimi" ; SWSTYLEBIT_IDX ; > ;
+ < "Özel bölüm biçimi" ; SWSTYLEBIT_EXTRA ; > ;
+ < "HTML biçimi" ; SWSTYLEBIT_HTML ; > ;
+ < "Koþullu biçim" ; SWSTYLEBIT_CONDCOLL ; > ;
+ };
+ };
+ SfxStyleFamilyItem
+ {
+ StyleImage = Image
+ {
+ ImageBitmap = Bitmap { File = "catabc.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text = "Zeichenvorlagen" ;
+ Text [ ENGLISH ] = "Character Styles" ;
+ Text [ norwegian ] = "Tegnmaler" ;
+ Text [ italian ] = "Modelli di carattere" ;
+ Text [ portuguese_brazilian ] = "Estilo de Caracter" ;
+ Text [ portuguese ] = "Estilos de caracteres" ;
+ Text [ finnish ] = "Merkkityylit" ;
+ Text [ danish ] = "Tegntypografier" ;
+ Text [ french ] = "Styles de caractère" ;
+ Text [ swedish ] = "Teckenformatmallar" ;
+ Text [ dutch ] = "Tekenopmaakprofielen" ;
+ Text [ spanish ] = "Estilos de caracteres" ;
+ Text [ english_us ] = "Character Styles" ;
+ StyleFamily = SFX_STYLE_FAMILY_CHAR ;
+ FilterList =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ ENGLISH ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ english_us ] =
+ {
+ < "All" ; SFXSTYLEBIT_ALL ; > ;
+ < "Applied Styles" ; SFXSTYLEBIT_USED ; > ;
+ < "Custom Styles" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ italian ] =
+ {
+ < "Tutti" ; SFXSTYLEBIT_ALL ; > ;
+ < "Modelli usati" ; SFXSTYLEBIT_USED ; > ;
+ < "Modelli utente" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ spanish ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos aplicados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos del usuario" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ french ] =
+ {
+ < "Tous les styles" ; SFXSTYLEBIT_ALL ; > ;
+ < "Styles utilisés" ; SFXSTYLEBIT_USED ; > ;
+ < "Styles personnalisés" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese_brazilian ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ swedish ] =
+ {
+ < "Alla" ; SFXSTYLEBIT_ALL ; > ;
+ < "Använda formatmallar" ; SFXSTYLEBIT_USED ; > ;
+ < "Användardefinierade formatmallar" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ danish ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Anvendte typografier" ; SFXSTYLEBIT_USED ; > ;
+ < "Brugerdefinerede typografier" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos utilizados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos personalizados" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ñòèëè çíàêîâ";
+ Text[ polish ] = "Style znaku";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ FilterList [ russian ] =
+ {
+ < "Âñå" ; SFXSTYLEBIT_ALL ; > ;
+ < "Ïðèìåíåííûå ñòèëè" ; SFXSTYLEBIT_USED ; > ;
+ < "Ñòèëè ïîëüçîâàòåëÿ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ polish ] =
+ {
+ < "Wszystkie" ; SFXSTYLEBIT_ALL ; > ;
+ < "U¿yte style" ; SFXSTYLEBIT_USED ; > ;
+ < "Style u¿ytkownika" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ japanese ] =
+ {
+ < "‚·‚ׂÄ" ; SFXSTYLEBIT_ALL ; > ;
+ < "Žg—p‚µ‚½½À²Ù" ; SFXSTYLEBIT_USED ; > ;
+ < "Õ°»Þ°’è‹`‚̽À²Ù" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ chinese_traditional ] = "¤å¦r¼Ë¦¡";
+ FilterList [ chinese_traditional ] =
+ {
+ < "¥þ³¡" ; SFXSTYLEBIT_ALL ; > ;
+ < "¨Ï¥Îªº¼Ë¦¡" ; SFXSTYLEBIT_USED ; > ;
+ < "¦Û­q¼Ë¦¡" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ arabic ] = "ÃäãÇØ ÃÍÑÝ";
+ FilterList [ arabic ] =
+ {
+ < "Çáßá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÃäãÇØ ÞíÏ ÇáÇÓÊÎÏÇã" ; SFXSTYLEBIT_USED ; > ;
+ < "ÃäãÇØ ãÎÕÕÉ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ dutch ] = "Tekenopmaakprofielen";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ FilterList [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯Çü";
+ FilterList [ greek ] =
+ {
+ < "¼ëá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÅöáñìïóìÝíá óôõë" ; SFXSTYLEBIT_USED ; > ;
+ < "Ðñüôõðá ÷ñÞóôç" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ korean ] =
+ {
+ < "ÀüºÎ" ; SFXSTYLEBIT_ALL ; > ;
+ < "À¯ÇüÀÌ Àû¿ëµÇ¾ú½À´Ï´Ù." ; SFXSTYLEBIT_USED ; > ;
+ < "»ç¿ëÀÚ Á¤ÀÇ À¯Çü" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ turkish ] = "Karakter biçimi";
+ FilterList [ turkish ] =
+ {
+ < "Tümü" ; SFXSTYLEBIT_ALL ; > ;
+ < "Uygulanan biçim" ; SFXSTYLEBIT_USED ; > ;
+ < "Kullanýcý biçimi" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ };
+ SfxStyleFamilyItem
+ {
+ StyleImage = Image
+ {
+ ImageBitmap = Bitmap { File = "catfrm.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text = "Rahmenvorlagen" ;
+ Text [ ENGLISH ] = "Frame Styles" ;
+ Text [ norwegian ] = "Rammemaler" ;
+ Text [ italian ] = "Modelli di cornice" ;
+ Text [ portuguese_brazilian ] = "Estilos de Moldura" ;
+ Text [ portuguese ] = "Estilos de molduras" ;
+ Text [ finnish ] = "Kehystyylit" ;
+ Text [ danish ] = "Rammetypografier" ;
+ Text [ french ] = "Styles de cadre" ;
+ Text [ swedish ] = "Ramformatmallar" ;
+ Text [ dutch ] = "Kaderopmaakprofielen" ;
+ Text [ spanish ] = "Estilos de marcos" ;
+ Text [ english_us ] = "Frame Styles" ;
+ StyleFamily = SFX_STYLE_FAMILY_FRAME ;
+ FilterList =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ ENGLISH ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ english_us ] =
+ {
+ < "All" ; SFXSTYLEBIT_ALL ; > ;
+ < "Applied Styles" ; SFXSTYLEBIT_USED ; > ;
+ < "Custom Styles" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ italian ] =
+ {
+ < "Tutti" ; SFXSTYLEBIT_ALL ; > ;
+ < "Modelli usati" ; SFXSTYLEBIT_USED ; > ;
+ < "Modelli utente" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ spanish ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos aplicados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos del usuario" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ french ] =
+ {
+ < "Tous les styles" ; SFXSTYLEBIT_ALL ; > ;
+ < "Styles utilisés" ; SFXSTYLEBIT_USED ; > ;
+ < "Styles personnalisés" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese_brazilian ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ swedish ] =
+ {
+ < "Alla" ; SFXSTYLEBIT_ALL ; > ;
+ < "Använda formatmallar" ; SFXSTYLEBIT_USED ; > ;
+ < "Användardefinierade formatmallar" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ danish ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Anvendte typografier" ; SFXSTYLEBIT_USED ; > ;
+ < "Brugerdefinerede typografier" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos usados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos personalizados" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ chinese_simplified ] = "¿òÑùʽ";
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ñòèëè ðàìîê";
+ Text[ polish ] = "Style ramek";
+ Text[ japanese ] = "˜g½À²Ù";
+ FilterList [ russian ] =
+ {
+ < "Âñå" ; SFXSTYLEBIT_ALL ; > ;
+ < "Ïðèìåíåííûå ñòèëè" ; SFXSTYLEBIT_USED ; > ;
+ < "Ñòèëè ïîëüçîâàòåëÿ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ polish ] =
+ {
+ < "Wszystkie" ; SFXSTYLEBIT_ALL ; > ;
+ < "U¿yte style" ; SFXSTYLEBIT_USED ; > ;
+ < "Style u¿ytkownika" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ japanese ] =
+ {
+ < "‚·‚ׂÄ" ; SFXSTYLEBIT_ALL ; > ;
+ < "Žg—p‚µ‚½½À²Ù" ; SFXSTYLEBIT_USED ; > ;
+ < "Õ°»Þ°’è‹`‚̽À²Ù" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ chinese_traditional ] = "®Ø¼Ë¦¡";
+ FilterList [ chinese_traditional ] =
+ {
+ < "¥þ³¡" ; SFXSTYLEBIT_ALL ; > ;
+ < "¨Ï¥Îªº¼Ë¦¡" ; SFXSTYLEBIT_USED ; > ;
+ < "¦Û­q¼Ë¦¡" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ arabic ] = "ÃäãÇØ ÅØÇÑ";
+ FilterList [ arabic ] =
+ {
+ < "Çáßá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÃäãÇØ ÞíÏ ÇáÇÓÊÎÏÇã" ; SFXSTYLEBIT_USED ; > ;
+ < "ÃäãÇØ ãÎÕÕÉ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ dutch ] = "Kaderopmaakprofielen";
+ Text[ chinese_simplified ] = "¿òÑùʽ";
+ FilterList [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ greek ] = "Ðñüôõðá ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ À¯Çü";
+ FilterList [ greek ] =
+ {
+ < "¼ëá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÅöáñìïóìÝíá óôõë" ; SFXSTYLEBIT_USED ; > ;
+ < "Ðñüôõðá ÷ñÞóôç" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ korean ] =
+ {
+ < "ÀüºÎ" ; SFXSTYLEBIT_ALL ; > ;
+ < "À¯ÇüÀÌ Àû¿ëµÇ¾ú½À´Ï´Ù." ; SFXSTYLEBIT_USED ; > ;
+ < "»ç¿ëÀÚ Á¤ÀÇ À¯Çü" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ turkish ] = "Çerçeve biçimi";
+ FilterList [ turkish ] =
+ {
+ < "Tümü" ; SFXSTYLEBIT_ALL ; > ;
+ < "Uygulanan biçim" ; SFXSTYLEBIT_USED ; > ;
+ < "Kullanýcý biçimi" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ };
+ SfxStyleFamilyItem
+ {
+ StyleImage = Image
+ {
+ ImageBitmap = Bitmap { File = "catpag.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text = "Seitenvorlagen" ;
+ Text [ ENGLISH ] = "Page Styles" ;
+ Text [ norwegian ] = "Sidetyper" ;
+ Text [ italian ] = "Modelli di pagina" ;
+ Text [ portuguese_brazilian ] = "Estilos da Página" ;
+ Text [ portuguese ] = "Estilos de página" ;
+ Text [ finnish ] = "Sivutyylit" ;
+ Text [ danish ] = "Sidetypografier" ;
+ Text [ french ] = "Styles de page" ;
+ Text [ swedish ] = "Sidformatmallar" ;
+ Text [ dutch ] = "Pagina-opmaakprofielen" ;
+ Text [ spanish ] = "Estilos de página" ;
+ Text [ english_us ] = "Page Styles" ;
+ StyleFamily = SFX_STYLE_FAMILY_PAGE ;
+ FilterList =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ ENGLISH ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ english_us ] =
+ {
+ < "All" ; SFXSTYLEBIT_ALL ; > ;
+ < "Applied Styles" ; SFXSTYLEBIT_USED ; > ;
+ < "Custom Styles" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ italian ] =
+ {
+ < "Tutti" ; SFXSTYLEBIT_ALL ; > ;
+ < "Modeli usati" ; SFXSTYLEBIT_USED ; > ;
+ < "Modelli utente" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ spanish ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos aplicados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos del usuario" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ french ] =
+ {
+ < "Tous les styles" ; SFXSTYLEBIT_ALL ; > ;
+ < "Styles utilisés" ; SFXSTYLEBIT_USED ; > ;
+ < "Styles personnalisés" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese_brazilian ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ swedish ] =
+ {
+ < "Alla" ; SFXSTYLEBIT_ALL ; > ;
+ < "Använda formatmallar" ; SFXSTYLEBIT_USED ; > ;
+ < "Användardefinierade formatmallar" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ danish ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Anvendte typografier" ; SFXSTYLEBIT_USED ; > ;
+ < "Brugerdefinerede typografier" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos usados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos personalizados" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓÃÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ russian ] =
+ {
+ < "Âñå" ; SFXSTYLEBIT_ALL ; > ;
+ < "Ïðèìåíåííûå ñòèëè" ; SFXSTYLEBIT_USED ; > ;
+ < "Ñòèëè ïîëüçîâàòåëÿ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ polish ] =
+ {
+ < "Wszystkie" ; SFXSTYLEBIT_ALL ; > ;
+ < "U¿yte style" ; SFXSTYLEBIT_USED ; > ;
+ < "Style u¿ytkownika" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ japanese ] =
+ {
+ < "‚·‚ׂÄ" ; SFXSTYLEBIT_ALL ; > ;
+ < "Žg—p‚µ‚½½À²Ù" ; SFXSTYLEBIT_USED ; > ;
+ < "Õ°»Þ°’è‹`‚̽À²Ù" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ chinese_traditional ] =
+ {
+ < "¥þ³¡" ; SFXSTYLEBIT_ALL ; > ;
+ < "¦Û­q¼Ë¦¡" ; SFXSTYLEBIT_USED ; > ;
+ < "¦Û­q¼Ë¦¡" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ russian ] = "Ñòèëè ñòðàíèöû";
+ Text[ polish ] = "Style strony";
+ Text[ japanese ] = "Íß°¼Þ½À²Ù";
+ Text[ chinese_simplified ] = "Ò³ÃæÑùʽ";
+ Text[ chinese_traditional ] = "­¶­±¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÕÝÍÉ";
+ FilterList [ arabic ] =
+ {
+ < "Çáßá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÃäãÇØ ÞíÏ ÇáÇÓÊÎÏÇã" ; SFXSTYLEBIT_USED ; > ;
+ < "ÃäãÇØ ãÎÕÕÉ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ dutch ] = "Pagina-opmaakprofielen";
+ Text[ chinese_simplified ] = "Ò³ÃæÑùʽ";
+ FilterList [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓÃÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ greek ] = "Ðñüôõðá óåëéäþí";
+ Text[ korean ] = "ÆäÀÌÁö À¯Çü";
+ FilterList [ greek ] =
+ {
+ < "¼ëá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÅöáñìïóìÝíá óôõë" ; SFXSTYLEBIT_USED ; > ;
+ < "Ðñüôõðá ÷ñÞóôç" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ korean ] =
+ {
+ < "ÀüºÎ" ; SFXSTYLEBIT_ALL ; > ;
+ < "À¯ÇüÀÌ Àû¿ëµÇ¾ú½À´Ï´Ù." ; SFXSTYLEBIT_USED ; > ;
+ < "»ç¿ëÀÚ Á¤ÀÇ À¯Çü" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ turkish ] = "Sayfa biçimi";
+ FilterList [ turkish ] =
+ {
+ < "Tümü" ; SFXSTYLEBIT_ALL ; > ;
+ < "Uygulanan biçim" ; SFXSTYLEBIT_USED ; > ;
+ < "Kullanýcý biçimi" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ language_user1 ] = " ";
+ };
+ SfxStyleFamilyItem
+ {
+ StyleImage = Image
+ {
+ ImageBitmap = Bitmap { File = "catnum.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text = "Nummerierungsvorlagen" ;
+ Text [ ENGLISH ] = "Number Styles" ;
+ StyleFamily = SFX_STYLE_FAMILY_PSEUDO ;
+ FilterList =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ ENGLISH ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ english_us ] =
+ {
+ < "All" ; SFXSTYLEBIT_ALL ; > ;
+ < "Applied Styles" ; SFXSTYLEBIT_USED ; > ;
+ < "Custom Styles" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ italian ] =
+ {
+ < "Tutti" ; SFXSTYLEBIT_ALL ; > ;
+ < "Modeli usati" ; SFXSTYLEBIT_USED ; > ;
+ < "Modelli utente" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ spanish ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos aplicados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos del usuario" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ french ] =
+ {
+ < "Tous" ; SFXSTYLEBIT_ALL ; > ;
+ < "Styles utilisés" ; SFXSTYLEBIT_USED ; > ;
+ < "Styles personnalisés" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese_brazilian ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Verwendete Vorlagen" ; SFXSTYLEBIT_USED ; > ;
+ < "Benutzervorlagen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ swedish ] =
+ {
+ < "Alla" ; SFXSTYLEBIT_ALL ; > ;
+ < "Använda formatmallar" ; SFXSTYLEBIT_USED ; > ;
+ < "Användardefinierade formatmallar" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ danish ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Anvendte typografier" ; SFXSTYLEBIT_USED ; > ;
+ < "Brugerdefinerede typografier" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ filterlist [ portuguese ] =
+ {
+ < "Todos" ; SFXSTYLEBIT_ALL ; > ;
+ < "Estilos usados" ; SFXSTYLEBIT_USED ; > ;
+ < "Estilos personalizados" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text [ portuguese ] = "Estilos de numeração" ;
+ Text [ english_us ] = "Numbering Styles" ;
+ Text [ portuguese_brazilian ] = "Numerierungsvorlagen" ;
+ Text [ swedish ] = "Numreringsformatmallar" ;
+ Text [ danish ] = "Nummereringstypografier" ;
+ Text [ italian ] = "Modelli di numerazione" ;
+ Text [ spanish ] = "Estilos de numeración" ;
+ Text [ french ] = "Styles de numérotation" ;
+ Text [ dutch ] = "Opmaakprofielen voor nummering" ;
+ Text[ chinese_simplified ] = "±àºÅÑùʽ";
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < " " ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ language_user1 ] =
+ {
+ < " " ; SFXSTYLEBIT_ALL ; > ;
+ < " " ; SFXSTYLEBIT_USED ; > ;
+ < " " ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ language_user1 ] = "èë? ñòèë? òèE";
+ Text[ russian ] = "Ñòèëè íóìåðàöèè";
+ Text[ polish ] = "Style numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯½À²Ù";
+ FilterList [ russian ] =
+ {
+ < "Âñå" ; SFXSTYLEBIT_ALL ; > ;
+ < "Ïðèìåíåííûå ñòèëè" ; SFXSTYLEBIT_USED ; > ;
+ < "Ñòèëè ïîëüçîâàòåëÿ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ polish ] =
+ {
+ < "Wszystkie" ; SFXSTYLEBIT_ALL ; > ;
+ < "U¿yte style" ; SFXSTYLEBIT_USED ; > ;
+ < "Style u¿ytkownika" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ japanese ] =
+ {
+ < "‚·‚ׂÄ" ; SFXSTYLEBIT_ALL ; > ;
+ < "Žg—p‚µ‚½½À²Ù" ; SFXSTYLEBIT_USED ; > ;
+ < "Õ°»Þ°’è‹`‚̽À²Ù" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ chinese_traditional ] = "½s¸¹¼Ë¦¡";
+ FilterList [ chinese_traditional ] =
+ {
+ < "¥þ³¡" ; SFXSTYLEBIT_ALL ; > ;
+ < "¨Ï¥Îªº¼Ë¦¡" ; SFXSTYLEBIT_USED ; > ;
+ < "¦Û­q¼Ë¦¡" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ arabic ] = "ÃäãÇØ ÇáÊÑÞíã";
+ FilterList [ arabic ] =
+ {
+ < "Çáßá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÃäãÇØ ÞíÏ ÇáÇÓÊÎÏÇã" ; SFXSTYLEBIT_USED ; > ;
+ < "ÇáÃäãÇØ ÇáãÎÕÕÉ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ dutch ] = "Opmaakprofielen voor nummering";
+ Text[ chinese_simplified ] = "±àºÅÑùʽ";
+ FilterList [ dutch ] =
+ {
+ < "Alle" ; SFXSTYLEBIT_ALL ; > ;
+ < "Gebruikte opmaakprofielen" ; SFXSTYLEBIT_USED ; > ;
+ < "Eigen opmaakprofielen" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; SFXSTYLEBIT_ALL ; > ;
+ < "ʹÓõÄÑùʽ" ; SFXSTYLEBIT_USED ; > ;
+ < "×Ô¶¨Ñùʽ" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ greek ] = "Óôõë áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â À¯Çü";
+ FilterList [ greek ] =
+ {
+ < "¼ëá" ; SFXSTYLEBIT_ALL ; > ;
+ < "ÅöáñìïóìÝíá óôõë" ; SFXSTYLEBIT_USED ; > ;
+ < "Ðñüôõðá ÷ñÞóôç" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ FilterList [ korean ] =
+ {
+ < "ÀüºÎ" ; SFXSTYLEBIT_ALL ; > ;
+ < "À¯Çü Àû¿ë" ; SFXSTYLEBIT_USED ; > ;
+ < "»ç¿ëÀÚ Á¤ÀÇ À¯Çü" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ Text[ turkish ] = "Numaralama biçimi";
+ FilterList [ turkish ] =
+ {
+ < "Tümü" ; SFXSTYLEBIT_ALL ; > ;
+ < "Kullanýlan biçim" ; SFXSTYLEBIT_USED ; > ;
+ < "Kullanýcý biçimi" ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ };
+ };
+};
+
+
+
+ // Default Bitmap fuer Toolbox
+BITMAP BMP_FEHLT { FILE = "x.bmp" ; };
+ // Bitmap fuer die NumerierungsVorlagen im Organizer
+Bitmap BMP_STYLES_FAMILY_NUM { File = "styfamnu.bmp" ; };
+
+String STR_ENV_TITLE
+{
+ Text = "Briefumschlag" ;
+ Text [ English ] = "Envelop" ;
+ Text [ norwegian ] = "Konvolutt" ;
+ Text [ italian ] = "Busta" ;
+ Text [ portuguese_brazilian ] = "Envelope" ;
+ Text [ portuguese ] = "Envelope" ;
+ Text [ finnish ] = "Kirjekuori" ;
+ Text [ danish ] = "Konvolut" ;
+ Text [ french ] = "Enveloppe" ;
+ Text [ swedish ] = "Kuvert" ;
+ Text [ dutch ] = "Envelop" ;
+ Text [ spanish ] = "Sobre" ;
+ Text [ english_us ] = "Envelope" ;
+ Text[ chinese_simplified ] = "ÐÅ·â";
+ Text[ russian ] = "Êîíâåðò";
+ Text[ polish ] = "Koperta";
+ Text[ japanese ] = "••“›";
+ Text[ chinese_traditional ] = "«H«Ê";
+ Text[ arabic ] = "ÙÑÝ";
+ Text[ dutch ] = "Envelop";
+ Text[ chinese_simplified ] = "ÐÅ·â";
+ Text[ greek ] = "ÖÜêåëïò";
+ Text[ korean ] = "ºÀÅõ";
+ Text[ turkish ] = "Zarf";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_LAB_TITLE
+{
+ Text = "Etiketten" ;
+ Text [ English ] = "Labels" ;
+ Text [ norwegian ] = "Etiketter" ;
+ Text [ italian ] = "Etichette" ;
+ Text [ portuguese_brazilian ] = "Etiquetas" ;
+ Text [ portuguese ] = "Etiquetas" ;
+ Text [ finnish ] = "Tarrat" ;
+ Text [ danish ] = "Etiketter" ;
+ Text [ french ] = "Étiquettes" ;
+ Text [ swedish ] = "Etiketter" ;
+ Text [ dutch ] = "Etiketten" ;
+ Text [ spanish ] = "Etiquetas" ;
+ Text [ english_us ] = "Labels" ;
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ russian ] = "Íàêëåéêè";
+ Text[ polish ] = "Etykiety";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ chinese_traditional ] = "¶K¼Ð";
+ Text[ arabic ] = "ÈØÇÞÇÊ ÚäæäÉ";
+ Text[ dutch ] = "Etiketten";
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ greek ] = "ÅôéêÝôåò";
+ Text[ korean ] = "¶óº§";
+ Text[ turkish ] = "Etiket";
+ Text[ language_user1 ] = " ";
+};
+
+ // ShortName!!!
+String STR_HUMAN_SWDOC_NAME
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Text : Dokument */
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ english_us ] = "Text" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text [ portuguese ] = "Texto" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "ÇáäÕ";
+ Text[ dutch ] = "Tekst";
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_WRITER_DOCUMENT_FULLTYPE_31
+{
+ Text = "StarOffice 3.0 Text" ;
+ Text [ English ] = "StarOffice 3.0 Text" ;
+ Text [ english_us ] = "Text (StarOffice 3.0)" ;
+ Text [ portuguese_brazilian ] = "StarOffice 3.0 Text" ;
+ Text [ swedish ] = "StarOffice 3.0 text" ;
+ Text [ danish ] = "StarOffice 3.0 tekst" ;
+ Text [ italian ] = "Test StarOffice 3.0" ;
+ Text [ spanish ] = "Texto de StarOffice 3.0" ;
+ Text [ french ] = "Texte StarOffice 3.0" ;
+ Text [ dutch ] = "StarOffice 3.0 Tekst" ;
+ Text [ portuguese ] = "StarOffice 3.0 Text" ;
+ Text[ chinese_simplified ] = "StarOffice 3.0 Îı¾";
+ Text[ russian ] = "Òåêñò â StarOffice 3.0";
+ Text[ polish ] = "Tekst StarOffice 3.0";
+ Text[ japanese ] = "StarOffice 3.0 ÷½Ä";
+ Text[ chinese_traditional ] = "StarOffice 3.0 ¤å¦r¤å¥ó";
+ Text[ arabic ] = "äÕ ãä StarOffice 3.0";
+ Text[ dutch ] = "StarOffice 3.0 Tekst";
+ Text[ chinese_simplified ] = "StarOffice 3.0 Îı¾";
+ Text[ greek ] = "Êåßìåíï (StarOffice 3.0)";
+ Text[ korean ] = "ÅؽºÆ® (StarOffice 3.0)";
+ Text[ turkish ] = "StarOffice 3.0 metni";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_WRITER_DOCUMENT_FULLTYPE_40
+{
+ Text = "StarOffice 4.0 Text" ;
+ Text [ English ] = "StarOffice 4.0 Text" ;
+ Text [ english_us ] = "Text (StarOffice 4.0)" ;
+ Text [ portuguese_brazilian ] = "StarOffice 4.0 Text" ;
+ Text [ swedish ] = "StarOffice 4.0 text" ;
+ Text [ danish ] = "StarOffice 4.0 tekst" ;
+ Text [ italian ] = "Testo StarOffice 4.0" ;
+ Text [ spanish ] = "Texto de StarOffice 4.0" ;
+ Text [ french ] = "Texte StarOffice 4.0" ;
+ Text [ dutch ] = "StarOffice 4.0 Tekst" ;
+ Text [ portuguese ] = "Texto (StarOffice 4.0)" ;
+ Text[ chinese_simplified ] = "StarOffice 4.0 Îı¾";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Òåêñò â StarOffice 4.0";
+ Text[ polish ] = "Tekst StarOffice 4.0";
+ Text[ japanese ] = "StarOffice 4.0 ÷½Ä";
+ Text[ chinese_traditional ] = "StarOffice 4.0 ¤å¦r¤å¥ó";
+ Text[ arabic ] = "äÕ ãä StarOffice 4.0";
+ Text[ dutch ] = "StarOffice 4.0 Tekst";
+ Text[ chinese_simplified ] = "StarOffice 4.0 Îı¾";
+ Text[ greek ] = "Êåßìåíï (StarOffice 4.0)";
+ Text[ korean ] = "ÅؽºÆ® (StarOffice 4.0)";
+ Text[ turkish ] = "StarOffice 4.0 metni";
+};
+
+String STR_WRITER_DOCUMENT_FULLTYPE
+{
+ Text = "StarOffice 5.0 Text" ;
+ Text [ English ] = "StarOffice 5.0 Text" ;
+ Text [ english_us ] = "Text (StarOffice 5.0)" ;
+ Text [ portuguese_brazilian ] = "StarOffice 4.0 Text" ;
+ Text [ swedish ] = "StarOffice 5.0 text" ;
+ Text [ danish ] = "StarOffice 4.0 tekst" ;
+ Text [ italian ] = "Testo StarOffice 5.0" ;
+ Text [ spanish ] = "Texto de StarOffice 5.0" ;
+ Text [ french ] = "Texte StarOffice 5.0" ;
+ Text [ dutch ] = "StarOffice 5.0 Tekst" ;
+ Text [ portuguese ] = "Texto (StarOffice 5.0)" ;
+ Text[ chinese_simplified ] = "StarOffice 5.0 Îı¾";
+ Text[ russian ] = "Òåêñò â StarOffice 5.0";
+ Text[ polish ] = "Tekst StarOffice 5.0";
+ Text[ japanese ] = "StarOffice 5.0 ÷½Ä";
+ Text[ chinese_traditional ] = "StarOffice 5.0 ¤å¦r¤å¥ó";
+ Text[ arabic ] = "äÕ ãä StarOffice 5.0";
+ Text[ dutch ] = "StarOffice 5.0 Tekst";
+ Text[ chinese_simplified ] = "StarOffice 5.0 Îı¾";
+ Text[ greek ] = "Êåßìåíï (StarOffice 5.0)";
+ Text[ korean ] = "ÅؽºÆ® (StarOffice 5.0)";
+ Text[ turkish ] = "StarOffice 5.0 metni";
+ Text[ language_user1 ] = " ";
+};
+
+
+String STR_CANTOPEN
+{
+ TEXT = "Kann das Dokument nicht öffnen." ;
+ TEXT [ English ] = "Can't open document." ;
+ TEXT [ norwegian ] = "Kan ikke åpne dokumentet." ;
+ TEXT [ italian ] = "Impossibile aprire il documento" ;
+ TEXT [ portuguese_brazilian ] = "Não posso abrir o documento." ;
+ TEXT [ portuguese ] = "Impossível abrir o documento." ;
+ TEXT [ finnish ] = "Asiakirjaa ei voi avata." ;
+ TEXT [ danish ] = "Kan ikke åbne dokument." ;
+ TEXT [ french ] = "Impossible d'ouvrir le document." ;
+ TEXT [ swedish ] = "Kan inte öppna dokumentet." ;
+ TEXT [ dutch ] = "Document kan niet worden geopend." ;
+ TEXT [ spanish ] = "No es posible abrir el documento." ;
+ TEXT [ english_us ] = "Cannot open document." ;
+ TEXT[ chinese_simplified ] = "ÎÞ·¨´ò¿ªÕâ¸öÎĵµ¡£";
+ TEXT[ russian ] = "Îòêðûòü äîêóìåíò íåâîçìîæíî.";
+ TEXT[ polish ] = "Nie mo¿e otworzyæ dokumentu.";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝÄ‚ðŠJ‚­‚±‚Æ‚ª‚Å‚«‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "µLªk¶}±Ò³o­Ó¤å¥ó¡C";
+ TEXT[ arabic ] = "áÇ íÓÊØíÚ ÝÊÍ ÇáãÓÊäÏ.";
+ TEXT[ dutch ] = "Document kan niet worden geopend.";
+ TEXT[ chinese_simplified ] = "ÎÞ·¨´ò¿ªÕâ¸öÎĵµ¡£";
+ TEXT[ greek ] = "Äåí åßíáé äõíáôüí íá áíïé÷èåß ôï Ýããñáöï.";
+ TEXT[ korean ] = "¹®¼­¸¦ ¿­¼ö ¾ø½À´Ï´Ù.";
+ TEXT[ turkish ] = "Belge açýlamýyor.";
+ TEXT[ language_user1 ] = " ";
+};
+
+String STR_CANTCREATE
+{
+ TEXT = "Das Dokument konnte nicht erzeugt werden." ;
+ TEXT [ English ] = "Can't create document." ;
+ TEXT[ italian ] = "Impossibile creare un documento";
+ TEXT[ portuguese_brazilian ] = "Can't create document.";
+ TEXT[ portuguese ] = "Foi impossível criar documento.";
+ TEXT[ danish ] = "Det var ikke muligt at oprette dokumentet.";
+ TEXT[ french ] = "Impossible de créer le document.";
+ TEXT[ swedish ] = "Dokumentet kunde inte skapas.";
+ TEXT[ dutch ] = "Het document kon niet worden gemaakt.";
+ TEXT[ spanish ] = "El documento no pudo ser creado.";
+ TEXT[ english_us ] = "Can't create document.";
+ TEXT[ chinese_simplified ] = "ÎÞ·¨Éú³ÉÎĵµ";
+ TEXT[ russian ] = "Ýòîò äîêóìåíò ñîçäàòü íåâîçìîæíî.";
+ TEXT[ polish ] = "Dokument nie móg³ zostaæ utworzony.";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝÄ‚ð쬂ł«‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "µLªk¥Í¦¨¤å¥ó";
+ TEXT[ arabic ] = "ÊÚÐÑ ÅäÔÇÁ ÇáãÓÊäÏ.";
+ TEXT[ dutch ] = "Het document kon niet worden gemaakt.";
+ TEXT[ chinese_simplified ] = "ÎÞ·¨Éú³ÉÎĵµ";
+ TEXT[ greek ] = "Äåí åßíáé äõíáôÞ ç äçìéïõñãßá ôïõ åããñÜöïõ.";
+ TEXT[ korean ] = "¹®¼­¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù.";
+ TEXT[ turkish ] = "Belge oluþturulamadý.";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DLLNOTFOUND
+{
+ TEXT = "Filter nicht gefunden." ;
+ TEXT [ English ] = "Filter not found." ;
+ TEXT [ norwegian ] = "Finner ikke filter." ;
+ TEXT [ italian ] = "Filtro non trovato." ;
+ TEXT [ portuguese_brazilian ] = "Filtro não encontrado." ;
+ TEXT [ portuguese ] = "Filtro não encontrado." ;
+ TEXT [ finnish ] = "Suodinta ei löydy." ;
+ TEXT [ danish ] = "Filter blev ikke fundet." ;
+ TEXT [ french ] = "Filtre introuvable." ;
+ TEXT [ swedish ] = "Filter hittades ej." ;
+ TEXT [ dutch ] = "Filter niet gevonden." ;
+ TEXT [ spanish ] = "No se encontró el filtro." ;
+ TEXT [ english_us ] = "Filter not found." ;
+ TEXT[ chinese_simplified ] = "ûÓÐÕÒµ½É¸Ñ¡¡£";
+ TEXT[ russian ] = "Ôèëüòð íåíàéäåí.";
+ TEXT[ polish ] = "Filtru nie znaleziono.";
+ TEXT[ japanese ] = "̨ÙÀ‚ªŒ©‚‚©‚è‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "¨S¦³§ä¨ì¿z¿ï¡C";
+ TEXT[ arabic ] = "ÊÚÐÑ ÇáÚËæÑ Úáì ÇáÝáÊÑ.";
+ TEXT[ dutch ] = "Filter niet gevonden.";
+ TEXT[ chinese_simplified ] = "ûÓÐÕÒµ½É¸Ñ¡¡£";
+ TEXT[ greek ] = "Äåí âñÝèçêå ôï ößëôñï.";
+ TEXT[ korean ] = "ÇÊÅÍ°¡ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ TEXT[ turkish ] = "Filtre bulunamadý.";
+ TEXT[ language_user1 ] = " ";
+};
+
+
+String STR_UNBENANNT
+{
+ TEXT = "Unbenannt" ;
+ TEXT [ English ] = "Untitled" ;
+ TEXT [ norwegian ] = "Uten tittel" ;
+ TEXT [ italian ] = "Senza nome" ;
+ TEXT [ portuguese_brazilian ] = "Sem título" ;
+ TEXT [ portuguese ] = "Sem nome" ;
+ TEXT [ finnish ] = "Nimetön" ;
+ TEXT [ danish ] = "Ikke-navngivet" ;
+ TEXT [ french ] = "Sans titre" ;
+ TEXT [ swedish ] = "Namnlös" ;
+ TEXT [ dutch ] = "Naamloos" ;
+ TEXT [ spanish ] = "Sin nombre" ;
+ TEXT [ english_us ] = "Untitled" ;
+ TEXT[ chinese_simplified ] = "δÃüÃû";
+ TEXT[ russian ] = "Áåç èìåíè";
+ TEXT[ polish ] = "Bez tytu³u";
+ TEXT[ japanese ] = "–³‘è";
+ TEXT[ chinese_traditional ] = "¥¼©R¦W";
+ TEXT[ arabic ] = "ÈÏæä ÚäæÇä";
+ TEXT[ dutch ] = "Naamloos";
+ TEXT[ chinese_simplified ] = "δÃüÃû";
+ TEXT[ greek ] = "Äß÷ùò üíïìá";
+ TEXT[ korean ] = "Á¦¸ñ ¾øÀ½";
+ TEXT[ turkish ] = "Adsýz";
+ TEXT[ language_user1 ] = " ";
+};
+
+
+String STR_LOAD_GLOBAL_DOC
+{
+ TEXT = "Name und Pfad des Globaldokuments" ;
+ TEXT [ English ] = "Name and path of the global document" ;
+ Text [ english_us ] = "Name and Path of Master Document" ;
+ Text [ portuguese_brazilian ] = "Name und Pfad des Globaldokuments" ;
+ Text [ swedish ] = "Samlingsdokumentets namn och sökväg" ;
+ Text [ danish ] = "Hoveddokumentets navn og sti" ;
+ Text [ italian ] = "Nome e percorso del documento master" ;
+ Text [ spanish ] = "Nombre y ruta del documento maestro" ;
+ Text [ french ] = "Nom et chemin du document maître" ;
+ Text [ dutch ] = "Naam en pad van het master-document" ;
+ Text [ portuguese ] = "Nome e atalho do documento-mestre" ;
+ Text[ chinese_simplified ] = "Ö÷¿ØÎĵµµÄÃû³ÆºÍ·¾¶";
+ Text[ russian ] = "Èìÿ è ïóòü ãëàâíîãî äîêóìåíòà";
+ Text[ polish ] = "Nazwa i œcie¿ka dokumentu g³ównego";
+ Text[ japanese ] = "ϽÀ°ÄÞ·­ÒÝÄ‚Ì–¼‘O‚ÆÊß½";
+ Text[ chinese_traditional ] = "¥D±±¤å¥óªº¦WºÙ©M¸ô®|";
+ Text[ arabic ] = "ÇÓã æãÓÇÑ ÇáãÓÊäÏ ÇáÔÇãá";
+ Text[ dutch ] = "Naam en pad van het master-document";
+ Text[ chinese_simplified ] = "Ö÷¿ØÎĵµµÄÃû³ÆºÍ·¾¶";
+ Text[ greek ] = "¼íïìá êáé äéáäñïìÞ ôïõ êõñßïõ åããñÜöïõ";
+ Text[ korean ] = "¸¶½ºÅ¸ ¹®¼­ÀÇ À̸§°ú °æ·Î";
+ Text[ turkish ] = "Ana belgenin adý ve veri yolu";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_LOAD_HTML_DOC
+{
+ TEXT = "Name und Pfad des HTML Dokuments" ;
+ TEXT [ English ] = "Name and path of the html document" ;
+ Text [ english_us ] = "Name and path of the html document" ;
+ Text [ portuguese_brazilian ] = "Name und Pfad des HTML Dokuments" ;
+ Text [ swedish ] = "HTML-dokumentets namn och sökväg" ;
+ Text [ danish ] = "HTML-dokumentets navn og sti" ;
+ Text [ italian ] = "Nome e percorso del documento HTML " ;
+ Text [ spanish ] = "Nombre y ruta del documento HTML " ;
+ Text [ french ] = "Nom et chemin du document HTML" ;
+ Text [ dutch ] = "Naam en pad van het HTML document" ;
+ Text [ portuguese ] = "Nome e atalho do documento HTML" ;
+ Text[ chinese_simplified ] = "HTML ÎĵµÃû³ÆºÍ·¾¶";
+ Text[ russian ] = "Èìÿ è ïóòü äîêóìåíòà HTML";
+ Text[ polish ] = "Nazwa i œcie¿ka dokumentu HTML";
+ Text[ japanese ] = "HTMLŒ`Ž®ÄÞ·­ÒÝÄ‚Ì–¼‘O‚ÆÊß½";
+ Text[ chinese_traditional ] = "HTML ¤å¥ó¦WºÙ©M¸ô®|";
+ Text[ arabic ] = "ÇÓã æãÓÇÑ ãÓÊäÏ HTML";
+ Text[ dutch ] = "Naam en pad van het HTML document";
+ Text[ chinese_simplified ] = "HTML ÎĵµÃû³ÆºÍ·¾¶";
+ Text[ greek ] = "¼íïìá êáé äéáäñïìÞ ôïõ åããñÜöïõ HTML";
+ Text[ korean ] = "HTML ¸¶½ºÅ¸ ¹®¼­ÀÇ À̸§°ú °æ·Î";
+ Text[ turkish ] = "HTML belgesinin adý ve veri yolu";
+ Text[ language_user1 ] = " ";
+};
+
+InfoBox MSG_ERROR_SEND_MAIL
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ MESSAGE = "Fehler beim Versenden der Nachricht." ;
+ MESSAGE [ English ] = "Error while sending mail." ;
+ MESSAGE [ norwegian ] = "Feil ved sending av mail." ;
+ MESSAGE [ italian ] = "Errore durante l'invio di un messaggio." ;
+ MESSAGE [ portuguese_brazilian ] = "Erro ao enviar correio." ;
+ MESSAGE [ portuguese ] = "Erro ao enviar correio." ;
+ MESSAGE [ finnish ] = "Virhe sähköpostia lähetettäessä." ;
+ MESSAGE [ danish ] = "Fejl ved afsendelse af meddelelsen." ;
+ MESSAGE [ french ] = "Erreur lors de l'envoi du message." ;
+ MESSAGE [ swedish ] = "Fel vid sändning av meddelande." ;
+ MESSAGE [ dutch ] = "Fout bij verzenden van bericht." ;
+ MESSAGE [ spanish ] = "Error al enviar el mensaje." ;
+ MESSAGE [ english_us ] = "Error sending mail." ;
+ MESSAGE[ chinese_simplified ] = "Ôڼķ¢µç×ÓÓʼþʱ·¢Éú´íÎó¡£";
+ MESSAGE[ language_user1 ] = " ";
+ MESSAGE[ russian ] = "Îøèáêà ïðè îòïðàâëåíèè ñîîáùåíèÿ.";
+ MESSAGE[ polish ] = "B³¹d przy wysy³aniu wiadomoœci.";
+ MESSAGE[ japanese ] = "Ò°Ù‘—M‚ÌÛ‚Ì´×°";
+ MESSAGE[ chinese_traditional ] = "¦b±Hµo¹q¤l¶l¥ó®Éµo¥Í¿ù»~¡C";
+ MESSAGE[ arabic ] = "ÎØà ÃËäÇÁ ÅÑÓÇá ÇáÑÓÇáÉ.";
+ MESSAGE[ dutch ] = "Fout bij verzenden van bericht.";
+ MESSAGE[ chinese_simplified ] = "Ôڼķ¢µç×ÓÓʼþʱ·¢Éú´íÎó¡£";
+ MESSAGE[ greek ] = "ÓöÜëìá êáôÜ ôçí áðïóôïëÞ ôïõ ìçíýìáôïò.";
+ MESSAGE[ korean ] = "¸ÞÀÏ º¸³»±â ¿À·ù.";
+ MESSAGE[ turkish ] = "Ýleti gönderilirken hata oluþtu.";
+};
+InfoBox MSG_ERROR_PASSWD
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ MESSAGE = "Fehlerhaftes Passwort." ;
+ MESSAGE [ English ] = "Password doesn't match." ;
+ MESSAGE [ norwegian ] = "Passord passer ikke." ;
+ MESSAGE [ italian ] = "La password non corrisponde." ;
+ MESSAGE [ portuguese_brazilian ] = "A senha não combina." ;
+ MESSAGE [ portuguese ] = "A senha não é válida." ;
+ MESSAGE [ finnish ] = "Salasana ei kelpaa." ;
+ MESSAGE [ danish ] = "Fejagtig adgangskode" ;
+ MESSAGE [ french ] = "Mot de passe incorrect." ;
+ MESSAGE [ swedish ] = "Felaktigt lösenord." ;
+ MESSAGE [ dutch ] = "Wachtwoord niet correct." ;
+ MESSAGE [ spanish ] = "Contraseña no válida" ;
+ MESSAGE [ english_us ] = "Invalid password." ;
+ MESSAGE[ chinese_simplified ] = "´íÎóµÄ¿ÚÁî¡£";
+ MESSAGE[ russian ] = "Îøèáêà â ïàðîëå.";
+ MESSAGE[ polish ] = "Nieprawid³owe has³o.";
+ MESSAGE[ japanese ] = "³‚µ‚­‚È‚¢Ê߽ܰÄÞ";
+ MESSAGE[ chinese_traditional ] = "±K½XµL®Ä¡C";
+ MESSAGE[ arabic ] = "ßáãÉ ÓÑ ÛíÑ ÕÇáÍÉ.";
+ MESSAGE[ dutch ] = "Wachtwoord niet correct.";
+ MESSAGE[ chinese_simplified ] = "´íÎóµÄ¿ÚÁî¡£";
+ MESSAGE[ greek ] = "ÅóöáëìÝíïò êùäéêüò ðñüóâáóçò.";
+ MESSAGE[ korean ] = "À¯È¿ÇÏÁö ¾ÊÀº Æнº¿öµå";
+ MESSAGE[ turkish ] = "Yanlýþ þifre.";
+ MESSAGE[ language_user1 ] = " ";
+};
+
+/*
+ * auskommentiert, da die Toolbox z. Zt. nicht aus der Resource
+ * geladen werden kann
+Window WIN_TOOLBOX {
+HelpText [English] = "";
+HelpText [norwegian] = "";
+HelpText [italian] = "";
+HelpText [portuguese_brazilian] = "";
+HelpText [portuguese] = "";
+HelpText [finnish] = "";
+HelpText [danish] = "";
+HelpText [french] = "";
+HelpText [swedish] = "";
+HelpText [dutch] = "";
+HelpText [spanish] = "";
+HelpText [english_us] = "";
+HelpText = "Die Objektleiste enthält, je nach Bedarf, Buttons für die "
+ "Bearbeitung von Text, Rahmen, Grafik, Tabellen oder "
+ "Numerierungen.";
+HelpText[English] = "The objectbar contains, depending on your current "
+ "working context, buttons for the editing of text, "
+ "frames, graphics, tables or numberings.";
+HelpText[norwegian] = "Objektlinjen inneholder, avhengig av din aktuelle arbeidssituasjon, "
+ "knapper for redigering av tekst,"
+ " rammer, grafikker, tabeller eller nummereringer.";
+HelpText[italian] = "La barra dell'oggetto attivo contiene, in base al proprio"
+ "contesto lavorativo, pulsanti per la modifica del testo,"
+ "cornici, grafici, tabelle o numerazioni..";
+HelpText[portuguese_brazilian] = "A barra de objetos conter , dependendo do contexto de trabalho "
+ "atual, bot es para edição de texto, "
+ "molduras, gráficos, tabelas ou numeração.";
+HelpText[portuguese] = "A barra de objectos conterá, dependendo do contexto de trabalho "
+ "actual, botões para edição de texto, "
+ "molduras, gráficos, tabelas ou numeração.";
+HelpText[finnish] = "Toimintorivillä on tilanteen mukaan painikkeita, "
+ "joilla muokataan tekstiä, kehyksiä, kuvia, "
+ "taulukoita tai numeronteja.";
+HelpText[danish] = "Afhængig af din aktuelle arbejdskontekst"
+ " rummer ikonbåndet knapper for redigering af tekst, "
+ "tekstruder, grafik, tabeller eller nummereringer.";
+HelpText[french] = "Selon votre contexte de travail, la barre d'objets "
+ "contient des boutons de modification du texte, des "
+ "cadres, des graphiques, des tables ou des numérotations.";
+HelpText[swedish] = "Objektlisten innehåller, beroende på aktuellt"
+ "arbetsområde, knappar för redigering av text,"
+ "ramar, bilder, tabeller eller numreringar.";
+HelpText[dutch] = "Afhankelijk van de huidige werkomgeving bevat de objectbalk "
+ "knoppen voor het bewerken van tekst, kaders, illustraties "
+ "of nummeringen.";
+HelpText[spanish] = "La barra de objetos contiene, dependiendo del contexto "
+ "de trabajo actual, botones para la edición de texto, "
+ "marcos, gráficos, tablas o numeraciones.";
+HelpText[english_us] = "The objectbar contains, depending on your current "
+ "working context, buttons for the editing of text, "
+ "frames, graphics, tables or numberings.";
+ OUTPUTSIZE = TRUE;
+ BORDER = TRUE;
+ Size = (28,27);
+};
+ */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+String RID_BUILDVERSION
+{
+ TEXT = UPDVER ;
+};
+
+
+String STR_FMT_STD
+{
+ TEXT = "(keins)" ;
+ TEXT [ English ] = "(none)" ;
+ TEXT [ norwegian ] = "(ingen)" ;
+ TEXT [ italian ] = "(senza)" ;
+ TEXT [ portuguese_brazilian ] = "(nenhum)" ;
+ TEXT [ portuguese ] = "(nenhum)" ;
+ TEXT [ finnish ] = "(ei mitään)" ;
+ TEXT [ danish ] = "(ingen)" ;
+ TEXT [ french ] = "(aucun(e))" ;
+ TEXT [ swedish ] = "(ingen)" ;
+ TEXT [ dutch ] = "(geen)" ;
+ TEXT [ spanish ] = "(ninguna)" ;
+ TEXT [ english_us ] = "(none)" ;
+ TEXT[ chinese_simplified ] = "(ÎÞ)";
+ TEXT[ russian ] = "(áåç)";
+ TEXT[ polish ] = "(brak)";
+ TEXT[ japanese ] = "(‚È‚µ)";
+ TEXT[ chinese_traditional ] = "(µL)";
+ TEXT[ arabic ] = "(ÈÏæä)";
+ TEXT[ dutch ] = "(geen)";
+ TEXT[ chinese_simplified ] = "(ÎÞ)";
+ TEXT[ greek ] = "(êáíÝíá)";
+ TEXT[ korean ] = "(¾øÀ½)";
+ TEXT[ turkish ] = "(yok)";
+ TEXT[ language_user1 ] = " ";
+};
+
+String STR_DOC_STAT
+{
+ TEXT = "Statistik" ;
+ TEXT [ English ] = "Statistics" ;
+ TEXT [ norwegian ] = "Statistics" ;
+ TEXT [ italian ] = "Statistiche" ;
+ TEXT [ portuguese_brazilian ] = "Estatística" ;
+ TEXT [ portuguese ] = "Estatística" ;
+ TEXT [ finnish ] = "Tilasto" ;
+ TEXT [ danish ] = "Statistik" ;
+ TEXT [ french ] = "Statistique" ;
+ TEXT [ swedish ] = "Statistik" ;
+ TEXT [ dutch ] = "Statistiek" ;
+ TEXT [ spanish ] = "Estadística" ;
+ TEXT [ english_us ] = "Statistics" ;
+ TEXT[ chinese_simplified ] = "ͳ¼Æ";
+ TEXT[ russian ] = "Ñòàòèñòèêà";
+ TEXT[ polish ] = "Statystyka";
+ TEXT[ japanese ] = "“Œv";
+ TEXT[ chinese_traditional ] = "²Î­p";
+ TEXT[ arabic ] = "ÅÍÕÇÆíÇÊ";
+ TEXT[ dutch ] = "Statistiek";
+ TEXT[ chinese_simplified ] = "ͳ¼Æ";
+ TEXT[ greek ] = "ÓôáôéóôéêÜ";
+ TEXT[ korean ] = "Åë°è";
+ TEXT[ turkish ] = "Ýstatistik";
+ TEXT[ language_user1 ] = " ";
+};
+
+ // ----------------------------
+ // Statusleisten-Ueberschriften
+ // ----------------------------
+
+String STR_STATSTR_W4WREAD
+{
+ Text = "Dokument wird importiert..." ;
+ Text [ English ] = "Importing..." ;
+ Text [ norwegian ] = "Importerer..." ;
+ Text [ italian ] = "Il documento viene importato..." ;
+ Text [ portuguese_brazilian ] = "Importando..." ;
+ Text [ portuguese ] = "A importar documento..." ;
+ Text [ finnish ] = "Tuonti..." ;
+ Text [ danish ] = "Importerer dokument..." ;
+ Text [ french ] = "Import du document en cours..." ;
+ Text [ swedish ] = "Dokument importeras..." ;
+ Text [ dutch ] = "Document wordt geïmporteerd..." ;
+ Text [ spanish ] = "Importando el documento..." ;
+ Text [ english_us ] = "Importing document..." ;
+ Text[ chinese_simplified ] = "ÊäÈëÎĵµ...";
+ Text[ russian ] = "Èìïîðò äîêóìåíòà...";
+ Text[ polish ] = "Importowanie dokumentu...";
+ Text[ japanese ] = "•¶‘‚̲ÝÎß°Ä...";
+ Text[ chinese_traditional ] = "¿é¤J¤å¥ó...";
+ Text[ arabic ] = "ÌÇÑí ÇÓÊíÑÇÏ ÇáãÓÊäÏ...";
+ Text[ dutch ] = "Document wordt geïmporteerd...";
+ Text[ chinese_simplified ] = "ÊäÈëÎĵµ...";
+ Text[ greek ] = "ÅéóáãùãÞ åããñÜöïõ...";
+ Text[ korean ] = "¹®¼­ °¡Á®¿À±â...";
+ Text[ turkish ] = "Belge içe aktarýlýyor...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_W4WWRITE
+{
+ Text = "Dokument wird exportiert..." ;
+ Text [ English ] = "Exporting..." ;
+ Text [ norwegian ] = "Eksporterer..." ;
+ Text [ italian ] = "Il documento viene esportato..." ;
+ Text [ portuguese_brazilian ] = "Exportando..." ;
+ Text [ portuguese ] = "A exportar documento..." ;
+ Text [ finnish ] = "Vienti..." ;
+ Text [ danish ] = "Eksporterer dokument" ;
+ Text [ french ] = "Export du document en cours..." ;
+ Text [ swedish ] = "Dokument exporteras..." ;
+ Text [ dutch ] = "Document wordt geëxporteerd..." ;
+ Text [ spanish ] = "Exportando el documento..." ;
+ Text [ english_us ] = "Exporting document..." ;
+ Text[ chinese_simplified ] = "Êä³öÎĵµ...";
+ Text[ russian ] = "Ýêñïîðò äîêóìåíòà...";
+ Text[ polish ] = "Eksportowanie dokumentu...";
+ Text[ japanese ] = "•¶‘‚Ì´¸½Îß°Ä...";
+ Text[ chinese_traditional ] = "¿é¥X¤å¥ó...";
+ Text[ arabic ] = "ÌÇÑí ÊÕÏíÑ ÇáãÓÊäÏ...";
+ Text[ dutch ] = "Document wordt geëxporteerd...";
+ Text[ chinese_simplified ] = "Êä³öÎĵµ...";
+ Text[ greek ] = "ÅîáãùãÞ åããñÜöïõ...";
+ Text[ korean ] = "¹®¼­ º¸³»±â...";
+ Text[ turkish ] = "Belge dýþa aktarýlýyor...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_SWGREAD
+{
+ Text = "Dokument wird geladen..." ;
+ Text [ English ] = "Loading..." ;
+ Text [ norwegian ] = "Laster inn..." ;
+ Text [ italian ] = "Il documento viene caricato..." ;
+ Text [ portuguese_brazilian ] = "Carregando..." ;
+ Text [ portuguese ] = "A carregar documento..." ;
+ Text [ finnish ] = "Lataus..." ;
+ Text [ danish ] = "Indlæser dokument..." ;
+ Text [ french ] = "Document en cours de chargement..." ;
+ Text [ swedish ] = "Dokument laddas..." ;
+ Text [ dutch ] = "Document wordt gemaakt..." ;
+ Text [ spanish ] = "Cargando el documento..." ;
+ Text [ english_us ] = "Loading document..." ;
+ Text[ chinese_simplified ] = "×°ÔØÎĵµ...";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Äîêóìåíò çàãðóæàåòñÿ...";
+ Text[ polish ] = "£adowanie dokumentu...";
+ Text[ japanese ] = "•¶‘‚Ì“Ç‚Ýž‚Ý...";
+ Text[ chinese_traditional ] = "¸Ë¸ü¤å¥ó...";
+ Text[ arabic ] = "ÌÇÑí ÊÍãíá ÇáãÓÊäÏ...";
+ Text[ dutch ] = "Document wordt gemaakt...";
+ Text[ chinese_simplified ] = "×°ÔØÎĵµ...";
+ Text[ greek ] = "Ôï Ýããñáöï öïñôþíåôáé...";
+ Text[ korean ] = "¹®¼­ ·Îµù...";
+ Text[ turkish ] = "Belge yükleniyor...";
+};
+
+String STR_STATSTR_SWGWRITE
+{
+ Text = "Dokument wird gespeichert..." ;
+ Text [ English ] = "Saving..." ;
+ Text [ norwegian ] = "Lagrer..." ;
+ Text [ italian ] = "Il documento viene salvato..." ;
+ Text [ portuguese_brazilian ] = "Gravando..." ;
+ Text [ portuguese ] = "A guardar documento..." ;
+ Text [ finnish ] = "Tallennus..." ;
+ Text [ danish ] = "Gemmer dokument..." ;
+ Text [ french ] = "Enreg. du document en cours..." ;
+ Text [ swedish ] = "Dokument sparas..." ;
+ Text [ dutch ] = "Document wordt opgeslagen..." ;
+ Text [ spanish ] = "Guardando el documento..." ;
+ Text [ english_us ] = "Saving document..." ;
+ Text = "Dokument wird gespeichert..." ;
+ Text[ chinese_simplified ] = "´æÅÌÎĵµ...";
+ Text[ russian ] = "Äîêóìåíò ñîõðàíÿåòñÿ...";
+ Text[ polish ] = "Zapisywanie dokumentu...";
+ Text[ japanese ] = "•¶‘‚Ì•Û‘¶...";
+ Text[ chinese_traditional ] = "¥¿¦bÀx¦s¤å¥ó...";
+ Text[ arabic ] = "ÌÇÑí ÍÝÙ ÇáãÓÊäÏ...";
+ Text[ dutch ] = "Document wordt opgeslagen...";
+ Text[ chinese_simplified ] = "´æÅÌÎĵµ...";
+ Text[ greek ] = "ÁðïèÞêåõóç åããñÜöïõ...";
+ Text[ korean ] = "¹®¼­ ÀúÀå...";
+ Text[ turkish ] = "Belge kaydediliyor...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_REFORMAT
+{
+ TEXT = "Neuformatierung des Dokumentes..." ;
+ TEXT [ English ] = "Repaginating..." ;
+ TEXT [ norwegian ] = "Gjør sidenummerering på nyttRepaginating..." ;
+ TEXT [ italian ] = "Riformattazione del documento..." ;
+ TEXT [ portuguese_brazilian ] = "Repaginando..." ;
+ TEXT [ portuguese ] = "Nova formatação do documento..." ;
+ TEXT [ finnish ] = "Sivutus..." ;
+ TEXT [ danish ] = "Genformatering af dokumentet..." ;
+ TEXT [ french ] = "Repagination du document..." ;
+ TEXT [ swedish ] = "Omformatering av dokumentet..." ;
+ TEXT [ dutch ] = "Bezig met nieuwe opmaak..." ;
+ TEXT [ spanish ] = "Reformateado del documento..." ;
+ TEXT [ english_us ] = "Repagination..." ;
+ TEXT[ chinese_simplified ] = "ÖØÐÂÖÆ×÷Îĵµ¸ñʽ...";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ russian ] = "Íîâîå ôîðìàòèðîâàíèå äîêóìåíòà...";
+ TEXT[ polish ] = "Ponowne formatowanie dokumentu...";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝÄ‚ÌV‹K‘Ž®Ý’è...";
+ TEXT[ chinese_traditional ] = "­«·s¨î§@¤å¥ó®æ¦¡...";
+ TEXT[ arabic ] = "ÅÚÇÏÉ ÊäÓíÞ ÇáãÓÊäÏ...";
+ TEXT[ dutch ] = "Bezig met nieuwe opmaak...";
+ TEXT[ chinese_simplified ] = "ÖØÐÂÖÆ×÷Îĵµ¸ñʽ...";
+ TEXT[ greek ] = "Ìïñöïðïßçóç åê íÝïõ ôïõ åããñÜöïõ...";
+ TEXT[ korean ] = "ÆäÀÌÁö ¸Å±â±â...";
+ TEXT[ turkish ] = "Belge yeniden formatlanýyor...";
+};
+
+String STR_STATSTR_AUTOFORMAT
+{
+ TEXT = "Autoformatierung des Dokumentes..." ;
+ TEXT [ English ] = "Autoformatting..." ;
+ TEXT [ norwegian ] = "Autoformaterer..." ;
+ TEXT [ italian ] = "Formattazione automatica..." ;
+ TEXT [ portuguese_brazilian ] = "Formatação automática..." ;
+ TEXT [ portuguese ] = "A formatar documento automaticamente..." ;
+ TEXT [ finnish ] = "Automaattimuotoilu..." ;
+ TEXT [ danish ] = "Autoformatering af dokumentet..." ;
+ TEXT [ french ] = "Mise en forme automatique du document..." ;
+ TEXT [ swedish ] = "Autoformatering av dokumentet..." ;
+ TEXT [ dutch ] = "Bezig met automatisch opmaken..." ;
+ TEXT [ spanish ] = "AutoFormato del documento..." ;
+ TEXT [ english_us ] = "Formatting document automatically..." ;
+ TEXT[ chinese_simplified ] = "Îĵµ×Ô¶¯¸ñʽ»¯...";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ russian ] = "Àâòîôîðìàòèðîâàíèå äîêóìåíòà...";
+ TEXT[ polish ] = "Autoformatowanie dokumentu";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝĂ̵°ÄÌ«°Ï¯Ä...";
+ TEXT[ chinese_traditional ] = "ª«¥ó¦Û°Ê®æ¦¡¤Æ...";
+ TEXT[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí ááãÓÊäÏ...";
+ TEXT[ dutch ] = "Bezig met automatisch opmaken...";
+ TEXT[ chinese_simplified ] = "Îĵµ×Ô¶¯¸ñʽ»¯...";
+ TEXT[ greek ] = "Áõôüìáôç ìïñöïðïßçóç ôïõ åããñÜöïõ...";
+ TEXT[ korean ] = "ÀÚµ¿ ¹®¼­ ¼­½Ä ¼³Á¤...";
+ TEXT[ turkish ] = "Otomatik belge formatlama...";
+};
+
+String STR_STATSTR_IMPGRF
+{
+ Text = "Grafik wird importiert..." ;
+ Text [ English ] = "Importing picture..." ;
+ Text [ norwegian ] = "Importerer bilde..." ;
+ Text [ italian ] = "L'immagine viene importata..." ;
+ Text [ portuguese_brazilian ] = "Importando figura..." ;
+ Text [ portuguese ] = "A importar imagem..." ;
+ Text [ finnish ] = "Kuvan tuonti..." ;
+ Text [ danish ] = "Importerer billede..." ;
+ Text [ french ] = "Import de l'image en cours..." ;
+ Text [ swedish ] = "Grafik importeras..." ;
+ Text [ dutch ] = "Afbeelding wordt geïmporteerd..." ;
+ Text [ spanish ] = "Importando imagen..." ;
+ Text [ english_us ] = "Importing graphics..." ;
+ Text[ chinese_simplified ] = "ÊäÈëͼÐÎ...";
+ Text[ russian ] = "Èìïîðò ãðàôèêè...";
+ Text[ polish ] = "Importowanie grafiki...";
+ Text[ japanese ] = "}‚̲ÝÎß°Ä’†...";
+ Text[ chinese_traditional ] = "¿é¤J¹Ï¤ù...";
+ Text[ arabic ] = "ÌÇÑí ÇÓÊíÑÇÏ ÇáÑÓã...";
+ Text[ dutch ] = "Afbeelding wordt geïmporteerd...";
+ Text[ chinese_simplified ] = "ÊäÈëͼÐÎ...";
+ Text[ greek ] = "ÅéóáãùãÞ ãñáöéêïý...";
+ Text[ korean ] = "±×·¡ÇÈ °¡Á®¿À±â...";
+ Text[ turkish ] = "Grafik içe aktarýlýyor...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_SEARCH
+{
+ Text = "Suche..." ;
+ Text [ English ] = "search..." ;
+ Text [ norwegian ] = "Søker..." ;
+ Text [ italian ] = "Cerca..." ;
+ Text [ portuguese_brazilian ] = "buscar..." ;
+ Text [ portuguese ] = "A localizar..." ;
+ Text [ finnish ] = "Etsintä..." ;
+ Text [ danish ] = "Søger..." ;
+ Text [ french ] = "Recherche..." ;
+ Text [ swedish ] = "Söker..." ;
+ Text [ dutch ] = "Bezig met zoeken..." ;
+ Text [ spanish ] = "Búsqueda..." ;
+ Text [ english_us ] = "Search..." ;
+ Text[ chinese_simplified ] = "ËÑÑ°...";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ïîèñê...";
+ Text[ polish ] = "Szukaj...";
+ Text[ japanese ] = "ŒŸõ...";
+ Text[ chinese_traditional ] = "´M§ä...";
+ Text[ arabic ] = "ÈÍË...";
+ Text[ dutch ] = "Bezig met zoeken...";
+ Text[ chinese_simplified ] = "ËÑÑ°...";
+ Text[ greek ] = "ÁíáæÞôçóç...";
+ Text[ korean ] = "ã±â...";
+ Text[ turkish ] = "Ara...";
+};
+
+String STR_STATSTR_FORMAT
+{
+ Text = "Formatiere..." ;
+ Text [ English ] = "Formatting..." ;
+ Text [ norwegian ] = "Formaterer..." ;
+ Text [ italian ] = "Formattazione..." ;
+ Text [ portuguese_brazilian ] = "Formatando..." ;
+ Text [ portuguese ] = "A formatar..." ;
+ Text [ finnish ] = "Muotoilu..." ;
+ Text [ danish ] = "Formaterer..." ;
+ Text [ french ] = "Formatage..." ;
+ Text [ swedish ] = "Formaterar..." ;
+ Text [ dutch ] = "Bezig met opmaken..." ;
+ Text [ spanish ] = "Formateando..." ;
+ Text [ english_us ] = "Formatting..." ;
+ Text[ chinese_simplified ] = "¸ñʽ»¯...";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ôîðìàò...";
+ Text[ polish ] = "Formatuj";
+ Text[ japanese ] = "‘Ž®Ý’è...";
+ Text[ chinese_traditional ] = "®æ¦¡¤Æ...";
+ Text[ arabic ] = "ÊäÓíÞ...";
+ Text[ dutch ] = "Bezig met opmaken...";
+ Text[ chinese_simplified ] = "¸ñʽ»¯...";
+ Text[ greek ] = "Ìïñöïðïßçóç...";
+ Text[ korean ] = "¼­½Ä ¼³Á¤...";
+ Text[ turkish ] = "Formatlanýyor...";
+};
+
+String STR_STATSTR_PRINT
+{
+ Text = "Drucke..." ;
+ Text [ English ] = "Printing..." ;
+ Text [ norwegian ] = "Skriver ut..." ;
+ Text [ italian ] = "Stampa..." ;
+ Text [ portuguese_brazilian ] = "Imprimindo..." ;
+ Text [ portuguese ] = "A imprimir..." ;
+ Text [ finnish ] = "Tulostus..." ;
+ Text [ danish ] = "Udskriver..." ;
+ Text [ french ] = "Impression..." ;
+ Text [ swedish ] = "Skriver ut ..." ;
+ Text [ dutch ] = "Bezig met afdrukken..." ;
+ Text [ spanish ] = "Imprimiendo..." ;
+ Text [ english_us ] = "Printing..." ;
+ Text[ chinese_simplified ] = "´òÓ¡...";
+ Text[ russian ] = "Ïå÷àòü...";
+ Text[ polish ] = "Drukuj...";
+ Text[ japanese ] = "ˆóü...";
+ Text[ chinese_traditional ] = "¦C¦L...";
+ Text[ arabic ] = "ØÈÇÚÉ...";
+ Text[ dutch ] = "Bezig met afdrukken...";
+ Text[ chinese_simplified ] = "´òÓ¡...";
+ Text[ greek ] = "Åêôýðùóç...";
+ Text[ korean ] = "Àμâ...";
+ Text[ turkish ] = "Yazdýrýlýyor...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_LAYOUTINIT
+{
+ Text = "Konvertiere..." ;
+ Text [ English ] = "Converting..." ;
+ Text [ norwegian ] = "Konverterer..." ;
+ Text [ italian ] = "Converti..." ;
+ Text [ portuguese_brazilian ] = "Convertendo..." ;
+ Text [ portuguese ] = "A converter..." ;
+ Text [ finnish ] = "Muunto..." ;
+ Text [ danish ] = "Konverterer..." ;
+ Text [ french ] = "Conversion..." ;
+ Text [ swedish ] = "Konverterar..." ;
+ Text [ dutch ] = "Bezig met converteren..." ;
+ Text [ spanish ] = "Convirtiendo..." ;
+ Text [ english_us ] = "Converting..." ;
+ Text[ chinese_simplified ] = "ת»»...";
+ Text[ russian ] = "Ïðåîáðàçîâàíèå...";
+ Text[ polish ] = "Konwertuj...";
+ Text[ japanese ] = "•ÏŠ·...";
+ Text[ chinese_traditional ] = "Âà´«...";
+ Text[ arabic ] = "ÊÍæíá...";
+ Text[ dutch ] = "Bezig met converteren...";
+ Text[ chinese_simplified ] = "ת»»...";
+ Text[ greek ] = "ÌåôáôñïðÞ...";
+ Text[ korean ] = "º¯È¯...";
+ Text[ turkish ] = "Dönüþtürülüyor...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_LETTER
+{
+ Text = "Brief" ;
+ Text [ English ] = "Letter" ;
+ Text [ english_us ] = "Letter" ;
+ Text [ italian ] = "Lettera" ;
+ Text [ spanish ] = "Carta" ;
+ Text [ french ] = "Lettre" ;
+ Text [ dutch ] = "Brief" ;
+ Text [ swedish ] = "Brev" ;
+ Text [ danish ] = "Brev" ;
+ Text [ portuguese_brazilian ] = "Brief" ;
+ Text [ portuguese ] = "Carta" ;
+ Text[ chinese_simplified ] = "Ðź¯";
+ Text[ russian ] = "Ïèñüìî";
+ Text[ polish ] = "List";
+ Text[ japanese ] = "ÚÀ°";
+ Text[ chinese_traditional ] = "«H¨ç";
+ Text[ arabic ] = "ÎØÇÈ";
+ Text[ dutch ] = "Brief";
+ Text[ chinese_simplified ] = "Ðź¯";
+ Text[ greek ] = "ÅðéóôïëÞ";
+ Text[ korean ] = "ÆíÁö";
+ Text[ turkish ] = "Mektup";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_SPELL
+{
+ Text = "Rechtschreibprüfung..." ;
+ Text [ English ] = "Spelling..." ;
+ Text [ english_us ] = "Spellcheck..." ;
+ Text [ italian ] = "Controllo ortografico..." ;
+ Text [ spanish ] = "Revisión ortográfica..." ;
+ Text [ french ] = "Orthographe..." ;
+ Text [ dutch ] = "Bezig met spellingcontrole..." ;
+ Text [ swedish ] = "Rättstavningskontroll..." ;
+ Text [ danish ] = "Stavekontrol..." ;
+ Text [ portuguese_brazilian ] = "Rechtschreibprüfung..." ;
+ Text [ portuguese ] = "Verificação ortográfica..." ;
+ Text[ chinese_simplified ] = "Õý×Ö·¨¼ì²é...";
+ Text[ russian ] = "Ïðîâåðêà îðôîãðàôèè...";
+ Text[ polish ] = "Sprawdzanie pisowni...";
+ Text[ japanese ] = "•¶ÍZ³...";
+ Text[ chinese_traditional ] = "«÷¦r...";
+ Text[ arabic ] = "ÊÏÞíÞ ÅãáÇÆí...";
+ Text[ dutch ] = "Bezig met spellingcontrole...";
+ Text[ chinese_simplified ] = "Õý×Ö·¨¼ì²é...";
+ Text[ greek ] = "¸ëåã÷ïò ïñèïãñáößáò...";
+ Text[ korean ] = "¸ÂÃã¹ý °Ë»ç...";
+ Text[ turkish ] = "Yazým denetimi...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_HYPHEN
+{
+ Text = "Silbentrennung..." ;
+ Text [ English ] = "Hyphenating..." ;
+ Text [ english_us ] = "Hyphenation..." ;
+ Text [ dutch ] = "Woordafbreking..." ;
+ Text [ italian ] = "Sillabazione..." ;
+ Text [ spanish ] = "Separación silábica..." ;
+ Text [ french ] = "Coupure de mots..." ;
+ Text [ swedish ] = "Avstavning..." ;
+ Text [ danish ] = "Orddeling..." ;
+ Text [ portuguese_brazilian ] = "Silbentrennung..." ;
+ Text [ portuguese ] = "Divisão silábica..." ;
+ Text[ chinese_simplified ] = "Á¬×Ö·û...";
+ Text[ russian ] = "Ðàññòàíîâêà ïåðåíîñîâ...";
+ Text[ polish ] = "Dzielenie wyrazów";
+ Text[ japanese ] = "ʲÌÈ°¼®Ý...";
+ Text[ chinese_traditional ] = "³s±µ²Å...";
+ Text[ arabic ] = "ÝÕá ÇáãÞÇØÚ...";
+ Text[ dutch ] = "Woordafbreking...";
+ Text[ chinese_simplified ] = "Á¬×Ö·û...";
+ Text[ greek ] = "Óõëëáâéóìüò...";
+ Text[ korean ] = "ÇÏÀÌÇÂ ...";
+ Text[ turkish ] = "Heceleme...";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_STATSTR_TOX_INSERT
+{
+ Text = "Verzeichnis wird eingefügt..." ;
+ Text [ English ] = "Inserting Index..." ;
+ Text [ english_us ] = "Inserting Index..." ;
+ Text [ italian ] = "L'indice viene inserito..." ;
+ Text [ spanish ] = "Insertando directorio..." ;
+ Text [ french ] = "Index en cours d'insertion..." ;
+ Text [ dutch ] = "Index wordt ingevoegd..." ;
+ Text [ swedish ] = "Förteckning infogas..." ;
+ Text [ danish ] = "Indsætter indeks..." ;
+ Text [ portuguese_brazilian ] = "Verzeichnis wird eingefügt..." ;
+ Text [ portuguese ] = "Inserindo índice..." ;
+ Text[ chinese_simplified ] = "²åÈëË÷Òý...";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Âñòàâêà óêàçàòåëÿ...";
+ Text[ polish ] = "Wstawianie indeksu...";
+ Text[ japanese ] = "õˆø‚Ì‘}“ü...";
+ Text[ chinese_traditional ] = "´¡¤J¥Ø¿ý...";
+ Text[ arabic ] = "ÌÇÑí ÅÏÑÇÌ ÇáÝåÑÓ...";
+ Text[ dutch ] = "Index wordt ingevoegd...";
+ Text[ chinese_simplified ] = "²åÈëË÷Òý...";
+ Text[ greek ] = "ÅéóáãùãÞ êáôáëüãïõ...";
+ Text[ korean ] = "»öÀÎ »ðÀÔ...";
+ Text[ turkish ] = "Dizin ekleniyor...";
+};
+
+String STR_STATSTR_TOX_UPDATE
+{
+ Text = "Verzeichnis wird aktualisiert..." ;
+ Text [ English ] = "Updating Index..." ;
+ Text [ english_us ] = "Updating Index..." ;
+ Text [ italian ] = "L'indice viene aggiornato..." ;
+ Text [ spanish ] = "Actualizando directorio..." ;
+ Text [ french ] = "Index en cours d'actualisation..." ;
+ Text [ dutch ] = "Index wordt geactualiseerd..." ;
+ Text [ swedish ] = "Förteckning uppdateras..." ;
+ Text [ danish ] = "Opdaterer indeks..." ;
+ Text [ portuguese_brazilian ] = "Verzeichnis wird aktualisiert..." ;
+ Text [ portuguese ] = "Actualizando índice..." ;
+ Text[ chinese_simplified ] = "¸üÐÂË÷Òý...";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Îáíîâëåíèå óêàçàòåëÿ...";
+ Text[ polish ] = "Aktualizacja indeksu...";
+ Text[ japanese ] = "õˆø‚ÌXV...";
+ Text[ chinese_traditional ] = "§ó·s¥Ø¿ý...";
+ Text[ arabic ] = "ÌÇÑí ÊÍÏíË ÇáÝåÑÓ...";
+ Text[ dutch ] = "Index wordt geactualiseerd...";
+ Text[ chinese_simplified ] = "¸üÐÂË÷Òý...";
+ Text[ greek ] = "ÅíçìÝñùóç êáôáëüãïõ...";
+ Text[ korean ] = "»öÀÎ ¾÷ µ¥ÀÌÆ®...";
+ Text[ turkish ] = "Dizin güncelleniyor...";
+};
+
+String STR_STATSTR_SUMMARY
+{
+ Text = "Abstrakt wird erstellt..." ;
+ Text [ English ] = "Creating summary..." ;
+ Text [ english_us ] = "Creating abstract..." ;
+ Text [ portuguese_brazilian ] = "Abstrakt wird erstellt..." ;
+ Text [ swedish ] = "Utdrag skapas..." ;
+ Text [ danish ] = "Opretter abstract..." ;
+ Text [ italian ] = "Il sunto viene creato..." ;
+ Text [ spanish ] = "Creando el extracto..." ;
+ Text [ french ] = "Synthèse en cours de création..." ;
+ Text [ dutch ] = "Overzicht wordt gemaakt..." ;
+ Text [ portuguese ] = "A criar Sumário..." ;
+ Text[ chinese_simplified ] = "ÖÆ×÷ÕªÒª...";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Èäåò ñîçäàíèå ïðîñìîòðà äîêóìåíòà...";
+ Text[ polish ] = "Tworzenie Abstraktu...";
+ Text[ japanese ] = "—v–ñ‚Ìì¬...";
+ Text[ chinese_traditional ] = "»s§@ºK­n...";
+ Text[ arabic ] = "ÌÇÑí ÅäÔÇÁ ÇáÊáÎíÕ...";
+ Text[ dutch ] = "Overzicht wordt gemaakt...";
+ Text[ chinese_simplified ] = "ÖÆ×÷ÕªÒª...";
+ Text[ greek ] = "Äçìéïõñãßá abstract...";
+ Text[ korean ] = "¿ä¾à ¸¸µé±â...";
+ Text[ turkish ] = "Özet oluþturuluyor...";
+};
+
+String STR_STATSTR_SWGPRTOLENOTIFY
+{
+ Text = "Objekte Anpassen..." ;
+ Text [ English ] = "Adjust Objects..." ;
+ Text[ english_us ] = "Adapt Objects...";
+ Text[ portuguese ] = "Ajustar objectos...";
+ Text[ russian ] = "Âûðîâíÿòü îáúåêòû...";
+ Text[ dutch ] = "Objecten aanpassen...";
+ Text[ french ] = "Adapter les objets...";
+ Text[ spanish ] = "Ajustar objetos...";
+ Text[ italian ] = "Adatta oggetti...";
+ Text[ danish ] = "Tilpas objekter...";
+ Text[ swedish ] = "Anpassa objekt...";
+ Text[ polish ] = "Dopasuj obiekty...";
+ Text[ portuguese_brazilian ] = "Adjust Objects...";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä‚Ì’²®...";
+ Text[ chinese_simplified ] = "µ÷Õû¶ÔÏó...";
+ Text[ chinese_traditional ] = "½Õ¾ãª«¥ó...";
+ Text[ arabic ] = "ÖÈØ ßÇÆäÇÊ...";
+ Text[ dutch ] = "Objecten aanpassen...";
+ Text[ chinese_simplified ] = "µ÷Õû¶ÔÏó...";
+ Text[ greek ] = "ÐñïóáñìïãÞ áíôéêåéìÝíùí...";
+ Text[ korean ] = "°³Ã¼ Á¶Á¤...";
+ Text[ turkish ] = "Nesneleri uyarla...";
+ Text[ language_user1 ] = " ";
+};
+
+
+QueryBox MSG_COMCORE_ASKSEARCH
+{
+ Buttons = WB_YES_NO_CANCEL ;
+ DefButton = WB_DEF_YES ;
+ Message = "Diese Aktion benötigt fürs Undo sehr viel Speicher.\nWollen Sie das Undo abschalten?" ;
+ Message [ English ] = "This action needs for undo many memory.\nWould you disable undo?" ;
+ Message [ norwegian ] = "Hvis du vil angre denne handlingen trenger du mye minne.\nVil du sperre angrefunksjonen?" ;
+ Message [ italian ] = "L'annullamento di questa azione occorre molta memoria.\nVolete disattivare la possibilità di annullare?" ;
+ Message [ portuguese_brazilian ] = "Esta ação requer muita memória para desfazer.\nDeseja desativar a função desfazer?" ;
+ Message [ portuguese ] = "Para poder anular esta acção é necessária muita memória.\nDeseja cancelar esta função?" ;
+ Message [ finnish ] = "Tämän toiminnon kumoamiseen tarvitaan paljon muistia.\nPoistetaanko kumoamismahdollisuus käytöstä?" ;
+ Message [ danish ] = "Denne handling kræver megen hukommelse til fortryd-funktionen\nVil du slå fortryd-funktionen fra?" ;
+ Message [ french ] = "Cette action nécessite beaucoup de mémoire pour l'annulation (Undo).\nVoulez-vous désactiver l'annulation ?" ;
+ Message [ swedish ] = "Denna åtgärd kräver alltför mycket minne för Ångra-funktionen.\nVill Du stänga av Ångra-funktionen?" ;
+ Message [ dutch ] = "Het ongedaan maken van deze bewerking beslaat veel geheugen.\nWilt U \"Ongedaan maken\" opheffen ?" ;
+ Message [ spanish ] = "Esta acción necesita mucha memoria para la operación de Deshacer.\n¿Desea desactivar la opción de deshacer?" ;
+ Message [ english_us ] = "A large amount of memory is required to undo this action.\nDo you want to cancel the undo?" ;
+ Message[ chinese_simplified ] = "³·ÏûÃüÁÄÜÐèÒªºÜ¶àµÄÄÚ´æ¡£\nÄúҪʧ»î³·ÏûÃüÁÄÜÂð£¿";
+ Message[ russian ] = "Ýòîìó äåéñòâèþ íåîáõîäèìî äëÿ îòìåíû ñëèøêîì ìíîãî ïàìÿòè.\nÂû õîòèòå îòêëþ÷èòü îòìåíó?";
+ Message[ polish ] = "Cofniêcie tej akcji wymaga du¿ej iloœci pamiêci.\nCzy chcesz przerwaæ cofniêcie?";
+ Message[ japanese ] = "‚±‚Ìì‹Æ‚ͤŒ³‚É–ß‚·‚½‚ß‚É”ñí‚É‘½‚­‚ÌÒÓØ‚ª•K—v‚Å‚·B\nŒ³‚É–ß‚·‚±‚Æ‚ðŽæ‚è‚â‚ß‚Ü‚·‚©?";
+ Message[ chinese_traditional ] = "´_­ì¥\\¯à»Ý­n«Ü¦hªº°O¾ÐÅé¡C\n±z­n¥¢¬¡´_­ì¥\\¯à¡H";
+ Message[ arabic ] = "ÇáÊÑÇÌÚ Úä åÐÇ ÇáÅÌÑÇÁ íÊØáÈ ÐÇßÑÉ ßÈíÑÉ ÌÏÇð.\nåá ÊÑíÏ ÅáÛÇÁ ÇáÊÑÇÌÚ¿";
+ Message[ dutch ] = "Het ongedaan maken van deze bewerking beslaat veel geheugen.\nWilt U \"Ongedaan maken\" opheffen ?";
+ Message[ chinese_simplified ] = "³·ÏûÃüÁÄÜÐèÒªºÜ¶àµÄÄÚ´æ¡£\nÄúҪʧ»î³·ÏûÃüÁÄÜÂð£¿";
+ Message[ greek ] = "Ç åêôÝëåóç áõôÞò ôçò åíÝñãåéáò áðáéôåß ìåãÜëç ðïóüôçôá ìíÞìçò.\nÈÝëåôå íá áêõñþóåôå ôçí áíáßñåóç;";
+ Message[ korean ] = "ÀÌ ÀÛµ¿À» Ãë¼Ò¸¦ À§ÇÏ¿© ´ë¿ë·®ÀÇ ¸Þ¸ð¸®°¡ ¿ä±¸µË´Ï´Ù.\n½ÇÇàÃë¼Ò¸¦ Ãë¼ÒÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "Bu iþlemde geri alma için büyük miktarda bellek gerekiyor.\nGeri alma iþlevini kapatmak istiyor musunuz?";
+ Message[ language_user1 ] = " ";
+};
+
+Bitmap RID_GRAPHIC_REPLACEBMP
+{
+ File = "grafikei.bmp" ;
+};
+
+Bitmap RID_GRAPHIC_ERRORBMP
+{
+ File = "grafikde.bmp" ;
+};
+
+String STR_TABLE_DEFNAME
+{
+ Text = "Tabelle" ;
+ Text [ ENGLISH ] = "Table" ;
+ Text [ norwegian ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ portuguese_brazilian ] = "Tabela" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ finnish ] = "Taulukko" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ french ] = "Tableau" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ english_us ] = "Table" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ dutch ] = "Tabel";
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_GRAPHIC_DEFNAME
+{
+ TEXT = "Grafik" ;
+ TEXT [ English ] = "Graphic" ;
+ TEXT [ norwegian ] = "Graphic" ;
+ TEXT [ italian ] = "Immagine" ;
+ TEXT [ portuguese_brazilian ] = "Gráfico" ;
+ TEXT [ portuguese ] = "Imagem" ;
+ TEXT [ finnish ] = "Kuva" ;
+ TEXT [ danish ] = "Grafik" ;
+ TEXT [ french ] = "Image" ;
+ TEXT [ swedish ] = "Grafik" ;
+ TEXT [ dutch ] = "Afbeelding" ;
+ TEXT [ spanish ] = "Imagen" ;
+ TEXT [ english_us ] = "Graphic" ;
+ TEXT[ chinese_simplified ] = "ͼÐÎ";
+ TEXT[ russian ] = "Ðèñóíîê";
+ TEXT[ polish ] = "Grafika";
+ TEXT[ japanese ] = "}";
+ TEXT[ chinese_traditional ] = "¹Ï¤ù";
+ TEXT[ arabic ] = "ÕæÑÉ";
+ TEXT[ dutch ] = "Afbeelding";
+ TEXT[ chinese_simplified ] = "ͼÐÎ";
+ TEXT[ greek ] = "Ãñáöéêü";
+ TEXT[ korean ] = "±×·¡ÇÈ";
+ TEXT[ turkish ] = "Grafik";
+ TEXT[ language_user1 ] = " ";
+};
+
+String STR_OBJECT_DEFNAME
+{
+ TEXT = "Objekt" ;
+ TEXT [ English ] = "Object" ;
+ TEXT [ norwegian ] = "Object" ;
+ TEXT [ italian ] = "Oggetto" ;
+ TEXT [ portuguese_brazilian ] = "Objeto" ;
+ TEXT [ portuguese ] = "Objecto" ;
+ TEXT [ finnish ] = "Objekti" ;
+ TEXT [ danish ] = "Objekt" ;
+ TEXT [ french ] = "Objet" ;
+ TEXT [ swedish ] = "Objekt" ;
+ TEXT [ dutch ] = "Object" ;
+ TEXT [ spanish ] = "Objeto" ;
+ TEXT [ english_us ] = "Object" ;
+ TEXT[ chinese_simplified ] = "¶ÔÏó";
+ TEXT[ russian ] = "Îáúåêò";
+ TEXT[ polish ] = "Obiekt";
+ TEXT[ japanese ] = "µÌÞ¼Þª¸Ä";
+ TEXT[ chinese_traditional ] = "ª«¥ó";
+ TEXT[ arabic ] = "ßÇÆä";
+ TEXT[ dutch ] = "Object";
+ TEXT[ chinese_simplified ] = "¶ÔÏó";
+ TEXT[ greek ] = "Áíôéêåßìåíï";
+ TEXT[ korean ] = "°³Ã¼";
+ TEXT[ turkish ] = "Nesne";
+ TEXT[ language_user1 ] = " ";
+};
+
+String STR_FRAME_DEFNAME
+{
+ Text = "Rahmen" ;
+ Text [ English ] = "Frames" ;
+ Text [ norwegian ] = "Rammer" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ portuguese_brazilian ] = "Molduras" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ finnish ] = "Kehys" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ english_us ] = "Frame" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Ðàìêà";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "÷½ÄÎÞ¯¸½";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ dutch ] = "Kader";
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçeve";
+ Text[ language_user1 ] = " ";
+};
+String STR_REGION_DEFNAME
+{
+ Text = "Bereich" ;
+ Text [ English ] = "section" ;
+ Text [ norwegian ] = "section" ;
+ Text [ italian ] = "Sezione" ;
+ Text [ portuguese_brazilian ] = "seção" ;
+ Text [ portuguese ] = "Secção" ;
+ Text [ finnish ] = "osa" ;
+ Text [ danish ] = "Område" ;
+ Text [ french ] = "Section" ;
+ Text [ swedish ] = "Område" ;
+ Text [ dutch ] = "Bereik" ;
+ Text [ spanish ] = "Area" ;
+ Text [ english_us ] = "Section" ;
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "”͈Í";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "äØÇÞ";
+ Text[ dutch ] = "Bereik";
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ greek ] = "Åíüôçôá";
+ Text[ korean ] = "±¸¿ª";
+ Text[ turkish ] = "Bölüm";
+ Text[ language_user1 ] = " ";
+};
+String STR_NUMRULE_DEFNAME
+{
+ Text = "Nummerierung" ;
+ Text [ English ] = "Numbering" ;
+ Text [ norwegian ] = "Numbering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ portuguese_brazilian ] = "NumeraþÒo" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text [ finnish ] = "Numerointi" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ dutch ] = "Nummering" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ english_us ] = "Numbering" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ dutch ] = "Nummering";
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+};
+String STR_EMPTYPAGE
+{
+ Text = "leere Seite" ;
+ Text [ English ] = "empty page" ;
+ Text [ english_us ] = "blank page" ;
+ Text [ portuguese_brazilian ] = "leere Seite" ;
+ Text [ swedish ] = "tom sida" ;
+ Text [ danish ] = "tom side" ;
+ Text [ italian ] = "Pagina vuota" ;
+ Text [ spanish ] = "Página vacía" ;
+ Text [ french ] = "Page vide" ;
+ Text [ dutch ] = "Lege pagina" ;
+ Text [ portuguese ] = "página vazia" ;
+ Text[ chinese_simplified ] = "¿Õ°×Ò³Ãæ";
+ Text[ russian ] = "Ïóñòàÿ ñòðàíèöà";
+ Text[ polish ] = "Pusta strona";
+ Text[ japanese ] = "‹ó”’Íß°¼Þ";
+ Text[ chinese_traditional ] = "ªÅ¥Õ­¶­±";
+ Text[ arabic ] = "ÕÝÍÉ ÝÇÑÛÉ";
+ Text[ dutch ] = "Lege pagina";
+ Text[ chinese_simplified ] = "¿Õ°×Ò³Ãæ";
+ Text[ greek ] = "êåíÞ óåëßäá";
+ Text[ korean ] = "ºó ÆäÀÌÁö";
+ Text[ turkish ] = "Boþ sayfa";
+ Text[ language_user1 ] = " ";
+};
+
+QueryBox MSG_CLPBRD_CLEAR
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Sie haben größere Datenmengen in die Zwischenablage gestellt.\nSoll der Inhalt der Zwischenablage anderen Applikationen zur Verfügung gestellt werden?" ;
+ MESSAGE [ English ] = "Shall the Clipboard Content be available for other Applications?" ;
+ MESSAGE [ norwegian ] = "Vil du at Innholdet på Utklippstavlen skal være tilgjengelig til andre applikasjoner?" ;
+ MESSAGE [ italian ] = "Negli appunti ci sono molti dati.\nRendere il contenuto degli appunti disponibile per altre applicazioni?" ;
+ MESSAGE [ portuguese_brazilian ] = "O Conteúdo do Clipboard deve estar disponível para outros Aplicativos?" ;
+ MESSAGE [ portuguese ] = "Na área de transferência encontram-se grandes quantidades de dados.\nColocar o conteúdo da área de transferência à disposição de outras aplicações?" ;
+ MESSAGE [ english_us ] = "You have a large amount of data saved in the clipboard.\nShould the clipboard contents remain available for other applications?" ;
+ MESSAGE [ finnish ] = "Pitääkö leikepöydän sisällön olla muiden sovellusten käytettävissä?" ;
+ MESSAGE [ danish ] = "Du har placeret en stor mængde data i udklipsholderen.\nSkal udklipholderens indhold være tilgængeligt for andre applikationer?" ;
+ MESSAGE [ french ] = "Vous avez déposé un grand nombre de données dans le presse-papiers. \nSouhaitez-vous en conserver le contenu pour une utilisation ultérieure sous une autre application ?" ;
+ MESSAGE [ swedish ] = "Du har stora datamängder i urklippet.\nSkall innehållet i urklippet göras tillgängligt för andra applikationer?" ;
+ MESSAGE [ dutch ] = "U hebt een groot aantal gegevens op het Klembord geplaatst.\nWilt u dat de inhoud van het Klembord beschikbaar blijft voor andere toepassingen?" ;
+ MESSAGE [ spanish ] = "Usted tiene muchos datos en el portapapeles.\n¿Desea mantener disponible el contenido del portapapeles para otras aplicaciones?" ;
+ MESSAGE[ chinese_simplified ] = "Äú½«Ò»¸ö½Ï´óµÄÊý¾Ý¸´ÖƵ½¼ôÌù°å¡£\nÄúÏëÒªÈÃÆäËûµÄÓ¦ÓóÌÐòÒ²Äܹ»Ê¹ÓÃÕâ¸öÊý¾ÝÂð£¿";
+ MESSAGE[ language_user1 ] = " ";
+ MESSAGE[ russian ] = "Âû ñîõðàíèëè áîëüøåå êîëè÷åñòâî äàííûõ â áóôåðå îáìåíà.\nÄîëæíî ëè ñîäåðæèìîå áóôåðà îáìåíà áûòü äîñòóïíûì äëÿ äðóãèõ ïðèëîæåíèé?";
+ MESSAGE[ polish ] = "W schowku zosta³y umieszczone wiêksze iloœci danych.\nCzy treœæ tych danych ma zostaæ udostêpniona innym aplikacjom?";
+ MESSAGE[ japanese ] = "¸Ø¯ÌßÎÞ°ÄÞ‚É‘å—Ê‚ÌÃÞ°À‚ª•Û‘¶‚³‚ê‚Ä‚¢‚Ü‚·B\n¸Ø¯ÌßÎÞ°ÄÞ‚Ì“à—e‚𑼂̱Ìßع°¼®Ý‚ÉŽg—p‚µ‚Ü‚·‚©?";
+ MESSAGE[ chinese_traditional ] = "±z¤w¸g±N¤@­Ó¸û¤jªº¸ê®Æ½Æ»s¨ì°Å¶Kï¡C\n±z·Q­nÅý¨ä¥LªºÀ³¥Îµ{§Ç¤]¯à°÷¨Ï¥Î³o­Ó¸ê®Æ¡H";
+ MESSAGE[ arabic ] = "áÞÏ ÞãÊ ÈÍÝÙ ßãíÇÊ ßÈíÑÉ ãä ÇáÈíÇäÇÊ Ýí ÇáÍÇÝÙÉ.\nåá ÊÑíÏ æÖÚ ãÍÊæíÇÊ ÇáÍÇÝÙÉ ÊÍÊ ÊÕÑÝ ÊØÈíÞÇÊ ÃÎÑì¿";
+ MESSAGE[ dutch ] = "U hebt een groot aantal gegevens op het Klembord geplaatst.\nWilt u dat de inhoud van het Klembord beschikbaar blijft voor andere toepassingen?";
+ MESSAGE[ chinese_simplified ] = "Äú½«Ò»¸ö½Ï´óµÄÊý¾Ý¸´ÖƵ½¼ôÌù°å¡£\nÄúÏëÒªÈÃÆäËûµÄÓ¦ÓóÌÐòÒ²Äܹ»Ê¹ÓÃÕâ¸öÊý¾ÝÂð£¿";
+ MESSAGE[ greek ] = "¸÷åôå áðïèçêåýóåé ìåãÜëï áñéèìü äåäïìÝíùí óôï clipboard.\nÈÝëåôå íá ðáñáìåßíåé äéáèÝóéìï ôï ðåñéå÷üìåíï ôïõ clipboard ãéá Üëëåò åöáñìïãÝò;";
+ MESSAGE[ korean ] = "Ŭ¸³º¸µå¾È¿¡ ÀúÀåµÈ ´ë¿ë·®ÀÇ µ¥ÀÌÅÍ°¡ ÀÖ½À´Ï´Ù.\nŬ¸³º¸µåÀÇ ³»¿ëÀ» ´Ù¸¥ ÀÀ¿ëÇÁ·Î±×·¥¿¡¼­ À¯È¿Çϵµ·Ï ³²°ÜµÎ½Ã°Ú½À´Ï±î?";
+ MESSAGE[ turkish ] = "Panoya büyük miktarda veri aktardýnýz.\nPano içeriðini baþka uygulamalarda kullanmak istiyor musunuz?";
+};
+
+QueryBox MSG_SAVE_HTML_QUERY
+{
+ BUTTONS = WB_YES_NO_CANCEL ;
+ DEFBUTTON = WB_DEF_YES ;
+ MESSAGE = "Die Umwandlung in das HTML-Format \nkann Informationsverlust verursachen. \nMöchten Sie das Dokument speichern?" ;
+ MESSAGE [ English ] = "Conversion into HTML \nmay cause information loss. \nWould you like to save the document?" ;
+ Message [ english_us ] = "Conversion into HTML format \nmay cause information loss. \nDo you want to save the document?" ;
+ Message = "Die Umwandlung in das HTML-Format \nkann Informationsverlust verursachen. \nMöchten Sie das Dokument speichern?" ;
+ Message [ italian ] = "La conversione nel formato HTML \npuò causare perdita di informazioni \nSalvare il documento?" ;
+ Message [ spanish ] = "La transformación en el formato HTML \npuede causar la pérdida de información. \n¿Desea guardar el documento?" ;
+ Message [ french ] = "La conversion au format HTML\npeut engendrer une perte d'informations. \nSouhaitez-vous enregistrer le document ?" ;
+ Message [ dutch ] = "De convertering naar het HTML-formaat \nkan verlies van gegevens veroorzaken. \nWilt u het document opslaan?" ;
+ Message [ swedish ] = "Omvandling till HTML-format \nkan förorsaka informationsförlust.\nSkall dokumentet sparas?" ;
+ Message [ danish ] = "Konvertering til HTML-format\nkan medføre informationstab.\nVil du gemme dokumentet?" ;
+ Message [ portuguese_brazilian ] = "Die Umwandlung in das HTML-Format \nkann Informationsverlust verursachen. \nMöchten Sie das Dokument speichern?" ;
+ Message [ portuguese ] = "A conversão para o formato HTML pode \nprovocar perda de informação. \nGuardar o documento?" ;
+ Message[ chinese_simplified ] = "Îļþת»»³É HTML ¸ñʽ\n¿ÉÄÜ»áÒýÆð×ÊÁÏËðʧ¡£\nÄúÒª´æÅÌÕâ¸öÎļþÂð?";
+ Message[ russian ] = "Ïåðåõîä â ôîðìàò HTML \nìîæåò ïðèâåñòè ê ïîòåðå èíôîðìàöèè. \n Âû õîòèòå ñîõðàíèòü ýòîò äîêóìåíò?";
+ Message[ polish ] = "Konwersja na format HTML \nmo¿e spowodowaæ utratê informacji. \nCzy chcesz zapisaæ dokument?";
+ Message[ japanese ] = "HTMLŒ`Ž®‚É•ÏŠ·‚·‚é‚Æ\nî•ñ‚ªŽ¸‚í‚ê‚é‰Â”\\«‚ª‚ ‚è‚Ü‚·B\n‚±‚Ì•¶‘‚ð•Û‘¶‚µ‚Ü‚·‚©?";
+ Message[ chinese_traditional ] = "ÀÉ®×Âà´«¦¨ HTML ®æ¦¡\n¥i¯à·|¤Þ°_¸ê®Æ·l¥¢¡C\n±z­nÀx¦s³o­ÓÀɮסH";
+ Message[ arabic ] = "ÇáÊÍæá Åáì ÊäÓíÞ HTML \níãßä Ãä íÄÏí Åáì ÝÞÏÇä ÈÚÖ ÇáãÚáæãÇÊ. \nåá ÊÑíÏ ÍÝÙ ÇáãÓÊäÏ¿";
+ Message[ dutch ] = "De convertering naar het HTML-formaat \nkan verlies van gegevens veroorzaken. \nWilt u het document opslaan?";
+ Message[ chinese_simplified ] = "Îļþת»»³É HTML ¸ñʽ\n¿ÉÄÜ»áÒýÆð×ÊÁÏËðʧ¡£\nÄúÒª´æÅÌÕâ¸öÎļþÂð?";
+ Message[ greek ] = "Ç ìåôáôñïðÞ óå ìïñöÞ HTML \nìðïñåß íá ðñïêáëÝóåé áðþëåéåò ðëçñïöïñéþí. \nÈÝëåôå íá áðïèçêåýóåôå ôï Ýããñáöï;";
+ Message[ korean ] = "HTML ¼­½ÄÀ¸·Î º¯È¯Àº \nÁ¤º¸ ¼Õ½ÇÀÇ ¿øÀÎÀÌ µË´Ï´Ù. \n¹®¼­¸¦ ÀúÀåÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "HTML formatýna \ndönüþüm sonucunda veri kaybý olabilir. \nBelgeyi kaydetmek istiyor musunuz?";
+ Message[ language_user1 ] = " ";
+};
+
+String STR_ABSTRACT_TITLE
+{
+ Text = "Abstrakt : " ;
+ Text [ English ] = "Summary : " ;
+ Text [ portuguese ] = "Abstracto : " ;
+ Text [ english_us ] = "Abstract: " ;
+ Text [ portuguese_brazilian ] = "Abstrakt : " ;
+ Text [ swedish ] = "Utdrag: " ;
+ Text [ danish ] = "Abstract : " ;
+ Text [ italian ] = "Sunto: " ;
+ Text [ spanish ] = "Extracto: " ;
+ Text [ french ] = "Synthèse : " ;
+ Text [ dutch ] = "Extract : " ;
+ Text[ chinese_simplified ] = "ͻ񻣼 ";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ïðîñìîòð : ";
+ Text[ polish ] = "Abstrakt : ";
+ Text[ japanese ] = "—v–ñ : ";
+ Text[ chinese_traditional ] = "ºK­n¡G ";
+ Text[ arabic ] = "ÇáÊáÎíÕ: ";
+ Text[ dutch ] = "Extract : ";
+ Text[ chinese_simplified ] = "ͻ񻣼 ";
+ Text[ greek ] = "Abstract: ";
+ Text[ korean ] = "̧ȗ: ";
+ Text[ turkish ] = "Özet: ";
+};
+
+String STR_FDLG_TEMPLATE_BUTTON
+{
+ Text = "Vorlage" ;
+ Text [ English ] = "Template" ;
+ Text [ english_us ] = "Style" ;
+ Text [ portuguese_brazilian ] = "Vorlage" ;
+ Text [ swedish ] = "Formatmall" ;
+ Text [ danish ] = "Skabelon" ;
+ Text [ italian ] = "Modello" ;
+ Text [ spanish ] = "Plantilla" ;
+ Text [ french ] = "Style" ;
+ Text [ dutch ] = "Sjabloon" ;
+ Text [ portuguese ] = "Estilo" ;
+ Text[ chinese_simplified ] = "Ñùʽ";
+ Text[ russian ] = "Øàáëîí";
+ Text[ polish ] = "Szablon";
+ Text[ japanese ] = "ÃÝÌßÚ°Ä";
+ Text[ chinese_traditional ] = "¼Ë¦¡";
+ Text[ arabic ] = "äãØ";
+ Text[ dutch ] = "Sjabloon";
+ Text[ chinese_simplified ] = "Ñùʽ";
+ Text[ greek ] = "Ðñüôõðï";
+ Text[ korean ] = "À¯Çü";
+ Text[ turkish ] = "Biçim";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_FDLG_TEMPLATE_NAME
+{
+ Text = "Aktuelle Vorlage: " ;
+ Text [ English ] = "Current template: " ;
+ Text [ english_us ] = "Current Style: " ;
+ Text [ portuguese_brazilian ] = "Aktuelle Vorlage: " ;
+ Text [ swedish ] = "Aktuell formatmall: " ;
+ Text [ danish ] = "Aktuel skabelon: " ;
+ Text [ italian ] = "Modello corrente: " ;
+ Text [ spanish ] = "Plantilla actual: " ;
+ Text [ french ] = "Style actif : " ;
+ Text [ dutch ] = "Actuele sjabloon " ;
+ Text [ portuguese ] = "Modelo actual: " ;
+ Text[ chinese_simplified ] = "µ±Ç°µÄÑùʽ£º ";
+ Text[ russian ] = "Òåêóùèé øàáëîí: ";
+ Text[ polish ] = "Aktualny szablon ";
+ Text[ japanese ] = "ì‹Æ’†‚ÌÃÝÌßÚ°ÄF ";
+ Text[ chinese_traditional ] = "·í«eªº¼Ë¦¡¡G ";
+ Text[ arabic ] = "ÇáäãØ ÇáÍÇáí: ";
+ Text[ dutch ] = "Actuele sjabloon ";
+ Text[ chinese_simplified ] = "µ±Ç°µÄÑùʽ£º ";
+ Text[ greek ] = "ÔñÝ÷ùí ðñüôõðï: ";
+ Text[ korean ] = "ÇöÀç ÅÛÇø®Æ®: ";
+ Text[ turkish ] = "Yürürlükteki biçim: ";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_PAGEOFFSET
+{
+ Text = "Seitennummer: " ;
+ Text [ English ] = "Page number: " ;
+ Text [ english_us ] = "Page number: " ;
+ Text [ portuguese_brazilian ] = "Seitennummer: " ;
+ Text [ swedish ] = "Sidnummer: " ;
+ Text [ danish ] = "Sidetal: " ;
+ Text [ italian ] = "Numero di pagina: " ;
+ Text [ spanish ] = "Número de página: " ;
+ Text [ french ] = "Numéro de page : " ;
+ Text [ dutch ] = "Paginanummer " ;
+ Text [ portuguese ] = "Número de página: " ;
+ Text[ chinese_simplified ] = "Ò³Â룺 ";
+ Text[ russian ] = "Íîìåð ñòðàíèöû: ";
+ Text[ polish ] = "Numer strony: ";
+ Text[ japanese ] = "Íß°¼Þ”Ô†: ";
+ Text[ chinese_traditional ] = "­¶½X¡G ";
+ Text[ arabic ] = "ÑÞã ÇáÕÝÍÉ: ";
+ Text[ dutch ] = "Paginanummer ";
+ Text[ chinese_simplified ] = "Ò³Â룺 ";
+ Text[ greek ] = "Áñéèìüò óåëßäáò: ";
+ Text[ korean ] = "ÆäÀÌÁö ¹øÈ£: ";
+ Text[ turkish ] = "Sayfa numarasý: ";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGEBREAK
+{
+ Text = "Umbruch vor neuer Seite" ;
+ Text [ English ] = "Break before new page" ;
+ Text [ norwegian ] = "Skift før ny side" ;
+ Text [ italian ] = "Interrompi prima della pagina nuova" ;
+ Text [ portuguese_brazilian ] = "Interromper antes de nova página" ;
+ Text [ portuguese ] = "Quebra antes de nova página" ;
+ Text [ finnish ] = "Väli ennen uutta sivua" ;
+ Text [ danish ] = "Skift før ny side" ;
+ Text [ french ] = "Saut avant nouvelle page" ;
+ Text [ swedish ] = "Bryt före ny sida" ;
+ Text [ dutch ] = "Einde voor nieuwe pagina" ;
+ Text [ spanish ] = "Salto antes de página nueva" ;
+ Text [ english_us ] = "Break before new page" ;
+ Text[ chinese_simplified ] = "ÔÚÐÂһҳ֮ǰ»»Ò³";
+ Text[ russian ] = "Ðàçðûâ ïåðåä íîâîé ñòðàíèöåé";
+ Text[ polish ] = "Podzia³ przed now¹ stron¹";
+ Text[ japanese ] = "V‚µ‚¢Íß°¼Þ‚Ì‘O‚Å‹æØ‚é";
+ Text[ chinese_traditional ] = "¦b·s¤@­¶¤§«e´«­¶";
+ Text[ arabic ] = "ÝÇÕá ÞÈá ÇáÕÝÍÉ ÇáÌÏíÏÉ";
+ Text[ dutch ] = "Einde voor nieuwe pagina";
+ Text[ chinese_simplified ] = "ÔÚÐÂһҳ֮ǰ»»Ò³";
+ Text[ greek ] = "ÁëëáãÞ ðñéí áðü íÝá óåëßäá";
+ Text[ korean ] = "»õ ÆäÀÌÁö ¾Õ¿¡¼­ Áß´Ü";
+ Text[ turkish ] = "Yeni sayfa öncesi kesme";
+ Text[ language_user1 ] = " ";
+};
+
diff --git a/sw/source/ui/app/appenv.cxx b/sw/source/ui/app/appenv.cxx
new file mode 100644
index 000000000000..19eb0c60937a
--- /dev/null
+++ b/sw/source/ui/app/appenv.cxx
@@ -0,0 +1,739 @@
+/*************************************************************************
+ *
+ * $RCSfile: appenv.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#if STLPORT_VERSION>=321
+#include <cstdarg>
+#endif
+
+#define ITEMID_BOXINFO SID_ATTR_BORDER_INNER
+#include <hintids.hxx>
+
+#include <svtools/svmedit.hxx>
+#ifndef _APP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFX_OBJFAC_HXX //autogen
+#include <sfx2/docfac.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_PBINITEM_HXX //autogen
+#include <svx/pbinitem.hxx>
+#endif
+#ifndef _SVX_PAPERINF_HXX
+#include <svx/paperinf.hxx>
+#endif
+#ifndef _SVX_BRKITEM_HXX //autogen
+#include <svx/brkitem.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _FMTHDFT_HXX //autogen
+#include <fmthdft.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#include "paratr.hxx"
+#include "swmodule.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "docsh.hxx"
+#include "frmatr.hxx"
+#include "fldbas.hxx"
+#include "swundo.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "doc.hxx"
+#include "dbmgr.hxx"
+#include "envlop.hxx"
+#include "fmtcol.hxx"
+#include "frmmgr.hxx"
+#include "fldmgr.hxx"
+#include "pagedesc.hxx"
+#include "poolfmt.hxx"
+#include "expfld.hxx"
+#include "app.hrc"
+#include "poolfmt.hrc"
+
+#define ENV_NEWDOC RET_OK
+#define ENV_INSERT RET_USER
+#define ENV_CANCEL SHRT_MAX
+
+
+// --------------------------------------------------------------------------
+
+
+// Funktion wird fuer Etiketten und Briefumschlaege benutzt!
+// im applab.cxx und appenv.cxx
+BOOL InsertLabEnvText( SwWrtShell& rSh, SwFldMgr& rFldMgr, const String& rText )
+{
+ BOOL bRet = FALSE;
+ String aText(rText);
+ aText.EraseAllChars( '\r' );
+
+
+ USHORT nTokenPos = 0;
+ while( STRING_NOTFOUND != nTokenPos )
+ {
+ String aLine = aText.GetToken( 0, '\n', nTokenPos );
+ while ( aLine.Len() )
+ {
+ String sTmpText;
+ BOOL bField = FALSE;
+
+ USHORT nPos = aLine.Search( '<' );
+ if ( nPos )
+ {
+ sTmpText = aLine.Copy( 0, nPos );
+ aLine.Erase( 0, nPos );
+// sTmpText = aLine.Cut( 0, nPos );
+ }
+ else
+ {
+ nPos = aLine.Search( '>' );
+ if ( nPos == STRING_NOTFOUND )
+ {
+ sTmpText = aLine;
+ aLine.Erase();
+// sTmpText = aLine.Cut();
+ }
+ else
+ {
+ sTmpText = aLine.Copy( 0, nPos + 1);
+ aLine.Erase( 0, nPos + 1);
+// sTmpText = aLine.Cut( 0, nPos + 1 );
+
+ // Datenbankfelder muesen mind. 3 Punkte beinhalten!
+ String sDBName( sTmpText.Copy( 1, sTmpText.Len() - 2));
+ USHORT nCnt = sDBName.GetTokenCount('.');
+ if (nCnt >= 3)
+ {
+ ::ReplacePoint(sDBName);
+ rFldMgr.InsertFld( TYP_DBFLD, 0, sDBName, aEmptyStr, 0, &rSh );
+ bRet = TRUE;
+ bField = TRUE;
+ }
+ }
+ }
+ if ( !bField )
+ rSh.Insert( sTmpText );
+ }
+ rSh.InsertLineBreak();
+ }
+ rSh.DelLeft(); // Letzten Linebreak wieder l”schen
+
+ return bRet;
+}
+
+// ----------------------------------------------------------------------------
+
+
+void lcl_CopyCollAttr(SwWrtShell* pOldSh, SwWrtShell* pNewSh, USHORT nCollId)
+{
+ USHORT nCollCnt = pOldSh->GetTxtFmtCollCount();
+ SwTxtFmtColl* pColl;
+ for( USHORT nCnt = 0; nCnt < nCollCnt; ++nCnt )
+ if(nCollId == (pColl = &pOldSh->GetTxtFmtColl(nCnt))->GetPoolFmtId())
+ pNewSh->GetTxtCollFromPool(nCollId)->SetAttr(pColl->GetAttrSet());
+}
+
+// ----------------------------------------------------------------------------
+
+
+void SwModule::InsertEnv()
+{
+static USHORT nTitleNo = 0;
+
+ SwDocShell *pMyDocSh;
+ SfxViewFrame *pFrame;
+ SwView *pView;
+ SwWrtShell *pOldSh,
+ *pSh;
+
+ //aktuelle Shell besorgen
+ pMyDocSh = (SwDocShell*) SfxObjectShell::Current();
+ pOldSh = pMyDocSh ? pMyDocSh->GetWrtShell() : 0;
+
+ // Neues Dokument erzeugen (kein Show!)
+ SfxObjectShellRef xDocSh( new SwDocShell( SFX_CREATE_MODE_STANDARD ) );
+ xDocSh->DoInitNew( 0 );
+ pFrame = SFX_APP()->CreateViewFrame( *xDocSh, 0, TRUE );
+ pView = (SwView*) pFrame->GetViewShell();
+ pView->AttrChangedNotify( &pView->GetWrtShell() );//Damit SelectShell gerufen wird.
+ pSh = pView->GetWrtShellPtr();
+
+ String aTmp( SW_RES(STR_ENV_TITLE) );
+ aTmp += String::CreateFromInt32( ++nTitleNo );
+ xDocSh->SetTitle( aTmp );
+
+ // Ggf. alte Collections "Absender" und "Empfaenger" in neues
+ // Dokument kopieren
+ if ( pOldSh )
+ {
+ ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_JAKETADRESS);
+ ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_SENDADRESS);
+ }
+
+ // SwEnvItem aus Config lesen
+ SwEnvCfgItem aEnvCfg;
+ aEnvCfg.Initialize();
+
+ //Haben wir schon einen Briefumschlag.
+ BOOL bEnvChange = FALSE;
+
+ SfxItemSet aSet(GetPool(), FN_ENVELOP, FN_ENVELOP, 0);
+ aSet.Put(aEnvCfg.aEnvItem);
+
+ SfxPrinter* pTempPrinter = pSh->GetPrt( TRUE );
+ if(pOldSh )
+ {
+ const SwPageDesc& rCurPageDesc = pOldSh->GetPageDesc(pOldSh->GetCurPageDesc());
+ String sJacket; GetDocPoolNm( RES_POOLPAGE_JAKET, sJacket );
+ bEnvChange = rCurPageDesc.GetName() == sJacket;
+ if(pOldSh->GetPrt(FALSE))
+ {
+ pSh->GetDoc()->SetJobsetup(*pOldSh->GetDoc()->GetJobsetup());
+ //#69563# if it isn't the same printer then the pointer has been invalidated!
+ pTempPrinter = pSh->GetPrt( TRUE );
+ }
+ pTempPrinter->SetPaperBin(rCurPageDesc.GetMaster().GetPaperBin().GetValue());
+
+ }
+
+ Window *pParent = pOldSh ? pOldSh->GetWin() : 0;
+ SwEnvDlg* pDlg = new SwEnvDlg( pParent, aSet,
+ pOldSh, pTempPrinter,
+ !bEnvChange);
+
+ short nMode = pDlg->Execute();
+
+ if (nMode == ENV_NEWDOC || nMode == ENV_INSERT)
+ {
+ SwWait aWait( (SwDocShell&)*xDocSh, TRUE );
+
+ // Dialog auslesen, Item in Config speichern
+ const SwEnvItem& rItem = (const SwEnvItem&) pDlg->
+ GetOutputItemSet()->Get(FN_ENVELOP);
+ aEnvCfg.aEnvItem = rItem;
+ aEnvCfg.SetDefault(FALSE);
+ aEnvCfg.StoreConfig();
+
+ //Wenn wir Drucken uebernehmen wir den eingestellten Jobsetup aus
+ //dem Dialog. Die Informationen muessen hier vor dem evtl. zerstoeren
+ //der neuen Shell gesetzt werden, weil deren Drucker an den Dialog
+ //gereicht wurde.
+ if ( nMode != ENV_NEWDOC )
+ {
+ ASSERT(pOldSh, "Kein Dokument - war 'Einfuegen' nicht disabled???");
+ SvxPaperBinItem aItem;
+ aItem.SetValue((BYTE)pSh->GetPrt()->GetPaperBin());
+ pOldSh->GetPageDescFromPool(RES_POOLPAGE_JAKET)->GetMaster().SetAttr(aItem);
+ }
+
+ SwWrtShell *pTmp = nMode == ENV_INSERT ? pOldSh : pSh;
+ const SwPageDesc* pFollow = 0;
+ SwTxtFmtColl *pSend = pTmp->GetTxtCollFromPool( RES_POOLCOLL_SENDADRESS ),
+ *pAddr = pTmp->GetTxtCollFromPool( RES_POOLCOLL_JAKETADRESS);
+ const String &rSendMark = pSend->GetName();
+ const String &rAddrMark = pAddr->GetName();
+
+ if (nMode == ENV_INSERT)
+ {
+
+ SetView(&pOldSh->GetView()); // Pointer auf oberste View restaurieren
+
+ //Neues Dok wieder loeschen
+ xDocSh->DoClose();
+ pSh = pOldSh;
+
+ // Los geht's (Einfuegen)
+ pSh->StartUndo(UIUNDO_INSERT_ENVELOPE);
+ pSh->StartAllAction();
+ pSh->SwCrsrShell::SttDoc();
+
+ if (bEnvChange)
+ {
+ // Folgevorlage: Seite 2
+ pFollow = pSh->GetPageDesc(pSh->GetCurPageDesc()).GetFollow();
+
+ // Text der ersten Seite loeschen
+ if ( !pSh->SttNxtPg(TRUE) )
+ pSh->EndPg(TRUE);
+ pSh->DelRight();
+ // Rahmen der ersten Seite loeschen
+ if( pSh->GotoFly( rSendMark ) )
+ {
+ pSh->EnterSelFrmMode();
+ pSh->DelRight();
+ }
+ if ( pSh->GotoFly( rAddrMark ) )
+ {
+ pSh->EnterSelFrmMode();
+ pSh->DelRight();
+ }
+ pSh->SwCrsrShell::SttDoc();
+ }
+ else
+ // Folgevorlage: Seite 1
+ pFollow = &pSh->GetPageDesc(pSh->GetCurPageDesc());
+
+ // Seitenumbruch einfuegen
+ if ( pSh->IsCrsrInTbl() )
+ {
+ pSh->SplitNode();
+ pSh->Right();
+ SfxItemSet aSet( pSh->GetAttrPool(), RES_BREAK, RES_BREAK, 0 );
+ aSet.Put( SvxFmtBreakItem(SVX_BREAK_PAGE_BEFORE) );
+ pSh->SetTblAttr( aSet );
+ }
+ else
+ pSh->InsertPageBreak(0, FALSE);
+ pSh->SwCrsrShell::SttDoc();
+ }
+ else
+ {
+ pFollow = &pSh->GetPageDesc(pSh->GetCurPageDesc());
+ // Los geht's (Drucken)
+ pSh->StartAllAction();
+ pSh->DoUndo(FALSE);
+
+ // Neue Collections "Absender" und "Empfaenger" wieder in neues
+ // Dokument kopieren
+ if ( pOldSh )
+ {
+ ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_JAKETADRESS);
+ ::lcl_CopyCollAttr(pOldSh, pSh, RES_POOLCOLL_SENDADRESS);
+ }
+ }
+
+ SET_CURR_SHELL(pSh);
+ pSh->SetNewDoc(); // Performanceprobleme vermeiden
+
+ // Flys dieser Seite merken
+ SvPtrarr aFlyArr(0, 5);
+ if( ENV_NEWDOC != nMode && !bEnvChange )
+ pSh->GetPageObjs( aFlyArr );
+
+ // Page-Desc ermitteln
+ SwPageDesc* pDesc = pSh->GetPageDescFromPool(RES_POOLPAGE_JAKET);
+ SwFrmFmt& rFmt = pDesc->GetMaster();
+
+ Printer *pPrt = pSh->GetPrt( TRUE );
+
+ // Raender (setzen sich zusammen aus Shift-Offset und
+ // Ausrichtung)
+ Size aPaperSize = pPrt->PixelToLogic( pPrt->GetPaperSizePixel(),
+ MAP_TWIP);
+ if ( !aPaperSize.Width() && !aPaperSize.Height() )
+ {
+ aPaperSize.Width() = lA4Width;
+ aPaperSize.Height()= lA4Height;
+ }
+ if ( aPaperSize.Width() > aPaperSize.Height() )
+ Swap( aPaperSize );
+
+ long lLeft = rItem.lShiftRight,
+ lUpper = rItem.lShiftDown;
+
+ USHORT nPageW = (USHORT) Max(rItem.lWidth, rItem.lHeight),
+ nPageH = (USHORT) Min(rItem.lWidth, rItem.lHeight);
+
+ switch (rItem.eAlign)
+ {
+ case ENV_HOR_LEFT: break;
+ case ENV_HOR_CNTR: lLeft += Max(0L, long(aPaperSize.Width() - nPageW)) / 2;
+ break;
+ case ENV_HOR_RGHT: lLeft += Max(0L, long(aPaperSize.Width() - nPageW));
+ break;
+ case ENV_VER_LEFT: lUpper += Max(0L, long(aPaperSize.Width() - nPageH));
+ break;
+ case ENV_VER_CNTR: lUpper += Max(0L, long(aPaperSize.Width() - nPageH)) / 2;
+ break;
+ case ENV_VER_RGHT: break;
+ }
+ SvxLRSpaceItem aLRMargin;
+ SvxULSpaceItem aULMargin;
+ aLRMargin.SetLeft ((USHORT) lLeft );
+ aULMargin.SetUpper((USHORT) lUpper);
+ aLRMargin.SetRight(0);
+ aULMargin.SetLower(0);
+ rFmt.SetAttr(aLRMargin);
+ rFmt.SetAttr(aULMargin);
+
+ // Kopf-, Fusszeilen
+ rFmt.SetAttr(SwFmtHeader(BOOL(FALSE)));
+ pDesc->ChgHeaderShare(FALSE);
+ rFmt.SetAttr(SwFmtFooter(BOOL(FALSE)));
+ pDesc->ChgFooterShare(FALSE);
+
+ // Seitennumerierung
+ pDesc->SetUseOn(PD_ALL);
+
+ // Einstellen der Seitengroesse
+ rFmt.SetAttr(SwFmtFrmSize(ATT_FIX_SIZE,
+ nPageW + lLeft, nPageH + lUpper));
+
+ // Einstellen der Numerierungsart der Seite
+ SwNumType aType;
+ aType.eType = SVX_NUM_NUMBER_NONE;
+ pDesc->SetNumType(aType);
+
+ // Folgevorlage
+ if (pFollow)
+ pDesc->SetFollow(pFollow);
+
+ // Landscape
+ pDesc->SetLandscape( rItem.eAlign >= ENV_VER_LEFT &&
+ rItem.eAlign <= ENV_VER_RGHT);
+
+ // Page-Desc anwenden
+
+ USHORT nPos;
+ pSh->FindPageDescByName( pDesc->GetName(),
+ FALSE,
+ &nPos );
+
+
+ pSh->ChgPageDesc( nPos, *pDesc);
+ pSh->ChgCurPageDesc(*pDesc);
+
+ // Rahmen einfuegen
+ SwFlyFrmAttrMgr aMgr(FALSE, pSh, FRMMGR_TYPE_ENVELP);
+ SwFldMgr aFldMgr;
+
+ // Absender
+ if (rItem.bSend)
+ {
+ pSh->SwCrsrShell::SttDoc();
+ aMgr.SetSizeType(ATT_VAR_SIZE);
+
+ //Defaults ueberschreiben!
+ aMgr.GetAttrSet().Put( SvxBoxItem() );
+ aMgr.SetULSpace( 0L, 0L );
+ aMgr.SetLRSpace( 0L, 0L );
+
+ aMgr.InsertFlyFrm(FLY_PAGE,
+ Point(rItem.lSendFromLeft + lLeft, rItem.lSendFromTop + lUpper),
+ Size (rItem.lAddrFromLeft - rItem.lSendFromLeft, 0));
+
+ pSh->EnterSelFrmMode();
+ pSh->SetFlyName( rSendMark );
+ pSh->UnSelectFrm();
+ pSh->LeaveSelFrmMode();
+ pSh->SetTxtFmtColl( pSend );
+ InsertLabEnvText( *pSh, aFldMgr, rItem.aSendText );
+ aMgr.UpdateAttrMgr();
+ }
+
+ // Empfaenger
+ pSh->SwCrsrShell::SttDoc();
+
+ aMgr.SetSizeType(ATT_VAR_SIZE);
+ aMgr.InsertFlyFrm(FLY_PAGE,
+ Point(rItem.lAddrFromLeft + lLeft, rItem.lAddrFromTop + lUpper),
+ Size (nPageW - rItem.lAddrFromLeft - 566, 0));
+ pSh->EnterSelFrmMode();
+ pSh->SetFlyName( rAddrMark );
+ pSh->UnSelectFrm();
+ pSh->LeaveSelFrmMode();
+ pSh->SetTxtFmtColl( pAddr );
+ InsertLabEnvText(*pSh, aFldMgr, rItem.aAddrText);
+
+ // Flys auf die "alten" Seiten verschieben
+ if (aFlyArr.Count())
+ pSh->SetPageObjsNewPage(aFlyArr, 1);
+
+ // Fertig
+ pSh->SwCrsrShell::SttDoc();
+
+ pSh->EndAllAction();
+
+ if (nMode == ENV_NEWDOC)
+ pSh->DoUndo(TRUE);
+ else
+ pSh->EndUndo(UIUNDO_INSERT_ENVELOPE);
+
+ if (nMode == ENV_NEWDOC)
+ {
+ pFrame->GetFrame()->Appear();
+
+ if ( rItem.aAddrText.Search('<') != STRING_NOTFOUND )
+ {
+ static USHORT __READONLY_DATA aInva[] =
+ {
+ SID_SBA_BRW_UPDATE,
+ SID_SBA_BRW_INSERT,
+ SID_SBA_BRW_MERGE,
+ 0
+ };
+ pFrame->GetBindings().Invalidate( aInva );
+
+ // Datenbankbeamer oeffnen
+ String sDBName(pSh->GetDBName());
+ ShowDBObj(*pSh, sDBName);
+ }
+ }
+ }
+ else //Abbruch
+ {
+ xDocSh->DoClose();
+ --nTitleNo;
+
+ // Pointer auf oberste View restaurieren
+ if (pOldSh)
+ SetView(&pOldSh->GetView());
+ }
+ delete pDlg;
+}
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.103 2000/09/18 16:05:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.102 2000/09/07 15:59:19 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.101 2000/07/26 16:33:02 jp
+ use the new function GetDocPoolNm to get the collectionames
+
+ Revision 1.100 2000/07/18 12:50:07 os
+ replace ofadbmgr
+
+ Revision 1.99 2000/06/30 08:52:03 os
+ #76541# string assertions removed
+
+ Revision 1.98 2000/05/23 17:52:04 jp
+ Bugfixes for Unicode
+
+ Revision 1.97 2000/04/20 12:49:34 os
+ GetName() returns String&
+
+ Revision 1.96 2000/04/11 08:01:30 os
+ UNICODE
+
+ Revision 1.95 2000/03/08 17:21:49 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.94 2000/02/11 14:42:22 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.93 1999/11/19 12:58:47 os
+ #69563# after SetJobsetup the printer may be invalid
+
+ Revision 1.92 1999/11/11 14:34:40 hr
+ #65293# STLPORT 3.2.1
+
+ Revision 1.91 1999/10/05 10:18:05 os
+ #67889# some printer problems solved
+
+ Revision 1.90 1999/10/01 13:36:53 os
+ apply AutoText to business cards
+
+ Revision 1.89 1999/07/08 13:59:32 MA
+ Use internal object to toggle wait cursor
+
+
+ Rev 1.88 08 Jul 1999 15:59:32 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.87 10 Jun 1999 10:52:08 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.86 01 Mar 1999 16:20:52 MA
+ #62490# Altlast entfernt (Drucken und Briefumschlaege/Etiketten und Datenbank)
+
+ Rev 1.85 17 Nov 1998 10:49:46 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.84 12 Nov 1998 19:19:20 MA
+ #59315# Tabelle am Dokumentanfang beruecksichtigen
+
+ Rev 1.83 14 Mar 1998 17:05:12 OM
+ Gelinkte Etiketten
+
+ Rev 1.82 05 Feb 1998 16:34:32 OS
+ Change: hidden ViewFrame anlegen
+
+ Rev 1.81 24 Nov 1997 14:22:34 MA
+ includes
+
+ Rev 1.80 30 Sep 1997 08:40:28 OS
+ include
+
+ Rev 1.79 12 Sep 1997 10:38:30 OS
+ ITEMID_* definiert
+
+ Rev 1.78 02 Sep 1997 09:56:50 OM
+ SDB-Headeranpassung
+
+ Rev 1.77 01 Sep 1997 13:06:32 OS
+ DLL-Umstellung
+
+ Rev 1.76 15 Aug 1997 11:45:06 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.75 12 Aug 1997 14:42:40 OS
+ Header-Umstellung
+
+ Rev 1.74 08 Aug 1997 17:26:50 OM
+ Headerfile-Umstellung
+
+ Rev 1.73 07 Aug 1997 14:59:28 OM
+ Headerfile-Umstellung
+
+ Rev 1.72 08 Jul 1997 14:04:10 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.71 11 Apr 1997 12:04:16 NF
+ includes...
+
+ Rev 1.70 08 Apr 1997 15:11:08 MH
+ chg: header
+
+ Rev 1.69 08 Apr 1997 08:32:20 MA
+ includes
+
+ Rev 1.68 13 Mar 1997 16:28:48 OM
+ DB-Feldbefehle korrekt erkennen
+
+ Rev 1.67 26 Feb 1997 03:46:12 OM
+ #37071# Richtige Datenbank nach Briefumschlag und Etiketten anzeigen
+
+ Rev 1.66 25 Feb 1997 22:48:58 OM
+ Datenbankfelder richtig einfuegen
+
+ Rev 1.65 11 Feb 1997 16:51:54 OM
+ Eingabefeld ueber Basic ohne Dialog einfuegen
+
+ Rev 1.64 16 Dec 1996 10:59:24 OM
+ Drucken aus DB-Browser angefangen
+
+ Rev 1.63 11 Dec 1996 09:26:14 MA
+ Entschlackt
+
+ Rev 1.62 06 Dec 1996 13:53:24 MA
+ Umbrueche fuer Tabellen
+
+ Rev 1.61 05 Dec 1996 15:23:54 OM
+ Nach Briefumschlag und Etiketten DB-Browser oeffnen
+
+ Rev 1.60 03 Dec 1996 17:41:12 AMA
+ Chg: Der Drucker wird nur im !Browsemodus angelegt.
+
+ Rev 1.59 08 Nov 1996 19:39:34 MA
+ ResMgr
+
+ Rev 1.58 08 Nov 1996 17:38:14 OM
+ DB-Mode fuer Serienbriefe und Etiketten zum Teil wiederbelebt
+
+ Rev 1.57 24 Oct 1996 13:36:04 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.56 18 Oct 1996 12:12:46 MA
+ fixes und opts
+
+ Rev 1.55 17 Oct 1996 16:54:36 MA
+ #31660# und diverse weitere fixes
+
+ Rev 1.54 26 Sep 1996 09:03:30 MA
+ defautls fuer Rahmen + Aufraeumarbeiten
+
+ Rev 1.53 25 Sep 1996 14:10:24 OM
+ Neue Datenbanktrenner
+
+-------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/apphdl.cxx b/sw/source/ui/app/apphdl.cxx
new file mode 100644
index 000000000000..cf78e5ec1c6e
--- /dev/null
+++ b/sw/source/ui/app/apphdl.cxx
@@ -0,0 +1,1389 @@
+/*************************************************************************
+ *
+ * $RCSfile: apphdl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+
+#ifndef _SFXEVENT_HXX //autogen
+#include <sfx2/event.hxx>
+#endif
+
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXSTBMGR_HXX //autogen
+#include <sfx2/stbmgr.hxx>
+#endif
+#ifndef _SFXISETHINT_HXX //autogen
+#include <svtools/isethint.hxx>
+#endif
+#ifndef _SVX_DLG_HYPERLINK_HXX //autogen
+#include <offmgr/hyprlink.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _OFA_OSPLCFG_HXX //autogen
+#include <offmgr/osplcfg.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_ADRITEM_HXX //autogen
+#include <svx/adritem.hxx>
+#endif
+#ifndef _SV_CLIP_HXX //autogen
+#include <vcl/clip.hxx>
+#endif
+#ifndef _DATAEX_HXX //autogen
+#include <dataex.hxx>
+#endif
+#ifndef _VCL_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _VCL_WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SVX_INSCTRL_HXX //autogen
+#include <svx/insctrl.hxx>
+#endif
+#ifndef _SVX_SELCTRL_HXX //autogen
+#include <svx/selctrl.hxx>
+#endif
+#ifndef _NAVICFG_HXX
+#include <navicfg.hxx>
+#endif
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "finder.hxx"
+#include "docsh.hxx"
+#include "cmdid.h" // Funktion-Ids
+#include "initui.hxx"
+#include "uitool.hxx"
+#include "swmodule.hxx"
+#include "wdocsh.hxx"
+#include "wview.hxx"
+#include "wizzard.hxx" // Wizzards
+#include "usrpref.hxx"
+#include "gloslst.hxx" // SwGlossaryList
+#include "glosdoc.hxx" // SwGlossaryList
+#include "doc.hxx"
+#include "cfgitems.hxx"
+#include "prtopt.hxx"
+#include "srcvcfg.hxx"
+#include "modcfg.hxx"
+#include "globals.h" // globale Konstanten z.B.
+#include "cfgid.h"
+#include "app.hrc"
+#ifndef _USRPREF_HXX //autogen
+#include <usrpref.hxx>
+#endif
+#ifndef _PRTOPT_HXX //autogen
+#include <prtopt.hxx>
+#endif
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#ifndef _FONTCFG_HXX //autogen
+#include <fontcfg.hxx>
+#endif
+#include "barcfg.hxx"
+#ifndef _UINUMS_HXX //autogen
+#include <uinums.hxx>
+#endif
+
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+#ifndef _SFX_SFXUNO_HXX
+#include <sfx2/sfxuno.hxx>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUES_HPP_
+#include <com/sun/star/beans/PropertyValues.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
+#include <com/sun/star/beans/PropertyValue.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATE_HPP_
+#include <com/sun/star/beans/PropertyState.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSETINFO_HPP_
+#include <com/sun/star/beans/XPropertySetInfo.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP_
+#include <com/sun/star/beans/XMultiPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XFASTPROPERTYSET_HPP_
+#include <com/sun/star/beans/XFastPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XVETOABLECHANGELISTENER_HPP_
+#include <com/sun/star/beans/XVetoableChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_
+#include <com/sun/star/beans/XPropertyState.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATECHANGELISTENER_HPP_
+#include <com/sun/star/beans/XPropertyStateChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYATTRIBUTE_HPP_
+#include <com/sun/star/beans/PropertyAttribute.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTIESCHANGELISTENER_HPP_
+#include <com/sun/star/beans/XPropertiesChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYCHANGELISTENER_HPP_
+#include <com/sun/star/beans/XPropertyChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYACCESS_HPP_
+#include <com/sun/star/beans/XPropertyAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYCONTAINER_HPP_
+#include <com/sun/star/beans/XPropertyContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATECHANGEEVENT_HPP_
+#include <com/sun/star/beans/PropertyStateChangeEvent.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP_
+#include <com/sun/star/beans/PropertyChangeEvent.hpp>
+#endif
+
+using namespace ::com::sun::star;
+
+#define C2S(cChar) String::CreateFromAscii(cChar)
+/*--------------------------------------------------------------------
+ Beschreibung: Slotmaps fuer Methoden der Applikation
+ --------------------------------------------------------------------*/
+
+
+// hier werden die SlotID's included
+// siehe Idl-File
+//
+#define SwModule
+#define ViewSettings
+#define WebViewSettings
+#define PrintSettings
+#define _ExecAddress ExecOther
+#define _StateAddress StateOther
+#include "itemdef.hxx"
+#include <svx/svxslots.hxx>
+#include "swslots.hxx"
+
+
+SFX_IMPL_INTERFACE( SwModule, SfxModule, SW_RES(RID_SW_NAME) )
+{
+ SFX_CHILDWINDOW_REGISTRATION(SvxHyperlinkDlgWrapper::GetChildWindowId());
+ SFX_STATUSBAR_REGISTRATION(SW_RES(CFG_STATUSBAR));
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Funktionen Ansicht
+------------------------------------------------------------------------*/
+
+void lcl_SetViewMetaChars( SwViewOption& rVOpt, sal_Bool bOn)
+{
+ rVOpt.SetViewMetaChars( bOn );
+ if(bOn && !(rVOpt.IsParagraph() ||
+ rVOpt.IsTab() ||
+ rVOpt.IsLineBreak() ||
+ rVOpt.IsBlank()))
+ {
+ rVOpt.SetParagraph(bOn);
+ rVOpt.SetTab(bOn);
+ rVOpt.SetLineBreak(bOn);
+ rVOpt.SetBlank(bOn);
+ }
+}
+
+
+sal_Bool lcl_IsViewMarks( const SwViewOption& rVOpt )
+{
+ return rVOpt.IsHardBlank() &&
+ rVOpt.IsSoftHyph() &&
+ rVOpt.IsTox() &&
+ rVOpt.IsFootNote() &&
+ rVOpt.IsField();
+}
+
+
+void lcl_SetViewMarks(SwViewOption& rVOpt, sal_Bool bOn )
+{
+ rVOpt.SetHardBlank(bOn);
+ rVOpt.SetSoftHyph(bOn);
+ rVOpt.SetTox(bOn);
+ rVOpt.SetFootNote(bOn);
+ rVOpt.SetField(bOn);
+ rVOpt.SetRef(bOn);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: State mit CheckMark fuer ViewOptions
+ --------------------------------------------------------------------*/
+
+
+void SwModule::StateViewOptions(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter(rSet);
+ sal_uInt16 nWhich = aIter.FirstWhich();
+ SfxBoolItem aBool;
+ const SwViewOption* pOpt = 0;
+ SwView* pActView = ::GetActiveView();
+ SwDoc *pDoc = 0;
+ if(pActView)
+ {
+ pOpt = pActView->GetWrtShell().GetViewOptions();
+ pDoc = pActView->GetDocShell()->GetDoc();
+ }
+
+ while(nWhich)
+ {
+ if(pActView)
+ {
+ sal_Bool bReadonly = pActView->GetDocShell()->IsReadOnly();
+ sal_Bool bBrowse = pDoc ? pDoc->IsBrowseMode() : sal_False;
+ if ( bReadonly && nWhich != FN_VIEW_GRAPHIC )
+ {
+ rSet.DisableItem(nWhich);
+ nWhich = 0;
+ }
+ switch(nWhich)
+ {
+ case FN_RULER:
+ aBool.SetValue( pActView->StatTab() ); break;
+ case FN_VIEW_BOUNDS:
+ aBool.SetValue( pOpt->IsSubsLines() ); break;
+ case FN_VIEW_GRAPHIC:
+ aBool.SetValue( !pOpt->IsGraphic() ); break;
+ case FN_VIEW_FIELDS:
+ aBool.SetValue( pOpt->IsField() ); break;
+ case FN_VIEW_FIELDNAME:
+ aBool.SetValue( pOpt->IsFldName() ); break;
+ case FN_VIEW_MARKS:
+ aBool.SetValue( lcl_IsViewMarks(*pOpt) ); break;
+ case FN_VIEW_META_CHARS:
+ aBool.SetValue( pOpt->IsViewMetaChars() ); break;
+ case FN_VIEW_TABLEGRID:
+ aBool.SetValue( pOpt->IsSubsTable() ); break;
+ case FN_VIEW_HIDDEN_PARA:
+ aBool.SetValue( pOpt->IsShowHiddenPara()); break;
+ case SID_GRID_VISIBLE:
+ aBool.SetValue( pOpt->IsGridVisible() ); break;
+ case SID_GRID_USE:
+ aBool.SetValue( pOpt->IsSnap() ); break;
+ case SID_HELPLINES_MOVE:
+ aBool.SetValue( pOpt->IsCrossHair() ); break;
+ case FN_VIEW_SMOOTH_SCROLL:
+ aBool.SetValue( pOpt->IsSmoothScroll()); break;
+ case FN_VLINEAL:
+ aBool.SetValue( pActView->StatVLineal() ); break;
+ case FN_HSCROLLBAR:
+ if(bBrowse)
+ {
+ rSet.DisableItem(nWhich);
+ nWhich = 0;
+ }
+ else
+ aBool.SetValue( pActView->StatHScrollbar() ); break;
+ case FN_VSCROLLBAR:
+ aBool.SetValue( pActView->StatVScrollbar() ); break;
+ case SID_AUTOSPELL_CHECK:
+ aBool.SetValue( pOpt->IsOnlineSpell() );
+ break;
+ case SID_AUTOSPELL_MARKOFF:
+ aBool.SetValue( pOpt->IsHideSpell() );
+ break;
+ case FN_SHADOWCURSOR:
+ if (pDoc == 0 || pDoc->IsBrowseMode())
+ {
+ rSet.DisableItem( nWhich );
+ nWhich = 0;
+ }
+ else
+ aBool.SetValue( pOpt->IsShadowCursor() );
+ break;
+
+ }
+ }
+ else
+ {
+ rSet.DisableItem( nWhich );
+ nWhich = 0;
+ }
+
+ if( nWhich )
+ {
+ aBool.SetWhich( nWhich );
+ rSet.Put( aBool );
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Andere States
+ --------------------------------------------------------------------*/
+
+
+void SwModule::StateOther(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter(rSet);
+ sal_uInt16 nWhich = aIter.FirstWhich();
+
+ SwView* pActView = ::GetActiveView();
+ sal_Bool bWebView = 0 != PTR_CAST(SwWebView, pActView);
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case FN_BUSINESS_CARD:
+ case FN_LABEL:
+ case FN_ENVELOP:
+ {
+ sal_Bool bDisable = sal_False;
+ SfxViewShell* pView = SfxViewShell::Current();
+ if( !pView || (pView && !pView->ISA(SwView)) )
+ bDisable = sal_True;
+ SwDocShell *pDocSh = (SwDocShell*) SfxObjectShell::Current();
+ if ( bDisable ||
+ (pDocSh && (pDocSh->IsReadOnly() ||
+ pDocSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED)) )
+ rSet.DisableItem( nWhich );
+
+ }
+ break;
+ case FN_EDIT_FORMULA:
+ {
+ SwWrtShell* pSh = 0;
+ int nSelection = 0;
+ if( pActView )
+ pSh = &pActView->GetWrtShell();
+ if( pSh )
+ nSelection = pSh->GetSelectionType();
+
+ if( (pSh && pSh->HasSelection()) ||
+ !(nSelection & (SwWrtShell::SEL_TXT | SwWrtShell::SEL_TBL)))
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case SID_ATTR_ADDRESS:
+ {
+ rSet.Put(pPathFinder->GetAddress());
+ }
+ break;
+ case SID_ATTR_UNDO_COUNT:
+ rSet.Put(SfxUInt16Item( SID_ATTR_UNDO_COUNT, SwEditShell::GetUndoActionCount()));
+ break;
+ case SID_ATTR_METRIC:
+ rSet.Put( SfxUInt16Item( SID_ATTR_METRIC, ::GetDfltMetric(bWebView)));
+ break;
+ case FN_SET_MODOPT_TBLNUMFMT:
+ rSet.Put( SfxBoolItem( nWhich, pModuleConfig->
+ IsInsTblFormatNum( bWebView )));
+ break;
+
+ default:
+ DBG_ERROR("::StateOther: default");
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Wizzards
+ --------------------------------------------------------------------*/
+
+
+void SwModule::ExecWizzard(SfxRequest & rReq)
+{
+ Wizzard( rReq.GetSlot() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einstellungen fuer den Bildschirm
+ --------------------------------------------------------------------*/
+
+
+
+void SwModule::ExecViewOptions(SfxRequest &rReq)
+{
+ SwViewOption* pOpt = 0;
+ OfficeApplication* pOffApp = OFF_APP();
+ sal_Bool bModified = sal_True;
+ if ( GetView() )
+ {
+ pOpt = new SwViewOption( *GetView()->GetWrtShell().GetViewOptions() );
+ bModified = GetView()->GetWrtShell().IsModified();
+ }
+ else
+ {
+ pOpt = new SwViewOption();
+ DBG_ERROR("ExecViewOptions: ohne View - falsche UsrPref?")
+ MakeUsrPref(*pOpt, sal_False);
+ }
+
+
+ int eState = STATE_TOGGLE;
+ sal_Bool bSet = sal_False;
+
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ sal_uInt16 nSlot = rReq.GetSlot();
+ const SfxPoolItem* pAttr;
+
+ if( pArgs && SFX_ITEM_SET == pArgs->GetItemState( nSlot , sal_False, &pAttr ))
+ {
+ bSet = ((SfxBoolItem*)pAttr)->GetValue();
+ eState = bSet ? STATE_ON : STATE_OFF;
+ }
+
+
+ int bFlag = STATE_ON == eState;
+ // fuer die (WebViewSettings
+ enum WebDepend
+ {
+ DEPEND_NONE,
+ DEPEND_NOWEB,
+ DEPEND_WEB
+ }eWebDepend = DEPEND_NONE;
+
+ uno::Reference< beans::XPropertySet > xLngProp( ::GetLinguPropertySet() );
+
+ switch ( nSlot )
+ {
+ case FN_VIEW_GRAPHIC:
+
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsGraphic();
+ pOpt->SetGraphic( bFlag );
+ break;
+
+ case FN_VIEW_FIELDS:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsField() ;
+
+ pOpt->SetField( bFlag );
+ pOpt->SetRef( bFlag );
+ break;
+
+ case FN_VIEW_BOUNDS:
+
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsSubsLines();
+
+ pOpt->SetSubsLines( bFlag );
+ break;
+
+ case SID_GRID_VISIBLE:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsGridVisible();
+
+ pOpt->SetGridVisible( bFlag );
+ break;
+
+ case SID_GRID_USE:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsSnap();
+
+ pOpt->SetSnap( bFlag );
+ break;
+
+ case SID_HELPLINES_MOVE:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsCrossHair();
+
+ pOpt->SetCrossHair( bFlag );
+ break;
+
+ case FN_VIEW_HIDDEN_PARA:
+ if ( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsShowHiddenPara();
+
+ pOpt->SetShowHiddenPara( bFlag );
+ break;
+
+ case FN_VIEW_SMOOTH_SCROLL:
+
+ if ( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsSmoothScroll();
+
+ pOpt->SetSmoothScroll( bFlag );
+ break;
+
+
+ case FN_VLINEAL:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsViewVLin();
+
+ pOpt->SetViewVLin( bFlag );
+ break;
+
+ case FN_VSCROLLBAR:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsViewVScrollBar();
+
+ pOpt->SetViewVScrollBar( bFlag );
+ break;
+
+ case FN_HSCROLLBAR:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsViewHScrollBar();
+
+ pOpt->SetViewHScrollBar( bFlag );
+ break;
+ case FN_RULER:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsViewTabwin();
+
+ pOpt->SetViewTabwin( bFlag );
+ break;
+
+ case FN_VIEW_TABLEGRID:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsSubsTable();
+
+ pOpt->SetSubsTable( bFlag );
+ break;
+
+ case FN_VIEW_FIELDNAME:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsFldName() ;
+
+ pOpt->SetFldName( bFlag );
+ break;
+ case FN_VIEW_MARKS:
+ if( STATE_TOGGLE == eState )
+ bFlag = !lcl_IsViewMarks(*pOpt) ;
+
+ lcl_SetViewMarks( *pOpt, bFlag );
+ break;
+ case FN_VIEW_META_CHARS:
+ if( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsViewMetaChars();
+
+ lcl_SetViewMetaChars( *pOpt, bFlag );
+ break;
+ case SID_AUTOSPELL_CHECK:
+ if( STATE_TOGGLE == eState )
+ bFlag = bSet = !pOpt->IsOnlineSpell();
+
+ pOpt->SetOnlineSpell(bSet);
+ if (xLngProp.is())
+ {
+ uno::Any aVal(&bSet, ::getCppuBooleanType());
+ xLngProp->setPropertyValue( C2S(UPN_IS_SPELL_AUTO), aVal );
+ }
+ //pOffApp->GetLinguConfig()->SetDefault( sal_False );
+
+ if (!(STATE_TOGGLE == eState && bSet && ( pOpt->IsHideSpell() )))
+ break;
+ case SID_AUTOSPELL_MARKOFF:
+ if( STATE_TOGGLE == eState )
+ bFlag = bSet = !pOpt->IsHideSpell();
+
+ pOpt->SetHideSpell(bSet);
+ if (xLngProp.is())
+ {
+ uno::Any aVal(&bSet, ::getCppuBooleanType());
+ xLngProp->setPropertyValue( C2S(UPN_IS_SPELL_HIDE), aVal );
+ }
+ //pOffApp->GetLinguConfig()->SetDefault( sal_False );
+ break;
+
+ case FN_SHADOWCURSOR:
+ if( STATE_TOGGLE == eState )
+ bFlag = bSet = !pOpt->IsShadowCursor();
+
+ pOpt->SetShadowCursor(bSet);
+ break;
+
+ default:
+ ASSERT(sal_False, Falsche Request-Methode);
+ return;
+ }
+
+ // UserPrefs setzen Request als bearbeitet kennzeichnen
+ SwView* pApplyView = GetView();
+ sal_Bool bWebView = 0 != PTR_CAST(SwWebView, pApplyView);
+ // die ViewSettings duerfen nur der View zugewiesen werden,
+ // wenn es auch die richtigen sind
+ if(pApplyView && DEPEND_NONE != eWebDepend)
+ {
+ if(bWebView && DEPEND_NOWEB == eWebDepend ||
+ !bWebView && DEPEND_WEB == eWebDepend )
+ pApplyView = 0;
+ }
+ if( pApplyView )
+ {
+ SwWrtShell &rSh = GetView()->GetWrtShell();
+ rSh.StartAction();
+ if( !(*rSh.GetViewOptions() == *pOpt ))
+ {
+ rSh.ApplyViewOptions( *pOpt );
+
+ //Die UsrPref muessen als Modified gekennzeichnet werden.
+ if(bWebView)
+ {
+ // fuer die Initialisierung
+ if(!pWebUsrPref)
+ GetUsrPref(sal_True);
+ pWebUsrPref->SetDefault( sal_False );
+ }
+ else
+ {
+ if(!pUsrPref)
+ GetUsrPref(sal_False);
+ pUsrPref->SetDefault( sal_False );
+ }
+ SW_MOD()->CheckSpellChanges( pOpt->IsOnlineSpell(), sal_False, sal_False );
+
+ }
+ //OS: Modified wieder zuruecksetzen, weil Ansicht/Felder
+ // das Doc modified setzt.
+ if( !bModified )
+ rSh.ResetModified();
+ }
+ sal_uInt16 nDest = VIEWOPT_DEST_VIEW;
+ if(DEPEND_WEB == eWebDepend )
+ nDest = VIEWOPT_DEST_WEB;
+ else if(DEPEND_NOWEB == eWebDepend)
+ nDest = VIEWOPT_DEST_TEXT;
+ ApplyUsrPref( *pOpt, pApplyView, nDest );
+ if ( pApplyView )
+ pApplyView->GetWrtShell().EndAction();
+
+ delete pOpt;
+ Invalidate(rReq.GetSlot());
+ if(!pArgs)
+ rReq.AppendItem(SfxUInt16Item(nSlot, bFlag));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Felddialog starten
+ --------------------------------------------------------------------*/
+
+
+void SwModule::ExecOther(SfxRequest& rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem = 0;
+
+ sal_uInt16 nWhich = rReq.GetSlot();
+ switch (nWhich)
+ {
+ case FN_ENVELOP:
+ InsertEnv();
+ break;
+
+ case FN_BUSINESS_CARD:
+ case FN_LABEL:
+ InsertLab(nWhich == FN_LABEL);
+ break;
+
+ case SID_SW_DOCMAN_PATH:
+ {
+ ASSERT(pArgs && pArgs->Count(), "fehlende Parameter GetDocManPath");
+ if(!pArgs)
+ return;
+
+ String aParam(((const SfxStringItem &)pArgs->Get(rReq.GetSlot())).GetValue());
+ String aPath;
+
+ if(aParam == C2S("~~~GetMacroPath"))
+ {
+ aPath = SFX_INIMANAGER()->Get( SFX_KEY_CONFIG_DIR );
+ aPath = URIHelper::SmartRelToAbs(aPath);
+ if(aPath.Len())
+ aPath += INET_PATH_TOKEN;
+ }
+ else if(aParam == C2S("~~~GetDefDocExt"))
+ aPath =
+#if defined(PM2) || defined(MAC_WITHOUT_EXT)
+ aEmptyStr;
+#else
+ C2S(".sdw");
+#endif
+ else if(aParam == C2S("~~~SetNoFrameBeep"))
+ {
+ SwView* pActView = ::GetActiveView();
+ if( pActView && pActView->GetDocShell() )
+ pActView->GetDocShell()->GetDoc()->SetFrmBeepEnabled( sal_False );
+ }
+ else if(aParam == C2S("~~~SetFrameBeep"))
+ {
+ SwView* pActView = ::GetActiveView();
+ if( pActView && pActView->GetDocShell() )
+ pActView->GetDocShell()->GetDoc()->SetFrmBeepEnabled( sal_True );
+ }
+ rReq.SetReturnValue(SfxStringItem( SID_SW_DOCMAN_PATH, aPath ));
+ }
+ break;
+
+ case SID_ATTR_ADDRESS:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(nWhich, sal_False, &pItem))
+ {
+ pPathFinder->SetAddress( *(SvxAddressItem*)pItem );
+ }
+ }
+ break;
+ case SID_ATTR_UNDO_COUNT:
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(nWhich, sal_False, &pItem))
+ {
+ const int nNew = ((SfxUInt16Item*)pItem)->GetValue();
+ const int nOld = SwEditShell::GetUndoActionCount();
+ if(!nNew || !nOld)
+ {
+ sal_Bool bUndo = nNew != 0;
+ //ueber DocShells iterieren und Undo umschalten
+
+ TypeId aType(TYPE(SwDocShell));
+ SwDocShell* pDocShell = (SwDocShell*)SfxObjectShell::GetFirst(&aType);
+ while( pDocShell )
+ {
+ pDocShell->GetDoc()->DoUndo( bUndo );
+ pDocShell = (SwDocShell*)SfxObjectShell::GetNext(*pDocShell, &aType);
+ }
+ }
+ SwEditShell::SetUndoActionCount( nNew );
+ // intern kommt der Request aus dem Dialog, dort werden die Options gesetzt
+ if(rReq.IsAPI())
+ OFF_APP()->GetOptions().SetUndoCount( nNew );
+ break;
+ }
+ break;
+ case SID_ATTR_METRIC:
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(nWhich, sal_False, &pItem))
+ {
+ FieldUnit eUnit = (FieldUnit)((const SfxUInt16Item*)pItem)->GetValue();
+ switch( eUnit )
+ {
+ case FUNIT_MM:
+ case FUNIT_CM:
+ case FUNIT_INCH:
+ case FUNIT_PICA:
+ case FUNIT_POINT:
+ {
+ SwView* pActView = ::GetActiveView();
+ sal_Bool bWebView = 0 != PTR_CAST(SwWebView, pActView);
+ ::SetDfltMetric(eUnit, bWebView);
+ OFF_APP()->GetOptions().SetMetric(eUnit);
+ }
+ break;
+ }
+ }
+ break;
+
+ case FN_SET_MODOPT_TBLNUMFMT:
+ {
+ sal_Bool bWebView = 0 != PTR_CAST(SwWebView, ::GetActiveView() ),
+ bSet;
+
+ if( pArgs && SFX_ITEM_SET == pArgs->GetItemState(
+ nWhich, sal_False, &pItem ))
+ bSet = ((SfxBoolItem*)pItem)->GetValue();
+ else
+ bSet = !pModuleConfig->IsInsTblFormatNum( bWebView );
+
+ pModuleConfig->SetInsTblFormatNum( bWebView, bSet );
+ }
+ break;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+/*
+SfxMacro *SwWriterApp::CreateMacro() const
+{
+ return BasicIDE::CreateMacro();
+} */
+
+/*--------------------------------------------------------------------
+ Beschreibung: Notifies abfangen
+ --------------------------------------------------------------------*/
+
+
+ // Hint abfangen fuer DocInfo
+void SwModule::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ if( rHint.ISA( SfxEventHint ) )
+ {
+ SfxEventHint& rEvHint = (SfxEventHint&) rHint;
+ SwDocShell* pDocSh = PTR_CAST( SwDocShell, rEvHint.GetObjShell() );
+ if( pDocSh )
+ {
+ SwWrtShell* pWrtSh = pDocSh ? pDocSh->GetWrtShell() : 0;
+ switch( rEvHint.GetEventId() )
+ {
+/* MA 07. Mar. 96: UpdateInputFlds() nur noch bei Dokument neu.
+ (Und bei Einfuegen Textbaust.)
+ case SFX_EVENT_OPENDOC:
+ // dann am aktuellen Dokument die Input-Fedler updaten
+ if( pWrtSh )
+ pWrtSh->UpdateInputFlds();
+ break;
+*/
+ case SFX_EVENT_CREATEDOC:
+ // alle FIX-Date/Time Felder auf akt. setzen
+ if( pWrtSh )
+ {
+ pWrtSh->SetFixFields();
+ pWrtSh->UpdateInputFlds();
+
+ // Sind Datenbankfelder enthalten?
+ // Erstmal alle verwendeten Datenbanken holen
+ SwDoc *pDoc = pDocSh->GetDoc();
+ SvStringsDtor aDBNameList;
+ pDoc->GetAllUsedDB( aDBNameList );
+ sal_uInt16 nCount = aDBNameList.Count();
+ if (nCount)
+ { // Datenbankbeamer oeffnen
+ String sDBName = pDoc->GetDBName();
+ ShowDBObj(*pWrtSh, sDBName);
+ }
+ }
+ break;
+ }
+ }
+ }
+ else if(rHint.ISA(SfxItemSetHint))
+ {
+ if( SFX_ITEM_SET == ((SfxItemSetHint&)rHint).GetItemSet().GetItemState(SID_ATTR_PATHNAME))
+ {
+ ::GetGlossaries()->UpdateGlosPath( sal_False );
+ SwGlossaryList* pList = ::GetGlossaryList();
+ if(pList->IsActive())
+ pList->Update();
+ }
+
+ const SfxPoolItem* pItem = 0;
+
+ if( SFX_ITEM_SET == ((SfxItemSetHint&)rHint).GetItemSet().GetItemState(SID_ATTR_ADDRESS, sal_False, &pItem))
+ {
+ sActAuthor = ((const SvxAddressItem*)pItem)->GetFirstName();
+ sActAuthor += ' ';
+ sActAuthor += ((const SvxAddressItem*)pItem)->GetName();
+ }
+ }
+ else if(rHint.ISA(SfxSimpleHint) &&
+ ((SfxSimpleHint&)rHint).GetId() == SFX_HINT_DEINITIALIZING)
+ {
+ // Clipboard loslassen:
+ if( pClipboard )
+ {
+ sal_Bool bFlushToSystem = sal_False;
+ if( VclClipboard::ExistsSystemClipboard() )
+ {
+ if( pClipboard->IsBig() )
+ {
+ QueryBox aBox( 0, SW_RES(MSG_CLPBRD_CLEAR) );
+ if( RET_YES == aBox.Execute() )
+ bFlushToSystem = sal_True;
+ }
+ else
+ bFlushToSystem = sal_True;
+ }
+
+ if ( pClipboard )
+ {
+ VclClipboard::ReleaseClipboard( bFlushToSystem );
+ ASSERT( !pClipboard, "can't get off this Clipboard" );
+ }
+ }
+
+ if(pSrcViewConfig)
+ {
+ if(!pSrcViewConfig->IsDefault())
+ pSrcViewConfig->StoreConfig();
+ DELETEZ( pSrcViewConfig );
+ }
+
+ DELETEZ(pWebUsrPref);
+ DELETEZ(pUsrPref) ;
+ DELETEZ(pModuleConfig);
+ DELETEZ(pPrtOpt) ;
+ DELETEZ(pWebPrtOpt) ;
+ DELETEZ(pChapterNumRules);
+ DELETEZ(pStdFontConfig) ;
+ DELETEZ(pNavigationConfig) ;
+ DELETEZ(pToolbarConfig) ;
+ DELETEZ(pWebToolbarConfig) ;
+ DELETEZ(pAuthorNames) ;
+ }
+}
+void SwModule::FillStatusBar( StatusBar& rStatusBar )
+{
+ // Hier den StatusBar initialisieren
+ // und Elemente reinschieben
+
+ // Anzeige Seite
+ String aTmp; aTmp.Fill( 10, 'X' );
+ rStatusBar.InsertItem( FN_STAT_PAGE, rStatusBar.GetTextWidth(
+ aTmp ), SIB_AUTOSIZE | SIB_LEFT);
+ rStatusBar.SetHelpId(FN_STAT_PAGE, FN_STAT_PAGE);
+
+ // Seitenvorlage
+ aTmp.Fill( 15, 'X' );
+ rStatusBar.InsertItem( FN_STAT_TEMPLATE, rStatusBar.GetTextWidth(
+ aTmp ), SIB_AUTOSIZE | SIB_LEFT );
+ rStatusBar.SetHelpId(FN_STAT_TEMPLATE, FN_STAT_TEMPLATE);
+
+ // Zoomeinstellungen
+ rStatusBar.InsertItem( SID_ATTR_ZOOM, rStatusBar.GetTextWidth(
+ C2S("1000%")) );
+ rStatusBar.SetHelpId(SID_ATTR_ZOOM, SID_ATTR_ZOOM);
+
+ // Insert/Overwrite
+ rStatusBar.InsertItem( SID_ATTR_INSERT,
+ SvxInsertStatusBarControl::GetDefItemWidth(rStatusBar));
+ rStatusBar.SetHelpId(SID_ATTR_INSERT, SID_ATTR_INSERT);
+
+ // awt::Selection-Modus
+ rStatusBar.InsertItem( FN_STAT_SELMODE,
+ SvxSelectionModeControl::GetDefItemWidth(rStatusBar));
+
+ rStatusBar.SetHelpId(FN_STAT_SELMODE, FN_STAT_SELMODE);
+
+ // Hyperlink ausfuehren/bearbeiten
+ rStatusBar.InsertItem( FN_STAT_HYPERLINKS, rStatusBar.GetTextWidth(
+ C2S("HYP")) );
+ rStatusBar.SetHelpId(FN_STAT_HYPERLINKS, FN_STAT_HYPERLINKS);
+
+ // Dokument geaendert
+ rStatusBar.InsertItem( SID_DOC_MODIFIED, rStatusBar.GetTextWidth(
+ C2S("*")));
+ rStatusBar.SetHelpId(SID_DOC_MODIFIED, SID_DOC_MODIFIED);
+
+ // den aktuellen Context anzeigen Uhrzeit / FrmPos / TabellenInfo
+ aTmp.Fill( 25, sal_Unicode('X') );
+ rStatusBar.InsertItem( SID_ATTR_SIZE, rStatusBar.GetTextWidth(
+ aTmp ), SIB_AUTOSIZE | SIB_LEFT | SIB_USERDRAW);
+ rStatusBar.SetHelpId(SID_ATTR_SIZE, SID_ATTR_SIZE);
+}
+
+/*-----------------18.11.96 10.42-------------------
+
+--------------------------------------------------*/
+
+SwSrcViewConfig* SwModule::GetSourceViewConfig()
+{
+ if(!pSrcViewConfig)
+ {
+ pSrcViewConfig = new SwSrcViewConfig();
+ pSrcViewConfig->Initialize();
+ }
+ return pSrcViewConfig;
+}
+
+/*-----------------30.01.97 08.30-------------------
+
+--------------------------------------------------*/
+const SwMasterUsrPref *SwModule::GetUsrPref(sal_Bool bWeb)
+{
+ if(bWeb && !pWebUsrPref)
+ {
+ // im Load der SwMasterUsrPref wird der SpellChecker gebraucht, dort darf
+ // er aber nicht angelegt werden #58256#
+ pWebUsrPref = new SwMasterUsrPref(CFG_SWWEB_USRPREF);
+ pWebUsrPref->Initialize();
+ }
+ else if(!bWeb && !pUsrPref)
+ {
+ pUsrPref = new SwMasterUsrPref(CFG_USERPREF_ITEM);
+ pUsrPref->Initialize();
+ }
+ return bWeb ? pWebUsrPref : pUsrPref;
+}
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.289 2000/09/18 16:05:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.288 2000/09/08 15:11:56 os
+ use configuration service
+
+ Revision 1.287 2000/07/18 12:50:07 os
+ replace ofadbmgr
+
+ Revision 1.286 2000/06/26 13:03:00 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.285 2000/06/16 08:25:40 martin.hollmichel
+ add: header
+
+ Revision 1.284 2000/06/13 09:56:08 os
+ using UCB
+
+ Revision 1.283 2000/05/26 07:21:27 os
+ old SW Basic API Slots removed
+
+ Revision 1.282 2000/05/11 12:00:13 tl
+ if[n]def ONE_LINGU und alte SUPD entfernt
+
+ Revision 1.281 2000/05/10 11:52:26 os
+ Basic API removed
+
+ Revision 1.280 2000/05/09 14:40:15 os
+ BASIC interface partially removed
+
+ Revision 1.279 2000/05/08 11:23:33 os
+ CreateSubObject
+
+ Revision 1.278 2000/04/11 08:01:30 os
+ UNICODE
+
+ Revision 1.277 2000/03/21 15:47:50 os
+ UNOIII
+
+
+ Revision 1.276 2000/03/14 13:47:26 jp
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.275 2000/03/08 17:21:49 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.274 2000/01/31 10:14:56 tl
+ #71447# workaround removed
+
+ Revision 1.273 2000/01/11 16:24:13 jp
+ Bug #71447#: set config as modified if AutoSpell-Flag is changed
+
+ Revision 1.272 2000/01/11 10:20:04 tl
+ #70735# CheckSpellChanges now called from SW_MOD for ONE_LINGU
+
+ Revision 1.271 1999/11/30 10:18:55 jp
+ Task #70259#: more entries into to the popup menus
+
+ Revision 1.270 1999/11/29 14:39:27 tl
+ fixed old header merge problem
+
+ Revision 1.269 1999/11/25 09:27:46 tl
+ SvxGetLinguPropertySet => ::GetLinguPropertySet
+
+ Revision 1.266 1999/10/27 11:00:45 hr
+ #65293#
+
+ Revision 1.265 1999/10/25 19:36:26 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.264 1999/10/21 17:45:23 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.263 1999/09/28 13:17:45 os
+ #67382# separate dialog for business cards
+
+ Revision 1.262 1999/08/31 08:33:52 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.261 31 Aug 1999 10:33:52 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.260 04 Feb 1999 21:13:04 JP
+ Bug #61404#/61014#: neu: SetFixFields statt zweier Methoden
+
+ Rev 1.259 04 Jan 1999 13:41:38 OS
+ #60209# StatusBar: Groessen uber GetDefItemWidth am Controller ermitteln
+
+ Rev 1.258 26 Nov 1998 15:20:44 MA
+ #59896# Raster usw jetzt an der Application
+
+ Rev 1.257 23 Nov 1998 17:36:52 JP
+ Bug #59754#: TerminateHdl wird nicht mehr fuers Clipboard benoetigt
+
+ Rev 1.256 05 Nov 1998 11:22:10 OS
+ #58396# ConfigItems im Notify loeschen
+
+ Rev 1.255 21 Oct 1998 15:29:20 OS
+ #58256# Spellchecker vor dem Load der UsrPref anziehen
+
+ Rev 1.254 05 Oct 1998 17:29:26 HR
+ UPD->SUPD
+
+ Rev 1.253 08 Sep 1998 16:48:10 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.252 15 Jul 1998 12:51:00 OS
+ Navigator an der SwView registrieren #34794#
+
+ Rev 1.251 09 Jul 1998 17:13:24 MA
+ muss: kein docman mehr
+
+ Rev 1.250 15 May 1998 17:26:10 OM
+ #50043# DirectCursor nicht im OnlineLayout
+
+ Rev 1.249 03 Apr 1998 14:39:16 OS
+ RID_DEFAULTTOLOLBOX endlich entsorgt
+
+ Rev 1.248 16 Mar 1998 19:09:12 OM
+ Zugriff auf Ini optimiert
+
+ Rev 1.247 12 Feb 1998 14:28:44 OS
+ SID_TOGGLESTATUSBAR
+
+ Rev 1.246 29 Jan 1998 14:20:38 OS
+ SvxItemFactory an der DesktopApplication anlegen #46753#
+
+ Rev 1.245 26 Jan 1998 09:12:54 OS
+ neu: WebViewSettings
+
+ Rev 1.244 22 Dec 1997 17:16:26 MA
+ ShadowCursor
+
+ Rev 1.243 10 Dec 1997 14:42:32 OM
+ Fixe DocInfoFelder
+
+ Rev 1.242 03 Dec 1997 17:01:24 OS
+ Statuszeile per Basic geht wieder #45887#
+
+ Rev 1.241 28 Nov 1997 14:17:14 MA
+ includes
+
+ Rev 1.240 28 Nov 1997 11:00:36 TJ
+ include
+
+ Rev 1.239 24 Nov 1997 14:22:46 MA
+ includes
+
+ Rev 1.238 11 Nov 1997 14:02:58 MA
+ precomp entfernt
+
+ Rev 1.237 03 Nov 1997 16:13:08 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.236 01 Sep 1997 13:06:38 OS
+ DLL-Umstellung
+
+ Rev 1.235 12 Aug 1997 14:42:40 OS
+ Header-Umstellung
+
+ Rev 1.234 08 Aug 1997 17:27:00 OM
+ Headerfile-Umstellung
+
+ Rev 1.233 05 Aug 1997 16:09:20 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.232 08 Jul 1997 14:04:16 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.231 11 Jun 1997 14:47:10 OM
+ DB-Beamer bei Vorlagen mit DB-Feldern oeffnen
+
+ Rev 1.230 09 Jun 1997 14:28:18 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.229 06 Jun 1997 12:43:18 MA
+ chg: versteckte Absaetze ausblenden
+
+ Rev 1.228 05 Jun 1997 09:32:50 OS
+ FN_INSERT_HEADER/FOOTER invalidieren #40441#
+
+ Rev 1.227 28 May 1997 18:17:28 HJS
+ includes
+
+ Rev 1.226 28 May 1997 08:13:06 OS
+ SID_ATTR_METRIC am SwModule ausfuehren fr #40192#
+
+ Rev 1.225 05 May 1997 08:02:14 OS
+ SID_MAIL_NOTIFY mit richtigen Parametern im StatusBar
+
+ Rev 1.224 25 Apr 1997 09:19:52 OS
+ SID_MAIL_NOTIFY in der Statuszeile
+
+ Rev 1.223 11 Apr 1997 11:00:08 MA
+ includes
+
+ Rev 1.222 07 Apr 1997 15:31:10 MH
+ chg: header
+
+ Rev 1.221 01 Apr 1997 16:25:56 MH
+ add: include sfxdcmn.hxx
+
+ Rev 1.220 23 Mar 1997 23:47:42 OS
+ Mail nicht mehr in der Statuszeile
+
+ Rev 1.219 19 Mar 1997 09:26:22 NF
+ includes (OS2)
+
+ Rev 1.218 10 Mar 1997 09:29:48 JP
+ neues Flag am Doc, um die Beeps aus dem LayoutPaint abzuschalten
+
+ Rev 1.217 05 Feb 1997 18:47:20 MH
+ inetdlg.hxx raus
+
+ Rev 1.216 05 Feb 1997 13:34:44 OS
+ PrintOptins auch fuer Web
+
+ Rev 1.215 30 Jan 1997 11:10:30 OS
+ UsrPrefs verdoppelt; neu: FN_PRINT_LAYOUT
+
+ Rev 1.214 27 Jan 1997 16:25:58 OS
+ HtmlMode entfernt
+
+ Rev 1.213 14 Jan 1997 14:25:00 OS
+ pModuleConfig immer anlegen
+
+ Rev 1.212 13 Jan 1997 16:45:24 OS
+ neu: SwModuleOptions
+
+ Rev 1.211 19 Dec 1996 16:05:50 OS
+ BrowseMode mit HtmlMode koppeln; SetPrinter nur, wenn keiner da ist
+
+ Rev 1.210 13 Dec 1996 14:34:08 OS
+ UndoCount wird aus der SfxApp besorgt
+
+ Rev 1.209 12 Dec 1996 20:30:32 OS
+ GetSbxObject und ItemFactories von der App an das Module
+
+ Rev 1.208 12 Dec 1996 08:41:18 OS
+ GetSpellChecker an der App rufen
+
+ Rev 1.207 11 Dec 1996 14:17:40 OS
+ View nicht von der App holen; Spell-Opts auch an der MiscConfig setzen
+
+ Rev 1.206 03 Dec 1996 16:56:48 AMA
+ Chg: Der Drucker wird nur im !Browsemodus angelegt.
+
+ Rev 1.205 26 Nov 1996 19:44:40 OS
+ GetDocManPath mit SID_SW_DOCMAN_PATH
+
+ Rev 1.204 25 Nov 1996 10:30:40 MA
+ apptitle ist desktop, dafuer name fuer interface
+
+ Rev 1.203 22 Nov 1996 13:05:44 OS
+ neue Ids fuer Wizards
+
+ Rev 1.202 18 Nov 1996 14:15:26 OS
+ neu: GetSourceViewConfig am Module
+
+ Rev 1.201 08 Nov 1996 19:39:36 MA
+ ResMgr
+
+ Rev 1.200 07 Nov 1996 16:20:40 OS
+ FillStatusBar jetzt am Module
+
+ Rev 1.199 05 Nov 1996 15:28:40 OS
+ FN_BASIC war auch ueberfluessig
+
+ Rev 1.198 01 Nov 1996 18:02:40 MA
+ Writer Module
+
+ Rev 1.197 24 Oct 1996 16:55:52 MA
+ #32609#
+
+ Rev 1.196 23 Oct 1996 13:49:10 JP
+ SVMEM -> SVSTDARR Umstellung
+
+ Rev 1.195 18 Oct 1996 11:14:14 OS
+ SID_RULER_PROTECT auch fuer Browser-Umschaltung invalidieren
+
+ Rev 1.194 27 Sep 1996 13:59:48 OS
+ Etiketten und Umschlaege nicht in Readonly-Docs
+
+ Rev 1.193 27 Sep 1996 12:58:12 OS
+ Aktualisieren der Autotexte nachdem die Pfade an der App veraendert wurden
+
+ Rev 1.192 23 Sep 1996 08:21:54 OS
+ Umschalten der Viewoptions nur noch per Bool
+
+ -------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/applab.cxx b/sw/source/ui/app/applab.cxx
new file mode 100644
index 000000000000..5c6f374b4de6
--- /dev/null
+++ b/sw/source/ui/app/applab.cxx
@@ -0,0 +1,759 @@
+/*************************************************************************
+ *
+ * $RCSfile: applab.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#if STLPORT_VERSION>=321
+#include <cstdarg>
+#endif
+
+#define ITEMID_BOXINFO SID_ATTR_BORDER_INNER
+#include <hintids.hxx>
+
+#ifndef _APP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SBA_SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SVX_PBINITEM_HXX //autogen
+#include <svx/pbinitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_PAPERINF_HXX
+#include <svx/paperinf.hxx>
+#endif
+#ifndef _LINKMGR_HXX
+#include <so3/linkmgr.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XSTORABLE_HPP_
+#include <com/sun/star/frame/XStorable.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
+#include <com/sun/star/frame/XModel.hpp>
+#endif
+
+#ifndef _FMTHDFT_HXX //autogen
+#include <fmthdft.hxx>
+#endif
+#ifndef _FMTANCHR_HXX //autogen
+#include <fmtanchr.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _GLOSSARY_HXX
+#include <glossary.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _PARATR_HXX
+#include <paratr.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _LABEL_HXX
+#include <label.hxx>
+#endif
+#ifndef _LABIMG_HXX
+#include <labimg.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _APP_HRC
+#include <app.hrc>
+#endif
+#ifndef _POOLFMT_HRC
+#include <poolfmt.hrc>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+// steht im appenv.cxx
+extern sal_Bool InsertLabEnvText( SwWrtShell& , SwFldMgr& , const String& );
+
+const char __FAR_DATA MASTER_LABEL[] = "MasterLabel";
+
+// --------------------------------------------------------------------------
+
+const SwFrmFmt *lcl_InsertBCText( SwWrtShell& rSh, const SwLabItem& rItem,
+ SwFrmFmt &rFmt,
+ sal_uInt16 nCol, sal_uInt16 nRow, sal_Bool bPage)
+{
+ SfxItemSet aSet(rSh.GetAttrPool(), RES_ANCHOR, RES_ANCHOR,
+ RES_VERT_ORIENT, RES_VERT_ORIENT, RES_HORI_ORIENT, RES_HORI_ORIENT, 0 );
+ sal_uInt16 nPhyPageNum, nVirtPageNum;
+ rSh.GetPageNum( nPhyPageNum, nVirtPageNum );
+
+ aSet.Put(SwFmtAnchor(bPage ? FLY_IN_CNTNT : FLY_PAGE, nPhyPageNum));
+ if (!bPage)
+ {
+ aSet.Put(SwFmtHoriOrient(rItem.lLeft + nCol * rItem.lHDist,
+ HORI_NONE, REL_PG_FRAME ));
+ aSet.Put(SwFmtVertOrient(rItem.lUpper + nRow * rItem.lVDist,
+ VERT_NONE, REL_PG_FRAME ));
+ }
+ const SwFrmFmt *pFmt = rSh.NewFlyFrm(aSet, sal_True, &rFmt ); // Fly einfuegen
+ ASSERT( pFmt, "Fly not inserted" );
+
+ rSh.UnSelectFrm(); //Rahmen wurde automatisch selektiert
+
+ rSh.SetTxtFmtColl( rSh.GetTxtCollFromPool( RES_POOLCOLL_STANDARD ) );
+
+ //
+ if(!rItem.bSynchron || !(nCol|nRow))
+ {
+ SwGlossaryDlg::SetActGroup(rItem.sGlossaryGroup);
+ SwGlossaryHdl* pGlosHdl = rSh.GetView().GetGlosHdl();
+ pGlosHdl->SetCurGroup(rItem.sGlossaryGroup, sal_True);
+ pGlosHdl->InsertGlossary( rItem.sGlossaryBlockName );
+ }
+
+ return pFmt;
+}
+
+const SwFrmFmt *lcl_InsertLabText( SwWrtShell& rSh, const SwLabItem& rItem,
+ SwFrmFmt &rFmt, SwFldMgr& rFldMgr,
+ sal_uInt16 nCol, sal_uInt16 nRow, sal_Bool bLast, sal_Bool bPage)
+{
+ SfxItemSet aSet(rSh.GetAttrPool(), RES_ANCHOR, RES_ANCHOR,
+ RES_VERT_ORIENT, RES_VERT_ORIENT, RES_HORI_ORIENT, RES_HORI_ORIENT, 0 );
+ sal_uInt16 nPhyPageNum, nVirtPageNum;
+ rSh.GetPageNum( nPhyPageNum, nVirtPageNum );
+
+ aSet.Put(SwFmtAnchor(bPage ? FLY_IN_CNTNT : FLY_PAGE, nPhyPageNum));
+ if (!bPage)
+ {
+ aSet.Put(SwFmtHoriOrient(rItem.lLeft + nCol * rItem.lHDist,
+ HORI_NONE, REL_PG_FRAME ));
+ aSet.Put(SwFmtVertOrient(rItem.lUpper + nRow * rItem.lVDist,
+ VERT_NONE, REL_PG_FRAME ));
+ }
+ const SwFrmFmt *pFmt = rSh.NewFlyFrm(aSet, sal_True, &rFmt ); // Fly einfuegen
+ ASSERT( pFmt, "Fly not inserted" );
+
+ rSh.UnSelectFrm(); //Rahmen wurde automatisch selektiert
+
+ rSh.SetTxtFmtColl( rSh.GetTxtCollFromPool( RES_POOLCOLL_STANDARD ) );
+
+ // Ggf. "Naechster Datensatz"
+ if( (!rItem.bSynchron || !(nCol|nRow)) && InsertLabEnvText( rSh, rFldMgr, rItem.aWriting ) && !bLast )
+ rFldMgr.InsertFld( TYP_DBNEXTSETFLD, 0, String::CreateFromAscii("sal_True"), aEmptyStr, 0, &rSh );
+
+ return pFmt;
+}
+
+// ----------------------------------------------------------------------------
+
+
+void SwModule::InsertLab(sal_Bool bLabel)
+{
+static sal_uInt16 nLabelTitleNo = 0;
+static sal_uInt16 nBCTitleNo = 0;
+
+ // DB-Manager anlegen
+ SwNewDBMgr* pNewDBMgr = new SwNewDBMgr;
+
+ // SwLabItem aus Config lesen
+ SwLabCfgItem aLabCfg;
+ aLabCfg.Initialize();
+
+ // Dialog hochfahren
+ SfxItemSet aSet( GetPool(), FN_LABEL, FN_LABEL, 0 );
+ aSet.Put( bLabel ? aLabCfg.GetLabItem(): aLabCfg.GetBusinessItem() );
+
+ SwLabDlg* pDlg = new SwLabDlg(0, aSet, pNewDBMgr, bLabel);
+
+ if ( RET_OK == pDlg->Execute() )
+ {
+ // Dialog auslesen, Item in Config speichern
+ const SwLabItem& rItem = (const SwLabItem&) pDlg->
+ GetOutputItemSet()->Get(FN_LABEL);
+ if(bLabel)
+ aLabCfg.GetLabItem() = rItem;
+ else
+ aLabCfg.GetBusinessItem() = rItem;
+ pDlg->MakeConfigItem( bLabel ? aLabCfg.GetLabItem() : aLabCfg.GetBusinessItem() );
+ aLabCfg.SetDefault(sal_False);
+ aLabCfg.StoreConfig();
+
+ // Neues Dokument erzeugen.
+ SfxObjectShellRef xDocSh( new SwDocShell( SFX_CREATE_MODE_STANDARD));
+ xDocSh->DoInitNew( 0 );
+
+ // Drucker
+ Printer *pPrt = pDlg->GetPrt();
+ if (pPrt)
+ {
+ SwDocShell *pDocSh = (SwDocShell*)(&*xDocSh);
+ pDocSh->GetDoc()->SetJobsetup(pPrt->GetJobSetup());
+ }
+
+ SfxViewFrame *pFrame = SFX_APP()->CreateViewFrame( *xDocSh, 0, sal_True );
+ SwView *pView = (SwView*) pFrame->GetViewShell();
+ pView->AttrChangedNotify( &pView->GetWrtShell() );//Damit SelectShell gerufen wird.
+
+ // Dokumenttitel setzen
+ String aTmp;
+ if(bLabel)
+ {
+ aTmp = String(SW_RES( STR_LAB_TITLE));
+ aTmp += String::CreateFromInt32(++nLabelTitleNo );
+ }
+ else
+ {
+ aTmp = pDlg->GetBusinessCardStr();
+ aTmp += String::CreateFromInt32( ++nBCTitleNo );
+ }
+ xDocSh->SetTitle( aTmp );
+
+ pFrame->GetFrame()->Appear();
+
+ // Shell ermitteln
+ SwWrtShell *pSh = pView->GetWrtShellPtr();
+ ASSERT( pSh, "missing WrtShell" );
+
+ { // block for locks the dispatcher!!
+
+ SwWait aWait( (SwDocShell&)*xDocSh, sal_True );
+
+ SET_CURR_SHELL(pSh);
+ pSh->DoUndo( sal_False );
+ pSh->StartAllAction();
+
+ pSh->SetNewDoc(); // Performanceprobleme vermeiden
+
+ SwPageDesc aDesc = pSh->GetPageDesc( 0 );
+ SwFrmFmt& rFmt = aDesc.GetMaster();
+
+ // Raender
+ SvxLRSpaceItem aLRMargin;
+ SvxULSpaceItem aULMargin;
+ aLRMargin.SetLeft ((sal_uInt16) rItem.lLeft );
+ aULMargin.SetUpper((sal_uInt16) rItem.lUpper);
+ aLRMargin.SetRight(0);
+ aULMargin.SetLower(0);
+ rFmt.SetAttr(aLRMargin);
+ rFmt.SetAttr(aULMargin);
+
+ // Kopf- und Fusszeilen
+ rFmt.SetAttr(SwFmtHeader(sal_Bool(sal_False)));
+ aDesc.ChgHeaderShare(sal_False);
+ rFmt.SetAttr(SwFmtFooter(sal_Bool(sal_False)));
+ aDesc.ChgFooterShare(sal_False);
+
+
+ aDesc.SetUseOn(PD_ALL); // Seitennumerierung
+
+ // Einstellen der Seitengroesse
+ rFmt.SetAttr(SwFmtFrmSize(ATT_FIX_SIZE,
+ rItem.lLeft + rItem.nCols * rItem.lHDist,
+ rItem.lUpper + rItem.nRows * rItem.lVDist));
+
+ // Numerierungsart
+ SwNumType aType;
+ aType.eType = SVX_NUM_NUMBER_NONE;
+ aDesc.SetNumType( aType );
+
+ // Folgevorlage
+ const SwPageDesc &rFollow = pSh->GetPageDesc( pSh->GetCurPageDesc() );
+ aDesc.SetFollow( &rFollow );
+
+ pPrt = pSh->GetPrt( sal_True );
+ SvxPaperBinItem aItem;
+ aItem.SetValue((sal_Int8)pPrt->GetPaperBin());
+ rFmt.SetAttr(aItem);
+
+ aDesc.SetLandscape(ORIENTATION_LANDSCAPE == pPrt->GetOrientation());
+
+ pSh->ChgPageDesc( 0, aDesc );
+
+ // Rahmen einfuegen
+ SwFldMgr* pFldMgr = new SwFldMgr;
+ pFldMgr->SetEvalExpFlds(sal_False);
+
+ //fix(24446): Damit der Text der Ettiketten nicht im unbedruckbaren
+ //Bereich landet stellen wir entsprechende Raender ein. Um das Handling
+ //so Optimal wie moeglich zu halten stellen wir zunaechst an der
+ //aktuellen Absatzvorlage keinen Rand als hartes Attribut ein (Damit die
+ //Formatierung wg. der Zeichengeb. Rahmen passt. Dann stellen wir die
+ //Standarabsatzvorlage anhand des unbedruckbaren Bereiches ein.
+ const long nMin = pPrt->GetPageOffset().X() - rItem.lLeft;
+ if ( nMin > 0 )
+ {
+ SvxLRSpaceItem aLR;
+ pSh->SetAttr( aLR );
+ SwFmt *pStandard = pSh->GetTxtCollFromPool( RES_POOLCOLL_STANDARD );
+ aLR.SetLeft ( sal_uInt16(nMin) );
+ aLR.SetRight( sal_uInt16(nMin) );
+ pStandard->SetAttr( aLR );
+ }
+
+ // Rahmenvorlage vorbereiten
+ SwFrmFmt* pFmt = pSh->GetFrmFmtFromPool( RES_POOLFRM_LABEL );
+ SwFmtFrmSize aFrmSize( ATT_FIX_SIZE,
+ rItem.lHDist - (rItem.lHDist-rItem.lWidth),
+ rItem.lVDist - (rItem.lVDist-rItem.lHeight));
+ pFmt->SetAttr(aFrmSize);
+
+ SvxLRSpaceItem aFrmLRSpace( 0, (sal_uInt16)(rItem.lHDist - rItem.lWidth),
+ 0, 0,
+ RES_LR_SPACE);
+ pFmt->SetAttr(aFrmLRSpace);
+
+ SvxULSpaceItem aFrmULSpace( 0, (sal_uInt16)(rItem.lVDist - rItem.lHeight),
+ RES_UL_SPACE);
+ pFmt->SetAttr(aFrmULSpace);
+
+ const SwFrmFmt *pFirstFlyFmt = 0;
+ if ( rItem.bPage )
+ {
+ SwFmtVertOrient aFrmVertOrient( pFmt->GetVertOrient() );
+ aFrmVertOrient.SetVertOrient( VERT_TOP );
+ pFmt->SetAttr(aFrmVertOrient);
+
+ for ( sal_uInt16 i = 0; i < rItem.nRows; ++i )
+ {
+ for ( sal_uInt16 j = 0; j < rItem.nCols; ++j )
+ {
+ pSh->Push();
+ const SwFrmFmt *pTmp =
+ bLabel ?
+ lcl_InsertLabText( *pSh, rItem, *pFmt, *pFldMgr, j, i,
+ i == rItem.nRows - 1 && j == rItem.nCols - 1,
+ sal_True ) :
+ lcl_InsertBCText(*pSh, rItem, *pFmt, j, i, sal_True);
+ if (!(i|j))
+ {
+ pFirstFlyFmt = pTmp;
+
+ if (rItem.bSynchron)
+ {
+ // if there is no content in the fly then
+ // dont leave the fly!!!
+ pSh->Push();
+ pSh->SttDoc();
+ sal_Bool bInFly = 0 != pSh->WizzardGetFly();
+ pSh->Pop( bInFly );
+
+ if( bInFly )
+ pSh->EndDoc(sal_True); // select all content
+ // in the fly
+ else
+ pSh->SetMark(); // set only the mark
+
+ SwSection aSect( CONTENT_SECTION,
+ String::CreateFromAscii(MASTER_LABEL));
+ pSh->InsertSection(aSect);
+ }
+ }
+ else if (rItem.bSynchron)
+ {
+ SwSection aSect(FILE_LINK_SECTION, pSh->GetUniqueSectionName());
+ String sLinkName(cTokenSeperator);
+ sLinkName += cTokenSeperator;
+ sLinkName += String::CreateFromAscii(MASTER_LABEL);
+ aSect.SetLinkFileName(sLinkName);
+ aSect.SetProtect();
+ pSh->Insert(aDotStr); // Dummytext zum Zuweisen der Section
+ pSh->SttDoc();
+ pSh->EndDoc(sal_True); // Alles im Rahmen selektieren
+ pSh->InsertSection(aSect);
+ }
+ pSh->Pop( sal_False );
+ }
+ if ( i + 1 != rItem.nRows )
+ pSh->SplitNode(); // Kleine Optimierung
+ }
+ }
+ else
+ {
+ pFirstFlyFmt = bLabel ?
+ lcl_InsertLabText( *pSh, rItem, *pFmt, *pFldMgr,
+ rItem.nCol - 1, rItem.nRow - 1, sal_True, sal_False ) :
+ lcl_InsertBCText(*pSh, rItem, *pFmt, rItem.nCol - 1, rItem.nRow - 1, sal_False);
+ }
+
+ //fill the user fields
+ if(!bLabel)
+ {
+ uno::Reference< frame::XModel > xModel = pSh->GetView().GetDocShell()->GetBaseModel();
+ SwLabDlg::UpdateFieldInformation(xModel, rItem);
+ }
+
+ pFldMgr->SetEvalExpFlds(sal_True);
+ pFldMgr->EvalExpFlds(pSh);
+
+ delete pFldMgr;
+
+ pSh->GotoFly(pFirstFlyFmt->GetName(), FLYCNTTYPE_ALL, sal_False);
+
+ pSh->EndAllAction();
+ pSh->DoUndo( sal_True );
+ pSh->SetLabelDoc(rItem.bSynchron);
+ }
+
+ if( STRING_NOTFOUND != rItem.aWriting.Search( '<' ) )
+ {
+ // Datenbankbrowser mit zuletzt verwendeter Datenbank oeffnen
+ ShowDBObj( *pSh, pSh->GetDBName() );
+ }
+
+ if( rItem.bSynchron )
+ {
+ SfxDispatcher* pDisp = pFrame->GetDispatcher();
+ ASSERT(pDisp, "Heute kein Dispatcher am Frame?");
+ pDisp->Execute(FN_SYNC_LABELS, SFX_CALLMODE_ASYNCHRON);
+ }
+ }
+ delete pDlg;
+
+ if( pNewDBMgr )
+ delete pNewDBMgr;
+}
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.111 2000/09/18 16:05:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.110 2000/07/18 12:50:07 os
+ replace ofadbmgr
+
+ Revision 1.109 2000/06/30 08:52:03 os
+ #76541# string assertions removed
+
+ Revision 1.108 2000/06/13 09:56:09 os
+ using UCB
+
+ Revision 1.107 2000/05/23 17:52:08 jp
+ Bugfixes for Unicode
+
+ Revision 1.106 2000/04/20 12:49:35 os
+ GetName() returns String&
+
+ Revision 1.105 2000/04/11 08:01:30 os
+ UNICODE
+
+ Revision 1.104 2000/03/21 15:47:50 os
+ UNOIII
+
+ Revision 1.103 2000/03/08 17:21:49 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.102 2000/02/14 14:50:56 os
+ #70473# Unicode
+
+ Revision 1.101 2000/02/10 22:40:27 jp
+ Bug #72760#: InsertLab - dont leave the fly of the first card or label
+
+ Revision 1.100 2000/02/04 15:13:08 os
+ #72715# document title of business cards corrected
+
+ Revision 1.99 1999/12/01 09:45:27 os
+ #70151# text blocks should always have content
+
+ Revision 1.98 1999/11/29 14:56:12 os
+ #70227# business card position corrected
+
+ Revision 1.97 1999/11/19 16:40:21 os
+ modules renamed
+
+ Revision 1.96 1999/11/11 14:34:40 hr
+ #65293# STLPORT 3.2.1
+
+ Revision 1.95 1999/10/20 10:52:16 jp
+ Bug #67821#: InsertLab - execute on not locked dispatcher
+
+ Revision 1.94 1999/10/01 13:37:02 os
+ apply AutoText to business cards
+
+ Revision 1.93 1999/09/30 07:51:33 os
+ Label config item and LabItem contain business information
+
+ Revision 1.92 1999/09/28 13:17:45 os
+ #67382# separate dialog for business cards
+
+ Revision 1.91 1999/07/08 13:59:32 MA
+ Use internal object to toggle wait cursor
+
+
+ Rev 1.90 08 Jul 1999 15:59:32 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.89 10 Jun 1999 10:52:08 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.88 10 Feb 1999 14:33:56 MA
+ #61674# Direktdruck fuer Etiketten entfernt
+
+ Rev 1.87 17 Nov 1998 10:49:44 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.86 04 Nov 1998 19:43:04 MA
+ #58858# Format fuer MakeNewFly durchreichen
+
+ Rev 1.85 07 Sep 1998 16:59:58 OM
+ #55930# Einzelnes Etikett an der korrekten Position drucken
+
+ Rev 1.84 19 Mar 1998 18:30:32 JP
+ die neue Poolvorlage fuer Etiketten benutzen
+
+ Rev 1.83 19 Mar 1998 13:32:08 OM
+ Etiketten: Rahmenattribute synchronisieren
+
+ Rev 1.82 18 Mar 1998 12:35:26 OM
+ Rahmenvorlagen automatisch aktualisieren
+
+ Rev 1.81 16 Mar 1998 16:19:30 OM
+ Aktualisieren-Button kontextsensitiv
+
+ Rev 1.80 15 Mar 1998 15:13:30 OM
+ Synchron-Button
+
+ Rev 1.79 14 Mar 1998 17:18:14 OM
+ Gelinkte Etiketten
+
+ Rev 1.78 14 Mar 1998 17:05:14 OM
+ Gelinkte Etiketten
+
+ Rev 1.77 05 Feb 1998 16:34:34 OS
+ Change: hidden ViewFrame anlegen
+
+ Rev 1.76 24 Nov 1997 14:22:38 MA
+ includes
+
+ Rev 1.75 30 Sep 1997 08:43:24 OS
+ include
+
+ Rev 1.74 12 Sep 1997 10:38:32 OS
+ ITEMID_* definiert
+
+ Rev 1.73 03 Sep 1997 11:54:00 JP
+ zusaetzliches include von fmtcol
+
+ Rev 1.72 02 Sep 1997 09:56:50 OM
+ SDB-Headeranpassung
+
+ Rev 1.71 01 Sep 1997 13:06:38 OS
+ DLL-Umstellung
+
+ Rev 1.70 15 Aug 1997 11:45:04 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.69 12 Aug 1997 15:58:36 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.68 08 Aug 1997 17:26:46 OM
+ Headerfile-Umstellung
+
+ Rev 1.67 07 Aug 1997 14:59:22 OM
+ Headerfile-Umstellung
+
+ Rev 1.66 21 Jul 1997 17:16:58 AMA
+ Fix #38434#: Das FontListen-Update wird jetzt von SetPrt angestossen
+
+ Rev 1.65 08 Jul 1997 14:04:10 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.64 20 Jun 1997 14:23:38 OM
+ Cursor in erstes Etikett stellen
+
+ Rev 1.63 07 Apr 1997 15:30:36 MH
+ chg: header
+
+ Rev 1.62 21 Feb 1997 09:28:52 MA
+ #36621# neue Umrandungstechnik beruecksichtigen
+
+ Rev 1.61 20 Feb 1997 16:09:18 MA
+ fix: PoolColl per RES_ und nicht STR_
+
+ Rev 1.60 11 Feb 1997 16:51:54 OM
+ Eingabefeld ueber Basic ohne Dialog einfuegen
+
+ Rev 1.59 11 Dec 1996 09:26:16 MA
+ Entschlackt
+
+ Rev 1.58 05 Dec 1996 15:23:54 OM
+ Nach Briefumschlag und Etiketten DB-Browser oeffnen
+
+ Rev 1.57 03 Dec 1996 17:41:30 AMA
+ Chg: Der Drucker wird nur im !Browsemodus angelegt.
+
+ Rev 1.56 08 Nov 1996 19:39:36 MA
+ ResMgr
+
+ Rev 1.55 08 Nov 1996 17:38:14 OM
+ DB-Mode fuer Serienbriefe und Etiketten zum Teil wiederbelebt
+
+ Rev 1.54 24 Oct 1996 13:36:06 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.53 18 Oct 1996 12:12:56 MA
+ fixes und opts
+
+ Rev 1.52 26 Sep 1996 09:03:30 MA
+ defautls fuer Rahmen + Aufraeumarbeiten
+
+ Rev 1.51 25 Sep 1996 14:10:24 OM
+ Neue Datenbanktrenner
+
+ Rev 1.50 02 Sep 1996 16:20:22 OS
+ GetViewShell() und Show() statt GetShell() und Appear()
+
+ Rev 1.49 21 Aug 1996 10:53:24 OM
+ Umstellung 322: CreateViewFrame
+
+ -------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/appopt.cxx b/sw/source/ui/app/appopt.cxx
new file mode 100644
index 000000000000..2bf010ccd4ba
--- /dev/null
+++ b/sw/source/ui/app/appopt.cxx
@@ -0,0 +1,776 @@
+/*************************************************************************
+ *
+ * $RCSfile: appopt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <sot/dtrans.hxx>
+#include "uiparam.hxx"
+#include "hintids.hxx"
+
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_TSTPITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SVX_OPTGRID_HXX //autogen
+#include <svx/optgrid.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+
+#ifndef _OFF_OFAIDS_HRC
+#include <offmgr/ofaids.hrc>
+#endif
+#ifndef _OPTPAGE_HXX //autogen
+#include <optpage.hxx>
+#endif
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#ifndef _OPTPAGE_HXX //autogen
+#include <optpage.hxx>
+#endif
+#ifndef _SYSTEM_HXX //autogen
+#include <vcl/system.hxx>
+#endif
+
+#include "optins.hxx"
+#include "optload.hxx"
+#include <edtwin.hxx>
+#include "finder.hxx"
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "uitool.hxx"
+#include "initui.hxx" // fuer ::GetGlossaries()
+#include "fldbas.hxx" //fuer UpdateFields
+#include "cmdid.h" // Funktion-Ids
+#include "globals.hrc"
+#include "globals.h" // globale Konstanten z.B.
+#include "wview.hxx"
+#include "cfgitems.hxx"
+#include "prtopt.hxx"
+#include "pview.hxx"
+#include "usrpref.hxx"
+#include "modcfg.hxx"
+#include "glosdoc.hxx"
+#include "uiitems.hxx"
+
+
+
+/* -----------------12.02.99 12:28-------------------
+ *
+ * --------------------------------------------------*/
+SfxItemSet* SwModule::CreateItemSet( USHORT nId )
+{
+ BOOL bTextDialog = (nId == SID_SW_EDITOPTIONS) ? TRUE : FALSE;
+
+ // hier werden die Optionen fuer die Web- und den Textdialog zusmmengesetzt
+ SwViewOption aViewOpt = *GetUsrPref(!bTextDialog);
+ BOOL bFrameDoc = FALSE;
+ //kein MakeUsrPref, da hier nur die Optionen von Textdoks genommen werden duerfen
+ SwView* pAppView = GetView();
+ if(pAppView)
+ {
+ // wenn Text dann nicht WebView und umgekehrt
+ BOOL bWebView = 0 != PTR_CAST(SwWebView, pAppView);
+ if( (bWebView && !bTextDialog) ||(!bWebView && bTextDialog))
+ {
+ aViewOpt = *pAppView->GetWrtShell().GetViewOptions();
+ SfxFrameIterator aIter( *pAppView->GetViewFrame()->GetTopFrame() );
+ if( aIter.FirstFrame() )
+ bFrameDoc = TRUE;
+ }
+ else
+ pAppView = 0; // mit View kann hier nichts gewonnen werden
+ }
+ // rApp.MakeUsrPref(aViewOpt);
+
+
+ /********************************************************************/
+ /* */
+ /* Optionen/Bearbeiten */
+ /* */
+ /********************************************************************/
+ SfxItemSet* pRet = new SfxItemSet (GetPool(), FN_PARAM_DOCDISP, FN_PARAM_ELEM,
+ SID_PRINTPREVIEW, SID_PRINTPREVIEW,
+ SID_ATTR_GRID_OPTIONS, SID_ATTR_GRID_OPTIONS,
+ FN_PARAM_PRINTER, FN_PARAM_WRTSHELL,
+ FN_PARAM_ADDPRINTER, FN_PARAM_ADDPRINTER,
+ SID_ATTR_METRIC, SID_ATTR_METRIC,
+ SID_ATTR_DEFTABSTOP, SID_ATTR_DEFTABSTOP,
+ RES_BACKGROUND, RES_BACKGROUND,
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_PARAM_SHADOWCURSOR, FN_PARAM_SHADOWCURSOR,
+ FN_PARAM_CRSR_IN_PROTECTED, FN_PARAM_CRSR_IN_PROTECTED,
+ FN_VIEW_IN_FRAME, FN_VIEW_IN_FRAME,
+#ifndef PRODUCT
+ FN_PARAM_SWTEST, FN_PARAM_SWTEST,
+#endif
+ 0);
+
+ if(bFrameDoc)
+ pRet->Put(SfxBoolItem(FN_VIEW_IN_FRAME, TRUE));
+ pRet->Put( SwDocDisplayItem( aViewOpt, FN_PARAM_DOCDISP) );
+ pRet->Put( SwElemItem( aViewOpt, FN_PARAM_ELEM) );
+ if( bTextDialog )
+ {
+ pRet->Put( SwShadowCursorItem( aViewOpt, FN_PARAM_SHADOWCURSOR ));
+ pRet->Put( SfxBoolItem(FN_PARAM_CRSR_IN_PROTECTED, aViewOpt.IsCursorInProtectedArea()));
+ }
+
+ SfxPrinter* pPrt = 0;
+ if( pAppView )
+ {
+ SwWrtShell& rWrtShell = pAppView->GetWrtShell();
+
+ SfxPrinter* pPrt = rWrtShell.GetPrt();
+ if( pPrt )
+ pRet->Put(SwPtrItem(FN_PARAM_PRINTER, pPrt));
+ pRet->Put(SwPtrItem(FN_PARAM_WRTSHELL, &rWrtShell));
+
+ }
+ else
+ {
+/* Der Drucker wird jetzt von der TabPage erzeugt und auch geloescht
+ * SfxItemSet* pSet = new SfxItemSet( SFX_APP()->GetPool(),
+ SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
+ SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
+ 0 );
+
+ pPrt = new SfxPrinter(pSet);
+ pRet->Put(SwPtrItem(FN_PARAM_PRINTER, pPrt));*/
+ }
+ if(bTextDialog)
+ pRet->Put(SwPtrItem(FN_PARAM_STDFONTS, GetStdFontConfig()));
+ if( PTR_CAST( SwPagePreView, SfxViewShell::Current())!=0)
+ {
+ SfxBoolItem aBool(SfxBoolItem(SID_PRINTPREVIEW, TRUE));
+ pRet->Put(aBool);
+ }
+
+ SwModuleOptions* pMCfg = GetModuleConfig();
+ pRet->Put(SfxUInt16Item( SID_ATTR_METRIC, pMCfg->GetMetric(!bTextDialog)));
+ if(bTextDialog)
+ {
+ if(pAppView)
+ {
+ const SvxTabStopItem& rDefTabs =
+ (const SvxTabStopItem&)pAppView->GetWrtShell().
+ GetDefault(RES_PARATR_TABSTOP);
+ pRet->Put( SfxUInt16Item( SID_ATTR_DEFTABSTOP, (USHORT)::GetTabDist(rDefTabs)));
+ }
+ else
+ pRet->Put(SfxUInt16Item( SID_ATTR_DEFTABSTOP, pMCfg->GetDefTab()));
+ }
+
+ /*-----------------01.02.97 11.13-------------------
+ Optionen fuer GridTabPage
+ --------------------------------------------------*/
+
+ SvxGridItem aGridItem( SID_ATTR_GRID_OPTIONS);
+
+ aGridItem.SetUseGridSnap( aViewOpt.IsSnap());
+ aGridItem.SetSynchronize( aViewOpt.IsSynchronize());
+ aGridItem.SetGridVisible( aViewOpt.IsGridVisible());
+
+ const Size& rSnapSize = aViewOpt.GetSnapSize();
+ aGridItem.SetFldDrawX( (USHORT) (rSnapSize.Width() ));
+ aGridItem.SetFldDrawY( (USHORT) (rSnapSize.Height()));
+
+ aGridItem.SetFldDivisionX( aViewOpt.GetDivisionX());
+ aGridItem.SetFldDivisionY( aViewOpt.GetDivisionY());
+
+ pRet->Put(aGridItem);
+
+ /*-----------------01.02.97 13.02-------------------
+ Optionen fuer PrintTabPage
+ --------------------------------------------------*/
+ SwPrintOptions* pOpt = GetPrtOptions(!bTextDialog);
+ SwAddPrinterItem aAddPrinterItem (FN_PARAM_ADDPRINTER, pOpt );
+ pRet->Put(aAddPrinterItem);
+
+ /*-----------------01.02.97 13.12-------------------
+ Optionen fuer Web-Hintergrund
+ --------------------------------------------------*/
+ if(!bTextDialog)
+ {
+ pRet->Put(SvxBrushItem(aViewOpt.GetRetoucheColor(), RES_BACKGROUND));
+ }
+
+#ifndef PRODUCT
+ /*-----------------01.02.97 13.02-------------------
+ Test-Optionen
+ --------------------------------------------------*/
+ SwTestItem aTestItem(FN_PARAM_SWTEST);
+ aTestItem.bTest1 = aViewOpt.IsTest1();
+ aTestItem.bTest2 = aViewOpt.IsTest2();
+ aTestItem.bTest3 = aViewOpt.IsTest3();
+ aTestItem.bTest4 = aViewOpt.IsTest4();
+ aTestItem.bTest5 = aViewOpt.IsTest5();
+ aTestItem.bTest6 = aViewOpt.IsTest6();
+ aTestItem.bTest7 = aViewOpt.IsTest7();
+ aTestItem.bTest8 = aViewOpt.IsTest8();
+ aTestItem.bTest9 = SwViewOption::IsTest9();
+ aTestItem.bTest10 = aViewOpt.IsTest10();
+ pRet->Put(aTestItem);
+#endif
+ /*-----------------01.02.97 13.04-------------------
+
+ --------------------------------------------------*/
+ if(!bTextDialog)
+ pRet->Put(SfxUInt16Item(SID_HTML_MODE, HTMLMODE_ON));
+// delete pPrt;
+ return pRet;
+}
+/* -----------------12.02.99 12:28-------------------
+ *
+ * --------------------------------------------------*/
+void SwModule::ApplyItemSet( USHORT nId, const SfxItemSet& rSet )
+{
+ BOOL bTextDialog = nId == SID_SW_EDITOPTIONS;
+ SwView* pAppView = GetView();
+ SwViewOption aViewOpt = *GetUsrPref(!bTextDialog);
+ SwModuleOptions* pMCfg = GetModuleConfig();
+
+ const SfxPoolItem* pItem;
+ SfxBindings &rBnd = pAppView->GetViewFrame()->GetBindings();
+ /*--------------------------------------------------------------------------
+ Seite Dokumentansicht auswerten
+ ----------------------------------------------------------------------------*/
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ FN_PARAM_DOCDISP, FALSE, &pItem ))
+ {
+ const SwDocDisplayItem* pDocDispItem = (const SwDocDisplayItem*)pItem;
+
+ if(!aViewOpt.IsViewMetaChars())
+ {
+ if( !aViewOpt.IsTab( TRUE ) && pDocDispItem->bTab ||
+ !aViewOpt.IsBlank( TRUE ) && pDocDispItem->bSpace ||
+ !aViewOpt.IsParagraph( TRUE ) && pDocDispItem->bParagraphEnd ||
+ !aViewOpt.IsLineBreak( TRUE ) && pDocDispItem->bManualBreak )
+ {
+ aViewOpt.SetViewMetaChars(TRUE);
+ rBnd.Invalidate(FN_VIEW_META_CHARS);
+ }
+
+ }
+ pDocDispItem->FillViewOptions( aViewOpt );
+ rBnd.Invalidate(FN_VIEW_GRAPHIC);
+ rBnd.Invalidate(FN_VIEW_HIDDEN_PARA);
+ }
+
+ /*--------------------------------------------------------------------------
+ Elemente - Item auswerten
+ ----------------------------------------------------------------------------*/
+
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ FN_PARAM_ELEM, FALSE, &pItem ) )
+ {
+ const SwElemItem* pElemItem = (const SwElemItem*)pItem;
+ pElemItem->FillViewOptions( aViewOpt );
+
+ }
+
+ if( SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_METRIC,
+ FALSE, &pItem ) )
+ {
+ SFX_APP()->SetOptions(rSet);
+ const SfxUInt16Item* pMetricItem = (const SfxUInt16Item*)pItem;
+ ::SetDfltMetric((FieldUnit)pMetricItem->GetValue(), !bTextDialog);
+ }
+
+ if( SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_DEFTABSTOP,
+ FALSE, &pItem ) )
+ {
+ USHORT nTabDist = ((const SfxUInt16Item*)pItem)->GetValue();
+ pMCfg->SetDefTab(nTabDist);
+ if(pAppView)
+ {
+ SvxTabStopItem aDefTabs( 0, 0 );
+ MakeDefTabs( nTabDist, aDefTabs );
+ pAppView->GetWrtShell().SetDefault( aDefTabs );
+ }
+ }
+
+
+ /*-----------------01.02.97 11.36-------------------
+ Hintergrund nur im WebDialog
+ --------------------------------------------------*/
+ if(SFX_ITEM_SET == rSet.GetItemState(RES_BACKGROUND))
+ {
+ const SvxBrushItem& rBrushItem = (const SvxBrushItem&)rSet.Get(
+ RES_BACKGROUND);
+ aViewOpt.SetRetoucheColor( rBrushItem.GetColor() );
+ }
+
+ /*--------------------------------------------------------------------------
+ Seite Rastereinstellungen auswerten
+ ----------------------------------------------------------------------------*/
+
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ SID_ATTR_GRID_OPTIONS, FALSE, &pItem ))
+ {
+ const SvxGridItem* pGridItem = (const SvxGridItem*)pItem;
+
+ aViewOpt.SetSnap( pGridItem->GetUseGridSnap() );
+ aViewOpt.SetSynchronize(pGridItem->GetSynchronize());
+ if( aViewOpt.IsGridVisible() != pGridItem->GetGridVisible() )
+ aViewOpt.SetGridVisible( pGridItem->GetGridVisible());
+ Size aSize = Size( pGridItem->GetFldDrawX() ,
+ pGridItem->GetFldDrawY() );
+ if( aViewOpt.GetSnapSize() != aSize )
+ aViewOpt.SetSnapSize( aSize );
+ short nDiv = (short)pGridItem->GetFldDivisionX() ;
+ if( aViewOpt.GetDivisionX() != nDiv )
+ aViewOpt.SetDivisionX( nDiv );
+ nDiv = (short)pGridItem->GetFldDivisionY();
+ if( aViewOpt.GetDivisionY() != nDiv )
+ aViewOpt.SetDivisionY( nDiv );
+
+ rBnd.Invalidate(SID_GRID_VISIBLE);
+ rBnd.Invalidate(SID_GRID_USE);
+ }
+
+ //--------------------------------------------------------------------------
+ // Writer Drucker Zusatzeinstellungen auswerten
+ //----------------------------------------------------------------------------
+
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ FN_PARAM_ADDPRINTER, FALSE, &pItem ))
+ {
+ SwPrintOptions* pOpt = GetPrtOptions(!bTextDialog);
+ if (pOpt)
+ {
+ const SwAddPrinterItem* pAddPrinterAttr = (const SwAddPrinterItem*)pItem;
+ pAddPrinterAttr->SetPrintOptions(pOpt);
+ pOpt->SetFaxName( pAddPrinterAttr->GetFax());
+ }
+
+ }
+
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ FN_PARAM_SHADOWCURSOR, FALSE, &pItem ))
+ {
+ ((SwShadowCursorItem*)pItem)->FillViewOptions( aViewOpt );
+ rBnd.Invalidate(FN_SHADOWCURSOR);
+ }
+
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ FN_PARAM_CRSR_IN_PROTECTED, FALSE, &pItem ))
+ {
+ aViewOpt.SetCursorInProtectedArea(((const SfxBoolItem*)pItem)->GetValue());
+ }
+
+
+#ifndef PRODUCT
+ /*--------------------------------------------------------------------------
+ Writer Testseite auswerten
+ ----------------------------------------------------------------------------*/
+
+ if( SFX_ITEM_SET == rSet.GetItemState(
+ FN_PARAM_SWTEST, FALSE, &pItem ))
+ {
+ const SwTestItem* pTestItem = (const SwTestItem*)pItem;
+ aViewOpt.SetTest1((BOOL)pTestItem->bTest1);
+ aViewOpt.SetTest2((BOOL)pTestItem->bTest2);
+ aViewOpt.SetTest3((BOOL)pTestItem->bTest3);
+ aViewOpt.SetTest4((BOOL)pTestItem->bTest4);
+ aViewOpt.SetTest5((BOOL)pTestItem->bTest5);
+ aViewOpt.SetTest6((BOOL)pTestItem->bTest6);
+ aViewOpt.SetTest7((BOOL)pTestItem->bTest7);
+ aViewOpt.SetTest8((BOOL)pTestItem->bTest8);
+ SwViewOption::SetTest9((BOOL)pTestItem->bTest9);
+ aViewOpt.SetTest10((BOOL)pTestItem->bTest10);
+ }
+#endif
+ // dann an der akt. View und Shell die entsp. Elemente setzen
+ ApplyUsrPref(aViewOpt, pAppView,
+ bTextDialog? VIEWOPT_DEST_TEXT : VIEWOPT_DEST_WEB);
+}
+/* -----------------12.02.99 12:28-------------------
+ *
+ * --------------------------------------------------*/
+SfxTabPage* SwModule::CreateTabPage( USHORT nId, Window* pParent, const SfxItemSet& rSet )
+{
+ SfxTabPage* pRet = 0;
+
+ switch(nId)
+ {
+ case RID_SW_TP_CONTENT_OPT:
+ case RID_SW_TP_HTML_CONTENT_OPT:
+ pRet = SwContentOptPage::Create(pParent, rSet); break;
+ case RID_SW_TP_HTML_LAYOUT_OPT:
+ case RID_SW_TP_LAYOUT_OPT:
+ pRet = SwLayoutOptPage::Create(pParent, rSet);
+ break;
+ case RID_SW_TP_HTML_OPTGRID_PAGE:
+ case RID_SVXPAGE_GRID:
+ pRet = SvxGridTabPage::Create(pParent, rSet);
+ ((SvxGridTabPage*)pRet)->HideSnapGrid();
+ break;
+
+ break;
+ case RID_SW_TP_STD_FONT: pRet = SwStdFontTabPage::Create(pParent, rSet); break;
+ case RID_SW_TP_HTML_OPTPRINT_PAGE:
+ case RID_SW_TP_OPTPRINT_PAGE:
+ {
+ pRet = SwAddPrinterTabPage::Create(pParent, rSet);
+ SvStringsDtor aFaxList;
+ const USHORT nCount = Printer::GetQueueCount();
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ String* pString = new String( Printer::GetQueueInfo( i ).GetPrinterName());
+ String* &rpString = pString;
+ aFaxList.Insert(rpString, 0);
+ }
+ (( SwAddPrinterTabPage* )pRet)->SetFax( aFaxList );
+ }
+ break;
+ case RID_SW_TP_HTML_OPTTABLE_PAGE:
+ case RID_SW_TP_OPTTABLE_PAGE:
+ {
+ pRet = SwTableOptionsTabPage::Create(pParent, rSet);
+ SwView* pView = GetView();
+ if(pView)
+ {
+ // wenn Text dann nicht WebView und umgekehrt
+ BOOL bWebView = 0 != PTR_CAST(SwWebView, pView);
+ if( (bWebView && RID_SW_TP_HTML_OPTTABLE_PAGE == nId) ||
+ (!bWebView && RID_SW_TP_HTML_OPTTABLE_PAGE != nId) )
+ {
+ ((SwTableOptionsTabPage*)pRet)->SetWrtShell(pView->GetWrtShellPtr());
+ }
+ }
+ }
+ break;
+ case RID_SW_TP_OPTSHDWCRSR: pRet = SwShdwCrsrOptionsTabPage::Create(pParent, rSet); break;
+ case RID_SW_TP_REDLINE_OPT: pRet = SwRedlineOptionsTabPage::Create(pParent, rSet); break;
+ case RID_SW_TP_OPTINSERT_HTML_PAGE:
+ case RID_SW_TP_OPTINSERT_PAGE: pRet = SwInsertOptPage::Create(pParent, rSet); break;
+ case RID_SW_TP_OPTLOAD_PAGE: pRet = SwLoadOptPage::Create(pParent, rSet); break;
+#ifndef PRODUCT
+ case RID_SW_TP_OPTTEST_PAGE: pRet = SwTestTabPage::Create(pParent, rSet); break;
+#endif
+ case RID_SW_TP_BACKGROUND: pRet = SvxBackgroundTabPage::Create(pParent, rSet); break;
+ case RID_SW_TP_OPTSRCVIEW: pRet = SwSourceViewOptionsTabPage::Create(pParent, rSet); break;
+ }
+ DBG_ASSERT(pRet, "Id unbekannt")
+ return pRet;
+}
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.163 2000/09/18 16:05:10 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.162 2000/09/07 15:59:19 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.161 2000/09/07 08:25:44 os
+ FaxName now in SwPrintOptions
+
+ Revision 1.160 2000/05/10 11:52:26 os
+ Basic API removed
+
+ Revision 1.159 2000/03/03 15:16:58 os
+ StarView remainders removed
+
+ Revision 1.158 2000/02/11 14:42:32 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.157 1999/06/25 06:34:50 OS
+ #67193# default tabstop from current document
+
+
+ Rev 1.156 25 Jun 1999 08:34:50 OS
+ #67193# default tabstop from current document
+
+ Rev 1.155 10 Jun 1999 10:52:08 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.154 08 Jun 1999 15:29:16 OS
+ #66606# HTML background: use WhichId
+
+ Rev 1.153 19 Mar 1999 15:32:18 OS
+ #63750# Tabellenmode auch wieder an der akt. Tabelle setzen
+
+ Rev 1.152 04 Mar 1999 13:54:40 OS
+ #62613# eigene Ids fuer alle HTML-Pages
+
+ Rev 1.151 25 Feb 1999 10:19:04 OS
+ #62329# eigene Id fuer Sw-Html-Einfuegen-Page
+
+ Rev 1.150 17 Feb 1999 15:07:36 OS
+ #61890# Methoden fuer alte Optionsdialoge geloescht
+
+ Rev 1.149 16 Feb 1999 08:08:20 OS
+ #61890# Syntaxfehler TestTabPage
+
+ Rev 1.148 15 Feb 1999 09:20:36 OS
+ #61890# Virt. Methoden fuer neuen Optionendialog ueberladen
+
+ Rev 1.147 27 Jan 1999 10:05:22 OS
+ #58677# Cursor in Readonly-Bereichen
+
+ Rev 1.146 04 Dec 1998 13:35:26 OS
+ #60117# Raster-Slots nach dem Dialog invalidieren
+
+ Rev 1.145 08 Sep 1998 16:47:58 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.144 18 Aug 1998 16:48:54 TJ
+ include
+
+ Rev 1.143 13 Jul 1998 14:39:54 OS
+ include #51814#
+
+ Rev 1.142 13 Jul 1998 08:48:00 OS
+ Dialog-Parent richtig setzen #51814#
+
+ Rev 1.141 06 Jul 1998 14:53:46 OS
+ Scrollbars in FrameDocs disablen
+
+ Rev 1.140 29 Apr 1998 09:27:40 MA
+ BackgroundBrush -> RetoucheColor
+
+ Rev 1.139 05 Mar 1998 14:44:10 OM
+ Redline-Attribute in Module-Cfg speichern
+
+ Rev 1.138 02 Mar 1998 12:50:20 OS
+ Schattencursor-Slot bei Bedarf invalidieren #47601#
+
+ Rev 1.137 23 Feb 1998 12:40:06 OM
+ Redlining-Optionen
+
+ Rev 1.136 28 Nov 1997 14:26:52 MA
+ includes
+
+ Rev 1.135 24 Nov 1997 14:22:48 MA
+ includes
+
+ Rev 1.134 14 Nov 1997 17:14:04 OS
+ TblChgMode auch an der akt. Tabelle setzen #45521#
+
+ Rev 1.133 11 Nov 1997 14:02:58 MA
+ precomp entfernt
+
+ Rev 1.132 03 Nov 1997 16:13:08 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.131 09 Aug 1997 12:46:32 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.130 08 Aug 1997 17:26:54 OM
+ Headerfile-Umstellung
+
+ Rev 1.129 08 Jul 1997 14:04:14 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.128 19 Jun 1997 16:02:42 OS
+ DefPaqe an den Dialog weiterreichen #40584#
+
+ Rev 1.127 11 Jun 1997 09:17:04 OS
+ Def-Page-Item fuer den Optionsdialog wieder auswerten #40584#
+
+ Rev 1.126 09 Jun 1997 14:28:26 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.125 06 Jun 1997 12:43:12 MA
+ chg: versteckte Absaetze ausblenden
+
+ Rev 1.124 25 Mar 1997 15:55:46 OS
+ _if_ fuer Semikolon ?
+
+ Rev 1.123 05 Feb 1997 13:34:46 OS
+ PrintOptins auch fuer Web
+
+ Rev 1.122 03 Feb 1997 12:07:22 OS
+ kompletter Einstellungesdialog fuer HTML-Dok
+
+ Rev 1.121 30 Jan 1997 11:10:08 OS
+ UsrPrefs verdoppelt
+
+ Rev 1.120 14 Jan 1997 14:26:48 OS
+ TabDist auch an der Shell setzen
+
+ Rev 1.119 14 Jan 1997 08:46:26 MA
+ includes
+
+ Rev 1.118 13 Jan 1997 16:46:06 OS
+ Metric und TabStop am Module
+
+ Rev 1.117 19 Dec 1996 17:38:38 OS
+ werden MetaChars ausgewaehlt, muessen auch die Sonderzeichen eingeschaltet werden
+
+ Rev 1.116 11 Dec 1996 14:16:46 OS
+ Optionenumbau - Reste
+
+ Rev 1.115 04 Dec 1996 14:56:10 OS
+ Umbau Optionsdialoge
+
+ Rev 1.114 04 Dec 1996 14:19:30 OS
+ neue Ids fuer Optionendialoge
+
+ Rev 1.113 03 Dec 1996 16:57:02 AMA
+ Chg: Der Drucker wird nur im !Browsemodus angelegt.
+
+ Rev 1.112 11 Nov 1996 19:32:06 OS
+ alten Code entfernt
+
+ Rev 1.111 06 Nov 1996 19:49:24 MH
+ SwSplCfg -> OfaSplCfg
+
+ Rev 1.110 01 Nov 1996 18:02:42 MA
+ Writer Module
+
+ Rev 1.109 21 Oct 1996 09:37:04 OS
+ ColorTable sichern
+
+ Rev 1.108 07 Sep 1996 13:49:52 OS
+ Hintergrundpage auch ohne BrowseView
+
+ Rev 1.107 04 Sep 1996 08:03:48 OS
+ neu: Grundschriften-Tabpage
+
+ Rev 1.106 03 Sep 1996 16:54:18 OS
+ Tabpage Standardfonts
+
+ Rev 1.105 03 Sep 1996 10:15:58 OS
+ Reste
+
+ Rev 1.104 31 Aug 1996 17:15:08 OS
+ neue Optionendialoge
+
+ Rev 1.103 30 Aug 1996 12:36:20 OS
+ UpdateGlosPath kann Blockliste aktualisieren
+
+ Rev 1.102 27 Aug 1996 11:50:54 OS
+ alten cast entfernt
+
+ Rev 1.101 26 Aug 1996 16:55:40 OS
+ neu: Brush fuer BrowseView
+
+ Rev 1.100 29 Jul 1996 19:37:42 MA
+ includes
+
+ Rev 1.99 17 Jul 1996 13:41:06 OS
+ Printereinstellungen auch ohne View
+
+ Rev 1.98 11 Jun 1996 16:44:52 OS
+ UndoActionCount als Null uebergeben, wenn fuer die akt. Shell DoesUndo() == FALSE, Bug #28570#
+
+ Rev 1.98 11 Jun 1996 16:33:22 OS
+ UndoActionCount als Null uebergeben, wenn fuer die akt. Shell DoesUndo() == FALSE, Bug #28570#
+
+ Rev 1.97 10 Jun 1996 13:03:02 OS
+ Range fuer Optionendialog fuer neue Proxies erweitert
+
+ Rev 1.96 24 May 1996 14:58:58 OS
+ HelpIdas aktualisiert
+
+ Rev 1.95 10 May 1996 11:35:52 NF
+ Zeile 76 auskommentiert
+
+ Rev 1.94 09 May 1996 12:38:00 OS
+ Range fuer Optionendialog erweitert
+
+ Rev 1.93 30 Apr 1996 14:00:02 OS
+ Item fuer Preview schicken, DocDisplayTabPage nicht mehr on demand
+
+ Rev 1.92 27 Apr 1996 17:01:52 OS
+ MakeUsrPref benutzen
+
+ Rev 1.91 25 Apr 1996 16:25:28 OS
+ ViewOptions-Umbau: alle Aktionen an pVOpt
+
+ Rev 1.90 24 Apr 1996 15:02:50 OS
+ Umstellung UsrPref/ViewOption
+
+ -------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx
new file mode 100644
index 000000000000..5f8e618f18fb
--- /dev/null
+++ b/sw/source/ui/app/docsh.cxx
@@ -0,0 +1,1690 @@
+/*************************************************************************
+ *
+ * $RCSfile: docsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _APP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SV_JOBSET_HXX //autogen
+#include <vcl/jobset.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SBXCLASS_HXX //autogen
+#include <svtools/sbx.hxx>
+#endif
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+#ifndef _PASSWD_HXX
+#include <sfx2/passwd.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_EVENTCONF_HXX //autogen
+#include <sfx2/evntconf.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SVXLINKMGR_HXX
+#include <svx/linkmgr.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVXMSBAS_HXX
+#include <svx/svxmsbas.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFA_FLTRCFG_HXX
+#include <offmgr/fltrcfg.hxx>
+#endif
+#ifndef _SOERR_HXX
+#include <so3/soerr.hxx>
+#endif
+#ifndef _SO_CLSIDS_HXX
+#include <so3/clsids.hxx>
+#endif
+#ifndef _BASMGR_HXX //autogen
+#include <basic/basmgr.hxx>
+#endif
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+//#ifndef _SB_SBJSMOD_HXX //autogen
+//#include <basic/sbjsmod.hxx>
+//#endif
+
+#ifndef _SWEVENT_HXX //autogen
+#include <swevent.hxx>
+#endif
+#ifndef _FMTPDSC_HXX //autogen
+#include <fmtpdsc.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _NODE_HXX //autogen
+#include <node.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx> // fuer die aktuelle Sicht
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx> // Verbindung zur Core
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx> // Dokumenterzeugung
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _GLOBDOC_HXX
+#include <globdoc.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx> // I/O
+#endif
+#ifndef _SW3IO_HXX
+#include <sw3io.hxx> // I/O, Hausformat
+#endif
+#ifndef _DOCSTYLE_HXX
+#include <docstyle.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _PVIEW_HXX
+#include <pview.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _SWBASLNK_HXX
+#include <swbaslnk.hxx>
+#endif
+#ifndef _SRCVIEW_HXX
+#include <srcview.hxx>
+#endif
+#ifndef _NDINDEX_HXX
+#include <ndindex.hxx>
+#endif
+#ifndef _NDOLE_HXX
+#include <ndole.hxx>
+#endif
+#ifndef _ASCFLDLG_HXX
+#include <ascfldlg.hxx>
+#endif
+
+#ifndef _SWSWERROR_H
+#include <swerror.h> // Fehlermeldungen
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h> //
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _APP_HRC
+#include <app.hrc>
+#endif
+
+extern BOOL bNotLoadLayout;
+
+
+#define SwDocShell
+#ifndef _ITEMDEF_HXX
+#include <itemdef.hxx>
+#endif
+#ifndef _SWSLOTS_HXX
+#include <swslots.hxx>
+#endif
+
+
+class SwTmpPersist : public SvPersist
+{
+ SwDocShell* pDShell;
+ virtual void FillClass( SvGlobalName * pClassName,
+ ULONG * pClipFormat,
+ String * pAppName,
+ String * pLongUserName,
+ String * pUserName,
+ long nFileFormat=SOFFICE_FILEFORMAT_NOW ) const;
+ virtual BOOL Save();
+ virtual BOOL SaveCompleted( SvStorage * );
+public:
+ SwTmpPersist( SwDocShell& rDSh ) : pDShell( &rDSh ) {}
+};
+
+
+SFX_IMPL_INTERFACE( SwDocShell, SfxObjectShell, SW_RES(0) )
+{
+ SwGlobalDocShell::Factory().RegisterHelpFile(String::CreateFromAscii("swriter.svh"));
+ SwGlobalDocShell::Factory().RegisterHelpPIFile(String::CreateFromAscii("swriter.svh"));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aller Filter registrieren
+ --------------------------------------------------------------------*/
+
+SFX_IMPL_OBJECTFACTORY_DLL(SwDocShell, SFXOBJECTSHELL_STD_NORMAL|SFXOBJECTSHELL_HASMENU, \
+//swriter3 0xDC5C7E40L, 0xB35C, 0x101B, 0x99, 0x61, 0x04, 0x02, 0x1C, 0x00, 0x70,0x02)
+//swriter4 0x8b04e9b0, 0x420e, 0x11d0, 0xa4, 0x5e, 0x0, 0xa0, 0x24, 0x9d, 0x57,0xb1, Sw)
+//swriter5 0xc20cf9d1, 0x85ae, 0x11d1, 0xaa, 0xb4, 0x0, 0x60, 0x97, 0xda, 0x56, 0x1a
+ SvGlobalName(SO3_SW_CLASSID), Sw) /*swriter5,*/
+
+/*{
+ ::RegisterFilterInSfxFactory( (SfxObjectFactory&)Factory(), RC_DOC_ICON );
+}
+ */
+
+
+TYPEINIT2(SwDocShell, SfxObjectShell, SfxListener);
+
+/*--------------------------------------------------------------------
+ Beschreibung: Laden vorbereiten
+ --------------------------------------------------------------------*/
+
+
+Reader* SwDocShell::StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr,
+ SwCrsrShell *pCrsrShell,
+ SwPaM* pPaM )
+{
+ BOOL bAPICall = FALSE;
+ const SfxPoolItem* pApiItem;
+ const SfxItemSet* pMedSet;
+ if( 0 != ( pMedSet = rMedium.GetItemSet() ) && SFX_ITEM_SET ==
+ pMedSet->GetItemState( FN_API_CALL, TRUE, &pApiItem ) )
+ bAPICall = ((const SfxBoolItem*)pApiItem)->GetValue();
+
+ const SfxFilter* pFlt = rMedium.GetFilter();
+ if( !pFlt )
+ {
+ if(!bAPICall)
+ {
+ InfoBox( 0, SW_RESSTR(STR_CANTOPEN)).Execute();
+ }
+ return 0;
+ }
+ String aFileName( rMedium.GetName() );
+ SwRead pRead = SwIoSystem::GetReader( pFlt->GetUserData() );
+ if( !pRead )
+ return 0;
+
+ if( rMedium.IsStorage()
+ ? SW_STORAGE_READER & pRead->GetReaderType()
+ : SW_STREAM_READER & pRead->GetReaderType() )
+ {
+ *ppRdr = pPaM ? new SwReader( rMedium, aFileName, *pPaM ) :
+ pCrsrShell ?
+ new SwReader( rMedium, aFileName, *pCrsrShell->GetCrsr() )
+ : new SwReader( rMedium, aFileName, pDoc );
+ }
+ else
+ return 0;
+
+ // PassWord Checken
+ String aPasswd;
+ if ((*ppRdr)->NeedsPasswd( *pRead ))
+ {
+ if(!bAPICall)
+ {
+ SfxPasswordDialog* pPasswdDlg =
+ new SfxPasswordDialog( 0 );
+ if(RET_OK == pPasswdDlg->Execute())
+ aPasswd = pPasswdDlg->GetPassword();
+ }
+ else
+ {
+ const SfxItemSet* pSet = rMedium.GetItemSet();
+ const SfxPoolItem *pPassItem;
+ if(pSet && SFX_ITEM_SET == pSet->GetItemState(SID_PASSWORD, TRUE, &pPassItem))
+ aPasswd = ((const SfxStringItem *)pPassItem)->GetValue();
+ }
+
+ if (!(*ppRdr)->CheckPasswd( aPasswd, *pRead ))
+ {
+ InfoBox( 0, SW_RES(MSG_ERROR_PASSWD)).Execute();
+ delete *ppRdr;
+//JP: SFX-Aenderung - kein close rufen
+// if( !rMedium.IsStorage() )
+// rMedium.CloseInStream();
+ return 0;
+ }
+ }
+ if(rMedium.IsStorage())
+ {
+ SvStorageRef aStor( rMedium.GetStorage() );
+ const SfxItemSet* pSet = rMedium.GetItemSet();
+ const SfxPoolItem *pItem;
+ if(pSet && SFX_ITEM_SET == pSet->GetItemState(SID_PASSWORD, TRUE, &pItem))
+ {
+ DBG_ASSERT(pItem->IsA( TYPE(SfxStringItem) ), "Fehler Parametertype");
+ ByteString aPasswd( ((const SfxStringItem *)pItem)->GetValue(),
+ gsl_getSystemTextEncoding() );
+ aStor->SetKey( aPasswd );
+ }
+ // Fuer's Dokument-Einfuegen noch die FF-Version, wenn's der
+ // eigene Filter ist.
+ ASSERT( pRead != ReadSw3 || pFlt->GetVersion(),
+ "Am Filter ist keine FF-Version gesetzt" );
+ if( pRead == ReadSw3 && pFlt->GetVersion() )
+ aStor->SetVersion( (long)pFlt->GetVersion() );
+ }
+ // beim Sw3-Reader noch den pIo-Pointer setzen
+ if( pRead == ReadSw3 )
+ ((Sw3Reader*)pRead)->SetSw3Io( pIo );
+
+ if( pFlt->GetDefaultTemplate().Len() )
+ pRead->SetTemplateName( pFlt->GetDefaultTemplate() );
+
+ if( pRead == ReadAscii && 0 != rMedium.GetInStream() &&
+ String::CreateFromAscii(FILTER_TEXT_DLG) == pFlt->GetUserData() )
+ {
+ SwAsciiOptions aOpt;
+ const SfxItemSet* pSet;
+ const SfxPoolItem* pItem;
+ if( 0 != ( pSet = rMedium.GetItemSet() ) && SFX_ITEM_SET ==
+ pSet->GetItemState( SID_FILE_FILTEROPTIONS, TRUE, &pItem ) )
+ aOpt.ReadUserData( ((const SfxStringItem*)pItem)->GetValue() );
+ else if(!bAPICall)
+ {
+ SwAsciiFilterDlg* pDlg = new SwAsciiFilterDlg( 0, *this,
+ rMedium.GetInStream() );
+
+ if( RET_OK == pDlg->Execute() )
+ // get the options and put it to the reader
+ pDlg->FillOptions( aOpt );
+ else
+ {
+ pRead = 0;
+ SetError( ERRCODE_IO_ABORT ); // silent abort
+ }
+ delete pDlg;
+ }
+
+ if( pRead )
+ pRead->GetReaderOpt().SetASCIIOpts( aOpt );
+ }
+
+ return pRead;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Laden
+ --------------------------------------------------------------------*/
+
+BOOL SwDocShell::ConvertFrom( SfxMedium& rMedium )
+{
+ SwReader* pRdr;
+ SwRead pRead = StartConvertFrom(rMedium, &pRdr);
+ if (!pRead)
+ return FALSE;
+
+#ifdef _JP_LOADTIME
+{
+extern int bIsSttTime;
+extern long nSttTime;
+{
+SvFileStream aStrm( "\\loadtime.txt", STREAM_WRITE );
+aStrm.Seek( STREAM_SEEK_TO_END );
+aStrm << "ConvertFrom: " << rMedium.GetName().GetStr() << endl;
+}
+bIsSttTime = TRUE;
+nSttTime = Time().GetTime();
+}
+#endif
+
+ SwWait aWait( *this, TRUE );
+
+ // SfxProgress unterdruecken, wenn man Embedded ist
+ SW_MOD()->SetEmbeddedLoadSave(
+ SFX_CREATE_MODE_EMBEDDED == GetCreateMode() );
+
+ // fuer MD
+ BOOL bSave = bNotLoadLayout;
+ bNotLoadLayout = BOOL( !LoadLayout() );
+#ifndef PRODUCT
+ BOOL bWeb = 0 != PTR_CAST(SwWebDocShell, this);
+ bNotLoadLayout |= SW_MOD()->GetUsrPref(bWeb)->IsTest1();
+#endif
+
+ pRdr->GetDoc()->SetHTMLMode( ISA(SwWebDocShell) );
+
+ ULONG nErr = pRdr->Read( *pRead );
+ bNotLoadLayout = bSave;
+ // Evtl. ein altes Doc weg
+ if( pDoc )
+ RemoveLink();
+ pDoc = pRdr->GetDoc();
+
+ // die DocInfo vom Doc am DocShell-Medium setzen
+ if( GetMedium()->GetFilter() &&
+ GetMedium()->GetFilter()->UsesStorage() )
+ {
+ SvStorageRef aRef = GetMedium()->GetStorage();
+ if( aRef.Is() )
+ pDoc->GetInfo()->Save(aRef);
+ }
+
+ AddLink();
+
+ ASSERT( !pBasePool, "wer hat seinen Pool nicht zerstoert?" );
+ pBasePool = new SwDocStyleSheetPool( *pDoc,
+ SFX_CREATE_MODE_ORGANIZER == GetCreateMode() );
+ UpdateFontList();
+ InitDraw();
+
+ delete pRdr;
+
+ SW_MOD()->SetEmbeddedLoadSave( FALSE );
+
+ SetError( nErr );
+ BOOL bOk = !IsError( nErr );
+
+ // StartFinishedLoading rufen. Nicht bei asynchronen Filtern!
+ // Diese muessen das selbst rufen!
+ if( bOk && !pDoc->IsInLoadAsynchron() )
+ StartLoadFinishedTimer();
+
+ return bOk;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sichern des Default-Formats, Stg vorhanden
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocShell::Save()
+{
+ SwWait aWait( *this, TRUE );
+ ULONG nErr = ERR_SWG_WRITE_ERROR, nVBWarning = ERRCODE_NONE;
+ if( SfxInPlaceObject::Save() )
+ {
+ switch( GetCreateMode() )
+ {
+ case SFX_CREATE_MODE_INTERNAL:
+ nErr = 0;
+ break;
+
+ case SFX_CREATE_MODE_ORGANIZER:
+ nErr = pIo->SaveStyles();
+ break;
+
+ case SFX_CREATE_MODE_EMBEDDED:
+ // SfxProgress unterdruecken, wenn man Embedded ist
+ SW_MOD()->SetEmbeddedLoadSave( TRUE );
+ // kein break;
+
+ case SFX_CREATE_MODE_STANDARD:
+ case SFX_CREATE_MODE_PREVIEW:
+ default:
+ {
+ if( pDoc->ContainsMSVBasic() )
+ {
+ SvxImportMSVBasic aTmp( *this, *pIo->GetStorage() );
+ aTmp.SaveOrDelMSVBAStorage( FALSE, aEmptyStr );
+ if( OFF_APP()->GetFilterOptions()->IsLoadWordBasicStorage() )
+ nVBWarning = SvxImportMSVBasic::
+ GetSaveWarningOfMSVBAStorage( *this );
+ pDoc->SetContainsMSVBasic( FALSE );
+ }
+
+ if( !ISA( SwGlobalDocShell ) && !ISA( SwWebDocShell ) &&
+ SFX_CREATE_MODE_EMBEDDED != GetCreateMode() )
+ AddXMLAsZipToTheStorage( *pIo->GetStorage() );
+
+ // TabellenBox Edit beenden!
+ if( pWrtShell )
+ pWrtShell->EndAllTblBoxEdit();
+
+ WriterRef xWrt;
+ ::GetSw3Writer( aEmptyStr, xWrt );
+ ((Sw3Writer*)&xWrt)->SetSw3Io( pIo, FALSE );
+
+ SwWriter aWrt( *pIo->GetStorage(), *pDoc );
+ nErr = aWrt.Write( xWrt );
+ }
+ break;
+ }
+ SW_MOD()->SetEmbeddedLoadSave( FALSE );
+ }
+ SetError( nErr ? nErr : nVBWarning );
+
+ const SfxStringItem aTmp( SID_DOC_MODIFIED, ' ' );
+ pWrtShell->GetView().GetViewFrame()->GetBindings().SetState( aTmp );
+
+ return !IsError( nErr );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sichern im Defaultformat
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocShell::SaveAs( SvStorage * pStor )
+{
+ SwWait aWait( *this, TRUE );
+
+ if( pDoc->IsGlobalDoc() && !pDoc->IsGlblDocSaveLinks() )
+ RemoveOLEObjects();
+
+ {
+ // Task 75666 - is the Document imported by our Microsoft-Filters?
+ const SfxFilter* pOldFilter = GetMedium()->GetFilter();
+ if( pOldFilter &&
+ ( pOldFilter->GetUserData().EqualsAscii( FILTER_WW8 ) ||
+ pOldFilter->GetUserData().EqualsAscii( "CWW6" ) ||
+ pOldFilter->GetUserData().EqualsAscii( "WW6" ) ||
+ pOldFilter->GetUserData().EqualsAscii( "WW1" ) ))
+ {
+ // when saving it in our own fileformat, then remove the template
+ // name from the docinfo.
+ SfxDocumentInfo aInfo = GetDocInfo();
+ if( aInfo.GetTemplateName().Len() ||
+ aInfo.GetTemplateFileName().Len() )
+ {
+ aInfo.SetTemplateName( aEmptyStr );
+ aInfo.SetTemplateFileName( aEmptyStr );
+ SetDocumentInfo( aInfo );
+ }
+ }
+ }
+
+ ULONG nErr = ERR_SWG_WRITE_ERROR, nVBWarning = ERRCODE_NONE;
+ if( SfxInPlaceObject::SaveAs( pStor ) )
+ {
+ if( pDoc->ContainsMSVBasic() )
+ {
+ SvxImportMSVBasic aTmp( *this, *pIo->GetStorage() );
+ aTmp.SaveOrDelMSVBAStorage( FALSE, aEmptyStr );
+ if( OFF_APP()->GetFilterOptions()->IsLoadWordBasicStorage() )
+ nVBWarning = SvxImportMSVBasic::
+ GetSaveWarningOfMSVBAStorage( *this );
+ pDoc->SetContainsMSVBasic( FALSE );
+ }
+
+ if( !ISA( SwGlobalDocShell ) && !ISA( SwWebDocShell ) &&
+ SFX_CREATE_MODE_EMBEDDED != GetCreateMode() )
+ AddXMLAsZipToTheStorage( *pStor );
+
+ // TabellenBox Edit beenden!
+ if( pWrtShell )
+ pWrtShell->EndAllTblBoxEdit();
+
+ // Modified-Flag merken und erhalten ohne den Link zu Callen
+ // (fuer OLE; nach Anweisung von MM)
+ BOOL bIsModified = pDoc->IsModified();
+ Link aOldOLELnk( pDoc->GetOle2Link() );
+ pDoc->SetOle2Link( Link() );
+
+ // SfxProgress unterdruecken, wenn man Embedded ist
+ SW_MOD()->SetEmbeddedLoadSave(
+ SFX_CREATE_MODE_EMBEDDED == GetCreateMode() );
+
+ WriterRef xWrt;
+ ::GetSw3Writer( aEmptyStr, xWrt );
+ ((Sw3Writer*)&xWrt)->SetSw3Io( pIo, TRUE );
+
+ SwWriter aWrt( *pStor, *pDoc );
+ nErr = aWrt.Write( xWrt );
+
+ if( bIsModified )
+ pDoc->SetModified();
+ pDoc->SetOle2Link( aOldOLELnk );
+
+ SW_MOD()->SetEmbeddedLoadSave( FALSE );
+ }
+ SetError( nErr ? nErr : nVBWarning );
+
+ return !IsError( nErr );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sichern aller Formate
+ --------------------------------------------------------------------*/
+SwSrcView* lcl_GetSourceView( SwDocShell* pSh )
+{
+ // sind wir in der SourceView?
+ SfxViewFrame* pVFrame = SfxViewFrame::GetFirst( pSh );
+ SfxViewShell* pViewShell = pVFrame ? pVFrame->GetViewShell() : 0;
+ return PTR_CAST( SwSrcView, pViewShell);
+}
+
+BOOL SwDocShell::ConvertTo( SfxMedium& rMedium )
+{
+ const SfxFilter* pFlt = rMedium.GetFilter();
+ if( !pFlt )
+ return FALSE;
+
+ WriterRef xWriter;
+ SwIoSystem::GetWriter( pFlt->GetUserData(), xWriter );
+ if( !xWriter.Is() )
+ { // Der Filter ist nicht vorhanden
+ InfoBox( 0,
+ SW_RESSTR(STR_DLLNOTFOUND) ).Execute();
+ return FALSE;
+ }
+
+ ULONG nVBWarning = 0;
+ if( pDoc->ContainsMSVBasic() )
+ {
+ BOOL bSave = pFlt->GetUserData().EqualsAscii( "CWW8" )
+ && OFF_APP()->GetFilterOptions()->IsLoadWordBasicStorage();
+
+ SvStorage* pStg;
+ if( xWriter->IsStgWriter() )
+ pStg = rMedium.GetStorage();
+ else
+ pStg = pIo->GetStorage();
+ SvxImportMSVBasic aTmp( *this, *pStg );
+ nVBWarning = aTmp.SaveOrDelMSVBAStorage( bSave, String::CreateFromAscii("Macros") );
+ pDoc->SetContainsMSVBasic( bSave );
+ }
+
+ // TabellenBox Edit beenden!
+ if( pWrtShell )
+ pWrtShell->EndAllTblBoxEdit();
+
+ if( pFlt->GetUserData().EqualsAscii( "HTML") )
+ {
+ OfficeApplication* pOffApp = OFF_APP();
+ OfaHtmlOptions* pHtmlOpt = pOffApp->GetHtmlOptions();
+ if( !pHtmlOpt->IsStarBasic() && HasBasic())
+ {
+ BOOL bModules = FALSE;
+ BasicManager *pBasicMan = GetBasicManager();
+
+ for( USHORT i=0; i < pBasicMan->GetLibCount(); i++ )
+ {
+ StarBASIC *pBasic = pBasicMan->GetLib( i );
+ SbxArray *pModules = pBasic->GetModules();
+ for( USHORT j = 0; j < pModules->Count(); j++ )
+ {
+ const SbModule *pModule = PTR_CAST( SbModule, pModules->Get(j) );
+ bModules = TRUE;
+ break;
+ }
+ }
+
+ if(bModules && pHtmlOpt->IsStarBasicWarning())
+ {
+ SetError(WARN_SWG_HTML_NO_MACROS);
+ }
+ }
+ UpdateDocInfoForSave();
+ }
+
+ if( xWriter->IsStgWriter() && xWriter->IsSw3Writer() )
+ {
+ // eigenen Typ ermitteln
+ BYTE nMyType = 0;
+ if( ISA( SwWebDocShell) )
+ nMyType = 1;
+ else if( ISA( SwGlobalDocShell) )
+ nMyType = 2;
+
+ // gewuenschten Typ ermitteln
+ BYTE nSaveType = 0;
+ ULONG nSaveClipId = pFlt->GetFormat();
+ if( SOT_FORMATSTR_ID_STARWRITERWEB_50 == nSaveClipId ||
+ SOT_FORMATSTR_ID_STARWRITERWEB_40 == nSaveClipId )
+ nSaveType = 1;
+ else if( SOT_FORMATSTR_ID_STARWRITERGLOB_50 == nSaveClipId ||
+ SOT_FORMATSTR_ID_STARWRITERGLOB_40 == nSaveClipId )
+ nSaveType = 2;
+
+ // Flags am Dokument entsprechend umsetzen
+ BOOL bIsHTMLModeSave = GetDoc()->IsHTMLMode();
+ BOOL bIsGlobalDocSave = GetDoc()->IsGlobalDoc();
+ BOOL bIsGlblDocSaveLinksSave = GetDoc()->IsGlblDocSaveLinks();
+ if( nMyType != nSaveType )
+ {
+ GetDoc()->SetHTMLMode( 1 == nSaveType );
+ GetDoc()->SetGlobalDoc( 2 == nSaveType );
+ GetDoc()->SetGlblDocSaveLinks( FALSE );
+ }
+
+ // Jetzt das Dokument normal speichern
+ BOOL bRet = SaveAs( rMedium.GetStorage() );
+
+ if( nMyType != nSaveType )
+ {
+ GetDoc()->SetHTMLMode( bIsHTMLModeSave );
+ GetDoc()->SetGlobalDoc( bIsGlobalDocSave );
+ GetDoc()->SetGlblDocSaveLinks( bIsGlblDocSaveLinksSave );
+ }
+
+ if( bRet && nMyType != nSaveType )
+ {
+ SvGlobalName aClassName;
+ ULONG nClipFormat;
+ String aAppName, aLongUserName, aUserName;
+ SfxObjectShellRef xDocSh;
+ switch( nSaveType )
+ {
+ case 0:
+ xDocSh = new SwDocShell( SFX_CREATE_MODE_INTERNAL );
+ break;
+ case 1:
+ xDocSh = new SwWebDocShell( SFX_CREATE_MODE_INTERNAL );
+ break;
+ case 2:
+ xDocSh = new SwGlobalDocShell( SFX_CREATE_MODE_INTERNAL );
+ break;
+ }
+ xDocSh->FillClass( &aClassName, &nClipFormat, &aAppName,
+ &aLongUserName, &aUserName,
+ pFlt->GetVersion() );
+ ASSERT( nClipFormat == nSaveClipId,
+ "FillClass hat falsche Clipboard-Id gesetzt" );
+ rMedium.GetStorage()->SetClass( aClassName, nClipFormat,
+ aUserName );
+ }
+
+ return bRet;
+ }
+
+ if( pFlt->GetUserData().EqualsAscii( FILTER_TEXT_DLG ) &&
+ ( pWrtShell || !::lcl_GetSourceView( this ) ))
+ {
+ SwAsciiOptions aOpt;
+ String sItemOpt;
+ BOOL bShowDlg = FALSE;
+ const SfxItemSet* pSet;
+ const SfxPoolItem* pItem;
+ if( 0 != ( pSet = rMedium.GetItemSet() ) )
+ {
+ if( SFX_ITEM_SET == pSet->GetItemState( SID_FILE_FILTEROPTIONS,
+ TRUE, &pItem ) )
+ sItemOpt = ((const SfxStringItem*)pItem)->GetValue();
+ if( SFX_ITEM_SET == pSet->GetItemState( SID_USE_FILTEROPTIONS,
+ TRUE, &pItem ) )
+ bShowDlg = ((const SfxBoolItem*)pItem)->GetValue();
+ }
+
+ if( bShowDlg || !sItemOpt.Len() )
+ {
+ SwAsciiFilterDlg* pDlg = new SwAsciiFilterDlg( 0, *this, 0 );
+ int nDlg = pDlg->Execute();
+
+ if( RET_OK == nDlg )
+ // get the options for the writer
+ pDlg->FillOptions( aOpt );
+
+ delete pDlg;
+
+ if( RET_OK != nDlg )
+ {
+ SetError( ERRCODE_IO_ABORT ); // silent abort
+ return FALSE;
+ }
+ }
+ else
+ aOpt.ReadUserData( sItemOpt );
+
+ xWriter->SetAsciiOptions( aOpt );
+ }
+
+ // SfxProgress unterdruecken, wenn man Embedded ist
+ SW_MOD()->SetEmbeddedLoadSave(
+ SFX_CREATE_MODE_EMBEDDED == GetCreateMode());
+
+ // Kontext aufspannen, um die Anzeige der Selektion zu unterbinden
+ ULONG nErrno;
+ String aFileName( rMedium.GetName() );
+
+ //Keine View also das ganze Dokument!
+ if ( pWrtShell )
+ {
+ SwWait aWait( *this, TRUE );
+ pWrtShell->StartAllAction();
+ pWrtShell->Push();
+ SwWriter aWrt( rMedium, *pWrtShell, TRUE );
+ nErrno = aWrt.Write( xWriter, &aFileName );
+ //JP 16.05.97: falls der SFX uns die View waehrend des speicherns
+ // entzieht
+ if( pWrtShell )
+ {
+ pWrtShell->Pop(FALSE);
+ pWrtShell->EndAllAction();
+ }
+ }
+ else
+ {
+ // sind wir in der SourceView?
+ SwSrcView* pSrcView = ::lcl_GetSourceView( this );
+ if( pSrcView )
+ {
+ pSrcView->SaveContentTo(rMedium);
+ nErrno = 0;
+ }
+ else
+ {
+ SwWriter aWrt( rMedium, *pDoc );
+ nErrno = aWrt.Write( xWriter, &aFileName );
+ }
+ }
+
+ SW_MOD()->SetEmbeddedLoadSave( FALSE );
+ SetError( nErrno ? nErrno : nVBWarning );
+ if( !rMedium.IsStorage() )
+ rMedium.CloseOutStream();
+
+ return !IsError( nErrno );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Haende weg
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::HandsOff()
+{
+ pIo->HandsOff();
+ SfxInPlaceObject::HandsOff();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ??? noch nicht zu aktivieren, muss TRUE liefern
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocShell::SaveCompleted( SvStorage * pStor )
+{
+ BOOL bRet = SfxInPlaceObject::SaveCompleted( pStor );
+ if( bRet )
+ {
+ // erst hier entscheiden, ob das Speichern geklappt hat oder nicht
+ if( IsModified() )
+ pDoc->SetModified();
+ else
+ pDoc->ResetModified();
+
+ bRet = pIo->SaveCompleted( pStor );
+ }
+
+ if( xOLEChildList.Is() )
+ {
+ BOOL bResetModified = IsEnableSetModified();
+ if( bResetModified )
+ EnableSetModified( FALSE );
+
+ SvPersist* pPersist = this;
+ const SvInfoObjectMemberList* pInfList = xOLEChildList->GetObjectList();
+
+ for( ULONG n = pInfList->Count(); n; )
+ {
+ SvInfoObjectRef aRef( pInfList->GetObject( --n ));
+ pPersist->Move( &aRef, aRef->GetStorageName() );
+ }
+
+ xOLEChildList.Clear();
+ if( bResetModified )
+ EnableSetModified( TRUE );
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Draw()-Overload fuer OLE2 (Sfx)
+ --------------------------------------------------------------------*/
+
+void SwDocShell::Draw( OutputDevice* pDev, const JobSetup& rSetup,
+ USHORT nAspect )
+{
+ //fix #25341# Draw sollte das Modified nicht beeinflussen
+ BOOL bResetModified;
+ if ( TRUE == (bResetModified = IsEnableSetModified()) )
+ EnableSetModified( FALSE );
+
+ //sollte am Document ein JobSetup haengen, dann kopieren wir uns diesen,
+ //um nach dem PrtOle2 diesen wieder am Doc zu verankern.
+ //Einen leeren JobSetup setzen wir nicht ein, denn der wuerde nur zu
+ //fragwuerdigem Ergebnis nach teurer Neuformatierung fuehren (Preview!)
+ JobSetup *pOrig = 0;
+ if ( rSetup.GetPrinterName().Len() || ASPECT_THUMBNAIL != nAspect )
+ {
+ JobSetup* pOrig = (JobSetup*)pDoc->GetJobsetup();
+ if( pOrig ) // dann kopieren wir uns den
+ pOrig = new JobSetup( *pOrig );
+ pDoc->SetJobsetup( rSetup );
+ }
+
+ Rectangle aRect( nAspect == ASPECT_THUMBNAIL ?
+ GetVisArea( nAspect ) : ((SvEmbeddedObject*)this)->GetVisArea() );
+
+ pDev->Push();
+ pDev->SetFillColor();
+ pDev->SetLineColor();
+ pDev->SetBackground();
+ BOOL bWeb = 0 != PTR_CAST(SwWebDocShell, this);
+ ViewShell::PrtOle2( pDoc, SW_MOD()->GetUsrPref(bWeb), pDev, aRect );
+ pDev->Pop();
+
+ if( pOrig )
+ {
+ pDoc->SetJobsetup( *pOrig );
+ delete pOrig;
+ }
+ if ( bResetModified )
+ EnableSetModified( TRUE );
+}
+
+
+void SwDocShell::SetVisArea( const Rectangle &rRect )
+{
+ Rectangle aRect( rRect );
+ if ( pView )
+ {
+ Size aSz( pView->GetDocSz() );
+ aSz.Width() += DOCUMENTBORDER; aSz.Height() += DOCUMENTBORDER;
+ long nMoveX = 0, nMoveY = 0;
+ if ( aRect.Right() > aSz.Width() )
+ nMoveX = aSz.Width() - aRect.Right();
+ if ( aRect.Bottom() > aSz.Height() )
+ nMoveY = aSz.Height() - aRect.Bottom();
+ aRect.Move( nMoveX, nMoveY );
+ nMoveX = aRect.Left() < 0 ? -aRect.Left() : 0;
+ nMoveY = aRect.Top() < 0 ? -aRect.Top() : 0;
+ aRect.Move( nMoveX, nMoveY );
+
+ //Ruft das SfxInPlaceObject::SetVisArea()!
+ pView->SetVisArea( aRect, TRUE );
+ }
+ else
+ SfxInPlaceObject::SetVisArea( aRect );
+}
+
+
+Rectangle SwDocShell::GetVisArea( USHORT nAspect ) const
+{
+ if ( nAspect == ASPECT_THUMBNAIL )
+ {
+ //PreView: VisArea auf die erste Seite einstellen.
+
+ //PageDesc besorgen, vom ersten Absatz oder den default.
+ SwNodeIndex aIdx( pDoc->GetNodes().GetEndOfExtras(), 1 );
+ SwCntntNode* pNd = pDoc->GetNodes().GoNext( &aIdx );
+ const SwFmtPageDesc &rDesc = pNd->GetSwAttrSet().GetPageDesc();
+ const SwPageDesc* pDesc = rDesc.GetPageDesc();
+ if( !pDesc )
+ pDesc = &pDoc->GetPageDesc( 0 );
+
+ //Das Format wird evtl. von der virtuellen Seitennummer bestimmt.
+ const USHORT nPgNum = rDesc.GetNumOffset();
+ const BOOL bOdd = nPgNum % 2 ? TRUE : FALSE;
+ const SwFrmFmt *pFmt = bOdd ? pDesc->GetRightFmt() : pDesc->GetLeftFmt();
+ if ( !pFmt ) //#40568#
+ pFmt = bOdd ? pDesc->GetLeftFmt() : pDesc->GetRightFmt();
+
+ if ( pFmt->GetFrmSize().GetWidth() == LONG_MAX )
+ //Jetzt wird es aber Zeit fuer die Initialisierung
+ pDoc->GetPrt( TRUE );
+
+ const SwFmtFrmSize& rFrmSz = pFmt->GetFrmSize();
+ const Size aSz( rFrmSz.GetWidth(), rFrmSz.GetHeight() );
+ const Point aPt( DOCUMENTBORDER, DOCUMENTBORDER );
+ const Rectangle aRect( aPt, aSz );
+ return aRect;
+ }
+ return SvEmbeddedObject::GetVisArea( nAspect );
+}
+
+Printer *SwDocShell::GetDocumentPrinter()
+{
+ return pDoc->GetPrt();
+}
+
+void SwDocShell::OnDocumentPrinterChanged( Printer * pNewPrinter )
+{
+ if ( pNewPrinter )
+ GetDoc()->SetJobsetup( pNewPrinter->GetJobSetup() );
+ else
+ GetDoc()->SetPrt( 0 );
+}
+
+ULONG SwDocShell::GetMiscStatus() const
+{
+ return SfxInPlaceObject::GetMiscStatus() |
+ SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::GetState(SfxItemSet& rSet)
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+
+ while (nWhich)
+ {
+ switch (nWhich)
+ {
+ // MT: MakroChosser immer enablen, weil Neu moeglich
+ // case SID_BASICCHOOSER:
+ // {
+ // StarBASIC* pBasic = GetBasic();
+ // StarBASIC* pAppBasic = SFX_APP()->GetBasic();
+ // if ( !(pBasic->GetModules()->Count() ||
+ // pAppBasic->GetModules()->Count()) )
+ // rSet.DisableItem(nWhich);
+ // }
+ // break;
+ case SID_PRINTPREVIEW:
+ {
+ FASTBOOL bDisable = GetProtocol().IsInPlaceActive();
+ if ( !bDisable )
+ {
+ SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(this);
+ while (pTmpFrm) // Preview suchen
+ {
+ if ( PTR_CAST(SwView, pTmpFrm->GetViewShell()) &&
+ ((SwView*)pTmpFrm->GetViewShell())->GetWrtShell().
+ GetDoc()->IsBrowseMode())
+ {
+ bDisable = TRUE;
+ break;
+ }
+ pTmpFrm = pTmpFrm->GetNext(*pTmpFrm, this);
+ }
+ }
+ if ( bDisable )
+ rSet.DisableItem( SID_PRINTPREVIEW );
+ else
+ {
+ SfxBoolItem aBool( SID_PRINTPREVIEW, FALSE );
+ if( PTR_CAST( SwPagePreView, SfxViewShell::Current()) )
+ aBool.SetValue( TRUE );
+ rSet.Put( aBool );
+ }
+ }
+ break;
+ case SID_SOURCEVIEW:
+ {
+ if(IsLoading())
+ rSet.DisableItem(nWhich);
+ else
+ {
+ SfxViewShell* pView = GetView() ? (SfxViewShell*)GetView()
+ : SfxViewShell::Current();
+ BOOL bSourceView = 0 != PTR_CAST(SwSrcView, pView);
+ rSet.Put(SfxBoolItem(SID_SOURCEVIEW, bSourceView));
+ }
+ }
+ break;
+ case SID_HTML_MODE:
+ rSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(this)));
+ break;
+
+ case FN_ABSTRACT_STARIMPRESS:
+ case FN_OUTLINE_TO_IMPRESS:
+ if ( !SFX_APP()->HasFeature( SFX_FEATURE_SIMPRESS ) )
+ rSet.DisableItem( nWhich );
+ /* no break here */
+ case FN_ABSTRACT_NEWDOC:
+ case FN_OUTLINE_TO_CLIPBOARD:
+ {
+ if ( !GetDoc()->GetNodes().GetOutLineNds().Count() )
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ case SID_BROWSER_MODE:
+ {
+ SfxViewShell* pViewShell = SfxViewShell::Current();
+ BOOL bDisable = PTR_CAST(SwPagePreView, pViewShell) != 0;
+
+ if (bDisable)
+ rSet.DisableItem( nWhich );
+ else
+ rSet.Put( SfxBoolItem( SID_BROWSER_MODE, GetDoc()->IsBrowseMode()));
+ break;
+ }
+ case FN_PRINT_LAYOUT:
+ {
+ rSet.Put( SfxBoolItem( FN_PRINT_LAYOUT, !GetDoc()->IsBrowseMode()));
+ break;
+ }
+ case FN_NEW_GLOBAL_DOC:
+ if ( ISA(SwGlobalDocShell) )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_NEW_HTML_DOC:
+ // ??? oder sollte das immer gehen??
+ if( ISA( SwWebDocShell ) )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case SID_ATTR_YEAR2000:
+ rSet.Put(SfxUInt16Item(nWhich, pDoc->GetNumberFormatter(TRUE)->GetYear2000()));
+ break;
+
+ default: DBG_ASSERT(!this,"Hier darfst Du nicht hinein!");
+
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: OLE-Hdls
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwDocShell, Ole2ModifiedHdl, void *, p )
+{
+ // vom Doc wird der Status mitgegeben (siehe doc.cxx)
+ // Bit 0: -> alter Zustand
+ // Bit 1: -> neuer Zustand
+ long nStatus = (long)p;
+ if( IsEnableSetModified() )
+ SetModified( (nStatus & 2) ? TRUE : FALSE );
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Pool returnen Hier weil virtuelll
+ --------------------------------------------------------------------*/
+
+
+SfxStyleSheetBasePool* SwDocShell::GetStyleSheetPool()
+{
+ return pBasePool;
+}
+
+
+void SwDocShell::SetView(SwView* pVw)
+{
+ if ( 0 != (pView = pVw) )
+ pWrtShell = &pView->GetWrtShell();
+ else
+ pWrtShell = 0;
+}
+
+
+void SwDocShell::PrepareReload()
+{
+ ::RemoveFromBackgroundCache( *this, TRUE );
+ ::DelAllGrfCacheEntries( pDoc );
+ pDoc->GetLinkManager().PrepareReload();
+}
+
+
+void SwDocShell::StartLoadFinishedTimer()
+{
+ BOOL bSttTimer = FALSE;
+ // ohne WrtShell haben wir eine WebDocShell und muessen uns die
+ // Optionen vom Modul holen
+ if( pWrtShell ? pWrtShell->GetViewOptions()->IsGraphic()
+ : SW_MOD()->GetUsrPref(TRUE)->IsGraphic() )
+ {
+ const SvxLinkManager& rLnkMgr = pDoc->GetLinkManager();
+ const SvBaseLinks& rLnks = rLnkMgr.GetLinks();
+ for( USHORT n = 0; n < rLnks.Count(); ++n )
+ {
+ SvBaseLink* pLnk = &(*rLnks[ n ]);
+ if( pLnk && OBJECT_CLIENT_GRF == pLnk->GetObjType() &&
+ pLnk->ISA( SwBaseLink ) )
+ {
+ SvPseudoObject* pLnkObj = pLnk->GetObj();
+ if( !pLnkObj )
+ {
+ String sFileNm;
+ if( rLnkMgr.GetDisplayNames( *pLnk, 0, &sFileNm, 0, 0 ))
+ {
+ INetURLObject aURL( sFileNm );
+ switch( aURL.GetProtocol() )
+ {
+ case INET_PROT_NOT_VALID:
+ case INET_PROT_FILE:
+ case INET_PROT_MAILTO:
+ case INET_PROT_NEWS:
+ case INET_PROT_CID:
+ break;
+
+ default:
+ ((SwBaseLink*)pLnk)->SwapIn();
+ ((SwBaseLink*)pLnk)->GetCntntNode()->SetAutoFmtLvl(1);
+ bSttTimer = TRUE;
+ break;
+ }
+ }
+ }
+ else
+ {
+ ULONG nState = pLnkObj->GetUpToDateStatus();
+ if( ERRCODE_SO_FALSE == nState )
+ {
+ // falls aber nicht angetickert werden muss (liegt
+ // im QuickdrawCache)
+ if( !((SwBaseLink*)pLnk)->IsShowQuickDrawBmp() )
+ {
+ ((SwBaseLink*)pLnk)->SwapIn();
+ ((SwBaseLink*)pLnk)->GetCntntNode()->SetAutoFmtLvl(1);
+ bSttTimer = TRUE;
+ }
+ else
+ {
+ // dann muss aber auf jedenfall der Status
+ // an die Handler verschickt werden!
+ SvData aData( SvxLinkManager::RegisterStatusInfoId() );
+ aData.SetData( String::CreateFromInt32(STATE_LOAD_OK ));
+ pLnkObj->DataChanged( aData );
+ }
+ }
+ else if( ERRCODE_NONE != nState )
+ bSttTimer = TRUE; // Pending?
+ else if( ((SwBaseLink*)pLnk)->IsShowQuickDrawBmp() )
+ {
+ // Wenn die Grafik aus dem QuickDrawCache kommt,
+ // wird sie nie angefordert!
+ // Dann muss aber auf jedenfall der Status
+ // an die Handler verschickt werden!
+ SvData aData( SvxLinkManager::RegisterStatusInfoId() );
+ aData.SetData( String::CreateFromInt32(STATE_LOAD_OK) );
+ pLnkObj->DataChanged( aData );
+ }
+ }
+ }
+ }
+ }
+
+ if( bSttTimer )
+ {
+ aFinishedTimer.SetTimeoutHdl( STATIC_LINK( this, SwDocShell, IsLoadFinished ));
+ aFinishedTimer.SetTimeout( 1000 );
+ aFinishedTimer.Start();
+ GetDoc()->StopIdleTimer();
+ }
+ FinishedLoading( SFX_LOADED_MAINDOCUMENT |
+ ( bSttTimer ? 0 : SFX_LOADED_IMAGES ));
+ // jetzt noch testen, ob die SourceView noch geladen werden muá
+ SfxViewFrame* pVFrame = SfxViewFrame::GetFirst(this);
+ if(pVFrame)
+ {
+ SfxViewShell* pShell = pVFrame->GetViewShell();
+ if(PTR_CAST(SwSrcView, pShell))
+ ((SwSrcView*)pShell)->Load(this);
+ }
+}
+
+
+IMPL_STATIC_LINK( SwDocShell, IsLoadFinished, void*, EMPTYARG )
+{
+ BOOL bSttTimer = FALSE;
+
+ if( !pThis->IsAbortingImport() )
+ {
+ const SvxLinkManager& rLnkMgr = pThis->pDoc->GetLinkManager();
+ const SvBaseLinks& rLnks = rLnkMgr.GetLinks();
+ for( USHORT n = rLnks.Count(); n; )
+ {
+ SvBaseLink* pLnk = &(*rLnks[ --n ]);
+ if( pLnk && OBJECT_CLIENT_GRF == pLnk->GetObjType() &&
+ pLnk->ISA( SwBaseLink ) )
+ {
+ SvPseudoObject* pLnkObj = pLnk->GetObj();
+ if( pLnkObj && ERRCODE_SO_PENDING == pLnkObj->GetUpToDateStatus() &&
+ !((SwBaseLink*)pLnk)->IsShowQuickDrawBmp() )
+ {
+ bSttTimer = TRUE;
+ break;
+ }
+ }
+ }
+ }
+
+ if( bSttTimer )
+ pThis->aFinishedTimer.Start();
+ else
+ {
+ BOOL bIsModifiedEnabled = pThis->IsEnableSetModified();
+ pThis->EnableSetModified( FALSE );
+ pThis->FinishedLoading( SFX_LOADED_MAINDOCUMENT | SFX_LOADED_IMAGES );
+ pThis->EnableSetModified( bIsModifiedEnabled );
+
+ pThis->GetDoc()->StartIdleTimer();
+ }
+ return 0;
+}
+
+
+// eine Uebertragung wird abgebrochen (wird aus dem SFX gerufen)
+void SwDocShell::CancelTransfers()
+{
+ // alle Links vom LinkManager Canceln
+ aFinishedTimer.Stop();
+ pDoc->GetLinkManager().CancelTransfers();
+ SfxObjectShell::CancelTransfers();
+}
+
+SwFEShell* SwDocShell::GetFEShell()
+{
+ return pWrtShell;
+}
+
+ // embedded alle lokalen Links (Bereiche/Grafiken)
+BOOL SwDocShell::EmbedAllLinks()
+{
+ if( pWrtShell )
+ return pWrtShell->EmbedAllLinks();
+ return pDoc->EmbedAllLinks();
+}
+
+
+void SwDocShell::RemoveOLEObjects()
+{
+ SvPersist* pPersist = this;
+ SwClientIter aIter( *(SwModify*)pDoc->GetDfltGrfFmtColl() );
+ for( SwCntntNode* pNd = (SwCntntNode*)aIter.First( TYPE( SwCntntNode ) );
+ pNd; pNd = (SwCntntNode*)aIter.Next() )
+ {
+ SwOLENode* pOLENd = pNd->GetOLENode();
+ if( pOLENd && ( pOLENd->IsOLEObjectDeleted() ||
+ ( !pOLENd->GetOLEObj().IsOLELink() &&
+ pOLENd->IsInGlobalDocSection() )))
+ {
+ SvInfoObjectRef aRef( pPersist->Find(
+ pOLENd->GetOLEObj().GetName() ) );
+ if( aRef.Is() )
+ {
+ if( !xOLEChildList.Is() )
+ {
+ xOLEChildList = new SwTmpPersist( *this );
+ xOLEChildList->DoInitNew( 0 );
+ }
+
+ xOLEChildList->Move( &aRef, aRef->GetStorageName() );
+
+ pPersist->Remove( &aRef );
+ }
+ }
+ }
+}
+
+void SwTmpPersist::FillClass( SvGlobalName * pClassName,
+ ULONG * pClipFormat,
+ String * pAppName,
+ String * pLongUserName,
+ String * pUserName,
+ long nFileFormat ) const
+{
+ pDShell->SwDocShell::FillClass( pClassName, pClipFormat, pAppName,
+ pLongUserName, pUserName, nFileFormat );
+}
+
+BOOL SwTmpPersist::Save()
+{
+ if( SaveChilds() )
+ return SvPersist::Save();
+ return FALSE;
+}
+
+BOOL SwTmpPersist::SaveCompleted( SvStorage * pStor )
+{
+ if( SaveCompletedChilds( pStor ) )
+ return SvPersist::SaveCompleted( pStor );
+ return FALSE;
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.388 2000/09/18 16:05:10 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.387 2000/09/07 15:59:19 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.386 2000/08/14 17:20:30 jp
+ Task #77577#: new AddXMLAsZipToTheStorage
+
+ Revision 1.385 2000/06/19 17:17:03 jp
+ Must changes
+
+ Revision 1.384 2000/06/13 09:56:09 os
+ using UCB
+
+ Revision 1.383 2000/05/26 07:21:27 os
+ old SW Basic API Slots removed
+
+ Revision 1.382 2000/05/10 11:52:42 os
+ Basic API removed
+
+ Revision 1.381 2000/05/08 11:32:54 jp
+ Bug #75666#: SaveAs - remove templatename when a MS importet doc saved as SWG doc
+
+ Revision 1.380 2000/05/03 13:06:34 jp
+ Bug #75497#: warning for loosing the VBA Basic code
+
+ Revision 1.379 2000/04/11 08:01:30 os
+ UNICODE
+
+ Revision 1.378 2000/03/16 16:39:35 kz
+ remove include sbjsmod.hxx
+
+ Revision 1.377 2000/03/08 17:26:34 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.376 2000/03/06 15:10:58 os
+ #73092# FN_API_CALL - prevent dialogs in inserting documents via API
+
+ Revision 1.375 2000/03/03 16:14:15 pl
+ #73771# workaround for c50 intel compiler
+
+ Revision 1.374 2000/03/03 12:27:49 mib
+ Removed JavaScript
+
+ Revision 1.373 2000/02/14 14:50:56 os
+ #70473# Unicode
+
+ Revision 1.372 2000/02/10 17:02:52 jp
+ Task #72781#: new filter options for MS-filters
+
+ Revision 1.371 2000/02/02 17:00:29 jp
+ Task #72579#: interface of SwReader is changed
+
+ Revision 1.370 2000/01/26 18:55:34 jp
+ Task #72268#: flag for stored M$-VBasic storage
+
+ Revision 1.369 2000/01/11 19:26:33 jp
+ Bug #71674#: IsLoadFinished - dont modifiy the modifyflag
+
+ Revision 1.368 1999/10/21 12:46:06 os
+ CHG: SfxPasswordDialog
+
+ Revision 1.367 1999/09/08 13:44:47 jp
+ ConvertTo: use set the filteroptions if it set and dont show the dialog
+
+ Revision 1.366 1999/08/30 08:01:02 JP
+ save Text with more options
+
+
+ Rev 1.365 30 Aug 1999 10:01:02 JP
+ save Text with more options
+
+ Rev 1.364 26 Aug 1999 20:35:52 JP
+ load and save Text with more options (charset/language/lineend/font)
+
+ Rev 1.363 25 Aug 1999 19:47:32 JP
+ StartConvertFrom: use new dialog for ASCII filter options
+
+ Rev 1.362 30 Jul 1999 12:55:32 JP
+ ConvertTo: call IsSw3Writer at Writer
+
+ Rev 1.361 09 Jul 1999 11:14:10 JP
+ StartLoadFinishedTimer - dont load file/mail/news - graphics
+
+ Rev 1.360 08 Jul 1999 15:59:38 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.359 25 Jun 1999 11:58:52 OS
+ #63132# Macros in HTML not saved: Warning code
+
+ Rev 1.358 22 Jun 1999 17:03:10 KZ
+ Anpass. fuer Linux
+
+ Rev 1.357 10 Jun 1999 10:52:10 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.356 04 May 1999 14:58:42 JP
+ FilterExportklasse Writer von SvRef abgeleitet, damit sie immer zerstoert wird
+
+ Rev 1.355 26 Apr 1999 11:19:54 KZ
+ #include <svtools/sbx.hxx> eingefuegt
+
+ Rev 1.354 11 Mar 1999 10:23:56 OS
+ #63130# Basic-Warnmeldung auch fuer JScript
+
+ Rev 1.353 05 Feb 1999 09:57:42 OS
+ #61208# Warnung fuer Basic-Export abschaltbar
+
+ Rev 1.352 02 Feb 1999 08:42:42 OS
+ #61027# zweistellige Jahreszahlen
+
+ Rev 1.351 26 Nov 1998 13:49:52 MA
+ #54599# OLE: Drucker synchronisieren
+
+ Rev 1.350 18 Nov 1998 15:17:44 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+ Rev 1.349 18 Sep 1998 11:20:28 JP
+ Bug #56312# StartFinishLoading - Anforderreihenfolge der Links umgestellt
+
+ Rev 1.348 25 Aug 1998 14:19:50 JP
+ Bug #55502#: Save/SaveAs - WaitObject vorm SFX-Speichern anlegen
+
+ Rev 1.347 12 Aug 1998 18:02:32 HR
+ #54781#: GCC braucht Temporary
+
+ Rev 1.346 23 Jul 1998 17:03:46 OS
+ StartConvertFrom kann auch mit SwPaM* aufgerufen werden #52654#
+
+ Rev 1.345 23 Jul 1998 11:14:36 JP
+ Task #52654#: Einfuegen Doc nicht mit einer CrsrShell sondern mit einen PaM
+
+ Rev 1.344 20 Jul 1998 10:43:42 MA
+ #53013# Nach Anweisung abgeklemmt
+
+ Rev 1.343 17 Jun 1998 16:57:34 OM
+ #51260# Kein Online-Layout in Seitenvorschau
+
+ Rev 1.342 29 Apr 1998 09:28:04 MA
+ OLE Transparent
+
+ Rev 1.341 24 Apr 1998 17:17:26 JP
+ Bug #49791#: nur auf OLE casten wenn auch OLE drin ist (und nicht Grafik)
+
+ Rev 1.340 23 Apr 1998 15:35:38 OM
+ #49689 Aenderung der Seitenanzahl per Basic konfigurierbar
+
+ Rev 1.339 21 Apr 1998 12:39:02 JP
+ StartFinishedLoading: if abfrage korrigiert
+
+ Rev 1.338 02 Apr 1998 10:07:44 MIB
+ ConvertTo kann jetzt auch eigene Formate anderer Sw.*DocShells speichern
+
+ Rev 1.337 26 Mar 1998 18:01:54 MA
+ Draw: keinen Default-Jobsetup uebernehmen
+
+ Rev 1.336 20 Mar 1998 13:23:28 MA
+ OleVis2Page durch BrowseMode ersetzt
+
+ Rev 1.335 17 Mar 1998 15:42:10 JP
+ neu: NewHTMLDoc - aequivalent zum NewGlobalDoc
+
+ Rev 1.334 12 Mar 1998 09:36:18 JP
+ GlobalDoc ohne OLE-Object: Objecte bis zum SavePersist temp. in TempPersist verschieben
+
+ Rev 1.333 09 Mar 1998 10:02:12 JP
+ Bug GlobalDoc(speichern ohne Inhalt) -> OLE-Objecte aus den Sections nicht speichern
+
+ Rev 1.332 02 Mar 1998 16:55:42 OS
+ Fehlermeldung Makro in HTML korrigiert #47694#
+
+ Rev 1.331 02 Mar 1998 12:51:32 OS
+ Hilfedateiname fuer Globaldoc hart setzen #47604#
+
+ Rev 1.330 25 Feb 1998 14:05:08 MIB
+ GetFilter entfernt, weil ueberfluessig
+
+ Rev 1.329 25 Feb 1998 11:31:10 MIB
+ fix: Fileformat-Version fuer eigenen Reader im StartConvertFrom setzen
+
+ Rev 1.328 17 Feb 1998 12:43:12 JP
+ StartConvert: Templatenamen nur setzen, wenn der gesetzt ist
+
+ Rev 1.327 02 Feb 1998 18:19:06 JP
+ StartConvertFrom: DefaultTemplate am Reader setzen
+
+ Rev 1.326 29 Jan 1998 21:33:48 JP
+ GetEndOfIcons ersetzt durch GetEndOfExtras, das auf GetEndOfRedlines mappt
+
+ Rev 1.325 23 Jan 1998 16:04:58 MA
+ includes
+
+ Rev 1.324 08 Jan 1998 08:48:32 OS
+ QueryBox fuer ungspeicherte Basic-Makros #44706#
+
+ Rev 1.323 07 Jan 1998 18:42:04 MIB
+ 5.0 Fileformat
+
+ Rev 1.322 02 Dec 1997 13:56:10 MA
+ includes
+
+ Rev 1.321 28 Nov 1997 14:28:40 MA
+ includes
+
+ Rev 1.320 24 Nov 1997 14:22:40 MA
+ includes
+
+ Rev 1.319 03 Nov 1997 13:08:44 MA
+ precomp entfernt
+
+ Rev 1.318 09 Oct 1997 14:49:46 JP
+ Umstellung NodeIndex/-Array/BigPtrArray
+
+ Rev 1.317 01 Sep 1997 13:06:34 OS
+ DLL-Umstellung
+
+ Rev 1.316 16 Aug 1997 12:51:22 OS
+ include
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
new file mode 100644
index 000000000000..355c4f44063e
--- /dev/null
+++ b/sw/source/ui/app/docsh2.cxx
@@ -0,0 +1,1981 @@
+/*************************************************************************
+ *
+ * $RCSfile: docsh2.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _TOOLS_TEMPFILE_HXX
+#include <tools/tempfile.hxx>
+#endif
+#ifndef _SV_CLIP_HXX //autogen
+#include <vcl/clip.hxx>
+#endif
+#ifndef _WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _LCKBITEM_HXX
+#include <svtools/lckbitem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _ZFORMAT_HXX //autogen
+#include <svtools/zformat.hxx>
+#endif
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+#ifndef _SFX_DINFDLG_HXX //autogen
+#include <sfx2/dinfdlg.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXNEW_HXX //autogen
+#include <sfx2/new.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include "sfx2/iodlg.hxx"
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SFX_EVENTCONF_HXX //autogen
+#include <sfx2/evntconf.hxx>
+#endif
+#ifndef _SFXECODE_HXX //autogen
+#include <svtools/sfxecode.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SVX_DRAWITEM_HXX //autogen
+#include <svx/drawitem.hxx>
+#endif
+#ifndef _MySVXACORR_HXX //autogen
+#include <svx/svxacorr.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_FMSHELL_HXX //autogen
+#include <svx/fmshell.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFF_OFAITEM_HXX //autogen
+#include <offmgr/ofaitem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+#ifndef _SB_SBSTAR_HXX //autogen
+#include <basic/sbstar.hxx>
+#endif
+#ifndef _BASMGR_HXX //autogen
+#include <basic/basmgr.hxx>
+#endif
+#ifndef _SVSTOR_HXX //autogen
+#include <so3/svstor.hxx>
+#endif
+#ifndef _SO_CLSIDS_HXX
+#include <so3/clsids.hxx>
+#endif
+
+#ifndef _FMTCOL_HXX //autogen
+#include <fmtcol.hxx>
+#endif
+
+#ifndef _SWEVENT_HXX //autogen
+#include <swevent.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx> // fuer die aktuelle Sicht
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx> // Dokumenterzeugung
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _GLOBDOC_HXX
+#include <globdoc.hxx>
+#endif
+#ifndef _DOCSTDLG_HXX
+#include <docstdlg.hxx> // fuer Dokument Style
+#endif
+#ifndef _TMPLDLG_HXX
+#include <tmpldlg.hxx>
+#endif
+#ifndef _FLDWRAP_HXX
+#include <fldwrap.hxx>
+#endif
+#ifndef _REDLNDLG_HXX
+#include <redlndlg.hxx>
+#endif
+#ifndef _ABSTRACT_HXX
+#include <abstract.hxx> // SwInsertAbstractDialog
+#endif
+#ifndef _DOCSTYLE_HXX
+#include <docstyle.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _LTMPDLG_HXX
+#include <ltmpdlg.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _SW3IO_HXX
+#include <sw3io.hxx>
+#endif
+#ifndef _PVIEW_HXX
+#include <pview.hxx>
+#endif
+#ifndef _SRCVIEW_HXX
+#include <srcview.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _UNOTXDOC_HXX
+#include <unotxdoc.hxx>
+#endif
+#ifndef _ACMPLWRD_HXX //autogen
+#include <acmplwrd.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_H
+#include <globals.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _APP_HRC
+#include <app.hrc>
+#endif
+#ifndef _POOLFMT_HRC
+#include <poolfmt.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+extern FASTBOOL FindPhyStyle( SwDoc& , const String& , SfxStyleFamily );
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: DocInfo setzen am SFX
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocShell::SetDocumentInfo(const SfxDocumentInfo& rInfo)
+{
+ SfxDocumentInfo& rOldInfo = GetDocInfo();
+ BOOL bRet = !(rOldInfo == rInfo);
+ if( bRet )
+ {
+ rOldInfo = rInfo;
+ Broadcast( SfxDocumentInfoHint( &rOldInfo ) );
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: DocInfo kreieren (virtuell)
+ --------------------------------------------------------------------*/
+
+
+SfxDocumentInfoDialog* SwDocShell::CreateDocumentInfoDialog(
+ Window *pParent, const SfxItemSet &rSet)
+{
+ SfxDocumentInfoDialog* pDlg = new SfxDocumentInfoDialog(pParent, rSet);
+// const SfxDocumentInfoItem& rItem = (const SfxDocumentInfoItem&)rSet.Get(SID_DOCINFO);
+// if(rItem.IsOwnFormat())
+ //nur mit Statistik, wenn dieses Doc auch angezeigt wird, nicht
+ //aus dem Doc-Manager
+ SwDocShell* pDocSh = (SwDocShell*) SfxObjectShell::Current();
+ if( pDocSh == this )
+ {
+ //Nicht fuer SourceView.
+ SfxViewShell *pVSh = SfxViewShell::Current();
+ if ( pVSh && !pVSh->ISA(SwSrcView) )
+ pDlg->AddTabPage(TP_DOC_STAT, SW_RESSTR(STR_DOC_STAT),
+ SwDocStatPage::Create, 0);
+ }
+ return pDlg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Benachrichtigung bei geaenderter DocInfo
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
+{
+ if( !pDoc )
+ {
+//MA: Kommt bei der OLE-Registration vor!
+// ASSERT( !this, "DocShell ist nicht richtig initialisiert!" );
+ return ;
+ }
+
+ if( rHint.ISA(SfxDocumentInfoHint) )
+ {
+ if( pWrtShell )
+ {
+ pWrtShell->LockView( TRUE ); //Sichtbaren bereich Locken.
+ pWrtShell->StartAllAction();
+ }
+ pDoc->DocInfoChgd( *((SfxDocumentInfoHint&)rHint).GetObject() );
+ if( pWrtShell )
+ {
+ pWrtShell->EndAllAction();
+ pWrtShell->LockView( FALSE );
+ }
+ }
+ else if ( rHint.ISA(SfxSimpleHint) )
+ {
+ switch( ((SfxSimpleHint&) rHint).GetId() )
+ {
+ case SFX_HINT_TITLECHANGED:
+ if ( GetMedium() )
+ {
+ if( pWrtShell )
+ {
+ pWrtShell->LockView( TRUE );
+ pWrtShell->StartAllAction();
+ }
+ pDoc->GetSysFldType( RES_FILENAMEFLD )->UpdateFlds();
+ if( pWrtShell )
+ {
+ pWrtShell->EndAllAction();
+ pWrtShell->LockView( FALSE );
+ }
+ }
+ break;
+ }
+ }
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Benachrichtigung Doc schliessen
+ --------------------------------------------------------------------*/
+
+
+USHORT SwDocShell::PrepareClose( BOOL bUI, BOOL bForBrowsing )
+{
+ USHORT nRet = SfxObjectShell::PrepareClose( bUI, bForBrowsing );
+
+ if( TRUE == nRet ) //Unbedingt auf TRUE abfragen! (RET_NEWTASK)
+ EndListening( *this );
+
+ return nRet;
+}
+
+
+void SwDoc::SetInfo( const SfxDocumentInfo& rInfo )
+{
+ if( pDocShell )
+ pDocShell->SetDocumentInfo( rInfo );
+
+ // sollte nur beim "Konvertieren" von Dokumenten hier ankommen!
+ else
+ {
+ // dann setzen wir uns die DocInfo. Nach dem Konvertieren wird diese
+ // am Medium gesetzt. Erst dann ist die DocShell bekannt.
+ delete pSwgInfo;
+ pSwgInfo = new SfxDocumentInfo( rInfo );
+
+// wenn beim Einlesen, dann kein Modify verschicken, diese sollten dann
+// richtig eingelesen werden oder spaetestens beim Expandieren die richtigen
+// Werte finden.
+// GetSysFldType( RES_DOCINFOFLD )->UpdateFlds();
+// GetSysFldType( RES_TEMPLNAMEFLD )->UpdateFlds();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Organizer
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocShell::Insert( SfxObjectShell &rSource,
+ USHORT nSourceIdx1, // SourcePool: oberste Inhaltsebene (Vorlagen/Makros)
+ USHORT nSourceIdx2, // Index in den Inhalt
+ USHORT nSourceIdx3, // Index in die Inhaltsebene
+ USHORT &rIdx1, // und das gleiche fuer den DestinationPool
+ USHORT &rIdx2, // ""
+ USHORT &rIdx3, // ""
+ USHORT &rRemovedIdx ) // falls doppelte geloescht werden, Pos zurueck
+{
+ BOOL bRet = FALSE;
+
+ if (INDEX_IGNORE == rIdx1 && CONTENT_STYLE == nSourceIdx1)
+ rIdx1 = CONTENT_STYLE;
+
+ if (CONTENT_STYLE == nSourceIdx1 && CONTENT_STYLE == rIdx1)
+ {
+ SfxStyleSheetBasePool* pHisPool = rSource.GetStyleSheetPool();
+ SwDocStyleSheetPool* pMyPool =
+ (SwDocStyleSheetPool*)GetStyleSheetPool();
+
+ // wir koennen nicht in uns selbst hin und her moven
+ if( pHisPool == pMyPool )
+ return FALSE;
+
+ if( INDEX_IGNORE == rIdx2 )
+ rIdx2 = pMyPool->Count();
+
+ // erstmal auf die Such-Maske "positionieren"
+ pHisPool->First();
+ SfxStyleSheetBase* pHisSheet = (*pHisPool)[nSourceIdx2];
+
+ // wenn so eine Vorlage schon existiert: loeschen!
+ const String& rOldName = pHisSheet->GetName();
+ SfxStyleFamily eOldFamily( pHisSheet->GetFamily() );
+
+ // dflt. PageDesc und StandardZeichenvorlage nie loeschen !!!
+ if( ( SFX_STYLE_FAMILY_PAGE == eOldFamily &&
+ pDoc->GetPageDesc(0).GetName() == rOldName ) ||
+ ( SFX_STYLE_FAMILY_CHAR == eOldFamily &&
+ rOldName == *pDoc->GetTextNmArray()[ RES_POOLCOLL_STANDARD -
+ RES_POOLCOLL_TEXT_BEGIN ] ))
+ return FALSE;
+
+ SfxStyleFamily eMyOldFamily( pMyPool->GetSearchFamily() );
+ USHORT nMySrchMask = pMyPool->GetSearchMask();
+
+ SfxStyleSheetBase* pExist;
+ if( ::FindPhyStyle( *pDoc, rOldName, eOldFamily ) )
+ {
+ // Bug 20365: nur uebernehmen, wenn das gewuenscht ist!
+ if( ERRCODE_BUTTON_OK != ErrorHandler::HandleError(
+ *new MessageInfo( ERRCODE_SFXMSG_STYLEREPLACE, rOldName )) )
+ {
+ return FALSE;
+ }
+
+ // Da Replace den aStyleSheet-Member selbst benoetigt, muss
+ // das Ergebnis vom Find kopiert werden (s.u.))
+ SwDocStyleSheet aExist(
+ *(SwDocStyleSheet*)pMyPool->Find( rOldName, eOldFamily ) );
+ pMyPool->Replace( *pHisSheet, aExist );
+
+ // An der Reihenfolge der Vorlagen im Pool aendert sich nichts.
+ rIdx2 = rIdx1 = INDEX_IGNORE;
+
+ GetDoc()->SetModified();
+
+ return TRUE;
+ }
+
+ pMyPool->SetSearchMask( eOldFamily, nMySrchMask );
+
+ // MIB 18.12.98: SwDocStyleSheetPool::Make liefert einen
+ // Pointer auf SwDocStyleSheetPool::aStyleSheet zurueck.
+ // Der gleiche Member von SwDocStyleSheetPool::Find benutzt.
+ // Deshalb muss hier mit einer Kopie gearbeitet werden.
+ // Vorsicht: SfxStyleSheetBase::SetFollow ruft seinerseits
+ // ein SwDocStyleSheetPool::Find auf, do dass es nicht genuegt
+ // die Find-Aufrufe in dieser Methode zu eleminieren.
+
+ SwDocStyleSheet aNewSheet( (SwDocStyleSheet&)pMyPool
+ ->Make(rOldName, eOldFamily, pHisSheet->GetMask() ) );
+ if( SFX_STYLE_FAMILY_PAGE == eOldFamily && rSource.ISA(SwDocShell) )
+ {
+ // gesondert behandeln!!
+ SwPageDesc* pDestDsc = (SwPageDesc*)aNewSheet.GetPageDesc();
+ SwPageDesc* pCpyDsc = (SwPageDesc*)((SwDocStyleSheet*)pHisSheet)->GetPageDesc();
+ pDoc->CopyPageDesc( *pCpyDsc, *pDestDsc );
+ }
+ else
+ // die neue Vorlage mit den Attributen fuellen
+ aNewSheet.SetItemSet( pHisSheet->GetItemSet() );
+
+ pMyPool->SetSearchMask( SFX_STYLE_FAMILY_ALL, nMySrchMask );
+
+ if( aNewSheet.IsUserDefined() || aNewSheet.IsUsed() )
+ {
+ // Benutzte und Benutzer-definierte Vorlagen werden angezeigt.
+ // Dshalb muss hier der Index der neuen Vorlage im Pool
+ // ermittelt werden.
+ pExist = pMyPool->First();
+ USHORT nIdx = 0;
+ while( pExist )
+ {
+ if( pExist->GetName() == rOldName &&
+ eOldFamily == pExist->GetFamily() )
+ {
+ rIdx2 = nIdx;
+ break;
+ }
+ pExist = pMyPool->Next();
+ nIdx++;
+ }
+ }
+ else
+ {
+ // Andere Vorlagen werden nicht angezeigt.
+ rIdx1 = rIdx2 = INDEX_IGNORE;
+ }
+
+/* pMyPool->Count(); //interne Liste neu fuellen lassen!!!!!
+
+ // suchen, um die richige Insert-Position returnen zu koennen
+ pMyPool->Find( rOldName, SFX_STYLE_FAMILY_ALL, nMySrchMask );
+ rIdx2 = pMyPool->GetFindPos();*/
+
+ // wer bekommt den Neuen als Parent? wer benutzt den Neuen als Follow?
+ // (immer nur ueber die Instanziierten!!!)
+ pMyPool->SetSearchMask( eOldFamily, nMySrchMask );
+ pMyPool->SetOrganizerMode( TRUE );
+ SfxStyleSheetBase* pTestSheet = pMyPool->First();
+ while (pTestSheet)
+ {
+ if (pTestSheet->GetFamily() == eOldFamily &&
+ pTestSheet->HasParentSupport() &&
+ pTestSheet->GetParent() == rOldName)
+ {
+ pTestSheet->SetParent(rOldName); // Verknuepfung neu aufbauen
+ }
+
+ if (pTestSheet->GetFamily() == eOldFamily &&
+ pTestSheet->HasFollowSupport() &&
+ pTestSheet->GetFollow() == rOldName)
+ {
+ pTestSheet->SetFollow(rOldName); // Verknuepfung neu aufbauen
+ }
+
+ pTestSheet = pMyPool->Next();
+ }
+ pMyPool->SetOrganizerMode( SFX_CREATE_MODE_ORGANIZER == GetCreateMode() );
+
+ // hat der Neue einen Parent? wenn ja, mit gleichem Namen bei uns suchen
+ if (pHisSheet->HasParentSupport())
+ {
+ const String& rParentName = pHisSheet->GetParent();
+ if (0 != rParentName.Len())
+ {
+ SfxStyleSheetBase* pParentOfNew = pMyPool->Find(rParentName,
+ eOldFamily);
+ if (pParentOfNew)
+ {
+ aNewSheet.SetParent(rParentName);
+ }
+ pMyPool->SetSearchMask( eOldFamily, nMySrchMask );
+ }
+ }
+
+ // hat der Neue einen Follow? wenn ja, mit gleichem Namen bei uns suchen
+ if (pHisSheet->HasFollowSupport())
+ {
+ const String& rFollowName = pHisSheet->GetFollow();
+ if (0 != rFollowName.Len())
+ {
+ SfxStyleSheetBase* pFollowOfNew = pMyPool->Find(rFollowName,
+ eOldFamily);
+ if (pFollowOfNew)
+ {
+ aNewSheet.SetFollow(rFollowName);
+ }
+ pMyPool->SetSearchMask( eOldFamily, nMySrchMask );
+ }
+ }
+
+ // Bug 27347: alte Einstellung wieder setzen
+ pMyPool->SetSearchMask( eMyOldFamily, nMySrchMask );
+
+ // Model geaendert
+ ASSERT(pDoc, "Doc fehlt");
+ GetDoc()->SetModified();
+
+ bRet = TRUE;
+ }
+ else
+ bRet = SfxObjectShell::Insert( rSource,
+ nSourceIdx1,
+ nSourceIdx2,
+ nSourceIdx3,
+ rIdx1,
+ rIdx2,
+ rIdx3,
+ rRemovedIdx);
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Vorlagen Remove
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocShell::Remove(USHORT nIdx1, // siehe Insert
+ USHORT nIdx2,
+ USHORT nIdx3)
+{
+ BOOL bRet = FALSE;
+
+ if (CONTENT_STYLE == nIdx1)
+ {
+ SwDocStyleSheetPool* pMyPool = (SwDocStyleSheetPool*)GetStyleSheetPool();
+
+ pMyPool->First(); // vorm Zugriff Pool aktualisieren!!
+ SfxStyleSheetBase* pMySheet = (*pMyPool)[nIdx2];
+
+ String aName( pMySheet->GetName() );
+ SfxStyleFamily eFamily( pMySheet->GetFamily() );
+
+ // dflt. PageDesc und StandardZeichenvorlage nie loeschen !!!
+ if( ( SFX_STYLE_FAMILY_PAGE == eFamily &&
+ pDoc->GetPageDesc(0).GetName() == aName ) ||
+ ( SFX_STYLE_FAMILY_CHAR == eFamily &&
+ aName == *pDoc->GetTextNmArray()[ RES_POOLCOLL_STANDARD -
+ RES_POOLCOLL_TEXT_BEGIN ] ))
+ return FALSE;
+
+ // also loeschen
+ pMyPool->Erase( pMySheet );
+
+ // jetzt noch die Parents/Follows aller Instanziierten korrigieren
+ pMyPool->SetOrganizerMode( TRUE );
+ SfxStyleSheetBase* pTestSheet = pMyPool->First();
+ while (pTestSheet)
+ {
+ if (pTestSheet->GetFamily() == eFamily &&
+ pTestSheet->HasParentSupport() &&
+ pTestSheet->GetParent() == aName)
+ {
+ pTestSheet->SetParent( aEmptyStr ); // Verknuepfung aufloesen
+ }
+
+ if (pTestSheet->GetFamily() == eFamily &&
+ pTestSheet->HasFollowSupport() &&
+ pTestSheet->GetFollow() == aName)
+ {
+ pTestSheet->SetFollow( aEmptyStr ); // Verknuepfung aufloesen
+ }
+
+ pTestSheet = pMyPool->Next();
+ }
+ pMyPool->SetOrganizerMode( SFX_CREATE_MODE_ORGANIZER == GetCreateMode() );
+
+ bRet = TRUE;
+ }
+ else
+ bRet = SfxObjectShell::Remove( nIdx1,
+ nIdx2,
+ nIdx3 );
+
+
+ // Model geaendert
+ ASSERT(pDoc, "Doc fehlt");
+ GetDoc()->SetModified();
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::Execute(SfxRequest& rReq)
+{
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ USHORT nWhich = rReq.GetSlot();
+ BOOL bDone = FALSE;
+ switch ( nWhich )
+ {
+ case FN_AUTO_CORRECT_DLG:
+ {
+ OfficeApplication *pOApp = OFF_APP();
+
+ SfxBoolItem aSwOptions( SID_AUTO_CORRECT_DLG, TRUE );
+ SvxSwAutoFmtFlags* pAFlags = &pOApp->GetAutoCorrect()->GetSwFlags();
+ SwAutoCompleteWord& rACW = SwDoc::GetAutoCompleteWords();
+
+ BOOL bOldLocked = rACW.IsLockWordLstLocked(),
+ bOldAutoCmpltCollectWords = pAFlags->bAutoCmpltCollectWords;
+
+ rACW.SetLockWordLstLocked( TRUE );
+
+ SvStringsISortDtor aTmpLst;
+ aTmpLst.Insert( &rACW.GetWordList() );
+ pAFlags->pAutoCmpltList = &aTmpLst;
+
+ pOApp->GetDispatcher().Execute( SID_AUTO_CORRECT_DLG,
+ SFX_CALLMODE_SYNCHRON, &aSwOptions, 0L );
+
+ rACW.SetLockWordLstLocked( bOldLocked );
+
+ SwEditShell::SetAutoFmtFlags( pAFlags );
+ rACW.SetMinWordLen( pAFlags->nAutoCmpltWordLen );
+ rACW.SetMaxCount( pAFlags->nAutoCmpltListLen );
+ if( pAFlags->pAutoCmpltList ) // any changes?
+ {
+ rACW.CheckChangedList( aTmpLst );
+ // clear the temp WordList pointer
+ pAFlags->pAutoCmpltList = 0;
+ }
+ // remove all pointer we never delete the strings
+ aTmpLst.Remove( (USHORT)0, aTmpLst.Count() );
+
+ if( !bOldAutoCmpltCollectWords && bOldAutoCmpltCollectWords !=
+ pAFlags->bAutoCmpltCollectWords )
+ {
+ // call on all Docs the idle formatter to start
+ // the collection of Words
+ TypeId aType = TYPE(SwDocShell);
+ for( SwDocShell *pDocSh = (SwDocShell*)SfxObjectShell::GetFirst(&aType);
+ pDocSh;
+ pDocSh = (SwDocShell*)SfxObjectShell::GetNext( *pDocSh, &aType ) )
+ {
+ SwDoc* pTmp = pDocSh->GetDoc();
+ if ( pTmp->GetRootFrm() )
+ pTmp->InvalidateAutoCompleteFlag();
+ }
+ }
+ }
+ break;
+
+ case SID_PRINTPREVIEW:
+ {
+ BOOL bSet = FALSE, bFound = FALSE, bOnly = TRUE;
+ SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(this);
+ SfxViewShell* pViewShell = SfxViewShell::Current();
+ SwView* pView = PTR_CAST( SwView, pViewShell );
+ BOOL bCurrent = IS_TYPE( SwPagePreView, pViewShell );
+
+ while( pTmpFrm ) // search PreView
+ {
+ if( IS_TYPE( SwView, pTmpFrm->GetViewShell()) )
+ bOnly = FALSE;
+ else if( IS_TYPE( SwPagePreView, pTmpFrm->GetViewShell()))
+ {
+ pTmpFrm->GetFrame()->Appear();
+ bFound = TRUE;
+ }
+ if( bFound && !bOnly )
+ break;
+ pTmpFrm = pTmpFrm->GetNext(*pTmpFrm, this);
+ }
+
+ if( pArgs && SFX_ITEM_SET ==
+ pArgs->GetItemState( SID_PRINTPREVIEW, FALSE, &pItem ))
+ bSet = ((SfxBoolItem*)pItem)->GetValue();
+ else
+ bSet = !bCurrent;
+
+ USHORT nSlotId = 0;
+ if( bSet && !bFound ) // Keine gefunden, daher neue Preview anlegen
+ {
+ //Keine neue anlegen fuer BrowseView!
+ if( !GetDoc()->IsBrowseMode() )
+ nSlotId = SID_VIEWSHELL1;
+ }
+ else if( bFound && !bSet )
+ nSlotId = bOnly ? SID_VIEWSHELL0 : SID_VIEWSHELL1;
+
+ if( nSlotId )
+ {
+ if( pView && pView->GetDocShell() == this )
+ pTmpFrm = pView->GetViewFrame();
+ else
+ pTmpFrm = SfxViewFrame::GetFirst( this );
+
+ pTmpFrm->GetBindings().Execute( nSlotId, NULL, 0,
+ SFX_CALLMODE_ASYNCHRON );
+ }
+ rReq.SetReturnValue(SfxBoolItem(SID_PRINTPREVIEW, bSet ));
+ }
+ break;
+ case SID_TEMPLATE_LOAD:
+ {
+ String aFileName;
+ BOOL bText = FALSE;
+ BOOL bFrame = FALSE;
+ BOOL bPage = FALSE;
+ BOOL bOverwrite = FALSE;
+ BOOL bNumbering = FALSE;
+ USHORT nRet = USHRT_MAX;
+ SwLoadTemplateDlg* pDlg = new SwLoadTemplateDlg(0);
+ pDlg->SetPath( SFX_INIMANAGER()->Get( SFX_KEY_WORK_PATH ));
+ String sSW5(String::CreateFromAscii(FILTER_SW5));
+
+ SfxObjectFactory &rFact = GetFactory();
+ for( USHORT i = 0; i < rFact.GetFilterCount(); i++ )
+ {
+ const SfxFilter* pFlt = rFact.GetFilter( i );
+ if( pFlt && pFlt->IsAllowedAsTemplate() )
+ pDlg->AddFilter( pFlt->GetUIName(),
+ ((WildCard&)pFlt->GetWildcard())(),
+ pFlt->GetTypeName() );
+
+ if( pFlt->GetUserData() == sSW5 )
+ pDlg->SetCurFilter( pFlt->GetUIName() );
+ }
+
+ nRet = pDlg->Execute();
+ if( nRet == RET_OK )
+ {
+ aFileName = pDlg->GetPath();
+ }
+ else if( nRet == RET_TEMPLATE )
+ {
+ SfxNewFileDialog* pNewDlg = pDlg->GetNewFileDlg();
+
+ nRet = pNewDlg->Execute();
+ if( nRet == RET_OK )
+ aFileName = pNewDlg->GetTemplateFileName();
+ }
+ bText = pDlg->IsTextStyle();
+ bFrame = pDlg->IsFrameStyle();
+ bPage = pDlg->IsPageStyle();
+ bOverwrite = pDlg->IsOverwrite();
+ bNumbering = pDlg->IsNumbering();
+ USHORT nFlags = (USHORT)bText +
+ ((USHORT)bFrame << 1) +
+ ((USHORT)bPage << 2) +
+ ((USHORT)bOverwrite << 3) +
+ ((USHORT)bNumbering << 4);
+ delete pDlg;
+ if(aFileName.Len())
+ {
+ // Create a URL from filename
+ INetURLObject aURLObj;
+ aURLObj.SetSmartProtocol( INET_PROT_FILE );
+ aURLObj.SetURL( aFileName );
+ if( INET_PROT_FILE != aURLObj.GetProtocol() )
+ break;
+
+ String sURL( aURLObj.GetMainURL() );
+
+ String sBaseURL( INetURLObject::GetBaseURL() );
+ INetURLObject::SetBaseURL( sURL );
+
+ SvStorageRef pStor;
+ SvFileStream* pStream = 0;
+ SwRead pRead = 0;
+ SwReader* pReader = 0;
+ if( SvStorage::IsStorageFile( aFileName ))
+ {
+ // Filter bestimmen:
+ const SfxFilter* pFlt = SwIoSystem::GetFileFilter(
+ aFileName, aEmptyStr );
+ pStor = new SvStorage( aFileName, STREAM_STD_READ );
+
+ if( pFlt && pFlt->GetVersion() )
+ pStor->SetVersion( (long)pFlt->GetVersion() );
+
+ pRead = ReadSw3;
+ pReader = new SwReader(*pStor, sURL,
+ *pWrtShell->GetCrsr() );
+ }
+ else
+ {
+ const SfxFilter* pFlt = SwIoSystem::GetFileFilter(
+ aFileName, aEmptyStr );
+ if( pFlt )
+ {
+ if( pFlt->GetUserData() == String::CreateFromAscii(FILTER_SWG) ||
+ pFlt->GetUserData() == String::CreateFromAscii(FILTER_SWGV) )
+ {
+ pRead = ReadSwg;
+ }
+ else if( pFlt->GetUserData() == String::CreateFromAscii(FILTER_XML) )
+ {
+ pRead = ReadXML;
+ }
+ }
+
+ if( pRead )
+ {
+ pStream = new SvFileStream( aFileName,
+ STREAM_STD_READ );
+ pReader = new SwReader(*pStream, sURL, pDoc);
+ }
+ }
+ ASSERT( pRead, "no reader found" );
+ if( pRead )
+ {
+ pRead->GetReaderOpt().SetAllFmtsOnly();
+ pRead->GetReaderOpt().SetTxtFmts(bText);
+ pRead->GetReaderOpt().SetFrmFmts(bFrame);
+ pRead->GetReaderOpt().SetPageDescs(bPage);
+ pRead->GetReaderOpt().SetNumRules(bNumbering);
+ pRead->GetReaderOpt().SetMerge(!bOverwrite);
+
+ pWrtShell->StartAllAction();
+ SetError( pReader->Read( *pRead ));
+ pWrtShell->EndAllAction();
+ }
+
+
+ delete pReader;
+ delete pStream;
+
+ INetURLObject::SetBaseURL( sBaseURL );
+ }
+ }
+ break;
+ case SID_SOURCEVIEW:
+ {
+ SfxViewShell* pViewShell = GetView()
+ ? (SfxViewShell*)GetView()
+ : SfxViewShell::Current();
+ SfxViewFrame* pViewFrm = pViewShell->GetViewFrame();
+ SwSrcView* pSrcView = PTR_CAST(SwSrcView, pViewShell);
+ if(!pSrcView)
+ {
+ if(!HasName())
+ {
+ const SfxBoolItem* pBool = (const SfxBoolItem*)
+ pViewFrm->GetDispatcher()->Execute(
+ SID_SAVEASDOC, SFX_CALLMODE_SYNCHRON );
+ if(!pBool || !pBool->GetValue())
+ break;
+ }
+ else
+ {
+ pViewFrm->GetDispatcher()->Execute(
+ SID_SAVEDOC, SFX_CALLMODE_SYNCHRON );
+ }
+ }
+#ifdef DBG_UTIL
+ {
+ BOOL bWeb = 0 != PTR_CAST(SwWebDocShell, this);
+ DBG_ASSERT(bWeb == TRUE, "SourceView nur in der WebDocShell")
+ }
+#endif
+ // die SourceView ist fuer die SwWebDocShell die 1
+ USHORT nSlot = SID_VIEWSHELL1;
+ BOOL bSetModified = FALSE;
+ SfxPrinter* pSavePrinter = 0;
+ if( 0 != pSrcView)
+ {
+ SfxPrinter* pTemp = GetDoc()->GetPrt(FALSE);
+ if(pTemp)
+ pSavePrinter = new SfxPrinter(*pTemp);
+ bSetModified = IsModified() || pSrcView->IsModified();
+ if(pSrcView->IsModified()||pSrcView->HasSourceSaved())
+ {
+ TempFile aTempFile;
+ aTempFile.EnableKillingFile();
+ pSrcView->SaveContent(aTempFile.GetName());
+ bDone = TRUE;
+ SetActualSize(pSrcView->GetEditWin().GetSizePixel());
+ SfxEventConfiguration* pEvent = SFX_APP()->GetEventConfig();
+ SvxMacro aMac(aEmptyStr, aEmptyStr, STARBASIC);
+ pEvent->ConfigureEvent(SFX_EVENT_OPENDOC, aMac, this);
+ pEvent->ConfigureEvent(SFX_EVENT_CLOSEDOC, aMac, this);
+ pEvent->ConfigureEvent(SFX_EVENT_ACTIVATEDOC, aMac, this);
+ pEvent->ConfigureEvent(SFX_EVENT_DEACTIVATEDOC, aMac, this);
+ ReloadFromHtml(aTempFile.GetName(), pSrcView);
+ nSlot = 0;
+ }
+ else
+ {
+ nSlot = SID_VIEWSHELL0;
+ }
+ }
+/* OS 10.04.97 14.20: Im Web-Writer gibt es keinen Unterschied zwischen
+ Export in den SourceMode und dem Speichern des Docs
+ else if(IsModified())
+ {
+ USHORT nRet = QueryBox( SFX_APPWINDOW ,SW_RES(MSG_SAVE_HTML_QUERY)).Execute();
+ if(RET_YES == nRet)
+ {
+ S F X _DISPATCHER().Execute(SID_SAVEDOC,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD);
+ // der ReturnValue von SID_SAVEDOC ist etwas schwer verstaendlich
+ if(IsModified())
+ nSlot = 0;
+ }
+ else if( RET_CANCEL == nRet )
+ {
+ nSlot = 0;
+ }
+ }*/
+ if(nSlot)
+ pViewFrm->GetDispatcher()->Execute(nSlot, SFX_CALLMODE_SYNCHRON);
+ if(bSetModified)
+ GetDoc()->SetModified();
+ if(pSavePrinter)
+ {
+ GetDoc()->SetPrt(pSavePrinter);
+ //pSavePrinter darf nicht wieder geloescht werden
+ }
+ pViewFrm->GetBindings().SetState(SfxBoolItem(SID_SOURCEVIEW, nSlot == SID_VIEWSHELL2));
+ }
+ break;
+ case SID_GET_COLORTABLE:
+ {
+ SvxColorTableItem* pColItem = (SvxColorTableItem*)GetItem(SID_COLOR_TABLE);
+ XColorTable* pTable = pColItem->GetColorTable();
+ rReq.SetReturnValue(OfaPtrItem(SID_GET_COLORTABLE, pTable));
+ }
+ break;
+ case FN_ABSTRACT_STARIMPRESS:
+ case FN_ABSTRACT_NEWDOC:
+ {
+ SwInsertAbstractDlg* pDlg = new SwInsertAbstractDlg(0);
+ if(RET_OK == pDlg->Execute())
+ {
+ BYTE nLevel = pDlg->GetLevel();
+ BYTE nPara = pDlg->GetPara();
+ SwDoc* pDoc = new SwDoc();
+ SfxObjectShellRef xDocSh( new SwDocShell( pDoc, SFX_CREATE_MODE_STANDARD));
+ xDocSh->DoInitNew( 0 );
+ BOOL bImpress = FN_ABSTRACT_STARIMPRESS == nWhich;
+ pWrtShell->Summary( pDoc, nLevel, nPara, bImpress );
+ if( bImpress )
+ {
+ WriterRef xWrt;
+ ::GetRTFWriter( aEmptyStr, xWrt );
+ SvMemoryStream *pStrm = new SvMemoryStream();
+ pStrm->SetBufferSize( 16348 );
+ SwWriter aWrt( *pStrm, *pDoc );
+ ErrCode eErr = aWrt.Write( xWrt );
+ if( !ERRCODE_TOERROR( eErr ) )
+ {
+ pStrm->Seek( STREAM_SEEK_TO_END );
+ *pStrm << '\0';
+ pStrm->Seek( STREAM_SEEK_TO_BEGIN );
+ //Die Lockbytes werden owner des Stream*
+ SvLockBytes *pLockBytes = new SvLockBytes( pStrm, TRUE );
+ //Das Item wird owner des LockBytes*
+ SfxLockBytesItem aItem( SID_OUTLINE_TO_IMPRESS, pLockBytes );
+ SfxModule *pMod = (*(SfxModule**)GetAppData(SHL_DRAW))->Load();
+ SfxItemSet aSet( pMod->GetPool(), SID_OUTLINE_TO_IMPRESS,
+ SID_OUTLINE_TO_IMPRESS );
+ aSet.Put( aItem );
+ SfxAllItemSet aArgs( pMod->GetPool() );
+ aArgs.Put( aSet );
+ SfxRequest aReq( SID_OUTLINE_TO_IMPRESS, 0, aArgs );
+ pMod->ExecuteSlot( aReq );
+ }
+ else
+ ErrorHandler::HandleError(ErrCode( eErr ));
+ }
+ else
+ {
+ // Neues Dokument erzeugen.
+ SfxViewFrame *pFrame = SFX_APP()->CreateViewFrame( *xDocSh, 0 );
+ SwView *pView = (SwView*) pFrame->GetViewShell();
+
+ // Dokumenttitel setzen
+ String aTmp( SW_RES(STR_ABSTRACT_TITLE) );
+ aTmp += GetTitle();
+ xDocSh->SetTitle( aTmp );
+ pView->GetWrtShell().SetNewDoc();
+ pFrame->Show();
+ pDoc->SetModified();
+ }
+
+ }
+ delete pDlg;
+ }
+ break;
+ case FN_OUTLINE_TO_CLIPBOARD:
+ case FN_OUTLINE_TO_IMPRESS:
+ {
+ WriterRef xWrt;
+ ::GetRTFWriter( 'O', xWrt );
+ SvMemoryStream *pStrm = new SvMemoryStream();
+ pStrm->SetBufferSize( 16348 );
+ SwWriter aWrt( *pStrm, *GetDoc() );
+ ErrCode eErr = aWrt.Write( xWrt );
+ if( !ERRCODE_TOERROR( eErr ) )
+ {
+ pStrm->Seek( STREAM_SEEK_TO_END );
+ *pStrm << '\0';
+ pStrm->Seek( STREAM_SEEK_TO_BEGIN );
+ if ( nWhich == FN_OUTLINE_TO_IMPRESS )
+ {
+ //Die Lockbytes werden owner des Stream*
+ SvLockBytes *pLockBytes = new SvLockBytes( pStrm, TRUE );
+ //Das Item wird owner des LockBytes*
+ SfxLockBytesItem aItem( SID_OUTLINE_TO_IMPRESS, pLockBytes );
+ SfxModule *pMod = (*(SfxModule**)GetAppData(SHL_DRAW))->Load();
+ SfxItemSet aSet( pMod->GetPool(), SID_OUTLINE_TO_IMPRESS,
+ SID_OUTLINE_TO_IMPRESS );
+ aSet.Put( aItem );
+ SfxAllItemSet aArgs( pMod->GetPool() );
+ aArgs.Put( aSet );
+ SfxRequest aReq( SID_OUTLINE_TO_IMPRESS, 0, aArgs );
+ pMod->ExecuteSlot( aReq );
+ }
+ else
+ {
+ Clipboard::Clear();
+ Clipboard::CopyData( pStrm->GetData(), pStrm->GetSize(),
+ FORMAT_RTF );
+ delete pStrm;
+ }
+ }
+ else
+ ErrorHandler::HandleError(ErrCode( eErr ));
+ }
+ break;
+ case SID_SPELLCHECKER_CHANGED:
+ //! FALSE, TRUE, TRUE is on the save side but a probably overdone
+ SW_MOD()->CheckSpellChanges(FALSE, TRUE, TRUE );
+ break;
+
+ case SID_BROWSER_MODE:
+ case FN_PRINT_LAYOUT: //Fuer Web, genau umgekehrt zum BrowserMode
+ {
+ int eState = STATE_TOGGLE;
+ BOOL bSet;
+ const SfxPoolItem* pAttr;
+ if ( pArgs && SFX_ITEM_SET == pArgs->GetItemState( nWhich , FALSE, &pAttr ))
+ {
+ bSet = ((SfxBoolItem*)pAttr)->GetValue();
+ if ( nWhich == FN_PRINT_LAYOUT )
+ bSet = !bSet;
+ eState = bSet ? STATE_ON : STATE_OFF;
+ }
+
+ if ( STATE_TOGGLE == eState )
+ bSet = !GetDoc()->IsBrowseMode();
+
+ ToggleBrowserMode(bSet, 0);
+
+ // OS: numerische Reihenfolge beachten!
+ static USHORT __READONLY_DATA aInva[] =
+ {
+ SID_NEWWINDOW,
+ SID_RULER_BORDERS, SID_RULER_PAGE_POS,
+ SID_ATTR_LONG_LRSPACE,
+ SID_HTML_MODE,
+ SID_RULER_PROTECT,
+ SID_AUTOSPELL_CHECK,
+ SID_AUTOSPELL_MARKOFF,
+ FN_RULER, /*20211*/
+ FN_VIEW_GRAPHIC, /*20313*/
+ FN_VIEW_BOUNDS, /**/
+ FN_VIEW_FIELDS, /**/
+ FN_VLINEAL, /**/
+ FN_VSCROLLBAR, /**/
+ FN_HSCROLLBAR, /**/
+ FN_VIEW_META_CHARS, /**/
+ FN_VIEW_MARKS, /**/
+ FN_VIEW_FIELDNAME, /**/
+ FN_VIEW_TABLEGRID, /**/
+ FN_QRY_MERGE, /*20364*/
+ FN_STAT_HYPERLINKS, /*21186*/
+ FN_INSERT_HEADER, /*21405*/
+ FN_INSERT_FOOTER, /*21406*/
+ 0
+ };
+ pWrtShell->GetView().GetViewFrame()->GetBindings().Invalidate( aInva );
+ }
+ break;
+
+ case SID_MAIL_PREPAREEXPORT:
+ {
+ pWrtShell->StartAllAction();
+ pDoc->UpdateFlds( 0 );
+ pDoc->EmbedAllLinks();
+ pDoc->RemoveInvisibleContent();
+ pWrtShell->EndAllAction();
+ }
+ break;
+
+ case FN_NEW_HTML_DOC:
+ case FN_NEW_GLOBAL_DOC:
+ {
+ bDone = FALSE;
+ String aFileName, sTemplateName;
+
+ const SwTxtFmtColl* pSplitColl = 0;
+
+ SfxFileDialog* pFileDlg =
+ new SfxFileDialog( 0, WB_SAVEAS|WB_SVLOOK );
+ const SfxFilter* pFlt;
+ USHORT nStrId;
+
+ if( FN_NEW_HTML_DOC == nWhich )
+ {
+ // fuer HTML gibts es nur einen Filter!!
+ pFlt = SwIoSystem::GetFilterOfFormat( String::CreateFromAscii("HTML"),
+ SwWebDocShell::Factory().GetFilterContainer() );
+ nStrId = STR_LOAD_HTML_DOC;
+ }
+ else
+ {
+ // Fuer Global-Dokumente bieten wir jetzt auch nur
+ // noch den aktuellen an.
+ pFlt = SwIoSystem::GetFilterOfFormat( String::CreateFromAscii(FILTER_SW5),
+ SwGlobalDocShell::Factory().GetFilterContainer() );
+ nStrId = STR_LOAD_GLOBAL_DOC;
+ }
+
+ if( pFlt )
+ {
+ pFileDlg->AddFilter( pFlt->GetUIName(),
+ ((WildCard&)pFlt->GetWildcard())(),
+ pFlt->GetTypeName() );
+
+ pFileDlg->SetCurFilter( pFlt->GetUIName() );
+ }
+
+ Window *pTemplateFT = AddTemplateBtn(pFileDlg);
+ pFileDlg->SetText( SW_RESSTR( nStrId ));
+ pFileDlg->SetPath( SFX_INIMANAGER()->Get(
+ SFX_KEY_WORK_PATH ) );
+
+ if( RET_OK == pFileDlg->Execute() )
+ {
+ aFileName = pFileDlg->GetPath();
+ sTemplateName = pTemplateFT->GetText();
+ sTemplateName.Erase(0, String(SW_RESSTR(STR_FDLG_TEMPLATE_NAME)).Len());
+
+ if (sTemplateName.Len())
+ pSplitColl = pDoc->FindTxtFmtCollByName(sTemplateName);
+ }
+
+ delete pFileDlg;
+
+ if( aFileName.Len() )
+ {
+ if( PrepareClose( FALSE ) &&
+ ( FN_NEW_HTML_DOC == nWhich
+ ? pWrtShell->GenerateHTMLDoc( aFileName, pSplitColl )
+ : pWrtShell->GenerateGlobalDoc( aFileName, pSplitColl )) )
+ {
+ bDone = TRUE;
+ DoClose();
+ SfxStringItem aName( SID_FILE_NAME, aFileName );
+ SfxStringItem aReferer( SID_REFERER, aEmptyStr );
+
+ SFX_APP()->GetDispatcher().Execute( SID_OPENDOC,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aName,
+ &aReferer,
+ 0L );
+ }
+ else if( !rReq.IsAPI() )
+ {
+ InfoBox( 0,
+ SW_RESSTR( STR_CANTCREATE )).Execute();
+ }
+ }
+ }
+ rReq.SetReturnValue(SfxBoolItem( nWhich, bDone ));
+ break;
+ case SID_ATTR_YEAR2000:
+ if ( pArgs && SFX_ITEM_SET == pArgs->GetItemState( nWhich , FALSE, &pItem ))
+ {
+ DBG_ASSERT(pItem->ISA(SfxUInt16Item), "falsches Item")
+ USHORT nYear2K = ((SfxUInt16Item*)pItem)->GetValue();
+ //ueber Views iterieren und den State an den FormShells setzen
+
+ SfxViewFrame* pVFrame = SfxViewFrame::GetFirst( this );
+ SfxViewShell* pViewShell = pVFrame ? pVFrame->GetViewShell() : 0;
+ SwView* pView = PTR_CAST(SwView, pViewShell);
+ while(pView)
+ {
+ FmFormShell* pFormShell = pView->GetFormShell();
+ if(pFormShell)
+ pFormShell->SetY2KState(nYear2K);
+ pVFrame = SfxViewFrame::GetNext( *pVFrame, this );
+ pViewShell = pVFrame ? pVFrame->GetViewShell() : 0;
+ pView = PTR_CAST(SwView, pViewShell);
+ }
+ pDoc->GetNumberFormatter(TRUE)->SetYear2000(nYear2K);
+ }
+ break;
+
+ default: DBG_ERROR("falscher Dispatcher");
+ }
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long SwDocShell::DdeGetData( const String& rItem, SvData& rData )
+{
+ return pDoc->GetData( rItem, rData );
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long SwDocShell::DdeSetData( const String& rItem, const SvData& rData )
+{
+ return pDoc->ChangeData( rItem, rData );
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SvPseudoObject* SwDocShell::DdeCreateHotLink( const String& rItem )
+{
+ return pDoc->CreateHotLink( rItem );
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwDocShell::FillRegInfo( SvEmbeddedRegistryInfo* pInfo )
+{
+ SfxInPlaceObject::FillRegInfo( pInfo );
+ pInfo->aObjName = String::CreateFromAscii("StarWriterDocument");
+ pInfo->nMajorVers = 5;
+ pInfo->nMinorVers = 0;
+ pInfo->aHumanShortTypeName = SW_RESSTR(STR_HUMAN_SWDOC_NAME);
+ pInfo->nIconResId = REG_ICON_RESID_WRITER;
+/*
+
+JP 25.11.96: das sollte der SFX erledigen!
+
+ SwFilterNms& rFltNms = *GetFilterNames();
+ pInfo->aFilterList.Insert( SvFilter( Exchange::RegisterFormatName(
+ rFltNms.GetSW4FltName()->aFilterName )) );
+
+ SvFilter aFlt( Exchange::RegisterFormatName(
+ rFltNms.GetSW3FltName()->aFilterName ));
+ aFlt.SetExport( FALSE );
+ pInfo->aFilterList.Insert( aFlt );
+*/
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwDocShell::FillClass( SvGlobalName * pClassName,
+ ULONG * pClipFormat,
+ String * pAppName,
+ String * pLongUserName,
+ String * pUserName,
+ long nVersion ) const
+{
+ SfxInPlaceObject::FillClass(pClassName, pClipFormat, pAppName, pLongUserName,
+ pUserName, nVersion);
+
+ if (nVersion == SOFFICE_FILEFORMAT_31)
+ {
+// *pClassName = SvGlobalName(0xDC5C7E40L, 0xB35C, 0x101B, 0x99, 0x61,
+// 0x04, 0x02, 0x1C, 0x00, 0x70,0x02);
+ *pClassName = SvGlobalName( SO3_SW_CLASSID_30 );
+
+ *pClipFormat = SOT_FORMATSTR_ID_STARWRITER_30;
+ *pAppName = String::CreateFromAscii("Swriter 3.1");
+ *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE_31);
+ }
+ else if (nVersion == SOFFICE_FILEFORMAT_40)
+ {
+// *pClassName = SvGlobalName(0xDC5C7E40L, 0xB35C, 0x101B, 0x99, 0x61,
+// 0x04, 0x02, 0x1C, 0x00, 0x70,0x02);
+ *pClassName = SvGlobalName( SO3_SW_CLASSID_40 );
+
+ *pClipFormat = SOT_FORMATSTR_ID_STARWRITER_40;
+ *pAppName = String::CreateFromAscii("StarWriter 4.0");
+ *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE_40);
+ }
+ else if (nVersion == SOFFICE_FILEFORMAT_NOW)
+ {
+ *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE);
+ }
+ *pUserName = SW_RESSTR(STR_HUMAN_SWDOC_NAME);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwDocShell::SetModified( BOOL bSet )
+{
+ SfxInPlaceObject::SetModified( bSet );
+ if( IsEnableSetModified() && !pDoc->IsInCallModified() )
+ {
+ EnableSetModified( FALSE );
+
+ if( bSet )
+ {
+ BOOL bOld = pDoc->IsModified();
+ pDoc->SetModified();
+ if( !bOld )
+ pDoc->SetUndoNoResetModified();
+ }
+ else
+ pDoc->ResetModified();
+
+ EnableSetModified( TRUE );
+ }
+ UpdateChildWindows();
+ Broadcast(SfxSimpleHint(SFX_HINT_DOCCHANGED));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwDocShell::UpdateChildWindows()
+{
+ // Flddlg ggf neu initialisieren (z.B. fuer TYP_SETVAR)
+ if(!GetView())
+ return;
+ SfxViewFrame* pVFrame = GetView()->GetViewFrame();
+ SwFldDlgWrapper *pWrp = (SwFldDlgWrapper*)pVFrame->
+ GetChildWindow( SwFldDlgWrapper::GetChildWindowId() );
+ if( pWrp )
+ pWrp->ReInitDlg( this );
+
+ // RedlineDlg ggf neu initialisieren
+ SwRedlineAcceptChild *pRed = (SwRedlineAcceptChild*)pVFrame->
+ GetChildWindow( SwRedlineAcceptChild::GetChildWindowId() );
+ if( pRed )
+ pRed->ReInitDlg( this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwDocShell::ReloadFromHtml( const String& rStreamName, SwSrcView* pSrcView )
+{
+ BOOL bModified = IsModified();
+ SvFileStream aStream(rStreamName, STREAM_READ);
+
+ // MIB 23.6.97: Die HTTP-Header-Felder muessen geloescht werden,
+ // sonst gibt es welche aus Meta-Tags hinter doppelt und dreifach.
+ ClearHeaderAttributesForSourceViewHack();
+
+ // MIB 24.07.97: Das Dokument-Basic muss auch noch d'ran glauben ...
+ // Ein EnterBasicCall braucht man hier nicht, weil man nichts ruft und
+ // in HTML-Dokument kein Dok-Basic vorhanden sein kann, das noch nicht
+ // geladen wurde.
+ OfficeApplication* pOffApp = OFF_APP();
+ OfaHtmlOptions* pHtmlOptions = pOffApp->GetHtmlOptions();
+ //#59620# HasBasic() zeigt an, dass es schon einen BasicManager an der DocShell
+ // gibt. Der wurde im HTML-Import immer angelegt, wenn Macros im Quelltext
+ // vorhanden sind.
+ if( pHtmlOptions && pHtmlOptions->IsStarBasic() && HasBasic())
+ {
+ BasicManager *pBasicMan = GetBasicManager();
+ if( pBasicMan && (pBasicMan != pOffApp->GetBasicManager()) )
+ {
+ USHORT nLibCount = pBasicMan->GetLibCount();
+ while( nLibCount )
+ {
+ StarBASIC *pBasic = pBasicMan->GetLib( --nLibCount );
+ if( pBasic )
+ {
+ // Die IDE benachrichtigen
+ String aLibName( String::CreateFromAscii("[" ));
+ ((aLibName += GetTitle()) += String::CreateFromAscii("].")) += pBasic->GetName();
+ SfxStringItem aStrItem( SID_BASICIDE_ARG_LIBNAME, aLibName );
+
+ pSrcView->GetViewFrame()->GetDispatcher()->Execute( SID_BASICIDE_LIBREMOVED,
+ SFX_CALLMODE_SYNCHRON,
+ &aStrItem, 0L );
+
+ // Aus der Standard-Lib werden nur die Module geloescht
+ if( nLibCount )
+ pBasicMan->RemoveLib( nLibCount, TRUE );
+ else
+ pBasic->Clear();
+ }
+ }
+
+ ASSERT( pBasicMan->GetLibCount() <= 1,
+ "Loschen des Basics hat nicht geklappt" );
+ }
+ }
+
+ RemoveLink();
+ delete pIo;
+ pIo = 0;
+ //jetzt muss auch das UNO-Model ueber das neue Doc informiert werden #51535#
+ uno::Reference<text::XTextDocument> xDoc(GetBaseModel(), uno::UNO_QUERY);
+ text::XTextDocument* pxDoc = xDoc.get();
+ ((SwXTextDocument*)pxDoc)->InitNewDoc();
+
+
+ AddLink();
+ pSrcView->SetPool(&GetPool());
+
+ String sBaseURL = INetURLObject::GetBaseURL();
+ const String& rMedname = GetMedium()->GetName();
+ INetURLObject::SetBaseURL( rMedname );
+
+ // fix #51032#: Die HTML-Vorlage muss noch gesetzt werden
+ SetHTMLTemplate( *GetDoc() ); //Styles aus HTML.vor
+
+ SfxViewShell* pViewShell = GetView() ? (SfxViewShell*)GetView()
+ : SfxViewShell::Current();
+ SfxViewFrame* pViewFrm = pViewShell->GetViewFrame();
+ pViewFrm->GetDispatcher()->Execute( SID_VIEWSHELL0, SFX_CALLMODE_SYNCHRON );
+
+ SubInitNew();
+
+ SwReader aReader( aStream, rMedname, pDoc );
+ aReader.Read( *ReadHTML );
+ aStream.Close();
+ INetURLObject::SetBaseURL(sBaseURL);
+
+
+ // MIB 23.6.97: Die HTTP-Header-Attribute wieder in die DokInfo
+ // uebernehmen. Die Base-URL ist hier egal, da TLX zum absolutieren die
+ // vom Dokument nimmt.
+ SetHeaderAttributesForSourceViewHack();
+
+ if(bModified && !IsReadOnly())
+ SetModified();
+ else
+ pDoc->ResetModified();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+Window *SwDocShell::AddTemplateBtn(SfxFileDialog* pFileDlg)
+{
+ PushButton *pTemplateBtn = new PushButton( pFileDlg );
+ pTemplateBtn->SetText( SW_RESSTR(STR_FDLG_TEMPLATE_BUTTON) );
+ pTemplateBtn->SetClickHdl(LINK(this, SwDocShell, SelTemplateHdl));
+ pTemplateBtn->SetHelpId(HID_SELECT_TEMPLATE);
+#if (SUPD>503)
+ pFileDlg->AddControl( pTemplateBtn, TRUE );
+#else
+ pFileDlg->AddControl( pTemplateBtn );
+#endif
+ pTemplateBtn->Show();
+
+ FixedText *pTemplateFT = new FixedText( pFileDlg );
+
+ String sName( SW_RES( STR_FDLG_TEMPLATE_NAME ));
+ sName += SwSelTemplateDlg::GetStartTemplate( *pWrtShell );
+ pTemplateFT->SetText(sName);
+
+ pFileDlg->AddControl( pTemplateFT );
+ pTemplateFT->SetSizePixel(Size(pTemplateFT->LogicToPixel(Size(160, 1), MAP_APPFONT).Width(), pTemplateFT->GetSizePixel().Height()));
+ pTemplateFT->Show();
+
+ pTemplateBtn->SetData(pTemplateFT); // Verweis auf den Template-Namen
+
+ // Die hinzugefuegten Controls werden spaeter vom FileDlg geloescht
+ return pTemplateFT;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwDocShell, SelTemplateHdl, PushButton *, pBtn )
+{
+ if (pWrtShell)
+ {
+ FixedText *pFT = (FixedText*)pBtn->GetData();
+ String sFixName(SW_RES(STR_FDLG_TEMPLATE_NAME));
+
+ String sName(pFT->GetText());
+ sName.Erase(0, sFixName.Len());
+
+ SwSelTemplateDlg aDlg( pBtn, pWrtShell, sName);
+
+ if( aDlg.Execute() == RET_OK )
+ {
+ sFixName += sName;
+ pFT->SetText(sFixName);
+ }
+ }
+
+ return 0;
+}
+/* -----------------------------14.12.99 16:52--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwDocShell::ToggleBrowserMode(BOOL bSet, SwView* pView )
+{
+ GetDoc()->SetBrowseMode( bSet );
+ SwView* pTempView = pView ? pView : (SwView*)GetView();
+ pTempView->GetViewFrame()->GetBindings().Invalidate(FN_SHADOWCURSOR);
+ UpdateFontList();
+ if( pTempView )
+ {
+ if( !GetDoc()->GetPrt( FALSE ) )
+ pTempView->SetPrinter( GetDoc()->GetPrt( TRUE ),
+ SFX_PRINTER_PRINTER|SFX_PRINTER_JOBSETUP );
+
+ //Wenn wir die BrowseView einschalten, darf es nur diese eine
+ //Sicht auf das Dokument geben, alle anderen werden geschlossen.
+ SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(this, 0, FALSE);
+ do
+ { if ( pTmpFrm != pTempView->GetViewFrame() )
+ {
+ pTmpFrm->DoClose();
+ pTmpFrm = SfxViewFrame::GetFirst(this, 0, FALSE);
+ }
+ else
+ pTmpFrm = pTmpFrm->GetNext(*pTmpFrm, this, 0, FALSE);
+
+ } while ( pTmpFrm );
+
+ pTempView->GetWrtShell().CheckBrowseView( TRUE );
+ pTempView->CheckVisArea();
+
+ SvxZoomType eType;
+ if ( GetDoc()->IsBrowseMode() &&
+ SVX_ZOOM_PERCENT !=
+ (eType = (SvxZoomType)pTempView->GetWrtShell().GetViewOptions()->GetZoomType()) )
+ {
+ ((SwView*)GetView())->SetZoom( eType );
+ }
+ pTempView->InvalidateBorder();
+ pTempView->SetNewWindowAllowed(!bSet);
+ }
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.277 2000/09/18 16:05:10 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.276 2000/09/08 08:33:26 os
+ check GetView()
+
+ Revision 1.275 2000/09/08 08:12:50 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.274 2000/09/07 15:59:20 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.273 2000/08/30 16:12:40 os
+ #78341# save document before switching to source view
+
+ Revision 1.272 2000/08/14 17:27:15 jp
+ Task #77422#: PrintPreView in the same window
+
+ Revision 1.271 2000/08/07 11:48:36 jp
+ PagePreView replace the current view
+
+ Revision 1.270 2000/06/09 08:10:13 os
+ using tools/tempfile
+
+ Revision 1.269 2000/05/30 13:39:55 os
+ #70840# HTML source view: for saved documents only, call save as dialog if needed
+
+ Revision 1.268 2000/05/26 07:21:27 os
+ old SW Basic API Slots removed
+
+ Revision 1.267 2000/04/19 12:56:33 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.266 2000/04/11 08:01:30 os
+ UNICODE
+
+ Revision 1.265 2000/03/21 15:47:50 os
+ UNOIII
+
+ Revision 1.264 2000/03/08 17:26:34 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.263 2000/03/03 16:16:32 pl
+ #73771# workaround for c50 intel compiler
+
+ Revision 1.262 2000/03/03 15:16:58 os
+ StarView remainders removed
+
+ Revision 1.261 2000/03/03 12:27:49 mib
+ Removed JavaScript
+
+ Revision 1.260 2000/02/24 17:01:58 hr
+ #73447#: removed temporaries
+
+ Revision 1.259 2000/02/11 14:43:03 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.258 2000/02/02 17:00:33 jp
+ Task #72579#: interface of SwReader is changed
+
+ Revision 1.257 2000/01/14 16:29:50 jp
+ Task #71894#: new Options for SW-AutoComplete
+
+ Revision 1.256 2000/01/13 21:27:22 jp
+ Task #71894#: new Options for SW-AutoComplete
+
+ Revision 1.255 2000/01/11 10:22:04 tl
+ #70735# CheckSpellChanges moved to SwModule and called from there
+
+ Revision 1.254 1999/12/14 16:11:08 os
+ #70234# Set Browser Mode via API
+
+ Revision 1.253 1999/11/26 10:58:35 mib
+ Loading of styles from XML documents
+
+ Revision 1.252 1999/11/11 10:40:03 jp
+ SetModified: broadcast the hint DOCCHANGED
+
+ Revision 1.251 1999/11/09 09:44:04 jp
+ SetModified: do nothing if EnableSetModified is not set
+
+ Revision 1.250 1999/10/29 11:31:31 os
+ support XModifiable
+
+ Revision 1.249 1999/10/25 19:37:25 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.248 1999/10/21 17:45:27 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.247 1999/10/19 14:30:57 hr
+ #65293#: sfxecode.hxx now in svtools
+
+ Revision 1.246 1999/08/31 08:33:36 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.245 31 Aug 1999 10:33:36 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.244 22 Jun 1999 17:20:30 KZ
+ Anpass. fuer Linux
+
+ Rev 1.243 10 Jun 1999 10:52:10 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.242 04 May 1999 14:58:44 JP
+ FilterExportklasse Writer von SvRef abgeleitet, damit sie immer zerstoert wird
+
+ Rev 1.241 20 Apr 1999 17:14:34 MA
+ #63638# API-Aenderung PrepareClose
+
+ Rev 1.240 16 Apr 1999 17:22:10 JP
+ Bug #64928#: erfrage an der Vorlage, ob sie an einem Node gesetzt ist
+
+ Rev 1.239 07 Apr 1999 14:13:18 OS
+ #59615# ReleaseDocument aufrufen
+
+ Rev 1.238 29 Mar 1999 15:57:42 OS
+ #59615# InsertDocument am SfxJS rufen
+
+ Rev 1.237 15 Mar 1999 15:07:30 JP
+ Task #61405#: AutoCompleteList wurde statisch
+
+ Rev 1.236 11 Mar 1999 23:59:42 JP
+ Task #61405#: Optionen setzen
+
+ Rev 1.235 09 Mar 1999 14:10:12 OS
+ #62286# SetY2KState an die FormShell weiterleiten
+
+ Rev 1.234 03 Mar 1999 09:44:46 MIB
+ #60932#: Indizes vom Organizer nun richtig
+
+ Rev 1.233 02 Mar 1999 16:01:48 AMA
+ Fix #62568#: Invalidierungen so sparsam wie moeglich, so gruendlich wie noetig
+
+ Rev 1.232 03 Feb 1999 11:46:48 JP
+ Bug #61401#: am Storage die VersionsNummer vom Filter setzen
+
+ Rev 1.231 02 Feb 1999 08:42:44 OS
+ #61027# zweistellige Jahreszahlen
+
+ Rev 1.230 01 Feb 1999 08:23:36 OS
+ #56371# unnoetigen include wieder raus
+
+ Rev 1.229 27 Jan 1999 09:51:50 OS
+ #56371# TF_ONE51
+
+ Rev 1.228 19 Jan 1999 12:05:00 OS
+ #59620 vor GetBasicManager mit HasBasic pruefen
+
+ Rev 1.227 14 Jan 1999 10:18:56 MIB
+ #47231#: Organizer: Ersetzen von Vorlagen ohne Loeschen
+
+ Rev 1.226 12 Jan 1999 12:49:24 OS
+ #60705# AutoFormat-Dialog nicht asynchron aufrufen!
+
+ Rev 1.225 18 Dec 1998 17:18:10 MIB
+ #60483#: Poolvorlagen beim D&D im Organizer, Parents und Follows richtig setzen
+
+ Rev 1.224 09 Dec 1998 16:37:54 OM
+ #59628# Warnung anzeigen, wenn Dok nicht angelegt werden konnt
+
+ Rev 1.223 09 Dec 1998 14:31:10 OS
+ #56371# TF_ONE51
+
+ Rev 1.222 25 Nov 1998 12:42:52 OS
+ #59826# temp. Datei in der DocShell loeschen
+
+ Rev 1.221 25 Nov 1998 11:26:56 OS
+ #59240##59637# SubInitNew vor dem Import, kein TabStop fuer HTML
+
+ Rev 1.220 17 Nov 1998 22:18:02 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+ Rev 1.219 05 Nov 1998 10:08:50 OS
+ #58996# SourceView: Flag fuers speichern
+
+ Rev 1.218 22 Sep 1998 12:34:00 JP
+ Bug #55959#: SetBase mit einer URL und keinem FileNamen - der Dialog liefert keine URL (ist eig. der Bug!)
+
+ Rev 1.217 21 Sep 1998 11:57:36 JP
+ Bug #55959#: beim Laden von Vorlagen, muss die BaseURL richtig gesetzt sein
+
+ Rev 1.216 03 Sep 1998 13:27:44 OS
+ #55662# AddControl mit NewLine
+
+ Rev 1.215 23 Jul 1998 11:14:36 JP
+ Task #52654#: Einfuegen Doc nicht mit einer CrsrShell sondern mit einen PaM
+
+ Rev 1.214 09 Jul 1998 09:52:44 JP
+ EmptyStr benutzen
+
+ Rev 1.213 08 Jul 1998 16:21:00 JP
+ Bug #52411#: ReturnWert vom Convert korrekt auswerten
+
+ Rev 1.212 02 Jul 1998 14:34:40 MIB
+ Fix #52035#: Beim Unschalten aus der Source-View View vor dem Import umschalten
+
+ Rev 1.211 25 Jun 1998 11:52:22 OM
+ #51665# Language fuer Zahlenformate
+
+ Rev 1.210 23 Jun 1998 18:13:50 OS
+ InitNewDoc - Member des XTextDocuments zuruecksetzen #51535#
+
+ Rev 1.209 18 Jun 1998 11:02:40 OS
+ FN_NEW_GLOBAL_DOC: ohne Vorlagennamen Null uebergeben
+
+ Rev 1.208 18 Jun 1998 10:08:08 OS
+ Global-Doc erzeugen: Ueberschrift 1 als default #51263#
+
+ Rev 1.207 15 Jun 1998 09:54:50 MIB
+ fix #51032#: HTML-Vorlage beim Umsch. aus der Source-View laden und Seitenvorlage setzen
+
+ Rev 1.206 12 Jun 1998 09:45:58 OS
+ Appear statt ToTop #50485#
+
+ Rev 1.205 28 May 1998 17:40:52 OM
+ Zahlenformat per Basic ermitteln
+
+ Rev 1.204 19 May 1998 12:45:22 OM
+ SvxMacro-Umstellung
+
+ Rev 1.203 15 May 1998 17:26:12 OM
+ #50043# DirectCursor nicht im OnlineLayout
+
+ Rev 1.202 13 May 1998 14:52:34 OM
+ Autokorrektur/Autoformat umgestaltet und zusammengefasst
+
+ Rev 1.201 24 Apr 1998 16:01:04 OM
+ Seitenvorschau auch im Html-Mode
+
+ Rev 1.200 23 Apr 1998 15:35:36 OM
+ #49689 Aenderung der Seitenanzahl per Basic konfigurierbar
+
+ Rev 1.199 02 Apr 1998 10:09:52 MIB
+ Beim Erzeugen eines Global-Dokuments nur noch den 5.0-Filter anbieten
+
+ Rev 1.198 27 Mar 1998 14:12:32 OM
+ ChildWindows im Modified-Hdl updaten
+
+ Rev 1.197 20 Mar 1998 14:57:52 OM
+ Vorlagentext verbreitert
+
+ Rev 1.196 20 Mar 1998 14:42:42 OM
+ Fehlender Include
+
+ Rev 1.195 20 Mar 1998 12:41:58 OM
+ Helpid fuer Template-Button
+
+ Rev 1.194 20 Mar 1998 12:36:32 OM
+ Globaldokument: Vorlage auswaehlen
+
+ Rev 1.193 19 Mar 1998 17:40:56 OM
+ Vorlage auswehlen
+
+ Rev 1.192 17 Mar 1998 13:04:38 JP
+ fuers GenerateHTMLDoc: nur den HTML-Filter anbieten
+
+ Rev 1.191 17 Mar 1998 12:23:04 JP
+ neu: GenerateHTMLDoc - aquivalent zu GenerateGlobalDoc
+
+ Rev 1.190 12 Mar 1998 13:01:54 OS
+ SID_NEWWINDOW nicht mehr ueberladen
+
+ Rev 1.189 02 Feb 1998 13:53:26 OS
+ SID_VIEWSH* am eigenen Dispatcher rufen #46862#
+
+ Rev 1.188 19 Jan 1998 11:52:34 MBA
+ CreateViewFrame verwenden
+
+ Rev 1.187 07 Jan 1998 18:42:08 MIB
+ 5.0 Fileformat
+
+ Rev 1.186 09 Dec 1997 08:19:06 OS
+ Vorlagen laden: auch Numerierung
+
+ Rev 1.185 29 Nov 1997 15:25:40 MA
+ includes
+
+ Rev 1.184 24 Nov 1997 14:22:48 MA
+ includes
+
+ Rev 1.183 11 Nov 1997 11:37:22 AMA
+ Fix #44514#: Fuer die Druckvorschau braucht man einen Drucker
+
+ Rev 1.182 30 Oct 1997 18:24:44 JP
+ Options am Reader nicht mehr public
+
+ Rev 1.181 28 Oct 1997 14:52:34 OS
+ SetPool an der SourceView sofort nach AddLink rufen
+
+ Rev 1.180 24 Oct 1997 15:18:58 OS
+ ReloadFromHtml nur noch rufen, wenn das Doc im SourceMode veraendert wurde #44971#
+
+ Rev 1.179 13 Oct 1997 17:23:22 MA
+ #44630# Keine SwDokInfo fuer SrcView
+
+ Rev 1.178 08 Oct 1997 14:28:20 OS
+ PrintLayout funktioniert jetzt auch aus dem Basic
+
+ Rev 1.177 15 Sep 1997 13:26:06 OS
+ Events am Doc vor Reload loeschen #42231#
+
+ Rev 1.176 12 Sep 1997 16:04:50 OS
+ Vorlagen laden: EAs uebergeben, SW4-Filter als Standard #43699#
+
+ Rev 1.175 01 Sep 1997 13:06:34 OS
+ DLL-Umstellung
+
+ Rev 1.174 14 Aug 1997 15:23:36 MA
+ fix: DocShell ohne Doc bei OLE-Registration
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/app/docshdrw.cxx b/sw/source/ui/app/docshdrw.cxx
new file mode 100644
index 000000000000..3d2f5937ff85
--- /dev/null
+++ b/sw/source/ui/app/docshdrw.cxx
@@ -0,0 +1,194 @@
+/*************************************************************************
+ *
+ * $RCSfile: docshdrw.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+
+#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
+#define ITEMID_GRADIENT_LIST SID_GRADIENT_LIST
+#define ITEMID_HATCH_LIST SID_HATCH_LIST
+#define ITEMID_BITMAP_LIST SID_BITMAP_LIST
+#define ITEMID_DASH_LIST SID_DASH_LIST
+#define ITEMID_LINEEND_LIST SID_LINEEND_LIST
+
+
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_DRAWITEM_HXX //autogen
+#include <svx/drawitem.hxx>
+#endif
+#ifndef _SVDMODEL_HXX //autogen
+#include <svx/svdmodel.hxx>
+#endif
+#ifndef _SVDOUTL_HXX
+#include <svx/svdoutl.hxx>
+#endif
+
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+
+#include "docsh.hxx"
+#include "doc.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Document laden
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::InitDraw()
+{
+ SdrModel *pDrDoc = pDoc->GetDrawModel();
+ if( pDrDoc )
+ {
+ // Listen, bzw. Tables im ItemSet der DocShell anlegen
+ PutItem( SvxGradientListItem( pDrDoc->GetGradientList() ) );
+ PutItem( SvxHatchListItem( pDrDoc->GetHatchList() ) );
+ PutItem( SvxBitmapListItem( pDrDoc->GetBitmapList() ) );
+ PutItem( SvxDashListItem( pDrDoc->GetDashList() ) );
+ PutItem( SvxLineEndListItem( pDrDoc->GetLineEndList() ) );
+
+ Outliner& rOutliner = pDrDoc->GetDrawOutliner();
+ rOutliner.SetHyphenator( ::GetHyphenator() );
+ const SfxPoolItem& rItem = GetDoc()->GetDefault(RES_CHRATR_LANGUAGE);
+ rOutliner.SetDefaultLanguage(((const SvxLanguageItem&)rItem).GetLanguage());
+
+ }
+ else
+ PutItem( SvxColorTableItem( OFF_APP()->GetStdColorTable() ));
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.18 2000/09/18 16:05:10 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.17 2000/02/09 10:14:12 os
+ #72716# set hyphenator and language at the DrawOutliner
+
+ Revision 1.16 1997/11/29 15:04:46 MA
+ includes
+
+
+ Rev 1.15 29 Nov 1997 16:04:46 MA
+ includes
+
+ Rev 1.14 24 Nov 1997 14:22:50 MA
+ includes
+
+ Rev 1.13 03 Sep 1997 15:53:54 OS
+ DLL-Umbau
+
+ Rev 1.12 14 Aug 1996 12:00:56 JP
+ svdraw.hxx entfernt
+
+ Rev 1.11 29 Jul 1996 19:37:38 MA
+ includes
+
+ Rev 1.10 07 Mar 1996 12:09:58 HJS
+ 2 defines zu viel
+
+ Rev 1.9 07 Dec 1995 08:07:08 SWG
+ clooks
+
+ Rev 1.8 05 Dec 1995 09:17:10 JP
+ InitDraw: keine Parameter mehr
+
+ Rev 1.7 24 Nov 1995 16:56:52 OM
+ PCH->PRECOMPILED
+
+ Rev 1.6 17 Nov 1995 19:15:50 OS
+ ColorTable immer von der App
+
+ Rev 1.5 07 Nov 1995 15:25:50 AMA
+ Fix: ColorTable an der DocShell setzen.
+
+ Rev 1.4 03 Nov 1995 19:27:56 AMA
+ Opt.StartUp: DrawView/Model erst bei Bedarf.
+
+ Rev 1.3 22 Aug 1995 09:00:00 MA
+ svxitems-header entfernt
+
+ Rev 1.2 09 Aug 1995 16:39:14 MA
+ drawing-undo-header rein
+
+ Rev 1.1 21 Mar 1995 02:23:32 ER
+ _svdorect_hxx definiert => _svdcapt_hxx definieren
+
+ Rev 1.0 13 Feb 1995 12:20:30 MS
+ Initial revision.
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/docshini.cxx b/sw/source/ui/app/docshini.cxx
new file mode 100644
index 000000000000..b223e6e369a2
--- /dev/null
+++ b/sw/source/ui/app/docshini.cxx
@@ -0,0 +1,897 @@
+/*************************************************************************
+ *
+ * $RCSfile: docshini.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SV_SYSTEM_HXX
+#include <vcl/system.hxx>
+#endif
+
+//Statt uiparam.hxx selbst definieren, das spart keys
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#define ITEMID_FONTLIST SID_ATTR_CHAR_FONTLIST
+
+#ifndef _SOT_STORINFO_HXX
+#include <sot/storinfo.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _CTRLTOOL_HXX //autogen
+#include <svtools/ctrltool.hxx>
+#endif
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+#ifndef _OFA_MISCCFG_HXX //autogen
+#include <sfx2/misccfg.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+
+
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+#ifndef _SFX_SFXUNO_HXX
+#include <sfx2/sfxuno.hxx>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _XTABLE_HXX //autogen
+#include <svx/xtable.hxx>
+#endif
+#ifndef _SVX_DRAWITEM_HXX //autogen
+#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
+#include <svx/drawitem.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_FLSTITEM_HXX //autogen
+#include <svx/flstitem.hxx>
+#endif
+#ifndef _SVX_TSTPITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_HYZNITEM_HXX //autogen
+#include <svx/hyznitem.hxx>
+#endif
+#ifndef _MySVXACORR_HXX //autogen
+#include <svx/svxacorr.hxx>
+#endif
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+
+#ifndef _FMTCOL_HXX //autogen
+#include <fmtcol.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _DOCFAC_HXX
+#include <docfac.hxx>
+#endif
+#ifndef _DOCSTYLE_HXX
+#include <docstyle.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _TOX_HXX
+#include <tox.hxx>
+#endif
+#ifndef _SW3IO_HXX
+#include <sw3io.hxx> // I/O, Hausformat
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _FONTCFG_HXX
+#include <fontcfg.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _GLOBDOC_HXX
+#include <globdoc.hxx>
+#endif
+#ifndef _NDOLE_HXX
+#include <ndole.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _UNOTXDOC_HXX
+#include <unotxdoc.hxx>
+#endif
+#ifndef _FLDUPDE_HXX
+#include <fldupde.hxx>
+#endif
+#ifndef _LINKENUM_HXX
+#include <linkenum.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#ifndef _SWSWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+extern sal_Bool bNotLoadLayout;
+
+#ifdef _JP_LOADTIME
+extern int bIsSttTime = 0;
+extern long nSttTime = 0;
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+/*-----------------21.09.96 15.29-------------------
+
+--------------------------------------------------*/
+
+
+void lcl_SetColl(SwDoc* pDoc, sal_uInt16 nType,
+ SfxPrinter* pPrt, const String& rStyle)
+{
+ sal_Bool bDelete = sal_False;
+ const SfxFont* pFnt = pPrt ? pPrt->GetFontByName(rStyle): 0;
+ if(!pFnt)
+ {
+ pFnt = new SfxFont(FAMILY_DONTKNOW, rStyle);
+ bDelete = sal_True;
+ }
+ SwTxtFmtColl *pColl = pDoc->GetTxtCollFromPool(nType);
+ pColl->SetAttr(SvxFontItem(pFnt->GetFamily(), pFnt->GetName(),
+ aEmptyStr, pFnt->GetPitch(), pFnt->GetCharSet()));
+ if(bDelete)
+ {
+ delete (SfxFont*) pFnt;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Document laden
+ --------------------------------------------------------------------*/
+
+
+sal_Bool SwDocShell::InitNew( SvStorage * pStor )
+{
+ sal_Bool bRet = SfxInPlaceObject::InitNew( pStor );
+ SetMapUnit( MAP_TWIP );
+ if( bRet )
+ {
+ AddLink(); // pDoc / pIo ggf. anlegen
+
+ if ( ISA( SwWebDocShell ) )
+ SetHTMLTemplate( *GetDoc() ); //Styles aus HTML.vor
+ else if( ISA( SwGlobalDocShell ) )
+ GetDoc()->SetGlobalDoc(); // Globaldokument
+
+ // fuer alle
+
+ SwStdFontConfig* pStdFont = SW_MOD()->GetStdFontConfig();
+ SfxPrinter* pPrt = pDoc->GetPrt();
+
+ String sEntry;
+ if(!pStdFont->IsFontDefault(FONT_STANDARD))
+ {
+ sEntry = pStdFont->GetFontStandard();
+ sal_Bool bDelete = sal_False;
+ const SfxFont* pFnt = pPrt ? pPrt->GetFontByName(sEntry): 0;
+ if(!pFnt)
+ {
+ pFnt = new SfxFont(FAMILY_DONTKNOW, sEntry);
+ bDelete = sal_True;
+ }
+ pDoc->SetDefault(SvxFontItem(pFnt->GetFamily(), pFnt->GetName(),
+ aEmptyStr, pFnt->GetPitch(), pFnt->GetCharSet()));
+ SwTxtFmtColl *pColl = pDoc->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
+ pColl->ResetAttr(RES_CHRATR_FONT);
+ if(bDelete)
+ {
+ delete (SfxFont*) pFnt;
+ bDelete = sal_False;
+ }
+
+// lcl_SetColl(pDoc, RES_POOLCOLL_STANDARD, pPrt, sEntry);
+ }
+
+ if(!pStdFont->IsFontDefault(FONT_OUTLINE))
+ {
+ sEntry = pStdFont->GetFontOutline();
+ lcl_SetColl(pDoc, RES_POOLCOLL_HEADLINE_BASE, pPrt, sEntry);
+ }
+
+ if(!pStdFont->IsFontDefault(FONT_LIST))
+ {
+ sEntry = pStdFont->GetFontList();
+ lcl_SetColl(pDoc, RES_POOLCOLL_NUMBUL_BASE, pPrt, sEntry);
+ }
+
+ if(!pStdFont->IsFontDefault(FONT_CAPTION))
+ {
+ sEntry = pStdFont->GetFontCaption();
+ lcl_SetColl(pDoc, RES_POOLCOLL_LABEL, pPrt, sEntry);
+ }
+
+ if(!pStdFont->IsFontDefault(FONT_INDEX))
+ {
+ sEntry = pStdFont->GetFontIndex();
+ lcl_SetColl(pDoc, RES_POOLCOLL_REGISTER_BASE, pPrt, sEntry);
+ }
+
+
+/*
+ //JP 12.07.95: so einfach waere es fuer die neu Mimik
+ pDoc->SetDefault( SvxTabStopItem( 1,
+ GetStar Writer App()->GetUsrPref()->GetDefTabDist(),
+ SVX_TAB_ADJUST_DEFAULT,
+ RES_PARATR_TABSTOP));
+*/
+ if ( GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
+ {
+ // fuer MWERKS (Mac-Compiler): kann nicht selbststaendig casten
+ SvEmbeddedObject* pObj = this;
+ SwDataExchange::InitOle( pObj, pDoc );
+ }
+ SubInitNew();
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ctor mit SfxCreateMode ?????
+ --------------------------------------------------------------------*/
+
+
+SwDocShell::SwDocShell(SfxObjectCreateMode eMode) :
+ pDoc(0),
+ pIo(0),
+ pBasePool(0),
+ pFontList(0),
+ SfxObjectShell ( eMode ),
+ pView( 0 ),
+ pWrtShell( 0 )
+{
+ SetShell(this);
+ SetBaseModel(new SwXTextDocument(this));
+ // wir als BroadCaster werden auch unser eigener Listener
+ // (fuer DocInfo/FileNamen/....)
+ StartListening( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ctor / Dtor
+ --------------------------------------------------------------------*/
+
+
+SwDocShell::SwDocShell( SwDoc *pD, SfxObjectCreateMode eMode ):
+ pDoc(pD),
+ pIo(0),
+ pBasePool(0),
+ pFontList(0),
+ SfxObjectShell ( eMode ),
+ pView( 0 ),
+ pWrtShell( 0 )
+{
+ SetShell(this);
+ SetBaseModel(new SwXTextDocument(this));
+ // wir als BroadCaster werden auch unser eigener Listener
+ // (fuer DocInfo/FileNamen/....)
+ StartListening( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Dtor
+ --------------------------------------------------------------------*/
+
+
+ SwDocShell::~SwDocShell()
+{
+ ::RemoveFromBackgroundCache( *this, sal_False );
+
+ RemoveLink();
+ delete pIo;
+ delete pFontList;
+
+ // wir als BroadCaster werden auch unser eigener Listener
+ // (fuer DocInfo/FileNamen/....)
+ EndListening( *this );
+ SvxColorTableItem* pColItem = (SvxColorTableItem*)GetItem(SID_COLOR_TABLE);
+ // wird nur die DocInfo fuer den Explorer gelesen, ist das Item nicht da
+ if(pColItem)
+ {
+ XColorTable* pTable = pColItem->GetColorTable();
+ // wurde eine neue Table angelegt, muss sie auch geloescht werden.
+ if((void*)pTable != (void*)(OFF_APP())->GetStdColorTable())
+ delete pTable;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: AddLink
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::AddLink()
+{
+ if( !pDoc )
+ {
+ SwDocFac aFactory;
+ pDoc = aFactory.GetDoc();
+ pDoc->AddLink();
+ pDoc->SetHTMLMode( ISA(SwWebDocShell) );
+ }
+ else
+ pDoc->AddLink();
+ pDoc->SetDocShell( this ); // am Doc den DocShell-Pointer setzen
+ uno::Reference< text::XTextDocument > xDoc(GetBaseModel(), uno::UNO_QUERY);
+ ((SwXTextDocument*)xDoc.get())->Reactivate(this);
+
+ if( !pIo )
+ pIo = new Sw3Io( *pDoc );
+ else
+ pIo->SetDoc( *pDoc );
+
+ SetPool(&pDoc->GetAttrPool());
+
+ // am besten erst wenn eine sdbcx::View erzeugt wird !!!
+ pDoc->SetOle2Link(LINK(this, SwDocShell, Ole2ModifiedHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: neue FontList erzeugen Aenderung Drucker
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::UpdateFontList()
+{
+ ASSERT(pDoc, "Kein Doc keine FontList");
+ if( pDoc )
+ {
+ SfxPrinter* pPrt = pDoc->GetPrt();
+ delete pFontList;
+
+ if( pPrt && pPrt->GetDevFontCount() && !pDoc->IsBrowseMode() )
+ pFontList = new FontList( pPrt );
+ else
+ pFontList = new FontList( Application::GetDefaultDevice() );
+
+ PutItem( SvxFontListItem( pFontList, SID_ATTR_CHAR_FONTLIST ) );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: RemoveLink
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::RemoveLink()
+{
+ // Uno-Object abklemmen
+ uno::Reference< text::XTextDocument > xDoc(GetBaseModel(), uno::UNO_QUERY);
+ ((SwXTextDocument*)xDoc.get())->Invalidate();
+ aFinishedTimer.Stop();
+ if(pDoc)
+ {
+ DELETEZ(pBasePool);
+ sal_Int8 nRefCt = pDoc->RemoveLink();
+ pDoc->SetOle2Link(Link());
+ pDoc->SetDocShell( 0 );
+ if( !nRefCt )
+ delete pDoc;
+ pDoc = 0; // wir haben das Doc nicht mehr !!
+ }
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Laden, Default-Format
+ --------------------------------------------------------------------*/
+
+
+sal_Bool SwDocShell::Load(SvStorage* pStor)
+{
+ sal_Bool bRet = sal_False;
+ if(SfxInPlaceObject::Load( pStor ))
+ {
+ if( pDoc ) // fuer Letzte Version !!
+ RemoveLink(); // das existierende Loslassen
+
+ AddLink(); // Link setzen und Daten updaten !!
+
+ // Das Laden
+ // fuer MD
+ sal_Bool bSave = bNotLoadLayout;
+ bNotLoadLayout = sal_Bool( !LoadLayout() );
+#ifndef PRODUCT
+ sal_Bool bWeb = 0 != PTR_CAST(SwWebDocShell, this);
+ bNotLoadLayout |= SW_MOD()->GetUsrPref(bWeb)->IsTest1();
+#endif
+ SwWait aWait( *this, sal_True );
+ sal_uInt32 nErr = ERR_SWG_READ_ERROR;
+ switch( GetCreateMode() )
+ {
+// case SFX_CREATE_MODE_INTERNAL:
+// nErr = 0;
+// break;
+
+ case SFX_CREATE_MODE_ORGANIZER:
+ nErr = pIo->LoadStyles( pStor );
+ break;
+
+ case SFX_CREATE_MODE_INTERNAL:
+ bNotLoadLayout = sal_True;
+ // kein break;
+
+ case SFX_CREATE_MODE_EMBEDDED:
+ // SfxProgress unterdruecken, wenn man Embedded ist
+ SW_MOD()->SetEmbeddedLoadSave( sal_True );
+ // kein break;
+
+ case SFX_CREATE_MODE_STANDARD:
+ case SFX_CREATE_MODE_PREVIEW:
+ if( ReadSw3 )
+ {
+#ifdef _JP_LOADTIME
+{
+{
+SvFileStream aStrm( "\\loadtime.txt", STREAM_WRITE );
+aStrm.Seek( STREAM_SEEK_TO_END );
+aStrm << "Load: " << pStor->GetName().GetStr() << endl;
+}
+bIsSttTime = sal_True;
+nSttTime = util::Time().GetTime();
+}
+#endif
+ // die DocInfo vom Doc am DocShell-Medium setzen
+ {
+ SfxDocumentInfo aInfo;
+ aInfo.Load( pStor );
+ pDoc->DocInfoChgd( aInfo );
+ }
+ SwReader aRdr( *pStor, aEmptyStr, pDoc );
+ nErr = aRdr.Read( *ReadSw3 );
+ }
+#ifndef PRODUCT
+ else
+ ASSERT( !this, "ohne Sw3Reader geht nichts" );
+#endif
+ break;
+
+#ifndef PRODUCT
+ default:
+ ASSERT( !this, "Load: new CreateMode?" );
+#endif
+
+ }
+ bNotLoadLayout = bSave;
+
+ ASSERT( !pBasePool, "wer hat seinen Pool nicht zerstoert?" );
+ pBasePool = new SwDocStyleSheetPool( *pDoc,
+ SFX_CREATE_MODE_ORGANIZER == GetCreateMode() );
+ UpdateFontList();
+ InitDraw();
+
+ SetError( nErr );
+ bRet = !IsError( nErr );
+
+ // StartFinishedLoading rufen.
+ if( bRet && !pDoc->IsInLoadAsynchron() &&
+ GetCreateMode() == SFX_CREATE_MODE_STANDARD )
+ StartLoadFinishedTimer();
+
+ // SfxProgress unterdruecken, wenn man Embedded ist
+ SW_MOD()->SetEmbeddedLoadSave( sal_False );
+
+ if( pDoc->IsGlobalDoc() && !pDoc->IsGlblDocSaveLinks() )
+ {
+ // dann entferne alle nicht referenzierte OLE-Objecte
+ SvStorageInfoList aInfoList;
+ pStor->FillInfoList( &aInfoList );
+
+ // erstmal alle nicht "OLE-Objecte" aus der Liste entfernen
+ for( sal_uInt32 n = aInfoList.Count(); n; )
+ {
+ const String& rName = aInfoList.GetObject( --n ).GetName();
+ // in ndole.cxx wird dieser PreFix benutzt
+ if( 3 != rName.Match( String::CreateFromAscii("Obj") ))
+ aInfoList.Remove( n );
+ }
+
+ // dann alle referenzierten Object aus der Liste entfernen
+ SwClientIter aIter( *(SwModify*)pDoc->GetDfltGrfFmtColl() );
+ for( SwCntntNode* pNd = (SwCntntNode*)aIter.First( TYPE( SwCntntNode ) );
+ pNd; pNd = (SwCntntNode*)aIter.Next() )
+ {
+ SwOLENode* pOLENd = pNd->GetOLENode();
+ if( pOLENd )
+ {
+ const String& rOLEName = pOLENd->GetOLEObj().GetName();
+ for( n = aInfoList.Count(); n; )
+ {
+ const String& rName = aInfoList.GetObject( --n ).GetName();
+ if( rOLEName == rName )
+ {
+ aInfoList.Remove( n );
+ break;
+ }
+ }
+ }
+ }
+ // und jetzt haben wir alle Objecte, die nicht mehr
+ // referenziert werden
+ SvPersist* p = this;
+ for( n = aInfoList.Count(); n; )
+ {
+ const String& rName = aInfoList.GetObject( --n ).GetName();
+ SvInfoObjectRef aRef( p->Find( rName ) );
+ if( aRef.Is() )
+ p->Remove( &aRef );
+ }
+ }
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+sal_Bool SwDocShell::LoadFrom(SvStorage* pStor)
+{
+ sal_Bool bRet = sal_False;
+ if( pDoc )
+ RemoveLink();
+
+ AddLink(); // Link setzen und Daten updaten !!
+
+ do { // middle check loop
+ sal_uInt32 nErr = ERR_SWG_READ_ERROR;
+ const String& rNm = pStor->GetName();
+ if( pStor->IsStream( SfxStyleSheetBasePool::GetStreamName() ))
+ {
+ // Das Laden
+ SwWait aWait( *this, sal_True );
+ nErr = pIo->LoadStyles( pStor );
+ }
+ else
+ {
+ // sollte es sich um eine 2. Vrolage handeln ??
+ if( SvStorage::IsStorageFile( rNm ) )
+ break;
+
+ const SfxFilter* pFltr = SwIoSystem::GetFileFilter( rNm, aEmptyStr );
+ if( !pFltr || pFltr->GetUserData() != String::CreateFromAscii(FILTER_SWG) )
+ break;
+
+ SvFileStream aStrm( rNm, STREAM_STD_READ );
+ if( 0 == ( nErr = aStrm.GetError() ) )
+ {
+ SwWait aWait( *this, sal_True );
+ SwReader aRead( aStrm, rNm, pDoc );
+ nErr = aRead.Read( *ReadSwg );
+ }
+ }
+
+ ASSERT( !pBasePool, "wer hat seinen Pool nicht zerstoert?" );
+ pBasePool = new SwDocStyleSheetPool( *pDoc,
+ SFX_CREATE_MODE_ORGANIZER == GetCreateMode() );
+
+ SetError( nErr );
+ bRet = !IsError( nErr );
+
+ } while( sal_False );
+
+ SfxObjectShell::LoadFrom( pStor );
+ pDoc->ResetModified();
+ return bRet;
+}
+
+
+SvDataMemberObjectRef SwDocShell::CreateSnapshot()
+{
+ SvDataMemberObjectRef aRef;
+ if( pDoc )
+ aRef = new SwDataExchange( *pDoc );
+ return aRef;
+}
+
+
+void SwDocShell::SubInitNew()
+{
+ ASSERT( !pBasePool, "wer hat seinen Pool nicht zerstoert?" );
+ pBasePool = new SwDocStyleSheetPool( *pDoc,
+ SFX_CREATE_MODE_ORGANIZER == GetCreateMode() );
+ UpdateFontList();
+ InitDraw();
+
+// const SwModuleOptions& rModCfg = *SW_MOD()->GetModuleConfig();
+// pDoc->SetLinkUpdMode( rModCfg.GetLinkMode() );
+// pDoc->SetFldUpdateFlags( rModCfg.GetFldUpdateFlags() );
+ pDoc->SetLinkUpdMode( GLOBALSETTING );
+ pDoc->SetFldUpdateFlags( AUTOUPD_GLOBALSETTING );
+
+ sal_Bool bWeb = ISA(SwWebDocShell);
+
+ sal_uInt16 nRange[] = {
+ RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE,
+ 0, 0, 0 };
+ if(!bWeb)
+ {
+ nRange[2] = RES_PARATR_TABSTOP;
+ nRange[3] = RES_PARATR_HYPHENZONE;
+ }
+ SfxItemSet aDfltSet( pDoc->GetAttrPool(), nRange );
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+
+ sal_Int16 nVal;
+ if (xProp.is())
+ {
+ xProp->getPropertyValue( OUString::createFromAscii(UPN_DEFAULT_LANGUAGE)) >>= nVal;
+ }
+ else
+ { // guess DefaultLanguage to be used from other sources
+ nVal = Application::GetAppInternational().GetLanguage();
+ if( nVal == LANGUAGE_SYSTEM )
+ nVal = ::GetSystemLanguage();
+ }
+
+ aDfltSet.Put( SvxLanguageItem( nVal, RES_CHRATR_LANGUAGE ) );
+ if(!bWeb)
+ {
+ SvxHyphenZoneItem aHyp( (SvxHyphenZoneItem&) pDoc->GetDefault(
+ RES_PARATR_HYPHENZONE) );
+ if(xProp.is())
+ xProp->getPropertyValue( OUString::createFromAscii(UPN_HYPH_MIN_LEADING) )>>= nVal;
+ else
+ nVal = 2;
+ aHyp.GetMinLead() = sal_Int8(nVal);
+ if(xProp.is())
+ xProp->getPropertyValue( OUString::createFromAscii(UPN_HYPH_MIN_TRAILING) ) >>= nVal;
+ else
+ nVal = 2;
+ aHyp.GetMinTrail() = sal_Int8(nVal);
+ aDfltSet.Put( aHyp );
+
+ sal_uInt16 nNewPos = SW_MOD()->GetModuleConfig()->GetDefTab();
+ if( nNewPos )
+ aDfltSet.Put( SvxTabStopItem( 1, nNewPos,
+ SVX_TAB_ADJUST_DEFAULT ) );
+ }
+ pDoc->SetDefault( aDfltSet );
+ pDoc->ResetModified();
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.209 2000/09/18 16:05:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.208 2000/09/08 15:11:56 os
+ use configuration service
+
+ Revision 1.207 2000/07/13 12:36:19 os
+ new: SwXTextDocument::reactivate()
+
+ Revision 1.206 2000/07/05 10:28:14 os
+ invalidate model in ::RemoveLink()
+
+ Revision 1.205 2000/06/26 10:38:34 jp
+ must change: GetAppWindow->GetDefaultDevice
+
+ Revision 1.204 2000/04/11 08:01:30 os
+ UNICODE
+
+ Revision 1.203 2000/03/21 15:47:50 os
+ UNOIII
+
+ Revision 1.202 2000/03/03 15:16:58 os
+ StarView remainders removed
+
+ Revision 1.201 2000/02/02 17:00:37 jp
+ Task #72579#: interface of SwReader is changed
+
+ Revision 1.200 2000/01/19 18:26:37 jp
+ Bug #72117#: create numberformatter only if he is needed
+
+ Revision 1.199 1999/12/10 15:49:58 tl
+ #70667# shadowing of variable fixed
+
+ Revision 1.198 1999/12/10 13:05:52 tl
+ #70383# SvxGetLinguPropertySet => ::GetLinguPropertySet
+
+ Revision 1.197 1999/11/24 18:24:13 tl
+ check for Service availability
+
+ Revision 1.196 1999/11/19 16:40:22 os
+ modules renamed
+
+ Revision 1.195 1999/11/15 10:30:05 tl
+ some property name changes for ONE_LINGU
+
+ Revision 1.194 1999/10/25 19:10:08 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.193 1999/08/31 08:34:00 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.192 31 Aug 1999 10:34:00 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.191 08 Jul 1999 15:59:34 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.190 07 Jul 1999 08:25:26 OS
+ extended indexes: create index types in SwDoc::Ctor
+
+ Rev 1.189 15 Mar 1999 15:07:32 JP
+ Task #61405#: AutoCompleteList wurde statisch
+
+ Rev 1.188 11 Mar 1999 23:58:40 JP
+ Task #63171#: Optionen fuer Feld-/LinkUpdate Doc oder Modul lokal, Task #61405: Optionen setzen
+
+ Rev 1.187 09 Mar 1999 15:36:10 OS
+ #62742# Invalidate am Model rufen, nicht InitNewDoc
+
+ Rev 1.186 04 Feb 1999 11:22:14 ER
+ #61415# OfaMiscCfg nach SFX verschoben
+
+ Rev 1.185 02 Feb 1999 08:42:48 OS
+ #61027# zweistellige Jahreszahlen
+
+ Rev 1.184 01 Feb 1999 08:23:24 OS
+ #56371# unnoetigen include wieder raus
+
+ Rev 1.183 27 Jan 1999 09:51:54 OS
+ #56371# TF_ONE51
+
+ Rev 1.182 10 Dec 1998 15:55:18 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.181 25 Nov 1998 11:26:54 OS
+ #59240##59637# SubInitNew vor dem Import, kein style::TabStop fuer HTML
+
+ Rev 1.180 23 Nov 1998 16:12:16 OM
+ #58216# Verknuepfungsoptionen pro Dokument
+
+ Rev 1.179 11 Nov 1998 09:04:20 OS
+ #59240# keine Defaults fuer style::TabStop und Hyphenation in der WebDocShell
+
+ Rev 1.178 19 Aug 1998 15:18:28 OM
+ #55274# Default-Datenbanknamen am Dokument nur OnDemand setzen
+
+ Rev 1.177 24 Apr 1998 17:17:30 JP
+ Bug #49791#: nur auf OLE casten wenn auch OLE drin ist (und nicht Grafik)
+
+ Rev 1.176 21 Apr 1998 12:37:56 JP
+ Bug #47798#: GlobalDocument ohne Inhalt laden - nicht referenzierte Objecte loeschen
+
+ Rev 1.175 17 Feb 1998 09:19:04 TJ
+ IFDEF TF _STARONE
+
+ Rev 1.174 12 Feb 1998 15:00:10 OS
+ Model im Dtor invalidieren
+
+ Rev 1.173 11 Feb 1998 16:31:30 OS
+ SwXTextDocument wieder aktiv
+
+ Rev 1.172 04 Feb 1998 17:22:50 OS
+ SetModel erstmal raus
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/docst.cxx b/sw/source/ui/app/docst.cxx
new file mode 100644
index 000000000000..ba1cf1a974dc
--- /dev/null
+++ b/sw/source/ui/app/docst.cxx
@@ -0,0 +1,1450 @@
+/*************************************************************************
+ *
+ * $RCSfile: docst.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <hintids.hxx>
+
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFX_TEMPLDLG_HXX //autogen
+#include <sfx2/templdlg.hxx>
+#endif
+#ifndef _SFX_TPLPITEM_HXX //autogen
+#include <sfx2/tplpitem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _NEWSTYLE_HXX //autogen
+#include <sfx2/newstyle.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FCHRFMT_HXX //autogen
+#include <fchrfmt.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "docsh.hxx"
+#include "uitool.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "viewopt.hxx"
+#include "doc.hxx"
+#include "swstyle.h"
+#include "frmfmt.hxx"
+#include "charfmt.hxx"
+#include "poolfmt.hxx"
+#include "pagedesc.hxx"
+#include "tmpdlg.hxx"
+#include "docstyle.hxx"
+#include "uiitems.hxx"
+#include "fmtcol.hxx"
+#include "frmmgr.hxx" //SwFrmValid
+#include "swevent.hxx"
+#include "edtwin.hxx"
+
+#include "app.hrc"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+ USHORT nActualFamily = USHRT_MAX;
+
+ SwWrtShell* pShell = pSh ? pSh : GetWrtShell();
+ if(!pShell)
+ {
+ while (nWhich)
+ {
+ rSet.DisableItem(nWhich);
+ nWhich = aIter.NextWhich();
+ }
+ return;
+ }
+ else
+ {
+ SfxViewFrame* pFrame = pShell->GetView().GetViewFrame();
+ const ISfxTemplateCommon* pCommon = SFX_APP()->GetCurrentTemplateCommon(pFrame->GetBindings());
+ if( pCommon )
+ nActualFamily = pCommon->GetActualFamily();
+ }
+
+ while (nWhich)
+ {
+ // aktuelle Vorlage zu jeder Familie ermitteln
+ //
+ String aName;
+ switch (nWhich)
+ {
+ case SID_STYLE_APPLY:
+ {//hier wird die Vorlage und ihre Familie an die StyleBox
+ //uebergeben, damit diese Familie angezeigt wird
+ if(pShell->IsFrmSelected())
+ {
+ SwFrmFmt* pFmt = pShell->GetCurFrmFmt();
+ if( pFmt )
+ aName = pFmt->GetName();
+ }
+ else
+ {
+ SwTxtFmtColl* pColl = pShell->GetCurTxtFmtColl();
+ if(pColl)
+ aName = pColl->GetName();
+ }
+ rSet.Put(SfxTemplateItem(nWhich, aName));
+ }
+ break;
+ case SID_STYLE_FAMILY1:
+ if( !pShell->IsFrmSelected() )
+ {
+ SwCharFmt* pFmt = pShell->GetCurCharFmt();
+ if(pFmt)
+ aName = pFmt->GetName();
+ else
+ aName = *pShell->GetDoc()->GetTextNmArray()[
+ RES_POOLCOLL_STANDARD - RES_POOLCOLL_TEXT_BEGIN ];
+
+ rSet.Put(SfxTemplateItem(nWhich, aName));
+ }
+ break;
+
+ case SID_STYLE_FAMILY2:
+ if(!pShell->IsFrmSelected())
+ {
+ SwTxtFmtColl* pColl = pShell->GetCurTxtFmtColl();
+ if(pColl)
+ aName = pColl->GetName();
+
+ SfxTemplateItem aItem(nWhich, aName);
+
+ USHORT nMask = 0;
+ if( pDoc->IsHTMLMode() )
+ nMask = SWSTYLEBIT_HTML;
+ else
+ {
+ const int nSelection = pShell->GetFrmType(0,TRUE);
+ if(pShell->GetCurTOX())
+ nMask = SWSTYLEBIT_IDX ;
+ else if(nSelection & FRMTYPE_HEADER ||
+ nSelection & FRMTYPE_FOOTER ||
+ nSelection & FRMTYPE_TABLE ||
+ nSelection & FRMTYPE_FLY_ANY ||
+ nSelection & FRMTYPE_FOOTNOTE ||
+ nSelection & FRMTYPE_FTNPAGE)
+ nMask = SWSTYLEBIT_EXTRA;
+ else
+ nMask = SWSTYLEBIT_TEXT;
+ }
+
+ aItem.SetValue(nMask);
+ rSet.Put(aItem);
+ }
+ break;
+
+ case SID_STYLE_FAMILY3:
+
+ if( pDoc->IsHTMLMode() )
+ rSet.DisableItem( nWhich );
+ else
+ {
+ SwFrmFmt* pFmt = pShell->GetCurFrmFmt();
+ if(pFmt && pShell->IsFrmSelected())
+ {
+ aName = pFmt->GetName();
+ rSet.Put(SfxTemplateItem(nWhich, aName));
+ }
+ }
+ break;
+
+ case SID_STYLE_FAMILY4:
+ {
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ if( pDoc->IsHTMLMode() && !pHtmlOpt->IsPrintLayoutExtension())
+ rSet.DisableItem( nWhich );
+ else
+ {
+ USHORT n = pShell->GetCurPageDesc( FALSE );
+ if( n < pShell->GetPageDescCnt() )
+ aName = pShell->GetPageDesc( n ).GetName();
+
+ rSet.Put(SfxTemplateItem(nWhich, aName));
+ }
+ }
+ break;
+ case SID_STYLE_FAMILY5:
+ {
+ const SwNumRule* pRule = pShell->GetCurNumRule();
+ if( pRule )
+ aName = pRule->GetName();
+
+ rSet.Put(SfxTemplateItem(nWhich, aName));
+ }
+ break;
+
+ case SID_STYLE_WATERCAN:
+ {
+ SwEditWin& rEdtWin = pView->GetEditWin();
+ SwApplyTemplate* pApply = rEdtWin.GetApplyTemplate();
+ rSet.Put(SfxBoolItem(nWhich, pApply && pApply->eType != 0));
+ break;
+ }
+
+ case SID_STYLE_UPDATE_BY_EXAMPLE:
+ if( pShell->IsFrmSelected()
+ ? SFX_STYLE_FAMILY_FRAME != nActualFamily
+ : ( SFX_STYLE_FAMILY_FRAME == nActualFamily ||
+ SFX_STYLE_FAMILY_PAGE == nActualFamily ||
+ (SFX_STYLE_FAMILY_PSEUDO == nActualFamily && !pShell->GetCurNumRule())) )
+ {
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ case SID_STYLE_NEW_BY_EXAMPLE:
+ if( (pShell->IsFrmSelected()
+ ? SFX_STYLE_FAMILY_FRAME != nActualFamily
+ : SFX_STYLE_FAMILY_FRAME == nActualFamily) ||
+ (SFX_STYLE_FAMILY_PSEUDO == nActualFamily && !pShell->GetCurNumRule()) )
+ {
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ default:
+ DBG_ERROR( "Invalid SlotId");
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: StyleSheet-Requeste auswerten
+ --------------------------------------------------------------------*/
+
+
+void SwDocShell::ExecStyleSheet( SfxRequest& rReq )
+{
+ USHORT nSlot = rReq.GetSlot();
+ USHORT nRet = 0xffff;
+
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ SwWrtShell* pActShell = 0;
+ SFX_APP()->GetOptions().SetMetric(::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, this)));
+ BOOL bSetReturn = TRUE;
+ switch (nSlot)
+ {
+ case SID_STYLE_NEW:
+ if( pArgs && SFX_ITEM_SET == pArgs->GetItemState( SID_STYLE_FAMILY,
+ FALSE, &pItem ))
+ {
+ USHORT nFamily = ((const SfxUInt16Item*)pItem)->GetValue();
+
+ String sName;
+ USHORT nMask = 0;
+ if( SFX_ITEM_SET == pArgs->GetItemState( SID_STYLE_NEW,
+ FALSE, &pItem ))
+ sName = ((const SfxStringItem*)pItem)->GetValue();
+ if( SFX_ITEM_SET == pArgs->GetItemState( SID_STYLE_MASK,
+ FALSE, &pItem ))
+ nMask = ((const SfxUInt16Item*)pItem)->GetValue();
+ String sParent;
+ if( SFX_ITEM_SET == pArgs->GetItemState( SID_STYLE_REFERENCE,
+ FALSE, &pItem ))
+ sParent = ((const SfxStringItem*)pItem)->GetValue();
+
+ nRet = Edit( sName, sParent, nFamily, nMask, TRUE, FALSE, 0, rReq.IsAPI() );
+ }
+ break;
+
+ case SID_STYLE_APPLY:
+ if( !pArgs )
+ {
+ GetView()->GetViewFrame()->GetDispatcher()->Execute(SID_STYLE_DESIGNER, FALSE);
+ break;
+ } // Fall through
+ case SID_STYLE_EDIT:
+ case SID_STYLE_DELETE:
+ case SID_STYLE_WATERCAN:
+ case SID_STYLE_FAMILY:
+ case SID_STYLE_UPDATE_BY_EXAMPLE:
+ case SID_STYLE_NEW_BY_EXAMPLE:
+ {
+ String aParam;
+ USHORT nFamily, nMask = 0;
+
+ if( !pArgs )
+ {
+ nFamily = SFX_STYLE_FAMILY_PARA;
+
+ switch (nSlot)
+ {
+ case SID_STYLE_NEW_BY_EXAMPLE:
+ {
+ SfxNewStyleDlg *pDlg = new SfxNewStyleDlg( 0,
+ *GetStyleSheetPool());
+ if(RET_OK == pDlg->Execute())
+ aParam = pDlg->GetName();
+ delete pDlg;
+ }
+ break;
+
+ case SID_STYLE_UPDATE_BY_EXAMPLE:
+ case SID_STYLE_EDIT:
+ {
+ SwTxtFmtColl* pColl = GetWrtShell()->GetCurTxtFmtColl();
+ if(pColl)
+ {
+ aParam = pColl->GetName();
+ rReq.AppendItem(SfxStringItem(nSlot, aParam));
+ }
+ }
+ break;
+ }
+ }
+ else
+ {
+ ASSERT( pArgs->Count(), "SfxBug ItemSet ist leer");
+
+ SwWrtShell* pShell = GetWrtShell();
+ if( SFX_ITEM_SET == pArgs->GetItemState(nSlot, FALSE, &pItem ))
+ aParam = ((const SfxStringItem*)pItem)->GetValue();
+
+ if( SFX_ITEM_SET == pArgs->GetItemState(SID_STYLE_FAMILY,
+ FALSE, &pItem ))
+ nFamily = ((const SfxUInt16Item*)pItem)->GetValue();
+
+ if( SFX_ITEM_SET == pArgs->GetItemState(SID_STYLE_MASK,
+ FALSE, &pItem ))
+ nMask = ((const SfxUInt16Item*)pItem)->GetValue();
+ if( SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_WRTSHELL,
+ FALSE, &pItem ))
+ pActShell = pShell = (SwWrtShell*)((SwPtrItem*)pItem)->GetValue();
+
+ if( nSlot == SID_STYLE_UPDATE_BY_EXAMPLE )
+ {
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ SwTxtFmtColl* pColl = pShell->GetCurTxtFmtColl();
+ if(pColl)
+ aParam = pColl->GetName();
+ }
+ break;
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ SwFrmFmt* pFrm = pWrtShell->GetCurFrmFmt();
+ if( pFrm )
+ aParam = pFrm->GetName();
+ }
+ break;
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ SwCharFmt* pChar = pWrtShell->GetCurCharFmt();
+ if( pChar )
+ aParam = pChar->GetName();
+ }
+ break;
+ case SFX_STYLE_FAMILY_PSEUDO:
+ if(SFX_ITEM_SET == pArgs->GetItemState(SID_STYLE_UPD_BY_EX_NAME, FALSE, &pItem))
+ {
+ aParam = ((const SfxStringItem*)pItem)->GetValue();
+ }
+ break;
+ }
+ rReq.AppendItem(SfxStringItem(nSlot, aParam));
+ }
+ }
+ if (aParam.Len() || nSlot == SID_STYLE_WATERCAN )
+ {
+ switch(nSlot)
+ {
+ case SID_STYLE_EDIT:
+ nRet = Edit(aParam, aEmptyStr, nFamily, nMask, FALSE, FALSE, pActShell );
+ break;
+ case SID_STYLE_DELETE:
+ nRet = Delete(aParam, nFamily);
+ break;
+ case SID_STYLE_APPLY:
+ // Shellwechsel in ApplyStyles
+ nRet = ApplyStyles(aParam, nFamily, pActShell,
+ rReq.GetModifier() );
+ // nur, wenn es kein API-Call war
+ if(!pActShell)
+ pView->GetEditWin().GrabFocus();
+ break;
+ case SID_STYLE_WATERCAN:
+ nRet = DoWaterCan(aParam, nFamily);
+ break;
+ case SID_STYLE_UPDATE_BY_EXAMPLE:
+ nRet = UpdateStyle(aParam, nFamily, pActShell);
+ break;
+ case SID_STYLE_NEW_BY_EXAMPLE:
+ {
+ nRet = MakeByExample(aParam, nFamily, nMask, pActShell );
+ SfxTemplateDialog* pDlg = SFX_APP()->GetTemplateDialog();
+
+ if(pDlg && pDlg->IsVisible())
+ pDlg->Update();
+ }
+ break;
+
+ default:
+ DBG_ERROR( "Falsche Slot-Id");
+ }
+ }
+ break;
+ }
+ }
+
+ if(bSetReturn)
+ {
+ if(rReq.IsAPI()) // Basic bekommt nur TRUE oder FALSE
+ rReq.SetReturnValue(SfxUInt16Item(nSlot, nRet !=0));
+ else
+ rReq.SetReturnValue(SfxUInt16Item(nSlot, nRet));
+ }
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Edit
+ --------------------------------------------------------------------*/
+
+
+USHORT SwDocShell::Edit( const String &rName, const String &rParent, USHORT nFamily, USHORT nMask,
+ BOOL bNew, BOOL bColumn, SwWrtShell* pActShell,
+ BOOL bBasic )
+{
+ ASSERT(GetWrtShell(), "Keine Shell, keine Styles");
+ SfxStyleSheetBase *pStyle = 0;
+ SFX_APP()->GetOptions().SetMetric(::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, this)));
+
+ USHORT nRet = nMask;
+ BOOL bModified = pDoc->IsModified();
+
+ if( bNew )
+ {
+ if( SFXSTYLEBIT_ALL != nMask && SFXSTYLEBIT_USED != nMask )
+ nMask |= SFXSTYLEBIT_USERDEF;
+ else
+ nMask = SFXSTYLEBIT_USERDEF;
+
+ pStyle = &pBasePool->Make( rName, (SfxStyleFamily)nFamily, nMask );
+
+ // die aktuellen als Parent setzen
+ SwDocStyleSheet* pDStyle = (SwDocStyleSheet*)pStyle;
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ if(rParent.Len())
+ {
+ SwTxtFmtColl* pColl = pWrtShell->FindTxtFmtCollByName( rParent );
+ pDStyle->GetCollection()->SetDerivedFrom( pColl );
+ pDStyle->PresetParent( rParent );
+ }
+ else
+ {
+ SwTxtFmtColl* pColl = pWrtShell->GetCurTxtFmtColl();
+ pDStyle->GetCollection()->SetDerivedFrom( pColl );
+ if( pColl )
+ pDStyle->PresetParent( pColl->GetName() );
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ if(rParent.Len())
+ {
+ SwCharFmt* pCFmt = pWrtShell->FindCharFmtByName( rParent );
+
+ pDStyle->GetCharFmt()->SetDerivedFrom( pCFmt );
+ pDStyle->PresetParent( rParent );
+ }
+ else
+ {
+ SwCharFmt* pCFmt = pWrtShell->GetCurCharFmt();
+ pDStyle->GetCharFmt()->SetDerivedFrom( pCFmt );
+ if( pCFmt )
+ pDStyle->PresetParent( pCFmt->GetName() );
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_FRAME :
+ {
+ if(rParent.Len())
+ {
+ SwFrmFmt* pFFmt = pWrtShell->GetDoc()->FindFrmFmtByName( rParent );
+ pDStyle->GetFrmFmt()->SetDerivedFrom( pFFmt );
+ pDStyle->PresetParent( rParent );
+ }
+ }
+ break;
+ }
+ }
+ else
+ {
+ pStyle = pBasePool->Find( rName, (SfxStyleFamily)nFamily );
+ ASSERT(pStyle, "Vorlage nicht gefunden");
+ }
+
+ if(!pStyle)
+ return FALSE;
+
+ // Dialoge zusammenstoepseln
+ //
+ SwDocStyleSheet aTmp( *(SwDocStyleSheet*)pStyle );
+ if( SFX_STYLE_FAMILY_PARA == nFamily )
+ {
+ SfxItemSet& rSet = aTmp.GetItemSet();
+ ::SwToSfxPageDescAttr( rSet );
+ // erstmal nur eine Null
+ rSet.Put(SwBackgroundDestinationItem(SID_PARA_BACKGRND_DESTINATION, 0));
+ }
+/* else if( SFX_STYLE_FAMILY_FRAME == nFamily )
+ {
+ // Auskommentiert wegen Bug #45776 (per default keine Breite&Groesse in Rahmenvorlagen)
+ SfxItemSet& rSet = aTmp.GetItemSet();
+ if( SFX_ITEM_SET != rSet.GetItemState( RES_FRM_SIZE ))
+ {
+ // dann sollten wir spaetesten hier eines anlegen
+ SwFrmValid aFrmDefValues;
+ rSet.Put( SwFmtFrmSize( ATT_VAR_SIZE, aFrmDefValues.nWidth,
+ aFrmDefValues.nHeight ));
+ }
+ }*/
+ else if( SFX_STYLE_FAMILY_CHAR == nFamily )
+ {
+ SfxItemSet& rSet = aTmp.GetItemSet();
+ const SfxPoolItem *pTmpBrush;
+ if( SFX_ITEM_SET == rSet.GetItemState( RES_CHRATR_BACKGROUND,
+ TRUE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_BACKGROUND );
+ rSet.Put( aTmpBrush );
+ }
+ }
+ if (!bBasic)
+ {
+ // vor dem Dialog wird der HtmlMode an der DocShell versenkt
+ PutItem(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(this)));
+ SwTemplateDlg* pDlg = new SwTemplateDlg( 0, aTmp, nFamily, bColumn,
+ pActShell ? pActShell : pWrtShell, bNew);
+ if(RET_OK == pDlg->Execute())
+ {
+ GetWrtShell()->StartAllAction();
+
+ // nur bei Absatz-Vorlagen die Maske neu setzen
+ if( bNew )
+ {
+ nRet = SFX_STYLE_FAMILY_PARA == pStyle->GetFamily()
+ ? aTmp.GetMask()
+ : SFXSTYLEBIT_USERDEF;
+ }
+ else if( pStyle->GetMask() != aTmp.GetMask() )
+ nRet = aTmp.GetMask();
+
+ if( SFX_STYLE_FAMILY_PARA == nFamily )
+ {
+ SfxItemSet aSet( *pDlg->GetOutputItemSet() );
+ ::SfxToSwPageDescAttr( *GetWrtShell(), aSet );
+ aTmp.SetItemSet( aSet );
+ }
+ else
+ {
+ SfxItemSet aTmpSet( *pDlg->GetOutputItemSet() );
+ if( SFX_STYLE_FAMILY_CHAR == nFamily )
+ {
+ const SfxPoolItem *pTmpBrush;
+ if( SFX_ITEM_SET == aTmpSet.GetItemState( RES_BACKGROUND,
+ FALSE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_CHRATR_BACKGROUND );
+ aTmpSet.Put( aTmpBrush );
+ }
+ aTmpSet.ClearItem( RES_BACKGROUND );
+ }
+ aTmp.SetItemSet( aTmpSet );
+ }
+ if(SFX_STYLE_FAMILY_PAGE == nFamily)
+ pView->InvalidateRulerPos();
+
+ if( bNew )
+ pBasePool->Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_CREATED, aTmp ) );
+
+ // JP 19.09.97:
+ // Dialog vorm EndAction zerstoeren - bei Seitenvorlagen kann
+ // muss der ItemSet zerstoert werden, damit die Cursor aus den
+ // Kopf-/Fusszeilen entfernt werden. Sonst kommts zu GPFs!!!
+ delete pDlg;
+
+ pDoc->SetModified();
+ if( !bModified ) // Bug 57028
+ pDoc->SetUndoNoResetModified();
+
+ GetWrtShell()->EndAllAction();
+ }
+ else
+ {
+ if( bNew )
+ pBasePool->Erase( &aTmp );
+ if( !bModified )
+ pDoc->ResetModified();
+ delete pDlg;
+ }
+ }
+ else
+ {
+ // vor dem Dialog wird der HtmlMode an der DocShell versenkt
+ PutItem(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(this)));
+
+ GetWrtShell()->StartAllAction();
+
+ // nur bei Absatz-Vorlagen die Maske neu setzen
+ if( bNew )
+ {
+ nRet = SFX_STYLE_FAMILY_PARA == pStyle->GetFamily()
+ ? aTmp.GetMask()
+ : SFXSTYLEBIT_USERDEF;
+ }
+ else if( pStyle->GetMask() != aTmp.GetMask() )
+ nRet = aTmp.GetMask();
+
+ if( SFX_STYLE_FAMILY_PARA == nFamily )
+ ::SfxToSwPageDescAttr( *GetWrtShell(), aTmp.GetItemSet() );
+ else
+ {
+ SfxItemSet aTmpSet( aTmp.GetItemSet() );
+ if( SFX_STYLE_FAMILY_CHAR == nFamily )
+ {
+ const SfxPoolItem *pTmpBrush;
+ if( SFX_ITEM_SET == aTmpSet.GetItemState( RES_BACKGROUND,
+ FALSE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_CHRATR_BACKGROUND );
+ aTmpSet.Put( aTmpBrush );
+ }
+ aTmpSet.ClearItem( RES_BACKGROUND );
+ }
+ aTmp.SetItemSet( aTmpSet );
+ }
+ if(SFX_STYLE_FAMILY_PAGE == nFamily)
+ pView->InvalidateRulerPos();
+
+ if( bNew )
+ pBasePool->Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_CREATED, aTmp ) );
+
+ pDoc->SetModified();
+ if( !bModified ) // Bug 57028
+ pDoc->SetUndoNoResetModified();
+ GetWrtShell()->EndAllAction();
+ }
+
+ return nRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Delete
+ --------------------------------------------------------------------*/
+
+
+USHORT SwDocShell::Delete(const String &rName, USHORT nFamily)
+{
+ SfxStyleSheetBase *pStyle = pBasePool->Find(rName, (SfxStyleFamily)nFamily);
+
+ if(pStyle)
+ {
+ ASSERT(GetWrtShell(), "Keine Shell, keine Styles");
+
+ GetWrtShell()->StartAllAction();
+ pBasePool->Erase(pStyle);
+ GetWrtShell()->EndAllAction();
+
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Vorlage anwenden
+ --------------------------------------------------------------------*/
+
+
+USHORT SwDocShell::ApplyStyles(const String &rName, USHORT nFamily,
+ SwWrtShell* pShell, USHORT nMode )
+{
+ SwDocStyleSheet* pStyle =
+ (SwDocStyleSheet*)pBasePool->Find(rName, (SfxStyleFamily)nFamily);
+
+ ASSERT(pStyle, "Wo ist der StyleSheet");
+ if(!pStyle)
+ return FALSE;
+
+ SwWrtShell *pSh = pShell ? pShell : GetWrtShell();
+
+ ASSERT( pSh, "Keine Shell, keine Styles");
+
+ pSh->StartAllAction();
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ SwFmtCharFmt aFmt(pStyle->GetCharFmt());
+ pSh->SetAttr( aFmt, (nMode & KEY_SHIFT) ? SETATTR_DONTREPLACE : SETATTR_DEFAULT );
+ break;
+ }
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ pSh->SetTxtFmtColl(pStyle->GetCollection());
+ break;
+ }
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ if ( pSh->IsFrmSelected() )
+ pSh->SetFrmFmt( pStyle->GetFrmFmt() );
+ break;
+ }
+ case SFX_STYLE_FAMILY_PAGE:
+ {
+ pSh->SetPageStyle(pStyle->GetPageDesc()->GetName());
+ break;
+ }
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ pSh->SetCurNumRule( *pStyle->GetNumRule() );
+ break;
+ }
+ default:
+ DBG_ERROR("Unbekannte Familie");
+ }
+ pSh->EndAllAction();
+
+ return nFamily;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Giesskanne starten
+ --------------------------------------------------------------------*/
+
+
+
+USHORT SwDocShell::DoWaterCan(const String &rName, USHORT nFamily)
+{
+ ASSERT(GetWrtShell(), "Keine Shell, keine Styles");
+
+ SwEditWin& rEdtWin = pView->GetEditWin();
+ SwApplyTemplate* pApply = rEdtWin.GetApplyTemplate();
+ BOOL bWaterCan = !(pApply && pApply->eType != 0);
+ if( !rName.Len() )
+ bWaterCan = FALSE;
+ SwApplyTemplate aTemplate;
+ aTemplate.eType = nFamily;
+
+ if(bWaterCan)
+ {
+ SwDocStyleSheet* pStyle =
+ (SwDocStyleSheet*)pBasePool->Find(rName, (SfxStyleFamily)nFamily);
+
+ ASSERT(pStyle, "Wo ist der StyleSheet");
+ if(!pStyle) return nFamily;
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ aTemplate.aColl.pCharFmt = pStyle->GetCharFmt();
+ break;
+ case SFX_STYLE_FAMILY_PARA:
+ aTemplate.aColl.pTxtColl = pStyle->GetCollection();
+ break;
+ case SFX_STYLE_FAMILY_FRAME:
+ aTemplate.aColl.pFrmFmt = pStyle->GetFrmFmt();
+ break;
+ case SFX_STYLE_FAMILY_PAGE:
+ aTemplate.aColl.pPageDesc = (SwPageDesc*)pStyle->GetPageDesc();
+ break;
+ case SFX_STYLE_FAMILY_PSEUDO:
+ aTemplate.aColl.pNumRule = (SwNumRule*)pStyle->GetNumRule();
+ break;
+
+ default:
+ DBG_ERROR( "Unbekannte Familie");
+ }
+ }
+ else
+ aTemplate.eType = 0;
+
+ // Template anwenden
+ pView->GetEditWin().SetApplyTemplate(aTemplate);
+
+ return nFamily;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Vorlage Updaten
+ --------------------------------------------------------------------*/
+
+
+USHORT SwDocShell::UpdateStyle(const String &rName, USHORT nFamily, SwWrtShell* pShell)
+{
+ SwWrtShell* pWrtShell = pShell ? pShell : GetWrtShell();
+ ASSERT(GetWrtShell(), "Keine Shell, keine Styles");
+
+ SwDocStyleSheet* pStyle =
+ (SwDocStyleSheet*)pBasePool->Find(rName, (SfxStyleFamily)nFamily);
+
+ if(!pStyle)
+ return nFamily;
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ SwTxtFmtColl* pColl = pStyle->GetCollection();
+ if(pColl && !pColl->IsDefault())
+ {
+ GetWrtShell()->StartAllAction();
+ GetWrtShell()->FillByEx(pColl);
+ // Vorlage auch anwenden, um harte Attributierung
+ // zu entfernen
+ GetWrtShell()->SetTxtFmtColl( pColl );
+ GetWrtShell()->EndAllAction();
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ SwFrmFmt* pFrm = pStyle->GetFrmFmt();
+ if( pWrtShell->IsFrmSelected() && pFrm && !pFrm->IsDefault() )
+ {
+ SfxItemSet aSet( GetPool(), aFrmFmtSetRange );
+ pWrtShell->StartAllAction();
+ pWrtShell->GetFlyFrmAttr( aSet );
+
+ // JP 10.06.98: nur automatische Orientierungen uebernehmen
+/* #61359# jetzt auch wieder alle Orientierungen
+ * const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == aSet.GetItemState( RES_VERT_ORIENT,
+ FALSE, &pItem ) &&
+ VERT_NONE == ((SwFmtVertOrient*)pItem)->GetVertOrient())
+ aSet.ClearItem( RES_VERT_ORIENT );
+
+ if( SFX_ITEM_SET == aSet.GetItemState( RES_HORI_ORIENT,
+ FALSE, &pItem ) &&
+ HORI_NONE == ((SwFmtHoriOrient*)pItem)->GetHoriOrient())
+ aSet.ClearItem( RES_HORI_ORIENT );*/
+
+ pFrm->SetAttr( aSet );
+
+ // Vorlage auch anwenden, um harte Attributierung
+ // zu entfernen
+ pWrtShell->SetFrmFmt( pFrm, TRUE );
+ pWrtShell->EndAllAction();
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ SwCharFmt* pChar = pStyle->GetCharFmt();
+ if( pChar && !pChar->IsDefault() )
+ {
+ pWrtShell->StartAllAction();
+ pWrtShell->FillByEx(pChar);
+ // Vorlage auch anwenden, um harte Attributierung
+ // zu entfernen
+ pWrtShell->EndAllAction();
+ }
+
+ }
+ break;
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ const SwNumRule* pCurRule;
+ if( pStyle->GetNumRule() &&
+ 0 != ( pCurRule = pWrtShell->GetCurNumRule() ))
+ {
+ SwNumRule aRule( *pCurRule );
+ aRule.SetName( pStyle->GetNumRule()->GetName() );
+ pWrtShell->ChgNumRuleFmts( aRule );
+ }
+ }
+ break;
+ }
+ return nFamily;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: NewByExample
+ --------------------------------------------------------------------*/
+
+
+USHORT SwDocShell::MakeByExample( const String &rName, USHORT nFamily,
+ USHORT nMask, SwWrtShell* pShell )
+{
+ SwWrtShell* pWrtShell = pShell ? pShell : GetWrtShell();
+ SwDocStyleSheet* pStyle = (SwDocStyleSheet*)pBasePool->Find(
+ rName, (SfxStyleFamily)nFamily );
+ if(!pStyle)
+ {
+ // JP 07.07.95: behalte die akt. Maske vom PI bei, dadurch werden
+ // neue sofort in den sichtbaren Bereich einsortiert
+ if( SFXSTYLEBIT_ALL == nMask || SFXSTYLEBIT_USED == nMask )
+ nMask = SFXSTYLEBIT_USERDEF;
+ else
+ nMask |= SFXSTYLEBIT_USERDEF;
+
+ pStyle = (SwDocStyleSheet*)&pBasePool->Make(rName,
+ (SfxStyleFamily)nFamily, nMask );
+ }
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ SwTxtFmtColl* pColl = pStyle->GetCollection();
+ if(pColl && !pColl->IsDefault())
+ {
+ pWrtShell->StartAllAction();
+ pWrtShell->FillByEx(pColl);
+ // Vorlage auch anwenden, um harte Attributierung
+ // zu entfernen
+ pColl->SetDerivedFrom(pWrtShell->GetCurTxtFmtColl());
+
+ // setze die Maske noch an der Collection:
+ USHORT nId = pColl->GetPoolFmtId() & 0x87ff;
+ switch( nMask & 0x0fff )
+ {
+ case SWSTYLEBIT_TEXT:
+ nId |= COLL_TEXT_BITS;
+ break;
+ case SWSTYLEBIT_CHAPTER:
+ nId |= COLL_DOC_BITS;
+ break;
+ case SWSTYLEBIT_LIST:
+ nId |= COLL_LISTS_BITS;
+ break;
+ case SWSTYLEBIT_IDX:
+ nId |= COLL_REGISTER_BITS;
+ break;
+ case SWSTYLEBIT_EXTRA:
+ nId |= COLL_EXTRA_BITS;
+ break;
+ case SWSTYLEBIT_HTML:
+ nId |= COLL_HTML_BITS;
+ break;
+ }
+ pColl->SetPoolFmtId(nId);
+
+ pWrtShell->SetTxtFmtColl(pColl);
+ pWrtShell->EndAllAction();
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ SwFrmFmt* pFrm = pStyle->GetFrmFmt();
+ if(pWrtShell->IsFrmSelected() && pFrm && !pFrm->IsDefault())
+ {
+ pWrtShell->StartAllAction();
+
+ SfxItemSet aSet(GetPool(), aFrmFmtSetRange );
+ pWrtShell->GetFlyFrmAttr( aSet );
+
+ // JP 10.06.98: nur automatische Orientierungen uebernehmen
+/* #61359# jetzt auch wieder alle Orientierungen
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == aSet.GetItemState( RES_VERT_ORIENT,
+ FALSE, &pItem ) &&
+ VERT_NONE == ((SwFmtVertOrient*)pItem)->GetVertOrient())
+ aSet.ClearItem( RES_VERT_ORIENT );
+
+ if( SFX_ITEM_SET == aSet.GetItemState( RES_HORI_ORIENT,
+ FALSE, &pItem ) &&
+ HORI_NONE == ((SwFmtHoriOrient*)pItem)->GetHoriOrient())
+ aSet.ClearItem( RES_HORI_ORIENT );
+ */
+
+ pFrm->SetAttr( aSet );
+ // Vorlage auch anwenden, um harte Attributierung
+ // zu entfernen
+ pWrtShell->SetFrmFmt( pFrm );
+ pWrtShell->EndAllAction();
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ SwCharFmt* pChar = pStyle->GetCharFmt();
+ if(pChar && !pChar->IsDefault())
+ {
+ pWrtShell->StartAllAction();
+ pWrtShell->FillByEx( pChar );
+ pChar->SetDerivedFrom( pWrtShell->GetCurCharFmt() );
+ SwFmtCharFmt aFmt( pChar );
+ pWrtShell->SetAttr( aFmt );
+ pWrtShell->EndAllAction();
+ }
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ {
+ pWrtShell->StartAllAction();
+ USHORT nPgDsc = pWrtShell->GetCurPageDesc();
+ SwPageDesc& rSrc = (SwPageDesc&)pWrtShell->GetPageDesc( nPgDsc );
+ SwPageDesc& rDest = *(SwPageDesc*)pStyle->GetPageDesc();
+
+ USHORT nPoolId = rDest.GetPoolFmtId();
+ USHORT nHId = rDest.GetPoolHelpId();
+ BYTE nHFId = rDest.GetPoolHlpFileId();
+
+ pWrtShell->GetDoc()->CopyPageDesc( rSrc, rDest );
+
+ // PoolId darf NIE kopiert werden!
+ rDest.SetPoolFmtId( nPoolId );
+ rDest.SetPoolHelpId( nHId );
+ rDest.SetPoolHlpFileId( nHFId );
+
+ // werden Kopf-/Fusszeilen angelegt, so gibt es kein Undo mehr!
+ pWrtShell->GetDoc()->DelAllUndoObj();
+
+ pWrtShell->EndAllAction();
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ pWrtShell->StartAllAction();
+
+ SwNumRule aRule( *pWrtShell->GetCurNumRule() );
+ String sOrigRule( aRule.GetName() );
+ aRule.SetName( pStyle->GetNumRule()->GetName() );
+ pWrtShell->ChgNumRuleFmts( aRule );
+
+ pWrtShell->ReplaceNumRule( sOrigRule, aRule.GetName() );
+
+
+ pWrtShell->EndAllAction();
+ }
+ break;
+ }
+ return nFamily;
+}
+
+
+
+void SwDocShell::LoadStyles( SfxObjectShell& rSource )
+{
+/* [Beschreibung]
+
+ Diese Methode wird vom SFx gerufen, wenn aus einer Dokument-Vorlage
+ Styles nachgeladen werden sollen. Bestehende Styles soll dabei
+ "uberschrieben werden. Das Dokument mu"s daher neu formatiert werden.
+ Daher werden die Applikationen in der Regel diese Methode "uberladen
+ und in ihrer Implementierung die Implementierung der Basisklasse
+ rufen.
+*/
+ // ist die Source unser Document, dann uebernehmen wir das
+ // abpruefen selbst (wesentlich schneller und laeuft nicht ueber
+ // die Kruecke SfxStylePool
+ if( rSource.ISA( SwDocShell ))
+ {
+ //JP 28.05.99: damit die Kopf-/Fusszeilen nicht den fixen Inhalt
+ // der Vorlage erhalten, einmal alle FixFelder der
+ // Source aktualisieren
+ ((SwDocShell&)rSource).pDoc->SetFixFields();
+ if( pWrtShell )
+ {
+ pWrtShell->StartAllAction();
+ pDoc->ReplaceStyles( *((SwDocShell&)rSource).pDoc );
+ pWrtShell->EndAllAction();
+ }
+ else
+ {
+ BOOL bModified = pDoc->IsModified();
+ pDoc->ReplaceStyles( *((SwDocShell&)rSource).pDoc );
+ if( !bModified && pDoc->IsModified() && !pView )
+ {
+ // die View wird spaeter angelegt, ueberschreibt aber das
+ // Modify-Flag. Per Undo ist sowieso nichts mehr zu machen
+ pDoc->SetUndoNoResetModified();
+ }
+ }
+ }
+ else
+ SfxObjectShell::LoadStyles( rSource );
+}
+
+
+void SwDocShell::FormatPage( const String& rPage, BOOL bColumn, SwWrtShell* pActShell )
+{
+ Edit( rPage, aEmptyStr, SFX_STYLE_FAMILY_PAGE, 0, FALSE, bColumn, pActShell);
+}
+
+Bitmap __EXPORT SwDocShell::GetStyleFamilyBitmap( SfxStyleFamily eFamily )
+{
+ if( SFX_STYLE_FAMILY_PSEUDO == eFamily )
+ return Bitmap( SW_RES( BMP_STYLES_FAMILY_NUM ));
+ return SfxObjectShell::GetStyleFamilyBitmap( eFamily );
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.149 2000/09/18 16:05:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.148 2000/09/07 15:59:20 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.147 2000/07/07 13:26:09 jp
+ must changes VCL
+
+ Revision 1.146 2000/05/26 07:21:28 os
+ old SW Basic API Slots removed
+
+ Revision 1.145 2000/04/20 12:53:37 os
+ GetName() returns String&
+
+ Revision 1.144 2000/02/11 14:42:41 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.143 1999/11/29 17:25:33 jp
+ some changes for the compat. attribut
+
+ Revision 1.142 1999/06/09 17:34:54 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+
+ Rev 1.141 09 Jun 1999 19:34:54 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.140 28 May 1999 10:24:20 JP
+ zu Bug #66327#: LoadStyles - FixFelder aktualisieren
+
+ Rev 1.139 22 Feb 1999 11:28:06 OS
+ #61359# freie Positionierung von Rahmen auch fuer Vorlagen wieder erlaubt
+
+ Rev 1.138 27 Nov 1998 14:49:04 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.137 23 Oct 1998 13:17:20 OS
+ #44617# Parentvorlage fuer SID_NEW_STYLE aus dem Gestalter
+
+ Rev 1.136 24 Sep 1998 11:55:30 JP
+ Bug #57028#: ggfs. das Undo veranlassen, kein Modified zurueck zu setzen
+
+ Rev 1.135 08 Sep 1998 18:00:36 OS
+ #56134# Metric fuer Text und HTML getrennt - auch im ::Edit
+
+ Rev 1.134 08 Sep 1998 16:48:20 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.133 17 Aug 1998 16:06:36 OS
+ GPF nach Shellwechsel waehrend Recording #55041#
+
+ Rev 1.132 27 Jul 1998 16:55:20 JP
+ Bug #45529#: LoadStyles muss ggfs. das Zuruecksetzen des ModifiedFlags verhindern
+
+ Rev 1.131 26 Jun 1998 17:36:46 OS
+ SwBGDestItem mit Which #51751#
+
+ Rev 1.130 17 Jun 1998 18:19:46 OS
+ SwBackgroundDestinationItem
+
+ Rev 1.129 17 Jun 1998 08:34:34 OS
+ im UpdateByExample sel. Eintrag mit eigener Id mitschicken #51141#
+
+ Rev 1.128 10 Jun 1998 14:51:40 JP
+ SetFrmFmt: zusaetzlicher Parameter - Orientierung beibehalten
+
+ Rev 1.127 16 Apr 1998 16:00:42 OS
+ Printing extensions fuer HTML
+
+ Rev 1.126 31 Mar 1998 10:20:36 OM
+ #45776 Per default kein Size-Item in Rahmenvorlagen
+
+ Rev 1.125 14 Mar 1998 13:06:44 OS
+ Chg: GetCurrentTemplateCommen mit SfxBindings&
+
+ Rev 1.124 20 Jan 1998 15:31:52 OS
+ RES_CHRATR:BACKGROUND hat jetzt SlotId
+
+ Rev 1.123 08 Jan 1998 12:55:08 OS
+ Zeichenhintergrund auch im Absatzformatdialog editierbar #46180#
+
+ Rev 1.122 06 Jan 1998 07:27:08 OS
+ New/UpdateByExample fuer Numererierung nur wenn sie gesetzt ist erlauben #46348#
+
+ Rev 1.121 09 Dec 1997 16:50:20 JP
+ neu: ReplaceNumRule fuer MakeByExample fuer NumerierungsVorlagen
+
+ Rev 1.120 04 Dec 1997 12:27:58 OS
+ Edit/FormatPage: WrtShell nicht mehr const
+
+ Rev 1.119 24 Nov 1997 16:57:24 JP
+ GetState: String in der Schleife anlegen
+
+ Rev 1.118 24 Nov 1997 14:22:38 MA
+ includes
+
+ Rev 1.117 17 Nov 1997 10:20:10 JP
+ Umstellung Numerierung
+
+ Rev 1.116 11 Nov 1997 13:22:14 JP
+ neu: NumRule-Vorlage
+
+ Rev 1.115 05 Nov 1997 09:33:30 JP
+ Bug #45341#: SetItemSet nie mit dem eigenen ItemSet aufrufen
+
+ Rev 1.114 19 Sep 1997 14:31:24 JP
+ GPF beim Abschalten der Kopf-/Fusszeilen behoben
+
+ Rev 1.113 04 Sep 1997 17:13:36 MA
+ includes
+
+ Rev 1.112 03 Sep 1997 15:53:52 OS
+ DLL-Umbau
+
+ Rev 1.111 21 Aug 1997 16:09:10 OS
+ Return fuer Basic nur noch Null und Eins #43004#
+
+ Rev 1.110 15 Aug 1997 11:45:06 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.109 12 Aug 1997 15:58:36 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.108 08 Aug 1997 17:26:42 OM
+ Headerfile-Umstellung
+
+ Rev 1.107 07 Aug 1997 14:59:24 OM
+ Headerfile-Umstellung
+
+ Rev 1.106 01 Aug 1997 17:03:30 OM
+ Basic: NewStyle ohne Dialog ausfuehren
+
+ Rev 1.105 31 Jul 1997 10:13:54 OM
+ #42247# Template-GPF behoben
+
+ Rev 1.104 15 Jul 1997 11:34:20 OS
+ MacroName auch als sub(lib.module)
+
+ Rev 1.103 05 Jul 1997 09:57:26 OS
+ Macro und Script an Rahmenvorlagen setzen/lesen
+
+ Rev 1.102 18 Jun 1997 10:47:58 JP
+ GetStateStyleSheet: der Stylist gibt die Family vor, NIE selbst bestimmen
+
+ Rev 1.101 16 Jun 1997 15:50:26 MA
+ #40739# kein Anchor bei UpdateByExample
+
+ Rev 1.100 28 May 1997 08:15:36 OS
+ Metric fuer Dialog nicht in der Statusmethode setzen, sondern im Execute
+
+ Rev 1.99 21 Feb 1997 15:31:20 OS
+ Watercan ueber den Pointer am EditWin erkennen
+
+ Rev 1.98 19 Feb 1997 15:47:00 JP
+ Execute: UpdateByExample/NewByExample - akt. Family wie beim Gestalter festlegen
+
+ Rev 1.97 11 Feb 1997 14:31:46 JP
+ GetState: Family umschalten wenn das ApplyFlag erfragt wird
+
+ Rev 1.96 10 Feb 1997 14:21:52 JP
+ Im HTML-Mode nur die HTML-Vorlagen anzeigen
+
+ Rev 1.95 04 Feb 1997 13:53:58 JP
+ StateStyle: kein Disable bei den Familien
+
+ Rev 1.94 28 Jan 1997 16:30:42 OS
+ vor dem StyleDialog den HtmlMode in die DocShell putten
+
+ Rev 1.93 16 Jan 1997 16:37:22 OS
+ Metric vor Dialogaufruf an der App setzen
+
+ Rev 1.92 13 Jan 1997 14:57:50 JP
+ virtuelle StandardZeichenvorlage im Gestalter
+
+ Rev 1.91 13 Jan 1997 13:46:06 JP
+ Umstellungen fuers Update
+
+ Rev 1.90 12 Dec 1996 13:24:38 JP
+ GetState: Numerierung schaltet den Gestalter bei Automatisch auf Text (nicht mehr Num.)
+
+ Rev 1.89 04 Dec 1996 17:44:10 JP
+ StateStyleSheet: im HTML-Mode den HTML-Bereich defaulten
+
+ Rev 1.88 04 Dec 1996 15:05:26 JP
+ PoolVorlagen: neuer Bereich - HTML
+
+ Rev 1.87 14 Nov 1996 19:14:32 OS
+ Umstellung SlotIds
+
+ Rev 1.86 06 Nov 1996 10:20:14 JP
+ NewByExample: PageDesc - PoolIds beibehalten
+
+ Rev 1.85 04 Nov 1996 15:02:58 JP
+ neu: NewByExample fuer PageDescs
+
+ Rev 1.84 29 Oct 1996 12:12:06 AMA
+ New: Zeichenvorlagen duerfen jetzt denselben Bereich umfassen (DONTREPLACE)
+
+ Rev 1.83 28 Oct 1996 16:59:10 AMA
+ New: Modifier durchreichen
+
+ Rev 1.82 01 Oct 1996 13:40:12 AMA
+ Fix: RES_CHRATR_BACKGROUND nur bei Aenderung setzen.
+
+ Rev 1.81 18 Sep 1996 14:30:44 AMA
+ Chg: Zeichenhintergrund
+
+ Rev 1.80 17 Sep 1996 16:20:06 OS
+ UI-Anpassung bedingte Vorlagen
+
+ Rev 1.79 09 Sep 1996 15:10:40 OS
+ StyleSheet-Slots koennen auch WrtShell mitbekommen - API-Aufruf von Hintergrund-Views
+
+ Rev 1.78 23 Aug 1996 12:26:40 JP
+ Bug #30613#: GetStyleState - auf die richtige Shelle zugreifen
+
+ Rev 1.77 29 Jul 1996 19:37:30 MA
+ includes
+
+ Rev 1.76 29 Jul 1996 15:14:46 OS
+ FormatPage und Edit mit akt. View
+
+ Rev 1.75 12 Jun 1996 14:55:40 JP
+ Bug #28625#: Edit - neue Vorlage -> Pool benachrictigen
+
+ Rev 1.74 07 May 1996 23:01:44 JP
+ Bug #27306#: LoadStyles - Start/End-AllAction nur wenn Shell vorhanden ist
+
+ Rev 1.73 22 Apr 1996 16:48:16 JP
+ Bug #26860#: Doc als nicht modifiziert kennzeichnen
+
+ Rev 1.72 28 Mar 1996 19:03:38 OS
+ nach PageStyleDialog Lineal invalidieren
+
+ Rev 1.71 22 Mar 1996 13:55:04 HJS
+ umstellung 311
+
+ Rev 1.70 11 Mar 1996 09:58:46 OS
+ StateStyleSheet hat jetzt opt. WrtShell* als 2. Param. wg. Basic
+
+ Rev 1.69 20 Feb 1996 16:27:26 OS
+ neu: FormatPage - ruft Seitenformatdialog ggf. mit Spaltenseite auf
+
+ Rev 1.68 13 Feb 1996 14:30:12 OS
+ ExecStyleSheet: ReturnValue immer am Request setzen
+
+ Rev 1.67 12 Jan 1996 19:39:24 JP
+ ExecStyleSheet: Mask wird vom SFX mit gegeben, Edit und NewByExample wollen es haben
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx
new file mode 100644
index 000000000000..6c0b33bc7e03
--- /dev/null
+++ b/sw/source/ui/app/docstyle.cxx
@@ -0,0 +1,2782 @@
+/*************************************************************************
+ *
+ * $RCSfile: docstyle.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _SVSTDARR_USHORTS
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SFXITEMITER_HXX
+#include <svtools/itemiter.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_NUMITEM_HXX //autogen
+#include <svx/numitem.hxx>
+#endif
+
+#ifndef _FMTCOL_HXX //autogen
+#include <fmtcol.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _CHARFMT_HXX
+#include <charfmt.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _DOCSTYLE_HXX
+#include <docstyle.hxx>
+#endif
+#ifndef _DOCARY_HXX
+#include <docary.hxx>
+#endif
+#ifndef _CCOLL_HXX
+#include <ccoll.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _HINTS_HXX
+#include <hints.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWSTYLE_H
+#include <swstyle.h>
+#endif
+#ifndef _APP_HRC
+#include <app.hrc>
+#endif
+
+
+// MD 06.02.95: Die Formatnamen in der Liste aller Namen haben als
+// erstes Zeichen die Familie:
+
+#define cCHAR (sal_Unicode)'c'
+#define cPARA (sal_Unicode)'p'
+#define cFRAME (sal_Unicode)'f'
+#define cPAGE (sal_Unicode)'g'
+#define cNUMRULE (sal_Unicode)'n'
+
+// Dieses Zeichen wird bei der Herausgabe der Namen wieder entfernt und
+// die Familie wird neu generiert.
+
+// Ausserdem gibt es jetzt zusaetzlich das Bit bPhysical. Ist dieses Bit
+// TRUE, werden die Pool-Formatnamen NICHT mit eingetragen.
+
+
+class SwImplShellAction
+{
+ SwWrtShell* pSh;
+ CurrShell* pCurrSh;
+public:
+ SwImplShellAction( SwDoc& rDoc );
+ ~SwImplShellAction();
+
+ SwWrtShell* GetSh() { return pSh; }
+};
+
+SwImplShellAction::SwImplShellAction( SwDoc& rDoc )
+ : pCurrSh( 0 )
+{
+ if( rDoc.GetDocShell() )
+ pSh = rDoc.GetDocShell()->GetWrtShell();
+ else
+ pSh = 0;
+
+ if( pSh )
+ {
+ pCurrSh = new CurrShell( pSh );
+ pSh->StartAllAction();
+ }
+}
+
+SwImplShellAction::~SwImplShellAction()
+{
+ if( pCurrSh )
+ {
+ pSh->EndAllAction();
+ delete pCurrSh;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: SwCharFormate finden/anlegen
+ evtl. Style fuellen
+ --------------------------------------------------------------------*/
+
+SwCharFmt* lcl_FindCharFmt( SwDoc& rDoc,
+ const String& rName,
+ SwDocStyleSheet* pStyle = 0,
+ FASTBOOL bCreate = TRUE )
+{
+ SwCharFmt* pFmt = 0;
+ if( rName.Len() )
+ {
+ pFmt = rDoc.FindCharFmtByName( rName );
+ if( !pFmt && rName == *rDoc.GetTextNmArray()[ RES_POOLCOLL_STANDARD -
+ RES_POOLCOLL_TEXT_BEGIN ] )
+ {
+ // Standard-Zeichenvorlage
+ pFmt = (SwCharFmt*)rDoc.GetDfltCharFmt();
+ }
+
+ if( !pFmt && bCreate )
+ { // Pool abklappern
+ const USHORT nId = rDoc.GetPoolId(rName, GET_POOLID_CHRFMT);
+ if(nId != USHRT_MAX)
+ pFmt = rDoc.GetCharFmtFromPool(nId);
+ }
+ }
+ if(pStyle)
+ {
+ if(pFmt)
+ {
+ pStyle->SetPhysical(TRUE);
+ SwFmt* p = pFmt->DerivedFrom();
+ if( p && !p->IsDefault() )
+ pStyle->PresetParent( p->GetName() );
+ else
+ pStyle->PresetParent( aEmptyStr );
+ }
+ else
+ pStyle->SetPhysical(FALSE);
+ }
+ return pFmt;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: ParaFormate finden/erzeugen
+ Style fuellen
+ --------------------------------------------------------------------*/
+
+SwTxtFmtColl* lcl_FindParaFmt( SwDoc& rDoc,
+ const String& rName,
+ SwDocStyleSheet* pStyle = 0,
+ FASTBOOL bCreate = TRUE )
+{
+ SwTxtFmtColl* pColl = 0;
+
+ if( rName.Len() )
+ {
+ pColl = rDoc.FindTxtFmtCollByName( rName );
+ if( !pColl && bCreate )
+ { // Pool abklappern
+ const USHORT nId = rDoc.GetPoolId(rName, GET_POOLID_TXTCOLL);
+ if(nId != USHRT_MAX)
+ pColl = rDoc.GetTxtCollFromPool(nId);
+ }
+ }
+
+ if(pStyle)
+ {
+ if(pColl)
+ {
+ pStyle->SetPhysical(TRUE);
+ if( pColl->DerivedFrom() && !pColl->DerivedFrom()->IsDefault() )
+ pStyle->PresetParent( pColl->DerivedFrom()->GetName() );
+ else
+ pStyle->PresetParent( aEmptyStr );
+
+ SwTxtFmtColl& rNext = pColl->GetNextTxtFmtColl();
+ pStyle->PresetFollow(rNext.GetName());
+ }
+ else
+ pStyle->SetPhysical(FALSE);
+ }
+ return pColl;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rahmenformate
+ --------------------------------------------------------------------*/
+
+
+SwFrmFmt* lcl_FindFrmFmt( SwDoc& rDoc,
+ const String& rName,
+ SwDocStyleSheet* pStyle = 0,
+ FASTBOOL bCreate = TRUE )
+{
+ SwFrmFmt* pFmt = 0;
+ if( rName.Len() )
+ {
+ pFmt = rDoc.FindFrmFmtByName( rName );
+ if( !pFmt && bCreate )
+ { // Pool abklappern
+ const USHORT nId = rDoc.GetPoolId(rName, GET_POOLID_FRMFMT);
+ if(nId != USHRT_MAX)
+ pFmt = rDoc.GetFrmFmtFromPool(nId);
+ }
+ }
+
+ if(pStyle)
+ {
+ if(pFmt)
+ {
+ pStyle->SetPhysical(TRUE);
+ if( pFmt->DerivedFrom() && !pFmt->DerivedFrom()->IsDefault() )
+ pStyle->PresetParent( pFmt->DerivedFrom()->GetName() );
+ else
+ pStyle->PresetParent( aEmptyStr );
+ }
+ else
+ pStyle->SetPhysical(FALSE);
+ }
+ return pFmt;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Seitendescriptoren
+ --------------------------------------------------------------------*/
+
+
+const SwPageDesc* lcl_FindPageDesc( SwDoc& rDoc,
+ const String& rName,
+ SwDocStyleSheet* pStyle = 0,
+ FASTBOOL bCreate = TRUE )
+{
+ const SwPageDesc* pDesc = 0;
+
+ if( rName.Len() )
+ {
+ pDesc = rDoc.FindPageDescByName( rName );
+ if( !pDesc && bCreate )
+ {
+ USHORT nId = rDoc.GetPoolId(rName, GET_POOLID_PAGEDESC);
+ if(nId != USHRT_MAX)
+ pDesc = rDoc.GetPageDescFromPool(nId);
+ }
+ }
+
+ if(pStyle)
+ {
+ if(pDesc)
+ {
+ pStyle->SetPhysical(TRUE);
+ if(pDesc->GetFollow())
+ pStyle->PresetFollow(pDesc->GetFollow()->GetName());
+ else
+ pStyle->PresetParent( aEmptyStr );
+ }
+ else
+ pStyle->SetPhysical(FALSE);
+ }
+ return pDesc;
+}
+
+const SwNumRule* lcl_FindNumRule( SwDoc& rDoc,
+ const String& rName,
+ SwDocStyleSheet* pStyle = 0,
+ FASTBOOL bCreate = TRUE )
+{
+ const SwNumRule* pRule = 0;
+
+ if( rName.Len() )
+ {
+ pRule = rDoc.FindNumRulePtr( rName );
+ if( !pRule && bCreate )
+ {
+ USHORT nId = rDoc.GetPoolId(rName, GET_POOLID_NUMRULE);
+ if(nId != USHRT_MAX)
+ pRule = rDoc.GetNumRuleFromPool(nId);
+ }
+ }
+
+ if(pStyle)
+ {
+ if(pRule)
+ {
+ pStyle->SetPhysical(TRUE);
+ pStyle->PresetParent( aEmptyStr );
+ }
+ else
+ pStyle->SetPhysical(FALSE);
+ }
+ return pRule;
+}
+
+
+USHORT lcl_FindName( const SwPoolFmtList& rLst, SfxStyleFamily eFam,
+ const String& rName )
+{
+ if( rLst.Count() )
+ {
+ // suchen
+ String sSrch( ' ' );
+ switch( eFam )
+ {
+ case SFX_STYLE_FAMILY_CHAR: sSrch = cCHAR; break;
+ case SFX_STYLE_FAMILY_PARA: sSrch = cPARA; break;
+ case SFX_STYLE_FAMILY_FRAME: sSrch = cFRAME; break;
+ case SFX_STYLE_FAMILY_PAGE: sSrch = cPAGE; break;
+ case SFX_STYLE_FAMILY_PSEUDO: sSrch = cNUMRULE; break;
+ }
+ sSrch += rName;
+ for( USHORT i=0; i < rLst.Count(); ++i )
+ if( *rLst[i] == sSrch )
+ return i;
+ }
+ return USHRT_MAX;
+}
+
+FASTBOOL FindPhyStyle( SwDoc& rDoc, const String& rName, SfxStyleFamily eFam )
+{
+ switch( eFam )
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ return 0 != lcl_FindCharFmt( rDoc, rName, 0, FALSE );
+ case SFX_STYLE_FAMILY_PARA :
+ return 0 != lcl_FindParaFmt( rDoc, rName, 0, FALSE );
+ case SFX_STYLE_FAMILY_FRAME:
+ return 0 != lcl_FindFrmFmt( rDoc, rName, 0, FALSE );
+ case SFX_STYLE_FAMILY_PAGE :
+ return 0 != lcl_FindPageDesc( rDoc, rName, 0, FALSE );
+ case SFX_STYLE_FAMILY_PSEUDO:
+ return 0 != lcl_FindNumRule( rDoc, rName, 0, FALSE );
+ }
+ return FALSE;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einfuegen von Strings in die Liste der Vorlagen
+ --------------------------------------------------------------------*/
+
+
+void SwPoolFmtList::Append( char cChar, const String& rStr )
+{
+ String* pStr = new String( cChar );
+ *pStr += rStr;
+ for ( USHORT i=0; i < Count(); ++i )
+ {
+ if( *operator[](i) == *pStr )
+ {
+ delete pStr;
+ return;
+ }
+ }
+ Insert( pStr, Count() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Liste kompletti loeschen
+ --------------------------------------------------------------------*/
+
+
+void SwPoolFmtList::Erase()
+{
+ DeleteAndDestroy( 0, Count() );
+}
+
+/* */
+
+/*--------------------------------------------------------------------
+ Beschreibung: UI-seitige implementierung von StyleSheets
+ greift auf die Core-Engine zu
+ --------------------------------------------------------------------*/
+
+SwDocStyleSheet::SwDocStyleSheet( SwDoc& rDocument,
+ const String& rName,
+ SwDocStyleSheetPool& rPool,
+ SfxStyleFamily eFam,
+ USHORT nMask) :
+
+ SfxStyleSheetBase( rName, rPool, eFam, nMask ),
+ rDoc(rDocument),
+ pCharFmt(0),
+ pFrmFmt(0),
+ pColl(0),
+ pDesc(0),
+ pNumRule(0),
+ bPhysical(FALSE),
+ aCoreSet(GetPool().GetPool(),
+ RES_CHRATR_BEGIN, RES_CHRATR_END - 1,
+ RES_PARATR_BEGIN, RES_PARATR_END - 1,
+ RES_FRMATR_BEGIN, RES_FRMATR_END - 1,
+ SID_ATTR_PAGE, SID_ATTR_PAGE_EXT1,
+ SID_ATTR_PAGE_HEADERSET,SID_ATTR_PAGE_FOOTERSET,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ FN_PARAM_FTN_INFO, FN_PARAM_FTN_INFO,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_MODEL,
+ SID_ATTR_PARA_PAGENUM, SID_ATTR_PARA_PAGENUM,
+ SID_SWREGISTER_MODE, SID_SWREGISTER_COLLECTION,
+ FN_COND_COLL, FN_COND_COLL,
+ SID_ATTR_AUTO_STYLE_UPDATE, SID_ATTR_AUTO_STYLE_UPDATE,
+ SID_ATTR_NUMBERING_RULE, SID_ATTR_NUMBERING_RULE,
+ SID_PARA_BACKGRND_DESTINATION, SID_ATTR_BRUSH_CHAR,
+ SID_ATTR_NUMBERING_RULE, SID_ATTR_NUMBERING_RULE,
+ 0)
+{
+ nHelpId = UCHAR_MAX;
+}
+
+
+SwDocStyleSheet::SwDocStyleSheet( const SwDocStyleSheet& rOrg) :
+ SfxStyleSheetBase(rOrg),
+ pCharFmt(rOrg.pCharFmt),
+ pFrmFmt(rOrg.pFrmFmt),
+ pColl(rOrg.pColl),
+ pDesc(rOrg.pDesc),
+ pNumRule(rOrg.pNumRule),
+ rDoc(rOrg.rDoc),
+ bPhysical(rOrg.bPhysical),
+ aCoreSet(rOrg.aCoreSet)
+{
+}
+
+
+ SwDocStyleSheet::~SwDocStyleSheet()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zuruecksetzen
+ --------------------------------------------------------------------*/
+
+
+void SwDocStyleSheet::Reset()
+{
+ aName.Erase();
+ aFollow.Erase();
+ aParent.Erase();
+ SetPhysical(FALSE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: virtuelle Methoden
+ --------------------------------------------------------------------*/
+
+
+const String& SwDocStyleSheet::GetParent() const
+{
+ if( !bPhysical )
+ {
+ // dann pruefe, ob schon im Doc vorhanden
+ SwFmt* pFmt = 0;
+ SwGetPoolIdFromName eGetType;
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ pFmt = rDoc.FindCharFmtByName( aName );
+ eGetType = GET_POOLID_CHRFMT;
+ break;
+
+ case SFX_STYLE_FAMILY_PARA:
+ pFmt = rDoc.FindTxtFmtCollByName( aName );
+ eGetType = GET_POOLID_TXTCOLL;
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ pFmt = rDoc.FindFrmFmtByName( aName );
+ eGetType = GET_POOLID_FRMFMT;
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ case SFX_STYLE_FAMILY_PSEUDO:
+ default:
+ return aEmptyStr; // es gibt keinen Parent
+ }
+
+ String sTmp;
+ if( !pFmt ) // noch nicht vorhanden, also dflt. Parent
+ {
+ USHORT i = rDoc.GetPoolId( aName, eGetType );
+ i = ::GetPoolParent( i );
+ if( i && USHRT_MAX != i )
+ SwDoc::GetPoolNm( i, sTmp );
+ }
+ else
+ {
+ SwFmt* p = pFmt->DerivedFrom();
+ if( p && !p->IsDefault() )
+ sTmp = p->GetName();
+ }
+ SwDocStyleSheet* pThis = (SwDocStyleSheet*)this;
+ pThis->aParent = sTmp;
+ }
+ return aParent;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nachfolger
+ --------------------------------------------------------------------*/
+
+
+const String& SwDocStyleSheet::GetFollow() const
+{
+ if( !bPhysical )
+ {
+ SwDocStyleSheet* pThis = (SwDocStyleSheet*)this;
+ pThis->FillStyleSheet( FillAllInfo );
+ }
+ return aFollow;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Welche Verkettung ist moeglich
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocStyleSheet::HasFollowSupport() const
+{
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_PARA :
+ case SFX_STYLE_FAMILY_PAGE : return TRUE;
+ case SFX_STYLE_FAMILY_FRAME:
+ case SFX_STYLE_FAMILY_CHAR :
+ case SFX_STYLE_FAMILY_PSEUDO: return FALSE;
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ }
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Parent ?
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocStyleSheet::HasParentSupport() const
+{
+ BOOL bRet = FALSE;
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ case SFX_STYLE_FAMILY_PARA :
+ case SFX_STYLE_FAMILY_FRAME: bRet = TRUE;
+ }
+ return bRet;
+}
+
+
+BOOL SwDocStyleSheet::HasClearParentSupport() const
+{
+ BOOL bRet = FALSE;
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_PARA :
+ case SFX_STYLE_FAMILY_CHAR :
+ case SFX_STYLE_FAMILY_FRAME: bRet = TRUE;
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: textuelle Beschreibung ermitteln
+ --------------------------------------------------------------------*/
+String SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
+{
+ String sPlus(String::CreateFromAscii(" + "));
+ if ( SFX_STYLE_FAMILY_PAGE == nFamily )
+ {
+ if( !pSet )
+ GetItemSet();
+
+ SfxItemIter aIter( *pSet );
+ String aDesc;
+ const SfxPoolItem* pItem = aIter.FirstItem();
+
+ while ( pItem )
+ {
+ if(!IsInvalidItem(pItem))
+ switch ( pItem->Which() )
+ {
+ case RES_LR_SPACE:
+ case SID_ATTR_PAGE_SIZE:
+ case SID_ATTR_PAGE_MAXSIZE:
+ case SID_ATTR_PAGE_PAPERBIN:
+ case SID_ATTR_PAGE_APP:
+ case SID_ATTR_BORDER_INNER:
+ break;
+ default:
+ {
+ String aItemPresentation;
+ if ( !IsInvalidItem( pItem ) &&
+ rPool.GetPool().GetPresentation(
+ *pItem, SFX_ITEM_PRESENTATION_COMPLETE,
+ eUnit, aItemPresentation ) )
+ {
+ if ( aDesc.Len() && aItemPresentation.Len() )
+ aDesc += sPlus;
+ aDesc += aItemPresentation;
+ }
+ }
+ }
+ pItem = aIter.NextItem();
+ }
+ return aDesc;
+ }
+ else if ( SFX_STYLE_FAMILY_FRAME == nFamily ||
+ SFX_STYLE_FAMILY_PARA == nFamily)
+ {
+ if( !pSet )
+ GetItemSet();
+
+ SfxItemIter aIter( *pSet );
+ String aDesc;
+ const SfxPoolItem* pItem = aIter.FirstItem();
+
+ String sPageNum, sModel, sBreak;
+
+ while ( pItem )
+ {
+ if(!IsInvalidItem(pItem))
+ switch ( pItem->Which() )
+ {
+ case SID_ATTR_AUTO_STYLE_UPDATE:
+ case SID_PARA_BACKGRND_DESTINATION:
+ case RES_PAGEDESC:
+ break;
+ default:
+ {
+ String aItemPresentation;
+ if ( !IsInvalidItem( pItem ) &&
+ rPool.GetPool().GetPresentation(
+ *pItem, SFX_ITEM_PRESENTATION_COMPLETE,
+ eUnit, aItemPresentation ) )
+ {
+
+ switch ( pItem->Which() )
+ {
+ case SID_ATTR_PARA_PAGENUM:
+ sPageNum = aItemPresentation;
+ break;
+ case SID_ATTR_PARA_MODEL:
+ sModel = aItemPresentation;
+ break;
+ case RES_BREAK:
+ sBreak = aItemPresentation;
+ break;
+ default:
+ if ( aDesc.Len() && aItemPresentation.Len() )
+ aDesc += sPlus;
+ aDesc += aItemPresentation;
+ }
+ }
+ }
+ }
+ pItem = aIter.NextItem();
+ }
+ //Sonderbehandlung fuer Umburch, Seitenvorlage und Seitenoffset
+ if(sBreak.Len() && !sModel.Len()) // wemm Model. dann ist Break ungueltig
+ {
+ if(aDesc.Len())
+ aDesc += sPlus;
+ aDesc += sBreak;
+ }
+ if(sModel.Len())
+ {
+ if(aDesc.Len())
+ aDesc += sPlus;
+ aDesc += SW_RESSTR(STR_PAGEBREAK);
+ aDesc += sPlus;
+ aDesc += sModel;
+ if(sPageNum != String(UniString::CreateFromInt32(0)))
+ {
+ aDesc += sPlus;
+ aDesc += SW_RESSTR(STR_PAGEOFFSET);
+ aDesc += sPageNum;
+ }
+ }
+ return aDesc;
+ }
+ else if( SFX_STYLE_FAMILY_PSEUDO == nFamily )
+ {
+// if( pNumRule )
+// return pNumRule->GetName();
+ //os: was sollte man bei Numerierungen schon anzeigen?
+ return aEmptyStr;
+ }
+
+ return SfxStyleSheetBase::GetDescription(eUnit);
+}
+
+
+String SwDocStyleSheet::GetDescription()
+{
+ return GetDescription(SFX_MAPUNIT_CM);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Namen setzen
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocStyleSheet::SetName( const String& rStr)
+{
+ if( !rStr.Len() )
+ return FALSE;
+
+ if( aName != rStr )
+ {
+ if( !SfxStyleSheetBase::SetName( rStr ))
+ return FALSE;
+ }
+ else if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+
+ int bChg = FALSE;
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ {
+ ASSERT(pCharFmt, "SwCharFormat fehlt!");
+ if( pCharFmt && pCharFmt->GetName() != rStr )
+ {
+ pCharFmt->SetName( rStr );
+ bChg = TRUE;
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_PARA :
+ {
+ ASSERT(pColl, "Collektion fehlt!");
+ if( pColl && pColl->GetName() != rStr )
+ {
+ pColl->SetName( rStr );
+ bChg = TRUE;
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ ASSERT(pFrmFmt, "FrmFmt fehlt!");
+ if( pFrmFmt && pFrmFmt->GetName() != rStr )
+ {
+ pFrmFmt->SetName( rStr );
+ bChg = TRUE;
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_PAGE :
+ ASSERT(pDesc, "PageDesc fehlt!");
+ if( pDesc && pDesc->GetName() != rStr )
+ {
+ //PageDesc setzen - mit vorherigem kopieren - ist fuer das
+ //setzen des Namens wohl nicht notwendig. Deshalb erlauben
+ //wir hier mal einen cast.
+ ((SwPageDesc*)pDesc)->SetName( rStr );
+ rDoc.SetModified();
+ bChg = TRUE;
+ }
+ break;
+ case SFX_STYLE_FAMILY_PSEUDO:
+ ASSERT(pNumRule, "NumRule fehlt!");
+ if( pNumRule && pNumRule->GetName() != rStr )
+ {
+ ((SwNumRule*)pNumRule)->SetName( rStr );
+ rDoc.SetModified();
+ bChg = TRUE;
+ }
+ break;
+
+
+#ifdef DBG_UTIL
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+#endif
+ }
+
+ if( bChg )
+ {
+ rPool.First(); // interne Liste muss geupdatet werden
+ rPool.Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_MODIFIED, *this ) );
+ SwEditShell* pSh = rDoc.GetEditShell();
+ if( pSh )
+ pSh->CallChgLnk();
+ }
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ableitungshirachie
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocStyleSheet::SetParent( const String& rStr)
+{
+ SwFmt* pFmt = 0, *pParent = 0;
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ ASSERT( pCharFmt, "SwCharFormat fehlt!" )
+ if( 0 != ( pFmt = pCharFmt ) && rStr.Len() )
+ pParent = lcl_FindCharFmt(rDoc, rStr);
+ break;
+
+ case SFX_STYLE_FAMILY_PARA :
+ ASSERT( pColl, "Collektion fehlt!")
+ if( 0 != ( pFmt = pColl ) && rStr.Len() )
+ pParent = lcl_FindParaFmt( rDoc, rStr );
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ ASSERT(pFrmFmt, "FrameFormat fehlt!");
+ if( 0 != ( pFmt = pFrmFmt ) && rStr.Len() )
+ pParent = lcl_FindFrmFmt( rDoc, rStr );
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ case SFX_STYLE_FAMILY_PSEUDO:
+ break;
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ }
+
+ BOOL bRet = FALSE;
+ if( pFmt && pFmt->DerivedFrom() &&
+ pFmt->DerivedFrom()->GetName() != rStr )
+ {
+ {
+ SwImplShellAction aTmp( rDoc );
+ bRet = pFmt->SetDerivedFrom( pParent );
+ }
+
+ if( bRet )
+ {
+ aParent = rStr;
+ rPool.Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_MODIFIED,
+ *this ) );
+ }
+ }
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nachfolger detzen
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocStyleSheet::SetFollow( const String& rStr)
+{
+ if( rStr.Len() && !SfxStyleSheetBase::SetFollow( rStr ))
+ return FALSE;
+
+ SwImplShellAction aTmpSh( rDoc );
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_PARA :
+ {
+ ASSERT(pColl, "Collection fehlt!");
+ if( pColl )
+ {
+ SwTxtFmtColl* pFollow = pColl;
+ if( rStr.Len() && 0 == (pFollow = lcl_FindParaFmt(rDoc, rStr) ))
+ pFollow = pColl;
+
+ pColl->SetNextTxtFmtColl(*pFollow);
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_PAGE :
+ {
+ ASSERT(pDesc, "PageDesc fehlt!");
+ if( pDesc )
+ {
+ const SwPageDesc* pFollowDesc = rStr.Len()
+ ? lcl_FindPageDesc(rDoc, rStr)
+ : 0;
+ USHORT nId;
+ if( rDoc.FindPageDescByName( pDesc->GetName(), &nId ))
+ {
+ SwPageDesc aDesc( *pDesc );
+ aDesc.SetFollow( pFollowDesc );
+ rDoc.ChgPageDesc( nId, aDesc );
+ pDesc = &rDoc.GetPageDesc( nId );
+ }
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_CHAR:
+ case SFX_STYLE_FAMILY_FRAME:
+ case SFX_STYLE_FAMILY_PSEUDO:
+ break;
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ }
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ueber Name und Family, Mask den ItemSet rausholen
+ --------------------------------------------------------------------*/
+
+SfxItemSet& SwDocStyleSheet::GetItemSet()
+{
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ ASSERT(pCharFmt, "Wo ist das SwCharFmt");
+ aCoreSet.Put(pCharFmt->GetAttrSet());
+ if(pCharFmt->DerivedFrom())
+ aCoreSet.SetParent(&pCharFmt->DerivedFrom()->GetAttrSet());
+ }
+ break;
+ case SFX_STYLE_FAMILY_PARA :
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ SvxBoxInfoItem aBoxInfo;
+ aBoxInfo.SetTable( FALSE );
+ aBoxInfo.SetDist( TRUE); // Abstandsfeld immer anzeigen
+ aBoxInfo.SetMinDist( TRUE );// Minimalgroesse in Tabellen und Absaetzen setzen
+ aBoxInfo.SetDefDist( MIN_BORDER_DIST );// Default-Abstand immer setzen
+ // Einzelne Linien koennen nur in Tabellen DontCare-Status haben
+ aBoxInfo.SetValid( VALID_DISABLE, TRUE );
+ if ( nFamily == SFX_STYLE_FAMILY_PARA )
+ {
+ ASSERT(pColl, "Wo ist die Collektion");
+ aCoreSet.Put(pColl->GetAttrSet());
+ aCoreSet.Put( aBoxInfo );
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_AUTO_STYLE_UPDATE, pColl->IsAutoUpdateFmt()));
+ if(pColl->DerivedFrom())
+ aCoreSet.SetParent(&pColl->DerivedFrom()->GetAttrSet());
+ }
+ else
+ {
+ ASSERT(pFrmFmt, "Wo ist das FrmFmt");
+ aCoreSet.Put(pFrmFmt->GetAttrSet());
+ aCoreSet.Put( aBoxInfo );
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_AUTO_STYLE_UPDATE, pFrmFmt->IsAutoUpdateFmt()));
+ if(pFrmFmt->DerivedFrom())
+ aCoreSet.SetParent(&pFrmFmt->DerivedFrom()->GetAttrSet());
+ }
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE :
+ {
+ ASSERT(pDesc, "Kein PageDescriptor");
+ ::PageDescToItemSet(*((SwPageDesc*)pDesc), aCoreSet);
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ ASSERT(pNumRule, "Keine NumRule");
+ SvxNumRule aRule = pNumRule->MakeSvxNumRule();
+ aCoreSet.Put(SvxNumBulletItem(aRule));
+ }
+ break;
+
+
+#ifdef DBG_UTIL
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+#endif
+ }
+ // Member der Basisklasse
+ pSet = &aCoreSet;
+
+ return aCoreSet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ItemSet setzen
+ --------------------------------------------------------------------*/
+
+
+void SwDocStyleSheet::SetItemSet(const SfxItemSet& rSet)
+{
+ // gegebenenfalls Format erst ermitteln
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+
+ SwImplShellAction aTmpSh( rDoc );
+
+ ASSERT( &rSet != &aCoreSet, "SetItemSet mit eigenem Set ist nicht erlaubt" );
+
+ SwFmt* pFmt = 0;
+ SwPageDesc* pNewDsc = 0;
+ USHORT nPgDscPos;
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ {
+ ASSERT(pCharFmt, "Wo ist das CharFormat");
+ pFmt = pCharFmt;
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PARA :
+ {
+ ASSERT(pColl, "Wo ist die Collection");
+ const SfxPoolItem* pAutoUpdate;
+ if(SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_AUTO_STYLE_UPDATE,FALSE, &pAutoUpdate ))
+ {
+ pColl->SetAutoUpdateFmt(((const SfxBoolItem*)pAutoUpdate)->GetValue());
+ }
+
+ const SwCondCollItem* pCondItem;
+ if( SFX_ITEM_SET != rSet.GetItemState( FN_COND_COLL, FALSE,
+ (const SfxPoolItem**)&pCondItem ))
+ pCondItem = 0;
+
+ if( RES_CONDTXTFMTCOLL == pColl->Which() && pCondItem )
+ {
+ SwFmt* pFindFmt;
+ const CommandStruct* pCmds = SwCondCollItem::GetCmds();
+ for(USHORT i = 0; i < COND_COMMAND_COUNT; i++)
+ {
+ SwCollCondition aCond( 0, pCmds[ i ].nCnd, pCmds[ i ].nSubCond );
+ ((SwConditionTxtFmtColl*)pColl)->RemoveCondition( aCond );
+ const String& rStyle = pCondItem->GetStyle( i );
+ if( rStyle.Len() &&
+ 0 != ( pFindFmt = lcl_FindParaFmt( rDoc, rStyle, 0, TRUE )))
+ {
+ pFindFmt->Add( &aCond );
+ ((SwConditionTxtFmtColl*)pColl)->InsertCondition( aCond );
+ }
+ }
+
+ // Document auf die neue Bedingungen updaten
+ SwCondCollCondChg aMsg( pColl );
+ pColl->Modify( &aMsg, &aMsg );
+ }
+ else if( pCondItem && !pColl->GetDepends() )
+ {
+ // keine bedingte Vorlage, dann erstmal erzeugen und
+ // alle wichtigen Werte uebernehmen
+ SwConditionTxtFmtColl* pCColl = rDoc.MakeCondTxtFmtColl(
+ pColl->GetName(), (SwTxtFmtColl*)pColl->DerivedFrom() );
+ if( pColl != &pColl->GetNextTxtFmtColl() )
+ pCColl->SetNextTxtFmtColl( pColl->GetNextTxtFmtColl() );
+
+ pCColl->SetOutlineLevel( pColl->GetOutlineLevel() );
+
+ SwTxtFmtColl* pFindFmt;
+ const CommandStruct* pCmds = SwCondCollItem::GetCmds();
+ for( USHORT i = 0; i < COND_COMMAND_COUNT; ++i )
+ {
+ const String& rStyle = pCondItem->GetStyle( i );
+ if( rStyle.Len() &&
+ 0 != ( pFindFmt = lcl_FindParaFmt( rDoc, rStyle, 0, TRUE )))
+ {
+ pCColl->InsertCondition( SwCollCondition( pFindFmt,
+ pCmds[ i ].nCnd, pCmds[ i ].nSubCond ) );
+ }
+ }
+
+ rDoc.DelTxtFmtColl( pColl );
+ pColl = pCColl;
+ }
+ pFmt = pColl;
+
+ USHORT nId = pColl->GetPoolFmtId() &
+ ~ ( COLL_GET_RANGE_BITS | POOLGRP_NOCOLLID );
+ switch( GetMask() & ( 0x0fff & ~SWSTYLEBIT_CONDCOLL ) )
+ {
+ case SWSTYLEBIT_TEXT:
+ nId |= COLL_TEXT_BITS;
+ break;
+ case SWSTYLEBIT_CHAPTER:
+ nId |= COLL_DOC_BITS;
+ break;
+ case SWSTYLEBIT_LIST:
+ nId |= COLL_LISTS_BITS;
+ break;
+ case SWSTYLEBIT_IDX:
+ nId |= COLL_REGISTER_BITS;
+ break;
+ case SWSTYLEBIT_EXTRA:
+ nId |= COLL_EXTRA_BITS;
+ break;
+ case SWSTYLEBIT_HTML:
+ nId |= COLL_HTML_BITS;
+ break;
+ }
+ pColl->SetPoolFmtId( nId );
+ break;
+ }
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ ASSERT(pFrmFmt, "Wo ist das FrmFmt");
+ const SfxPoolItem* pAutoUpdate;
+ if(SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_AUTO_STYLE_UPDATE,FALSE, &pAutoUpdate ))
+ {
+ pFrmFmt->SetAutoUpdateFmt(((const SfxBoolItem*)pAutoUpdate)->GetValue());
+ }
+ pFmt = pFrmFmt;
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE :
+ {
+ ASSERT(pDesc, "Wo ist der PageDescriptor");
+
+ if( rDoc.FindPageDescByName( pDesc->GetName(), &nPgDscPos ))
+ {
+ pNewDsc = new SwPageDesc( *pDesc );
+ pFmt = &pNewDsc->GetMaster();
+ }
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ ASSERT(pNumRule, "Wo ist die NumRule");
+ const SfxPoolItem* pItem;
+ switch( rSet.GetItemState( SID_ATTR_NUMBERING_RULE, FALSE, &pItem ))
+ {
+ case SFX_ITEM_SET:
+ {
+ SvxNumRule* pSetRule = ((SvxNumBulletItem*)pItem)->GetNumRule();
+ pSetRule->UnLinkGraphics();
+ //SwNumRule aSetRule(rDoc.GetUniqueNumRuleName());
+ SwNumRule aSetRule(pNumRule->GetName());
+ aSetRule.SetSvxRule(*pSetRule, &rDoc);
+ rDoc.ChgNumRuleFmts( aSetRule );
+ }
+ break;
+ case SFX_ITEM_DONTCARE:
+ // NumRule auf default Werte
+ // was sind die default Werte?
+ {
+ SwNumRule aRule( pNumRule->GetName() );
+ rDoc.ChgNumRuleFmts( aRule );
+ }
+ break;
+ }
+ }
+ break;
+
+#ifdef DBG_UTIL
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+#endif
+ }
+
+ if( pFmt && rSet.Count())
+ {
+ SfxItemIter aIter( rSet );
+ const SfxPoolItem* pItem = aIter.GetCurItem();
+ while( TRUE )
+ {
+ if( IsInvalidItem( pItem ) ) // Clearen
+ pFmt->ResetAttr( rSet.GetWhichByPos(aIter.GetCurPos()));
+
+ if( aIter.IsAtEnd() )
+ break;
+ pItem = aIter.NextItem();
+ }
+ SfxItemSet aSet(rSet);
+ aSet.ClearInvalidItems();
+
+ aCoreSet.ClearItem();
+
+ if( pNewDsc )
+ {
+ ::ItemSetToPageDesc( aSet, *pNewDsc,
+ ::GetActiveWrtShell());
+ rDoc.ChgPageDesc( nPgDscPos, *pNewDsc );
+ pDesc = &rDoc.GetPageDesc( nPgDscPos );
+ delete pNewDsc;
+ }
+ else
+ pFmt->SetAttr( aSet ); // alles gesetzten Putten
+ }
+ else
+ {
+ aCoreSet.ClearItem();
+ if( pNewDsc ) // den muessen wir noch vernichten!!
+ delete pNewDsc;
+ }
+}
+
+void lcl_SaveStyles( USHORT nFamily, SvPtrarr& rArr, SwDoc& rDoc )
+{
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ const SwCharFmts& rTbl = *rDoc.GetCharFmts();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ rArr.Insert( p, n );
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ const SwTxtFmtColls& rTbl = *rDoc.GetTxtFmtColls();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ rArr.Insert( p, n );
+ }
+ }
+ break;
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ const SwFrmFmts& rTbl = *rDoc.GetFrmFmts();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ rArr.Insert( p, n );
+ }
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ {
+ for( sal_uInt16 n = 0, nCnt = rDoc.GetPageDescCnt(); n < nCnt; ++n )
+ {
+ void* p = (void*)&rDoc.GetPageDesc( n );
+ rArr.Insert( p, n );
+ }
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ const SwNumRuleTbl& rTbl = rDoc.GetNumRuleTbl();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ rArr.Insert( p, n );
+ }
+ }
+ break;
+ }
+}
+
+void lcl_DeleteInfoStyles( USHORT nFamily, SvPtrarr& rArr, SwDoc& rDoc )
+{
+ sal_uInt16 n, nCnt;
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ SvUShorts aDelArr;
+ const SwCharFmts& rTbl = *rDoc.GetCharFmts();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ if( USHRT_MAX == rArr.GetPos( p ))
+ aDelArr.Insert( n, 0 );
+ }
+ for( n = 0, nCnt = aDelArr.Count(); n < nCnt; ++n )
+ rDoc.DelCharFmt( aDelArr[ n ] );
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PARA :
+ {
+ SvUShorts aDelArr;
+ const SwTxtFmtColls& rTbl = *rDoc.GetTxtFmtColls();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ if( USHRT_MAX == rArr.GetPos( p ))
+ aDelArr.Insert( n, 0 );
+ }
+ for( n = 0, nCnt = aDelArr.Count(); n < nCnt; ++n )
+ rDoc.DelTxtFmtColl( aDelArr[ n ] );
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ SvPtrarr aDelArr;
+ const SwFrmFmts& rTbl = *rDoc.GetFrmFmts();
+ for( sal_uInt16 n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ if( USHRT_MAX == rArr.GetPos( p ))
+ aDelArr.Insert( p, 0 );
+ }
+ for( n = 0, nCnt = aDelArr.Count(); n < nCnt; ++n )
+ rDoc.DelFrmFmt( (SwFrmFmt*)aDelArr[ n ] );
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ {
+ SvUShorts aDelArr;
+ for( n = 0, nCnt = rDoc.GetPageDescCnt(); n < nCnt; ++n )
+ {
+ void* p = (void*)&rDoc.GetPageDesc( n );
+ if( USHRT_MAX == rArr.GetPos( p ))
+ aDelArr.Insert( n, 0 );
+ }
+ for( n = 0, nCnt = aDelArr.Count(); n < nCnt; ++n )
+ rDoc.DelPageDesc( aDelArr[ n ] );
+ }
+ break;
+
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ SvPtrarr aDelArr;
+ const SwNumRuleTbl& rTbl = rDoc.GetNumRuleTbl();
+ for( n = 0, nCnt = rTbl.Count(); n < nCnt; ++n )
+ {
+ void* p = (void*)rTbl[ n ];
+ if( USHRT_MAX == rArr.GetPos( p ))
+ aDelArr.Insert( p, 0 );
+ }
+ for( n = 0, nCnt = aDelArr.Count(); n < nCnt; ++n )
+ rDoc.DelNumRule( ((SwNumRule*)aDelArr[ n ])->GetName() );
+ }
+ break;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Das Format ermitteln
+ --------------------------------------------------------------------*/
+
+BOOL SwDocStyleSheet::FillStyleSheet( FillStyleType eFType )
+{
+ BOOL bRet = FALSE;
+ USHORT nPoolId = USHRT_MAX;
+ SwFmt* pFmt = 0;
+
+ BOOL bCreate = FillPhysical == eFType;
+ BOOL bDeleteInfo = FALSE;
+ BOOL bFillOnlyInfo = FillAllInfo == eFType;
+ SvPtrarr aDelArr;
+
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ pCharFmt = lcl_FindCharFmt(rDoc, aName, this, bCreate );
+ bPhysical = 0 != pCharFmt;
+ if( bFillOnlyInfo && !bPhysical )
+ {
+ bDeleteInfo = TRUE;
+ ::lcl_SaveStyles( nFamily, aDelArr, rDoc );
+ pCharFmt = lcl_FindCharFmt(rDoc, aName, this, TRUE );
+ }
+
+ pFmt = pCharFmt;
+ if( !bCreate && !pFmt )
+ {
+ if( aName == *rDoc.GetTextNmArray()[ RES_POOLCOLL_STANDARD -
+ RES_POOLCOLL_TEXT_BEGIN ] )
+ nPoolId = 0;
+ else
+ nPoolId = rDoc.GetPoolId( aName, GET_POOLID_CHRFMT );
+ }
+
+ bRet = 0 != pCharFmt || USHRT_MAX != nPoolId;
+
+ if( bDeleteInfo )
+ pCharFmt = 0;
+ break;
+
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ pColl = lcl_FindParaFmt(rDoc, aName, this, bCreate);
+ bPhysical = 0 != pColl;
+ if( bFillOnlyInfo && !bPhysical )
+ {
+ bDeleteInfo = TRUE;
+ ::lcl_SaveStyles( nFamily, aDelArr, rDoc );
+ pColl = lcl_FindParaFmt(rDoc, aName, this, TRUE );
+ }
+
+ pFmt = pColl;
+ if( pColl )
+ PresetFollow( pColl->GetNextTxtFmtColl().GetName() );
+ else if( !bCreate )
+ nPoolId = rDoc.GetPoolId( aName, GET_POOLID_TXTCOLL );
+
+ bRet = 0 != pColl || USHRT_MAX != nPoolId;
+
+ if( bDeleteInfo )
+ pColl = 0;
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ pFrmFmt = lcl_FindFrmFmt(rDoc, aName, this, bCreate);
+ bPhysical = 0 != pFrmFmt;
+ if( bFillOnlyInfo && bPhysical )
+ {
+ bDeleteInfo = TRUE;
+ ::lcl_SaveStyles( nFamily, aDelArr, rDoc );
+ pFrmFmt = lcl_FindFrmFmt(rDoc, aName, this, TRUE );
+ }
+ pFmt = pFrmFmt;
+ if( !bCreate && !pFmt )
+ nPoolId = rDoc.GetPoolId( aName, GET_POOLID_FRMFMT );
+
+ bRet = 0 != pFrmFmt || USHRT_MAX != nPoolId;
+
+ if( bDeleteInfo )
+ pFrmFmt = 0;
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ pDesc = lcl_FindPageDesc(rDoc, aName, this, bCreate);
+ bPhysical = 0 != pDesc;
+ if( bFillOnlyInfo && !pDesc )
+ {
+ bDeleteInfo = TRUE;
+ ::lcl_SaveStyles( nFamily, aDelArr, rDoc );
+ pDesc = lcl_FindPageDesc( rDoc, aName, this, TRUE );
+ }
+
+ if( pDesc )
+ {
+ nPoolId = pDesc->GetPoolFmtId();
+ nHelpId = pDesc->GetPoolHelpId();
+ if( pDesc->GetPoolHlpFileId() != UCHAR_MAX )
+ aHelpFile = *rDoc.GetDocPattern( pDesc->GetPoolHlpFileId() );
+ else
+ aHelpFile.Erase();
+ }
+ else if( !bCreate )
+ nPoolId = rDoc.GetPoolId( aName, GET_POOLID_PAGEDESC );
+ SetMask( USER_FMT & nPoolId ? SFXSTYLEBIT_USERDEF : 0 );
+
+ bRet = 0 != pDesc || USHRT_MAX != nPoolId;
+ if( bDeleteInfo )
+ pDesc = 0;
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ pNumRule = lcl_FindNumRule(rDoc, aName, this, bCreate);
+ bPhysical = 0 != pNumRule;
+ if( bFillOnlyInfo && !pNumRule )
+ {
+ bDeleteInfo = TRUE;
+ ::lcl_SaveStyles( nFamily, aDelArr, rDoc );
+ pNumRule = lcl_FindNumRule( rDoc, aName, this, TRUE );
+ }
+
+ if( pNumRule )
+ {
+ nPoolId = pNumRule->GetPoolFmtId();
+ nHelpId = pNumRule->GetPoolHelpId();
+ if( pNumRule->GetPoolHlpFileId() != UCHAR_MAX )
+ aHelpFile = *rDoc.GetDocPattern( pNumRule->GetPoolHlpFileId() );
+ else
+ aHelpFile.Erase();
+ }
+ else if( !bCreate )
+ nPoolId = rDoc.GetPoolId( aName, GET_POOLID_NUMRULE );
+ SetMask( USER_FMT & nPoolId ? SFXSTYLEBIT_USERDEF : 0 );
+
+ bRet = 0 != pNumRule || USHRT_MAX != nPoolId;
+
+ if( bDeleteInfo )
+ pNumRule = 0;
+ break;
+ }
+
+ if( SFX_STYLE_FAMILY_CHAR == nFamily ||
+ SFX_STYLE_FAMILY_PARA == nFamily ||
+ SFX_STYLE_FAMILY_FRAME == nFamily )
+ {
+ if( pFmt )
+ nPoolId = pFmt->GetPoolFmtId();
+
+ USHORT nMask = 0;
+ if( pFmt == rDoc.GetDfltCharFmt() )
+ nMask |= SFXSTYLEBIT_READONLY;
+ else if( USER_FMT & nPoolId )
+ nMask |= SFXSTYLEBIT_USERDEF;
+
+ switch ( COLL_GET_RANGE_BITS & nPoolId )
+ {
+ case COLL_TEXT_BITS: nMask |= SWSTYLEBIT_TEXT; break;
+ case COLL_DOC_BITS : nMask |= SWSTYLEBIT_CHAPTER; break;
+ case COLL_LISTS_BITS: nMask |= SWSTYLEBIT_LIST; break;
+ case COLL_REGISTER_BITS: nMask |= SWSTYLEBIT_IDX; break;
+ case COLL_EXTRA_BITS: nMask |= SWSTYLEBIT_EXTRA; break;
+ case COLL_HTML_BITS: nMask |= SWSTYLEBIT_HTML; break;
+ }
+
+ if( pFmt )
+ {
+ ASSERT( bPhysical, "Format nicht gefunden" );
+
+ nHelpId = pFmt->GetPoolHelpId();
+ if( pFmt->GetPoolHlpFileId() != UCHAR_MAX )
+ aHelpFile = *rDoc.GetDocPattern( pFmt->GetPoolHlpFileId() );
+ else
+ aHelpFile.Erase();
+
+ if( RES_CONDTXTFMTCOLL == pFmt->Which() )
+ nMask |= SWSTYLEBIT_CONDCOLL;
+ }
+
+ SetMask( nMask );
+ }
+ if( bDeleteInfo && bFillOnlyInfo )
+ ::lcl_DeleteInfoStyles( nFamily, aDelArr, rDoc );
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Neues Format in der Core anlegen
+ --------------------------------------------------------------------*/
+
+
+void SwDocStyleSheet::Create()
+{
+ switch(nFamily)
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ pCharFmt = lcl_FindCharFmt( rDoc, aName );
+ if( !pCharFmt )
+ pCharFmt = rDoc.MakeCharFmt(aName,
+ rDoc.GetDfltCharFmt());
+ pCharFmt->SetAuto( FALSE );
+ break;
+
+ case SFX_STYLE_FAMILY_PARA :
+ pColl = lcl_FindParaFmt( rDoc, aName );
+ if( !pColl )
+ {
+ SwTxtFmtColl *pPar = (*rDoc.GetTxtFmtColls())[0];
+ if( nMask & SWSTYLEBIT_CONDCOLL )
+ pColl = rDoc.MakeCondTxtFmtColl( aName, pPar );
+ else
+ pColl = rDoc.MakeTxtFmtColl( aName, pPar );
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ pFrmFmt = lcl_FindFrmFmt( rDoc, aName );
+ if( !pFrmFmt )
+ pFrmFmt = rDoc.MakeFrmFmt(aName, rDoc.GetDfltFrmFmt());
+ pFrmFmt->SetAuto( FALSE );
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE :
+ pDesc = lcl_FindPageDesc( rDoc, aName );
+ if( !pDesc )
+ {
+ USHORT nId = rDoc.MakePageDesc(aName);
+ pDesc = &rDoc.GetPageDesc(nId);
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ pNumRule = lcl_FindNumRule( rDoc, aName );
+ if( !pNumRule )
+ {
+ //JP 05.02.99: temp Namen erzeugen, damit kein ASSERT kommt
+ String sTmpNm( aName );
+ if( !aName.Len() )
+ sTmpNm = rDoc.GetUniqueNumRuleName();
+
+ SwNumRule* pRule = rDoc.GetNumRuleTbl()[
+ rDoc.MakeNumRule( sTmpNm ) ];
+ pRule->SetAutoRule( FALSE );
+ if( !aName.Len() )
+ pRule->SetName( aName );
+ pNumRule = pRule;
+ }
+ break;
+ }
+ bPhysical = TRUE;
+ aCoreSet.ClearItem();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Konkrete Formate rausholen
+ --------------------------------------------------------------------*/
+
+
+
+SwCharFmt* SwDocStyleSheet::GetCharFmt()
+{
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+ return pCharFmt;
+}
+
+
+SwTxtFmtColl* SwDocStyleSheet::GetCollection()
+{
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+ return pColl;
+}
+
+
+const SwPageDesc* SwDocStyleSheet::GetPageDesc()
+{
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+ return pDesc;
+}
+
+const SwNumRule * SwDocStyleSheet::GetNumRule()
+{
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+ return pNumRule;
+}
+
+void SwDocStyleSheet::SetNumRule(const SwNumRule& rRule)
+{
+ DBG_ASSERT(pNumRule, "Wo ist die NumRule")
+ rDoc.ChgNumRuleFmts( rRule );
+}
+
+// Namen UND Familie aus String re-generieren
+// First() und Next() (s.u.) fuegen einen Kennbuchstaben an Pos.1 ein
+
+void SwDocStyleSheet::PresetNameAndFamily(const String& rName)
+{
+ switch( rName.GetChar(0) )
+ {
+ case cPARA: nFamily = SFX_STYLE_FAMILY_PARA; break;
+ case cFRAME: nFamily = SFX_STYLE_FAMILY_FRAME; break;
+ case cPAGE: nFamily = SFX_STYLE_FAMILY_PAGE; break;
+ case cNUMRULE: nFamily = SFX_STYLE_FAMILY_PSEUDO; break;
+ default: nFamily = SFX_STYLE_FAMILY_CHAR; break;
+ }
+ aName = rName;
+ aName.Erase( 0, 1 );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ist das Format physikalisch schon vorhanden
+ --------------------------------------------------------------------*/
+
+
+void SwDocStyleSheet::SetPhysical(BOOL bPhys)
+{
+ bPhysical = bPhys;
+
+ if(!bPhys)
+ {
+ pCharFmt = 0;
+ pColl = 0;
+ pFrmFmt = 0;
+ pDesc = 0;
+ }
+}
+
+SwFrmFmt* SwDocStyleSheet::GetFrmFmt()
+{
+ if(!bPhysical)
+ FillStyleSheet( FillPhysical );
+ return pFrmFmt;
+}
+
+
+BOOL SwDocStyleSheet::IsUsed() const
+{
+ if( !bPhysical )
+ {
+ SwDocStyleSheet* pThis = (SwDocStyleSheet*)this;
+ pThis->FillStyleSheet( FillOnlyName );
+ }
+
+ // immer noch nicht ?
+ if( !bPhysical )
+ return FALSE;
+
+ const SwModify* pMod;
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_CHAR : pMod = pCharFmt; break;
+ case SFX_STYLE_FAMILY_PARA : pMod = pColl; break;
+ case SFX_STYLE_FAMILY_FRAME: pMod = pFrmFmt; break;
+ case SFX_STYLE_FAMILY_PAGE : pMod = pDesc; break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ return pNumRule ? rDoc.IsUsed( *pNumRule ) : FALSE;
+
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ return FALSE;
+ }
+ return rDoc.IsUsed( *pMod );
+}
+
+
+ULONG SwDocStyleSheet::GetHelpId( String& rFile )
+{
+static String sTemplateHelpFile = String::CreateFromAscii("swrhlppi.hlp");
+
+ USHORT nId, nPoolId;
+ unsigned char nFileId = UCHAR_MAX;
+
+ rFile = sTemplateHelpFile;
+
+ const SwFmt* pTmpFmt = 0;
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ if( !pCharFmt &&
+ 0 == (pCharFmt = lcl_FindCharFmt( rDoc, aName, 0, FALSE )) )
+ {
+ nId = rDoc.GetPoolId( aName, GET_POOLID_CHRFMT );
+ return USHRT_MAX == nId ? 0 : nId;
+ }
+ pTmpFmt = pCharFmt;
+ break;
+
+ case SFX_STYLE_FAMILY_PARA:
+ if( !pColl &&
+ 0 == ( pColl = lcl_FindParaFmt( rDoc, aName, 0, FALSE )) )
+ {
+ nId = rDoc.GetPoolId( aName, GET_POOLID_TXTCOLL );
+ return USHRT_MAX == nId ? 0 : nId;
+ }
+ pTmpFmt = pColl;
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ if( !pFrmFmt &&
+ 0 == ( pFrmFmt = lcl_FindFrmFmt( rDoc, aName, 0, FALSE ) ) )
+ {
+ nId = rDoc.GetPoolId( aName, GET_POOLID_FRMFMT );
+ return USHRT_MAX == nId ? 0 : nId;
+ }
+ pTmpFmt = pFrmFmt;
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ if( !pDesc &&
+ 0 == ( pDesc = lcl_FindPageDesc( rDoc, aName, 0, FALSE ) ) )
+ {
+ nId = rDoc.GetPoolId( aName, GET_POOLID_PAGEDESC );
+ return USHRT_MAX == nId ? 0 : nId;
+ }
+
+ nId = pDesc->GetPoolHelpId();
+ nFileId = pDesc->GetPoolHlpFileId();
+ nPoolId = pDesc->GetPoolFmtId();
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ if( !pNumRule &&
+ 0 == ( pNumRule = lcl_FindNumRule( rDoc, aName, 0, FALSE ) ) )
+ {
+ nId = rDoc.GetPoolId( aName, GET_POOLID_NUMRULE );
+ return USHRT_MAX == nId ? 0 : nId;
+ }
+
+ nId = pNumRule->GetPoolHelpId();
+ nFileId = pNumRule->GetPoolHlpFileId();
+ nPoolId = pNumRule->GetPoolFmtId();
+ break;
+
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ return 0;
+ }
+
+ if( pTmpFmt )
+ {
+ nId = pTmpFmt->GetPoolHelpId();
+ nFileId = pTmpFmt->GetPoolHlpFileId();
+ nPoolId = pTmpFmt->GetPoolFmtId();
+ }
+
+ if( UCHAR_MAX != nFileId )
+ {
+ const String *pTemplate = rDoc.GetDocPattern( nFileId );
+ if( pTemplate )
+ {
+// const String aHelpPath(MakeHelpPath(*pTemplate));
+ rFile = *pTemplate;
+ }
+ }
+ else if( !IsPoolUserFmt( nPoolId ) )
+ {
+ nId = nPoolId;
+ }
+
+ // weil sich der SFX so anstellt mit der HilfeId:
+ if( USHRT_MAX == nId )
+ nId = 0; // entsp. keine Hilfe anzeigen
+
+ return nId;
+}
+
+
+void SwDocStyleSheet::SetHelpId( const String& r, ULONG nId )
+{
+ BYTE nFileId = rDoc.SetDocPattern( r );
+ USHORT nHId = nId; //!! SFX hat eigenmaechtig auf ULONG umgestellt!
+
+ SwFmt* pTmpFmt = 0;
+ switch( nFamily )
+ {
+ case SFX_STYLE_FAMILY_CHAR : pTmpFmt = pCharFmt; break;
+ case SFX_STYLE_FAMILY_PARA : pTmpFmt = pColl; break;
+ case SFX_STYLE_FAMILY_FRAME: pTmpFmt = pFrmFmt; break;
+ case SFX_STYLE_FAMILY_PAGE :
+ ((SwPageDesc*)pDesc)->SetPoolHelpId( nHId );
+ ((SwPageDesc*)pDesc)->SetPoolHlpFileId( nFileId );
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ ((SwNumRule*)pNumRule)->SetPoolHelpId( nHId );
+ ((SwNumRule*)pNumRule)->SetPoolHlpFileId( nFileId );
+ break;
+
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ return ;
+ }
+ if( pTmpFmt )
+ {
+ pTmpFmt->SetPoolHelpId( nHId );
+ pTmpFmt->SetPoolHlpFileId( nFileId );
+ }
+}
+
+
+/* */
+
+/*--------------------------------------------------------------------
+ Beschreibung: Methoden fuer den DocStyleSheetPool
+ --------------------------------------------------------------------*/
+
+SwDocStyleSheetPool::SwDocStyleSheetPool( SwDoc& rDocument, BOOL bOrg )
+ : SfxStyleSheetBasePool( rDocument.GetAttrPool() ),
+ aStyleSheet( rDocument, aEmptyStr, *this, SFX_STYLE_FAMILY_CHAR, 0 ),
+ rDoc( rDocument )
+{
+ bOrganizer = bOrg;
+}
+
+ SwDocStyleSheetPool::~SwDocStyleSheetPool()
+{
+}
+
+SfxStyleSheetBase& SwDocStyleSheetPool::Make(
+ const String& rName,
+ SfxStyleFamily eFam,
+ USHORT nMask,
+ USHORT nPos )
+{
+ aStyleSheet.PresetName(rName);
+ aStyleSheet.PresetParent(aEmptyStr);
+ aStyleSheet.PresetFollow(aEmptyStr);
+ aStyleSheet.SetMask(nMask) ;
+ aStyleSheet.SetFamily(eFam);
+ aStyleSheet.SetPhysical(TRUE);
+ aStyleSheet.Create();
+
+ return aStyleSheet;
+}
+
+
+SfxStyleSheetBase* SwDocStyleSheetPool::Create( const SfxStyleSheetBase& rOrg)
+{
+ ASSERT(!this , "Create im SW-Stylesheet-Pool geht nicht" );
+ return NULL;
+}
+
+
+SfxStyleSheetBase* SwDocStyleSheetPool::Create( const String &,
+ SfxStyleFamily, USHORT )
+{
+ ASSERT( !this, "Create im SW-Stylesheet-Pool geht nicht" );
+ return NULL;
+}
+
+void SwDocStyleSheetPool::Replace( SfxStyleSheetBase& rSource,
+ SfxStyleSheetBase& rTarget )
+{
+ SfxStyleFamily eFamily( rSource.GetFamily() );
+ if( rSource.HasParentSupport())
+ {
+ const String& rParentName = rSource.GetParent();
+ if( 0 != rParentName.Len() )
+ {
+ SfxStyleSheetBase* pParentOfNew = Find( rParentName, eFamily );
+ if( pParentOfNew )
+ rTarget.SetParent( rParentName );
+ }
+ }
+ if( rSource.HasFollowSupport())
+ {
+ const String& rFollowName = rSource.GetFollow();
+ if( 0 != rFollowName.Len() )
+ {
+ SfxStyleSheetBase* pFollowOfNew = Find( rFollowName, eFamily );
+ if( pFollowOfNew )
+ rTarget.SetFollow( rFollowName );
+ }
+ }
+
+ SwImplShellAction aTmpSh( rDoc );
+
+ BOOL bSwSrcPool = GetAppName() == rSource.GetPool().GetAppName();
+ if( SFX_STYLE_FAMILY_PAGE == eFamily && bSwSrcPool )
+ {
+ // gesondert behandeln!!
+ SwPageDesc* pDestDsc =
+ (SwPageDesc*)((SwDocStyleSheet&)rTarget).GetPageDesc();
+ SwPageDesc* pCpyDsc =
+ (SwPageDesc*)((SwDocStyleSheet&)rSource).GetPageDesc();
+ rDoc.CopyPageDesc( *pCpyDsc, *pDestDsc );
+ }
+ else
+ {
+ const SwFmt *pSourceFmt = 0;
+ SwFmt *pTargetFmt = 0;
+ SwPageDesc *pTargetDesc = 0;
+ USHORT nPgDscPos = USHRT_MAX;
+ switch( eFamily )
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ if( bSwSrcPool )
+ pSourceFmt = ((SwDocStyleSheet&)rSource).GetCharFmt();
+ pTargetFmt = ((SwDocStyleSheet&)rTarget).GetCharFmt();
+ break;
+ case SFX_STYLE_FAMILY_PARA :
+ if( bSwSrcPool )
+ pSourceFmt = ((SwDocStyleSheet&)rSource).GetCollection();
+ pTargetFmt = ((SwDocStyleSheet&)rTarget).GetCollection();
+ break;
+ case SFX_STYLE_FAMILY_FRAME:
+ if( bSwSrcPool )
+ pSourceFmt = ((SwDocStyleSheet&)rSource).GetFrmFmt();
+ pTargetFmt = ((SwDocStyleSheet&)rTarget).GetFrmFmt();
+ break;
+ case SFX_STYLE_FAMILY_PAGE:
+ if( bSwSrcPool )
+ pSourceFmt = &((SwDocStyleSheet&)rSource).GetPageDesc()
+ ->GetMaster();
+ {
+ SwPageDesc *pDesc = rDoc.FindPageDescByName(
+ ((SwDocStyleSheet&)rTarget).GetPageDesc()->GetName(),
+ &nPgDscPos );
+
+ if( pDesc )
+ pTargetFmt = &pDesc->GetMaster();
+ }
+ break;
+ case SFX_STYLE_FAMILY_PSEUDO:
+ // Eine NumRule besteht nur aus einem Item, also muss man
+ // hier nichts loeschen.
+ break;
+ }
+ if( pTargetFmt )
+ {
+ if( pSourceFmt )
+ pTargetFmt->DelDiffs( *pSourceFmt );
+ else if( USHRT_MAX != nPgDscPos )
+ pTargetFmt->ResetAttr( RES_PAGEDESC, RES_FRMATR_END-1 );
+ else
+ pTargetFmt->ResetAllAttr();
+
+ if( USHRT_MAX != nPgDscPos )
+ rDoc.ChgPageDesc( nPgDscPos, rDoc.GetPageDesc(nPgDscPos) );
+ }
+ ((SwDocStyleSheet&)rTarget).SetItemSet( rSource.GetItemSet() );
+ }
+}
+
+SfxStyleSheetIterator* SwDocStyleSheetPool::CreateIterator(
+ SfxStyleFamily eFam, USHORT nMask )
+{
+ return new SwStyleSheetIterator( this, eFam, nMask );
+}
+
+void SwDocStyleSheetPool::Erase( SfxStyleSheetBase* pStyle)
+{
+ if( !pStyle )
+ return;
+
+ BOOL bBroadcast = TRUE;
+ SwImplShellAction aTmpSh( rDoc );
+ const String& rName = pStyle->GetName();
+ switch( pStyle->GetFamily() )
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ SwCharFmt* pFmt = lcl_FindCharFmt(rDoc, rName, 0, FALSE );
+ if(pFmt)
+ rDoc.DelCharFmt(pFmt);
+ }
+ break;
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ SwTxtFmtColl* pColl = lcl_FindParaFmt(rDoc, rName, 0, FALSE );
+ if(pColl)
+ rDoc.DelTxtFmtColl(pColl);
+ }
+ break;
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ SwFrmFmt* pFmt = lcl_FindFrmFmt(rDoc, rName, 0, FALSE );
+ if(pFmt)
+ rDoc.DelFrmFmt(pFmt);
+ }
+ break;
+ case SFX_STYLE_FAMILY_PAGE :
+ {
+ USHORT nPos;
+ if( rDoc.FindPageDescByName( rName, &nPos ))
+ rDoc.DelPageDesc( nPos );
+ }
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ if( !rDoc.DelNumRule( rName ) )
+ // Broadcast nur versenden, wenn etwas geloescht wurde
+ bBroadcast = FALSE;
+ }
+ break;
+
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ bBroadcast = FALSE;
+ }
+
+ if( bBroadcast )
+ Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_ERASED, *pStyle ) );
+}
+
+
+
+BOOL SwDocStyleSheetPool::SetParent( SfxStyleFamily eFam,
+ const String &rStyle, const String &rParent )
+{
+ SwFmt* pFmt = 0, *pParent = 0;
+ switch( eFam )
+ {
+ case SFX_STYLE_FAMILY_CHAR :
+ if( 0 != ( pFmt = lcl_FindCharFmt( rDoc, rStyle ) ) && rParent.Len() )
+ pParent = lcl_FindCharFmt(rDoc, rParent );
+ break;
+
+ case SFX_STYLE_FAMILY_PARA :
+ if( 0 != ( pFmt = lcl_FindParaFmt( rDoc, rStyle ) ) && rParent.Len() )
+ pParent = lcl_FindParaFmt( rDoc, rParent );
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ if( 0 != ( pFmt = lcl_FindFrmFmt( rDoc, rStyle ) ) && rParent.Len() )
+ pParent = lcl_FindFrmFmt( rDoc, rParent );
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ case SFX_STYLE_FAMILY_PSEUDO:
+ break;
+
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ }
+
+ BOOL bRet = FALSE;
+ if( pFmt && pFmt->DerivedFrom() &&
+ pFmt->DerivedFrom()->GetName() != rParent )
+ {
+ {
+ SwImplShellAction aTmpSh( rDoc );
+ bRet = pFmt->SetDerivedFrom( pParent );
+ }
+
+ if( bRet )
+ {
+ // nur fuer das Broadcasting
+ aStyleSheet.PresetName( rStyle );
+ aStyleSheet.PresetParent( rParent );
+ if( SFX_STYLE_FAMILY_PARA == eFam )
+ aStyleSheet.PresetFollow( ((SwTxtFmtColl*)pFmt)->
+ GetNextTxtFmtColl().GetName() );
+ else
+ aStyleSheet.PresetFollow( aEmptyStr );
+
+ Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_MODIFIED,
+ aStyleSheet ) );
+ }
+ }
+
+ return bRet;
+}
+
+SfxStyleSheetBase* SwDocStyleSheetPool::Find( const String& rName,
+ SfxStyleFamily eFam, USHORT n )
+{
+ USHORT nSMask = n;
+ if( SFX_STYLE_FAMILY_PARA == eFam && rDoc.IsHTMLMode() )
+ {
+ // dann sind nur HTML-Vorlagen von Interesse
+ if( USHRT_MAX == nSMask )
+ nSMask = SWSTYLEBIT_HTML | SFXSTYLEBIT_USERDEF | SFXSTYLEBIT_USED;
+ else
+ nSMask &= SFXSTYLEBIT_USED | SFXSTYLEBIT_USERDEF |
+ SWSTYLEBIT_CONDCOLL | SWSTYLEBIT_HTML;
+ if( !nSMask )
+ nSMask = SWSTYLEBIT_HTML;
+ }
+
+ const BOOL bSearchUsed = ( n != SFXSTYLEBIT_ALL &&
+ n & SFXSTYLEBIT_USED ) ? TRUE : FALSE;
+ const SwModify* pMod = 0;
+
+ aStyleSheet.SetPhysical( FALSE );
+ aStyleSheet.PresetName( rName );
+ aStyleSheet.SetFamily( eFam );
+ BOOL bFnd = aStyleSheet.FillStyleSheet( SwDocStyleSheet::FillOnlyName );
+
+ if( aStyleSheet.IsPhysical() )
+ {
+ switch( eFam )
+ {
+ case SFX_STYLE_FAMILY_CHAR:
+ pMod = aStyleSheet.GetCharFmt();
+ break;
+
+ case SFX_STYLE_FAMILY_PARA:
+ pMod = aStyleSheet.GetCollection();
+ break;
+
+ case SFX_STYLE_FAMILY_FRAME:
+ pMod = aStyleSheet.GetFrmFmt();
+ break;
+
+ case SFX_STYLE_FAMILY_PAGE:
+ pMod = aStyleSheet.GetPageDesc();
+ break;
+
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ const SwNumRule* pRule = aStyleSheet.GetNumRule();
+ if( pRule &&
+ !(bSearchUsed && (bOrganizer || rDoc.IsUsed(*pRule)) ) &&
+ (( nSMask & ~SFXSTYLEBIT_USED) == SFXSTYLEBIT_USERDEF
+ ? !(pRule->GetPoolFmtId() & USER_FMT)
+ // benutzte gesucht und keine gefunden
+ : bSearchUsed ))
+ bFnd = FALSE;
+ }
+ break;
+
+ default:
+ ASSERT(!this, "unbekannte Style-Familie");
+ }
+ }
+
+ // dann noch die Maske auswerten:
+ if( pMod && !(bSearchUsed && (bOrganizer || rDoc.IsUsed(*pMod)) ) )
+ {
+ const USHORT nId = SFX_STYLE_FAMILY_PAGE == eFam
+ ? ((SwPageDesc*)pMod)->GetPoolFmtId()
+ : ((SwFmt*)pMod)->GetPoolFmtId();
+
+ if( ( nSMask & ~SFXSTYLEBIT_USED) == SFXSTYLEBIT_USERDEF
+ ? !(nId & USER_FMT)
+ // benutzte gesucht und keine gefunden
+ : bSearchUsed )
+ bFnd = FALSE;
+ }
+ return bFnd ? &aStyleSheet : 0;
+}
+
+/* */
+
+SwStyleSheetIterator::SwStyleSheetIterator( SwDocStyleSheetPool* pBase,
+ SfxStyleFamily eFam, USHORT n )
+ : SfxStyleSheetIterator( pBase, eFam, n ),
+ aIterSheet( pBase->GetDoc(), aEmptyStr, *pBase, SFX_STYLE_FAMILY_CHAR, 0 ),
+ aStyleSheet( pBase->GetDoc(), aEmptyStr, *pBase, SFX_STYLE_FAMILY_CHAR, 0 )
+{
+ bFirstCalled = FALSE;
+ nLastPos = 0;
+ StartListening( *pBase );
+}
+
+ SwStyleSheetIterator::~SwStyleSheetIterator()
+{
+ EndListening( aIterSheet.GetPool() );
+}
+
+USHORT SwStyleSheetIterator::Count()
+{
+ // Liste richtig fuellen lassen !!
+ if( !bFirstCalled )
+ First();
+ return aLst.Count();
+}
+
+SfxStyleSheetBase* SwStyleSheetIterator::operator[]( USHORT nIdx )
+{
+ // gefunden
+ if( !bFirstCalled )
+ First();
+ aStyleSheet.PresetNameAndFamily( *aLst[ nIdx ] );
+ aStyleSheet.SetPhysical( FALSE );
+ aStyleSheet.FillStyleSheet( SwDocStyleSheet::FillOnlyName );
+
+ return &aStyleSheet;
+}
+
+SfxStyleSheetBase* SwStyleSheetIterator::First()
+{
+ // Alte Liste loeschen
+ bFirstCalled = TRUE;
+ nLastPos = 0;
+ aLst.Erase();
+
+ // aktuellen loeschen
+ aIterSheet.Reset();
+
+ SwDoc& rDoc = ((SwDocStyleSheetPool*)pBasePool)->GetDoc();
+ const USHORT nSrchMask = nMask;
+ const BOOL bSearchUsed = SearchUsed();
+
+ const BOOL bOrganizer = ((SwDocStyleSheetPool*)pBasePool)->IsOrganizerMode();
+
+ if( nSearchFamily == SFX_STYLE_FAMILY_CHAR
+ || nSearchFamily == SFX_STYLE_FAMILY_ALL )
+ {
+ const USHORT nArrLen = rDoc.GetCharFmts()->Count();
+ for( USHORT i = 0; i < nArrLen; i++ )
+ {
+ SwCharFmt* pFmt = (*rDoc.GetCharFmts())[ i ];
+ if( pFmt->IsDefault() && pFmt != rDoc.GetDfltCharFmt() )
+ continue;
+
+ const BOOL bUsed = bSearchUsed && (bOrganizer || rDoc.IsUsed(*pFmt));
+ if( !bUsed )
+ {
+ // Standard ist keine Benutzervorlage #46181#
+ const USHORT nId = rDoc.GetDfltCharFmt() == pFmt ?
+ RES_POOLCHR_INET_NORMAL :
+ pFmt->GetPoolFmtId();
+ if( (nSrchMask & ~SFXSTYLEBIT_USED) == SFXSTYLEBIT_USERDEF
+ ? !(nId & USER_FMT)
+ // benutzte gesucht und keine gefunden
+ : bSearchUsed )
+ continue;
+
+ if( rDoc.IsHTMLMode() && !(nId & USER_FMT) &&
+ !( RES_POOLCHR_HTML_BEGIN <= nId &&
+ nId < RES_POOLCHR_HTML_END ) &&
+ RES_POOLCHR_INET_NORMAL != nId &&
+ RES_POOLCHR_INET_VISIT != nId &&
+ RES_POOLCHR_FOOTNOTE != nId &&
+ RES_POOLCHR_ENDNOTE != nId )
+ continue;
+ }
+
+ aLst.Append( cCHAR, pFmt == rDoc.GetDfltCharFmt()
+ ? (const String&) *rDoc.GetTextNmArray()[ RES_POOLCOLL_STANDARD -
+ RES_POOLCOLL_TEXT_BEGIN ]
+ : pFmt->GetName() );
+ }
+
+ // PoolFormate
+ //
+ if( nSrchMask == SFXSTYLEBIT_ALL )
+ {
+ if( !rDoc.IsHTMLMode() )
+ AppendStyleList(rDoc.GetChrFmtNmArray(),
+ bSearchUsed, GET_POOLID_CHRFMT, cCHAR);
+ else
+ {
+ aLst.Append( cCHAR, *rDoc.GetChrFmtNmArray()[
+ RES_POOLCHR_INET_NORMAL - RES_POOLCHR_BEGIN ] );
+ aLst.Append( cCHAR, *rDoc.GetChrFmtNmArray()[
+ RES_POOLCHR_INET_VISIT - RES_POOLCHR_BEGIN ] );
+ aLst.Append( cCHAR, *rDoc.GetChrFmtNmArray()[
+ RES_POOLCHR_ENDNOTE - RES_POOLCHR_BEGIN ] );
+ aLst.Append( cCHAR, *rDoc.GetChrFmtNmArray()[
+ RES_POOLCHR_FOOTNOTE - RES_POOLCHR_BEGIN ] );
+ }
+ AppendStyleList(rDoc.GetHTMLChrFmtNmArray(),
+ bSearchUsed, GET_POOLID_CHRFMT, cCHAR);
+ }
+ }
+
+ if( nSearchFamily == SFX_STYLE_FAMILY_PARA ||
+ nSearchFamily == SFX_STYLE_FAMILY_ALL )
+ {
+ USHORT nSMask = nSrchMask;
+ if( rDoc.IsHTMLMode() )
+ {
+ // dann sind nur HTML-Vorlagen von Interesse
+ if( USHRT_MAX == nSMask )
+ nSMask = SWSTYLEBIT_HTML | SFXSTYLEBIT_USERDEF |
+ SFXSTYLEBIT_USED;
+ else
+ nSMask &= SFXSTYLEBIT_USED | SFXSTYLEBIT_USERDEF |
+ SWSTYLEBIT_CONDCOLL | SWSTYLEBIT_HTML;
+ if( !nSMask )
+ nSMask = SWSTYLEBIT_HTML;
+ }
+
+ const USHORT nArrLen = rDoc.GetTxtFmtColls()->Count();
+ for( USHORT i = 0; i < nArrLen; i++ )
+ {
+ SwTxtFmtColl* pColl = (*rDoc.GetTxtFmtColls())[ i ];
+
+ if(pColl->IsDefault())
+ continue;
+
+ const BOOL bUsed = bOrganizer || rDoc.IsUsed(*pColl);
+ if( !(bSearchUsed && bUsed ))
+ {
+ const USHORT nId = pColl->GetPoolFmtId();
+ switch ( (nSMask & ~SFXSTYLEBIT_USED) )
+ {
+ case SFXSTYLEBIT_USERDEF:
+ if(!IsPoolUserFmt(nId)) continue;
+ break;
+ case SWSTYLEBIT_TEXT:
+ if((nId & COLL_GET_RANGE_BITS) != COLL_TEXT_BITS) continue;
+ break;
+ case SWSTYLEBIT_CHAPTER:
+ if((nId & COLL_GET_RANGE_BITS) != COLL_DOC_BITS) continue;
+ break;
+ case SWSTYLEBIT_LIST:
+ if((nId & COLL_GET_RANGE_BITS) != COLL_LISTS_BITS) continue;
+ break;
+ case SWSTYLEBIT_IDX:
+ if((nId & COLL_GET_RANGE_BITS) != COLL_REGISTER_BITS) continue;
+ break;
+ case SWSTYLEBIT_EXTRA:
+ if((nId & COLL_GET_RANGE_BITS) != COLL_EXTRA_BITS) continue;
+ break;
+
+ case SWSTYLEBIT_HTML | SFXSTYLEBIT_USERDEF:
+ if(IsPoolUserFmt(nId))
+ break;
+ // ansonten weiter
+ case SWSTYLEBIT_HTML:
+ if( (nId & COLL_GET_RANGE_BITS) != COLL_HTML_BITS)
+ {
+ // einige wollen wir aber auch in dieser Section sehen
+ BOOL bWeiter = TRUE;
+ switch( nId )
+ {
+ case RES_POOLCOLL_SENDADRESS: // --> ADDRESS
+ case RES_POOLCOLL_TABLE_HDLN: // --> TH
+ case RES_POOLCOLL_TABLE: // --> TD
+ case RES_POOLCOLL_TEXT: // --> P
+ case RES_POOLCOLL_HEADLINE_BASE:// --> H
+ case RES_POOLCOLL_HEADLINE1: // --> H1
+ case RES_POOLCOLL_HEADLINE2: // --> H2
+ case RES_POOLCOLL_HEADLINE3: // --> H3
+ case RES_POOLCOLL_HEADLINE4: // --> H4
+ case RES_POOLCOLL_HEADLINE5: // --> H5
+ case RES_POOLCOLL_HEADLINE6: // --> H6
+ case RES_POOLCOLL_STANDARD: // --> P
+ case RES_POOLCOLL_FOOTNOTE:
+ case RES_POOLCOLL_ENDNOTE:
+ bWeiter = FALSE;
+ break;
+ }
+ if( bWeiter )
+ continue;
+ }
+ break;
+ case SWSTYLEBIT_CONDCOLL:
+ if( RES_CONDTXTFMTCOLL != pColl->Which() ) continue;
+ break;
+ default:
+ // benutzte gesucht und keine gefunden
+ if( bSearchUsed )
+ continue;
+ }
+ }
+ aLst.Append( cPARA, pColl->GetName() );
+ }
+
+ const BOOL bAll = nSMask == SFXSTYLEBIT_ALL;
+ if ( bAll || (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_TEXT )
+ AppendStyleList(rDoc.GetTextNmArray(),
+ bSearchUsed, GET_POOLID_TXTCOLL, cPARA );
+ if ( bAll || (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_CHAPTER )
+ AppendStyleList(rDoc.GetDocNmArray(),
+ bSearchUsed, GET_POOLID_TXTCOLL, cPARA ) ;
+ if ( bAll || (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_LIST )
+ AppendStyleList(rDoc.GetListsNmArray(),
+ bSearchUsed, GET_POOLID_TXTCOLL, cPARA ) ;
+ if ( bAll || (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_IDX )
+ AppendStyleList(rDoc.GetRegisterNmArray(),
+ bSearchUsed, GET_POOLID_TXTCOLL, cPARA ) ;
+ if ( bAll || (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_EXTRA )
+ AppendStyleList(rDoc.GetExtraNmArray(),
+ bSearchUsed, GET_POOLID_TXTCOLL, cPARA ) ;
+ if ( bAll || (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_CONDCOLL )
+ {
+ if( !bSearchUsed ||
+ rDoc.IsPoolTxtCollUsed( RES_POOLCOLL_TEXT ))
+ aLst.Append( cPARA, *rDoc.GetTextNmArray()[
+ RES_POOLCOLL_TEXT - RES_POOLCOLL_TEXT_BEGIN ] );
+ }
+ if ( bAll ||
+ (nSMask & ~SFXSTYLEBIT_USED) == SWSTYLEBIT_HTML ||
+ (nSMask & ~SFXSTYLEBIT_USED) ==
+ (SWSTYLEBIT_HTML | SFXSTYLEBIT_USERDEF) )
+ {
+ AppendStyleList(rDoc.GetHTMLNmArray(),
+ bSearchUsed, GET_POOLID_TXTCOLL, cPARA ) ;
+ if( !bAll )
+ {
+ // dann auch die, die wir mappen:
+ static USHORT aPoolIds[] = {
+ RES_POOLCOLL_SENDADRESS, // --> ADDRESS
+ RES_POOLCOLL_TABLE_HDLN, // --> TH
+ RES_POOLCOLL_TABLE, // --> TD
+ RES_POOLCOLL_STANDARD, // --> P
+ RES_POOLCOLL_TEXT, // --> P
+ RES_POOLCOLL_HEADLINE_BASE, // --> H
+ RES_POOLCOLL_HEADLINE1, // --> H1
+ RES_POOLCOLL_HEADLINE2, // --> H2
+ RES_POOLCOLL_HEADLINE3, // --> H3
+ RES_POOLCOLL_HEADLINE4, // --> H4
+ RES_POOLCOLL_HEADLINE5, // --> H5
+ RES_POOLCOLL_HEADLINE6, // --> H6
+ RES_POOLCOLL_FOOTNOTE,
+ RES_POOLCOLL_ENDNOTE,
+ 0
+ };
+
+ USHORT* pPoolIds = aPoolIds;
+ String s;
+ while( *pPoolIds )
+ {
+ if( !bSearchUsed || rDoc.IsPoolTxtCollUsed( *pPoolIds ) )
+ aLst.Append( cPARA, rDoc.GetPoolNm( *pPoolIds, s ));
+ ++pPoolIds;
+ }
+ }
+ }
+ }
+
+ if( nSearchFamily == SFX_STYLE_FAMILY_FRAME ||
+ nSearchFamily == SFX_STYLE_FAMILY_ALL )
+ {
+ const USHORT nArrLen = rDoc.GetFrmFmts()->Count();
+ for( USHORT i = 0; i < nArrLen; i++ )
+ {
+ SwFrmFmt* pFmt = (*rDoc.GetFrmFmts())[ i ];
+ if(pFmt->IsDefault() || pFmt->IsAuto())
+ continue;
+
+ const USHORT nId = pFmt->GetPoolFmtId();
+ BOOL bUsed = bSearchUsed && ( bOrganizer || rDoc.IsUsed(*pFmt));
+ if( !bUsed )
+ {
+ if( (nSrchMask & ~SFXSTYLEBIT_USED) == SFXSTYLEBIT_USERDEF
+ ? !(nId & USER_FMT)
+ // benutzte gesucht und keine gefunden
+ : bSearchUsed )
+ continue;
+ }
+
+ aLst.Append( cFRAME, pFmt->GetName() );
+ }
+
+ // PoolFormate
+ //
+ if ( nSrchMask == SFXSTYLEBIT_ALL )
+ AppendStyleList(rDoc.GetFrmFmtNmArray(),
+ bSearchUsed, GET_POOLID_FRMFMT, cFRAME);
+ }
+
+ if( nSearchFamily == SFX_STYLE_FAMILY_PAGE ||
+ nSearchFamily == SFX_STYLE_FAMILY_ALL )
+ {
+ const USHORT nCount = rDoc.GetPageDescCnt();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const SwPageDesc& rDesc = rDoc.GetPageDesc(i);
+ const USHORT nId = rDesc.GetPoolFmtId();
+ BOOL bUsed = bSearchUsed && ( bOrganizer || rDoc.IsUsed(rDesc));
+ if( !bUsed )
+ {
+ if( (nSrchMask & ~SFXSTYLEBIT_USED) == SFXSTYLEBIT_USERDEF
+ ? !(nId & USER_FMT)
+ // benutzte gesucht und keine gefunden
+ : bSearchUsed )
+ continue;
+ }
+
+ aLst.Append( cPAGE, rDesc.GetName() );
+ }
+ if ( nSrchMask == SFXSTYLEBIT_ALL )
+ AppendStyleList(rDoc.GetPageDescNmArray(),
+ bSearchUsed, GET_POOLID_PAGEDESC, cPAGE);
+ }
+
+ if( nSearchFamily == SFX_STYLE_FAMILY_PSEUDO ||
+ nSearchFamily == SFX_STYLE_FAMILY_ALL )
+ {
+ const SwNumRuleTbl& rNumTbl = rDoc.GetNumRuleTbl();
+ for(USHORT i = 0; i < rNumTbl.Count(); ++i)
+ {
+ const SwNumRule& rRule = *rNumTbl[ i ];
+ if( !rRule.IsAutoRule() )
+ {
+ BOOL bUsed = bSearchUsed && ( bOrganizer || rDoc.IsUsed(rRule) );
+ if( !bUsed )
+ {
+ if( (nSrchMask & ~SFXSTYLEBIT_USED) == SFXSTYLEBIT_USERDEF
+ ? !(rRule.GetPoolFmtId() & USER_FMT)
+ // benutzte gesucht und keine gefunden
+ : bSearchUsed )
+ continue;
+ }
+
+ aLst.Append( cNUMRULE, rRule.GetName() );
+ }
+ }
+ if ( nSrchMask == SFXSTYLEBIT_ALL )
+ AppendStyleList(rDoc.GetNumRuleNmArray(),
+ bSearchUsed, GET_POOLID_NUMRULE, cNUMRULE);
+ }
+
+ if(aLst.Count() > 0)
+ {
+ nLastPos = USHRT_MAX;
+ return Next();
+ }
+ return 0;
+}
+
+SfxStyleSheetBase* SwStyleSheetIterator::Next()
+{
+ nLastPos++;
+ if(aLst.Count() > 0 && nLastPos < aLst.Count())
+ {
+ aIterSheet.PresetNameAndFamily(*aLst[nLastPos]);
+ aIterSheet.SetPhysical( FALSE );
+ aIterSheet.SetMask( nMask );
+ if(aIterSheet.pSet)
+ {
+ aIterSheet.pSet->ClearItem(0);
+ aIterSheet.pSet= 0;
+ }
+ return &aIterSheet;
+ }
+ return 0;
+}
+
+#ifndef ENABLEUNICODE
+SfxStyleSheetBase* SwStyleSheetIterator::Find( const String& rName )
+#else
+SfxStyleSheetBase* SwStyleSheetIterator::Find( const UniString& rName )
+#endif
+{
+ // suchen
+ if( !bFirstCalled )
+ First();
+
+ nLastPos = lcl_FindName( aLst, nSearchFamily, rName );
+ if( USHRT_MAX != nLastPos )
+ {
+ // gefunden
+ aStyleSheet.PresetNameAndFamily(*aLst[nLastPos]);
+ // neuer Name gesetzt, also bestimme seine Daten
+ aStyleSheet.FillStyleSheet( SwDocStyleSheet::FillOnlyName );
+ if( !aStyleSheet.IsPhysical() )
+ aStyleSheet.SetPhysical( FALSE );
+
+ return &aStyleSheet;
+ }
+ return 0;
+}
+
+void SwStyleSheetIterator::AppendStyleList(const SvStringsDtor& rList,
+ BOOL bTestUsed,
+ USHORT nSection, char cType )
+{
+ if( bTestUsed )
+ {
+ SwDoc& rDoc = ((SwDocStyleSheetPool*)pBasePool)->GetDoc();
+ for ( USHORT i=0; i < rList.Count(); ++i )
+ {
+ BOOL bUsed = FALSE;
+ USHORT nId = rDoc.GetPoolId(*rList[i], (SwGetPoolIdFromName)nSection);
+ switch ( nSection )
+ {
+ case GET_POOLID_TXTCOLL:
+ bUsed = rDoc.IsPoolTxtCollUsed( nId );
+ break;
+ case GET_POOLID_CHRFMT:
+ bUsed = rDoc.IsPoolFmtUsed( nId );
+ break;
+ case GET_POOLID_FRMFMT:
+ bUsed = rDoc.IsPoolFmtUsed( nId );
+ case GET_POOLID_PAGEDESC:
+ bUsed = rDoc.IsPoolPageDescUsed( nId );
+ break;
+ default:
+ ASSERT( !this, "unknown PoolFmt-Id" );
+ }
+ if ( bUsed )
+ aLst.Append( cType, *rList[i] );
+ }
+ }
+ else
+ for ( USHORT i=0; i < rList.Count(); ++i )
+ aLst.Append( cType, *rList[i] );
+}
+
+void SwStyleSheetIterator::Notify( SfxBroadcaster&, const SfxHint& rHint )
+{
+ // suchen und aus der Anzeige-Liste entfernen !!
+ if( rHint.ISA( SfxStyleSheetHint ) &&
+ SFX_STYLESHEET_ERASED == ((SfxStyleSheetHint&) rHint).GetHint() )
+ {
+ SfxStyleSheetBase* pStyle = ((SfxStyleSheetHint&)rHint).GetStyleSheet();
+
+ USHORT nTmpPos = lcl_FindName( aLst, pStyle->GetFamily(),
+ pStyle->GetName() );
+ if( nTmpPos < aLst.Count() )
+ aLst.DeleteAndDestroy( nTmpPos );
+ }
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.157 2000/09/18 16:05:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.156 2000/06/28 13:04:04 jp
+ FillStyleSheet dont create always a new Style
+
+ Revision 1.155 2000/06/14 13:01:00 jp
+ Bug #71738#: Changes on the templatename must be dispatch
+
+ Revision 1.154 2000/04/20 12:49:35 os
+ GetName() returns String&
+
+ Revision 1.153 2000/04/18 15:23:06 os
+ UNICODE
+
+ Revision 1.152 2000/04/11 08:01:31 os
+ UNICODE
+
+ Revision 1.151 2000/03/10 14:10:27 jp
+ Bug #74104#: SetItemSet - remove Dialog-Flag from the NumRules
+
+ Revision 1.150 2000/02/11 14:42:51 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.149 2000/01/18 17:15:14 jp
+ Bug #72023#: dont create CurrShell-Object with 0-Pointer
+
+ Revision 1.148 1999/11/15 14:22:25 jp
+ Bug #69833#: GetDescription - ignore hint Para-Bckgrnd-destination
+
+ Revision 1.147 1999/02/05 16:43:58 JP
+ Task #61467#/#61014#: neu FindPageDescByName
+
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/error.src b/sw/source/ui/app/error.src
new file mode 100644
index 000000000000..0d30d1e88d42
--- /dev/null
+++ b/sw/source/ui/app/error.src
@@ -0,0 +1,1265 @@
+/*************************************************************************
+ *
+ * $RCSfile: error.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define __RSC
+
+
+ //#include <tools/errcode.hxx>
+#include "globals.hrc"
+#include "app.hrc"
+#include "swerror.h"
+#include "comcore.hrc" // MS: Warum gibst auf der Core-Seite
+ // jetzt Resourcen
+
+/*--------------------------------------------------------------------
+ Beschreibung: Strings
+ --------------------------------------------------------------------*/
+
+String STR_COMCORE_READERROR
+{
+ TEXT = "Lesefehler" ;
+ TEXT [ English ] = "Read Error" ;
+ TEXT [ norwegian ] = "Lesefeil" ;
+ TEXT [ italian ] = "Errore di lettura" ;
+ TEXT [ portuguese_brazilian ] = "Erro de Leitura" ;
+ TEXT [ portuguese ] = "Erro de leitura" ;
+ TEXT [ finnish ] = "Lukuvirhe" ;
+ TEXT [ danish ] = "Læsefejl" ;
+ TEXT [ french ] = "Erreur de lecture" ;
+ TEXT [ swedish ] = "Läsfel" ;
+ TEXT [ dutch ] = "Leesfout" ;
+ TEXT [ spanish ] = "Error de lectura" ;
+ TEXT [ english_us ] = "Read Error" ;
+ TEXT[ chinese_simplified ] = "¶ÁÎļþʱ·¢Éú´íÎó";
+ TEXT[ russian ] = "Îøèáêà ïðè ÷òåíèè";
+ TEXT[ polish ] = "B³¹d odczytu";
+ TEXT[ japanese ] = "“Ç‚ÝŽæ‚è´×°";
+ TEXT[ chinese_traditional ] = "ŪÀɮ׮ɵo¥Í¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÇáÞÑÇÁÉ";
+ TEXT[ greek ] = "ÓöÜëìá áíÜãíùóçò";
+ TEXT[ korean ] = "Àб⠿À·ù";
+ TEXT[ turkish ] = "Okuma hatasý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_COMCORE_CANT_SHOW
+{
+ TEXT = "Grafik nicht darstellbar." ;
+ TEXT [ English ] = "Graphic cannot be displayed." ;
+ TEXT [ norwegian ] = "Graphic cannot be displayed." ;
+ TEXT [ italian ] = "L'immagine non è visualizzabile" ;
+ TEXT [ portuguese_brazilian ] = "Graphic cannot be displayed." ;
+ TEXT [ portuguese ] = "Impossível apresentar imagem." ;
+ TEXT [ french ] = "Impossible d'afficher l'image !" ;
+ TEXT [ dutch ] = "Afbeelding kan niet worden weergegeven" ;
+ TEXT [ spanish ] = "No es posible presentar la imagen." ;
+ TEXT [ danish ] = "Grafik kan ikke vises." ;
+ TEXT [ swedish ] = "Grafik kan inte visas." ;
+ TEXT [ finnish ] = "Graphic cannot be displayed." ;
+ TEXT [ english_us ] = "Graphic cannot be displayed." ;
+ TEXT[ chinese_simplified ] = "ÎÞ·¨ÏÔʾͼÐÎ";
+ TEXT[ russian ] = "Ðèñóíîê ïðåäñòàâèòü íåâîçìîæíî";
+ TEXT[ polish ] = "Grafiki nie mo¿na wyœwietliæ.";
+ TEXT[ japanese ] = "¸Þ×̨¯¸‚ð•\\Ž¦‚Å‚«‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "µLªkÅã¥Ü¹Ï¤ù";
+ TEXT[ arabic ] = "áÇ íãßä ÚÑÖ ÇáÑÓæãÇÊ.";
+ TEXT[ greek ] = "Äåí åßíáé äõíáôÞ ç ðáñïõóßáóç ôïõ ãñáöéêïý.";
+ TEXT[ korean ] = "±×·¡ÇÈÀÌ Ç¥½ÃµÉ ¼ö ¾ø½À´Ï´Ù.";
+ TEXT[ turkish ] = "Grafik görüntülenemiyor.";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Boxes
+ --------------------------------------------------------------------*/
+InfoBox ERR_CLPBRD_WRITE
+{
+ MESSAGE = "Fehler beim Kopieren in die Zwischenablage." ;
+ MESSAGE [ English ] = "Error while copying into the clipboard." ;
+ MESSAGE [ norwegian ] = "Feil ved kopiering til utklippstavlen." ;
+ MESSAGE [ italian ] = "Errore durante la copia negli appunti" ;
+ MESSAGE [ portuguese_brazilian ] = "Erro durante cópia para o clipboard." ;
+ MESSAGE [ portuguese ] = "Erro ao copiar para a Área de Transferência." ;
+ MESSAGE [ finnish ] = "Virhe kopioitaessa leikepöydälle." ;
+ MESSAGE [ danish ] = "Fejl under kopiering til udskriftsholderen." ;
+ MESSAGE [ french ] = "Erreur lors de la copie vers le presse-papiers." ;
+ MESSAGE [ swedish ] = "Fel vid kopiering till urklippet." ;
+ MESSAGE [ dutch ] = "Fout bij kopiëren naar Klembord." ;
+ MESSAGE [ spanish ] = "Error al copiar al portapapeles." ;
+ MESSAGE [ english_us ] = "Error while copying to the clipboard." ;
+ MESSAGE[ chinese_simplified ] = "ÔÚ¸´ÖÆÊý¾Ýµ½¼ôÌù°åʱ·¢Éú´íÎó¡£";
+ MESSAGE[ russian ] = "Îøèáêà ïðè êîïèðîâàíèè â áóôåð îáìåíà.";
+ MESSAGE[ polish ] = "B³¹d podczas kopiowania do schowka.";
+ MESSAGE[ japanese ] = "¸Ø¯ÌßÎÞ°ÄނɺËß°’†‚É´×°”­¶";
+ MESSAGE[ chinese_traditional ] = "½Æ»s¸ê®Æ¨ì°Å¶Kï®Éµo¥Í¿ù»~¡C";
+ MESSAGE[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÇáäÓÎ Åáì ÇáÍÇÝÙÉ.";
+ MESSAGE[ greek ] = "ÓöÜëìá êáôÜ ôçí áíôéãñáöÞ óôï clipboard.";
+ MESSAGE[ korean ] = "Ŭ¸³º¸µå¿¡ º¹»ç Áß ¿À·ù.";
+ MESSAGE[ turkish ] = "Panoya kopyalama hatasý.";
+ MESSAGE[ language_user1 ] = " ";
+};
+InfoBox ERR_CLPBRD_READ
+{
+ MESSAGE = "Fehler beim Lesen aus der Zwischenablage." ;
+ MESSAGE [ English ] = "Error while reading from the clipboard." ;
+ MESSAGE [ norwegian ] = "Feil ved lesing fra utklippstavlen." ;
+ MESSAGE [ italian ] = "Errore durante la lettura dagli appunti" ;
+ MESSAGE [ portuguese_brazilian ] = "Erro durante leitura do clipboard." ;
+ MESSAGE [ portuguese ] = "Erro durante a leitura da Área de Transferência." ;
+ MESSAGE [ finnish ] = "Virhe luettaessa leikepöydältä." ;
+ MESSAGE [ danish ] = "Fejl under læsning fra udskriftsholderen." ;
+ MESSAGE [ french ] = "Erreur lors de la lecture du presse-papiers." ;
+ MESSAGE [ swedish ] = "Fel vid läsning ur urklippet." ;
+ MESSAGE [ dutch ] = "Fout bij lezen van Klembord." ;
+ MESSAGE [ spanish ] = "Error al leer del portapapeles." ;
+ MESSAGE [ english_us ] = "Error reading from the clipboard." ;
+ MESSAGE[ chinese_simplified ] = "ÔÚ¶ÁÈ¡¼ôÌù°åʱ·¢Éú´íÎó¡£";
+ MESSAGE[ russian ] = "Îøèáêà ïðè ÷òåíèè èç áóôåðà îáìåíà.";
+ MESSAGE[ polish ] = "B³¹d odczytu ze schowka.";
+ MESSAGE[ japanese ] = "¸Ø¯ÌßÎÞ°ÄÞ‚©‚ç‚Ì“Ç‚ÝŽæ‚è´×°";
+ MESSAGE[ chinese_traditional ] = "¦bŪ¨ú°Å¶Kï®Éµo¥Í¿ù»~¡C";
+ MESSAGE[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÇáÞÑÇÁÉ ãä ÇáÍÇÝÙÉ.";
+ MESSAGE[ language_user1 ] = " ";
+ MESSAGE[ greek ] = "ÓöÜëìá êáôÜ ôçí áíÜãíùóç áðü ôï Clipboard.";
+ MESSAGE[ korean ] = "Ŭ¸³º¸µå·ÎºÎÅÍ Àб⠿À·ù.";
+ MESSAGE[ turkish ] = "Panodan okuma hatasý.";
+};
+
+
+#define ERR_CODE( class, err ) (class | (err - ERROR_SW_BASE))
+#define WARN_CODE( class, err ) (class | ( err - WARN_SW_BASE))
+
+Resource RID_SW_ERRHDL
+{
+ // Import-Errors
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_FILE_FORMAT_ERROR )
+ {
+ TEXT = "Formatfehler in der Datei entdeckt" ;
+ TEXT [ English ] = "File format error" ;
+ TEXT [ norwegian ] = "Feil filformat format error" ;
+ TEXT [ italian ] = "Errore nel formato del file" ;
+ TEXT [ portuguese_brazilian ] = "Erro no formato do arquivo" ;
+ TEXT [ portuguese ] = "Encontrado erro de formato no ficheiro" ;
+ TEXT [ finnish ] = "Tiedostomuodon virhe" ;
+ TEXT [ danish ] = "Opdaget formatfejl i filen" ;
+ TEXT [ french ] = "Erreur de format de fichier" ;
+ TEXT [ swedish ] = "Formatfel upptäckt i filen" ;
+ TEXT [ dutch ] = "Formaatfout ontdekt in het bestand" ;
+ TEXT [ spanish ] = "Se ha descubierto un error de formato en el archivo" ;
+ TEXT [ english_us ] = "File format error found" ;
+ TEXT[ chinese_simplified ] = "·¢ÏÖÁËÎļþ¸ñʽ´íÎó";
+ TEXT[ russian ] = "Îáíàðóæåíà îøèáêà â ôîðìàòå ôàéëà";
+ TEXT[ polish ] = "Znaleziono b³¹d formatu w pliku";
+ TEXT[ japanese ] = "̧²Ù‚É‘Ž®´×°‚ªŒ©‚‚©‚è‚Ü‚µ‚½B";
+ TEXT[ chinese_traditional ] = "µo²{¤FÀɮ׮榡¿ù»~";
+ TEXT[ arabic ] = "Êã ÇßÊÔÇÝ ÎØà ÊäÓíÞ Ýí ÇáãáÝ";
+ TEXT[ greek ] = "ÂñÝèçêå óöÜëìá äéáìüñöùóçò óôï áñ÷åßï";
+ TEXT[ korean ] = "ÆÄÀÏ ¼­½Ä ¿¡·¯°¡ ¹ß°ßµÇ¾ú½À´Ï´Ù.";
+ TEXT[ turkish ] = "Dosya format hatasý bulundu";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_READ_ERROR )
+ {
+ TEXT = "Fehler beim Lesen der Datei " ;
+ TEXT [ English ] = "Error in reading file " ;
+ TEXT [ norwegian ] = "Feil ved lesing av fil " ;
+ TEXT [ italian ] = "Errore durante la lettura del file " ;
+ TEXT [ portuguese_brazilian ] = "Erro na leitura de arquivo" ;
+ TEXT [ portuguese ] = "Erro na leitura do ficheiro " ;
+ TEXT [ finnish ] = "Virhe luettaessa tiedostoa " ;
+ TEXT [ danish ] = "Fejl under læsning af filen " ;
+ TEXT [ french ] = "Erreur de lecture du fichier " ;
+ TEXT [ swedish ] = "Fel vid läsning av fil " ;
+ TEXT [ dutch ] = "Fout bij lezen van het bestand " ;
+ TEXT [ spanish ] = "Error al leer el archivo " ;
+ TEXT [ english_us ] = "Error reading file " ;
+ TEXT[ chinese_simplified ] = "ÔÚ¶ÁÎļþʱ·¢Éú´íÎó ";
+ TEXT[ russian ] = "Îøèáêà ïðè ÷òåíèè ôàéëà ";
+ TEXT[ polish ] = "B³¹d odczytu pliku ";
+ TEXT[ japanese ] = "̧²Ù‚Ì“Ç‚ÝŽæ‚è´×° ";
+ TEXT[ chinese_traditional ] = "ŪÀɮ׮ɵo¥Í¿ù»~ ";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÞÑÇÁÉ ÇáãáÝ ";
+ TEXT[ greek ] = "ÓöÜëìá êáôÜ ôçí áíÜãíùóç ôïõ áñ÷åßïõ ";
+ TEXT[ korean ] = "ÆÄÀÏ Àб⠿À·ù ";
+ TEXT[ turkish ] = "Dosya okuma hatasý ";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_INPUT_FILE )
+ {
+ TEXT = "Fehler in der Eingabedatei" ;
+ TEXT [ English ] = "Input file error" ;
+ TEXT [ norwegian ] = "Feil i Innlesingsfil" ;
+ TEXT [ italian ] = "Errore nel file di input" ;
+ TEXT [ portuguese_brazilian ] = "Erro no arquivo de entrada" ;
+ TEXT [ portuguese ] = "Erro no ficheiro de entrada" ;
+ TEXT [ finnish ] = "Syöttötiedoston virhe" ;
+ TEXT [ danish ] = "Fejl i inputfilen" ;
+ TEXT [ french ] = "Erreur dans le fichier de saisie" ;
+ TEXT [ swedish ] = "Fel på inmatningsfilen" ;
+ TEXT [ dutch ] = "Fout in invoerbestand" ;
+ TEXT [ spanish ] = "Error en el archivo de entrada" ;
+ TEXT [ english_us ] = "Input file error" ;
+ TEXT[ chinese_simplified ] = "ÊäÈëµÄÎļþº¬ÓдíÎó";
+ TEXT[ russian ] = "Îøèáêà â ôàéëå ââîäà";
+ TEXT[ polish ] = "B³¹d w pliku wejœciowym";
+ TEXT[ japanese ] = "“ü—Í̧²Ù‚Ì’†‚É´×°";
+ TEXT[ chinese_traditional ] = "¿é¤JªºÀɮקt¦³¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà Ýí ãáÝ ÇáÅÏÎÇá";
+ TEXT[ greek ] = "ÓöÜëìá óôï áñ÷åßï åéóáãùãÞò";
+ TEXT[ korean ] = "ÆÄÀÏ »ðÀÔ ¿À·ù";
+ TEXT[ turkish ] = "Girdi dosyasýnda hata";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_NOWRITER_FILE )
+ {
+ TEXT = "Die Datei ist keine StarWriter-Datei" ;
+ TEXT [ English ] = "This isn't a StarWriter file" ;
+ TEXT [ norwegian ] = "Dette er ikke en Star Writer fil" ;
+ TEXT [ italian ] = "Questo non è un file di StarOffice Writer" ;
+ TEXT [ portuguese_brazilian ] = "Este não é um arquivo do StarOffice Writer" ;
+ TEXT [ portuguese ] = "Este não é um ficheiro do StarOffice Writer" ;
+ TEXT [ finnish ] = "Tämä ei ole StarWriter-tiedosto" ;
+ TEXT [ danish ] = "Filen er ingen StarOffice Writer-fil" ;
+ TEXT [ french ] = "Ceci n'est pas un fichier StarOffice Writer" ;
+ TEXT [ swedish ] = "Detta är inte en StarOffice Writer-fil" ;
+ TEXT [ dutch ] = "Dit bestand is geen StarOffice Writer-bestand" ;
+ TEXT [ spanish ] = "El archivo no es uno de StarOffice Writer" ;
+ TEXT [ english_us ] = "This is not a StarOffice Writer file" ;
+ TEXT[ chinese_simplified ] = "Õâ²»ÊÇÒ»¸ö StarOffice Writer Îļþ";
+ TEXT[ russian ] = "Ýòîò ôàéë íå ÿâëÿåòñÿ ôàéëîì StarOffice Writer";
+ TEXT[ polish ] = "Ten plik nie jest plikiem StarOffice Writer";
+ TEXT[ japanese ] = "‚±‚ê‚ÍStarOffice Writer‚Ì̧²Ù‚Å‚Í‚ ‚è‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "³o¤£¬O¤@­Ó StarOffice Writer ÀÉ®×";
+ TEXT[ arabic ] = "åÐÇ ÇáãáÝ áíÓ ãáÝ StarOffice Writer";
+ TEXT[ greek ] = "Ôï áñ÷åßï áõôü äåí åßíáé áñ÷åßï ôïõ StarOffice Writer";
+ TEXT[ korean ] = "ÀÌ ÆÄÀÏÀº StarOffice Writer ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù.";
+ TEXT[ turkish ] = "Bu dosya StarOffice Writer dosyasý deðil";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_UNEXPECTED_EOF )
+ {
+ TEXT = "Unerwartetes Dateiende" ;
+ TEXT [ English ] = "Unexpected end of file" ;
+ TEXT [ norwegian ] = "Uventet slutt på fil" ;
+ TEXT [ italian ] = "Fine inattesa del file" ;
+ TEXT [ portuguese_brazilian ] = "Fim de arquivo não esperado" ;
+ TEXT [ portuguese ] = "Fim de ficheiro inesperado" ;
+ TEXT [ finnish ] = "Tiedosto loppui kesken" ;
+ TEXT [ danish ] = "Uventet filafslutning" ;
+ TEXT [ french ] = "Fin de fichier imprévue" ;
+ TEXT [ swedish ] = "Oväntat filslut" ;
+ TEXT [ dutch ] = "Onverwacht bestandeinde" ;
+ TEXT [ spanish ] = "Fin inesperado de archivo" ;
+ TEXT [ english_us ] = "Unexpected end of file" ;
+ TEXT[ chinese_simplified ] = "ÒâÍâµÄÎļþ½áβ";
+ TEXT[ russian ] = "Íåîæèäàííûé êîíåö ôàéëà";
+ TEXT[ polish ] = "Nieoczekiwany koniec pliku";
+ TEXT[ japanese ] = "•s“K“–‚Ȩ̀²Ù––";
+ TEXT[ chinese_traditional ] = "·N¥~ªºÀÉ®×µ²§À";
+ TEXT[ arabic ] = "äåÇíÉ ÛíÑ ãÊæÞÚÉ ááãáÝ";
+ TEXT[ greek ] = "Áðñïóäüêçôï ôÝëïò áñ÷åßïõ";
+ TEXT[ korean ] = "ÆÄÀÏÀÇ ³¡ÀÌ À߸øµÇ¾ú½À´Ï´Ù.";
+ TEXT[ turkish ] = "Beklenmeyen dosya sonu";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SW6_PASSWD )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Passworte werden nicht unterstützt : Passworte werden nicht unterst³tzt */
+ TEXT = "Passworte werden nicht unterstützt" ;
+ TEXT [ English ] = "Files with passwords are not supported" ;
+ TEXT [ norwegian ] = "Passordbeskyttet filer er ikke tilgjengelige" ;
+ TEXT [ italian ] = "Le password non sono supportate" ;
+ TEXT [ portuguese_brazilian ] = "Arquivos com senhas não s o comportados" ;
+ TEXT [ portuguese ] = "As senhas não têm suporte" ;
+ TEXT [ finnish ] = "Salasanalla suojattuja tiedostoja ei voi käsitellä" ;
+ TEXT [ danish ] = "Adgangskoder understøttes ikke" ;
+ TEXT [ french ] = "Les mots de passe ne sont pas supportés" ;
+ TEXT [ swedish ] = "Lösenord stöds ej" ;
+ TEXT [ dutch ] = "Wachtwoorden worden niet ondersteund" ;
+ TEXT [ spanish ] = "Las contraseñas no son soportadas" ;
+ TEXT [ english_us ] = "Passwords protected files are not supported" ;
+ TEXT[ chinese_simplified ] = "²»Ö§³Ö¿ÚÁî";
+ TEXT[ russian ] = "Ïàðîëè íå ïîääåðæèâàþòñÿ";
+ TEXT[ polish ] = "Has³a nie bêd¹ obs³ugiwane";
+ TEXT[ japanese ] = "Ê߽ܰÄÞ‚ª»Îß°Ä‚³‚ê‚Ä‚¢‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "¤£¤ä´©±K½X";
+ TEXT[ arabic ] = "ßáãÇÊ ÇáÓÑ ÛíÑ ãÚÊãÏÉ";
+ TEXT[ greek ] = "Äåí õðïóôçñßæåôáé ç ëåéôïõñãßá êùäéêïý ðñüóâáóçò";
+ TEXT[ korean ] = "ÆÄÀÏ º¸È£ Æнº¿öµå°¡ Áö¿øµÇÁö ¾Ê½À´Ï´Ù.";
+ TEXT[ turkish ] = "Þifre kullanýmý desteklenmiyor";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW6_NO_WW6_FILE_ERR )
+ {
+ TEXT = "Die Datei ist keine WinWord6-Datei" ;
+ TEXT [ English ] = "This isn't a WinWord6 file" ;
+ TEXT [ norwegian ] = "Dette er ikke en WinWord6 fil" ;
+ TEXT [ italian ] = "Questo non è un file di WinWord6" ;
+ TEXT [ portuguese_brazilian ] = "Este não é um arquivo do WinWord6" ;
+ TEXT [ portuguese ] = "Este não é um ficheiro do WinWord6" ;
+ TEXT [ finnish ] = "Tämä ei ole WinWord6-tiedosto" ;
+ TEXT [ danish ] = "Filen er ingen WinWord6-fil" ;
+ TEXT [ french ] = "Ceci n'est pas un fichier WinWord6" ;
+ TEXT [ swedish ] = "Detta är inte en WinWord6-fil" ;
+ TEXT [ dutch ] = "Dit bestand is geen WinWord6-bestand" ;
+ TEXT [ spanish ] = "El archivo no es uno de WinWord6" ;
+ TEXT [ english_us ] = "This is not a WinWord6 file" ;
+ TEXT[ chinese_simplified ] = "Õâ²»ÊÇÒ»¸ö WinWord6 Îļþ";
+ TEXT[ russian ] = "Ýòîò ôàéë íå ÿâëÿåòñÿ ôàéëîì WinWord6";
+ TEXT[ polish ] = "Ten plik nie jest plikiem WinWord6";
+ TEXT[ japanese ] = "‚±‚ê‚Í WinWord6‚Ì̧²Ù‚Å‚Í‚ ‚è‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "³o¤£¬O¤@­Ó WinWord6 ÀÉ®×";
+ TEXT[ arabic ] = "åÐÇ ÇáãáÝ áíÓ ãáÝ WinWord6";
+ TEXT[ greek ] = "Ôï áñ÷åßï áõôü äåí åßíáé áñ÷åßï ôïõ WinWord6";
+ TEXT[ korean ] = "WinWord6 ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù.";
+ TEXT[ turkish ] = "Bu dosya WinWord6 dosyasý deðil";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW6_FASTSAVE_ERR )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ TEXT = "Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord" ;
+ TEXT [ English ] = "This file is stored with the WinWord-Option 'fastsave'. Please disable the WinWord option 'Allow Fast Saves' and use WinWord to save the file again" ;
+ TEXT [ norwegian ] = "Denne filen er lagret med alternativet til WinWord 'hurtiglagre'. Sperr WinWord alternativet ' Tillat Hurtige Lagringer' og bruk WinWord for å lagre filen igjen" ;
+ TEXT [ italian ] = "Questo file è stato salvato con l'opzione di Winword 'salvataggio veloce'. Disabilitate l'opzione di WinWord 'Salvataggio veloce' e utilizzate WinWord per salvare di nuovo il file." ;
+ TEXT [ portuguese_brazilian ] = "Este arquivo foi armazenado com a opção do WinWord 'fastsave'. Por favor desative a opção do WinWord 'Allow Fast Saves' e utilize o WinWord para gravar novamente o arquivo" ;
+ TEXT [ portuguese ] = "Este ficheiro foi guardado com a opção do WinWord \"Guardar rápido\". Desactive a opção do WinWord \"Permitir Guardar rápido\" e guarde novamente o ficheiro em WinWord" ;
+ TEXT [ finnish ] = "Tämä tiedosto on tallennettu käyttäen WinWordin pikatallennusta. Poista pikatallennus käytöstä WinWordissa ja tallennatiedosto uudelleen" ;
+ TEXT [ danish ] = "Denne fil er blevet gemt med WinWord-indstillingen 'Gem hurtigt'. Deaktiver venligst indstillingen 'Gem hutigt' og gem filen igen med WinWord." ;
+ TEXT [ french ] = "Ce fichier a été enregistré à l'aide de l'option 'Enregistrement rapide' de WinWord. Veuillez désactiver cette option et utiliser WinWord pour enregistrer à nouveau le fichier." ;
+ TEXT [ swedish ] = "Denna fil är sparad med WinWord-alternativet 'snabbspara'. Stäng av WinWord-alternativet 'Tillåt snabbspara' och spara filen med WinWord igen" ;
+ TEXT [ dutch ] = "Dit bestand werd met de WinWord- optie \"Snel opslaan\" opgeslagen. Schakel a.u.b in WinWord de optie \"Snel opslaan toestaan\" uit en sla het bestand opnieuw op met WinWord." ;
+ TEXT [ spanish ] = "Este archivo ha sido guardado con la opción de WinWord 'guardar rápidamente' . Por favor desactive en WinWord la opción 'permitir guardar rápidamente' y guarde el archivo de nuevo en WinWord." ;
+ TEXT [ english_us ] = "This file was saved with WinWord in 'Fast Save' mode. Please uncheck the option 'Allow Fast Saves' and save the file again." ;
+ TEXT[ chinese_simplified ] = "Õâ¸öÎļþ´æÅ̲ÉÓõÄÊÇ WinWord Ñ¡Ïî '¿ìËÙ±£´æ'·½Ê½¡£ÇëÄúʧ»îÕâ¸öÑ¡ÏȻºóÔÚÖØдæÅÌÕâ¸öÎļþ¡£";
+ TEXT[ russian ] = "Ýòîò ôàéë ñîõðàíåí ïðè ïîìîùè ïàðàìåòðà WinWord 'Áûñòðîå ñîõðàíåíèå'. Ïîæàëóéñòà, îòêëþ÷èòå ïàðàìåòð 'Ðàçðåøèòü áûñòðîå ñîõðàíåíèå' è çàíîâî ñîõðàíèòå ýòîò ôàéë ñ ïîìîùüþ WinWord";
+ TEXT[ polish ] = "Ten plik zosta³ zapisany za pomoc¹ opcji WinWord 'Szybkie zapisywanie'. Proszê w³³¹cz w WinWord opcjê 'Dopuœæ szybkie zapisywanie' i zapisz plik ponownie w WinWord";
+ TEXT[ japanese ] = "‚±‚Ì̧²Ù‚ÍAWinWordµÌß¼®Ý‚Ì'‚‘¬•Û‘¶'‚Å•Û‘¶‚³‚ê‚Ä‚¢‚Ü‚·BWinWord‚̵Ìß¼®Ý'‚‘¬•Û‘¶‚Ì'‚ðÁ‹Ž‚µ‚Ä@̧²Ù‚ðV‚½‚ÉWinWord‚Å•Û‘¶‚µ‚ĉº‚³‚¢B";
+ TEXT[ chinese_traditional ] = "Àx¦sÀɮױĥΪº¬O WinWord ¿ï¶µ '§Ö³tÀx¦s'¤è¦¡¡C½Ð±z¥¢¬¡³o­Ó¿ï¶µ¡MµM«á¦b­«·sÀx¦s³o­Ó¤å¥ó¡C";
+ TEXT[ arabic ] = "Êã ÍÝÙ åÐÇ ÇáãáÝ Úä ØÑíÞ ÎíÇÑ 'ÇáÍÝÙ ÇáÓÑíÚ' Ýí WinWord. ÇáÑÌÇÁ ÅíÞÇÝ ÎÇÕíÉ 'ÇáÓãÇÍ ÈÇáÍÝÙ ÇáÓÑíÚ' Ýí WinWord¡ Ëã Þã ÈÍÝÙ ÇáãáÝ ãä ÌÏíÏ ÈæÇÓØÉ WinWord.";
+ TEXT[ greek ] = "Ôï áñ÷åßï áõôü áðïèçêåýôçêå ìå ôçí åðéëïãÞ 'ÃñÞãïñç áðïèÞêåõóç' ôïõ WinWord. Ðáñáêáëþ áðåíåñãïðïéÞóåôå ôçí åðéëïãÞ áõôÞ ôïõ WinWord êáé áðïèçêåýóôå ôï áñ÷åßï îáíÜ óôï WinWord.";
+ TEXT[ korean ] = "ÀÌ ÆÄÀÏÀº WinWord ÀÇ 'ºü¸¥ ÀúÀå' ¸ðµå·Î ÀúÀåµÇ¾î ÀÖ½À´Ï´Ù. ¿É¼Ç 'ºü¸¥ ÀúÀå Çã¿ë' ¸¦ ÇØÁ¦ÇÏ°í, ÆÄÀÏÀ» ´Ù½Ã ÀúÀåÇϽʽÿÀ .";
+ TEXT[ turkish ] = "Bu dosya WinWord seçeneði 'Hýzlý kaydet' ile kaydedilmiþ. WinWord'de 'Hýzlý kaydetmeye olanak saðla' seçeneðini geçersiz kýlýp dosyayý yeniden WinWord ile kaydedin";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_W4W_WRITE_TMP_ERROR )
+ {
+ TEXT = "Fehler beim Schreiben der Temporärdatei" ;
+ TEXT [ English ] = "Error in writing temporary file " ;
+ TEXT [ norwegian ] = "Feil ved skriving av midlertidig fil " ;
+ TEXT [ italian ] = "Errore durante la scrittura del file temporaneo" ;
+ TEXT [ portuguese_brazilian ] = "Erro na gravação de arquivo temporário" ;
+ TEXT [ portuguese ] = "Erro ao gravar o ficheiro temporário" ;
+ TEXT [ finnish ] = "Virhe kirjoitettaessa tilapäistiedostoa " ;
+ TEXT [ danish ] = "Fejl under skrivning af midlertidig fil" ;
+ TEXT [ french ] = "Erreur d'écriture du fichier temporaire" ;
+ TEXT [ swedish ] = "Fel vid skrivning till temporär fil" ;
+ TEXT [ dutch ] = "Fout bij het schrijven van tijdelijk bestand" ;
+ TEXT [ spanish ] = "Error al escribir el archivo temporal" ;
+ TEXT [ english_us ] = "Error writing temporary file" ;
+ TEXT[ chinese_simplified ] = "ÔÚдÈëÔÝʱÎļþʱ·¢Éú´íÎó";
+ TEXT[ russian ] = "Îøèáêà ïðè çàïèñè âðåìåííîãî ôàéëà";
+ TEXT[ polish ] = "B³¹d zapisu pliku tymczasowego";
+ TEXT[ japanese ] = "ÃÝÎß×Ø Ì§²Ù“ü—Í’†‚Ì´×°";
+ TEXT[ chinese_traditional ] = "¦b¼g¤J¼È®ÉÀɮ׮ɵo¥Í¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ßÊÇÈÉ ÇáãáÝ ÇáãÄÞÊ";
+ TEXT[ greek ] = "ÓöÜëìá êáôÜ ôçí åããñáöÞ ðñïóùñéíïý áñ÷åßïõ";
+ TEXT[ korean ] = "ÀÓ½ÃÆÄÀÏ¿¡ ¾²±â ¿À·ù";
+ TEXT[ turkish ] = "Geçici dosya yazma hatasý";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_EXCLOT_WRONG_RANGE )
+ {
+ TEXT = "Einfügebereich in Ini-Datei zu groß" ;
+ TEXT [ English ] = "Import range from ini file to large" ;
+ TEXT [ norwegian ] = "Import range from ini file to large" ;
+ TEXT [ italian ] = "Area di inserimento del file ini troppo grande" ;
+ TEXT [ portuguese_brazilian ] = "Import range from ini file to large" ;
+ TEXT [ portuguese ] = "A área de inserção do ficheiro Ini é demasiado extensa" ;
+ TEXT [ french ] = "Zone d'insertion dans le fichier Ini trop grande" ;
+ TEXT [ dutch ] = "Invoegbereik in INI-bestand is te groot" ;
+ TEXT [ spanish ] = "El área de inserción en el archivo Ini es demasiado grande" ;
+ TEXT [ danish ] = "Importområdet i ini-filen er for stort" ;
+ TEXT [ swedish ] = "Importområdet i Ini-filen är för stort" ;
+ TEXT [ finnish ] = "Import range from ini file to large" ;
+ TEXT [ english_us ] = "Inserted section in ini file too large" ;
+ TEXT[ chinese_simplified ] = "Ini Îļþ²åÈëÇøÓòÌ«´ó";
+ TEXT[ russian ] = "Îáëàñòü âñòàâêè â ôàéë Ini ñëèøêîì áîëüøàÿ";
+ TEXT[ polish ] = "Obszar wstawiania do pliku Ini jest za du¿y";
+ TEXT[ japanese ] = "Ini̧²Ù‚Ì‘}“ü”͈͂ª’·‚·‚¬‚Ü‚·B";
+ TEXT[ chinese_traditional ] = "Ini ÀÉ®×´¡¤J°Ï°ì¤Ó¤j";
+ TEXT[ arabic ] = "äØÇÞ ÇáÅÏÎÇá Ýí ÇáãáÝ Ini ßÈíÑ ÌÏÇð";
+ TEXT[ greek ] = "Ç ðåñéï÷Þ åéóáãùãÞò óôï áñ÷åßï ini åßíáé ðïëý ìåãÜëç";
+ TEXT[ korean ] = "ini ÆÄÀÏ¿¡ »ðÀÔµÈ ±¸¿ªÀÌ ³Ê¹« Å®´Ï´Ù.";
+ TEXT[ turkish ] = "Ini dosyasý ekleme bölümü çok büyük";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_FORMAT_ROWCOL )
+ {
+ TEXT = "Formatfehler an Position $(ARG1)(Zeile,Spalte) in der Datei entdeckt" ;
+ TEXT [ English ] = "File format error at $(ARG1)(row,col)" ;
+ Text [ english_us ] = "File format error found at $(ARG1)(row,col)" ;
+ Text [ italian ] = "È stato trovato un errore di formato nel file alla posizione $(ARG1)(riga, colonna)" ;
+ Text [ spanish ] = "Se ha descubierto un error de formato en el archivo en la posición $(ARG1)(fila,columna)" ;
+ Text [ french ] = "Erreur de format à la position $(ARG1)(ligne,colonne) du fichier" ;
+ Text [ dutch ] = "Formaatfout ontdekt op positie $(ARG1)(cel,kolom) in het bestand" ;
+ Text [ swedish ] = "Formatfel vid position $(ARG1)(rad,kolumn) upptäckt i filen" ;
+ Text [ danish ] = "Der blev opdaget en formatfejl i filen på position $(ARG1)(række,spalte)" ;
+ Text [ portuguese ] = "Descoberto erro de formato na posição $(ARG1)(linha, coluna) do ficheiro" ;
+ Text [ portuguese_brazilian ] = "Formatfehler an Position $(ARG1)(Zeile,Spalte) in der Datei entdeckt" ;
+ Text[ chinese_simplified ] = "Îļþ¸ñʽ´íÎó $(ARG1)(ÐУ¬ÁÐ)";
+ Text[ russian ] = "Â ìåñòå $(ARG1)(ñòðîêà,ñòîëáåö) îáíàðóæåíà îøèáêà ôîðìàòà ôàéëà";
+ Text[ polish ] = "Znaleziono w pliku b³¹d formatu przy pozycji $(ARG1)(Wiersz, kolumna)";
+ Text[ japanese ] = "̧²Ù‚Ì $(ARG1)(sA—ñ)‚É‘Ž®´×°‚ªŒ©‚‚©‚è‚Ü‚µ‚½B";
+ Text[ chinese_traditional ] = "Àɮ׮榡¿ù»~ $(ARG1)(¦æ¡A¦C)";
+ Text[ arabic ] = "Êã ÇßÊÔÇÝ ÎØà Ýí ÇáãæÖÚ $(ARG1)(ÓØÑ¡ÚãæÏ) Ýí ÇáãáÝ";
+ Text[ greek ] = "ÂñÝèçêå óöÜëìá ìïñöïðïßçóçò óôç èÝóç $(ARG1)(ãñáììÞ,óôÞëç) ôïõ áñ÷åßï";
+ Text[ korean ] = "ÆÄÀϼ­½Ä ¿À·ù°¡ $(ARG1)(Çà,¿­)¿¡¼­ ¹ß°ß µË´Ï´Ù.";
+ Text[ turkish ] = "Dosya format hatasý $(ARG1)(satýr, sütun) bulundu";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_NEW_VERSION )
+ {
+ TEXT = "Datei wurde von einer neueren Version geschrieben" ;
+ TEXT [ English ] = "File has been written by a newer version" ;
+ Text [ english_us ] = "File has been written in a newer version" ;
+ Text [ italian ] = "Il file è stato creato da una versione più recente" ;
+ Text [ spanish ] = "El archivo se escribió en una versión más nueva" ;
+ Text [ french ] = "Ce fichier a été créé à l'aide d'une version plus récente" ;
+ Text [ dutch ] = "Bestand werd onder een nieuwere versie opgeslagen" ;
+ Text [ swedish ] = "Filen är skriven i en nyare version" ;
+ Text [ danish ] = "Filen er blevet skrevet af en nyere version" ;
+ Text [ portuguese ] = "O ficheiro foi escrito numa versão mais moderna" ;
+ Text [ portuguese_brazilian ] = "Datei wurde von einer neueren Version geschrieben" ;
+ Text[ chinese_simplified ] = "ÎļþÒѾ­ÓÉÒ»¸öа汾¸üÐÂ";
+ Text[ russian ] = "Ôàéë íàïèñàí â íîâîé âåðñèè";
+ Text[ polish ] = "Plik zosta³ zapisany w nowszej wersji";
+ Text[ japanese ] = "̧²Ù‚ÍV‚µ‚¢ÊÞ°¼Þ®Ý‚Å‘‚©‚ê‚Ä‚¢‚Ü‚·";
+ Text[ chinese_traditional ] = "Àɮפw¸g³Q¤@­Ó·sª©¥»§ó·s";
+ Text[ arabic ] = "Êã ßÊÇÈÉ ÇáãáÝ Ýí ÅÕÏÇÑ ÃÍÏË";
+ Text[ greek ] = "Ôï áñ÷åßï ãñÜöôçêå ìå íåüôåñç Ýêäïóç";
+ Text[ korean ] = "ÆÄÀÏÀÌ ÃֽŠ¹öÁ¯¿¡ ÀÇÇØ ¾²¿©Á³½À´Ï´Ù.";
+ Text[ turkish ] = "Dosya daha yeni bir sürüm ile yazýlmýþ";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_WW8_NO_WW8_FILE_ERR )
+ {
+ TEXT = "Die Datei ist keine WinWord97-Datei" ;
+ TEXT [ English ] = "This isn't a WinWord97 file" ;
+ TEXT[ english_us ] = "This is not a WinWord97 file";
+ TEXT[ portuguese ] = "Não é um ficheiro WinWord97";
+ TEXT[ russian ] = "This isn't a WinWord97 file";
+ TEXT[ greek ] = "Ôï áñ÷åßï áõôü äåí åßíáé ôýðïõ WinWord97";
+ TEXT[ dutch ] = "Dit is geen WinWord97 bestand";
+ TEXT[ french ] = "Il ne s'agit pas d'un fichier WinWord97 !";
+ TEXT[ spanish ] = "This isn't a WinWord97 file";
+ TEXT[ italian ] = "This isn't a WinWord97 file";
+ TEXT[ danish ] = "Filen er ingen WinWord97-fil";
+ TEXT[ swedish ] = "Filen är inte en WinWord97-fil";
+ TEXT[ polish ] = "To nie jest plik WinWord97";
+ TEXT[ portuguese_brazilian ] = "This isn't a WinWord97 file";
+ TEXT[ japanese ] = "‚±‚ê‚Í WinWord97 ̧²Ù‚Å‚Í‚ ‚è‚Ü‚¹‚ñ";
+ TEXT[ korean ] = "This isn't a WinWord97 file";
+ TEXT[ chinese_simplified ] = "Õâ¸öÎļþ²»ÊÇÒ»¸ö WinWord97 Îļþ";
+ TEXT[ chinese_traditional ] = "³o¤£¬O WinWord97 ÀÉ®×";
+ TEXT[ turkish ] = "This isn't a WinWord97 file";
+ TEXT[ arabic ] = "åÐÇ ÇáãáÝ áíÓ ãáÝ WinWord97";
+ };
+ // Export-Errors
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_WRITE_ERROR )
+ {
+ TEXT = "Fehler beim Schreiben der Datei " ;
+ TEXT [ English ] = "Error in writing file " ;
+ TEXT [ norwegian ] = "Feil ved skriving av fil " ;
+ TEXT [ italian ] = "Errore durante la scrittura del file " ;
+ TEXT [ portuguese_brazilian ] = "Erro na gravação de arquivo" ;
+ TEXT [ portuguese ] = "Erro ao gravar o ficheiro " ;
+ TEXT [ finnish ] = "Virhe kirjoitettaessa tiedostoa " ;
+ TEXT [ danish ] = "Fejl under skrivning af filen " ;
+ TEXT [ french ] = "Erreur d'écriture du fichier " ;
+ TEXT [ swedish ] = "Fel vid skrivning till fil " ;
+ TEXT [ dutch ] = "Fout bij het schrijven van het bestand " ;
+ TEXT [ spanish ] = "Error al escribir el archivo " ;
+ TEXT [ english_us ] = "Error writing file " ;
+ TEXT[ chinese_simplified ] = "дÈëÎļþʱ·¢Éú´íÎó ";
+ TEXT[ russian ] = "Îøèáêà çàïèñè ôàéëà ";
+ TEXT[ polish ] = "B³¹d zapisu pliku ";
+ TEXT[ japanese ] = "̧²Ù“ü—Í’†‚Ì´×° ";
+ TEXT[ chinese_traditional ] = "¼g¤JÀɮ׮ɵo¥Í¿ù»~ ";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ßÊÇÈÉ ÇáãáÝ ";
+ TEXT[ greek ] = "ÓöÜëìá êáôÜ ôçí åããñáöÞ áñ÷åßïõ ";
+ TEXT[ korean ] = "ÆÄÀÏ ¾²±â ¿À·ù ";
+ TEXT[ turkish ] = "Dosya yazma hatasý ";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_OLD_GLOSSARY )
+ {
+ TEXT = "Das Autotextdokument hat falsche Version" ;
+ TEXT [ English ] = "The glossary document has wrong version" ;
+ Text [ dutch ] = "Het AutoTekst-document heeft de verkeerde versie" ;
+ Text [ english_us ] = "Wrong AutoText document version" ;
+ Text [ italian ] = "Il documento di testo automatico presenta una versione errata" ;
+ Text [ spanish ] = "Versión errónea del documento de AutoTexto" ;
+ Text [ french ] = "La version de l' AutoTexte utilisée est incorrecte" ;
+ Text [ swedish ] = "AutoTextdokumentet har fel version" ;
+ Text [ danish ] = "Forkert AutoTekst dokumentversion" ;
+ Text [ portuguese ] = "O documento do AutoTexto tem a versão errada" ;
+ Text [ portuguese_brazilian ] = "Das Autotextdokument hat falsche Version" ;
+ Text[ chinese_simplified ] = "Õâ¸ö×Ô¶¯Í¼Îļ¯µÄÎĵµ°æ±¾ÎÞЧ";
+ Text[ russian ] = "Íåïðàâèëüíàÿ âåðñèÿ äîêóìåíòà àâòîòåêñòà";
+ Text[ polish ] = "Dokument autotekstu ma z³¹ wersjê";
+ Text[ japanese ] = "“ü—ÍŽx‰‡ÄÞ·­ÒÝÄ‚ÌÊÞ°¼Þ®Ý‚ªˆá‚¢‚Ü‚·";
+ Text[ chinese_traditional ] = "³o­Ó¦Û°Ê¹Ï¤å¶°¤å¥óª©¥»µL®Ä";
+ Text[ arabic ] = "ÅÕÏÇÑ ÎÇØÆ áãÓÊäÏ ÇáäÕ ÇáÊáÞÇÆí";
+ Text[ greek ] = "ËÜèïò Ýêäïóç ôïõ åããñÜöïõ ÁõôïÊåéìÝíïõ";
+ Text[ korean ] = "À߸øµÈ ÀÚµ¿ ÅؽºÆ® ¹®¼­ ¹öÁ¯";
+ Text[ turkish ] = "Otomatik metin belgesi sürümü yanlýþ";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_CANNOT_WRITE )
+ {
+ TEXT = "Das Dokument kann nicht angelegt werden" ;
+ TEXT [ English ] = "The document cannot be created" ;
+ Text [ dutch ] = "Het document kan niet worden gemaakt" ;
+ Text [ english_us ] = "The document cannot be created" ;
+ Text [ italian ] = "Non è possibile creare il documento" ;
+ Text [ spanish ] = "No se puede crear el documento" ;
+ Text [ french ] = "Impossible de créer le document" ;
+ Text [ swedish ] = "Dokumentet kan inte skapas" ;
+ Text [ danish ] = "Dokumentet kan ikke oprettes" ;
+ Text [ portuguese ] = "É impossível criar o documento" ;
+ Text [ portuguese_brazilian ] = "Das Dokument kann nicht angelegt werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨Éú³ÉÕâ¸öÎĵµ¡£";
+ Text[ russian ] = "Äîêóìåíò ñîçäàòü íåâîçìîæíî";
+ Text[ polish ] = "Dokumentu nie mo¿na utworzyæ";
+ Text[ japanese ] = "‚±‚ÌÄÞ·­ÒÝÄ‚Í쬂ł«‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "µLªk¥Í¦¨³o­Ó¤å¥ó";
+ Text[ arabic ] = "áÇ íãßä ÅäÔÇÁ ÇáãÓÊäÏ";
+ Text[ greek ] = "Äåí Þôáí äõíáôÞ ç äçìéïõñãßá ôïõ åããñÜöïõ";
+ Text[ korean ] = "¹®¼­°¡ ¸¸µé¾îÁú¼ö ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Belge oluþturulamýyor";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_W4W_READ_TMP_ERROR )
+ {
+ TEXT = "Fehler beim Lesen der Temporärdatei" ;
+ TEXT [ English ] = "Error in reading temporary file " ;
+ TEXT [ norwegian ] = "eil ved lesing av midkertidig fil " ;
+ TEXT [ italian ] = "Errore durante la lettura del file temporaneo" ;
+ TEXT [ portuguese_brazilian ] = "Erro na leitura de arquivo temporário" ;
+ TEXT [ portuguese ] = "Erro na leitura do ficheiro temporário" ;
+ TEXT [ finnish ] = "Virhe luettaessa tilapäistiedostoa " ;
+ TEXT [ danish ] = "Fejl under læsning af midlertidig fil" ;
+ TEXT [ french ] = "Erreur de lecture du fichier temporaire" ;
+ TEXT [ swedish ] = "Fel vid läsning av temporär fil" ;
+ TEXT [ dutch ] = "Fout bij het lezen van tijdelijke bestanden" ;
+ TEXT [ spanish ] = "Error al leer el archivo temporal" ;
+ TEXT [ english_us ] = "Error reading temporary file" ;
+ TEXT[ chinese_simplified ] = "ÔÚ¶ÁÈ¡ÔÝʱÎļþʱ·¢Éú´íÎó";
+ TEXT[ russian ] = "Îøèáêà ïðè ÷òåíèè âðåìåííîãî ôàéëà";
+ TEXT[ polish ] = "B³¹d odczytu pliku tymczasowego";
+ TEXT[ japanese ] = "ÃÝÎß×Ø̧²Ù“Ç‚ÝŽæ‚è‚ÌÛ‚Ì´×°";
+ TEXT[ chinese_traditional ] = "Ū¨ú¼È®ÉÀɮ׮ɵo¥Í¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÞÑÇÁÉ ÇáãáÝ ÇáãÄÞÊ";
+ TEXT[ greek ] = "ÓöÜëìá êáôÜ ôï äéÜâáóìá ðñïóùñéíïý áñ÷åßïõ";
+ TEXT[ korean ] = "ÀÓ½ÃÆÄÀÏ Àб⠿À·ù";
+ TEXT[ turkish ] = "Geçici dosya okuma hatasý";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_LARGE_DOC_ERROR )
+ {
+ TEXT = "Das Dokument überschreitet die mögliche 3.1/4.0-Textdokument-Größe" ;
+ TEXT [ English ] = "The document's size exceeds the possible 3.1/4.0 document size" ;
+ Text [ portuguese ] = "O documento ultrapassa o tamanho possível para um documento 3.1/4.0" ;
+ Text [ english_us ] = "The document exceeds the allowed 3.1/4.0 text document size" ;
+ Text [ portuguese_brazilian ] = "Das Dokument überschreitet die mögliche 3.1/4.0-Textdokument-Größe" ;
+ Text [ swedish ] = "Dokumentet överskrider den möjliga 3.1/4.0-textdokumentstorleken" ;
+ Text [ danish ] = "Dokumentet overskrider den mulige 3.1/4.0-tekstdokumentstørrelse" ;
+ Text [ italian ] = "Il documento supera le dimensioni del testo possibili in 3.1/4.0" ;
+ Text [ spanish ] = "El documento sobrepasa el tamaño posible 3.1/4.0 de documento" ;
+ Text [ french ] = "Le document dépasse la taille maximum autorisée pour un document texte 3.1/4.0" ;
+ Text [ dutch ] = "Het document overschrijdt de mogelijke 3.1/4.0-tekstdocumentgrootte" ;
+ Text[ chinese_simplified ] = "Õâ¸öÎĵµ¿ÉÄܳ¬¹ý 3.1/4.0 °æ±¾ÎĵµµÄ´óС¡£";
+ Text[ russian ] = "Äîêóìåíò ïðåâûøàåò âîçìîæíûé îáúåì 3.1/4.0, óñòàíîâëåííûé äëÿ òåêñòîâîãî äîêóìåíòà";
+ Text[ polish ] = "Dokument przekracza dopuszczalny rozmiar dokumentu tekstowego 3.1/4.0";
+ Text[ japanese ] = "‚±‚ÌÄÞ·­ÒÝÄ‚ÍA3.1/4.0‚É‚¨‚¢‚ĉ”\\‚È÷½ÄÄÞ·­ÒÝÄ‚Ì»²½Þ‚ð’´‚¦‚Ä‚¢‚Ü‚·B";
+ Text[ chinese_traditional ] = "³o­Ó¤å¥ó¥i¯à¶W¹L 3.1/4.0 ª©¥»¤å¥óªº¤j¤p¡C";
+ Text[ arabic ] = "íÊÌÇæÒ ÇáãÓÊäÏ ÍÌã ãÓÊäÏ ÇáäÕ 3.1/4.0";
+ Text[ greek ] = "Ôï Ýããñáöï õðåñâáßíåé ôï åðéôñåðüìåíï üñéï ìåãÝèïõò åããñÜöïõ êåéìÝíïõ ãéá ôçí Ýêäïóç 3.1/4.0";
+ Text[ korean ] = "¹®¼­°¡ Çô¿ëµÈ 3.1/4.0 ÅؽºÆ® ¹®ÀÚ Å©±â¸¦ ÃÊ°ú Çß½À´Ï´Ù.";
+ Text[ turkish ] = "Belge izin verilen 3.1/4.0 metin belgesi büyüklüðünü aþýyor";
+ Text[ language_user1 ] = " ";
+ };
+ // Import-/Export-Errors
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_SWG_INTERNAL_ERROR )
+ {
+ TEXT = "Interner Fehler im StarWriter Dateiformat" ;
+ TEXT [ English ] = "Internal Error in StarWriter file" ;
+ TEXT [ norwegian ] = "Intern feil i StarWriter fil" ;
+ TEXT [ italian ] = "Errore interno nel formato di file di StarOffice Writer" ;
+ TEXT [ portuguese_brazilian ] = "Erro interno em arquivo do StarOffice Writer" ;
+ TEXT [ portuguese ] = "Erro interno no formato de ficheiro do StarOffice Writer" ;
+ TEXT [ finnish ] = "Sisäinen virhe StarWriter-tiedostossa" ;
+ TEXT [ danish ] = "Intern fejl i StarOffice Writer-filformatet" ;
+ TEXT [ french ] = "Erreur interne dans le format de fichier StarOffice Writer" ;
+ TEXT [ swedish ] = "Internt fel i StarOffice Writer-filformatet" ;
+ TEXT [ dutch ] = "Interne fout in StarOffice Writer bestandsformaat" ;
+ TEXT [ spanish ] = "Error interno en el formato de archivo de StarOffice Writer" ;
+ TEXT [ english_us ] = "Internal error in StarOffice Writer file format" ;
+ TEXT[ chinese_simplified ] = "ÄÚ²¿µÄ StarOffice Writer Îļþ¸ñʽ´íÎó";
+ TEXT[ russian ] = "Îøèáêà âíóòðè ôîðìàòà ôàéëà StarOffice Writer";
+ TEXT[ polish ] = "Wewnêtrzny b³¹d w formacie pliku StarOffice Writer";
+ TEXT[ japanese ] = "StarOffice Writer ̧²Ù‘Ž®‚Ì“à•”´×°";
+ TEXT[ chinese_traditional ] = "¤º³¡ªº StarOffice Writer Àɮ׮榡¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÏÇÎáí Ýí ÊäÓíÞ ãáÝ StarOffice Writer";
+ TEXT[ greek ] = "Åóùôåñéêü óöÜëìá óôç ìïñöÞ áñ÷åßïõ ôïõ StarOffice Writer";
+ TEXT[ korean ] = "StarOffice WriterÆÄÀϼ­½Ä ÀÇ ³»ºÎ ¿À·ù";
+ TEXT[ turkish ] = "Dahili StarOffice Writer dosyasý format hatasý";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_SWG_INTERNAL_ERROR )
+ {
+ TEXT = "Interner Fehler im StarWriter Dateiformat" ;
+ TEXT [ English ] = "Internal Error in StarWriter file" ;
+ TEXT [ norwegian ] = "Intern feil i StarWriter fil" ;
+ TEXT [ italian ] = "Errore interno nel formato di file di StarOffice Writer" ;
+ TEXT [ portuguese_brazilian ] = "Erro interno em arquivo do StarOffice Writer" ;
+ TEXT [ portuguese ] = "Erro interno no formato de ficheiro do StarOffice Writer" ;
+ TEXT [ finnish ] = "Sisäinen virhe StarWriter-tiedostossa" ;
+ TEXT [ danish ] = "Intern fejl i StarOffice Writer-filformatet" ;
+ TEXT [ french ] = "Erreur interne dans le format de fichier StarOffice Writer" ;
+ TEXT [ swedish ] = "Internt fel i StarOffice Writer-filformatet" ;
+ TEXT [ dutch ] = "Interne fout in StarOffice Writer bestandsformaat" ;
+ TEXT [ spanish ] = "Error interno en el formato de archivo de StarOffice Writer" ;
+ TEXT [ english_us ] = "Internal Error in StarOffice Writer file format" ;
+ TEXT[ chinese_simplified ] = "ÄÚ²¿µÄ StarOffice Writer Îļþ¸ñʽ´íÎó";
+ TEXT[ russian ] = "Îøèáêà âíóòðè ôîðìàòà ôàéëà StarOffice Writer";
+ TEXT[ polish ] = "Wewnêtrzny b³¹d w formacie pliku StarOffice Writer";
+ TEXT[ japanese ] = "StarOffice Writer ̧²Ù‘Ž®‚Ì“à•”´×°";
+ TEXT[ chinese_traditional ] = "¤º³¡ªº StarOffice Writer Àɮ׮榡¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÏÇÎáí Ýí ÊäÓíÞ ãáÝ StarOffice Writer";
+ TEXT[ greek ] = "Åóùôåñéêü óöÜëìá óôç ìïñöÞ áñ÷åßïõ ôïõ StarOffice Writer";
+ TEXT[ korean ] = "StarOffice Writer ÆÄÀϼ­½ÄÀÇ ³»ºÎ ¿À·ù";
+ TEXT[ turkish ] = "Dahili StarOffice Writer dosyasý format hatasý";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_W4W_MEM )
+ {
+ TEXT = "Nicht genügend Speicher vorhanden" ;
+ TEXT [ English ] = "Out of memory" ;
+ TEXT [ norwegian ] = "Ute av minne" ;
+ TEXT [ italian ] = "Memoria disponibile insufficiente" ;
+ TEXT [ portuguese_brazilian ] = "Sem memória" ;
+ TEXT [ portuguese ] = "Memória insuficiente" ;
+ TEXT [ finnish ] = "Muisti on lopussa" ;
+ TEXT [ danish ] = "Ikke nok hukommelse" ;
+ TEXT [ french ] = "Mémoire saturée" ;
+ TEXT [ swedish ] = "Inte tillräckligt med minne" ;
+ TEXT [ dutch ] = "Onvoldoende geheugen beschikbaar" ;
+ TEXT [ spanish ] = "Memoria insuficiente" ;
+ TEXT [ english_us ] = "Insufficient memory" ;
+ TEXT[ chinese_simplified ] = "ÄÚ´æ²»×ã";
+ TEXT[ russian ] = "Íåäîñòàòî÷íî ïàìÿòè";
+ TEXT[ polish ] = "Za ma³o pamiêci";
+ TEXT[ japanese ] = "\\•ª‚È‹ó‚«—e—Ê‚ª‚ ‚è‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "°O¾ÐÅ餣¨¬";
+ TEXT[ arabic ] = "ÇáÐÇßÑÉ ÛíÑ ßÇÝíÉ";
+ TEXT[ greek ] = "Ç ìíÞìç äåí åðáñêåß.";
+ TEXT[ korean ] = "¸Þ¸ð¸®°¡ ºÎÁ·ÇÕ´Ï´Ù.";
+ TEXT[ turkish ] = "Yetersiz bellek";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_W4W_MEM )
+ {
+ TEXT = "Nicht genügend Speicher vorhanden" ;
+ TEXT [ English ] = "Out of memory" ;
+ TEXT [ norwegian ] = "Ute av minne" ;
+ TEXT [ italian ] = "Memoria disponibile insufficiente" ;
+ TEXT [ portuguese_brazilian ] = "Sem memória" ;
+ TEXT [ portuguese ] = "Memória insuficiente" ;
+ TEXT [ finnish ] = "Muisti on lopussa" ;
+ TEXT [ danish ] = "Ikke nok hukommelse" ;
+ TEXT [ french ] = "Mémoire saturée" ;
+ TEXT [ swedish ] = "Inte tillräckligt med minne" ;
+ TEXT [ dutch ] = "Onvoldoende geheugen beschikbaar" ;
+ TEXT [ spanish ] = "Memoria insuficiente" ;
+ TEXT [ english_us ] = "Insufficient memory" ;
+ TEXT[ chinese_simplified ] = "ÄÚ´æ²»×ã";
+ TEXT[ russian ] = "Íåäîñòàòî÷íî ïàìÿòè";
+ TEXT[ polish ] = "Za ma³o pamiêci";
+ TEXT[ japanese ] = "\\•ª‚È‹ó‚«—e—Ê‚ª‚ ‚è‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "°O¾ÐÅ餣¨¬";
+ TEXT[ arabic ] = "ÇáÐÇßÑÉ ÛíÑ ßÇÝíÉ";
+ TEXT[ greek ] = "Ç ìíÞìç äåí åðáñêåß.";
+ TEXT[ korean ] = "¸Þ¸ð¸®°¡ ºÎÁ·ÇÕ´Ï´Ù.";
+ TEXT[ turkish ] = "Yetersiz bellek";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_W4W_WRITE_FULL )
+ {
+ TEXT = "Nicht genügend Platz auf dem Speichermedium" ;
+ TEXT [ English ] = "Not enough space on disk" ;
+ TEXT [ norwegian ] = "Ikke nok plass på disketten" ;
+ TEXT [ italian ] = "Spazio su disco insufficiente" ;
+ TEXT [ portuguese_brazilian ] = "Não há espaço suficiente em disco" ;
+ TEXT [ portuguese ] = "Espaço do disco insuficiente" ;
+ TEXT [ finnish ] = "Levytila ei riitä" ;
+ TEXT [ danish ] = "Ikke tilstrækkelig diskplads" ;
+ TEXT [ french ] = "Espace insuffisant sur le disque" ;
+ TEXT [ swedish ] = "Inte tillräckligt med diskutrymme" ;
+ TEXT [ dutch ] = "Onvoldoende vrije ruimte op opslagmedium" ;
+ TEXT [ spanish ] = "No hay suficiente espacio en el disco" ;
+ TEXT [ english_us ] = "Not enough disk space" ;
+ TEXT[ chinese_simplified ] = "¿ÉÓÿռ䲻×ã";
+ TEXT[ russian ] = "Íåäîñòàòî÷íî ìåñòà íà äèñêå";
+ TEXT[ polish ] = "Brak miejsca na dysku";
+ TEXT[ japanese ] = "ÒÓØ”}‘Ì‚É\\•ª‚È‹ó‚«—e—Ê‚ª‚ ‚è‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "¥i¥ÎªÅ¶¡¤£¨¬";
+ TEXT[ arabic ] = "áÇ íæÌÏ ãÓÇÍÉ ßÇÝíÉ Úáì ãÍÑß ÇáÃÞÑÇÕ";
+ TEXT[ greek ] = "Äåí õðÜñ÷åé áñêåôüò äéáèÝóéìïò ÷þñïò óôï ìÝóï áðïèÞêåõóçò";
+ TEXT[ korean ] = "µð½ºÅ© °ø°£ÀÌ ºÎÁ·ÇÕ´Ï´Ù.";
+ TEXT[ turkish ] = "Yeterli disk alaný yok";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_W4W_WRITE_FULL )
+ {
+ TEXT = "Nicht genügend Platz auf dem Speichermedium" ;
+ TEXT [ English ] = "Not enough space on disk" ;
+ TEXT [ norwegian ] = "Ikke nok plass på disketten" ;
+ TEXT [ italian ] = "Spazio su disco insufficiente" ;
+ TEXT [ portuguese_brazilian ] = "Não há espaço suficiente em disco" ;
+ TEXT [ portuguese ] = "Espaço do disco insuficiente" ;
+ TEXT [ finnish ] = "Levytila ei riitä" ;
+ TEXT [ danish ] = "Ikke tilstrækkelig diskplads" ;
+ TEXT [ french ] = "Espace insuffisant sur le disque" ;
+ TEXT [ swedish ] = "Inte tillräckligt med diskutrymme" ;
+ TEXT [ dutch ] = "Onvoldoende vrije ruimte op opslagmedium" ;
+ TEXT [ spanish ] = "No hay suficiente espacio en el disco" ;
+ TEXT [ english_us ] = "Not enough disk space" ;
+ TEXT[ chinese_simplified ] = "¿ÉÓÿռ䲻×ã";
+ TEXT[ russian ] = "Íåäîñòàòî÷íî ìåñòà íà äèñêå";
+ TEXT[ polish ] = "Brak miejsca na dysku";
+ TEXT[ japanese ] = "ÒÓØ”}‘Ì‚É\\•ª‚È‹ó‚«—e—Ê‚ª‚ ‚è‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "¥i¥ÎªÅ¶¡¤£¨¬";
+ TEXT[ arabic ] = "áÇ íæÌÏ ãÓÇÍÉ ßÇÝíÉ Úáì ãÍÑß ÇáÃÞÑÇÕ";
+ TEXT[ greek ] = "Äåí õðÜñ÷åé áñêåôüò äéáèÝóéìïò ÷þñïò óôï ìÝóï áðïèÞêåõóçò";
+ TEXT[ korean ] = "µð½ºÅ© °ø°£ÀÌ ÃæºÐÇÏÁö ¾Ê½À´Ï´Ù.";
+ TEXT[ turkish ] = "Yeterli disk alaný yok";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_W4W_INTERNAL_ERROR )
+ {
+ TEXT = "Unbekannter Fehler im W4W-Filter" ;
+ TEXT [ English ] = "Internal Error in W4W filter" ;
+ TEXT [ norwegian ] = "Intern feil I W4W filter" ;
+ TEXT [ italian ] = "Errore sconosciuto nel filtro W4W" ;
+ TEXT [ portuguese_brazilian ] = "Erro interno no filtro W4W" ;
+ TEXT [ portuguese ] = "Erro desconhecido no filtro W4W" ;
+ TEXT [ finnish ] = "Sisäinen virhe W4W-suotimessa" ;
+ TEXT [ danish ] = "Intern fejl i W4W-filtret" ;
+ TEXT [ french ] = "Erreur inconnue du filtre W4W" ;
+ TEXT [ swedish ] = "Obekant fel i W4W-filter" ;
+ TEXT [ dutch ] = "Onbekende fout in W4W-filter" ;
+ TEXT [ spanish ] = "Error desconocido en el filtro W4W" ;
+ TEXT [ english_us ] = "Unknown error in W4W filter" ;
+ TEXT[ chinese_simplified ] = "W4W ¹ýÂËÆ÷·¢Éú²»Ã÷´íÎó¡£";
+ TEXT[ russian ] = "Íåèçâåñòíàÿ îøèáêà â ôèëüòðå W4W";
+ TEXT[ polish ] = "Nieznany b³¹d w filtrze W4W";
+ TEXT[ japanese ] = "W4W̨ÙÀ‚É‚ ‚é•s–¾‚Ì´×°";
+ TEXT[ chinese_traditional ] = "W4W ¹LÂo¾¹µo¥Í¤£©ú¿ù»~¡C";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÛíÑ ãÚÑæÝ Ýí ÝáÊÑ W4W";
+ TEXT[ greek ] = "¢ãíùóôï óöÜëìá óôï ößëôñï W4W";
+ TEXT[ korean ] = "W4W ÇÊÅÍ¿¡ ¾Ë·ÁÁöÁö ¾ÊÀº ¿À·ù";
+ TEXT[ turkish ] = "W4W filtresinde bilinmeyen hata";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_W4W_INTERNAL_ERROR )
+ {
+ TEXT = "Unbekannter Fehler im W4W-Filter" ;
+ TEXT [ English ] = "Internal Error in W4W filter" ;
+ TEXT [ norwegian ] = "Intern feil I W4W filter" ;
+ TEXT [ italian ] = "Errore sconosciuto nel filtro W4W" ;
+ TEXT [ portuguese_brazilian ] = "Erro interno no filtro W4W" ;
+ TEXT [ portuguese ] = "Erro desconhecido no filtro W4W" ;
+ TEXT [ finnish ] = "Sisäinen virhe W4W-suotimessa" ;
+ TEXT [ danish ] = "Intern fejl i W4W-filtret" ;
+ TEXT [ french ] = "Erreur inconnue dans le filtre W4W" ;
+ TEXT [ swedish ] = "Obekant fel i W4W-filter" ;
+ TEXT [ dutch ] = "Onbekende fout in W4W-filter" ;
+ TEXT [ spanish ] = "Error desconocido en el filtro W4W" ;
+ TEXT [ english_us ] = "Unknown error in W4W filter" ;
+ TEXT[ chinese_simplified ] = "W4W ¹ýÂËÆ÷·¢Éú²»Ã÷´íÎó¡£";
+ TEXT[ russian ] = "Íåèçâåñòíàÿ îøèáêà â ôèëüòðå W4W";
+ TEXT[ polish ] = "Nieznany b³¹d w filtrze W4W";
+ TEXT[ japanese ] = "W4W̨ÙÀ‚É‚ ‚é•s–¾‚Ì´×°";
+ TEXT[ chinese_traditional ] = "W4W ¹LÂo¾¹µo¥Í¤£©ú¿ù»~¡C";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÛíÑ ãÚÑæÝ Ýí ÝáÊÑ W4W";
+ TEXT[ greek ] = "¢ãíùóôï óöÜëìá óôï ößëôñï W4W";
+ TEXT[ korean ] = "W4W ÇÊÅÍ¿¡ ¾Ë·ÁÁöÁö ¾ÊÀº ¿À·ù";
+ TEXT[ turkish ] = "W4W filtresinde bilinmeyen hata";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_READ , ERR_W4W_DLL_ERROR )
+ {
+ TEXT = "Fehler beim Laden des Konverters" ;
+ TEXT [ English ] = "Error in loading converter " ;
+ TEXT [ norwegian ] = "Feil ved innlasting av omformer " ;
+ TEXT [ italian ] = "Errore nel caricamento del convertitore" ;
+ TEXT [ portuguese_brazilian ] = "Erro em carregar conversão" ;
+ TEXT [ portuguese ] = "Erro ao carregar o conversor" ;
+ TEXT [ finnish ] = "Virhe ladattaessa suodinta " ;
+ TEXT [ danish ] = "Fejl under indlæsning af konverteren" ;
+ TEXT [ french ] = "Erreur de chargement du convertisseur" ;
+ TEXT [ swedish ] = "Fel vid laddning av konverteraren" ;
+ TEXT [ dutch ] = "Fout bij het laden van de converter" ;
+ TEXT [ spanish ] = "Error al cargar el convertidor" ;
+ TEXT [ english_us ] = "Error loading converter" ;
+ TEXT[ chinese_simplified ] = "ÔÚת»»Ê±·¢Éú´íÎó";
+ TEXT[ russian ] = "Îøèáêà ïðè çàãðóçêå êîíâåðòîðà";
+ TEXT[ polish ] = "B³¹d podczas ³adowania konwertera";
+ TEXT[ japanese ] = "ºÝÊÞ°À“Ç‚Ýž‚Ý’†‚Ì´×°";
+ TEXT[ chinese_traditional ] = "Âà´«®Éµo¥Í¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÊÍãíá ÇáãÍæá";
+ TEXT[ greek ] = "ÓöÜëìá êáôÜ ôç öüñôùóç ôïõ ìåôáôñïðÝá";
+ TEXT[ korean ] = "º¯È¯ ·Îµå ¿À·ù";
+ TEXT[ turkish ] = "Dönüþtürücü yükleme hatasý";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_WRITE , ERR_W4W_DLL_ERROR )
+ {
+ TEXT = "Fehler beim Laden des Konverters" ;
+ TEXT [ English ] = "Error in loading converter " ;
+ TEXT [ norwegian ] = "Feil ved innlasting av omformer " ;
+ TEXT [ italian ] = "Errore nel caricamento del convertitore" ;
+ TEXT [ portuguese_brazilian ] = "Erro em carregar conversão" ;
+ TEXT [ portuguese ] = "Erro ao carregar o conversor" ;
+ TEXT [ finnish ] = "Virhe ladattaessa suodinta " ;
+ TEXT [ danish ] = "Fejl under indlæsning af konverteren" ;
+ TEXT [ french ] = "Erreur de chargement du convertisseur" ;
+ TEXT [ swedish ] = "Fel vid laddning av konverteraren" ;
+ TEXT [ dutch ] = "Fout bij het laden van de converter" ;
+ TEXT [ spanish ] = "Error al cargar el convertidor" ;
+ TEXT [ english_us ] = "Error loading converter" ;
+ TEXT[ chinese_simplified ] = "ת»»Ê±·¢Éú´íÎó";
+ TEXT[ russian ] = "Îøèáêà ïðè çàãðóçêå êîíâåðòîðà";
+ TEXT[ polish ] = "B³¹d podczas ³adowania konwertera";
+ TEXT[ japanese ] = "ºÝÊÞ°À“Ç‚Ýž‚Ý’†‚Ì´×°";
+ TEXT[ chinese_traditional ] = "Âà´«®Éµo¥Í¿ù»~";
+ TEXT[ arabic ] = "ÍÏË ÎØà ÃËäÇÁ ÊÍãíá ÇáãÍæá";
+ TEXT[ greek ] = "ÓöÜëìá êáôÜ ôç öüñôùóç ôïõ ìåôáôñïðÝá";
+ TEXT[ korean ] = "º¯È¯ ·Îµå ¿À·ù";
+ TEXT[ turkish ] = "Dönüþtürücü yükleme hatasý";
+ TEXT[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_LOCKING , ERR_TXTBLOCK_NEWFILE_ERROR )
+ {
+ TEXT = "$(ARG1) hat sich geändert" ;
+ TEXT [ English ] = "$(ARG1) has changed" ;
+ Text [ dutch ] = "$(ARG1) is veranderd" ;
+ Text [ english_us ] = "$(ARG1) has changed" ;
+ Text [ italian ] = "$(ARG1) è cambiato" ;
+ Text [ spanish ] = "$(ARG1) se ha modificado" ;
+ Text [ french ] = "$(ARG1) a été modifié" ;
+ Text [ swedish ] = "$(ARG1) har ändrats" ;
+ Text [ danish ] = "$(ARG1) er ændret" ;
+ Text [ portuguese ] = "$(ARG1) foi modificado" ;
+ Text [ portuguese_brazilian ] = "$(ARG1) hat sich geändert" ;
+ Text[ chinese_simplified ] = "$(ARG1) ÒѾ­¸ü¸Ä¡£";
+ Text[ russian ] = "$(ARG1) èçìåíèëñÿ";
+ Text[ polish ] = "$(ARG1) uleg³ zmianie";
+ Text[ japanese ] = "$(ARG1)‚Í•ÏX‚³‚ê‚Ü‚µ‚½";
+ Text[ chinese_traditional ] = "$(ARG1) ¤w¸gÅܧó¡C";
+ Text[ arabic ] = "ÊÛíÑ $(ARG1)";
+ Text[ greek ] = "$(ARG1) Ý÷åé áëëÜîåé";
+ Text[ korean ] = "$(ARG1) ÀÌ º¯°æµÇ¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "$(ARG1) deðiþti";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_PATH , ERR_AUTOPATH_ERROR )
+ {
+ TEXT = "$(ARG1) existiert nicht" ;
+ TEXT [ English ] = "$(ARG1) does not exist" ;
+ Text [ dutch ] = "$(ARG1) bestaat niet" ;
+ Text [ english_us ] = "$(ARG1) does not exist" ;
+ Text [ italian ] = "$(ARG1) non esiste" ;
+ Text [ spanish ] = "$(ARG1) no existe" ;
+ Text [ french ] = "$(ARG1) n'existe pas" ;
+ Text [ swedish ] = "$(ARG1) existerar inte" ;
+ Text [ danish ] = "$(ARG1) eksisterer ikke" ;
+ Text [ portuguese ] = "$(ARG1) não existe" ;
+ Text [ portuguese_brazilian ] = "$(ARG1) existiert nicht" ;
+ Text[ chinese_simplified ] = "$(ARG1) ²»´æÔÚ";
+ Text[ russian ] = "$(ARG1) íå ñóùåñòâóåò";
+ Text[ polish ] = "$(ARG1) nie istnieje";
+ Text[ japanese ] = "$(ARG1)‚Í‚ ‚è‚Ü‚¹‚ñ";
+ Text[ chinese_traditional ] = "$(ARG1) ¤£¦s¦b";
+ Text[ arabic ] = "$(ARG1) ÛíÑ ãæÌæÏ";
+ Text[ greek ] = "$(ARG1) äåí õðÜñ÷åé";
+ Text[ korean ] = "$(ARG1) ÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "$(ARG1) mevcut deðil";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLSPLIT_ERROR )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Zellen können nicht mehr geteilt werden : Zellen k÷nnen nicht mehr geteilt werden */
+ TEXT = "Zellen können nicht mehr geteilt werden" ;
+ TEXT [ English ] = "Cells can not be split" ;
+ Text [ dutch ] = "Cellen kunnen niet meer worden gesplitst" ;
+ Text [ english_us ] = "Cells cannot be further split" ;
+ Text [ italian ] = "Non è più possibile dividere le celle" ;
+ Text [ spanish ] = "Las celdas no se pueden dividir más" ;
+ Text [ french ] = "Impossible de scinder (davantage) les cellules" ;
+ Text [ swedish ] = "Cellerna kan inte delas mer" ;
+ Text [ danish ] = "Cellerne kan ikke deles mere" ;
+ Text [ portuguese ] = "É impossível dividir mais as células" ;
+ Text [ portuguese_brazilian ] = "Zellen können nicht mehr geteilt werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨·Ö¸ôµ¥Ôª¸ñ";
+ Text[ russian ] = "Ðàçáèòü ÿ÷åéêè áîëüøå íåâîçìîæíî";
+ Text[ polish ] = "Komórek nie mo¿na podzieliæ";
+ Text[ japanese ] = "‚±‚êˆÈã¾Ù‚𕪊„‚Å‚«‚Ü‚¹‚ñ";
+ Text[ chinese_traditional ] = "µLªk¤À¶}Àx¦s®æ";
+ Text[ arabic ] = "áÇ íãßä ÊÞÓíã ÇáÎáÇíÇ ÃßËÑ ãä Ðáß";
+ Text[ greek ] = "Ç åðéðëÝïí äéáßñåóç ôùí êåëéþí åßíáé áäýíáôç";
+ Text[ korean ] = "¼¿ÀÌ ´õÀÌ»ó ³ª´©¾îÁöÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Hücreler daha fazla bölünemiyor";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLINSCOL_ERROR )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? weitere Spalten können nicht eingefügt werden : weitere Spalten k÷nnen nicht eingef³gt werden */
+ TEXT = "weitere Spalten können nicht eingefügt werden" ;
+ TEXT [ English ] = "more Columns cannot be insertet" ;
+ Text [ dutch ] = "Meer kolommen kunnen niet worden ingevoegd" ;
+ Text [ english_us ] = "Additional columns cannot be inserted" ;
+ Text [ italian ] = "Impossibile inserire altre colonne." ;
+ Text [ spanish ] = "No se pueden insertar columnas adicionales" ;
+ Text [ french ] = "Impossible d'insérer des colonnes supplémentaires" ;
+ Text [ swedish ] = "Ytterligare kolumner kan inte infogas" ;
+ Text [ danish ] = "Det er ikke muligt at indsætte flere kolonner" ;
+ Text [ portuguese ] = "Impossível inserir colunas adicionais" ;
+ Text [ portuguese_brazilian ] = "weitere Spalten können nicht eingefügt werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨²åÈëÆäËüµÄÁÐ";
+ Text[ russian ] = "Äîïîëíèòåëüíûå ñòîëáöû âñòàâèòü íåâîçìîæíî";
+ Text[ polish ] = "dodatkowych kolumn nie mo¿na wstawiæ";
+ Text[ japanese ] = "’ljÁ‚Ì—ñ‚ð‘}“ü‚Å‚«‚Ü‚¹‚ñ";
+ Text[ chinese_traditional ] = "µLªk´¡¤J¨ä¥¦Äæ";
+ Text[ arabic ] = "áÇ íãßä ÅÏÑÇÌ ÇáãÒíÏ ãä ÇáÃÚãÏÉ";
+ Text[ greek ] = "äåí ìðïñïýí íá åéóá÷èïýí ðåñéóóüôåñåò óôÞëåò";
+ Text[ korean ] = "ºÎ°¡ÀûÀÎ ¿­ÀÌ »ðÀԵɼö ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Daha fazla sütun eklenemiyor";
+ Text[ language_user1 ] = " ";
+ };
+ String ERR_CODE ( ERRCODE_CLASS_NONE , ERR_TBLDDECHG_ERROR )
+ {
+ TEXT = "Bei einer verknüpften Tabelle darf die Struktur nicht verändert werden" ;
+ TEXT [ English ] = "The linked table could not be changed the structure" ;
+ Text [ portuguese ] = "É impossível modificar a estrutura de uma tabela ligada" ;
+ Text [ english_us ] = "The structure of a linked table cannot be modified" ;
+ Text [ portuguese_brazilian ] = "Bei einer verknüpften Tabelle darf die Struktur nicht verändert werden" ;
+ Text [ swedish ] = "Strukturen på en länkad tabell får inte ändras" ;
+ Text [ danish ] = "En kædet tabels struktur må ikke ændres" ;
+ Text [ italian ] = "In una tabella collegata non sono ammesse modifiche alla struttura." ;
+ Text [ spanish ] = "No se puede modificar la estructura de una tabla vinculada" ;
+ Text [ french ] = "La structure d'un tableau ne peut pas être modifiée s'il a fait l'objet d'un lien" ;
+ Text [ dutch ] = "Bij een gekoppelde tabel mag de structuur niet worden veranderd." ;
+ Text[ chinese_simplified ] = "²»Äܸü¸ÄÒ»¸öÁ´½ÓµÄ±í¸ñ½á¹¹";
+ Text[ russian ] = "Èçìåíÿòü ñòðóêòóðó ñâÿçàííîé òàáëèöû íåëüçÿ";
+ Text[ polish ] = "Przy po³¹czonej tabeli nie wolno zmieniaæ jej struktury";
+ Text[ japanese ] = "Øݸ‚³‚ꂽ•\\‚Ì\\‘¢‚Í•ÏX‚Å‚«‚Ü‚¹‚ñ";
+ Text[ chinese_traditional ] = "¤£¯àÅܧó¤@­Ó³sµ²ªºªí®æµ²ºc";
+ Text[ arabic ] = "áÇ íãßä ÊÚÏíá ÈäíÉ ÌÏæá ãÑÊÈØ";
+ Text[ greek ] = "Äåí åßíáé äõíáôÞ ç áëëáãÞ äïìÞò åíüò óõíäåäåìÝíïõ ðßíáêá";
+ Text[ korean ] = "¿¬°áµÈ Å×À̺íÀÇ ±¸Á¶°¡ ¼öÁ¤µÇ¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Baðlantýlý bir tablonun yapýsý deðiþtirilmez";
+ Text[ language_user1 ] = " ";
+ };
+ // -------------------- Warnings -----------------------------------
+ String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_NO_DRAWINGS )
+ {
+ TEXT = "Es konnten keine Zeichnungen geladen werden" ;
+ TEXT [ English ] = "No drawings could be read" ;
+ Text [ english_us ] = "No drawings could be read" ;
+ Text [ italian ] = "Non è stato possibile caricare alcun disegno" ;
+ Text [ spanish ] = "No se pudo cargar ningún dibujo" ;
+ Text [ french ] = "Impossible de charger des dessins" ;
+ Text [ dutch ] = "Er konden geen tekeningen worden geladen" ;
+ Text [ swedish ] = "Inga teckningar kunde laddas" ;
+ Text [ danish ] = "Det var ikke muligt at indlæse nogen tegninger" ;
+ Text [ portuguese ] = "Foi impossível carregar desenhos" ;
+ Text [ portuguese_brazilian ] = "Es konnten keine Zeichnungen geladen werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨×°ÔØͼÏñ";
+ Text[ russian ] = "Çàãðóçêà ðèñóíêîâ íåâîçìîæíà";
+ Text[ polish ] = "¯adne rysunki nie mog³y zostaæ za³adowane";
+ Text[ japanese ] = "}Œ`•`‰æ‚Í“Ç‚Ýž‚Ý‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½";
+ Text[ chinese_traditional ] = "µLªk¸Ë¸ü¼v¹³";
+ Text[ arabic ] = "ÊÚÐÑ ÊÍãíá ÃíÉ ÑÓæãÇÊ";
+ Text[ greek ] = "Äåí Þôáí äõíáôÞ ç öüñôùóç ó÷åäßùí";
+ Text[ korean ] = "±×¸®±â°¡ ÀÐÇôÁú ¼ö ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Çizim yüklenemedi";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_READ , WARN_WW6_FASTSAVE_ERR )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ /* ### ACHTUNG: Neuer Text in Resource? Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord : Diese Datei wurde mit der WinWord-Option ''Schnellspeichern'' gespeichert. Bitte schalten Sie in WinWord die Option ''Schnellspeichern zulassen'' aus und speichern sie die Datei erneut mit WinWord */
+ TEXT = "Diese Datei wurde mit der WinWord-Option 'Schnellspeichern' gespeichert. Bitte schalten Sie in WinWord die Option 'Schnellspeichern zulassen' aus und speichern sie die Datei erneut mit WinWord" ;
+ TEXT [ English ] = "This file is stored with the WinWord-Option 'fastsave'. Please disable the WinWord option 'Allow Fast Saves' and use WinWord to save the file again" ;
+ TEXT [ norwegian ] = "Denne filen er lagret med alternativet til WinWord 'hurtiglagre'. Sperr WinWord alternativet ' Tillat Hurtige Lagringer' og bruk WinWord for å lagre filen igjen" ;
+ TEXT [ italian ] = "Questo file è stato salvato con l'opzione di Winword 'salvataggio veloce'. Disabilitate l'opzione di WinWord 'Salvataggio veloce' ed utilizzate WinWord per salvare di nuovo il file." ;
+ TEXT [ portuguese_brazilian ] = "Este arquivo foi armazenado com a opção do WinWord 'fastsave'. Por favor desative a opção do WinWord 'Allow Fast Saves' e utilize o WinWord para gravar novamente o arquivo" ;
+ TEXT [ portuguese ] = "Este ficheiro foi guardado com a opção do WinWord \"Guardar rápido\". Desactive a opção do WinWord \"Permitir Guardar rápido\" e guarde novamente o ficheiro em WinWord" ;
+ TEXT [ finnish ] = "Tämä tiedosto on tallennettu käyttäen WinWordin pikatallennusta. Poista pikatallennus käytöstä WinWordissa ja tallennatiedosto uudelleen" ;
+ TEXT [ danish ] = "Denne fil er blevet gemt med WinWord-indstillingen 'Gem hurtigt'. Deaktiver venligst indstillingen 'Gem hutigt' og gem filen igen med WinWord." ;
+ TEXT [ french ] = "Ce fichier a été enregistré à l'aide de l'option 'Enregistrement rapide' de WinWord. Veuillez désactiver cette option et utiliser WinWord pour enregistrer à nouveau le fichier." ;
+ TEXT [ swedish ] = "Denna fil är sparad med WinWord-alternativet 'snabbspara'. Stäng av WinWord-alternativet 'Tillåt snabbspara' och spara filen med WinWord igen" ;
+ TEXT [ dutch ] = "Dit bestand werd met de WinWord optie \"Snel opslaan\" opgeslagen. Schakel a.u.b in WinWord de optie \"Snel opslaan toestaan\" uit en sla het bestand opnieuw op met WinWord." ;
+ TEXT [ spanish ] = "Este archivo ha sido guardado con la opción de WinWord 'guardar rápidamente' . Por favor desactive en WinWord la opción 'permitir guardar rápidamente' y guarde nuevamente el archivo con WinWord" ;
+ TEXT [ english_us ] = "This file was saved with WinWord in 'Fast Save' mode. Please uncheck the option 'Allow Fast Saves' and save the file again." ;
+ TEXT[ chinese_simplified ] = "Õâ¸öÎļþ´æÅ̲ÉÓõÄÊÇ WinWord Ñ¡Ïî '¿ìËÙ±£´æ'·½Ê½¡£ÇëÄúʧ»îÕâ¸öÑ¡ÏȻºóÔÚÖØдæÅÌÕâ¸öÎļþ¡£";
+ TEXT[ russian ] = "Ýòîò ôàéë ñîõðàíåí ïðè ïîìîùè ïàðàìåòðà WinWord 'Áûñòðîå ñîõðàíåíèå'. Ïîæàëóéñòà, îòêëþ÷èòå ïàðàìåòð 'Ðàçðåøèòü áûñòðîå ñîõðàíåíèå' è çàíîâî ñîõðàíèòå ýòîò ôàéë ñ ïîìîùüþ WinWord";
+ TEXT[ polish ] = "Ten plik zosta³ zapisany za pomoc¹ opcji WinWord 'Szybkie zapisywanie'. Proszê wy³¹cz w WinWord opcjê 'Dopuœæ szybkie zapisywanie' i zapisz plik ponownie w WinWord.";
+ TEXT[ japanese ] = "‚±‚Ì̧²Ù‚ÍAWinWordµÌß¼®Ý‚Ì'‚‘¬•Û‘¶'‚Å•Û‘¶‚³‚ê‚Ä‚¢‚Ü‚·BWinWord‚̵Ìß¼®Ý '‚‘¬•Û‘¶' ‚ðµÌ‚É‚µ‚ÄA̧²Ù‚ðV‚½‚ÉWinWord‚Å•Û‘¶‚µ‚ĉº‚³‚¢B";
+ TEXT[ chinese_traditional ] = "Àx¦sÀɮױĥΪº¬O WinWord ¿ï¶µ '§Ö³tÀx¦s'¤è¦¡¡C½Ð±z¥¢¬¡³o­Ó¿ï¶µ¡MµM«á¦b­«·sÀx¦s³o­ÓÀɮסC";
+ TEXT[ arabic ] = "Êã ÍÝÙ åÐÇ ÇáãáÝ Úä ØÑíÞ ÎíÇýÑ 'ÇáÍÝÙ ÇáÓÑíÚ' Ýí WinWord. ÇáÑÌÇÁ ÅíÞÇÝ ÎÇÕíÉ 'ÇáÓãÇÍ ÈÇáÍÝÙ ÇáÓÑíÚ' Ýí WinWord¡ Ëã Þã ÈÍÝÙ ÇáãáÝ ãä ÌÏíÏ ÈæÇÓØÉ WinWord.";
+ TEXT[ greek ] = "Ôï áñ÷åßï áõôü áðïèçêåýôçêå ìå ôçí åðéëïãÞ 'ÃñÞãïñç áðïèÞêåõóç' ôïõ WinWord. Ðáñáêáëþ áðåíåñãïðïéÞóåôå ôçí åðéëïãÞ áõôÞ ôïõ WinWord êáé áðïèçêåýóôå ôï áñ÷åßï îáíÜ óôï WinWord.";
+ TEXT[ korean ] = "ÀÌ ÆÄÀÏÀº WinWordÀÇ 'ºü¸¥ ÀúÀå' ¸ðµå·Î ÀúÀåµÇ¾î ÀÖ½À´Ï´Ù. ¿É¼Ç 'ºü¸¥ ÀúÀå Çã¿ë'À» ÇØÁ¦ÇϽðí ÆÄÀÏÀ» ´Ù½Ã ÀúÀåÇϽʽÿÀ.";
+ TEXT[ turkish ] = "Bu dosya WinWord seçeneði 'Hýzlý kaydet' ile kaydedilmiþ. WinWord'de 'Hýzlý kaydetmeye olanak saðla' seçeneðini geçersiz kýlýp dosyayý yeniden WinWord ile kaydedin";
+ TEXT[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_FEATURES_LOST )
+ {
+ TEXT = "Es konnten nicht alle Attribute gelesen werden" ;
+ TEXT [ English ] = "Not all attributes could be read" ;
+ Text [ dutch ] = "Niet alle attributen konden worden ingelezen" ;
+ Text [ english_us ] = "Not all attributes could be read" ;
+ Text [ italian ] = "Non è stato possibile leggere tutti gli attributi" ;
+ Text [ spanish ] = "No se pudieron leer todos los atributos" ;
+ Text [ french ] = "Impossible de lire tous les attributs" ;
+ Text [ swedish ] = "Alla attribut kunde inte läsas" ;
+ Text [ danish ] = "Det var ikke muligt at læse alle attributter" ;
+ Text [ portuguese ] = "Foi impossível ler todos os atributos" ;
+ Text [ portuguese_brazilian ] = "Es konnten nicht alle Attribute gelesen werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨¶ÁÈ¡ËùÓеÄÊôÐÔ";
+ Text[ russian ] = "Âñå àòðèáóòû ïðî÷èòàòü íåâîçìîæíî";
+ Text[ polish ] = "Nie wszystkie atrybuty mog³y zostaæ odczytane";
+ Text[ japanese ] = "‚·‚ׂĂ̑®«‚ð“Ç‚ÝŽæ‚邱‚Æ‚Í‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½";
+ Text[ chinese_traditional ] = "µLªkŪ¨ú©Ò¦³ªºÄÝ©Ê";
+ Text[ arabic ] = "ÊÚÐÑ ÞÑÇÁÉ ßá ÇáÓãÇÊ";
+ Text[ greek ] = "Äåí Þôáí äõíáôÞ ç áíÜãíùóç üëùí ôùí ÷áñáêôçñéóôéêþí";
+ Text[ korean ] = "¸ðµç ¼Ó¼ºÀÌ ÀÐÇô Áú¼ö ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Tüm öznitelikler okunamadý";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_FEATURES_LOST )
+ {
+ TEXT = "Es konnten nicht alle Attribute geschrieben werden" ;
+ TEXT [ English ] = "Not all attributes could be written" ;
+ Text [ english_us ] = "Not all attributes could be recorded" ;
+ Text [ italian ] = "Non è stato possibile scrivere tutti gli attributi" ;
+ Text [ spanish ] = "No se pudieron grabar todos los atributos" ;
+ Text [ french ] = "Impossible d'écrire tous les attributs" ;
+ Text [ dutch ] = "Niet alle attributen konden worden geschreven" ;
+ Text [ swedish ] = "Alla attribut kunde inte skrivas" ;
+ Text [ danish ] = "Det var ikke muligt at skrive alle attributter" ;
+ Text [ portuguese ] = "Foi impossível gravar todos os atributos" ;
+ Text [ portuguese_brazilian ] = "Es konnten nicht alle Attribute geschrieben werden" ;
+ Text[ chinese_simplified ] = "²»ÄÜдÈëËùÓеÄÊôÐÔ";
+ Text[ russian ] = "Âñå àòðèáóòû çàïèñàòü íåâîçìîæíî";
+ Text[ polish ] = "Nie wszystkie atrybuty mog³y zostaæ zapisane";
+ Text[ japanese ] = "‚·‚ׂĂ̑®«‚ð‹L˜^‚·‚邱‚Æ‚Í‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½";
+ Text[ chinese_traditional ] = "¤£¯à¼g¤J©Ò¦³ªºÄÝ©Ê";
+ Text[ arabic ] = "ÊÚÐÑ ßÊÇÈÉ ßá ÇáÓãÇÊ";
+ Text[ greek ] = "Äåí Þôáí äõíáôÞ ç êáôáãñáöÞ üëùí ôùí ÷áñáêôçñéóôéêþí";
+ Text[ korean ] = "¸ðµç ¼Ó¼ºÀÌ ±â·ÏµÉ ¼ö ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Tüm öznitelikler yazýlamadý";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_OLE )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Einige OLE-Objekte konnten nur als Grafiken übernommen werden : Einige OLE-Objekte konnten nur als Grafiken ³bernommen werden */
+ TEXT = "Einige OLE-Objekte konnten nur als Grafiken übernommen werden" ;
+ TEXT [ English ] = "Some OLE Objects could only be loaded as graphics" ;
+ Text [ dutch ] = "Enkele OLE-objecten konden alleen als grafische objecten worden overgenomen" ;
+ Text [ english_us ] = "Some OLE objects could only be loaded as graphics" ;
+ Text [ italian ] = "Alcuni oggetti OLE sono stati prelevati solo come immagini" ;
+ Text [ spanish ] = "Algunos objetos OLE se pudieron incluir solo como imágenes" ;
+ Text [ french ] = "Certains objets OLE ont pu être chargés uniquement sous forme d'images" ;
+ Text [ swedish ] = "Några OLE-objekt kunde bara övertas som grafiker" ;
+ Text [ danish ] = "Nogle OLE-objekter kunne kun overtages som grafik" ;
+ Text [ portuguese ] = "Alguns dos objectos OLE puderam ser apenas carregados como imagens" ;
+ Text [ portuguese_brazilian ] = "Einige OLE-Objekte konnten nur als Grafiken übernommen werden" ;
+ Text[ chinese_simplified ] = "һЩ OLE ¶ÔÏóÖ»ÄÜÒÔͼÏñ·½Ê½×°ÔØ";
+ Text[ russian ] = "Çàãðóçêà íåêîòîðûõ îáúåêòîâ OLE âîçìîæíà òîëüêî â êà÷åñòâå ðèñóíêîâ";
+ Text[ polish ] = "Niektóre obiekty OLE mog¹ zostaæ za³adowane tylko jako grafiki";
+ Text[ japanese ] = "‚¢‚­‚‚©‚ÌOLEµÌÞ¼Þª¸Ä‚͸Þׯ̨¯¸½‚Æ‚µ‚Ä‚Ì‚Ý“Ç‚Ýž‚Þ‚±‚Æ‚ª‚Å‚«‚Ü‚·";
+ Text[ chinese_traditional ] = "¤@¨Ç OLE-ª«¥ó¥u¯à¥H¹Ï¤ù¤è¦¡¸Ë¸ü";
+ Text[ arabic ] = "áã íßä ãä Çáããßä ÊØÈíÞ ÈÚÖ ßÇÆäÇÊ OLE ÅáÇ ßÑÓæãÇÊ";
+ Text[ greek ] = "ÌåñéêÜ áíôéêåßìåíá OLE ìðüñåóáí íá öïñôùèïýí ìüíï ùò ãñáöéêÜ";
+ Text[ korean ] = "¾à°£ÀÇ OLE °³Ã¼µéÀº ±×·¡ÇÈÀ¸·Î¸¸ ·Îµå µÉ ¼ö ÀÖ½À´Ï´Ù.";
+ Text[ turkish ] = "Bazý OLE nesneleri yalnýzca grafik olarak yüklenebildi";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_OLE )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Einige OLE-Objekte konnten nur als Grafiken übernommen werden : Einige OLE-Objekte konnten nur als Grafiken ³bernommen werden */
+ TEXT = "Einige OLE-Objekte konnten nur als Grafiken übernommen werden" ;
+ TEXT [ English ] = "Some OLE Objects could only be saved as graphics" ;
+ Text [ english_us ] = "Some OLE objects could only be saved as graphics" ;
+ Text [ italian ] = "Alcuni oggetti OLE sono stati prelevati solo come immagini" ;
+ Text [ spanish ] = "Algunos objetos OLE se pudieron incluir solo como imágenes" ;
+ Text [ french ] = "Certains objets OLE ont pu être chargés uniquement sous forme d'images" ;
+ Text [ dutch ] = "Enkele OLE-objecten konden alleen als grafische objecten worden overgenomen" ;
+ Text [ swedish ] = "Några OLE-objekt kunde bara övertas som grafiker" ;
+ Text [ danish ] = "Nogle OLE-objekter kunne kun overtages som grafik" ;
+ Text [ portuguese ] = "Alguns dos objectos OLE foram carregados apenas como imagens" ;
+ Text [ portuguese_brazilian ] = "Einige OLE-Objekte konnten nur als Grafiken übernommen werden" ;
+ Text[ chinese_simplified ] = "һЩ OLE ¶ÔÏóÎÞ·¨±»´æÅÌΪͼÐÎ";
+ Text[ russian ] = "Çàãðóçêà íåêîòîðûõ îáúåêòîâ OLE âîçìîæíà òîëüêî â êà÷åñòâå ðèñóíêîâ";
+ Text[ polish ] = "Niektóre obiekty OLE mog³y zostaæ za³adowane tylko jako grafiki";
+ Text[ japanese ] = "‚¢‚­‚‚©‚ÌOLEµÌÞ¼Þª¸Ä‚͸Þ×̨¯¸½‚Æ‚µ‚Ä‚Ì‚Ý•Û‘¶‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·";
+ Text[ chinese_traditional ] = "¤@¨Ç OLE-ª«¥óµLªk³QÀx¦s¬°¹Ï¤ù";
+ Text[ arabic ] = "áã íßä ãä Çáããßä ÊØÈíÞ ÈÚÖ ßÇÆäÇÊ OLE ÅáÇ ßÑÓæãÇÊ";
+ Text[ greek ] = "ÌåñéêÜ áíôéêåßìåíá OLE ìðüñåóáí íá öïñôùèïýí ìüíï ùò ãñáöéêÜ";
+ Text[ korean ] = "¾à°£ÀÇ OLE °³Ã¼µéÀº ±×·¡ÇÈÀ¸·Î¸¸ ÀúÀå µÉ ¼ö ÀÖ½À´Ï´Ù.";
+ Text[ turkish ] = "Bazý OLE nesneleri yalnýzca grafik olarak yüklenebildi";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_READ , WARN_SWG_POOR_LOAD )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Dokument konnte nicht vollständig geladen werden : Dokument konnte nicht vollstõndig geladen werden */
+ TEXT = "Dokument konnte nicht vollständig geladen werden" ;
+ TEXT [ English ] = "Document could not be loaded completely" ;
+ Text [ dutch ] = "Document kon niet volledig worden geladen" ;
+ Text [ english_us ] = "Document could not be completely loaded" ;
+ Text [ italian ] = "Non è stato possibile caricare il file completamente" ;
+ Text [ spanish ] = "No se pudo cargar completamente el documento" ;
+ Text [ french ] = "Le document n'a pas pu être chargé dans son intégralité" ;
+ Text [ swedish ] = "Dokumentet kunde inte laddas fullständigt" ;
+ Text [ danish ] = "Det var ikke muligt at indlæse dokumentet helt" ;
+ Text [ portuguese ] = "Foi impossível carregar o documento completamente" ;
+ Text [ portuguese_brazilian ] = "Dokument konnte nicht vollständig geladen werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨ÍêȫװÔØÎĵµ";
+ Text[ russian ] = "Ïîëíîñòüþ çàãðóçèòü äîêóìåíò íåâîçìîæíî";
+ Text[ polish ] = "Dokument nie móg³ zostaæ ca³kowicie za³adowany";
+ Text[ japanese ] = "ÄÞ·­ÒÝÄ‚ðŠ®‘S‚É“Ç‚Ýž‚Ý‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½";
+ Text[ chinese_traditional ] = "µLªk§¹¥þ¸Ë¸ü¤å¥ó";
+ Text[ arabic ] = "ÊÚÐÑ ÊÍãíá ÇáãÓÊäÏ ÈÔßá ÊÇã";
+ Text[ greek ] = "Äåí Þôáí äõíáôÞ ç öüñôùóç ïëüêëçñïõ ôïõ åããñÜöïõ";
+ Text[ korean ] = "¹®¼­°¡ ¿ÏÀüÈ÷ ·ÎµåµÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Text[ turkish ] = "Belge tümüyle yüklenemedi";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_POOR_LOAD )
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Dokument konnte nicht vollständig gespeichert werden : Dokument konnte nicht vollstõndig gespeichert werden */
+ TEXT = "Dokument konnte nicht vollständig gespeichert werden" ;
+ TEXT [ English ] = "Document could not be saved completely" ;
+ Text [ english_us ] = "Document could not be completely saved" ;
+ Text [ italian ] = "Non è stato possibile salvare il file completamente" ;
+ Text [ spanish ] = "No se pudo guardar completamente el documento" ;
+ Text [ french ] = "Le document n'a pas pu être enregistré dans son intégralité" ;
+ Text [ dutch ] = "Document kon niet volledig worden opgeslagen" ;
+ Text [ swedish ] = "Dokumentet kunde inte sparas fullständigt" ;
+ Text [ danish ] = "Det var ikke muligt at gemme dokumentet helt" ;
+ Text [ portuguese ] = "Foi impossível guardar o documento completamente" ;
+ Text [ portuguese_brazilian ] = "Dokument konnte nicht vollständig gespeichert werden" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨ÍêÕûµØ´æÅÌÎĵµ";
+ Text[ russian ] = "Ïîëíîñòüþ ñîõðàíèòü äîêóìåíò íåâîçìîæíî";
+ Text[ polish ] = "Dokument nie móg³ zostaæ ca³kowicie zapisany";
+ Text[ japanese ] = "ÄÞ·­ÒÝÄ‚ðŠ®‘S‚É•Û‘¶‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½";
+ Text[ chinese_traditional ] = "µLªk§¹¾ãÀx¦s¤å¥ó";
+ Text[ arabic ] = "ÊÚÐÑ ÍÝÙ ÇáãÓÊäÏ ÈÔßá ÊÇã";
+ Text[ greek ] = "Äåí Þôáí äõíáôÞ ç áðïèÞêåõóç ïëüêëçñïõ ôïõ åããñÜöïõ";
+ Text[ korean ] = "¹®¼­°¡ ¿ÏÀüÈ÷ ÀúÀåµÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Text[ turkish ] = "Belge tümüyle kaydedilemedi";
+ Text[ language_user1 ] = " ";
+ };
+ String WARN_CODE ( ERRCODE_CLASS_WRITE , WARN_SWG_HTML_NO_MACROS)
+ {
+ Text = "Das HTML-Dokument enthält StarBasic Makros.\nSie wurden mit den aktuellen Exporteinstellungen nicht gespeichert." ;
+ Text [ English ] = "This HTML document contains StarBasic macros.\nThey were not saved because of the current export options." ;
+ Text[ english_us ] = "This HTML document contains StarOffice Basic macros.\nThey were not saved with the current export settings.";
+ Text[ portuguese ] = "Este documento HTML contém macros StarOffice Basic.\nEstas não foram guardadas com as predefinições de exportação activas.";
+ Text[ russian ] = "Ýòîò äîêóìåíò HTML ñîäåðæèò ìàêðîñû StarOffice Basic.\nÎíè íå ñîõðàíèëèñü ñ òåêóùèìè íàñòðîéêàìè ýêñïîðòà.";
+ Text[ greek ] = "Ôï áñ÷åßï HTML ðåñéÝ÷åé ìáêñïåíôïëÝò ôïõ StarOffice Basic.\nÁõôÝò äåí áðïèçêåýôçêáí ìå ôéò ôñÝ÷ïõóåò ñõèìßóåéò åéóáãùãÞò.";
+ Text[ dutch ] = "Dit HTML document bevat StarOffice Basic-macro's.\nDeze konden niet worden opgeslagen met de actuele exportinstellingen.";
+ Text[ french ] = "Le document HTML contient des macros StarOffice Basic.\nCelles-ci n'ont pas été enregistrées avec les paramètres d'export actifs.";
+ Text[ spanish ] = "El documento HTML contiene macros StarOffice Basic.\nNo se guardaron con la configuración actual de exportación.";
+ Text[ italian ] = "Il documento HTML contiene macro StarOffice Basic che\nnon sono state salvate con le impostazioni attuali di esportazione.";
+ Text[ danish ] = "Dette HTML-dokument indeholder StarOffice Basic-makroer.\nDe blev ikke gemt med de aktuelle eksportindstillinger.";
+ Text[ swedish ] = "HTML-dokumentet innehåller StarOffice Basic-makron.\nDe sparades inte med de aktuella exportinställningarna.";
+ Text[ polish ] = "Dokument HTML zawiera Makra StarOffice Basic.\nNie zosta³y one zapisane razem z aktualnymi ustawieniami ekspotru.";
+ Text[ portuguese_brazilian ] = "This HTML document contains StarOffice Basic macros.\nThey were not saved because of the current export options.";
+ Text[ japanese ] = "‚±‚ÌHTMLÄÞ·­ÒÝÄ‚ÍStarOffice Basic ϸۂðŠÜ‚ñ‚Å‚¢‚Ü‚·B\n‚»‚ê‚ç‚ÍŒ»Ý‚Ì´¸½Îß°ÄÝ’è‚Å‚Í•Û‘¶‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ Text[ korean ] = "ÀÌ HTML ¹®¼­´Â StarOffice Basic ¸ÅÅ©·Î¸¦ Æ÷ÇÔÇÏ°í ÀÖ½À´Ï´Ù.\nÇöÀçÀÇ º¸³»±â ¼³Á¤À¸·Î´Â ¸ÅÅ©·Î°¡ ÀúÀåµÇÁö ¾Ê½À´Ï´Ù.";
+ Text[ chinese_simplified ] = "Õâ¸öHTMLÎĵµº¬ÓÐStarOffice Basicºê¡£\nÓÉÓÚµ±Ç°µÄÊä³öÉ趨¶ø²»ÄÜ´æÅÌÕâЩºê¡£";
+ Text[ chinese_traditional ] = "HTML ¤å¥ó§t¦³ StarOffice Basic ¥¨¶°¡C\n¦]·í«eªº¿é¥X³]©w¦Ó¤£¯àÀx¦s¤å¥ó¡C";
+ Text[ arabic ] = "íÍÊæí ÇáãÓÊäÏ HTML Úáì æÍÏÇÊ ãÇßÑæ StarOffice Basic.\náã íÊã ÍÝÙåÇ ÈÅÚÏÇÏÇÊ ÇáÊÕÏíÑ ÇáÍÇáíÉ.";
+ Text[ turkish ] = "HTML belgesinde StarBasic makrolarý var.\nBu makrolar, yürürlükteki verme ayarlarý ile kaydedilmemiþ.";
+ Text[ language_user1 ] = " ";
+ };
+};
+
+
+
+
diff --git a/sw/source/ui/app/mainwn.cxx b/sw/source/ui/app/mainwn.cxx
new file mode 100644
index 000000000000..9efa9e516084
--- /dev/null
+++ b/sw/source/ui/app/mainwn.cxx
@@ -0,0 +1,343 @@
+/*************************************************************************
+ *
+ * $RCSfile: mainwn.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _SHL_HXX //autogen
+#include <tools/shl.hxx>
+#endif
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+#ifndef _SVARRAY_HXX
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _SFX_PROGRESS_HXX //autogen
+#include <sfx2/progress.hxx>
+#endif
+#ifndef _RESID_HXX //autogen
+#include <vcl/resid.hxx>
+#endif
+
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX //autogen
+#include <swmodule.hxx>
+#endif
+#include "swtypes.hxx"
+
+class SwDocShell;
+
+struct SwProgress
+{
+ long nStartValue,
+ nStartCount;
+ SwDocShell *pDocShell;
+ SfxProgress *pProgress;
+};
+
+static SvPtrarr *pProgressContainer = 0;
+
+SwProgress *lcl_SwFindProgress( SwDocShell *pDocShell )
+{
+ for ( USHORT i = 0; i < pProgressContainer->Count(); ++i )
+ {
+ SwProgress *pTmp = (SwProgress*)(*pProgressContainer)[i];
+ if ( pTmp->pDocShell == pDocShell )
+ return pTmp;
+ }
+ return 0;
+}
+
+
+void StartProgress( USHORT nMessResId, long nStartValue, long nEndValue,
+ SwDocShell *pDocShell )
+{
+ if( !SW_MOD()->IsEmbeddedLoadSave() )
+ {
+ SwProgress *pProgress = 0;
+
+ if ( !pProgressContainer )
+ pProgressContainer = new SvPtrarr( 2, 2 );
+ else
+ {
+ if ( 0 != (pProgress = lcl_SwFindProgress( pDocShell )) )
+ ++pProgress->nStartCount;
+ }
+ if ( !pProgress )
+ {
+ pProgress = new SwProgress;
+ pProgress->pProgress = new SfxProgress( pDocShell,
+ SW_RESSTR(nMessResId),
+ nEndValue - nStartValue,
+ FALSE,
+ TRUE );
+ pProgress->nStartCount = 1;
+ pProgress->pDocShell = pDocShell;
+ pProgressContainer->Insert( (void*)pProgress, 0 );
+ }
+ pProgress->nStartValue = nStartValue;
+ }
+}
+
+
+void SetProgressState( long nPosition, SwDocShell *pDocShell )
+{
+ if( pProgressContainer && !SW_MOD()->IsEmbeddedLoadSave() )
+ {
+ SwProgress *pProgress = lcl_SwFindProgress( pDocShell );
+ if ( pProgress )
+ pProgress->pProgress->SetState(nPosition - pProgress->nStartValue);
+ }
+}
+
+
+void EndProgress( SwDocShell *pDocShell )
+{
+ if( pProgressContainer && !SW_MOD()->IsEmbeddedLoadSave() )
+ {
+ SwProgress *pProgress = 0;
+ USHORT i;
+ for ( i = 0; i < pProgressContainer->Count(); ++i )
+ {
+ SwProgress *pTmp = (SwProgress*)(*pProgressContainer)[i];
+ if ( pTmp->pDocShell == pDocShell )
+ {
+ pProgress = pTmp;
+ break;
+ }
+ }
+
+ if ( pProgress && 0 == --pProgress->nStartCount )
+ {
+ pProgress->pProgress->Stop();
+ pProgressContainer->Remove( i );
+ delete pProgress->pProgress;
+ delete pProgress;
+ if ( !pProgressContainer->Count() )
+ delete pProgressContainer, pProgressContainer = 0;
+ }
+ }
+}
+
+
+void SetProgressText( USHORT nId, SwDocShell *pDocShell )
+{
+ if( pProgressContainer && !SW_MOD()->IsEmbeddedLoadSave() )
+ {
+ SwProgress *pProgress = lcl_SwFindProgress( pDocShell );
+ if ( pProgress )
+ pProgress->pProgress->SetStateText( 0, SW_RESSTR(nId) );
+ }
+}
+
+
+void RescheduleProgress( SwDocShell *pDocShell )
+{
+ if( pProgressContainer && !SW_MOD()->IsEmbeddedLoadSave() )
+ {
+ SwProgress *pProgress = lcl_SwFindProgress( pDocShell );
+ if ( pProgress )
+ pProgress->pProgress->Reschedule();
+ }
+}
+
+/************************************************************************
+ $Log: not supported by cvs2svn $
+ Revision 1.44 2000/09/18 16:05:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.43 2000/02/11 14:42:46 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.42 2000/01/17 14:06:30 jp
+ Bug #71812#: SetProgress call operator==() and not operator=()
+
+ Revision 1.41 2000/01/05 18:21:57 jp
+ Bug #71524#: EndProgress call operator==() and not operator=()
+
+ Revision 1.40 1999/06/29 07:43:54 MA
+ enable wait cursor
+
+
+ Rev 1.39 29 Jun 1999 09:43:54 MA
+ enable wait cursor
+
+ Rev 1.38 28 Jun 1999 14:15:00 MA
+ Blocking of Progress limited to one Document
+
+ Rev 1.37 29 Jun 1998 17:16:14 MA
+ #46809# Nachdem der SFX seinen Service noch immer nicht liefert der
+ Hack jetzt auch in der aktuellen Version.
+
+ Rev 1.36 28 Nov 1997 11:02:30 TJ
+ include
+
+ Rev 1.35 24 Nov 1997 14:22:44 MA
+ includes
+
+ Rev 1.34 09 Sep 1997 11:35:58 OS
+ SwMainWin ueberfluessig
+
+ Rev 1.33 01 Sep 1997 13:08:08 OS
+ DLL-Umstellung
+
+ Rev 1.32 08 Aug 1997 17:26:58 OM
+ Headerfile-Umstellung
+
+ Rev 1.31 06 Aug 1997 11:02:24 TRI
+ GetpApp statt pApp
+
+ Rev 1.30 13 Feb 1997 10:27:38 TRI
+ includes
+
+ Rev 1.29 10 Jan 1997 18:37:58 MA
+ fix: Progress nicht zerstoren fuer Embedded
+
+ Rev 1.28 14 Nov 1996 15:15:26 TRI
+ includes
+
+ Rev 1.27 08 Nov 1996 19:39:32 MA
+ ResMgr
+
+ Rev 1.26 09 Oct 1996 17:55:28 MA
+ Progress
+
+ Rev 1.25 29 Jul 1996 19:37:40 MA
+ includes
+
+ Rev 1.24 29 Feb 1996 12:55:52 OS
+ im Close wird jetzt auch der ChartAutoPilot geschlossen
+
+ Rev 1.23 14 Dec 1995 19:55:54 MIB
+ neue Funktion Reschedule
+
+ Rev 1.22 24 Nov 1995 16:56:50 OM
+ PCH->PRECOMPILED
+
+ Rev 1.21 22 Aug 1995 20:22:14 JP
+ ueberfluessige includes entfernt
+
+ Rev 1.20 15 Aug 1995 19:20:54 JP
+ neu: IsEmbeddedFlag an SwWriterApp - keinen Progressbar anzeigen
+
+ Rev 1.19 14 Aug 1995 18:26:44 MD
+ SfxProgress-ctor erhaelt keinen ViewFrame mehr
+
+ Rev 1.18 09 Aug 1995 21:41:34 ER
+ static vor seg_eofglobals
+
+ Rev 1.17 01 Aug 1995 19:35:22 OS
+ StartWert fuer Progress auf 0 normalisieren
+
+ Rev 1.16 20 Jul 1995 12:01:02 OS
+ RechenleistenChildWindow im Close abschalten
+
+ Rev 1.15 19 Jul 1995 17:31:12 OS
+ Rechenleiste nicht mehr am Doc
+
+ Rev 1.14 11 Jul 1995 15:43:58 OS
+ Close ueberladen, um rechenleiste zu schliessen
+
+ Rev 1.13 09 May 1995 11:29:44 OS
+ -Disable/EnableCmdInterface
+
+ Rev 1.12 08 May 1995 11:59:44 JP
+ StatLineSetPercent: auf 0 - Pointer abfragen
+
+ Rev 1.11 21 Apr 1995 19:04:10 JP
+ BugId 12042: doppeltes Loeschen vom Pointer verhindern!
+
+ Rev 1.10 11 Apr 1995 12:44:00 OS
+ noch ein paar Kleinigkeiten
+
+ Rev 1.9 07 Apr 1995 18:10:12 OS
+ Rest auskommentiert
+
+ Rev 1.8 07 Apr 1995 14:30:22 OS
+ +SfxProgress
+
+ Rev 1.7 26 Feb 1995 18:49:44 MA
+ Laufbalken reanimiert.
+
+ Rev 1.6 23 Feb 1995 22:18:00 ER
+ sexport
+
+ Rev 1.5 09 Jan 1995 16:06:34 ER
+ del: globals hrc, app hrc
+
+ Rev 1.4 25 Oct 1994 14:38:28 ER
+ add: PCH
+
+ Rev 1.3 20 Sep 1994 11:34:06 VB
+ GetStarWriter inline, Flags nach swapp
+
+ Rev 1.2 19 Sep 1994 15:25:00 MS
+ Fix fuers Update
+************************************************************************/
+
+
diff --git a/sw/source/ui/app/makefile.mk b/sw/source/ui/app/makefile.mk
new file mode 100644
index 000000000000..a68c2d82ded4
--- /dev/null
+++ b/sw/source/ui/app/makefile.mk
@@ -0,0 +1,179 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=app
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..$/ui_1st$/ui_pch
+
+LIBTARGET=NO
+
+# future: DEMO\...
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+.INCLUDE : $(UPD)minor.mk
+RSCUPDVER=$(RSCREVISION)(SV$(UPD)$(UPDMINOR))
+
+IMGLST_SRS=$(SRS)$/app.srs
+BMP_IN=$(PRJ)$/win/imglst
+
+# --- Files --------------------------------------------------------
+
+SRCFILES =\
+ acc.src \
+ app.src \
+ mn.src \
+ mnport.src \
+ error.src
+
+
+OBJFILES = \
+ $(OBJ)$/swlib.obj \
+ $(OBJ)$/swcomlib.obj
+
+SLOFILES = \
+ $(SLO)$/appenv.obj \
+ $(SLO)$/apphdl.obj \
+ $(SLO)$/applab.obj \
+ $(SLO)$/appopt.obj \
+ $(SLO)$/docsh.obj \
+ $(SLO)$/docsh2.obj \
+ $(SLO)$/docshdrw.obj \
+ $(SLO)$/docshini.obj \
+ $(SLO)$/docst.obj \
+ $(SLO)$/docstyle.obj \
+ $(SLO)$/mainwn.obj \
+ $(SLO)$/version.obj \
+ $(SLO)$/swmodule.obj \
+ $(SLO)$/swmodul1.obj \
+ $(SLO)$/swdll.obj \
+ $(SLO)$/swwait.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/swmodule.obj \
+ $(SLO)$/swmodul1.obj \
+ $(SLO)$/docsh2.obj \
+
+LIB1TARGET= $(SLB)$/app.lib
+
+LIB1OBJFILES= \
+ $(SLO)$/appenv.obj \
+ $(SLO)$/apphdl.obj \
+ $(SLO)$/applab.obj \
+ $(SLO)$/appopt.obj \
+ $(SLO)$/docsh.obj \
+ $(SLO)$/docsh2.obj \
+ $(SLO)$/docshdrw.obj \
+ $(SLO)$/docshini.obj \
+ $(SLO)$/docst.obj \
+ $(SLO)$/docstyle.obj \
+ $(SLO)$/mainwn.obj \
+ $(SLO)$/swmodul1.obj \
+ $(SLO)$/version.obj \
+ $(SLO)$/swwait.obj
+
+
+# --- Targets ------------------------------------------------------
+.IF "$(depend)" == ""
+all: \
+ $(INCCOM)$/swdll0.hxx \
+ $(SLO)$/swdll.obj \
+ $(SLO)$/swmodule.obj \
+ ALLTAR
+.ENDIF
+
+.INCLUDE : target.mk
+
+.IF "$(GUI)"=="OS2"
+$(INCCOM)$/swdll0.hxx: makefile.mk
+ echo #define DLL_NAME "sw$(UPD)$(DLLPOSTFIX)" >$@
+.ENDIF
+
+.IF "$(GUI)"=="MAC"
+$(INCCOM)$/swdll0.hxx: makefile.mk
+ echo "$(HASHMARK)define DLL_NAME ¶"sw$(UPD)$(DLLPOSTFIX).dll¶"" > $@
+.ENDIF
+
+.IF "$(GUIBASE)"=="WIN"
+$(INCCOM)$/swdll0.hxx: makefile.mk
+ echo #define DLL_NAME "sw$(UPD)$(DLLPOSTFIX).DLL" >$@
+.ENDIF
+
+.IF "$(GUI)"=="UNX"
+$(INCCOM)$/swdll0.hxx: makefile.mk
+ echo #define DLL_NAME \"libsw$(UPD)$(DLLPOSTFIX)$(DLLPOST)\" >$@
+.ENDIF
+
+
+$(SRS)$/app.srs: $(SOLARINCDIR)$/svx$/globlmn.hrc
+
diff --git a/sw/source/ui/app/mn.src b/sw/source/ui/app/mn.src
new file mode 100644
index 000000000000..7d93f729e3a6
--- /dev/null
+++ b/sw/source/ui/app/mn.src
@@ -0,0 +1,599 @@
+/*************************************************************************
+ *
+ * $RCSfile: mn.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+
+#include "swmn.hrc"
+
+/*------------------------------------------------------------------------
+ Beschreibung: Menu Window
+------------------------------------------------------------------------*/
+
+
+/*--Popups---------------------------------------------------------------*/
+
+String MN_TEXT_POPUPMENU
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ norwegian ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ portuguese_brazilian ] = "Texto" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ finnish ] = "Teksti" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ english_us ] = "Text" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+};
+
+
+String MN_TAB_POPUPMENU
+{
+ Text = "Tabelle" ;
+ Text [ English ] = "Table" ;
+ Text [ norwegian ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ portuguese_brazilian ] = "Tabela" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ finnish ] = "Taulukko" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ french ] = "Tableau" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ english_us ] = "Table" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+};
+
+Menu MN_TAB_POPUPMENU
+{
+ ItemList =
+ {
+ MN_RESET
+ SEPARATOR ;
+ MN_TEXT_ATTR
+ SEPARATOR ;
+ MenuItem
+ {
+ ITEM_FORMAT_CHAR_DLG
+ };
+ MenuItem
+ {
+ ITEM_FORMAT_PARA_DLG
+ };
+ // MN_BB
+ SEPARATOR ;
+ MN_TAB1
+ MN_TAB2
+ MN_FRM_CAPTION_ITEM
+ // SEPARATOR;
+ MenuItem
+ {
+ Identifier = FN_VIEW_TABLEGRID ;
+ HelpID = FN_VIEW_TABLEGRID ;
+ Text = "Tabellenbegrenz~ung" ;
+ Text [ English ] = "Grid lines" ;
+ Text [ norwegian ] = "Rutenettlinjer" ;
+ Text [ italian ] = "Limte tabella" ;
+ Text [ portuguese_brazilian ] = "Linhas da Grade" ;
+ Text [ portuguese ] = "~Limites da tabela" ;
+ Text [ finnish ] = "Taustaruudukko" ;
+ Text [ danish ] = "Gitterlinjer" ;
+ Text [ french ] = "Délimitations de t~ableau" ;
+ Text [ swedish ] = "Tabellbegr~änsning" ;
+ Text [ dutch ] = "Tabelbegren~zing" ;
+ Text [ spanish ] = "~Límites de la tabla" ;
+ Text [ english_us ] = "Table Limits" ;
+ Text[ chinese_simplified ] = "±í¸ñ±ß½ç";
+ Text[ russian ] = "Ãðàíèöû òàáëèöû";
+ Text[ polish ] = "obramowanie tabeli";
+ Text[ japanese ] = "•\\‚Ì‹«ŠE";
+ Text[ chinese_traditional ] = "ªí®æÃä¬É";
+ Text[ arabic ] = "ÍÏæÏ ÇáÌÏæá";
+ Text[ greek ] = "¼~ñéá ðßíáêá";
+ Text[ korean ] = "Ç¥ °æ°è";
+ Text[ turkish ] = "Tablo sýnýrlamalarý";
+ };
+ MenuItem
+ {
+ Identifier = FN_SET_MODOPT_TBLNUMFMT ;
+ HelpID = FN_SET_MODOPT_TBLNUMFMT ;
+ Text = "Zahlen~erkennung" ;
+ Text [ ENGLISH ] = "Number recognition" ;
+ Text[ english_us ] = "~Number recognition";
+ Text[ portuguese ] = "~Reconhecer números";
+ Text[ russian ] = "Ðàñïîçíàíèå ÷èñëà";
+ Text[ greek ] = "Áíáãíþñ~éóç áñéèìþí";
+ Text[ dutch ] = "Getal~herkenning";
+ Text[ french ] = "~Reconnaissance des nombres";
+ Text[ spanish ] = "~Reconocimiento de número";
+ Text[ italian ] = "Riconoscim~ento numeri";
+ Text[ danish ] = "Talgenkendelse";
+ Text[ swedish ] = "Talig~enkänning";
+ Text[ polish ] = "Rozpoznawanie liczb";
+ Text[ portuguese_brazilian ] = "Number recognition";
+ Text[ japanese ] = "”Žš‚Ì”FŽ¯";
+ Text[ korean ] = "¼ýÀÚ ÀνÄ(~N)";
+ Text[ chinese_simplified ] = "Êý×Öʶ±ð";
+ Text[ chinese_traditional ] = "ÃѧO¼Æ¦r";
+ Text[ arabic ] = "ÊÚÑíÝ ÇáÃÑÞÇã";
+ Text[ turkish ] = "Sayý tanýma";
+ };
+ };
+};
+
+
+String MN_FRM_POPUPMENU
+{
+ Text = "Rahmen" ;
+ Text [ English ] = "Frame" ;
+ Text [ norwegian ] = "Ramme" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ portuguese_brazilian ] = "Moldura" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ finnish ] = "Kehys" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ english_us ] = "Frame" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Ðàìêà";
+ Text[ polish ] = "ramka";
+ Text[ japanese ] = "÷½Ä ÎÞ¯¸½";
+ Text[ chinese_traditional ] = "¤å¥»¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçeve";
+};
+
+Menu MN_FRM_POPUPMENU
+{
+ ItemList =
+ {
+ MN_ALIGN_FRAME
+ MN_MOUSE_FRAME_BEGIN
+ MN_MOUSE_FRAME_END
+ SEPARATOR ;
+ MN_FRM
+ MN_FRM_CAPTION_ITEM
+ };
+};
+
+String MN_DRAW_POPUPMENU
+{
+ Text = "Grafik" ;
+ Text [ English ] = "Graphic" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Grafico" ;
+ Text [ portuguese_brazilian ] = "Gráfico" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Billede" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ english_us ] = "Graphic" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÑÓæã";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+};
+
+Menu MN_DRAW_POPUPMENU
+{
+ ItemList =
+ {
+ MN_DRAW1
+ MN_DRWTXTATTR
+ MenuItem
+ {
+ ITEM_FORMAT_ATTR_TRANSFORM
+ };
+ SEPARATOR ;
+ MN_DRAW5
+ MN_WRAP_DRAW
+ MN_ANCHOR
+ MN_FRM_CAPTION_ITEM
+ SEPARATOR ;
+ MN_DRAW3
+ };
+};
+
+String MN_DRAWFORM_POPUPMENU
+{
+ Text = "Kontrollfeld" ;
+ Text [ English ] = "Control field" ;
+ Text [ english_us ] = "Control" ;
+ Text [ portuguese_brazilian ] = "Kontrollfeld" ;
+ Text [ swedish ] = "Kontrollfält" ;
+ Text [ danish ] = "Kontrolelement" ;
+ Text [ italian ] = "Campo di controllo" ;
+ Text [ spanish ] = "Campo de control" ;
+ Text [ french ] = "Champ de contrôle" ;
+ Text [ dutch ] = "Controleveld" ;
+ Text [ portuguese ] = "Campo de controlo" ;
+ Text[ chinese_simplified ] = "¿ØÖÆ";
+ Text[ russian ] = "Ýëåìåíò óïðàâëåíèÿ";
+ Text[ polish ] = "Pole kontrolne";
+ Text[ japanese ] = "ºÝÄÛ°Ù";
+ Text[ chinese_traditional ] = "±±¨î¶µ";
+ Text[ arabic ] = "ÚäÕÑ ÊÍßã";
+ Text[ greek ] = "Ðåäßï åëÝã÷ïõ";
+ Text[ korean ] = "ÄÁÆ®·Ñ";
+ Text[ turkish ] = "Komut alaný";
+};
+
+Menu MN_DRAWFORM_POPUPMENU
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ ITEM_FORMAT_ATTR_TRANSFORM
+ };
+ MN_FORM
+ SEPARATOR ;
+ MN_DRAW6
+ MN_WRAP_DRAW
+ MN_ANCHOR
+ SEPARATOR ;
+ MN_DRAW3
+ };
+};
+
+String MN_DRWTXT_POPUPMENU
+{
+ Text = "Zeichenobjekt Text" ;
+ Text [ English ] = "Draw object text" ;
+ Text [ english_us ] = "Draw Object text" ;
+ Text [ italian ] = "Oggetto di disegno testo" ;
+ Text [ spanish ] = "Texto del objeto de dibujo" ;
+ Text [ french ] = "Texte objet de dessin" ;
+ Text [ dutch ] = "Tekenobject tekst" ;
+ Text [ swedish ] = "Ritobjekt text" ;
+ Text [ danish ] = "Tegneobjekt tekst" ;
+ Text [ portuguese ] = "Texto do objecto de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekt Text" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó ÎÄ×Ö";
+ Text[ russian ] = "Ãðàôè÷åñêèé îáúåêò Òåêñò";
+ Text[ polish ] = "Tekst w obiekcie rysunkowym";
+ Text[ japanese ] = "}Œ`µÌÞ¼Þª¸Ä@÷½Ä";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó ¤å¦r";
+ Text[ arabic ] = "äÕ ßÇÆä ÑÓæãí";
+ Text[ greek ] = "Êåßìåíï áíôéêåéìÝíïõ ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼ ÅؽºÆ®";
+ Text[ turkish ] = "Çizim nesnesi metni";
+};
+
+Menu MN_DRWTXT_POPUPMENU
+{
+ ItemList =
+ {
+ MN_RESET
+ SEPARATOR ;
+ MN_TEXT_ATTR
+ SEPARATOR ;
+ MN_DRWTXT
+ MN_FRM_CAPTION_ITEM
+ };
+};
+
+String MN_GRF_POPUPMENU
+{
+ Text = "Grafik" ;
+ Text [ English ] = "Graphic" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ portuguese_brazilian ] = "Gráfico" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Billede" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ english_us ] = "Graphic" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÑÓæã";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+};
+
+Menu MN_GRF_POPUPMENU
+{
+ ItemList =
+ {
+ MN_ALIGN_FRAME
+ MN_MOUSE_FRAME_BEGIN
+ MN_WRAP_CONTOUR
+ MN_EDIT_CONTOUR
+ MN_MOUSE_FRAME_END
+ SEPARATOR ;
+ MN_GRAFIC
+ MN_FRM_CAPTION_ITEM
+ MenuItem
+ {
+ ITEM_EDIT_IMAP
+ };
+ };
+};
+
+String MN_OLE_POPUPMENU
+{
+ Text = "Objekt" ;
+ Text [ English ] = "Object" ;
+ Text [ norwegian ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ portuguese_brazilian ] = "Objeto" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text [ finnish ] = "Objekti" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ french ] = "Objet" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ dutch ] = "Object" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ english_us ] = "Object" ;
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ russian ] = "Îáúåêò";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ª«¥ó";
+ Text[ arabic ] = "ßÇÆä";
+ Text[ greek ] = "Áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼";
+ Text[ turkish ] = "Nesne";
+};
+
+
+Menu MN_OLE_POPUPMENU
+{
+ ItemList =
+ {
+ MN_ALIGN_FRAME
+ MN_MOUSE_FRAME_BEGIN
+ MN_WRAP_CONTOUR
+ MN_EDIT_CONTOUR
+ MN_MOUSE_FRAME_END
+ SEPARATOR ;
+ MN_OLE
+ MN_FRM_CAPTION_ITEM
+ };
+};
+
+String MN_PPREVIEW_POPUPMENU
+{
+ Text = "Zeichenobjekt Text" ;
+ Text [ English ] = "Draw object text" ;
+ Text [ english_us ] = "Draw Object text" ;
+ Text [ italian ] = "Oggetto di diesegno testo" ;
+ Text [ spanish ] = "Texto del objeto de dibujo" ;
+ Text [ french ] = "Texte objet de dessin" ;
+ Text [ dutch ] = "Tekenobject tekst" ;
+ Text [ swedish ] = "Ritobjekt text" ;
+ Text [ danish ] = "Tegneobjekt" ;
+ Text [ portuguese ] = "Texto do objecto de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekt Text" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò ãðàôè÷åñêîãî îáúåêòà";
+ Text[ polish ] = "Tekst w obiekcie rysunkowym";
+ Text[ japanese ] = "}Œ`µÌÞ¼Þª¸Ä ÷½Ä";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó ¤å¦r";
+ Text[ arabic ] = "äÕ ßÇÆä ÑÓæãí";
+ Text[ greek ] = "Êåßìåíï áíôéêåéìÝíïõ ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °´Ã¼ ÅؽºÆ®";
+ Text[ turkish ] = "Çizim nesnesi metni";
+};
+
+Menu MN_PPREVIEW_POPUPMENU
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = FN_PAGEUP ;
+ HelpID = FN_PAGEUP ;
+ Text = "Vorherige Seite" ;
+ Text [ ENGLISH ] = "Previous page" ;
+ Text [ dutch ] = "Vorige pagina" ;
+ Text [ english_us ] = "Previous Page" ;
+ Text [ italian ] = "Pagina precedente" ;
+ Text [ spanish ] = "Página anterior" ;
+ Text [ french ] = "Page précédente" ;
+ Text [ swedish ] = "Föregående sida" ;
+ Text [ danish ] = "Forrige side" ;
+ Text [ portuguese_brazilian ] = "Vorherige Seite" ;
+ Text [ portuguese ] = "Página anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»Ò³";
+ Text[ russian ] = "Ïðåäûäóùàÿ ñòðàíèöà";
+ Text[ polish ] = "Poprzednia strona";
+ Text[ japanese ] = "‘O‚ÌÍß°¼Þ";
+ Text[ chinese_traditional ] = "¤W¤@­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíç óåëßäá";
+ Text[ korean ] = "ÀÌÀü ÆäÀÌÁö";
+ Text[ turkish ] = "Önceki sayfa";
+ };
+ MenuItem
+ {
+ Identifier = FN_PAGEDOWN ;
+ HelpID = FN_PAGEDOWN ;
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Seite : Nõchste Seite */
+ Text = "Nächste Seite" ;
+ Text [ ENGLISH ] = "Next page" ;
+ Text [ dutch ] = "Volgende pagina" ;
+ Text [ english_us ] = "Next Page" ;
+ Text [ italian ] = "Pagina successiva" ;
+ Text [ spanish ] = "Página siguiente" ;
+ Text [ french ] = "Page suivante" ;
+ Text [ swedish ] = "Nästa sida" ;
+ Text [ danish ] = "Næste side" ;
+ Text [ portuguese_brazilian ] = "Nächste Seite" ;
+ Text [ portuguese ] = "Página seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»Ò³";
+ Text[ russian ] = "Ñëåäóþùàÿ ñòðàíèöà";
+ Text[ polish ] = "Nastêpna strona";
+ Text[ japanese ] = "ŽŸ‚ÌÍß°¼Þ";
+ Text[ chinese_traditional ] = "¤U¤@­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Óôçí åðüìåíç óåëßäá";
+ Text[ korean ] = "´ÙÀ½ ÆäÀÌÁö";
+ Text[ turkish ] = "Sonraki sayfa";
+ };
+ MenuItem
+ {
+ ITEM_VIEW_ATTR_ZOOM
+ /* ### ACHTUNG: Neuer Text in Resource? Schließt die Seitenvorschau : Schlie˜t die Seitenvorschau */
+ };
+ SEPARATOR ;
+ MenuItem
+ {
+ Identifier = FN_PRINT_PAGEPREVIEW ;
+ HelpID = FN_PRINT_PAGEPREVIEW ;
+ Text = "Drucken Seitenansicht" ;
+ Text [ ENGLISH ] = "Print page preview" ;
+ Text [ dutch ] = "Afdrukvoorbeeld afdrukken" ;
+ Text [ english_us ] = "Print" ;
+ Text [ italian ] = "Stampa anteprima pagina" ;
+ Text [ spanish ] = "Imprimir vista preliminar" ;
+ Text [ french ] = "Imprimer l'aperçu" ;
+ Text [ swedish ] = "Skriv ut förhandsgranskning" ;
+ Text [ danish ] = "Udskriv vist udskrift" ;
+ Text [ portuguese ] = "Imprimir Ver página" ;
+ Text [ portuguese_brazilian ] = "Drucken Seitenansicht" ;
+ Text[ chinese_simplified ] = "´òÓ¡Ò³ÃæÔ¤ÊÓ";
+ Text[ russian ] = "Ïå÷àòü âèäà ñòðàíèöû";
+ Text[ polish ] = "Drukuj widok strony";
+ Text[ japanese ] = "ˆóüÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "¦C¦L­¶­±À˵ø";
+ Text[ arabic ] = "ÇáØÈÇÚÉ ÍÓÈ ÇáãÚÇíäÉ";
+ Text[ language_user1 ] = "ßíÝ ÓÊÚÑÝ Ãíä ØÈÇÚÉ \\æÃíä ãÚÇíäÉ ÇáÕÝÍÉ ÞÈá ØÈÇÚÊåÇ ¿¿¿¿";
+ Text[ greek ] = "Åêôýðùóç ðñïåðéóêüðçóçò";
+ Text[ korean ] = "Àμâ";
+ Text[ turkish ] = "Yazdýr";
+ };
+ MenuItem
+ {
+ Identifier = FN_PREVIEW_PRINT_OPTIONS;
+ HelpID = FN_PREVIEW_PRINT_OPTIONS;
+ Text = "Druckoptionen" ;
+ Text [ ENGLISH ] = "Print options" ;
+ Text[ italian ] = "Opzioni di stampa";
+ Text[ portuguese_brazilian ] = "Print options";
+ Text[ portuguese ] = "Opções de impressão";
+ Text[ danish ] = "Udskriftsindstillinger";
+ Text[ french ] = "Options d'impression";
+ Text[ swedish ] = "Skrivaralternativ";
+ Text[ dutch ] = "Afdrukopties";
+ Text[ spanish ] = "Opciones de impresión";
+ Text[ english_us ] = "Print Options";
+ Text[ chinese_simplified ] = "´òÓ¡Ñ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû ïå÷àòè";
+ Text[ polish ] = "Opcje druku";
+ Text[ japanese ] = "ˆóüµÌß¼®Ý";
+ Text[ chinese_traditional ] = "¦C¦L¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ ÇáØÈÇÚÉ";
+ Text[ greek ] = "ÅðéëïãÝò åêôýðùóçò";
+ Text[ korean ] = "Àμ⠿ɼÇ";
+ Text[ turkish ] = "Yazdýrma seçenekleri";
+ };
+ SEPARATOR ;
+ MenuItem
+ {
+ ITEM_WINDOW_CLOSEWIN
+ /* ### ACHTUNG: Neuer Text in Resource? Schließt die Seitenvorschau : Schlie˜t die Seitenvorschau */
+ };
+ };
+};
+
diff --git a/sw/source/ui/app/swdll.cxx b/sw/source/ui/app/swdll.cxx
new file mode 100644
index 000000000000..830c7513dfa8
--- /dev/null
+++ b/sw/source/ui/app/swdll.cxx
@@ -0,0 +1,207 @@
+/*************************************************************************
+ *
+ * $RCSfile: swdll.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+
+
+#include "swdll.hxx"
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _SWGLOBDOCSH_HXX //autogen
+#include <globdoc.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _SWMODULE_HXX //autogen
+#include <swmodule.hxx>
+#endif
+#ifndef _SWTYPES_HXX //autogen
+#include <swtypes.hxx>
+#endif
+#ifndef _INIT_HXX
+#include <init.hxx>
+#endif
+#ifndef _DOBJFAC_HXX //autogen
+#include <dobjfac.hxx>
+#endif
+#ifndef _CFGID_H
+#include <cfgid.h>
+#endif
+
+/*************************************************************************
+|*
+|* Init
+|*
+\************************************************************************/
+
+void SwDLL::Init()
+{
+ // called directly after loading the DLL
+ // do whatever you want, you may use Sw-DLL too
+
+ // the SdModule must be created
+ SwModuleDummy** ppShlPtr = (SwModuleDummy**) GetAppData(SHL_WRITER);
+
+ SvFactory* pDocFact = (SvFactory*)(*ppShlPtr)->pSwDocShellFactory;
+ SvFactory* pWDocFact = (SvFactory*)(*ppShlPtr)->pSwWebDocShellFactory;
+ SvFactory* pGlobDocFact = (SvFactory*)(*ppShlPtr)->pSwGlobalDocShellFactory;
+ delete (*ppShlPtr);
+ SwModule* pModule = new SwModule(pDocFact, pWDocFact, pGlobDocFact);;
+ (*ppShlPtr) = pModule;
+ (*ppShlPtr)->pSwDocShellFactory = pDocFact ;
+ (*ppShlPtr)->pSwWebDocShellFactory = pWDocFact ;
+ (*ppShlPtr)->pSwGlobalDocShellFactory = pGlobDocFact;
+
+ SwDocShell::Factory().RegisterPluginMenuBar( SW_RES(CFG_SW_MENU_PORTAL));
+ SwDocShell::Factory().RegisterMenuBar(SW_RES(CFG_SW_MENU));
+ SwDocShell::Factory().RegisterAccel(SW_RES(CFG_SW_ACCEL));
+ SwWebDocShell::Factory().RegisterPluginMenuBar( SW_RES(CFG_SWWEB_MENU_PORTAL));
+ SwWebDocShell::Factory().RegisterMenuBar(SW_RES(CFG_SWWEB_MENU));
+ SwWebDocShell::Factory().RegisterAccel(SW_RES(CFG_SWWEB_ACCEL));
+ SwGlobalDocShell::Factory().RegisterMenuBar(SW_RES(CFG_SW_MENU));
+ SwGlobalDocShell::Factory().RegisterAccel(SW_RES(CFG_SW_ACCEL));
+
+
+ SdrObjFactory::InsertMakeObjectHdl( LINK( &aSwObjectFactory, SwObjectFactory, MakeObject ) );
+ //Initialisierung der Statics
+ ::_InitCore();
+ ::_InitFilter();
+ ::_InitUI();
+
+ pModule->InitAttrPool();
+ //jetzt darf das SwModule seinen Pool anlegen
+
+ // register your view-factories here
+ RegisterFactories();
+
+ // register your shell-interfaces here
+ RegisterInterfaces();
+
+ // register your controllers here
+ RegisterControls();
+
+}
+
+
+
+/*************************************************************************
+|*
+|* Exit
+|*
+\************************************************************************/
+
+void SwDLL::Exit()
+{
+ // called directly befor unloading the DLL
+ // do whatever you want, Sw-DLL is accessible
+
+ // der Pool muss vor den statics geloescht werden
+ SW_MOD()->RemoveAttrPool();
+
+ ::_FinitUI();
+ ::_FinitFilter();
+ ::_FinitCore();
+ // Objekt-Factory austragen
+ SdrObjFactory::RemoveMakeObjectHdl(LINK(&aSwObjectFactory, SwObjectFactory, MakeObject ));
+ // the SwModule must be destroyed
+ SwModuleDummy** ppShlPtr = (SwModuleDummy**) GetAppData(SHL_WRITER);
+ delete (*ppShlPtr);
+ (*ppShlPtr) = NULL;
+}
+
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.6 2000/09/18 16:05:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.5 2000/08/07 14:02:28 os
+ portal menu added
+
+ Revision 1.4 1999/04/20 10:22:10 OS
+ #64980# eigener SwAttrPool fuer das SwModule
+
+
+ Rev 1.3 20 Apr 1999 12:22:10 OS
+ #64980# eigener SwAttrPool fuer das SwModule
+
+ Rev 1.2 24 Nov 1997 14:22:36 MA
+ includes
+
+ Rev 1.1 07 Nov 1997 15:50:36 OS
+ MakeObject-Link auch aus der richtigen Liste entfernen
+
+ Rev 1.0 01 Sep 1997 13:09:42 OS
+ Initial revision.
+
+
+-------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
new file mode 100644
index 000000000000..6d1e3a224f92
--- /dev/null
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -0,0 +1,1092 @@
+/*************************************************************************
+ *
+ * $RCSfile: swmodul1.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _SFXREQUEST_HXX
+#include <sfx2/request.hxx>
+#endif
+#ifndef _CPPUHELPER_WEAK_HXX_
+#include <cppuhelper/weak.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_URL_HPP_
+#include <com/sun/star/util/URL.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDER_HPP_
+#include <com/sun/star/frame/XDispatchProvider.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_FRAMESEARCHFLAG_HPP_
+#include <com/sun/star/frame/FrameSearchFlag.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XSTATUSLISTENER_HPP_
+#include <com/sun/star/frame/XStatusListener.hpp>
+#endif
+
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _SBA_SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SVX_WGHTITEM_HXX //autogen
+#include <svx/wghtitem.hxx>
+#endif
+#ifndef _SVX_POSTITEM_HXX //autogen
+#include <svx/postitem.hxx>
+#endif
+#ifndef _SVX_UDLNITEM_HXX //autogen
+#include <svx/udlnitem.hxx>
+#endif
+#ifndef _SVX_CRSDITEM_HXX //autogen
+#include <svx/crsditem.hxx>
+#endif
+#ifndef _SVX_CMAPITEM_HXX //autogen
+#include <svx/cmapitem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SDB_SDBSTAT_HXX
+#include <sdb/sdbstat.hxx>
+#endif
+
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _PVIEW_HXX
+#include <pview.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _UINUMS_HXX
+#include <uinums.hxx>
+#endif
+#ifndef _PRTOPT_HXX
+#include <prtopt.hxx> // fuer PrintOptions
+#endif
+#ifndef _NAVICFG_HXX
+#include <navicfg.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _APP_HRC
+#include <app.hrc>
+#endif
+#ifndef _CPPUHELPER_IMPLBASE1_HXX_
+#include <cppuhelper/implbase1.hxx> // helper for implementations
+#endif
+using namespace ::rtl;
+using namespace ::com::sun::star;
+/* -----------------------------05.01.00 15:14--------------------------------
+
+ ---------------------------------------------------------------------------*/
+
+class SwXDispatchStatusListener : public cppu::WeakImplHelper1
+<
+ frame::XStatusListener
+>
+{
+ uno::Reference< frame::XStatusListener > xSelf;
+ util::URL aDispURL;
+ uno::Reference< frame::XDispatch > xDispatch;
+
+ void Invalidate();
+public:
+ SwXDispatchStatusListener(uno::Reference< frame::XDispatch > & xDisp, const util::URL& aURL);
+ ~SwXDispatchStatusListener();
+
+ //XStatusListener
+ virtual void SAL_CALL statusChanged(const frame::FeatureStateEvent& Event) throw( uno::RuntimeException );
+
+ //XEventListener
+ virtual void SAL_CALL disposing(const lang::EventObject& Source) throw( uno::RuntimeException );
+};
+/* -----------------------------05.01.00 15:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwXDispatchStatusListener::SwXDispatchStatusListener(
+ uno::Reference< frame::XDispatch > & xDisp, const util::URL& aURL) :
+ xDispatch(xDisp),
+ aDispURL(aURL)
+{
+ DBG_ASSERT(xDisp.is(), "XDispatch not set")
+ if(xDisp.is())
+ xSelf = this;
+}
+/* -----------------------------05.01.00 15:19--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwXDispatchStatusListener::~SwXDispatchStatusListener()
+{
+}
+/* -----------------------------05.01.00 15:21--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwXDispatchStatusListener::disposing(const lang::EventObject& Source)
+ throw( uno::RuntimeException )
+{
+ Invalidate();
+}
+/* -----------------------------05.01.00 15:22--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwXDispatchStatusListener::statusChanged(const frame::FeatureStateEvent& rEvent)
+ throw( uno::RuntimeException )
+{
+ if(rEvent.FeatureURL.Complete == aDispURL.Complete && rEvent.IsEnabled)
+ {
+ uno::Sequence <beans::PropertyValue > aArgs(0);
+ xDispatch->dispatch(aDispURL, aArgs);
+ Invalidate();
+ }
+}
+/* -----------------------------05.01.00 15:45--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwXDispatchStatusListener::Invalidate()
+{
+ if(xDispatch.is())
+ {
+ try
+ {
+ xDispatch->removeStatusListener(xSelf, aDispURL);
+ }
+ catch(...)
+ {
+ }
+ }
+ xSelf = 0;
+}
+/*-----------------08/28/97 08:41pm-----------------
+
+--------------------------------------------------*/
+void lcl_SetUIPrefs(const SwViewOption* pPref, SwView* pView, ViewShell* pSh )
+{
+ // in FrameSets kann die tatsaechliche Sichtbarkeit von der Einstellung der ViewOptions abweichen
+ sal_Bool bVScrollChanged = pPref->IsViewVScrollBar() != pSh->GetViewOptions()->IsViewVScrollBar();
+ sal_Bool bHScrollChanged = pPref->IsViewHScrollBar() != pSh->GetViewOptions()->IsViewHScrollBar();;
+
+ pSh->SetUIOptions(*pPref);
+
+ const SwViewOption* pNewPref = pSh->GetViewOptions();
+
+ // Scrollbars an / aus
+ if(bVScrollChanged)
+ {
+ if(pNewPref->IsViewVScrollBar())
+ pView->CreateVScrollbar();
+ else
+ pView->KillVScrollbar();
+ }
+ if(bHScrollChanged)
+ {
+ if ( pNewPref->IsViewHScrollBar() || pSh->IsBrowseMode() )
+ pView->CreateHScrollbar();
+ else
+ pView->KillHScrollbar();
+ }
+
+ // Lineale an / aus
+ if(pNewPref->IsViewVLin())
+ pView->CreateVLineal();
+ else
+ pView->KillVLineal();
+
+ // TabWindow an/aus
+ if(pNewPref->IsViewTabwin())
+ pView->CreateTab();
+ else
+ pView->KillTab();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aktuelle SwWrtShell
+ --------------------------------------------------------------------*/
+
+
+SwWrtShell* GetActiveWrtShell()
+{
+ SwView *pActive = ::GetActiveView();
+ if( pActive )
+ return &pActive->GetWrtShell();
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Pointer auf die aktuelle Sicht
+ --------------------------------------------------------------------*/
+
+
+SwView* GetActiveView()
+{
+ SfxViewShell* pView = SfxViewShell::Current();
+ return PTR_CAST( SwView, pView );
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Ueber Views iterieren - static
+ --------------------------------------------------------------------*/
+
+SwView* SwModule::GetFirstView()
+{
+ // liefert nur sichtbare SwViews
+ const TypeId aTypeId = TYPE(SwView);
+ SwView* pView = (SwView*)SfxViewShell::GetFirst(&aTypeId);
+ return pView;
+}
+
+
+SwView* SwModule::GetNextView(SwView* pView)
+{
+ DBG_ASSERT(PTR_CAST(SwView, pView),"keine SwView uebergeben")
+ const TypeId aTypeId = TYPE(SwView);
+ // auf Sichtbarkeit pruefen, bis der Sfx das GetFirst/Next
+ //mit bOnlyVisible implementiert hat
+ SwView* pNView = (SwView*)SfxViewShell::GetNext(*pView, &aTypeId);
+ while(pNView && !pNView->GetViewFrame()->IsVisible())
+ {
+ pNView = (SwView*)SfxViewShell::GetNext(*pNView, &aTypeId);
+ }
+ return pNView;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Liefert UsrPref mit den Einstellungen des aktuellen
+ Fensters
+------------------------------------------------------------------------*/
+
+
+void SwModule::MakeUsrPref( SwViewOption &rToFill, sal_Bool bWeb ) const
+{
+ // Einstellungen Ansicht der Core setzen
+ SwView* pView = ::GetActiveView();
+ SwPagePreView* pPPView;
+
+ if(pView)
+ {
+ rToFill = *(pView->GetWrtShell().GetViewOptions());
+ SfxFrame* pTopFrame = pView->GetViewFrame()->GetTopFrame();
+ if( pTopFrame->GetChildFrameCount() != 0 )
+ {
+ rToFill.SetViewTabwin(pUsrPref->IsViewTabwin());
+ rToFill.SetViewVLin(pUsrPref->IsViewVLin());
+ }
+ }
+ else if( 0 != (pPPView = PTR_CAST( SwPagePreView, SfxViewShell::Current())) )
+ rToFill = *(pPPView->GetViewShell().GetViewOptions());
+ else
+ rToFill = *((SwModule*)this)->GetUsrPref( bWeb );
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Neuer Master fuer die Einstellungen wird gesetzt;
+ dieser wirkt sich auf die aktuelle Sicht und alle
+ folgenden aus.
+------------------------------------------------------------------------*/
+
+void SwModule::ApplyUsrPref(const SwViewOption &rUsrPref, SwView* pActView,
+ sal_uInt16 nDest )
+{
+ SwView* pView = pActView;
+ ViewShell* pSh = 0;
+ sal_Bool bFrameDoc = sal_False;
+
+ if ( pView )
+ {
+ //Fuer FrameViews wird das Umschalten der Grafiken in allen Frames
+ //mit Writer-Dokumenten eingestellt.
+ //Auserdem werden die UI-Prefs in allen Frames eingestellt.
+
+ pSh = &pView->GetWrtShell();
+ SfxFrameIterator aIter( *pView->GetViewFrame()->GetTopFrame() );
+ SfxFrame *pChildFrame;
+ if ( 0 != (pChildFrame = aIter.FirstFrame()) )
+ {
+ bFrameDoc = sal_True;
+ sal_Bool bGraphic = rUsrPref.IsGraphic();
+ do
+ {
+ SfxViewShell* pVShell = pChildFrame->GetCurrentViewFrame()
+ ? pChildFrame->GetCurrentViewFrame()->GetViewShell()
+ : 0;
+ SwView* pFrameView = PTR_CAST(SwView, pVShell);
+ if(!pFrameView || pFrameView == pView)
+ continue;
+
+ SwWrtShell &rSh = pFrameView->GetWrtShell();
+ const SwViewOption* pVOpt = rSh.GetViewOptions();
+ SwViewOption aVOpt(*pVOpt);
+ if(aVOpt.IsGraphic() != bGraphic)
+ {
+ aVOpt.SetReadonly(pVOpt->IsReadonly());
+ aVOpt.SetGraphic( bGraphic );
+ rSh.ApplyViewOptions(aVOpt);
+ }
+ lcl_SetUIPrefs(&rUsrPref, pFrameView, &rSh );
+
+ } while ( 0 != (pChildFrame = aIter.NextFrame( *pChildFrame )));
+ }
+
+ }
+
+ SwMasterUsrPref* pPref = (SwMasterUsrPref*)GetUsrPref(
+ VIEWOPT_DEST_WEB == nDest ? sal_True :
+ VIEWOPT_DEST_TEXT== nDest ? sal_False :
+ pView && pView->ISA(SwWebView) );
+
+ //per Uno soll nur die sdbcx::View, aber nicht das Module veraendert werden
+ sal_Bool bViewOnly = VIEWOPT_DEST_VIEW_ONLY == nDest;
+ //PreView abfruehstuecken
+ SwPagePreView* pPPView;
+ if( !pView && 0 != (pPPView = PTR_CAST( SwPagePreView, SfxViewShell::Current())) )
+ {
+ if(!bViewOnly)
+ pPref->SetUIOptions( rUsrPref );
+ if(pPref->IsViewVScrollBar())
+ pPPView->CreateVScrollbar();
+ else
+ pPPView->KillVScrollbar();
+ if(pPref->IsViewHScrollBar())
+ pPPView->CreateHScrollbar();
+ else
+ pPPView->KillHScrollbar();
+ if(!bViewOnly)
+ {
+ pPref->SetPagePrevRow(rUsrPref.GetPagePrevRow());
+ pPref->SetPagePrevCol(rUsrPref.GetPagePrevCol());
+ }
+ return;
+ }
+
+ sal_Bool bViewHLin, bViewVLin;
+ if(bFrameDoc)
+ {
+ //In Frame-Dokumenten soll die Linealumschaltung nicht in den
+ //default uebernommen werden.
+ const sal_uInt32 nUIOptions = pPref->GetUIOptions();
+ bViewHLin = 0 != (nUIOptions & VIEWOPT_2_TABWIN);
+ bViewVLin = 0 != (nUIOptions & VIEWOPT_2_VLIN);
+ }
+
+ if(!bViewOnly)
+ {
+ pPref->SetDefault( sal_False );
+ pPref->SetUsrPref( rUsrPref );
+ }
+
+ if( !pView )
+ return;
+
+ // Weitergabe an die CORE
+ const sal_Bool bReadonly = pView->GetDocShell()->IsReadOnly();
+ SwViewOption* pViewOpt;
+ if(!bViewOnly)
+ pViewOpt = new SwViewOption( *pPref );
+ else
+ pViewOpt = new SwViewOption( rUsrPref );
+ pViewOpt->SetReadonly( bReadonly );
+ if( !(*pSh->GetViewOptions() == *pViewOpt) )
+ {
+ //Ist evtl. nur eine ViewShell
+ pSh->StartAction();
+ pSh->ApplyViewOptions( *pViewOpt );
+ ((SwWrtShell*)pSh)->SetReadOnlyAvailable(pViewOpt->IsCursorInProtectedArea());
+ pSh->EndAction();
+ }
+ if ( pSh->GetViewOptions()->IsReadonly() != bReadonly )
+ pSh->SetReadonlyOption(bReadonly);
+
+ lcl_SetUIPrefs(pViewOpt, pView, pSh);
+ if(bFrameDoc && !bViewOnly)
+ {
+ pPref->SetViewTabwin(bViewHLin);
+ pPref->SetViewVLin(bViewVLin);
+ }
+ // zum Schluss wird das Idle-Flag wieder gesetzt
+ // #42510#
+ pPref->SetIdle(sal_True);
+
+}
+/*-----------------13.11.96 11.57-------------------
+
+--------------------------------------------------*/
+
+SwNavigationConfig* SwModule::GetNavigationConfig()
+{
+ if(!pNavigationConfig)
+ {
+ pNavigationConfig = new SwNavigationConfig;
+ }
+ return pNavigationConfig;
+}
+
+/*-----------------05.02.97 08.03-------------------
+
+--------------------------------------------------*/
+
+SwPrintOptions* SwModule::GetPrtOptions(sal_Bool bWeb)
+{
+ if(bWeb && !pWebPrtOpt)
+ {
+ pWebPrtOpt = new SwPrintOptions(TRUE);
+ }
+ else if(!bWeb && !pPrtOpt)
+ {
+ pPrtOpt = new SwPrintOptions(FALSE);
+ }
+
+ return bWeb ? pWebPrtOpt : pPrtOpt;
+}
+
+/*-----------------26.06.97 07.52-------------------
+
+--------------------------------------------------*/
+SwChapterNumRules* SwModule::GetChapterNumRules()
+{
+ if(!pChapterNumRules)
+ pChapterNumRules = new SwChapterNumRules;
+ return pChapterNumRules;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModule::ExecDB(SfxRequest &rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ SwNewDBMgr* pNewDBMgr = NULL;
+
+ if (GetView())
+ pNewDBMgr = GetView()->GetWrtShell().GetNewDBMgr();
+
+ sal_uInt16 nSlot(rReq.GetSlot());
+
+ switch (nSlot)
+ {
+ case FN_QRY_MERGE:
+ case FN_QRY:
+ {
+ String sDBName;
+
+ if (GetView())
+ {
+ SwWrtShell &rSh = GetView()->GetWrtShell();
+ sDBName = rSh.GetDBName();
+#ifdef REPLACE_OFADBMGR
+#ifdef DEBUG
+ sDBName = String::CreateFromAscii("Address Book File");
+ sDBName += DB_DELIM;
+ sDBName += String::CreateFromAscii("address");
+#endif //DEBUG
+#endif //REPLACE_OFADBMGR
+
+ rSh.EnterStdMode(); // Wechsel in Textshell erzwingen; ist fuer
+ // das Mischen von DB-Feldern notwendig.
+ GetView()->AttrChangedNotify( &rSh );
+ pNewDBMgr->SetMergeType( DBMGR_MERGE );
+ ShowDBObj(rSh, sDBName, sal_True);
+ }
+
+ if (pNewDBMgr && nSlot == FN_QRY_MERGE)
+ {
+ SfxViewFrame* pVFrame = GetView()->GetViewFrame();
+ uno::Reference< frame::XFrame > xFrame = pVFrame->GetFrame()->GetFrameInterface();
+
+ uno::Reference< frame::XFrame > xBeamerFrame = xFrame->findFrame(
+ OUString::createFromAscii("_beamer"), frame::FrameSearchFlag::ALL);
+
+ if(xBeamerFrame.is())
+ {
+ uno::Reference< frame::XController > xCtrl = xBeamerFrame->getController();
+ uno::Reference< frame::XDispatchProvider > xDispProv(xCtrl, uno::UNO_QUERY);
+ if(xDispProv.is())
+ {
+ OUString uEmpty;
+ util::URL aURL;
+ aURL.Complete = OUString::createFromAscii(".uno:WriterDB/MailMerge");
+ uno::Reference< frame::XDispatch > xDisp = xDispProv->queryDispatch(aURL, uEmpty, frame::FrameSearchFlag::AUTO);
+ if(xDisp.is())
+ {
+ uno::Reference< frame::XStatusListener > xDispatchListener =
+ new SwXDispatchStatusListener(xDisp, aURL);
+ xDisp->addStatusListener(xDispatchListener, aURL);
+ }
+ }
+ }
+ }
+ }
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Schaut nach ob's min eine sdbcx::View gibt
+ --------------------------------------------------------------------*/
+
+void SwModule::StateIsView(SfxItemSet& rSet)
+{
+ SwView *pView = ::GetActiveView();
+
+ // Ist ein Writer-Dok ganz oben?
+ if( !pView || pView->GetDocShell()->GetProtocol().IsInPlaceActive() )
+ rSet.DisableItem(FN_QRY);
+
+ TypeId aType( TYPE(SwView) );
+ if( !SfxViewShell::GetFirst(&aType) ) // Ist irgendein Writer-Dok vorhanden?
+ rSet.DisableItem(FN_QRY_MERGE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModule::ShowDBObj(SwWrtShell& rSh, const String& rDBName, sal_Bool bShowError)
+{
+ String sDBName(rDBName.GetToken(0, DB_DELIM));
+
+#ifdef REPLACE_OFADBMGR
+ String sTable(rDBName.GetToken(1, DB_DELIM));
+ rSh.GetNewDBMgr()->ShowInBeamer( sDBName, sTable, SW_DB_SELECT_UNKNOWN, aEmptyStr );
+#else
+ if (sDBName.Len())
+ {
+ OfaDBMgr *pDBMgr = OFF_APP()->GetOfaDBMgr();
+ SbaDatabaseRef pConnection = pDBMgr->GetSbaObject()->
+ GetDatabase(sDBName, bShowError);
+ if ( pConnection )
+ {
+ String sTable(rDBName.GetToken(1, DB_DELIM));
+ DBObject eType;
+ if( !pConnection->HasObject( eType = dbTable, sTable ) &&
+ !pConnection->HasObject( eType = dbQuery , sTable ))
+ eType = dbTable;
+
+ //wenn keine Connection gefunden wurde, dann braucht man auch
+ //den Beamer nicht
+ pDBMgr->ShowInBeamer( sDBName, sTable, eType, aEmptyStr );
+ }
+ }
+#endif
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Redlining
+ --------------------------------------------------------------------*/
+
+sal_uInt16 SwModule::GetRedlineAuthor()
+{
+ if (!bAuthorInitialised)
+ {
+ sActAuthor = SFX_APP()->GetIniManager()->GetUserFullName();
+ bAuthorInitialised = sal_True;
+ }
+
+ return InsertRedlineAuthor(sActAuthor);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+const String& SwModule::GetRedlineAuthor(sal_uInt16 nPos)
+{
+ return *pAuthorNames->GetObject(nPos);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_uInt16 SwModule::GetRedlineAuthorCount()
+{
+ return pAuthorNames->Count();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_uInt16 SwModule::InsertRedlineAuthor(const String& rAuthor)
+{
+ sal_uInt16 nPos = 0;
+
+ while (nPos < pAuthorNames->Count() && *pAuthorNames->GetObject(nPos) != rAuthor)
+ nPos++;
+
+ if (nPos == pAuthorNames->Count())
+ pAuthorNames->Insert(new String(rAuthor), nPos);
+
+ return nPos;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void lcl_FillAuthorAttr( sal_uInt16 nAuthor, SfxItemSet &rSet,
+ const AuthorCharAttr &rAttr )
+{
+ Color aCol((ColorData)rAttr.nColor);
+
+ if (rAttr.nColor == COL_TRANSPARENT)
+ {
+// dynamische Vergabe der Attribute
+ static ColorData aColArr[ 10 ] = {
+ COL_LIGHTRED, COL_LIGHTBLUE, COL_LIGHTMAGENTA,
+ COL_GREEN, COL_RED, COL_BLUE,
+ COL_BROWN, COL_MAGENTA, COL_CYAN };
+
+ aCol.SetColor(aColArr[ nAuthor % 10 ]);
+ }
+
+ sal_Bool bBackGr = sal_False;
+
+ if (rAttr.nColor == COL_NONE)
+ bBackGr = sal_True;
+
+ switch (rAttr.nItemId)
+ {
+ case SID_ATTR_CHAR_WEIGHT:
+ rSet.Put(SvxWeightItem( (FontWeight)rAttr.nAttr, RES_CHRATR_WEIGHT));
+ break;
+
+ case SID_ATTR_CHAR_POSTURE:
+ rSet.Put(SvxPostureItem((FontItalic)rAttr.nAttr, RES_CHRATR_POSTURE));
+ break;
+
+ case SID_ATTR_CHAR_UNDERLINE:
+ rSet.Put(SvxUnderlineItem( (FontUnderline)rAttr.nAttr, RES_CHRATR_UNDERLINE));
+ break;
+
+ case SID_ATTR_CHAR_STRIKEOUT:
+ rSet.Put(SvxCrossedOutItem( (FontStrikeout)rAttr.nAttr, RES_CHRATR_CROSSEDOUT));
+ break;
+
+ case SID_ATTR_CHAR_CASEMAP:
+ rSet.Put(SvxCaseMapItem((SvxCaseMap)rAttr.nAttr, RES_CHRATR_CASEMAP));
+ break;
+
+ case SID_ATTR_BRUSH:
+ rSet.Put(SvxBrushItem(aCol, RES_CHRATR_BACKGROUND));
+ bBackGr = sal_True;
+ break;
+ }
+
+ if (!bBackGr)
+ rSet.Put(SvxColorItem(aCol));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModule::GetInsertAuthorAttr(sal_uInt16 nAuthor, SfxItemSet &rSet)
+{
+ lcl_FillAuthorAttr(nAuthor, rSet, pModuleConfig->GetInsertAuthorAttr());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModule::GetDeletedAuthorAttr(sal_uInt16 nAuthor, SfxItemSet &rSet)
+{
+ lcl_FillAuthorAttr(nAuthor, rSet, pModuleConfig->GetDeletedAuthorAttr());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+const AuthorCharAttr& SwModule::GetInsertAuthorAttr() const
+{
+ return pModuleConfig->GetInsertAuthorAttr();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+const AuthorCharAttr& SwModule::GetDeletedAuthorAttr() const
+{
+ return pModuleConfig->GetDeletedAuthorAttr();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Fuer zukuenftige Erweiterung:
+ --------------------------------------------------------------------*/
+
+void SwModule::GetFormatAuthorAttr( sal_uInt16 nAuthor, SfxItemSet &rSet )
+{
+ lcl_FillAuthorAttr( nAuthor, rSet, pModuleConfig->GetFormatAuthorAttr() );
+}
+
+const AuthorCharAttr& SwModule::GetFormatAuthorAttr() const
+{
+ return pModuleConfig->GetFormatAuthorAttr();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_uInt16 SwModule::GetRedlineMarkPos()
+{
+ return pModuleConfig->GetMarkAlignMode();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwModule::IsInsTblFormatNum(sal_Bool bHTML) const
+{
+ return pModuleConfig->IsInsTblFormatNum(bHTML);
+}
+
+sal_Bool SwModule::IsInsTblChangeNumFormat(sal_Bool bHTML) const
+{
+ return pModuleConfig->IsInsTblChangeNumFormat(bHTML);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwModule::IsInsTblAlignNum(sal_Bool bHTML) const
+{
+ return pModuleConfig->IsInsTblAlignNum(bHTML);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+const Color &SwModule::GetRedlineMarkColor()
+{
+ return pModuleConfig->GetMarkAlignColor();
+}
+
+/*-----------------03.03.98 16:47-------------------
+
+--------------------------------------------------*/
+const SwViewOption* SwModule::GetViewOption(sal_Bool bWeb)
+{
+ return GetUsrPref( bWeb );
+}
+
+// returne den definierten DocStat - WordDelimiter
+const String& SwModule::GetDocStatWordDelim() const
+{
+ return pModuleConfig->GetWordDelimiter();
+}
+
+
+// Durchreichen der Metric von der ModuleConfig (fuer HTML-Export)
+sal_uInt16 SwModule::GetMetric( sal_Bool bWeb ) const
+{
+ return pModuleConfig->GetMetric( bWeb );
+}
+
+// Update-Stati durchreichen
+sal_uInt16 SwModule::GetLinkUpdMode( sal_Bool ) const
+{
+ return pModuleConfig->GetLinkMode();
+}
+
+sal_uInt16 SwModule::GetFldUpdateFlags( sal_Bool ) const
+{
+ return pModuleConfig->GetFldUpdateFlags();
+}
+
+void SwModule::CheckSpellChanges( sal_Bool bOnlineSpelling,
+ sal_Bool bIsSpellWrongAgain, sal_Bool bIsSpellAllAgain )
+{
+ sal_Bool bOnlyWrong = bIsSpellWrongAgain && !bIsSpellAllAgain;
+ sal_Bool bInvalid = bOnlyWrong || bIsSpellAllAgain;
+ if( bOnlineSpelling || bInvalid )
+ {
+ TypeId aType = TYPE(SwDocShell);
+ for( SwDocShell *pDocSh = (SwDocShell*)SfxObjectShell::GetFirst(&aType);
+ pDocSh;
+ pDocSh = (SwDocShell*)SfxObjectShell::GetNext( *pDocSh, &aType ) )
+ {
+ SwDoc* pTmp = pDocSh->GetDoc();
+ if ( pTmp->GetRootFrm() )
+ pTmp->SpellItAgainSam( bInvalid, bOnlyWrong );
+ }
+// pSpell->SetSpellWrongAgain( sal_False );
+// pSpell->SetSpellAllAgain( sal_False );
+ }
+}
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.50 2000/09/18 16:05:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.49 2000/09/08 15:11:56 os
+ use configuration service
+
+ Revision 1.48 2000/09/07 15:59:20 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.47 2000/09/07 08:25:24 os
+ SwPrintOptions uses configuration service
+
+ Revision 1.46 2000/07/18 12:50:07 os
+ replace ofadbmgr
+
+ Revision 1.45 2000/05/26 07:21:28 os
+ old SW Basic API Slots removed
+
+ Revision 1.44 2000/05/16 09:15:11 os
+ project usr removed
+
+ Revision 1.43 2000/05/11 12:05:29 tl
+ if[n]def ONE_LINGU entfernt
+
+ Revision 1.42 2000/03/30 13:28:04 os
+ UNO III
+
+ Revision 1.41 2000/03/29 12:46:55 jp
+ Bug #74570#: ShowDBObj - if no table and no query exist, set default to table
+
+ Revision 1.40 2000/03/21 15:47:50 os
+ UNOIII
+
+ Revision 1.39 2000/02/11 14:43:07 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.38 2000/02/09 07:58:08 os
+ #72824# check if beamer is available
+
+ Revision 1.37 2000/01/13 11:31:37 tl
+ #70735# fixed CheckSpellChanges bug
+
+ Revision 1.36 2000/01/11 10:33:54 tl
+ #70735# CheckSpellChanges moved from SwDoc to here
+
+ Revision 1.35 2000/01/06 12:54:01 hr
+ #65293#: END_CATCH
+
+ Revision 1.34 2000/01/06 07:32:38 os
+ #71436# mail merge dialog: execute via status method disposed
+
+ Revision 1.33 1999/06/22 15:37:58 JP
+ Bug #43028#: disableflag for edit in mailbody
+
+
+ Rev 1.32 22 Jun 1999 17:37:58 JP
+ Bug #43028#: disableflag for edit in mailbody
+
+ Rev 1.31 20 Apr 1999 18:59:24 JP
+ Task #65061#: neu: ZahlenFormaterkennung abschaltbar
+
+ Rev 1.30 12 Mar 1999 09:55:32 JP
+ Task #61405#: Optionen setzen
+
+ Rev 1.29 12 Mar 1999 09:45:04 OS
+ #63044# Datenbank-Fehlermeldung anzeigen
+
+ Rev 1.28 01 Mar 1999 16:20:52 MA
+ #62490# Altlast entfernt (Drucken und Briefumschlaege/Etiketten und Datenbank)
+
+ Rev 1.27 23 Feb 1999 16:19:38 OS
+ #62281# UsrPrefs per UNO nur auf aktuelle sdbcx::View anwenden
+
+ Rev 1.26 17 Feb 1999 08:37:24 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+ Rev 1.25 27 Jan 1999 10:05:22 OS
+ #58677# Cursor in Readonly-Bereichen
+
+ Rev 1.24 26 Jan 1999 11:50:10 MIB
+ #60875#: Beim HTML-Export Einheit aus Extras/Optionen/Text-/HTML-Dokument nehmen
+
+ Rev 1.23 23 Nov 1998 17:36:52 JP
+ Bug #59754#: TerminateHdl wird nicht mehr fuers Clipboard benoetigt
+
+ Rev 1.22 20 Nov 1998 14:01:32 OM
+ #59720# Neue Tabellenoptionen beim Einfuegen
+
+ Rev 1.21 05 Oct 1998 17:16:54 OM
+ #57458# Auch Queries ueber F4 anzeigen
+
+ Rev 1.20 24 Sep 1998 13:33:02 OS
+ #52654# #56685# XTerminateListener fuer die Anmeldung an der Application
+
+ Rev 1.19 24 Aug 1998 12:20:54 OM
+ #54552# Serienbriefdialog: Statusupdate immer erzwingen
+
+ Rev 1.18 14 Jul 1998 12:09:06 OS
+ Scrollbars nur umschalten, wenn sich die ViewOptions wirklich veraendert haben #52708#
+
+ Rev 1.17 25 May 1998 12:41:28 JP
+ nMergeType wurde private, ueber SetMergeType setzen
+
+ Rev 1.16 15 May 1998 12:50:02 OM
+ Worttrenner
+
+ Rev 1.15 14 May 1998 16:46:00 OM
+ Worttrenner konfigurierbar
+
+ Rev 1.14 24 Apr 1998 19:36:54 JP
+ neu: DocStat WordDelimiter aus der Configuration holen
+
+ Rev 1.13 24 Mar 1998 17:45:28 OM
+ Formataenderung anzeigen
+
+ Rev 1.12 24 Mar 1998 13:43:56 JP
+ neu: Redline fuer harte Attributierung
+
+ Rev 1.11 16 Mar 1998 19:09:48 OM
+ Zugriff auf Ini optimiert
+
+ Rev 1.10 15 Mar 1998 16:57:22 MA
+ #48342# richtig initialisieren
+
+ Rev 1.9 10 Mar 1998 12:23:42 OM
+ Get...AuthorAttr
+
+ Rev 1.8 05 Mar 1998 14:44:08 OM
+ Redline-Attribute in Module-Cfg speichern
+
+ Rev 1.7 03 Mar 1998 17:00:46 OS
+ GetViewOption
+
+ Rev 1.6 28 Feb 1998 15:12:42 OM
+ Accept / reject changes
+
+ Rev 1.5 24 Feb 1998 15:32:04 OM
+ Redline-Darstellungsoptionen setzen
+
+ Rev 1.4 08 Dec 1997 11:46:16 OS
+ benannte Numerierungen entfernt
+
+ Rev 1.3 24 Nov 1997 14:22:36 MA
+ includes
+
+ Rev 1.2 18 Nov 1997 14:33:42 OM
+ Sba-Umstellung 372
+
+ Rev 1.1 02 Sep 1997 10:21:08 OS
+ includes
+
+ Rev 1.0 01 Sep 1997 13:09:16 OS
+ Initial revision.
+
+
+-------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/app/swmodule.cxx b/sw/source/ui/app/swmodule.cxx
new file mode 100644
index 000000000000..1eddf1a7b931
--- /dev/null
+++ b/sw/source/ui/app/swmodule.cxx
@@ -0,0 +1,664 @@
+/*************************************************************************
+ *
+ * $RCSfile: swmodule.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+#include "uiparam.hxx"
+#include "swerror.h"
+
+#ifndef _SV_WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _EHDL_HXX //autogen
+#include <svtools/ehdl.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef _SVX_FNTSZCTL_HXX //autogen
+#include <svx/fntszctl.hxx>
+#endif
+#ifndef _SVX_FNTCTL_HXX //autogen
+#include <svx/fntctl.hxx>
+#endif
+#ifndef _SVX_PSZCTRL_HXX //autogen
+#include <svx/pszctrl.hxx>
+#endif
+#ifndef _SVX_INSCTRL_HXX //autogen
+#include <svx/insctrl.hxx>
+#endif
+#ifndef _SVX_SELCTRL_HXX //autogen
+#include <svx/selctrl.hxx>
+#endif
+#ifndef _SVX_LINECTRL_HXX //autogen
+#include <svx/linectrl.hxx>
+#endif
+#include <basctl/btbxctl.hxx> //z-Zt falscher includeschutz!
+#include <svx/tbxctl.hxx> //z-Zt falscher includeschutz!
+#ifndef _FILLCTRL_HXX //autogen
+#include <svx/fillctrl.hxx>
+#endif
+#ifndef _SVX_TBCONTRL_HXX //autogen
+#include <svx/tbcontrl.hxx>
+#endif
+#ifndef _CONTDLG_HXX_ //autogen
+#include <svx/contdlg.hxx>
+#endif
+#ifndef _SVX_LAYCTRL_HXX //autogen
+#include <svx/layctrl.hxx>
+#endif
+#ifndef _SVX_FONTWORK_HXX //autogen
+#include <svx/fontwork.hxx>
+#endif
+#ifndef _TBXALIGN_HXX //autogen
+#include <svx/tbxalign.hxx>
+#endif
+#ifndef _SVX_GRAFCTRL_HXX
+#include <svx/grafctrl.hxx>
+#endif
+#ifndef _SVX_DLG_HYPERLINK_HXX //autogen
+#include <offmgr/hyprlink.hxx>
+#endif
+#ifndef _SVSTDARR_STRINGSDTOR
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XSingleServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SCANNER_XSCANNERMANAGER_HPP_
+#include <com/sun/star/scanner/XScannerManager.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XSET_HPP_
+#include <com/sun/star/container/XSet.hpp>
+#endif
+#ifndef _CPPUHELPER_FACTORY_HXX_
+#include <cppuhelper/factory.hxx>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#include "docsh.hxx"
+#include "swmodule.hxx"
+#include <swtypes.hxx>
+#include <swevent.hxx>
+#include <swacorr.hxx>
+#include "cmdid.h"
+#include <dobjfac.hxx>
+#include <init.hxx>
+#ifndef _SWPVIEW_HXX //autogen
+#include <pview.hxx>
+#endif
+#ifndef _SWWVIEW_HXX //autogen
+#include <wview.hxx>
+#endif
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _SWGLOBDOCSH_HXX //autogen
+#include <globdoc.hxx>
+#endif
+#ifndef _SRCVIEW_HXX //autogen
+#include <srcview.hxx>
+#endif
+#ifndef _AUTODOC_HXX //autogen
+#include <glshell.hxx>
+#endif
+#ifndef _SWTABSH_HXX //autogen
+#include <tabsh.hxx>
+#endif
+#ifndef _SWLISTSH_HXX //autogen
+#include <listsh.hxx>
+#endif
+#ifndef _SWGRFSH_HXX //autogen
+#include <grfsh.hxx>
+#endif
+#ifndef _SWOLESH_HXX //autogen
+#include <olesh.hxx>
+#endif
+#ifndef _SWDRAWSH_HXX //autogen
+#include <drawsh.hxx>
+#endif
+#ifndef _SWWDRWFORMSH_HXX //autogen
+#include <wformsh.hxx>
+#endif
+#ifndef _SWDRWTXTSH_HXX //autogen
+#include <drwtxtsh.hxx>
+#endif
+#ifndef _SWBEZIERSH_HXX //autogen
+#include <beziersh.hxx>
+#endif
+#ifndef _SWWTEXTSH_HXX //autogen
+#include <wtextsh.hxx>
+#endif
+#ifndef _SWWFRMSH_HXX //autogen
+#include <wfrmsh.hxx>
+#endif
+#include "drformsh.hxx"
+#include "wgrfsh.hxx"
+#include "wolesh.hxx"
+#include "wlistsh.hxx"
+#include "wtabsh.hxx"
+#include "wdrwbase.hxx"
+#ifndef _NAVIPI_HXX //autogen
+#include <navipi.hxx>
+#endif
+#ifndef _SRCVCFG_HXX //autogen
+#include <srcvcfg.hxx>
+#endif
+#ifndef _CHARTINS_HXX //autogen
+#include <chartins.hxx>
+#endif
+#ifndef SW_INPUTWIN_HXX //autogen
+#include <inputwin.hxx>
+#endif
+#ifndef _USRPREF_HXX //autogen
+#include <usrpref.hxx>
+#endif
+#ifndef _UINUMS_HXX //autogen
+#include <uinums.hxx>
+#endif
+#ifndef _PRTOPT_HXX //autogen
+#include <prtopt.hxx>
+#endif
+#include "bookctrl.hxx"
+#include "tmplctrl.hxx"
+#include "tblctrl.hxx"
+#include "zoomctrl.hxx"
+#include "swstbctl.hxx"
+#include "workctrl.hxx"
+#include "numctrl.hxx"
+#include "tbxanchr.hxx"
+#include "fldwrap.hxx"
+#include "redlndlg.hxx"
+#include "syncbtn.hxx"
+#ifndef _HDFTCTRL_HXX
+#include <hdftctrl.hxx>
+#endif
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#ifndef _FONTCFG_HXX //autogen
+#include <fontcfg.hxx>
+#endif
+#ifndef _UNOMOD_HXX
+#include <unomod.hxx>
+#endif
+#ifndef _UNOATXT_HXX
+#include <unoatxt.hxx>
+#endif
+#ifndef _SFX_APPUNO_HXX //autogen
+#include <sfx2/appuno.hxx>
+#endif
+#ifndef _SWATRSET_HXX //autogen
+#include <swatrset.hxx>
+#endif
+#ifndef _IDXMRK_HXX
+#include "idxmrk.hxx"
+#endif
+#ifndef _DLELSTNR_HXX_
+#include <dlelstnr.hxx>
+#endif
+
+#include "barcfg.hxx"
+
+#include <app.hrc>
+#include "cfgid.h"
+
+ResMgr *pSwResMgr = 0;
+sal_Bool bNoInterrupt = sal_False;
+
+#ifndef PROFILE
+// Code zum Initialisieren von Statics im eigenen Code-Segment
+#pragma code_seg( "SWSTATICS" )
+#endif
+
+#ifndef PROFILE
+#pragma code_seg()
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::scanner;
+using namespace ::com::sun::star::lang;
+using namespace ::rtl;
+#define C2S(cChar) String::CreateFromAscii(cChar)
+
+TYPEINIT1( SwModuleDummy, SfxModule );
+TYPEINIT1( SwModule, SwModuleDummy );
+
+
+//************************************************************************
+
+SwModule::SwModule( SvFactory* pFact,
+ SvFactory* pWebFact,
+ SvFactory* pGlobalFact )
+ : SwModuleDummy( SFX_APP()->CreateResManager( "sw" ), sal_False, pFact,
+ pWebFact, pGlobalFact ),
+ pSrcViewConfig(0),
+ pModuleConfig(0),
+ pView(0),
+ pChapterNumRules(0),
+ pStdFontConfig(0),
+ pNavigationConfig(0),
+ pPrtOpt(0),
+ pWebPrtOpt(0),
+ pWebUsrPref(0),
+ pUsrPref(0),
+ pToolbarConfig(0),
+ pWebToolbarConfig(0),
+ pClipboard(0),
+ pDragDrop(0),
+ pAttrPool(0),
+ bAuthorInitialised(sal_False)
+{
+ SetName( String::CreateFromAscii("StarWriter") );
+ pSwResMgr = GetResMgr();
+ pErrorHdl = new SfxErrorHandler( RID_SW_ERRHDL,
+ ERRCODE_AREA_SW,
+ ERRCODE_AREA_SW_END,
+ pSwResMgr );
+ OFF_APP()->RegisterEvent(SW_EVENT_MAIL_MERGE, SW_RES(STR_PRINT_MERGE_MACRO));
+ OFF_APP()->RegisterEvent(SW_EVENT_PAGE_COUNT, SW_RES(STR_PAGE_COUNT_MACRO));
+ pModuleConfig = new SwModuleOptions;
+ pModuleConfig->Initialize();
+
+ //Die brauchen wie sowieso
+ pToolbarConfig = new SwToolbarConfigItem( sal_False );
+ pToolbarConfig->Initialize();
+ pWebToolbarConfig = new SwToolbarConfigItem( sal_True );
+ pWebToolbarConfig->Initialize();
+
+ pStdFontConfig = new SwStdFontConfig;
+
+ pAuthorNames = new SvStringsDtor(5, 1); // Alle Redlining-Autoren
+
+ //JP 18.10.96: SvxAutocorrect gegen die SwAutocorrect austauschen
+ OfficeApplication* pOffApp = OFF_APP();
+ OfaAutoCorrCfg* pACfg = pOffApp->GetAutoCorrConfig();
+ if( pACfg )
+ {
+ const SvxAutoCorrect* pOld = pACfg->GetAutoCorrect();
+ pACfg->SetAutoCorrect(new SwAutoCorrect( *pOld ));
+ }
+ StartListening( *pOffApp );
+
+ xDicListEvtListener = uno::Reference< linguistic::XDictionaryListEventListener > (
+ new SwDicListEvtListener( ::GetDictionaryList() ) );
+
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ m_xScannerManager = Reference< XScannerManager >(
+ xMgr->createInstance( OUString::createFromAscii( "com.sun.star.scanner.ScannerManager" ) ),
+ UNO_QUERY );
+
+// if( m_xScannerManager.is() )
+// {
+// m_xScannerListener = Reference< lang::XEventListener >(
+// OWeakObject* ( new ScannerEventListener( this ) ), UNO_QUERY );
+// }
+ }
+}
+
+//************************************************************************
+
+SwModule::~SwModule()
+{
+ SetPool(0);
+ delete pAttrPool;
+ delete pErrorHdl;
+ EndListening( *OFF_APP() );
+}
+
+//************************************************************************
+
+void SwDLL::RegisterFactories()
+{
+ //Diese Id's duerfen nicht geaendert werden. Mittels der Id's wird vom
+ //Sfx die sdbcx::View (Dokumentansicht wiederherstellen) erzeugt.
+ SwView::RegisterFactory ( 2 );
+ SwWebView::RegisterFactory ( 5 );
+ SwSrcView::RegisterFactory ( 6 );
+ SwPagePreView::RegisterFactory ( 7 );
+}
+
+//************************************************************************
+
+
+void SwDLL::RegisterInterfaces()
+{
+ SwModule* pMod = SW_MOD();
+ SwModule::RegisterInterface( pMod );
+ SwDocShell::RegisterInterface( pMod );
+ SwWebDocShell::RegisterInterface( pMod );
+ SwGlosDocShell::RegisterInterface( pMod );
+ SwWebGlosDocShell::RegisterInterface( pMod );
+ SwView::RegisterInterface( pMod );
+ SwWebView::RegisterInterface( pMod );
+ SwPagePreView::RegisterInterface( pMod );
+ SwSrcView::RegisterInterface( pMod );
+
+
+ SwBaseShell::RegisterInterface(pMod);
+ SwTextShell::RegisterInterface(pMod);
+ SwTableShell::RegisterInterface(pMod);
+ SwListShell::RegisterInterface(pMod);
+ SwFrameShell::RegisterInterface(pMod);
+ SwDrawBaseShell::RegisterInterface(pMod);
+ SwDrawShell::RegisterInterface(pMod);
+ SwDrawFormShell::RegisterInterface(pMod);
+ SwDrawTextShell::RegisterInterface(pMod);
+ SwBezierShell::RegisterInterface(pMod);
+ SwGrfShell::RegisterInterface(pMod);
+ SwOleShell::RegisterInterface(pMod);
+ SwWebTextShell::RegisterInterface(pMod);
+ SwWebFrameShell::RegisterInterface(pMod);
+ SwWebGrfShell::RegisterInterface(pMod);
+ SwWebListShell::RegisterInterface(pMod);
+ SwWebTableShell::RegisterInterface(pMod);
+ SwWebDrawBaseShell::RegisterInterface(pMod);
+ SwWebDrawFormShell::RegisterInterface(pMod);
+ SwWebOleShell::RegisterInterface(pMod);
+
+ uno::Reference< lang::XMultiServiceFactory > xMgr = utl::getProcessServiceFactory();
+ uno::Reference< container::XSet > xSet(xMgr, uno::UNO_QUERY);
+ if (xSet.is())
+ {
+ OUString sString = C2S("com.sun.star.text.AutoTextContainer");
+
+ uno::Reference< lang::XSingleServiceFactory > xSingleFactory =
+ cppu::createOneInstanceFactory(
+ xMgr,
+ OUString(),
+ SwXAutoTextContainer_CreateInstance,
+ uno::Sequence<OUString>(&sString, 1));
+
+ if (xSingleFactory.is())
+ xSet->insert(uno::Any(&xSingleFactory, ::getCppuType((uno::Reference< lang::XSingleServiceFactory> *)0)));
+
+ sString = C2S("com.sun.star.text.StarWriter");
+ xSingleFactory = cppu::createOneInstanceFactory(
+ xMgr,
+ OUString(),
+ SwXModule_CreateInstance,
+ uno::Sequence<OUString>(&sString, 1));
+
+ if (xSingleFactory.is())
+ xSet->insert(uno::Any(&xSingleFactory, ::getCppuType((uno::Reference< lang::XSingleServiceFactory>*)0)));
+ }
+}
+
+//************************************************************************
+
+void SwDLL::RegisterControls()
+{
+ SwModule* pMod = SW_MOD();
+ SvxTbxCtlDraw::RegisterControl(SID_INSERT_DRAW, pMod );
+ SvxTbxCtlAlign::RegisterControl(SID_OBJECT_ALIGN, pMod );
+ SwTbxAnchor::RegisterControl(FN_TOOL_ANKER, pMod );
+ SwTbxInsertCtrl::RegisterControl(FN_INSERT_CTRL, pMod );
+ SwTbxInsertCtrl::RegisterControl(FN_INSERT_OBJ_CTRL, pMod );
+ SwTbxAutoTextCtrl::RegisterControl(FN_INSERT_FIELD_CTRL, pMod );
+ SwTbxAutoTextCtrl::RegisterControl(FN_GLOSSARY_DLG, pMod );
+
+ SvxFillToolBoxControl::RegisterControl(SID_ATTR_FILL_STYLE, pMod );
+ SvxLineStyleToolBoxControl::RegisterControl(SID_ATTR_LINE_STYLE, pMod );
+ SvxLineWidthToolBoxControl::RegisterControl(SID_ATTR_LINE_WIDTH, pMod );
+ SvxLineColorToolBoxControl::RegisterControl(SID_ATTR_LINE_COLOR, pMod );
+ SvxLineEndToolBoxControl::RegisterControl(SID_ATTR_LINEEND_STYLE, pMod );
+
+ SvxFontNameToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
+ SvxFontHeightToolBoxControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod );
+ SvxFontColorToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR, pMod );
+ SvxFontColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR2, pMod );
+ SvxFontColorExtToolBoxControl::RegisterControl(SID_ATTR_CHAR_COLOR_BACKGROUND, pMod );
+ SvxStyleToolBoxControl::RegisterControl(SID_STYLE_APPLY, pMod );
+ SvxColorToolBoxControl::RegisterControl(SID_BACKGROUND_COLOR, pMod );
+ SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
+ SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
+ SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
+
+ SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME_INTERACT, pMod );
+ SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_FRAME, pMod );
+ SvxColumnsToolBoxControl::RegisterControl(FN_INSERT_COLUMN_SECTION, pMod );
+ SvxTableToolBoxControl::RegisterControl(FN_INSERT_TABLE, pMod );
+ SvxTableToolBoxControl::RegisterControl(FN_PREVIEW_ZOOM, pMod );
+
+ SvxFontMenuControl::RegisterControl(SID_ATTR_CHAR_FONT, pMod );
+ SvxFontSizeMenuControl::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod );
+
+ SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod );
+ SwHyperlinkControl::RegisterControl(FN_STAT_HYPERLINKS, pMod );
+ SvxPosSizeStatusBarControl::RegisterControl(0, pMod );
+ SvxInsertStatusBarControl::RegisterControl(0, pMod );
+ SvxSelectionModeControl::RegisterControl(FN_STAT_SELMODE, pMod );
+
+ SwBookmarkControl::RegisterControl(FN_STAT_PAGE, pMod );
+ SwTemplateControl::RegisterControl(FN_STAT_TEMPLATE, pMod );
+
+ SwTableOptimizeCtrl::RegisterControl(FN_OPTIMIZE_TABLE, pMod);
+
+ SfxMenuControl::RegisterControl(FN_FRAME_ALIGN_VERT_TOP, pMod );
+ SfxMenuControl::RegisterControl(FN_FRAME_ALIGN_VERT_BOTTOM, pMod );
+ SfxMenuControl::RegisterControl(FN_FRAME_ALIGN_VERT_CENTER, pMod );
+
+ SwHeadFootMenuControl::RegisterControl( FN_INSERT_PAGEHEADER, pMod );
+ SwHeadFootMenuControl::RegisterControl( FN_INSERT_PAGEFOOTER, pMod );
+
+ SvxHyperlinkDlgWrapper::RegisterChildWindow( sal_False, pMod );
+ SvxFontWorkChildWindow::RegisterChildWindow( sal_False, pMod );
+ SwFldDlgWrapper::RegisterChildWindow( sal_False, pMod );
+ SvxContourDlgChildWindow::RegisterChildWindow( sal_False, pMod );
+ SwInsertChartChild::RegisterChildWindow( sal_False, pMod );
+ SwNavigationChild::RegisterChildWindowContext( pMod );
+ SwInputChild::RegisterChildWindow( sal_False, pMod );
+ SwRedlineAcceptChild::RegisterChildWindow( sal_False, pMod );
+ SwSyncChildWin::RegisterChildWindow( sal_True, pMod );
+ SwInsertIdxMarkWrapper::RegisterChildWindow( sal_False, pMod );
+ SwInsertAuthMarkWrapper::RegisterChildWindow( sal_False, pMod );
+
+ SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
+ SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
+ SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
+ SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
+ SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
+ SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
+ SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
+ SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
+}
+
+
+/*************************************************************************
+|*
+|* Modul laden (nur Attrappe fuer das Linken der DLL)
+|*
+\************************************************************************/
+
+
+SfxModule* SwModuleDummy::Load()
+{
+ return (NULL);
+}
+
+SwModuleDummy::~SwModuleDummy()
+{
+}
+
+
+/*************************************************************************
+|*
+|* Modul laden
+|*
+\************************************************************************/
+
+SfxModule* SwModule::Load()
+{
+ return (this);
+}
+
+/*-----------------15.03.98 11:50-------------------
+
+--------------------------------------------------*/
+/*Reflection* SwModule::GetReflection( UsrUik aUIK )
+{
+ DBG_ERROR("GetReflection - new method not yet available")
+ return 0;
+
+ if(aUIK == ::getCppuType((const uno::Reference< text::XModule >*)0))
+ return ::getCppuType((const SwXModule*)0)();
+ else if(aUIK == ::getCppuType((const uno::Reference< text::XAutoTextContainer >*)0)())
+ return ::getCppuType((const SwXAutoTextContainer*)0)();
+ else
+ return SfxModule::GetReflection(aUIK);
+}*/
+/* -----------------20.04.99 10:46-------------------
+ *
+ * --------------------------------------------------*/
+void SwModule::InitAttrPool()
+{
+ DBG_ASSERT(!pAttrPool, "Pool ist schon da!")
+ pAttrPool = new SwAttrPool(0);
+ SetPool(pAttrPool);
+}
+/* -----------------20.04.99 10:46-------------------
+ *
+ * --------------------------------------------------*/
+void SwModule::RemoveAttrPool()
+{
+ SetPool(0);
+ DELETEZ(pAttrPool);
+}
+
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.75 2000/09/18 16:05:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.74 2000/09/08 15:11:56 os
+ use configuration service
+
+ Revision 1.73 2000/09/04 11:42:21 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.72 2000/08/02 07:53:07 jp
+ register GrafToolboxControls with SlotId
+
+ Revision 1.71 2000/07/31 19:25:18 jp
+ new attributes for CJK/CTL and graphic
+
+ Revision 1.70 2000/06/08 09:40:08 os
+ ContentBroker not in SwModule
+
+ Revision 1.69 2000/06/07 13:17:07 os
+ using UCB
+
+ Revision 1.68 2000/05/29 08:03:59 os
+ new scanner interface
+
+ Revision 1.67 2000/05/26 07:21:28 os
+ old SW Basic API Slots removed
+
+ Revision 1.66 2000/05/16 09:15:11 os
+ project usr removed
+
+ Revision 1.65 2000/05/09 14:40:15 os
+ BASIC interface partially removed
+
+ Revision 1.64 2000/04/11 08:01:31 os
+ UNICODE
+
+ Revision 1.63 2000/03/30 10:48:58 os
+ UNO III
+
+ Revision 1.62 2000/03/21 15:47:51 os
+ UNOIII
+
+ Revision 1.61 2000/02/11 14:43:11 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.60 2000/02/01 09:51:46 os
+ #72282# SwWebBaseShell removed
+
+ Revision 1.59 2000/01/11 19:37:43 tl
+ #70735# xDicListEvtListener added
+
+ Revision 1.58 1999/11/23 11:20:12 os
+ header corrected
+
+-------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/app/swwait.cxx b/sw/source/ui/app/swwait.cxx
new file mode 100644
index 000000000000..75ce524e19a3
--- /dev/null
+++ b/sw/source/ui/app/swwait.cxx
@@ -0,0 +1,118 @@
+/*************************************************************************
+ *
+ * $RCSfile: swwait.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXVIEWFRM_HXX //autogen wg. SfxViewFrame
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen wg. SfxDispatcher
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SWDOCSH_HXX //autogen wg. SwDocShell
+#include <docsh.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+
+void SwDocShell::EnterWait( BOOL bLockDispatcher )
+{
+ SfxViewFrame *pFrame = SfxViewFrame::GetFirst( this, 0, FALSE );
+ while ( pFrame )
+ {
+ pFrame->GetWindow().EnterWait();
+ if ( bLockDispatcher )
+ pFrame->GetDispatcher()->Lock( TRUE );
+ pFrame = SfxViewFrame::GetNext( *pFrame, this, 0, FALSE );
+ }
+}
+
+void SwDocShell::LeaveWait( BOOL bLockDispatcher )
+{
+ SfxViewFrame *pFrame = SfxViewFrame::GetFirst( this, 0, FALSE );
+ while ( pFrame )
+ {
+ pFrame->GetWindow().LeaveWait();
+ if ( bLockDispatcher )
+ pFrame->GetDispatcher()->Lock( FALSE );
+ pFrame = SfxViewFrame::GetNext( *pFrame, this, 0, FALSE );
+ }
+}
+
+SwWait::SwWait( SwDocShell &rDocShell, BOOL bLockDispatcher ) :
+ rDoc ( rDocShell ),
+ bLock( bLockDispatcher )
+{
+ rDoc.EnterWait( bLock );
+}
+
+SwWait::~SwWait()
+{
+ rDoc.LeaveWait( bLock );
+}
+
+
diff --git a/sw/source/ui/cctrl/actctrl.cxx b/sw/source/ui/cctrl/actctrl.cxx
new file mode 100644
index 000000000000..c470b79d88e8
--- /dev/null
+++ b/sw/source/ui/cctrl/actctrl.cxx
@@ -0,0 +1,231 @@
+/*************************************************************************
+ *
+ * $RCSfile: actctrl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#include "actctrl.hxx"
+
+
+
+void NumEditAction::Action()
+{
+ aActionLink.Call( this );
+}
+
+
+long NumEditAction::Notify( NotifyEvent& rNEvt )
+{
+ long nHandled = 0;
+
+ if ( rNEvt.GetType() == EVENT_KEYINPUT )
+ {
+ const KeyEvent* pKEvt = rNEvt.GetKeyEvent();
+ const KeyCode aKeyCode = pKEvt->GetKeyCode();
+ const USHORT nModifier = aKeyCode.GetModifier();
+ if( aKeyCode.GetCode() == KEY_RETURN &&
+ !nModifier)
+ {
+ Action();
+ nHandled = 1;
+ }
+
+ }
+ if(!nHandled)
+ NumericField::Notify( rNEvt );
+ return nHandled;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: KeyInput fuer ShortName - Edits ohne Spaces
+------------------------------------------------------------------------*/
+
+
+void NoSpaceEdit::KeyInput(const KeyEvent& rEvt)
+{
+ BOOL bCallParent = TRUE;
+ if(rEvt.GetCharCode())
+ {
+ String sKey = rEvt.GetCharCode();
+ if( STRING_NOTFOUND != sForbiddenChars.Search(sKey))
+ bCallParent = FALSE;
+ }
+ if(bCallParent)
+ Edit::KeyInput(rEvt);
+}
+/* -----------------------------11.02.00 15:28--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void NoSpaceEdit::Modify()
+{
+ Selection aSel = GetSelection();
+ String sTemp = GetText();
+ for(USHORT i = 0; i < sForbiddenChars.Len(); i++)
+ {
+ sTemp.EraseAllChars( sForbiddenChars.GetChar(i) );
+ }
+ USHORT nDiff = GetText().Len() - sTemp.Len();
+ if(nDiff)
+ {
+ aSel.setMin(aSel.getMin() - nDiff);
+ aSel.setMax(aSel.getMin());
+ SetText(sTemp);
+ SetSelection(aSel);
+ }
+ if(GetModifyHdl().IsSet())
+ GetModifyHdl().Call(this);
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.67 2000/09/18 16:05:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.66 2000/07/10 09:25:33 os
+ #76692# check CharCode first
+
+ Revision 1.65 2000/02/21 07:16:20 os
+ #73223# Call ModifyHdl in ::Modify
+
+ Revision 1.64 2000/02/11 14:46:03 os
+ #71914# Check content in ::Modify
+
+ Revision 1.63 2000/02/01 10:08:25 os
+ #71914# forbidden chars in table names: <>. and space
+
+ Revision 1.62 1999/06/10 07:45:50 OS
+ NoSpaceEdit: illegal characters can be set
+
+
+ Rev 1.61 10 Jun 1999 09:45:50 OS
+ NoSpaceEdit: illegal characters can be set
+
+ Rev 1.60 05 Nov 1998 10:43:42 OS
+ #58990# Notify sollte richtig auf KEYINPUT reagieren
+
+ Rev 1.59 21 Apr 1998 08:43:20 OS
+ NoSpaceEdit, TableNameEdit hierher verschoben
+
+ Rev 1.58 30 Mar 1998 18:46:04 TJ
+ chg: header wg. internal Comperror
+
+ Rev 1.57 12 Nov 1997 17:29:42 MBA
+ SP3:Notify,EVENT_KEYUP
+
+ Rev 1.56 03 Nov 1997 13:09:44 MA
+ precomp entfernt
+
+ Rev 1.55 17 Oct 1997 08:22:12 OS
+ Notify anstelle von KeyInput ueberladen #44732#
+
+ Rev 1.54 13 Feb 1997 16:36:26 MA
+ NameEdit entfernt
+
+ Rev 1.53 28 Aug 1996 08:23:40 OS
+ includes
+
+ Rev 1.52 24 Nov 1995 16:57:36 OM
+ PCH->PRECOMPILED
+
+ Rev 1.51 08 Nov 1995 10:18:32 OS
+ switch => if, keine member -> kein DTOR
+
+ Rev 1.50 12 Oct 1995 15:27:26 MA
+ Klasse EditAction entfernt
+
+ Rev 1.49 21 Mar 1995 19:00:08 OS
+ EditAction wieder drin
+
+ Rev 1.48 20 Mar 1995 19:05:22 OS
+ unbenutzte Funktionen entfernt
+
+ Rev 1.47 15 Mar 1995 11:01:46 MS
+ n.b. Ctors entfernt
+
+ Rev 1.46 15 Mar 1995 10:36:46 MS
+ ActionControlls reduziert
+
+ Rev 1.45 04 Mar 1995 23:13:30 ER
+ Help::EnableBalloonMode() hammernichmehr
+
+ Rev 1.44 07 Feb 1995 19:23:44 ER
+ #elif UNX wird vielleicht wahr werden oder auch nicht..
+
+ Rev 1.43 09 Jan 1995 16:17:44 ER
+ del: ctype h
+
+ Rev 1.42 25 Oct 1994 14:55:18 ER
+ add: PCH
+
+ Rev 1.41 22 Aug 1994 08:17:32 MS
+ SPoints entfernt
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/cctrl/makefile.mk b/sw/source/ui/cctrl/makefile.mk
new file mode 100644
index 000000000000..69c49a9f815a
--- /dev/null
+++ b/sw/source/ui/cctrl/makefile.mk
@@ -0,0 +1,97 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=cctrl
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ actctrl.cxx \
+ linbox.cxx \
+ popbox.cxx \
+ swlbox.cxx
+
+SLOFILES = \
+ $(SLO)$/actctrl.obj \
+ $(SLO)$/linbox.obj \
+ $(SLO)$/popbox.obj \
+ $(SLO)$/swlbox.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/cctrl/popbox.cxx b/sw/source/ui/cctrl/popbox.cxx
new file mode 100644
index 000000000000..bb723a4b1c72
--- /dev/null
+++ b/sw/source/ui/cctrl/popbox.cxx
@@ -0,0 +1,182 @@
+/*************************************************************************
+ *
+ * $RCSfile: popbox.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "swtypes.hxx"
+#include "segmentc.hxx"
+
+#include "popbox.hxx"
+
+
+// --- class SwHelpToolBox ---------------------------------------------
+
+
+SwHelpToolBox::SwHelpToolBox( Window* pParent, const ResId& rResId ) :
+ ToolBox( pParent, rResId )
+{
+}
+
+
+void SwHelpToolBox::MouseButtonDown(const MouseEvent &rEvt)
+{
+ // Zuerst DoubleClick-Link auswerten
+ // Dessen Returnwert entscheidet ueber andere Verarbeitung
+ // Doppelclickhandler nur, wenn nicht auf einen Button geclickt wurde
+ if(rEvt.GetButtons() == MOUSE_RIGHT &&
+ 0 == GetItemId(rEvt.GetPosPixel())) {
+ aRightClickLink.Call((MouseEvent *)&rEvt);
+ return;
+ }
+ else
+ ToolBox::MouseButtonDown(rEvt);
+}
+
+
+long SwHelpToolBox::DoubleClick( ToolBox* pCaller )
+{
+ // kein Doppelklick auf einen Button
+ if(0 == pCaller->GetCurItemId() && aDoubleClickLink.Call(0)) return TRUE;
+ return FALSE;
+}
+
+/*-----------------26.02.94 00:36-------------------
+ dtor ueberladen
+--------------------------------------------------*/
+
+
+SwHelpToolBox::~SwHelpToolBox() {}
+
+
+BOOL SwHelpToolBox::Drop( const DropEvent& rEvt)
+{
+ return GetParent()->Drop(rEvt);
+}
+
+
+BOOL SwHelpToolBox::QueryDrop( DropEvent& rEvt)
+{
+ return GetParent()->QueryDrop(rEvt);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.17 2000/09/18 16:05:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.16 2000/04/11 08:03:01 os
+ UNICODE
+
+ Revision 1.15 1997/11/03 12:09:46 MA
+ precomp entfernt
+
+
+ Rev 1.14 03 Nov 1997 13:09:46 MA
+ precomp entfernt
+
+ Rev 1.13 28 Aug 1996 08:23:42 OS
+ includes
+
+ Rev 1.12 19 Jun 1996 14:57:58 OS
+ +Drop/QueryDrop
+
+ Rev 1.11 16 Apr 1996 17:03:48 OM
+ Unbenutzten Ctor entfernt
+
+ Rev 1.10 24 Nov 1995 16:57:38 OM
+ PCH->PRECOMPILED
+
+ Rev 1.9 07 Jul 1995 09:27:26 OM
+ Mouse_Contextmenu entfernt
+
+ Rev 1.8 06 Jul 1995 22:52:36 ER
+ Hack wg. MOUSE_CONTEXTMENU
+
+ Rev 1.7 09 Mar 1995 14:46:30 MA
+ Aufgeraeumt
+
+ Rev 1.6 04 Mar 1995 23:14:18 ER
+ Help::EnableBalloonMode() hammernichmehr
+
+ Rev 1.5 25 Jan 1995 17:13:58 OS
+ Timerinstrumentierung
+
+ Rev 1.4 09 Jan 1995 16:24:12 ER
+ del: initui hxx
+
+ Rev 1.3 25 Oct 1994 14:55:16 ER
+ add: PCH
+
+ Rev 1.2 19 Oct 1994 13:14:08 MA
+ Syntax
+
+ Rev 1.1 19 Oct 1994 12:21:12 MA
+ SV-ChangeXXX -> SetXXX.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/cctrl/swlbox.cxx b/sw/source/ui/cctrl/swlbox.cxx
new file mode 100644
index 000000000000..3328dd6176fd
--- /dev/null
+++ b/sw/source/ui/cctrl/swlbox.cxx
@@ -0,0 +1,622 @@
+/*************************************************************************
+ *
+ * $RCSfile: swlbox.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _DEBUG_HXX //autogen
+#include <tools/debug.hxx>
+#endif
+#ifndef _UNOTOOLS_CHARCLASS_HXX
+#include <unotools/charclass.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWLBOX_HXX
+#include <swlbox.hxx>
+#endif
+
+
+SV_IMPL_PTRARR(SwEntryLst, SwBoxEntry*)
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ein ListboxElement
+ --------------------------------------------------------------------*/
+
+
+SwBoxEntry::SwBoxEntry() :
+ bModified(FALSE),
+ bNew(FALSE),
+ nId(LISTBOX_APPEND)
+{
+}
+
+
+SwBoxEntry::SwBoxEntry(const String& aNam, USHORT nIdx) :
+ bModified(FALSE),
+ bNew(FALSE),
+ aName(aNam),
+ nId(nIdx)
+{
+}
+
+
+SwBoxEntry::SwBoxEntry(const SwBoxEntry& rOld) :
+ aName(rOld.aName),
+ nId(rOld.nId),
+ bNew(rOld.bNew),
+ bModified(rOld.bModified)
+{
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+/*SwListBox::SwListBox(Window* pParent, const ResId& rId):
+ ListBox(pParent, rId)
+{
+ DBG_ASSERT( 0 == (ListBox::GetStyle() & WB_SORT), "NIE sortiert aus der Resource lesen!" );
+ // falls eine Liste ueber die Resource gelesen wurde, die interne
+ // entsprechend updaten
+ USHORT nCnt = ListBox::GetEntryCount();
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ const SwBoxEntry* pTmp = new SwBoxEntry( ListBox::GetEntry( n ), n );
+ aEntryLst.Insert( pTmp, n );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Basisklasse Dtor
+ --------------------------------------------------------------------*/
+
+
+/*SwListBox::~SwListBox()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Listen loeschen und Anzeige loeschen
+ --------------------------------------------------------------------*/
+
+
+/*void SwListBox::Clear()
+{
+ ListBox::Clear();
+ aEntryLst.DeleteAndDestroy( 0, aEntryLst.Count() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rund um die Entries
+ --------------------------------------------------------------------*/
+
+
+/*const SwBoxEntry& SwListBox::GetEntry(USHORT nPos) const
+{
+ if( nPos < aEntryLst.Count() )
+ return *aEntryLst[ nPos ];
+
+ return aDefault;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: aktullen Eintrag zurueckgeben
+ --------------------------------------------------------------------*/
+
+
+/*const SwBoxEntry& SwListBox::GetSelectEntry() const
+{
+ USHORT nPos = ListBox::GetSelectEntryPos();
+ if( nPos < aEntryLst.Count() )
+ return *aEntryLst[ nPos ];
+
+ return aDefault;
+}
+
+
+void SwListBox::RemoveEntry( USHORT nPos )
+{
+ if( nPos < aEntryLst.Count() )
+ {
+ aEntryLst.DeleteAndDestroy( nPos, 1 );
+ ListBox::RemoveEntry( nPos );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Eintrag in die ListBox aufnehmen
+ --------------------------------------------------------------------*/
+
+
+/*void SwListBox::InsertEntry( const SwBoxEntry& rEntry, USHORT nPos )
+{
+ if( nPos >= aEntryLst.Count() )
+ nPos = aEntryLst.Count();
+
+ SwBoxEntry* pEntry = new SwBoxEntry( rEntry );
+ ListBox::InsertEntry( pEntry->aName, nPos );
+ aEntryLst.C40_INSERT( SwBoxEntry, pEntry, nPos );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sortiert einfuegen
+ --------------------------------------------------------------------*/
+
+
+/*void SwListBox::InsertEntrySort( const SwBoxEntry& rEntry )
+{
+ USHORT nPos;
+ if( !SeekEntry( rEntry, &nPos ) )
+ {
+ SwBoxEntry* pEntry = new SwBoxEntry( rEntry );
+ ListBox::InsertEntry( pEntry->aName, nPos );
+ aEntryLst.C40_INSERT( SwBoxEntry, pEntry, nPos );
+ }
+}
+
+
+BOOL SwListBox::SeekEntry( const SwBoxEntry& rEntry, USHORT* pPos )
+{
+ register USHORT nO = aEntryLst.Count(), nM, nU = 0;
+ if( nO > 0 )
+ {
+ nO--;
+ while( nU <= nO )
+ {
+ nM = nU + ( nO - nU ) / 2;
+ StringCompare eCmp = aEntryLst[ nM ]->aName.ICompare( rEntry.aName );
+ if( COMPARE_EQUAL == eCmp )
+ {
+ if( pPos ) *pPos = nM;
+ return TRUE;
+ }
+ else if( COMPARE_GREATER == eCmp )
+ nU = nM + 1;
+ else if( nM == 0 )
+ break;
+ else
+ nO = nM - 1;
+ }
+ }
+ if( pPos ) *pPos = nU;
+ return FALSE;
+}
+
+/* */
+
+
+SwComboBox::SwComboBox(Window* pParent, const ResId& rId, USHORT nStyleBits ):
+ ComboBox(pParent, rId),
+ nStyle(nStyleBits)
+{
+ // Verwaltung fuer die Stringlist aus der Resource aufbauen
+ USHORT nSize = GetEntryCount();
+ for( USHORT i=0; i < nSize; ++i )
+ {
+ const SwBoxEntry* pTmp = new SwBoxEntry(ComboBox::GetEntry(i), i);
+ aEntryLst.Insert(pTmp, aEntryLst.Count() );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Basisklasse Dtor
+ --------------------------------------------------------------------*/
+
+
+SwComboBox::~SwComboBox()
+{
+// das erledigen die Listen doch schon selbst im DTOR!
+// aEntryLst.DeleteAndDestroy(0, aEntryLst.Count());
+// aDelEntryLst.DeleteAndDestroy(0, aDelEntryLst.Count());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: neue Eintraege verwalten
+ --------------------------------------------------------------------*/
+
+
+void SwComboBox::InsertNewEntry(const SwBoxEntry& rEntry)
+{
+ SwBoxEntry* pNew = new SwBoxEntry(rEntry);
+ pNew->bNew = TRUE;
+ InsertSorted(pNew);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Eintrag in die ComboBox aufnehmen
+ --------------------------------------------------------------------*/
+
+
+void SwComboBox::InsertEntry(const SwBoxEntry& rEntry)
+{
+ InsertSorted(new SwBoxEntry(rEntry));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Eintrag aus der Liste loeschen
+ --------------------------------------------------------------------*/
+
+
+void SwComboBox::RemoveEntry(USHORT nPos)
+{
+ if(nPos >= aEntryLst.Count())
+ return;
+
+ // Altes Element austragen
+ SwBoxEntry* pEntry = aEntryLst[nPos];
+ aEntryLst.Remove(nPos, 1);
+ ComboBox::RemoveEntry(nPos);
+
+ // keine neuen Eintraege in die Liste mit aufnehmen
+ if(pEntry->bNew)
+ return;
+
+ // in DeleteListe eintragen
+ aDelEntryLst.C40_INSERT(SwBoxEntry, pEntry, aDelEntryLst.Count());
+}
+
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Position by Name
+ --------------------------------------------------------------------*/
+
+USHORT SwComboBox::GetEntryPos(const SwBoxEntry& rEntry) const
+{
+ return ComboBox::GetEntryPos(rEntry.aName);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rund um die Entries
+ --------------------------------------------------------------------*/
+
+
+const SwBoxEntry& SwComboBox::GetEntry(USHORT nPos) const
+{
+ if(nPos < aEntryLst.Count())
+ return *aEntryLst[nPos];
+
+ return aDefault;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: geloeschte Eintraege
+ --------------------------------------------------------------------*/
+
+
+USHORT SwComboBox::GetRemovedCount() const
+{
+ return aDelEntryLst.Count();
+}
+
+
+const SwBoxEntry& SwComboBox::GetRemovedEntry(USHORT nPos) const
+{
+ if(nPos < aDelEntryLst.Count())
+ return *aDelEntryLst[nPos];
+
+ return aDefault;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Neue Entries begutachten
+ --------------------------------------------------------------------*/
+
+
+USHORT SwComboBox::GetNewCount() const
+{
+ USHORT nNew = 0;
+ USHORT nSize = aEntryLst.Count();
+ for(USHORT i=0; i < nSize; ++i)
+ if(aEntryLst[i]->bNew)
+ nNew++;
+
+ return nNew;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Alle neuen Eintraege ueberpruefen
+ --------------------------------------------------------------------*/
+
+
+const SwBoxEntry& SwComboBox::GetNewEntry(USHORT nPos) const
+{
+ USHORT nSize = aEntryLst.Count();
+ USHORT nNew = 0;
+
+ for(USHORT i=0; i < nSize; ++i)
+ if( aEntryLst[i]->bNew && nNew++ == nPos )
+ return *aEntryLst[i];
+
+ return aDefault;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sortiert einfuegen
+ --------------------------------------------------------------------*/
+
+
+void SwComboBox::InsertSorted(SwBoxEntry* pEntry)
+{
+ ComboBox::InsertEntry(pEntry->aName);
+ USHORT nPos = ComboBox::GetEntryPos(pEntry->aName);
+ aEntryLst.C40_INSERT(SwBoxEntry, pEntry, nPos);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Je nach Option bestimmte Zeichen ausblenden
+ --------------------------------------------------------------------*/
+
+
+void SwComboBox::KeyInput( const KeyEvent& rKEvt )
+{
+ USHORT nChar = rKEvt.GetCharCode();
+
+ if(nStyle & CBS_FILENAME)
+ {
+#ifdef MAC
+ if(nChar == ':')
+ return;
+#elif defined UNX
+ if(nChar == '/' || nChar == ' ' )
+ return;
+#else
+ if(nChar == ':' || nChar == '\\' || nChar == '.' || nChar == ' ')
+ return;
+#endif
+ }
+ ComboBox::KeyInput(rKEvt);
+}
+
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Text nach Option konvertieren
+ --------------------------------------------------------------------*/
+
+
+String SwComboBox::GetText() const
+{
+ String aTxt( ComboBox::GetText() );
+
+ if(nStyle & CBS_LOWER)
+ GetAppCharClass().toLower( aTxt );
+ else if( nStyle & CBS_UPPER )
+ GetAppCharClass().toUpper( aTxt );
+
+ return aTxt;
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.52 2000/09/18 16:05:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.51 2000/08/30 16:45:51 jp
+ use CharClass instead of international
+
+ Revision 1.50 2000/04/11 08:03:01 os
+ UNICODE
+
+ Revision 1.49 2000/02/11 14:43:21 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.48 1997/11/03 12:09:46 MA
+ precomp entfernt
+
+
+ Rev 1.47 03 Nov 1997 13:09:46 MA
+ precomp entfernt
+
+ Rev 1.46 08 Aug 1997 17:29:48 OM
+ Headerfile-Umstellung
+
+ Rev 1.45 06 Aug 1997 11:28:38 TRI
+ GetpApp statt pApp
+
+ Rev 1.44 23 Apr 1997 10:39:28 OS
+ ResId const
+
+ Rev 1.43 07 Nov 1996 11:47:52 JP
+ ASSERT korrigiert
+
+ Rev 1.42 05 Nov 1996 15:36:36 JP
+ SwListBox: Sortierung selbst uebernommen; ueberfluessiges entfernt/aufgeraeumt
+
+ Rev 1.41 28 Aug 1996 08:23:42 OS
+ includes
+
+ Rev 1.40 16 Aug 1996 13:24:00 TRI
+ C40_INSERT statt Insert
+
+ Rev 1.39 25 Jun 1996 17:46:54 HJS
+ include tlintl.hxx
+
+ Rev 1.38 16 Apr 1996 16:46:10 OM
+ SwEventListBox entfernt
+
+ Rev 1.37 24 Nov 1995 16:57:38 OM
+ PCH->PRECOMPILED
+
+ Rev 1.36 17 Nov 1995 13:21:36 MA
+ Segmentierung
+
+ Rev 1.35 27 Jul 1995 10:44:42 mk
+ an SCC4.0.1a angepasst (MDA)
+
+ Rev 1.34 20 Mar 1995 19:03:20 OS
+ unbenutzte Funktionen entfernt
+
+ Rev 1.33 15 Dec 1994 20:21:28 SWG
+ *ARR* Ersetzungen, svmem, __far_data etc.
+
+ Rev 1.32 25 Oct 1994 14:55:22 ER
+ add: PCH
+
+ Rev 1.31 10 May 1994 13:48:44 MS
+ boeser Fehler! bei sortierten SwlBoxen kam der Zugriff auf die EntryListe durcheinander
+
+ Rev 1.30 06 May 1994 13:17:28 MS
+ GetSelectEntryPos geandert
+
+ Rev 1.29 02 Mar 1994 17:22:56 MS
+ mit EntryPos
+
+ Rev 1.28 02 Mar 1994 15:46:52 VB
+ ListBox mit MouseButtonDown-Handler
+
+ Rev 1.27 26 Feb 1994 02:59:36 ER
+ virt. dtor mit export
+
+ Rev 1.26 23 Feb 1994 12:07:04 ER
+ SEXPORT
+
+ Rev 1.25 17 Feb 1994 08:35:06 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.24 16 Feb 1994 19:56:36 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.23 16 Feb 1994 15:41:54 MI
+ Pragmas zurechtgerueckt
+
+ Rev 1.22 28 Jan 1994 11:36:26 MI
+ TCOV() entfernt, SW_... nach SEG_... umbenannt
+
+ Rev 1.21 13 Jan 1994 08:33:26 MI
+ Segmentierung per #define ermoeglicht
+
+ Rev 1.20 10 Jan 1994 09:38:36 MS
+ UNX - Fehler behoben
+
+ Rev 1.19 09 Jan 1994 21:06:46 MI
+ Provisorische Segmentierung
+
+ Rev 1.18 06 Jan 1994 13:14:38 MS
+ Default-Options geaendert
+
+ Rev 1.17 08 Dec 1993 11:21:38 MS
+ SwBoxEntry() setz nId auf LISTBOX_ENTRY_NOTFOUND
+
+ Rev 1.16 06 Dec 1993 11:47:10 VB
+ Upper/Lower konvertieren ueber International
+
+ Rev 1.15 24 Sep 1993 18:50:02 VB
+ Segmentierung
+
+ Rev 1.14 24 Sep 1993 08:59:44 MS
+ Beschraenkung der Eingabe geaendert
+
+ Rev 1.13 23 Sep 1993 17:33:46 MS
+ ComboBox Namen im Edit begrenzen
+
+ Rev 1.12 27 Apr 1993 08:18:20 OK
+ NEU: #pragma hdrstop
+
+ Rev 1.11 16 Feb 1993 08:52:18 MS
+ fuer m800
+
+ Rev 1.10 10 Feb 1993 19:42:08 VB
+ Umstellung SV21
+
+ Rev 1.9 06 Jan 1993 09:15:30 OK
+ Anpassung an M70
+
+ Rev 1.8 02 Dec 1992 17:39:46 MS
+ neu SwMultiComboBox
+
+ Rev 1.7 27 Nov 1992 16:04:52 MS
+ RemoveEntry() korrigiert
+
+ Rev 1.6 27 Nov 1992 15:55:48 MS
+ mit InitComboBox
+
+ Rev 1.5 27 Nov 1992 15:42:52 MS
+ Init erweitert
+
+ Rev 1.4 27 Nov 1992 14:42:38 MS
+ mit const SwBoxEntr& Returns
+
+ Rev 1.3 27 Nov 1992 13:43:54 MS
+ GetCurEntry gerichtet
+
+ Rev 1.2 27 Nov 1992 11:40:52 MS
+ neu GetEntryPos
+
+ Rev 1.1 27 Nov 1992 11:30:08 MS
+ neu InitFromResource
+
+ Rev 1.0 27 Nov 1992 10:49:58 MS
+ Initial revision.
+
+ ------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/chrdlg/break.cxx b/sw/source/ui/chrdlg/break.cxx
new file mode 100644
index 000000000000..f3d7e0761fd6
--- /dev/null
+++ b/sw/source/ui/chrdlg/break.cxx
@@ -0,0 +1,408 @@
+/*************************************************************************
+ *
+ * $RCSfile: break.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _BREAK_HXX
+#include <break.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _BREAK_HRC
+#include <break.hrc>
+#endif
+#ifndef _CHRDLG_HRC
+#include <chrdlg.hrc>
+#endif
+
+
+void SwBreakDlg::Apply()
+{
+ String aTemplate( aEmptyStr );
+ BOOL bTemplate = FALSE;
+ if(aLineBtn.IsChecked())
+ {
+ rSh.InsertLineBreak();
+ }
+ else if(aColumnBtn.IsChecked())
+ {
+ rSh.InsertColumnBreak();
+ }
+ else if(aPageBtn.IsChecked())
+ {
+ rSh.StartAllAction();
+ const USHORT nPos = aPageCollBox.GetSelectEntryPos();
+
+ // auf Position 0 steht 'Ohne' Seitenvorlage.
+ if(0 != nPos && LISTBOX_ENTRY_NOTFOUND != nPos)
+ {
+ aTemplate = aPageCollBox.GetSelectEntry();
+ USHORT nPgNum = aPageNumBox.IsChecked() ? (USHORT)aPageNumEdit.GetValue()
+ : 0;
+ rSh.InsertPageBreak(&aTemplate, nPgNum);
+ bTemplate = TRUE;
+ }
+ else
+ rSh.InsertPageBreak();
+ rSh.EndAllAction();
+ }
+}
+
+
+IMPL_LINK_INLINE_START( SwBreakDlg, ClickHdl, void *, EMPTYARG )
+{
+ CheckEnable();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwBreakDlg, ClickHdl, void *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler fuer Aendern Seitenummer
+------------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwBreakDlg, PageNumHdl, CheckBox *, pBox )
+{
+ if(pBox->IsChecked()) aPageNumEdit.SetValue(1);
+ else aPageNumEdit.SetText(aEmptyStr);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwBreakDlg, PageNumHdl, CheckBox *, pBox )
+
+/*------------------------------------------------------------------------
+ Beschreibung: Durch Aendern der Seitennummer wird die Checkbox gecheckt.
+------------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwBreakDlg, PageNumModifyHdl, Edit *, EMPTYARG )
+{
+ aPageNumBox.Check();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwBreakDlg, PageNumModifyHdl, Edit *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung: Ok-Handler;
+ prueft, ob die Seitenummer nPage eine legale Seitennummer
+ ist (linke Seiten mit geraden Nummern etc. bei einer Seitenvorlage
+ mit wechselnden Seiten)
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwBreakDlg, OkHdl, Button *, EMPTYARG )
+{
+ if(aPageNumBox.IsChecked()) {
+ // wenn unterschiedliche Seitenvorlagen, testen auf Gueltigkeit
+ const USHORT nPos = aPageCollBox.GetSelectEntryPos();
+ // auf Position 0 steht 'Ohne'.
+ const SwPageDesc *pPageDesc;
+ if ( 0 != nPos && LISTBOX_ENTRY_NOTFOUND != nPos )
+ pPageDesc = rSh.FindPageDescByName( aPageCollBox.GetSelectEntry(),
+ TRUE );
+ else
+ pPageDesc = &rSh.GetPageDesc(rSh.GetCurPageDesc());
+
+ ASSERT(pPageDesc, Seitenvorlage nicht gefunden.);
+ const USHORT nUserPage = USHORT(aPageNumEdit.GetValue());
+ BOOL bOk = TRUE;
+ switch(pPageDesc->GetUseOn()) {
+ case PD_MIRROR:
+ case PD_ALL: break;
+ case PD_LEFT: bOk = 0 == nUserPage % 2; break;
+ case PD_RIGHT: bOk = nUserPage % 2; break;
+ }
+ if(!bOk) {
+ InfoBox(this, SW_RES(MSG_ILLEGAL_PAGENUM)).Execute();
+ aPageNumEdit.GrabFocus();
+ return 0;
+ }
+ }
+ EndDialog(RET_OK);
+ return 0;
+}
+
+SwBreakDlg::SwBreakDlg( Window *pParent, SwWrtShell &rS ) :
+
+ SvxStandardDialog( pParent,SW_RES(DLG_BREAK) ),
+
+ rSh(rS),
+ aLineBtn(this,SW_RES(RB_LINE)),
+ aColumnBtn(this,SW_RES(RB_COL)),
+ aPageBtn(this,SW_RES(RB_PAGE)),
+ aPageCollText(this, SW_RES(FT_COLL)),
+ aPageCollBox(this, SW_RES(LB_COLL)),
+ aPageNumBox(this, SW_RES(CB_PAGENUM)),
+ aPageNumEdit(this, SW_RES(ED_PAGENUM)),
+ aBreakFrm(this,SW_RES(GB_BREAK)),
+ aOkBtn(this,SW_RES(BT_OK)),
+ aCancelBtn(this,SW_RES(BT_CANCEL)),
+ aHelpBtn(this,SW_RES(BT_HELP)),
+ bHtmlMode(0 != ::GetHtmlMode(rS.GetView().GetDocShell()))
+{
+ Link aLk = LINK(this,SwBreakDlg,ClickHdl);
+ aPageBtn.SetClickHdl( aLk );
+ aLineBtn.SetClickHdl( aLk );
+ aColumnBtn.SetClickHdl( aLk );
+ aPageCollBox.SetSelectHdl( aLk );
+
+ aOkBtn.SetClickHdl(LINK(this,SwBreakDlg,OkHdl));
+ aPageNumBox.SetClickHdl(LINK(this,SwBreakDlg,PageNumHdl));
+ aPageNumEdit.SetModifyHdl(LINK(this,SwBreakDlg,PageNumModifyHdl));
+
+
+ // Einfuegen der vorhandenen Seitenvorlagen in die Listbox
+ const International& rInt = Application::GetAppInternational();
+ const USHORT nCount = rSh.GetPageDescCnt();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const SwPageDesc &rPageDesc = rSh.GetPageDesc(i);
+ ::InsertStringSorted(rPageDesc.GetName(), aPageCollBox, TRUE, rInt);
+ }
+
+ String aFmtName;
+ for(i = RES_POOLPAGE_BEGIN; i <= RES_POOLPAGE_REGISTER; ++i)
+ if(LISTBOX_ENTRY_NOTFOUND == aPageCollBox.GetEntryPos(
+ GetDocPoolNm( i, aFmtName )))
+ ::InsertStringSorted(aFmtName, aPageCollBox, TRUE, rInt);
+
+ CheckEnable();
+ aPageNumEdit.SetText( aEmptyStr );
+ FreeResource();
+}
+
+
+void SwBreakDlg::CheckEnable()
+{
+ BOOL bEnable = TRUE;
+ if ( bHtmlMode )
+ {
+ aColumnBtn .Enable(FALSE);
+ aPageCollBox.Enable(FALSE);
+ bEnable = FALSE;
+ }
+ else if(rSh.GetFrmType(0,TRUE)
+ & (FRMTYPE_FLY_ANY | FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FOOTNOTE))
+ {
+ aPageBtn.Enable(FALSE);
+ if(aPageBtn.IsChecked())
+ aLineBtn.Check(TRUE);
+ bEnable = FALSE;
+ }
+ const BOOL bPage = aPageBtn.IsChecked();
+ aPageCollText.Enable( bPage );
+ aPageCollBox.Enable ( bPage );
+
+ bEnable &= bPage;
+ if ( bEnable )
+ {
+ // auf Position 0 steht 'Ohne' Seitenvorlage.
+ const USHORT nPos = aPageCollBox.GetSelectEntryPos();
+ if ( 0 == nPos || LISTBOX_ENTRY_NOTFOUND == nPos )
+ bEnable = FALSE;
+ }
+ aPageNumBox .Enable(bEnable);
+ aPageNumEdit.Enable(bEnable);
+}
+
+
+SwBreakDlg::~SwBreakDlg() {}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.62 2000/09/18 16:05:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.61 2000/08/25 10:12:26 os
+ #77214# style listbox sorted
+
+ Revision 1.60 2000/07/26 16:32:15 jp
+ use the new function GetDocPoolNm to get the collectionames
+
+ Revision 1.59 2000/05/26 07:21:28 os
+ old SW Basic API Slots removed
+
+ Revision 1.58 2000/05/10 11:55:37 os
+ Basic API removed
+
+ Revision 1.57 2000/02/11 14:43:29 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.56 1999/06/18 13:45:28 OS
+ #66704# wrong fix fixed
+
+
+ Rev 1.55 18 Jun 1999 15:45:28 OS
+ #66704# wrong fix fixed
+
+ Rev 1.54 09 Jun 1999 08:47:48 OS
+ #66704# no page breaks in header/footer/frame
+
+ Rev 1.53 05 Feb 1999 17:44:20 JP
+ Task #61467#/#61014#: neu FindPageDescByName
+
+ Rev 1.52 21 Nov 1997 12:24:34 MA
+ includes
+
+ Rev 1.51 03 Nov 1997 13:10:20 MA
+ precomp entfernt
+
+ Rev 1.50 30 Jul 1997 18:15:32 HJS
+ includes
+
+ Rev 1.49 23 Jul 1997 20:22:14 HJS
+ includes
+
+ Rev 1.48 27 Jan 1997 16:14:42 OS
+ HtmlMode wird ueber GetHtmlMode ermittelt
+
+ Rev 1.47 18 Dec 1996 19:07:30 MA
+ fix: richtiges enablen
+
+ Rev 1.46 06 Dec 1996 13:53:20 MA
+ Umbrueche fuer Tabellen
+
+ Rev 1.45 11 Nov 1996 09:16:38 MA
+ ResMgr
+
+ Rev 1.44 10 Oct 1996 13:18:52 OS
+ HtmlMode beruecksichtigen
+
+ Rev 1.43 02 Oct 1996 08:36:16 MA
+ Umstellung Enable/Disable
+
+ Rev 1.42 28 Aug 1996 08:59:06 OS
+ includes
+
+ Rev 1.41 06 Feb 1996 15:18:38 JP
+ Link Umstellung 305
+
+ Rev 1.40 24 Nov 1995 16:57:32 OM
+ PCH->PRECOMPILED
+
+ Rev 1.39 08 Nov 1995 12:47:36 OM
+ Change->Set
+
+ Rev 1.38 23 Oct 1995 17:25:10 OS
+ Umbrueche einfuegen recordable
+
+ Rev 1.37 11 Sep 1995 18:47:40 OM
+ Helpbutton eingefuegt
+
+ Rev 1.36 30 Aug 1995 14:08:52 MA
+ fix: sexport'iert
+
+ Rev 1.35 21 Aug 1995 09:22:06 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.34 05 Apr 1995 09:15:28 JP
+ Benutzung vom Link-Makro eingeschraenkt
+
+ Rev 1.33 25 Oct 1994 15:50:04 ER
+ add: PCH
+
+ Rev 1.32 05 Oct 1994 17:45:56 VB
+ Umbruch freigeschaltet
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/chrdlg/break.hrc b/sw/source/ui/chrdlg/break.hrc
new file mode 100644
index 000000000000..fa0dd2089e9a
--- /dev/null
+++ b/sw/source/ui/chrdlg/break.hrc
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * $RCSfile: break.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define RB_PAGE 1
+#define RB_LINE 2
+#define RB_COL 3
+#define FT_COLL 4
+#define LB_COLL 5
+#define GB_BREAK 6
+#define CB_PAGENUM 7
+#define ED_PAGENUM 8
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+
+
diff --git a/sw/source/ui/chrdlg/ccoll.cxx b/sw/source/ui/chrdlg/ccoll.cxx
new file mode 100644
index 000000000000..e02185f22ab6
--- /dev/null
+++ b/sw/source/ui/chrdlg/ccoll.cxx
@@ -0,0 +1,593 @@
+/*************************************************************************
+ *
+ * $RCSfile: ccoll.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "globals.hrc"
+#include "helpid.h"
+
+
+#ifndef _SFX_STYFITEM_HXX //autogen
+#include <sfx2/styfitem.hxx>
+#endif
+
+#include "uitool.hxx"
+#include "ccoll.hxx"
+#include "fmtcol.hxx"
+#include "hintids.hxx"
+#include "docsh.hxx"
+#include "docstyle.hxx"
+#include "hints.hxx"
+
+#include "chrdlg.hrc"
+#include "ccoll.hrc"
+
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+
+// Globals ******************************************************************
+
+static USHORT __FAR_DATA aPageRg[] = {
+ FN_COND_COLL, FN_COND_COLL,
+ 0
+};
+
+// Achtung im Code wird dieses Array direkt (0, 1, ...) indiziert
+static long nTabs[] =
+ { 2, // Number of Tabs
+ 0, 100
+ };
+
+
+CommandStruct SwCondCollItem::aCmds[] = {
+ PARA_IN_TABLEHEAD, 0,
+ PARA_IN_TABLEBODY, 0,
+ PARA_IN_FRAME, 0,
+ PARA_IN_SECTION, 0,
+ PARA_IN_FOOTENOTE, 0,
+ PARA_IN_ENDNOTE, 0,
+ PARA_IN_HEADER, 0,
+ PARA_IN_FOOTER, 0,
+ PARA_IN_OUTLINE, 0,
+ PARA_IN_OUTLINE, 1,
+ PARA_IN_OUTLINE, 2,
+ PARA_IN_OUTLINE, 3,
+ PARA_IN_OUTLINE, 4,
+ PARA_IN_OUTLINE, 5,
+ PARA_IN_OUTLINE, 6,
+ PARA_IN_OUTLINE, 7,
+ PARA_IN_OUTLINE, 8,
+ PARA_IN_OUTLINE, 9,
+ PARA_IN_LIST, 0,
+ PARA_IN_LIST, 1,
+ PARA_IN_LIST, 2,
+ PARA_IN_LIST, 3,
+ PARA_IN_LIST, 4,
+ PARA_IN_LIST, 5,
+ PARA_IN_LIST, 6,
+ PARA_IN_LIST, 7,
+ PARA_IN_LIST, 8,
+ PARA_IN_LIST, 9
+ };
+
+
+
+TYPEINIT1_AUTOFACTORY(SwCondCollItem, SfxPoolItem)
+
+
+/****************************************************************************
+Page: Ctor
+****************************************************************************/
+
+
+SwCondCollPage::SwCondCollPage(Window *pParent, const SfxItemSet &rSet)
+
+ : SfxTabPage(pParent, SW_RES(TP_CONDCOLL), rSet),
+ aConditionCB( this, SW_RES( CB_CONDITION ) ),
+ aContextFT ( this, SW_RES( FT_CONTEXT ) ),
+ aUsedFT ( this, SW_RES( FT_USED ) ),
+ aTbLinks( this, SW_RES( TB_CONDCOLLS ) ),
+ aStyleFT ( this, SW_RES( FT_STYLE ) ),
+ aStyleLB ( this, SW_RES( LB_STYLE ) ),
+ aFilterLB ( this, SW_RES( LB_FILTER ) ),
+ aRemovePB ( this, SW_RES( PB_REMOVE ) ),
+ aAssignPB ( this, SW_RES( PB_ASSIGN ) ),
+ sNoTmpl ( SW_RES( STR_NOTEMPL ) ),
+ aStrArr ( SW_RES( STR_REGIONS ) ),
+ rSh(::GetActiveView()->GetWrtShell()),
+ pFmt(0),
+ pCmds( SwCondCollItem::GetCmds() ),
+ bNewTemplate(FALSE)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ // Handler installieren
+ aConditionCB.SetClickHdl( LINK(this, SwCondCollPage, OnOffHdl));
+ aTbLinks.SetDoubleClickHdl( LINK(this, SwCondCollPage, AssignRemoveHdl ));
+ aStyleLB.SetDoubleClickHdl( LINK(this, SwCondCollPage, AssignRemoveHdl ));
+ aRemovePB.SetClickHdl( LINK(this, SwCondCollPage, AssignRemoveHdl ));
+ aAssignPB.SetClickHdl( LINK(this, SwCondCollPage, AssignRemoveHdl ));
+ aTbLinks.SetSelectHdl( LINK(this, SwCondCollPage, SelectHdl));
+ aStyleLB.SetSelectHdl( LINK(this, SwCondCollPage, SelectHdl));
+ aFilterLB.SetSelectHdl( LINK(this, SwCondCollPage, SelectHdl));
+
+ aTbLinks.SetWindowBits(WB_HSCROLL|WB_CLIPCHILDREN);
+ aTbLinks.SetSelectionMode( SINGLE_SELECTION );
+ aTbLinks.SetTabs( &nTabs[0], MAP_APPFONT );
+ aTbLinks.Resize(); // OS: Hack fuer richtige Selektion
+ aTbLinks.SetSpaceBetweenEntries( 0 );
+ aTbLinks.SetHelpId(HID_COND_COLL_TABLIST);
+
+ SfxStyleFamilies aFamilies(SW_RES(DLG_STYLE_DESIGNER));
+ const SfxStyleFamilyItem* pFamilyItem;
+ USHORT nCount = aFamilies.Count();
+
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ if(SFX_STYLE_FAMILY_PARA == (USHORT)(pFamilyItem = aFamilies.GetObject(i))->GetFamily())
+ break;
+ }
+
+ const SfxStyleFilter& rFilterList = pFamilyItem->GetFilterList();
+ for( i = 0; i < rFilterList.Count(); ++i)
+ {
+ aFilterLB.InsertEntry(rFilterList.GetObject(i)->aName);
+ USHORT* pFilter = new USHORT(rFilterList.GetObject(i)->nFlags);
+ aFilterLB.SetEntryData(i, pFilter);
+ }
+ aFilterLB.SelectEntryPos(1);
+
+ aTbLinks.Show();
+
+}
+
+/****************************************************************************
+Page: Dtor
+****************************************************************************/
+
+
+__EXPORT SwCondCollPage::~SwCondCollPage()
+{
+ for(USHORT i = 0; i < aFilterLB.GetEntryCount(); ++i)
+ delete (USHORT*)aFilterLB.GetEntryData(i);
+
+}
+
+
+int __EXPORT SwCondCollPage::DeactivatePage(SfxItemSet * pSet)
+{
+ FillItemSet(*pSet);
+
+ return LEAVE_PAGE;
+}
+
+/****************************************************************************
+Page: Factory
+****************************************************************************/
+
+
+SfxTabPage* __EXPORT SwCondCollPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwCondCollPage(pParent, rSet);
+}
+
+/****************************************************************************
+Page: FillItemSet-Overload
+****************************************************************************/
+
+
+BOOL __EXPORT SwCondCollPage::FillItemSet(SfxItemSet &rSet)
+{
+ BOOL bModified = TRUE;
+ SwCondCollItem aCondItem;
+ for(USHORT i = 0; i < aStrArr.Count(); i++)
+ {
+ String sEntry = aTbLinks.GetEntryText(i, 1);
+ aCondItem.SetStyle( &sEntry, i);
+ }
+ rSet.Put(aCondItem);
+ return bModified;
+}
+
+/****************************************************************************
+Page: Reset-Overload
+****************************************************************************/
+
+
+void __EXPORT SwCondCollPage::Reset(const SfxItemSet &rSet)
+{
+ if(bNewTemplate)
+ aConditionCB.Enable();
+ if(RES_CONDTXTFMTCOLL == pFmt->Which())
+ aConditionCB.Check();
+ OnOffHdl(&aConditionCB);
+
+ aTbLinks.Clear();
+
+ SfxStyleSheetBasePool* pPool = rSh.GetView().GetDocShell()->GetStyleSheetPool();
+ pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, SFXSTYLEBIT_ALL);
+ aStyleLB.Clear();
+ const SfxStyleSheetBase* pBase = pPool->First();
+ while( pBase )
+ {
+ if(!pFmt || pBase->GetName() != pFmt->GetName())
+ aStyleLB.InsertEntry(pBase->GetName());
+ pBase = pPool->Next();
+ }
+ aStyleLB.SelectEntryPos(0);
+
+ for( USHORT n = 0; n < aStrArr.Count(); n++)
+ {
+ String aEntry( aStrArr.GetString(n) );
+ aEntry += '\t';
+
+ const SwCollCondition* pCond;
+ if( pFmt && RES_CONDTXTFMTCOLL == pFmt->Which() &&
+ 0 != ( pCond = ((SwConditionTxtFmtColl*)pFmt)->
+ HasCondition( SwCollCondition( 0, pCmds[n].nCnd, pCmds[n].nSubCond ) ) )
+ && pCond->GetTxtFmtColl() )
+ {
+ aEntry += pCond->GetTxtFmtColl()->GetName();
+ }
+
+ SvLBoxEntry* pE = aTbLinks.InsertEntry( aEntry, n );
+ if(0 == n)
+ aTbLinks.Select(pE);
+ }
+
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+USHORT* __EXPORT SwCondCollPage::GetRanges()
+{
+ return aPageRg;
+}
+
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+IMPL_LINK( SwCondCollPage, OnOffHdl, CheckBox*, pBox )
+{
+ const BOOL bEnable = pBox->IsChecked();
+ aContextFT.Enable( bEnable );
+ aUsedFT .Enable( bEnable );
+ aTbLinks .Enable( bEnable );
+ aStyleFT .Enable( bEnable );
+ aStyleLB .Enable( bEnable );
+ aFilterLB .Enable( bEnable );
+ aRemovePB .Enable( bEnable );
+ aAssignPB .Enable( bEnable );
+ if( bEnable )
+ SelectHdl(0);
+ return 0;
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+IMPL_LINK( SwCondCollPage, AssignRemoveHdl, PushButton*, pBtn)
+{
+ SvLBoxEntry* pE = aTbLinks.FirstSelected();
+ ULONG nPos;
+ if( !pE || LISTBOX_ENTRY_NOTFOUND ==
+ ( nPos = aTbLinks.GetModel()->GetAbsPos( pE ) ) )
+ {
+ ASSERT( pE, "wo kommt der leere Eintrag her?" );
+ return 0;
+ }
+
+ String sSel = aStrArr.GetString( USHORT(nPos) );
+ sSel += '\t';
+
+ const BOOL bAssEnabled = pBtn != &aRemovePB && aAssignPB.IsEnabled();
+ aAssignPB.Enable( !bAssEnabled );
+ aRemovePB.Enable( bAssEnabled );
+ if ( bAssEnabled )
+ sSel += aStyleLB.GetSelectEntry();
+
+ aTbLinks.SetUpdateMode(FALSE);
+ aTbLinks.GetModel()->Remove(pE);
+ pE = aTbLinks.InsertEntry(sSel, nPos);
+ aTbLinks.Select(pE);
+ aTbLinks.MakeVisible(pE);
+ aTbLinks.SetUpdateMode(TRUE);
+ return 0;
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
+{
+ if(pBox == &aFilterLB)
+ {
+ aStyleLB.Clear();
+ USHORT nSearchFlags = pBox->GetSelectEntryPos();
+ nSearchFlags = *(USHORT*)aFilterLB.GetEntryData(nSearchFlags);
+ SfxStyleSheetBasePool* pPool = rSh.GetView().GetDocShell()->GetStyleSheetPool();
+ pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, nSearchFlags);
+ const SfxStyleSheetBase* pBase = pPool->First();
+ while( pBase )
+ {
+ if(!pFmt || pBase->GetName() != pFmt->GetName())
+ aStyleLB.InsertEntry(pBase->GetName());
+ pBase = pPool->Next();
+ }
+ aStyleLB.SelectEntryPos(0);
+ SelectHdl(&aStyleLB);
+
+ }
+ else
+ {
+ String sTbEntry;
+ SvLBoxEntry* pE = aTbLinks.FirstSelected();
+ if(pE)
+ sTbEntry = aTbLinks.GetEntryText(pE);
+ sTbEntry = sTbEntry.GetToken(1, '\t');
+ String sStyle = aStyleLB.GetSelectEntry();
+
+ aAssignPB.Enable( sStyle != sTbEntry && aConditionCB.IsChecked() );
+
+ if(pBox != &aStyleLB)
+ aRemovePB.Enable( aConditionCB.IsChecked() && sTbEntry.Len() );
+ }
+ return 0;
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+void SwCondCollPage::SetCollection( SwFmt* pFormat, BOOL bNew )
+{
+ pFmt = pFormat;
+ bNewTemplate = bNew;
+}
+
+
+/****************************************************************************
+ Item fuer den Transport der Bedingungstabelle
+****************************************************************************/
+
+
+SwCondCollItem::SwCondCollItem(USHORT nWhich ) :
+ SfxPoolItem(nWhich)
+{
+
+}
+/****************************************************************************
+
+****************************************************************************/
+
+
+SwCondCollItem::~SwCondCollItem()
+{
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+SfxPoolItem* SwCondCollItem::Clone( SfxItemPool *pPool ) const
+{
+ return new SwCondCollItem(*this);
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+int SwCondCollItem::operator==( const SfxPoolItem& rItem) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rItem), "unterschiedliche Typen" );
+ BOOL bReturn = TRUE;
+ for(USHORT i = 0; i < COND_COMMAND_COUNT; i++)
+ if(sStyles[i] != ((SwCondCollItem&)rItem).sStyles[i])
+ {
+ bReturn = FALSE;
+ break;
+ }
+
+ return bReturn;
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+const String& SwCondCollItem::GetStyle(USHORT nPos) const
+{
+#ifndef IRIX
+ return nPos < COND_COMMAND_COUNT ? sStyles[nPos] : aEmptyStr;
+#else
+ return nPos < COND_COMMAND_COUNT ? (String)sStyles[nPos] : aEmptyStr;
+#endif
+}
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+void SwCondCollItem::SetStyle(const String* pStyle, USHORT nPos)
+{
+ if( nPos < COND_COMMAND_COUNT )
+#ifndef IRIX
+ sStyles[nPos] = pStyle ? *pStyle : aEmptyStr;
+#else
+ sStyles[nPos] = pStyle ? (String)*pStyle : aEmptyStr;
+#endif
+}
+
+
+/****************************************************************************
+
+****************************************************************************/
+
+
+const CommandStruct* SwCondCollItem::GetCmds()
+{
+ return aCmds;
+}
+
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.21 2000/09/18 16:05:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.20 2000/04/20 12:54:31 os
+ GetName() returns String&
+
+ Revision 1.19 2000/02/11 14:43:33 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.18 1999/05/06 07:52:58 OS
+ #65847# Font an der TabListBox nicht aendern
+
+
+ Rev 1.17 06 May 1999 09:52:58 OS
+ #65847# Font an der TabListBox nicht aendern
+
+ Rev 1.16 10 Jul 1998 13:46:30 MH
+ internal comp.err
+
+ Rev 1.15 21 Jan 1998 17:57:38 JP
+ neu: neue Bedinung - Endnote
+
+ Rev 1.14 17 Jan 1998 09:45:14 OS
+ Numerierung und Gliederung bis 10.
+
+ Rev 1.13 30 Sep 1997 15:53:30 TJ
+ include
+
+ Rev 1.12 01 Sep 1997 13:25:28 OS
+ DLL-Umstellung
+
+ Rev 1.11 09 Jul 1997 17:20:50 HJS
+ includes
+
+ Rev 1.10 06 Jun 1997 16:25:54 OS
+ im Reset ::Clear auch an der Vorlagen-Box rufen
+
+ Rev 1.9 05 Feb 1997 10:18:52 OM
+ FillItemSet in DeactivatePage rufen
+
+ Rev 1.8 14 Nov 1996 12:44:36 OS
+ DLG_STYLE_DESIGNER
+
+ Rev 1.7 14 Nov 1996 08:39:04 SWG
+ neu: RES_TEMPLATE_FAMILIES
+
+ Rev 1.6 11 Nov 1996 09:16:40 MA
+ ResMgr
+
+ Rev 1.5 02 Oct 1996 08:35:56 MA
+ Umstellung Enable/Disable
+
+ Rev 1.4 25 Sep 1996 11:20:32 PL
+ IRIX
+
+ Rev 1.3 23 Sep 1996 08:23:44 OS
+ keine GroupBox fuer Bedingungs-TabPage
+
+ Rev 1.2 18 Sep 1996 19:01:38 OS
+ neu: HScrollBars, Disable/Enable-Bug behoben
+
+ Rev 1.1 17 Sep 1996 16:19:18 OS
+ UI-Anpassung bedingte Vorlagen
+
+ Rev 1.0 06 Sep 1996 19:01:44 JP
+ TabPage fuer bedingte Vorlagen
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/chrdlg/ccoll.hrc b/sw/source/ui/chrdlg/ccoll.hrc
new file mode 100644
index 000000000000..a327ff50dfd1
--- /dev/null
+++ b/sw/source/ui/chrdlg/ccoll.hrc
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ * $RCSfile: ccoll.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _CCOLL_HRC
+#define _CCOLL_HRC
+
+// #define ******************************************************************
+
+#define CB_CONDITION 1
+#define GB_CONDITION 2
+#define FT_CONTEXT 3
+#define FT_USED 4
+#define TB_CONDCOLLS 5
+#define FT_STYLE 6
+#define LB_STYLE 7
+#define LB_FILTER 8
+#define PB_REMOVE 9
+#define PB_ASSIGN 10
+#define STR_REGIONS 11
+#define STR_NOTEMPL 12
+
+
+// ********************************************************************** EOF
+
+#endif
+
diff --git a/sw/source/ui/chrdlg/ccoll.src b/sw/source/ui/chrdlg/ccoll.src
new file mode 100644
index 000000000000..c198463d9b0c
--- /dev/null
+++ b/sw/source/ui/chrdlg/ccoll.src
@@ -0,0 +1,949 @@
+/*************************************************************************
+ *
+ * $RCSfile: ccoll.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "globals.hrc"
+#include "chrdlg.hrc"
+#include "ccoll.hrc"
+#include "helpid.h"
+ // TabPage ******************************************************************
+TabPage TP_CONDCOLL
+{
+ HelpID = HID_COND_COLL ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ CheckBox CB_CONDITION
+ {
+ Pos = MAP_APPFONT ( 12 , 10 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "~Als bedingte Vorlage" ;
+ Text [ English ] = "~As conditioned Style" ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Text [ english_us ] = "~Conditional Style" ;
+ Text [ italian ] = "Come modello condizionato" ;
+ Text [ spanish ] = "C~omo estilo condicional" ;
+ Text [ french ] = "Co~mme style conditionnel" ;
+ Text [ dutch ] = "~Als conditioneel opmaakprofiel" ;
+ Text [ swedish ] = "som villkorlig m~all" ;
+ Text [ danish ] = "Som betinget typografi" ;
+ Text [ portuguese_brazilian ] = "~Als bedingte Vorlage" ;
+ Text [ portuguese ] = "~Estilo condicional" ;
+ Text[ chinese_simplified ] = "µ±×÷ÓÐÌõ¼þµÄÑùʽ(~S)";
+ Text[ russian ] = "Êàê óñëîâíûé ñòèëü";
+ Text[ polish ] = "Jako warunkowy szablon";
+ Text[ japanese ] = "ðŒ•t‚«½À²Ù‚Æ‚µ‚Ä(~S)";
+ Text[ chinese_traditional ] = "·í§@¦³±ø¥óªº¼Ë¦¡(~S)";
+ Text[ arabic ] = "ßäãØ ãÔÑæØ";
+ Text[ greek ] = "Ùò åîáñôþìåíï ðñüôõðï";
+ Text[ korean ] = "Á¶°ÇÀû À¯Çü(~C)";
+ Text[ turkish ] = "~Koþullu biçim olarak";
+ Text[ language_user1 ] = "\"Vorlagen\" Styles are capitalized. EM15.5.00";
+ };
+ FixedText FT_CONTEXT
+ {
+ Pos = MAP_APPFONT ( 12 , 25 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Kontext" ;
+ Text [ English ] = "~Context" ;
+ Disable = TRUE ;
+ Text [ dutch ] = "~Context" ;
+ Text [ english_us ] = "Conte~xt" ;
+ Text [ italian ] = "Contesto" ;
+ Text [ spanish ] = "~Contexto" ;
+ Text [ french ] = "~Contexte" ;
+ Text [ swedish ] = "~Sammanhang" ;
+ Text [ danish ] = "Kontekst" ;
+ Text [ portuguese ] = "~Contexto" ;
+ Text [ portuguese_brazilian ] = "~Kontext" ;
+ Text[ chinese_simplified ] = "ÉÏÏÂÎÄ(~C)";
+ Text[ russian ] = "~Êîíòåêñò";
+ Text[ polish ] = "Kontekst";
+ Text[ japanese ] = "ºÝ÷½Ä(~C)";
+ Text[ chinese_traditional ] = "¤W¤U¤å(~C)";
+ Text[ arabic ] = "ÇáÓíÇÞ";
+ Text[ greek ] = "Óõìöñáæüìåíá";
+ Text[ korean ] = "³»¿ë(~C)";
+ Text[ turkish ] = "Baðlam";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_USED
+ {
+ Pos = MAP_APPFONT ( 100 , 25 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ Text = "Verwendete Vorlage" ;
+ Text [ English ] = "Used Style" ;
+ Disable = TRUE ;
+ Text [ dutch ] = "Gebruikt opmaakprofiel" ;
+ Text [ english_us ] = "Applied Styles" ;
+ Text [ italian ] = "Modello utilizzato" ;
+ Text [ spanish ] = "Estilos utilizados" ;
+ Text [ french ] = "Style utilisé" ;
+ Text [ swedish ] = "Använda formatmallar" ;
+ Text [ danish ] = "Anvendt typografi" ;
+ Text [ portuguese ] = "Estilos em uso" ;
+ Text [ portuguese_brazilian ] = "Verwendete Vorlage" ;
+ Text[ chinese_simplified ] = "ʹÓõÄÑùʽ";
+ Text[ russian ] = "Ïðèìåíåííûå ñòèëè";
+ Text[ polish ] = "U¿yte style";
+ Text[ japanese ] = "Žg—p‚³‚ꂽ½À²Ù";
+ Text[ chinese_traditional ] = "¨Ï¥Îªº¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÞíÏ ÇáÇÓÊÎÏÇã";
+ Text[ greek ] = "ÅöáñìïóìÝíá ðñüôõðá";
+ Text[ korean ] = "À¯ÇüÀÌ Àû¿ëµÇ¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Uygulanan biçim";
+ Text[ language_user1 ] = " ";
+ };
+ Control TB_CONDCOLLS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 36 ) ;
+ Size = MAP_APPFONT ( 173 , 80 ) ;
+ TabStop = TRUE ;
+ ClipChildren = TRUE ;
+ Disable = TRUE ;
+ Border = TRUE ;
+ };
+ FixedText FT_STYLE
+ {
+ Pos = MAP_APPFONT ( 190 , 25 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Absatzvorlagen" ;
+ Text [ English ] = "Styles" ;
+ Disable = TRUE ;
+ Text [ dutch ] = "Alineaprofielen" ;
+ Text [ english_us ] = "Paragraph Styles" ;
+ Text [ italian ] = "Modelli di paragrafo" ;
+ Text [ spanish ] = "Estilos de párrafo" ;
+ Text [ french ] = "Styles de paragraphe" ;
+ Text [ swedish ] = "Styckeformatmallar" ;
+ Text [ danish ] = "Afsnitstypografier" ;
+ Text [ portuguese ] = "Estilos de parágrafo" ;
+ Text [ portuguese_brazilian ] = "Absatzvorlagen" ;
+ Text[ chinese_simplified ] = "¶ÎÂäÑùʽ";
+ Text[ russian ] = "Ñòèëè àáçàöà";
+ Text[ polish ] = "Style akapitu";
+ Text[ japanese ] = "’i—Ž½À²Ù";
+ Text[ chinese_traditional ] = "¬q¸¨¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÝÞÑÉ";
+ Text[ greek ] = "Ðñüôõðá ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô À¯Çü";
+ Text[ turkish ] = "Paragraf biçimi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_STYLE
+ {
+ Pos = MAP_APPFONT ( 188 , 36 ) ;
+ Size = MAP_APPFONT ( 60 , 60 ) ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ Sort = TRUE ;
+ Disable = TRUE ;
+ HScroll = TRUE ;
+ };
+ ListBox LB_FILTER
+ {
+ Pos = MAP_APPFONT ( 188 , 104 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ DropDown = TRUE ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ Disable = TRUE ;
+ HScroll = TRUE ;
+ };
+ PushButton PB_REMOVE
+ {
+ Pos = MAP_APPFONT ( 129 , 119 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Entfernen" ;
+ Text [ English ] = "~Remove" ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Text [ dutch ] = "~Verwijderen" ;
+ Text [ english_us ] = "Re~move" ;
+ Text [ italian ] = "~Rimuovi" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ french ] = "~Supprimer" ;
+ Text [ swedish ] = "Ta ~bort" ;
+ Text [ danish ] = "Fjern" ;
+ Text [ portuguese ] = "~Remover" ;
+ Text [ portuguese_brazilian ] = "~Entfernen" ;
+ Text[ chinese_simplified ] = "ɾ³ý(~R)";
+ Text[ russian ] = "~Óäàëèòü";
+ Text[ polish ] = "~Usuñ";
+ Text[ japanese ] = "íœ(~R)";
+ Text[ chinese_traditional ] = "§R°£(~R)";
+ Text[ arabic ] = "ÅÒÇáÉ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "Á¦°Å(~M)";
+ Text[ turkish ] = "~Kaldýr";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_ASSIGN
+ {
+ Pos = MAP_APPFONT ( 185 , 119 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Zuweisen" ;
+ Text [ English ] = "Assign" ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Text [ dutch ] = "~Toewijzen" ;
+ Text [ english_us ] = "~Apply" ;
+ Text [ italian ] = "~Assegna" ;
+ Text [ spanish ] = "~Asignar" ;
+ Text [ french ] = "~Assigner" ;
+ Text [ swedish ] = "Till~dela" ;
+ Text [ danish ] = "Tildel" ;
+ Text [ portuguese ] = "~Atribuir" ;
+ Text [ portuguese_brazilian ] = "~Zuweisen" ;
+ Text[ chinese_simplified ] = "Ö¸¶¨(~A)";
+ Text[ russian ] = "~Íàçíà÷èòü";
+ Text[ polish ] = "P~rzypisz";
+ Text[ japanese ] = "Š„‚è“–‚Ä(~A)";
+ Text[ chinese_traditional ] = "¤À°t(~A)";
+ Text[ arabic ] = "ÊÚííä";
+ Text[ greek ] = "Áíôéóôïß÷éóç";
+ Text[ korean ] = "ÁöÁ¤(~A)";
+ Text[ turkish ] = "~Ata";
+ Text[ language_user1 ] = " ";
+ };
+ StringArray STR_REGIONS
+ {
+ ItemList =
+ {
+ < "Tabellen Kopfzeile" ; > ;
+ < "Tabelle" ; > ;
+ < "Rahmen" ; > ;
+ < "Bereich" ; > ;
+ /* ### ACHTUNG: Neuer Eintrag in Liste? 5 : Fußnote*/
+ < "Fußnote" ; > ;
+ < "Endnote" ; > ;
+ < "Kopfzeile" ; > ;
+ < "Fusszeile" ; > ;
+ < " 1. Ebene Gliederung" ; > ;
+ < " 2. Ebene Gliederung" ; > ;
+ < " 3. Ebene Gliederung" ; > ;
+ < " 4. Ebene Gliederung" ; > ;
+ < " 5. Ebene Gliederung" ; > ;
+ < " 6. Ebene Gliederung" ; > ;
+ < " 7. Ebene Gliederung" ; > ;
+ < " 8. Ebene Gliederung" ; > ;
+ < " 9. Ebene Gliederung" ; > ;
+ < "10. Ebene Gliederung" ; > ;
+ < " 1. Ebene Nummerierung" ; > ;
+ < " 2. Ebene Nummerierung" ; > ;
+ < " 3. Ebene Nummerierung" ; > ;
+ < " 4. Ebene Nummerierung" ; > ;
+ < " 5. Ebene Nummerierung" ; > ;
+ < " 6. Ebene Nummerierung" ; > ;
+ < " 7. Ebene Nummerierung" ; > ;
+ < " 8. Ebene Nummerierung" ; > ;
+ < " 9. Ebene Nummerierung" ; > ;
+ < "10. Ebene Nummerierung" ; > ;
+ };
+ ItemList [ English ] =
+ {
+ < "Tabellen Kopfzeile" ; > ;
+ < "Tabelle" ; > ;
+ < "Rahmen" ; > ;
+ < "Bereich" ; > ;
+ < "Fußnote" ; > ;
+ < "Endnote" ; > ;
+ < "Kopfzeile" ; > ;
+ < "Fusszeile" ; > ;
+ < " 1. Ebene Gliederung" ; > ;
+ < " 2. Ebene Gliederung" ; > ;
+ < " 3. Ebene Gliederung" ; > ;
+ < " 4. Ebene Gliederung" ; > ;
+ < " 5. Ebene Gliederung" ; > ;
+ < " 6. Ebene Gliederung" ; > ;
+ < " 7. Ebene Gliederung" ; > ;
+ < " 8. Ebene Gliederung" ; > ;
+ < " 9. Ebene Gliederung" ; > ;
+ < "10. Ebene Gliederung" ; > ;
+ < " 1. Ebene Numerierung" ; > ;
+ < " 2. Ebene Numerierung" ; > ;
+ < " 3. Ebene Numerierung" ; > ;
+ < " 4. Ebene Numerierung" ; > ;
+ < " 5. Ebene Numerierung" ; > ;
+ < " 6. Ebene Numerierung" ; > ;
+ < " 7. Ebene Numerierung" ; > ;
+ < " 8. Ebene Numerierung" ; > ;
+ < " 9. Ebene Numerierung" ; > ;
+ < "10. Ebene Numerierung" ; > ;
+ };
+ itemlist [ portuguese ] =
+ {
+ < "Cabeçalho de folha" ; > ;
+ < "Folha" ; > ;
+ < "Moldura" ; > ;
+ < "Secção" ; > ;
+ < "Nota de rodapé" ; > ;
+ < "Nota final" ; > ;
+ < "Cabeçalho" ; > ;
+ < "Rodapé" ; > ;
+ < "1° nível do esquema" ; > ;
+ < "2° nível do esquema" ; > ;
+ < "3° nível do esquema" ; > ;
+ < "4° nível do esquema" ; > ;
+ < "5° nível do esquema" ; > ;
+ < "6° nível do esquema" ; > ;
+ < "7° nível do esquema" ; > ;
+ < "8° nível do esquema" ; > ;
+ < "9° nível do esquema" ; > ;
+ < "10° nível do esquema" ; > ;
+ < "1° nível de numeração" ; > ;
+ < "2° nível de numeração" ; > ;
+ < "3° nível de numeração" ; > ;
+ < "4° nível de numeração" ; > ;
+ < "5° nível de numeração" ; > ;
+ < "6° nível de numeração" ; > ;
+ < "7° nível de numeração" ; > ;
+ < "8° nível de numeração" ; > ;
+ < "9° nível de numeração" ; > ;
+ < "10° nível de numeração" ; > ;
+ };
+ itemlist [ english_us ] =
+ {
+ < "Sheet Header" ; > ;
+ < "Table" ; > ;
+ < "Frame" ; > ;
+ < "Section" ; > ;
+ < "Footnote" ; > ;
+ < "Endnote" ; > ;
+ < "Header" ; > ;
+ < "Footer" ; > ;
+ < " 1st Outline Level" ; > ;
+ < " 2nd Outline Level" ; > ;
+ < " 3rd Outline Level" ; > ;
+ < " 4th Outline Level" ; > ;
+ < " 5th Outline Level" ; > ;
+ < " 6th Outline Level" ; > ;
+ < " 7th Outline Level" ; > ;
+ < " 8th Outline Level" ; > ;
+ < " 9th Outline Level" ; > ;
+ < "10th Outline Level" ; > ;
+ < " 1st Numbering Level" ; > ;
+ < " 2nd Numbering Level" ; > ;
+ < " 3rd Numbering Level" ; > ;
+ < " 4th Numbering Level" ; > ;
+ < " 5th Numbering Level" ; > ;
+ < " 6th Numbering Level" ; > ;
+ < " 7th Numbering Level" ; > ;
+ < " 8th Numbering Level" ; > ;
+ < " 9th Numbering Level" ; > ;
+ < "10th Numbering Level" ; > ;
+ };
+ itemlist [ portuguese_brazilian ] =
+ {
+ < "Tabellen Kopfzeile" ; > ;
+ < "Tabelle" ; > ;
+ < "Rahmen" ; > ;
+ < "Bereich" ; > ;
+ < "Fußnote" ; > ;
+ < "Kopfzeile" ; > ;
+ < "Fusszeile" ; > ;
+ < "1. Ebene Gliederung" ; > ;
+ < "2. Ebene Gliederung" ; > ;
+ < "3. Ebene Gliederung" ; > ;
+ < "4. Ebene Gliederung" ; > ;
+ < "5. Ebene Gliederung" ; > ;
+ < "1. Ebene Numerierung" ; > ;
+ < "2. Ebene Numerierung" ; > ;
+ < "3. Ebene Numerierung" ; > ;
+ < "4. Ebene Numerierung" ; > ;
+ < "5. Ebene Numerierung" ; > ;
+ < "10. Ebene Gliederung" ; > ;
+ < "1. Ebene Numerierung" ; > ;
+ < "2. Ebene Numerierung" ; > ;
+ < "3. Ebene Numerierung" ; > ;
+ < "4. Ebene Numerierung" ; > ;
+ < "5. Ebene Numerierung" ; > ;
+ < "6. Ebene Numerierung" ; > ;
+ < "7. Ebene Numerierung" ; > ;
+ < "8. Ebene Numerierung" ; > ;
+ < "9. Ebene Numerierung" ; > ;
+ < "10. Ebene Numerierung" ; > ;
+ };
+ itemlist [ swedish ] =
+ {
+ < "Sidhuvud tabell" ; > ;
+ < "Tabell" ; > ;
+ < "Ram" ; > ;
+ < "Område" ; > ;
+ < "Fotnot" ; > ;
+ < "Slutnot" ; > ;
+ < "Sidhuvud" ; > ;
+ < "Sidfot" ; > ;
+ < "1:a dispositionsnivån" ; > ;
+ < "2:a dispositionsnivån" ; > ;
+ < "3:e dispositionsnivån" ; > ;
+ < "4:e dispositionsnivån" ; > ;
+ < "5:e dispositionsnivån" ; > ;
+ < "2:a dispositionsnivån" ; > ;
+ < "7:e dispositionsnivån" ; > ;
+ < "8:e dispositionsnivån" ; > ;
+ < "9:e dispositionsnivån" ; > ;
+ < "10:e dispositionsnivån" ; > ;
+ < "1:a numreringsnivån" ; > ;
+ < "2:a numreringsnivån" ; > ;
+ < "3:e numreringsnivån" ; > ;
+ < "4:e numreringsnivån" ; > ;
+ < "5:e numreringsnivån" ; > ;
+ < "6:e numreringsnivån" ; > ;
+ < "7:e numreringsnivån" ; > ;
+ < "8:e numreringsnivån" ; > ;
+ < "9:e numreringsnivån" ; > ;
+ < "10:e numreringsnivån" ; > ;
+ };
+ itemlist [ danish ] =
+ {
+ < "Tabelsidehoved" ; > ;
+ < "Tabel" ; > ;
+ < "Ramme" ; > ;
+ < "Område" ; > ;
+ < "Fodnote" ; > ;
+ < "Slutnote" ; > ;
+ < "Sidehoved" ; > ;
+ < "Sidefod" ; > ;
+ < "1. dispositionsniveau" ; > ;
+ < "2. dispositionsniveau" ; > ;
+ < "3. dispositionsniveau" ; > ;
+ < "4. dispositionsniveau" ; > ;
+ < "5. dispositionsniveau" ; > ;
+ < "6. dispositionsniveau" ; > ;
+ < "7. dispositionsniveau" ; > ;
+ < "8. dispositionsniveau" ; > ;
+ < "9. dispositionsniveau" ; > ;
+ < "10. dispositionsniveau" ; > ;
+ < "1. nummereringsniveau" ; > ;
+ < "2. nummereringsniveau" ; > ;
+ < "3. nummereringsniveau" ; > ;
+ < "4. nummereringsniveau" ; > ;
+ < "5. nummereringsniveau" ; > ;
+ < "6. nummereringsniveau" ; > ;
+ < "7. nummereringsniveau" ; > ;
+ < "8. nummereringsniveau" ; > ;
+ < "9. nummereringsniveau" ; > ;
+ < "10. nummereringsniveau" ; > ;
+ };
+ itemlist [ italian ] =
+ {
+ < "Intestazione tabella" ; > ;
+ < "Tabella" ; > ;
+ < "Cornice" ; > ;
+ < "Sezione" ; > ;
+ < "Nota a piè pagina" ; > ;
+ < "Nota di chiusura" ; > ;
+ < "Riga d'intestazione" ; > ;
+ < "Piè di pagina" ; > ;
+ < "Livello struttura 1" ; > ;
+ < "Livello struttura 2" ; > ;
+ < "Livello struttura 3" ; > ;
+ < "Livello struttura 4" ; > ;
+ < "Livello struttura 5" ; > ;
+ < "Livello struttura 6" ; > ;
+ < "Livello struttura 7 " ; > ;
+ < "Livello struttura 8" ; > ;
+ < "Livello struttura 9" ; > ;
+ < "10° livello di struttura" ; > ;
+ < "1° livello di numerazione" ; > ;
+ < "2° livello di numerazione" ; > ;
+ < "3° livello di numerazione" ; > ;
+ < "4° livello di numerazione" ; > ;
+ < "5° livello di numerazione" ; > ;
+ < "6° livello di numerazione" ; > ;
+ < "7° livello di numerazione" ; > ;
+ < "8° livello di numerazione" ; > ;
+ < "9° livello di numerazione" ; > ;
+ < "10° livello di numerazione" ; > ;
+ };
+ itemlist [ spanish ] =
+ {
+ < "Encabezamiento de la hoja" ; > ;
+ < "Tabla" ; > ;
+ < "Marco" ; > ;
+ < "Area" ; > ;
+ < "Nota al pie" ; > ;
+ < "Nota al final" ; > ;
+ < "Encabezamiento" ; > ;
+ < "Pie de página" ; > ;
+ < "1° nivel del esquema" ; > ;
+ < "2° nivel del esquema" ; > ;
+ < "3° nivel del esquema" ; > ;
+ < "4° nivel del esquema" ; > ;
+ < "5° nivel del esquema" ; > ;
+ < "6° nivel del esquema" ; > ;
+ < "7° nivel del esquema" ; > ;
+ < "8° nivel del esquema" ; > ;
+ < "9° nivel del esquema" ; > ;
+ < "10° nivel del esquema" ; > ;
+ < "1° nivel de la numeración" ; > ;
+ < "2° nivel de la numeración" ; > ;
+ < "3° nivel de la numeración" ; > ;
+ < "4° nivel de la numeración" ; > ;
+ < "5° nivel de la numeración" ; > ;
+ < "6° nivel de la numeración" ; > ;
+ < "7° nivel de la numeración" ; > ;
+ < "8° nivel de la numeración" ; > ;
+ < "9° nivel de la numeración" ; > ;
+ < "10° nivel de numeración" ; > ;
+ };
+ itemlist [ french ] =
+ {
+ < "En-tête tableau" ; > ;
+ < "Tableau" ; > ;
+ < "Cadre" ; > ;
+ < "Section" ; > ;
+ < "Note de bas de page" ; > ;
+ < "Note de fin" ; > ;
+ < "En-tête" ; > ;
+ < "Pied de page" ; > ;
+ < "1er niveau de plan" ; > ;
+ < "2ème niveau de plan" ; > ;
+ < "3ème niveau de plan" ; > ;
+ < "4ème niveau de plan" ; > ;
+ < "5ème niveau de plan" ; > ;
+ < "6ème niveau de plan" ; > ;
+ < "7ème niveau de plan" ; > ;
+ < "8ème niveau de plan" ; > ;
+ < "9ème niveau de plan" ; > ;
+ < "10ème niveau de plan" ; > ;
+ < "1er niveau de numérotation" ; > ;
+ < "2ème niveau de numérotation" ; > ;
+ < "3ème niveau de numérotation" ; > ;
+ < "4ème niveau de numérotation" ; > ;
+ < "5ème niveau de numérotation" ; > ;
+ < "6ème niveau de numérotation" ; > ;
+ < "7ème niveau de numérotation" ; > ;
+ < "8ème niveau de numérotation" ; > ;
+ < "9ème niveau de numérotation" ; > ;
+ < "10ème niveau de numérotation" ; > ;
+ };
+ itemlist [ dutch ] =
+ {
+ < "Koptekst tabel" ; > ;
+ < "Tabel" ; > ;
+ < "Kader" ; > ;
+ < "Bereik" ; > ;
+ < "Voetnoot" ; > ;
+ < "Eindnoot" ; > ;
+ < "Koptekst" ; > ;
+ < "Voettekst" ; > ;
+ < "1. niveau overzicht" ; > ;
+ < "2. niveau overzicht" ; > ;
+ < "3. niveau overzicht" ; > ;
+ < "4. niveau overzicht" ; > ;
+ < "5. niveau nummering" ; > ;
+ < "6. niveau overzicht" ; > ;
+ < "7. niveau overzicht" ; > ;
+ < "8. niveau overzicht" ; > ;
+ < "9. niveau overzicht" ; > ;
+ < "10. niveau overzicht" ; > ;
+ < "1. niveau nummering" ; > ;
+ < "2.niveau nummering" ; > ;
+ < "3.niveau nummering" ; > ;
+ < "4. niveau nummering" ; > ;
+ < "5. niveau nummering" ; > ;
+ < "6. niveau nummering" ; > ;
+ < "7. niveau nummering" ; > ;
+ < "8. niveau nummering" ; > ;
+ < "9. niveau nummering" ; > ;
+ < "10. niveau nummering" ; > ;
+ };
+ ItemList [ chinese_simplified ] =
+ {
+ < "±í¸ñҳü" ; > ;
+ < "±í¸ñ" ; > ;
+ < "¿ò" ; > ;
+ < "ÇøÓò" ; > ;
+ < "×¢½Å" ; > ;
+ < "βע" ; > ;
+ < "ҳü" ; > ;
+ < "Ò³½Å" ; > ;
+ < "µÚÒ»¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚ¶þ¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚÈý¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚËĸö´ó¸Ù¼¶" ; > ;
+ < "µÚÎå¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚÁù¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚÆ߸ö´ó¸Ù¼¶" ; > ;
+ < "µÚ°Ë¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚ¾Å¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚÊ®¸ö´ó¸Ù¼¶" ; > ;
+ < "µÚÒ»¼¶±àºÅ" ; > ;
+ < "µÚ¶þ¼¶±àºÅ" ; > ;
+ < "µÚÈý¼¶±àºÅ" ; > ;
+ < "µÚËļ¶±àºÅ" ; > ;
+ < "µÚÎ弶±àºÅ" ; > ;
+ < "µÚÁù¼¶±àºÅ" ; > ;
+ < "µÚÆß¼¶±àºÅ" ; > ;
+ < "µÚ°Ë¼¶±àºÅ" ; > ;
+ < "µÚ¾Å¼¶±àºÅ" ; > ;
+ < "µÚÊ®¼¶±àºÅ" ; > ;
+ };
+ ItemList [ russian ] =
+ {
+ < "Âåðõíèé êîëîíòèòóë òàáëèöû" ; > ;
+ < "Òàáëèöà" ; > ;
+ < "Ðàìêà" ; > ;
+ < "Îáëàñòü" ; > ;
+ < "Ñíîñêà" ; > ;
+ < "Êîíöåâàÿ ñíîñêà" ; > ;
+ < "Âåðõíèé êîëîíòèòóë" ; > ;
+ < "Íèæíèé êîëîíòèòóë" ; > ;
+ < "1-ûé óðîâåíü ñòðóêòóðû" ; > ;
+ < "2-îé óðîâåíü ñòðóêòóðû" ; > ;
+ < "3-èé óðîâåíü ñòðóêòóðû" ; > ;
+ < "4-ûé óðîâåíü ñòðóêòóðû" ; > ;
+ < "5-ûé óðîâåíü ñòðóêòóðû" ; > ;
+ < "6-îé óðîâåíü ñòðóêòóðû" ; > ;
+ < "7-îé óðîâåíü ñòðóêòóðû" ; > ;
+ < "8-îé óðîâåíü ñòðóêòóðû" ; > ;
+ < "9-ûé óðîâåíü ñòðóêòóðû" ; > ;
+ < "10-ûé óðîâåíü ñòðóêòóðû" ; > ;
+ < "1-ûé óðîâåíü íóìåðàöèè" ; > ;
+ < "2-îé óðîâåíü íóìåðàöèè" ; > ;
+ < "3-èé óðîâåíü íóìåðàöèè" ; > ;
+ < "4-ûé óðîâåíü íóìåðàöèè" ; > ;
+ < "5-ûé óðîâåíü íóìåðàöèè" ; > ;
+ < "6-îé óðîâåíü íóìåðàöèè" ; > ;
+ < "7-îé óðîâåíü íóìåðàöèè" ; > ;
+ < "8-îé óðîâåíü íóìåðàöèè" ; > ;
+ < "9-ûé óðîâåíü íóìåðàöèè" ; > ;
+ < "10-ûé óðîâåíü íóìåðàöèè" ; > ;
+ };
+ ItemList [ polish ] =
+ {
+ < "Tabele Nag³ówek" ; > ;
+ < "Tabela" ; > ;
+ < "Ramka" ; > ;
+ < "Sekcja" ; > ;
+ < "Przypis dolny" ; > ;
+ < "Przypis koñc." ; > ;
+ < "Nag³ówek" ; > ;
+ < "Stopka" ; > ;
+ < "1. Poziom kontekstu" ; > ;
+ < "2. poziom konspektu" ; > ;
+ < "3. Poziom konspektu" ; > ;
+ < "4. Poziom konspektu" ; > ;
+ < "5. Poziom konspektu" ; > ;
+ < "6. Poziom konspektu" ; > ;
+ < "7. Poziom konspektu" ; > ;
+ < "8. Poziom konspektu" ; > ;
+ < "9. Poziom konspektu" ; > ;
+ < "10. Poziom konspektu" ; > ;
+ < "1 Poziom numeracji" ; > ;
+ < "2. Poziom numeracji" ; > ;
+ < "3. Poziom numeracji" ; > ;
+ < "4. Poziom numeracji" ; > ;
+ < "5. Poziom numeracji" ; > ;
+ < "6. Poziom numeracji" ; > ;
+ < "7. Poziom numeracji" ; > ;
+ < "8. Poziom numeracji" ; > ;
+ < "9. Poziom numeracji" ; > ;
+ < "10. Poziom numeracji" ; > ;
+ };
+ ItemList [ japanese ] =
+ {
+ < "•\\‚ÌͯÀÞ" ; > ;
+ < "•\\" ; > ;
+ < "˜g" ; > ;
+ < "”͈Í" ; > ;
+ < "‹r’" ; > ;
+ < "•¶––‹r’" ; > ;
+ < "ͯÀÞ" ; > ;
+ < "̯À" ; > ;
+ < "1ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "2ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "3ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "4ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "5ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "6ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "7ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "8ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "9ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "10ÚÍÞٖڂ̱³ÄײÝ" ; > ;
+ < "1ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "2ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "3ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "4ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "5ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "6ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "7ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "8ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "9ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ < "10ÚÍÞٖڂ̔Ԇ•t‚¯" ; > ;
+ };
+ ItemList [ chinese_traditional ] =
+ {
+ < "ªí®æ­¶­º" ; > ;
+ < "ªí®æ" ; > ;
+ < "¤å¦r¤è¶ô" ; > ;
+ < "°Ï°ì" ; > ;
+ < "µù¸}" ; > ;
+ < "§Àª`" ; > ;
+ < "­¶­º" ; > ;
+ < "­¶§À" ; > ;
+ < "²Ä¤@­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤G­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤T­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¥|­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤­­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤»­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤C­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤K­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤E­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤Q­Ó¤jºõ¯Å" ; > ;
+ < "²Ä¤@¯Å½s¸¹" ; > ;
+ < "²Ä¤G¯Å½s¸¹" ; > ;
+ < "²Ä¤T¯Å½s¸¹" ; > ;
+ < "²Ä¥|¯Å½s¸¹" ; > ;
+ < "²Ä¤­¯Å½s¸¹" ; > ;
+ < "²Ä¤»¯Å½s¸¹" ; > ;
+ < "²Ä¤C¯Å½s¸¹" ; > ;
+ < "²Ä¤K¯Å½s¸¹" ; > ;
+ < "²Ä¤E¯Å½s¸¹" ; > ;
+ < "²Ä¤Q¯Å½s¸¹" ; > ;
+ };
+ ItemList [ arabic ] =
+ {
+ < "ÑÃÓ ÇáÌÏæá" ; > ;
+ < "ÌÏæá" ; > ;
+ < "ÅØÇÑ" ; > ;
+ < "äØÇÞ" ; > ;
+ < "ÍÇÔíÉ ÓÝáíÉ" ; > ;
+ < "ÊÚáíÞ ÎÊÇãí" ; > ;
+ < "ÑÃÓ ÇáÕÝÍÉ" ; > ;
+ < "ÊÐííá ÇáÕÝÍÉ" ; > ;
+ < "Ãæá ãÓÊæì ÊÞÓíã" ; > ;
+ < "ËÇäí ãÓÊæì ÊÞÓíã" ; > ;
+ < "ËÇáË ãÓÊæì ÊÞÓíã" ; > ;
+ < "ÑÇÈÚ ãÓÊæì ÊÞÓíã" ; > ;
+ < "ÎÇãÓ ãÓÊæì ÊÞÓíã" ; > ;
+ < "ÓÇÏÓ ãÓÊæì ÊÞÓíã" ; > ;
+ < "ÓÇÈÚ ãÓÊæì ÊÞÓíã" ; > ;
+ < "ËÇãä ãÓÊæì ÊÞÓíã" ; > ;
+ < "ÊÇÓÚ ãÓÊæì ÊÞÓíã" ; > ;
+ < "ÚÇÔÑ ãÓÊæì ÊÞÓíã" ; > ;
+ < "Ãæá ãÓÊæì ÊÑÞíã" ; > ;
+ < "ËÇäí ãÓÊæì ÊÑÞíã" ; > ;
+ < "ËÇáË ãÓÊæì ÊÑÞíã" ; > ;
+ < "ÑÇÈÚ ãÓÊæì ÊÑÞíã" ; > ;
+ < "ÎÇãÓ ãÓÊæì ÊÑÞíã" ; > ;
+ < "ÓÇÏÓ ãÓÊæì ÊÑÞíã" ; > ;
+ < "ÓÇÈÚ ãÓÊæì ÊÑÞíã" ; > ;
+ < "ËÇãä ãÓÊæì ÊÑÞíã" ; > ;
+ < "ÊÇÓÚ ãÓÊæì ÊÑÞíã" ; > ;
+ < "ÚÇÔÑ ãÓÊæì ÊÑÞíã" ; > ;
+ };
+ ItemList [ greek ] =
+ {
+ < "Êåöáëßäá ðßíáêá" ; > ;
+ < "Ðßíáêáò" ; > ;
+ < "Ðåñßãñáììá" ; > ;
+ < "Åíüôçôá" ; > ;
+ < "Õðïóçìåßùóç" ; > ;
+ < "Óçìåßùóç ôÝëïõò" ; > ;
+ < "Êåöáëßäá" ; > ;
+ < "ÕðïóÝëéäï" ; > ;
+ < "1ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "2ï. Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "3ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "4ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "5ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "6ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "7ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "8ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "9ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "10ï Åðßðåäï õðïäéáßñåóçò" ; > ;
+ < "1ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "2ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "3ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "4ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "5ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "6ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "7ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "8ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "9ï. Åðßðåäï áñßèìçóçò" ; > ;
+ < "10ï. Åðßðåäï áñßèìçóçò" ; > ;
+ };
+ ItemList [ korean ] =
+ {
+ < "½ÃÆ® ¸Ó¸®¸»" ; > ;
+ < "Ç¥" ; > ;
+ < "ÅؽºÆ® ¹Ú½º" ; > ;
+ < "±¸¿ª" ; > ;
+ < "°¢ÁÖ" ; > ;
+ < "¹ÌÁÖ" ; > ;
+ < "¸Ó¸®±Û" ; > ;
+ < "¹Ù´Ú±Û" ; > ;
+ < "1¹ø°°³¿ä¼öÁØ" ; > ;
+ < "2¹ø°°³¿ä¼öÁØ" ; > ;
+ < "3¹ø°°³¿ä¼öÁØ" ; > ;
+ < "4¹ø°°³¿ä¼öÁØ" ; > ;
+ < "5¹ø°°³¿ä¼öÁØ" ; > ;
+ < "6¹ø°°³¿ä¼öÁØ" ; > ;
+ < "7¹ø°°³¿ä¼öÁØ" ; > ;
+ < "8¹ø°°³¿ä¼öÁØ" ; > ;
+ < "9¹ø°°³¿ä¼öÁØ" ; > ;
+ < "10¹ø°°³¿ä¼öÁØ" ; > ;
+ < "1¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "2¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "3¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "4¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "5¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "6¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "7¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "8¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "9¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ < "10¹ø° ¹øÈ£ ¸Å±â±â ¼öÁØ" ; > ;
+ };
+ ItemList [ turkish ] =
+ {
+ < "Tablo baþlýðý" ; > ;
+ < "Tablo" ; > ;
+ < "Çerçeve" ; > ;
+ < "Bölüm" ; > ;
+ < "Dipnot" ; > ;
+ < "Sonnot" ; > ;
+ < "Üst bilgi" ; > ;
+ < "Alt bilgi" ; > ;
+ < "1. Anahat düzeyi" ; > ;
+ < "2. Anahat düzeyi" ; > ;
+ < "3. Anahat düzeyi" ; > ;
+ < "4. Anahat düzeyi" ; > ;
+ < "5. Anahat düzeyi" ; > ;
+ < "6. Anahat düzeyi" ; > ;
+ < "7. Anahat düzeyi" ; > ;
+ < "8. Anahat düzeyi" ; > ;
+ < "9. Anahat düzeyi" ; > ;
+ < "10. Anahat düzeyi" ; > ;
+ < "1. Numaralama düzeyi" ; > ;
+ < "2. Numaralama düzeyi" ; > ;
+ < "3. Numaralama düzeyi" ; > ;
+ < "4. Numaralama düzeyi" ; > ;
+ < "5. Numaralama düzeyi" ; > ;
+ < "6. Numaralama düzeyi" ; > ;
+ < "7. Numaralama düzeyi" ; > ;
+ < "8. Numaralama düzeyi" ; > ;
+ < "9. Numaralama düzeyi" ; > ;
+ < "10. Numaralama düzeyi" ; > ;
+ };
+ ItemList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ String STR_NOTEMPL
+ {
+ Text = "<keine>" ;
+ Text [ English ] = "<none>" ;
+ Text [ dutch ] = "<geen>" ;
+ Text [ english_us ] = "<none>" ;
+ Text [ italian ] = "<nessuno>" ;
+ Text [ spanish ] = "<ninguno>" ;
+ Text [ french ] = "<aucun(e)>" ;
+ Text [ swedish ] = "<ingen>" ;
+ Text [ danish ] = "<ingen>" ;
+ Text [ portuguese ] = "<nenhum>" ;
+ Text [ portuguese_brazilian ] = "<keine>" ;
+ Text[ chinese_simplified ] = "<ÎÞ>";
+ Text[ russian ] = "<íåò>";
+ Text[ polish ] = "<brak>";
+ Text[ japanese ] = "<‚È‚µ>";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "<µL>";
+ Text[ arabic ] = "<ÈÏæä>";
+ Text[ greek ] = "<êáíÝíá>";
+ Text[ korean ] = "<¾øÀ½>";
+ Text[ turkish ] = "<yok>";
+ };
+};
+ // ********************************************************************** EOF
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx
new file mode 100644
index 000000000000..a5d17ab8dd96
--- /dev/null
+++ b/sw/source/ui/chrdlg/chardlg.cxx
@@ -0,0 +1,520 @@
+/*************************************************************************
+ *
+ * $RCSfile: chardlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include <sfx2/iodlg.hxx>
+#endif
+#ifndef _SVX_CHARDLG_HXX //autogen
+#include <svx/chardlg.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _MACASSGN_HXX
+#include <macassgn.hxx>
+#endif
+#ifndef _CHRDLG_HXX
+#include <chrdlg.hxx> // der Dialog
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _CHRDLG_HRC
+#include <chrdlg.hrc>
+#endif
+#ifndef _CHARDLG_HRC
+#include <chardlg.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Traeger des Dialoges
+ --------------------------------------------------------------------*/
+
+
+SwCharDlg::SwCharDlg(Window* pParent, SwView& rVw, const SfxItemSet& rCoreSet,
+ const String* pStr, BOOL bIsDrwTxtDlg) :
+ SfxTabDialog(pParent, SW_RES(DLG_CHAR), &rCoreSet, pStr != 0),
+ rView(rVw),
+ bIsDrwTxtMode(bIsDrwTxtDlg)
+{
+ FreeResource();
+
+ // bspFonr fuer beide Bsp-TabPages
+
+ if(pStr)
+ {
+ String aTmp( GetText() );
+ aTmp += SW_RESSTR(STR_TEXTCOLL_HEADER);
+ aTmp += *pStr;
+ aTmp += ')';
+ SetText(aTmp);
+ }
+
+ //OS: Unter OS/2 darf die erste TabPage nie per RemoveTabPage entfernt werden
+ AddTabPage(TP_CHAR_STD, SvxCharStdPage::Create, 0);
+ AddTabPage(TP_CHAR_EXT, SvxCharExtPage::Create, 0);
+ AddTabPage(TP_CHAR_URL, SwCharURLPage::Create, 0);
+ AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, 0);
+ if(bIsDrwTxtMode)
+ {
+ RemoveTabPage(TP_CHAR_URL);
+ RemoveTabPage(TP_BACKGROUND);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwCharDlg::~SwCharDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: FontList setzen
+ --------------------------------------------------------------------*/
+
+
+
+void SwCharDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+ switch( nId )
+ {
+ case TP_CHAR_STD:
+ ((SvxCharStdPage&)rPage).SetFontList( *( (SvxFontListItem*)
+ ( rView.GetDocShell()->GetItem( SID_ATTR_CHAR_FONTLIST ) ) ) );
+ break;
+ case TP_CHAR_EXT:
+ if(bIsDrwTxtMode)
+ ((SvxCharExtPage&)rPage).DisableControls(DISABLE_CASEMAP);
+ else
+ ((SvxCharExtPage&)rPage).EnableFlash();
+ break;
+ }
+}
+
+/*-----------------14.08.96 11.28-------------------
+
+--------------------------------------------------*/
+
+SwCharURLPage::SwCharURLPage( Window* pParent,
+ const SfxItemSet& rCoreSet ) :
+ SfxTabPage( pParent, SW_RES( TP_CHAR_URL ), rCoreSet ),
+ aURLGB ( this, SW_RES(GB_URL)),
+ aURLFT( this, SW_RES(FT_URL )),
+ aURLED( this, SW_RES(ED_URL )),
+ aTextFT( this, SW_RES(FT_TEXT )),
+ aTextED( this, SW_RES(ED_TEXT )),
+ aNameFT( this, SW_RES(FT_NAME )),
+ aNameED( this, SW_RES(ED_NAME)),
+ aTargetFrmFT( this, SW_RES(FT_TARGET )),
+ aTargetFrmLB( this, SW_RES(LB_TARGET )),
+ aStyleGB( this, SW_RES(GB_STYLE )),
+ aVisitedFT( this, SW_RES(FT_VISITED )),
+ aVisitedLB( this, SW_RES(LB_VISITED )),
+ aNotVisitedFT( this, SW_RES(FT_NOT_VISITED)),
+ aNotVisitedLB( this, SW_RES(LB_NOT_VISITED)),
+ aEventPB( this, SW_RES(PB_EVENT )),
+ aURLPB( this, SW_RES(PB_URL )),
+ pINetItem(0),
+ bModified(FALSE)
+
+{
+ FreeResource();
+
+ const SfxPoolItem* pItem;
+ SfxObjectShell* pShell;
+ if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_HTML_MODE, FALSE, &pItem) ||
+ ( 0 != ( pShell = SfxObjectShell::Current()) &&
+ 0 != (pItem = pShell->GetItem(SID_HTML_MODE))))
+ {
+ USHORT nHtmlMode = ((const SfxUInt16Item*)pItem)->GetValue();
+ if(HTMLMODE_ON & nHtmlMode)
+ {
+ aStyleGB.Hide();
+ aVisitedFT.Hide();
+ aVisitedLB.Hide();
+ aNotVisitedFT.Hide();
+ aNotVisitedLB.Hide();
+ }
+ }
+
+ aURLPB.SetClickHdl (LINK( this, SwCharURLPage, InsertFileHdl));
+ aEventPB.SetClickHdl(LINK( this, SwCharURLPage, EventHdl ));
+
+ SwView *pView = ::GetActiveView();
+ ::FillCharStyleListBox(aVisitedLB, pView->GetDocShell());
+ ::FillCharStyleListBox(aNotVisitedLB, pView->GetDocShell());
+
+ TargetList* pList = new TargetList;
+ const SfxFrame* pFrame = pView->GetViewFrame()->GetTopFrame();
+ pFrame->GetTargetList(*pList);
+ USHORT nCount = (USHORT)pList->Count();
+ if( nCount )
+ {
+ for ( USHORT i = 0; i < nCount; i++ )
+ {
+ aTargetFrmLB.InsertEntry(*pList->GetObject(i));
+ }
+ for ( i = nCount; i; i-- )
+ {
+ delete pList->GetObject( i - 1 );
+ }
+ }
+ delete pList;
+
+
+}
+
+/*-----------------15.08.96 09.04-------------------
+
+--------------------------------------------------*/
+
+SwCharURLPage::~SwCharURLPage()
+{
+ delete pINetItem;
+}
+
+/*-----------------14.08.96 11.31-------------------
+
+--------------------------------------------------*/
+
+void SwCharURLPage::Reset(const SfxItemSet& rSet)
+{
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rSet.GetItemState(RES_TXTATR_INETFMT, FALSE, &pItem))
+ {
+ const SwFmtINetFmt* pINetFmt = (const SwFmtINetFmt*)pItem;
+ aURLED.SetText( INetURLObject::decode( pINetFmt->GetValue(),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ));
+ aURLED.SaveValue();
+ aNameED.SetText(pINetFmt->GetName());
+ String sEntry = pINetFmt->GetVisitedFmt();
+ if( !sEntry.Len() )
+ GetDocPoolNm( RES_POOLCHR_INET_VISIT, sEntry );
+ aVisitedLB.SelectEntry(sEntry);
+ sEntry = pINetFmt->GetINetFmt();
+ if(!sEntry.Len())
+ GetDocPoolNm( RES_POOLCHR_INET_NORMAL, sEntry );
+ aNotVisitedLB.SelectEntry(sEntry);
+
+ aTargetFrmLB.SetText(pINetFmt->GetTargetFrame());
+ aVisitedLB. SaveValue();
+ aNotVisitedLB.SaveValue();
+ aTargetFrmLB. SaveValue();
+ pINetItem = new SvxMacroItem(FN_INET_FIELD_MACRO);
+
+ if( pINetFmt->GetMacroTbl() )
+ pINetItem->SetMacroTable( *pINetFmt->GetMacroTbl() );
+ }
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_SELECTION, FALSE, &pItem))
+ {
+ aTextED.SetText(((const SfxStringItem*)pItem)->GetValue());
+ aTextFT.Enable( FALSE );
+ aTextED.Enable( FALSE );
+ }
+}
+
+/*-----------------14.08.96 11.32-------------------
+
+--------------------------------------------------*/
+
+BOOL SwCharURLPage::FillItemSet(SfxItemSet& rSet)
+{
+ String sURL = aURLED.GetText();
+ if(sURL.Len())
+ sURL = URIHelper::SmartRelToAbs(sURL);
+ SwFmtINetFmt aINetFmt(sURL, aTargetFrmLB.GetText());
+ aINetFmt.SetName(aNameED.GetText());
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ bModified |= aURLED.GetText() != aURLED.GetSavedValue();
+ bModified |= aNameED.IsModified();
+ bModified |= aTargetFrmLB.GetSavedValue() != aTargetFrmLB.GetText();
+
+ //zuerst die gueltigen Einstellungen setzen
+ String sEntry = aVisitedLB.GetSelectEntry();
+ USHORT nId = rSh.GetPoolId( sEntry, GET_POOLID_CHRFMT);
+ aINetFmt.SetVisitedFmtId(nId);
+ aINetFmt.SetVisitedFmt(nId == RES_POOLCHR_INET_VISIT ? aEmptyStr : sEntry);
+
+ sEntry = aNotVisitedLB.GetSelectEntry();
+ nId = rSh.GetPoolId( sEntry, GET_POOLID_CHRFMT);
+ aINetFmt.SetINetFmtId( nId );
+ aINetFmt.SetINetFmt(nId == RES_POOLCHR_INET_NORMAL ? aEmptyStr : sEntry);
+
+ if( pINetItem && pINetItem->GetMacroTable().Count() )
+ aINetFmt.SetMacroTbl( &pINetItem->GetMacroTable() );
+
+ if(aVisitedLB.GetSavedValue() != aVisitedLB.GetSelectEntryPos())
+ bModified = TRUE;
+
+ if(aNotVisitedLB.GetSavedValue() != aNotVisitedLB.GetSelectEntryPos())
+ bModified = TRUE;
+
+ if(aTextED.IsModified())
+ {
+ bModified = TRUE;
+ rSet.Put(SfxStringItem(FN_PARAM_SELECTION, aTextED.GetText()));
+ }
+ if(bModified)
+ rSet.Put(aINetFmt);
+ return bModified;
+}
+
+
+/*-----------------14.08.96 11.30-------------------
+
+--------------------------------------------------*/
+
+SfxTabPage* SwCharURLPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwCharURLPage( pParent, rAttrSet ) );
+}
+
+/*-----------------14.08.96 15.00-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK( SwCharURLPage, InsertFileHdl, PushButton *, pBtn )
+{
+ SfxFileDialog* pFileDlg = new SfxFileDialog(pBtn, WB_OPEN);
+ pFileDlg->DisableSaveLastDirectory();
+ pFileDlg->SetHelpId(HID_FILEDLG_CHARDLG);
+
+ if(RET_OK == pFileDlg->Execute())
+ {
+ aURLED.SetText(URIHelper::SmartRelToAbs(pFileDlg->GetPath()));
+ }
+ delete pFileDlg;
+
+ return 0;
+}
+/*-----------------14.08.96 15.00-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK( SwCharURLPage, EventHdl, PushButton *, EMPTYARG )
+{
+ bModified |= SwMacroAssignDlg::INetFmtDlg( this,
+ ::GetActiveView()->GetWrtShell(), pINetItem );
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.213 2000/09/18 16:05:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.212 2000/08/31 11:37:50 jp
+ add missing include
+
+ Revision 1.211 2000/08/17 13:48:23 jp
+ UI with decode URL
+
+ Revision 1.210 2000/07/26 16:32:19 jp
+ use the new function GetDocPoolNm to get the collectionames
+
+ Revision 1.209 2000/07/03 10:33:17 os
+ #72742# resource warnings corrected
+
+ Revision 1.208 2000/06/26 13:06:44 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.207 2000/04/19 12:56:33 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.206 2000/02/11 14:43:26 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.205 2000/01/24 12:53:41 os
+ #72153# call SfxFileDialog::DisableSaveLastDirectory
+
+ Revision 1.204 1999/02/19 07:48:02 MA
+ #61949# CurrShell gibt es nicht mehr
+
+
+ Rev 1.203 19 Feb 1999 08:48:02 MA
+ #61949# CurrShell gibt es nicht mehr
+
+ Rev 1.202 12 Feb 1999 07:35:36 OS
+ #61800# Keine URL und kein Hintergrund fuer DrawText
+
+ Rev 1.201 02 Sep 1998 14:11:10 OM
+ #45378# HelpIDs fuer Dateidialoge
+
+ Rev 1.200 09 Jul 1998 08:57:10 OS
+ vor dem putten in jedem Fall Listbox-Inhalte auswerten #52425#
+
+ Rev 1.199 29 Jun 1998 09:39:30 OS
+ kein Blinken fuer DrawText#48019#
+
+ Rev 1.198 15 Apr 1998 14:33:06 OS
+ ::FillCharStyleListBox
+
+ Rev 1.197 28 Nov 1997 15:01:48 MA
+ includes
+
+ Rev 1.196 01 Sep 1997 13:25:14 OS
+ DLL-Umstellung
+
+ Rev 1.195 15 Aug 1997 12:12:36 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.194 09 Aug 1997 13:01:46 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.193 08 Aug 1997 17:29:44 OM
+ Headerfile-Umstellung
+
+ Rev 1.192 18 Jun 1997 17:30:02 OS
+ URL wird jetzt mit SfxFileDialog gesucht #40815#
+
+ Rev 1.191 21 Apr 1997 16:27:00 OS
+ TargetFrame jetzt in ComboBox
+
+ Rev 1.190 08 Apr 1997 09:22:40 MA
+ chg: falsche Definition entfernt
+
+ Rev 1.189 07 Apr 1997 14:15:08 MH
+ chg: header
+
+ Rev 1.188 20 Mar 1997 16:58:20 OS
+ Leerstring: URL zuruecksetzen
+
+ Rev 1.187 10 Mar 1997 17:28:48 OS
+ URL-Edit per GetSavedValue auf Modifikation testen
+
+ Rev 1.186 14 Feb 1997 18:04:06 OM
+ Zahlenformat-Dlg
+
+ Rev 1.185 05 Feb 1997 13:31:32 OS
+ keine Zeichenvorlagen fuer Hyperlinks im HTML
+
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/chrdlg/chardlg.hrc b/sw/source/ui/chrdlg/chardlg.hrc
new file mode 100644
index 000000000000..1a03e2a6d322
--- /dev/null
+++ b/sw/source/ui/chrdlg/chardlg.hrc
@@ -0,0 +1,120 @@
+/*************************************************************************
+ *
+ * $RCSfile: chardlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define FONT_FT 1
+#define FONT_CB 2
+#define FACE_FT 3
+#define FACE_LB 4
+#define SIZE_FT 5
+#define SIZE_CB 6
+#define OUTLINE_TB 7
+#define SHADOW_TB 8
+#define UNDERL_TB 9
+#define STRIKETHRU_TB 10
+#define COLOR_FT 11
+#define COLOR_LB 12
+#define LANG_FT 13
+#define LANG_LB 14
+#define EXAMPLE_WN 15
+#define EXAMPLE_GB 16
+#define CASEMAP_GB 17
+#define NONE_RB 20
+#define CAPS_RB 21
+#define LOWERCASE_RB 22
+#define SMALLCAPS_RB 23
+#define TITEL_RB 24
+#define HIGH_RB 25
+#define NORMAL_RB 26
+#define DEEP_RB 27
+#define DEEPHIGHT_FT 28
+#define DEEPHIGH_MF 29
+#define RELSIZE_FT 30
+#define RELSIZE_MF 31
+#define KERN_LB 32
+#define KERN_FT 33
+#define KERN_MF 34
+#define UNDERLINE_FT 35
+#define UNDERLINE_LB 36
+#define STRIKE_FT 37
+#define STRIKE_LB 38
+#define STRIKE_CB 39
+#define EFFECT_GB 41
+#define POS_GB 42
+#define POSEXT_GB 43
+#define KERN_GB 45
+#define FONTTYPE_FT 46
+
+#define GB_URL 50
+#define FT_URL 51
+#define ED_URL 52
+#define GB_STYLE 53
+#define FT_VISITED 55
+#define LB_VISITED 56
+#define FT_NOT_VISITED 57
+#define LB_NOT_VISITED 58
+#define PB_EVENT 59
+#define PB_URL 60
+#define LB_TARGET 61
+#define FT_TARGET 62
+#define FT_TEXT 63
+#define ED_TEXT 64
+#define FT_NAME 65
+#define ED_NAME 66
+
diff --git a/sw/source/ui/chrdlg/chardlg.src b/sw/source/ui/chrdlg/chardlg.src
new file mode 100644
index 000000000000..74cefc409fac
--- /dev/null
+++ b/sw/source/ui/chrdlg/chardlg.src
@@ -0,0 +1,615 @@
+/*************************************************************************
+ *
+ * $RCSfile: chardlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "chrdlg.hrc"
+#include "chardlg.hrc"
+#include "helpid.h"
+
+#define LBOX_DIFF 4
+TabDialog DLG_CHAR
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ /* ### ACHTUNG: Neuer Text in Resource? Zeichen : Schrift */
+ Text = "Zeichen" ;
+ Text [ ENGLISH ] = "Character" ;
+ Text [ norwegian ] = "Character" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Caractere" ;
+ Text [ portuguese ] = "Caracteres" ;
+ Text [ finnish ] = "Merkki" ;
+ Text [ danish ] = "Tegn" ;
+ Text [ french ] = "Caractère" ;
+ Text [ swedish ] = "Tecken" ;
+ Text [ dutch ] = "Teken" ;
+ Text [ spanish ] = "Caracteres" ;
+ Text [ english_us ] = "Character" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_CHAR_STD ;
+ Text = "Schrift" ;
+ Text [ ENGLISH ] = "Character" ;
+ Text [ norwegian ] = "Character" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Caractere" ;
+ Text [ portuguese ] = "Tipo de letra" ;
+ Text [ finnish ] = "Merkki" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "Police" ;
+ Text [ swedish ] = "Teckensnitt" ;
+ Text [ dutch ] = "Lettertype" ;
+ Text [ spanish ] = "Fuente" ;
+ Text [ english_us ] = "Font" ;
+ PageResID = TP_CHAR_STD ;
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ russian ] = "Øðèôò";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "Ì«ÝÄ";
+ Text[ chinese_traditional ] = "¦r«¬";
+ Text[ arabic ] = "ÇáÎØ";
+ Text[ dutch ] = "Lettertype";
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ greek ] = "ÃñáììáôïóåéñÜ";
+ Text[ korean ] = "±Û²Ã";
+ Text[ turkish ] = "Yazýtipi";
+ };
+ PageItem
+ {
+ Identifier = TP_CHAR_EXT ;
+ Text = "Schrifteffekt" ;
+ Text [ ENGLISH ] = "Character Extension" ;
+ Text [ norwegian ] = "Character Extension" ;
+ Text [ italian ] = "Effetto carattere" ;
+ Text [ portuguese_brazilian ] = "Extensão de Caracter" ;
+ Text [ portuguese ] = "Efeitos do tipo de letra" ;
+ Text [ finnish ] = "Merkin tehosteet" ;
+ Text [ danish ] = "Skrifteffekt" ;
+ Text [ french ] = "Effet de caractère" ;
+ Text [ swedish ] = "Teckensnittseffekt" ;
+ Text [ dutch ] = "Schrifteffecten" ;
+ Text [ spanish ] = "Efectos de fuente" ;
+ Text [ english_us ] = "Font Effects" ;
+ PageResID = TP_CHAR_EXT ;
+ Text[ chinese_simplified ] = "×ÖÌåЧ¹û";
+ Text[ russian ] = "Ýôôåêòû øðèôòà";
+ Text[ polish ] = "Efekty czcionek";
+ Text[ japanese ] = "Ì«ÝÄŒø‰Ê";
+ Text[ chinese_traditional ] = "¤å¦r®ÄªG";
+ Text[ arabic ] = "ÊÃËíÑÇÊ ÇáÎØæØ";
+ Text[ dutch ] = "Schrifteffecten";
+ Text[ chinese_simplified ] = "×ÖÌåЧ¹û";
+ Text[ greek ] = "ÅöÝ ÷áñáêôÞñùí";
+ Text[ korean ] = "±Û²Ã È¿°ú";
+ Text[ turkish ] = "Yazýtipi efektleri";
+ };
+ PageItem
+ {
+ Identifier = TP_CHAR_URL ;
+ Text = "Hyperlink" ;
+ Text [ ENGLISH ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ dutch ] = "Hyperlink";
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ dutch ] = "Achtergrond";
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "×Ö·û";
+ Text[ russian ] = "Çíàê";
+ Text[ polish ] = "Znak";
+ Text[ japanese ] = "•¶Žš";
+ Text[ language_user1 ] = "èëè: Ñèìâîë - -";
+ Text[ chinese_traditional ] = "¦r¤¸";
+ Text[ arabic ] = "ÇáÎØ";
+ Text[ dutch ] = "Teken";
+ Text[ chinese_simplified ] = "×Ö·û";
+ Text[ greek ] = "×áñáêôÞñåò";
+ Text[ korean ] = "¹®ÀÚ";
+ Text[ turkish ] = "Karakter";
+};
+TabDialog DLG_DRAWCHAR
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Schrift" ;
+ Text [ ENGLISH ] = "Character" ;
+ Text [ norwegian ] = "Character" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Caractere" ;
+ Text [ portuguese ] = "Tipo de letra" ;
+ Text [ finnish ] = "Merkki" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "Police" ;
+ Text [ swedish ] = "Teckensnitt" ;
+ Text [ dutch ] = "Lettertype" ;
+ Text [ spanish ] = "Fuente" ;
+ Text [ english_us ] = "Font" ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_CHAR_STD ;
+ Text = "Schrift" ;
+ Text [ ENGLISH ] = "Character" ;
+ Text [ norwegian ] = "Character" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Caractere" ;
+ Text [ portuguese ] = "Tipo de letra" ;
+ Text [ finnish ] = "Merkki" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "Police" ;
+ Text [ swedish ] = "Teckensnitt" ;
+ Text [ dutch ] = "Lettertype" ;
+ Text [ spanish ] = "Fuente" ;
+ Text [ english_us ] = "Font" ;
+ PageResID = TP_CHAR_STD ;
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ russian ] = "Øðèôò";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "Ì«ÝÄ";
+ Text[ chinese_traditional ] = "¦r«¬";
+ Text[ arabic ] = "ÇáÎØ";
+ Text[ dutch ] = "Lettertype";
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ greek ] = "ÃñáììáôïóåéñÜ";
+ Text[ korean ] = "±Û²Ã";
+ Text[ turkish ] = "Yazýtipi";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ russian ] = "Øðèôò";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "Ì«ÝÄ";
+ Text[ chinese_traditional ] = "¦r«¬";
+ Text[ arabic ] = "ÇáÎØ";
+ Text[ dutch ] = "Lettertype";
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ greek ] = "ÃñáììáôïóåéñÜ";
+ Text[ korean ] = "±Û²Ã";
+ Text[ turkish ] = "Yazýtipi";
+};
+TabPage TP_CHAR_URL
+{
+ HelpID = HID_CHAR_URL ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_URL
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 72 + LBOX_DIFF ) ;
+ Text = "Hyperlink" ;
+ Text [ English ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ dutch ] = "Hyperlink";
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ };
+ FixedText FT_URL
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "U~RL" ;
+ Text [ English ] = "U~RL" ;
+ Text [ english_us ] = "~URL" ;
+ Text [ italian ] = "U~RL" ;
+ Text [ spanish ] = "~URL" ;
+ Text [ french ] = "U~RL" ;
+ Text [ dutch ] = "U~RL" ;
+ Text [ swedish ] = "U~RL" ;
+ Text [ danish ] = "URL" ;
+ Text [ portuguese_brazilian ] = "U~RL" ;
+ Text [ portuguese ] = "U~RL" ;
+ Text[ chinese_simplified ] = "~URL";
+ Text[ russian ] = "U~RL";
+ Text[ polish ] = "URL";
+ Text[ japanese ] = "URL(~U)";
+ Text[ chinese_traditional ] = "~URL";
+ Text[ arabic ] = "U~RL";
+ Text[ dutch ] = "U~RL";
+ Text[ chinese_simplified ] = "~URL";
+ Text[ greek ] = "URL";
+ Text[ korean ] = "~URL";
+ Text[ turkish ] = "U~RL";
+ };
+ Edit ED_URL
+ {
+ Pos = MAP_APPFONT ( 78 , 14 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_URL
+ {
+ Pos = MAP_APPFONT ( 188 , 14 ) ;
+ Size = MAP_APPFONT ( 60 , 14 ) ;
+ Text = "~Auswählen..." ;
+ Text [ English ] = "~Browse..." ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Browse..." ;
+ Text [ portuguese_brazilian ] = "Durch~suchen..." ;
+ Text [ swedish ] = "~Välj ut..." ;
+ Text [ danish ] = "Gennemse..." ;
+ Text [ italian ] = "~Sfoglia..." ;
+ Text [ spanish ] = "~Seleccionar..." ;
+ Text [ french ] = "~Sélectionner..." ;
+ Text [ dutch ] = "~Selecteren..." ;
+ Text [ portuguese ] = "~Pesquisar..." ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~B)...";
+ Text[ russian ] = "~Âûáðàòü...";
+ Text[ polish ] = "Wybierz...";
+ Text[ japanese ] = "‘I‘ð(~B)...";
+ Text[ chinese_traditional ] = "¿ï¾Ü(~B)...";
+ Text[ arabic ] = "ÇÓÊÚÑÇÖ...";
+ Text[ dutch ] = "~Selecteren...";
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~B)...";
+ Text[ greek ] = "~ÅðéëïãÞ...";
+ Text[ korean ] = "¼±ÅÃÇϱâ(~B)...";
+ Text[ turkish ] = "A~raþtýr...";
+ };
+ FixedText FT_TEXT
+ {
+ Pos = MAP_APPFONT ( 12 , 30 ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "Te~xt" ;
+ Text [ English ] = "Text" ;
+ Text[ english_us ] = "Te~xt";
+ Text[ portuguese ] = "Te~xto";
+ Text[ russian ] = "Óêàçàíèå";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ dutch ] = "~Opmerking";
+ Text[ french ] = "~Texte";
+ Text[ spanish ] = "In~dicación";
+ Text[ italian ] = "Nota";
+ Text[ danish ] = "Tekst";
+ Text[ swedish ] = "Hänv~isning";
+ Text[ polish ] = "Tekst";
+ Text[ portuguese_brazilian ] = "H~inweis";
+ Text[ japanese ] = "•¶Žš—ñ(~K)";
+ Text[ korean ] = "¸Þ¸ð(~O)";
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ turkish ] = "B~ilgi";
+ Text[ arabic ] = "äÕ";
+ };
+ Edit ED_TEXT
+ {
+ Pos = MAP_APPFONT ( 78 , 29 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 45 ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "~Name" ;
+ Text [ English ] = "~Name" ;
+ Text [ english_us ] = "~Name" ;
+ Text [ italian ] = "~Nome" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "~Naam" ;
+ Text [ swedish ] = "~Namn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ portuguese_brazilian ] = "~Name" ;
+ Text [ portuguese ] = "~Nome" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ russian ] = "~Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ dutch ] = "~Naam";
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ turkish ] = "~Ad";
+ };
+ Edit ED_NAME
+ {
+ Pos = MAP_APPFONT ( 78 , 44 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ FixedText FT_TARGET
+ {
+ Pos = MAP_APPFONT ( 12 , 60 ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "~Frame" ;
+ Text [ English ] = "Frame" ;
+ Text [ english_us ] = "Target Frame" ;
+ Text [ portuguese_brazilian ] = "~Targetframe" ;
+ Text [ swedish ] = "~Ram" ;
+ Text [ danish ] = "Frame" ;
+ Text [ italian ] = "~Frame" ;
+ Text [ spanish ] = "~Frame" ;
+ Text [ french ] = "~Frame" ;
+ Text [ dutch ] = "~Frame" ;
+ Text [ portuguese ] = "~Frame" ;
+ Text[ chinese_simplified ] = "¿ò¶ÔÏó";
+ Text[ russian ] = "~Êàäð";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "ÌÚ°Ñ";
+ Text[ chinese_traditional ] = "°T®Ø";
+ Text[ arabic ] = "~Frame";
+ Text[ dutch ] = "~Frame";
+ Text[ chinese_simplified ] = "¿ò¶ÔÏó";
+ Text[ greek ] = "Ðëáßóéï";
+ Text[ korean ] = "¸ñÇ¥ ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "~Frame";
+ };
+ ComboBox LB_TARGET
+ {
+ Pos = MAP_APPFONT ( 78 , 59 ) ;
+ Size = MAP_APPFONT ( 104 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ Group = TRUE ;
+ };
+ PushButton PB_EVENT
+ {
+ Pos = MAP_APPFONT ( 188 , 31 ) ;
+ Size = MAP_APPFONT ( 60 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "~Ereignisse..." ;
+ Text [ English ] = "Events..." ;
+ Text [ english_us ] = "~Events..." ;
+ Text [ italian ] = "~Eventi" ;
+ Text [ french ] = "~Événements..." ;
+ Text [ dutch ] = "~Gebeurtenissen" ;
+ Text [ swedish ] = "Händ~elser..." ;
+ Text [ danish ] = "Begivenheder..." ;
+ Text [ spanish ] = "~Acontecimientos..." ;
+ Text [ portuguese_brazilian ] = "~Ereignisse..." ;
+ Text [ portuguese ] = "~Eventos..." ;
+ Text[ chinese_simplified ] = "ʼþ(~E)...";
+ Text[ russian ] = "Ñîáûòèÿ...";
+ Text[ polish ] = "Wy~darzenia...";
+ Text[ japanese ] = "ŽÀsŒ_‹@(~E)...";
+ Text[ chinese_traditional ] = "¬ù·|(~E)...";
+ Text[ arabic ] = "ÃÍÏÇË...";
+ Text[ dutch ] = "~Gebeurtenissen";
+ Text[ chinese_simplified ] = "ʼþ(~E)...";
+ Text[ greek ] = "Ãåãïíüôá...";
+ Text[ korean ] = "À̺¥Æ®(~E)...";
+ Text[ turkish ] = "Olaylar...";
+ };
+ GroupBox GB_STYLE
+ {
+ Pos = MAP_APPFONT ( 6 , 78 + LBOX_DIFF ) ;
+ Size = MAP_APPFONT ( 248 , 42 + 2 * LBOX_DIFF ) ;
+ Text = "Zeichenvorlagen" ;
+ Text [ English ] = "Character styles" ;
+ Text [ dutch ] = "Tekenopmaakprofielen" ;
+ Text [ english_us ] = "Character Styles" ;
+ Text [ italian ] = "Modelli di carattere" ;
+ Text [ spanish ] = "Estilos de caracteres" ;
+ Text [ french ] = "Styles de caractère" ;
+ Text [ swedish ] = "Teckenformatmallar" ;
+ Text [ danish ] = "Tegntypografier" ;
+ Text [ portuguese_brazilian ] = "Zeichenvorlagen" ;
+ Text [ portuguese ] = "Estilos de caracteres" ;
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ russian ] = "Ñòèëè çíàêîâ";
+ Text[ polish ] = "Style znaku";
+ Text[ japanese ] = "÷½Ä½À²Ù";
+ Text[ chinese_traditional ] = "¦r¤¸¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÃÍÑÝ";
+ Text[ dutch ] = "Tekenopmaakprofielen";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯Çü";
+ Text[ turkish ] = "Karakter biçimi";
+ };
+ FixedText FT_VISITED
+ {
+ Pos = MAP_APPFONT ( 12 , 91 + LBOX_DIFF ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "~Besuchter Link" ;
+ Text [ English ] = "Visited link" ;
+ Text [ dutch ] = "B~ezochte Link" ;
+ Text [ english_us ] = "~Visited links" ;
+ Text [ italian ] = "Per il ~sito visitato" ;
+ Text [ spanish ] = "Vínculos ~visitados" ;
+ Text [ french ] = "Lien ~visité" ;
+ Text [ swedish ] = "~Besökt länk" ;
+ Text [ danish ] = "Besøgt hyperlink" ;
+ Text [ portuguese_brazilian ] = "~Besuchte Links" ;
+ Text [ portuguese ] = "Links ~visitados" ;
+ Text[ chinese_simplified ] = "·ÃÎʹýµÄÁ´½Ó(~V)";
+ Text[ russian ] = "Ïîñåùåííûå ññûëêè";
+ Text[ polish ] = "Odwiedzone ³¹cze";
+ Text[ japanese ] = "ŠJ‚¢‚½‚±‚Æ‚Ì‚ ‚éØݸ(~V)";
+ Text[ chinese_traditional ] = "³X°Ý¹Lªº±¶®|(~V)";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÓÈÞ ÒíÇÑÊå";
+ Text[ dutch ] = "B~ezochte Link";
+ Text[ chinese_simplified ] = "·ÃÎʹýµÄÁ´½Ó(~V)";
+ Text[ greek ] = "ÓõíäÝóåéò ðïõ Ý÷ïõí åðéóêåöèåß";
+ Text[ korean ] = "¹æ¹®ÇÑ ¸µÅ©(~V)";
+ Text[ turkish ] = "~Kullanýlmýþ baðlantý";
+ };
+ ListBox LB_VISITED
+ {
+ Pos = MAP_APPFONT ( 78 , 90 + LBOX_DIFF ) ;
+ Size = MAP_APPFONT ( 104 , 60 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ Group = TRUE ;
+ };
+ FixedText FT_NOT_VISITED
+ {
+ Pos = MAP_APPFONT ( 12 , 106 + 2 * LBOX_DIFF ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "~Unbesuchter Link" ;
+ Text [ English ] = "Unvisited link" ;
+ Text [ english_us ] = "Unvisited ~links" ;
+ Text [ italian ] = "Per il sito non ~visitato" ;
+ Text [ spanish ] = "Vínculos no v~isitados" ;
+ Text [ french ] = "Lien ~non visité" ;
+ Text [ dutch ] = "N~iet-bezochte Link" ;
+ Text [ swedish ] = "~Obesökt länk" ;
+ Text [ danish ] = "Ubesøgt hyperlink" ;
+ Text [ portuguese_brazilian ] = "~Unbesuchte Links" ;
+ Text [ portuguese ] = "~Link não visitado" ;
+ Text[ chinese_simplified ] = "ÉÐδ·ÃÎʹýµÄÁ´½Ó(~L)";
+ Text[ russian ] = "Íåïîñåùåííûå ññûëêè";
+ Text[ polish ] = "Nie odwiedzone ³¹cze";
+ Text[ japanese ] = "ŠJ‚¢‚½‚±‚Æ‚Ì‚È‚¢Øݸ(~L)";
+ Text[ chinese_traditional ] = "¥¼³X°Ý¹Lªº±¶®|(~L)";
+ Text[ arabic ] = "ÇÑÊÈÇØ áã íÓÈÞ ÒíÇÑÊå";
+ Text[ dutch ] = "N~iet-bezochte Link";
+ Text[ chinese_simplified ] = "ÉÐδ·ÃÎʹýµÄÁ´½Ó(~L)";
+ Text[ greek ] = "ÓõíäÝóåéò ÷ùñßò åðßóêåøç";
+ Text[ korean ] = "¹æ¹®ÇÏÁö ¾ÊÀº ¸µÅ©(~L)";
+ Text[ turkish ] = "Kullanýl~mamýþ baðlantý";
+ };
+ ListBox LB_NOT_VISITED
+ {
+ Pos = MAP_APPFONT ( 78 , 105 + 2 * LBOX_DIFF ) ;
+ Size = MAP_APPFONT ( 104 , 60 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ Group = TRUE ;
+ };
+};
diff --git a/sw/source/ui/chrdlg/chrdlg.src b/sw/source/ui/chrdlg/chrdlg.src
new file mode 100644
index 000000000000..b21061744a8f
--- /dev/null
+++ b/sw/source/ui/chrdlg/chrdlg.src
@@ -0,0 +1,169 @@
+/*************************************************************************
+ *
+ * $RCSfile: chrdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "chrdlg.hrc"
+String STR_TEXTCOLL_HEADER
+{
+ TEXT = " (Absatzvorlage: " ;
+ TEXT [ English ] = " (Paragraph Style: " ;
+ TEXT [ norwegian ] = " (Avsnittsmal: " ;
+ TEXT [ italian ] = "(Modello di paragrafo: " ;
+ TEXT [ portuguese_brazilian ] = "(Estilo de Parágrafo: " ;
+ TEXT [ portuguese ] = "(Estilo de parágrafo: " ;
+ TEXT [ finnish ] = " (Kappaletyyli: " ;
+ TEXT [ danish ] = "(Afsnitstypografi: " ;
+ TEXT [ french ] = "(Style de paragraphe : " ;
+ TEXT [ swedish ] = "(Styckeformatmall: " ;
+ TEXT [ dutch ] = "(Alinea-opmaakprofiel: " ;
+ TEXT [ spanish ] = "(Estilo de párrafo: " ;
+ TEXT [ english_us ] = "(Paragraph Style: " ;
+ TEXT[ chinese_simplified ] = "(¶ÎÂäÑùʽ£º ";
+ TEXT[ russian ] = "(Ñòèëü àáçàöà: ";
+ TEXT[ polish ] = "(Styl akapitu: ";
+ TEXT[ japanese ] = "(’i—Ž½À²Ù: ";
+ TEXT[ chinese_traditional ] = "(¬q¸¨¼Ë¦¡¡G ";
+ TEXT[ arabic ] = "(äãØ ÝÞÑÉ: ";
+ TEXT[ greek ] = "(Ðñüôõðï ðáñáãñÜöïõ: ";
+ TEXT[ korean ] = "(´Ü¶ô À¯Çü: ";
+ TEXT[ turkish ] = "(Paragraf biçimi: ";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_PAGEFMT_HEADER
+{
+ TEXT = " (Seitenvorlage: " ;
+ TEXT [ English ] = " (Page Style: " ;
+ TEXT [ norwegian ] = " (Sidemal: " ;
+ TEXT [ italian ] = "(Modello di pagina: " ;
+ TEXT [ portuguese_brazilian ] = "(Estilo de Página: " ;
+ TEXT [ portuguese ] = "(Estilo de página: " ;
+ TEXT [ finnish ] = " (Sivutyyli: " ;
+ TEXT [ danish ] = "(Sidetypografi: " ;
+ TEXT [ french ] = "(Style de page : " ;
+ TEXT [ swedish ] = "(Sidformatmall: " ;
+ TEXT [ dutch ] = "(Pagina-opmaakprofiel: " ;
+ TEXT [ spanish ] = "(Estilo de página: " ;
+ TEXT [ english_us ] = "(Page Style: " ;
+ TEXT[ chinese_simplified ] = "(Ò³ÃæÑùʽ£º ";
+ TEXT[ russian ] = "(Ñòèëü ñòðàíèöû: ";
+ TEXT[ polish ] = "(Styl strony: ";
+ TEXT[ japanese ] = "(Íß°¼Þ½À²Ù: ";
+ TEXT[ chinese_traditional ] = "(­¶­±¼Ë¦¡¡G ";
+ TEXT[ arabic ] = "(ÞÇáÈ ÇáÕÝÍÉ: ";
+ TEXT[ greek ] = "(Ðñüôõðï óåëßäáò: ";
+ TEXT[ korean ] = "(ÆäÀÌÁö À¯Çü: ";
+ TEXT[ turkish ] = "(Sayfa biçimi: ";
+ TEXT[ language_user1 ] = " ";
+};
+String SW_STR_NONE
+{
+ Text = "[Keine]" ;
+ Text [ English ] = "[None]" ;
+ Text [ norwegian ] = "[Ingen]" ;
+ Text [ italian ] = "[Nessuno]" ;
+ Text [ portuguese_brazilian ] = "[Nenhum]" ;
+ Text [ portuguese ] = "[Nenhum]" ;
+ Text [ finnish ] = "[Ei ole]" ;
+ Text [ danish ] = "[Ingen]" ;
+ Text [ french ] = "[Aucun(e)]" ;
+ Text [ swedish ] = "[Ingen]" ;
+ Text [ dutch ] = "[Geen]" ;
+ Text [ spanish ] = "[Ninguno]" ;
+ Text [ english_us ] = "[None]" ;
+ Text[ chinese_simplified ] = "[ÎÞ]";
+ Text[ russian ] = "[Áåç]";
+ Text[ polish ] = "[brak]";
+ Text[ japanese ] = "[‚È‚µ]";
+ Text[ language_user1 ] = "èë? áå";
+ Text[ chinese_traditional ] = "[µL]";
+ Text[ arabic ] = "[ÈÏæä]";
+ Text[ greek ] = "[ÊáíÝíá]";
+ Text[ korean ] = "[¾øÀ½]";
+ Text[ turkish ] = "[yok]";
+};
+InfoBox MSG_ILLEGAL_PAGENUM
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ /* ### ACHTUNG: Neuer Text in Resource? Seitennummer kann nicht gesetzt werden. Auf linken Seiten dürfen nur gerade Seitenzahlen, auf rechten Seiten nur ungerade Seitenzahlen verwendet werden. : Seitennummer kann nicht gesetzt werden. Auf linken Seiten d³rfen nur gerade Seitenzahlen, auf rechten Seiten nur ungerade Seitenzahlen verwendet werden. */
+ MESSAGE = "Seitennummer kann nicht gesetzt werden. Auf linken Seiten dürfen nur gerade Seitenzahlen, auf rechten Seiten nur ungerade Seitenzahlen verwendet werden." ;
+ MESSAGE [ English ] = "Page number can't be applied to the actual page. Even numbers can be used on left pages, odd numbers on right pages." ;
+ MESSAGE [ norwegian ] = "Sidenummer kan ikke brukes på den aktuelle siden. Partall kan brukes på venstre sider, oddetall på høyre sider." ;
+ MESSAGE [ italian ] = "Impossibile usare il numero pagina alla pagina corrente. I numeri pari possono essere usati sulle pagine sinistre, i numeri dispari sulle pagine destre." ;
+ MESSAGE [ portuguese_brazilian ] = "Número de página não pode ser aplicado à página atual. Números pares podem ser utilizados em páginas esquerdas, números ímpares em páginas direitas." ;
+ MESSAGE [ portuguese ] = "Número de página não pode ser atribuído à página actual. Nas páginas da esquerda podem apenas ser usados números pares e nas páginas da direita números ímpares." ;
+ MESSAGE [ finnish ] = "Sivunumeroa ei voi lisätä sivulle. Parillista numeroa käytetään vasemmalla sivulla ja paritonta oikealla sivulla." ;
+ MESSAGE [ danish ] = "Sidetallet kan ikke indsættes. Der må kun bruges lige sidetal på venstre side og ulige sidetal på højre sider." ;
+ MESSAGE [ french ] = "Le numéro de page ne peut être assigné à cette page. Les nombres pairs ne peuvent être utilisés que sur des pages de gauche, les nombres impairs que sur celles de droite." ;
+ MESSAGE [ swedish ] = "Sidnumret kan inte sättas in på den här sidan. På vänstersidor får bara jämna nummer användas, på högersidor bara udda nummer." ;
+ MESSAGE [ dutch ] = "Dit paginanummer kan niet aan de actiuele pagina worden toegewezen. Linkerpagina's krijgen even nummers, rechterpagina's oneven nummers." ;
+ MESSAGE [ spanish ] = "El número de la página no se puede colocar. En páginas izquierdas se pueden utilizar solo números pares, en las derechas solo impares." ;
+ MESSAGE [ english_us ] = "Page numbers cannot be applied to the current page. Even numbers can be used on left pages, odd numbers on right pages." ;
+ MESSAGE[ chinese_simplified ] = "ÎÞ·¨É趨ҳÂë¡£ÔÚ×óÒ³ÉÏÖ»ÔÊÐí²ÉÓÃżÊýÒ³Â룬ÔÚÓÒÒ³ÉÏÖ»ÔÊÐí²ÉÓÃÆæÊýÒ³Âë¡£";
+ MESSAGE[ russian ] = "Íîìåðà ñòðàíèö ïðîñòàâèòü íåâîçìîæíî. Ñ ëåâîé ñòîðîíû ìîãóò áûòü ïðîñòàâëåíû òîëüêî ÷åòíûå, ñ ïðàâîé - òîëüêî íå÷åòíûå öèôðû.";
+ MESSAGE[ polish ] = "Nie mo¿na nanieœæ numeru stron. Na lewych stronach mo¿na nanieœæ tylko parzyste numery stron, na prawych tylko nieparzyste numery stron.";
+ MESSAGE[ japanese ] = "Íß°¼Þ”Ô†‚ª“K—p‚Å‚«‚Ü‚¹‚ñB¶Íß°¼Þ‚É‚Í‹ô”¤‰EÍß°¼Þ‚ɂ͊ðŽg—p‚µ‚ĉº‚³‚¢B";
+ MESSAGE[ chinese_traditional ] = "µLªk³]©w­¶½X¡C¦b¥ª­¶¥u¯à°÷³]©w°¸¼Æ¡A¦b¥k­¶¥u¯à³]©w©_¼Æ¡C";
+ MESSAGE[ arabic ] = "áÇ íãßä ÅÏÑÇÌ ÃÑÞÇã ÇáÕÝÍÇÊ Ýí ÇáÕÝÍÉ ÇáÍÇáíÉ. Úáì ÇáÕÝÍÇÊ ÇáíÓÑì¡ íÓãÍ ÈÇÓÊÎÏÇã ÃÑÞÇã ÒæÌíÉ ÝÞØ¡ æÚáì ÇáÕÝÍÇÊ Çáíãäì¡ ÃÑÞÇã ÝÑÏíÉ ÝÞØ.";
+ MESSAGE[ greek ] = "Äåí åßíáé äõíáôüí íá ôïðïèåôçèåß ï áñéèìüò óåëßäáò. Óå áñéóôåñÝò óåëßäåò åðéôñÝðåôáé ç ôïðïèÝôçóç ìüíï æõãþí áñéèìþí óåëßäáò, åíþ óå äåîéÝò óåëßäåò ìüíï áñôßùí áñéèìþí.";
+ MESSAGE[ korean ] = "ÆäÀÌÁö ¹øÈ£´Â ÇöÀç ÆäÀÌÁö¿¡ Àû¿ëµÇÁö ¾Ê½À´Ï´Ù. ¦¼ö´Â ¿ÞÂÊ ÆäÀÌÁö¿¡ »ç¿ëµÇ°í,Ȧ¼ö´Â ¿À¸¥ÂÊ ÆäÀÌÁö¿¡ »ç¿ëµË´Ï´Ù.";
+ MESSAGE[ turkish ] = "Sayfa numarasý verilemiyor. Sol sayfalarda yalnýzca çift sayfa numaralarý, sað sayfalarda ise yalnýzca tek sayfa numaralarý kullanýlabilir.";
+ MESSAGE[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
new file mode 100644
index 000000000000..ea8b4bfeee2e
--- /dev/null
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -0,0 +1,744 @@
+/*************************************************************************
+ *
+ * $RCSfile: drpcps.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <hintids.hxx>
+#define _SVSTDARR_STRINGSDTOR
+#define _SVSTDARR_STRINGSISORTDTOR
+#include <svtools/svstdarr.hxx>
+
+#include "cmdid.h"
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "globals.hrc"
+
+
+#ifndef _METRIC_HXX //autogen
+#include <vcl/metric.hxx>
+#endif
+
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFX_OBJSH_HXX //autogen
+#include <sfx2/objsh.hxx>
+#endif
+
+#include "charatr.hxx"
+#include "viewopt.hxx"
+#include "drpcps.hxx"
+#include "paratr.hxx"
+#include "uitool.hxx"
+#include "charfmt.hxx"
+
+#include "chrdlg.hrc"
+#include "drpcps.hrc"
+
+// Globals ******************************************************************
+
+static USHORT __FAR_DATA aPageRg[] = {
+ RES_PARATR_DROP, RES_PARATR_DROP,
+ 0
+};
+
+
+
+// class SwDropCapsPict *****************************************************
+
+class SwDropCapsPict : public Control
+{
+ String aText;
+ BYTE nLines;
+ USHORT nDistance;
+
+ virtual void Paint(const Rectangle &rRect);
+
+public:
+
+ SwDropCapsPict(Window *pParent, const ResId &rResId) : Control(pParent, rResId) {}
+ ~SwDropCapsPict();
+
+ void SetText (const String &rT) {aText = rT; Invalidate();}
+ void SetLines ( BYTE nL) {nLines = nL; Invalidate();}
+ void SetDistance( USHORT nD) {nDistance = nD; Invalidate();}
+};
+
+
+/****************************************************************************
+Default-String aus Zeichenanzahl erzeugen (A, AB, ABC, ...)
+****************************************************************************/
+
+
+String GetDefaultString(USHORT nChars)
+{
+ String aStr;
+ for (USHORT i = 0; i < nChars; i++)
+ aStr += String((char) (i + 65));
+ return aStr;
+}
+
+/****************************************************************************
+Pict: Dtor
+****************************************************************************/
+
+
+ SwDropCapsPict::~SwDropCapsPict()
+{
+}
+
+/****************************************************************************
+Pict: Paint-Overload
+****************************************************************************/
+
+#define LINES 10
+#define BORDER 2
+
+
+void SwDropCapsPict::Paint(const Rectangle &rRect)
+{
+ if (!IsVisible())
+ return;
+
+ SetMapMode(MapMode(MAP_PIXEL));
+ SetLineColor();
+
+ // Weisser Hintergrund
+ SetFillColor(Color(COL_WHITE));
+ DrawRect(Rectangle(Point(0, 0), GetOutputSizePixel()));
+ SetClipRegion(Region(Rectangle(
+ Point(BORDER, BORDER),
+ Size (GetOutputSizePixel().Width () - 2 * BORDER,
+ GetOutputSizePixel().Height() - 2 * BORDER))));
+
+ // Graue Linien
+ long nTotLineH = (GetOutputSizePixel().Height() - 2 * BORDER) / LINES,
+ nLineH = nTotLineH - 2;
+
+ ASSERT(nLineH > 0, "So klein lassen wir uns nicht machen");
+ long nY0 = (GetOutputSizePixel().Height() - (LINES * nTotLineH)) / 2;
+ SetFillColor(Color(COL_LIGHTGRAY));
+ for (USHORT i = 0; i < LINES; i++)
+ DrawRect(Rectangle(Point(BORDER, nY0 + i * nTotLineH), Size(GetOutputSizePixel().Width() - 2 * BORDER, nLineH)));
+
+ // Text berechnen
+ Font aFont;
+ {
+ SwDropCapsPage *pPage = (SwDropCapsPage *) GetParent();
+ if (!pPage->aTemplateBox.GetSelectEntryPos())
+ {
+ // Font an Absatzanfang erfragen
+ pPage->rSh.SttCrsrMove();
+ pPage->rSh.Push();
+ pPage->rSh.ClearMark();
+ pPage->rSh.MovePara(fnParaCurr,fnParaStart);
+
+ SfxItemSet aSet(pPage->rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT);
+ pPage->rSh.GetAttr(aSet);
+ SvxFontItem aFmtFont((SvxFontItem &) aSet.Get(RES_CHRATR_FONT));
+
+ aFont.SetFamily (aFmtFont.GetFamily());
+ aFont.SetName (aFmtFont.GetFamilyName());
+ aFont.SetPitch (aFmtFont.GetPitch());
+ aFont.SetCharSet(aFmtFont.GetCharSet());
+
+ pPage->rSh.Pop(FALSE);
+ pPage->rSh.EndCrsrMove();
+ }
+ else
+ {
+ // Font an Zeichenvorlage erfragen
+ SwCharFmt *pFmt = pPage->rSh.GetCharStyle(
+ pPage->aTemplateBox.GetSelectEntry(),
+ SwWrtShell::GETSTYLE_CREATEANY );
+ ASSERT(pFmt, "Zeichenvorlage existiert nicht!");
+ const SvxFontItem &rFmtFont = pFmt->GetFont();
+
+ aFont.SetFamily (rFmtFont.GetFamily());
+ aFont.SetName (rFmtFont.GetFamilyName());
+ aFont.SetPitch (rFmtFont.GetPitch());
+ aFont.SetCharSet(rFmtFont.GetCharSet());
+ }
+ }
+
+ long nTextH = nLines * nTotLineH;
+ aFont.SetSize(Size(0, nTextH));
+ aFont.SetTransparent(TRUE);
+ SetFont(aFont);
+ USHORT nLeading = (USHORT) GetFontMetric().GetLeading();
+ aFont.SetSize(Size(0, aFont.GetSize().Height() + nLeading));
+ SetFont(aFont);
+
+ // Texthintergrund mit Abstand (240 twips ~ 1 Zeilenhoehe)
+
+ ULONG lDistance = nDistance;
+ USHORT nDistW = (USHORT) (ULONG) (((lDistance * 100) / 240) * nTotLineH) / 100;
+ SetFillColor(Color(COL_WHITE));
+ if(((SwDropCapsPage*)GetParent())->aDropCapsBox.IsChecked())
+ {
+ DrawRect(Rectangle(
+ Point(BORDER, nY0),
+ Size (GetTextWidth(aText) + nDistW, nTextH)));
+
+ // Text zeichnen
+ DrawText(Point(BORDER, nY0 - nLeading), aText);
+ }
+
+ SetClipRegion();
+}
+
+/****************************************************************************
+Dlg: Ctor
+****************************************************************************/
+
+
+SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ) :
+
+ SfxSingleTabDialog(pParent, rSet, 0)
+
+{
+ SwDropCapsPage* pPage = (SwDropCapsPage*) SwDropCapsPage::Create(this, rSet);
+ pPage->SetFormat(FALSE);
+ SetTabPage(pPage);
+}
+
+/****************************************************************************
+Dlg: Dtor
+****************************************************************************/
+
+
+ SwDropCapsDlg::~SwDropCapsDlg()
+{
+}
+
+/****************************************************************************
+Page: Ctor
+****************************************************************************/
+
+
+SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_DROPCAPS), rSet),
+
+ aDropCapsBox (this, SW_RES(CB_SWITCH )),
+ aWholeWordCB (this, SW_RES(CB_WORD )),
+ aSwitchText (this, SW_RES(FT_DROPCAPS )),
+ aDropCapsField(this, SW_RES(FLD_DROPCAPS)),
+ aLinesText (this, SW_RES(TXT_LINES )),
+ aLinesField (this, SW_RES(FLD_LINES )),
+ aDistanceText (this, SW_RES(TXT_DISTANCE)),
+ aDistanceField(this, SW_RES(FLD_DISTANCE)),
+ aTextText (this, SW_RES(TXT_TEXT )),
+ aTextEdit (this, SW_RES(EDT_TEXT )),
+ aTemplateText (this, SW_RES(TXT_TEMPLATE)),
+ aTemplateBox (this, SW_RES(BOX_TEMPLATE)),
+ aSettingsGroup(this, SW_RES(GRP_SETTINGS)),
+ aPictBox (this, SW_RES(BOX_PICT )),
+ aContentBox (this, SW_RES(BOX_CONTENT )),
+ pPict (new SwDropCapsPict(this, SW_RES(CNT_PICT))),
+ bModified(FALSE),
+ bFormat(TRUE),
+ rSh(::GetActiveView()->GetWrtShell())
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ USHORT nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
+ bHtmlMode = nHtmlMode & HTMLMODE_ON ? TRUE : FALSE;
+
+ //Im Vorlagendialog kann der Text nicht beeinflusst werden
+ aTextText.Enable( !bFormat );
+ aTextEdit.Enable( !bFormat );
+
+ // Metriken
+ SetMetric( aDistanceField, GetDfltMetric(bHtmlMode) );
+
+ // Handler installieren
+ Link aLk = LINK(this, SwDropCapsPage, ModifyHdl);
+ aDropCapsField.SetModifyHdl( aLk );
+ aLinesField .SetModifyHdl( aLk );
+ aDistanceField.SetModifyHdl( aLk );
+ aTextEdit .SetModifyHdl( aLk );
+ aDropCapsBox .SetClickHdl (LINK(this, SwDropCapsPage, ClickHdl ));
+ aTemplateBox .SetSelectHdl(LINK(this, SwDropCapsPage, SelectHdl));
+ aWholeWordCB .SetClickHdl (LINK(this, SwDropCapsPage, WholeWordHdl ));
+}
+
+/****************************************************************************
+Page: Dtor
+****************************************************************************/
+
+
+ SwDropCapsPage::~SwDropCapsPage()
+{
+ delete pPict;
+}
+
+
+int SwDropCapsPage::DeactivatePage(SfxItemSet * pSet)
+{
+ if ( pSet )
+ FillSet( *pSet );
+
+ return LEAVE_PAGE;
+}
+
+/****************************************************************************
+Page: Factory
+****************************************************************************/
+
+
+SfxTabPage* SwDropCapsPage::Create(Window *pParent,
+ const SfxItemSet &rSet)
+{
+ return new SwDropCapsPage(pParent, rSet);
+}
+
+/****************************************************************************
+Page: FillItemSet-Overload
+****************************************************************************/
+
+
+BOOL SwDropCapsPage::FillItemSet(SfxItemSet &rSet)
+{
+ if(bModified)
+ FillSet(rSet);
+ return bModified;
+}
+
+/****************************************************************************
+Page: Reset-Overload
+****************************************************************************/
+
+
+void SwDropCapsPage::Reset(const SfxItemSet &rSet)
+{
+ // Zeichen, Zeilen, Abstand und Text
+ SwFmtDrop aFmtDrop((SwFmtDrop &) rSet.Get(RES_PARATR_DROP));
+ if (aFmtDrop.GetLines() > 1)
+ {
+ aDropCapsField.SetValue(aFmtDrop.GetChars());
+ aLinesField .SetValue(aFmtDrop.GetLines());
+ aDistanceField.SetValue(aDistanceField.Normalize(aFmtDrop.GetDistance()), FUNIT_TWIP);
+ aWholeWordCB .Check (aFmtDrop.GetWholeWord());
+ }
+ else
+ {
+ aDropCapsField.SetValue(1);
+ aLinesField .SetValue(3);
+ aDistanceField.SetValue(0);
+ }
+
+ // Preview
+ pPict->SetText(aTextEdit.GetText());
+ pPict->SetLines((BYTE )aLinesField.GetValue());
+ pPict->SetDistance((USHORT)aDistanceField.Denormalize(aDistanceField.GetValue(FUNIT_TWIP)));
+
+ ::FillCharStyleListBox(aTemplateBox, rSh.GetView().GetDocShell(), TRUE);
+
+ aTemplateBox.InsertEntry(SW_RESSTR(SW_STR_NONE), 0);
+ // Vorlage defaulten
+ aTemplateBox.SelectEntryPos(0);
+ if (aFmtDrop.GetCharFmt())
+ aTemplateBox.SelectEntry(aFmtDrop.GetCharFmt()->GetName());
+
+ // Controls enablen
+ aDropCapsBox.Check(aFmtDrop.GetLines() > 1);
+ const USHORT nVal = USHORT(aDropCapsField.GetValue());
+ if (bFormat)
+ aTextEdit.SetText(GetDefaultString(nVal));
+ else
+ {
+ aTextEdit.SetText(rSh.GetDropTxt(nVal));
+ aTextEdit.Enable();
+ aTextText.Enable();
+ }
+ ClickHdl(&aDropCapsBox);
+ bModified = FALSE;
+}
+
+/****************************************************************************
+Page: Click-Handler der CheckBox
+****************************************************************************/
+
+
+IMPL_LINK( SwDropCapsPage, ClickHdl, Button *, EMPTYARG )
+{
+ BOOL bChecked = aDropCapsBox.IsChecked();
+
+ aWholeWordCB .Enable( bChecked && !bHtmlMode );
+
+ aSwitchText.Enable( bChecked && !aWholeWordCB.IsChecked() );
+ aDropCapsField.Enable( bChecked && !aWholeWordCB.IsChecked() );
+ aLinesText .Enable( bChecked );
+ aLinesField .Enable( bChecked );
+ aDistanceText.Enable( bChecked );
+ aDistanceField.Enable( bChecked );
+ aTemplateText .Enable( bChecked );
+ aTemplateBox .Enable( bChecked );
+ aTextEdit .Enable( bChecked && !bFormat );
+ aTextText .Enable( bChecked && !bFormat );
+
+ if ( bChecked )
+ {
+ ModifyHdl(&aDropCapsField);
+ aDropCapsField.GrabFocus();
+ }
+ else
+ pPict->SetText(aEmptyStr);
+
+ bModified = TRUE;
+
+ return 0;
+}
+
+/****************************************************************************
+Page: Click-Handler der CheckBox
+****************************************************************************/
+
+
+IMPL_LINK( SwDropCapsPage, WholeWordHdl, CheckBox *, EMPTYARG )
+{
+ aDropCapsField.Enable( !aWholeWordCB.IsChecked() );
+
+ ModifyHdl(&aDropCapsField);
+
+ bModified = TRUE;
+
+ return 0;
+}
+
+/****************************************************************************
+Page: Modify-Handler der SpinFields
+****************************************************************************/
+
+
+IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
+{
+ String sPreview;
+
+ // Ggf. Text setzen
+ if (pEdit == &aDropCapsField)
+ {
+ USHORT nVal;
+ BOOL bSetText = FALSE;
+
+ if (!aWholeWordCB.IsChecked())
+ nVal = (USHORT)aDropCapsField.GetValue();
+ else
+ nVal = (USHORT)aDropCapsField.GetMax();
+
+ if (bFormat || !rSh.GetDropTxt(1).Len())
+ sPreview = GetDefaultString(nVal);
+ else
+ {
+ bSetText = TRUE;
+ sPreview = rSh.GetDropTxt(nVal);
+ }
+
+ String sEdit(aTextEdit.GetText());
+
+ if (sEdit.Len() && sPreview.CompareTo(sEdit, sEdit.Len()) != COMPARE_EQUAL)
+ {
+ sPreview = sEdit.Copy(0, sPreview.Len());
+ bSetText = FALSE;
+ }
+
+ if (aWholeWordCB.IsChecked()) // Nur erstes Wort anzeigen
+ {
+ USHORT nPos = sPreview.Search(' ');
+
+ if (nPos != STRING_NOTFOUND)
+ sPreview.Erase(nPos);
+ }
+
+ if (bSetText)
+ aTextEdit.SetText(sPreview);
+ }
+ else if (pEdit == &aTextEdit) // Ggf. Anzahl setzen
+ {
+ USHORT nTmp = aTextEdit.GetText().Len();
+ aDropCapsField.SetValue(Max((USHORT)1, nTmp));
+
+ sPreview = aTextEdit.GetText().Copy(0, nTmp);
+ }
+
+ // Bild anpassen
+ if (pEdit == &aDropCapsField || pEdit == &aTextEdit)
+ pPict->SetText (sPreview);
+ else if (pEdit == &aLinesField)
+ pPict->SetLines((BYTE)aLinesField.GetValue());
+ else
+ pPict->SetDistance((USHORT)aDistanceField.Denormalize(aDistanceField.GetValue(FUNIT_TWIP)));
+
+ bModified = TRUE;
+
+ return 0;
+}
+
+/****************************************************************************
+Page: Select-Handler der Template-Box.
+*****************************************************************************/
+
+
+IMPL_LINK_INLINE_START( SwDropCapsPage, SelectHdl, ListBox *, EMPTYARG )
+{
+ pPict->Invalidate();
+ bModified = TRUE;
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwDropCapsPage, SelectHdl, ListBox *, EMPTYARG )
+
+
+USHORT* SwDropCapsPage::GetRanges()
+{
+ return aPageRg;
+}
+
+
+void SwDropCapsPage::FillSet( SfxItemSet &rSet )
+{
+ if(bModified)
+ {
+ SwFmtDrop aFmt;
+
+ BOOL bOn = aDropCapsBox.IsChecked();
+ if(bOn)
+ {
+ // Anzahl, Zeilen, Abstand
+ aFmt.GetChars() = (BYTE) aDropCapsField.GetValue();
+ aFmt.GetLines() = (BYTE) aLinesField.GetValue();
+ aFmt.GetDistance() = (USHORT) aDistanceField.Denormalize(aDistanceField.GetValue(FUNIT_TWIP));
+ aFmt.GetWholeWord() = aWholeWordCB.IsChecked();
+
+ // Vorlage
+ if (aTemplateBox.GetSelectEntryPos())
+ aFmt.SetCharFmt(rSh.GetCharStyle(aTemplateBox.GetSelectEntry()));
+ }
+ else
+ {
+ aFmt.GetChars() = 1;
+ aFmt.GetLines() = 1;
+ aFmt.GetDistance() = 0;
+ }
+
+ // Attribute setzen
+ const SfxPoolItem* pOldItem;
+ if(0 == (pOldItem = GetOldItem( rSet, FN_FORMAT_DROPCAPS )) ||
+ aFmt != *pOldItem )
+ rSet.Put(aFmt);
+
+ // Harte Textformatierung
+ // Bug 24974: In Gestalter/Vorlagenkatoplog macht das keinen Sinn!!
+ if( !bFormat && aDropCapsBox.IsChecked() )
+ {
+ String sText(aTextEdit.GetText());
+
+ if (!aWholeWordCB.IsChecked())
+ sText.Erase(aDropCapsField.GetValue());
+
+ SfxStringItem aStr(FN_PARAM_1, sText);
+ rSet.Put( aStr );
+ }
+ }
+}
+
+
+/*--------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.100 2000/09/18 16:05:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.99 2000/08/25 10:13:51 os
+ style listbox sorted
+
+ Revision 1.98 2000/07/03 10:33:17 os
+ #72742# resource warnings corrected
+
+ Revision 1.97 2000/07/03 08:04:44 os
+ #72742# resource warnings corrected
+
+ Revision 1.96 2000/04/20 12:54:31 os
+ GetName() returns String&
+
+ Revision 1.95 2000/04/11 08:03:22 os
+ UNICODE
+
+ Revision 1.94 2000/03/03 15:16:58 os
+ StarView remainders removed
+
+ Revision 1.93 2000/02/11 14:43:37 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.92 1999/11/16 17:11:59 os
+ use FillCharStyleListBox
+
+ Revision 1.91 1998/09/08 14:49:16 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+
+ Rev 1.90 08 Sep 1998 16:49:16 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.89 03 Apr 1998 17:06:10 OM
+ #49189 Korrekte Initialenvorschau
+
+ Rev 1.88 03 Apr 1998 16:59:36 OM
+ #49189 Korrekte Initialenvorschau
+
+ Rev 1.87 20 Mar 1998 17:43:28 OM
+ Ganzes Wort als Initialie
+
+ Rev 1.86 12 Sep 1997 10:35:36 OS
+ ITEMID_* definiert
+
+ Rev 1.85 09 Sep 1997 13:33:42 OS
+ lokale class
+
+ Rev 1.84 04 Sep 1997 17:16:22 MA
+ includes
+
+ Rev 1.83 01 Sep 1997 13:25:16 OS
+ DLL-Umstellung
+
+ Rev 1.82 15 Aug 1997 12:12:34 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.81 09 Aug 1997 13:01:26 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.80 08 Aug 1997 17:29:40 OM
+ Headerfile-Umstellung
+
+ Rev 1.79 09 Jul 1997 17:20:50 HJS
+ includes
+
+ Rev 1.78 24 Feb 1997 17:19:44 OS
+ #36936# -> keine PoolId benutzen
+
+ Rev 1.77 19 Feb 1997 19:11:54 MA
+ fix: DropCap, Text per Item
+
+ Rev 1.76 11 Feb 1997 16:35:04 OS
+ Vorlagen in SvStringsISortDtor sortieren
+
+ Rev 1.75 11 Dec 1996 15:46:50 JP
+ neu: holen der HTML-CharVorlagen
+
+ Rev 1.74 11 Nov 1996 09:16:38 MA
+ ResMgr
+
+ Rev 1.73 30 Oct 1996 08:12:10 MA
+ includes
+
+ Rev 1.72 29 Oct 1996 17:36:42 HJS
+ includes
+
+ Rev 1.71 24 Oct 1996 17:07:14 JP
+ Optimierung: Find...ByName
+
+ Rev 1.70 23 Oct 1996 13:49:12 JP
+ SVMEM -> SVSTDARR Umstellung
+
+ Rev 1.69 02 Oct 1996 08:36:14 MA
+ Umstellung Enable/Disable
+
+ Rev 1.68 28 Aug 1996 08:59:10 OS
+ includes
+
+ Rev 1.67 25 Jun 1996 13:57:34 MA
+ atrpafnchxx entfernt
+
+ Rev 1.66 04 Apr 1996 13:38:54 OS
+ Bug 26699: neue Methode FillSet, die keine Aenderungen an der Shell vornimmt
+
+ Rev 1.65 22 Feb 1996 08:28:36 OS
+ Text beim Ausschalten zuruecksetzen
+
+ Rev 1.64 21 Feb 1996 12:41:44 OS
+ Dialog verschoenert, disable ist nicht mehr gleichbedeutend mit Inhalt loeschen
+
+ Rev 1.63 06 Feb 1996 15:18:40 JP
+ Link Umstellung 305
+
+ Rev 1.62 30 Jan 1996 22:52:14 JP
+ Bug #24974#: DropCaps-Text nie bei Vorlagen austauschen
+
+ Rev 1.61 23 Jan 1996 11:27:38 OS
+ richtige Reaktion auf Standard-Button im Formatdialog
+
+ Rev 1.60 28 Nov 1995 21:15:16 JP
+ UiSystem-Klasse aufgehoben, in initui/swtype aufgeteilt
+
+--------------------------------------------------*/
+
+
diff --git a/sw/source/ui/chrdlg/drpcps.hrc b/sw/source/ui/chrdlg/drpcps.hrc
new file mode 100644
index 000000000000..19b00fc6c305
--- /dev/null
+++ b/sw/source/ui/chrdlg/drpcps.hrc
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: drpcps.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _DRPCPS_HRC
+#define _DRPCPS_HRC
+
+// #define ******************************************************************
+
+#define FT_DROPCAPS 1
+#define FLD_DROPCAPS 2
+#define TXT_LINES 3
+#define FLD_LINES 4
+#define TXT_DISTANCE 5
+#define FLD_DISTANCE 6
+#define CNT_PICT 7
+#define TXT_TEXT 8
+#define EDT_TEXT 9
+#define TXT_TEMPLATE 10
+#define BOX_TEMPLATE 11
+#define GRP_SETTINGS 12
+#define CB_SWITCH 13
+#define BOX_PICT 14
+#define BOX_CONTENT 15
+#define CB_WORD 16
+
+#endif
+
+// ********************************************************************** EOF
diff --git a/sw/source/ui/chrdlg/drpcps.src b/sw/source/ui/chrdlg/drpcps.src
new file mode 100644
index 000000000000..c555432b45f3
--- /dev/null
+++ b/sw/source/ui/chrdlg/drpcps.src
@@ -0,0 +1,493 @@
+/*************************************************************************
+ *
+ * $RCSfile: drpcps.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "globals.hrc"
+#include "chrdlg.hrc"
+#include "drpcps.hrc"
+#include "helpid.h"
+ // TabDialog ****************************************************************
+TabDialog DLG_DROPCAPS
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Initialen" ;
+ Text [ English ] = "Drop Caps" ;
+ Text [ norwegian ] = "Drop Caps" ;
+ Text [ italian ] = "Capolettera" ;
+ Text [ portuguese_brazilian ] = "Capitulares descidas" ;
+ Text [ portuguese ] = "Iniciais" ;
+ Text [ finnish ] = "Anfangit" ;
+ Text [ danish ] = "Initialer" ;
+ Text [ french ] = "Lettrines" ;
+ Text [ swedish ] = "Anfangsbokstäver" ;
+ Text [ dutch ] = "Initialen" ;
+ Text [ spanish ] = "Iniciales" ;
+ Text [ english_us ] = "Drop Caps" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_DROPCAPS ;
+ Text = "Initialen" ;
+ Text [ ENGLISH ] = "Drop Caps" ;
+ Text [ norwegian ] = "Drop Caps" ;
+ Text [ italian ] = "Capolettera" ;
+ Text [ portuguese_brazilian ] = "Capitulares descidas" ;
+ Text [ portuguese ] = "Iniciais" ;
+ Text [ finnish ] = "Anfangit" ;
+ Text [ danish ] = "Initialer" ;
+ Text [ french ] = "Lettrines" ;
+ Text [ swedish ] = "Anfangsbokstäver" ;
+ Text [ dutch ] = "Initialen" ;
+ Text [ spanish ] = "Iniciales" ;
+ Text [ english_us ] = "Drop Caps" ;
+ PageResID = TP_DROPCAPS ;
+ Text[ chinese_simplified ] = "×ÖÊ×´óд";
+ Text[ russian ] = "Èíèöèàëû";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß";
+ Text[ chinese_traditional ] = "¦r­º¤j¼g";
+ Text[ arabic ] = "ÇáÃÍÑÝ ÇáÇÓÊåáÇáíÉ";
+ Text[ greek ] = "Áñ÷éãñÜììáôá";
+ Text[ korean ] = "´Ü¶ô ù¹®ÀÚ Àå½Ä";
+ Text[ turkish ] = "Baþharfler";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "Æðʼ´óд×Öĸ";
+ Text[ russian ] = "Èíèöèàëû";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß";
+ Text[ chinese_traditional ] = "¤j¼g¦r¥À";
+ Text[ arabic ] = "ÇáÃÍÑÝ ÇáÇÓÊåáÇáíÉ";
+ Text[ greek ] = "Áñ÷éãñÜììáôá";
+ Text[ korean ] = "´Ü¶ô ù¹®ÀÚ Àå½Ä";
+ Text[ turkish ] = "Baþharfler";
+ Text[ language_user1 ] = " ";
+};
+ // TabPage ******************************************************************
+TabPage TP_DROPCAPS
+{
+ HelpID = HID_DROPCAPS ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ CheckBox CB_SWITCH
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "I~nitialen anzeigen" ;
+ Text [ English ] = "Show Drop Caps" ;
+ Text [ english_us ] = "Display drop caps" ;
+ Text [ italian ] = "Mostra capolettera" ;
+ Text [ spanish ] = "Mostrar iniciales" ;
+ Text [ french ] = "~Première(s) lettre(s)" ;
+ Text [ dutch ] = "I~nitialen weergeven" ;
+ Text [ swedish ] = "Visa anfangsbokstäver" ;
+ Text [ danish ] = "Vis initialer" ;
+ Text [ portuguese_brazilian ] = "Initialen anzeigen" ;
+ Text [ portuguese ] = "Mostrar i~niciais" ;
+ Text[ chinese_simplified ] = "ÏÔʾ´óдÊ××Öĸ";
+ Text[ russian ] = "Ïîêàçàòü èíèöèàëû";
+ Text[ polish ] = "Po~ka¿ inicja³y";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß‚Ì•\\Ž¦";
+ Text[ chinese_traditional ] = "Åã¥Ü¦r­º¤j¼g";
+ Text[ arabic ] = "ÅÙåÇÑ ÇáÃÍÑÝ ÇáÇÓÊåáÇáíÉ";
+ Text[ greek ] = "ÅìöÜ~íéóç áñ÷éãñáììÜôùí";
+ Text[ korean ] = "´Ü¶ô ù¹®ÀÚ Àå½Ä Ç¥½Ã(~O)";
+ Text[ turkish ] = "Baþ harfleri vurgula";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_WORD
+ {
+ Pos = MAP_APPFONT ( 12 , 26 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Ganzes ~Wort" ;
+ Text [ English ] = "Whole Word" ;
+ Text [ english_us ] = "~Whole word" ;
+ Text [ portuguese_brazilian ] = "Ganzes ~Wort" ;
+ Text [ swedish ] = "Helt ~ord" ;
+ Text [ danish ] = "Helt ord" ;
+ Text [ italian ] = "~Parola intera" ;
+ Text [ spanish ] = "Toda la pala~bra" ;
+ Text [ french ] = "~Mot entier" ;
+ Text [ dutch ] = "Heel ~woord" ;
+ Text [ portuguese ] = "~Palavra inteira" ;
+ Text[ chinese_simplified ] = "Õû¸ö×Ö(~W)";
+ Text[ russian ] = "Âñå ñëîâî";
+ Text[ polish ] = "Ca³e s³owo";
+ Text[ japanese ] = "Œê‘S‘Ì(~W)";
+ Text[ chinese_traditional ] = "¾ã­Ó¦r(~W)";
+ Text[ arabic ] = "ßáãÉ ßÇãáÉ";
+ Text[ greek ] = "Ïëüêëçñç ëÝîç";
+ Text[ korean ] = "Àüü ´Ü¾î(~W)";
+ Text[ turkish ] = "Tam sözcük";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_DROPCAPS
+ {
+ Pos = MAP_APPFONT ( 12 , 39 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Anzahl der Ze~ichen" ;
+ Text [ English ] = "Number of characters" ;
+ // Text[norwegian] = "~Drop Caps";
+ // Text[italian] = "~Annulla maiuscole.";
+ // Text[portuguese_brazilian] = "~Capitulares descidas";
+ // Text[portuguese] = "~Capitulares descidas";
+ // Text[finnish] = "~Anfangit";
+ // Text[danish] = "~Uncialer";
+ // Text[french] = "~Drop Caps";
+ // Text[swedish] = "~Anfanger";
+ // Text[dutch] = "~Initialen";
+ // Text[spanish] = "~Quitar mayúsculas";
+ // Text[english_us] = "~Drop Caps";
+ Text [ english_us ] = "Number of ~characters:" ;
+ Text [ italian ] = "Numero di caratteri" ;
+ Text [ spanish ] = "~Número de caracteres" ;
+ Text [ french ] = "~Largeur (en caractères)" ;
+ Text [ dutch ] = "~Aantal tekens" ;
+ Text [ swedish ] = "Antal te~cken" ;
+ Text [ danish ] = "Antal tegn" ;
+ Text [ portuguese_brazilian ] = "Anzahl der Ze~ichen" ;
+ Text [ portuguese ] = "Quantidade de ~caracteres" ;
+ Text[ chinese_simplified ] = "×Ö·ûÊýÄ¿(~C)";
+ Text[ russian ] = "Êîëè÷åñòâî çíàêîâ";
+ Text[ polish ] = "Liczba znaków";
+ Text[ japanese ] = "•¶Žš”(~C)";
+ Text[ chinese_traditional ] = "¦r¤¸¼Æ¥Ø(~C)";
+ Text[ arabic ] = "ÚÏÏ ÇáÃÍÑÝ";
+ Text[ greek ] = "Áñéèìüò ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ ¼ö:(~C)";
+ Text[ turkish ] = "Karakter sayýsý";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField FLD_DROPCAPS
+ {
+ Border = TRUE ;
+ First = 1 ;
+ Last = 9 ;
+ Left = TRUE ;
+ Maximum = 9 ;
+ Minimum = 1 ;
+ Pos = MAP_APPFONT ( 89 , 37 ) ;
+ Repeat = TRUE ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Spin = TRUE ;
+ TabStop = TRUE ;
+ };
+ FixedText TXT_LINES
+ {
+ Left = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 53 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Zei~len" ;
+ Text [ English ] = "~Lines" ;
+ Text [ norwegian ] = "~Linjer" ;
+ Text [ italian ] = "Righe" ;
+ Text [ portuguese_brazilian ] = "~Linhas" ;
+ Text [ portuguese ] = "~Linhas" ;
+ Text [ finnish ] = "~Viivat" ;
+ Text [ danish ] = "Rækker" ;
+ Text [ french ] = "~Hauteur (en lignes)" ;
+ Text [ swedish ] = "~Rader" ;
+ Text [ dutch ] = "~Regels" ;
+ Text [ spanish ] = "~Líneas" ;
+ Text [ english_us ] = "~Lines" ;
+ Text[ chinese_simplified ] = "ÐÐ(~L)";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s(~Lj";
+ Text[ chinese_traditional ] = "¦æ(~L)";
+ Text[ arabic ] = "ÃÓØÑ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "¼±(~L)";
+ Text[ turkish ] = "Satýr adedi";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField FLD_LINES
+ {
+ Border = TRUE ;
+ First = 2 ;
+ Last = 9 ;
+ Left = TRUE ;
+ Maximum = 9 ;
+ Minimum = 2 ;
+ Pos = MAP_APPFONT ( 89 , 51 ) ;
+ Repeat = TRUE ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Spin = TRUE ;
+ TabStop = TRUE ;
+ };
+ FixedText TXT_DISTANCE
+ {
+ Left = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 67 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "A~bstand zum Text" ;
+ Text [ English ] = "D~istance" ;
+ Text [ norwegian ] = "A~vstand" ;
+ Text [ italian ] = "D~istanza dal testo" ;
+ Text [ portuguese_brazilian ] = "D~istância" ;
+ Text [ portuguese ] = "~Distância do texto" ;
+ Text [ finnish ] = "~Etäisyys" ;
+ Text [ danish ] = "Afstand til tekst" ;
+ Text [ french ] = "~Écart du texte" ;
+ Text [ swedish ] = "A~vstånd till text" ;
+ Text [ dutch ] = "A~fstand tot tekst" ;
+ Text [ spanish ] = "~Distancia hasta el texto" ;
+ Text [ english_us ] = "Space to text" ;
+ Text[ chinese_simplified ] = "ÖÁÕýÎĵľàÀë(~D)";
+ Text[ russian ] = "Ðàññòîÿíèå îò òåêñòà";
+ Text[ polish ] = "Odstêp do tekstu";
+ Text[ japanese ] = "÷½Ä‚Ü‚Å‚ÌŠÔŠu(~D)";
+ Text[ chinese_traditional ] = "¦Ü¤º¤åªº¶ZÖÃ(~D)";
+ Text[ arabic ] = "ÇáãÓÇÝÉ ÍÊì ÇáäÕ";
+ Text[ greek ] = "Á~ðüóôáóç áðü ôï êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®·ÎºÎÅÍÀÇ °Å¸®(~D)";
+ Text[ turkish ] = "Metne uzaklýk";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_DISTANCE
+ {
+ Border = TRUE ;
+ DecimalDigits = 2 ;
+ First = 0 ;
+ Last = 200 ;
+ Left = TRUE ;
+ Maximum = 200 ;
+ Minimum = 0 ;
+ Pos = MAP_APPFONT ( 89 , 65 ) ;
+ Repeat = TRUE ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Spin = TRUE ;
+ SpinSize = 10 ;
+ TabStop = TRUE ;
+ Unit = FUNIT_CM ;
+ };
+ GroupBox GRP_SETTINGS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 125 , 79 ) ;
+ Text = "Einstellungen" ;
+ Text [ English ] = "Options" ;
+ Text [ norwegian ] = "Options" ;
+ Text [ italian ] = "Impostazioni" ;
+ Text [ portuguese_brazilian ] = "Opções" ;
+ Text [ portuguese ] = "Predefinições" ;
+ Text [ finnish ] = "Määritykset" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ french ] = "Paramètres" ;
+ Text [ swedish ] = "Inställningar" ;
+ Text [ dutch ] = "Instellingen" ;
+ Text [ spanish ] = "Configuración" ;
+ Text [ english_us ] = "Settings" ;
+ Text[ chinese_simplified ] = "É趨";
+ Text[ russian ] = "Íàñòðîéêè";
+ Text[ polish ] = "Ustawienia";
+ Text[ japanese ] = "Ý’è";
+ Text[ chinese_traditional ] = "³]©w";
+ Text[ arabic ] = "ÅÚÏÇÏÇÊ";
+ Text[ greek ] = "Ñõèìßóåéò";
+ Text[ korean ] = "¼³Á¤";
+ Text[ turkish ] = "Ayarlar";
+ Text[ language_user1 ] = " ";
+ };
+ Control CNT_PICT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 143 , 14 ) ;
+ Size = MAP_APPFONT ( 105 , 62 ) ;
+ };
+ GroupBox BOX_PICT
+ {
+ Pos = MAP_APPFONT ( 137 , 3 ) ;
+ Size = MAP_APPFONT ( 117 , 79 ) ;
+ Text = "Beispiel" ;
+ Text [ English ] = "Example" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ english_us ] = "Preview" ;
+ Text [ italian ] = "Esempio" ;
+ Text [ spanish ] = "Ejemplo" ;
+ Text [ french ] = "Exemple" ;
+ Text [ swedish ] = "Exempel" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ portuguese_brazilian ] = "Beispiel" ;
+ Text [ portuguese ] = "Exemplo" ;
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ russian ] = "Ïðèìåð";
+ Text[ polish ] = "Przyk³ad";
+ Text[ japanese ] = "—á";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "äãæÐÌ";
+ Text[ greek ] = "ÐáñÜäåéãìá";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ turkish ] = "Önizleme";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_TEXT
+ {
+ Left = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 96 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Initialen~text" ;
+ Text [ English ] = "~Text" ;
+ Text [ norwegian ] = "~Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ portuguese_brazilian ] = "~Texto" ;
+ Text [ portuguese ] = "~Texto" ;
+ Text [ finnish ] = "~Teksti" ;
+ Text [ danish ] = "Initialtekst" ;
+ Text [ french ] = "~Autre caractère" ;
+ Text [ swedish ] = "Anfangs~text" ;
+ Text [ dutch ] = "~Initialentekst" ;
+ Text [ spanish ] = "Te~xto" ;
+ Text [ english_us ] = "~Text" ;
+ Text[ chinese_simplified ] = "´óд×Ö(~T)";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst z inicja³ami";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß‚Ì÷½Ä(~T)";
+ Text[ chinese_traditional ] = "¤j¼g¦r(~T)";
+ Text[ arabic ] = "ÇáäÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®(~T)";
+ Text[ turkish ] = "Baþharf metni";
+ Text[ language_user1 ] = " ";
+ };
+ Edit EDT_TEXT
+ {
+ Border = TRUE ;
+ Left = TRUE ;
+ Pos = MAP_APPFONT ( 143 , 95 ) ;
+ Size = MAP_APPFONT ( 105 , 12 ) ;
+ TabStop = TRUE ;
+ MaxTextLength = 9 ;
+ };
+ FixedText TXT_TEMPLATE
+ {
+ Left = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 111 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Zeichen~vorlage" ;
+ Text [ English ] = "Character st~yle" ;
+ Text [ norwegian ] = "M~al" ;
+ Text [ italian ] = "Modello di carattere" ;
+ Text [ portuguese_brazilian ] = "Es~tilo" ;
+ Text [ portuguese ] = "Es~tilo de caracteres" ;
+ Text [ finnish ] = "~Tyyli" ;
+ Text [ danish ] = "Tegntypografi" ;
+ Text [ french ] = "~Style de caractères" ;
+ Text [ swedish ] = "Tecken~formatmall" ;
+ Text [ dutch ] = "~Tekenopmaakprofiel" ;
+ Text [ spanish ] = "E~stilo de carácter" ;
+ Text [ english_us ] = "Character St~yle" ;
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ(~Y)";
+ Text[ russian ] = "Ñòèëü òåêñòà";
+ Text[ polish ] = "Styl znaku";
+ Text[ japanese ] = "•¶Žš½À²Ù(~Y)";
+ Text[ chinese_traditional ] = "¦r¤¸¼Ë¦¡(~Y)";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯Çü(~Y)";
+ Text[ turkish ] = "Karakter ~biçimi";
+ Text[ language_user1 ] = "All \"Vorlage\"/Styles are always written with capital S. 10.5.00EM";
+ };
+ ListBox BOX_TEMPLATE
+ {
+ Border = TRUE ;
+ DropDown = TRUE ;
+ Pos = MAP_APPFONT ( 143 , 110 ) ;
+ Size = MAP_APPFONT ( 105 , 61 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox BOX_CONTENT
+ {
+ Pos = MAP_APPFONT ( 6 , 85 ) ;
+ Size = MAP_APPFONT ( 248 , 44 ) ;
+ Text = "Inhalt" ;
+ Text [ English ] = "Content" ;
+ Text [ english_us ] = "Contents" ;
+ Text [ italian ] = "Contenuto" ;
+ Text [ spanish ] = "Contenido" ;
+ Text [ french ] = "Contenu" ;
+ Text [ dutch ] = "Inhoud" ;
+ Text [ swedish ] = "Innehåll" ;
+ Text [ danish ] = "Indhold" ;
+ Text [ portuguese_brazilian ] = "Inhalt" ;
+ Text [ portuguese ] = "Conteúdo" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝ";
+ Text[ russian ] = "Ñîäåðæèìîå";
+ Text[ polish ] = "ZawartoϾ";
+ Text[ japanese ] = "“à—e";
+ Text[ chinese_traditional ] = "¤º®e";
+ Text[ arabic ] = "ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Ðåñéå÷üìåíá";
+ Text[ korean ] = "³»¿ë";
+ Text[ turkish ] = "Ýçerik";
+ Text[ language_user1 ] = " ";
+ };
+};
+ // ********************************************************************** EOF
diff --git a/sw/source/ui/chrdlg/makefile.mk b/sw/source/ui/chrdlg/makefile.mk
new file mode 100644
index 000000000000..a03e3cf12a6e
--- /dev/null
+++ b/sw/source/ui/chrdlg/makefile.mk
@@ -0,0 +1,112 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=chrdlg
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ break.cxx \
+ chardlg.cxx \
+ drpcps.cxx \
+ ccoll.cxx \
+ pardlg.cxx \
+ tblnumfm.cxx \
+ numpara.cxx
+
+SRCFILES = \
+ swbreak.src \
+ chardlg.src \
+ chrdlg.src \
+ drpcps.src \
+ ccoll.src \
+ paradlg.src \
+ numpara.src
+
+SLOFILES = \
+ $(SLO)$/break.obj \
+ $(SLO)$/chardlg.obj \
+ $(SLO)$/drpcps.obj \
+ $(SLO)$/ccoll.obj \
+ $(SLO)$/pardlg.obj \
+ $(SLO)$/tblnumfm.obj \
+ $(SLO)$/numpara.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx
new file mode 100644
index 000000000000..b58efe96b478
--- /dev/null
+++ b/sw/source/ui/chrdlg/numpara.cxx
@@ -0,0 +1,366 @@
+/*************************************************************************
+ *
+ * $RCSfile: numpara.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "swtypes.hxx"
+#include "hintids.hxx"
+#include "globals.hrc"
+#include "helpid.h"
+
+#ifndef _SFX_OBJSH_HXX //autogen
+#include <sfx2/objsh.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef SW_FMTLINE_HXX
+#include <fmtline.hxx>
+#endif
+#include <numpara.hxx>
+#include <numpara.hrc>
+
+// Globals ******************************************************************
+
+static USHORT __FAR_DATA aPageRg[] = {
+ FN_NUMBER_NEWSTART, FN_NUMBER_NEWSTART_AT,
+ 0
+};
+/*-----------------31.01.98 08:34-------------------
+
+--------------------------------------------------*/
+SwParagraphNumTabPage::SwParagraphNumTabPage(Window* pParent,
+ const SfxItemSet& rAttr ) :
+ SfxTabPage(pParent, SW_RES(TP_NUMPARA), rAttr),
+ aNumberStyleGB ( this, ResId( GB_NUMBER_STYLE ) ),
+ aNumberStyleLB ( this, ResId( LB_NUMBER_STYLE ) ),
+ aNewStartGB ( this, ResId( GB_NEW_START ) ),
+ aNewStartCB ( this, ResId( CB_NEW_START ) ),
+ aNewStartFT ( this, ResId( FT_NEW_START ) ),
+ aNewStartNF ( this, ResId( NF_NEW_START ) ),
+ aCountParaGB ( this, ResId( GB_COUNT_PARA ) ),
+ aCountParaCB ( this, ResId( CB_COUNT_PARA ) ),
+ aRestartParaCountCB ( this, ResId( CB_RESTART_PARACOUNT ) ),
+ aRestartFT ( this, ResId( FT_RESTART_NO ) ),
+ aRestartNF ( this, ResId( NF_RESTART_PARA ) ),
+ bModified(FALSE),
+ bCurNumrule(FALSE)
+{
+ FreeResource();
+
+ const SfxPoolItem* pItem;
+ SfxObjectShell* pObjSh;
+ if(SFX_ITEM_SET == rAttr.GetItemState(SID_HTML_MODE, FALSE, &pItem) ||
+ ( 0 != ( pObjSh = SfxObjectShell::Current()) &&
+ 0 != (pItem = pObjSh->GetItem(SID_HTML_MODE))))
+ {
+ USHORT nHtmlMode = ((const SfxUInt16Item*)pItem)->GetValue();
+ if(HTMLMODE_ON & nHtmlMode)
+ {
+ aCountParaGB .Hide();
+ aCountParaCB .Hide();
+ aRestartParaCountCB .Hide();
+ aRestartFT .Hide();
+ aRestartNF .Hide();
+ }
+ }
+ aNewStartCB.SetClickHdl(LINK(this, SwParagraphNumTabPage, NewStartHdl_Impl));
+ aNumberStyleLB.SetSelectHdl(LINK(this, SwParagraphNumTabPage, StyleHdl_Impl));
+ aCountParaCB.SetClickHdl(LINK(this,
+ SwParagraphNumTabPage, LineCountHdl_Impl));
+ aRestartParaCountCB.SetClickHdl(
+ LINK(this, SwParagraphNumTabPage, LineCountHdl_Impl));
+}
+/*-----------------31.01.98 08:34-------------------
+
+--------------------------------------------------*/
+SwParagraphNumTabPage::~SwParagraphNumTabPage()
+{
+}
+
+/*-----------------31.01.98 08:38-------------------
+
+--------------------------------------------------*/
+SfxTabPage* SwParagraphNumTabPage::Create( Window* pParent,
+ const SfxItemSet& rSet )
+{
+ return new SwParagraphNumTabPage(pParent, rSet);
+}
+
+/*-----------------31.01.98 08:38-------------------
+
+--------------------------------------------------*/
+USHORT* SwParagraphNumTabPage::GetRanges()
+{
+ return aPageRg;
+}
+
+/*-----------------31.01.98 08:38-------------------
+
+--------------------------------------------------*/
+BOOL SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ if( aNumberStyleLB.GetSelectEntryPos() != aNumberStyleLB.GetSavedValue())
+ {
+ String aStyle;
+ if(aNumberStyleLB.GetSelectEntryPos())
+ aStyle = aNumberStyleLB.GetSelectEntry();
+ const SfxStringItem* pOldRule = (const SfxStringItem*)GetOldItem( rSet, SID_ATTR_PARA_NUMRULE);
+ SfxStringItem* pRule = (SfxStringItem*)pOldRule->Clone();
+ pRule->SetValue(aStyle);
+ rSet.Put(*pRule);
+ delete pRule;
+ bModified = TRUE;
+ }
+ if(aNewStartCB.GetState() != aNewStartCB.GetSavedValue() ||
+ aNewStartNF.GetText() != aNewStartNF.GetSavedValue())
+ {
+ bModified = TRUE;
+ rSet.Put(SfxBoolItem(FN_NUMBER_NEWSTART, aNewStartCB.GetState() == STATE_CHECK));
+ rSet.Put(SfxUInt16Item(FN_NUMBER_NEWSTART_AT, (USHORT)aNewStartNF.GetValue()));
+ }
+
+ if(aCountParaCB.GetSavedValue() != aCountParaCB.GetState() ||
+ aRestartParaCountCB.GetSavedValue() != aRestartParaCountCB.GetState() ||
+ aRestartNF.GetSavedValue() != aRestartNF.GetText() )
+ {
+ SwFmtLineNumber aFmt;
+ aFmt.SetStartValue( aRestartParaCountCB.GetState() == STATE_CHECK ?
+ aRestartNF.GetValue() : 0 );
+ aFmt.SetCountLines( aCountParaCB.IsChecked() );
+ rSet.Put(aFmt);
+ bModified = TRUE;
+ }
+ return bModified;
+}
+
+/*-----------------31.01.98 08:38-------------------
+
+--------------------------------------------------*/
+void SwParagraphNumTabPage::Reset( const SfxItemSet& rSet )
+{
+ SfxItemState eItemState = rSet.GetItemState( GetWhich(SID_ATTR_PARA_NUMRULE) );
+
+ String aStyle;
+ if( eItemState >= SFX_ITEM_AVAILABLE )
+ {
+ aStyle = ((const SfxStringItem &)rSet.Get( GetWhich(SID_ATTR_PARA_NUMRULE) )).GetValue();
+ if(!aStyle.Len())
+ aStyle = aNumberStyleLB.GetEntry(0);
+ aNumberStyleLB.SelectEntry( aStyle );
+ }
+ else
+ {
+ aNumberStyleLB.SetNoSelection();
+ }
+
+ aNumberStyleLB.SaveValue();
+
+
+ eItemState = rSet.GetItemState( FN_NUMBER_NEWSTART );
+ if(eItemState > SFX_ITEM_AVAILABLE )
+ {
+ bCurNumrule = TRUE;
+ aNewStartCB.SetState(
+ ((const SfxBoolItem&)rSet.Get(FN_NUMBER_NEWSTART)).GetValue() ?
+ STATE_CHECK : STATE_NOCHECK );
+ aNewStartCB.EnableTriState(FALSE);
+ }
+ else
+ aNewStartCB.SetState(STATE_DONTKNOW);
+ aNewStartCB.SaveValue();
+
+ eItemState = rSet.GetItemState( FN_NUMBER_NEWSTART_AT);
+ if( eItemState > SFX_ITEM_AVAILABLE )
+ {
+ USHORT nNewStart = ((const SfxUInt16Item&)rSet.Get(FN_NUMBER_NEWSTART_AT)).GetValue();
+ if(USHRT_MAX == nNewStart)
+ nNewStart = 1;
+ aNewStartNF.SetValue(nNewStart);
+ NewStartHdl_Impl(&aNewStartCB);
+ }
+ aNewStartNF.SaveValue();
+ StyleHdl_Impl(&aNumberStyleLB);
+ if( SFX_ITEM_AVAILABLE <= rSet.GetItemState(RES_LINENUMBER))
+ {
+ SwFmtLineNumber& rNum = (SwFmtLineNumber&)rSet.Get(RES_LINENUMBER);
+ ULONG nStartValue = rNum.GetStartValue();
+ BOOL bCount = rNum.IsCount();
+ aCountParaCB.SetState( bCount ? STATE_CHECK : STATE_NOCHECK );
+ aRestartParaCountCB.SetState( 0 != nStartValue ? STATE_CHECK : STATE_NOCHECK );
+ aRestartNF.SetValue(nStartValue == 0 ? 1 : nStartValue);
+ LineCountHdl_Impl(&aCountParaCB);
+ aCountParaCB.EnableTriState(FALSE);
+ aRestartParaCountCB.EnableTriState(FALSE);
+ }
+ else
+ {
+ aCountParaCB.SetState(STATE_DONTKNOW);
+ aRestartParaCountCB.SetState(STATE_DONTKNOW);
+ }
+ aCountParaCB.SaveValue();
+ aRestartParaCountCB.SaveValue();
+ aRestartNF.SaveValue();
+
+ bModified = FALSE;
+}
+
+/*-----------------31.01.98 08:38-------------------
+
+--------------------------------------------------*/
+void SwParagraphNumTabPage::EnableNewStart()
+{
+ aNewStartGB.Show();
+ aNewStartCB.Show();
+ aNewStartFT.Show();
+ aNewStartNF.Show();
+}
+
+/*-----------------31.01.98 08:56-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwParagraphNumTabPage, NewStartHdl_Impl, CheckBox*, pBox )
+{
+ BOOL bEnable = pBox->IsChecked();
+ aNewStartFT.Enable(bEnable);
+ aNewStartNF.Enable(bEnable);
+ return 0;
+}
+
+/*-----------------05.02.98 10:01-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwParagraphNumTabPage, LineCountHdl_Impl, CheckBox* , EMPTYARG)
+{
+ aRestartParaCountCB.Enable(aCountParaCB.IsChecked());
+
+ BOOL bEnableRestartValue = aRestartParaCountCB.IsEnabled() &&
+ aRestartParaCountCB.IsChecked();
+ aRestartFT.Enable(bEnableRestartValue);
+ aRestartNF.Enable(bEnableRestartValue);
+
+ return 0;
+}
+
+/*-----------------05.02.98 13:39-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwParagraphNumTabPage, StyleHdl_Impl, ListBox*, pBox )
+{
+ BOOL bEnable = bCurNumrule || pBox->GetSelectEntryPos() > 0;
+ aNewStartCB.Enable(bEnable);
+ NewStartHdl_Impl(&aNewStartCB);
+ return 0;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.9 2000/09/18 16:05:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.8 2000/07/03 08:04:44 os
+ #72742# resource warnings corrected
+
+ Revision 1.7 1998/04/15 12:31:48 OS
+ TriState-Boxen #49486#
+
+
+ Rev 1.6 15 Apr 1998 14:31:48 OS
+ TriState-Boxen #49486#
+
+ Rev 1.5 17 Mar 1998 17:55:24 OS
+ Vorlagenlistbox bei unbekannter Vorlage unselektiert #47570#
+
+ Rev 1.4 03 Mar 1998 10:14:48 OS
+ Zeilennumerierung nicht in HTML
+
+ Rev 1.3 20 Feb 1998 11:23:42 MA
+ Restarbeiten Zeilennummerierung
+
+ Rev 1.2 05 Feb 1998 14:56:26 OS
+ Paste-Fehler
+
+ Rev 1.1 05 Feb 1998 14:43:30 OS
+ Zeilennumerierung
+
+ Rev 1.0 02 Feb 1998 09:15:52 OS
+ Initial revision.
+
+*************************************************************************/
+
diff --git a/sw/source/ui/chrdlg/numpara.hrc b/sw/source/ui/chrdlg/numpara.hrc
new file mode 100644
index 000000000000..cbe488697f9b
--- /dev/null
+++ b/sw/source/ui/chrdlg/numpara.hrc
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: numpara.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _NUMPARA_HRC
+#define _NUMPARA_HRC
+
+// #define ******************************************************************
+
+#define LB_NUMBER_STYLE 1
+#define GB_NUMBER_STYLE 2
+#define CB_NEW_START 3
+#define FT_NEW_START 4
+#define GB_NEW_START 5
+#define NF_NEW_START 6
+#define GB_COUNT_PARA 7
+#define CB_COUNT_PARA 8
+#define CB_RESTART_PARACOUNT 9
+#define FT_RESTART_NO 10
+#define NF_RESTART_PARA 11
+
+// **********************************************************************
+
+#endif
+
+
+
+
diff --git a/sw/source/ui/chrdlg/numpara.src b/sw/source/ui/chrdlg/numpara.src
new file mode 100644
index 000000000000..6c3a615e02c4
--- /dev/null
+++ b/sw/source/ui/chrdlg/numpara.src
@@ -0,0 +1,417 @@
+/*************************************************************************
+ *
+ * $RCSfile: numpara.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "globals.hrc"
+#include "chrdlg.hrc"
+#include "numpara.hrc"
+#include "helpid.h"
+ // TabPage ******************************************************************
+TabPage TP_NUMPARA
+{
+ HelpID = HID_NUMPARA ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_NUMBER_STYLE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 176 , 26 ) ;
+ Text = "Nummerierungsvorlage" ;
+ Text [ ENGLISH ] = "Number style" ;
+ Text [ portuguese ] = "Estilo de numeração" ;
+ Text [ english_us ] = "Numbering Style" ;
+ Text [ portuguese_brazilian ] = "Numerierungsvorlage" ;
+ Text [ swedish ] = "Numreringsformatmall" ;
+ Text [ danish ] = "Nummereringstypografi" ;
+ Text [ italian ] = "Modello di numerazione" ;
+ Text [ spanish ] = "Estilo de numeración" ;
+ Text [ french ] = "Style de numérotation" ;
+ Text [ dutch ] = "Opmaakprofiel voor nummering" ;
+ Text[ chinese_simplified ] = "±àºÅÑùʽ";
+ Text[ russian ] = "Ñòèëü íóìåðàöèè";
+ Text[ polish ] = "Styl numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯‚̽À²Ù";
+ Text[ chinese_traditional ] = "½s¸¹¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÊÑÞíã";
+ Text[ greek ] = "Óôõë áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â À¯Çü";
+ Text[ turkish ] = "Numaralama biçimi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_NUMBER_STYLE
+ {
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 158 , 65 ) ;
+ DropDown = TRUE ;
+ Border = TRUE ;
+ StringList =
+ {
+ < "keine" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "keine" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "None" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Nenhum" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "ingen" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "ingen" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "senza" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Ninguno" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Aucun(e)" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "geen" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Nenhum" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÎÞ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "íåò" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "brak" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‚È‚µ" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "µL" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÈÏæä" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "êáíÝíá" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¾øÀ½" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "yok" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ };
+ };
+ GroupBox GB_NEW_START
+ {
+ Pos = MAP_APPFONT ( 6 , 32 ) ;
+ Size = MAP_APPFONT ( 176 , 40 ) ;
+ Text = "Nummerierung" ;
+ Text [ English ] = "Numbering" ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text [ portuguese ] = "Numeração" ;
+ Text [ english_us ] = "Numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ dutch ] = "Nummering" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ TriStateBox CB_NEW_START
+ {
+ Pos = MAP_APPFONT ( 12 , 44 ) ;
+ Size = MAP_APPFONT ( 160 , 10 ) ;
+ Text = "~An diesem Absatz neu beginnen" ;
+ Text [ English ] = "~Restart at this paragraph" ;
+ Hide = TRUE ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~Recomeçar neste parágrafo" ;
+ Text [ english_us ] = "R~estart at this paragraph" ;
+ Text [ portuguese_brazilian ] = "~An diesem Absatz neu beginnen" ;
+ Text [ swedish ] = "Börj~a om vid detta stycke" ;
+ Text [ danish ] = "Begynd nyt ved dette afsnit" ;
+ Text [ italian ] = "~Ricomincia con questo paragrafo" ;
+ Text [ spanish ] = "~Volver a empezar en este párrafo" ;
+ Text [ french ] = "~Commencer avec ce paragraphe" ;
+ Text [ dutch ] = "~Bij deze alinea opnieuw beginnen" ;
+ Text[ chinese_simplified ] = "´ÓÕâ¸ö¶ÎÂäÖØпªÊ¼(~R)";
+ Text[ russian ] = "Íà÷àòü ñ ýòîãî àáçàöà";
+ Text[ polish ] = "Zacznij ponownie przy tym akapicie";
+ Text[ japanese ] = "‚±‚Ì’i—Ž‚ÅV‚µ‚­Žn‚ß‚é(~R)";
+ Text[ chinese_traditional ] = "±q³o­Ó¬q¸¨­«·s¶}©l(~R)";
+ Text[ arabic ] = "ÇáÈÏÁ ãä ÌÏíÏ ÚäÏ åÐå ÇáÝÞÑÉ";
+ Text[ greek ] = "Åð~áíåêêßíçóç áðü áõôÞ ôçí ðáñÜãñáöï";
+ Text[ korean ] = "ÀÌ ´Ü¶ô¿¡¼­ ´Ù½Ã ½ÃÀÛ(~E)";
+ Text[ turkish ] = "Bu paragraf ile yeniden baþla";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_NEW_START
+ {
+ Pos = MAP_APPFONT ( 12 , 56 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Beginnen mit:" ;
+ Text [ English ] = "~Start at:" ;
+ Hide = TRUE ;
+ Disable = TRUE ;
+ Text [ portuguese ] = "~Começar com:" ;
+ Text [ english_us ] = "~Start with:" ;
+ Text [ portuguese_brazilian ] = "~Beginnen mit:" ;
+ Text [ swedish ] = "~Börja med:" ;
+ Text [ danish ] = "Begynd med:" ;
+ Text [ italian ] = "~Inizia con..." ;
+ Text [ spanish ] = "Empezar ~con:" ;
+ Text [ french ] = "~Commencer avec :" ;
+ Text [ dutch ] = "~Beginnen met:" ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)";
+ Text[ russian ] = "Íà÷àòü ñ:";
+ Text[ polish ] = "Zacznij od:";
+ Text[ japanese ] = "ŠJŽn:(~S)";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)";
+ Text[ arabic ] = "ÇáÈÏÁ ÈÜ:";
+ Text[ greek ] = "¸íáñîç áðü:";
+ Text[ korean ] = "¿Í ÇÔ²² ½ÃÀÛ:(~S)";
+ Text[ turkish ] = "~Baþlangýç deðeri:";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_NEW_START
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 144 , 56 ) ;
+ Size = MAP_APPFONT ( 26 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ Value = 0 ;
+ First = 0 ;
+ Last = 9999 ;
+ Hide = TRUE ;
+ Disable = TRUE ;
+ };
+ GroupBox GB_COUNT_PARA
+ {
+ Pos = MAP_APPFONT ( 6 , 75 ) ;
+ Size = MAP_APPFONT ( 176 , 53 ) ;
+ Text = "Zeilennummerierung" ;
+ Text [ English ] = "Line numbering" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "Numeração de linhas" ;
+ Text [ english_us ] = "Line Numbering" ;
+ Text [ portuguese_brazilian ] = "Zeilennumerierung" ;
+ Text [ swedish ] = "Radnumrering" ;
+ Text [ danish ] = "Linjenummerering" ;
+ Text [ italian ] = "Numerazione righe" ;
+ Text [ spanish ] = "Numeración de líneas" ;
+ Text [ french ] = "Numérotation de lignes" ;
+ Text [ dutch ] = "Regelnummering" ;
+ Text[ chinese_simplified ] = "ÐбàºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ ñòðîê";
+ Text[ polish ] = "Numeracja wierszy";
+ Text[ japanese ] = "s‚̔Ԇ•t‚¯";
+ Text[ chinese_traditional ] = "¦æ½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÇáÃÓØÑ";
+ Text[ greek ] = "Áñßèìçóç ãñáììþí";
+ Text[ korean ] = "¼± ¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Satýr numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ TriStateBox CB_COUNT_PARA
+ {
+ Pos = MAP_APPFONT ( 12 , 89 ) ;
+ Size = MAP_APPFONT ( 160 , 10 ) ;
+ Text = "~Die Zeilen dieses Absatzes mitzählen" ;
+ Text [ English ] = "~Include this paragraph in line numbering" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Include this paragraph in line numbering" ;
+ Text [ portuguese_brazilian ] = "~Die Zeilen dieses Absatzes mitzählen" ;
+ Text [ swedish ] = "~Räkna med raderna i det här stycket" ;
+ Text [ danish ] = "Inkluder dette afsnits rækker" ;
+ Text [ italian ] = "~Conta le righe di questo paragrafo" ;
+ Text [ spanish ] = "Con~tar las líneas de este párrafo" ;
+ Text [ french ] = "~Inclure les lignes de ce paragraphe" ;
+ Text [ dutch ] = "~De regels van deze alinea meetellen." ;
+ Text [ portuguese ] = "~Incluir este parágrafo na numeração de linhas" ;
+ Text[ chinese_simplified ] = "°üÀ¨Õâ¸ö¶ÎÂäµÄÐÐ(~I)";
+ Text[ russian ] = "Ñ÷èòàòü, âêëþ÷àÿ ñòðîêè ýòîãî àáçàöà";
+ Text[ polish ] = "W³¹cznie z wierszami tego akapitu";
+ Text[ japanese ] = "‚±‚Ì’i—Ž‚Ìs”‚ðŠÜ‚ß‚é(~I)";
+ Text[ chinese_traditional ] = "¥]¬A³o­Ó¬q¸¨ªº¦æ(~I)";
+ Text[ arabic ] = "ÚÏ ÃÓØÑ åÐå ÇáÝÞÑÉ ÃíÖÇð";
+ Text[ greek ] = "Íá óõìðåñéëçöèïýí ïé ãñáììÝò áõôÞò ôçò ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô¿¡ ¼± ¹øÈ£ ¸Å±â±âÆ÷ÇÔ(~I)";
+ Text[ turkish ] = "Bu paragrafýn da satýrlarýný numarala";
+ Text[ language_user1 ] = " ";
+ };
+ TriStateBox CB_RESTART_PARACOUNT
+ {
+ Pos = MAP_APPFONT ( 12 , 101 ) ;
+ Size = MAP_APPFONT ( 160 , 10 ) ;
+ Text = "An diese~m Absatz neu beginnen" ;
+ Text [ English ] = "~Restart at this paragraph" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~Recomeçar neste parágrafo" ;
+ Text [ english_us ] = "Rest~art at this paragraph" ;
+ Text [ portuguese_brazilian ] = "~An diesem Absatz neu beginnen" ;
+ Text [ swedish ] = "Börj~a om vid detta stycke" ;
+ Text [ danish ] = "Begynd nyt ved dette afsnit" ;
+ Text [ italian ] = "~Ricomincia con questo paragrafo" ;
+ Text [ spanish ] = "Volver a empe~zar en este párrafo" ;
+ Text [ french ] = "~Recommencer avec ce paragraphe" ;
+ Text [ dutch ] = "~Bij deze alinea opnieuw beginnen" ;
+ Text[ chinese_simplified ] = "ÔÚÕâ¸ö¶ÎÂä´¦ÖØпªÊ¼(~A)";
+ Text[ russian ] = "Íà÷àòü ñ ýòîãî àáçàöà";
+ Text[ polish ] = "Zacznij p~onownie przy tym akapicie";
+ Text[ japanese ] = "‚±‚Ì’i—Ž‚ÅV‚µ‚­Žn‚ß‚é(~R)";
+ Text[ chinese_traditional ] = "±q³o­Ó¬q¸¨­«·s¶}©l(~R)";
+ Text[ arabic ] = "ÇáÈÏÁ ãä ÌÏíÏ ÚäÏ åÐå ÇáÝÞÑÉ";
+ Text[ greek ] = "Åðáíåêêßíçóç áðü áõôÞ ôçí ðáñÜãñáöï";
+ Text[ korean ] = "ÀÌ ´Ü¶ô¿¡¼­ ´Ù½Ã ½ÃÀÛ(~A)";
+ Text[ turkish ] = "Bu paragraf ile yeniden baþla";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_RESTART_NO
+ {
+ Pos = MAP_APPFONT ( 12 , 113 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "B~eginnen mit:" ;
+ Text [ English ] = "~Start at:" ;
+ Disable = TRUE ;
+ Text [ portuguese ] = "~Começar com:" ;
+ Text [ english_us ] = "~Start with:" ;
+ Text [ portuguese_brazilian ] = "~Beginnen mit:" ;
+ Text [ swedish ] = "~Börja med:" ;
+ Text [ danish ] = "Begynd med:" ;
+ Text [ italian ] = "~Inizia con..." ;
+ Text [ spanish ] = "Empezar ~con:" ;
+ Text [ french ] = "~Commencer avec :" ;
+ Text [ dutch ] = "~Beginnen met:" ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)£º";
+ Text[ russian ] = "Íà÷àòü ñ:";
+ Text[ polish ] = "Zacznij od:";
+ Text[ japanese ] = "ŠJŽn”Ô†(~S):";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)¡G";
+ Text[ arabic ] = "ÇáÈÏÁ ÈÜ:";
+ Text[ greek ] = "¸íáñîç ì~å:";
+ Text[ korean ] = "¿Í ÇÔ²² ½ÃÀÛ:(~S)";
+ Text[ turkish ] = "~Baþlangýç deðeri:";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_RESTART_PARA
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 144 , 113 ) ;
+ Size = MAP_APPFONT ( 26 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 65000 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 65000 ;
+ Disable = TRUE ;
+ };
+};
+ // ********************************************************************** EOF
diff --git a/sw/source/ui/chrdlg/paradlg.hrc b/sw/source/ui/chrdlg/paradlg.hrc
new file mode 100644
index 000000000000..b5736eba5865
--- /dev/null
+++ b/sw/source/ui/chrdlg/paradlg.hrc
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: paradlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define TAB_CONTROL 55
+#define INDENT_FRM 1
+#define LEFT_LABEL 2
+#define FLINE_LABEL 3
+#define RIGHT_LABEL 4
+#define LEFT_INDENT 5
+#define FLINE_INDENT 6
+#define RIGHT_INDENT 7
+#define DIST_FRM 8
+#define TOP_LABEL 9
+#define TOP_DIST 10
+#define BOTTOM_LABEL 11
+#define BOTTOM_DIST 12
+#define ALG_LEFT 13
+#define ALG_RIGHT 50
+#define ALG_CENTER 51
+#define ALG_JUSTIFY 52
+#define ALG_FRM 14
+#define LINEDIST_FRM 15
+#define LINEDIST_BOX 16
+#define LINEDIST_AT_LABEL 17
+#define LINEDIST_AT_PERCENTBOX 18
+#define LINEDIST_AT_METRICBOX 19
+#define HYPHEN_FRM 21
+#define HYPHEN_BOX_AFTER 44
+#define HYPHEN_BOX_BEFORE 22
+#define EXTHYPHEN_BOX_AFTER 42
+#define EXTHYPHEN_BOX_BEFORE 23
+#define HYPHEN_LABEL_AFTER 43
+#define HYPHEN_LABEL_BEFORE 24
+#define EXTEND_FRM 25
+#define PAGEBREAK_BOX 26
+#define PAGEBREAK_DAVOR 27
+#define PAGEBREAK_DAHINTER 28
+#define KEEP_TOGETHER_BOX 29
+#define WIDOW_BOX 31
+#define WIDOW_ROW_NO 32
+#define WIDOW_ROW_LABEL 33
+#define ORPHAN_BOX 34
+#define ORPHAN_ROW_NO 35
+#define ORPHAN_ROW_LABEL 36
+#define PAGE_COLL_BTN 40
+#define PAGE_COLL_BOX 41
+#define OK_BTN 50
+#define CANCEL_BTN 51
diff --git a/sw/source/ui/chrdlg/paradlg.src b/sw/source/ui/chrdlg/paradlg.src
new file mode 100644
index 000000000000..b71302d9c664
--- /dev/null
+++ b/sw/source/ui/chrdlg/paradlg.src
@@ -0,0 +1,446 @@
+/*************************************************************************
+ *
+ * $RCSfile: paradlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "chrdlg.hrc"
+#include "paradlg.hrc"
+#define HelpText "error - hier keine HelpTexte HelpText"
+ // #define DLG_PARA 256
+TabDialog DLG_PARA
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Absatz" ;
+ Text [ ENGLISH ] = "Paragraph" ;
+ Text [ norwegian ] = "Avsnitt" ;
+ Text [ italian ] = "Paragrafo" ;
+ Text [ portuguese_brazilian ] = "Parágrafo" ;
+ Text [ portuguese ] = "Parágrafo" ;
+ Text [ finnish ] = "Kappale" ;
+ Text [ danish ] = "Afsnit" ;
+ Text [ french ] = "Paragraphe" ;
+ Text [ swedish ] = "Stycke" ;
+ Text [ dutch ] = "Alinea" ;
+ Text [ spanish ] = "Párrafo" ;
+ Text [ english_us ] = "Paragraph" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_PARA_STD ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einzüge und Abstände : Einz³ge und Abstõnde */
+ Text = "Einzüge und Abstände" ;
+ Text [ ENGLISH ] = "Paragraph" ;
+ Text [ norwegian ] = "Avsnitt" ;
+ Text [ italian ] = "Paragrafo" ;
+ Text [ portuguese_brazilian ] = "Parágrafo" ;
+ Text [ portuguese ] = "Avanços e espaçamento" ;
+ Text [ finnish ] = "Kappale" ;
+ Text [ danish ] = "Indrykning og mellemrum" ;
+ Text [ french ] = "Retraits et écarts" ;
+ Text [ swedish ] = "Indrag och avstånd" ;
+ Text [ dutch ] = "Inspringen en afstanden" ;
+ Text [ spanish ] = "Sangrías y espacios" ;
+ Text [ english_us ] = "Indents & Spacing" ;
+ PageResID = TP_PARA_STD ;
+ Text[ chinese_simplified ] = "Ëõ½øºÍ¼ä¸ô";
+ Text[ russian ] = "Îòñòóïû è èíòåðâàëû";
+ Text[ polish ] = "Wciêcia i odstêpy";
+ Text[ japanese ] = "²ÝÃÞÝÄ‚ÆsŠÔŠu";
+ Text[ chinese_traditional ] = "ÁY±Æ©M¶¡¹j";
+ Text[ arabic ] = "ÇáÅÒÇÍÉ æÇáÊÈÇÚÏ";
+ Text[ greek ] = "Åóï÷Ýò êáé áðïóôÜóåéò";
+ Text[ korean ] = "µé¿©¾²±â¿Í °£°Ý";
+ Text[ turkish ] = "Girinti ve aralýklar";
+ Text[ language_user1 ] = " ";
+ };
+#if SUPD>352
+ PageItem
+ {
+ Identifier = TP_PARA_ALIGN ;
+ Text = "Ausrichtung" ;
+ Text [ ENGLISH ] = "Alignment" ;
+ PageResID = TP_PARA_ALIGN ;
+ Text [ english_us ] = "Alignment" ;
+ Text [ portuguese_brazilian ] = "Ausrichtung" ;
+ Text [ swedish ] = "Justering" ;
+ Text [ danish ] = "Justering" ;
+ Text [ italian ] = "Allineamento" ;
+ Text [ spanish ] = "Alineación" ;
+ Text [ french ] = "Alignement" ;
+ Text [ dutch ] = "Uitlijning" ;
+ Text [ portuguese ] = "Alinhamento" ;
+ Text[ chinese_simplified ] = "¶ÔÆë";
+ Text[ russian ] = "Âûðàâíèâàíèå";
+ Text[ polish ] = "Wyrównanie";
+ Text[ japanese ] = "”z’u";
+ Text[ chinese_traditional ] = "¹ï»ô";
+ Text[ arabic ] = "ÇáãÍÇÐÇÉ";
+ Text[ greek ] = "Óôïß÷éóç";
+ Text[ korean ] = "¸ÂÃã";
+ Text[ turkish ] = "Hizalama";
+ Text[ language_user1 ] = " ";
+ };
+#endif
+ PageItem
+ {
+ Identifier = TP_PARA_EXT ;
+ /* ### ACHTUNG: Neuer Text in Resource? Textfluß : Textflu˜ */
+ Text = "Textfluss" ;
+ Text [ ENGLISH ] = "Paragraph Extensions" ;
+ Text [ norwegian ] = "Utvidelse av avsnitt" ;
+ Text [ italian ] = "Flusso di testo" ;
+ Text [ portuguese_brazilian ] = "Extens es de Parágrafo" ;
+ Text [ portuguese ] = "Fluxo de texto" ;
+ Text [ finnish ] = "Tekstin rivitys" ;
+ Text [ danish ] = "Tekstretning" ;
+ Text [ french ] = "Enchaînements" ;
+ Text [ swedish ] = "Textflöde" ;
+ Text [ dutch ] = "Tekstverloop" ;
+ Text [ spanish ] = "Flujo del texto" ;
+ Text [ english_us ] = "Text Flow" ;
+ PageResID = TP_PARA_EXT ;
+ Text[ chinese_simplified ] = "»»ÐкͷÖÒ³";
+ Text[ russian ] = "Ïîëîæåíèå íà ñòðàíèöå";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "‘ÌÙ";
+ Text[ chinese_traditional ] = "´«¦æ©M¤À­¶";
+ Text[ arabic ] = "ÇäÓíÇÈ ÇáäÕ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "ÑïÞ êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® È帧";
+ Text[ turkish ] = "Metin akýþý";
+ };
+ PageItem
+ {
+ Identifier = TP_NUMPARA ;
+ Text = "Nummerierung" ;
+ Text [ ENGLISH ] = "Numbering" ;
+ Text [ english_us ] = "Numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ dutch ] = "Nummering" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_TABULATOR ;
+ Text = "Tabulator" ;
+ Text [ ENGLISH ] = "Tab" ;
+ Text [ norwegian ] = "Tab" ;
+ Text [ italian ] = "Tabulazione" ;
+ Text [ portuguese_brazilian ] = "Tabulação" ;
+ Text [ portuguese ] = "Tabulação" ;
+ Text [ finnish ] = "Sarkain" ;
+ Text [ danish ] = "Tabulator" ;
+ Text [ french ] = "Tabulation" ;
+ Text [ swedish ] = "Tabulator" ;
+ Text [ dutch ] = "Tab" ;
+ Text [ spanish ] = "Tabulaciones" ;
+ Text [ english_us ] = "Tabs" ;
+ PageResID = TP_TABULATOR ;
+ Text[ chinese_simplified ] = "ÖƱí·û";
+ Text[ russian ] = "Òàáóëÿöèÿ";
+ Text[ polish ] = "Tabulator";
+ Text[ japanese ] = "ÀÌÞ";
+ Text[ chinese_traditional ] = "»sªí²Å";
+ Text[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ Text[ greek ] = "ÓôçëïèÝôçò";
+ Text[ korean ] = "ÅÇ";
+ Text[ turkish ] = "Sekmeler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_DROPCAPS ;
+ Text = "Initialen" ;
+ Text [ ENGLISH ] = "Drop caps" ;
+ Text [ norwegian ] = "Drop caps" ;
+ Text [ italian ] = "Capolettera" ;
+ Text [ portuguese_brazilian ] = "Capitulares descidas" ;
+ Text [ portuguese ] = "Iniciais" ;
+ Text [ finnish ] = "Anfangit" ;
+ Text [ danish ] = "Initialer" ;
+ Text [ french ] = "Lettrines" ;
+ Text [ swedish ] = "Anfangsbokstäver" ;
+ Text [ dutch ] = "Initialen" ;
+ Text [ spanish ] = "Iniciales" ;
+ Text [ english_us ] = "Drop Caps" ;
+ PageResID = TP_DROPCAPS ;
+ Text[ chinese_simplified ] = "×ÖÊ×´óд";
+ Text[ russian ] = "Èíèöèàëû";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß";
+ Text[ chinese_traditional ] = "¦r­º¤j¼g";
+ Text[ arabic ] = "ÇáÃÍÑÝ ÇáÇÓÊåáÇáíÉ";
+ Text[ greek ] = "Áñ÷éãñÜììáôá";
+ Text[ korean ] = "´Ü¶ô ù¹®ÀÚ Àå½Ä";
+ Text[ turkish ] = "Baþharfler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ PageResID = TP_BORDER ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "°æ°è¼±";
+ Text[ turkish ] = "Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "¶ÎÂä";
+ Text[ russian ] = "Àáçàö";
+ Text[ polish ] = "Akapit";
+ Text[ japanese ] = "’i—Ž";
+ Text[ chinese_traditional ] = "¬q¸¨";
+ Text[ arabic ] = "ÝÞÑÉ";
+ Text[ greek ] = "ÐáñÜãñáöïò";
+ Text[ korean ] = "´Ü¶ô";
+ Text[ turkish ] = "Paragraf";
+ Text[ language_user1 ] = " ";
+};
+TabDialog DLG_DRAWPARA
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Absatz" ;
+ Text [ ENGLISH ] = "Paragraph" ;
+ Text [ norwegian ] = "Avsnitt" ;
+ Text [ italian ] = "Paragrafo" ;
+ Text [ portuguese_brazilian ] = "Parágrafo" ;
+ Text [ portuguese ] = "Parágrafo" ;
+ Text [ finnish ] = "Kappale" ;
+ Text [ danish ] = "Afsnit" ;
+ Text [ french ] = "Paragraphe" ;
+ Text [ swedish ] = "Stycke" ;
+ Text [ dutch ] = "Alinea" ;
+ Text [ spanish ] = "Párrafo" ;
+ Text [ english_us ] = "Paragraph" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_PARA_STD ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einzüge und Abstände : Einz³ge und Abstõnde */
+ Text = "Einzüge und Abstände" ;
+ Text [ ENGLISH ] = "Paragraph" ;
+ Text [ norwegian ] = "Avsnitt" ;
+ Text [ italian ] = "Rientri e spaziature" ;
+ Text [ portuguese_brazilian ] = "Parágrafo" ;
+ Text [ portuguese ] = "Avanços e espaçamento" ;
+ Text [ finnish ] = "Kappale" ;
+ Text [ danish ] = "Indrykning og mellemrum" ;
+ Text [ french ] = "Retraits et écarts" ;
+ Text [ swedish ] = "Indrag och avstånd" ;
+ Text [ dutch ] = "Inspringingen en afstanden" ;
+ Text [ spanish ] = "Sangrías y espacios" ;
+ Text [ english_us ] = "Indents & Spacing" ;
+ PageResID = TP_PARA_STD ;
+ Text[ chinese_simplified ] = "Ëõ½øºÍ¼ä¸ô";
+ Text[ russian ] = "Îòñòóïû è èíòåðâàëû";
+ Text[ polish ] = "Wciêcia i odstêpy";
+ Text[ japanese ] = "²ÝÃÞÝÄ‚ÆsŠÔŠu";
+ Text[ chinese_traditional ] = "ÁY±Æ©M¶¡¹j";
+ Text[ arabic ] = "ÇáÅÒÇÍÉ æÇáÊÈÇÚÏ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Åóï÷Ýò êáé áðïóôÜóåéò";
+ Text[ korean ] = "µé¿©¾²±â¿Í °£°Ý";
+ Text[ turkish ] = "Girinti ve aralýklar";
+ };
+#if SUPD>352
+ PageItem
+ {
+ Identifier = TP_PARA_ALIGN ;
+ Text = "Ausrichtung" ;
+ Text [ ENGLISH ] = "Alignment" ;
+ PageResID = TP_PARA_ALIGN ;
+ Text [ english_us ] = "Alignment" ;
+ Text [ portuguese_brazilian ] = "Ausrichtung" ;
+ Text [ swedish ] = "Justering" ;
+ Text [ danish ] = "Justering" ;
+ Text [ italian ] = "Allineamento" ;
+ Text [ spanish ] = "Alineación" ;
+ Text [ french ] = "Alignement" ;
+ Text [ dutch ] = "Uitlijning" ;
+ Text [ portuguese ] = "Alinhamento" ;
+ Text[ chinese_simplified ] = "¶ÔÆë";
+ Text[ russian ] = "Âûðàâíèâàíèå";
+ Text[ polish ] = "Wyrównanie";
+ Text[ japanese ] = "”z’u";
+ Text[ chinese_traditional ] = "¹ï»ô";
+ Text[ arabic ] = "ÇáãÍÇÐÇÉ";
+ Text[ greek ] = "Óôïß÷éóç";
+ Text[ korean ] = "¸ÂÃã";
+ Text[ turkish ] = "Hizalama";
+ Text[ language_user1 ] = " ";
+ };
+#endif
+ PageItem
+ {
+ Identifier = TP_TABULATOR ;
+ Text = "Tabulator" ;
+ Text [ ENGLISH ] = "Tab" ;
+ Text [ norwegian ] = "Tab" ;
+ Text [ italian ] = "Tabulazione" ;
+ Text [ portuguese_brazilian ] = "Tabulação" ;
+ Text [ portuguese ] = "Tabulação" ;
+ Text [ finnish ] = "Sarkain" ;
+ Text [ danish ] = "Tabulator" ;
+ Text [ french ] = "Tabulation" ;
+ Text [ swedish ] = "Tabulator" ;
+ Text [ dutch ] = "Tab" ;
+ Text [ spanish ] = "Tabulaciones" ;
+ Text [ english_us ] = "Tabs" ;
+ PageResID = TP_TABULATOR ;
+ Text[ chinese_simplified ] = "ÖƱí·û";
+ Text[ russian ] = "Òàáóëÿöèÿ";
+ Text[ polish ] = "Tabulator";
+ Text[ japanese ] = "ÀÌÞ";
+ Text[ chinese_traditional ] = "»sªí²Å";
+ Text[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ Text[ greek ] = "ÓôçëïèÝôçò";
+ Text[ korean ] = "ÅÇ";
+ Text[ turkish ] = "Sekmeler";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "¶ÎÂä";
+ Text[ russian ] = "Àáçàö";
+ Text[ polish ] = "Akapit";
+ Text[ japanese ] = "’i—Ž";
+ Text[ chinese_traditional ] = "¬q¸¨";
+ Text[ arabic ] = "ÝÞÑÉ";
+ Text[ greek ] = "ÐáñÜãñáöïò";
+ Text[ korean ] = "´Ü¶ô";
+ Text[ turkish ] = "Paragraf";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/chrdlg/pardlg.cxx b/sw/source/ui/chrdlg/pardlg.cxx
new file mode 100644
index 000000000000..6830eb535abe
--- /dev/null
+++ b/sw/source/ui/chrdlg/pardlg.cxx
@@ -0,0 +1,505 @@
+/*************************************************************************
+ *
+ * $RCSfile: pardlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVX_TABSTPGE_HXX //autogen
+#include <svx/tabstpge.hxx>
+#endif
+#ifndef _SVX_PARAGRPH_HXX //autogen
+#include <svx/paragrph.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX
+#include <svx/backgrnd.hxx>
+#endif
+#ifndef _SVX_BORDER_HXX
+#include <svx/border.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+#ifndef _SVSTDARR_STRINGSISORTDTOR
+#define _SVSTDARR_STRINGSISORTDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+
+#include "docsh.hxx"
+#include "wrtsh.hxx"
+#include "frmatr.hxx"
+#include "view.hxx"
+#include "globals.hrc"
+#include "pardlg.hxx"
+#include "pagedesc.hxx"
+#include "paratr.hxx"
+#include "drpcps.hxx"
+#include "uitool.hxx"
+#include "viewopt.hxx"
+
+#ifndef _NUMPARA_HXX
+#include <numpara.hxx>
+#endif
+#include "chrdlg.hrc"
+#include "poolfmt.hrc"
+
+
+// STATIC DATA -----------------------------------------------------------
+
+
+SwParaDlg::SwParaDlg(Window *pParent,
+ SwView& rVw,
+ const SfxItemSet& rCoreSet,
+ BYTE nDialogMode,
+ const String *pTitle,
+ BOOL bDraw,
+ UINT16 nDefPage):
+
+ SfxTabDialog(pParent, bDraw ? SW_RES(DLG_DRAWPARA) : SW_RES(DLG_PARA),
+ &rCoreSet, 0 != pTitle),
+
+ rView(rVw),
+ nDlgMode(nDialogMode),
+ bDrawParaDlg(bDraw)
+
+{
+ FreeResource();
+
+ nHtmlMode = ::GetHtmlMode(rVw.GetDocShell());
+ BOOL bHtmlMode = nHtmlMode & HTMLMODE_ON;
+ if(pTitle)
+ {
+ // Update des Titels
+ String aTmp( GetText() );
+ aTmp += SW_RESSTR(STR_TEXTCOLL_HEADER);
+ aTmp += *pTitle;
+ aTmp += ')';
+ SetText(aTmp);
+ }
+
+ AddTabPage(TP_PARA_STD, SvxStdParagraphTabPage::Create,SvxStdParagraphTabPage::GetRanges);
+ AddTabPage(TP_PARA_ALIGN, SvxParaAlignTabPage::Create,SvxParaAlignTabPage::GetRanges);
+
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ if (!bDrawParaDlg && (!bHtmlMode || pHtmlOpt->IsPrintLayoutExtension()))
+ AddTabPage(TP_PARA_EXT, SvxExtParagraphTabPage::Create,SvxExtParagraphTabPage::GetRanges);
+ else
+ RemoveTabPage(TP_PARA_EXT);
+
+ USHORT nWhich(rCoreSet.GetPool()->GetWhich(SID_ATTR_LRSPACE));
+ BOOL bLRValid = SFX_ITEM_AVAILABLE <= rCoreSet.GetItemState(nWhich);
+ if(bHtmlMode || !bLRValid)
+ RemoveTabPage(TP_TABULATOR);
+ else
+ AddTabPage(TP_TABULATOR, SvxTabulatorTabPage::Create, SvxTabulatorTabPage::GetRanges);
+
+ if (!bDrawParaDlg)
+ {
+ if(!(nDlgMode & DLG_ENVELOP))
+ AddTabPage(TP_NUMPARA, SwParagraphNumTabPage::Create,SwParagraphNumTabPage::GetRanges);
+ else
+ RemoveTabPage(TP_NUMPARA);
+ if(!bHtmlMode || (nHtmlMode & HTMLMODE_FULL_STYLES))
+ {
+ AddTabPage(TP_DROPCAPS, SwDropCapsPage::Create, SwDropCapsPage::GetRanges);
+ AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, SvxBackgroundTabPage::GetRanges);
+ }
+ else
+ {
+ RemoveTabPage(TP_DROPCAPS);
+ RemoveTabPage(TP_BACKGROUND);
+ }
+ if(!bHtmlMode || (nHtmlMode & HTMLMODE_PARA_BORDER))
+ AddTabPage(TP_BORDER, SvxBorderTabPage::Create, SvxBorderTabPage::GetRanges);
+ else
+ RemoveTabPage(TP_BORDER);
+ }
+
+ if (nDefPage)
+ SetCurPageId(nDefPage);
+}
+
+
+__EXPORT SwParaDlg::~SwParaDlg()
+{
+}
+
+
+void __EXPORT SwParaDlg::PageCreated(USHORT nId, SfxTabPage& rPage)
+{
+ SwWrtShell& rSh = rView.GetWrtShell();
+
+ // Bei Tabellenumrandung kann im Writer kein Schatten eingestellt werden
+ if (nId == TP_BORDER)
+ {
+ ((SvxBorderTabPage&) rPage).SetSWMode(SW_BORDER_MODE_PARA);
+ }
+ else if( nId == TP_PARA_STD )
+ {
+ ((SvxStdParagraphTabPage&)rPage).SetPageWidth(
+ rSh.GetAnyCurRect(RECT_PAGE_PRT).Width());
+ if (!bDrawParaDlg)
+ {
+ ((SvxStdParagraphTabPage&)rPage).EnableRegisterMode();
+ ((SvxStdParagraphTabPage&)rPage).EnableAutoFirstLine();
+ ((SvxStdParagraphTabPage&)rPage).EnableAbsLineDist(MM50/2);
+ ((SvxStdParagraphTabPage&)rPage).EnableNegativeMode();
+ }
+ }
+ else if( TP_PARA_ALIGN == nId)
+ {
+ if (!bDrawParaDlg)
+ ((SvxParaAlignTabPage&)rPage).EnableJustifyExt();
+ }
+ else if( TP_PARA_EXT == nId )
+ {
+ // Seitenumbruch nur, wenn der Cursor im Body-Bereich und nicht in
+ // einer Tabelle steht
+ const USHORT eType = rSh.GetFrmType(0,TRUE);
+ if( !(FRMTYPE_BODY & eType) ||
+ rSh.GetSelectionType() & SwWrtShell::SEL_TBL )
+ ((SvxExtParagraphTabPage&)rPage).DisablePageBreak();
+ }
+ else if( TP_DROPCAPS == nId )
+ {
+ ((SwDropCapsPage&)rPage).SetFormat(FALSE);
+ }
+ else if( TP_BACKGROUND == nId )
+ {
+ if(!( nHtmlMode & HTMLMODE_ON ) ||
+ nHtmlMode & HTMLMODE_SOME_STYLES)
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+ }
+ else if( TP_NUMPARA == nId)
+ {
+ ((SwParagraphNumTabPage&)rPage).EnableNewStart();
+ ListBox & rBox = ((SwParagraphNumTabPage&)rPage).GetStyleBox();
+ SfxStyleSheetBasePool* pPool = rView.GetDocShell()->GetStyleSheetPool();
+ pPool->SetSearchMask(SFX_STYLE_FAMILY_PSEUDO, SFXSTYLEBIT_ALL);
+ const SfxStyleSheetBase* pBase = pPool->First();
+ SvStringsISortDtor aNames;
+ while(pBase)
+ {
+ aNames.Insert(new String(pBase->GetName()));
+ pBase = pPool->Next();
+ }
+ for(USHORT i = 0; i < aNames.Count(); i++)
+ rBox.InsertEntry(*aNames.GetObject(i));
+ }
+
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.195 2000/09/18 16:05:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.194 2000/08/24 08:44:19 ama
+ New: Negative margins
+
+ Revision 1.193 1999/05/19 07:59:54 OS
+ #66015# Absatzausrichtung: Erweiterungen nicht fuer Draw-Text
+
+
+ Rev 1.192 19 May 1999 09:59:54 OS
+ #66015# Absatzausrichtung: Erweiterungen nicht fuer Draw-Text
+
+ Rev 1.191 27 Nov 1998 14:51:26 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.190 28 Apr 1998 09:08:54 OS
+ Background: ShowSelector mit HTML-Beruecksichtigung #49862#
+
+ Rev 1.189 21 Apr 1998 15:33:44 OS
+ zwei ! an der falschen Stelle
+
+ Rev 1.188 16 Apr 1998 16:00:10 OS
+ Ranges der TabPages mitgeben #47097# Printing extensions fuer HTML
+
+ Rev 1.187 05 Feb 1998 14:45:16 OS
+ Remove-/AddTabPage alternativ, TableMode entsorgt, keine Numerierung fuer Umschlaege
+
+ Rev 1.186 02 Feb 1998 09:13:32 OS
+ neue Num-Tabpage
+
+ Rev 1.185 09 Dec 1997 16:46:28 OS
+ Numerierungsvorlagen sortieren
+
+ Rev 1.184 04 Dec 1997 16:59:12 OS
+ Numerierung im Absatzdialog
+
+ Rev 1.183 28 Nov 1997 15:03:02 MA
+ includes
+
+ Rev 1.182 21 Nov 1997 12:24:36 MA
+ includes
+
+ Rev 1.181 02 Sep 1997 10:46:12 OS
+ includes
+
+ Rev 1.180 29 Aug 1997 17:30:02 HJS
+ includes
+
+ Rev 1.179 03 Jul 1997 12:55:34 OS
+ SwSwMode jetzt mit BYTE #41255#
+
+ Rev 1.178 11 Jun 1997 16:19:54 OS
+ absolute Zeilenhoehe aktiviert
+
+ Rev 1.177 10 Feb 1997 13:22:58 OS
+ Absatz HG nur fuer FULL_STYLES
+
+ Rev 1.176 05 Feb 1997 16:20:56 OS
+ kein Hintergrund ohne Styles
+
+ Rev 1.175 05 Feb 1997 13:32:12 OS
+ im SW sind DropCaps auch fuer HTML erlaubt
+
+ Rev 1.174 28 Jan 1997 16:32:54 OS
+ alte defines entfernt
+
+ Rev 1.173 27 Jan 1997 16:15:18 OS
+ HtmlMode wird ueber GetHtmlMode ermittelt
+
+ Rev 1.172 17 Jan 1997 12:56:34 OS
+ neue Absatz-Tabpage ab 353: Ausrichtung
+
+ Rev 1.171 16 Jan 1997 18:14:12 OM
+ Tabulator-TP fuer DrawTextMode wiederbelebt
+
+ Rev 1.170 08 Jan 1997 10:54:24 OS
+ HtmlMode ueber GetHtmlMode ermitteln
+
+ Rev 1.169 28 Nov 1996 14:57:32 OS
+ keine Tabulatorpage mit uneindeutigen Absatzeinzuegen
+
+ Rev 1.168 11 Nov 1996 09:16:40 MA
+ ResMgr
+
+ Rev 1.167 14 Oct 1996 17:43:56 HJS
+ include
+
+ Rev 1.166 14 Oct 1996 12:51:16 OS
+ einige TabPages im Html-Mode verstecken
+
+ Rev 1.165 12 Sep 1996 17:03:06 OS
+ GetAnyCurRect() ersetzt GetCur*Rect
+
+ Rev 1.164 28 Aug 1996 08:59:08 OS
+ includes
+
+ Rev 1.163 09 Aug 1996 11:38:06 OM
+ #30084#GPF behoben
+
+ Rev 1.162 23 Jul 1996 16:08:18 OS
+ EnableRegisterMode am Absatzdialog setzen
+
+ Rev 1.161 24 May 1996 14:31:50 OS
+ Hintergrundgrafik enabled
+
+ Rev 1.160 05 Feb 1996 17:27:14 OM
+ #24879# Parent-Win in Ctor uebergeben
+
+ Rev 1.159 28 Nov 1995 23:37:14 JP
+ uisys.hxx gibt es nicht mehr
+
+ Rev 1.158 24 Nov 1995 16:57:34 OM
+ PCH->PRECOMPILED
+
+ Rev 1.157 23 Nov 1995 17:57:00 OM
+ Default-TabPage setzen
+
+ Rev 1.156 09 Nov 1995 17:56:38 OS
+ Format-Bit an der Initialen-Page FALSE setzen
+
+ Rev 1.155 03 Nov 1995 20:17:10 MA
+ GetUpper..Rect returne keine Objecte mehr
+
+ Rev 1.154 31 Oct 1995 18:36:08 OM
+ GetActive... entfernt
+
+ Rev 1.153 07 Aug 1995 13:42:30 JP
+ Breaks nur im Body-Bereich zulassen
+
+ Rev 1.152 06 Aug 1995 18:26:46 OM
+ DrawTextShell-Popup
+
+ Rev 1.151 14 Jul 1995 17:47:04 OS
+ Seitenbreite an der StdParagraphTabPage setzen
+
+ Rev 1.150 07 Jul 1995 10:46:52 OS
+ Seitenvorlagen werden jetzt vom Svx besorgt
+
+ Rev 1.149 25 Apr 1995 17:21:52 OS
+ PageModels fuellen BugFix 11100/11105
+
+ Rev 1.148 30 Mar 1995 18:38:18 PK
+ caption fuer absatzvorlagen
+
+ Rev 1.147 29 Mar 1995 09:12:22 OS
+ TabDialog - weniger Parameter
+
+ Rev 1.146 01 Feb 1995 17:45:44 PK
+ hideshadowcontrol()
+
+ Rev 1.145 27 Jan 1995 06:59:44 MS
+ HideShadowControls auskommentiert
+
+ Rev 1.144 26 Jan 1995 17:36:26 PK
+ hideshadowcontrols() scharfgeschaltet
+
+ Rev 1.143 26 Jan 1995 17:00:34 PK
+ pagecreated() ueberladen
+
+ Rev 1.142 24 Jan 1995 12:51:14 SWG
+ Map entfernt
+
+ Rev 1.141 09 Jan 1995 16:31:52 ER
+ del: paradlg hrc
+
+ Rev 1.140 07 Dec 1994 09:44:04 MS
+ Fix 122c
+
+ Rev 1.139 06 Dec 1994 16:30:04 MS
+ Einbau allgemeiner AbsatzDlg
+
+ Rev 1.138 05 Dec 1994 16:54:16 MS
+ Anpassung Tabdlg
+
+ Rev 1.137 01 Dec 1994 16:49:58 MS
+ GetActiveView
+
+ Rev 1.136 01 Dec 1994 16:14:02 MS
+ Id Tabpages in globals.hrc
+
+ Rev 1.135 18 Nov 1994 15:31:58 MA
+ min -> Min, max -> Max
+
+ Rev 1.134 15 Nov 1994 09:02:36 SWG
+ SetLineSpace static deklariert
+
+ Rev 1.133 02 Nov 1994 11:25:38 AMA
+ Reimport Absatzattr. als Svx (paraitem.hxx)
+ SvxSizeItem->SvxFontHeight (textitem.hxx)
+
+ Rev 1.132 28 Oct 1994 19:13:18 MA
+ Reimport frmatr.
+
+ Rev 1.131 25 Oct 1994 15:50:14 ER
+ add: PCH
+
+ Rev 1.130 14 Oct 1994 15:09:50 MS
+ ctor umgestellt
+
+ Rev 1.129 12 Oct 1994 08:12:14 MS
+ Anpassung Sfx
+
+ Rev 1.128 07 Oct 1994 10:50:02 PK
+ sexport fuer dtor
+
+ Rev 1.127 06 Oct 1994 12:09:12 VB
+ Bugfix Aenderung Parent TabPages im Sfx
+
+ Rev 1.126 06 Oct 1994 09:59:32 VB
+ Bugfix Sfx
+
+ Rev 1.125 05 Oct 1994 09:35:22 SWG
+ Aenderungen Sfx
+
+ Rev 1.124 04 Oct 1994 18:21:02 SWG
+ Syntaxaederungen Sfx
+
+ Rev 1.123 04 Oct 1994 18:07:50 SWG
+ FillSet -> FillItemSet
+
+ Rev 1.122 04 Oct 1994 16:49:40 VB
+ Grenzwerte, Handler
+
+ Rev 1.121 30 Sep 1994 16:50:32 VB
+ Zwischensicherung
+
+ Rev 1.120 29 Sep 1994 17:42:56 VB
+ Syntaxprobleme
+
+ Rev 1.119 29 Sep 1994 16:02:06 VB
+ Umstellung SfxTabDlg
+
+ Rev 1.118 28 Sep 1994 12:57:48 VB
+ Absatzdialog als Huelle
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/chrdlg/swbreak.src b/sw/source/ui/chrdlg/swbreak.src
new file mode 100644
index 000000000000..8ae036820a55
--- /dev/null
+++ b/sw/source/ui/chrdlg/swbreak.src
@@ -0,0 +1,412 @@
+/*************************************************************************
+ *
+ * $RCSfile: swbreak.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "chrdlg.hrc"
+#include "break.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ // #define DLG_BREAK 256
+ModalDialog DLG_BREAK
+{
+ HelpID = FN_INSERT_BREAK_DLG ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 161 , 114 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Umbruch einfügen : Umbruch einf³gen */
+ Text = "Umbruch einfügen" ;
+ Text [ ENGLISH ] = "Insert Break" ;
+ Text [ norwegian ] = "Sett inn Skift" ;
+ Text [ italian ] = "Inserisci interruzione" ;
+ Text [ portuguese_brazilian ] = "Inserir Interrupção" ;
+ Text [ portuguese ] = "Inserir quebra" ;
+ Text [ finnish ] = "Lisää vaihto" ;
+ Text [ danish ] = "Indsæt skift" ;
+ Text [ french ] = "Insérer un saut" ;
+ Text [ swedish ] = "Infoga brytning" ;
+ Text [ dutch ] = "Einde invoegen" ;
+ Text [ spanish ] = "Insertar salto" ;
+ Text [ english_us ] = "Insert Break" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 105 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 105 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 105 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ RadioButton RB_LINE
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "~Zeilenumbruch" ;
+ Text [ ENGLISH ] = "~Line break" ;
+ Text [ norwegian ] = "~Linjeskift" ;
+ Text [ italian ] = "I~nterruzione riga" ;
+ Text [ portuguese_brazilian ] = "~Quebra de linha" ;
+ Text [ portuguese ] = "~Quebra de linha" ;
+ Text [ finnish ] = "~Rivinvaihto" ;
+ Text [ danish ] = "Linjeskift" ;
+ Text [ french ] = "R~envoi à la ligne" ;
+ Text [ swedish ] = "~Radbrytning" ;
+ Text [ dutch ] = "~Regeleinde" ;
+ Text [ spanish ] = "Salto de ~línea" ;
+ Text [ english_us ] = "~Line break" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "»»ÐÐ(~L)";
+ Text[ russian ] = "Ðàçðûâ ñòðîêè";
+ Text[ polish ] = "Podzia³ ~wierszy";
+ Text[ japanese ] = "‰üs(~L)";
+ Text[ chinese_traditional ] = "´«¦æ(~L)";
+ Text[ arabic ] = "ÝÇÕá ÃÓØÑ";
+ Text[ greek ] = "ÁëëáãÞ ãñáììÞò";
+ Text[ korean ] = "¼± ³ª´©±â(~L)";
+ Text[ turkish ] = "Satýr sonu";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_PAGE
+ {
+ Pos = MAP_APPFONT ( 12 , 39 ) ;
+ Size = MAP_APPFONT ( 63 , 10 ) ;
+ Text = "~Seitenumbruch" ;
+ Text [ ENGLISH ] = "~Page break" ;
+ Text [ norwegian ] = "~Sideskift" ;
+ Text [ italian ] = "In~terruzione pagina" ;
+ Text [ portuguese_brazilian ] = "~Quebra de página" ;
+ Text [ portuguese ] = "~Quebra de página" ;
+ Text [ finnish ] = "~Sivunvaihto" ;
+ Text [ danish ] = "Sideskift" ;
+ Text [ french ] = "Saut de p~age" ;
+ Text [ swedish ] = "~Sidbrytning" ;
+ Text [ dutch ] = "~Pagina-einde" ;
+ Text [ spanish ] = "Salto de ~página" ;
+ Text [ english_us ] = "~Page break" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "»»Ò³(~P)";
+ Text[ russian ] = "Ðàçðûâ ñòðàíèöû";
+ Text[ polish ] = "Podzia³ stron";
+ Text[ japanese ] = "‰üÍß°¼Þ(~P)";
+ Text[ chinese_traditional ] = "´«­¶(~P)";
+ Text[ arabic ] = "ÝÇÕá ÕÝÍÇÊ";
+ Text[ greek ] = "ÁëëáãÞ óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ³ª´©±â(~P)";
+ Text[ turkish ] = "~Sayfa sonu";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_COL
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 69 , 10 ) ;
+ Text = "S~paltenumbruch" ;
+ Text [ ENGLISH ] = "~Column break" ;
+ Text [ norwegian ] = "~Kolonneskift" ;
+ Text [ italian ] = "Interr~uzione colonna" ;
+ Text [ portuguese_brazilian ] = "~Quebra de coluna" ;
+ Text [ portuguese ] = "~Quebra de coluna" ;
+ Text [ finnish ] = "~Palstanvaihto" ;
+ Text [ danish ] = "Spalteskift" ;
+ Text [ french ] = "Saut de ~colonne" ;
+ Text [ swedish ] = "Kolumnbrytning" ;
+ Text [ dutch ] = "~Kolomeinde" ;
+ Text [ spanish ] = "Salto de colu~mna" ;
+ Text [ english_us ] = "~Column break" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "»»À¸(~C)";
+ Text[ russian ] = "Ðàçðûâ êîëîíêè";
+ Text[ polish ] = "Podzia³ kolumny";
+ Text[ japanese ] = "‰ü’i(~C)";
+ Text[ chinese_traditional ] = "´«Äæ(~C)";
+ Text[ arabic ] = "ÝÇÕá ÃÚãÏÉ";
+ Text[ greek ] = "ÁëëáãÞ óôÞëçò";
+ Text[ korean ] = "¿­ ³ª´©±â(~C)";
+ Text[ turkish ] = "Sütun sonu";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_BREAK
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 93 , 105 ) ;
+ Text = "Art" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "Type" ;
+ Text [ swedish ] = "Typ" ;
+ Text [ dutch ] = "Type" ;
+ Text [ spanish ] = "Tipo" ;
+ Text [ english_us ] = "Type" ;
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ turkish ] = "Tür";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_COLL
+ {
+ Pos = MAP_APPFONT ( 12 , 51 ) ;
+ Size = MAP_APPFONT ( 30 , 8 ) ;
+ Text = "~Vorlage" ;
+ Text [ ENGLISH ] = "~Style" ;
+ Text [ norwegian ] = "~Style" ;
+ Text [ italian ] = "Modello" ;
+ Text [ portuguese_brazilian ] = "~Estilo" ;
+ Text [ portuguese ] = "~Estilo" ;
+ Text [ finnish ] = "~Tyyli" ;
+ Text [ danish ] = "Typografi" ;
+ Text [ french ] = "~Style" ;
+ Text [ swedish ] = "~Formatmall" ;
+ Text [ dutch ] = "~Profiel" ;
+ Text [ spanish ] = "~Estilo" ;
+ Text [ english_us ] = "~Style" ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ñùʽ(~S)";
+ Text[ russian ] = "Øàáëîí";
+ Text[ polish ] = "Szablon";
+ Text[ japanese ] = "½À²Ù(~S)";
+ Text[ chinese_traditional ] = "¼Ë¦¡(~S)";
+ Text[ arabic ] = "äãØ";
+ Text[ greek ] = "Ðñüôõðï";
+ Text[ korean ] = "À¯Çü(~S)";
+ Text[ turkish ] = "~Biçim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_COLL
+ {
+ Pos = MAP_APPFONT ( 12 , 62 ) ;
+ Size = MAP_APPFONT ( 75 , 50 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "[Ohne]" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "[Ohne]" ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "[Ohne]" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "[Nessuno]" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "[Nenhum]" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "[sem]" ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "[Ohne]" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "[Uden]" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "[Aucun]" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "[Utan]" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "[Geen]" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "[Sin]" ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "[None]" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "[ÎÞ]" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "[Áåç]" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "[Brak]" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "[‚È‚µ]" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "[µL]" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "[ÈÏæä]" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "[×ùñßò]" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "[¾øÀ½]" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "[Yok]" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ };
+ };
+ CheckBox CB_PAGENUM
+ {
+ Pos = MAP_APPFONT ( 12 , 77 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Seitennummer ~ändern : Seitennummer ~õndern */
+ Text = "Seitennummer ~ändern" ;
+ Text [ English ] = "Change page number" ;
+ Text [ norwegian ] = "Endre sidenummer" ;
+ Text [ italian ] = "Cambia numero pagina" ;
+ Text [ portuguese_brazilian ] = "Mudar número de página" ;
+ Text [ portuguese ] = "Alterar número de página" ;
+ Text [ finnish ] = "Muuttaa sivunumeroa" ;
+ Text [ danish ] = "Modificer sidetal" ;
+ Text [ french ] = "Modifier ~no. de page" ;
+ Text [ swedish ] = "~Ändra sidnummer" ;
+ Text [ dutch ] = "~Paginanummer wijzigen" ;
+ Text [ spanish ] = "Cam~biar número de página" ;
+ Text [ english_us ] = "Change page ~number" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "¸ü¸ÄÒ³Âë(~N)";
+ Text[ russian ] = "Èçìåíèòü íîìåð ñòðàíèöû";
+ Text[ polish ] = "Zmieñ numer strony";
+ Text[ japanese ] = "Íß°¼Þ”Ô†‚Ì•ÏX(~N)";
+ Text[ chinese_traditional ] = "Åܧ󭶽X(~N)";
+ Text[ arabic ] = "ÊÛííÑ ÑÞã ÇáÕÝÍÉ";
+ Text[ greek ] = "ÁëëáãÞ áñéèìïý óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¹øÈ£ º¯°æ(~N)";
+ Text[ turkish ] = "Sayfa numarasýný deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_PAGENUM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 90 ) ;
+ Size = MAP_APPFONT ( 31 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 9999 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 9999 ;
+ };
+ Text[ chinese_simplified ] = "²åÈë»»ÐÐ";
+ Text[ russian ] = "Âñòàâèòü ðàçðûâ";
+ Text[ polish ] = "Wstaw podzia³";
+ Text[ japanese ] = "‹æØ‚è‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J´«¦æ";
+ Text[ arabic ] = "ÅÏÑÇÌ ÝÇÕá";
+ Text[ greek ] = "ÅéóáãùãÞ áëëáãÞò";
+ Text[ korean ] = "³ª´©±â »ðÀÔ";
+ Text[ turkish ] = "Kesme ekle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/chrdlg/tblnumfm.cxx b/sw/source/ui/chrdlg/tblnumfm.cxx
new file mode 100644
index 000000000000..1be5e38a3f89
--- /dev/null
+++ b/sw/source/ui/chrdlg/tblnumfm.cxx
@@ -0,0 +1,127 @@
+/*************************************************************************
+ *
+ * $RCSfile: tblnumfm.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SVX_NUMFMT_HXX //autogen
+#include <svx/numfmt.hxx>
+#endif
+
+#include "swtypes.hxx"
+
+#include "chrdlg.hrc"
+#include "tblnumfm.hxx"
+
+
+SwNumFmtDlg::SwNumFmtDlg(Window* pParent, SfxItemSet& rSet) :
+
+ SfxSingleTabDialog(pParent, rSet, 0)
+
+{
+// SetText(SW_RESSTR(STR_NUMFMT));
+
+ // TabPage erzeugen
+ SvxNumberFormatTabPage* pPage = (SvxNumberFormatTabPage*) SvxNumberFormatTabPage::Create(this, rSet);
+ const SfxPoolItem& rInfoItem = pPage->GetItemSet().Get(SID_ATTR_NUMBERFORMAT_INFO);
+ pPage->SetNumberFormatList((const SvxNumberInfoItem&)rInfoItem );
+
+ SetTabPage(pPage);
+}
+
+
+SwNumFmtDlg::~SwNumFmtDlg()
+{
+}
+
+/*************************************************************************
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.5 2000/09/18 16:05:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.4 1998/02/25 11:39:14 TJ
+ include
+
+
+ Rev 1.3 25 Feb 1998 12:39:14 TJ
+ include
+
+ Rev 1.2 21 Nov 1997 12:24:36 MA
+ includes
+
+ Rev 1.1 03 Nov 1997 13:10:22 MA
+ precomp entfernt
+
+ Rev 1.0 14 Feb 1997 18:05:02 OM
+ Initial revision.
+
+*************************************************************************/
+
diff --git a/sw/source/ui/config/barcfg.cxx b/sw/source/ui/config/barcfg.cxx
new file mode 100644
index 000000000000..2bf41ce41495
--- /dev/null
+++ b/sw/source/ui/config/barcfg.cxx
@@ -0,0 +1,183 @@
+/*************************************************************************
+ *
+ * $RCSfile: barcfg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _TOOLS_TABLE_HXX //autogen
+#include <tools/table.hxx>
+#endif
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+
+#include "barcfg.hxx"
+#include "cfgid.h"
+
+#define BAR_VERSION UINT16(1)
+
+DECLARE_TABLE(CfgUSHORTTable,void*);
+
+SwToolbarConfigItem::SwToolbarConfigItem( BOOL bWeb ) :
+ SfxConfigItem( bWeb ? CFG_TOOLBARCONFIG_ITEM : CFG_WEBTOOLBARCONFIG_ITEM ),
+ pTbl( new CfgUSHORTTable )
+{
+ SetInternal( TRUE );
+}
+
+SwToolbarConfigItem::~SwToolbarConfigItem()
+{
+ delete pTbl;
+}
+
+void SwToolbarConfigItem::SetTopToolbar( int nSelType, USHORT nBarId )
+{
+ if ( !pTbl->IsKeyValid( ULONG(nSelType) ) )
+ pTbl->Insert( ULONG(nSelType), (void*)(ULONG)nBarId );
+ else
+ pTbl->Replace( ULONG(nSelType), (void*)(ULONG)nBarId );
+}
+
+USHORT SwToolbarConfigItem::GetTopToolbar( int nSelType )
+{
+ if ( !pTbl->IsKeyValid( ULONG(nSelType) ) )
+ return USHRT_MAX;
+ else
+ return (USHORT)(ULONG)pTbl->Get( ULONG(nSelType) );
+}
+
+BOOL SwToolbarConfigItem::Store(SvStream& rStrm)
+{
+ rStrm << BAR_VERSION;
+ rStrm << UINT16(pTbl->Count());
+
+ if ( pTbl->Count() )
+ {
+ UINT16 nVal = UINT16((ULONG)pTbl->First());
+ while ( nVal )
+ {
+ UINT16 nKey = UINT16((ULONG)pTbl->GetCurKey());
+ rStrm << nKey << nVal;
+ nVal = UINT16((ULONG)pTbl->Next());
+ }
+ }
+
+ return SfxConfigItem::ERR_OK;
+}
+
+
+int SwToolbarConfigItem::Load(SvStream& rStrm)
+{
+ UINT16 nVersion;
+ rStrm >> nVersion;
+
+ if ( nVersion >= BAR_VERSION )
+ {
+ UINT16 nCount;
+ rStrm >> nCount;
+ if ( nCount )
+ {
+ for ( UINT16 i = 0; i < nCount; ++i )
+ {
+ UINT16 nKey, nVal;
+ rStrm >> nKey >> nVal;
+ pTbl->Insert( nKey, (void*)(ULONG)nVal );
+ }
+ }
+
+ SetDefault(FALSE);
+ return SfxConfigItem::ERR_OK;
+ }
+ else
+ return SfxConfigItem::WARNING_VERSION;
+}
+
+
+void SwToolbarConfigItem::UseDefault()
+{
+ SfxConfigItem::UseDefault();
+ pTbl->Clear();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.4 2000/09/18 16:05:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.3 1998/04/08 11:46:42 OS
+ einer noch..
+
+
+ Rev 1.2 08 Apr 1998 13:46:42 OS
+ einer noch..
+
+ Rev 1.1 08 Apr 1998 13:41:32 OS
+ Table mit void* -> fuer UNX und MAC
+
+ Rev 1.0 02 Apr 1998 10:06:04 MA
+ new: ToolbarCfg
+
+
+------------------------------------------------------------------------*/
diff --git a/sw/source/ui/config/caption.cxx b/sw/source/ui/config/caption.cxx
new file mode 100644
index 000000000000..e15b1cf66b48
--- /dev/null
+++ b/sw/source/ui/config/caption.cxx
@@ -0,0 +1,238 @@
+/*************************************************************************
+ *
+ * $RCSfile: caption.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _TOOLS_DEBUG_HXX //autogen
+#include <tools/debug.hxx>
+#endif
+
+#include "numrule.hxx"
+#include "caption.hxx"
+
+#define VERSION_01 1
+#define CAPTION_VERSION VERSION_01
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+InsCaptionOpt::InsCaptionOpt(const SwCapObjType eType, const SvGlobalName* pOleId) :
+ bUseCaption(FALSE),
+ eObjType(eType),
+ nNumType(SVX_NUM_ARABIC),
+ nPos(1),
+ nLevel(0),
+ cSeparator('.'),
+ bIgnoreSeqOpts(FALSE),
+ bCopyAttributes(FALSE)
+{
+ if (pOleId)
+ aOleId = *pOleId;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+InsCaptionOpt::InsCaptionOpt(const InsCaptionOpt& rOpt)
+{
+ *this = rOpt;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+InsCaptionOpt::~InsCaptionOpt()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+InsCaptionOpt& InsCaptionOpt::operator=( const InsCaptionOpt& rOpt )
+{
+ bUseCaption = rOpt.bUseCaption;
+ eObjType = rOpt.eObjType;
+ aOleId = rOpt.aOleId;
+ sCategory = rOpt.sCategory;
+ nNumType = rOpt.nNumType;
+ sCaption = rOpt.sCaption;
+ nPos = rOpt.nPos;
+ nLevel = rOpt.nLevel;
+ cSeparator = rOpt.cSeparator;
+ bIgnoreSeqOpts = rOpt.bIgnoreSeqOpts;
+ bCopyAttributes = rOpt.bCopyAttributes;
+
+ return *this;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL InsCaptionOpt::operator==( const InsCaptionOpt& rOpt ) const
+{
+ return (eObjType == rOpt.eObjType &&
+ aOleId == rOpt.aOleId); // Damit gleiche Ole-IDs nicht mehrfach eingefuegt
+ // werden koennen, auf nichts weiteres vergleichen
+
+
+/* &&
+ sCategory == rOpt.sCategory &&
+ nNumType == rOpt.nNumType &&
+ sCaption == rOpt.sCaption &&
+ nPos == rOpt.nPos &&
+ nLevel == rOpt.nLevel &&
+ cSeparator == rOpt.cSeparator);*/
+}
+
+/*************************************************************************
+|*
+|* InsCaptionOpt::operator>>()
+|*
+|* Beschreibung Stream-Leseoperator
+|*
+*************************************************************************/
+
+SvStream& operator>>( SvStream& rIStream, InsCaptionOpt& rCapOpt )
+{
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ UINT16 nVal;
+ BYTE cVal;
+ BYTE nVersion;
+
+ rIStream >> nVersion;
+ rIStream >> cVal; rCapOpt.UseCaption() = cVal != 0;
+ rIStream >> nVal; rCapOpt.eObjType = (SwCapObjType)nVal;
+ rIStream >> rCapOpt.aOleId;
+
+ rIStream.ReadByteString( rCapOpt.sCategory, eEncoding );
+ rIStream >> nVal; rCapOpt.nNumType = nVal;
+ rIStream.ReadByteString( rCapOpt.sCaption, eEncoding );
+ rIStream >> nVal; rCapOpt.nPos = nVal;
+ rIStream >> nVal; rCapOpt.nLevel = nVal;
+
+ rIStream >> cVal;
+ rCapOpt.cSeparator = UniString( ByteString(cVal) , eEncoding).GetChar(0);
+
+ return rIStream;
+}
+
+/*************************************************************************
+|*
+|* InsCaptionOpt::operator<<()
+|*
+|* Beschreibung Stream-Schreiboperator
+|*
+*************************************************************************/
+
+SvStream& operator<<( SvStream& rOStream, const InsCaptionOpt& rCapOpt )
+{
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ rOStream << (BYTE)CAPTION_VERSION
+ << (BYTE)rCapOpt.UseCaption()
+ << (UINT16)rCapOpt.eObjType
+ << rCapOpt.aOleId;
+
+ rOStream.WriteByteString( rCapOpt.sCategory, eEncoding );
+
+ rOStream << (UINT16)rCapOpt.nNumType;
+
+ rOStream.WriteByteString( rCapOpt.sCaption, eEncoding );
+
+ BYTE cSep = ByteString(UniString(rCapOpt.cSeparator), eEncoding).GetChar(0);
+ rOStream << (UINT16)rCapOpt.nPos
+ << (UINT16)rCapOpt.nLevel
+ << cSep;
+
+ return rOStream;
+}
+
+/*--------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.5 2000/09/18 16:05:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.4 2000/04/11 08:02:23 os
+ UNICODE
+
+ Revision 1.3 1999/06/09 08:49:44 OS
+ #66732# Insert caption: copy border and shadow optionally
+
+
+ Rev 1.2 09 Jun 1999 10:49:44 OS
+ #66732# Insert caption: copy border and shadow optionally
+
+ Rev 1.1 17 Nov 1998 10:50:12 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.0 06 Nov 1998 17:01:32 OM
+ Initial revision.
+
+ --------------------------------------------------------------------*/
diff --git a/sw/source/ui/config/cfgitems.cxx b/sw/source/ui/config/cfgitems.cxx
new file mode 100644
index 000000000000..e50d8860f821
--- /dev/null
+++ b/sw/source/ui/config/cfgitems.cxx
@@ -0,0 +1,855 @@
+/*************************************************************************
+ *
+ * $RCSfile: cfgitems.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:32 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef __SBX_SBXVARIABLE_HXX //autogen
+#include <svtools/sbxvar.hxx>
+#endif
+
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+
+#ifndef _SVX_SVXENUM_HXX //autogen
+#include <svx/svxenum.hxx>
+#endif
+
+
+#include "viewopt.hxx"
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "prtopt.hxx"
+#include "cfgitems.hxx"
+#include "crstate.hxx"
+
+
+
+TYPEINIT1_AUTOFACTORY(SwDocDisplayItem, SfxPoolItem)
+TYPEINIT1_AUTOFACTORY(SwElemItem, SfxPoolItem)
+TYPEINIT1_AUTOFACTORY(SwAddPrinterItem, SfxPoolItem)
+TYPEINIT1_AUTOFACTORY(SwShadowCursorItem, SfxPoolItem)
+
+
+SwDocDisplayItem::SwDocDisplayItem( USHORT nWhich ) :
+ SfxPoolItem(nWhich),
+ aIndexBackgrndCol(COL_GRAY)
+{
+ bParagraphEnd =
+ bTab =
+ bSpace =
+ bNonbreakingSpace =
+ bSoftHyphen =
+ bHiddenText =
+ bManualBreak =
+ bIndexEntry =
+ bIndexBackground =
+ bFootnoteBackground =
+ bField =
+ bTable =
+ bGraphic =
+ bDrawing =
+ bFieldName =
+ bNotes =
+ bShowHiddenPara = FALSE;
+};
+
+
+/*------------OS 12.01.95 -------------------------------------------
+ Item fuer Einstellungsdialog, Seite Dokumentansicht
+--------------------------------------------------------------------*/
+
+SwDocDisplayItem::SwDocDisplayItem( const SwDocDisplayItem& rDocDisplayItem ):
+ SfxPoolItem(rDocDisplayItem)
+{
+ *this = rDocDisplayItem;
+};
+
+/*----------------------- -------------------------------------------
+
+--------------------------------------------------------------------*/
+
+SwDocDisplayItem::SwDocDisplayItem(const SwViewOption& rVOpt, USHORT nWhich ) :
+ SfxPoolItem( nWhich )
+{
+ bParagraphEnd = rVOpt.IsParagraph(TRUE);
+ bTab = rVOpt.IsTab(TRUE);
+ bSpace = rVOpt.IsBlank(TRUE);
+ bNonbreakingSpace = rVOpt.IsHardBlank();
+ bSoftHyphen = rVOpt.IsSoftHyph();
+ bHiddenText = rVOpt.IsHidden();
+ bManualBreak = rVOpt.IsLineBreak(TRUE);
+ bIndexEntry = rVOpt.IsTox();
+ bIndexBackground = rVOpt.IsIndexBackground();
+ bFootnoteBackground = rVOpt.IsFootNote();
+ bField = rVOpt.IsField();
+ bTable = rVOpt.IsTable();
+ bGraphic = rVOpt.IsGraphic();
+ bDrawing = rVOpt.IsDraw() && rVOpt.IsControl();
+ bFieldName = rVOpt.IsFldName();
+ bNotes = rVOpt.IsPostIts();
+ bShowHiddenPara = rVOpt.IsShowHiddenPara();
+
+ aIndexBackgrndCol = rVOpt.GetIndexBackgrndColor();
+
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxPoolItem* SwDocDisplayItem::Clone( SfxItemPool* ) const
+{
+ return new SwDocDisplayItem( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+int SwDocDisplayItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unterschiedliche Typen" );
+
+ const SwDocDisplayItem& rItem = (SwDocDisplayItem&)rAttr;
+
+ return ( bParagraphEnd == rItem.bParagraphEnd &&
+ bTab == rItem.bTab &&
+ bSpace == rItem.bSpace &&
+ bNonbreakingSpace == rItem.bNonbreakingSpace &&
+ bSoftHyphen == rItem.bSoftHyphen &&
+ bHiddenText == rItem.bHiddenText &&
+ bManualBreak == rItem.bManualBreak &&
+ bIndexEntry == rItem.bIndexEntry &&
+ bIndexBackground == rItem.bIndexBackground &&
+ bFootnoteBackground == rItem.bFootnoteBackground &&
+ bField == rItem.bField &&
+ bTable == rItem.bTable &&
+ bGraphic == rItem.bGraphic &&
+ bDrawing == rItem.bDrawing &&
+ bFieldName == rItem.bFieldName &&
+ bNotes == rItem.bNotes &&
+ bShowHiddenPara == rItem.bShowHiddenPara &&
+ aIndexBackgrndCol == rItem.aIndexBackgrndCol );
+}
+
+
+/*-----------------31.08.96 14.14-------------------
+
+--------------------------------------------------*/
+
+
+void SwDocDisplayItem::operator=( const SwDocDisplayItem& rDocDisplayItem)
+{
+ bParagraphEnd = rDocDisplayItem.bParagraphEnd ;
+ bTab = rDocDisplayItem.bTab ;
+ bSpace = rDocDisplayItem.bSpace ;
+ bNonbreakingSpace = rDocDisplayItem.bNonbreakingSpace ;
+ bSoftHyphen = rDocDisplayItem.bSoftHyphen ;
+ bHiddenText = rDocDisplayItem.bHiddenText ;
+ bManualBreak = rDocDisplayItem.bManualBreak ;
+ bIndexEntry = rDocDisplayItem.bIndexEntry ;
+ bIndexBackground = rDocDisplayItem.bIndexBackground ;
+ bFootnoteBackground = rDocDisplayItem.bFootnoteBackground ;
+ bField = rDocDisplayItem.bField ;
+ bTable = rDocDisplayItem.bTable ;
+ bGraphic = rDocDisplayItem.bGraphic ;
+ bDrawing = rDocDisplayItem.bDrawing ;
+ bFieldName = rDocDisplayItem.bFieldName ;
+ bNotes = rDocDisplayItem.bNotes ;
+ bShowHiddenPara = rDocDisplayItem.bShowHiddenPara ;
+ aIndexBackgrndCol = rDocDisplayItem.aIndexBackgrndCol ;
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDocDisplayItem::FillViewOptions( SwViewOption& rVOpt) const
+{
+ rVOpt.SetParagraph (bParagraphEnd );
+ rVOpt.SetTab (bTab );
+ rVOpt.SetBlank (bSpace );
+ rVOpt.SetHardBlank (bNonbreakingSpace );
+ rVOpt.SetSoftHyph (bSoftHyphen );
+ rVOpt.SetHidden (bHiddenText );
+ rVOpt.SetLineBreak (bManualBreak );
+ rVOpt.SetTox (bIndexEntry );
+ rVOpt.SetFootNote (bFootnoteBackground);
+ rVOpt.SetIndexBackground(bIndexBackground);
+ rVOpt.SetField (bField );
+ rVOpt.SetTable (bTable );
+ rVOpt.SetGraphic (bGraphic );
+ rVOpt.SetDraw (bDrawing );
+ rVOpt.SetControl (bDrawing );
+ rVOpt.SetFldName (bFieldName );
+ rVOpt.SetPostIts (bNotes );
+ rVOpt.SetShowHiddenPara(bShowHiddenPara );
+
+ rVOpt.SetIndexBackgrndColor(aIndexBackgrndCol);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwElemItem::SwElemItem( USHORT nWhich ) :
+ SfxPoolItem(nWhich)
+{
+ bHorzScrollbar =
+ bVertScrollbar =
+ bHorzRuler =
+ bVertRuler =
+ bTableBounds =
+ bSectionBounds =
+ bCrosshair =
+ bBounds =
+ bStatusLine =
+ bHandles =
+ bBigHandles =
+ bSmoothScroll = FALSE;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwElemItem::SwElemItem( const SwElemItem& rElemItem ):
+ SfxPoolItem(rElemItem)
+{
+ *this = rElemItem;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwElemItem::SwElemItem(const SwViewOption& rVOpt, USHORT nWhich) :
+ SfxPoolItem( nWhich )
+{
+ bHorzScrollbar = rVOpt.IsViewHScrollBar();
+ bVertScrollbar = rVOpt.IsViewVScrollBar();
+ bHorzRuler = rVOpt.IsViewTabwin();
+ bVertRuler = rVOpt.IsViewVLin();
+ bTableBounds = rVOpt.IsSubsTable();
+ bSectionBounds = rVOpt.IsSectionBounds();
+ bCrosshair = rVOpt.IsCrossHair();
+ bBounds = rVOpt.IsSubsLines();
+ bHandles = rVOpt.IsSolidMarkHdl();
+ bBigHandles = rVOpt.IsBigMarkHdl();
+ bSmoothScroll = rVOpt.IsSmoothScroll();
+
+// bStatusLine
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxPoolItem* SwElemItem::Clone( SfxItemPool* ) const
+{
+ return new SwElemItem( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+int SwElemItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unterschiedliche Typen" );
+
+ const SwElemItem& rItem = (SwElemItem&)rAttr;
+
+ return ( bHorzScrollbar == rItem.bHorzScrollbar &&
+ bVertScrollbar == rItem.bVertScrollbar &&
+ bHorzRuler == rItem.bHorzRuler &&
+ bVertRuler == rItem.bVertRuler &&
+ bTableBounds == rItem.bTableBounds &&
+ bSectionBounds == rItem.bSectionBounds &&
+ bCrosshair == rItem.bCrosshair &&
+ bBounds == rItem.bBounds &&
+ bStatusLine == rItem.bStatusLine &&
+ bHandles == rItem.bHandles &&
+ bBigHandles == rItem.bBigHandles &&
+ bSmoothScroll == rItem.bSmoothScroll );
+}
+
+/*-----------------31.08.96 14.13-------------------
+
+--------------------------------------------------*/
+
+
+void SwElemItem::operator=( const SwElemItem& rElemItem)
+{
+ bHorzScrollbar = rElemItem. bHorzScrollbar ;
+ bVertScrollbar = rElemItem. bVertScrollbar ;
+ bHorzRuler = rElemItem. bHorzRuler ;
+ bVertRuler = rElemItem. bVertRuler ;
+ bTableBounds = rElemItem. bTableBounds ;
+ bSectionBounds = rElemItem. bSectionBounds ;
+ bCrosshair = rElemItem. bCrosshair ;
+ bBounds = rElemItem. bBounds ;
+ bStatusLine = rElemItem. bStatusLine ;
+ bHandles = rElemItem. bHandles ;
+ bBigHandles = rElemItem. bBigHandles ;
+ bSmoothScroll = rElemItem. bSmoothScroll ;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwElemItem::FillViewOptions( SwViewOption& rVOpt) const
+{
+ rVOpt.SetViewHScrollBar(bHorzScrollbar );
+ rVOpt.SetViewVScrollBar(bVertScrollbar );
+ rVOpt.SetViewTabwin(bHorzRuler );
+ rVOpt.SetViewVLin(bVertRuler );
+ rVOpt.SetSubsTable(bTableBounds );
+ rVOpt.SetSectionBounds(bSectionBounds);
+ rVOpt.SetCrossHair(bCrosshair );
+ rVOpt.SetSubsLines(bBounds );
+ rVOpt.SetSolidMarkHdl(bHandles );
+ rVOpt.SetBigMarkHdl(bBigHandles );
+ rVOpt.SetSmoothScroll(bSmoothScroll);
+// bStatusLine
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: CopyCTOR
+ --------------------------------------------------------------------*/
+
+SwAddPrinterItem::SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem ):
+ SfxPoolItem(rAddPrinterItem)
+{
+ bPrintGraphic = rAddPrinterItem.bPrintGraphic ;
+ bPrintTable = rAddPrinterItem.bPrintTable ;
+ bPrintDrawing = rAddPrinterItem.bPrintDrawing ;
+ bPrintControl = rAddPrinterItem.bPrintControl ;
+ bPrintLeftPage = rAddPrinterItem.bPrintLeftPage ;
+ bPrintRightPage = rAddPrinterItem.bPrintRightPage;
+ bPrintReverse = rAddPrinterItem.bPrintReverse ;
+ bPaperFromSetup = rAddPrinterItem.bPaperFromSetup;
+ bPrintProspect = rAddPrinterItem.bPrintProspect ;
+ bPrintPageBackground= rAddPrinterItem.bPrintPageBackground;
+ bPrintBlackFont = rAddPrinterItem.bPrintBlackFont;
+ bPrintSingleJobs = rAddPrinterItem.bPrintSingleJobs;
+ nPrintPostIts = rAddPrinterItem.nPrintPostIts ;
+ sFaxName = rAddPrinterItem.sFaxName ;
+
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: CTOR fuer leeres Item
+ --------------------------------------------------------------------*/
+
+SwAddPrinterItem::SwAddPrinterItem( USHORT nWhich):
+ SfxPoolItem(nWhich),
+ bPrintGraphic(FALSE),
+ bPrintTable(FALSE),
+ bPrintDrawing(FALSE),
+ bPrintControl(FALSE),
+ bPrintLeftPage(FALSE),
+ bPrintRightPage(FALSE),
+ bPrintReverse(FALSE),
+ bPaperFromSetup(FALSE),
+ bPrintProspect(FALSE),
+ bPrintPageBackground(FALSE),
+ nPrintPostIts(0),
+ sFaxName( aEmptyStr )
+{
+}
+/*--------------------------------------------------------------------
+ Beschreibung: CTOR aus SwPrintOptions
+ --------------------------------------------------------------------*/
+
+SwAddPrinterItem::SwAddPrinterItem( USHORT nWhich, SwPrintOptions* pPrtOpt ) :
+ SfxPoolItem(nWhich)
+{
+ bPrintGraphic = pPrtOpt->IsPrintGraphic();
+ bPrintTable = pPrtOpt->IsPrintTable();
+ bPrintDrawing = pPrtOpt->IsPrintDraw();
+ bPrintControl = pPrtOpt->IsPrintControl();
+ bPrintLeftPage = pPrtOpt->IsPrintLeftPage();
+ bPrintRightPage= pPrtOpt->IsPrintRightPage();
+ bPrintReverse = pPrtOpt->IsPrintReverse();
+ bPaperFromSetup= pPrtOpt->IsPaperFromSetup();
+ bPrintProspect = pPrtOpt->IsPrintProspect();
+ bPrintPageBackground= pPrtOpt->IsPrintPageBackground();
+ nPrintPostIts = pPrtOpt->GetPrintPostIts();
+ bPrintBlackFont = pPrtOpt->IsPrintBlackFont();
+ bPrintSingleJobs = pPrtOpt->IsPrintSingleJobs();
+ sFaxName = pPrtOpt->GetFaxName();
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxPoolItem* SwAddPrinterItem::Clone( SfxItemPool* ) const
+{
+ return new SwAddPrinterItem( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+int SwAddPrinterItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unterschiedliche Typen" );
+
+ const SwAddPrinterItem& rItem = (SwAddPrinterItem&)rAttr;
+
+ return ( bPrintGraphic == rItem.bPrintGraphic &&
+ bPrintDrawing == rItem.bPrintDrawing &&
+ bPrintControl == rItem.bPrintControl &&
+ bPrintTable == rItem.bPrintTable &&
+ bPrintLeftPage == rItem.bPrintLeftPage &&
+ bPrintRightPage == rItem.bPrintRightPage &&
+ bPrintReverse == rItem.bPrintReverse &&
+ bPaperFromSetup == rItem.bPaperFromSetup &&
+ bPrintProspect == rItem.bPrintProspect &&
+ bPrintPageBackground == rItem.bPrintPageBackground &&
+ bPrintBlackFont == rItem.bPrintBlackFont &&
+ bPrintSingleJobs== rItem.bPrintSingleJobs&&
+ nPrintPostIts == rItem.nPrintPostIts &&
+ sFaxName == rItem.sFaxName );
+}
+// -----------------------------------------------------------------------
+
+void SwAddPrinterItem::SetPrintOptions( SwPrintOptions* pPrtOpt ) const
+{
+ pPrtOpt->SetPrintGraphic (bPrintGraphic);
+ pPrtOpt->SetPrintTable (bPrintTable);
+ pPrtOpt->SetPrintDraw (bPrintDrawing);
+ pPrtOpt->SetPrintControl (bPrintControl);
+ pPrtOpt->SetPrintLeftPage (bPrintLeftPage);
+ pPrtOpt->SetPrintRightPage (bPrintRightPage);
+ pPrtOpt->SetPrintReverse (bPrintReverse);
+ pPrtOpt->SetPaperFromSetup (bPaperFromSetup);
+ pPrtOpt->SetPrintPostIts (nPrintPostIts);
+ pPrtOpt->SetPrintProspect (bPrintProspect);
+ pPrtOpt->SetPrintPageBackground( bPrintPageBackground );
+ pPrtOpt->SetPrintBlackFont( bPrintBlackFont );
+ pPrtOpt->SetPrintSingleJobs( bPrintSingleJobs );
+}
+
+
+/*-----------------03.11.97 10:00-------------------
+ Item fuer Einstellungsdialog, ShadowCursorSeite
+--------------------------------------------------*/
+
+SwShadowCursorItem::SwShadowCursorItem( USHORT nWhich )
+ : SfxPoolItem( nWhich ),
+ bOn( FALSE ), eMode( FILL_TAB ), aColor( COL_BLUE )
+{
+}
+
+SwShadowCursorItem::SwShadowCursorItem( const SwShadowCursorItem& rCpy )
+ : SfxPoolItem( rCpy.Which() ),
+ bOn( rCpy.IsOn() ), eMode( rCpy.GetMode() ), aColor( rCpy.GetColor() )
+{
+}
+
+SwShadowCursorItem::SwShadowCursorItem( const SwViewOption& rVOpt, USHORT nWhich )
+ : SfxPoolItem( nWhich ),
+ bOn( rVOpt.IsShadowCursor() ),
+ eMode( rVOpt.GetShdwCrsrFillMode() ),
+ aColor( rVOpt.GetShdwCrsrColor() )
+{
+}
+
+SfxPoolItem* SwShadowCursorItem::Clone( SfxItemPool* ) const
+{
+ return new SwShadowCursorItem( *this );
+}
+
+int SwShadowCursorItem::operator==( const SfxPoolItem& rCmp ) const
+{
+ return IsOn() == ((SwShadowCursorItem&)rCmp).IsOn() &&
+ GetMode() == ((SwShadowCursorItem&)rCmp).GetMode() &&
+ GetColor() == ((SwShadowCursorItem&)rCmp).GetColor();
+}
+
+void SwShadowCursorItem::operator=( const SwShadowCursorItem& rCpy )
+{
+ SetOn( rCpy.IsOn() );
+ SetMode( rCpy.GetMode() );
+ SetColor( rCpy.GetColor() );
+}
+
+
+void SwShadowCursorItem::FillViewOptions( SwViewOption& rVOpt ) const
+{
+ rVOpt.SetShadowCursor( bOn );
+ rVOpt.SetShdwCrsrFillMode( eMode );
+ rVOpt.SetShdwCrsrColor( aColor );
+}
+
+#ifndef PRODUCT
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwTestItem::SwTestItem( const SwTestItem& rTestItem ):
+ SfxPoolItem(rTestItem)
+{
+ bTest1=rTestItem.bTest1;
+ bTest2=rTestItem.bTest2;
+ bTest3=rTestItem.bTest3;
+ bTest4=rTestItem.bTest4;
+ bTest5=rTestItem.bTest5;
+ bTest6=rTestItem.bTest6;
+ bTest7=rTestItem.bTest7;
+ bTest8=rTestItem.bTest8;
+ bTest9=rTestItem.bTest9;
+ bTest10=rTestItem.bTest10;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxPoolItem* SwTestItem::Clone( SfxItemPool* ) const
+{
+ return new SwTestItem( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+int SwTestItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unterschiedliche Typen" );
+
+ const SwTestItem& rItem = (const SwTestItem&) rAttr;
+
+ return ( bTest1==rItem.bTest1&&
+ bTest2==rItem.bTest2&&
+ bTest3==rItem.bTest3&&
+ bTest4==rItem.bTest4&&
+ bTest5==rItem.bTest5&&
+ bTest6==rItem.bTest6&&
+ bTest7==rItem.bTest7&&
+ bTest8==rItem.bTest8&&
+ bTest9==rItem.bTest9&&
+ bTest10==rItem.bTest10);
+}
+
+#endif
+
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.80 2000/09/18 16:05:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.79 2000/09/07 08:26:13 os
+ FaxName now in SwPrintOptions
+
+ Revision 1.78 2000/05/26 07:21:28 os
+ old SW Basic API Slots removed
+
+ Revision 1.77 1999/12/14 14:29:10 jp
+ Bug #69595#: print can create single Jobs
+
+ Revision 1.76 1999/09/22 12:37:43 os
+ big handles
+
+ Revision 1.75 1999/09/01 08:42:36 OS
+ useless GetPresentation() removed
+
+
+ Rev 1.74 01 Sep 1999 10:42:36 OS
+ useless GetPresentation() removed
+
+ Rev 1.73 16 Aug 1999 14:09:42 OS
+ #68153# show drawings and controls: call SetControl()
+
+ Rev 1.72 09 Jun 1999 13:20:54 OS
+ index background
+
+ Rev 1.71 27 Jan 1999 10:03:12 OS
+ #58677# Cursor in Readonly-Bereichen
+
+ Rev 1.70 05 Mar 1998 14:34:08 OM
+ Redline-Attribute in Module-Cfg speichern
+
+ Rev 1.69 20 Feb 1998 17:10:50 OM
+ ConfigItem fuer Redlining-Darstellungsoptionen
+
+ Rev 1.68 24 Nov 1997 17:58:50 MA
+ include
+
+ Rev 1.67 11 Nov 1997 14:04:30 MA
+ precomp entfernt
+
+ Rev 1.66 03 Nov 1997 16:12:16 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.65 19 Aug 1997 10:36:08 OS
+ PrintPreview aus den ViewSettings raus #42797#
+
+ Rev 1.64 16 Aug 1997 09:33:06 OS
+ Col/RowPreView aus den PrintSettings entfernt #42797#
+
+ Rev 1.63 09 Jun 1997 14:28:40 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.62 06 Jun 1997 12:44:30 MA
+ chg: versteckte Absaetze ausblenden
+
+ Rev 1.61 25 Feb 1997 10:21:16 OS
+ farbige Handles
+
+ Rev 1.60 27 Jan 1997 16:29:42 OS
+ HtmlMode entfernt
+
+ Rev 1.59 11 Dec 1996 18:16:28 NF
+ Cut-Copy-Paste Fehler behoben !?
+
+ Rev 1.58 11 Dec 1996 14:12:02 OS
+ Warnings auch fuers Basic ausbauen
+
+ Rev 1.57 10 Dec 1996 17:00:06 OS
+ Warnungen von der OFA
+
+ Rev 1.56 28 Nov 1996 15:20:24 OS
+ neu: Schwarz drucken
+
+ Rev 1.55 06 Sep 1996 14:31:54 OS
+ Postits beruecksichtigen
+
+ Rev 1.54 31 Aug 1996 17:14:02 OS
+ neue Optionendialoge
+
+ Rev 1.53 25 Jul 1996 15:34:56 OS
+ neu: HtmlMode
+
+ Rev 1.52 17 Jul 1996 13:41:44 OS
+ PrintBackground auch fuer Basic
+
+ Rev 1.51 16 Jul 1996 20:19:52 MA
+ includes
+
+ Rev 1.50 16 Jul 1996 15:52:20 MA
+ new: PrintPageBackground
+
+ Rev 1.49 25 Jun 1996 17:58:08 HJS
+ include prtopt.hxx
+
+ Rev 1.48 25 Apr 1996 16:23:14 OS
+ ViewOptions-Umbau: ElemItem wird nur noch aus ViewOptions erzeugt
+
+ Rev 1.47 15 Mar 1996 15:28:18 JP
+ TestFlags erweitert
+
+ Rev 1.46 07 Mar 1996 16:54:38 JP
+ AddPrintItem um weiters Flag erweitert
+
+ Rev 1.45 01 Feb 1996 16:42:42 OS
+ Reihenfolge der Printoptionen berichtigt
+
+ Rev 1.44 04 Dec 1995 16:09:14 OS
+ Set/FillVariable impl.
+
+ Rev 1.43 28 Nov 1995 23:37:36 JP
+ uisys.hxx gibt es nicht mehr
+
+ Rev 1.42 27 Nov 1995 19:50:50 JP
+ TYPEINIT_AUTOFACTORY segmentiert
+
+ Rev 1.41 27 Nov 1995 18:55:22 OS
+ Umstellung 303a
+
+ Rev 1.40 24 Nov 1995 16:58:50 OM
+ PCH->PRECOMPILED
+
+ Rev 1.39 23 Nov 1995 19:49:30 OS
+ Typeinfo und Default CTOR
+
+ Rev 1.38 16 Nov 1995 18:23:22 OS
+ neu: Get/SetVariable, teilweise impl.
+
+ Rev 1.37 06 Nov 1995 17:15:00 OS
+ SwElemItem bearbeitet nur noch die ViewOptions, keine UsrPrefs
+
+ Rev 1.36 17 Oct 1995 19:20:20 OS
+ AddPrinterItem Ctor(SwPrintOptions) PageView-Member initalisieren
+
+ Rev 1.35 10 Oct 1995 18:55:44 OS
+ GridItem geloescht
+
+ Rev 1.34 15 Sep 1995 12:39:10 OS
+ GetName() implementiert und ColorSetItem entfernt
+
+ Rev 1.33 04 Sep 1995 17:14:32 OS
+ +include sbx.hxx
+
+ Rev 1.32 04 Sep 1995 13:40:24 HJS
+ add: #include <sbx.hxx>
+
+ Rev 1.31 30 Aug 1995 16:31:48 OS
+ Einbau Warnungen fuer Papiergroesse und -orientierung
+
+ Rev 1.30 09 Aug 1995 19:00:28 AMA
+ kein GetPresentation
+
+ Rev 1.29 07 Aug 1995 18:19:24 AMA
+ Umbau: GetValueText -> GetPresentation
+
+ Rev 1.28 27 Jul 1995 10:39:54 OS
+ bDraw auch in Viewopt setzen
+
+ Rev 1.27 05 Jul 1995 19:10:50 OS
+ +bCtrlFld fuer Kontrollfelder
+
+ Rev 1.26 03 Jul 1995 19:28:36 OS
+ CTOR TestItem korrigiert
+
+ Rev 1.25 27 Jun 1995 19:11:20 OS
+ bTest9 fuer MD
+
+ Rev 1.24 27 Jun 1995 17:50:06 ER
+ __EXPORT
+
+ Rev 1.23 27 Jun 1995 14:47:48 ER
+ segprag
+
+ Rev 1.22 25 Jun 1995 19:31:24 OS
+ cfgitems werden jetzt direkt mit swusrpref bzw. swviewoption bearbeitet
+
+ Rev 1.21 24 Jun 1995 10:37:40 SWG
+ syntax
+
+ Rev 1.20 23 Jun 1995 17:49:52 OS
+ AddPrinterItem setzt PrintOptions selbst, +bPrintDrawing
+
+ Rev 1.19 20 Jun 1995 19:20:42 OS
+ CrossHair vom Grid zum DocDisp
+
+ Rev 1.18 24 May 1995 18:09:26 ER
+ Segmentierung
+
+ Rev 1.17 12 May 1995 18:15:58 OS
+ -SVLook
+
+ Rev 1.16 10 May 1995 19:03:14 OS
+ AddPrinterItem umgestellt
+
+ Rev 1.15 10 May 1995 10:59:48 OS
+ == > =
+
+ Rev 1.14 28 Apr 1995 17:07:48 OS
+ AddPrinterItem veraendert und um Fax und Preview-Optionen erweitert
+
+ Rev 1.13 27 Feb 1995 12:56:18 OS
+ segdefs aktualisiert
+
+ Rev 1.12 24 Feb 1995 17:27:34 OS
+ Raster-Page vollstaendig
+
+ Rev 1.11 24 Feb 1995 13:00:00 OS
+ Grid Page
+
+ Rev 1.10 24 Feb 1995 00:54:08 ER
+ sexport
+
+ Rev 1.9 24 Feb 1995 00:32:12 OS
+ (ER) add: GridItems
+
+ Rev 1.8 05 Feb 1995 16:08:56 OS
+ NT und product
+
+ Rev 1.7 05 Feb 1995 11:33:12 OS
+ keine structs mehr
+
+ Rev 1.6 03 Feb 1995 21:20:30 ER
+ wegen unresolved externals bei product einige Funktionen
+ vor das ifndef product gezogen
+ an OS: checken, ob die bei product als inline in das .hxx sollen!
+
+ Rev 1.5 03 Feb 1995 09:33:22 OS
+ addprintoptions - item
+
+ Rev 1.4 01 Feb 1995 20:01:16 OS
+ SwxxxStruct statisch
+
+ Rev 1.3 24 Jan 1995 19:33:38 OS
+ pch Anpassung
+
+ Rev 1.2 23 Jan 1995 07:36:44 OS
+ struct in items erzeugt
+
+ Rev 1.1 17 Jan 1995 19:22:18 OS
+ Header eingefuegt
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/config/config.hrc b/sw/source/ui/config/config.hrc
new file mode 100644
index 000000000000..e7ee890f2bb8
--- /dev/null
+++ b/sw/source/ui/config/config.hrc
@@ -0,0 +1,98 @@
+/*************************************************************************
+ *
+ * $RCSfile: config.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CONFIG_HRC
+#define _CONFIG_HRC
+
+#include "rcid.hrc"
+
+// Dialoge fuer die Konfiguration
+
+// Strings fuer die Konfiguration
+#define STR_CFG_SIGNATUR (RC_CONFIG_BEGIN + 0)
+#define DLG_CONFIG_VIEW (RC_CONFIG_BEGIN + 1)
+#define DLG_CONFIG_MISC (RC_CONFIG_BEGIN + 2)
+#define DLG_CONFIG_SAVE (RC_CONFIG_BEGIN + 3)
+#define DLG_CONFIG_PATH (RC_CONFIG_BEGIN + 4)
+#define DLG_CONFIG_MENU (RC_CONFIG_BEGIN + 5)
+#define DLG_CONFIG_KEY (RC_CONFIG_BEGIN + 6)
+#define DLG_CONFIG_TOOLBOX (RC_CONFIG_BEGIN + 7)
+#define DLG_CONFIG_COLOR (RC_CONFIG_BEGIN + 8)
+#define DLG_TBSEL (RC_CONFIG_BEGIN + 9)
+#define DLG_CFGSEL (RC_CONFIG_BEGIN + 10)
+#define DLG_CONFIG (RC_CONFIG_BEGIN + 11)
+#define DLG_MAC_ASSIGN (RC_CONFIG_BEGIN + 12)
+
+#define MSG_DOUBLE_MENU_ID (RC_CONFIG_BEGIN + 13)
+#define MSG_DOUBLE_ID (RC_CONFIG_BEGIN + 14)
+#define DLG_SYMBOL_SELECT (RC_CONFIG_BEGIN + 15)
+#define DLG_CONFIG_GRID (RC_CONFIG_BEGIN + 16)
+#define DLG_CONFIG_ADDR (RC_CONFIG_BEGIN + 17)
+
+#define STR_ERROR_PATH (RC_CONFIG_BEGIN + 25)
+
+#define CONFIG_ACT_END STR_ERROR_PATH
+
+#if CONFIG_ACT_END > RC_CONFIG_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+
+#endif
diff --git a/sw/source/ui/config/fontcfg.cxx b/sw/source/ui/config/fontcfg.cxx
new file mode 100644
index 000000000000..bdfa09623b2a
--- /dev/null
+++ b/sw/source/ui/config/fontcfg.cxx
@@ -0,0 +1,240 @@
+/*************************************************************************
+ *
+ * $RCSfile: fontcfg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _FONTCFG_HXX
+#include <fontcfg.hxx>
+#endif
+
+#ifndef _TOOLS_DEBUG_HXX
+#include <tools/debug.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_UNO_ANY_HXX_
+#include <com/sun/star/uno/Any.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
+#include <com/sun/star/uno/Sequence.hxx>
+#endif
+
+using namespace utl;
+using namespace rtl;
+using namespace com::sun::star::uno;
+#define C2S(cChar) String::CreateFromAscii(cChar)
+#define C2U(cChar) OUString::createFromAscii(cChar)
+
+/* -----------------------------08.09.00 15:52--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence<OUString> SwStdFontConfig::GetPropertyNames()
+{
+ static const char* aPropNames[] =
+ {
+ "Standard", // 0
+ "Heading", // 1
+ "List", // 2
+ "Caption", // 3
+ "Index", // 4
+ };
+ const int nCount = 5;
+ Sequence<OUString> aNames(nCount);
+ OUString* pNames = aNames.getArray();
+ for(int i = 0; i < nCount; i++)
+ {
+ pNames[i] = OUString::createFromAscii(aPropNames[i]);
+ }
+ return aNames;
+}
+/*-----------------03.09.96 15.00-------------------
+
+--------------------------------------------------*/
+SwStdFontConfig::SwStdFontConfig() :
+ utl::ConfigItem(C2U("Office.Writer/DefaultFont"))
+{
+ String sDefFont = C2S("Times");
+ sFontStandard = sFontList = sFontCaption = sFontIndex = sDefFont;
+ sFontOutline = SwStdFontConfig::GetDefaultFor(FONT_OUTLINE);
+
+ Sequence<OUString> aNames = GetPropertyNames();
+ Sequence<Any> aValues = GetProperties(aNames);
+// EnableNotification(aNames);
+ const Any* pValues = aValues.getConstArray();
+ DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
+ if(aValues.getLength() == aNames.getLength())
+ {
+ for(int nProp = 0; nProp < aNames.getLength(); nProp++)
+ {
+ DBG_ASSERT(pValues[nProp].hasValue(), "property value missing")
+ if(pValues[nProp].hasValue())
+ {
+ OUString sVal;
+ pValues[nProp] >>= sVal;
+ switch(nProp)
+ {
+ case 0: sFontStandard= sVal; break;
+ case 1: sFontOutline = sVal; break;
+ case 2: sFontList = sVal; break;
+ case 3: sFontCaption = sVal; break;
+ case 4: sFontIndex = sVal; break;
+ }
+ }
+ }
+ }
+}
+/* -----------------------------08.09.00 15:58--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwStdFontConfig::Commit()
+{
+ Sequence<OUString> aNames = GetPropertyNames();
+ OUString* pNames = aNames.getArray();
+ Sequence<Any> aValues(aNames.getLength());
+ Any* pValues = aValues.getArray();
+ for(int nProp = 0; nProp < aNames.getLength(); nProp++)
+ {
+ switch(nProp)
+ {
+ case 0: pValues[nProp] <<= OUString(sFontStandard); break;
+ case 1: pValues[nProp] <<= OUString(sFontOutline ); break;
+ case 2: pValues[nProp] <<= OUString(sFontList ); break;
+ case 3: pValues[nProp] <<= OUString(sFontCaption ); break;
+ case 4: pValues[nProp] <<= OUString(sFontIndex ); break;
+ }
+ }
+ PutProperties(aNames, aValues);
+}
+/* -----------------------------08.09.00 15:56--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwStdFontConfig::~SwStdFontConfig()
+{}
+/*-----------------18.01.97 10.05-------------------
+
+--------------------------------------------------*/
+BOOL SwStdFontConfig::IsFontDefault(USHORT nFontType) const
+{
+ BOOL bSame;
+ const String rStd(C2S("Times"));
+ switch( nFontType )
+ {
+ case FONT_STANDARD:
+ bSame = sFontStandard == rStd;
+ break;
+ case FONT_OUTLINE :
+#if defined(UNX)
+ bSame = sFontOutline == C2S("helvetica");
+#elif defined(WNT) || defined(WIN)
+ bSame = sFontOutline == C2S("Arial");
+#elif defined(MAC)
+ bSame = sFontOutline == C2S("Helvetica");
+#elif defined(PM20)
+ bSame = sFontOutline == C2S("Helvetica");
+#else
+#error Defaultfont fuer diese Plattform?
+#endif
+ break;
+ case FONT_LIST :
+ bSame = (sFontList == rStd) && (sFontStandard == rStd);
+ break;
+ case FONT_CAPTION :
+ bSame = (sFontCaption == rStd) && (sFontStandard == rStd);
+ break;
+ case FONT_INDEX :
+ bSame = (sFontIndex == rStd) && (sFontStandard == rStd);
+ break;
+ }
+ return bSame;
+}
+
+/* -----------------11.01.99 13:16-------------------
+ * Standards auslesen
+ * --------------------------------------------------*/
+String SwStdFontConfig::GetDefaultFor(USHORT nFontType)
+{
+ String sRet(C2S("Times"));
+ switch( nFontType )
+ {
+ case FONT_STANDARD:
+ case FONT_LIST :
+ case FONT_CAPTION :
+ case FONT_INDEX :
+ break;
+ case FONT_OUTLINE :
+#if defined(UNX)
+ sRet = C2S("helvetica");
+#elif defined(WNT) || defined(WIN)
+ sRet = C2S("Arial");
+#elif defined(MAC)
+ sRet = C2S("Helvetica");
+#elif defined(PM20)
+ sRet = C2S("Helvetica");
+#else
+#error Defaultfont fuer diese Plattform?
+#endif
+ break;
+ }
+ return sRet;
+}
diff --git a/sw/source/ui/config/makefile.mk b/sw/source/ui/config/makefile.mk
new file mode 100644
index 000000000000..a808bbd0812d
--- /dev/null
+++ b/sw/source/ui/config/makefile.mk
@@ -0,0 +1,122 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=config
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ barcfg.cxx \
+ caption.cxx \
+ cfgitems.cxx \
+ fontcfg.cxx \
+ modcfg.cxx \
+ optins.cxx \
+ optload.cxx \
+ optpage.cxx \
+ prtopt.cxx \
+ uinums.cxx \
+ srcvcfg.cxx \
+ usrpref.cxx \
+ viewopt.cxx
+
+SRCFILES = \
+ optdlg.src \
+ optins.src \
+ optload.src \
+ redlopt.src \
+ cfgstr.src
+
+SLOFILES = \
+ $(SLO)$/barcfg.obj \
+ $(SLO)$/caption.obj \
+ $(SLO)$/cfgitems.obj \
+ $(SLO)$/fontcfg.obj \
+ $(SLO)$/modcfg.obj \
+ $(SLO)$/optins.obj \
+ $(SLO)$/optload.obj \
+ $(SLO)$/optpage.obj \
+ $(SLO)$/prtopt.obj \
+ $(SLO)$/uinums.obj \
+ $(SLO)$/srcvcfg.obj \
+ $(SLO)$/usrpref.obj \
+ $(SLO)$/viewopt.obj
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/config/modcfg.cxx b/sw/source/ui/config/modcfg.cxx
new file mode 100644
index 000000000000..d2c755fb015c
--- /dev/null
+++ b/sw/source/ui/config/modcfg.cxx
@@ -0,0 +1,573 @@
+/*************************************************************************
+ *
+ * $RCSfile: modcfg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _MAILENUM_HXX //autogen
+#include <goodies/mailenum.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SVX_SVXENUM_HXX //autogen
+#include <svx/svxenum.hxx>
+#endif
+#ifndef _WORDSEL_HXX
+#include <svtools/wordsel.hxx>
+#endif
+#ifndef _TOOLS_DEBUG_HXX //autogen
+#include <tools/debug.hxx>
+#endif
+#ifndef _FACTORY_HXX //autogen
+#include <so3/factory.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _ITABENUM_HXX
+#include <itabenum.hxx>
+#endif
+#ifndef _CFGID_H
+#include <cfgid.h>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _CFGSTR_HRC
+#include <cfgstr.hrc>
+#endif
+#ifndef _FLDUPDE_HXX
+#include <fldupde.hxx>
+#endif
+
+
+#define VERSION_01 1
+#define VERSION_02 2
+#define VERSION_03 3
+#define VERSION_04 4
+#define VERSION_05 5
+#define VERSION_06 6
+#define VERSION_07 7
+#define VERSION_08 8
+#define VERSION_09 9
+#define VERSION_10 10
+#define VERSION_11 11
+#define VERSION_12 12
+#define VERSION_13 13
+#define VERSION_14 14 //nFldUpdateFlags
+#define VERSION_15 15 //Insert-Flags auch fuer HTML
+#define VERSION_16 16 //Insert-Flags auch fuer HTML
+#define VERSION_17 17 //Preview flags AutoText + Index
+#define VERSION_18 18 //bDefaultFontsInCurrDocOnly
+#define MODCFG_VERSION VERSION_18
+
+SV_IMPL_PTRARR_SORT(InsCapOptArr, InsCaptionOptPtr)
+
+/* -----------------03.11.98 13:46-------------------
+ *
+ * --------------------------------------------------*/
+
+InsCaptionOpt* InsCaptionOptArr::Find(const SwCapObjType eType, const SvGlobalName *pOleId) const
+{
+ for (USHORT i = 0; i < Count(); i++ )
+ {
+ InsCaptionOpt* pObj = GetObject(i);
+ if (pObj->GetObjType() == eType &&
+ (eType != OLE_CAP ||
+ (pOleId &&
+ (pObj->GetOleId() == *pOleId ||
+ SvFactory::GetAutoConvertTo(pObj->GetOleId()) == *pOleId))))
+ return pObj;
+ }
+
+ return 0;
+}
+
+/* -----------------03.11.98 15:05-------------------
+ *
+ * --------------------------------------------------*/
+
+const InsCaptionOpt* SwModuleOptions::GetCapOption(BOOL bHTML, const SwCapObjType eType, const SvGlobalName *pOleId)
+{
+ return bHTML ? aHTMLCapOptions.Find(eType, pOleId) : aCapOptions.Find(eType, pOleId);
+}
+
+/* -----------------03.11.98 15:05-------------------
+ *
+ * --------------------------------------------------*/
+
+BOOL SwModuleOptions::SetCapOption(BOOL bHTML, const InsCaptionOpt* pOpt)
+{
+ BOOL bRet = FALSE;
+
+ if (pOpt)
+ {
+ InsCaptionOptArr& rArr = bHTML ? aHTMLCapOptions : aCapOptions;
+ InsCaptionOpt *pObj = rArr.Find(pOpt->GetObjType(), &pOpt->GetOleId());
+
+ if (pObj)
+ {
+ *pObj = *pOpt;
+ SetDefault(FALSE);
+ }
+ else
+ rArr.Insert(new InsCaptionOpt(*pOpt));
+
+ SetDefault(FALSE);
+ bRet = TRUE;
+ }
+
+ return bRet;
+}
+
+/*-----------------13.01.97 12.44-------------------
+
+--------------------------------------------------*/
+
+int SwModuleOptions::Load(SvStream& rStream)
+{
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ int nRet;
+ SetDefault(FALSE);
+ UINT16 nVersion;
+ rStream >> nVersion;
+ if(nVersion >= VERSION_01)
+ {
+ UINT32 nColor;
+ UINT16 nVal;
+ rStream >> nVal;
+ nDefTab = nVal;
+
+ rStream >> nVal;
+ nTblHMove = nVal;
+
+ rStream >> nVal;
+ nTblVMove = nVal;
+
+ rStream >> nVal;
+ nTblHInsert = nVal;
+
+ rStream >> nVal;
+ nTblVInsert = nVal;
+
+ BYTE bVal;
+ rStream >> bVal;
+ eUserMetric = (FieldUnit)bVal;
+ if (nVersion >= VERSION_08)
+ {
+ rStream >> bVal;
+ eWebUserMetric = (FieldUnit)bVal;
+ }
+
+
+ rStream >> bVal;
+ eTblChgMode = (TblChgMode)bVal;
+
+ if ( nVersion >= VERSION_02 )
+ {
+ rStream >> bVal;
+ bGrfToGalleryAsLnk = BOOL(bVal);
+ }
+ if ( nVersion >= VERSION_03 )
+ {
+ rStream >> bVal;
+ nMailingFormats = bVal;
+
+ rStream >> bVal;
+ bSinglePrintJob = BOOL(bVal);
+
+ rStream >> bVal;
+ bNumAlignSize = BOOL(bVal);
+ }
+
+ if ( nVersion >= VERSION_04 )
+ {
+ rStream >> bVal;
+ bNameFromColumn = bVal;
+
+ rStream.ReadByteString(sMailingPath, eEncoding);
+ rStream.ReadByteString(sMailName, eEncoding);
+ }
+ if ( nVersion >= VERSION_05 )
+ {
+
+ rStream >> nVal; aInsertAttr.nItemId = nVal;
+ rStream >> nVal; aInsertAttr.nAttr = nVal;
+ rStream >> nColor; aInsertAttr.nColor = nColor;
+
+ rStream >> nVal; aDeletedAttr.nItemId = nVal;
+ rStream >> nVal; aDeletedAttr.nAttr = nVal;
+ rStream >> nColor; aDeletedAttr.nColor = nColor;
+
+ rStream >> nVal; nMarkAlign = nVal;
+ rStream >> nColor; aMarkColor.SetColor(nColor);
+ }
+
+ if( nVersion >= VERSION_06 )
+ {
+ rStream >> nVal; aFormatAttr.nItemId = nVal;
+ rStream >> nVal; aFormatAttr.nAttr = nVal;
+ rStream >> nColor; aFormatAttr.nColor = nColor;
+ }
+
+ if( nVersion >= VERSION_07 )
+ rStream.ReadByteString(sWordDelimiter, eEncoding);
+
+ if (nVersion >= VERSION_09)
+ {
+ rStream >> bVal; bInsWithCaption = bVal;
+ if (nVersion == VERSION_09)
+ rStream >> bVal; // Flag gibts nicht mehr
+
+ if (nVersion < VERSION_13)
+ { // Flags gibts nicht mehr
+ rStream >> bVal;
+ rStream >> bVal;
+ }
+
+ rStream >> nVal;
+ InsCaptionOpt aOpt;
+
+ for (USHORT i = 0; i < nVal; i++)
+ {
+ rStream >> aOpt;
+ aCapOptions.Insert(new InsCaptionOpt(aOpt));
+ }
+ }
+
+ if (nVersion >= VERSION_10)
+ {
+ if (nVersion < VERSION_13)
+ rStream >> bVal; // Flag gibts nicht mehr
+
+ if (nVersion >= VERSION_11)
+ {
+ rStream >> bVal; bInsTblFormatNum = bVal;
+ rStream >> bVal; bInsTblAlignNum = bVal;
+ rStream >> nVal; nLinkMode = nVal;
+
+ if (nVersion == VERSION_12)
+ rStream >> bVal; // Flag gibts nicht mehr
+
+ if (nVersion >= VERSION_13)
+ {
+ rStream >> nVal; nInsTblFlags = nVal;
+ }
+ if(nVersion >= VERSION_14)
+ {
+ rStream>> nVal; nFldUpdateFlags = nVal;
+ }
+ else
+ nFldUpdateFlags = AUTOUPD_OFF;
+ if(nVersion >= VERSION_15)
+ {
+ rStream >> bVal; bHTMLInsWithCaption = bVal;
+ rStream >> bVal; bHTMLInsTblFormatNum = bVal;
+ rStream >> bVal; bHTMLInsTblAlignNum = bVal;
+ rStream >> nVal; nHTMLInsTblFlags = nVal;
+ rStream >> nVal;
+ InsCaptionOpt aOpt;
+
+ for (USHORT i = 0; i < nVal; i++)
+ {
+ rStream >> aOpt;
+ aHTMLCapOptions.Insert(new InsCaptionOpt(aOpt));
+ }
+ }
+ else
+ {
+ bHTMLInsWithCaption = bHTMLInsTblAlignNum = FALSE;
+ bHTMLInsTblFormatNum = TRUE;
+ nHTMLInsTblFlags = ALL_TBL_INS_ATTR;
+ }
+
+ if( nVersion >= VERSION_16)
+ {
+ rStream >> bVal; bInsTblChangeNumFormat = bVal;
+ rStream >> bVal; bHTMLInsTblChangeNumFormat = bVal;
+ if(nVersion >= VERSION_17)
+ {
+ rStream >> bVal; bShowAutoTextPreview = bVal;
+ rStream >> bVal; bShowIndexPreview = bVal;
+ if(nVersion >= VERSION_18)
+ {
+ rStream >> bVal; bDefaultFontsInCurrDocOnly = bVal;
+ }
+ }
+ }
+ }
+ }
+
+ nRet = SfxConfigItem::ERR_OK;
+ }
+ else
+ nRet = SfxConfigItem::WARNING_VERSION;
+
+ return nRet;
+}
+
+/*-----------------13.01.97 12.44-------------------
+
+--------------------------------------------------*/
+
+BOOL SwModuleOptions::Store(SvStream& rStream)
+{
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ rStream << (UINT16) MODCFG_VERSION;
+ rStream << (UINT16) nDefTab;
+ rStream << (UINT16) nTblHMove;
+ rStream << (UINT16) nTblVMove;
+ rStream << (UINT16) nTblHInsert;
+ rStream << (UINT16) nTblVInsert;
+ rStream << (BYTE) eUserMetric;
+ rStream << (BYTE) eWebUserMetric;
+ rStream << (BYTE) eTblChgMode;
+ rStream << (BYTE) bGrfToGalleryAsLnk;
+ rStream << (BYTE) nMailingFormats;
+ rStream << (BYTE) bSinglePrintJob;
+ rStream << (BYTE) bNumAlignSize;
+ rStream << (BYTE) bNameFromColumn;
+ rStream.WriteByteString(sMailingPath, eEncoding);
+ rStream.WriteByteString(sMailName, eEncoding);
+ rStream << (UINT16) aInsertAttr.nItemId;
+ rStream << (UINT16) aInsertAttr.nAttr;
+ rStream << (UINT32) aInsertAttr.nColor;
+ rStream << (UINT16) aDeletedAttr.nItemId;
+ rStream << (UINT16) aDeletedAttr.nAttr;
+ rStream << (UINT32) aDeletedAttr.nColor;
+ rStream << (UINT16) nMarkAlign;
+ rStream << (UINT32) aMarkColor.GetColor();
+ rStream << (UINT16) aFormatAttr.nItemId;
+ rStream << (UINT16) aFormatAttr.nAttr;
+ rStream << (UINT32) aFormatAttr.nColor;
+ rStream.WriteByteString(sWordDelimiter, eEncoding);
+ rStream << (BYTE) bInsWithCaption;
+ rStream << (UINT16) aCapOptions.Count();
+ for (USHORT i = 0; i < aCapOptions.Count(); i++)
+ rStream << *aCapOptions[i];
+ rStream << (BYTE) bInsTblFormatNum;
+ rStream << (BYTE) bInsTblAlignNum;
+ rStream << (UINT16) nLinkMode;
+ rStream << (UINT16) nInsTblFlags;
+ rStream << (UINT16) nFldUpdateFlags;
+
+ rStream << (BYTE) bHTMLInsWithCaption;
+ rStream << (BYTE) bHTMLInsTblFormatNum;
+ rStream << (BYTE) bHTMLInsTblAlignNum;
+ rStream << (UINT16) nHTMLInsTblFlags;
+ rStream << (UINT16) aHTMLCapOptions.Count();
+ for( i = 0; i < aHTMLCapOptions.Count(); i++)
+ rStream << *aHTMLCapOptions[i];
+ rStream << (BYTE) bHTMLInsTblChangeNumFormat;
+ rStream << (BYTE) bInsTblChangeNumFormat;
+
+ rStream << (BYTE) bShowAutoTextPreview;
+ rStream << (BYTE) bShowIndexPreview;
+
+ rStream << (BYTE) bDefaultFontsInCurrDocOnly;
+ return SfxConfigItem::ERR_OK;
+}
+/*-----------------13.01.97 12.44-------------------
+
+--------------------------------------------------*/
+
+void SwModuleOptions::UseDefault()
+{
+ MeasurementSystem eSys = Application::GetAppInternational().GetMeasurementSystem();
+ if(MEASURE_METRIC != eSys)
+ {
+ eUserMetric = eWebUserMetric = FUNIT_INCH;
+ nDefTab = 720; // 1/2"
+ nTblHMove = nTblVMove = 360; // 1/4"
+ nTblHInsert = 360; // 1/4"
+ nTblVInsert = 1440; // 1"
+ }
+ else
+ {
+ eUserMetric = eWebUserMetric = FUNIT_CM;
+ nDefTab = 709; // 1,25 cm
+ nTblHMove = nTblVMove = MM50; // 0,5 cm
+ nTblHInsert = MM50; // 0,5 cm
+ nTblVInsert = 1415; // 2,5 cm
+ }
+
+ eTblChgMode = TBLVAR_CHGABS;
+
+ aInsertAttr.nItemId = SID_ATTR_CHAR_UNDERLINE;
+ aInsertAttr.nAttr = UNDERLINE_SINGLE;
+ aInsertAttr.nColor = COL_TRANSPARENT;
+ aDeletedAttr.nItemId = SID_ATTR_CHAR_STRIKEOUT;
+ aDeletedAttr.nAttr = STRIKEOUT_SINGLE;
+ aDeletedAttr.nColor = COL_TRANSPARENT;
+ aFormatAttr.nItemId = SID_ATTR_CHAR_WEIGHT;
+ aFormatAttr.nAttr = WEIGHT_BOLD;
+ aFormatAttr.nColor = COL_BLACK;
+ nMarkAlign = HORI_OUTSIDE;
+ aMarkColor.SetColor(COL_BLACK);
+
+ bGrfToGalleryAsLnk = TRUE;
+
+ nMailingFormats = TXTFORMAT_OFFICE;
+ bNumAlignSize = TRUE;
+ bSinglePrintJob = FALSE;
+ bNameFromColumn = FALSE;
+
+ sWordDelimiter = String::CreateFromAscii("() \t\xa\x1");
+
+ bHTMLInsWithCaption = bInsWithCaption = FALSE;
+
+ nHTMLInsTblFlags = nInsTblFlags = ALL_TBL_INS_ATTR;
+ bHTMLInsTblFormatNum = bInsTblFormatNum = TRUE;
+ bHTMLInsTblChangeNumFormat = bInsTblChangeNumFormat = TRUE;
+ bHTMLInsTblAlignNum = bInsTblAlignNum = TRUE;
+
+ nLinkMode = MANUAL;
+ nFldUpdateFlags = AUTOUPD_FIELD_ONLY;
+
+ bShowAutoTextPreview = TRUE;
+ bShowIndexPreview = TRUE;
+
+ bDefaultFontsInCurrDocOnly = FALSE;
+
+ aCapOptions.DeleteAndDestroy( 0, aCapOptions.Count() );
+ aHTMLCapOptions.DeleteAndDestroy( 0, aCapOptions.Count() );
+
+ SfxConfigItem::UseDefault();
+}
+
+/*-----------------13.01.97 12.44-------------------
+
+--------------------------------------------------*/
+
+SwModuleOptions::SwModuleOptions() :
+ SfxConfigItem( CFG_SW_MODULE )
+{
+ UseDefault();
+}
+
+/*-----------------13.01.97 13.11-------------------
+
+--------------------------------------------------*/
+
+String SwModuleOptions::GetName() const
+{
+ return String(SW_RES(STR_CFG_MODULE));
+}
+
+/*--------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.34 2000/09/18 16:05:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.33 2000/07/20 13:16:58 jp
+ change old txtatr-character to the two new characters
+
+ Revision 1.32 2000/06/13 13:22:43 os
+ #75770# Doc only flag in standard font TabPage now persistent
+
+ Revision 1.31 2000/05/18 14:57:43 os
+ append CH_TXTATR instead of 0xff in CreateFromAscii
+
+ Revision 1.30 2000/04/11 08:02:23 os
+ UNICODE
+
+ Revision 1.29 2000/02/11 14:43:50 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.28 1999/12/29 07:54:07 os
+ #71320# flags for AutoText and index preview
+
+ Revision 1.27 1999/04/20 16:58:38 JP
+ Task #65061#: neu: ZahlenFormaterkennung abschaltbar
+
+
+ Rev 1.26 20 Apr 1999 18:58:38 JP
+ Task #65061#: neu: ZahlenFormaterkennung abschaltbar
+
+ Rev 1.25 15 Mar 1999 09:46:20 MA
+ #63047# neue Defaults
+
+ Rev 1.24 11 Mar 1999 23:56:40 JP
+ Task #63171#: Optionen fuer Feld-/LinkUpdate Doc oder Modul lokal
+
+ Rev 1.23 17 Feb 1999 08:37:56 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/config/optdlg.hrc b/sw/source/ui/config/optdlg.hrc
new file mode 100644
index 000000000000..2085ae238eb4
--- /dev/null
+++ b/sw/source/ui/config/optdlg.hrc
@@ -0,0 +1,263 @@
+/*************************************************************************
+ *
+ * $RCSfile: optdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+/* TabPage Ansicht*/
+#define GB_DISP 1
+#define GB_NOPRINT 2
+#define GB_WINDOW 3
+#define GB_BACK 4
+#define GB_METRIC 5
+#define ST_METRIC 6
+#define GB_TAB 7
+#define MF_TAB 8
+
+#define CB_GRF 1
+#define CB_TBL 2
+#define CB_DRWFAST 3
+#define CB_FIELD 4
+#define CB_PARA 5
+#define CB_TAB 6
+#define CB_SPACE 7
+#define CB_HSPACE 8
+#define CB_SHYPH 9
+#define CB_HIDDEN 10
+#define CB_BREAK 11
+#define CB_TXTBEG 12
+#define CB_TABBEG 13
+#define CB_CROSS 14
+#define CB_HSCROLL 15
+#define CB_VSCROLL 16
+#define CB_HRULER 17
+#define CB_VRULER 18
+#define CB_IDX_ENTRY 19
+#define CB_FOOTBACK 20
+#define CB_FLDBACK 21
+#define GB_LINE 22
+#define CB_POSTIT 23
+#define LB_METRIC 24
+#define CB_BIGHANDLE 25
+
+#define CB_TEST1 25
+#define CB_TEST2 26
+#define CB_TEST3 27
+#define CB_TEST4 28
+#define CB_TEST5 29
+#define CB_TEST6 30
+#define CB_TEST7 31
+#define CB_TEST8 32
+#define CB_TEST9 33
+#define CB_TEST10 34
+#define GB_TEST 35
+
+#define CB_HIDDEN_PARA 36 //Mittendrin, damit die HelpIds zum FPII kompatibel bleiben
+#define CB_SMOOTH_SCROLL 37
+
+#define BT_OK 38
+#define BT_CANCEL 39
+#define BT_MORE 40
+#define BT_GRID 41
+#define MF_HFRAME 42
+#define MF_VFRAME 43
+
+#define CB_INDEX 44
+
+#define LB_COLOR 50
+#define GB_1 51
+#define WIN_COLOR 52
+#define ED_COLORNAME 53
+#define GB_2 54
+#define BT_EDIT 55
+#define BT_NEW 56
+#define BT_DELETE 57
+#define BT_DEFAULT 58
+#define CB_HANDLE 59
+#define CB_SECT_BOUNDS 60
+// Print-Extra-Page
+#define CB_PGRF 61
+#define CB_PTAB 62
+#define CB_PDRAW 63
+#define CB_LEFTP 64
+#define CB_RIGHTP 65
+#define CB_REVERSE 66
+#define CB_PROSPECT 67
+#define CB_SINGLEJOBS 68
+#define CB_CTRLFLD 69
+#define CB_PAPERFROMSETUP 70
+#define GRP_1 71
+#define GRP_2 72
+#define GRP_3 73
+#define GRP_4 74
+#define GRP_5 75
+#define GB_FAX 76
+#define CB_BACKGROUND 79
+
+#define RB_NO 80
+#define RB_ONLY 81
+#define RB_END 82
+#define RB_PAGEEND 83
+#define LB_FAX 86
+#define CB_BLACK_FONT 87
+
+//Grid-Page
+#define GB_GRID 90
+#define MTR_FLD_GRID 2
+#define BTN_MORE 3
+#define GRP_DRAWGRID 4
+#define GRP_OPTIONS 5
+#define GRP_SNAPGRID 6
+#define GRP_ORIGIN 7
+#define CBX_GRID_SNAP 8
+#define CBX_SYNCHRONIZE 9
+#define CBX_EQUAL_GRID 10
+#define CBX_SNAPGRID 11
+#define CBX_ORIGIN 12
+#define CBX_GRID_VISIBLE 13
+#define MTR_FLD_DRAW_Y 18
+#define MTR_FLD_DRAW_X 21
+#define MTR_FLD_DIVISION_X 22
+#define MTR_FLD_DIVISION_Y 23
+#define FT_DRAW_X 26
+#define FT_DRAW_Y 27
+#define FT_RESOLUTION 28
+#define FT_DIVISION 29
+#define CBX_CROSSHAIR 30
+#define CB_RULER 31
+
+
+// DefaultFarben
+#define SW_COLOR_START 1
+#define CL_BLACK (SW_COLOR_START + 0)
+#define CL_BLUE (SW_COLOR_START + 1)
+#define CL_GREEN (SW_COLOR_START + 2)
+#define CL_CYAN (SW_COLOR_START + 3)
+#define CL_RED (SW_COLOR_START + 4)
+#define CL_MAGENTA (SW_COLOR_START + 5)
+#define CL_BROWN (SW_COLOR_START + 6)
+#define CL_GRAY (SW_COLOR_START + 7)
+#define CL_LIGHTGRAY (SW_COLOR_START + 8)
+#define CL_LIGHTBLUE (SW_COLOR_START + 9)
+#define CL_LIGHTGREEN (SW_COLOR_START + 10)
+#define CL_LIGHTCYAN (SW_COLOR_START + 11)
+#define CL_LIGHTRED (SW_COLOR_START + 12)
+#define CL_LIGHTMAGENTA (SW_COLOR_START + 13)
+#define CL_YELLOW (SW_COLOR_START + 14)
+#define CL_WHITE (SW_COLOR_START + 15)
+#define SW_COLOR_END CL_WHITE
+
+// Tabpage Grundschriften
+#define FT_STANDARD 90
+#define LB_STANDARD 91
+#define FT_TITLE 92
+#define LB_TITLE 93
+#define FT_LIST 94
+#define LB_LIST 95
+#define FT_LABEL 96
+#define LB_LABEL 97
+#define FT_IDX 98
+#define LB_IDX 99
+#define GB_STDCHR 100
+#define PB_STANDARD 101
+#define CB_DOCONLY 102
+
+//Tabpage Tabelle
+#define GB_MOVE 110
+#define FT_ROWMOVE 111
+#define MF_ROWMOVE 112
+#define FT_COLMOVE 113
+#define MF_COLMOVE 114
+#define GB_INSERT 115
+#define FT_ROWINSERT 116
+#define MF_ROWINSERT 117
+#define FT_COLINSERT 118
+#define MF_COLINSERT 119
+#define GB_HANDLING 120
+#define RB_FIX 121
+#define RB_FIXPROP 122
+#define RB_VAR 123
+#define FT_FIX 124
+#define FT_FIXPROP 125
+#define FT_VAR 126
+#define FT_DESC 127
+
+#define GB_COLOR 130
+#define FT_SGML 131
+#define LB_SGML 132
+#define FT_COMMENT 133
+#define LB_COMMENT 134
+#define FT_KEYWD 135
+#define LB_KEYWD 136
+#define FT_UNKNOWN 137
+#define LB_UNKNOWN 138
+
+#define GB_SHDWCRSFLAG 1
+#define CB_SHDWCRSONOFF 2
+#define GB_SHDWCRSMODE 3
+#define FT_SHDWCRSFILLMODE 4
+#define RB_SHDWCRSFILLMARGIN 5
+#define RB_SHDWCRSFILLINDENT 6
+#define RB_SHDWCRSFILLTAB 7
+#define RB_SHDWCRSFILLSPACE 8
+#define GB_SHDWCRSCOLOR 9
+#define FT_SHDWCRSCOLOR 10
+#define LB_SHDWCRSCOLOR 11
+#define CB_ALLOW_IN_PROT 12
+#define GB_CRSR_OPT 13
+
diff --git a/sw/source/ui/config/optdlg.src b/sw/source/ui/config/optdlg.src
new file mode 100644
index 000000000000..7b79894fca57
--- /dev/null
+++ b/sw/source/ui/config/optdlg.src
@@ -0,0 +1,3186 @@
+/*************************************************************************
+ *
+ * $RCSfile: optdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+#ifndef _SFX_HRC
+#include <sfx2/sfx.hrc>
+#endif
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#include "globals.hrc"
+#include "config.hrc"
+#include "optdlg.hrc"
+#include "helpid.h"
+
+/**************************************************************************/
+/* */
+/* TabPage Ansicht/Inhalt */
+/* */
+/**************************************************************************/
+TabPage TP_CONTENT_OPT
+{
+ HelpID = HID_CONTENT_OPT ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_DISP
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 120 , 69 ) ;
+ Text = "Anzeigen" ;
+ Text [ ENGLISH ] = "Display" ;
+ Text [ norwegian ] = "Display" ;
+ Text [ italian ] = "Mostra" ;
+ Text [ portuguese_brazilian ] = "Display" ;
+ Text [ portuguese ] = "Ver" ;
+ Text [ finnish ] = "Display" ;
+ Text [ danish ] = "Vis" ;
+ Text [ french ] = "Afficher" ;
+ Text [ swedish ] = "Visa" ;
+ Text [ dutch ] = "Weergeven" ;
+ Text [ spanish ] = "Mostrar" ;
+ Text [ english_us ] = "Display" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ÏÔʾ";
+ Text[ russian ] = "Ïîêàçàòü";
+ Text[ polish ] = "Poka¿";
+ Text[ japanese ] = "•\\Ž¦";
+ Text[ chinese_traditional ] = "Åã¥Ü";
+ Text[ arabic ] = "ÅÙåÇÑ";
+ Text[ greek ] = "ÅìöÜíéóç";
+ Text[ korean ] = "Ç¥½Ã";
+ Text[ turkish ] = "Görüntüle";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_GRF
+ {
+ Pos = MAP_APPFONT ( 12 , 11 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Grafiken und Objekte" ;
+ Text [ ENGLISH ] = "Gra~phics and Objects" ;
+ Text [ norwegian ] = "Gra~phics and Objects" ;
+ Text [ italian ] = "~Immagini e oggetti" ;
+ Text [ portuguese_brazilian ] = "Gra~phics and Objects" ;
+ Text [ portuguese ] = "~Imagens e objectos" ;
+ Text [ french ] = "~Images et objets" ;
+ Text [ dutch ] = "~Afbeeldingen en objecten" ;
+ Text [ spanish ] = "~Imágenes y objetos" ;
+ Text [ danish ] = "Billeder og objekter" ;
+ Text [ swedish ] = "~Grafiker och objekt" ;
+ Text [ finnish ] = "Gra~phics and Objects" ;
+ Text [ english_us ] = "~Graphics and objects" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ͼÐκͶÔÏó(~O)";
+ Text[ russian ] = "Ðèñóíêè è îáúåêòû";
+ Text[ polish ] = "Gr~afiki i obiekty";
+ Text[ japanese ] = "}‚ƵÌÞ¼Þª¸Ä(~O)";
+ Text[ chinese_traditional ] = "¹Ï¤ù©Mª«¥ó(~O)";
+ Text[ arabic ] = "ÕæÑ æßÇÆäÇÊ";
+ Text[ greek ] = "ÃñáöéêÜ êáé áíôéêåßìåíá";
+ Text[ korean ] = "±×·¡ÇÈ°ú °³Ã¼(~G)";
+ Text[ turkish ] = "Grafik ve nesneler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_TBL
+ {
+ Pos = MAP_APPFONT ( 12 , 23 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Tabellen " ;
+ Text [ ENGLISH ] = "~Tables" ;
+ Text [ norwegian ] = "~Tables" ;
+ Text [ italian ] = "~Tabelle " ;
+ Text [ portuguese_brazilian ] = "~Tabelas " ;
+ Text [ portuguese ] = "~Tabelas " ;
+ Text [ finnish ] = "~Taulukot" ;
+ Text [ danish ] = "Tabeller " ;
+ Text [ french ] = "~Tableaux " ;
+ Text [ swedish ] = "Tabe~ller " ;
+ Text [ dutch ] = "~Tabellen " ;
+ Text [ spanish ] = "~Tablas " ;
+ Text [ english_us ] = "~Tables " ;
+ Text[ chinese_simplified ] = "±í¸ñ(~A)";
+ Text[ russian ] = "Òàáëèöû ";
+ Text[ polish ] = "Ta~bele ";
+ Text[ japanese ] = "•\\(~A)";
+ Text[ chinese_traditional ] = "ªí®æ(~A)";
+ Text[ arabic ] = "ÌÏÇæá ";
+ Text[ greek ] = "Ðßíáêåò ";
+ Text[ korean ] = "Ç¥ (~T)";
+ Text[ turkish ] = "Tablolar ";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_DRWFAST
+ {
+ Pos = MAP_APPFONT ( 12 , 35 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Zeichnungen und ~Kontrollfelder" ;
+ Text [ ENGLISH ] = "Dra~wings and controls" ;
+ Text [ norwegian ] = "Dra~wings" ;
+ Text [ italian ] = "~Disegni e controlli" ;
+ Text [ portuguese_brazilian ] = "Dra~wings" ;
+ Text [ portuguese ] = "~Desenhos e controlos" ;
+ Text [ french ] = "~Dessins et champs de contrôle" ;
+ Text [ dutch ] = "Tekeningen en ~controlevelden" ;
+ Text [ spanish ] = "~Dibujos y campos de control" ;
+ Text [ danish ] = "Tegninger og kontrolelementer" ;
+ Text [ swedish ] = "Teckningar och ~kontrollfält" ;
+ Text [ finnish ] = "Dra~wings" ;
+ Text [ english_us ] = "Dra~wings and controls" ;
+ Text[ chinese_simplified ] = "»æͼºÍ¿Ø¼þ×Ö¶Î(~D)";
+ Text[ russian ] = "Ðèñóíêè è ýëåìåíòû óïðàâëåíèÿ";
+ Text[ polish ] = "Rysunki i pola kontrolne";
+ Text[ japanese ] = "}Œ`•`‰æ‚ƺÝÄÛ°Ù(~D)";
+ Text[ chinese_traditional ] = "ø¹Ï©M±±¨î¶µ(~D)";
+ Text[ arabic ] = "ÑÓæãÇÊ æÚäÇÕÑ ÊÍßã";
+ Text[ greek ] = "Ó÷Ýäéá ~êáé Ðåäßá åëÝã÷ïõ";
+ Text[ korean ] = "±×¸®±â¿Í ÄÁÆ®·Ñ(~W)";
+ Text[ turkish ] = "Çizim ve ~komut alanlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FIELD
+ {
+ Pos = MAP_APPFONT ( 12 , 47 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? F~eldname : F~eldname anzeigen */
+ Text = "F~eldnamen" ;
+ Text [ ENGLISH ] = "~Field names" ;
+ Text [ english_us ] = "~Field codes" ;
+ Text [ swedish ] = "Fält~namn" ;
+ Text [ danish ] = "Feltnavne" ;
+ Text [ italian ] = "Nome di campo" ;
+ Text [ spanish ] = "~Nombres del campo" ;
+ Text [ french ] = "~Noms de champ" ;
+ Text [ dutch ] = "~Veldnaam" ;
+ Text [ portuguese_brazilian ] = "F~eldnamen" ;
+ Text [ portuguese ] = "Nomes de ~campo" ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÃû³Æ(~C)";
+ Text[ russian ] = "Èìåíà ïîëÿ";
+ Text[ polish ] = "Nazwy pól";
+ Text[ japanese ] = "̨°ÙÄÞ–¼(~C)";
+ Text[ chinese_traditional ] = "Äæ¦ì¦WºÙ(~C)";
+ Text[ arabic ] = "ÃÓãÇÁ ÇáÍÞá";
+ Text[ greek ] = "Ïíüìáôá ðåäßùí";
+ Text[ korean ] = "Çʵå ÄÚµå(~F)";
+ Text[ turkish ] = "Alan adlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_POSTIT
+ {
+ Pos = MAP_APPFONT ( 12 , 59 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "N~otizen" ;
+ Text [ ENGLISH ] = "N~otes" ;
+ Text [ english_us ] = "~Notes" ;
+ Text [ swedish ] = "Anteckninga~r" ;
+ Text [ danish ] = "Noter" ;
+ Text [ italian ] = "N~ote" ;
+ Text [ spanish ] = "~Notas" ;
+ Text [ french ] = "~Notes" ;
+ Text [ dutch ] = "Aa~ntekeningen" ;
+ Text [ portuguese_brazilian ] = "N~otizen" ;
+ Text [ portuguese ] = "Anotações" ;
+ Text[ chinese_simplified ] = "±¸×¢(~N)";
+ Text[ russian ] = "Ïðèìå÷àíèÿ";
+ Text[ polish ] = "No~tatki";
+ Text[ japanese ] = "ÒÓ’ (~N)";
+ Text[ chinese_traditional ] = "³Æª`(~N)";
+ Text[ arabic ] = "ãáÇÍÙÇÊ";
+ Text[ greek ] = "Óçìåéþóåéò";
+ Text[ korean ] = "¸Þ¸ð(~N)";
+ Text[ turkish ] = "Notlar";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_BACK
+ {
+ Pos = MAP_APPFONT ( 6 , 74 ) ;
+ Size = MAP_APPFONT ( 120 , 57 ) ;
+ Text = "Hinterlegung" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Destaque" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Underlægning" ;
+ Text [ french ] = "Trame de fond" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Destacar" ;
+ Text [ english_us ] = "Highlighting" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "»ÒÉ«±³¾°±ê¼Ç";
+ Text[ russian ] = "Çàòåíåíèå";
+ Text[ polish ] = "Cieniowanie";
+ Text[ japanese ] = "ŠDF‚ÌÊÞ¯¸‚Å‹­’²";
+ Text[ chinese_traditional ] = "¦Ç¦â­I´º¼Ð°O";
+ Text[ arabic ] = "ÊÙáíá";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Óêßáóç ðåäßùí";
+ Text[ korean ] = "°­Á¶";
+ Text[ turkish ] = "Vurgu";
+ };
+ CheckBox CB_IDX_ENTRY
+ {
+ Pos = MAP_APPFONT ( 12 , 83 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Verzeichniseintr~äge" ;
+ Text [ ENGLISH ] = "Index entries" ;
+ Text [ norwegian ] = "Index entries" ;
+ Text [ italian ] = "~Voci di indice" ;
+ Text [ portuguese_brazilian ] = "Entradas do índice" ;
+ Text [ portuguese ] = "~Entradas de índice" ;
+ Text [ finnish ] = "Hakemistotekstit" ;
+ Text [ danish ] = "Indekselementer" ;
+ Text [ french ] = "E~ntrées d'index" ;
+ Text [ swedish ] = "Förte~ckningsposter" ;
+ Text [ dutch ] = "Inde~xgegevens" ;
+ Text [ spanish ] = "~Entradas al índice" ;
+ Text [ english_us ] = "~Index entries" ;
+ Text[ chinese_simplified ] = "Ŀ¼ÌõÄ¿(~I)";
+ Text[ russian ] = "Ýëåìåíòû óêàçàòåëÿ";
+ Text[ polish ] = "Wpisy do indeksu";
+ Text[ japanese ] = "–ÚŽŸ‚Æõˆø‚Ì€–Ú(~I)";
+ Text[ chinese_traditional ] = "¥Ø¿ý±ø¥Ø(~I)";
+ Text[ arabic ] = "ÇáÅÏÎÇáÇÊ ÇáÝåÑÓíÉ";
+ Text[ greek ] = "Êáôá÷ùñßóåéò åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ Ç׸ñ(~I)";
+ Text[ turkish ] = "Dizin giri~þleri";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_INDEX
+ {
+ Pos = MAP_APPFONT ( 12 , 95 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Verzeichn~isse" ;
+ Text [ ENGLISH ] = "Indexes" ;
+ Text[ english_us ] = "Inde~xes";
+ Text[ portuguese ] = "~Índices";
+ Text[ russian ] = "Óêàçàòåëè";
+ Text[ greek ] = "ÅõñåôÞñéá";
+ Text[ dutch ] = "Indi~ces";
+ Text[ french ] = "~Index";
+ Text[ spanish ] = "~Índices";
+ Text[ italian ] = "~Indici";
+ Text[ danish ] = "Indeks";
+ Text[ swedish ] = "Förteckn~ingar";
+ Text[ polish ] = "Indeksy";
+ Text[ portuguese_brazilian ] = "Entradas do índice";
+ Text[ japanese ] = "ÃÞ¨Ú¸ÄØ(~I)";
+ Text[ korean ] = "»öÀÎ(~X)";
+ Text[ chinese_simplified ] = "Ŀ¼(~I)";
+ Text[ chinese_traditional ] = "¥Ø¿ý(~I)";
+ Text[ arabic ] = "ÇáÝåÇÑÓ";
+ Text[ turkish ] = "Di~zinler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FOOTBACK
+ {
+ Pos = MAP_APPFONT ( 12 , 107 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Fu~ßnoten" ;
+ Text [ ENGLISH ] = "Footnotes" ;
+ Text [ english_us ] = "Footnot~es" ;
+ Text [ swedish ] = "F~otnoter" ;
+ Text [ danish ] = "Fodnoter" ;
+ Text [ italian ] = "Note a piè pagina" ;
+ Text [ spanish ] = "Notas al ~pie" ;
+ Text [ french ] = "Notes de ~bas de page" ;
+ Text [ dutch ] = "V~oetnoten" ;
+ Text [ portuguese_brazilian ] = "Fu~ßnoten" ;
+ Text [ portuguese ] = "Notas de rodapé" ;
+ Text[ chinese_simplified ] = "×¢½Å(~E)";
+ Text[ russian ] = "Ñíîñêè";
+ Text[ polish ] = "Przypisy ~dolne";
+ Text[ japanese ] = "‹r’(~E)";
+ Text[ chinese_traditional ] = "µù¸}(~E)";
+ Text[ arabic ] = "ÇáÍæÇÔí ÇáÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåéþóåéò";
+ Text[ korean ] = "°¢ÁÖ(~E)";
+ Text[ turkish ] = "Dipnotlar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FLDBACK
+ {
+ Pos = MAP_APPFONT ( 12 , 119 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Felder : ~Felder hinterlegen */
+ Text = "~Felder" ;
+ Text [ ENGLISH ] = "Fields" ;
+ Text [ english_us ] = "Fie~lds" ;
+ Text [ swedish ] = "~Fält" ;
+ Text [ danish ] = "Felter" ;
+ Text [ italian ] = "Campi" ;
+ Text [ spanish ] = "~Campos" ;
+ Text [ french ] = "~Champs" ;
+ Text [ dutch ] = "Ve~lden" ;
+ Text [ portuguese_brazilian ] = "~Felder" ;
+ Text [ portuguese ] = "~Campos" ;
+ Text[ chinese_simplified ] = "×Ö¶Î(~F)";
+ Text[ russian ] = "Ïîëÿ";
+ Text[ polish ] = "P~ola";
+ Text[ japanese ] = "̨°ÙÄÞ(~F)";
+ Text[ chinese_traditional ] = "Äæ¦ì(~F)";
+ Text[ arabic ] = "ÇáÍÞæá";
+ Text[ greek ] = "Ðåäßá";
+ Text[ korean ] = "Çʵå(~L)";
+ Text[ turkish ] = "Alanlar";
+ Text[ language_user1 ] = " ";
+ };
+ //_----------------------------
+ GroupBox GB_NOPRINT
+ {
+ Pos = MAP_APPFONT ( 134 , 2 ) ;
+ Size = MAP_APPFONT ( 120 , 129 ) ;
+ Text = "Nicht druckbare Zeichen" ;
+ Text [ ENGLISH ] = "Unprintable Characters" ;
+ Text [ norwegian ] = "Unprintable Characters" ;
+ Text [ italian ] = "Caratteri non stampabili" ;
+ Text [ portuguese_brazilian ] = "Unprintable Characters" ;
+ Text [ portuguese ] = "Caracteres não imprimíveis" ;
+ Text [ finnish ] = "Unprintable Characters" ;
+ Text [ danish ] = "Tegn som ikke kan udskrives" ;
+ Text [ french ] = "Caractères non imprimables " ;
+ Text [ swedish ] = "Icke utskrivbara tecken" ;
+ Text [ dutch ] = "Niet-afdrukbare tekens" ;
+ Text [ spanish ] = "Caracteres no imprimibles" ;
+ Text [ english_us ] = "Nonprinting characters" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "²»¿É´òÓ¡µÄ×Ö·û";
+ Text[ russian ] = "Íåïå÷àòàåìûå ñèìâîëû";
+ Text[ polish ] = "Znaki niedrukowalne";
+ Text[ japanese ] = "ˆóü‚³‚ê‚È‚¢•¶Žš‚â‹L†‚Ì•\\Ž¦/”ñ•\\Ž¦";
+ Text[ chinese_traditional ] = "±±¨î²Å";
+ Text[ arabic ] = "ÃÍÑÝ áÇ ÊõØÈÚ";
+ Text[ greek ] = "Ìç åêôõðþóéìïé ÷áñáêôÞñåò";
+ Text[ korean ] = "ÀμâÇÒ¼ö ¾ø´Â ¹®ÀÚ";
+ Text[ turkish ] = "Yazdýrýlmayan karakterler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PARA
+ {
+ Pos = MAP_APPFONT ( 140 , 12 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Absatzende" ;
+ Text [ ENGLISH ] = "Paragraph ends" ;
+ Text [ norwegian ] = "Paragraph ends" ;
+ Text [ italian ] = "Fine paragrafo" ;
+ Text [ portuguese_brazilian ] = "Finais de parágrafo" ;
+ Text [ portuguese ] = "~Fim de parágrafo" ;
+ Text [ finnish ] = "Kappaleenvaihdot" ;
+ Text [ danish ] = "Afsnitsslutning" ;
+ Text [ french ] = "~Fin de paragraphe" ;
+ Text [ swedish ] = "Styck~etecken" ;
+ Text [ dutch ] = "~Einde alinea" ;
+ Text [ spanish ] = "~Fin de párrafo" ;
+ Text [ english_us ] = "Pa~ragraph end" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "¶ÎÂäβ¶Ë (~M)";
+ Text[ russian ] = "Êîíåö àáçàöà";
+ Text[ polish ] = "Koniec akapitu";
+ Text[ japanese ] = "’i—Ž–– (~M)";
+ Text[ chinese_traditional ] = "¬q¸¨§ÀºÝ (~M)";
+ Text[ arabic ] = "äåÇíÉ ÝÞÑÉ";
+ Text[ greek ] = "ÔÝëïò ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô ³¡(~R)";
+ Text[ turkish ] = "Paragraf sonu";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_SHYPH
+ {
+ Pos = MAP_APPFONT ( 140 , 25 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Weiche Trenner" ;
+ Text [ ENGLISH ] = "Soft hyphens" ;
+ Text [ norwegian ] = "Soft hyphens" ;
+ Text [ italian ] = "Sillabazioni morbide" ;
+ Text [ portuguese_brazilian ] = "Hífens soft" ;
+ Text [ portuguese ] = "~Hífens opcionais" ;
+ Text [ finnish ] = "Ehdolliset tavuviivat" ;
+ Text [ danish ] = "Bløde skilletegn" ;
+ Text [ french ] = "Traits d'union ~automatiques" ;
+ Text [ swedish ] = "~Mjuka bindestreck" ;
+ Text [ dutch ] = "Tij~delijke afbreektekens" ;
+ Text [ spanish ] = "G~uiones opcionales" ;
+ Text [ english_us ] = "Optional h~yphens" ;
+ Text[ chinese_simplified ] = "ÈíÐÔÁ¬×Ö·û(~Y)";
+ Text[ russian ] = "Ìÿãêèé ïåðåíîñ";
+ Text[ polish ] = "Miêkkie znaki podzia³u";
+ Text[ japanese ] = "—áŠO‚ÌʲÌÝ(~Y)";
+ Text[ chinese_traditional ] = "¥i¿ï¥Îªº³s¦r²Å(~Y)";
+ Text[ arabic ] = "æÇÕáÉ ÇÎÊíÇÑíÉ";
+ Text[ greek ] = "¹~ðéá äéá÷ùñéóôéêÜ";
+ Text[ korean ] = "¼±ÅÃÀû ÇÏÀÌÇÂ(~Y)";
+ Text[ turkish ] = "Ay~ýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_SPACE
+ {
+ Pos = MAP_APPFONT ( 140 , 38 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Lee~rzeichen" ;
+ Text [ ENGLISH ] = "Spaces" ;
+ Text [ norwegian ] = "Spaces" ;
+ Text [ italian ] = "Spazi" ;
+ Text [ portuguese_brazilian ] = "Espaçamentos" ;
+ Text [ portuguese ] = "Espaçamentos" ;
+ Text [ finnish ] = "Välilyönnit" ;
+ Text [ danish ] = "Mellemrum" ;
+ Text [ french ] = "Es~paces" ;
+ Text [ swedish ] = "Bl~anksteg" ;
+ Text [ dutch ] = "~Spaties" ;
+ Text [ spanish ] = "Esp~acios" ;
+ Text [ english_us ] = "Spa~ces" ;
+ Text[ chinese_simplified ] = "¿Õ°××Ö·û(~S)";
+ Text[ russian ] = "Ïðîáåëû";
+ Text[ polish ] = "Spa~cje";
+ Text[ japanese ] = "½Íß°½(~S)";
+ Text[ chinese_traditional ] = "ªÅ¥Õ¦r¤¸(~S)";
+ Text[ arabic ] = "ÃÍÑÝ ãÓÇÝÉ";
+ Text[ greek ] = "Êåíü";
+ Text[ korean ] = "°£°Ý(~C)";
+ Text[ turkish ] = "~Boþluklar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HSPACE
+ {
+ Pos = MAP_APPFONT ( 140 , 51 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Ge~sch. Leerzeichen" ;
+ Text [ ENGLISH ] = "Nonbreaking spaces" ;
+ Text [ norwegian ] = "Nonbreaking spaces" ;
+ Text [ italian ] = "Spazi protetti" ;
+ Text [ portuguese_brazilian ] = "Espaços ininterruptos" ;
+ Text [ portuguese ] = "Espaços p~rotegidos" ;
+ Text [ finnish ] = "Sitovat välilyönnit" ;
+ Text [ danish ] = "Beskyttede mellemrum" ;
+ Text [ french ] = "~Espaces protégés" ;
+ Text [ swedish ] = "~Skyddade blanksteg" ;
+ Text [ dutch ] = "~Beveiligde spatie" ;
+ Text [ spanish ] = "Espacios proteg~idos" ;
+ Text [ english_us ] = "~Protected spaces" ;
+ Text[ chinese_simplified ] = "Êܱ£»¤µÄ¿Õ°××Ö·û(~P)";
+ Text[ russian ] = "Çàùèùåííûå ïðîáåëû";
+ Text[ polish ] = "Zab~ezpieczone spacje";
+ Text[ japanese ] = "•ÛŒì½Íß°½(~P)";
+ Text[ chinese_traditional ] = "¨ü«OÅ@ªºªÅ¥Õ¦r¤¸(~P)";
+ Text[ arabic ] = "ÃÍÑÝ ãÓÇÝÉ ãÍãíÉ";
+ Text[ greek ] = "×áñáêôÞñå~ò êåíþí ìå ðñïóôáóßá";
+ Text[ korean ] = "°£°Ý º¸È£(~P)";
+ Text[ turkish ] = "Korunan boþluklar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_TAB
+ {
+ Pos = MAP_APPFONT ( 140 , 64 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Ta~bulatoren" ;
+ Text [ ENGLISH ] = "~Tabs" ;
+ Text [ norwegian ] = "~Tabs" ;
+ Text [ italian ] = "~Tabulazioni" ;
+ Text [ portuguese_brazilian ] = "~Tabulações" ;
+ Text [ portuguese ] = "~Tabulações" ;
+ Text [ finnish ] = "~Sarkaimet" ;
+ Text [ danish ] = "Tabulatorer" ;
+ Text [ french ] = "~Tabulations" ;
+ Text [ swedish ] = "Ta~bulatorer" ;
+ Text [ dutch ] = "Tabsto~ps" ;
+ Text [ spanish ] = "Ta~bulaciones" ;
+ Text [ english_us ] = "Tabs" ;
+ Text[ chinese_simplified ] = "ÖƱí·û(~B)";
+ Text[ russian ] = "Òàáóëÿòîðû";
+ Text[ polish ] = "Tabulatory";
+ Text[ japanese ] = "ÀÌÞ(~B)";
+ Text[ chinese_traditional ] = "»sªí²Å(~B)";
+ Text[ arabic ] = "ÚáÇãÇÊ ÇáÌÏæáÉ";
+ Text[ greek ] = "ÓôçëïèÝôåò";
+ Text[ korean ] = "ÅÇ";
+ Text[ turkish ] = "Sekmeler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_BREAK
+ {
+ Pos = MAP_APPFONT ( 140 , 77 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Umbr~üche" ;
+ Text [ ENGLISH ] = "Breaks" ;
+ Text [ norwegian ] = "Breaks" ;
+ Text [ italian ] = "Interruzioni" ;
+ Text [ portuguese_brazilian ] = "Interrupções" ;
+ Text [ portuguese ] = "Quebras" ;
+ Text [ finnish ] = "Vaihdot" ;
+ Text [ danish ] = "Skift" ;
+ Text [ french ] = "~Sauts" ;
+ Text [ swedish ] = "Br~ytningar" ;
+ Text [ dutch ] = "Ve~randeringen" ;
+ Text [ spanish ] = "~Saltos" ;
+ Text [ english_us ] = "Brea~ks" ;
+ Text[ chinese_simplified ] = "»»Ðзû(~K)";
+ Text[ russian ] = "Ðàçðûâû";
+ Text[ polish ] = "Podzia~³y";
+ Text[ japanese ] = "‰üs(~K)";
+ Text[ chinese_traditional ] = "´«¦æ²Å(~K)";
+ Text[ arabic ] = "ÝæÇÕá";
+ Text[ greek ] = "ÁëëáãÝò";
+ Text[ korean ] = "³ª´©±â(~K)";
+ Text[ turkish ] = "Kesmeler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HIDDEN
+ {
+ Pos = MAP_APPFONT ( 140 , 90 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Verste~ckter Text" ;
+ Text [ ENGLISH ] = "~Hidden text" ;
+ Text [ norwegian ] = "~Hidden text" ;
+ Text [ italian ] = "Testo nascosto" ;
+ Text [ portuguese_brazilian ] = "~Texto oculto" ;
+ Text [ portuguese ] = "~Texto oculto" ;
+ Text [ finnish ] = "~Piiloteksti" ;
+ Text [ danish ] = "Skjult tekst" ;
+ Text [ french ] = "Texte ~masqué" ;
+ Text [ swedish ] = "Dold te~xt" ;
+ Text [ dutch ] = "On~zichtbare tekst" ;
+ Text [ spanish ] = "Te~xto oculto" ;
+ Text [ english_us ] = "Hidden text" ;
+ Text[ chinese_simplified ] = "ÒþÈëµÄÎÄ×Ö(~H)";
+ Text[ russian ] = "Ñêðûòûé òåêñò";
+ Text[ polish ] = "Ukryty tek~st";
+ Text[ japanese ] = "‰B‚µÃ·½Ä(~H)";
+ Text[ chinese_traditional ] = "Áô¤Jªº¤å¦r(~H)";
+ Text[ arabic ] = "äÕ ãÎÝí";
+ Text[ greek ] = "Êñõöü êåßìåíï";
+ Text[ korean ] = "¼û°ÜÁø ÅؽºÆ®";
+ Text[ turkish ] = "~Gizli metin";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HIDDEN_PARA
+ {
+ Pos = MAP_APPFONT ( 140 , 103 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Versteckte Absätze" ;
+ Text [ ENGLISH ] = "H~idden paragraphs" ;
+ Text [ english_us ] = "Hidden p~aragraphs" ;
+ Text [ portuguese_brazilian ] = "~Versteckte Absätze" ;
+ Text [ swedish ] = "~Dolda stycken" ;
+ Text [ danish ] = "Skulte afsnit" ;
+ Text [ italian ] = "~Paragrafi nascosti" ;
+ Text [ spanish ] = "Pá~rrafos ocultos" ;
+ Text [ french ] = "~Paragraphes masqués" ;
+ Text [ dutch ] = "Verborgen al~inea´s" ;
+ Text [ portuguese ] = "~Parágrafos ocultos" ;
+ Text[ chinese_simplified ] = "ÒþÈëµÄ¶ÎÂä(~H)";
+ Text[ russian ] = "Ñêðûòûå àáçàöû";
+ Text[ polish ] = "~Uk~yte akapity";
+ Text[ japanese ] = "‰B‚µ’i—Ž(~H)";
+ Text[ chinese_traditional ] = "Áô¤Jªº¬q¸¨(~H)";
+ Text[ arabic ] = "ÝÞÑÇÊ ãÎÝíÉ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "ÊñõöÞ ðáñÜãñáöïò";
+ Text[ korean ] = "¼û°ÜÁø ´Ü¶ô(~A)";
+ Text[ turkish ] = "Gizili paragraflar";
+ };
+};
+/**************************************************************************/
+/* */
+/* TabPage Anzeige/Layout */
+/* */
+/**************************************************************************/
+TabPage TP_LAYOUT_OPT
+{
+ HelpID = HID_LAYOUT_OPT ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ GroupBox GB_LINE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 120 , 93 ) ;
+ Text = "Linien" ;
+ Text [ ENGLISH ] = "Lines" ;
+ Group = TRUE ;
+ Text [ english_us ] = "Lines" ;
+ Text [ italian ] = "Linee" ;
+ Text [ spanish ] = "Líneas" ;
+ Text [ french ] = "Lignes" ;
+ Text [ dutch ] = "Lijnen" ;
+ Text [ swedish ] = "Linjer" ;
+ Text [ danish ] = "Linjer" ;
+ Text [ portuguese_brazilian ] = "Linien" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text[ chinese_simplified ] = "ÏßÌõ";
+ Text[ russian ] = "Ëèíèè";
+ Text[ polish ] = "Linie";
+ Text[ japanese ] = "ü";
+ Text[ chinese_traditional ] = "½u±ø";
+ Text[ arabic ] = "ÎØæØ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "¼±";
+ Text[ turkish ] = "Çizgiler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_TXTBEG
+ {
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Te~xtbegrenzungen" ;
+ Text [ ENGLISH ] = "Text boundaries" ;
+ Text [ norwegian ] = "Text boundaries" ;
+ Text [ italian ] = "Limiti di ~testo" ;
+ Text [ portuguese_brazilian ] = "Limites do texto" ;
+ Text [ portuguese ] = "~Limites do texto" ;
+ Text [ finnish ] = "Tekstin rajat" ;
+ Text [ danish ] = "Tekstmargener" ;
+ Text [ french ] = "Délimitations du te~xte" ;
+ Text [ swedish ] = "Te~xtbegränsningar" ;
+ Text [ dutch ] = "Tekst~begrenzingen" ;
+ Text [ spanish ] = "Límites del ~texto" ;
+ Text [ english_us ] = "Te~xt limits" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ÕýÎı߽ç(~X)";
+ Text[ russian ] = "Ãðàíèöû òåêñòà";
+ Text[ polish ] = "Granice tekstu";
+ Text[ japanese ] = "÷½Ä‚Ì‹«ŠE(~X)";
+ Text[ chinese_traditional ] = "¤º¤åÃä¬É(~X)";
+ Text[ arabic ] = "ÍÏæÏ ÇáäÕ";
+ Text[ greek ] = "¼ñéá êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® °æ°è(~X)";
+ Text[ turkish ] = "Metin sýnýrlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_TABBEG
+ {
+ Pos = MAP_APPFONT ( 12 , 25 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Tabelle~nbegrenzungen" ;
+ Text [ ENGLISH ] = "~Table boundaries" ;
+ Text [ norwegian ] = "~Table boundaries" ;
+ Text [ italian ] = "Limiti ~tabella" ;
+ Text [ portuguese_brazilian ] = "~Limites da tabela" ;
+ Text [ portuguese ] = "~Limites da tabela" ;
+ Text [ finnish ] = "~Taulukon rajat" ;
+ Text [ danish ] = "Tabelgrænser" ;
+ Text [ french ] = "~Bordures de tableau" ;
+ Text [ swedish ] = "Tabellbegrä~nsningar" ;
+ Text [ dutch ] = "~Tabelbegrenzingen" ;
+ Text [ spanish ] = "Límites de la t~abla" ;
+ Text [ english_us ] = "T~able limits" ;
+ Text[ chinese_simplified ] = "±í¸ñ±ß½ç(~B)";
+ Text[ russian ] = "Ãðàíèöû òàáëèöû";
+ Text[ polish ] = "Ograniczenia tabeli";
+ Text[ japanese ] = "•\\‚Ì‹«ŠE(~B)";
+ Text[ chinese_traditional ] = "ªí®æÃä¬É(~B)";
+ Text[ arabic ] = "ÍÏæÏ ÇáÌÏæá";
+ Text[ greek ] = "¼ñéá ðßíáêá";
+ Text[ korean ] = "Ç¥ °æ°è(~A)";
+ Text[ turkish ] = "Tablo sýnýrlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_SECT_BOUNDS
+ {
+ Pos = MAP_APPFONT ( 12 , 38 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Bereichsbegrenzungen" ;
+ Text [ ENGLISH ] = "~Section boundaries" ;
+ Text[ english_us ] = "~Section limits";
+ Text[ portuguese ] = "~Limites de área";
+ Text[ russian ] = "Ãðàíèöû îáëàñòè";
+ Text[ dutch ] = "~Bereiksgrenzen";
+ Text[ french ] = "~Limites de sections";
+ Text[ spanish ] = "~Límites de área";
+ Text[ italian ] = "Limiti area";
+ Text[ danish ] = "Områdegrænser";
+ Text[ swedish ] = "Områdesbegränsningar";
+ Text[ polish ] = "Ograniczenie obszaru";
+ Text[ portuguese_brazilian ] = "~Section boundaries";
+ Text[ japanese ] = "¾¸¼®Ý‹æØ‚è(~S)";
+ Text[ chinese_simplified ] = "ÇøÓò±ß½ç(~S)";
+ Text[ chinese_traditional ] = "°Ï°ìÃä¬É(~S)";
+ Text[ arabic ] = "ÍÏæÏ ÇáäØÇÞ";
+ Text[ greek ] = "¼ñéá ôïìÝá";
+ Text[ korean ] = "±¸¿ª °æ°è(~S)";
+ Text[ turkish ] = "~Bölüm sýnýrlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_CROSS
+ {
+ Pos = MAP_APPFONT ( 12 , 51 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "H~ilfslinien" ;
+ Text [ ENGLISH ] = "~Crosshair" ;
+ Text [ norwegian ] = "~Crosshair" ;
+ Text [ italian ] = "Linee guida" ;
+ Text [ portuguese_brazilian ] = "~Crosshair" ;
+ Text [ portuguese ] = "~Guias" ;
+ Text [ finnish ] = "~Ristikkäin" ;
+ Text [ danish ] = "Hjælpelinjer" ;
+ Text [ french ] = "~Repères" ;
+ Text [ swedish ] = "Hj~älplinjer" ;
+ Text [ dutch ] = "~Hulplijnen" ;
+ Text [ spanish ] = "~Guías" ;
+ Text [ english_us ] = "~Guides" ;
+ Text[ chinese_simplified ] = "¸¨ÖúÏß(~G)";
+ Text[ russian ] = "Íàïðàâëÿþùèå ëèíèè";
+ Text[ polish ] = "Linie pomocnicze";
+ Text[ japanese ] = "•â•ü(~G)";
+ Text[ chinese_traditional ] = "»²§U½u(~G)";
+ Text[ arabic ] = "ÎØæØ ãÓÇÚÏÉ";
+ Text[ greek ] = "ÂïçèçôéêÝò ãñáììÝò";
+ Text[ korean ] = "¾È³»(~G)";
+ Text[ turkish ] = "Kýlavuzlar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HANDLE
+ {
+ Pos = MAP_APPFONT ( 12 , 64 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Einfache Griffe" ;
+ Text [ ENGLISH ] = "Simple Handles" ;
+ Text[ english_us ] = "~Simple control points";
+ Text[ portuguese ] = "Guias sim~ples";
+ Text[ russian ] = "Îáû÷íûå óçëû";
+ Text[ greek ] = "ÁðëÜ óçì~åßá åëÝã÷ïõ";
+ Text[ dutch ] = "~Eenvoudige handvatten";
+ Text[ french ] = "~Poignées simples";
+ Text[ spanish ] = "Agarraderas ~sencillas";
+ Text[ italian ] = "~Maniglie semplici";
+ Text[ danish ] = "Enkelte håndtag";
+ Text[ swedish ] = "~Enkla handtag";
+ Text[ polish ] = "Proste uchwyty";
+ Text[ portuguese_brazilian ] = "~Farbige Handles";
+ Text[ japanese ] = "¼ÝÌßÙ‚È»²½Þ•ÏXÊÝÄÞÙ(~S)";
+ Text[ korean ] = "´Ü¼ø ÇÚµé(~S)";
+ Text[ chinese_simplified ] = "±ê×¼¿Øµã";
+ Text[ chinese_traditional ] = "¼Ð­ã±±ÂI(~S)";
+ Text[ arabic ] = "ãÞÇÈÖ ÈÓíØÉ";
+ Text[ turkish ] = "Basit çekme noktalarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_BIGHANDLE
+ {
+ Pos = MAP_APPFONT ( 12 , 77 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Große Griffe" ;
+ Text [ ENGLISH ] = "Big Handles" ;
+ Text[ english_us ] = "Large co~ntrol points";
+ Text[ portuguese ] = "~Guias grandes";
+ Text[ russian ] = "Êðóïíûå óçëû";
+ Text[ greek ] = "Ìå~ãÜëá óçìåßá åëÝã÷ïõ";
+ Text[ dutch ] = "~Grote handvatten";
+ Text[ french ] = "~Grandes poignées";
+ Text[ spanish ] = "Agarrader~as grandes";
+ Text[ italian ] = "Maniglie ~grandi";
+ Text[ danish ] = "Store håndtag";
+ Text[ swedish ] = "~Stora handtag";
+ Text[ polish ] = "Du¿e uchwyty";
+ Text[ portuguese_brazilian ] = "Big Handles";
+ Text[ japanese ] = "‘å‚«‚¢»²½Þ•ÏXÊÝÄÞÙ(~B)";
+ Text[ korean ] = "´ëÇü ÇÚµé(~N)";
+ Text[ chinese_simplified ] = "´ó¿Øµã";
+ Text[ chinese_traditional ] = "¤j±±ÂI(~B)";
+ Text[ arabic ] = "ãÞÇÈÖ ßÈíÑÉ";
+ Text[ turkish ] = "~Büyük çekme noktalarý";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_WINDOW
+ {
+ Pos = MAP_APPFONT ( 134 , 3 ) ;
+ Size = MAP_APPFONT ( 120 , 93 ) ;
+ Text = "Fenster";
+ Text [ italian ] = "Finestra";
+ Text [ portuguese_brazilian ] = "Janela";
+ Text [ portuguese ] = "Janela";
+ Text [ danish ] = "Vindue";
+ Text [ french ] = "Fenêtre";
+ Text [ swedish ] = "Fönster";
+ Text [ dutch ] = "Venster";
+ Text [ spanish ] = "Ventana";
+ Text [ english_us ] = "Window";
+ Text[ chinese_simplified ] = "ÊÓ´°";
+ Text[ russian ] = "Îêíî";
+ Text[ polish ] = "Okno";
+ Text[ japanese ] = "³¨ÝÄÞ³";
+ Text [ norwegian ] = "Window" ;
+ Text [ italian ] = "Finestra" ;
+ Group = TRUE ;
+ Text[ chinese_traditional ] = "µøµ¡";
+ Text[ arabic ] = "äÇÝÐÉ";
+ Text[ greek ] = "ÐáñÜèõñï";
+ Text[ korean ] = "â";
+ Text[ turkish ] = "Pencere";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HSCROLL
+ {
+ Pos = MAP_APPFONT ( 140 , 12 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Horizontale Bildla~ufleiste" ;
+ Text [ ENGLISH ] = "~Horizontal scrollbar" ;
+ Text [ english_us ] = "H~orizontal scroll" ;
+ Text [ italian ] = "Barra di scorrimento orizzontale" ;
+ Text [ spanish ] = "Barra de desplazamiento ~horizontal" ;
+ Text [ french ] = "Barre de défilement ~horizontale" ;
+ Text [ dutch ] = "H~orizontale beeldschuifbalk" ;
+ Text [ swedish ] = "H~orisontell bildrullningslist" ;
+ Text [ danish ] = "Vandret rullepanel" ;
+ Text [ portuguese_brazilian ] = "Horizontale Bildla~ufleiste" ;
+ Text [ portuguese ] = "Barra de deslocação ~horizontal" ;
+ Text[ chinese_simplified ] = "ˮƽÏò¹ö¶¯À¸(~H)";
+ Text[ russian ] = "Ãîðèçîíòàëüíàÿ ïîëîñà ïðîêðóòêè";
+ Text[ polish ] = "Poziomy pa~sek przewijania obrazu";
+ Text[ japanese ] = "…•½½¸Û°ÙÊÞ°(~H)";
+ Text[ chinese_traditional ] = "¤ô¥­¦V¨÷¶b(~H)";
+ Text[ arabic ] = "ÔÑíØ ÊÍÑíß ÇáÕÝÍÉ ÃÝÞíÇð";
+ Text[ greek ] = "Ïñéæüíôéá ãñáììÞ êýëéóçò";
+ Text[ korean ] = "¼öÆò ½ºÅ©·Ñ(~O)";
+ Text[ turkish ] = "Yatay kaydýrma ~çubuðu";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_VSCROLL
+ {
+ Pos = MAP_APPFONT ( 140 , 25 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Vertikale Bildlaufleiste" ;
+ Text [ ENGLISH ] = "~Vertical scrollbar" ;
+ Text [ english_us ] = "~Vertical scroll" ;
+ Text [ italian ] = "Barra di scorrimento verticale" ;
+ Text [ spanish ] = "Barra de desplazamiento ~vertical" ;
+ Text [ french ] = "Barre de défilement ~verticale" ;
+ Text [ dutch ] = "~Verticale schuifbalk" ;
+ Text [ swedish ] = "~Vertikal bildrullningslist" ;
+ Text [ danish ] = "Lodret rullepanel" ;
+ Text [ portuguese_brazilian ] = "~Vertikale Bildlaufleiste" ;
+ Text [ portuguese ] = "Barra de deslocação ~vertical" ;
+ Text[ chinese_simplified ] = "´¹Ö±Ïò¹ö¶¯À¸(~V)";
+ Text[ russian ] = "Âåðòèêàëüíàÿ ïîëîñà ïðîêðóòêè";
+ Text[ polish ] = "Piono~wy pasek przewijania obrazu";
+ Text[ japanese ] = "‚’¼½¸Û°ÙÊÞ°(~V)";
+ Text[ chinese_traditional ] = "««ª½¦¡¨÷¶b(~V)";
+ Text[ arabic ] = "ÔÑíØ ÊÍÑíß ÇáÕÝÍÉ ÑÃÓíÇð";
+ Text[ greek ] = "Êáôáêüñõöç ãñáììÞ êýëéóçò";
+ Text[ korean ] = "¼öÁ÷ ½ºÅ©·Ñ(~V)";
+ Text[ turkish ] = "Di~key kaydýrma çubuðu";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HRULER
+ {
+ Pos = MAP_APPFONT ( 140 , 38 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Horizontales ~Lineal" ;
+ Text [ ENGLISH ] = "~Horic. ruler" ;
+ Text [ norwegian ] = "~Horic. ruler" ;
+ Text [ italian ] = "Rig~hello orizzontale" ;
+ Text [ portuguese_brazilian ] = "~Régua horizontal" ;
+ Text [ portuguese ] = "~Régua horizontal" ;
+ Text [ finnish ] = "~Vaakaviivain" ;
+ Text [ danish ] = "Vandret lineal" ;
+ Text [ french ] = "Règle hori~zontale" ;
+ Text [ swedish ] = "Horisontell ~linjal" ;
+ Text [ dutch ] = "Horizontale ~liniaal" ;
+ Text [ spanish ] = "Regla h~orizontal" ;
+ Text [ english_us ] = "Hori~zontal ruler" ;
+ Text[ chinese_simplified ] = "ˮƽ±ê³ß(~O)";
+ Text[ russian ] = "Ãîðèçîíòàëüíàÿ ëèíåéêà";
+ Text[ polish ] = "Linijka pozioma";
+ Text[ japanese ] = "…•½Ù°×(~O)";
+ Text[ chinese_traditional ] = "¤ô¥­¼Ð¤Ø(~O)";
+ Text[ arabic ] = "ÇáãÓØÑÉ ÇáÃÝÞíÉ";
+ Text[ greek ] = "Ïñéæüíôéïò ÷Üñáêáò";
+ Text[ korean ] = "¼öÆò ´«±ÝÀÚ(~Z)";
+ Text[ turkish ] = "Yatay cetvel";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_VRULER
+ {
+ Pos = MAP_APPFONT ( 140 , 51 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "Verti~kales Lineal" ;
+ Text [ ENGLISH ] = "~Vert. ruler" ;
+ Text [ norwegian ] = "~Vert. ruler" ;
+ Text [ italian ] = "Ri~ghello verticale" ;
+ Text [ portuguese_brazilian ] = "~Régua vertical" ;
+ Text [ portuguese ] = "~Régua vertical" ;
+ Text [ finnish ] = "~Pystyviivain" ;
+ Text [ danish ] = "Lodret lineal" ;
+ Text [ french ] = "Règle verti~cale" ;
+ Text [ swedish ] = "Verti~kal linjal" ;
+ Text [ dutch ] = "Verticale l~iniaal" ;
+ Text [ spanish ] = "Regla v~ertical" ;
+ Text [ english_us ] = "V~ertical ruler" ;
+ Text[ chinese_simplified ] = "´¹Ö±±ê³ß(~E)";
+ Text[ russian ] = "Âåðòèêàëüíàÿ ëèíåéêà";
+ Text[ polish ] = "Linij~ka pionowa";
+ Text[ japanese ] = "‚’¼Ù°×(~E)";
+ Text[ chinese_traditional ] = "««ª½¦¡¼Ð¤Ø(~E)";
+ Text[ arabic ] = "ÇáãÓØÑÉ ÇáÑÃÓíÉ";
+ Text[ greek ] = "Êáôáêüñõöïò ÷Üñáêáò";
+ Text[ korean ] = "¼öÁ÷ ´«±ÝÀÚ(~E)";
+ Text[ turkish ] = "Dikey cetvel";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_SMOOTH_SCROLL
+ {
+ Pos = MAP_APPFONT ( 140 , 64 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Text = "~Weiches Scrollen" ;
+ Text [ ENGLISH ] = "S~mooth scroll" ;
+ Text [ english_us ] = "S~mooth scroll" ;
+ Text [ portuguese_brazilian ] = "~Weiches Scrollen" ;
+ Text [ swedish ] = "~Mjuk rullning" ;
+ Text [ danish ] = "Blød rulning" ;
+ Text [ italian ] = "Scorrimento dolce" ;
+ Text [ spanish ] = "Desplazamiento ~suave" ;
+ Text [ french ] = "~Défilement doux" ;
+ Text [ dutch ] = "~Zacht scrollen" ;
+ Text [ portuguese ] = "~Mover suavemente" ;
+ Text[ chinese_simplified ] = "ƽ»¬¹ö¶¯(~M)";
+ Text[ russian ] = "Ìÿãêàÿ ïðîêðóòêà";
+ Text[ polish ] = "Miêkkie przewijanie";
+ Text[ japanese ] = "ŠŠ‚ç‚©‚Ƚ¸Û°Ù(~M)";
+ Text[ chinese_traditional ] = "¥­·Æ±²°Ê(~M)";
+ Text[ arabic ] = "ÇáÊÍÑíß ÇáãØÇæÚ";
+ Text[ greek ] = "ÁðáëÞ êýëéóç";
+ Text[ korean ] = "ºÎµå·´°Ô ½ºÅ©·Ñ(~M)";
+ Text[ turkish ] = "Yavaþ kaydýrma";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_METRIC
+ {
+ Pos = MAP_APPFONT ( 6 , 101 ) ;
+ Size = MAP_APPFONT ( 120 , 26 ) ;
+ Text = "Maßeinheit";
+ Text [ ENGLISH ] = "Metric Units" ;
+ Text [ italian ] = "Unità di misura";
+ Text [ portuguese_brazilian ] = "Unidades métricas";
+ Text [ portuguese ] = "Unidades métricas";
+ Text [ danish ] = "Måleenhed";
+ Text [ french ] = "Unité de mesure";
+ Text [ swedish ] = "Måttenhet";
+ Text [ dutch ] = "Maateenheid";
+ Text [ spanish ] = "Unidad de medida";
+ Text [ english_us ] = "Meas. units";
+ Text[ chinese_simplified ] = "¶ÈÁ¿µ¥Î»";
+ Text[ russian ] = "Åäèíèöà èçìåðåíèÿ";
+ Text[ polish ] = "Jednostka miary";
+ Text[ japanese ] = "’PˆÊ";
+ Text [ norwegian ] = "Metriske Enheter" ;
+ Text [ finnish ] = "Metriset yksiköt" ;
+ Text[ chinese_traditional ] = "«×¶q³æ¦ì";
+ Text[ arabic ] = "æÍÏÉ ÇáÞíÇÓ";
+ Text[ greek ] = "ÌïíÜäá ìÝôñçóçò";
+ Text[ korean ] = "ÃøÁ¤ ´ÜÀ§";
+ Text[ turkish ] = "Ölçü birimi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_METRIC
+ {
+ Pos = MAP_APPFONT ( 12 , 112 ) ;
+ Size = MAP_APPFONT ( 70 , 50 ) ;
+ Border = TRUE ;
+ DropDown = TRUE ;
+ };
+ StringArray ST_METRIC
+ {
+ ItemList =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Zentimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Zoll" ; FUNIT_INCH ; > ;
+ < "Fuß" ; FUNIT_FOOT ; > ;
+ < "Meilen" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Point" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ English ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Zentimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Zoll" ; FUNIT_INCH ; > ;
+ < "Fuß" ; FUNIT_FOOT ; > ;
+ < "Meilen" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Point" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ norwegian ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Zentimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Zoll" ; FUNIT_INCH ; > ;
+ < "Fuß" ; FUNIT_FOOT ; > ;
+ < "Meilen" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Point" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ italian ] =
+ {
+ < "Millimetro" ; FUNIT_MM ; > ;
+ < "Centimetro" ; FUNIT_CM ; > ;
+ < "Metro" ; FUNIT_M ; > ;
+ < "Chilometro" ; FUNIT_KM ; > ;
+ < "Pollice" ; FUNIT_INCH ; > ;
+ < "piede" ; FUNIT_FOOT ; > ;
+ < "miglia" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Punto" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ portuguese_brazilian ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Zentimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Zoll" ; FUNIT_INCH ; > ;
+ < "Fuß" ; FUNIT_FOOT ; > ;
+ < "Meilen" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Ponto" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ portuguese ] =
+ {
+ < "Milímetro" ; FUNIT_MM ; > ;
+ < "Centímetro" ; FUNIT_CM ; > ;
+ < "Metro" ; FUNIT_M ; > ;
+ < "Quilómetro" ; FUNIT_KM ; > ;
+ < "Polegada" ; FUNIT_INCH ; > ;
+ < "Pé" ; FUNIT_FOOT ; > ;
+ < "Milhas" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Ponto" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ french ] =
+ {
+ < "Millimètre" ; FUNIT_MM ; > ;
+ < "Centimètre" ; FUNIT_CM ; > ;
+ < "Mètre" ; FUNIT_M ; > ;
+ < "Kilomètre" ; FUNIT_KM ; > ;
+ < "Pouce" ; FUNIT_INCH ; > ;
+ < "Pied" ; FUNIT_FOOT ; > ;
+ < "Miles" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Point" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ dutch ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Centimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Duim" ; FUNIT_INCH ; > ;
+ < "Voet" ; FUNIT_FOOT ; > ;
+ < "Mijlen" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Punt" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ spanish ] =
+ {
+ < "Milímetro" ; FUNIT_MM ; > ;
+ < "Centímetro" ; FUNIT_CM ; > ;
+ < "Metro" ; FUNIT_M ; > ;
+ < "Kilómetro" ; FUNIT_KM ; > ;
+ < "Pulgadas" ; FUNIT_INCH ; > ;
+ < "Pie" ; FUNIT_FOOT ; > ;
+ < "Millas" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Punto" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ danish ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Centimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Tommer" ; FUNIT_INCH ; > ;
+ < "Fod" ; FUNIT_FOOT ; > ;
+ < "Mil" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Punkt" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ swedish ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Centimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Tum" ; FUNIT_INCH ; > ;
+ < "Fot" ; FUNIT_FOOT ; > ;
+ < "Miles" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Punkt" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ finnish ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Zentimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Zoll" ; FUNIT_INCH ; > ;
+ < "Fuß" ; FUNIT_FOOT ; > ;
+ < "Meilen" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Point" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ english_us ] =
+ {
+ < "Millimeter" ; FUNIT_MM ; > ;
+ < "Centimeter" ; FUNIT_CM ; > ;
+ < "Meter" ; FUNIT_M ; > ;
+ < "Kilometer" ; FUNIT_KM ; > ;
+ < "Inch" ; FUNIT_INCH ; > ;
+ < "Foot" ; FUNIT_FOOT ; > ;
+ < "Miles" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Point" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ chinese_simplified ] =
+ {
+ < "ºÁÃ×" ; FUNIT_MM ; > ;
+ < "ÀåÃ×" ; FUNIT_CM ; > ;
+ < "Ã×" ; FUNIT_M ; > ;
+ < "¹«Àï" ; FUNIT_KM ; > ;
+ < "Ó¢´ç" ; FUNIT_INCH ; > ;
+ < "Ó¢³ß" ; FUNIT_FOOT ; > ;
+ < "Ó¢Àï" ; FUNIT_MILE ; > ;
+ < "Ƥ¿ÉÐÍ×Ö·û" ; FUNIT_PICA ; > ;
+ < "µã" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ russian ] =
+ {
+ < "Ìèëèìåòðû" ; FUNIT_MM ; > ;
+ < "Ñàíòèìåòðû" ; FUNIT_CM ; > ;
+ < "Ìåòðû" ; FUNIT_M ; > ;
+ < "Êèëîìåòðû" ; FUNIT_KM ; > ;
+ < "Äþéìû" ; FUNIT_INCH ; > ;
+ < "Ôóòû" ; FUNIT_FOOT ; > ;
+ < "Ìèëè" ; FUNIT_MILE ; > ;
+ < "Ïèêè" ; FUNIT_PICA ; > ;
+ < "Ïóíêò" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ polish ] =
+ {
+ < "Milimetr" ; FUNIT_MM ; > ;
+ < "Centymetr" ; FUNIT_CM ; > ;
+ < "Metr" ; FUNIT_M ; > ;
+ < "Kilometr" ; FUNIT_KM ; > ;
+ < "Cal" ; FUNIT_INCH ; > ;
+ < "Stopa" ; FUNIT_FOOT ; > ;
+ < "Mile" ; FUNIT_MILE ; > ;
+ < "Cycero" ; FUNIT_PICA ; > ;
+ < "Punkt" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ japanese ] =
+ {
+ < "ÐØÒ°ÄÙ" ; FUNIT_MM ; > ;
+ < "¾ÝÁÒ°ÄÙ" ; FUNIT_CM ; > ;
+ < "Ò°ÄÙ" ; FUNIT_M ; > ;
+ < "·ÛÒ°ÄÙ" ; FUNIT_KM ; > ;
+ < "²ÝÁ" ; FUNIT_INCH ; > ;
+ < "̨°Ä" ; FUNIT_FOOT ; > ;
+ < "ϲÙ" ; FUNIT_MILE ; > ;
+ < "Êß²¶" ; FUNIT_PICA ; > ;
+ < "Îß²ÝÄ" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ chinese_traditional ] =
+ {
+ < "²@¦Ì" ; FUNIT_MM ; > ;
+ < "Íù¦Ì" ; FUNIT_CM ; > ;
+ < "¦Ì" ; FUNIT_M ; > ;
+ < "¤½¨½" ; FUNIT_KM ; > ;
+ < "­^¤o" ; FUNIT_INCH ; > ;
+ < "­^¤Ø" ; FUNIT_FOOT ; > ;
+ < "­^¨½" ; FUNIT_MILE ; > ;
+ < "¥Ö¥i«¬¦r¤¸" ; FUNIT_PICA ; > ;
+ < "ÂI" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ arabic ] =
+ {
+ < "ãáíãÊÑ" ; FUNIT_MM ; > ;
+ < "ÓäÊíãÊÑ" ; FUNIT_CM ; > ;
+ < "ãÊÑ" ; FUNIT_M ; > ;
+ < "ßíáæãÊÑ" ; FUNIT_KM ; > ;
+ < "ÈæÕÉ" ; FUNIT_INCH ; > ;
+ < "ÞÏã" ; FUNIT_FOOT ; > ;
+ < "ÃãíÇá" ; FUNIT_MILE ; > ;
+ < "ÈíßÇ" ; FUNIT_PICA ; > ;
+ < "äÞØÉ" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ greek ] =
+ {
+ < "×éëéïóôÜ" ; FUNIT_MM ; > ;
+ < "ÅêáôïóôÜ" ; FUNIT_CM ; > ;
+ < "ÌÝôñá" ; FUNIT_M ; > ;
+ < "×éëéüìåôñá" ; FUNIT_KM ; > ;
+ < "ºíôóåò" ; FUNIT_INCH ; > ;
+ < "Ðüäé" ; FUNIT_FOOT ; > ;
+ < "Ìßëéá" ; FUNIT_MILE ; > ;
+ < "Pica" ; FUNIT_PICA ; > ;
+ < "Óçìåßï" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ korean ] =
+ {
+ < "¹Ð¸®¹ÌÅÍ" ; FUNIT_MM ; > ;
+ < "¼¾Æ¼¹ÌÅÍ" ; FUNIT_CM ; > ;
+ < "¹ÌÅÍ" ; FUNIT_M ; > ;
+ < "ų·Î¹ÌÅÍ" ; FUNIT_KM ; > ;
+ < "ÀÎÄ¡" ; FUNIT_INCH ; > ;
+ < "ÇÇÆ®" ; FUNIT_FOOT ; > ;
+ < "¸¶ÀÏ" ; FUNIT_MILE ; > ;
+ < "ÆÄÀÌÄ«" ; FUNIT_PICA ; > ;
+ < "Æ÷ÀÎÆ®" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ turkish ] =
+ {
+ < "Milimetre" ; FUNIT_MM ; > ;
+ < "Santimetre" ; FUNIT_CM ; > ;
+ < "Metre" ; FUNIT_M ; > ;
+ < "Kilometre" ; FUNIT_KM ; > ;
+ < "Ýnç" ; FUNIT_INCH ; > ;
+ < "Ft" ; FUNIT_FOOT ; > ;
+ < "Mil" ; FUNIT_MILE ; > ;
+ < "Pika" ; FUNIT_PICA ; > ;
+ < "Nokta" ; FUNIT_POINT ; > ;
+ };
+ ItemList [ language_user1 ] =
+ {
+ < " " ; FUNIT_MM ; > ;
+ < " " ; FUNIT_CM ; > ;
+ < " " ; FUNIT_M ; > ;
+ < " " ; FUNIT_KM ; > ;
+ < " " ; FUNIT_INCH ; > ;
+ < " " ; FUNIT_FOOT ; > ;
+ < " " ; FUNIT_MILE ; > ;
+ < " " ; FUNIT_PICA ; > ;
+ < " " ; FUNIT_POINT ; > ;
+ };
+ };
+ GroupBox GB_TAB
+ {
+ Pos = MAP_APPFONT ( 134 , 101 ) ;
+ Size = MAP_APPFONT ( 120 , 26 ) ;
+ Text = "Tabulatorenabstand";
+ Text [ ENGLISH ] = "Default Tab distance" ;
+ Text [ italian ] = "Intervallo di tabulazione";
+ Text [ portuguese_brazilian ] = "Default Tab distance";
+ Text [ portuguese ] = "Intervalo entre tabulações";
+ Text [ danish ] = "Tabulatorafstand";
+ Text [ french ] = "Tabulations";
+ Text [ swedish ] = "Tabulatoravstånd";
+ Text [ dutch ] = "Tabstops";
+ Text [ spanish ] = "Distancia entre tabuladores";
+ Text [ english_us ] = "Tab stops";
+ Text[ chinese_simplified ] = "ÖƱí·û¼ä¸ô";
+ Text[ russian ] = "Øàã òàáóëÿöèè";
+ Text[ polish ] = "Odstêp tabulatorów";
+ Text[ japanese ] = "ÀÌÞŠÔŠu";
+ Text [ norwegian ] = "Standard tabulatoravstand" ;
+ Text [ finnish ] = "Default Tab distance" ;
+ Group = TRUE ;
+ Text[ chinese_traditional ] = "»sªí²Å¶¡¹j";
+ Text[ arabic ] = "ÚáÇãÇÊ ÇáÌÏæáÉ";
+ Text[ greek ] = "ÁðïóôÜóåéò óôçëïèåôþí";
+ Text[ korean ] = "ÅÇ ¸ØÃã";
+ Text[ turkish ] = "Sekme duraðý";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_TAB
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 140 , 110 ) ;
+ Size = MAP_APPFONT ( 45 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 50 ;
+ Maximum = 9999 ;
+ First = 50 ;
+ Last = 2000 ;
+ };
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabPage TP_OPTPRINT_PAGE
+{
+ HelpID = HID_OPTPRINT_PAGE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GRP_1
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 78 , 92 ) ;
+ Text = "Inhalt" ;
+ Text [ ENGLISH ] = "Contents" ;
+ Text [ norwegian ] = "Innhold " ;
+ Text [ italian ] = "Contenuto" ;
+ Text [ portuguese_brazilian ] = "Conteúdo" ;
+ Text [ portuguese ] = "Conteúdo" ;
+ Text [ finnish ] = "Sisältö" ;
+ Text [ danish ] = "Indhold" ;
+ Text [ french ] = "Contenu" ;
+ Text [ swedish ] = "Innehåll" ;
+ Text [ dutch ] = "Inhoud" ;
+ Text [ spanish ] = "Contenido" ;
+ Text [ english_us ] = "Contents" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ÄÚÈÝ";
+ Text[ russian ] = "Ñîäåðæèìîå";
+ Text[ polish ] = "TreϾ";
+ Text[ japanese ] = "“à—e";
+ Text[ chinese_traditional ] = "¤º®e";
+ Text[ arabic ] = "ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Ðåñéå÷üìåíá";
+ Text[ korean ] = "³»¿ë";
+ Text[ turkish ] = "Ýçerik";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PGRF
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "~Grafiken" ;
+ Text [ ENGLISH ] = "~Graphics" ;
+ Text [ norwegian ] = "~Graphics" ;
+ Text [ italian ] = "~Immagini" ;
+ Text [ portuguese_brazilian ] = "~Gráficos" ;
+ Text [ portuguese ] = "~Imagens" ;
+ Text [ finnish ] = "~Kuvat" ;
+ Text [ danish ] = "Billeder" ;
+ Text [ french ] = "~Images" ;
+ Text [ swedish ] = "~Grafiker" ;
+ Text [ dutch ] = "A~fbeeldingen" ;
+ Text [ spanish ] = "~Imágenes" ;
+ Text [ english_us ] = "~Graphics" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ͼÐÎ(~G)";
+ Text[ russian ] = "Ãðàôèêè";
+ Text[ polish ] = "Grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸(~G)";
+ Text[ chinese_traditional ] = "¹Ï¤ù(~G)";
+ Text[ arabic ] = "ÕæÑ";
+ Text[ greek ] = "ÃñáöéêÜ";
+ Text[ korean ] = "±×·¡ÇÈ(~G)";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PTAB
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "~Tabellen" ;
+ Text [ ENGLISH ] = "~Tables" ;
+ Text [ norwegian ] = "~Tables" ;
+ Text [ italian ] = "~Tabelle" ;
+ Text [ portuguese_brazilian ] = "~Tabelas" ;
+ Text [ portuguese ] = "~Tabelas" ;
+ Text [ finnish ] = "~Taulukot" ;
+ Text [ danish ] = "Tabeller" ;
+ Text [ french ] = "~Tableaux" ;
+ Text [ swedish ] = "~Tabeller" ;
+ Text [ dutch ] = "~Tabellen" ;
+ Text [ spanish ] = "~Tablas" ;
+ Text [ english_us ] = "~Tables" ;
+ Text[ chinese_simplified ] = "±í¸ñ(~T)";
+ Text[ russian ] = "Òàáëèöû";
+ Text[ polish ] = "Ta~bele";
+ Text[ japanese ] = "•\\(~T)";
+ Text[ chinese_traditional ] = "ªí®æ(~T)";
+ Text[ arabic ] = "ÌÏÇæá";
+ Text[ greek ] = "Ðßíáêåò";
+ Text[ korean ] = "Ç¥(~T)";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PDRAW
+ {
+ Pos = MAP_APPFONT ( 12 , 40 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "Zei~chnungen" ;
+ Text [ ENGLISH ] = "~Drawings" ;
+ Text [ norwegian ] = "~Drawings" ;
+ Text [ italian ] = "~Disegni" ;
+ Text [ portuguese_brazilian ] = "~Drawings" ;
+ Text [ portuguese ] = "~Desenhos" ;
+ Text [ finnish ] = "~Drawings" ;
+ Text [ danish ] = "Tegninger" ;
+ Text [ french ] = "~Dessins" ;
+ Text [ swedish ] = "Te~ckningar" ;
+ Text [ dutch ] = "T~ekeningen" ;
+ Text [ spanish ] = "~Dibujos" ;
+ Text [ english_us ] = "Dra~wings" ;
+ Text[ chinese_simplified ] = "»æͼ(~W)";
+ Text[ russian ] = "Ðèñóíêè";
+ Text[ polish ] = "Rysunki";
+ Text[ japanese ] = "}Œ`•`‰æ(~W)";
+ Text[ chinese_traditional ] = "ø¹Ï(~W)";
+ Text[ arabic ] = "ÑÓæãÇÊ";
+ Text[ greek ] = "Ó÷Ýäéá";
+ Text[ korean ] = "±×¸®±â(~W)";
+ Text[ turkish ] = "Çizim";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_CTRLFLD
+ {
+ Pos = MAP_APPFONT ( 12 , 53 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "Kontroll~felder" ;
+ Text [ ENGLISH ] = "Controls" ;
+ Text [ norwegian ] = "Kontroller" ;
+ Text [ italian ] = "Campi di controllo" ;
+ Text [ portuguese_brazilian ] = "Controles" ;
+ Text [ portuguese ] = "Campos de controlo" ;
+ Text [ english_us ] = "Controls" ;
+ Text [ finnish ] = "Ohjausobjektit" ;
+ Text [ danish ] = "Kontrolelementer" ;
+ Text [ french ] = "~Champs de contrôle" ;
+ Text [ swedish ] = "Kontroll~fält" ;
+ Text [ dutch ] = "Controle~velden" ;
+ Text [ spanish ] = "~Campos de control" ;
+ Text[ chinese_simplified ] = "¿ØÖÆ(~F)";
+ Text[ russian ] = "Ýëåìåíòû óïðàâëåíèÿ";
+ Text[ polish ] = "Pola kon~trolne";
+ Text[ japanese ] = "ºÝÄÛ-Ù(~F)";
+ Text[ chinese_traditional ] = "±±¨î¶µ(~F)";
+ Text[ arabic ] = "ÚäÇÕÑ ÊÍßã";
+ Text[ greek ] = "Ðåäßá åëÝã÷ïõ";
+ Text[ korean ] = "ÄÁÆ®·Ñ";
+ Text[ turkish ] = "Komut alanlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_BACKGROUND
+ {
+ Pos = MAP_APPFONT ( 12 , 66 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "H~intergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ dutch ] = "A~chtergrond" ;
+ Text [ english_us ] = "Ba~ckground" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ spanish ] = "~Fondo" ;
+ Text [ french ] = "A~rrière-plan" ;
+ Text [ swedish ] = "Bak~grund" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ portuguese ] = "~Plano de fundo" ;
+ Text [ portuguese_brazilian ] = "H~intergrund" ;
+ Text[ chinese_simplified ] = "±³¾°(~C)";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi(~C)";
+ Text[ chinese_traditional ] = "­I´º(~C)";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ(~C)";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_BLACK_FONT
+ {
+ Pos = MAP_APPFONT ( 12 , 79 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "Sch~warz drucken" ;
+ Text [ ENGLISH ] = "Print black" ;
+ Text [ english_us ] = "Print blac~k" ;
+ Text [ swedish ] = "S~vart utskrift" ;
+ Text [ danish ] = "Udskriv sort" ;
+ Text [ italian ] = "Stampa in nero" ;
+ Text [ spanish ] = "Imprimir ~en negro" ;
+ Text [ french ] = "Imprimer en ~noir" ;
+ Text [ dutch ] = "~Zwart afdrukken" ;
+ Text [ portuguese_brazilian ] = "Sch~warz drucken" ;
+ Text [ portuguese ] = "Imprimir ~preto" ;
+ Text[ chinese_simplified ] = "´òÓ¡ºÚÉ«(~K)";
+ Text[ russian ] = "×åðíûì öâåòîì";
+ Text[ polish ] = "Drukuj czarnym kol.";
+ Text[ japanese ] = "•‚ňóü(~K)";
+ Text[ chinese_traditional ] = "¦C¦L¶Â¦â(~K)";
+ Text[ arabic ] = "ÇáØÈÇÚÉ ÈÇáæä ÃÓæÏ";
+ Text[ greek ] = "Åêôýðùóç óå ìáýñï";
+ Text[ korean ] = "°ËÁ¤ Àμâ(~K)";
+ Text[ turkish ] = "Siyah/beyaz yazdýr";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GRP_2
+ {
+ Pos = MAP_APPFONT ( 90 , 3 ) ;
+ Size = MAP_APPFONT ( 78 , /*92*/66 ) ;
+ Text = "Seiten" ;
+ Text [ ENGLISH ] = "Pages" ;
+ Text [ norwegian ] = "Pages" ;
+ Text [ italian ] = "Pagine" ;
+ Text [ portuguese_brazilian ] = "Páginas" ;
+ Text [ portuguese ] = "Páginas" ;
+ Text [ finnish ] = "Sivumäärä" ;
+ Text [ danish ] = "Sider" ;
+ Text [ french ] = "Pages" ;
+ Text [ swedish ] = "Sidor" ;
+ Text [ dutch ] = "Pagina's" ;
+ Text [ spanish ] = "Páginas" ;
+ Text [ english_us ] = "Pages" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ russian ] = "Ñòðàíèöû";
+ Text[ polish ] = "Strony";
+ Text[ japanese ] = "Íß°¼Þ";
+ Text[ chinese_traditional ] = "­¶";
+ Text[ arabic ] = "ÇáÕÝÍÇÊ";
+ Text[ greek ] = "Óåëßäåò";
+ Text[ korean ] = "ÆäÀÌÁö";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_LEFTP
+ {
+ Pos = MAP_APPFONT ( 96 , 14 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "~Linke Seiten" ;
+ Text [ ENGLISH ] = "~Left pages" ;
+ Text [ norwegian ] = "~Left pages" ;
+ Text [ italian ] = "Pa~gine sinistre" ;
+ Text [ portuguese_brazilian ] = "~Páginas esquerdas" ;
+ Text [ portuguese ] = "~Páginas esquerdas" ;
+ Text [ finnish ] = "~Vasemmat sivut" ;
+ Text [ danish ] = "Venstre sider" ;
+ Text [ french ] = "Pages de ~gauche" ;
+ Text [ swedish ] = "~Vänstersidor" ;
+ Text [ dutch ] = "~Linker pagina's" ;
+ Text [ spanish ] = "Páginas ~izquierdas" ;
+ Text [ english_us ] = "~Left pages" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "×óÒ³(~L)";
+ Text[ russian ] = "Ëåâûå ñòðàíèöû";
+ Text[ polish ] = "~Lewe strony";
+ Text[ japanese ] = "¶Íß°¼Þ(~L)";
+ Text[ chinese_traditional ] = "¥ª­¶(~L)";
+ Text[ arabic ] = "ÇáÕÝÍÇÊ ÇáíÓÑì";
+ Text[ greek ] = "ÁñéóôåñÝò óåëßäåò";
+ Text[ korean ] = "¿ÞÂÊ ÆäÀÌÁö(~L)";
+ Text[ turkish ] = "Sol sayfalar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_RIGHTP
+ {
+ Pos = MAP_APPFONT ( 96 , 27 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "~Rechte Seiten" ;
+ Text [ ENGLISH ] = "~Right pages" ;
+ Text [ norwegian ] = "~Right pages" ;
+ Text [ italian ] = "Pagine ~destre" ;
+ Text [ portuguese_brazilian ] = "~Páginas direitas" ;
+ Text [ portuguese ] = "~Páginas direitas" ;
+ Text [ finnish ] = "~Oikeat sivut" ;
+ Text [ danish ] = "Højre sider" ;
+ Text [ french ] = "Pages de ~droite" ;
+ Text [ swedish ] = "Höge~rsidor" ;
+ Text [ dutch ] = "~Rechter pagina's" ;
+ Text [ spanish ] = "Páginas derec~has" ;
+ Text [ english_us ] = "~Right pages" ;
+ Text[ chinese_simplified ] = "ÓÒÒ³(~H)";
+ Text[ russian ] = "Ïðàâûå ñòðàíèöû";
+ Text[ polish ] = "Prawe ~strony";
+ Text[ japanese ] = "‰EÍß°¼Þ(~H)";
+ Text[ chinese_traditional ] = "¥k­¶(~H)";
+ Text[ arabic ] = "ÇáÕÝÍÇÊ Çáíãäì";
+ Text[ greek ] = "ÄåîéÝò óåëßäåò";
+ Text[ korean ] = "¿À¸¥ÂÊ ÆäÀÌÁö(~R)";
+ Text[ turkish ] = "Sað sayfalar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_REVERSE
+ {
+ Pos = MAP_APPFONT ( 96 , 40 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "~Umgekehrt" ;
+ Text [ ENGLISH ] = "Re~versed" ;
+ Text [ norwegian ] = "Re~versed" ;
+ Text [ italian ] = "I~nvertito" ;
+ Text [ portuguese_brazilian ] = "Re~vertido" ;
+ Text [ portuguese ] = "~Inversão" ;
+ Text [ finnish ] = "~Käänteinen" ;
+ Text [ danish ] = "Omvendt" ;
+ Text [ french ] = "Ordre in~versé" ;
+ Text [ swedish ] = "~Omvänt" ;
+ Text [ dutch ] = "~Omgekeerd" ;
+ Text [ spanish ] = "In~vertido" ;
+ Text [ english_us ] = "Re~versed" ;
+ Text[ chinese_simplified ] = "·´Ïò(~V)";
+ Text[ russian ] = "Íàîáîðîò";
+ Text[ polish ] = "Odwrotnie";
+ Text[ japanese ] = "ˆóü‡˜‚ð‹t‚É‚·‚é(~V)";
+ Text[ chinese_traditional ] = "¤Ï¦V(~V)";
+ Text[ arabic ] = "ÈÊÑÊíÈ ãÚßæÓ";
+ Text[ greek ] = "Áíôßóôñïöá";
+ Text[ korean ] = "°Å²Ù·Î(~V)";
+ Text[ turkish ] = "Ters sýra";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PROSPECT
+ {
+ Pos = MAP_APPFONT ( 96 , 53 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "Pr~ospekt" ;
+ Text [ ENGLISH ] = "Pr~ospectus" ;
+ Text [ dutch ] = "~Prospectus" ;
+ Text [ english_us ] = "Bro~chure" ;
+ Text [ italian ] = "Depliant" ;
+ Text [ spanish ] = "~Prospecto" ;
+ Text [ french ] = "Pr~ospectus" ;
+ Text [ swedish ] = "Pr~ospekt" ;
+ Text [ danish ] = "Brochure" ;
+ Text [ portuguese_brazilian ] = "Pr~ospekt" ;
+ Text [ portuguese ] = "Pr~ospecto" ;
+ Text[ chinese_simplified ] = "СÊÖ²á(~C)";
+ Text[ russian ] = "Áðîøþðà";
+ Text[ polish ] = "Brosz~ura";
+ Text[ japanese ] = "ÊßÝÌÚ¯Ä(~C)";
+ Text[ chinese_traditional ] = "¤p¤â¥U(~C)";
+ Text[ arabic ] = "äÔÑÉ";
+ Text[ greek ] = "ÐñïóðÝêôïõò";
+ Text[ korean ] = "ÆÊÇ÷¿(~C)";
+ Text[ turkish ] = "Broþür";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_NO
+ {
+ Pos = MAP_APPFONT ( 180 , 14 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "~Keine" ;
+ Text [ ENGLISH ] = "~None" ;
+ Text [ norwegian ] = "~Ingen " ;
+ Text [ italian ] = "~Senza" ;
+ Text [ portuguese_brazilian ] = "~Nenhum" ;
+ Text [ portuguese ] = "~Nenhum" ;
+ Text [ finnish ] = "~Ei ole" ;
+ Text [ danish ] = "Ingen" ;
+ Text [ french ] = "~Aucun(e)" ;
+ Text [ swedish ] = "~Inga" ;
+ Text [ dutch ] = "~Geen" ;
+ Text [ spanish ] = "~Sin" ;
+ Text [ english_us ] = "~None" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ÎÞ(~N)";
+ Text[ russian ] = "~Áåç";
+ Text[ polish ] = "Brak";
+ Text[ japanese ] = "‚È‚µ(~N)";
+ Text[ chinese_traditional ] = "µL(~N)";
+ Text[ arabic ] = "ÈÏæä";
+ Text[ greek ] = "~×ùñßò";
+ Text[ korean ] = "¾øÀ½(~N)";
+ Text[ turkish ] = "~Yok";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_ONLY
+ {
+ Pos = MAP_APPFONT ( 180 , 27 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "~Nur Notizen" ;
+ Text [ ENGLISH ] = "~Notes only" ;
+ Text [ norwegian ] = "~Notes only" ;
+ Text [ italian ] = "~Solo note" ;
+ Text [ portuguese_brazilian ] = "~Observações apenas" ;
+ Text [ portuguese ] = "~Só anotações" ;
+ Text [ finnish ] = "~Vain huomautukset" ;
+ Text [ danish ] = "Kun noter" ;
+ Text [ french ] = "~Notes uniquement" ;
+ Text [ swedish ] = "~Endast anteckningar" ;
+ Text [ dutch ] = "A~lleen aantekeningen" ;
+ Text [ spanish ] = "Solo ~notas" ;
+ Text [ english_us ] = "Notes ~only" ;
+ Text[ chinese_simplified ] = "Ö»ÊDZ¸×¢(~O)";
+ Text[ russian ] = "Òîëüêî ïðèìå÷àíèÿ";
+ Text[ polish ] = "Tylko notatki";
+ Text[ japanese ] = "ÒÓ’ ‚Ì‚Ý(~O)";
+ Text[ chinese_traditional ] = "¶È¬O³Æª`(~O)";
+ Text[ arabic ] = "ãáÇÍÙÇÊ ÝÞØ";
+ Text[ greek ] = "Ìüíï óçìåéþóåéò";
+ Text[ korean ] = "¸Þ¸ð¸¸(~O)";
+ Text[ turkish ] = "~Yalnýzca not";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_END
+ {
+ Pos = MAP_APPFONT ( 180 , 40 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "Dokument~ende" ;
+ Text [ ENGLISH ] = "End of ~document" ;
+ Text [ norwegian ] = "End of ~document" ;
+ Text [ italian ] = "Fine ~documento" ;
+ Text [ portuguese_brazilian ] = "Final do ~documento" ;
+ Text [ portuguese ] = "Fim de ~documento" ;
+ Text [ finnish ] = "~Asiakirjan loppu" ;
+ Text [ danish ] = "Dokumentets slutn." ;
+ Text [ french ] = "Fin du ~document" ;
+ Text [ swedish ] = "~Dokumentslut" ;
+ Text [ dutch ] = "~Documenteinde" ;
+ Text [ spanish ] = "~Fin del documento" ;
+ Text [ english_us ] = "End of docu~ment" ;
+ Text[ chinese_simplified ] = "ÎĵµÎ²¶Ë(~M)";
+ Text[ russian ] = "Â êîíöå äîêóìåíòà";
+ Text[ polish ] = "Koniec dokumentu";
+ Text[ japanese ] = "ÄÞ·­ÒÝÄ––(~M)";
+ Text[ chinese_traditional ] = "¤å¥ó§ÀºÝ(~M)";
+ Text[ arabic ] = "äåÇíÉ ÇáãÓÊäÏ";
+ Text[ greek ] = "ÔÝëïò êåéìÝíïõ";
+ Text[ korean ] = "¹®¼­ÀÇ ³¡(~M)";
+ Text[ turkish ] = "Belge ~sonu";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_PAGEEND
+ {
+ Pos = MAP_APPFONT ( 180 , 53 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "~Seitenende" ;
+ Text [ ENGLISH ] = "End of ~page" ;
+ Text [ norwegian ] = "End of ~page" ;
+ Text [ italian ] = "Fine ~pagina" ;
+ Text [ portuguese_brazilian ] = "Final de ~página" ;
+ Text [ portuguese ] = "Fim de ~página" ;
+ Text [ finnish ] = "~Sivun loppu" ;
+ Text [ danish ] = "Sidens slutning" ;
+ Text [ french ] = "Fin de la ~page" ;
+ Text [ swedish ] = "~Sidslut" ;
+ Text [ dutch ] = "Pag~ina-einde" ;
+ Text [ spanish ] = "Fi~n de página" ;
+ Text [ english_us ] = "~End of page" ;
+ Text[ chinese_simplified ] = "ҳβ(~E)";
+ Text[ russian ] = "Â êîíöå ñòðàíèöû";
+ Text[ polish ] = "Konie~c strony";
+ Text[ japanese ] = "Íß°¼Þ––(~E)";
+ Text[ chinese_traditional ] = "­¶§À(~E)";
+ Text[ arabic ] = "äåÇíÉ ÇáÕÝÍÉ";
+ Text[ greek ] = "ÔÝëïò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁöÀÇ ³¡(~E)";
+ Text[ turkish ] = "~Sayfa sonu";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GRP_3
+ {
+ Pos = MAP_APPFONT ( 174 , 3 ) ;
+ Size = MAP_APPFONT ( 80 , /*92*/66 ) ;
+ Text = "Notizen" ;
+ Text [ ENGLISH ] = "Notes" ;
+ Text [ norwegian ] = "Notes" ;
+ Text [ italian ] = "Note" ;
+ Text [ portuguese_brazilian ] = "Notas" ;
+ Text [ portuguese ] = "Anotações" ;
+ Text [ finnish ] = "Huomautukset" ;
+ Text [ danish ] = "Noter" ;
+ Text [ french ] = "Notes" ;
+ Text [ swedish ] = "Anteckningar" ;
+ Text [ dutch ] = "Aantekeningen" ;
+ Text [ spanish ] = "Notas" ;
+ Text [ english_us ] = "Notes" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "±¸×¢";
+ Text[ russian ] = "Ïðèìå÷àíèÿ";
+ Text[ polish ] = "Notatki";
+ Text[ japanese ] = "ÒÓ’ ";
+ Text[ chinese_traditional ] = "³Æª`";
+ Text[ arabic ] = "ãáÇÍÙÇÊ";
+ Text[ greek ] = "Óçìåéþóåéò";
+ Text[ korean ] = "¸Þ¸ð";
+ Text[ turkish ] = "Not";
+ Text[ language_user1 ] = " ";
+ };
+
+ GroupBox GRP_5
+ {
+ Pos = MAP_APPFONT ( 90 , 70 ) ;
+ Size = MAP_APPFONT ( 164 , 25 ) ;
+ Text = "Ausgabe" ;
+ Text [ ENGLISH ] = "Destination" ;
+ Text [ english_us ] = "Output" ;
+ Text [ italian ] = "Destinazione" ;
+ Text [ spanish ] = "Destino" ;
+ Text [ french ] = "Sortie" ;
+ Text [ dutch ] = "Uitgave" ;
+ Text [ swedish ] = "Utdata" ;
+ Text [ danish ] = "Output" ;
+ Text [ portuguese_brazilian ] = "Ausgabe" ;
+ Text [ portuguese ] = "Destino" ;
+ Text[ chinese_simplified ] = "Êä³ö";
+ Text[ russian ] = "Âûâîä";
+ Text[ polish ] = "Wyjœcie";
+ Text[ japanese ] = "±³ÄÌ߯Ä";
+ Text[ chinese_traditional ] = "¿é¥X";
+ Text[ arabic ] = "ÇáÅÎÑÇÌ";
+ Text[ greek ] = "ÅîáãùãÞ";
+ Text[ korean ] = "Ãâ·Â";
+ Text[ turkish ] = "Çýktý";
+ };
+ CheckBox CB_SINGLEJOBS
+ {
+ Pos = MAP_APPFONT ( 96 , 81 ) ;
+ Size = MAP_APPFONT ( 152 , 10 ) ;
+ Text = "Einzelne Druck~jobs erzeugen" ;
+ Text [ ENGLISH ] = "Si~ngle print jobs" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Create ~single print jobs" ;
+ Text [ portuguese_brazilian ] = "Einzelne Druckjobs erzeugen" ;
+ Text [ swedish ] = "Skapa enstaka utskrifts~jobb" ;
+ Text [ danish ] = "Opret enkelte printerjob" ;
+ Text [ italian ] = "Cr~ea singoli ordini di stampa" ;
+ Text [ spanish ] = "Crear ~tareas individuales de impresión" ;
+ Text [ french ] = "~Travaux d'impression individuels" ;
+ Text [ dutch ] = "Af~zonderlijke afdrukjobs" ;
+ Text [ portuguese ] = "C~riar tarefas de impressão individuais" ;
+ Text[ chinese_simplified ] = "½¨Á¢µ¥¸ö´òÓ¡ÈÎÎñ(~S)";
+ Text[ russian ] = "Ñîçäàòü îòäåëüíûå çàäàíèÿ ïå÷àòè";
+ Text[ polish ] = "Utwórz pojedyncze zadania wydruku";
+ Text[ japanese ] = "1‚‚¸‚ˆóü(~S)";
+ Text[ chinese_traditional ] = "¥Í¦¨³æ­Ó¦C¦L¥ô°È(~S)";
+ Text[ arabic ] = "ÅäÔÇÁ æÙÇÆÝ ØÈÇÚÉ ÝÑÏíÉ";
+ Text[ greek ] = "Äçìéïõñãßá ìåìïíùìÝíùí åñãáóéþí åêôýðùóçò";
+ Text[ korean ] = "´ÜÀÏ Àμâ ÀÛ¾÷¸¸µé±â(~S)";
+ Text[ turkish ] = "Bi~reysel yazdýrma iþleri oluþtur";
+ };
+
+ CheckBox CB_PAPERFROMSETUP
+ {
+ Pos = MAP_APPFONT ( 138 , 112 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "aus ~Druckereinstellung" ;
+ Text [ ENGLISH ] = "from printer ~setup" ;
+ Text [ norwegian ] = "from printer ~setup" ;
+ Text [ italian ] = "Come da imposta~zione stampante" ;
+ Text [ portuguese_brazilian ] = "da impressora ~setup" ;
+ Text [ portuguese ] = "Da configuração da ~impressora" ;
+ Text [ finnish ] = "kirjoittimen ~asetuksista" ;
+ Text [ danish ] = "fra udskriftsindstillingerne" ;
+ Text [ french ] = "d'après ~les paramètres de l'imprimante" ;
+ Text [ swedish ] = "från ~skrivarinställning" ;
+ Text [ dutch ] = "~uit printerinstelling" ;
+ Text [ spanish ] = "De la c~onfiguración de la impresora" ;
+ Text [ english_us ] = "From printer ~settings" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "²ÉÓôòÓ¡»úµÄÉ趨(~S)";
+ Text[ russian ] = "èç íàñòðîéêè ïðèíòåðà";
+ Text[ polish ] = "Z ustaw~ienia drukarki";
+ Text[ japanese ] = "ÌßØÝÀ‚ÌÝ’è‚©‚ç(~S)";
+ Text[ chinese_traditional ] = "±Ä¥Î¦Lªí¾÷ªº³]©w(~S)";
+ Text[ arabic ] = "ãä ÅÚÏÇÏÇÊ ÇáØÇÈÚÉ";
+ Text[ greek ] = "áðü ôéò ñõèìßóåéò ôïõ åêôõðùôÞ";
+ Text[ korean ] = "ÇÁ¸°ÅÍ ¼³Á¤À¸·Î ºÎÅÍ(~S)";
+ Text[ turkish ] = "Yazýcý ayarlarýný kullan";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GRP_4
+ {
+ Pos = MAP_APPFONT ( 132 , 101 ) ;
+ Size = MAP_APPFONT ( 122 , 29 ) ;
+ Text = "Papierschacht" ;
+ Text [ English ] = "Paper tray" ;
+ Text [ norwegian ] = "Paper tray" ;
+ Text [ italian ] = "Cassetto" ;
+ Text [ portuguese_brazilian ] = "Bandeja para o papel" ;
+ Text [ portuguese ] = "Tabuleiro de alimentação" ;
+ Text [ finnish ] = "Paperilokero" ;
+ Text [ danish ] = "Papirbakke" ;
+ Text [ french ] = "Bac d'alimentation" ;
+ Text [ swedish ] = "Pappersmagasin" ;
+ Text [ dutch ] = "Papierinvoer" ;
+ Text [ spanish ] = "Origen del papel" ;
+ Text [ english_us ] = "Paper tray" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "Ö½ÕÅÀ´Ô´";
+ Text[ russian ] = "Ïîäà÷à áóìàãè";
+ Text[ polish ] = "Zasobnik papieru";
+ Text[ japanese ] = "‹‹Ž†•û–@";
+ Text[ chinese_traditional ] = "¯È±i¨Ó·½";
+ Text[ arabic ] = "ÏÑÌ ÇáæÑÞ";
+ Text[ greek ] = "Äßóêïò ÷áñôéïý";
+ Text[ korean ] = "¿ëÁö °ø±Þ";
+ Text[ turkish ] = "Kaðýt kaynaðý";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FAX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 112 ) ;
+ Size = MAP_APPFONT ( 108 , 70 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ Group = TRUE ;
+ };
+ GroupBox GB_FAX
+ {
+ Pos = MAP_APPFONT ( 6 , 101 ) ;
+ Size = MAP_APPFONT ( 120 , 29 ) ;
+ Text = "Fax" ;
+ Text[English] = "Fax" ;
+ Group = TRUE ;
+ Text[ english_us ] = "Fax";
+ Text[ portuguese ] = "Fax";
+ Text[ russian ] = "Ôàêñ";
+ Text[ greek ] = "Fax";
+ Text[ dutch ] = "Fax";
+ Text[ french ] = "Fax";
+ Text[ spanish ] = "Fax";
+ Text[ italian ] = "Fax";
+ Text[ danish ] = "Fax";
+ Text[ swedish ] = "Fax";
+ Text[ polish ] = "Faks";
+ Text[ portuguese_brazilian ] = "Fax";
+ Text[ japanese ] = "Fax";
+ Text[ korean ] = "Æѽº";
+ Text[ chinese_simplified ] = "´«Õæ";
+ Text[ chinese_traditional ] = "¶Ç¯u";
+ Text[ arabic ] = "ÇáÝÇßÓ";
+ Text[ turkish ] = "Faks";
+ Text[ language_user1 ] = " ";
+ };
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabPage TP_STD_FONT
+{
+ HelpID = HID_STD_FONT ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_STDCHR
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 159 , 113 ) ;
+ Text = "Grundschriften" ;
+ Text [ English ] = "Standard fonts" ;
+ Text [ norwegian ] = "Standard fonts" ;
+ Text [ italian ] = "Caratteri standard" ;
+ Text [ portuguese_brazilian ] = "Fontes padrao" ;
+ Text [ portuguese ] = "Tipos de letra padrão" ;
+ Text [ finnish ] = "Vakiofontit" ;
+ Text [ danish ] = "Standardskrifttyper" ;
+ Text [ french ] = "Polices de base" ;
+ Text [ swedish ] = "Standardteckensnitt" ;
+ Text [ dutch ] = "Standaardlettertypen" ;
+ Text [ spanish ] = "Fuentes estándar" ;
+ Text [ english_us ] = "Default fonts" ;
+ Text[ chinese_simplified ] = "±ê×¼×ÖÌå";
+ Text[ russian ] = "Ñòàíäàðòíûå øðèôòû";
+ Text[ polish ] = "Czcionki podstawowe";
+ Text[ japanese ] = "Šù’è‚ÌÌ«ÝÄ";
+ Text[ chinese_traditional ] = "¼Ð·Ç¦r«¬";
+ Text[ arabic ] = "ÇáÎØæØ ÇáÃÓÇÓíÉ";
+ Text[ greek ] = "ÂáóéêÝò ãñáììáôïóåéñÝò";
+ Text[ korean ] = "±âº» ±Û²Ã";
+ Text[ turkish ] = "Standart yazýtipi";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_STANDARD
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "~Standard" ;
+ Text [ English ] = "~Standard" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Standard" ;
+ Text [ portuguese_brazilian ] = "~Standard" ;
+ Text [ swedish ] = "~Standard" ;
+ Text [ danish ] = "Standard" ;
+ Text [ italian ] = "~Standard" ;
+ Text [ spanish ] = "~Predeterminado" ;
+ Text [ french ] = "~Standard" ;
+ Text [ dutch ] = "~Standaard" ;
+ Text [ portuguese ] = "~Padrão" ;
+ Text[ chinese_simplified ] = "±ê×¼(~S)";
+ Text[ russian ] = "Ñòàíäàðò";
+ Text[ polish ] = "Domyœlnie";
+ Text[ japanese ] = "•W€(~S)";
+ Text[ chinese_traditional ] = "¼Ð·Ç(~S)";
+ Text[ arabic ] = "ÞíÇÓí";
+ Text[ greek ] = "ÐñïåðéëïãÞ";
+ Text[ korean ] = "Ç¥ÁØ(~S)";
+ Text[ turkish ] = "~Standart";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_TITLE
+ {
+ Pos = MAP_APPFONT ( 12 , 32 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "~Überschrift" ;
+ Text [ English ] = "~Title" ;
+ Text [ norwegian ] = "~Tittel" ;
+ Text [ italian ] = "~Intestazione" ;
+ Text [ portuguese_brazilian ] = "~Título" ;
+ Text [ portuguese ] = "~Título" ;
+ Text [ finnish ] = "~Arvo" ;
+ Text [ danish ] = "Overskrift" ;
+ Text [ french ] = "~Titre" ;
+ Text [ swedish ] = "~Överskrift" ;
+ Text [ dutch ] = "~Kop" ;
+ Text [ spanish ] = "~Encabezado" ;
+ Text [ english_us ] = "~Heading" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "±êÌâ(~H)";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Nag³ówek";
+ Text[ japanese ] = "Œ©o‚µ(~H)";
+ Text[ chinese_traditional ] = "¼ÐÃD(~H)";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Åðéêåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û(~H)";
+ Text[ turkish ] = "~Baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_LIST
+ {
+ Pos = MAP_APPFONT ( 12 , 49 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "~Liste" ;
+ Text [ English ] = "~List" ;
+ Text [ norwegian ] = "~List" ;
+ Text [ italian ] = "~Elenco" ;
+ Text [ portuguese_brazilian ] = "~Lista" ;
+ Text [ portuguese ] = "~Lista" ;
+ Text [ finnish ] = "~Luettelo" ;
+ Text [ danish ] = "Liste" ;
+ Text [ french ] = "L~iste" ;
+ Text [ swedish ] = "~Lista" ;
+ Text [ dutch ] = "~Lijst" ;
+ Text [ spanish ] = "~Lista" ;
+ Text [ english_us ] = "~List" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Áе¥(~L)";
+ Text[ russian ] = "Ñïèñîê";
+ Text[ polish ] = "Lista";
+ Text[ japanese ] = "ؽÄ(~L)";
+ Text[ chinese_traditional ] = "²M³æ(~L)";
+ Text[ arabic ] = "ÇáÞÇÆãÉ";
+ Text[ greek ] = "Ëßóôá";
+ Text[ korean ] = "¸®½ºÆ®(~L)";
+ Text[ turkish ] = "~Liste";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_LABEL
+ {
+ Pos = MAP_APPFONT ( 12 , 66 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "~Beschriftung" ;
+ Text [ English ] = "Caption" ;
+ Text [ norwegian ] = "Bildetekst" ;
+ Text [ italian ] = "Dicitura" ;
+ Text [ portuguese_brazilian ] = "Captura" ;
+ Text [ portuguese ] = "~Legenda" ;
+ Text [ finnish ] = "Selite" ;
+ Text [ danish ] = "Billedtekst" ;
+ Text [ french ] = "~Légende" ;
+ Text [ swedish ] = "~Bildtext" ;
+ Text [ dutch ] = "~Bijschrift" ;
+ Text [ spanish ] = "E~tiqueta" ;
+ Text [ english_us ] = "C~aption" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "±êÇ©(~A)";
+ Text[ russian ] = "Íàçâàíèå";
+ Text[ polish ] = "Opis";
+ Text[ japanese ] = "×ÍÞÙ(~A)";
+ Text[ chinese_traditional ] = "¼ÐÅÒ(~A)";
+ Text[ arabic ] = "ÊÓãíÉ ÊæÖíÍíÉ";
+ Text[ greek ] = "ÅðéãñáöÞ";
+ Text[ korean ] = "ĸ¼Ç(~A)";
+ Text[ turkish ] = "~Resim yazýsý";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_IDX
+ {
+ Pos = MAP_APPFONT ( 12 , 83 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "~Verzeichnis" ;
+ Text [ English ] = "~Index" ;
+ Text [ norwegian ] = "~Index" ;
+ Text [ italian ] = "~Indice" ;
+ Text [ portuguese_brazilian ] = "~Índice" ;
+ Text [ portuguese ] = "~Índice" ;
+ Text [ finnish ] = "~Hakemisto" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ french ] = "~Index" ;
+ Text [ swedish ] = "~Katalog" ;
+ Text [ dutch ] = "~Index" ;
+ Text [ spanish ] = "Í~ndice" ;
+ Text [ english_us ] = "~Index" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ŀ¼(~I)";
+ Text[ russian ] = "Óêàçàòåëü";
+ Text[ polish ] = "Indeks";
+ Text[ japanese ] = "–ÚŽŸ‚Æõˆø(~I)";
+ Text[ chinese_traditional ] = "¥Ø¿ý(~I)";
+ Text[ arabic ] = "ÇáÝåÑÓ";
+ Text[ greek ] = "ÅõñåôÞñéï";
+ Text[ korean ] = "»öÀÎ(~I)";
+ Text[ turkish ] = "~Dizin";
+ Text[ language_user1 ] = " ";
+ };
+ ComboBox LB_STANDARD
+ {
+ Pos = MAP_APPFONT ( 63 , 14 ) ;
+ Size = MAP_APPFONT ( 96 , 73 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ ComboBox LB_TITLE
+ {
+ Pos = MAP_APPFONT ( 63 , 31 ) ;
+ Size = MAP_APPFONT ( 96 , 73 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ ComboBox LB_LIST
+ {
+ Pos = MAP_APPFONT ( 63 , 48 ) ;
+ Size = MAP_APPFONT ( 96 , 73 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ ComboBox LB_LABEL
+ {
+ Pos = MAP_APPFONT ( 63 , 65 ) ;
+ Size = MAP_APPFONT ( 96 , 73 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ ComboBox LB_IDX
+ {
+ Pos = MAP_APPFONT ( 63 , 83 ) ;
+ Size = MAP_APPFONT ( 96 , 73 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ CheckBox CB_DOCONLY
+ {
+ Pos = MAP_APPFONT ( 12 , 100 ) ;
+ Size = MAP_APPFONT ( 147 , 10 ) ;
+ Text = "~Nur für das aktuelle Dokument" ;
+ Text [ English ] = "Actual document only" ;
+ Text [ dutch ] = "~Alleen in het actuele document" ;
+ Text [ english_us ] = "C~urrent document only" ;
+ Text [ italian ] = "Solo per il documento corrente" ;
+ Text [ spanish ] = "Solo para el documento ~actual" ;
+ Text [ french ] = "~Uniquement pour le document actif" ;
+ Text [ swedish ] = "Bara för det ~aktuella dokumentet" ;
+ Text [ danish ] = "Kun det aktuelle dokument" ;
+ Text [ portuguese ] = "~Apenas para documento actual" ;
+ Text [ portuguese_brazilian ] = "~Nur für das aktuelle Dokument" ;
+ Text[ chinese_simplified ] = "Ö»ÓÃÓÚµ±Ç°µÄÎĵµ(~O)";
+ Text[ russian ] = "Òîëüêî äëÿ òåêóùåãî äîêóìåíòà";
+ Text[ polish ] = "Tylko dla aktualnego dokumentu";
+ Text[ japanese ] = "Œ»Ýì‹Æ’†‚ÌÄÞ·­ÒÝÄ‚Ì‚Ý(~O)";
+ Text[ chinese_traditional ] = "¶ÈÓì¥Î©ó·í«eªº¤å¥ó(~O)";
+ Text[ arabic ] = "ááãÓÊäÏ ÇáÍÇáí ÝÞØ";
+ Text[ greek ] = "Ìüíï ãéá ôï ôñÝ÷ùí Ýããñáöï";
+ Text[ korean ] = "ÇöÀç ¹®¼­ ¸¸(~U)";
+ Text[ turkish ] = "Yalnýzca açýk belge için";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_STANDARD
+ {
+ Pos = MAP_APPFONT ( 171 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "S~tandard" ;
+ Text [ English ] = "S~tandard" ;
+ Text [ english_us ] = "~Default" ;
+ Text [ italian ] = "~Standard" ;
+ Text [ spanish ] = "~Predeterminado" ;
+ Text [ french ] = "P~ar défaut" ;
+ Text [ dutch ] = "S~tandaard" ;
+ Text [ swedish ] = "St~andard" ;
+ Text [ danish ] = "Standard" ;
+ Text [ portuguese_brazilian ] = "S~tandard" ;
+ Text [ portuguese ] = "~Padrão" ;
+ Text[ chinese_simplified ] = "±ê×¼(~D)";
+ Text[ russian ] = "Ñòàíäàðò";
+ Text[ polish ] = "Standardowy";
+ Text[ japanese ] = "•W€(~D)";
+ Text[ chinese_traditional ] = "¼Ð·Ç(~D)";
+ Text[ arabic ] = "ÇÝÊÑÇÖí";
+ Text[ greek ] = "ÐñïåðéëïãÞ";
+ Text[ korean ] = "±âº»°ª(~D)";
+ Text[ turkish ] = "S~tandart";
+ Text[ language_user1 ] = " ";
+ };
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabPage TP_OPTTABLE_PAGE
+{
+ HelpID = HID_OPTTABLE_PAGE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_MOVE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 120 , 39 ) ;
+ Text = "Verschieben" ;
+ Text [ English ] = "Move" ;
+ Text [ english_us ] = "Shift" ;
+ Text [ portuguese_brazilian ] = "Verschieben" ;
+ Text [ swedish ] = "Flytta" ;
+ Text [ danish ] = "Flyt" ;
+ Text [ italian ] = "Sposta" ;
+ Text [ spanish ] = "Desplazar" ;
+ Text [ french ] = "Décaler" ;
+ Text [ dutch ] = "Verplaatsen" ;
+ Text [ portuguese ] = "Mover" ;
+ Text[ chinese_simplified ] = "Òƶ¯";
+ Text[ russian ] = "Ïåðåìåñòèòü";
+ Text[ polish ] = "Przesuñ";
+ Text[ japanese ] = "ˆÚ“®";
+ Text[ chinese_traditional ] = "²¾°Ê";
+ Text[ arabic ] = "ÅÒÇÍÉ";
+ Text[ greek ] = "Ìåôáêßíçóç";
+ Text[ korean ] = "¹Ð±â";
+ Text[ turkish ] = "Taþý";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_ROWMOVE
+ {
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "~Zeile" ;
+ Text [ English ] = "~Row" ;
+ Text [ english_us ] = "~Row" ;
+ Text [ portuguese_brazilian ] = "~Zeile" ;
+ Text [ swedish ] = "~Rad" ;
+ Text [ danish ] = "Række" ;
+ Text [ italian ] = "Riga" ;
+ Text [ spanish ] = "~Fila" ;
+ Text [ french ] = "~Ligne" ;
+ Text [ dutch ] = "~Rij" ;
+ Text [ portuguese ] = "~Linha" ;
+ Text[ chinese_simplified ] = "ÐÐ(~R)";
+ Text[ russian ] = "Ñòðîêà";
+ Text[ polish ] = "Wiersz";
+ Text[ japanese ] = "s(~R)";
+ Text[ chinese_traditional ] = "¦æ(~R)";
+ Text[ arabic ] = "ÕÝ";
+ Text[ greek ] = "ÃñáììÞ";
+ Text[ korean ] = "Çà(~R)";
+ Text[ turkish ] = "~Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_ROWMOVE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 11 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 25 ;
+ Maximum = 999 ;
+ First = 25 ;
+ Last = 2000 ;
+ };
+ FixedText FT_COLMOVE
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "~Spalte" ;
+ Text [ English ] = "~Column" ;
+ Text [ english_us ] = "~Column" ;
+ Text [ portuguese_brazilian ] = "~Spalte" ;
+ Text [ swedish ] = "~Kolumn" ;
+ Text [ danish ] = "Kolonne" ;
+ Text [ italian ] = "Colonna" ;
+ Text [ spanish ] = "~Columna" ;
+ Text [ french ] = "C~olonne" ;
+ Text [ dutch ] = "~Kolom" ;
+ Text [ portuguese ] = "~Coluna" ;
+ Text[ chinese_simplified ] = "ÁÐ(~C)";
+ Text[ russian ] = "Êîëîíêà";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ(~C)";
+ Text[ chinese_traditional ] = "Äæ(~C)";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­(~C)";
+ Text[ turkish ] = "S~ütun";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_COLMOVE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 26 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 25 ;
+ Maximum = 999 ;
+ First = 25 ;
+ Last = 2000 ;
+ };
+ GroupBox GB_INSERT
+ {
+ Pos = MAP_APPFONT ( 132 , 3 ) ;
+ Size = MAP_APPFONT ( 120 , 39 ) ;
+ Text = "Einfügen" ;
+ Text [ English ] = "Insert" ;
+ Text [ english_us ] = "Insert" ;
+ Text [ portuguese_brazilian ] = "Einfügen" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ french ] = "Insérer" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_ROWINSERT
+ {
+ Pos = MAP_APPFONT ( 138 , 12 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "Z~eile" ;
+ Text [ English ] = "Ro~w" ;
+ Text [ english_us ] = "Ro~w" ;
+ Text [ portuguese_brazilian ] = "Z~eile" ;
+ Text [ swedish ] = "Ra~d" ;
+ Text [ danish ] = "Række" ;
+ Text [ italian ] = "Riga" ;
+ Text [ spanish ] = "F~ila" ;
+ Text [ french ] = "~Ligne" ;
+ Text [ dutch ] = "R~ij" ;
+ Text [ portuguese ] = "~Linha" ;
+ Text[ chinese_simplified ] = "ÐÐ(~W)";
+ Text[ russian ] = "Ñòðîêà";
+ Text[ polish ] = "Wiersz";
+ Text[ japanese ] = "s(~Wj";
+ Text[ chinese_traditional ] = "¦æ(~W)";
+ Text[ arabic ] = "ÕÝ";
+ Text[ greek ] = "ÃñáììÞ";
+ Text[ korean ] = "¿­(~W)";
+ Text[ turkish ] = "S~atýr";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_ROWINSERT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 192 , 11 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 25 ;
+ Maximum = 999 ;
+ First = 25 ;
+ Last = 2000 ;
+ };
+ FixedText FT_COLINSERT
+ {
+ Pos = MAP_APPFONT ( 138 , 27 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "S~palte" ;
+ Text [ English ] = "C~olumn" ;
+ Text [ portuguese ] = "~Coluna" ;
+ Text [ english_us ] = "Colu~mn" ;
+ Text [ portuguese_brazilian ] = "S~palte" ;
+ Text [ swedish ] = "K~olumn" ;
+ Text [ danish ] = "Kolonne" ;
+ Text [ italian ] = "Colonna" ;
+ Text [ spanish ] = "C~olumna" ;
+ Text [ french ] = "C~olonne" ;
+ Text [ dutch ] = "K~olom" ;
+ Text[ chinese_simplified ] = "ÁÐ(~M)";
+ Text[ russian ] = "Êîëîíêà";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ(~M)";
+ Text[ chinese_traditional ] = "Äæ(~M)";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­(~M)";
+ Text[ turkish ] = "~Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_COLINSERT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 192 , 26 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 25 ;
+ Maximum = 999 ;
+ First = 25 ;
+ Last = 2000 ;
+ };
+ GroupBox GB_HANDLING
+ {
+ Pos = MAP_APPFONT ( 6 , 45 ) ;
+ Size = MAP_APPFONT ( 246 , 74 ) ;
+ Text = "Verhalten" ;
+ Text [ English ] = "Behaviour" ;
+ Text [ english_us ] = "Behavior" ;
+ Text [ portuguese_brazilian ] = "Verhalten" ;
+ Text [ swedish ] = "Effekt" ;
+ Text [ danish ] = "Effekt" ;
+ Text [ italian ] = "Effetto" ;
+ Text [ spanish ] = "Comportamiento" ;
+ Text [ french ] = "Fonctionnement" ;
+ Text [ dutch ] = "Effect" ;
+ Text [ portuguese ] = "Efeito" ;
+ Text[ chinese_simplified ] = "·½Ê½";
+ Text[ russian ] = "Ñâîéñòâà";
+ Text[ polish ] = "Efekt";
+ Text[ japanese ] = "•ÏX‚Ŷ‚¶‚é‰e‹¿‚ð’²®";
+ Text[ chinese_traditional ] = "¤è¦¡";
+ Text[ arabic ] = "ÇáÊÃËíÑÇÊ";
+ Text[ greek ] = "ÓõìðåñéöïñÜ";
+ Text[ korean ] = "È¿°ú";
+ Text[ turkish ] = "Etki";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FIX
+ {
+ Pos = MAP_APPFONT ( 12 , 56 ) ;
+ Size = MAP_APPFONT ( 78 , 10 ) ;
+ Text = "~Fix" ;
+ Text [ English ] = "~Fix" ;
+ Text [ english_us ] = "~Fixed" ;
+ Text [ portuguese_brazilian ] = "~Fix" ;
+ Text [ swedish ] = "~Fast" ;
+ Text [ danish ] = "Fast" ;
+ Text [ italian ] = "~Fisso" ;
+ Text [ spanish ] = "Fi~jo" ;
+ Text [ french ] = "~Fixe" ;
+ Text [ dutch ] = "Va~st" ;
+ Text [ portuguese ] = "~Fixo" ;
+ Text[ chinese_simplified ] = "¹Ì¶¨(~F)";
+ Text[ russian ] = "Ôèêñ.";
+ Text[ polish ] = "Sta³y";
+ Text[ japanese ] = "΁Տ(~F)";
+ Text[ chinese_traditional ] = "©T©w(~F)";
+ Text[ arabic ] = "ËÇÈÊ";
+ Text[ greek ] = "ÓôáèåñÜ";
+ Text[ korean ] = "°íÁ¤µÊ(~F)";
+ Text[ turkish ] = "Sab~it";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_FIX
+ {
+ Pos = MAP_APPFONT ( 93 , 56 ) ;
+ Size = MAP_APPFONT ( 155 , 19 ) ;
+ Text = "Veränderungen einer Zeile bzw. Spalte wirken sich nur auf den direkten Nachbarn aus" ;
+ Text [ English ] = "Changes of a row and column respectively will affect the direct neighbor only" ;
+ WordBreak = TRUE ;
+ Text [ english_us ] = "Changes to a row or column affect the adjacent area only" ;
+ Text [ portuguese_brazilian ] = "Veränderungen einer Zeile bzw. Spalte wirken sich nur auf den direkten Nachbarn aus" ;
+ Text [ swedish ] = "Ändringar i en rad resp. kolumn påverkar endast den omedelbara omgivningen" ;
+ Text [ danish ] = "Række- eller kolonneændringer påvirker kun den direkte nabo" ;
+ Text [ italian ] = "Le modifiche di una riga si ripercuotono solo sulle aree adiacenti" ;
+ Text [ spanish ] = "Las modificaciones en una fila o columna afectan solo a la fila o columna contigua" ;
+ Text [ french ] = "Modifications de ligne/colonne n'affecteront que la plage adjacente" ;
+ Text [ dutch ] = "Veranderingen in een rij of kolom beïnvloeden alleen de aangrenzende rij-/kolom" ;
+ Text [ portuguese ] = "As modificações numa linha ou coluna afectam apenas a área adjacente" ;
+ Text[ chinese_simplified ] = "ÐÐÁеĸü¸ÄÖ»»áÓ°Ïìµ½Ö±½ÓÁ¬½ÓµÄÇøÓò¡£";
+ Text[ russian ] = "Èçìåíåíèÿ ñòðîêè èëè êîëîíêè ïîâëèÿþò òîëüêî íà íåïîñðåäñòâåííûõ ñîñåäåé";
+ Text[ polish ] = "Zmiany wiersza lub kolumny wywieraj¹ wp³yw tylko na obszary przyleg³e";
+ Text[ japanese ] = "s‚ ‚é‚¢‚Í—ñ‚Ì•ÏX‚ͤ’¼Ú—×Ú‚µ‚Ä‚¢‚é”͈͂ɂ̂Ýì—p";
+ Text[ chinese_traditional ] = "Äæ¦CªºÅܧó¶È·|¼vÅT¨ìª½±µ³sµ²ªº°Ï°ì¡C";
+ Text[ arabic ] = "ÊÄËÑ ÇáÊÛííÑÇÊ ÇáÍÇÏËÉ Ýí ÕÝ Ãæ ÚãæÏ Úáì ÇáãäØÞÉ ÇáãÌÇæÑÉ ÝÞØ";
+ Text[ greek ] = "ÁëëáãÝò ìéáò óôÞëçò Þ ãñáììÞò åðéñåÜæïõí ìüíï ôçí Üìåóá ãåéôïíéêÞ ðåñéï÷Þ";
+ Text[ korean ] = "¿­ ¶Ç´Â ÇàÀÇ º¯°æÀº ÀÎÁ¢ÇÑ ¿µ¿ª¿¡¸¸ ¿µÇâÀ» ÁÝ´Ï´Ù.";
+ Text[ turkish ] = "Satýr ya da sütunlar üzerinde yapýlan deðiþiklikler yalnýzca bitiþik birimleri etkiler";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FIXPROP
+ {
+ Pos = MAP_APPFONT ( 12 , 77 ) ;
+ Size = MAP_APPFONT ( 78 , 10 ) ;
+ Text = "F~ix, proportional" ;
+ Text [ English ] = "F~ix, proportional" ;
+ Text [ english_us ] = "Fi~xed, proportional" ;
+ Text [ portuguese_brazilian ] = "F~ix, proportional" ;
+ Text [ swedish ] = "Fast, ~proportionell" ;
+ Text [ danish ] = "Fast, proportional" ;
+ Text [ italian ] = "F~isso, proporzionale" ;
+ Text [ spanish ] = "Fijo, ~proporcional" ;
+ Text [ french ] = "F~ixe, proportionnel" ;
+ Text [ dutch ] = "V~ast, proportioneel" ;
+ Text [ portuguese ] = "F~ixo, proporcional" ;
+ Text[ chinese_simplified ] = "¹Ì¶¨³É±ÈÀý(~X)";
+ Text[ russian ] = "Ôèêñ., ïðîïîðöèîíàëüí.";
+ Text[ polish ] = "Sta³y, p~roporcjonalny";
+ Text[ japanese ] = "΁ՏAӊч(~X)";
+ Text[ chinese_traditional ] = "©T©w¦¨¤ñ¨Ò(~X)";
+ Text[ arabic ] = "ËÇÈÊ¡ ãÊäÇÓÈ";
+ Text[ greek ] = "ÓôáèåñÜ, áíáëïã~éêÜ";
+ Text[ korean ] = "°íÁ¤µÊ,ºñ·Ê(~X)";
+ Text[ turkish ] = "Sabi~t orantýlý";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_FIXPROP
+ {
+ Pos = MAP_APPFONT ( 93 , 77 ) ;
+ Size = MAP_APPFONT ( 155 , 19 ) ;
+ Text = "Veränderungen einer Zeile bzw. Spalte wirken sich auf die gesamte Tabelle aus" ;
+ Text [ English ] = "Changes of a row and column respectively will affect the whole table" ;
+ WordBreak = TRUE ;
+ Text [ english_us ] = "Changes to a row or column may affect the entire table" ;
+ Text [ portuguese_brazilian ] = "Veränderungen einer Zeile bzw. Spalte wirken sich auf die gesamte Tabelle aus" ;
+ Text [ swedish ] = "Ändringar i en rad resp. kolumn påverkar hela tabellen" ;
+ Text [ danish ] = "Række- eller kolonneændringer påvirker hele tabellen" ;
+ Text [ italian ] = "Le modifiche di una riga o colonna si ripercuotono sull'intera tabella" ;
+ Text [ spanish ] = "Las modificaciones en una fila o columna afectan a toda la tabla" ;
+ Text [ french ] = "Modifications de ligne/colonne affecteront la totalité du tableau " ;
+ Text [ dutch ] = "Veranderingen in een rij of kolom beïnvloeden de hele tabel" ;
+ Text [ portuguese ] = "As modificações numa linha ou coluna podem afectar a tabela inteira" ;
+ Text[ chinese_simplified ] = "ÐÐÁеĸü¸Ä»áÓ°Ïìµ½Õû¸ö±í¸ñ¡£";
+ Text[ russian ] = "Èçìåíåíèÿ ñòðîêè èëè êîëîíêè ïîâëèÿþò íà âñþ òàáëèöó";
+ Text[ polish ] = "Zmiany wiersza lub kolumny wywieraj¹ wp³yw na ca³¹ tabelê";
+ Text[ japanese ] = "s‚ ‚é‚¢‚Í—ñ‚Ì•ÏX‚ͤ•\\‘S‘Ì‚Éì—p";
+ Text[ chinese_traditional ] = "Äæ¦CªºÅܧó·|¼vÅT¨ì¾ã­Óªí®æ¡C";
+ Text[ arabic ] = "ÊÄËÑ ÇáÊÛííÑÇÊ ÇáÍÇÏËÉ Ýí ÕÝ Ãæ ÚãæÏ Úáì ÇáÌÏæá ÈÃËÑå";
+ Text[ greek ] = "ÁëëáãÝò ìéáò ãñáììÞò Þ óôÞëçò åðéñåÜæïõí ïëüêëçñï ôïí ðßíáêá";
+ Text[ korean ] = "¿­ ¶Ç´Â ÇàÀÇ º¯°æÀº Àüü Ç¥¿¡ ¿µÇâÀ» ÁÝ´Ï´Ù.";
+ Text[ turkish ] = "Satýr ya da sütunlar üzerinde yapýlan deðiþiklikler tablonun tümünü etkiler";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_VAR
+ {
+ Pos = MAP_APPFONT ( 12 , 98 ) ;
+ Size = MAP_APPFONT ( 78 , 10 ) ;
+ Text = "~Variabel" ;
+ Text [ English ] = "~Variable" ;
+ Text [ english_us ] = "~Variable" ;
+ Text [ portuguese_brazilian ] = "~Variabel" ;
+ Text [ swedish ] = "~Variabel" ;
+ Text [ danish ] = "Variabel" ;
+ Text [ italian ] = "~Variabile" ;
+ Text [ spanish ] = "~Variable" ;
+ Text [ french ] = "~Variable" ;
+ Text [ dutch ] = "~Variabel" ;
+ Text [ portuguese ] = "~Variável" ;
+ Text[ chinese_simplified ] = "¿É±ä(~V)";
+ Text[ russian ] = "Èçì.";
+ Text[ polish ] = "Zmie~nny";
+ Text[ japanese ] = "•Ï”(~V)";
+ Text[ chinese_traditional ] = "¥iÅÜ(~V)";
+ Text[ arabic ] = "ãÊÛíÑ";
+ Text[ greek ] = "ÌåôáâëçôÞ";
+ Text[ korean ] = "º¯¼ö(~V)";
+ Text[ turkish ] = "~Deðiþken";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_VAR
+ {
+ Pos = MAP_APPFONT ( 93 , 98 ) ;
+ Size = MAP_APPFONT ( 155 , 16 ) ;
+ Text = "Veränderungen einer Zeile bzw. Spalte wirken sich auf die Tabellengröße aus" ;
+ Text [ English ] = "Changes of a row and column respectively will affect the table size" ;
+ WordBreak = TRUE ;
+ Text [ english_us ] = "Changes to a row or column may affect the table size" ;
+ Text [ portuguese_brazilian ] = "Veränderungen einer Zeile bzw. Spalte wirken sich auf die Tabellengröße aus" ;
+ Text [ swedish ] = "Ändringar i en rad resp. kolumn påverkar tabellstorleken" ;
+ Text [ danish ] = "Række- eller kolonneændringer påvirker tabelstørrelsen" ;
+ Text [ italian ] = "Le modifiche di una riga o colonna si ripercuotono sulle dimensioni della tabella" ;
+ Text [ spanish ] = "Las modificaciones en una fila o columna afectan el tamaño de la tabla" ;
+ Text [ french ] = "Modifications de ligne/colonne affecteront la taille du tableau" ;
+ Text [ dutch ] = "Veranderingen in een rij of kolom beïnvloeden de tabelgrootte" ;
+ Text [ portuguese ] = "As modificações numa linha ou coluna podem afectar o tamanho da tabela" ;
+ Text[ chinese_simplified ] = "Ò»ÐкÍÁеĸü¸Ä»áÓ°Ïì±í¸ñµÄ´óС¡£";
+ Text[ russian ] = "Èçìåíåíèÿ ñòðîêè èëè êîëîíêè ïîâëèÿþò íà ðàçìåð òàáëèöû";
+ Text[ polish ] = "Zmiany wiersza lub kolumny wywieraj¹ wp³yw na rozmiar tabeli";
+ Text[ japanese ] = "s‚ ‚é‚¢‚Í—ñ‚Ì•ÏX‚ͤ•\\‚Ì‘å‚«‚³‚Éì—p";
+ Text[ chinese_traditional ] = "¤@­ÓÄæ¦CªºÅܧó·|¼vÅTªí®æªº¤j¤p¡C";
+ Text[ arabic ] = "ÊÄËÑ ÇáÊÛííÑÇÊ ÇáÍÇÏËÉ Ýí ÕÝ Ãæ ÚãæÏ Úáì ÍÌã ÇáÌÏæá";
+ Text[ greek ] = "ÁëëáãÝò ìéáò ãñáììÞò Þ óôÞëçò åðéñåÜæïõí ôï ìÝãåèïò ôïõ ðßíáêá";
+ Text[ korean ] = "¿­ ¶Ç´Â ÇàÀÇ º¯°æÀº Ç¥ÀÇ Å©±â¿¡ ¿µÇâÀ» ÁÝ´Ï´Ù.";
+ Text[ turkish ] = "Satýr ya da sütunlar üzerinde yapýlan deðiþiklikler tablo boyutunu etkiler";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_DESC
+ {
+ Pos = MAP_APPFONT ( 12 , 121 ) ;
+ Size = MAP_APPFONT ( 236 , 10 ) ;
+ Text = "Diese Einstellungen sind bei der Tastaturbedienung wirksam." ;
+ Text [ English ] = "These settings affect the keyboard handling." ;
+ WordBreak = TRUE ;
+ Text [ english_us ] = "These settings affect the keyboard handling." ;
+ Text [ portuguese_brazilian ] = "Diese Einstellungen sind bei der Tastaturbedienung wirksam." ;
+ Text [ swedish ] = "Dessa inställningar gäller för tangentbord." ;
+ Text [ danish ] = "Disse indstillinger udfolder virkning ved tastaturbetjening" ;
+ Text [ italian ] = "Queste impostazioni sono effettive con l'uso della tastiera" ;
+ Text [ spanish ] = "Esta configuración es efectiva al usar el teclado." ;
+ Text [ french ] = "Ces paramètres ne seront appliqués que pour l'utilisation du clavier." ;
+ Text [ dutch ] = "Deze instellingen zijn bij de bediening van de tastatuur werkzaam." ;
+ Text [ portuguese ] = "Estas predefinições podem ser activadas com o teclado." ;
+ Text[ chinese_simplified ] = "Õâ¸öÉ趨¿ÉÓÃÓÚ¼üÅ̲Ù×÷¡£";
+ Text[ russian ] = "Ýòè íàñòðîéêè äåéñòâóþò ïðè îáñëóæèâàíèè êëàâèàòóðû.";
+ Text[ polish ] = "Ustawienia te s¹ uaktywnione podczas korzystania z klawiatury.";
+ Text[ japanese ] = "‚±‚ÌÝ’è‚Í·°ÎÞ°ÄÞ‘€ì‚Éì—p‚µ‚Ü‚·";
+ Text[ chinese_traditional ] = "³o­Ó³]©wÓì¥Î©óÁä½L¾Þ§@¡C";
+ Text[ arabic ] = "ÓÊßæä åÐå ÇáÅÚÏÇÏÇÊ ÓÇÑíÉ ÇáãÝÚæá ÚäÏ ÇÓÊÎÏÇã áæÍÉ ÇáãÝÇÊíÍ.";
+ Text[ greek ] = "ÁõôÝò ïé ñõèìßóåéò åðéñåÜæïõí ôïí ÷åéñéóìü ôïõ ðëçêôñïëïãßïõ.";
+ Text[ korean ] = "ÀÌ·¯ÇÑ ¼³Á¤Àº Å°º¸µå Á¦¾î¿¡¿µÇâÀ» ÁÝ´Ï´Ù .";
+ Text[ turkish ] = "Bu ayarlar klavye kullanýmýný etkiler.";
+ Text[ language_user1 ] = " ";
+ };
+};
+/**************************************************************************/
+/* */
+/* TabPage SourceView */
+/* */
+/**************************************************************************/
+TabPage TP_OPTSRCVIEW
+{
+ HelpID = HID_OPTSRCVIEW ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_COLOR
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 80 ) ;
+ Text = "Farbzuordnung Syntax - Highlighting" ;
+ Text [ English ] = "Color assignment syntax highlighting" ;
+ Text [ english_us ] = "Colors for syntax highlighting" ;
+ Text [ portuguese_brazilian ] = "Farbzuordnung Syntax - Highlighting" ;
+ Text [ swedish ] = "Färgtilldelning för syntaxframhävning" ;
+ Text [ danish ] = "Farvetildeling syntaks - fremhævning" ;
+ Text [ italian ] = "Correlazione colori per evidenziazione sintassi" ;
+ Text [ spanish ] = "Colores para sintaxis-destacado" ;
+ Text [ french ] = "Couleurs pour marquage de syntaxe" ;
+ Text [ dutch ] = "Kleuren voor Syntax - Highlighting" ;
+ Text [ portuguese ] = "Cores para destaques de sintaxe" ;
+ Text[ chinese_simplified ] = "ÓòÊÉ«Í»³öÏÔʾÓï·¨²¿·Ö";
+ Text[ russian ] = "Öâåòà äëÿ âûäåëåíèÿ ñèíòàêñèñà";
+ Text[ polish ] = "Kolory dla wyró¿niania sk³adni.";
+ Text[ japanese ] = "\\•¶‹­’²‚ÌF";
+ Text[ chinese_traditional ] = "¥Î±m¦â¬ð¥XÅã¥Ü»yªk³¡¤À";
+ Text[ arabic ] = "ÇáÃáæÇä ÇáãÓÊÎÏãÉ áÊãííÒ ÈäÇÁ ÇáÌãáÉ";
+ Text[ greek ] = "Ïñéóìüò ÷ñùìÜôùí ãéá åðéóÞìáíóç óýíôáîçò";
+ Text[ korean ] = "±¸¹® °­Á¶¸¦ À§ÇÑ »ö»ó";
+ Text[ turkish ] = "Söz dizimi vurgusu için renk düzeni";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_SGML
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 50 , 8 ) ;
+ Text = "~SGML" ;
+ Text [ English ] = "~SGML" ;
+ Text [ english_us ] = "~SGML" ;
+ Text [ portuguese_brazilian ] = "~SGML" ;
+ Text [ swedish ] = "~SGML" ;
+ Text [ danish ] = "SGML" ;
+ Text [ italian ] = "~SGML" ;
+ Text [ spanish ] = "~SGML" ;
+ Text [ french ] = "~SGML" ;
+ Text [ dutch ] = "~SGML" ;
+ Text [ portuguese ] = "~SGML" ;
+ Text[ chinese_simplified ] = "~SGML";
+ Text[ russian ] = "~SGML";
+ Text[ polish ] = "SGML";
+ Text[ japanese ] = "~SGML";
+ Text[ chinese_traditional ] = "~SGML";
+ Text[ arabic ] = "SGML~";
+ Text[ greek ] = "SGML";
+ Text[ korean ] = "~SGML";
+ Text[ turkish ] = "~SGML";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_SGML
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 188 , 16 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_COMMENT
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Kommentar" ;
+ Text [ English ] = "~Comment" ;
+ Text [ portuguese ] = "~Comentário" ;
+ Text [ english_us ] = "~Comment" ;
+ Text [ portuguese_brazilian ] = "~Kommentar" ;
+ Text [ swedish ] = "~Kommentar" ;
+ Text [ danish ] = "Kommentar" ;
+ Text [ italian ] = "~Commento" ;
+ Text [ spanish ] = "~Comentario" ;
+ Text [ french ] = "~Commentaire" ;
+ Text [ dutch ] = "~Commentaar" ;
+ Text[ chinese_simplified ] = "×¢½â(~C)";
+ Text[ russian ] = "Êîììåíòàðèé";
+ Text[ polish ] = "Komentarz";
+ Text[ japanese ] = "ºÒÝÄ(~C)";
+ Text[ chinese_traditional ] = "ª`¸Ñ(~C)";
+ Text[ arabic ] = "ÊÚáíÞ";
+ Text[ greek ] = "Ó÷üëéï";
+ Text[ korean ] = "¸Þ¸ð(~C)";
+ Text[ turkish ] = "Açýklama";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_COMMENT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 188 , 31 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_KEYWD
+ {
+ Pos = MAP_APPFONT ( 12 , 46 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Sch~lüsselwort" ;
+ Text [ English ] = "~Keyword" ;
+ Text [ english_us ] = "~Key word" ;
+ Text [ portuguese_brazilian ] = "Sch~lüsselwort" ;
+ Text [ swedish ] = "Nycke~lord" ;
+ Text [ danish ] = "Nøgleord" ;
+ Text [ italian ] = "Parola chiave" ;
+ Text [ spanish ] = "~Palabra clave" ;
+ Text [ french ] = "~Mot-clé" ;
+ Text [ dutch ] = "S~leutelwoord" ;
+ Text [ portuguese ] = "Palavra-~chave" ;
+ Text[ chinese_simplified ] = "¹Ø¼ü×Ö(~K)";
+ Text[ russian ] = "Êëþ÷åâîå ñëîâî";
+ Text[ polish ] = "S³owo kluczowe";
+ Text[ japanese ] = "·°Ü°ÄÞ(~K)";
+ Text[ chinese_traditional ] = "ÃöÁä¦r(~K)";
+ Text[ arabic ] = "ßáãÉ ÃÓÇÓíÉ";
+ Text[ greek ] = "ËÝîç-êëåéäß";
+ Text[ korean ] = "Å° ¿öµå(~K)";
+ Text[ turkish ] = "Anahtar sözcük";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_KEYWD
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT (188 , 46 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_UNKNOWN
+ {
+ Pos = MAP_APPFONT ( 12 , 61 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Unbekannt" ;
+ Text [ English ] = "~Unknown" ;
+ Text [ english_us ] = "~Unknown" ;
+ Text [ portuguese_brazilian ] = "~Unbekannt" ;
+ Text [ swedish ] = "~Okänd" ;
+ Text [ danish ] = "Ukendt" ;
+ Text [ italian ] = "~Sconosciuto" ;
+ Text [ spanish ] = "~Desconocido" ;
+ Text [ french ] = "~Inconnu" ;
+ Text [ dutch ] = "~Onbekend" ;
+ Text [ portuguese ] = "~Desconhecido" ;
+ Text[ chinese_simplified ] = "²»Ã÷µÄ(~U)";
+ Text[ russian ] = "~Íåèçâåñòíî";
+ Text[ polish ] = "Nieznany";
+ Text[ japanese ] = "•s–¾(~U)";
+ Text[ chinese_traditional ] = "¤£©úªº(~U)";
+ Text[ arabic ] = "ÛíÑ ãÚÑæÝ";
+ Text[ greek ] = "¢ãíùóôï";
+ Text[ korean ] = "¾Ë·ÁÁöÁö ¾ÊÀ½(~U)";
+ Text[ turkish ] = "Bilinmeyen";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_UNKNOWN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 188 , 61 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ DropDown = TRUE ;
+ };
+};
+/**************************************************************************/
+/* */
+/* TabPage ShadowCursor */
+/* */
+/**************************************************************************/
+TabPage TP_OPTSHDWCRSR
+{
+ HelpID = HID_OPTSHDWCRSR ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_SHDWCRSFLAG
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 100 ) ;
+ Text = "Direkt-Cursor" ;
+ Text [ ENGLISH ] = "Direct cursor" ;
+ Text [ english_us ] = "Direct Cursor" ;
+ Text [ portuguese_brazilian ] = "Opۼes" ;
+ Text [ swedish ] = "Direktmarkör" ;
+ Text [ danish ] = "Direkt-markør" ;
+ Text [ italian ] = "Cursore diretto" ;
+ Text [ spanish ] = "Cursor directo" ;
+ Text [ french ] = "Curseur direct" ;
+ Text [ dutch ] = "Directcursor" ;
+ Text [ portuguese ] = "Cursor directo" ;
+ Text[ chinese_simplified ] = "Ö±½Ó¶¨Î»¹â±ê";
+ Text[ russian ] = "Ñâîáîäíûé êóðñîð";
+ Text[ polish ] = "Kursor bezpoœredni";
+ Text[ japanese ] = "ÀÞ²Ú¸Ä ¶°¿Ù";
+ Text[ chinese_traditional ] = "ª½±µ©w¦ì¥ú¼Ð";
+ Text[ arabic ] = "ãÄÔÑ ãÈÇÔÑ";
+ Text[ greek ] = "¢ìåóïò äñïìÝáò";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Serbest imleç";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_SHDWCRSONOFF
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "~Direkt-Cursor" ;
+ Text [ ENGLISH ] = "~Direct cursor" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text [ portuguese ] = "Cursor ~directo" ;
+ Text [ english_us ] = "~Direct cursor" ;
+ Text [ portuguese_brazilian ] = "~Direkt-Cursor" ;
+ Text [ swedish ] = "~Direktmarkör" ;
+ Text [ danish ] = "Direkt-markør" ;
+ Text [ italian ] = "Cursore ~diretto" ;
+ Text [ spanish ] = "~Cursor directo" ;
+ Text [ french ] = "Curseur ~direct" ;
+ Text [ dutch ] = "~Direct-cursor" ;
+ Text[ chinese_simplified ] = "Ö±½Ó¶¨Î»¹â±ê(~D)";
+ Text[ russian ] = "Ñâîáîäíûé êóðñîð";
+ Text[ polish ] = "Kursor bezpoœredni";
+ Text[ japanese ] = "ÀÞ²Ú¸Ä ¶°¿Ù(~D)";
+ Text[ chinese_traditional ] = "ª½±µ©w¦ì¥ú¼Ð(~D)";
+ Text[ arabic ] = "ãÄÔÑ ãÈÇÔÑ";
+ Text[ greek ] = "¢ìåóïò äñïìÝáò";
+ Text[ korean ] = "Á÷Á¢ Ä¿¼­(~D)";
+ Text[ turkish ] = "Serbest imleç";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_SHDWCRSFILLMODE
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "Einfügen" ;
+ Text [ English ] = "Insert" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Insert" ;
+ Text [ portuguese_brazilian ] = "Einfügen" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ french ] = "Insérer" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_SHDWCRSFILLMARGIN
+ {
+ Pos = MAP_APPFONT ( 80 , 31 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "~Absatzausrichtung" ;
+ Text [ ENGLISH ] = "~Adjustment" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text [ english_us ] = "~Paragraph alignment" ;
+ Text [ portuguese_brazilian ] = "~Absatzausrichtung" ;
+ Text [ swedish ] = "St~yckejustering" ;
+ Text [ danish ] = "Afsnitsjustering" ;
+ Text [ italian ] = "~Allineamento paragrafo" ;
+ Text [ spanish ] = "~Alineación de párrafo" ;
+ Text [ french ] = "A~lignement de paragraphe" ;
+ Text [ dutch ] = "~Alinea-uitlijning" ;
+ Text [ portuguese ] = "~Alinhamento de parágrafos" ;
+ Text[ chinese_simplified ] = "¶ÎÂä¶ÔÆë(~P)";
+ Text[ russian ] = "Âûðàâíèâàíèå àáçàöà";
+ Text[ polish ] = "Wyrównanie akapitu";
+ Text[ japanese ] = "’i—Ž‚Ì”z’u(~P)";
+ Text[ chinese_traditional ] = "¬q¸¨¹ï»ô(~P)";
+ Text[ arabic ] = "ãÍÇÐÇÉ ÇáÝÞÑÉ";
+ Text[ greek ] = "Óôïß÷éóç ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô ¸ÂÃã(~P)";
+ Text[ turkish ] = "Pa~ragraf hizalama";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_SHDWCRSFILLINDENT
+ {
+ Pos = MAP_APPFONT ( 80 , 44 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "linker Absatz~rand" ;
+ Text [ ENGLISH ] = "Left ~margin" ;
+ Text [ english_us ] = "~Left paragraph margin" ;
+ Text [ portuguese_brazilian ] = "linker Absatz~rand" ;
+ Text [ swedish ] = "Vänster styckema~rginal" ;
+ Text [ danish ] = "Venstre afsnitsmargen" ;
+ Text [ italian ] = "Margine paragrafo ~sinistro" ;
+ Text [ spanish ] = "~Margen izquierdo del párrafo" ;
+ Text [ french ] = "~Marge gauche du paragraphe" ;
+ Text [ dutch ] = "Linker alinea~rand" ;
+ Text [ portuguese ] = "Margem ~esquerda do parágrafo" ;
+ Text[ chinese_simplified ] = "¶ÎÂä×ó¼ä¸ô(~P)";
+ Text[ russian ] = "ëåâûé êðàé àáçàöà";
+ Text[ polish ] = "Lewy margines akapitu";
+ Text[ japanese ] = "’i—Ž¶—]”’(~P)";
+ Text[ chinese_traditional ] = "¬q¸¨¥ª¶¡¹j(~P)";
+ Text[ arabic ] = "åÇãÔ ÇáÝÞÑÉ ÇáÃíÓÑ";
+ Text[ greek ] = "áñéóôåñü ðåñéèþñéï ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô ¿ÞÂÊ ¿©¹é(~L)";
+ Text[ turkish ] = "Sol ~paragraf kenarý";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_SHDWCRSFILLTAB
+ {
+ Pos = MAP_APPFONT ( 80 , 57 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "~Tabulator" ;
+ Text [ ENGLISH ] = "~Tab" ;
+ Text [ english_us ] = "~Tabs" ;
+ Text [ portuguese_brazilian ] = "~Tabulator" ;
+ Text [ swedish ] = "Ta~bulator" ;
+ Text [ danish ] = "Tabulator" ;
+ Text [ italian ] = "Tabulazione" ;
+ Text [ spanish ] = "~Tabulación" ;
+ Text [ french ] = "~Tabulation" ;
+ Text [ dutch ] = "~Tabulator" ;
+ Text [ portuguese ] = "~Tabulações" ;
+ Text[ chinese_simplified ] = "ÖƱí·û(~T)";
+ Text[ russian ] = "Òàáóëÿòîðû";
+ Text[ polish ] = "Tabulator";
+ Text[ japanese ] = "ÀÌÞ(~T)";
+ Text[ chinese_traditional ] = "»sªí²Å(~T)";
+ Text[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ Text[ greek ] = "ÓôçëïèÝôçò";
+ Text[ korean ] = "ÅÇ(~T)";
+ Text[ turkish ] = "~Sekmeler";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_SHDWCRSFILLSPACE
+ {
+ Pos = MAP_APPFONT ( 80 , 70 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "Tabulator und ~Leerzeichen" ;
+ Text [ ENGLISH ] = "Tabs and ~space" ;
+ Text [ english_us ] = "Tabs and ~spaces" ;
+ Text [ portuguese_brazilian ] = "Tabulator und ~Leerzeichen" ;
+ Text [ swedish ] = "Tabulator och b~lanksteg" ;
+ Text [ danish ] = "Tabulator og mellemrum" ;
+ Text [ italian ] = "Tabulazione e ~spazi" ;
+ Text [ spanish ] = "Tabulación y ~espacios" ;
+ Text [ french ] = "Tabulation et ~espaces" ;
+ Text [ dutch ] = "Tabulator en ~spaties" ;
+ Text [ portuguese ] = "Tabulações e ~espaços" ;
+ Text[ chinese_simplified ] = "ÖƱí·ûºÍ¿Õ¸ñ(~S)";
+ Text[ russian ] = "Òàáóëÿòîðû è ïðîáåëû";
+ Text[ polish ] = "Tabulator i ~spacja";
+ Text[ japanese ] = "ÀÌނƽÍß°½(~S)";
+ Text[ chinese_traditional ] = "»sªí²Å©MªÅ®æ(~S)";
+ Text[ arabic ] = "ÚáÇãÇÊ ÌÏæáÉ æÃÍÑÝ ãÓÇÝÉ";
+ Text[ greek ] = "ÓôçëïèÝôåò êáé êåíÜ";
+ Text[ korean ] = "ÅÇ°ú °£°Ý(~S)";
+ Text[ turkish ] = "Sekmeler ve ~boþluklar";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_SHDWCRSCOLOR
+ {
+ Pos = MAP_APPFONT ( 12 , 86 ) ;
+ Size = MAP_APPFONT ( 50 , 8 ) ;
+ Text = "~Farbe" ;
+ Text [ English ] = "~Color" ;
+ Text [ english_us ] = "~Color" ;
+ Text [ portuguese_brazilian ] = "~Farbe" ;
+ Text [ swedish ] = "~Färg" ;
+ Text [ danish ] = "Farve" ;
+ Text [ italian ] = "~Colore" ;
+ Text [ spanish ] = "~Color" ;
+ Text [ french ] = "~Couleur" ;
+ Text [ dutch ] = "~Kleur" ;
+ Text [ portuguese ] = "~Cor" ;
+ Text[ chinese_simplified ] = "ÑÕÉ«(~C)";
+ Text[ russian ] = "Öâåò";
+ Text[ polish ] = "Kolor";
+ Text[ japanese ] = "F(~C)";
+ Text[ chinese_traditional ] = "ÃC¦â(~C)";
+ Text[ arabic ] = "Çááæä";
+ Text[ greek ] = "×ñþìá";
+ Text[ korean ] = "»ö»ó(~C)";
+ Text[ turkish ] = "~Renk";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_SHDWCRSCOLOR
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 80 , 86 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ DropDown = TRUE ;
+ };
+ GroupBox GB_CRSR_OPT
+ {
+ Pos = MAP_APPFONT ( 6 , 106 ) ;
+ Size = MAP_APPFONT ( 248 , 25 ) ;
+ Text = "Optionen" ;
+ Text [ ENGLISH ] = "Options" ;
+ Text [ NORWEGIAN ] = "Options" ;
+ Text [ DANISH ] = "Indstillinger" ;
+ Text [ ENGLISH_US ] = "Options" ;
+ Text [ SPANISH ] = "Opciones" ;
+ Text [ FINNISH ] = "Määritykset" ;
+ Text [ FRENCH ] = "Options" ;
+ Text [ ITALIAN ] = "Opzioni" ;
+ Text [ DUTCH ] = "Opties" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Opۼes" ;
+ Text [ SWEDISH ] = "Alternativ" ;
+ Text [ PORTUGUESE ] = "Opções" ;
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_ALLOW_IN_PROT
+ {
+ Pos = MAP_APPFONT ( 12 , 118 ) ;
+ Size = MAP_APPFONT ( 220 , 10 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+
+ Text = "~Cursor in geschützten Zonen zulassen" ;
+ Text [ ENGLISH ] = "~Allow cursor in protected areas" ;
+ Text[ english_us ] = "~Allow cursor in protected areas";
+ Text[ portuguese ] = "~Permitir cursor em zonas protegidas";
+ Text[ russian ] = "Äîïóñê êóðñîðà â çàùèùåííûõ çîíàõ";
+ Text[ dutch ] = "~Cursor in beveiligde zones toelaten";
+ Text[ french ] = "~Autoriser l'utilisation du curseur dans les zones protégées";
+ Text[ spanish ] = "~Permitir cursor en zonas protegidas";
+ Text[ italian ] = "Permetti cursore in aree protette";
+ Text[ danish ] = "Tillad markør i beskyttede områder";
+ Text[ swedish ] = "Tillåt ~markören i skyddade områden";
+ Text[ polish ] = "DopuϾ kursor w chronionych obszarach";
+ Text[ portuguese_brazilian ] = "~Allow cursor in protected areas";
+ Text[ japanese ] = "¶°¿Ù‚Ì•ÛŒì—̈æ‚Ö‚Ìi“ü‹–‰Â(~A)";
+ Text[ chinese_simplified ] = "ÔÊÐí¹â±ê¶¨Î»ÔÚ±£»¤ÇøÓò(~A)";
+ Text[ chinese_traditional ] = "¤¹³\\¥ú¼Ð©w¦ì¦b«OÅ@°Ï°ì(~A)";
+ Text[ arabic ] = "ÇáÓãÇÍ ÈÇÓÊÎÏÇã ÇáãÄÔÑ Ýí ãäÇØÞ ãÍãíÉ";
+ Text[ greek ] = "Äõíáôüôçôá åéóáãùãÞò ôïõ äåßêôç óå ðñïóôáôåõüìåíåò ðåñéï÷Ýò";
+ Text[ korean ] = "º¸È£µÈ ¿µ¿ª¿¡ Ä¿¼­ Çã¿ë(~A)";
+ Text[ turkish ] = "Ýmlecin korumalý bölümlere girmesine izin ver";
+ Text[ language_user1 ] = " ";
+ };
+
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
new file mode 100644
index 000000000000..5b5ef335648f
--- /dev/null
+++ b/sw/source/ui/config/optload.cxx
@@ -0,0 +1,311 @@
+/*************************************************************************
+ *
+ * $RCSfile: optload.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SHL_HXX
+#include <tools/shl.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX //autogen
+#include <swtypes.hxx>
+#endif
+
+#ifndef _UIITEMS_HXX //autogen
+#include <uiitems.hxx>
+#endif
+
+#include "swmodule.hxx"
+#include "modcfg.hxx"
+#include "wrtsh.hxx"
+
+#include "globals.hrc"
+#include "cmdid.h"
+
+#include "optload.hrc"
+#include "optload.hxx"
+
+#ifndef _FLDUPDE_HXX
+#include <fldupde.hxx>
+#endif
+
+/* -----------------22.10.98 15:12-------------------
+ *
+ * --------------------------------------------------*/
+
+SwLoadOptPage::SwLoadOptPage( Window* pParent, const SfxItemSet& rSet ) :
+ SfxTabPage(pParent, SW_RES(TP_OPTLOAD_PAGE), rSet),
+ aAlwaysRB (this, ResId(RB_ALWAYS )),
+ aRequestRB (this, ResId(RB_REQUEST )),
+ aNeverRB (this, ResId(RB_NEVER )),
+ aLinkDocOnlyCB (this, ResId(CB_LINK_DOCONLY )),
+ aLinkGB (this, ResId(GB_LINK )),
+ aAutoUpdateFields(this, ResId(CB_AUTO_UPDATE_FIELDS )),
+ aAutoUpdateCharts(this, ResId(CB_AUTO_UPDATE_CHARTS )),
+ aFldDocOnlyCB (this, ResId(CB_FLD_DOCONLY )),
+ aFldGB (this, ResId(GB_FIELD )),
+ aMergeDistCB(this, ResId(CB_MERGE_PARA_DIST )),
+ aMergeDistPageStartCB(this, ResId(CB_MERGE_PARA_DIST_PAGESTART )),
+ aCompatGB (this, ResId(GB_COMPAT )),
+
+ pWrtShell (0),
+ nOldLinkMode(MANUAL)
+{
+ FreeResource();
+
+ aAutoUpdateFields.SetClickHdl(LINK(this, SwLoadOptPage, UpdateHdl));
+}
+
+/*-----------------18.01.97 12.43-------------------
+
+--------------------------------------------------*/
+
+SwLoadOptPage::~SwLoadOptPage()
+{
+}
+/* -----------------09.02.99 12:10-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwLoadOptPage, UpdateHdl, CheckBox*, pBox )
+{
+ aAutoUpdateCharts.Enable(pBox->IsChecked());
+ return 0;
+}
+
+/*-----------------18.01.97 12.43-------------------
+
+--------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwLoadOptPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return new SwLoadOptPage(pParent, rAttrSet );
+}
+
+/*-----------------18.01.97 12.42-------------------
+
+--------------------------------------------------*/
+
+BOOL __EXPORT SwLoadOptPage::FillItemSet( SfxItemSet& rSet )
+{
+ BOOL bRet = FALSE;
+ SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ BOOL bFldDocOnly = aFldDocOnlyCB.IsChecked();
+ BOOL bLinkDocOnly = aLinkDocOnlyCB.IsChecked();
+
+ USHORT nNewLinkMode;
+ if (aNeverRB.IsChecked())
+ nNewLinkMode = NEVER;
+ else if (aRequestRB.IsChecked())
+ nNewLinkMode = MANUAL;
+ else if (aAlwaysRB.IsChecked())
+ nNewLinkMode = AUTOMATIC;
+
+ USHORT nFldFlags = aAutoUpdateFields.IsChecked() ?
+ aAutoUpdateCharts.IsChecked() ? AUTOUPD_FIELD_AND_CHARTS : AUTOUPD_FIELD_ONLY : AUTOUPD_OFF;
+
+ if(aAutoUpdateFields.IsChecked() != aAutoUpdateFields.GetSavedValue() ||
+ aAutoUpdateCharts.IsChecked() != aAutoUpdateCharts.GetSavedValue())
+ {
+ if (!bFldDocOnly || !pWrtShell)
+ pModOpt->SetFldUpdateFlags(nFldFlags);
+ if(pWrtShell)
+ {
+ USHORT nSet = bFldDocOnly ? nFldFlags : AUTOUPD_GLOBALSETTING;
+ pWrtShell->SetFldUpdateFlags(nSet);
+ pWrtShell->SetModified();
+ }
+ }
+
+ if (nNewLinkMode != nOldLinkMode)
+ {
+ if (!bLinkDocOnly || !pWrtShell)
+ pModOpt->SetLinkMode(nNewLinkMode);
+
+ if (pWrtShell)
+ {
+ USHORT nSet = bLinkDocOnly ? nNewLinkMode : (USHORT)GLOBALSETTING;
+ pWrtShell->SetLinkUpdMode( nSet );
+ pWrtShell->SetModified();
+ }
+
+ bRet = TRUE;
+ }
+ if (pWrtShell)
+ {
+ if(aMergeDistCB.IsChecked() != aMergeDistCB.GetSavedValue() ||
+ aMergeDistPageStartCB.IsChecked() != aMergeDistPageStartCB.GetSavedValue())
+ {
+ pWrtShell->SetParaSpaceMax(aMergeDistCB.IsChecked(),
+ aMergeDistPageStartCB.IsChecked());
+ }
+
+ }
+ return bRet;
+}
+/*-----------------18.01.97 12.42-------------------
+
+--------------------------------------------------*/
+
+void __EXPORT SwLoadOptPage::Reset( const SfxItemSet& rSet)
+{
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ const SfxPoolItem* pItem;
+
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_WRTSHELL, FALSE, &pItem))
+ pWrtShell = (SwWrtShell*)((const SwPtrItem*)pItem)->GetValue();
+
+ USHORT nFldFlags = AUTOUPD_GLOBALSETTING;
+ nOldLinkMode = GLOBALSETTING;
+ BOOL bFldDocOnly = TRUE;
+ BOOL bLinkDocOnly = TRUE;
+ if (pWrtShell)
+ {
+ nFldFlags = pWrtShell->GetFldUpdateFlags(TRUE);
+ nOldLinkMode = pWrtShell->GetLinkUpdMode(TRUE);
+ aMergeDistCB.Check(pWrtShell->IsParaSpaceMax());
+ aMergeDistPageStartCB.Check(pWrtShell->IsParaSpaceMaxAtPages());
+
+ aMergeDistCB.SaveValue();
+ aMergeDistPageStartCB.SaveValue();
+ }
+ if(nOldLinkMode == GLOBALSETTING)
+ {
+ nOldLinkMode = pModOpt->GetLinkMode();
+ bLinkDocOnly = FALSE;
+ }
+ if(nFldFlags == AUTOUPD_GLOBALSETTING)
+ {
+ nFldFlags = pModOpt->GetFldUpdateFlags();
+ bFldDocOnly = FALSE;
+ }
+
+ aAutoUpdateFields.Check(nFldFlags != AUTOUPD_OFF);
+ aAutoUpdateCharts.Check(nFldFlags == AUTOUPD_FIELD_AND_CHARTS);
+ aAutoUpdateCharts.Enable(nFldFlags != AUTOUPD_OFF);
+
+ aLinkDocOnlyCB.Enable(pWrtShell != 0);
+ aLinkDocOnlyCB.Check(bLinkDocOnly);
+ aFldDocOnlyCB.Enable(pWrtShell != 0);
+ aFldDocOnlyCB.Check(bFldDocOnly);
+ aMergeDistCB.Enable(pWrtShell != 0);
+ aMergeDistPageStartCB.Enable(pWrtShell != 0);
+ aCompatGB.Enable(pWrtShell != 0);
+
+ switch (nOldLinkMode)
+ {
+ case NEVER: aNeverRB.Check(); break;
+ case MANUAL: aRequestRB.Check(); break;
+ case AUTOMATIC: aAlwaysRB.Check(); break;
+ }
+
+ aAutoUpdateFields.SaveValue();
+ aAutoUpdateCharts.SaveValue();
+}
+
+/*--------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.12 2000/09/18 16:05:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.11 1999/10/01 06:04:24 os
+ enable new compatibility button
+
+ Revision 1.10 1999/09/30 09:59:56 os
+ new compatibility option
+
+ Revision 1.9 1999/09/30 09:45:35 os
+ new compatibility option
+
+ Revision 1.8 1999/03/15 15:22:58 OS
+ #63171# Fieldpdate und LinkMode in getrennten Gruppen
+
+
+ Rev 1.7 15 Mar 1999 16:22:58 OS
+ #63171# Fieldpdate und LinkMode in getrennten Gruppen
+
+ Rev 1.6 11 Mar 1999 23:56:38 JP
+ Task #63171#: Optionen fuer Feld-/LinkUpdate Doc oder Modul lokal
+
+ Rev 1.5 09 Feb 1999 15:19:10 OS
+ #61404# Optionen fuer Felder/Charts aktualisieren
+
+ Rev 1.4 07 Jan 1999 15:04:24 OS
+ #60625# Absatzabstaende addieren
+
+ Rev 1.3 03 Dec 1998 11:24:54 OM
+ #58216# Verknuepfungsoptionen nur fuer aktuelles Dok
+
+ Rev 1.2 30 Nov 1998 17:30:12 OM
+ #59770# Tabellenoptionen: Ueberschrift nur auf erster Seite
+
+ Rev 1.1 23 Nov 1998 16:13:42 OM
+ #58216# Verknuepfungsoptionen pro Dokument
+
+ Rev 1.0 20 Nov 1998 17:03:42 OM
+ Initial revision.
+
+ --------------------------------------------------------------------*/
diff --git a/sw/source/ui/config/optload.hrc b/sw/source/ui/config/optload.hrc
new file mode 100644
index 000000000000..93a62aa0d8b0
--- /dev/null
+++ b/sw/source/ui/config/optload.hrc
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * $RCSfile: optload.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define GB_LINK 1
+#define RB_ALWAYS 2
+#define RB_REQUEST 3
+#define RB_NEVER 4
+#define CB_FLD_DOCONLY 5
+#define CB_MERGE_PARA_DIST 6
+#define GB_COMPAT 7
+#define CB_AUTO_UPDATE_FIELDS 8
+#define CB_AUTO_UPDATE_CHARTS 9
+#define FT_UPDATE_LINKS 10
+#define CB_LINK_DOCONLY 11
+#define GB_FIELD 13
+#define CB_MERGE_PARA_DIST_PAGESTART 14
+
diff --git a/sw/source/ui/config/optload.src b/sw/source/ui/config/optload.src
new file mode 100644
index 000000000000..0d1cd4e41be0
--- /dev/null
+++ b/sw/source/ui/config/optload.src
@@ -0,0 +1,413 @@
+/*************************************************************************
+ *
+ * $RCSfile: optload.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+
+#include "globals.hrc"
+#include "optload.hrc"
+#include "helpid.h"
+
+/**************************************************************************/
+/* */
+/**************************************************************************/
+
+TabPage TP_OPTLOAD_PAGE
+{
+ HelpID = HID_OPTLOAD_PAGE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+/* FixedText FT_UPDATE_LINKS
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 150 , 10 ) ;
+ Text = "Verknüpfungen beim Laden aktualisieren" ;
+ Text [ English ] = "Update links while loading" ;
+ Text[ italian ] = "Aggiorna collegamenti durante il caricamento";
+ Text[ portuguese_brazilian ] = "Refresh links";
+ Text[ portuguese ] = "Actualizar ligações ao carregar";
+ Text[ danish ] = "Refresh links";
+ Text[ french ] = "Actualiser les liens lors du chargement";
+ Text[ swedish ] = "Uppdatera länkar vid laddning";
+ Text[ dutch ] = "Verbindingen bij het laden actualiseren";
+ Text[ spanish ] = "Actualizar vínculos al cargar";
+ Text[ english_us ] = "Update links";
+ Text[ chinese_simplified ] = "ÔÚ×°ÔØʱ¸üÐÂÁ´½Ó";
+ Text[ russian ] = "Îáíîâèòü ñâÿçè";
+ Text[ polish ] = "Aktualizuj ³¹cza";
+ Text[ japanese ] = "Verknüpfungen aktualisieren";
+ };*/
+ GroupBox GB_LINK
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 248 , 37 ) ;
+ Text = "Verknüpfungen aktualisieren" ;
+ Text [ English ] = "Update links" ;
+ Text[ english_us ] = "Update links";
+ Text[ portuguese ] = "Actualizar ligações";
+ Text[ russian ] = "Îáíîâèòü ññûëêè";
+ Text[ dutch ] = "Verbindingen actualiseren";
+ Text[ french ] = "Actualiser les liens";
+ Text[ spanish ] = "Actualizar vínculos";
+ Text[ italian ] = "Aggiorna collegamenti";
+ Text[ danish ] = "Opdater kæder";
+ Text[ swedish ] = "Uppdatera länkar";
+ Text[ polish ] = "Aktualizuj ³¹cza";
+ Text[ portuguese_brazilian ] = "Refresh links";
+ Text[ japanese ] = "Øݸ‚ÌXV";
+ Text[ chinese_simplified ] = "¸üÐÂÁ´½Ó";
+ Text[ chinese_traditional ] = "§ó·s±¶®|";
+ Text[ arabic ] = "ÊÍÏíË ÇáÇÑÊÈÇØÇÊ";
+ Text[ greek ] = "ÅíçìÝñùóç óõíäÝóåùí";
+ Text[ korean ] = "¿¬°á ¾÷ µ¥ÀÌÆ®";
+ Text[ turkish ] = "Baðlantýlarý güncelle";
+ Text[ language_user1 ] = " ";
+};
+ RadioButton RB_ALWAYS
+ {
+ Pos = MAP_APPFONT ( 12 , 13 ) ;
+ Size = MAP_APPFONT ( 75 , 10 ) ;
+ Text = "~Immer" ;
+ Text [ ENGLISH ] = "~Always" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Sempre";
+ Text[ portuguese_brazilian ] = "~Always";
+ Text[ portuguese ] = "~Sempre";
+ Text[ danish ] = "Altid";
+ Text[ french ] = "Toujours";
+ Text[ swedish ] = "~Alltid";
+ Text[ dutch ] = "~Altijd";
+ Text[ spanish ] = "~Siempre";
+ Text[ english_us ] = "Always";
+ Text[ chinese_simplified ] = "×ÜÊÇ";
+ Text[ russian ] = "Âñåãäà";
+ Text[ polish ] = "Zawsze";
+ Text[ japanese ] = "í‚É";
+ Text[ chinese_traditional ] = "Á`¬O";
+ Text[ arabic ] = "ÏÇÆãÇð";
+ Text[ greek ] = "ÐÜíôá";
+ Text[ korean ] = "Ç×»ó";
+ Text[ turkish ] = "Her zaman";
+ Text[ language_user1 ] = " ";
+};
+ RadioButton RB_REQUEST
+ {
+ Pos = MAP_APPFONT ( 90 , 13 ) ;
+ Size = MAP_APPFONT ( 75 , 10 ) ;
+ Text = "Auf Nach~frage" ;
+ Text [ ENGLISH ] = "On request" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Su richiesta";
+ Text[ portuguese_brazilian ] = "On request";
+ Text[ portuguese ] = "A ~pedido";
+ Text[ danish ] = "På anmodning";
+ Text[ french ] = "Sur demande";
+ Text[ swedish ] = "På ~begäran";
+ Text[ dutch ] = "Op aan~vraag";
+ Text[ spanish ] = "A ~petición";
+ Text[ english_us ] = "On request";
+ Text[ chinese_simplified ] = "ÔÚÇëÇóʱ";
+ Text[ russian ] = "Ïî òðåáîâàíèþ";
+ Text[ polish ] = "Gdy jest wymagane";
+ Text[ japanese ] = "•K—v‚ɉž‚¶‚Ä";
+ Text[ chinese_traditional ] = "¦b½Ð¨D®É";
+ Text[ arabic ] = "ÈÚÏ ÇáÇÓÊÝÓÇÑ";
+ Text[ greek ] = "Óå æÞôçóç";
+ Text[ korean ] = "¿äû";
+ Text[ turkish ] = "Ýstek üzerine";
+ Text[ language_user1 ] = " ";
+};
+ RadioButton RB_NEVER
+ {
+ Pos = MAP_APPFONT ( 168 , 13 ) ;
+ Size = MAP_APPFONT ( 75 , 10 ) ;
+ Text = "~Nie" ;
+ Text [ ENGLISH ] = "Never" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Mai";
+ Text[ portuguese_brazilian ] = "Never";
+ Text[ portuguese ] = "~Nunca";
+ Text[ danish ] = "Aldrig";
+ Text[ french ] = "Jamais";
+ Text[ swedish ] = "Al~drig";
+ Text[ dutch ] = "~Nooit";
+ Text[ spanish ] = "~Nunca";
+ Text[ english_us ] = "Never";
+ Text[ chinese_simplified ] = "ÓÀÔ¶²»";
+ Text[ russian ] = "Íèêîãäà";
+ Text[ polish ] = "Nigdy";
+ Text[ japanese ] = "•s•K—v";
+ Text[ chinese_traditional ] = "¥Ã»·¤£";
+ Text[ arabic ] = "ÈÊÇÊÇð";
+ Text[ greek ] = "ÐïôÝ";
+ Text[ korean ] = "ÀüÇô";
+ Text[ turkish ] = "Hiçbir zaman";
+ Text[ language_user1 ] = " ";
+};
+ CheckBox CB_LINK_DOCONLY
+ {
+ Pos = MAP_APPFONT ( 12 , 25) ;
+ Size = MAP_APPFONT ( 220 , 10 ) ;
+ Text = "Nur für das aktuelle ~Dokument" ;
+ Text [ English ] = "Actual document only" ;
+ Text [ dutch ] = "~Alleen in het actuele document" ;
+ Text [ english_us ] = "Current document only" ;
+ Text [ italian ] = "Solo per il documento corrente" ;
+ Text [ spanish ] = "Solo para el documento ~actual" ;
+ Text [ french ] = "Uniquement pour le document actif" ;
+ Text [ swedish ] = "~Endast för det aktuella dokumentet" ;
+ Text [ danish ] = "Kun for det aktuelle dokument" ;
+ Text [ portuguese ] = "~Apenas para documento activo" ;
+ Text[ portuguese_brazilian ] = "~Nur für das aktuelle Dokument";
+ Text[ chinese_simplified ] = "Ö»ÓÃÓÚµ±Ç°µÄÎĵµ";
+ Text[ russian ] = "Òîëüêî äëÿ òåêóùåãî äîêóìåíòà";
+ Text[ polish ] = "Tylko dla aktualnego dokumentu";
+ Text[ japanese ] = "Œ»Ý‚ÌÄÞ·­ÒÝÄ‚¾‚¯";
+ Text[ chinese_traditional ] = "¥u¥Î©ó·í«eªº¤å¥ó";
+ Text[ arabic ] = "ÇáãÓÊäÏ ÇáÍÇáí ÝÞØ";
+ Text[ greek ] = "Ìüíï ãéá ôï ðáñüí Ýããñáöï";
+ Text[ korean ] = "ÇöÀç ¹®¼­ ¸¸";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Yalnýzca açýk belgede";
+};
+ GroupBox GB_FIELD
+ {
+ Pos = MAP_APPFONT ( 6 , 42 ) ;
+ Size = MAP_APPFONT ( 248 , 53 ) ;
+ Text = "Felder und Diagramme" ;
+ Text [ English ] = "Update" ;
+ Text[ english_us ] = "Fields and charts";
+ Text[ portuguese ] = "Campos e gráficos";
+ Text[ russian ] = "Ïîëÿ è äèàãðàììû";
+ Text[ dutch ] = "Velden en diagrammen";
+ Text[ french ] = "Champs et diagrammes";
+ Text[ spanish ] = "Campos y diagramas";
+ Text[ italian ] = "Campi e diagrammi";
+ Text[ danish ] = "Felter og diagrammer";
+ Text[ swedish ] = "Fält och diagram";
+ Text[ polish ] = "Pola i diagramy";
+ Text[ portuguese_brazilian ] = "Refresh links";
+ Text[ japanese ] = "̨°ÙÄނƸÞ×Ì";
+ Text[ chinese_simplified ] = "×ֶκÍͼ±í";
+ Text[ chinese_traditional ] = "Äæ¦ì©M¹Ïªí";
+ Text[ arabic ] = "ÍÞæá æÑÓæã ÈíÇäíÉ";
+ Text[ greek ] = "Ðåäßá êáé äéáãñÜììáôá";
+ Text[ korean ] = "Çʵå¿Í Â÷Æ®";
+ Text[ turkish ] = "Alan ve þemalar";
+ Text[ language_user1 ] = " ";
+};
+ CheckBox CB_AUTO_UPDATE_FIELDS
+ {
+ Pos = MAP_APPFONT ( 12 , 55) ;
+ Size = MAP_APPFONT ( 213 , 10 ) ;
+ Text = "F~eldbefehle automatisch aktualisieren" ;
+ Text [ English ] = "Update fields automatically" ;
+ Text[ english_us ] = "Update ~fields automatically";
+ Text[ portuguese ] = "Actualizar ~campos automaticamente";
+ Text[ russian ] = "Îáíîâëÿòü àâòîìàòè÷åñêè ïîëÿ";
+ Text[ dutch ] = "V~eldopdrachten automatisch actualiseren";
+ Text[ french ] = "Actualiser automatiquement les ~instructions de champ";
+ Text[ spanish ] = "Actualizar ~campos automáticamente";
+ Text[ italian ] = "Aggiorna i comandi di campo automaticamente";
+ Text[ danish ] = "Opdater felter automatisk";
+ Text[ swedish ] = "Uppdatera ~fältkommandon automatiskt";
+ Text[ polish ] = "Aktualizuj pola automatycznie";
+ Text[ portuguese_brazilian ] = "Update fields automatically";
+ Text[ japanese ] = "̨°ÙÄÞ‚ðŽ©“®“I‚ÉXV(~F)";
+ Text[ chinese_simplified ] = "×Ô¶¯¸üÐÂ×Ö¶ÎÃüÁî(~F)";
+ Text[ chinese_traditional ] = "¦Û°Ê§ó·sÄæ¦ì©R¥O(~F)";
+ Text[ arabic ] = "ÊÍÏíË ÇáÍÞæá ÊáÞÇÆíÇð";
+ Text[ greek ] = "Áõôüìáôç åíçìÝñùóç åíôïëþí ðåäßùí";
+ Text[ korean ] = "Çʵå ÀÚµ¿ ¾÷ µ¥ÀÌÆ®(~F)";
+ Text[ turkish ] = "Alan öðelerini otomatik olarak güncelle";
+ Text[ language_user1 ] = " ";
+};
+ CheckBox CB_AUTO_UPDATE_CHARTS
+ {
+ Pos = MAP_APPFONT ( 12 , 68) ;
+ Size = MAP_APPFONT ( 213 , 10 ) ;
+ Text = "Dia~gramme automatisch aktualisieren" ;
+ Text [ English ] = "Update charts automatically" ;
+ Text[ english_us ] = "Update ~charts automatically";
+ Text[ portuguese ] = "Actualizar ~gráficos automaticamente";
+ Text[ russian ] = "Îáíîâëÿòü àâòîìàòè÷åñêè äèàãðàììû";
+ Text[ dutch ] = "~Diagrammen automatisch actualiseren";
+ Text[ french ] = "Actualiser automatiquement les diagrammes";
+ Text[ spanish ] = "Actualizar ~diagramas automáticamente";
+ Text[ italian ] = "Aggiorna i diagrammi automaticamente";
+ Text[ danish ] = "Opdater diagrammer automatisk";
+ Text[ swedish ] = "Uppdatera ~diagram automatiskt";
+ Text[ polish ] = "Aktualizuj wykresy automatycznie";
+ Text[ portuguese_brazilian ] = "Update charts automatically";
+ Text[ japanese ] = "¸Þ×Ì‚ðŽ©“®“I‚ÉXV(~C)";
+ Text[ chinese_simplified ] = "×Ô¶¯¸üÐÂͼ±í(~C)";
+ Text[ chinese_traditional ] = "¦Û°Ê§ó·s¹Ïªí(~C)";
+ Text[ arabic ] = "ÊÍÏíË ÇáÑÓæã ÇáÈíÇäíÉ ÊáÞÇÆíÇð";
+ Text[ greek ] = "Áõôüìáôç åíçìÝñùóç äéáãñáììÜôùí";
+ Text[ korean ] = "Â÷Æ® ÀÚµ¿ ¾÷ µ¥ÀÌÆ®(~C)";
+ Text[ turkish ] = "Þemalarý otomatik olarak güncelle";
+ Text[ language_user1 ] = " ";
+};
+ CheckBox CB_FLD_DOCONLY
+ {
+ Pos = MAP_APPFONT ( 12 , 83) ;
+ Size = MAP_APPFONT ( 213 , 10 ) ;
+ Text = "Nur für das aktuelle D~okument" ;
+ Text [ English ] = "Current document only" ;
+ Text [ dutch ] = "~Alleen in het actuele document" ;
+ Text [ english_us ] = "Current document only" ;
+ Text [ italian ] = "Solo per il documento corrente" ;
+ Text [ spanish ] = "Solo para el documento ~actual" ;
+ Text [ french ] = "Uniquement pour le document actif" ;
+ Text [ swedish ] = "~Endast för det aktuella dokumentet" ;
+ Text [ danish ] = "Kun for det aktuelle dokument" ;
+ Text [ portuguese ] = "~Apenas para documento actual" ;
+ Text[ portuguese_brazilian ] = "~Nur für das aktuelle Dokument";
+ Text[ chinese_simplified ] = "Ö»ÓÃÓÚµ±Ç°µÄÎĵµ";
+ Text[ russian ] = "Òîëüêî äëÿ òåêóùåãî äîêóìåíòà";
+ Text[ polish ] = "Tylko dla aktualnego dokumentu";
+ Text[ japanese ] = "Œ»Ý‚ÌÄÞ·­ÒÝÄ‚¾‚¯";
+ Text[ chinese_traditional ] = "¥u¥Î©ó·í«eªº¤å¥ó";
+ Text[ arabic ] = "ÇáãÓÊäÏ ÇáÍÇáí ÝÞØ";
+ Text[ greek ] = "Ìüíï ãéá ôï ðáñþí Ýããñáöï";
+ Text[ korean ] = "ÇöÀç ¹®¼­ ¸¸";
+ Text[ turkish ] = "Yalnýzca açýk belgede";
+ Text[ language_user1 ] = " ";
+};
+ GroupBox GB_COMPAT
+ {
+ Pos = MAP_APPFONT ( 6 , 98 ) ;
+ Size = MAP_APPFONT ( 248 , 33 ) ;
+ Text = "Kompatibilität" ;
+ Text [ English ] = "Compatibility" ;
+ Text[ english_us ] = "Compatibility";
+ Text[ portuguese ] = "Compatibilidade";
+ Text[ russian ] = "Ñîâìåñòèìîñòü";
+ Text[ dutch ] = "Compatibiliteit";
+ Text[ french ] = "Compatibilité";
+ Text[ spanish ] = "Compatibilidad";
+ Text[ italian ] = "Compatibilità";
+ Text[ danish ] = "Kompatibilitet";
+ Text[ swedish ] = "Kompatibilitet";
+ Text[ polish ] = "ZgodnoϾ";
+ Text[ portuguese_brazilian ] = "Compatibility";
+ Text[ japanese ] = "ŒÝŠ·«";
+ Text[ chinese_simplified ] = "¼æÈÝ";
+ Text[ chinese_traditional ] = "¬Û®e";
+ Text[ arabic ] = "ÊæÇÝÞ";
+ Text[ greek ] = "Óõìâáôüôçôá";
+ Text[ korean ] = "ȣȯ";
+ Text[ turkish ] = "Uyumluluk";
+ Text[ language_user1 ] = " ";
+};
+ CheckBox CB_MERGE_PARA_DIST
+ {
+ Pos = MAP_APPFONT ( 12 , 109) ;
+ Size = MAP_APPFONT ( 236 , 10 ) ;
+ Text = "Im aktuellen Dokument alle Absatz- und Tabellen~abstände addieren";
+ Text [ English ] = "Add ~distances between paragraphs and tables" ;
+ Text[ english_us ] = "Add spacing between paragraphs and tables in the current document";
+ Text[ portuguese ] = "Somar ~espaçamento entre parágrafos e tabelas no documento activo";
+ Text[ russian ] = "Ñëîæèòü â òåêóùåì äîêóìåíòå âñå èíòåðâàëû àáçàöåâ è òàáëèö";
+ Text[ dutch ] = "In het actuele document alle ~afstanden tussen alinea's en tabellen optellen";
+ Text[ french ] = "Additionner les espaces entre paragraphes et tableaux dans le document actif";
+ Text[ spanish ] = "Sumar ~espacios de párrafos y tablas en el documento actual";
+ Text[ italian ] = "Aggiungi distanze tra i paragrafi e le tabelle nel documento attuale";
+ Text[ danish ] = "Tæl alle afsnits- og tabelafstande i det aktuelle dokument sammen";
+ Text[ swedish ] = "Addera alla stycke- och tabell~avstånd i det aktuella dokumentet";
+ Text[ polish ] = "Dodaj w aktualnym dokumencie wszystkie odstêpy akapitów i tabel";
+ Text[ portuguese_brazilian ] = "Add ~distances between paragraphs and tables";
+ Text[ japanese ] = "Œ»Ý‚ÌÄÞ·­ÒÝÄ‚É‚·‚ׂĂ̒i—Ž‚¨‚æ‚Ñ•\\‚ÌŠÔŠu‚ð•t‰Á‚·‚é";
+ Text[ chinese_simplified ] = "ÔÚµ±Ç°ÎĵµÄÚÀ©´óËùÓжÎÂäºÍ±í¸ñÖ®¼äµÄ¼ä¸ô(~S)";
+ Text[ chinese_traditional ] = "¦b·í«e¤å¥ó¤ºÂX¤j©Ò¦³¬q¸¨©Mªí®æ¤§¶¡ªº¶¡¹j(~S)";
+ Text[ arabic ] = "ÅÖÇÝÉ ãÓÇÝÉ ÇáÊÈÇÚÏ Åáì ßá ÝÞÑÇÊ æÌÏÇæá ÇáãÓÊäÏ ÇáÍÇáí";
+ Text[ greek ] = "¢èñïéóìá üëùí ôùí áðïóôÜóåùí ðáñáãñÜöùí êáé ðéíÜêùí óôï ôñÝ÷ùí Ýããñáöï";
+ Text[ korean ] = "ÇöÀç ¹®¼­ÀÇ ´Ü¶ô°ú Ç¥ »çÀÌÀÇ °£°Ý Ãß°¡";
+ Text[ turkish ] = "Açýk belgedeki tüm paragraf ve tablo aralýklarýný topla";
+ Text[ language_user1 ] = " ";
+};
+ CheckBox CB_MERGE_PARA_DIST_PAGESTART
+ {
+ Pos = MAP_APPFONT ( 12 , 121) ;
+ Size = MAP_APPFONT ( 236 , 10 ) ;
+ Text = "A~bsatz- und Tabellenabstände an Seitenanfängen addieren";
+ Text [ English ] = "Add distances at the beginning of pages" ;
+ Text[ english_us ] = "Add paragraph and table spacing to start of pages";
+ Text[ portuguese ] = "A~dicionar espaços de parágrafos e tabelas no início das páginas";
+ Text[ russian ] = "Äîáàâèòü èíòåðâàëû àáçàöåâ è òàáëèö â íà÷àëå ñòðàíèöû";
+ Text[ greek ] = "¢èñïéóìá ôùí áðïóôÜóåùí ôùí ðáñáãñÜöùí êáé ðéíÜêùí óôçí áñ÷Þ ôçò óåëßäáò";
+ Text[ dutch ] = "~Alinea- en tabellenafstanden invoegen aan paginabegin.";
+ Text[ french ] = "Additionner les ~espaces entre paragraphes et tableaux en début de page";
+ Text[ spanish ] = "Su~mar espacios de tablas y párrafos a los comienzos de página";
+ Text[ italian ] = "Aggiungi distanze paragrafi e tabelle a inizio pagina.";
+ Text[ danish ] = "Læg afsnits- og tabelafstande til ved sidebegyndelser";
+ Text[ swedish ] = "Lägg till stycke- och tabellavstånd vid början av sidor";
+ Text[ polish ] = "Dodaj a~kapity i odstêpy tabeli do pocz¹tków stron";
+ Text[ portuguese_brazilian ] = "Add distances at the beginning of pages";
+ Text[ japanese ] = "’i—Ž‚¨‚æ‚Ñ•\\ŠÔŠu‚ðÍß°¼Þ‚ÌŽn‚ß‚É•t‰Á‚·‚é";
+ Text[ korean ] = "ÆäÀÌÁö ½ÃÀÛ¿¡ ´Ü¶ô°ú Ç¥ °£°Ý Ãß°¡";
+ Text[ chinese_simplified ] = "ÔÚÒ³ÃæÆðʼ´¦Ôö¼Ó¶ÎÂäºÍ±í¸ñµÄ¼ä¸ô";
+ Text[ chinese_traditional ] = "­¶­±¶}ºÝ³B¥[¤J¬q¸¨©Mªí®æ¶¡¹j";
+ Text[ arabic ] = "ÅÖÇÝÉ ÇáÝÞÑÉ æÊÈÇÚÏ ÇáÌÏÇæá Åáì ÈÏÇíÉ ÇáÕÝÍÇÊ";
+ Text[ turkish ] = "Paragraf ve tablo aralýklarýný sayfa baþlarýna ekle";
+ Text[ language_user1 ] = " ";
+};
+};
+
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
new file mode 100644
index 000000000000..f1aa10c19e5c
--- /dev/null
+++ b/sw/source/ui/config/optpage.cxx
@@ -0,0 +1,2695 @@
+/*************************************************************************
+ *
+ * $RCSfile: optpage.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _XTABLE_HXX //autogen
+#include <svx/xtable.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_DLGUTIL_HXX //autogen
+#include <svx/dlgutil.hxx>
+#endif
+#ifndef _SV_SYSTEM_HXX //autogen
+#include <vcl/system.hxx>
+#endif
+#ifndef _SV_WALL_HXX
+#include <vcl/wall.hxx>
+#endif
+
+
+#ifndef _FMTCOL_HXX //autogen
+#include <fmtcol.hxx>
+#endif
+#ifndef _CHARATR_HXX
+#include <charatr.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _SWATRSET_HXX
+#include <swatrset.hxx>
+#endif
+#ifndef _OPTDLG_HXX
+#include <optdlg.hxx>
+#endif
+#ifndef _CFGITEMS_HXX
+#include <cfgitems.hxx> //Items fuer Sw-Seiten
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _OPTPAGE_HXX
+#include <optpage.hxx>
+#endif
+#ifndef _SWPRTOPT_HXX
+#include <swprtopt.hxx>
+#endif
+#ifndef _FONTCFG_HXX
+#include <fontcfg.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _SRCVCFG_HXX
+#include <srcvcfg.hxx>
+#endif
+#ifndef _SRCVIEW_HXX
+#include <srcview.hxx>
+#endif
+#ifndef _SRCEDTW_HXX
+#include <srcedtw.hxx>
+#endif
+#ifndef _CRSTATE_HXX
+#include <crstate.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _CONFIG_HRC
+#include <config.hrc>
+#endif
+#ifndef _REDLOPT_HRC
+#include <redlopt.hrc>
+#endif
+#ifndef _OPTDLG_HRC
+#include <optdlg.hrc>
+#endif
+
+#define C2S(cChar) String::CreateFromAscii(cChar)
+/*******************************************************
+ ******************************************************/
+
+/*-----------------31.08.96 10.16-------------------
+ TabPage Anzeige/Inhalt
+--------------------------------------------------*/
+
+SwContentOptPage::SwContentOptPage( Window* pParent,
+ const SfxItemSet& rCoreSet ) :
+ SfxTabPage( pParent, SW_RES( TP_CONTENT_OPT ), rCoreSet ),
+ aDispBox ( this, SW_RES( GB_DISP ) ),
+ aGrfCB ( this, SW_RES( CB_GRF ) ),
+ aTblCB ( this, SW_RES( CB_TBL ) ),
+ aDrwCB ( this, SW_RES( CB_DRWFAST ) ),
+ aFldNameCB ( this, SW_RES( CB_FIELD ) ),
+ aPostItCB ( this, SW_RES( CB_POSTIT ) ),
+
+ aUnprintBox ( this, SW_RES( GB_NOPRINT ) ),
+ aParaCB ( this, SW_RES( CB_PARA ) ),
+ aSHyphCB ( this, SW_RES( CB_SHYPH ) ),
+ aSpacesCB ( this, SW_RES( CB_SPACE ) ),
+ aHSpacesCB ( this, SW_RES( CB_HSPACE ) ),
+ aTabCB ( this, SW_RES( CB_TAB ) ),
+ aBreakCB ( this, SW_RES( CB_BREAK ) ),
+ aHiddenCB ( this, SW_RES( CB_HIDDEN ) ),
+ aHiddenParaCB ( this, SW_RES( CB_HIDDEN_PARA ) ),
+
+ aBackBox ( this, SW_RES( GB_BACK ) ),
+ aIdxEntryCB ( this, SW_RES( CB_IDX_ENTRY ) ),
+ aIdxBackCB ( this, SW_RES( CB_INDEX ) ),
+ aFootBackCB ( this, SW_RES( CB_FOOTBACK ) ),
+ aFldBackCB ( this, SW_RES( CB_FLDBACK ) )
+{
+ FreeResource();
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_HTML_MODE, FALSE, &pItem )
+ && ((SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON)
+ {
+ aFootBackCB .Hide();
+ aIdxEntryCB .Hide();
+ aIdxBackCB.Hide();
+ aTabCB .Hide();
+ aHiddenCB .Hide();
+ aHiddenParaCB.Hide();
+ aFldBackCB.SetPosPixel(aIdxEntryCB.GetPosPixel());
+ aBreakCB.SetPosPixel(aTabCB.GetPosPixel());
+ }
+}
+
+#undef _INIT
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+SwContentOptPage::~SwContentOptPage()
+{
+}
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+SfxTabPage* SwContentOptPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwContentOptPage(pParent, rAttrSet);
+}
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+void SwContentOptPage::Reset(const SfxItemSet& rSet)
+{
+ const SwDocDisplayItem* pDocDisplayAttr = 0;
+
+ rSet.GetItemState( FN_PARAM_DOCDISP, FALSE,
+ (const SfxPoolItem**)&pDocDisplayAttr );
+ if(pDocDisplayAttr)
+ {
+ aParaCB .Check (pDocDisplayAttr->bParagraphEnd );
+ aTabCB .Check (pDocDisplayAttr->bTab );
+ aSpacesCB .Check (pDocDisplayAttr->bSpace );
+ aHSpacesCB .Check (pDocDisplayAttr->bNonbreakingSpace );
+ aSHyphCB .Check (pDocDisplayAttr->bSoftHyphen );
+ aHiddenCB .Check (pDocDisplayAttr->bHiddenText );
+ aHiddenParaCB.Check (pDocDisplayAttr->bShowHiddenPara );
+ aBreakCB .Check (pDocDisplayAttr->bManualBreak );
+ aIdxEntryCB .Check (pDocDisplayAttr->bIndexEntry );
+ aIdxBackCB.Check (pDocDisplayAttr->bIndexBackground );
+ aFootBackCB .Check (pDocDisplayAttr->bFootnoteBackground );
+ aFldBackCB .Check (pDocDisplayAttr->bField );
+ aTblCB .Check (pDocDisplayAttr->bTable );
+ aGrfCB .Check (pDocDisplayAttr->bGraphic );
+ aDrwCB .Check (pDocDisplayAttr->bDrawing );
+ aFldNameCB .Check (pDocDisplayAttr->bFieldName );
+ aPostItCB .Check (pDocDisplayAttr->bNotes );
+// bHtmlMode
+ }
+
+}
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+BOOL SwContentOptPage::FillItemSet(SfxItemSet& rSet)
+{
+ const SwDocDisplayItem* pOldAttr = (const SwDocDisplayItem*)
+ GetOldItem(GetItemSet(), FN_PARAM_DOCDISP);
+
+ SwDocDisplayItem aDisp;
+ if(pOldAttr)
+ aDisp = *pOldAttr;
+ aDisp.bParagraphEnd = aParaCB .IsChecked();
+ aDisp.bTab = aTabCB .IsChecked();
+ aDisp.bSpace = aSpacesCB .IsChecked();
+ aDisp.bNonbreakingSpace = aHSpacesCB .IsChecked();
+ aDisp.bSoftHyphen = aSHyphCB .IsChecked();
+ aDisp.bHiddenText = aHiddenCB .IsChecked();
+ aDisp.bShowHiddenPara = aHiddenParaCB .IsChecked();
+ aDisp.bManualBreak = aBreakCB .IsChecked();
+ aDisp.bIndexEntry = aIdxEntryCB .IsChecked();
+ aDisp.bIndexBackground = aIdxBackCB .IsChecked();
+ aDisp.bFootnoteBackground = aFootBackCB .IsChecked();
+ aDisp.bField = aFldBackCB .IsChecked();
+ aDisp.bTable = aTblCB .IsChecked();
+ aDisp.bGraphic = aGrfCB .IsChecked();
+ aDisp.bDrawing = aDrwCB .IsChecked();
+ aDisp.bFieldName = aFldNameCB .IsChecked();
+ aDisp.bNotes = aPostItCB .IsChecked();
+
+
+ BOOL bRet = !pOldAttr || aDisp != *pOldAttr;
+ if(bRet)
+ bRet = 0 != rSet.Put(aDisp);
+ return bRet;
+}
+
+/*-----------------31.08.96 10.30-------------------
+ TabPage Anzeige/Layout
+--------------------------------------------------*/
+
+
+// -----------------------------------------------------------------------
+
+
+SwLayoutOptPage::SwLayoutOptPage( Window* pParent,
+ const SfxItemSet& rCoreSet ) :
+ SfxTabPage( pParent, SW_RES( TP_LAYOUT_OPT ), rCoreSet ),
+ aLineGB ( this, SW_RES( GB_LINE ) ),
+ aTxtbegCB ( this, SW_RES( CB_TXTBEG ) ),
+ aTblbegCB ( this, SW_RES( CB_TABBEG ) ),
+ aSectBoundsCB( this, SW_RES( CB_SECT_BOUNDS ) ),
+ aCrossCB ( this, SW_RES( CB_CROSS ) ),
+ aSolidHandleCB( this, SW_RES( CB_HANDLE ) ),
+ aBigHandleCB ( this, SW_RES( CB_BIGHANDLE) ),
+ aWindowGB ( this, SW_RES( GB_WINDOW ) ),
+ aHScrollBox ( this, SW_RES( CB_HSCROLL ) ),
+ aVScrollBox ( this, SW_RES( CB_VSCROLL ) ),
+ aHRulerCBox ( this, SW_RES( CB_HRULER ) ),
+ aVRulerCBox ( this, SW_RES( CB_VRULER ) ),
+ aSmoothCBox ( this, SW_RES( CB_SMOOTH_SCROLL ) ),
+ aMetricLB ( this, SW_RES( LB_METRIC ) ),
+ aMetricGB ( this, SW_RES( GB_METRIC ) ),
+ aTabGB ( this, SW_RES( GB_TAB ) ),
+ aTabMF ( this, SW_RES( MF_TAB ) ),
+ aMetricArr ( SW_RES( ST_METRIC ) ),
+ nLastTab(0)
+{
+ FreeResource();
+ for ( USHORT i = 0; i < aMetricArr.Count(); ++i )
+ {
+ String sMetric = aMetricArr.GetStringByPos( i );
+ FieldUnit eFUnit = (FieldUnit)aMetricArr.GetValue( i );
+
+ switch ( eFUnit )
+ {
+ case FUNIT_MM:
+ case FUNIT_CM:
+ case FUNIT_POINT:
+ case FUNIT_PICA:
+ case FUNIT_INCH:
+ {
+ // nur diese Metriken benutzen
+ USHORT nPos = aMetricLB.InsertEntry( sMetric );
+ aMetricLB.SetEntryData( nPos, (void*)(long)eFUnit );
+ }
+ }
+ }
+ aMetricLB.SetSelectHdl(LINK(this, SwLayoutOptPage, MetricHdl));
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_HTML_MODE, FALSE, &pItem )
+ && ((SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON)
+ {
+ aTabGB.Hide();
+ aTabMF.Hide();
+ }
+
+}
+
+#undef _INIT
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+SwLayoutOptPage::~SwLayoutOptPage()
+{
+}
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+SfxTabPage* SwLayoutOptPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwLayoutOptPage(pParent, rAttrSet);
+}
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+void SwLayoutOptPage::Reset(const SfxItemSet& rSet)
+{
+ const SwElemItem* pElemAttr = 0;
+
+ rSet.GetItemState( FN_PARAM_ELEM , FALSE,
+ (const SfxPoolItem**)&pElemAttr );
+ if(pElemAttr)
+ {
+ aTxtbegCB .Check( pElemAttr->bBounds );
+ aTblbegCB .Check( pElemAttr->bTableBounds );
+ aSectBoundsCB.Check( pElemAttr->bSectionBounds );
+ aCrossCB .Check( pElemAttr->bCrosshair );
+ aSolidHandleCB.Check( !pElemAttr->bHandles );
+ aBigHandleCB.Check(pElemAttr->bBigHandles );
+ aHScrollBox.Check( pElemAttr->bHorzScrollbar );
+ aVScrollBox.Check( pElemAttr->bVertScrollbar );
+ aHRulerCBox.Check( pElemAttr->bHorzRuler );
+ aVRulerCBox.Check( pElemAttr->bVertRuler );
+ aSmoothCBox.Check( pElemAttr->bSmoothScroll );
+ }
+
+
+ aMetricLB.SetNoSelection();
+ if ( rSet.GetItemState( SID_ATTR_METRIC ) >= SFX_ITEM_AVAILABLE )
+ {
+ const SfxUInt16Item& rItem = (SfxUInt16Item&)rSet.Get( SID_ATTR_METRIC );
+ FieldUnit eFieldUnit = (FieldUnit)rItem.GetValue();
+
+ for ( USHORT i = 0; i < aMetricLB.GetEntryCount(); ++i )
+ {
+ if ( (int)aMetricLB.GetEntryData( i ) == (int)eFieldUnit )
+ {
+ aMetricLB.SelectEntryPos( i );
+ break;
+ }
+ }
+ ::SetFieldUnit(aTabMF, eFieldUnit);
+ }
+ aMetricLB.SaveValue();
+
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_DEFTABSTOP, FALSE, &pItem))
+ {
+ nLastTab = ((SfxUInt16Item*)pItem)->GetValue();
+ aTabMF.SetValue(aTabMF.Normalize(nLastTab), FUNIT_TWIP);
+ }
+ // in FrameDocs koennen Scrollbars nicht sinnvoll eingestellt werden
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_VIEW_IN_FRAME, FALSE, &pItem) &&
+ ((const SfxBoolItem*)pItem)->GetValue())
+ {
+ aHScrollBox.Enable(FALSE);
+ aVScrollBox.Enable(FALSE);
+ }
+ aTabMF.SaveValue();
+
+}
+
+/*-----------------31.08.96 13.58-------------------
+
+--------------------------------------------------*/
+
+
+BOOL SwLayoutOptPage::FillItemSet(SfxItemSet& rSet)
+{
+ const SwElemItem* pOldAttr = (const SwElemItem*)
+ GetOldItem(GetItemSet(), FN_PARAM_ELEM);
+
+ SwElemItem aElem;
+ if(pOldAttr)
+ aElem = *pOldAttr;
+
+ aElem.bBounds = aTxtbegCB .IsChecked();
+ aElem.bTableBounds = aTblbegCB .IsChecked();
+ aElem.bSectionBounds = aSectBoundsCB.IsChecked();
+ aElem.bCrosshair = aCrossCB .IsChecked();
+ aElem.bHandles = !aSolidHandleCB.IsChecked();
+ aElem.bBigHandles = aBigHandleCB.IsChecked();
+ aElem.bHorzScrollbar = aHScrollBox.IsChecked();
+ aElem.bVertScrollbar = aVScrollBox.IsChecked();
+ aElem.bHorzRuler = aHRulerCBox.IsChecked();
+ aElem.bVertRuler = aVRulerCBox.IsChecked();
+ aElem.bSmoothScroll = aSmoothCBox.IsChecked();
+
+ BOOL bRet = !pOldAttr || aElem != *pOldAttr;
+ if(bRet)
+ bRet = 0 != rSet.Put(aElem);
+
+ const USHORT nMPos = aMetricLB.GetSelectEntryPos();
+ if ( nMPos != aMetricLB.GetSavedValue() )
+ {
+ // Doppel-Cast fuer VA3.0
+ USHORT nFieldUnit = (USHORT)(long)aMetricLB.GetEntryData( nMPos );
+ bRet |= 0 != rSet.Put( SfxUInt16Item( SID_ATTR_METRIC,
+ (UINT16)nFieldUnit ) );
+ }
+
+ if(aTabMF.IsVisible() && aTabMF.GetText() != aTabMF.GetSavedValue())
+ bRet |= 0 != rSet.Put(SfxUInt16Item(SID_ATTR_DEFTABSTOP,
+ (USHORT)aTabMF.Denormalize(aTabMF.GetValue(FUNIT_TWIP))));
+
+ return bRet;
+}
+
+/*-----------------13.01.97 14.44-------------------
+ Metric des Deftabstops umschalten
+--------------------------------------------------*/
+
+IMPL_LINK(SwLayoutOptPage, MetricHdl, ListBox*, EMPTYARG)
+{
+ const USHORT nMPos = aMetricLB.GetSelectEntryPos();
+ if(nMPos != USHRT_MAX)
+ {
+ // Doppel-Cast fuer VA3.0
+ FieldUnit eFieldUnit = (FieldUnit)(long)aMetricLB.GetEntryData( nMPos );
+ BOOL bModified = aTabMF.IsModified();
+ long nVal = bModified ?
+ aTabMF.Denormalize( aTabMF.GetValue( FUNIT_TWIP ) ) :
+ nLastTab;
+ ::SetFieldUnit( aTabMF, eFieldUnit );
+ aTabMF.SetValue( aTabMF.Normalize( nVal ), FUNIT_TWIP );
+ if(!bModified)
+ aTabMF.ClearModifyFlag();
+ }
+
+ return 0;
+}
+
+/*----------------- OS 27.01.95 -----------------------
+ TabPage Drucker Zusatzeinstellungen
+-------------------------------------------------------*/
+
+// makro fuers init ------------------------------------------------------
+
+#define _INIT \
+ aGrfCB (this, SW_RES(CB_PGRF)), \
+ aTabCB (this, SW_RES(CB_PTAB)), \
+ aDrawCB (this, SW_RES(CB_PDRAW)), \
+ aCtrlFldCB (this, SW_RES(CB_CTRLFLD)), \
+ aBackgroundCB (this, SW_RES(CB_BACKGROUND)),\
+ aBlackFontCB (this, SW_RES(CB_BLACK_FONT)),\
+ aGroup1 (this, SW_RES(GRP_1)), \
+ aLeftPageCB (this, SW_RES(CB_LEFTP)),\
+ aRightPageCB (this, SW_RES(CB_RIGHTP)),\
+ aReverseCB (this, SW_RES(CB_REVERSE)),\
+ aProspectCB (this, SW_RES(CB_PROSPECT)),\
+ aGroup2 (this, SW_RES(GRP_2)), \
+ aNoRB (this, SW_RES(RB_NO)), \
+ aOnlyRB (this, SW_RES(RB_ONLY)), \
+ aEndRB (this, SW_RES(RB_END)), \
+ aEndPageRB (this, SW_RES(RB_PAGEEND)),\
+ aGroup3 (this, SW_RES(GRP_3)), \
+ aPaperFromSetupCB(this, SW_RES(CB_PAPERFROMSETUP)),\
+ aGroup5 (this, SW_RES(GRP_5)), \
+ aSingleJobsCB (this, SW_RES(CB_SINGLEJOBS)),\
+ aGroup4 (this, SW_RES(GRP_4)), \
+ aFaxLB (this, SW_RES(LB_FAX)), \
+ aFaxGB (this, SW_RES(GB_FAX)), \
+ bAttrModified( FALSE )
+
+// -----------------------------------------------------------------------
+
+
+SwAddPrinterTabPage::SwAddPrinterTabPage( Window* pParent,
+ const SfxItemSet& rCoreSet) :
+ SfxTabPage( pParent, SW_RES( TP_OPTPRINT_PAGE ), rCoreSet),
+ bPreview ( FALSE ),
+ _INIT
+{
+ Init();
+ FreeResource();
+
+ Link aLk = LINK( this, SwAddPrinterTabPage, AutoClickHdl);
+ aGrfCB.SetClickHdl( aLk );
+ aRightPageCB.SetClickHdl( aLk );
+ aLeftPageCB.SetClickHdl( aLk );
+ aTabCB.SetClickHdl( aLk );
+ aDrawCB.SetClickHdl( aLk );
+ aCtrlFldCB.SetClickHdl( aLk );
+ aBackgroundCB.SetClickHdl( aLk );
+ aBlackFontCB.SetClickHdl( aLk );
+ aReverseCB.SetClickHdl( aLk );
+ aProspectCB.SetClickHdl( aLk );
+ aPaperFromSetupCB.SetClickHdl( aLk );
+ aEndPageRB.SetClickHdl( aLk );
+ aEndRB.SetClickHdl( aLk );
+ aOnlyRB.SetClickHdl( aLk );
+ aNoRB.SetClickHdl( aLk );
+ aSingleJobsCB.SetClickHdl( aLk );
+ aFaxLB.SetSelectHdl( LINK( this, SwAddPrinterTabPage, SelectHdl ) );
+
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_HTML_MODE, FALSE, &pItem )
+ && ((SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON)
+ {
+ aDrawCB .Hide();
+ aLeftPageCB .Hide();
+ aRightPageCB .Hide();
+ aReverseCB.SetPosPixel(aLeftPageCB .GetPosPixel());
+ aProspectCB.SetPosPixel(aRightPageCB .GetPosPixel());
+ aBlackFontCB.SetPosPixel(aBackgroundCB.GetPosPixel());
+ aBackgroundCB.SetPosPixel(aCtrlFldCB.GetPosPixel());
+ aCtrlFldCB.SetPosPixel(aDrawCB.GetPosPixel());
+ }
+
+}
+
+#undef _INIT
+//------------------------------------------------------------------------
+
+void SwAddPrinterTabPage::SetPreview(BOOL bPrev)
+{
+ bPreview = bPrev;
+
+ if (bPreview)
+ {
+ aLeftPageCB.Disable();
+ aRightPageCB.Disable();
+ aProspectCB.Disable();
+ aGroup3.Disable();
+ aNoRB.Disable();
+ aOnlyRB.Disable();
+ aEndRB.Disable();
+ aEndPageRB.Disable();
+ }
+}
+
+//------------------------------------------------------------------------
+
+SfxTabPage* SwAddPrinterTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwAddPrinterTabPage( pParent, rAttrSet ) );
+}
+//------------------------------------------------------------------------
+
+
+BOOL SwAddPrinterTabPage::FillItemSet( SfxItemSet& rCoreSet )
+{
+ if ( bAttrModified )
+ {
+ SwAddPrinterItem aAddPrinterAttr (FN_PARAM_ADDPRINTER);
+ aAddPrinterAttr.bPrintGraphic = aGrfCB.IsChecked();
+ aAddPrinterAttr.bPrintTable = aTabCB.IsChecked();
+ aAddPrinterAttr.bPrintDrawing = aDrawCB.IsChecked();
+ aAddPrinterAttr.bPrintControl = aCtrlFldCB.IsChecked();
+ aAddPrinterAttr.bPrintPageBackground = aBackgroundCB.IsChecked();
+ aAddPrinterAttr.bPrintBlackFont = aBlackFontCB.IsChecked();
+
+ aAddPrinterAttr.bPrintLeftPage = aLeftPageCB.IsChecked();
+ aAddPrinterAttr.bPrintRightPage = aRightPageCB.IsChecked();
+ aAddPrinterAttr.bPrintReverse = aReverseCB.IsChecked();
+ aAddPrinterAttr.bPrintProspect = aProspectCB.IsChecked();
+ aAddPrinterAttr.bPaperFromSetup = aPaperFromSetupCB.IsChecked();
+ aAddPrinterAttr.bPrintSingleJobs = aSingleJobsCB.IsChecked();
+
+ if (aNoRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ POSTITS_NONE;
+ if (aOnlyRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ POSTITS_ONLY;
+ if (aEndRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ POSTITS_ENDDOC;
+ if (aEndPageRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ POSTITS_ENDPAGE;
+
+ aAddPrinterAttr.sFaxName = aFaxLB.GetSelectEntry();
+ rCoreSet.Put(aAddPrinterAttr);
+ }
+ return bAttrModified;
+}
+//------------------------------------------------------------------------
+
+
+void SwAddPrinterTabPage::Reset( const SfxItemSet& )
+{
+ const SfxItemSet& rSet = GetItemSet();
+ const SwAddPrinterItem* pAddPrinterAttr = 0;
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_ADDPRINTER , FALSE,
+ (const SfxPoolItem**)&pAddPrinterAttr ))
+ {
+ aGrfCB.Check( pAddPrinterAttr->bPrintGraphic);
+ aTabCB.Check( pAddPrinterAttr->bPrintTable);
+ aDrawCB.Check( pAddPrinterAttr->bPrintDrawing);
+ aCtrlFldCB.Check( pAddPrinterAttr->bPrintControl);
+ aBackgroundCB.Check( pAddPrinterAttr->bPrintPageBackground);
+ aBlackFontCB.Check( pAddPrinterAttr->bPrintBlackFont);
+ aLeftPageCB.Check( pAddPrinterAttr->bPrintLeftPage);
+ aRightPageCB.Check( pAddPrinterAttr->bPrintRightPage);
+ aReverseCB.Check( pAddPrinterAttr->bPrintReverse);
+ aPaperFromSetupCB.Check(pAddPrinterAttr->bPaperFromSetup);
+ aProspectCB.Check( pAddPrinterAttr->bPrintProspect);
+ aSingleJobsCB.Check( pAddPrinterAttr->bPrintSingleJobs);
+
+ aNoRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_NONE ) ;
+ aOnlyRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ONLY ) ;
+ aEndRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ENDDOC ) ;
+ aEndPageRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ENDPAGE ) ;
+ aFaxLB.SelectEntry( pAddPrinterAttr->sFaxName );
+ }
+}
+//-----------------------------------------------------------------------
+
+//-----------------------------------------------------------------------
+
+
+void SwAddPrinterTabPage::Init()
+{
+
+}
+//------------------------------------------------------------------------
+
+
+IMPL_LINK_INLINE_START( SwAddPrinterTabPage, AutoClickHdl, CheckBox *, EMPTYARG )
+{
+ bAttrModified = TRUE;
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwAddPrinterTabPage, AutoClickHdl, CheckBox *, EMPTYARG )
+
+//------------------------------------------------------------------------
+
+
+void SwAddPrinterTabPage::SetFax( const SvStringsDtor& rFaxLst )
+{
+ for ( USHORT i = 0; i < rFaxLst.Count(); ++i )
+ aFaxLB.InsertEntry( *rFaxLst.GetObject(i) );
+ aFaxLB.SelectEntryPos( 0 );
+}
+
+//------------------------------------------------------------------------
+
+
+IMPL_LINK_INLINE_START( SwAddPrinterTabPage, SelectHdl, ListBox *, EMPTYARG )
+{
+ bAttrModified=TRUE;
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwAddPrinterTabPage, SelectHdl, ListBox *, EMPTYARG )
+
+/*-----------------03.09.96 11.53-------------------
+ Tabpage Standardfonts
+--------------------------------------------------*/
+
+
+SwStdFontTabPage::SwStdFontTabPage( Window* pParent,
+ const SfxItemSet& rSet ) :
+ SfxTabPage( pParent, SW_RES( TP_STD_FONT ), rSet),
+ aStandardLbl(this, SW_RES(FT_STANDARD)),
+ aStandardBox(this, SW_RES(LB_STANDARD)),
+ aTitleLbl (this, SW_RES(FT_TITLE )),
+ aTitleBox (this, SW_RES(LB_TITLE )),
+ aListLbl (this, SW_RES(FT_LIST )),
+ aListBox (this, SW_RES(LB_LIST )),
+ aLabelLbl (this, SW_RES(FT_LABEL )),
+ aLabelBox (this, SW_RES(LB_LABEL )),
+ aIdxLbl (this, SW_RES(FT_IDX )),
+ aIdxBox (this, SW_RES(LB_IDX )),
+ aStdChrFrm (this, SW_RES(GB_STDCHR )),
+ aDocOnlyCB (this, SW_RES(CB_DOCONLY )),
+ aStandardPB (this, SW_RES(PB_STANDARD)),
+ pPrt(0),
+ pFontConfig(0),
+ pWrtShell(0),
+ bListDefault(FALSE),
+ bLabelDefault(FALSE),
+ bSetListDefault(TRUE),
+ bSetLabelDefault(TRUE),
+ bSetIdxDefault(TRUE),
+ bIdxDefault(FALSE),
+ bDeletePrinter(FALSE)
+{
+ FreeResource();
+ aStandardPB.SetClickHdl(LINK(this, SwStdFontTabPage, StandardHdl));
+ aStandardBox.SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
+ aListBox .SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
+ aLabelBox .SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
+ aIdxBox .SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
+
+ aDocOnlyCB.Check(SW_MOD()->GetModuleConfig()->IsDefaultFontInCurrDocOnly());
+}
+
+/*-----------------03.09.96 11.53-------------------
+
+--------------------------------------------------*/
+
+SwStdFontTabPage::~SwStdFontTabPage()
+{
+ if(bDeletePrinter)
+ delete pPrt;
+}
+
+/*-----------------03.09.96 11.53-------------------
+
+--------------------------------------------------*/
+
+
+SfxTabPage* SwStdFontTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return new SwStdFontTabPage(pParent, rAttrSet);
+}
+
+/*-----------------03.09.96 11.53-------------------
+
+--------------------------------------------------*/
+
+
+void lcl_SetColl(SwWrtShell* pWrtShell, USHORT nType,
+ SfxPrinter* pPrt, const String& rStyle)
+{
+ BOOL bDelete = FALSE;
+ const SfxFont* pFnt = pPrt ? pPrt->GetFontByName(rStyle): 0;
+ if(!pFnt)
+ {
+ pFnt = new SfxFont(FAMILY_DONTKNOW, rStyle);
+ bDelete = TRUE;
+ }
+ SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(nType);
+ pColl->SetAttr(SvxFontItem(pFnt->GetFamily(), pFnt->GetName(),
+ aEmptyStr, pFnt->GetPitch(), pFnt->GetCharSet()));
+ if(bDelete)
+ {
+ delete (SfxFont*) pFnt;
+ bDelete = FALSE;
+ }
+}
+
+
+/*-----------------03.09.96 11.53-------------------
+
+--------------------------------------------------*/
+
+
+BOOL SwStdFontTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ BOOL bNotDocOnly = !aDocOnlyCB.IsChecked();
+ SW_MOD()->GetModuleConfig()->SetDefaultFontInCurrDocOnly(!bNotDocOnly);
+
+ String sStandard = aStandardBox.GetText();
+ String sTitle = aTitleBox .GetText();
+ String sList = aListBox .GetText();
+ String sLabel = aLabelBox .GetText();
+ String sIdx = aIdxBox .GetText();
+ String sStandardBak = aStandardBox.GetSavedValue();
+ String sTitleBak = aTitleBox .GetSavedValue();
+ String sListBak = aListBox .GetSavedValue();
+ String sLabelBak = aLabelBox .GetSavedValue();
+ String sIdxBak = aIdxBox .GetSavedValue();
+
+
+ if(bNotDocOnly)
+ {
+ if(sStandard != sStandardBak)
+ pFontConfig->SetFontStandard(sStandard);
+ if(sTitle != sTitleBak )
+ pFontConfig->SetFontOutline(sTitle);
+ if(sList != sListBak )
+ pFontConfig->SetFontList(sList);
+ if(sLabel != sLabelBak )
+ pFontConfig->SetFontCaption(sLabel);
+ if(sIdx != sIdxBak )
+ pFontConfig->SetFontIndex(sIdx);
+ }
+ if(pWrtShell)
+ {
+ pWrtShell->StartAllAction();
+ SfxPrinter* pPrt = pWrtShell->GetPrt();
+ BOOL bMod = FALSE;
+ if(sStandard != sShellStd)
+ {
+ BOOL bDelete = FALSE;
+ const SfxFont* pFnt = pPrt ? pPrt->GetFontByName(sStandard): 0;
+ if(!pFnt)
+ {
+ pFnt = new SfxFont(FAMILY_DONTKNOW, sStandard);
+ bDelete = TRUE;
+ }
+ pWrtShell->SetDefault(SvxFontItem(pFnt->GetFamily(), pFnt->GetName(),
+ aEmptyStr, pFnt->GetPitch(), pFnt->GetCharSet()));
+ SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
+ pColl->ResetAttr(RES_CHRATR_FONT);
+ if(bDelete)
+ {
+ delete (SfxFont*) pFnt;
+ bDelete = FALSE;
+ }
+// lcl_SetColl(pWrtShell, RES_POOLCOLL_STANDARD, pPrt, sStandard);
+ bMod = TRUE;
+ }
+ if(sTitle != sShellTitle )
+ {
+ lcl_SetColl(pWrtShell, RES_POOLCOLL_HEADLINE_BASE, pPrt, sTitle);
+ bMod = TRUE;
+ }
+ if(sList != sShellList && (!bListDefault || !bSetListDefault ))
+ {
+ lcl_SetColl(pWrtShell, RES_POOLCOLL_NUMBUL_BASE, pPrt, sList);
+ bMod = TRUE;
+ }
+ if(sLabel != sShellLabel && (!bLabelDefault || !bSetLabelDefault))
+ {
+ lcl_SetColl(pWrtShell, RES_POOLCOLL_LABEL, pPrt, sLabel);
+ bMod = TRUE;
+ }
+ if(sIdx != sShellIndex && (!bIdxDefault || !bSetIdxDefault))
+ {
+ lcl_SetColl(pWrtShell, RES_POOLCOLL_REGISTER_BASE, pPrt, sIdx);
+ bMod = TRUE;
+ }
+ if ( bMod )
+ pWrtShell->SetModified();
+ pWrtShell->EndAllAction();
+ }
+
+ return FALSE;
+}
+
+/*-----------------03.09.96 11.53-------------------
+
+--------------------------------------------------*/
+
+void SwStdFontTabPage::Reset( const SfxItemSet& rSet )
+{
+ const SfxPoolItem* pItem;
+
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_PRINTER, FALSE, &pItem))
+ {
+ pPrt = (SfxPrinter*)((const SwPtrItem*)pItem)->GetValue();
+ }
+ else
+ {
+ SfxItemSet* pSet = new SfxItemSet( *rSet.GetPool(),
+ SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
+ SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
+ 0 );
+ pPrt = new SfxPrinter(pSet);
+ bDeletePrinter = TRUE;
+ }
+ const USHORT nCount = pPrt->GetFontCount();
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ const String &rString = pPrt->GetFont(i)->GetName();
+ aStandardBox.InsertEntry( rString );
+ aTitleBox .InsertEntry( rString );
+ aListBox .InsertEntry( rString );
+ aLabelBox .InsertEntry( rString );
+ aIdxBox .InsertEntry( rString );
+ }
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_STDFONTS, FALSE, &pItem))
+ {
+ pFontConfig = (SwStdFontConfig*)((const SwPtrItem*)pItem)->GetValue();
+ }
+
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_WRTSHELL, FALSE, &pItem))
+ {
+ pWrtShell = (SwWrtShell*)((const SwPtrItem*)pItem)->GetValue();
+ }
+ String sStdBackup;
+ String sOutBackup;
+ String sListBackup;
+ String sCapBackup;
+ String sIdxBackup;
+
+ if(!pWrtShell)
+ {
+ sStdBackup = pFontConfig->GetFontStandard();
+ sOutBackup = pFontConfig->GetFontOutline();
+ sListBackup= pFontConfig->GetFontList();
+ sCapBackup = pFontConfig->GetFontCaption();
+ sIdxBackup = pFontConfig->GetFontIndex();
+ aDocOnlyCB.Enable(FALSE);
+ }
+ else
+ {
+ SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
+ sShellStd = sStdBackup = pColl->GetFont().GetFamilyName();
+
+ pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_HEADLINE_BASE);
+ sShellTitle = sOutBackup = pColl->GetFont().GetFamilyName();
+
+ pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_NUMBUL_BASE);
+ bListDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(RES_CHRATR_FONT, FALSE);
+ sShellList = sListBackup = pColl->GetFont().GetFamilyName();
+
+ pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_LABEL);
+ bLabelDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(RES_CHRATR_FONT, FALSE);
+ sShellLabel = sCapBackup = pColl->GetFont().GetFamilyName();
+
+ pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_REGISTER_BASE);
+ bIdxDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(RES_CHRATR_FONT, FALSE);
+ sShellIndex = sIdxBackup = pColl->GetFont().GetFamilyName();
+ }
+ aStandardBox.SetText(sStdBackup );
+ aTitleBox .SetText(sOutBackup );
+ aListBox .SetText(sListBackup);
+ aLabelBox .SetText(sCapBackup );
+ aIdxBox .SetText(sIdxBackup );
+
+ aStandardBox.SaveValue();
+ aTitleBox .SaveValue();
+ aListBox .SaveValue();
+ aLabelBox .SaveValue();
+ aIdxBox .SaveValue();
+}
+
+/*-----------------07.09.96 12.28-------------------
+
+--------------------------------------------------*/
+
+
+IMPL_LINK( SwStdFontTabPage, StandardHdl, PushButton *, EMPTYARG )
+{
+ aStandardBox.SetText(SwStdFontConfig::GetDefaultFor(FONT_STANDARD));
+ aTitleBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_OUTLINE));
+ aListBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_LIST));
+ aLabelBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_CAPTION));
+ aIdxBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_INDEX));
+ aStandardBox.SaveValue();
+ aTitleBox .SaveValue();
+ aListBox .SaveValue();
+ aLabelBox .SaveValue();
+ aIdxBox .SaveValue();
+
+ return 0;
+}
+/*-----------------17.01.97 15.43-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK( SwStdFontTabPage, ModifyHdl, ComboBox*, pBox )
+{
+ if(pBox == &aStandardBox)
+ {
+ String sEntry = pBox->GetText();
+ if(bSetListDefault && bListDefault)
+ aListBox.SetText(sEntry);
+ if(bSetLabelDefault && bLabelDefault)
+ aLabelBox.SetText(sEntry);
+ if(bSetIdxDefault && bIdxDefault)
+ aIdxBox.SetText(sEntry);
+ }
+ else if(pBox == &aListBox)
+ {
+ bSetListDefault = FALSE;
+ }
+ else if(pBox == &aLabelBox)
+ {
+ bSetLabelDefault = FALSE;
+ }
+ else if(pBox == &aIdxBox)
+ {
+ bSetIdxDefault = FALSE;
+ }
+ return 0;
+}
+
+#undef _INIT
+
+/*-----------------18.01.97 12.14-------------------
+ Optionen Tabelle
+--------------------------------------------------*/
+
+SwTableOptionsTabPage::SwTableOptionsTabPage( Window* pParent, const SfxItemSet& rSet ) :
+ SfxTabPage(pParent, SW_RES(TP_OPTTABLE_PAGE), rSet),
+ aMoveGB( this, ResId(GB_MOVE )),
+ aRowMoveFT( this, ResId(FT_ROWMOVE )),
+ aRowMoveMF( this, ResId(MF_ROWMOVE )),
+ aColMoveFT( this, ResId(FT_COLMOVE )),
+ aColMoveMF( this, ResId(MF_COLMOVE )),
+ aInsertGB( this, ResId(GB_INSERT )),
+ aRowInsertFT( this, ResId(FT_ROWINSERT)),
+ aRowInsertMF( this, ResId(MF_ROWINSERT)),
+ aColInsertFT( this, ResId(FT_COLINSERT)),
+ aColInsertMF( this, ResId(MF_COLINSERT)),
+ aHandlingGB( this, ResId(GB_HANDLING )),
+ aFixRB( this, ResId(RB_FIX )),
+ aFixFT( this, ResId(FT_FIX )),
+ aFixPropRB( this, ResId(RB_FIXPROP )),
+ aFixPropFT( this, ResId(FT_FIXPROP )),
+ aVarRB( this, ResId(RB_VAR )),
+ aVarFT( this, ResId(FT_VAR )),
+ aDescFT( this, ResId(FT_DESC )),
+ pWrtShell(0)
+{
+ FreeResource();
+}
+
+/*-----------------18.01.97 12.43-------------------
+
+--------------------------------------------------*/
+
+SwTableOptionsTabPage::~SwTableOptionsTabPage()
+{
+}
+
+/*-----------------18.01.97 12.43-------------------
+
+--------------------------------------------------*/
+
+SfxTabPage* SwTableOptionsTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return new SwTableOptionsTabPage(pParent, rAttrSet );
+}
+
+/*-----------------18.01.97 12.42-------------------
+
+--------------------------------------------------*/
+
+BOOL SwTableOptionsTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ BOOL bRet = FALSE;
+ SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+
+ if(aRowMoveMF.IsModified())
+ pModOpt->SetTblHMove( (USHORT)aRowMoveMF.Denormalize( aRowMoveMF.GetValue(FUNIT_TWIP)));
+
+ if(aColMoveMF.IsModified())
+ pModOpt->SetTblVMove( (USHORT)aColMoveMF.Denormalize( aColMoveMF.GetValue(FUNIT_TWIP)));
+
+ if(aRowInsertMF.IsModified())
+ pModOpt->SetTblHInsert((USHORT)aRowInsertMF.Denormalize( aRowInsertMF.GetValue(FUNIT_TWIP)));
+
+ if(aColInsertMF.IsModified())
+ pModOpt->SetTblVInsert((USHORT)aColInsertMF.Denormalize( aColInsertMF.GetValue(FUNIT_TWIP)));
+
+ TblChgMode eMode;
+ if(aFixRB.IsChecked())
+ eMode = TBLFIX_CHGABS;
+ else if(aFixPropRB.IsChecked())
+ eMode = TBLFIX_CHGPROP;
+ else
+ eMode = TBLVAR_CHGABS;
+ if(eMode != pModOpt->GetTblMode())
+ {
+ pModOpt->SetTblMode(eMode);
+ // der Tabellen-Tastatur-Modus hat sich geaendert, das soll
+ // jetzt auch die aktuelle Tabelle erfahren
+ if(pWrtShell && SwWrtShell::SEL_TBL & pWrtShell->GetSelectionType())
+ {
+ pWrtShell->SetTblChgMode(eMode);
+ }
+ static USHORT __READONLY_DATA aInva[] =
+ { FN_TABLE_MODE_FIX,
+ FN_TABLE_MODE_FIX_PROP,
+ FN_TABLE_MODE_VARIABLE,
+ 0
+ };
+ pWrtShell->GetView().GetViewFrame()->GetBindings().Invalidate( aInva );
+ bRet = TRUE;
+ }
+
+ return bRet;
+}
+/*-----------------18.01.97 12.42-------------------
+
+--------------------------------------------------*/
+
+void SwTableOptionsTabPage::Reset( const SfxItemSet& rSet)
+{
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ if ( rSet.GetItemState( SID_ATTR_METRIC ) >= SFX_ITEM_AVAILABLE )
+ {
+ const SfxUInt16Item& rItem = (SfxUInt16Item&)rSet.Get( SID_ATTR_METRIC );
+ FieldUnit eFieldUnit = (FieldUnit)rItem.GetValue();
+ ::SetFieldUnit( aRowMoveMF, eFieldUnit );
+ ::SetFieldUnit( aColMoveMF, eFieldUnit );
+ ::SetFieldUnit( aRowInsertMF, eFieldUnit );
+ ::SetFieldUnit( aColInsertMF, eFieldUnit );
+ }
+
+ aRowMoveMF .SetValue(aRowMoveMF.Normalize(pModOpt->GetTblHMove()), FUNIT_TWIP);
+ aColMoveMF .SetValue(aColMoveMF.Normalize(pModOpt->GetTblVMove()), FUNIT_TWIP);
+ aRowInsertMF.SetValue(aRowInsertMF.Normalize(pModOpt->GetTblHInsert()), FUNIT_TWIP);
+ aColInsertMF.SetValue(aColInsertMF.Normalize(pModOpt->GetTblVInsert()), FUNIT_TWIP);
+
+ switch(pModOpt->GetTblMode())
+ {
+ case TBLFIX_CHGABS: aFixRB.Check(); break;
+ case TBLFIX_CHGPROP: aFixPropRB.Check(); break;
+ case TBLVAR_CHGABS: aVarRB.Check(); break;
+ }
+}
+/*-----------------19.04.97 13:20-------------------
+
+--------------------------------------------------*/
+SwSourceViewOptionsTabPage::SwSourceViewOptionsTabPage(
+ Window* pParent, const SfxItemSet& rSet ) :
+ SfxTabPage(pParent, SW_RES(TP_OPTSRCVIEW), rSet),
+ aColorGB(this, ResId(GB_COLOR )),
+ aSGMLFT(this, ResId(FT_SGML )),
+ aSGMLLB(this, ResId(LB_SGML )),
+ aCommentFT(this, ResId(FT_COMMENT)),
+ aCommentLB(this, ResId(LB_COMMENT)),
+ aKeywdFT(this, ResId(FT_KEYWD )),
+ aKeywdLB(this, ResId(LB_KEYWD )),
+ aUnknownFT(this, ResId(FT_UNKNOWN)),
+ aUnknownLB(this, ResId(LB_UNKNOWN))
+{
+ FreeResource();
+ String sSGML ;
+ String sComment ;
+ String sKeywd ;
+ String sUnknown ;
+
+ XColorTable* pColorTbl = OFF_APP()->GetStdColorTable();
+ SwSrcViewConfig* pSrcVwCfg = SW_MOD()->GetSourceViewConfig();
+ USHORT nCount = (USHORT)pColorTbl->Count();
+ aSGMLLB .SetUpdateMode(FALSE);
+ aCommentLB .SetUpdateMode(FALSE);
+ aKeywdLB .SetUpdateMode(FALSE);
+ aUnknownLB .SetUpdateMode(FALSE);
+
+ Color aTmpColSGML(pSrcVwCfg->GetSyntaxColor(SRC_SYN_SGML));
+ Color aTmpColComment(pSrcVwCfg->GetSyntaxColor(SRC_SYN_COMMENT));
+ Color aTmpColKey(pSrcVwCfg->GetSyntaxColor(SRC_SYN_KEYWRD));
+ Color aTmpColUnknown(pSrcVwCfg->GetSyntaxColor(SRC_SYN_UNKNOWN));
+
+ for(USHORT i = 0; i < nCount; i++)
+ {
+ XColorEntry* pEntry = pColorTbl->Get(i);
+ Color aColor = pEntry->GetColor();
+ String sName = pEntry->GetName();
+ if(aColor == aTmpColSGML )
+ sSGML = sName;
+ if(aColor == aTmpColComment )
+ sComment = sName;
+ if(aColor == aTmpColKey )
+ sKeywd = sName;
+ if(aColor == aTmpColUnknown )
+ sUnknown = sName;
+ aSGMLLB .InsertEntry(aColor, sName);
+ aCommentLB .InsertEntry(aColor, sName);
+ aKeywdLB .InsertEntry(aColor, sName);
+ aUnknownLB .InsertEntry(aColor, sName);
+ }
+ aSGMLLB .SetUpdateMode(TRUE);
+ aCommentLB .SetUpdateMode(TRUE);
+ aKeywdLB .SetUpdateMode(TRUE);
+ aUnknownLB .SetUpdateMode(TRUE);
+ aSGMLLB .SelectEntry(sSGML );
+ aCommentLB .SelectEntry(sComment );
+ aKeywdLB .SelectEntry(sKeywd );
+ aUnknownLB .SelectEntry(sUnknown );
+
+}
+
+/*-----------------19.04.97 13:22-------------------
+
+--------------------------------------------------*/
+SwSourceViewOptionsTabPage::~SwSourceViewOptionsTabPage()
+{
+}
+
+/*-----------------19.04.97 13:22-------------------
+
+--------------------------------------------------*/
+SfxTabPage* SwSourceViewOptionsTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return new SwSourceViewOptionsTabPage(pParent, rAttrSet);
+}
+
+/*-----------------19.04.97 13:23-------------------
+
+--------------------------------------------------*/
+BOOL SwSourceViewOptionsTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ SwSrcViewConfig* pSrcVwCfg = SW_MOD()->GetSourceViewConfig();
+ BOOL bModified = FALSE;
+ if(aSGMLLB.GetSelectEntry().Len() &&
+ !aSGMLLB.GetSelectEntryColor().IsRGBEqual(pSrcVwCfg->GetSyntaxColor(SRC_SYN_SGML)))
+ {
+ bModified = TRUE;
+ pSrcVwCfg->SetSyntaxColor(SRC_SYN_SGML, aSGMLLB.GetSelectEntryColor());
+ }
+ if(aCommentLB.GetSelectEntry().Len() &&
+ !aCommentLB.GetSelectEntryColor().IsRGBEqual(pSrcVwCfg->GetSyntaxColor(SRC_SYN_COMMENT)))
+ {
+ bModified = TRUE;
+ pSrcVwCfg->SetSyntaxColor(SRC_SYN_COMMENT, aCommentLB.GetSelectEntryColor());
+ }
+ if(aKeywdLB.GetSelectEntry().Len() &&
+ !aKeywdLB.GetSelectEntryColor().IsRGBEqual(pSrcVwCfg->GetSyntaxColor(SRC_SYN_KEYWRD)))
+ {
+ bModified = TRUE;
+ pSrcVwCfg->SetSyntaxColor(SRC_SYN_KEYWRD, aKeywdLB.GetSelectEntryColor());
+ }
+ if(aUnknownLB.GetSelectEntry().Len() &&
+ !aUnknownLB.GetSelectEntryColor().IsRGBEqual(pSrcVwCfg->GetSyntaxColor(SRC_SYN_UNKNOWN)))
+ {
+ bModified = TRUE;
+ pSrcVwCfg->SetSyntaxColor(SRC_SYN_UNKNOWN, aUnknownLB.GetSelectEntryColor());
+ }
+ if(bModified)
+ {
+ TypeId aType(TYPE(SwSrcView));
+ SfxViewShell* pShell = SfxViewShell::GetFirst(&aType);
+ while( pShell )
+ {
+ ((SwSrcView*)pShell)->GetEditWin().SyntaxColorsChanged();
+ pShell = SfxViewShell::GetNext(*pShell, &aType);
+ }
+
+ }
+ return FALSE;
+}
+
+/*-----------------19.04.97 13:23-------------------
+
+--------------------------------------------------*/
+void SwSourceViewOptionsTabPage::Reset( const SfxItemSet& rSet )
+{
+ SwSrcViewConfig* pSrcVwCfg = SW_MOD()->GetSourceViewConfig();
+
+ aSGMLLB .SelectEntry( pSrcVwCfg->GetSyntaxColor(SRC_SYN_SGML) );
+ aCommentLB .SelectEntry( pSrcVwCfg->GetSyntaxColor(SRC_SYN_COMMENT) );
+ aKeywdLB .SelectEntry( pSrcVwCfg->GetSyntaxColor(SRC_SYN_KEYWRD) );
+ aUnknownLB .SelectEntry( pSrcVwCfg->GetSyntaxColor(SRC_SYN_UNKNOWN) );
+}
+
+/* */
+
+/*-----------------31.10.97 17:55-------------------
+ TabPage fuer ShadowCrsr
+--------------------------------------------------*/
+
+SwShdwCrsrOptionsTabPage::SwShdwCrsrOptionsTabPage( Window* pParent,
+ const SfxItemSet& rSet )
+ : SfxTabPage(pParent, SW_RES(TP_OPTSHDWCRSR), rSet),
+ aFlagGB( this, SW_RES( GB_SHDWCRSFLAG )),
+ aOnOffCB( this, SW_RES( CB_SHDWCRSONOFF )),
+ aFillModeFT( this, SW_RES( FT_SHDWCRSFILLMODE )),
+ aFillMarginRB( this, SW_RES( RB_SHDWCRSFILLMARGIN )),
+ aFillIndentRB( this, SW_RES( RB_SHDWCRSFILLINDENT )),
+ aFillTabRB( this, SW_RES( RB_SHDWCRSFILLTAB )),
+ aFillSpaceRB( this, SW_RES( RB_SHDWCRSFILLSPACE )),
+// aColorGB( this, SW_RES( GB_SHDWCRSCOLOR )),
+ aColorFT( this, SW_RES( FT_SHDWCRSCOLOR )),
+ aColorLB( this, SW_RES( LB_SHDWCRSCOLOR )),
+ aCrsrOptGB ( this, SW_RES( GB_CRSR_OPT)),
+ aCrsrInProtCB( this, SW_RES( CB_ALLOW_IN_PROT ))
+{
+ FreeResource();
+
+ const SfxPoolItem* pItem = 0;
+ SwShadowCursorItem aOpt;
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_SHADOWCURSOR, FALSE, &pItem ))
+ aOpt = *(SwShadowCursorItem*)pItem;
+
+ aOnOffCB.Check( aOpt.IsOn() );
+
+ BYTE eMode = aOpt.GetMode();
+ aFillIndentRB.Check( FILL_INDENT == eMode );
+ aFillMarginRB.Check( FILL_MARGIN == eMode );
+ aFillTabRB.Check( FILL_TAB == eMode );
+ aFillSpaceRB.Check( FILL_SPACE == eMode );
+
+ const Color& rShdwCol = aOpt.GetColor();
+
+ String sColor;
+ aColorLB.SetUpdateMode(FALSE);
+
+ XColorTable* pColorTbl = OFF_APP()->GetStdColorTable();
+ for( USHORT i = 0; i < pColorTbl->Count(); ++i )
+ {
+ XColorEntry* pEntry = pColorTbl->Get( i );
+ Color aColor = pEntry->GetColor();
+ String sName = pEntry->GetName();
+ if( aColor == rShdwCol )
+ sColor = sName;
+ aColorLB.InsertEntry( aColor, sName );
+ }
+ aColorLB.SetUpdateMode( TRUE );
+ aColorLB.SelectEntry( sColor );
+}
+
+SwShdwCrsrOptionsTabPage::~SwShdwCrsrOptionsTabPage()
+{
+}
+
+
+SfxTabPage* SwShdwCrsrOptionsTabPage::Create( Window* pParent, const SfxItemSet& rSet )
+{
+ return new SwShdwCrsrOptionsTabPage( pParent, rSet );
+}
+
+BOOL SwShdwCrsrOptionsTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ SwShadowCursorItem aOpt;
+ aOpt.SetOn( aOnOffCB.IsChecked() );
+
+ BYTE eMode;
+ if( aFillIndentRB.IsChecked() )
+ eMode= FILL_INDENT;
+ else if( aFillMarginRB.IsChecked() )
+ eMode = FILL_MARGIN;
+ else if( aFillTabRB.IsChecked() )
+ eMode = FILL_TAB;
+ else
+ eMode = FILL_SPACE;
+ aOpt.SetMode( eMode );
+ aOpt.SetColor( aColorLB.GetSelectEntryColor() );
+
+ BOOL bRet = FALSE;
+ const SfxPoolItem* pItem = 0;
+ if( SFX_ITEM_SET != rSet.GetItemState( FN_PARAM_SHADOWCURSOR, FALSE, &pItem )
+ || ((SwShadowCursorItem&)*pItem) != aOpt )
+ {
+ rSet.Put( aOpt );
+ bRet = TRUE;
+ }
+
+ if( aCrsrInProtCB.IsChecked() != aCrsrInProtCB.GetSavedValue())
+ {
+ rSet.Put(SfxBoolItem(FN_PARAM_CRSR_IN_PROTECTED, aCrsrInProtCB.IsChecked()));
+ bRet |= TRUE;
+ }
+
+ return bRet;
+}
+
+void SwShdwCrsrOptionsTabPage::Reset( const SfxItemSet& rSet )
+{
+ const SfxPoolItem* pItem = 0;
+ SwShadowCursorItem aOpt;
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_SHADOWCURSOR, FALSE, &pItem ))
+ aOpt = *(SwShadowCursorItem*)pItem;
+
+ aOnOffCB.Check( aOpt.IsOn() );
+
+ BYTE eMode = aOpt.GetMode();
+ aFillIndentRB.Check( FILL_INDENT == eMode );
+ aFillMarginRB.Check( FILL_MARGIN == eMode );
+ aFillTabRB.Check( FILL_TAB == eMode );
+ aFillSpaceRB.Check( FILL_SPACE == eMode );
+
+ aColorLB.SelectEntry( aOpt.GetColor() );
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_CRSR_IN_PROTECTED, FALSE, &pItem ))
+ aCrsrInProtCB.Check(((const SfxBoolItem*)pItem)->GetValue());
+ aCrsrInProtCB.SaveValue();
+}
+
+/*-----------------31.10.97 17:55-------------------
+ TabPage fuer Redlining
+--------------------------------------------------*/
+
+struct CharAttr
+{
+ USHORT nItemId;
+ USHORT nAttr;
+};
+
+// Editieren entspricht Einfuegen-Attributen
+static CharAttr __FAR_DATA aInsertAttr[] =
+{
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_NOT_MAPPED,
+ SID_ATTR_CHAR_WEIGHT, WEIGHT_BOLD,
+ SID_ATTR_CHAR_POSTURE, ITALIC_NORMAL,
+ SID_ATTR_CHAR_UNDERLINE, UNDERLINE_SINGLE,
+ SID_ATTR_CHAR_UNDERLINE, UNDERLINE_DOUBLE,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_VERSALIEN,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_GEMEINE,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_KAPITAELCHEN,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_TITEL,
+ SID_ATTR_BRUSH, 0,
+};
+
+static CharAttr __FAR_DATA aDeletedAttr[] =
+{
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_NOT_MAPPED,
+ SID_ATTR_CHAR_WEIGHT, WEIGHT_BOLD,
+ SID_ATTR_CHAR_POSTURE, ITALIC_NORMAL,
+ SID_ATTR_CHAR_STRIKEOUT, STRIKEOUT_SINGLE,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_VERSALIEN,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_GEMEINE,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_KAPITAELCHEN,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_TITEL,
+ SID_ATTR_BRUSH, 0,
+};
+
+static CharAttr __FAR_DATA aChangedAttr[] =
+{
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_NOT_MAPPED,
+ SID_ATTR_CHAR_WEIGHT, WEIGHT_BOLD,
+ SID_ATTR_CHAR_POSTURE, ITALIC_NORMAL,
+ SID_ATTR_CHAR_UNDERLINE, UNDERLINE_SINGLE,
+ SID_ATTR_CHAR_UNDERLINE, UNDERLINE_DOUBLE,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_VERSALIEN,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_GEMEINE,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_KAPITAELCHEN,
+ SID_ATTR_CHAR_CASEMAP, SVX_CASEMAP_TITEL,
+ SID_ATTR_BRUSH, 0,
+};
+
+/*-----------------------------------------------------------------------
+ Beschreibung: Markierungsvorschau
+ -----------------------------------------------------------------------*/
+
+SwMarkPreview::SwMarkPreview( Window *pParent, const ResId& rResID ) :
+
+ Window(pParent, rResID),
+
+ aTransColor (COL_TRANSPARENT),
+ aMarkColor (COL_LIGHTRED),
+
+ nMarkPos(0)
+
+{
+ SetMapMode(MAP_PIXEL);
+
+ const Size aSz(GetOutputSizePixel());
+
+ // Seite
+ aPage.SetSize(Size(aSz.Width() - 3, aSz.Height() - 3));
+
+ ULONG nOutWPix = aPage.GetWidth();
+ ULONG nOutHPix = aPage.GetHeight();
+
+ // PrintArea
+ ULONG nLBorder = 8;
+ ULONG nRBorder = 8;
+ ULONG nTBorder = 4;
+ ULONG nBBorder = 4;
+
+ aLeftPagePrtArea = Rectangle(Point(nLBorder, nTBorder), Point((nOutWPix - 1) - nRBorder, (nOutHPix - 1) - nBBorder));
+ USHORT nWidth = (USHORT)aLeftPagePrtArea.GetWidth();
+ USHORT nKorr = (nWidth & 1) != 0 ? 0 : 1;
+ aLeftPagePrtArea.SetSize(Size(nWidth / 2 - (nLBorder + nRBorder) / 2 + nKorr, aLeftPagePrtArea.GetHeight()));
+
+ aRightPagePrtArea = aLeftPagePrtArea;
+ aRightPagePrtArea.Move(aLeftPagePrtArea.GetWidth() + nLBorder + nRBorder + 1, 0);
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SwMarkPreview::~SwMarkPreview()
+{
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+void SwMarkPreview::Paint(const Rectangle &rRect)
+{
+ // Schatten zeichnen
+ Rectangle aShadow(aPage);
+ aShadow += Point(3, 3);
+ DrawRect(aShadow, Color(COL_GRAY), aTransColor);
+
+ // Seite zeichnen
+ DrawRect(aPage, Color(COL_WHITE), Color(COL_BLACK));
+
+ // Separator zeichnen
+ Rectangle aPageSeparator(aPage);
+ aPageSeparator.SetSize(Size(2, aPageSeparator.GetHeight()));
+ aPageSeparator.Move(aPage.GetWidth() / 2 - 1, 0);
+ DrawRect(aPageSeparator, Color(COL_BLACK), aTransColor);
+
+ PaintPage(aLeftPagePrtArea);
+ PaintPage(aRightPagePrtArea);
+
+ Rectangle aLeftMark(Point(aPage.Left() + 2, aLeftPagePrtArea.Top() + 4), Size(aLeftPagePrtArea.Left() - 4, 2));
+ Rectangle aRightMark(Point(aRightPagePrtArea.Right() + 2, aRightPagePrtArea.Bottom() - 6), Size(aLeftPagePrtArea.Left() - 4, 2));
+
+ switch (nMarkPos)
+ {
+ case 1: // Links
+ aRightMark.SetPos(Point(aRightPagePrtArea.Left() - 2 - aRightMark.GetWidth(), aRightMark.Top()));
+ break;
+
+ case 2: // Rechts
+ aLeftMark.SetPos(Point(aLeftPagePrtArea.Right() + 2, aLeftMark.Top()));
+ break;
+
+ case 3: // Aussen
+ break;
+
+ case 4: // Innen
+ aLeftMark.SetPos(Point(aLeftPagePrtArea.Right() + 2, aLeftMark.Top()));
+ aRightMark.SetPos(Point(aRightPagePrtArea.Left() - 2 - aRightMark.GetWidth(), aRightMark.Top()));
+ break;
+
+ case 0: // Keine
+ default:
+ return;
+ }
+ DrawRect(aLeftMark, aMarkColor, aTransColor);
+ DrawRect(aRightMark, aMarkColor, aTransColor);
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+void SwMarkPreview::PaintPage(const Rectangle &rRect)
+{
+ // PrintArea zeichnen
+ DrawRect(rRect, aTransColor, Color(COL_GRAY));
+
+ // Testabsatz zeichnen
+ ULONG nLTxtBorder = 4;
+ ULONG nRTxtBorder = 4;
+ ULONG nTTxtBorder = 4;
+
+ Rectangle aTextLine = rRect;
+ aTextLine.SetSize(Size(aTextLine.GetWidth(), 2));
+ aTextLine.Left() += nLTxtBorder;
+ aTextLine.Right() -= nRTxtBorder;
+ aTextLine.Move(0, nTTxtBorder);
+
+ USHORT nStep, nLines;
+ const long nTxtLineHeight = aTextLine.GetHeight();
+
+ nStep = aTextLine.GetHeight() + 2;
+ nLines = (USHORT)(rRect.GetHeight() / (aTextLine.GetHeight() + 2)) - 1;
+
+ // Text simulieren
+ //
+ for (USHORT i = 0; i < nLines; ++i)
+ {
+ if (i == (nLines - 1))
+ aTextLine.SetSize(Size(aTextLine.GetWidth() / 2, aTextLine.GetHeight()));
+
+ if (aPage.IsInside(aTextLine))
+ DrawRect(aTextLine, Color(COL_GRAY), aTransColor);
+
+ aTextLine.Move(0, nStep);
+ }
+ aTextLine.Move(0, -nStep);
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+void SwMarkPreview::DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor)
+{
+ SetFillColor(rFillColor);
+ SetLineColor(rLineColor);
+ Window::DrawRect(rRect);
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SwRedlineOptionsTabPage::SwRedlineOptionsTabPage( Window* pParent,
+ const SfxItemSet& rSet )
+ : SfxTabPage(pParent, SW_RES(TP_REDLINE_OPT), rSet),
+
+ aInsertRB ( this, SW_RES( RB_INSERT )),
+ aDeletedRB ( this, SW_RES( RB_DELETED )),
+ aChangedRB ( this, SW_RES( RB_CHANGED )),
+
+ aInsertFT ( this, SW_RES( FT_TE_ATTRIB )),
+ aInsertLB ( this, SW_RES( LB_TE_ATTRIB )),
+ aDeletedLB ( this, SW_RES( LB_TL_ATTRIB )),
+ aChangedLB ( this, SW_RES( LB_TC_ATTRIB )),
+
+ aInsertColorFT ( this, SW_RES( FT_TE_COL )),
+ aInsertColorLB ( this, SW_RES( LB_TE_COL )),
+ aDeletedColorLB ( this, SW_RES( LB_TL_COL )),
+ aChangedColorLB ( this, SW_RES( LB_TC_COL )),
+
+ aAttribPreviewWN ( this, SW_RES( WIN_TE )),
+ aInsertGB ( this, SW_RES( GB_TE )),
+
+ aMarkPosFT ( this, SW_RES( FT_MARKPOS )),
+ aMarkPosLB ( this, SW_RES( LB_MARKPOS )),
+ aMarkColorFT ( this, SW_RES( FT_LC_COL )),
+ aMarkColorLB ( this, SW_RES( LB_LC_COL )),
+ aMarkPreviewWN ( this, SW_RES( WIN_MARK )),
+ aChangedGB ( this, SW_RES( GB_LC )),
+ sAuthor ( SW_RES( STR_AUTHOR )),
+ sNone ( SW_RES( STR_NOTHING ))
+
+{
+ FreeResource();
+
+ Link aLk = LINK(this, SwRedlineOptionsTabPage, RadioHdl);
+ aInsertRB.SetClickHdl( aLk );
+ aDeletedRB.SetClickHdl( aLk );
+ aChangedRB.SetClickHdl( aLk );
+
+ aLk = LINK(this, SwRedlineOptionsTabPage, AttribHdl);
+ aInsertLB.SetSelectHdl( aLk );
+ aDeletedLB.SetSelectHdl( aLk );
+ aChangedLB.SetSelectHdl( aLk );
+
+ aLk = LINK(this, SwRedlineOptionsTabPage, ColorHdl);
+ aInsertColorLB.SetSelectHdl( aLk );
+ aDeletedColorLB.SetSelectHdl( aLk );
+ aChangedColorLB.SetSelectHdl( aLk );
+
+ aLk = LINK(this, SwRedlineOptionsTabPage, ChangedMaskPrevHdl);
+ aMarkPosLB.SetSelectHdl( aLk );
+ aMarkColorLB.SetSelectHdl( aLk );
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SwRedlineOptionsTabPage::~SwRedlineOptionsTabPage()
+{
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SfxTabPage* SwRedlineOptionsTabPage::Create( Window* pParent, const SfxItemSet& rSet )
+{
+ return new SwRedlineOptionsTabPage( pParent, rSet );
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+BOOL SwRedlineOptionsTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ CharAttr *pAttr;
+ SwModuleOptions *pOpt = SW_MOD()->GetModuleConfig();
+
+ AuthorCharAttr aInsertAttr;
+ AuthorCharAttr aDeletedAttr;
+ AuthorCharAttr aChangedAttr;
+
+ AuthorCharAttr aOldInsertAttr(pOpt->GetInsertAuthorAttr());
+ AuthorCharAttr aOldDeletedAttr(pOpt->GetDeletedAuthorAttr());
+ AuthorCharAttr aOldChangedAttr(pOpt->GetFormatAuthorAttr());
+
+ ULONG nOldMarkColor = pOpt->GetMarkAlignColor().GetColor();
+ USHORT nOldMarkMode = pOpt->GetMarkAlignMode();
+
+ USHORT nPos = aInsertLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ pAttr = (CharAttr *)aInsertLB.GetEntryData(nPos);
+ aInsertAttr.nItemId = pAttr->nItemId;
+ aInsertAttr.nAttr = pAttr->nAttr;
+
+ nPos = aInsertColorLB.GetSelectEntryPos();
+
+ switch (nPos)
+ {
+ case 0:
+ aInsertAttr.nColor = COL_NONE;
+ break;
+ case 1:
+ case LISTBOX_ENTRY_NOTFOUND:
+ aInsertAttr.nColor = COL_TRANSPARENT;
+ break;
+ default:
+ aInsertAttr.nColor = aInsertColorLB.GetEntryColor(nPos).GetColor();
+ break;
+ }
+
+ pOpt->SetInsertAuthorAttr(aInsertAttr);
+ }
+
+ nPos = aDeletedLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ pAttr = (CharAttr *)aDeletedLB.GetEntryData(nPos);
+ aDeletedAttr.nItemId = pAttr->nItemId;
+ aDeletedAttr.nAttr = pAttr->nAttr;
+
+ nPos = aDeletedColorLB.GetSelectEntryPos();
+
+ switch (nPos)
+ {
+ case 0:
+ aDeletedAttr.nColor = COL_NONE;
+ break;
+ case 1:
+ case LISTBOX_ENTRY_NOTFOUND:
+ aDeletedAttr.nColor = COL_TRANSPARENT;
+ break;
+ default:
+ aDeletedAttr.nColor = aDeletedColorLB.GetEntryColor(nPos).GetColor();
+ break;
+ }
+
+ pOpt->SetDeletedAuthorAttr(aDeletedAttr);
+ }
+
+ nPos = aChangedLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ pAttr = (CharAttr *)aChangedLB.GetEntryData(nPos);
+ aChangedAttr.nItemId = pAttr->nItemId;
+ aChangedAttr.nAttr = pAttr->nAttr;
+
+ nPos = aChangedColorLB.GetSelectEntryPos();
+
+ switch (nPos)
+ {
+ case 0:
+ aChangedAttr.nColor = COL_NONE;
+ break;
+ case 1:
+ case LISTBOX_ENTRY_NOTFOUND:
+ aChangedAttr.nColor = COL_TRANSPARENT;
+ break;
+ default:
+ aChangedAttr.nColor = aChangedColorLB.GetEntryColor(nPos).GetColor();
+ break;
+ }
+
+ pOpt->SetFormatAuthorAttr(aChangedAttr);
+ }
+
+ nPos = 0;
+ switch (aMarkPosLB.GetSelectEntryPos())
+ {
+ case 0: nPos = HORI_NONE; break;
+ case 1: nPos = HORI_LEFT; break;
+ case 2: nPos = HORI_RIGHT; break;
+ case 3: nPos = HORI_OUTSIDE; break;
+ case 4: nPos = HORI_INSIDE; break;
+ }
+ pOpt->SetMarkAlignMode(nPos);
+
+ pOpt->SetMarkAlignColor(aMarkColorLB.GetSelectEntryColor());
+
+ if (!(aInsertAttr == aOldInsertAttr) ||
+ !(aDeletedAttr == aOldDeletedAttr) ||
+ !(aChangedAttr == aOldChangedAttr) ||
+ nOldMarkColor != pOpt->GetMarkAlignColor().GetColor() ||
+ nOldMarkMode != pOpt->GetMarkAlignMode())
+ {
+ // Alle Dokumente aktualisieren
+ TypeId aType(TYPE(SwDocShell));
+ SwDocShell* pDocShell = (SwDocShell*)SfxObjectShell::GetFirst(&aType);
+
+ while( pDocShell )
+ {
+ pDocShell->GetWrtShell()->UpdateRedlineAttr();
+ pDocShell = (SwDocShell*)SfxObjectShell::GetNext(*pDocShell, &aType);
+ }
+ }
+
+ return FALSE;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+void SwRedlineOptionsTabPage::Reset( const SfxItemSet& rSet )
+{
+ const SwModuleOptions *pOpt = SW_MOD()->GetModuleConfig();
+
+ const AuthorCharAttr &rInsertAttr = pOpt->GetInsertAuthorAttr();
+ const AuthorCharAttr &rDeletedAttr = pOpt->GetDeletedAuthorAttr();
+ const AuthorCharAttr &rChangedAttr = pOpt->GetFormatAuthorAttr();
+
+ // Preview initialisieren
+ InitFontStyle(aAttribPreviewWN);
+
+ // Farblistboxen initialisieren
+ String sColor;
+ aInsertColorLB.SetUpdateMode(FALSE);
+ aDeletedColorLB.SetUpdateMode(FALSE);
+ aChangedColorLB.SetUpdateMode(FALSE);
+ aMarkColorLB.SetUpdateMode(FALSE);
+
+ aInsertColorLB.InsertEntry(sNone);
+ aDeletedColorLB.InsertEntry(sNone);
+ aChangedColorLB.InsertEntry(sNone);
+
+ aInsertColorLB.InsertEntry(sAuthor);
+ aDeletedColorLB.InsertEntry(sAuthor);
+ aChangedColorLB.InsertEntry(sAuthor);
+
+ XColorTable* pColorTbl = OFF_APP()->GetStdColorTable();
+ for( USHORT i = 0; i < pColorTbl->Count(); ++i )
+ {
+ XColorEntry* pEntry = pColorTbl->Get( i );
+ Color aColor = pEntry->GetColor();
+ String sName = pEntry->GetName();
+
+ aInsertColorLB.InsertEntry( aColor, sName );
+ aDeletedColorLB.InsertEntry( aColor, sName );
+ aChangedColorLB.InsertEntry( aColor, sName );
+ aMarkColorLB.InsertEntry( aColor, sName );
+ }
+ aInsertColorLB.SetUpdateMode( TRUE );
+ aDeletedColorLB.SetUpdateMode( TRUE );
+ aChangedColorLB.SetUpdateMode( TRUE );
+ aMarkColorLB.SetUpdateMode( TRUE );
+
+ ULONG nColor = rInsertAttr.nColor;
+
+ switch (nColor)
+ {
+ case COL_TRANSPARENT:
+ aInsertColorLB.SelectEntryPos(1);
+ break;
+ case COL_NONE:
+ aInsertColorLB.SelectEntryPos(0);
+ break;
+ default:
+ aInsertColorLB.SelectEntry(Color(nColor));
+ }
+
+ nColor = rDeletedAttr.nColor;
+
+ switch (nColor)
+ {
+ case COL_TRANSPARENT:
+ aDeletedColorLB.SelectEntryPos(1);
+ break;
+ case COL_NONE:
+ aDeletedColorLB.SelectEntryPos(0);
+ break;
+ default:
+ aDeletedColorLB.SelectEntry(Color(nColor));
+ }
+
+ nColor = rChangedAttr.nColor;
+
+ switch (nColor)
+ {
+ case COL_TRANSPARENT:
+ aChangedColorLB.SelectEntryPos(1);
+ break;
+ case COL_NONE:
+ aChangedColorLB.SelectEntryPos(0);
+ break;
+ default:
+ aChangedColorLB.SelectEntry(Color(nColor));
+ }
+
+ aMarkColorLB.SelectEntry(pOpt->GetMarkAlignColor());
+
+ // Attributlistboxen initialisieren
+ USHORT nNum = sizeof(aInsertAttr) / sizeof(CharAttr);
+
+ for (i = 0; i < nNum; i++)
+ {
+ aInsertLB.SetEntryData(i, &aInsertAttr[i]);
+ if (aInsertAttr[i].nItemId == rInsertAttr.nItemId &&
+ aInsertAttr[i].nAttr == rInsertAttr.nAttr)
+ aInsertLB.SelectEntryPos(i);
+ }
+
+ nNum = sizeof(aDeletedAttr) / sizeof(CharAttr);
+ for (i = 0; i < nNum; i++)
+ {
+ aDeletedLB.SetEntryData(i, &aDeletedAttr[i]);
+ if (aDeletedAttr[i].nItemId == rDeletedAttr.nItemId &&
+ aDeletedAttr[i].nAttr == rDeletedAttr.nAttr)
+ aDeletedLB.SelectEntryPos(i);
+ }
+
+ nNum = sizeof(aChangedAttr) / sizeof(CharAttr);
+ for (i = 0; i < nNum; i++)
+ {
+ aChangedLB.SetEntryData(i, &aChangedAttr[i]);
+ if (aChangedAttr[i].nItemId == rChangedAttr.nItemId &&
+ aChangedAttr[i].nAttr == rChangedAttr.nAttr)
+ aChangedLB.SelectEntryPos(i);
+ }
+
+ USHORT nPos = 0;
+ switch (pOpt->GetMarkAlignMode())
+ {
+ case HORI_NONE: nPos = 0; break;
+ case HORI_LEFT: nPos = 1; break;
+ case HORI_RIGHT: nPos = 2; break;
+ case HORI_OUTSIDE: nPos = 3; break;
+ case HORI_INSIDE: nPos = 4; break;
+ }
+ aMarkPosLB.SelectEntryPos(nPos);
+
+ // Einstellungen in Preview anzeigen
+ AttribHdl(&aInsertLB);
+ ColorHdl(&aInsertColorLB);
+
+ ChangedMaskPrevHdl();
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineOptionsTabPage, AttribHdl, ListBox *, pLB )
+{
+ SvxFontPrevWindow *pPrev = &aAttribPreviewWN;
+ ColorListBox *pColorLB;
+
+ if (pLB == &aInsertLB)
+ pColorLB = &aInsertColorLB;
+ else if (pLB == &aDeletedLB)
+ pColorLB = &aDeletedColorLB;
+ else
+ pColorLB = &aChangedColorLB;
+
+ SvxFont& rFont = pPrev->GetFont();
+ rFont.SetWeight(WEIGHT_NORMAL);
+ rFont.SetItalic(ITALIC_NONE);
+ rFont.SetUnderline(UNDERLINE_NONE);
+ rFont.SetStrikeout(STRIKEOUT_NONE);
+ rFont.SetCaseMap(SVX_CASEMAP_NOT_MAPPED);
+ pPrev->SetColor(Color(COL_WHITE));
+
+ USHORT nPos = pColorLB->GetSelectEntryPos();
+
+ switch (nPos)
+ {
+ case 0:
+ rFont.SetColor(Color(COL_BLACK));
+ break;
+ case 1:
+ case LISTBOX_ENTRY_NOTFOUND:
+ rFont.SetColor(Color(COL_RED));
+ break;
+ default:
+ rFont.SetColor(pColorLB->GetEntryColor(nPos));
+ break;
+ }
+
+ nPos = pLB->GetSelectEntryPos();
+ if (nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+
+ CharAttr *pAttr = (CharAttr *)pLB->GetEntryData(nPos);
+
+ switch (pAttr->nItemId)
+ {
+ case SID_ATTR_CHAR_WEIGHT:
+ rFont.SetWeight((FontWeight)pAttr->nAttr);
+ break;
+
+ case SID_ATTR_CHAR_POSTURE:
+ rFont.SetItalic((FontItalic)pAttr->nAttr);
+ break;
+
+ case SID_ATTR_CHAR_UNDERLINE:
+ rFont.SetUnderline((FontUnderline)pAttr->nAttr);
+ break;
+
+ case SID_ATTR_CHAR_STRIKEOUT:
+ rFont.SetStrikeout((FontStrikeout)pAttr->nAttr);
+ break;
+
+ case SID_ATTR_CHAR_CASEMAP:
+ rFont.SetCaseMap((SvxCaseMap)pAttr->nAttr);
+ break;
+
+ case SID_ATTR_BRUSH:
+ {
+ nPos = pColorLB->GetSelectEntryPos();
+ if (nPos)
+ {
+ pPrev->SetColor(pColorLB->GetSelectEntryColor());
+ }
+ else
+ {
+ pPrev->SetColor(Color(COL_LIGHTGRAY));
+ }
+ rFont.SetColor(Color(COL_BLACK));
+ }
+ break;
+ }
+
+ pPrev->Invalidate();
+
+ return 0;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineOptionsTabPage, ColorHdl, ColorListBox *, pColorLB )
+{
+ SvxFontPrevWindow *pPrev = &aAttribPreviewWN;
+ ListBox *pLB;
+
+ if (pColorLB == &aInsertColorLB)
+ pLB = &aInsertLB;
+ else if (pColorLB == &aDeletedColorLB)
+ pLB = &aDeletedLB;
+ else
+ pLB = &aChangedLB;
+
+ SvxFont& rFont = pPrev->GetFont();
+ USHORT nPos = pLB->GetSelectEntryPos();
+ if (nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+
+ CharAttr *pAttr = (CharAttr *)pLB->GetEntryData(nPos);
+
+ if (pAttr->nItemId == SID_ATTR_BRUSH)
+ {
+ rFont.SetColor(Color(COL_BLACK));
+ nPos = pColorLB->GetSelectEntryPos();
+ if (nPos && nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ pPrev->SetColor(pColorLB->GetSelectEntryColor());
+ }
+ else
+ {
+ pPrev->SetColor(Color(COL_LIGHTGRAY));
+ }
+ }
+ else
+ {
+ nPos = pColorLB->GetSelectEntryPos();
+
+ switch (nPos)
+ {
+ case 0:
+ rFont.SetColor(Color(COL_BLACK));
+ break;
+ case 1:
+ case LISTBOX_ENTRY_NOTFOUND:
+ rFont.SetColor(Color(COL_RED));
+ break;
+ default:
+ rFont.SetColor(pColorLB->GetEntryColor(nPos));
+ break;
+ }
+ }
+
+ pPrev->Invalidate();
+
+ return 0;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineOptionsTabPage, ChangedMaskPrevHdl, ListBox *, pLB )
+{
+ aMarkPreviewWN.SetMarkPos(aMarkPosLB.GetSelectEntryPos());
+ aMarkPreviewWN.SetColor(aMarkColorLB.GetSelectEntryColor().GetColor());
+
+ aMarkPreviewWN.Invalidate();
+
+ return 0;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineOptionsTabPage, RadioHdl, RadioButton *, pRB )
+{
+ BOOL bInsert = FALSE, bDeleted = FALSE, bChanged = FALSE;
+
+ if (pRB == &aInsertRB)
+ {
+ AttribHdl(&aInsertLB);
+ bInsert = TRUE;
+ }
+ else if (pRB == &aDeletedRB)
+ {
+ AttribHdl(&aDeletedLB);
+ bDeleted = TRUE;
+ }
+ else if (pRB == &aChangedRB)
+ {
+ AttribHdl(&aChangedLB);
+ bChanged = TRUE;
+ }
+
+ aInsertLB.Show(bInsert);
+ aInsertColorLB.Show(bInsert);
+ aDeletedLB.Show(bDeleted);
+ aDeletedColorLB.Show(bDeleted);
+ aChangedLB.Show(bChanged);
+ aChangedColorLB.Show(bChanged);
+
+ return 0;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+void SwRedlineOptionsTabPage::InitFontStyle(SvxFontPrevWindow& rExampleWin)
+{
+ SvxFont& rFont = rExampleWin.GetFont();
+
+ Font aFont;
+ aFont.SetCharSet( gsl_getSystemTextEncoding() );
+ aFont.SetSize( Size( 0, 12 ) );
+ aFont.SetPitch( PITCH_VARIABLE );
+
+ aFont.SetName( C2S("Times") );
+ aFont.SetFamily( FAMILY_ROMAN );
+
+// Font aFont = System::GetStandardFont(STDFONT_ROMAN);
+ aFont.SetFillColor(Color(COL_WHITE));
+ aFont.SetWeight(WEIGHT_NORMAL);
+
+ rFont = aFont;
+ const Size aLogSize( rExampleWin.GetOutputSize() );
+ rFont.SetSize(Size(0, aLogSize.Height() * 2 / 3));
+ rExampleWin.SetFont(rFont);
+ rExampleWin.UseResourceText();
+
+ Color aWhiteColor = COL_WHITE;
+ Wallpaper aWall(aWhiteColor);
+// Wallpaper aWall(Color( COL_WHITE ));
+ rExampleWin.SetBackground(aWall);
+ rExampleWin.Invalidate();
+}
+
+
+#ifndef PRODUCT
+/*******************************************************
+ ******************************************************/
+/*----------------- OS 11.01.95 -----------------------
+ TabPage Testeinstellungen
+-------------------------------------------------------*/
+
+void lcl_SetPosSize(Window& rWin, Point aPos, Size aSize)
+{
+ aPos = rWin.LogicToPixel(aPos, MAP_APPFONT);
+ aSize = rWin.OutputDevice::LogicToPixel(aSize, MAP_APPFONT);
+ rWin.SetPosSizePixel(aPos, aSize);
+}
+
+SwTestTabPage::SwTestTabPage( Window* pParent,
+ const SfxItemSet& rCoreSet) :
+ SfxTabPage( pParent, WB_HIDE, rCoreSet),
+ aTestGBox ( this, WB_GROUP ),
+ aTest1CBox ( this, 0 ),
+ aTest2CBox ( this, 0 ),
+ aTest3CBox ( this, 0 ),
+ aTest4CBox ( this, 0 ),
+ aTest5CBox ( this, 0 ),
+ aTest6CBox ( this, 0 ),
+ aTest7CBox ( this, 0 ),
+ aTest8CBox ( this, 0 ),
+ aTest9CBox ( this, 0 ),
+ aTest10CBox ( this, 0 ),
+ bAttrModified( FALSE )
+{
+ lcl_SetPosSize(*this, Point(0,0), Size(260 , 135));
+ lcl_SetPosSize(aTestGBox, Point(6,2), Size(209,126));
+ lcl_SetPosSize(aTest1CBox , Point(12 , 14), Size(74 , 10));
+ lcl_SetPosSize(aTest2CBox , Point(12 , 27), Size(74 , 10));
+ lcl_SetPosSize(aTest3CBox , Point(12 , 40), Size(74 , 10));
+ lcl_SetPosSize(aTest4CBox , Point(12 , 53), Size(74 , 10));
+ lcl_SetPosSize(aTest5CBox , Point(12 , 66), Size(74 , 10));
+ lcl_SetPosSize(aTest6CBox , Point(116, 14), Size(74 , 10));
+ lcl_SetPosSize(aTest7CBox , Point(116, 27), Size(74 , 10));
+ lcl_SetPosSize(aTest8CBox , Point(116, 40), Size(74 , 10));
+ lcl_SetPosSize(aTest9CBox , Point(116, 53), Size(74 , 10));
+ lcl_SetPosSize(aTest10CBox , Point(116, 66), Size(74 , 10));
+
+ aTestGBox.SetText( String(ByteString("Einstellungen nur für Testzwecke" ), RTL_TEXTENCODING_MS_1252));
+ aTest1CBox .SetText( C2S("Layout not loading"));
+ aTest2CBox .SetText( C2S("dynamic"));
+ aTest3CBox .SetText( C2S("No calm" ));
+ aTest4CBox .SetText( C2S("WYSIWYG debug" ));
+ aTest5CBox .SetText( C2S("No idle format" ));
+ aTest6CBox .SetText( C2S("No screen adj" ));
+ aTest7CBox .SetText( C2S("win format" ));
+ aTest8CBox .SetText( C2S("No Scroll" ));
+ aTest9CBox .SetText( C2S("DrawingLayerNotLoading"));
+ aTest10CBox.SetText( C2S("AutoFormat by Input" ));
+ aTestGBox.Show();
+ aTest1CBox .Show();
+ aTest2CBox .Show();
+ aTest3CBox .Show();
+ aTest4CBox .Show();
+ aTest5CBox .Show();
+ aTest6CBox .Show();
+ aTest7CBox .Show();
+ aTest8CBox .Show();
+ aTest9CBox .Show();
+ aTest10CBox.Show();
+ Init();
+
+}
+
+
+//------------------------------------------------------------------------
+
+
+SfxTabPage* SwTestTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwTestTabPage( pParent, rAttrSet ) );
+}
+//------------------------------------------------------------------------
+
+
+BOOL SwTestTabPage::FillItemSet( SfxItemSet& rCoreSet )
+{
+
+ if ( bAttrModified )
+ {
+ SwTestItem aTestItem(FN_PARAM_SWTEST);
+ aTestItem.bTest1=aTest1CBox.IsChecked();
+ aTestItem.bTest2=aTest2CBox.IsChecked();
+ aTestItem.bTest3=aTest3CBox.IsChecked();
+ aTestItem.bTest4=aTest4CBox.IsChecked();
+ aTestItem.bTest5=aTest5CBox.IsChecked();
+ aTestItem.bTest6=aTest6CBox.IsChecked();
+ aTestItem.bTest7=aTest7CBox.IsChecked();
+ aTestItem.bTest8=aTest8CBox.IsChecked();
+ aTestItem.bTest9=aTest9CBox.IsChecked();
+ aTestItem.bTest10=aTest10CBox.IsChecked();
+ rCoreSet.Put(aTestItem);
+ }
+ return bAttrModified;
+}
+//------------------------------------------------------------------------
+
+
+void SwTestTabPage::Reset( const SfxItemSet& )
+{
+ const SfxItemSet& rSet = GetItemSet();
+ const SwTestItem* pTestAttr = 0;
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_SWTEST , FALSE,
+ (const SfxPoolItem**)&pTestAttr ))
+ {
+ aTest1CBox.Check(pTestAttr->bTest1);
+ aTest2CBox.Check(pTestAttr->bTest2);
+ aTest3CBox.Check(pTestAttr->bTest3);
+ aTest4CBox.Check(pTestAttr->bTest4);
+ aTest5CBox.Check(pTestAttr->bTest5);
+ aTest6CBox.Check(pTestAttr->bTest6);
+ aTest7CBox.Check(pTestAttr->bTest7);
+ aTest8CBox.Check(pTestAttr->bTest8);
+ aTest9CBox.Check(pTestAttr->bTest9);
+ aTest10CBox.Check(pTestAttr->bTest10);
+ }
+}
+//------------------------------------------------------------------------
+
+
+void SwTestTabPage::Init()
+{
+ // handler
+ Link aLk = LINK( this, SwTestTabPage, AutoClickHdl );
+ aTest1CBox.SetClickHdl( aLk );
+ aTest2CBox.SetClickHdl( aLk );
+ aTest3CBox.SetClickHdl( aLk );
+ aTest4CBox.SetClickHdl( aLk );
+ aTest5CBox.SetClickHdl( aLk );
+ aTest6CBox.SetClickHdl( aLk );
+ aTest7CBox.SetClickHdl( aLk );
+ aTest8CBox.SetClickHdl( aLk );
+ aTest9CBox.SetClickHdl( aLk );
+ aTest10CBox.SetClickHdl( aLk );
+}
+//------------------------------------------------------------------------
+
+
+IMPL_LINK_INLINE_START( SwTestTabPage, AutoClickHdl, CheckBox *, EMPTYARG )
+{
+ bAttrModified = TRUE;
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwTestTabPage, AutoClickHdl, CheckBox *, EMPTYARG )
+
+
+#undef _INIT
+#endif
+
+ /*--------------------------------------------------------------------
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/config/optpage.cxx,v 1.1.1.1 2000-09-18 17:14:33 hr Exp $
+
+ $Log: not supported by cvs2svn $
+ Revision 1.123 2000/09/18 16:05:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.122 2000/09/08 15:11:56 os
+ use configuration service
+
+ Revision 1.121 2000/09/07 15:59:21 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.120 2000/09/07 08:26:30 os
+ FaxName now in SwPrintOptions
+
+ Revision 1.119 2000/06/27 07:59:40 obo
+ #65293
+
+ Revision 1.118 2000/06/13 13:22:43 os
+ #75770# Doc only flag in standard font TabPage now persistent
+
+ Revision 1.117 2000/05/23 13:16:41 os
+ wrong CreateFromAscii corrected
+
+ Revision 1.116 2000/04/11 08:02:23 os
+ UNICODE
+
+ Revision 1.115 2000/03/03 15:16:58 os
+ StarView remainders removed
+
+ Revision 1.114 2000/02/24 17:26:00 hr
+ 43447#: gcc
+
+ Revision 1.113 2000/02/11 14:44:06 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.112 2000/01/06 14:46:58 os
+ #71448# no differences between PRODUCT and NONPRODUCT resources
+
+ Revision 1.111 1999/12/14 14:31:36 jp
+ Bug #69595#: print can create single Jobs
+
+ Revision 1.110 1999/10/21 17:47:33 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.109 1999/09/22 12:37:43 os
+ big handles
+
+ Revision 1.108 1999/06/09 11:20:58 OS
+ index background
+
+
+ Rev 1.107 09 Jun 1999 13:20:58 OS
+ index background
+
+ Rev 1.106 10 May 1999 13:11:14 OS
+ #64976# Tabulatorwert fuer Metricumstellung merken
+
+ Rev 1.105 29 Mar 1999 09:17:00 OS
+ #63971# kein TabStop putten, wenn Control unsichtbar
+
+ Rev 1.104 19 Mar 1999 15:32:04 OS
+ #63750# Tabellenmode auch wieder an der akt. Tabelle setzen
+
+ Rev 1.103 15 Feb 1999 09:22:02 OS
+ #61890# StdFontTabTage legt Drucker jetzt bei Bedarf selbst an
+
+ Rev 1.102 27 Jan 1999 10:04:00 OS
+ #58677# Cursor in Readonly-Bereichen
+
+ Rev 1.101 11 Jan 1999 13:36:18 OS
+ #60139# Set/UseDefault jetzt richtig
+
+ Rev 1.100 16 Nov 1998 10:38:50 OS
+ #59455# Grundschrifte auch nach Standard im Doc richtig setzen
+
+ Rev 1.99 08 Sep 1998 16:49:54 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.98 06 Jul 1998 13:03:54 MH
+ add: SfxBoolItem header
+
+ Rev 1.97 03 Jul 1998 18:15:34 OS
+ ScrollBar-CheckBoxen per Item disablen
+
+ Rev 1.96 24 Jun 1998 16:16:56 OM
+ #51575# Printoptionen auch in Seitenvorschau beachten
+
+ Rev 1.95 24 Mar 1998 17:46:50 OM
+ Formataenderung anzeigen
+
+ Rev 1.94 10 Mar 1998 16:11:34 OM
+ Gegen rottige Config abgesichert
+
+ Rev 1.93 05 Mar 1998 14:34:08 OM
+ Redline-Attribute in Module-Cfg speichern
+
+ Rev 1.92 24 Feb 1998 15:32:24 OM
+ Redline-Darstellungsoptionen setzen
+
+ Rev 1.91 23 Feb 1998 12:40:44 OM
+ Redlining-Optionen
+
+ Rev 1.90 20 Feb 1998 14:45:52 OM
+ Markierungs-Preview
+
+ Rev 1.89 19 Feb 1998 15:26:24 OM
+ Redlining-Optionen
+
+ Rev 1.88 18 Feb 1998 09:46:54 OM
+ Redlining Optionen
+
+ Rev 1.87 18 Feb 1998 09:10:22 OM
+ Redlining-Optionen
+
+ Rev 1.86 28 Nov 1997 15:22:22 MA
+ includes
+
+ Rev 1.85 24 Nov 1997 17:58:50 MA
+ include
+
+ Rev 1.84 14 Nov 1997 17:13:34 OS
+ TRUE returnen, wenn TblChgMode veraendert wurde #45521#
+
+ Rev 1.83 03 Nov 1997 16:12:18 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.82 09 Oct 1997 14:40:40 OS
+ UpdateMode fuer ColorListBoxen abschalten #44451#
+
+ Rev 1.81 09 Sep 1997 11:38:50 OS
+ includes
+
+ Rev 1.80 15 Aug 1997 11:45:22 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.79 09 Aug 1997 12:50:22 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.78 08 Aug 1997 17:37:30 OM
+ Headerfile-Umstellung
+
+ Rev 1.77 08 Jul 1997 14:07:30 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.76 12 Jun 1997 10:11:04 MA
+ Option fuer Smooth
+
+ Rev 1.75 06 Jun 1997 12:44:10 MA
+ chg: versteckte Absaetze ausblenden
+
+ Rev 1.74 05 May 1997 14:15:18 OS
+ Grundschrift fuer Standard als Pool-Default setzen
+
+ Rev 1.73 23 Apr 1997 14:20:36 OS
+ GetEntryData von void* auf USHORT ueber long wg. IBM VA3.0
+
+ Rev 1.72 21 Apr 1997 13:48:20 OS
+ SEXPORT -> __EXPORT
+
+ Rev 1.71 21 Apr 1997 11:01:42 OS
+ Quelltextkonfiguration
+
+ Rev 1.70 16 Apr 1997 12:30:38 OS
+ SEXPORT
+
+ Rev 1.69 25 Feb 1997 10:21:16 OS
+ farbige Handles
+
+ Rev 1.68 23 Feb 1997 10:34:12 OS
+ zusaetzlicher Hilfstext fuer Tabellen
+
+ Rev 1.67 03 Feb 1997 12:20:16 OS
+ Hor. Scrollbar nicht mehr Browse-abhaengig
+
+ Rev 1.66 03 Feb 1997 12:10:34 OS
+ Pages fuer Html umgruppieren
+
+ Rev 1.65 22 Jan 1997 11:36:30 MA
+ Umstellung Put
+
+ Rev 1.64 18 Jan 1997 15:12:16 OS
+ Dialog Tabellenoptionen
+
+ Rev 1.63 18 Jan 1997 11:14:46 OS
+ Defaulteinstellungen fuer Grundschriften beruecksichtigen
+
+ Rev 1.62 15 Jan 1997 16:21:54 MA
+ #35010# Modified setzen
+
+ Rev 1.61 14 Jan 1997 08:57:50 MA
+ includes
+
+ Rev 1.60 13 Jan 1997 16:54:54 OS
+ TabStop auf der LayoutPage
+
+ Rev 1.59 20 Dec 1996 13:38:28 OS
+ auf SFX_ITEM_SET pruefen
+
+ Rev 1.58 12 Dec 1996 08:44:16 OS
+ keine Defaults suchen
+
+ Rev 1.57 11 Dec 1996 14:12:48 OS
+ Metric auf der Layout-Page
+
+ Rev 1.56 10 Dec 1996 17:00:04 OS
+ Warnungen von der OFA
+
+ Rev 1.55 04 Dec 1996 23:02:42 MH
+ chg: header
+
+ Rev 1.54 03 Dec 1996 17:01:30 AMA
+ Chg: Der Drucker wird nur im !Browsemodus angelegt.
+
+ Rev 1.53 28 Nov 1996 15:20:26 OS
+ neu: Schwarz drucken
+
+ Rev 1.52 11 Nov 1996 09:22:10 MA
+ ResMgr
+
+ Rev 1.51 24 Oct 1996 13:14:58 OS
+ Grundschriften nur nach Veraenderung im Doc auch in die Applikation eintragen
+
+ Rev 1.50 23 Oct 1996 13:49:16 JP
+ SVMEM -> SVSTDARR Umstellung
+
+ Rev 1.49 02 Oct 1996 18:31:00 MA
+ Umstellung Enable/Disable
+
+ Rev 1.48 23 Sep 1996 19:28:28 HJS
+ const nach nicht-const gecastet
+
+ Rev 1.47 21 Sep 1996 15:56:42 OS
+ Grundschriften in Comboboxen, damit nicht vorhandene Schriften gesetzt werden koennen; CheckBox fuer reine Dokumenteinstellung
+
+ Rev 1.46 07 Sep 1996 14:04:28 OS
+ Standard-Button fuer Grundschriften
+
+ Rev 1.45 06 Sep 1996 14:32:06 OS
+ Postits beruecksichtigen
+
+ Rev 1.44 04 Sep 1996 08:09:12 OS
+ neu: Grundschriften-Tabpage
+
+ Rev 1.43 03 Sep 1996 16:56:24 OS
+ Tabpage Standardfonts
+
+ Rev 1.42 31 Aug 1996 17:14:00 OS
+ neue Optionendialoge
+
+ Rev 1.41 26 Aug 1996 16:57:54 MA
+ chg: Lineale auch im BrowseMode
+
+ Rev 1.40 17 Jul 1996 11:13:48 OS
+ neu: Checkbox fuer Hintergrunddruck
+
+ Rev 1.39 16 Jul 1996 20:19:50 MA
+ includes
+
+ Rev 1.38 24 May 1996 14:58:16 OS
+ FN_STAT_MODIFIED -> SID_DOC_MODIFIED
+
+ Rev 1.37 30 Apr 1996 14:03:10 OS
+ Ansichts-Controls fuer Preview disablen
+
+ Rev 1.36 25 Apr 1996 16:23:58 OS
+ Im Browse-Mode Lineale und HScroll disablen
+
+ Rev 1.35 15 Mar 1996 15:28:18 JP
+ TestFlags erweitert
+
+ Rev 1.34 07 Mar 1996 16:54:42 JP
+ AddPrintItem um weiters Flag erweitert
+
+ Rev 1.33 06 Feb 1996 15:18:42 JP
+ Link Umstellung 305
+
+ Rev 1.32 28 Nov 1995 23:37:36 JP
+ uisys.hxx gibt es nicht mehr
+
+ --------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/config/prtopt.cxx b/sw/source/ui/config/prtopt.cxx
new file mode 100644
index 000000000000..7190620841d4
--- /dev/null
+++ b/sw/source/ui/config/prtopt.cxx
@@ -0,0 +1,228 @@
+/*************************************************************************
+ *
+ * $RCSfile: prtopt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _UTL_CONFIGMGR_HXX_
+#include <unotools/configmgr.hxx>
+#endif
+#ifndef _PRTOPT_HXX
+#include <prtopt.hxx>
+#endif
+#ifndef _SWPRTOPT_HXX
+#include <swprtopt.hxx>
+#endif
+
+#ifndef _TOOLS_DEBUG_HXX
+#include <tools/debug.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UNO_ANY_HXX_
+#include <com/sun/star/uno/Any.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
+#include <com/sun/star/uno/Sequence.hxx>
+#endif
+
+using namespace utl;
+using namespace rtl;
+using namespace com::sun::star::uno;
+
+#define C2U(cChar) OUString::createFromAscii(cChar)
+/*--------------------------------------------------------------------
+ Beschreibung: Ctor
+ --------------------------------------------------------------------*/
+
+Sequence<OUString> SwPrintOptions::GetPropertyNames()
+{
+ static const char* aPropNames[] =
+ {
+ "Content/Graphic", // 0
+ "Content/Table", // 1
+ "Content/Drawing", // 2
+ "Content/Control", // 3
+ "Content/Background", // 4
+ "Content/PrintBlack", // 5
+ "Content/Note", // 6
+ "Page/LeftPage", // 7
+ "Page/RightPage", // 8
+ "Page/Reversed", // 9
+ "Page/Brochure", // 10
+ "Output/SinglePrintJob", // 11
+ "Output/Fax", // 12
+ "Papertray/FromPrinterSetup"// 13
+ };
+ const int nCount = 14;
+ Sequence<OUString> aNames(nCount);
+ OUString* pNames = aNames.getArray();
+ for(int i = 0; i < nCount; i++)
+ {
+ pNames[i] = OUString::createFromAscii(aPropNames[i]);
+ }
+ return aNames;
+}
+/* -----------------------------06.09.00 16:44--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwPrintOptions::SwPrintOptions(sal_Bool bWeb) :
+ ConfigItem(bWeb ? C2U("Office.WriterWeb/Print") : C2U("Office.Writer/Print")),
+ bPrintGraphic(sal_True),
+ bPrintTable(sal_True),
+ bPrintDraw(sal_True),
+ bPrintControl(sal_True),
+ bPrintLeftPage(sal_True),
+ bPrintRightPage(sal_True),
+ bReverse(sal_False),
+ bPaperFromSetup(sal_False),
+ bPrintProspect(sal_False),
+ bPrintSingleJobs(sal_False),
+ bPrintPageBackground(!bWeb),
+ bPrintBlackFont(bWeb),
+ nPrintPostIts(POSTITS_NONE)
+{
+ Sequence<OUString> aNames = GetPropertyNames();
+ Sequence<Any> aValues = GetProperties(aNames);
+ EnableNotification(aNames);
+ const Any* pValues = aValues.getConstArray();
+ DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
+ if(aValues.getLength() == aNames.getLength())
+ {
+ for(int nProp = 0; nProp < aNames.getLength(); nProp++)
+ {
+ DBG_ASSERT(pValues[nProp].hasValue(), "property value missing")
+ if(pValues[nProp].hasValue())
+ {
+ switch(nProp)
+ {
+ case 0: bPrintGraphic = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 1: bPrintTable = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 2: bPrintDraw = *(sal_Bool*)pValues[nProp].getValue() ; break;
+ case 3: bPrintControl = *(sal_Bool*)pValues[nProp].getValue() ; break;
+ case 4: bPrintPageBackground= *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 5: bPrintBlackFont = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 6: pValues[nProp] >>= nPrintPostIts ; break;
+ case 7: bPrintLeftPage = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 8: bPrintRightPage = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 9: bReverse = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 10:bPrintProspect = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 11:bPrintSingleJobs = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 12: pValues[nProp] >>= sFaxName; break;
+ case 13: bPaperFromSetup = *(sal_Bool*)pValues[nProp].getValue(); break;
+ }
+ }
+ }
+ }
+}
+/* -----------------------------06.09.00 16:50--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwPrintOptions::~SwPrintOptions()
+{
+}
+/* -----------------------------06.09.00 16:43--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwPrintOptions::Commit()
+{
+ Sequence<OUString> aNames = GetPropertyNames();
+
+ OUString* pNames = aNames.getArray();
+ Sequence<Any> aValues(aNames.getLength());
+ Any* pValues = aValues.getArray();
+
+ const Type& rType = ::getBooleanCppuType();
+ BOOL bVal;
+ for(int nProp = 0; nProp < aNames.getLength(); nProp++)
+ {
+ switch(nProp)
+ {
+ case 0: bVal = bPrintGraphic; pValues[nProp].setValue(&bVal, rType);break;
+ case 1: bVal = bPrintTable ;pValues[nProp].setValue(&bVal, rType); break;
+ case 2: bVal = bPrintDraw ; pValues[nProp].setValue(&bVal, rType); break;
+ case 3: bVal = bPrintControl ; pValues[nProp].setValue(&bVal, rType); break;
+ case 4: bVal = bPrintPageBackground; pValues[nProp].setValue(&bVal, rType); break;
+ case 5: bVal = bPrintBlackFont ; pValues[nProp].setValue(&bVal, rType); break;
+ case 6: pValues[nProp] <<= nPrintPostIts ; break;
+ case 7: bVal = bPrintLeftPage ; pValues[nProp].setValue(&bVal, rType); break;
+ case 8: bVal = bPrintRightPage ; pValues[nProp].setValue(&bVal, rType); break;
+ case 9: bVal = bReverse ; pValues[nProp].setValue(&bVal, rType); break;
+ case 10: bVal = bPrintProspect ; pValues[nProp].setValue(&bVal, rType); break;
+ case 11: bVal = bPrintSingleJobs ; pValues[nProp].setValue(&bVal, rType); break;
+ case 12: pValues[nProp] <<= sFaxName; break;
+ case 13: bVal = bPaperFromSetup ; pValues[nProp].setValue(&bVal, rType); break;
+ }
+ }
+ PutProperties(aNames, aValues);
+}
+/* -----------------------------06.09.00 16:46--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwPrintOptions::Notify( const Sequence<rtl::OUString>& aPropertyNames)
+{
+ DBG_ERROR("properties have been changed")
+}
+
+
+
+
diff --git a/sw/source/ui/config/redlopt.hrc b/sw/source/ui/config/redlopt.hrc
new file mode 100644
index 000000000000..3a4d0950b674
--- /dev/null
+++ b/sw/source/ui/config/redlopt.hrc
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * $RCSfile: redlopt.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define RB_INSERT 1
+#define RB_DELETED 2
+#define RB_CHANGED 3
+#define FT_TE_ATTRIB 4
+#define LB_TE_ATTRIB 5
+#define LB_TL_ATTRIB 6
+#define LB_TC_ATTRIB 7
+#define FT_TE_COL 8
+#define LB_TE_COL 9
+#define LB_TL_COL 10
+#define LB_TC_COL 11
+#define WIN_TE 12
+#define GB_TE 13
+
+#define FT_MARKPOS 14
+#define LB_MARKPOS 15
+#define FT_LC_COL 16
+#define LB_LC_COL 17
+#define WIN_MARK 18
+#define GB_LC 19
+#define STR_AUTHOR 20
+#define STR_NOTHING 21
+
diff --git a/sw/source/ui/config/redlopt.src b/sw/source/ui/config/redlopt.src
new file mode 100644
index 000000000000..1bf8abf37761
--- /dev/null
+++ b/sw/source/ui/config/redlopt.src
@@ -0,0 +1,1422 @@
+/*************************************************************************
+ *
+ * $RCSfile: redlopt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+#ifndef _SFX_HRC
+#include <sfx2/sfx.hrc>
+#endif
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#include "globals.hrc"
+#include "config.hrc"
+#include "redlopt.hrc"
+#include "helpid.h"
+/**************************************************************************/
+/* */
+/**************************************************************************/
+TabPage TP_REDLINE_OPT
+{
+ HelpID = HID_REDLINE_OPT ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ RadioButton RB_INSERT
+ {
+ Pos = MAP_APPFONT ( 12 , 18 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Einfügen" ;
+ Text [ ENGLISH ] = "Insert" ;
+ Check = TRUE ;
+ Text [ portuguese ] = "~Inserir" ;
+ Text [ english_us ] = "~Insert" ;
+ Text [ portuguese_brazilian ] = "Einfügen" ;
+ Text [ swedish ] = "~Infoga" ;
+ Text [ danish ] = "~Indsæt" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ spanish ] = "~Insertar" ;
+ Text [ french ] = "Insérer" ;
+ Text [ dutch ] = "~Invoegen" ;
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ russian ] = "Âñò~àâêà";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü(~I)";
+ Text[ chinese_traditional ] = "´¡¤J(~I)";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ(~I)";
+ Text[ turkish ] = "~Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_DELETED
+ {
+ Pos = MAP_APPFONT ( 12 , 34 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Löschen" ;
+ Text [ ENGLISH ] = "Delete" ;
+ Text [ portuguese ] = "E~liminar" ;
+ Text [ english_us ] = "Delete" ;
+ Text [ portuguese_brazilian ] = "Löschen" ;
+ Text [ swedish ] = "~Radera" ;
+ Text [ danish ] = "Slet" ;
+ Text [ italian ] = "Elimina" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ french ] = "Supprimer" ;
+ Text [ dutch ] = "~Wissen" ;
+ Text[ chinese_simplified ] = "ɾ³ý";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ";
+ Text[ chinese_traditional ] = "§R°£";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦";
+ Text[ turkish ] = "~Sil";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_CHANGED
+ {
+ Pos = MAP_APPFONT ( 12 , 50 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "~Attributänderung" ;
+ Text [ ENGLISH ] = "Change attribute" ;
+ Text [ portuguese ] = "~Modificar atributo" ;
+ Text [ english_us ] = "Changed attribute" ;
+ Text [ portuguese_brazilian ] = "Attributänderung" ;
+ Text [ swedish ] = "~Attributändring" ;
+ Text [ danish ] = "Attributændring" ;
+ Text [ italian ] = "Modifica attributi" ;
+ Text [ spanish ] = "Modificación de ~atributo" ;
+ Text [ french ] = "Modification d'attributs" ;
+ Text [ dutch ] = "~Attribuutwijziging" ;
+ Text[ chinese_simplified ] = "¸ü¸ÄÊôÐÔ";
+ Text[ russian ] = "Èçìåíåíèå àòðèáóòîâ";
+ Text[ polish ] = "Z~miana atrybutów";
+ Text[ japanese ] = "‘®«‚Ì•ÏX";
+ Text[ chinese_traditional ] = "ÅܧóÄÝ©Ê";
+ Text[ arabic ] = "ÊÛííÑ ÇáÓãÇÊ";
+ Text[ greek ] = "~ÁëëáãÞ éäéüôçôáò";
+ Text[ korean ] = "¼Ó¼º º¯°æ";
+ Text[ turkish ] = "Öznitelik deðiþikliði";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_TE_ATTRIB
+ {
+ Pos = MAP_APPFONT ( 74 , 18 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "A~ttribute" ;
+ Text [ English ] = "Attributes" ;
+ Text [ portuguese ] = "A~tributos" ;
+ Text [ english_us ] = "Attributes" ;
+ Text [ portuguese_brazilian ] = "Attribute" ;
+ Text [ swedish ] = "A~ttribut" ;
+ Text [ danish ] = "Attributter" ;
+ Text [ italian ] = "Attributi" ;
+ Text [ spanish ] = "~Atributos" ;
+ Text [ french ] = "Attributs" ;
+ Text [ dutch ] = "~Attributen" ;
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ russian ] = "Àòðèáóòû";
+ Text[ polish ] = "Atrybuty";
+ Text[ japanese ] = "‘®«";
+ Text[ chinese_traditional ] = "ÄÝ©Ê";
+ Text[ arabic ] = "ÇáÓãÇÊ";
+ Text[ greek ] = "Éäéüôçôåò";
+ Text[ korean ] = "¼Ó¼º";
+ Text[ turkish ] = "Öznitelikler";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_TE_ATTRIB
+ {
+ Pos = MAP_APPFONT ( 115 , 17 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Unterstrichen" ; > ;
+ < "Doppelt unterstrichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Unterstrichen" ; > ;
+ < "Doppelt unterstrichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "[None]" ; > ;
+ < "Bold" ; > ;
+ < "Italic" ; > ;
+ < "Underline" ; > ;
+ < "Underline: double" ; > ;
+ < "Caps" ; > ;
+ < "Lower case" ; > ;
+ < "Small caps" ; > ;
+ < "Title Font" ; > ;
+ < "Background color" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Unterstrichen" ; > ;
+ < "Doppelt unterstrichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "[Inga]" ; > ;
+ < "Fet" ; > ;
+ < "Kursiv" ; > ;
+ < "Understruken" ; > ;
+ < "Dubbelt understruket" ; > ;
+ < "Versaler" ; > ;
+ < "Gemener" ; > ;
+ < "Små kapitäler" ; > ;
+ < "Titelteckensnitt" ; > ;
+ < "Bakgrundsfärg" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "[Ingen]" ; > ;
+ < "Fed" ; > ;
+ < "Kursiv" ; > ;
+ < "Understreget" ; > ;
+ < "Dobbelt understreget" ; > ;
+ < "Store bogstaver" ; > ;
+ < "Små bogstaver" ; > ;
+ < "Kapitæler" ; > ;
+ < "Titelskrift" ; > ;
+ < "Baggrundsfarve" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "[nessuno]" ; > ;
+ < "Grassetto" ; > ;
+ < "Corsivo" ; > ;
+ < "Sottolineato" ; > ;
+ < "Sottolineatura doppia" ; > ;
+ < "Maiuscolo" ; > ;
+ < "Minuscolo" ; > ;
+ < "Maiuscoletto" ; > ;
+ < "Carattere del titolo" ; > ;
+ < "Colore di sfondo" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "[Ninguno]" ; > ;
+ < "Negrita" ; > ;
+ < "Cursiva" ; > ;
+ < "Subrayado" ; > ;
+ < "Subrayado doble" ; > ;
+ < "Mayúsculas" ; > ;
+ < "Minúsculas" ; > ;
+ < "Versalitas" ; > ;
+ < "Caracteres del título" ; > ;
+ < "Color de fondo" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "[Aucun(e)]" ; > ;
+ < "Gras" ; > ;
+ < "Italique" ; > ;
+ < "Soulignage" ; > ;
+ < "Soulignage : double" ; > ;
+ < "Majuscules" ; > ;
+ < "Minuscules" ; > ;
+ < "Petites majuscules" ; > ;
+ < "Caractères du titre" ; > ;
+ < "Couleur d'arrière-plan" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "[Geen]" ; > ;
+ < "Vet" ; > ;
+ < "Cursief" ; > ;
+ < "Onderstrepen" ; > ;
+ < "Dubbel onderstrepen" ; > ;
+ < "Hoofdletters" ; > ;
+ < "Kleine letters" ; > ;
+ < "Kapitalen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Achtergrondkleur" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "[nenhum]" ; > ;
+ < "Negrito" ; > ;
+ < "Itálico" ; > ;
+ < "Sublinhado" ; > ;
+ < "Sublinhado duplo" ; > ;
+ < "Maiúsculas" ; > ;
+ < "Minúsculas" ; > ;
+ < "Versaletes" ; > ;
+ < "Letra para título" ; > ;
+ < "Cor do plano de fundo" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "[ÎÞ]" ; > ;
+ < "´ÖÌå" ; > ;
+ < "бÌå" ; > ;
+ < "Ï»®Ïß" ; > ;
+ < "Ë«Ï»®Ïß" ; > ;
+ < "´óд×Öĸ" ; > ;
+ < "Сд×Öĸ" ; > ;
+ < "СÐÍ´óд×Öĸ" ; > ;
+ < "±êÌâ×ÖÌå" ; > ;
+ < "±³¾°ÑÕÉ«" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "[Áåç]" ; > ;
+ < "Æèðíûé" ; > ;
+ < "Êóðñèâ" ; > ;
+ < "Ïîä÷åðêíóòûé" ; > ;
+ < "Äâîéíîå ïîä÷åðêèâàíèå" ; > ;
+ < "Ïðîïèñíûå" ; > ;
+ < "Ñòðî÷íûå áóêâû" ; > ;
+ < "Ìàëûå ïðîïèñíûå" ; > ;
+ < "Çàãëàâíûé øðèôò" ; > ;
+ < "Öâåò ôîíà" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "[Brak]" ; > ;
+ < "Pogrubienie" ; > ;
+ < "Kursywa" ; > ;
+ < "Podkreœlenie" ; > ;
+ < "Podwójne podkreœlenie" ; > ;
+ < "Wersaliki" ; > ;
+ < "Ma³e litery" ; > ;
+ < "Kapitaliki" ; > ;
+ < "Czcionka tytu³owa" ; > ;
+ < "Kolor t³a" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "[‚È‚µ]" ; > ;
+ < "‘¾Žš" ; > ;
+ < "ŽÎ‘Ì" ; > ;
+ < "伟" ; > ;
+ < "Җd伟" ; > ;
+ < "‘啶Žš" ; > ;
+ < "¬•¶Žš" ; > ;
+ < "¬Œ^‘啶Žš" ; > ;
+ < "À²ÄÙ•¶Žš" ; > ;
+ < "”wŒiF" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "[µL]" ; > ;
+ < "²ÊÅé" ; > ;
+ < "±×Åé" ; > ;
+ < "¤U¹º½u" ; > ;
+ < "Âù¤U¹º½u" ; > ;
+ < "¤j¼g¦r¥À" ; > ;
+ < "¤p¼g¦r¥À" ; > ;
+ < "¤p«¬¤j¼g¦r¥À" ; > ;
+ < "¼ÐÃD¦r«¬" ; > ;
+ < "­I´ºÃC¦â" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "[ÈÏæä]" ; > ;
+ < "ÚÑíÖ" ; > ;
+ < "ãÇÆá" ; > ;
+ < "ÊÍÊå ÎØ" ; > ;
+ < "ÎØ ÊÍÊí ãÒÏæÌ" ; > ;
+ < "ÃÍÑÝ ßÈíÑÉ" ; > ;
+ < "ÃÍÑÝ ÕÛíÑÉ" ; > ;
+ < "ÍÑÝ ÈÏÇíÉ ÃßÈÑ" ; > ;
+ < "ÎØ ÇáÚäæÇä" ; > ;
+ < "áæä ÇáÎáÝíÉ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "[ÊáíÝíá]" ; > ;
+ < "¸íôïíï" ; > ;
+ < "ÐëÜãéá" ; > ;
+ < "ÕðïãñÜììéóç" ; > ;
+ < "ÄéðëÞ õðïãñÜììéóç" ; > ;
+ < "Êåöáëáßá" ; > ;
+ < "Ðåæïß ÷áñáêôÞñåò" ; > ;
+ < "ÌéêñÜ êåöáëáßá" ; > ;
+ < "ÃñáììáôïóåéñÜ ôßôëïõ" ; > ;
+ < "×ñþìá öüíôïõ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "[¾øÀ½]" ; > ;
+ < "ÁøÇÏ°Ô" ; > ;
+ < "±â¿ïÀÓ²Ã" ; > ;
+ < "¹ØÁÙ" ; > ;
+ < "ÀÌÁß ¹ØÁÙ" ; > ;
+ < "´ë¹®ÀÚ" ; > ;
+ < "¼Ò¹®ÀÚ" ; > ;
+ < "ÀÛÀº ´ë¹®ÀÚ" ; > ;
+ < "Á¦¸ñ ±Û²Ã" ; > ;
+ < "¹è°æ»ö" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "[Yok]" ; > ;
+ < "Kalýn" ; > ;
+ < "Ýtalik" ; > ;
+ < "Altý çizili" ; > ;
+ < "Altý çift çizili" ; > ;
+ < "Büyük harflerle" ; > ;
+ < "Küçük harflerle" ; > ;
+ < "Küçük büyük harf" ; > ;
+ < "Baþlýk yazýtipi" ; > ;
+ < "Artalan rengi" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ ListBox LB_TL_ATTRIB
+ {
+ Pos = MAP_APPFONT ( 115 , 17 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Hide = TRUE ;
+ StringList =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Durchstreichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Durchstreichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "[None]" ; > ;
+ < "Bold" ; > ;
+ < "Italic" ; > ;
+ < "Strikethrough" ; > ;
+ < "Caps" ; > ;
+ < "Lower case" ; > ;
+ < "Small caps" ; > ;
+ < "Title Font" ; > ;
+ < "Background color" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Durchstreichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "[Inga]" ; > ;
+ < "Fet" ; > ;
+ < "Kursiv" ; > ;
+ < "Genomstruken" ; > ;
+ < "Versaler" ; > ;
+ < "Gemener" ; > ;
+ < "Små kapitäler" ; > ;
+ < "Titelteckensnitt" ; > ;
+ < "Bakgrundsfärg" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "[Ingen]" ; > ;
+ < "Fed" ; > ;
+ < "Kursiv" ; > ;
+ < "Gennemstreget" ; > ;
+ < "Store bogstaver" ; > ;
+ < "Små bogstaver" ; > ;
+ < "Kapitæler" ; > ;
+ < "Titelskrift" ; > ;
+ < "Baggrundsfarve" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "[nessuno]" ; > ;
+ < "Grassetto" ; > ;
+ < "Corsivo" ; > ;
+ < "Barrato" ; > ;
+ < "Maiuscolo" ; > ;
+ < "Minuscolo" ; > ;
+ < "Maiuscoletto" ; > ;
+ < "Carattere del titolo" ; > ;
+ < "Colore di sfondo" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "[Ninguno]" ; > ;
+ < "Negrita" ; > ;
+ < "Cursiva" ; > ;
+ < "Tachar" ; > ;
+ < "Mayúsculas" ; > ;
+ < "Minúsculas" ; > ;
+ < "Versalitas" ; > ;
+ < "Caracteres del título" ; > ;
+ < "Color de fondo" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "[Aucun(e)]" ; > ;
+ < "Gras" ; > ;
+ < "Italique" ; > ;
+ < "Barré" ; > ;
+ < "Majuscules" ; > ;
+ < "Minuscules" ; > ;
+ < "Petites majuscules" ; > ;
+ < "Caractères du titre" ; > ;
+ < "Couleur d'arrière-plan" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "[Geen]" ; > ;
+ < "Vet" ; > ;
+ < "Cursief" ; > ;
+ < "Doorstrepen" ; > ;
+ < "Hoofdletters" ; > ;
+ < "Kleine letters" ; > ;
+ < "Kapitalen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Achtergrondkleur" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "[nenhum]" ; > ;
+ < "Negrito" ; > ;
+ < "Itálico" ; > ;
+ < "Rasurar" ; > ;
+ < "Maiúsculas" ; > ;
+ < "Minúsculas" ; > ;
+ < "Versaletes" ; > ;
+ < "Letra para título" ; > ;
+ < "Cor do plano de fundo" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "[ÎÞ]" ; > ;
+ < "´ÖÌå" ; > ;
+ < "бÌå" ; > ;
+ < "ɾ³ýÏß" ; > ;
+ < "´óд×Öĸ" ; > ;
+ < "Сд×Öĸ" ; > ;
+ < "СÐÍ´óд×Öĸ" ; > ;
+ < "±êÌâ×ÖÌå" ; > ;
+ < "±³¾°ÑÕÉ«" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "[Áåç]" ; > ;
+ < "Æèðíûé" ; > ;
+ < "Êóðñèâ" ; > ;
+ < "Çà÷åðêíóòûé" ; > ;
+ < "Ïðîïèñíûå" ; > ;
+ < "Ñòðî÷íûå áóêâû" ; > ;
+ < "Ìàëûå ïðîïèñíûå" ; > ;
+ < "Çàãëàâíûé øðèôò" ; > ;
+ < "Öâåò ôîíà" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "[Brak]" ; > ;
+ < "Pogrubienie" ; > ;
+ < "Kursywa" ; > ;
+ < "Przekreœlenie" ; > ;
+ < "Wersaliki" ; > ;
+ < "Ma³e litery" ; > ;
+ < "Kapitaliki" ; > ;
+ < "Czcionka tytu³owa" ; > ;
+ < "Kolor t³a" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "[‚È‚µ]" ; > ;
+ < "‘¾Žš" ; > ;
+ < "ŽÎ‘Ì" ; > ;
+ < "Žæ‚èÁ‚µü" ; > ;
+ < "‘啶Žš" ; > ;
+ < "¬•¶Žš" ; > ;
+ < "¬Œ^‘啶Žš" ; > ;
+ < "À²ÄÙ•¶Žš" ; > ;
+ < "”wŒiF" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "[µL]" ; > ;
+ < "²ÊÅé" ; > ;
+ < "±×Åé" ; > ;
+ < "§R°£½u" ; > ;
+ < "¤j¼g¦r¥À" ; > ;
+ < "¤p¼g¦r¥À" ; > ;
+ < "¤p«¬¤j¼g¦r¥À" ; > ;
+ < "¼ÐÃD¦r«¬" ; > ;
+ < "­I´ºÃC¦â" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "[ÈÏæä]" ; > ;
+ < "ÚÑíÖ" ; > ;
+ < "ãÇÆá" ; > ;
+ < "ÔØÈ" ; > ;
+ < "ÃÍÑÝ ßÈíÑÉ" ; > ;
+ < "ÃÍÑÝ ÕÛíÑÉ" ; > ;
+ < "ÍÑÝ ÈÏÇíÉ ÃßÈÑ" ; > ;
+ < "ÎØ ÇáÚäæÇä" ; > ;
+ < "áæä ÇáÎáÝíÉ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "[ÊáíÝíá]" ; > ;
+ < "¸íôïíï" ; > ;
+ < "ÐëÜãéá" ; > ;
+ < "ÄéáãñÜììéóç" ; > ;
+ < "Êåöáëáßá" ; > ;
+ < "Ðåæïß ÷áñáêôÞñåò" ; > ;
+ < "ÌéêñÜ êåöáëáßá" ; > ;
+ < "ÃñáììáôïóåéñÜ ôßôëïõ" ; > ;
+ < "×ñþìá öüíôïõ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "[¾øÀ½]" ; > ;
+ < "ÁøÇÏ°Ô" ; > ;
+ < "±â¿ïÀÓ²Ã" ; > ;
+ < "Ãë¼Ò¼±" ; > ;
+ < "´ë¹®ÀÚ" ; > ;
+ < "¼Ò¹®ÀÚ" ; > ;
+ < "ÀÛÀº ´ë¹®ÀÚ" ; > ;
+ < "Á¦¸ñ ±Û²Ã" ; > ;
+ < "¹è°æ»ö" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "[Yok]" ; > ;
+ < "Kalýn" ; > ;
+ < "Ýtalik" ; > ;
+ < "Üzerini çiz" ; > ;
+ < "Büyük harflerle" ; > ;
+ < "Küçük harflerle" ; > ;
+ < "Küçük büyük harf" ; > ;
+ < "Baþlýk yazýtipi" ; > ;
+ < "Artalan rengi" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ ListBox LB_TC_ATTRIB
+ {
+ Pos = MAP_APPFONT ( 115 , 17 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Hide = TRUE ;
+ StringList =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Unterstrichen" ; > ;
+ < "Doppelt unterstrichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Unterstrichen" ; > ;
+ < "Doppelt unterstrichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "[None]" ; > ;
+ < "Bold" ; > ;
+ < "Italic" ; > ;
+ < "Underline" ; > ;
+ < "Underline: double" ; > ;
+ < "Caps" ; > ;
+ < "Lower case" ; > ;
+ < "Small caps" ; > ;
+ < "Title Font" ; > ;
+ < "Background color" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "[Keine]" ; > ;
+ < "Fett" ; > ;
+ < "Kursiv" ; > ;
+ < "Unterstrichen" ; > ;
+ < "Doppelt unterstrichen" ; > ;
+ < "Versalien" ; > ;
+ < "Gemeine" ; > ;
+ < "Kapitälchen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Hintergrundfarbe" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "[Inga]" ; > ;
+ < "Fet" ; > ;
+ < "Kursiv" ; > ;
+ < "Understruken" ; > ;
+ < "Dubbelt understruken" ; > ;
+ < "Versaler" ; > ;
+ < "Gemener" ; > ;
+ < "Små kapitäler" ; > ;
+ < "Titelteckensnitt" ; > ;
+ < "Bakgrundsfärg" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "[Ingen]" ; > ;
+ < "Fed" ; > ;
+ < "Kursiv" ; > ;
+ < "Understreget" ; > ;
+ < "Dobbelt understreget" ; > ;
+ < "Store bogstaver" ; > ;
+ < "Små bogstaver" ; > ;
+ < "Kapitæler" ; > ;
+ < "Titelskrift" ; > ;
+ < "Baggrundsfarve" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "[nessuno]" ; > ;
+ < "Grassetto" ; > ;
+ < "Corsivo" ; > ;
+ < "Sotttolineato" ; > ;
+ < "Sottolineatura doppia" ; > ;
+ < "Maiuscolo" ; > ;
+ < "Minuscolo" ; > ;
+ < "Maiuscoletto" ; > ;
+ < "Carattere del titolo" ; > ;
+ < "Colore di sfondo" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "[Ninguno]" ; > ;
+ < "Negrita" ; > ;
+ < "Cursiva" ; > ;
+ < "Subrayado" ; > ;
+ < "Subrayado doble" ; > ;
+ < "Mayúsculas" ; > ;
+ < "Minúsculas" ; > ;
+ < "Versalitas" ; > ;
+ < "Caracteres del título" ; > ;
+ < "Color de fondo" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "[Aucun(e)]" ; > ;
+ < "Gras" ; > ;
+ < "Italique" ; > ;
+ < "Soulignage" ; > ;
+ < "Soulignage : double" ; > ;
+ < "Majuscules" ; > ;
+ < "Minuscules" ; > ;
+ < "Petites majuscules" ; > ;
+ < "Caractères du titre" ; > ;
+ < "Couleur d'arrière-plan" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "[Geen]" ; > ;
+ < "Vet" ; > ;
+ < "Cursief" ; > ;
+ < "Onderstrepen" ; > ;
+ < "Dubbel onderstrepen" ; > ;
+ < "Hoofdletters" ; > ;
+ < "Kleine letters" ; > ;
+ < "Kapitalen" ; > ;
+ < "Titelschrift" ; > ;
+ < "Achtergrondkleur" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "(nenhuns]" ; > ;
+ < "Negrito" ; > ;
+ < "Itálico" ; > ;
+ < "Sublinhado" ; > ;
+ < "Sublinhado: duplo" ; > ;
+ < "Maiúsculas" ; > ;
+ < "Minúsculas" ; > ;
+ < "Versaletes" ; > ;
+ < "Letra para título" ; > ;
+ < "Cor do plano fundo" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "[ÎÞ]" ; > ;
+ < "´ÖÌå" ; > ;
+ < "бÌå" ; > ;
+ < "Ï»®Ïß" ; > ;
+ < "Ë«Ï»®Ïß" ; > ;
+ < "´óд×Öĸ" ; > ;
+ < "Сд×Öĸ" ; > ;
+ < "СÐÍ´óд×Öĸ" ; > ;
+ < "±êÌâ×ÖÌå" ; > ;
+ < "±³¾°ÑÕÉ«" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "[Áåç]" ; > ;
+ < "Æèðíûé" ; > ;
+ < "Êóðñèâ" ; > ;
+ < "Ïîä÷åðêèâàíèå" ; > ;
+ < "Äâîéíîå ïîä÷åðêèâàíèå" ; > ;
+ < "Ïðîïèñíûå" ; > ;
+ < "Ñòðî÷íûå áóêâû" ; > ;
+ < "Ìàëûå ïðîïèñíûå" ; > ;
+ < "Çàãëàâíûé øðèôò" ; > ;
+ < "Öâåò ôîíà" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "[Brak]" ; > ;
+ < "Pogrubianie" ; > ;
+ < "Kursywa" ; > ;
+ < "Podkreœlenie" ; > ;
+ < "Podwójne podkreœlenie" ; > ;
+ < "Wersaliki" ; > ;
+ < "Ma³e litery" ; > ;
+ < "Kapitaliki" ; > ;
+ < "Czcionka tytu³owa" ; > ;
+ < "Kolor t³a" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "[‚È‚µ]" ; > ;
+ < "‘¾Žš" ; > ;
+ < "ŽÎ‘Ì" ; > ;
+ < "伟" ; > ;
+ < "Җd伟" ; > ;
+ < "‘啶Žš" ; > ;
+ < "¬•¶Žš" ; > ;
+ < "¬Œ^‘啶Žš" ; > ;
+ < "À²ÄÙ•¶Žš" ; > ;
+ < "”wŒiF" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "[µL]" ; > ;
+ < "²ÊÅé" ; > ;
+ < "±×Åé" ; > ;
+ < "¤U¹º½u" ; > ;
+ < "Âù¤U¹º½u" ; > ;
+ < "¤j¼g¦r¥À" ; > ;
+ < "¤p¼g¦r¥À" ; > ;
+ < "¤p«¬¤j¼g¦r¥À" ; > ;
+ < "¼ÐÃD¦r«¬" ; > ;
+ < "­I´ºÃC¦â" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "[ÈÏæä]" ; > ;
+ < "ÚÑíÖ" ; > ;
+ < "ãÇÆá" ; > ;
+ < "ÊÍÊå ÎØ" ; > ;
+ < "ÎØ ÊÍÊí ãÒÏæÌ" ; > ;
+ < "ÃÍÑÝ ßÈíÑÉ" ; > ;
+ < "ÃÍÑÝ ÕÛíÑÉ" ; > ;
+ < "ÍÑÝ ÈÏÇíÉ ÃßÈÑ" ; > ;
+ < "ÎØ ÇáÚäæÇä" ; > ;
+ < "áæä ÇáÎáÝíÉ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "[ÊáíÝíá]" ; > ;
+ < "¸íôïíï" ; > ;
+ < "ÐëÜãéá" ; > ;
+ < "ÕðïãñÜììéóç" ; > ;
+ < "ÄéðëÞ õðïãñÜììéóç" ; > ;
+ < "Êåöáëáßá" ; > ;
+ < "Ðåæïß ÷áñáêôÞñåò" ; > ;
+ < "ÌéêñÜ êåöáëáßá" ; > ;
+ < "ÃñáììáôïóåéñÜ ôßôëïõ" ; > ;
+ < "×ñþìá öüíôïõ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "[¾øÀ½]" ; > ;
+ < "ÁøÇÏ°Ô" ; > ;
+ < "±â¿ïÀÓ²Ã" ; > ;
+ < "¹ØÁÙ" ; > ;
+ < "¹ØÁÙ: 2Áß" ; > ;
+ < "´ë¹®ÀÚ" ; > ;
+ < "¼Ò¹®ÀÚ" ; > ;
+ < "ÀÛÀº ´ë¹®ÀÚ" ; > ;
+ < "Á¦¸ñ ±Û²Ã" ; > ;
+ < "¹è°æ»ö" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "[Yok]" ; > ;
+ < "Kalýn" ; > ;
+ < "Ýtalik" ; > ;
+ < "Altý çizili" ; > ;
+ < "Altý çift çizili" ; > ;
+ < "Büyük harflerle" ; > ;
+ < "Küçük harflerle" ; > ;
+ < "Küçük büyük harf" ; > ;
+ < "Baþlýk yazýtipi" ; > ;
+ < "Artalan rengi" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_TE_COL
+ {
+ Pos = MAP_APPFONT ( 74 , 34 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Farbe" ;
+ Text [ English ] = "Color" ;
+ Text [ portuguese ] = "~Cor" ;
+ Text [ english_us ] = "Color" ;
+ Text [ portuguese_brazilian ] = "Farbe" ;
+ Text [ swedish ] = "~Färg" ;
+ Text [ danish ] = "Farve" ;
+ Text [ italian ] = "Colore" ;
+ Text [ spanish ] = "~Color" ;
+ Text [ french ] = "Couleur" ;
+ Text [ dutch ] = "~Kleur" ;
+ Text[ chinese_simplified ] = "ÑÕÉ«";
+ Text[ russian ] = "Öâåò";
+ Text[ polish ] = "Kolor";
+ Text[ japanese ] = "F";
+ Text[ chinese_traditional ] = "ÃC¦â";
+ Text[ arabic ] = "Çááæä";
+ Text[ greek ] = "×ñþìá";
+ Text[ korean ] = "»ö»ó";
+ Text[ turkish ] = "~Renk";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_TE_COL
+ {
+ Pos = MAP_APPFONT ( 115 , 33 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ ListBox LB_TL_COL
+ {
+ Pos = MAP_APPFONT ( 115 , 33 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Hide = TRUE ;
+ };
+ ListBox LB_TC_COL
+ {
+ Pos = MAP_APPFONT ( 115 , 33 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Hide = TRUE ;
+ };
+ Window WIN_TE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 198 , 22 ) ;
+ Size = MAP_APPFONT ( 50 , 18 ) ;
+ Text = "Beispiel" ;
+ Text [ English ] = "Example" ;
+ Text [ portuguese ] = "Exemplo" ;
+ Text [ english_us ] = "Example" ;
+ Text [ portuguese_brazilian ] = "Beispiel" ;
+ Text [ swedish ] = "Exempel" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ italian ] = "Esempio" ;
+ Text [ spanish ] = "Ejemplo" ;
+ Text [ french ] = "Exemple" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text[ chinese_simplified ] = "Àý×Ó";
+ Text[ russian ] = "Ïðèìåð";
+ Text[ polish ] = "Przyk³ad";
+ Text[ japanese ] = "—á";
+ Text[ chinese_traditional ] = "¨Ò¤l";
+ Text[ arabic ] = "ãËÇá";
+ Text[ greek ] = "ÐáñÜäåéãìá";
+ Text[ korean ] = "¿¹";
+ Text[ turkish ] = "Örnek";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_TE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 70 ) ;
+ Text = "Textdarstellung" ;
+ Text [ English ] = "Text representation" ;
+ Text [ portuguese ] = "Visualizar texto" ;
+ Text [ english_us ] = "Text display" ;
+ Text [ portuguese_brazilian ] = "Textdarstellung" ;
+ Text [ swedish ] = "Textvisning" ;
+ Text [ danish ] = "Tekstvisning" ;
+ Text [ italian ] = "Rappresentazione testo" ;
+ Text [ spanish ] = "Ver texto" ;
+ Text [ french ] = "Affichage du texte" ;
+ Text [ dutch ] = "Tekstweergave" ;
+ Text[ chinese_simplified ] = "ÎÄ×ÖÏÔʾ";
+ Text[ russian ] = "Ïîêàç òåêñòà";
+ Text[ polish ] = "Wyœwietl tekst";
+ Text[ japanese ] = "÷½Ä‚ÌÃÞ¨½ÌßÚ²";
+ Text[ chinese_traditional ] = "¤å¦rÅã¥Ü";
+ Text[ arabic ] = "ÚÑÖ ÇáäÕ";
+ Text[ greek ] = "ÄéÜôáîç êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® Ç¥½Ã";
+ Text[ turkish ] = "Metin görünümü";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_MARKPOS
+ {
+ Pos = MAP_APPFONT ( 65 , 93 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "Markierung" ;
+ Text [ English ] = "Mark" ;
+ Text [ portuguese ] = "Marca" ;
+ Text [ english_us ] = "Mark" ;
+ Text [ portuguese_brazilian ] = "Markierung" ;
+ Text [ swedish ] = "Markering" ;
+ Text [ danish ] = "Markering" ;
+ Text [ italian ] = "Contrassegno" ;
+ Text [ spanish ] = "Marca" ;
+ Text [ french ] = "Marque" ;
+ Text [ dutch ] = "Markering" ;
+ Text[ chinese_simplified ] = "񈬀";
+ Text[ russian ] = "Âûäåëåíèå";
+ Text[ polish ] = "Zaznaczenie";
+ Text[ japanese ] = "‘I‘ð";
+ Text[ chinese_traditional ] = "¼Ð°O";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "ÌáñêÜñéóìá";
+ Text[ korean ] = "Ç¥½Ã";
+ Text[ turkish ] = "Ýþaret";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_MARKPOS
+ {
+ Pos = MAP_APPFONT ( 115 , 92 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "[Keine]" ; > ;
+ < "Linker Rand" ; > ;
+ < "Rechter Rand" ; > ;
+ < "Außenrand" ; > ;
+ < "Innenrand" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "[Keine]" ; > ;
+ < "Linker Rand" ; > ;
+ < "Rechter Rand" ; > ;
+ < "Außenrand" ; > ;
+ < "Innenrand" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "[nenhuns]" ; > ;
+ < "Margem esquerda" ; > ;
+ < "Margem direita" ; > ;
+ < "Margem exterior" ; > ;
+ < "Margem interior" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "[None]" ; > ;
+ < "Left margin" ; > ;
+ < "Right margin" ; > ;
+ < "Outer margin" ; > ;
+ < "Inward margin" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "[Keine]" ; > ;
+ < "Linker Rand" ; > ;
+ < "Rechter Rand" ; > ;
+ < "Außenrand" ; > ;
+ < "Innenrand" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "[Inga]" ; > ;
+ < "Vänster marginal" ; > ;
+ < "Höger marginal" ; > ;
+ < "Utvändig marginal" ; > ;
+ < "Invändig marginal" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "[Ingen]" ; > ;
+ < "Venstre margen" ; > ;
+ < "Højre margen" ; > ;
+ < "Ydermargen" ; > ;
+ < "Indermargen" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "[nessuno]" ; > ;
+ < "Bordo sinistro" ; > ;
+ < "Bordo destro" ; > ;
+ < "Bordo esterno" ; > ;
+ < "Bordo interno" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "[Ninguno]" ; > ;
+ < "Margen izquierdo" ; > ;
+ < "Margen derecho" ; > ;
+ < "Margen exterior" ; > ;
+ < "Margen interior" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "[Aucun(e)]" ; > ;
+ < "Marge gauche" ; > ;
+ < "Marge droite" ; > ;
+ < "Marge extérieure" ; > ;
+ < "Marge intérieure" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "[Geen]" ; > ;
+ < "Linker rand" ; > ;
+ < "Rechter rand" ; > ;
+ < "Buitenste rand" ; > ;
+ < "Binnenste rand" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "[ÎÞ]" ; > ;
+ < "×ó·½Ò³±ß¾à" ; > ;
+ < "ÓÒ·½Ò³±ß¾à" ; > ;
+ < "Íâ²àÒ³±ß¾à" ; > ;
+ < "ÄÚ²àÒ³±ß¾à" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "[Áåç]" ; > ;
+ < "Ëåâûé êðàé" ; > ;
+ < "Ïðàâûé êðàé" ; > ;
+ < "Íàðóæíûé êðàé" ; > ;
+ < "Âíóòðåííèé êðàé" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "[¿adne]" ; > ;
+ < "Lewy margines" ; > ;
+ < "Prawy margines" ; > ;
+ < "Margines zewnêtrzny" ; > ;
+ < "Margines wewnêtrzny" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "[‚È‚µ]" ; > ;
+ < "¶—]”’" ; > ;
+ < "‰E—]”’" ; > ;
+ < "ŠO‘¤‚Ì—]”’" ; > ;
+ < "“à‘¤‚Ì—]”’" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "[µL]" ; > ;
+ < "¥ª¦VÃä®Ø" ; > ;
+ < "¥k¦VÃä®Ø" ; > ;
+ < "Ãä®Ø¥~°¼" ; > ;
+ < "Ãä®Ø¤º°¼" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "[ÈÏæä]" ; > ;
+ < "ÇáåÇãÔ ÇáÃíÓÑ" ; > ;
+ < "ÇáåÇãÔ ÇáÃíãä" ; > ;
+ < "ÇáåÇãÔ ÇáÎÇÑÌí" ; > ;
+ < "ÇáåÇãÔ ÇáÏÇÎáí" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "[Êáìßá]" ; > ;
+ < "Áñéóôåñü ðåñéèþñéï" ; > ;
+ < "Äåîéü ðåñéèþñéï" ; > ;
+ < "Åîùôåñéêü ðåñéèþñéï" ; > ;
+ < "Åóùôåñéêü ðåñéèþñéï" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "[¾øÀ½]" ; > ;
+ < "¿ÞÂÊ ¿©¹é" ; > ;
+ < "¿À¸¥ÂÊ ¿©¹é" ; > ;
+ < "¹Ù±ùÂÊ ¿©¹é" ; > ;
+ < "¾ÈÂÊ ¿©¹é" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "[Yok]" ; > ;
+ < "Sol kenar" ; > ;
+ < "Sað kenar" ; > ;
+ < "Dýþ kenar" ; > ;
+ < "Ýç kenar" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_LC_COL
+ {
+ Pos = MAP_APPFONT ( 65 , 109 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "Farbe" ;
+ Text [ English ] = "Color" ;
+ Text [ english_us ] = "Color" ;
+ Text [ portuguese_brazilian ] = "Farbe" ;
+ Text [ swedish ] = "Färg" ;
+ Text [ danish ] = "Farve" ;
+ Text [ italian ] = "Colore" ;
+ Text [ spanish ] = "Color" ;
+ Text [ french ] = "Couleur" ;
+ Text [ dutch ] = "Kleur" ;
+ Text [ portuguese ] = "Cor" ;
+ Text[ chinese_simplified ] = "ÑÕÉ«";
+ Text[ russian ] = "Öâåò";
+ Text[ polish ] = "Kolor";
+ Text[ japanese ] = "F";
+ Text[ chinese_traditional ] = "ÃC¦â";
+ Text[ arabic ] = "Çááæä";
+ Text[ greek ] = "×ñþìá";
+ Text[ korean ] = "»ö»ó";
+ Text[ turkish ] = "Renk";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_LC_COL
+ {
+ Pos = MAP_APPFONT ( 115 , 108 ) ;
+ Size = MAP_APPFONT ( 80 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ Window WIN_MARK
+ {
+ Pos = MAP_APPFONT ( 198 , 92 ) ;
+ Size = MAP_APPFONT ( 52 , 31 ) ;
+ };
+ GroupBox GB_LC
+ {
+ Pos = MAP_APPFONT ( 6 , 79 ) ;
+ Size = MAP_APPFONT ( 248 , 50 ) ;
+ Text = "Geänderte Zeilen" ;
+ Text [ English ] = "Changed lines" ;
+ Text [ portuguese ] = "Linhas modificadas" ;
+ Text [ english_us ] = "Lines changed " ;
+ Text [ portuguese_brazilian ] = "Geänderte Zeilen" ;
+ Text [ swedish ] = "Ändrade rader" ;
+ Text [ danish ] = "Ændrede rækker" ;
+ Text [ italian ] = "Righe modificate" ;
+ Text [ spanish ] = "Líneas modificadas" ;
+ Text [ french ] = "Lignes modifiées" ;
+ Text [ dutch ] = "Gewijzigde regels" ;
+ Text[ chinese_simplified ] = "¸ü¸ÄµÄÐÐ";
+ Text[ russian ] = "Èçìåíåííûå ñòðîêè";
+ Text[ polish ] = "Zmienione wiersze";
+ Text[ japanese ] = "•ÏX‚µ‚½s";
+ Text[ chinese_traditional ] = "Åܧ󪺦æ";
+ Text[ arabic ] = "ÃÓØÑ ãÚÏáÉ";
+ Text[ greek ] = "ÃñáììÝò ðïõ Ý÷ïõí áëëá÷èåß";
+ Text[ korean ] = "¼±ÀÌ º¯°æµÇ¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Deðiþtirilen satýrlar";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTHOR
+ {
+ Text = "Nach Autor" ;
+ Text [ English ] = "By author" ;
+ Text [ portuguese ] = "Por autor" ;
+ Text [ english_us ] = "By author" ;
+ Text [ portuguese_brazilian ] = "Nach Autor" ;
+ Text [ swedish ] = "Efter författare" ;
+ Text [ danish ] = "Efter forfatter" ;
+ Text [ italian ] = "Secondo autore" ;
+ Text [ spanish ] = "Según autor" ;
+ Text [ french ] = "Par auteur" ;
+ Text [ dutch ] = "Naar auteur" ;
+ Text[ chinese_simplified ] = "°´×÷Õß";
+ Text[ russian ] = "Ïî àâòîðó";
+ Text[ polish ] = "Wed³ug autora";
+ Text[ japanese ] = "쬎҂É]‚Á‚Ä";
+ Text[ chinese_traditional ] = "«ö·Ó§@ªÌ";
+ Text[ arabic ] = "ÍÓÈ ÇáãÄáÝ";
+ Text[ greek ] = "ÊáôÜ óõíôÜêôç";
+ Text[ korean ] = "ÀÛ¼ºÀÚ¿¡ µû¶ó";
+ Text[ turkish ] = "Yazana göre";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_NOTHING
+ {
+ Text = "[Keine]" ;
+ Text [ English ] = "[None]" ;
+ Text [ portuguese ] = "[nenhum]" ;
+ Text [ english_us ] = "[None]" ;
+ Text [ portuguese_brazilian ] = "[Keine]" ;
+ Text [ swedish ] = "[Inga]" ;
+ Text [ danish ] = "[Ingen]" ;
+ Text [ italian ] = "[senza]" ;
+ Text [ spanish ] = "[Ningún]" ;
+ Text [ french ] = "[Aucun(e)]" ;
+ Text [ dutch ] = "[Geen]" ;
+ Text[ chinese_simplified ] = "[ÎÞ]";
+ Text[ russian ] = "[Áåç]";
+ Text[ polish ] = "[Brak]";
+ Text[ japanese ] = "[‚È‚µ]";
+ Text[ greek ] = "[ÊáíÝíá]";
+ Text[ korean ] = "[¾øÀ½]";
+ Text[ chinese_traditional ] = "[µL]";
+ Text[ arabic ] = "[ÈÏæä]";
+ Text[ turkish ] = "[Yok]";
+ };
+};
diff --git a/sw/source/ui/config/uinums.cxx b/sw/source/ui/config/uinums.cxx
new file mode 100644
index 000000000000..46c35bf3f88c
--- /dev/null
+++ b/sw/source/ui/config/uinums.cxx
@@ -0,0 +1,795 @@
+/*************************************************************************
+ *
+ * $RCSfile: uinums.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+#ifndef _SFXCFGITEM_HXX //autogen
+#include <sfx2/cfgitem.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX
+#include <sfx2/inimgr.hxx>
+#endif
+#ifndef _SFXITEMITER_HXX //autogen
+#include <svtools/itemiter.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+
+
+#ifndef _TOOLS_RESID_HXX
+#include <tools/resid.hxx>
+#endif
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx> // Leerstring
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _UINUMS_HXX
+#include <uinums.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _CHARFMT_HXX
+#include <charfmt.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+
+#ifndef _CFGID_H
+#include <cfgid.h>
+#endif
+#ifndef _CFGSTR_HRC
+#include <cfgstr.hrc>
+#endif
+
+#define VERSION_30B ((USHORT)250)
+#define VERSION_31B ((USHORT)326)
+#define VERSION_40A ((USHORT)364)
+#define VERSION_50A ((USHORT)373)
+#define VERSION_53A ((USHORT)596)
+#define ACT_NUM_VERSION VERSION_53A
+
+#define NUMRULE_FILENAME "numrule.cfg"
+#define CHAPTER_FILENAME "chapter.cfg"
+#define C2S(cChar) String::CreateFromAscii(cChar)
+/*------------------------------------------------------------------------
+ Beschreibung: Ops. zum Laden / Speichern
+------------------------------------------------------------------------*/
+
+
+SV_IMPL_PTRARR( _SwNumFmtsAttrs, SfxPoolItem* )
+
+
+// SwNumRulesWithName ----------------------------------------------------
+// PUBLIC METHODES -------------------------------------------------------
+/*------------------------------------------------------------------------
+ Beschreibung: Speichern einer Regel
+ Parameter: rCopy -- die zu speichernde Regel
+ nIdx -- Position, an der die Regel zu speichern ist.
+ Eine alte Regel an dieser Position wird ueberschrieben.
+------------------------------------------------------------------------*/
+
+SwBaseNumRules::SwBaseNumRules( const String& rFileName )
+ : nVersion(0),
+ sFileName( rFileName ),
+ bModified( FALSE )
+{
+ Init();
+}
+
+/*-----------------26.06.97 08.30-------------------
+
+--------------------------------------------------*/
+SwBaseNumRules::~SwBaseNumRules()
+{
+ if( bModified )
+ {
+ String sNm( SFX_INIMANAGER()->Get( SFX_KEY_USERCONFIG_PATH ));
+ sNm = URIHelper::SmartRelToAbs(sNm);
+
+ sNm += INET_PATH_TOKEN;
+ sNm += sFileName;
+ INetURLObject aTempObj(sNm);
+ sNm = aTempObj.GetFull();
+ SvFileStream aStrm( sNm, STREAM_WRITE | STREAM_TRUNC |
+ STREAM_SHARE_DENYALL );
+ Store( aStrm );
+ }
+
+ for( USHORT i = 0; i < nMaxRules; ++i )
+ delete pNumRules[i];
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+void SwBaseNumRules::Init()
+{
+ for(USHORT i = 0; i < nMaxRules; ++i )
+ pNumRules[i] = 0;
+
+ String sNm( sFileName );
+ if( SFX_INIMANAGER()->SearchFile( sNm, SFX_KEY_USERCONFIG_PATH ))
+ {
+ SvFileStream aStrm( sNm, STREAM_STD_READ );
+ Load( aStrm );
+ }
+}
+
+/*-----------------26.06.97 08.30-------------------
+
+--------------------------------------------------*/
+
+void SwBaseNumRules::ApplyNumRules(const SwNumRulesWithName &rCopy, USHORT nIdx)
+{
+ ASSERT(nIdx < nMaxRules, Array der NumRules ueberindiziert.);
+ if( !pNumRules[nIdx] )
+ pNumRules[nIdx] = new SwNumRulesWithName( rCopy );
+ else
+ *pNumRules[nIdx] = rCopy;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Zugriff auf eine Regel ueber ihren Namen
+ Return: Pointer auf die Regel oder Nullptr, wenn nicht vorhanden
+------------------------------------------------------------------------*/
+
+
+const SwNumRulesWithName *SwBaseNumRules::GetRules(const String &rName) const
+{
+ for(USHORT i = 0; i < nMaxRules; ++i)
+ {
+ SwNumRulesWithName *pRule = pNumRules[i];
+ if( pRule && pRule->GetName() == rName)
+ return pRule;
+ }
+ return 0;
+}
+// PROTECTED METHODES ----------------------------------------------------
+/*------------------------------------------------------------------------
+ Beschreibung: Speichern
+------------------------------------------------------------------------*/
+
+BOOL /**/ SwBaseNumRules::Store(SvStream &rStream)
+{
+ rStream << ACT_NUM_VERSION;
+ // Schreiben, welche Positionen durch eine Regel belegt sind
+ // Anschliessend Schreiben der einzelnen Rules
+ for(USHORT i = 0; i < nMaxRules; ++i)
+ {
+ if(pNumRules[i])
+ {
+ rStream << (unsigned char) TRUE;
+ pNumRules[i]->Store( rStream );
+ }
+ else
+ rStream << (unsigned char) FALSE;
+ }
+ return SfxConfigItem::ERR_OK;
+}
+
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Speichern / Laden
+------------------------------------------------------------------------*/
+
+
+int SwBaseNumRules::Load(SvStream &rStream)
+{
+ int rc = SfxConfigItem::ERR_OK;
+
+ rStream >> nVersion;
+
+ // wegen eines kleinen aber schweren Fehlers schreibt die PreFinal die
+ // gleiche VERSION_40A wie das SP2 #55402#
+ if(VERSION_40A == nVersion)
+ {
+ DBG_ERROR("Version 364 ist nicht eindeutig #55402#")
+ }
+ else if( VERSION_30B == nVersion || VERSION_31B == nVersion ||
+ ACT_NUM_VERSION >= nVersion )
+ {
+ unsigned char bRule = FALSE;
+ for(USHORT i = 0; i < nMaxRules; ++i)
+ {
+ rStream >> bRule;
+ if(bRule)
+ pNumRules[i] = new SwNumRulesWithName( rStream, nVersion );
+ }
+ }
+ else
+ {
+ rc = SfxConfigItem::WARNING_VERSION;
+ }
+
+ return rc;
+}
+
+/*-----------------26.06.97 08.34-------------------
+
+--------------------------------------------------*/
+
+/*------------------------------------------------------------------------*/
+
+
+SwChapterNumRules::SwChapterNumRules() :
+ SwBaseNumRules(C2S(CHAPTER_FILENAME))
+{
+}
+
+/*------------------------------------------------------------------------*/
+
+ SwChapterNumRules::~SwChapterNumRules()
+{
+}
+
+/*-----------------26.06.97 08.23-------------------
+
+--------------------------------------------------*/
+void SwChapterNumRules::ApplyNumRules(const SwNumRulesWithName &rCopy, USHORT nIdx)
+{
+ bModified = TRUE;
+ SwBaseNumRules::ApplyNumRules(rCopy, nIdx);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+String SwChapterNumRules::GetName() const
+{
+ return SW_RESSTR( STR_CFG_UINUM );
+}
+
+/*------------------------------------------------------------------------*/
+
+SwNumRulesWithName::SwNumRulesWithName(const SwNumRule &rCopy,
+ const String &rName)
+ : aName(rName)
+{
+ for( int n = 0; n < MAXLEVEL; ++n )
+ {
+ const SwNumFmt* pFmt = rCopy.GetNumFmt( n );
+ if( pFmt )
+ aFmts[ n ] = new _SwNumFmtGlobal( *pFmt );
+ else
+ aFmts[ n ] = 0;
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+SwNumRulesWithName::SwNumRulesWithName( const SwNumRulesWithName& rCopy )
+{
+ memset( aFmts, 0, sizeof( aFmts ));
+ *this = rCopy;
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+SwNumRulesWithName::~SwNumRulesWithName()
+{
+ for( int n = 0; n < MAXLEVEL; ++n )
+ delete aFmts[ n ];
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+const SwNumRulesWithName& SwNumRulesWithName::operator=(const SwNumRulesWithName &rCopy)
+{
+ if( this != &rCopy )
+ {
+ aName = rCopy.aName;
+ for( int n = 0; n < MAXLEVEL; ++n )
+ {
+ delete aFmts[ n ];
+
+ _SwNumFmtGlobal* pFmt = rCopy.aFmts[ n ];
+ if( pFmt )
+ aFmts[ n ] = new _SwNumFmtGlobal( *pFmt );
+ else
+ aFmts[ n ] = 0;
+ }
+ }
+ return *this;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+SwNumRulesWithName::SwNumRulesWithName( SvStream &rStream, USHORT nVersion )
+{
+ CharSet eEncoding = gsl_getSystemTextEncoding();
+ rStream.ReadByteString(aName, eEncoding);
+
+ char c;
+ for(USHORT n = 0; n < MAXLEVEL; ++n )
+ {
+ if( VERSION_30B == nVersion )
+ c = 1;
+ // wegen eines kleinen aber schweren Fehlers schreibt die PreFinal die
+ // gleiche VERSION_40A wie das SP2 #55402#
+ else if(nVersion < VERSION_40A && n > 5)
+// else if(nVersion < VERSION_50A && n > 5)
+ c = 0;
+ else
+ rStream >> c;
+
+ if( c )
+ aFmts[ n ] = new _SwNumFmtGlobal( rStream, nVersion );
+ else
+ aFmts[ n ] = 0;
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwNumRulesWithName::MakeNumRule( SwWrtShell& rSh, SwNumRule& rChg ) const
+{
+ rChg = SwNumRule( aName );
+ rChg.SetAutoRule( FALSE );
+ _SwNumFmtGlobal* pFmt;
+ for( USHORT n = 0; n < MAXLEVEL; ++n )
+ if( 0 != ( pFmt = aFmts[ n ] ) )
+ {
+ SwNumFmt aNew;
+ pFmt->ChgNumFmt( rSh, aNew );
+ rChg.Set( n, aNew );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+void SwNumRulesWithName::Store( SvStream &rStream )
+{
+ CharSet eEncoding = gsl_getSystemTextEncoding();
+ rStream.WriteByteString(aName, eEncoding);
+
+ for( USHORT n = 0; n < MAXLEVEL; ++n )
+ {
+ _SwNumFmtGlobal* pFmt = aFmts[ n ];
+ if( pFmt )
+ {
+ rStream << (char)1;
+ pFmt->Store( rStream );
+ }
+ else
+ rStream << (char)0;
+ }
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( const SwNumFmt& rFmt )
+ : aFmt( rFmt ), nCharPoolId( USHRT_MAX )
+{
+ // relative Abstaende ?????
+
+ SwCharFmt* pFmt = rFmt.GetCharFmt();
+ if( pFmt )
+ {
+ sCharFmtName = pFmt->GetName();
+ nCharPoolId = pFmt->GetPoolFmtId();
+ if( pFmt->GetAttrSet().Count() )
+ {
+ SfxItemIter aIter( pFmt->GetAttrSet() );
+ const SfxPoolItem *pCurr = aIter.GetCurItem();
+ while( TRUE )
+ {
+ aItems.Insert( pCurr->Clone(), aItems.Count() );
+ if( aIter.IsAtEnd() )
+ break;
+ pCurr = aIter.NextItem();
+ }
+ }
+
+ aFmt.SetCharFmt( 0 );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( const _SwNumFmtGlobal& rFmt )
+ : aFmt( rFmt.aFmt ), nCharPoolId( rFmt.nCharPoolId ),
+ sCharFmtName( rFmt.sCharFmtName )
+{
+ for( USHORT n = rFmt.aItems.Count(); n; )
+ aItems.Insert( rFmt.aItems[ --n ]->Clone(), aItems.Count() );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( SvStream& rStream,
+ USHORT nVersion )
+ : nCharPoolId( USHRT_MAX )
+{
+ CharSet eEncoding = gsl_getSystemTextEncoding();
+ {
+ USHORT nUS;
+ sal_Char cChar;
+ short nShort;
+ BOOL bFlag;
+ String sStr;
+
+ rStream >> nUS; aFmt.eType = SvxExtNumType( nUS );
+ if( VERSION_53A > nVersion )
+ {
+ rStream >> cChar; aFmt.SetBulletChar( cChar );
+ }
+ else
+ {
+ rStream >> nUS; aFmt.SetBulletChar( nUS );
+ }
+
+ rStream >> bFlag; aFmt.SetInclUpperLevel( bFlag );
+
+ if( VERSION_30B == nVersion )
+ {
+ long nL;
+ rStream >> cChar; aFmt.SetStartValue( (USHORT)cChar );
+
+ rStream.ReadByteString(sStr, eEncoding);
+ aFmt.SetPrefix( sStr );
+ rStream.ReadByteString(sStr, eEncoding);
+ aFmt.SetPostfix( sStr );
+ rStream >> nUS; aFmt.SetAdjust( SvxAdjust( nUS ) );
+ rStream >> nL; aFmt.SetLSpace( lNumIndent );
+ rStream >> nL; aFmt.SetFirstLineOffset( (short)nL );
+ aFmt.SetRelLSpace( TRUE );
+ }
+ else // alter StartWert war ein Byte
+ {
+ rStream >> nUS; aFmt.SetStartValue( nUS );
+ rStream.ReadByteString(sStr, eEncoding);
+ aFmt.SetPrefix( sStr );
+ rStream.ReadByteString(sStr, eEncoding);
+ aFmt.SetPostfix( sStr );
+ rStream >> nUS; aFmt.SetAdjust( SvxAdjust( nUS ) );
+ rStream >> nUS; aFmt.SetAbsLSpace( nUS );
+ rStream >> nShort; aFmt.SetFirstLineOffset( nShort );
+ rStream >> nUS; aFmt.SetCharTextOffset( nUS );
+ rStream >> nShort; aFmt.SetLSpace( nShort );
+ rStream >> bFlag; aFmt.SetRelLSpace( bFlag );
+ }
+
+ USHORT nFamily;
+ USHORT nCharSet;
+ short nWidth;
+ short nHeight;
+ USHORT nPitch;
+ String aName;
+
+ rStream.ReadByteString(aName, eEncoding);
+ rStream >> nFamily >> nCharSet >> nWidth >> nHeight >> nPitch;
+
+ if( aName.Len() )
+ {
+ Font aFont( nFamily, Size( nWidth, nHeight ) );
+ aFont.SetName( aName );
+ aFont.SetCharSet( (CharSet)nCharSet );
+ aFont.SetPitch( (FontPitch)nPitch );
+
+ aFmt.SetBulletFont( &aFont );
+ }
+ else
+ nCharSet = RTL_TEXTENCODING_SYMBOL;
+
+ if( VERSION_53A > nVersion )
+ aFmt.SetBulletChar( ByteString::ConvertToUnicode(
+ aFmt.GetBulletChar(), nCharSet ));
+ }
+
+ if( VERSION_30B != nVersion )
+ {
+ USHORT nItemCount;
+ rStream >> nCharPoolId;
+ rStream.ReadByteString(sCharFmtName, eEncoding);
+ rStream >> nItemCount;
+
+ while( nItemCount-- )
+ {
+ USHORT nWhich, nVers;
+ rStream >> nWhich >> nVers;
+ aItems.Insert( GetDfltAttr( nWhich )->Create( rStream, nVers ),
+ aItems.Count() );
+ }
+ }
+
+ if( VERSION_40A == nVersion && SVX_NUM_BITMAP == aFmt.eType )
+ {
+ BYTE cF;
+ Size aSz;
+
+ rStream >> aSz.Width() >> aSz.Height();
+
+ rStream >> cF;
+ if( cF )
+ {
+ SvxBrushItem* pBrush = 0;
+ SwFmtVertOrient* pVOrient = 0;
+ USHORT nVer;
+
+ if( cF & 1 )
+ {
+ rStream >> nVer;
+ pBrush = (SvxBrushItem*)GetDfltAttr( RES_BACKGROUND )
+ ->Create( rStream, nVer );
+ }
+
+ if( cF & 2 )
+ {
+ rStream >> nVer;
+ pVOrient = (SwFmtVertOrient*)GetDfltAttr( RES_VERT_ORIENT )
+ ->Create( rStream, nVer );
+ }
+ aFmt.SetGrfBrush( pBrush, &aSz, pVOrient );
+ }
+ }
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwNumRulesWithName::_SwNumFmtGlobal::~_SwNumFmtGlobal()
+{
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+void SwNumRulesWithName::_SwNumFmtGlobal::Store( SvStream& rStream )
+{
+ CharSet eEncoding = gsl_getSystemTextEncoding();
+ {
+ String aName;
+ USHORT nFamily = FAMILY_DONTKNOW, nCharSet = 0, nPitch = 0;
+ short nWidth = 0, nHeight = 0;
+
+ const Font* pFnt = aFmt.GetBulletFont();
+ if( pFnt )
+ {
+ aName = pFnt->GetName();
+ nFamily = (USHORT)pFnt->GetFamily();
+ nCharSet = (USHORT)pFnt->GetCharSet();
+ nWidth = (short)pFnt->GetSize().Width();
+ nHeight = (short)pFnt->GetSize().Height();
+ nPitch = (USHORT)pFnt->GetPitch();
+ }
+
+ rStream << USHORT(aFmt.eType)
+ << aFmt.GetBulletChar()
+ << aFmt.IsInclUpperLevel()
+ << aFmt.GetStartValue();
+ rStream.WriteByteString( aFmt.GetPrefix(), eEncoding );
+ rStream.WriteByteString( aFmt.GetPostfix(), eEncoding );
+ rStream << USHORT( aFmt.GetAdjust() )
+ << aFmt.GetAbsLSpace()
+ << aFmt.GetFirstLineOffset()
+ << aFmt.GetCharTextOffset()
+ << aFmt.GetLSpace()
+ << aFmt.IsRelLSpace();
+ rStream.WriteByteString( aName, eEncoding );
+ rStream << nFamily
+ << nCharSet
+ << nWidth
+ << nHeight
+ << nPitch;
+ }
+ rStream << nCharPoolId;
+ rStream.WriteByteString( sCharFmtName, eEncoding );
+ rStream << aItems.Count();
+
+ for( USHORT n = aItems.Count(); n; )
+ {
+ SfxPoolItem* pItem = aItems[ --n ];
+ USHORT nIVers = pItem->GetVersion( SOFFICE_FILEFORMAT_NOW );
+ ASSERT( nIVers != USHRT_MAX,
+ "Was'n das: Item-Version USHRT_MAX in der aktuellen Version" );
+ rStream << pItem->Which()
+ << nIVers;
+ pItem->Store( rStream, nIVers );
+ }
+
+ // Erweiterungen fuer Version 40A
+
+ if( SVX_NUM_BITMAP == aFmt.eType )
+ {
+ rStream << (INT32)aFmt.GetGrfSize().Width()
+ << (INT32)aFmt.GetGrfSize().Height();
+ BYTE cFlg = ( 0 != aFmt.GetGrfBrush() ? 1 : 0 ) +
+ ( 0 != aFmt.GetGrfOrient() ? 2 : 0 );
+ rStream << cFlg;
+
+ if( aFmt.GetGrfBrush() )
+ {
+ USHORT nVersion = aFmt.GetGrfBrush()->GetVersion( SOFFICE_FILEFORMAT_NOW );
+ rStream << nVersion;
+ aFmt.GetGrfBrush()->Store( rStream, nVersion );
+ }
+ if( aFmt.GetGrfOrient() )
+ {
+ USHORT nVersion = aFmt.GetGrfOrient()->GetVersion( SOFFICE_FILEFORMAT_NOW );
+ rStream << nVersion;
+ aFmt.GetGrfOrient()->Store( rStream, nVersion );
+ }
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwNumRulesWithName::_SwNumFmtGlobal::ChgNumFmt( SwWrtShell& rSh,
+ SwNumFmt& rNew ) const
+{
+ SwCharFmt* pFmt = 0;
+ if( sCharFmtName.Len() )
+ {
+ // suche erstmal ueber den Namen
+ USHORT nArrLen = rSh.GetCharFmtCount();
+ for( USHORT i = 1; i < nArrLen; ++i )
+ {
+ pFmt = &rSh.GetCharFmt( i );
+ if( COMPARE_EQUAL == pFmt->GetName().CompareTo( sCharFmtName ))
+ // ist vorhanden, also belasse die Attribute wie sie sind!
+ break;
+ pFmt = 0;
+ }
+
+ if( !pFmt )
+ {
+ if( IsPoolUserFmt( nCharPoolId ) )
+ {
+ pFmt = rSh.MakeCharFmt( sCharFmtName );
+ pFmt->SetAuto( FALSE );
+ }
+ else
+ pFmt = rSh.GetCharFmtFromPool( nCharPoolId );
+
+ if( !pFmt->GetDepends() ) // Attribute setzen
+ for( USHORT n = aItems.Count(); n; )
+ pFmt->SetAttr( *aItems[ --n ] );
+ }
+ }
+ ((SwNumFmt&)aFmt).SetCharFmt( pFmt );
+ rNew = aFmt;
+ if( pFmt )
+ ((SwNumFmt&)aFmt).SetCharFmt( 0 );
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.69 2000/09/18 16:05:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.68 2000/07/26 10:46:37 jp
+ Bulletchar is now an unicode char, so we must write a new format
+
+ Revision 1.67 2000/07/24 12:55:43 jp
+ Bug #76561#: convert Bulletchar to unicode
+
+ Revision 1.66 2000/06/26 13:09:13 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.65 2000/06/07 13:08:17 os
+ using UCB
+
+ Revision 1.64 2000/04/20 12:50:49 os
+ GetName() returns String&
+
+ Revision 1.63 2000/04/11 08:02:24 os
+ UNICODE
+
+ Revision 1.62 2000/03/03 15:16:59 os
+ StarView remainders removed
+
+ Revision 1.61 1999/10/21 17:47:37 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.60 1998/11/17 09:50:14 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+
+ Rev 1.59 17 Nov 1998 10:50:14 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/config/usrpref.cxx b/sw/source/ui/config/usrpref.cxx
new file mode 100644
index 000000000000..1180dc1ec072
--- /dev/null
+++ b/sw/source/ui/config/usrpref.cxx
@@ -0,0 +1,818 @@
+/*************************************************************************
+ *
+ * $RCSfile: usrpref.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+
+
+#include "swtypes.hxx"
+#include "hintids.hxx"
+#include "uitool.hxx"
+#include "usrpref.hxx"
+#include "crstate.hxx"
+#include "cfgid.h"
+#include "cfgstr.hrc"
+#ifndef _OFA_OSPLCFG_HXX
+#include <offmgr/osplcfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+#define C2U(cChar) OUString::createFromAscii(cChar)
+#define C2S(cChar) String::CreateFromAscii(cChar)
+
+#define VERSION_30B ((sal_uInt16)250) //Beta1 ??
+#define VERSION_30B2 ((sal_uInt16)251) //Beta2
+#define VERSION_30B3 ((sal_uInt16)252) //Beta2.9
+#define VERSION_30B4 ((sal_uInt16)253) //Beta3.1
+#define VERSION_30B5 ((sal_uInt16)254) //Beta4
+#define VERSION_30B6 ((sal_uInt16)256) //Beta6
+#define VERSION_301B6 ((sal_uInt16)257) //Beta6+OnlineSpelling
+#define VERSION_301_03 ((sal_uInt16)258) //Flag fuer BrowseMode
+#define VERSION_301_04 ((sal_uInt16)259) //Flag fuer Massstab beibehalten (Crop)
+#define VERSION_391_05 ((sal_uInt16)260) //Endlich das product/non-product chaos aufgeloest.
+#define VERSION_302_01 ((sal_uInt16)313) //Zusammenfassung der Optionen ab SV 313
+#define VERSION_302_02 ((sal_uInt16)325) //nTblDest neu
+#define VERSION_326e ((sal_uInt16)326) //PrintPageBack neu
+#define VERSION_327c ((sal_uInt16)327) //ExecHyperlinks neu
+#define VERSION_328 ((sal_uInt16)328) //HtmlMode
+#define VERSION_332 ((sal_uInt16)332) //DefaultBackground
+#define VERSION_333 ((sal_uInt16)333) //Symbolfont-Position
+#define VERSION_346 ((sal_uInt16)346) //nCore2Options neu
+#define VERSION_349 ((sal_uInt16)349) //TabDist und UndoCount raus
+#define VERSION_4SP2a ((sal_uInt16)400) //HiddenPara, Fixpack II
+#define VERSION_371 ((sal_uInt16)471) //ShadowCrsr
+#define VERSION_388 ((sal_uInt16)500) //BackgroundBrush -> Background Color
+#define VERSION_511 ((sal_uInt16)511) //Bereichsbegrenzung, Cursor in gesch. Zonen
+#define VERSION_512 ((sal_uInt16)512) //index background flag and color
+
+
+// mit der naechsten Version koennen die Dummies fuer die TabDist raus
+
+#define USRPEF_VERSION VERSION_512
+
+
+sal_Bool bNotLoadLayout = sal_False; // fuer MD
+
+
+void SwMasterUsrPref::SetUsrPref(const SwViewOption &rCopy)
+{
+ *((SwViewOption*)this) = rCopy;
+
+#ifndef PRODUCT
+ bNotLoadLayout = rCopy.IsTest1(); // MD Layout lesen
+#endif
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Schreiben / Lesen Konfiguration.
+ Die einzelnen Bits des Bitfeldes muessen als
+ char geschrieben werden, da die Bits eines Bytes
+ auf den verschiedenen Plattformen unterschiedlich
+ abgelegt werden.
+------------------------------------------------------------------------*/
+
+
+sal_Bool SwMasterUsrPref::Store(SvStream& rStream)
+{
+ rStream << USRPEF_VERSION;
+
+#ifdef PRODUCT
+ rStream << sal_Int8(1);
+#else
+ rStream << sal_Int8(0);
+#endif
+
+ rStream << nCoreOptions;
+ rStream << nCore2Options;
+ rStream << nUIOptions;
+
+ rStream << sal_uInt32(GetSnapSize().Width());
+ rStream << sal_uInt32(GetSnapSize().Height());
+ rStream << sal_uInt16(GetDivisionX());
+ rStream << sal_uInt16(GetDivisionY());
+
+ rStream << sal_uInt16(GetZoom());
+ rStream << sal_uInt16(eZoom);
+ rStream << sal_Int8(nTblDest);
+
+ rStream << sal_uInt16(::GetDfltMetric(sal_False));
+
+ rStream.WriteByteString(sSymbolFont, gsl_getSystemTextEncoding());
+
+ rStream << sal_Int8(GetPagePrevRow());
+ rStream << sal_Int8(GetPagePrevCol());
+
+ rStream << sal_uInt32(GetRetoucheColor().GetColor());
+
+ rStream << (sal_Int8)nShdwCrsrFillMode;
+ rStream << (sal_uInt32)aShdwCrsrCol.GetColor();
+
+ rStream << (sal_uInt32)aIdxBackgrndCol.GetColor();
+
+#ifndef PRODUCT
+ sal_Int8 nFlags3 = 0;
+ if ( bTest1 ) nFlags3 |= 0x01;
+ if ( bTest2 ) nFlags3 |= 0x02;
+ if ( bTest3 ) nFlags3 |= 0x04;
+ if ( bTest4 ) nFlags3 |= 0x08;
+ if ( bTest5 ) nFlags3 |= 0x10;
+ if ( bTest6 ) nFlags3 |= 0x20;
+ if ( bTest7 ) nFlags3 |= 0x40;
+ if ( bTest8 ) nFlags3 |= 0x80;
+ rStream << nFlags3;
+#endif
+
+ return SfxConfigItem::ERR_OK;
+}
+
+
+
+int SwMasterUsrPref::Load(SvStream& rStream)
+{
+ SetDefault( sal_False );
+
+ sal_uInt16 nVersion;
+ rStream >> nVersion;
+
+ sal_Int8 nProductFlag;
+ if ( nVersion >= VERSION_391_05 )
+ rStream >> nProductFlag;
+
+ if( nVersion >= VERSION_30B6 && nVersion < VERSION_302_01 )
+ {
+ nCore2Options = VIEWOPT_CORE2_BLACKFONT;
+ sal_uInt16 nFlags;
+ rStream >> nFlags;
+ nUIOptions = 0;
+ nUIOptions |= (nFlags & 0x0001) ? VIEWOPT_2_TOOLBOX : 0 ;
+ nUIOptions |= (nFlags & 0x0002) ? VIEWOPT_2_TOOLBOXTEXT : 0 ;
+ nUIOptions |= (nFlags & 0x0004) ? VIEWOPT_2_TOOLBOXBITMAP : 0 ;
+ nUIOptions |= (nFlags & 0x0008) ? VIEWOPT_2_TOOLBOXBOTH : 0 ;
+ nUIOptions |= (nFlags & 0x0010) ? VIEWOPT_2_TOOLBOXLEFT : 0 ;
+ nUIOptions |= (nFlags & 0x0020) ? VIEWOPT_2_TOOLBOXRIGHT : 0 ;
+ nUIOptions |= (nFlags & 0x0040) ? VIEWOPT_2_TOOLBOXTOP : 0 ;
+ nUIOptions |= (nFlags & 0x0080) ? VIEWOPT_2_TOOLBOXBOTTOM : 0 ;
+ nUIOptions |= (nFlags & 0x0100) ? VIEWOPT_2_UNUSED1 : 0 ;
+ nUIOptions |= (nFlags & 0x0200) ? VIEWOPT_2_RIBBONBAR : 0 ;
+ nUIOptions |= (nFlags & 0x0400) ? VIEWOPT_2_TABWIN : 0 ;
+ nUIOptions |= (nFlags & 0x0800) ? VIEWOPT_2_VSCROLLBAR : 0 ;
+ nUIOptions |= (nFlags & 0x1000) ? VIEWOPT_2_HSCROLLBAR : 0 ;
+ nUIOptions |= (nFlags & 0x2000) ? VIEWOPT_2_STATUSLINE : 0 ;
+ nUIOptions |= (nFlags & 0x4000) ? VIEWOPT_2_VLIN : 0 ;
+ nUIOptions |= (nFlags & 0x8000) ? VIEWOPT_2_SVLOOK : 0 ;
+
+
+ sal_uInt32 nFlags2;
+ rStream >> nFlags2;
+ nCoreOptions = VIEWOPT_1_IDLE;
+ nCoreOptions |= (nFlags2 & 0x00000001) ? VIEWOPT_1_TAB : 0;
+ nCoreOptions |= (nFlags2 & 0x00000002) ? VIEWOPT_1_BLANK : 0;
+ nCoreOptions |= (nFlags2 & 0x00000004) ? VIEWOPT_1_HARDBLANK : 0;
+ nCoreOptions |= (nFlags2 & 0x00000008) ? VIEWOPT_1_PARAGRAPH : 0;
+ nCoreOptions |= (nFlags2 & 0x00000010) ? VIEWOPT_1_LINEBREAK : 0;
+ nCoreOptions |= (nFlags2 & 0x00000020) ? VIEWOPT_1_PAGEBREAK : 0;
+ nCoreOptions |= (nFlags2 & 0x00000040) ? VIEWOPT_1_COLUMNBREAK: 0;
+ nCoreOptions |= (nFlags2 & 0x00000080) ? VIEWOPT_1_SOFTHYPH : 0;
+ nCoreOptions |= (nFlags2 & 0x00000100) ? VIEWOPT_1_TOX : 0;
+ nCoreOptions |= (nFlags2 & 0x00000200) ? VIEWOPT_1_REF : 0;
+ nCoreOptions |= (nFlags2 & 0x00000400) ? VIEWOPT_1_FLDNAME : 0;
+ nCoreOptions |= (nFlags2 & 0x00000800) ? VIEWOPT_1_FIELD : 0;
+ nCoreOptions |= (nFlags2 & 0x00001000) ? VIEWOPT_1_FOOTNOTE : 0;
+ nCoreOptions |= (nFlags2 & 0x00002000) ? VIEWOPT_1_POSTITS : 0;
+ nCoreOptions |= (nFlags2 & 0x00004000) ? VIEWOPT_1_HIDDEN : 0;
+ nCoreOptions |= (nFlags2 & 0x00008000) ? VIEWOPT_1_SUBSLINES : 0;
+ nCoreOptions |= (nFlags2 & 0x00010000) ? VIEWOPT_1_GRAPHIC : 0;
+ nCoreOptions |= (nFlags2 & 0x00020000) ? VIEWOPT_1_TABLE : 0;
+ nCoreOptions |= (nFlags2 & 0x00040000) ? VIEWOPT_1_SUBSTABLE : 0;
+ nCoreOptions |= (nFlags2 & 0x00080000) ? VIEWOPT_1_CROSSHAIR : 0;
+ nCoreOptions |= (nFlags2 & 0x00100000) ? VIEWOPT_1_SNAP : 0;
+ nCoreOptions |= (nFlags2 & 0x00200000) ? VIEWOPT_1_SYNCHRONIZE: 0;
+ nCoreOptions |= (nFlags2 & 0x00400000) ? VIEWOPT_1_GRIDVISIBLE: 0;
+ nCoreOptions |= (nFlags2 & 0x00800000) ? VIEWOPT_1_DRAW : 0;
+
+ sal_uInt32 lWidth, lHeight;
+ rStream >> lWidth;
+ rStream >> lHeight;
+ Size aSz( lWidth, lHeight );
+ SetSnapSize( aSz );
+
+ sal_uInt16 sVal;
+ rStream >> sVal;
+ SetDivisionX( sVal );
+ rStream >> sVal;
+ SetDivisionY( sVal );
+
+ sal_uInt16 nZoom;
+ rStream >> nZoom;
+ SetZoom( nZoom );
+ rStream >> nZoom;
+ eZoom = int(nZoom);
+ nTblDest = TBL_DEST_CELL;
+
+ sal_uInt16 nMet;
+ //Default-Tabulator und Metric
+ // werden noch gelesen/geschrieben, damit die Version bleiben kann
+ rStream >> nMet;
+ rStream >> nMet;
+
+ sal_Int8 nPrev;
+ rStream >> nPrev;
+ SetPagePrevRow(nPrev);
+ rStream >> nPrev;
+ SetPagePrevCol(nPrev);
+
+ sal_uInt16 nUndo;
+ rStream >> nUndo;
+
+ if( nVersion > VERSION_30B6 )
+ {
+ rStream >> nPrev;
+ SetKeepRatio( nPrev );
+ }
+ else
+ SetKeepRatio( sal_False );
+ if( nVersion > VERSION_301_03 )
+ {
+ rStream >> nPrev;
+ SetGrfKeepZoom( nPrev ) ;
+ }
+ else
+ SetGrfKeepZoom( sal_False );
+
+#ifndef PRODUCT
+ if ( nVersion < VERSION_391_05 || nProductFlag == sal_Int8(0) )
+ {
+ sal_Int8 nFlags3;
+ rStream >> nFlags3;
+ bTest1 = sal_Int8( (nFlags3 & 0x01) != 0 );
+ if(bNotLoadLayout && !bTest1)
+ DBG_ERROR("Layout wird doch geladen - nochmal versuchen!")
+ bNotLoadLayout = bTest1;
+
+ bTest2 = sal_Int8( (nFlags3 & 0x02) != 0 );
+ bTest3 = sal_Int8( (nFlags3 & 0x04) != 0 );
+ bTest4 = sal_Int8( (nFlags3 & 0x08) != 0 );
+ bTest5 = sal_Int8( (nFlags3 & 0x10) != 0 );
+ bTest6 = sal_Int8( (nFlags3 & 0x20) != 0 );
+ bTest7 = sal_Int8( (nFlags3 & 0x40) != 0 );
+ bTest8 = sal_Int8( (nFlags3 & 0x80) != 0 );
+ }
+ else
+ bTest1 = bTest2 = bTest3 = bTest4 = bTest5 = bTest6 =
+ bTest7 = bTest8 = bNotLoadLayout = sal_False;
+#endif
+ }
+ else if( nVersion >= VERSION_302_01)
+ {
+ rStream >> nCoreOptions;
+ nCoreOptions |= VIEWOPT_1_IDLE;
+ if( nVersion < VERSION_326e )
+ nCoreOptions |= VIEWOPT_1_PAGEBACK;
+ if(nVersion >= VERSION_346)
+ {
+ rStream >> nCore2Options;
+ if ( nVersion < VERSION_4SP2a )
+ nCore2Options |= VIEWOPT_CORE2_HIDDENPARA;
+ }
+ else
+ nCore2Options = VIEWOPT_CORE2_BLACKFONT | VIEWOPT_CORE2_HIDDENPARA;
+
+ if(nVersion < VERSION_511)
+ {
+ nCore2Options &= ~VIEWOPT_CORE2_SECTION_BOUNDS;
+ nCore2Options |= VIEWOPT_CORE2_CRSR_IN_PROT;
+ }
+ if(nVersion < VERSION_512)
+ {
+ nCore2Options |= VIEWOPT_CORE2_INDEX_BACKGROUND;
+ }
+
+ rStream >> nUIOptions;
+ if( nVersion < VERSION_327c )
+ nUIOptions |= VIEWOPT_2_EXECHYPERLINKS;
+ sal_uInt32 lWidth, lHeight;
+ rStream >> lWidth;
+ rStream >> lHeight;
+ Size aSz( lWidth, lHeight );
+ SetSnapSize( aSz );
+
+ sal_uInt16 sVal;
+ rStream >> sVal;
+ SetDivisionX( sVal );
+ rStream >> sVal;
+ SetDivisionY( sVal );
+
+ sal_uInt16 nZoom;
+ rStream >> nZoom;
+ SetZoom( nZoom );
+ rStream >> nZoom;
+ eZoom = int(nZoom);
+ if(nVersion >= VERSION_302_02)
+ {
+ sal_Int8 nDest;
+ rStream >> nDest;
+ nTblDest = Min((sal_Int8)TBL_DEST_TBL, nDest);
+ }
+ else
+ {
+ nTblDest = TBL_DEST_CELL;
+ }
+
+
+ sal_uInt16 nMet;
+ //Default-Tabulator und Metric
+ // werden noch gelesen/geschrieben, damit die Version bleiben kann
+ rStream >> nMet;
+ if(nVersion < VERSION_349)
+ rStream >> nMet;
+
+ if(nVersion >= VERSION_333)
+ rStream.ReadByteString(sSymbolFont, gsl_getSystemTextEncoding());
+
+ sal_Int8 nPrev;
+ rStream >> nPrev;
+ SetPagePrevRow(nPrev);
+ rStream >> nPrev;
+ SetPagePrevCol(nPrev);
+
+ // Undo einlesen
+ if(nVersion < VERSION_349)
+ {
+ sal_uInt16 nUndo;
+ rStream >> nUndo;
+ }
+
+ if(nVersion >= VERSION_332)
+ {
+ sal_uInt32 nColor;
+ if ( nVersion < VERSION_388 )
+ {
+ sal_Int8 nStyle;
+ if(GetType() == CFG_USERPREF_ITEM)
+ {
+ // fuer Textdokumente wird keine Farbe gesetzt!
+ rStream >> nColor;
+ rStream >> nColor;
+ rStream >> nStyle;
+ rStream >> nStyle;
+ }
+ else
+ {
+ rStream >> nColor;
+ aRetoucheColor.SetColor( nColor );
+ rStream >> nColor;
+ rStream >> nStyle;
+ if ( nStyle == 0 /*BRUSH_NULL*/ )
+ aRetoucheColor.SetColor( COL_TRANSPARENT );
+ rStream >> nStyle;
+ }
+ }
+ else
+ {
+ if ( GetType() == CFG_USERPREF_ITEM )
+ rStream >> nColor;
+ else
+ {
+ rStream >> nColor;
+ aRetoucheColor.SetColor( nColor );
+ }
+ }
+ }
+ if(nVersion >= VERSION_371)
+ {
+ sal_Int8 nMode;
+ sal_uInt32 nColor;
+ rStream >> nMode;
+ rStream >> nColor;
+
+ aShdwCrsrCol.SetColor( nColor );
+ nShdwCrsrFillMode = nMode;
+ }
+ if(nVersion >= VERSION_512)
+ {
+ sal_uInt32 nColor;
+ rStream >> nColor;
+ aIdxBackgrndCol.SetColor(nColor);
+ }
+
+#ifndef PRODUCT
+ if ( nVersion < VERSION_391_05 || nProductFlag == sal_Int8(0) )
+ {
+ sal_Int8 nFlags3;
+ rStream >> nFlags3;
+ bTest1 = sal_Int8( (nFlags3 & 0x01) != 0 );
+ if(bNotLoadLayout && !bTest1)
+ DBG_ERROR("Layout wird doch geladen - nochmal versuchen!")
+ bNotLoadLayout = bTest1;
+ bTest2 = sal_Int8( (nFlags3 & 0x02) != 0 );
+ bTest3 = sal_Int8( (nFlags3 & 0x04) != 0 );
+ bTest4 = sal_Int8( (nFlags3 & 0x08) != 0 );
+ bTest5 = sal_Int8( (nFlags3 & 0x10) != 0 );
+ bTest6 = sal_Int8( (nFlags3 & 0x20) != 0 );
+ bTest7 = sal_Int8( (nFlags3 & 0x40) != 0 );
+ bTest8 = sal_Int8( (nFlags3 & 0x80) != 0 );
+ }
+ else
+ bTest1 = bTest2 = bTest3 = bTest4 = bTest5 = bTest6 =
+ bTest7 = bTest8 = bNotLoadLayout = sal_False;
+#endif
+ }
+ else
+ return SfxConfigItem::WARNING_VERSION;
+
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+
+ sal_Bool bVal;
+ bVal = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_AUTO) ).getValue() : sal_False;
+ SetOnlineSpell( bVal );
+ bVal = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_HIDE) ).getValue() : sal_False;
+ SetHideSpell( bVal );
+ return SfxConfigItem::ERR_OK;
+}
+
+
+void SwMasterUsrPref::UseDefault()
+{
+ nUIOptions = VIEWOPT_2_TOOLBOXBITMAP | VIEWOPT_2_TOOLBOXTOP |
+ VIEWOPT_2_TOOLBOX | VIEWOPT_2_RIBBONBAR |
+ VIEWOPT_2_TABWIN | VIEWOPT_2_STATUSLINE |
+ VIEWOPT_2_VSCROLLBAR | VIEWOPT_2_HSCROLLBAR |
+ VIEWOPT_2_SVLOOK| VIEWOPT_2_EXECHYPERLINKS;
+ nCore2Options = VIEWOPT_CORE2_BLACKFONT | VIEWOPT_CORE2_HIDDENPARA|
+ VIEWOPT_CORE2_CRSR_IN_PROT| VIEWOPT_CORE2_INDEX_BACKGROUND|
+ VIEWOPT_CORE2_SECTION_BOUNDS;
+
+ eZoom = 0;
+ nTblDest = TBL_DEST_CELL;
+
+ sSymbolFont = aEmptyStr;
+
+ aShdwCrsrCol.SetColor( COL_BLUE );
+ nShdwCrsrFillMode = FILL_TAB;
+
+ aIdxBackgrndCol.SetColor( RGB_COLORDATA( 0xF0, 0xF0, 0xF0 ) );
+
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+
+ sal_Bool bVal;
+ bVal = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_AUTO) ).getValue() : sal_False;
+ SetOnlineSpell( bVal );
+ bVal = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_HIDE) ).getValue() : sal_False;
+ SetHideSpell( bVal );
+ SfxConfigItem::UseDefault();
+}
+
+
+SwMasterUsrPref::SwMasterUsrPref(sal_uInt16 nType) :
+ SfxConfigItem( nType )
+{}
+
+
+String SwMasterUsrPref::GetName() const
+{
+ String sName(SW_RES( STR_CFG_USRPREF ));
+ if(GetType() != CFG_USERPREF_ITEM)
+ sName.SearchAndReplace(C2S("StarOffice Writer"), C2S("StarOffice Writer/Web"));
+ return sName;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.128 2000/09/18 16:05:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.127 2000/04/11 08:02:24 os
+ UNICODE
+
+ Revision 1.126 2000/03/23 08:17:22 os
+ UNO III
+
+ Revision 1.125 2000/03/03 15:16:59 os
+ StarView remainders removed
+
+ Revision 1.124 2000/02/24 17:26:00 hr
+ 43447#: gcc
+
+ Revision 1.123 2000/01/19 18:24:06 jp
+ Bug #72118#: change default of view sectionboundaries
+
+ Revision 1.122 1999/12/10 13:07:24 tl
+ #70383# SvxGetLinguPropertySet => ::GetLinguPropertySet
+
+ Revision 1.121 1999/11/24 18:26:26 tl
+ check for Service availability
+
+ Revision 1.120 1999/11/19 16:40:22 os
+ modules renamed
+
+ Revision 1.119 1999/10/25 19:47:09 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.118 1999/10/22 11:06:41 os
+ index background with a lighter background
+
+ Revision 1.117 1999/10/13 14:19:58 os
+ index background in light gray
+
+ Revision 1.116 1999/08/31 08:46:22 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.115 31 Aug 1999 10:46:22 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.114 09 Jun 1999 13:22:42 OS
+ index background
+
+ Rev 1.113 19 May 1999 13:32:56 OS
+ #61245# DBG_ERROR, wenn Layout trotz CtrlAltL geladen wird
+
+ Rev 1.112 27 Jan 1999 10:03:10 OS
+ #58677# Cursor in Readonly-Bereichen
+
+ Rev 1.111 08 Sep 1998 16:49:52 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.110 31 Aug 1998 11:19:14 OS
+ #55750# OnlineSpelling immer aus der OFA uebernehmen
+
+ Rev 1.109 12 Jun 1998 09:44:14 OS
+ Konfigurationsnamen berichtigt
+
+ Rev 1.108 29 Apr 1998 09:27:06 MA
+ BackgroundBrush -> RetoucheColor
+
+ Rev 1.107 24 Nov 1997 17:58:48 MA
+ include
+
+ Rev 1.106 11 Nov 1997 14:04:28 MA
+ precomp entfernt
+
+ Rev 1.105 03 Nov 1997 16:12:36 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.104 16 Sep 1997 13:23:10 OS
+ Color fuer VCL nicht konvertieren, fuer TextDocs Brush nie laden #43824#
+
+ Rev 1.103 08 Aug 1997 16:11:40 OS
+ IDLE-Flag auch in der aktuellen Version im Load immer einschalten #42510#
+
+ Rev 1.102 09 Jun 1997 14:28:44 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.101 06 Jun 1997 12:44:14 MA
+ chg: versteckte Absaetze ausblenden
+
+ Rev 1.100 31 Jan 1997 13:41:24 OS
+ alten Code fuer Metric geloescht
+
+ Rev 1.99 27 Jan 1997 16:30:04 OS
+ HtmlMode entfernt
+
+ Rev 1.98 13 Dec 1996 14:33:32 OS
+ UndoCount wird aus der SfxApp besorgt
+
+ Rev 1.97 10 Dec 1996 16:58:48 OS
+ TabDist ab sofort in der OFA
+
+ Rev 1.96 09 Dec 1996 17:02:02 OS
+ Grenzwerte fuer TblDest und Metric beim Load ueberpruefen
+
+ Rev 1.95 28 Nov 1996 15:20:24 OS
+ neu: Schwarz drucken
+
+ Rev 1.94 18 Nov 1996 10:26:22 OS
+ includes berichtigt
+
+ Rev 1.93 11 Nov 1996 09:22:12 MA
+ ResMgr
+
+ Rev 1.92 17 Oct 1996 16:43:44 OS
+ Altlasten der BrowseUsrPref entfernt
+
+ Rev 1.91 25 Sep 1996 11:11:48 OS
+ IsTransparent wird jetzt auch gespeichert
+
+ Rev 1.90 30 Aug 1996 08:44:06 OS
+ neu: sSymbolFont
+
+ Rev 1.89 26 Aug 1996 16:56:10 OS
+ neu: Brush fuer BrowseView
+
+ Rev 1.88 25 Jul 1996 15:35:36 OS
+ neu : HTML-Mode
+
+ Rev 1.87 22 Jul 1996 15:06:30 OS
+ neu: ..EXECHYPERLINKS
+
+ Rev 1.86 16 Jul 1996 20:19:50 MA
+ includes
+
+ Rev 1.85 16 Jul 1996 15:52:20 MA
+ new: PrintPageBackground
+
+ Rev 1.84 10 Jul 1996 12:01:26 OS
+ neu: nTblDest : Ziel fuer Tabellenhintergrund
+
+ Rev 1.83 28 Jun 1996 10:11:42 OS
+ UseDefault: Basisklasse rufen
+
+ Rev 1.82 07 May 1996 08:32:06 OS
+ im Laden der UsrPref Browse-Optionen absichern
+
+ Rev 1.81 27 Apr 1996 14:53:14 OS
+ Idle-Flag im Load setzen
+
+ Rev 1.80 26 Apr 1996 13:54:16 OS
+ Versionspruefung korrigiert
+
+ Rev 1.79 25 Apr 1996 16:21:58 OS
+ ViewOptions ohne sal_Bool, dafuer massenweise defines
+
+ Rev 1.78 24 Apr 1996 15:09:00 OS
+ Umstellung UsrPref/ViewOption
+
+ Rev 1.77 25 Mar 1996 19:45:50 MA
+ wechsel product/non-product
+
+ Rev 1.76 21 Mar 1996 12:51:50 OS
+ neu: bGrfKeepZoom fuer CropPage
+
+ Rev 1.75 03 Mar 1996 16:48:48 MA
+ new: Flag fuer BrowseView
+
+ Rev 1.74 27 Feb 1996 12:18:54 OS
+ Metric nicht mehr in den UsrPref
+
+ Rev 1.73 23 Feb 1996 13:25:28 OS
+ neu: nUndoCount = UNDO_ACTION_COUNT
+
+ Rev 1.72 20 Feb 1996 16:31:40 OS
+ neu: bKeepAspectRatio fuer Abgleich im Grafik/OLE-Dialog
+
+ Rev 1.71 20 Feb 1996 11:01:52 AMA
+ New: bOnlineSpell und bHideSpell
+
+ Rev 1.70 28 Nov 1995 22:36:04 JP
+ UiSystem-Klasse aufgehoben, in initui/swtypes aufgeteilt
+
+ Rev 1.69 24 Nov 1995 16:58:52 OM
+ PCH->PRECOMPILED
+
+ Rev 1.68 08 Nov 1995 12:48:16 OM
+ Change->Set
+
+ Rev 1.67 03 Nov 1995 18:54:54 OS
+ vergessenes Table-Flag nachgetragen
+
+ Rev 1.66 29 Sep 1995 16:58:40 OM
+ HelpPI entfernt
+
+ Rev 1.65 17 Sep 1995 20:00:58 OS
+ neu: nUndoCount
+
+ Rev 1.64 15 Sep 1995 12:40:20 OS
+ GetName() implementiert und ColorSetItem entfernt
+
+ Rev 1.63 15 Aug 1995 17:04:52 OM
+ Preview-Zoomfaktor gesichert
+
+ Rev 1.62 14 Jul 1995 09:57:22 MA
+ fix: TabDist ab Version B3 nicht groesser B3
+
+ Rev 1.61 13 Jul 1995 17:12:22 OS
+ DefaultAttribut fuer nTabDist holen
+
+ Rev 1.60 13 Jul 1995 09:05:02 MA
+ fix: Tab zum x-ten, default fuer Load verbessert
+
+ Rev 1.59 12 Jul 1995 11:31:00 MA
+ fix: Load(), TabDist fuer alte Versionen defaulten
+
+ Rev 1.58 12 Jul 1995 10:49:42 MA
+ chg: MinTabDist ist MM50
+
+ Rev 1.57 11 Jul 1995 15:48:06 OS
+ neuer Member=>neue Version
+
+ Rev 1.56 10 Jul 1995 19:27:32 OS
+ +nTabDist in Load, ::com::sun::star::ucb::Store, UseDefault
+
+ Rev 1.55 25 Jun 1995 13:20:22 MA
+ opt: ViewOptions aufgeraeumt
+
+ Rev 1.54 17 May 1995 17:26:06 MA
+ UsrPref: gefixt, aufgeraumt, optimiert, includes gerichtet.
+
+ Rev 1.53 03 Apr 1995 19:56:36 OS
+ Einstellungen mehr als einmal laden
+
+ Rev 1.52 20 Mar 1995 19:07:40 OS
+ unbenutzte Funktionen entfernt
+
+ Rev 1.51 08 Mar 1995 03:56:52 OS
+ Raster-Einstellungen auch sichern
+
+ Rev 1.50 19 Feb 1995 17:44:50 MA
+ SEXPORT'iert.
+
+ Rev 1.49 25 Oct 1994 16:13:02 ER
+ add: PCH
+
+ Rev 1.48 20 Oct 1994 12:54:42 JN
+ Versionskontrolle bei Load/Store
+
+ Rev 1.47 05 Oct 1994 10:07:56 SWG
+ Anpassung Sfx
+
+ Rev 1.46 15 Sep 1994 14:38:40 MS
+ Reanimation die 1.
+
+ Rev 1.45 15 Sep 1994 14:10:56 MS
+
+ Rev 1.44 04 Aug 1994 10:36:00 SWG
+ swg32: SED Size to SSize, LSize to Size etc.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/config/viewopt.cxx b/sw/source/ui/config/viewopt.cxx
new file mode 100644
index 000000000000..3d8123a8423e
--- /dev/null
+++ b/sw/source/ui/config/viewopt.cxx
@@ -0,0 +1,754 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewopt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SVX_SVXENUM_HXX //autogen
+#include <svx/svxenum.hxx>
+#endif
+#ifndef _MySVXACORR_HXX //autogen
+#include <svx/svxacorr.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "viewopt.hxx"
+#include "wdocsh.hxx"
+#include "swrect.hxx"
+#include "crstate.hxx"
+
+
+#ifndef PRODUCT
+BOOL SwViewOption::bTest9 = FALSE; //DrawingLayerNotLoading
+#endif
+USHORT SwViewOption::nPixelTwips = 0; //ein Pixel auf dem Bildschirm
+
+
+#define LINEBREAK_SIZE 12, 8
+#define TAB_SIZE 12, 6
+
+#define MIN_BLANKWIDTH 40
+#define MIN_BLANKHEIGHT 40
+#define MIN_TABWIDTH 120
+#define MIN_TABHEIGHT 200
+
+static const char __FAR_DATA aPostItStr[] = " ";
+
+/*************************************************************************
+ * SwViewOption::IsEqualFlags()
+ *************************************************************************/
+
+BOOL SwViewOption::IsEqualFlags( const SwViewOption &rOpt ) const
+{
+ return nCoreOptions == rOpt.nCoreOptions
+ && nCore2Options == rOpt.nCore2Options
+ && aSnapSize == rOpt.aSnapSize
+ && nDivisionX == rOpt.GetDivisionX()
+ && nDivisionY == rOpt.GetDivisionY()
+ && nPagePrevRow == rOpt.GetPagePrevRow()
+ && nPagePrevCol == rOpt.GetPagePrevCol()
+ && aRetoucheColor == rOpt.GetRetoucheColor()
+#ifndef PRODUCT
+ // korrespondieren zu den Angaben in ui/config/cfgvw.src
+ && bTest1 == rOpt.IsTest1()
+ && bTest2 == rOpt.IsTest2()
+ && bTest3 == rOpt.IsTest3()
+ && bTest4 == rOpt.IsTest4()
+ && bTest5 == rOpt.IsTest5()
+ && bTest6 == rOpt.IsTest6()
+ && bTest7 == rOpt.IsTest7()
+ && bTest8 == rOpt.IsTest8()
+ && bTest10 == rOpt.IsTest10()
+#endif
+ ;
+}
+
+/*************************************************************************
+ * class SwPxlToTwips
+ *************************************************************************/
+
+class SwPxlToTwips
+{
+ OutputDevice *pOut;
+ Color aLineColor;
+ BOOL bClip;
+ Region aClip;
+ Point aStart;
+ SwRect aRect;
+public:
+ SwPxlToTwips( OutputDevice *pOut, const SwRect &rRect, const Size &rSize );
+ ~SwPxlToTwips();
+ inline const Point &GetStartPoint() const { return aStart; }
+ inline BOOL IsTooSmall() const {return 0 == pOut;}
+ inline const SwRect &GetRect() const { return aRect; }
+ void DrawLine( const Point &rStart, const Point &rEnd );
+};
+
+/*************************************************************************
+ * SwPxlToTwips::CTOR
+ *************************************************************************/
+
+SwPxlToTwips::SwPxlToTwips( OutputDevice *pOutDev,
+ const SwRect &rRect, const Size &rSize )
+ : pOut( pOutDev )
+{
+ aRect = pOut->LogicToPixel( rRect.SVRect() );
+
+ // Wenn der Tab nicht mehr darstellbar ist, geben wir auf.
+ if( 3 > aRect.Width() )
+ {
+ pOut = NULL;
+ return;
+ }
+
+ if( rSize.Height() - 1 > aRect.Height() )
+ {
+ pOut = NULL;
+ return;
+ }
+
+ aStart = aRect.Pos();
+ aStart.X() += (aRect.Width() / 2) - (rSize.Width() / 2);
+ aStart.Y() += (aRect.Height() / 2) - (rSize.Height() / 2);
+ if ( aStart.X() < aRect.Left() )
+ aStart.X() = aRect.Left();
+
+ if ( pOut->GetConnectMetaFile() )
+ pOut->Push();
+
+ bClip = pOut->IsClipRegion();
+ if ( bClip )
+ {
+ aClip = pOut->GetClipRegion();
+ pOut->SetClipRegion();
+ }
+
+ aLineColor = pOut->GetLineColor( );
+ pOut->SetLineColor( Color(COL_BLACK) );
+}
+
+/*************************************************************************
+ * SwPxlToTwips::DTOR
+ *************************************************************************/
+
+SwPxlToTwips::~SwPxlToTwips()
+{
+ if( pOut )
+ {
+ if ( pOut->GetConnectMetaFile() )
+ pOut->Pop();
+ else
+ {
+ pOut->SetLineColor( aLineColor );
+ if( bClip )
+ pOut->SetClipRegion( aClip );
+ }
+ }
+}
+
+/*************************************************************************
+ * SwPxlToTwips::DrawLine
+ *************************************************************************/
+
+void SwPxlToTwips::DrawLine( const Point &rStart, const Point &rEnd )
+{
+ if( pOut )
+ {
+ const Point aStart( pOut->PixelToLogic( rStart ) );
+ const Point aEnd( pOut->PixelToLogic( rEnd ) );
+ pOut->DrawLine( aStart, aEnd );
+ }
+}
+
+/*************************************************************************
+ * SwViewOption::DrawRect()
+ *************************************************************************/
+
+void SwViewOption::DrawRect( OutputDevice *pOut,
+ const SwRect &rRect, long nCol ) const
+{
+ if ( pOut->GetOutDevType() != OUTDEV_PRINTER )
+ {
+ const Color aCol( nCol );
+ const Color aOldColor( pOut->GetFillColor() );
+ pOut->SetFillColor( aCol );
+ pOut->DrawRect( rRect.SVRect() );
+ pOut->SetFillColor( aOldColor );
+ }
+ else
+ DrawRectPrinter( pOut, rRect );
+}
+
+/*************************************************************************
+ * SwViewOption::DrawRectPrinter()
+ *************************************************************************/
+
+void SwViewOption::DrawRectPrinter( OutputDevice *pOut,
+ const SwRect &rRect ) const
+{
+ Color aOldColor(pOut->GetLineColor());
+ Color aOldFillColor( pOut->GetFillColor() );
+ pOut->SetLineColor( Color(COL_BLACK) );
+ pOut->SetFillColor( Color(COL_TRANSPARENT ));
+ pOut->DrawRect( rRect.SVRect() );
+ pOut->SetFillColor( aOldFillColor );
+ pOut->SetLineColor( aOldColor );
+}
+
+/*************************************************************************
+ * SwViewOption::PaintTab()
+ *************************************************************************/
+void SwViewOption::PaintTab( OutputDevice *pOut, const SwRect &rRect ) const
+{
+ SwPxlToTwips aSave( pOut, rRect, Size( TAB_SIZE ) );
+
+ if( aSave.IsTooSmall() )
+ return;
+
+ Point aStart( aSave.GetStartPoint() );
+ const SwRect &rPaintRect = aSave.GetRect();
+
+ // horizontale
+ aStart.Y() += 2;
+ aStart.X() += 1;
+ Point aEnd( aStart );
+ aEnd.X() += 10;
+ if( aEnd.X() >= rPaintRect.Right() )
+ aEnd.X() = rPaintRect.Right() - 1;
+ long nDiff = aEnd.X() - aStart.X();
+ aSave.DrawLine( aStart, aEnd );
+
+ // Pfeil
+ aEnd.X() -= 1;
+ aStart.X() = aEnd.X();
+ aStart.Y() -= 1;
+ aEnd.Y() += 1;
+ aSave.DrawLine( aStart, aEnd );
+
+ if( nDiff > 1 && rPaintRect.Height() > 8 )
+ {
+ aStart.X() -= 1;
+ aStart.Y() -= 1;
+ aEnd.X() = aStart.X();
+ aEnd.Y() += 1;
+ aSave.DrawLine( aStart, aEnd );
+ if( nDiff > 2 && rPaintRect.Height() > 12 )
+ {
+ aStart.X() -= 1;
+ aEnd.X() -= 1;
+ aSave.DrawLine( aStart, aEnd );
+ }
+ }
+}
+
+/*************************************************************************
+ * SwViewOption::GetLineBreakWidth()
+ *************************************************************************/
+
+USHORT SwViewOption::GetLineBreakWidth( const OutputDevice *pOut ) const
+{
+ ASSERT( pOut, "no Outdev" );
+ const Size aSz( LINEBREAK_SIZE );
+ return USHORT(pOut->PixelToLogic( aSz ).Width());
+}
+
+/*************************************************************************
+ * SwViewOption::PaintLineBreak()
+ *************************************************************************/
+
+void SwViewOption::PaintLineBreak( OutputDevice *pOut, const SwRect &rRect ) const
+{
+ const Size aSz( LINEBREAK_SIZE );
+ SwPxlToTwips aSave( pOut, rRect, aSz );
+ if( aSave.IsTooSmall() )
+ return;
+ Point aStart( aSave.GetStartPoint() );
+ const SwRect &rPaintRect = aSave.GetRect();
+
+ // horizontale
+ aStart.Y() += 4;
+ aStart.X() += 1;
+ Point aEnd( aStart );
+ aEnd.X() += 8;
+ if( aEnd.X() >= rPaintRect.Right() - 1 )
+ aEnd.X() = rPaintRect.Right() - 2;
+ aSave.DrawLine( aStart, aEnd );
+
+ // Pfeil
+ aStart.Y() -= 1;
+ aStart.X() += 1;
+ aEnd.Y() = aStart.Y() + 2;
+ aEnd.X() = aStart.X();
+ aSave.DrawLine( aStart, aEnd );
+
+ // Pfeil
+ aStart.Y() -= 1;
+ aStart.X() += 1;
+ aEnd.Y() += 1;
+ aEnd.X() += 1;
+ aSave.DrawLine( aStart, aEnd );
+
+ // Pfeil
+ aStart.X() += 1;
+ aEnd.X() += 1;
+ aSave.DrawLine( aStart, aEnd );
+
+ // vertikale
+ aStart.Y() -= 2;
+ aStart.X() += 6;
+ if( aStart.X() >= rPaintRect.Right() )
+ aStart.X() = rPaintRect.Right() - 1;
+ aEnd.X() = aStart.X();
+ aEnd.Y() = aStart.Y() + 3;
+ aSave.DrawLine( aStart, aEnd );
+}
+
+/*************************************************************************
+ * SwViewOption::GetPostItsWidth()
+ *************************************************************************/
+
+USHORT SwViewOption::GetPostItsWidth( const OutputDevice *pOut ) const
+{
+ ASSERT( pOut, "no Outdev" );
+ return USHORT(pOut->GetTextWidth( String::CreateFromAscii(aPostItStr )));
+}
+
+/*************************************************************************
+ * SwViewOption::PaintPostIts()
+ *************************************************************************/
+
+void SwViewOption::PaintPostIts( OutputDevice *pOut, const SwRect &rRect,
+ long nCol ) const
+{
+ if( pOut )
+ {
+ Color aOldLineColor( pOut->GetLineColor() );
+ pOut->SetLineColor( Color(COL_GRAY ) );
+ // Wir ziehen ueberall zwei Pixel ab, damit es schick aussieht
+ USHORT nPix = GetPixelTwips() * 2;
+ if( rRect.Width() <= 2 * nPix || rRect.Height() <= 2 * nPix )
+ nPix = 0;
+ const Point aTopLeft( rRect.Left() + nPix, rRect.Top() + nPix );
+ const Point aBotRight( rRect.Right() - nPix, rRect.Bottom() - nPix );
+ const SwRect aRect( aTopLeft, aBotRight );
+ DrawRect( pOut, aRect, nCol );
+ pOut->SetLineColor( aOldLineColor );
+ }
+}
+
+
+/*************************************************************************
+|*
+|* ViewOption::ViewOption()
+|*
+|* Letzte Aenderung MA 04. Aug. 93
+|*
+|*************************************************************************/
+
+SwViewOption::SwViewOption() :
+ nZoom( 100 ),
+ nPagePrevRow( 1 ),
+ nPagePrevCol( 2 ),
+ eZoom( 0 ),
+ nTblDest(TBL_DEST_CELL),
+ bReadonly(FALSE),
+ aRetoucheColor( COL_TRANSPARENT ),
+ aShdwCrsrCol( COL_BLUE ),
+ aIdxBackgrndCol( COL_LIGHTGRAY ),
+ nShdwCrsrFillMode( FILL_TAB ),
+ bStarOneSetting(FALSE)
+{
+ // Initialisierung ist jetzt etwas einfacher
+ // alle Bits auf 0
+ nCoreOptions = VIEWOPT_1_IDLE | VIEWOPT_1_HARDBLANK | VIEWOPT_1_SOFTHYPH |
+ VIEWOPT_1_TOX | VIEWOPT_1_REF | VIEWOPT_1_FIELD |
+ VIEWOPT_1_FOOTNOTE | VIEWOPT_1_SUBSLINES | VIEWOPT_1_GRAPHIC |
+ VIEWOPT_1_TABLE | VIEWOPT_1_DRAW | VIEWOPT_1_CONTROL |
+ VIEWOPT_1_SUBSTABLE| VIEWOPT_1_PAGEBACK |
+ VIEWOPT_1_SOLIDMARKHDL | VIEWOPT_1_POSTITS;
+ nCore2Options = VIEWOPT_CORE2_BLACKFONT | VIEWOPT_CORE2_HIDDENPARA|
+ VIEWOPT_CORE2_INDEX_BACKGROUND | VIEWOPT_CORE2_SECTION_BOUNDS;
+ nUIOptions = VIEWOPT_2_MODIFIED | VIEWOPT_2_EXECHYPERLINKS;
+
+ MeasurementSystem eSys = Application::GetAppInternational().GetMeasurementSystem();
+ if(MEASURE_METRIC != eSys)
+ aSnapSize.Width() = aSnapSize.Height() = 720; // 1/2"
+ else
+ aSnapSize.Width() = aSnapSize.Height() = 567; // 1 cm
+ nDivisionX = nDivisionY = 1;
+
+
+#ifndef PRODUCT
+ // korrespondieren zu den Angaben in ui/config/cfgvw.src
+ bTest1 = bTest2 = bTest3 = bTest4 =
+ bTest5 = bTest6 = bTest7 = bTest8 = bTest10 = FALSE;
+#endif
+}
+
+
+SwViewOption::SwViewOption(const SwViewOption& rVOpt)
+{
+ bReadonly = FALSE;
+ nZoom = rVOpt.nZoom ;
+ aSnapSize = rVOpt.aSnapSize ;
+ nDivisionX = rVOpt.nDivisionX ;
+ nDivisionY = rVOpt.nDivisionY ;
+ nPagePrevRow = rVOpt.nPagePrevRow;
+ nPagePrevCol = rVOpt.nPagePrevCol;
+ eZoom = rVOpt.eZoom ;
+ nTblDest = rVOpt.nTblDest ;
+ nUIOptions = rVOpt.nUIOptions ;
+ nCoreOptions = rVOpt.nCoreOptions ;
+ nCore2Options = rVOpt.nCore2Options ;
+ aRetoucheColor = rVOpt.GetRetoucheColor();
+ sSymbolFont = rVOpt.sSymbolFont;
+ aShdwCrsrCol = rVOpt.aShdwCrsrCol;
+ aIdxBackgrndCol = rVOpt.aIdxBackgrndCol;
+ nShdwCrsrFillMode = rVOpt.nShdwCrsrFillMode;
+ bStarOneSetting = rVOpt.bStarOneSetting;
+
+#ifndef PRODUCT
+ bTest1 = rVOpt.bTest1 ;
+ bTest2 = rVOpt.bTest2 ;
+ bTest3 = rVOpt.bTest3 ;
+ bTest4 = rVOpt.bTest4 ;
+ bTest5 = rVOpt.bTest5 ;
+ bTest6 = rVOpt.bTest6 ;
+ bTest7 = rVOpt.bTest7 ;
+ bTest8 = rVOpt.bTest8 ;
+ bTest10 = rVOpt.bTest10 ;
+#endif
+}
+
+
+SwViewOption& SwViewOption::operator=( const SwViewOption &rVOpt )
+{
+ nZoom = rVOpt.nZoom ;
+ aSnapSize = rVOpt.aSnapSize ;
+ nDivisionX = rVOpt.nDivisionX ;
+ nDivisionY = rVOpt.nDivisionY ;
+ nPagePrevRow = rVOpt.nPagePrevRow;
+ nPagePrevCol = rVOpt.nPagePrevCol;
+ eZoom = rVOpt.eZoom ;
+ nTblDest = rVOpt.nTblDest ;
+ nUIOptions = rVOpt.nUIOptions ;
+ nCoreOptions = rVOpt.nCoreOptions;
+ nCore2Options = rVOpt.nCore2Options;
+ aRetoucheColor = rVOpt.GetRetoucheColor();
+ sSymbolFont = rVOpt.sSymbolFont;
+ aShdwCrsrCol = rVOpt.aShdwCrsrCol;
+ aIdxBackgrndCol = rVOpt.aIdxBackgrndCol;
+ nShdwCrsrFillMode = rVOpt.nShdwCrsrFillMode;
+ bStarOneSetting = rVOpt.bStarOneSetting;
+
+#ifndef PRODUCT
+ bTest1 = rVOpt.bTest1 ;
+ bTest2 = rVOpt.bTest2 ;
+ bTest3 = rVOpt.bTest3 ;
+ bTest4 = rVOpt.bTest4 ;
+ bTest5 = rVOpt.bTest5 ;
+ bTest6 = rVOpt.bTest6 ;
+ bTest7 = rVOpt.bTest7 ;
+ bTest8 = rVOpt.bTest8 ;
+ bTest10 = rVOpt.bTest10 ;
+#endif
+ return *this;
+}
+
+
+SwViewOption::~SwViewOption()
+{
+}
+
+/*************************************************************************
+|*
+|* ViewOption::Init()
+|*
+|* Letzte Aenderung MA 04. Aug. 93
+|*
+|*************************************************************************/
+
+void SwViewOption::Init( Window *pWin )
+{
+ if( !nPixelTwips && pWin )
+ {
+ nPixelTwips = (USHORT)pWin->PixelToLogic( Size(1,1) ).Height();
+ }
+}
+
+BOOL SwViewOption::IsAutoCompleteWords() const
+{
+ const SvxSwAutoFmtFlags& rFlags = OFF_APP()->GetAutoCorrect()->GetSwFlags();
+ return /*rFlags.bAutoCompleteWords &&*/ rFlags.bAutoCmpltCollectWords;
+}
+
+/*************************************************************************/
+/*
+/*************************************************************************/
+
+AuthorCharAttr::AuthorCharAttr() :
+ nItemId (SID_ATTR_CHAR_UNDERLINE),
+ nAttr (UNDERLINE_SINGLE),
+ nColor (COL_TRANSPARENT)
+{
+}
+
+/*-----------------07.01.97 13.50-------------------
+
+--------------------------------------------------*/
+
+USHORT GetHtmlMode(const SwDocShell* pShell)
+{
+ USHORT nRet = 0;
+ if(!pShell || PTR_CAST(SwWebDocShell, pShell))
+ {
+ nRet = HTMLMODE_ON;
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ switch ( pHtmlOpt->GetExportMode() )
+ {
+ case HTML_CFG_MSIE_40:
+ nRet |= HTMLMODE_PARA_BORDER|HTMLMODE_SMALL_CAPS|
+ HTMLMODE_SOME_STYLES|
+ HTMLMODE_FULL_STYLES|HTMLMODE_GRAPH_POS|
+ HTMLMODE_FULL_ABS_POS|HTMLMODE_SOME_ABS_POS;
+ break;
+ case HTML_CFG_NS30:
+ nRet |= HTMLMODE_BLINK|HTMLMODE_FRM_COLUMNS|HTMLMODE_FIRSTLINE;
+ break;
+ case HTML_CFG_NS40:
+ nRet |= HTMLMODE_PARA_BORDER|HTMLMODE_SOME_STYLES|
+ HTMLMODE_FRM_COLUMNS|HTMLMODE_BLINK|HTMLMODE_GRAPH_POS|
+ HTMLMODE_SOME_ABS_POS;
+ break;
+ case HTML_CFG_WRITER:
+ nRet |= HTMLMODE_PARA_BORDER|HTMLMODE_SMALL_CAPS|
+ HTMLMODE_SOME_STYLES|
+ HTMLMODE_FRM_COLUMNS|HTMLMODE_FULL_STYLES|
+ HTMLMODE_BLINK|HTMLMODE_DROPCAPS|HTMLMODE_GRAPH_POS|
+ HTMLMODE_FULL_ABS_POS|HTMLMODE_SOME_ABS_POS;
+ break;
+ case HTML_CFG_HTML32:
+ break;
+ }
+ }
+ return nRet;
+}
+
+
+/************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.57 2000/09/18 16:05:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.56 2000/04/11 08:02:24 os
+ UNICODE
+
+ Revision 1.55 2000/03/03 15:16:59 os
+ StarView remainders removed
+
+ Revision 1.54 2000/01/19 18:24:09 jp
+ Bug #72118#: change default of view sectionboundaries
+
+ Revision 1.53 2000/01/13 21:28:44 jp
+ Task #71894#: new Options for SW-AutoComplete
+
+ Revision 1.52 1999/09/20 10:35:00 os
+ Color changes
+
+ Revision 1.51 1999/07/28 11:03:20 OS
+ index background in lighter gray
+
+
+ Rev 1.50 28 Jul 1999 13:03:20 OS
+ index background in lighter gray
+
+ Rev 1.49 13 Jul 1999 08:47:52 OS
+ #67584# Scrollbar settings via StarOne
+
+ Rev 1.48 09 Jun 1999 13:22:34 OS
+ index background
+
+ Rev 1.47 17 Mar 1999 11:24:10 JP
+ Task #63576#: IsAutoCompleteWords - das Flag von der OffApp erfragen
+
+ Rev 1.46 15 Mar 1999 09:47:52 MA
+ #63047# neue Defaults
+
+ Rev 1.45 09 Mar 1999 19:34:34 JP
+ Task #61405#: AutoCompletion von Woertern
+
+ Rev 1.44 19 Jan 1999 08:47:36 MIB
+ #60957#: Kapitaelchen auch fuer IE4
+
+ Rev 1.43 29 Apr 1998 09:27:06 MA
+ BackgroundBrush -> RetoucheColor
+
+ Rev 1.42 20 Apr 1998 09:10:42 OS
+ IE3 entfaellt
+
+ Rev 1.41 03 Apr 1998 14:42:22 OS
+ HTMLMODE_SOME/FULL_ABS_POS
+
+ Rev 1.40 05 Mar 1998 14:34:12 OM
+ Redline-Attribute in Module-Cfg speichern
+
+ Rev 1.39 23 Feb 1998 12:40:46 OM
+ Redlining-Optionen
+
+ Rev 1.38 04 Feb 1998 17:53:06 MA
+ chg: Notiz wieder per default an
+
+ Rev 1.37 09 Jan 1998 17:15:14 AMA
+ Fix #46523#: Colors sollten als long durchgereicht werden...
+
+ Rev 1.36 28 Nov 1997 15:24:22 MA
+ includes
+
+ Rev 1.35 24 Nov 1997 17:58:48 MA
+ include
+
+ Rev 1.34 03 Nov 1997 16:12:36 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.33 01 Sep 1997 13:16:58 OS
+ DLL-Umstellung
+
+ Rev 1.32 08 Aug 1997 17:37:24 OM
+ Headerfile-Umstellung
+
+ Rev 1.31 05 Aug 1997 14:52:06 OS
+ Option fuer Grafikhintergrund #41663#
+
+ Rev 1.30 02 Jul 1997 12:46:00 MA
+ inlines
+
+ Rev 1.29 17 Jun 1997 17:24:06 MIB
+ HTML-Modus-Flgas fuer Netacpe 4.0
+
+ Rev 1.28 06 Jun 1997 12:44:24 MA
+ chg: versteckte Absaetze ausblenden
+
+ Rev 1.27 05 May 1997 10:56:32 AMA
+ Fix #39418#: Tabulatorsymbolgroesse jetzt zoomabhaengig.
+
+ Rev 1.26 25 Feb 1997 09:11:14 MA
+ chg: Option fuer SolidHdl
+
+ Rev 1.25 13 Feb 1997 18:57:16 AMA
+ New: JavaScript-Felder werden gruen dargestellt.
+
+ Rev 1.24 07 Feb 1997 18:25:30 OS
+ HtmlMode auch fuer pDocSh == 0; Flags berichtigt
+
+ Rev 1.23 05 Feb 1997 13:44:18 OS
+ HTML-Modi erweitert
+
+ Rev 1.22 27 Jan 1997 16:33:52 OS
+ GetHtmlMode wird mit der DocShell ermittelt
+
+ Rev 1.21 08 Jan 1997 10:47:10 OS
+ neu: ::GetHtmlMode()
+
+ Rev 1.20 13 Dec 1996 14:33:32 OS
+ UndoCount wird aus der SfxApp besorgt
+
+ Rev 1.19 10 Dec 1996 16:58:46 OS
+ TabDist ab sofort in der OFA
+
+ Rev 1.18 28 Nov 1996 15:20:24 OS
+ neu: Schwarz drucken
+
+ Rev 1.17 25 Sep 1996 14:56:18 OS
+ Linealabfragen nicht mehr inline
+
+ Rev 1.16 19 Sep 1996 18:40:54 OS
+ SetUIOptions enthaelt auch nTblDest
+
+ Rev 1.15 06 Sep 1996 14:32:20 OS
+ UsrPrefs wieder vereinheitlicht
+
+ Rev 1.14 30 Aug 1996 08:44:04 OS
+ neu: sSymbolFont
+
+ Rev 1.13 27 Aug 1996 10:11:44 OS
+ IsEqualFlags: Brush vergleichen
+
+ Rev 1.12 27 Aug 1996 09:44:46 OS
+ operator=
+
+*************************************************************************/
+
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
new file mode 100644
index 000000000000..e0c0ad1f3b02
--- /dev/null
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -0,0 +1,2470 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbinsdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XROW_HPP_
+#include <com/sun/star/sdbc/XRow.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
+#include <com/sun/star/sdb/XQueriesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XCOLUMN_HPP_
+#include <com/sun/star/sdb/XColumn.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
+#include <com/sun/star/sdbc/DataType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_RESULTSETTYPE_HPP_
+#include <com/sun/star/sdbc/ResultSetType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATTER_HPP_
+#include <com/sun/star/util/XNumberFormatter.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATTYPES_HPP_
+#include <com/sun/star/util/XNumberFormatTypes.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATSSUPPLIER_HPP_
+#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _UTL_UNO3_DB_TOOLS_HXX_
+#include <unotools/dbtools.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_UNOMID_HXX
+#include <svx/unomid.hxx>
+#endif
+#ifndef _NUMUNO_HXX
+#include <svtools/numuno.hxx>
+#endif
+
+#else
+
+#endif //REPLACE_OFADBMGR
+
+#include <sdb/tools.hxx>
+#ifndef _SDB_SDBCURS_HXX //autogen
+#include <sdb/sdbcurs.hxx>
+#endif
+#include <float.h>
+
+
+#ifndef _TOOLS_INTN_HXX //autogen
+#include <tools/intn.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SBAITEMS_HRC //autogen
+#include <offmgr/sbaitems.hrc>
+#endif
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _ZFORMAT_HXX //autogen
+#include <svtools/zformat.hxx>
+#endif
+#ifndef _SFXCFGITEM_HXX //autogen
+#include <sfx2/cfgitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_RULRITEM_HXX //autogen
+#include <svx/rulritem.hxx>
+#endif
+
+#ifndef _TABLEDLG_HXX //autogen
+#include <tabledlg.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _TABCOL_HXX //autogen
+#include <tabcol.hxx>
+#endif
+#ifndef _UIITEMS_HXX //autogen
+#include <uiitems.hxx>
+#endif
+#ifndef _VIEWOPT_HXX //autogen
+#include <viewopt.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _DBINSDLG_HXX
+#include <dbinsdlg.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _TAUTOFMT_HXX
+#include <tautofmt.hxx>
+#endif
+#ifndef _TBLAFMT_HXX
+#include <tblafmt.hxx>
+#endif
+#ifndef _CELLATR_HXX
+#include <cellatr.hxx>
+#endif
+#ifndef _SWTABLE_HXX
+#include <swtable.hxx>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _SECTION_HXX //autogen
+#include <section.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _DBINSDLG_HRC
+#include <dbinsdlg.hrc>
+#endif
+#ifndef _DBUI_HRC
+#include <dbui.hrc>
+#endif
+#ifndef _CFGSTR_HRC
+#include <cfgstr.hrc>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _CFGID_H
+#include <cfgid.h>
+#endif
+
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdb;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+using namespace com::sun::star::util;
+#define C2U(cChar) OUString::createFromAscii(cChar)
+#endif
+
+const char cDBFldStart = '<';
+const char cDBFldEnd = '>';
+#define C2S(cChar) String::CreateFromAscii(cChar)
+
+// Hilfsstruktur fuers einfuegen von Datenbankspalten als Felder oder Text
+struct _DB_Column
+{
+ enum { DB_FILLTEXT, DB_COL_FIELD, DB_COL_TEXT, DB_SPLITPARA } eColType;
+
+ union {
+ String* pText;
+ SwField* pField;
+ ULONG nFormat;
+ } DB_ColumnData;
+ const SwInsDBColumn* pColInfo;
+
+ _DB_Column()
+ {
+ pColInfo = 0;
+ DB_ColumnData.pText = 0;
+ eColType = DB_SPLITPARA;
+ }
+
+ _DB_Column( const String& rTxt )
+ {
+ pColInfo = 0;
+ DB_ColumnData.pText = new String( rTxt );
+ eColType = DB_FILLTEXT;
+ }
+
+ _DB_Column( const SwInsDBColumn& rInfo, ULONG nFormat )
+ {
+ pColInfo = &rInfo;
+ DB_ColumnData.nFormat = nFormat;
+ eColType = DB_COL_TEXT;
+ }
+
+ _DB_Column( const SwInsDBColumn& rInfo, SwDBField& rFld )
+ {
+ pColInfo = &rInfo;
+ DB_ColumnData.pField = &rFld;
+ eColType = DB_COL_FIELD;
+ }
+
+ ~_DB_Column()
+ {
+ if( DB_COL_FIELD == eColType )
+ delete DB_ColumnData.pField;
+ else if( DB_FILLTEXT == eColType )
+ delete DB_ColumnData.pText;
+ }
+};
+
+typedef _DB_Column* _DB_ColumnPtr;
+SV_DECL_PTRARR_DEL( _DB_Columns, _DB_ColumnPtr, 32, 32 )
+SV_IMPL_PTRARR( _DB_Columns, _DB_ColumnPtr )
+
+SV_IMPL_OP_PTRARR_SORT( SwInsDBColumns, SwInsDBColumnPtr )
+
+/* */
+
+#define DBCOLUMN_CONFIG_VERSION1 1
+#define DBCOLUMN_CONFIG_VERSION DBCOLUMN_CONFIG_VERSION1
+#define DBCOLUMN_MAXDATA 5
+
+struct _DB_ColumnConfigData
+{
+ SwInsDBColumns aDBColumns;
+ String sDBName, sEdit, sTblList, sTmplNm, sTAutoFmtNm;
+ BOOL bIsTable : 1,
+ bIsField : 1,
+ bIsHeadlineOn : 1,
+ bIsEmptyHeadln : 1;
+
+ _DB_ColumnConfigData()
+ {
+ bIsTable = bIsHeadlineOn = TRUE;
+ bIsField = bIsEmptyHeadln = FALSE;
+ }
+
+ _DB_ColumnConfigData( SvStream& rStream, UINT16 nVers );
+
+ ~_DB_ColumnConfigData();
+
+ void Save( SvStream& rStream ) const;
+
+ BOOL IsEqualDB( const _DB_ColumnConfigData& ) const;
+private:
+ _DB_ColumnConfigData( const _DB_ColumnConfigData& );
+ _DB_ColumnConfigData& operator =( const _DB_ColumnConfigData& );
+};
+
+class _DB_ColumnConfig : public SfxConfigItem
+{
+ _DB_ColumnConfigData* aData[ DBCOLUMN_MAXDATA ];
+
+protected:
+ virtual String GetName() const;
+ virtual int Load(SvStream& rStream);
+ virtual BOOL Store(SvStream& rStream);
+
+public:
+ _DB_ColumnConfig();
+ virtual ~_DB_ColumnConfig();
+
+ virtual void UseDefault();
+
+ const _DB_ColumnConfigData* HasData( const _DB_ColumnConfigData& rData ) const;
+ void SetData( _DB_ColumnConfigData* pData );
+};
+
+/* */
+
+int SwInsDBColumn::operator<( const SwInsDBColumn& rCmp ) const
+{
+ return COMPARE_LESS == Application::GetAppInternational().Compare(
+ sColumn, rCmp.sColumn );
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView,
+ Reference<XDataSource> xDataSource,
+ Reference<sdbcx::XColumnsSupplier> xColSupp,
+ const SwInsDBData& rData )
+#else
+SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView )
+#endif //REPLACE_OFADBMGR
+ : SfxModalDialog( rView.GetWindow(), SW_RES( DLG_AP_INSERT_DB_SEL )),
+ aFtInsertData( this, SW_RES( FT_INSERT_DATA )),
+ aRbAsTable( this, SW_RES( RB_AS_TABLE )),
+ aRbAsField( this, SW_RES( RB_AS_FIELD )),
+ aRbAsText( this, SW_RES( RB_AS_TEXT )),
+ aBtOk( this, SW_RES( BT_OK )),
+ aBtCancel( this, SW_RES( BT_CANCEL )),
+ aBtHelp( this, SW_RES( BT_HELP )),
+ aGbSelection( this, SW_RES( GB_SELECTION )),
+ aFtDbColumn( this, SW_RES( FT_DB_COLUMN )),
+ aGbDbFormat( this, SW_RES( GB_DB_FORMAT )),
+ aRbDbFmtFromDb( this, SW_RES( RB_DBFMT_FROM_DB )),
+ aRbDbFmtFromUsr( this, SW_RES( RB_DBFMT_FROM_USR )),
+ aLbDbFmtFromUsr( this, &rView, SW_RES( LB_DBFMT_FROM_USR )),
+
+ /* ----- Page Text/Field ------- */
+ aLbTxtDbColumn( this, SW_RES( LB_TXT_DB_COLUMN )),
+ aPbDbcolToEdit( this, SW_RES( PB_DBCOL_TOEDIT )),
+ aEdDbText( this, SW_RES( ED_DB_TEXT )),
+ aFtDbParaColl( this, SW_RES( FT_DB_PARA_COLL )),
+ aLbDbParaColl( this, SW_RES( LB_DB_PARA_COLL )),
+
+ /* ----- Page Table ------------ */
+ aLbTblDbColumn( this, SW_RES( LB_TBL_DB_COLUMN )),
+ aPbDbcolAllTo( this, SW_RES( PB_DBCOL_ALL_TO )),
+ aPbDbcolOneTo( this, SW_RES( PB_DBCOL_ONE_TO )),
+ aPbDbcolOneFrom( this, SW_RES( PB_DBCOL_ONE_FROM )),
+ aPbDbcolAllFrom( this, SW_RES( PB_DBCOL_ALL_FROM )),
+ aFtTableCol( this, SW_RES( FT_TABLE_COL )),
+ aLbTableCol( this, SW_RES( LB_TABLE_COL )),
+ aGbTableHead( this, SW_RES( GB_TABLE_HEAD )),
+ aCbTableHeadon( this, SW_RES( CB_TABLE_HEADON )),
+ aRbHeadlColnms( this, SW_RES( RB_HEADL_COLNMS )),
+ aRbHeadlEmpty( this, SW_RES( RB_HEADL_EMPTY )),
+ aPbTblFormat( this, SW_RES( PB_TBL_FORMAT )),
+ aPbTblAutofmt( this, SW_RES( PB_TBL_AUTOFMT )),
+
+ sNoTmpl( SW_RES( STR_NOTEMPL )),
+#ifdef REPLACE_OFADBMGR
+ aDBData(rData),
+#endif //REPLACE_OFADBMGR
+ pView( &rView ),
+ pTAutoFmt( 0 ),
+ pTblSet( 0 ),
+ pRep( 0 ),
+ aOldNumFmtLnk( aLbDbFmtFromUsr.GetSelectHdl() ),
+ pConfig( 0 )
+{
+ FreeResource();
+
+ nGBFmtLen = aGbDbFormat.GetText().Len();
+
+#ifdef REPLACE_OFADBMGR
+ if(xColSupp.is())
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SvNumberFormatter* pNumFmtr = rSh.GetNumberFormatter();
+ SfxItemSet aSet(pView->GetPool(), RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE);
+ rSh.GetAttr( aSet );
+ Locale aDocLocale;
+ if(SFX_ITEM_DEFAULT <= aSet.GetItemState(RES_CHRATR_LANGUAGE, TRUE))
+ {
+ Any aLoc;
+ const SfxPoolItem& rItem = aSet.Get(RES_CHRATR_LANGUAGE);
+ rItem.QueryValue(aLoc, MID_LANG_LOCALE);
+ aDocLocale = *(Locale*)aLoc.getValue();
+ }
+
+ SvNumberFormatsSupplierObj* pNumFmt = new SvNumberFormatsSupplierObj( pNumFmtr );
+ Reference< util::XNumberFormatsSupplier > xDocNumFmtsSupplier = pNumFmt;
+ Reference< XNumberFormats > xDocNumberFormats = xDocNumFmtsSupplier->getNumberFormats();
+ Reference< XNumberFormatTypes > xDocNumberFormatTypes(xDocNumberFormats, UNO_QUERY);
+
+ Reference<XPropertySet> xSourceProps(xDataSource, UNO_QUERY);
+ Reference< XNumberFormats > xNumberFormats;
+ if(xSourceProps.is())
+ {
+ Any aFormats = xSourceProps->getPropertyValue(C2U("NumberFormatsSupplier"));
+ if(aFormats.hasValue())
+ {
+ Reference<XNumberFormatsSupplier> xSuppl = *(Reference<util::XNumberFormatsSupplier>*) aFormats.getValue();
+ if(xSuppl.is())
+ {
+ xNumberFormats = xSuppl->getNumberFormats( );
+ }
+ }
+ }
+ Reference <XNameAccess> xCols = xColSupp->getColumns();
+ Sequence<OUString> aColNames = xCols->getElementNames();
+ const OUString* pColNames = aColNames.getConstArray();
+ long nCount = aColNames.getLength();
+ for (long n = 0; n < nCount; n++)
+ {
+ SwInsDBColumn* pNew = new SwInsDBColumn(
+ pColNames[n], n );
+ Any aCol = xCols->getByName(pColNames[n]);
+ Reference <XPropertySet> xCol = *(Reference <XPropertySet>*)aCol.getValue();
+ Any aType = xCol->getPropertyValue(C2S("Type"));
+ sal_Int32 eDataType;
+ aType >>= eDataType;
+ switch(eDataType)
+ {
+ case DataType::BIT:
+ case DataType::TINYINT:
+ case DataType::SMALLINT:
+ case DataType::INTEGER:
+ case DataType::BIGINT:
+ case DataType::FLOAT:
+ case DataType::REAL:
+ case DataType::DOUBLE:
+ case DataType::NUMERIC:
+ case DataType::DECIMAL:
+ case DataType::DATE:
+ case DataType::TIME:
+ case DataType::TIMESTAMP:
+ {
+ pNew->bHasFmt = TRUE;
+ Any aFormat = xCol->getPropertyValue(C2U("FormatKey"));
+ if(aFormat.hasValue())
+ {
+ sal_Int32 nFmt;
+ aFormat >>= nFmt;
+ if(xNumberFormats.is())
+ {
+ try
+ {
+ Reference<XPropertySet> xNumProps = xNumberFormats->getByKey( nFmt );
+ Any aFormat = xNumProps->getPropertyValue(C2U("FormatString"));
+ Any aLocale = xNumProps->getPropertyValue(C2U("Locale"));
+ OUString sFormat;
+ aFormat >>= sFormat;
+ com::sun::star::lang::Locale aLoc;
+ aLocale >>= aLoc;
+ nFmt = xDocNumberFormats->addNew( sFormat, aLoc ),
+ pNew->nDBNumFmt = nFmt;
+ }
+ catch(...)
+ {
+ DBG_ERROR("illegal number format key")
+ }
+ }
+ }
+ else
+ pNew->nDBNumFmt = utl::getDefaultNumberFormat(xCol,
+ xDocNumberFormatTypes,
+ aDocLocale);
+
+ }
+ break;
+ }
+ if( !aDBColumns.Insert( pNew ))
+ {
+ ASSERT( !this, "Spaltenname mehrfach vergeben?" );
+ delete pNew;
+ }
+ }
+ }
+#else
+ // die ListBoxen mit den Spaltenkoepfen fuellen:
+ {
+ USHORT n;
+ SwNewDBMgr* pDBMgr = pView->GetWrtShell().GetNewDBMgr();
+ const String& rDBName = pView->GetWrtShell().GetDBDesc();
+
+ if( pDBMgr->IsDBOpen( DBMGR_STD, rDBName) ||
+ pDBMgr->OpenDB( DBMGR_STD, rDBName, TRUE ) )
+ {
+ SbaDBDataDefRef xDBDef = pDBMgr->OpenColumnNames( DBMGR_STD );
+ if( xDBDef.Is() )
+ {
+ const SbaColumnList& rCols = xDBDef->GetOriginalColumns();
+ for( n = 0; n < rCols.Count(); ++n )
+ {
+ const SbaColumn* pCol = rCols.GetObject( n );
+ const SbaNameItem& rNmItm = (SbaNameItem&)pCol->Get(
+ SBA_DEF_FLTNAME );
+ const SbaDataFieldTypeItem& rType = (SbaDataFieldTypeItem&)
+ pCol->Get( SBA_DEF_FLTTYPE );
+
+ SwInsDBColumn* pNew = new SwInsDBColumn(
+ rNmItm.GetValue(), n );
+
+ switch( rType.GetValue() )
+ {
+ case dbCurrency:
+ case dbCounter:
+ case dbNumeric:
+ case dbDateTime:
+ case dbDate:
+ case dbTime:
+ case dbBool:
+ case dbDecimal:
+ case dbBigInt:
+ pNew->bHasFmt = TRUE;
+ pNew->nDBNumFmt = ((SfxUInt32Item&)pCol->Get(
+ SBA_DEF_FMTVALUE)).GetValue();
+ break;
+ }
+
+ if( !aDBColumns.Insert( pNew ))
+ {
+ ASSERT( !this, "Spaltenname mehrfach vergeben?" );
+ delete pNew;
+ }
+ }
+ }
+ }
+ }
+#endif //REPLACE_OFADBMGR
+
+ // Absatzvorlagen-ListBox fuellen
+ {
+ SfxStyleSheetBasePool* pPool = pView->GetDocShell()->GetStyleSheetPool();
+ pPool->SetSearchMask( SFX_STYLE_FAMILY_PARA, SFXSTYLEBIT_ALL );
+ aLbDbParaColl.InsertEntry( sNoTmpl );
+
+ const SfxStyleSheetBase* pBase = pPool->First();
+ while( pBase )
+ {
+ aLbDbParaColl.InsertEntry( pBase->GetName() );
+ pBase = pPool->Next();
+ }
+ aLbDbParaColl.SelectEntryPos( 0 );
+ }
+
+ // steht der Cursor in einer Tabelle, darf NIE Tabelle auswaehlbar sein
+ if( pView->GetWrtShell().GetTableFmt() )
+ {
+ aRbAsTable.Enable( FALSE );
+ aRbAsField.Check( TRUE );
+ aRbDbFmtFromDb.Check( TRUE );
+ }
+ else
+ {
+ aRbAsTable.Check( TRUE );
+ aRbDbFmtFromDb.Check( TRUE );
+ aPbDbcolOneFrom.Enable( FALSE );
+ aPbDbcolAllFrom.Enable( FALSE );
+ }
+
+ aRbAsTable.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, PageHdl ));
+ aRbAsField.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, PageHdl ));
+ aRbAsText.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, PageHdl ));
+
+ aRbDbFmtFromDb.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, DBFormatHdl ));
+ aRbDbFmtFromUsr.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, DBFormatHdl ));
+
+ aPbTblFormat.SetClickHdl(LINK(this, SwInsertDBColAutoPilot, TblFmtHdl ));
+ aPbTblAutofmt.SetClickHdl(LINK(this, SwInsertDBColAutoPilot, AutoFmtHdl ));
+
+ aPbDbcolAllTo.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, TblToFromHdl ));
+ aPbDbcolOneTo.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, TblToFromHdl ));
+ aPbDbcolOneFrom.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, TblToFromHdl ));
+ aPbDbcolAllFrom.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, TblToFromHdl ));
+ aPbDbcolToEdit.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, TblToFromHdl ));
+
+ aCbTableHeadon.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, HeaderHdl ));
+ aRbHeadlColnms.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, HeaderHdl ));
+ aRbHeadlEmpty.SetClickHdl( LINK(this, SwInsertDBColAutoPilot, HeaderHdl ));
+
+ aLbTxtDbColumn.SetSelectHdl( LINK( this, SwInsertDBColAutoPilot, SelectHdl ));
+ aLbTblDbColumn.SetSelectHdl( LINK( this, SwInsertDBColAutoPilot, SelectHdl ));
+ aLbDbFmtFromUsr.SetSelectHdl( LINK( this, SwInsertDBColAutoPilot, SelectHdl ));
+ aLbTableCol.SetSelectHdl( LINK( this, SwInsertDBColAutoPilot, SelectHdl ));
+
+ aLbTxtDbColumn.SetDoubleClickHdl( LINK( this, SwInsertDBColAutoPilot, DblClickHdl ));
+ aLbTblDbColumn.SetDoubleClickHdl( LINK( this, SwInsertDBColAutoPilot, DblClickHdl ));
+ aLbTableCol.SetDoubleClickHdl( LINK( this, SwInsertDBColAutoPilot, DblClickHdl ));
+
+ for( USHORT n = 0; n < aDBColumns.Count(); ++n )
+ {
+ const String& rS = aDBColumns[ n ]->sColumn;
+ aLbTblDbColumn.InsertEntry( rS, n );
+ aLbTxtDbColumn.InsertEntry( rS, n );
+ }
+ aLbTxtDbColumn.SelectEntryPos( 0 );
+ aLbTblDbColumn.SelectEntryPos( 0 );
+
+ // Daten aus dem INI-File lesen:
+ ReadIniToUI();
+
+ // Controls initialisieren:
+ PageHdl( aRbAsTable.IsChecked() ? &aRbAsTable : &aRbAsField );
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwInsertDBColAutoPilot::~SwInsertDBColAutoPilot()
+{
+ delete pTblSet;
+ delete pRep;
+
+ delete pConfig;
+ delete pTAutoFmt;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, PageHdl, Button*, pButton )
+{
+ BOOL bShowTbl = pButton == &aRbAsTable;
+
+ String sTxt( pButton->GetText() );
+ aGbSelection.SetText( sTxt.EraseAllChars( '~' ) );
+
+ aLbTxtDbColumn.Show( !bShowTbl );
+ aPbDbcolToEdit.Show( !bShowTbl );
+ aEdDbText.Show( !bShowTbl );
+ aFtDbParaColl.Show( !bShowTbl );
+ aLbDbParaColl.Show( !bShowTbl );
+
+ aLbTblDbColumn.Show( bShowTbl );
+ aPbDbcolAllTo.Show( bShowTbl );
+ aPbDbcolOneTo.Show( bShowTbl );
+ aPbDbcolOneFrom.Show( bShowTbl );
+ aPbDbcolAllFrom.Show( bShowTbl );
+ aFtTableCol.Show( bShowTbl );
+ aLbTableCol.Show( bShowTbl );
+ aGbTableHead.Show( bShowTbl );
+ aCbTableHeadon.Show( bShowTbl );
+ aRbHeadlColnms.Show( bShowTbl );
+ aRbHeadlEmpty.Show( bShowTbl );
+ aPbTblFormat.Show( bShowTbl );
+ aPbTblAutofmt.Show( bShowTbl );
+
+ if( bShowTbl )
+ aPbTblFormat.Enable( 0 != aLbTableCol.GetEntryCount() );
+
+ SelectHdl( bShowTbl ? &aLbTblDbColumn : &aLbTxtDbColumn );
+
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, DBFormatHdl, Button*, pButton )
+{
+ USHORT nFndPos;
+ ListBox& rBox = aRbAsTable.IsChecked()
+ ? ( 0 == aLbTableCol.GetEntryData( 0 )
+ ? aLbTblDbColumn
+ : aLbTableCol )
+ : aLbTxtDbColumn;
+
+ SwInsDBColumn aSrch( rBox.GetSelectEntry(), 0 );
+ aDBColumns.Seek_Entry( &aSrch, &nFndPos );
+
+ BOOL bFromDB = &aRbDbFmtFromDb == pButton;
+ aDBColumns[ nFndPos ]->bIsDBFmt = bFromDB;
+ aLbDbFmtFromUsr.Enable( !bFromDB );
+
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, TblToFromHdl, Button*, pButton )
+{
+ BOOL bChgEnable = TRUE, bEnableTo = TRUE, bEnableFrom = TRUE;
+ aLbTblDbColumn.SetUpdateMode( FALSE );
+ aLbTableCol.SetUpdateMode( FALSE );
+
+ if( pButton == &aPbDbcolAllTo )
+ {
+ bEnableTo = FALSE;
+
+ USHORT n, nInsPos = aLbTableCol.GetSelectEntryPos(),
+ nCnt = aLbTblDbColumn.GetEntryCount();
+ if( LISTBOX_APPEND == nInsPos )
+ for( n = 0; n < nCnt; ++n )
+ aLbTableCol.InsertEntry( aLbTblDbColumn.GetEntry( n ),
+ LISTBOX_APPEND );
+ else
+ for( n = 0; n < nCnt; ++n, ++nInsPos )
+ aLbTableCol.InsertEntry( aLbTblDbColumn.GetEntry( n ), nInsPos );
+ aLbTblDbColumn.Clear();
+ aLbTableCol.SelectEntryPos( nInsPos );
+ aLbTblDbColumn.SelectEntryPos( LISTBOX_APPEND );
+ }
+ else if( pButton == &aPbDbcolOneTo &&
+ LISTBOX_ENTRY_NOTFOUND != aLbTblDbColumn.GetSelectEntryPos() )
+ {
+ USHORT nInsPos = aLbTableCol.GetSelectEntryPos(),
+ nDelPos = aLbTblDbColumn.GetSelectEntryPos(),
+ nTopPos = aLbTblDbColumn.GetTopEntry();
+ aLbTableCol.InsertEntry( aLbTblDbColumn.GetEntry( nDelPos ), nInsPos );
+ aLbTblDbColumn.RemoveEntry( nDelPos );
+
+ aLbTableCol.SelectEntryPos( nInsPos );
+ if( nDelPos >= aLbTblDbColumn.GetEntryCount() )
+ nDelPos = aLbTblDbColumn.GetEntryCount() - 1;
+ aLbTblDbColumn.SelectEntryPos( nDelPos );
+ aLbTblDbColumn.SetTopEntry( nTopPos );
+
+ bEnableTo = 0 != aLbTblDbColumn.GetEntryCount();
+ }
+ else if( pButton == &aPbDbcolOneFrom )
+ {
+ if( LISTBOX_ENTRY_NOTFOUND != aLbTableCol.GetSelectEntryPos() )
+ {
+ USHORT nFndPos, nInsPos,
+ nDelPos = aLbTableCol.GetSelectEntryPos(),
+ nTopPos = aLbTableCol.GetTopEntry();
+
+ // die richtige InsertPos suchen!!
+ SwInsDBColumn aSrch( aLbTableCol.GetEntry( nDelPos ), 0 );
+ aDBColumns.Seek_Entry( &aSrch, &nFndPos );
+ if( !nFndPos || nFndPos == aDBColumns.Count()-1 )
+ nInsPos = nFndPos;
+ else
+ {
+ nInsPos = LISTBOX_ENTRY_NOTFOUND;
+ while( ++nFndPos < aDBColumns.Count() &&
+ LISTBOX_ENTRY_NOTFOUND == (nInsPos = aLbTblDbColumn.
+ GetEntryPos( aDBColumns[ nFndPos ]->sColumn )) )
+ ;
+ }
+
+ aLbTblDbColumn.InsertEntry( aSrch.sColumn, nInsPos );
+ aLbTableCol.RemoveEntry( nDelPos );
+
+ if( nInsPos >= aLbTblDbColumn.GetEntryCount() )
+ nInsPos = aLbTblDbColumn.GetEntryCount() - 1;
+ aLbTblDbColumn.SelectEntryPos( nInsPos );
+
+ if( nDelPos >= aLbTableCol.GetEntryCount() )
+ nDelPos = aLbTableCol.GetEntryCount() - 1;
+ aLbTableCol.SelectEntryPos( nDelPos );
+ aLbTableCol.SetTopEntry( nTopPos );
+ }
+ else
+ bEnableTo = 0 != aLbTblDbColumn.GetEntryCount();
+
+ bEnableFrom = 0 != aLbTableCol.GetEntryCount();
+ }
+ else if( pButton == &aPbDbcolAllFrom )
+ {
+ bEnableFrom = FALSE;
+
+ aLbTblDbColumn.Clear();
+ aLbTableCol.Clear();
+ for( USHORT n = 0; n < aDBColumns.Count(); ++n )
+ aLbTblDbColumn.InsertEntry( aDBColumns[ n ]->sColumn, n );
+ aLbTblDbColumn.SelectEntryPos( 0 );
+ }
+ else if( pButton == &aPbDbcolToEdit )
+ {
+ bChgEnable = FALSE;
+ // Daten ins Edit moven:
+ String aFld( aLbTxtDbColumn.GetSelectEntry() );
+ if( aFld.Len() )
+ {
+ String aStr( aEdDbText.GetText() );
+ USHORT nPos = (USHORT)aEdDbText.GetSelection().Min();
+ USHORT nSel = USHORT(aEdDbText.GetSelection().Max()) - nPos;
+ if( nSel )
+ // dann loesche erstmal die bestehende Selektion
+ aStr.Erase( nPos, nSel );
+
+ aFld.Insert( cDBFldStart, 0 );
+ aFld += cDBFldEnd;
+ if( aStr.Len() )
+ {
+ if( nPos ) // ein Space davor
+ {
+ char c = aStr.GetChar( nPos-1 );
+ if( '\n' != c && '\r' != c )
+ aFld.Insert( ' ', 0 );
+ }
+ if( nPos < aStr.Len() ) // ein Space dahinter
+ {
+ char c = aStr.GetChar( nPos );
+ if( '\n' != c && '\r' != c )
+ aFld += ' ';
+ }
+ }
+
+ aStr.Insert( aFld, nPos );
+ aEdDbText.SetText( aStr );
+ nPos += aFld.Len();
+ aEdDbText.SetSelection( Selection( nPos ));
+ }
+ }
+
+ if( bChgEnable )
+ {
+ aPbDbcolOneTo.Enable( bEnableTo );
+ aPbDbcolAllTo.Enable( bEnableTo );
+ aPbDbcolOneFrom.Enable( bEnableFrom );
+ aPbDbcolAllFrom.Enable( bEnableFrom );
+
+ aRbDbFmtFromDb.Enable( FALSE );
+ aRbDbFmtFromUsr.Enable( FALSE );
+ aLbDbFmtFromUsr.Enable( FALSE );
+
+ aPbTblFormat.Enable( bEnableFrom );
+ }
+ aLbTblDbColumn.SetUpdateMode( TRUE );
+ aLbTableCol.SetUpdateMode( TRUE );
+
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, DblClickHdl, ListBox*, pBox )
+{
+ Button* pButton = 0;
+ if( pBox == &aLbTxtDbColumn )
+ pButton = &aPbDbcolToEdit;
+ else if( pBox == &aLbTblDbColumn && aPbDbcolOneTo.IsEnabled() )
+ pButton = &aPbDbcolOneTo;
+ else if( pBox == &aLbTableCol && aPbDbcolOneFrom.IsEnabled() )
+ pButton = &aPbDbcolOneFrom;
+
+ if( pButton )
+ TblToFromHdl( pButton );
+
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, TblFmtHdl, PushButton*, pButton )
+{
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SFX_APP()->GetOptions().SetMetric( ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView)) );
+ BOOL bNewSet = FALSE;
+ if( !pTblSet )
+ {
+ bNewSet = TRUE;
+ pTblSet = new SfxItemSet( rSh.GetAttrPool(), aUITableAttrRange );
+
+ //Ersteinmal die einfachen Attribute besorgen.
+ pTblSet->Put( SfxStringItem( FN_PARAM_TABLE_NAME, rSh.GetUniqueTblName() ));
+ pTblSet->Put( SfxBoolItem( FN_PARAM_TABLE_HEADLINE, TRUE ) );
+
+ pTblSet->Put( SfxUInt16Item( SID_BACKGRND_DESTINATION,
+ rSh.GetViewOptions()->GetTblDest() ));
+
+ SvxBrushItem aBrush( RES_BACKGROUND );
+ pTblSet->Put( aBrush );
+ pTblSet->Put( aBrush, SID_ATTR_BRUSH_ROW );
+ pTblSet->Put( aBrush, SID_ATTR_BRUSH_TABLE );
+
+ SvxBoxInfoItem aBoxInfo;
+ // Tabellenvariante, wenn mehrere Tabellenzellen selektiert
+ aBoxInfo.SetTable( TRUE );
+ // Abstandsfeld immer anzeigen
+ aBoxInfo.SetDist( TRUE);
+ // Minimalgroesse in Tabellen und Absaetzen setzen
+ aBoxInfo.SetMinDist( FALSE );
+ // Default-Abstand immer setzen
+ aBoxInfo.SetDefDist( MIN_BORDER_DIST );
+ // Einzelne Linien koennen nur in Tabellen DontCare-Status haben
+ aBoxInfo.SetValid( VALID_DISABLE, TRUE );
+ pTblSet->Put( aBoxInfo );
+
+ SwGetCurColNumPara aPara;
+ const int nNum = rSh.GetCurColNum( &aPara );
+ long nWidth;
+
+ if( nNum )
+ {
+ nWidth = aPara.pPrtRect->Width();
+ const SwFmtCol& rCol = aPara.pFrmFmt->GetCol();
+ const SwColumns& rCols = rCol.GetColumns();
+
+ //nStart und nEnd initialisieren fuer nNum == 0
+ long nWidth1 = 0,
+ nStart1 = 0,
+ nEnd1 = nWidth;
+ for( int i = 0; i < nNum; ++i )
+ {
+ SwColumn* pCol = rCols[i];
+ nStart1 = pCol->GetLeft() + nWidth1;
+ nWidth1 += (long)rCol.CalcColWidth( i, (USHORT)nWidth );
+ nEnd1 = nWidth1 - pCol->GetRight();
+ }
+ if(nStart1 || nEnd1 != nWidth)
+ nWidth = nEnd1 - nStart1;
+ }
+ else
+ nWidth = rSh.GetAnyCurRect(
+ FRMTYPE_FLY_ANY & rSh.GetFrmType( 0, TRUE )
+ ? RECT_FLY_PRT_EMBEDDED
+ : RECT_PAGE_PRT ).Width();
+
+ SwTabCols aTabCols;
+ aTabCols.SetRight( nWidth );
+ aTabCols.SetRightMax( nWidth );
+ pRep = new SwTableRep( aTabCols, FALSE );
+ pRep->SetAlign( HORI_NONE );
+ pRep->SetSpace( nWidth );
+ pRep->SetWidth( nWidth );
+ pRep->SetWidthPercent( 100 );
+ pTblSet->Put( SwPtrItem( FN_TABLE_REP, pRep ));
+
+ pTblSet->Put( SfxUInt16Item( SID_HTML_MODE,
+ ::GetHtmlMode( pView->GetDocShell() )));
+ }
+
+ if( aLbTableCol.GetEntryCount() != pRep->GetAllColCount() )
+ {
+ // Anzahl der Spalten hat sich geaendert: dann muessen die
+ // TabCols angepasst werden
+ long nWidth = pRep->GetWidth();
+ USHORT nCols = aLbTableCol.GetEntryCount() - 1;
+ SwTabCols aTabCols( nCols );
+ aTabCols.SetRight( nWidth );
+ aTabCols.SetRightMax( nWidth );
+ if( nCols )
+ for( USHORT n = 0, nStep = nWidth / (nCols+1), nW = nStep;
+ n < nCols; ++n, nW += nStep )
+ {
+ aTabCols.Insert( nW, n );
+ aTabCols.InsertHidden( n, FALSE );
+ }
+ delete pRep;
+ pRep = new SwTableRep( aTabCols, FALSE );
+ pRep->SetAlign( HORI_NONE );
+ pRep->SetSpace( nWidth );
+ pRep->SetWidth( nWidth );
+ pRep->SetWidthPercent( 100 );
+ pTblSet->Put( SwPtrItem( FN_TABLE_REP, pRep ));
+ }
+
+ SwTableTabDlg* pDlg = new SwTableTabDlg( pButton, rSh.GetAttrPool(),
+ pTblSet, &rSh );
+ if( RET_OK == pDlg->Execute() )
+ pTblSet->Put( *pDlg->GetOutputItemSet() );
+ else if( bNewSet )
+ {
+ delete pTblSet, pTblSet = 0;
+ delete pRep, pRep = 0;
+ }
+ delete pDlg;
+
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, AutoFmtHdl, PushButton*, pButton )
+{
+ SwAutoFormatDlg aDlg( pButton, pView->GetWrtShellPtr(), FALSE, pTAutoFmt );
+ if( RET_OK == aDlg.Execute())
+ aDlg.FillAutoFmtOfIndex( pTAutoFmt );
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, SelectHdl, ListBox*, pBox )
+{
+ ListBox* pGetBox = pBox == &aLbDbFmtFromUsr
+ ? ( aRbAsTable.IsChecked()
+ ? ( 0 == aLbTableCol.GetEntryData( 0 )
+ ? &aLbTblDbColumn
+ : &aLbTableCol )
+ : &aLbTxtDbColumn )
+ : pBox;
+
+ USHORT nFndPos;
+ SwInsDBColumn aSrch( pGetBox->GetSelectEntry(), 0 );
+ aDBColumns.Seek_Entry( &aSrch, &nFndPos );
+
+ if( pBox == &aLbDbFmtFromUsr )
+ {
+ if( aSrch.sColumn.Len() )
+ {
+ aOldNumFmtLnk.Call( pBox );
+ aDBColumns[ nFndPos ]->nUsrNumFmt = aLbDbFmtFromUsr.GetFormat();
+ }
+ }
+ else
+ {
+ // an der FormatGroupBox den ausgewaehlten FeldNamen setzen, damit
+ // klar ist, welches Feld ueber das Format eingestellt wird!
+ String sTxt( aGbDbFormat.GetText().Copy( 0, nGBFmtLen ));
+ if( !aSrch.sColumn.Len() )
+ {
+ aRbDbFmtFromDb.Enable( FALSE );
+ aRbDbFmtFromUsr.Enable( FALSE );
+ aLbDbFmtFromUsr.Enable( FALSE );
+ }
+ else
+ {
+ BOOL bEnableFmt = aDBColumns[ nFndPos ]->bHasFmt;
+ aRbDbFmtFromDb.Enable( bEnableFmt );
+ aRbDbFmtFromUsr.Enable( bEnableFmt );
+
+ if( bEnableFmt )
+ (( sTxt += C2S(" (" )) += aSrch.sColumn ) += (sal_Unicode)')';
+
+ BOOL bIsDBFmt = aDBColumns[ nFndPos ]->bIsDBFmt;
+ aRbDbFmtFromDb.Check( bIsDBFmt );
+ aRbDbFmtFromUsr.Check( !bIsDBFmt );
+ aLbDbFmtFromUsr.Enable( !bIsDBFmt );
+ if( !bIsDBFmt )
+ aLbDbFmtFromUsr.SetDefFormat( aDBColumns[ nFndPos ]->nUsrNumFmt );
+ }
+
+ aGbDbFormat.SetText( sTxt );
+
+ // um spaeter zu wissen, welche ListBox die "aktive" war, wird sich
+ // im 1. Eintrag ein Flag gemerkt,
+ void* pPtr = pBox == &aLbTableCol ? &aLbTableCol : 0;
+ aLbTableCol.SetEntryData( 0, pPtr );
+ }
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwInsertDBColAutoPilot, HeaderHdl, Button*, pButton )
+{
+ if( pButton == &aCbTableHeadon )
+ {
+ BOOL bEnable = aCbTableHeadon.IsChecked();
+
+ aRbHeadlColnms.Enable( bEnable );
+ aRbHeadlEmpty.Enable( bEnable );
+ }
+ return 0;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+void lcl_InsTextInArr( const String& rTxt, _DB_Columns& rColArr )
+{
+ _DB_Column* pNew;
+ USHORT nSttPos = 0, nFndPos;
+ while( STRING_NOTFOUND != ( nFndPos = rTxt.Search( '\x0A', nSttPos )) )
+ {
+ if( 1 < nFndPos )
+ {
+ pNew = new _DB_Column( rTxt.Copy( nSttPos, nFndPos -1 ) );
+ rColArr.Insert( pNew, rColArr.Count() );
+ }
+ pNew = new _DB_Column;
+ rColArr.Insert( pNew, rColArr.Count() );
+ nSttPos = nFndPos + 1;
+ }
+ if( nSttPos < rTxt.Len() )
+ {
+ pNew = new _DB_Column( rTxt.Copy( nSttPos ) );
+ rColArr.Insert( pNew, rColArr.Count() );
+ }
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+FASTBOOL SwInsertDBColAutoPilot::SplitTextToColArr( const String& rTxt,
+ _DB_Columns& rColArr,
+ BOOL bInsField )
+{
+ // aus dem Text wieder die einzelnen Datenbank - Spalten erzeugen
+ // und dann in einem Array speichern
+ // Die Datenbankspalten stehen in <> und muessen im Array der Spalten
+ // vorhanden sein:
+ String sTxt( rTxt );
+ USHORT nFndPos, nEndPos, nSttPos = 0;
+
+ while( STRING_NOTFOUND != ( nFndPos = sTxt.Search( cDBFldStart, nSttPos )))
+ {
+ nSttPos = nFndPos + 1;
+ if( STRING_NOTFOUND != ( nEndPos = sTxt.Search( cDBFldEnd, nSttPos+1 )))
+ {
+ // Text in <> geklammert gefunden: was ist es denn:
+ SwInsDBColumn aSrch( sTxt.Copy( nSttPos, nEndPos - nSttPos ), 0);
+ if( aDBColumns.Seek_Entry( &aSrch, &nFndPos ) )
+ {
+ // das ist ein gueltiges Feld
+ // also sicher den Text "davor":
+ const SwInsDBColumn& rFndCol = *aDBColumns[ nFndPos ];
+
+ _DB_Column* pNew;
+
+ if( 1 < nSttPos )
+ {
+ ::lcl_InsTextInArr( sTxt.Copy( 0, nSttPos-1 ), rColArr );
+ sTxt.Erase( 0, nSttPos-1 );
+ }
+
+ sTxt.Erase( 0, rFndCol.sColumn.Len() + 2 );
+ nSttPos = 0;
+
+ USHORT nSubType = 0;
+ ULONG nFormat;
+ if( rFndCol.bHasFmt )
+ {
+ if( rFndCol.bIsDBFmt )
+ nFormat = rFndCol.nDBNumFmt;
+ else
+ {
+ nFormat = rFndCol.nUsrNumFmt;
+ nSubType = SUB_OWN_FMT;
+ }
+ }
+ else
+ nFormat = 0;
+
+ if( bInsField )
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+#ifdef REPLACE_OFADBMGR
+ String sDBContent(aDBData.sDataBaseName);
+ sDBContent += DB_DELIM;
+ sDBContent += aDBData.sDataTableName;
+ SwDBFieldType aFldType( rSh.GetDoc(), aSrch.sColumn,
+ sDBContent );
+#else
+ SwDBFieldType aFldType( rSh.GetDoc(), aSrch.sColumn,
+ rSh.GetDBName() );
+#endif
+ pNew = new _DB_Column( rFndCol, *new SwDBField(
+ (SwDBFieldType*)rSh.InsertFldType( aFldType ),
+ nFormat ) );
+ if( nSubType )
+ pNew->DB_ColumnData.pField->SetSubType( nSubType );
+ }
+ else
+ pNew = new _DB_Column( rFndCol, nFormat );
+
+ rColArr.Insert( pNew, rColArr.Count() );
+ }
+ }
+ }
+
+ // den letzten Text nicht vergessen
+ if( sTxt.Len() )
+ ::lcl_InsTextInArr( sTxt, rColArr );
+
+ return 0 != rColArr.Count();
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+void SwInsertDBColAutoPilot::DataToDoc( const SbaSelectionList* pSelList,
+ Reference< XDataSource> xSource,
+ Reference< XConnection> xConnection )
+#else
+void SwInsertDBColAutoPilot::DataToDoc( const SbaSelectionList* pSelList )
+#endif
+{
+ SwWrtShell& rSh = pView->GetWrtShell();
+
+#ifdef REPLACE_OFADBMGR
+ Reference< sdbc::XResultSet > xResultSet;
+ Reference< sdbc::XRow > xRow;
+ Reference< sdbc::XStatement > xStatement;
+ BOOL bScrollable;
+ try
+ {
+ bScrollable = xConnection->getMetaData()->supportsResultSetType((sal_Int32)ResultSetType::SCROLL_INSENSITIVE);
+
+ xStatement = xConnection->createStatement();
+ Reference< XPropertySet > xStatProp(xStatement, UNO_QUERY);
+ if(bScrollable)
+ {
+ Any aResType;
+ aResType <<= (sal_Int32)ResultSetType::SCROLL_INSENSITIVE;
+ xStatProp->setPropertyValue(C2U("ResultSetType"), aResType);
+ }
+ if(xStatement.is())
+ xResultSet = xStatement->executeQuery(aDBData.sStatement);
+ xRow = Reference< sdbc::XRow >(xResultSet, UNO_QUERY);
+ }
+ catch(Exception aExcept)
+ {
+ DBG_ERROR("exception caught")
+ }
+ if(!xResultSet.is() || !xRow.is())
+ return;
+#else
+
+ SwNewDBMgr* pDBMgr = rSh.GetNewDBMgr();
+ if( ( aRbAsTable.IsChecked() ? !aLbTableCol.GetEntryCount()
+ : !aEdDbText.GetText().Len() ) ||
+ !pDBMgr->ToFirstSelectedRecord( DBMGR_STD ) ||
+ !pDBMgr->IsSuccessful( DBMGR_STD ) )
+ return ;
+
+ OfaDBParam& rParam = pDBMgr->GetDBData( DBMGR_STD );
+
+ rParam.pSelectionList->Clear();
+ if( pSelList && -1L != (long)pSelList->GetObject( 0 ) )
+ {
+ *rParam.pSelectionList = *pSelList;
+ if( !pSelList->Count() )
+ pSelList = 0;
+ }
+ else
+ pSelList = 0;
+
+ SbaDBDataDefRef xColDef = pDBMgr->OpenColumnNames( DBMGR_STD );
+
+#endif
+ rSh.StartAllAction();
+ rSh.StartUndo( 0 );
+ BOOL bGroupUndo = rSh.DoesGroupUndo();
+ rSh.DoGroupUndo( FALSE );
+
+ SvNumberFormatter& rNumFmtr = *rSh.GetNumberFormatter();
+
+ if( rSh.HasSelection() )
+ rSh.DelRight();
+
+ SwWait *pWait = 0;
+
+ if( aRbAsTable.IsChecked() ) // Daten als Tabelle einfuegen
+ {
+ USHORT n, nRows = 0, nCols = aLbTableCol.GetEntryCount();
+ if( aCbTableHeadon.IsChecked() )
+ nRows++;
+
+ if( pSelList )
+ nRows += (USHORT)pSelList->Count();
+ else
+ ++nRows;
+
+ // bereite das Array fuer die ausgewaehlten Spalten auf
+ SwInsDBColumns_SAR aColFlds( 255 >= nCols ? (BYTE)nCols : 255, 5 );
+ for( n = 0; n < nCols; ++n )
+ {
+ USHORT nFndPos;
+ SwInsDBColumn aSrch( aLbTableCol.GetEntry( n ), 0 );
+ if( aDBColumns.Seek_Entry( &aSrch, &nFndPos ) )
+ aColFlds.Insert( aDBColumns[ nFndPos ], n );
+ else
+ ASSERT( !this, "Datenbankspalte nicht mehr gefunden" );
+ }
+
+ if( nCols != aColFlds.Count() )
+ {
+ ASSERT( !this, "nicht alle Datenbankspalten gefunden" );
+ nCols = aColFlds.Count();
+ }
+
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+
+ BOOL bHTML = 0 != (::GetHtmlMode( pView->GetDocShell() ) & HTMLMODE_ON);
+ rSh.InsertTable( nRows, nCols, HORI_FULL,
+ pModOpt->GetInsTblFlags(bHTML),
+ (pSelList ? pTAutoFmt : 0));
+ rSh.MoveTable( fnTablePrev, fnTableStart );
+
+ if( pSelList && pTblSet )
+ SetTabSet();
+
+ SfxItemSet aTblSet( rSh.GetAttrPool(), RES_BOXATR_FORMAT,
+ RES_BOXATR_VALUE );
+ BOOL bIsAutoUpdateCells = rSh.IsAutoUpdateCells();
+ rSh.SetAutoUpdateCells( FALSE );
+
+
+ if( aCbTableHeadon.IsChecked() )
+ {
+ for( n = 0; n < nCols; ++n )
+ {
+ if( aRbHeadlColnms.IsChecked() )
+ rSh.SwEditShell::Insert( aColFlds[ n ]->sColumn );
+ rSh.GoNextCell();
+ }
+ }
+ else
+ rSh.SetHeadlineRepeat( FALSE );
+
+ for( ULONG i = 0 ; ; ++i )
+ {
+#ifdef REPLACE_OFADBMGR
+ BOOL bBreak = FALSE;
+ try
+ {
+ if(bScrollable)
+ {
+ if(pSelList)
+ bBreak = !xResultSet->absolute((ULONG)pSelList->GetObject( i ) );
+ else if(!i)
+ bBreak = !xResultSet->first();
+ }
+ else if(pSelList)
+ {
+ ULONG nOldPos = i ? 0 : (ULONG)pSelList->GetObject( i -1 );
+ ULONG nPos = (ULONG)pSelList->GetObject( i );
+ long nDiff = nPos - nOldPos;
+ while(nDiff > 0 && !bBreak)
+ {
+ bBreak = !xResultSet->next();
+ nDiff--;
+ }
+ }
+ else if(!i)
+ bBreak = !xResultSet->next();
+
+ }
+ catch(Exception aExcept)
+ {
+ bBreak = TRUE;
+ }
+ if(bBreak)
+ break;
+#else
+ if( pSelList )
+ // naechsten zu lesenden Datensatz ansteuern
+ pDBMgr->GotoRecord( (ULONG)pSelList->GetObject( i ));
+ const ODbRowRef& xRow = rParam.GetCursor()->GetRow();
+#endif
+ for( n = 0; n < nCols; ++n )
+ {
+ // beim aller erstenmal KEIN GoNextCell, weil wir schon
+ // drin stehen. Auch nicht nach dem Insert das GoNextCell,
+ // weil am Ende eine leere Zeile einfuegt wird.
+ if( i || n )
+ rSh.GoNextCell();
+
+ const SwInsDBColumn* pEntry = aColFlds[ n ];
+#ifdef REPLACE_OFADBMGR
+ Reference< XColumnsSupplier > xColsSupp( xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ Any aCol = xCols->getByName(pEntry->sColumn);
+ Reference< XPropertySet > xColumnProps;
+ if(aCol.hasValue())
+ xColumnProps = *(Reference< XPropertySet >*)aCol.getValue();
+ Reference< XColumn > xColumn(xColumnProps, UNO_QUERY);
+#else
+ const ODbVariantRef& xVar = (*xRow)[pEntry->nCol+1];
+#endif
+ try
+ {
+ if( pEntry->bHasFmt )
+ {
+ SwTblBoxNumFormat aNumFmt(
+ pEntry->bIsDBFmt ? pEntry->nDBNumFmt
+ : pEntry->nUsrNumFmt );
+ aTblSet.Put(aNumFmt);
+#ifdef REPLACE_OFADBMGR
+ if( xColumn.is() )
+#else
+ if( !xVar->isNull() )
+#endif
+ {
+#ifdef REPLACE_OFADBMGR
+ double fVal = xColumn->getDouble();
+ if( xColumn->wasNull() )
+ aTblSet.ClearItem( RES_BOXATR_VALUE );
+ else
+ {
+#else
+ double fVal = xVar->toDouble();
+#endif
+ if(rNumFmtr.GetType(aNumFmt.GetValue()) & NUMBERFORMAT_DATE)
+ {
+ ::Date aStandard(1,1,1900);
+ if (*rNumFmtr.GetNullDate() != aStandard)
+ fVal += (aStandard - *rNumFmtr.GetNullDate());
+ }
+ aTblSet.Put( SwTblBoxValue( fVal ));
+#ifdef REPLACE_OFADBMGR
+ }
+#endif
+ }
+ else
+ aTblSet.ClearItem( RES_BOXATR_VALUE );
+ rSh.SetTblBoxFormulaAttrs( aTblSet );
+ }
+#ifdef REPLACE_OFADBMGR
+ else
+ {
+ OUString sVal = xColumn->getString();
+ if(!xColumn->wasNull())
+ rSh.SwEditShell::Insert( sVal );
+ }
+#else
+ else if( !xVar->isNull() )
+ rSh.SwEditShell::Insert( xVar->toString() );
+#endif
+ }
+#ifdef REPLACE_OFADBMGR
+ catch(Exception aExcept)
+ {
+ DBG_ERROR(ByteString(String(aExcept.Message), gsl_getSystemTextEncoding()).GetBuffer())
+ }
+#else
+ catch(...)
+ {
+ }
+#endif
+ }
+
+ if( !pSelList )
+ {
+#ifdef REPLACE_OFADBMGR
+ BOOL bNext = xResultSet->next();
+ if(!bNext)
+ break;
+#else
+ rParam.GetCursor()->Next();
+ rParam.CurrentPos()++;
+ if( rParam.GetCursor()->IsOffRange() )
+ break;
+#endif
+ }
+ else if( i+1 >= pSelList->Count() )
+ break;
+
+ if( 10 == i )
+ pWait = new SwWait( *pView->GetDocShell(), TRUE );
+ }
+
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+ if( !pSelList && ( pTblSet || pTAutoFmt ))
+ {
+ if( pTblSet )
+ SetTabSet();
+
+ if( pTAutoFmt )
+ rSh.SetTableAutoFmt( *pTAutoFmt );
+ }
+ rSh.SetAutoUpdateCells( bIsAutoUpdateCells );
+ }
+ else // Daten als Felder/Text einfuegen
+ {
+ _DB_Columns aColArr;
+ if( SplitTextToColArr( aEdDbText.GetText(), aColArr, aRbAsField.IsChecked() ) )
+ {
+ // jetzt kann bei jedem Datensatz einfach ueber das Array iteriert
+ // und die Daten eingefuegt werden
+
+ if( !rSh.IsSttPara() )
+ rSh.SwEditShell::SplitNode();
+ if( !rSh.IsEndPara() )
+ {
+ rSh.SwEditShell::SplitNode();
+ rSh.SwCrsrShell::Left();
+ }
+
+ SwTxtFmtColl* pColl = 0;
+ {
+ String sTmplNm( aLbDbParaColl.GetSelectEntry() );
+ if( sNoTmpl != sTmplNm )
+ {
+ pColl = rSh.FindTxtFmtCollByName( sTmplNm );
+ if( !pColl )
+ {
+ USHORT nId = rSh.GetPoolId( sTmplNm, GET_POOLID_TXTCOLL );
+ if( USHRT_MAX != nId )
+ pColl = rSh.GetTxtCollFromPool( nId );
+ else
+ pColl = rSh.MakeTxtFmtColl( sTmplNm );
+ }
+ rSh.SetTxtFmtColl( pColl );
+ }
+ }
+
+ // fuers Einfuegen als Felder -> nach jedem Datensatz ein
+ // "NextField" einfuegen
+#ifdef REPLACE_OFADBMGR
+ SwDBFormatData aDBFormatData;
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.util.NumberFormatter" ));
+ aDBFormatData.xFormatter = Reference<util::XNumberFormatter>(xInstance, UNO_QUERY) ;
+ }
+
+ Reference<XPropertySet> xSourceProps(xSource, UNO_QUERY);
+ if(xSourceProps.is())
+ {
+ Any aFormats = xSourceProps->getPropertyValue(C2U("NumberFormatsSupplier"));
+ if(aFormats.hasValue())
+ {
+ Reference<XNumberFormatsSupplier> xSuppl = *(Reference<util::XNumberFormatsSupplier>*) aFormats.getValue();
+ if(xSuppl.is())
+ {
+ Reference< XPropertySet > xSettings = xSuppl->getNumberFormatSettings();
+ Any aNull = xSettings->getPropertyValue(C2U("NullDate"));
+ if(aNull.hasValue())
+ aDBFormatData.aNullDate = *(util::Date*)aNull.getValue();
+ }
+ }
+ }
+ if(xSourceProps.is())
+ {
+ Any aFormats = xSourceProps->getPropertyValue(C2U("NumberFormatsSupplier"));
+ if(aFormats.hasValue())
+ {
+ Reference<XNumberFormatsSupplier> xSuppl = *(Reference<util::XNumberFormatsSupplier>*) aFormats.getValue();
+ if(xSuppl.is())
+ {
+ Reference< XPropertySet > xSettings = xSuppl->getNumberFormatSettings();
+ Any aNull = xSettings->getPropertyValue(C2U("NullDate"));
+ if(aNull.hasValue())
+ aDBFormatData.aNullDate = *(util::Date*)aNull.getValue();
+ }
+ }
+ }
+ SfxItemSet aSet(pView->GetPool(), RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE);
+ rSh.GetAttr( aSet );
+ if(SFX_ITEM_DEFAULT <= aSet.GetItemState(RES_CHRATR_LANGUAGE, TRUE))
+ {
+ Any aLoc;
+ const SfxPoolItem& rItem = aSet.Get(RES_CHRATR_LANGUAGE);
+ rItem.QueryValue(aLoc, MID_LANG_LOCALE);
+ aDBFormatData.aLocale = *(Locale*)aLoc.getValue();
+ }
+
+ String sDBContent(aDBData.sDataBaseName);
+ sDBContent += DB_DELIM;
+ sDBContent += aDBData.sDataTableName;
+ sDBContent += ';';
+ sDBContent += aDBData.sStatement;
+ SwDBNextSetField aNxtDBFld( (SwDBNextSetFieldType*)rSh.
+ GetFldType( 0, RES_DBNEXTSETFLD ),
+ C2S("1"), aEmptyStr, sDBContent );
+
+#else
+ SwDBNextSetField aNxtDBFld( (SwDBNextSetFieldType*)rSh.
+ GetFldType( 0, RES_DBNEXTSETFLD ),
+ C2S("1"), aEmptyStr, rSh.GetDBName() );
+#endif
+
+ BOOL bSetCrsr = TRUE;
+ USHORT n, nCols = aColArr.Count();
+ for( ULONG i = 0 ; ; ++i )
+ {
+#ifdef REPLACE_OFADBMGR
+ BOOL bBreak = FALSE;
+ try
+ {
+ if(bScrollable)
+ {
+ if(pSelList)
+ bBreak = !xResultSet->absolute((ULONG)pSelList->GetObject( i ) );
+ else if(!i)
+ bBreak = !xResultSet->first();
+ }
+ else if(pSelList)
+ {
+ ULONG nOldPos = i ? 0 : (ULONG)pSelList->GetObject( i -1 );
+ ULONG nPos = (ULONG)pSelList->GetObject( i );
+ long nDiff = nPos - nOldPos;
+ while(nDiff > 0 && !bBreak)
+ {
+ bBreak = !xResultSet->next();
+ nDiff--;
+ }
+ }
+ else if(!i)
+ bBreak = !xResultSet->next();
+ }
+ catch(...){ bBreak = TRUE; }
+ if(bBreak)
+ break;
+#else
+ if( pSelList )
+ {
+ ULONG nIndex = (ULONG)pSelList->GetObject( i );
+ // naechsten zu lesenden Datensatz ansteuern
+ pDBMgr->GotoRecord( nIndex );
+ }
+
+ const ODbRowRef& xRow = rParam.GetCursor()->GetRow();
+#endif
+ for( n = 0; n < nCols; ++n )
+ {
+ _DB_Column* pDBCol = aColArr[ n ];
+ String sIns;
+ switch( pDBCol->eColType )
+ {
+ case _DB_Column::DB_FILLTEXT:
+ sIns = *pDBCol->DB_ColumnData.pText;
+ break;
+
+ case _DB_Column::DB_SPLITPARA:
+ rSh.SplitNode();
+ // wenn nicht die gleiche Vorlage die Follow Vorlage
+ // ist, dann muss die ausgewaehlte neu gesetzt werden
+ if( pColl && &pColl->GetNextTxtFmtColl() != pColl )
+ rSh.SetTxtFmtColl( pColl );
+ break;
+
+ case _DB_Column::DB_COL_FIELD:
+ {
+ SwDBField* pFld = (SwDBField*)pDBCol->DB_ColumnData.
+ pField->Copy();
+ double nValue = DBL_MAX;
+#ifdef REPLACE_OFADBMGR
+ Reference< XColumnsSupplier > xColsSupp( xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ Any aCol = xCols->getByName(pDBCol->pColInfo->sColumn);
+ Reference< XPropertySet > xColumnProps;
+ if(aCol.hasValue())
+ xColumnProps = *(Reference< XPropertySet >*)aCol.getValue();
+ pFld->SetExpansion( SwNewDBMgr::GetDBField(
+ xColumnProps,
+ aDBFormatData,
+ &nValue ) );
+#else
+ pFld->SetExpansion( pDBMgr->ImportDBField(
+ pDBCol->pColInfo->nCol+1,
+ &xColDef, xRow, &nValue ) );
+#endif
+ if( DBL_MAX != nValue )
+ pFld->ChgValue( nValue, TRUE );
+ pFld->SetInitialized();
+
+ rSh.Insert( *pFld );
+ delete pFld;
+ }
+ break;
+
+ case _DB_Column::DB_COL_TEXT:
+ {
+ double nValue = DBL_MAX;
+#ifdef REPLACE_OFADBMGR
+ Reference< XColumnsSupplier > xColsSupp( xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ Any aCol = xCols->getByName(pDBCol->pColInfo->sColumn);
+ Reference< XPropertySet > xColumnProps;
+ if(aCol.hasValue())
+ xColumnProps = *(Reference< XPropertySet >*)aCol.getValue();
+ sIns = SwNewDBMgr::GetDBField(
+ xColumnProps,
+ aDBFormatData,
+ &nValue );
+#else
+ sIns = pDBMgr->ImportDBField(
+ pDBCol->pColInfo->nCol+1,
+ &xColDef, xRow, &nValue );
+#endif
+ if( pDBCol->DB_ColumnData.nFormat &&
+ DBL_MAX != nValue )
+ {
+ Color* pCol;
+ SvNumberFormatter& rNFmtr =
+ *rSh.GetNumberFormatter();
+ rNFmtr.GetOutputString( nValue,
+ pDBCol->DB_ColumnData.nFormat,
+ sIns, &pCol );
+ }
+ }
+ break;
+ }
+
+ if( sIns.Len() )
+ rSh.Insert( sIns );
+
+ if( bSetCrsr && sIns.Len() )
+ {
+ // zum Anfang und eine Mark setzen, damit der
+ // Cursor am Ende wieder auf Anfangsposition
+ // gesetzt werden kann.
+ BOOL bDoesUndo = rSh.DoesUndo();
+ rSh.DoUndo( FALSE );
+ rSh.SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ rSh.SetBookmark( KeyCode(), C2S("DB_Mark"), aEmptyStr, MARK );
+ rSh.SwCrsrShell::MovePara( fnParaCurr, fnParaEnd );
+ bSetCrsr = FALSE;
+ rSh.DoUndo( bDoesUndo );
+ }
+ }
+
+ if( !pSelList )
+ {
+#ifdef REPLACE_OFADBMGR
+ BOOL bNext = xResultSet->next();
+ if(!bNext)
+ break;
+#else
+ rParam.GetCursor()->Next();
+ rParam.CurrentPos()++;
+
+ if( rParam.GetCursor()->IsOffRange() )
+ break;
+#endif
+ }
+ else if( i+1 >= pSelList->Count() )
+ break;
+
+ if( aRbAsField.IsChecked() )
+ rSh.Insert( aNxtDBFld );
+
+ if( !rSh.IsSttPara() )
+ rSh.SwEditShell::SplitNode();
+
+ if( 10 == i )
+ pWait = new SwWait( *pView->GetDocShell(), TRUE );
+ }
+
+ if( !bSetCrsr && USHRT_MAX != (n = rSh.FindBookmark( C2S("DB_Mark" ))) )
+ {
+ BOOL bDoesUndo = rSh.DoesUndo();
+ rSh.DoUndo( FALSE );
+ rSh.GotoBookmark( n );
+ rSh.DelBookmark( n );
+ rSh.DoUndo( bDoesUndo );
+ }
+ }
+ }
+
+ // Daten ins INI-File schreiben
+ WriteUIToIni();
+
+ rSh.DoGroupUndo( bGroupUndo );
+ rSh.EndUndo( 0 );
+ rSh.EndAllAction();
+ delete pWait;
+}
+void SwInsertDBColAutoPilot::SetTabSet()
+{
+ SwWrtShell& rSh = pView->GetWrtShell();
+ const SfxPoolItem* pItem;
+
+ if( pTAutoFmt )
+ {
+ if( pTAutoFmt->IsFrame() )
+ {
+ // Umrandung kommt vom AutoFormat
+ pTblSet->ClearItem( RES_BOX );
+ pTblSet->ClearItem( SID_ATTR_BORDER_INNER );
+ }
+ if( pTAutoFmt->IsBackground() )
+ {
+ pTblSet->ClearItem( RES_BACKGROUND );
+ pTblSet->ClearItem( SID_ATTR_BRUSH_ROW );
+ pTblSet->ClearItem( SID_ATTR_BRUSH_TABLE );
+ }
+ }
+ else
+ {
+ // die Defaults wieder entfernen, es macht keinen Sinn sie zu setzen
+ SvxBrushItem aBrush( RES_BACKGROUND );
+ static USHORT __READONLY_DATA aIds[3] =
+ { RES_BACKGROUND, SID_ATTR_BRUSH_ROW, SID_ATTR_BRUSH_TABLE };
+ for( int i = 0; i < 3; ++i )
+ if( SFX_ITEM_SET == pTblSet->GetItemState( aIds[ i ],
+ FALSE, &pItem ) && *pItem == aBrush )
+ pTblSet->ClearItem( aIds[ i ] );
+ }
+
+ if( SFX_ITEM_SET == pTblSet->GetItemState( FN_PARAM_TABLE_NAME, FALSE,
+ &pItem ) && ((const SfxStringItem*)pItem)->GetValue() ==
+ rSh.GetTableFmt()->GetName() )
+ pTblSet->ClearItem( FN_PARAM_TABLE_NAME );
+
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+ rSh.SetMark();
+ rSh.MoveTable( fnTableCurr, fnTableEnd );
+
+ ::lcl_ItemSetToTableParam( *pTblSet, rSh );
+
+ rSh.ClearMark();
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+}
+
+ // Daten ins INI-File schreiben
+void SwInsertDBColAutoPilot::WriteUIToIni()
+{
+ if( !pConfig )
+ {
+ pConfig = new _DB_ColumnConfig;
+ pConfig->Initialize();
+ }
+
+ _DB_ColumnConfigData* pNewData = new _DB_ColumnConfigData;
+
+ //die Column-Daten Pointer gehen in den Besitz des pNewData!
+ pNewData->aDBColumns.Insert( &aDBColumns );
+ aDBColumns.Remove( (USHORT)0, aDBColumns.Count() );
+
+ pNewData->sDBName = pView->GetWrtShell().GetDBName();
+ pNewData->sEdit = aEdDbText.GetText();
+
+ String sTmp;
+ for( USHORT n = 0, nCnt = aLbTableCol.GetEntryCount(); n < nCnt; ++n )
+ ( sTmp += aLbTableCol.GetEntry( n ) ) += '\x0a';
+
+ if( sTmp.Len() )
+ pNewData->sTblList = sTmp;
+
+ if( sNoTmpl != (sTmp = aLbDbParaColl.GetSelectEntry()) )
+ pNewData->sTmplNm = sTmp;
+
+ if( pTAutoFmt )
+ pNewData->sTAutoFmtNm = pTAutoFmt->GetName();
+
+ pNewData->bIsTable = aRbAsTable.IsChecked();
+ pNewData->bIsField = aRbAsField.IsChecked();
+ pNewData->bIsHeadlineOn = aCbTableHeadon.IsChecked();
+ pNewData->bIsEmptyHeadln = aRbHeadlEmpty.IsChecked();
+
+
+ // jetzt noch die benutzerdefinierten Numberformatstrings erfragen,
+ // denn nur diese lassen sich "unabhaengig" speichern!
+ SvNumberFormatter& rNFmtr = *pView->GetWrtShell().GetNumberFormatter();
+ GetDocPoolNm( RES_POOLCOLL_STANDARD, sTmp );
+ for( n = 0; n < pNewData->aDBColumns.Count(); ++n )
+ {
+ SwInsDBColumn& rSet = *pNewData->aDBColumns[ n ];
+ if( rSet.bHasFmt && !rSet.bIsDBFmt )
+ {
+ const SvNumberformat* pNF = rNFmtr.GetEntry( rSet.nUsrNumFmt );
+ if( pNF )
+ {
+ rSet.sUsrNumFmt = pNF->GetFormatstring();
+ rSet.eUsrNumFmtLng = pNF->GetLanguage();
+ }
+ else
+ {
+ rSet.sUsrNumFmt = sTmp;
+ rSet.eUsrNumFmtLng = LANGUAGE_SYSTEM;
+ }
+ }
+ }
+
+ pConfig->SetData( pNewData );
+ pConfig->StoreConfig();
+}
+
+ // Daten aus dem INI-File lesen:
+void SwInsertDBColAutoPilot::ReadIniToUI()
+{
+ if( !pConfig )
+
+ {
+ pConfig = new _DB_ColumnConfig;
+ pConfig->Initialize();
+ }
+
+ _DB_ColumnConfigData aData;
+
+ //die Column-Daten Pointer werden kopiert, bleiben im Besitz vom Dialog!
+ aData.aDBColumns.Insert( &aDBColumns );
+ aData.sDBName = pView->GetWrtShell().GetDBName();
+
+ const _DB_ColumnConfigData* pFndData = pConfig->HasData( aData );
+ if( pFndData )
+ {
+ USHORT n = 0;
+ String sTmp( pFndData->sTblList );
+ if( sTmp.Len() )
+ {
+ do {
+ String sEntry( sTmp.GetToken( 0, '\x0a', n ) );
+ aLbTableCol.InsertEntry( sEntry );
+ aLbTblDbColumn.RemoveEntry( sEntry );
+ } while( n < sTmp.Len() );
+
+ if( !aLbTblDbColumn.GetEntryCount() )
+ {
+ aPbDbcolAllTo.Enable( FALSE );
+ aPbDbcolOneTo.Enable( FALSE );
+ }
+ aPbDbcolOneFrom.Enable( TRUE );
+ aPbDbcolAllFrom.Enable( TRUE );
+ }
+ aEdDbText.SetText( pFndData->sEdit );
+
+ sTmp = pFndData->sTmplNm;
+ if( sTmp.Len() )
+ aLbDbParaColl.SelectEntry( sTmp );
+ else
+ aLbDbParaColl.SelectEntryPos( 0 );
+
+ if( pTAutoFmt )
+ delete pTAutoFmt, pTAutoFmt = 0;
+ sTmp = pFndData->sTAutoFmtNm;
+ if( sTmp.Len() )
+ {
+ // dann erstmal die AutoFmt-Datei laden und das Autoformat suchen
+ SwTableAutoFmtTbl aAutoFmtTbl;
+ aAutoFmtTbl.Load();
+ for( USHORT n = aAutoFmtTbl.Count(); n; )
+ if( sTmp == aAutoFmtTbl[ --n ]->GetName() )
+ {
+ pTAutoFmt = new SwTableAutoFmt( *aAutoFmtTbl[ n ] );
+ break;
+ }
+ }
+
+ aRbAsTable.Check( pFndData->bIsTable );
+ aRbAsField.Check( pFndData->bIsField );
+ aRbAsText.Check( !pFndData->bIsTable && !pFndData->bIsField );
+
+ aCbTableHeadon.Check( pFndData->bIsHeadlineOn );
+ aRbHeadlColnms.Check( !pFndData->bIsEmptyHeadln );
+ aRbHeadlEmpty.Check( pFndData->bIsEmptyHeadln );
+
+ // jetzt noch die benutzerdefinierten Numberformat Strings in die
+ // Shell kopieren. Nur diese sind dann als ID verfuegbar
+ SvNumberFormatter& rNFmtr = *pView->GetWrtShell().GetNumberFormatter();
+ for( n = 0; n < aDBColumns.Count(); ++n )
+ {
+ SwInsDBColumn& rSet = *aDBColumns[ n ];
+ const SwInsDBColumn& rGet = *pFndData->aDBColumns[ n ];
+ if( rGet.bHasFmt && !rGet.bIsDBFmt )
+ {
+ rSet.bIsDBFmt = FALSE;
+ rSet.nUsrNumFmt = rNFmtr.GetEntryKey( rGet.sUsrNumFmt,
+ rGet.eUsrNumFmtLng );
+ if( NUMBERFORMAT_ENTRY_NOT_FOUND == rSet.nUsrNumFmt )
+ {
+ xub_StrLen nCheckPos;
+ short nType;
+ rNFmtr.PutEntry( (String&)rGet.sUsrNumFmt, nCheckPos, nType,
+ rSet.nUsrNumFmt, rGet.eUsrNumFmtLng );
+ }
+ }
+ }
+
+ // steht der Cursor in einer Tabelle, darf NIE Tabelle auswaehlbar sein
+ if( !aRbAsTable.IsEnabled() && aRbAsTable.IsChecked() )
+ aRbAsField.Check( TRUE );
+ }
+
+ aData.aDBColumns.Remove( (USHORT)0, aDBColumns.Count() );
+}
+
+/* */
+
+
+_DB_ColumnConfigData::~_DB_ColumnConfigData() {}
+
+BOOL _DB_ColumnConfigData::IsEqualDB( const _DB_ColumnConfigData& rCmp ) const
+{
+ // teste, ob die Daten von der gleiche Databanktabelle kommen und
+ // ob sie noch die gleichen Werte enthaelt.
+ BOOL bRet = FALSE;
+ if( sDBName == rCmp.sDBName &&
+ aDBColumns.Count() == rCmp.aDBColumns.Count() )
+ {
+ bRet = TRUE;
+ for( USHORT n = aDBColumns.Count(); n; )
+ {
+ --n;
+ const SwInsDBColumn& rCmp1 = *aDBColumns[ n ];
+ const SwInsDBColumn& rCmp2 = *rCmp.aDBColumns[ n ];
+ if( rCmp1.sColumn != rCmp2.sColumn ||
+ rCmp1.nCol != rCmp2.nCol ||
+ rCmp1.bHasFmt != rCmp2.bHasFmt )
+ {
+ bRet = FALSE;
+ break;
+ }
+ }
+ }
+ return bRet;
+}
+
+_DB_ColumnConfigData::_DB_ColumnConfigData( SvStream& rStream, UINT16 nVers )
+{
+ rStream.ReadByteString( sDBName ).ReadByteString(sEdit )
+ .ReadByteString( sTblList ).ReadByteString( sTmplNm )
+ .ReadByteString( sTAutoFmtNm );
+
+ UINT16 n;
+ rStream >> n;
+ if( n )
+ {
+#ifdef WITH_STREAM_CORRECT
+ ULONG nSttPos = rStream.Tell();
+ UINT16 nOffset;
+#endif
+ UINT16 nCol, eLng;
+ UINT8 nFlags;
+ String sNm, sUsrFmt;
+
+ for( UINT16 i = 0; i < n; ++i )
+ {
+#ifdef WITH_STREAM_CORRECT
+ rStream >> nOffset;
+#endif
+ rStream.ReadByteString( sNm );
+ rStream >> nCol
+ >> nFlags;
+ rStream.ReadByteString( sUsrFmt );
+ rStream >> eLng;
+
+ SwInsDBColumn* pNew = new SwInsDBColumn( sNm, nCol );
+ pNew->sUsrNumFmt = sUsrFmt;
+ pNew->eUsrNumFmtLng = (LanguageType)eLng;
+
+ pNew->bHasFmt = 0 != (nFlags & 0x1);
+ pNew->bIsDBFmt = 0 != (nFlags & 0x2);
+
+ aDBColumns.Insert( pNew, i );
+
+#ifdef WITH_STREAM_CORRECT
+ // muss etwas uebersprungen werden?
+ ULONG nCurPos = rStream.Tell();
+ if( nCurPos != ( nSttPos + nOffset ))
+ rStream.Seek( nCurPos = ( nSttPos + nOffset ) );
+ nSttPos = nCurPos;
+#endif
+ }
+ }
+
+ rStream >> n;
+ bIsTable = 0 != (n & 0x01);
+ bIsField = 0 != (n & 0x02);
+ bIsHeadlineOn = 0 != (n & 0x04);
+ bIsEmptyHeadln = 0 != (n & 0x08);
+
+/*
+ if( nVers > DBCOLUMN_CONFIG_VERSION1 )
+ {
+ }
+*/
+}
+
+void _DB_ColumnConfigData::Save( SvStream& rStream ) const
+{
+ rStream.WriteByteString( sDBName ).WriteByteString( sEdit )
+ .WriteByteString( sTblList ).WriteByteString( sTmplNm )
+ .WriteByteString( sTAutoFmtNm );
+
+ UINT16 n = aDBColumns.Count();
+ rStream << n;
+ if( n )
+ {
+#ifdef WITH_STREAM_CORRECT
+ ULONG nCurPos, nSttPos = rStream.Tell();
+#endif
+ for( UINT16 i = 0; i < n; ++i )
+ {
+#ifdef WITH_STREAM_CORRECT
+ rStream << (UINT16)0;
+#endif
+
+ const SwInsDBColumn& rCol = *aDBColumns[ i ];
+ UINT8 nFlags = 0;
+ if( rCol.bHasFmt ) nFlags |= 0x1;
+ if( rCol.bIsDBFmt ) nFlags |= 0x2;
+
+ rStream.WriteByteString( rCol.sColumn )
+ << (UINT16)rCol.nCol
+ << nFlags;
+ rStream.WriteByteString( rCol.sUsrNumFmt )
+ << (UINT16)rCol.eUsrNumFmtLng
+ ;
+
+#ifdef WITH_STREAM_CORRECT
+ nCurPos = rStream.Tell();
+ rStream.Seek( nSttPos );
+ rStream << (UINT16)(nCurPos - nSttPos);
+ rStream.Seek( nCurPos );
+ nSttPos = nCurPos;
+#endif
+ }
+ }
+
+ n = 0;
+ if( bIsTable ) n |= 0x01;
+ if( bIsField ) n |= 0x02;
+ if( bIsHeadlineOn ) n |= 0x04;
+ if( bIsEmptyHeadln ) n |= 0x08;
+ rStream << n;
+}
+
+
+
+
+_DB_ColumnConfig::_DB_ColumnConfig()
+ : SfxConfigItem( CFG_INSERT_DBCOLUMN_ITEM )
+{
+ memset( &aData, 0, sizeof( aData ));
+}
+
+_DB_ColumnConfig::~_DB_ColumnConfig()
+{
+ for( USHORT n = DBCOLUMN_MAXDATA; n; )
+ delete aData[ --n ];
+}
+
+void _DB_ColumnConfig::UseDefault()
+{
+ for( USHORT n = DBCOLUMN_MAXDATA; n; )
+ delete aData[ --n ];
+ SfxConfigItem::UseDefault();
+}
+
+String _DB_ColumnConfig::GetName() const
+{
+ return SW_RESSTR( STR_CFG_INSERT_DBCOLUMN );
+}
+
+int _DB_ColumnConfig::Load( SvStream& rStream )
+{
+ int nRet = SfxConfigItem::ERR_OK;
+
+ SetDefault( FALSE );
+ UINT16 nVers;
+ rStream >> nVers;
+ if( DBCOLUMN_CONFIG_VERSION1 >= nVers )
+ {
+ UINT16 n, nCnt;
+ CharSet eOldCharSet = rStream.GetStreamCharSet();
+ rStream >> n >> nCnt;
+
+ if( nCnt )
+ {
+ rStream.SetStreamCharSet( (CharSet)n );
+
+#ifdef WITH_STREAM_CORRECT
+ ULONG nSttPos = rStream.Tell();
+#endif
+ for( UINT16 i = 0; i < nCnt; ++i )
+ {
+#ifdef WITH_STREAM_CORRECT
+ rStream >> n;
+#endif
+ if( i < DBCOLUMN_MAXDATA )
+ aData[ i ] = new _DB_ColumnConfigData( rStream, nVers );
+
+#ifdef WITH_STREAM_CORRECT
+ // muss etwas uebersprungen werden?
+ ULONG nCurPos = rStream.Tell();
+ if( nCurPos != ( nSttPos + n ))
+ rStream.Seek( nCurPos = ( nSttPos + n ) );
+ nSttPos = nCurPos;
+#endif
+ }
+ rStream.SetStreamCharSet( eOldCharSet );
+ }
+ }
+ else
+ nRet = SfxConfigItem::WARNING_VERSION;
+
+ return nRet;
+}
+
+BOOL _DB_ColumnConfig::Store( SvStream& rStream )
+{
+ CharSet eOldCharSet = rStream.GetStreamCharSet();
+ rtl_TextEncoding eCurCharSet = ::gsl_getSystemTextEncoding();
+ rStream.SetStreamCharSet( eCurCharSet );
+
+ rStream << (UINT16)DBCOLUMN_CONFIG_VERSION
+ << (UINT16)eCurCharSet;
+
+ USHORT nCnt = DBCOLUMN_MAXDATA;
+ for( USHORT n = 0; n < nCnt; ++n )
+ if( !aData[ n ] )
+ {
+ nCnt = n;
+ break;
+ }
+
+ rStream << (UINT16)nCnt;
+ if( nCnt )
+ {
+#ifdef WITH_STREAM_CORRECT
+ ULONG nCurPos, nSttPos = rStream.Tell();
+#endif
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+#ifdef WITH_STREAM_CORRECT
+ rStream << (UINT16)0;
+#endif
+
+ aData[ n ]->Save( rStream );
+
+#ifdef WITH_STREAM_CORRECT
+ nCurPos = rStream.Tell();
+ rStream.Seek( nSttPos );
+ rStream << (UINT16)(nCurPos - nSttPos);
+ rStream.Seek( nCurPos );
+ nSttPos = nCurPos;
+#endif
+ }
+ }
+ rStream.SetStreamCharSet( eOldCharSet );
+
+ return SfxConfigItem::ERR_OK;
+}
+
+const _DB_ColumnConfigData* _DB_ColumnConfig::HasData(
+ const _DB_ColumnConfigData& rData ) const
+{
+ const _DB_ColumnConfigData* pRet = 0;
+ for( USHORT n = 0; n < DBCOLUMN_MAXDATA; ++n )
+ if( aData[ n ] && aData[ n ]->IsEqualDB( rData ))
+ {
+ pRet = aData[ n ];
+ break;
+ }
+ return pRet;
+}
+
+void _DB_ColumnConfig::SetData( _DB_ColumnConfigData* pData )
+{
+ ASSERT( pData, "kein pData ans SetData uebergeben" );
+ if( pData )
+ {
+ USHORT n, nDelPos = DBCOLUMN_MAXDATA-1;
+ for( n = 0; n < DBCOLUMN_MAXDATA; ++n )
+ if( !aData[ n ] || aData[ n ]->IsEqualDB( *pData ))
+ {
+ nDelPos = n;
+ break;
+ }
+
+ // loesche den Eintrag an der DelPos und verschiebe alle
+ // vorhergehenden eine Position runter. Der aktuelle wird
+ // dann wieder am Anfang eingefuegt.
+ delete aData[ nDelPos ];
+ if( nDelPos )
+ memmove( aData+1, aData, nDelPos * sizeof( aData[ 0 ] ));
+ aData[ 0 ] = pData;
+
+ SetDefault( FALSE );
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.40 2000/09/18 16:05:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.39 2000/07/27 21:15:40 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.38 2000/07/10 07:02:55 os
+ replace ofadbmgr
+
+ Revision 1.37 2000/07/06 07:59:10 os
+ replace ofadbmgr
+
+ Revision 1.36 2000/07/05 08:21:49 os
+ Replace ofadbmgr
+
+ Revision 1.35 2000/05/26 07:21:28 os
+ old SW Basic API Slots removed
+
+ Revision 1.34 2000/05/23 18:11:01 jp
+ Bugfixes for Unicode
+
+ Revision 1.33 2000/04/20 12:54:38 os
+ GetName() returns String&
+
+ Revision 1.32 2000/04/11 08:03:52 os
+ UNICODE
+
+ Revision 1.31 2000/03/30 13:25:58 os
+ UNO III
+
+ Revision 1.30 2000/02/11 14:44:18 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.29 1999/09/24 13:50:13 os
+ chg: ODbRow/ODbVariant
+
+ Revision 1.28 1999/08/10 08:31:24 JP
+ Bug #67040#: data to text - set double to defined value
+
+
+ Rev 1.27 10 Aug 1999 10:31:24 JP
+ Bug #67040#: data to text - set double to defined value
+
+ Rev 1.26 08 Jul 1999 16:07:52 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.25 08 Jul 1999 09:13:50 MA
+ limit wait cursor to document window
+
+ Rev 1.24 18 Jun 1999 14:03:36 JP
+ Bug #67040#: DataToDoc - clear ValueItem in TableSet
+
+ Rev 1.23 16 Jun 1999 22:05:08 JP
+ Bug #66996##66995#: DataToDoc - set userformat flag at field, use userformat for text
+
+ Rev 1.22 09 Jun 1999 16:25:46 JP
+ Bug #66735#: TblFmtHdl: no 0 pointer access
+
+ Rev 1.21 11 May 1999 21:48:20 JP
+ Task #66127#: Methoden rund ums Lineal verbessert und Schnittstellen veraendert/erweitert
+
+ Rev 1.20 29 Apr 1999 09:59:04 JP
+ Bug #65544#: Spalten ggfs. auch vom Bereich besorgen
+
+ Rev 1.19 22 Feb 1999 11:50:02 JP
+ fuer Bug #61545#: Code optimiert
+
+ Rev 1.18 17 Feb 1999 08:39:24 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+ Rev 1.17 30 Nov 1998 17:31:02 OM
+ #59770# Tabellenoptionen: Ueberschrift nur auf erster Seite
+
+ Rev 1.16 27 Nov 1998 14:49:56 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.15 11 Nov 1998 16:49:36 OM
+ #58158# Einfuegeoptionen fuer Tabellen
+
+ Rev 1.14 10 Nov 1998 19:18:34 JP
+ Task #58158#: InsertTable/TextToTable - Flags fuer HdlRepeat/LayoutSplit mitgeben
+
+ Rev 1.13 08 Sep 1998 16:51:16 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.12 15 Jul 1998 09:52:26 JP
+ Bug #52951#: TabellenEigenschaftenButton nur enablen wenn Spalten ausgewaehlt sind
+
+ Rev 1.11 21 Jun 1998 14:23:30 JP
+ Feld in FormatGroupBox anzeigen, Format richtig zuweisen
+
+ Rev 1.10 19 Jun 1998 16:19:24 TJ
+ include
+
+ Rev 1.9 17 Jun 1998 13:50:56 JP
+ Bug #50989#: DataToDoc - Absatztvorlagen mit anderem Follow beachten; GPF bei Eigenschaften ohne Eintraege
+
+ Rev 1.8 15 Jun 1998 12:27:18 OM
+ #51009# Numberformatter-Listbox ViewPtr reinreichen
+
+ Rev 1.7 09 Jun 1998 13:05:34 JP
+ Bug #50993# ReadIniToUI - bei disabled'ten InTable wird jetzt auch InFelder gecheckt
+
+ Rev 1.6 09 Jun 1998 12:18:16 JP
+ Bug #50989# DataToDoc - Vorlagen setzen ist nicht so einfach moeglich
+
+ Rev 1.5 02 Jun 1998 10:39:20 JP
+ TabellenAutoFormat aus der Konf. erzeugen
+
+ Rev 1.4 29 May 1998 19:08:58 JP
+ Tabellen Eigenschaften koennen jetzt eingestellt werden
+
+ Rev 1.3 28 May 1998 17:05:58 JP
+ Handling zum einstellen der Nummernformate geaendert
+
+ Rev 1.2 27 May 1998 19:48:42 JP
+ kleinere Verbesserungen
+
+ Rev 1.1 25 May 1998 09:49:32 JP
+ Tabelle formatieren erstmal abgeklemmt, bis der Dialog auch ohne Tabelle benutzbar ist
+
+ Rev 1.0 20 May 1998 21:35:22 JP
+ Autopilot fuers Datenbankspalten einfuegen als Text/Felder/Tabelle
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/dbui/dbinsdlg.hrc b/sw/source/ui/dbui/dbinsdlg.hrc
new file mode 100644
index 000000000000..df30feaea82c
--- /dev/null
+++ b/sw/source/ui/dbui/dbinsdlg.hrc
@@ -0,0 +1,107 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbinsdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _DBINSDLG_HRC
+#define _DBINSDLG_HRC
+
+
+#define FT_INSERT_DATA 1
+#define RB_AS_TABLE 2
+#define RB_AS_FIELD 3
+#define RB_AS_TEXT 4
+#define BT_OK 5
+#define BT_CANCEL 6
+#define BT_HELP 7
+#define GB_SELECTION 8
+#define FT_DB_COLUMN 10
+#define GB_DB_FORMAT 11
+#define RB_DBFMT_FROM_DB 12
+#define RB_DBFMT_FROM_USR 13
+#define LB_DBFMT_FROM_USR 14
+
+/* ------------- Page Text/Field ------------------ */
+#define LB_TXT_DB_COLUMN 15
+
+#define PB_DBCOL_TOEDIT 16
+#define ED_DB_TEXT 17
+#define FT_DB_PARA_COLL 18
+#define LB_DB_PARA_COLL 19
+
+/* ------------- Page Table -------------------- */
+#define LB_TBL_DB_COLUMN 20
+
+#define PB_DBCOL_ALL_TO 21
+#define PB_DBCOL_ONE_TO 22
+#define PB_DBCOL_ONE_FROM 23
+#define PB_DBCOL_ALL_FROM 24
+#define FT_TABLE_COL 25
+#define LB_TABLE_COL 26
+#define GB_TABLE_HEAD 27
+#define CB_TABLE_HEADON 28
+#define RB_HEADL_COLNMS 29
+#define RB_HEADL_EMPTY 30
+#define PB_TBL_FORMAT 31
+#define PB_TBL_AUTOFMT 32
+
+#define STR_NOTEMPL 33
+
+
+#endif
diff --git a/sw/source/ui/dbui/dbinsdlg.src b/sw/source/ui/dbui/dbinsdlg.src
new file mode 100644
index 000000000000..e7634662a15e
--- /dev/null
+++ b/sw/source/ui/dbui/dbinsdlg.src
@@ -0,0 +1,666 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbinsdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "dbinsdlg.hrc"
+#include "dbui.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_AP_INSERT_DB_SEL
+{
+ HelpID = HID_AP_INSERT_DB_SEL ;
+ OUTPUTSIZE = TRUE ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 291 , 189 ) ;
+ Text = "Datenbankspalten einfügen" ;
+ Text [ ENGLISH ] = "Insert database columns" ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ SVLOOK = TRUE ;
+ FixedText FT_INSERT_DATA
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 66 , 10 ) ;
+ Text = "Daten einfügen als:" ;
+ Text [ ENGLISH ] = "Insert data as:" ;
+ Text [ english_us ] = "Insert data as:" ;
+ Text [ portuguese_brazilian ] = "Daten einfügen als:" ;
+ Text [ swedish ] = "Infoga data som:" ;
+ Text [ danish ] = "Indsæt data som:" ;
+ Text [ italian ] = "Inserisci file come:" ;
+ Text [ spanish ] = "Insertar datos como:" ;
+ Text [ french ] = "Insertion des données :" ;
+ Text [ dutch ] = "Data invoegen als" ;
+ Text [ portuguese ] = "Inserir dados como:" ;
+ Text[ chinese_simplified ] = "²åÈëÊý¾ÝµÄ·½Ê½£º";
+ Text[ russian ] = "Âñòàâèòü äàííûå êàê:";
+ Text[ polish ] = "Wstaw dane jako:";
+ Text[ japanese ] = "ÃÞ°À‚Ì‘}“ü:";
+ Text[ chinese_traditional ] = "´¡¤J¸ê®Æªº¤è¦¡¡G";
+ Text[ arabic ] = "ÅÏÑÇÌ ÇáÈíÇäÇÊ ßÜ:";
+ Text[ dutch ] = "Data invoegen als";
+ Text[ chinese_simplified ] = "²åÈëÊý¾ÝµÄ·½Ê½£º";
+ Text[ greek ] = "ÅéóáãùãÞ äåäïìÝíùí ùò:";
+ Text[ korean ] = "·Î µ¥ÀÌÅÍ »ðÀÔ:";
+ Text[ turkish ] = "Eklenecek verilerin türü:";
+ };
+ RadioButton RB_AS_TABLE
+ {
+ Pos = MAP_APPFONT ( 80 , 6 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "T~abelle" ;
+ Text [ ENGLISH ] = "T~able" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text [ portuguese ] = "T~abela" ;
+ Text [ english_us ] = "T~able" ;
+ Text [ portuguese_brazilian ] = "T~abelle" ;
+ Text [ swedish ] = "T~abell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ italian ] = "T~abella" ;
+ Text [ spanish ] = "T~abla" ;
+ Text [ french ] = "T~able" ;
+ Text [ dutch ] = "T~abel" ;
+ Text[ chinese_simplified ] = "±í¸ñ(~A)";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\(~A)";
+ Text[ chinese_traditional ] = "ªí®æ(~A)";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ dutch ] = "T~abel";
+ Text[ chinese_simplified ] = "±í¸ñ(~A)";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥(~A)";
+ Text[ turkish ] = "T~ablo";
+ };
+ RadioButton RB_AS_FIELD
+ {
+ Pos = MAP_APPFONT ( 145 , 6 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Felder" ;
+ Text [ ENGLISH ] = "~Fields" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~Campos" ;
+ Text [ english_us ] = "~Fields" ;
+ Text [ portuguese_brazilian ] = "~Felder" ;
+ Text [ swedish ] = "~Fält" ;
+ Text [ danish ] = "Felter" ;
+ Text [ italian ] = "~Campi" ;
+ Text [ spanish ] = "~Campos" ;
+ Text [ french ] = "~Champs" ;
+ Text [ dutch ] = "~Velden" ;
+ Text[ chinese_simplified ] = "×Ö¶Î(~F)";
+ Text[ russian ] = "Ïîëÿ";
+ Text[ polish ] = "Pola";
+ Text[ japanese ] = "̨°ÙÄÞ(~F)";
+ Text[ chinese_traditional ] = "Äæ¦ì(~F)";
+ Text[ arabic ] = "ÍÞæá";
+ Text[ dutch ] = "~Velden";
+ Text[ chinese_simplified ] = "×Ö¶Î(~F)";
+ Text[ greek ] = "Ðåäßá";
+ Text[ korean ] = "Çʵå(~F)";
+ Text[ turkish ] = "~Alanlar";
+ };
+ RadioButton RB_AS_TEXT
+ {
+ Pos = MAP_APPFONT ( 210 , 6 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Text" ;
+ Text [ ENGLISH ] = "~Text" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~Texto" ;
+ Text [ english_us ] = "~Text" ;
+ Text [ portuguese_brazilian ] = "~Text" ;
+ Text [ swedish ] = "~Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ italian ] = "~Testo" ;
+ Text [ spanish ] = "~Texto" ;
+ Text [ french ] = "~Texte" ;
+ Text [ dutch ] = "~Tekst" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö(~T)";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä(~T)";
+ Text[ chinese_traditional ] = "¤å¦r(~T)";
+ Text[ arabic ] = "äÕ";
+ Text[ dutch ] = "~Tekst";
+ Text[ chinese_simplified ] = "ÎÄ×Ö(~T)";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®(~T)";
+ Text[ turkish ] = "~Metin";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 123 , 172 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 179 , 172 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 235 , 172 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_SELECTION
+ {
+ Pos = MAP_APPFONT ( 6 , 19 ) ;
+ Size = MAP_APPFONT ( 279 , 150 ) ;
+ /* wird dynamisch gesetzt! */
+ Text = "" ;
+ };
+ FixedText FT_DB_COLUMN
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 72 , 10 ) ;
+ Text = "Datenbank~spalten" ;
+ Text [ ENGLISH ] = "Database columns" ;
+ Text [ english_us ] = "Database ~columns" ;
+ Text [ portuguese_brazilian ] = "Datenbank~spalten" ;
+ Text [ swedish ] = "Databa~skolumner" ;
+ Text [ danish ] = "Databasekolonner" ;
+ Text [ italian ] = "Colonne database" ;
+ Text [ spanish ] = "~Columnas de la base de datos" ;
+ Text [ french ] = "Colonnes de ~B.D." ;
+ Text [ dutch ] = "Database~kolommen" ;
+ Text [ portuguese ] = "~Colunas da base de dados" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿âÀ¸(~C)";
+ Text[ russian ] = "Êîëîíêè áàçû äàííûõ";
+ Text[ polish ] = "Kolumny w bazie danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½—ñ(~C)";
+ Text[ chinese_traditional ] = "¸ê®Æ®wÄæ(~C)";
+ Text[ arabic ] = "ÃÚãÏÉ ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ dutch ] = "Database~kolommen";
+ Text[ chinese_simplified ] = "Êý¾Ý¿âÀ¸(~C)";
+ Text[ greek ] = "ÓôÞëåò âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º ¿­(~C)";
+ Text[ turkish ] = "Veritabaný ~sütunlarý";
+ };
+ GroupBox GB_DB_FORMAT
+ {
+ Pos = MAP_APPFONT ( 12 , 121 ) ;
+ Size = MAP_APPFONT ( 99 , 42 ) ;
+ Text = "For~mat" ;
+ Text [ ENGLISH ] = "For~mat" ;
+ Text [ english_us ] = "For~mat" ;
+ Text [ portuguese_brazilian ] = "For~mat" ;
+ Text [ swedish ] = "For~mat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "For~mato" ;
+ Text [ spanish ] = "For~mato" ;
+ Text [ french ] = "For~mat" ;
+ Text [ dutch ] = "Op~maak" ;
+ Text [ portuguese ] = "For~mato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~M)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~M)";
+ Text[ chinese_traditional ] = "®æ¦¡(~M)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ dutch ] = "Op~maak";
+ Text[ chinese_simplified ] = "¸ñʽ(~M)";
+ Text[ greek ] = "~ÌïñöÞ";
+ Text[ korean ] = "¼­½Ä(~M)";
+ Text[ turkish ] = "For~mat";
+ };
+ RadioButton RB_DBFMT_FROM_DB
+ {
+ Pos = MAP_APPFONT ( 15 , 133 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "A~us Datenbank" ;
+ Text [ ENGLISH ] = "From database" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text [ portuguese ] = "Da ~base de dados" ;
+ Text [ english_us ] = "From ~database" ;
+ Text [ portuguese_brazilian ] = "A~us Datenbank" ;
+ Text [ swedish ] = "Från ~databas" ;
+ Text [ danish ] = "Fra database" ;
+ Text [ italian ] = "Dal ~database" ;
+ Text [ spanish ] = "~De la base de datos" ;
+ Text [ french ] = "De la ~B.D." ;
+ Text [ dutch ] = "U~it databank" ;
+ Text[ chinese_simplified ] = "´ÓÊý¾Ý¿â(~D)";
+ Text[ russian ] = "Èç áàçû äàííûõ";
+ Text[ polish ] = "Z bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚©‚ç(~D)";
+ Text[ chinese_traditional ] = "±q¸ê®Æ®w(~D)";
+ Text[ arabic ] = "ãä ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ dutch ] = "U~it databank";
+ Text[ chinese_simplified ] = "´ÓÊý¾Ý¿â(~D)";
+ Text[ greek ] = "Áðü âÜóç äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º·ÎºÎÅÍ(~D)";
+ Text[ turkish ] = "Kaynak veritabaný";
+ };
+ RadioButton RB_DBFMT_FROM_USR
+ {
+ Pos = MAP_APPFONT ( 15 , 148 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ TabStop = TRUE ;
+ };
+ ListBox LB_DBFMT_FROM_USR
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 30 , 146 ) ;
+ Size = MAP_APPFONT ( 75 , 44 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ /* -------------- Page Text / Fields -------------------------------- */
+ ListBox LB_TXT_DB_COLUMN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 41 ) ;
+ Size = MAP_APPFONT ( 75 , 70 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ };
+ PushButton PB_DBCOL_TOEDIT
+ {
+ Pos = MAP_APPFONT ( 92 , 99 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ Text = "=>" ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ };
+ MultiLineEdit ED_DB_TEXT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 118 , 41 ) ;
+ Size = MAP_APPFONT ( 161 , 70 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ VScroll = TRUE ;
+ HScroll = TRUE ;
+ Hide = TRUE ;
+ IgnoreTab = TRUE;
+ };
+ FixedText FT_DB_PARA_COLL
+ {
+ Pos = MAP_APPFONT ( 118 , 133 ) ;
+ Size = MAP_APPFONT ( 58 , 10 ) ;
+ TEXT = "Absat~zvorlage:" ;
+ TEXT [ English ] = "Paragraph Style:" ;
+ TEXT [ norwegian ] = "Avsnittsmal:" ;
+ TEXT [ italian ] = "Modello di paragrafo:" ;
+ TEXT [ portuguese_brazilian ] = "(Estilo de Parágrafo:" ;
+ TEXT [ portuguese ] = "Estilo de ~parágrafo:" ;
+ TEXT [ finnish ] = "Kappaletyyli:" ;
+ TEXT [ danish ] = "Afsnitstypografi:" ;
+ TEXT [ french ] = "~Style de paragraphe :" ;
+ TEXT [ swedish ] = "Sty~ckeformatmall:" ;
+ TEXT [ dutch ] = "~Alinea-opmaakprofiel:" ;
+ TEXT [ spanish ] = "~Estilo de párrafo:" ;
+ TEXT [ english_us ] = "Paragraph ~Style:" ;
+ Hide = TRUE ;
+ TEXT[ chinese_simplified ] = "¶ÎÂäÑùʽ(~S)£º";
+ TEXT[ russian ] = "Ñòèëü àáçàöà:";
+ TEXT[ polish ] = "Styl akapitu:";
+ TEXT[ japanese ] = "’i—Ž½À²Ù:(~S)";
+ TEXT[ chinese_traditional ] = "¬q¸¨¼Ë¦¡(~S)";
+ TEXT[ arabic ] = "äãØ ÝÞÑÉ:";
+ TEXT[ dutch ] = "~Alinea-opmaakprofiel:";
+ TEXT[ chinese_simplified ] = "¶ÎÂäÑùʽ(~S)£º";
+ TEXT[ greek ] = "Ðñüôõðo ðáñáãñÜöïõ:";
+ TEXT[ korean ] = "´Ü¶ô À¯Çü:(~S)";
+ TEXT[ turkish ] = "Paragraf b~içimi:";
+ };
+ ListBox LB_DB_PARA_COLL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 182 , 131 ) ;
+ Size = MAP_APPFONT ( 90 , 59 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Hide = TRUE ;
+ Sort = TRUE ;
+ };
+ /* -------------- Page Table ---------------------------------------- */
+ ListBox LB_TBL_DB_COLUMN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 41 ) ;
+ Size = MAP_APPFONT ( 75 , 70 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_DBCOL_ALL_TO
+ {
+ Pos = MAP_APPFONT ( 92 , 41 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ Text = "~=>>" ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_DBCOL_ONE_TO
+ {
+ Pos = MAP_APPFONT ( 92 , 56 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ Text = "-~>" ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_DBCOL_ONE_FROM
+ {
+ Pos = MAP_APPFONT ( 92 , 84 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ Text = "<~-" ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_DBCOL_ALL_FROM
+ {
+ Pos = MAP_APPFONT ( 92 , 99 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ Text = "~<<=" ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_TABLE_COL
+ {
+ Pos = MAP_APPFONT ( 118 , 31 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Tabe~lle" ;
+ Text [ ENGLISH ] = "Tab~le" ;
+ Text [ english_us ] = "Tab~le" ;
+ Text [ portuguese_brazilian ] = "Tabe~lle" ;
+ Text [ swedish ] = "Tabe~ll" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ italian ] = "Tabe~lla" ;
+ Text [ spanish ] = "Tab~la" ;
+ Text [ french ] = "Tab~le" ;
+ Text [ dutch ] = "Tabe~l" ;
+ Text [ portuguese ] = "Ta~bela" ;
+ Text[ chinese_simplified ] = "±í¸ñ(~L)";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\(~L)";
+ Text[ chinese_traditional ] = "ªí®æ(~L)";
+ Text[ arabic ] = "ÇáÌÏæá";
+ Text[ dutch ] = "Tabe~l";
+ Text[ chinese_simplified ] = "±í¸ñ(~L)";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥(~L)";
+ Text[ turkish ] = "~Tablo";
+ };
+ ListBox LB_TABLE_COL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 118 , 42 ) ;
+ Size = MAP_APPFONT ( 75 , 70 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_TABLE_HEAD
+ {
+ Pos = MAP_APPFONT ( 199 , 41 ) ;
+ Size = MAP_APPFONT ( 80 , 58 ) ;
+ Text = "Tabellenüberschrift" ;
+ Text [ ENGLISH ] = "Table headline" ;
+ Text [ english_us ] = "Table heading" ;
+ Text [ portuguese_brazilian ] = "Tabellenüberschrift" ;
+ Text [ swedish ] = "Tabellöverskrift" ;
+ Text [ danish ] = "Tabeloverskrift" ;
+ Text [ italian ] = "Titolo tabella" ;
+ Text [ spanish ] = "Encabezado de la tabla" ;
+ Text [ french ] = "Titre de la table" ;
+ Text [ dutch ] = "Tabelopschrift" ;
+ Text [ portuguese ] = "Título da tabela" ;
+ Text[ chinese_simplified ] = "±í¸ñ±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê òàáëèöû";
+ Text[ polish ] = "Nag³ówek tabeli";
+ Text[ japanese ] = "•\\‚ÌŒ©o‚µ";
+ Text[ chinese_traditional ] = "ªí®æ¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÇáÌÏÇæá";
+ Text[ dutch ] = "Tabelopschrift";
+ Text[ chinese_simplified ] = "±í¸ñ±êÌâ";
+ Text[ greek ] = "Åðéêåöáëßäá ðßíáêá";
+ Text[ korean ] = "Ç¥ Á¦¸ñ";
+ Text[ turkish ] = "Tablo baþlýðý";
+ };
+ CheckBox CB_TABLE_HEADON
+ {
+ Pos = MAP_APPFONT ( 205 , 56 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "E~inschalten" ;
+ Text [ ENGLISH ] = "On" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text [ english_us ] = "~On" ;
+ Text [ portuguese_brazilian ] = "E~inschalten" ;
+ Text [ swedish ] = "~På" ;
+ Text [ danish ] = "Aktiver" ;
+ Text [ italian ] = "Attiva" ;
+ Text [ spanish ] = "~Activar" ;
+ Text [ french ] = "~Activer" ;
+ Text [ dutch ] = "In~schakelen" ;
+ Text [ portuguese ] = "~Activar" ;
+ Text[ chinese_simplified ] = "¼¤»î(~O)";
+ Text[ russian ] = "Âêëþ÷èòü";
+ Text[ polish ] = "W³¹cz";
+ Text[ japanese ] = "µÝ(~O)";
+ Text[ chinese_traditional ] = "¿E¬¡(~O)";
+ Text[ arabic ] = "ÊÔÛíá";
+ Text[ dutch ] = "In~schakelen";
+ Text[ chinese_simplified ] = "¼¤»î(~O)";
+ Text[ greek ] = "Åíåñãïðïßçóç";
+ Text[ korean ] = "È°¼º(~O)";
+ Text[ turkish ] = "Çalýþtýr";
+ };
+ RadioButton RB_HEADL_COLNMS
+ {
+ Pos = MAP_APPFONT ( 217 , 72 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "S~paltenamen" ;
+ Text [ English ] = "Column name" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text [ portuguese ] = "~Nome da coluna" ;
+ Text [ english_us ] = "Column ~name" ;
+ Text [ portuguese_brazilian ] = "S~paltenamen" ;
+ Text [ swedish ] = "Kolumn~namn" ;
+ Text [ danish ] = "Kolonnenavn" ;
+ Text [ italian ] = "Nomi colonne" ;
+ Text [ spanish ] = "~Nombres de columnas" ;
+ Text [ french ] = "Noms ~de colonne" ;
+ Text [ dutch ] = "K~olomnaam" ;
+ Text[ chinese_simplified ] = "À¸Ãû(~N)";
+ Text[ russian ] = "Èìåíà êîëîíîê";
+ Text[ polish ] = "Nazwa kolumny";
+ Text[ japanese ] = "—ñ–¼(~N)";
+ Text[ chinese_traditional ] = "Äæ¦W(~N)";
+ Text[ arabic ] = "ÃÓãÇÁ ÇáÃÚãÏÉ";
+ Text[ dutch ] = "K~olomnaam";
+ Text[ chinese_simplified ] = "À¸Ãû(~N)";
+ Text[ greek ] = "Ïíüìáôá óôÞëçò";
+ Text[ korean ] = "¿­ À̸§(~N)";
+ Text[ turkish ] = "~Sütun adý";
+ };
+ RadioButton RB_HEADL_EMPTY
+ {
+ Pos = MAP_APPFONT ( 217 , 87 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "lee~r" ;
+ Text [ English ] = "empty" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~vazio" ;
+ Text [ english_us ] = "~empty" ;
+ Text [ portuguese_brazilian ] = "lee~r" ;
+ Text [ swedish ] = "t~om" ;
+ Text [ danish ] = "tom" ;
+ Text [ italian ] = "v~uoto" ;
+ Text [ spanish ] = "~vacío" ;
+ Text [ french ] = "~Vide" ;
+ Text [ dutch ] = "lee~g" ;
+ Text[ chinese_simplified ] = "¿Õȱ(~E)";
+ Text[ russian ] = "ïóñòîé";
+ Text[ polish ] = "pusty";
+ Text[ japanese ] = "‹ó”’(~E)";
+ Text[ chinese_traditional ] = "ªÅ¯Ê(~E)";
+ Text[ arabic ] = "ÝÇÑÛ";
+ Text[ dutch ] = "lee~g";
+ Text[ chinese_simplified ] = "¿Õȱ(~E)";
+ Text[ greek ] = "êåíü";
+ Text[ korean ] = "ºñ¾îÀÖÀ½(~E)";
+ Text[ turkish ] = "boþ";
+ };
+ PushButton PB_TBL_FORMAT
+ {
+ Pos = MAP_APPFONT ( 199 , 124 ) ;
+ Size = MAP_APPFONT ( 60 , 12 ) ;
+ Text = "Ei~genschaften..." ;
+ Text [ English ] = "Properties..." ;
+ Text [ english_us ] = "Pr~operties..." ;
+ Text [ portuguese_brazilian ] = "Eigenschaften..." ;
+ Text [ swedish ] = "E~genskaper..." ;
+ Text [ danish ] = "Egenskaber..." ;
+ Text [ italian ] = "Proprietà..." ;
+ Text [ spanish ] = "P~ropiedades..." ;
+ Text [ french ] = "Propriétés..." ;
+ Text [ dutch ] = "~Eigenschappen..." ;
+ Text [ portuguese ] = "~Propriedades..." ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ÊôÐÔ(~O)...";
+ Text[ russian ] = "Ñâîéñòâà...";
+ Text[ polish ] = "W³aœciwoœci";
+ Text[ japanese ] = "ÌßÛÊßè(~O)...";
+ Text[ chinese_traditional ] = "ÄÝ©Ê(~O)...";
+ Text[ arabic ] = "ÎÕÇÆÕ...";
+ Text[ dutch ] = "~Eigenschappen...";
+ Text[ chinese_simplified ] = "ÊôÐÔ(~O)...";
+ Text[ greek ] = "Éäéüôçôåò...";
+ Text[ korean ] = "µî·ÏÁ¤º¸(~O)...";
+ Text[ turkish ] = "Ö~zelikler...";
+ };
+ PushButton PB_TBL_AUTOFMT
+ {
+ Pos = MAP_APPFONT ( 199 , 142 ) ;
+ Size = MAP_APPFONT ( 60 , 12 ) ;
+ Text = "Aut~oformat..." ;
+ Text [ English ] = "Aut~oformat..." ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "Aut~oFormato..." ;
+ Text [ english_us ] = "Aut~oFormat..." ;
+ Text [ portuguese_brazilian ] = "Aut~oformat..." ;
+ Text [ swedish ] = "Aut~oFormat..." ;
+ Text [ danish ] = "AutoFormat..." ;
+ Text [ italian ] = "Formatt. auto..." ;
+ Text [ spanish ] = "~Autoformato..." ;
+ Text [ french ] = "Aut~oFormat..." ;
+ Text [ dutch ] = "Aut~oOpmaak..." ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ(~O)...";
+ Text[ russian ] = "Àâòîôîðìàò...";
+ Text[ polish ] = "Autoformat";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä(~O)...";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡(~O)...";
+ Text[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí...";
+ Text[ dutch ] = "Aut~oOpmaak...";
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ(~O)...";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç...";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä(~O)...";
+ Text[ turkish ] = "Otomatik formatla...";
+ };
+ String STR_NOTEMPL
+ {
+ Text = "<keine>" ;
+ Text [ English ] = "<none>" ;
+ Text [ dutch ] = "<geen>" ;
+ Text [ english_us ] = "<none>" ;
+ Text [ italian ] = "<senza>" ;
+ Text [ spanish ] = "<ninguno>" ;
+ Text [ french ] = "<aucun(e)>" ;
+ Text [ swedish ] = "<inga>" ;
+ Text [ danish ] = "<ingen>" ;
+ Text [ portuguese ] = "<nenhum>" ;
+ Text [ portuguese_brazilian ] = "<keine>" ;
+ Text[ chinese_simplified ] = "<ÎÞ>";
+ Text[ russian ] = "<áåç>";
+ Text[ polish ] = "<brak>";
+ Text[ japanese ] = "<‚È‚µ>";
+ Text[ chinese_traditional ] = "<µL>";
+ Text[ arabic ] = "<ÈÏæä>";
+ Text[ dutch ] = "<geen>";
+ Text[ chinese_simplified ] = "<ÎÞ>";
+ Text[ greek ] = "<êáíÝíá>";
+ Text[ korean ] = "<¾øÀ½>";
+ Text[ turkish ] = "<yok>";
+ };
+ Text [ english_us ] = "Insert Database Columns" ;
+ Text [ portuguese_brazilian ] = "Datenbankspalten einfügen" ;
+ Text [ swedish ] = "Infoga databaskolumner" ;
+ Text [ danish ] = "Indsæt databasekolonner" ;
+ Text [ italian ] = "Inserisci colonne di database" ;
+ Text [ spanish ] = "Insertar columnas de la base de datos" ;
+ Text [ french ] = "Insertion de colonnes de base de données" ;
+ Text [ dutch ] = "Database-kolommen invoegen" ;
+ Text [ portuguese ] = "Inserir colunas para bases de dados" ;
+ Text[ chinese_simplified ] = "²åÈëÊý¾Ý¿âÀ¸";
+ Text[ russian ] = "Âñòàâêà êîëîíêè áàçû äàííûõ";
+ Text[ polish ] = "Wstaw kolumny w bazie danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚Ì—ñ‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¸ê®Æ®wÄæ";
+ Text[ arabic ] = "ÅÏÑÇÌ ÃÚãÏÉ ÞÇÚÏÉ ÈíÇäÇÊ";
+ Text[ dutch ] = "Database-kolommen invoegen";
+ Text[ chinese_simplified ] = "²åÈëÊý¾Ý¿âÀ¸";
+ Text[ greek ] = "ÐñïóèÞêç óôçëþí âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º ¿­ »ðÀÔ";
+ Text[ turkish ] = "Veritabaný sütunu ekle";
+};
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
new file mode 100644
index 000000000000..46c7b4a25710
--- /dev/null
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -0,0 +1,2589 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#if STLPORT_VERSION>=321
+#include <cstdarg>
+#endif
+
+#include <stdio.h>
+
+#ifndef _UCBHELPER_CONTENT_HXX
+#include <ucbhelper/content.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCOMMANDENVIRONMENT_HPP_
+#include <com/sun/star/ucb/XCommandEnvironment.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_TRANSFERINFO_HPP_
+#include <com/sun/star/ucb/TransferInfo.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_NAMECLASH_HPP_
+#include <com/sun/star/ucb/NameClash.hpp>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _TOOLS_TEMPFILE_HXX
+#include <tools/tempfile.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _ZFORMAT_HXX //autogen
+#include <svtools/zformat.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_PROGRESS_HXX //autogen
+#include <sfx2/progress.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+#ifndef _SBA_SBADB_HXX //autogen
+#include <offmgr/sbadb.hxx>
+#endif
+#ifndef _SBAITEMS_HRC
+#include <offmgr/sbaitems.hrc>
+#endif
+#ifndef _SBAITEMS_HXX
+#include <offmgr/sbaitems.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SDB_SDBCURS_HXX //autogen
+#include <sdb/sdbcurs.hxx>
+#endif
+#ifndef _MAILENUM_HXX //autogen
+#include <goodies/mailenum.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _FLDDAT_HXX
+#include <flddat.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _SWPRTOPT_HXX
+#include <swprtopt.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _DBUI_HXX
+#include <dbui.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#ifndef _DBUI_HRC
+#include <dbui.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _STATSTR_HRC
+#include <statstr.hrc>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _SFXREQUEST_HXX
+#include <sfx2/request.hxx>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UTL_DB_CONVERSION_HXX_
+#include <unotools/dbconversion.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
+#include <com/sun/star/sdb/XQueriesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XCOLUMN_HPP_
+#include <com/sun/star/sdb/XColumn.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
+#include <com/sun/star/sdbc/DataType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XSTATEMENT_HPP_
+#include <com/sun/star/sdbc/XStatement.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_RESULTSETTYPE_HPP_
+#include <com/sun/star/sdbc/ResultSetType.hpp>
+#endif
+//#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+//#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+//#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _ISOLANG_HXX
+#include <tools/isolang.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATTYPES_HPP_
+#include <com/sun/star/util/XNumberFormatTypes.hpp>
+#endif
+#ifndef _UTL_UNO3_DB_TOOLS_HXX_
+#include <unotools/dbtools.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_UNOMID_HXX
+#include <svx/unomid.hxx>
+#endif
+#ifndef _NUMUNO_HXX
+#include <svtools/numuno.hxx>
+#endif
+#else
+
+#endif //REPLACE_OFADBMGR
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdb;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+using namespace com::sun::star::util;
+#define C2S(cChar) String::CreateFromAscii(cChar)
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::ucb;
+
+#define C2U(char) rtl::OUString::createFromAscii(char)
+
+#define DB_SEP_SPACE 0
+#define DB_SEP_TAB 1
+#define DB_SEP_RETURN 2
+#define DB_SEP_NEWLINE 3
+
+#ifdef REPLACE_OFADBMGR
+SV_IMPL_PTRARR(SwDSParamArr, SwDSParamPtr);
+
+/* -----------------------------17.07.00 17:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL lcl_MoveAbsolute(SwDSParam* pParam, long nAbsPos)
+{
+ BOOL bRet = FALSE;
+ try
+ {
+ if(pParam->bScrollable)
+ {
+ bRet = pParam->xResultSet->absolute( nAbsPos );
+ }
+ else
+ {
+ pParam->nSelectionIndex = 0;
+ pParam->xResultSet = pParam->xStatement->executeQuery( pParam->sStatement );
+ bRet = TRUE;
+ while(nAbsPos >= 0 && bRet)
+ {
+ bRet &= !pParam->xResultSet->next();
+ pParam->nSelectionIndex++;
+ nAbsPos--;
+ }
+ bRet &= nAbsPos != -1;
+ }
+ }
+ catch(Exception aExcept)
+ {
+ DBG_ERROR("exception caught")
+ }
+ return bRet;
+}
+/* -----------------------------17.07.00 17:23--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL lcl_GetColumnCnt(SwDSParam* pParam,
+ const String& rColumnName, long nLanguage, String& rResult, double* pNumber)
+{
+ Reference< XColumnsSupplier > xColsSupp( pParam->xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ if(!xCols->hasByName(rColumnName))
+ return FALSE;
+ Any aCol = xCols->getByName(rColumnName);
+ Reference< XPropertySet > xColumnProps;
+ if(aCol.hasValue())
+ xColumnProps = *(Reference< XPropertySet >*)aCol.getValue();
+
+ SwDBFormatData aFormatData;
+ aFormatData.aNullDate = pParam->aNullDate;
+ aFormatData.xFormatter = pParam->xFormatter;
+
+ String sLanguage, sCountry;
+ ::ConvertLanguageToIsoNames( nLanguage, sLanguage, sCountry );
+ aFormatData.aLocale.Language = sLanguage;
+ aFormatData.aLocale.Country = sCountry;
+
+ DBG_ERROR("pFormat unset!")
+ rResult = SwNewDBMgr::GetDBField( xColumnProps, aFormatData, pNumber);
+ return TRUE;
+};
+#endif
+/*--------------------------------------------------------------------
+ Beschreibung: Daten importieren
+ --------------------------------------------------------------------*/
+
+BOOL SwNewDBMgr::Merge( USHORT nOpt, SwWrtShell* pSh,
+ const String& rStatement,
+ const SbaSelectionListRef xSelectionList,
+#ifdef REPLACE_OFADBMGR
+ const String& rDataSource,
+ const String& rTableOrQuery,
+#else
+ const String& rDBName,
+#endif
+ const String *pPrinter)
+{
+#ifdef REPLACE_OFADBMGR
+ ChgDBName(pSh, rDataSource, rTableOrQuery,rStatement);
+#else
+ ChgDBName(pSh, rDBName, rStatement);
+#endif
+ // Falls noch nicht offen, spaetestens hier
+
+#ifdef REPLACE_OFADBMGR
+ if(!OpenMergeSource(rDataSource, rTableOrQuery, rStatement, xSelectionList))
+ return FALSE;
+#else
+ if(!OpenDB(FALSE, pSh->GetDBDesc()))
+ return FALSE;
+#endif
+
+ if (IsInitDBFields())
+ {
+ // Bei Datenbankfeldern ohne DB-Name DB-Name von Dok einsetzen
+ SvStringsDtor aDBNames(1, 1);
+ aDBNames.Insert( new String(), 0);
+ pSh->ChangeDBFields( aDBNames, pSh->GetDBName());
+ SetInitDBFields(FALSE);
+ }
+#ifdef REPLACE_OFADBMGR
+ const SbaSelectionList* pSelList = 0;
+ if( xSelectionList.Is() && (long)xSelectionList->GetObject(0) != -1L )
+ {
+ if( xSelectionList->Count() )
+ pSelList = &xSelectionList;
+ }
+#else
+ OfaDBParam& rParam = GetDBData(FALSE);
+ ChangeStatement(FALSE, rStatement);
+ const SbaSelectionList* pSelList = 0;
+ rParam.pSelectionList->Clear();
+ if( xSelectionList.Is() && (long)xSelectionList->GetObject(0) != -1L )
+ {
+ *rParam.pSelectionList = *xSelectionList;
+ if( xSelectionList->Count() )
+ pSelList = &xSelectionList;
+ }
+#endif
+
+ BOOL bRet = TRUE;
+ switch(nOpt)
+ {
+ case DBMGR_MERGE:
+ bRet = Merge(pSh); // Mischen
+ break;
+
+ case DBMGR_MERGE_MAILMERGE: // Serienbrief
+ {
+ SfxDispatcher *pDis = pSh->GetView().GetViewFrame()->GetDispatcher();
+ if (pPrinter) // Aufruf kommt aus dem Basic
+ {
+ SfxBoolItem aSilent( SID_SILENT, TRUE );
+ if (pPrinter)
+ {
+ SfxStringItem aPrinterName(SID_PRINTER_NAME, *pPrinter);
+ pDis->Execute( SID_PRINTDOC, SFX_CALLMODE_SYNCHRON,
+ &aPrinterName, &aSilent, 0L );
+ }
+ else
+ {
+ pDis->Execute( SID_PRINTDOC, SFX_CALLMODE_SYNCHRON,
+ &aSilent, 0L );
+ }
+ }
+ else
+ pDis->Execute(SID_PRINTDOC, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD);
+ }
+ break;
+
+ case DBMGR_MERGE_MAILING:
+ bRet = MergeMailing(pSh); // Mailing
+ break;
+
+ case DBMGR_MERGE_MAILFILES:
+ bRet = MergeMailFiles(pSh); // Serienbriefe als Dateien abspeichern
+ break;
+
+ default: // Einfuegen der selektierten Eintraege
+ // (war: InsertRecord)
+#ifdef REPLACE_OFADBMGR
+ ImportFromConnection(pSh );
+#else
+ ImportFromConnection(pSh, pSelList );
+#endif
+ break;
+ }
+
+#ifdef REPLACE_OFADBMGR
+ EndMerge();
+#else
+ CloseAll();
+#endif
+ return bRet;
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Daten importieren
+ --------------------------------------------------------------------*/
+
+
+BOOL SwNewDBMgr::Merge(SwWrtShell* pSh)
+{
+ pSh->StartAllAction();
+#ifdef REPLACE_OFADBMGR
+#else
+ bInMerge = TRUE;
+
+ // 1. Satz positionieren, Evaluierung ueber die Felder
+ for (USHORT i = 0; i < aDBDataArr.Count(); i++)
+ {
+ OfaDBParam* pParam = aDBDataArr[i];
+
+ // Alle Im Dok enthaltenen Datenbanken oeffnen und Cursorpos initialisieren
+ if (OpenDB(FALSE, pParam->GetDBName()))
+ {
+ if (pParam->GetCursor())
+ Flush(FALSE); // Cursor initialisieren
+ ToFirstSelectedRecord(FALSE);
+ }
+ }
+#endif
+
+/* for (ULONG i = 0 ; i < GetDBData().pSelectionList->Count(); i++)
+ {
+ ULONG nIndex = (ULONG)GetDBData().pSelectionList->GetObject(i);
+ DBG_TRACE(String(nIndex));
+ }*/
+
+ pSh->ViewShell::UpdateFlds(TRUE);
+ pSh->SetModified();
+
+#ifdef REPLACE_OFADBMGR
+#else
+ bInMerge = FALSE;
+#endif
+
+ pSh->EndAllAction();
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Daten importieren
+ --------------------------------------------------------------------*/
+
+
+/*void SwNewDBMgr::UpdateImport( const BOOL bBasic, SwWrtShell* pSh,
+ const String& rDBName,
+ const String& rStatement,
+ const SbaSelectionListRef xSelectionList )
+{
+ ChgDBName(pSh, rDBName, rStatement);
+
+ if( OpenDB( bBasic, pSh->GetDBDesc()) )
+ {
+ OfaDBParam& rParam = GetDBData(bBasic);
+
+ ChangeStatement(bBasic, rStatement);
+
+ const SbaSelectionList* pSelList = 0;
+ rParam.pSelectionList->Clear();
+ if( xSelectionList.Is() && -1L != (long)xSelectionList->GetObject(0) )
+ {
+ *rParam.pSelectionList = *xSelectionList;
+ if( xSelectionList->Count() )
+ pSelList = &xSelectionList;
+ }
+
+ ImportFromConnection( bBasic, pSh, pSelList );
+ }
+} */
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+#ifdef REPLACE_OFADBMGR
+void SwNewDBMgr::ImportFromConnection( SwWrtShell* pSh )
+#else
+void SwNewDBMgr::ImportFromConnection( SwWrtShell* pSh,
+ const SbaSelectionList* pSelList )
+#endif
+{
+#ifdef REPLACE_OFADBMGR
+ if(pMergeData && !pMergeData->bEndOfDB)
+#else
+ OfaDBParam& rParam = GetDBData(FALSE);
+ ASSERT(rParam.GetCursor(), "Cursor");
+
+ if( ToFirstSelectedRecord( FALSE ) && IsSuccessful( FALSE ) )
+#endif
+ {
+#ifdef REPLACE_OFADBMGR
+#else
+ // Spaltenkoepfe
+ SbaDBDataDefRef aDBDef = OpenColumnNames(FALSE);
+ if( aDBDef.Is() )
+#endif
+ {
+ pSh->StartAllAction();
+ pSh->StartUndo(0);
+ BOOL bGroupUndo(pSh->DoesGroupUndo());
+ pSh->DoGroupUndo(FALSE);
+
+ if( pSh->HasSelection() )
+ pSh->DelRight();
+
+ SwWait *pWait = 0;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ if( pSelList )
+ {
+ for( ULONG i = 0; i < pSelList->Count(); ++i )
+ {
+
+ ULONG nIndex = (ULONG)pSelList->GetObject( i );
+
+ ASSERT(nIndex >= rParam.CurrentPos(),
+ "Zu lesender Datensatz < vorhergehender Datensatz!");
+
+ // N„chsten zu lesenden Datensatz ansteuern
+ GotoRecord( nIndex );
+ ImportDBEntry(&aDBDef, pSh);
+
+ if( i == 10 )
+ pWait = new SwWait( *pSh->GetView().GetDocShell(), TRUE );
+ }
+ }
+ else
+#endif
+ {
+ ULONG i = 0;
+ do {
+
+#ifdef REPLACE_OFADBMGR
+ ImportDBEntry(pSh);
+#else
+ ImportDBEntry(&aDBDef, pSh);
+ rParam.GetCursor()->Next();
+ rParam.CurrentPos()++;
+#endif
+ if( 10 == ++i )
+ pWait = new SwWait( *pSh->GetView().GetDocShell(), TRUE);
+
+#ifdef REPLACE_OFADBMGR
+ } while(ToNextMergeRecord());
+#else
+ } while( !rParam.GetCursor()->IsOffRange() );
+#endif
+ }
+
+ pSh->DoGroupUndo(bGroupUndo);
+ pSh->EndUndo(0);
+ pSh->EndAllAction();
+ delete pWait;
+ }
+ }
+#ifdef REPLACE_OFADBMGR
+#else
+ CloseAll();
+#endif
+}
+
+
+/*-----------------24.02.97 10.30-------------------
+
+--------------------------------------------------*/
+
+String lcl_FindColumn(const String& sFormatStr,USHORT &nUsedPos, BYTE &nSeparator)
+{
+ String sReturn;
+ USHORT nLen = sFormatStr.Len();
+ nSeparator = 0xff;
+ while(nUsedPos < nLen && nSeparator == 0xff)
+ {
+ sal_Unicode cAkt = sFormatStr.GetChar(nUsedPos);
+ switch(cAkt)
+ {
+ case ',':
+ nSeparator = DB_SEP_SPACE;
+ break;
+ case ';':
+ nSeparator = DB_SEP_RETURN;
+ break;
+ case ':':
+ nSeparator = DB_SEP_TAB;
+ break;
+ case '#':
+ nSeparator = DB_SEP_NEWLINE;
+ break;
+ default:
+ sReturn += cAkt;
+ }
+ nUsedPos++;
+
+ }
+ return sReturn;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+#ifdef REPLACE_OFADBMGR
+void SwNewDBMgr::ImportDBEntry(SwWrtShell* pSh)
+#else
+void SwNewDBMgr::ImportDBEntry(SbaDBDataDef* pDef, SwWrtShell* pSh)
+#endif
+{
+#ifdef REPLACE_OFADBMGR
+ if(pMergeData && !pMergeData->bEndOfDB)
+#else
+ OfaDBParam& rParam = GetDBData(FALSE);
+ if( !rParam.GetCursor()->IsOffRange() )
+#endif
+ {
+#ifdef REPLACE_OFADBMGR
+ Reference< XColumnsSupplier > xColsSupp( pMergeData->xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ String sSymDBName(pMergeData->sDataSource);
+ sSymDBName += DB_DELIM;
+ sSymDBName += pMergeData->sTableOrQuery;
+ String sFormatStr = pPathFinder->GetDBInsertMode(sSymDBName);
+#else
+ const ODbRowRef& xRow = rParam.GetCursor()->GetRow();
+ ULONG nCount = (UINT16)xRow->size();
+ String sFormatStr = pPathFinder->GetDBInsertMode(rParam.GetSymDBName());
+#endif
+ USHORT nFmtLen = sFormatStr.Len();
+ if( nFmtLen )
+ {
+ const char cSpace = ' ';
+ const char cTab = '\t';
+ USHORT nUsedPos = 0;
+ BYTE nSeparator;
+ String sColumn = lcl_FindColumn(sFormatStr, nUsedPos, nSeparator);
+ while( sColumn.Len() )
+ {
+#ifdef REPLACE_OFADBMGR
+ if(!xCols->hasByName(sColumn))
+ return;
+ Any aCol = xCols->getByName(sColumn);
+ Reference< XPropertySet > xColumnProp = *(Reference< XPropertySet >*)aCol.getValue();;
+ if(xColumnProp.is())
+ {
+ SwDBFormatData aDBFormat;
+ String sInsert = GetDBField( xColumnProp, aDBFormat);
+#else
+ int nColumn = GetColumnPos(DBMGR_STD, sColumn);
+ if(nColumn > 0)
+ {
+ String sInsert = ImportDBField(nColumn, pDef, xRow);
+#endif
+ if( DB_SEP_SPACE == nSeparator )
+ sInsert += cSpace;
+ else if( DB_SEP_TAB == nSeparator)
+ sInsert += cTab;
+ pSh->Insert(sInsert);
+ if( DB_SEP_RETURN == nSeparator)
+ pSh->SplitNode();
+ else if(DB_SEP_NEWLINE == nSeparator)
+ pSh->InsertLineBreak();
+ }
+ else
+ {
+ // Spalte nicht gefunden -> Fehler anzeigen
+ String sInsert = '?';
+ sInsert += sColumn;
+ sInsert += '?';
+ pSh->Insert(sInsert);
+ }
+ sColumn = lcl_FindColumn(sFormatStr, nUsedPos, nSeparator);
+ }
+ pSh->SplitNode();
+ }
+ else
+ {
+ String sStr;
+#ifdef REPLACE_OFADBMGR
+ Sequence<OUString> aColNames = xCols->getElementNames();
+ const OUString* pColNames = aColNames.getConstArray();
+ long nLength = aColNames.getLength();
+ for(long i = 0; i < nLength; i++)
+ {
+ Any aCol = xCols->getByName(pColNames[i]);
+ Reference< XPropertySet > xColumnProp = *(Reference< XPropertySet >*)aCol.getValue();;
+ SwDBFormatData aDBFormat;
+ sStr += GetDBField( xColumnProp, aDBFormat);
+ if (i < nLength - 1)
+ sStr += '\t';
+ }
+#else
+ for (ULONG i = 1; i < nCount; i++) // 0 = Bookmark
+ {
+ sStr += ImportDBField(i, pDef, xRow);
+ if (i < nCount - 1)
+ sStr += '\t';
+ }
+#endif
+ pSh->SwEditShell::Insert(sStr);
+ pSh->SwFEShell::SplitNode(); // Zeilenvorschub
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwNewDBMgr::ChgDBName(SwWrtShell* pSh,
+#ifdef REPLACE_OFADBMGR
+ const String& rDataSource,
+ const String& rTableOrQuery,
+#else
+ const String& rDBName,
+#endif
+ const String& rStatement)
+{
+ if (pSh)
+ {
+#ifdef REPLACE_OFADBMGR
+ String sNewDBName(rDataSource);
+ sNewDBName += DB_DELIM;
+ sNewDBName += rTableOrQuery;
+#else
+ String sNewDBName(ExtractDBName(rDBName));
+#endif
+ sNewDBName += ';';
+ sNewDBName += rStatement;
+ pSh->ChgDBName(sNewDBName);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Listbox mit Tabellenliste fuellen
+ --------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+BOOL SwNewDBMgr::GetTableNames(ListBox* pListBox, const String& rDBName)
+#else
+BOOL SwNewDBMgr::GetTableNames(ListBox* pListBox, String sDBName)
+#endif
+{
+ BOOL bRet = FALSE;
+ String sOldTableName(pListBox->GetSelectEntry());
+ pListBox->Clear();
+#ifdef REPLACE_OFADBMGR
+ Reference< XDataSource> xSource;
+ Reference< XConnection> xConnection = SwNewDBMgr::GetConnection(rDBName, xSource);
+ if(xConnection.is())
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ Sequence<OUString> aTbls = xTbls->getElementNames();
+ const OUString* pTbls = aTbls.getConstArray();
+ for(long i = 0; i < aTbls.getLength(); i++)
+ pListBox->InsertEntry(pTbls[i]);
+ }
+ Reference<XQueriesSupplier> xQSupplier = Reference<XQueriesSupplier>(xConnection, UNO_QUERY);
+ if(xQSupplier.is())
+ {
+ Reference<XNameAccess> xQueries = xQSupplier->getQueries();
+ Sequence<OUString> aQueries = xQueries->getElementNames();
+ const OUString* pQueries = aQueries.getConstArray();
+ for(long i = 0; i < aQueries.getLength(); i++)
+ pListBox->InsertEntry(pQueries[i]);
+ }
+ if (sOldTableName.Len())
+ pListBox->SelectEntry(sOldTableName);
+ bRet = TRUE;
+ }
+#else
+
+ sDBName = OFF_APP()->LocalizeDBName(NATIONAL2INI, sDBName);
+ if (sDBName.Len())
+ {
+ SbaDatabaseRef pConnection = pSbaObject->GetDatabase(sDBName, TRUE);
+
+ if (pConnection)
+ {
+ String sTableName;
+
+ USHORT nCount = pConnection->GetObjectCount(dbTable);
+
+ for (USHORT i = 0; i < nCount; i++)
+ {
+ sTableName = pConnection->GetObjectName(dbTable, i);
+ pListBox->InsertEntry(sTableName);
+ }
+
+ nCount = pConnection->GetObjectCount(dbQuery);
+
+ for (i = 0; i < nCount; i++)
+ {
+ sTableName = pConnection->GetObjectName(dbQuery, i);
+ pListBox->InsertEntry(sTableName);
+ }
+
+ if (sOldTableName.Len())
+ pListBox->SelectEntry(sOldTableName);
+ if (!pListBox->GetSelectEntryCount())
+ pListBox->SelectEntryPos(0);
+ bRet = TRUE;
+ }
+ }
+#endif
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Listbox mit Spaltennamen einer Datenbank fuellen
+ --------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+BOOL SwNewDBMgr::GetColumnNames(ListBox* pListBox,
+ const String& rDBName, const String& rTableName, BOOL bAppend)
+#else
+BOOL SwNewDBMgr::GetColumnNames(ListBox* pListBox, String sDBName, BOOL bAppend)
+#endif
+{
+ if (!bAppend)
+ pListBox->Clear();
+#ifdef REPLACE_OFADBMGR
+ Reference< XDataSource> xSource;
+ Reference< XConnection> xConnection = SwNewDBMgr::GetConnection(rDBName, xSource);
+ Reference< XColumnsSupplier> xColsSupp = SwNewDBMgr::GetColumnSupplier(xConnection, rTableName);
+ if(xColsSupp.is())
+ {
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ const Sequence<OUString> aColNames = xCols->getElementNames();
+ const OUString* pColNames = aColNames.getConstArray();
+ for(int nCol = 0; nCol < aColNames.getLength(); nCol++)
+ {
+ pListBox->InsertEntry(pColNames[nCol]);
+ }
+ }
+#else
+ if (!sDBName.Len() || (!IsDBOpen(DBMGR_STD, sDBName) && !OpenDB(DBMGR_STD, sDBName, TRUE)))
+ return(FALSE);
+
+ SbaDBDataDefRef aDBDef = OpenColumnNames(DBMGR_STD);
+
+ if (aDBDef.Is())
+ {
+ const SbaColumnList& rCols = aDBDef->GetOriginalColumns();
+
+ for (USHORT i = 1; i <= rCols.Count(); i++)
+ {
+ const SbaNameItem* pNameItem = (const SbaNameItem*)&rCols.GetObject(i-1)->Get(SBA_DEF_FLTNAME);
+ pListBox->InsertEntry(pNameItem->GetValue());
+ }
+
+ pListBox->SelectEntryPos(0);
+ }
+#endif
+ return(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: CTOR
+ --------------------------------------------------------------------*/
+
+SwNewDBMgr::SwNewDBMgr() :
+#ifdef REPLACE_OFADBMGR
+ pMergeData(0),
+ bInMerge(FALSE),
+#else
+ OfaDBMgr(),
+#endif
+ nMergeType(DBMGR_INSERT),
+ bInitDBFields(FALSE)
+{
+ pMergeList = new SbaSelectionList;
+}
+/* -----------------------------18.07.00 08:56--------------------------------
+
+ ---------------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+SwNewDBMgr::~SwNewDBMgr()
+{
+}
+#endif
+/*--------------------------------------------------------------------
+ Beschreibung: Serienbrief drucken
+ --------------------------------------------------------------------*/
+
+
+BOOL SwNewDBMgr::MergePrint( SwView& rView,
+ SwPrtOptions& rOpt, SfxProgress& rProgress )
+{
+ SwWrtShell* pSh = &rView.GetWrtShell();
+ //check if the doc is synchronized and contains at least one linked section
+ BOOL bSynchronizedDoc = pSh->IsLabelDoc() && pSh->GetSectionFmtCount() > 1;
+#ifdef REPLACE_OFADBMGR
+ //merge source is already open
+ rOpt.nMergeCnt = pMergeData && pMergeData->xSelectionList.Is() ?
+ pMergeData->xSelectionList->Count() : 0;
+#else
+ OfaDBParam& rParam = GetDBData(FALSE);
+
+ // 1. Satz positionieren, Evaluierung ueber die Felder
+ for (USHORT i = 0; i < aDBDataArr.Count(); i++)
+ {
+ OfaDBParam* pParam = aDBDataArr[i];
+
+ // Alle Im Dok enthaltenen Datenbanken oeffnen und Cursorpos initialisieren
+ if (OpenDB(FALSE, pParam->GetDBName()))
+ {
+ if (pParam->GetCursor())
+ Flush(FALSE); // Cursor initialisieren
+ ToFirstSelectedRecord(FALSE);
+ }
+ }
+
+ OpenDB(FALSE, rParam.GetDBName());
+ if (!ToFirstSelectedRecord(FALSE))
+ return(FALSE);
+ ODbRowRef xRow = GetCurSelectedRecord(FALSE);
+ // keine Arme keine Kekse
+ if(!xRow.is())
+ return FALSE;
+
+ bInMerge = TRUE;
+
+ rOpt.nMergeCnt = GetDBData(FALSE).pSelectionList.Is()
+ ? GetDBData(FALSE).pSelectionList->Count()
+ : 0;
+ rOpt.nMergeAct = 0;
+
+ Flush(FALSE); // Cursor initialisieren
+#endif
+
+// if (IsPrintFromBasicDB())
+// rOpt.bSinglePrtJobs = IsSingleJobs();
+// else
+// {
+ SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ rOpt.bSinglePrtJobs = pModOpt->IsSinglePrintJob();
+// }
+
+ SfxPrinter *pPrt = pSh->GetPrt();
+ Link aSfxSaveLnk = pPrt->GetEndPrintHdl();
+ if( rOpt.bSinglePrtJobs )
+ pPrt->SetEndPrintHdl( Link() );
+
+ BOOL bNewJob = FALSE,
+ bUserBreak = FALSE,
+ bRet = FALSE;
+
+ do {
+#ifdef REPLACE_OFADBMGR
+
+#else
+ xRow = GetCurSelectedRecord(FALSE); // Naechste Selektion holen
+ ULONG nOldRec = GetCurRecordId(FALSE); // Alte Position merken
+ if(xRow.Is())
+#endif
+ {
+ pSh->ViewShell::UpdateFlds();
+ ++rOpt.nMergeAct;
+ rView.SfxViewShell::Print( rProgress ); // ggf Basic-Macro ausfuehren
+
+ if( rOpt.bSinglePrtJobs && bRet )
+ {
+ //rOpt.bJobStartet = FALSE;
+ bRet = FALSE;
+ }
+
+ if( pSh->Prt( rOpt, rProgress ) )
+ bRet = TRUE;
+
+ if( !pPrt->IsJobActive() )
+ {
+ bUserBreak = TRUE;
+ bRet = FALSE;
+ break;
+ }
+ if( !rOpt.bSinglePrtJobs )
+ {
+ String& rJNm = (String&)rOpt.GetJobName();
+ rJNm.Erase();
+ }
+ }
+#ifdef REPLACE_OFADBMGR
+ } while( bSynchronizedDoc ? ExistsNextRecord() : ToNextMergeRecord());
+#else
+ // Kontext fuer ToNextSelectedRecord auf richtige Datenbank stellen:
+ GetDBData(FALSE, &rParam.GetDBName());
+ // Endlosschleifen durch "Erster Datensatz" verhindern:
+ if (GetCurRecordId(FALSE) < nOldRec)
+ ToSelectedRecord(FALSE, nOldRec); // Alte Position restaurieren
+ } while( xRow.is() && GotoNextSelectedRecord( bSynchronizedDoc) );
+#endif
+
+ if( rOpt.bSinglePrtJobs )
+ {
+ pSh->GetPrt()->SetEndPrintHdl( aSfxSaveLnk );
+ if ( !bUserBreak && !pSh->GetPrt()->IsJobActive() ) //Schon zu spaet?
+ aSfxSaveLnk.Call( pSh->GetPrt() );
+ }
+
+ rOpt.nMergeCnt = 0;
+ rOpt.nMergeAct = 0;
+
+ bInMerge = FALSE;
+
+ nMergeType = DBMGR_INSERT;
+
+ SwDocShell* pDocSh = rView.GetDocShell();
+ SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(pDocSh);
+
+ while (pTmpFrm) // Alle Views Invalidieren
+ {
+ SwView *pVw = PTR_CAST(SwView, pTmpFrm->GetViewShell());
+ if (pVw)
+ pVw->GetEditWin().Invalidate();
+ pTmpFrm = pTmpFrm->GetNext(*pTmpFrm, pDocSh);
+ }
+
+#ifdef REPLACE_OFADBMGR
+#else
+ CloseAll();
+#endif
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Serienbrief als Mail versenden
+ --------------------------------------------------------------------*/
+
+
+BOOL SwNewDBMgr::MergeMailing(SwWrtShell* pSh)
+{
+ //check if the doc is synchronized and contains at least one linked section
+ BOOL bSynchronizedDoc = pSh->IsLabelDoc() && pSh->GetSectionFmtCount() > 1;
+#ifdef REPLACE_OFADBMGR
+#else
+
+ OfaDBParam& rParam = GetDBData(FALSE);
+
+ // 1. Satz positionieren, Evaluierung ueber die Felder
+ for (USHORT i = 0; i < aDBDataArr.Count(); i++)
+ {
+ OfaDBParam* pParam = aDBDataArr[i];
+
+ // Alle Im Dok enthaltenen Datenbanken oeffnen und Cursorpos initialisieren
+ if (OpenDB(FALSE, pParam->GetDBName()))
+ {
+ if (pParam->GetCursor())
+ Flush(FALSE); // Cursor initialisieren
+ ToFirstSelectedRecord(FALSE);
+ }
+ }
+
+ OpenDB(FALSE, rParam.GetDBName());
+ if (!ToFirstSelectedRecord(FALSE))
+ return(FALSE);
+
+ ODbRowRef xRow = GetCurSelectedRecord(FALSE);
+#endif
+ BOOL bLoop = TRUE;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ // keine Arme keine Kekse
+ if(!xRow.is())
+ return FALSE;
+ SbaDBDataDefRef aDBDef = OpenColumnNames(FALSE);
+ if (aDBDef.Is())
+#endif
+ {
+#ifdef REPLACE_OFADBMGR
+ Reference< XColumnsSupplier > xColsSupp( pMergeData->xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ if(!xCols->hasByName(sEMailAddrFld))
+ return FALSE;
+ Any aCol = xCols->getByName(sEMailAddrFld);
+ Reference< XPropertySet > xColumnProp = *(Reference< XPropertySet >*)aCol.getValue();;
+#else
+ const SbaColumnList& rCols = aDBDef->GetOriginalColumns();
+ USHORT nColPos = 0;
+ for (nColPos = 0; nColPos < rCols.Count(); nColPos++)
+ {
+ const SbaNameItem* pNameItem = (const SbaNameItem*)&rCols.GetObject(nColPos)->Get(SBA_DEF_FLTNAME);
+ if (pNameItem->GetValue() == sEMailAddrFld)
+ break;
+ }
+
+ if (nColPos >= rCols.Count())
+ return FALSE;
+ nColPos++;
+#endif
+
+ bInMerge = TRUE;
+ SfxDispatcher* pSfxDispatcher = pSh->GetView().GetViewFrame()->GetDispatcher();
+ if (!sSubject.Len()) // Kein leeres Subject wegen Automail (PB)
+ sSubject = ' ';
+ SfxStringItem aSubject(SID_MAIL_SUBJECT, sSubject);
+ SfxStringItem aText(SID_MAIL_TEXT, ' '); // Leerer Text ist nicht moeglich
+ SfxStringItem aAttached(SID_MAIL_ATTACH_FILE, sAttached);
+ SfxBoolItem aAttach(SID_MAIL_ATTACH, TRUE);
+
+ SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ BYTE nMailFmts = pModOpt->GetMailingFormats() | TXTFORMAT_ASCII; // Immer Ascii
+ SfxByteItem aTextFormats(SID_MAIL_TXTFORMAT, nMailFmts);
+#ifdef REPLACE_OFADBMGR
+#else
+ Flush(FALSE); // Cursor initialisieren
+#endif
+
+ pSfxDispatcher->Execute( SID_SAVEDOC, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD);
+ if( !pSh->IsModified() )
+ {
+ // Beim Speichern wurde kein Abbruch gedrueckt
+ // neue DocShell erzeugen, alle gelinkten Bereiche embedden
+ // und unter temporaerem Namen wieder speichern.
+ BOOL bDelTempFile = TRUE;
+ String sTmpName;
+ const SfxFilter* pSfxFlt;
+
+ {
+ SfxMedium* pOrig = pSh->GetView().GetDocShell()->GetMedium();
+
+ pSfxFlt = SwIoSystem::GetFileFilter( pOrig->GetPhysicalName(), ::aEmptyStr );
+
+ String sFileName = ::GetTmpFileName();
+ String sTmpName = URIHelper::SmartRelToAbs(sFileName);
+
+ BOOL bCopyCompleted = TRUE;
+ try
+ {
+ String sMain(sTmpName);
+ sal_Unicode cSlash = '/';
+ xub_StrLen nSlashPos = sMain.SearchBackward(cSlash);
+ sMain.Erase(nSlashPos);
+ ::ucb::Content aNewContent( sMain, Reference< XCommandEnvironment > ());
+ Any aAny;
+ TransferInfo aInfo;
+ aInfo.NameClash = NameClash::OVERWRITE;
+ aInfo.NewTitle = INetURLObject(sTmpName).GetName();
+ aInfo.SourceURL = pOrig->GetPhysicalName();
+ aInfo.MoveData = FALSE;
+ aAny <<= aInfo;
+ aNewContent.executeCommand( C2U( "transfer" ), aAny);
+ }
+ catch( ... )
+ {
+ bCopyCompleted = FALSE;
+ }
+
+ if( !bCopyCompleted )
+ {
+ // Neues Dokument erzeugen.
+ SfxObjectShellRef xDocSh( new SwDocShell( SFX_CREATE_MODE_INTERNAL ));
+ SfxMedium* pMed = new SfxMedium( sTmpName, STREAM_READ, TRUE );
+ pMed->SetFilter( pSfxFlt );
+
+ // alle gelinkten Bereiche/Grafiken aufs lokale FileSystem
+ // einbetten
+ if( xDocSh->DoLoad( pOrig ) &&
+ ((SwDocShell*)(&xDocSh))->EmbedAllLinks() )
+ {
+ xDocSh->DoSaveAs(*pMed);
+ xDocSh->DoSaveCompleted(pMed);
+ }
+ else
+ bDelTempFile = FALSE;
+
+ xDocSh->DoClose();
+ }
+ else
+ bDelTempFile = FALSE;
+
+ if( !bDelTempFile )
+ sTmpName = pOrig->GetPhysicalName();
+ }
+
+
+ String sAddress;
+ ULONG nDocNo = 1;
+ bCancel = FALSE;
+
+ PrintMonitor aPrtMonDlg(&pSh->GetView().GetEditWin(), TRUE);
+ aPrtMonDlg.aDocName.SetText(pSh->GetView().GetDocShell()->GetTitle(22));
+ aPrtMonDlg.aCancel.SetClickHdl(LINK(this, SwNewDBMgr, PrtCancelHdl));
+ aPrtMonDlg.Show();
+
+ OfficeApplication* pOffApp = OFF_APP();
+ SfxRequest aReq( SID_OPENDOC, SFX_CALLMODE_SYNCHRON, pOffApp->GetPool() );
+ aReq.AppendItem( SfxStringItem( SID_FILE_NAME, sTmpName ));
+ aReq.AppendItem( SfxStringItem( SID_FILTER_NAME, pSfxFlt->GetName() ));
+ aReq.AppendItem( SfxBoolItem( SID_HIDDEN, TRUE ) );
+ aReq.AppendItem( SfxStringItem( SID_REFERER, String::CreateFromAscii(URL_PREFIX_PRIV_SOFFICE )));
+
+ pOffApp->ExecuteSlot( aReq, pOffApp->SfxApplication::GetInterface());
+ if( aReq.IsDone() )
+ {
+ // DocShell besorgen
+ SfxViewFrameItem* pVItem = (SfxViewFrameItem*)aReq.GetReturnValue();
+ SwView* pView = (SwView*) pVItem->GetFrame()->GetViewShell();
+ SwWrtShell& rSh = pView->GetWrtShell();
+ pView->AttrChangedNotify( &rSh );//Damit SelectShell gerufen wird.
+
+ SwDoc* pDoc = rSh.GetDoc();
+ SwNewDBMgr* pOldDBMgr = pDoc->GetNewDBMgr();
+ pDoc->SetNewDBMgr( this );
+ pDoc->EmbedAllLinks();
+ String sTempStat(SW_RES(STR_DB_EMAIL));
+
+ do
+ {
+#ifdef REPLACE_OFADBMGR
+#else
+ // Naechste Selektion holen
+ xRow = GetCurSelectedRecord(FALSE);
+ ULONG nOldRec = GetCurRecordId(FALSE); // Alte Position merken
+ if( xRow.is() && xRow->size() > 0)
+#endif
+ {
+
+ if(UIUNDO_DELETE_INVISIBLECNTNT == rSh.GetUndoIds())
+ rSh.Undo();
+ rSh.ViewShell::UpdateFlds();
+
+ // alle versteckten Felder/Bereiche entfernen
+ rSh.RemoveInvisibleContent();
+
+ SfxFrameItem aFrame( SID_DOCFRAME, pVItem->GetFrame() );
+#ifdef REPLACE_OFADBMGR
+ SwDBFormatData aDBFormat;
+ sAddress = GetDBField( xColumnProp, aDBFormat);
+#else
+ sAddress = ImportDBField(nColPos, &aDBDef, xRow);
+#endif
+ if (!sAddress.Len())
+ sAddress = '_';
+
+ String sStat(sTempStat);
+ sStat += ' ';
+ sStat += String::CreateFromInt32( nDocNo++ );
+ aPrtMonDlg.aPrintInfo.SetText(sStat);
+ aPrtMonDlg.aPrinter.SetText( sAddress );
+
+ // Rechenzeit fuer EMail-Monitor:
+ for (USHORT i = 0; i < 25; i++)
+ Application::Reschedule();
+
+ sAddress.Insert(String::CreateFromAscii("mailto:"), 0);
+ SfxStringItem aRecipient( SID_MAIL_RECIPIENT, sAddress );
+
+ const SfxPoolItem* pRet = pSfxDispatcher->Execute(
+ SID_MAIL_SENDDOC,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aRecipient, &aSubject, &aAttach, &aAttached,
+ &aText, &aTextFormats, &aFrame,
+ 0L );
+ //this must be done here because pRet may be destroyed in Reschedule (DeleteOnIdle)
+ BOOL bBreak = pRet && !( (SfxBoolItem*)pRet )->GetValue();
+
+ // Rechenzeit fuer EMail-Monitor:
+ for (i = 0; i < 25; i++)
+ Application::Reschedule();
+
+ if ( bBreak )
+ break; // das Verschicken wurde unterbrochen
+
+ }
+#ifdef REPLACE_OFADBMGR
+ } while( !bCancel && bSynchronizedDoc ? ExistsNextRecord() : ToNextMergeRecord());
+#else
+ // Kontext fuer ToNextSelectedRecord auf richtige Datenbank stellen:
+ GetDBData(FALSE, &rParam.GetDBName());
+
+ // Endlosschleifen durch "Erster Datensatz" verhindern:
+ if (GetCurRecordId(FALSE) < nOldRec)
+ ToSelectedRecord(FALSE, nOldRec); // Alte Position restaurieren
+ } while(!bCancel && xRow.is() && GotoNextSelectedRecord( bSynchronizedDoc));
+#endif
+ pDoc->SetNewDBMgr( pOldDBMgr );
+ pView->GetDocShell()->OwnerLock( FALSE );
+
+ }
+ // jetzt noch die temp Datei entfernen
+ if( bDelTempFile )
+ {
+ try
+ {
+ ::ucb::Content aTempContent(
+ sTmpName,
+ Reference< XCommandEnvironment > ());
+ aTempContent.executeCommand( C2U( "delete" ),
+ makeAny( sal_Bool( sal_True ) ) );
+ }
+ catch( ... )
+ {
+ DBG_ERRORFILE( "Exception" );
+ }
+
+ }
+ SW_MOD()->SetView(&pSh->GetView());
+ }
+
+ bInMerge = FALSE;
+ nMergeType = DBMGR_INSERT;
+ }
+
+#ifdef REPLACE_OFADBMGR
+#else
+ CloseAll();
+#endif
+ return bLoop;
+}
+
+/* -----------------------------17.04.00 11:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+#else
+BOOL SwNewDBMgr::GotoNextSelectedRecord( BOOL bSyncronized )
+{
+ BOOL bRet = FALSE;
+ if(!bSyncronized)
+ bRet = ToNextSelectedRecord( FALSE );
+ else
+ {
+ OfaDBParam& rParam = GetDBData(FALSE);
+ if (rParam.GetCursor())
+ {
+ if (rParam.pSelectionList.Is() && rParam.pSelectionList->Count())
+ {
+ bRet = (rParam.CurrentSelPos() < rParam.pSelectionList->Count());
+ }
+ else
+ {
+ bRet = !rParam.GetCursor()->IsOffRange();
+ }
+ }
+ }
+ return(bRet);
+}
+#endif
+/*--------------------------------------------------------------------
+ Beschreibung: Serienbriefe als einzelne Dokumente speichern
+ --------------------------------------------------------------------*/
+
+BOOL SwNewDBMgr::MergeMailFiles(SwWrtShell* pSh)
+{
+ //check if the doc is synchronized and contains at least one linked section
+ BOOL bSynchronizedDoc = pSh->IsLabelDoc() && pSh->GetSectionFmtCount() > 1;
+#ifdef REPLACE_OFADBMGR
+#else
+ OfaDBParam& rParam = GetDBData(FALSE);
+
+ // 1. Satz positionieren, Evaluierung ueber die Felder
+ for (USHORT i = 0; i < aDBDataArr.Count(); i++)
+ {
+ OfaDBParam* pParam = aDBDataArr[i];
+
+ // Alle im Dok enthaltenen Datenbanken oeffnen und Cursorpos initialisieren
+ if (OpenDB(FALSE, pParam->GetDBName()))
+ {
+ if (pParam->GetCursor())
+ Flush(FALSE); // Cursor initialisieren
+ ToFirstSelectedRecord(FALSE);
+ }
+ }
+
+ OpenDB(FALSE, rParam.GetDBName());
+ if (!ToFirstSelectedRecord(FALSE))
+ return(FALSE);
+
+ ODbRowRef xRow = GetCurSelectedRecord(FALSE);
+
+ // keine Arme keine Kekse
+ if(!xRow.is())
+ return FALSE;
+#endif
+ BOOL bLoop = TRUE;
+
+#ifdef REPLACE_OFADBMGR
+ Reference< XPropertySet > xColumnProp;
+#else
+ SbaDBDataDefRef aDBDef = OpenColumnNames(FALSE);
+ if (aDBDef.Is())
+#endif
+ {
+ USHORT nColPos = 0;
+ BOOL bColumnName = sEMailAddrFld.Len() > 0;
+
+ if (bColumnName)
+ {
+#ifdef REPLACE_OFADBMGR
+ Reference< XColumnsSupplier > xColsSupp( pMergeData->xResultSet, UNO_QUERY );
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ if(!xCols->hasByName(sEMailAddrFld))
+ return FALSE;
+ Any aCol = xCols->getByName(sEMailAddrFld);
+ xColumnProp = *(Reference< XPropertySet >*)aCol.getValue();;
+#else
+ const SbaColumnList& rCols = aDBDef->GetOriginalColumns();
+
+ for (nColPos = 0; nColPos < rCols.Count(); nColPos++)
+ {
+ const SbaNameItem* pNameItem = (const SbaNameItem*)&rCols.GetObject(nColPos)->Get(SBA_DEF_FLTNAME);
+ if (pNameItem->GetValue() == sEMailAddrFld)
+ break;
+ }
+
+ if (nColPos >= rCols.Count())
+ return FALSE;
+
+ nColPos++;
+#endif
+ }
+
+ bInMerge = TRUE;
+ SfxDispatcher* pSfxDispatcher = pSh->GetView().GetViewFrame()->GetDispatcher();
+
+#ifdef REPLACE_OFADBMGR
+#else
+ Flush(FALSE); // Cursor initialisieren
+#endif
+
+ pSfxDispatcher->Execute( SID_SAVEDOC, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD);
+ if( !pSh->IsModified() )
+ {
+ // Beim Speichern wurde kein Abbruch gedrueckt
+ SfxMedium* pOrig = pSh->GetView().GetDocShell()->GetMedium();
+ String sOldName(pOrig->GetPhysicalName());
+ const SfxFilter* pSfxFlt = SwIoSystem::GetFileFilter(
+ sOldName, ::aEmptyStr );
+ String sAddress;
+ bCancel = FALSE;
+
+ PrintMonitor aPrtMonDlg(&pSh->GetView().GetEditWin());
+ aPrtMonDlg.aDocName.SetText(pSh->GetView().GetDocShell()->GetTitle(22));
+
+ aPrtMonDlg.aCancel.SetClickHdl(LINK(this, SwNewDBMgr, PrtCancelHdl));
+ aPrtMonDlg.Show();
+
+ SwDocShell *pDocSh = pSh->GetView().GetDocShell();
+ // Progress, um KeyInputs zu unterbinden
+ SfxProgress aProgress(pDocSh, ::aEmptyStr, 1);
+
+ // Alle Dispatcher sperren
+ SfxViewFrame* pViewFrm = SfxViewFrame::GetFirst(pDocSh);
+ while (pViewFrm)
+ {
+ pViewFrm->GetDispatcher()->Lock(TRUE);
+ pViewFrm = SfxViewFrame::GetNext(*pViewFrm, pDocSh);
+ }
+ ULONG nDocNo = 1;
+ ULONG nCounter = 0;
+ String sExt( INetURLObject( sOldName ).GetExtension() );
+
+ do {
+#ifdef REPLACE_OFADBMGR
+#else
+ // Naechste Selektion holen
+ xRow = GetCurSelectedRecord(FALSE);
+ ULONG nOldRec = GetCurRecordId(FALSE); // Alte Position merken
+
+ if( xRow.is() && xRow->size() > 0 )
+#endif
+ {
+ String sPath(sSubject);
+
+ if( bColumnName )
+ {
+#ifdef REPLACE_OFADBMGR
+ SwDBFormatData aDBFormat;
+ sAddress = GetDBField( xColumnProp, aDBFormat);
+#else
+
+ sAddress = ImportDBField(nColPos, &aDBDef, xRow);
+#endif
+ if (!sAddress.Len())
+ sAddress = '_';
+ sPath += sAddress;
+ nCounter = 0;
+ }
+
+ INetURLObject aEntry(sPath);
+ String sLeading(aEntry.GetBase());
+ aEntry.removeSegment();
+ sPath = aEntry.GetMainURL();
+ TempFile aTemp(sLeading,&sExt,&sPath );
+
+ if( !aTemp.IsValid() )
+ {
+ ErrorHandler::HandleError( ERRCODE_IO_NOTSUPPORTED );
+ bLoop = FALSE;
+ bCancel = TRUE;
+ }
+ else
+ {
+ INetURLObject aTempFile(aTemp.GetName());
+ aPrtMonDlg.aPrinter.SetText( aTempFile.GetBase() );
+ String sStat(SW_RES(STR_STATSTR_LETTER)); // Brief
+ sStat += ' ';
+ sStat += String::CreateFromInt32( nDocNo++ );
+ aPrtMonDlg.aPrintInfo.SetText(sStat);
+
+ // Rechenzeit fuer Save-Monitor:
+ for (USHORT i = 0; i < 10; i++)
+ Application::Reschedule();
+
+ // Neues Dokument erzeugen und speichern
+ SfxObjectShellRef xDocSh( new SwDocShell( SFX_CREATE_MODE_INTERNAL ));
+ SfxMedium* pMed = new SfxMedium( sOldName, STREAM_STD_READ, TRUE );
+ pMed->SetFilter( pSfxFlt );
+
+ if (xDocSh->DoLoad(pMed))
+ {
+ SwDoc* pDoc = ((SwDocShell*)(&xDocSh))->GetDoc();
+ SwNewDBMgr* pOldDBMgr = pDoc->GetNewDBMgr();
+ pDoc->SetNewDBMgr( this );
+ pDoc->UpdateFlds(0);
+
+ // alle versteckten Felder/Bereiche entfernen
+ pDoc->RemoveInvisibleContent();
+
+ SfxMedium* pDstMed = new SfxMedium( aTempFile.GetFull(), STREAM_STD_READWRITE, TRUE );
+ pDstMed->SetFilter( pSfxFlt );
+
+ xDocSh->DoSaveAs(*pDstMed);
+ xDocSh->DoSaveCompleted(pDstMed);
+ if( xDocSh->GetError() )
+ {
+ // error message ??
+ ErrorHandler::HandleError( xDocSh->GetError() );
+ bCancel = TRUE;
+ bLoop = FALSE;
+ }
+ pDoc->SetNewDBMgr( pOldDBMgr );
+ }
+ xDocSh->DoClose();
+ }
+ }
+#ifdef REPLACE_OFADBMGR
+ } while( !bCancel && bSynchronizedDoc ? ExistsNextRecord() : ToNextMergeRecord());
+#else
+ // Kontext fuer ToNextSelectedRecord auf
+ // richtige Datenbank stellen:
+ GetDBData(FALSE, &rParam.GetDBName());
+
+ // Endlosschleifen durch "Erster Datensatz" verhindern:
+ if( !bCancel && GetCurRecordId(FALSE) < nOldRec )
+ ToSelectedRecord(FALSE, nOldRec); // Alte Position restaurieren
+ } while( !bCancel && xRow.is() &&
+ GotoNextSelectedRecord( bSynchronizedDoc) );
+#endif
+ // Alle Dispatcher freigeben
+ pViewFrm = SfxViewFrame::GetFirst(pDocSh);
+ while (pViewFrm)
+ {
+ pViewFrm->GetDispatcher()->Lock(FALSE);
+ pViewFrm = SfxViewFrame::GetNext(*pViewFrm, pDocSh);
+ }
+
+ SW_MOD()->SetView(&pSh->GetView());
+ }
+
+ bInMerge = FALSE;
+ nMergeType = DBMGR_INSERT;
+ }
+
+#ifdef REPLACE_OFADBMGR
+#else
+ CloseAll();
+#endif
+ return bLoop;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwNewDBMgr, PrtCancelHdl, Button *, pButton )
+{
+ pButton->GetParent()->Hide();
+ bCancel = TRUE;
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwNewDBMgr, PrtCancelHdl, Button *, pButton )
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Numberformat der Spalte ermitteln und ggfs. in
+ den uebergebenen Formatter uebertragen
+ --------------------------------------------------------------------*/
+
+#ifdef REPLACE_OFADBMGR
+ULONG SwNewDBMgr::GetColumnFmt( const String& rDBName,
+ const String& rTableName,
+ const String& rColNm,
+ SvNumberFormatter* pNFmtr,
+ long nLanguage )
+#else
+ULONG SwNewDBMgr::GetColumnFmt( const String& rDBName, const String& rColNm,
+ SvNumberFormatter* pNFmtr )
+#endif
+{
+ //JP 12.01.99: ggfs. das NumberFormat im Doc setzen
+ ULONG nRet = 0;
+#ifdef REPLACE_OFADBMGR
+ if(pNFmtr)
+ {
+ SvNumberFormatsSupplierObj* pNumFmt = new SvNumberFormatsSupplierObj( pNFmtr );
+ Reference< util::XNumberFormatsSupplier > xDocNumFmtsSupplier = pNumFmt;
+ Reference< XNumberFormats > xDocNumberFormats = xDocNumFmtsSupplier->getNumberFormats();
+ Reference< XNumberFormatTypes > xDocNumberFormatTypes(xDocNumberFormats, UNO_QUERY);
+
+ String sLanguage, sCountry;
+ ::ConvertLanguageToIsoNames( nLanguage, sLanguage, sCountry );
+ Locale aLocale;
+ aLocale.Language = sLanguage;
+ aLocale.Country = sCountry;
+
+ Reference< XDataSource> xSource;
+ Reference< XConnection> xConnection = SwNewDBMgr::GetConnection(rDBName, xSource);
+
+ //get the number formatter of the data source
+ Reference<XPropertySet> xSourceProps(xSource, UNO_QUERY);
+ Reference< XNumberFormats > xNumberFormats;
+ if(xSourceProps.is())
+ {
+ Any aFormats = xSourceProps->getPropertyValue(C2U("NumberFormatsSupplier"));
+ if(aFormats.hasValue())
+ {
+ Reference<XNumberFormatsSupplier> xSuppl = *(Reference<util::XNumberFormatsSupplier>*) aFormats.getValue();
+ if(xSuppl.is())
+ {
+ xNumberFormats = xSuppl->getNumberFormats();
+ }
+ }
+ }
+ Reference< XColumnsSupplier> xColsSupp = SwNewDBMgr::GetColumnSupplier(xConnection, rTableName);
+ if(xColsSupp.is())
+ {
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ if(!xCols->hasByName(rColNm))
+ return nRet;
+ Any aCol = xCols->getByName(rColNm);
+ Reference< XPropertySet > xColumnProp = *(Reference< XPropertySet >*)aCol.getValue();;
+
+ Any aFormat = xColumnProp->getPropertyValue(C2U("FormatKey"));
+ if(aFormat.hasValue())
+ {
+ sal_Int32 nFmt;
+ aFormat >>= nFmt;
+ if(xNumberFormats.is())
+ {
+ try
+ {
+ Reference<XPropertySet> xNumProps = xNumberFormats->getByKey( nFmt );
+ Any aFormat = xNumProps->getPropertyValue(C2U("FormatString"));
+ Any aLocale = xNumProps->getPropertyValue(C2U("Locale"));
+ OUString sFormat;
+ aFormat >>= sFormat;
+ com::sun::star::lang::Locale aLoc;
+ aLocale >>= aLoc;
+ nFmt = xDocNumberFormats->addNew( sFormat, aLoc );
+ nRet = nFmt;
+ }
+ catch(...)
+ {
+ DBG_ERROR("illegal number format key")
+ }
+ }
+ }
+ else
+ nRet = utl::getDefaultNumberFormat(xColumnProp, xDocNumberFormatTypes, aLocale);
+ }
+ else
+ nRet = pNFmtr->GetFormatIndex( NF_NUMBER_STANDARD, LANGUAGE_SYSTEM );
+ }
+#else
+ if( pNFmtr )
+ {
+ int nCol;
+ if( OpenDB( DBMGR_STD, rDBName, FALSE ) &&
+ 0 != ( nCol = GetColumnPos( DBMGR_STD, rColNm )))
+ nRet = GetRealColumnFmt( rColNm, GetColumnFormat( DBMGR_STD, nCol ),
+ *pNFmtr );
+ else
+ nRet = pNFmtr->GetFormatIndex( NF_NUMBER_STANDARD, LANGUAGE_SYSTEM );
+ }
+#endif
+ return nRet;
+}
+/* -----------------------------17.07.00 09:47--------------------------------
+
+ ---------------------------------------------------------------------------*/
+#ifdef REPLACE_OFADBMGR
+sal_Int32 SwNewDBMgr::GetColumnType( const String& rDBName,
+ const String& rTableName,
+ const String& rColNm )
+{
+ sal_Int32 nRet = DataType::SQLNULL;
+ Reference< XDataSource> xSource;
+ Reference< XConnection> xConnection = SwNewDBMgr::GetConnection(rDBName, xSource);
+ Reference< XColumnsSupplier> xColsSupp = SwNewDBMgr::GetColumnSupplier(xConnection, rTableName);
+ if(xColsSupp.is())
+ {
+ Reference <XNameAccess> xCols = xColsSupp->getColumns();
+ if(xCols->hasByName(rColNm))
+ {
+ Any aCol = xCols->getByName(rColNm);
+ Reference <XPropertySet> xCol = *(Reference <XPropertySet>*)aCol.getValue();
+ Any aType = xCol->getPropertyValue(C2S("Type"));
+ aType >>= nRet;
+ }
+ }
+ return nRet;
+}
+#else
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#else
+ULONG SwNewDBMgr::GetRealColumnFmt( const String& rColNm, ULONG nFmt,
+ SvNumberFormatter& rNFmtr )
+{
+ SvNumberFormatter* pDBNumFmtr;
+ const SvNumberformat* pNFmt;
+ SbaDBDataDefRef aDBDef = OpenColumnNames( DBMGR_STD );
+ if( aDBDef.Is() && 0 != ( pDBNumFmtr = aDBDef->GetFormatter() ) &&
+ 0 != (pNFmt = pDBNumFmtr->GetEntry( nFmt ) ) )
+ {
+ nFmt = rNFmtr.GetEntryKey( pNFmt->GetFormatstring(), pNFmt->GetLanguage() );
+ if( NUMBERFORMAT_ENTRY_NOT_FOUND == nFmt )
+ {
+ xub_StrLen nCheckPos;
+ short nType;
+ XubString aTmp( pNFmt->GetFormatstring() );
+ rNFmtr.PutEntry( aTmp, nCheckPos, nType, nFmt, pNFmt->GetLanguage() );
+ }
+ }
+ else
+ nFmt = rNFmtr.GetFormatIndex( NF_NUMBER_STANDARD, LANGUAGE_SYSTEM );
+
+ return nFmt;
+}
+BOOL SwNewDBMgr::IsDBCaseSensitive( const String& rName ) const
+{
+ BOOL bRet = FALSE;
+ String sDBName = OFF_APP()->LocalizeDBName( NATIONAL2INI, rName );
+ if( sDBName.Len() )
+ {
+ SbaDatabaseRef xConnection = pSbaObject->GetDatabase(sDBName, TRUE);
+ if( xConnection.Is() )
+ // JP 18.11.99: looked from
+ // \offmgr\source\sba\core\db\dbtabobj.cxx
+ bRet = SDB_IC_OBJECT == xConnection->GetIdentifierCase();
+ }
+ return bRet;
+}
+#endif
+
+#ifdef REPLACE_OFADBMGR
+/* -----------------------------03.07.00 17:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Reference< sdbc::XConnection> SwNewDBMgr::GetConnection(const String& rDataSource,
+ Reference<XDataSource>& rxSource)
+{
+ Reference< sdbc::XConnection> xConnection;
+ Reference<XNameAccess> xDBContext;
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+ if(xDBContext.is())
+ {
+ try
+ {
+ if(xDBContext->hasByName(rDataSource))
+ {
+ Any aDBSource = xDBContext->getByName(rDataSource);
+ Reference<XDataSource>* pxSource = (Reference<XDataSource>*)aDBSource.getValue();
+ OUString sDummy;
+ xConnection = (*pxSource)->getConnection(sDummy, sDummy);
+ rxSource = (*pxSource);
+ }
+ }
+ catch(...) {}
+ }
+ return xConnection;
+}
+/* -----------------------------03.07.00 17:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Reference< sdbcx::XColumnsSupplier> SwNewDBMgr::GetColumnSupplier(Reference<sdbc::XConnection> xConnection,
+ const String& rTableOrQuery,
+ BYTE eTableOrQuery)
+{
+ Reference< sdbcx::XColumnsSupplier> xRet;
+ if(SW_DB_SELECT_QUERY != eTableOrQuery)
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ if(xTbls->hasByName(rTableOrQuery))
+ try
+ {
+ Any aTable = xTbls->getByName(rTableOrQuery);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aTable.getValue();
+ xRet = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+ if(!xRet.is() && SW_DB_SELECT_QUERY != SW_DB_SELECT_TABLE)
+ {
+ Reference<XQueriesSupplier> xQSupplier = Reference<XQueriesSupplier>(xConnection, UNO_QUERY);
+ if(xQSupplier.is())
+ {
+ Reference<XNameAccess> xQueries = xQSupplier->getQueries();
+ if(xQueries->hasByName(rTableOrQuery))
+ try
+ {
+ Any aQuery = xQueries->getByName(rTableOrQuery);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aQuery.getValue();
+ xRet = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+ return xRet;
+}
+/* -----------------------------05.07.00 13:44--------------------------------
+
+ ---------------------------------------------------------------------------*/
+String SwNewDBMgr::GetDBField(Reference<XPropertySet> xColumnProps,
+ const SwDBFormatData& rDBFormatData,
+ double* pNumber)
+{
+ Reference< XColumn > xColumn(xColumnProps, UNO_QUERY);
+ String sRet;
+ DBG_ASSERT(xColumn.is(), "SwNewDBMgr::::ImportDBField: illegal arguments")
+ if(!xColumn.is())
+ return sRet;
+
+ Any aType = xColumnProps->getPropertyValue(C2U("Type"));
+ sal_Int32 eDataType;
+ aType >>= eDataType;
+ switch(eDataType)
+ {
+ case DataType::CHAR:
+ case DataType::VARCHAR:
+ case DataType::LONGVARCHAR:
+ sRet = xColumn->getString();
+ break;
+ case DataType::BIT:
+ case DataType::TINYINT:
+ case DataType::SMALLINT:
+ case DataType::INTEGER:
+ case DataType::BIGINT:
+ case DataType::FLOAT:
+ case DataType::REAL:
+ case DataType::DOUBLE:
+ case DataType::NUMERIC:
+ case DataType::DECIMAL:
+ case DataType::DATE:
+ case DataType::TIME:
+ case DataType::TIMESTAMP:
+ {
+ ::Date aTempDate(rDBFormatData.aNullDate.Day,
+ rDBFormatData.aNullDate.Month, rDBFormatData.aNullDate.Year);
+
+ try
+ {
+ sRet = utl::DBTypeConversion::getValue(
+ xColumnProps,
+ rDBFormatData.xFormatter,
+ rDBFormatData.aLocale,
+ aTempDate);
+ double fVal = xColumn->getDouble();
+ if (pNumber)
+ *pNumber = fVal;
+ }
+ catch(Exception aExcept)
+ {
+ DBG_ERROR("exception caught")
+ }
+
+ }
+ break;
+
+// case DataType::BINARY:
+// case DataType::VARBINARY:
+// case DataType::LONGVARBINARY:
+// case DataType::SQLNULL:
+// case DataType::OTHER:
+// case DataType::OBJECT:
+// case DataType::DISTINCT:
+// case DataType::STRUCT:
+// case DataType::ARRAY:
+// case DataType::BLOB:
+// case DataType::CLOB:
+// case DataType::REF:
+// default:
+ }
+// if (pFormat)
+// {
+// SFX_ITEMSET_GET(*pCol, pFormatItem, SfxUInt32Item, SBA_DEF_FMTVALUE, sal_True);
+// *pFormat = pFormatItem->GetValue();
+// }
+
+ return sRet;
+}
+/* -----------------------------06.07.00 14:26--------------------------------
+ opens a data source table or query and keeps the reference
+ until EndMerge() is called
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::OpenMergeSource(const String& rDataSource,
+ const String& rDataTableOrQuery,
+ const String& rStatement,
+ const SbaSelectionListRef xSelectionList)
+{
+ DBG_ASSERT(!bInMerge && !pMergeData, "merge already activated!")
+ bInMerge = TRUE;
+ pMergeData = new SwDSParam(rDataSource, rDataTableOrQuery, SW_DB_SELECT_UNKNOWN, rStatement);
+ //remove corresponding data from aDataSourceParams and insert the merge data
+ String sDBName(rDataSource);
+ sDBName += DB_DELIM;
+ sDBName += rDataTableOrQuery;
+ SwDSParam* pTemp = FindDSData(sDBName, FALSE);
+ if(pTemp)
+ pTemp = pMergeData;
+ else
+ aDataSourceParams.Insert(pMergeData, aDataSourceParams.Count());
+
+ Reference<XDataSource> xSource;
+ pMergeData->xConnection = SwNewDBMgr::GetConnection(rDataSource, xSource);
+ pMergeData->xSelectionList = xSelectionList;
+ if( xSelectionList.Is() && xSelectionList->Count() && (long)xSelectionList->GetObject(0) != -1L )
+ {
+ pMergeData->bSelectionList = TRUE;
+ }
+
+ if(pMergeData->xConnection.is())
+ {
+ try
+ {
+ pMergeData->bScrollable = pMergeData->xConnection->getMetaData()
+ ->supportsResultSetType((sal_Int32)ResultSetType::SCROLL_INSENSITIVE);
+ pMergeData->xStatement = pMergeData->xConnection->createStatement();
+ pMergeData->xResultSet = pMergeData->xStatement->executeQuery( rStatement );
+ //after executeQuery the cursor must be positioned
+ if(pMergeData->bSelectionList)
+ {
+ if(pMergeData->bScrollable)
+ {
+ pMergeData->bEndOfDB = !pMergeData->xResultSet->absolute(
+ (ULONG)pMergeData->xSelectionList->GetObject( 0 ) );
+ }
+ else
+ {
+ ULONG nPos = (ULONG)pMergeData->xSelectionList->GetObject( 0 );
+ while(nPos > 0 && !pMergeData->bEndOfDB)
+ {
+ pMergeData->bEndOfDB |= !pMergeData->xResultSet->next();
+ nPos--;
+ }
+ }
+ if(1 == pMergeData->xSelectionList->Count())
+ pMergeData->bEndOfDB = TRUE;
+ }
+ else
+ {
+ pMergeData->bEndOfDB = !pMergeData->xResultSet->next();
+ ++pMergeData->nSelectionIndex;
+ }
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.util.NumberFormatter" ));
+ pMergeData->xFormatter = Reference<util::XNumberFormatter>(xInstance, UNO_QUERY) ;
+ }
+
+ Reference<XPropertySet> xSourceProps(xSource, UNO_QUERY);
+ if(xSourceProps.is())
+ {
+ Any aFormats = xSourceProps->getPropertyValue(C2U("NumberFormatsSupplier"));
+ if(aFormats.hasValue())
+ {
+ Reference<XNumberFormatsSupplier> xSuppl = *(Reference<util::XNumberFormatsSupplier>*) aFormats.getValue();
+ if(xSuppl.is())
+ {
+ Reference< XPropertySet > xSettings = xSuppl->getNumberFormatSettings();
+ Any aNull = xSettings->getPropertyValue(C2U("NullDate"));
+ if(aNull.hasValue())
+ pMergeData->aNullDate = *(util::Date*)aNull.getValue();
+ }
+ }
+ }
+ }
+ catch(Exception aExcept)
+ {
+ DBG_ERROR("exception caught")
+ }
+ }
+ BOOL bRet = pMergeData && pMergeData->xResultSet.is();
+ if(!bRet)
+ pMergeData = 0;
+ return bRet;
+}
+/* -----------------------------06.07.00 14:28--------------------------------
+ releases the merge data source table or query after merge is completed
+ ---------------------------------------------------------------------------*/
+void SwNewDBMgr::EndMerge()
+{
+ DBG_ASSERT(bInMerge, "merge is not active")
+ bInMerge = FALSE;
+ pMergeData = 0;
+}
+/* -----------------------------06.07.00 14:28--------------------------------
+ checks if a desired data source table or query is open
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::IsDataSourceOpen(const String& rDataSource, const String& rTableOrQuery) const
+{
+ if(pMergeData)
+ {
+ return rDataSource == pMergeData->sDataSource &&
+ rTableOrQuery == pMergeData->sTableOrQuery &&
+ pMergeData->xResultSet.is();
+ }
+ else
+ return FALSE;
+}
+/* -----------------------------17.07.00 16:44--------------------------------
+ read column data a a specified position
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::GetColumnCnt(const String& rSourceName, const String& rTableName,
+ const String& rColumnName, sal_uInt32 nAbsRecordId,
+ long nLanguage,
+ String& rResult, double* pNumber)
+{
+ BOOL bRet = FALSE;
+ //check if it's the merge data source
+ if(pMergeData &&
+ rSourceName == pMergeData->sDataSource &&
+ rTableName == pMergeData->sTableOrQuery)
+ {
+ if(!pMergeData->xResultSet.is())
+ return FALSE;
+ //keep the old index
+ sal_Int32 nOldRow = pMergeData->xResultSet->getRow();
+ //position to the desired index
+ BOOL bMove;
+ if(nOldRow != nAbsRecordId)
+ bMove = lcl_MoveAbsolute(pMergeData, nAbsRecordId);
+ if(bMove)
+ {
+ bRet = lcl_GetColumnCnt(pMergeData, rColumnName, nLanguage, rResult, pNumber);
+ }
+ if(nOldRow != nAbsRecordId)
+ bMove = lcl_MoveAbsolute(pMergeData, nOldRow);
+ }
+ //
+ return bRet;
+}
+/* -----------------------------06.07.00 16:47--------------------------------
+ reads the column data at the current position
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::GetMergeColumnCnt(const String& rColumnName, USHORT nLanguage,
+ String &rResult, double *pNumber, sal_uInt32 *pFormat)
+{
+ if(!pMergeData || !pMergeData->xResultSet.is())
+ return FALSE;
+
+ BOOL bRet = lcl_GetColumnCnt(pMergeData, rColumnName, nLanguage, rResult, pNumber);
+ return bRet;
+}
+/* -----------------------------07.07.00 14:28--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::ToNextMergeRecord()
+{
+ DBG_ASSERT(pMergeData && pMergeData->xResultSet.is(), "no data source in merge")
+ if(!pMergeData || !pMergeData->xResultSet.is() || pMergeData->bEndOfDB)
+ return FALSE;
+ try
+ {
+ if(pMergeData->bSelectionList)
+ {
+ if(pMergeData->bScrollable)
+ {
+ pMergeData->bEndOfDB = !pMergeData->xResultSet->absolute(
+ (ULONG)pMergeData->xSelectionList->GetObject( ++pMergeData->nSelectionIndex ) );
+ }
+ else
+ {
+ ULONG nOldPos = pMergeData->nSelectionIndex ?
+ (ULONG)pMergeData->xSelectionList->GetObject(pMergeData->nSelectionIndex): 0;
+ ULONG nPos = (ULONG)pMergeData->xSelectionList->GetObject( ++pMergeData->nSelectionIndex );
+ DBG_ASSERT(nPos >=0, "selection invalid!")
+ long nDiff = nPos - nOldPos;
+ //if a backward move is necessary then the result set must be created again
+ if(nDiff < 0)
+ {
+ try
+ {
+ pMergeData->xResultSet = pMergeData->xStatement->executeQuery( pMergeData->sStatement );
+ }
+ catch(...)
+ {
+ pMergeData->bEndOfDB = TRUE;
+ }
+ nDiff = nPos;
+ }
+ while(nDiff > 0 && !pMergeData->bEndOfDB)
+ {
+ pMergeData->bEndOfDB |= !pMergeData->xResultSet->next();
+ nDiff--;
+ }
+ }
+ if(pMergeData->nSelectionIndex >= pMergeData->xSelectionList->Count())
+ pMergeData->bEndOfDB = TRUE;
+ }
+ else
+ {
+ pMergeData->bEndOfDB = !pMergeData->xResultSet->next();
+ ++pMergeData->nSelectionIndex;
+ }
+ }
+ catch(Exception aExcept)
+ {
+ DBG_ERROR("exception caught")
+ }
+ return TRUE;
+}
+/* -----------------------------13.07.00 17:23--------------------------------
+ synchronized labels contain a next record field at their end
+ to assure that the next page can be created in mail merge
+ the cursor position must be validated
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::ExistsNextRecord() const
+{
+ return pMergeData && !pMergeData->bEndOfDB;
+}
+/* -----------------------------13.07.00 10:41--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_uInt32 SwNewDBMgr::GetSelectedRecordId()
+{
+ sal_uInt32 nRet = 0;
+ DBG_ASSERT(pMergeData && pMergeData->xResultSet.is(), "no data source in merge")
+ if(!pMergeData || !pMergeData->xResultSet.is())
+ return FALSE;
+ try
+ {
+ nRet = pMergeData->xResultSet->getRow();
+ }
+ catch(Exception aExcept)
+ {
+ DBG_ERROR("exception caught")
+ }
+ return nRet;
+}
+/* -----------------------------13.07.00 10:58--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Bool SwNewDBMgr::ToRecordId(sal_Int32 nSet)
+{
+ DBG_ASSERT(pMergeData && pMergeData->xResultSet.is(), "no data source in merge")
+ if(!pMergeData || !pMergeData->xResultSet.is()|| nSet < 0)
+ return FALSE;
+ sal_Bool bRet = FALSE;
+ sal_Int32 nAbsPos = -1;
+ if(pMergeData->bSelectionList)
+ {
+ if(pMergeData->xSelectionList->Count() > nSet)
+ {
+ nAbsPos = (sal_Int32)pMergeData->xSelectionList->GetObject(nSet);
+ }
+ }
+ else
+ nAbsPos = nSet;
+
+ if(nAbsPos >= 0)
+ {
+ bRet = lcl_MoveAbsolute(pMergeData, nAbsPos);
+ pMergeData->bEndOfDB = !bRet;
+ }
+ return bRet;
+}
+/* -----------------------------17.07.00 11:14--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::ShowInBeamer(const String& rDBName, const String& rTableName,
+ BYTE nType, const String& rStatement)
+{
+ DBG_ERROR("no beamer interface available!")
+ return FALSE;
+}
+/* -----------------------------17.07.00 14:50--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void lcl_ExtractMembers(const String& rDBName, String& sSource, String& sTable, String& sStatement)
+{
+ sSource = rDBName.GetToken(0, DB_DELIM);
+ sTable = rDBName.GetToken(0).GetToken(1, DB_DELIM);
+ sal_uInt16 nPos;
+ if ((nPos = rDBName.Search(';')) != STRING_NOTFOUND)
+ sStatement = rDBName.Copy(nPos + 1);
+}
+/* -----------------------------17.07.00 14:17--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwNewDBMgr::OpenDataSource(const String& rDataSource, const String& rTableOrQuery)
+{
+ String sDBName = rDataSource;
+ sDBName += DB_DELIM;
+ sDBName += rTableOrQuery;
+ SwDSParam* pFound = FindDSData(sDBName, TRUE);
+ pFound->bSelectionList = pFound->xSelectionList.Is() && pFound->xSelectionList->Count();
+ Reference< XDataSource> xSource;
+ if(pFound->xResultSet.is())
+ return TRUE;
+ pFound->xConnection = SwNewDBMgr::GetConnection(rDataSource, xSource );
+ if(pFound->xConnection.is())
+ {
+ try
+ {
+ pFound->bScrollable = pFound->xConnection->getMetaData()
+ ->supportsResultSetType((sal_Int32)ResultSetType::SCROLL_INSENSITIVE);
+ pFound->xStatement = pFound->xConnection->createStatement();
+ pFound->xResultSet = pFound->xStatement->executeQuery( pFound->sStatement );
+
+ //after executeQuery the cursor must be positioned
+ if(pFound->bSelectionList)
+ {
+ if(pFound->bScrollable)
+ {
+ pFound->bEndOfDB = !pMergeData->xResultSet->absolute(
+ (ULONG)pFound->xSelectionList->GetObject( 0 ) );
+ }
+ else
+ {
+ ULONG nPos = (ULONG)pFound->xSelectionList->GetObject( 0 );
+ while(nPos > 0 && !pFound->bEndOfDB)
+ {
+ pFound->bEndOfDB |= !pFound->xResultSet->next();
+ nPos--;
+ }
+ }
+ if(1 == pFound->xSelectionList->Count())
+ pFound->bEndOfDB = TRUE;
+ }
+ else
+ {
+ pFound->bEndOfDB = !pMergeData->xResultSet->next();
+ ++pMergeData->nSelectionIndex;
+ }
+ }
+ catch(...)
+ {
+ pFound->xResultSet = 0;
+ pFound->xStatement = 0;
+ pFound->xConnection = 0;
+ }
+ }
+ return pFound->xResultSet.is();
+}
+/* -----------------------------17.07.00 15:55--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_uInt32 SwNewDBMgr::GetSelectedRecordId(const String& rDataSource, const String& rTableOrQuery)
+{
+ sal_uInt32 nRet = -1;
+ //check for merge data source first
+ if(pMergeData && rDataSource == pMergeData->sDataSource &&
+ rTableOrQuery == pMergeData->sTableOrQuery &&
+ pMergeData->xResultSet.is())
+ nRet = GetSelectedRecordId();
+ else
+ {
+ String sDBName(rDataSource);
+ sDBName += DB_DELIM;
+ sDBName += rTableOrQuery;
+ SwDSParam* pFound = SwNewDBMgr::FindDSData(sDBName, FALSE);
+ if(pFound && pFound->xResultSet.is())
+ {
+ try
+ {
+ nRet = pFound->xResultSet->getRow();
+ }
+ catch(...){}
+ }
+ }
+ return nRet;
+}
+
+/* -----------------------------17.07.00 14:18--------------------------------
+ close all data sources - after fields were updated
+ ---------------------------------------------------------------------------*/
+void SwNewDBMgr::CloseAll(BOOL bIncludingMerge)
+{
+ for(USHORT nPos = 0; nPos < aDataSourceParams.Count(); nPos++)
+ {
+ SwDSParam* pParam = aDataSourceParams[nPos];
+ if(bIncludingMerge || pParam != pMergeData)
+ {
+ pParam->xResultSet = 0;
+ pParam->xStatement = 0;
+ pParam->xConnection = 0;
+ }
+ }
+}
+/* -----------------------------17.07.00 14:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwDSParam* SwNewDBMgr::FindDSData(const String& rDBName, BOOL bCreate)
+{
+ String sSource;
+ String sTable;
+ String sStatement;
+ lcl_ExtractMembers(rDBName, sSource, sTable, sStatement);
+ SwDSParam* pFound = 0;
+
+ for(USHORT nPos = 0; nPos < aDataSourceParams.Count(); nPos++)
+ {
+ SwDSParam* pParam = aDataSourceParams[nPos];
+ if(sSource == pParam->sDataSource &&
+ sTable == pParam->sTableOrQuery)
+ {
+ pFound = pParam;
+ break;
+ }
+ }
+ if(bCreate)
+ {
+ if(!pFound)
+ {
+ pFound = new SwDSParam(sSource, sTable, SW_DB_SELECT_UNKNOWN, sStatement);
+ aDataSourceParams.Insert(pFound, aDataSourceParams.Count());
+ }
+ else
+ pFound->sStatement = sStatement;
+ }
+ return pFound;
+}
+/* -----------------------------17.07.00 14:31--------------------------------
+ rDBName: <Source> + DB_DELIM + <Table>; + <Statement>
+ ---------------------------------------------------------------------------*/
+void SwNewDBMgr::AddDSData(const String& rDBName, long nSelStart, long nSelEnd)
+{
+ SwDSParam* pFound = FindDSData(rDBName, TRUE);
+ if(pFound->xSelectionList.Is())
+ pFound->xSelectionList->Clear();
+ else
+ pFound->xSelectionList = new SbaSelectionList;
+ if (nSelStart > 0)
+ {
+ if (nSelEnd < nSelStart)
+ {
+ sal_uInt32 nZw = nSelEnd;
+ nSelEnd = nSelStart;
+ nSelStart = nZw;
+ }
+
+ for (long i = nSelStart; i <= nSelEnd; i++)
+ pFound->xSelectionList->Insert((void*)i , LIST_APPEND);
+ }
+}
+/* -----------------------------17.07.00 14:31--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwNewDBMgr::GetDSSelection(const String& rDBDesc, long& rSelStart, long& rSelEnd)
+{
+ SwDSParam* pFound = FindDSData(rDBDesc, FALSE);
+ if(!pFound || !pFound->xSelectionList.Is() || !pFound->xSelectionList->Count())
+ rSelStart = -1L;
+ else
+ {
+ if(pFound->xSelectionList->Count())
+ {
+ rSelStart = (sal_uInt32)pFound->xSelectionList->GetObject(0);
+ for (sal_uInt32 i = 1; i < pFound->xSelectionList->Count(); i++)
+ {
+ long nPrev = (sal_uInt32)pFound->xSelectionList->GetObject(i - 1);
+ long nNow = (sal_uInt32)pFound->xSelectionList->GetObject(i);
+
+ if (nNow - nPrev > 1)
+ {
+ rSelEnd = nPrev;
+ return;
+ }
+ }
+ rSelEnd = (sal_uInt32)pFound->xSelectionList->GetObject(i - 1);
+ }
+ }
+}
+/* -----------------------------17.07.00 14:34--------------------------------
+
+ ---------------------------------------------------------------------------*/
+const String& SwNewDBMgr::GetAddressDBName()
+{
+ DBG_ERROR("no address data base selection available")
+ return aEmptyStr;
+}
+/* -----------------------------18.07.00 13:13--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence<OUString> SwNewDBMgr::GetExistingDatabaseNames()
+{
+ Reference<XNameAccess> xDBContext;
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ if(xDBContext.is())
+ {
+ return xDBContext->getElementNames();
+ }
+ return Sequence<OUString>();
+}
+#endif //REPLACE_OFADBMGR
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.372 2000/09/18 16:05:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.371 2000/08/08 10:10:39 os
+ ucb transfer command used
+
+ Revision 1.370 2000/07/18 12:50:07 os
+ replace ofadbmgr
+
+ Revision 1.369 2000/07/07 15:25:43 os
+ replace ofadbmgr
+
+ Revision 1.368 2000/07/06 07:59:10 os
+ replace ofadbmgr
+
+ Revision 1.367 2000/07/05 08:23:06 os
+ Replace ofadbmgr
+
+ Revision 1.366 2000/06/26 13:18:45 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.365 2000/06/13 09:57:36 os
+ using UCB
+
+ Revision 1.364 2000/06/08 09:46:48 os
+ ContentBroker not in SwModule
+
+ Revision 1.363 2000/06/07 13:26:07 os
+ using UCB
+
+ Revision 1.362 2000/05/23 18:11:05 jp
+ Bugfixes for Unicode
+
+ Revision 1.361 2000/04/17 10:01:56 os
+ #74698# detect synchronized documents with an additional DBNextSet - field
+
+ Revision 1.360 2000/04/11 08:03:52 os
+ UNICODE
+
+ Revision 1.359 2000/02/11 14:44:23 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.358 2000/01/06 18:20:27 jp
+ Bug #71413#: MergeMailFiles: HandleErrors, created filenames starts with 1
+
+ Revision 1.357 2000/01/06 07:31:29 os
+ #71436# mail merge dialog: execute via status method disposed
+
+ Revision 1.356 1999/12/22 15:57:02 jp
+ Bug #71238#: MergePrint - behind the first call erase the JobName
+
+ Revision 1.355 1999/12/14 14:35:04 jp
+ Bug #69595#: print can create single Jobs
+
+ Revision 1.354 1999/11/23 11:20:55 os
+ comment
+
+ Revision 1.353 1999/11/18 21:02:54 jp
+ for Bug #68744#: new: IsCaseSensitive
+
+
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/dbui/dbtree.cxx b/sw/source/ui/dbui/dbtree.cxx
new file mode 100644
index 000000000000..75c7ef3fd41e
--- /dev/null
+++ b/sw/source/ui/dbui/dbtree.cxx
@@ -0,0 +1,833 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbtree.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+// INCLUDE ---------------------------------------------------------------
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SOT_FORMATS_HXX
+#include <sot/formats.hxx>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
+#include <com/sun/star/sdb/XQueriesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#else
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+#ifndef _SBA_SBADB_HXX //autogen
+#include <offmgr/sbadb.hxx>
+#endif
+#ifndef _SBAITEMS_HRC
+#include <offmgr/sbaitems.hrc>
+#endif
+#ifndef _SBAITEMS_HXX
+#include <offmgr/sbaitems.hxx>
+#endif
+
+#endif //REPLACE_OFADBMGR
+
+#ifndef _DRAG_HXX //autogen
+#include <vcl/drag.hxx>
+#endif
+
+#include "helpid.h"
+#include "dbmgr.hxx"
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+
+#include "dbui.hrc"
+#include "dbtree.hxx"
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdb;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+#endif
+
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+// STATIC DATA -----------------------------------------------------------
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+SwDBTreeList::SwDBTreeList(Window *pParent, const ResId& rResId, const String& rDefDBName, const BOOL bShowCol):
+
+ SvTreeListBox (pParent, rResId),
+
+ aRootClosed (SW_RES(BMP_ROOT_CLOSED)),
+ aRootOpened (SW_RES(BMP_ROOT_OPENED)),
+ aDBBMP (SW_RES(BMP_DB)),
+ aTableBMP (SW_RES(BMP_TABLE)),
+ aQueryBMP (SW_RES(BMP_QUERY)),
+
+ sDefDBName (rDefDBName),
+ bShowColumns (bShowCol),
+ bInitialized (FALSE)
+{
+#ifdef REPLACE_OFADBMGR
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+#endif
+
+ SetHelpId(HID_DB_SELECTION_TLB);
+
+ if (IsVisible())
+ InitTreeList();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+ SwDBTreeList::~SwDBTreeList()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+void SwDBTreeList::InitTreeList()
+{
+#ifdef REPLACE_OFADBMGR
+ if(!xDBContext.is())
+ return;
+#endif
+ SetSelectionMode(SINGLE_SELECTION);
+ SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
+ // Font nicht setzen, damit der Font des Controls uebernommen wird!
+ SetSpaceBetweenEntries(0);
+ SetNodeBitmaps( aRootClosed, aRootOpened );
+
+ SetDragDropMode(SV_DRAGDROP_APP_COPY);
+
+
+ GetModel()->SetCompareHdl(LINK(this, SwDBTreeList, DBCompare));
+
+#ifdef REPLACE_OFADBMGR
+ Sequence<OUString> aDBNames = xDBContext->getElementNames();
+ const OUString* pDBNames = aDBNames.getConstArray();
+ long nCount = aDBNames.getLength();
+
+ for(long i = 0; i < nCount; i++)
+ {
+ String sDBName(pDBNames[i]);
+ InsertEntry(sDBName, aDBBMP, aDBBMP, NULL, TRUE);
+ }
+ String sDBName(sDefDBName.GetToken(0, DB_DELIM));
+ String sTableName(sDefDBName.GetToken(1, DB_DELIM));
+ String sColumnName(sDefDBName.GetToken(2, DB_DELIM));
+ Select(sDBName, sTableName, sColumnName);
+
+#else
+ OfficeApplication* pOffApp = OFF_APP();
+ SbaObject* pSbaObject = pOffApp->GetSbaObject();
+ String sDBNames = pSbaObject->GetDatabaseNames();
+ USHORT nCount = sDBNames.GetTokenCount();
+
+ for (USHORT i = 0; i < nCount; i++)
+ {
+ String sDBName(sDBNames.GetToken(i));
+ InsertEntry(sDBName, aDBBMP, aDBBMP, NULL, TRUE);
+ }
+ Select(sDefDBName);
+#endif
+
+ bInitialized = TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwDBTreeList::ShowColumns(BOOL bShowCol)
+{
+ if (bShowCol != bShowColumns)
+ {
+ bShowColumns = bShowCol;
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sDBName(GetDBName(sTableName, sColumnName));
+#else
+ String sDBName(GetDBName());
+#endif
+
+ SetUpdateMode(FALSE);
+
+ SvLBoxEntry* pEntry = First();
+
+ while (pEntry)
+ {
+ pEntry = (SvLBoxEntry*)GetRootLevelParent( pEntry );
+ Collapse(pEntry); // zuklappen
+
+ SvLBoxEntry* pChild;
+ while ((pChild = FirstChild(pEntry)) != 0L)
+ GetModel()->Remove(pChild);
+
+ pEntry = Next(pEntry);
+ }
+
+ if (sDBName.Len())
+ {
+#ifdef REPLACE_OFADBMGR
+ Select(sDBName, sTableName, sColumnName); // force RequestingChilds
+#else
+ Select(sDBName); // RequestingChilds erzwingen
+#endif
+ }
+ SetUpdateMode(TRUE);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwDBTreeList::RequestingChilds(SvLBoxEntry* pParent)
+{
+ if (!pParent->HasChilds())
+ {
+#ifdef REPLACE_OFADBMGR
+
+ if (GetParent(pParent)) // column names
+ {
+
+ String sSourceName = GetEntryText(GetParent(pParent));
+ String sTableName = GetEntryText(pParent);
+
+ if(!xDBContext->hasByName(sSourceName))
+ return;
+ Any aDBSource = xDBContext->getByName(sSourceName);
+ Reference<XDataSource>* pxSource = (Reference<XDataSource>*)aDBSource.getValue();
+ BOOL bTable = pParent->GetUserData != 0;
+ Reference<XConnection> xConnection;
+ try
+ {
+ OUString sDummy;
+ xConnection = (*pxSource)->getConnection(sDummy, sDummy);
+ }
+ catch(...) {}
+ Reference<XColumnsSupplier> xColsSupplier;
+ if(bTable)
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ DBG_ASSERT(xTbls->hasByName(sTableName), "table not available anymore?")
+ try
+ {
+ Any aTable = xTbls->getByName(sTableName);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aTable.getValue();
+ xColsSupplier = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+ else
+ {
+ Reference<XQueriesSupplier> xQSupplier = Reference<XQueriesSupplier>(xConnection, UNO_QUERY);
+ if(xQSupplier.is())
+ {
+ Reference<XNameAccess> xQueries = xQSupplier->getQueries();
+ DBG_ASSERT(xQueries->hasByName(sTableName), "table not available anymore?")
+ try
+ {
+ Any aQuery = xQueries->getByName(sTableName);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aQuery.getValue();
+ xColsSupplier = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+
+ if(xColsSupplier.is())
+ {
+ Reference <XNameAccess> xCols = xColsSupplier->getColumns();
+ Sequence<OUString> aColNames = xCols->getElementNames();
+ const OUString* pColNames = aColNames.getConstArray();
+ long nCount = aColNames.getLength();
+ for (long i = 0; i < nCount; i++)
+ {
+ String sName = pColNames[i];
+ if(bTable)
+ InsertEntry(sName, pParent);
+ else
+ InsertEntry(sName, pParent);
+ }
+ }
+ }
+ else // Tabellennamen
+ {
+ String sSourceName = GetEntryText(pParent);
+ if(!xDBContext->hasByName(sSourceName))
+ return;
+ Any aDBSource = xDBContext->getByName(sSourceName);
+ Reference<XDataSource>* pxSource = (Reference<XDataSource>*)aDBSource.getValue();
+
+ Reference<XConnection> xConnection;
+ try
+ {
+ OUString sDummy;
+ xConnection = (*pxSource)->getConnection(sDummy, sDummy);
+ }
+ catch(...) {}
+// SbaDatabaseRef pConnection = pSbaObject->GetDatabase(sDBName, TRUE);
+ if (xConnection.is())
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ Sequence<OUString> aTblNames = xTbls->getElementNames();
+ String sTableName;
+ long nCount = aTblNames.getLength();
+ const OUString* pTblNames = aTblNames.getConstArray();
+ for (long i = 0; i < nCount; i++)
+ {
+ sTableName = pTblNames[i];
+ SvLBoxEntry* pTableEntry = InsertEntry(sTableName, aTableBMP, aTableBMP, pParent, bShowColumns);
+ //to discriminate between queries and tables the user data of table entries is set
+ pTableEntry->SetUserData((void*)1);
+ }
+ }
+
+ Reference<XQueriesSupplier> xQSupplier = Reference<XQueriesSupplier>(xConnection, UNO_QUERY);
+ if(xQSupplier.is())
+ {
+ Reference<XNameAccess> xQueries = xQSupplier->getQueries();
+ Sequence<OUString> aQueryNames = xQueries->getElementNames();
+ String sQueryName;
+ long nCount = aQueryNames.getLength();
+ const OUString* pQueryNames = aQueryNames.getConstArray();
+ for (long i = 0; i < nCount; i++)
+ {
+ sQueryName = pQueryNames[i];
+ InsertEntry(sQueryName, aQueryBMP, aQueryBMP, pParent, bShowColumns);
+ }
+ }
+ }
+ }
+#else
+ SbaObject* pSbaObject = OFF_APP()->GetSbaObject();
+ if (GetParent(pParent)) // Spaltennamen
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ SwNewDBMgr *pMgr = pSh->GetNewDBMgr();
+
+ String sDBName = GetEntryText(GetParent(pParent));
+ sDBName += DB_DELIM;
+ sDBName += GetEntryText(pParent);
+
+ if (!sDBName.Len() || (!pMgr->IsDBOpen(DBMGR_STD, sDBName) && !pMgr->OpenDB(DBMGR_STD, sDBName, TRUE)))
+ return;
+
+ SbaDBDataDefRef aDBDef = pMgr->OpenColumnNames(DBMGR_STD);
+
+ if (aDBDef.Is())
+ {
+ const SbaColumnList& rCols = aDBDef->GetOriginalColumns();
+
+ for (USHORT i = 1; i <= rCols.Count(); i++)
+ {
+ const SbaNameItem* pNameItem = (const SbaNameItem*)&rCols.GetObject(i-1)->Get(SBA_DEF_FLTNAME);
+ InsertEntry(pNameItem->GetValue(), pParent);
+ }
+ }
+ pMgr->CloseAll(DBMGR_STD);
+ }
+ else // Tabellennamen
+ {
+ String sDBName = GetEntryText(pParent);
+
+ SbaDatabaseRef pConnection = pSbaObject->GetDatabase(sDBName, TRUE);
+ if (pConnection.Is())
+ {
+ String sTableName;
+
+ USHORT nCount = pConnection->GetObjectCount(dbTable);
+
+ for (USHORT i = 0; i < nCount; i++)
+ {
+ sTableName = pConnection->GetObjectName(dbTable, i);
+ InsertEntry(sTableName, aTableBMP, aTableBMP, pParent, bShowColumns);
+ }
+
+ nCount = pConnection->GetObjectCount(dbQuery);
+
+ for (i = 0; i < nCount; i++)
+ {
+ sTableName = pConnection->GetObjectName(dbQuery, i);
+ InsertEntry(sTableName, aQueryBMP, aQueryBMP, pParent, bShowColumns);
+ }
+ }
+ }
+#endif
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwDBTreeList, DBCompare, SvSortData*, pData )
+{
+ SvLBoxEntry* pRight = (SvLBoxEntry*)(pData->pRight );
+
+ if (GetParent(pRight) && GetParent(GetParent(pRight)))
+ return COMPARE_GREATER; // Spaltennamen nicht sortieren
+
+ return DefaultCompare(pData); // Sonst Basisklasse rufen
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+#ifdef REPLACE_OFADBMGR
+String SwDBTreeList::GetDBName(String& rTableName, String& rColumnName, BOOL* pbIsTable)
+#else
+String SwDBTreeList::GetDBName() const
+#endif
+{
+ String sDBName;
+#ifdef REPLACE_OFADBMGR
+#else
+ String sColumnName;
+#endif
+ SvLBoxEntry* pEntry = FirstSelected();
+
+ if (pEntry && GetParent(pEntry))
+ {
+ if (GetParent(GetParent(pEntry)))
+ {
+#ifdef REPLACE_OFADBMGR
+ rColumnName = GetEntryText(pEntry);
+#else
+ sColumnName = GetEntryText(pEntry);
+#endif
+ pEntry = GetParent(pEntry); // Spaltenname war selektiert
+ }
+ sDBName = GetEntryText(GetParent(pEntry));
+#ifdef REPLACE_OFADBMGR
+ if(pbIsTable)
+ {
+ *pbIsTable = pEntry->GetUserData() != 0;
+ }
+ rTableName = GetEntryText(pEntry);
+#else
+ sDBName += DB_DELIM;
+ sDBName += GetEntryText(pEntry);
+
+ if (sColumnName.Len())
+ {
+ sDBName += DB_DELIM;
+ sDBName += sColumnName;
+ }
+#endif
+ }
+ return sDBName;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Format: Datenbank.Tabelle
+------------------------------------------------------------------------*/
+
+
+#ifdef REPLACE_OFADBMGR
+void SwDBTreeList::Select(const String& rDBName, const String& rTableName, const String& rColumnName)
+#else
+void SwDBTreeList::Select(const String& rDataBaseName)
+#endif
+{
+#ifdef REPLACE_OFADBMGR
+#else
+ String rDBName(rDataBaseName.GetToken(0, DB_DELIM));
+ String rTableName(rDataBaseName.GetToken(1, DB_DELIM));
+ String rColumnName(rDataBaseName.GetToken(2, DB_DELIM));
+#endif
+ SvLBoxEntry* pParent;
+ SvLBoxEntry* pChild;
+ USHORT nParent = 0;
+ USHORT nChild = 0;
+
+ while ((pParent = GetEntry(nParent++)) != NULL)
+ {
+ if (rDBName == GetEntryText(pParent))
+ {
+ if (!pParent->HasChilds())
+ RequestingChilds(pParent);
+ while ((pChild = GetEntry(pParent, nChild++)) != NULL)
+ {
+ if (rTableName == GetEntryText(pChild))
+ {
+ pParent = pChild;
+
+ if (bShowColumns && rColumnName.Len())
+ {
+ nChild = 0;
+
+ if (!pParent->HasChilds())
+ RequestingChilds(pParent);
+
+ while ((pChild = GetEntry(pParent, nChild++)) != NULL)
+ if (rColumnName == GetEntryText(pChild))
+ break;
+ }
+ if (!pChild)
+ pChild = pParent;
+
+ MakeVisible(pChild);
+ SvTreeListBox::Select(pChild);
+ return;
+ }
+ }
+ }
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Initialisierung verz”gern
+------------------------------------------------------------------------*/
+
+void SwDBTreeList::Show()
+{
+ if (!bInitialized)
+ InitTreeList();
+
+ SvTreeListBox::Show();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwDBTreeList::Command( const CommandEvent& rCEvt )
+{
+ switch( rCEvt.GetCommand() )
+ {
+ case COMMAND_STARTDRAG:
+ StartExecuteDrag();
+ ExecuteDrag(Pointer(POINTER_MOVEDATA), Pointer(POINTER_COPYDATA),
+ Pointer(POINTER_LINKDATA), DRAG_COPYABLE | DRAG_LINKABLE);
+ break;
+ default:
+ SvTreeListBox::Command(rCEvt);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwDBTreeList::StartExecuteDrag()
+{
+ DragServer::Clear();
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sDBName(GetDBName(sTableName, sColumnName));
+ if(sDBName.Len())
+ {
+ if (sColumnName.Len())
+ {
+ String aCopyData = sDBName;
+ aCopyData += char(11);
+ aCopyData += sTableName;
+ aCopyData += char(11);
+ aCopyData += String(String::CreateFromAscii("0"));
+ aCopyData += char(11);
+ aCopyData += sColumnName;
+
+ // Datenbankfeld draggen
+ DragServer::CopyData(aCopyData.GetBuffer(), aCopyData.Len() + 1,
+ SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE);
+ }
+
+ sDBName += '.';
+ sDBName += sTableName;
+ if(sColumnName.Len())
+ {
+ sDBName += '.';
+ sDBName += sColumnName;
+ }
+ DragServer::CopyString(sDBName);
+ }
+#else
+ String sDBName(GetDBName());
+ if(sDBName.Len())
+ {
+ if (sDBName.GetTokenCount(DB_DELIM) > 2) // Spaltenname ist enthalten
+ {
+ String aCopyData = sDBName.GetToken(0, DB_DELIM);
+ aCopyData += char(11);
+ aCopyData += sDBName.GetToken(1, DB_DELIM);
+ aCopyData += char(11);
+ aCopyData += String(String::CreateFromAscii("0"));
+ aCopyData += char(11);
+ aCopyData += sDBName.GetToken(2, DB_DELIM);
+
+ // Datenbankfeld draggen
+ DragServer::CopyData(aCopyData.GetBuffer(), aCopyData.Len() + 1,
+ SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE);
+ }
+
+ USHORT nPos;
+ while ((nPos = sDBName.SearchAndReplace(DB_DELIM, '.')) != STRING_NOTFOUND);
+ DragServer::CopyString(sDBName);
+ }
+#endif
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL SwDBTreeList::QueryDrop( DropEvent& rEvt)
+{
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.41 2000/09/18 16:05:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.40 2000/06/26 13:31:03 os
+ new DataBase API
+
+ Revision 1.39 2000/04/11 08:03:52 os
+ UNICODE
+
+ Revision 1.38 2000/02/11 14:44:29 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.37 1999/11/09 16:54:18 os
+ #69090# default in ::Command
+
+ Revision 1.36 1999/01/20 16:00:04 AWO
+ #59398#FormatIds
+
+
+ Rev 1.35 20 Jan 1999 17:00:04 AWO
+ #59398#FormatIds
+
+ Rev 1.34 21 Aug 1998 12:59:04 OM
+ #55373# D&D von DB-Feldern
+
+ Rev 1.33 07 Mar 1998 13:30:14 OM
+ Alles bei Column-Umschaltung einklappen
+
+ Rev 1.32 27 Feb 1998 18:26:26 OM
+ Aufgeraeumt
+
+ Rev 1.31 03 Feb 1998 12:21:12 OM
+ #46621# HelpIDs fuer Feldbefehl-Dlg
+
+ Rev 1.30 06 Jan 1998 18:12:02 OM
+ Felbefehl-Dlg
+
+ Rev 1.29 05 Jan 1998 17:44:54 OM
+ DB-Feldbefehl bearbeiten
+
+ Rev 1.28 15 Dec 1997 11:32:08 OM
+ GetObjectName gefixt
+
+ Rev 1.27 12 Dec 1997 10:37:44 OM
+ GetObjectName angepasst
+
+ Rev 1.26 12 Dec 1997 10:11:02 OM
+ Spaltennamen nicht sortieren
+
+ Rev 1.25 11 Dec 1997 17:01:10 OM
+ Feldumstellung
+
+ Rev 1.24 19 Nov 1997 16:33:06 OM
+ Datenbank-TP Drag&Drop
+
+ Rev 1.23 18 Nov 1997 14:34:02 OM
+ Sba-Umstellung 372
+
+ Rev 1.22 18 Nov 1997 10:35:42 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.21 17 Nov 1997 14:36:32 OM
+ Column-Darstellung an/abschaltbar
+
+ Rev 1.20 10 Nov 1997 10:48:56 TJ
+ GetTableName und GetQueryName durch GetObjectName ersetzt
+
+ Rev 1.19 06 Nov 1997 17:01:50 OM
+ #45188# Schriftgroesse in TreeListBox anders initialisieren
+
+ Rev 1.18 06 Nov 1997 13:01:26 OM
+ Geaenderte Datenbankauswahl
+
+ Rev 1.17 05 Nov 1997 17:02:12 OM
+ Spaltennamen anzeigen
+
+ Rev 1.16 14 Oct 1997 14:10:34 OM
+ Feldumstellung
+
+ Rev 1.15 02 Sep 1997 09:57:10 OM
+ SDB-Headeranpassung
+
+ Rev 1.14 01 Sep 1997 13:16:04 OS
+ DLL-Umstellung
+
+ Rev 1.13 25 Aug 1997 11:53:54 OS
+ 368-Changes SBA
+
+ Rev 1.12 06 Aug 1997 11:36:00 TRI
+ GetpApp statt pApp
+
+ Rev 1.11 14 Mar 1997 14:09:26 OM
+ Sortierte DB-Listboxen
+
+ Rev 1.10 11 Nov 1996 09:25:38 MA
+ ResMgr
+
+ Rev 1.9 14 Oct 1996 16:06:44 OM
+ Datenbankumstellung 341c
+
+ Rev 1.8 25 Sep 1996 14:10:44 OM
+ Neue Datenbanktrenner
+
+ Rev 1.7 03 Sep 1996 12:01:58 OM
+ #30967# Fehlendes SEXPORT
+
+ Rev 1.6 28 Aug 1996 09:18:04 OS
+ includes
+
+ Rev 1.5 14 Aug 1996 11:39:36 OM
+ RequestingChilds nur bei leerem Parent
+
+ Rev 1.4 08 Aug 1996 16:15:54 OM
+ Neue Segs
+
+ Rev 1.3 08 Aug 1996 16:15:14 OM
+ Tabellen nur on demand anfordern
+
+ Rev 1.2 05 Aug 1996 15:48:38 OM
+ Neue Segs
+
+ Rev 1.1 05 Aug 1996 15:47:52 OM
+ Datenbankumstellung
+
+ Rev 1.0 25 Jul 1996 16:35:50 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/dbui/dbui.cxx b/sw/source/ui/dbui/dbui.cxx
new file mode 100644
index 000000000000..46321b778011
--- /dev/null
+++ b/sw/source/ui/dbui/dbui.cxx
@@ -0,0 +1,216 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbui.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+// INCLUDE ---------------------------------------------------------------
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#include "wrtsh.hxx"
+
+
+#include "dbui.hrc"
+#include "dbui.hxx"
+
+
+// STATIC DATA -----------------------------------------------------------
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+#if 0
+SwDBSelect::SwDBSelect(Window *pParent, SwWrtShell *pSh, const String& rDefDBName):
+
+ SvxStandardDialog(pParent, SW_RES(DLG_DBSELECTION)),
+
+ aTree (this, SW_RES(TLB_DBLIST), rDefDBName),
+
+ aOkBTN (this, SW_RES(BTN_OK)),
+ aCancelBTN (this, SW_RES(BTN_CANCEL)),
+ aHelpBTN (this, SW_RES(BTN_HELP))
+{
+ FreeResource();
+
+ aTree.SetSelectHdl(LINK(this, SwDBSelect, TreeSelectHdl));
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+__EXPORT SwDBSelect::~SwDBSelect()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+void __EXPORT SwDBSelect::Apply()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwDBSelect::GetDBName() const
+{
+ return aTree.GetDBName();
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwDBSelect, TreeSelectHdl, SvTreeListBox *, pBox )
+{
+ SvLBoxEntry* pEntry = pBox->GetCurEntry();
+ if (pEntry)
+ aOkBTN.Enable(aTree.GetParent(pEntry) != 0);
+ return 0;
+}
+#endif
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+PrintMonitor::PrintMonitor( Window *pParent, BOOL bEMail )
+: ModelessDialog( pParent, SW_RES(DLG_PRINTMONITOR) ),
+ aDocName (this, SW_RES( FT_DOCNAME )),
+ aPrinting (this, SW_RES( bEMail ? FT_SENDING : FT_PRINTING )),
+ aPrinter (this, SW_RES( FT_PRINTER )),
+ aPrintInfo (this, SW_RES( FT_PRINTINFO )),
+ aCancel (this, SW_RES( PB_CANCELPRNMON ))
+{
+ if (bEMail)
+ {
+ SetText(SW_RES(STR_EMAILMON));
+ }
+ FreeResource();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.15 2000/09/18 16:05:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.14 2000/06/26 13:31:03 os
+ new DataBase API
+
+ Revision 1.13 1999/03/08 08:56:26 MH
+ chg: header
+
+
+ Rev 1.12 08 Mar 1999 09:56:26 MH
+ chg: header
+
+ Rev 1.11 27 Oct 1998 12:17:08 OM
+ #58132# Progress fuer Serienmailings
+
+ Rev 1.10 09 Dec 1997 12:30:52 OM
+ #45200# Serienbrief: Speichern-Monitor
+
+ Rev 1.9 02 Sep 1997 09:57:12 OM
+ SDB-Headeranpassung
+
+ Rev 1.8 01 Sep 1997 13:16:04 OS
+ DLL-Umstellung
+
+ Rev 1.7 11 Nov 1996 09:25:38 MA
+ ResMgr
+
+ Rev 1.6 02 Oct 1996 18:00:56 MA
+ Umstellung Enable/Disable
+
+ Rev 1.5 28 Aug 1996 09:18:04 OS
+ includes
+
+ Rev 1.4 05 Aug 1996 15:47:52 OM
+ Datenbankumstellung
+
+ Rev 1.3 25 Jul 1996 16:36:26 OM
+ Eigene TreeListbox fuer Datenbankauswahl
+
+ Rev 1.2 23 Jul 1996 13:28:38 OM
+ Neue Segs
+
+ Rev 1.1 23 Jul 1996 13:26:08 OM
+ Datenbank und Tabelle auswaehlen
+
+ Rev 1.0 22 Jul 1996 11:01:52 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/dbui/dbui.src b/sw/source/ui/dbui/dbui.src
new file mode 100644
index 000000000000..cbaf59a62727
--- /dev/null
+++ b/sw/source/ui/dbui/dbui.src
@@ -0,0 +1,322 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "dbui.hrc"
+#include "helpid.h"
+ModalDialog DLG_DBSELECTION
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 168 , 132 ) ;
+ Text = "Datenbankauswahl" ;
+ Text [ ENGLISH ] = "Database Selection" ;
+ Moveable = TRUE ;
+ Control TLB_DBLIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 100 , 120 ) ;
+ };
+ OKButton BTN_OK
+ {
+ Pos = MAP_APPFONT ( 112 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ };
+ CancelButton BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 112 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BTN_HELP
+ {
+ Pos = MAP_APPFONT ( 112 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Text [ english_us ] = "Database Selection" ;
+ Text [ italian ] = "Scelta database" ;
+ Text [ spanish ] = "Seleccionar base de datos" ;
+ Text [ french ] = "Sélection d'une base de données" ;
+ Text [ dutch ] = "Selectie database" ;
+ Text [ swedish ] = "Databasurval" ;
+ Text [ danish ] = "Databaseudvalg" ;
+ Text [ portuguese_brazilian ] = "Datenbankauswahl" ;
+ Text [ portuguese ] = "Seleccionar base de dados" ;
+ Text[ chinese_simplified ] = "Ñ¡ÔñÊý¾Ý¿â";
+ Text[ russian ] = "Âûáîð áàçû äàííûõ";
+ Text[ polish ] = "Selekcja bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚Ì‘I‘ð";
+ Text[ chinese_traditional ] = "¿ï¾Ü¸ê®Æ®w";
+ Text[ arabic ] = "ÇÎÊíÇÑ ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "ÅðéëïãÞ âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º ¼±ÅÃ";
+ Text[ turkish ] = "Veritabaný seçimi";
+ Text[ language_user1 ] = " ";
+};
+ // DLG_PRINTMONITOR ------------------------------------------------------
+ModelessDialog DLG_PRINTMONITOR
+{
+ HelpID = HID_MERGE_PRINTMONITOR ;
+ SVLOOK = TRUE ;
+ HIDE = TRUE ;
+ OUTPUTSIZE = TRUE ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 118 ;
+ _HEIGHT = 72 ;
+ MOVEABLE = TRUE ;
+ APP = FALSE ;
+ Text [ english ] = "Save Monitor" ;
+ Text = "Speichern-Monitor" ;
+ FixedText FT_DOCNAME
+ {
+ HIDE = FALSE ;
+ _XYMAPMODE = MAP_APPFONT ;
+ _X = 6 ;
+ _Y = 6 ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 100 ;
+ _HEIGHT = 8 ;
+ TEXT = "" ;
+ LEFT = FALSE ;
+ CENTER = TRUE ;
+ RIGHT = FALSE ;
+ };
+ FixedText FT_PRINTING
+ {
+ HIDE = FALSE ;
+ _XYMAPMODE = MAP_APPFONT ;
+ _X = 6 ;
+ _Y = 17 ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 100 ;
+ _HEIGHT = 8 ;
+ TEXT = "wird ausgegeben als" ;
+ TEXT [ English ] = "is being printed as" ;
+ LEFT = FALSE ;
+ CENTER = TRUE ;
+ RIGHT = FALSE ;
+ Text [ english_us ] = "is being printed on" ;
+ Text [ portuguese_brazilian ] = "está sendo impresso na" ;
+ Text [ swedish ] = "skrivs ut på" ;
+ Text [ danish ] = "udskrives som" ;
+ Text [ italian ] = "viene stampato su" ;
+ Text [ spanish ] = "se está imprimiendo en" ;
+ Text [ french ] = "en cours d'impression sur" ;
+ Text [ dutch ] = "wordt afgedrukt als" ;
+ Text [ portuguese ] = "está a ser impresso na" ;
+ Text[ chinese_simplified ] = "Êä³öÖÁ";
+ Text[ russian ] = "Áóäåò íàïå÷àòàíî êàê";
+ Text[ polish ] = "zostanie wydrukowany jako";
+ Text[ japanese ] = "ˆóü’†";
+ Text[ chinese_traditional ] = "¿é¥X¦Ü";
+ Text[ arabic ] = "íÊã ØÈÇÚÊå ßÜ";
+ Text[ greek ] = "åêôõðþíåôáé ùò";
+ Text[ korean ] = "Ãâ·Â Çü½Ä";
+ Text[ turkish ] = "Çýktý türü";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_SENDING
+ {
+ HIDE = FALSE ;
+ _XYMAPMODE = MAP_APPFONT ;
+ _X = 6 ;
+ _Y = 17 ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 100 ;
+ _HEIGHT = 8 ;
+ TEXT = "wird versandt an" ;
+ TEXT [ English ] = "is being send at" ;
+ LEFT = FALSE ;
+ CENTER = TRUE ;
+ RIGHT = FALSE ;
+ TEXT[ italian ] = "viene inviato a";
+ TEXT[ portuguese_brazilian ] = "is being send at";
+ TEXT[ portuguese ] = "está a ser enviado para";
+ TEXT[ danish ] = "bliver sendt til";
+ TEXT[ french ] = "est en cours d'envoi à";
+ TEXT[ swedish ] = "skickas till";
+ TEXT[ dutch ] = "wordt verzonden aan";
+ TEXT[ spanish ] = "se envía a";
+ TEXT[ english_us ] = "is being send to";
+ TEXT[ chinese_simplified ] = "¼Ä·¢¸ø";
+ TEXT[ russian ] = "Áóäåò îòïðàâëåíî";
+ TEXT[ polish ] = "zostanie przes³any do";
+ TEXT[ japanese ] = "ˆ¶æ‚É‘—M’†";
+ TEXT[ chinese_traditional ] = "±Hµoµ¹";
+ TEXT[ arabic ] = "íÊã ÅÑÓÇáå Åáì";
+ TEXT[ greek ] = "áðïóôÝëëåôáé ðñïò";
+ TEXT[ korean ] = "Àü¼Û ´ë»ó";
+ TEXT[ turkish ] = "Alýcý";
+ TEXT[ language_user1 ] = " ";
+ };
+ FixedText FT_PRINTER
+ {
+ HIDE = FALSE ;
+ _XYMAPMODE = MAP_APPFONT ;
+ _X = 6 ;
+ _Y = 28 ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 100 ;
+ _HEIGHT = 8 ;
+ TEXT = "" ;
+ LEFT = FALSE ;
+ CENTER = TRUE ;
+ RIGHT = FALSE ;
+ };
+ FixedText FT_PRINTINFO
+ {
+ HIDE = FALSE ;
+ _XYMAPMODE = MAP_APPFONT ;
+ _X = 6 ;
+ _Y = 39 ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 100 ;
+ _HEIGHT = 8 ;
+ TEXT = "" ;
+ LEFT = FALSE ;
+ CENTER = TRUE ;
+ RIGHT = FALSE ;
+ };
+ CancelButton PB_CANCELPRNMON
+ {
+ HIDE = FALSE ;
+ _XYMAPMODE = MAP_APPFONT ;
+ _X = 31 ;
+ _Y = 52 ;
+ _WHMAPMODE = MAP_APPFONT ;
+ _WIDTH = 50 ;
+ _HEIGHT = 14 ;
+ TABSTOP = TRUE ;
+ };
+ String STR_EMAILMON
+ {
+ Text [ english ] = "Send Monitor" ;
+ Text = "Versenden-Monitor" ;
+ Text[ italian ] = "Invia monitor";
+ Text[ portuguese_brazilian ] = "Send Monitor";
+ Text[ portuguese ] = "Enviar - Monitor";
+ Text[ danish ] = "Send-monitor";
+ Text[ french ] = "Moniteur d'envoi";
+ Text[ swedish ] = "Skicka monitor";
+ Text[ dutch ] = "Monitor verzenden";
+ Text[ spanish ] = "Enviar-Monitor";
+ Text[ english_us ] = "Send-Monitor";
+ Text[ chinese_simplified ] = "¼Ä·¢-¼àÊÓÆ÷";
+ Text[ russian ] = "Îòïðàâêà òåêóùåãî èçîáðàæåíèÿ";
+ Text[ polish ] = "Pokaz stanu przesy³ania";
+ Text[ japanese ] = "‘—MÓÆÀ°";
+ Text[ chinese_traditional ] = "±Hµo-ºÊµø¾¹";
+ Text[ arabic ] = "ãÑÇÞÈ ÇáÅÑÓÇá";
+ Text[ greek ] = "ÁðïóôïëÞ-Ïèüíç";
+ Text[ korean ] = "Àü¼Û ¸ð´ÏÅÍ";
+ Text[ turkish ] = "Gönderme ekraný";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ portuguese ] = "Monitor de impressão" ;
+ Text [ english_us ] = "Print monitor" ;
+ Text [ portuguese_brazilian ] = "O monitor de impressão" ;
+ Text [ swedish ] = "Skriv ut skärmbild" ;
+ Text [ danish ] = "Gem-monitor" ;
+ Text [ italian ] = "Controllo stampa" ;
+ Text [ spanish ] = "Monitor de impresión" ;
+ Text [ french ] = "Moniteur d'impression" ;
+ Text [ dutch ] = "Opslaan-monitor" ;
+ Text[ chinese_simplified ] = "´òÓ¡¼àÊÓ";
+ Text[ russian ] = "Ñîõðàíåíèå òåêóùåãî èçîáðàæåíèÿ";
+ Text[ polish ] = "Pokaz stanu zapisu";
+ Text[ japanese ] = "ÒÓØ ÓÆÀ°";
+ Text[ chinese_traditional ] = "¦C¦LºÊµø";
+ Text[ arabic ] = "ãÑÇÞÈ ÇáÍÝÙ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "ÁðïèÞêåõóç-Ïèüíç";
+ Text[ korean ] = "ÀúÀå ¸ð´ÏÅÍ";
+ Text[ turkish ] = "Yazdýrma ekraný";
+};
+
+String STR_DB_EMAIL
+{
+ TEXT = "E-Mail" ;
+ TEXT [ English ] = "E-mail" ;
+ Text [ english_us ] = "E-mail" ;
+ Text[ italian ] = "eMail";
+ Text[ portuguese_brazilian ] = "E-mail";
+ Text[ portuguese ] = "E-mail";
+ Text[ danish ] = "E-mail";
+ Text[ french ] = "E-mail";
+ Text[ swedish ] = "E-post";
+ Text[ dutch ] = "E-mail";
+ Text[ spanish ] = "E-mail";
+ Text[ chinese_simplified ] = "µç×ÓÓʼþ";
+ Text[ russian ] = "Ýëåêòðîííàÿ ïî÷òà";
+ Text[ polish ] = "e-mail";
+ Text[ japanese ] = "E-mail";
+ Text[ chinese_traditional ] = "¹q¤l¶l¥ó";
+ Text[ arabic ] = "ÈÑíÏ ÅáßÊÑæäí";
+ Text[ greek ] = "E-mail";
+ Text[ korean ] = "ÀüÀÚ¿ìÆí";
+ Text[ turkish ] = "E-posta";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/dbui/makefile.mk b/sw/source/ui/dbui/makefile.mk
new file mode 100644
index 000000000000..07244f2e0cf4
--- /dev/null
+++ b/sw/source/ui/dbui/makefile.mk
@@ -0,0 +1,107 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=dbui
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ dbinsdlg.cxx \
+ dbmgr.cxx \
+ dbtree.cxx \
+ dbui.cxx
+
+SRCFILES = \
+ dbinsdlg.src \
+ dbtree.src \
+ dbui.src
+
+SLOFILES = \
+ $(SLO)$/dbinsdlg.obj \
+ $(SLO)$/dbmgr.obj \
+ $(SLO)$/dbtree.obj \
+ $(SLO)$/dbui.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/dbinsdlg.obj \
+ $(SLO)$/dbmgr.obj \
+ $(SLO)$/dbtree.obj \
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/dialog/abstract.cxx b/sw/source/ui/dialog/abstract.cxx
new file mode 100644
index 000000000000..b9148833ff04
--- /dev/null
+++ b/sw/source/ui/dialog/abstract.cxx
@@ -0,0 +1,144 @@
+/*************************************************************************
+ *
+ * $RCSfile: abstract.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "swtypes.hxx"
+#include "hintids.hxx"
+
+#include "dialog.hrc"
+#include "abstract.hxx"
+#include "abstract.hrc"
+
+
+/*-----------------22.02.97 15.32-------------------
+
+--------------------------------------------------*/
+
+SwInsertAbstractDlg::SwInsertAbstractDlg( Window* pParent ) :
+ SfxModalDialog(pParent, SW_RES(DLG_INSERT_ABSTRACT)),
+ aGB (this, ResId(GB_1 )),
+ aParaFT (this, ResId(FT_PARA )),
+ aParaNF (this, ResId(NF_PARA )),
+ aLevelFT(this, ResId(FT_LEVEL )),
+ aLevelNF(this, ResId(NF_LEVEL )),
+ aDescFT (this, ResId(FT_DESC )),
+ aOkPB (this, ResId(PB_OK )),
+ aCancelPB (this, ResId(PB_CANCEL )),
+ aHelpPB (this, ResId(PB_HELP ))
+{
+ FreeResource();
+}
+
+/*-----------------22.02.97 15.32-------------------
+
+--------------------------------------------------*/
+
+SwInsertAbstractDlg::~SwInsertAbstractDlg()
+{
+}
+
+/*-----------------22.02.97 15.34-------------------
+
+--------------------------------------------------*/
+
+BYTE SwInsertAbstractDlg::GetLevel() const
+{
+ return aLevelNF.GetValue() - 1;
+}
+/*-----------------22.02.97 15.34-------------------
+
+--------------------------------------------------*/
+
+BYTE SwInsertAbstractDlg::GetPara() const
+{
+ return (BYTE) aParaNF.GetValue();
+}
+
+
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.4 2000/09/18 16:05:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.3 1997/11/03 12:12:26 MA
+ precomp entfernt
+
+
+ Rev 1.2 03 Nov 1997 13:12:26 MA
+ precomp entfernt
+
+ Rev 1.1 23 May 1997 10:09:12 OS
+ Ableitung von SfxModalDialog
+
+ Rev 1.0 22 Feb 1997 20:18:04 OS
+ Initial revision.
+
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/dialog/abstract.hrc b/sw/source/ui/dialog/abstract.hrc
new file mode 100644
index 000000000000..1a5f245f79c7
--- /dev/null
+++ b/sw/source/ui/dialog/abstract.hrc
@@ -0,0 +1,70 @@
+/*************************************************************************
+ *
+ * $RCSfile: abstract.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define GB_1 1
+#define FT_PARA 2
+#define NF_PARA 3
+#define FT_LEVEL 4
+#define NF_LEVEL 5
+#define FT_DESC 6
+#define PB_OK 7
+#define PB_CANCEL 8
+#define PB_HELP 9
diff --git a/sw/source/ui/dialog/abstract.src b/sw/source/ui/dialog/abstract.src
new file mode 100644
index 000000000000..1a405c3cb931
--- /dev/null
+++ b/sw/source/ui/dialog/abstract.src
@@ -0,0 +1,258 @@
+/*************************************************************************
+ *
+ * $RCSfile: abstract.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "dialog.hrc"
+#include "helpid.h"
+#include "abstract.hrc"
+
+ModalDialog DLG_INSERT_ABSTRACT
+{
+ HelpID = HID_INSERT_ABSTRACT ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 239 , 68 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? AutoAbstract erzeugen : AutoAbstrakt erzeugen */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoAbstract erzeugen : AutoAbstrakt erzeugen */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoAbstract erzeugen : AutoAbstrakt erzeugen */
+ Text = "AutoAbstract erzeugen" ;
+ Text [ English ] = "Create abstract" ;
+ Moveable = TRUE ;
+ GroupBox GB_1
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 174 , 62 ) ;
+ Text = "Eigenschaften" ;
+ Text [ English ] = "Properties" ;
+ Text [ english_us ] = "Properties" ;
+ Text [ portuguese_brazilian ] = "Eigenschaften" ;
+ Text [ swedish ] = "Egenskaper" ;
+ Text [ danish ] = "Egenskaber" ;
+ Text [ italian ] = "Proprietà" ;
+ Text [ spanish ] = "Propiedades" ;
+ Text [ french ] = "Propriétés" ;
+ Text [ dutch ] = "Eigenschappen" ;
+ Text [ portuguese ] = "Propriedades" ;
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ russian ] = "Ñâîéñòâà";
+ Text[ polish ] = "W³aœciwoœci";
+ Text[ japanese ] = "ÌßÛÊßè";
+ Text[ chinese_traditional ] = "ÄÝ©Ê";
+ Text[ arabic ] = "ÎÕÇÆÕ";
+ Text[ dutch ] = "Eigenschappen";
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ greek ] = "Éäéüôçôåò";
+ Text[ korean ] = "µî·ÏÁ¤º¸";
+ Text[ turkish ] = "Özellikler";
+ };
+ FixedText FT_LEVEL
+ {
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 120 , 8 ) ;
+ Text = "Einbezogene Kapitelebenen" ;
+ Text [ English ] = "Included outline levels" ;
+ Text [ english_us ] = "Included outline levels" ;
+ Text [ portuguese_brazilian ] = "Einbezogene Kapitelebenen" ;
+ Text [ swedish ] = "Inkluderade kapitelnivåer" ;
+ Text [ danish ] = "Inkluderede kapitelniveauer" ;
+ Text [ italian ] = "Livelli di capitolo inclusi" ;
+ Text [ spanish ] = "Niveles del capítulo incluidos" ;
+ Text [ french ] = "Niveaux de plan à inclure" ;
+ Text [ dutch ] = "Aantal overzichtsniveau's" ;
+ Text [ portuguese ] = "Níveis de capítulo incluídos" ;
+ Text[ chinese_simplified ] = "°üº¬µÄÕ½ڴó¸Ù¼¶";
+ Text[ russian ] = "Âêëþ÷åííûå óðîâíè ðàçäåëîâ";
+ Text[ polish ] = "W³¹cznie z poziomami rozdzia³u";
+ Text[ japanese ] = "ŠY“–‚·‚é±³Äײ݂ÌÚÍÞÙ";
+ Text[ chinese_traditional ] = "¥]§tªº³¹¸`¤jºõ";
+ Text[ arabic ] = "ãÓÊæíÇÊ ÇáÝÕá ÇáãÖãäÉ";
+ Text[ dutch ] = "Aantal overzichtsniveau's";
+ Text[ chinese_simplified ] = "°üº¬µÄÕ½ڴó¸Ù¼¶";
+ Text[ greek ] = "Óõìðåñéëáìâáíüìåíá åðßðåäá êåöáëáßùí";
+ Text[ korean ] = "°³¿ä¼öÁØÀÌ Æ÷ÇԵǾú½À´Ï´Ù.";
+ Text[ turkish ] = "Dahil edilen bölüm düzeyleri";
+ };
+ NumericField NF_LEVEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 153 , 12 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5 ;
+ Value = 3 ;
+ First = 1 ;
+ Last = 5 ;
+ };
+ FixedText FT_PARA
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 120 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Absätze je Kapitel : Absõtze je Kapitel */
+ Text = "Absätze je Kapitel" ;
+ Text [ English ] = "Paragraphs per Outline" ;
+ Text [ english_us ] = "Subpoints per level" ;
+ Text [ portuguese_brazilian ] = "Absätze je Kapitel" ;
+ Text [ swedish ] = "Stycken per kapitel" ;
+ Text [ danish ] = "Afsnit per kapitel" ;
+ Text [ italian ] = "Paragrafi per capitolo" ;
+ Text [ spanish ] = "Párrafos por capítulo" ;
+ Text [ french ] = "Nbre resp. de paragraphes" ;
+ Text [ dutch ] = "Alinea's per kop" ;
+ Text [ portuguese ] = "Parágrafos por capítulo" ;
+ Text[ chinese_simplified ] = "ÿÕ½ڰüº¬µÄ¶ÎÂä";
+ Text[ russian ] = "Àáçàöåâ â ãëàâå";
+ Text[ polish ] = "Akapity w rozdziale";
+ Text[ japanese ] = "Í‚²‚Æ‚Ì’i—Ž";
+ Text[ chinese_traditional ] = "¨C³¹¸`¥]§tªº¬q¸¨";
+ Text[ arabic ] = "ÝÞÑÇÊ Ýí ßá ÝÕá";
+ Text[ dutch ] = "Alinea's per kop";
+ Text[ chinese_simplified ] = "ÿÕ½ڰüº¬µÄ¶ÎÂä";
+ Text[ greek ] = "ÐáñÜãñáöïé áíÜ êåöÜëáéï";
+ Text[ korean ] = "·¹º§´ç ¼­ºêÆ÷ÀÎÆ®";
+ Text[ turkish ] = "Beher bölüm paragraf sayýsý";
+ };
+ NumericField NF_PARA
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 153 , 27 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 5 ;
+ };
+ FixedText FT_DESC
+ {
+ Pos = MAP_APPFONT ( 12 , 43 ) ;
+ Size = MAP_APPFONT ( 165 , 16 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Im Abstrakt erscheint die ausgewählte Anzahl von Absätzen aus den einbezogenen Kapitelebenen. : Im Abstrakt erscheint die ausgewõhlte Anzahl von Absõtzen aus den einbezogenen Kapitelebenen. */
+ Text = "Im Abstrakt erscheint die ausgewählte Anzahl von Absätzen aus den einbezogenen Kapitelebenen." ;
+ Text [ English ] = "The selected number of paragraphs of the included outline levels will be used to create the summary." ;
+ WordBreak = TRUE ;
+ Text [ english_us ] = "The abstract contains the selected number of paragraphs from the included outline levels." ;
+ Text [ portuguese_brazilian ] = "Im Abstrakt erscheint die ausgewählte Anzahl von Absätzen aus den einbezogenen Kapitelebenen." ;
+ Text [ swedish ] = "Utdraget innehåller det utvalda antalet stycken från de inkluderade kapitelnivåerna." ;
+ Text [ danish ] = "Abstractet indeholder det valgte antal afsnit fra de inkluderede kapitelniveauer." ;
+ Text [ italian ] = "Il sunto contiene il numero di paragrafi scelto dai livelli di capitolo inclusi." ;
+ Text [ spanish ] = "En el extracto aparece la cantidad deseada de párrafos de los niveles de los capítulos incluidos." ;
+ Text [ french ] = "La synthèse reprendra, pour chaque niveau de plan inclus, le nombre de paragraphes indiqué." ;
+ Text [ dutch ] = "In het extract verschijnt het geselecteerde aantal alinea´s van de erbij betrokken overzichtsniveaus." ;
+ Text [ portuguese ] = "O Abstracto contém a quantidade de parágrafos seleccionada dos níveis de capítulos incluídos." ;
+ Text[ chinese_simplified ] = "´Ó°üÀ¨µÄÕ½ڼ¶ÖÐÑ¡³öµÄÒ»¶¨ÊýÄ¿µÄ¶ÎÂäÏÔʾÔÚÕªÒªÖС£";
+ Text[ russian ] = " Ïðîñìîòðå ïîÿâèòñÿ âûáðàííîå ÷èñëî àáçàöåâ èç âêëþ÷åííûõ óðîâíåé ãëàâ";
+ Text[ polish ] = "Abstrakt zawiera wybran¹ iloœæ akapitów z awieraj¹cych w³¹czone poziomy akapitu.";
+ Text[ japanese ] = "—v–ñ‚É‚ÍAŠY“–‚·‚é±³Äײ݂ÌÚÍÞÙ‚©‚ç‘I‘ð‚³‚ê‚½’i—Ž‚Ì”‚ª•\\Ž¦‚³‚ê‚Ü‚·B";
+ Text[ chinese_traditional ] = "ºK­n¼Ò¦¡Åã¥Ü¬ÛÃö³¹¸`¤¤¿ï¨úªº¤@©w¼Æ¥Øªº¬q¸¨";
+ Text[ arabic ] = "ÓæÝ íÙåÑ Ýí ÇáÊáÎíÕ ÚÏÏ ÇáÝÞÑÇÊ ÇáÊí Êã ÊÍÏíÏåÇ ãä Èíä ãÓÊæíÇÊ ÇáÝÕæá ÇáãÖãäÉ.";
+ Text[ dutch ] = "In het extract verschijnt het geselecteerde aantal alinea´s van de erbij betrokken overzichtsniveaus.";
+ Text[ chinese_simplified ] = "´Ó°üÀ¨µÄÕ½ڼ¶ÖÐÑ¡³öµÄÒ»¶¨ÊýÄ¿µÄ¶ÎÂäÏÔʾÔÚÕªÒªÖС£";
+ Text[ greek ] = "Óôï Abstract åìöáíßæåôáé ôï åðéëåãìÝíï ðëÞèïò ðáñáãñÜöùí áðü ôá óõìðåñéëáìâáíüìåíá åðßðåäá êåöáëáßùí.";
+ Text[ korean ] = "Ã߻󿡼­´Â ¿¬°üµÈ °³¿ä ·¹º§¿¡¼­ ¼±ÅÃÇÑ ´Ü¶ôÀÇ ¼ö°¡ ³ªÅ¸³³´Ï´Ù.";
+ Text[ turkish ] = "Özet içinde, dahil edilen bölüm düzeylerinden seçilen paragraflar bulunuyor.";
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 186 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 186 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 186 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Text [ english_us ] = "Create AutoAbstract" ;
+ Text [ portuguese_brazilian ] = "AutoAbstrakt erzeugen" ;
+ Text [ swedish ] = "Skapa AutoUtdrag" ;
+ Text [ danish ] = "Opret AutoAbstract" ;
+ Text [ italian ] = "Crea un sommario automatico" ;
+ Text [ spanish ] = "Crear abstracto automático" ;
+ Text [ french ] = "Création d'une AutoSynthèse" ;
+ Text [ dutch ] = "AutoExtract maken" ;
+ Text [ portuguese ] = "Criar AutoAbstracto" ;
+ Text[ chinese_simplified ] = "Éú³É×Ô¶¯ÕªÒª";
+ Text[ russian ] = "Ñîçäàòü Àâòîðåôåðàò";
+ Text[ polish ] = "Utwórz AutoAbstract ";
+ Text[ japanese ] = "Ž©“®’Šo‚Ìì¬";
+ Text[ chinese_traditional ] = "¥Í¦¨¦Û°ÊºK­n";
+ Text[ arabic ] = "ÅäÔÇÁ ÊáÎíÕ ÊáÞÇÆí";
+ Text[ dutch ] = "AutoExtract maken";
+ Text[ chinese_simplified ] = "Éú³É×Ô¶¯ÕªÒª";
+ Text[ greek ] = "Äçìéïõñãßá AutoAbstract";
+ Text[ korean ] = "ÀÚµ¿ Ãß»ó ¸¸µé±â";
+ Text[ turkish ] = "Otomatik özet oluþtur";
+};
diff --git a/sw/source/ui/dialog/addrdlg.cxx b/sw/source/ui/dialog/addrdlg.cxx
new file mode 100644
index 000000000000..ff7b1a4affae
--- /dev/null
+++ b/sw/source/ui/dialog/addrdlg.cxx
@@ -0,0 +1,175 @@
+/*************************************************************************
+ *
+ * $RCSfile: addrdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVX_OPTGENRL_HXX //autogen
+#include <svx/optgenrl.hxx>
+#endif
+
+#include "addrdlg.hxx"
+
+
+/****************************************************************************
+Ctor
+****************************************************************************/
+
+
+SwAddrDlg::SwAddrDlg(Window* pParent, SfxItemSet& rSet ) :
+
+ SfxSingleTabDialog(pParent, rSet, 0)
+
+{
+ // TabPage erzeugen
+ SvxGeneralTabPage* pPage = (SvxGeneralTabPage*) SvxGeneralTabPage::Create(this, rSet);
+ SetTabPage(pPage);
+}
+
+/****************************************************************************
+Dtor
+****************************************************************************/
+
+
+__EXPORT SwAddrDlg::~SwAddrDlg()
+{
+}
+
+/*************************************************************************
+
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/dialog/addrdlg.cxx,v 1.1.1.1 2000-09-18 17:14:34 hr Exp $
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.10 2000/09/18 16:05:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.9 1997/11/25 09:43:20 MA
+ includes
+
+
+ Rev 1.8 25 Nov 1997 10:43:20 MA
+ includes
+
+ Rev 1.7 03 Nov 1997 13:12:26 MA
+ precomp entfernt
+
+ Rev 1.6 16 Jul 1997 16:26:50 TRI
+ mit __EXPORT gehts viel besser
+
+ Rev 1.5 15 Jul 1997 14:48:12 OS
+ HideExtra entfernt
+
+ Rev 1.4 28 Aug 1996 10:10:00 OS
+ includes
+
+ Rev 1.3 04 Jul 1996 09:03:38 SWG
+ include svfield - Workaround wg. optgenrl.hxx
+
+ Rev 1.2 24 Nov 1995 16:58:16 OM
+ PCH->PRECOMPILED
+
+ Rev 1.1 27 Jul 1995 18:20:56 OS
+ HideExtras jetzt aktiv
+
+ Rev 1.0 26 Jul 1995 19:20:02 OS
+ Initial revision.
+
+*************************************************************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/dialog/ascfldlg.cxx b/sw/source/ui/dialog/ascfldlg.cxx
new file mode 100644
index 000000000000..38b03b23b10a
--- /dev/null
+++ b/sw/source/ui/dialog/ascfldlg.cxx
@@ -0,0 +1,682 @@
+/*************************************************************************
+ *
+ * $RCSfile: ascfldlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+
+#ifndef _RTL_TEXTENC_H //autogen wg. rtl_TextEncoding
+#include <rtl/textenc.h>
+#endif
+
+
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+
+#ifndef _SFX_PRINTER_HXX
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SVX_FLSTITEM_HXX //autogen wg. SvxFontListItem
+#include <svx/flstitem.hxx>
+#endif
+#ifndef _SVX_DLGUTIL_HXX //autogen wg. GetLanguageString
+#include <svx/dlgutil.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen wg. SvxFontItem
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen wg. SvxLanguageItem
+#include <svx/langitem.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _ASCFLDLG_HXX
+#include <ascfldlg.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _SWDOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+
+#ifndef _DIALOG_HRC
+#include <dialog.hrc>
+#endif
+#ifndef _ASCFLDLG_HRC
+#include <ascfldlg.hrc>
+#endif
+
+using namespace ::com::sun::star;
+
+const sal_Unicode cDialogExtraDataClose = '}';
+const char __FAR_DATA sDialogImpExtraData[] = "EncImpDlg:{";
+const char __FAR_DATA sDialogExpExtraData[] = "EncExpDlg:{";
+const USHORT nDialogExtraDataLen = 11; // 12345678901
+
+// in the resource exist an equal list - only with the names!
+static rtl_TextEncoding aCharSetArr[] = {
+ RTL_TEXTENCODING_MS_1252, // Western (Window-1252/WinLatin 1)
+ RTL_TEXTENCODING_APPLE_ROMAN, // Western (Apple Macintosh)
+ RTL_TEXTENCODING_IBM_850, // Western (DOS/OS2-850/International)
+ RTL_TEXTENCODING_IBM_437, // Western (DOS/OS2-437/US)
+ RTL_TEXTENCODING_IBM_860, // Western (DOS/OS2-860/Portugese)
+ RTL_TEXTENCODING_IBM_861, // Western (DOS/OS2-861/Icelandic)
+ RTL_TEXTENCODING_IBM_863, // Western (DOS/OS2-863/Canadian-French)
+ RTL_TEXTENCODING_IBM_865, // Western (DOS/OS2-865/Nordic)
+ RTL_TEXTENCODING_ASCII_US, // Western (ASCII/US)
+ RTL_TEXTENCODING_ISO_8859_1, // Western (ISO-8859-1)
+ RTL_TEXTENCODING_ISO_8859_2, // Central European (ISO-8859-2)
+ RTL_TEXTENCODING_ISO_8859_3, // Latin 3 (ISO-8859-3)
+ RTL_TEXTENCODING_ISO_8859_4, // Baltic (ISO-8859-4)
+ RTL_TEXTENCODING_ISO_8859_5, // Cyrillic (ISO-8859-5)
+// RTL_TEXTENCODING_ISO_8859_6, // Arabic (ISO-8859-6)
+ RTL_TEXTENCODING_ISO_8859_7, // Greek (ISO-8859-7)
+// RTL_TEXTENCODING_ISO_8859_8, // Hebrew (ISO-8859-8)
+ RTL_TEXTENCODING_ISO_8859_9, // Turkish (ISO-8859-9)
+ RTL_TEXTENCODING_ISO_8859_14, // Western (ISO-8859-14)
+ RTL_TEXTENCODING_ISO_8859_15, // Western (ISO-8859-15/EURO)
+ RTL_TEXTENCODING_IBM_737, // Greek (DOS/OS2-737)
+ RTL_TEXTENCODING_IBM_775, // Baltic (DOS/OS2-775)
+ RTL_TEXTENCODING_IBM_852, // Central European (DOS/OS2-852)
+ RTL_TEXTENCODING_IBM_855, // Cyrillic (DOS/OS2-855)
+ RTL_TEXTENCODING_IBM_857, // Turkish (DOS/OS2-857)
+// RTL_TEXTENCODING_IBM_862, // Hebrew (DOS/OS2-862)
+// RTL_TEXTENCODING_IBM_864, // Arabic (DOS/OS2-864)
+ RTL_TEXTENCODING_IBM_866, // Cyrillic (DOS/OS2-866/Russian)
+ RTL_TEXTENCODING_IBM_869, // Greek (DOS/OS2-869/Modern)
+// RTL_TEXTENCODING_MS_874, // Thai (Dos/Windows-874)
+ RTL_TEXTENCODING_MS_1250, // Central European (Windows-1250/WinLatin 2)
+ RTL_TEXTENCODING_MS_1251, // Cyrillic (Windows-1251)
+ RTL_TEXTENCODING_MS_1253, // Greek (Windows-1253)
+ RTL_TEXTENCODING_MS_1254, // Turkish (Windows-1254)
+// RTL_TEXTENCODING_MS_1255, // Hebrew (Windows-1255)
+// RTL_TEXTENCODING_MS_1256, // Arabic (Windows-1256)
+ RTL_TEXTENCODING_MS_1257, // Baltic (Windows-1257)
+// RTL_TEXTENCODING_MS_1258, // Vietnamese (Windows-1258)
+// RTL_TEXTENCODING_APPLE_ARABIC, // Arabic (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_CENTEURO, // Central European (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_CROATIAN, // Central European (Apple Macintosh/Croatian)
+ RTL_TEXTENCODING_APPLE_CYRILLIC, // Cyrillic (Apple Macintosh)
+// RTL_TEXTENCODING_APPLE_DEVANAGARI, // APPLE DEVANAGARI
+// RTL_TEXTENCODING_APPLE_FARSI, // APPLE FARSI
+ RTL_TEXTENCODING_APPLE_GREEK, // Greek (Apple Macintosh)
+// RTL_TEXTENCODING_APPLE_GUJARATI, // APPLE GUJARATI
+// RTL_TEXTENCODING_APPLE_GURMUKHI, // APPLE GURMUKHI
+// RTL_TEXTENCODING_APPLE_HEBREW, // Hebrew (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_ICELAND, // Western (Apple Macintosh/Icelandic)
+ RTL_TEXTENCODING_APPLE_ROMANIAN, // Central European (Apple Macintosh/Romanian)
+// RTL_TEXTENCODING_APPLE_THAI, // Thai (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_TURKISH, // Turkish (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_UKRAINIAN, // Cyrillic (Apple Macintosh/Ukrainian)
+ RTL_TEXTENCODING_APPLE_CHINSIMP, // Chinese Simplified (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_CHINTRAD, // Chinese Traditional (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_JAPANESE, // Japanese (Apple Macintosh)
+ RTL_TEXTENCODING_APPLE_KOREAN, // Korean (Apple Macintosh)
+ RTL_TEXTENCODING_MS_932, // Japanese (Windows-932)
+ RTL_TEXTENCODING_MS_936, // Chinese Simplified (Windows-936)
+ RTL_TEXTENCODING_MS_949, // Korean (Windows-949)
+ RTL_TEXTENCODING_MS_950, // Chinese Traditional (Windows-950)
+ RTL_TEXTENCODING_SHIFT_JIS, // Japanese (Shift-JIS)
+ RTL_TEXTENCODING_GB_2312, // Chinese Simplified (GB-2312)
+ RTL_TEXTENCODING_GBT_12345, // Chinese Traditional (GBT-12345)
+ RTL_TEXTENCODING_GBK, // Chinese Simplified (GBK/GB-2312-80)
+ RTL_TEXTENCODING_BIG5, // Chinese Traditional (BIG5)
+// RTL_TEXTENCODING_EUC_JP, // Japanese (EUC-JP)
+ RTL_TEXTENCODING_EUC_CN, // Chinese Simplified (EUC-CN)
+// RTL_TEXTENCODING_EUC_TW, // Chinese Traditional (EUC-TW)
+// RTL_TEXTENCODING_ISO_2022_JP, // Japanese (ISO-2022-JP)
+// RTL_TEXTENCODING_ISO_2022_CN, // Chinese Simplified (ISO-2022-CN)
+ RTL_TEXTENCODING_KOI8_R, // Cyrillic (KOI8-R)
+ RTL_TEXTENCODING_UTF7, // Unicode (UTF-7)
+ RTL_TEXTENCODING_UTF8, // Unicode (UTF-8)
+ RTL_TEXTENCODING_ISO_8859_10, // Central European (ISO-8859-10)
+ RTL_TEXTENCODING_ISO_8859_13, // Central European (ISO-8859-13)
+ RTL_TEXTENCODING_EUC_KR, // Korean (EUC-KR)
+// RTL_TEXTENCODING_ISO_2022_KR, // Korean (ISO-2022-KR)
+ RTL_TEXTENCODING_UCS2 // Unicode (2 byte)
+ };
+
+
+SwAsciiFilterDlg::SwAsciiFilterDlg( Window* pParent, SwDocShell& rDocSh,
+ SvStream* pStream )
+ : SfxModalDialog( pParent, SW_RES( DLG_ASCII_FILTER )),
+ aGB( this, ResId( GB_1 )),
+ aCharSetFT( this, ResId( FT_CHARSET )),
+ aCharSetLB( this, ResId( LB_CHARSET )),
+ aFontFT( this, ResId( FT_FONT )),
+ aFontLB( this, ResId( LB_FONT )),
+ aLanguageFT( this, ResId( FT_LANGUAGE )),
+ aLanguageLB( this, ResId( LB_LANGUAGE )),
+ aCRLF_FT( this, ResId( FT_CRLF )),
+ aCRLF_RB( this, ResId( RB_CRLF )),
+ aCR_RB( this, ResId( RB_CR )),
+ aLF_RB( this, ResId( RB_LF )),
+ aOkPB( this, ResId( PB_OK )),
+ aCancelPB( this, ResId( PB_CANCEL )),
+ aHelpPB( this, ResId( PB_HELP )),
+ sCharSet( ResId( STR_CHARSET )),
+ sSystemCharSet( ResId( STR_SYS_CHARSET )),
+ bSaveLineStatus( TRUE )
+{
+ FreeResource();
+
+ SwAsciiOptions aOpt;
+ {
+ const String& rFindNm = String::CreateFromAscii(
+ pStream ? sDialogImpExtraData
+ : sDialogExpExtraData);
+ USHORT nEnd, nStt = GetExtraData().Search( rFindNm );
+ if( STRING_NOTFOUND != nStt )
+ {
+ nStt += nDialogExtraDataLen;
+ nEnd = GetExtraData().Search( cDialogExtraDataClose, nStt );
+ if( STRING_NOTFOUND != nEnd )
+ {
+ aOpt.ReadUserData( GetExtraData().Copy( nStt, nEnd - nStt ));
+ nStt -= nDialogExtraDataLen;
+ GetExtraData().Erase( nStt, nEnd - nStt + 1 );
+ }
+ }
+ }
+
+ // read the first chars and check the charset, (language - with L&H)
+ if( pStream )
+ {
+ char aBuffer[ 4098 ];
+ ULONG nOldPos = pStream->Tell();
+ ULONG nBytesRead = pStream->Read( aBuffer, 4096 );
+ pStream->Seek( nOldPos );
+
+ if( nBytesRead <= 4096 )
+ {
+ aBuffer[ nBytesRead ] = '0';
+ aBuffer[ nBytesRead+1 ] = '0';
+ if( 0 != ( nBytesRead & 0x00000001 ) )
+ aBuffer[ nBytesRead + 2 ] = '0';
+ }
+
+ BOOL bCR = FALSE, bLF = FALSE, bNoNormalChar = FALSE,
+ bNullChar = FALSE;
+ for( USHORT nCnt = 0; nCnt < nBytesRead; ++nCnt )
+ switch( aBuffer[ nCnt ] )
+ {
+ case 0x0: bNullChar = TRUE; break;
+ case 0xA: bLF = TRUE; break;
+ case 0xD: bCR = TRUE; break;
+ case 0xC:
+ case 0x1A:
+ case 0x9: break;
+ default:
+ if( 0x20 > aBuffer[ nCnt ] )
+ bNoNormalChar = TRUE;
+ }
+
+ if( !bNullChar )
+ {
+ if( bCR )
+ {
+ if( bLF )
+ {
+ aOpt.SetParaFlags( LINEEND_CRLF );
+// have to check if of CharSet is type of ANSI
+// aOpt.SetCharSet( CHARSET_ANSI );
+ }
+ else
+ {
+ aOpt.SetParaFlags( LINEEND_CR );
+// have to check if CharSet is type of MAC
+// aOpt.SetCharSet( CHARSET_MAC );
+ }
+ }
+ else if( bLF )
+ {
+ aOpt.SetParaFlags( LINEEND_LF );
+// have to check if of CharSet is type of ANSI
+// aOpt.SetCharSet( CHARSET_ANSI );
+ }
+ }
+
+ {
+ BOOL bDelPrinter = FALSE;
+ SfxPrinter* pPrt = rDocSh.GetDoc()->GetPrt();
+ if( !pPrt )
+ {
+ SfxItemSet* pSet = new SfxItemSet( rDocSh.GetPool(),
+ SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
+ SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
+ 0 );
+ pPrt = new SfxPrinter( pSet );
+ bDelPrinter = TRUE;
+ }
+
+ const USHORT nCount = pPrt->GetFontCount();
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ const String &rStr = pPrt->GetFont(i)->GetName();
+ aFontLB.InsertEntry( rStr );
+ }
+
+ if( !aOpt.GetFontName().Len() )
+ aOpt.SetFontName( ((SvxFontItem&)rDocSh.GetDoc()->GetDefault(
+ RES_CHRATR_FONT )).GetFamilyName() );
+ aFontLB.SelectEntry( aOpt.GetFontName() );
+
+ if( bDelPrinter )
+ delete pPrt;
+ }
+
+ // initialisiere Sprache
+ {
+ if( !aOpt.GetLanguage() )
+ aOpt.SetLanguage( ((SvxLanguageItem&)rDocSh.GetDoc()->
+ GetDefault( RES_CHRATR_LANGUAGE )).GetLanguage());
+
+ const USHORT nLanguageCount = (USHORT) SvxGetSelectableLanguages().getLength();
+ const util::Language *pLang = SvxGetSelectableLanguages().getConstArray();
+ for( USHORT i = 0; i < nLanguageCount; ++i )
+ {
+ LanguageType eType = pLang[ i ];
+ USHORT nPos = aLanguageLB.InsertEntry( ::GetLanguageString( eType ) );
+
+ aLanguageLB.SetEntryData( nPos, (void*)(ULONG)eType );
+ if( eType == aOpt.GetLanguage() )
+ aLanguageLB.SelectEntryPos( nPos );
+ }
+ }
+ }
+ else
+ {
+ // hide the used Control for the Export and move the
+ // other behind the charset controls
+ aFontFT.Hide();
+ aFontLB.Hide();
+ aLanguageFT.Hide();
+ aLanguageLB.Hide();
+
+ long nY = aFontFT.GetPosPixel().Y();
+ Point aPos( aCRLF_FT.GetPosPixel() ); aPos.Y() = nY;
+ aCRLF_FT.SetPosPixel( aPos );
+
+ aPos = aCRLF_RB.GetPosPixel(); aPos.Y() = nY;
+ aCRLF_RB.SetPosPixel( aPos );
+
+ aPos = aCR_RB.GetPosPixel(); aPos.Y() = nY;
+ aCR_RB.SetPosPixel( aPos );
+
+ aPos = aLF_RB.GetPosPixel(); aPos.Y() = nY;
+ aLF_RB.SetPosPixel( aPos );
+ }
+
+ // initialisiere Zeichensatz
+ {
+ rtl_TextEncoding eSystem = gsl_getSystemTextEncoding();
+ USHORT nToken = 0, nPos, nCnt = 0;
+ String sToken;
+ do {
+ if( 0 != (sToken = sCharSet.GetToken( 0, ';', nToken )).Len() )
+ {
+ rtl_TextEncoding eCode = aCharSetArr[ nCnt ];
+ if( eCode == eSystem )
+ sToken = sSystemCharSet;
+ nPos = aCharSetLB.InsertEntry( sToken );
+ aCharSetLB.SetEntryData( nPos, (void*)(ULONG)eCode );
+ if( eCode == aOpt.GetCharSet() )
+ aCharSetLB.SelectEntryPos( nPos );
+ }
+ ++nCnt;
+ } while( STRING_NOTFOUND != nToken );
+ }
+
+ aCharSetLB.SetSelectHdl( LINK( this, SwAsciiFilterDlg, CharSetSelHdl ));
+ aCRLF_RB.SetToggleHdl( LINK( this, SwAsciiFilterDlg, LineEndHdl ));
+ aLF_RB.SetToggleHdl( LINK( this, SwAsciiFilterDlg, LineEndHdl ));
+ aCR_RB.SetToggleHdl( LINK( this, SwAsciiFilterDlg, LineEndHdl ));
+
+ SetCRLF( aOpt.GetParaFlags() );
+
+ aCRLF_RB.SaveValue();
+ aLF_RB.SaveValue();
+ aCR_RB.SaveValue();
+}
+
+
+SwAsciiFilterDlg::~SwAsciiFilterDlg()
+{
+}
+
+
+void SwAsciiFilterDlg::FillOptions( SwAsciiOptions& rOptions )
+{
+ ULONG nCCode = (ULONG)aCharSetLB.GetEntryData(
+ aCharSetLB.GetSelectEntryPos() );
+
+ String sFont;
+ ULONG nLng = 0;
+ if( aFontLB.IsVisible() )
+ {
+ sFont = aFontLB.GetSelectEntry();
+ nLng = (ULONG)aLanguageLB.GetEntryData(
+ aLanguageLB.GetSelectEntryPos() );
+ }
+
+ rOptions.SetFontName( sFont );
+ rOptions.SetCharSet( rtl_TextEncoding( nCCode ) );
+ rOptions.SetLanguage( USHORT( nLng ) );
+ rOptions.SetParaFlags( GetCRLF() );
+
+ // JP: Task #71802# save the user settings
+ String sData;
+ rOptions.WriteUserData( sData );
+ if( sData.Len() )
+ {
+ const String& rFindNm = String::CreateFromAscii(
+ aFontLB.IsVisible() ? sDialogImpExtraData
+ : sDialogExpExtraData);
+ USHORT nEnd, nStt = GetExtraData().Search( rFindNm );
+ if( STRING_NOTFOUND != nStt )
+ {
+ // called twice, so remove "old" settings
+ nEnd = GetExtraData().Search( cDialogExtraDataClose,
+ nStt + nDialogExtraDataLen );
+ if( STRING_NOTFOUND != nEnd )
+ GetExtraData().Erase( nStt, nEnd - nStt + 1 );
+ }
+ String sTmp(GetExtraData());
+ sTmp += rFindNm;
+ sTmp += sData;
+ sTmp += cDialogExtraDataClose;
+ GetExtraData() = sTmp;
+ }
+}
+
+void SwAsciiFilterDlg::SetCRLF( LineEnd eEnd )
+{
+ switch( eEnd )
+ {
+ case LINEEND_CR: aCR_RB.Check(); break;
+ case LINEEND_CRLF: aCRLF_RB.Check(); break;
+ case LINEEND_LF: aLF_RB.Check(); break;
+ }
+}
+
+LineEnd SwAsciiFilterDlg::GetCRLF() const
+{
+ LineEnd eEnd;
+ if( aCR_RB.IsChecked() )
+ eEnd = LINEEND_CR;
+ else if( aLF_RB.IsChecked() )
+ eEnd = LINEEND_LF;
+ else
+ eEnd = LINEEND_CRLF;
+ return eEnd;
+}
+
+IMPL_LINK( SwAsciiFilterDlg, CharSetSelHdl, ListBox*, pBox )
+{
+ LineEnd eOldEnd = GetCRLF(), eEnd = (LineEnd)-1;
+ ULONG nLng = aFontLB.IsVisible()
+ ? (ULONG)aLanguageLB.GetEntryData(
+ aLanguageLB.GetSelectEntryPos() )
+ : 0,
+ nOldLng = nLng;
+
+ ULONG nChrSet = (ULONG)pBox->GetEntryData( pBox->GetSelectEntryPos() );
+ if( nChrSet == gsl_getSystemTextEncoding() )
+ eEnd = GetSystemLineEnd();
+ else
+ {
+ switch( nChrSet )
+ {
+ case RTL_TEXTENCODING_MS_1252:
+#ifdef UNX
+ eEnd = LINEEND_LF;
+#else
+ eEnd = LINEEND_CRLF; // ANSI
+#endif
+ break;
+
+ case RTL_TEXTENCODING_APPLE_ROMAN: // MAC
+ eEnd = LINEEND_CR;
+ break;
+
+ case RTL_TEXTENCODING_IBM_850: // DOS
+ eEnd = LINEEND_CRLF;
+ break;
+
+ case RTL_TEXTENCODING_APPLE_ARABIC:
+ case RTL_TEXTENCODING_APPLE_CENTEURO:
+ case RTL_TEXTENCODING_APPLE_CROATIAN:
+ case RTL_TEXTENCODING_APPLE_CYRILLIC:
+ case RTL_TEXTENCODING_APPLE_DEVANAGARI:
+ case RTL_TEXTENCODING_APPLE_FARSI:
+ case RTL_TEXTENCODING_APPLE_GREEK:
+ case RTL_TEXTENCODING_APPLE_GUJARATI:
+ case RTL_TEXTENCODING_APPLE_GURMUKHI:
+ case RTL_TEXTENCODING_APPLE_HEBREW:
+ case RTL_TEXTENCODING_APPLE_ICELAND:
+ case RTL_TEXTENCODING_APPLE_ROMANIAN:
+ case RTL_TEXTENCODING_APPLE_THAI:
+ case RTL_TEXTENCODING_APPLE_TURKISH:
+ case RTL_TEXTENCODING_APPLE_UKRAINIAN:
+ case RTL_TEXTENCODING_APPLE_CHINSIMP:
+ case RTL_TEXTENCODING_APPLE_CHINTRAD:
+ case RTL_TEXTENCODING_APPLE_JAPANESE:
+ case RTL_TEXTENCODING_APPLE_KOREAN:
+ eEnd = LINEEND_CR;
+ break;
+
+#if 0
+which charset and language?
+ case RTL_TEXTENCODING_IBM_437:
+ case RTL_TEXTENCODING_IBM_860:
+ case RTL_TEXTENCODING_IBM_861:
+ case RTL_TEXTENCODING_IBM_863:
+ case RTL_TEXTENCODING_IBM_865:
+ case RTL_TEXTENCODING_ASCII_US:
+ case RTL_TEXTENCODING_ISO_8859_1:
+ case RTL_TEXTENCODING_ISO_8859_2:
+ case RTL_TEXTENCODING_ISO_8859_3:
+ case RTL_TEXTENCODING_ISO_8859_4:
+ case RTL_TEXTENCODING_ISO_8859_5:
+ case RTL_TEXTENCODING_ISO_8859_6:
+ case RTL_TEXTENCODING_ISO_8859_7:
+ case RTL_TEXTENCODING_ISO_8859_8:
+ case RTL_TEXTENCODING_ISO_8859_9:
+ case RTL_TEXTENCODING_ISO_8859_14:
+ case RTL_TEXTENCODING_ISO_8859_15:
+ case RTL_TEXTENCODING_IBM_737:
+ case RTL_TEXTENCODING_IBM_775:
+ case RTL_TEXTENCODING_IBM_852:
+ case RTL_TEXTENCODING_IBM_855:
+ case RTL_TEXTENCODING_IBM_857:
+ case RTL_TEXTENCODING_IBM_862:
+ case RTL_TEXTENCODING_IBM_864:
+ case RTL_TEXTENCODING_IBM_866:
+ case RTL_TEXTENCODING_IBM_869:
+ case RTL_TEXTENCODING_MS_874:
+ case RTL_TEXTENCODING_MS_1250:
+ case RTL_TEXTENCODING_MS_1251:
+ case RTL_TEXTENCODING_MS_1253:
+ case RTL_TEXTENCODING_MS_1254:
+ case RTL_TEXTENCODING_MS_1255:
+ case RTL_TEXTENCODING_MS_1256:
+ case RTL_TEXTENCODING_MS_1257:
+ case RTL_TEXTENCODING_MS_1258:
+ case RTL_TEXTENCODING_MS_932:
+ case RTL_TEXTENCODING_MS_936:
+ case RTL_TEXTENCODING_MS_949:
+ case RTL_TEXTENCODING_MS_950:
+ case RTL_TEXTENCODING_SHIFT_JIS:
+ case RTL_TEXTENCODING_GB_2312:
+ case RTL_TEXTENCODING_GBT_12345:
+ case RTL_TEXTENCODING_GBK:
+ case RTL_TEXTENCODING_BIG5:
+ case RTL_TEXTENCODING_EUC_JP:
+ case RTL_TEXTENCODING_EUC_CN:
+ case RTL_TEXTENCODING_EUC_TW:
+ case RTL_TEXTENCODING_ISO_2022_JP:
+ case RTL_TEXTENCODING_ISO_2022_CN:
+ case RTL_TEXTENCODING_KOI8_R:
+#endif
+ }
+ }
+
+ bSaveLineStatus = FALSE;
+ if( eEnd != (LineEnd)-1 ) // changed?
+ {
+ if( eOldEnd != eEnd )
+ SetCRLF( eEnd );
+ }
+ else
+ {
+ // restore old user choise (not the automatic!)
+ aCRLF_RB.Check( aCRLF_RB.GetSavedValue() );
+ aCR_RB.Check( aCR_RB.GetSavedValue() );
+ aLF_RB.Check( aLF_RB.GetSavedValue() );
+ }
+ bSaveLineStatus = TRUE;
+
+ if( nOldLng != nLng && aFontLB.IsVisible() )
+ {
+ for( USHORT n = 0, nCnt = aLanguageLB.GetEntryCount(); n < nCnt; ++n )
+ if( nLng == (ULONG)aLanguageLB.GetEntryData( n ))
+ {
+ aLanguageLB.SelectEntryPos( n );
+ break;
+ }
+ }
+ return 0;
+}
+
+IMPL_LINK( SwAsciiFilterDlg, LineEndHdl, RadioButton*, pBtn )
+{
+ if( bSaveLineStatus )
+ pBtn->SaveValue();
+ return 0;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.13 2000/09/18 16:05:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.12 2000/08/04 16:24:47 jp
+ read/write unicode ascii files
+
+ Revision 1.11 2000/08/01 07:40:17 jp
+ new CJK filters
+
+ Revision 1.10 2000/04/13 08:01:20 os
+ UNICODE
+
+ Revision 1.9 2000/03/30 10:59:20 os
+ UNO III
+
+ Revision 1.8 2000/03/16 16:38:36 kz
+ chg. include sfx2/printer.hxx
+
+ Revision 1.7 2000/02/07 16:01:51 jp
+ Task #72603#: new textencodings
+
+ Revision 1.6 2000/01/14 16:28:47 jp
+ Task #71802#: one user settings for export and one for import
+
+ Revision 1.5 2000/01/13 23:13:19 jp
+ Task #71802#: save/restore user settings
+
+ Revision 1.4 1999/11/15 14:21:12 jp
+ remove not supportet charsets from the list
+
+ Revision 1.3 1999/10/25 19:10:51 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.2 1999/08/26 18:35:26 JP
+ load and save Text with more options (charset/language/lineend/font)
+
+
+ Rev 1.1 26 Aug 1999 20:35:26 JP
+ load and save Text with more options (charset/language/lineend/font)
+
+ Rev 1.0 25 Aug 1999 19:45:40 JP
+ Dialog for ASCII filter options
+
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/dialog/ascfldlg.hrc b/sw/source/ui/dialog/ascfldlg.hrc
new file mode 100644
index 000000000000..e39d4d9a6af4
--- /dev/null
+++ b/sw/source/ui/dialog/ascfldlg.hrc
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: ascfldlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define GB_1 1
+#define FT_CHARSET 2
+#define LB_CHARSET 3
+#define FT_FONT 4
+#define LB_FONT 5
+#define FT_LANGUAGE 6
+#define LB_LANGUAGE 7
+#define FT_CRLF 8
+#define RB_CRLF 9
+#define RB_CR 10
+#define RB_LF 11
+#define PB_OK 12
+#define PB_CANCEL 13
+#define PB_HELP 14
+#define STR_NO_LANGUAGE 15
+#define STR_CHARSET 16
+#define STR_SYS_CHARSET 17
+
+
diff --git a/sw/source/ui/dialog/ascfldlg.src b/sw/source/ui/dialog/ascfldlg.src
new file mode 100644
index 000000000000..66fc5a0981c4
--- /dev/null
+++ b/sw/source/ui/dialog/ascfldlg.src
@@ -0,0 +1,563 @@
+/*************************************************************************
+ *
+ * $RCSfile: ascfldlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "dialog.hrc"
+#include "helpid.h"
+#include "ascfldlg.hrc"
+
+ModalDialog DLG_ASCII_FILTER
+{
+ HelpID = HID_ASCII_FILTER ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 239 , 84 ) ;
+ Text = "ASCII Filter Optionen" ;
+ Text [ English ] = "ASCII filter options" ;
+ Moveable = TRUE ;
+ GroupBox GB_1
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 174 , 78 ) ;
+ Text = "Eigenschaften" ;
+ Text [ English ] = "Properties" ;
+ Text[ english_us ] = "Properties";
+ Text[ portuguese ] = "Propriedades";
+ Text[ russian ] = "Ñâîéñòâà";
+ Text[ greek ] = "Éäéüôçôåò";
+ Text[ dutch ] = "Eigenschappen";
+ Text[ french ] = "Propriétés";
+ Text[ spanish ] = "Propiedades";
+ Text[ italian ] = "Proprietà";
+ Text[ danish ] = "Egenskaber";
+ Text[ swedish ] = "Egenskaper";
+ Text[ polish ] = "W³aœciwoœci";
+ Text[ portuguese_brazilian ] = "Properties";
+ Text[ japanese ] = "ÌßÛÊßè";
+ Text[ korean ] = "µî·ÏÁ¤º¸";
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ chinese_traditional ] = "ÄÝ©Ê";
+ Text[ arabic ] = "ÎÕÇÆÕ";
+ Text[ turkish ] = "Özellikler";
+ };
+ FixedText FT_CHARSET
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 53 , 10 ) ;
+ Text = "Z~eichensatz" ;
+ Text [ English ] = "Character Set" ;
+ Text[ english_us ] = "~Font";
+ Text[ portuguese ] = "~Conjunto de caracteres";
+ Text[ russian ] = "Íàáîð çíàêîâ";
+ Text[ greek ] = "Ó~åô ÷áñáêôÞñùí";
+ Text[ dutch ] = "~Tekenset";
+ Text[ french ] = "~Jeu de caractères";
+ Text[ spanish ] = "~Caracteres";
+ Text[ italian ] = "Ti~po di carattere";
+ Text[ danish ] = "Tegnsæt";
+ Text[ swedish ] = "Teckenuppsättning";
+ Text[ polish ] = "Zbiór znaków";
+ Text[ portuguese_brazilian ] = "Charset";
+ Text[ japanese ] = "•¶Žš—ñ(~F)";
+ Text[ korean ] = "±Û²Ã(~F)";
+ Text[ chinese_simplified ] = "×Ö·û¼¯(~F)";
+ Text[ chinese_traditional ] = "¦r«¬(~F)";
+ Text[ turkish ] = "Karakter kümesi";
+ Text[ arabic ] = "ãÌãæÚÉ ÃÍÑÝ";
+ };
+ ListBox LB_CHARSET
+ {
+ Pos = MAP_APPFONT ( 80 , 14 ) ;
+ Size = MAP_APPFONT ( 86 , 61 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_FONT
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 53 , 10 ) ;
+ Text = "~Grundschrift" ;
+ Text [ English ] = "Standard font" ;
+ Text[ english_us ] = "Default fonts";
+ Text[ portuguese ] = "Tipo de letra ~padrão";
+ Text[ russian ] = "Ñòàíäàðòíûé øðèôò";
+ Text[ greek ] = "ÂáóéêÝò ãñáììáôïóåéñÝò";
+ Text[ dutch ] = "~Standaardlettertype";
+ Text[ french ] = "Police de base";
+ Text[ spanish ] = "~Fuente estándar";
+ Text[ italian ] = "Carattere standard";
+ Text[ danish ] = "Standardskrifttyper";
+ Text[ swedish ] = "Standardteckensnitt";
+ Text[ polish ] = "Czcionka podstawowa";
+ Text[ portuguese_brazilian ] = "Standard fonts";
+ Text[ japanese ] = "Šù’èÌ«ÝÄ";
+ Text[ korean ] = "±âº» ±Û²Ã";
+ Text[ chinese_simplified ] = "±ê×¼×ÖÌå";
+ Text[ chinese_traditional ] = "Àq»{¦r«¬";
+ Text[ turkish ] = "Standart yazýtipi";
+ Text[ arabic ] = "ÇáÎØ ÇáÞíÇÓí";
+ };
+ ListBox LB_FONT
+ {
+ Pos = MAP_APPFONT ( 80 , 30 ) ;
+ Size = MAP_APPFONT ( 86 , 61 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_LANGUAGE
+ {
+ Pos = MAP_APPFONT ( 12 , 47 ) ;
+ Size = MAP_APPFONT ( 53 , 10 ) ;
+ Text = "~Sprache" ;
+ Text [ English ] = "Language" ;
+ Text[ english_us ] = "Lan~guage";
+ Text[ portuguese ] = "~Língua";
+ Text[ russian ] = "ßçûê";
+ Text[ greek ] = "Ãëþóóá";
+ Text[ dutch ] = "~Taal";
+ Text[ french ] = "~Langue";
+ Text[ spanish ] = "Idio~ma";
+ Text[ italian ] = "Lin~gua";
+ Text[ danish ] = "Sprog";
+ Text[ swedish ] = "Språk";
+ Text[ polish ] = "Jêzyk";
+ Text[ portuguese_brazilian ] = "Language";
+ Text[ japanese ] = "Œ¾Œê(~G)";
+ Text[ korean ] = "¾ð¾î(~G)";
+ Text[ chinese_simplified ] = "ÓïÑÔ(~G)";
+ Text[ chinese_traditional ] = "»y¨¥(~G)";
+ Text[ arabic ] = "ÇááÛÉ";
+ Text[ turkish ] = "~Dil";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_LANGUAGE
+ {
+ Pos = MAP_APPFONT ( 80 , 46 ) ;
+ Size = MAP_APPFONT ( 86 , 61 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_CRLF
+ {
+ Pos = MAP_APPFONT ( 12 , 63 ) ;
+ Size = MAP_APPFONT ( 53 , 10 ) ;
+ Text = "~Absatzumbruch" ;
+ Text [ English ] = "Paragraphbreak" ;
+ Text[ english_us ] = "~Paragraph break";
+ Text[ portuguese ] = "~Quebra de parágrafo";
+ Text[ russian ] = "Ðàçðûâ àáçàöà";
+ Text[ greek ] = "ÁëëáãÞ ðáñáãñÜöïõ";
+ Text[ dutch ] = "~Alinea-einde";
+ Text[ french ] = "Saut de ~paragraphe";
+ Text[ spanish ] = "Salt~o de párrafo";
+ Text[ italian ] = "~Interruzione di paragrafo";
+ Text[ danish ] = "Afsnitsskift";
+ Text[ swedish ] = "Styckebrytning";
+ Text[ polish ] = "Podzia³ akapitu";
+ Text[ portuguese_brazilian ] = "Paragraphbreak";
+ Text[ japanese ] = "’i—Ž‹æØ‚è(~P)";
+ Text[ korean ] = "´Ü¶ô ³ª´©±â(~P)";
+ Text[ chinese_simplified ] = "»»¶ÎÂä(~P)";
+ Text[ chinese_traditional ] = "´«¬q¸¨(~P)";
+ Text[ arabic ] = "ÝÇÕá ÝÞÑÇÊ";
+ Text[ turkish ] = "Paragraf sonu";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_CRLF
+ {
+ Pos = MAP_APPFONT ( 80 , 62 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Check = TRUE;
+ Text = "~CR & LF" ;
+ Text [ ENGLISH ] = "CR & LF" ;
+ Text[ english_us ] = "~CR & LF";
+ Text[ portuguese ] = "~CR & LF";
+ Text[ russian ] = "CR & LF";
+ Text[ greek ] = "~CR & LF";
+ Text[ dutch ] = "~CR & LF";
+ Text[ french ] = "~CR & LF";
+ Text[ spanish ] = "CR & LF";
+ Text[ italian ] = "~CR & LF";
+ Text[ danish ] = "CR og LF";
+ Text[ swedish ] = "CR & LF";
+ Text[ polish ] = "~CR & LF";
+ Text[ portuguese_brazilian ] = "CR & LF";
+ Text[ japanese ] = "CR & LF(~C)";
+ Text[ korean ] = "CR & LF(~C)";
+ Text[ chinese_simplified ] = "»Ø³µ²¢»»ÐÐ(~C)";
+ Text[ chinese_traditional ] = "~CR & LF";
+ Text[ arabic ] = "CR & LF";
+ Text[ turkish ] = "~CR & LF";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_CR
+ {
+ Pos = MAP_APPFONT ( 123 , 62 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+// TabStop = TRUE ;
+ Text = "C~R" ;
+ Text [ ENGLISH ] = "CR" ;
+ Text[ english_us ] = "C~R";
+ Text[ portuguese ] = "C~R";
+ Text[ russian ] = "CR";
+ Text[ greek ] = "C~R";
+ Text[ dutch ] = "C~R";
+ Text[ french ] = "C~R";
+ Text[ spanish ] = "C~R";
+ Text[ italian ] = "C~R";
+ Text[ danish ] = "CR";
+ Text[ swedish ] = "CR";
+ Text[ polish ] = "C~R";
+ Text[ portuguese_brazilian ] = "CR";
+ Text[ japanese ] = "CR(~R)";
+ Text[ korean ] = "CR(~R)";
+ Text[ chinese_simplified ] = "»Ø³µ(~R)";
+ Text[ chinese_traditional ] = "C~R";
+ Text[ arabic ] = "CR";
+ Text[ turkish ] = "C~R";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_LF
+ {
+ Pos = MAP_APPFONT ( 146 , 62 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+// TabStop = TRUE ;
+ Text = "~LF" ;
+ Text [ ENGLISH ] = "LF" ;
+ Text[ english_us ] = "~LF";
+ Text[ portuguese ] = "~LF";
+ Text[ russian ] = "LF";
+ Text[ greek ] = "~LF";
+ Text[ dutch ] = "~LF";
+ Text[ french ] = "~LF";
+ Text[ spanish ] = "~LF";
+ Text[ italian ] = "~LF";
+ Text[ danish ] = "LF";
+ Text[ swedish ] = "LF";
+ Text[ polish ] = "~LF";
+ Text[ portuguese_brazilian ] = "LF";
+ Text[ japanese ] = "LF(~L)";
+ Text[ korean ] = "LF(~L)";
+ Text[ chinese_simplified ] = "ÐÂÐÐ(~L)";
+ Text[ chinese_traditional ] = "~LF";
+ Text[ arabic ] = "LF";
+ Text[ turkish ] = "~LF";
+ Text[ language_user1 ] = " ";
+ };
+
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 186 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 186 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 186 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ String STR_NO_LANGUAGE
+ {
+ Text = "[Keine]" ;
+ Text [ ENGLISH ] = "[None]" ;
+ Text[ english_us ] = "[None]";
+ Text[ portuguese ] = "[Nenhum]";
+ Text[ russian ] = "[Áåç]";
+ Text[ greek ] = "[Êáìßá]";
+ Text[ dutch ] = "[Geen]";
+ Text[ french ] = "[Aucune]";
+ Text[ spanish ] = "[Ninguno]";
+ Text[ italian ] = "[Nessuna]";
+ Text[ danish ] = "[Ingen]";
+ Text[ swedish ] = "[Inget]";
+ Text[ polish ] = "[Brak]";
+ Text[ portuguese_brazilian ] = "[None]";
+ Text[ japanese ] = "[‚È‚µ]";
+ Text[ korean ] = "[¾øÀ½]";
+ Text[ chinese_simplified ] = "[ÎÞ]";
+ Text[ chinese_traditional ] = "[µL]";
+ Text[ arabic ] = "[ÈÏæä]";
+ Text[ turkish ] = "[Yok]";
+ };
+ String STR_SYS_CHARSET
+ {
+ Text = "System" ;
+ Text [ ENGLISH ] = "System" ;
+ Text[ english_us ] = "System";
+ Text[ portuguese ] = "Sistema";
+ Text[ russian ] = "Èç ñèñòåìû";
+ Text[ greek ] = "Óýóôçìá";
+ Text[ dutch ] = "Systeem";
+ Text[ french ] = "Système";
+ Text[ spanish ] = "Sistema";
+ Text[ italian ] = "Sistema";
+ Text[ danish ] = "System";
+ Text[ swedish ] = "System";
+ Text[ polish ] = "System";
+ Text[ portuguese_brazilian ] = "System";
+ Text[ japanese ] = "¼½ÃÑ";
+ Text[ korean ] = "½Ã½ºÅÛ";
+ Text[ chinese_simplified ] = "ϵͳ";
+ Text[ chinese_traditional ] = "¨t²Î";
+ Text[ arabic ] = "ÇáäÙÇã";
+ Text[ turkish ] = "Sistem";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_CHARSET
+ {
+ Text = "Westeuropa (Window-1252/WinLatin 1);"
+ "Westeuropa (Apple Macintosh);"
+ "Westeuropa (DOS/OS2-850/International);"
+ "Westeuropa (DOS/OS2-437/US);"
+ "Westeuropa (DOS/OS2-860/Portugiesisch);"
+ "Westeuropa (DOS/OS2-861/Isländisch);"
+ "Westeuropa (DOS/OS2-863/Französisch (Kand.));"
+ "Westeuropa (DOS/OS2-865/Nordisch);"
+ "Westeuropa (ASCII/US);"
+ "Westeuropa (ISO-8859-1);"
+ "Osteuropa (ISO-8859-2);"
+ "Latin 3 (ISO-8859-3);"
+ "Baltisch (ISO-8859-4);"
+ "Kyrillisch (ISO-8859-5);"
+// RTL_TEXTENCODING_ISO_8859_6, // Arabic (ISO-8859-6)
+ "Griechisch (ISO-8859-7);"
+// RTL_TEXTENCODING_ISO_8859_8, // Hebrew (ISO-8859-8)
+ "Türkisch (ISO-8859-9);"
+ "Westeuropa (ISO-8859-14);"
+ "Westeuropa (ISO-8859-15/EURO);"
+ "Griechisch (DOS/OS2-737);"
+ "Baltisch (DOS/OS2-775);"
+ "Osteuropa (DOS/OS2-852);"
+ "Kyrillisch (DOS/OS2-855);"
+ "Türkisch (DOS/OS2-857);"
+// RTL_TEXTENCODING_IBM_862, // Hebrew (DOS/OS2-862)
+// RTL_TEXTENCODING_IBM_864, // Arabic (DOS/OS2-864)
+ "Kyrillisch (DOS/OS2-866/Russisch);"
+ "Griechisch (DOS/OS2-869/Modern);"
+// RTL_TEXTENCODING_MS_874, // Thai (Dos/Windows-874)
+ "Osteuropa (Windows-1250/WinLatin 2);"
+ "Kyrillisch (Windows-1251);"
+ "Griechisch (Windows-1253);"
+ "Türkisch (Windows-1254);"
+// RTL_TEXTENCODING_MS_1255, // Hebrew (Windows-1255)
+// RTL_TEXTENCODING_MS_1256, // Arabic (Windows-1256)
+ "Baltisch (Windows-1257);"
+// RTL_TEXTENCODING_MS_1258, // Vietnamese (Windows-1258)
+// RTL_TEXTENCODING_APPLE_ARABIC, // Arabic (Apple Macintosh)
+ "Osteuropa (Apple Macintosh);"
+ "Osteuropa (Apple Macintosh/Kroatisch);"
+ "Kyrillisch (Apple Macintosh);"
+// RTL_TEXTENCODING_APPLE_DEVANAGARI, // APPLE DEVANAGARI
+// RTL_TEXTENCODING_APPLE_FARSI, // APPLE FARSI
+ "Griechisch (Apple Macintosh);"
+// RTL_TEXTENCODING_APPLE_GUJARATI, // APPLE GUJARATI
+// RTL_TEXTENCODING_APPLE_GURMUKHI, // APPLE GURMUKHI
+// RTL_TEXTENCODING_APPLE_HEBREW, // Hebrew (Apple Macintosh)
+ "Westeuropa (Apple Macintosh/Isländisch);"
+ "Osteuropa (Apple Macintosh/Rumänisch);"
+// RTL_TEXTENCODING_APPLE_THAI, // Thai (Apple Macintosh)
+ "Türkisch (Apple Macintosh);"
+ "Kyrillisch (Apple Macintosh/Ukrainisch);"
+ "Chinesisch vereinfacht (Apple Macintosh);"
+ "Chinesisch traditionell (Apple Macintosh);"
+ "Japanisch (Apple Macintosh);"
+ "Koreanisch (Apple Macintosh);"
+ "Japanisch (Windows-932);"
+ "Chinesisch vereinfacht (Windows-936);"
+ "Koreanisch (Windows-949);"
+ "Chinesisch traditionell (Windows-950);"
+ "Japanisch (Shift-JIS);"
+ "Chinesisch vereinfacht (GB-2312);"
+ "Chinesisch traditionell (GBT-12345);"
+ "Chinesisch vereinfacht (GBK/GB-2312-80);"
+ "Chinesisch traditionell (BIG5);"
+// "Japanisch (EUC-JP);"
+ "Chinesisch vereinfacht (EUC-CN);"
+// "Chinesisch traditionell (EUC-TW);"
+// "Japanisch (ISO-2022-JP);"
+// "Chinesisch vereinfacht (ISO-2022-CN);"
+ "Kyrillisch (KOI8-R);"
+ "Unicode (UTF-7);"
+ "Unicode (UTF-8);"
+ "Osteuropa (ISO-8859-10);"
+ "Osteuropa (ISO-8859-13);"
+ "Koreanisch (EUC-KR);"
+// "Koreanisch (ISO-2022-KR);"
+ "Unicode;"
+ ;
+ Text[ English ] =
+ "Western (Window-1252/WinLatin 1);"
+ "Western (Apple Macintosh);"
+ "Western (DOS/OS2-850/International);"
+ "Western (DOS/OS2-437/US);"
+ "Western (DOS/OS2-860/Portugese);"
+ "Western (DOS/OS2-861/Icelandic);"
+ "Western (DOS/OS2-863/Canadian-French);"
+ "Western (DOS/OS2-865/Nordic);"
+ "Western (ASCII/US);"
+ "Western (ISO-8859-1);"
+ "Central European (ISO-8859-2);"
+ "Latin 3 (ISO-8859-3);"
+ "Baltic (ISO-8859-4);"
+ "Cyrillic (ISO-8859-5);"
+// RTL_TEXTENCODING_ISO_8859_6, // Arabic (ISO-8859-6)
+ "Greek (ISO-8859-7);"
+// RTL_TEXTENCODING_ISO_8859_8, // Hebrew (ISO-8859-8)
+ "Turkish (ISO-8859-9);"
+ "Western (ISO-8859-14);"
+ "Western (ISO-8859-15/EURO);"
+ "Greek (DOS/OS2-737);"
+ "Baltic (DOS/OS2-775);"
+ "Central European (DOS/OS2-852);"
+ "Cyrillic (DOS/OS2-855);"
+ "Turkish (DOS/OS2-857);"
+// RTL_TEXTENCODING_IBM_862, // Hebrew (DOS/OS2-862)
+// RTL_TEXTENCODING_IBM_864, // Arabic (DOS/OS2-864)
+ "Cyrillic (DOS/OS2-866/Russian);"
+ "Greek (DOS/OS2-869/Modern);"
+// RTL_TEXTENCODING_MS_874, // Thai (Dos/Windows-874)
+ "Central European (Windows-1250/WinLatin 2);"
+ "Cyrillic (Windows-1251);"
+ "Greek (Windows-1253);"
+ "Turkish (Windows-1254);"
+// RTL_TEXTENCODING_MS_1255, // Hebrew (Windows-1255)
+// RTL_TEXTENCODING_MS_1256, // Arabic (Windows-1256)
+ "Baltic (Windows-1257);"
+// RTL_TEXTENCODING_MS_1258, // Vietnamese (Windows-1258)
+// RTL_TEXTENCODING_APPLE_ARABIC, // Arabic (Apple Macintosh)
+ "Central European (Apple Macintosh);"
+ "Central European (Apple Macintosh/Croatian);"
+ "Cyrillic (Apple Macintosh);"
+// RTL_TEXTENCODING_APPLE_DEVANAGARI, // APPLE DEVANAGARI
+// RTL_TEXTENCODING_APPLE_FARSI, // APPLE FARSI
+ "Greek (Apple Macintosh);"
+// RTL_TEXTENCODING_APPLE_GUJARATI, // APPLE GUJARATI
+// RTL_TEXTENCODING_APPLE_GURMUKHI, // APPLE GURMUKHI
+// RTL_TEXTENCODING_APPLE_HEBREW, // Hebrew (Apple Macintosh)
+ "Western (Apple Macintosh/Icelandic);"
+ "Central European (Apple Macintosh/Romanian);"
+// RTL_TEXTENCODING_APPLE_THAI, // Thai (Apple Macintosh)
+ "Turkish (Apple Macintosh);"
+ "Cyrillic (Apple Macintosh/Ukrainian);"
+ "Chinese Simplified (Apple Macintosh);"
+ "Chinese Traditional (Apple Macintosh);"
+ "Japanese (Apple Macintosh);"
+ "Korean (Apple Macintosh);"
+ "Japanese (Windows-932);"
+ "Chinese Simplified (Windows-936);"
+ "Korean (Windows-949);"
+ "Chinese Traditional (Windows-950);"
+ "Japanese (Shift-JIS);"
+ "Chinese Simplified (GB-2312);"
+ "Chinese Traditional (GBT-12345);"
+ "Chinese Simplified (GBK/GB-2312-80);"
+ "Chinese Traditional (BIG5);"
+// "Japanese (EUC-JP);"
+ "Chinese Simplified (EUC-CN);"
+// "Chinese Traditional (EUC-TW);"
+// "Japanese (ISO-2022-JP);"
+// "Chinese Simplified (ISO-2022-CN);"
+ "Cyrillic (KOI8-R);"
+ "Unicode (UTF-7);"
+ "Unicode (UTF-8);"
+ "Central European (ISO-8859-10);"
+ "Central European (ISO-8859-13);"
+ "Korean (EUC-KR);"
+// "Korean (ISO-2022-KR);"
+ "Unicode;"
+ ;
+ };
+ Text[ english_us ] = "ASCII Filter Options";
+ Text[ portuguese ] = "Opções de filtro ASCII";
+ Text[ russian ] = "Ïàðàìåòðû ôèëüòðà ASCII";
+ Text[ greek ] = "ÅðéëïãÝò ößëôñùí ASCII";
+ Text[ dutch ] = "ASCII filteropties";
+ Text[ french ] = "Options de filtre ASCII";
+ Text[ spanish ] = "Opciones de filtro ASCII";
+ Text[ italian ] = "Opzioni filtro ASCII";
+ Text[ danish ] = "ASCII filterindstillinger";
+ Text[ swedish ] = "ASCII filteralternativ";
+ Text[ polish ] = "Opcje filtra ASCII";
+ Text[ portuguese_brazilian ] = "ASCII filter options";
+ Text[ japanese ] = "ASCIĮÙÀµÌß¼®Ý";
+ Text[ korean ] = "¾Æ½ºÅ° ÇÊÅÍ ¿É¼Ç";
+ Text[ chinese_simplified ] = "ASCII ¹ýÂËÆ÷Ñ¡Ïî";
+ Text[ chinese_traditional ] = "ASCII ¹LÂo¾¹¿ï¶µ";
+ Text[ arabic ] = "ÎÕÇÆÕ ÝáÊÑ ASCII";
+ Text[ turkish ] = "ASCII filtre seçenekleri";
+ Text[ language_user1 ] = " ";
+};
+
+
+
+
+
diff --git a/sw/source/ui/dialog/dialog.src b/sw/source/ui/dialog/dialog.src
new file mode 100644
index 000000000000..28a5be47f737
--- /dev/null
+++ b/sw/source/ui/dialog/dialog.src
@@ -0,0 +1,201 @@
+/*************************************************************************
+ *
+ * $RCSfile: dialog.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "dialog.hrc"
+
+CheckBox CB_USE_PASSWD
+{
+ /* ### ACHTUNG: Neuer Text in Resource? ~Paßwort : ~Pa˜wort */
+ Text = "~Passwort" ;
+ Text [ ENGLISH ] = "~Password" ;
+ Text [ norwegian ] = "~Passord" ;
+ Text [ italian ] = "~Password" ;
+ Text [ portuguese_brazilian ] = "~Senha" ;
+ Text [ portuguese ] = "~Senha" ;
+ Text [ finnish ] = "~Salasana" ;
+ Text [ danish ] = "Adgangskode" ;
+ Text [ french ] = "~Mot de passe" ;
+ Text [ swedish ] = "~Lösenord" ;
+ Text [ dutch ] = "~Wachtwoord" ;
+ Text [ spanish ] = "~Contraseña" ;
+ Text [ english_us ] = "~Password" ;
+ Text[ chinese_simplified ] = "¿ÚÁî(~P)";
+ Text[ russian ] = "Ïàðîëü";
+ Text[ polish ] = "Has³o";
+ Text[ japanese ] = "Ê߽ܰÄÞ(~P)";
+ Text[ chinese_traditional ] = "±K½X(~P)";
+ Text[ arabic ] = "ßáãÉ ÇáÓÑ";
+ Text[ greek ] = "Êùäéêüò ðñüóâáóçò";
+ Text[ korean ] = "Æнº¿öµå(~P)";
+ Text[ turkish ] = "Þifre";
+ Text[ language_user1 ] = " ";
+};
+CheckBox CB_READ_ONLY
+{
+ Text = "Nu~r lesen" ;
+ Text [ ENGLISH ] = "~Read only" ;
+ Text [ norwegian ] = "~Skrivebeskyttet" ;
+ Text [ italian ] = "~Sola lettura" ;
+ Text [ portuguese_brazilian ] = "~Só leitura" ;
+ Text [ portuguese ] = "~Só leitura" ;
+ Text [ finnish ] = "~Vain luku" ;
+ Text [ danish ] = "Skrivebeskyttet" ;
+ Text [ french ] = "En ~lecture seule" ;
+ Text [ swedish ] = "Sk~rivskyddad" ;
+ Text [ dutch ] = "~Alleen lezen" ;
+ Text [ spanish ] = "~Solo lectura" ;
+ Text [ english_us ] = "~Read only" ;
+ Text[ chinese_simplified ] = "Ö»¶Á(~R)";
+ Text[ russian ] = "Òîëüêî äëÿ ÷òåíèÿ";
+ Text[ polish ] = "Tylko do odczytu";
+ Text[ japanese ] = "“Ç‚ÝŽæ‚èê—p(~R)";
+ Text[ chinese_traditional ] = "°ßŪ(~R)";
+ Text[ arabic ] = "ááÞÑÇÁÉ ÝÞØ";
+ Text[ greek ] = "Ìüíï ãéá áíÜãíùóç";
+ Text[ korean ] = "Àбâ Àü¿ë(~R)";
+ Text[ turkish ] = "~Salt okunur";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINKEDIT_TEXT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Verknüpfungen bearbeiten : Verkn³pfungen bearbeiten */
+ Text = "Verknüpfungen bearbeiten" ;
+ Text [ ENGLISH ] = "Edit links" ;
+ Text [ norwegian ] = "Edit links" ;
+ Text [ italian ] = "Modifica collegamenti" ;
+ Text [ portuguese_brazilian ] = "Editar ligações" ;
+ Text [ portuguese ] = "Editar ligações" ;
+ Text [ finnish ] = "Muokkaa linkkejä" ;
+ Text [ danish ] = "Rediger kæder" ;
+ Text [ french ] = "Édition de liens" ;
+ Text [ swedish ] = "Redigera länkar" ;
+ Text [ dutch ] = "Koppelingen bewerken" ;
+ Text [ spanish ] = "Modificar vínculos" ;
+ Text [ english_us ] = "Edit links" ;
+ Text[ chinese_simplified ] = "±à¼­Á´½Ó";
+ Text[ russian ] = "Ïðàâêà ññûëîê";
+ Text[ polish ] = "Edytuj ³¹cza";
+ Text[ japanese ] = "Øݸ‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿è±¶®|";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÇÑÊÈÇØÇÊ";
+ Text[ greek ] = "Åðåîåñãáóßá óõíäÝóåùí";
+ Text[ korean ] = "¿¬°á ÆíÁý";
+ Text[ turkish ] = "Baðlantýlarý düzenle";
+ Text[ language_user1 ] = " ";
+};
+String STR_PATH_NOT_FOUND1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Das Verzeichnis ' : Das Verzeichnis '' */
+ Text = "Das Verzeichnis '" ;
+ Text [ English ] = "The directory '" ;
+ Text [ norwegian ] = "The directory '" ;
+ Text [ italian ] = "La cartella" ;
+ Text [ portuguese_brazilian ] = "O diretório" ;
+ Text [ portuguese ] = "O directório '" ;
+ Text [ finnish ] = "Hakemistoa '" ;
+ Text [ danish ] = "Biblioteket '" ;
+ Text [ french ] = "Le répertoire'" ;
+ Text [ swedish ] = "Mappen '" ;
+ Text [ dutch ] = "Map '" ;
+ Text [ spanish ] = "El directorio '" ;
+ Text [ english_us ] = "The directory '" ;
+ Text[ chinese_simplified ] = "Õâ¸öĿ¼ '";
+ Text[ russian ] = "Äèðåêòîðèÿ '";
+ Text[ polish ] = "Katalog";
+ Text[ japanese ] = "ÃÞ¨Ú¸ÄØ'";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "³o­Ó¥Ø¿ý '";
+ Text[ arabic ] = "ÇáÏáíá '";
+ Text[ greek ] = "Ï êáôÜëïãïò '";
+ Text[ korean ] = "µð·ºÅ丮'";
+ Text[ turkish ] = "Dizin '";
+};
+String STR_PATH_NOT_FOUND2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? ' existiert nicht. : '' existiert nicht. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' existiert nicht. : '' existiert nicht. */
+ Text = "' existiert nicht." ;
+ Text [ English ] = "' does not exist." ;
+ Text [ norwegian ] = "' does not exist." ;
+ Text [ italian ] = "' non esiste." ;
+ Text [ portuguese_brazilian ] = "' não existe." ;
+ Text [ portuguese ] = "' não existe." ;
+ Text [ finnish ] = "' ei ole." ;
+ Text [ danish ] = "' eksisterer ikke." ;
+ Text [ french ] = "' n'existe pas." ;
+ Text [ swedish ] = "' finns inte." ;
+ Text [ dutch ] = "' bestaat niet." ;
+ Text [ spanish ] = "' no existe." ;
+ Text [ english_us ] = "' does not exist." ;
+ Text[ chinese_simplified ] = "' ²»´æÔÚ¡£";
+ Text[ russian ] = "' íå ñóùåñòâóåò.";
+ Text[ polish ] = "nie istnieje.";
+ Text[ japanese ] = "'‚Í‘¶Ý‚µ‚Ä‚¢‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "' ¤£¦s¦b¡C";
+ Text[ arabic ] = "' ÛíÑ ãæÌæÏ.";
+ Text[ greek ] = "' äåí õðÜñ÷åé.";
+ Text[ korean ] = "' °¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "' mevcut deðil.";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLT_SGV
+{
+ Text = "SGV - StarDraw 2.0,SGV" ;
+};
diff --git a/sw/source/ui/dialog/docstdlg.cxx b/sw/source/ui/dialog/docstdlg.cxx
new file mode 100644
index 000000000000..35d13bc7909d
--- /dev/null
+++ b/sw/source/ui/dialog/docstdlg.cxx
@@ -0,0 +1,427 @@
+/*************************************************************************
+ *
+ * $RCSfile: docstdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <stdio.h>
+#include <ctype.h>
+
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FESH_HXX
+#include <fesh.hxx>
+#endif
+
+#ifndef _PVIEW_HXX
+#include <pview.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _DOCSTDLG_HXX
+#include <docstdlg.hxx>
+#endif
+#ifndef _DOCSTAT_HXX
+#include <docstat.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+
+// fuer Statistikfelder
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+
+#ifndef _DOCSTDLG_HRC
+#include <docstdlg.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Create
+ --------------------------------------------------------------------*/
+
+
+SfxTabPage * SwDocStatPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwDocStatPage(pParent, rSet);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ctor
+ --------------------------------------------------------------------*/
+
+
+SwDocStatPage::SwDocStatPage(Window *pParent, const SfxItemSet &rSet) :
+
+ SfxTabPage (pParent, SW_RES(TP_DOC_STAT), rSet),
+
+ aTableLbl (this, SW_RES( FT_TABLE )),
+ aGrfLbl (this, SW_RES( FT_GRF )),
+ aOLELbl (this, SW_RES( FT_OLE )),
+ aPageLbl (this, SW_RES( FT_PAGE )),
+ aParaLbl (this, SW_RES( FT_PARA )),
+ aWordLbl (this, SW_RES( FT_WORD )),
+ aWordDelimFT(this, SW_RES( FT_WORD_DELIM )),
+ aWordDelim (this, SW_RES( ED_WORD_DELIM )),
+ aCharLbl (this, SW_RES( FT_CHAR )),
+ aTableNo (this, SW_RES( FT_TABLE_COUNT)),
+ aGrfNo (this, SW_RES( FT_GRF_COUNT )),
+ aOLENo (this, SW_RES( FT_OLE_COUNT )),
+ aPageNo (this, SW_RES( FT_PAGE_COUNT )),
+ aParaNo (this, SW_RES( FT_PARA_COUNT )),
+ aWordNo (this, SW_RES( FT_WORD_COUNT )),
+ aCharNo (this, SW_RES( FT_CHAR_COUNT )),
+ aLineLbl (this, SW_RES( FT_LINE )),
+ aLineNo (this, SW_RES( FT_LINE_COUNT )),
+ aUpdatePB (this, SW_RES( PB_PDATE ))
+{
+ Update();
+ FreeResource();
+ aUpdatePB.SetClickHdl(LINK(this, SwDocStatPage, UpdateHdl));
+}
+
+
+ SwDocStatPage::~SwDocStatPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ItemSet fuellen bei Aenderung
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDocStatPage::FillItemSet(SfxItemSet &rSet)
+{
+ // evtl UserData setzen
+
+ String sEd(aWordDelim.GetText());
+ String sDelim;
+ String sChar;
+
+ xub_StrLen i = 0;
+ sal_Unicode c;
+
+ while (i < sEd.Len())
+ {
+ c = sEd.GetChar(i++);
+
+ if (c == '\\')
+ {
+ c = sEd.GetChar(i++);
+
+ switch (c)
+ {
+ case 'n': sDelim += '\n'; break;
+ case 't': sDelim += '\t'; break;
+ case '\\': sDelim += '\\'; break;
+
+ case 'x':
+ {
+ sal_Unicode nVal, nChar;
+ BOOL bValidData = TRUE;
+ xub_StrLen n;
+ for( n = 0, nChar = 0; n < 2 && i < sEd.Len(); ++n, ++i )
+ {
+ if( ((nVal = sEd.GetChar( i )) >= '0') && ( nVal <= '9') )
+ nVal -= '0';
+ else if( (nVal >= 'A') && (nVal <= 'F') )
+ nVal -= 'A' - 10;
+ else if( (nVal >= 'a') && (nVal <= 'f') )
+ nVal -= 'a' - 10;
+ else
+ {
+ DBG_ASSERT( !this, "ungueltiger Hex-Wert" );
+ bValidData = FALSE;
+ break;
+ }
+
+ (nChar <<= 4 ) += nVal;
+ }
+ if( bValidData )
+ sDelim += nChar;
+ break;
+ }
+
+ default: // Unbekannt, daher nur Backslash einfuegen
+ sDelim += '\\';
+ i--;
+ break;
+ }
+ }
+ else
+ sDelim += c;
+ }
+
+
+ SW_MOD()->GetModuleConfig()->SetWordDelimiter(sDelim);
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDocStatPage::Reset(const SfxItemSet &rSet)
+{
+ // Im Set befindet sich die DocInfo
+ // bei Bedarf UserData auswerten
+ String sDelim(SW_MOD()->GetDocStatWordDelim());
+ String sEd;
+ for (xub_StrLen i = 0; i < sDelim.Len(); i++)
+ {
+ sal_Unicode c = sDelim.GetChar(i);
+
+ switch (c)
+ {
+ case '\n': sEd.AppendAscii(RTL_CONSTASCII_STRINGPARAM("\\n")); break;
+ case '\t': sEd.AppendAscii(RTL_CONSTASCII_STRINGPARAM("\\t")); break;
+ case '\\': sEd.AppendAscii(RTL_CONSTASCII_STRINGPARAM("\\\\")); break;
+
+ default:
+ if( c <= 0x1f || c >= 0x7f )
+ {
+ sEd.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "\\x" ))
+ += String::CreateFromInt32( c, 16 );
+ }
+ else
+ sEd += c;
+ }
+ }
+ aWordDelim.SetText(sEd);
+ aWordDelim.ClearModifyFlag();
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Aktualisieren / Setzen der Daten
+------------------------------------------------------------------------*/
+
+
+void SwDocStatPage::SetData(const SwDocStat &rStat)
+{
+ aTableNo.SetText(String::CreateFromInt32( rStat.nTbl ));
+ aGrfNo.SetText(String::CreateFromInt32( rStat.nGrf ));
+ aOLENo.SetText(String::CreateFromInt32( rStat.nOLE ));
+ aPageNo.SetText(String::CreateFromInt32( rStat.nPage ));
+ aParaNo.SetText(String::CreateFromInt32( rStat.nPara ));
+ aWordNo.SetText(String::CreateFromInt32( rStat.nWord ));
+ aCharNo.SetText(String::CreateFromInt32( rStat.nChar ));
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Aktualisieren der Statistik
+------------------------------------------------------------------------*/
+
+
+void SwDocStatPage::Update()
+{
+ SfxViewShell *pVSh = SfxViewShell::Current();
+ ViewShell *pSh = 0;
+ if ( pVSh->ISA(SwView) )
+ pSh = ((SwView*)pVSh)->GetWrtShellPtr();
+ else if ( pVSh->ISA(SwPagePreView) )
+ pSh = &((SwPagePreView*)pVSh)->GetViewShell();
+
+ ASSERT( pSh, "Shell not found" );
+
+ SwWait aWait( *pSh->GetDoc()->GetDocShell(), TRUE );
+ pSh->StartAction();
+ pSh->GetDoc()->UpdateDocStat( aDocStat, pSh->GetNumPages() );
+ pSh->EndAction();
+
+ SetData(aDocStat);
+}
+
+/*-----------------19.06.97 16.37-------------------
+ Zeilennummer aktualisieren
+--------------------------------------------------*/
+IMPL_LINK( SwDocStatPage, UpdateHdl, PushButton*, pButton)
+{
+ FillItemSet(*(SfxItemSet *)0); // Worttrenner setzen
+ aDocStat.bModified |= aWordDelim.IsModified();
+ aWordDelim.ClearModifyFlag();
+ Update();
+ SwDocShell* pDocShell = (SwDocShell*) SfxObjectShell::Current();
+ SwFEShell* pFEShell = pDocShell->GetFEShell();
+ aLineNo.SetText( String::CreateFromInt32( pFEShell->GetLineCount(FALSE)));
+ //pButton->Disable();
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.43 2000/09/18 16:05:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.42 2000/05/22 16:26:16 jp
+ Changes for Unicode
+
+ Revision 1.41 2000/04/13 08:01:20 os
+ UNICODE
+
+ Revision 1.40 1999/07/08 17:16:10 MA
+ Use internal object to toggle wait cursor
+
+
+ Rev 1.39 08 Jul 1999 19:16:10 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.38 26 May 1998 12:04:42 OM
+ #50480 Worttrenner aktualisieren
+
+ Rev 1.37 15 May 1998 12:48:22 OM
+ Worttrenner
+
+ Rev 1.36 14 May 1998 16:46:54 OM
+ Worttrenner konfigurierbar
+
+ Rev 1.35 01 Sep 1997 13:15:08 OS
+ DLL-Umstellung
+
+ Rev 1.34 27 Aug 1997 09:53:10 MH
+ chg: header
+
+ Rev 1.33 26 Aug 1997 14:53:38 TRI
+ VCL includes
+
+ Rev 1.32 23 Jun 1997 10:57:00 OS
+ LineCount: nicht die akt. Psition
+
+ Rev 1.31 20 Jun 1997 16:46:58 HJS
+ sexport -> __export
+
+ Rev 1.30 20 Jun 1997 16:41:40 HJS
+ sexport -> __export
+
+ Rev 1.29 19 Jun 1997 17:29:00 OS
+ Zeilen zaehlen
+
+ Rev 1.28 11 Nov 1996 09:31:16 MA
+ ResMgr
+
+ Rev 1.27 01 Nov 1996 10:32:20 OM
+ Statistik-TP auf Standardgroesse gebracht
+
+ Rev 1.26 28 Aug 1996 10:10:00 OS
+ includes
+
+ Rev 1.25 02 Jul 1996 18:43:38 MA
+ Wait-Umstellung 325
+
+ Rev 1.24 19 Jan 1996 20:07:42 MA
+ fix#24463# UpdateDocStat in Seitenansicht
+
+ Rev 1.23 24 Nov 1995 16:58:16 OM
+ PCH->PRECOMPILED
+
+ Rev 1.22 26 Feb 1995 15:37:28 MA
+ fix: SEXPORT nachgeruestet.
+
+ Rev 1.21 24 Jan 1995 12:49:46 SWG
+ Map entfernt
+
+ Rev 1.20 18 Jan 1995 19:12:48 ER
+ fld.hxx -> *fld*.hxx
+
+ Rev 1.19 09 Dec 1994 18:26:00 MS
+ DocStat geaendert
+
+ Rev 1.18 07 Dec 1994 17:00:20 MS
+ DocStat -> TabPage
+
+ Rev 1.17 25 Oct 1994 16:31:12 ER
+ add: PCH
+
+ Rev 1.16 17 Oct 1994 16:26:38 PK
+ ausgeboxtes wieder reingeboxt
+
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/dialog/docstdlg.hrc b/sw/source/ui/dialog/docstdlg.hrc
new file mode 100644
index 000000000000..3b75e178e84f
--- /dev/null
+++ b/sw/source/ui/dialog/docstdlg.hrc
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * $RCSfile: docstdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define FT_TABLE 1
+#define FT_GRF 2
+#define FT_OLE 3
+#define FT_PAGE 4
+#define FT_PARA 5
+#define FT_WORD 6
+#define ED_WORD_DELIM 7
+#define FT_WORD_DELIM 8
+#define FT_CHAR 9
+#define FT_TABLE_COUNT 10
+#define FT_GRF_COUNT 11
+#define FT_OLE_COUNT 12
+#define FT_PAGE_COUNT 13
+#define FT_PARA_COUNT 14
+#define FT_WORD_COUNT 15
+#define FT_CHAR_COUNT 16
+#define FT_LINE 17
+#define FT_LINE_COUNT 18
+#define PB_PDATE 19
+
+#define BT_OK 100
+
diff --git a/sw/source/ui/dialog/docstdlg.src b/sw/source/ui/dialog/docstdlg.src
new file mode 100644
index 000000000000..48271d1d8822
--- /dev/null
+++ b/sw/source/ui/dialog/docstdlg.src
@@ -0,0 +1,411 @@
+/*************************************************************************
+ *
+ * $RCSfile: docstdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "docstdlg.hrc"
+#include "helpid.h"
+ // #define TP_DOC_STAT 256
+TabPage TP_DOC_STAT
+{
+ HelpID = HID_DOC_STAT ;
+ Hide = TRUE;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ FixedText FT_PAGE
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Anzahl Seiten:" ;
+ Text [ ENGLISH ] = "Number of pages:" ;
+ Text [ norwegian ] = "Number of pages:" ;
+ Text [ italian ] = "Numero di pagine:" ;
+ Text [ portuguese_brazilian ] = "Número de páginas:" ;
+ Text [ portuguese ] = "Número de páginas:" ;
+ Text [ finnish ] = "Sivuja:" ;
+ Text [ danish ] = "Antal sider:" ;
+ Text [ french ] = "Nombre de pages :" ;
+ Text [ swedish ] = "Antal sidor:" ;
+ Text [ dutch ] = "Aantal pagina's:" ;
+ Text [ spanish ] = "Número de páginas:" ;
+ Text [ english_us ] = "Number of Pages:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ò³ÃæÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî ñòðàíèö:";
+ Text[ polish ] = "Liczba stron:";
+ Text[ japanese ] = "Íß°¼Þ‘”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø ­¶¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáÕÝÍÇÊ:";
+ Text[ greek ] = "Áñéèìüò óåëßäùí:";
+ Text[ korean ] = "ÆäÀÌÁö ¼ö:";
+ Text[ turkish ] = "Sayfa:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_TABLE
+ {
+ Pos = MAP_APPFONT ( 6 , 22 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Anzahl Tabellen:" ;
+ Text [ ENGLISH ] = "Number of tables:" ;
+ Text [ norwegian ] = "Number of tables:" ;
+ Text [ italian ] = "Numero di tabelle:" ;
+ Text [ portuguese_brazilian ] = "Número de tabelas:" ;
+ Text [ portuguese ] = "Número de tabelas:" ;
+ Text [ finnish ] = "Taulukoita:" ;
+ Text [ danish ] = "Antal tabeller:" ;
+ Text [ french ] = "Nombre de tableaux :" ;
+ Text [ swedish ] = "Antal tabeller:" ;
+ Text [ dutch ] = "Aantal tabellen:" ;
+ Text [ spanish ] = "Número de tablas:" ;
+ Text [ english_us ] = "Number of Tables:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "±í¸ñÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî òàáëèö:";
+ Text[ polish ] = "Liczba tabel:";
+ Text[ japanese ] = "•\\”:";
+ Text[ chinese_traditional ] = "ªí®æ¼Æ¥Ø¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáÌÏÇæá:";
+ Text[ greek ] = "Áñéèìüò ðéíÜêùí:";
+ Text[ korean ] = "Ç¥ °³¼ö:";
+ Text[ turkish ] = "Tablo:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_GRF
+ {
+ Pos = MAP_APPFONT ( 6 , 38 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Anzahl Grafiken:" ;
+ Text [ ENGLISH ] = "Number of graphics:" ;
+ Text [ norwegian ] = "Number of graphics:" ;
+ Text [ italian ] = "Numero di immagini:" ;
+ Text [ portuguese_brazilian ] = "Número de gráficos:" ;
+ Text [ portuguese ] = "Número de imagens:" ;
+ Text [ finnish ] = "Kuvia:" ;
+ Text [ danish ] = "Antal billeder:" ;
+ Text [ french ] = "Nombre d'images :" ;
+ Text [ swedish ] = "Antal grafiker:" ;
+ Text [ dutch ] = "Aantal afbeeldingen:" ;
+ Text [ spanish ] = "Número de imágenes:" ;
+ Text [ english_us ] = "Number of Graphics:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ͼÐÎÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî ðèñóíêîâ:";
+ Text[ polish ] = "Liczba grafik:";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø ¹Ï¤ù¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáÑÓæãÇÊ:";
+ Text[ greek ] = "Áñéèìüò ãñáöéêþí:";
+ Text[ korean ] = "±×·¡ÇÈ °³¼ö:";
+ Text[ turkish ] = "Grafik:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_OLE
+ {
+ Pos = MAP_APPFONT ( 6 , 54 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Anzahl OLE-Objekte:" ;
+ Text [ ENGLISH ] = "Number of OLE objects:" ;
+ Text [ norwegian ] = "Number of OLE objects:" ;
+ Text [ italian ] = "Numero di oggetti OLE:" ;
+ Text [ portuguese_brazilian ] = "Número de objetos OLE:" ;
+ Text [ portuguese ] = "Número de objectos OLE:" ;
+ Text [ finnish ] = "OLE-objekteja:" ;
+ Text [ danish ] = "Antal OLE-objekter:" ;
+ Text [ french ] = "Nombre d'objets OLE :" ;
+ Text [ swedish ] = "Antal OLE-objekt:" ;
+ Text [ dutch ] = "Aantal OLE-objecten:" ;
+ Text [ spanish ] = "Número de objetos OLE:" ;
+ Text [ english_us ] = "Number of OLE Objects:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "OLE ¶ÔÏóÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî îáúåêòîâ OLÅ:";
+ Text[ polish ] = "Liczba obiektów OLE:";
+ Text[ japanese ] = "OLEµÌÞ¼Þª¸Ä‚Ì”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø OLE-ª«¥ó¡G";
+ Text[ arabic ] = "ÚÏÏ ßÇÆäÇÊ OLE:";
+ Text[ greek ] = "Áñéèìüò áíôéêåéìÝíùí OLE:";
+ Text[ korean ] = "OLE °³Ã¼ °³¼ö:";
+ Text[ turkish ] = "OLE nesneleri:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_PARA
+ {
+ Pos = MAP_APPFONT ( 6 , 70 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Anzahl Absätze: : Anzahl Absõtze: */
+ Text = "Anzahl Absätze:" ;
+ Text [ ENGLISH ] = "Number of paragraphs:" ;
+ Text [ norwegian ] = "Number of paragraphs:" ;
+ Text [ italian ] = "Numero di paragrafi:" ;
+ Text [ portuguese_brazilian ] = "Número de parágrafos:" ;
+ Text [ portuguese ] = "Número de parágrafos:" ;
+ Text [ finnish ] = "Kappaleita:" ;
+ Text [ danish ] = "Antal afsnit:" ;
+ Text [ french ] = "Nombre de paragraphes :" ;
+ Text [ swedish ] = "Antal stycken:" ;
+ Text [ dutch ] = "Aantal alinea's:" ;
+ Text [ spanish ] = "Número de párrafos:" ;
+ Text [ english_us ] = "Number of Paragraphs:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¶ÎÂäÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî àáçàöåâ:";
+ Text[ polish ] = "Liczba akapitów:";
+ Text[ japanese ] = "’i—Ž”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø ¬q¸¨¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáÝÞÑÇÊ:";
+ Text[ greek ] = "Áñéèìüò ðáñáãñÜöùí:";
+ Text[ korean ] = "´Ü¶ô °³¼ö:";
+ Text[ turkish ] = "Paragraf:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_WORD
+ {
+ Pos = MAP_APPFONT ( 6 , 86 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Anzahl Wörter: : Anzahl W÷rter: */
+ Text = "Anzahl Wörter:" ;
+ Text [ ENGLISH ] = "Number of words:" ;
+ Text [ norwegian ] = "Number of words:" ;
+ Text [ italian ] = "Numero di parole:" ;
+ Text [ portuguese_brazilian ] = "Número de palavras:" ;
+ Text [ portuguese ] = "Número de palavras:" ;
+ Text [ finnish ] = "Sanoja:" ;
+ Text [ danish ] = "Antal ord:" ;
+ Text [ french ] = "Nombre de mots :" ;
+ Text [ swedish ] = "Antal ord:" ;
+ Text [ dutch ] = "Aantal woorden:" ;
+ Text [ spanish ] = "Número de palabras:" ;
+ Text [ english_us ] = "Number of Words:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "µ¥´ÊÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî ñëîâ:";
+ Text[ polish ] = "Liczba s³ów:";
+ Text[ japanese ] = "Œê”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø ¦r¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáßáãÇÊ:";
+ Text[ greek ] = "Áñéèìüò ëÝîåùí:";
+ Text[ korean ] = "´Ü¾î °³¼ö:";
+ Text[ turkish ] = "Sözcük:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_WORD_DELIM
+ {
+ Pos = MAP_APPFONT ( 144 , 86 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "~Trenner" ;
+ Text [ ENGLISH ] = "Delimiter" ;
+ Left = TRUE ;
+ Text [ portuguese ] = "~Separador" ;
+ Text [ english_us ] = "Separator" ;
+ Text [ portuguese_brazilian ] = "Trenner" ;
+ Text [ swedish ] = "Avgränsare" ;
+ Text [ danish ] = "Separator" ;
+ Text [ italian ] = "~Separatore" ;
+ Text [ spanish ] = "Sepa~rador" ;
+ Text [ french ] = "~Séparateur" ;
+ Text [ dutch ] = "~Scheidingsteken" ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹æØ‚è‹L†";
+ Text[ chinese_traditional ] = "³s¦r²Å";
+ Text[ arabic ] = "ÝÇÕá";
+ Text[ greek ] = "Äéá÷ùñéóôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ";
+ Text[ turkish ] = "~Ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_WORD_DELIM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 204 , 85 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_CHAR
+ {
+ Pos = MAP_APPFONT ( 6 , 102 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Anzahl Zeichen:" ;
+ Text [ ENGLISH ] = "Number of chars:" ;
+ Text [ norwegian ] = "Number of chars:" ;
+ Text [ italian ] = "Numero di caratteri:" ;
+ Text [ portuguese_brazilian ] = "Número de caracteres:" ;
+ Text [ portuguese ] = "Número de caracteres:" ;
+ Text [ finnish ] = "Merkkejä:" ;
+ Text [ danish ] = "Antal tegn:" ;
+ Text [ french ] = "Nombre de caractères :" ;
+ Text [ swedish ] = "Antal tecken:" ;
+ Text [ dutch ] = "Aantal tekens:" ;
+ Text [ spanish ] = "Número de caracteres:" ;
+ Text [ english_us ] = "Number of Characters:" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö·ûÊýÄ¿£º";
+ Text[ russian ] = "Êîëè÷åñòâî çíàêîâ:";
+ Text[ polish ] = "Liczba znaków:";
+ Text[ japanese ] = "•¶Žš”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø ¦r¤¸¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáÃÍÑÝ:";
+ Text[ greek ] = "Áñéèìüò ÷áñáêôÞñùí:";
+ Text[ korean ] = "¹®ÀÚ °³¼ö:";
+ Text[ turkish ] = "Karakter:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_LINE
+ {
+ Pos = MAP_APPFONT ( 6 , 118 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Anzahl Zeilen:" ;
+ Text [ ENGLISH ] = "Number of lines:" ;
+ Text [ portuguese ] = "Número de linhas:" ;
+ Text [ english_us ] = "Number of Lines:" ;
+ Text [ portuguese_brazilian ] = "Anzahl Zeilen:" ;
+ Text [ swedish ] = "Antal rader:" ;
+ Text [ danish ] = "Antal rækker:" ;
+ Text [ italian ] = "Numero di righe:" ;
+ Text [ spanish ] = "Número de líneas:" ;
+ Text [ french ] = "Nombre de lignes :" ;
+ Text [ dutch ] = "Aantal regels:" ;
+ Text[ chinese_simplified ] = "ÐÐÊý£º";
+ Text[ russian ] = "Êîëè÷åñòâî ñòðîê:";
+ Text[ polish ] = "Liczba wierszy:";
+ Text[ japanese ] = "s”:";
+ Text[ chinese_traditional ] = "¼Æ¥Ø ¦æ¡G";
+ Text[ arabic ] = "ÚÏÏ ÇáÃÓØÑ:";
+ Text[ greek ] = "Áñéèìüò ãñáììþí:";
+ Text[ korean ] = "¼± °³¼ö:";
+ Text[ turkish ] = "Satýr:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_PAGE_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 6 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_TABLE_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 22 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_GRF_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 38 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_OLE_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 54 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_PARA_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 70 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_WORD_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 86 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_CHAR_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 102 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_LINE_COUNT
+ {
+ Pos = MAP_APPFONT ( 114 , 118 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Left = TRUE ;
+ Text = "..." ;
+ };
+ PushButton PB_PDATE
+ {
+ Pos = MAP_APPFONT ( 204 , 116 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Aktualisieren" ;
+ Text [ ENGLISH ] = "~Update" ;
+ Text [ portuguese ] = "~Actualizar" ;
+ Text [ english_us ] = "~Update" ;
+ Text [ portuguese_brazilian ] = "Aktualisieren" ;
+ Text [ swedish ] = "Uppd~atera" ;
+ Text [ danish ] = "Opdater" ;
+ Text [ italian ] = "Aggiorna" ;
+ Text [ spanish ] = "~Actualizar" ;
+ Text [ french ] = "~Actualiser" ;
+ Text [ dutch ] = "~Actualiseren" ;
+ Text[ chinese_simplified ] = "¸üÐÂ(~U)";
+ Text[ russian ] = "Îáíîâèòü";
+ Text[ polish ] = "Aktualizuj";
+ Text[ japanese ] = "XV‚·‚é(~U)";
+ Text[ chinese_traditional ] = "§ó·s(~U)";
+ Text[ arabic ] = "ÊÍÏíË";
+ Text[ greek ] = "~ÅíçìÝñùóç";
+ Text[ korean ] = "¾÷ µ¥ÀÌÆ®(~U)";
+ Text[ turkish ] = "~Güncelle";
+ Text[ language_user1 ] = " ";
+ };
+};
diff --git a/sw/source/ui/dialog/macassgn.cxx b/sw/source/ui/dialog/macassgn.cxx
new file mode 100644
index 000000000000..a2731979772a
--- /dev/null
+++ b/sw/source/ui/dialog/macassgn.cxx
@@ -0,0 +1,293 @@
+/*************************************************************************
+ *
+ * $RCSfile: macassgn.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "wrtsh.hxx"
+#include "viewopt.hxx"
+#include "macassgn.hxx"
+#include "swevent.hxx"
+#include "docsh.hxx"
+#include "globals.hrc"
+
+
+SvStringsDtor* __EXPORT _GetRangeHdl( _SfxMacroTabPage*, const String& );
+
+
+SwMacroAssignDlg::SwMacroAssignDlg( Window* pParent, SfxItemSet& rSet,
+ DlgEventType eType )
+ : SfxMacroAssignDlg( pParent, rSet )
+{
+ // TabPage holen
+ SwMacroAssignDlg::AddEvents( *(SfxSmallMacroTabPage*) GetTabPage(), eType );
+}
+
+
+SwMacroAssignDlg::~SwMacroAssignDlg()
+{
+}
+
+
+void SwMacroAssignDlg::AddEvents( SfxSmallMacroTabPage& rPg, DlgEventType eType )
+{
+ const SfxItemSet& rSet = rPg.GetItemSet();
+
+ BOOL bHtmlMode = FALSE;
+ USHORT nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
+ bHtmlMode = nHtmlMode & HTMLMODE_ON ? TRUE : FALSE;
+
+ switch( eType )
+ {
+ case MACASSGN_TEXTBAUST: // Textbausteine
+ rPg.SetGetRangeLink( &_GetRangeHdl );
+ rPg.AddEvent( String( SW_RES(STR_EVENT_START_INS_GLOSSARY) ),
+ SW_EVENT_START_INS_GLOSSARY );
+ rPg.AddEvent( String( SW_RES(STR_EVENT_END_INS_GLOSSARY) ),
+ SW_EVENT_END_INS_GLOSSARY);
+ // damit der neue Handler aktiv wird!
+ rPg.Reset( rSet );
+ break;
+ case MACASSGN_ALLFRM:
+ case MACASSGN_GRAPHIC: // Grafiken
+ {
+ rPg.AddEvent( String( SW_RES(STR_EVENT_IMAGE_ERROR) ),
+ SVX_EVENT_IMAGE_ERROR);
+ rPg.AddEvent( String( SW_RES(STR_EVENT_IMAGE_ABORT) ),
+ SVX_EVENT_IMAGE_ABORT);
+ rPg.AddEvent( String( SW_RES(STR_EVENT_IMAGE_LOAD) ),
+ SVX_EVENT_IMAGE_LOAD);
+ }
+ // kein break;
+ case MACASSGN_FRMURL: // Frm - URL-Attribute
+ {
+ if( !bHtmlMode &&
+ (MACASSGN_FRMURL == eType || MACASSGN_ALLFRM == eType))
+ {
+ rPg.AddEvent( String( SW_RES( STR_EVENT_FRM_KEYINPUT_A ) ),
+ SW_EVENT_FRM_KEYINPUT_ALPHA );
+ rPg.AddEvent( String( SW_RES( STR_EVENT_FRM_KEYINPUT_NOA ) ),
+ SW_EVENT_FRM_KEYINPUT_NOALPHA );
+ rPg.AddEvent( String( SW_RES( STR_EVENT_FRM_RESIZE ) ),
+ SW_EVENT_FRM_RESIZE );
+ rPg.AddEvent( String( SW_RES( STR_EVENT_FRM_MOVE ) ),
+ SW_EVENT_FRM_MOVE );
+ }
+ }
+ // kein break;
+ case MACASSGN_OLE: // OLE
+ {
+ if( !bHtmlMode )
+ rPg.AddEvent( String( SW_RES(STR_EVENT_OBJECT_SELECT) ),
+ SW_EVENT_OBJECT_SELECT );
+ }
+ // kein break;
+ case MACASSGN_INETFMT: // INetFmt-Attribute
+ {
+ rPg.AddEvent( String( SW_RES(STR_EVENT_MOUSEOVER_OBJECT) ),
+ SFX_EVENT_MOUSEOVER_OBJECT );
+ rPg.AddEvent( String( SW_RES(STR_EVENT_MOUSECLICK_OBJECT) ),
+ SFX_EVENT_MOUSECLICK_OBJECT);
+ rPg.AddEvent( String( SW_RES(STR_EVENT_MOUSEOUT_OBJECT) ),
+ SFX_EVENT_MOUSEOUT_OBJECT);
+ }
+ break;
+ }
+}
+
+
+BOOL SwMacroAssignDlg::INetFmtDlg( Window* pParent, SwWrtShell& rSh,
+ SvxMacroItem*& rpINetItem )
+{
+ BOOL bRet = FALSE;
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_FRMMACRO, RES_FRMMACRO );
+ SvxMacroItem aItem;
+ if( !rpINetItem )
+ rpINetItem = new SvxMacroItem;
+ else
+ aItem.SetMacroTable( rpINetItem->GetMacroTable() );
+
+ aSet.Put( aItem );
+
+ SwMacroAssignDlg aMacDlg( pParent, aSet, MACASSGN_INETFMT );
+ if( aMacDlg.Execute() == RET_OK )
+ {
+ const SfxItemSet* pOutSet = aMacDlg.GetOutputItemSet();
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pOutSet->GetItemState( RES_FRMMACRO, FALSE, &pItem ))
+ {
+ rpINetItem->SetMacroTable( ((SvxMacroItem*)pItem)->GetMacroTable() );
+ bRet = TRUE;
+ }
+ }
+ return bRet;
+}
+
+
+SvStringsDtor* __EXPORT _GetRangeHdl( _SfxMacroTabPage* pTbPg, const String& rLanguage )
+{
+ SvStringsDtor* pNew = new SvStringsDtor;
+
+ SfxApplication* pSfxApp = SFX_APP();
+ if ( !rLanguage.EqualsAscii(SVX_MACRO_LANGUAGE_JAVASCRIPT) )
+ {
+ pSfxApp->EnterBasicCall();
+
+ String* pNewEntry = new String( pSfxApp->GetName() );
+ pNew->Insert( pNewEntry, pNew->Count() );
+
+ TypeId aType( TYPE( SwDocShell ));
+ SfxObjectShell* pDoc = SfxObjectShell::GetFirst( &aType );
+ while( pDoc )
+ {
+ pNewEntry = new String( pDoc->GetTitle() );
+ pNew->Insert( pNewEntry, pNew->Count() );
+ pDoc = SfxObjectShell::GetNext( *pDoc, &aType );
+ }
+ pSfxApp->LeaveBasicCall();
+ }
+
+ return pNew;
+}
+
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.40 2000/09/18 16:05:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.39 2000/04/20 12:55:01 os
+ GetName() returns String&
+
+ Revision 1.38 2000/02/11 14:44:39 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.37 1998/07/17 08:17:28 OS
+ SfxxSmallMacroTabPage einsetzen #52809#
+
+
+ Rev 1.36 17 Jul 1998 10:17:28 OS
+ SfxxSmallMacroTabPage einsetzen #52809#
+
+ Rev 1.35 10 Jul 1998 11:04:14 MBA
+ GetRangeHdl jetzt mit String
+
+ Rev 1.34 28 Nov 1997 17:57:10 MA
+ includes
+
+ Rev 1.33 25 Nov 1997 10:43:20 MA
+ includes
+
+ Rev 1.32 03 Nov 1997 13:12:26 MA
+ precomp entfernt
+
+ Rev 1.31 06 Aug 1997 11:59:46 TRI
+ VCL: includes
+
+ Rev 1.30 07 Apr 1997 14:24:32 MH
+ chg: header
+
+ Rev 1.29 21 Feb 1997 09:23:42 OS
+ ALL-define fuer Rahmenvorlagen
+
+ Rev 1.28 18 Feb 1997 17:07:52 JP
+ Erweiterung fuer Events am Frame
+
+ Rev 1.27 28 Jan 1997 16:31:18 OS
+ HtmlMode mit GetHtmlMode ermitteln
+
+ Rev 1.26 27 Jan 1997 15:34:46 OS
+ InetFmtDlg returnt Bool
+
+ Rev 1.25 08 Jan 1997 11:01:00 OS
+ SID_HTML_MODE jetzt UInt16Item
+
+ Rev 1.24 04 Dec 1996 15:04:52 JP
+ SW_EVENT -> SVX_EVENT/SFX_EVENT
+
+ Rev 1.23 03 Dec 1996 19:56:32 JP
+ Macrozuweisen-TabPage/-Dialog aus dem Writer exportiert, eigene Ableitung fuer setzen der Events
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/dialog/makefile.mk b/sw/source/ui/dialog/makefile.mk
new file mode 100644
index 000000000000..e9d132965c17
--- /dev/null
+++ b/sw/source/ui/dialog/makefile.mk
@@ -0,0 +1,114 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=dialog
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# future: DEMO\dialog.srs
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ addrdlg.cxx \
+ abstract.cxx \
+ ascfldlg.cxx \
+ docstdlg.cxx \
+ ltmpdlg.cxx \
+ macassgn.cxx \
+ regionsw.cxx
+
+SRCFILES = \
+ abstract.src \
+ ascfldlg.src \
+ dialog.src \
+ docstdlg.src \
+ macassgn.src \
+ ltmpdlg.src \
+ regionsw.src
+
+SLOFILES = \
+ $(SLO)$/abstract.obj \
+ $(SLO)$/addrdlg.obj \
+ $(SLO)$/ascfldlg.obj \
+ $(SLO)$/docstdlg.obj \
+ $(SLO)$/ltmpdlg.obj \
+ $(SLO)$/macassgn.obj \
+ $(SLO)$/regionsw.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/dialog/regionsw.cxx b/sw/source/ui/dialog/regionsw.cxx
new file mode 100644
index 000000000000..537fecae6556
--- /dev/null
+++ b/sw/source/ui/dialog/regionsw.cxx
@@ -0,0 +1,2365 @@
+/*************************************************************************
+ *
+ * $RCSfile: regionsw.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _DRAG_HXX //autogen
+#include <vcl/drag.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SOT_FORMATS_HXX //autogen
+#include <sot/formats.hxx>
+#endif
+#ifndef _PASSWD_HXX //autogen
+#include <sfx2/passwd.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _LINKMGR_HXX
+#include <so3/linkmgr.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#define ITEMID_SIZE 0
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX
+#include <offmgr/htmlcfg.hxx>
+#endif
+
+#ifndef _BOOKMRK_HXX //autogen
+#include <bookmrk.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _DOCARY_HXX
+#include <docary.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx> // fuers SwSectionFmt-Array
+#endif
+#ifndef _SW3IO_HXX
+#include <sw3io.hxx> //fuer lcl_ReadSections
+#endif
+#ifndef _REGIONSW_HXX
+#include <regionsw.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+#ifndef _COLUMN_HXX
+#include <column.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _REGIONSW_HRC
+#include <regionsw.hrc>
+#endif
+#ifndef _COMCORE_HRC
+#include <comcore.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+#define FILE_NAME_LENGTH 17
+
+
+SV_IMPL_OP_PTRARR_SORT( SectReprArr, SectReprPtr )
+
+
+USHORT lcl_GetRegion( const String& rRegionName, SwWrtShell& rWrtShell );
+void lcl_ReadSections( SwWrtShell& rSh, SfxMedium& rMedium, ComboBox& rBox );
+
+/* -----------------25.06.99 15:38-------------------
+
+ --------------------------------------------------*/
+class SwTestPasswdDlg : public SfxPasswordDialog
+{
+public:
+ SwTestPasswdDlg(Window* pParent) :
+ SfxPasswordDialog(pParent)
+ {
+ SetHelpId(HID_DLG_PASSWD_SECTION);
+ }
+
+
+};
+/*----------------------------------------------------------------------------
+ Beschreibung: User Data Klasse fuer Bereichsinformationen
+----------------------------------------------------------------------------*/
+
+SectRepr::SectRepr( USHORT nPos, SwSection& rSect ) :
+ aSection( CONTENT_SECTION, aEmptyStr ),
+ bSelected(FALSE),
+ bIsCondition(rSect.GetCondition().Len() > 0)
+{
+ aSection = rSect;
+ bContent = aSection.GetLinkFileName().Len() == 0;
+ nArrPos=nPos;
+ SwSectionFmt *pFmt = rSect.GetFmt();
+ if( pFmt )
+ {
+ aCol = pFmt->GetCol();
+ aBrush = pFmt->GetBackground();
+ aFtnNtAtEnd = pFmt->GetFtnAtTxtEnd();
+ aEndNtAtEnd = pFmt->GetEndAtTxtEnd();
+ aBalance.SetValue(pFmt->GetBalancedColumns().GetValue());
+ }
+}
+
+
+void SectRepr::SetFile( const String& rFile )
+{
+ String sNewFile( INetURLObject::decode( rFile, INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ));
+ String sOldFileName( aSection.GetLinkFileName() );
+ String sSub( sOldFileName.GetToken( 2, cTokenSeperator ) );
+
+ if( rFile.Len() || sSub.Len() )
+ {
+ sNewFile += cTokenSeperator;
+ if( rFile.Len() ) // Filter nur mit FileName
+ sNewFile += sOldFileName.GetToken( 1, cTokenSeperator );
+
+ sNewFile += cTokenSeperator;
+ sNewFile += sSub;
+ }
+
+ aSection.SetLinkFileName( sNewFile );
+
+ if( rFile.Len() || sSub.Len() )
+ aSection.SetType( FILE_LINK_SECTION );
+ else
+ aSection.SetType( CONTENT_SECTION );
+}
+
+
+void SectRepr::SetFilter( const String& rFilter )
+{
+ String sNewFile;
+ String sOldFileName( aSection.GetLinkFileName() );
+ String sFile( sOldFileName.GetToken( 0, cTokenSeperator ) );
+ String sSub( sOldFileName.GetToken( 2, cTokenSeperator ) );
+
+ if( sFile.Len() )
+ (((( sNewFile = sFile ) += cTokenSeperator ) += rFilter )
+ += cTokenSeperator ) += sSub;
+ else if( sSub.Len() )
+ (( sNewFile = cTokenSeperator ) += cTokenSeperator ) += sSub;
+
+ aSection.SetLinkFileName( sNewFile );
+
+ if( sNewFile.Len() )
+ aSection.SetType( FILE_LINK_SECTION );
+}
+
+void SectRepr::SetSubRegion(const String& rSubRegion)
+{
+ String sNewFile;
+ String sOldFileName( aSection.GetLinkFileName() );
+ String sFilter( sOldFileName.GetToken( 1, cTokenSeperator ) );
+ sOldFileName = sOldFileName.GetToken( 0, cTokenSeperator );
+
+ if( rSubRegion.Len() || sOldFileName.Len() )
+ (((( sNewFile = sOldFileName ) += cTokenSeperator ) += sFilter )
+ += cTokenSeperator ) += rSubRegion;
+
+ aSection.SetLinkFileName( sNewFile );
+
+ if( rSubRegion.Len() || sOldFileName.Len() )
+ aSection.SetType( FILE_LINK_SECTION );
+ else
+ aSection.SetType( CONTENT_SECTION );
+}
+
+
+String SectRepr::GetFile() const
+{
+ String sLinkFile( aSection.GetLinkFileName() );
+ if( sLinkFile.Len() )
+ {
+#ifdef DDE_AVAILABLE
+ if( DDE_LINK_SECTION == aSection.GetType() )
+ {
+ USHORT n = sLinkFile.SearchAndReplace( cTokenSeperator, ' ' );
+ sLinkFile.SearchAndReplace( cTokenSeperator, ' ', n );
+ }
+ else
+#endif
+ sLinkFile = sLinkFile.GetToken( 0, cTokenSeperator );
+ }
+ return sLinkFile;
+}
+
+
+String SectRepr::GetSubRegion() const
+{
+ String sLinkFile( aSection.GetLinkFileName() );
+ if( sLinkFile.Len() )
+ sLinkFile = sLinkFile.GetToken( 2, cTokenSeperator );
+ return sLinkFile;
+}
+
+
+
+
+/*----------------------------------------------------------------------------
+ Beschreibung: Dialog Bearbeiten Bereiche
+----------------------------------------------------------------------------*/
+
+//---------------------------------------------------------------------
+
+SwEditRegionDlg::SwEditRegionDlg( Window* pParent, SwWrtShell& rWrtSh )
+ : SfxModalDialog( pParent, SW_RES(MD_EDIT_REGION) ),
+ pAktEntry( 0 ),
+ rSh( rWrtSh ),
+#ifdef DDE_AVAILABLE
+ aDDECB ( this, SW_RES( CB_DDE ) ) ,
+ aDDECommandFT ( this, SW_RES( FT_DDE ) ) ,
+#endif
+ aConditionED ( this, SW_RES( ED_CONDITION ) ),
+ aOK ( this, SW_RES( PB_OK ) ),
+ aOptionsPB ( this, SW_RES( PB_OPTIONS ) ),
+ aDismiss ( this, SW_RES( CB_DISMISS ) ),
+ aHelp ( this, SW_RES( PB_HELP ) ),
+ aNameFT ( this, SW_RES( FT_RNAME ) ),
+ aCurName ( this, SW_RES( ED_RANAME ) ),
+ aProtectCB ( this, SW_RES( CB_PROTECT ) ),
+ aPasswdCB ( this, SW_RES( CB_PASSWD ) ),
+ aHideCB ( this, SW_RES( CB_HIDE ) ),
+ aCondCB ( this, SW_RES( CB_CONDITION ) ),
+ aFileCB ( this, SW_RES( CB_FILE ) ),
+ aFilePB ( this, SW_RES( PB_FILE ) ),
+ aFileNameFT ( this, SW_RES( FT_FILE ) ) ,
+ aFileNameED ( this, SW_RES( ED_FILE ) ),
+ aSubRegionFT ( this, SW_RES( FT_SUBREG ) ) ,
+ aSubRegionED ( this, SW_RES( LB_SUBREG ) ) ,
+ aGroupBoxName ( this, SW_RES( GB_EDIT_SECTION ) ),
+ aCancel ( this, SW_RES( PB_CANCEL ) ),
+ aProtHideBM ( SW_RES( BMP_REG_PROT_HIDE ) ),
+ aProtNoHideBM ( SW_RES( BMP_REG_PROT_NOHIDE ) ),
+ aNoProtHideBM ( SW_RES( BMP_REG_NOPROT_HIDE ) ),
+ aNoProtNoHideBM ( SW_RES( BMP_REG_NOPROT_NOHIDE ) ),
+ aExpNode ( SW_RES( BMP_REG_EXPNODE ) ),
+ aCollNode ( SW_RES( BMP_REG_COLLNODE ) ),
+ aGroupBoxOptions ( this, SW_RES( GB_EDIT_OPTIONS ) ),
+ aTree ( this, SW_RES( TLB_SECTION ))
+{
+ FreeResource();
+ bWeb = 0 != PTR_CAST( SwWebDocShell, rSh.GetView().GetDocShell() );
+ bIsPasswd=FALSE;
+ bIsPasswdSet=FALSE;
+
+ aTree.SetSelectHdl ( LINK( this, SwEditRegionDlg, GetFirstEntryHdl));
+ aTree.SetDeselectHdl ( LINK( this, SwEditRegionDlg, DeselectHdl));
+ aCurName.SetModifyHdl ( LINK( this, SwEditRegionDlg, NameEditHdl));
+ aConditionED.SetModifyHdl( LINK( this, SwEditRegionDlg, ConditionEditHdl));
+ aOK.SetClickHdl ( LINK( this, SwEditRegionDlg, OkHdl));
+ aPasswdCB.SetClickHdl ( LINK( this, SwEditRegionDlg, ChangePasswdHdl));
+ aHideCB.SetClickHdl ( LINK( this, SwEditRegionDlg, ChangeHideHdl));
+ aOptionsPB.Show();
+ aOptionsPB.SetClickHdl ( LINK( this, SwEditRegionDlg, OptionsHdl));
+ aCondCB.SetClickHdl ( LINK( this, SwEditRegionDlg, ChangeCondHdl));
+ aProtectCB.SetClickHdl ( LINK( this, SwEditRegionDlg, ChangeProtectHdl));
+ aDismiss.SetClickHdl ( LINK( this, SwEditRegionDlg, ChangeDismissHdl));
+ aFileCB.SetClickHdl ( LINK( this, SwEditRegionDlg, UseFileHdl ));
+ aFilePB.SetClickHdl ( LINK( this, SwEditRegionDlg, FileSearchHdl ));
+ aFileNameED.SetModifyHdl( LINK( this, SwEditRegionDlg, FileNameHdl ));
+ aSubRegionED.SetModifyHdl( LINK( this, SwEditRegionDlg, FileNameHdl ));
+
+ aTree.SetHelpId(HID_REGION_TREE);
+ aTree.SetSelectionMode( MULTIPLE_SELECTION );
+ aTree.SetWindowBits(WB_HASBUTTONSATROOT|WB_CLIPCHILDREN|WB_HSCROLL);
+ aTree.SetFont(Application::GetSettings().GetStyleSettings().GetAppFont());
+ aTree.SetNodeBitmaps( aExpNode,aCollNode );
+ aTree.SetSpaceBetweenEntries(0);
+
+ if(bWeb)
+ {
+ aConditionED .Hide();
+ aPasswdCB .Hide();
+ aHideCB .Hide();
+ aCondCB .Hide();
+#ifdef DDE_AVAILABLE
+ aDDECB .Hide();
+ aDDECommandFT .Hide();
+#endif
+ }
+
+#ifdef DDE_AVAILABLE
+ aDDECB.SetClickHdl ( LINK( this, SwEditRegionDlg, DDEHdl ));
+#endif
+
+ //Array enthaelt Bitmaps nach den Eigenschaften Hide und Protect
+ aBmpArr[0]= aNoProtNoHideBM;
+ aBmpArr[1]= aProtNoHideBM;
+ aBmpArr[2]= aNoProtHideBM;
+ aBmpArr[3]= aProtHideBM;
+
+ //Ermitteln der vorhandenen Bereiche
+ pCurrSect = rSh.GetCurrSection();
+ RecurseList( 0, 0 );
+ //falls der Cursor nicht in einem Bereich steht,
+ //wird immer der erste selektiert
+ if( !aTree.FirstSelected() && aTree.First() )
+ aTree.Select( aTree.First() );
+ aTree.Show();
+}
+
+/*-----------------18.09.97 08:09-------------------
+
+--------------------------------------------------*/
+void SwEditRegionDlg::SetPassword(const String& rPassWd)
+{
+ aNewPasswd = rPassWd;
+ aPasswdCB.Check(rPassWd.Len() > 0);
+}
+/*---------------------------------------------------------------------
+ Beschreibung: Durchsuchen nach Child-Sections, rekursiv
+---------------------------------------------------------------------*/
+
+void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvLBoxEntry* pEntry )
+{
+ SwSection* pSect;
+ SvLBoxEntry* pSelEntry = 0;
+
+ if (!pFmt)
+ {
+ SvLBoxEntry* pEntry;
+ const SwSectionFmt* pFmt;
+ USHORT nCount=rSh.GetSectionFmtCount();
+ for ( USHORT n=0; n < nCount; n++ )
+ {
+ SectionType eTmpType;
+ if( !( pFmt = &rSh.GetSectionFmt(n))->GetParent() &&
+ pFmt->IsInNodesArr() &&
+ (eTmpType = pFmt->GetSection()->GetType()) != TOX_CONTENT_SECTION
+ && TOX_HEADER_SECTION != eTmpType )
+ {
+ SectRepr* pSectRepr = new SectRepr( n,
+ *(pSect=pFmt->GetSection()) );
+ Bitmap aBM=BuildBitmap( pSect->IsProtect(),pSect->IsHidden());
+ pEntry = aTree.InsertEntry( pSect->GetName(), aBM, aBM );
+ pEntry->SetUserData(pSectRepr);
+ RecurseList( pFmt, pEntry );
+ if (pEntry->HasChilds())
+ aTree.Expand(pEntry);
+ if (pCurrSect==pSect)
+ aTree.Select(pEntry);
+ }
+ }
+ }
+ else
+ {
+ SwSections aTmpArr;
+ SvLBoxEntry* pNEntry;
+ USHORT nCnt = pFmt->GetChildSections(aTmpArr,SORTSECT_POS);
+ if( nCnt )
+ {
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ SectionType eTmpType;
+ const SwSectionFmt* pFmt = aTmpArr[n]->GetFmt();
+ if( pFmt->IsInNodesArr() &&
+ (eTmpType = pFmt->GetSection()->GetType()) != TOX_CONTENT_SECTION
+ && TOX_HEADER_SECTION != eTmpType )
+ {
+ pSect=aTmpArr[n];
+ SectRepr* pSectRepr=new SectRepr(
+ FindArrPos( pSect->GetFmt() ), *pSect );
+ Bitmap aBM=BuildBitmap( pSect->IsProtect(),
+ pSect->IsHidden());
+ pNEntry=aTree.InsertEntry( pSect->GetName(),aBM,aBM,pEntry);
+ pNEntry->SetUserData(pSectRepr);
+ RecurseList( aTmpArr[n]->GetFmt(), pNEntry );
+ if( pNEntry->HasChilds())
+ aTree.Expand(pNEntry);
+ if (pCurrSect==pSect)
+ pSelEntry = pNEntry;
+ }
+ }
+ }
+ }
+ if(0 != pSelEntry)
+ {
+ aTree.MakeVisible(pSelEntry);
+ aTree.Select(pSelEntry);
+ }
+}
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+USHORT SwEditRegionDlg::FindArrPos(const SwSectionFmt* pFmt )
+{
+ USHORT nCount=rSh.GetSectionFmtCount();
+ for (USHORT i=0;i<nCount;i++)
+ if (pFmt==&rSh.GetSectionFmt(i))
+ return i;
+
+ DBG_ERROR( "SectionFormat nicht in der Liste" );
+ return USHRT_MAX;
+}
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+SwEditRegionDlg::~SwEditRegionDlg( )
+{
+ SvLBoxEntry* pEntry = aTree.First();
+ while( pEntry )
+ {
+ delete (SectRepr*)pEntry->GetUserData();
+ pEntry = aTree.Next( pEntry );
+ }
+
+ aSectReprArr.DeleteAndDestroy( 0, aSectReprArr.Count() );
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung: Selektierte Eintrag in der TreeListBox wird im
+ Edit-Fenster angezeigt
+ Bei Multiselektion werden einige Controls disabled
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, GetFirstEntryHdl, SvTreeListBox *, pBox )
+{
+ SvLBoxEntry* pEntry=pBox->FirstSelected();
+ aHideCB .Enable(TRUE);
+ aProtectCB .Enable(TRUE);
+ aFileCB .Enable(TRUE);
+
+ if( 1 < pBox->GetSelectionCount() )
+ {
+ aHideCB.EnableTriState( TRUE );
+ aProtectCB.EnableTriState( TRUE );
+ aCondCB.EnableTriState( TRUE );
+ aFileCB.EnableTriState( TRUE );
+
+ BOOL bHiddenValid = TRUE;
+ BOOL bProtectValid = TRUE;
+ BOOL bIsConditionValid = TRUE;
+ BOOL bConditionValid = TRUE;
+ BOOL bHidden = TRUE;
+ BOOL bProtect = TRUE;
+ String sCondition;
+ BOOL bFirst = TRUE;
+ BOOL bFileValid = TRUE;
+ BOOL bFile = TRUE;
+
+ SvLBoxEntry* pEntry = pBox->FirstSelected();
+ while( pEntry )
+ {
+ SectRepr* pRepr=(SectRepr*) pEntry->GetUserData();
+ if(bFirst)
+ {
+ sCondition = pRepr->GetCondition();
+ bHidden = pRepr->IsHidden();
+ bProtect = pRepr->IsProtect();
+ bFile = pRepr->GetSectionType() != CONTENT_SECTION;
+ }
+ else
+ {
+ String sTemp(pRepr->GetCondition());
+ if(sCondition != sTemp)
+ bConditionValid = FALSE;
+ bHiddenValid = bHidden == pRepr->IsHidden();
+ bProtectValid = bProtect == pRepr->IsProtect();
+ bIsConditionValid = (sTemp.Len() > 0) == (sCondition.Len() > 0);
+ bFileValid = (pRepr->GetSectionType() != CONTENT_SECTION) == bFile;
+ }
+ pEntry = pBox->NextSelected(pEntry);
+ bFirst = FALSE;
+ }
+
+ aHideCB.SetState( !bHiddenValid ? STATE_DONTKNOW :
+ bHidden ? STATE_CHECK : STATE_NOCHECK);
+ aProtectCB.SetState( !bProtectValid ? STATE_DONTKNOW :
+ bProtect ? STATE_CHECK : STATE_NOCHECK);
+ aCondCB.SetState(!bIsConditionValid ? STATE_DONTKNOW :
+ sCondition.Len() > 0 ? STATE_CHECK : STATE_NOCHECK);
+ aFileCB.SetState(!bFileValid ? STATE_DONTKNOW :
+ bFile ? STATE_CHECK : STATE_NOCHECK);
+
+ if(bConditionValid)
+ aConditionED.SetText(sCondition);
+ else
+ {
+// aConditionED.SetText(aEmptyStr);
+ aConditionED.Enable(FALSE);
+ }
+
+ aFilePB.Enable(FALSE);
+ aFileNameFT .Enable(FALSE);
+ aFileNameED .Enable(FALSE);
+ aSubRegionFT.Enable(FALSE);
+ aSubRegionED.Enable(FALSE);
+ aNameFT .Enable(FALSE);
+ aCurName .Enable(FALSE);
+ aOptionsPB .Enable(FALSE);
+#ifdef DDE_AVAILABLE
+ aDDECB .Enable(FALSE);
+ aDDECommandFT .Enable(FALSE);
+#endif
+
+ }
+ else if (pEntry )
+ {
+ aNameFT .Enable(TRUE);
+ aCurName .Enable(TRUE);
+ aOptionsPB .Enable(TRUE);
+ SectRepr* pRepr=(SectRepr*) pEntry->GetUserData();
+ aConditionED.SetText(pRepr->GetCondition());
+ aHideCB.Enable();
+ aHideCB.SetState(pRepr->IsHidden() ? STATE_CHECK : STATE_NOCHECK);
+ aCondCB.SetState( 0 != aConditionED.GetText().Len() ? STATE_CHECK : STATE_NOCHECK);
+ BOOL bHide = STATE_CHECK == aHideCB.GetState();
+ aCondCB.Enable(bHide);
+ aConditionED.Enable(STATE_CHECK == aCondCB.GetState() && bHide);
+
+ aOK.Enable();
+ aPasswdCB.Enable();
+ aCurName.SetText(pBox->GetEntryText(pEntry));
+ aCurName.Enable();
+ aDismiss.Enable();
+ String aFile = pRepr->GetFile();
+ String sSub = pRepr->GetSubRegion();
+ if(aFile.Len()||sSub.Len())
+ {
+ aFileCB.Check(TRUE);
+ aFileNameED.SetText(aFile);
+ aSubRegionED.SetText(sSub);
+#ifdef DDE_AVAILABLE
+ aDDECB.Check(pRepr->GetSectionType() == DDE_LINK_SECTION );
+#endif
+ }
+ else
+ {
+ aFileCB.Check(FALSE);
+ aFileNameED.SetText(aFile);
+#ifdef DDE_AVAILABLE
+ aDDECB.Enable(FALSE);
+ aDDECB.Check(FALSE);
+#endif
+ }
+ UseFileHdl(&aFileCB);
+#ifdef DDE_AVAILABLE
+ DDEHdl( &aDDECB );
+#endif
+ aProtectCB.SetState(pRepr->IsProtect() ? STATE_CHECK : STATE_NOCHECK);
+ aProtectCB.Enable();
+ }
+ return 0;
+}
+/*-----------------28.06.97 09:19-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwEditRegionDlg, DeselectHdl, SvTreeListBox *, pBox )
+{
+ if( !pBox->GetSelectionCount() )
+ {
+ aHideCB .Enable(FALSE);
+ aProtectCB .Enable(FALSE);
+ aCondCB .Enable(FALSE);
+ aConditionED.Enable(FALSE);
+ aFileCB .Enable(FALSE);
+ aFilePB .Enable(FALSE);
+ aFileNameFT .Enable(FALSE);
+ aFileNameED .Enable(FALSE);
+ aSubRegionFT .Enable(FALSE);
+ aSubRegionED .Enable(FALSE);
+ aNameFT .Enable(FALSE);
+ aCurName .Enable(FALSE);
+#ifdef DDE_AVAILABLE
+ aDDECB .Enable(FALSE);
+ aDDECommandFT .Enable(FALSE);
+#endif
+
+ UseFileHdl(&aFileCB);
+#ifdef DDE_AVAILABLE
+ DDEHdl( &aDDECB );
+#endif
+ }
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung: Im OkHdl werden die veraenderten Einstellungen
+ uebernommen und aufgehobene Bereiche geloescht
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, OkHdl, CheckBox *, EMPTYARG )
+{
+ // JP 13.03.96:
+ // temp. Array weil sich waehrend des aendern eines Bereiches die
+ // Position innerhalb des "Core-Arrays" verschieben kann:
+ // - bei gelinkten Bereichen, wenn sie weitere SubBereiche haben oder
+ // neu erhalten.
+ // JP 30.05.97: StartUndo darf natuerlich auch erst nach dem Kopieren
+ // der Formate erfolgen (ClearRedo!)
+
+ const SwSectionFmts& rDocFmts = rSh.GetDoc()->GetSections();
+ SwSectionFmts aOrigArray( 0, 5 );
+ aOrigArray.Insert( &rDocFmts, 0 );
+
+ rSh.StartAllAction();
+ rSh.StartUndo( UNDO_CHGSECTION );
+ rSh.ResetSelect( 0,FALSE );
+ SvLBoxEntry* pEntry = aTree.First();
+
+ while( pEntry )
+ {
+ SectReprPtr pRepr = (SectReprPtr) pEntry->GetUserData();
+ SwSectionFmt* pFmt = aOrigArray[ pRepr->GetArrPos() ];
+ USHORT nNewPos = rDocFmts.GetPos( pFmt );
+ if( USHRT_MAX != nNewPos )
+ {
+ SfxItemSet* pSet = pFmt->GetAttrSet().Clone( FALSE );
+ if( pFmt->GetCol() != pRepr->GetCol() )
+ pSet->Put( pRepr->GetCol() );
+
+ if( pFmt->GetBackground(FALSE) != pRepr->GetBackground() )
+ pSet->Put( pRepr->GetBackground() );
+
+ if( pFmt->GetFtnAtTxtEnd(FALSE) != pRepr->GetFtnNtAtEnd() )
+ pSet->Put( pRepr->GetFtnNtAtEnd() );
+
+ if( pFmt->GetEndAtTxtEnd(FALSE) != pRepr->GetEndNtAtEnd() )
+ pSet->Put( pRepr->GetEndNtAtEnd() );
+
+ if( pFmt->GetBalancedColumns() != pRepr->GetBalance() )
+ pSet->Put( pRepr->GetBalance() );
+
+ //the condition depends on the string and the setting of the CheckBox/bIsCondition flag
+ if(!pRepr->IsConditionValid() && pRepr->GetCondition().Len())
+ pRepr->SetCondition(aEmptyStr);
+
+ rSh.ChgSection( nNewPos, pRepr->GetSection(),
+ pSet->Count() ? pSet : 0 );
+ delete pSet;
+ }
+ pEntry = aTree.Next( pEntry );
+ }
+
+ for(USHORT i = aSectReprArr.Count(); i; )
+ {
+ SwSectionFmt* pFmt = aOrigArray[ aSectReprArr[ --i ]->GetArrPos() ];
+ USHORT nNewPos = rDocFmts.GetPos( pFmt );
+ if( USHRT_MAX != nNewPos )
+ rSh.DelSectionFmt( nNewPos );
+ }
+ rSh.ChgSectionPasswd(aNewPasswd);
+
+ aOrigArray.Remove( 0, aOrigArray.Count() );
+
+ //JP 21.05.97: EndDialog muss vor Ende der EndAction gerufen werden,
+ // sonst kann es ScrollFehler geben.
+ EndDialog(RET_OK);
+
+ rSh.EndUndo( UNDO_CHGSECTION );
+ rSh.EndAllAction();
+
+ return 0;
+}
+/*---------------------------------------------------------------------
+ Beschreibung: Toggle protect
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, ChangeProtectHdl, TriStateBox *, pBox )
+{
+ pBox->EnableTriState( FALSE );
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ while( pEntry )
+ {
+ SectReprPtr pRepr = (SectReprPtr) pEntry->GetUserData();
+ pRepr->SetProtect(STATE_CHECK == pBox->GetState());
+ Bitmap& aBmp=BuildBitmap(STATE_CHECK == pBox->GetState(),
+ STATE_CHECK == aHideCB.GetState());
+ aTree.SetExpandedEntryBmp(pEntry,aBmp);
+ aTree.SetCollapsedEntryBmp(pEntry,aBmp);
+ pEntry = aTree.NextSelected(pEntry);
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+ Beschreibung: Toggle hide
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, ChangeHideHdl, TriStateBox *, pBox )
+{
+ pBox->EnableTriState( FALSE );
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ while( pEntry )
+ {
+ SectReprPtr pRepr = (SectReprPtr) pEntry->GetUserData();
+ pRepr->SetHidden(STATE_CHECK == pBox->GetState());
+ Bitmap& aBmp=BuildBitmap(STATE_CHECK == aProtectCB.GetState(),
+ STATE_CHECK == pBox->GetState());
+ aTree.SetExpandedEntryBmp(pEntry,aBmp);
+ aTree.SetCollapsedEntryBmp(pEntry,aBmp);
+
+ pEntry = aTree.NextSelected(pEntry);
+ }
+
+ BOOL bHide = STATE_CHECK == pBox->GetState();
+ aConditionED.Enable(bHide && STATE_CHECK == aCondCB.GetState());
+ aCondCB.Enable(bHide);
+ if(!bHide)
+ {
+ aCondCB.SetState(STATE_NOCHECK);
+ ChangeCondHdl(&aCondCB);
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, ChangeCondHdl, TriStateBox *, pBox )
+{
+ pBox->EnableTriState( FALSE );
+ BOOL bCond = STATE_CHECK == pBox->GetState();
+ aConditionED.Enable(bCond);
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ while( pEntry )
+ {
+ SectReprPtr pRepr = (SectReprPtr) pEntry->GetUserData();
+ pRepr->SetConditionValid(bCond);
+ pEntry = aTree.NextSelected(pEntry);
+ }
+ if(bCond)
+ aConditionED.GrabFocus();
+ return 0;
+}
+/*---------------------------------------------------------------------
+ Beschreibung: selektierten Bereich aufheben
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, ChangeDismissHdl, CheckBox *, EMPTYARG )
+{
+ SvLBoxEntry* pEntry = aTree.FirstSelected();
+ SvLBoxEntry* pChild;
+ SvLBoxEntry* pParent;
+ //zuerst alle selektierten markieren
+ while(pEntry)
+ {
+ const SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ pSectRepr->SetSelected();
+ pEntry = aTree.NextSelected(pEntry);
+ }
+ pEntry = aTree.FirstSelected();
+ // dann loeschen
+ while(pEntry)
+ {
+ const SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ SvLBoxEntry* pRemove = 0;
+ BOOL bRestart = FALSE;
+ if(pSectRepr->IsSelected())
+ {
+ aSectReprArr.Insert( pSectRepr );
+ while( (pChild = aTree.FirstChild(pEntry) )!= 0 )
+ {
+ //durch das Umhaengen muss wieder am Anfang aufgesetzt werden
+ bRestart = TRUE;
+ pParent=aTree.GetParent(pEntry);
+ aTree.GetModel()->Move(pChild, pParent, aTree.GetModel()->GetRelPos(pEntry));
+ }
+ pRemove = pEntry;
+ }
+ if(bRestart)
+ pEntry = aTree.First();
+ else
+ pEntry = aTree.Next(pEntry);
+ if(pRemove)
+ aTree.GetModel()->Remove( pRemove );
+ }
+
+ if ( (pEntry=aTree.FirstSelected()) == 0 )
+ {
+ aConditionED. Enable(FALSE);
+ aDismiss. Enable(FALSE);
+ aCurName. Enable(FALSE);
+ aProtectCB. Enable(FALSE);
+ aPasswdCB. Enable(FALSE);
+ aHideCB. Enable(FALSE);
+ aProtectCB. SetState(STATE_NOCHECK);
+ aPasswdCB. Check(FALSE);
+ aHideCB. SetState(STATE_NOCHECK);
+ aFileCB. Check(FALSE);
+ //sonst liegt der Focus auf dem HelpButton
+ aOK.GrabFocus();
+ UseFileHdl(&aFileCB);
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+ Beschreibung: CheckBox mit Datei verknuepfenï
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, UseFileHdl, CheckBox *, pBox )
+{
+ SvLBoxEntry* pEntry = aTree.FirstSelected();
+ pBox->EnableTriState(FALSE);
+ BOOL bMulti = 1 < aTree.GetSelectionCount();
+ BOOL bFile = pBox->IsChecked();
+ if(pEntry)
+ {
+ while(pEntry)
+ {
+ const SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ BOOL bContent = pSectRepr->IsContent();
+ if( pBox->IsChecked() && bContent && rSh.HasSelection() )
+ {
+ if( RET_NO == QueryBox( this, SW_RES(QB_CONNECT) ).Execute() )
+ pBox->Check( FALSE );
+ }
+ if( bFile )
+ pSectRepr->SetContent(FALSE);
+ else
+ {
+ pSectRepr->SetFile(aEmptyStr);
+ pSectRepr->SetSubRegion(aEmptyStr);
+ pSectRepr->SetFilePasswd(aEmptyStr);
+ }
+
+ pEntry = aTree.NextSelected(pEntry);
+ }
+ aFileNameFT.Enable(bFile && ! bMulti);
+ aFileNameED.Enable(bFile && ! bMulti);
+ aFilePB.Enable(bFile && ! bMulti);
+ aSubRegionED.Enable(bFile && ! bMulti);
+ aSubRegionFT.Enable(bFile && ! bMulti);
+#ifdef DDE_AVAILABLE
+ aDDECommandFT.Enable(bFile && ! bMulti);
+ aDDECB.Enable(bFile && ! bMulti);
+#endif
+ if( bFile )
+ {
+ aProtectCB.SetState(STATE_CHECK);
+ aFileNameED.GrabFocus();
+
+ }
+ else
+ {
+#ifdef DDE_AVAILABLE
+ aDDECB.Check(FALSE);
+ DDEHdl(&aDDECB);
+#endif
+// aFileNameED.SetText(aEmptyStr);
+ aSubRegionED.SetText(aEmptyStr);
+ }
+ }
+ else
+ {
+ pBox->Check(FALSE);
+ pBox->Enable(FALSE);
+ aFilePB.Enable(FALSE);
+ aFileNameED.Enable(FALSE);
+ aFileNameFT.Enable(FALSE);
+ aSubRegionED.Enable(FALSE);
+ aSubRegionFT.Enable(FALSE);
+#ifdef DDE_AVAILABLE
+ aDDECB.Check(FALSE);
+ aDDECB.Enable(FALSE);
+ aDDECommandFT.Enable(FALSE);
+#endif
+ }
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung: Dialog Datei einfuegen rufen
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, FileSearchHdl, PushButton *, EMPTYARG )
+{
+ SfxMedium* pMed;
+ String sFileName, sFilterName, sFilePasswd;
+ if( GetFileFilterNameDlg( *this, sFileName, &sFilePasswd,
+ &sFilterName, &pMed ))
+ {
+ aFileNameED.SetText( sFileName );
+ ::lcl_ReadSections( rSh, *pMed, aSubRegionED );
+ delete pMed;
+ }
+
+ SvLBoxEntry* pEntry = aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ if(pEntry)
+ {
+ SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ pSectRepr->SetFile( sFileName );
+ pSectRepr->SetFilter( sFilterName );
+ pSectRepr->SetFilePasswd( sFilePasswd );
+ }
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, OptionsHdl, PushButton *, EMPTYARG )
+{
+ SvLBoxEntry* pEntry = aTree.FirstSelected();
+
+ if(pEntry)
+ {
+ SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ SfxItemSet aSet(rSh.GetView().GetPool(),
+ RES_COL, RES_COL,
+ RES_COLUMNBALANCE, RES_COLUMNBALANCE,
+ RES_BACKGROUND, RES_BACKGROUND,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ RES_LR_SPACE, RES_LR_SPACE,
+ RES_FTN_AT_TXTEND, RES_END_AT_TXTEND,
+ 0);
+
+ aSet.Put( pSectRepr->GetCol() );
+ aSet.Put( pSectRepr->GetBackground() );
+ aSet.Put( pSectRepr->GetFtnNtAtEnd() );
+ aSet.Put( pSectRepr->GetEndNtAtEnd() );
+ aSet.Put( pSectRepr->GetBalance() );
+
+ const SwSectionFmts& rDocFmts = rSh.GetDoc()->GetSections();
+ SwSectionFmts aOrigArray( 0, 5 );
+ aOrigArray.Insert( &rDocFmts, 0 );
+
+ SwSectionFmt* pFmt = aOrigArray[pSectRepr->GetArrPos()];
+ long nWidth = rSh.GetSectionWidth(*pFmt);
+ aOrigArray.Remove( 0, aOrigArray.Count() );
+ if (!nWidth)
+ nWidth = USHRT_MAX;
+
+ aSet.Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth));
+ aSet.Put(SvxSizeItem(SID_ATTR_PAGE_SIZE, Size(nWidth, nWidth)));
+
+ SwSectionPropertyTabDialog aTabDlg(this, aSet, rSh);
+ if(RET_OK == aTabDlg.Execute())
+ {
+ const SfxItemSet* pOutSet = aTabDlg.GetOutputItemSet();
+ if( pOutSet && pOutSet->Count() )
+ {
+ const SfxPoolItem *pColItem, *pBrushItem,
+ *pFtnItem, *pEndItem, *pBalanceItem;
+ SfxItemState eColState = pOutSet->GetItemState(
+ RES_COL, FALSE, &pColItem );
+ SfxItemState eBrushState = pOutSet->GetItemState(
+ RES_BACKGROUND, FALSE, &pBrushItem );
+ SfxItemState eFtnState = pOutSet->GetItemState(
+ RES_FTN_AT_TXTEND, FALSE, &pFtnItem );
+ SfxItemState eEndState = pOutSet->GetItemState(
+ RES_END_AT_TXTEND, FALSE, &pEndItem );
+ SfxItemState eBalanceState = pOutSet->GetItemState(
+ RES_COLUMNBALANCE, FALSE, &pBalanceItem );
+ if( SFX_ITEM_SET == eColState ||
+ SFX_ITEM_SET == eBrushState ||
+ SFX_ITEM_SET == eFtnState ||
+ SFX_ITEM_SET == eEndState ||
+ SFX_ITEM_SET == eBalanceState)
+ {
+ SvLBoxEntry* pEntry = aTree.FirstSelected();
+ while( pEntry )
+ {
+ SectReprPtr pRepr = (SectReprPtr)pEntry->GetUserData();
+ if( SFX_ITEM_SET == eColState )
+ pRepr->GetCol() = *(SwFmtCol*)pColItem;
+ if( SFX_ITEM_SET == eBrushState )
+ pRepr->GetBackground() = *(SvxBrushItem*)pBrushItem;
+ if( SFX_ITEM_SET == eFtnState )
+ pRepr->GetFtnNtAtEnd() = *(SwFmtFtnAtTxtEnd*)pFtnItem;
+ if( SFX_ITEM_SET == eEndState )
+ pRepr->GetEndNtAtEnd() = *(SwFmtEndAtTxtEnd*)pEndItem;
+ if( SFX_ITEM_SET == eBalanceState )
+ pRepr->GetBalance().SetValue(((SwFmtNoBalancedColumns*)pBalanceItem)->GetValue());
+
+ pEntry = aTree.NextSelected(pEntry);
+ }
+ }
+ }
+ }
+ }
+
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung: Uebernahme des Dateinamen oder
+ des verknuepften Bereichs
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, FileNameHdl, Edit *, pEdit )
+{
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ if(pEdit == &aFileNameED)
+ {
+ BOOL bDDe = FALSE;
+#ifdef DDE_AVAILABLE
+ bDDe = aDDECB.IsChecked();
+#endif
+ if( bDDe )
+ {
+ String sLink( pEdit->GetText() );
+ USHORT nPos = 0;
+ while( STRING_NOTFOUND != (nPos = sLink.SearchAscii( " ", nPos )) )
+ sLink.Erase( nPos--, 1 );
+
+ nPos = sLink.SearchAndReplace( ' ', cTokenSeperator );
+ sLink.SearchAndReplace( ' ', cTokenSeperator, nPos );
+
+ pSectRepr->GetSection().SetLinkFileName( sLink );
+ pSectRepr->GetSection().SetType( DDE_LINK_SECTION );
+ }
+ else
+ {
+ String sTmp(pEdit->GetText());
+ if(sTmp.Len())
+ sTmp = URIHelper::SmartRelToAbs( sTmp );
+ pSectRepr->SetFile( sTmp );
+ pSectRepr->SetFilePasswd( aEmptyStr );
+ }
+ }
+ else
+ {
+ pSectRepr->SetSubRegion( pEdit->GetText() );
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+#ifdef DDE_AVAILABLE
+
+IMPL_LINK( SwEditRegionDlg, DDEHdl, CheckBox*, pBox )
+{
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ if(pEntry)
+ {
+ BOOL bFile = aFileCB.IsChecked();
+ SectReprPtr pSectRepr = (SectRepr*)pEntry->GetUserData();
+ BOOL bDDE = pBox->IsChecked();
+ if(bDDE)
+ {
+ aFileNameFT.Hide();
+ aDDECommandFT.Enable();
+ aDDECommandFT.Show();
+ aSubRegionFT.Hide();
+ aSubRegionED.Hide();
+ if(FILE_LINK_SECTION == pSectRepr->GetSectionType() )
+ {
+ pSectRepr->SetFile(aEmptyStr);
+ aFileNameED.SetText(aEmptyStr);
+ pSectRepr->SetFilePasswd( aEmptyStr );
+ }
+ pSectRepr->SetSectionType( DDE_LINK_SECTION );
+ }
+ else
+ {
+ aDDECommandFT.Hide();
+ aFileNameFT.Enable(bFile);
+ aFileNameFT.Show();
+ aSubRegionED.Show();
+ aSubRegionFT.Show();
+ aSubRegionED.Enable(bFile);
+ aSubRegionFT.Enable(bFile);
+ aSubRegionED.Enable(bFile);
+ if(DDE_LINK_SECTION == pSectRepr->GetSectionType() )
+ {
+ pSectRepr->SetSectionType( FILE_LINK_SECTION );
+ pSectRepr->SetFile(aEmptyStr);
+ pSectRepr->SetFilePasswd( aEmptyStr );
+ aFileNameED.SetText(aEmptyStr);
+ }
+ }
+ aFilePB.Enable(bFile && !bDDE);
+ }
+ return 0;
+}
+#endif
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, ChangePasswdHdl, CheckBox *, pBox )
+{
+ if (pBox->IsChecked())
+ {
+ if(!bIsPasswd&&!aNewPasswd.Len())
+ {
+ bIsPasswd = FALSE;
+ SwTestPasswdDlg aPasswdDlg(this);
+ aPasswdDlg.ShowExtras(SHOWEXTRAS_CONFIRM);
+// aPasswdDlg.SetHelpId(HID_DLG_PASSWD_SECTION);
+ if (aPasswdDlg.Execute())
+ {
+ aNewPasswd = aPasswdDlg.GetPassword();
+ if(aPasswdDlg.GetConfirm() == aNewPasswd)
+ bIsPasswd = TRUE;
+ else
+ InfoBox(pBox, SW_RES(REG_WRONG_PASSWD_REPEAT)).Execute();
+ }
+ }
+ if(!bIsPasswd)
+ pBox->Check(FALSE);
+ }
+ if( !pBox->IsChecked() )
+ {
+ aNewPasswd = aEmptyStr;
+ bIsPasswd = FALSE;
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+ Beschreibung: Aktueller Bereichsname wird sofort beim editieren
+ in die TreeListBox eingetragen, mit leerem String
+ kein Ok()
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, NameEditHdl, Edit *, EMPTYARG )
+{
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ if (pEntry)
+ {
+ String aName = aCurName.GetText();
+ Bitmap& aBmp=BuildBitmap(STATE_CHECK == aProtectCB.GetState(),
+ STATE_CHECK == aHideCB.GetState());
+ aTree.SetEntryText(pEntry,aName);
+ aTree.SetExpandedEntryBmp(pEntry,aBmp);
+ aTree.SetCollapsedEntryBmp(pEntry,aBmp);
+ SectReprPtr pRepr = (SectReprPtr) pEntry->GetUserData();
+ pRepr->GetSection().SetName(aName);
+
+ aOK.Enable(aName.Len() != 0);
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwEditRegionDlg, ConditionEditHdl, Edit *, pEdit )
+{
+ SvLBoxEntry* pEntry=aTree.FirstSelected();
+ DBG_ASSERT(pEntry,"kein Entry gefunden");
+ while( pEntry )
+ {
+ SectReprPtr pRepr = (SectReprPtr)pEntry->GetUserData();
+ pRepr->SetCondition (pEdit->GetText());
+ pEntry = aTree.NextSelected(pEntry);
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bereiche einfuegen
+ --------------------------------------------------------------------*/
+
+
+void SwBaseShell::InsertRegionDialog(SfxRequest& rReq)
+{
+ SwWrtShell& rSh = GetShell();
+ const SfxItemSet *pSet = rReq.GetArgs();
+
+ SfxItemSet aSet(GetPool(),
+ RES_COL, RES_COL,
+ RES_COLUMNBALANCE, RES_COLUMNBALANCE,
+ RES_BACKGROUND, RES_BACKGROUND,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_FTN_AT_TXTEND, RES_END_AT_TXTEND,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ 0);
+
+ if (!pSet || pSet->Count()==0)
+ {
+ SwRect aRect;
+ rSh.CalcBoundRect(aRect, FLY_IN_CNTNT);
+
+ long nWidth = aRect.Width();
+ aSet.Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth));
+
+ // Hoehe=Breite fuer konsistentere Vorschau (analog zu Bereich bearbeiten)
+ aSet.Put(SvxSizeItem(SID_ATTR_PAGE_SIZE, Size(nWidth, nWidth)));
+ SwInsertSectionTabDialog aTabDlg(&GetView().GetViewFrame()->GetWindow(),aSet , rSh);
+ aTabDlg.Execute();
+ }
+ else
+ {
+ const SfxPoolItem *pItem = 0;
+ String aTmpStr = rSh.GetUniqueSectionName();
+
+ SwSection aSection(CONTENT_SECTION,aTmpStr);
+ rReq.SetReturnValue(SfxStringItem(FN_INSERT_REGION, aTmpStr));
+
+ aSet.Put( *pSet );
+ if(SFX_ITEM_SET == pSet->GetItemState(SID_ATTR_COLUMNS, FALSE, &pItem))
+ {
+ SwFmtCol aCol;
+ SwRect aRect;
+ rSh.CalcBoundRect(aRect, FLY_IN_CNTNT);
+ long nWidth = aRect.Width();
+
+ USHORT nCol = ((SfxUInt16Item *)pItem)->GetValue();
+ if(nCol)
+ {
+ aCol.Init( nCol, 0, nWidth );
+ aSet.Put(aCol);
+ }
+ }
+ else if(SFX_ITEM_SET == pSet->GetItemState(RES_COL, FALSE, &pItem))
+ {
+ aSet.Put(*pItem);
+ }
+ rSh.InsertSection(aSection, aSet.Count() ? &aSet : 0);
+ }
+}
+
+IMPL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSection*, pSect )
+{
+ if( pSect )
+ {
+ SfxItemSet aSet(pThis->GetView().GetPool(),
+ RES_COL, RES_COL,
+ RES_BACKGROUND, RES_BACKGROUND,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ 0);
+ SwRect aRect;
+ pThis->CalcBoundRect(aRect, FLY_IN_CNTNT);
+ long nWidth = aRect.Width();
+ aSet.Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth));
+ // Hoehe=Breite fuer konsistentere Vorschau (analog zu Bereich bearbeiten)
+ aSet.Put(SvxSizeItem(SID_ATTR_PAGE_SIZE, Size(nWidth, nWidth)));
+ SwInsertSectionTabDialog aTabDlg(&pThis->GetView().GetViewFrame()->GetWindow(),aSet , *pThis);
+ aTabDlg.SetSection(*pSect);
+ aTabDlg.Execute();
+
+ delete pSect;
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bereich bearbeiten
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::EditRegionDialog(SfxRequest& rReq)
+{
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ int nSlot = rReq.GetSlot();
+ const SfxPoolItem* pItem = 0;
+ if(pArgs)
+ pArgs->GetItemState(nSlot, FALSE, &pItem);
+ SwWrtShell& rWrtShell = GetShell();
+
+ switch ( nSlot )
+ {
+ case FN_EDIT_REGION:
+ {
+ Window* pParentWin = &GetView().GetViewFrame()->GetWindow();
+ BOOL bStart = TRUE;
+ String sPasswdSect = rWrtShell.GetSectionPasswd();
+ if (sPasswdSect.Len())
+ {
+ SwTestPasswdDlg aPasswdDlg(pParentWin);
+// aPasswdDlg.SetHelpId(HID_DLG_PASSWD_SECTION);
+ aPasswdDlg.Execute();
+ if ( aPasswdDlg.GetPassword() != sPasswdSect )
+ {
+ bStart = FALSE;
+ }
+ }
+ if(bStart)
+ {
+ SwEditRegionDlg* pEditRegionDlg = new SwEditRegionDlg(
+ pParentWin, rWrtShell );
+ pEditRegionDlg->SetPassword(sPasswdSect);
+ pEditRegionDlg->Execute();
+ delete pEditRegionDlg;
+ }
+ else
+ InfoBox(pParentWin, SW_RES(REG_WRONG_PASSWORD)).Execute();
+ }
+ break;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Hilfsfunktion - Bereichsindex ermitteln
+ --------------------------------------------------------------------*/
+
+USHORT lcl_GetRegion( const String& rRegionName, SwWrtShell& rWrtShell )
+{
+ USHORT nCount = rWrtShell.GetSectionFmtCount();
+ for(USHORT i=0; i< nCount; i++)
+ {
+ const SwSectionFmt& rFmt = rWrtShell.GetSectionFmt(i);
+ if(rFmt.IsInNodesArr() && rFmt.GetSection()->GetName()
+ == rRegionName)
+ return i;
+ }
+ return USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Hilfsfunktion - Bereichsnamen aus dem Medium lesen
+ --------------------------------------------------------------------*/
+
+void lcl_ReadSections( SwWrtShell& rSh, SfxMedium& rMedium, ComboBox& rBox )
+{
+ rBox.Clear();
+ if( rMedium.IsStorage() )
+ {
+ SvStorageRef aStor = rMedium.GetStorage();
+ // ist das unser eigenes Format?
+ if( aStor.Is() && (
+ SOT_FORMATSTR_ID_STARWRITER_50 == aStor->GetFormat() ||
+ SOT_FORMATSTR_ID_STARWRITER_40 == aStor->GetFormat() ||
+ SOT_FORMATSTR_ID_STARWRITER_30 == aStor->GetFormat() ||
+ SOT_FORMATSTR_ID_STARWRITERGLOB_50 == aStor->GetFormat() ||
+ SOT_FORMATSTR_ID_STARWRITERGLOB_40 == aStor->GetFormat() ) )
+ {
+ // Dann noch die Fileformat-Version vom
+ // Filter abholen.
+ const SfxFilter* pFlt = rMedium.GetFilter();
+ ASSERT( pFlt && pFlt->GetVersion(),
+ "Kein Filter oder Filter ohne FF-Version" );
+ if( pFlt && pFlt->GetVersion() )
+ aStor->SetVersion( (long)pFlt->GetVersion() );
+
+ Sw3Io& rIo = *rSh.GetView().GetDocShell()->GetIoSystem();
+ SvStringsDtor aArr( 10, 10 );
+ if( !rIo.GetSectionList( &aStor, (SvStrings&)aArr ) && aArr.Count() )
+ {
+ for( USHORT n = 0; n < aArr.Count(); ++n )
+ rBox.InsertEntry( *aArr[ n ] );
+ }
+ }
+ }
+}
+/* -----------------21.05.99 10:16-------------------
+ *
+ * --------------------------------------------------*/
+SwInsertSectionTabDialog::SwInsertSectionTabDialog(
+ Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) :
+ SfxTabDialog( pParent, SW_RES(DLG_INSERT_SECTION), &rSet ),
+ rWrtSh(rSh),
+ pToInsertSection(0)
+{
+ String sInsert(ResId(ST_INSERT));
+ GetOKButton().SetText(sInsert);
+ FreeResource();
+ AddTabPage(TP_INSERT_SECTION, SwInsertSectionTabPage::Create, 0);
+ AddTabPage(TP_COLUMN, SwColumnPage::Create, 0);
+ AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, 0);
+ AddTabPage(TP_SECTION_FTNENDNOTES, SwSectionFtnEndTabPage::Create, 0);
+
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ long nHtmlMode = pHtmlOpt->GetExportMode();
+
+ BOOL bWeb = 0 != PTR_CAST( SwWebDocShell, rSh.GetView().GetDocShell() );
+ if(bWeb)
+ {
+ RemoveTabPage(TP_SECTION_FTNENDNOTES);
+ if( HTML_CFG_NS30 != nHtmlMode && HTML_CFG_NS40 != nHtmlMode && HTML_CFG_WRITER != nHtmlMode)
+ RemoveTabPage(TP_COLUMN);
+ }
+ SetCurPageId(TP_INSERT_SECTION);
+}
+/* -----------------21.05.99 10:17-------------------
+ *
+ * --------------------------------------------------*/
+SwInsertSectionTabDialog::~SwInsertSectionTabDialog()
+{
+ delete pToInsertSection;
+}
+/* -----------------21.05.99 10:23-------------------
+ *
+ * --------------------------------------------------*/
+void SwInsertSectionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+ if(TP_INSERT_SECTION == nId)
+ ((SwInsertSectionTabPage&)rPage).SetWrtShell(rWrtSh);
+ else if( TP_BACKGROUND == nId )
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+ else if( TP_COLUMN == nId )
+ {
+ const SwFmtFrmSize& rSize = (const SwFmtFrmSize&)GetInputSetImpl()->Get(RES_FRM_SIZE);
+ ((SwColumnPage&)rPage).SetPageWidth(rSize.GetWidth());
+ ((SwColumnPage&)rPage).ShowBalance(TRUE);
+ }
+}
+/* -----------------21.05.99 13:08-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwInsertSectionTabDialog::SetSection(const SwSection& rSect)
+{
+ pToInsertSection = new SwSection(CONTENT_SECTION, aEmptyStr);
+ *pToInsertSection = rSect;
+}
+/* -----------------21.05.99 13:10-------------------
+ *
+ * --------------------------------------------------*/
+short SwInsertSectionTabDialog::Ok()
+{
+ short nRet = SfxTabDialog::Ok();
+ DBG_ASSERT(pToInsertSection, "keiner Section?")
+ rWrtSh.InsertSection(*pToInsertSection, GetOutputItemSet());
+ return nRet;
+}
+
+/* -----------------21.05.99 10:31-------------------
+ *
+ * --------------------------------------------------*/
+SwInsertSectionTabPage::SwInsertSectionTabPage(
+ Window *pParent, const SfxItemSet &rAttrSet) :
+ SfxTabPage( pParent, SW_RES(TP_INSERT_SECTION), rAttrSet ),
+#ifdef DDE_AVAILABLE
+ aDDECB ( this, SW_RES( CB_DDE ) ) ,
+ aDDECommandFT ( this, SW_RES( FT_DDE ) ) ,
+#endif
+ aCurName ( this, SW_RES( ED_RNAME ) ),
+ aHideCB ( this, SW_RES( CB_HIDE ) ),
+ aProtectCB ( this, SW_RES( CB_PROTECT ) ),
+ aCondCB ( this, SW_RES( CB_CONDITION ) ),
+ aFileCB ( this, SW_RES( CB_FILE ) ),
+ aFilePB ( this, SW_RES( PB_FILE ) ),
+ aFileNameFT ( this, SW_RES( FT_FILE ) ) ,
+ aFileNameED ( this, SW_RES( ED_FILE ) ),
+ aSubRegionFT ( this, SW_RES( FT_SUBREG ) ) ,
+ aSubRegionED ( this, SW_RES( LB_SUBREG ) ) ,
+ aGroupBoxName ( this, SW_RES( GB_NEW_SECTION ) ),
+ aConditionED ( this, SW_RES( ED_CONDITION ) ),
+ aGroupBoxOptions ( this, SW_RES( GB_NEW_OPTIONS ) ),
+ sSection (SW_RES( STR_REGION_DEFNAME )),
+ pWrtSh(0)
+{
+ FreeResource();
+
+ aProtectCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeProtectHdl));
+ aHideCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeHideHdl));
+ aCondCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeCondHdl));
+ aFileCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, UseFileHdl ));
+ aFilePB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, FileSearchHdl ));
+ aCurName.SetModifyHdl ( LINK( this, SwInsertSectionTabPage, NameEditHdl));
+#ifdef DDE_AVAILABLE
+ aDDECB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, DDEHdl ));
+#endif
+}
+/* -----------------21.05.99 10:31-------------------
+ *
+ * --------------------------------------------------*/
+SwInsertSectionTabPage::~SwInsertSectionTabPage()
+{
+}
+/* -----------------21.05.99 12:58-------------------
+ *
+ * --------------------------------------------------*/
+void SwInsertSectionTabPage::SetWrtShell(SwWrtShell& rSh)
+{
+ pWrtSh = &rSh;
+
+ BOOL bWeb = 0 != PTR_CAST(SwWebDocShell, pWrtSh->GetView().GetDocShell());
+ if(bWeb)
+ {
+ aHideCB .Hide();
+ aCondCB .Hide();
+ aConditionED .Hide();
+#ifdef DDE_AVAILABLE
+ aDDECB .Hide();
+ aDDECommandFT .Hide();
+#endif
+ }
+
+ USHORT nCount = pWrtSh->GetSectionFmtCount();
+ pPasswdSect = (const String*)&pWrtSh->GetSectionPasswd();
+ FillList();
+ USHORT nCnt = pWrtSh->GetBookmarkCnt();
+ for( USHORT i = 0; i < nCnt; ++i )
+ {
+ SwBookmark& rBm = pWrtSh->GetBookmark( i );
+ if( rBm.GetOtherPos() )
+ aSubRegionED.InsertEntry( rBm.GetName() );
+ }
+
+ SwSection* pSect = ((SwInsertSectionTabDialog*)GetTabDialog())->GetSection();
+ if( pSect ) // etwas vorgegeben ?
+ {
+ aCurName.SetText( rSh.GetUniqueSectionName( &pSect->GetName() ));
+ aProtectCB.Check( 0 != pSect->IsProtect() );
+ sFileName = pSect->GetLinkFileName();
+ sFilePasswd = pSect->GetLinkFilePassWd();
+ aFileCB.Check( 0 != sFileName.Len() );
+ aFileNameED.SetText( sFileName );
+ UseFileHdl( &aFileCB );
+ }
+ else
+ {
+ aCurName.SetText( rSh.GetUniqueSectionName() );
+ }
+}
+/* -----------------21.05.99 10:32-------------------
+ *
+ * --------------------------------------------------*/
+BOOL SwInsertSectionTabPage::FillItemSet( SfxItemSet& rSet)
+{
+ BOOL bRecording = FALSE;//pRequest && 0 != SfxRequest::GetRecordingMacro();
+ SwSection aSection(CONTENT_SECTION, aCurName.GetText());
+ if( aCondCB.IsChecked() )
+ aSection.SetCondition(aConditionED.GetText());
+ aSection.SetProtect(aProtectCB.IsChecked());
+ aSection.SetHidden(aHideCB.IsChecked());
+ String sFileName = aFileNameED.GetText();
+ String sSubRegion = aSubRegionED.GetText();
+ BOOL bDDe = FALSE;
+ if(bRecording)
+ {
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_REGION_NAME, aCurName.GetText()));
+// if(aCondCB.IsChecked())
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_REGION_CONDITION, aConditionED.GetText()));
+// pRequest->AppendItem(SfxBoolItem(FN_PARAM_REGION_HIDDEN, aHideCB.IsChecked()));
+// pRequest->AppendItem(SfxBoolItem(FN_PARAM_REGION_PROTECT, aProtectCB.IsChecked()));
+ }
+#ifdef DDE_AVAILABLE
+ bDDe = aDDECB.IsChecked();
+#endif
+ if(aFileCB.IsChecked() && (sFileName.Len() || sSubRegion.Len() || bDDe))
+ {
+ String aLinkFile;
+ if( bDDe )
+ {
+ aLinkFile = sFileName;
+
+ USHORT nPos = 0;
+ while( STRING_NOTFOUND != (nPos = aLinkFile.SearchAscii( " ", nPos )) )
+ aLinkFile.Erase( nPos--, 1 );
+
+ nPos = aLinkFile.SearchAndReplace( ' ', cTokenSeperator );
+ aLinkFile.SearchAndReplace( ' ', cTokenSeperator, nPos );
+ }
+ else
+ {
+ if(sFileName.Len())
+ {
+ aLinkFile = URIHelper::SmartRelToAbs( sFileName );
+ aSection.SetLinkFilePassWd( sFilePasswd );
+ }
+
+ aLinkFile += cTokenSeperator;
+ aLinkFile += sFilterName;
+ aLinkFile += cTokenSeperator;
+ aLinkFile += sSubRegion;
+ if(bRecording)
+ {
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_1,
+// aLinkFile.GetToken(0, cTokenSeperator)));
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_2,
+// sFilterName));
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_3,
+// sSubRegion));
+ }
+
+ }
+
+ aSection.SetLinkFileName(aLinkFile);
+ if(aLinkFile.Len())
+ {
+#ifdef DDE_AVAILABLE
+ aSection.SetType( aDDECB.IsChecked() ?
+ DDE_LINK_SECTION :
+ FILE_LINK_SECTION);
+#else
+ aSection.SetType( FILE_LINK_SECTION);
+#endif
+ }
+ }
+ ((SwInsertSectionTabDialog*)GetTabDialog())->SetSection(aSection);
+ return TRUE;
+}
+/* -----------------21.05.99 10:32-------------------
+ *
+ * --------------------------------------------------*/
+void SwInsertSectionTabPage::Reset( const SfxItemSet& )
+{
+}
+/* -----------------21.05.99 11:22-------------------
+ *
+ * --------------------------------------------------*/
+SfxTabPage* SwInsertSectionTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwInsertSectionTabPage(pParent, rAttrSet);
+}
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertSectionTabPage, ChangeHideHdl, CheckBox *, pBox )
+{
+ BOOL bHide = pBox->IsChecked();
+ aCondCB.Enable(bHide);
+ aConditionED.Enable(bHide && aCondCB.IsChecked());
+ return 0;
+}
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwInsertSectionTabPage, ChangeCondHdl, CheckBox *, pBox )
+{
+ aConditionED.Enable( pBox->IsChecked() );
+ if( pBox->IsChecked() )
+ aConditionED.GrabFocus();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwInsertSectionTabPage, ChangeCondHdl, CheckBox *, pBox )
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertSectionTabPage, ChangeProtectHdl, CheckBox *, pBox )
+{
+ if (pPasswdSect->Len()&&pBox->IsChecked())
+ {
+ SwTestPasswdDlg aPasswdDlg(this);
+// aPasswdDlg.SetHelpId(HID_DLG_PASSWD_SECTION);
+ if (aPasswdDlg.Execute())
+ pBox->Check(aPasswdDlg.GetPassword()==*pPasswdSect);
+ else
+ pBox->Check(FALSE);
+ }
+ return 0;
+}
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwInsertSectionTabPage, NameEditHdl, Edit *, EMPTYARG )
+{
+ String aName=aCurName.GetText();
+ GetTabDialog()->GetOKButton().Enable(aName.Len() && aCurName.GetEntryPos( aName ) == USHRT_MAX);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwInsertSectionTabPage, NameEditHdl, Edit *, EMPTYARG )
+
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertSectionTabPage, UseFileHdl, CheckBox *, pBox )
+{
+ if( pBox->IsChecked() )
+ {
+ if( pWrtSh->HasSelection() &&
+ RET_NO == QueryBox( this, SW_RES(QB_CONNECT) ).Execute() )
+ pBox->Check( FALSE );
+ }
+
+ BOOL bFile = pBox->IsChecked();
+ aFileNameFT.Enable(bFile);
+ aFileNameED.Enable(bFile);
+ aFilePB.Enable(bFile);
+ aSubRegionFT.Enable(bFile);
+ aSubRegionED.Enable(bFile);
+#ifdef DDE_AVAILABLE
+ aDDECommandFT.Enable(bFile);
+ aDDECB.Enable(bFile);
+#endif
+ if( bFile )
+ {
+// aFileNameED.SetText( aFileName );
+ aFileNameED.GrabFocus();
+ aProtectCB.Check( TRUE );
+ }
+ else
+ {
+#ifdef DDE_AVAILABLE
+ aDDECB.Check(FALSE);
+ DDEHdl(&aDDECB);
+#endif
+// aFileNameED.SetText(aEmptyStr);
+ }
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertSectionTabPage, FileSearchHdl, PushButton *, EMPTYARG )
+{
+ SfxMedium* pMed;
+ if( GetFileFilterNameDlg( *this, sFileName, &sFilePasswd,
+ &sFilterName, &pMed ))
+ {
+ aFileNameED.SetText( sFileName );
+ ::lcl_ReadSections( *pWrtSh, *pMed, aSubRegionED );
+ delete pMed; // das brauchen wir nicht mehr !
+ }
+ else
+ sFilterName = sFilePasswd = aEmptyStr;
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+#ifdef DDE_AVAILABLE
+
+IMPL_LINK( SwInsertSectionTabPage, DDEHdl, CheckBox*, pBox )
+{
+ BOOL bDDE = pBox->IsChecked();
+ BOOL bFile = aFileCB.IsChecked();
+ aFilePB.Enable(!bDDE && bFile);
+ if(bDDE)
+ {
+ aFileNameFT.Hide();
+ aDDECommandFT.Enable(bDDE);
+ aDDECommandFT.Show();
+ aSubRegionFT.Hide();
+ aSubRegionED.Hide();
+ }
+ else
+ {
+ aDDECommandFT.Hide();
+ aFileNameFT.Enable(bFile);
+ aFileNameFT.Show();
+ aSubRegionFT.Show();
+ aSubRegionED.Show();
+ aSubRegionED.Enable(bFile);
+ }
+ return 0;
+}
+#endif
+/*--------------------------------------------------------------------
+ Beschreibung: Liste der verwendeten Namen fuellen
+ --------------------------------------------------------------------*/
+
+void SwInsertSectionTabPage::FillList( const SwSectionFmt* pNewFmt )
+{
+ const SwSectionFmt* pFmt;
+ if( !pNewFmt )
+ {
+ USHORT nCount = pWrtSh->GetSectionFmtCount();
+ for(USHORT i=0;i<nCount;i++)
+ {
+ SectionType eTmpType;
+ if( !(pFmt = &pWrtSh->GetSectionFmt(i))->GetParent() &&
+ pFmt->IsInNodesArr() &&
+ (eTmpType = pFmt->GetSection()->GetType()) != TOX_CONTENT_SECTION
+ && TOX_HEADER_SECTION != eTmpType )
+ {
+ String* pString = new String(pFmt->GetSection()->GetName());
+ aCurName.InsertEntry(*pString);
+ aSubRegionED.InsertEntry(*pString);
+ FillList( pFmt );
+ }
+ }
+ }
+ else
+ {
+ SwSections aTmpArr;
+ USHORT nCnt = pNewFmt->GetChildSections(aTmpArr,SORTSECT_POS);
+ if( nCnt )
+ {
+ SectionType eTmpType;
+ for( USHORT n = 0; n < nCnt; ++n )
+ if( (pFmt = aTmpArr[n]->GetFmt())->IsInNodesArr()&&
+ (eTmpType = pFmt->GetSection()->GetType()) != TOX_CONTENT_SECTION
+ && TOX_HEADER_SECTION != eTmpType )
+ {
+ String* pString = new String(pFmt->GetSection()->GetName());
+ aCurName.InsertEntry(*pString);
+ aSubRegionED.InsertEntry(*pString);
+ FillList( pFmt );
+ }
+ }
+ }
+}
+
+// --------------------------------------------------------------
+
+// Numerierungsformat Umsetzung:
+// ListBox - Format - Enum-Wert
+// 0 - A, B, C, ... - 0
+// 1 - a, b, c, ... - 1
+// 2 - I, II, III, ... - 2
+// 3 - i, ii, iii, ... - 3
+// 4 - 1, 2, 3, ... - 4
+// 5 - A, .., AA, .., - 9
+// 6 - a, .., aa, .., - 10
+
+inline USHORT GetNumPos( USHORT n )
+{
+ return SVX_NUM_ARABIC < n ? n - 4 : n;
+}
+
+inline SvxExtNumType GetNumType( USHORT n )
+{
+ return (SvxExtNumType)(4 < n ? n + 4 : n );
+}
+
+SwSectionFtnEndTabPage::SwSectionFtnEndTabPage( Window *pParent,
+ const SfxItemSet &rAttrSet)
+ : SfxTabPage( pParent, SW_RES( TP_SECTION_FTNENDNOTES ), rAttrSet ),
+ aGroupBoxFtn ( this, SW_RES( GB_FTN ) ),
+ aFtnNtAtTextEndCB ( this, SW_RES( CB_FTN_AT_TXTEND ) ),
+ aFtnNtNumCB ( this, SW_RES( CB_FTN_NUM ) ),
+ aFtnNtNumFmtCB ( this, SW_RES( CB_FTN_NUM_FMT ) ),
+ aFtnNumViewBox ( this, SW_RES( LB_FTN_NUMVIEW )),
+ aFtnOffsetLbl ( this, SW_RES( FT_FTN_OFFSET )),
+ aFtnOffsetFld ( this, SW_RES( FLD_FTN_OFFSET )),
+ aFtnPrefixFT ( this, SW_RES( FT_FTN_PREFIX )),
+ aFtnPrefixED ( this, SW_RES( ED_FTN_PREFIX )),
+ aFtnSuffixFT ( this, SW_RES( FT_FTN_SUFFIX )),
+ aFtnSuffixED ( this, SW_RES( ED_FTN_SUFFIX )),
+ aGroupBoxEnd ( this, SW_RES( GB_END ) ),
+ aEndNtAtTextEndCB ( this, SW_RES( CB_END_AT_TXTEND )),
+ aEndNtNumCB ( this, SW_RES( CB_END_NUM )),
+ aEndNtNumFmtCB ( this, SW_RES( CB_END_NUM_FMT ) ),
+ aEndNumViewBox ( this, SW_RES( LB_END_NUMVIEW )),
+ aEndOffsetLbl ( this, SW_RES( FT_END_OFFSET )),
+ aEndOffsetFld ( this, SW_RES( FLD_END_OFFSET )),
+ aEndPrefixFT ( this, SW_RES( FT_END_PREFIX )),
+ aEndPrefixED ( this, SW_RES( ED_END_PREFIX )),
+ aEndSuffixFT ( this, SW_RES( FT_END_SUFFIX )),
+ aEndSuffixED ( this, SW_RES( ED_END_SUFFIX ))
+{
+ FreeResource();
+
+ Link aLk( LINK( this, SwSectionFtnEndTabPage, FootEndHdl));
+ aFtnNtAtTextEndCB.SetClickHdl( aLk );
+ aFtnNtNumCB.SetClickHdl( aLk );
+ aEndNtAtTextEndCB.SetClickHdl( aLk );
+ aEndNtNumCB.SetClickHdl( aLk );
+ aFtnNtNumFmtCB.SetClickHdl( aLk );
+ aEndNtNumFmtCB.SetClickHdl( aLk );
+}
+
+SwSectionFtnEndTabPage::~SwSectionFtnEndTabPage()
+{
+}
+
+BOOL SwSectionFtnEndTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ BOOL bRecording = FALSE;//pRequest && 0 != SfxRequest::GetRecordingMacro();
+ if(bRecording)
+ {
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_REGION_NAME, aCurName.GetText()));
+// if(aCondCB.IsChecked())
+// pRequest->AppendItem(SfxStringItem(FN_PARAM_REGION_CONDITION, aConditionED.GetText()));
+// pRequest->AppendItem(SfxBoolItem(FN_PARAM_REGION_HIDDEN, aHideCB.IsChecked()));
+// pRequest->AppendItem(SfxBoolItem(FN_PARAM_REGION_PROTECT, aProtectCB.IsChecked()));
+ }
+
+ SwFmtFtnAtTxtEnd aFtn( aFtnNtAtTextEndCB.IsChecked()
+ ? ( aFtnNtNumCB.IsChecked()
+ ? ( aFtnNtNumFmtCB.IsChecked()
+ ? FTNEND_ATTXTEND_OWNNUMANDFMT
+ : FTNEND_ATTXTEND_OWNNUMSEQ )
+ : FTNEND_ATTXTEND )
+ : FTNEND_ATPGORDOCEND );
+
+ switch( aFtn.GetValue() )
+ {
+ case FTNEND_ATTXTEND_OWNNUMANDFMT:
+ aFtn.SetNumType( GetNumType( aFtnNumViewBox.GetSelectEntryPos() ));
+ aFtn.SetPrefix( aFtnPrefixED.GetText() );
+ aFtn.SetSuffix( aFtnSuffixED.GetText() );
+ // no break;
+
+ case FTNEND_ATTXTEND_OWNNUMSEQ:
+ aFtn.SetOffset( aFtnOffsetFld.GetValue()-1 );
+ // no break;
+ }
+
+ SwFmtEndAtTxtEnd aEnd( aEndNtAtTextEndCB.IsChecked()
+ ? ( aEndNtNumCB.IsChecked()
+ ? ( aEndNtNumFmtCB.IsChecked()
+ ? FTNEND_ATTXTEND_OWNNUMANDFMT
+ : FTNEND_ATTXTEND_OWNNUMSEQ )
+ : FTNEND_ATTXTEND )
+ : FTNEND_ATPGORDOCEND );
+
+ switch( aEnd.GetValue() )
+ {
+ case FTNEND_ATTXTEND_OWNNUMANDFMT:
+ aEnd.SetNumType( GetNumType( aEndNumViewBox.GetSelectEntryPos() ));
+ aEnd.SetPrefix( aEndPrefixED.GetText() );
+ aEnd.SetSuffix( aEndSuffixED.GetText() );
+ // no break;
+
+ case FTNEND_ATTXTEND_OWNNUMSEQ:
+ aEnd.SetOffset( aEndOffsetFld.GetValue()-1 );
+ // no break;
+ }
+
+ rSet.Put( aFtn );
+ rSet.Put( aEnd );
+
+ return TRUE;
+}
+
+void SwSectionFtnEndTabPage::ResetState( BOOL bFtn,
+ const SwFmtFtnEndAtTxtEnd& rAttr )
+{
+ CheckBox *pNtAtTextEndCB, *pNtNumCB, *pNtNumFmtCB;
+ FixedText*pPrefixFT, *pSuffixFT;
+ Edit *pPrefixED, *pSuffixED;
+ ListBox *pNumViewBox;
+ FixedText* pOffsetTxt;
+ NumericField *pOffsetFld;
+
+ if( bFtn )
+ {
+ pNtAtTextEndCB = &aFtnNtAtTextEndCB;
+ pNtNumCB = &aFtnNtNumCB;
+ pNtNumFmtCB = &aFtnNtNumFmtCB;
+ pPrefixFT = &aFtnPrefixFT;
+ pPrefixED = &aFtnPrefixED;
+ pSuffixFT = &aFtnSuffixFT;
+ pSuffixED = &aFtnSuffixED;
+ pNumViewBox = &aFtnNumViewBox;
+ pOffsetTxt = &aFtnOffsetLbl;
+ pOffsetFld = &aFtnOffsetFld;
+ }
+ else
+ {
+ pNtAtTextEndCB = &aEndNtAtTextEndCB;
+ pNtNumCB = &aEndNtNumCB;
+ pNtNumFmtCB = &aEndNtNumFmtCB;
+ pPrefixFT = &aEndPrefixFT;
+ pPrefixED = &aEndPrefixED;
+ pSuffixFT = &aEndSuffixFT;
+ pSuffixED = &aEndSuffixED;
+ pNumViewBox = &aEndNumViewBox;
+ pOffsetTxt = &aEndOffsetLbl;
+ pOffsetFld = &aEndOffsetFld;
+ }
+
+ USHORT eState = rAttr.GetValue();
+ switch( eState )
+ {
+ // case FTNEND_ATPGORDOCEND:
+ case FTNEND_ATTXTEND_OWNNUMANDFMT:
+ pNtNumFmtCB->SetState( STATE_CHECK );
+ // no break;
+
+ case FTNEND_ATTXTEND_OWNNUMSEQ:
+ pNtNumCB->SetState( STATE_CHECK );
+ // no break;
+
+ case FTNEND_ATTXTEND:
+ pNtAtTextEndCB->SetState( STATE_CHECK );
+ // no break;
+ }
+
+ pNumViewBox->SelectEntryPos( GetNumPos( rAttr.GetNumType() ));
+ pOffsetFld->SetValue( rAttr.GetOffset() + 1 );
+ pPrefixED->SetText( rAttr.GetPrefix() );
+ pSuffixED->SetText( rAttr.GetSuffix() );
+
+ switch( eState )
+ {
+ case FTNEND_ATPGORDOCEND:
+ pNtNumCB->Enable( FALSE );
+ // no break;
+
+ case FTNEND_ATTXTEND:
+ pNtNumFmtCB->Enable( FALSE );
+ pOffsetFld->Enable( FALSE );
+ pOffsetTxt->Enable( FALSE );
+ // no break;
+
+ case FTNEND_ATTXTEND_OWNNUMSEQ:
+ pNumViewBox->Enable( FALSE );
+ pPrefixFT->Enable( FALSE );
+ pPrefixED->Enable( FALSE );
+ pSuffixFT->Enable( FALSE );
+ pSuffixED->Enable( FALSE );
+ // no break;
+ }
+}
+
+void SwSectionFtnEndTabPage::Reset( const SfxItemSet& rSet )
+{
+ ResetState( TRUE, (const SwFmtFtnAtTxtEnd&)rSet.Get(
+ RES_FTN_AT_TXTEND, FALSE ));
+ ResetState( FALSE, (const SwFmtEndAtTxtEnd&)rSet.Get(
+ RES_END_AT_TXTEND, FALSE ));
+}
+
+SfxTabPage* SwSectionFtnEndTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwSectionFtnEndTabPage(pParent, rAttrSet);
+}
+
+IMPL_LINK( SwSectionFtnEndTabPage, FootEndHdl, CheckBox *, pBox )
+{
+// pBox->EnableTriState( FALSE );
+ BOOL bFoot = &aFtnNtAtTextEndCB == pBox || &aFtnNtNumCB == pBox ||
+ &aFtnNtNumFmtCB == pBox ;
+
+ CheckBox *pNumBox, *pNumFmtBox, *pEndBox;
+ ListBox* pNumViewBox;
+ FixedText* pOffsetTxt;
+ NumericField *pOffsetFld;
+ FixedText*pPrefixFT, *pSuffixFT;
+ Edit *pPrefixED, *pSuffixED;
+
+ if( bFoot )
+ {
+ pEndBox = &aFtnNtAtTextEndCB;
+ pNumBox = &aFtnNtNumCB;
+ pNumFmtBox = &aFtnNtNumFmtCB;
+ pNumViewBox = &aFtnNumViewBox;
+ pOffsetTxt = &aFtnOffsetLbl;
+ pOffsetFld = &aFtnOffsetFld;
+ pPrefixFT = &aFtnPrefixFT;
+ pSuffixFT = &aFtnSuffixFT;
+ pPrefixED = &aFtnPrefixED;
+ pSuffixED = &aFtnSuffixED;
+ }
+ else
+ {
+ pEndBox = &aEndNtAtTextEndCB;
+ pNumBox = &aEndNtNumCB;
+ pNumFmtBox = &aEndNtNumFmtCB;
+ pNumViewBox = &aEndNumViewBox;
+ pOffsetTxt = &aEndOffsetLbl;
+ pOffsetFld = &aEndOffsetFld;
+ pPrefixFT = &aEndPrefixFT;
+ pSuffixFT = &aEndSuffixFT;
+ pPrefixED = &aEndPrefixED;
+ pSuffixED = &aEndSuffixED;
+ }
+
+ BOOL bEnableAtEnd = STATE_CHECK == pEndBox->GetState();
+ BOOL bEnableNum = bEnableAtEnd && STATE_CHECK == pNumBox->GetState();
+ BOOL bEnableNumFmt = bEnableNum && STATE_CHECK == pNumFmtBox->GetState();
+
+ pNumBox->Enable( bEnableAtEnd );
+ pOffsetTxt->Enable( bEnableNum );
+ pOffsetFld->Enable( bEnableNum );
+ pNumFmtBox->Enable( bEnableNum );
+ pNumViewBox->Enable( bEnableNumFmt );
+ pPrefixED->Enable( bEnableNumFmt );
+ pSuffixED->Enable( bEnableNumFmt );
+ pPrefixFT->Enable( bEnableNumFmt );
+ pSuffixFT->Enable( bEnableNumFmt );
+
+ return 0;
+}
+
+/* -----------------21.05.99 13:59-------------------
+ *
+ * --------------------------------------------------*/
+SwSectionPropertyTabDialog::SwSectionPropertyTabDialog(
+ Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) :
+ SfxTabDialog(pParent, SW_RES(DLG_SECTION_PROPERTIES), &rSet)
+{
+ FreeResource();
+
+ AddTabPage(TP_COLUMN, SwColumnPage::Create, 0);
+ AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, 0);
+ AddTabPage(TP_SECTION_FTNENDNOTES, SwSectionFtnEndTabPage::Create, 0);
+
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ long nHtmlMode = pHtmlOpt->GetExportMode();
+ BOOL bWeb = 0 != PTR_CAST( SwWebDocShell, rSh.GetView().GetDocShell() );
+ if(bWeb)
+ {
+ RemoveTabPage(TP_SECTION_FTNENDNOTES);
+ if( HTML_CFG_NS30 != nHtmlMode && HTML_CFG_NS40 != nHtmlMode && HTML_CFG_WRITER != nHtmlMode)
+ RemoveTabPage(TP_COLUMN);
+ }
+}
+/* -----------------21.05.99 13:59-------------------
+ *
+ * --------------------------------------------------*/
+SwSectionPropertyTabDialog::~SwSectionPropertyTabDialog()
+{
+}
+/* -----------------21.05.99 13:59-------------------
+ *
+ * --------------------------------------------------*/
+void SwSectionPropertyTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+ if( TP_BACKGROUND == nId )
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+ else if( TP_COLUMN == nId )
+ ((SwColumnPage&)rPage).ShowBalance(TRUE);
+}
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.176 2000/09/18 16:05:21 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.175 2000/08/17 14:03:56 jp
+ UI with decode URL
+
+ Revision 1.174 2000/08/14 13:22:59 os
+ #77401# additional flag for 'Condition'
+
+ Revision 1.173 2000/08/01 16:55:55 jp
+ Bug #72901#: FillItemSet - ask the right control
+
+ Revision 1.172 2000/07/26 16:28:28 jp
+ Bug #77158#: InsertRegionDialog - take complete Itemset
+
+ Revision 1.171 2000/07/21 13:26:56 os
+ #77029# column dialog works again
+
+ Revision 1.170 2000/07/10 10:01:23 os
+ #76625# column item conversion
+
+ Revision 1.169 2000/07/03 08:08:35 os
+ #72742# resource warnings corrected
+
+ Revision 1.168 2000/06/26 13:10:14 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.167 2000/06/20 14:49:49 os
+ #70060# less occurences of columns in HTML
+
+ Revision 1.166 2000/06/13 11:06:54 os
+ include is back
+
+ Revision 1.165 2000/06/07 13:19:48 os
+ include removed
+
+ Revision 1.164 2000/05/26 07:21:29 os
+ old SW Basic API Slots removed
+
+ Revision 1.163 2000/04/13 08:01:20 os
+ UNICODE
+
+ Revision 1.162 2000/03/03 15:16:59 os
+ StarView remainders removed
+
+ Revision 1.161 2000/02/25 13:46:57 jp
+ Bug #73596#: wrong name for regions
+
+ Revision 1.160 2000/02/11 14:44:46 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.159 2000/01/31 10:14:11 os
+ #72343# Background/Footnote/Endnote attributes - not from parent
+
+ Revision 1.158 2000/01/04 15:35:39 os
+ #71411# balanced columns
+
+ Revision 1.157 1999/12/01 09:09:42 os
+ #70321# dont show index sections
+
+ Revision 1.156 1999/11/17 14:58:57 os
+ no foot/endnotes in html
+
+ Revision 1.155 1999/11/08 19:35:39 jp
+ little bugfixes for Foot-/Endnote attributes
+
+ Revision 1.154 1999/11/08 18:07:13 jp
+ numberformat for Foot-/Endnotes at sectionend
+
+ Revision 1.153 1999/11/03 13:49:46 jp
+ SwFmtFtn-/-EndAtTxtEnd: change to EnumItem
+
+ Revision 1.152 1999/10/21 17:47:51 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.151 1999/10/21 12:45:50 os
+ CHG: SfxPasswordDialog
+
+ Revision 1.150 1999/09/15 09:58:34 os
+ footnotes and endnotes in sections
+
+ Revision 1.149 1999/07/30 11:32:26 OS
+ TOXBase in sections
+
+
+ Rev 1.148 30 Jul 1999 13:32:26 OS
+ TOXBase in sections
+
+ Rev 1.147 28 Jul 1999 13:03:48 OS
+ TOXBase in sections
+
+ Rev 1.146 13 Jul 1999 12:56:00 OS
+ default section names are indexed
+
+ Rev 1.145 08 Jul 1999 09:04:24 OS
+ #67441# WB_HSCROLL
+
+ Rev 1.144 25 Jun 1999 15:45:18 OS
+ #67229# HelpId for PasswordDialog in foramt/sections
+
+ Rev 1.143 07 Jun 1999 13:51:30 OS
+ #65686# Multiselektion beim Aufheben richtig behandeln
+
+ Rev 1.142 27 May 1999 12:54:44 OS
+ Einf?gen/Bearbeiten von Spalten ueberarbeitet
+
+ Rev 1.141 21 May 1999 15:25:04 OS
+ #66310# Bereiche mit Hintergrund, TabDialog fuers Einfuegen
+
+ Rev 1.140 19 Mar 1999 13:34:24 OS
+ #63701# unbenutztes Break-Attribut aus den Sections entfernt
+
+ Rev 1.139 05 Mar 1999 20:09:32 JP
+ Bug #62914#: Handling des Dialoges verbessert
+
+ Rev 1.138 03 Mar 1999 18:21:44 JP
+ Bug #57749#: Spalten nur setzen wenn sie im OutputSet des Dialoges vorhanden sind
+
+ Rev 1.137 05 Feb 1999 12:54:18 OS
+ #61096# nach dem letzten aufheben kommt der Fokus auf OK
+
+ Rev 1.136 28 Jan 1999 18:12:22 JP
+ Task #57749#: Undo von Bereichs-Attributen (Spalten, Hintergr...)
+
+ Rev 1.135 27 Jan 1999 15:48:50 AMA
+ Fix #57749#: Der Spaltendialog bekommt ein Gedaechtnis
+
+ Rev 1.134 30 Nov 1998 14:55:40 OS
+ #59995# richtige Abwahl verknuepfter Bereiche, auch in Mehrfachselektion
+
+ Rev 1.133 17 Nov 1998 22:18:22 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+ Rev 1.132 12 Nov 1998 15:06:48 JP
+ Bug #54342#: auch bei GlobalDocs das Filepasswort an die Section uebertragen
+
+ Rev 1.131 28 Oct 1998 18:07:28 JP
+ Bug #54342#: File-Passwort von der Section merken und vom Medium besorgen
+
+ Rev 1.130 13 Oct 1998 12:47:28 OM
+ #57749# UI fuer spaltige Bereiche
+
+-------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/dialog/regionsw.hrc b/sw/source/ui/dialog/regionsw.hrc
new file mode 100644
index 000000000000..a4866227e97f
--- /dev/null
+++ b/sw/source/ui/dialog/regionsw.hrc
@@ -0,0 +1,144 @@
+/*************************************************************************
+ *
+ * $RCSfile: regionsw.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _REGIONSW_HRC
+#define _REGIONSW_HRC
+
+#include "dialog.hrc"
+
+
+#define CB_CONDITION 1
+#define CB_DDE 2
+#define CB_DISMISS 3
+#define CB_END_AT_TXTEND 4
+#define CB_END_NUM 5
+#define CB_FILE 6
+#define CB_FTN_AT_TXTEND 7
+#define CB_FTN_NUM 8
+#define CB_HIDE 9
+#define CB_PASSWD 10
+#define CB_PROTECT 11
+#define CB_FTN_NUM_FMT 12
+#define CB_END_NUM_FMT 13
+
+#define ED_CONDITION 1
+#define ED_END_PREFIX 2
+#define ED_END_SUFFIX 3
+#define ED_FILE 4
+#define ED_FTN_PREFIX 5
+#define ED_FTN_SUFFIX 6
+#define ED_RANAME 7
+#define ED_RNAME 8
+
+#define FLD_END_OFFSET 1
+#define FLD_FTN_OFFSET 2
+
+#define FT_DDE 1
+#define FT_END_OFFSET 2
+#define FT_END_PREFIX 3
+#define FT_END_SUFFIX 4
+#define FT_FILE 5
+#define FT_FTN_OFFSET 6
+#define FT_FTN_PREFIX 7
+#define FT_FTN_SUFFIX 8
+#define FT_RNAME 9
+#define FT_SUBREG 10
+
+#define GB_EDIT_OPTIONS 1
+#define GB_EDIT_SECTION 2
+#define GB_END 3
+#define GB_FTN 4
+#define GB_NEW_OPTIONS 5
+#define GB_NEW_SECTION 6
+
+#define LB_END_NUMVIEW 1
+#define LB_FTN_NUMVIEW 2
+#define LB_SUBREG 3
+
+#define PB_CANCEL 1
+#define PB_FILE 2
+#define PB_HELP 3
+#define PB_OK 4
+#define PB_OPTIONS 5
+#define PB_SAVED 6
+
+#define ST_INSERT 1
+#define TLB_SECTION 2
+
+
+
+/* Globale Resourcen */
+#define BMP_REG_NOPROT_NOHIDE (RC_REGIONSW_BEGIN+0)
+#define BMP_REG_NOPROT_HIDE (RC_REGIONSW_BEGIN+1)
+#define BMP_REG_PROT_NOHIDE (RC_REGIONSW_BEGIN+2)
+#define BMP_REG_PROT_HIDE (RC_REGIONSW_BEGIN+3)
+#define BMP_REG_EXPNODE (RC_REGIONSW_BEGIN+4)
+#define BMP_REG_COLLNODE (RC_REGIONSW_BEGIN+5)
+
+#define STR_REG_DUPLICATE (RC_REGIONSW_BEGIN+6)
+#define STR_INFO_DUPLICATE (RC_REGIONSW_BEGIN+7)
+
+#define MD_INS_REGION (RC_REGIONSW_BEGIN+8)
+#define MD_EDIT_REGION (RC_REGIONSW_BEGIN+9)
+#define QB_CONNECT (RC_REGIONSW_BEGIN+10)
+#define REG_WRONG_PASSWORD (RC_REGIONSW_BEGIN+11)
+#define REG_WRONG_PASSWD_REPEAT (RC_REGIONSW_BEGIN+12)
+
+#endif
diff --git a/sw/source/ui/dialog/regionsw.src b/sw/source/ui/dialog/regionsw.src
new file mode 100644
index 000000000000..05f9248bdae3
--- /dev/null
+++ b/sw/source/ui/dialog/regionsw.src
@@ -0,0 +1,1697 @@
+/*************************************************************************
+ *
+ * $RCSfile: regionsw.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "regionsw.hrc"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "helpid.h"
+/*************************************************************************
+
+ Dialog "Bereich einfuegen"
+
+*************************************************************************/
+#define FT_SUBREG_TEXT \
+ Text = "Berei~ch" ; \
+ Text [ English ] = "Section" ; \
+ Text [ dutch ] = "~Bereik" ; \
+ Text [ english_us ] = "~Section" ; \
+ Text [ italian ] = "~Sezione" ; \
+ Text [ spanish ] = "Ar~ea" ; \
+ Text [ french ] = "~Section" ; \
+ Text [ swedish ] = "~Område" ; \
+ Text [ danish ] = "Område" ; \
+ Text [ portuguese_brazilian ] = "Berei~ch" ; \
+ Text [ portuguese ] = "Secção" ; \
+ Text[ chinese_simplified ] = "ÇøÓò(~S)"; \
+ Text[ russian ] = "Îáëàñòü"; \
+ Text[ polish ] = "Sekcja"; \
+ Text[ japanese ] = "”͈Í(~S)"; \
+ Text[ language_user1 ] = "èëè: Ðàçäåë - -"; \
+ Text[ chinese_traditional ] = "°Ï°ì(~S)"; \
+ Text[ arabic ] = "ÇáäØÇÞ"; \
+ Text[ greek ] = "Å~íüôçôá"; \
+ Text[ korean ] = "±¸¿ª(~S)"; \
+ Text[ turkish ] = "Bölüm";
+
+#define CB_HIDE_TEXT \
+ Text = "Aus~blenden" ; \
+ Text [ English ] = "~Hidden" ; \
+ Text [ norwegian ] = "~Hidden" ; \
+ Text [ italian ] = "~Nascondi" ; \
+ Text [ portuguese_brazilian ] = "~Oculto" ; \
+ Text [ portuguese ] = "~Ocultar" ; \
+ Text [ finnish ] = "~Piilotettu" ; \
+ Text [ danish ] = "Skjul" ; \
+ Text [ french ] = "~Masquer" ; \
+ Text [ swedish ] = "Döl~j" ; \
+ Text [ dutch ] = "~Verbergen" ; \
+ Text [ spanish ] = "~Ocultar" ; \
+ Text [ english_us ] = "~Hidden" ; \
+ Text[ chinese_simplified ] = "ÒþÈë(~H)"; \
+ Text[ russian ] = "Ñêðûòü"; \
+ Text[ polish ] = "Ukryj"; \
+ Text[ japanese ] = "”ñ•\\Ž¦(~H)"; \
+ Text[ chinese_traditional ] = "Áô¤J(~H)"; \
+ Text[ arabic ] = "ãÎÝí"; \
+ Text[ greek ] = "Á~ðüêñõøç"; \
+ Text[ korean ] = "¼û±â±â(~H)"; \
+ Text[ turkish ] = "Gizle";
+
+#define CB_CONDITION_TEXT \
+ Text = "M~it Bedingung" ; \
+ Text [ English ] = "~With condition" ; \
+ Text [ english_us ] = "~With condition" ; \
+ Text [ italian ] = "Con condizione" ; \
+ Text [ spanish ] = "Con ~condición" ; \
+ Text [ french ] = "Sous ~condition" ; \
+ Text [ dutch ] = "~Met conditie" ; \
+ Text [ swedish ] = "~Med villkor" ; \
+ Text [ danish ] = "Med betingelse" ; \
+ Text [ portuguese ] = "~Com condição" ; \
+ Text [ portuguese_brazilian ] = "M~it Bedingung" ; \
+ Text[ chinese_simplified ] = "´øÌõ¼þ(~W)"; \
+ Text[ russian ] = "Ïðè óñëîâèè"; \
+ Text[ polish ] = "Warunkowy"; \
+ Text[ japanese ] = "ðŒ•t(~W)"; \
+ Text[ chinese_traditional ] = "¦³±ø¥ó(~W)"; \
+ Text[ arabic ] = "ÈÔÑØ"; \
+ Text[ greek ] = "Ìå óõíèÞê~ç"; \
+ Text[ korean ] = "Á¶°Ç°ú ÇÔ²²(~W)"; \
+ Text[ turkish ] = "Koþul";
+
+#define CB_FILE_TEXT \
+ Text = "~Verknüpfung" ; \
+ Text [ English ] = "~Link" ; \
+ Text [ english_us ] = "~Link" ; \
+ Text [ italian ] = "~Collegamento" ; \
+ Text [ spanish ] = "~Vínculo" ; \
+ Text [ french ] = "~Lien" ; \
+ Text [ dutch ] = "~Koppeling" ; \
+ Text [ swedish ] = "~Länk" ; \
+ Text [ danish ] = "Kæde" ; \
+ Text [ portuguese_brazilian ] = "~Verknüpfung" ; \
+ Text [ portuguese ] = "~Ligação" ; \
+ Text[ chinese_simplified ] = "Á´½Ó(~L)"; \
+ Text[ russian ] = "Ññûëêà"; \
+ Text[ polish ] = "£¹cze"; \
+ Text[ japanese ] = "Øݸ(~L)"; \
+ Text[ chinese_traditional ] = "±¶®|(~L)"; \
+ Text[ arabic ] = "ÇÑÊÈÇØ"; \
+ Text[ greek ] = "~Óýíäåóç"; \
+ Text[ korean ] = "¿¬°á(~L)"; \
+ Text[ turkish ] = "Baðlantý";
+
+#define CB_DDE_TEXT \
+ Text = "~DDE" ; \
+ Text [ English ] = "~DDE" ; \
+ Text [ dutch ] = "~DDE" ; \
+ Text [ english_us ] = "DD~E" ; \
+ Text [ italian ] = "~DDE" ; \
+ Text [ spanish ] = "~DDE" ; \
+ Text [ french ] = "~DDE" ; \
+ Text [ swedish ] = "~DDE" ; \
+ Text [ danish ] = "DDE" ; \
+ Text [ portuguese_brazilian ] = "~DDE" ; \
+ Text [ portuguese ] = "~DDE" ; \
+ Text[ chinese_simplified ] = "DDE(~E)"; \
+ Text[ russian ] = "~DDE"; \
+ Text[ polish ] = "DDE"; \
+ Text[ japanese ] = "DDE(~E)"; \
+ Text[ chinese_traditional ] = "DD~E"; \
+ Text[ arabic ] = "DDE~"; \
+ Text[ greek ] = "~DDE"; \
+ Text[ korean ] = "DD~E"; \
+ Text[ turkish ] = "DDE";
+
+#define FT_DDE_TEXT \
+ Text = "DDE~-Befehl" ; \
+ Text [ English ] = "DDE command" ; \
+ Text [ english_us ] = "DDE ~Command" ; \
+ Text [ italian ] = "Comando DDE" ; \
+ Text [ spanish ] = "~Comando DDE" ; \
+ Text [ french ] = "Commande ~DDE" ; \
+ Text [ dutch ] = "~DDE-opdracht" ; \
+ Text [ swedish ] = "DDE-~kommando" ; \
+ Text [ danish ] = "DDE-kommando" ; \
+ Text [ portuguese_brazilian ] = "DDE~-Befehl" ; \
+ Text [ portuguese ] = "~Comando DDE" ; \
+ Text[ chinese_simplified ] = "DDE Ö¸Áî(~C)"; \
+ Text[ russian ] = "Êîìàíäà DDE~"; \
+ Text[ polish ] = "Polecenie DDE"; \
+ Text[ japanese ] = "DDEŽwŽ¦(~C)"; \
+ Text[ chinese_traditional ] = "~DDE - «ü¥O"; \
+ Text[ arabic ] = "ÃãÑ DDE"; \
+ Text[ greek ] = "~ÅíôïëÞ DDE"; \
+ Text[ korean ] = "DDE ¸í·É(~C)"; \
+ Text[ turkish ] = "DDE komutu";
+
+#define FT_FILE_TEXT \
+ Text = "Dateina~me" ; \
+ Text [ English ] = "File name" ; \
+ Text [ english_us ] = "~File name" ; \
+ Text [ italian ] = "Nome file" ; \
+ Text [ spanish ] = "~Nombre de archivo" ; \
+ Text [ french ] = "Nom de ~fichier" ; \
+ Text [ dutch ] = "~Bestandsnaam" ; \
+ Text [ swedish ] = "~Filnamn" ; \
+ Text [ danish ] = "Filnavn" ; \
+ Text [ portuguese_brazilian ] = "Dateina~me" ; \
+ Text [ portuguese ] = "~Nome do ficheiro" ; \
+ Text[ chinese_simplified ] = "ÎļþÃû(~F)"; \
+ Text[ russian ] = "Èìÿ ôàéëà"; \
+ Text[ polish ] = "Nazwa pliku"; \
+ Text[ japanese ] = "̧²Ù–¼(~F)"; \
+ Text[ chinese_traditional ] = "ÀɮצWºÙ(~F)"; \
+ Text[ arabic ] = "ÇÓã ÇáãáÝ"; \
+ Text[ greek ] = "¼íï~ìá áñ÷åßïõ"; \
+ Text[ korean ] = "ÆÄÀÏ À̸§(~F)"; \
+ Text[ turkish ] = "D~osya adý";
+
+#define PB_FILE_TEXT \
+ Text = "Au~swählen..." ; \
+ Text [ English ] = "~Browse..." ; \
+ Text [ english_us ] = "~Browse..." ; \
+ Text [ portuguese ] = "~Seleccionar..." ; \
+ Text [ portuguese_brazilian ] = "Durchs~uchen..." ; \
+ Text [ swedish ] = "~Välj ut..." ; \
+ Text [ danish ] = "Gennemse..." ; \
+ Text [ italian ] = "~Sfoglia..." ; \
+ Text [ spanish ] = "Se~leccionar..." ; \
+ Text [ french ] = "~Sélectionner..." ; \
+ Text [ dutch ] = "~Selecteren..." ; \
+ Text[ chinese_simplified ] = "ä¯ÀÀ(~B)..."; \
+ Text[ russian ] = "Âûáðàòü..."; \
+ Text[ polish ] = "Wybierz..."; \
+ Text[ japanese ] = "‘I‘ð(~B)..."; \
+ Text[ chinese_traditional ] = "ÂsÄý(~B)..."; \
+ Text[ arabic ] = "ÇÎÊíÇÑ..."; \
+ Text[ greek ] = "Å~ðéëïãÞ..."; \
+ Text[ korean ] = "¼±ÅÃÇϱâ(~B)..."; \
+ Text[ turkish ] = "Seç...";
+
+#define GB_OPTIONS_TEXT \
+ Text = "Optionen" ; \
+ Text [ English ] = "Options" ; \
+ Text [ norwegian ] = "Options" ; \
+ Text [ italian ] = "Opzioni" ; \
+ Text [ portuguese_brazilian ] = "Opções" ; \
+ Text [ portuguese ] = "Opções" ; \
+ Text [ finnish ] = "Määritykset" ; \
+ Text [ danish ] = "Indstillinger" ; \
+ Text [ french ] = "Options" ; \
+ Text [ swedish ] = "Alternativ" ; \
+ Text [ dutch ] = "Opties" ; \
+ Text [ spanish ] = "Opciones" ; \
+ Text [ english_us ] = "Options" ; \
+ Text[ chinese_simplified ] = "Ñ¡Ïî"; \
+ Text[ russian ] = "Ïàðàìåòðû"; \
+ Text[ polish ] = "Opcje"; \
+ Text[ japanese ] = "µÌß¼®Ý"; \
+ Text[ chinese_traditional ] = "¿ï¶µ"; \
+ Text[ arabic ] = "ÇáÎíÇÑÇÊ"; \
+ Text[ greek ] = "ÅðéëïãÝò"; \
+ Text[ korean ] = "¿É¼Ç"; \
+ Text[ turkish ] = "Seçenekler";
+
+/*************************************************************************
+
+ Dialog "Bereiche bearbeiten"
+
+*************************************************************************/
+ModalDialog MD_EDIT_REGION
+{
+ HelpID = FN_EDIT_REGION ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 296 , 164 ) ;
+ Text = "Bereiche bearbeiten" ;
+ Text [ English ] = "Edit Sections" ;
+ Text [ norwegian ] = "Redigere Områder" ;
+ Text [ italian ] = "Modifica sezioni" ;
+ Text [ portuguese_brazilian ] = "Editar Seções" ;
+ Text [ portuguese ] = "Editar secções" ;
+ Text [ finnish ] = "Muokkaa asiakirjan osia" ;
+ Text [ danish ] = "Rediger områder" ;
+ Text [ french ] = "Édition des sections" ;
+ Text [ swedish ] = "Redigera områden" ;
+ Text [ dutch ] = "Bereiken bewerken" ;
+ Text [ spanish ] = "Modificar áreas" ;
+ Text [ english_us ] = "Edit Sections" ;
+ Moveable = TRUE ;
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 240 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 240 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_OPTIONS
+ {
+ Pos = MAP_APPFONT ( 240 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text = "~Optionen..." ;
+ Text [ English ] = "~Options...";
+ Text[ english_us ] = "~Options...";
+ Text[ portuguese ] = "~Opções...";
+ Text[ russian ] = "Ïàðàìåòðû...";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ dutch ] = "~Opties...";
+ Text[ french ] = "~Options...";
+ Text[ spanish ] = "~Opciones...";
+ Text[ italian ] = "~Opzioni...";
+ Text[ danish ] = "Indstillinger...";
+ Text[ swedish ] = "Alternativ";
+ Text[ polish ] = "Opcje...";
+ Text[ portuguese_brazilian ] = "~Options";
+ Text[ japanese ] = "µÌß¼®Ý(~O)";
+ Text[ korean ] = "¿É¼Ç(~O)...";
+ Text[ chinese_simplified ] = "Ñ¡Ïî(~O)";
+ Text[ chinese_traditional ] = "¿ï¶µ(~O)";
+ Text[ arabic ] = "ÎíÇÑÇÊ...";
+ Text[ turkish ] = "Seçenekler...";
+ };
+ PushButton CB_DISMISS
+ {
+ Pos = MAP_APPFONT ( 240 , 57 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Text = "A~ufheben" ;
+ Text [ English ] = "~Dismiss" ;
+ Text [ norwegian ] = "~Dismiss" ;
+ Text [ italian ] = "Rimuovi" ;
+ Text [ portuguese_brazilian ] = "~Dispensar" ;
+ Text [ portuguese ] = "~Remover" ;
+ Text [ finnish ] = "~Poista" ;
+ Text [ danish ] = "Ophæv" ;
+ Text [ french ] = "~Éliminer" ;
+ Text [ swedish ] = "Upphäv" ;
+ Text [ dutch ] = "~Opheffen" ;
+ Text [ spanish ] = "An~ular" ;
+ Text [ english_us ] = "~Undo" ;
+ Text[ chinese_simplified ] = "ÒƳý(~R)";
+ Text[ russian ] = "Óáðàòü";
+ Text[ polish ] = "Anuluj";
+ Text[ japanese ] = "‰ðœ(~R)";
+ Text[ chinese_traditional ] = "²¾°£(~R)";
+ Text[ arabic ] = "ÅÒÇáÉ";
+ Text[ greek ] = "ÊáôÜñãçóç";
+ Text[ korean ] = "»èÁ¦(~R)";
+ Text[ turkish ] = "Kaldýr";
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 240 , 77 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_RNAME
+ {
+ Pos = MAP_APPFONT ( 129 , 17 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Name" ;
+ Text [ English ] = "Name" ;
+ Text [ norwegian ] = "Navn" ;
+ Text [ italian ] = "~Nome" ;
+ Text [ portuguese_brazilian ] = "~Nomear" ;
+ Text [ portuguese ] = "~Nome" ;
+ Text [ finnish ] = "Nimi" ;
+ Text [ danish ] = "Navn" ;
+ Text [ french ] = "~Nom" ;
+ Text [ swedish ] = "~Namn" ;
+ Text [ dutch ] = "~Naam" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ english_us ] = "~Name" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ turkish ] = "~Ad";
+ };
+ Edit ED_RANAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 160 , 16 ) ;
+ Size = MAP_APPFONT ( 68 , 12 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ };
+ TriStateBox CB_PROTECT
+ {
+ Pos = MAP_APPFONT ( 129 , 31 ) ;
+ Size = MAP_APPFONT ( 70 , 12 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ TriStateDisable = FALSE ;
+ Text = "~Geschützt" ;
+ Text [ English ] = "Pro~tected" ;
+ Text [ norwegian ] = "Pro~tected" ;
+ Text [ italian ] = "Pro~tetta" ;
+ Text [ portuguese_brazilian ] = "Pro~tegido" ;
+ Text [ portuguese ] = "~Proteger" ;
+ Text [ finnish ] = "~Suojattu" ;
+ Text [ danish ] = "Beskyttet" ;
+ Text [ french ] = "~Protégé" ;
+ Text [ swedish ] = "Skyddad" ;
+ Text [ dutch ] = "~Beveiligd" ;
+ Text [ spanish ] = "Pro~tegida" ;
+ Text [ english_us ] = "~Protected" ;
+ Text[ chinese_simplified ] = "Êܱ£»¤µÄ(~P)";
+ Text[ russian ] = "Çàùèùåíî";
+ Text[ polish ] = "Chroniony";
+ Text[ japanese ] = "•ÛŒì‚³‚ꂽ(~P)";
+ Text[ chinese_traditional ] = "¨ü«OÅ@(~P)";
+ Text[ arabic ] = "ãÍãí";
+ Text[ greek ] = "Ðñïóôáôåõüìåíï";
+ Text[ korean ] = "º¸È£(~P)";
+ Text[ turkish ] = "Korumalý";
+ };
+ TriStateBox CB_HIDE
+ {
+ Pos = MAP_APPFONT ( 129 , 46 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ TabStop = TRUE ;
+ TriStateDisable = FALSE ;
+ CB_HIDE_TEXT
+ };
+ TriStateBox CB_CONDITION
+ {
+ Pos = MAP_APPFONT ( 144 , 59 ) ;
+ Size = MAP_APPFONT ( 85 , 10 ) ;
+ TriStateDisable = FALSE ;
+ CB_CONDITION_TEXT
+ };
+ Edit ED_CONDITION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 160 , 72 ) ;
+ Size = MAP_APPFONT ( 68 , 12 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ };
+ TriStateBox CB_FILE
+ {
+ Pos = MAP_APPFONT ( 129 , 102 ) ;
+ Size = MAP_APPFONT ( 59 , 10 ) ;
+ TabStop = TRUE ;
+ CB_FILE_TEXT
+ };
+ CheckBox CB_DDE
+ {
+ Pos = MAP_APPFONT ( 190 , 102 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Disable = TRUE ;
+ CB_DDE_TEXT
+ };
+ FixedText FT_DDE
+ {
+ Pos = MAP_APPFONT ( 144 , 115 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Hide = TRUE ;
+ FT_DDE_TEXT
+ };
+ FixedText FT_FILE
+ {
+ Pos = MAP_APPFONT ( 144 , 115 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Disable = TRUE ;
+ FT_FILE_TEXT
+ };
+ Edit ED_FILE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 144 , 126 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_FILE
+ {
+ Pos = MAP_APPFONT ( 240 , 125 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ PB_FILE_TEXT
+ };
+ FixedText FT_SUBREG
+ {
+ Pos = MAP_APPFONT ( 144 , 141 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Disable = TRUE ;
+ FT_SUBREG_TEXT
+ };
+ ComboBox LB_SUBREG
+ {
+ Pos = MAP_APPFONT ( 175 , 141 ) ;
+ Size = MAP_APPFONT ( 53 , 50 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ };
+ CheckBox CB_PASSWD
+ {
+ Pos = MAP_APPFONT ( 12 , 145 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "Bereiche mit ~Passwortschutz" ;
+ Text [ English ] = "Sections ~password protected" ;
+ Text [ dutch ] = "Bereiken met ~wachtwoordbeveiliging" ;
+ Text [ english_us ] = "P~assword protected" ;
+ Text [ italian ] = "Sezioni con protezione password" ;
+ Text [ spanish ] = "Areas protegidas con ~contraseña" ;
+ Text [ french ] = "Protégées par ~mot de passe" ;
+ Text [ swedish ] = "Områden med ~lösenordsskydd" ;
+ Text [ danish ] = "Områder med adgangskodebeskyttelse" ;
+ Text [ portuguese_brazilian ] = "Bereiche mit ~Paßwortschutz" ;
+ Text [ portuguese ] = "Proteger com ~senha" ;
+ Text[ chinese_simplified ] = "ʹÓÿÚÁî±£»¤µÄÇøÓò(~A)";
+ Text[ russian ] = "Îáëàñòè, çàùèùåííûå ïàðîëåì";
+ Text[ polish ] = "Obszary zabezpieczone has³em";
+ Text[ japanese ] = "Ê߽ܰÄÞ•ÛŒì•t‚«‚͈̔Í(~A)";
+ Text[ chinese_traditional ] = "¨Ï¥Î±K½X«OÅ@°Ï°ì(~A)";
+ Text[ arabic ] = "äØÇÞÇÊ ãÍãíÉ ÈßáãÉ ÓÑ";
+ Text[ greek ] = "Ðåñéï÷Ýò ìå ðñïóôáóßá êùäéêïý ðñüóâáóçò";
+ Text[ korean ] = "Æнº¿öµå°¡ º¸È£µÇ¾ú½À´Ï´Ù.(~A)";
+ Text[ turkish ] = "Þifre korumalý bölümler";
+ };
+ GroupBox GB_EDIT_SECTION
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 111 , 157 ) ;
+ Text = "Bereich" ;
+ Text [ English ] = "section" ;
+ Text [ norwegian ] = "section" ;
+ Text [ italian ] = "Sezione" ;
+ Text [ portuguese_brazilian ] = "seção" ;
+ Text [ portuguese ] = "Secção" ;
+ Text [ finnish ] = "osa" ;
+ Text [ danish ] = "Område" ;
+ Text [ french ] = "Section" ;
+ Text [ swedish ] = "Område" ;
+ Text [ dutch ] = "Bereik" ;
+ Text [ spanish ] = "Area" ;
+ Text [ english_us ] = "Section" ;
+ Text[ chinese_simplified ] = "·ÖÀà";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "”͈Í";
+ Text[ language_user1 ] = "èëè: Îáëàñòü - -";
+ Text[ chinese_traditional ] = "¤ÀÃþ";
+ Text[ arabic ] = "ÇáäØÇÞ";
+ Text[ greek ] = "Åíüôçôá";
+ Text[ korean ] = "±¸¿ª";
+ Text[ turkish ] = "Bölüm";
+ };
+ Control TLB_SECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 99 , 127 ) ;
+ TabStop = TRUE ;
+ };
+ /* FixedText FT_CONDITION
+ {
+ Pos = MAP_APPFONT( 97, 48 );
+ Size = MAP_APPFONT( 40, 10 );
+ Text = "Bedingung";
+ Text[ English ] = "Condition";
+ Text[norwegian] = "Vilkår";
+ Text[italian] = "Condizione";
+ Text[portuguese_brazilian] = "condição";
+ Text[portuguese] = "Condição";
+ Text[finnish] = "Ehto";
+ Text[danish] = "Betingelse";
+ Text[french] = "Condition";
+ Text[swedish] = "Villkor";
+ Text[dutch] = "Voorwaarde";
+ Text[spanish] = "Condición";
+ Text[english_us] = "Condition";
+ Disable = TRUE;
+ };*/
+ GroupBox GB_EDIT_OPTIONS
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 123 , 3 ) ;
+ Size = MAP_APPFONT ( 111 , 157 ) ;
+ GB_OPTIONS_TEXT
+ };
+ Text[ chinese_simplified ] = "±à¼­ÇøÓò";
+ Text[ russian ] = "Ïðàâêà îáëàñòåé";
+ Text[ polish ] = "Edytuj sekcje";
+ Text[ japanese ] = "”͈͂̕ÒW";
+ Text[ chinese_traditional ] = "½s¿è°Ï°ì";
+ Text[ arabic ] = "ÊÍÑíÑ äØÇÞÇÊ";
+ Text[ greek ] = "Åðåîåñãáóßá ôïìÝùí";
+ Text[ korean ] = "±¸¿ª ÆíÁý";
+ Text[ turkish ] = "Bölümleri düzenle";
+};
+Bitmap BMP_REG_NOPROT_NOHIDE
+{
+ File = "lock1.bmp" ;
+};
+Bitmap BMP_REG_NOPROT_HIDE
+{
+ File = "lock2.bmp" ;
+};
+Bitmap BMP_REG_PROT_NOHIDE
+{
+ File = "lock.bmp" ;
+};
+Bitmap BMP_REG_PROT_HIDE
+{
+ File = "lock3.bmp" ;
+};
+Bitmap BMP_REG_EXPNODE
+{
+ File = "plus.bmp" ;
+};
+Bitmap BMP_REG_COLLNODE
+{
+ File = "minus.bmp" ;
+};
+String STR_REG_DUPLICATE
+{
+ Text = "Bereichsname geändert:" ;
+ Text [ English ] = "Section name changed:" ;
+ Text [ norwegian ] = "Section name changed:" ;
+ Text [ italian ] = "Nome sezione modificato:" ;
+ Text [ portuguese_brazilian ] = "Nome da seção alterado:" ;
+ Text [ portuguese ] = "Nome da secção mudou:" ;
+ Text [ finnish ] = "Osan nimi vaihdettu:" ;
+ Text [ danish ] = "Områdenavn ændret:" ;
+ Text [ french ] = "Nom de section modifié :" ;
+ Text [ swedish ] = "Områdesnamn ändrat:" ;
+ Text [ dutch ] = "Bereiknaam gewijzigd:" ;
+ Text [ spanish ] = "Nombre de área modificado:" ;
+ Text [ english_us ] = "Section name changed:" ;
+ Text[ chinese_simplified ] = "ÇøÓòÃû³ÆÒѾ­¸Ä±ä£º";
+ Text[ russian ] = "Èìÿ ðàçäåëà èçìåíåíî:";
+ Text[ polish ] = "Zmieniona nazwa sekcji:";
+ Text[ japanese ] = "”͈͖¼‚Ì•ÏX:";
+ Text[ chinese_traditional ] = "°Ï°ì¦WºÙ¤w¸gÅܧó¡G";
+ Text[ arabic ] = "Êã ÊÛííÑ ÇÓã ÇáäØÇÞ:";
+ Text[ greek ] = "ÁëëáãÞ ïíüìáôïò ôïõ ôïìÝá:";
+ Text[ korean ] = "±¸¿ª À̸§ÀÌ º¯°æµÇ¾ú½À´Ï´Ù:";
+ Text[ turkish ] = "Bölüm adý deðiþtirildi:";
+};
+String STR_INFO_DUPLICATE
+{
+ Text = "Doppelter Bereichsname" ;
+ Text [ English ] = "Duplicate section name" ;
+ Text [ norwegian ] = "Duplicate section name" ;
+ Text [ italian ] = "Nome area doppio" ;
+ Text [ portuguese_brazilian ] = "Nome da seção duplo" ;
+ Text [ portuguese ] = "Nome de secção duplo" ;
+ Text [ finnish ] = "Osan nimi toistettu" ;
+ Text [ danish ] = "Dobbelt områdenavn" ;
+ Text [ french ] = "Dupliquer nom de la section" ;
+ Text [ swedish ] = "Dubbelt områdesnamn" ;
+ Text [ dutch ] = "Dubbele bereiknaam" ;
+ Text [ spanish ] = "Nombre doble de área" ;
+ Text [ english_us ] = "Duplicate section name" ;
+ Text[ chinese_simplified ] = "Ë«ÇøÓòÃû³Æ";
+ Text[ russian ] = "Ïîâòîð èìåíè îáëàñòè";
+ Text[ polish ] = "Zduplikowane nazwy sekcji";
+ Text[ japanese ] = "d•¡‚µ‚½”͈͖¼";
+ Text[ chinese_traditional ] = "Âù°Ï°ì¦WºÙ";
+ Text[ arabic ] = "ÇÓã äØÇÞ ãÒÏæÌ";
+ Text[ greek ] = "ÄéðëÞ ïíïìáóßá ôïìÝá";
+ Text[ korean ] = "Áߺ¹µÈ ±¸¿ªÀ̸§";
+ Text[ turkish ] = "Bölüm adý daha önce kullanýldý";
+};
+QueryBox QB_CONNECT
+{
+ Buttons = WB_YES_NO ;
+ DefButton = WB_DEF_NO ;
+ Message = "Eine Dateiverbindung löscht den aktuellen Inhalt des Bereichs. Trotzdem verbinden ?" ;
+ Message [ English ] = "A file connection will delete the content of the current section. Continue ?" ;
+ Message [ dutch ] = "Door een bestandsverbinding wordt de inhoud van het actuele bereik verwijderd. Toch verbinden?" ;
+ Message [ english_us ] = "A file connection will delete the contents of the current section. Connect anyway?" ;
+ Message [ italian ] = "Un collegamento di file cancella il contenuto dell'area. Volete collegare lo stesso?" ;
+ Message [ spanish ] = "Un enlace de archivos borra el contenido actual del área. ¿Enlazar de todos modos?" ;
+ Message [ french ] = "Une connexion supprime le contenu de la section courante. Connecter quand même?" ;
+ Message [ swedish ] = "En filförbindelse raderar det aktuella innehållet i området. Förbinda ändå?" ;
+ Message [ danish ] = "En filforbindelse sletter områdets aktuelle indhold. Vil du forbinde alligevel?" ;
+ Message [ portuguese ] = "Uma ligação de ficheiros elimina o conteúdo da actual secção. Mesmo assim, ligar?" ;
+ Message [ portuguese_brazilian ] = "Eine Dateiverbindung löscht den aktuellen Inhalt des Bereichs. Trotzdem verbinden ?" ;
+ Message[ chinese_simplified ] = "ʹÓÃÎļþÁ¬½Ó»áɾ³ýµ±Ç°ÇøÓòÄÚµÄÄÚÈÝ¡£Äú»¹ÊÇÒªÖ´ÐÐÁ¬½ÓÃüÁ";
+ Message[ russian ] = "Ñâÿçü ôàéëîâ óäàëèò òåêóùåå ñîäåðæèìîå îáëàñòè. Ñâÿçàòü íåñìîòðÿ íà ýòî ?";
+ Message[ polish ] = "Po³¹czenie pliku usunie aktualn¹ zawartoœæ obszaru. Mimo to po³¹czyæ?";
+ Message[ japanese ] = "̧²Ù‚ÌÚ‘±‚Íì‹Æ’†‚͈͓̔à—e‚ð휂µ‚Ü‚·B‚»‚ê‚Å‚àÚ‘±‚µ‚Ü‚·‚©?";
+ Message[ chinese_traditional ] = "¨Ï¥ÎÀɮ׳sµ²·|§R°£°Ï°ì¤º·í«eªº¤º®e¡C±zÁÙ¬O­n°õ¦æ³sµ²¡H";
+ Message[ arabic ] = "ÓíÄÏí ÇÊÕÇá ÇáãáÝ Åáì ÍÐÝ ÇáãÍÊæíÇÊ ÇáÍÇáíÉ. åá ÊÑíÏ ÇáÇÊÕÇá Úáì ÇáÑÛã ãä Ðáß¿";
+ Message[ greek ] = "Ìéá óýíäåóç áñ÷åßïõ äéáãñÜöåé ôï ôñÝ÷ïí ðåñéå÷üìåíï ôïõ ôìÞìáôïò. Íá ðñáãìáôïðïéçèåß ç óýíäåóç ðáñ´ üëá áõôÜ;";
+ Message[ korean ] = "ÆÄÀÏ Á¢¼ÓÀÌ ÇöÀç ±¸¿ªÀÇ ³»¿ëÀ» »èÁ¦ ÇÒ°ÍÀÔ´Ï´Ù . ±×·¡µµ Á¢¼ÓÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "Bir dosya baðlantýsý, þu anki bölüm içeriðini silecek? Baðlantý yine de yapýlsýn mý?";
+};
+InfoBox REG_WRONG_PASSWORD
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ /* ### ACHTUNG: Neuer Text in Resource? Es wurde ein falsches Paßwort eingegeben. : Es wurde ein falsches Passwort gesetzt */
+ Message = "Es wurde ein falsches Passwort eingegeben." ;
+ Message [ English ] = "A wrong password was specified." ;
+ Message [ dutch ] = "Er werd een verkeerd wachtwoord aangegeven" ;
+ Message [ english_us ] = "The password entered is invalid." ;
+ Message [ italian ] = "È stata impostata una password errata" ;
+ Message [ spanish ] = "Se empleó una contraseña falsa." ;
+ Message [ french ] = "Le mot de passe indiqué est incorrect." ;
+ Message [ swedish ] = "Det inmatade lösenordet är felaktigt" ;
+ Message [ danish ] = "Den indtastede adgangskode er forkert." ;
+ Message [ portuguese ] = "A senha especificada está errada." ;
+ Message [ portuguese_brazilian ] = "Es wurde ein falsches Passwort gesetzt" ;
+ Message[ chinese_simplified ] = "ÊäÈëµÄ¿ÚÁî´íÎó¡£";
+ Message[ russian ] = "Ââåäåí íåïðàâèëüíûé ïàðîëü.";
+ Message[ polish ] = "Zosta³o wpisane nieprawid³owe has³o.";
+ Message[ japanese ] = "“ü—Í‚³‚ꂽÊ߽ܰÄÞ‚ª³‚µ‚­‚ ‚è‚Ü‚¹‚ñB";
+ Message[ chinese_traditional ] = "¿é¤Jªº±K½XµL®Ä¡C";
+ Message[ arabic ] = "Êã ÅÏÎÇá ßáãÉ ÓÑ ÛíÑ ÕÍíÍÉ.";
+ Message[ greek ] = "ÅéóáãùãÞ Üêõñïõ êùäéêïý ðñüóâáóçò.";
+ Message[ korean ] = "ÁöÁ¤µÈ Æнº¿öµå°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.";
+ Message[ turkish ] = "Girilen þifre yanlýþ.";
+};
+InfoBox REG_WRONG_PASSWD_REPEAT
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ Message = "Das Passwort wurde nicht gesetzt." ;
+ Message [ English ] = "The password has not been set." ;
+ Message [ portuguese ] = "A senha não foi especificada." ;
+ Message [ english_us ] = "The password has not been set." ;
+ Message [ portuguese_brazilian ] = "Das Paßwort wurde nicht gesetzt." ;
+ Message [ swedish ] = "Lösenordet har inte angivits." ;
+ Message [ danish ] = "Adgangskoden blev ikke indtastet." ;
+ Message [ italian ] = "La password non è stata impostata." ;
+ Message [ spanish ] = "No se ha definido la contraseña." ;
+ Message [ french ] = "Vous n'avez pas saisi de mot de passe !" ;
+ Message [ dutch ] = "Er werd geen wachtwoord gedefinieerd." ;
+ Message[ chinese_simplified ] = "»¹Î´É趨¿ÚÁî¡£";
+ Message[ russian ] = "Ïàðîëü íå óñòàíîâëåí.";
+ Message[ polish ] = "Has³o nie zosta³o wpisane.";
+ Message[ japanese ] = "Ê߽ܰÄÞ‚ªÝ’肳‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ Message[ chinese_traditional ] = "ÁÙ¥¼³]©w±K½X¡C";
+ Message[ arabic ] = "áã íÊã ÅÏÎÇá ßáãÉ ÇáÓÑ.";
+ Message[ greek ] = "Äåí êáèïñßóôçêå êùäéêüò ðñüóâáóçò.";
+ Message[ korean ] = "Æнº¿öµå°¡ ÁöÁ¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Message[ turkish ] = "Þifre belirlenmedi.";
+};
+
+TabDialog DLG_INSERT_SECTION
+{
+ HelpId = HID_INSERT_SECTION_DLG;
+ Text = "Bereich einfügen" ;
+ Text [ English ] = "Insert Sections" ;
+ Text [ norwegian ] = "Insert Sections" ;
+ Text [ italian ] = "Inserisci sezioni" ;
+ Text [ portuguese_brazilian ] = "Inserir Seções" ;
+ Text [ portuguese ] = "Inserir secção" ;
+ Text [ finnish ] = "Lisää osia" ;
+ Text [ danish ] = "Indsæt område" ;
+ Text [ french ] = "Insertion d'une section" ;
+ Text [ swedish ] = "Infoga område" ;
+ Text [ dutch ] = "Bereik invoegen" ;
+ Text [ spanish ] = "Insertar área" ;
+ Text [ english_us ] = "Insert Section" ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_INSERT_SECTION;
+ PageResID = TP_INSERT_SECTION;
+ Text = "Bereich" ;
+ Text [ ENGLISH ] = "Section" ;
+ Text[ english_us ] = "Section";
+ Text[ portuguese ] = "Secção";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ greek ] = "Åíüôçôá";
+ Text[ dutch ] = "Bereik";
+ Text[ french ] = "Section";
+ Text[ spanish ] = "Área";
+ Text[ italian ] = "Sezione";
+ Text[ danish ] = "Område";
+ Text[ swedish ] = "Område";
+ Text[ polish ] = "Obszar";
+ Text[ portuguese_brazilian ] = "Section";
+ Text[ japanese ] = "”͈Í";
+ Text[ korean ] = "±¸¿ª";
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "ÇáäØÇÞ";
+ Text[ turkish ] = "Bölüm";
+ };
+ PageItem
+ {
+ Identifier = TP_COLUMN ;
+ PageResID = TP_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ turkish ] = "Sütun";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ PageResID = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ turkish ] = "Artalan";
+ };
+ PageItem
+ {
+ Identifier = TP_SECTION_FTNENDNOTES ;
+ PageResID = TP_SECTION_FTNENDNOTES ;
+ Text = "Fuß-/Endnoten" ;
+ Text [ ENGLISH ] = "Foot-/Endnotes" ;
+ Text[ english_us ] = "Footnotes/Endnotes";
+ Text[ portuguese ] = "Notas de rodapé/finais";
+ Text[ russian ] = "Îáû÷íûå/Êîíöåâûå ñíîñêè";
+ Text[ greek ] = "Õðïóçìåéþóåéò/Óçìåéþóåéò ôÝëïõò";
+ Text[ dutch ] = "Voet-/eindnoten";
+ Text[ french ] = "Notes de bas de page / de fin";
+ Text[ spanish ] = "Notas al pie/finales";
+ Text[ italian ] = "Note a piè di pagina/di chiusura";
+ Text[ danish ] = "Fod-/slutnoter";
+ Text[ swedish ] = "Fot-/slutnoter";
+ Text[ polish ] = "Przypisy dolne / koñcowe";
+ Text[ portuguese_brazilian ] = "Foot-/Endnotes";
+ Text[ japanese ] = "‹r’/•¶––‹r’";
+ Text[ korean ] = "°¢ÁÖ/¹ÌÁÖ";
+ Text[ chinese_simplified ] = "×¢½ÅºÍβע";
+ Text[ chinese_traditional ] = "ª`¸}©M§Àª`";
+ Text[ arabic ] = "ÍæÇÔí ÓÝáíÉ/ÊÚáíÞÇÊ ÎÊÇãíÉ";
+ Text[ turkish ] = "Dipnot/Sonnot";
+ };
+ };
+ };
+ String ST_INSERT
+ {
+ Text = "Einfügen" ;
+ Text [ English ] = "~Insert" ;
+ Text [ norwegian ] = "~Insert" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "~Inserir" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text [ finnish ] = "~Lisää" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ french ] = "Insérer" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ english_us ] = "Insert" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ };
+ Text[ russian ] = "Âñòàâèòü îáëàñòü";
+ Text[ greek ] = "ÐñïóèÞêç ôïìÝá";
+ Text[ polish ] = "Wstaw obszar";
+ Text[ japanese ] = "”͈͂̑}“ü";
+ Text[ korean ] = "±¸¿ª»ðÀÔ";
+ Text[ chinese_simplified ] = "²åÈëÇøÓò";
+ Text[ chinese_traditional ] = "´¡¤J°Ï°ì";
+ Text[ arabic ] = "ÅÏÑÇÌ äØÇÞ";
+ Text[ turkish ] = "Bölüm ekle";
+};
+
+TabPage TP_INSERT_SECTION
+{
+ HelpID = HID_INSERT_SECTION_PAGE;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ ComboBox ED_RNAME
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 66 , 104 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ SORT = TRUE ;
+ };
+ GroupBox GB_NEW_SECTION
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 78 , 129 ) ;
+ Text = "Neuer Bereich" ;
+ Text [ English ] = "New section" ;
+ Text [ english_us ] = "New section" ;
+ Text [ italian ] = "Nuova area" ;
+ Text [ spanish ] = "Nueva área" ;
+ Text [ french ] = "Nouvelle section" ;
+ Text [ dutch ] = "Nieuw bereik" ;
+ Text [ swedish ] = "Nytt område" ;
+ Text [ danish ] = "Nyt område" ;
+ Text [ portuguese_brazilian ] = "Neuer Bereich" ;
+ Text [ portuguese ] = "Nova secção" ;
+ Text[ chinese_simplified ] = "ÐÂÇøÓò";
+ Text[ russian ] = "Íîâàÿ îáëàñòü";
+ Text[ polish ] = "Nowy obszar";
+ Text[ japanese ] = "V‚µ‚¢”͈Í";
+ Text[ chinese_traditional ] = "·s¼W°Ï°ì";
+ Text[ arabic ] = "äØÇÞ ÌÏíÏ";
+ Text[ greek ] = "ÍÝïò ôïìÝáò";
+ Text[ korean ] = "»õ ±¸¿ª";
+ Text[ turkish ] = "Yeni bölüm";
+ };
+ CheckBox CB_PROTECT
+ {
+ Pos = MAP_APPFONT ( 96 , 17 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "~Geschützt" ;
+ Text [ English ] = "Pro~tected" ;
+ Text [ norwegian ] = "Pro~tected" ;
+ Text [ italian ] = "Pro~tetta" ;
+ Text [ portuguese_brazilian ] = "Pro~tegido" ;
+ Text [ portuguese ] = "Pro~teger" ;
+ Text [ finnish ] = "~Suojattu" ;
+ Text [ danish ] = "Beskyttet" ;
+ Text [ french ] = "~Protégé" ;
+ Text [ swedish ] = "~Skyddat" ;
+ Text [ dutch ] = "~Beveiligd" ;
+ Text [ spanish ] = "~Protegida" ;
+ Text [ english_us ] = "~Protected" ;
+ Text[ chinese_simplified ] = "Êܱ£»¤µÄ(~P)";
+ Text[ russian ] = "Çàùèùåíî";
+ Text[ polish ] = "Chroniony";
+ Text[ japanese ] = "•ÛŒì‚³‚ꂽ(~P)";
+ Text[ chinese_traditional ] = "¨ü«OÅ@(~P)";
+ Text[ arabic ] = "ãÍãí";
+ Text[ language_user1 ] = "(ÄÄ) ÐñïóôáôåõìÝíï; - - - -";
+ Text[ greek ] = "Ðñïóôáôåõüìåíï";
+ Text[ korean ] = "º¸È£(~P)";
+ Text[ turkish ] = "Korumalý";
+ };
+ CheckBox CB_HIDE
+ {
+ Pos = MAP_APPFONT ( 96 , 31 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ CB_HIDE_TEXT
+ };
+ CheckBox CB_CONDITION
+ {
+ Pos = MAP_APPFONT ( 102 , 44 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ Disable = TRUE ;
+ CB_CONDITION_TEXT
+ };
+ Edit ED_CONDITION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 185 , 43 ) ;
+ Size = MAP_APPFONT ( 68 , 12 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ };
+ CheckBox CB_FILE
+ {
+ Pos = MAP_APPFONT ( 96 , 73 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ TabStop = TRUE ;
+ CB_FILE_TEXT
+ };
+ CheckBox CB_DDE
+ {
+ Pos = MAP_APPFONT ( 157 , 73 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Disable = TRUE ;
+ CB_DDE_TEXT
+ };
+ FixedText FT_DDE
+ {
+ Pos = MAP_APPFONT ( 111 , 85 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Hide = TRUE ;
+ FT_DDE_TEXT
+ };
+ FixedText FT_FILE
+ {
+ Pos = MAP_APPFONT ( 111 , 85 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Disable = TRUE ;
+ FT_FILE_TEXT
+ };
+ Edit ED_FILE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 111 , 97 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_FILE
+ {
+ Pos = MAP_APPFONT ( 204 , 97 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ PB_FILE_TEXT
+ };
+ FixedText FT_SUBREG
+ {
+ Pos = MAP_APPFONT ( 111 , 113 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Disable = TRUE ;
+ FT_SUBREG_TEXT
+ };
+ ComboBox LB_SUBREG
+ {
+ Pos = MAP_APPFONT ( 142 , 112 ) ;
+ Size = MAP_APPFONT ( 53 , 50 ) ;
+ DropDown = TRUE ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ };
+
+ GroupBox GB_NEW_OPTIONS
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 90 , 3 ) ;
+ Size = MAP_APPFONT ( 167 , 129 ) ;
+ GB_OPTIONS_TEXT
+ };
+};
+
+TabDialog DLG_SECTION_PROPERTIES
+{
+ HelpId = HID_SECTION_PROPERTIES_DLG;
+ Text = "Optionen" ;
+ Text [ English ] = "Options" ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_COLUMN ;
+ PageResID = TP_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ turkish ] = "Sütun";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ PageResID = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ turkish ] = "Artalan";
+ };
+ PageItem
+ {
+ Identifier = TP_SECTION_FTNENDNOTES ;
+ PageResID = TP_SECTION_FTNENDNOTES ;
+ Text = "Fuß-/Endnoten" ;
+ Text [ ENGLISH ] = "Foot-/Endnotes" ;
+ Text[ english_us ] = "Footnotes/Endnotes";
+ Text[ portuguese ] = "Notas de rodapé/finais";
+ Text[ russian ] = "Îáû÷íûå/Êîíöåâûå ñíîñêè";
+ Text[ greek ] = "Õðïóçìåéþóåéò/Óçìåéþóåéò ôÝëïõò";
+ Text[ dutch ] = "Voet-/eindnoten";
+ Text[ french ] = "Notes de bas de page / de fin";
+ Text[ spanish ] = "Notas al pie/finales";
+ Text[ italian ] = "Note a piè di pagina/di chiusura";
+ Text[ danish ] = "Fod-/slutnoter";
+ Text[ swedish ] = "Fot-/slutnoter";
+ Text[ polish ] = "Przypisy dolne / koñcowe";
+ Text[ portuguese_brazilian ] = "Foot-/Endnotes";
+ Text[ japanese ] = "‹r’/•¶––‹r’";
+ Text[ korean ] = "°¢ÁÖ/¹ÌÁÖ";
+ Text[ chinese_simplified ] = "×¢½ÅºÍβע";
+ Text[ chinese_traditional ] = "ª`¸}©M§Àª`";
+ Text[ arabic ] = "ÍæÇÔí ÓÝáíÉ/ÊÚáíÞÇÊ ÎÊÇãíÉ";
+ Text[ turkish ] = "Dipnot/Sonnot";
+ };
+ };
+ };
+ Text[ english_us ] = "Options";
+ Text[ portuguese ] = "Opções";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ dutch ] = "Opties";
+ Text[ french ] = "Options";
+ Text[ spanish ] = "Opciones";
+ Text[ italian ] = "Opzioni";
+ Text[ danish ] = "Indstillinger";
+ Text[ swedish ] = "Alternativ";
+ Text[ polish ] = "Opcje";
+ Text[ portuguese_brazilian ] = "Options";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÇáÎíÇÑÇÊ";
+ Text[ turkish ] = "Seçenekler";
+};
+
+
+TabPage TP_SECTION_FTNENDNOTES
+{
+ HelpID = HID_SECTION_FTNENDNOTES_PAGE;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_FTN
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 59 ) ;
+ Text = "Fußnoten" ;
+ Text [ English ] = "Footnotes" ;
+ Text[ english_us ] = "Footnotes";
+ Text[ portuguese ] = "Notas de rodapé";
+ Text[ russian ] = "Ñíîñêè";
+ Text[ greek ] = "Õðïóçìåéþóåéò";
+ Text[ dutch ] = "Voetnoten";
+ Text[ french ] = "Notes de bas de page";
+ Text[ spanish ] = "Notas al pie";
+ Text[ italian ] = "Note a piè pagina";
+ Text[ danish ] = "Fodnoter";
+ Text[ swedish ] = "Fotnoter";
+ Text[ polish ] = "Przypisy dolne";
+ Text[ portuguese_brazilian ] = "Footnotes";
+ Text[ japanese ] = "‹r’";
+ Text[ korean ] = "°¢ÁÖ";
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ chinese_traditional ] = "ª`¸}";
+ Text[ arabic ] = "ÍæÇÔí ÓÝáíÉ";
+ Text[ turkish ] = "Altbilgi";
+ };
+ CheckBox CB_FTN_AT_TXTEND
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "am ~Textende sammeln" ;
+ Text [ English ] = "Collect at end of text" ;
+ Text[ english_us ] = "Collec~t at end of text";
+ Text[ portuguese ] = "Agrupar no ~final do texto";
+ Text[ russian ] = "Ñîáðàòü â êîíöå òåêñòà";
+ Text[ greek ] = "ÓõãêÝíôñùóç óôï ôÝëïò ôïõ ~êåéìÝíïõ";
+ Text[ dutch ] = "Aan ~teksteinde verzamelen";
+ Text[ french ] = "Regrouper en ~fin de texte";
+ Text[ spanish ] = "~recoger al final del texto";
+ Text[ italian ] = "Raccogli a fine ~testo";
+ Text[ danish ] = "saml ved tekstens slutning";
+ Text[ swedish ] = "samla vid ~textslut";
+ Text[ polish ] = "zbierz na koñcu tekstu";
+ Text[ portuguese_brazilian ] = "Collect at end of text";
+ Text[ japanese ] = "•¶‘––‚É‘}“ü(~T)";
+ Text[ korean ] = "ÅؽºÆ® ³¡¿¡ ¼öÁý(~T)";
+ Text[ chinese_simplified ] = "¼¯ÖÐÔÚÎı¾Î²¶Ë";
+ Text[ chinese_traditional ] = "©w¦ì¦b¤º¤å¥½ºÝ";
+ Text[ arabic ] = "ÊÌãíÚ ÚäÏ äåÇíÉ ÇáäÕ";
+
+ Text[ turkish ] = "Metin sonunda topla";
+ };
+ CheckBox CB_FTN_NUM
+ {
+ Pos = MAP_APPFONT ( 12 , 29 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~Nummer neu starten" ;
+ Text [ English ] = "Restart number" ;
+ Text[ english_us ] = "~Restart numbering";
+ Text[ portuguese ] = "~Reiniciar numeração";
+ Text[ russian ] = "Ïåðåçàïóñê íóìåðàöèè";
+ Text[ greek ] = "Åðáíåêêß~íçóç áñéèìïý";
+ Text[ dutch ] = "~Nieuwe nummering";
+ Text[ french ] = "Numérotation ~séparée";
+ Text[ spanish ] = "reiniciar nu~meración";
+ Text[ italian ] = "Avvia nuovo ~numero";
+ Text[ danish ] = "Uafhængig nummerering forfra";
+ Text[ swedish ] = "oberoende ~numrering";
+ Text[ polish ] = "Uruchom ponownie numer";
+ Text[ portuguese_brazilian ] = "own number sequence";
+ Text[ japanese ] = "”Ô†‚ðV‚µ‚­Žn‚ß‚é(~R)";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â ´Ù½Ã ½ÃÀÛ(~R)";
+ Text[ chinese_simplified ] = "ÖØпªÊ¼±àºÅ";
+ Text[ chinese_traditional ] = "­«·s½s¸¹";
+ Text[ arabic ] = "ÅÚÇÏÉ ÈÏÁ ÇáÊÑÞíã";
+ Text[ turkish ] = "Num. yeniden baþlat";
+ };
+ FixedText FT_FTN_OFFSET
+ {
+ Pos = MAP_APPFONT ( 85 , 29 ) ;
+ Size = MAP_APPFONT ( 36 , 8 ) ;
+ Text = "~Beginn bei" ;
+ Text [ ENGLISH ] = "~Start at" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Start at" ;
+ Text [ italian ] = "Inizia con" ;
+ Text [ spanish ] = "Comen~zar en" ;
+ Text [ french ] = "À partir ~de" ;
+ Text [ dutch ] = "~Begin met" ;
+ Text [ swedish ] = "~Börja med" ;
+ Text [ danish ] = "Begynd med" ;
+ Text [ portuguese_brazilian ] = "Be~ginn bei" ;
+ Text [ portuguese ] = "~Iniciar em" ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)";
+ Text[ russian ] = "Íà÷àòü ñ";
+ Text[ polish ] = "Zacznij od";
+ Text[ japanese ] = "ŠJŽn•¶––‹r’”Ô†(~S)";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)";
+ Text[ arabic ] = "ÇáÈÏÁ ÈÜ";
+ Text[ greek ] = "ÈÝóç åêêßíçóçò";
+ Text[ korean ] = "¿¡¼­ ½ÃÀÛ(~S)";
+ Text[ turkish ] = "Baþlang~ýç";
+ };
+ NumericField FLD_FTN_OFFSET
+ {
+ Pos = MAP_APPFONT ( 136 , 29 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ Last = 9999 ;
+ Maximum = 9999 ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ CheckBox CB_FTN_NUM_FMT
+ {
+ Pos = MAP_APPFONT ( 12 , 44 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "eigenes ~Format" ;
+ Text [ English ] = "Own format" ;
+ Text[ english_us ] = "Custom ~format";
+ Text[ portuguese ] = "~Formato personalizado";
+ Text[ russian ] = "ñîáñòâåííûé ôîðìàò";
+ Text[ greek ] = "ÐñïóùðéêÞ ìïñ~öÞ";
+ Text[ dutch ] = "Eigen ~formaat";
+ Text[ french ] = "~Format personnalisé";
+ Text[ spanish ] = "for~mato propio";
+ Text[ italian ] = "~Formato proprio";
+ Text[ danish ] = "eget format";
+ Text[ swedish ] = "eget format";
+ Text[ polish ] = "Format w³asny";
+ Text[ portuguese_brazilian ] = "Own format";
+ Text[ japanese ] = "”CˆÓ‚Ì‘Ž®(~F)";
+ Text[ korean ] = "°³ÀÎ ¼­½Ä(~F)";
+ Text[ chinese_simplified ] = "×Ô¶¨µÄ¸ñʽ";
+ Text[ chinese_traditional ] = "¦Û­q®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÎÇÕ";
+ Text[ turkish ] = "Özgün format";
+ };
+ FixedText FT_FTN_PREFIX
+ {
+ Pos = MAP_APPFONT ( 85 , 44 ) ;
+ Size = MAP_APPFONT ( 25 , 10 ) ;
+ Text = "~Davor" ;
+ Text [ ENGLISH ] = "Before" ;
+ Text [ norwegian ] = "Før" ;
+ Text [ italian ] = "~Davanti" ;
+ Text [ portuguese_brazilian ] = "Antes" ;
+ Text [ portuguese ] = "An~tes" ;
+ Text [ finnish ] = "Edellä" ;
+ Text [ danish ] = "Før" ;
+ Text [ french ] = "A~vant" ;
+ Text [ swedish ] = "~Före" ;
+ Text [ dutch ] = "~Ervoor" ;
+ Text [ spanish ] = "~Delante" ;
+ Text [ english_us ] = "Be~fore" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~F)";
+ Text[ russian ] = "Äî";
+ Text[ polish ] = "Przed";
+ Text[ japanese ] = "”Ô†‘O(~F)";
+ Text[ chinese_traditional ] = "¤§«e(~F)";
+ Text[ arabic ] = "ÞÈá";
+ Text[ greek ] = "Ðñéí áðü";
+ Text[ korean ] = "Àü¿¡(~F)";
+ Text[ turkish ] = "Önünde";
+ };
+ Edit ED_FTN_PREFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 113 , 44 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+ ListBox LB_FTN_NUMVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 136 , 44 ) ;
+ Size = MAP_APPFONT ( 62 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ "A, B, C" ;
+ "a, b, c" ;
+ "I, II, III" ;
+ "i, ii, iii" ;
+ "1, 2, 3" ;
+ "A, .., AA, .., AAA" ;
+ "a, .., aa, .., aaa" ;
+ };
+ };
+ FixedText FT_FTN_SUFFIX
+ {
+ Pos = MAP_APPFONT ( 201 , 44 ) ;
+ Size = MAP_APPFONT ( 25 , 10 ) ;
+ Text = "Dah~inter" ;
+ Text [ ENGLISH ] = "Behind" ;
+ Text [ norwegian ] = "Bak" ;
+ Text [ italian ] = "D~ietro" ;
+ Text [ portuguese_brazilian ] = "Atrás" ;
+ Text [ portuguese ] = "A~trás" ;
+ Text [ finnish ] = "Jäljessä" ;
+ Text [ danish ] = "Efter" ;
+ Text [ french ] = "A~près" ;
+ Text [ swedish ] = "~Bakom" ;
+ Text [ dutch ] = "E~rachter" ;
+ Text [ spanish ] = "D~etrás" ;
+ Text [ english_us ] = "Aft~er" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ö®ºó(~E)";
+ Text[ russian ] = "Ïîñëå";
+ Text[ polish ] = "Za";
+ Text[ japanese ] = "”Ô†Œã(~E)";
+ Text[ chinese_traditional ] = "¤§«á(~E)";
+ Text[ arabic ] = "ÈÚÏ";
+ Text[ greek ] = "ÌåôÜ áðü";
+ Text[ korean ] = "ÈÄ¿¡(~E)";
+ Text[ turkish ] = "Önünde";
+ };
+ Edit ED_FTN_SUFFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 229 , 44 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+
+
+ GroupBox GB_END
+ {
+ OutputSize = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 65 ) ;
+ Size = MAP_APPFONT ( 248 , 59 ) ;
+ Text = "Endnoten" ;
+ Text [ English ] = "Endnotes" ;
+ Text[ english_us ] = "Endnotes";
+ Text[ portuguese ] = "Notas finais";
+ Text[ russian ] = "Êîíöåâûå ñíîñêè";
+ Text[ greek ] = "Óçìåéþóåéò ôÝëïõò";
+ Text[ dutch ] = "Eindnoten";
+ Text[ french ] = "Notes de fin";
+ Text[ spanish ] = "Notas finales";
+ Text[ italian ] = "Note di chiusura";
+ Text[ danish ] = "Slutnoter";
+ Text[ swedish ] = "Slutnoter";
+ Text[ polish ] = "Przypisy koñcowe";
+ Text[ portuguese_brazilian ] = "Endnotes";
+ Text[ japanese ] = "•¶––‹r’";
+ Text[ korean ] = "¹ÌÁÖ";
+ Text[ chinese_simplified ] = "βע";
+ Text[ chinese_traditional ] = "§Àª`";
+ Text[ arabic ] = "ÊÚáíÞÇÊ ÎÊÇãíÉ";
+ Text[ turkish ] = "Sonnot";
+ };
+ CheckBox CB_END_AT_TXTEND
+ {
+ Pos = MAP_APPFONT ( 12 , 76 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~am Bereichsende sammeln" ;
+ Text[ english ] = "Collect at end of section";
+ Text[ english_us ] = "C~ollect at end of section";
+ Text[ portuguese ] = "Agrupar no ~final da secção";
+ Text[ russian ] = "Ñîáðàòü â êîíöå îáëàñòè";
+ Text[ greek ] = "ÓõãêÝíôñùóç óôï ôÝëïò ôïõ ~ôìÞìáôïò";
+ Text[ dutch ] = "aan ~bereikseinde verzamelen";
+ Text[ french ] = "Regrouper en fin de ~section";
+ Text[ spanish ] = "recoger al fi~nal del área";
+ Text[ italian ] = "Raccogli a fine sezione";
+ Text[ danish ] = "saml ved områdets slutning";
+ Text[ swedish ] = "samla vid ~områdets slut";
+ Text[ polish ] = "zbierz na koñcu obszaru";
+ Text[ portuguese_brazilian ] = "Collect at end of section";
+ Text[ japanese ] = "”͈͖–‚É‘}“ü(~O)";
+ Text[ korean ] = "±¸¿ª ³¡¿¡ ¼öÁý(~O)";
+ Text[ chinese_simplified ] = "¼¯ÖÐÔÚÇøÓòβ¶Ë(~O)";
+ Text[ chinese_traditional ] = "¦b°Ï°ì§ÀºÝ¦¬¶°";
+ Text[ arabic ] = "ÊÌãíÚ ÚäÏ äåÇíÉ ÇáäØÇÞ";
+ Text[ turkish ] = "Bölüm sonunda topla";
+ };
+ CheckBox CB_END_NUM
+ {
+ Pos = MAP_APPFONT ( 12 , 91 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "Nummer neu ~starten" ;
+ Text [ English ] = "Restart number" ;
+ Text[ english_us ] = "~Restart numbering";
+ Text[ portuguese ] = "~Reiniciar numeração";
+ Text[ russian ] = "Ïåðåçàïóñê íóìåðàöèè";
+ Text[ greek ] = "Åðáíåêêßíç~óç áñéèìïý";
+ Text[ dutch ] = "Nieuwe n~ummering";
+ Text[ french ] = "Numérotation ~séparée";
+ Text[ spanish ] = "rei~niciar numeración";
+ Text[ italian ] = "Avvia nuovo numero";
+ Text[ danish ] = "Uafhængig nummerering forfra";
+ Text[ swedish ] = "oberoende ~numrering";
+ Text[ polish ] = "Uruchom ponownie numer";
+ Text[ portuguese_brazilian ] = "own number sequence";
+ Text[ japanese ] = "”Ô†‚ðV‚µ‚­Žn‚ß‚é(~R)";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â ´Ù½Ã ½ÃÀÛ(~R)";
+ Text[ chinese_simplified ] = "ÖØпªÊ¼±àºÅ";
+ Text[ chinese_traditional ] = "­«·s½s¸¹";
+ Text[ arabic ] = "ÅÚÇÏÉ ÈÏÁ ÇáÊÑÞíã";
+ Text[ turkish ] = "Num. yeniden baþlat";
+ };
+ FixedText FT_END_OFFSET
+ {
+ Pos = MAP_APPFONT ( 85 , 91 ) ;
+ Size = MAP_APPFONT ( 36 , 8 ) ;
+ Text = "Be~ginn bei" ;
+ Text [ ENGLISH ] = "~Start at" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Start at" ;
+ Text [ italian ] = "Inizia con" ;
+ Text [ spanish ] = "Comen~zar en" ;
+ Text [ french ] = "À partir ~de" ;
+ Text [ dutch ] = "~Begin met" ;
+ Text [ swedish ] = "~Börja vid" ;
+ Text [ danish ] = "Begynd med" ;
+ Text [ portuguese_brazilian ] = "Be~ginn bei" ;
+ Text [ portuguese ] = "~Iniciar em" ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)";
+ Text[ russian ] = "Íà÷àòü ñ";
+ Text[ polish ] = "Zacznij od";
+ Text[ japanese ] = "ŠJŽn•¶––‹r’”Ô†(~S)";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)";
+ Text[ arabic ] = "ÇáÈÏÁ ÈÜ";
+ Text[ greek ] = "ÈÝóç åêêßíçóçò";
+ Text[ korean ] = "¿¡¼­ ½ÃÀÛ(~S)";
+ Text[ turkish ] = "Baþlang~ýç";
+ };
+ NumericField FLD_END_OFFSET
+ {
+ Pos = MAP_APPFONT ( 136 , 91 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ Last = 9999 ;
+ Maximum = 9999 ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ CheckBox CB_END_NUM_FMT
+ {
+ Pos = MAP_APPFONT ( 12 , 106 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~eigenes Format" ;
+ Text [ English ] = "Own format" ;
+ Text[ english_us ] = "Custom format";
+ Text[ portuguese ] = "Formato ~personalizado";
+ Text[ russian ] = "ñîáñòâåííûé ôîðìàò";
+ Text[ greek ] = "ÐñïóùðéêÞ ìïñöÞ";
+ Text[ dutch ] = "~Eigen formaat";
+ Text[ french ] = "Format ~personnalisé";
+ Text[ spanish ] = "for~mato propio";
+ Text[ italian ] = "Formato proprio";
+ Text[ danish ] = "eget format";
+ Text[ swedish ] = "~eget format";
+ Text[ polish ] = "Format w³asny";
+ Text[ portuguese_brazilian ] = "Own format";
+ Text[ japanese ] = "”CˆÓ‚Ì‘Ž®(~W)";
+ Text[ korean ] = "ÀÚü ¼­½Ä(~W)";
+ Text[ chinese_simplified ] = "×Ô¶¨µÄ¸ñʽ";
+ Text[ chinese_traditional ] = "¦Û­q®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÎÇÕ";
+ Text[ turkish ] = "Özgün format";
+ };
+
+ FixedText FT_END_PREFIX
+ {
+ Pos = MAP_APPFONT ( 85 , 106 ) ;
+ Size = MAP_APPFONT ( 25 , 10 ) ;
+ Text = "Da~vor" ;
+ Text [ ENGLISH ] = "Before" ;
+ Text [ norwegian ] = "Før" ;
+ Text [ italian ] = "Da~vanti" ;
+ Text [ portuguese_brazilian ] = "Antes" ;
+ Text [ portuguese ] = "An~tes" ;
+ Text [ finnish ] = "Edellä" ;
+ Text [ danish ] = "Før" ;
+ Text [ french ] = "A~vant" ;
+ Text [ swedish ] = "~Före" ;
+ Text [ dutch ] = "~Ervoor" ;
+ Text [ spanish ] = "~Delante" ;
+ Text [ english_us ] = "Be~fore" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~F)";
+ Text[ russian ] = "Äî";
+ Text[ polish ] = "Przed";
+ Text[ japanese ] = "”Ô†‘O(~F)";
+ Text[ chinese_traditional ] = "¤§«e(~F)";
+ Text[ arabic ] = "ÞÈá";
+ Text[ greek ] = "Ðñéí áðü";
+ Text[ korean ] = "¾Õ¿¡(~F)";
+ Text[ turkish ] = "Önünde";
+ };
+ Edit ED_END_PREFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 113 , 106 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+ ListBox LB_END_NUMVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 136 , 106 ) ;
+ Size = MAP_APPFONT ( 62 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ "A, B, C" ;
+ "a, b, c" ;
+ "I, II, III" ;
+ "i, ii, iii" ;
+ "1, 2, 3" ;
+ "A, .., AA, .., AAA" ;
+ "a, .., aa, .., aaa" ;
+ };
+ };
+ FixedText FT_END_SUFFIX
+ {
+ Pos = MAP_APPFONT ( 201 , 106 ) ;
+ Size = MAP_APPFONT ( 25 , 10 ) ;
+ Text = "Dahinte~r" ;
+ Text [ ENGLISH ] = "Behind" ;
+ Text [ norwegian ] = "Bak" ;
+ Text [ italian ] = "Dietro" ;
+ Text [ portuguese_brazilian ] = "Atrás" ;
+ Text [ portuguese ] = "A~trás" ;
+ Text [ finnish ] = "Jäljessä" ;
+ Text [ danish ] = "Efter" ;
+ Text [ french ] = "A~près" ;
+ Text [ swedish ] = "~Bakom" ;
+ Text [ dutch ] = "E~rachter" ;
+ Text [ spanish ] = "D~etrás" ;
+ Text [ english_us ] = "Aft~er" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ö®ºó(~E)";
+ Text[ russian ] = "Ïîñëå";
+ Text[ polish ] = "Za";
+ Text[ japanese ] = "”Ô†Œã(~E)";
+ Text[ chinese_traditional ] = "¤§«á(~E)";
+ Text[ arabic ] = "ÈÚÏ";
+ Text[ greek ] = "ÌåôÜ áðü";
+ Text[ korean ] = "ÈÄ¿¡(~E)";
+ Text[ turkish ] = "Arkasýnda";
+ };
+ Edit ED_END_SUFFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 229 , 106 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+};
diff --git a/sw/source/ui/dochdl/dochdl.src b/sw/source/ui/dochdl/dochdl.src
new file mode 100644
index 000000000000..c708a22da28a
--- /dev/null
+++ b/sw/source/ui/dochdl/dochdl.src
@@ -0,0 +1,431 @@
+/*************************************************************************
+ *
+ * $RCSfile: dochdl.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#include "dochdl.hrc"
+#include "globals.hrc"
+
+
+String STR_NOGLOS1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Kürzel ' : AutoText zum Kürzel '' */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Kürzel ' : AutoText zum Kürzel '' */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Kürzel ' : AutoText zum K³rzel ' */
+ TEXT = "AutoText zum Kürzel '" ;
+ TEXT [ English ] = "AutoText for Short Name '" ;
+ TEXT [ norwegian ] = "AutoText for Short Name '" ;
+ TEXT [ italian ] = "Testo automatico per la sigla" ;
+ TEXT [ portuguese_brazilian ] = "Texto Automático para Abreviação" ;
+ TEXT [ portuguese ] = "AutoTexto para abreviatura '" ;
+ TEXT [ finnish ] = "Automaattitekstiä lyhenteelle '" ;
+ TEXT [ danish ] = "AutoTekst til genvej '" ;
+ TEXT [ french ] = "AutoTexte pour raccourci '" ;
+ TEXT [ swedish ] = "AutoText till genvägen '" ;
+ TEXT [ dutch ] = "AutoTekst voor afkortingen'" ;
+ TEXT [ spanish ] = "AutoTexto para la abreviatura '" ;
+ TEXT [ english_us ] = "AutoText for Shortcut '" ;
+ TEXT[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯µÄËõд '";
+ TEXT[ russian ] = "Àâòîòåêñò ê ñîêðàùåíèþ '";
+ TEXT[ polish ] = "Autotekst do skrótu '";
+ TEXT[ japanese ] = "“ü—ÍŽx‰‡‚̼®°Ä¶¯Ä '";
+ TEXT[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°ªºÁY¼g '";
+ TEXT[ arabic ] = "äÕ ÊáÞÇÆí ááÇÎÊÕÇÑ '";
+ TEXT[ dutch ] = "AutoTekst voor afkortingen'";
+ TEXT[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯µÄËõд '";
+ TEXT[ greek ] = "Áõôïêåßìåíï ðñïò ôç óõíôüìåõóç '";
+ TEXT[ korean ] = "ÀÚµ¿ ÅؽºÆ® ¹Ù·Î°¡±â '";
+ TEXT[ turkish ] = "Otomatik metin kýsaltmasý '";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NOGLOS2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ TEXT = "' nicht gefunden." ;
+ TEXT [ English ] = "' not found." ;
+ TEXT [ norwegian ] = "' not found." ;
+ TEXT [ italian ] = "' non trovato." ;
+ TEXT [ portuguese_brazilian ] = "' não encontrado." ;
+ TEXT [ portuguese ] = "' não localizado." ;
+ TEXT [ finnish ] = "' ei löydy." ;
+ TEXT [ danish ] = "' blev ikke fundet." ;
+ TEXT [ french ] = "' introuvable." ;
+ TEXT [ swedish ] = "' hittades inte." ;
+ TEXT [ dutch ] = "' niet gevonden." ;
+ TEXT [ spanish ] = "' no se encontró." ;
+ TEXT [ english_us ] = "' not found." ;
+ TEXT[ chinese_simplified ] = "' ûÓб»ÕÒµ½¡£";
+ TEXT[ russian ] = "' íå íàéäåí.";
+ TEXT[ polish ] = "' nie znaleziono.";
+ TEXT[ japanese ] = "' ‚ªŒ©‚‚©‚è‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "' ¨S¦³³Q§ä¨ì¡C";
+ TEXT[ arabic ] = "' ÛíÑ ãæÌæÏ.";
+ TEXT[ dutch ] = "' niet gevonden.";
+ TEXT[ chinese_simplified ] = "' ûÓб»ÕÒµ½¡£";
+ TEXT[ greek ] = "' äåí âñÝèçêå.";
+ TEXT[ korean ] = "' °¡ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ TEXT[ turkish ] = "' bulunamadý.";
+ TEXT[ language_user1 ] = " ";
+};
+
+String STR_NO_TABLE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Zu diesem Zeitpunkt kann keine Tabelle eingefügt werden. : Zu diesem Zeitpunkt kann keine Tabelle eingef³gt werden. */
+ Text = "Zu diesem Zeitpunkt kann keine Tabelle eingefügt werden." ;
+ Text [ English ] = "Inserting a table is impossible now." ;
+ Text [ norwegian ] = "Inserting a table is impossible now." ;
+ Text [ italian ] = "Adesso è impossibile inserire una tabella." ;
+ Text [ portuguese_brazilian ] = "Inserir a tabela é agora impossível." ;
+ Text [ portuguese ] = "De momento não é possível inserir a tabela." ;
+ Text [ finnish ] = "Taulukon lisääminen ei ole nyt mahdollista." ;
+ Text [ danish ] = "Det er for tiden ikke muligt at indsætte en tabel" ;
+ Text [ french ] = "Impossible d'insérer un tableau maintenant." ;
+ Text [ swedish ] = "En tabell kan inte infogas vid denna tidpunkt." ;
+ Text [ dutch ] = "Tabel kan op dit ogenblik niet worden ingevoegd." ;
+ Text [ spanish ] = "Actualmente no se puede insertar ninguna tabla." ;
+ Text [ english_us ] = "It is currently not possible to insert a table" ;
+ Text[ chinese_simplified ] = "µ±Ç°ÎÞ·¨²åÈëÈκαí¸ñ¡£";
+ Text[ russian ] = "Â íàñòîÿùåå âðåìÿ âñòàâèòü òàáëèöó íåâîçìîæíî.";
+ Text[ polish ] = "W tym momencie nie mo¿e byæ wstawiona tabela.";
+ Text[ japanese ] = "Œ»ÝA•\\‚Ì‘}“ü‚Í‚Å‚«‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "·í«eµLªk´¡¤J¥ô¦óªí®æ¡C";
+ Text[ arabic ] = "ÅÏÑÇÌ ÌÏæá ÛíÑ ããßä ÍÇáíÇð.";
+ Text[ dutch ] = "Tabel kan op dit ogenblik niet worden ingevoegd.";
+ Text[ chinese_simplified ] = "µ±Ç°ÎÞ·¨²åÈëÈκαí¸ñ¡£";
+ Text[ greek ] = "Ðñïò ôï ðáñüí åßíáé áäýíáôïí íá åéóá÷èåß ðßíáêáò.";
+ Text[ korean ] = "Ç¥¸¦ »ðÀÔÇϴ°ÍÀÌ ÇöÀç ºÒ°¡´ÉÇÕ´Ï´Ù.";
+ Text[ turkish ] = "Þu an tablo eklenemiyor.";
+ Text[ language_user1 ] = " ";
+};
+
+
+InfoBox MSG_ERR_INSERT_GLOS
+{
+ MESSAGE = "AutoText konnte nicht angelegt werden." ;
+ MESSAGE [ English ] = "Could not insert AutoText." ;
+ MESSAGE [ norwegian ] = "Could not insert AutoText." ;
+ MESSAGE [ italian ] = "Impossibile creare voce di glossario." ;
+ MESSAGE [ portuguese_brazilian ] = "Não pude inserir Texto Automático." ;
+ MESSAGE [ portuguese ] = "Impossível inserir o AutoTexto." ;
+ MESSAGE [ finnish ] = "Automaattitekstiä ei voi lisätä." ;
+ MESSAGE [ danish ] = "Det var ikke muligt at oprette AutoTeksten." ;
+ MESSAGE [ french ] = "Impossible de créer l'AutoTexte." ;
+ MESSAGE [ swedish ] = "AutoText kunde inte skapas." ;
+ MESSAGE [ dutch ] = "AutoTekst kon niet worden gemaakt" ;
+ MESSAGE [ spanish ] = "No se pudo crear el AutoTexto." ;
+ MESSAGE [ english_us ] = "AutoText could not be created." ;
+ MESSAGE[ chinese_simplified ] = "ÎÞ·¨½¨Á¢×Ô¶¯Í¼Îļ¯¡£";
+ MESSAGE[ russian ] = "Ñîçäàòü àâòîòåêñò íåâîçìîæíî.";
+ MESSAGE[ polish ] = "Autotekst nie móg³ zostaæ utworzony.";
+ MESSAGE[ japanese ] = "“ü—ÍŽx‰‡‚Å‚«‚Ü‚¹‚ñ";
+ MESSAGE[ chinese_traditional ] = "µLªk«Ø¥ß¦Û°Ê¹Ï¤å¶°¡C";
+ MESSAGE[ arabic ] = "ÊÚÐÑ Úãá äÕ ÊáÞÇÆí.";
+ MESSAGE[ dutch ] = "AutoTekst kon niet worden gemaakt";
+ MESSAGE[ chinese_simplified ] = "ÎÞ·¨½¨Á¢×Ô¶¯Í¼Îļ¯¡£";
+ MESSAGE[ greek ] = "Äåí Þôáí äõíáôÞ ç åéóáãùãÞ ÁõôïÊåßìåíï.";
+ MESSAGE[ korean ] = "ÀÚµ¿ ÅؽºÆ®¸¦ »ðÀÔÇÒ ¼ö ¾ø½À´Ï´Ù.";
+ MESSAGE[ turkish ] = "Otomatik metin oluþturulamadý.";
+ MESSAGE[ language_user1 ] = " ";
+};
+
+InfoBox MSG_CLPBRD_FORMAT_ERROR
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Gewünschtes Clipboardformat steht nicht zur Verfügung. : Gew³nschtes Clipboardformat steht nicht zur Verf³gung. */
+ MESSAGE = "Gewünschtes Clipboardformat steht nicht zur Verfügung." ;
+ MESSAGE [ English ] = "Requested clipboard format is not available." ;
+ MESSAGE [ norwegian ] = "Requested clipboard format is not available." ;
+ MESSAGE [ italian ] = "Il formato appunti richiesto non è disponibile." ;
+ MESSAGE [ portuguese_brazilian ] = "Formato solicitado de clipboard não está disponível." ;
+ MESSAGE [ portuguese ] = "Formato da área de transferência solicitado não se encontra disponível." ;
+ MESSAGE [ finnish ] = "Pyydetty leikepöydän muoto ei ole käytettävissä." ;
+ MESSAGE [ danish ] = "Det anmodede udskriftsholderformat er ikke tilgængeligt." ;
+ MESSAGE [ french ] = "Le format de presse-papiers souhaité n'est pas disponible." ;
+ MESSAGE [ swedish ] = "Önskat urklippformat står inte till förfogande." ;
+ MESSAGE [ dutch ] = "Gevraagd clipboardformaat is niet beschikbaar." ;
+ MESSAGE [ spanish ] = "El formato deseado del portapapeles no está disponible." ;
+ MESSAGE [ english_us ] = "Requested clipboard format is not available." ;
+ MESSAGE[ chinese_simplified ] = "ËùÐèÒªµÄ²Ã¼ô°å¸ñʽ²»´æÔÚ¡£";
+ MESSAGE[ russian ] = "Æåëàåìûé ôîðìàò áóôåðà îáìåíà íåäîñòóïåí.";
+ MESSAGE[ polish ] = "Szukany format schowka jest niedostêpny.";
+ MESSAGE[ japanese ] = "Žw’è‚̸دÌßÜ°ÄÞ‘Ž®‚ÍŽg—p‚Å‚«‚Ü‚¹‚ñB";
+ MESSAGE[ chinese_traditional ] = "©Ò»Ý­nªºµô°Åï®æ¦¡¤£¦s¦b¡C";
+ MESSAGE[ arabic ] = "ÊäÓíÞ ÇáÍÇÝÙÉ ÇáãØáæÈ ÛíÑ ãÊæÝÑ.";
+ MESSAGE[ dutch ] = "Gevraagd clipboardformaat is niet beschikbaar.";
+ MESSAGE[ chinese_simplified ] = "ËùÐèÒªµÄ²Ã¼ô°å¸ñʽ²»´æÔÚ¡£";
+ MESSAGE[ greek ] = "Ç æçôïýìåíç ìïñöÞ ôïõ clipboard äåí åßíáé äéáèÝóéìç.";
+ MESSAGE[ korean ] = "¿äûµÈ Ŭ¸³º¸µå ¼­½ÄÀÌ °¡´ÉÇÏÁö ¾Ê½À´Ï´Ù.";
+ MESSAGE[ turkish ] = "Ýstenen pano formatý mevcut deðil.";
+ MESSAGE[ language_user1 ] = " ";
+};
+
+QueryBox MSG_UPDATE_NEW_GLOS_FMT
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_YES ;
+ MESSAGE = "Der Bereich liegt in einem alten Format vor.\nEr muss konvertiert werden, um Änderungen\nspeichern zu können.\nSoll er konvertiert werden?" ;
+ MESSAGE [ English ] = "The file format of the region is out-of-date.\nIt must be converted in order to save modifications.\nDo you want to convert it?" ;
+ MESSAGE [ norwegian ] = "The file format of the region is out-of-date.\nIt must be converted in order to save modifications.\nDo you want to convert it?" ;
+ MESSAGE [ italian ] = "Il formato dell'area è vecchio.\nÈ necessario convertirlo per poter\nsalvare le modifiche apportate\nVolete convertirlo?" ;
+ MESSAGE [ portuguese_brazilian ] = "O formato de arquivo da regiao está desatualizado.\nDeve ser convertido para que se possa gravar modificações.\nDeseja convertê-lo?" ;
+ MESSAGE [ portuguese ] = "O formato do ficheiro está desactualizado.\nDeve ser convertido para que se possam\n guardar as respectivas alterações.\nDeseja convertê-lo?" ;
+ MESSAGE [ finnish ] = "Alueen tiedostomuoto ei ole ajan tasalla.\nSe on muunnettava, jotta muutokset voitaisiin tallentaa.\nHaluatko muuntaa sen?" ;
+ MESSAGE [ danish ] = "Områdets filformat er forældet.\nDet skal konverteres, for at ændringerne kan gemmes.\nVil du konvertere det?" ;
+ MESSAGE [ french ] = "La section se trouve dans un format périmé.\nVous ne pourrrez enregistrer aucune modification \n à moins de le convertir.\nVoulez-vous procéder à la conversion sans plus attendre ?" ;
+ MESSAGE [ swedish ] = "Området har ett gammalt format.\nDet måste konverteras för att\nändringar skall kunna sparas.\nVill Du konvertera det?" ;
+ MESSAGE [ dutch ] = "Het bereik heeft een verouderd formaat.\nHet moet worden geconverteerd om de wijzigingen\nte kunnen opslaan.\nWilt u de conversie nu uitvoeren?" ;
+ MESSAGE [ spanish ] = "El formato del área no es actual.\nHay que convertirlo\npara poder guardar las modificaciones.\n¿Desea usted convertirlo?" ;
+ MESSAGE [ english_us ] = "The section format is outdated.\nIt needs to be converted so that changes\ncan be saved.\nShould it be converted now?" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Der Bereich liegt in einem alten Format vor.\nEr muß konvertiert werden, um Änderungen\nspeichern zu können.\nSoll er konvertiert werden? : Der Bereich liegt in einem alten Format vor.\nEr mu˜ konvertiert werden, um Žnderungen\nspeichern zu k÷nnen.\nSoll er konvertiert werden? */
+ Message = "Der Bereich liegt in einem alten Format vor.\nEr muss konvertiert werden, um Änderungen\nspeichern zu können.\nSoll er konvertiert werden?" ;
+ Message[ chinese_simplified ] = "Õâ¸öÇøÓò¾ßÓеĸñʽÊǾɵġ£\nÒª´æÅ̸ü¸Ä¾Í±ØÐë½øÐиñʽת»»¡£\nҪת»»¸ñʽÂð£¿";
+ Message[ russian ] = "Ðàçäåë ïðåäñòàâëåí â ñòàðîì ôîðìàòå.\nÅãî íåîáõîäèìî ïðåîáðàçîâàòü, ñ òåì ÷òîáû ìîæíî \náûëî ñîõðàíèòü èçìåíåíèÿ\n.Ïðåîáðàçîâàòü?";
+ Message[ polish ] = "Format obszaru nie jest aktualny.\nObszar musi byæ skonwertowany, by mo¿na by³o zapisaæ zmiany\n. Skonwertowaæ go?";
+ Message[ japanese ] = "‚±‚͈̔͂͋Œ‘Ž®‚É‚ ‚è‚Ü‚·B\n•ÏX‚ð•Û‘¶‚·‚é‚É‚Í\n‘Ž®‚ð•ÏŠ·‚µ‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB\n‘Ž®•ÏŠ·‚µ‚Ü‚·‚©?";
+ Message[ chinese_traditional ] = "³o­Ó°Ï°ìªº®æ¦¡¬Oªº¡C\n­nÀx¦sÅܧó´N¥²¶·Âà´«¥¦®æ¦¡¡C\n±z­nÂà´«¥¦ªº®æ¦¡¡H";
+ Message[ arabic ] = "ÊäÓíÞ ÇáäØÇÞ ÞÏíã.\níÌÈ ÊÍæíáå¡ ÍÊì íãßä \nÍÝÙ ÇáÊÛííÑÇÊ.\nåá ÊÑíÏ ÊÍæíáå¿";
+ Message[ dutch ] = "Het bereik heeft een verouderd formaat.\nHet moet worden geconverteerd om de wijzigingen\nte kunnen opslaan.\nWilt u de conversie nu uitvoeren?";
+ Message[ chinese_simplified ] = "Õâ¸öÇøÓò¾ßÓеĸñʽÊǾɵġ£\nÒª´æÅ̸ü¸Ä¾Í±ØÐë½øÐиñʽת»»¡£\nҪת»»¸ñʽÂð£¿";
+ Message[ greek ] = "Ç ðåñéï÷Þ õðÜñ÷åé óå ðáëéÜ ìïñöÞ.\nÐñÝðåé íá ãßíåé ìåôáôñïðÞ ôçò ãéá íá åßíáé äõíáôÞ\nç áðïèÞêåõóç ôùí áëëáãþí.\nÈÝëåôå íá ãßíåé ç ìåôáôñïðÞ;";
+ Message[ korean ] = "±¸¿ª ¼­½ÄÀÌ ¿À·¡µÈ°ÍÀÔ´Ï´Ù.\n ÀÌ°ÍÀ» º¯È¯ÇÏ¿©¾ß º¯°æÀÌ\nÀúÀåÀ̵˴ϴÙ.\n Áö±Ý º¯È¯ ÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "Bölümün formatý eski.\nDeðiþikliklerin kaydedilebilmesi n\niçin deðiþtirilmesi gerekiyor.\nFormat deðiþtirilsin mi?";
+ Message[ language_user1 ] = " ";
+};
+
+String STR_PRIVATETEXT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? StarWriter : Formatierter Text [StarWriter] */
+ Text = "StarOffice Writer" ;
+ Text [ dutch ] = "StarOffice Writer" ;
+ Text [ english_us ] = "StarOffice Writer" ;
+ Text [ italian ] = "StarOffice Writer" ;
+ Text [ spanish ] = "StarOffice Writer" ;
+ Text [ french ] = "StarOffice Writer" ;
+ Text [ swedish ] = "StarOffice Writer" ;
+ Text [ danish ] = "StarOffice Writer" ;
+ Text [ portuguese ] = "StarOffice Writer" ;
+ Text [ portuguese_brazilian ] = "StarOffice Writer" ;
+ Text[ chinese_simplified ] = "StarOffice Writer";
+ Text[ russian ] = "StarOffice Writer";
+ Text[ polish ] = "StarOffice Writer";
+ Text[ japanese ] = "StarOffice Writer";
+ Text[ chinese_traditional ] = "StarOffice Writer";
+ Text[ arabic ] = "StarOffice Writer";
+ Text[ greek ] = "StarOffice Writer";
+ Text[ korean ] = "StarOffice Writer";
+ Text[ turkish ] = "StarOffice Writer";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRIVATEGRAPHIC
+{
+ Text = "Grafik [StarOffice Writer]" ;
+ Text [ ENGLISH ] = "Graphic [StarOffice Writer]" ;
+ Text [ norwegian ] = "Graphic [StarOffice Writer]" ;
+ Text [ italian ] = "Immagine [StarOffice Writer]" ;
+ Text [ portuguese_brazilian ] = "Gráfico [StarOffice Writer]" ;
+ Text [ portuguese ] = "Imagem [StarOffice Writer]" ;
+ Text [ finnish ] = "Kuva [StarOffice Writer]" ;
+ Text [ danish ] = "Grafik [StarOffice Writer]" ;
+ Text [ french ] = "Image [StarOffice Writer]" ;
+ Text [ swedish ] = "Grafik [StarOffice Writer]" ;
+ Text [ dutch ] = "Afbeelding [StarOffice Writer]" ;
+ Text [ spanish ] = "Imagen [StarOffice Writer]" ;
+ Text [ english_us ] = "Graphics [StarOffice Writer]" ;
+ Text[ chinese_simplified ] = "ͼÐÎ [StarOffice Writer]";
+ Text[ russian ] = "Ðèñóíîê [StarOffice Writer]";
+ Text[ polish ] = "Grafika [StarOffice Writer]";
+ Text[ japanese ] = "¸Þ×̨¯¸ [StarOffice Writer]";
+ Text[ greek ] = "Ãñáöéêü [StarOffice Writer]";
+ Text[ korean ] = "±×·¡ÇÈ [StarOffice Writer]";
+ Text[ chinese_traditional ] = "¹Ï§Î [StarOffice Writer]";
+ Text[ arabic ] = "[StarOffice Writer] ÑÓæãÇÊ";
+ Text[ turkish ] = "Grafik [StarOffice Writer]";
+};
+String STR_PRIVATEOLE
+{
+ Text = "Objekt [StarOffice Writer]" ;
+ Text [ ENGLISH ] = "Object [StarOffice Writer]" ;
+ Text [ english_us ] = "Object [StarOffice Writer]" ;
+ Text [ italian ] = "Oggetto [StarOffice Writer]" ;
+ Text [ spanish ] = "Objeto [StarOffice Writer]" ;
+ Text [ french ] = "Objet [StarOffice Writer]" ;
+ Text [ dutch ] = "Object [StarOffice Writer]" ;
+ Text [ swedish ] = "Objekt [StarOffice Writer]" ;
+ Text [ danish ] = "Objekt [StarOffice Writer]" ;
+ Text [ portuguese ] = "Objecto [StarOffice Writer]" ;
+ Text [ portuguese_brazilian ] = "Objekt [StarOffice Writer]" ;
+ Text[ chinese_simplified ] = "¶ÔÏó [StarOffice Writer]";
+ Text[ russian ] = "Îáúåêò [StarOffice Writer]";
+ Text[ polish ] = "Obiekt [StarOffice Writer]";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä [StarOffice Writer]";
+ Text[ greek ] = "Áíôéêåßìåíï [StarOffice Writer]";
+ Text[ korean ] = "°³Ã¼ [StarOffice Writer]";
+ Text[ chinese_traditional ] = "ª«¥ó [StarOffice Writer]";
+ Text[ arabic ] = "[StarOffice Writer]ßÇÆä ";
+ Text[ turkish ] = "Nesne [StarOffice Writer]";
+};
+String STR_DDEFORMAT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? DDE Verknüpfung : DDE Verkn³pfung */
+ Text = "DDE Verknüpfung" ;
+ Text [ ENGLISH ] = "DDE link" ;
+ Text [ norwegian ] = "DDE link" ;
+ Text [ italian ] = "Collegamento DDE" ;
+ Text [ portuguese_brazilian ] = "Ligação do DDE" ;
+ Text [ portuguese ] = "Ligação DDE" ;
+ Text [ finnish ] = "DDE-linkki" ;
+ Text [ danish ] = "DDE-kæde" ;
+ Text [ french ] = "Lien DDE" ;
+ Text [ swedish ] = "DDE-länk" ;
+ Text [ dutch ] = "DDE-koppeling" ;
+ Text [ spanish ] = "Vínculo DDE" ;
+ Text [ english_us ] = "DDE link" ;
+ Text[ chinese_simplified ] = "DDE Á´½Ó";
+ Text[ russian ] = "Ññûëêà DDE";
+ Text[ polish ] = "£¹cza DDE ";
+ Text[ japanese ] = "DDE Øݸ";
+ Text[ chinese_traditional ] = "DDE ±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØ DDE";
+ Text[ dutch ] = "DDE-koppeling";
+ Text[ chinese_simplified ] = "DDE Á´½Ó";
+ Text[ greek ] = "Óýíäåóìïò DDE";
+ Text[ korean ] = "DDE ¿¬°á";
+ Text[ turkish ] = "DDE baðlantýsý";
+ Text[ language_user1 ] = " ";
+};
+String STR_RTFFORMAT
+{
+ Text = "Formatierter Text [RTF]" ;
+ Text [ ENGLISH ] = "Formatted text [RTF]" ;
+ Text [ norwegian ] = "Formatert tekst [RTF]" ;
+ Text [ italian ] = "Testo formattato [RTF]" ;
+ Text [ portuguese_brazilian ] = "Texto formatado [RTF]" ;
+ Text [ portuguese ] = "Texto formatado [RTF]" ;
+ Text [ finnish ] = "Muotoiltu teksti [RTF]" ;
+ Text [ danish ] = "Formateret tekst [RTF]" ;
+ Text [ french ] = "Texte formaté [RTF]" ;
+ Text [ swedish ] = "Formaterad text [RTF]" ;
+ Text [ dutch ] = "Opgemaakte tekst [RTF]" ;
+ Text [ spanish ] = "Texto formateado [RTF]" ;
+ Text [ english_us ] = "Formatted text [RTF]" ;
+ Text[ chinese_simplified ] = "ÒѸñʽ»¯µÄÎı¾[RTF]";
+ Text[ russian ] = "Îòôîðìàòèðîâàííûé òåêñò [RTF]";
+ Text[ polish ] = "Sformatowany tekst [RTF]";
+ Text[ japanese ] = "‘Ž®Ý’èÏ‚Ý‚Ì÷½Ä [RTF]";
+ Text[ greek ] = "ÌïñöïðïéçìÝíï êåßìåíï [RTF]";
+ Text[ korean ] = "¼­½ÄÀÖ´Â ÅؽºÆ® [RTF]";
+ Text[ chinese_traditional ] = "¤w¸g®æ¦¡¤Æªº¤å¦r [RTF]";
+ Text[ arabic ] = "[RTF]äÕ ãõäÓÞ ";
+ Text[ turkish ] = "Formatlý metin [RTF]";
+};
+String STR_TEXTFORMAT
+{
+ Text = "Unformatierter Text" ;
+ Text [ ENGLISH ] = "Unformatted Text" ;
+ Text [ norwegian ] = "Uformatert Tekst" ;
+ Text [ italian ] = "Testo non formattato" ;
+ Text [ portuguese_brazilian ] = "Texto Não Formatado" ;
+ Text [ portuguese ] = "Texto não formatado" ;
+ Text [ finnish ] = "Muotoilematon teksti" ;
+ Text [ danish ] = "Uformateret tekst" ;
+ Text [ french ] = "Texte non formaté" ;
+ Text [ swedish ] = "Oformaterad text" ;
+ Text [ dutch ] = "Tekst zonder opmaak" ;
+ Text [ spanish ] = "Texto no formateado" ;
+ Text [ english_us ] = "Unformatted text" ;
+ Text[ chinese_simplified ] = "δ¸ñʽ»¯µÄÎı¾";
+ Text[ russian ] = "Íåîòôîðìàòèðîâàííûé òåêñò";
+ Text[ polish ] = "Tekst bez formatu";
+ Text[ japanese ] = "‘Ž®Ý’肳‚ê‚Ä‚¢‚È‚¢Ã·½Ä";
+ Text[ chinese_traditional ] = "¥¼®æ¦¡¤Æªº¤å¦r";
+ Text[ arabic ] = "äÕ ÛíÑ ãäÓÞ";
+ Text[ dutch ] = "Tekst zonder opmaak";
+ Text[ chinese_simplified ] = "δ¸ñʽ»¯µÄÎı¾";
+ Text[ greek ] = "Êåßìåíï ÷ùñßò ìïñöïðïßçóç";
+ Text[ korean ] = "¼­½Ä¾ø´Â ÅؽºÆ®";
+ Text[ turkish ] = "Formatlanmamýþ metin";
+ Text[ language_user1 ] = " ";
+};
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/dochdl/gloshdl.cxx b/sw/source/ui/dochdl/gloshdl.cxx
new file mode 100644
index 000000000000..aee3290dc6a0
--- /dev/null
+++ b/sw/source/ui/dochdl/gloshdl.cxx
@@ -0,0 +1,1099 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloshdl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef __RSC //autogen
+#include <tools/errinf.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#define _SVSTDARR_STRINGS
+#include <svtools/svstdarr.hxx>
+
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx> // Fehlermeldungen
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _GLOSSARY_HXX
+#include <glossary.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+
+#ifndef _SELGLOS_HXX
+#include <selglos.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx> // fuer ::GetGlossaries()
+#endif
+#ifndef _GLOSLST_HXX
+#include <gloslst.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+
+#ifndef _DOCHDL_HRC
+#include <dochdl.hrc>
+#endif
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+
+
+// PUBLIC METHODES -------------------------------------------------------
+struct TextBlockInfo_Impl
+{
+ String sTitle;
+ String sLongName;
+ String sGroupName;
+};
+typedef TextBlockInfo_Impl* TextBlockInfo_ImplPtr;
+SV_DECL_PTRARR_DEL( TextBlockInfoArr, TextBlockInfo_ImplPtr, 0, 4 )
+SV_IMPL_PTRARR( TextBlockInfoArr, TextBlockInfo_ImplPtr )
+/*------------------------------------------------------------------------
+ Beschreibung: Dialog fuer Bearbeiten Vorlagen
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryHdl::GlossaryDlg()
+{
+ SwGlossaryDlg* pDlg = new SwGlossaryDlg( pViewFrame, this, pWrtShell );
+ String sName, sShortName;
+
+ if( RET_EDIT == pDlg->Execute() )
+ {
+ sName = pDlg->GetCurrGrpName();
+ sShortName = pDlg->GetCurrShortName();
+ }
+
+ delete pDlg;
+ DELETEZ(pCurGrp);
+ if(HasGlossaryList())
+ {
+ GetGlossaryList()->ClearGroups();
+ }
+
+ if( sName.Len() || sShortName.Len() )
+ rStatGlossaries.EditGroupDoc( sName, sShortName );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen der aktuellen Gruppe; falls aus dem Dialog
+ gerufen, wird die Gruppe temp. erzeugt fuer einen
+ schnelleren Zugriff
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryHdl::SetCurGroup(const String &rGrp, BOOL bApi, BOOL bAlwaysCreateNew )
+{
+ String sGroup(rGrp);
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM) && !FindGroupName(sGroup))
+ {
+ sGroup += GLOS_DELIM;
+ sGroup += '0';
+ }
+ if(pCurGrp)
+ {
+ BOOL bPathEqual = FALSE;
+ if(!bAlwaysCreateNew)
+ {
+ const String& sCurPath = URIHelper::SmartRelToAbs(pCurGrp->GetFileName());
+ xub_StrLen nSlashPos = sCurPath.SearchBackward( INET_PATH_TOKEN );
+ const String sCurEntryPath = sCurPath.Copy(0, nSlashPos);
+ const SvStrings* pPathArr = rStatGlossaries.GetPathArray();
+ USHORT nCurrentPath = USHRT_MAX;
+ for(USHORT nPath = 0; nPath < pPathArr->Count(); nPath++)
+ {
+ if(sCurEntryPath == *(*pPathArr)[nPath])
+ {
+ nCurrentPath = nPath;
+ break;
+ }
+ }
+ String sPath = sGroup.GetToken(1, GLOS_DELIM);
+ USHORT nComparePath = (USHORT)sPath.ToInt32();
+ const String sCurBase = sCurPath.Copy(nSlashPos + 1, sCurPath.Len() - nSlashPos - 5);
+ if(nCurrentPath == nComparePath &&
+ sGroup.GetToken(0, GLOS_DELIM) == sCurBase)
+ bPathEqual = TRUE;
+ }
+// const String aMac_Tmp(pCurGrp->GetName());
+ // Beim Pfadwechsel kann man sich auf den Namen nicht verlassen
+ if(!bAlwaysCreateNew &&
+ bPathEqual
+// aMac_Tmp == sGroup
+ )
+ return;
+ }
+ aCurGrp = sGroup;
+ if(!bApi)
+ {
+ if(pCurGrp)
+ {
+ rStatGlossaries.PutGroupDoc(pCurGrp);
+ pCurGrp = 0;
+ }
+ pCurGrp = rStatGlossaries.GetGroupDoc(aCurGrp, TRUE);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+USHORT SwGlossaryHdl::GetGroupCnt() const
+{
+ return rStatGlossaries.GetGroupCnt();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGroupName( USHORT nId, String* pTitle )
+{
+ String sRet = rStatGlossaries.GetGroupName(nId);
+ if(pTitle)
+ {
+ SwTextBlocks* pGroup = rStatGlossaries.GetGroupDoc(sRet, FALSE);
+ if(pGroup)
+ {
+ *pTitle = pGroup->GetName();
+ if(!pTitle->Len())
+ {
+ *pTitle = sRet.GetToken(0, GLOS_DELIM);
+ pGroup->SetName(*pTitle);
+ }
+ rStatGlossaries.PutGroupDoc( pGroup );
+ }
+
+ }
+ return sRet;
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::NewGroup(String &rGrpName, const String& rTitle)
+{
+ if(STRING_NOTFOUND == rGrpName.Search(GLOS_DELIM))
+ FindGroupName(rGrpName);
+ return rStatGlossaries.NewGroupDoc(rGrpName, rTitle);
+}
+/* -----------------23.11.98 13:10-------------------
+ * Umbenennen eines Textbausteins
+ * --------------------------------------------------*/
+BOOL SwGlossaryHdl::RenameGroup(const String & rOld, String& rNew, const String& rNewTitle)
+{
+ BOOL bRet = FALSE;
+ String sOldGroup(rOld);
+ if(STRING_NOTFOUND == rOld.Search(GLOS_DELIM))
+ FindGroupName(sOldGroup);
+ if(rOld == rNew)
+ {
+ SwTextBlocks* pGroup = rStatGlossaries.GetGroupDoc(sOldGroup, FALSE);
+ if(pGroup)
+ {
+ pGroup->SetName(rNewTitle);
+ rStatGlossaries.PutGroupDoc( pGroup );
+ bRet = TRUE;
+ }
+ }
+ else
+ {
+ String sNewGroup(rNew);
+ if(STRING_NOTFOUND == sNewGroup.Search(GLOS_DELIM))
+ {
+ sNewGroup += GLOS_DELIM;
+ sNewGroup += '0';
+ }
+ bRet = rStatGlossaries.RenameGroupDoc(sOldGroup, sNewGroup, rNewTitle);
+ rNew = sNewGroup;
+ }
+ return bRet;
+}
+/* -----------------27.11.98 13:49-------------------
+ *
+ * --------------------------------------------------*/
+BOOL SwGlossaryHdl::CopyOrMove( const String& rSourceGroupName, String& rSourceShortName,
+ const String& rDestGroupName, const String& rLongName, BOOL bMove )
+{
+ SwTextBlocks* pSourceGroup = rStatGlossaries.GetGroupDoc(rSourceGroupName, FALSE);
+
+ SwTextBlocks* pDestGroup = rStatGlossaries.GetGroupDoc(rDestGroupName, FALSE);
+ if(pDestGroup->IsReadOnly() || (bMove && pSourceGroup->IsReadOnly()) )
+ return FALSE;
+ if(pDestGroup->IsOld()&& 0!= pDestGroup->ConvertToNew())
+ return FALSE;
+ if(bMove && pSourceGroup->IsOld() && 0 != pSourceGroup->ConvertToNew())
+ return FALSE;
+
+ //Der Index muss hier ermittelt werden, weil rSourceShortName in CopyBlock evtl veraendert wird
+ USHORT nDeleteIdx = pSourceGroup->GetIndex( rSourceShortName );
+ DBG_ASSERT(USHRT_MAX != nDeleteIdx, "Eintrag nicht gefunden")
+ ULONG nRet = pSourceGroup->CopyBlock( *pDestGroup, rSourceShortName, rLongName );
+ if(!nRet && bMove)
+ {
+ // der Index muss existieren
+ nRet = pSourceGroup->Delete( nDeleteIdx ) ? 0 : 1;
+ }
+ rStatGlossaries.PutGroupDoc( pSourceGroup );
+ rStatGlossaries.PutGroupDoc( pDestGroup );
+ return !nRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Loeschen einer Textbausteindatei-Gruppe
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::DelGroup(const String &rGrpName)
+{
+ String sGroup(rGrpName);
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
+ FindGroupName(sGroup);
+ if( rStatGlossaries.DelGroupDoc(sGroup) )
+ {
+ if(pCurGrp)
+ {
+ const String aMac_Tmp(pCurGrp->GetName());
+ if(aMac_Tmp == sGroup)
+ DELETEZ(pCurGrp);
+ }
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Anzahl Textbausteine erfragen
+------------------------------------------------------------------------*/
+
+
+USHORT SwGlossaryHdl::GetGlossaryCnt()
+{
+ return pCurGrp ? pCurGrp->GetCount() : 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Anzahl Textbausteine aus dem Basic erfragen
+------------------------------------------------------------------------*/
+
+
+USHORT SwGlossaryHdl::GetGlossaryCnt(const String& rGroupName)
+{
+ String sGroupName(rGroupName);
+ if(STRING_NOTFOUND == sGroupName.Search(GLOS_DELIM))
+ FindGroupName(sGroupName);
+ SwTextBlocks* pGrp = rStatGlossaries.GetGroupDoc(sGroupName, FALSE);
+ USHORT nCount = 0;
+ if(pGrp)
+ {
+ nCount = pGrp->GetCount();
+ rStatGlossaries.PutGroupDoc(pGrp);
+
+ }
+ return nCount;
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGlossaryName( USHORT nId )
+{
+ ASSERT(nId < GetGlossaryCnt(), Textbausteinarray ueberindiziert.);
+ return pCurGrp->GetLongName( nId );
+}
+/* -----------------30.11.98 13:18-------------------
+ *
+ * --------------------------------------------------*/
+String SwGlossaryHdl::GetGlossaryShortName(USHORT nId)
+{
+ ASSERT(nId < GetGlossaryCnt(), Textbausteinarray ueberindiziert.);
+ return pCurGrp->GetShortName( nId );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGlossaryName( USHORT nId, const String& rGroupName )
+{
+ String sGroupName(rGroupName);
+ if(STRING_NOTFOUND == sGroupName.Search(GLOS_DELIM))
+ FindGroupName(sGroupName);
+ SwTextBlocks* pGrp = rStatGlossaries.GetGroupDoc(sGroupName, FALSE);
+ String sName;
+ if(pGrp)
+ {
+ if( nId < pGrp->GetCount())
+ sName = pGrp->GetLongName( nId );
+ rStatGlossaries.PutGroupDoc(pGrp);
+ }
+ return sName;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Kurzname erfragen
+------------------------------------------------------------------------*/
+
+
+String SwGlossaryHdl::GetGlossaryShortName(const String &rName)
+{
+ String sReturn;
+ SwTextBlocks *pTmp =
+ pCurGrp ? pCurGrp: rStatGlossaries.GetGroupDoc( aCurGrp, FALSE );
+ if(pTmp)
+ {
+ USHORT nIdx = pTmp->GetLongIndex( rName );
+ if( nIdx != (USHORT) -1 )
+ sReturn = pTmp->GetShortName( nIdx );
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pTmp );
+ }
+ return sReturn;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Kuerzel fuer Textbaustein bereits verwendet?
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::HasShortName(const String& rShortName) const
+{
+ SwTextBlocks *pBlock = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc( aCurGrp );
+ BOOL bRet = pBlock->GetIndex( rShortName ) != (USHORT) -1;
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pBlock );
+ return bRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Erzeugen eines Textbausteines
+------------------------------------------------------------------------*/
+
+BOOL SwGlossaryHdl::NewGlossary(const String& rName, const String& rShortName,
+ BOOL bCreateGroup, BOOL bNoAttr)
+{
+ SwTextBlocks *pTmp =
+ pCurGrp ? pCurGrp: rStatGlossaries.GetGroupDoc( aCurGrp, bCreateGroup );
+ //pTmp == 0 if the AutoText path setting is wrong
+ if(!pTmp)
+ return FALSE;
+ if( pTmp->IsOld() )
+ {
+ QueryBox aAsk( pWrtShell->GetView().GetWindow(), SW_RES( MSG_UPDATE_NEW_GLOS_FMT ) );
+ if( aAsk.Execute() == RET_YES )
+ {
+ if( pTmp->ConvertToNew() )
+ {
+ InfoBox(pWrtShell->GetView().GetWindow(), SW_RES(MSG_ERR_INSERT_GLOS)).Execute();
+ return FALSE;
+ }
+ }
+ else
+ return FALSE;
+ }
+
+ String sOnlyTxt;
+ String* pOnlyTxt = 0;
+ if( bNoAttr )
+ {
+ if( !pWrtShell->GetSelectedText( sOnlyTxt, GETSELTXT_PARABRK_TO_ONLYCR ))
+ return FALSE;
+ pOnlyTxt = &sOnlyTxt;
+ }
+
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+
+ const USHORT nSuccess = pWrtShell->MakeGlossary( *pTmp, rName, rShortName,
+ pCfg->IsSaveRelFile(), pCfg->IsSaveRelNet(),
+ pOnlyTxt );
+ if(nSuccess == (USHORT) -1 )
+ {
+ InfoBox(pWrtShell->GetView().GetWindow(), SW_RES(MSG_ERR_INSERT_GLOS)).Execute();
+ }
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pTmp );
+ return BOOL( nSuccess != (USHORT) -1 );
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Loeschen eines Textbausteines
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::DelGlossary(const String &rShortName)
+{
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ //pTmp == 0 if the AutoText path setting is wrong
+ if(!pGlossary)
+ return FALSE;
+ USHORT nIdx = pGlossary->GetIndex( rShortName );
+ if( nIdx != (USHORT) -1 )
+ pGlossary->Delete( nIdx );
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pGlossary );
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Kurzform expandieren
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::ExpandGlossary(BOOL bUseStandard, BOOL bApi)
+{
+ ASSERT(pWrtShell->CanInsert(), illegal);
+ SwTextBlocks *pGlossary;
+ if( bUseStandard )
+ {
+ String sGroupName(SwGlossaryDlg::GetCurrGroup());
+ if(STRING_NOTFOUND == sGroupName.Search(GLOS_DELIM))
+ FindGroupName(sGroupName);
+ pGlossary = rStatGlossaries.GetGroupDoc(sGroupName);
+ }
+ else
+ pGlossary = rStatGlossaries.GetGroupDoc(aCurGrp);
+
+ String aShortName;
+
+ // bei Textselektion diese verwenden
+ if(pWrtShell->SwCrsrShell::HasSelection())
+ {
+ aShortName = pWrtShell->GetSelTxt();
+ }
+ else
+ {
+ if(pWrtShell->IsAddMode())
+ pWrtShell->LeaveAddMode();
+ else if(pWrtShell->IsExtMode())
+ pWrtShell->LeaveExtMode();
+ // Wort selektieren
+ pWrtShell->SelNearestWrd();
+ // Wort erfragen
+ if(pWrtShell->IsSelection())
+ aShortName = pWrtShell->GetSelTxt();
+ }
+ return pGlossary ? Expand( aShortName, &rStatGlossaries, pGlossary, bApi ) : FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Expansion aus Basic aufrufen
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::ExpandGlossary( const String& rShortName, BOOL bApi )
+{
+ ASSERT(pWrtShell->CanInsert(), illegal);
+ String sGroup(SwGlossaryDlg::GetCurrGroup());
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
+ FindGroupName(sGroup);
+
+ SwTextBlocks *pGlossary = rStatGlossaries.GetGroupDoc(sGroup);
+ return pGlossary ? Expand( rShortName, &rStatGlossaries, pGlossary, bApi ) : FALSE;
+}
+
+
+BOOL SwGlossaryHdl::Expand( const String& rShortName,
+ SwGlossaries *pGlossaries,
+ SwTextBlocks *pGlossary,
+ BOOL bApi )
+{
+ TextBlockInfoArr aFoundArr;
+ String aShortName( rShortName );
+ BOOL bCancel = FALSE;
+ // Textbaustein suchen
+ USHORT nFound = pGlossary->GetIndex( aShortName );
+ // Suchen in allen anderen Bereichen
+ if( nFound == (USHORT) -1 )
+ {
+ const International& rAppInt = Application::GetAppInternational();
+ SwGlossaryList* pGlossaryList = ::GetGlossaryList();
+ USHORT nGroupCount = pGlossaryList->GetGroupCount();
+ for(USHORT i = 1; i <= nGroupCount; i++)
+ {
+ // Gruppenname mit Pfad-Extension besorgen
+ String sTitle;
+ String sGroupName = pGlossaryList->GetGroupName(i - 1, FALSE, &sTitle);
+ if(sGroupName == pGlossary->GetName())
+ continue;
+ USHORT nBlockCount = pGlossaryList->GetBlockCount(i -1);
+ if(nBlockCount)
+ {
+ for(USHORT j = 0; j < nBlockCount; j++)
+ {
+ String sEntry;
+ String sLongName(pGlossaryList->GetBlockName(i - 1, j, sEntry));
+ if(COMPARE_EQUAL == rAppInt.Compare(rShortName, sEntry, INTN_COMPARE_IGNORECASE))
+ {
+ TextBlockInfo_Impl* pData = new TextBlockInfo_Impl;
+ pData->sTitle = sTitle;
+ pData->sLongName = sLongName;
+ pData->sGroupName = sGroupName;
+ aFoundArr.Insert(pData, aFoundArr.Count());
+ }
+ }
+ }
+ }
+ if( aFoundArr.Count() ) // einer wurde gefunden
+ {
+ pGlossaries->PutGroupDoc(pGlossary);
+ if(1 == aFoundArr.Count())
+ {
+ TextBlockInfo_Impl* pData = aFoundArr.GetObject(0);
+ pGlossary = (SwTextBlocks *)pGlossaries->GetGroupDoc(pData->sGroupName);
+ nFound = pGlossary->GetIndex( aShortName );
+ }
+ else
+ {
+ SwSelGlossaryDlg *pDlg =
+ new SwSelGlossaryDlg(0, aShortName);
+ for(USHORT i = 0; i < aFoundArr.Count(); ++i)
+ {
+ TextBlockInfo_Impl* pData = aFoundArr.GetObject(i);
+ pDlg->InsertGlos(pData->sTitle, pData->sLongName);
+ }
+ pDlg->SelectEntryPos(0);
+ const USHORT nRet = RET_OK == pDlg->Execute()?
+ pDlg->GetSelectedIdx():
+ LISTBOX_ENTRY_NOTFOUND;
+ delete pDlg;
+ if(LISTBOX_ENTRY_NOTFOUND != nRet)
+ {
+ TextBlockInfo_Impl* pData = aFoundArr.GetObject(nRet);
+ pGlossary = (SwTextBlocks *)pGlossaries->GetGroupDoc(pData->sGroupName);
+ nFound = pGlossary->GetIndex( aShortName );
+ }
+ else
+ {
+ nFound = (USHORT) -1;
+ bCancel = TRUE;
+ }
+ }
+ }
+ }
+
+ // nicht gefunden
+ if( nFound == (USHORT) -1 )
+ {
+ if( !bCancel )
+ {
+ pGlossaries->PutGroupDoc(pGlossary);
+
+ const USHORT nMaxLen = 50;
+ if(pWrtShell->IsSelection() && aShortName.Len() > nMaxLen)
+ {
+ aShortName.Erase(nMaxLen);
+ aShortName.AppendAscii(" ...");
+ }
+ if(!bApi)
+ {
+ String aTmp( SW_RES(STR_NOGLOS1));
+ aTmp += aShortName;
+ aTmp += SW_RESSTR(STR_NOGLOS2);
+ InfoBox( pWrtShell->GetView().GetWindow(), aTmp ).Execute();
+ }
+ }
+
+ return FALSE;
+ }
+ else
+ {
+ String aLongName = pGlossary->GetLongName( nFound );
+ SvxMacro aStartMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ SvxMacro aEndMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ GetMacros( aShortName, aStartMacro, aEndMacro, pGlossary );
+
+ // StartAction darf nich vor HasSelection und DelRight stehen,
+ // sonst wird der moeglich Shellwechsel verzoegert und
+ // API-Programme wuerden dann haengenbleiben
+ // ausserdem darf das Ereignismacro ebenfalls nicht in einer Action gerufen werden
+ pWrtShell->StartUndo(UNDO_INSGLOSSARY);
+ if( aStartMacro.GetMacName().Len() )
+ pWrtShell->ExecMacro( aStartMacro );
+ if(pWrtShell->HasSelection())
+ pWrtShell->DelLeft();
+ pWrtShell->StartAllAction();
+
+ // alle InputFelder zwischenspeichern
+ SwInputFieldList aFldLst( pWrtShell, TRUE );
+
+ pWrtShell->InsertGlossary(*pGlossary, aShortName);
+ pWrtShell->EndAllAction();
+ if( aEndMacro.GetMacName().Len() )
+ {
+ pWrtShell->ExecMacro( aEndMacro );
+ }
+ pWrtShell->EndUndo(UNDO_INSGLOSSARY);
+
+ // fuer alle neuen InputFelder die Eingaben abfordern
+ if( aFldLst.BuildSortLst() )
+ pWrtShell->UpdateInputFlds( &aFldLst );
+ }
+ pGlossaries->PutGroupDoc(pGlossary);
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Textbaustein einfuegen
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::InsertGlossary(const String &rName)
+{
+ ASSERT(pWrtShell->CanInsert(), illegal);
+
+ SwTextBlocks *pGlos =
+ pCurGrp? pCurGrp: rStatGlossaries.GetGroupDoc(aCurGrp);
+
+ if (!pGlos)
+ return FALSE;
+
+ SvxMacro aStartMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ SvxMacro aEndMacro(aEmptyStr, aEmptyStr, STARBASIC);
+ GetMacros( rName, aStartMacro, aEndMacro, pGlos );
+
+ // StartAction darf nich vor HasSelection und DelRight stehen,
+ // sonst wird der moeglich Shellwechsel verzoegert und
+ // API-Programme wuerden dann haengenbleiben
+ // ausserdem darf das Ereignismacro ebenfalls nicht in einer Action gerufen werden
+ if( aStartMacro.GetMacName().Len() )
+ pWrtShell->ExecMacro( aStartMacro );
+ if( pWrtShell->HasSelection() )
+ pWrtShell->DelRight();
+ pWrtShell->StartAllAction();
+
+ // alle InputFelder zwischenspeichern
+ SwInputFieldList aFldLst( pWrtShell, TRUE );
+
+ pWrtShell->InsertGlossary(*pGlos, rName);
+ pWrtShell->EndAllAction();
+ if( aEndMacro.GetMacName().Len() )
+ {
+ pWrtShell->ExecMacro( aEndMacro );
+ }
+
+ // fuer alle neuen InputFelder die Eingaben abfordern
+ if( aFldLst.BuildSortLst() )
+ pWrtShell->UpdateInputFlds( &aFldLst );
+
+ if(!pCurGrp)
+ rStatGlossaries.PutGroupDoc(pGlos);
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Macro setzen / erfragen
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryHdl::SetMacros(const String& rShortName,
+ const SvxMacro* pStart,
+ const SvxMacro* pEnd,
+ SwTextBlocks *pGlossary )
+{
+ SwTextBlocks *pGlos = pGlossary ? pGlossary :
+ pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc( aCurGrp );
+ int nIdx = pGlos->GetIndex( rShortName );
+ pGlos->BeginGetDoc( nIdx );
+ SwDoc* pDoc = pGlos->GetDoc();
+
+ if( pStart )
+ pDoc->SetGlobalMacro( SW_EVENT_START_INS_GLOSSARY, *pStart );
+ else
+ pDoc->DelGlobalMacro( SW_EVENT_START_INS_GLOSSARY );
+ if( pEnd )
+ pDoc->SetGlobalMacro( SW_EVENT_END_INS_GLOSSARY, *pEnd );
+ else
+ pDoc->DelGlobalMacro( SW_EVENT_END_INS_GLOSSARY );
+ pGlos->EndGetDoc();
+
+ pGlos->BeginPutDoc( rShortName, pGlos->GetLongName( nIdx ) );
+ pGlos->PutDoc();
+ if( pGlos->GetError() )
+ ErrorHandler::HandleError( pGlos->GetError() );
+
+ if(!pCurGrp && !pGlossary)
+ rStatGlossaries.PutGroupDoc(pGlos);
+}
+
+void SwGlossaryHdl::GetMacros( const String &rShortName,
+ SvxMacro& rStart,
+ SvxMacro& rEnd,
+ SwTextBlocks *pGlossary )
+{
+ SwTextBlocks *pGlos = pGlossary ? pGlossary
+ : pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ USHORT nIndex = pGlos->GetIndex( rShortName );
+ if( nIndex != USHRT_MAX )
+ {
+ SvxMacroTableDtor aMacroTbl;
+ if( pGlos->GetMacroTable( nIndex, aMacroTbl ) )
+ {
+ SvxMacro *pMacro = aMacroTbl.Get( SW_EVENT_START_INS_GLOSSARY );
+ if( pMacro )
+ rStart = *pMacro;
+
+ pMacro = aMacroTbl.Get( SW_EVENT_END_INS_GLOSSARY );
+ if( pMacro )
+ rEnd = *pMacro;
+ }
+ }
+
+ if( !pCurGrp && !pGlossary )
+ rStatGlossaries.PutGroupDoc( pGlos );
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: ctor, dtor
+------------------------------------------------------------------------*/
+
+
+SwGlossaryHdl::SwGlossaryHdl(SfxViewFrame* pVwFrm, SwWrtShell *pSh)
+ : rStatGlossaries( *::GetGlossaries() ),
+ pViewFrame( pVwFrm ),
+ pWrtShell( pSh ),
+ pCurGrp( 0 ),
+ aCurGrp( rStatGlossaries.GetDefName() )
+{}
+
+
+SwGlossaryHdl::~SwGlossaryHdl()
+{
+ if( pCurGrp )
+ rStatGlossaries.PutGroupDoc( pCurGrp );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Umbenennen eines Textbausteines
+------------------------------------------------------------------------*/
+
+
+BOOL SwGlossaryHdl::Rename(const String& rOldShort, const String& rNewShortName,
+ const String& rNewName )
+{
+ BOOL bRet = FALSE;
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ if(pGlossary)
+ {
+ USHORT nIdx = pGlossary->GetIndex( rOldShort );
+ USHORT nOldLongIdx = pGlossary->GetLongIndex( rNewName );
+ USHORT nOldIdx = pGlossary->GetIndex( rNewShortName );
+
+ if( nIdx != USHRT_MAX &&
+ (nOldLongIdx == USHRT_MAX || nOldLongIdx == nIdx )&&
+ (nOldIdx == USHRT_MAX || nOldIdx == nIdx ))
+ {
+ String aNewShort( rNewShortName );
+ String aNewName( rNewName );
+ pGlossary->Rename( nIdx, &aNewShort, &aNewName );
+ bRet = pGlossary->GetError() == 0;
+ }
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc(pGlossary);
+ }
+ return bRet;
+}
+
+
+BOOL SwGlossaryHdl::IsReadOnly( const String* pGrpNm ) const
+{
+ SwTextBlocks *pGlossary = pGrpNm ? rStatGlossaries.GetGroupDoc( *pGrpNm )
+ : pCurGrp
+ ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+
+ BOOL bRet = pGlossary ? pGlossary->IsReadOnly() : TRUE;
+ if( !pCurGrp )
+ delete pGlossary;
+ return bRet;
+}
+
+
+BOOL SwGlossaryHdl::IsOld() const
+{
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ BOOL bRet = pGlossary ? pGlossary->IsOld() : FALSE;
+ if( !pCurGrp )
+ delete pGlossary;
+ return bRet;
+}
+
+/*-----------------09.06.97 16:15-------------------
+ Gruppe ohne Pfadindex finden
+--------------------------------------------------*/
+BOOL SwGlossaryHdl::FindGroupName(String & rGroup)
+{
+ return rStatGlossaries.FindGroupName(rGroup);
+}
+
+/* -----------------29.07.99 08:34-------------------
+
+ --------------------------------------------------*/
+BOOL SwGlossaryHdl::CopyToClipboard(SwWrtShell& rSh, const String& rShortName)
+{
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp);
+ SwDataExchangeRef xExch = new SwDataExchange( rSh );
+ int nRet = xExch->CopyGlossary( *pGlossary, rShortName );
+ if( !pCurGrp )
+ rStatGlossaries.PutGroupDoc( pGlossary );
+ return 0 != nRet;
+}
+
+BOOL SwGlossaryHdl::ImportGlossaries( const String& rName )
+{
+ BOOL bRet = FALSE;
+ if( rName.Len() )
+ {
+ const SfxFilter* pFilter = 0;
+ SfxMedium* pMed = new SfxMedium( rName, STREAM_READ, TRUE, TRUE, 0, 0 );
+ SfxFilterMatcher aMatcher( SwDocShell::Factory().GetFilterContainer() );
+ if( !aMatcher.GuessFilter( *pMed, &pFilter, FALSE ) )
+ {
+ SwTextBlocks *pGlossary;
+ pMed->SetFilter( pFilter );
+ Reader* pR = SwIoSystem::GetReader( pFilter->GetUserData() );
+ if( pR && 0 != ( pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc(aCurGrp)) )
+ {
+ SwReader aReader( *pMed, rName );
+ if( aReader.HasGlossaries( *pR ) )
+ {
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+ bRet = aReader.ReadGlossaries( *pR, *pGlossary,
+ pCfg->IsSaveRelFile() );
+ }
+ }
+ }
+ DELETEZ(pMed);
+ }
+ return bRet;
+}
+
+String SwGlossaryHdl::GetValidShortCut( const String& rLong,
+ BOOL bCheckInBlock ) const
+{
+ String sRet;
+ SwTextBlocks *pGlossary = pCurGrp ? pCurGrp
+ : rStatGlossaries.GetGroupDoc( aCurGrp );
+ if( pGlossary )
+ sRet = pGlossary->GetValidShortCut( rLong, bCheckInBlock );
+ return sRet;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.150 2000/09/18 16:05:22 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.149 2000/07/07 13:25:39 jp
+ must changes VCL
+
+ Revision 1.148 2000/06/26 13:12:30 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.147 2000/06/13 09:59:20 os
+ using UCB
+
+ Revision 1.146 2000/06/09 06:51:31 os
+ using UCB
+
+ Revision 1.145 2000/05/23 20:09:50 jp
+ Bugfixes for Unicode
+
+ Revision 1.144 2000/04/17 12:54:30 os
+ UNICODE
+
+ Revision 1.143 2000/04/17 12:36:14 os
+ #74949# search for AutoText short name via SwGlossaryList
+
+ Revision 1.142 2000/04/13 08:22:23 os
+ UNICODE
+
+ Revision 1.141 2000/03/06 08:46:06 os
+ #70359# GetGroupName: if no title is set - set group name as title
+
+ Revision 1.140 2000/02/14 14:49:37 os
+ #70473# Unicode
+
+ Revision 1.139 2000/02/10 10:33:49 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.138 2000/02/09 11:41:28 jp
+ Task #72579#: WW8Reader can import glossaries
+
+ Revision 1.137 2000/02/03 11:08:22 jp
+ Task #72579#: new method GetValidShortCut
+
+ Revision 1.136 2000/02/02 17:01:52 jp
+ Task #72579#: WW8Reader can import glossaries
+
+ Revision 1.135 1999/12/22 09:20:47 os
+ #71203# editing of AutoText: keep macros
+
+ Revision 1.134 1999/11/16 16:18:20 jp
+ remove unused Dialog-Pointer
+
+ Revision 1.133 1999/09/15 14:03:11 os
+ language improvements
+
+ Revision 1.132 1999/08/24 08:28:02 OS
+ #68352# NewGlossary et. al.: GPF if AutoText path settings were wrong
+
+
+ Rev 1.131 24 Aug 1999 10:28:02 OS
+ #68352# NewGlossary et. al.: GPF if AutoText path settings were wrong
+
+ Rev 1.130 29 Jul 1999 09:10:02 OS
+ CopyToClipboard
+
+ Rev 1.129 23 Jul 1999 10:26:32 OS
+ #67828# glossary - methods on doc level
+
+ Rev 1.128 14 Jun 1999 14:40:26 JP
+ Bug #66858#: there is no MDIApplication
+
+ Rev 1.127 14 Jun 1999 08:51:54 OS
+ #66858# MDIApplication::GetActiveWindow now static
+
+ Rev 1.126 19 Feb 1999 16:46:20 OS
+ IsCaseSensitive nicht mehr inline
+
+ Rev 1.125 10 Feb 1999 16:11:58 OS
+ #61050# bei gleichen Gruppennamen immer den richtigen finden
+
+ Rev 1.124 09 Feb 1999 10:46:38 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/dochdl/makefile.mk b/sw/source/ui/dochdl/makefile.mk
new file mode 100644
index 000000000000..ee59800654c7
--- /dev/null
+++ b/sw/source/ui/dochdl/makefile.mk
@@ -0,0 +1,99 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:34 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=dochdl
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ dataex.cxx \
+ gloshdl.cxx \
+ selglos.cxx
+
+SRCFILES = \
+ dochdl.src \
+ selglos.src
+
+SLOFILES = \
+ $(SLO)$/dataex.obj \
+ $(SLO)$/gloshdl.obj \
+ $(SLO)$/selglos.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/dochdl/selglos.cxx b/sw/source/ui/dochdl/selglos.cxx
new file mode 100644
index 000000000000..b82d51ec2d32
--- /dev/null
+++ b/sw/source/ui/dochdl/selglos.cxx
@@ -0,0 +1,170 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "swtypes.hxx"
+#include "segmentc.hxx"
+
+#include "selglos.hxx"
+
+#include "selglos.hrc"
+#include "dochdl.hrc"
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+
+// STATIC DATA -----------------------------------------------------------
+
+
+// CTOR / DTOR -----------------------------------------------------------
+
+SwSelGlossaryDlg::SwSelGlossaryDlg(Window * pParent, const String &rShortName)
+ : ModalDialog(pParent, SW_RES(DLG_SEL_GLOS)),
+ aGlosBox(this, SW_RES( LB_GLOS)),
+ aGlosFrm(this, SW_RES( GB_GLOS)),
+ aOKBtn(this, SW_RES( BT_OK)),
+ aCancelBtn(this, SW_RES( BT_CANCEL)),
+ aHelpBtn(this, SW_RES(BT_HELP))
+{
+ String sText(aGlosFrm.GetText());
+ sText += rShortName;
+ aGlosFrm.SetText(sText);
+ FreeResource();
+
+ aGlosBox.SetDoubleClickHdl(LINK(this, SwSelGlossaryDlg, DoubleClickHdl));
+}
+
+/*-----------------25.02.94 20:50-------------------
+ dtor ueberladen
+--------------------------------------------------*/
+SwSelGlossaryDlg::~SwSelGlossaryDlg() {}
+/* -----------------25.10.99 08:33-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwSelGlossaryDlg, DoubleClickHdl, ListBox*, pBox)
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.16 2000/09/18 16:05:22 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.15 2000/04/13 08:22:23 os
+ UNICODE
+
+ Revision 1.14 1999/10/25 06:44:30 os
+ #68967# HelpButton and DoubleClickHdl
+
+ Revision 1.13 1997/11/03 12:13:06 MA
+ precomp entfernt
+
+
+ Rev 1.12 03 Nov 1997 13:13:06 MA
+ precomp entfernt
+
+ Rev 1.11 14 Nov 1996 15:23:02 TRI
+ includes
+
+ Rev 1.10 11 Nov 1996 09:35:36 MA
+ ResMgr
+
+ Rev 1.9 28 Aug 1996 10:27:36 OS
+ includes
+
+ Rev 1.8 24 Nov 1995 16:58:42 OM
+ PCH->PRECOMPILED
+
+ Rev 1.7 25 Oct 1994 17:08:08 ER
+ add: PCH
+
+ Rev 1.6 26 Feb 1994 01:59:36 ER
+ virt. dtor mit export
+
+ Rev 1.5 25 Feb 1994 20:51:54 ER
+ virtuellen dtor wegen export ueberladen
+
+ Rev 1.4 17 Feb 1994 08:41:20 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.3 16 Feb 1994 20:02:32 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.2 16 Feb 1994 16:21:24 MI
+ Pragmas zurechtgerueckt
+
+ Rev 1.1 28 Jan 1994 11:41:02 MI
+ TCOV() entfernt, SW_... nach SEG_... umbenannt
+
+ Rev 1.0 25 Jan 1994 16:01:06 VB
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/dochdl/selglos.hrc b/sw/source/ui/dochdl/selglos.hrc
new file mode 100644
index 000000000000..a5657aed1323
--- /dev/null
+++ b/sw/source/ui/dochdl/selglos.hrc
@@ -0,0 +1,65 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+#define LB_GLOS 1
+#define GB_GLOS 2
diff --git a/sw/source/ui/dochdl/selglos.src b/sw/source/ui/dochdl/selglos.src
new file mode 100644
index 000000000000..4ba82ef17ff7
--- /dev/null
+++ b/sw/source/ui/dochdl/selglos.src
@@ -0,0 +1,155 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "selglos.hrc"
+#include "dochdl.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+
+ // #define DLG_SEL_GLOS 256
+ModalDialog DLG_SEL_GLOS
+{
+ HelpID = FN_EXPAND_GLOSSARY ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 220 , 100 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText einfügen : AutoText einf³gen */
+ Text = "AutoText einfügen" ;
+ Text [ ENGLISH ] = "Insert AutoText" ;
+ Text [ norwegian ] = "Insert AutoText" ;
+ Text [ italian ] = "Inserisci testo automatico" ;
+ Text [ portuguese_brazilian ] = "Inserir Texto Automático" ;
+ Text [ portuguese ] = "Inserir AutoTexto" ;
+ Text [ finnish ] = "Lisää automaattiteksti" ;
+ Text [ danish ] = "Indsæt AutoTekst" ;
+ Text [ french ] = "Insérer AutoTexte" ;
+ Text [ swedish ] = "Infoga AutoText" ;
+ Text [ dutch ] = "AutoTekst invoegen" ;
+ Text [ spanish ] = "Insertar AutoTexto" ;
+ Text [ english_us ] = "Insert AutoText" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 164 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 164 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 164 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_GLOS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 152 , 91 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? AutoTexte zum Kürzel : AutoTexte zum K³rzel */
+ Text = "AutoTexte zum Kürzel " ;
+ Text [ ENGLISH ] = "Entries for Short Name " ;
+ Text [ norwegian ] = "Entries for Short Name " ;
+ Text [ italian ] = "Testo automatico per la sigla " ;
+ Text [ portuguese_brazilian ] = "Entadas para Abreviações " ;
+ Text [ portuguese ] = "AutoTexto Abreviatura " ;
+ Text [ finnish ] = "Lyhenteen vastineet " ;
+ Text [ danish ] = "AutoTekst til genvej " ;
+ Text [ french ] = "AutoTextes pour raccourci " ;
+ Text [ swedish ] = "AutoText till genvägen " ;
+ Text [ dutch ] = "AutoTekst voor afkortingen " ;
+ Text [ spanish ] = "AutoTexto para abreviatura " ;
+ Text [ english_us ] = "AutoTexts for shortcut " ;
+ Text[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯µÄËõд ";
+ Text[ russian ] = "Àâòîòåêñò ê ñîêðàùåíèþ ";
+ Text[ polish ] = "Autotekst do skrótu ";
+ Text[ japanese ] = "¼®°Ä¶¯Ä“ü—ÍŽx‰‡ ";
+ Text[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°ªºÁY¼g ";
+ Text[ arabic ] = "äÕ ÊáÞÇÆí ááÇÎÊÕÇÑ ";
+ Text[ greek ] = "ÁõôïÊåßìåíï ðñïò óõíôüìåõóç ";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ® ¹Ù·Î°¡±â ";
+ Text[ turkish ] = "Otomatik metin kýsaltmasý ";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_GLOS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 140 , 74 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ Text[ chinese_simplified ] = "²åÈë×Ô¶¯Í¼Îļ¯";
+ Text[ russian ] = "Âñòàâêà àâòîòåêñòà";
+ Text[ polish ] = "Wstaw autotekst";
+ Text[ japanese ] = "“ü—ÍŽx‰‡‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¦Û°Ê¹Ï¤å¶°";
+ Text[ arabic ] = "ÅÏÑÇÌ äÕ ÊáÞÇÆí";
+ Text[ greek ] = "ÐñïóèÞêç ÁõôïÊåéìÝíïõ";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ® »ðÀÔ";
+ Text[ turkish ] = "Otomatik metin ekle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/docvw/docvw.hrc b/sw/source/ui/docvw/docvw.hrc
new file mode 100644
index 000000000000..6cfd24ae360f
--- /dev/null
+++ b/sw/source/ui/docvw/docvw.hrc
@@ -0,0 +1,120 @@
+/*************************************************************************
+ *
+ * $RCSfile: docvw.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _DOCVW_HRC
+#define _DOCVW_HRC
+
+#include "rcid.hrc"
+
+#define MN_READONLY_POPUP (RC_DOCVW_BEGIN + 1)
+#define MN_READONLY_OPENURL (RC_DOCVW_BEGIN + 2)
+#define MN_READONLY_OPENURLNEW (RC_DOCVW_BEGIN + 3)
+#define MN_READONLY_EDITDOC (RC_DOCVW_BEGIN + 4)
+#define MN_READONLY_BROWSE_STOP (RC_DOCVW_BEGIN + 5)
+#define MN_READONLY_BROWSE_BACKWARD (RC_DOCVW_BEGIN + 6)
+#define MN_READONLY_BROWSE_FORWARD (RC_DOCVW_BEGIN + 7)
+#define MN_READONLY_CREATELINK (RC_DOCVW_BEGIN + 8)
+#define MN_READONLY_CREATEGRAPHIKLINK (RC_DOCVW_BEGIN + 9)
+#define MN_READONLY_DOWNLOAD (RC_DOCVW_BEGIN + 10)
+#define MN_READONLY_SAVEGRAPHIC (RC_DOCVW_BEGIN + 11)
+#define MN_READONLY_SAVEBACKGROUND (RC_DOCVW_BEGIN + 12)
+#define MN_READONLY_COPYLINK (RC_DOCVW_BEGIN + 13)
+#define MN_READONLY_COPYGRAPHIC (RC_DOCVW_BEGIN + 14)
+#define MN_READONLY_LOADGRAPHIC (RC_DOCVW_BEGIN + 15)
+#define MN_READONLY_GRAPHICOFF (RC_DOCVW_BEGIN + 16)
+#define MN_READONLY_PLUGINOFF (RC_DOCVW_BEGIN + 17)
+#define MN_READONLY_TOGALLERYLINK (RC_DOCVW_BEGIN + 18)
+#define MN_READONLY_TOGALLERYCOPY (RC_DOCVW_BEGIN + 19)
+#define MN_READONLY_SOURCEVIEW (RC_DOCVW_BEGIN + 20)
+#define MN_READONLY_RELOAD_FRAME (RC_DOCVW_BEGIN + 21)
+#define MN_READONLY_RELOAD (RC_DOCVW_BEGIN + 22)
+
+//Bei den folgenden brauchen wir Luft fuer die Gallery-Themen
+#define MN_READONLY_GRAPHICTOGALLERY (RC_DOCVW_BEGIN + 23)
+#define MN_READONLY_BACKGROUNDTOGALLERY (RC_DOCVW_BEGIN + 60)
+
+
+#define STR_EXPORT_GRAFIK_TITLE (RC_DOCVW_BEGIN + 1)
+#define STR_CHAIN_OK (RC_DOCVW_BEGIN + 2)
+#define STR_CHAIN_NOT_EMPTY (RC_DOCVW_BEGIN + 3)
+#define STR_CHAIN_IS_IN_CHAIN (RC_DOCVW_BEGIN + 4)
+#define STR_CHAIN_WRONG_AREA (RC_DOCVW_BEGIN + 5)
+#define STR_CHAIN_NOT_FOUND (RC_DOCVW_BEGIN + 6)
+#define STR_CHAIN_SOURCE_CHAINED (RC_DOCVW_BEGIN + 7)
+#define STR_CHAIN_SELF (RC_DOCVW_BEGIN + 8)
+#define STR_REDLINE_INSERT (RC_DOCVW_BEGIN + 9)
+#define STR_REDLINE_DELETE (RC_DOCVW_BEGIN + 10)
+#define STR_REDLINE_FORMAT (RC_DOCVW_BEGIN + 11)
+#define STR_REDLINE_TABLE (RC_DOCVW_BEGIN + 12)
+#define STR_REDLINE_FMTCOLL (RC_DOCVW_BEGIN + 13)
+#define STR_ENDNOTE (RC_DOCVW_BEGIN + 14)
+#define STR_FTNNOTE (RC_DOCVW_BEGIN + 15)
+
+#define MSG_READONLY_CONTENT (RC_DOCVW_BEGIN + 1)
+
+#define DOCVW_ACT_END MN_READONLY_BACKGROUNDTOGALLERY
+
+#if DOCVW_ACT_END > RC_DOCVW_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+
+#endif
diff --git a/sw/source/ui/docvw/docvw.src b/sw/source/ui/docvw/docvw.src
new file mode 100644
index 000000000000..ed9eb5042091
--- /dev/null
+++ b/sw/source/ui/docvw/docvw.src
@@ -0,0 +1,1216 @@
+/*************************************************************************
+ *
+ * $RCSfile: docvw.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "docvw.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+#define SEPARATOR MenuItem { Separator = TRUE; };
+Menu MN_READONLY_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_READONLY_OPENURL ;
+ HelpID = SID_OPENDOC ;
+ Text = "~Öffnen" ;
+ Text [ English ] = "~Open" ;
+ Text [ english_us ] = "~Open" ;
+ Text [ italian ] = "~Apri" ;
+ Text [ spanish ] = "~Abrir" ;
+ Text [ french ] = "~Ouvrir" ;
+ Text [ dutch ] = "Ope~nen" ;
+ Text [ swedish ] = "~Öppna" ;
+ Text [ danish ] = "~Åbn" ;
+ Text [ portuguese ] = "~Abrir" ;
+ Text [ portuguese_brazilian ] = "~Öffnen" ;
+ Text[ chinese_simplified ] = "´ò¿ª(~O)";
+ Text[ russian ] = "Îòêðûòü";
+ Text[ polish ] = "Otwórz";
+ Text[ japanese ] = "ŠJ‚­(~O)";
+ Text[ chinese_traditional ] = "¶}±ÒÂÂÀÉ(~O)";
+ Text[ arabic ] = "ÝÊÍ";
+ Text[ dutch ] = "Ope~nen";
+ Text[ chinese_simplified ] = "´ò¿ª(~O)";
+ Text[ greek ] = "¢í~ïéãìá";
+ Text[ korean ] = "¿­±â(~O)";
+ Text[ turkish ] = "Aç";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_OPENURLNEW ;
+ HelpID = SID_OPENDOC ;
+ Text = "Öffnen in neuem ~Fenster" ;
+ Text [ English ] = "Open in new ~Window" ;
+ Text [ dutch ] = "Openen in n~ieuw venster" ;
+ Text [ english_us ] = "Open in New Window" ;
+ Text [ italian ] = "Apri in una nuova fines~tra" ;
+ Text [ spanish ] = "Abrir en nueva ~ventana" ;
+ Text [ french ] = "Ouvrir dans une nouvelle ~fenêtre" ;
+ Text [ swedish ] = "Öppna i nytt ~fönster" ;
+ Text [ danish ] = "Åbn i nyt vindue" ;
+ Text [ portuguese ] = "Nova ~janela" ;
+ Text [ portuguese_brazilian ] = "Öffnen in neuem ~Fenster" ;
+ Text[ chinese_simplified ] = "ʹÓÃÐÂÊÓ´°´ò¿ª(~W)";
+ Text[ russian ] = "Îòêðûòü â íîâîì îêíå";
+ Text[ polish ] = "Otwórz w nowym oknie";
+ Text[ japanese ] = "V‚µ‚¢³¨ÝÄÞ³‚ÉŠJ‚­";
+ Text[ chinese_traditional ] = "¥Î·sµøµ¡¶}±Ò(~W)";
+ Text[ arabic ] = "ÝÊÍ Ýí äÇÝÐÉ ÌÏíÏÉ";
+ Text[ dutch ] = "Openen in n~ieuw venster";
+ Text[ chinese_simplified ] = "ʹÓÃÐÂÊÓ´°´ò¿ª(~W)";
+ Text[ greek ] = "¢íïéãìá óå íÝï ~ðáñÜèõñï";
+ Text[ korean ] = "»õâ¿¡¼­ ¿­±â";
+ Text[ turkish ] = "Yeni bir pencerede aç";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_DOWNLOAD ;
+ HelpID = HID_MN_READONLY_DOWNLOAD ;
+ Text = "~Download..." ;
+ Text [ English ] = "~Download..." ;
+ Text [ english_us ] = "Download..." ;
+ Text [ italian ] = "Download..." ;
+ Text [ spanish ] = "~Descargar..." ;
+ Text [ french ] = "~Téléchargement..." ;
+ Text [ dutch ] = "~Download..." ;
+ Text [ swedish ] = "La~dda ned..." ;
+ Text [ danish ] = "~Overfør..." ;
+ Text [ portuguese ] = "Do~wnload..." ;
+ Text [ portuguese_brazilian ] = "~Download..." ;
+ Text[ chinese_simplified ] = "ÏÂÔØ(~D)...";
+ Text[ russian ] = "Çàãðóçêà...";
+ Text[ polish ] = "Pobieranie...";
+ Text[ japanese ] = "ÀÞ³ÝÛ°ÄÞ...";
+ Text[ chinese_traditional ] = "¤U¸ü(~D)...";
+ Text[ arabic ] = "ÊäÒíá...";
+ Text[ dutch ] = "~Download...";
+ Text[ chinese_simplified ] = "ÏÂÔØ(~D)...";
+ Text[ greek ] = "~ËÞøç áñ÷åßùí...";
+ Text[ korean ] = "´Ù¿î·Îµå...";
+ Text[ turkish ] = "Ýndir...";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_EDITDOC ;
+ HelpID = SID_EDITDOC ;
+ Text = "~Bearbeiten" ;
+ Text [ English ] = "~Edit" ;
+ Text [ english_us ] = "~Edit" ;
+ Text [ italian ] = "~Modifica" ;
+ Text [ spanish ] = "~Editar" ;
+ Text [ french ] = "~Edition" ;
+ Text [ dutch ] = "Be~werken" ;
+ Text [ swedish ] = "~Redigera" ;
+ Text [ danish ] = "~Rediger" ;
+ Text [ portuguese ] = "E~ditar" ;
+ Text [ portuguese_brazilian ] = "~Bearbeiten" ;
+ Text[ chinese_simplified ] = "±à¼­(~E)";
+ Text[ russian ] = "~Ïðàâêà";
+ Text[ polish ] = "~Edytuj";
+ Text[ japanese ] = "•ÒW(~‚d)";
+ Text[ chinese_traditional ] = "½s¿è(~E)";
+ Text[ arabic ] = "~ÊÍÑíÑ";
+ Text[ dutch ] = "Be~werken";
+ Text[ chinese_simplified ] = "±à¼­(~E)";
+ Text[ greek ] = "~Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý(~E)";
+ Text[ turkish ] = "D~üzenle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_RELOAD;
+ HelpID = SID_RELOAD;
+ Text = "~Neu laden" ;
+ Text [ English ] = "~Reload" ;
+ Text[ italian ] = "~Ricarica";
+ Text[ portuguese_brazilian ] = "~Reload";
+ Text[ portuguese ] = "~Recarregar";
+ Text[ danish ] = "Indlæs igen";
+ Text[ french ] = "~Recharger";
+ Text[ swedish ] = "~Ladda på nytt";
+ Text[ dutch ] = "~Opnieuw laden";
+ Text[ spanish ] = "~Recargar";
+ Text[ english_us ] = "Re~load";
+ Text[ chinese_simplified ] = "ÖØÐÂ×°ÔØ(~L)";
+ Text[ russian ] = "Ïåðåçàãðóçèòü";
+ Text[ polish ] = "Za³aduj ponownie";
+ Text[ japanese ] = "Ä“Ç‚Ýž‚Ý(~L)";
+ Text[ chinese_traditional ] = "­«·s¸Ë¸ü(~L)";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÍãíá";
+ Text[ dutch ] = "~Opnieuw laden";
+ Text[ chinese_simplified ] = "ÖØÐÂ×°ÔØ(~L)";
+ Text[ greek ] = "Åðá~íáöüñôùóç";
+ Text[ korean ] = "Àç ·Îµå(~L)";
+ Text[ turkish ] = "Yeniden yükle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_RELOAD_FRAME;
+ HelpID = SID_RELOAD;
+ Text = "~Frame neu laden" ;
+ Text [ English ] = "~Reload frame" ;
+ Text[ italian ] = "Ricarica ~frame";
+ Text[ portuguese_brazilian ] = "~Reload frame";
+ Text[ portuguese ] = "~Recarregar frame";
+ Text[ danish ] = "Indlæs frame igen";
+ Text[ french ] = "~Recharger le frame";
+ Text[ swedish ] = "~Ladda ram på nytt";
+ Text[ dutch ] = "~Frame opnieuw laden";
+ Text[ spanish ] = "~Recargar frame";
+ Text[ english_us ] = "Reload Frame";
+ Text[ chinese_simplified ] = "ÖØÐÂ×°ÔØ¿ò¶ÔÏó";
+ Text[ russian ] = "Ïåðåçàãðóçèòü ðàìêó";
+ Text[ polish ] = "Za³aduj ponownie ramkê";
+ Text[ japanese ] = "ÌÚ°Ñ‚ðV‚½‚É“Ç‚Ýž‚Þ";
+ Text[ chinese_traditional ] = "­«·s¸Ë¸ü°T®Ø";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÍãíá ÇáÜ Frame";
+ Text[ dutch ] = "~Frame opnieuw laden";
+ Text[ chinese_simplified ] = "ÖØÐÂ×°ÔØ¿ò¶ÔÏó";
+ Text[ greek ] = "Åðáíáöüñôùóç ~ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ ´Ù½Ã ·Îµå";
+ Text[ turkish ] = "Frame'i yeniden yükle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_SOURCEVIEW ;
+ HelpID = HID_SOURCEVIEW ;
+ Text = "HTM~L - Quelltext" ;
+ Text [ English ] = "~HTML ~source" ;
+ Text [ dutch ] = "~HTML - brontekst" ;
+ Text [ english_us ] = "HT~ML Source" ;
+ Text [ italian ] = "Testo sorgente HTML" ;
+ Text [ spanish ] = "Texto fuente ~HTML" ;
+ Text [ french ] = "Texte source HTM~L" ;
+ Text [ swedish ] = "HTM~L-källtext" ;
+ Text [ danish ] = "~HTML-kildetekst" ;
+ Text [ portuguese ] = "Texto ~fonte HTML" ;
+ Text [ portuguese_brazilian ] = "HTM~L - Quelltext" ;
+ Text[ chinese_simplified ] = "~HTML Ô´Îı¾";
+ Text[ russian ] = "Èñòî÷íèê HTM~L";
+ Text[ polish ] = "Tekst Ÿród³owy HTML";
+ Text[ japanese ] = "HTML¿°½(~M)";
+ Text[ chinese_traditional ] = "~HTML ­ì©lÀÉ";
+ Text[ arabic ] = "HTML ãÕÏÑ";
+ Text[ dutch ] = "~HTML - brontekst";
+ Text[ chinese_simplified ] = "~HTML Ô´Îı¾";
+ Text[ greek ] = "Êåßìåíï ðñïÝëåõóçò HTM~L";
+ Text[ korean ] = "HTML ¼Ò½º(~M)";
+ Text[ turkish ] = "HTM~L kaynak kodu";
+ Text[ language_user1 ] = " ";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = MN_READONLY_BROWSE_STOP ;
+ HelpID = SID_BROWSE_STOP ;
+ Text = "~Stopp" ;
+ Text [ English ] = "~Stop" ;
+ Text [ english_us ] = "~Stop" ;
+ Text [ italian ] = "~Stop" ;
+ Text [ spanish ] = "~Stop" ;
+ Text [ french ] = "~Stop" ;
+ Text [ dutch ] = "~Stop" ;
+ Text [ swedish ] = "S~topp" ;
+ Text [ danish ] = "~Stop" ;
+ Text [ portuguese ] = "S~top" ;
+ Text [ portuguese_brazilian ] = "~Stop" ;
+ Text[ chinese_simplified ] = "ÔÝÍ£";
+ Text[ russian ] = "Ñòîï";
+ Text[ polish ] = "Zatrzymaj";
+ Text[ japanese ] = "’†Ž~(~S)";
+ Text[ chinese_traditional ] = "¼È°±(~T)";
+ Text[ arabic ] = "ÅíÞÇÝ";
+ Text[ dutch ] = "~Stop";
+ Text[ chinese_simplified ] = "ÔÝÍ£";
+ Text[ greek ] = "~ÄéáêïðÞ";
+ Text[ korean ] = "ÁßÁö(~S)";
+ Text[ turkish ] = "Dur";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_BROWSE_BACKWARD ;
+ HelpID = SID_BROWSE_BACKWARD ;
+ Text = "~Rückwärts" ;
+ Text [ English ] = "Bac~kward" ;
+ Text [ english_us ] = "Backward" ;
+ Text [ italian ] = "~Indietro" ;
+ Text [ spanish ] = "~Retroceder" ;
+ Text [ french ] = "~Précédent" ;
+ Text [ dutch ] = "~Achteruit" ;
+ Text [ swedish ] = "~Bakåt" ;
+ Text [ danish ] = "~Tilbage" ;
+ Text [ portuguese ] = "~Anterior" ;
+ Text [ portuguese_brazilian ] = "~Rückwärts" ;
+ Text[ chinese_simplified ] = "Ïòºó(~B)";
+ Text[ russian ] = "Íàçàä";
+ Text[ polish ] = "Wstecz";
+ Text[ japanese ] = "Œã•û‚Ö";
+ Text[ chinese_traditional ] = "¦V«á(~B)";
+ Text[ arabic ] = "ááÎáÝ";
+ Text[ language_user1 ] = "Áíôßóôñïöá ;";
+ Text[ dutch ] = "~Achteruit";
+ Text[ chinese_simplified ] = "Ïòºó(~B)";
+ Text[ greek ] = "~Ðßóù";
+ Text[ korean ] = "µÚ·Î";
+ Text[ turkish ] = "Geri";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_BROWSE_FORWARD ;
+ HelpID = SID_BROWSE_FORWARD ;
+ Text = "~Vorwärts" ;
+ Text [ English ] = "Forward" ;
+ Text [ english_us ] = "~Forward" ;
+ Text [ italian ] = "A~vanti" ;
+ Text [ spanish ] = "~Avanzar" ;
+ Text [ french ] = "~Suivant" ;
+ Text [ dutch ] = "~Vooruit" ;
+ Text [ swedish ] = "~Framåt" ;
+ Text [ danish ] = "~Næste" ;
+ Text [ portuguese ] = "~Seguinte" ;
+ Text [ portuguese_brazilian ] = "~Vorwärts" ;
+ Text[ chinese_simplified ] = "ÏòÇ°(~F)";
+ Text[ russian ] = "Âïåðåä";
+ Text[ polish ] = "Do przodu";
+ Text[ japanese ] = "i‚Þ(~F)";
+ Text[ chinese_traditional ] = "¦V«e(~F)";
+ Text[ arabic ] = "ááÃãÇã";
+ Text[ language_user1 ] = " ";
+ Text[ dutch ] = "~Vooruit";
+ Text[ chinese_simplified ] = "ÏòÇ°(~F)";
+ Text[ greek ] = "Åìðñü~ò";
+ Text[ korean ] = "¾ÕÀ¸·Î(~F)";
+ Text[ turkish ] = "Ýleri";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = MN_READONLY_CREATELINK ;
+ HelpID = SID_CREATELINK ;
+ /* ### ACHTUNG: Neuer Text in Resource? Verknüpfung ~hinzufügen : Bookmark ~hinzufügen */
+ /* ### ACHTUNG: Neuer Text in Resource? Verknüpfung ~hinzufügen : Bookmark ~hinzufügen */
+ Text = "Verknüpfung ~hinzufügen" ;
+ Text [ English ] = "~Add Link" ;
+ Text [ dutch ] = "Koppeling ~toevoegen" ;
+ Text [ english_us ] = "~Add Link" ;
+ Text [ swedish ] = "Lägg till ~länk" ;
+ Text [ danish ] = "Tilføj kæde" ;
+ Text [ italian ] = "Aggiungi collegamento" ;
+ Text [ spanish ] = "Añadir ~vínculo" ;
+ Text [ french ] = "Ajouter un l~ien" ;
+ Text [ portuguese ] = "Adicionar ~ligação" ;
+ Text [ portuguese_brazilian ] = "Verknüpfung ~hinzufügen" ;
+ Text[ chinese_simplified ] = "ÐÂÔöÁ´½Ó(~A)";
+ Text[ russian ] = "Äîáàâèòü ññûëêó";
+ Text[ polish ] = "Dodaj ³¹cze";
+ Text[ japanese ] = "Øݸ‚̒ljÁ(~A)";
+ Text[ chinese_traditional ] = "·s¼W±¶®|(~A)";
+ Text[ arabic ] = "ÅÖÇÝÉ ÇÑÊÈÇØ";
+ Text[ dutch ] = "Koppeling ~toevoegen";
+ Text[ chinese_simplified ] = "ÐÂÔöÁ´½Ó(~A)";
+ Text[ greek ] = "ÐñïóèÞê~ç óýíäåóçò";
+ Text[ korean ] = "¿¬°á Ãß°¡(~A)";
+ Text[ turkish ] = "Baðlantý ekle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_CREATEGRAPHIKLINK ;
+ HelpID = HID_MN_READONLY_CREATEGRAPHIKLINK ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Verknüpfung auf Grafik hinzufügen : B~ookmark auf Grafik hinzufügen */
+ /* ### ACHTUNG: Neuer Text in Resource? ~Verknüpfung auf Grafik hinzufügen : B~ookmark auf Grafik hinzufügen */
+ Text = "~Verknüpfung auf Grafik hinzufügen" ;
+ Text [ English ] = "Add ~Link to Image" ;
+ Text [ dutch ] = "~Koppeling aan afbeelding toevoegen" ;
+ Text [ english_us ] = "~Add Link to Picture" ;
+ Text [ swedish ] = "~Lägga till länk på grafik" ;
+ Text [ danish ] = "Tilføj kæde til billede" ;
+ Text [ italian ] = "Aggiungi collegamento al grafico" ;
+ Text [ spanish ] = "Añadir ~vínculo a imagen" ;
+ Text [ french ] = "Ajouter un l~ien à l'image" ;
+ Text [ portuguese ] = "Adicionar ~ligação à imagem" ;
+ Text [ portuguese_brazilian ] = "~Verknüpfung auf Grafik hinzufügen" ;
+ Text[ chinese_simplified ] = "ÐÂÔöͼÐεÄÁ´½Ó(~A)";
+ Text[ russian ] = "Äîáàâèòü ññûëêó íà ðèñóíîê";
+ Text[ polish ] = "Dodaj ³¹cze do grafiki";
+ Text[ japanese ] = "}‚ÉØݸ‚ð’ljÁ‚·‚é(~A)";
+ Text[ chinese_traditional ] = "·s¼W¹Ï¤ùªº±¶®|(~A)";
+ Text[ arabic ] = "ÅÖÇÝÉ ÇÑÊÈÇØ áÕæÑÉ";
+ Text[ dutch ] = "~Koppeling aan afbeelding toevoegen";
+ Text[ chinese_simplified ] = "ÐÂÔöͼÐεÄÁ´½Ó(~A)";
+ Text[ greek ] = "ÐñïóèÞêç óýíäåóçò óå ãñá~öéêü";
+ Text[ korean ] = "±×¸²¿¡ ¿¬°á Ãß°¡(~A)";
+ Text[ turkish ] = "Baðlantýyý grafiðe ekle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_SAVEGRAPHIC ;
+ HelpID = HID_MN_READONLY_SAVEGRAPHIC ;
+ Text = "~Grafik speichern..." ;
+ Text [ English ] = "Save ~Image..." ;
+ Text [ dutch ] = "Afbeelding ops~laan..." ;
+ Text [ italian ] = "~Salva immagine..." ;
+ Text [ spanish ] = "Guardar ~imagen..." ;
+ Text [ french ] = "Enregistrer l'~image..." ;
+ Text [ english_us ] = "Save Graphics..." ;
+ Text [ swedish ] = "~Spara grafik..." ;
+ Text [ danish ] = "~Gem billede..." ;
+ Text [ portuguese ] = "~Guardar imagem..." ;
+ Text [ portuguese_brazilian ] = "~Grafik speichern..." ;
+ Text[ chinese_simplified ] = "´æÅÌͼÐÎ(~S)...";
+ Text[ russian ] = "Ñîõðàíèòü ðèñóíîê...";
+ Text[ polish ] = "Zapisz grafikê...";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì•Û‘¶...";
+ Text[ chinese_traditional ] = "Àx¦s¹Ï¤ù(~S)...";
+ Text[ arabic ] = "...ÍÝÙ ÇáÕæÑÉ";
+ Text[ dutch ] = "Afbeelding ops~laan...";
+ Text[ chinese_simplified ] = "´æÅÌͼÐÎ(~S)...";
+ Text[ greek ] = "ÁðïèÞêåõóç ~ãñáöéêïý...";
+ Text[ korean ] = "±×·¡ÇÈ ÀúÀå...";
+ Text[ turkish ] = "Grafiði kaydet...";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_GRAPHICTOGALLERY ;
+ HelpID = HID_MN_READONLY_GRAPHICTOGALLERY ;
+ Text = "Grafik hinzuf~ügen" ;
+ Text [ English ] = "A~dd Image" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_READONLY_TOGALLERYLINK ;
+ HelpID = HID_MN_READONLY_TOGALLERYLINK ;
+ Text = "Als Link" ;
+ Text [ english ] = "as link" ;
+ Text [ english_us ] = "As Link" ;
+ Text [ portuguese_brazilian ] = "Als Link" ;
+ Text [ swedish ] = "Som länk" ;
+ Text [ danish ] = "Som kæde" ;
+ Text [ italian ] = "Come link" ;
+ Text [ spanish ] = "Como vínculo" ;
+ Text [ french ] = "Comme lien" ;
+ Text [ dutch ] = "Als koppeling" ;
+ Text [ portuguese ] = "Como ligação" ;
+ Text[ chinese_simplified ] = "Á´½Ó";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Êàê ññûëêó";
+ Text[ polish ] = "Jako ³¹cze";
+ Text[ japanese ] = "Øݸ‚Æ‚µ‚Ä";
+ Text[ chinese_traditional ] = "±¶®|";
+ Text[ arabic ] = "ßÇÑÊÈÇØ";
+ Text[ dutch ] = "Als koppeling";
+ Text[ chinese_simplified ] = "Á´½Ó";
+ Text[ greek ] = "Ùò óýíäåóç";
+ Text[ korean ] = "¿¬°á·Î";
+ Text[ turkish ] = "Baðlantý olarak";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_TOGALLERYCOPY ;
+ HelpID = HID_MN_READONLY_TOGALLERYCOPY ;
+ Text = "Kopieren" ;
+ Text [ english ] = "copy" ;
+ Text [ english_us ] = "Copy" ;
+ Text [ portuguese_brazilian ] = "Kopieren" ;
+ Text [ swedish ] = "Kopiera" ;
+ Text [ danish ] = "Kopier" ;
+ Text [ italian ] = "Copia" ;
+ Text [ spanish ] = "Copiar" ;
+ Text [ french ] = "Copier" ;
+ Text [ dutch ] = "Kopiëren" ;
+ Text [ portuguese ] = "Copiar" ;
+ Text[ chinese_simplified ] = "¸´ÖÆ";
+ Text[ russian ] = "Êîïèðîâàòü";
+ Text[ polish ] = "Kopiuj";
+ Text[ japanese ] = "ºËß°";
+ Text[ chinese_traditional ] = "½Æ»s";
+ Text[ arabic ] = "äÓÎ";
+ Text[ dutch ] = "Kopiëren";
+ Text[ chinese_simplified ] = "¸´ÖÆ";
+ Text[ greek ] = "ÁíôéãñáöÞ";
+ Text[ korean ] = "º¹»ç";
+ Text[ turkish ] = "Kopyala";
+ Text[ language_user1 ] = " ";
+ };
+ SEPARATOR
+ };
+ };
+ Text [ portuguese ] = "~Adicionar imagem" ;
+ Text [ english_us ] = "Add Graphics" ;
+ Text [ portuguese_brazilian ] = "Grafik hinzuf~ügen" ;
+ Text [ swedish ] = "Lägg till ~grafik" ;
+ Text [ danish ] = "Tilføj billede" ;
+ Text [ italian ] = "Aggi~ungi immagine" ;
+ Text [ spanish ] = "~Añadir imagen" ;
+ Text [ french ] = "~Ajouter une image" ;
+ Text [ dutch ] = "Afbeelding t~oevoegen" ;
+ Text[ chinese_simplified ] = "ÐÂÔöͼÐÎ(~D)";
+ Text[ russian ] = "Äîáàâèòü ðèñóíîê";
+ Text[ polish ] = "Dodaj grafikê";
+ Text[ japanese ] = "¸Þ×̨¯¸‚̒ljÁ";
+ Text[ chinese_traditional ] = "·s¼W¹Ï¤ù(~D)";
+ Text[ arabic ] = "ÅÖÇÝÉ ÑÓæã";
+ Text[ dutch ] = "Afbeelding t~oevoegen";
+ Text[ chinese_simplified ] = "ÐÂÔöͼÐÎ(~D)";
+ Text[ greek ] = "Ðñïó~èÞêç ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ Ãß°¡";
+ Text[ turkish ] = "Grafik ekle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_SAVEBACKGROUND ;
+ HelpID = HID_MN_READONLY_SAVEBACKGROUND ;
+ Text = "H~intergrund speichern..." ;
+ Text [ English ] = "Save ~Background..." ;
+ Text [ dutch ] = "Achte~rgrond opslaan..." ;
+ Text [ english_us ] = "Save Background..." ;
+ Text [ swedish ] = "Spara ~bakgrund..." ;
+ Text [ danish ] = "Gem baggrunden..." ;
+ Text [ italian ] = "Salva sfondo..." ;
+ Text [ spanish ] = "Guardar ~fondo..." ;
+ Text [ french ] = "Enregistrer l'~arrière-plan..." ;
+ Text [ portuguese ] = "Guardar plano de f~undo..." ;
+ Text [ portuguese_brazilian ] = "H~intergrund speichern..." ;
+ Text[ chinese_simplified ] = "´æÅ̱³¾°(~B)...";
+ Text[ russian ] = "Ñîõðàíèòü ôîí";
+ Text[ polish ] = "Zapisz t³o";
+ Text[ japanese ] = "”wŒi‚Ì•Û‘¶...";
+ Text[ chinese_traditional ] = "Àx¦s­I´º(~B)...";
+ Text[ arabic ] = "ÍÝÙ ÇáÎáÝíÉ...";
+ Text[ dutch ] = "Achte~rgrond opslaan...";
+ Text[ chinese_simplified ] = "´æÅ̱³¾°(~B)...";
+ Text[ greek ] = "ÁðïèÞêåõó~ç öüíôïõ...";
+ Text[ korean ] = "¹è°æ ÀúÀå...";
+ Text[ turkish ] = "Artalaný kaydet";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_BACKGROUNDTOGALLERY ;
+ HelpID = HID_MN_READONLY_BACKGROUNDTOGALLERY ;
+ Text = "H~intergrund hinzufügen" ;
+ Text [ English ] = "Add ~Background" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_READONLY_TOGALLERYLINK ;
+ HelpID = HID_MN_READONLY_TOGALLERYLINK ;
+ Text = "Als Link" ;
+ Text [ english ] = "as link" ;
+ Text [ english_us ] = "As Link" ;
+ Text [ portuguese_brazilian ] = "Als Link" ;
+ Text [ swedish ] = "Som länk" ;
+ Text [ danish ] = "Som kæde" ;
+ Text [ italian ] = "Come link" ;
+ Text [ spanish ] = "Como vínculo" ;
+ Text [ french ] = "Comme lien" ;
+ Text [ dutch ] = "Als koppeling" ;
+ Text [ portuguese ] = "Como ligação" ;
+ Text[ chinese_simplified ] = "Á´½Ó";
+ Text[ russian ] = "Êàê ññûëêó";
+ Text[ polish ] = "Jako ³¹cze";
+ Text[ japanese ] = "Øݸ‚Æ‚µ‚Ä";
+ Text[ chinese_traditional ] = "±¶®|";
+ Text[ arabic ] = "ßÇÑÊÈÇØ";
+ Text[ dutch ] = "Als koppeling";
+ Text[ chinese_simplified ] = "Á´½Ó";
+ Text[ greek ] = "Ùò óýíäåóç";
+ Text[ korean ] = "¿¬°á·Î";
+ Text[ turkish ] = "Baðlantý olarak";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_TOGALLERYCOPY ;
+ HelpID = HID_MN_READONLY_TOGALLERYCOPY ;
+ Text = "Kopieren" ;
+ Text [ english ] = "copy" ;
+ Text [ english_us ] = "Copy" ;
+ Text [ portuguese_brazilian ] = "Kopieren" ;
+ Text [ swedish ] = "Kopiera" ;
+ Text [ danish ] = "Kopier" ;
+ Text [ italian ] = "Copia" ;
+ Text [ spanish ] = "Copiar" ;
+ Text [ french ] = "Copier" ;
+ Text [ dutch ] = "Kopiëren" ;
+ Text [ portuguese ] = "Copiar" ;
+ Text[ chinese_simplified ] = "¸´ÖÆ";
+ Text[ russian ] = "Êîïèðîâàòü";
+ Text[ polish ] = "Kopiuj";
+ Text[ japanese ] = "ºËß°";
+ Text[ chinese_traditional ] = "½Æ»s";
+ Text[ arabic ] = "äÓÎ";
+ Text[ dutch ] = "Kopiëren";
+ Text[ chinese_simplified ] = "¸´ÖÆ";
+ Text[ greek ] = "ÁíôéãñáöÞ";
+ Text[ korean ] = "º¹»ç";
+ Text[ turkish ] = "Kopyala";
+ Text[ language_user1 ] = " ";
+ };
+ SEPARATOR
+ };
+ };
+ Text [ english_us ] = "Add Background" ;
+ Text [ portuguese_brazilian ] = "H~intergrund hinzufügen" ;
+ Text [ swedish ] = "Lägg till ~bakgrund" ;
+ Text [ danish ] = "Tilføj baggrund" ;
+ Text [ italian ] = "Aggiungi sfon~do" ;
+ Text [ spanish ] = "Añadir ~fondo" ;
+ Text [ french ] = "Aj~outer un arrière-plan" ;
+ Text [ dutch ] = "A~chtergrond toevoegen" ;
+ Text [ portuguese ] = "Adicionar plano de ~fundo" ;
+ Text[ chinese_simplified ] = "ÐÂÔö±³¾°(~B)";
+ Text[ russian ] = "Âñòàâèòü ôîí";
+ Text[ polish ] = "Dodaj t³o";
+ Text[ japanese ] = "”wŒi‚̒ljÁ";
+ Text[ chinese_traditional ] = "·s¼W­I´º(~B)";
+ Text[ arabic ] = "ÅÖÇÝÉ ÎáÝíÉ";
+ Text[ dutch ] = "A~chtergrond toevoegen";
+ Text[ chinese_simplified ] = "ÐÂÔö±³¾°(~B)";
+ Text[ greek ] = "ÐñïóèÞê~ç öüíôïõ";
+ Text[ korean ] = "¹è°æ Ãß°¡";
+ Text[ turkish ] = "Artalaný ekle";
+ Text[ language_user1 ] = " ";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = MN_READONLY_COPYLINK ;
+ HelpID = HID_MN_READONLY_COPYLINK ;
+ Text = "~Link kopieren" ;
+ Text [ English ] = "~Copy Link" ;
+ Text [ dutch ] = "~Koppeling kopiëren" ;
+ Text [ english_us ] = "Copy ~Link" ;
+ Text [ italian ] = "Copia link" ;
+ Text [ spanish ] = "~Copiar vínculo" ;
+ Text [ french ] = "Copier le ~lien" ;
+ Text [ swedish ] = "Kopiera l~änk" ;
+ Text [ danish ] = "Kopier kæde" ;
+ Text [ portuguese ] = "Copiar ~ligação" ;
+ Text [ portuguese_brazilian ] = "~Link kopieren" ;
+ Text[ chinese_simplified ] = "¸´ÖÆÁ´½Ó(~L)";
+ Text[ russian ] = "Êîïèðîâàòü ññûëêó";
+ Text[ polish ] = "Kopiuj ³¹cze";
+ Text[ japanese ] = "Øݸ‚̺Ëß°(~L)";
+ Text[ chinese_traditional ] = "½Æ»s±¶®|(~L)";
+ Text[ arabic ] = "äÓÎ ÇáÇÑÊÈÇØ";
+ Text[ dutch ] = "~Koppeling kopiëren";
+ Text[ chinese_simplified ] = "¸´ÖÆÁ´½Ó(~L)";
+ Text[ greek ] = "ÁíôéãñáöÞ ~óýíäåóçò";
+ Text[ korean ] = "¿¬°á º¹»ç(~L)";
+ Text[ turkish ] = "Baðlantýyý kopyala";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_COPYGRAPHIC ;
+ HelpID = HID_MN_READONLY_COPYGRAPHIC ;
+ /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
+ /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
+ /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
+ Text = "Grafik ~kopieren" ;
+ Text [ English ] = "C~opy ™mage" ;
+ Text [ dutch ] = "Afbeelding ko~piëren" ;
+ Text [ italian ] = "~Copia immagine" ;
+ Text [ spanish ] = "~Copiar imagen" ;
+ Text [ french ] = "~Copier une image" ;
+ Text [ english_us ] = "Copy ~Graphics" ;
+ Text [ swedish ] = "Kopiera ~grafik" ;
+ Text [ danish ] = "Kopier billede" ;
+ Text [ portuguese ] = "Co~piar imagem" ;
+ Text [ portuguese_brazilian ] = "Grafik ~kopieren" ;
+ Text[ chinese_simplified ] = "¸´ÖÆͼÐÎ(~G)";
+ Text[ russian ] = "Êîïèðîâàòü ðèñóíîê";
+ Text[ polish ] = "Kopiuj grafikê";
+ Text[ japanese ] = "¸Þ×̨¯¸‚̺Ëß°(~G)";
+ Text[ chinese_traditional ] = "½Æ»s¹Ï¤ù(~G)";
+ Text[ arabic ] = "äÓÎ ÇáÕæÑÉ";
+ Text[ dutch ] = "Afbeelding ko~piëren";
+ Text[ chinese_simplified ] = "¸´ÖÆͼÐÎ(~G)";
+ Text[ greek ] = "ÁíôéãñáöÞ ãñáöé~êþí";
+ Text[ korean ] = "±×·¡ÇÈ º¹»ç(~G)";
+ Text[ turkish ] = "Grafiði kopyala";
+ Text[ language_user1 ] = " ";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = MN_READONLY_LOADGRAPHIC ;
+ HelpID = HID_MN_READONLY_LOADGRAPHIC ;
+ Text = "G~rafiken laden" ;
+ Text [ English ] = "Load Images" ;
+ Text [ dutch ] = "A~fbeeldingen laden" ;
+ Text [ english_us ] = "Load Graphics" ;
+ Text [ swedish ] = "Ladda g~rafik" ;
+ Text [ danish ] = "Indlæs grafik" ;
+ Text [ italian ] = "Ca~rica immagine" ;
+ Text [ spanish ] = "Cargar ~imágenes" ;
+ Text [ french ] = "Charger des i~mages" ;
+ Text [ portuguese ] = "~Carregar imagens" ;
+ Text [ portuguese_brazilian ] = "G~rafiken laden" ;
+ Text[ chinese_simplified ] = "×°ÔØͼÐÎ";
+ Text[ russian ] = "Çàãðóçèòü ðèñóíêè";
+ Text[ polish ] = "Za³aduj grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸½‚Ì“Ç‚Ýž‚Ý";
+ Text[ chinese_traditional ] = "¸Ë¸ü¹Ï¤ù";
+ Text[ arabic ] = "ÊÍãíá ÇáÕæÑ";
+ Text[ dutch ] = "A~fbeeldingen laden";
+ Text[ chinese_simplified ] = "×°ÔØͼÐÎ";
+ Text[ greek ] = "Öü~ñôùóç ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ ·Îµå";
+ Text[ turkish ] = "Grafikleri yükle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_GRAPHICOFF ;
+ HelpID = HID_MN_READONLY_GRAPHICOFF ;
+ Text = "Grafiken ~ausschalten" ;
+ Text [ English ] = "Images ~off" ;
+ Text [ italian ] = "~Nascondi le immagini" ;
+ Text [ spanish ] = "Desactivar ~imágenes" ;
+ Text [ french ] = "~Désactiver des images" ;
+ Text [ dutch ] = "~Afbeeldingen uitschakelen" ;
+ Text [ english_us ] = "Graphics Off" ;
+ Text [ swedish ] = "~Stäng av grafiker" ;
+ Text [ danish ] = "~Sluk billeder" ;
+ Text [ portuguese ] = "~Ocultar imagens" ;
+ Text [ portuguese_brazilian ] = "Grafiken ~ausschalten" ;
+ Text[ chinese_simplified ] = "ÒþÈëͼÐÎ";
+ Text[ russian ] = "Îòêëþ÷èòü ðèñóíêè";
+ Text[ polish ] = "Wy³¹cz grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸½‚Ì”ñ•\\Ž¦";
+ Text[ chinese_traditional ] = "Áô¤J¹Ï¤ù";
+ Text[ arabic ] = "ÅÎÝÇÁ ÇáÕæÑ";
+ Text[ dutch ] = "~Afbeeldingen uitschakelen";
+ Text[ chinese_simplified ] = "ÒþÈëͼÐÎ";
+ Text[ greek ] = "~Áðåíåñãïðïßçóç ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ ´Ý±â";
+ Text[ turkish ] = "Grafikleri kapat";
+ Text[ language_user1 ] = " ";
+ };
+#ifdef WNT
+ MenuItem
+ {
+ Identifier = MN_READONLY_PLUGINOFF ;
+ HelpID = HID_MN_READONLY_PLUGINOFF ;
+ Text = "~PlugIns ausschalten" ;
+ Text [ English ] = "~PlugIns off" ;
+ Text [ english_us ] = "Plug-Ins Off" ;
+ Text [ italian ] = "Disattiva i PlugIn" ;
+ Text [ spanish ] = "Desactivar ~Plug-ins" ;
+ Text [ french ] = "Désactiver les ~Plug-Ins" ;
+ Text [ dutch ] = "~PlugIns uitschakelen" ;
+ Text [ swedish ] = "Stäng av ~PlugIns" ;
+ Text [ danish ] = "Sluk ~PlugIns" ;
+ Text [ portuguese ] = "Desactivar ~PlugIns" ;
+ Text [ portuguese_brazilian ] = "~PlugIns ausschalten" ;
+ Text[ chinese_simplified ] = "ʧ»î ~Plug-In";
+ Text[ russian ] = "Îòêëþ÷èòü Plug-Ins";
+ Text[ polish ] = "Wy³¹cz dodatki PlugIn";
+ Text[ japanese ] = "Ìß×¸Þ²Ý µÌ";
+ Text[ chinese_traditional ] = "¥¢¬¡ ~PlugIn";
+ Text[ arabic ] = "ÅíÞÇÝ Plug-Ins";
+ Text[ dutch ] = "~PlugIns uitschakelen";
+ Text[ chinese_simplified ] = "ʧ»î ~Plug-In";
+ Text[ greek ] = "Áðåíåñãïðïßçóç ~Plug-Ins";
+ Text[ korean ] = "Ç÷¯±×ÀÎ Á¾·á";
+ Text[ turkish ] = "Plug-in'leri kapat";
+ Text[ language_user1 ] = " ";
+ };
+#endif
+ };
+};
+String STR_EXPORT_GRAFIK_TITLE
+{
+ Text = "Grafik-Export" ;
+ Text [ English ] = "Image export" ;
+ Text [ dutch ] = "Afbeelding exporteren" ;
+ Text [ italian ] = "Esporta immagine" ;
+ Text [ spanish ] = "Exportar imagen" ;
+ Text [ french ] = "Export d'image" ;
+ Text [ english_us ] = "Graphics Export" ;
+ Text [ swedish ] = "Grafik-export" ;
+ Text [ danish ] = "Billedeksport" ;
+ Text [ portuguese ] = "Exportar imagem" ;
+ Text [ portuguese_brazilian ] = "Grafik-Export" ;
+ Text[ chinese_simplified ] = "ͼÐÎ-Êä³ö";
+ Text[ russian ] = "Ýêñïîðò ðèñóíêà";
+ Text[ polish ] = "Eksport grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸ ´¸½Îß°Ä";
+ Text[ chinese_traditional ] = "¹Ï¤ù-¿é¥X";
+ Text[ arabic ] = "ÊÕÏíÑ ÕæÑ";
+ Text[ dutch ] = "Afbeelding exporteren";
+ Text[ chinese_simplified ] = "ͼÐÎ-Êä³ö";
+ Text[ greek ] = "ÅîáãùãÞ ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ º¸³»±â";
+ Text[ turkish ] = "Grafik ver";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_OK
+{
+ Text = "Betätigen Sie die linke Maustaste um die Rahmen zu verketten." ;
+ Text [ english ] = "Klick the left mouse button to chain the Frames." ;
+ Text [ portuguese ] = "Clique no botão esquerdo do rato para ligar as molduras." ;
+ Text [ english_us ] = "Click the left mouse button to link the frames." ;
+ Text [ portuguese_brazilian ] = "Betätigen Sie die linke Maustaste um die Rahmen zu verketten." ;
+ Text [ swedish ] = "Klicka på den vänstra musknappen för att länka samman ramen." ;
+ Text [ danish ] = "Klik på venstre museknap for at kæde rammerne." ;
+ Text [ italian ] = "Per collegare la cornice cliccate con il tasto sinistro del mouse." ;
+ Text [ spanish ] = "Pulse el botón izquierdo del ratón para vincular las marcos." ;
+ Text [ french ] = "Cliquez sur le bouton gauche de la souris pour lier les cadres." ;
+ Text [ dutch ] = "Gebruik de linker muistoets om het kader te koppelen." ;
+ Text[ chinese_simplified ] = "ÇëÄúͨ¹ý°´»÷Êó±ê×ó¼üÀ´Á¬½Ó¿ò¡£";
+ Text[ russian ] = "Íàæìèòå ëåâóþ êëàâèøó ìûøè äëÿ ñâÿçè ðàìêè.";
+ Text[ polish ] = "Kliknij lewy przycisk myszy, by po³¹czyæ ramki.";
+ Text[ japanese ] = "˜g‚ð‚‚Ȃ®‚½‚߂ɶ‚Ìϳ½ÎÞÀÝ‚ð¸Ø¯¸‚µ‚ĉº‚³‚¢";
+ Text[ chinese_traditional ] = "½Ð±z«ö¥H¤U·Æ¹«ªº¥ªÁä¡M³sµ²°T®Ø¡C";
+ Text[ arabic ] = ".ÇäÞÑ ÇáÒÑ ÇáÃíÓÑ ááãÇæÓ áÑÈØ ÇáÃØÑ";
+ Text[ dutch ] = "Gebruik de linker muistoets om het kader te koppelen.";
+ Text[ chinese_simplified ] = "ÇëÄúͨ¹ý°´»÷Êó±ê×ó¼üÀ´Á¬½Ó¿ò¡£";
+ Text[ greek ] = "ÐáôÞóôå ôï áñéóôåñü ðëÞêôñï ôïõ ðïíôéêéïý ãéá íá óõíäåèïýí ôá ðåñéãñÜììáôá.";
+ Text[ korean ] = "ÇÁ·¹ÀÓ¿¡ ¿¬°áÇϱâ À§Çؼ­ ¿ÞÂÊ ¸¶¿ì½º ¹öÆ°À» Ŭ¸¯Çϼ¼¿ä.";
+ Text[ turkish ] = "Çerçeveler arasý baðlantý oluþturmak için sol fare tuþunu kullanýn.";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_NOT_EMPTY
+{
+ Text = "Der Zielrahmen ist nicht leer." ;
+ Text [ english ] = "The target is not empty." ;
+ Text [ portuguese ] = "A moldura de destino não está vazia." ;
+ Text [ english_us ] = "Target frame not empty." ;
+ Text [ portuguese_brazilian ] = "Der Zielrahmen ist nicht leer." ;
+ Text [ swedish ] = "Målramen är inte tom." ;
+ Text [ danish ] = "Målrammen er ikke tom." ;
+ Text [ italian ] = "La cornice di destinazione non è vuota." ;
+ Text [ spanish ] = "El marco destino no está vacío." ;
+ Text [ french ] = "Le cadre cible n'est pas vide." ;
+ Text [ dutch ] = "Het doelkader is niet leeg." ;
+ Text[ chinese_simplified ] = "Ä¿±ê¿ò²»Êǿյġ£";
+ Text[ russian ] = "Öåëåâàÿ ðàìêà íå ÿâëÿåòñÿ ïóñòîé.";
+ Text[ polish ] = "Ramka docelowa nie jest pusta.";
+ Text[ japanese ] = "–Ú•W‚̘g‚Í‹ó‚Å‚·";
+ Text[ chinese_traditional ] = "¥Ø¼Ð¤è¶ô¤£¬OªÅªº¡C";
+ Text[ arabic ] = ".ÇáÅØÇÑ ÇáåÏÝ ÛíÑ ÝÇÑÛ";
+ Text[ dutch ] = "Het doelkader is niet leeg.";
+ Text[ chinese_simplified ] = "Ä¿±ê¿ò²»Êǿյġ£";
+ Text[ greek ] = "Ôï ðëáßóéï ðñïïñéóìïý äåí åßíáé êåíü.";
+ Text[ korean ] = "¸ñÇ¥ ÇÁ·¹ÀÓÀÌ ºñ¾îÀÖÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Hedef çerçeve boþ deðil.";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_IS_IN_CHAIN
+{
+ Text = "Der Zielrahmen ist bereits verkettet." ;
+ Text [ english ] = "The target is already target of a chain." ;
+ Text [ portuguese ] = "A moldura de destino já está ligada." ;
+ Text [ english_us ] = "Target frame is already linked." ;
+ Text [ portuguese_brazilian ] = "Der Zielrahmen ist bereits verkettet." ;
+ Text [ swedish ] = "Målramen är redan länkad. " ;
+ Text [ danish ] = "Målrammen er allerede sammenkædet." ;
+ Text [ italian ] = "La cornice di destinazione è già collegata." ;
+ Text [ spanish ] = "El marco destino ya está vinculado." ;
+ Text [ french ] = "Le cadre cible est déjà lié." ;
+ Text [ dutch ] = "Het doelkader is reeds gekoppeld." ;
+ Text[ chinese_simplified ] = "ÒѾ­Á´½ÓÄ¿±ê¿ò¡£";
+ Text[ russian ] = "Öåëåàâÿ ðàìêà óæå ñâÿçàíà.";
+ Text[ polish ] = "Ramka docelowa jest ju¿ po³¹czona.";
+ Text[ japanese ] = "–Ú•W‚̘g‚Í‚·‚łɂ‚Ȃª‚ê‚Ä‚¢‚Ü‚·";
+ Text[ chinese_traditional ] = "¤w¸g³sµ²¥Ø¼Ð¤è¶ô¡C";
+ Text[ arabic ] = ".ÇáÅØÇÑ ÇáåÏÝ ãÑÊÈØ ÈÇáÝÚá";
+ Text[ dutch ] = "Het doelkader is reeds gekoppeld.";
+ Text[ chinese_simplified ] = "ÒѾ­Á´½ÓÄ¿±ê¿ò¡£";
+ Text[ greek ] = "Ôï ðëáßóéï ðñïïñéóìïý åßíáé Þäç óõíäåäåìÝíï.";
+ Text[ korean ] = "¸ñÇ¥ ÇÁ·¹ÀÓÀÌ ÀÌ¹Ì ¿¬°á µÇ¾î ÀÖ½À´Ï´Ù.";
+ Text[ turkish ] = "Hedef çerçeve baðlantýsý oluþturulmuþ durumda.";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_WRONG_AREA
+{
+ Text = "Der Zielrahmen steht in einem Bereich in dem keine Verkettung möglich ist." ;
+ Text [ english ] = "The target is in an invalid area." ;
+ Text [ portuguese ] = "A moldura de destino encontra-se numa área que não permite a ligação." ;
+ Text [ english_us ] = "The target frame for the link is in an invalid area." ;
+ Text [ portuguese_brazilian ] = "Der Zielrahmen steht in einem Bereich in dem keine Verkettung möglich ist." ;
+ Text [ swedish ] = "Målramen finns i ett område där ingen länkning är möjlig. " ;
+ Text [ danish ] = "Målrammen befinder sig i et område hvor sammenkædning ikke er mulig." ;
+ Text [ italian ] = "La cornice di destinazione si trova in un'area nella quale non sono possibili collegamenti." ;
+ Text [ spanish ] = "El marco destino se encuentra en un área en la que los vínculos no son posibles." ;
+ Text [ french ] = "Le cadre-cible se trouve dans une section ne pouvant pas faire l'objet d'un lien." ;
+ Text [ dutch ] = "Het bronkader staat in een bereik waarin geen koppeling mogelijk is." ;
+ Text[ chinese_simplified ] = "Ä¿±ê¿ò´¦ÓÚÒ»¸öÎÞ·¨Á´½ÓµÄÇøÓò¡£";
+ Text[ russian ] = "Öåëåâàÿ ðàìêà íàõîäèòñÿ â îáëàñòè, â êîòîðîé ñâÿçü íåâîçìîæíà.";
+ Text[ polish ] = "Ramka docelowa znajduje siê w obszarze, w którym niemo¿liwe jest po³¹czenie.";
+ Text[ japanese ] = "–Ú•W‚̘g‚͂‚Ȃ®‚±‚Æ‚Ì‚Å‚«‚È‚¢”͈͂ɂ ‚è‚Ü‚·";
+ Text[ chinese_traditional ] = "¥Ø¼Ð°T®Ø³B©ó¤@­ÓµLªk°T®Øªº°Ï°ì¡C";
+ Text[ arabic ] = ".íÊæÇÌÏ ÇáÅØÇÑ ÇáåÏÝ Ýí ãäØÞÉ áÇ íãßä Úãá ÊÓáÓá ÝíåÇ";
+ Text[ dutch ] = "Het bronkader staat in een bereik waarin geen koppeling mogelijk is.";
+ Text[ chinese_simplified ] = "Ä¿±ê¿ò´¦ÓÚÒ»¸öÎÞ·¨Á´½ÓµÄÇøÓò¡£";
+ Text[ greek ] = "Ôï ðëáßóéï ðñïïñéóìïý âñßóêåôáé óå ìéá ðåñéï÷Þ óôçí ïðïßá åßíáé áäýíáôïí íá äçìéïõñãçèåß ìßá óýíäåóç.";
+ Text[ korean ] = "¿¬°áÀ» À§ÇÑ ¸ñÇ¥ ÇÁ·¹ÀÓÀÌ À¯È¿ÇÏÁö ¾ÊÀº ¿µ¿ª¿¡ ÀÖ½À´Ï´Ù.";
+ Text[ turkish ] = "Hedef çerçeve baðlantý oluþturulamayacak bir alanda bulunuyor.";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_NOT_FOUND
+{
+ Text = "An der aktuellen Position kann kein Zielrahmen gefunden werden." ;
+ Text [ english ] = "No target found at this position." ;
+ Text [ portuguese ] = "Impossível encontrar moldura de destino na posição actual." ;
+ Text [ english_us ] = "Target frame not found at current position." ;
+ Text [ portuguese_brazilian ] = "An der aktuellen Position kann kein Zielrahmen gefunden werden." ;
+ Text [ swedish ] = "Vid den aktuella positionen kan ingen målram hittas." ;
+ Text [ danish ] = "Der blev ikke fundet en målramme på den aktuelle position." ;
+ Text [ italian ] = "Impossibile trovare una cornice di destinazione nella posizione corrente." ;
+ Text [ spanish ] = "En la posición actual no se puede encontrar ningún marco destino." ;
+ Text [ french ] = "Aucun cadre cible ne peut être trouvé à la position courante." ;
+ Text [ dutch ] = "Op de actuele positie kan geen doelkader worden gevonden." ;
+ Text[ chinese_simplified ] = "ÔÚµ±Ç°µÄλÖÃûÓÐÕÒµ½Ä¿±ê¿ò¡£";
+ Text[ russian ] = "Â òåêóùåé ïîçèöèè öåëåâàÿ ðàìêà íåîáíàðóæåíà.";
+ Text[ polish ] = "Przy aktualnej pozycji nie znaleziono ramki docelowej.";
+ Text[ japanese ] = "Œ»ˆÊ’u‚É–Ú•W‚̘g‚ÍŒ©‚‚©‚è‚Ü‚¹‚ñ";
+ Text[ chinese_traditional ] = "¦b·í«eªº¦ì¸m¨S¦³§ä¨ì¥Ø¼Ð¤è¶ô¡C";
+ Text[ arabic ] = ".áÇ íæÌÏ ÅØÇÑ åÏÝ Ýí ÇáãæÞÚ ÇáÍÇáí";
+ Text[ dutch ] = "Op de actuele positie kan geen doelkader worden gevonden.";
+ Text[ chinese_simplified ] = "ÔÚµ±Ç°µÄλÖÃûÓÐÕÒµ½Ä¿±ê¿ò¡£";
+ Text[ greek ] = "Äåí åßíáé äõíáôüí íá âñåèåß ðëáßóéï ðñïïñéóìïý óôçí ôñÝ÷ïõóá èÝóç.";
+ Text[ korean ] = "ÇöÀçÀÇ À§Ä¡¿¡¼­ ¸ñÇ¥ ÇÁ·¹ÀÓÀÌ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Yürürlükteki konumda hedef çerçeve bulunamýyor.";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_SOURCE_CHAINED
+{
+ Text = "Der Quellrahmen ist bereits Quelle einer Verkettung." ;
+ Text [ english ] = "The source is already source of a chain." ;
+ Text [ portuguese ] = "A moldura-fonte já é a fonte de uma ligação." ;
+ Text [ english_us ] = "The source frame is already the source of a link." ;
+ Text [ portuguese_brazilian ] = "Der Quellrahmen ist bereits Quelle einer Verkettung." ;
+ Text [ swedish ] = "Källramen är redan källa till en länk." ;
+ Text [ danish ] = "Kilderammen er allerede kilde til en sammenkædning." ;
+ Text [ italian ] = "La cornice sorgente è già sorgente di un collegamento." ;
+ Text [ spanish ] = "El marco origen ya es la fuente de un vínculo." ;
+ Text [ french ] = "Le cadre source est déjà la source d'un lien." ;
+ Text [ dutch ] = "Het bronkader is reeds basis van een koppeling." ;
+ Text[ chinese_simplified ] = "Õâ¸öÀ´Ô´¿òÒѾ­ÊÇÒ»¸öÁ´½ÓµÄÀ´Ô´¿ò¡£";
+ Text[ russian ] = "Èñõîäíàÿ ðàìêà óæå ÿâëÿåòñÿ èñòî÷íèêîì ñâÿçè.";
+ Text[ polish ] = "Ramka Ÿród³owa jest ju¿ Ÿród³em po³¹czenia.";
+ Text[ japanese ] = "Œ³‚̘g‚Í‚·‚łɂ‚Ȃ¬‚ÌŒ³‚Å‚·";
+ Text[ chinese_traditional ] = "³o­Ó¨Ó·½°T®Ø¤w¸g¬O¤@­Ó³sµ²ªº·½°T®Ø¡C";
+ Text[ arabic ] = ".ÅØÇÑ ÇáãÕÏÑ åæ ãÓÈÞÇð ãÕÏÑ ÇáÊÓáÓá";
+ Text[ dutch ] = "Het bronkader is reeds basis van een koppeling.";
+ Text[ chinese_simplified ] = "Õâ¸öÀ´Ô´¿òÒѾ­ÊÇÒ»¸öÁ´½ÓµÄÀ´Ô´¿ò¡£";
+ Text[ greek ] = "Ôï ðëáßóéï ðñïÝëåõóçò åßíáé Þäç ç ðñïÝëåõóç ìéáò óýíäåóçò.";
+ Text[ korean ] = "¼Ò½º ÇÁ·¹ÀÓÀº À̹̿¬°á ÀÇ ¼Ò½ºÀÔ´Ï´Ù.";
+ Text[ turkish ] = "Kaynak çerçeve zaten bir baðlantý zincirinin kaynaðý.";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAIN_SELF
+{
+ Text = "Eine geschlossene Kette ist nicht möglich." ;
+ Text [ english ] = "a chain connot be closed." ;
+ Text [ portuguese ] = "Impossível uma sequência fechada." ;
+ Text [ english_us ] = "A closed link is not possible." ;
+ Text [ portuguese_brazilian ] = "Eine geschlossene Kette ist nicht möglich." ;
+ Text [ swedish ] = "Det är inte möjligt med en sluten kedja." ;
+ Text [ danish ] = "En lukket kæde er ikke mulig." ;
+ Text [ italian ] = "Un collegamento chiuso non è possibile." ;
+ Text [ spanish ] = "No es posible una secuencia cerrada." ;
+ Text [ french ] = "Une chaine fermée n'est pas possible." ;
+ Text [ dutch ] = "Een gesloten koppeling is niet mogelijk." ;
+ Text[ chinese_simplified ] = "Ò»¸ö·â±ÕʽµÄÁ´½ÓÊDz»¿ÉÄܵġ£";
+ Text[ russian ] = "Çàìêíóòàÿ öåïü íåâîçìîæíà.";
+ Text[ polish ] = "Zamkniête ³¹cze nie jest mo¿liwe.";
+ Text[ japanese ] = "•Â‚¶‚½‚‚Ȃª‚è‚Í•s‰Â”\\‚Å‚·";
+ Text[ chinese_traditional ] = "¤@­Ó«Ê³¬¦¡ªº³sµ²¬O¤£¥i¯àªº¡C";
+ Text[ arabic ] = "ÇáÓáÓáÉ ÇáãÛáÞÉ ÃãÑ ÛíÑ ããßä";
+ Text[ dutch ] = "Een gesloten koppeling is niet mogelijk.";
+ Text[ chinese_simplified ] = "Ò»¸ö·â±ÕʽµÄÁ´½ÓÊDz»¿ÉÄܵġ£";
+ Text[ greek ] = "Äåí åßíáé äõíáôüí íá äçìéïõñãçèåß áëõóßäá ðïõ êëåßíåé.";
+ Text[ korean ] = "´ÝÈù ¿¬°áÀº ºÒ°¡´ÉÇÕ´Ï´Ù.";
+ Text[ turkish ] = "Kapalý bir zincir oluþturulamaz.";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_INSERT
+{
+ Text = "Eingefügt" ;
+ Text [ english ] = "Inserted" ;
+ Text [ portuguese ] = "Inserido" ;
+ Text [ english_us ] = "Inserted" ;
+ Text [ portuguese_brazilian ] = "Eingefügt" ;
+ Text [ swedish ] = "Infogad" ;
+ Text [ danish ] = "Indsat" ;
+ Text [ italian ] = "Inserito" ;
+ Text [ spanish ] = "Insertado" ;
+ Text [ french ] = "Inséré" ;
+ Text [ dutch ] = "Ingevoegd" ;
+ Text[ chinese_simplified ] = "ÒѾ­²åÈë";
+ Text[ russian ] = "Âñòàâëåí";
+ Text[ polish ] = "Wstawiony";
+ Text[ japanese ] = "‘}“üÏ‚Ý";
+ Text[ chinese_traditional ] = "¤w¸g´¡¤J";
+ Text[ arabic ] = "ãÏÑÌ";
+ Text[ language_user1 ] = " ";
+ Text[ dutch ] = "Ingevoegd";
+ Text[ chinese_simplified ] = "ÒѾ­²åÈë";
+ Text[ greek ] = "Åéóáãüìåíá";
+ Text[ korean ] = "»ðÀÔµÊ";
+ Text[ turkish ] = "Eklendi";
+};
+String STR_REDLINE_DELETE
+{
+ Text = "Gelöscht" ;
+ Text [ english ] = "Deleted" ;
+ Text [ portuguese ] = "Eliminado" ;
+ Text [ english_us ] = "Deleted" ;
+ Text [ portuguese_brazilian ] = "Gelöscht" ;
+ Text [ swedish ] = "Raderat" ;
+ Text [ danish ] = "Slettet" ;
+ Text [ italian ] = "Cancellato" ;
+ Text [ spanish ] = "Eliminado" ;
+ Text [ french ] = "Supprimé" ;
+ Text [ dutch ] = "Gewist" ;
+ Text[ chinese_simplified ] = "ÒѾ­É¾³ý";
+ Text[ russian ] = "Óäàëåí";
+ Text[ polish ] = "Usuniêty";
+ Text[ japanese ] = "íœÏ‚Ý";
+ Text[ chinese_traditional ] = "¤w¸g§R°£";
+ Text[ arabic ] = "ãÍÐæÝ";
+ Text[ dutch ] = "Gewist";
+ Text[ chinese_simplified ] = "ÒѾ­É¾³ý";
+ Text[ greek ] = "ÄéáãñáììÝíï";
+ Text[ korean ] = "»èÁ¦µÊ";
+ Text[ turkish ] = "Silindi";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_FORMAT
+{
+ Text = "Attributiert" ;
+ Text [ english ] = "Formatted" ;
+ Text [ portuguese ] = "Formatado" ;
+ Text [ english_us ] = "Formatted" ;
+ Text [ portuguese_brazilian ] = "Attributiert" ;
+ Text [ swedish ] = "Attributerat" ;
+ Text [ danish ] = "Formateret" ;
+ Text [ italian ] = "Fomattato" ;
+ Text [ spanish ] = "Formateado" ;
+ Text [ french ] = "Mis en forme" ;
+ Text [ dutch ] = "Opgemaakt" ;
+ Text[ chinese_simplified ] = "ÒѾ­¸ñʽ»¯";
+ Text[ russian ] = "Îòôîðìàòèðîâàí";
+ Text[ polish ] = "sformatowany";
+ Text[ japanese ] = "‘®«";
+ Text[ chinese_traditional ] = "¤w¸g®æ¦¡¤Æ";
+ Text[ arabic ] = "ãäÓÞ";
+ Text[ language_user1 ] = " ";
+ Text[ dutch ] = "Opgemaakt";
+ Text[ chinese_simplified ] = "ÒѾ­¸ñʽ»¯";
+ Text[ greek ] = "ÌïñöïðïéçìÝíï";
+ Text[ korean ] = "¼­½Ä Àû¿ë";
+ Text[ turkish ] = "Faormatlandý";
+};
+String STR_REDLINE_TABLE
+{
+ Text = "Tabelle verändert" ;
+ Text [ english ] = "Table changed" ;
+ Text [ portuguese ] = "Tabela modificada" ;
+ Text [ english_us ] = "Table changed" ;
+ Text [ portuguese_brazilian ] = "Tabelle verändert" ;
+ Text [ swedish ] = "Tabell ändrad" ;
+ Text [ danish ] = "Tabel ændret" ;
+ Text [ italian ] = "Tabella modificata" ;
+ Text [ spanish ] = "Tabla modificada" ;
+ Text [ french ] = "Tableau modifié" ;
+ Text [ dutch ] = "Tabel veranderd" ;
+ Text[ chinese_simplified ] = "±í¸ñÒѱ»¸ü¸Ä";
+ Text[ russian ] = "Òàáëèöà èçìåíåíà";
+ Text[ polish ] = "Tabela zmieniona";
+ Text[ japanese ] = "•\\‚Í•ÏX‚³‚ê‚Ä‚¢‚Ü‚·";
+ Text[ chinese_traditional ] = "ªí®æ¤w³QÅܧó";
+ Text[ arabic ] = "ÊÛííÑ ÇáÌÏæá";
+ Text[ dutch ] = "Tabel veranderd";
+ Text[ chinese_simplified ] = "±í¸ñÒѱ»¸ü¸Ä";
+ Text[ greek ] = "¸÷ïõí ãßíåé áëëáãÝò óôïí ðßíáêá";
+ Text[ korean ] = "Ç¥°¡ ¹Ù²î¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Tablo deðiþtirildi";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_FMTCOLL
+{
+ Text = "Absatzvorlage gesetzt" ;
+ Text [ english ] = "Paragraph Styles set" ;
+ Text[ italian ] = "Modello di paragrafo impostato";
+ Text[ portuguese_brazilian ] = "Paragraph Styles set";
+ Text[ portuguese ] = "Estilo de parágrafo definido";
+ Text[ danish ] = "Afsnitstypografi defineret";
+ Text[ french ] = "Le style de paragraphe a été défini";
+ Text[ swedish ] = "Styckeformatmall definierad";
+ Text[ dutch ] = "Alinea-opmaakprofiel gedefinieerd";
+ Text[ spanish ] = "Aplicado estilo de párrafo";
+ Text[ english_us ] = "Applied Paragraph Styles";
+ Text[ chinese_simplified ] = "É趨¶ÎÂäÑùʽ";
+ Text[ russian ] = "Óñòàíîâëåíû ñòèëè àáçàöåâ";
+ Text[ polish ] = "Ustaw styl akapitu";
+ Text[ japanese ] = "’i—Ž½À²Ù‚ÌÝ’è";
+ Text[ chinese_traditional ] = "³]©w¬q¸¨¼Ë¦¡";
+ Text[ arabic ] = "ÊÚííä äãØ ÇáÝÞÑÉ";
+ Text[ dutch ] = "Alinea-opmaakprofiel gedefinieerd";
+ Text[ chinese_simplified ] = "É趨¶ÎÂäÑùʽ";
+ Text[ greek ] = "Êáèïñßóôçêå ðñüôõðï ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô À¯Çü ÁýÇÕ";
+ Text[ turkish ] = "Paragraf þablonu belirlendi";
+ Text[ language_user1 ] = " ";
+};
+String STR_ENDNOTE
+{
+ Text = "Endnote: " ;
+ Text [ ENGLISH ] = "Endnote: " ;
+ Text [ portuguese ] = "Nota final: " ;
+ Text [ english_us ] = "Endnote: " ;
+ Text [ portuguese_brazilian ] = "Endnote: " ;
+ Text [ swedish ] = "Slutnot: " ;
+ Text [ danish ] = "Slutnote: " ;
+ Text [ italian ] = "Nota di chiusura: " ;
+ Text [ spanish ] = "Nota final: " ;
+ Text [ french ] = "Note de fin : " ;
+ Text [ dutch ] = "Eindnoot: " ;
+ Text[ chinese_simplified ] = "βע: ";
+ Text[ russian ] = "Êîíöåâàÿ ñíîñêà: ";
+ Text[ polish ] = "Przypis koñcowy: ";
+ Text[ japanese ] = "•¶––‹r’: ";
+ Text[ chinese_traditional ] = "§Àª`: ";
+ Text[ arabic ] = "ÊÚáíÞÇÊ ÎÊÇãíÉ: ";
+ Text[ dutch ] = "Eindnoot: ";
+ Text[ chinese_simplified ] = "βע: ";
+ Text[ greek ] = "Óçìåßùóç ôÝëïõò: ";
+ Text[ korean ] = "¹ÌÁÖ: ";
+ Text[ turkish ] = "Son not: ";
+ Text[ language_user1 ] = " ";
+};
+String STR_FTNNOTE
+{
+ Text = "Fußnote: " ;
+ Text [ ENGLISH ] = "Footnote: " ;
+ Text [ portuguese ] = "Nota de rodapé: " ;
+ Text [ english_us ] = "Footnote: " ;
+ Text [ portuguese_brazilian ] = "Fußnote: " ;
+ Text [ swedish ] = "Fotnot: " ;
+ Text [ danish ] = "Fodnote: " ;
+ Text [ italian ] = "Nota a piè pagina: " ;
+ Text [ spanish ] = "Nota al pie: " ;
+ Text [ french ] = "Note de bas de page : " ;
+ Text [ dutch ] = "Voetnoot: " ;
+ Text[ chinese_simplified ] = "×¢½Å: ";
+ Text[ russian ] = "Ñíîñêà: ";
+ Text[ polish ] = "Przypis dolny: ";
+ Text[ japanese ] = "‹r’: ";
+ Text[ chinese_traditional ] = "µù¸}: ";
+ Text[ arabic ] = "ÍæÇÔí ÓÝáíÉ: ";
+ Text[ dutch ] = "Voetnoot: ";
+ Text[ chinese_simplified ] = "×¢½Å: ";
+ Text[ greek ] = "Õðïóçìåßùóç: ";
+ Text[ korean ] = "°¢ÁÖ: ";
+ Text[ turkish ] = "Dipnot: ";
+ Text[ language_user1 ] = " ";
+};
+
+InfoBox MSG_READONLY_CONTENT
+{
+ MESSAGE = "Die Schreibmarke oder Selektion befindet sich an einer geschützten Position.\nEine Änderung kann deshalb nicht akzeptiert werden.";
+ MESSAGE [ English ] = "Readonly content may not be changed." ;
+ MESSAGE[ english_us ] = "Readonly content cannot be changed.\nNo modifications will be accepted";
+ MESSAGE[ portuguese ] = "A selecção encontra-se numa posição protegida.\nImpossível qualquer modificação.";
+ MESSAGE[ russian ] = "Ìåòêà çàïèñè èëè âûäàëåíèå íàõîäèòñÿ â çàùèùåííîé ïîçèöèè.\nÏîýòîìó èçìåíåíèÿ íå ïðèíèìàþòñÿ.";
+ MESSAGE[ dutch ] = "De cursor of de selectie bevindt zich op een schrijfbeveiligde positie.\nDe inhoud kan daarom niet worden gewijzigd.";
+ MESSAGE[ french ] = "Le contenu du signet ou de la sélection est en lecture seule.\nAucune modification permise.";
+ MESSAGE[ spanish ] = "La marca o selección se encuentra en una posición protegida.\nPor ello no se puede aceptar una modificación.";
+ MESSAGE[ italian ] = "La selezione si trova in una posizione protetta. \nPertanto non è possibile accettare nessuna modifica.";
+ MESSAGE[ danish ] = "Markøren befinder sig på en skrivebeskyttet position.\nÆndringer kan derfor ikke accepteres.";
+ MESSAGE[ swedish ] = "Markören eller markering befinner sig i en skrivskyddad position.\nEn ändring kan därför ej accepteras.";
+ MESSAGE[ polish ] = "Znacznik zapisu lub selekcji znajduje siê na chronionej pozycji.\nZmiany nie mo¿na zaakceptowaæ.";
+ MESSAGE[ portuguese_brazilian ] = "Readonly content may not be changed.";
+ MESSAGE[ japanese ] = "‚±‚͈͓̔͂ǂݎæ‚èê—p‚Å‚·B“à—e‚Ì•ÏX‚Í‚Å‚«‚Ü‚¹‚ñB";
+ MESSAGE[ chinese_simplified ] = "ÊäÈë¹â±ê»òÑ¡ÖеÈÄÚÈÝÊÇÒ»¸öÊܱ£»¤µÄ¡£\nÎÞ·¨¸ü¸Ä·À¸²Ð´µÄÄÚÈÝ¡£";
+ MESSAGE[ chinese_traditional ] = "¿é¤J¥ú¼Ð©Î¿ï¨úªº¦ì¸m¬O¨ü«OÅ@ªº¡C\nµLªk­×§ï¨¾Âмgªº¤º®e¡C";
+ MESSAGE[ arabic ] = "ÊÞÚ ÚáÇãÉ ÇáßÊÇÈÉ Ãæ ÇáÊÍÏíÏ Ýí ãæÖÚ ãÍãí ÖÏ ÇáßÊÇÈÉ.\náåÐÇ áÇ íãßä ÞÈæá ÃíÉ ÊÛííÑÇÊ.";
+ MESSAGE[ dutch ] = "De cursor of de selectie bevindt zich op een schrijfbeveiligde positie.\nDe inhoud kan daarom niet worden gewijzigd.";
+ MESSAGE[ chinese_simplified ] = "ÊäÈë¹â±ê»òÑ¡ÖеÈÄÚÈÝÊÇÒ»¸öÊܱ£»¤µÄ¡£\nÎÞ·¨¸ü¸Ä·À¸²Ð´µÄÄÚÈÝ¡£";
+ MESSAGE[ greek ] = "Ç óÞìáíóç åããñáöÞò Þ ç åðéëïãÞ âñßóêåôáé óå ìßá ðñïóôáôåõüìåíç èÝóç.\nÃé áõôü ôï ëüãï äåí ìðïñïýí íá ãßíïõí äåêôÝò ïðïéåóäÞðïôå ôñïðïðïéÞóåéò.";
+ MESSAGE[ korean ] = "Àбâ Àü¿ë ³»¿ëÀº º¯°æµÉ ¼ö ¾ø½À´Ï´Ù.\n¼öÁ¤Àº Çã¿ëµÉ ¼ö ¾ø½À´Ï´Ù.";
+ MESSAGE[ turkish ] = "Salt okunur bir içerik deðiþtirilemez.\nYapýlan deðiþiklikler nu nedenle kabul edilmeyecek.";
+ MESSAGE[ language_user1 ] = " ";
+};
+
diff --git a/sw/source/ui/docvw/edtdd.cxx b/sw/source/ui/docvw/edtdd.cxx
new file mode 100644
index 000000000000..4b6c902709b0
--- /dev/null
+++ b/sw/source/ui/docvw/edtdd.cxx
@@ -0,0 +1,787 @@
+/*************************************************************************
+ *
+ * $RCSfile: edtdd.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _OUTLINER_HXX //autogen
+#include <svx/outliner.hxx>
+#endif
+#ifndef _SVDVMARK_HXX //autogen
+#include <svx/svdvmark.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _SOT_EXCHANGE_HXX //autogen
+#include <sot/exchange.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SOT_FORMATS_HXX //autogen
+#include <sot/formats.hxx>
+#endif
+
+
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+
+
+extern BOOL bNoInterrupt;
+extern BOOL bFrmDrag;
+extern BOOL bDDTimerStarted;
+
+static BOOL bDroped = FALSE;
+BOOL bExecuteDrag = FALSE;
+
+void SwEditWin::StartDDTimer()
+{
+ aTimer.SetTimeoutHdl(LINK(this, SwEditWin, DDHandler));
+ aTimer.SetTimeout(480);
+ aTimer.Start();
+ bDDTimerStarted = TRUE;
+}
+
+
+void SwEditWin::StopDDTimer(SwWrtShell *pSh, const Point &rPt)
+{
+ aTimer.Stop();
+ bDDTimerStarted = FALSE;
+ if(!pSh->IsSelFrmMode())
+ (pSh->*pSh->fnSetCrsr)(&rPt,FALSE);
+ aTimer.SetTimeoutHdl(LINK(this,SwEditWin, TimerHandler));
+}
+
+
+void SwEditWin::StartExecuteDrag()
+{
+ if( !bExecuteDrag || bIsInDrag )
+ return;
+
+ bDroped = FALSE;
+ bIsInDrag = TRUE;
+
+ SwWrtShell *pSh = &rView.GetWrtShell();
+
+ BOOL bOldIdle = pSh->GetViewOptions()->IsIdle();
+ ((SwViewOption *)pSh->GetViewOptions())->SetIdle(FALSE);
+
+ if( pSh->IsSelFrmMode() )
+ pSh->ShowCrsr();
+
+ DropAction eAction;
+#ifdef MAC
+ const Region aRegion( pSh->GetCrsrRegion() );
+#endif
+
+ //Object bereits hier auf den Stack legen, weil es sich im DTor aus dem
+ //SwView austragen wurde und deshalb hinter dem else-Scope nicht mehr
+ //erreichbar waere.
+ SwDataExchangeRef aRef( new SwDataExchange( rView.GetWrtShell() ) );
+ SW_MOD()->pDragDrop = aRef;
+ aRef->Copy( TRUE );
+
+ DBG_TRACE("SW: Vor ExecuteDrag" );
+
+ // JP 02.10.96: aus ReadOnly-Docs darf nichts gemovt werden!
+ // JP 19.01.99: aus ReadOnly-Docs darf eigentlich nur kopiert werden!
+ USHORT nDragOptions = DRAG_ALL;
+ if( ( rView.GetDocShell() && rView.GetDocShell()->IsReadOnly() ) ||
+ rView.GetWrtShell().HasReadonlySel() )
+ nDragOptions = DRAG_COPYABLE;
+
+ eAction = aRef->ExecuteDrag( this, Pointer( POINTER_MOVEDATA ),
+ Pointer( POINTER_COPYDATA ),
+ nDragOptions
+#ifdef MAC
+ , &aRegion
+#endif
+ );
+
+ DBG_TRACE("SW: Nach ExecuteDrag" );
+
+ //Und noch die letzten Nacharbeiten damit alle Stati stimmen.
+ if ( eAction == DROP_MOVE || eAction == DROP_DISCARD )
+ {
+ if ( !bDroped )
+ {
+ //Es wurde auserhalb des Writers gedroped. Wir muessen noch
+ //loeschen.
+
+ pSh->StartAllAction();
+ pSh->StartUndo( UIUNDO_DRAG_AND_MOVE );
+ if ( pSh->IsTableMode() )
+ pSh->DeleteTblSel();
+ else
+ {
+ if ( !(pSh->IsSelFrmMode() || pSh->IsObjSelected()) )
+ //SmartCut, eines der Blanks mitnehmen.
+ pSh->IntelligentCut( pSh->GetSelectionType(), TRUE );
+ pSh->DelRight();
+ }
+ pSh->EndUndo( UIUNDO_DRAG_AND_MOVE );
+ pSh->EndAllAction();
+ }
+ else
+ {
+ const int nSelection = pSh->GetSelectionType();
+ if( ( SwWrtShell::SEL_FRM | SwWrtShell::SEL_GRF |
+ SwWrtShell::SEL_OLE | SwWrtShell::SEL_DRW ) & nSelection )
+ {
+ pSh->EnterSelFrmMode();
+ }
+ }
+ }
+ if ( pSh->IsSelFrmMode() )
+ pSh->HideCrsr();
+ else if ( DROP_NONE != eAction )
+ pSh->ShowCrsr();
+ else
+ {
+ //Muss wohl sein weil gescrollt wurde und ?...?
+ pSh->StartAction();
+ pSh->EndAction();
+ }
+ aTimer.SetTimeoutHdl( LINK(this,SwEditWin, TimerHandler) );
+ ((SwViewOption *)pSh->GetViewOptions())->SetIdle(bOldIdle);
+ bIsInDrag = FALSE;
+
+ DBG_TRACE("SW: Fertig mit D&D" );
+}
+
+
+void SwEditWin::DropCleanup()
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+
+ // Stati zuruecksetzen
+ bNoInterrupt = FALSE;
+ if ( bOldIdleSet )
+ {
+ ((SwViewOption*)rSh.GetViewOptions())->SetIdle( bOldIdle );
+ bOldIdleSet = FALSE;
+ }
+ if ( pUserMarker )
+ CleanupDropUserMarker();
+ else
+ rSh.UnSetVisCrsr();
+
+}
+
+void SwEditWin::CleanupDropUserMarker()
+{
+ if ( pUserMarker )
+ {
+ delete pUserMarker, pUserMarker = 0;
+ pUserMarkerObj = 0;
+ }
+}
+
+
+//Messehack (MA,MBA)
+void lcl_SelectShellForDrop( SwView &rView )
+{
+ if ( !rView.GetCurShell() )
+ rView.SelectShell();
+}
+
+BOOL SwEditWin::Drop( const DropEvent& rEvt )
+{
+ ::lcl_SelectShellForDrop( GetView() );
+ DropCleanup();
+
+ //Ein Drop auf eine offene OutlinerView geht uns nichts an (siehe auch QueryDrop)
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SdrObject *pObj = 0;
+ const Point aDocPt( PixelToLogic( rEvt.GetPosPixel() ) );
+ rSh.GetObjCntType( aDocPt, pObj );
+ if( pObj )
+ {
+ OutlinerView* pOLV = rSh.GetDrawView()->GetTextEditOutlinerView();
+ if ( pOLV )
+ {
+ Rectangle aRect( pOLV->GetOutputArea() );
+ aRect.Union( pObj->GetLogicRect() );
+ const Point aPos = pOLV->GetWindow()->PixelToLogic(rEvt.GetPosPixel());
+ if ( aRect.IsInside(aPos) )
+ {
+ rSh.StartAllAction();
+ BOOL bRet = pOLV->Drop( rEvt );
+ rSh.EndAllAction();
+ return bRet;
+ }
+ }
+ }
+
+ BOOL bRet = rEvt.GetData() &&
+ 0 != SwDataExchange::PasteData( *rEvt.GetData(), rSh,
+ nDropAction, nDropFormat,
+ nDropDestination, &rEvt );
+
+ if ( bRet )
+ {
+ if ( SW_MOD()->pDragDrop )
+ bDroped = TRUE; //Bei internem D&D nicht mehr aufraeumen!
+ }
+ else
+ bRet = OFF_APP()->Drop( (DropEvent&)rEvt );
+ return bRet;
+}
+
+
+BOOL SwEditWin::QueryDrop( DropEvent& rEvt )
+{
+ if ( rEvt.IsLeaveWindow() )
+ {
+ DropCleanup();
+ return TRUE;
+ }
+
+ if(rView.GetDocShell()->IsReadOnly())
+ return FALSE;
+
+ SwWrtShell &rSh = rView.GetWrtShell();
+
+ //Ein bischen scrollen?
+ Point aPixPt( rEvt.GetPosPixel() );
+ Point aPoint;
+ Rectangle aWin( aPoint, GetOutputSizePixel() );
+ Rectangle aWin2( aWin );
+ aWin.Left() += 10;
+ aWin.Top() += 10;
+ aWin.Right() -= 10;
+ aWin.Bottom()-= 10;
+
+ if ( !aWin.IsInside( aPixPt ) )
+ {
+ if ( !bOldIdleSet )
+ {
+ bOldIdle = rSh.GetViewOptions()->IsIdle();
+ ((SwViewOption *)rSh.GetViewOptions())->SetIdle(FALSE);
+ bOldIdleSet = TRUE;
+ }
+ CleanupDropUserMarker();
+
+ aWin2.Left() += 5;
+ aWin2.Top() += 5;
+ aWin2.Right() -= 5;
+ aWin2.Bottom()-= 5;
+
+ long x = 0;
+ if ( aPixPt.Y() < aWin2.Top() )
+ x = aPixPt.Y() = -5;
+ else if ( aPixPt.Y() > aWin2.Bottom() )
+ x = aPixPt.Y() += 10;
+ if ( aPixPt.X() < aWin2.Left() )
+ x = aPixPt.X() = -5;
+ else if ( aPixPt.X() > aWin2.Right() )
+ x = aPixPt.X() += 10;
+ Point aDocPt( PixelToLogic( aPixPt ) );
+ aDocPt = rSh.GetCntntPos( aDocPt, x > 0 );
+ rSh.SwCrsrShell::SetVisCrsr( aDocPt );
+ return TRUE;
+ }
+
+ if ( bOldIdleSet )
+ {
+ ((SwViewOption *)rSh.GetViewOptions())->SetIdle( bOldIdle );
+ bOldIdleSet = FALSE;
+ }
+
+ //Drop auf Selektion ist nicht statthaft.
+ //JP 19.01.99: Drop in geschuetzte Bereiche ist nicht statthaft
+ const Point aDocPt( PixelToLogic( aPixPt ) );
+ if( rSh.ChgCurrPam( aDocPt ) || rSh.IsOverReadOnlyPos( aDocPt ) )
+ return FALSE;
+
+ //Auf was wollen wir denn gerade droppen?
+ nDropDestination = 0;
+
+ BOOL bDropCursor = TRUE; //UserMarker oder DropCursor anzeigen.
+
+ SdrObject *pObj = NULL;
+ const ObjCntType eType = rSh.GetObjCntType( aDocPt, pObj );
+
+ //Drop auf OutlinerView (TextEdit im Drawing) soll diese selbst entscheiden!
+ if ( pObj )
+ {
+ OutlinerView* pOLV = rSh.GetDrawView()->GetTextEditOutlinerView();
+ if ( pOLV )
+ {
+ Rectangle aRect( pOLV->GetOutputArea() );
+ aRect.Union( pObj->GetLogicRect() );
+ const Point aPos = pOLV->GetWindow()->PixelToLogic(aPixPt);
+ if ( aRect.IsInside(aPos) )
+ return pOLV->QueryDrop( rEvt );
+ }
+ }
+
+ //Sonst etwas aus der DrawingEngine getroffen?
+ if ( OBJCNT_NONE != eType )
+ {
+ switch ( eType )
+ {
+ case OBJCNT_GRF:
+ {
+ BOOL bLink,
+ bIMap = 0 != rSh.GetFmtFromObj( aDocPt )->GetURL().GetMap();
+ String aDummy;
+ rSh.GetGrfAtPos( aDocPt, aDummy, bLink );
+ if ( bLink && bIMap )
+ nDropDestination = EXCHG_DEST_DOC_LNKD_GRAPH_W_IMAP;
+ else if ( bLink )
+ nDropDestination = EXCHG_DEST_DOC_LNKD_GRAPHOBJ;
+ else if ( bIMap )
+ nDropDestination = EXCHG_DEST_DOC_GRAPH_W_IMAP;
+ else
+ nDropDestination = EXCHG_DEST_DOC_GRAPHOBJ;
+ }
+ break;
+ case OBJCNT_FLY:
+ if( rSh.GetView().GetDocShell()->ISA(SwWebDocShell) )
+ nDropDestination = EXCHG_DEST_DOC_TEXTFRAME_WEB;
+ else
+ nDropDestination = EXCHG_DEST_DOC_TEXTFRAME;
+ break;
+ case OBJCNT_OLE: nDropDestination = EXCHG_DEST_DOC_OLEOBJ; break;
+ case OBJCNT_CONTROL: /* no Action avail */
+ case OBJCNT_SIMPLE: nDropDestination = EXCHG_DEST_DOC_DRAWOBJ; break;
+ case OBJCNT_URLBUTTON: nDropDestination = EXCHG_DEST_DOC_URLBUTTON; break;
+ case OBJCNT_GROUPOBJ: nDropDestination = EXCHG_DEST_DOC_GROUPOBJ; break;
+
+ default: ASSERT( !this, "new ObjectType?" );
+ }
+ }
+ if ( !nDropDestination )
+ {
+/*
+JP 13.07.98: Bug 52637: es wird ein URL-Feld erkannt also werden nur die
+ Inhalte zugelassen. Das ist aber bestimmt nicht das
+ gewollte.
+ SwContentAtPos aCntntAtPos( SwContentAtPos::SW_INETATTR );
+ if ( rSh.GetContentAtPos( aDocPt, aCntntAtPos, FALSE ) )
+ nDropDestination = EXCHG_DEST_DOC_URLFIELD;
+ else
+*/
+ if( rSh.GetView().GetDocShell()->ISA(SwWebDocShell) )
+ nDropDestination = EXCHG_DEST_SWDOC_FREE_AREA_WEB;
+ else
+ nDropDestination = EXCHG_DEST_SWDOC_FREE_AREA;
+
+ }
+ else
+ bDropCursor = FALSE;
+
+ USHORT nEventAction, nUserOpt = EXCHG_IN_ACTION_DEFAULT;
+ if( !rEvt.IsDefaultAction() )
+ nUserOpt = rEvt.GetAction();
+
+ nDropAction = SotExchange::GetExchangeAction( *rEvt.GetData(),
+ nDropDestination, rEvt.GetSourceOptions(),
+ nUserOpt, nDropFormat, nEventAction );
+
+ BOOL bRet = TRUE;
+ if( EXCHG_INOUT_ACTION_NONE != nDropAction )
+ {
+ //Bei den default Aktionen wollen wir noch ein bischen mitreden.
+ SwModule *pMod = SW_MOD();
+ if ( pMod->pDragDrop )
+ {
+ BOOL bCleanup = FALSE;
+ //Zeichenobjekte in Kopf-/Fusszeilen sind nicht erlaubt
+ SwWrtShell *pSrcSh = pMod->pDragDrop->GetShell();
+ if( (pSrcSh->GetSelFrmType() == FRMTYPE_DRAWOBJ) &&
+ (rSh.GetFrmType( &aDocPt, FALSE ) & (FRMTYPE_HEADER|FRMTYPE_FOOTER)) )
+ {
+ bCleanup = TRUE;
+ }
+ // keine positionsgeschuetzten Objecte verschieben!
+ else if( DROP_MOVE == rEvt.GetAction() &&
+ pSrcSh->IsSelObjProtected( FLYPROTECT_POS ) )
+ {
+ bCleanup = TRUE;
+ }
+ else if( rEvt.IsDefaultAction() )
+ {
+ // JP 13.08.98: internes Drag&Drop: bei gleichem Doc ein Move
+ // ansonten ein Copy - Task 54974
+ nEventAction = pSrcSh->GetDoc() == rSh.GetDoc()
+ ? DROP_MOVE
+ : DROP_COPY;
+ }
+ if ( bCleanup )
+ {
+ CleanupDropUserMarker();
+ rSh.UnSetVisCrsr();
+ return FALSE;
+ }
+ }
+ else
+ {
+ //D&D von ausserhalb des SW soll per default ein Copy sein.
+ if( EXCHG_IN_ACTION_DEFAULT == nEventAction &&
+ DROP_MOVE == rEvt.GetAction() )
+ nEventAction = DROP_COPY;
+
+ if( (SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE == nDropFormat &&
+ EXCHG_IN_ACTION_LINK != nDropAction) ||
+ SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE == nDropFormat )
+ {
+ SdrMarkView* pMView = PTR_CAST( SdrMarkView, rSh.GetDrawView() );
+ if( pMView && !pMView->IsDesignMode() )
+ return FALSE;
+ }
+
+ }
+
+ if ( EXCHG_IN_ACTION_DEFAULT != nEventAction )
+ rEvt.SetAction( (DropAction)nEventAction );
+
+ if ( bDropCursor )
+ {
+ CleanupDropUserMarker();
+ rSh.SwCrsrShell::SetVisCrsr( aDocPt );
+ }
+ else
+ {
+ rSh.UnSetVisCrsr();
+ if ( !pUserMarker )
+ pUserMarker = new SdrViewUserMarker( rSh.GetDrawView() );
+ if ( pUserMarkerObj != pObj )
+ {
+ pUserMarkerObj = pObj;
+ pUserMarker->SetXPolyPolygon( pUserMarkerObj,
+ rSh.GetDrawView()->GetPageView(
+ rSh.GetDrawView()->GetModel()->GetPage(0)));
+ pUserMarker->Show();
+ }
+ }
+ return TRUE;
+ }
+
+ CleanupDropUserMarker();
+ rSh.UnSetVisCrsr();
+ return OFF_APP()->QueryDrop( rEvt );
+}
+
+
+IMPL_LINK( SwEditWin, DDHandler, Timer *, EMPTYARG )
+{
+ bDDTimerStarted = FALSE;
+ aTimer.Stop();
+ aTimer.SetTimeout(240);
+ bMBPressed = FALSE;
+ ReleaseMouse();
+ bFrmDrag = FALSE;
+
+ if ( rView.GetViewFrame() && rView.GetViewFrame()->GetFrame() &&
+ !rView.GetViewFrame()->GetFrame()->TransferForReplaceInProgress() )
+ {
+ bExecuteDrag = TRUE;
+ StartExecuteDrag();
+ }
+ return 0;
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.174 2000/09/18 16:05:23 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.173 1999/05/11 19:50:40 JP
+ Task #66127#: Methoden rund ums Lineal verbessert und Schnittstellen veraendert/erweitert
+
+
+ Rev 1.172 11 May 1999 21:50:40 JP
+ Task #66127#: Methoden rund ums Lineal verbessert und Schnittstellen veraendert/erweitert
+
+ Rev 1.171 25 Jan 1999 16:11:42 JP
+ Bug #61109#: QueryDrop - DropModifier nicht ueberbuegeln
+
+ Rev 1.170 19 Jan 1999 22:57:28 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.169 11 Dec 1998 11:46:02 JP
+ Task #58217#: WebDocShell als D&D Ziel erkennen
+
+ Rev 1.168 27 Nov 1998 14:50:42 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.167 17 Nov 1998 22:17:06 JP
+ Task #59398#: ClipboardId Umstellungen
+
+ Rev 1.166 12 Nov 1998 13:31:08 JP
+ Task #59398# Umstellung von SotFormatStringId
+
+ Rev 1.165 02 Sep 1998 12:10:46 MA
+ #55895# ctrldataexchange
+
+ Rev 1.164 13 Aug 1998 14:20:14 JP
+ Bug #54974# QueryDrop - bei DefaultAction per internem Format im eigenen Doc immer move, sonst copy
+
+ Rev 1.163 16 Jul 1998 19:21:22 JP
+ Bug #53113# DatenbankControls nur im DesignModus einfuegen
+
+ Rev 1.162 08 Jul 1998 14:17:32 JP
+ das richtige define fuer supd benutzen
+
+ Rev 1.161 08 Jul 1998 12:24:36 JP
+ neues Drag&Drop ab Version 5.0
+
+ Rev 1.160 04 Jul 1998 16:06:24 JP
+ Umstellung auf Tabelle weiergemacht
+
+ Rev 1.159 27 Jun 1998 18:44:00 JP
+ Umstellung auf Tabelle weitergemacht
+
+ Rev 1.158 25 Jun 1998 14:12:50 JP
+ SvDataObject -> SotObject
+
+ Rev 1.157 16 Jun 1998 17:14:42 OM
+ #51085# Draw-Objekte nicht auf die Wiese droppen
+
+ Rev 1.156 16 Jun 1998 16:35:44 OM
+ #51085# Draw-Objekte nicht auf die Wiese droppen
+
+ Rev 1.155 09 Jun 1998 15:31:32 OM
+ VC-Controls entfernt
+
+ Rev 1.154 27 Apr 1998 21:15:26 JP
+ Bug #49842#: Drop - bei Grafiken den FileNamen in eine URL wandeln
+
+ Rev 1.153 31 Mar 1998 17:30:22 MA
+ erstmal abgebrochen, neues DD
+
+ Rev 1.152 26 Mar 1998 18:02:54 MA
+ ein paar vorb. D&D
+
+ Rev 1.151 20 Feb 1998 16:18:20 MA
+ headerfiles gewandert
+
+ Rev 1.150 19 Feb 1998 08:53:20 OK
+ NEW: include mieclip.hxx
+
+ Rev 1.149 07 Jan 1998 18:46:26 MIB
+ 5.0 Fileformat
+
+ Rev 1.148 28 Nov 1997 18:02:26 MA
+ includes
+
+ Rev 1.147 25 Nov 1997 10:33:00 MA
+ includes
+
+ Rev 1.146 22 Oct 1997 16:04:52 OM
+ Farbendrop
+
+ Rev 1.145 17 Oct 1997 13:24:02 JP
+ neu: MSE40-HTML-Format erkennen/lesen
+
+ Rev 1.144 15 Oct 1997 14:03:44 OS
+ lcl_SelectShellForDrop - SelectShell() nur bei Bedarf rufen #44690#
+
+ Rev 1.143 17 Sep 1997 11:26:04 MA
+ #43801# precedence nicht beachtet
+
+ Rev 1.142 17 Sep 1997 09:57:22 OS
+ Nummer 3: pSdrView pruefen!
+
+ Rev 1.141 10 Sep 1997 10:50:08 JP
+ neu: Undo fuers kopieren von Tabellen & in Tabellen
+
+ Rev 1.140 08 Sep 1997 11:02:36 MA
+ includes
+
+ Rev 1.139 05 Sep 1997 13:10:48 OM
+ #42027# D&D auf DrawText-Objekte
+
+ Rev 1.138 02 Sep 1997 13:20:48 OS
+ includes
+
+ Rev 1.137 01 Sep 1997 13:15:38 OS
+ DLL-Umstellung
+
+ Rev 1.136 28 Aug 1997 10:29:56 JP
+ Bug #42430#: Drop - bei INetAttr. den SourceCursor auf das Attribut setzen
+
+ Rev 1.135 15 Aug 1997 12:09:54 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.134 11 Aug 1997 20:06:16 HJS
+ includes
+
+ Rev 1.133 11 Aug 1997 10:08:40 MH
+ chg: header
+
+ Rev 1.132 17 Jul 1997 19:06:32 MA
+ #41801# File zur absoluten URL verarbeiten
+
+ Rev 1.131 19 Jun 1997 11:38:52 MA
+ #40833# Drop_Link, sdw nicht einfuegen bei sw/web
+
+ Rev 1.130 09 Jun 1997 20:08:48 JP
+ SwFilterNms/SwFilterNm entfernt
+
+ Rev 1.129 29 May 1997 14:31:14 MA
+ fix: Grafik nur verknuepft fuer WebDocShell
+
+ Rev 1.128 16 May 1997 15:07:42 MH
+ add: defines wg. CLOOKS
+
+ Rev 1.127 25 Apr 1997 13:00:46 MA
+ #39306# ggf. den UserMarker loeschen
+
+ Rev 1.126 14 Apr 1997 17:25:00 MH
+ add: header
+
+ Rev 1.125 10 Apr 1997 16:05:18 TRI
+ includes
+
+ Rev 1.124 08 Apr 1997 10:31:46 OM
+ Fehlende Includes
+
+ Rev 1.123 08 Apr 1997 09:55:34 NF
+ includes...
+
+ Rev 1.122 21 Mar 1997 13:53:18 MA
+ #36900# D&D offset beseitigt
+
+ Rev 1.121 16 Mar 1997 13:44:16 MA
+ fix: Kein D&D wenn der Frame schon klinisch tot ist
+
+ Rev 1.120 07 Mar 1997 09:47:24 MA
+ Neue D&D Moeglichkeiten, Handling verbessert
+
+ Rev 1.119 23 Feb 1997 22:03:10 MA
+ fix: Drop von Grafik auf Grafik reanimiert
+
+ Rev 1.118 07 Feb 1997 12:05:44 OS
+ Navigator benutzt eigenes Drag-Format
+
+ Rev 1.117 05 Feb 1997 19:13:18 JP
+ ExcuteDrag: Modus der WrtShell setzen, wenn Flys selektiert sind
+
+ Rev 1.116 19 Dec 1996 16:12:18 MA
+ fix: Crsr wieder umschalten
+
+ Rev 1.115 28 Nov 1996 14:20:06 MA
+ fix: Drop per Link auch bei einem File
+
+ Rev 1.114 20 Nov 1996 16:58:42 MA
+ #33444# QueryDrop, Pos fuer Objekte anpassen
+
+ Rev 1.113 18 Oct 1996 16:57:56 MA
+ Messehack: eine hoffentlich kurzlebige Freundschaft
+
+ Rev 1.112 15 Oct 1996 12:14:20 MA
+ new: Drawing per Clipboard
+
+ Rev 1.111 02 Oct 1996 13:50:52 JP
+ StartExecuteDrag: aus ReadOnly-Docs darf nur kopiert werden!
+
+ Rev 1.110 16 Sep 1996 14:00:58 JP
+ Drop: INetBookmark am URL-Button setzen
+
+-------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
new file mode 100644
index 000000000000..7afe4e36e40d
--- /dev/null
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -0,0 +1,4222 @@
+/*************************************************************************
+ *
+ * $RCSfile: edtwin.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <tools/list.hxx>
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SV_HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+#ifndef _SV_GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_KEYCODES_HXX //autogen
+#include <vcl/keycodes.hxx>
+#endif
+#ifndef _VCL_CMDEVT_HXX //autogen
+#include <vcl/cmdevt.hxx>
+#endif
+#ifndef _VCL_CMDEVT_HXX //autogen
+#include <vcl/cmdevt.hxx>
+#endif
+#ifndef _VCL_CMDEVT_H //autogen
+#include <vcl/cmdevt.h>
+#endif
+#ifndef _SVSTOR_HXX //autogen
+#include <so3/svstor.hxx>
+#endif
+#ifndef _ARGS_HXX //autogen
+#include <svtools/args.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef __SBX_SBXVARIABLE_HXX //autogen
+#include <svtools/sbxvar.hxx>
+#endif
+#ifndef _SBXCLASS_HXX //autogen
+#include <svtools/sbx.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _WORDSEL_HXX
+#include <svtools/wordsel.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDVMARK_HXX //autogen
+#include <svx/svdvmark.hxx>
+#endif
+#ifndef _SVDHDL_HXX //autogen
+#include <svx/svdhdl.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _MySVXACORR_HXX //autogen
+#include <svx/svxacorr.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_FLDITEM_HXX
+# ifndef ITEMID_FIELD
+# ifndef _EEITEM_HXX //autogen
+# include <svx/eeitem.hxx>
+# endif
+# define ITEMID_FIELD EE_FEATURE_FIELD // wird fuer #include <flditem.hxx> benoetigt
+# endif
+# ifndef _SVX_FLDITEM_HXX //autogen
+# include <svx/flditem.hxx>
+# endif
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _OUTLINER_HXX //autogen
+#include <svx/outliner.hxx>
+#endif
+#ifndef _SVX_WGHTITEM_HXX //autogen
+#include <svx/wghtitem.hxx>
+#endif
+#ifndef _SVX_UDLNITEM_HXX //autogen
+#include <svx/udlnitem.hxx>
+#endif
+#ifndef _SVX_POSTITEM_HXX //autogen
+#include <svx/postitem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SIMDLL0_HXX //autogen
+#include <sim2/simdll0.hxx>
+#endif
+#ifndef _SIMDLL_HXX //autogen
+#include <sim2/simdll.hxx>
+#endif
+
+
+#ifndef _EDTWIN_HXX //autogen
+#include <edtwin.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX //autogen
+#include <fldbas.hxx>
+#endif
+#ifndef _SWMODULE_HXX //autogen
+#include <swmodule.hxx>
+#endif
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX //autogen
+#include <viewopt.hxx>
+#endif
+#ifndef _SW_DRAWBASE_HXX //autogen
+#include <drawbase.hxx>
+#endif
+#ifndef _SW_DSELECT_HXX //autogen
+#include <dselect.hxx>
+#endif
+#ifndef _SWTEXTSH_HXX //autogen
+#include <textsh.hxx>
+#endif
+#ifndef _SHDWCRSR_HXX
+#include <shdwcrsr.hxx>
+#endif
+#ifndef _FMTANCHR_HXX //autogen
+#include <fmtanchr.hxx>
+#endif
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _FRMFMT_HXX //autogen
+#include <frmfmt.hxx>
+#endif
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#ifndef _FMTCOL_HXX //autogen
+#include <fmtcol.hxx>
+#endif
+#ifndef _SWWVIEW_HXX //autogen
+#include <wview.hxx>
+#endif
+#ifndef _SWLISTSH_HXX //autogen
+#include <listsh.hxx>
+#endif
+#ifndef _GLOSLST_HXX //autogen
+#include <gloslst.hxx>
+#endif
+#ifndef SW_INPUTWIN_HXX //autogen
+#include <inputwin.hxx>
+#endif
+#ifndef _GLOSHDL_HXX //autogen
+#include <gloshdl.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _SWDRWTXTSH_HXX //autogen
+#include <drwtxtsh.hxx>
+#endif
+#ifndef _FCHRFMT_HXX //autogen
+#include <fchrfmt.hxx>
+#endif
+#ifndef _ROMENU_HXX
+#include <romenu.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _EXTINPUT_HXX
+#include <extinput.hxx>
+#endif
+#ifndef _ACMPLWRD_HXX
+#include <acmplwrd.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _DOCVW_HRC
+#include <docvw.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Globals
+ --------------------------------------------------------------------*/
+
+extern BOOL bNoInterrupt; // in mainwn.cxx
+
+//Normalerweise wird im MouseButtonUp eine Selektion aufgehoben wenn die
+//Selektion nicht gerade aufgezogen wird. Leider wird im MouseButtonDown
+//bei doppel-/dreifach-Klick Selektiert, diese Selektion wird in dem Handler
+//komplett abgeschlossen und kann deshalb im Up nicht mehr unterschieden
+//werden. Um dies Aufzuloese wird bHoldSelection im Down gesetzt und im
+//Up ausgewertet.
+static BOOL bHoldSelection = FALSE;
+
+BOOL bFrmDrag = FALSE;
+BOOL bValidCrsrPos = FALSE;
+BOOL bModePushed = FALSE;
+BOOL bDDTimerStarted = FALSE;
+BOOL bFlushCharBuffer = FALSE;
+BOOL SwEditWin::bReplaceQuote = FALSE;
+BOOL bDDINetAttr = FALSE;
+SdrHdlKind eSdrMoveHdl = HDL_USER;
+
+QuickHelpData* SwEditWin::pQuickHlpData = 0;
+
+long SwEditWin::nDDStartPosY = 0;
+long SwEditWin::nDDStartPosX = 0;
+Color SwEditWin::aTextBackColor(COL_YELLOW);
+Color SwEditWin::aTextColor(COL_RED);
+BOOL SwEditWin::bTransparentBackColor = FALSE; // Hintergrund nicht transparent
+
+
+extern BOOL bExecuteDrag;
+
+SfxShell* lcl_GetShellFromDispatcher( SwView& rView, TypeId nType );
+
+DBG_NAME(edithdl);
+
+class SwAnchorMarker
+{
+ SdrHdl* pHdl;
+ Point aLastPos;
+public:
+ SwAnchorMarker( SdrHdl* pH ) :
+ pHdl( pH ), aLastPos( pH->GetPos() ) {}
+ const Point& GetLastPos() const { return aLastPos; }
+ void SetLastPos( const Point& rNew ) { aLastPos = rNew; }
+ void SetPos( const Point& rNew ) { pHdl->SetPos( rNew ); }
+};
+
+struct QuickHelpData
+{
+ SvStringsISortDtor aArr;
+ USHORT* pAttrs;
+ CommandExtTextInputData* pCETID;
+ ULONG nTipId;
+ USHORT nLen, nCurArrPos;
+ BOOL bClear : 1, bChkInsBlank : 1, bIsTip : 1, bIsAutoText : 1;
+
+ QuickHelpData() : pCETID( 0 ), pAttrs( 0 ) { ClearCntnt(); }
+
+ void Move( QuickHelpData& rCpy );
+ void ClearCntnt();
+ void Start( SwWrtShell& rSh, USHORT nWrdLen );
+ void Stop( SwWrtShell& rSh );
+
+ BOOL HasCntnt() const { return aArr.Count() && 0 != nLen; }
+
+ void Inc( BOOL bEndLess )
+ {
+ if( ++nCurArrPos >= aArr.Count() )
+ nCurArrPos = (bEndLess && !bIsAutoText )? 0 : nCurArrPos-1;
+ }
+ void Dec( BOOL bEndLess )
+ {
+ if( 0 == nCurArrPos-- )
+ nCurArrPos = (bEndLess && !bIsAutoText ) ? aArr.Count()-1 : 0;
+ }
+};
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Minimale Bewegung Zittern vermeiden
+ --------------------------------------------------------------------*/
+
+#define HIT_PIX 2 /* Hit-Toleranz in Pixel */
+#define MIN_MOVE 4
+
+inline BOOL IsMinMove(const Point &rStartPos, const Point &rLPt)
+{
+ return Abs(rStartPos.X() - rLPt.X()) > MIN_MOVE ||
+ Abs(rStartPos.Y() - rLPt.Y()) > MIN_MOVE;
+}
+
+/*--------------------------------------------------------------------
+ JP 30.07.98: fuer MouseButtonDown - feststellen, ob ein DrawObject
+ und KEIN SwgFrame getroffen wurde! Shift/Ctrl sollen
+ nur bei DrawObjecte zum Selektieren fuehren, bei SwgFlys
+ ggfs zum ausloesen von Hyperlinks (DownLoad/NewWindow!)
+ --------------------------------------------------------------------*/
+inline BOOL IsDrawObjSelectable( const SwWrtShell& rSh, const Point& rPt )
+{
+ BOOL bRet = TRUE;
+ SdrObject* pObj;
+ switch( rSh.GetObjCntType( rPt, pObj ))
+ {
+ case OBJCNT_NONE:
+ case OBJCNT_FLY:
+ case OBJCNT_GRF:
+ case OBJCNT_OLE:
+ bRet = FALSE;
+ break;
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Pointer umschalten
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::UpdatePointer(const Point &rLPt, USHORT nModifier )
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+ if( pApplyTempl )
+ {
+ PointerStyle eStyle = POINTER_FILL;
+ if( rSh.IsOverReadOnlyPos( rLPt ))
+ {
+ if( pUserMarker )
+ DELETEZ( pUserMarker );
+// rSh.SwCrsrShell::UnSetVisCrsr( rLPt );
+ eStyle = POINTER_NOTALLOWED;
+ }
+ else
+ {
+ SwRect aRect;
+ SwRect* pRect = &aRect;
+ const SwFrmFmt* pFmt = 0;
+ if(!pApplyTempl->nColor &&
+ pApplyTempl->eType == SFX_STYLE_FAMILY_FRAME &&
+ 0 !=(pFmt = rSh.GetFmtFromObj( rLPt, &pRect )) &&
+ PTR_CAST(SwFlyFrmFmt, pFmt))
+ {
+ //Highlight fuer Rahmen anwerfen
+ Rectangle aTmp( pRect->SVRect() );
+ if ( !pUserMarker )
+ pUserMarker = new SdrViewUserMarker( rSh.GetDrawView() );
+ pUserMarker->SetRectangle( aTmp );
+ pUserMarker->Show();
+ }
+ else if(pUserMarker)
+ DELETEZ(pUserMarker);
+ rSh.SwCrsrShell::SetVisCrsr( rLPt );
+ }
+ SetPointer( eStyle );
+ return;
+ }
+
+ if( !rSh.VisArea().Width() )
+ return;
+
+ SET_CURR_SHELL(&rSh);
+
+ if ( IsChainMode() )
+ {
+ SwRect aRect;
+ int nChainable = rSh.Chainable( aRect, *rSh.GetFlyFrmFmt(), rLPt );
+ PointerStyle eStyle = nChainable
+ ? POINTER_CHAIN_NOTALLOWED : POINTER_CHAIN;
+ if ( !nChainable )
+ {
+ Rectangle aTmp( aRect.SVRect() );
+ if ( !pUserMarker )
+ pUserMarker = new SdrViewUserMarker( rSh.GetDrawView() );
+ pUserMarker->SetRectangle( aTmp );
+ pUserMarker->Show();
+ }
+ else
+ {
+ DELETEZ( pUserMarker );
+ }
+ rView.GetViewFrame()->ShowStatusText(
+ SW_RESSTR(STR_CHAIN_OK+nChainable));
+ SetPointer( eStyle );
+ return;
+ }
+
+ BOOL bExecHyperlinks = rSh.GetViewOptions()->IsExecHyperlinks() ^
+ (nModifier == KEY_MOD2 ? TRUE : FALSE);
+
+ SdrView *pSdrView = rSh.GetDrawView();
+ BOOL bPrefSdrPointer = FALSE;
+ BOOL bHitHandle = FALSE;
+ BOOL bCntAtPos = FALSE;
+ BOOL bIsDocReadOnly = rView.GetDocShell()->IsReadOnly() &&
+ rSh.IsCrsrReadonly();
+ aActHitType = SDRHIT_NONE;
+ PointerStyle eStyle = POINTER_TEXT;
+ if ( !pSdrView )
+ bCntAtPos = TRUE;
+ else if ( bHitHandle = pSdrView->HitHandle( rLPt, *(rSh.GetOut())) != 0 )
+ {
+ aActHitType = SDRHIT_OBJECT;
+ bPrefSdrPointer = TRUE;
+ }
+ else
+ {
+ const BOOL bNotInSelObj = !rSh.IsInsideSelectedObj( rLPt );
+ if ( rView.GetDrawFuncPtr() && !bInsDraw && bNotInSelObj )
+ {
+ aActHitType = SDRHIT_OBJECT;
+ if (GetDrawMode() == SID_OBJECT_SELECT)
+ eStyle = POINTER_ARROW;
+ else
+ bPrefSdrPointer = TRUE;
+ }
+ else
+ {
+ SdrObject* pObj; SdrPageView* pPV;
+ pSdrView->SetHitTolerancePixel( HIT_PIX );
+ if ( bNotInSelObj && bExecHyperlinks &&
+ pSdrView->PickObj( rLPt, pObj, pPV, SDRSEARCH_PICKMACRO ))
+ {
+ SdrObjMacroHitRec aTmp;
+ aTmp.aPos = rLPt;
+ aTmp.pPageView = pPV;
+ SetPointer( pObj->GetMacroPointer( aTmp ) );
+ return;
+ }
+ else
+ {
+ if ( rSh.IsObjSelectable( rLPt ) )
+ {
+ if (pSdrView->IsTextEdit())
+ {
+ aActHitType = SDRHIT_NONE;
+ bPrefSdrPointer = TRUE;
+ }
+ else
+ {
+ SdrViewEvent aVEvt;
+ SdrHitKind eHit = pSdrView->PickAnything(rLPt, aVEvt);
+
+ if (eHit == SDRHIT_URLFIELD && bExecHyperlinks)
+ {
+ aActHitType = SDRHIT_OBJECT;
+ bPrefSdrPointer = TRUE;
+ }
+ else
+ {
+ eStyle = POINTER_MOVE;
+
+ if (!bNotInSelObj)
+ {
+ if (rSh.IsObjSelected() || rSh.IsFrmSelected())
+ {
+ if (rSh.IsSelObjProtected(FLYPROTECT_POS))
+ eStyle = POINTER_NOTALLOWED;
+ }
+ }
+ aActHitType = SDRHIT_OBJECT;
+ }
+ }
+ }
+ else
+ {
+ if ( rSh.IsFrmSelected() && !bNotInSelObj )
+ {
+ if (rSh.IsSelObjProtected(FLYPROTECT_SIZE))
+ eStyle = POINTER_NOTALLOWED;
+ else
+ eStyle = POINTER_MOVE;
+ aActHitType = SDRHIT_OBJECT;
+ }
+ else
+ {
+ if ( rView.GetDrawFuncPtr() )
+ bPrefSdrPointer = TRUE;
+ else
+ bCntAtPos = TRUE;
+ }
+ }
+ }
+ }
+ }
+ if ( bPrefSdrPointer )
+ {
+ if (bIsDocReadOnly || (rSh.IsObjSelected() && rSh.IsSelObjProtected(FLYPROTECT_CONTENT)))
+ SetPointer( POINTER_NOTALLOWED );
+ else
+ {
+ if (rView.GetDrawFuncPtr() && rView.GetDrawFuncPtr()->IsInsertForm() && !bHitHandle)
+ SetPointer( POINTER_DRAW_RECT );
+ else
+ SetPointer( pSdrView->GetPreferedPointer( rLPt, rSh.GetOut() ) );
+ }
+ }
+ else
+ {
+ if( pAnchorMarker )
+ eStyle = POINTER_ARROW;
+ else if( bCntAtPos && bExecHyperlinks )
+ {
+ // sollten wir ueber einem InternetAttr/ClickFeld/Fussnote stehen?
+ SwContentAtPos aSwContentAtPos(
+ SwContentAtPos::SW_CLICKFIELD|
+ SwContentAtPos::SW_INETATTR|
+ SwContentAtPos::SW_FTN );
+ if( rSh.GetContentAtPos( rLPt, aSwContentAtPos) )
+ eStyle = POINTER_REFHAND;
+ }
+
+ SetPointer( eStyle );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Timer fuer Selektion vergroessern
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwEditWin, TimerHandler, Timer *, EMPTYARG )
+{
+ DBG_PROFSTART(edithdl);
+
+ SwWrtShell &rSh = rView.GetWrtShell();
+ Point aModPt( aMovePos );
+ const SwRect aOldVis( rSh.VisArea() );
+ FASTBOOL bDone = FALSE;
+
+ if ( !rSh.VisArea().IsInside( aModPt ) )
+ {
+ if ( bInsDraw )
+ {
+ const int nMaxScroll = 40;
+ rView.Scroll( Rectangle(aModPt,Size(1,1)), nMaxScroll, nMaxScroll);
+ bDone = TRUE;
+ }
+ else if ( bFrmDrag )
+ {
+ (rSh.*rSh.fnDrag)(&aModPt,FALSE);
+ bDone = TRUE;
+ }
+ if ( !bDone )
+ aModPt = rSh.GetCntntPos( aModPt,aModPt.Y() > rSh.VisArea().Bottom() );
+ }
+ if ( !bDone && !(bFrmDrag || bInsDraw) )
+ {
+ (rSh.*rSh.fnSetCrsr)( &aModPt, FALSE );
+
+ //fix(24138): Es kann sein, dass der "Sprung" ueber eine Tabelle so
+ //nicht geschafft wird. Deshalb wir hier eben per Up/Down ueber die
+ //Tabelle gesprungen.
+ if ( aOldVis == rSh.VisArea() &&
+ !rSh.IsStartOfDoc() && !rSh.IsEndOfDoc() && !rSh.IsTableMode())
+ {
+ if ( aModPt.Y() < rSh.VisArea().Top() )
+ rSh.Up( TRUE );
+ else
+ rSh.Down( TRUE );
+ }
+ }
+
+ aMovePos += rSh.VisArea().Pos() - aOldVis.Pos();
+ JustifyAreaTimer();
+ DBG_PROFSTOP(edithdl);
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::JustifyAreaTimer()
+{
+ const Rectangle &rVisArea = GetView().GetVisArea();
+ long nTimeout = 800,
+ nDiff = Max(
+ Max( aMovePos.Y() - rVisArea.Bottom(), rVisArea.Top() - aMovePos.Y() ),
+ Max( aMovePos.X() - rVisArea.Right(), rVisArea.Left() - aMovePos.X()));
+ aTimer.SetTimeout( Max( 0L, nTimeout - nDiff*2L) );
+}
+
+void SwEditWin::LeaveArea(const Point &rPos)
+{
+ aMovePos = rPos;
+ JustifyAreaTimer();
+ if ( !aTimer.IsActive() )
+ aTimer.Start();
+ if( pShadCrsr )
+ delete pShadCrsr, pShadCrsr = 0;
+}
+
+inline void SwEditWin::EnterArea()
+{
+ aTimer.Stop();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Modus fuer Rahmen einfuegen
+------------------------------------------------------------------------*/
+
+
+void SwEditWin::InsFrm(USHORT nCols)
+{
+ StdDrawMode(OBJ_NONE);
+ bInsFrm = TRUE;
+ nInsFrmColCount = nCols;
+}
+
+
+
+void SwEditWin::StdDrawMode(USHORT nSlotId)
+{
+ SetDrawMode( nSlotId );
+
+/* if (GetDrawFuncPtr())
+ GetDrawFuncPtr()->Deactivate();*/
+
+ if (nSlotId == OBJ_NONE)
+ rView.SetDrawFuncPtr(new SwDrawBase( &rView.GetWrtShell(), this, &rView ));
+ else
+ rView.SetDrawFuncPtr(new DrawSelection( &rView.GetWrtShell(), this, &rView ));
+
+ rView.SetSelDrawSlot();
+ SetDrawMode(nSlotId);
+ rView.GetDrawFuncPtr()->Activate( nSlotId );
+ bInsFrm = FALSE;
+ nInsFrmColCount = 1;
+}
+
+
+
+void SwEditWin::StopInsFrm()
+{
+ if (rView.GetDrawFuncPtr())
+ {
+ rView.GetDrawFuncPtr()->Deactivate();
+ rView.SetDrawFuncPtr(NULL);
+ }
+ rView.LeaveDrawCreate(); // Konstruktionsmode verlassen
+ bInsFrm = FALSE;
+ nInsFrmColCount = 1;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Character Buffer wird in das Dokument eingefuegt
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::FlushInBuffer( SwWrtShell *pSh )
+{
+ if ( aInBuffer.Len() )
+ {
+ pSh->Insert( aInBuffer );
+ aInBuffer.Erase();
+ bFlushCharBuffer = FALSE;
+ }
+}
+
+
+
+void SwEditWin::ChangeFly( BYTE nDir, BOOL bWeb )
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SwRect aTmp = rSh.GetFlyRect();
+ if( aTmp.HasArea() )
+ {
+ SfxItemSet aSet(rSh.GetAttrPool(),
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_VERT_ORIENT, RES_ANCHOR,
+ RES_COL, RES_COL, 0);
+ rSh.GetFlyFrmAttr( aSet );
+ RndStdIds eAnchorId = ((SwFmtAnchor&)aSet.Get(RES_ANCHOR)).GetAnchorId();
+ Size aSnap( rSh.GetViewOptions()->GetSnapSize() );
+ short nDiv = rSh.GetViewOptions()->GetDivisionX();
+ if ( nDiv > 0 )
+ aSnap.Width() = Max( (ULONG)1, (ULONG)aSnap.Width() / nDiv );
+ nDiv = rSh.GetViewOptions()->GetDivisionY();
+ if ( nDiv > 0 )
+ aSnap.Height() = Max( (ULONG)1, (ULONG)aSnap.Height() / nDiv );
+ SwRect aBoundRect;
+ Point aRefPoint;
+ rSh.CalcBoundRect( aBoundRect, eAnchorId, FRAME, FALSE, &aRefPoint );
+ long nLeft = Min( aTmp.Left() - aBoundRect.Left(), aSnap.Width() );
+ long nRight = Min( aBoundRect.Right() - aTmp.Right(), aSnap.Width() );
+ long nUp = Min( aTmp.Top() - aBoundRect.Top(), aSnap.Height() );
+ long nDown = Min( aBoundRect.Bottom() - aTmp.Bottom(), aSnap.Height() );
+
+ switch ( nDir )
+ {
+ case 4:
+ case 0: aTmp.Left( aTmp.Left() - nLeft ); break;
+ case 5:
+ case 1: aTmp.Top( aTmp.Top() - nUp ); break;
+ case 6: if( aTmp.Width() < aSnap.Width() + MINFLY ) break;
+ nRight = aSnap.Width(); // kein break
+ case 2: aTmp.Left( aTmp.Left() + nRight ); break;
+ case 7: if( aTmp.Height() < aSnap.Height() + MINFLY ) break;
+ nDown = aSnap.Height(); // kein break
+ case 3: aTmp.Top( aTmp.Top() + nDown ); break;
+ case 8: if( aTmp.Width() >= aSnap.Width() + MINFLY )
+ aTmp.Right( aTmp.Right() - aSnap.Width() );
+ break;
+ case 9: if( aTmp.Height() >= aSnap.Height() + MINFLY )
+ aTmp.Height( aTmp.Height() - aSnap.Height() );
+ break;
+ case 10: aTmp.Width( aTmp.Width() + nRight ); break;
+ case 11: aTmp.Height( aTmp.Height() + nDown ); break;
+ default: ASSERT( TRUE, "ChangeFly: Unknown direction." );
+ }
+ BOOL bSet = FALSE;
+ if( nDir < 8 && FLY_IN_CNTNT == eAnchorId && ( nDir % 2 ) )
+ {
+ long aDiff = aTmp.Top() - aRefPoint.Y();
+ if( aDiff > 0 )
+ aDiff = 0;
+ else if ( aDiff < -aTmp.Height() )
+ aDiff = -aTmp.Height();
+ SwFmtVertOrient aVert( (SwFmtVertOrient&)aSet.Get(RES_VERT_ORIENT) );
+ SwVertOrient eNew;
+ if( bWeb )
+ {
+ eNew = aVert.GetVertOrient();
+ BOOL bDown = 0 != ( nDir & 0x02 );
+ switch( eNew )
+ {
+ case VERT_CHAR_TOP:
+ if( bDown ) eNew = VERT_CENTER; break;
+ case VERT_CENTER:
+ eNew = bDown ? VERT_TOP : VERT_CHAR_TOP; break;
+ case VERT_TOP:
+ if( !bDown ) eNew = VERT_CENTER; break;
+ case VERT_LINE_TOP:
+ if( bDown ) eNew = VERT_LINE_CENTER; break;
+ case VERT_LINE_CENTER:
+ eNew = bDown ? VERT_LINE_BOTTOM : VERT_LINE_TOP; break;
+ case VERT_LINE_BOTTOM:
+ if( !bDown ) eNew = VERT_LINE_CENTER; break;
+ }
+ }
+ else
+ {
+ aVert.SetPos( aDiff );
+ eNew = VERT_NONE;
+ }
+ aVert.SetVertOrient( eNew );
+ aSet.Put( aVert );
+ bSet = TRUE;
+ }
+ if( bWeb && FLY_AT_CNTNT == eAnchorId && ( nDir==0 || nDir==2 ) )
+ {
+ SwFmtHoriOrient aHori( (SwFmtHoriOrient&)aSet.Get(RES_HORI_ORIENT) );
+ SwHoriOrient eNew;
+ eNew = aHori.GetHoriOrient();
+ switch( eNew )
+ {
+ case HORI_RIGHT:
+ if( !nDir ) eNew = HORI_LEFT; break;
+ case HORI_LEFT:
+ if( nDir ) eNew = HORI_RIGHT; break;
+ }
+ if( eNew != aHori.GetHoriOrient() )
+ {
+ aHori.SetHoriOrient( eNew );
+ aSet.Put( aHori );
+ bSet = TRUE;
+ }
+ }
+ if( nDir > 3 )
+ {
+ SwFmtFrmSize aSize( (SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE) );
+
+ long nMinWidth = MINFLY;
+ // alle Spalten muessen passen
+ if (SFX_ITEM_DEFAULT <= aSet.GetItemState(RES_COL))
+ {
+ const SwFmtCol& rCol = (const SwFmtCol&)aSet.Get(RES_COL);
+ if ( rCol.GetColumns().Count() > 1 )
+ {
+ for ( USHORT i = 0; i < rCol.GetColumns().Count(); ++i )
+ {
+ nMinWidth += rCol.GetColumns()[i]->GetLeft() +
+ rCol.GetColumns()[i]->GetRight() +
+ MINFLY;
+ }
+ nMinWidth -= MINFLY;//einen hatten wir schon mit drin!
+ }
+ }
+
+ aSize.SetSize(Size(Max(aTmp.Width(), nMinWidth), Max(aTmp.Height(), long(MINFLY))));
+ aSet.Put( aSize );
+ bSet = TRUE;
+ }
+ rSh.StartAllAction();
+ if( bSet )
+ rSh.SetFlyFrmAttr( aSet );
+ if( !bWeb && nDir < 8 && FLY_IN_CNTNT != eAnchorId )
+ rSh.SetFlyPos( aTmp.Pos() );
+ rSh.EndAllAction();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: KeyEvents
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::KeyInput(const KeyEvent &rKEvt)
+{
+ SfxObjectShell *pObjSh = (SfxObjectShell*)rView.GetViewFrame()->GetObjectShell();
+ if ( bLockInput || pObjSh && pObjSh->GetProgress() )
+ // Wenn die Rechenleiste aktiv ist oder
+ // auf dem Document ein Progress laeuft wird keine
+ // Bestellungen angenommen.
+ return;
+
+ if( pShadCrsr )
+ delete pShadCrsr, pShadCrsr = 0;
+ aKeyInputFlushTimer.Stop();
+
+ SwWrtShell &rSh = rView.GetWrtShell();
+ BOOL bIsDocReadOnly = rView.GetDocShell()->IsReadOnly() &&
+ rSh.IsCrsrReadonly();
+
+ QuickHelpData aTmpQHD;
+ if( pQuickHlpData->bClear )
+ {
+ aTmpQHD.Move( *pQuickHlpData );
+ pQuickHlpData->Stop( rSh );
+ }
+
+ // OS:auch die DrawView braucht noch ein readonly-Flag
+ if ( !bIsDocReadOnly && rSh.GetDrawView() && rSh.GetDrawView()->KeyInput( rKEvt, this ) )
+ {
+ rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll( FALSE );
+ rSh.SetModified();
+ return; // Event von der SdrView ausgewertet
+ }
+
+ if ( rView.GetDrawFuncPtr() && bInsFrm )
+ {
+ StopInsFrm();
+ rSh.Edit();
+ }
+
+ BOOL bFlushBuffer = FALSE;
+ BOOL bNormalChar = FALSE;
+ BOOL bChkInsBlank = pQuickHlpData->bChkInsBlank;
+ pQuickHlpData->bChkInsBlank = FALSE;
+
+ const KeyCode& rKeyCode = rKEvt.GetKeyCode();
+ sal_Unicode aCh = rKEvt.GetCharCode();
+
+ const SwFrmFmt* pFlyFmt = rSh.GetFlyFrmFmt();
+ if( pFlyFmt )
+ {
+ USHORT nEvent;
+
+ if( 32 <= aCh &&
+ 0 == (( KEY_MOD1 | KEY_MOD2 ) & rKeyCode.GetModifier() ))
+ nEvent = SW_EVENT_FRM_KEYINPUT_ALPHA;
+ else
+ nEvent = SW_EVENT_FRM_KEYINPUT_NOALPHA;
+
+ const SvxMacro* pMacro = pFlyFmt->GetMacro().GetMacroTable().Get( nEvent );
+ if( pMacro )
+ {
+ String sRet;
+ SbxArrayRef xArgs = new SbxArray;
+ SbxVariableRef xVar = new SbxVariable;
+ xVar->PutString( pFlyFmt->GetName() );
+ xArgs->Put( &xVar, 1 );
+
+ xVar = new SbxVariable;
+ if( SW_EVENT_FRM_KEYINPUT_ALPHA == nEvent )
+ xVar->PutChar( aCh );
+ else
+ xVar->PutUShort( rKeyCode.GetModifier() | rKeyCode.GetCode() );
+ xArgs->Put( &xVar, 2 );
+
+ rSh.ExecMacro( *pMacro, &sRet, &xArgs );
+ if( sRet.Len() && 0 != sRet.ToInt32() )
+ return ;
+ }
+ }
+
+ OfaAutoCorrCfg* pACfg = OFF_APP()->GetAutoCorrConfig();
+ SvxAutoCorrect* pACorr = pACfg->GetAutoCorrect();
+
+ SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+
+ /*TblChgWidthHeightType*/int eTblChgMode;
+ USHORT nTblChgSize = 0;
+ BOOL bStopKeyInputTimer = TRUE;
+ String sFmlEntry;
+
+ enum SW_KeyState { KS_Start,
+ KS_CheckKey, KS_InsChar, KS_InsTab,
+ KS_NoNum, KS_NumOff, KS_NumOrNoNum, KS_NumDown, KS_NumUp,
+ KS_NextCell, KS_PrevCell, KS_OutlineUp, KS_OutlineDown,
+ KS_GlossaryExpand, KS_NextPrevGlossary,
+ KS_AutoFmtByInput, KS_DontExpand,
+ KS_KeyToView,
+ KS_CheckAutoCorrect, KS_EditFormula,
+ KS_ColLeftBig, KS_ColRightBig,
+ KS_ColLeftSmall, KS_ColRightSmall,
+ KS_ColTopBig, KS_ColBottomBig,
+ KS_ColTopSmall, KS_ColBottomSmall,
+ KS_CellLeftBig, KS_CellRightBig,
+ KS_CellLeftSmall, KS_CellRightSmall,
+ KS_CellTopBig, KS_CellBottomBig,
+ KS_CellTopSmall, KS_CellBottomSmall,
+//-----
+ KS_InsDel_ColLeftBig, KS_InsDel_ColRightBig,
+ KS_InsDel_ColLeftSmall, KS_InsDel_ColRightSmall,
+ KS_InsDel_ColTopBig, KS_InsDel_ColBottomBig,
+ KS_InsDel_ColTopSmall, KS_InsDel_ColBottomSmall,
+ KS_InsDel_CellLeftBig, KS_InsDel_CellRightBig,
+ KS_InsDel_CellLeftSmall, KS_InsDel_CellRightSmall,
+ KS_InsDel_CellTopBig, KS_InsDel_CellBottomBig,
+ KS_InsDel_CellTopSmall, KS_InsDel_CellBottomSmall,
+ KS_TblColCellInsDel,
+//-----
+ KS_Fly_Change,
+ KS_AppendNodeInSection,
+ KS_Ende };
+
+ SW_KeyState eKeyState = bIsDocReadOnly ? KS_KeyToView : KS_CheckKey,
+ eNextKeyState = KS_Ende;
+
+ while( KS_Ende != eKeyState )
+ {
+ SW_KeyState eFlyState = KS_KeyToView;
+ BYTE nDir;
+
+ switch( eKeyState )
+ {
+ case KS_CheckKey:
+ eKeyState = KS_KeyToView; // default weiter zur View
+
+#ifndef PRODUCT
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ // JP 19.01.99: zum Umschalten des Cursor Verhaltens in ReadOnly
+ // Bereichen
+ if( 0x7210 == rKeyCode.GetFullCode() )
+ rSh.SetReadOnlyAvailable( !rSh.IsReadOnlyAvailable() );
+ else
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+#endif
+
+ if( !rKeyCode.IsControlMod() && '=' == aCh &&
+ !rSh.IsTableMode() && rSh.GetTableFmt() &&
+ rSh.IsSttPara() /*&& rSh.IsEndPara()*/ &&
+ !rSh.HasReadonlySel() )
+ {
+ // in der Tabelle am Anfang der Zelle ein '=' ->
+ // EditZeile aufrufen (F2-Funktionalitaet)
+ rSh.Push();
+ if( !rSh.MoveSection( fnSectionCurr, fnSectionStart) &&
+ !rSh.IsTableBoxTextFormat() )
+ {
+ // steht also am Anfang der Box
+ eKeyState = KS_EditFormula;
+ if( rSh.HasMark() )
+ rSh.SwapPam();
+ else
+ rSh.SttSelect();
+ rSh.MoveSection( fnSectionCurr, fnSectionEnd );
+ rSh.Pop( TRUE );
+ rSh.EndSelect();
+ sFmlEntry = '=';
+ }
+ else
+ rSh.Pop( FALSE );
+ }
+ else
+ {
+ if( pACorr && aTmpQHD.HasCntnt() && !rSh.HasSelection() &&
+ !rSh.HasReadonlySel() && !aTmpQHD.bIsAutoText &&
+ pACorr->GetSwFlags().nAutoCmpltExpandKey ==
+ (rKeyCode.GetModifier() | rKeyCode.GetCode()) )
+ {
+ eKeyState = KS_GlossaryExpand;
+ break;
+ }
+
+ switch( rKeyCode.GetModifier() | rKeyCode.GetCode() )
+ {
+ case KEY_RIGHT | KEY_MOD2:
+ eKeyState = KS_ColRightBig;
+ eFlyState = KS_Fly_Change;
+ nDir = 2;
+ goto KEYINPUT_CHECKTABLE;
+
+ case KEY_LEFT | KEY_MOD2:
+ eKeyState = KS_ColRightSmall;
+ eFlyState = KS_Fly_Change;
+ nDir = 0;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_RIGHT | KEY_MOD2 | KEY_SHIFT:
+ eKeyState = KS_ColLeftSmall;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_LEFT | KEY_MOD2 | KEY_SHIFT:
+ eKeyState = KS_ColLeftBig;
+ goto KEYINPUT_CHECKTABLE;
+
+ case KEY_RIGHT | KEY_MOD2 | KEY_MOD1:
+ eKeyState = KS_CellRightBig;
+ eFlyState = KS_Fly_Change;
+ nDir = 10;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_LEFT | KEY_MOD2 | KEY_MOD1:
+ eKeyState = KS_CellRightSmall;
+ eFlyState = KS_Fly_Change;
+ nDir = 8;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_RIGHT | KEY_MOD2 | KEY_SHIFT | KEY_MOD1:
+ eKeyState = KS_CellLeftSmall;
+ eFlyState = KS_Fly_Change;
+ nDir = 6;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_LEFT | KEY_MOD2 | KEY_SHIFT | KEY_MOD1:
+ eKeyState = KS_CellLeftBig;
+ eFlyState = KS_Fly_Change;
+ nDir = 4;
+ goto KEYINPUT_CHECKTABLE;
+
+ case KEY_UP | KEY_MOD2:
+ eKeyState = KS_ColBottomSmall;
+ eFlyState = KS_Fly_Change;
+ nDir = 1;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_DOWN | KEY_MOD2:
+ eKeyState = KS_ColBottomBig;
+ eFlyState = KS_Fly_Change;
+ nDir = 3;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_UP | KEY_MOD2 | KEY_SHIFT:
+ eKeyState = KS_ColTopBig;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_DOWN | KEY_MOD2 | KEY_SHIFT:
+ eKeyState = KS_ColTopSmall;
+ goto KEYINPUT_CHECKTABLE;
+
+ case KEY_UP | KEY_MOD2 | KEY_MOD1:
+ eKeyState = KS_CellBottomSmall;
+ eFlyState = KS_Fly_Change;
+ nDir = 9;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_DOWN | KEY_MOD2 | KEY_MOD1:
+ eKeyState = KS_CellBottomBig;
+ eFlyState = KS_Fly_Change;
+ nDir = 11;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_UP | KEY_MOD2 | KEY_SHIFT | KEY_MOD1:
+ eKeyState = KS_CellTopBig;
+ eFlyState = KS_Fly_Change;
+ nDir = 5;
+ goto KEYINPUT_CHECKTABLE;
+ case KEY_DOWN | KEY_MOD2 | KEY_SHIFT | KEY_MOD1:
+ eKeyState = KS_CellTopSmall;
+ eFlyState = KS_Fly_Change;
+ nDir = 7;
+ goto KEYINPUT_CHECKTABLE;
+
+KEYINPUT_CHECKTABLE:
+ if( rSh.IsTableMode() || !rSh.GetTableFmt() )
+ {
+
+ if( pFlyFmt && KS_KeyToView != eFlyState )
+ {
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pFlyFmt->GetItemState(
+ RES_PROTECT, TRUE, &pItem ) && (
+ ((SvxProtectItem*)pItem)->IsSizeProtected() ||
+ ((SvxProtectItem*)pItem)->IsPosProtected() ))
+ {
+ //JP 18.01.99: man koennte es noch feiner
+ // ermitteln (nDir auswerten)
+ pFlyFmt = 0;
+ }
+ }
+
+ if( pFlyFmt )
+ eKeyState = eFlyState;
+ else
+ eKeyState = KS_KeyToView;
+ }
+ break;
+
+//-------
+// Insert/Delete
+ case KEY_LEFT:
+ case KEY_LEFT | KEY_MOD1:
+ eTblChgMode = WH_FLAG_INSDEL |
+ ( rKeyCode.GetModifier() & KEY_MOD1
+ ? WH_CELL_LEFT
+ : WH_COL_LEFT );
+ nTblChgSize = pModOpt->GetTblVInsert();
+ goto KEYINPUT_CHECKTABLE_INSDEL;
+// case KEY_RIGHT:
+ case KEY_RIGHT | KEY_MOD1:
+ eTblChgMode = WH_FLAG_INSDEL | WH_CELL_RIGHT;
+ nTblChgSize = pModOpt->GetTblVInsert();
+ goto KEYINPUT_CHECKTABLE_INSDEL;
+
+ case KEY_UP:
+ case KEY_UP | KEY_MOD1:
+ eTblChgMode = WH_FLAG_INSDEL |
+ ( rKeyCode.GetModifier() & KEY_MOD1
+ ? WH_CELL_TOP
+ : WH_ROW_TOP );
+ nTblChgSize = pModOpt->GetTblHInsert();
+ goto KEYINPUT_CHECKTABLE_INSDEL;
+ case KEY_DOWN:
+ case KEY_DOWN | KEY_MOD1:
+ eTblChgMode = WH_FLAG_INSDEL |
+ ( rKeyCode.GetModifier() & KEY_MOD1
+ ? WH_CELL_BOTTOM
+ : WH_ROW_BOTTOM );
+ nTblChgSize = pModOpt->GetTblHInsert();
+ goto KEYINPUT_CHECKTABLE_INSDEL;
+
+KEYINPUT_CHECKTABLE_INSDEL:
+ if( rSh.IsTableMode() || !rSh.GetTableFmt() ||
+ !bTblInsDelMode ||
+ FALSE /* Tabelle geschuetzt */
+ )
+ eKeyState = KS_KeyToView;
+ else
+ {
+ if( !bTblIsInsMode )
+ eTblChgMode = eTblChgMode | WH_FLAG_BIGGER;
+ eKeyState = KS_TblColCellInsDel;
+ }
+ break;
+
+ case KEY_DELETE | KEY_MOD2:
+ if( !rSh.IsTableMode() && rSh.GetTableFmt() )
+ {
+ eKeyState = KS_Ende;
+ bTblInsDelMode = TRUE;
+ bTblIsInsMode = FALSE;
+ bTblIsColMode = TRUE;
+ aKeyInputTimer.Start();
+ bStopKeyInputTimer = FALSE;
+ }
+ break;
+ case KEY_INSERT | KEY_MOD2:
+ if( !rSh.IsTableMode() && rSh.GetTableFmt() )
+ {
+ eKeyState = KS_Ende;
+ bTblInsDelMode = TRUE;
+ bTblIsInsMode = TRUE;
+ bTblIsColMode = TRUE;
+ aKeyInputTimer.Start();
+ bStopKeyInputTimer = FALSE;
+ }
+ break;
+
+ case KEY_RETURN: // Return
+ if( !rSh.HasReadonlySel() )
+ {
+ if( aTmpQHD.HasCntnt() && !rSh.HasSelection() &&
+ aTmpQHD.bIsAutoText )
+ eKeyState = KS_GlossaryExpand;
+
+ //RETURN und leerer Absatz in Numerierung -> Num. beenden
+ else if( rSh.GetCurNumRule() && !rSh.HasSelection() &&
+ rSh.IsSttPara() && rSh.IsEndPara() )
+ eKeyState = KS_NumOff;
+
+ //RETURN fuer neuen Absatz mit AutoFormatierung
+ else if( pACfg && pACfg->IsAutoFmtByInput() &&
+ !(rSh.GetSelectionType() & (SwWrtShell::SEL_GRF |
+ SwWrtShell::SEL_OLE | SwWrtShell::SEL_FRM |
+ SwWrtShell::SEL_TBL_CELLS | SwWrtShell::SEL_DRW |
+ SwWrtShell::SEL_DRW_TXT)) )
+ eKeyState = KS_CheckAutoCorrect, eNextKeyState = KS_AutoFmtByInput;
+ else
+ eNextKeyState = eKeyState, eKeyState = KS_CheckAutoCorrect;
+ }
+ break;
+
+ case KEY_RETURN | KEY_MOD2: // ALT-Return
+ if( !rSh.HasReadonlySel() && rSh.GetCurNumRule() )
+ eKeyState = KS_NoNum;
+ else if( rSh.CanInsertNodeAtEndOfSection() )
+ eKeyState = KS_AppendNodeInSection;
+ break;
+
+ case KEY_BACKSPACE:
+ case KEY_BACKSPACE | KEY_SHIFT:
+ if( !rSh.HasReadonlySel() )
+ {
+ BOOL bOutline = FALSE;
+#ifdef TASK_59308
+ const SwTxtFmtColl* pColl;
+ if( !rSh.SwCrsrShell::HasSelection() &&
+ 0 != ( pColl = rSh.GetCurTxtFmtColl() ) &&
+ NO_NUMBERING != pColl->GetOutlineLevel() &&
+ NO_NUMBERING == rSh.GetNumLevel( FALSE ) )
+ bOutline = TRUE;
+#endif
+
+ if( rSh.NumOrNoNum(
+ KEY_BACKSPACE != rKeyCode.GetFullCode(),
+ TRUE, bOutline ))
+ eKeyState = KS_NumOrNoNum;
+ }
+ break;
+
+ case KEY_END:
+ if( !rSh.HasReadonlySel() && rSh.IsEndPara() &&
+ rSh.DontExpandFmt() )
+ eKeyState = KS_DontExpand;
+ break;
+
+ case KEY_RIGHT:
+ if( !rSh.HasReadonlySel() )
+ {
+ if( rSh.IsEndPara() && rSh.DontExpandFmt() )
+ eKeyState = KS_DontExpand;
+ else
+ {
+ eTblChgMode = WH_FLAG_INSDEL | WH_COL_RIGHT;
+ nTblChgSize = pModOpt->GetTblVInsert();
+ goto KEYINPUT_CHECKTABLE_INSDEL;
+ }
+ }
+ break;
+
+ case KEY_TAB:
+ {
+#ifdef SW_CRSR_TIMER
+ BOOL bOld = rSh.ChgCrsrTimerFlag( FALSE );
+#endif
+ if( rSh.GetCurNumRule() && rSh.IsSttOfPara() &&
+ !rSh.HasReadonlySel() )
+ eKeyState = KS_NumDown;
+ else if ( rSh.GetTableFmt() )
+ {
+ if( rSh.HasSelection() || rSh.HasReadonlySel() )
+ eKeyState = KS_NextCell;
+ else
+ eKeyState = KS_CheckAutoCorrect, eNextKeyState = KS_NextCell;
+ }
+ else
+ {
+ eKeyState = KS_InsTab;
+ if( rSh.IsSttOfPara() && !rSh.HasReadonlySel() )
+ {
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if( pColl && 0 <= pColl->GetOutlineLevel() &&
+ MAXLEVEL - 1 > pColl->GetOutlineLevel() )
+ eKeyState = KS_OutlineDown;
+ }
+ }
+#ifdef SW_CRSR_TIMER
+ rSh.ChgCrsrTimerFlag( bOld );
+#endif
+ }
+ break;
+ case KEY_TAB | KEY_SHIFT:
+ {
+#ifdef SW_CRSR_TIMER
+ BOOL bOld = rSh.ChgCrsrTimerFlag( FALSE );
+#endif
+ if( rSh.GetCurNumRule() && rSh.IsSttOfPara() &&
+ !rSh.HasReadonlySel() )
+ eKeyState = KS_NumUp;
+ else if ( rSh.GetTableFmt() )
+ {
+ if( rSh.HasSelection() || rSh.HasReadonlySel() )
+ eKeyState = KS_PrevCell;
+ else
+ eKeyState = KS_CheckAutoCorrect, eNextKeyState = KS_PrevCell;
+ }
+ else
+ {
+ eKeyState = KS_Ende;
+ if( rSh.IsSttOfPara() && !rSh.HasReadonlySel() )
+ {
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if( pColl && 0 < pColl->GetOutlineLevel() &&
+ MAXLEVEL - 1 >= pColl->GetOutlineLevel() )
+ eKeyState = KS_OutlineUp;
+ }
+ }
+#ifdef SW_CRSR_TIMER
+ rSh.ChgCrsrTimerFlag( bOld );
+#endif
+ }
+ break;
+ case KEY_TAB | KEY_MOD1:
+ if( !rSh.HasReadonlySel() )
+ {
+ if( aTmpQHD.HasCntnt() && !rSh.HasSelection() )
+ {
+ // zum naechsten Tip
+ aTmpQHD.Inc( pACorr && pACorr->GetSwFlags().
+ bAutoCmpltEndless );
+ eKeyState = KS_NextPrevGlossary;
+ }
+ else if( rSh.GetTableFmt() )
+ eKeyState = KS_InsTab;
+ else if( rSh.IsSttOfPara() )
+ {
+ if( rSh.GetCurNumRule() )
+ eKeyState = KS_InsTab;
+ else
+ {
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if( pColl && 0 <= pColl->GetOutlineLevel() &&
+ MAXLEVEL - 1 > pColl->GetOutlineLevel() )
+ eKeyState = KS_InsTab;
+ }
+ }
+ }
+ break;
+
+ case KEY_TAB | KEY_MOD1 | KEY_SHIFT:
+ if( aTmpQHD.HasCntnt() && !rSh.HasSelection() &&
+ !rSh.HasReadonlySel() )
+ {
+ // zum vorherigen Tip
+ aTmpQHD.Dec( pACorr && pACorr->GetSwFlags().
+ bAutoCmpltEndless );
+ eKeyState = KS_NextPrevGlossary;
+ }
+ break;
+ }
+ }
+ break;
+
+ case KS_KeyToView:
+ {
+ eKeyState = KS_Ende;
+ bNormalChar = !rKeyCode.IsControlMod() &&
+ SW_ISPRINTABLE( aCh );
+ if( aInBuffer.Len() && ( !bNormalChar || bIsDocReadOnly ))
+ FlushInBuffer( &rSh );
+
+ if( rView.KeyInput( rKEvt ) )
+ bFlushBuffer = TRUE, bNormalChar = FALSE;
+ else
+ {
+// OS 22.09.95: Da der Sfx Acceleratoren nur aufruft, wenn sie beim letzten
+// Statusupdate enabled wurden, muss copy ggf. von uns
+// 'gewaltsam' gerufen werden.
+ if( rKeyCode.GetFunction() == KEYFUNC_COPY )
+ GetView().GetViewFrame()->GetDispatcher()->Execute(SID_COPY);
+
+
+ if( !bIsDocReadOnly && bNormalChar )
+ eKeyState = KS_InsChar;
+ else
+ {
+ bNormalChar = FALSE;
+ Window::KeyInput( rKEvt );
+ }
+ }
+ }
+ break;
+
+ case KS_InsTab:
+ if( rView.ISA( SwWebView )) //Kein Tabulator fuer Web!
+ {
+ // Bug 56196 - dann sollte der weiter gereicht werden.
+ Window::KeyInput( rKEvt );
+ eKeyState = KS_Ende;
+ break;
+ }
+ aCh = '\t';
+ // kein break!
+ case KS_InsChar:
+ if( !rSh.HasReadonlySel() )
+ {
+ if( bChkInsBlank && WordSelection::IsNormalChar( aCh ) &&
+ (aInBuffer.Len() || !rSh.IsSttPara() || !rSh.IsEndPara() ))
+ {
+ // vor dem Zeichen noch ein Blank einfuegen. Dieses
+ // kommt zwischen den Expandierten Text und dem neuen
+ // "nicht Worttrenner".
+ aInBuffer.Expand( aInBuffer.Len() + 1, ' ' );
+ }
+
+
+ if( !rKEvt.GetRepeat() && pACorr &&
+ (( pACorr->IsAutoCorrFlag( ChgWeightUnderl ) &&
+ ( '*' == aCh || '_' == aCh ) ) ||
+ ( pACorr->IsAutoCorrFlag( ChgQuotes ) && ('\"' == aCh ))||
+ ( pACorr->IsAutoCorrFlag( ChgSglQuotes ) && ( '\'' == aCh))))
+ {
+ FlushInBuffer( &rSh );
+ rSh.AutoCorrect( *pACorr, aCh );
+ if( '\"' != aCh && '\'' != aCh ) // nur bei "*_" rufen!
+ rSh.UpdateAttr();
+ }
+ else if( !rKEvt.GetRepeat() && pACorr &&
+ pACorr->IsAutoCorrFlag( CptlSttSntnc | CptlSttWrd |
+ ChgFractionSymbol | ChgOrdinalNumber |
+ ChgToEnEmDash | SetINetAttr |
+ Autocorrect ) &&
+ '\"' != aCh && '\'' != aCh && '*' != aCh && '_' != aCh &&
+// !Application::GetAppInternational().IsAlphaNumeric(
+// STR_HACK( aCh ))
+ !WordSelection::IsNormalChar( aCh )
+ )
+ {
+ FlushInBuffer( &rSh );
+ rSh.AutoCorrect( *pACorr, aCh );
+ }
+ else
+ {
+ aInBuffer.Expand( aInBuffer.Len() + rKEvt.GetRepeat() + 1,aCh );
+ bFlushCharBuffer = Application::AnyInput( INPUT_KEYBOARD );
+ bFlushBuffer = !bFlushCharBuffer;
+ if( bFlushCharBuffer )
+ aKeyInputFlushTimer.Start();
+ }
+ eKeyState = KS_Ende;
+ }
+ else
+ {
+ InfoBox( this, SW_RES( MSG_READONLY_CONTENT )).Execute();
+// ??? Window::KeyInput( rKEvt );
+ eKeyState = KS_Ende;
+ }
+ break;
+
+ case KS_CheckAutoCorrect:
+ {
+ if( pACorr &&
+ pACorr->IsAutoCorrFlag( CptlSttSntnc | CptlSttWrd |
+ ChgFractionSymbol | ChgOrdinalNumber |
+ ChgToEnEmDash | SetINetAttr |
+ Autocorrect ) &&
+ !rSh.HasReadonlySel() )
+ {
+ FlushInBuffer( &rSh );
+ rSh.AutoCorrect( *pACorr, 0 );
+ }
+ eKeyState = eNextKeyState;
+ }
+ break;
+
+ default:
+ {
+ TypeId pTypeId = 0;
+
+ FlushInBuffer( &rSh );
+//??? if( bFlushCharBuffer )
+//??? FlushInBuffer( &rSh );
+ switch( eKeyState )
+ {
+ case KS_AppendNodeInSection:
+ {
+ rSh.AppendNodeInSection();
+ }
+ break;
+
+ case KS_NoNum:
+ {
+ rSh.NoNum();
+ pTypeId = TYPE(SwListShell);
+ }
+ break;
+ case KS_NumOff:
+ {
+ // Shellwechsel - also vorher aufzeichnen
+ rSh.DelNumRules();
+ }
+ break;
+
+ case KS_NumDown:
+ {
+ rSh.NumUpDown( TRUE );
+ }
+ break;
+ case KS_NumUp:
+ {
+ rSh.NumUpDown( FALSE );
+ }
+ break;
+ case KS_NumOrNoNum:
+ {
+ //Backspace in Numerierung und Nummer -> Nummer auschalten
+ //SHIFT-Backspace in Numerierung und NoNum -> Nummer wieder einschalten
+ pTypeId = TYPE(SwListShell);
+ }
+ break;
+
+ case KS_OutlineDown:
+ rSh.OutlineUpDown( 1 );
+ break;
+ case KS_OutlineUp:
+ rSh.OutlineUpDown( -1 );
+ break;
+
+ case KS_NextCell:
+ {
+ //In Tabelle immer 'flushen'
+ rSh.GoNextCell();
+ }
+ break;
+ case KS_PrevCell:
+ {
+ rSh.GoPrevCell();
+ }
+ break;
+ case KS_AutoFmtByInput:
+ {
+ rSh.SplitNode( TRUE );
+ pTypeId = TYPE(SwTextShell);
+ }
+ break;
+
+ case KS_DontExpand:
+ break;
+
+ case KS_GlossaryExpand:
+ {
+ // ersetze das Wort oder Kuerzel durch den den Textbaustein
+ rSh.StartUndo( UNDO_START );
+
+ String sFnd( *aTmpQHD.aArr[ aTmpQHD.nCurArrPos ] );
+ if( aTmpQHD.bIsAutoText )
+ {
+ SwGlossaryList* pList = ::GetGlossaryList();
+ String sShrtNm;
+ String sGroup;
+ if(pList->GetShortName( sFnd, sShrtNm, sGroup))
+ {
+ rSh.SttSelect();
+ rSh.ExtendSelection( FALSE, aTmpQHD.nLen );
+ SwGlossaryHdl* pGlosHdl = GetView().GetGlosHdl();
+ pGlosHdl->SetCurGroup(sGroup, TRUE);
+ pGlosHdl->InsertGlossary( sShrtNm);
+ pQuickHlpData->bChkInsBlank = TRUE;
+ }
+ }
+ else
+ {
+ rSh.Insert( sFnd.Erase( 0, aTmpQHD.nLen ));
+ pQuickHlpData->bChkInsBlank = !pACorr ||
+ pACorr->GetSwFlags().bAutoCmpltAppendBlanc;
+ }
+ rSh.EndUndo( UNDO_END );
+ }
+ break;
+
+ case KS_NextPrevGlossary:
+ pQuickHlpData->Move( aTmpQHD );
+ pQuickHlpData->Start( rSh, USHRT_MAX );
+ break;
+
+ case KS_EditFormula:
+ {
+ pTypeId = TYPE(SwTextShell);
+ const USHORT nId = SwInputChild::GetChildWindowId();
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ pVFrame->ToggleChildWindow( nId );
+ SwInputChild* pChildWin = (SwInputChild*)pVFrame->
+ GetChildWindow( nId );
+ if( pChildWin )
+ pChildWin->SetFormula( sFmlEntry );
+ }
+ break;
+
+ case KS_ColLeftBig: rSh.SetColRowWidthHeight( WH_COL_LEFT|WH_FLAG_BIGGER, pModOpt->GetTblHMove() ); break;
+ case KS_ColRightBig: rSh.SetColRowWidthHeight( WH_COL_RIGHT|WH_FLAG_BIGGER, pModOpt->GetTblHMove() ); break;
+ case KS_ColLeftSmall: rSh.SetColRowWidthHeight( WH_COL_LEFT, pModOpt->GetTblHMove() ); break;
+ case KS_ColRightSmall: rSh.SetColRowWidthHeight( WH_COL_RIGHT, pModOpt->GetTblHMove() ); break;
+ case KS_ColTopBig: rSh.SetColRowWidthHeight( WH_ROW_TOP|WH_FLAG_BIGGER, pModOpt->GetTblVMove() ); break;
+ case KS_ColBottomBig: rSh.SetColRowWidthHeight( WH_ROW_BOTTOM|WH_FLAG_BIGGER, pModOpt->GetTblVMove() ); break;
+ case KS_ColTopSmall: rSh.SetColRowWidthHeight( WH_ROW_TOP, pModOpt->GetTblVMove() ); break;
+ case KS_ColBottomSmall: rSh.SetColRowWidthHeight( WH_ROW_BOTTOM, pModOpt->GetTblVMove() ); break;
+ case KS_CellLeftBig: rSh.SetColRowWidthHeight( WH_CELL_LEFT|WH_FLAG_BIGGER, pModOpt->GetTblHMove() ); break;
+ case KS_CellRightBig: rSh.SetColRowWidthHeight( WH_CELL_RIGHT|WH_FLAG_BIGGER, pModOpt->GetTblHMove() ); break;
+ case KS_CellLeftSmall: rSh.SetColRowWidthHeight( WH_CELL_LEFT, pModOpt->GetTblHMove() ); break;
+ case KS_CellRightSmall: rSh.SetColRowWidthHeight( WH_CELL_RIGHT, pModOpt->GetTblHMove() ); break;
+ case KS_CellTopBig: rSh.SetColRowWidthHeight( WH_CELL_TOP|WH_FLAG_BIGGER, pModOpt->GetTblVMove() ); break;
+ case KS_CellBottomBig: rSh.SetColRowWidthHeight( WH_CELL_BOTTOM|WH_FLAG_BIGGER, pModOpt->GetTblVMove() ); break;
+ case KS_CellTopSmall: rSh.SetColRowWidthHeight( WH_CELL_TOP, pModOpt->GetTblVMove() ); break;
+ case KS_CellBottomSmall: rSh.SetColRowWidthHeight( WH_CELL_BOTTOM, pModOpt->GetTblVMove() ); break;
+
+//---------------
+ case KS_InsDel_ColLeftBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_COL_LEFT|WH_FLAG_BIGGER, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_ColRightBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_COL_RIGHT|WH_FLAG_BIGGER, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_ColLeftSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_COL_LEFT, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_ColRightSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_COL_RIGHT, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_ColTopBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_ROW_TOP|WH_FLAG_BIGGER, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_ColBottomBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_ROW_BOTTOM|WH_FLAG_BIGGER, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_ColTopSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_ROW_TOP, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_ColBottomSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_ROW_BOTTOM, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_CellLeftBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_LEFT|WH_FLAG_BIGGER, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_CellRightBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_RIGHT|WH_FLAG_BIGGER, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_CellLeftSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_LEFT, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_CellRightSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_RIGHT, pModOpt->GetTblHInsert() ); break;
+ case KS_InsDel_CellTopBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_TOP|WH_FLAG_BIGGER, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_CellBottomBig: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_BOTTOM|WH_FLAG_BIGGER, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_CellTopSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_TOP, pModOpt->GetTblVInsert() ); break;
+ case KS_InsDel_CellBottomSmall: rSh.SetColRowWidthHeight( WH_FLAG_INSDEL|WH_CELL_BOTTOM, pModOpt->GetTblVInsert() ); break;
+//---------------
+ case KS_TblColCellInsDel:
+ rSh.SetColRowWidthHeight( eTblChgMode, nTblChgSize );
+ break;
+ case KS_Fly_Change:
+ ChangeFly( nDir, rView.ISA( SwWebView ) );
+ break;
+ }
+
+ eKeyState = KS_Ende;
+ }
+ }
+ }
+
+ if( bStopKeyInputTimer )
+ {
+ aKeyInputTimer.Stop();
+ bTblInsDelMode = FALSE;
+ }
+
+ // falls die gepufferten Zeichen eingefuegt werden sollen
+ if( bFlushBuffer && aInBuffer.Len() )
+ {
+ //OS 16.02.96 11.04: bFlushCharBuffer wurde hier nicht zurueckgesetzt
+ // warum nicht?
+ BOOL bSave = bFlushCharBuffer;
+ FlushInBuffer(&rSh);
+ bFlushCharBuffer = bSave;
+
+ // evt. Tip-Hilfe anzeigen
+ String sWord;
+ if( bNormalChar && pACfg && pACorr &&
+ ( pACfg->IsAutoTextTip() ||
+ pACorr->GetSwFlags().bAutoCompleteWords ) &&
+ rSh.GetPrevAutoCorrWord( *pACorr, sWord ) )
+ {
+ pQuickHlpData->ClearCntnt();
+ if( pACfg->IsAutoTextTip() )
+ {
+ SwGlossaryList* pList = ::GetGlossaryList();
+ pList->HasLongName( sWord, &pQuickHlpData->aArr );
+ }
+
+ if( pQuickHlpData->aArr.Count() )
+ {
+ pQuickHlpData->bIsTip = TRUE;
+ pQuickHlpData->bIsAutoText = TRUE;
+ }
+ else if( pACorr->GetSwFlags().bAutoCompleteWords )
+ {
+ pQuickHlpData->bIsAutoText = FALSE;
+ pQuickHlpData->bIsTip = !pACorr ||
+ pACorr->GetSwFlags().bAutoCmpltShowAsTip;
+ const International* pIntl = &Application::GetAppInternational();
+ {
+ // besorge mal die akt. Sprache:
+ SfxItemSet aSet( pObjSh->GetPool(), RES_CHRATR_LANGUAGE,
+ RES_CHRATR_LANGUAGE );
+ rSh.GetAttr( aSet );
+
+ LanguageType eLang = ((const SvxLanguageItem&)aSet.Get(
+ RES_CHRATR_LANGUAGE )).GetLanguage();
+
+ if( eLang != pIntl->GetLanguage() &&
+ LANGUAGE_SYSTEM != eLang && LANGUAGE_DONTKNOW != eLang )
+ pIntl = new International( eLang );
+ }
+
+ for( int n = MONDAY; n <= SUNDAY; ++n )
+ {
+ const String& rDay = pIntl->GetDayText( (DayOfWeek)n );
+ if( sWord.Len() + 1 < rDay.Len() &&
+ pIntl->CompareEqual(sWord, rDay.Copy(0,sWord.Len()), INTN_COMPARE_IGNORECASE ) )
+ {
+ String* pNew = new String( rDay );
+ if( !pQuickHlpData->aArr.Insert( pNew ) )
+ delete pNew;
+ }
+ }
+
+ for( n = 1; n <= 12; ++n )
+ {
+ const String& rMon = pIntl->GetMonthText( n );
+ if( sWord.Len() + 1 < rMon.Len() &&
+ pIntl->CompareEqual(sWord, rMon.Copy(0,sWord.Len()), INTN_COMPARE_IGNORECASE ))
+ {
+ String* pNew = new String( rMon );
+ if( !pQuickHlpData->aArr.Insert( pNew ) )
+ delete pNew;
+ }
+ }
+
+ // wurde die International - Klasse von uns angelegt?
+ if( pIntl != &Application::GetAppInternational() )
+ delete (International*)pIntl;
+
+ USHORT nStt, nEnd;
+ const SwAutoCompleteWord& rACLst = rSh.GetAutoCompleteWords();
+ if( rACLst.GetRange( sWord, nStt, nEnd ) )
+ {
+ while( nStt < nEnd )
+ {
+ const String& rS = rACLst[ nStt ];
+ //JP 16.06.99: Bug 66927 - only if the count of chars
+ // from the suggest greater as the
+ // actual word
+ if( rS.Len() > sWord.Len() )
+ {
+ String* pNew = new String( rS );
+ if( !pQuickHlpData->aArr.Insert( pNew ) )
+ delete pNew;
+ }
+ ++nStt;
+ }
+ }
+ }
+
+ if( pQuickHlpData->aArr.Count() )
+ pQuickHlpData->Start( rSh, sWord.Len() );
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: MouseEvents
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::RstMBDownFlags()
+{
+ //Nicht auf allen Systemen kommt vor dem modalen
+ //Dialog noch ein MouseButton Up (wie unter WINDOWS).
+ //Daher hier die Stati zuruecksetzen und die Maus
+ //fuer den Dialog freigeben.
+ bMBPressed = bNoInterrupt = FALSE;
+ EnterArea();
+ ReleaseMouse();
+}
+
+
+
+
+
+void SwEditWin::MouseButtonDown(const MouseEvent& rMEvt)
+{
+ GrabFocus();
+
+ bWasShdwCrsr = 0 != pShadCrsr;
+ if( bWasShdwCrsr )
+ delete pShadCrsr, pShadCrsr = 0;
+
+ SwWrtShell &rSh = rView.GetWrtShell();
+ const Point aDocPos( PixelToLogic( rMEvt.GetPosPixel() ) );
+
+ if ( IsChainMode() )
+ {
+ SetChainMode( FALSE );
+ SwRect aDummy;
+ SwFlyFrmFmt *pFmt = (SwFlyFrmFmt*)rSh.GetFlyFrmFmt();
+ if ( !rSh.Chainable( aDummy, *pFmt, aDocPos ) )
+ rSh.Chain( *pFmt, aDocPos );
+ UpdatePointer( aDocPos, rMEvt.GetModifier() );
+ return;
+ }
+
+ //Nach GrabFocus sollte eine Shell gepusht sein. Das muss eigentlich
+ //klappen aber in der Praxis ...
+ lcl_SelectShellForDrop( rView );
+
+ BOOL bIsDocReadOnly = rView.GetDocShell()->IsReadOnly();
+ BOOL bCallBase = TRUE;
+
+ if( pQuickHlpData->bClear )
+ pQuickHlpData->Stop( rSh );
+ pQuickHlpData->bChkInsBlank = FALSE;
+
+ if( rSh.FinishOLEObj() )
+ return; //InPlace beenden und der Klick zaehlt nicht mehr
+
+ SET_CURR_SHELL( &rSh );
+
+ SdrView *pSdrView = rSh.GetDrawView();
+ if ( pSdrView )
+ {
+ if (pSdrView->MouseButtonDown( rMEvt, this ) )
+ {
+ rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(FALSE);
+ return; // Event von der SdrView ausgewertet
+ }
+ }
+
+#ifdef MAC
+ if (rMEvt.IsMod1() && rMEvt.IsMod2())
+ return;
+#endif
+
+ bIsInMove = FALSE;
+ aStartPos = rMEvt.GetPosPixel();
+ aRszMvHdlPt.X() = 0, aRszMvHdlPt.Y() = 0;
+
+ if ( !rSh.IsDrawCreate() && !pApplyTempl && !rSh.IsInSelect() &&
+ rMEvt.GetClicks() == 1 && MOUSE_LEFT == rMEvt.GetButtons() &&
+ !rSh.IsTableMode() &&
+ rSh.IsMouseTabCol( aDocPos ) )
+ {
+ //Zuppeln von Tabellenspalten aus dem Dokument heraus.
+ rView.SetTabColFromDoc( TRUE );
+ rView.SetTabColFromDocPos( aDocPos );
+ rView.InvalidateRulerPos();
+ SfxBindings& rBind = rView.GetViewFrame()->GetBindings();
+ rBind.Update();
+ if ( RulerClook( rView , rMEvt ) )
+ {
+ rView.SetTabColFromDoc( FALSE );
+ rView.InvalidateRulerPos();
+ rBind.Update();
+ bCallBase = FALSE;
+ }
+ else
+ {
+ return;
+ }
+ }
+
+ //Man kann sich in einem Selektionszustand befinden, wenn zuletzt
+ //mit dem Keyboard selektiert wurde, aber noch kein CURSOR_KEY
+ //anschliessend bewegt worden ist. In diesem Fall muss die vorher-
+ //gehende Selektion zuerst beendet werden.
+ //MA 07. Oct. 95: Und zwar nicht nur bei Linker Maustaste sondern immer.
+ //siehe auch Bug: 19263
+ if ( rSh.IsInSelect() )
+ rSh.EndSelect();
+
+ //Abfrage auf LEFT, da sonst auch bei einem Click mit der rechten Taste
+ //beispielsweise die Selektion aufgehoben wird.
+ if ( MOUSE_LEFT == rMEvt.GetButtons() )
+ {
+ BOOL bOnlyText = FALSE;
+ bMBPressed = bNoInterrupt = TRUE;
+ CaptureMouse();
+
+ //ggf. Cursorpositionen zuruecksetzen
+ rSh.ResetCursorStack();
+
+ switch ( rMEvt.GetModifier() + rMEvt.GetButtons() )
+ {
+ case MOUSE_LEFT:
+ case MOUSE_LEFT + KEY_SHIFT:
+ case MOUSE_LEFT + KEY_MOD2:
+ if( rSh.IsObjSelected() )
+ {
+ SdrHdl* pHdl;
+ if( !bIsDocReadOnly && !pAnchorMarker && 0 !=
+ ( pHdl = pSdrView->HitHandle(aDocPos, *(rSh.GetOut())) )
+ && pHdl->GetKind() == HDL_ANCHOR )
+ {
+ pAnchorMarker = new SwAnchorMarker( pHdl );
+ UpdatePointer( aDocPos, rMEvt.GetModifier() );
+ return;
+ }
+ }
+ if ( EnterDrawMode( rMEvt, aDocPos ) )
+ {
+ bNoInterrupt = FALSE;
+ return;
+ }
+ else if ( rView.GetDrawFuncPtr() && bInsFrm )
+ {
+ StopInsFrm();
+ rSh.Edit();
+ }
+
+ // Ohne SHIFT, da sonst Toggle bei Selektion nicht funktioniert
+ if (rMEvt.GetClicks() == 1)
+ {
+ if ( rSh.IsSelFrmMode())
+ {
+ SdrHdl* pHdl = rSh.GetDrawView()->HitHandle
+ (aDocPos, *(rSh.GetOut()));
+ BOOL bHitHandle = pHdl && pHdl->GetKind() != HDL_ANCHOR;
+
+ if ((rSh.IsInsideSelectedObj(aDocPos) || bHitHandle) &&
+ !(rMEvt.GetModifier() == KEY_SHIFT && !bHitHandle))
+ {
+ rSh.EnterSelFrmMode( &aDocPos );
+ if ( !pApplyTempl )
+ {
+ //nur, wenn keine Position zum Sizen getroffen ist.
+ if (!bHitHandle)
+ {
+ StartDDTimer();
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ }
+ bFrmDrag = TRUE;
+ }
+ bNoInterrupt = FALSE;
+ return;
+ }
+ }
+ }
+ }
+
+ BOOL bExecHyperlinks = rSh.GetViewOptions()->IsExecHyperlinks()^
+ (rMEvt.GetModifier() == KEY_MOD2 ? TRUE : FALSE);
+
+ switch ( rMEvt.GetModifier() + rMEvt.GetButtons() )
+ {
+ case MOUSE_LEFT:
+ case MOUSE_LEFT + KEY_MOD1:
+ case MOUSE_LEFT + KEY_MOD2:
+ switch ( rMEvt.GetClicks() )
+ {
+ case 1:
+ {
+ UpdatePointer( aDocPos, rMEvt.GetModifier() );
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+
+ // URL in DrawText-Objekt getroffen?
+ BOOL bExecDrawTextLink = FALSE;
+
+ if (bExecHyperlinks && pSdrView)
+ {
+ SdrViewEvent aVEvt;
+ SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
+
+ if (aVEvt.eEvent == SDREVENT_EXECUTEURL)
+ bExecDrawTextLink = TRUE;
+ }
+
+ //Rahmen nur zu selektieren versuchen, wenn
+ //der Pointer bereits entsprechend geschaltet wurde
+ if ( aActHitType != SDRHIT_NONE && !rSh.IsSelFrmMode() &&
+ !SFX_APP()->IsDispatcherLocked() &&
+ !bExecDrawTextLink)
+ {
+ rView.NoRotate();
+ rSh.HideCrsr();
+ if( rSh.SelectObj( aDocPos, FALSE, rMEvt.IsMod1() ) )
+ {
+ // falls im Macro der Rahmen deselektiert
+ // wurde, muss nur noch der Cursor
+ // wieder angezeigt werden.
+ if( FRMTYPE_NONE == rSh.GetSelFrmType() )
+ rSh.ShowCrsr();
+ else
+ {
+ if (rSh.IsFrmSelected() && rView.GetDrawFuncPtr())
+ {
+ rView.GetDrawFuncPtr()->Deactivate();
+ rView.SetDrawFuncPtr(NULL);
+ rView.LeaveDrawCreate();
+ rView.AttrChangedNotify( &rSh );
+ }
+
+ rSh.EnterSelFrmMode( &aDocPos );
+ bFrmDrag = TRUE;
+ UpdatePointer( aDocPos, rMEvt.GetModifier() );
+ }
+ return;
+ }
+ else
+ bOnlyText = rSh.IsObjSelectable( aDocPos );
+
+ if (!rView.GetDrawFuncPtr())
+ rSh.ShowCrsr();
+ }
+ else if ( rSh.IsSelFrmMode() &&
+ (aActHitType == SDRHIT_NONE ||
+ !rSh.IsInsideSelectedObj( aDocPos )))
+ {
+ rView.NoRotate();
+ SdrHdl *pHdl;
+ if( !bIsDocReadOnly && !pAnchorMarker && 0 !=
+ ( pHdl = pSdrView->HitHandle(aDocPos, *(rSh.GetOut())) )
+ && pHdl->GetKind() == HDL_ANCHOR )
+ {
+ pAnchorMarker = new SwAnchorMarker( pHdl );
+ UpdatePointer( aDocPos, rMEvt.GetModifier() );
+ return;
+ }
+ else
+ {
+ BOOL bUnLockView = !rSh.IsViewLocked();
+ rSh.LockView( TRUE );
+ BOOL bSelObj = rSh.SelectObj( aDocPos,
+ rMEvt.IsShift(), rMEvt.IsMod1() );
+ if( bUnLockView )
+ rSh.LockView( FALSE );
+
+ if( !bSelObj )
+ {
+ // Cursor hier umsetzen, damit er nicht zuerst
+ // im Rahmen gezeichnet wird; ShowCrsr() geschieht
+ // in LeaveSelFrmMode()
+ bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,FALSE));
+ rSh.LeaveSelFrmMode();
+ rView.AttrChangedNotify( &rSh );
+ bCallBase = FALSE;
+ }
+ else
+ {
+ rSh.HideCrsr();
+ rSh.EnterSelFrmMode( &aDocPos );
+ rSh.SelFlyGrabCrsr();
+ rSh.MakeSelVisible();
+ bFrmDrag = TRUE;
+ if( rSh.IsFrmSelected() &&
+ rView.GetDrawFuncPtr() )
+ {
+ rView.GetDrawFuncPtr()->Deactivate();
+ rView.SetDrawFuncPtr(NULL);
+ rView.LeaveDrawCreate();
+ rView.AttrChangedNotify( &rSh );
+ }
+ UpdatePointer( aDocPos, rMEvt.GetModifier() );
+ return;
+ }
+ }
+ }
+ break;
+ }
+ case 2:
+ {
+ bFrmDrag = FALSE;
+ if ( !bIsDocReadOnly && rSh.IsInsideSelectedObj(aDocPos) &&
+ 0 == rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) )
+ switch ( rSh.GetSelectionType() )
+ {
+ case SwWrtShell::SEL_GRF:
+ RstMBDownFlags();
+ GetView().GetViewFrame()->GetDispatcher()->Execute(
+ FN_FORMAT_GRAFIC_DLG, SFX_CALLMODE_RECORD|SFX_CALLMODE_SLOT);
+ return;
+
+ // Doppelklick auf OLE-Objekt --> OLE-InPlace
+ case SwWrtShell::SEL_OLE:
+ if (!rSh.IsSelObjProtected(FLYPROTECT_CONTENT))
+ {
+ RstMBDownFlags();
+ rSh.LaunchOLEObj();
+ }
+ return;
+
+ case SwWrtShell::SEL_FRM:
+ RstMBDownFlags();
+ GetView().GetViewFrame()->GetDispatcher()->Execute(
+ FN_FORMAT_FRAME_DLG, SFX_CALLMODE_RECORD|SFX_CALLMODE_SLOT);
+ return;
+
+ case SwWrtShell::SEL_DRW:
+ RstMBDownFlags();
+ EnterDrawTextMode(aDocPos);
+ if ( rView.GetCurShell()->ISA(SwDrawTextShell) )
+ ((SwDrawTextShell*)rView.GetCurShell())->Init();
+ return;
+ }
+
+ //falls die Cursorposition korrigiert wurde oder
+ // ein Fly im ReadOnlyModus selektiert ist,
+ //keine Wortselektion.
+ if ( !bValidCrsrPos ||
+ (rSh.IsFrmSelected() && rSh.IsFrmSelected() ))
+ return;
+
+ SwField *pFld;
+ BOOL bFtn = FALSE;
+
+ if( !bIsDocReadOnly &&
+ ( 0 != ( pFld = rSh.GetCurFld() ) ||
+ 0 != ( bFtn = rSh.GetCurFtn() )) )
+ {
+ RstMBDownFlags();
+ if( bFtn )
+ GetView().GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FOOTNOTE );
+ else
+ {
+ USHORT nTypeId = pFld->GetTypeId();
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ switch( nTypeId )
+ {
+ case TYP_POSTITFLD:
+ case TYP_SCRIPTFLD:
+ {
+ //falls es ein Readonly-Bereich ist, dann muss der Status
+ //enabled werden
+ USHORT nSlot = TYP_POSTITFLD == nTypeId ? FN_POSTIT : FN_JAVAEDIT;
+ SfxBoolItem aItem(nSlot, TRUE);
+ pVFrame->GetBindings().SetState(aItem);
+ pVFrame->GetDispatcher()->Execute(nSlot);
+ break;
+ }
+ case TYP_AUTHORITY :
+ pVFrame->GetDispatcher()->Execute(FN_EDIT_AUTH_ENTRY_DLG);
+ break;
+ default:
+ pVFrame->GetBindings().Execute(FN_EDIT_FIELD);
+ }
+ }
+ return;
+ }
+ //im Extended Mode hat Doppel- und
+ //Dreifachklick keine Auswirkungen.
+ if ( rSh.IsExtMode() )
+ return;
+
+ //Wort selektieren, gfs. Additional Mode
+ if ( KEY_MOD1 == rMEvt.GetModifier() && !rSh.IsAddMode() )
+ {
+ rSh.EnterAddMode();
+ rSh.SelWrd( &aDocPos );
+ rSh.LeaveAddMode();
+ }
+ else
+ rSh.SelWrd( &aDocPos );
+ bHoldSelection = TRUE;
+ return;
+ }
+ case 3:
+ bFrmDrag = FALSE;
+ //im Extended Mode hat Doppel- und
+ //Dreifachklick keine Auswirkungen.
+ if ( rSh.IsExtMode() )
+ return;
+
+ //falls die Cursorposition korrigiert wurde oder
+ // ein Fly im ReadOnlyModus selektiert ist,
+ //keine Wortselektion.
+ if ( !bValidCrsrPos || rSh.IsFrmSelected() )
+ return;
+
+ //Zeile selektieren, gfs. Additional Mode
+ if ( KEY_MOD1 == rMEvt.GetModifier() && !rSh.IsAddMode())
+ {
+ rSh.EnterAddMode();
+ rSh.SelLine( &aDocPos );
+ rSh.LeaveAddMode();
+ }
+ else
+ rSh.SelLine( &aDocPos );
+ bHoldSelection = TRUE;
+ return;
+
+ default:
+ return;
+ }
+ /* no break */
+ case MOUSE_LEFT + KEY_SHIFT:
+ case MOUSE_LEFT + KEY_SHIFT + KEY_MOD1:
+ {
+ BOOL bLockView = bWasShdwCrsr;
+
+ switch ( rMEvt.GetModifier() )
+ {
+ case KEY_MOD1 + KEY_SHIFT:
+ {
+ if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) )
+ {
+ rView.NoRotate();
+ rSh.HideCrsr();
+ if ( rSh.IsSelFrmMode() )
+ rSh.SelectObj(aDocPos, TRUE, TRUE);
+ else
+ { if ( rSh.SelectObj( aDocPos, TRUE, TRUE ) )
+ {
+ rSh.EnterSelFrmMode( &aDocPos );
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ bFrmDrag = TRUE;
+ return;
+ }
+ }
+ }
+ else if( rSh.IsSelFrmMode() &&
+ rSh.GetDrawView()->HitHandle( aDocPos,
+ *rSh.GetOut() ))
+ {
+ bFrmDrag = TRUE;
+ bNoInterrupt = FALSE;
+ return;
+ }
+ }
+ break;
+ case KEY_MOD1:
+ {
+ if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) )
+ {
+ rView.NoRotate();
+ rSh.HideCrsr();
+ if ( rSh.IsSelFrmMode() )
+ rSh.SelectObj(aDocPos, FALSE, TRUE);
+ else
+ { if ( rSh.SelectObj( aDocPos, FALSE, TRUE ) )
+ {
+ rSh.EnterSelFrmMode( &aDocPos );
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ bFrmDrag = TRUE;
+ return;
+ }
+ }
+ }
+ else if( rSh.IsSelFrmMode() &&
+ rSh.GetDrawView()->HitHandle( aDocPos,
+ *rSh.GetOut() ))
+ {
+ bFrmDrag = TRUE;
+ bNoInterrupt = FALSE;
+ return;
+ }
+ else
+ {
+ if ( !rSh.IsAddMode() && !rSh.IsExtMode())
+ {
+ rSh.PushMode();
+ bModePushed = TRUE;
+ rSh.EnterAddMode();
+ }
+ bCallBase = FALSE;
+ }
+ }
+ break;
+ case KEY_SHIFT:
+ {
+ if ( !bInsDraw && IsDrawObjSelectable( rSh, aDocPos ) )
+ {
+ rView.NoRotate();
+ rSh.HideCrsr();
+ if ( rSh.IsSelFrmMode() )
+ {
+ rSh.SelectObj(aDocPos, TRUE);
+
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if (rMarkList.GetMark(0) == NULL)
+ {
+ rSh.LeaveSelFrmMode();
+ rView.AttrChangedNotify(&rSh);
+ bFrmDrag = FALSE;
+ }
+ }
+ else
+ { if ( rSh.SelectObj( aDocPos ) )
+ {
+ rSh.EnterSelFrmMode( &aDocPos );
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ bFrmDrag = TRUE;
+ return;
+ }
+ }
+ }
+ else
+ {
+ if ( rSh.IsSelFrmMode() &&
+ rSh.IsInsideSelectedObj( aDocPos ) )
+ {
+ rSh.EnterSelFrmMode( &aDocPos );
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ bFrmDrag = TRUE;
+ return;
+ }
+ if ( rSh.IsSelFrmMode() )
+ {
+ rSh.UnSelectFrm();
+ rSh.LeaveSelFrmMode();
+ rView.AttrChangedNotify(&rSh);
+ bFrmDrag = FALSE;
+ }
+ if ( !rSh.IsExtMode() )
+ {
+ // keine Selection anfangen, wenn in ein URL-
+ // Feld oder eine -Grafik geklickt wird
+ BOOL bSttSelect = rSh.HasSelection() ||
+ Pointer(POINTER_REFHAND) != GetPointer();
+
+ if( !bSttSelect )
+ {
+ bSttSelect = TRUE;
+ if( bExecHyperlinks )
+ {
+ SwContentAtPos aCntntAtPos(
+ SwContentAtPos::SW_FTN |
+ SwContentAtPos::SW_INETATTR );
+
+ if( rSh.GetContentAtPos( aDocPos, aCntntAtPos ) )
+ {
+ if( !rSh.IsViewLocked() &&
+ !rSh.IsReadOnlyAvailable() &&
+ aCntntAtPos.IsInProtectSect() )
+ bLockView = TRUE;
+
+ bSttSelect = FALSE;
+ }
+ else if( rSh.IsURLGrfAtPos( aDocPos ))
+ bSttSelect = FALSE;
+ }
+ }
+
+ if( bSttSelect )
+ rSh.SttSelect();
+ }
+ }
+ bCallBase = FALSE;
+ break;
+ }
+ default:
+ if( !rSh.IsViewLocked() )
+ {
+ SwContentAtPos aCntntAtPos( SwContentAtPos::SW_CLICKFIELD |
+ SwContentAtPos::SW_INETATTR );
+ if( rSh.GetContentAtPos( aDocPos, aCntntAtPos, FALSE ) &&
+ !rSh.IsReadOnlyAvailable() &&
+ aCntntAtPos.IsInProtectSect() )
+ bLockView = TRUE;
+ }
+ }
+
+ if ( rSh.IsGCAttr() )
+ {
+ rSh.GCAttr();
+ rSh.ClearGCAttr();
+ }
+
+ BOOL bOverSelect = rSh.ChgCurrPam( aDocPos ), bOverURLGrf = FALSE;
+ if( !bOverSelect )
+ bOverURLGrf = bOverSelect = 0 != rSh.IsURLGrfAtPos( aDocPos );
+
+ if ( !bOverSelect )
+ {
+ const BOOL bTmp = bNoInterrupt;
+ bNoInterrupt = FALSE;
+
+ if( !rSh.IsViewLocked() && bLockView )
+ rSh.LockView( TRUE );
+ else
+ bLockView = FALSE;
+
+ { // nur temp. Move-Kontext aufspannen, da sonst die
+ // Abfrage auf die Inhaltsform nicht funktioniert!!!
+ MV_KONTEXT( &rSh );
+ bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,bOnlyText));
+ bCallBase = FALSE;
+ }
+
+ if( bLockView )
+ rSh.LockView( FALSE );
+
+ bNoInterrupt = bTmp;
+ }
+ if( !bOverURLGrf )
+ {
+ const int nSelType = rSh.GetSelectionType();
+ if( nSelType == SwWrtShell::SEL_OLE ||
+ nSelType == SwWrtShell::SEL_GRF )
+ {
+ MV_KONTEXT( &rSh );
+ if( !rSh.IsFrmSelected() )
+ rSh.GotoNextFly();
+ rSh.EnterSelFrmMode();
+ bCallBase = FALSE;
+ }
+ }
+ // nicht mehr hier zuruecksetzen, damit -- falls durch MouseMove
+ // bei gedrueckter Ctrl-Taste eine Mehrfachselektion erfolgen soll,
+ // im Drag nicht die vorherige Selektion aufgehoben wird.
+// if(bModePushed)
+// rSh.PopMode(FALSE);
+ break;
+ }
+ }
+ }
+ if (bCallBase)
+ Window::MouseButtonDown(rMEvt);
+}
+
+#pragma optimize("",off)
+
+/*--------------------------------------------------------------------
+ Beschreibung: MouseMove
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::MouseMove(const MouseEvent& rMEvt)
+{
+ // solange eine Action laeuft sollte das MouseMove abgeklemmt sein
+ // Ansonsten gibt es den Bug 40102
+ SwWrtShell &rSh = rView.GetWrtShell();
+ if( rSh.ActionPend() )
+ return ;
+
+ if( pShadCrsr && 0 != (rMEvt.GetModifier() + rMEvt.GetButtons() ) )
+ delete pShadCrsr, pShadCrsr = 0;
+
+ BOOL bIsDocReadOnly = rView.GetDocShell()->IsReadOnly();
+
+ SET_CURR_SHELL( &rSh );
+
+ //aPixPt == Point in Pixel, rel. zu ChildWin
+ //aDocPt == Point in Twips, Dokumentkoordinaten
+ const Point aPixPt( rMEvt.GetPosPixel() );
+ const Point aDocPt( PixelToLogic( aPixPt ) );
+
+ if ( IsChainMode() )
+ {
+ UpdatePointer( aDocPt, rMEvt.GetModifier() );
+ if ( rMEvt.IsLeaveWindow() )
+ rView.GetViewFrame()->HideStatusText();
+ return;
+ }
+
+ SdrView *pSdrView = rSh.GetDrawView();
+
+ const SwCallMouseEvent aLastCallEvent( aSaveCallEvent );
+ aSaveCallEvent.Clear();
+
+ if ( !bIsDocReadOnly && pSdrView && pSdrView->MouseMove(rMEvt,this) )
+ {
+ SetPointer( POINTER_TEXT );
+ return; // Event von der SdrView ausgewertet
+ }
+
+ const Point aOldPt( rSh.VisArea().Pos() );
+ const BOOL bInsWin = rSh.VisArea().IsInside( aDocPt );
+
+ if( pShadCrsr && !bInsWin )
+ delete pShadCrsr, pShadCrsr = 0;
+
+ // Position ist noetig fuer OS/2, da dort nach einem MB-Down
+ // offensichtlich sofort ein MB-Move gerufen wird.
+ if( bDDTimerStarted )
+ {
+ Point aDD( SwEditWin::nDDStartPosX, SwEditWin::nDDStartPosY );
+ aDD = LogicToPixel( aDD );
+ Rectangle aRect( aDD.X()-3, aDD.Y()-3, aDD.X()+3, aDD.Y()+3 );
+ if ( !aRect.IsInside( aPixPt ) ) // MA 23. May. 95: Tatterschutz.
+ StopDDTimer( &rSh, aDocPt );
+ }
+
+ if ( bInsDraw && rView.GetDrawFuncPtr() )
+ {
+ rView.GetDrawFuncPtr()->MouseMove( rMEvt );
+ if ( !bInsWin )
+ {
+ Point aTmp( aDocPt );
+ aTmp += rSh.VisArea().Pos() - aOldPt;
+ LeaveArea( aTmp );
+ }
+ else
+ EnterArea();
+ return;
+ }
+
+ if( !bIsDocReadOnly && bInsWin && !pApplyTempl && !rSh.IsInSelect() &&
+ rSh.IsMouseTabCol( aDocPt ) && !rSh.IsTableMode())
+ {
+ //Zuppeln von Tabellenspalten aus dem Dokument heraus.
+ SetPointer( POINTER_HSIZEBAR );
+ return;
+ }
+
+ BOOL bDelShadCrsr = TRUE;
+
+ switch ( rMEvt.GetModifier() + rMEvt.GetButtons() )
+ {
+ case MOUSE_LEFT:
+ if( pAnchorMarker )
+ {
+ Point aNew = rSh.FindAnchorPos( aDocPt );
+ if( aNew.X() || aNew.Y() )
+ {
+ pAnchorMarker->SetPos( aNew );
+ pAnchorMarker->SetLastPos( aDocPt );
+ pSdrView->RefreshAllIAOManagers();
+ }
+ }
+ if ( bInsDraw )
+ {
+ if ( !bMBPressed )
+ break;
+ if ( bIsInMove || IsMinMove( aStartPos, aPixPt ) )
+ {
+ if ( !bInsWin )
+ LeaveArea( aDocPt );
+ else
+ EnterArea();
+ if ( rView.GetDrawFuncPtr() )
+ {
+ pSdrView->SetOrtho(FALSE);
+ rView.GetDrawFuncPtr()->MouseMove( rMEvt );
+ }
+ bIsInMove = TRUE;
+ }
+ return;
+ }
+ case MOUSE_LEFT + KEY_SHIFT:
+ case MOUSE_LEFT + KEY_SHIFT + KEY_MOD1:
+ if ( !bMBPressed )
+ break;
+ case MOUSE_LEFT + KEY_MOD1:
+ if ( bFrmDrag && rSh.IsSelFrmMode() )
+ {
+ if( !bMBPressed )
+ break;
+
+ if ( bIsInMove || IsMinMove( aStartPos, aPixPt ) )
+ {
+ // Event-Verarbeitung fuers Resizen
+ if( pSdrView->HasMarkedObj() )
+ {
+ const SwFrmFmt* pFlyFmt;
+ const SvxMacro* pMacro;
+
+ const Point aSttPt( PixelToLogic( aStartPos ) );
+
+ // geht es los?
+ if( HDL_USER == eSdrMoveHdl )
+ {
+ SdrHdl* pHdl = pSdrView->HitHandle( aSttPt, *this );
+ eSdrMoveHdl = pHdl ? pHdl->GetKind() : HDL_MOVE;
+ }
+
+ USHORT nEvent = HDL_MOVE == eSdrMoveHdl
+ ? SW_EVENT_FRM_MOVE
+ : SW_EVENT_FRM_RESIZE;
+
+ if( 0 != ( pFlyFmt = rSh.GetFlyFrmFmt() ) &&
+ 0 != ( pMacro = pFlyFmt->GetMacro().GetMacroTable().
+ Get( nEvent )) &&
+// oder nur z.B. alle 20 Twip bescheid sagen?
+// ( 20 > Abs( aRszMvHdlPt.X() - aDocPt.X() ) ||
+// 20 > Abs( aRszMvHdlPt.Y() - aDocPt.Y() ) )
+ aRszMvHdlPt != aDocPt )
+ {
+ aRszMvHdlPt = aDocPt;
+ USHORT nPos = 0;
+ String sRet;
+ SbxArrayRef xArgs = new SbxArray;
+ SbxVariableRef xVar = new SbxVariable;
+ xVar->PutString( pFlyFmt->GetName() );
+ xArgs->Put( &xVar, ++nPos );
+
+ if( SW_EVENT_FRM_RESIZE == nEvent )
+ {
+ xVar = new SbxVariable;
+ xVar->PutUShort( eSdrMoveHdl );
+ xArgs->Put( &xVar, ++nPos );
+ }
+
+ xVar = new SbxVariable;
+ xVar->PutLong( aDocPt.X() - aSttPt.X() );
+ xArgs->Put( &xVar, ++nPos );
+ xVar = new SbxVariable;
+ xVar->PutLong( aDocPt.Y() - aSttPt.Y() );
+ xArgs->Put( &xVar, ++nPos );
+
+ ReleaseMouse();
+
+ rSh.ExecMacro( *pMacro, &sRet, &xArgs );
+
+ CaptureMouse();
+
+ if( sRet.Len() && 0 != sRet.ToInt32() )
+ return ;
+ }
+ }
+ // Event-Verarbeitung fuers Resizen
+
+ if( bIsDocReadOnly )
+ break;
+
+ if ( rMEvt.IsShift() )
+ {
+ pSdrView->SetOrtho(TRUE);
+ pSdrView->SetAngleSnapEnabled(TRUE);
+ }
+ else
+ {
+ pSdrView->SetOrtho(FALSE);
+ pSdrView->SetAngleSnapEnabled(FALSE);
+ }
+
+ (rSh.*rSh.fnDrag)( &aDocPt, rMEvt.IsShift() );
+ bIsInMove = TRUE;
+ }
+ else if( bIsDocReadOnly )
+ break;
+
+ if ( !bInsWin )
+ {
+ Point aTmp( aDocPt );
+ aTmp += rSh.VisArea().Pos() - aOldPt;
+ LeaveArea( aTmp );
+ }
+ else if(bIsInMove)
+ EnterArea();
+ return;
+ }
+ if ( !rSh.IsSelFrmMode() && !bDDINetAttr &&
+ (IsMinMove( aStartPos,aPixPt ) || bIsInMove) &&
+ (rSh.IsInSelect() || !rSh.ChgCurrPam( aDocPt )) )
+ {
+ if ( pSdrView )
+ {
+ if ( rMEvt.IsShift() )
+ pSdrView->SetOrtho(TRUE);
+ else
+ pSdrView->SetOrtho(FALSE);
+ }
+ if ( !bInsWin )
+ {
+ Point aTmp( aDocPt );
+ aTmp += rSh.VisArea().Pos() - aOldPt;
+ LeaveArea( aTmp );
+ }
+ else
+ {
+ //JP 24.09.98: Fix fuer die Bugs 55592 / 55931
+ //JP 23.04.99: Fix fuer den Bugs 65289
+ //JP 06.07.99: Fix fuer den Bugs 67360
+ if( !rMEvt.IsSynthetic() &&
+ !(( MOUSE_LEFT + KEY_MOD1 ==
+ rMEvt.GetModifier() + rMEvt.GetButtons() ) &&
+ rSh.Is_FnDragEQBeginDrag() && !rSh.IsAddMode() ))
+ {
+ (rSh.*rSh.fnDrag)( &aDocPt,FALSE );
+
+ bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPt,FALSE));
+ EnterArea();
+ }
+ }
+ }
+ bDDINetAttr = FALSE;
+ break;
+ case 0:
+ if ( pApplyTempl )
+ {
+ UpdatePointer(aDocPt, 0); // evtl. muss hier ein Rahmen markiert werden
+ break;
+ }
+ case KEY_SHIFT:
+ case KEY_MOD2:
+ case KEY_MOD1:
+ if ( !bInsDraw )
+ {
+ BOOL bTstShdwCrsr = TRUE;
+
+ UpdatePointer( aDocPt, rMEvt.GetModifier() );
+
+ const SwFrmFmt* pFmt;
+ const SwFmtINetFmt* pINet = 0;
+ SwContentAtPos aCntntAtPos( SwContentAtPos::SW_INETATTR );
+ if( rSh.GetContentAtPos( aDocPt, aCntntAtPos ) )
+ pINet = (SwFmtINetFmt*)aCntntAtPos.aFnd.pAttr;
+
+ const void* pTmp = pINet;
+
+ if( pINet ||
+ 0 != ( pTmp = pFmt = rSh.GetFmtFromAnyObj( aDocPt )))
+ {
+ bTstShdwCrsr = FALSE;
+ if( pTmp == pINet )
+ aSaveCallEvent.Set( pINet );
+ else
+ {
+ IMapObject* pIMapObj = pFmt->GetIMapObject( aDocPt );
+ if( pIMapObj )
+ aSaveCallEvent.Set( pFmt, pIMapObj );
+ else
+ aSaveCallEvent.Set( EVENT_OBJECT_URLITEM, pFmt );
+ }
+
+ // sollte wir ueber einem InternetFeld mit einem
+ // gebundenen Macro stehen?
+ if( aSaveCallEvent != aLastCallEvent )
+ {
+ if( aLastCallEvent.HasEvent() )
+ rSh.CallEvent( SFX_EVENT_MOUSEOUT_OBJECT,
+ aLastCallEvent, TRUE );
+ // 0 besagt, das das Object gar keine Tabelle hat
+ if( !rSh.CallEvent( SFX_EVENT_MOUSEOVER_OBJECT,
+ aSaveCallEvent ))
+ aSaveCallEvent.Clear();
+ }
+ }
+ else if( aLastCallEvent.HasEvent() )
+ {
+ // Cursor stand auf einem Object
+ rSh.CallEvent( SFX_EVENT_MOUSEOUT_OBJECT,
+ aLastCallEvent, TRUE );
+ }
+
+ if( bTstShdwCrsr && bInsWin && !bIsDocReadOnly &&
+ !bInsFrm && !rSh.IsBrowseMode() &&
+ rSh.GetViewOptions()->IsShadowCursor() &&
+ !(rMEvt.GetModifier() + rMEvt.GetButtons()) &&
+ !rSh.HasSelection() && !GetConnectMetaFile() )
+ {
+ SwRect aRect;
+ SwHoriOrient eOrient;
+ SwFillMode eMode = (SwFillMode)rSh.GetViewOptions()->GetShdwCrsrFillMode();
+ if( rSh.GetShadowCrsrPos( aDocPt, eMode, aRect, eOrient ))
+ {
+ if( !pShadCrsr )
+ pShadCrsr = new SwShadowCursor( *this,
+ rSh.GetViewOptions()->GetShdwCrsrColor() );
+ if( HORI_RIGHT != eOrient && HORI_CENTER != eOrient )
+ eOrient = HORI_LEFT;
+ pShadCrsr->SetPos( aRect.Pos(), aRect.Height(), eOrient );
+ bDelShadCrsr = FALSE;
+ }
+ }
+ }
+ break;
+ }
+
+ if( bDelShadCrsr && pShadCrsr )
+ delete pShadCrsr, pShadCrsr = 0;
+ bWasShdwCrsr = FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Button Up
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
+{
+ BOOL bCallBase = TRUE;
+
+ BOOL bCallShadowCrsr = bWasShdwCrsr;
+ bWasShdwCrsr = FALSE;
+ if( pShadCrsr )
+ delete pShadCrsr, pShadCrsr = 0;
+
+ SdrHdlKind eOldSdrMoveHdl = eSdrMoveHdl;
+ eSdrMoveHdl = HDL_USER; // fuer die MoveEvents - wieder zuruecksetzen
+
+ // sicherheitshalber zuruecksetzen Bug 27900
+ rView.SetTabColFromDoc( FALSE );
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SET_CURR_SHELL( &rSh );
+ SdrView *pSdrView = rSh.GetDrawView();
+ if ( pSdrView )
+ {
+ pSdrView->SetOrtho(FALSE);
+
+ if ( pSdrView->MouseButtonUp( rMEvt,this ) )
+ {
+ rSh.GetView().GetViewFrame()->GetBindings().InvalidateAll(FALSE);
+ return; // Event von der SdrView ausgewertet
+ }
+ }
+ //MouseButtonUp nur bearbeiten, wenn auch das Down an dieses Fenster ging.
+ if ( !bMBPressed )
+ {
+// OS 25.02.97 Undo fuer die Giesskann ist bereits im CommandHdl
+//JP 29.09.95: so sollte es sein!!! if(pApplyTempl->bUndo)
+// if( pApplyTempl && MOUSE_RIGHT == rMEvt.GetModifier() + rMEvt.GetButtons() )
+// rSh.Do( SwWrtShell::UNDO );
+ return;
+ }
+
+ Point aDocPt( PixelToLogic( rMEvt.GetPosPixel() ) );
+
+ if ( bDDTimerStarted )
+ {
+ StopDDTimer( &rSh, aDocPt );
+ bMBPressed = FALSE;
+ if ( rSh.IsSelFrmMode() )
+ {
+ (rSh.*rSh.fnEndDrag)( &aDocPt, FALSE );
+ bFrmDrag = FALSE;
+ }
+ bNoInterrupt = FALSE;
+ ReleaseMouse();
+ return;
+ }
+
+ if( pAnchorMarker )
+ {
+ Point aPnt( pAnchorMarker->GetLastPos() );
+ pSdrView->RefreshAllIAOManagers();
+ DELETEZ( pAnchorMarker );
+ if( aPnt.X() || aPnt.Y() )
+ rSh.FindAnchorPos( aPnt, TRUE );
+ }
+ if ( bInsDraw && rView.GetDrawFuncPtr() )
+ {
+ if ( rView.GetDrawFuncPtr()->MouseButtonUp( rMEvt ) )
+ {
+ if (rView.GetDrawFuncPtr()) // Koennte im MouseButtonUp zerstoert worden sein
+ {
+ rView.GetDrawFuncPtr()->Deactivate();
+
+ if (!rView.IsDrawMode())
+ rView.SetDrawFuncPtr(NULL);
+ }
+
+ if ( rSh.IsObjSelected() )
+ {
+ rSh.EnterSelFrmMode();
+ if (!rView.GetDrawFuncPtr())
+ StdDrawMode(SID_OBJECT_SELECT);
+ }
+ else if ( rSh.IsFrmSelected() )
+ {
+ rSh.EnterSelFrmMode();
+ StopInsFrm();
+ }
+ else
+ {
+ const Point aDocPos( PixelToLogic( aStartPos ) );
+ bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,FALSE));
+ rSh.Edit();
+ }
+
+ rView.AttrChangedNotify( &rSh );
+ }
+ else if (rMEvt.GetButtons() == MOUSE_RIGHT && rSh.IsDrawCreate())
+ rView.GetDrawFuncPtr()->BreakCreate(); // Zeichnen abbrechen
+
+ bNoInterrupt = FALSE;
+ ReleaseMouse();
+ return;
+ }
+ BOOL bPopMode = FALSE;
+ switch ( rMEvt.GetModifier() + rMEvt.GetButtons() )
+ {
+ case MOUSE_LEFT:
+ if ( bInsDraw && rSh.IsDrawCreate() )
+ {
+ if ( rView.GetDrawFuncPtr() && rView.GetDrawFuncPtr()->MouseButtonUp(rMEvt) == TRUE )
+ {
+ rView.GetDrawFuncPtr()->Deactivate();
+ rView.AttrChangedNotify( &rSh );
+ if ( rSh.IsObjSelected() )
+ rSh.EnterSelFrmMode();
+ if ( rView.GetDrawFuncPtr() && bInsFrm )
+ StopInsFrm();
+ }
+ bCallBase = FALSE;
+ break;
+ }
+ case MOUSE_LEFT + KEY_MOD1:
+ case MOUSE_LEFT + KEY_MOD2:
+ case MOUSE_LEFT + KEY_SHIFT + KEY_MOD1:
+ if ( bFrmDrag && rSh.IsSelFrmMode() )
+ {
+ if ( rMEvt.IsMod1() ) //Kopieren und nicht moven.
+ {
+ //Drag abbrechen, statt dessen internes Copy verwenden
+ Rectangle aRect;
+ rSh.GetDrawView()->TakeActionRect( aRect );
+ if (!aRect.IsEmpty())
+ {
+ rSh.BreakDrag();
+ Point aEndPt, aSttPt;
+ if ( rSh.GetSelFrmType() & FRMTYPE_FLY_ATCNT )
+ {
+ aEndPt = aRect.TopLeft();
+ aSttPt = rSh.GetDrawView()->GetAllMarkedRect().TopLeft();
+ }
+ else
+ {
+ aEndPt = aRect.Center();
+ aSttPt = rSh.GetDrawView()->GetAllMarkedRect().Center();
+ }
+ if ( aSttPt != aEndPt )
+ {
+ rSh.StartUndo( UIUNDO_DRAG_AND_COPY );
+ rSh.Copy(&rSh, aSttPt, aEndPt, FALSE);
+ rSh.EndUndo( UIUNDO_DRAG_AND_COPY );
+ }
+ }
+ else
+ (rSh.*rSh.fnEndDrag)( &aDocPt,FALSE );
+ }
+ else
+ {
+ {
+ const SwFrmFmt* pFlyFmt;
+ const SvxMacro* pMacro;
+
+ USHORT nEvent = HDL_MOVE == eOldSdrMoveHdl
+ ? SW_EVENT_FRM_MOVE
+ : SW_EVENT_FRM_RESIZE;
+
+ if( 0 != ( pFlyFmt = rSh.GetFlyFrmFmt() ) &&
+ 0 != ( pMacro = pFlyFmt->GetMacro().GetMacroTable().
+ Get( nEvent )) )
+ {
+ const Point aSttPt( PixelToLogic( aStartPos ) );
+ aRszMvHdlPt = aDocPt;
+ USHORT nPos = 0;
+ SbxArrayRef xArgs = new SbxArray;
+ SbxVariableRef xVar = new SbxVariable;
+ xVar->PutString( pFlyFmt->GetName() );
+ xArgs->Put( &xVar, ++nPos );
+
+ if( SW_EVENT_FRM_RESIZE == nEvent )
+ {
+ xVar = new SbxVariable;
+ xVar->PutUShort( eOldSdrMoveHdl );
+ xArgs->Put( &xVar, ++nPos );
+ }
+
+ xVar = new SbxVariable;
+ xVar->PutLong( aDocPt.X() - aSttPt.X() );
+ xArgs->Put( &xVar, ++nPos );
+ xVar = new SbxVariable;
+ xVar->PutLong( aDocPt.Y() - aSttPt.Y() );
+ xArgs->Put( &xVar, ++nPos );
+
+ xVar = new SbxVariable;
+ xVar->PutUShort( 1 );
+ xArgs->Put( &xVar, ++nPos );
+
+ ReleaseMouse();
+
+ rSh.ExecMacro( *pMacro, 0, &xArgs );
+
+ CaptureMouse();
+ }
+ }
+ (rSh.*rSh.fnEndDrag)( &aDocPt,FALSE );
+ }
+ bFrmDrag = FALSE;
+ bCallBase = FALSE;
+ break;
+ }
+ bPopMode = TRUE;
+ // no break
+ case MOUSE_LEFT + KEY_SHIFT:
+ if (rSh.IsSelFrmMode())
+ {
+
+ (rSh.*rSh.fnEndDrag)( &aDocPt, FALSE );
+ bFrmDrag = FALSE;
+ bCallBase = FALSE;
+ break;
+ }
+
+ if( bHoldSelection )
+ {
+ //JP 27.04.99: Bug 65389 - das EndDrag sollte auf jedenfall
+ // gerufen werden.
+ bHoldSelection = FALSE;
+ (rSh.*rSh.fnEndDrag)( &aDocPt, FALSE );
+ }
+ else
+ {
+ if ( !rSh.IsInSelect() && rSh.ChgCurrPam( aDocPt ) )
+ {
+ const BOOL bTmp = bNoInterrupt;
+ bNoInterrupt = FALSE;
+ { // nur temp. Move-Kontext aufspannen, da sonst die
+ // Abfrage auf die Inhaltsform nicht funktioniert!!!
+ MV_KONTEXT( &rSh );
+ const Point aDocPos( PixelToLogic( aStartPos ) );
+ bValidCrsrPos = !(CRSR_POSCHG & (rSh.*rSh.fnSetCrsr)(&aDocPos,FALSE));
+ }
+ bNoInterrupt = bTmp;
+
+ }
+ else
+ {
+ BOOL bInSel = rSh.IsInSelect();
+ (rSh.*rSh.fnEndDrag)( &aDocPt, FALSE );
+
+ // Internetfield? --> Link-Callen (DocLaden!!)
+//JP 18.10.96: Bug 32437 -
+// if( !rSh.HasSelection() )
+ if( !bInSel )
+ {
+ USHORT nFilter = KEY_SHIFT == rMEvt.GetModifier()
+ ? URLLOAD_DOWNLOADFILTER
+ : URLLOAD_NOFILTER;
+ if( KEY_MOD1 == rMEvt.GetModifier() )
+ nFilter |= URLLOAD_NEWVIEW;
+
+ BOOL bExecHyperlinks = rSh.GetViewOptions()->IsExecHyperlinks()^
+ (rMEvt.GetModifier() == KEY_MOD2 ? TRUE : FALSE);
+ if(pApplyTempl)
+ bExecHyperlinks = FALSE;
+ SwContentAtPos aCntntAtPos( SwContentAtPos::SW_CLICKFIELD |
+ SwContentAtPos::SW_INETATTR );
+
+ if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, TRUE ) )
+ {
+ BOOL bViewLocked = rSh.IsViewLocked();
+ if( !bViewLocked && !rSh.IsReadOnlyAvailable() &&
+ aCntntAtPos.IsInProtectSect() )
+ rSh.LockView( TRUE );
+
+ ReleaseMouse();
+ if( SwContentAtPos::SW_FIELD == aCntntAtPos.eCntntAtPos )
+ {
+ if( bExecHyperlinks )
+ rSh.ClickToField( *aCntntAtPos.aFnd.pFld, nFilter );
+ }
+ else if( bExecHyperlinks )
+ {
+ rSh.ClickToINetAttr( *(SwFmtINetFmt*)
+ aCntntAtPos.aFnd.pAttr, nFilter );
+ }
+ rSh.LockView( bViewLocked );
+ bCallShadowCrsr = FALSE;
+ }
+ else if( bExecHyperlinks )
+ {
+ aCntntAtPos = SwContentAtPos( SwContentAtPos::SW_FTN );
+ if( !rSh.GetContentAtPos( aDocPt, aCntntAtPos, TRUE ) )
+ {
+ SdrViewEvent aVEvt;
+
+ if (pSdrView)
+ pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
+
+ if (pSdrView && aVEvt.eEvent == SDREVENT_EXECUTEURL)
+ {
+ // URL-Feld getroffen
+ const SvxURLField *pField = aVEvt.pURLField;
+ if (pField)
+ {
+ String sURL(pField->GetURL());
+ String sTarget(pField->GetTargetFrame());
+ ::LoadURL( sURL, &rSh, nFilter, &sTarget);
+ }
+ bCallShadowCrsr = FALSE;
+ }
+ else
+ {
+ // Grafik getroffen
+ ReleaseMouse();
+ if( rSh.ClickToINetGrf( aDocPt, nFilter ))
+ bCallShadowCrsr = FALSE;
+ }
+ }
+ }
+
+ if( bCallShadowCrsr &&
+ rSh.GetViewOptions()->IsShadowCursor() &&
+ MOUSE_LEFT == (rMEvt.GetModifier() + rMEvt.GetButtons()) &&
+ !rSh.HasSelection() &&
+ !GetConnectMetaFile() &&
+ rSh.VisArea().IsInside( aDocPt ))
+ {
+ if( UNDO_INS_FROM_SHADOWCRSR == rSh.GetUndoIds() )
+ rSh.Undo();
+ SwFillMode eMode = (SwFillMode)rSh.GetViewOptions()->GetShdwCrsrFillMode();
+ rSh.SetShadowCrsrPos( aDocPt, eMode );
+ }
+ }
+ }
+ bCallBase = FALSE;
+
+ }
+
+ // gfs. im Down gepushten Mode wieder zuruecksetzen
+ if ( bPopMode && bModePushed )
+ {
+ rSh.PopMode();
+ bModePushed = FALSE;
+ bCallBase = FALSE;
+ }
+ break;
+
+ default:
+ ReleaseMouse();
+ return;
+ }
+
+ if( pApplyTempl )
+ {
+ int eSelection = rSh.GetSelectionType();
+ if( pApplyTempl->nColor )
+ {
+ USHORT nId = 0;
+ switch( pApplyTempl->nColor )
+ {
+ case SID_ATTR_CHAR_COLOR_EXT:
+ nId = RES_CHRATR_COLOR;
+ break;
+ case SID_ATTR_CHAR_COLOR_BACKGROUND_EXT:
+ nId = RES_CHRATR_BACKGROUND;
+ break;
+ }
+ if( nId && (SwWrtShell::SEL_TXT|SwWrtShell::SEL_TBL) & eSelection)
+ {
+ if( rSh.IsSelection() && !rSh.HasReadonlySel() )
+ {
+ if(nId == RES_CHRATR_BACKGROUND)
+ {
+ Color aColor( COL_TRANSPARENT );
+ if( !SwEditWin::bTransparentBackColor )
+ aColor = SwEditWin::aTextBackColor;
+ rSh.SetAttr( SvxBrushItem( aColor, nId ) );
+ }
+ else
+ rSh.SetAttr( SvxColorItem(SwEditWin::aTextColor, nId) );
+ rSh.UnSetVisCrsr();
+ rSh.EnterStdMode();
+ rSh.SetVisCrsr(aDocPt);
+
+ pApplyTempl->bUndo = TRUE;
+ bCallBase = FALSE;
+ aTemplateTimer.Stop();
+ }
+ else if(rMEvt.GetClicks() == 1)
+ {
+ // keine Selektion -> also Giesskanne abschalten
+ aTemplateTimer.Start();
+ }
+ }
+ }
+ else
+ {
+ switch ( pApplyTempl->eType )
+ {
+ case SFX_STYLE_FAMILY_PARA:
+ if( (( SwWrtShell::SEL_TXT | SwWrtShell::SEL_TBL )
+ & eSelection ) && !rSh.HasReadonlySel() )
+ {
+ rSh.SetTxtFmtColl( pApplyTempl->aColl.pTxtColl );
+ pApplyTempl->bUndo = TRUE;
+ bCallBase = FALSE;
+ }
+ break;
+ case SFX_STYLE_FAMILY_CHAR:
+ if( (( SwWrtShell::SEL_TXT | SwWrtShell::SEL_TBL )
+ & eSelection ) && !rSh.HasReadonlySel() )
+ {
+ rSh.SetAttr( SwFmtCharFmt(pApplyTempl->aColl.pCharFmt) );
+ rSh.UnSetVisCrsr();
+ rSh.EnterStdMode();
+ rSh.SetVisCrsr(aDocPt);
+ pApplyTempl->bUndo = TRUE;
+ bCallBase = FALSE;
+ }
+ break;
+ case SFX_STYLE_FAMILY_FRAME :
+ {
+ const SwFrmFmt* pFmt = rSh.GetFmtFromObj( aDocPt );
+ if(PTR_CAST(SwFlyFrmFmt, pFmt))
+ {
+ rSh.SetFrmFmt( pApplyTempl->aColl.pFrmFmt, FALSE, &aDocPt );
+ pApplyTempl->bUndo = TRUE;
+ bCallBase = FALSE;
+ }
+ break;
+ }
+ case SFX_STYLE_FAMILY_PAGE:
+ // Kein Undo bei Seitenvorlagen
+ rSh.ChgCurPageDesc( *pApplyTempl->aColl.pPageDesc );
+ bCallBase = FALSE;
+ break;
+ case SFX_STYLE_FAMILY_PSEUDO:
+ if( !rSh.HasReadonlySel() )
+ {
+ rSh.SetCurNumRule( *pApplyTempl->aColl.pNumRule );
+ bCallBase = FALSE;
+ pApplyTempl->bUndo = TRUE;
+ }
+ break;
+ }
+ }
+
+ }
+ ReleaseMouse();
+ // Hier kommen nur verarbeitete MouseEvents an; nur bei diesen duerfen
+ // die Modi zurueckgesetzt werden.
+ bMBPressed = FALSE;
+
+ //sicherheitshalber aufrufen, da jetzt das Selektieren bestimmt zu Ende ist.
+ //Andernfalls koennte der Timeout des Timers Kummer machen.
+ EnterArea();
+ bNoInterrupt = FALSE;
+
+ if (bCallBase)
+ Window::MouseButtonUp(rMEvt);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Vorlage anwenden
+ --------------------------------------------------------------------*/
+
+
+void SwEditWin::SetApplyTemplate(const SwApplyTemplate &rTempl)
+{
+ static BOOL bIdle = FALSE;
+ DELETEZ(pApplyTempl);
+ SwWrtShell &rSh = rView.GetWrtShell();
+
+ if(rTempl.nColor)
+ {
+ pApplyTempl = new SwApplyTemplate( rTempl );
+ SetPointer( POINTER_FILL );
+ rSh.NoEdit( FALSE );
+ bIdle = rSh.GetViewOptions()->IsIdle();
+ ((SwViewOption *)rSh.GetViewOptions())->SetIdle( FALSE );
+ }
+ else if( rTempl.eType )
+ {
+ pApplyTempl = new SwApplyTemplate( rTempl );
+ SetPointer( POINTER_FILL );
+ rSh.NoEdit( FALSE );
+ bIdle = rSh.GetViewOptions()->IsIdle();
+ ((SwViewOption *)rSh.GetViewOptions())->SetIdle( FALSE );
+ }
+ else
+ {
+ SetPointer( POINTER_TEXT );
+ rSh.UnSetVisCrsr();
+
+ ((SwViewOption *)rSh.GetViewOptions())->SetIdle( bIdle );
+ if ( !rSh.IsSelFrmMode() )
+ rSh.Edit();
+ }
+
+ static USHORT __READONLY_DATA aInva[] =
+ {
+ SID_STYLE_WATERCAN,
+ SID_ATTR_CHAR_COLOR_EXT,
+ SID_ATTR_CHAR_COLOR_BACKGROUND_EXT,
+ 0
+ };
+ rView.GetViewFrame()->GetBindings().Invalidate(aInva);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ctor
+ --------------------------------------------------------------------*/
+
+
+SwEditWin::SwEditWin(Window *pParent, SwView &rMyView):
+ Window(pParent, WinBits(WB_CLIPCHILDREN | WB_DIALOGCONTROL)),
+ aActHitType(SDRHIT_NONE),
+ eDrawMode(OBJ_NONE),
+ pApplyTempl(0),
+ rView( rMyView ),
+ pAnchorMarker( 0 ),
+ pUserMarker( 0 ),
+ pUserMarkerObj( 0 ),
+ pShadCrsr( 0 ),
+ nDropAction( 0 ),
+ nDropFormat( 0 ),
+ nDropDestination( 0 ),
+ nInsFrmColCount( 1 ),
+ bLockInput(FALSE)
+{
+ SetHelpId(HID_EDIT_WIN);
+ EnableChildTransparentMode();
+ SetDialogControlFlags( WINDOW_DLGCTRL_RETURN | WINDOW_DLGCTRL_WANTFOCUS );
+
+ bLinkRemoved = bMBPressed = bInsDraw = bInsFrm = bGrfToOle =
+ bIsInDrag = bOldIdle = bOldIdleSet = bChainMode = bWasShdwCrsr = FALSE;
+
+ SetMapMode(MapMode(MAP_TWIP));
+
+ SetPointer( POINTER_TEXT );
+ aTimer.SetTimeoutHdl(LINK(this, SwEditWin, TimerHandler));
+ EnableDrop();
+
+ bTblInsDelMode = FALSE;
+ aKeyInputTimer.SetTimeout( 3000 );
+ aKeyInputTimer.SetTimeoutHdl(LINK(this, SwEditWin, KeyInputTimerHandler));
+
+ aKeyInputFlushTimer.SetTimeout( 200 );
+ aKeyInputFlushTimer.SetTimeoutHdl(LINK(this, SwEditWin, KeyInputFlushHandler));
+
+ // TemplatePointer fuer Farben soll nach Einfachclick
+ // ohne Selektion zurueckgesetzt werden
+ aTemplateTimer.SetTimeout(400);
+ aTemplateTimer.SetTimeoutHdl(LINK(this, SwEditWin, TemplateTimerHdl));
+
+ //JP 16.12.98: temporaere Loesung!!! Sollte bei jeder Cursorbewegung
+ // den Font von der akt. einfuege Position setzen!
+ if( !rMyView.GetDocShell()->IsReadOnly() )
+ {
+ Font aFont;
+ SetInputContext( InputContext( aFont, INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT ) );
+ }
+}
+
+
+
+SwEditWin::~SwEditWin()
+{
+ aKeyInputTimer.Stop();
+ delete pShadCrsr;
+ if( pQuickHlpData->bClear && rView.GetWrtShellPtr() )
+ pQuickHlpData->Stop( rView.GetWrtShell() );
+ bExecuteDrag = FALSE;
+ delete pApplyTempl;
+ rView.SetDrawFuncPtr(NULL);
+ delete pUserMarker;
+ delete pAnchorMarker;
+}
+
+
+
+
+//Fuer MSC 2.0 W95
+#pragma optimize("",off)
+
+void SwEditWin::GrfToOle()
+{
+ //Wir machen aus einer Grafik ein OLE-Object (StarImage)
+ //Wird von MouseButtonDown bei Doppelklick gerufen.
+
+ //Wer das nicht versteht ist selber schuld ;-)
+ SvStorageRef aStor = new SvStorage( aEmptyStr );
+ SvInPlaceObjectRef aIPObj;
+#ifdef SO3
+ aIPObj = &((SvFactory *)SvInPlaceObject::ClassFactory())->CreateAndInit( *SIM_MOD()->pSimDrawDocShellFactory, aStor );
+#else
+ aIPObj = &SvInPlaceObject::ClassFactory()->CreateAndInit( *SIM_MOD()->pSimDrawDocShellFactory, aStor );
+#endif
+
+ if ( aIPObj.Is() )
+ {
+ SwWrtShell &rSh = GetView().GetWrtShell();
+ SimDLL::Update( aIPObj, rSh.GetGraphic(), rSh.GetOut() );
+
+ Size aSz;
+ rSh.GetGrfSize( aSz );
+ aSz = OutputDevice::LogicToLogic
+ ( aSz, MapMode( MAP_TWIP), MapMode( aIPObj->GetMapUnit()));
+ aIPObj->SetVisAreaSize( aSz );
+
+ rSh.StartAllAction();
+ rSh.GrfToOle( aIPObj );
+ rSh.EndAllAction();
+ bGrfToOle = TRUE;
+ }
+}
+
+
+
+void SwEditWin::OleToGrf()
+{
+ //Wenn wir ein Ole an der Hand haben und dies ein SIM-Object ist, so
+ //wird daraus wieder eine Graphic.
+
+ if ( bGrfToOle )
+ {
+ SwWrtShell &rSh = GetView().GetWrtShell();
+ if ( rSh.IsOLEObj() )
+ {
+ SvInPlaceObjectRef aRef = rSh.GetOLEObj();
+
+ //Wer das nicht versteht ist selber schuld ;-)
+ if ( SimModuleDummy::HasID( *aRef->GetSvFactory() ) )
+ {
+ Graphic aGrf( SimDLL::GetGraphic( aRef ) );
+ rSh.StartAllAction();
+ rSh.OleToGrf( &aGrf );
+ rSh.EndAllAction();
+ }
+ }
+ bGrfToOle = FALSE;
+ }
+}
+
+#pragma optimize("",on)
+
+/******************************************************************************
+ * Beschreibung: DrawTextEditMode einschalten
+ ******************************************************************************/
+
+
+void SwEditWin::EnterDrawTextMode( const Point& aDocPos )
+{
+ if ( rView.EnterDrawTextMode(aDocPos) == TRUE )
+ {
+ if (rView.GetDrawFuncPtr())
+ {
+ rView.GetDrawFuncPtr()->Deactivate();
+ rView.SetDrawFuncPtr(NULL);
+ rView.LeaveDrawCreate();
+ }
+ rView.NoRotate();
+ rView.AttrChangedNotify( &rView.GetWrtShell() );
+ }
+}
+
+/******************************************************************************
+ * Beschreibung: DrawMode einschalten
+ ******************************************************************************/
+
+
+
+BOOL SwEditWin::EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos)
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SdrView *pSdrView = rSh.GetDrawView();
+
+// if ( GetDrawFuncPtr() && (aActHitType == SDRHIT_NONE || rSh.IsDrawCreate()) )
+ if ( rView.GetDrawFuncPtr() )
+ {
+ if (rSh.IsDrawCreate())
+ return TRUE;
+
+ BOOL bRet = rView.GetDrawFuncPtr()->MouseButtonDown( rMEvt );
+ rView.AttrChangedNotify( &rSh );
+ return bRet;
+ }
+
+ if ( pSdrView && pSdrView->IsTextEdit() )
+ {
+ rSh.EndTextEdit(); // Danebengeklickt, Ende mit Edit
+ rSh.SelectObj( aDocPos );
+ if ( !rSh.IsObjSelected() && !rSh.IsFrmSelected() )
+ rSh.LeaveSelFrmMode();
+ else
+ {
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ bFrmDrag = TRUE;
+ }
+ rView.AttrChangedNotify( &rSh );
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+
+
+BOOL SwEditWin::IsDrawSelMode()
+{
+// return (IsFrmAction() == FALSE && GetDrawMode() == OBJ_NONE);
+ return (GetDrawMode() == SID_OBJECT_SELECT);
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+
+void SwEditWin::GetFocus()
+{
+ rView.GotFocus();
+ Window::GetFocus();
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+
+
+void SwEditWin::LoseFocus()
+{
+ Window::LoseFocus();
+ if( pQuickHlpData->bClear )
+ pQuickHlpData->Stop( rView.GetWrtShell() );
+ rView.LostFocus();
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+
+
+void SwEditWin::Command( const CommandEvent& rCEvt )
+{
+ if ( !rView.GetViewFrame() || !rView.GetViewFrame()->GetFrame() ||
+ rView.GetViewFrame()->GetFrame()->TransferForReplaceInProgress())
+ {
+ //Wenn der ViewFrame in Kuerze stirbt kein Popup mehr!
+ Window::Command(rCEvt);
+ return;
+ }
+
+ BOOL bCallBase = TRUE;
+
+ SwWrtShell &rSh = rView.GetWrtShell();
+
+ switch ( rCEvt.GetCommand() )
+ {
+ case COMMAND_STARTDRAG:
+ {
+ if (rSh.GetDrawView() && rSh.GetDrawView()->Command(rCEvt, this))
+ {
+ rView.GetViewFrame()->GetBindings().InvalidateAll(FALSE);
+ return; // Event von der SdrView ausgewertet
+ }
+ if ( !pApplyTempl && !rSh.IsDrawCreate() && !IsDrawAction())
+ {
+ BOOL bStart = FALSE, bDelSelect = FALSE;
+ SdrObject *pObj = NULL;
+ Point aDocPos( PixelToLogic( rCEvt.GetMousePosPixel() ) );
+ if ( !rSh.IsInSelect() && rSh.ChgCurrPam( aDocPos, TRUE, TRUE))
+ //Wir sind nicht beim Selektieren und stehen auf einer
+ //Selektion
+ bStart = TRUE;
+ else if ( !bFrmDrag && rSh.IsSelFrmMode() &&
+ rSh.IsInsideSelectedObj( aDocPos ) )
+ //Wir sind nicht am internen Draggen und stehen auf
+ //einem Objekt (Rahmen, Zeichenobjekt)
+ bStart = TRUE;
+ else if( !bFrmDrag && rView.GetDocShell()->IsReadOnly() &&
+ OBJCNT_NONE != rSh.GetObjCntType( aDocPos, pObj ))
+ {
+ rSh.LockPaint();
+ if( rSh.SelectObj( aDocPos, FALSE, FALSE, pObj ))
+ bStart = bDelSelect = TRUE;
+ else
+ rSh.UnlockPaint();
+ }
+ else
+ {
+ SwContentAtPos aSwContentAtPos( SwContentAtPos::SW_INETATTR );
+ bStart = rSh.GetContentAtPos( aDocPos,
+ aSwContentAtPos,
+ FALSE );
+ }
+
+ if ( bStart && !bIsInDrag )
+ {
+ bMBPressed = FALSE;
+ ReleaseMouse();
+ bFrmDrag = FALSE;
+ bExecuteDrag = TRUE;
+ SwEditWin::nDDStartPosY = aDocPos.Y();
+ SwEditWin::nDDStartPosX = aDocPos.X();
+ aMovePos = aDocPos;
+ StartExecuteDrag();
+ bCallBase = FALSE;
+ if( bDelSelect )
+ {
+ rSh.UnSelectFrm();
+ rSh.UnlockPaint();
+ }
+ }
+ }
+ }
+ break;
+
+ case COMMAND_CONTEXTMENU:
+ {
+ const USHORT nId = SwInputChild::GetChildWindowId();
+ SwInputChild* pChildWin = (SwInputChild*)GetView().GetViewFrame()->
+ GetChildWindow( nId );
+
+ if((!pChildWin || pChildWin->GetView() != &rView) &&
+ !rSh.IsDrawCreate() && !IsDrawAction())
+ {
+ SET_CURR_SHELL( &rSh );
+ if (!pApplyTempl)
+ {
+ if (bNoInterrupt == TRUE)
+ {
+ ReleaseMouse();
+ bNoInterrupt = FALSE;
+ bMBPressed = FALSE;
+ }
+ Point aDocPos( PixelToLogic( rCEvt.GetMousePosPixel() ) );
+ if ( !rCEvt.IsMouseEvent() )
+ aDocPos = rSh.GetCharRect().Center();
+ const Point aPixPos = LogicToPixel( aDocPos );
+
+ if ( rView.GetDocShell()->IsReadOnly() )
+ SwReadOnlyPopup( aDocPos, rView ).Execute( this, aPixPos );
+ else if ( !rView.ExecSpellPopup( aDocPos ) )
+ GetView().GetViewFrame()->GetDispatcher()->ExecutePopup( 0, this, &aPixPos);
+ }
+ else if (pApplyTempl->bUndo)
+ rSh.Do(SwWrtShell::UNDO);
+ bCallBase = FALSE;
+ }
+ }
+ break;
+
+ case COMMAND_WHEEL:
+ case COMMAND_STARTAUTOSCROLL:
+ case COMMAND_AUTOSCROLL:
+ if( pShadCrsr )
+ delete pShadCrsr, pShadCrsr = 0;
+ bCallBase = !rView.HandleWheelCommands( rCEvt );
+ break;
+
+ case COMMAND_VOICE:
+ {
+ //ggf. an Outliner weiterleiten
+ if ( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() )
+ {
+ bCallBase = FALSE;
+ rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt );
+ break;
+ }
+
+ const CommandVoiceData *pCData = rCEvt.GetVoiceData();
+ if ( VOICECOMMANDTYPE_CONTROL == pCData->GetType() )
+ break;
+
+
+ USHORT nSlotId = 0;
+ SfxPoolItem *pItem = 0;
+
+ switch ( pCData->GetCommand() )
+ {
+ case DICTATIONCOMMAND_NEWPARAGRAPH: nSlotId = FN_INSERT_BREAK; break;
+ case DICTATIONCOMMAND_NEWLINE: nSlotId = FN_INSERT_LINEBREAK; break;
+ case DICTATIONCOMMAND_LEFT: nSlotId = FN_PREV_WORD; break;
+ case DICTATIONCOMMAND_RIGHT: nSlotId = FN_NEXT_WORD; break;
+ case DICTATIONCOMMAND_UP: nSlotId = FN_LINE_UP; break;
+ case DICTATIONCOMMAND_DOWN: nSlotId = FN_LINE_DOWN; break;
+ case DICTATIONCOMMAND_UNDO: nSlotId = SID_UNDO; break;
+ case DICTATIONCOMMAND_REPEAT: nSlotId = SID_REPEAT; break;
+ case DICTATIONCOMMAND_DEL: nSlotId = FN_DELETE_BACK_WORD; break;
+
+ case DICTATIONCOMMAND_BOLD_ON: nSlotId = SID_ATTR_CHAR_WEIGHT;
+ pItem = new SvxWeightItem( WEIGHT_BOLD );
+ break;
+ case DICTATIONCOMMAND_BOLD_OFF: nSlotId = SID_ATTR_CHAR_WEIGHT;
+ pItem = new SvxWeightItem( WEIGHT_NORMAL );
+ break;
+ case DICTATIONCOMMAND_UNDERLINE_ON: nSlotId = SID_ATTR_CHAR_UNDERLINE;
+ pItem = new SvxUnderlineItem( UNDERLINE_SINGLE );
+ break;
+ case DICTATIONCOMMAND_UNDERLINE_OFF:nSlotId = SID_ATTR_CHAR_UNDERLINE;
+ pItem = new SvxUnderlineItem( UNDERLINE_NONE );
+ break;
+ case DICTATIONCOMMAND_ITALIC_ON: nSlotId = SID_ATTR_CHAR_POSTURE;
+ pItem = new SvxPostureItem( ITALIC_NORMAL );
+ break;
+ case DICTATIONCOMMAND_ITALIC_OFF: nSlotId = SID_ATTR_CHAR_POSTURE;
+ pItem = new SvxPostureItem( ITALIC_NONE );
+ break;
+ case DICTATIONCOMMAND_NUMBERING_ON:
+ if ( !rSh.GetCurNumRule() )
+ nSlotId = FN_NUM_NUMBERING_ON;
+ break;
+ case DICTATIONCOMMAND_NUMBERING_OFF:
+ if ( rSh.GetCurNumRule() )
+ nSlotId = FN_NUM_NUMBERING_ON;
+ break;
+ case DICTATIONCOMMAND_TAB:
+ {
+ rSh.Insert( '\t' );
+ }
+ break;
+ case DICTATIONCOMMAND_UNKNOWN:
+ {
+ rView.GetWrtShell().Insert( pCData->GetText() );
+ }
+ break;
+
+#ifdef DBG_UTIL
+ default:
+ ASSERT( !this, "unknown speech command." );
+#endif
+ }
+ if ( nSlotId )
+ {
+ bCallBase = FALSE;
+ if ( pItem )
+ {
+ //Eigentumsuebergang des Items
+ GetView().GetViewFrame()->GetDispatcher()->Execute( nSlotId, SFX_CALLMODE_STANDARD,
+ pItem, 0 );
+ }
+ else
+ GetView().GetViewFrame()->GetDispatcher()->Execute( nSlotId );
+ }
+ }
+ break;
+
+ case COMMAND_STARTEXTTEXTINPUT:
+ if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() )
+ {
+ bCallBase = FALSE;
+ rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt );
+ }
+ else
+ {
+ if( rSh.HasSelection() )
+ rSh.DelRight();
+
+ bCallBase = FALSE;
+ rSh.CreateExtTextInput();
+ }
+ break;
+
+ case COMMAND_ENDEXTTEXTINPUT:
+ if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() )
+ {
+ bCallBase = FALSE;
+ rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt );
+ }
+ else
+ {
+ bCallBase = FALSE;
+ rSh.DeleteExtTextInput();
+ }
+ break;
+
+ case COMMAND_EXTTEXTINPUT:
+ if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() )
+ {
+ bCallBase = FALSE;
+ rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt );
+ }
+ else
+ {
+ const CommandExtTextInputData* pData = rCEvt.GetExtTextInputData();
+ if( pData )
+ {
+ bCallBase = FALSE;
+ rSh.SetExtTextInputData( *pData );
+ }
+ }
+ break;
+
+ case COMMAND_CURSORPOS:
+ // will be handled by the base class
+ break;
+
+ case COMMAND_EXTTEXTINPUTPOS:
+ if( rSh.HasDrawView() && rSh.GetDrawView()->IsTextEdit() )
+ {
+ bCallBase = FALSE;
+ rSh.GetDrawView()->GetTextEditOutlinerView()->Command( rCEvt );
+ }
+ else
+ {
+ SwExtTextInput* pInput = rSh.GetExtTextInput();
+ const CommandExtTextInputPosData* pData = rCEvt.GetExtTextInputPosData();
+ if( pInput && pData )
+ {
+ const Point aPt( rSh.GetCharRect().Pos() );
+ Rectangle* pRects = pInput->GetPosInputData( *pData, &aPt );
+ SetExtTextInputPos( pData->GetFirstPos(),
+ pData->GetChars(), pRects );
+ delete pRects;
+ bCallBase = FALSE;
+ }
+ }
+ break;
+
+#ifdef DBG_UTIL
+ default:
+ ASSERT( !this, "unknown command." );
+#endif
+ }
+ if (bCallBase)
+ Window::Command(rCEvt);
+}
+
+
+
+SfxShell* lcl_GetShellFromDispatcher( SwView& rView, TypeId nType )
+{
+ //Shell ermitteln
+ SfxShell* pShell;
+ SfxDispatcher* pDispatcher = rView.GetViewFrame()->GetDispatcher();
+ for(int i = 0; TRUE; ++i )
+ {
+ pShell = pDispatcher->GetShell( i );
+ if( !pShell || pShell->IsA( nType ) )
+ break;
+ }
+ return pShell;
+}
+
+
+
+void SwEditWin::ClearTip()
+{
+}
+
+IMPL_LINK( SwEditWin, KeyInputFlushHandler, Timer *, EMPTYARG )
+{
+ FlushInBuffer( &rView.GetWrtShell() );
+ return 0;
+}
+
+
+IMPL_LINK( SwEditWin, KeyInputTimerHandler, Timer *, EMPTYARG )
+{
+ bTblInsDelMode = FALSE;
+ return 0;
+}
+
+void SwEditWin::_InitStaticData()
+{
+ pQuickHlpData = new QuickHelpData();
+}
+
+void SwEditWin::_FinitStaticData()
+{
+ delete pQuickHlpData;
+}
+
+/*-----------------23.02.97 18:39-------------------
+
+--------------------------------------------------*/
+
+
+IMPL_LINK(SwEditWin, TemplateTimerHdl, Timer*, EMPTYARG)
+{
+ SetApplyTemplate(SwApplyTemplate());
+ return 0;
+}
+
+
+void SwEditWin::SetChainMode( BOOL bOn )
+{
+ if ( !bChainMode )
+ StopInsFrm();
+ if ( pUserMarker )
+ {
+ DELETEZ( pUserMarker );
+ }
+ bChainMode = bOn;
+ if ( !bChainMode )
+ rView.GetViewFrame()->HideStatusText();
+
+ static USHORT __READONLY_DATA aInva[] =
+ {
+ FN_FRAME_CHAIN, FN_FRAME_UNCHAIN, 0
+ };
+ rView.GetViewFrame()->GetBindings().Invalidate(aInva);
+}
+
+//-------------------------------------------------------------
+
+void QuickHelpData::Move( QuickHelpData& rCpy )
+{
+ // Pointer verschieben
+ aArr.Insert( &rCpy.aArr );
+ rCpy.aArr.Remove( (USHORT)0, rCpy.aArr.Count() );
+// nTipId = rCpy.nTipId;
+ bClear = rCpy.bClear;
+ nLen = rCpy.nLen;
+ nCurArrPos = rCpy.nCurArrPos;
+ bChkInsBlank = rCpy.bChkInsBlank;
+ bIsTip = rCpy.bIsTip;
+ bIsAutoText = rCpy.bIsAutoText;
+
+ if( pCETID ) delete pCETID;
+ pCETID = rCpy.pCETID;
+ rCpy.pCETID = 0;
+
+ if( pAttrs ) delete pAttrs;
+ pAttrs = rCpy.pAttrs;
+ rCpy.pAttrs = 0;
+}
+
+void QuickHelpData::ClearCntnt()
+{
+ nLen = nCurArrPos = 0;
+ bClear = bChkInsBlank = FALSE;
+ nTipId = 0;
+ aArr.DeleteAndDestroy( 0 , aArr.Count() );
+ bIsTip = TRUE;
+ bIsAutoText = TRUE;
+ delete pCETID, pCETID = 0;
+ delete pAttrs, pAttrs = 0;
+}
+
+
+void QuickHelpData::Start( SwWrtShell& rSh, USHORT nWrdLen )
+{
+ if( pCETID ) delete pCETID, pCETID = 0;
+ if( pAttrs ) delete pAttrs, pAttrs = 0;
+
+ if( USHRT_MAX != nWrdLen )
+ {
+ nLen = nWrdLen;
+ nCurArrPos = 0;
+ }
+ bClear = TRUE;
+
+ if( bIsTip )
+ {
+ Window& rWin = rSh.GetView().GetEditWin();
+ Point aPt( rWin.OutputToScreenPixel( rWin.LogicToPixel(
+ rSh.GetCharRect().Pos() )));
+ aPt.Y() -= 3;
+ nTipId = Help::ShowTip( &rWin, Rectangle( aPt, Size( 1, 1 )),
+ *aArr[ nCurArrPos ],
+ QUICKHELP_LEFT | QUICKHELP_BOTTOM );
+ }
+ else
+ {
+ String sStr( *aArr[ nCurArrPos ] );
+ sStr.Erase( 0, nLen );
+ USHORT nL = sStr.Len();
+ pAttrs = new USHORT[ nL ];
+ for( USHORT n = nL; n; )
+ *(pAttrs + --n ) = EXTTEXTINPUT_ATTR_DOTTEDUNDERLINE |
+ EXTTEXTINPUT_ATTR_HIGHLIGHT;
+ pCETID = new CommandExtTextInputData( sStr, pAttrs, nL,
+ TRUE, 0, 0, FALSE );
+ rSh.CreateExtTextInput();
+ rSh.SetExtTextInputData( *pCETID );
+ }
+}
+
+void QuickHelpData::Stop( SwWrtShell& rSh )
+{
+ if( !bIsTip )
+ rSh.DeleteExtTextInput( 0, FALSE );
+ else if( nTipId )
+ Help::HideTip( nTipId );
+ ClearCntnt();
+}
+
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.776 2000/09/18 16:05:23 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.775 2000/09/08 08:12:50 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.774 2000/09/07 16:06:14 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.773 2000/09/07 15:59:21 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.772 2000/07/18 18:30:46 jp
+ KeyInput: start a timer if AnyInput don't call the KeyInput again, for flush the data
+
+ Revision 1.771 2000/06/28 09:40:29 os
+ #76471# call FN_EDIT_FIELD via SfxBindings instead of SfxDispatcher
+
+ Revision 1.770 2000/06/13 14:56:20 os
+ #76167# character background color assignment corrected
+
+ Revision 1.769 2000/06/13 10:00:15 os
+ using UCB
+
+ Revision 1.768 2000/06/09 13:35:02 ama
+ Fix: No assert for COMMAND_CURSORPOS
+
+ Revision 1.767 2000/05/26 07:21:29 os
+ old SW Basic API Slots removed
+
+ Revision 1.766 2000/05/24 10:39:15 jp
+ Fix for solaris compiler
+
+ Revision 1.765 2000/05/19 13:12:42 jp
+ Changes for Unicode
+
+ Revision 1.764 2000/05/19 11:04:59 jp
+ Changes for Unicode
+
+ Revision 1.763 2000/05/10 11:54:57 os
+ Basic API removed
+
+ Revision 1.762 2000/05/09 14:46:33 os
+ BASIC interface partially removed
+
+ Revision 1.761 2000/05/03 09:04:35 os
+ #75368# prevent hyperlink execution if watercan mode is activated
+
+ Revision 1.760 2000/04/20 12:55:18 os
+ GetName() returns String&
+
+ Revision 1.759 2000/04/18 15:18:16 os
+ UNICODE
+
+ Revision 1.758 2000/03/03 15:16:59 os
+ StarView remainders removed
+
+ Revision 1.757 2000/02/11 14:44:59 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.756 2000/02/09 12:02:37 jp
+ Task #72684#: AutoText expand only with return-Key
+
+ Revision 1.755 2000/01/13 21:28:12 jp
+ Task #71894#: new Options for SW-AutoComplete
+
+ Revision 1.754 1999/12/06 18:19:55 jp
+ Bug #70535#: Wheelcommands - hide ShadowCursor
+
+ Revision 1.753 1999/11/10 09:38:34 ama
+ Fix #69089#: HitHandle and hit anchor
+
+ Revision 1.752 1999/10/19 12:24:44 os
+ call authority-entry dialog on double click
+
+ Revision 1.751 1999/10/12 14:33:19 jp
+ Bug #69139#: DTOR - stop QuickHelpData only if the WrtShell exist
+
+ Revision 1.750 1999/10/12 13:39:17 ama
+ Fix #69089#: Use sdr-anchor-handle
+
+ Revision 1.749 1999/10/11 20:10:29 jp
+ Bug #68496#: append paragraph behind a section
+
+ Revision 1.748 1999/10/08 09:42:58 os
+ #69059# last cast from GetpApp to SfxApplication* removed
+
+ Revision 1.747 1999/10/06 08:41:11 jp
+ Bug #68761#: MouseMove - use new function GetFmtFromAnyObj
+
+ Revision 1.746 1999/08/27 09:34:38 JP
+ no cast from GetpApp to SfxApp
+
+
+ Rev 1.745 27 Aug 1999 11:34:38 JP
+ no cast from GetpApp to SfxApp
+
+ Rev 1.744 06 Aug 1999 16:48:18 JP
+ Bug #68113#: MouseButtonDown - lockview before call SelectObject
+
+ Rev 1.743 06 Jul 1999 20:06:50 JP
+ Bug #67360#: MouseMove - check for aditional mode
+
+ Rev 1.742 17 Jun 1999 09:36:30 JP
+ Bug #66927#: KeyInput - fill AutoCompleteList only with words which has lower count of characters
+
+ Rev 1.741 27 May 1999 13:00:40 OS
+ Einf?gen/Bearbeiten von Spalten ueberarbeitet
+
+ Rev 1.740 11 May 1999 20:09:22 HJS
+ includes
+
+ Rev 1.739 27 Apr 1999 14:50:20 JP
+ Bug #65389#: MouseButtonUp - im HoldSelection auf jedenfall das EndDrag rufen
+
+ Rev 1.738 26 Apr 1999 12:20:14 KZ
+ #include <svtools/args.hxx> eingefuegt
+
+ Rev 1.737 23 Apr 1999 17:02:32 JP
+ Bug #65289#: MouseMove: synthetische Moves/ButtonDowns ignorieren
+
+ Rev 1.736 22 Apr 1999 12:33:40 JP
+ Bug #65171#: UpdatePointer - bei ApplyStyle den richtigen MousePointer setzen
+
+ Rev 1.735 19 Apr 1999 13:38:44 OS
+ #64780# Notizen und Scripts in geschuetzten Bereichen
+
+ Rev 1.734 01 Apr 1999 15:26:38 JP
+ Bug #64154#: KeyInput - beim AutoComplete die schon eingegebenen Buchstaben nicht entfernen
+
+ Rev 1.733 17 Mar 1999 11:31:40 JP
+ Task #63576#: KeyInput - das AutoComplete-Flag von der OffApp erfragen
+
+ Rev 1.732 10 Mar 1999 09:40:30 JP
+ Task #61405#: AutoCompletion von Woertern
+
+ Rev 1.731 09 Mar 1999 19:38:14 JP
+ Task #61405#: AutoCompletion von Woertern
+
+ Rev 1.730 08 Mar 1999 11:52:14 JP
+ Bug #62920#: aus readonly Docs Grafiken einfacher herausdraggen
+
+ Rev 1.729 01 Mar 1999 23:01:24 JP
+ Bug #62582#: InInProtectCntnt nur noch auswerten, wenn Cursor nicht im Readonly zugelassen ist
+
+ Rev 1.728 03 Feb 1999 13:59:58 JP
+ Bug #61399#: MouseButtonDown - CTRL auf Handels behandeln
+
+ Rev 1.727 28 Jan 1999 20:46:08 JP
+ Bug #61264#: MouseButtonDown - SHIFT-CTRL auf Handels behandeln
+
+ Rev 1.726 26 Jan 1999 11:01:24 AWO
+ Syntax
+
+ Rev 1.725 22 Jan 1999 16:56:44 JP
+ Bug Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.724 20 Jan 1999 14:17:30 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.723 19 Jan 1999 22:58:12 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.722 17 Dec 1998 19:19:54 JP
+ Task #59490# ExtTextInput fuer japan./chine. Version
+
+ Rev 1.721 11 Dec 1998 12:47:42 MT
+ #59490# IME
+
+ Rev 1.720 11 Nov 1998 15:04:26 JP
+ Task #59308#: NoNum auch bei Outlines setzen
+
+ Rev 1.719 06 Nov 1998 14:43:04 OS
+ #57903# NumOff kann weg
+
+ Rev 1.718 03 Nov 1998 11:51:40 JP
+ Task #57916#: Vorbereitungen fuer den Selektionshandler vom Chart
+
+ Rev 1.717 25 Sep 1998 13:21:00 JP
+ Bug #56196#: KeyInput - Tab in der WebView ans Window weiterleiten, damit der SFX ggfs. was tun kann
+
+ Rev 1.716 24 Sep 1998 13:33:22 JP
+ Bug #55592#/#55931#: synthetische MouseMoves mit Ctrl-Taste sollten keine Selektion anfangen
+
+ Rev 1.715 10 Sep 1998 10:39:28 OS
+ #56290# Rahmenvorlage per Giesskanne auch ohne Selektion
+
+**********************************************************************/
+
diff --git a/sw/source/ui/docvw/edtwin2.cxx b/sw/source/ui/docvw/edtwin2.cxx
new file mode 100644
index 000000000000..6810c9ae298d
--- /dev/null
+++ b/sw/source/ui/docvw/edtwin2.cxx
@@ -0,0 +1,694 @@
+/*************************************************************************
+ *
+ * $RCSfile: edtwin2.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <tools/ref.hxx>
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef PRODUCT
+#include <stdio.h>
+#endif
+
+#ifndef _HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _IPENV_HXX //autogen
+#include <so3/ipenv.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _TXTRFMRK_HXX //autogen wg. SwTxtRefMark
+#include <txtrfmrk.hxx>
+#endif
+#ifndef _FMTRFMRK_HXX //autogen wg. SwFmtRefMark
+#include <fmtrfmrk.hxx>
+#endif
+
+#ifndef _SVX_FLDITEM_HXX
+# ifndef ITEMID_FIELD
+# ifndef _EEITEM_HXX //autogen
+# include <svx/eeitem.hxx>
+# endif
+# define ITEMID_FIELD EE_FEATURE_FIELD /* wird fuer #include <flditem.hxx> benoetigt */
+# endif
+# ifndef _SVX_FLDITEM_HXX //autogen
+# include <svx/flditem.hxx>
+# endif
+#endif
+
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SVDOTEXT_HXX //autogen
+#include <svx/svdotext.hxx>
+#endif
+#ifndef _OUTLINER_HXX //autogen
+#define _EEITEMID_HXX
+#include <svx/outliner.hxx>
+#endif
+#ifndef _SFXITEMITER_HXX //autogen
+#include <svtools/itemiter.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDPAGV_HXX //autogen
+#include <svx/svdpagv.hxx>
+#endif
+
+
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _DPAGE_HXX
+#include <dpage.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _REFFLD_HXX
+#include <reffld.hxx>
+#endif
+#ifndef _CELLATR_HXX
+#include <cellatr.hxx>
+#endif
+#ifndef _SHDWCRSR_HXX
+#include <shdwcrsr.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _CHARFMT_HXX
+#include <charfmt.hxx>
+#endif
+#ifndef _FMTFTN_HXX
+#include <fmtftn.hxx>
+#endif
+#ifndef _REDLINE_HXX
+#include <redline.hxx>
+#endif
+#ifndef _REDLENUM_HXX
+#include <redlenum.hxx>
+#endif
+#ifndef _TOX_HXX
+#include <tox.hxx>
+#endif
+#ifndef _TXTTXMRK_HXX //autogen
+#include <txttxmrk.hxx>
+#endif
+
+#ifndef _DOCVW_HRC
+#include <docvw.hrc>
+#endif
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+/*--------------------------------------------------------------------
+ Beschreibung: KeyEvents
+ --------------------------------------------------------------------*/
+void lcl_GetRedlineHelp( const SwRedline& rRedl, String& rTxt, BOOL bBalloon )
+{
+ USHORT nResId = 0;
+ switch( rRedl.GetType() )
+ {
+ case REDLINE_INSERT: nResId = STR_REDLINE_INSERT; break;
+ case REDLINE_DELETE: nResId = STR_REDLINE_DELETE; break;
+ case REDLINE_FORMAT: nResId = STR_REDLINE_FORMAT; break;
+ case REDLINE_TABLE: nResId = STR_REDLINE_TABLE; break;
+ case REDLINE_FMTCOLL: nResId = STR_REDLINE_FMTCOLL; break;
+ }
+
+ if( nResId )
+ {
+ const DateTime& rDT = rRedl.GetTimeStamp();
+ const International& rIntl = Application::GetAppInternational();
+ rTxt = SW_RESSTR( nResId );
+ (rTxt += C2S(": " )) += rRedl.GetAuthorString();
+ (rTxt += C2S(" - " )) += rIntl.GetDate( rDT );
+ (rTxt += ' ') += rIntl.GetTime( rDT, FALSE, FALSE );
+ if( bBalloon && rRedl.GetComment().Len() )
+ ( rTxt += '\n' ) += rRedl.GetComment();
+ }
+}
+
+
+void SwEditWin::RequestHelp(const HelpEvent &rEvt)
+{
+ BOOL bWeiter = TRUE;
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SET_CURR_SHELL(&rSh);
+ String sTxt;
+ Point aPos( PixelToLogic( ScreenToOutputPixel( rEvt.GetMousePosPixel() ) ));
+ BOOL bBalloon = rEvt.GetMode() & HELPMODE_BALLOON;
+
+ SdrView *pSdrView = rSh.GetDrawView();
+
+ if( rEvt.GetMode() & ( HELPMODE_QUICK | HELPMODE_BALLOON ) )
+ {
+ if( pSdrView )
+ {
+ SdrPageView* pPV = pSdrView->GetPageViewPvNum(0);
+ bWeiter = ((SwDPage*)pPV->GetPage())->RequestHelp(this,
+ pSdrView, rEvt);
+ }
+ }
+
+ if( bWeiter && rEvt.GetMode() & ( HELPMODE_QUICK | HELPMODE_BALLOON ))
+ {
+ SwRect aFldRect;
+ SwContentAtPos aCntntAtPos( SwContentAtPos::SW_FIELD |
+ SwContentAtPos::SW_INETATTR |
+ SwContentAtPos::SW_FTN |
+ SwContentAtPos::SW_REDLINE |
+ SwContentAtPos::SW_TOXMARK |
+ SwContentAtPos::SW_REFMARK |
+#ifndef PRODUCT
+ SwContentAtPos::SW_TABLEBOXVALUE |
+ ( bBalloon ? SwContentAtPos::SW_CURR_ATTRS : 0) |
+#endif
+ SwContentAtPos::SW_TABLEBOXFML );
+
+ if( rSh.GetContentAtPos( aPos, aCntntAtPos, FALSE, &aFldRect ) )
+ {
+ switch( aCntntAtPos.eCntntAtPos )
+ {
+ case SwContentAtPos::SW_TABLEBOXFML:
+ ( sTxt = C2S("= ")) += ((SwTblBoxFormula*)aCntntAtPos.aFnd.pAttr)->GetFormula();
+ break;
+#ifndef PRODUCT
+ case SwContentAtPos::SW_TABLEBOXVALUE:
+ {
+ ByteString sTmp;
+ sprintf( sTmp.AllocBuffer( 30 ), "%E",
+ ((SwTblBoxValue*)aCntntAtPos.aFnd.pAttr)->GetValue() );
+ sTxt = UniString(sTmp.GetBuffer(), gsl_getSystemTextEncoding());
+ }
+ break;
+ case SwContentAtPos::SW_CURR_ATTRS:
+ sTxt = aCntntAtPos.sStr;
+ break;
+#endif
+
+ case SwContentAtPos::SW_INETATTR:
+ sTxt = ((SfxStringItem*)aCntntAtPos.aFnd.pAttr)->GetValue();
+ sTxt = URIHelper::removePassword( sTxt,
+ INetURLObject::WAS_ENCODED,
+ INetURLObject::DECODE_WITH_CHARSET );
+
+ break;
+
+ case SwContentAtPos::SW_FTN:
+ if( aCntntAtPos.pFndTxtAttr && aCntntAtPos.aFnd.pAttr )
+ {
+ const SwFmtFtn* pFtn = (SwFmtFtn*)aCntntAtPos.aFnd.pAttr;
+ pFtn->GetFtnText( sTxt );
+ sTxt.Insert( SW_RESSTR( pFtn->IsEndNote()
+ ? STR_ENDNOTE : STR_FTNNOTE ), 0 );
+ }
+ break;
+
+ case SwContentAtPos::SW_REDLINE:
+ ::lcl_GetRedlineHelp( *aCntntAtPos.aFnd.pRedl, sTxt, bBalloon );
+ break;
+
+ case SwContentAtPos::SW_TOXMARK:
+ sTxt = aCntntAtPos.sStr;
+ if( sTxt.Len() && aCntntAtPos.pFndTxtAttr )
+ {
+ const SwTOXType* pTType = aCntntAtPos.pFndTxtAttr->
+ GetTOXMark().GetTOXType();
+ if( pTType && pTType->GetTypeName().Len() )
+ {
+ sTxt.Insert( C2S(": "), 0 );
+ sTxt.Insert( pTType->GetTypeName(), 0 );
+ }
+ }
+ break;
+ case SwContentAtPos::SW_REFMARK:
+ if(aCntntAtPos.aFnd.pAttr)
+ {
+ sTxt = SW_RES(STR_CONTENT_TYPE_SINGLE_REFERENCE);
+ sTxt += C2S(": ");
+ sTxt += ((const SwFmtRefMark*)aCntntAtPos.aFnd.pAttr)->GetRefName();
+ }
+ break;
+
+ default:
+ {
+ const SwField* pFld = aCntntAtPos.aFnd.pFld;
+ switch( pFld->Which() )
+ {
+ case RES_SETEXPFLD:
+ case RES_TABLEFLD:
+ case RES_GETEXPFLD:
+ {
+ USHORT nOldSubType = pFld->GetSubType();
+ ((SwField*)pFld)->SetSubType(SUB_CMD);
+ sTxt = pFld->Expand();
+ ((SwField*)pFld)->SetSubType(nOldSubType);
+ }
+ break;
+
+ case RES_POSTITFLD:
+ case RES_INPUTFLD: // BubbleHelp, da der Hinweis ggf ziemlich lang sein kann
+ bBalloon = TRUE;
+ /* no break */
+ case RES_JUMPEDITFLD:
+ sTxt = pFld->GetPar2();
+ break;
+
+ case RES_DBFLD:
+ sTxt = ((SwDBField*)pFld)->GetCntnt(TRUE);
+ break;
+
+ case RES_USERFLD:
+ case RES_HIDDENTXTFLD:
+ sTxt = pFld->GetPar1();
+ break;
+
+ case RES_DOCSTATFLD:
+ break;
+
+ case RES_MACROFLD:
+ sTxt = ((const SwMacroField*)pFld)->GetMacro();
+ break;
+
+ case RES_GETREFFLD:
+ sTxt = ((SwGetRefField*)pFld)->GetSetRefName();
+ break;
+ }
+
+ if( !sTxt.Len() )
+ {
+ aCntntAtPos.eCntntAtPos = SwContentAtPos::SW_REDLINE;
+ if( rSh.GetContentAtPos( aPos, aCntntAtPos, FALSE, &aFldRect ) )
+ ::lcl_GetRedlineHelp( *aCntntAtPos.aFnd.pRedl,
+ sTxt, bBalloon );
+ }
+ }
+ }
+ if (sTxt.Len() )
+ {
+ if( bBalloon )
+ Help::ShowBalloon( this, rEvt.GetMousePosPixel(), sTxt );
+ else
+ {
+ // dann zeige die Hilfe mal an:
+ Rectangle aRect( aFldRect.SVRect() );
+ Point aPt( OutputToScreenPixel( LogicToPixel( aRect.TopLeft() )));
+ aRect.Left() = aPt.X();
+ aRect.Top() = aPt.Y();
+ aPt = OutputToScreenPixel( LogicToPixel( aRect.BottomRight() ));
+ aRect.Right() = aPt.X();
+ aRect.Bottom() = aPt.Y();
+ Help::ShowQuickHelp( this, aRect, sTxt );
+ }
+ }
+
+ bWeiter = FALSE;
+ }
+ }
+
+/*
+aktuelle Zeichenvorlage anzeigen?
+ if( bWeiter && rEvt.GetMode() & ( HELPMODE_QUICK | HELPMODE_BALLOON ))
+ {
+ SwCharFmt* pChrFmt = rSh.GetCurCharFmt();
+
+ }
+*/
+ if( bWeiter && pSdrView && rEvt.GetMode() & ( HELPMODE_QUICK | HELPMODE_BALLOON ))
+ {
+ SdrViewEvent aVEvt;
+ SdrHitKind eHit = pSdrView->PickAnything(aPos, aVEvt);
+ const SvxURLField *pField;
+ SdrObject* pObj = NULL;
+
+ if ((pField = aVEvt.pURLField) != 0)
+ {
+ // URL-Feld getroffen
+ if (pField)
+ {
+ pObj = aVEvt.pObj;
+ sTxt = pField->GetURL();
+
+ bWeiter = FALSE;
+ }
+ }
+ if (bWeiter && eHit == SDRHIT_TEXTEDIT)
+ {
+ // URL-Feld in zum Editieren ge”ffneten DrawText-Objekt suchen
+ OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
+ const SvxFieldItem* pFieldItem;
+ const SdrTextObj* pTextObj = NULL;
+
+ if (pSdrView->HasMarkedObj())
+ {
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+
+ if (rMarkList.GetMarkCount() == 1)
+ pObj = rMarkList.GetMark(0)->GetObj();
+ }
+
+ if (pObj && pObj->ISA(SdrTextObj) && pOLV &&
+ (pFieldItem = pOLV->GetFieldUnderMousePointer()) != 0)
+ {
+ const SvxFieldData* pField = pFieldItem->GetField();
+
+ if (pField && pField->ISA(SvxURLField))
+ {
+ sTxt = ((const SvxURLField*) pField)->GetURL();
+ bWeiter = FALSE;
+ }
+ }
+ }
+ if (sTxt.Len() && pObj)
+ {
+ sTxt = URIHelper::removePassword( sTxt, INetURLObject::WAS_ENCODED,
+ INetURLObject::DECODE_WITH_CHARSET );
+
+ Rectangle aLogicPix = LogicToPixel(pObj->GetLogicRect());
+ Rectangle aScreenRect(OutputToScreenPixel(aLogicPix.TopLeft()),
+ OutputToScreenPixel(aLogicPix.BottomRight()));
+
+ if (bBalloon)
+ Help::ShowBalloon(this, rEvt.GetMousePosPixel(), aScreenRect, sTxt);
+ else
+ Help::ShowQuickHelp(this, aScreenRect, sTxt);
+ }
+ }
+
+ if( bWeiter )
+ Window::RequestHelp( rEvt );
+}
+
+void SwEditWin::Paint(const Rectangle& rRect)
+{
+#if defined(MYDEBUG)
+ // StartUp-Statistik
+ if ( pTickList )
+ {
+ SYSTICK( "Start SwEditWin::Paint" );
+ READ_FIRST_TICKS()
+ FLUSH_TICKS()
+ }
+#endif
+
+ SwWrtShell* pWrtShell = GetView().GetWrtShellPtr();
+ if(!pWrtShell)
+ return;
+ BOOL bPaintShadowCrsr = FALSE;
+ if( pShadCrsr )
+ {
+ Rectangle aRect( pShadCrsr->GetRect());
+ // liegt vollstaendig drin?
+ if( rRect.IsInside( aRect ) )
+ // dann aufheben
+ delete pShadCrsr, pShadCrsr = 0;
+ else if( rRect.IsOver( aRect ))
+ {
+ // liegt irgendwie drueber, dann ist alles ausserhalb geclippt
+ // und wir muessen den "inneren Teil" am Ende vom Paint
+ // wieder sichtbar machen. Sonst kommt es zu Paintfehlern!
+ bPaintShadowCrsr = TRUE;
+ }
+ }
+
+ SwDocShell* pDocShell = GetView().GetDocShell();
+ SvInPlaceEnvironment *pIpEnv = pDocShell ?
+ pDocShell->GetIPEnv() : 0;
+ if ( pIpEnv && pIpEnv->GetRectsChangedLockCount() )
+ //Wir stehen in Groessenverhandlungen (MM), Paint verzoegern
+ Invalidate( rRect );
+ else if ( GetView().GetVisArea().GetWidth() <= 0 ||
+ GetView().GetVisArea().GetHeight() <= 0 )
+ Invalidate( rRect );
+ else
+ pWrtShell->Paint( rRect );
+
+ if( bPaintShadowCrsr )
+ pShadCrsr->Paint();
+}
+
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.77 2000/09/18 16:05:23 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.76 2000/08/31 11:38:26 jp
+ RequestHelp: get the correct string for the TableValue
+
+ Revision 1.75 2000/08/15 18:58:30 jp
+ Task #77160#: use URIHelper class instead of GetUrlNoPass
+
+ Revision 1.74 2000/04/18 15:18:17 os
+ UNICODE
+
+ Revision 1.73 2000/03/03 15:16:59 os
+ StarView remainders removed
+
+ Revision 1.72 2000/02/11 14:44:54 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.71 1999/07/22 07:05:40 OS
+ #67715# QuickHelp for RefMarks
+
+
+ Rev 1.70 22 Jul 1999 09:05:40 OS
+ #67715# QuickHelp for RefMarks
+
+ Rev 1.69 14 Jun 1999 13:28:24 JP
+ Task #66520#: show TOX-TypeName and TOX-Entry by RequestHelp
+
+ Rev 1.68 02 Jun 1999 11:04:42 JP
+ Task #66520#: Verzeichniseintraege ohne Bereich per TipHilfe anzeigen
+
+ Rev 1.67 29 Jan 1999 11:48:08 MH
+ add: header
+
+ Rev 1.66 09 Oct 1998 17:01:28 JP
+ Bug #57741#: neue ResourceIds
+
+ Rev 1.65 17 Jul 1998 15:23:52 OM
+ #53182# TipHilfe fuer Macrofelder
+
+ Rev 1.64 09 Jun 1998 15:31:26 OM
+ VC-Controls entfernt
+
+ Rev 1.63 02 Apr 1998 11:38:54 OS
+ SET_CURR_SHELL im RequestHelp
+
+ Rev 1.62 25 Mar 1998 18:44:34 JP
+ Bug #48368#: RequestHelp - falls Felder keine TipHilfe haben, dann frage mal nach Redlines
+
+ Rev 1.61 13 Mar 1998 14:09:36 OM
+ #48150# BubbleHelp fuer Eingabefeld
+
+ Rev 1.60 04 Feb 1998 19:47:42 JP
+ neu: SetRedlineComment - Kommentar am RedlineObject setzen
+
+ Rev 1.59 23 Jan 1998 14:53:02 JP
+ neu: Quick/Tip-Hilfe fuer Fuss-/Endnoten
+
+ Rev 1.58 15 Jan 1998 13:16:14 JP
+ neu: TipHilfe fuer Redlines
+
+ Rev 1.57 07 Jan 1998 13:37:36 OS
+ Hosentraeger und Guertel: im Paint Existenz der wrtsh an der view testen #46436#
+
+ Rev 1.56 28 Nov 1997 18:43:00 MA
+ includes
+
+ Rev 1.55 25 Nov 1997 10:33:02 MA
+ includes
+
+ Rev 1.54 11 Nov 1997 14:04:06 MA
+ precomp entfernt
+
+ Rev 1.53 06 Nov 1997 20:45:48 JP
+ RequestHelp: fuer !PRODUCT bei Balloon die akt. Attributierung anzeigen
+
+ Rev 1.52 03 Nov 1997 16:13:46 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.51 24 Oct 1997 18:37:02 JP
+ neu: ShadowCursor
+
+ Rev 1.50 02 Oct 1997 15:22:32 OM
+ Feldumstellung
+
+ Rev 1.49 15 Sep 1997 09:58:48 OM
+ Auf vorhandene SdrView pruefen
+
+ Rev 1.48 12 Sep 1997 17:19:00 OM
+ Quickhelp fuer Drawtext-Objekte
+
+ Rev 1.47 11 Aug 1997 15:54:08 OM
+ #42625# Kein Passwort in Tip-Hilfe anzeigen
+
+ Rev 1.46 11 Aug 1997 12:20:24 MH
+ chg: header, ::Paint nach edtwin2.cxx verschoben
+
+ Rev 1.45 07 Aug 1997 15:00:16 OM
+ Headerfile-Umstellung
+
+ Rev 1.44 05 Aug 1997 12:27:56 MH
+ chg: header
+
+ Rev 1.43 03 Jul 1997 13:09:32 OV
+ #41226# VCMouseButtonDown: bVCAction=FALSE, wenn kein VCControl getroffen
+
+ Rev 1.42 02 May 1997 19:54:28 NF
+ includes...
+
+ Rev 1.41 11 Apr 1997 11:25:48 MA
+ includes
+
+ Rev 1.40 03 Apr 1997 17:22:28 TRI
+ includes
+
+ Rev 1.39 15 Feb 1997 14:54:54 JP
+ TipHilfe: TabellenFormel/-Value anzeigen
+
+ Rev 1.38 08 Nov 1996 11:40:22 HJS
+ include w.g. positivdefine
+
+ Rev 1.37 07 Nov 1996 14:32:58 MA
+ immer Balloon fuer Notizen
+
+ Rev 1.36 05 Nov 1996 15:34:42 JP
+ GotoRefMark: Parameter erweitert fuer erweiterte RefMarks
+
+ Rev 1.35 22 Oct 1996 14:03:08 JP
+ RequestHelp: RefFelder umgestellt auf neu SS
+
+ Rev 1.34 25 Sep 1996 14:11:00 OM
+ Neue Datenbanktrenner
+
+ Rev 1.33 02 Sep 1996 18:42:36 JP
+ INetFeld entfernt
+
+ Rev 1.32 28 Aug 1996 11:31:22 OS
+ PCH-Header korrigiert
+
+ Rev 1.31 28 Aug 1996 11:25:48 OS
+ includes
+
+ Rev 1.30 26 Aug 1996 12:35:16 OS
+ wieder mit PCH
+
+ Rev 1.29 14 Aug 1996 15:23:10 JP
+ svdraw.hxx entfernt
+
+ Rev 1.28 08 Aug 1996 10:03:16 JP
+ GetFldAtPos ersetzt durch GetCntntAtPos
+
+ Rev 1.27 07 Aug 1996 14:59:12 JP
+ Umstellung fuer Upd. 330
+
+ Rev 1.26 01 Jul 1996 15:27:56 HJS
+ define raus
+
+ Rev 1.25 13 Jun 1996 14:44:02 MA
+ splitt sihxx
+
+ Rev 1.24 24 May 1996 16:49:28 OM
+ QuickHelp von ExpressionFields wandeln
+
+ Rev 1.23 06 May 1996 09:26:10 OS
+ kein PCH wg. positiv-define
+
+ Rev 1.22 30 Apr 1996 17:51:14 HJS
+ docfilt darf nicht ausdefined sein
+
+ Rev 1.21 22 Mar 1996 15:16:50 HJS
+ umstellung 311
+
+**********************************************************************/
+
diff --git a/sw/source/ui/docvw/edtwin3.cxx b/sw/source/ui/docvw/edtwin3.cxx
new file mode 100644
index 000000000000..ea707b814824
--- /dev/null
+++ b/sw/source/ui/docvw/edtwin3.cxx
@@ -0,0 +1,346 @@
+/*************************************************************************
+ *
+ * $RCSfile: edtwin3.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_SETTINGS_HXX
+#include <vcl/settings.hxx>
+#endif
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+
+#ifndef _VIEWOPT_HXX //autogen
+#include <viewopt.hxx>
+#endif
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "basesh.hxx"
+#include "pview.hxx"
+#include "mdiexp.hxx"
+#include "edtwin.hxx"
+#include "swmodule.hxx"
+#include "modcfg.hxx"
+#include "swtable.hxx"
+#include "docsh.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Core-Notify
+ --------------------------------------------------------------------*/
+
+
+
+void ScrollMDI( ViewShell* pVwSh, const SwRect &rRect,
+ USHORT nRangeX, USHORT nRangeY)
+{
+ SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell();
+ if (pSfxVwSh && pSfxVwSh->ISA(SwView))
+ ((SwView *)pSfxVwSh)->Scroll( rRect.SVRect(), nRangeX, nRangeY );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Docmdi - verschiebbar
+ --------------------------------------------------------------------*/
+
+
+
+BOOL IsScrollMDI( ViewShell* pVwSh, const SwRect &rRect )
+{
+ SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell();
+ if (pSfxVwSh && pSfxVwSh->ISA(SwView))
+ return (((SwView *)pSfxVwSh)->IsScroll(rRect.SVRect()));
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Notify fuer Groessen-Aenderung
+ --------------------------------------------------------------------*/
+
+
+
+void SizeNotify(ViewShell* pVwSh, const Size &rSize)
+{
+ SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell();
+ if (pSfxVwSh)
+ {
+ if (pSfxVwSh->ISA(SwView))
+ ((SwView *)pSfxVwSh)->DocSzChgd(rSize);
+ else if (pSfxVwSh->ISA(SwPagePreView))
+ ((SwPagePreView *)pSfxVwSh)->DocSzChgd( rSize );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Notify fuer Seitenzahl-Update
+ --------------------------------------------------------------------*/
+
+
+
+void PageNumNotify( ViewShell* pVwSh, USHORT nPhyNum, USHORT nVirtNum,
+ const String& rPgStr)
+{
+ SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell();
+ if ( pSfxVwSh && pSfxVwSh->ISA(SwView) &&
+ ((SwView*)pSfxVwSh)->GetCurShell() )
+ ((SwView *)pSfxVwSh)->UpdatePageNums(nPhyNum, nVirtNum, rPgStr);
+}
+
+/******************************************************************************
+ * Methode : void FrameNotify( DocMDIBase *pWin, FlyMode eMode )
+ * Beschreibung:
+ * Erstellt : OK 08.02.94 13:49
+ * Aenderung :
+ ******************************************************************************/
+
+
+
+void FrameNotify( ViewShell* pVwSh, FlyMode eMode )
+{
+ if ( pVwSh->ISA(SwCrsrShell) )
+ SwBaseShell::SetFrmMode( eMode, (SwWrtShell*)pVwSh );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Notify fuer Seitenzahl-Update
+ --------------------------------------------------------------------*/
+
+
+
+BOOL SwEditWin::RulerClook( SwView& rView , const MouseEvent& rMEvt)
+{
+ return (!rView.GetHLineal()->StartDocDrag( rMEvt, RULER_TYPE_BORDER ) &&
+ !rView.GetHLineal()->StartDocDrag( rMEvt, RULER_TYPE_MARGIN1) &&
+ !rView.GetHLineal()->StartDocDrag( rMEvt, RULER_TYPE_MARGIN2));
+}
+
+
+
+Dialog* GetSearchDialog()
+{
+ return SwView::GetSearchDialog();
+}
+
+
+
+void JavaScriptScrollMDI( SfxFrame* pFrame, INT32 nX, INT32 nY )
+{
+ SfxViewShell *pSfxVwSh = pFrame->GetCurrentViewFrame()->GetViewShell();
+ if( pSfxVwSh && pSfxVwSh->ISA( SwView ))
+ {
+ SwView* pView = (SwView *)pSfxVwSh;
+
+ Size aSz( nX, nY );
+ aSz = pView->GetEditWin().PixelToLogic( aSz );
+
+ Point aTopLeft( aSz.Width(), aSz.Height() );
+ if( aTopLeft.X() < DOCUMENTBORDER ) aTopLeft.X() = DOCUMENTBORDER;
+ if( aTopLeft.Y() < DOCUMENTBORDER ) aTopLeft.Y() = DOCUMENTBORDER;
+
+ const Size& rVisSize = pView->GetVisArea().GetSize();
+ Size aDocSize( pView->GetDocSz() );
+ aDocSize.Width() += DOCUMENTBORDER;
+ aDocSize.Height() += DOCUMENTBORDER;
+
+ if( aTopLeft.X() + rVisSize.Width() > aDocSize.Width() )
+ aTopLeft.X() = rVisSize.Width() > aDocSize.Width()
+ ? DOCUMENTBORDER
+ : aDocSize.Width() - rVisSize.Width();
+
+ if( aTopLeft.Y() + rVisSize.Height() > aDocSize.Height() )
+ aTopLeft.Y() = rVisSize.Height() > aDocSize.Height()
+ ? DOCUMENTBORDER
+ : aDocSize.Height() - rVisSize.Height();
+
+ pView->SetVisArea( aTopLeft );
+ }
+}
+
+
+
+USHORT GetTblChgDefaultMode()
+{
+ SwModuleOptions* pOpt = SW_MOD()->GetModuleConfig();
+ return pOpt ? pOpt->GetTblMode() : TBLVAR_CHGABS;
+}
+
+
+
+void RepaintPagePreview( ViewShell* pVwSh, const SwRect& rRect )
+{
+ SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell();
+ if (pSfxVwSh && pSfxVwSh->ISA( SwPagePreView ))
+ ((SwPagePreView *)pSfxVwSh)->RepaintCoreRect( rRect );
+}
+
+BOOL JumpToSwMark( ViewShell* pVwSh, const String& rMark )
+{
+ SfxViewShell *pSfxVwSh = pVwSh->GetSfxViewShell();
+ if( pSfxVwSh && pSfxVwSh->ISA( SwView ) )
+ return ((SwView *)pSfxVwSh)->JumpToSwMark( rMark );
+ return FALSE;
+}
+
+void SwEditWin::DataChanged( const DataChangedEvent &rEvt )
+{
+ SwWrtShell &rSh = GetView().GetWrtShell();
+ rSh.LockView( TRUE );
+ rSh.LockPaint();
+ GetView().InvalidateBorder(); //Scrollbarbreiten
+ GetView().GetDocShell()->UpdateFontList(); //z.B. Druckerwechsel
+ rSh.LockView( FALSE );
+ rSh.UnlockPaint();
+}
+
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.26 2000/09/18 16:05:24 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.25 1999/03/10 11:00:28 MA
+ #52642# Fontwechsel im DataChanged
+
+
+ Rev 1.24 10 Mar 1999 12:00:28 MA
+ #52642# Fontwechsel im DataChanged
+
+ Rev 1.23 24 Jun 1998 18:43:10 MA
+ DataChanged fuer ScrollBar und Retouche, Retouche ganz umgestellt
+
+ Rev 1.22 21 Apr 1998 15:25:14 JP
+ Bug #49438#: JavaScriptScrollMDI - Grenzen beachten, absolut positionieren
+
+ Rev 1.21 25 Nov 1997 10:33:04 MA
+ includes
+
+ Rev 1.20 03 Nov 1997 13:14:06 MA
+ precomp entfernt
+
+ Rev 1.19 17 Sep 1997 12:34:22 JP
+ neu: JumpToSwMark - springe eine Marke an
+
+ Rev 1.18 01 Sep 1997 13:15:38 OS
+ DLL-Umstellung
+
+ Rev 1.17 17 Jun 1997 15:47:06 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.16 06 Jun 1997 11:08:40 OS
+ Seitennummer mit richtigem NumType anzeigen
+
+ Rev 1.15 11 Mar 1997 15:56:10 MA
+ fix: FrameNotify, SubShell vorhanden?
+
+ Rev 1.14 09 Feb 1997 20:58:10 JP
+ Bug #35760#: beim Core-Repaint die Bereiche der PagePreView mitteilen
+
+ Rev 1.13 15 Jan 1997 15:04:42 JP
+ default des TablenChgMode aus dem ConfigItem holen
+
+ Rev 1.12 25 Nov 1996 11:22:06 JP
+ neu: JavaScriptScrollMDI
+
+ Rev 1.11 28 Aug 1996 11:25:48 OS
+ includes
+
+ Rev 1.10 14 Dec 1995 17:32:16 OS
+ Search wieder an der view
+
+ Rev 1.9 30 Nov 1995 16:14:00 OS
+ SearchDialog kommt von der App
+
+ Rev 1.8 30 Nov 1995 13:25:32 MA
+ del: IsWinForPagePreview() entfernt
+
+ Rev 1.7 24 Nov 1995 16:58:36 OM
+ PCH->PRECOMPILED
+
+ Rev 1.6 30 Oct 1995 18:42:04 OM
+ GetData und GetViewWin entfernt
+
+ Rev 1.5 25 Sep 1995 21:55:56 JP
+ PageNumNotify kann auch kommen, wenn noch keine Shell gesetzt ist (Bug19864)
+
+ Rev 1.4 11 Sep 1995 11:04:20 JP
+ neu: GetSearchDialog - CrsrShell braucht den Pointer fuer die QueryBox
+
+ Rev 1.3 17 Aug 1995 08:38:52 OS
+ +RulerClook
+
+ Rev 1.2 14 Jul 1995 19:19:30 ER
+ segprag
+
+ Rev 1.1 11 Jun 1995 18:57:36 JP
+ neu: IsWinForPagePreview - Window von der SeitenAnsicht?
+
+ Rev 1.0 28 Mar 1995 09:51:24 SWG
+ Initial revision.
+
+**********************************************************************/
+
+
+
diff --git a/sw/source/ui/docvw/makefile.mk b/sw/source/ui/docvw/makefile.mk
new file mode 100644
index 000000000000..540457086655
--- /dev/null
+++ b/sw/source/ui/docvw/makefile.mk
@@ -0,0 +1,104 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=docvw
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ edtdd.cxx \
+ edtwin.cxx \
+ edtwin2.cxx \
+ edtwin3.cxx \
+ romenu.cxx \
+ srcedtw.cxx
+
+SRCFILES = \
+ docvw.src
+
+SLOFILES = \
+ $(SLO)$/edtdd.obj \
+ $(SLO)$/edtwin.obj \
+ $(SLO)$/edtwin2.obj \
+ $(SLO)$/edtwin3.obj \
+ $(SLO)$/romenu.obj \
+ $(SLO)$/srcedtw.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx
new file mode 100644
index 000000000000..48f462772af7
--- /dev/null
+++ b/sw/source/ui/docvw/romenu.cxx
@@ -0,0 +1,820 @@
+/*************************************************************************
+ *
+ * $RCSfile: romenu.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <hintids.hxx>
+
+
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include "sfx2/iodlg.hxx"
+#endif
+
+#ifndef _SOT_FORMATS_HXX
+#include <sot/formats.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _XOUTBMP_HXX //autogen
+#include <svx/xoutbmp.hxx>
+#endif
+#ifndef _SVX_IMPGRF_HXX //autogen
+#include <svx/impgrf.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _GALLERY_HXX_ //autogen
+#include <svx/gallery.hxx>
+#endif
+#ifndef _FILTER_HXX //autogen
+#include <svtools/filter.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _CLIP_HXX //autogen
+#include <vcl/clip.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX //autogen
+#include <sfx2/inimgr.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX //autogen
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _IMAP_HXX //autogen
+#include <svtools/imap.hxx>
+#endif
+#ifndef _INETIMG_HXX //autogen
+#include <svtools/inetimg.hxx>
+#endif
+
+
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _ROMENU_HXX
+#include <romenu.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _DOCVW_HRC
+#include <docvw.hrc>
+#endif
+#ifndef _DOCVW_HRC
+#include <docvw.hrc>
+#endif
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+
+SwReadOnlyPopup::~SwReadOnlyPopup()
+{
+ String *pDel = (String*)aThemeList.First();
+ while ( pDel )
+ {
+ delete pDel;
+ pDel = (String*)aThemeList.Next();
+ }
+ delete pImageMap;
+ delete pTargetURL;
+}
+
+
+
+void SwReadOnlyPopup::Check( USHORT nMID, USHORT nSID, SfxDispatcher &rDis )
+{
+ SfxPoolItem *pItem = 0;
+ SfxItemState eState = rDis.GetBindings()->QueryState( nSID, pItem );
+ if (eState >= SFX_ITEM_AVAILABLE)
+ {
+ EnableItem( nMID, TRUE );
+ if (pItem)
+ {
+ CheckItem ( nMID, !pItem->ISA(SfxVoidItem) &&
+ pItem->ISA(SfxBoolItem) &&
+ ((SfxBoolItem*)pItem)->GetValue());
+ }
+ }
+ else
+ EnableItem( nMID, FALSE );
+
+ delete pItem;
+}
+
+
+SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) :
+ PopupMenu( SW_RES(MN_READONLY_POPUP) ),
+ rDocPos( rDPos ),
+ rView ( rV ),
+ pImageMap( 0 ),
+ pTargetURL( 0 )
+{
+ bGrfToGalleryAsLnk = SW_MOD()->GetModuleConfig()->IsGrfToGalleryAsLnk();
+ SwWrtShell &rSh = rView.GetWrtShell();
+ rSh.IsURLGrfAtPos( rDocPos, &sURL, &sTargetFrameName, &sDescription );
+ if ( !sURL.Len() )
+ {
+ SwContentAtPos aCntntAtPos( SwContentAtPos::SW_INETATTR );
+ if( rSh.GetContentAtPos( rDocPos, aCntntAtPos, FALSE))
+ {
+ SwFmtINetFmt &rIItem = *(SwFmtINetFmt*)aCntntAtPos.aFnd.pAttr;
+ sURL = rIItem.GetValue();
+ sTargetFrameName = rIItem.GetTargetFrame();
+ sDescription = aCntntAtPos.sStr;
+ }
+ }
+
+ BOOL bLink = FALSE;
+ const Graphic *pGrf;
+ if ( 0 == (pGrf = rSh.GetGrfAtPos( rDocPos, sGrfName, bLink )) )
+ {
+ EnableItem( MN_READONLY_SAVEGRAPHIC, FALSE );
+ EnableItem( MN_READONLY_COPYGRAPHIC, FALSE );
+ }
+ else
+ {
+ aGraphic = *pGrf;
+ const SwFrmFmt* pGrfFmt = rSh.GetFmtFromObj( rDocPos );
+ const SfxPoolItem* pItem;
+ if( pGrfFmt && SFX_ITEM_SET == pGrfFmt->GetItemState(
+ RES_URL, TRUE, &pItem ))
+ {
+ const SwFmtURL& rURL = *(SwFmtURL*)pItem;
+ if( rURL.GetMap() )
+ pImageMap = new ImageMap( *rURL.GetMap() );
+ else if( rURL.GetURL().Len() )
+ pTargetURL = new INetImage( bLink ? sGrfName : aEmptyStr,
+ rURL.GetURL(),
+ rURL.GetTargetFrameName(),
+ aEmptyStr, Size() );
+ }
+ }
+
+ BOOL bEnableGraphicToGallery;
+ if ( TRUE == (bEnableGraphicToGallery = bLink) )
+ {
+ GalleryExplorer::FillThemeList( aThemeList );
+ if ( aThemeList.Count() )
+ {
+ PopupMenu *pMenu = GetPopupMenu(MN_READONLY_GRAPHICTOGALLERY);
+ pMenu->CheckItem( MN_READONLY_TOGALLERYLINK, bGrfToGalleryAsLnk );
+ pMenu->CheckItem( MN_READONLY_TOGALLERYCOPY, !bGrfToGalleryAsLnk );
+ for ( USHORT i=0; i < aThemeList.Count(); ++i )
+ pMenu->InsertItem( MN_READONLY_GRAPHICTOGALLERY+i + 3,
+ *(String*)aThemeList.GetObject( i ) );
+ }
+ else
+ bEnableGraphicToGallery = FALSE;
+ }
+ EnableItem( MN_READONLY_GRAPHICTOGALLERY, bEnableGraphicToGallery );
+
+ SfxViewFrame * pVFrame = rV.GetViewFrame();
+ SfxDispatcher &rDis = *pVFrame->GetDispatcher();
+ const SfxPoolItem *pTmp;
+ EnableItem( MN_READONLY_CREATEGRAPHIKLINK, bLink &&
+ SFX_ITEM_AVAILABLE == rDis.QueryState( SID_CREATELINK, pTmp ));
+
+ const SwPageDesc &rDesc = rSh.GetPageDesc( rSh.GetCurPageDesc() );
+ pItem = &rDesc.GetMaster().GetBackground();
+ BOOL bEnableBackGallery = FALSE,
+ bEnableBack = FALSE;
+
+ if ( GPOS_NONE != pItem->GetGraphicPos() )
+ {
+ bEnableBack = TRUE;
+ if ( pItem->GetGraphicLink() )
+ {
+ if ( !aThemeList.Count() )
+ GalleryExplorer::FillThemeList( aThemeList );
+ if ( aThemeList.Count() )
+ {
+ PopupMenu *pMenu = GetPopupMenu(MN_READONLY_BACKGROUNDTOGALLERY);
+ pMenu->CheckItem( MN_READONLY_TOGALLERYLINK, bGrfToGalleryAsLnk );
+ pMenu->CheckItem( MN_READONLY_TOGALLERYCOPY, !bGrfToGalleryAsLnk );
+ bEnableBackGallery = TRUE;
+ for ( USHORT i=0; i < aThemeList.Count(); ++i )
+ pMenu->InsertItem( MN_READONLY_BACKGROUNDTOGALLERY+i + 3,
+ *(String*)aThemeList.GetObject( i ) );
+ }
+ }
+ }
+ EnableItem( MN_READONLY_SAVEBACKGROUND, bEnableBack );
+ EnableItem( MN_READONLY_BACKGROUNDTOGALLERY, bEnableBackGallery );
+
+ if ( !rSh.GetViewOptions()->IsGraphic() )
+ CheckItem( MN_READONLY_GRAPHICOFF );
+ else
+ EnableItem( MN_READONLY_LOADGRAPHIC, FALSE );
+
+ BOOL bReloadFrame = 0 != rSh.GetView().GetViewFrame()->GetFrame()->GetParentFrame();
+ EnableItem( MN_READONLY_RELOAD_FRAME,
+ bReloadFrame );
+ EnableItem( MN_READONLY_RELOAD, !bReloadFrame);
+
+ Check( MN_READONLY_EDITDOC, SID_EDITDOC, rDis );
+ Check( MN_READONLY_SOURCEVIEW, SID_SOURCEVIEW, rDis );
+ Check( MN_READONLY_BROWSE_STOP, SID_BROWSE_STOP, rDis );
+ Check( MN_READONLY_BROWSE_BACKWARD, SID_BROWSE_BACKWARD,rDis );
+ Check( MN_READONLY_BROWSE_FORWARD, SID_BROWSE_FORWARD, rDis );
+ Check( MN_READONLY_CREATELINK, SID_CREATELINK, rDis );
+#ifdef WNT
+ Check( MN_READONLY_PLUGINOFF, SID_PLUGINS_ACTIVE, rDis );
+#endif
+ Check( MN_READONLY_OPENURL, SID_OPENDOC, rDis );
+ Check( MN_READONLY_OPENURLNEW, SID_OPENDOC, rDis );
+
+ SfxPoolItem* pState;
+ SfxItemState eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState );
+ if(eState < SFX_ITEM_DEFAULT ||
+ rSh.IsGlobalDoc() && rView.GetDocShell()->IsReadOnlyUI())
+ EnableItem( MN_READONLY_EDITDOC, FALSE );
+
+ if ( !sURL.Len() )
+ {
+ EnableItem( MN_READONLY_OPENURL, FALSE );
+ EnableItem( MN_READONLY_OPENURLNEW, FALSE );
+ EnableItem( MN_READONLY_CREATELINK, FALSE );
+ EnableItem( MN_READONLY_DOWNLOAD, FALSE );
+ EnableItem( MN_READONLY_COPYLINK, FALSE );
+ }
+
+ RemoveDisabledEntries( TRUE, TRUE );
+
+#if 0
+ //Jetzt noch das unnuetze Geraffel entfernen.
+ MenuItemType eLast = MENUITEM_DONTKNOW;
+ for ( int i = 0; i < GetItemCount(); ++i )
+ {
+ if ( MENUITEM_SEPARATOR == GetItemType( i ) )
+ {
+ if ( i == 0 || eLast == MENUITEM_SEPARATOR )
+ RemoveItem( i-- );
+ }
+ else if ( !IsItemEnabled( GetItemId( i ) ) )
+ RemoveItem( i-- );
+ eLast = i >= 0 ? GetItemType(i) : MENUITEM_DONTKNOW;
+ }
+#endif
+}
+
+struct _CastINetImage : INetImage
+{
+ void Copy()
+ {
+ String sData( CopyExchange() );
+ if( sData.Len() )
+ Clipboard::CopyData( sData.GetBuffer(), sData.Len() / 2,
+ SOT_FORMATSTR_ID_INET_IMAGE );
+ }
+};
+
+void SwReadOnlyPopup::Execute( Window* pWin, const Point &rPixPos )
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SfxDispatcher &rDis = *rView.GetViewFrame()->GetDispatcher();
+ USHORT nId = PopupMenu::Execute(
+ pWin,
+ rPixPos );
+
+ if ( nId >= MN_READONLY_GRAPHICTOGALLERY )
+ {
+ String sTmp;
+ USHORT nSaveId;
+ if ( nId >= MN_READONLY_BACKGROUNDTOGALLERY )
+ {
+ nId -= MN_READONLY_BACKGROUNDTOGALLERY+3;
+ nSaveId = MN_READONLY_SAVEBACKGROUND;
+ sTmp = *pItem->GetGraphicLink();
+ }
+ else
+ {
+ nId -= MN_READONLY_GRAPHICTOGALLERY+3;
+ nSaveId = MN_READONLY_SAVEGRAPHIC;
+ sTmp = sGrfName;
+ }
+ if ( !bGrfToGalleryAsLnk )
+ sTmp = SaveGraphic( nSaveId );
+
+ if ( sTmp.Len() )
+ {
+ String sThemeName( *(String*)aThemeList.GetObject( nId ));
+ GalleryExplorer::InsertURL( sThemeName, sTmp );
+ }
+ return;
+ }
+
+ USHORT nExecId = USHRT_MAX;
+ USHORT nFilter = USHRT_MAX;
+ switch( nId )
+ {
+ case MN_READONLY_OPENURL: nFilter = URLLOAD_NOFILTER; break;
+ case MN_READONLY_OPENURLNEW: nFilter = URLLOAD_NEWVIEW; break;
+ case MN_READONLY_EDITDOC: nExecId = SID_EDITDOC; break;
+ case MN_READONLY_RELOAD:
+ case MN_READONLY_RELOAD_FRAME:
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute(SID_RELOAD);
+ break;
+
+ case MN_READONLY_BROWSE_STOP: nExecId = SID_BROWSE_STOP; break;
+ case MN_READONLY_BROWSE_BACKWARD: nExecId = SID_BROWSE_BACKWARD;break;
+ case MN_READONLY_BROWSE_FORWARD: nExecId = SID_BROWSE_FORWARD; break;
+ case MN_READONLY_SOURCEVIEW: nExecId = SID_SOURCEVIEW; break;
+ case MN_READONLY_CREATELINK:
+ {
+ SfxStringItem aName( SID_BOOKMARK_TITLE, sDescription );
+ SfxStringItem aURL( SID_BOOKMARK_URL, sURL );
+ rDis.Execute( SID_CREATELINK, SFX_CALLMODE_ASYNCHRON,
+ &aName, &aURL, 0L);
+ }
+ break;
+ case MN_READONLY_CREATEGRAPHIKLINK:
+ {
+ SfxStringItem aURL ( SID_BOOKMARK_URL, sGrfName );
+ INetURLObject aTmp;
+ aTmp.SetSmartURL( sGrfName );
+ SfxStringItem aName( SID_BOOKMARK_TITLE, aTmp.GetName() );
+ rDis.Execute( SID_CREATELINK, SFX_CALLMODE_ASYNCHRON,
+ &aName, &aURL, 0L);
+ }
+ case MN_READONLY_DOWNLOAD: nFilter =
+ URLLOAD_NEWVIEW |
+ URLLOAD_DOWNLOADFILTER; break;
+ case MN_READONLY_SAVEGRAPHIC:
+ case MN_READONLY_SAVEBACKGROUND:
+ {
+ SaveGraphic( nId );
+ break;
+ }
+ case MN_READONLY_COPYLINK:
+ Clipboard::Clear();
+ Clipboard::CopyString( sURL );
+ break;
+
+ case MN_READONLY_COPYGRAPHIC:
+ Clipboard::Clear();
+ aGraphic.Copy();
+ if( pImageMap ) pImageMap->Copy();
+ if( pTargetURL ) ((_CastINetImage*)pTargetURL)->Copy();
+ break;
+
+ case MN_READONLY_LOADGRAPHIC:
+ {
+ BOOL bModified = rSh.IsModified();
+ SwViewOption aOpt( *rSh.GetViewOptions() );
+ aOpt.SetGraphic( TRUE );
+ rSh.ApplyViewOptions( aOpt );
+ if(!bModified)
+ rSh.ResetModified();
+ break;
+ }
+ case MN_READONLY_GRAPHICOFF: nExecId = FN_VIEW_GRAPHIC; break;
+#ifdef WNT
+ case MN_READONLY_PLUGINOFF: nExecId = SID_PLUGINS_ACTIVE; break;
+#endif
+ case MN_READONLY_TOGALLERYLINK:
+ SW_MOD()->GetModuleConfig()->SetGrfToGalleryAsLnk( TRUE );
+ break;
+ case MN_READONLY_TOGALLERYCOPY:
+ SW_MOD()->GetModuleConfig()->SetGrfToGalleryAsLnk( FALSE );
+ break;
+
+ default: /* do nothing */;
+ }
+ if ( nExecId != USHRT_MAX )
+ rDis.GetBindings()->Execute( nExecId );
+ if ( nFilter != USHRT_MAX )
+ ::LoadURL( sURL, &rSh, nFilter, &sTargetFrameName);
+}
+ //nicht const, weil GetLink() noch
+ //nicht const. kann bei naechster
+ //Aenderung dieses Files mit
+ //erledigt werden.
+void lcl_GetPreferedExtension( String &rExt, /*const*/ Graphic &rGrf )
+{
+ // dann ggfs. ueber die native-Info der Grafik den "besten"
+ // Filter vorschlagen
+ switch( rGrf.GetLink().GetType() )
+ {
+ case GFX_LINK_TYPE_NATIVE_GIF: rExt = C2S("gif"); break;
+ case GFX_LINK_TYPE_NATIVE_TIF: rExt = C2S("tif"); break;
+ case GFX_LINK_TYPE_NATIVE_WMF: rExt = C2S("wmf"); break;
+ case GFX_LINK_TYPE_NATIVE_MET: rExt = C2S("met"); break;
+ case GFX_LINK_TYPE_NATIVE_PCT: rExt = C2S("pct"); break;
+ case GFX_LINK_TYPE_NATIVE_JPG: rExt = C2S("jpg"); break;
+
+ // case GFX_LINK_TYPE_NATIVE_PNG:
+ default: rExt = C2S("png"); break;
+ }
+}
+
+
+String SwReadOnlyPopup::SaveGraphic( USHORT nId )
+{
+ static String sGrfPath;
+ if(!sGrfPath.Len())
+ sGrfPath = SFX_INIMANAGER()->Get(SFX_KEY_GRAPHICS_PATH);
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SfxFileDialog aExpDlg( NULL, WinBits(WB_SAVEAS|WB_3DLOOK) );
+ aExpDlg.DisableSaveLastDirectory();
+ aExpDlg.SetHelpId(HID_FILEDLG_ROMENU);
+ INetURLObject aPath;
+ aPath.SetSmartURL( sGrfPath);
+
+ //Namen der Grafik herausfischen.
+ String aName;
+ if ( MN_READONLY_SAVEBACKGROUND == nId )
+ {
+ if ( pItem->GetGraphicLink() )
+ aName = *pItem->GetGraphicLink();
+ ((SvxBrushItem*)pItem)->SetDoneLink( Link() );
+ const Graphic *pGrf = pItem->GetGraphic( rView.GetDocShell() );
+ if ( pGrf )
+ {
+ aGraphic = *pGrf;
+ if ( pItem->GetGraphicLink() )
+ sGrfName = *pItem->GetGraphicLink();
+ }
+ else
+ return aEmptyStr;
+ }
+ else
+ aName = sGrfName;
+ INetURLObject aURL;
+ aURL.SetSmartURL( aName );
+ aPath.Append( aURL.GetName() );
+ aExpDlg.SetPath( aPath.GetMainURL() );
+ aExpDlg.SetText( SW_RESSTR(STR_EXPORT_GRAFIK_TITLE));
+
+ GraphicFilter& rGF = *GetGrfFilter();
+ const USHORT nCount = rGF.GetExportFormatCount();
+
+ String aExt( aURL.GetExtension() );
+ if( !aExt.Len() )
+ lcl_GetPreferedExtension( aExt, aGraphic );
+
+ aExpDlg.SetDefaultExt( aExt );
+ aExt.ToLowerAscii();
+ int nDfltFilter = INT_MAX;
+
+ for ( int i = 0; i < nCount; i++ )
+ {
+ aExpDlg.AddFilter( rGF.GetExportFormatName( i ),
+ rGF.GetExportWildcard( i ),
+ rGF.GetExportOSFileType( i ) );
+ if ( COMPARE_EQUAL == aExt.CompareIgnoreCaseToAscii(rGF.GetExportFormatType( i ).ToLowerAscii() ))
+ nDfltFilter = i;
+ }
+ if ( INT_MAX == nDfltFilter )
+ {
+ //"falsche" Extension?
+ lcl_GetPreferedExtension( aExt, aGraphic );
+ for ( int i = 0; i < nCount; ++i )
+ if ( aExt == rGF.GetExportFormatType( i ).ToLowerAscii() )
+ {
+ nDfltFilter = i;
+ break;
+ }
+ }
+
+ if( INT_MAX != nDfltFilter )
+ {
+ aExpDlg.SetCurFilter( rGF.GetExportFormatName( nDfltFilter ) );
+
+ if( RET_OK == aExpDlg.Execute() )
+ {
+ String sPath( aExpDlg.GetPath() );
+ //verwendeten Pfad merken - bitte nicht wieder wegoptimieren!
+ aPath.SetSmartURL( sPath);
+ sGrfPath = aPath.GetPath();
+
+ if( sGrfName.Len() &&
+ nDfltFilter == rGF.GetExportFormatNumber( aExpDlg.GetCurFilter()))
+ {
+ //Versuchen die Originalgrafik zu speichern.
+ SfxMedium aIn( sGrfName, STREAM_READ | STREAM_NOCREATE,
+ TRUE, TRUE );
+ if( aIn.GetInStream() && !aIn.GetInStream()->GetError() )
+ {
+ SfxMedium aOut( sPath, STREAM_WRITE | STREAM_SHARE_DENYNONE,
+ FALSE, FALSE );
+ if( aOut.GetOutStream() && !aOut.GetOutStream()->GetError())
+ {
+ *aOut.GetOutStream() << *aIn.GetInStream();
+ if ( 0 == aIn.GetError() )
+ {
+ aOut.Close();
+ aOut.Commit();
+ if ( 0 == aOut.GetError() )
+ return sPath;
+ }
+ }
+ }
+ }
+
+ int nFilter;
+ if ( aExpDlg.GetCurFilter().Len() && rGF.GetExportFormatCount() )
+ nFilter = rGF.GetExportFormatNumber( aExpDlg.GetCurFilter() );
+ else
+ nFilter = GRFILTER_FORMAT_DONTKNOW;
+ String aFilter( rGF.GetExportFormatShortName( nFilter ) );
+ XOutBitmap::WriteGraphic( aGraphic, sPath, aFilter,
+ XOUTBMP_DONT_EXPAND_FILENAME );
+ return sPath;
+ }
+ }
+ return aEmptyStr;
+}
+
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.56 2000/09/18 16:05:24 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.55 2000/09/07 15:59:22 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.54 2000/04/19 12:56:34 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.53 2000/04/18 15:18:17 os
+ UNICODE
+
+ Revision 1.52 2000/03/03 15:17:00 os
+ StarView remainders removed
+
+ Revision 1.51 2000/02/11 14:45:03 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.50 2000/01/24 12:49:10 os
+ #72153# call SfxFileDialog::DisableSaveLastDirectory
+
+ Revision 1.49 1999/03/08 10:51:04 JP
+ Bug #62925#: ImageMap/INetImage mit ins Clipboard stellen
+
+
+ Rev 1.48 08 Mar 1999 11:51:04 JP
+ Bug #62925#: ImageMap/INetImage mit ins Clipboard stellen
+
+ Rev 1.47 25 Nov 1998 13:56:30 OS
+ #59809# Grafik-Pfad wieder merken
+
+ Rev 1.46 26 Oct 1998 16:16:06 OS
+ #58159# Reload und ReloadFrame im ReadOnlyPopup
+
+ Rev 1.45 21 Oct 1998 13:23:26 OM
+ #58267# Slotstatus ueber Bindings abfragen
+
+ Rev 1.44 02 Sep 1998 14:11:48 OM
+ #45378# HelpIDs fuer Dateidialoge
+
+ Rev 1.43 12 Aug 1998 09:41:54 MA
+ #54165# Phantasie-Extensions verarbeiten
+
+ Rev 1.42 11 Aug 1998 14:15:24 JP
+ Bug #54446#: bei embeddeten Grafiken, das default Format aus der Grafik besorgen
+
+ Rev 1.41 05 Aug 1998 12:42:10 JP
+ Bug #54446#: bei embeddeten Grafiken keine leeren Dateien erzeugen
+
+ Rev 1.40 30 Jul 1998 22:15:16 JP
+ Bug #54446# auch nicht gelinkte Grafiken speichern
+
+ Rev 1.39 30 Jun 1998 17:47:44 MA
+ RemoveDisabledEntries genutzt
+
+ Rev 1.38 07 May 1998 17:58:42 MA
+ PlugIn fuer WNT wieder aktiv
+
+ Rev 1.37 29 Apr 1998 18:30:26 MA
+ #49873# so macht man das also
+
+ Rev 1.36 28 Apr 1998 15:07:54 MA
+ chg: PathToFileName statt GetFull am URL-Objekt
+
+ Rev 1.35 16 Apr 1998 08:15:10 OS
+ nach Grafiken einschalten evtl. Modify-Flag zuruecksetzen#49488#
+
+ Rev 1.34 25 Mar 1998 14:24:12 OS
+ im ReadonlyUI-Zustand der Globaldokumente Bearbeiten nicht moeglich #48871#
+
+ Rev 1.33 25 Nov 1997 10:32:58 MA
+ includes
+
+ Rev 1.32 16 Oct 1997 12:03:08 OS
+ PlugIn nicht im VCL
+
+ Rev 1.31 12 Sep 1997 10:38:44 OS
+ ITEMID_* definiert
+
+ Rev 1.30 02 Sep 1997 13:20:48 OS
+ includes
+
+ Rev 1.29 29 Aug 1997 16:03:32 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.28 29 Aug 1997 14:35:36 OS
+ DLL-Umbau
+
+ Rev 1.27 15 Aug 1997 12:09:56 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.26 12 Aug 1997 15:59:04 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.25 12 Aug 1997 12:40:30 MA
+ #41880# Original der Grafiken speichern
+
+ Rev 1.24 08 Aug 1997 17:30:12 OM
+ Headerfile-Umstellung
+
+ Rev 1.23 07 Aug 1997 15:00:18 OM
+ Headerfile-Umstellung
+
+ Rev 1.22 06 Aug 1997 10:18:12 OS
+ FN_SOURCEVIEW->SID_SOURCEVIEW
+
+ Rev 1.21 27 May 1997 13:22:10 OS
+ FN_SOURCEVIEW im Popup
+
+ Rev 1.20 15 Apr 1997 14:14:24 OS
+ Status fuer EDITDOC an den Bindings erfragen
+
+ Rev 1.19 20 Mar 1997 16:59:42 MA
+ fix: richtige Extension und damit Filtererkennung reanimiert
+
+ Rev 1.18 18 Mar 1997 14:40:18 OS
+ letzten Save-Pfad merken und am Dialog richtig einstellen
+
+ Rev 1.17 23 Feb 1997 17:56:50 MA
+ #36840# mit den Separatoren aufraeumen.
+
+ Rev 1.16 14 Feb 1997 19:42:26 MA
+ new: Flag fuer Readonly-Gallery
+
+ Rev 1.15 12 Feb 1997 17:05:36 MA
+ #36004# Background disablen
+
+ Rev 1.14 10 Feb 1997 16:48:10 MA
+ fix: BackgroundToGallery ggf. disablen
+
+ Rev 1.13 06 Feb 1997 08:24:02 MA
+ BackgroundToGallery, removen disableter Items
+
+ Rev 1.12 04 Feb 1997 16:04:18 MA
+ chg: Aufnehmen in Gallery
+
+ Rev 1.11 02 Dec 1996 08:32:00 TRI
+ SfxPoolItem const gemacht
+
+ Rev 1.10 29 Nov 1996 10:20:36 MA
+ fix: dontexpandfilename
+
+ Rev 1.9 28 Nov 1996 18:15:00 HJS
+ cast fuer os2
+
+ Rev 1.8 28 Nov 1996 14:20:32 MA
+ fix: Grafiken speichern, fehlt noch der TempName
+
+ Rev 1.7 21 Nov 1996 20:07:08 MA
+ chg: neue Eintraege
+
+ Rev 1.6 18 Nov 1996 18:22:08 MA
+ chg: SfxFileDialog statt FileDialog
+
+ Rev 1.5 11 Nov 1996 09:39:32 MA
+ ResMgr
+
+ Rev 1.4 24 Oct 1996 15:37:18 MA
+ chg: Filter per Extension detecten
+
+ Rev 1.3 22 Oct 1996 12:27:50 MA
+ new: Namen und Filter defaulten
+
+ Rev 1.2 24 Sep 1996 16:45:16 OS
+ OS/2-Absturz behoben; richtiges enablen
+
+ Rev 1.1 18 Sep 1996 18:20:12 MA
+ #31458# Dispatcher statt Bindings
+
+ Rev 1.0 16 Sep 1996 14:56:38 MA
+ new: Readonly-Popup
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/docvw/romenu.hxx b/sw/source/ui/docvw/romenu.hxx
new file mode 100644
index 000000000000..baf34c5fe79f
--- /dev/null
+++ b/sw/source/ui/docvw/romenu.hxx
@@ -0,0 +1,111 @@
+/*************************************************************************
+ *
+ * $RCSfile: romenu.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ROMENU_HXX
+#define _ROMENU_HXX
+
+
+#ifndef _GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+
+class SwView;
+class SfxDispatcher;
+class SvxBrushItem;
+class ImageMap;
+class INetImage;
+
+class SwReadOnlyPopup : public PopupMenu
+{
+ SwView &rView;
+ const SvxBrushItem *pItem;
+ const Point &rDocPos;
+ Graphic aGraphic;
+ String sURL,
+ sTargetFrameName,
+ sDescription,
+ sGrfName;
+ List aThemeList;
+ BOOL bGrfToGalleryAsLnk;
+ ImageMap* pImageMap;
+ INetImage* pTargetURL;
+
+ void Check( USHORT nMID, USHORT nSID, SfxDispatcher &rDis );
+ String SaveGraphic( USHORT nId );
+
+public:
+ SwReadOnlyPopup( const Point &rDPos, SwView &rV );
+ ~SwReadOnlyPopup();
+#ifdef VCL
+ void Execute( Window* pWin, const Point &rPPos );
+#else
+ void Execute( const Point &rPPos );
+#endif
+};
+
+
+#endif
+
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx
new file mode 100644
index 000000000000..45eac58447c3
--- /dev/null
+++ b/sw/source/ui/docvw/srcedtw.cxx
@@ -0,0 +1,1016 @@
+/*************************************************************************
+ *
+ * $RCSfile: srcedtw.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+#include "cmdid.h"
+
+
+#ifndef _SYSTEM_HXX //autogen
+#include <vcl/system.hxx>
+#endif
+#ifndef _TEXTVIEW_HXX
+#include <svtools/textview.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SCRBAR_HXX //autogen
+#include <vcl/scrbar.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _HTMLTOKN_H
+#include <svtools/htmltokn.h>
+#endif
+#ifndef _TXTATTR_HXX //autogen
+#include <svtools/txtattr.hxx>
+#endif
+
+
+#include "swmodule.hxx"
+#include "docsh.hxx"
+#include "srcview.hxx"
+#include "srcedtw.hxx"
+#include "srcvcfg.hxx"
+#include "helpid.h"
+
+
+enum SwHtmlTextType {
+ TT_SGML = SRC_SYN_SGML ,
+ TT_COMMENT = SRC_SYN_COMMENT ,
+ TT_KEYWORD = SRC_SYN_KEYWRD ,
+ TT_UNKNOWN = SRC_SYN_UNKNOWN
+};
+
+
+struct SwTextPortion
+{
+ USHORT nLine;
+ USHORT nStart, nEnd;
+ SwHtmlTextType eType;
+};
+
+#define MAX_SYNTAX_HIGHLIGHT 20
+
+SV_DECL_VARARR(SwTextPortions, SwTextPortion,16,16)
+
+/* -----------------15.01.97 12.07-------------------
+
+--------------------------------------------------*/
+
+SV_IMPL_VARARR(SwTextPortions, SwTextPortion)
+
+/*-----------------15.01.97 12.08-------------------
+
+--------------------------------------------------*/
+
+void lcl_Highlight(const String& rSource, SwTextPortions& aPortionList)
+{
+ const sal_Unicode cOpenBracket = '<';
+ const sal_Unicode cCloseBracket= '>';
+ const sal_Unicode cSlash = '/';
+ const sal_Unicode cExclamation = '!';
+ const sal_Unicode cQuote = '"';
+ const sal_Unicode cSQuote = '\'';
+ const sal_Unicode cMinus = '-';
+ const sal_Unicode cSpace = ' ';
+ const sal_Unicode cTab = 0x09;
+ const sal_Unicode cLF = 0x0a;
+ const sal_Unicode cCR = 0x0d;
+
+
+ const USHORT nStrLen = rSource.Len();
+ USHORT nInsert = 0; // Anzahl der eingefuegten Portions
+ USHORT nActPos = 0; //Position, an der '<' gefunden wurde
+ USHORT nOffset = 0; //Offset von nActPos zur '<'
+ USHORT nPortStart = USHRT_MAX; // fuer die TextPortion
+ USHORT nPortEnd = 0; //
+ SwTextPortion aText;
+ while(nActPos < nStrLen)
+ {
+ SwHtmlTextType eFoundType = TT_UNKNOWN;
+ if(rSource.GetChar(nActPos) == cOpenBracket && nActPos < nStrLen - 2 )
+ {
+ // 'leere' Portion einfuegen
+ if(nPortEnd < nActPos - 1 )
+ {
+ aText.nLine = 0;
+ // am Anfang nicht verschieben
+ aText.nStart = nPortEnd;
+ if(nInsert)
+ aText.nStart += 1;
+ aText.nEnd = nActPos - 1;
+ aText.eType = TT_UNKNOWN;
+ aPortionList.Insert(aText, nInsert++);
+ }
+ sal_Unicode cFollowFirst = rSource.GetChar((xub_StrLen)(nActPos + 1));
+ sal_Unicode cFollowNext = rSource.GetChar((xub_StrLen)(nActPos + 2));
+ if(cExclamation == cFollowFirst)
+ {
+ // "<!" SGML oder Kommentar
+ if(cMinus == cFollowNext &&
+ nActPos < nStrLen - 3 && cMinus == rSource.GetChar((xub_StrLen)(nActPos + 3)))
+ {
+ eFoundType = TT_COMMENT;
+ }
+ else
+ eFoundType = TT_SGML;
+ nPortStart = nActPos;
+ nPortEnd = nActPos + 1;
+ }
+ else if(cSlash == cFollowFirst)
+ {
+ // "</" Slash ignorieren
+ nPortStart = nActPos;
+ nActPos++;
+ nOffset++;
+ }
+ if(TT_UNKNOWN == eFoundType)
+ {
+ //jetzt koennte hier ein keyword folgen
+ USHORT nSrchPos = nActPos;
+ while(++nSrchPos < nStrLen - 1)
+ {
+ sal_Unicode cNext = rSource.GetChar(nSrchPos);
+ if( cNext == cSpace ||
+ cNext == cTab ||
+ cNext == cLF ||
+ cNext == cCR)
+ break;
+ else if(cNext == cCloseBracket)
+ {
+ break;
+ }
+ }
+ if(nSrchPos > nActPos + 1)
+ {
+ //irgend ein String wurde gefunden
+ String sToken = rSource.Copy(nActPos + 1, nSrchPos - nActPos - 1 );
+ sToken.ToUpperAscii();
+ int nToken = ::GetHTMLToken(sToken);
+ if(nToken)
+ {
+ //Token gefunden
+ eFoundType = TT_KEYWORD;
+ nPortEnd = nSrchPos;
+ nPortStart = nActPos;
+ }
+ else
+ {
+ //was war das denn?
+#ifdef DEBUG
+ DBG_ERROR("Token nicht erkannt!")
+ DBG_ERROR(ByteString(sToken, gsl_getSystemTextEncoding()).GetBuffer())
+#endif
+ }
+
+ }
+ }
+ // jetzt muss noch '>' gesucht werden
+ if(TT_UNKNOWN != eFoundType)
+ {
+ BOOL bFound = FALSE;
+ for(USHORT i = nPortEnd; i < nStrLen; i++)
+ if(cCloseBracket == rSource.GetChar(i))
+ {
+ bFound = TRUE;
+ nPortEnd = i;
+ break;
+ }
+ if(!bFound && (eFoundType == TT_COMMENT))
+ {
+ // Kommentar ohne Ende in dieser Zeile
+ bFound = TRUE;
+ nPortEnd = nStrLen - 1;
+ }
+
+ if(bFound ||(eFoundType == TT_COMMENT))
+ {
+ SwTextPortion aText;
+ aText.nLine = 0;
+ aText.nStart = nPortStart + 1;
+ aText.nEnd = nPortEnd;
+ aText.eType = eFoundType;
+ aPortionList.Insert(aText, nInsert++);
+ eFoundType = TT_UNKNOWN;
+ }
+
+ }
+ }
+ nActPos++;
+ }
+ if(nInsert && nPortEnd < nActPos - 1)
+ {
+ aText.nLine = 0;
+ aText.nStart = nPortEnd + 1;
+ aText.nEnd = nActPos - 1;
+ aText.eType = TT_UNKNOWN;
+ aPortionList.Insert(aText, nInsert++);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwSrcEditWindow::SwSrcEditWindow( Window* pParent, SwSrcView* pParentView ) :
+ Window( pParent, WB_BORDER|WB_CLIPCHILDREN ),
+ pTextEngine(0),
+ pOutWin(0),
+ pHScrollbar(0),
+ pVScrollbar(0),
+ pSrcView(pParentView),
+ nCurTextWidth(0),
+ bDoSyntaxHighlight(TRUE),
+ bHighlighting(FALSE),
+ pSrcVwConfig(SW_MOD()->GetSourceViewConfig()),
+ nStartLine(USHRT_MAX)
+{
+ SetHelpId(HID_SOURCE_EDITWIN);
+ CreateTextEngine();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+ SwSrcEditWindow::~SwSrcEditWindow()
+{
+ aSyntaxIdleTimer.Stop();
+ if ( pTextEngine )
+ {
+ EndListening( *pTextEngine );
+ pTextEngine->RemoveView( pTextView );
+
+ delete pHScrollbar;
+ delete pVScrollbar;
+
+ delete pTextView;
+ delete pTextEngine;
+ }
+ delete pOutWin;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+#if (SUPD>397)
+void SwSrcEditWindow::DataChanged( const DataChangedEvent& )
+{
+ Resize();
+}
+#endif
+
+void SwSrcEditWindow::Resize()
+{
+ // ScrollBars, etc. passiert in Adjust...
+ if ( pTextView )
+ {
+ long nVisY = pTextView->GetStartDocPos().Y();
+ pTextView->ShowCursor();
+ Size aOutSz( GetOutputSizePixel() );
+ long nMaxVisAreaStart = pTextView->GetTextEngine()->GetTextHeight() - aOutSz.Height();
+ if ( nMaxVisAreaStart < 0 )
+ nMaxVisAreaStart = 0;
+ if ( pTextView->GetStartDocPos().Y() > nMaxVisAreaStart )
+ {
+ Point aStartDocPos( pTextView->GetStartDocPos() );
+ aStartDocPos.Y() = nMaxVisAreaStart;
+ pTextView->SetStartDocPos( aStartDocPos );
+ pTextView->ShowCursor();
+ }
+ InitScrollBars();
+ long nScrollStd = GetSettings().GetStyleSettings().GetScrollBarSize();
+ Size aScrollSz(aOutSz.Width() - nScrollStd, nScrollStd );
+ Point aScrollPos(0, aOutSz.Height() - nScrollStd);
+
+ pHScrollbar->SetPosSizePixel( aScrollPos, aScrollSz);
+
+ aScrollSz.Width() = aScrollSz.Height();
+ aScrollSz.Height() = aOutSz.Height();
+ aScrollPos = Point(aOutSz.Width() - nScrollStd, 0);
+
+ pVScrollbar->SetPosSizePixel( aScrollPos, aScrollSz);
+ aOutSz.Width() -= nScrollStd;
+ aOutSz.Height() -= nScrollStd;
+ pOutWin->SetOutputSizePixel(aOutSz);
+ // Zeile im ersten Resize setzen
+ if(USHRT_MAX != nStartLine)
+ {
+ if(nStartLine < pTextEngine->GetParagraphCount())
+ {
+ TextSelection aSel(TextPaM( nStartLine, 0 ), TextPaM( nStartLine, 0x0 ));
+ pTextView->SetSelection(aSel);
+ pTextView->ShowCursor();
+ }
+ nStartLine = USHRT_MAX;
+ }
+
+ if ( nVisY != pTextView->GetStartDocPos().Y() )
+ Invalidate();
+ }
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void TextViewOutWin::DataChanged( const DataChangedEvent& )
+{
+ const Color &rCol = GetSettings().GetStyleSettings().GetWindowColor();
+ SetBackground( rCol );
+ Font aFont( pTextView->GetTextEngine()->GetFont() );
+ aFont.SetFillColor( rCol );
+ pTextView->GetTextEngine()->SetFont( aFont );
+}
+
+void TextViewOutWin::MouseMove( const MouseEvent &rEvt )
+{
+ if ( pTextView )
+ pTextView->MouseMove( rEvt );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void TextViewOutWin::MouseButtonUp( const MouseEvent &rEvt )
+{
+ if ( pTextView )
+ {
+ pTextView->MouseButtonUp( rEvt );
+ ((SwSrcEditWindow*)GetParent())->GetSrcView()->GetViewFrame()->
+ GetBindings().Invalidate( SID_TABLE_CELL );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void TextViewOutWin::MouseButtonDown( const MouseEvent &rEvt )
+{
+ GrabFocus();
+ if ( pTextView )
+ pTextView->MouseButtonDown( rEvt );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void TextViewOutWin::Command( const CommandEvent& rCEvt )
+{
+ switch(rCEvt.GetCommand())
+ {
+ case COMMAND_CONTEXTMENU:
+ ((SwSrcEditWindow*)GetParent())->GetSrcView()->GetViewFrame()->
+ GetDispatcher()->ExecutePopup();
+ break;
+ case COMMAND_WHEEL:
+ case COMMAND_STARTAUTOSCROLL:
+ case COMMAND_AUTOSCROLL:
+ {
+ const CommandWheelData* pWData = rCEvt.GetWheelData();
+ if( !pWData || COMMAND_WHEEL_ZOOM != pWData->GetMode() )
+ {
+ ((SwSrcEditWindow*)GetParent())->HandleWheelCommand( rCEvt );
+ }
+ }
+ break;
+
+ default:
+ if ( pTextView )
+ pTextView->Command( rCEvt );
+ else
+ Window::Command(rCEvt);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+BOOL TextViewOutWin::Drop( const DropEvent& rEvt )
+{
+ BOOL bDone = FALSE;
+ if ( pTextView )
+ {
+ bDone = pTextView->Drop( rEvt );
+ if ( bDone )
+ {
+ SfxBindings& rBindings = ((SwSrcEditWindow*)GetParent())->
+ GetSrcView()->GetViewFrame()->GetBindings();
+ rBindings.Invalidate( SID_TABLE_CELL );
+ rBindings.Invalidate( SID_SAVEDOC );
+ rBindings.Invalidate( SID_DOC_MODIFIED );
+ }
+ }
+ return bDone;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+BOOL TextViewOutWin::QueryDrop( DropEvent& rEvt )
+{
+ if ( pTextView && !((SwSrcEditWindow*)GetParent())->IsReadonly() )
+ return pTextView->QueryDrop( rEvt );
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void TextViewOutWin::KeyInput( const KeyEvent& rKEvt )
+{
+ BOOL bDone = FALSE;
+ SwSrcEditWindow* pSrcEditWin = (SwSrcEditWindow*)GetParent();
+ BOOL bChange = !pSrcEditWin->IsReadonly() || !TextEngine::DoesKeyChangeText( rKEvt );
+ if(bChange)
+ bDone = pTextView->KeyInput( rKEvt );
+
+ if ( !bDone )
+ {
+ if ( !SfxViewShell::Current()->KeyInput( rKEvt ) )
+ Window::KeyInput( rKEvt );
+ }
+ else
+ {
+ SfxBindings& rBindings = ((SwSrcEditWindow*)GetParent())->GetSrcView()->GetViewFrame()->GetBindings();
+ rBindings.Invalidate( SID_TABLE_CELL );
+ if ( rKEvt.GetKeyCode().GetGroup() == KEYGROUP_CURSOR )
+ rBindings.Update( SID_BASICIDE_STAT_POS );
+ if (pSrcEditWin->GetTextEngine()->IsModified() )
+ {
+ rBindings.Invalidate( SID_SAVEDOC );
+ rBindings.Invalidate( SID_DOC_MODIFIED );
+ }
+ if( rKEvt.GetKeyCode().GetCode() == KEY_INSERT )
+ rBindings.Invalidate( SID_ATTR_INSERT );
+ }
+ SwDocShell* pDocShell = pSrcEditWin->GetSrcView()->GetDocShell();
+ if(pSrcEditWin->GetTextEngine()->IsModified())
+ {
+ pDocShell->SetModified();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void TextViewOutWin::Paint( const Rectangle& rRect )
+{
+ pTextView->Paint( rRect );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwSrcEditWindow::CreateTextEngine()
+{
+ const Color &rCol = GetSettings().GetStyleSettings().GetWindowColor();
+ pOutWin = new TextViewOutWin(this, 0);
+ pOutWin->SetBackground(Wallpaper(rCol));
+ pOutWin->SetPointer(Pointer(POINTER_TEXT));
+ pOutWin->Show();
+
+ //Scrollbars anlegen
+ pHScrollbar = new ScrollBar(this, WB_3DLOOK |WB_HSCROLL|WB_DRAG);
+ pHScrollbar->SetScrollHdl(LINK(this, SwSrcEditWindow, ScrollHdl));
+ pHScrollbar->Show();
+
+ pVScrollbar = new ScrollBar(this, WB_3DLOOK |WB_VSCROLL|WB_DRAG);
+ pVScrollbar->SetScrollHdl(LINK(this, SwSrcEditWindow, ScrollHdl));
+ pHScrollbar->EnableDrag();
+ pVScrollbar->Show();
+
+ pTextEngine = new ExtTextEngine;
+ pTextView = new ExtTextView( pTextEngine, pOutWin );
+ pTextView->SetAutoIndentMode(TRUE);
+ pOutWin->SetTextView(pTextView);
+
+ pTextEngine->SetUpdateMode( FALSE );
+ pTextEngine->InsertView( pTextView );
+
+ Font aFont;
+ aFont.SetCharSet( gsl_getSystemTextEncoding() );
+ aFont.SetSize( Size( 0, 12 ) );
+ aFont.SetPitch( PITCH_VARIABLE );
+ aFont.SetWeight( WEIGHT_NORMAL );
+ aFont.SetName( String::CreateFromAscii("Courier") );
+ aFont.SetFamily( FAMILY_MODERN );
+ aFont.SetPitch( PITCH_FIXED );
+// Font aFont( System::GetStandardFont( STDFONT_FIXED ) );
+ aFont.SetTransparent( FALSE );
+
+ Size aFontSize( 0, 10 );
+
+#ifdef MAC
+ aFont.SetName( "Monaco" );
+#endif
+
+ aFont.SetFillColor( rCol );
+ aFont.SetSize( aFontSize );
+ SetPointFont( aFont );
+ aFont = GetFont();
+ aFont.SetFillColor( rCol );
+ pOutWin->SetFont( aFont );
+
+ pTextEngine->SetFont( aFont );
+
+
+ aSyntaxIdleTimer.SetTimeout( 200 );
+ aSyntaxIdleTimer.SetTimeoutHdl( LINK( this, SwSrcEditWindow, SyntaxTimerHdl ) );
+
+ pTextEngine->EnableUndo( TRUE );
+ pTextEngine->SetUpdateMode( TRUE );
+
+ pTextView->ShowCursor( TRUE, TRUE );
+ InitScrollBars();
+ StartListening( *pTextEngine );
+
+ SfxBindings& rBind = GetSrcView()->GetViewFrame()->GetBindings();
+ rBind.Invalidate( SID_TABLE_CELL );
+ rBind.Invalidate( SID_ATTR_CHAR_FONTHEIGHT );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwSrcEditWindow::SetScrollBarRanges()
+{
+ // Extra-Methode, nicht InitScrollBars, da auch fuer TextEngine-Events.
+
+ pHScrollbar->SetRange( Range( 0, nCurTextWidth ) );
+ pVScrollbar->SetRange( Range(0, pTextEngine->GetTextHeight()) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwSrcEditWindow::InitScrollBars()
+{
+ SetScrollBarRanges();
+
+ Size aOutSz( GetOutputSizePixel() );
+ pVScrollbar->SetVisibleSize( aOutSz.Height() );
+ pVScrollbar->SetPageSize( aOutSz.Height() * 8 / 10 );
+ pVScrollbar->SetLineSize( pOutWin->GetTextHeight() );
+ pVScrollbar->SetThumbPos( pTextView->GetStartDocPos().Y() );
+ pHScrollbar->SetVisibleSize( aOutSz.Width() );
+ pHScrollbar->SetPageSize( aOutSz.Width() * 8 / 10 );
+ pHScrollbar->SetLineSize( pOutWin->GetTextWidth( 'x' ) );
+ pHScrollbar->SetThumbPos( pTextView->GetStartDocPos().X() );
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK(SwSrcEditWindow, ScrollHdl, ScrollBar*, pScroll)
+{
+ if(pScroll == pVScrollbar)
+ {
+ long nDiff = pTextView->GetStartDocPos().Y() - pScroll->GetThumbPos();
+ GetTextView()->Scroll( 0, nDiff );
+ pTextView->ShowCursor( FALSE, TRUE );
+ pScroll->SetThumbPos( pTextView->GetStartDocPos().Y() );
+ }
+ else
+ {
+ long nDiff = pTextView->GetStartDocPos().X() - pScroll->GetThumbPos();
+ GetTextView()->Scroll( nDiff, 0 );
+ pTextView->ShowCursor( FALSE, TRUE );
+ pScroll->SetThumbPos( pTextView->GetStartDocPos().X() );
+ }
+ GetSrcView()->GetViewFrame()->GetBindings().Invalidate( SID_TABLE_CELL );
+ return 0;
+}
+
+/*-----------------15.01.97 09.22-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK( SwSrcEditWindow, SyntaxTimerHdl, Timer *, pTimer )
+{
+ DBG_ASSERT( pTextView, "Noch keine View, aber Syntax-Highlight ?!" );
+ pTextEngine->SetUpdateMode( FALSE );
+
+ bHighlighting = TRUE;
+ USHORT nLine;
+ USHORT nCount = 0;
+ // zuerst wird der Bereich um dem Cursor bearbeitet
+ TextSelection aSel = pTextView->GetSelection();
+ USHORT nCur = aSel.GetStart().GetPara();
+ if(nCur > 40)
+ nCur -= 40;
+ else
+ nCur = 0;
+ if(aSyntaxLineTable.Count())
+ for(USHORT i = 0; i < 80 && nCount < 40; i++, nCur++)
+ {
+ void * p = aSyntaxLineTable.Get(nCur);
+ if(p)
+ {
+ DoSyntaxHighlight( nCur );
+ aSyntaxLineTable.Remove( nCur );
+ nCount++;
+ if(!aSyntaxLineTable.Count())
+ break;
+ }
+ }
+
+ // wenn dann noch etwas frei ist, wird von Beginn an weitergearbeitet
+ void* p = aSyntaxLineTable.First();
+ while ( p && nCount < MAX_SYNTAX_HIGHLIGHT)
+ {
+ nLine = (USHORT)aSyntaxLineTable.GetCurKey();
+ DoSyntaxHighlight( nLine );
+ USHORT nCur = (USHORT)aSyntaxLineTable.GetCurKey();
+ p = aSyntaxLineTable.Next();
+ aSyntaxLineTable.Remove(nCur);
+ nCount ++;
+ }
+ // os: #43050# hier wird ein TextView-Problem umpopelt:
+ // waehrend des Highlightings funktionierte das Scrolling nicht
+ TextView* pTmp = pTextEngine->GetActiveView();
+ pTextEngine->SetActiveView(0);
+ pTextEngine->SetUpdateMode( TRUE );
+ pTextEngine->SetActiveView(pTmp);
+ pTextView->ShowCursor(FALSE, FALSE);
+
+ if(aSyntaxLineTable.Count() && !pTimer->IsActive())
+ pTimer->Start();
+ // SyntaxTimerHdl wird gerufen, wenn Text-Aenderung
+ // => gute Gelegenheit, Textbreite zu ermitteln!
+ long nPrevTextWidth = nCurTextWidth;
+ nCurTextWidth = pTextEngine->CalcTextWidth() + 25; // kleine Toleranz
+ if ( nCurTextWidth != nPrevTextWidth )
+ SetScrollBarRanges();
+ bHighlighting = FALSE;
+
+ return 0;
+}
+/*-----------------15.01.97 10.01-------------------
+
+--------------------------------------------------*/
+
+void SwSrcEditWindow::DoSyntaxHighlight( USHORT nPara )
+{
+ // Durch das DelayedSyntaxHighlight kann es passieren,
+ // dass die Zeile nicht mehr existiert!
+ if ( nPara < pTextEngine->GetParagraphCount() )
+ {
+ BOOL bTempModified = IsModified();
+ pTextEngine->RemoveAttribs( nPara );
+ String aSource( pTextEngine->GetText( nPara ) );
+ pTextEngine->SetUpdateMode( FALSE );
+ ImpDoHighlight( aSource, nPara );
+ // os: #43050# hier wird ein TextView-Problem umpopelt:
+ // waehrend des Highlightings funktionierte das Scrolling nicht
+ TextView* pTmp = pTextEngine->GetActiveView();
+ pTmp->SetAutoScroll(FALSE);
+ pTextEngine->SetActiveView(0);
+ pTextEngine->SetUpdateMode( TRUE );
+ pTextEngine->SetActiveView(pTmp);
+ // Bug 72887 show the cursor
+ pTmp->SetAutoScroll(TRUE);
+ pTmp->ShowCursor( FALSE/*pTmp->IsAutoScroll()*/ );
+
+ if(!bTempModified)
+ ClearModifyFlag();
+ }
+}
+
+/*-----------------15.01.97 09.49-------------------
+
+--------------------------------------------------*/
+
+void SwSrcEditWindow::DoDelayedSyntaxHighlight( USHORT nPara )
+{
+ if ( !bHighlighting && bDoSyntaxHighlight )
+ {
+ aSyntaxLineTable.Insert( nPara, (void*)(USHORT)1 );
+ aSyntaxIdleTimer.Start();
+ }
+}
+
+/*-----------------15.01.97 11.32-------------------
+
+--------------------------------------------------*/
+
+void SwSrcEditWindow::ImpDoHighlight( const String& rSource, USHORT nLineOff )
+{
+ SwTextPortions aPortionList;
+ lcl_Highlight(rSource, aPortionList);
+
+ USHORT nCount = aPortionList.Count();
+ if ( !nCount )
+ return;
+
+ SwTextPortion& rLast = aPortionList[nCount-1];
+ if ( rLast.nStart > rLast.nEnd ) // Nur bis Bug von MD behoeben
+ {
+ nCount--;
+ aPortionList.Remove( nCount);
+ if ( !nCount )
+ return;
+ }
+
+ // Evtl. Optimieren:
+ // Wenn haufig gleiche Farbe, dazwischen Blank ohne Farbe,
+ // ggf. zusammenfassen, oder zumindest das Blank,
+ // damit weniger Attribute
+ BOOL bOptimizeHighlight = TRUE; // war in der BasicIDE static
+ if ( bOptimizeHighlight )
+ {
+ // Es muessen nur die Blanks und Tabs mit attributiert werden.
+ // Wenn zwei gleiche Attribute hintereinander eingestellt werden,
+ // optimiert das die TextEngine.
+ USHORT nLastEnd = 0;
+ USHORT nLine = aPortionList[0].nLine;
+ for ( USHORT i = 0; i < nCount; i++ )
+ {
+ SwTextPortion& r = aPortionList[i];
+ DBG_ASSERT( r.nLine == nLine, "doch mehrere Zeilen ?" );
+ if ( r.nStart > r.nEnd ) // Nur bis Bug von MD behoeben
+ continue;
+
+ if ( r.nStart > nLastEnd )
+ {
+ // Kann ich mich drauf verlassen, dass alle ausser
+ // Blank und Tab gehighlightet wird ?!
+ r.nStart = nLastEnd;
+ }
+ nLastEnd = r.nEnd+1;
+ if ( ( i == (nCount-1) ) && ( r.nEnd < rSource.Len() ) )
+ r.nEnd = rSource.Len();
+ }
+ }
+
+ for ( USHORT i = 0; i < aPortionList.Count(); i++ )
+ {
+ SwTextPortion& r = aPortionList[i];
+ if ( r.nStart > r.nEnd ) // Nur bis Bug von MD behoeben
+ continue;
+ USHORT nCol = r.eType;
+ DBG_ASSERT( nCol < SYNTAX_COLOR_MAX, "Neue Syntax-Farbe?" );
+ if ( nCol < SYNTAX_COLOR_MAX )
+ {
+ Color aColor = pSrcVwConfig->GetSyntaxColor(nCol);
+ USHORT nLine = nLineOff+r.nLine; //
+ pTextEngine->SetAttrib( TextAttribFontColor( aColor ), nLine, r.nStart, r.nEnd+1 );
+ }
+ }
+}
+/*-----------------21.04.97 09:42-------------------
+
+--------------------------------------------------*/
+void SwSrcEditWindow::SyntaxColorsChanged()
+{
+ for(USHORT i = 0; i < pTextEngine->GetParagraphCount(); i++)
+ aSyntaxLineTable.Insert( i, (void*)(USHORT)1 );
+ if(!aSyntaxIdleTimer.IsActive())
+ aSyntaxIdleTimer.Start();
+
+}
+/*-----------------30.06.97 09:12-------------------
+
+--------------------------------------------------*/
+
+void SwSrcEditWindow::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ if ( rHint.ISA( TextHint ) )
+ {
+ const TextHint& rTextHint = (const TextHint&)rHint;
+ if( rTextHint.GetId() == TEXT_HINT_VIEWSCROLLED )
+ {
+ pHScrollbar->SetThumbPos( pTextView->GetStartDocPos().X() );
+ pVScrollbar->SetThumbPos( pTextView->GetStartDocPos().Y() );
+ }
+ else if( rTextHint.GetId() == TEXT_HINT_TEXTHEIGHTCHANGED )
+ {
+ if ( (long)pTextEngine->GetTextHeight() < pOutWin->GetOutputSizePixel().Height() )
+ pTextView->Scroll( 0, pTextView->GetStartDocPos().Y() );
+ pVScrollbar->SetThumbPos( pTextView->GetStartDocPos().Y() );
+ SetScrollBarRanges();
+ }
+ else if( rTextHint.GetId() == TEXT_HINT_FORMATPARA )
+ {
+ DoDelayedSyntaxHighlight( rTextHint.GetValue() );
+ }
+ }
+}
+
+/*-----------------30.06.97 13:22-------------------
+
+--------------------------------------------------*/
+
+void SwSrcEditWindow::Invalidate()
+{
+ pOutWin->Invalidate();
+ Window::Invalidate();
+
+}
+
+void SwSrcEditWindow::Command( const CommandEvent& rCEvt )
+{
+ switch(rCEvt.GetCommand())
+ {
+ case COMMAND_WHEEL:
+ case COMMAND_STARTAUTOSCROLL:
+ case COMMAND_AUTOSCROLL:
+ {
+ const CommandWheelData* pWData = rCEvt.GetWheelData();
+ if( !pWData || COMMAND_WHEEL_ZOOM != pWData->GetMode() )
+ HandleScrollCommand( rCEvt, pHScrollbar, pVScrollbar );
+ }
+ break;
+ default:
+ Window::Command(rCEvt);
+ }
+}
+
+void SwSrcEditWindow::HandleWheelCommand( const CommandEvent& rCEvt )
+{
+ pTextView->Command(rCEvt);
+ HandleScrollCommand( rCEvt, pHScrollbar, pVScrollbar );
+}
+
+void SwSrcEditWindow::GetFocus()
+{
+// rView.GotFocus();
+ pOutWin->GrabFocus();
+// pOutWin->GetFocus();
+// Window::GetFocus();
+}
+
+/*void SwSrcEditWindow::LoseFocus()
+{
+ Window::LoseFocus();
+// pOutWin->LoseFocus();
+// rView.LostFocus();
+} */
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.55 2000/09/18 16:05:24 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.54 2000/09/14 10:36:36 os
+ GetBindings() access corrected
+
+ Revision 1.53 2000/09/07 15:59:22 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.52 2000/06/23 07:49:49 os
+ #75591# disable AutoScroll while syntax highlighting
+
+ Revision 1.51 2000/04/18 15:18:17 os
+ UNICODE
+
+ Revision 1.50 2000/03/03 15:17:00 os
+ StarView remainders removed
+
+ Revision 1.49 2000/02/14 14:48:40 os
+ #70473# Unicode
+
+ Revision 1.48 2000/02/10 20:45:06 jp
+ Bug #72887#: ShowCursor in HTML code view
+
+ Revision 1.47 1999/11/10 14:25:10 os
+ KeyInput: Assertion removed
+
+ Revision 1.46 1999/05/21 13:14:40 OS
+ #55722# Scrolling waehrend Syntax-Highlight
+
+
+ Rev 1.45 21 May 1999 15:14:40 OS
+ #55722# Scrolling waehrend Syntax-Highlight
+
+ Rev 1.44 02 Dec 1998 16:30:22 OS
+ #66066# Hintergrund- und Font-Farbe initial aus den Systemeinstellungen holen
+
+ Rev 1.43 18 Aug 1998 13:38:14 OS
+ Mouse auf Raedern eingebaut #55166#
+
+ Rev 1.42 29 Jun 1998 12:56:52 OS
+ SW_MOD statt GetActiveModule
+
+ Rev 1.41 24 Jun 1998 18:43:08 MA
+ DataChanged fuer ScrollBar und Retouche, Retouche ganz umgestellt
+
+ Rev 1.40 02 Apr 1998 11:38:08 OS
+ neue HelpId
+
+ Rev 1.39 24 Mar 1998 15:59:28 OS
+ AutoIndent fuer TextEngine
+
+ Rev 1.38 19 Mar 1998 18:11:28 OS
+ ShowCursor nach dem Highlight #48789#
+
+ Rev 1.37 18 Mar 1998 15:05:48 OS
+ Fontgroesse berichtigt #47428#
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/envelp/envelp.src b/sw/source/ui/envelp/envelp.src
new file mode 100644
index 000000000000..8cf07e2fe1f9
--- /dev/null
+++ b/sw/source/ui/envelp/envelp.src
@@ -0,0 +1,202 @@
+/*************************************************************************
+ *
+ * $RCSfile: envelp.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "envelp.hrc"
+#include "globals.hrc"
+ // Strings ******************************************************************
+String STR_DATABASE_NOT_OPENED
+{
+ Text = "Datenbank konnte nicht geöffnet werden." ;
+ Text [ English ] = "Could not open database." ;
+ Text [ norwegian ] = "Could not open database." ;
+ Text [ italian ] = "Impossibile aprire il database." ;
+ Text [ portuguese_brazilian ] = "Não pude abrir base de dados." ;
+ Text [ portuguese ] = "Foi impossível abrir base de dados." ;
+ Text [ finnish ] = "Tietokantaa ei voi avata." ;
+ Text [ danish ] = "Det var ikke muligt at åbne databasen." ;
+ Text [ french ] = "Impossible d'ouvrir la base de données." ;
+ Text [ swedish ] = "Databas kunde inte öppnas." ;
+ Text [ dutch ] = "Database kon niet worden geopend." ;
+ Text [ spanish ] = "No se pudo abrir la base de datos." ;
+ Text [ english_us ] = "Database could not be opened." ;
+ Text[ chinese_simplified ] = "ÎÞ·¨´ò¿ªÊý¾Ý¿â¡£";
+ Text[ russian ] = "Îòêðûòü áàçó äàííûõ íåâîçìîæíî.";
+ Text[ polish ] = "Baza danych nie mog³a byæ otworzona.";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚ðŠJ‚­‚±‚Æ‚ª‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½";
+ Text[ chinese_traditional ] = "µLªk¶}±Ò¸ê®Æ®w¡C";
+ Text[ arabic ] = "ÊÚÐÑ ÝÊÍ ÞÇÚÏÉ ÇáÈíÇäÇÊ.";
+ Text[ dutch ] = "Database kon niet worden geopend.";
+ Text[ chinese_simplified ] = "ÎÞ·¨´ò¿ªÊý¾Ý¿â¡£";
+ Text[ greek ] = "Äåí Þôáí äõíáôüí íá áíïé÷ôåß ç âÜóç äåäïìÝíùí.";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º°¡ ¿­¸±¼ö ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Veritabaný açýlamadý.";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_DRIVERS
+{
+ Text = "Keine Datenbanktreiber installiert." ;
+ Text [ English ] = "No database drivers installed." ;
+ Text [ norwegian ] = "No database drivers installed." ;
+ Text [ italian ] = "Non sono installati driver di controllo database." ;
+ Text [ portuguese_brazilian ] = "Nenhum driver de base de dados instalado." ;
+ Text [ portuguese ] = "Controlador da base de dados não instalado." ;
+ Text [ finnish ] = "Tietokanta-ajureita ei ole asennettu." ;
+ Text [ danish ] = "Ingen databasedriverere installeret." ;
+ Text [ french ] = "Aucun gestionnaire de base de données installé." ;
+ Text [ swedish ] = "Inga databasdrivrutiner är installerade." ;
+ Text [ dutch ] = "Geen database-drivers geïnstalleerd." ;
+ Text [ spanish ] = "No se han instalado controladores de bases de datos." ;
+ Text [ english_us ] = "No database drivers installed." ;
+ Text[ chinese_simplified ] = "ûÓа²×°Êý¾Ý¿âÇý¶¯³ÌÐò¡£";
+ Text[ russian ] = "Äðàéâåð äëÿ áàçû äàííûõ íå èíñòàëèðîâàí.";
+ Text[ polish ] = "Nie zainstalowany sterownik bazy danych.";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½ÄÞ×ÊÞ‚ª²Ý½Ä°Ù‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "¨S¦³¦w¸Ë¸ê®Æ®wÅX°Êµ{¦¡¡C";
+ Text[ arabic ] = "áÇ íæÌÏ ÈÑÇãÌ ÊÔÛíá ÞæÇÚÏ ÈíÇäÇÊ ãËÈÊå.";
+ Text[ dutch ] = "Geen database-drivers geïnstalleerd.";
+ Text[ chinese_simplified ] = "ûÓа²×°Êý¾Ý¿âÇý¶¯³ÌÐò¡£";
+ Text[ greek ] = "Äåí Ý÷åé ãßíåé åãêáôÜóôáóç ðñïãñÜììáôïò ïäÞãçóçò âÜóçò äåäïìÝíùí.";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º µå¶óÀ̹ö°¡ ¼³Ä¡µÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Text[ turkish ] = "Kurulmuþ veritabaný sürücüsü mevcut deðil.";
+ Text[ language_user1 ] = " ";
+};
+String STR_BTN_NEW_DOC
+{
+ Text = "~Neues Dokument" ;
+ Text [ English ] = "~New document" ;
+ Text [ norwegian ] = "~New doc." ;
+ Text [ italian ] = "Nuovo documento" ;
+ Text [ portuguese_brazilian ] = "~Novo doc." ;
+ Text [ portuguese ] = "~Novo documento" ;
+ Text [ finnish ] = "~Uusi asiakirja" ;
+ Text [ danish ] = "Nyt dokument" ;
+ Text [ french ] = "~Nouveau document" ;
+ Text [ swedish ] = "~Nytt dokument" ;
+ Text [ dutch ] = "~Nieuw document" ;
+ Text [ spanish ] = "~Nuevo documento" ;
+ Text [ english_us ] = "~New Document" ;
+ Text[ chinese_simplified ] = "н¨Îĵµ(~N)";
+ Text[ russian ] = "Íîâûé äîêóìåíò";
+ Text[ polish ] = "Nowy dok.";
+ Text[ japanese ] = "V‚µ‚¢•¶‘(~N)";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(~N)";
+ Text[ arabic ] = "ãÓÊäÏ ÌÏíÏ";
+ Text[ dutch ] = "~Nieuw document";
+ Text[ chinese_simplified ] = "н¨Îĵµ(~N)";
+ Text[ greek ] = "Äçìéïõñãßá åããñÜöïõ";
+ Text[ korean ] = "»õ·Î¿î ¹®¼­(~N)";
+ Text[ turkish ] = "~Yeni belge";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_BTN_NEWDOC
+{
+ Text = "~Neues Dok." ;
+ Text [ English ] = "~New doc." ;
+ Text[ english_us ] = "~New doc.";
+ Text[ portuguese ] = "~Novo doc.";
+ Text[ russian ] = "Íîâûé äîêóìåíò";
+ Text[ dutch ] = "~Nieuw doc.";
+ Text[ french ] = "~Nouveau doc.";
+ Text[ spanish ] = "~Nuevo doc.";
+ Text[ italian ] = "Nuovo doc.";
+ Text[ danish ] = "Nyt dok.";
+ Text[ swedish ] = "~Nytt dok.";
+ Text[ polish ] = "Nowy dok.";
+ Text[ portuguese_brazilian ] = "~New doc.";
+ Text[ japanese ] = "V‚µ‚¢•¶‘(~N)";
+ Text[ chinese_simplified ] = "н¨Îĵµ(~N)";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(~N)";
+ Text[ arabic ] = "ãÓÊäÏ ÌÏíÏ";
+ Text[ dutch ] = "~Nieuw doc.";
+ Text[ chinese_simplified ] = "н¨Îĵµ(~N)";
+ Text[ greek ] = "Äçìéïõñãßá åããñÜöïõ";
+ Text[ korean ] = "»õ·Î¿î ¹®¼­.(~N)";
+ Text[ turkish ] = "~Yeni blg.";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_SENDER_TOKENS
+{
+ Text = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;COUNTRY; ;POSTALCODE; ;CITY;CR;";
+ Text [ English ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text [ english_us ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ portuguese ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;COUNTRY; ;POSTALCODE; ;CITY;CR;";
+ Text[ russian ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ greek ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ dutch ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ french ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ spanish ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;COUNTRY; ;POSTALCODE; ;CITY;CR;";
+ Text[ italian ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;COUNTRY; ;POSTALCODE; ;CITY;CR;";
+ Text[ danish ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;COUNTRY; ;POSTALCODE; :CITY;CR;";
+ Text[ swedish ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;COUNTRY; ;POSTALCODE; ;CITY;CR; ";
+ Text[ polish ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ portuguese_brazilian ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ japanese ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ korean ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ chinese_simplified ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ chinese_traditional ] = "COMPANY;CR;FIRSTNAME;;LASTNAME;CR;ADDRESS;CR;CITY;;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ turkish ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+ Text[ arabic ] = "COMPANY;CR;FIRSTNAME; ;LASTNAME;CR;ADDRESS;CR;CITY; ;STATEPROV; ;POSTALCODE;CR;COUNTRY;CR;";
+};
+
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
new file mode 100644
index 000000000000..d6d9b6dbde44
--- /dev/null
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -0,0 +1,803 @@
+/*************************************************************************
+ *
+ * $RCSfile: envfmt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <tools/pstm.hxx>
+#include "hintids.hxx"
+
+#ifndef _SVX_PAPERINF_HXX //autogen
+#include <svx/paperinf.hxx>
+#endif
+#ifndef _SVX_TSTPITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "frmatr.hxx"
+#include "swtypes.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "basesh.hxx"
+#include "chrdlg.hxx"
+#include "drpcps.hxx"
+#include "envfmt.hxx"
+#include "fmtcol.hxx"
+#include "pardlg.hxx"
+#include "pattern.hxx"
+#include "poolfmt.hxx"
+#include "uiborder.hxx"
+#include "uitool.hxx"
+
+#include "envfmt.hrc"
+
+static PopupMenu *pMenu;
+static long lUserW = 5669; // 10 cm
+static long lUserH = 5669; // 10 cm
+
+SV_DECL_VARARR_SORT( ItemRanges, long, 0, 10 )
+SV_IMPL_VARARR_SORT( ItemRanges, long )
+
+SV_DECL_VARARR( CompactRanges, long, 0, 10 )
+SV_IMPL_VARARR( CompactRanges, long )
+
+// --------------------------------------------------------------------------
+
+
+SwEnvFmtPage::SwEnvFmtPage(Window* pParent, const SfxItemSet& rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_ENV_FMT), rSet),
+
+ aAddrInfo (this, SW_RES(TXT_ADDRESSEE)),
+ aAddrLeftText (this, SW_RES(TXT_ADDR_LEFT)),
+ aAddrLeftField (this, SW_RES(FLD_ADDR_LEFT)),
+ aAddrTopText (this, SW_RES(TXT_ADDR_TOP )),
+ aAddrTopField (this, SW_RES(FLD_ADDR_TOP )),
+ aAddrEditButton(this, SW_RES(BTN_ADDR_EDIT)),
+ aSendInfo (this, SW_RES(TXT_SENDER )),
+ aSendLeftText (this, SW_RES(TXT_SEND_LEFT)),
+ aSendLeftField (this, SW_RES(FLD_SEND_LEFT)),
+ aSendTopText (this, SW_RES(TXT_SEND_TOP )),
+ aSendTopField (this, SW_RES(FLD_SEND_TOP )),
+ aSendEditButton(this, SW_RES(BTN_SEND_EDIT)),
+ aPreview (this, SW_RES(WIN_PREVIEW )),
+ aPositionsGroup(this, SW_RES(GRP_POSITIONS)),
+ aFormatText (this, SW_RES(TXT_FORMAT )),
+ aFormatBox (this, SW_RES(BOX_FORMAT )),
+ aWidthText (this, SW_RES(TXT_WIDTH )),
+ aWidthField (this, SW_RES(FLD_WIDTH )),
+ aHeightText (this, SW_RES(TXT_HEIGHT )),
+ aHeightField (this, SW_RES(FLD_HEIGHT )),
+ aSizeGroup (this, SW_RES(GRP_SIZE ))
+
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ // Metriken
+ FieldUnit aMetric = ::GetDfltMetric(FALSE);
+ SetMetric(aAddrLeftField, aMetric);
+ SetMetric(aAddrTopField , aMetric);
+ SetMetric(aSendLeftField, aMetric);
+ SetMetric(aSendTopField , aMetric);
+ SetMetric(aWidthField , aMetric);
+ SetMetric(aHeightField , aMetric);
+
+ // Menues einhaengen
+ ::pMenu = new PopupMenu(SW_RES(MNU_EDIT));
+ aAddrEditButton.SetPopupMenu(::pMenu);
+ aSendEditButton.SetPopupMenu(::pMenu);
+
+ // Handler installieren
+ Link aLk = LINK(this, SwEnvFmtPage, ModifyHdl);
+ aAddrLeftField .SetModifyHdl( aLk );
+ aAddrTopField .SetModifyHdl( aLk );
+ aSendLeftField .SetModifyHdl( aLk );
+ aSendTopField .SetModifyHdl( aLk );
+ aWidthField .SetModifyHdl( aLk );
+ aHeightField .SetModifyHdl( aLk );
+
+ aLk = LINK(this, SwEnvFmtPage, EditHdl );
+ aAddrEditButton.SetSelectHdl( aLk );
+ aSendEditButton.SetSelectHdl( aLk );
+
+ aFormatBox .SetSelectHdl(LINK(this, SwEnvFmtPage, FormatHdl));
+
+ // aFormatBox
+ int i;
+ for (i = SVX_PAPER_A3; i <= SVX_PAPER_KAI32BIG; i++)
+ {
+ if (i != SVX_PAPER_USER)
+ {
+ String aPaperName = SvxPaperInfo::GetName((SvxPaper) i),
+ aEntryName;
+
+ USHORT nPos = 0;
+ BOOL bFound = FALSE;
+ while (nPos < aFormatBox.GetEntryCount() && !bFound)
+ {
+ aEntryName = aFormatBox.GetEntry(i);
+ if (aEntryName < aPaperName)
+ nPos++;
+ else
+ bFound = TRUE;
+ }
+ aFormatBox.InsertEntry(aPaperName, nPos);
+ aIDs.Insert((USHORT) i, nPos);
+ }
+ }
+ aFormatBox.InsertEntry(SvxPaperInfo::GetName(SVX_PAPER_USER));
+ aIDs.Insert((USHORT) SVX_PAPER_USER, aIDs.Count());
+
+ // Timer einstellen
+ aPreviewTimer.SetTimeout(500);
+ aPreviewTimer.SetTimeoutHdl(LINK(this, SwEnvFmtPage, PreviewHdl));
+}
+
+// --------------------------------------------------------------------------
+
+
+__EXPORT SwEnvFmtPage::~SwEnvFmtPage()
+{
+ aAddrEditButton.SetPopupMenu(0);
+ aSendEditButton.SetPopupMenu(0);
+ delete ::pMenu;
+}
+
+// --------------------------------------------------------------------------
+
+
+IMPL_LINK_INLINE_START( SwEnvFmtPage, ModifyHdl, Edit *, pEdit )
+{
+ pLastEdit = pEdit;
+ aPreviewTimer.Start();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwEnvFmtPage, ModifyHdl, Edit *, pEdit )
+
+// --------------------------------------------------------------------------
+
+
+IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
+{
+ SwWrtShell* pSh = GetParent()->pSh;
+ ASSERT(pSh, "Shell fehlt");
+
+ // Collection-Ptr ermitteln
+ BOOL bSender = pButton != &aAddrEditButton;
+
+ SwTxtFmtColl* pColl = pSh->GetTxtCollFromPool(
+ bSender ? RES_POOLCOLL_SENDADRESS : RES_POOLCOLL_JAKETADRESS);
+ ASSERT(pColl, "Text-Collection fehlt");
+
+ switch (pButton->GetCurItemId())
+ {
+ case MID_CHAR:
+ {
+ SfxItemSet *pSet = GetCollItemSet(pColl, bSender);
+
+ // Damit die Hintergrundfarbe nicht uebergebuegelt wird:
+ SfxAllItemSet aTmpSet(*pSet);
+
+ // Das CHRATR_BACKGROUND-Attribut wird fuer den Dialog in
+ // ein RES_BACKGROUND verwandelt und wieder zurueck ...
+ const SfxPoolItem *pTmpBrush;
+
+ if( SFX_ITEM_SET == aTmpSet.GetItemState( RES_CHRATR_BACKGROUND,
+ TRUE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_BACKGROUND );
+ aTmpSet.Put( aTmpBrush );
+ }
+ else
+ aTmpSet.ClearItem( RES_BACKGROUND );
+
+ SwCharDlg* pDlg = new SwCharDlg(GetParent(), pSh->GetView(), aTmpSet, &pColl->GetName());
+ if (pDlg->Execute() == RET_OK)
+ {
+ SfxItemSet aOutputSet( *pDlg->GetOutputItemSet() );
+ if( SFX_ITEM_SET == aOutputSet.GetItemState( RES_BACKGROUND,
+ FALSE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_CHRATR_BACKGROUND );
+ pSet->Put( aTmpBrush );
+ }
+ aOutputSet.ClearItem( RES_BACKGROUND );
+ //pColl->SetAttr( aTmpSet );
+ pSet->Put(aOutputSet);
+ }
+ delete pDlg;
+ }
+ break;
+
+ case MID_PARA:
+ {
+ SfxItemSet *pSet = GetCollItemSet(pColl, bSender);
+
+ // Damit die Tabulatoren nicht uebergebuegelt werden:
+ SfxAllItemSet aTmpSet(*pSet);
+
+ // Tabulatoren, DefaultTabs ins ItemSet Stecken
+ const SvxTabStopItem& rDefTabs = (const SvxTabStopItem&)
+ pSh->GetView().GetCurShell()->GetPool().GetDefaultItem(RES_PARATR_TABSTOP);
+
+ USHORT nDefDist = ::GetTabDist( rDefTabs );
+ SfxUInt16Item aDefDistItem( SID_ATTR_TABSTOP_DEFAULTS, nDefDist );
+ aTmpSet.Put( aDefDistItem );
+
+ // Aktueller Tab
+ SfxUInt16Item aTabPos( SID_ATTR_TABSTOP_POS, 0 );
+ aTmpSet.Put( aTabPos );
+
+ // linker Rand als Offset
+ const long nOff = ((SvxLRSpaceItem&)aTmpSet.Get( RES_LR_SPACE )).
+ GetTxtLeft();
+ SfxInt32Item aOff( SID_ATTR_TABSTOP_OFFSET, nOff );
+ aTmpSet.Put( aOff );
+
+ // BoxInfo setzen
+ ::PrepareBoxInfo( aTmpSet, *pSh );
+
+ SwParaDlg *pDlg = new SwParaDlg(GetParent(), pSh->GetView(), aTmpSet, DLG_ENVELOP, &pColl->GetName());
+
+ if ( pDlg->Execute() == RET_OK )
+ {
+ // Defaults evtl umsetzen
+ const SfxPoolItem* pItem = 0;
+ SfxItemSet* pOutputSet = (SfxItemSet*)pDlg->GetOutputItemSet();
+ USHORT nNewDist;
+ if( SFX_ITEM_SET == pOutputSet->GetItemState( SID_ATTR_TABSTOP_DEFAULTS,
+ FALSE, &pItem ) &&
+ nDefDist != (nNewDist = ((SfxUInt16Item*)pItem)->GetValue()) )
+ {
+ SvxTabStopItem aDefTabs( 0, 0 );
+ MakeDefTabs( nNewDist, aDefTabs );
+ pSh->SetDefault( aDefTabs );
+ pOutputSet->ClearItem( SID_ATTR_TABSTOP_DEFAULTS );
+ }
+ if( pOutputSet->Count() )
+ {
+ //pColl->SetAttr( *pOutputSet );
+ pSet->Put(*pOutputSet);
+ }
+ }
+ delete pDlg;
+ }
+ break;
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Ein temporaeres Itemset, das bei Abbruch verworfen wird
+------------------------------------------------------------------------*/
+
+SfxItemSet *SwEnvFmtPage::GetCollItemSet(SwTxtFmtColl* pColl, BOOL bSender)
+{
+ SfxItemSet *&pSet = bSender ? GetParent()->pSenderSet : GetParent()->pAddresseeSet;
+
+ if (!pSet)
+ {
+ // Range ermitteln (Ranges beider Itemsets mergen)
+ const USHORT *pRanges = pColl->GetAttrSet().GetRanges();
+
+ static USHORT __READONLY_DATA aRanges[] =
+ {
+ RES_PARATR_BEGIN, RES_PARATR_ADJUST,
+ RES_PARATR_TABSTOP, RES_PARATR_END-1,
+ RES_LR_SPACE, RES_UL_SPACE,
+ RES_BACKGROUND, RES_SHADOW,
+ SID_ATTR_TABSTOP_POS, SID_ATTR_TABSTOP_POS,
+ SID_ATTR_TABSTOP_DEFAULTS, SID_ATTR_TABSTOP_DEFAULTS,
+ SID_ATTR_TABSTOP_OFFSET, SID_ATTR_TABSTOP_OFFSET,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ 0, 0
+ };
+
+ // BruteForce-Merge, weil MergeRange in SvTools buggy ist:
+ USHORT i = 0;
+ ItemRanges aMergedRanges;
+
+ while (pRanges[i])
+ {
+ for (USHORT nPos = pRanges[i]; nPos <= pRanges[i+1]; nPos++)
+ aMergedRanges.Insert(nPos);
+ i += 2;
+ }
+
+ i = 0;
+
+ while (aRanges[i])
+ {
+ for (USHORT nPos = aRanges[i]; nPos <= aRanges[i+1]; nPos++)
+ aMergedRanges.Insert(nPos);
+ i += 2;
+ }
+
+ // Ranges kompaktieren
+ CompactRanges aCompactedRanges;
+
+ aCompactedRanges.Insert(aMergedRanges[0], aCompactedRanges.Count());
+
+ for (i = 0; i < aMergedRanges.Count(); i++)
+ {
+ while (i + 1 < aMergedRanges.Count() &&
+ aMergedRanges[i+1] - aMergedRanges[i] == 1)
+ {
+ i++;
+ }
+ long nEnd = aMergedRanges[i];
+ aCompactedRanges.Insert(nEnd, aCompactedRanges.Count());
+
+ if (i + 1 < aMergedRanges.Count())
+ {
+ long nStart = aMergedRanges[i+1];
+ aCompactedRanges.Insert(nStart, aCompactedRanges.Count());
+ }
+ }
+
+ // Neue Ranges erzeugen
+ USHORT *pNewRanges = new USHORT[aCompactedRanges.Count() + 1];
+ for (i = 0; i < aCompactedRanges.Count(); i++)
+ pNewRanges[i] = (USHORT)aCompactedRanges[i];
+
+ pNewRanges[i] = 0;
+
+ pSet = new SfxItemSet(GetParent()->pSh->GetView().GetCurShell()->GetPool(),
+ pNewRanges);
+
+ pSet->Put(pColl->GetAttrSet());
+ delete pNewRanges;
+ }
+
+ return pSet;
+}
+
+// --------------------------------------------------------------------------
+
+
+IMPL_LINK( SwEnvFmtPage, FormatHdl, ListBox *, EMPTYARG )
+{
+ long lWidth;
+ long lHeight;
+ long lSendFromLeft;
+ long lSendFromTop;
+ long lAddrFromLeft;
+ long lAddrFromTop;
+
+ USHORT nPaper = aIDs[aFormatBox.GetSelectEntryPos()];
+ if (nPaper != (USHORT)SVX_PAPER_USER)
+ {
+ Size aSz = SvxPaperInfo::GetPaperSize((SvxPaper)nPaper);
+ lWidth = Max(aSz.Width(), aSz.Height());
+ lHeight = Min(aSz.Width(), aSz.Height());
+ }
+ else
+ {
+ lWidth = lUserW;
+ lHeight = lUserH;
+ }
+
+ lSendFromLeft = 566; // 1cm
+ lSendFromTop = 566; // 1cm
+ lAddrFromLeft = lWidth / 2;
+ lAddrFromTop = lHeight / 2;
+
+ SetFldVal(aAddrLeftField, lAddrFromLeft);
+ SetFldVal(aAddrTopField , lAddrFromTop );
+ SetFldVal(aSendLeftField, lSendFromLeft);
+ SetFldVal(aSendTopField , lSendFromTop );
+
+ SetFldVal(aWidthField , lWidth );
+ SetFldVal(aHeightField, lHeight);
+
+ SetMinMax();
+
+ FillItem(GetParent()->aEnvItem);
+ aPreview.Invalidate();
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+IMPL_LINK( SwEnvFmtPage, PreviewHdl, Timer *, EMPTYARG )
+{
+ long lWVal = GetFldVal(aWidthField );
+ long lHVal = GetFldVal(aHeightField);
+
+ long lWidth = Max(lWVal, lHVal);
+ long lHeight = Min(lWVal, lHVal);
+
+ if (pLastEdit == &aWidthField || pLastEdit == &aHeightField)
+ {
+ SvxPaper ePaper = SvxPaperInfo::GetPaper(
+ Size(lHeight, lWidth), MAP_TWIP, TRUE);
+ for (USHORT i = 0; i < aIDs.Count(); i++)
+ if (aIDs[i] == (USHORT)ePaper)
+ aFormatBox.SelectEntryPos(i);
+
+ // Benutzergroesse merken
+ if (aIDs[aFormatBox.GetSelectEntryPos()] == (USHORT)SVX_PAPER_USER)
+ {
+ lUserW = lWidth ;
+ lUserH = lHeight;
+ }
+
+ aFormatBox.GetSelectHdl().Call(&aFormatBox);
+ }
+ else
+ {
+ FillItem(GetParent()->aEnvItem);
+ SetMinMax();
+ aPreview.Invalidate();
+ }
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+void SwEnvFmtPage::SetMinMax()
+{
+ long lWVal = GetFldVal(aWidthField );
+ long lHVal = GetFldVal(aHeightField);
+
+ long lWidth = Max(lWVal, lHVal),
+ lHeight = Min(lWVal, lHVal);
+
+ // Min und Max
+ aAddrLeftField.SetMin((long) 100 * (GetFldVal(aSendLeftField) + 566), FUNIT_TWIP);
+ aAddrLeftField.SetMax((long) 100 * (lWidth - 2 * 566), FUNIT_TWIP);
+ aAddrTopField .SetMin((long) 100 * (GetFldVal(aSendTopField ) + 2 * 566), FUNIT_TWIP);
+ aAddrTopField .SetMax((long) 100 * (lHeight - 2 * 566), FUNIT_TWIP);
+ aSendLeftField.SetMin((long) 100 * (566), FUNIT_TWIP);
+ aSendLeftField.SetMax((long) 100 * (GetFldVal(aAddrLeftField) - 566), FUNIT_TWIP);
+ aSendTopField .SetMin((long) 100 * (566), FUNIT_TWIP);
+ aSendTopField .SetMax((long) 100 * (GetFldVal(aAddrTopField ) - 2 * 566), FUNIT_TWIP);
+
+ // First und Last
+ aAddrLeftField.SetFirst(aAddrLeftField.GetMin());
+ aAddrLeftField.SetLast (aAddrLeftField.GetMax());
+ aAddrTopField .SetFirst(aAddrTopField .GetMin());
+ aAddrTopField .SetLast (aAddrTopField .GetMax());
+ aSendLeftField.SetFirst(aSendLeftField.GetMin());
+ aSendLeftField.SetLast (aSendLeftField.GetMax());
+ aSendTopField .SetFirst(aSendTopField .GetMin());
+ aSendTopField .SetLast (aSendTopField .GetMax());
+
+ // Fields neu formatieren
+ aAddrLeftField.Reformat();
+ aAddrTopField .Reformat();
+ aSendLeftField.Reformat();
+ aSendTopField .Reformat();
+ aWidthField .Reformat();
+ aHeightField .Reformat();
+}
+
+// --------------------------------------------------------------------------
+
+
+SfxTabPage* __EXPORT SwEnvFmtPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwEnvFmtPage(pParent, rSet);
+}
+
+// ----------------------------------------------------------------------------
+
+
+void __EXPORT SwEnvFmtPage::ActivatePage(const SfxItemSet& rSet)
+{
+ SfxItemSet aSet(rSet);
+ aSet.Put(GetParent()->aEnvItem);
+ Reset(aSet);
+}
+
+// ----------------------------------------------------------------------------
+
+
+int __EXPORT SwEnvFmtPage::DeactivatePage(SfxItemSet* pSet)
+{
+ FillItemSet(*pSet);
+ return SfxTabPage::LEAVE_PAGE;
+}
+
+// --------------------------------------------------------------------------
+
+
+void SwEnvFmtPage::FillItem(SwEnvItem& rItem)
+{
+ rItem.lAddrFromLeft = GetFldVal(aAddrLeftField);
+ rItem.lAddrFromTop = GetFldVal(aAddrTopField );
+ rItem.lSendFromLeft = GetFldVal(aSendLeftField);
+ rItem.lSendFromTop = GetFldVal(aSendTopField );
+
+ USHORT nPaper = aIDs[aFormatBox.GetSelectEntryPos()];
+ if (nPaper == (USHORT)SVX_PAPER_USER)
+ {
+ long lWVal = GetFldVal(aWidthField );
+ long lHVal = GetFldVal(aHeightField);
+ rItem.lWidth = Max(lWVal, lHVal);
+ rItem.lHeight = Min(lWVal, lHVal);
+ }
+ else
+ {
+ long lWVal = SvxPaperInfo::GetPaperSize((SvxPaper)nPaper).Width ();
+ long lHVal = SvxPaperInfo::GetPaperSize((SvxPaper)nPaper).Height();
+ rItem.lWidth = Max(lWVal, lHVal);
+ rItem.lHeight = Min(lWVal, lHVal);
+ }
+}
+
+// --------------------------------------------------------------------------
+
+
+BOOL __EXPORT SwEnvFmtPage::FillItemSet(SfxItemSet& rSet)
+{
+ FillItem(GetParent()->aEnvItem);
+ rSet.Put(GetParent()->aEnvItem);
+ return TRUE;
+}
+
+// --------------------------------------------------------------------------
+
+
+void __EXPORT SwEnvFmtPage::Reset(const SfxItemSet& rSet)
+{
+ const SwEnvItem& rItem = (const SwEnvItem&) rSet.Get(FN_ENVELOP);
+
+ SvxPaper ePaper = SvxPaperInfo::GetPaper(
+ Size( Min(rItem.lWidth, rItem.lHeight),
+ Max(rItem.lWidth, rItem.lHeight)), MAP_TWIP, TRUE);
+ for (USHORT i = 0; i < (USHORT) aIDs.Count(); i++)
+ if (aIDs[i] == (USHORT)ePaper)
+ aFormatBox.SelectEntryPos(i);
+
+ // Die MetricFields
+ SetFldVal(aAddrLeftField, rItem.lAddrFromLeft);
+ SetFldVal(aAddrTopField , rItem.lAddrFromTop );
+ SetFldVal(aSendLeftField, rItem.lSendFromLeft);
+ SetFldVal(aSendTopField , rItem.lSendFromTop );
+ SetFldVal(aWidthField , Max(rItem.lWidth, rItem.lHeight));
+ SetFldVal(aHeightField , Min(rItem.lWidth, rItem.lHeight));
+ SetMinMax();
+
+ DELETEZ(GetParent()->pSenderSet);
+ DELETEZ(GetParent()->pAddresseeSet);
+}
+
+
+/*--------------------------------------------------------------------
+$Log: not supported by cvs2svn $
+Revision 1.78 2000/09/18 16:05:24 willem.vandorp
+OpenOffice header added.
+
+Revision 1.77 2000/04/26 14:44:49 os
+GetName() returns const String&
+
+Revision 1.76 2000/04/17 05:36:01 os
+#75131# paper formats unlimited
+
+Revision 1.75 2000/02/11 14:45:16 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.74 1998/09/08 14:52:42 OS
+#56134# Metric fuer Text und HTML getrennt
+
+
+ Rev 1.73 08 Sep 1998 16:52:42 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.72 29 May 1998 12:01:42 TJ
+ include
+
+ Rev 1.71 09 Apr 1998 14:23:48 OM
+ #47097# Undo von Vorlagenaenderungen ermoeglichen
+
+ Rev 1.70 05 Feb 1998 16:47:06 OM
+ #47086# Fuer HPUX mit USHORT statt mit SvxPaper arbeiten
+
+ Rev 1.69 05 Feb 1998 15:33:26 OM
+ HPUX-Umstellung SvxPaper
+
+ Rev 1.68 05 Feb 1998 14:49:04 OS
+ Absatzdialog: Numerierung nicht fuer Umschlaege
+
+ Rev 1.67 24 Nov 1997 11:52:12 MA
+ includes
+
+ Rev 1.66 12 Sep 1997 10:42:14 OS
+ ITEMID_* definiert
+
+ Rev 1.65 02 Sep 1997 13:23:50 OS
+ includes
+
+ Rev 1.64 09 Aug 1997 13:13:14 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.63 08 Aug 1997 17:29:38 OM
+ Headerfile-Umstellung
+
+ Rev 1.62 07 Aug 1997 15:00:12 OM
+ Headerfile-Umstellung
+
+ Rev 1.61 20 Feb 1997 17:51:38 MA
+ fix: Deactivate ueber Fill
+
+ Rev 1.60 11 Nov 1996 09:44:18 MA
+ ResMgr
+
+ Rev 1.59 01 Oct 1996 13:31:20 AMA
+ Fix: RES_CHRATR_BACKGROUND nur bei Aenderung setzen.
+
+ Rev 1.58 17 Sep 1996 16:55:22 AMA
+ Chg: Zeichenhintergrund als Zeichenattribut
+
+ Rev 1.57 26 Jul 1996 20:36:38 MA
+ includes
+
+ Rev 1.56 06 Feb 1996 15:18:56 JP
+ Link Umstellung 305
+
+ Rev 1.55 05 Feb 1996 17:29:02 OM
+ Parent-Win an Par/Chardlg uebergeben
+
+ Rev 1.54 28 Nov 1995 21:14:56 JP
+ UiSystem-Klasse aufgehoben, in initui/swtype aufgeteilt
+
+ Rev 1.53 27 Nov 1995 19:35:46 OM
+ HasExchangeSupport->303a
+
+ Rev 1.52 24 Nov 1995 16:59:44 OM
+ PCH->PRECOMPILED
+
+ Rev 1.51 23 Nov 1995 18:01:28 OM
+ TabDlg entfernt
+
+ Rev 1.50 22 Nov 1995 18:57:36 MA
+ opt/fix: blc-Warnings
+
+ Rev 1.49 13 Nov 1995 13:44:26 MA
+ chg: Link-Cast entfernt
+
+ Rev 1.48 08 Nov 1995 13:48:24 OM
+ Change->Set
+
+ Rev 1.47 31 Oct 1995 18:38:20 OM
+ GetActive... entfernt
+
+ Rev 1.46 24 Aug 1995 09:25:30 MA
+ fix: Ranges verfeinert
+
+ Rev 1.45 22 Aug 1995 09:31:38 MA
+ svxitems-header entfernt
+
+ Rev 1.44 16 Aug 1995 17:47:58 MA
+ Riesenheader dialogs entfernt.
+
+ Rev 1.43 14 Aug 1995 08:39:28 MA
+ fix: Absatz-Dlg, einige Items entfernt.
+
+ Rev 1.42 12 Aug 1995 16:29:18 MA
+ fix: fehlende Impl notduerftig nachgeholt
+
+ Rev 1.41 02 Aug 1995 17:39:26 OM
+ Datenbankumstellung
+
+ Rev 1.40 30 May 1995 17:01:36 ER
+ Umstellung SwPaper... SvxPaper...
+
+ Rev 1.39 24 May 1995 18:16:48 ER
+ Segmentierung
+
+ Rev 1.38 05 Apr 1995 09:26:48 JP
+ Benutzung vom Link-Makro eingeschraenkt
+
+ Rev 1.37 30 Mar 1995 18:38:44 PK
+ geht immer weiter
+
+ Rev 1.36 24 Mar 1995 20:30:04 PK
+ geht immer weiter
+
+ Rev 1.35 23 Mar 1995 18:33:18 PK
+ geht immer weiter ...
+
+ Rev 1.34 17 Mar 1995 17:10:02 PK
+ geht immer weiter
+
+ Rev 1.33 15 Mar 1995 18:37:42 PK
+ geht immer weiter
+
+ Rev 1.32 06 Mar 1995 00:08:14 PK
+ linkbarer envelp-zustand
+
+ Rev 1.31 04 Mar 1995 22:54:52 PK
+ geht immer weiter
+
+ Rev 1.30 01 Mar 1995 11:12:20 MA
+ weg: Sw-BoxItem, neu: KeepItem.
+
+ Rev 1.29 21 Feb 1995 15:39:04 PK
+ erstmal eingecheckt
+
+ Rev 1.28 20 Feb 1995 19:39:18 PK
+ erstma eingecheckt
+
+--------------------------------------------------------------*/
+
diff --git a/sw/source/ui/envelp/envfmt.hrc b/sw/source/ui/envelp/envfmt.hrc
new file mode 100644
index 000000000000..7053bee6dd44
--- /dev/null
+++ b/sw/source/ui/envelp/envfmt.hrc
@@ -0,0 +1,111 @@
+/*************************************************************************
+ *
+ * $RCSfile: envfmt.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _ENVFMT_HRC
+#define _ENVFMT_HRC
+
+// #include *****************************************************************
+
+#include "envelp.hrc"
+
+// Lokale Resourcen *********************************************************
+
+#define TXT_ADDRESSEE 1
+#define TXT_ADDR_LEFT 2
+#define FLD_ADDR_LEFT 3
+#define TXT_ADDR_TOP 4
+#define FLD_ADDR_TOP 5
+#define BTN_ADDR_EDIT 6
+#define TXT_SENDER 7
+#define TXT_SEND_LEFT 8
+#define FLD_SEND_LEFT 9
+#define TXT_SEND_TOP 10
+#define FLD_SEND_TOP 11
+#define BTN_SEND_EDIT 12
+#define WIN_PREVIEW 13
+#define GRP_POSITIONS 14
+#define TXT_FORMAT 15
+#define BOX_FORMAT 16
+#define TXT_WIDTH 17
+#define FLD_WIDTH 18
+#define TXT_HEIGHT 19
+#define FLD_HEIGHT 20
+#define GRP_SIZE 21
+#define BTN_OK 22
+#define BTN_CANCEL 23
+
+#define MID_CHAR 1
+#define MID_PARA 2
+
+// Globale Resourcen ********************************************************
+
+#define MNU_EDIT (RC_ENVFMT_BEGIN )
+
+// Ueberlaufpruefung ********************************************************
+
+#define ENVFMT_ACT_END MNU_EDIT
+
+#if ENVFMT_ACT_END > RC_ENVFMT_END
+#error Resource-Ueberlauf in #file, #line
+#endif
+
+#endif
+
diff --git a/sw/source/ui/envelp/envfmt.hxx b/sw/source/ui/envelp/envfmt.hxx
new file mode 100644
index 000000000000..933a3149df11
--- /dev/null
+++ b/sw/source/ui/envelp/envfmt.hxx
@@ -0,0 +1,140 @@
+/*************************************************************************
+ *
+ * $RCSfile: envfmt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ENVFMT_HXX
+#define _ENVFMT_HXX
+
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_USHORTS
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _MENUBTN_HXX //autogen
+#include <vcl/menubtn.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#include "envlop.hxx"
+
+// class SwEnvFmtPage ---------------------------------------------------------
+
+class SwEnvFmtPage : public SfxTabPage
+{
+ FixedInfo aAddrInfo;
+ FixedText aAddrLeftText;
+ MetricField aAddrLeftField;
+ FixedText aAddrTopText;
+ MetricField aAddrTopField;
+ MenuButton aAddrEditButton;
+ FixedInfo aSendInfo;
+ FixedText aSendLeftText;
+ MetricField aSendLeftField;
+ FixedText aSendTopText;
+ MetricField aSendTopField;
+ MenuButton aSendEditButton;
+ SwEnvPreview aPreview;
+ GroupBox aPositionsGroup;
+ FixedText aFormatText;
+ ListBox aFormatBox;
+ FixedText aWidthText;
+ MetricField aWidthField;
+ FixedText aHeightText;
+ MetricField aHeightField;
+ GroupBox aSizeGroup;
+
+ SvUShorts aIDs;
+ Timer aPreviewTimer;
+ Edit* pLastEdit;
+
+ SwEnvFmtPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwEnvFmtPage();
+
+ DECL_LINK( ModifyHdl, Edit * );
+ DECL_LINK( EditHdl, MenuButton * );
+ DECL_LINK( FormatHdl, ListBox * );
+ DECL_LINK( PreviewHdl, Timer * );
+
+ void SetMinMax();
+
+ SfxItemSet *GetCollItemSet(SwTxtFmtColl* pColl, BOOL bSender);
+ SwEnvDlg *GetParent() {return (SwEnvDlg*) SfxTabPage::GetParent()->GetParent();}
+
+public:
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ void FillItem(SwEnvItem& rItem);
+ virtual BOOL FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+};
+
+#endif
+
+
diff --git a/sw/source/ui/envelp/envfmt.src b/sw/source/ui/envelp/envfmt.src
new file mode 100644
index 000000000000..fae839ad9059
--- /dev/null
+++ b/sw/source/ui/envelp/envfmt.src
@@ -0,0 +1,632 @@
+/*************************************************************************
+ *
+ * $RCSfile: envfmt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "envfmt.hrc"
+#include "helpid.h"
+ // TP_ENV_FMT ---------------------------------------------------------------
+TabPage TP_ENV_FMT
+{
+ HelpID = HID_ENV_FMT ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ FixedText TXT_ADDRESSEE
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "Empfänger" ;
+ Text [ ENGLISH ] = "Addressee" ;
+ Text [ norwegian ] = "Addressee" ;
+ Text [ italian ] = "Destinatario" ;
+ Text [ portuguese_brazilian ] = "Endereço" ;
+ Text [ portuguese ] = "Destinatário" ;
+ Text [ finnish ] = "Vastaanottaja" ;
+ Text [ danish ] = "Modtager" ;
+ Text [ french ] = "Destinataire" ;
+ Text [ swedish ] = "Mottagare" ;
+ Text [ dutch ] = "Ontvanger" ;
+ Text [ spanish ] = "Destinatario" ;
+ Text [ english_us ] = "Addressee" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊÕ¼þÈË";
+ Text[ russian ] = "Ïîëó÷àòåëü";
+ Text[ polish ] = "Odbiorca";
+ Text[ japanese ] = "ŽóŽæl";
+ Text[ chinese_traditional ] = "¦¬¥óªÌ";
+ Text[ arabic ] = "ÇáãÓÊáã";
+ Text[ greek ] = "ÐáñáëÞðôçò";
+ Text[ korean ] = "¹Þ´Â»ç¶÷";
+ Text[ turkish ] = "Alýcý";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_ADDR_LEFT
+ {
+ Pos = MAP_APPFONT ( 55 , 16 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "v~on links" ;
+ Text [ ENGLISH ] = "from left" ;
+ Text [ norwegian ] = "from left" ;
+ Text [ italian ] = "Da sinistra" ;
+ Text [ portuguese_brazilian ] = "da esquerda" ;
+ Text [ portuguese ] = "a partir da esquerda" ;
+ Text [ finnish ] = "vasemmalta" ;
+ Text [ danish ] = "fra venstre" ;
+ Text [ french ] = "à ~gauche" ;
+ Text [ swedish ] = "från vänster" ;
+ Text [ dutch ] = "~vanaf links" ;
+ Text [ spanish ] = "de izquierda" ;
+ Text [ english_us ] = "from left" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "´Ó×ó";
+ Text[ russian ] = "ñëåâà";
+ Text[ polish ] = "z lewej strony";
+ Text[ japanese ] = "¶‚©‚ç";
+ Text[ chinese_traditional ] = "±q¥ª";
+ Text[ arabic ] = "ãä ÇáíÓÇÑ";
+ Text[ greek ] = "áðü áñéóôåñÜ";
+ Text[ korean ] = "Á¿¡¼­";
+ Text[ turkish ] = "Soldan";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_ADDR_LEFT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 98 , 14 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Minimum = 0 ;
+ Maximum = 10000 ;
+ First = 0 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ Repeat = TRUE ;
+ };
+ FixedText TXT_ADDR_TOP
+ {
+ Pos = MAP_APPFONT ( 55 , 31 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "~von oben" ;
+ Text [ ENGLISH ] = "from top" ;
+ Text [ norwegian ] = "from top" ;
+ Text [ italian ] = "Dall'alto" ;
+ Text [ portuguese_brazilian ] = "do topo" ;
+ Text [ portuguese ] = "a partir do topo" ;
+ Text [ finnish ] = "ylhäältä" ;
+ Text [ danish ] = "fra oven" ;
+ Text [ french ] = "en ~haut" ;
+ Text [ swedish ] = "uppifrån" ;
+ Text [ dutch ] = "v~anaf boven" ;
+ Text [ spanish ] = "desde arriba" ;
+ Text [ english_us ] = "from top" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "´ÓÉÏ";
+ Text[ russian ] = "ñâåðõó";
+ Text[ polish ] = "z góry";
+ Text[ japanese ] = "ã‚©‚ç";
+ Text[ chinese_traditional ] = "±q¤W";
+ Text[ arabic ] = "ãä ÃÚáì";
+ Text[ greek ] = "áðü ðÜíù";
+ Text[ korean ] = "À§¿¡¼­";
+ Text[ turkish ] = "Yukardan";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_ADDR_TOP
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 98 , 29 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Minimum = 0 ;
+ Maximum = 10000 ;
+ First = 0 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ Repeat = TRUE ;
+ };
+ MenuButton BTN_ADDR_EDIT
+ {
+ Pos = MAP_APPFONT ( 12 , 29 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Text = "Bearb." ;
+ Text [ ENGLISH ] = "Edit" ;
+ Text [ norwegian ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ portuguese_brazilian ] = "Editar" ;
+ Text [ portuguese ] = "Editar" ;
+ Text [ finnish ] = "Muokkaa" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ french ] = "Modifier" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ dutch ] = "Bewerk." ;
+ Text [ spanish ] = "Editar" ;
+ Text [ english_us ] = "Edit" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "E~dytuj";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Åðåîåñã.";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ };
+ FixedText TXT_SENDER
+ {
+ Pos = MAP_APPFONT ( 12 , 46 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "Absender" ;
+ Text [ ENGLISH ] = "Sender" ;
+ Text [ norwegian ] = "Sender" ;
+ Text [ italian ] = "Mittente" ;
+ Text [ portuguese_brazilian ] = "Remetente" ;
+ Text [ portuguese ] = "Remetente" ;
+ Text [ finnish ] = "Lähettäjä" ;
+ Text [ danish ] = "Afsender" ;
+ Text [ french ] = "Expéditeur" ;
+ Text [ swedish ] = "Avsändare" ;
+ Text [ dutch ] = "Afzender" ;
+ Text [ spanish ] = "Remitente" ;
+ Text [ english_us ] = "Sender" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "·¢¼þÈË";
+ Text[ russian ] = "Îòïðàâèòåëü";
+ Text[ polish ] = "Nadawca";
+ Text[ japanese ] = "·ol";
+ Text[ chinese_traditional ] = "±H¥óªÌ";
+ Text[ arabic ] = "ÇáãÑÓá";
+ Text[ greek ] = "ÁðïóôïëÝáò";
+ Text[ korean ] = "º¸³½ »ç¶÷";
+ Text[ turkish ] = "Gönderen";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_SEND_LEFT
+ {
+ Pos = MAP_APPFONT ( 55 , 46 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "von ~links" ;
+ Text [ ENGLISH ] = "from left" ;
+ Text [ norwegian ] = "from left" ;
+ Text [ italian ] = "Da sinistra" ;
+ Text [ portuguese_brazilian ] = "da esquerda" ;
+ Text [ portuguese ] = "a partir da esquerda" ;
+ Text [ finnish ] = "vasemmalta" ;
+ Text [ danish ] = "fra venstre" ;
+ Text [ french ] = "à g~auche" ;
+ Text [ swedish ] = "från vänster" ;
+ Text [ dutch ] = "vanaf ~links" ;
+ Text [ spanish ] = "de izquierda" ;
+ Text [ english_us ] = "from left" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "´Ó×ó";
+ Text[ russian ] = "ñëåâà";
+ Text[ polish ] = "z lewej strony";
+ Text[ japanese ] = "¶‚©‚ç";
+ Text[ chinese_traditional ] = "±q¥ª";
+ Text[ arabic ] = "ãä ÇáíÓÇÑ";
+ Text[ greek ] = "áðü áñéóôåñÜ";
+ Text[ korean ] = "Á¿¡¼­";
+ Text[ turkish ] = "Soldan";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_SEND_LEFT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 98 , 44 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Minimum = 0 ;
+ Maximum = 10000 ;
+ First = 0 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ Repeat = TRUE ;
+ };
+ FixedText TXT_SEND_TOP
+ {
+ Pos = MAP_APPFONT ( 55 , 61 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "vo~n oben" ;
+ Text [ ENGLISH ] = "from top" ;
+ Text [ norwegian ] = "from top" ;
+ Text [ italian ] = "Dall'alto" ;
+ Text [ portuguese_brazilian ] = "do topo" ;
+ Text [ portuguese ] = "a partir do topo" ;
+ Text [ finnish ] = "ylhäältä" ;
+ Text [ danish ] = "fra oven" ;
+ Text [ french ] = "en ha~ut" ;
+ Text [ swedish ] = "uppifrån" ;
+ Text [ dutch ] = "vanaf ~boven" ;
+ Text [ spanish ] = "desde arriba" ;
+ Text [ english_us ] = "from top" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "´ÓÉÏ";
+ Text[ russian ] = "ñâåðõó";
+ Text[ polish ] = "z góry";
+ Text[ japanese ] = "ã‚©‚ç";
+ Text[ chinese_traditional ] = "±q¤W";
+ Text[ arabic ] = "ãä ÃÚáì";
+ Text[ greek ] = "áðü ðÜ~íù";
+ Text[ korean ] = "À§¿¡¼­";
+ Text[ turkish ] = "Yukardan";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_SEND_TOP
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 98 , 59 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Minimum = 0 ;
+ Maximum = 10000 ;
+ First = 0 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ Repeat = TRUE ;
+ };
+ MenuButton BTN_SEND_EDIT
+ {
+ Pos = MAP_APPFONT ( 12 , 59 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Text = "Bearb." ;
+ Text [ ENGLISH ] = "Edit" ;
+ Text [ norwegian ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ portuguese_brazilian ] = "Editar" ;
+ Text [ portuguese ] = "Editar" ;
+ Text [ finnish ] = "Muokkaa" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ french ] = "Modifier" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ dutch ] = "Bewerk." ;
+ Text [ spanish ] = "Editar" ;
+ Text [ english_us ] = "Edit" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "Edyt~uj";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Åðåîåñã.";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ };
+ Window WIN_PREVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 144 , 14 ) ;
+ Size = MAP_APPFONT ( 78 , 57 ) ;
+ };
+ GroupBox GRP_POSITIONS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 222 , 74 ) ;
+ Text = "Positionen" ;
+ Text [ ENGLISH ] = "Positions" ;
+ Text [ norwegian ] = "Positions" ;
+ Text [ italian ] = "Posizioni" ;
+ Text [ portuguese_brazilian ] = "Posições" ;
+ Text [ portuguese ] = "Posições" ;
+ Text [ finnish ] = "Paikat" ;
+ Text [ danish ] = "Placering" ;
+ Text [ french ] = "Positions" ;
+ Text [ swedish ] = "Positioner" ;
+ Text [ dutch ] = "Posities" ;
+ Text [ spanish ] = "Posiciones" ;
+ Text [ english_us ] = "Positions" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèè";
+ Text[ polish ] = "Pozycje";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÇÖÚ";
+ Text[ greek ] = "ÈÝóåéò";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konumlar";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_FORMAT
+ {
+ Pos = MAP_APPFONT ( 12 , 92 ) ;
+ Size = MAP_APPFONT ( 32 , 8 ) ;
+ Text = "~Format" ;
+ Text [ ENGLISH ] = "Format" ;
+ Text [ norwegian ] = "Format" ;
+ Text [ italian ] = "Formato" ;
+ Text [ portuguese_brazilian ] = "Formato" ;
+ Text [ portuguese ] = "Fo~rmato" ;
+ Text [ finnish ] = "Muotoile" ;
+ Text [ danish ] = "~Format" ;
+ Text [ french ] = "Forma~t" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ dutch ] = "~Formaat" ;
+ Text [ spanish ] = "~Formato" ;
+ Text [ english_us ] = "F~ormat" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîð~ìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÇáÍÌã";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "Format";
+ };
+ ListBox BOX_FORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 47 , 90 ) ;
+ Size = MAP_APPFONT ( 102 , 61 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText TXT_WIDTH
+ {
+ Pos = MAP_APPFONT ( 155 , 92 ) ;
+ Size = MAP_APPFONT ( 24 , 8 ) ;
+ Text = "~Breite" ;
+ Text [ ENGLISH ] = "Width" ;
+ Text [ norwegian ] = "Bredde " ;
+ Text [ italian ] = "~Largh." ;
+ Text [ portuguese_brazilian ] = "Largura" ;
+ Text [ portuguese ] = "~Largura" ;
+ Text [ finnish ] = "Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "~Largeur" ;
+ Text [ swedish ] = "~Bredd" ;
+ Text [ dutch ] = "B~reedte" ;
+ Text [ spanish ] = "A~ncho" ;
+ Text [ english_us ] = "~Width" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¿í(~W)";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "•(~W)";
+ Text[ chinese_traditional ] = "¼e(~W)";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ(~W)";
+ Text[ turkish ] = "Geniþlik";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_WIDTH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 182 , 90 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Minimum = 500 ;
+ Maximum = 10000 ;
+ First = 500 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ Repeat = TRUE ;
+ };
+ FixedText TXT_HEIGHT
+ {
+ Pos = MAP_APPFONT ( 155 , 107 ) ;
+ Size = MAP_APPFONT ( 24 , 8 ) ;
+ Text = "~Höhe" ;
+ Text [ ENGLISH ] = "Height" ;
+ Text [ norwegian ] = "Høyde " ;
+ Text [ italian ] = "~Altezza" ;
+ Text [ portuguese_brazilian ] = "Altura" ;
+ Text [ portuguese ] = "~Altura" ;
+ Text [ finnish ] = "Korkeus" ;
+ Text [ danish ] = "Højde" ;
+ Text [ french ] = "~Hauteur" ;
+ Text [ swedish ] = "~Höjd" ;
+ Text [ dutch ] = "~Hoogte" ;
+ Text [ spanish ] = "A~ltura" ;
+ Text [ english_us ] = "~Height" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¸ß(~H)";
+ Text[ russian ] = "Âûñîòà";
+ Text[ polish ] = "Wys.";
+ Text[ japanese ] = "‚‚³(~H)";
+ Text[ chinese_traditional ] = "°ª(~H)";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ";
+ Text[ greek ] = "¾øïò";
+ Text[ korean ] = "³ôÀÌ(~H)";
+ Text[ turkish ] = "Yükseklik";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_HEIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 182 , 105 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Minimum = 500 ;
+ Maximum = 10000 ;
+ First = 500 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ Repeat = TRUE ;
+ };
+ GroupBox GRP_SIZE
+ {
+ Pos = MAP_APPFONT ( 6 , 79 ) ;
+ Size = MAP_APPFONT ( 222 , 44 ) ;
+ Text = "Größe" ;
+ Text [ ENGLISH ] = "Size" ;
+ Text [ norwegian ] = "Størrelse" ;
+ Text [ italian ] = "Dimensione" ;
+ Text [ portuguese_brazilian ] = "Tamanho" ;
+ Text [ portuguese ] = "Tamanho" ;
+ Text [ finnish ] = "Koko" ;
+ Text [ danish ] = "Størrelse" ;
+ Text [ french ] = "Taille" ;
+ Text [ swedish ] = "Storlek" ;
+ Text [ dutch ] = "Grootte" ;
+ Text [ spanish ] = "Tamaño" ;
+ Text [ english_us ] = "Size" ;
+ Text[ chinese_simplified ] = "´óС";
+ Text[ russian ] = "Ðàçìåð";
+ Text[ polish ] = "Rozmiar";
+ Text[ japanese ] = "»²½Þ";
+ Text[ chinese_traditional ] = "¤j¤p";
+ Text[ arabic ] = "ÇáÍÌã";
+ Text[ greek ] = "ÌÝãåèïò";
+ Text[ korean ] = "Å©±â";
+ Text[ turkish ] = "Boyut";
+ Text[ language_user1 ] = " ";
+ };
+};
+ // Menu *********************************************************************
+Menu MNU_EDIT
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ IDENTIFIER = MID_CHAR ;
+ TEXT = "~Zeichen..." ;
+ TEXT [ English ] = "~Character..." ;
+ TEXT [ norwegian ] = "~Character..." ;
+ TEXT [ italian ] = "~Carattere..." ;
+ TEXT [ portuguese_brazilian ] = "~Caracter..." ;
+ TEXT [ portuguese ] = "~Caracteres..." ;
+ TEXT [ finnish ] = "~Merkki..." ;
+ TEXT [ danish ] = "Tegn..." ;
+ TEXT [ french ] = "~Caractère..." ;
+ TEXT [ swedish ] = "~Tecken..." ;
+ TEXT [ dutch ] = "~Teken..." ;
+ TEXT [ spanish ] = "~Caracteres..." ;
+ TEXT [ english_us ] = "C~haracter..." ;
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Zeichenattribute für den selektierten Text : Define character attributes for selected text */
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Zeichenattribute für den selektierten Text : Define character attributes for selected text */
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Zeichenattribute für den selektierten Text : Define character attributes for selected text */
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Zeichenattribute für den selektierten Text : Define character attributes for selected text */
+ TEXT[ chinese_simplified ] = "×Ö·û(~H)...";
+ TEXT[ russian ] = "Çíàê...";
+ TEXT[ polish ] = "Znak...";
+ TEXT[ japanese ] = "•¶Žš(~H)...";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "¦r¤¸(~H)...";
+ TEXT[ arabic ] = "ÎØ...";
+ TEXT[ greek ] = "~×áñáêôÞñåò...";
+ TEXT[ korean ] = "±âÈ£(~H)...";
+ TEXT[ turkish ] = "Karakter...";
+ };
+ MenuItem
+ {
+ IDENTIFIER = MID_PARA ;
+ TEXT = "~Absatz..." ;
+ TEXT [ English ] = "~Paragraph..." ;
+ TEXT [ norwegian ] = "~Paragraph..." ;
+ TEXT [ italian ] = "~Paragrafo..." ;
+ TEXT [ portuguese_brazilian ] = "~Parágrafo..." ;
+ TEXT [ portuguese ] = "~Parágrafo..." ;
+ TEXT [ finnish ] = "~Kappale..." ;
+ TEXT [ danish ] = "Afsnit..." ;
+ TEXT [ french ] = "~Paragraphe..." ;
+ TEXT [ swedish ] = "~Stycke..." ;
+ TEXT [ dutch ] = "~Alinea..." ;
+ TEXT [ spanish ] = "Párrafo..." ;
+ TEXT [ english_us ] = "P~aragraph..." ;
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Absatzattribute : Define paragraph attributes */
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Absatzattribute : Define paragraph attributes */
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Absatzattribute : Define paragraph attributes */
+ /* ### ACHTUNG: Neuer Text in Resource? Setzt Absatzattribute : Define paragraph attributes */
+ TEXT[ chinese_simplified ] = "¶ÎÂä(~A)...";
+ TEXT[ russian ] = "Àáçàö...";
+ TEXT[ polish ] = "Akapit...";
+ TEXT[ japanese ] = "’i—Ž(~A)...";
+ TEXT[ chinese_traditional ] = "¬q¸¨(~A)...";
+ TEXT[ arabic ] = "...ÝÞÑÉ";
+ TEXT[ greek ] = "Ð~áñÜãñáöïò...";
+ TEXT[ korean ] = "´Ü¶ô(~A)...";
+ TEXT[ turkish ] = "Paragraf...";
+ TEXT[ language_user1 ] = " ";
+ };
+ };
+};
diff --git a/sw/source/ui/envelp/envimg.cxx b/sw/source/ui/envelp/envimg.cxx
new file mode 100644
index 000000000000..195e20c6a82b
--- /dev/null
+++ b/sw/source/ui/envelp/envimg.cxx
@@ -0,0 +1,496 @@
+/*************************************************************************
+ *
+ * $RCSfile: envimg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVX_ADRITEM_HXX //autogen
+#include <svx/adritem.hxx>
+#endif
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+#ifndef _TOOLS_RESID_HXX //autogen
+#include <tools/resid.hxx>
+#endif
+#ifndef _SVX_PAPERINF_HXX //autogen
+#include <svx/paperinf.hxx>
+#endif
+
+
+
+#include "errhdl.hxx"
+#include "finder.hxx"
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "cfgid.h"
+#include "envimg.hxx"
+#include "cfgstr.hrc"
+#include "envelp.hrc"
+
+#define ENV_VERSION 1
+
+#ifdef WIN
+#define NEXTLINE UniString::CreateFromAscii("\r\n")
+#else
+#define NEXTLINE '\n'
+#endif
+//#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+
+
+String MakeSender()
+{
+ ASSERT( pPathFinder, "PathFinder not found" );
+ SvxAddressItem aAdr( pPathFinder->GetAddress() );
+
+ String sRet;
+ String sSenderToken(SW_RES(STR_SENDER_TOKENS));
+ USHORT nTokenCount = sSenderToken.GetTokenCount(';');
+ BOOL bLastLength = TRUE;
+ for(USHORT i = 0; i < nTokenCount; i++)
+ {
+ String sToken = sSenderToken.GetToken(i, ';');
+ if(sToken.EqualsAscii("COMPANY"))
+ {
+ String sTmp = aAdr.GetToken( ADDRESS_COMPANY );
+ sRet += sTmp;
+ bLastLength = sTmp.Len() > 0;
+ }
+ else if(sToken.EqualsAscii("CR"))
+ {
+ if(bLastLength)
+ sRet +=NEXTLINE;
+ bLastLength = TRUE;
+ }
+ else if(sToken.EqualsAscii("FIRSTNAME"))
+ sRet += aAdr.GetFirstName();
+ else if(sToken.EqualsAscii("LASTNAME"))
+ sRet += aAdr.GetName();
+ else if(sToken.EqualsAscii("ADDRESS"))
+ sRet += aAdr.GetToken( ADDRESS_STREET );
+ else if(sToken.EqualsAscii("COUNTRY"))
+ sRet += aAdr.GetToken( ADDRESS_COUNTRY );
+ else if(sToken.EqualsAscii("POSTALCODE"))
+ sRet += aAdr.GetToken( ADDRESS_PLZ );
+ else if(sToken.EqualsAscii("CITY"))
+ sRet += aAdr.GetToken( ADDRESS_CITY );
+ else if(sToken.EqualsAscii("STATEPROV"))
+ sRet += aAdr.GetToken( ADDRESS_STATE );
+ else if(sToken.Len()) //spaces
+ sRet += sToken;
+ }
+ return sRet;
+
+
+ /*
+ SvxAddressItem aAdr( pPathFinder->GetAddress() );
+ String aSender, aTmp;
+ aSender += aAdr.GetFirstName();
+ aTmp = aAdr.GetName();
+ if ( aTmp.Len() ) ls
+
+ {
+ if ( aSender.Len() )
+ aSender += ' ';
+ aSender += aTmp;
+ }
+ if ( aSender.Len() )
+ aSender += NEXTLINE;
+ aTmp = aAdr.GetToken( ADDRESS_STREET );
+ if ( aTmp.Len() )
+ {
+ aSender += aTmp;
+ aSender += NEXTLINE;
+ }
+ aTmp = aAdr.GetToken( ADDRESS_COUNTRY );
+ if ( aTmp.Len() )
+ {
+ aSender += aTmp;
+ aSender += '-';
+ }
+ aTmp = aAdr.GetToken( ADDRESS_PLZ );
+ if ( aTmp.Len() )
+ {
+ aSender += aTmp;
+ aSender += ' ';
+ }
+ aSender += aAdr.GetToken( ADDRESS_CITY );
+ return aSender;
+ */
+}
+
+
+
+SwEnvItem::SwEnvItem() :
+
+ SfxPoolItem(FN_ENVELOP)
+
+{
+ aAddrText = aEmptyStr;
+ bSend = TRUE;
+ aSendText = MakeSender();
+ lSendFromLeft = 566; // 1 cm
+ lSendFromTop = 566; // 1 cm
+ lWidth = lC65Width;
+ lHeight = lC65Height;
+ eAlign = ENV_HOR_LEFT;
+ bPrintFromAbove = TRUE;
+ lShiftRight = 0;
+ lShiftDown = 0;
+
+ lAddrFromLeft = Max(lWidth, lHeight) / 2;
+ lAddrFromTop = Min(lWidth, lHeight) / 2;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvItem::SwEnvItem(const SwEnvItem& rItem) :
+
+ SfxPoolItem(FN_ENVELOP),
+
+ aAddrText (rItem.aAddrText),
+ bSend (rItem.bSend),
+ aSendText (rItem.aSendText),
+ lSendFromLeft (rItem.lSendFromLeft),
+ lSendFromTop (rItem.lSendFromTop),
+ lAddrFromLeft (rItem.lAddrFromLeft),
+ lAddrFromTop (rItem.lAddrFromTop),
+ lWidth (rItem.lWidth),
+ lHeight (rItem.lHeight),
+ eAlign (rItem.eAlign),
+ bPrintFromAbove(rItem.bPrintFromAbove),
+ lShiftRight (rItem.lShiftRight),
+ lShiftDown (rItem.lShiftDown),
+ aSlot (rItem.aSlot)
+
+{
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvItem& SwEnvItem::operator =(const SwEnvItem& rItem)
+{
+ aAddrText = rItem.aAddrText;
+ bSend = rItem.bSend;
+ aSendText = rItem.aSendText;
+ lSendFromLeft = rItem.lSendFromLeft;
+ lSendFromTop = rItem.lSendFromTop;
+ lAddrFromLeft = rItem.lAddrFromLeft;
+ lAddrFromTop = rItem.lAddrFromTop;
+ lWidth = rItem.lWidth;
+ lHeight = rItem.lHeight;
+ eAlign = rItem.eAlign;
+ bPrintFromAbove = rItem.bPrintFromAbove;
+ lShiftRight = rItem.lShiftRight;
+ lShiftDown = rItem.lShiftDown;
+ aSlot = rItem.aSlot;
+
+ return *this;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+int SwEnvItem::operator ==(const SfxPoolItem& rItem) const
+{
+ const SwEnvItem& rEnv = (const SwEnvItem&) rItem;
+
+ return aAddrText == rEnv.aAddrText &&
+ bSend == rEnv.bSend &&
+ aSendText == rEnv.aSendText &&
+ lSendFromLeft == rEnv.lSendFromLeft &&
+ lSendFromTop == rEnv.lSendFromTop &&
+ lAddrFromLeft == rEnv.lAddrFromLeft &&
+ lAddrFromTop == rEnv.lAddrFromTop &&
+ lWidth == rEnv.lWidth &&
+ lHeight == rEnv.lHeight &&
+ eAlign == rEnv.eAlign &&
+ bPrintFromAbove == rEnv.bPrintFromAbove &&
+ lShiftRight == rEnv.lShiftRight &&
+ lShiftDown == rEnv.lShiftDown &&
+ aSlot == rEnv.aSlot;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxPoolItem* SwEnvItem::Clone(SfxItemPool*) const
+{
+ return new SwEnvItem(*this);
+}
+
+
+// --------------------------------------------------------------------------
+
+SwEnvCfgItem::SwEnvCfgItem() :
+ SfxConfigItem(CFG_ENV_ITEM)
+{
+}
+// ----------------------------------------------------------------------------
+
+int SwEnvCfgItem::Load(SvStream& rStrm)
+{
+ USHORT nVersion;
+ rStrm >> nVersion;
+
+ if (nVersion == ENV_VERSION)
+ {
+ unsigned char b;
+ long l;
+ USHORT i;
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ rStrm.ReadByteString(aEnvItem.aAddrText, eEncoding);
+ rStrm >> b; aEnvItem.bSend = (BOOL) b;
+ rStrm.ReadByteString(aEnvItem.aSendText, eEncoding);
+ rStrm >> l; aEnvItem.lAddrFromLeft = l;
+ rStrm >> l; aEnvItem.lAddrFromTop = l;
+ rStrm >> l; aEnvItem.lSendFromLeft = l;
+ rStrm >> l; aEnvItem.lSendFromTop = l;
+ rStrm >> l; aEnvItem.lWidth = l;
+ rStrm >> l; aEnvItem.lHeight = l;
+ rStrm >> i; aEnvItem.eAlign = (SwEnvAlign) i;
+ rStrm >> b; aEnvItem.bPrintFromAbove = (BOOL) b;
+ rStrm >> l; aEnvItem.lShiftRight = l;
+ rStrm >> l; aEnvItem.lShiftDown = l;
+ rStrm.ReadByteString(aEnvItem.aSlot, eEncoding);
+
+ SetDefault(FALSE);
+
+ return SfxConfigItem::ERR_OK;
+ }
+ else
+ return SfxConfigItem::WARNING_VERSION;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+BOOL SwEnvCfgItem::Store(SvStream& rStrm)
+{
+ rStrm << (USHORT)ENV_VERSION;
+
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ rStrm.WriteByteString(aEnvItem.aAddrText, eEncoding);
+ rStrm << (unsigned char) aEnvItem.bSend;
+ rStrm.WriteByteString(aEnvItem.aSendText, eEncoding);
+ rStrm << aEnvItem.lAddrFromLeft;
+ rStrm << aEnvItem.lAddrFromTop;
+ rStrm << aEnvItem.lSendFromLeft;
+ rStrm << aEnvItem.lSendFromTop;
+ rStrm << aEnvItem.lWidth;
+ rStrm << aEnvItem.lHeight;
+ rStrm << (USHORT) aEnvItem.eAlign;
+ rStrm << (unsigned char) aEnvItem.bPrintFromAbove;
+ rStrm << aEnvItem.lShiftRight;
+ rStrm << aEnvItem.lShiftDown;
+ rStrm.WriteByteString(aEnvItem.aSlot, eEncoding);
+
+ return SfxConfigItem::ERR_OK;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvCfgItem::UseDefault()
+{
+ aEnvItem = SwEnvItem();
+ SfxConfigItem::UseDefault();
+
+}
+
+
+
+String SwEnvCfgItem::GetName() const
+{
+ return SW_RESSTR(STR_CFG_ENVIMG);
+}
+
+
+
+/*
+$Log: not supported by cvs2svn $
+Revision 1.36 2000/09/18 16:05:25 willem.vandorp
+OpenOffice header added.
+
+Revision 1.35 2000/06/26 16:32:11 jp
+have to change: enums of AddressToken
+
+Revision 1.34 2000/05/26 07:21:29 os
+old SW Basic API Slots removed
+
+Revision 1.33 2000/04/19 13:58:58 os
+#74742# STATEPROV added
+
+Revision 1.32 2000/04/18 15:31:35 os
+UNICODE
+
+Revision 1.31 2000/04/11 13:37:29 os
+#74742# Sender field of envelopes and labels language specific
+
+Revision 1.30 1999/10/22 14:09:27 jp
+have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+Revision 1.29 1997/11/24 10:52:12 MA
+includes
+
+
+ Rev 1.28 24 Nov 1997 11:52:12 MA
+ includes
+
+ Rev 1.27 03 Nov 1997 13:17:16 MA
+ precomp entfernt
+
+ Rev 1.26 08 Apr 1997 10:30:14 OM
+ Fehlende Includes
+
+ Rev 1.25 08 Apr 1997 10:06:30 NF
+ includes...
+
+ Rev 1.24 11 Nov 1996 09:44:18 MA
+ ResMgr
+
+ Rev 1.23 26 Jul 1996 20:36:40 MA
+ includes
+
+ Rev 1.22 28 Jun 1996 10:10:52 OS
+ UseDefault: Basisklasse rufen
+
+ Rev 1.21 19 Mar 1996 16:33:48 MA
+ chg: Umstellungen, Finder und AdrItem
+
+ Rev 1.20 15 Mar 1996 13:29:24 MA
+ opt: Finder abgespeckt
+
+ Rev 1.19 27 Nov 1995 18:55:34 OS
+ Umstellung 303a
+
+ Rev 1.18 24 Nov 1995 16:59:40 OM
+ PCH->PRECOMPILED
+
+ Rev 1.17 16 Nov 1995 18:37:44 OS
+ neu: Get/SetVariable, nicht impl.
+
+ Rev 1.16 15 Sep 1995 21:14:22 OS
+ add: cfgstr.hrc
+
+ Rev 1.15 15 Sep 1995 12:41:00 OS
+ GetName() implementiert
+
+ Rev 1.14 11 Sep 1995 18:06:08 HJS
+ add: sbx.hxx
+
+ Rev 1.13 09 Aug 1995 18:59:36 AMA
+ kein GetPresentation
+
+ Rev 1.12 07 Aug 1995 18:19:58 AMA
+ Umbau: GetValueText -> GetPresentation
+
+ Rev 1.11 08 Jun 1995 19:02:06 OM
+ Absturz unter OS/2 gefixt
+
+ Rev 1.10 30 May 1995 17:01:32 ER
+ Umstellung SwPaper... SvxPaper...
+
+ Rev 1.9 24 May 1995 18:14:22 ER
+ Segmentierung
+
+ Rev 1.8 23 Mar 1995 18:33:20 PK
+ geht immer weiter ...
+
+ Rev 1.7 17 Mar 1995 17:10:04 PK
+ geht immer weiter
+
+ Rev 1.6 06 Mar 1995 00:08:20 PK
+ linkbarer envelp-zustand
+
+ Rev 1.5 04 Mar 1995 22:55:14 PK
+ geht immer weiter
+
+ Rev 1.4 20 Feb 1995 19:39:44 PK
+ erstma eingecheckt
+
+ Rev 1.3 18 Nov 1994 15:55:28 MA
+ min -> Min, max -> Max
+
+ Rev 1.2 25 Oct 1994 17:33:38 ER
+ add: PCH
+
+ Rev 1.1 15 Apr 1994 17:28:30 PK
+ warnungen raus, strings optimiert
+
+ Rev 1.0 22 Mar 1994 17:48:14 PK
+ umschlaege vorerst fertig
+*/
+
diff --git a/sw/source/ui/envelp/envlop.hrc b/sw/source/ui/envelp/envlop.hrc
new file mode 100644
index 000000000000..66eb3e99089d
--- /dev/null
+++ b/sw/source/ui/envelp/envlop.hrc
@@ -0,0 +1,99 @@
+/*************************************************************************
+ *
+ * $RCSfile: envlop.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _ENVLOP_HRC
+#define _ENVLOP_HRC
+
+// #include *****************************************************************
+
+#include "envelp.hrc"
+
+// Lokale Resourcen *********************************************************
+
+#define TXT_ADDR 1
+#define EDT_ADDR 2
+#define FT_DATABASE 3
+#define LB_DATABASE 4
+#define FT_TABLE 5
+#define LB_TABLE 6
+#define BTN_INSERT 7
+#define FT_DBFIELD 8
+#define LB_DBFIELD 9
+#define BOX_SEND 10
+#define EDT_SEND 11
+#define WIN_PREVIEW 12
+#define ST_INSERT 13
+#define ST_CHANGE 14
+// Globale Resourcen ********************************************************
+
+#define STR_DOC_TITLE (RC_ENVLOP_BEGIN)
+
+// Ueberlaufpruefung ********************************************************
+
+#define ENVLOP_ACT_END STR_DOC_TITLE
+
+#if ENVLOP_ACT_END > RC_ENVLOP_END
+#error Resource-Ueberlauf in #file, #line
+#endif
+
+#endif
+
+
diff --git a/sw/source/ui/envelp/envlop.src b/sw/source/ui/envelp/envlop.src
new file mode 100644
index 000000000000..a8c5f954b51b
--- /dev/null
+++ b/sw/source/ui/envelp/envlop.src
@@ -0,0 +1,473 @@
+/*************************************************************************
+ *
+ * $RCSfile: envlop.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "envlop.hrc"
+#include "helpid.h"
+ // DLG_ENV ------------------------------------------------------------------
+TabDialog DLG_ENV
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Briefumschlag" ;
+ Text [ ENGLISH ] = "Envelope" ;
+ Text [ norwegian ] = "Envelope" ;
+ Text [ italian ] = "Busta" ;
+ Text [ portuguese_brazilian ] = "Envelope" ;
+ Text [ portuguese ] = "Envelope" ;
+ Text [ finnish ] = "Kirjekuori" ;
+ Text [ danish ] = "Konvolut" ;
+ Text [ french ] = "Enveloppe" ;
+ Text [ swedish ] = "Kuvert" ;
+ Text [ dutch ] = "Envelop" ;
+ Text [ spanish ] = "Sobre" ;
+ Text [ english_us ] = "Envelope" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_ENV_ENV ;
+ Text = "Umschlag" ;
+ Text [ ENGLISH ] = "Envelop" ;
+ Text [ norwegian ] = "Konvolutt" ;
+ Text [ italian ] = "Busta" ;
+ Text [ portuguese_brazilian ] = "Envelope" ;
+ Text [ portuguese ] = "Envelope" ;
+ Text [ finnish ] = "Kirjekuori" ;
+ Text [ danish ] = "Konvolut" ;
+ Text [ french ] = "Enveloppe" ;
+ Text [ swedish ] = "Kuvert" ;
+ Text [ dutch ] = "Envelop" ;
+ Text [ spanish ] = "Sobre" ;
+ Text [ english_us ] = "Envelope" ;
+ PageResID = TP_ENV_ENV ;
+ Text[ chinese_simplified ] = "ÐÅ·â";
+ Text[ russian ] = "Êîíâåðò";
+ Text[ polish ] = "Koperta";
+ Text[ japanese ] = "••“›";
+ Text[ chinese_traditional ] = "«H«Ê";
+ Text[ arabic ] = "ÙÑÝ";
+ Text[ greek ] = "ÖÜêåëïò";
+ Text[ korean ] = "ºÀÅõ";
+ Text[ turkish ] = "Zarf";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_ENV_FMT ;
+ Text = "Format" ;
+ Text[English] = "Format" ;
+ PageResID = TP_ENV_FMT ;
+ Text[ english_us ] = "Format";
+ Text[ portuguese ] = "Formato";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ greek ] = "ÌïñöÞ";
+ Text[ dutch ] = "Formaat";
+ Text[ french ] = "Format";
+ Text[ spanish ] = "Formato";
+ Text[ italian ] = "Formato";
+ Text[ danish ] = "Format";
+ Text[ swedish ] = "Format";
+ Text[ polish ] = "Format";
+ Text[ portuguese_brazilian ] = "Format";
+ Text[ japanese ] = "‘Ž®";
+ Text[ korean ] = "Format";
+ Text[ chinese_simplified ] = "¸ñʽ";
+ Text[ chinese_traditional ] = "®æ¦¡";
+ Text[ turkish ] = "Format";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ };
+ PageItem
+ {
+ Identifier = TP_ENV_PRT ;
+ Text = "Drucker" ;
+ Text [ English ] = "Printer" ;
+ Text [ norwegian ] = "Printer" ;
+ Text [ italian ] = "Stampante" ;
+ Text [ portuguese_brazilian ] = "Impressora" ;
+ Text [ portuguese ] = "Impressora" ;
+ Text [ finnish ] = "Kirjoitin" ;
+ Text [ danish ] = "Printer" ;
+ Text [ french ] = "Imprimante" ;
+ Text [ swedish ] = "Skrivare" ;
+ Text [ dutch ] = "Printer" ;
+ Text [ spanish ] = "Impresora" ;
+ Text [ english_us ] = "Printer" ;
+ PageResID = TP_ENV_PRT ;
+ Text[ chinese_simplified ] = "´òÓ¡»ú";
+ Text[ russian ] = "Ïðèíòåð";
+ Text[ polish ] = "Drukarka";
+ Text[ japanese ] = "ÌßØÝÀ";
+ Text[ chinese_traditional ] = "¦Lªí¾÷";
+ Text[ arabic ] = "ÇáØÇÈÚÉ";
+ Text[ greek ] = "ÅêôõðùôÞò";
+ Text[ korean ] = "ÇÁ¸°ÅÍ";
+ Text[ turkish ] = "Yazýcý";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ String ST_INSERT
+ {
+ Text = "~Einfügen" ;
+ Text [ English ] = "~Insert" ;
+ Text [ norwegian ] = "~Insert" ;
+ Text [ italian ] = "~Inserisci" ;
+ Text [ portuguese_brazilian ] = "~Inserir" ;
+ Text [ portuguese ] = "~Inserir" ;
+ Text [ finnish ] = "~Lisää" ;
+ Text [ danish ] = "~Indsæt" ;
+ Text [ french ] = "In~sérer" ;
+ Text [ swedish ] = "~Infoga" ;
+ Text [ dutch ] = "~Invoegen" ;
+ Text [ spanish ] = "I~nsertar" ;
+ Text [ english_us ] = "~Insert" ;
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ russian ] = "Âñòàâêà";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü(~I)";
+ Text[ chinese_traditional ] = "´¡¤J(~I)";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ dutch ] = "~Invoegen";
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ(~I)";
+ Text[ turkish ] = "~Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_CHANGE
+ {
+ Text = "~Ändern" ;
+ Text [ English ] = "Change" ;
+ Text [ norwegian ] = "Endre" ;
+ Text [ italian ] = "C~ambia" ;
+ Text [ portuguese_brazilian ] = "Mudar" ;
+ Text [ portuguese ] = "~Modificar" ;
+ Text [ finnish ] = "Muuta" ;
+ Text [ danish ] = "Modificer" ;
+ Text [ french ] = "~Modifier" ;
+ Text [ swedish ] = "~Ändra" ;
+ Text [ dutch ] = "~Wijzigen" ;
+ Text [ spanish ] = "~Modificar" ;
+ Text [ english_us ] = "~Modify" ;
+ Text[ chinese_simplified ] = "¸ü¸Ä(~M)";
+ Text[ russian ] = "Èçìåíèòü";
+ Text[ polish ] = "Modyfikuj";
+ Text[ japanese ] = "•ÏX(~M)";
+ Text[ chinese_traditional ] = "­×§ï(~M)";
+ Text[ arabic ] = "ÊÚÏíá";
+ Text[ dutch ] = "~Wijzigen";
+ Text[ chinese_simplified ] = "¸ü¸Ä(~M)";
+ Text[ greek ] = "Ôñïðïðïßçóç";
+ Text[ korean ] = "¼öÁ¤(~M)";
+ Text[ turkish ] = "D~eðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "ÐÅ·â";
+ Text[ russian ] = "Êîíâåðò";
+ Text[ polish ] = "Koperta listowa";
+ Text[ japanese ] = "••“›";
+ Text[ chinese_traditional ] = "«H«Ê";
+ Text[ arabic ] = "ÙÑÝ";
+ Text[ greek ] = "ÖÜêåëïò";
+ Text[ korean ] = "ºÀÅõ";
+ Text[ turkish ] = "Zarf";
+ Text[ language_user1 ] = " ";
+};
+ // TP_ENV_ENV ---------------------------------------------------------------
+TabPage TP_ENV_ENV
+{
+ HelpID = HID_ENV_ENV ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ FixedText TXT_ADDR
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "~Empfänger" ;
+ Text [ English ] = "Addressee" ;
+ Text [ norwegian ] = "Addressee" ;
+ Text [ italian ] = "Destinatario" ;
+ Text [ portuguese_brazilian ] = "Endereço" ;
+ Text [ portuguese ] = "~Destinatário" ;
+ Text [ finnish ] = "Vastaanottaja" ;
+ Text [ danish ] = "Modtager" ;
+ Text [ french ] = "~Destinataire" ;
+ Text [ swedish ] = "Mottagar~e" ;
+ Text [ dutch ] = "~Geadresseerde" ;
+ Text [ spanish ] = "~Destinatario" ;
+ Text [ english_us ] = "Addr~essee" ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊÕ¼þÈË(~E)";
+ Text[ russian ] = "Ïîëó÷àòåëü";
+ Text[ polish ] = "Odbiorca";
+ Text[ japanese ] = "ŽóMŽÒ(~E)";
+ Text[ chinese_traditional ] = "¦¬¥óªÌ(~E)";
+ Text[ arabic ] = "ÇáãÓÊáã";
+ Text[ greek ] = "ÐáñáëÞðôçò";
+ Text[ korean ] = "¹Þ´Â »ç¶÷(~E)";
+ Text[ turkish ] = "Alýcý";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit EDT_ADDR
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 14 ) ;
+ Size = MAP_APPFONT ( 110 , 44 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ HScroll = TRUE ;
+ VScroll = TRUE ;
+ IgnoreTab = TRUE;
+ };
+ FixedText FT_DATABASE
+ {
+ Pos = MAP_APPFONT ( 122 , 3 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "~Datenbank" ;
+ Text [ English ] = "Database" ;
+ Text [ norwegian ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Base de Dados" ;
+ Text [ portuguese ] = "~Base de dados" ;
+ Text [ finnish ] = "Tietokanta" ;
+ Text [ danish ] = "Database" ;
+ Text [ french ] = "~Base de données" ;
+ Text [ swedish ] = "~Databas" ;
+ Text [ dutch ] = "~Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ english_us ] = "Database" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â(~D)";
+ Text[ russian ] = "Áàçà äàííûõ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "¸ê®Æ®w";
+ Text[ arabic ] = "ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "ÂÜóç ~äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º";
+ Text[ turkish ] = "Veritabaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DATABASE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 122 , 14 ) ;
+ Size = MAP_APPFONT ( 57 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_TABLE
+ {
+ Pos = MAP_APPFONT ( 185 , 3 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "~Tabelle" ;
+ Text [ ENGLISH ] = "Table" ;
+ Text [ english_us ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "~Table" ;
+ Text [ dutch ] = "~Tabel" ;
+ Text [ swedish ] = "~Tabell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text [ portuguese ] = "~Tabela" ;
+ Text[ chinese_simplified ] = "±í¸ñ(~T)";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÇáÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_TABLE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 185 , 14 ) ;
+ Size = MAP_APPFONT ( 57 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ ImageButton BTN_INSERT
+ {
+ Pos = MAP_APPFONT ( 122 , 45 ) ;
+ Size = MAP_APPFONT ( 18 , 12 ) ;
+ SYMBOL = IMAGEBUTTON_ARROW_LEFT ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_DBFIELD
+ {
+ Pos = MAP_APPFONT ( 146 , 34 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "Datenbank~feld" ;
+ Text [ English ] = "Database field" ;
+ Text [ norwegian ] = "Database field" ;
+ Text [ italian ] = "Campo database" ;
+ Text [ portuguese_brazilian ] = "Campo base de dados" ;
+ Text [ portuguese ] = "Campo base de dados" ;
+ Text [ finnish ] = "Tietokantakenttä" ;
+ Text [ danish ] = "Databasefelt" ;
+ Text [ french ] = "~Champ de B.D." ;
+ Text [ swedish ] = "Databas~fält" ;
+ Text [ dutch ] = "Database~veld" ;
+ Text [ spanish ] = "~Campo base de datos" ;
+ Text [ english_us ] = "~Database field" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â×Ö¶Î(~D)";
+ Text[ russian ] = "Ïîëå áàçû äàííûõ";
+ Text[ polish ] = "Pole bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½ ̨°ÙÄÞ(~D)";
+ Text[ chinese_traditional ] = "¸ê®Æ®wÄæ¦ì(~D)";
+ Text[ arabic ] = "ÍÞá ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "Ðåäßï âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º Çʵå(~D)";
+ Text[ turkish ] = "Veritabaný alaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DBFIELD
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 146 , 45 ) ;
+ Size = MAP_APPFONT ( 96 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ CheckBox BOX_SEND
+ {
+ Pos = MAP_APPFONT ( 6 , 72 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Absender" ;
+ Text [ English ] = "Sender" ;
+ Text [ norwegian ] = "Sender" ;
+ Text [ italian ] = "Mittente" ;
+ Text [ portuguese_brazilian ] = "Remetente" ;
+ Text [ portuguese ] = "~Remetente" ;
+ Text [ finnish ] = "Lähettäjä" ;
+ Text [ danish ] = "Afsender" ;
+ Text [ french ] = "~Expéditeur" ;
+ Text [ swedish ] = "~Avsändare" ;
+ Text [ dutch ] = "Af~zender" ;
+ Text [ spanish ] = "R~emitente" ;
+ Text [ english_us ] = "~Sender" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "·¢¼þÈË(~S)";
+ Text[ russian ] = "Îòïðàâèòåëü";
+ Text[ polish ] = "Nadawca";
+ Text[ japanese ] = "·ol(~S)";
+ Text[ chinese_traditional ] = "±H¥óªÌ(~S)";
+ Text[ arabic ] = "ÇáãÑÓá";
+ Text[ greek ] = "ÁðïóôïëÝáò";
+ Text[ korean ] = "º¸³½ »ç¶÷(~S)";
+ Text[ turkish ] = "Gönderen";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit EDT_SEND
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 85 ) ;
+ Size = MAP_APPFONT ( 110 , 44 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ HScroll = TRUE ;
+ VScroll = TRUE ;
+ IgnoreTab = TRUE;
+ };
+ Window WIN_PREVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 122 , 68 ) ;
+ Size = MAP_APPFONT ( 83 , 61 ) ;
+ };
+};
+ // Strings ******************************************************************
+String STR_DOC_TITLE
+{
+ Text = "Briefumschlag" ;
+ Text [ English ] = "Envelope" ;
+ Text [ norwegian ] = "Envelope" ;
+ Text [ italian ] = "Busta" ;
+ Text [ portuguese_brazilian ] = "Envelope" ;
+ Text [ portuguese ] = "Envelope" ;
+ Text [ finnish ] = "Kirjekuori" ;
+ Text [ danish ] = "Konvolut" ;
+ Text [ french ] = "Enveloppe" ;
+ Text [ swedish ] = "Kuvert" ;
+ Text [ dutch ] = "Envelop" ;
+ Text [ spanish ] = "Sobre" ;
+ Text [ english_us ] = "Envelope" ;
+ Text[ chinese_simplified ] = "ÐÅ·â";
+ Text[ russian ] = "Êîíâåðò";
+ Text[ polish ] = "Koperta listowa";
+ Text[ japanese ] = "••“›";
+ Text[ chinese_traditional ] = "«H«Ê";
+ Text[ arabic ] = "ÙÑÝ";
+ Text[ greek ] = "ÖÜêåëïò";
+ Text[ korean ] = "ºÀÅõ";
+ Text[ turkish ] = "Zarf";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx
new file mode 100644
index 000000000000..6ef27b8d43be
--- /dev/null
+++ b/sw/source/ui/envelp/envlop1.cxx
@@ -0,0 +1,617 @@
+/*************************************************************************
+ *
+ * $RCSfile: envlop1.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "dbmgr.hxx"
+#ifndef _SBA_SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "errhdl.hxx"
+#include "cmdid.h"
+#include "helpid.h"
+#include "envfmt.hxx"
+#include "envlop.hxx"
+#include "envprt.hxx"
+#include "fmtcol.hxx"
+#include "poolfmt.hxx"
+#include "view.hxx"
+
+#include "envlop.hrc"
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+using namespace com::sun::star::lang;
+using namespace com::sun::star::container;
+using namespace com::sun::star::uno;
+using namespace com::sun::star;
+using namespace rtl;
+#define C2U(char) rtl::OUString::createFromAscii(char)
+#else
+
+#endif //REPLACE_OFADBMGR
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvPreview::SwEnvPreview(SfxTabPage* pParent, const ResId& rResID) :
+
+ Window(pParent, rResID)
+
+{
+ SetMapMode(MapMode(MAP_PIXEL));
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvPreview::~SwEnvPreview()
+{
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+void SwEnvPreview::Paint(const Rectangle &)
+{
+ const SwEnvItem& rItem =
+ ((SwEnvDlg*) GetParent()->GetParent()->GetParent())->aEnvItem;
+
+ USHORT nPageW = (USHORT) Max(rItem.lWidth, rItem.lHeight),
+ nPageH = (USHORT) Min(rItem.lWidth, rItem.lHeight);
+
+ float fx = (float) GetOutputSizePixel().Width () / nPageW,
+ fy = (float) GetOutputSizePixel().Height() / nPageH,
+ f = fx < fy ? fx : fy;
+
+ // Umschlag
+ long nW = (USHORT) (f * nPageW),
+ nH = (USHORT) (f * nPageH),
+ nX = (GetOutputSizePixel().Width () - nW) / 2,
+ nY = (GetOutputSizePixel().Height() - nH) / 2;
+ SetFillColor(Color(COL_WHITE));
+ DrawRect(Rectangle(Point(nX, nY), Size(nW, nH)));
+
+ // Absender
+ if (rItem.bSend)
+ {
+ long nSendX = nX + (USHORT) (f * rItem.lSendFromLeft),
+ nSendY = nY + (USHORT) (f * rItem.lSendFromTop ),
+ nSendW = (USHORT) (f * (rItem.lAddrFromLeft - rItem.lSendFromLeft)),
+ nSendH = (USHORT) (f * (rItem.lAddrFromTop - rItem.lSendFromTop - 566));
+ SetFillColor(Color(COL_GRAY));
+ DrawRect(Rectangle(Point(nSendX, nSendY), Size(nSendW, nSendH)));
+ }
+
+ // Empfaenger
+ long nAddrX = nX + (USHORT) (f * rItem.lAddrFromLeft),
+ nAddrY = nY + (USHORT) (f * rItem.lAddrFromTop ),
+ nAddrW = (USHORT) (f * (nPageW - rItem.lAddrFromLeft - 566)),
+ nAddrH = (USHORT) (f * (nPageH - rItem.lAddrFromTop - 566));
+ SetFillColor(Color(COL_GRAY));
+ DrawRect(Rectangle(Point(nAddrX, nAddrY), Size(nAddrW, nAddrH)));
+
+ // Briefmarke
+ long nStmpW = (USHORT) (f * 1417 /* 2,5 cm */),
+ nStmpH = (USHORT) (f * 1701 /* 3,0 cm */),
+ nStmpX = nX + nW - (USHORT) (f * 566) - nStmpW,
+ nStmpY = nY + (USHORT) (f * 566);
+
+ SetFillColor(Color(COL_WHITE));
+ DrawRect(Rectangle(Point(nStmpX, nStmpY), Size(nStmpW, nStmpH)));
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvDlg::SwEnvDlg(Window* pParent, const SfxItemSet& rSet,
+ SwWrtShell* pWrtSh, Printer* pPrt, BOOL bInsert) :
+
+ SfxTabDialog(pParent, SW_RES(DLG_ENV), &rSet, FALSE, &aEmptyStr),
+ sInsert(ResId(ST_INSERT)),
+ sChange(ResId(ST_CHANGE)),
+ aEnvItem((const SwEnvItem&) rSet.Get(FN_ENVELOP)),
+ pSh(pWrtSh),
+ pPrinter(pPrt),
+ pAddresseeSet(0),
+ pSenderSet(0)
+{
+ FreeResource();
+
+ GetOKButton().SetText(String(SW_RES(STR_BTN_NEWDOC)));
+ GetOKButton().SetHelpId(HID_ENVELOP_PRINT);
+ GetOKButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+ if (GetUserButton())
+ {
+ GetUserButton()->SetText(bInsert ? sInsert : sChange);
+ GetUserButton()->SetHelpId(HID_ENVELOP_INSERT);
+ }
+
+ AddTabPage(TP_ENV_ENV, SwEnvPage ::Create, 0);
+ AddTabPage(TP_ENV_FMT, SwEnvFmtPage::Create, 0);
+ AddTabPage(TP_ENV_PRT, SwEnvPrtPage::Create, 0);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvDlg::~SwEnvDlg()
+{
+ delete pAddresseeSet;
+ delete pSenderSet;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvDlg::PageCreated(USHORT nId, SfxTabPage &rPage)
+{
+ if (nId == TP_ENV_PRT)
+ {
+ ((SwEnvPrtPage*)&rPage)->SetPrt(pPrinter);
+ }
+}
+
+// --------------------------------------------------------------------------
+
+short SwEnvDlg::Ok()
+{
+ short nRet = SfxTabDialog::Ok();
+
+ if (nRet == RET_OK || nRet == RET_USER)
+ {
+ if (pAddresseeSet)
+ {
+ SwTxtFmtColl* pColl = pSh->GetTxtCollFromPool(RES_POOLCOLL_JAKETADRESS);
+ pColl->SetAttr(*pAddresseeSet);
+ }
+ if (pSenderSet)
+ {
+ SwTxtFmtColl* pColl = pSh->GetTxtCollFromPool(RES_POOLCOLL_SENDADRESS);
+ pColl->SetAttr(*pSenderSet);
+ }
+ }
+
+ return nRet;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvPage::SwEnvPage(Window* pParent, const SfxItemSet& rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_ENV_ENV), rSet),
+
+ aAddrText (this, SW_RES(TXT_ADDR )),
+ aAddrEdit (this, SW_RES(EDT_ADDR )),
+ aDatabaseFT (this, SW_RES(FT_DATABASE)),
+ aDatabaseLB (this, SW_RES(LB_DATABASE)),
+ aTableFT (this, SW_RES(FT_TABLE )),
+ aTableLB (this, SW_RES(LB_TABLE )),
+ aInsertBT (this, SW_RES(BTN_INSERT )),
+ aDBFieldFT (this, SW_RES(FT_DBFIELD )),
+ aDBFieldLB (this, SW_RES(LB_DBFIELD )),
+ aSenderBox (this, SW_RES(BOX_SEND )),
+ aSenderEdit (this, SW_RES(EDT_SEND )),
+ aPreview (this, SW_RES(WIN_PREVIEW))
+
+{
+ FreeResource();
+ SetExchangeSupport();
+ pSh = GetParent()->pSh;
+
+ // Handler installieren
+ aDatabaseLB .SetSelectHdl(LINK(this, SwEnvPage, DatabaseHdl ));
+ aTableLB .SetSelectHdl(LINK(this, SwEnvPage, DatabaseHdl ));
+ aInsertBT .SetClickHdl (LINK(this, SwEnvPage, FieldHdl ));
+ aSenderBox .SetClickHdl (LINK(this, SwEnvPage, SenderHdl ));
+
+ sActDBName = pSh->GetDBName();
+ InitDatabaseBox();
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvPage::~SwEnvPage()
+{
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwEnvPage, DatabaseHdl, ListBox *, pListBox )
+{
+#ifdef REPLACE_OFADBMGR
+#else
+ sActDBName = SFX_APP()->LocalizeDBName(NATIONAL2INI, aDatabaseLB.GetSelectEntry());
+#endif
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ if (pListBox == &aDatabaseLB)
+ pSh->GetNewDBMgr()->GetTableNames(&aTableLB, sActDBName);
+#ifdef REPLACE_OFADBMGR
+ pSh->GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName, aTableLB.GetSelectEntry());
+#else
+ sActDBName += DB_DELIM;
+ sActDBName += aTableLB.GetSelectEntry();
+ pSh->GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName);
+#endif
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwEnvPage, FieldHdl, Button *, EMPTYARG )
+{
+ String aStr ( '<' );
+ aStr += aDatabaseLB.GetSelectEntry();
+ aStr += '.';
+// aStr += DB_DELIM;
+ aStr += aTableLB.GetSelectEntry();
+ aStr += '.';
+// aStr += DB_DELIM;
+ aStr += aDBFieldLB.GetSelectEntry();
+ aStr += '>';
+ aAddrEdit.ReplaceSelected(aStr);
+ Selection aSel = aAddrEdit.GetSelection();
+ aAddrEdit.GrabFocus();
+ aAddrEdit.SetSelection(aSel);
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwEnvPage, SenderHdl, Button *, EMPTYARG )
+{
+ const BOOL bEnable = aSenderBox.IsChecked();
+ GetParent()->aEnvItem.bSend = bEnable;
+ aSenderEdit.Enable(bEnable);
+ if ( bEnable )
+ aSenderEdit.GrabFocus();
+ aPreview.Invalidate();
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvPage::InitDatabaseBox()
+{
+ if (pSh->GetNewDBMgr())
+ {
+ aDatabaseLB.Clear();
+#ifdef REPLACE_OFADBMGR
+ Sequence<OUString> aDataNames = SwNewDBMgr::GetExistingDatabaseNames();
+ const OUString* pDataNames = aDataNames.getConstArray();
+ for (long i = 0; i < aDataNames.getLength(); i++)
+ aDatabaseLB.InsertEntry(pDataNames[i]);
+
+ String sDBName = sActDBName.GetToken( 0, DB_DELIM );
+ String sTableName = sActDBName.GetToken( 1, DB_DELIM );
+ aDatabaseLB.SelectEntry(sDBName);
+ if (pSh->GetNewDBMgr()->GetTableNames(&aTableLB, sDBName))
+ {
+ aTableLB.SelectEntry(sTableName);
+ pSh->GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName, sTableName);
+ }
+ else
+ aDBFieldLB.Clear();
+#else
+ SbaObject *pSbaObject = pSh->GetNewDBMgr()->GetSbaObject();
+ if(!pSbaObject)
+ return;
+ String sDBNames = pSbaObject->GetDatabaseNames();
+ sDBNames = SFX_APP()->LocalizeDBName(INI2NATIONAL, sDBNames);
+ USHORT nCount = sDBNames.GetTokenCount();
+
+ for (USHORT i = 0; i < nCount; i++)
+ aDatabaseLB.InsertEntry(sDBNames.GetToken(i));
+ String sDBName = SFX_APP()->LocalizeDBName( INI2NATIONAL,
+ sActDBName.GetToken( 0, DB_DELIM ));
+ aDatabaseLB.SelectEntry(sDBName);
+ if (pSh->GetNewDBMgr()->GetTableNames(&aTableLB, sDBName))
+ {
+ aTableLB.SelectEntry(sActDBName.GetToken(1, DB_DELIM));
+ pSh->GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName);
+ }
+ else
+ aDBFieldLB.Clear();
+#endif
+
+ }
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxTabPage* SwEnvPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwEnvPage(pParent, rSet);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvPage::ActivatePage(const SfxItemSet& rSet)
+{
+ SfxItemSet aSet(rSet);
+ aSet.Put(GetParent()->aEnvItem);
+ Reset(aSet);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+int SwEnvPage::DeactivatePage(SfxItemSet* pSet)
+{
+ FillItem(GetParent()->aEnvItem);
+ FillItemSet(*pSet);
+ return SfxTabPage::LEAVE_PAGE;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvPage::FillItem(SwEnvItem& rItem)
+{
+ rItem.aAddrText = aAddrEdit .GetText();
+ rItem.bSend = aSenderBox .IsChecked();
+ rItem.aSendText = aSenderEdit.GetText();
+}
+
+// --------------------------------------------------------------------------
+
+
+
+BOOL SwEnvPage::FillItemSet(SfxItemSet& rSet)
+{
+ FillItem(GetParent()->aEnvItem);
+ rSet.Put(GetParent()->aEnvItem);
+ return TRUE;
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+void SwEnvPage::Reset(const SfxItemSet& rSet)
+{
+ SwEnvItem aItem = (const SwEnvItem&) rSet.Get(FN_ENVELOP);
+ aAddrEdit .SetText(aItem.aAddrText.ConvertLineEnd());
+ aSenderEdit.SetText(aItem.aSendText.ConvertLineEnd());
+ aSenderBox .Check (aItem.bSend);
+ aSenderBox.GetClickHdl().Call(&aSenderBox);
+}
+
+
+
+// ----------------------------------------------------------------------------
+
+/*
+$Log: not supported by cvs2svn $
+Revision 1.91 2000/09/18 16:05:25 willem.vandorp
+OpenOffice header added.
+
+Revision 1.90 2000/07/18 12:50:08 os
+replace ofadbmgr
+
+Revision 1.89 2000/03/03 15:17:00 os
+StarView remainders removed
+
+Revision 1.88 2000/02/11 14:45:12 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.87 1999/10/08 10:00:09 jp
+no cast from GetpApp to SfxApp
+
+Revision 1.86 1999/10/05 10:18:49 os
+#67889# some printer problems solved
+
+Revision 1.85 1999/09/28 13:21:24 os
+survive without database
+
+Revision 1.84 1999/09/24 13:53:09 os
+chg: ODbRow/ODbVariant - includes moved
+
+Revision 1.83 1999/08/26 17:36:02 JP
+no cast from GetpApp to SfxApp
+
+
+ Rev 1.82 26 Aug 1999 19:36:02 JP
+ no cast from GetpApp to SfxApp
+
+ Rev 1.81 13 Jul 1999 14:28:34 HR
+ #65293#: include <swwait.hxx> and <view.hxx>
+
+ Rev 1.80 08 Jul 1999 18:25:00 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.79 09 Jun 1999 19:34:42 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.78 01 Mar 1999 16:21:52 MA
+ #62490# Altlast entfernt (Drucken und Briefumschlaege/Etiketten und Datenbank)
+
+ Rev 1.77 09 Jul 1998 09:52:30 JP
+ EmptyStr benutzen
+
+ Rev 1.76 09 Apr 1998 14:23:46 OM
+ #47097# Undo von Vorlagenaenderungen ermoeglichen
+
+ Rev 1.75 24 Nov 1997 11:52:12 MA
+ includes
+
+ Rev 1.74 03 Nov 1997 13:17:16 MA
+ precomp entfernt
+
+ Rev 1.73 03 Sep 1997 13:59:12 OM
+ #36627# Sinnvolle Fehlermeldungen liefern
+
+ Rev 1.72 02 Sep 1997 09:58:24 OM
+ SDB-Headeranpassung
+
+ Rev 1.71 05 May 1997 11:16:30 OM
+ Hilfetext fuer OK loeschen
+
+ Rev 1.70 24 Apr 1997 11:06:30 OM
+ HelpID fuer Briefumschlag aendern
+
+ Rev 1.69 04 Apr 1997 14:04:52 OM
+ HelpIDs fuer DruckButton
+
+ Rev 1.68 05 Feb 1997 10:19:06 OM
+ FillItemSet in DeactivatePage rufen
+
+ Rev 1.67 04 Dec 1996 13:54:02 OM
+ Kein konstanter AdressDBName mehr
+
+ Rev 1.66 11 Nov 1996 09:44:16 MA
+ ResMgr
+
+ Rev 1.65 07 Oct 1996 09:33:18 MA
+ Umstellung Enable/Disable
+
+ Rev 1.64 25 Sep 1996 14:11:12 OM
+ Neue Datenbanktrenner
+
+ Rev 1.63 06 Aug 1996 16:46:38 OM
+ Neue Segs
+
+ Rev 1.62 06 Aug 1996 16:45:36 OM
+ Datenbankumstellung
+
+ Rev 1.61 26 Jul 1996 20:36:38 MA
+ includes
+
+ Rev 1.60 17 Jul 1996 13:47:04 OM
+ Datenbankumstellung 327
+
+ Rev 1.59 02 Jul 1996 18:47:06 MA
+ Wait-Umstellung 325
+
+ Rev 1.58 31 May 1996 16:01:20 OM
+ Datenbankumstellung
+
+ Rev 1.57 29 May 1996 12:29:28 OM
+ Umstellung auf 320
+
+ Rev 1.56 18 Apr 1996 16:32:16 OM
+ Datenbankumstellung: Basic-Entkopplung
+
+ Rev 1.55 15 Apr 1996 09:59:44 OM
+ #26838# DefWin fuer DatenbankDlg setzen
+
+ Rev 1.54 12 Apr 1996 14:07:50 OM
+ #26838# Richtiges Window-Parent disabled
+
+ Rev 1.53 11 Apr 1996 12:27:16 OM
+ #26838# Mehrfachoeffnung vom Datenbank-Dlg unterbunden
+
+ Rev 1.52 04 Apr 1996 12:09:00 OM
+ patches legalisiert
+
+ Rev 1.51 20 Mar 1996 15:36:34 OM
+ DB-Namensumstellung auf ODBC
+
+*/
+
diff --git a/sw/source/ui/envelp/envprt.cxx b/sw/source/ui/envelp/envprt.cxx
new file mode 100644
index 000000000000..b8a0e1216bf7
--- /dev/null
+++ b/sw/source/ui/envelp/envprt.cxx
@@ -0,0 +1,428 @@
+/*************************************************************************
+ *
+ * $RCSfile: envprt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_PRINT_HXX //autogen
+#include <vcl/print.hxx>
+#endif
+#ifndef _SV_PRNSETUP_HXX_ //autogen
+#include <svtools/prnsetup.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "envprt.hxx"
+#include "envlop.hxx"
+#include "uitool.hxx"
+
+#include "envprt.hrc"
+
+
+
+
+
+SwEnvPrtPage::SwEnvPrtPage(Window* pParent, const SfxItemSet& rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_ENV_PRT), rSet),
+
+ aAlignBox (this, SW_RES(BOX_ALIGN )),
+ aTopButton (this, SW_RES(BTN_TOP )),
+ aBottomButton(this, SW_RES(BTN_BOTTOM )),
+ aRightText (this, SW_RES(TXT_RIGHT )),
+ aRightField (this, SW_RES(FLD_RIGHT )),
+ aDownText (this, SW_RES(TXT_DOWN )),
+ aDownField (this, SW_RES(FLD_DOWN )),
+ aPrinterInfo (this, SW_RES(TXT_PRINTER)),
+ aNoNameGroup (this, SW_RES(GRP_NONAME )),
+ aPrtSetup (this, SW_RES(BTN_PRTSETUP))
+
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ // Metriken
+ FieldUnit eUnit = ::GetDfltMetric(FALSE);
+ SetMetric(aRightField, eUnit);
+ SetMetric(aDownField , eUnit);
+
+ // Handler installieren
+ aTopButton .SetClickHdl(LINK(this, SwEnvPrtPage, ClickHdl));
+ aBottomButton.SetClickHdl(LINK(this, SwEnvPrtPage, ClickHdl));
+
+ aPrtSetup .SetClickHdl(LINK(this, SwEnvPrtPage, ButtonHdl));
+
+ // Bitmaps
+ aBottomButton.GetClickHdl().Call(&aBottomButton);
+
+ // ToolBox
+ Size aSz = aAlignBox.CalcWindowSizePixel();
+ aAlignBox.SetSizePixel(aSz);
+ aAlignBox.SetPosPixel(Point(aNoNameGroup.GetPosPixel().X() + (aNoNameGroup.GetSizePixel().Width() - aSz.Width()) / 2, aAlignBox.GetPosPixel().Y()));
+ aAlignBox.SetClickHdl(LINK(this, SwEnvPrtPage, AlignHdl));
+
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwEnvPrtPage::~SwEnvPrtPage()
+{
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwEnvPrtPage, ClickHdl, Button *, EMPTYARG )
+{
+ if (aBottomButton.IsChecked())
+ {
+ // Briefumschlaege von unten
+ aAlignBox.SetItemImage(ITM_HOR_LEFT, Bitmap(SW_RES(BMP_HOR_LEFT_LOWER)));
+ aAlignBox.SetItemImage(ITM_HOR_CNTR, Bitmap(SW_RES(BMP_HOR_CNTR_LOWER)));
+ aAlignBox.SetItemImage(ITM_HOR_RGHT, Bitmap(SW_RES(BMP_HOR_RGHT_LOWER)));
+ aAlignBox.SetItemImage(ITM_VER_LEFT, Bitmap(SW_RES(BMP_VER_LEFT_LOWER)));
+ aAlignBox.SetItemImage(ITM_VER_CNTR, Bitmap(SW_RES(BMP_VER_CNTR_LOWER)));
+ aAlignBox.SetItemImage(ITM_VER_RGHT, Bitmap(SW_RES(BMP_VER_RGHT_LOWER)));
+ }
+ else
+ {
+ // Briefumschlaege von oben
+ aAlignBox.SetItemImage(ITM_HOR_LEFT, Bitmap(SW_RES(BMP_HOR_LEFT_UPPER)));
+ aAlignBox.SetItemImage(ITM_HOR_CNTR, Bitmap(SW_RES(BMP_HOR_CNTR_UPPER)));
+ aAlignBox.SetItemImage(ITM_HOR_RGHT, Bitmap(SW_RES(BMP_HOR_RGHT_UPPER)));
+ aAlignBox.SetItemImage(ITM_VER_LEFT, Bitmap(SW_RES(BMP_VER_LEFT_UPPER)));
+ aAlignBox.SetItemImage(ITM_VER_CNTR, Bitmap(SW_RES(BMP_VER_CNTR_UPPER)));
+ aAlignBox.SetItemImage(ITM_VER_RGHT, Bitmap(SW_RES(BMP_VER_RGHT_UPPER)));
+ }
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwEnvPrtPage, ButtonHdl, Button *, pBtn )
+{
+ if (pBtn == &aPrtSetup)
+ {
+ // Druck-Setup aufrufen
+ if (pPrt)
+ {
+ PrinterSetupDialog* pDlg = new PrinterSetupDialog(this );
+ pDlg->SetPrinter(pPrt);
+ pDlg->Execute();
+ delete pDlg;
+ GrabFocus();
+ aPrinterInfo.SetText(pPrt->GetName());
+ }
+ }
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwEnvPrtPage, AlignHdl, ToolBox *, EMPTYARG )
+{
+ if (aAlignBox.GetCurItemId())
+ {
+ for (USHORT i = ITM_HOR_LEFT; i <= ITM_VER_RGHT; i++)
+ aAlignBox.CheckItem(i, FALSE);
+ aAlignBox.CheckItem(aAlignBox.GetCurItemId(), TRUE);
+ }
+ else
+ {
+ // GetCurItemId() == 0 ist moeglich!
+ const SwEnvItem& rItem = (const SwEnvItem&) GetItemSet().Get(FN_ENVELOP);
+ aAlignBox.CheckItem((USHORT) rItem.eAlign + ITM_HOR_LEFT, TRUE);
+ }
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxTabPage* SwEnvPrtPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwEnvPrtPage(pParent, rSet);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvPrtPage::ActivatePage(const SfxItemSet& rSet)
+{
+ if (pPrt)
+ aPrinterInfo.SetText(pPrt->GetName());
+}
+
+// --------------------------------------------------------------------------
+
+
+
+int SwEnvPrtPage::DeactivatePage(SfxItemSet* pSet)
+{
+ FillItemSet(*pSet);
+ return SfxTabPage::LEAVE_PAGE;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwEnvPrtPage::FillItem(SwEnvItem& rItem)
+{
+ USHORT nID = 0;
+ for (USHORT i = ITM_HOR_LEFT; i <= ITM_VER_RGHT && !nID; i++)
+ if (aAlignBox.IsItemChecked(i))
+ nID = i;
+
+ rItem.eAlign = (SwEnvAlign) (nID - ITM_HOR_LEFT);
+ rItem.bPrintFromAbove = aTopButton.IsChecked();
+ rItem.lShiftRight = GetFldVal(aRightField);
+ rItem.lShiftDown = GetFldVal(aDownField );
+}
+
+// --------------------------------------------------------------------------
+
+
+
+BOOL SwEnvPrtPage::FillItemSet(SfxItemSet& rSet)
+{
+ FillItem(GetParent()->aEnvItem);
+ rSet.Put(GetParent()->aEnvItem);
+ return TRUE;
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+void SwEnvPrtPage::Reset(const SfxItemSet& rSet)
+{
+// SfxItemSet aSet(rSet);
+// aSet.Put(GetParent()->aEnvItem);
+
+ // Item auslesen
+ const SwEnvItem& rItem = (const SwEnvItem&) rSet.Get(FN_ENVELOP);
+ aAlignBox.CheckItem((USHORT) rItem.eAlign + ITM_HOR_LEFT);
+
+ if (rItem.bPrintFromAbove)
+ aTopButton .Check();
+ else
+ aBottomButton.Check();
+
+ SetFldVal(aRightField, rItem.lShiftRight);
+ SetFldVal(aDownField , rItem.lShiftDown );
+
+ ActivatePage(rSet);
+ ClickHdl(&aTopButton);
+}
+
+
+
+// ----------------------------------------------------------------------------
+/*
+$Log: not supported by cvs2svn $
+Revision 1.43 2000/09/18 16:05:25 willem.vandorp
+OpenOffice header added.
+
+Revision 1.42 2000/02/11 14:45:23 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.41 1999/10/05 10:18:49 os
+#67889# some printer problems solved
+
+Revision 1.40 1998/09/08 14:52:44 OS
+#56134# Metric fuer Text und HTML getrennt
+
+
+ Rev 1.39 08 Sep 1998 16:52:44 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.38 16 Feb 1998 15:33:18 RG
+ ->DOS-Format
+
+ Rev 1.37 28 Nov 1997 18:18:56 MA
+ includes
+
+ Rev 1.36 24 Nov 1997 11:52:10 MA
+ includes
+
+ Rev 1.35 03 Nov 1997 13:17:14 MA
+ precomp entfernt
+
+ Rev 1.34 01 Oct 1997 10:49:10 TRI
+ PrintDialogumstellung
+
+ Rev 1.33 20 Feb 1997 17:51:40 MA
+ fix: Deactivate ueber Fill
+
+ Rev 1.32 11 Nov 1996 09:44:16 MA
+ ResMgr
+
+ Rev 1.31 29 Oct 1996 17:59:28 HJS
+ includes
+
+ Rev 1.30 26 Jul 1996 20:36:36 MA
+ includes
+
+ Rev 1.29 06 Feb 1996 15:19:00 JP
+ Link Umstellung 305
+
+ Rev 1.28 28 Nov 1995 21:14:58 JP
+ UiSystem-Klasse aufgehoben, in initui/swtype aufgeteilt
+
+ Rev 1.27 27 Nov 1995 19:35:48 OM
+ HasExchangeSupport->303a
+
+ Rev 1.26 24 Nov 1995 16:59:42 OM
+ PCH->PRECOMPILED
+
+ Rev 1.25 13 Nov 1995 13:44:50 MA
+ chg: Link-Cast entfernt
+
+ Rev 1.24 10 Nov 1995 18:23:40 OM
+ Brief-Image richtig initialisiert
+
+ Rev 1.23 08 Nov 1995 13:48:24 OM
+ Change->Set
+
+ Rev 1.22 05 Aug 1995 19:15:40 ER
+ segprag
+
+ Rev 1.21 04 Aug 1995 18:32:44 OM
+ Umstellung Drucktabpage
+
+ Rev 1.20 03 Aug 1995 18:49:36 OM
+ Umstellung Print-TabPage
+
+ Rev 1.19 24 May 1995 18:14:56 ER
+ Segmentierung
+
+ Rev 1.18 24 Mar 1995 20:30:38 PK
+ geht immer weiter
+
+ Rev 1.17 23 Mar 1995 18:33:22 PK
+ geht immer weiter ...
+
+ Rev 1.16 17 Mar 1995 17:10:06 PK
+ geht immer weiter
+
+ Rev 1.15 15 Mar 1995 18:37:42 PK
+ geht immer weiter
+
+ Rev 1.14 06 Mar 1995 00:08:20 PK
+ linkbarer envelp-zustand
+
+ Rev 1.13 04 Mar 1995 22:55:30 PK
+ geht immer weiter
+
+ Rev 1.12 21 Feb 1995 15:39:10 PK
+ erstmal eingecheckt
+
+ Rev 1.11 25 Oct 1994 17:33:28 ER
+ add: PCH
+
+ Rev 1.10 09 Aug 1994 16:12:52 MS
+ Entwarnung
+
+ Rev 1.9 04 Aug 1994 09:38:32 SWG
+ swg32: SED Size to SSize, LSize to Size etc.
+
+ Rev 1.8 19 Jul 1994 15:14:28 PK
+ globale metriken
+
+ Rev 1.7 31 Mar 1994 16:26:36 PK
+ (vor)letzter feinschliff beim druck
+
+ Rev 1.6 23 Mar 1994 12:50:28 PK
+ bugfix in alignhdl()
+
+ Rev 1.5 22 Mar 1994 17:51:02 PK
+ umschlaege vorerst fertig
+
+ Rev 1.4 22 Mar 1994 09:41:34 SWG
+ fehlerhafte FUNCDEFS gerichtet
+
+ Rev 1.3 21 Mar 1994 19:02:56 PK
+ weiter
+
+ Rev 1.2 09 Mar 1994 19:33:48 PK
+ ->update
+
+ Rev 1.1 08 Mar 1994 19:33:04 PK
+
+
+ Rev 1.0 08 Mar 1994 12:22:24 PK
+
+*/
+
diff --git a/sw/source/ui/envelp/envprt.hrc b/sw/source/ui/envelp/envprt.hrc
new file mode 100644
index 000000000000..bf435c393750
--- /dev/null
+++ b/sw/source/ui/envelp/envprt.hrc
@@ -0,0 +1,114 @@
+/*************************************************************************
+ *
+ * $RCSfile: envprt.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _ENVPRT_HRC
+#define _ENVPRT_HRC
+
+// #include *****************************************************************
+
+#include "envelp.hrc"
+
+// Lokale Resourcen *********************************************************
+
+#define BOX_ALIGN 1
+#define BTN_TOP 7
+#define BTN_BOTTOM 8
+#define TXT_RIGHT 9
+#define FLD_RIGHT 10
+#define TXT_DOWN 11
+#define FLD_DOWN 12
+#define TXT_PRINTER 13
+#define GRP_NONAME 14
+#define BTN_PRTSETUP 15
+
+// Globale Resourcen ********************************************************
+
+#define BMP_HOR_LEFT_LOWER (RC_ENVPRT_BEGIN )
+#define BMP_HOR_LEFT_UPPER (RC_ENVPRT_BEGIN + 1)
+#define BMP_HOR_CNTR_LOWER (RC_ENVPRT_BEGIN + 2)
+#define BMP_HOR_CNTR_UPPER (RC_ENVPRT_BEGIN + 3)
+#define BMP_HOR_RGHT_LOWER (RC_ENVPRT_BEGIN + 4)
+#define BMP_HOR_RGHT_UPPER (RC_ENVPRT_BEGIN + 5)
+
+#define BMP_VER_LEFT_LOWER (RC_ENVPRT_BEGIN + 6)
+#define BMP_VER_LEFT_UPPER (RC_ENVPRT_BEGIN + 7)
+#define BMP_VER_CNTR_LOWER (RC_ENVPRT_BEGIN + 8)
+#define BMP_VER_CNTR_UPPER (RC_ENVPRT_BEGIN + 9)
+#define BMP_VER_RGHT_LOWER (RC_ENVPRT_BEGIN + 10)
+#define BMP_VER_RGHT_UPPER (RC_ENVPRT_BEGIN + 11)
+
+#define ITM_HOR_LEFT (RC_ENVPRT_BEGIN + 12)
+#define ITM_HOR_CNTR (RC_ENVPRT_BEGIN + 13)
+#define ITM_HOR_RGHT (RC_ENVPRT_BEGIN + 14)
+#define ITM_VER_LEFT (RC_ENVPRT_BEGIN + 15)
+#define ITM_VER_CNTR (RC_ENVPRT_BEGIN + 16)
+#define ITM_VER_RGHT (RC_ENVPRT_BEGIN + 17)
+
+// Ueberlaufpruefung ********************************************************
+
+#define ENVPRT_ACT_END BMP_VER_RGHT_UPPER
+
+#if ENVPRT_ACT_END > RC_ENVPRT_END
+#error Resource-Ueberlauf in #file, #line
+#endif
+
+#endif
+
diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx
new file mode 100644
index 000000000000..4eccbe5d1e90
--- /dev/null
+++ b/sw/source/ui/envelp/envprt.hxx
@@ -0,0 +1,134 @@
+/*************************************************************************
+ *
+ * $RCSfile: envprt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _ENVPRT_HXX
+#define _ENVPRT_HXX
+
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+
+
+
+#include "envimg.hxx"
+
+class SwEnvDlg;
+
+// class SwEnvPrtPage ---------------------------------------------------------
+
+class SwEnvPrtPage : public SfxTabPage
+{
+ ToolBox aAlignBox;
+ RadioButton aTopButton;
+ RadioButton aBottomButton;
+ FixedText aRightText;
+ MetricField aRightField;
+ FixedText aDownText;
+ MetricField aDownField;
+ FixedInfo aPrinterInfo;
+ GroupBox aNoNameGroup;
+ PushButton aPrtSetup;
+
+ Printer* pPrt;
+
+ SwEnvPrtPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwEnvPrtPage();
+
+ DECL_LINK( ClickHdl, Button * );
+ DECL_LINK( AlignHdl, ToolBox * );
+ DECL_LINK( ButtonHdl, Button * );
+
+ SwEnvDlg* GetParent() {return (SwEnvDlg*) SfxTabPage::GetParent()->GetParent();}
+
+public:
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ void FillItem(SwEnvItem& rItem);
+ virtual BOOL FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+
+ inline void SetPrt(Printer* pPrinter) { pPrt = pPrinter; }
+};
+
+#endif
+
diff --git a/sw/source/ui/envelp/envprt.src b/sw/source/ui/envelp/envprt.src
new file mode 100644
index 000000000000..53e9979002f2
--- /dev/null
+++ b/sw/source/ui/envelp/envprt.src
@@ -0,0 +1,372 @@
+/*************************************************************************
+ *
+ * $RCSfile: envprt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma *****************************************************************
+
+ // #include ****************************************************************
+#include "envprt.hrc"
+#include "helpid.h"
+ // TP_ENV_PRT ---------------------------------------------------------------
+TabPage TP_ENV_PRT
+{
+ HelpID = HID_ENV_PRT ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ ToolBox BOX_ALIGN
+ {
+ Pos = MAP_APPFONT ( 35 , 14 ) ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = ITM_HOR_LEFT ;
+ HelpID = ITM_HOR_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = ITM_HOR_CNTR ;
+ HelpID = ITM_HOR_CNTR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = ITM_HOR_RGHT ;
+ HelpID = ITM_HOR_RGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = ITM_VER_LEFT ;
+ HelpID = ITM_VER_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = ITM_VER_CNTR ;
+ HelpID = ITM_VER_CNTR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = ITM_VER_RGHT ;
+ HelpID = ITM_VER_RGHT ;
+ };
+ };
+ };
+ RadioButton BTN_TOP
+ {
+ Pos = MAP_APPFONT ( 12 , 39 ) ;
+ Size = MAP_APPFONT ( 166 , 10 ) ;
+ Text = "Von ~oben bedrucken" ;
+ Text [ ENGLISH ] = "Print upper side" ;
+ Text [ NORWEGIAN ] = "Print upper side" ;
+ Text [ DANISH ] = "Forsiden opad" ;
+ Text [ ENGLISH_US ] = "~Print from top" ;
+ Text [ SPANISH ] = "Imprimir r~everso" ;
+ Text [ FINNISH ] = "Tulosta ylõpuoli" ;
+ Text [ FRENCH ] = "Imprimer du ~haut" ;
+ Text [ ITALIAN ] = "Stampa da sopra" ;
+ Text [ DUTCH ] = "B~ovenkant bedrukken" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Imprimir parte superior" ;
+ Text [ SWEDISH ] = "Skriv ut u~ppifrån" ;
+ Text [ PORTUGUESE ] = "Imprimir a partir de cima" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "´ÓÉÏ·½¿ªÊ¼´òÓ¡(~T)";
+ Text[ russian ] = "Ïå÷àòàòü ñâåðõó";
+ Text[ polish ] = "Drukuj od góry";
+ Text[ japanese ] = "ã‚©‚çˆóü(~T)";
+ Text[ chinese_traditional ] = "±q¤W¤è¶}©l¦C¦L(~T)";
+ Text[ arabic ] = "ÇáØÈÇÚÉ ãä ÃÚáì";
+ Text[ greek ] = "Åêôýðùóç áðü ðÜíù";
+ Text[ korean ] = "À§·ÎºÎÅÍ Àμâ(~P)";
+ Text[ turkish ] = "Üstten yazdýr";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton BTN_BOTTOM
+ {
+ Pos = MAP_APPFONT ( 12 , 52 ) ;
+ Size = MAP_APPFONT ( 166 , 10 ) ;
+ Text = "Von ~unten bedrucken" ;
+ Text [ ENGLISH ] = "Print lower side" ;
+ Text [ NORWEGIAN ] = "Print lower side" ;
+ Text [ DANISH ] = "Forsiden nedad" ;
+ Text [ ENGLISH_US ] = "Print from ~bottom" ;
+ Text [ SPANISH ] = "Imprimir ~anverso" ;
+ Text [ FINNISH ] = "Tulosta alapuoli" ;
+ Text [ FRENCH ] = "Imprimer du ~bas" ;
+ Text [ ITALIAN ] = "Stampa da sotto" ;
+ Text [ DUTCH ] = "~Onderkant bedrukken" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Imprimir parte inferior" ;
+ Text [ SWEDISH ] = "Skriv ~ut nedifrån" ;
+ Text [ PORTUGUESE ] = "Imprimir a partir de baixo" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "´ÓÏ·½¿ªÊ¼´òÓ¡(~B)";
+ Text[ russian ] = "Ïå÷àòàòü ñíèçó";
+ Text[ polish ] = "Drukuj od do³u";
+ Text[ japanese ] = "‰º‚©‚çˆóü(~B)";
+ Text[ chinese_traditional ] = "±q¤U¤è¶}©l¦C¦L(~B)";
+ Text[ arabic ] = "ÇáØÈÇÚÉ ãä ÃÓÝá";
+ Text[ greek ] = "Åêôýðùóç áðü êÜôù";
+ Text[ korean ] = "¾Æ·¡·ÎºÎÅÍ Àμâ(~B)";
+ Text[ turkish ] = "Alttan yazdýr";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_RIGHT
+ {
+ Pos = MAP_APPFONT ( 12 , 68 ) ;
+ Size = MAP_APPFONT ( 50 , 8 ) ;
+ Text = "Nach ~rechts" ;
+ Text [ ENGLISH ] = "Shift right" ;
+ Text [ NORWEGIAN ] = "Shift right" ;
+ Text [ DANISH ] = "Mod højre" ;
+ Text [ ENGLISH_US ] = "~Shift right" ;
+ Text [ SPANISH ] = "Hacia la ~derecha" ;
+ Text [ FINNISH ] = "Siirrõ oikealle" ;
+ Text [ FRENCH ] = "A ~droite" ;
+ Text [ ITALIAN ] = "Sposta a destra" ;
+ Text [ DUTCH ] = "Naar re~chts" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Trocar Ó direita" ;
+ Text [ SWEDISH ] = "Åt höger" ;
+ Text [ PORTUGUESE ] = "À direita" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÏòÓÒ(~S)";
+ Text[ russian ] = "Âïðàâî";
+ Text[ polish ] = "Na prawo";
+ Text[ japanese ] = "‰E‚É(~S)";
+ Text[ chinese_traditional ] = "¦V¥k(~S)";
+ Text[ arabic ] = "Åáì Çáíãíä";
+ Text[ greek ] = "Ðñïò ôá äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊÀ¸·Î ¹Ð±â(~S)";
+ Text[ turkish ] = "S~aða";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_RIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 78 , 66 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 10000 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_DOWN
+ {
+ Pos = MAP_APPFONT ( 12 , 83 ) ;
+ Size = MAP_APPFONT ( 50 , 8 ) ;
+ Text = "~Nach unten" ;
+ Text [ ENGLISH ] = "Shift down" ;
+ Text [ NORWEGIAN ] = "Shift down" ;
+ Text [ DANISH ] = "Nedad" ;
+ Text [ ENGLISH_US ] = "Shift ~down" ;
+ Text [ SPANISH ] = "Hacia a~bajo" ;
+ Text [ FINNISH ] = "Siirrõ alas" ;
+ Text [ FRENCH ] = "Vers le ~bas" ;
+ Text [ ITALIAN ] = "Sposta in basso" ;
+ Text [ DUTCH ] = "~Naar beneden" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Trocar abaixo" ;
+ Text [ SWEDISH ] = "~Nedåt" ;
+ Text [ PORTUGUESE ] = "Para baixo" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÏòÏÂ(~D)";
+ Text[ russian ] = "Âíèç";
+ Text[ polish ] = "W dó³";
+ Text[ japanese ] = "‰º‚É(~D)";
+ Text[ chinese_traditional ] = "¦V¤U(~D)";
+ Text[ arabic ] = "Åáì ÃÓÝá";
+ Text[ greek ] = "Ðñïò ôá êÜôù";
+ Text[ korean ] = "¾Æ·¡·Î ¹Ð±â(~D)";
+ Text[ turkish ] = "~Aþaðý";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_DOWN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 78 , 81 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 10000 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 10000 ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_PRINTER
+ {
+ Pos = MAP_APPFONT ( 12 , 111 ) ;
+ Size = MAP_APPFONT ( 183 , 10 ) ;
+ Text = "- Kein Drucker installiert -" ;
+ Text [ ENGLISH ] = "- No printer installed -" ;
+ Text [ NORWEGIAN ] = "- No printer installed -" ;
+ Text [ DANISH ] = "- Ingen printer installeret -" ;
+ Text [ ENGLISH_US ] = "- No printer installed -" ;
+ Text [ SPANISH ] = "- No hay instalada ninguna impresora -" ;
+ Text [ FINNISH ] = "- Kirjoitinta ei asennettu -" ;
+ Text [ FRENCH ] = "- Aucune imprimante installée -" ;
+ Text [ ITALIAN ] = "- Nessuna stampante installata -." ;
+ Text [ DUTCH ] = "- Geen printer geïnstalleerd -" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "- Nenhuma impressora instalada -" ;
+ Text [ SWEDISH ] = "- Ingen skrivare installerad -" ;
+ Text [ PORTUGUESE ] = "- Nenhuma impressora instalada -" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "- ûÓа²×°´òÓ¡»ú -";
+ Text[ russian ] = "- Ïðèíòåð íå èíñòàëëèðîâàí -";
+ Text[ polish ] = "- Drukarka nie jest zainstalowana -";
+ Text[ japanese ] = "- ÌßØÝÀ‚ª²Ý½Ä°Ù‚³‚ê‚Ä‚¢‚Ü‚¹‚ñ -";
+ Text[ chinese_traditional ] = "- ¨S¦³¦w¸Ë¦Lªí¾÷ -";
+ Text[ arabic ] = "- áÇ íæÌÏ ØÇÈÚÉ ãËÈÊÉ -";
+ Text[ greek ] = "- Äåí Ý÷åé åãêáôáóôáèåß åêôõðùôÞò -";
+ Text[ korean ] = "- ÇÁ¸°ÅÍ°¡ ¼³Ä¡µÇÁö ¾Ê¾Ò½À´Ï´Ù. -";
+ Text[ turkish ] = "- Kurulu yazýcý yok -";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GRP_NONAME
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 125 ) ;
+ Group = TRUE ;
+ };
+ PushButton BTN_PRTSETUP
+ {
+ Pos = MAP_APPFONT ( 201 , 109 ) ;
+ Size = MAP_APPFONT ( 48 , 14 ) ;
+ Text = "~Einrichten..." ;
+ Text [ ENGLISH ] = "Setup..." ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Setup..." ;
+ Text [ italian ] = "Imposta..." ;
+ Text [ spanish ] = "Configurar..." ;
+ Text [ french ] = "~Paramétrer..." ;
+ Text [ dutch ] = "~Configureren..." ;
+ Text [ swedish ] = "Inrä~tta..." ;
+ Text [ danish ] = "Indstil..." ;
+ Text [ portuguese_brazilian ] = "Einrichten..." ;
+ Text [ portuguese ] = "~Configurar..." ;
+ Text[ chinese_simplified ] = "ÉèÖÃ(~S)...";
+ Text[ russian ] = "Óñòàíîâèòü...";
+ Text[ polish ] = "Ustaw...";
+ Text[ japanese ] = "Ý’è...";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "³]¸m...";
+ Text[ arabic ] = "...ÅÚÏÇÏ";
+ Text[ greek ] = "~ÅãêáôÜóôáóç...";
+ Text[ korean ] = "¼³Á¤...";
+ Text[ turkish ] = "Ayarlar...";
+ };
+};
+ // Bitmaps ******************************************************************
+Bitmap BMP_HOR_LEFT_LOWER
+{
+ File = "envhl_l.bmp" ;
+};
+Bitmap BMP_HOR_LEFT_UPPER
+{
+ File = "envhl_u.bmp" ;
+};
+Bitmap BMP_HOR_CNTR_LOWER
+{
+ File = "envhc_l.bmp" ;
+};
+Bitmap BMP_HOR_CNTR_UPPER
+{
+ File = "envhc_u.bmp" ;
+};
+Bitmap BMP_HOR_RGHT_LOWER
+{
+ File = "envhr_l.bmp" ;
+};
+Bitmap BMP_HOR_RGHT_UPPER
+{
+ File = "envhr_u.bmp" ;
+};
+Bitmap BMP_VER_LEFT_LOWER
+{
+ File = "envvl_l.bmp" ;
+};
+Bitmap BMP_VER_LEFT_UPPER
+{
+ File = "envvl_u.bmp" ;
+};
+Bitmap BMP_VER_CNTR_LOWER
+{
+ File = "envvc_l.bmp" ;
+};
+Bitmap BMP_VER_CNTR_UPPER
+{
+ File = "envvc_u.bmp" ;
+};
+Bitmap BMP_VER_RGHT_LOWER
+{
+ File = "envvr_l.bmp" ;
+};
+Bitmap BMP_VER_RGHT_UPPER
+{
+ File = "envvr_u.bmp" ;
+};
diff --git a/sw/source/ui/envelp/label.hrc b/sw/source/ui/envelp/label.hrc
new file mode 100644
index 000000000000..6c1751a70225
--- /dev/null
+++ b/sw/source/ui/envelp/label.hrc
@@ -0,0 +1,158 @@
+/*************************************************************************
+ *
+ * $RCSfile: label.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _LABEL_HRC
+#define _LABEL_HRC
+
+// #include *****************************************************************
+
+#include "envelp.hrc"
+
+// Lokale Resourcen *********************************************************
+
+#define TXT_WRITING 1
+#define BOX_ADDR 2
+#define EDT_WRITING 3
+#define FT_DATABASE 4
+#define LB_DATABASE 5
+#define FT_TABLE 6
+#define LB_TABLE 7
+#define GRP_WRITING 8
+#define BTN_CONT 9
+#define BTN_SHEET 10
+#define TXT_MAKE 11
+#define BOX_MAKE 12
+#define TXT_TYPE 13
+#define BOX_TYPE 14
+#define INF_FORMAT 15
+#define GRP_FORMAT 16
+#define FT_DBFIELD 17
+#define LB_DBFIELD 18
+#define BTN_INSERT 19
+#define BTN_SYNC 20
+
+#define RB_FROM_AUTO_TEXT 1
+#define RB_FROM_EDIT 2
+#define LB_AUTO_TEXT 3
+#define FT_AUTO_TEXT_GROUP 4
+#define LB_AUTO_TEXT_GROUP 5
+#define ED_TEXT 6
+#define GB_CONTENT 7
+#define WIN_EXAMPLE 8
+#define GB_EXAMPLE 9
+#define ST_VISCARD_GROUP 10
+
+#define GB_DATA 30
+#define FT_NAME 31
+#define ED_FIRSTNAME 32
+#define ED_NAME 33
+#define ED_SHORTCUT 34
+#define FT_STREET 35
+#define ED_STREET 36
+#define FT_ZIPCITY 37
+#define ED_ZIP 38
+#define ED_CITY 39
+#define FT_COUNTRYSTATE 40
+#define ED_COUNTRY 41
+#define FT_TITLEPROF 42
+#define ED_PROFESSION 43
+#define ED_TITLE 44
+#define FT_PHONE 45
+#define ED_PHONE 46
+#define ED_MOBILE 47
+#define FT_FAX 48
+#define ED_FAX 49
+#define FT_WWWMAIL 50
+#define ED_WWW 51
+#define ED_MAIL 52
+#define ED_STATE 53
+#define FT_COMP 54
+#define ED_COMP 55
+#define FT_COMP_EXT 56
+#define ED_COMP_EXT 57
+#define FT_SLOGAN 58
+#define ED_SLOGAN 59
+#define FT_POSITION 60
+#define ED_POSITION 61
+
+#define ST_BUSINESSCARDDLG 62
+#define ST_FIRSTPAGE_LAB 63
+#define ST_FIRSTPAGE_BC 64
+
+#define FT_NAME_2 65
+#define ED_FIRSTNAME_2 66
+#define ED_NAME_2 67
+#define ED_SHORTCUT_2 68
+
+// Globale Resourcen ********************************************************
+#define STR_DOC_TITLE (RC_LABEL_BEGIN)
+#define STR_CUSTOM (RC_LABEL_BEGIN + 1)
+
+// Ueberlaufpruefung ********************************************************
+
+#define LABEL_ACT_END STR_CUSTOM
+
+#if LABEL_ACT_END > RC_LABEL_END
+#error Resource-Ueberlauf in #file, #line
+#endif
+
+#endif
+
diff --git a/sw/source/ui/envelp/label.src b/sw/source/ui/envelp/label.src
new file mode 100644
index 000000000000..1e21c908a2d8
--- /dev/null
+++ b/sw/source/ui/envelp/label.src
@@ -0,0 +1,1606 @@
+/*************************************************************************
+ *
+ * $RCSfile: label.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "label.hrc"
+#include "globals.hrc"
+#include "helpid.h"
+// ----- defined strings -----------------------------------------------------
+#define LABEL_STRING \
+ Text = "Etiketten" ; \
+ Text [ ENGLISH ] = "Labels" ; \
+ Text [ norwegian ] = "Etiketter" ; \
+ Text [ italian ] = "Etichette" ; \
+ Text [ portuguese_brazilian ] = "Etiquetas" ; \
+ Text [ portuguese ] = "Etiquetas" ; \
+ Text [ finnish ] = "Tarrat" ; \
+ Text [ danish ] = "Etiketter" ; \
+ Text [ french ] = "Étiquettes" ; \
+ Text [ swedish ] = "Etiketter" ; \
+ Text [ dutch ] = "Etiketten" ; \
+ Text [ spanish ] = "Etiquetas" ; \
+ Text [ english_us ] = "Labels" ; \
+ Text[ chinese_simplified ] = "±êÇ©"; \
+ Text[ russian ] = "Íàêëåéêè"; \
+ Text[ polish ] = "Etykiety"; \
+ Text[ japanese ] = "×ÍÞÙ"; \
+ Text[ chinese_traditional ] = "¼ÐÅÒ"; \
+ Text[ arabic ] = "ÈØÇÞÇÊ ÚäæäÉ"; \
+ Text[ greek ] = "ÅôéêÝôåò"; \
+ Text[ korean ] = "¶óº§"; \
+ Text[ turkish ] = "Etiket";
+
+ #define BUSINESS_CARD_STRING \
+ Text = "Visitenkarten" ; \
+ Text [ ENGLISH ] = "Business cards" ; \
+ Text[ english_us ] = "Business cards"; \
+ Text[ portuguese ] = "Cartões de visita"; \
+ Text[ russian ] = "Âèçèòíûå êàðòî÷êè"; \
+ Text[ greek ] = "Visiting cards"; \
+ Text[ dutch ] = "Visitekaartjes"; \
+ Text[ french ] = "Cartes de visite"; \
+ Text[ spanish ] = "Tarjetas de visita"; \
+ Text[ italian ] = "Biglietti da visita"; \
+ Text[ danish ] = "Visitkort"; \
+ Text[ swedish ] = "Visitkort"; \
+ Text[ polish ] = "Wizytówki"; \
+ Text[ portuguese_brazilian ] = "Visiting cards"; \
+ Text[ japanese ] = "–¼Žh"; \
+ Text[ korean ] = "Visiting cards"; \
+ Text[ chinese_simplified ] = "ÃûƬ"; \
+ Text[ chinese_traditional ] = "¦W¤ù"; \
+ Text[ arabic ] = "ÈØÇÞÇÊ ÇáÒíÇÑÉ";
+
+ // DLG_LAB ------------------------------------------------------------------
+TabDialog DLG_LAB
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Moveable = TRUE ;
+ LABEL_STRING
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+/* PageItem
+ {
+ Identifier = TP_LAB_LAB ;
+ Text = "Etiketten" ;
+ Text [ ENGLISH ] = "Labels" ;
+ Text [ norwegian ] = "Etiketter" ;
+ Text [ italian ] = "Etichette" ;
+ Text [ portuguese_brazilian ] = "Etiquetas" ;
+ Text [ portuguese ] = "Etiquetas" ;
+ Text [ finnish ] = "Tarrat" ;
+ Text [ danish ] = "Etiketter" ;
+ Text [ french ] = "Etiquettes" ;
+ Text [ swedish ] = "Etiketter" ;
+ Text [ dutch ] = "Etiketten" ;
+ Text [ spanish ] = "Etiquetas" ;
+ Text [ english_us ] = "Labels" ;
+ PageResID = TP_LAB_LAB ;
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ russian ] = "Íàêëåéêè";
+ Text[ polish ] = "Etykiety";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ chinese_traditional ] = "¼ÐÅÒ";
+ Text[ arabic ] = "ÈØÇÞÇÊ ÚäæäÉ";
+ Text[ greek ] = "ÅôéêÝôåò";
+ Text[ korean ] = "Labels";
+ };*/
+ PageItem
+ {
+ Identifier = TP_VISITING_CARDS;
+ PageResID = TP_VISITING_CARDS;
+ BUSINESS_CARD_STRING
+ };
+ PageItem
+ {
+ Identifier = TP_PRIVATE_DATA;
+ PageResID = TP_PRIVATE_DATA;
+ Text = "Privat" ;
+ Text [ ENGLISH ] = "Private" ;
+ Text[ english_us ] = "Private";
+ Text[ portuguese ] = "Pessoal";
+ Text[ russian ] = "Ëè÷íûå";
+ Text[ greek ] = "Ïéêßá";
+ Text[ dutch ] = "Privé";
+ Text[ french ] = "Privé";
+ Text[ spanish ] = "Privado";
+ Text[ italian ] = "Privato";
+ Text[ danish ] = "Privat";
+ Text[ swedish ] = "Privat";
+ Text[ polish ] = "Prywatne";
+ Text[ portuguese_brazilian ] = "Private";
+ Text[ japanese ] = "ÌßײÍÞ°Ä";
+ Text[ korean ] = "°³ÀÎ";
+ Text[ chinese_simplified ] = "˽ÈË";
+ Text[ chinese_traditional ] = "¨p¤H";
+ Text[ arabic ] = "ÔÎÕí";
+ Text[ turkish ] = "Özel";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BUSINESS_DATA;
+ PageResID = TP_BUSINESS_DATA;
+ Text = "Geschäft" ;
+ Text [ ENGLISH ] = "Business" ;
+ Text[ english_us ] = "Business";
+ Text[ portuguese ] = "Emprego";
+ Text[ russian ] = "Ñëóæåáíûå";
+ Text[ greek ] = "Åñãáóßá";
+ Text[ dutch ] = "Zaak";
+ Text[ french ] = "Bureau";
+ Text[ spanish ] = "Trabajo";
+ Text[ italian ] = "Lavoro";
+ Text[ danish ] = "Arbejdsrelateret";
+ Text[ swedish ] = "Affärsmässig";
+ Text[ polish ] = "Biznes";
+ Text[ portuguese_brazilian ] = "Business";
+ Text[ japanese ] = "ŽÐ—p";
+ Text[ korean ] = "¾÷¹«";
+ Text[ chinese_simplified ] = "ÉÌÎñ";
+ Text[ chinese_traditional ] = "°Ó°È";
+ Text[ arabic ] = "Úãá";
+ Text[ turkish ] = "Ýþ";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_LAB_FMT ;
+ Text = "Format" ;
+ Text [ ENGLISH ] = "Format" ;
+ PageResID = TP_LAB_FMT ;
+ Text [ english_us ] = "Format" ;
+ Text [ italian ] = "Formato" ;
+ Text [ spanish ] = "Formato" ;
+ Text [ french ] = "Format" ;
+ Text [ dutch ] = "Grootte" ;
+ Text [ swedish ] = "Format" ;
+ Text [ danish ] = "Format" ;
+ Text [ portuguese_brazilian ] = "Format" ;
+ Text [ portuguese ] = "Formato" ;
+ Text[ chinese_simplified ] = "¸ñʽ";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®";
+ Text[ chinese_traditional ] = "®æ¦¡";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "ÌïñöÞ";
+ Text[ korean ] = "¼­½Ä";
+ Text[ turkish ] = "Format";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_LAB_PRT ;
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Options" ;
+ PageResID = TP_LAB_PRT ;
+ Text [ english_us ] = "Options" ;
+ Text [ portuguese_brazilian ] = "Drucker" ;
+ Text [ swedish ] = "Tillägg" ;
+ Text [ danish ] = "Flere" ;
+ Text [ italian ] = "Extra" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Impression" ;
+ Text [ dutch ] = "Overige" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "ÆäËû";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Dodatki";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Seçenekler";
+ };
+ };
+ };
+ String ST_BUSINESSCARDDLG
+ {
+ BUSINESS_CARD_STRING
+ };
+ String ST_FIRSTPAGE_LAB
+ {
+ LABEL_STRING
+ };
+ String ST_FIRSTPAGE_BC
+ {
+ Text = "Medium" ;
+ Text [ ENGLISH ] = "Media" ;
+ Text[ english_us ] = "Medium";
+ Text[ portuguese ] = "Media";
+ Text[ russian ] = "Ñðåäñòâî";
+ Text[ greek ] = "ÌÝóïí";
+ Text[ dutch ] = "Medium";
+ Text[ french ] = "Média";
+ Text[ spanish ] = "Tipo";
+ Text[ italian ] = "Impostazioni";
+ Text[ danish ] = "Medium";
+ Text[ swedish ] = "Medium";
+ Text[ polish ] = "Noœnik danych";
+ Text[ portuguese_brazilian ] = "Media";
+ Text[ japanese ] = "”}‘Ì";
+ Text[ korean ] = "Áß°£";
+ Text[ chinese_simplified ] = "Ö½ÕÅ";
+ Text[ chinese_traditional ] = "¯È±i";
+ Text[ arabic ] = "æÓÇÆØ";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Kaðýt";
+ };
+};
+ // TP_LAB_LAB ---------------------------------------------------------------
+TabPage TP_LAB_LAB
+{
+ HelpID = HID_LAB_LAB ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ FixedText TXT_WRITING
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 60 , 8 ) ;
+ Text = "~Aufschrift" ;
+ Text [ English ] = "Writing" ;
+ Text [ norwegian ] = "Writing" ;
+ Text [ italian ] = "~Testo etichetta" ;
+ Text [ portuguese_brazilian ] = "Gravar" ;
+ Text [ portuguese ] = "~Inscrição" ;
+ Text [ finnish ] = "Otsikko" ;
+ Text [ danish ] = "Etikettekst" ;
+ Text [ french ] = "~Libellé" ;
+ Text [ swedish ] = "~Påskrift" ;
+ Text [ dutch ] = "~Tekst" ;
+ Text [ spanish ] = "Te~xto" ;
+ Text [ english_us ] = "Label text" ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊäÈëÎÄ×Ö";
+ Text[ russian ] = "Ïîäïèñü";
+ Text[ polish ] = "Oznaczenie";
+ Text[ japanese ] = "ˆ¶æ";
+ Text[ chinese_traditional ] = "¿é¤J¤å¦r";
+ Text[ arabic ] = "äÕ ÇáÈØÇÞÉ";
+ Text[ greek ] = "ÅðéãñáöÞ";
+ Text[ korean ] = "¶óº§ ÅؽºÆ®";
+ Text[ turkish ] = "Etiket metni";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox BOX_ADDR
+ {
+ Pos = MAP_APPFONT ( 82 , 13 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Adre~sse" ;
+ Text [ English ] = "Address" ;
+ Text [ norwegian ] = "Adresse" ;
+ Text [ italian ] = "Indirizzo" ;
+ Text [ portuguese_brazilian ] = "Endereço" ;
+ Text [ portuguese ] = "Endereço" ;
+ Text [ finnish ] = "Valitse osoite" ;
+ Text [ danish ] = "Adresse" ;
+ Text [ french ] = "Adre~sse" ;
+ Text [ swedish ] = "Adre~ss" ;
+ Text [ dutch ] = "Adre~s" ;
+ Text [ spanish ] = "~Dirección" ;
+ Text [ english_us ] = "Address" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "µØÖ·";
+ Text[ russian ] = "Àäðåñ";
+ Text[ polish ] = "Adres";
+ Text[ japanese ] = "ZŠ";
+ Text[ chinese_traditional ] = "¦a§}";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Äéåýèõíóç";
+ Text[ korean ] = "ÁÖ¼Ò";
+ Text[ turkish ] = "Adres";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit EDT_WRITING
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 25 ) ;
+ Size = MAP_APPFONT ( 110 , 44 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ HScroll = TRUE ;
+ VScroll = TRUE ;
+ IgnoreTab = TRUE;
+ };
+ FixedText FT_DATABASE
+ {
+ Pos = MAP_APPFONT ( 128 , 14 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "~Datenbank" ;
+ Text [ English ] = "Database" ;
+ Text [ norwegian ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Base de Dados" ;
+ Text [ portuguese ] = "~Base de dados" ;
+ Text [ finnish ] = "Tietokanta" ;
+ Text [ danish ] = "Database" ;
+ Text [ french ] = "~Base de données" ;
+ Text [ swedish ] = "~Databas" ;
+ Text [ dutch ] = "~Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ english_us ] = "Database" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â";
+ Text[ russian ] = "Áàçà äàííûõ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "¸ê®Æ®w";
+ Text[ arabic ] = "ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "ÂÜóç ~äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º";
+ Text[ turkish ] = "Veritabaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DATABASE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 128 , 25 ) ;
+ Size = MAP_APPFONT ( 57 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_TABLE
+ {
+ Pos = MAP_APPFONT ( 191 , 14 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "Tabe~lle" ;
+ Text [ ENGLISH ] = "Table" ;
+ Text [ english_us ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "Tab~le" ;
+ Text [ dutch ] = "~Tabel" ;
+ Text [ swedish ] = "Tabe~ll" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text [ portuguese ] = "~Tabela" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "ðÌÞÙ";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÇáÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Tablo";
+ };
+ ListBox LB_TABLE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 191 , 25 ) ;
+ Size = MAP_APPFONT ( 57 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ ImageButton BTN_INSERT
+ {
+ Pos = MAP_APPFONT ( 128 , 56 ) ;
+ Size = MAP_APPFONT ( 18 , 12 ) ;
+ SYMBOL = IMAGEBUTTON_ARROW_LEFT ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_DBFIELD
+ {
+ Pos = MAP_APPFONT ( 152 , 45 ) ;
+ Size = MAP_APPFONT ( 57 , 10 ) ;
+ Text = "Datenbank~feld" ;
+ Text [ English ] = "Database field" ;
+ Text [ norwegian ] = "Database field" ;
+ Text [ italian ] = "Campo database" ;
+ Text [ portuguese_brazilian ] = "Campo base de dados" ;
+ Text [ portuguese ] = "Campo base de dados" ;
+ Text [ finnish ] = "Tietokantakenttä" ;
+ Text [ danish ] = "Databasefelt" ;
+ Text [ french ] = "~Champ de B.D." ;
+ Text [ swedish ] = "Databas~fält" ;
+ Text [ dutch ] = "~Databaseveld" ;
+ Text [ spanish ] = "~Campo base de datos" ;
+ Text [ english_us ] = "Database Field" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â×Ö¶Î";
+ Text[ russian ] = "Ïîëå áàçû äàííûõ";
+ Text[ polish ] = "Pole bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½ ̨°ÙÄÞ";
+ Text[ chinese_traditional ] = "¸ê®Æ®wÄæ¦ì";
+ Text[ arabic ] = "ÍÞá ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "Ðåäßï âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º Çʵå";
+ Text[ turkish ] = "Veritabaný alaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DBFIELD
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 152 , 56 ) ;
+ Size = MAP_APPFONT ( 96 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ GroupBox GRP_WRITING
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 72 ) ;
+ Text = "Aufschrift" ;
+ Text [ English ] = "Writing" ;
+ Text [ norwegian ] = "Writing" ;
+ Text [ italian ] = "Testo etichetta" ;
+ Text [ portuguese_brazilian ] = "Gravar" ;
+ Text [ portuguese ] = "Inscrição" ;
+ Text [ finnish ] = "Otsikko" ;
+ Text [ danish ] = "Etikettekst" ;
+ Text [ french ] = "Libellé" ;
+ Text [ swedish ] = "Påskrift" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ spanish ] = "Etiqueta" ;
+ Text [ english_us ] = "Inscription" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ÄÚÈÝ";
+ Text[ russian ] = "Ïîäïèñü";
+ Text[ polish ] = "Oznaczenie";
+ Text[ japanese ] = "ˆ¶æ";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¤º®e";
+ Text[ arabic ] = "äÕ ÇáÈØÇÞÉ";
+ Text[ greek ] = "ÅðéãñáöÞ";
+ Text[ korean ] = "Ç¥Á¦";
+ Text[ turkish ] = "Etiket metni";
+ };
+ RadioButton BTN_CONT
+ {
+ Pos = MAP_APPFONT ( 12 , 90 ) ;
+ Size = MAP_APPFONT ( 43 , 10 ) ;
+ Text = "~Endlos" ;
+ Text [ English ] = "Continuous" ;
+ Text [ norwegian ] = "Continuous" ;
+ Text [ italian ] = "~Continuo" ;
+ Text [ portuguese_brazilian ] = "~Contínuo" ;
+ Text [ portuguese ] = "~Contínuo" ;
+ Text [ finnish ] = "Jatkuva" ;
+ Text [ danish ] = "Endeløs" ;
+ Text [ french ] = "~Continu" ;
+ Text [ swedish ] = "~Kontinuerlig" ;
+ Text [ dutch ] = "~Eindeloos" ;
+ Text [ spanish ] = "Cont~inuo" ;
+ Text [ english_us ] = "~Continuous" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "Á¬Ðø(~C)";
+ Text[ russian ] = "Íåïðåðûâíî";
+ Text[ polish ] = "Bez koñca";
+ Text[ japanese ] = "˜A‘±(~C)";
+ Text[ chinese_traditional ] = "¤£¶¡Â_(~C)";
+ Text[ arabic ] = "æÑÞ ÛíÑ ãÊÞØÚ";
+ Text[ greek ] = "Óõíå÷Þò";
+ Text[ korean ] = "°è¼Ó(~C)";
+ Text[ turkish ] = "Sonsuz form";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton BTN_SHEET
+ {
+ Pos = MAP_APPFONT ( 12 , 105 ) ;
+ Size = MAP_APPFONT ( 43 , 10 ) ;
+ Text = "~Bogen" ;
+ Text [ English ] = "Sheet" ;
+ Text [ norwegian ] = "Sheet" ;
+ Text [ italian ] = "Foglio" ;
+ Text [ portuguese_brazilian ] = "Folha" ;
+ Text [ portuguese ] = "~Folha" ;
+ Text [ finnish ] = "Arkki" ;
+ Text [ danish ] = "Ark" ;
+ Text [ french ] = "~Feuille" ;
+ Text [ swedish ] = "~Ark" ;
+ Text [ dutch ] = "~Blad" ;
+ Text [ spanish ] = "~Hoja" ;
+ Text [ english_us ] = "~Sheet" ;
+ Text[ chinese_simplified ] = "Ö½ÕÅ(~S)";
+ Text[ russian ] = "Îòäåëüíî";
+ Text[ polish ] = "Arkusz";
+ Text[ japanese ] = "¼°Ä(~S)";
+ Text[ chinese_traditional ] = "¯È±i(~S)";
+ Text[ arabic ] = "ÝÑÎ æÑÞ";
+ Text[ greek ] = "~ÖÜêåëïò";
+ Text[ korean ] = "½ÃÆ®(~S)";
+ Text[ turkish ] = "Föy";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_MAKE
+ {
+ Pos = MAP_APPFONT ( 58 , 91 ) ;
+ Size = MAP_APPFONT ( 28 , 8 ) ;
+ Text = "~Marke" ;
+ Text [ English ] = "Make" ;
+ Text [ norwegian ] = "Make" ;
+ Text [ italian ] = "Marca" ;
+ Text [ portuguese_brazilian ] = "Fazer" ;
+ Text [ portuguese ] = "Marca" ;
+ Text [ finnish ] = "Merkki" ;
+ Text [ danish ] = "Mærke" ;
+ Text [ french ] = "~Marque" ;
+ Text [ swedish ] = "~Märke" ;
+ Text [ dutch ] = "~Merk" ;
+ Text [ spanish ] = "~Marca" ;
+ Text [ english_us ] = "Brand" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "É̱ê";
+ Text[ russian ] = "Ìàðêà";
+ Text[ polish ] = "Znacznik";
+ Text[ japanese ] = "»‘¢Œ³";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "°Ó¼Ð";
+ Text[ arabic ] = "ÇáãÇÑßÉ";
+ Text[ greek ] = "~ÌÜñêá";
+ Text[ korean ] = "»óÇ¥";
+ Text[ turkish ] = "Markasý";
+ };
+ ListBox BOX_MAKE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 92 , 89 ) ;
+ Size = MAP_APPFONT ( 119 , 91 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText TXT_TYPE
+ {
+ Pos = MAP_APPFONT ( 58 , 106 ) ;
+ Size = MAP_APPFONT ( 28 , 8 ) ;
+ Text = "~Typ" ;
+ Text [ English ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "~Type" ;
+ Text [ swedish ] = "~Typ" ;
+ Text [ dutch ] = "~Type" ;
+ Text [ spanish ] = "~Tipo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "~Ôýðïò";
+ Text[ korean ] = "À¯Çü(~T)";
+ Text[ turkish ] = "Tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox BOX_TYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 92 , 104 ) ;
+ Size = MAP_APPFONT ( 119 , 61 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText INF_FORMAT
+ {
+ Pos = MAP_APPFONT ( 12 , 119 ) ;
+ Size = MAP_APPFONT ( 199 , 8 ) ;
+ Left = TRUE ;
+ };
+ GroupBox GRP_FORMAT
+ {
+ Pos = MAP_APPFONT ( 6 , 78 ) ;
+ Size = MAP_APPFONT ( 248 , 55 ) ;
+ Text = "Format" ;
+ Text [ English ] = "Format" ;
+ Text [ norwegian ] = "Format" ;
+ Text [ italian ] = "Formato" ;
+ Text [ portuguese_brazilian ] = "Formato" ;
+ Text [ portuguese ] = "Formato" ;
+ Text [ finnish ] = "Muotoile" ;
+ Text [ danish ] = "Format" ;
+ Text [ french ] = "Format" ;
+ Text [ swedish ] = "Format" ;
+ Text [ dutch ] = "Formaat" ;
+ Text [ spanish ] = "Formato" ;
+ Text [ english_us ] = "Format" ;
+ Text[ chinese_simplified ] = "¸ñʽ";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®";
+ Text[ chinese_traditional ] = "®æ¦¡";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "ÌïñöÞ";
+ Text[ korean ] = "¼­½Ä";
+ Group = TRUE ;
+ Text[ turkish ] = "Format";
+ Text[ language_user1 ] = " ";
+ };
+};
+#define WIDTH 100
+#define HEIGHT 16
+FloatingWindow DLG_SYNC_BTN
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( WIDTH , HEIGHT ) ;
+ Moveable = TRUE ;
+ Closeable = FALSE ;
+ Sizeable = FALSE ;
+ Zoomable = TRUE ;
+ HelpID = HID_SYNC_BTN ;
+ Hide = TRUE ;
+ PushButton BTN_SYNC
+ {
+ Pos = MAP_APPFONT ( 1 , 1 ) ;
+ Size = MAP_APPFONT ( WIDTH - 1 , HEIGHT - 1 ) ;
+ Text = "Etiketten synchronisieren" ;
+ Text [ ENGLISH ] = "Synchronize labels" ;
+ Text [ english_us ] = "Synchronize Labels" ;
+ Text [ portuguese_brazilian ] = "Etiketten synchronisieren" ;
+ Text [ swedish ] = "Synkronisera etiketter" ;
+ Text [ danish ] = "Synkroniser etiketter" ;
+ Text [ italian ] = "Sincronizza etichette" ;
+ Text [ spanish ] = "Sincronizar etiquetas" ;
+ Text [ french ] = "Synchroniser les étiquettes" ;
+ Text [ dutch ] = "Etiketten synchroniseren" ;
+ Text [ portuguese ] = "Sincronizar etiquetas" ;
+ Text[ chinese_simplified ] = "±êǩͬ²½»¯";
+ Text[ russian ] = "Ñèíõðîíèçèðîâàòü íàêëåéêè";
+ Text[ polish ] = "Synchronizuj etykiety";
+ Text[ japanese ] = "×ÍÞق𓯊ú‚·‚é";
+ Text[ chinese_traditional ] = "¶K¼Ð¦P¨B¤Æ";
+ Text[ arabic ] = "ÊÒÇãä ÈØÇÞÇÊ ÇáÚäæäÉ";
+ Text[ greek ] = "Óõã÷ñïíéóìüò åôéêåôþí";
+ Text[ korean ] = "¶óº§ µ¿±âÈ­";
+ Text[ turkish ] = "Etiket içeriðini çoðalt";
+ Text[ language_user1 ] = " ";
+ };
+};
+ // String *******************************************************************
+String STR_DOC_TITLE
+{
+ Text = "Etiketten" ;
+ Text [ English ] = "Labels" ;
+ Text [ norwegian ] = "Etiketter" ;
+ Text [ italian ] = "Busta" ;
+ Text [ portuguese_brazilian ] = "Etiquetas" ;
+ Text [ portuguese ] = "Etiquetas" ;
+ Text [ finnish ] = "Tarrat" ;
+ Text [ danish ] = "Etiketter" ;
+ Text [ french ] = "Étiquettes" ;
+ Text [ swedish ] = "Etiketter" ;
+ Text [ dutch ] = "Etiketten" ;
+ Text [ spanish ] = "Etiquetas" ;
+ Text [ english_us ] = "Labels" ;
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ russian ] = "Íàêëåéêè";
+ Text[ polish ] = "Etykiety";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ chinese_traditional ] = "¶K¼Ð";
+ Text[ arabic ] = "ÈØÇÞÇÊ ÚäæäÉ";
+ Text[ greek ] = "ÅôéêÝôåò";
+ Text[ korean ] = "¶óº§";
+ Text[ turkish ] = "Etiket";
+ Text[ language_user1 ] = " ";
+};
+String STR_CUSTOM
+{
+ Text = "[Benutzer]" ;
+ Text [ English ] = "[Custom]" ;
+ Text [ norwegian ] = "[Custom]" ;
+ Text [ italian ] = "[Utente]" ;
+ Text [ portuguese_brazilian ] = "[Pessoal]" ;
+ Text [ portuguese ] = "[Utilizador]" ;
+ Text [ finnish ] = "[Oma]" ;
+ Text [ danish ] = "[Bruger]" ;
+ Text [ french ] = "[Personnalisé]" ;
+ Text [ swedish ] = "[Användare]" ;
+ Text [ dutch ] = "[Gebruiker] " ;
+ Text [ spanish ] = "[Usuario]" ;
+ Text [ english_us ] = "[User-defined]" ;
+ Text[ chinese_simplified ] = "[ʹÓÃÕß]";
+ Text[ russian ] = "[Ïîëüçîâàòåëü]";
+ Text[ polish ] = "[U¿ytkownik]";
+ Text[ japanese ] = "[Õ°»Þ°]";
+ Text[ greek ] = "[×ñÞóôçò]";
+ Text[ korean ] = "[»ç¿ëÀÚ]";
+ Text[ chinese_traditional ] = "[¨Ï¥ÎªÌ]";
+ Text[ arabic ] = "[ãÓÊÎÏã]";
+ Text[ turkish ] = "[Kullanýcý tanýmlý]";
+};
+/********************************************************************/
+TabPage TP_VISITING_CARDS
+{
+ HelpID = HID_TP_VISITING_CARDS ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+
+ Control LB_AUTO_TEXT
+ {
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 109 , 83 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_AUTO_TEXT_GROUP
+ {
+ Pos = MAP_APPFONT ( 12 , 98) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "AutoText - ~Bereich" ;
+ Text [ English ] = "AutoText group" ;
+ Text[ english_us ] = "AutoText - Section";
+ Text[ portuguese ] = "AutoTexto - ~secção";
+ Text[ russian ] = "Îáëàñòü àâòîòåêñòà";
+ Text[ greek ] = "Ðåñéï÷Þ ÁõôïÊåéìÝíïõ";
+ Text[ dutch ] = "AutoTekst - ~bereik";
+ Text[ french ] = "AutoTexte - ~Section";
+ Text[ spanish ] = "Área AutoT~exto";
+ Text[ italian ] = "Testo automatico - Sezione";
+ Text[ danish ] = "AutoTekst - område";
+ Text[ swedish ] = "AutoText - område";
+ Text[ polish ] = "Obszar Autotekstu";
+ Text[ portuguese_brazilian ] = "AutoText group";
+ Text[ japanese ] = "“ü—ÍŽx‰‡ ”͈Í(~S)";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ® - ±¸¿ª(~S)";
+ Text[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯·ÖÀà(~S)";
+ Text[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°¤ÀÃþ(~S)";
+ Text[ arabic ] = "äØÇÞ ÇáäÕ ÇáÊáÞÇÆí";
+ Text[ turkish ] = "Otomatik metin - alaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_AUTO_TEXT_GROUP
+ {
+ Pos = MAP_APPFONT ( 12 , 111) ;
+ Size = MAP_APPFONT ( 109 , 40 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ GroupBox GB_CONTENT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 121 , 129 ) ;
+ Text = "Inhalt" ;
+ Text [ English ] = "Content" ;
+ Text[ english_us ] = "Content";
+ Text[ portuguese ] = "Conteúdo";
+ Text[ russian ] = "Ñîäåðæèìîå";
+ Text[ greek ] = "Ðåñéå÷üìåíá";
+ Text[ dutch ] = "Inhoud";
+ Text[ french ] = "Contenu";
+ Text[ spanish ] = "Contenido";
+ Text[ italian ] = "Contenuto";
+ Text[ danish ] = "Indhold";
+ Text[ swedish ] = "Innehåll";
+ Text[ polish ] = "ZawartoϾ";
+ Text[ portuguese_brazilian ] = "Content";
+ Text[ japanese ] = "“à—e";
+ Text[ korean ] = "³»¿ë";
+ Text[ chinese_simplified ] = "ÄÚÈÝ";
+ Text[ chinese_traditional ] = "¤º®e";
+ Text[ arabic ] = "ÇáãÍÊæíÇÊ";
+ Text[ turkish ] = "Ýçerik";
+ Text[ language_user1 ] = " ";
+ };
+ Window WIN_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 136, 12 ) ;
+ Size = MAP_APPFONT ( 115 , 117 ) ;
+ };
+ GroupBox GB_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 133 , 3 ) ;
+ Size = MAP_APPFONT ( 121 , 129 ) ;
+ Text = "Vorschau" ;
+ Text [ English ] = "Preview" ;
+ Text[ english_us ] = "Preview";
+ Text[ portuguese ] = "Previsualizar";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ dutch ] = "Voorbeeld";
+ Text[ french ] = "Aperçu";
+ Text[ spanish ] = "Previsualización";
+ Text[ italian ] = "Anteprima";
+ Text[ danish ] = "Eksempel";
+ Text[ swedish ] = "Förhandsvisning";
+ Text[ polish ] = "Podgl¹d";
+ Text[ portuguese_brazilian ] = "Preview";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ÇáãÚÇíäÉ";
+ Text[ turkish ] = "Önizleme";
+ };
+ String ST_VISCARD_GROUP
+ {
+ Text = "Cards";
+ };
+};
+TabPage TP_PRIVATE_DATA
+{
+ HelpID = HID_TP_PRIVATE_DATA ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_DATA
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 248 , 130 ) ;
+ Text = "Private Daten" ;
+ Text [ English ] = "Private data" ;
+ Text[ english_us ] = "Private data";
+ Text[ portuguese ] = "Dados pessoais";
+ Text[ russian ] = "Ëè÷íûå äàííûå";
+ Text[ greek ] = "ÐñïóùðéêÜ óôïé÷åßá";
+ Text[ dutch ] = "Privégegevens";
+ Text[ french ] = "Coordonnées privées";
+ Text[ spanish ] = "Datos privados";
+ Text[ italian ] = "Dati privati";
+ Text[ danish ] = "Private data";
+ Text[ swedish ] = "Privata data";
+ Text[ polish ] = "Dane prywatne";
+ Text[ portuguese_brazilian ] = "Private data";
+ Text[ japanese ] = "ÌßײÍÞ°ÄÃÞ°À";
+ Text[ korean ] = "°³ÀÎ µ¥ÀÌÅÍ";
+ Text[ chinese_simplified ] = "˽ÈË×ÊÁÏ";
+ Text[ chinese_traditional ] = "¨p¤H¼ÆÕu";
+ Text[ arabic ] = "ÈíÇäÇÊ ÔÎÕíÉ";
+ Text[ turkish ] = "Özel bilgiler";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 13) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Vor-/Name/Kürzel" ;
+ Text [ English ] = "First/Last ~name" ;
+ Text[ english_us ] = "First/Last ~name/Initials";
+ Text[ portuguese ] = "~Nome próprio/Apelido/Iniciais";
+ Text[ russian ] = "Ôàìèëèÿ/èìÿ/èíèöèàëû";
+ Text[ greek ] = "¼íïìá/Åðþíõìï/Áñ÷éêÜ";
+ Text[ dutch ] = "~Voor-/achternaam/Initialen";
+ Text[ french ] = "~Prénom/Nom/Initiales";
+ Text[ spanish ] = "No~mbre/Apellidos/Iniciales";
+ Text[ italian ] = "Nome/Cognome/Iniziali";
+ Text[ danish ] = "For-/Efternavn/Initialer";
+ Text[ swedish ] = "~För-/efternamn/initialer";
+ Text[ polish ] = "Imiê/Nazwisko/Inicja³y";
+ Text[ portuguese_brazilian ] = "First/Last ~name";
+ Text[ japanese ] = "–¼/©/²Æ¼¬Ù(~N)";
+ Text[ korean ] = "À̸§/¼º/ÀÌ´Ï¼È 2(~N)";
+ Text[ chinese_simplified ] = "Ãû×Ö/ÐÕÊÏ/Ëõд(~N)";
+ Text[ chinese_traditional ] = "¦W¦r/©m¤ó/ÁY¼g(~N)";
+ Text[ arabic ] = "ÇáÇÓã/ÇÓã ÇáÚÇÆáÉ/ÇáÇÎÊÕÇÑ";
+ Text[ turkish ] = "Ad/Soyad/Baþharfler";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FIRSTNAME
+ {
+ Pos = MAP_APPFONT ( 105 , 12 ) ;
+ Size = MAP_APPFONT ( 55 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_NAME
+ {
+ Pos = MAP_APPFONT ( 163 , 12 ) ;
+ Size = MAP_APPFONT ( 55 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_SHORTCUT
+ {
+ Pos = MAP_APPFONT ( 221 , 12 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_NAME_2
+ {
+ Pos = MAP_APPFONT ( 12 , 26) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Vor-/Name/Kürzel 2" ;
+ Text [ English ] = "First/Last ~name 2" ;
+ Text[ english_us ] = "First / Last ~Name / Initials 2";
+ Text[ portuguese ] = "~Nome próprio/Apelido/Iniciais 2";
+ Text[ russian ] = "Ôàìèëèÿ/èìÿ/ñîêðàùåíèå 2";
+ Text[ greek ] = "¼íïìá/Åðßèåôï/Áñ÷éêÜ 2";
+ Text[ dutch ] = "Voor/achter ~naam 2";
+ Text[ french ] = "~Prénom/Nom/Initiales 2";
+ Text[ spanish ] = "Nombre/Apellidos/Iniciales 2";
+ Text[ italian ] = "Nome/Cognome/Iniziali 2";
+ Text[ danish ] = "For-/Efternavn/Initialer 2";
+ Text[ swedish ] = "För-/efter~namn/initialer 2";
+ Text[ polish ] = "Imiê/Nazwisko/Inicja³y";
+ Text[ portuguese_brazilian ] = "First/Last ~name 2";
+ Text[ japanese ] = "©/–¼/²Æ¼¬Ù 2i~Nj";
+ Text[ korean ] = "À̸§/¼º/ÀÌ´Ï¼È 2(~N)";
+ Text[ chinese_simplified ] = "Ãû×Ö/ÐÕÊÏ/Ëõд 2";
+ Text[ chinese_traditional ] = "¦W¦r/©m¤ó/ÁY¼g 2";
+ Text[ arabic ] = "ÇáÇÓã/ÇÓã ÇáÚÇÆáÉ/ÇáÇÎÊÕÇÑ 2";
+ Text[ turkish ] = "Ad/Soyad/Baþharfler 2";
+ };
+ Edit ED_FIRSTNAME_2
+ {
+ Pos = MAP_APPFONT ( 105 , 25 ) ;
+ Size = MAP_APPFONT ( 55 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_NAME_2
+ {
+ Pos = MAP_APPFONT ( 163 , 25 ) ;
+ Size = MAP_APPFONT ( 55 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_SHORTCUT_2
+ {
+ Pos = MAP_APPFONT ( 221 , 25 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_STREET
+ {
+ Pos = MAP_APPFONT ( 12 , 39) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Straße" ;
+ Text [ English ] = "Street" ;
+ Text[ english_us ] = "S~treet";
+ Text[ portuguese ] = "~Rua";
+ Text[ russian ] = "Óëèöà";
+ Text[ greek ] = "Ïäüò";
+ Text[ dutch ] = "~Straat";
+ Text[ french ] = "~Rue";
+ Text[ spanish ] = "~Calle";
+ Text[ italian ] = "Via";
+ Text[ danish ] = "Gade";
+ Text[ swedish ] = "Gatuadres~s";
+ Text[ polish ] = "Ulica";
+ Text[ portuguese_brazilian ] = "Street";
+ Text[ japanese ] = "’¬–¼(~T)";
+ Text[ korean ] = "ÁÖ¼Ò¹øÁö(~T)";
+ Text[ chinese_simplified ] = "½ÖµÀ(~T)";
+ Text[ chinese_traditional ] = "µó¹D(~T)";
+ Text[ arabic ] = "ÇáÔÇÑÚ";
+ Text[ turkish ] = "Sokak";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_STREET
+ {
+ Pos = MAP_APPFONT ( 105 , 38 ) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_ZIPCITY
+ {
+ Pos = MAP_APPFONT ( 12 , 52) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "PLZ/Or~t" ;
+ Text [ English ] = "Zip/City" ;
+ Text[ english_us ] = "Zip/Cit~y";
+ Text[ portuguese ] = "CP/~Localidade";
+ Text[ russian ] = "Ïî÷ò.èíäåêñ/ãîðîä";
+ Text[ greek ] = "Ô.Ê./Ðüëç";
+ Text[ dutch ] = "~Postcode/Plaats";
+ Text[ french ] = "C.P./~Ville";
+ Text[ spanish ] = "CP/Ciuda~d";
+ Text[ italian ] = "C.A.P./Località";
+ Text[ danish ] = "Postnr./By";
+ Text[ swedish ] = "~Postnr/Ort";
+ Text[ polish ] = "Kod pocztowy/MiejscowoϾ";
+ Text[ portuguese_brazilian ] = "Zip/City";
+ Text[ japanese ] = "—X•Ö”Ô†/“s“¹•{Œ§–¼(~Y)";
+ Text[ korean ] = "¿ìÆí¹øÈ£/µµ½Ã(~Y)";
+ Text[ chinese_simplified ] = "Óʱà/³ÇÊÐ(~Y)";
+ Text[ chinese_traditional ] = "¶l»¼°Ï¸¹/«°¥«(~Y)";
+ Text[ arabic ] = "ÇáÑãÒ ÇáÈÑíÏí/ÇáãÏíäÉ";
+ Text[ turkish ] = "Posta kodu/Þehir";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_ZIP
+ {
+ Pos = MAP_APPFONT ( 105 , 51 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_CITY
+ {
+ Pos = MAP_APPFONT ( 158 , 51 ) ;
+ Size = MAP_APPFONT ( 93 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_COUNTRYSTATE
+ {
+ Pos = MAP_APPFONT ( 12 , 65) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Land/Bundesland" ;
+ Text [ English ] = "Country/State" ;
+ Text[ english_us ] = "Co~untry/State";
+ Text[ portuguese ] = "~País";
+ Text[ russian ] = "Ñòðàíà/îáëàñòü";
+ Text[ greek ] = "×þñá";
+ Text[ dutch ] = "~Land";
+ Text[ french ] = "~Pays/État (US)";
+ Text[ spanish ] = "~País/Provincia";
+ Text[ italian ] = "Provincia/Paese";
+ Text[ danish ] = "Land";
+ Text[ swedish ] = "~Land/Delstat";
+ Text[ polish ] = "Kraj/Województwo";
+ Text[ portuguese_brazilian ] = "Country/State";
+ Text[ japanese ] = "‘–¼/“s“¹•{Œ§–¼(~U)";
+ Text[ korean ] = "±¹°¡/ÁÖ(~U)";
+ Text[ chinese_simplified ] = "¹ú¼Ò/Ê¡ÊÐ(~U)";
+ Text[ chinese_traditional ] = "°ê®a/¬Ù(~U)";
+ Text[ arabic ] = "ÇáÏæáÉ/ÇáæáÇíÉ";
+ Text[ turkish ] = "Ülke/Ýl";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_COUNTRY
+ {
+ Pos = MAP_APPFONT ( 105 , 64 ) ;
+ Size = MAP_APPFONT ( 71 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_STATE
+ {
+ Pos = MAP_APPFONT ( 179 , 64 ) ;
+ Size = MAP_APPFONT ( 72 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_TITLEPROF
+ {
+ Pos = MAP_APPFONT ( 12 , 78) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Titel/Beruf" ;
+ Text [ English ] = "Title/Profession" ;
+ Text[ english_us ] = "Title/~Profession";
+ Text[ portuguese ] = "~Título/Profissão";
+ Text[ russian ] = "Òèòóë/ïðîôåññèÿ";
+ Text[ greek ] = "~Ôßôëïò/ÅðÜããåëìá";
+ Text[ dutch ] = "Titel/Beroep";
+ Text[ french ] = "~Titre/Profession";
+ Text[ spanish ] = "Título/Pro~fesión";
+ Text[ italian ] = "Titolo/Professione";
+ Text[ danish ] = "Titel/Stilling";
+ Text[ swedish ] = "~Titel/Yrke";
+ Text[ polish ] = "Tytu³/Zawód";
+ Text[ portuguese_brazilian ] = "Title/Profession";
+ Text[ japanese ] = "Œ¨‘‚«/E‹Æ(~P)";
+ Text[ korean ] = "Á÷À§/Àü¹®ºÐ¾ß(~P)";
+ Text[ chinese_simplified ] = "Í·ÏÎ/Ö°Òµ(~P)";
+ Text[ chinese_traditional ] = "ºÙ©I/¾·~";
+ Text[ arabic ] = "ÇááÞÈ Çáãåäí/ÇáæÙíÝÉ";
+ Text[ turkish ] = "Unvan/Meslek";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_TITLE
+ {
+ Pos = MAP_APPFONT ( 105 , 77 ) ;
+ Size = MAP_APPFONT ( 71 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_PROFESSION
+ {
+ Pos = MAP_APPFONT ( 179 , 77 ) ;
+ Size = MAP_APPFONT ( 72 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_PHONE
+ {
+ Pos = MAP_APPFONT ( 12 , 91) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Telef~on/Mobil" ;
+ Text [ English ] = "Phone/mobile" ;
+ Text[ english_us ] = "Phone/cellphone";
+ Text[ portuguese ] = "Telefone/Tele~móvel";
+ Text[ russian ] = "Òåëåôîí/ìîáèëüíûé";
+ Text[ greek ] = "ÔçëÝöùíï/Êéíçôü";
+ Text[ dutch ] = "Tele~foon/mobile";
+ Text[ french ] = "~Tel/Portable";
+ Text[ spanish ] = "T~eléfono/Móvil";
+ Text[ italian ] = "Tel./Cell.";
+ Text[ danish ] = "Telefon/Mobil";
+ Text[ swedish ] = "Telef~on/Mobil";
+ Text[ polish ] = "Telefon/Komórka";
+ Text[ portuguese_brazilian ] = "Phone/mobile";
+ Text[ japanese ] = "“d˜b/Œg‘Ñ“d˜b";
+ Text[ korean ] = "ÀüÈ­/ ÇÚµåÆù";
+ Text[ chinese_simplified ] = "µç»°/ÊÖ»ú";
+ Text[ chinese_traditional ] = "¹q¸Ü/²¾°Ê¹q¸Ü";
+ Text[ arabic ] = "ÇáåÇÊÝ/ÇáãÍãæá";
+ Text[ turkish ] = "Telef~on/Cep telefonu";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_PHONE
+ {
+ Pos = MAP_APPFONT ( 105 , 90 ) ;
+ Size = MAP_APPFONT ( 71 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_MOBILE
+ {
+ Pos = MAP_APPFONT ( 179 , 90 ) ;
+ Size = MAP_APPFONT ( 72 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_FAX
+ {
+ Pos = MAP_APPFONT ( 12 , 104) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Fa~x" ;
+ Text [ English ] = "Fax" ;
+ Text[ english_us ] = "Fa~x";
+ Text[ portuguese ] = "Fa~x";
+ Text[ russian ] = "Ôàêñ";
+ Text[ greek ] = "Fax";
+ Text[ dutch ] = "Fa~x";
+ Text[ french ] = "~Fax";
+ Text[ spanish ] = "Fa~x";
+ Text[ italian ] = "Fa~x";
+ Text[ danish ] = "Fax";
+ Text[ swedish ] = "Fa~x";
+ Text[ polish ] = "Faks";
+ Text[ portuguese_brazilian ] = "Fax";
+ Text[ japanese ] = "Fa~x";
+ Text[ korean ] = "Æѽº(~X)";
+ Text[ chinese_simplified ] = "´«Õæ(~X)";
+ Text[ chinese_traditional ] = "¶Ç¯u(~X)";
+ Text[ arabic ] = "ÇáÝÇßÓ";
+ Text[ turkish ] = "Faks";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FAX
+ {
+ Pos = MAP_APPFONT ( 105 , 103 ) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_WWWMAIL
+ {
+ Pos = MAP_APPFONT ( 12 , 117) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Homepage / E-Mail" ;
+ Text [ English ] = "Homepage / eMail" ;
+ Text[ english_us ] = "Homepage / e-mail";
+ Text[ portuguese ] = "Homepage / e-mail";
+ Text[ russian ] = "Äîì.ñòðàíèöà / ýë.ïî÷òà";
+ Text[ greek ] = "ÊåíôñéêÞ óåëßäá / E-Mail";
+ Text[ dutch ] = "Homepage / e-mail";
+ Text[ french ] = "Homepage / E-mail";
+ Text[ spanish ] = "Página principal / e-mail";
+ Text[ italian ] = "Homepage/eMail";
+ Text[ danish ] = "Hjemmeside/E-mail";
+ Text[ swedish ] = "Hemsida / e-post";
+ Text[ polish ] = "Strona macierzysta/e-mail";
+ Text[ portuguese_brazilian ] = "Homepage / eMail";
+ Text[ japanese ] = "ΰÑÍß°¼Þ/E-mail";
+ Text[ korean ] = "ȨÆäÀÌÁö / ÀüÀÚ¿ìÆí";
+ Text[ chinese_simplified ] = "Ö÷Ò³/µç×ÓÓʼþ";
+ Text[ chinese_traditional ] = "­º­¶/¹q¤l¶l¥ó";
+ Text[ arabic ] = "ãæÞÚ ÇáÅäÊÑäÊ / ÇáÈÑíÏ ÇáÅáßÊÑæäí";
+ Text[ turkish ] = "Web sayfasý / E-posta";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_WWW
+ {
+ Pos = MAP_APPFONT ( 105 , 116) ;
+ Size = MAP_APPFONT ( 71 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_MAIL
+ {
+ Pos = MAP_APPFONT ( 179 , 116) ;
+ Size = MAP_APPFONT ( 72 , 12 ) ;
+ Border = TRUE ;
+ };
+};
+TabPage TP_BUSINESS_DATA
+{
+ HelpID = HID_TP_BUSINESS_DATA;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ GroupBox GB_DATA
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 248 , 130 ) ;
+ Text = "Geschäftliche Daten" ;
+ Text [ English ] = "Business data" ;
+ Text[ english_us ] = "Business data";
+ Text[ portuguese ] = "Dados do emprego";
+ Text[ russian ] = "Ñëóæåáíûå äàííûå";
+ Text[ greek ] = "ÅðáããåëìáôéêÜ óôïé÷åßá";
+ Text[ dutch ] = "Zakelijke gegevens";
+ Text[ french ] = "Coordonnées du bureau";
+ Text[ spanish ] = "Datos del trabajo";
+ Text[ italian ] = "Dati lavoro";
+ Text[ danish ] = "Forretningsdata";
+ Text[ swedish ] = "Affärsdata";
+ Text[ polish ] = "Dane s³u¿bowe";
+ Text[ portuguese_brazilian ] = "Business data";
+ Text[ japanese ] = "ŽÐ—pÃÞ°À";
+ Text[ korean ] = "¾÷¹« µ¥ÀÌÅÍ";
+ Text[ chinese_simplified ] = "ÉÌÎñ×ÊÁÏ";
+ Text[ chinese_traditional ] = "°Ó°È¼ÆÕu";
+ Text[ arabic ] = "ÈíÇäÇÊ ÇáÚãá";
+ Text[ turkish ] = "Ýþ Bilgileri";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_COMP
+ {
+ Pos = MAP_APPFONT ( 12 , 13) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Firma" ;
+ Text [ English ] = "Company" ;
+ Text[ english_us ] = "Company";
+ Text[ portuguese ] = "~Firma";
+ Text[ russian ] = "Ïðåäïðèÿòèå";
+ Text[ greek ] = "Å~ôáéñßá";
+ Text[ dutch ] = "~Firma";
+ Text[ french ] = "~Société";
+ Text[ spanish ] = "E~mpresa";
+ Text[ italian ] = "Ditta";
+ Text[ danish ] = "Firma";
+ Text[ swedish ] = "~Företag";
+ Text[ polish ] = "Firma";
+ Text[ portuguese_brazilian ] = "Company";
+ Text[ japanese ] = "‰ïŽÐ–¼";
+ Text[ korean ] = "ȸ»ç";
+ Text[ chinese_simplified ] = "¹«Ë¾";
+ Text[ chinese_traditional ] = "¤½¥q";
+ Text[ arabic ] = "ÇáÔÑßÉ";
+ Text[ turkish ] = "~Þirket adý";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_COMP
+ {
+ Pos = MAP_APPFONT ( 105 , 12) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_COMP_EXT
+ {
+ Pos = MAP_APPFONT ( 12 , 26) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Firma ~2. Zeile" ;
+ Text [ English ] = "Company 2nd line" ;
+ Text[ english_us ] = "Company 2nd line";
+ Text[ portuguese ] = "Firma: ~2ª linha";
+ Text[ russian ] = "Ïðåäïðèÿòèå 2-ÿ ñòðîêà";
+ Text[ greek ] = "Åôáéñßá 2ç ãñáììÞ";
+ Text[ dutch ] = "Firma ~2e regel";
+ Text[ french ] = "Société : ~2e ligne";
+ Text[ spanish ] = "Empresa ~2da línea";
+ Text[ italian ] = "Ditta (2ª riga)";
+ Text[ danish ] = "Firma 2. linje";
+ Text[ swedish ] = "Företag rad ~2";
+ Text[ polish ] = "Firma 2 wiersz";
+ Text[ portuguese_brazilian ] = "Company 2nd line";
+ Text[ japanese ] = "‰ïŽÐ–¼ 2s–Ú";
+ Text[ korean ] = "ȸ»ç 2¹ø° ¼±";
+ Text[ chinese_simplified ] = "¹«Ë¾(µÚ¶þÐÐ)";
+ Text[ chinese_traditional ] = "¤½¥q(²Ä¤G¦æ)";
+ Text[ arabic ] = "ÇáÔÑßÉ ÇáÓØÑ ÇáËÇäí";
+ Text[ turkish ] = "Þirket adý ( 2'nci satýr)";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_COMP_EXT
+ {
+ Pos = MAP_APPFONT ( 105 , 25) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_SLOGAN
+ {
+ Pos = MAP_APPFONT ( 12 , 39) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Sl~ogan" ;
+ Text [ English ] = "Slogan" ;
+ Text[ english_us ] = "Slogan";
+ Text[ portuguese ] = "~Slogan";
+ Text[ russian ] = "Äåâèç";
+ Text[ greek ] = "Óëüãêáí";
+ Text[ dutch ] = "Sl~ogan";
+ Text[ french ] = "~Devise";
+ Text[ spanish ] = "Esl~ogan";
+ Text[ italian ] = "Sl~ogan";
+ Text[ danish ] = "Slogan";
+ Text[ swedish ] = "Sl~ogan";
+ Text[ polish ] = "Slogan";
+ Text[ portuguese_brazilian ] = "Slogan";
+ Text[ japanese ] = "½Û°¶ÞÝ";
+ Text[ korean ] = "½½·Î°Ç";
+ Text[ chinese_simplified ] = "¹ã¸æÓÃÓï";
+ Text[ chinese_traditional ] = "¦W¨¥";
+ Text[ arabic ] = "ÇáÔÚÇÑ";
+ Text[ turkish ] = "Slogan";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SLOGAN
+ {
+ Pos = MAP_APPFONT ( 105 , 38) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_STREET
+ {
+ Pos = MAP_APPFONT ( 12 , 52) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Straße" ;
+ Text [ English ] = "Street" ;
+ Text[ english_us ] = "Street";
+ Text[ portuguese ] = "~Rua";
+ Text[ russian ] = "Óëèöà";
+ Text[ greek ] = "Ïäüò";
+ Text[ dutch ] = "~Straat";
+ Text[ french ] = "~Rue";
+ Text[ spanish ] = "~Calle";
+ Text[ italian ] = "Via";
+ Text[ danish ] = "Gade";
+ Text[ swedish ] = "Besöksadre~ss";
+ Text[ polish ] = "Ulica";
+ Text[ portuguese_brazilian ] = "Street";
+ Text[ japanese ] = "’¬–¼";
+ Text[ korean ] = "ÁÖ¼Ò¹øÁö";
+ Text[ chinese_simplified ] = "½ÖµÀ";
+ Text[ chinese_traditional ] = "µó¹D";
+ Text[ arabic ] = "ÇáÔÇÑÚ";
+ Text[ turkish ] = "Sokak";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_STREET
+ {
+ Pos = MAP_APPFONT ( 105 , 51) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_ZIPCITY
+ {
+ Pos = MAP_APPFONT ( 12 , 65) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "PLZ/Or~t" ;
+ Text [ English ] = "ZIP/City" ;
+ Text[ english_us ] = "ZIP/City";
+ Text[ portuguese ] = "CP/~Localidade";
+ Text[ russian ] = "Ïî÷ò.èíäåêñ/ãîðîä";
+ Text[ greek ] = "Ô.Ê./Ðüëç";
+ Text[ dutch ] = "Pos~tcode/Plaats";
+ Text[ french ] = "C.P/~Ville";
+ Text[ spanish ] = "CP/Ciu~dad";
+ Text[ italian ] = "C.A.P./Località";
+ Text[ danish ] = "Postnr./By";
+ Text[ swedish ] = "Postnr/Or~t";
+ Text[ polish ] = "Kod pocztowy/MiejscowoϾ";
+ Text[ portuguese_brazilian ] = "ZIP/City";
+ Text[ japanese ] = "—X•Ö”Ô†/“s“¹•{Œ§–¼";
+ Text[ korean ] = "¿ìÆí¹øÈ£/µµ½Ã";
+ Text[ chinese_simplified ] = "Óʱà/³ÇÊÐ";
+ Text[ chinese_traditional ] = "¶l»¼°Ï¸¹/«°¥«";
+ Text[ arabic ] = "ÇáÑãÒ ÇáÈÑíÏí/ÇáãÏíäÉ";
+ Text[ turkish ] = "Posta kodu/Þehir";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_ZIP
+ {
+ Pos = MAP_APPFONT ( 105 , 64) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_CITY
+ {
+ Pos = MAP_APPFONT ( 158 , 64) ;
+ Size = MAP_APPFONT ( 93 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_COUNTRYSTATE
+ {
+ Pos = MAP_APPFONT ( 12 , 78) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Land/Bundesland" ;
+ Text [ English ] = "Country/State" ;
+ Text[ english_us ] = "Country/State";
+ Text[ portuguese ] = "~País";
+ Text[ russian ] = "Ñòðàíà/îáëàñòü";
+ Text[ greek ] = "×þñá";
+ Text[ dutch ] = "~Land";
+ Text[ french ] = "~Pays/État (US)";
+ Text[ spanish ] = "País/Pro~vincia";
+ Text[ italian ] = "Provincia/Paese";
+ Text[ danish ] = "Land";
+ Text[ swedish ] = "~Land/Delstat";
+ Text[ polish ] = "Kraj/Województwo";
+ Text[ portuguese_brazilian ] = "Country/State";
+ Text[ japanese ] = "‘/“s“¹•{Œ§";
+ Text[ korean ] = "±¹°¡/ÁÖ";
+ Text[ chinese_simplified ] = "¹ú¼Ò/Ê¡ÊÐ";
+ Text[ chinese_traditional ] = "°ê®a/¬Ù";
+ Text[ arabic ] = "ÇáÏæáÉ/ÇáæáÇíÉ";
+ Text[ turkish ] = "Ülke/Ýl";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_COUNTRY
+ {
+ Pos = MAP_APPFONT ( 105 , 77) ;
+ Size = MAP_APPFONT ( 71 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_STATE
+ {
+ Pos = MAP_APPFONT ( 179 , 77) ;
+ Size = MAP_APPFONT ( 72 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_POSITION
+ {
+ Pos = MAP_APPFONT ( 12 , 91) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Position" ;
+ Text [ English ] = "Position" ;
+ Text[ english_us ] = "Position";
+ Text[ portuguese ] = "~Posição";
+ Text[ russian ] = "Äîëæíîñòü";
+ Text[ greek ] = "ÈÝóç";
+ Text[ dutch ] = "~Positie";
+ Text[ french ] = "~Fonction";
+ Text[ spanish ] = "~Posición";
+ Text[ italian ] = "~Posizione";
+ Text[ danish ] = "Stilling";
+ Text[ swedish ] = "~Befattning";
+ Text[ polish ] = "Pozycja";
+ Text[ portuguese_brazilian ] = "Position";
+ Text[ japanese ] = "–ðE";
+ Text[ korean ] = "Á÷À§";
+ Text[ chinese_simplified ] = "ְλ";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãäÕÈ ÇáæÙíÝí";
+ Text[ turkish ] = "Pozisyon";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_POSITION
+ {
+ Pos = MAP_APPFONT ( 105 , 90) ;
+ Size = MAP_APPFONT ( 146 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_PHONE
+ {
+ Pos = MAP_APPFONT ( 12 , 104) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Telefo~n/Mobil/Fax" ;
+ Text [ English ] = "Phone/Mobile/Fax" ;
+ Text[ english_us ] = "Phone/Cellphone/Fax";
+ Text[ portuguese ] = "Telefo~ne/Telemóvel/Fax";
+ Text[ russian ] = "Òåëåôîí/Ìîáèëüíûé/Ôàêñ";
+ Text[ greek ] = "ÔçëÝöùíï/Êéíçôü/Fax";
+ Text[ dutch ] = "Telefoo~n/Mobile/Fax";
+ Text[ french ] = "~Téléphone/Portable/Fax";
+ Text[ spanish ] = "~Teléfono/Móvil/Fax";
+ Text[ italian ] = "Tel./Cell./Fax";
+ Text[ danish ] = "Telefon/Mobil/Fax";
+ Text[ swedish ] = "Telefo~n/Mobil/Fax";
+ Text[ polish ] = "Telefon/Komórka/Faks";
+ Text[ portuguese_brazilian ] = "Phone/Mobile/Fax";
+ Text[ japanese ] = "“d˜b/Œg‘Ñ“d˜b/Fax";
+ Text[ korean ] = "ÀüÇÏ/ÇÚµåÆù/Æѽº";
+ Text[ chinese_simplified ] = "µç»°/ÊÖ»ú/´«Õæ";
+ Text[ chinese_traditional ] = "¹q¸Ü/²¾°Ê¹q¸Ü/¶Ç¯u";
+ Text[ arabic ] = "ÇáåÇÊÝ/ÇáãÍãæá/ÇáÝÇßÓ";
+ Text[ turkish ] = "Telefon/Cep telefonu/Faks";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_PHONE
+ {
+ Pos = MAP_APPFONT ( 105 , 103) ;
+ Size = MAP_APPFONT ( 47 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_MOBILE
+ {
+ Pos = MAP_APPFONT ( 155 , 103) ;
+ Size = MAP_APPFONT ( 47 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_FAX
+ {
+ Pos = MAP_APPFONT ( 205 , 103) ;
+ Size = MAP_APPFONT ( 46 , 12 ) ;
+ Border = TRUE ;
+ };
+ FixedText FT_WWWMAIL
+ {
+ Pos = MAP_APPFONT ( 12 , 117) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Ho~mepage / E-Mail" ;
+ Text [ English ] = "Homepage / eMail" ;
+ Text[ english_us ] = "Ho~mepage / e-mail";
+ Text[ portuguese ] = "Ho~mepage / e-mail";
+ Text[ russian ] = "Äîì.ñòðàíèöà /ýë.ïî÷òà";
+ Text[ greek ] = "ÊåíôñéêÞ óåëßäá / E-Mail";
+ Text[ dutch ] = "Ho~mepage / e-mail";
+ Text[ french ] = "~Homepage / E-mail";
+ Text[ spanish ] = "Página principal / ~e-mail";
+ Text[ italian ] = "Ho~mepage/eMail";
+ Text[ danish ] = "Hjemmeside/E-mail";
+ Text[ swedish ] = "He~msida / e-post";
+ Text[ polish ] = "Strona macierzysta/e-mail";
+ Text[ portuguese_brazilian ] = "Homepage / eMail";
+ Text[ japanese ] = "ΰÑÍß°¼Þ/E-mail";
+ Text[ korean ] = "ȨÆäÀÌÁö / ÀüÀÚ¿ìÆí(~M)";
+ Text[ chinese_simplified ] = "Ö÷Ò³/µç×ÓÓʼþ";
+ Text[ chinese_traditional ] = "­º­¶/¹q¤l¶l¥ó";
+ Text[ arabic ] = "ãæÞÚ ÇáÅäÊÑäÊ / ÇáÈÑíÏ ÇáÅáßÊÑæäí";
+ Text[ turkish ] = "Web sayfasý / E-posta";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_WWW
+ {
+ Pos = MAP_APPFONT ( 105 , 116) ;
+ Size = MAP_APPFONT ( 71 , 12 ) ;
+ Border = TRUE ;
+ };
+ Edit ED_MAIL
+ {
+ Pos = MAP_APPFONT ( 179 , 116) ;
+ Size = MAP_APPFONT ( 72 , 12 ) ;
+ Border = TRUE ;
+ };
+};
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
new file mode 100644
index 000000000000..4da5ecb65c82
--- /dev/null
+++ b/sw/source/ui/envelp/label1.cxx
@@ -0,0 +1,1846 @@
+/*************************************************************************
+ *
+ * $RCSfile: label1.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTFIELDSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextFieldsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XREFRESHABLE_HPP_
+#include <com/sun/star/util/XRefreshable.hpp>
+#endif
+#ifndef _SV_CONFIG_HXX //autogen
+#include <vcl/config.hxx>
+#endif
+#ifndef _SV_WAITOBJ_HXX //autogen
+#include <vcl/waitobj.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX
+#include <sfx2/inimgr.hxx>
+#endif
+#ifndef _SBA_SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _LABIMP_HXX
+#include <labimp.hxx>
+#endif
+#ifndef _LABEL_HXX
+#include <label.hxx>
+#endif
+#ifndef _LABFMT_HXX
+#include <labfmt.hxx>
+#endif
+#ifndef _LABPRT_HXX
+#include <labprt.hxx>
+#endif
+#ifndef _LABIMG_HXX
+#include <labimg.hxx>
+#endif
+#ifndef _DOC_HXX //autogen wg. SwDoc
+#include <doc.hxx>
+#endif
+#ifndef _UNOCRSR_HXX //autogen wg. SwUnoCrsr
+#include <unocrsr.hxx>
+#endif
+#ifndef _UNOTOOLS_HXX
+#include <unotools.hxx>
+#endif
+#ifndef _UNOATXT_HXX //autogen wg. SwXAutoTextEntry
+#include <unoatxt.hxx>
+#endif
+#ifndef _UNOOBJ_HXX //
+#include <unoobj.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX //
+#include <unoprnms.hxx>
+#endif
+#ifndef _SWDOCSH_HXX //autogen wg. SwDocShell
+#include <docsh.hxx>
+#endif
+
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _LABEL_HRC
+#include <label.hrc>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+using namespace com::sun::star::lang;
+using namespace com::sun::star::container;
+using namespace com::sun::star::uno;
+#define C2U(char) rtl::OUString::createFromAscii(char)
+#else
+
+#endif //REPLACE_OFADBMGR
+
+using namespace ::com::sun::star;
+using namespace ::utl;
+using namespace ::rtl;
+
+#define CL2S(cChar) UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(cChar))
+
+#define USER_FIELD_FIRSTNAME "BC_PRIV_FIRSTNAME"
+#define USER_FIELD_NAME "BC_PRIV_NAME"
+#define USER_FIELD_PRIVSHORTCUT "BC_PRIV_INITIALS"
+#define USER_FIELD_FIRSTNAME_2 "BC_PRIV_FIRSTNAME_2"
+#define USER_FIELD_NAME_2 "BC_PRIV_NAME_2"
+#define USER_FIELD_PRIVSHORTCUT_2 "BC_PRIV_INITIALS_2"
+
+#define USER_FIELD_PRIVSTREET "BC_PRIV_STREET"
+#define USER_FIELD_PRIVZIP "BC_PRIV_ZIP"
+#define USER_FIELD_PRIVCITY "BC_PRIV_CITY"
+#define USER_FIELD_PRIVCOUNTRY "BC_PRIV_COUNTRY"
+#define USER_FIELD_PRIVSTATE "BC_PRIV_STATE"
+#define USER_FIELD_PRIVTITLE "BC_PRIV_TITLE"
+#define USER_FIELD_PRIVPROFESSION "BC_PRIV_PROFESSION"
+#define USER_FIELD_PRIVPHONE "BC_PRIV_PHONE"
+#define USER_FIELD_PRIVMOBILE "BC_PRIV_MOBILE"
+#define USER_FIELD_PRIVFAX "BC_PRIV_FAX"
+#define USER_FIELD_PRIVWWW "BC_PRIV_WWW"
+#define USER_FIELD_PRIVMAIL "BC_PRIV_MAIL"
+#define USER_FIELD_COMPCOMPANY "BC_COMP_COMPANY"
+#define USER_FIELD_COMPCOMPANYEXT "BC_COMP_COMPANYEXT"
+#define USER_FIELD_COMPSLOGAN "BC_COMP_SLOGAN"
+#define USER_FIELD_COMPSTREET "BC_COMP_STREET"
+#define USER_FIELD_COMPZIP "BC_COMP_ZIP"
+#define USER_FIELD_COMPCITY "BC_COMP_CITY"
+#define USER_FIELD_COMPCOUNTRY "BC_COMP_COUNTRY"
+#define USER_FIELD_COMPSTATE "BC_COMP_STATE"
+#define USER_FIELD_COMPPOSITION "BC_COMP_POSITION"
+#define USER_FIELD_COMPPHONE "BC_COMP_PHONE"
+#define USER_FIELD_COMPMOBILE "BC_COMP_MOBILE"
+#define USER_FIELD_COMPFAX "BC_COMP_FAX"
+#define USER_FIELD_COMPWWW "BC_COMP_WWW"
+#define USER_FIELD_COMPMAIL "BC_COMP_MAIL"
+
+SV_IMPL_PTRARR( SwLabRecs, SwLabRec* );
+
+inline sal_Bool NextToken( String &rStr, sal_uInt16 &nPos, sal_uInt16 &nPos2 )
+{
+ nPos = nPos2+1;
+ nPos2 = rStr.Search( ';', nPos );
+ return nPos2 != STRING_NOTFOUND;
+}
+
+
+
+SwLabRec::SwLabRec( String& rStr, MetricField& rField )
+{
+ //Fuer die ersten beiden Token duefen nur Trailing und Leading Blanks
+ //vernichtet werden.
+ sal_uInt16 nPos = rStr.Search( ';' );
+ if ( nPos == STRING_NOTFOUND )
+ return;
+ aMake = rStr.Copy( 0, nPos );
+ ++nPos;
+ sal_uInt16 nPos2 = rStr.Search( ';', nPos );
+ if ( nPos2 == STRING_NOTFOUND )
+ return;
+ aType = rStr.Copy( nPos, nPos2 - nPos );
+
+ aMake.EraseLeadingChars(); aMake.EraseTrailingChars();
+ aType.EraseLeadingChars(); aType.EraseTrailingChars();
+
+ //Fuer alle weiteren Token koennen alle Blanks vernichtet werden.
+ rStr.EraseAllChars();
+ nPos = rStr.Search( ';' );
+ nPos2 = rStr.Search( ';', nPos+1 );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ bCont = (rStr.GetChar(nPos) == 'C' || rStr.GetChar(nPos) == 'c') ? sal_True : sal_False;
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ lHDist = GetLong( rStr.Copy( nPos, nPos2 - nPos ), rField );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ lVDist = GetLong( rStr.Copy( nPos, nPos2 - nPos ), rField );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ lWidth = GetLong( rStr.Copy( nPos, nPos2 - nPos ), rField );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ lHeight = GetLong( rStr.Copy( nPos, nPos2 - nPos ), rField );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ lLeft = GetLong( rStr.Copy( nPos, nPos2 - nPos ), rField );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+ lUpper = GetLong( rStr.Copy( nPos, nPos2 - nPos ), rField );
+
+ if ( !::NextToken( rStr, nPos, nPos2 ) )
+ return;
+
+ nCols = rStr.Copy( nPos, nPos2 - nPos ).ToInt32();
+
+ nPos = nPos2+1;
+ nRows = rStr.Copy( nPos ).ToInt32();
+
+ // Ggf. Zeilenanzahl fuer Endlosetiketten automatisch berechnen
+ if ( bCont && !nRows )
+ {
+ static const long lMax = 31748; // 56 cm
+ nRows = (sal_uInt16)((lMax - lUpper) / Max(1L, lVDist));
+ }
+}
+
+// --------------------------------------------------------------------------
+
+
+
+long SwLabRec::GetLong(const String& rStr, MetricField& rField)
+{
+ rField.SetText( rStr );
+ rField.Reformat();
+ return GETFLDVAL( rField );
+}
+
+// --------------------------------------------------------------------------
+
+String lcl_GetLabelsIni()
+{
+ String sRet( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM(
+ "labels.ini" )));
+ SfxIniManager* pIniManager = SFX_INIMANAGER();
+ if( !pIniManager->SearchFile( sRet, SFX_KEY_USERCONFIG_PATH ))
+ {
+ sRet.Insert( INET_PATH_TOKEN, 0 );
+ sRet.Insert( pIniManager->Get( SFX_KEY_USERCONFIG_PATH ), 0 );
+ }
+ return sRet;
+}
+
+
+void SwLabDlg::_ReplaceGroup( const String &rMake, SwLabItem *pItem )
+{
+ //Die alten Eintraege vernichten.
+ pRecs->Remove( 1, pRecs->Count() - 1 );
+
+ // Etiketten aus labels.ini lesen, zum Konvertieren verwenden wir ein
+ // MetricField.
+ MetricField aField( this, WinBits(0) );
+ aField.SetUnit (FUNIT_CM);
+ aField.SetDecimalDigits(3);
+ aField.SetMin (0);
+ aField.SetMax (LONG_MAX);
+ International aInter;
+ aInter.SetNumThousandSep( '.' );
+ aInter.SetNumDecimalSep ( ',' );
+ aField.SetInternational( aInter );
+
+ rtl_TextEncoding eSysEnc = gsl_getSystemTextEncoding();
+ Config aCfg( ::lcl_GetLabelsIni() );
+ aCfg.SetGroup( ByteString( rMake, eSysEnc ));
+
+ String aTmp( rMake );
+ aTmp += ';';
+ const sal_uInt16 nCount = aCfg.GetKeyCount();
+ for ( sal_uInt16 i = 0; i < nCount; ++i )
+ {
+ String aStr( aTmp );
+ aStr += String(aCfg.ReadKey( i ), eSysEnc);
+ SwLabRec* pRec = new SwLabRec( aStr, aField );
+ sal_Bool bDouble = sal_False;
+
+ for (sal_uInt16 nRecPos = 0; nRecPos < pRecs->Count(); nRecPos++)
+ {
+ if (pRec->aMake == pRecs->GetObject(nRecPos)->aMake &&
+ pRec->aType == pRecs->GetObject(nRecPos)->aType)
+ {
+ bDouble = sal_True;
+ break;
+ }
+ }
+
+ if (!bDouble)
+ {
+ pRecs->C40_INSERT( SwLabRec, pRec, pRecs->Count() );
+
+ if ( pRec->aMake == pItem->aMake && pRec->aType == pItem->aType )
+ {
+ pItem->lHDist = pRec->lHDist;
+ pItem->lVDist = pRec->lVDist;
+ pItem->lWidth = pRec->lWidth;
+ pItem->lHeight = pRec->lHeight;
+ pItem->lLeft = pRec->lLeft;
+ pItem->lUpper = pRec->lUpper;
+ pItem->nCols = pRec->nCols;
+ pItem->nRows = pRec->nRows;
+ pItem->bCont = pRec->bCont;
+ }
+ }
+ }
+ aLstGroup = rMake;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
+{
+ if (nId == TP_LAB_LAB)
+ {
+ if(m_bLabel)
+ {
+ ((SwLabPage*)&rPage)->SetNewDBMgr(pNewDBMgr);
+ ((SwLabPage*)&rPage)->InitDatabaseBox();
+ }
+ else
+ ((SwLabPage*)&rPage)->SetToBusinessCard();
+ }
+ else if (nId == TP_LAB_PRT)
+ pPrtPage = (SwLabPrtPage*)&rPage;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet& rSet,
+ SwNewDBMgr* pDBMgr, sal_Bool bLabel) :
+ SfxTabDialog( pParent, SW_RES(DLG_LAB), &rSet, sal_False ),
+ sBusinessCardDlg(ResId(ST_BUSINESSCARDDLG)),
+ sMedium(ResId(ST_FIRSTPAGE_BC)),
+ sFormat(ResId(ST_FIRSTPAGE_LAB)),
+ aTypeIds( 50, 10 ),
+ aMakes ( 5, 0 ),
+ pRecs ( new SwLabRecs() ),
+ pNewDBMgr(pDBMgr),
+ pPrtPage(0),
+ m_bLabel(bLabel)
+{
+ WaitObject aWait( pParent );
+
+ FreeResource();
+
+ GetOKButton().SetText(String(SW_RES(STR_BTN_NEW_DOC)));
+ GetOKButton().SetHelpId(HID_LABEL_INSERT);
+ GetOKButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+
+ AddTabPage(TP_LAB_LAB, m_bLabel ? sFormat : sMedium ,SwLabPage ::Create, 0, sal_False, 0);
+ AddTabPage(TP_VISITING_CARDS, SwVisitingCardPage::Create, 0);
+ AddTabPage(TP_LAB_FMT, SwLabFmtPage::Create, 0);
+ AddTabPage(TP_LAB_PRT, SwLabPrtPage::Create, 0);
+ AddTabPage(TP_BUSINESS_DATA, SwBusinessDataPage::Create, 0 );
+ AddTabPage(TP_PRIVATE_DATA, SwPrivateDataPage::Create, 0);
+
+
+ if(m_bLabel)
+ {
+ RemoveTabPage(TP_BUSINESS_DATA);
+ RemoveTabPage(TP_PRIVATE_DATA);
+ RemoveTabPage(TP_VISITING_CARDS);
+ }
+ else
+ {
+ SetText(sBusinessCardDlg);
+ }
+ // Benutzer-Etikette aus writer.cfg lesen
+ SwLabItem aItem((const SwLabItem&)rSet.Get(FN_LABEL));
+ SwLabRec* pRec = new SwLabRec;
+ const String aTmp( SW_RES( STR_CUSTOM ) );
+ pRec->aMake = pRec->aType = aTmp;
+ pRec->lHDist = aItem.lHDist;
+ pRec->lVDist = aItem.lVDist;
+ pRec->lWidth = aItem.lWidth;
+ pRec->lHeight = aItem.lHeight;
+ pRec->lLeft = aItem.lLeft;
+ pRec->lUpper = aItem.lUpper;
+ pRec->nCols = aItem.nCols;
+ pRec->nRows = aItem.nRows;
+ pRec->bCont = aItem.bCont;
+
+ sal_Bool bDouble = sal_False;
+
+ for (sal_uInt16 nRecPos = 0; nRecPos < pRecs->Count(); nRecPos++)
+ {
+ if (pRec->aMake == pRecs->GetObject(nRecPos)->aMake &&
+ pRec->aType == pRecs->GetObject(nRecPos)->aType)
+ {
+ bDouble = sal_True;
+ break;
+ }
+ }
+
+ if (!bDouble)
+ pRecs->C40_INSERT( SwLabRec, pRec, 0 );
+
+ Config aCfg( ::lcl_GetLabelsIni() );
+ aCfg.SetGroup( "Labels" );
+ sal_uInt16 nLstGroup = 0;
+ rtl_TextEncoding eSysEnc = gsl_getSystemTextEncoding();
+ const sal_uInt16 nGroups = aCfg.GetKeyCount();
+ for ( sal_uInt16 nGroup = 0; nGroup < nGroups; ++nGroup )
+ {
+ String *pMake = new String( aCfg.ReadKey( nGroup ), eSysEnc );
+ pMake->EraseLeadingChars();
+ pMake->EraseTrailingChars();
+ aMakes.Insert( pMake, aMakes.Count() );
+ if ( *pMake == aItem.aLstMake )
+ nLstGroup = nGroup;
+ }
+ if ( aMakes.Count() )
+ _ReplaceGroup( *aMakes[nLstGroup], &aItem );
+ if (pExampleSet)
+ pExampleSet->Put(aItem);
+}
+
+// --------------------------------------------------------------------------
+
+SwLabDlg::~SwLabDlg()
+{
+ delete pRecs;
+}
+
+/* --------------------------------------------------------------------------
+
+Diese Routine modifiziert ein uebergebenes SwLabItem so, dass es hernach in
+der Config gespeichert werden kann. Durch die Angabe des Herstellers und des
+Artikels sind die weiteren Groessenangaben redundant, daher werden in lHDist
+und den folgenden Membern die Eigenschaften der benutzerdefinierten Etiketten
+gespeichert.
+
+-------------------------------------------------------------------------- */
+
+
+
+void SwLabDlg::MakeConfigItem( SwLabItem& rItem ) const
+{
+ if ( rItem.aType != String(SW_RES(STR_CUSTOM)) )
+ {
+ SwLabRec* pRec = (*pRecs)[0];
+ rItem.lHDist = pRec->lHDist;
+ rItem.lVDist = pRec->lVDist;
+ rItem.lWidth = pRec->lWidth;
+ rItem.lHeight = pRec->lHeight;
+ rItem.lLeft = pRec->lLeft;
+ rItem.lUpper = pRec->lUpper;
+ rItem.nCols = pRec->nCols;
+ rItem.nRows = pRec->nRows;
+ }
+ const SwLabItem& rActItem = (const SwLabItem&)GetExampleSet()->Get(FN_LABEL);
+ rItem.bCont = rActItem.bCont;
+ rItem.aLstMake = rActItem.aLstMake;
+ rItem.aLstType = rActItem.aLstType;
+ rItem.sDBName = rActItem.sDBName;
+}
+
+// --------------------------------------------------------------------------
+
+void SwLabDlg::GetLabItem(SwLabItem &rItem)
+{
+ const SwLabItem& rActItem = (const SwLabItem&)GetExampleSet()->Get(FN_LABEL);
+ const SwLabItem& rOldItem = (const SwLabItem&)GetInputSetImpl()->Get(FN_LABEL);
+
+ if (rActItem != rOldItem)
+ { // Wurde schon mal mit (hoffentlich) korrektem Inhalt "geputtet"
+ rItem = rActItem;
+ }
+ else
+ {
+ rItem = rOldItem;
+
+ // Im rItem stehen (vom Namen mal abgesehen) immer nur die
+ // benutzerdefinierbaren Einstellungen. Daher richtige Werte
+ // direkt aus dem Record besorgen:
+ SwLabRec* pRec = GetRecord(rItem.aType, rItem.bCont);
+
+ rItem.lHDist = pRec->lHDist;
+ rItem.lVDist = pRec->lVDist;
+ rItem.lWidth = pRec->lWidth;
+ rItem.lHeight = pRec->lHeight;
+ rItem.lLeft = pRec->lLeft;
+ rItem.lUpper = pRec->lUpper;
+ rItem.nCols = pRec->nCols;
+ rItem.nRows = pRec->nRows;
+ }
+}
+
+// --------------------------------------------------------------------------
+
+SwLabRec* SwLabDlg::GetRecord(const String &rRecName, sal_Bool bCont)
+{
+ SwLabRec* pRec = NULL;
+ sal_Bool bFound = sal_False;
+ String sCustom(SW_RES(STR_CUSTOM));
+
+ const sal_uInt16 nCount = Recs().Count();
+ for (sal_uInt16 i = 0; i < nCount; i++)
+ {
+ pRec = Recs()[i];
+ if (pRec->aType != sCustom &&
+ rRecName == pRec->aType && bCont == pRec->bCont)
+ {
+ bFound = sal_True;
+ break;
+ }
+ }
+ if (!bFound) // Benutzerdefiniert
+ pRec = Recs()[0];
+
+ return(pRec);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+Printer *SwLabDlg::GetPrt()
+{
+ if (pPrtPage)
+ return (pPrtPage->GetPrt());
+ else
+ return (NULL);
+}
+
+// --------------------------------------------------------------------------
+
+SwLabPage::SwLabPage(Window* pParent, const SfxItemSet& rSet) :
+ SfxTabPage(pParent, SW_RES(TP_LAB_LAB), rSet),
+ pNewDBMgr(NULL),
+ aItem ((const SwLabItem&) rSet.Get(FN_LABEL)),
+
+ aWritingText (this, SW_RES(TXT_WRITING)),
+ aAddrBox (this, SW_RES(BOX_ADDR )),
+ aWritingEdit (this, SW_RES(EDT_WRITING)),
+ aDatabaseFT (this, SW_RES(FT_DATABASE)),
+ aDatabaseLB (this, SW_RES(LB_DATABASE)),
+ aTableFT (this, SW_RES(FT_TABLE )),
+ aTableLB (this, SW_RES(LB_TABLE )),
+ aInsertBT (this, SW_RES(BTN_INSERT )),
+ aDBFieldFT (this, SW_RES(FT_DBFIELD )),
+ aDBFieldLB (this, SW_RES(LB_DBFIELD )),
+ aWritingGroup (this, SW_RES(GRP_WRITING)),
+ aContButton (this, SW_RES(BTN_CONT )),
+ aSheetButton (this, SW_RES(BTN_SHEET )),
+ aMakeText (this, SW_RES(TXT_MAKE )),
+ aMakeBox (this, SW_RES(BOX_MAKE )),
+ aTypeText (this, SW_RES(TXT_TYPE )),
+ aTypeBox (this, SW_RES(BOX_TYPE )),
+ aFormatInfo (this, SW_RES(INF_FORMAT )),
+ aFormatGroup (this, SW_RES(GRP_FORMAT ))
+
+{
+ WaitObject aWait( pParent );
+
+ FreeResource();
+ SetExchangeSupport();
+
+
+ // Handler installieren
+ aAddrBox .SetClickHdl (LINK(this, SwLabPage, AddrHdl ));
+ aDatabaseLB .SetSelectHdl(LINK(this, SwLabPage, DatabaseHdl ));
+ aTableLB .SetSelectHdl(LINK(this, SwLabPage, DatabaseHdl ));
+ aInsertBT .SetClickHdl (LINK(this, SwLabPage, FieldHdl ));
+ aContButton .SetClickHdl (LINK(this, SwLabPage, PageHdl ));
+ aSheetButton .SetClickHdl (LINK(this, SwLabPage, PageHdl ));
+ aMakeBox .SetSelectHdl(LINK(this, SwLabPage, MakeHdl ));
+ aTypeBox .SetSelectHdl(LINK(this, SwLabPage, TypeHdl ));
+
+ InitDatabaseBox();
+
+ sal_uInt16 nLstGroup = 0;
+
+ const sal_uInt16 nCount = (sal_uInt16)GetParent()->Makes().Count();
+ for (sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ String &rStr = *GetParent()->Makes()[i];
+ aMakeBox.InsertEntry( rStr );
+ if ( rStr == aItem.aLstMake )
+ nLstGroup = i;
+ }
+// Reset(rSet);
+ aMakeBox.SelectEntryPos( nLstGroup );
+ aMakeBox.GetSelectHdl().Call( &aMakeBox );
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabPage::~SwLabPage()
+{
+}
+/* -----------------29.09.99 09:08-------------------
+
+ --------------------------------------------------*/
+void lcl_ChgYPos(Window& rWin, long nDiff)
+{
+ Point aTempPos(rWin.GetPosPixel());
+ aTempPos.Y() += nDiff;
+ rWin.SetPosPixel(aTempPos);
+}
+
+void SwLabPage::SetToBusinessCard()
+{
+ m_bLabel = sal_False;
+ aWritingText.Hide();
+ aAddrBox.Hide();
+ aWritingEdit.Hide();
+ aDatabaseFT.Hide();
+ aDatabaseLB.Hide();
+ aTableFT.Hide();
+ aTableLB.Hide();
+ aInsertBT.Hide();
+ aDBFieldFT.Hide();
+ aDBFieldLB.Hide();
+ aWritingGroup.Hide();
+
+ //resize the form
+ Point aGBPos(aWritingGroup.GetPosPixel());
+ long nDiffPos = aFormatGroup.GetPosPixel().Y() - aGBPos.Y();
+ Size aGBSz(aFormatGroup.GetSizePixel());
+ aGBSz.Height() += nDiffPos;
+ aFormatGroup.SetPosSizePixel(aGBPos, aGBSz);
+
+ // move all controls up
+ lcl_ChgYPos(aContButton, -nDiffPos);
+ lcl_ChgYPos(aSheetButton, -nDiffPos);
+ lcl_ChgYPos(aMakeText, -nDiffPos);
+
+ lcl_ChgYPos(aTypeText, -nDiffPos);
+ lcl_ChgYPos(aFormatInfo, -nDiffPos);
+
+ Size aTmpSz(3, 3);
+ aTmpSz = LogicToPixel(aTmpSz, MAP_APPFONT);
+
+ //
+ aMakeBox.SetStyle((aMakeBox.GetStyle()&~WB_DROPDOWN));
+ aTypeBox.SetStyle((aTypeBox.GetStyle()&~WB_DROPDOWN));
+
+ lcl_ChgYPos(aMakeBox, - nDiffPos);
+ Point aLBPos(aMakeBox.GetPosPixel());
+ aLBPos.Y() += aMakeBox.GetSizePixel().Height() + aTmpSz.Height();
+ aTypeBox.SetPosPixel(aLBPos);
+};
+
+// --------------------------------------------------------------------------
+
+//impl in envimg.cxx
+extern String MakeSender();
+
+
+
+IMPL_LINK( SwLabPage, AddrHdl, Button *, EMPTYARG )
+{
+ String aWriting;
+ if ( aAddrBox.IsChecked() )
+ aWriting = MakeSender();
+ aWritingEdit.SetText( aWriting.ConvertLineEnd() );
+ aWritingEdit.GrabFocus();
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwLabPage, DatabaseHdl, ListBox *, pListBox )
+{
+ sActDBName = SFX_APP()->LocalizeDBName(NATIONAL2INI, aDatabaseLB.GetSelectEntry());
+
+ WaitObject aObj( GetParent() );
+
+ if (pListBox == &aDatabaseLB)
+ GetNewDBMgr()->GetTableNames(&aTableLB, sActDBName);
+#ifdef REPLACE_OFADBMGR
+ GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName, aTableLB.GetSelectEntry());
+#else
+ sActDBName += DB_DELIM;
+ sActDBName += aTableLB.GetSelectEntry();
+ GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName);
+#endif
+ return 0;
+}
+
+
+
+IMPL_LINK( SwLabPage, FieldHdl, Button *, EMPTYARG )
+{
+ String aStr ( '<' );
+ aStr += aDatabaseLB.GetSelectEntry();
+ aStr += '.';
+ aStr += aTableLB.GetSelectEntry();
+ aStr += '.';
+ aStr += aDBFieldLB.GetSelectEntry();
+ aStr += '>';
+ aWritingEdit.ReplaceSelected(aStr);
+ Selection aSel = aWritingEdit.GetSelection();
+ aWritingEdit.GrabFocus();
+ aWritingEdit.SetSelection(aSel);
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK_INLINE_START( SwLabPage, PageHdl, Button *, EMPTYARG )
+{
+ aMakeBox.GetSelectHdl().Call( &aMakeBox );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwLabPage, PageHdl, Button *, EMPTYARG )
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwLabPage, MakeHdl, ListBox *, EMPTYARG )
+{
+ WaitObject aWait( GetParent() );
+
+ aTypeBox.Clear();
+ GetParent()->TypeIds().Remove( 0, GetParent()->TypeIds().Count() );
+
+ const String aMake = aMakeBox.GetSelectEntry();
+ GetParent()->ReplaceGroup( aMake, &aItem );
+ aItem.aLstMake = aMake;
+
+ const sal_Bool bCont = aContButton.IsChecked();
+ const sal_uInt16 nCount = GetParent()->Recs().Count();
+ sal_uInt16 nLstType = 0;
+
+ for ( sal_uInt16 i = 0; i < nCount; ++i )
+ {
+ if ( GetParent()->Recs()[i]->aType == String( SW_RES(STR_CUSTOM) ) ||
+ GetParent()->Recs()[i]->bCont == bCont )
+ {
+ const String aType ( GetParent()->Recs()[i]->aType );
+ if ( aTypeBox.GetEntryPos(aType) == LISTBOX_ENTRY_NOTFOUND )
+ {
+ if ( !nLstType && aType == aItem.aLstType )
+ nLstType = GetParent()->TypeIds().Count();
+ aTypeBox.InsertEntry( aType );
+ GetParent()->TypeIds().Insert(i, GetParent()->TypeIds().Count());
+ }
+ }
+ }
+ if (nLstType)
+ aTypeBox.SelectEntry(aItem.aLstType);
+ else
+ aTypeBox.SelectEntryPos(0);
+ aTypeBox.GetSelectHdl().Call( &aTypeBox );
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK_INLINE_START( SwLabPage, TypeHdl, ListBox *, EMPTYARG )
+{
+ DisplayFormat();
+ aItem.aType = aTypeBox.GetSelectEntry();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwLabPage, TypeHdl, ListBox *, EMPTYARG )
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPage::DisplayFormat()
+{
+ MetricField aField(this, WinBits(0));
+ aField.SetUnit (FUNIT_CM);
+ aField.SetDecimalDigits(2);
+ aField.SetMin (0);
+ aField.SetMax (LONG_MAX);
+
+ SwLabRec* pRec = GetSelectedEntryPos();
+ aItem.aLstType = pRec->aType;
+ SETFLDVAL(aField, pRec->lWidth);
+ aField.Reformat();
+ const String aWString = aField.GetText();
+
+ SETFLDVAL(aField, pRec->lHeight);
+ aField.Reformat();
+
+ String aText = pRec->aType;
+ aText.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ": "));
+ aText += aWString;
+ aText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" x "));
+ aText += aField.GetText();
+ aText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" ("));
+ aText += String::CreateFromInt32( pRec->nCols );
+ aText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" x "));
+ aText += String::CreateFromInt32( pRec->nRows );
+ aText += ')';
+ aFormatInfo.SetText(aText);
+}
+
+// --------------------------------------------------------------------------
+
+SwLabRec* SwLabPage::GetSelectedEntryPos()
+{
+ String sSelEntry(aTypeBox.GetSelectEntry());
+
+ return GetParent()->GetRecord(sSelEntry, aContButton.IsChecked());
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPage::InitDatabaseBox()
+{
+ if(GetNewDBMgr())
+ {
+ aDatabaseLB.Clear();
+#ifdef REPLACE_OFADBMGR
+ Sequence<OUString> aDataNames = SwNewDBMgr::GetExistingDatabaseNames();
+ const OUString* pDataNames = aDataNames.getConstArray();
+ for (long i = 0; i < aDataNames.getLength(); i++)
+ aDatabaseLB.InsertEntry(pDataNames[i]);
+ String sDBName = sActDBName.GetToken( 0, DB_DELIM );
+ String sTableName = sActDBName.GetToken( 1, DB_DELIM );
+ aDatabaseLB.SelectEntry(sDBName);
+ if (GetNewDBMgr()->GetTableNames(&aTableLB, sDBName))
+ {
+ aTableLB.SelectEntry(sTableName);
+ GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName, sTableName);
+ }
+ else
+ aDBFieldLB.Clear();
+#else
+ SbaObject *pSbaObject = GetNewDBMgr()->GetSbaObject();
+ if(!pSbaObject)
+ return;
+ String sDBNames = pSbaObject->GetDatabaseNames();
+ sActDBName = aItem.sDBName;
+ if ( !sActDBName.Len() )
+ sActDBName = GetNewDBMgr()->GetAddressDBName();
+
+ sDBNames = SFX_APP()->LocalizeDBName(INI2NATIONAL, sDBNames);
+
+ sal_uInt16 nCount = sDBNames.GetTokenCount();
+
+ for (sal_uInt16 i = 0; i < nCount; i++)
+ aDatabaseLB.InsertEntry(sDBNames.GetToken(i));
+
+ String sDBName = SFX_APP()->LocalizeDBName( INI2NATIONAL,
+ sActDBName.GetToken( 0, DB_DELIM ));
+ aDatabaseLB.SelectEntry(sDBName);
+ if (GetNewDBMgr()->GetTableNames(&aTableLB, sDBName))
+ {
+ aTableLB.SelectEntry(sActDBName.GetToken(1, DB_DELIM));
+ GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sActDBName);
+ }
+ else
+ aDBFieldLB.Clear();
+#endif
+ }
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxTabPage* SwLabPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwLabPage(pParent, rSet);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPage::ActivatePage(const SfxItemSet& rSet)
+{
+ Reset( rSet );
+}
+
+// --------------------------------------------------------------------------
+
+
+
+int SwLabPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if (pSet)
+ FillItemSet(*pSet);
+
+ return sal_True;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPage::FillItem(SwLabItem& rItem)
+{
+ rItem.bAddr = aAddrBox.IsChecked();
+ rItem.aWriting = aWritingEdit.GetText();
+ rItem.bCont = aContButton.IsChecked();
+ rItem.aMake = aMakeBox.GetSelectEntry();
+ rItem.aType = aTypeBox.GetSelectEntry();
+ rItem.sDBName = sActDBName;
+
+ SwLabRec* pRec = GetSelectedEntryPos();
+
+ rItem.lHDist = pRec->lHDist;
+ rItem.lVDist = pRec->lVDist;
+ rItem.lWidth = pRec->lWidth;
+ rItem.lHeight = pRec->lHeight;
+ rItem.lLeft = pRec->lLeft;
+ rItem.lUpper = pRec->lUpper;
+ rItem.nCols = pRec->nCols;
+ rItem.nRows = pRec->nRows;
+
+ rItem.aLstMake = aMakeBox.GetSelectEntry();
+ rItem.aLstType = aTypeBox.GetSelectEntry();
+}
+
+// --------------------------------------------------------------------------
+
+
+
+sal_Bool SwLabPage::FillItemSet(SfxItemSet& rSet)
+{
+ FillItem( aItem );
+ rSet.Put( aItem );
+
+ return sal_True;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPage::Reset(const SfxItemSet& rSet)
+{
+ aItem = (const SwLabItem&) rSet.Get(FN_LABEL);
+ String sDBName = aItem.sDBName;
+
+ String aWriting( aItem.aWriting );
+
+ aAddrBox .Check ( aItem.bAddr );
+ aWritingEdit.SetText ( aWriting.ConvertLineEnd() );
+ aMakeBox .SelectEntry( aItem.aMake );
+
+ if (aTypeBox.GetEntryPos(aItem.aType) != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aTypeBox.SelectEntry(aItem.aType);
+ aTypeBox.GetSelectHdl().Call(&aTypeBox);
+ }
+ if (aDatabaseLB.GetEntryPos(sDBName) != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aDatabaseLB.SelectEntry(sDBName);
+ aDatabaseLB.GetSelectHdl().Call(&aDatabaseLB);
+ }
+
+ if (aItem.bCont)
+ aContButton .Check();
+ else
+ aSheetButton.Check();
+}
+/*-- 08.07.99 14:00:02---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwVisitingCardPage::SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet) :
+ SfxTabPage(pParent, SW_RES(TP_VISITING_CARDS), rSet),
+ aAutoTextLB(this, ResId( LB_AUTO_TEXT )),
+ aAutoTextGroupFT(this, ResId( FT_AUTO_TEXT_GROUP )),
+ aAutoTextGroupLB(this, ResId( LB_AUTO_TEXT_GROUP )),
+ aContentGB(this, ResId( GB_CONTENT )),
+ aExampleWIN(this, ResId( WIN_EXAMPLE )),
+ aExampleGB(this, ResId( GB_EXAMPLE )),
+ sVisCardGroup(ResId(ST_VISCARD_GROUP)),
+ pExampleFrame(0)
+{
+ FreeResource();
+ aAutoTextLB.SetWindowBits( WB_HSCROLL );
+ aAutoTextLB.SetSpaceBetweenEntries(0);
+ aAutoTextLB.SetSelectionMode( SINGLE_SELECTION );
+ aAutoTextLB.SetHelpId(HID_BUSINESS_CARD_CONTENT);
+
+ SetExchangeSupport();
+ aAutoTextLB.SetSelectHdl(LINK(this, SwVisitingCardPage, AutoTextSelectHdl));
+ aAutoTextGroupLB.SetSelectHdl(LINK(this, SwVisitingCardPage, AutoTextSelectHdl));
+
+ aAutoTextLB.Show();
+ aAutoTextGroupFT.Show();
+ aAutoTextGroupLB.Show();
+ InitFrameControl();
+ aExampleWIN.Hide();
+
+}
+/*-- 08.07.99 14:00:03---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwVisitingCardPage::~SwVisitingCardPage()
+{
+ for(sal_uInt16 i = 0; i < aAutoTextGroupLB.GetEntryCount(); i++)
+ delete (String*)aAutoTextGroupLB.GetEntryData( i );
+ _xAutoText = 0;
+ SvLBoxEntry* pEntry = aAutoTextLB.First();
+ while(pEntry)
+ {
+ String * pString = (String*)pEntry->GetUserData();
+ delete pString;
+ pEntry = aAutoTextLB.Next(pEntry);
+ }
+ delete pExampleFrame;
+}
+/*-- 08.07.99 14:00:03---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SfxTabPage* SwVisitingCardPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwVisitingCardPage(pParent, rSet);
+}
+/*-- 08.07.99 14:00:03---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwVisitingCardPage::ActivatePage(const SfxItemSet& rSet)
+{
+ Reset( rSet );
+ UpdateFields();
+}
+/*-- 08.07.99 14:00:04---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+int SwVisitingCardPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if (pSet)
+ FillItemSet(*pSet);
+ return LEAVE_PAGE;
+}
+/*-- 08.07.99 14:00:04---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwVisitingCardPage::FillItemSet(SfxItemSet& rSet)
+{
+ String* pGroup = (String*)aAutoTextGroupLB.GetEntryData(
+ aAutoTextGroupLB.GetSelectEntryPos());
+ DBG_ASSERT(pGroup, "no group selected?")
+ if(pGroup)
+ aLabItem.sGlossaryGroup = *pGroup;
+
+ SvLBoxEntry* pSelEntry = aAutoTextLB.FirstSelected();
+ if(pSelEntry)
+ aLabItem.sGlossaryBlockName = *(String*)pSelEntry->GetUserData();
+ rSet.Put(aLabItem);
+ return sal_True;
+}
+/*-- 08.07.99 14:00:05---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void lcl_SelectBlock(SvTreeListBox& rAutoTextLB, const String& rBlockName)
+{
+ SvLBoxEntry* pEntry = rAutoTextLB.First();
+ while(pEntry)
+ {
+ if(*(String*)pEntry->GetUserData() == rBlockName)
+ {
+ rAutoTextLB.Select(pEntry);
+ rAutoTextLB.MakeVisible(pEntry);
+ }
+ pEntry = rAutoTextLB.Next(pEntry);
+ }
+}
+//-----------------------------------------------------------------------------
+sal_Bool lcl_FindBlock(SvTreeListBox& rAutoTextLB, const String& rBlockName)
+{
+ SvLBoxEntry* pEntry = rAutoTextLB.First();
+ while(pEntry)
+ {
+ if(*(String*)pEntry->GetUserData() == rBlockName)
+ {
+ rAutoTextLB.Select(pEntry);
+ return sal_True;
+ }
+ pEntry = rAutoTextLB.Next(pEntry);
+ }
+ return sal_False;
+}
+//-----------------------------------------------------------------------------
+void SwVisitingCardPage::Reset(const SfxItemSet& rSet)
+{
+ aLabItem = (const SwLabItem&) rSet.Get(FN_LABEL);
+
+ sal_Bool bFound = sal_False;
+ for(sal_uInt16 i = 0; i < aAutoTextGroupLB.GetEntryCount() && !bFound; i++)
+ if(aLabItem.sGlossaryGroup == *(String*)aAutoTextGroupLB.GetEntryData( i ))
+ {
+ bFound = sal_True;
+ break;
+ }
+
+ if(bFound)
+ {
+ if(aAutoTextGroupLB.GetSelectEntryPos() != i)
+ {
+ aAutoTextGroupLB.SelectEntryPos(i);
+ AutoTextSelectHdl(&aAutoTextGroupLB);
+ }
+ if(lcl_FindBlock(aAutoTextLB, aLabItem.sGlossaryBlockName))
+ {
+ SvLBoxEntry* pSelEntry = aAutoTextLB.FirstSelected();
+ if( pSelEntry &&
+ *(String*)pSelEntry->GetUserData() != aLabItem.sGlossaryBlockName)
+ {
+ lcl_SelectBlock(aAutoTextLB, aLabItem.sGlossaryBlockName);
+ AutoTextSelectHdl(&aAutoTextLB);
+ }
+ }
+ }
+}
+/* -----------------08.07.99 15:15-------------------
+
+ --------------------------------------------------*/
+void SwVisitingCardPage::InitFrameControl()
+{
+ Link aLink(LINK(
+ this, SwVisitingCardPage, FrameControlInitializedHdl));
+ pExampleFrame = new SwOneExampleFrame(aExampleWIN, EX_SHOW_BUSINESS_CARDS, &aLink);
+
+ uno::Reference< lang::XMultiServiceFactory > xMgr = getProcessServiceFactory();
+ //now the AutoText ListBoxes have to be filled
+
+ uno::Reference< uno::XInterface > xAText =
+ xMgr->createInstance( C2U("com.sun.star.text.AutoTextContainer") );
+ _xAutoText = uno::Reference< container::XNameAccess >(xAText, uno::UNO_QUERY);
+
+ uno::Sequence<OUString> aNames = _xAutoText->getElementNames();
+ const OUString* pGroups = aNames.getConstArray();
+ for(sal_uInt16 i = 0; i < aNames.getLength(); i++)
+ {
+ uno::Any aGroup = _xAutoText->getByName(pGroups[i]);
+ uno::Reference< text::XAutoTextGroup > xGroup = *(uno::Reference< text::XAutoTextGroup > *)aGroup.getValue();
+ uno::Reference< container::XIndexAccess > xIdxAcc(xGroup, uno::UNO_QUERY);
+ if(!xIdxAcc.is() || xIdxAcc->getCount())
+ {
+ uno::Reference< beans::XPropertySet > xPrSet(xGroup, uno::UNO_QUERY);
+ uno::Any aTitle = xPrSet->getPropertyValue(CL2S(UNO_NAME_TITLE));
+ OUString uTitle;
+ aTitle >>= uTitle;
+ String sGroup(pGroups[i]);
+ sal_uInt16 nEntry = aAutoTextGroupLB.InsertEntry(uTitle);
+ aAutoTextGroupLB.SetEntryData(nEntry, new String(sGroup));
+ }
+ }
+ if(LISTBOX_ENTRY_NOTFOUND == aAutoTextGroupLB.GetSelectEntryPos())
+ aAutoTextGroupLB.SelectEntryPos(0);
+ String sCurGroupName(
+ *(String*)aAutoTextGroupLB.GetEntryData(aAutoTextGroupLB.GetSelectEntryPos()));
+ if(_xAutoText->hasByName(sCurGroupName))
+ {
+ uno::Any aGroup = _xAutoText->getByName(sCurGroupName);
+ try
+ {
+ uno::Reference< text::XAutoTextGroup > xGroup = *(uno::Reference< text::XAutoTextGroup > *)aGroup.getValue();
+ uno::Sequence<OUString> aBlockNames = xGroup->getElementNames();
+ const OUString* pBlocks = aBlockNames.getConstArray();
+ uno::Sequence< OUString > aTitles = xGroup->getTitles() ;
+ const OUString* pTitles = aTitles.getConstArray();
+ for(i = 0; i < aBlockNames.getLength();i++)
+ {
+ String sTitle(pTitles[i]);
+ SvLBoxEntry* pEntry = aAutoTextLB.InsertEntry(sTitle);
+ String sBlock(pBlocks[i]);
+ pEntry->SetUserData(new String(sBlock));
+ }
+ }
+ catch( uno::RuntimeException& )
+ {
+ // we'll be her if path settings were wrong
+ }
+ }
+}
+/* -----------------01.10.99 13:19-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwVisitingCardPage, FrameControlInitializedHdl, void*, EMPTYARG )
+{
+ AutoTextSelectHdl(&aAutoTextGroupLB);
+ return 0;
+};
+/* -----------------22.07.99 11:06-------------------
+
+ --------------------------------------------------*/
+void lcl_SetUserField(uno::Reference< container::XNameAccess > & xFldMasters,
+ const String& rFldName, const String& rContent )
+{
+ String sFldName( CL2S("com.sun.star.text.FieldMaster.User."));
+ sFldName += rFldName;
+ OUString uFldName(sFldName);
+ if(xFldMasters->hasByName(uFldName))
+ {
+ uno::Any aFirstName = xFldMasters->getByName(uFldName);
+ uno::Reference< beans::XPropertySet > xFld = *(uno::Reference< beans::XPropertySet > *)aFirstName.getValue();
+ uno::Any aContent;
+ aContent <<= rtl::OUString(rContent);
+ xFld->setPropertyValue(CL2S(UNO_NAME_CONTENT), aContent);
+ }
+}
+
+IMPL_LINK( SwVisitingCardPage, AutoTextSelectHdl, void*, pBox )
+{
+ if(pExampleFrame->IsInitialized() && _xAutoText.is())
+ {
+ sal_Bool bGroup = &aAutoTextGroupLB == pBox;
+
+ String sGroup(
+ *(String*)aAutoTextGroupLB.GetEntryData(aAutoTextGroupLB.GetSelectEntryPos()));
+ uno::Any aGroup = _xAutoText->getByName(sGroup);
+ uno::Reference< text::XAutoTextGroup > xGroup = *(uno::Reference< text::XAutoTextGroup > *)aGroup.getValue();
+
+ if(bGroup)
+ {
+ SvLBoxEntry* pEntry = aAutoTextLB.First();
+ while(pEntry)
+ {
+ String * pString = (String*)pEntry->GetUserData();
+ delete pString;
+ pEntry = aAutoTextLB.Next(pEntry);
+ }
+ aAutoTextLB.Clear();
+ uno::Sequence<OUString> aBlockNames = xGroup->getElementNames();
+ const OUString* pBlocks = aBlockNames.getConstArray();
+ uno::Sequence< OUString > aTitles = xGroup->getTitles() ;
+ const OUString* pTitles = aTitles.getConstArray();
+ for(sal_uInt16 i = 0; i < aBlockNames.getLength();i++)
+ {
+ String sTitle(pTitles[i]);
+ SvLBoxEntry* pEntry = aAutoTextLB.InsertEntry(sTitle);
+ String sBlock(pBlocks[i]);
+ pEntry->SetUserData(new String(sBlock));
+ }
+ }
+ SvLBoxEntry* pSel = aAutoTextLB.FirstSelected();
+ String sEntry;
+ if(pSel)
+ sEntry = *(String*)pSel->GetUserData();
+ pExampleFrame->ExecUndo();
+ uno::Reference< text::XTextCursor > & xCrsr = pExampleFrame->GetTextCursor();
+ OUString uEntry(sEntry);
+ if(sEntry.Len() && xGroup->hasByName(uEntry))
+ {
+ uno::Any aEntry(xGroup->getByName(uEntry));
+ uno::Reference< text::XAutoTextEntry > xEntry = *(uno::Reference< text::XAutoTextEntry > *)aEntry.getValue();
+ if(xEntry.is())
+ {
+ uno::Reference< text::XTextRange > xRange(xCrsr, uno::UNO_QUERY);
+ xEntry->applyTo(xRange);
+ }
+ UpdateFields();
+ }
+ }
+ return 0;
+}
+/* -----------------01.10.99 11:59-------------------
+
+ --------------------------------------------------*/
+void SwVisitingCardPage::UpdateFields()
+{
+ uno::Reference< frame::XModel > xModel;
+ if(pExampleFrame && (xModel = pExampleFrame->GetModel()).is())
+ {
+ SwLabDlg::UpdateFieldInformation(xModel, aLabItem);
+ }
+}
+/* -----------------01.10.99 15:16-------------------
+
+ --------------------------------------------------*/
+void SwLabDlg::UpdateFieldInformation(uno::Reference< frame::XModel > & xModel, const SwLabItem& rItem)
+{
+ uno::Reference< text::XTextFieldsSupplier > xFlds(xModel, uno::UNO_QUERY);
+ uno::Reference< container::XNameAccess > xFldMasters = xFlds->getTextFieldMasters();
+
+ try
+ {
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_FIRSTNAME ), rItem.aPrivFirstName );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_NAME ), rItem.aPrivName );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVSHORTCUT ), rItem.aPrivShortCut );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_FIRSTNAME_2 ), rItem.aPrivFirstName2 );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_NAME_2 ), rItem.aPrivName2 );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVSHORTCUT_2 ), rItem.aPrivShortCut2 );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVSTREET ), rItem.aPrivStreet );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVZIP ), rItem.aPrivZip );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVCITY ), rItem.aPrivCity );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVCOUNTRY ), rItem.aPrivCountry );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVSTATE ), rItem.aPrivState );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVTITLE ), rItem.aPrivTitle );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVPROFESSION ), rItem.aPrivProfession );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVPHONE ), rItem.aPrivPhone );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVMOBILE ), rItem.aPrivMobile );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVFAX ), rItem.aPrivFax );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVWWW ), rItem.aPrivWWW );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_PRIVMAIL ), rItem.aPrivMail );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPCOMPANY ), rItem.aCompCompany );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPCOMPANYEXT ), rItem.aCompCompanyExt );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPSLOGAN ), rItem.aCompSlogan );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPSTREET ), rItem.aCompStreet );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPZIP ), rItem.aCompZip );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPCITY ), rItem.aCompCity );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPCOUNTRY ), rItem.aCompCountry );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPSTATE ), rItem.aCompState );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPPOSITION ), rItem.aCompPosition );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPPHONE ), rItem.aCompPhone );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPMOBILE ), rItem.aCompMobile );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPFAX ), rItem.aCompFax );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPWWW ), rItem.aCompWWW );
+ lcl_SetUserField(xFldMasters, CL2S(USER_FIELD_COMPMAIL ), rItem.aCompMail );
+ }
+ catch( uno::RuntimeException&)
+ {
+ //
+ }
+
+ uno::Reference< container::XEnumerationAccess > xFldAcc = xFlds->getTextFields();
+ uno::Reference< util::XRefreshable > xRefresh(xFldAcc, uno::UNO_QUERY);
+ xRefresh->refresh();
+}
+
+/* -----------------29.09.99 08:55-------------------
+
+ --------------------------------------------------*/
+SwPrivateDataPage::SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet) :
+ SfxTabPage(pParent, SW_RES(TP_PRIVATE_DATA), rSet),
+ aDataGB(this, ResId( GB_DATA )),
+ aNameFT(this, ResId( FT_NAME )),
+ aFirstNameED(this, ResId( ED_FIRSTNAME )),
+ aNameED(this, ResId( ED_NAME )),
+ aShortCutED(this, ResId( ED_SHORTCUT )),
+ aName2FT(this, ResId( FT_NAME_2 )),
+ aFirstName2ED(this, ResId( ED_FIRSTNAME_2 )),
+ aName2ED(this, ResId( ED_NAME_2 )),
+ aShortCut2ED(this, ResId( ED_SHORTCUT_2 )),
+ aStreetFT(this, ResId( FT_STREET )),
+ aStreetED(this, ResId( ED_STREET )),
+ aZipCityFT(this, ResId( FT_ZIPCITY )),
+ aZipED(this, ResId( ED_ZIP )),
+ aCityED(this, ResId( ED_CITY )),
+ aCountryStateFT(this, ResId(FT_COUNTRYSTATE )),
+ aCountryED(this, ResId( ED_COUNTRY )),
+ aStateED(this, ResId( ED_STATE )),
+ aTitleProfessionFT(this, ResId(FT_TITLEPROF )),
+ aProfessionED(this, ResId( ED_PROFESSION )),
+ aTitleED(this, ResId( ED_TITLE )),
+ aPhoneFT(this, ResId( FT_PHONE )),
+ aPhoneED(this, ResId( ED_PHONE )),
+ aMobilePhoneED(this, ResId( ED_MOBILE )),
+ aFaxFT(this, ResId( FT_FAX )),
+ aFaxED(this, ResId( ED_FAX )),
+ aWWWMailFT(this, ResId( FT_WWWMAIL )),
+ aHomePageED(this, ResId( ED_WWW )),
+ aMailED(this, ResId( ED_MAIL ))
+{
+ FreeResource();
+ SetExchangeSupport();
+}
+
+/*-- 29.09.99 08:55:57---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwPrivateDataPage::~SwPrivateDataPage()
+{
+}
+/*-- 29.09.99 08:55:57---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SfxTabPage* SwPrivateDataPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwPrivateDataPage(pParent, rSet);
+}
+/*-- 29.09.99 08:55:57---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwPrivateDataPage::ActivatePage(const SfxItemSet& rSet)
+{
+ Reset(rSet);
+}
+/*-- 29.09.99 08:55:58---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+int SwPrivateDataPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if (pSet)
+ FillItemSet(*pSet);
+ return LEAVE_PAGE;
+}
+/*-- 29.09.99 08:55:58---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwPrivateDataPage::FillItemSet(SfxItemSet& rSet)
+{
+
+ SwLabItem aItem = (const SwLabItem&) GetTabDialog()->GetExampleSet()->Get(FN_LABEL);
+ aItem.aPrivFirstName = aFirstNameED .GetText();
+ aItem.aPrivName = aNameED .GetText( );
+ aItem.aPrivShortCut = aShortCutED .GetText( );
+ aItem.aPrivFirstName2 = aFirstName2ED .GetText();
+ aItem.aPrivName2 = aName2ED .GetText( );
+ aItem.aPrivShortCut2 = aShortCut2ED .GetText( );
+ aItem.aPrivStreet = aStreetED .GetText( );
+ aItem.aPrivZip = aZipED .GetText( );
+ aItem.aPrivCity = aCityED .GetText( );
+ aItem.aPrivCountry = aCountryED .GetText( );
+ aItem.aPrivState = aStateED .GetText( );
+ aItem.aPrivTitle = aTitleED .GetText( );
+ aItem.aPrivProfession= aProfessionED.GetText( );
+ aItem.aPrivPhone = aPhoneED .GetText( );
+ aItem.aPrivMobile = aMobilePhoneED.GetText( );
+ aItem.aPrivFax = aFaxED .GetText( );
+ aItem.aPrivWWW = aHomePageED .GetText( );
+ aItem.aPrivMail = aMailED .GetText( );
+
+ rSet.Put(aItem);
+ return sal_True;
+}
+/*-- 29.09.99 08:55:59---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwPrivateDataPage::Reset(const SfxItemSet& rSet)
+{
+ const SwLabItem& aItem = (const SwLabItem&) rSet.Get(FN_LABEL);
+ aFirstNameED.SetText(aItem.aPrivFirstName);
+ aNameED .SetText(aItem.aPrivName);
+ aShortCutED .SetText(aItem.aPrivShortCut);
+ aFirstName2ED.SetText(aItem.aPrivFirstName2);
+ aName2ED .SetText(aItem.aPrivName2);
+ aShortCut2ED .SetText(aItem.aPrivShortCut2);
+ aStreetED .SetText(aItem.aPrivStreet);
+ aZipED .SetText(aItem.aPrivZip);
+ aCityED .SetText(aItem.aPrivCity);
+ aCountryED .SetText(aItem.aPrivCountry);
+ aStateED .SetText(aItem.aPrivState);
+ aTitleED .SetText(aItem.aPrivTitle);
+ aProfessionED.SetText(aItem.aPrivProfession);
+ aPhoneED .SetText(aItem.aPrivPhone);
+ aMobilePhoneED.SetText(aItem.aPrivMobile);
+ aFaxED .SetText(aItem.aPrivFax);
+ aHomePageED .SetText(aItem.aPrivWWW);
+ aMailED .SetText(aItem.aPrivMail);
+}
+/* -----------------29.09.99 08:56-------------------
+
+ --------------------------------------------------*/
+SwBusinessDataPage::SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet) :
+ SfxTabPage(pParent, SW_RES(TP_BUSINESS_DATA), rSet),
+ aDataGB(this, ResId(GB_DATA)),
+ aCompanyFT(this, ResId( FT_COMP )),
+ aCompanyED(this, ResId( ED_COMP )),
+ aCompanyExtFT(this, ResId( FT_COMP_EXT )),
+ aCompanyExtED(this, ResId( ED_COMP_EXT )),
+ aSloganFT(this, ResId( FT_SLOGAN )),
+ aSloganED(this, ResId( ED_SLOGAN )),
+ aStreetFT(this, ResId( FT_STREET )),
+ aStreetED(this, ResId( ED_STREET )),
+ aZipCityFT(this, ResId( FT_ZIPCITY )),
+ aZipED(this, ResId( ED_ZIP )),
+ aCityED(this, ResId( ED_CITY )),
+ aCountryStateFT(this, ResId(FT_COUNTRYSTATE )),
+ aCountryED(this, ResId( ED_COUNTRY )),
+ aStateED(this, ResId( ED_STATE )),
+ aPositionFT(this, ResId( FT_POSITION )),
+ aPositionED(this, ResId( ED_POSITION )),
+ aPhoneFT(this, ResId( FT_PHONE )),
+ aPhoneED(this, ResId( ED_PHONE )),
+ aMobilePhoneED(this, ResId( ED_MOBILE )),
+ aFaxED(this, ResId( ED_FAX )),
+ aWWWMailFT(this, ResId( FT_WWWMAIL )),
+ aHomePageED(this, ResId( ED_WWW )),
+ aMailED(this, ResId( ED_MAIL ))
+{
+ FreeResource();
+ SetExchangeSupport();
+}
+
+/*-- 29.09.99 08:56:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwBusinessDataPage::~SwBusinessDataPage()
+{
+}
+/*-- 29.09.99 08:56:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SfxTabPage* SwBusinessDataPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwBusinessDataPage(pParent, rSet);
+}
+/*-- 29.09.99 08:56:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwBusinessDataPage::ActivatePage(const SfxItemSet& rSet)
+{
+ Reset(rSet);
+}
+/*-- 29.09.99 08:56:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+int SwBusinessDataPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if (pSet)
+ FillItemSet(*pSet);
+ return LEAVE_PAGE;
+}
+/*-- 29.09.99 08:56:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwBusinessDataPage::FillItemSet(SfxItemSet& rSet)
+{
+ SwLabItem aItem = (const SwLabItem&) GetTabDialog()->GetExampleSet()->Get(FN_LABEL);
+
+ aItem.aCompCompany = aCompanyED .GetText();
+ aItem.aCompCompanyExt= aCompanyExtED .GetText();
+ aItem.aCompSlogan = aSloganED .GetText();
+ aItem.aCompStreet = aStreetED .GetText();
+ aItem.aCompZip = aZipED .GetText();
+ aItem.aCompCity = aCityED .GetText();
+ aItem.aCompCountry = aCountryED .GetText();
+ aItem.aCompState = aStateED .GetText();
+ aItem.aCompPosition = aPositionED .GetText();
+ aItem.aCompPhone = aPhoneED .GetText();
+ aItem.aCompMobile = aMobilePhoneED .GetText();
+ aItem.aCompFax = aFaxED .GetText();
+ aItem.aCompWWW = aHomePageED .GetText();
+ aItem.aCompMail = aMailED .GetText();
+
+ rSet.Put(aItem);
+ return sal_True;
+}
+/*-- 29.09.99 08:56:07---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwBusinessDataPage::Reset(const SfxItemSet& rSet)
+{
+ const SwLabItem& aItem = (const SwLabItem&) rSet.Get(FN_LABEL);
+ aCompanyED .SetText(aItem.aCompCompany);
+ aCompanyExtED .SetText(aItem.aCompCompanyExt);
+ aSloganED .SetText(aItem.aCompSlogan);
+ aStreetED .SetText(aItem.aCompStreet);
+ aZipED .SetText(aItem.aCompZip);
+ aCityED .SetText(aItem.aCompCity);
+ aCountryED .SetText(aItem.aCompCountry);
+ aStateED .SetText(aItem.aCompState);
+ aPositionED .SetText(aItem.aCompPosition);
+ aPhoneED .SetText(aItem.aCompPhone);
+ aMobilePhoneED .SetText(aItem.aCompMobile);
+ aFaxED .SetText(aItem.aCompFax);
+ aHomePageED .SetText(aItem.aCompWWW);
+ aMailED .SetText(aItem.aCompMail);
+}
+
+/*-----------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.136 2000/09/18 16:05:25 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.135 2000/07/18 12:50:08 os
+ replace ofadbmgr
+
+ Revision 1.134 2000/06/21 13:54:54 os
+ unicode error remvoed
+
+ Revision 1.133 2000/06/16 08:31:13 martin.hollmichel
+ add: header
+
+ Revision 1.132 2000/06/13 09:59:42 os
+ using UCB
+
+ Revision 1.131 2000/05/30 15:09:06 jp
+ Bugfix and optimation for unicode
+
+ Revision 1.130 2000/05/16 17:29:11 jp
+ Changes for Unicode
+
+ Revision 1.129 2000/05/16 09:15:12 os
+ project usr removed
+
+ Revision 1.128 2000/04/18 15:31:35 os
+ UNICODE
+
+ Revision 1.127 2000/03/23 08:20:15 os
+ UNO III
+
+ Revision 1.126 2000/03/06 15:45:05 os
+ #73802# preview improved
+
+ Revision 1.125 2000/02/24 17:37:08 hr
+ 43447#: gcc
+
+ Revision 1.124 2000/02/14 14:47:58 os
+ #70473# Unicode
+
+ Revision 1.123 2000/02/10 11:31:39 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.122 2000/02/09 14:08:55 os
+ #72787# HelpId added
+
+ Revision 1.121 2000/01/13 11:40:09 os
+ #71840# check selected entry
+
+ Revision 1.120 1999/12/27 09:52:27 os
+ #71262# Undo in SwOneExampleFrame; TreeListBox as AutoText - box
+
+ Revision 1.119 1999/12/07 16:34:13 os
+ #70355##70559# SHORTCUT->INITIALS; second private name
+
+ Revision 1.118 1999/11/26 11:27:36 os
+ #70154# check if the text block is available
+
+ Revision 1.117 1999/11/25 15:42:54 os
+ headers corrected
+
+ Revision 1.116 1999/11/23 08:14:51 os
+ header corrected
+
+ Revision 1.115 1999/11/19 16:40:22 os
+ modules renamed
+
+ Revision 1.114 1999/11/19 14:08:47 os
+ #69462# Names corrected
+
+ Revision 1.113 1999/11/10 15:39:22 os
+ SwOneExampleFrame: CTor changed
+
+ Revision 1.112 1999/11/10 10:53:07 tl
+ includes rearranged
+
+ Revision 1.111 1999/10/21 17:48:05 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.110 1999/10/08 10:00:05 jp
+ no cast from GetpApp to SfxApp
+
+ Revision 1.109 1999/10/01 13:41:17 os
+ apply AutoText to business cards
+
+ Revision 1.108 1999/10/01 12:03:55 os
+ all fields are available
+
+ Revision 1.107 1999/09/30 07:52:42 os
+ new pages for business cards
+
+ Revision 1.106 1999/09/28 13:36:41 os
+ #67382# separate dialog for business cards; survive without data base
+
+ Revision 1.105 1999/09/24 13:53:09 os
+ chg: ODbRow/ODbVariant - includes moved
+
+ Revision 1.104 1999/09/10 13:07:12 os
+ TRY/CATCH block in StarOne AutoText access
+
+ Revision 1.103 1999/08/26 17:36:00 JP
+ no cast from GetpApp to SfxApp
+
+
+ Rev 1.102 26 Aug 1999 19:36:00 JP
+ no cast from GetpApp to SfxApp
+
+ Rev 1.101 28 Jul 1999 13:05:08 OS
+ new: SwOneExampleFrame
+
+ Rev 1.100 23 Jul 1999 10:06:00 OS
+ visiting cards tabpage
+
+ Rev 1.99 19 Jul 1999 15:58:42 MA
+ pass a Parent to the wait object
+
+ Rev 1.98 13 Jul 1999 09:32:50 OS
+ visiting cards TabPage
+
+ Rev 1.97 09 Jun 1999 19:34:42 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.96 10 Feb 1999 14:33:10 MA
+ #61674# Direktdruck fuer Etiketten entfernt
+
+ Rev 1.95 07 Sep 1998 16:59:30 OM
+ #55930# Einzelnes Etikett an der korrekten Position drucken
+
+ Rev 1.94 09 Jul 1998 09:52:32 JP
+ EmptyStr benutzen
+
+ Rev 1.93 14 Mar 1998 15:12:50 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.92 14 Mar 1998 14:26:46 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.91 14 Mar 1998 14:10:22 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.90 24 Nov 1997 11:52:12 MA
+ includes
+
+ Rev 1.89 03 Nov 1997 13:17:12 MA
+ precomp entfernt
+
+ Rev 1.88 03 Sep 1997 13:59:14 OM
+ #36627# Sinnvolle Fehlermeldungen liefern
+
+ Rev 1.87 02 Sep 1997 09:58:24 OM
+ SDB-Headeranpassung
+
+ Rev 1.86 05 May 1997 11:16:30 OM
+ Hilfetext fuer OK loeschen
+
+ Rev 1.85 29 Apr 1997 17:09:50 OM
+ HelpID fuer UserButton
+
+ Rev 1.84 21 Apr 1997 15:54:50 OM
+ #39002# GPF Etiketten gefixt
+
+ Rev 1.83 14 Apr 1997 12:03:36 OM
+ #38747# GPF nach Etikettenauswahl behoben
+
+ Rev 1.82 08 Apr 1997 10:10:12 NF
+ includes...
+
+ Rev 1.81 04 Apr 1997 14:04:54 OM
+ HelpIDs fuer DruckButton
+
+ Rev 1.80 25 Feb 1997 22:47:40 OM
+ Unvollstaendige Datenbank am Dialog korrigiert
+
+ Rev 1.79 20 Feb 1997 18:50:12 MA
+ fix: letzte Datenbank merken
+
+ Rev 1.78 20 Feb 1997 17:51:40 MA
+ fix: Deactivate ueber Fill
+
+ Rev 1.77 04 Dec 1996 13:54:02 OM
+ Kein konstanter AdressDBName mehr
+
+ Rev 1.76 11 Nov 1996 09:44:18 MA
+ ResMgr
+
+ Rev 1.75 29 Oct 1996 17:59:28 HJS
+ includes
+
+ Rev 1.74 24 Oct 1996 13:36:10 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.73 25 Sep 1996 14:11:12 OM
+ Neue Datenbanktrenner
+
+ Rev 1.72 16 Aug 1996 13:46:18 TRI
+ C40_INSERT statt Insert
+
+ Rev 1.71 05 Aug 1996 15:17:36 OM
+ Datenbankumstellung
+
+ Rev 1.70 26 Jul 1996 20:36:36 MA
+ includes
+
+ Rev 1.69 17 Jul 1996 13:47:04 OM
+ Datenbankumstellung 327
+
+*/
+
+
+
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
new file mode 100644
index 000000000000..01c6edbf26f3
--- /dev/null
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -0,0 +1,754 @@
+/*************************************************************************
+ *
+ * $RCSfile: labfmt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_POLY_HXX //autogen
+#include <vcl/poly.hxx>
+#endif
+
+
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "label.hxx"
+#include "labimp.hxx"
+#include "labimg.hxx"
+#include "labfmt.hxx"
+#include "uitool.hxx"
+
+#include "label.hrc"
+#include "labfmt.hrc"
+
+
+// #define ------------------------------------------------------------------
+
+#define ROUND(x) ((USHORT) ((x) + .5))
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabPreview::SwLabPreview( const SwLabFmtPage* pParent, const ResId& rResID ) :
+
+ Window((Window*) pParent, rResID),
+
+ aHDistStr (SW_RES(STR_HDIST )),
+ aVDistStr (SW_RES(STR_VDIST )),
+ aWidthStr (SW_RES(STR_WIDTH )),
+ aHeightStr(SW_RES(STR_HEIGHT)),
+ aLeftStr (SW_RES(STR_LEFT )),
+ aUpperStr (SW_RES(STR_UPPER )),
+ aColsStr (SW_RES(STR_COLS )),
+ aRowsStr (SW_RES(STR_ROWS )),
+ aBlackColor(COL_BLACK),
+ aGrayColor(COL_LIGHTGRAY),
+ aWhiteColor(COL_WHITE)
+
+{
+ SetMapMode(MAP_PIXEL);
+
+ const Size aSz(GetOutputSizePixel());
+
+ lOutWPix = aSz.Width ();
+ lOutHPix = aSz.Height();
+
+
+ SetBackground(Wallpaper(aWhiteColor));
+
+ Font aFont = GetFont();
+ aFont.SetFillColor(Color(COL_WHITE));
+ aFont.SetWeight (WEIGHT_NORMAL);
+ SetFont(aFont);
+
+ lHDistWidth = GetTextWidth(aHDistStr );
+ lVDistWidth = GetTextWidth(aVDistStr );
+ lHeightWidth = GetTextWidth(aHeightStr);
+ lLeftWidth = GetTextWidth(aLeftStr );
+ lUpperWidth = GetTextWidth(aUpperStr );
+ lColsWidth = GetTextWidth(aColsStr );
+
+ lXHeight = GetTextHeight();
+ lXWidth = GetTextWidth('X');
+
+ // Skalierungsfaktor
+ float fx = (float)(lOutWPix - (2 * (lLeftWidth + 15))) / (float)lOutWPix;
+
+ lOutWPix23 = (long)((float)lOutWPix * fx);
+ lOutHPix23 = (long)((float)lOutHPix * fx);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabPreview::~SwLabPreview()
+{
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPreview::Paint(const Rectangle &rRect)
+{
+ SetLineColor(aWhiteColor);
+ SetFillColor(aGrayColor);
+ Font aPaintFont(GetFont());
+ aPaintFont.SetTransparent(FALSE);
+ SetFont(aPaintFont);
+
+ // Groesse des darzustellenden Bereichs
+ long lDispW = ROUND(aItem.lLeft + aItem.lHDist);
+ long lDispH = ROUND(aItem.lUpper + aItem.lVDist);
+ if (aItem.nCols == 1)
+ lDispW += ROUND(aItem.lLeft );
+ else
+ lDispW += ROUND(aItem.lHDist / 10);
+ if (aItem.nRows == 1)
+ lDispH += ROUND(aItem.lUpper);
+ else
+ lDispH += ROUND(aItem.lVDist / 10);
+
+ // Skalierungsfaktor
+ float fx = (float) lOutWPix23 / Max(1L, lDispW),
+ fy = (float) lOutHPix23 / Max(1L, lDispH),
+ f = fx < fy ? fx : fy;
+
+ // Nullpunkt
+ long lOutlineW = ROUND(f * lDispW);
+ long lOutlineH = ROUND(f * lDispH);
+
+ long lX0 = (lOutWPix - lOutlineW) / 2;
+ long lY0 = (lOutHPix - lOutlineH) / 2;
+ long lX1 = ROUND(lX0 + f * aItem.lLeft );
+ long lY1 = ROUND(lY0 + f * aItem.lUpper);
+ long lX2 = ROUND(lX0 + f * (aItem.lLeft + aItem.lWidth ));
+ long lY2 = ROUND(lY0 + f * (aItem.lUpper + aItem.lHeight));
+ long lX3 = ROUND(lX0 + f * (aItem.lLeft + aItem.lHDist ));
+ long lY3 = ROUND(lY0 + f * (aItem.lUpper + aItem.lVDist ));
+
+ // Umriss zeichnen (Flaeche)
+ DrawRect(Rectangle(Point(lX0, lY0), Size(lOutlineW, lOutlineH)));
+
+ // Umriss zeichnen (Umrandung)
+ SetLineColor(aBlackColor);
+ DrawLine(Point(lX0, lY0), Point(lX0 + lOutlineW - 1, lY0)); // Oben
+ DrawLine(Point(lX0, lY0), Point(lX0, lY0 + lOutlineH - 1)); // Links
+ if (aItem.nCols == 1)
+ DrawLine(Point(lX0 + lOutlineW - 1, lY0), Point(lX0 + lOutlineW - 1, lY0 + lOutlineH - 1)); // Rechts
+ if (aItem.nRows == 1)
+ DrawLine(Point(lX0, lY0 + lOutlineH - 1), Point(lX0 + lOutlineW - 1, lY0 + lOutlineH - 1)); // Unten
+
+ // Etiketten
+ SetClipRegion (Rectangle(Point(lX0, lY0), Size(lOutlineW, lOutlineH)));
+ SetFillColor(aWhiteColor);
+ for (USHORT nRow = 0; nRow < Min((USHORT) 2, (USHORT) aItem.nRows); nRow++)
+ for (USHORT nCol = 0; nCol < Min((USHORT) 2, (USHORT) aItem.nCols); nCol++)
+ DrawRect(Rectangle(
+ Point(ROUND(lX0 + f * (aItem.lLeft + nCol * aItem.lHDist)),
+ ROUND(lY0 + f * (aItem.lUpper + nRow * aItem.lVDist))),
+ Size (ROUND(f * aItem.lWidth ),
+ ROUND(f * aItem.lHeight))));
+ SetClipRegion();
+
+ // Beschritung: Rand links
+ if (aItem.lLeft)
+ {
+ long lX = (lX0 + lX1) / 2;
+ DrawArrow(Point(lX0, lY0 - 5), Point(lX1, lY0 - 5), FALSE);
+ DrawArrow(Point(lX, lY0 - 10), Point(lX, lY0 - 5), TRUE);
+ DrawText(Point(lX1 - lLeftWidth, lY0 - 10 - lXHeight), aLeftStr);
+ }
+
+ // Beschriftung: Rand oben
+ if (aItem.lUpper)
+ {
+ DrawArrow(Point(lX0 - 5, lY0), Point(lX0 - 5, lY1), FALSE);
+ DrawText(Point(lX0 - 10 - lUpperWidth, ROUND(lY0 + f * aItem.lUpper / 2 - lXHeight / 2)), aUpperStr);
+ }
+
+ // Beschriftung: Breite und Hoehe
+ {
+ long lX = lX2 - lXWidth / 2 - lHeightWidth / 2;
+ long lY = lY1 + lXHeight;
+
+ DrawLine(Point(lX1, lY), Point(lX2 - 1, lY));
+ DrawLine(Point(lX, lY1), Point(lX, lY2 - 1));
+
+ DrawText(Point(lX1 + lXWidth / 2, lY - lXHeight / 2), aWidthStr);
+ DrawText(Point(lX - lHeightWidth / 2, lY2 - lXHeight - lXHeight / 2), aHeightStr);
+ }
+
+ // Beschriftung: Horz. Abstand
+ if (aItem.nCols > 1)
+ {
+ long lX = (lX1 + lX3) / 2;
+ DrawArrow(Point(lX1, lY0 - 5), Point(lX3, lY0 - 5), FALSE);
+ DrawArrow(Point(lX, lY0 - 10), Point(lX, lY0 - 5), TRUE);
+ DrawText(Point(lX - lHDistWidth / 2, lY0 - 10 - lXHeight), aHDistStr);
+ }
+
+ // Beschriftung: Vertikaler Abstand
+ if (aItem.nRows > 1)
+ {
+ DrawArrow(Point(lX0 - 5, lY1), Point(lX0 - 5, lY3), FALSE);
+ DrawText(Point(lX0 - 10 - lVDistWidth, ROUND(lY1 + f * aItem.lVDist / 2 - lXHeight / 2)), aVDistStr);
+ }
+
+ // Beschriftung: Spalten
+ {
+ long lY = lY0 + lOutlineH + 4;
+ DrawArrow(Point(lX0, lY), Point(lX0 + lOutlineW - 1, lY), TRUE);
+ DrawText(Point((lX0 + lX0 + lOutlineW - 1) / 2 - lColsWidth / 2, lY + 5), aColsStr);
+ }
+
+ // Beschriftung: Zeilen
+ {
+ long lX = lX0 + lOutlineW + 4;
+ DrawArrow(Point(lX, lY0), Point(lX, lY0 + lOutlineH - 1), TRUE);
+ DrawText(Point(lX + 5, (lY0 + lY0 + lOutlineH - 1 - lXHeight / 2) / 2), aRowsStr);
+ }
+}
+
+// Pfeil bzw. Intervall zeichnen --------------------------------------------
+
+
+
+void SwLabPreview::DrawArrow(const Point &rP1, const Point &rP2, BOOL bArrow)
+{
+ DrawLine(rP1, rP2);
+
+ if (bArrow)
+ {
+ Point aArr[3];
+
+ // Pfeil zeichnen
+ if (rP1.Y() == rP2.Y())
+ {
+ // Waagerecht
+ aArr[0].X() = rP2.X() - 5;
+ aArr[0].Y() = rP2.Y() - 2;
+ aArr[1].X() = rP2.X();
+ aArr[1].Y() = rP2.Y();
+ aArr[2].X() = rP2.X() - 5;
+ aArr[2].Y() = rP2.Y() + 2;
+ }
+ else
+ {
+ // Senkrecht
+ aArr[0].X() = rP2.X() - 2;
+ aArr[0].Y() = rP2.Y() - 5;
+ aArr[1].X() = rP2.X() + 2;
+ aArr[1].Y() = rP2.Y() - 5;
+ aArr[2].X() = rP2.X();
+ aArr[2].Y() = rP2.Y();
+ }
+
+ SetFillColor(aBlackColor);
+ DrawPolygon(Polygon(3, aArr));
+ }
+ else
+ {
+ // Intervall zeichnen
+ if (rP1.Y() == rP2.Y())
+ {
+ // Waagerecht
+ DrawLine(Point(rP1.X(), rP1.Y() - 2), Point(rP1.X(), rP1.Y() + 2));
+ DrawLine(Point(rP2.X(), rP2.Y() - 2), Point(rP2.X(), rP2.Y() + 2));
+ }
+ else
+ {
+ // Senkrecht
+ DrawLine(Point(rP1.X() - 2, rP1.Y()), Point(rP1.X() + 2, rP1.Y()));
+ DrawLine(Point(rP2.X() - 2, rP2.Y()), Point(rP2.X() + 2, rP2.Y()));
+ }
+ }
+}
+
+// --------------------------------------------------------------------------
+
+void SwLabPreview::Update(const SwLabItem& rItem)
+{
+ aItem = rItem;
+ Invalidate();
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabFmtPage::SwLabFmtPage(Window* pParent, const SfxItemSet& rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_LAB_FMT), rSet),
+ aItem ((const SwLabItem&) rSet.Get(FN_LABEL)),
+
+ aPreview (this, SW_RES(WIN_PREVIEW)),
+ aHDistText (this, SW_RES(TXT_HDIST )),
+ aHDistField (this, SW_RES(FLD_HDIST )),
+ aVDistText (this, SW_RES(TXT_VDIST )),
+ aVDistField (this, SW_RES(FLD_VDIST )),
+ aWidthText (this, SW_RES(TXT_WIDTH )),
+ aWidthField (this, SW_RES(FLD_WIDTH )),
+ aHeightText (this, SW_RES(TXT_HEIGHT )),
+ aHeightField (this, SW_RES(FLD_HEIGHT )),
+ aLeftText (this, SW_RES(TXT_LEFT )),
+ aLeftField (this, SW_RES(FLD_LEFT )),
+ aUpperText (this, SW_RES(TXT_UPPER )),
+ aUpperField (this, SW_RES(FLD_UPPER )),
+ aColsText (this, SW_RES(TXT_COLUMNS)),
+ aColsField (this, SW_RES(FLD_COLUMNS)),
+ aRowsText (this, SW_RES(TXT_ROWS )),
+ aRowsField (this, SW_RES(FLD_ROWS )),
+
+ bModified(FALSE)
+
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ // Metriken
+ FieldUnit aMetric = ::GetDfltMetric(FALSE);
+ SetMetric(aHDistField , aMetric);
+ SetMetric(aVDistField , aMetric);
+ SetMetric(aWidthField , aMetric);
+ SetMetric(aHeightField, aMetric);
+ SetMetric(aLeftField , aMetric);
+ SetMetric(aUpperField , aMetric);
+
+ // Handler installieren
+ Link aLk = LINK(this, SwLabFmtPage, ModifyHdl);
+ aHDistField .SetModifyHdl( aLk );
+ aVDistField .SetModifyHdl( aLk );
+ aWidthField .SetModifyHdl( aLk );
+ aHeightField.SetModifyHdl( aLk );
+ aLeftField .SetModifyHdl( aLk );
+ aUpperField .SetModifyHdl( aLk );
+ aColsField .SetModifyHdl( aLk );
+ aRowsField .SetModifyHdl( aLk );
+
+ aLk = LINK(this, SwLabFmtPage, LoseFocusHdl);
+ aHDistField .SetLoseFocusHdl( aLk );
+ aVDistField .SetLoseFocusHdl( aLk );
+ aWidthField .SetLoseFocusHdl( aLk );
+ aHeightField.SetLoseFocusHdl( aLk );
+ aLeftField .SetLoseFocusHdl( aLk );
+ aUpperField .SetLoseFocusHdl( aLk );
+ aColsField .SetLoseFocusHdl( aLk );
+ aRowsField .SetLoseFocusHdl( aLk );
+
+ // Timer einstellen
+ aPreviewTimer.SetTimeout(1000);
+ aPreviewTimer.SetTimeoutHdl(LINK(this, SwLabFmtPage, PreviewHdl));
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabFmtPage::~SwLabFmtPage()
+{
+}
+
+// Modify-Handler der MetricFields. Preview-Timer starten -------------------
+
+
+
+IMPL_LINK_INLINE_START( SwLabFmtPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ bModified = TRUE;
+ aPreviewTimer.Start();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwLabFmtPage, ModifyHdl, Edit *, EMPTYARG )
+
+// Preview invalidaten ------------------------------------------------------
+
+
+
+IMPL_LINK_INLINE_START( SwLabFmtPage, PreviewHdl, Timer *, EMPTYARG )
+{
+ aPreviewTimer.Stop();
+ ChangeMinMax();
+ FillItem( aItem );
+ aPreview.Update( aItem );
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwLabFmtPage, PreviewHdl, Timer *, EMPTYARG )
+
+// LoseFocus-Handler: Bei Aenderung sofort updaten --------------------------
+
+
+
+IMPL_LINK_INLINE_START( SwLabFmtPage, LoseFocusHdl, Control *, pControl )
+{
+ if (((Edit*) pControl)->IsModified())
+ PreviewHdl(0);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwLabFmtPage, LoseFocusHdl, Control *, pControl )
+
+// Minima und Maxima fuer Fields festlegen ----------------------------------
+
+
+void SwLabFmtPage::ChangeMinMax()
+{
+ long lMax = 31748; // 56 cm
+
+ // Min und Max
+
+ long lLeft = GETFLDVAL(aLeftField ),
+ lUpper = GETFLDVAL(aUpperField),
+ lHDist = GETFLDVAL(aHDistField),
+ lVDist = GETFLDVAL(aVDistField);
+
+ long nMinSize = 10; // 0,1cm
+
+ aHDistField .SetMin(nMinSize, FUNIT_CM);
+ aVDistField .SetMin(nMinSize, FUNIT_CM);
+
+ aHDistField .SetMax((long) 100 * ((lMax - lLeft ) / Max(1L, (long) aColsField.GetValue())), FUNIT_TWIP);
+ aVDistField .SetMax((long) 100 * ((lMax - lUpper) / Max(1L, (long) aRowsField.GetValue())), FUNIT_TWIP);
+
+ aWidthField .SetMin(nMinSize, FUNIT_CM);
+ aHeightField.SetMin(nMinSize, FUNIT_CM);
+
+ aWidthField .SetMax((long) 100 * (lHDist), FUNIT_TWIP);
+ aHeightField.SetMax((long) 100 * (lVDist), FUNIT_TWIP);
+
+ aLeftField .SetMax((long) 100 * (lMax - (long) aColsField.GetValue() * GETFLDVAL(aHDistField)), FUNIT_TWIP);
+ aUpperField .SetMax((long) 100 * (lMax - (long) aRowsField.GetValue() * GETFLDVAL(aVDistField)), FUNIT_TWIP);
+
+ aColsField .SetMax((lMax - lLeft ) / Max(1L, lHDist));
+ aRowsField .SetMax((lMax - lUpper) / Max(1L, lVDist));
+
+ // First und Last
+
+ aHDistField .SetFirst(aHDistField .GetMin());
+ aVDistField .SetFirst(aVDistField .GetMin());
+
+ aHDistField .SetLast (aHDistField .GetMax());
+ aVDistField .SetLast (aVDistField .GetMax());
+
+ aWidthField .SetFirst(aWidthField .GetMin());
+ aHeightField.SetFirst(aHeightField.GetMin());
+
+ aWidthField .SetLast (aWidthField .GetMax());
+ aHeightField.SetLast (aHeightField.GetMax());
+
+ aLeftField .SetLast (aLeftField .GetMax());
+ aUpperField .SetLast (aUpperField .GetMax());
+
+ aColsField .SetLast (aColsField .GetMax());
+ aRowsField .SetLast (aRowsField .GetMax());
+
+ aHDistField .Reformat();
+ aVDistField .Reformat();
+ aWidthField .Reformat();
+ aHeightField.Reformat();
+ aLeftField .Reformat();
+ aUpperField .Reformat();
+ aColsField .Reformat();
+ aRowsField .Reformat();
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxTabPage* SwLabFmtPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwLabFmtPage(pParent, rSet);
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+void SwLabFmtPage::ActivatePage(const SfxItemSet& rSet)
+{
+ SfxItemSet aSet(rSet);
+ Reset(aSet);
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+int SwLabFmtPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if (pSet)
+ FillItemSet(*pSet);
+
+ return TRUE;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabFmtPage::FillItem(SwLabItem& rItem)
+{
+ if (bModified)
+ {
+ rItem.aMake = rItem.aType = SW_RESSTR(STR_CUSTOM);
+
+ SwLabRec& rRec = *GetParent()->Recs()[0];
+ rItem.lHDist = rRec.lHDist = GETFLDVAL(aHDistField );
+ rItem.lVDist = rRec.lVDist = GETFLDVAL(aVDistField );
+ rItem.lWidth = rRec.lWidth = GETFLDVAL(aWidthField );
+ rItem.lHeight = rRec.lHeight = GETFLDVAL(aHeightField);
+ rItem.lLeft = rRec.lLeft = GETFLDVAL(aLeftField );
+ rItem.lUpper = rRec.lUpper = GETFLDVAL(aUpperField );
+ rItem.nCols = rRec.nCols = (USHORT) aColsField.GetValue();
+ rItem.nRows = rRec.nRows = (USHORT) aRowsField.GetValue();
+ }
+}
+
+// --------------------------------------------------------------------------
+
+
+
+BOOL SwLabFmtPage::FillItemSet(SfxItemSet& rSet)
+{
+ SwLabItem aItem;
+ GetParent()->GetLabItem(aItem);
+ FillItem(aItem);
+ rSet.Put(aItem);
+
+ return TRUE;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabFmtPage::Reset(const SfxItemSet& rSet)
+{
+ // Fields initialisieren
+ GetParent()->GetLabItem(aItem);
+
+ aHDistField .SetMax(100 * aItem.lHDist , FUNIT_TWIP);
+ aVDistField .SetMax(100 * aItem.lVDist , FUNIT_TWIP);
+ aWidthField .SetMax(100 * aItem.lWidth , FUNIT_TWIP);
+ aHeightField.SetMax(100 * aItem.lHeight, FUNIT_TWIP);
+ aLeftField .SetMax(100 * aItem.lLeft , FUNIT_TWIP);
+ aUpperField .SetMax(100 * aItem.lUpper , FUNIT_TWIP);
+
+ SETFLDVAL(aHDistField , aItem.lHDist );
+ SETFLDVAL(aVDistField , aItem.lVDist );
+ SETFLDVAL(aWidthField , aItem.lWidth );
+ SETFLDVAL(aHeightField, aItem.lHeight);
+ SETFLDVAL(aLeftField , aItem.lLeft );
+ SETFLDVAL(aUpperField , aItem.lUpper );
+
+ aColsField.SetMax(aItem.nCols);
+ aRowsField.SetMax(aItem.nRows);
+
+ aColsField .SetValue(aItem.nCols);
+ aRowsField .SetValue(aItem.nRows);
+
+ PreviewHdl(0);
+}
+
+
+
+/*
+$Log: not supported by cvs2svn $
+Revision 1.60 2000/09/18 16:05:26 willem.vandorp
+OpenOffice header added.
+
+Revision 1.59 2000/04/18 15:31:35 os
+UNICODE
+
+Revision 1.58 2000/03/03 15:17:00 os
+StarView remainders removed
+
+Revision 1.57 2000/02/11 14:45:37 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.56 1999/07/23 08:00:30 OS
+#67818# set font transparent
+
+
+ Rev 1.55 23 Jul 1999 10:00:30 OS
+ #67818# set font transparent
+
+ Rev 1.54 23 Sep 1998 12:42:28 OM
+ #56852# Minimale Etikettengroesse 1mm
+
+ Rev 1.53 11 Sep 1998 12:29:46 OM
+ #56319# Richtiges Etikettenformat verwenden
+
+ Rev 1.52 08 Sep 1998 16:52:34 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.51 07 Sep 1998 16:59:32 OM
+ #55930# Einzelnes Etikett an der korrekten Position drucken
+
+ Rev 1.50 08 Jul 1998 17:16:48 OM
+ #52127# os2icci3-Compiler Optimierungsbug umpropelt
+
+ Rev 1.49 14 Mar 1998 14:31:36 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.48 14 Mar 1998 14:10:24 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.47 24 Nov 1997 11:52:12 MA
+ includes
+
+ Rev 1.46 03 Nov 1997 13:17:10 MA
+ precomp entfernt
+
+ Rev 1.45 07 Apr 1997 14:46:28 MH
+ chg: header
+
+ Rev 1.44 11 Nov 1996 09:44:16 MA
+ ResMgr
+
+ Rev 1.43 26 Jul 1996 20:36:38 MA
+ includes
+
+ Rev 1.42 07 Mar 1996 14:14:44 HJS
+ line 270: &aArr => aArr
+
+ Rev 1.41 06 Mar 1996 10:52:36 MA
+ chg: SV309
+
+ Rev 1.40 06 Feb 1996 15:19:04 JP
+ Link Umstellung 305
+
+ Rev 1.39 25 Jan 1996 16:58:16 OM
+ Dialogfelder richtig initialisieren
+
+ Rev 1.38 24 Jan 1996 18:25:08 OM
+ #24534# Redraw-Bug in Etiketten Preview gefixt
+
+ Rev 1.37 22 Jan 1996 12:36:50 OM
+ Berechnungsfehler in Labels-Preview gefixt
+
+ Rev 1.36 28 Nov 1995 21:14:56 JP
+ UiSystem-Klasse aufgehoben, in initui/swtype aufgeteilt
+
+ Rev 1.35 27 Nov 1995 19:36:32 OM
+ HasExchangeSupport->303a
+
+ Rev 1.34 24 Nov 1995 16:59:42 OM
+ PCH->PRECOMPILED
+
+ Rev 1.33 23 Nov 1995 18:02:08 OM
+ In DeactivatePage ItemSet fuellen
+
+ Rev 1.32 08 Nov 1995 13:48:22 OM
+ Change->Set
+
+ Rev 1.31 10 Jul 1995 09:50:56 MA
+ LabelDlg optimiert und etwas aufgeraeumt.
+
+ Rev 1.30 24 May 1995 18:15:58 ER
+ Segmentierung
+
+ Rev 1.29 23 Apr 1995 17:33:32 PK
+ bugfix: etik.-fmt. wurde manchm. falsch angezeigt
+
+ Rev 1.28 05 Apr 1995 19:35:18 PK
+ fertig zur beta
+
+ Rev 1.27 05 Apr 1995 09:26:58 JP
+ Benutzung vom Link-Makro eingeschraenkt
+
+ Rev 1.26 04 Apr 1995 18:38:42 PK
+ geht immer weiter
+
+ Rev 1.25 24 Mar 1995 20:30:40 PK
+ geht immer weiter
+
+ Rev 1.24 23 Mar 1995 18:33:48 PK
+ geht immer weiter ...
+
+ Rev 1.23 17 Mar 1995 17:10:30 PK
+ geht immer weiter
+
+ Rev 1.22 15 Mar 1995 13:27:04 PK
+ geht immer weiter
+
+ Rev 1.21 06 Mar 1995 00:08:18 PK
+ linkbarer envelp-zustand
+
+ Rev 1.20 21 Feb 1995 15:39:32 PK
+ erstmal eingecheckt
+
+ Rev 1.19 25 Jan 1995 17:55:56 OS
+ Timerinstrumentierung
+
+ Rev 1.18 18 Nov 1994 15:54:42 MA
+ min -> Min, max -> Max
+
+ Rev 1.17 25 Oct 1994 17:33:36 ER
+ add: PCH
+
+*/
+
diff --git a/sw/source/ui/envelp/labfmt.hrc b/sw/source/ui/envelp/labfmt.hrc
new file mode 100644
index 000000000000..fb07093b4426
--- /dev/null
+++ b/sw/source/ui/envelp/labfmt.hrc
@@ -0,0 +1,112 @@
+/*************************************************************************
+ *
+ * $RCSfile: labfmt.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _LABFMT_HRC
+#define _LABFMT_HRC
+
+// #include *****************************************************************
+
+#include "envelp.hrc"
+
+// Lokale Resourcen *********************************************************
+
+#define WIN_PREVIEW 1
+#define TXT_HDIST 2
+#define FLD_HDIST 3
+#define TXT_VDIST 4
+#define FLD_VDIST 5
+#define TXT_WIDTH 6
+#define FLD_WIDTH 7
+#define TXT_HEIGHT 8
+#define FLD_HEIGHT 9
+#define TXT_LEFT 10
+#define FLD_LEFT 11
+#define TXT_UPPER 12
+#define FLD_UPPER 13
+#define TXT_COLUMNS 14
+#define FLD_COLUMNS 15
+#define TXT_ROWS 16
+#define FLD_ROWS 17
+#define GRP_NONAME 18
+#define BTN_OK 19
+#define BTN_CANCEL 20
+
+// Globale Resourcen ********************************************************
+
+#define STR_HDIST (RC_LABFMT_BEGIN + 1)
+#define STR_VDIST (RC_LABFMT_BEGIN + 2)
+#define STR_WIDTH (RC_LABFMT_BEGIN + 3)
+#define STR_HEIGHT (RC_LABFMT_BEGIN + 4)
+#define STR_LEFT (RC_LABFMT_BEGIN + 5)
+#define STR_UPPER (RC_LABFMT_BEGIN + 6)
+#define STR_COLS (RC_LABFMT_BEGIN + 7)
+#define STR_ROWS (RC_LABFMT_BEGIN + 8)
+
+// Ueberlaufpruefung ********************************************************
+
+#define LABFMT_ACT_END STR_ROWS
+
+#if LABFMT_ACT_END > RC_LABFMT_END
+#error Resource-Ueberlauf in #file, #line
+#endif
+
+#endif
+
diff --git a/sw/source/ui/envelp/labfmt.hxx b/sw/source/ui/envelp/labfmt.hxx
new file mode 100644
index 000000000000..1e280c1ae8ad
--- /dev/null
+++ b/sw/source/ui/envelp/labfmt.hxx
@@ -0,0 +1,166 @@
+/*************************************************************************
+ *
+ * $RCSfile: labfmt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _LABFMT_HXX
+#define _LABFMT_HXX
+
+#include "labimp.hxx"
+#include "labimg.hxx"
+
+class SwLabFmtPage;
+
+// class SwLabPreview -------------------------------------------------------
+
+class SwLabPreview : public Window
+{
+ long lOutWPix;
+ long lOutHPix;
+ long lOutWPix23;
+ long lOutHPix23;
+
+ Color aBlackColor;
+ Color aGrayColor;
+ Color aWhiteColor;
+
+ String aHDistStr;
+ String aVDistStr;
+ String aWidthStr;
+ String aHeightStr;
+ String aLeftStr;
+ String aUpperStr;
+ String aColsStr;
+ String aRowsStr;
+
+ long lHDistWidth;
+ long lVDistWidth;
+ long lHeightWidth;
+ long lLeftWidth;
+ long lUpperWidth;
+ long lColsWidth;
+
+ long lXWidth;
+ long lXHeight;
+
+ SwLabItem aItem;
+
+ void Paint(const Rectangle&);
+
+ void DrawArrow(const Point& rP1, const Point& rP2, BOOL bArrow);
+ SwLabFmtPage* GetParent() {return (SwLabFmtPage*) Window::GetParent();}
+
+public:
+
+ SwLabPreview(const SwLabFmtPage* pParent, const ResId& rResID);
+ ~SwLabPreview();
+
+ void Update(const SwLabItem& rItem);
+};
+
+// class SwLabFmtPage -------------------------------------------------------
+
+class SwLabFmtPage : public SfxTabPage
+{
+ SwLabPreview aPreview;
+ FixedText aHDistText;
+ MetricField aHDistField;
+ FixedText aVDistText;
+ MetricField aVDistField;
+ FixedText aWidthText;
+ MetricField aWidthField;
+ FixedText aHeightText;
+ MetricField aHeightField;
+ FixedText aLeftText;
+ MetricField aLeftField;
+ FixedText aUpperText;
+ MetricField aUpperField;
+ FixedText aColsText;
+ NumericField aColsField;
+ FixedText aRowsText;
+ NumericField aRowsField;
+
+ Timer aPreviewTimer;
+ BOOL bModified;
+
+ SwLabItem aItem;
+
+ SwLabFmtPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwLabFmtPage();
+
+ DECL_LINK( ModifyHdl, Edit * );
+ DECL_LINK( PreviewHdl, Timer * );
+ DECL_LINK( LoseFocusHdl, Control * );
+
+ void ChangeMinMax();
+
+public:
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ void FillItem(SwLabItem& rItem);
+ virtual BOOL FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+
+ SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
+};
+
+#endif
+
diff --git a/sw/source/ui/envelp/labfmt.src b/sw/source/ui/envelp/labfmt.src
new file mode 100644
index 000000000000..c667285f4f8b
--- /dev/null
+++ b/sw/source/ui/envelp/labfmt.src
@@ -0,0 +1,626 @@
+/*************************************************************************
+ *
+ * $RCSfile: labfmt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "labfmt.hrc"
+#include "helpid.h"
+ // TP_LAB_FMT ---------------------------------------------------------------
+TabPage TP_LAB_FMT
+{
+ HelpID = HID_LAB_FMT ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ Window WIN_PREVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 108 , 6 ) ;
+ Size = MAP_APPFONT ( 146 , 123 ) ;
+ };
+ FixedText TXT_HDIST
+ {
+ Pos = MAP_APPFONT ( 6 , 8 ) ;
+ Size = MAP_APPFONT ( 50 , 8 ) ;
+ Text = "~Horiz. Abstand" ;
+ Text [ English ] = "Horiz. distance" ;
+ Text [ norwegian ] = "Horiz. distance" ;
+ Text [ italian ] = "Distanza ~orizzont." ;
+ Text [ portuguese_brazilian ] = "Distância horizontal" ;
+ Text [ portuguese ] = "Espaçamento ~horiz." ;
+ Text [ finnish ] = "Vaakaetäisyys" ;
+ Text [ danish ] = "Vandret afstand" ;
+ Text [ french ] = "Écart ~horizontal" ;
+ Text [ swedish ] = "~Horis. avstånd" ;
+ Text [ dutch ] = "~Horiz. afstand" ;
+ Text [ spanish ] = "Distancia ~horiz." ;
+ Text [ english_us ] = "Hori~zontal pitch" ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ˮƽ¼ä¸ô(~Z)";
+ Text[ russian ] = "Øàã ïî ãîðèçîíò.";
+ Text[ polish ] = "Odstêp poziomy";
+ Text[ japanese ] = "‰¡‚ÌŠÔŠu(~Z)";
+ Text[ chinese_traditional ] = "¤ô¥­¶¡¹j(~Z)";
+ Text[ arabic ] = "ÇáÎØæÉ ÇáÃÝÞíÉ";
+ Text[ greek ] = "Ïñéæüíôéá áðüóôáóç";
+ Text[ korean ] = "°¡·Î °£°Ý(~Z)";
+ Text[ turkish ] = "~Yatay boþluk";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_HDIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 6 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_VDIST
+ {
+ Pos = MAP_APPFONT ( 6 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 8 ) ;
+ Text = "~Vert. Abstand" ;
+ Text [ English ] = "Vert. distance" ;
+ Text [ norwegian ] = "Vert. distance" ;
+ Text [ italian ] = "Distanza verticale" ;
+ Text [ portuguese_brazilian ] = "Distância vertical" ;
+ Text [ portuguese ] = "Espaçamento vertical" ;
+ Text [ finnish ] = "Pystyetäisyys" ;
+ Text [ danish ] = "Lodret afstand" ;
+ Text [ french ] = "Écart ~vertical" ;
+ Text [ swedish ] = "~Vert. avstånd" ;
+ Text [ dutch ] = "V~ert. afstand" ;
+ Text [ spanish ] = "Distancia ~vert." ;
+ Text [ english_us ] = "~Vertical pitch" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "´¹Ö±¼ä¸ô(~V)";
+ Text[ russian ] = "Øàã ïî âåðòèê.";
+ Text[ polish ] = "Odstêp pionowy";
+ Text[ japanese ] = "c‚ÌŠÔŠu(~V)";
+ Text[ chinese_traditional ] = "««ª½¶¡¹j(~V)";
+ Text[ arabic ] = "ÇáÎØæÉ ÇáÑÃÓíÉ";
+ Text[ greek ] = "Êáôáêüñõöç áðüóôáóç";
+ Text[ korean ] = "¼¼·Î °£°Ý(~V)";
+ Text[ turkish ] = "Dikey boþluk";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_VDIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 21 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_WIDTH
+ {
+ Pos = MAP_APPFONT ( 6 , 38 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Breite" ;
+ Text [ English ] = "Width" ;
+ Text [ norwegian ] = "Bredde " ;
+ Text [ italian ] = "~Largh." ;
+ Text [ portuguese_brazilian ] = "Largura" ;
+ Text [ portuguese ] = "~Largura" ;
+ Text [ finnish ] = "Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "~Largeur" ;
+ Text [ swedish ] = "~Bredd" ;
+ Text [ dutch ] = "B~reedte" ;
+ Text [ spanish ] = "A~ncho" ;
+ Text [ english_us ] = "~Width" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¿í(~W)";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "•(~W)";
+ Text[ chinese_traditional ] = "¼e(~W)";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ(~W)";
+ Text[ turkish ] = "Ge~niþlik";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_WIDTH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 36 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_HEIGHT
+ {
+ Pos = MAP_APPFONT ( 6 , 53 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "H~öhe" ;
+ Text [ English ] = "Height" ;
+ Text [ norwegian ] = "Høyde " ;
+ Text [ italian ] = "Altezza" ;
+ Text [ portuguese_brazilian ] = "Altura" ;
+ Text [ portuguese ] = "Altura" ;
+ Text [ finnish ] = "Korkeus" ;
+ Text [ danish ] = "Højde" ;
+ Text [ french ] = "~Hauteur" ;
+ Text [ swedish ] = "Höj~d" ;
+ Text [ dutch ] = "H~oogte" ;
+ Text [ spanish ] = "A~ltura" ;
+ Text [ english_us ] = "~Height" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¸ß(~H)";
+ Text[ russian ] = "Âûñîòà";
+ Text[ polish ] = "Wys.";
+ Text[ japanese ] = "‚‚³(~H)";
+ Text[ chinese_traditional ] = "°ª(~H)";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ";
+ Text[ greek ] = "¾øïò";
+ Text[ korean ] = "³ôÀÌ(~H)";
+ Text[ turkish ] = "~Yükseklik";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_HEIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 51 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_LEFT
+ {
+ Pos = MAP_APPFONT ( 6 , 68 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Rand ~links" ;
+ Text [ English ] = "Left margin" ;
+ Text [ norwegian ] = "Left margin" ;
+ Text [ italian ] = "Margine sinistro" ;
+ Text [ portuguese_brazilian ] = "Margem esquerda" ;
+ Text [ portuguese ] = "Margem esquerda" ;
+ Text [ finnish ] = "Vasen reunus" ;
+ Text [ danish ] = "Margen venstre" ;
+ Text [ french ] = "~Marge gauche" ;
+ Text [ swedish ] = "Vänster margina~l" ;
+ Text [ dutch ] = "~Marge links" ;
+ Text [ spanish ] = "Margen i~zquierdo" ;
+ Text [ english_us ] = "~Left margin" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×ó·½Ò³±ß¾à(~L)";
+ Text[ russian ] = "Ëåâûé êðàé";
+ Text[ polish ] = "Lewy margines";
+ Text[ japanese ] = "¶—]”’(~L)";
+ Text[ chinese_traditional ] = "¥ª¦VÃä®Ø(~L)";
+ Text[ arabic ] = "ÇáåÇãÔ ÇáÃíÓÑ";
+ Text[ greek ] = "Áñéóôåñü ðåñéèþñéï";
+ Text[ korean ] = "¿ÞÂÊ ¿©¹é(~L)";
+ Text[ turkish ] = "S~ol kenar";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_LEFT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 66 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ Minimum = 0 ;
+ First = 0 ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_UPPER
+ {
+ Pos = MAP_APPFONT ( 6 , 83 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Rand ~oben" ;
+ Text [ English ] = "Upper margin" ;
+ Text [ norwegian ] = "Upper margin" ;
+ Text [ italian ] = "Margine superiore" ;
+ Text [ portuguese_brazilian ] = "Margem superior" ;
+ Text [ portuguese ] = "Margem superior" ;
+ Text [ finnish ] = "Oikea reunus" ;
+ Text [ danish ] = "Margen foroven" ;
+ Text [ french ] = "Marge ~supérieure" ;
+ Text [ swedish ] = "~Övre marginal" ;
+ Text [ dutch ] = "~Bovenmarge" ;
+ Text [ spanish ] = "M~argen superior" ;
+ Text [ english_us ] = "~Top margin" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÉÏ·½Ò³±ß¾à(~T)";
+ Text[ russian ] = "Âåðõíèé êðàé";
+ Text[ polish ] = "Margines górny";
+ Text[ japanese ] = "ã—]”’(~T)";
+ Text[ chinese_traditional ] = "¤WÃä®Ø(~T)";
+ Text[ arabic ] = "ÇáåÇãÔ ÇáÚáæí";
+ Text[ greek ] = "¢íù ðåñéèþñéï";
+ Text[ korean ] = "À§ ¿©¹é(~T)";
+ Text[ turkish ] = "Üst kenar";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField FLD_UPPER
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 81 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ Minimum = 0 ;
+ First = 0 ;
+ SpinSize = 10 ;
+ };
+ FixedText TXT_COLUMNS
+ {
+ Pos = MAP_APPFONT ( 6 , 98 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Spalten" ;
+ Text [ English ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "~Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "~Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "~Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "~Kolommen" ;
+ Text [ spanish ] = "Column~as" ;
+ Text [ english_us ] = "~Columns" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÁÐ(~C)";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý(~C)";
+ Text[ chinese_traditional ] = "Äæ(~C)";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­(~C)";
+ Text[ turkish ] = "~Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField FLD_COLUMNS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 96 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ };
+ FixedText TXT_ROWS
+ {
+ Pos = MAP_APPFONT ( 6 , 113 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Zeilen" ;
+ Text [ English ] = "Rows" ;
+ Text [ norwegian ] = "Rows" ;
+ Text [ italian ] = "Righe" ;
+ Text [ portuguese_brazilian ] = "Fileiras" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text [ finnish ] = "~Rivejä" ;
+ Text [ danish ] = "Rækker" ;
+ Text [ french ] = "~Lignes" ;
+ Text [ swedish ] = "~Rader" ;
+ Text [ dutch ] = "~Rijen" ;
+ Text [ spanish ] = "~Filas" ;
+ Text [ english_us ] = "R~ows" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÐÐ(~O)";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s(~Oj";
+ Text[ chinese_traditional ] = "¦æ(~O)";
+ Text[ arabic ] = "ÇáÕÝæÝ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà(~O)";
+ Text[ turkish ] = "~Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField FLD_ROWS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 62 , 111 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ };
+};
+ // String *******************************************************************
+String STR_HDIST
+{
+ Text = "H. Abstand" ;
+ Text [ English ] = "H. distance" ;
+ Text [ norwegian ] = "H. distance" ;
+ Text [ italian ] = "Distanza orizzontale" ;
+ Text [ portuguese_brazilian ] = "Distância h." ;
+ Text [ portuguese ] = "Espaço H." ;
+ Text [ finnish ] = "Vaakaetäi." ;
+ Text [ danish ] = "V. afstand" ;
+ Text [ french ] = "Écart H." ;
+ Text [ swedish ] = "H. avstånd" ;
+ Text [ dutch ] = "H. afstand" ;
+ Text [ spanish ] = "Distancia h." ;
+ Text [ english_us ] = "H. Pitch" ;
+ Text[ chinese_simplified ] = "ˮƽ¼ä¸ô";
+ Text[ russian ] = "Øàã ïî ãîðèçîíò.";
+ Text[ polish ] = "Odstêp poziomy";
+ Text[ japanese ] = "‰¡ŠÔŠu";
+ Text[ chinese_traditional ] = "¤ô¥­¶¡¹j";
+ Text[ arabic ] = "ÇáÎØæÉ ÇáÃÝÞíÉ";
+ Text[ greek ] = "Ïñéæüíôéá áðüóôáóç";
+ Text[ korean ] = "°¡·Î °£°Ý";
+ Text[ turkish ] = "Y. boþluk";
+ Text[ language_user1 ] = " ";
+};
+String STR_VDIST
+{
+ Text = "V. Abstand" ;
+ Text [ English ] = "V. distance" ;
+ Text [ norwegian ] = "V. distance" ;
+ Text [ italian ] = "Distanza verticale" ;
+ Text [ portuguese_brazilian ] = "Distância v." ;
+ Text [ portuguese ] = "Espaço V." ;
+ Text [ finnish ] = "Pystyetäis." ;
+ Text [ danish ] = "L. afstand" ;
+ Text [ french ] = "Écart V." ;
+ Text [ swedish ] = "V. avstånd" ;
+ Text [ dutch ] = "V. afstand" ;
+ Text [ spanish ] = "Distancia v." ;
+ Text [ english_us ] = "V. Pitch" ;
+ Text[ chinese_simplified ] = "´¹Ö±¼ä¸ô";
+ Text[ russian ] = "Øàã ïî âåðòèê.";
+ Text[ polish ] = "Odstêp pionowy";
+ Text[ japanese ] = "cŠÔŠu";
+ Text[ chinese_traditional ] = "««ª½¶¡¹j";
+ Text[ arabic ] = "ÇáÎØæÉ ÇáÑÃÓíÉ";
+ Text[ greek ] = "Êáôáê. áðüóôáóç";
+ Text[ korean ] = "¼¼·Î °£°Ý";
+ Text[ turkish ] = "D. boþluk";
+ Text[ language_user1 ] = " ";
+};
+String STR_WIDTH
+{
+ Text = "Breite" ;
+ Text [ English ] = "Width" ;
+ Text [ norwegian ] = "Bredde " ;
+ Text [ italian ] = "Larghezza" ;
+ Text [ portuguese_brazilian ] = "Largura" ;
+ Text [ portuguese ] = "Largura" ;
+ Text [ finnish ] = "Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "Largeur" ;
+ Text [ swedish ] = "Bredd" ;
+ Text [ dutch ] = "Breedte" ;
+ Text [ spanish ] = "Ancho" ;
+ Text [ english_us ] = "Width" ;
+ Text[ chinese_simplified ] = "¿í";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "SzerokoϾ";
+ Text[ japanese ] = "•";
+ Text[ chinese_traditional ] = "¼e";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ";
+ Text[ turkish ] = "Geniþlik";
+ Text[ language_user1 ] = " ";
+};
+String STR_HEIGHT
+{
+ Text = "Höhe" ;
+ Text [ English ] = "Height" ;
+ Text [ norwegian ] = "Høyde " ;
+ Text [ italian ] = "Altezza" ;
+ Text [ portuguese_brazilian ] = "Altura" ;
+ Text [ portuguese ] = "Altura" ;
+ Text [ finnish ] = "Korkeus" ;
+ Text [ danish ] = "Højde" ;
+ Text [ french ] = "Hauteur" ;
+ Text [ swedish ] = "Höjd" ;
+ Text [ dutch ] = "Hoogte" ;
+ Text [ spanish ] = "Altura" ;
+ Text [ english_us ] = "Height" ;
+ Text[ chinese_simplified ] = "¸ß";
+ Text[ russian ] = "Âûñîòà";
+ Text[ polish ] = "WysokoϾ";
+ Text[ japanese ] = "‚‚³";
+ Text[ chinese_traditional ] = "°ª";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ";
+ Text[ greek ] = "¾øïò";
+ Text[ korean ] = "³ôÀÌ";
+ Text[ turkish ] = "Yükseklik";
+ Text[ language_user1 ] = " ";
+};
+String STR_LEFT
+{
+ Text = "Rand links" ;
+ Text [ English ] = "Left margin" ;
+ Text [ norwegian ] = "Left margin" ;
+ Text [ italian ] = "Margine sinistro" ;
+ Text [ portuguese_brazilian ] = "Margem esquerda" ;
+ Text [ portuguese ] = "Margem esquerda" ;
+ Text [ finnish ] = "Vasen reunus" ;
+ Text [ danish ] = "Margen venstre" ;
+ Text [ french ] = "Marge gauche" ;
+ Text [ swedish ] = "Vänster marginal" ;
+ Text [ dutch ] = "Linker marge" ;
+ Text [ spanish ] = "Margen izquierdo" ;
+ Text [ english_us ] = "Left margin" ;
+ Text[ chinese_simplified ] = "×ó·½Ò³±ß¾à";
+ Text[ russian ] = "Ëåâûé êðàé";
+ Text[ polish ] = "Lewy margines";
+ Text[ japanese ] = "¶—]”’";
+ Text[ chinese_traditional ] = "¥ª¦VÃä®Ø";
+ Text[ arabic ] = "ÇáåÇãÔ ÇáÃíÓÑ";
+ Text[ greek ] = "Áñéóôåñü ðåñéèþñéï";
+ Text[ korean ] = "¿À¸¥ÂÊ ¿©¹é";
+ Text[ turkish ] = "Sol kenar";
+ Text[ language_user1 ] = " ";
+};
+String STR_UPPER
+{
+ Text = "Rand oben" ;
+ Text [ English ] = "Upper margin" ;
+ Text [ norwegian ] = "Upper margin" ;
+ Text [ italian ] = "Margine superiore" ;
+ Text [ portuguese_brazilian ] = "Margem superior" ;
+ Text [ portuguese ] = "Margem superior" ;
+ Text [ finnish ] = "Oikea reunus" ;
+ Text [ danish ] = "Margen foroven" ;
+ Text [ french ] = "Marge supérieure" ;
+ Text [ swedish ] = "Övre marginal" ;
+ Text [ dutch ] = "Bovenmarge" ;
+ Text [ spanish ] = "Margen superior" ;
+ Text [ english_us ] = "Top margin" ;
+ Text[ chinese_simplified ] = "ÉÏ·½Ò³±ß¾à";
+ Text[ russian ] = "Âåðõíèé êðàé";
+ Text[ polish ] = "Górny margines";
+ Text[ japanese ] = "ã—]”’";
+ Text[ chinese_traditional ] = "¤WÃä®Ø";
+ Text[ arabic ] = "ÇáåÇãÔ ÇáÚáæí";
+ Text[ greek ] = "¢íù ðåñéèþñéï";
+ Text[ korean ] = "À§ ¿©¹é";
+ Text[ turkish ] = "Üst kenar";
+ Text[ language_user1 ] = " ";
+};
+String STR_COLS
+{
+ Text = "Spalten" ;
+ Text [ English ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+};
+String STR_ROWS
+{
+ Text = "Zeilen" ;
+ Text [ English ] = "Rows" ;
+ Text [ norwegian ] = "Rows" ;
+ Text [ italian ] = "Righe" ;
+ Text [ portuguese_brazilian ] = "Fileiras" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text [ finnish ] = "~Rivejä" ;
+ Text [ danish ] = "Rækker" ;
+ Text [ french ] = "Lignes" ;
+ Text [ swedish ] = "Rader" ;
+ Text [ dutch ] = "Rijen" ;
+ Text [ spanish ] = "Filas" ;
+ Text [ english_us ] = "Rows" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÇáÕÝæÝ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/envelp/labimg.cxx b/sw/source/ui/envelp/labimg.cxx
new file mode 100644
index 000000000000..06a4e77a3168
--- /dev/null
+++ b/sw/source/ui/envelp/labimg.cxx
@@ -0,0 +1,594 @@
+/*************************************************************************
+ *
+ * $RCSfile: labimg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+#ifndef _RESID_HXX //autogen
+#include <vcl/resid.hxx>
+#endif
+
+#ifndef _SVX_ADRITEM_HXX
+#include <svx/adritem.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "swtypes.hxx"
+#include "cfgid.h"
+#include "labimg.hxx"
+#include "cfgstr.hrc"
+
+#define LAB_VERSION 1
+#define LAB_VERSION2 2
+#define LAB_VERSION3 3
+#define LAB_VERSION4 4
+#define LAB_VERSION5 5
+#define LAB_VERSION6 6
+
+#define CUR_LAB_VERSION LAB_VERSION6
+SwLabItem::SwLabItem() :
+
+ SfxPoolItem(FN_LABEL),
+ nCol (1),
+ nRow (1),
+ lLeft (0),
+ lUpper(0),
+ nCols (1),
+ nRows (1)
+{
+ bAddr = bCont = bSynchron = FALSE;
+ bPage = TRUE;
+ lHDist =
+ lVDist =
+ lWidth =
+ lHeight = 5669; // 10 cm
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+SwLabItem::SwLabItem(const SwLabItem& rItem) :
+ SfxPoolItem(FN_LABEL)
+{
+ *this = rItem;
+}
+
+// ----------------------------------------------------------------------------
+
+
+
+SwLabItem& SwLabItem::operator =(const SwLabItem& rItem)
+{
+ bAddr = rItem.bAddr;
+ aWriting = rItem.aWriting;
+ bCont = rItem.bCont;
+ sDBName = rItem.sDBName;
+ aLstMake = rItem.aLstMake;
+ aLstType = rItem.aLstType;
+ aMake = rItem.aMake;
+ aType = rItem.aType;
+ bPage = rItem.bPage;
+ bSynchron = rItem.bSynchron;
+ aBin = rItem.aBin;
+ nCol = rItem.nCol;
+ nRow = rItem.nRow;
+ lHDist = rItem.lHDist;
+ lVDist = rItem.lVDist;
+ lWidth = rItem.lWidth;
+ lHeight = rItem.lHeight;
+ lLeft = rItem.lLeft;
+ lUpper = rItem.lUpper;
+ nCols = rItem.nCols;
+ nRows = rItem.nRows;
+ aPrivFirstName = rItem.aPrivFirstName;
+ aPrivName = rItem.aPrivName;
+ aPrivShortCut = rItem.aPrivShortCut;
+ aPrivFirstName2 = rItem.aPrivFirstName2;
+ aPrivName2 = rItem.aPrivName2;
+ aPrivShortCut2 = rItem.aPrivShortCut2;
+ aPrivStreet = rItem.aPrivStreet;
+ aPrivZip = rItem.aPrivZip;
+ aPrivCity = rItem.aPrivCity;
+ aPrivCountry = rItem.aPrivCountry;
+ aPrivState = rItem.aPrivState;
+ aPrivTitle = rItem.aPrivTitle;
+ aPrivProfession = rItem.aPrivProfession;
+ aPrivPhone = rItem.aPrivPhone;
+ aPrivMobile = rItem.aPrivMobile;
+ aPrivFax = rItem.aPrivFax;
+ aPrivWWW = rItem.aPrivWWW;
+ aPrivMail = rItem.aPrivMail;
+ aCompCompany = rItem.aCompCompany;
+ aCompCompanyExt = rItem.aCompCompanyExt;
+ aCompSlogan = rItem.aCompSlogan;
+ aCompStreet = rItem.aCompStreet;
+ aCompZip = rItem.aCompZip;
+ aCompCity = rItem.aCompCity;
+ aCompCountry = rItem.aCompCountry;
+ aCompState = rItem.aCompState;
+ aCompPosition = rItem.aCompPosition;
+ aCompPhone = rItem.aCompPhone;
+ aCompMobile = rItem.aCompMobile;
+ aCompFax = rItem.aCompFax;
+ aCompWWW = rItem.aCompWWW;
+ aCompMail = rItem.aCompMail;
+ sGlossaryGroup = rItem.sGlossaryGroup;
+ sGlossaryBlockName = rItem.sGlossaryBlockName;
+ return *this;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+int SwLabItem::operator ==(const SfxPoolItem& rItem) const
+{
+ const SwLabItem& rLab = (const SwLabItem&) rItem;
+
+ return bAddr == rLab.bAddr &&
+ bCont == rLab.bCont &&
+ bPage == rLab.bPage &&
+ bSynchron == rLab.bSynchron &&
+ aBin == rLab.aBin &&
+ nCol == rLab.nCol &&
+ nRow == rLab.nRow &&
+ lHDist == rLab.lHDist &&
+ lVDist == rLab.lVDist &&
+ lWidth == rLab.lWidth &&
+ lHeight == rLab.lHeight &&
+ lLeft == rLab.lLeft &&
+ lUpper == rLab.lUpper &&
+ nCols == rLab.nCols &&
+ nRows == rLab.nRows &&
+ aWriting == rLab.aWriting&&
+ aMake == rLab.aMake &&
+ aType == rLab.aType &&
+ aLstMake == rLab.aLstMake&&
+ aLstType == rLab.aLstType&&
+ sDBName == rLab.sDBName &&
+ aPrivFirstName == rLab.aPrivFirstName&&
+ aPrivName == rLab.aPrivName&&
+ aPrivShortCut == rLab.aPrivShortCut&&
+ aPrivFirstName2 == rLab.aPrivFirstName2&&
+ aPrivName2 == rLab.aPrivName2&&
+ aPrivShortCut2 == rLab.aPrivShortCut2&&
+ aPrivStreet == rLab.aPrivStreet&&
+ aPrivZip == rLab.aPrivZip&&
+ aPrivCity == rLab.aPrivCity&&
+ aPrivCountry == rLab.aPrivCountry&&
+ aPrivState == rLab.aPrivState&&
+ aPrivTitle == rLab.aPrivTitle&&
+ aPrivProfession == rLab.aPrivProfession&&
+ aPrivPhone == rLab.aPrivPhone&&
+ aPrivMobile == rLab.aPrivMobile&&
+ aPrivFax == rLab.aPrivFax&&
+ aPrivWWW == rLab.aPrivWWW&&
+ aPrivMail == rLab.aPrivMail&&
+ aCompCompany == rLab.aCompCompany&&
+ aCompCompanyExt == rLab.aCompCompanyExt&&
+ aCompSlogan == rLab.aCompSlogan&&
+ aCompStreet == rLab.aCompStreet&&
+ aCompZip == rLab.aCompZip&&
+ aCompCity == rLab.aCompCity&&
+ aCompCountry == rLab.aCompCountry&&
+ aCompState == rLab.aCompState&&
+ aCompPosition == rLab.aCompPosition&&
+ aCompPhone == rLab.aCompPhone&&
+ aCompMobile == rLab.aCompMobile&&
+ aCompFax == rLab.aCompFax&&
+ aCompWWW == rLab.aCompWWW&&
+ aCompMail == rLab.aCompMail &&
+ sGlossaryGroup == rLab.sGlossaryGroup &&
+ sGlossaryBlockName == rLab.sGlossaryBlockName;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxPoolItem* SwLabItem::Clone(SfxItemPool*) const
+{
+ return new SwLabItem(*this);
+}
+
+// ----------------------------------------------------------------------------
+SwLabCfgItem::SwLabCfgItem() :
+ SfxConfigItem(CFG_LAB_ITEM)
+{
+}
+
+// ----------------------------------------------------------------------------
+
+int SwLabItem::Load (SvStream& rStrm, USHORT nVersion, BOOL bLabel)
+{
+ unsigned char b;
+ USHORT i;
+ long l;
+
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ rStrm >> b; bAddr = (BOOL) b;
+ rStrm.ReadByteString(aWriting, eEncoding);
+ rStrm >> b; bCont = (BOOL) b;
+ rStrm.ReadByteString(aMake, eEncoding);
+ rStrm.ReadByteString(aType, eEncoding);
+ rStrm >> b; bPage = (BOOL) b;
+ rStrm.ReadByteString(aBin, eEncoding);
+ rStrm >> i; nCol = i;
+ rStrm >> i; nRow = i;
+ rStrm >> l; lHDist = l;
+ rStrm >> l; lVDist = l;
+ rStrm >> l; lWidth = l;
+ rStrm >> l; lHeight = l;
+ rStrm >> l; lLeft = l;
+ rStrm >> l; lUpper = l;
+ rStrm >> i; nCols = i;
+ rStrm >> i; nRows = i;
+
+ if ( nVersion >= LAB_VERSION2 )
+ {
+ rStrm.ReadByteString(aLstMake, eEncoding);
+ rStrm.ReadByteString(aLstType, eEncoding);
+ }
+ if ( nVersion >= LAB_VERSION3 )
+ rStrm.ReadByteString(sDBName, eEncoding);
+
+ if ( nVersion >= LAB_VERSION4 )
+ {
+ rStrm >> b;
+ bSynchron = (BOOL)b;
+ }
+ if(!bLabel)
+ {
+ rStrm.ReadByteString(aPrivFirstName, eEncoding);
+ rStrm.ReadByteString(aPrivName, eEncoding);
+ rStrm.ReadByteString(aPrivShortCut, eEncoding);
+ if ( nVersion >= LAB_VERSION6 )
+ {
+ rStrm.ReadByteString(aPrivFirstName2, eEncoding);
+ rStrm.ReadByteString(aPrivName2, eEncoding);
+ rStrm.ReadByteString(aPrivShortCut2, eEncoding);
+ }
+ rStrm.ReadByteString(aPrivStreet, eEncoding);
+ rStrm.ReadByteString(aPrivZip, eEncoding);
+ rStrm.ReadByteString(aPrivCity, eEncoding);
+ rStrm.ReadByteString(aPrivCountry, eEncoding);
+ rStrm.ReadByteString(aPrivState , eEncoding);
+ rStrm.ReadByteString(aPrivTitle , eEncoding);
+ rStrm.ReadByteString(aPrivProfession , eEncoding);
+ rStrm.ReadByteString(aPrivPhone , eEncoding);
+ rStrm.ReadByteString(aPrivMobile , eEncoding);
+ rStrm.ReadByteString(aPrivFax , eEncoding);
+ rStrm.ReadByteString(aPrivWWW , eEncoding);
+ rStrm.ReadByteString(aPrivMail , eEncoding);
+ rStrm.ReadByteString(aCompCompany , eEncoding);
+ rStrm.ReadByteString(aCompCompanyExt , eEncoding);
+ rStrm.ReadByteString(aCompSlogan , eEncoding);
+ rStrm.ReadByteString(aCompStreet , eEncoding);
+ rStrm.ReadByteString(aCompZip , eEncoding);
+ rStrm.ReadByteString(aCompCity , eEncoding);
+ rStrm.ReadByteString(aCompCountry , eEncoding);
+ rStrm.ReadByteString(aCompState , eEncoding);
+ rStrm.ReadByteString(aCompPosition , eEncoding);
+ rStrm.ReadByteString(aCompPhone , eEncoding);
+ rStrm.ReadByteString(aCompMobile , eEncoding);
+ rStrm.ReadByteString(aCompFax , eEncoding);
+ rStrm.ReadByteString(aCompWWW , eEncoding);
+ rStrm.ReadByteString(aCompMail , eEncoding);
+
+ rStrm.ReadByteString(sGlossaryGroup , eEncoding);
+ rStrm.ReadByteString(sGlossaryBlockName , eEncoding);
+ }
+ return SfxConfigItem::ERR_OK;
+}
+// ----------------------------------------------------------------------------
+
+BOOL SwLabItem::Store(SvStream& rStrm, BOOL bLabel)
+{
+ rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ rStrm << (unsigned char) bAddr;
+ rStrm.WriteByteString(aWriting, eEncoding);
+ rStrm << (unsigned char) bCont;
+ rStrm.WriteByteString(aMake, eEncoding);
+ rStrm.WriteByteString(aType, eEncoding);
+ rStrm << (unsigned char) bPage;
+ rStrm.WriteByteString(aBin, eEncoding);
+ rStrm << nCol;
+ rStrm << nRow;
+ rStrm << lHDist;
+ rStrm << lVDist;
+ rStrm << lWidth;
+ rStrm << lHeight;
+ rStrm << lLeft;
+ rStrm << lUpper;
+ rStrm << nCols;
+ rStrm << nRows;
+ rStrm.WriteByteString(aLstMake, eEncoding);
+ rStrm.WriteByteString(aLstType, eEncoding);
+ rStrm.WriteByteString(sDBName, eEncoding);
+ rStrm << bSynchron;
+ if(!bLabel)
+ {
+ rStrm.WriteByteString(aPrivFirstName, eEncoding);
+ rStrm.WriteByteString(aPrivName, eEncoding);
+ rStrm.WriteByteString(aPrivShortCut, eEncoding);
+ rStrm.WriteByteString(aPrivFirstName2, eEncoding);
+ rStrm.WriteByteString(aPrivName2, eEncoding);
+ rStrm.WriteByteString(aPrivShortCut2, eEncoding);
+ rStrm.WriteByteString(aPrivStreet, eEncoding);
+ rStrm.WriteByteString(aPrivZip, eEncoding);
+ rStrm.WriteByteString(aPrivCity, eEncoding);
+ rStrm.WriteByteString(aPrivCountry, eEncoding);
+ rStrm.WriteByteString(aPrivState, eEncoding);
+ rStrm.WriteByteString(aPrivTitle, eEncoding);
+ rStrm.WriteByteString(aPrivProfession, eEncoding);
+ rStrm.WriteByteString(aPrivPhone, eEncoding);
+ rStrm.WriteByteString(aPrivMobile, eEncoding);
+ rStrm.WriteByteString(aPrivFax, eEncoding);
+ rStrm.WriteByteString(aPrivWWW, eEncoding);
+ rStrm.WriteByteString(aPrivMail, eEncoding);
+ rStrm.WriteByteString(aCompCompany, eEncoding);
+ rStrm.WriteByteString(aCompCompanyExt, eEncoding);
+ rStrm.WriteByteString(aCompSlogan, eEncoding);
+ rStrm.WriteByteString(aCompStreet, eEncoding);
+ rStrm.WriteByteString(aCompZip, eEncoding);
+ rStrm.WriteByteString(aCompCity, eEncoding);
+ rStrm.WriteByteString(aCompCountry, eEncoding);
+ rStrm.WriteByteString(aCompState, eEncoding);
+ rStrm.WriteByteString(aCompPosition, eEncoding);
+ rStrm.WriteByteString(aCompPhone, eEncoding);
+ rStrm.WriteByteString(aCompMobile, eEncoding);
+ rStrm.WriteByteString(aCompFax, eEncoding);
+ rStrm.WriteByteString(aCompWWW, eEncoding);
+ rStrm.WriteByteString(aCompMail, eEncoding);
+
+ rStrm.WriteByteString(sGlossaryGroup, eEncoding);
+ rStrm.WriteByteString(sGlossaryBlockName, eEncoding);
+ }
+
+ return SfxConfigItem::ERR_OK;
+}
+// ----------------------------------------------------------------------------
+int SwLabCfgItem::Load(SvStream& rStrm)
+{
+ USHORT nVersion;
+ rStrm >> nVersion;
+
+ if( nVersion >= LAB_VERSION )
+ {
+ aLabItem.Load(rStrm, nVersion, TRUE);
+ if(LAB_VERSION5 <= nVersion)
+ aBusinessItem.Load(rStrm, nVersion, FALSE);
+
+ SetDefault(FALSE);
+
+ return SfxConfigItem::ERR_OK;
+ }
+ else
+ return SfxConfigItem::WARNING_VERSION;
+}
+
+BOOL SwLabCfgItem::Store(SvStream& rStrm)
+{
+ rStrm << (USHORT)CUR_LAB_VERSION;
+ aLabItem.Store(rStrm, TRUE);
+ aBusinessItem.Store(rStrm, FALSE);
+ return SfxConfigItem::ERR_OK;
+}
+// ----------------------------------------------------------------------------
+void SwLabCfgItem::UseDefault()
+{
+ aLabItem = SwLabItem();
+ aBusinessItem = SwLabItem();
+ //Fill item with user data
+ SvxAddressItem aAdr( pPathFinder->GetAddress() );
+
+ aBusinessItem.aPrivFirstName = aAdr.GetFirstName();
+ aBusinessItem.aPrivName = aAdr.GetName();
+ aBusinessItem.aPrivShortCut = aAdr.GetShortName();
+ aBusinessItem.aCompCompany = aAdr.GetToken( ADDRESS_COMPANY );
+ aBusinessItem.aCompStreet = aBusinessItem.aPrivStreet = aAdr.GetToken( ADDRESS_STREET);
+
+ aBusinessItem.aCompCountry = aBusinessItem.aPrivCountry = aAdr.GetToken( ADDRESS_COUNTRY);
+ aBusinessItem.aCompZip = aBusinessItem.aPrivZip= aAdr.GetToken( ADDRESS_PLZ );
+ aBusinessItem.aCompCity = aBusinessItem.aPrivCity = aAdr.GetToken( ADDRESS_CITY );
+ aBusinessItem.aPrivTitle = aAdr.GetToken( ADDRESS_TITLE );
+ aBusinessItem.aCompPosition = aAdr.GetToken( ADDRESS_POSITION );
+ aBusinessItem.aPrivPhone = aAdr.GetToken( ADDRESS_TEL_PRIVATE );
+ aBusinessItem.aCompPhone = aAdr.GetToken( ADDRESS_TEL_COMPANY );
+ aBusinessItem.aCompFax = aBusinessItem.aPrivFax = aAdr.GetToken( ADDRESS_FAX );
+ aBusinessItem.aCompMail = aBusinessItem.aPrivMail = aAdr.GetToken( ADDRESS_EMAIL );
+ aBusinessItem.aCompState = aBusinessItem.aPrivState = aAdr.GetToken( ADDRESS_STATE );
+ aBusinessItem.bSynchron = TRUE;
+
+ SfxConfigItem::UseDefault();
+}
+// ----------------------------------------------------------------------------
+String SwLabCfgItem::GetName() const
+{
+ return SW_RESSTR(STR_CFG_LABIMG);
+}
+
+
+
+/*
+$Log: not supported by cvs2svn $
+Revision 1.38 2000/09/18 16:05:26 willem.vandorp
+OpenOffice header added.
+
+Revision 1.37 2000/06/26 16:32:15 jp
+have to change: enums of AddressToken
+
+Revision 1.36 2000/05/26 07:21:29 os
+old SW Basic API Slots removed
+
+Revision 1.35 2000/04/18 15:31:35 os
+UNICODE
+
+Revision 1.34 2000/02/11 14:45:49 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.33 2000/01/11 13:26:13 os
+#71720# business cards synchronized by default
+
+Revision 1.32 1999/12/07 16:34:13 os
+#70355##70559# SHORTCUT->INITIALS; second private name
+
+Revision 1.31 1999/09/30 07:53:06 os
+Label config item and LabItem contain business information
+
+Revision 1.30 1998/03/14 16:06:50 OM
+Gelinkte Etiketten
+
+
+ Rev 1.29 14 Mar 1998 17:06:50 OM
+ Gelinkte Etiketten
+
+ Rev 1.28 24 Nov 1997 11:52:10 MA
+ includes
+
+ Rev 1.27 03 Nov 1997 13:17:14 MA
+ precomp entfernt
+
+ Rev 1.26 08 Aug 1997 17:29:34 OM
+ Headerfile-Umstellung
+
+ Rev 1.25 18 Nov 1996 10:45:48 SWG
+ includes
+
+ Rev 1.24 14 Nov 1996 15:24:44 TRI
+ includes
+
+ Rev 1.23 11 Nov 1996 09:44:16 MA
+ ResMgr
+
+ Rev 1.22 26 Jul 1996 20:36:40 MA
+ includes
+
+ Rev 1.21 28 Jun 1996 10:10:52 OS
+ UseDefault: Basisklasse rufen
+
+ Rev 1.20 06 Jun 1996 12:59:42 OM
+ Datenbankname merken
+
+ Rev 1.19 27 Nov 1995 18:55:40 OS
+ Umstellung 303a
+
+ Rev 1.18 24 Nov 1995 16:59:40 OM
+ PCH->PRECOMPILED
+
+ Rev 1.17 16 Nov 1995 18:37:46 OS
+ neu: Get/SetVariable, nicht impl.
+
+ Rev 1.16 21 Sep 1995 00:40:56 JP
+ Bug 19511: VersionsNummer im richtigen Format aus dem Stream lesen (int <-> USHORT!!!)
+
+ Rev 1.15 15 Sep 1995 21:14:22 OS
+ add: cfgstr.hrc
+
+ Rev 1.14 15 Sep 1995 12:41:00 OS
+ GetName() implementiert
+
+ Rev 1.13 04 Sep 1995 13:53:58 HJS
+ add: #include <sbx.hxx>
+
+ Rev 1.12 09 Aug 1995 18:59:46 AMA
+ kein GetPresentation
+
+ Rev 1.11 07 Aug 1995 18:19:46 AMA
+ Umbau: GetValueText -> GetPresentation
+
+ Rev 1.10 30 Jul 1995 11:25:30 MA
+ chg: Letze Einstellung merken fuer Label
+
+ Rev 1.9 10 Jul 1995 09:52:36 MA
+ LabelDlg optimiert und etwas aufgeraeumt.
+
+ Rev 1.8 24 May 1995 18:17:14 ER
+ Segmentierung
+
+ Rev 1.7 17 Mar 1995 17:10:30 PK
+ geht immer weiter
+
+ Rev 1.6 15 Mar 1995 13:27:04 PK
+ geht immer weiter
+
+ Rev 1.5 06 Mar 1995 00:08:28 PK
+ linkbarer envelp-zustand
+
+ Rev 1.4 20 Feb 1995 19:39:52 PK
+ erstma eingecheckt
+
+ Rev 1.3 09 Jan 1995 16:57:48 ER
+ del: envelp hrc
+
+*/
+
diff --git a/sw/source/ui/envelp/labimp.hxx b/sw/source/ui/envelp/labimp.hxx
new file mode 100644
index 000000000000..9f8ae92f7595
--- /dev/null
+++ b/sw/source/ui/envelp/labimp.hxx
@@ -0,0 +1,456 @@
+/*************************************************************************
+ *
+ * $RCSfile: labimp.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _LABIMP_HXX
+#define _LABIMP_HXX
+
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SVEDIT_HXX //autogen
+#include <svtools/svmedit.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_
+#include <com/sun/star/frame/XController.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTCURSOR_HPP_
+#include <com/sun/star/text/XTextCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XWORDCURSOR_HPP_
+#include <com/sun/star/text/XWordCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XPARAGRAPHCURSOR_HPP_
+#include <com/sun/star/text/XParagraphCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XPAGECURSOR_HPP_
+#include <com/sun/star/text/XPageCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XSENTENCECURSOR_HPP_
+#include <com/sun/star/text/XSentenceCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XFILEDIALOG_HPP_
+#include <com/sun/star/awt/XFileDialog.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTEXTCOMPONENT_HPP_
+#include <com/sun/star/awt/XTextComponent.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XLISTBOX_HPP_
+#include <com/sun/star/awt/XListBox.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XPROGRESSMONITOR_HPP_
+#include <com/sun/star/awt/XProgressMonitor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_TEXTALIGN_HPP_
+#include <com/sun/star/awt/TextAlign.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XSCROLLBAR_HPP_
+#include <com/sun/star/awt/XScrollBar.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XVCLCONTAINERPEER_HPP_
+#include <com/sun/star/awt/XVclContainerPeer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTABCONTROLLERMODEL_HPP_
+#include <com/sun/star/awt/XTabControllerModel.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XMESSAGEBOX_HPP_
+#include <com/sun/star/awt/XMessageBox.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTEXTEDITFIELD_HPP_
+#include <com/sun/star/awt/XTextEditField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_STYLE_HPP_
+#include <com/sun/star/awt/Style.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTIMEFIELD_HPP_
+#include <com/sun/star/awt/XTimeField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XVCLWINDOWPEER_HPP_
+#include <com/sun/star/awt/XVclWindowPeer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCONTROLMODEL_HPP_
+#include <com/sun/star/awt/XControlModel.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XSPINFIELD_HPP_
+#include <com/sun/star/awt/XSpinField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XUNOCONTROLCONTAINER_HPP_
+#include <com/sun/star/awt/XUnoControlContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTEXTLAYOUTCONSTRAINS_HPP_
+#include <com/sun/star/awt/XTextLayoutConstrains.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XNUMERICFIELD_HPP_
+#include <com/sun/star/awt/XNumericField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XBUTTON_HPP_
+#include <com/sun/star/awt/XButton.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTEXTAREA_HPP_
+#include <com/sun/star/awt/XTextArea.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XIMAGEBUTTON_HPP_
+#include <com/sun/star/awt/XImageButton.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XFIXEDTEXT_HPP_
+#include <com/sun/star/awt/XFixedText.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCONTROLCONTAINER_HPP_
+#include <com/sun/star/awt/XControlContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XDIALOG_HPP_
+#include <com/sun/star/awt/XDialog.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_SCROLLBARORIENTATION_HPP_
+#include <com/sun/star/awt/ScrollBarOrientation.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XRADIOBUTTON_HPP_
+#include <com/sun/star/awt/XRadioButton.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCURRENCYFIELD_HPP_
+#include <com/sun/star/awt/XCurrencyField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XPATTERNFIELD_HPP_
+#include <com/sun/star/awt/XPatternField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_VCLWINDOWPEERATTRIBUTE_HPP_
+#include <com/sun/star/awt/VclWindowPeerAttribute.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XTABCONTROLLER_HPP_
+#include <com/sun/star/awt/XTabController.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XVCLCONTAINER_HPP_
+#include <com/sun/star/awt/XVclContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XDATEFIELD_HPP_
+#include <com/sun/star/awt/XDateField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCOMBOBOX_HPP_
+#include <com/sun/star/awt/XComboBox.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCONTROL_HPP_
+#include <com/sun/star/awt/XControl.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCHECKBOX_HPP_
+#include <com/sun/star/awt/XCheckBox.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_MESSAGEBOXCOMMAND_HPP_
+#include <com/sun/star/awt/MessageBoxCommand.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XLAYOUTCONSTRAINS_HPP_
+#include <com/sun/star/awt/XLayoutConstrains.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XPROGRESSBAR_HPP_
+#include <com/sun/star/awt/XProgressBar.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _SVTREEBOX_HXX
+#include <svtools/svtreebx.hxx>
+#endif
+
+#include "label.hxx"
+#include "labimg.hxx"
+
+#define GETFLDVAL(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP))
+#define SETFLDVAL(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP)
+
+class SwNewDBMgr;
+
+class SwLabRec
+{
+ long GetLong(const String& rStr, MetricField& rField);
+
+public:
+ SwLabRec() {}
+ SwLabRec( String& rStr, MetricField& rField );
+
+ String aMake;
+ String aType;
+ long lHDist;
+ long lVDist;
+ long lWidth;
+ long lHeight;
+ long lLeft;
+ long lUpper;
+ sal_uInt16 nCols;
+ sal_uInt16 nRows;
+ sal_Bool bCont;
+};
+
+/* --------------------------------------------------
+
+ --------------------------------------------------*/
+SV_DECL_PTRARR_DEL( SwLabRecs, SwLabRec*, 110, 10 );
+
+class SwLabPage : public SfxTabPage
+{
+ SwNewDBMgr* pNewDBMgr;
+ String sActDBName;
+ SwLabItem aItem;
+
+ FixedText aWritingText;
+ CheckBox aAddrBox;
+ MultiLineEdit aWritingEdit;
+ FixedText aDatabaseFT;
+ ListBox aDatabaseLB;
+ FixedText aTableFT;
+ ListBox aTableLB;
+ ImageButton aInsertBT;
+ FixedText aDBFieldFT;
+ ListBox aDBFieldLB;
+// PushButton aDatabaseButton;
+ GroupBox aWritingGroup;
+
+ RadioButton aContButton;
+ RadioButton aSheetButton;
+ FixedText aMakeText;
+ ListBox aMakeBox;
+ FixedText aTypeText;
+ ListBox aTypeBox;
+ FixedInfo aFormatInfo;
+ GroupBox aFormatGroup;
+
+ sal_Bool m_bLabel;
+
+ SwLabPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwLabPage();
+
+ DECL_LINK( AddrHdl, Button * );
+ DECL_LINK( DatabaseHdl, ListBox *pListBox );
+// DECL_LINK( DatabaseButtonHdl, Button * );
+ DECL_LINK( FieldHdl, Button * );
+ DECL_LINK( PageHdl, Button * );
+ DECL_LINK( MakeHdl, ListBox * );
+ DECL_LINK( TypeHdl, ListBox * );
+
+ void DisplayFormat ();
+ SwLabRec* GetSelectedEntryPos();
+
+public:
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ void FillItem(SwLabItem& rItem);
+ virtual sal_Bool FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+
+ SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
+
+ void SetToBusinessCard();
+
+ void InitDatabaseBox();
+ inline void SetNewDBMgr(SwNewDBMgr* pDBMgr) { pNewDBMgr = pDBMgr; }
+ inline SwNewDBMgr* GetNewDBMgr() const { return pNewDBMgr; }
+};
+
+/* -----------------08.07.99 13:48-------------------
+
+ --------------------------------------------------*/
+class SwOneExampleFrame;
+class SwVisitingCardPage : public SfxTabPage
+{
+ SvTreeListBox aAutoTextLB;
+ FixedText aAutoTextGroupFT;
+ ListBox aAutoTextGroupLB;
+
+ GroupBox aContentGB;
+
+ Window aExampleWIN;
+ GroupBox aExampleGB;
+
+ String sVisCardGroup;
+ String sTempURL;
+
+ SwLabItem aLabItem;
+
+ SwOneExampleFrame* pExampleFrame;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > _xAutoText;
+
+ DECL_LINK( AutoTextSelectHdl, void* );
+ DECL_LINK( FrameControlInitializedHdl, void* );
+
+ void InitFrameControl();
+ void UpdateFields();
+
+ SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwVisitingCardPage();
+
+public:
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ virtual sal_Bool FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+};
+/* -----------------29.09.99 08:51-------------------
+
+ --------------------------------------------------*/
+class SwPrivateDataPage : public SfxTabPage
+{
+ GroupBox aDataGB;
+
+ FixedText aNameFT;
+ Edit aFirstNameED;
+ Edit aNameED;
+ Edit aShortCutED;
+
+ FixedText aName2FT;
+ Edit aFirstName2ED;
+ Edit aName2ED;
+ Edit aShortCut2ED;
+
+ FixedText aStreetFT;
+ Edit aStreetED;
+ FixedText aZipCityFT;
+ Edit aZipED;
+ Edit aCityED;
+ FixedText aCountryStateFT;
+ Edit aCountryED;
+ Edit aStateED;
+ FixedText aTitleProfessionFT;
+ Edit aTitleED;
+ Edit aProfessionED;
+ FixedText aPhoneFT;
+ Edit aPhoneED;
+ Edit aMobilePhoneED;
+ FixedText aFaxFT;
+ Edit aFaxED;
+ FixedText aWWWMailFT;
+ Edit aHomePageED;
+ Edit aMailED;
+
+ SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwPrivateDataPage();
+
+public:
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ virtual sal_Bool FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+};
+/* -----------------29.09.99 08:51-------------------
+
+ --------------------------------------------------*/
+class SwBusinessDataPage : public SfxTabPage
+{
+ GroupBox aDataGB;
+ FixedText aCompanyFT;
+ Edit aCompanyED;
+ FixedText aCompanyExtFT;
+ Edit aCompanyExtED;
+ FixedText aSloganFT;
+ Edit aSloganED;
+
+ FixedText aStreetFT;
+ Edit aStreetED;
+ FixedText aZipCityFT;
+ Edit aZipED;
+ Edit aCityED;
+ FixedText aCountryStateFT;
+ Edit aCountryED;
+ Edit aStateED;
+
+ FixedText aPositionFT;
+ Edit aPositionED;
+
+ FixedText aPhoneFT;
+ Edit aPhoneED;
+ Edit aMobilePhoneED;
+ Edit aFaxED;
+
+ FixedText aWWWMailFT;
+ Edit aHomePageED;
+ Edit aMailED;
+
+ SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwBusinessDataPage();
+
+public:
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ virtual sal_Bool FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+};
+
+#endif
+
diff --git a/sw/source/ui/envelp/labprt.cxx b/sw/source/ui/envelp/labprt.cxx
new file mode 100644
index 000000000000..6ea70368a7a6
--- /dev/null
+++ b/sw/source/ui/envelp/labprt.cxx
@@ -0,0 +1,381 @@
+/*************************************************************************
+ *
+ * $RCSfile: labprt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <vcl/system.hxx>
+#ifndef _SV_PRNSETUP_HXX_ //autogen
+#include <svtools/prnsetup.hxx>
+#endif
+#ifndef _SV_PRINT_HXX
+#include <vcl/print.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "label.hxx"
+#include "labprt.hxx"
+#include "labimg.hxx"
+#include "labimp.hxx"
+
+#include "labprt.hrc"
+
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabPrtPage::SwLabPrtPage(Window* pParent, const SfxItemSet& rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_LAB_PRT), rSet),
+
+ pPrinter( 0 ),
+ aPageButton (this, SW_RES(BTN_PAGE )),
+ aSingleButton (this, SW_RES(BTN_SINGLE )),
+ aColText (this, SW_RES(TXT_COL )),
+ aColField (this, SW_RES(FLD_COL )),
+ aRowText (this, SW_RES(TXT_ROW )),
+ aRowField (this, SW_RES(FLD_ROW )),
+ aSynchronCB (this, SW_RES(CB_SYNCHRON)),
+ aGBDontKnow (this, SW_RES(GB_DONTKNOW)),
+ aPrinterInfo (this, SW_RES(INF_PRINTER)),
+ aPrtSetup (this, SW_RES(BTN_PRTSETUP)),
+ aGBPrinter (this, SW_RES(GB_PRINTER ))
+
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ // Handler installieren
+ Link aLk = LINK(this, SwLabPrtPage, CountHdl);
+ aPageButton .SetClickHdl( aLk );
+ aSingleButton.SetClickHdl( aLk );
+
+ aPrtSetup.SetClickHdl( aLk );
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SwLabPrtPage::~SwLabPrtPage()
+{
+ if (pPrinter)
+ delete pPrinter;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+IMPL_LINK( SwLabPrtPage, CountHdl, Button *, pButton )
+{
+ if (pButton == &aPrtSetup)
+ {
+ // Druck-Setup aufrufen
+ if (!pPrinter)
+ pPrinter = new Printer;
+
+ PrinterSetupDialog* pDlg = new PrinterSetupDialog(this );
+ pDlg->SetPrinter(pPrinter);
+ pDlg->Execute();
+ delete pDlg;
+ GrabFocus();
+ aPrinterInfo.SetText(pPrinter->GetName());
+ return 0;
+ }
+ const BOOL bEnable = pButton == &aSingleButton;
+ aColText .Enable(bEnable);
+ aColField.Enable(bEnable);
+ aRowText .Enable(bEnable);
+ aRowField.Enable(bEnable);
+ aSynchronCB.Enable(!bEnable);
+
+ if ( bEnable )
+ aColField.GrabFocus();
+#ifndef PRODUCT
+ else
+ ASSERT( pButton == &aPageButton, "NewButton?" );
+#endif
+ return 0;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+SfxTabPage* SwLabPrtPage::Create(Window* pParent, const SfxItemSet& rSet)
+{
+ return new SwLabPrtPage( pParent, rSet );
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPrtPage::ActivatePage( const SfxItemSet& rSet )
+{
+ Reset(rSet);
+}
+
+// --------------------------------------------------------------------------
+
+
+
+int SwLabPrtPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if ( pSet )
+ FillItemSet(*pSet);
+
+ return TRUE;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPrtPage::FillItem(SwLabItem& rItem)
+{
+ rItem.bPage = aPageButton.IsChecked();
+ rItem.nCol = (USHORT) aColField.GetValue();
+ rItem.nRow = (USHORT) aRowField.GetValue();
+ rItem.bSynchron = aSynchronCB.IsChecked() && aSynchronCB.IsEnabled();
+}
+
+// --------------------------------------------------------------------------
+
+
+
+BOOL SwLabPrtPage::FillItemSet(SfxItemSet& rSet)
+{
+ SwLabItem aItem;
+ GetParent()->GetLabItem(aItem);
+ FillItem(aItem);
+ rSet.Put(aItem);
+
+ return TRUE;
+}
+
+// --------------------------------------------------------------------------
+
+
+
+void SwLabPrtPage::Reset(const SfxItemSet& rSet)
+{
+ SwLabItem aItem;
+ GetParent()->GetLabItem(aItem);
+
+ aColField.SetValue (aItem.nCol);
+ aRowField.SetValue (aItem.nRow);
+
+ if (aItem.bPage)
+ {
+ aPageButton.Check();
+ aPageButton.GetClickHdl().Call(&aPageButton);
+ }
+ else
+ {
+ aSingleButton.GetClickHdl().Call(&aSingleButton);
+ aSingleButton.Check();
+ }
+
+ if (pPrinter)
+ {
+ // Drucker anzeigen
+ aPrinterInfo.SetText(pPrinter->GetName());
+ }
+ else
+ aPrinterInfo.SetText(Printer::GetDefaultPrinterName());
+
+ aColField.SetMax(aItem.nCols);
+ aRowField.SetMax(aItem.nRows);
+
+ aColField.SetLast(aColField.GetMax());
+ aRowField.SetLast(aRowField.GetMax());
+
+ aSynchronCB.Check(aItem.bSynchron);
+}
+
+// --------------------------------------------------------------------------
+/*
+$Log: not supported by cvs2svn $
+Revision 1.37 2000/09/18 16:05:26 willem.vandorp
+OpenOffice header added.
+
+Revision 1.36 2000/03/03 15:17:00 os
+StarView remainders removed
+
+Revision 1.35 2000/02/11 14:45:41 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.34 1998/09/11 10:29:48 OM
+#56319# Richtiges Etikettenformat verwenden
+
+
+ Rev 1.33 11 Sep 1998 12:29:48 OM
+ #56319# Richtiges Etikettenformat verwenden
+
+ Rev 1.32 07 Sep 1998 16:59:32 OM
+ #55930# Einzelnes Etikett an der korrekten Position drucken
+
+ Rev 1.31 14 Mar 1998 17:06:50 OM
+ Gelinkte Etiketten
+
+ Rev 1.30 14 Mar 1998 14:26:48 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.29 14 Mar 1998 14:10:46 OM
+ ExchangeSupport repariert/implementiert
+
+ Rev 1.28 16 Feb 1998 15:35:42 RG
+ ->DOS-Format
+
+ Rev 1.27 24 Nov 1997 11:52:14 MA
+ includes
+
+ Rev 1.26 03 Nov 1997 13:17:10 MA
+ precomp entfernt
+
+ Rev 1.25 01 Oct 1997 10:53:46 TRI
+ PrintDialogumstellung
+
+ Rev 1.24 11 Nov 1996 09:44:18 MA
+ ResMgr
+
+ Rev 1.23 29 Oct 1996 17:59:30 HJS
+ includes
+
+ Rev 1.22 07 Oct 1996 09:33:18 MA
+ Umstellung Enable/Disable
+
+ Rev 1.21 26 Jul 1996 20:36:38 MA
+ includes
+
+ Rev 1.20 28 Jun 1996 16:37:30 HJS
+ includes
+
+ Rev 1.19 06 Feb 1996 15:19:08 JP
+ Link Umstellung 305
+
+ Rev 1.18 25 Jan 1996 16:58:22 OM
+ Dialogfelder richtig initialisieren
+
+ Rev 1.17 08 Dec 1995 18:07:14 OM
+ Drucker im Dtor loeschen
+
+ Rev 1.16 27 Nov 1995 19:36:34 OM
+ HasExchangeSupport->303a
+
+ Rev 1.15 24 Nov 1995 16:59:40 OM
+ PCH->PRECOMPILED
+
+ Rev 1.14 23 Nov 1995 18:03:02 OM
+ Etikettenanzahl richtig initialisieren
+
+ Rev 1.13 13 Nov 1995 13:44:04 MA
+ chg: Link-Cast entfernt
+
+ Rev 1.12 08 Nov 1995 13:48:20 OM
+ Change->Set
+
+ Rev 1.11 04 Aug 1995 18:32:48 OM
+ Umstellung Drucktabpage
+
+ Rev 1.10 03 Aug 1995 18:49:38 OM
+ Umstellung Print-TabPage
+
+ Rev 1.9 13 Jul 1995 13:44:18 MA
+ chg: LabelDlg jetzt ohne vorher ein Dokument zu erzeugen
+
+ Rev 1.8 10 Jul 1995 09:50:20 MA
+ LabelDlg optimiert und etwas aufgeraeumt.
+
+ Rev 1.7 24 May 1995 18:13:48 ER
+ Segmentierung
+
+ Rev 1.6 18 Apr 1995 18:08:34 PK
+ kleine bugfixes
+
+ Rev 1.5 05 Apr 1995 09:27:00 JP
+ Benutzung vom Link-Makro eingeschraenkt
+
+ Rev 1.4 23 Mar 1995 18:33:50 PK
+ geht immer weiter ...
+
+ Rev 1.3 17 Mar 1995 17:10:32 PK
+ geht immer weiter
+
+ Rev 1.2 15 Mar 1995 13:27:08 PK
+ geht immer weiter
+
+ Rev 1.1 06 Mar 1995 02:33:38 PK
+ envelp cebit-fertig
+
+ Rev 1.0 06 Mar 1995 00:08:26 PK
+ linkbarer envelp-zustand
+*/
+
+
+
diff --git a/sw/source/ui/envelp/labprt.hrc b/sw/source/ui/envelp/labprt.hrc
new file mode 100644
index 000000000000..4b79b2335ee8
--- /dev/null
+++ b/sw/source/ui/envelp/labprt.hrc
@@ -0,0 +1,93 @@
+/*************************************************************************
+ *
+ * $RCSfile: labprt.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _LABPRT_HRC
+#define _LABPRT_HRC
+
+// #include *****************************************************************
+
+#include "envelp.hrc"
+
+// Lokale Resourcen *********************************************************
+
+#define BTN_PAGE 1
+#define BTN_SINGLE 2
+#define INF_PRINTER 3
+#define TXT_COL 4
+#define FLD_COL 5
+#define TXT_ROW 6
+#define FLD_ROW 7
+#define BTN_PRTSETUP 8
+#define GB_PRINTER 9
+#define GB_DONTKNOW 10
+#define CB_SYNCHRON 11
+
+// Ueberlaufpruefung ********************************************************
+
+#define LABPRT_ACT_END 0
+
+#if LABPRT_ACT_END > RC_LABPRT_END
+#error Resource-Ueberlauf in #file, #line
+#endif
+
+#endif
+
+
diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx
new file mode 100644
index 000000000000..847397410548
--- /dev/null
+++ b/sw/source/ui/envelp/labprt.hxx
@@ -0,0 +1,124 @@
+/*************************************************************************
+ *
+ * $RCSfile: labprt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _LABPRT_HXX
+#define _LABPRT_HXX
+
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+
+class SwLabDlg;
+class SwLabItem;
+
+// class SwLabPrtPage -------------------------------------------------------
+
+class SwLabPrtPage : public SfxTabPage
+{
+ Printer* pPrinter; //Fuer die Schachteinstellug - leider.
+
+ RadioButton aPageButton;
+ RadioButton aSingleButton;
+ FixedText aColText;
+ NumericField aColField;
+ FixedText aRowText;
+ NumericField aRowField;
+ CheckBox aSynchronCB;
+ GroupBox aGBDontKnow;
+
+ FixedInfo aPrinterInfo;
+ PushButton aPrtSetup;
+ GroupBox aGBPrinter;
+
+ SwLabPrtPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwLabPrtPage();
+
+ DECL_LINK( CountHdl, Button * );
+
+ SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
+
+public:
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ void FillItem(SwLabItem& rItem);
+ virtual BOOL FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+ inline Printer* GetPrt() { return (pPrinter); }
+};
+
+#endif
+
+
diff --git a/sw/source/ui/envelp/labprt.src b/sw/source/ui/envelp/labprt.src
new file mode 100644
index 000000000000..8e924b92197b
--- /dev/null
+++ b/sw/source/ui/envelp/labprt.src
@@ -0,0 +1,317 @@
+/*************************************************************************
+ *
+ * $RCSfile: labprt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "labprt.hrc"
+#include "helpid.h"
+ // TP_LAB_PRT ---------------------------------------------------------------
+TabPage TP_LAB_PRT
+{
+ HelpID = HID_LAB_PRT ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ RadioButton BTN_PAGE
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 55 , 10 ) ;
+ Text = "~Ganze Seite" ;
+ Text [ ENGLISH ] = "Whole page" ;
+ Text [ NORWEGIAN ] = "Hele siden" ;
+ Text [ DANISH ] = "Hele siden" ;
+ Text [ ENGLISH_US ] = "~Entire page" ;
+ Text [ SPANISH ] = "~Toda la página" ;
+ Text [ FINNISH ] = "Koko sivu" ;
+ Text [ FRENCH ] = "~Page entière" ;
+ Text [ ITALIAN ] = "Pagina ~intera" ;
+ Text [ DUTCH ] = "~Hele pagina" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Pßgina inteira" ;
+ Text [ SWEDISH ] = "H~ela sidan" ;
+ Text [ PORTUGUESE ] = "Página ~inteira" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ÕûÒ³(~E)";
+ Text[ russian ] = "Âñÿ ñòðàíèöà";
+ Text[ polish ] = "Ca³a strona";
+ Text[ japanese ] = "Íß°¼Þ‘S‘Ì(~E)";
+ Text[ chinese_traditional ] = "¾ã­¶(~E)";
+ Text[ arabic ] = "ÕÝÍÉ ßÇãáÉ";
+ Text[ greek ] = "Ïëüêëçñç óåëßäá";
+ Text[ korean ] = "Àüü ÆäÀÌÁö(~E)";
+ Text[ turkish ] = "~Tam sayfa";
+ };
+ RadioButton BTN_SINGLE
+ {
+ Pos = MAP_APPFONT ( 12 , 26 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Einzelnes Eti~kett" ;
+ Text [ ENGLISH ] = "Single label" ;
+ Text [ NORWEGIAN ] = "Single label" ;
+ Text [ DANISH ] = "Enkelt etiket" ;
+ Text [ ENGLISH_US ] = "~Single label" ;
+ Text [ SPANISH ] = "~Una etiqueta" ;
+ Text [ FINNISH ] = "Yksi tarra" ;
+ Text [ FRENCH ] = "~Étiquette unique" ;
+ Text [ ITALIAN ] = "Singola etichetta" ;
+ Text [ DUTCH ] = "~Een enkel" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Etiqueta simples" ;
+ Text [ SWEDISH ] = "Enstaka eti~kett" ;
+ Text [ PORTUGUESE ] = "E~tiqueta única" ;
+ Text[ chinese_simplified ] = "µ¥¸ö±êÇ©(~S)";
+ Text[ russian ] = "Îòäåëüíàÿ íàêëåéêà";
+ Text[ polish ] = "Poj~edyncza etykieta";
+ Text[ japanese ] = "1–‡‚‚Ì×ÍÞÙ(~S)";
+ Text[ chinese_traditional ] = "³æ­Ó¶K¼Ð(~S)";
+ Text[ arabic ] = "ÈØÇÞÉ ÚäæäÉ ãÝÑÏÉ";
+ Text[ greek ] = "ÌåìïíùìÝíç åôéêÝôá";
+ Text[ korean ] = "´ÜÀÏ ¶óº§(~S)";
+ Text[ turkish ] = "Tek Eti~ket";
+ };
+ FixedText TXT_COL
+ {
+ Pos = MAP_APPFONT ( 132 , 27 ) ;
+ Size = MAP_APPFONT ( 28 , 8 ) ;
+ Text = "S~palte" ;
+ Text [ ENGLISH ] = "Column" ;
+ Text [ NORWEGIAN ] = "Column" ;
+ Text [ DANISH ] = "Kolonne" ;
+ Text [ ENGLISH_US ] = "Colu~mn" ;
+ Text [ SPANISH ] = "C~olumna" ;
+ Text [ FINNISH ] = "Sarake" ;
+ Text [ FRENCH ] = "~Colonne" ;
+ Text [ ITALIAN ] = "Colonna" ;
+ Text [ DUTCH ] = "~Kolom" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Coluna" ;
+ Text [ SWEDISH ] = "Kolu~mn" ;
+ Text [ PORTUGUESE ] = "~Coluna" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÁÐ(~M)";
+ Text[ russian ] = "Êîëîíêà";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ(~M)";
+ Text[ chinese_traditional ] = "Äæ(~M)";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­(~M)";
+ Text[ turkish ] = "~Sütun";
+ };
+ NumericField FLD_COL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 161 , 24 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ };
+ FixedText TXT_ROW
+ {
+ Pos = MAP_APPFONT ( 193 , 27 ) ;
+ Size = MAP_APPFONT ( 28 , 10 ) ;
+ Text = "Zei~le" ;
+ Text [ ENGLISH ] = "Row" ;
+ Text [ NORWEGIAN ] = "Row" ;
+ Text [ DANISH ] = "Række" ;
+ Text [ ENGLISH_US ] = "Ro~w" ;
+ Text [ SPANISH ] = "~Fila" ;
+ Text [ FINNISH ] = "Rivi" ;
+ Text [ FRENCH ] = "~Ligne" ;
+ Text [ ITALIAN ] = "Riga" ;
+ Text [ DUTCH ] = "~Rij" ;
+ Text [ PORTUGUESE_BRAZILIAN ] = "Fileira" ;
+ Text [ SWEDISH ] = "~Rad" ;
+ Text [ PORTUGUESE ] = "~Linha" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÐÐ(~W)";
+ Text[ russian ] = "Ñòðîêà";
+ Text[ polish ] = "Wiersz";
+ Text[ japanese ] = "s(~Wj";
+ Text[ chinese_traditional ] = "¦æ(~W)";
+ Text[ arabic ] = "ÕÝ";
+ Text[ greek ] = "ÃñáììÞ";
+ Text[ korean ] = "Çà(~W)";
+ Text[ turkish ] = "S~atýr";
+ };
+ NumericField FLD_ROW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 224 , 24 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ };
+ CheckBox CB_SYNCHRON
+ {
+ Pos = MAP_APPFONT ( 12 , 43 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "Inhalte ~synchronisieren" ;
+ Text [ ENGLISH ] = "~Synchronize content" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Synchroni~ze contents" ;
+ Text [ portuguese_brazilian ] = "Inhalte ~synchronisieren" ;
+ Text [ swedish ] = "~Synkronisera innehåll" ;
+ Text [ danish ] = "Synkroniser indhold" ;
+ Text [ italian ] = "Sincronizza ~contenuti" ;
+ Text [ spanish ] = "~Sincronizar contenidos" ;
+ Text [ french ] = "~Synchroniser le contenu" ;
+ Text [ dutch ] = "Inhoud ~synchroniseren" ;
+ Text [ portuguese ] = "~Sincronizar conteúdos" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝͬ²½»¯(~S)";
+ Text[ russian ] = "Ñèíõðîíèçàöèÿ ñîäåðæèìîãî";
+ Text[ polish ] = "Synchronizacja treœci";
+ Text[ japanese ] = "“à—e‚𓯊ú‚·‚é(~S)";
+ Text[ chinese_traditional ] = "¤º®e¦P¨B¤Æ(~S)";
+ Text[ arabic ] = "ÊÒÇãä ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Óõã÷ñïíéóìüò ðåñéå÷ïìÝíùí";
+ Text[ korean ] = "³»¿ë µ¿±âÈ­(~Z)";
+ Text[ turkish ] = "Ýçeriði çoðalt";
+ };
+ GroupBox GB_DONTKNOW
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 60 ) ;
+ };
+ FixedText INF_PRINTER
+ {
+ Pos = MAP_APPFONT ( 12 , 82 ) ;
+ Size = MAP_APPFONT ( 171 , 10 ) ;
+ Text = "Druckername" ;
+ Text [ ENGLISH ] = "Printer name" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Printer Name" ;
+ Text [ italian ] = "Nome stampante" ;
+ Text [ spanish ] = "Nombre de la impresora" ;
+ Text [ french ] = "Nom de l'imprimante" ;
+ Text [ dutch ] = "Printer naam" ;
+ Text [ swedish ] = "Skrivarnamn" ;
+ Text [ danish ] = "Printernavn" ;
+ Text [ portuguese_brazilian ] = "Druckername" ;
+ Text [ portuguese ] = "Nome da impressora" ;
+ Text[ chinese_simplified ] = "´òÓ¡»úÃû³Æ";
+ Text[ russian ] = "Íàçâàíèå ïðèíòåðà";
+ Text[ polish ] = "Nazwa drukarki";
+ Text[ japanese ] = "ÌßØÝÀ–¼";
+ Text[ chinese_traditional ] = "¦Lªí¾÷¦WºÙ";
+ Text[ arabic ] = "ÇÓã ÇáØÇÈÚÉ";
+ Text[ greek ] = "¼íïìá åêôõðùôÞ";
+ Text[ korean ] = "ÇÁ¸°ÅÍ À̸§";
+ Text[ turkish ] = "Yazýcý adý";
+ };
+ PushButton BTN_PRTSETUP
+ {
+ Pos = MAP_APPFONT ( 200 , 80 ) ;
+ Size = MAP_APPFONT ( 48 , 14 ) ;
+ Text = "~Einrichten..." ;
+ Text [ ENGLISH ] = "Setup..." ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Setup..." ;
+ Text [ italian ] = "Imposta..." ;
+ Text [ spanish ] = "Configurar..." ;
+ Text [ french ] = "~Paramétrer..." ;
+ Text [ dutch ] = "~Configureren..." ;
+ Text [ swedish ] = "Inrätta..." ;
+ Text [ danish ] = "Indstil..." ;
+ Text [ portuguese_brazilian ] = "Einrichten..." ;
+ Text [ portuguese ] = "~Configurar..." ;
+ Text[ chinese_simplified ] = "ÉèÖÃ...";
+ Text[ russian ] = "Íàñòðîéêà...";
+ Text[ polish ] = "Ust~aw";
+ Text[ japanese ] = "Ý’è...";
+ Text[ chinese_traditional ] = "³]¸m...";
+ Text[ arabic ] = "...ÅÚÏÇÏ";
+ Text[ greek ] = "~ÅãêáôÜóôáóç...";
+ Text[ korean ] = "¼³Á¤...";
+ Text[ turkish ] = "Ayarlar...";
+ };
+ GroupBox GB_PRINTER
+ {
+ Pos = MAP_APPFONT ( 6 , 70 ) ;
+ Size = MAP_APPFONT ( 248 , 32 ) ;
+ Text = " Drucker " ;
+ Text [ ENGLISH ] = " Printer " ;
+ Text [ dutch ] = "Printer " ;
+ Text [ english_us ] = "Printer " ;
+ Text [ italian ] = "Stampante " ;
+ Text [ spanish ] = "Impresora " ;
+ Text [ french ] = "Imprimante " ;
+ Text [ swedish ] = "Skrivare " ;
+ Text [ danish ] = "Printer " ;
+ Text [ portuguese_brazilian ] = "Drucker " ;
+ Text [ portuguese ] = "Impressora " ;
+ Text[ chinese_simplified ] = "´òÓ¡»ú ";
+ Text[ russian ] = "Ïðèíòåð ";
+ Text[ polish ] = "Drukarka ";
+ Text[ japanese ] = "ÌßØÝÀ ";
+ Text[ chinese_traditional ] = "¦Lªí¾÷ ";
+ Text[ arabic ] = "ÇáØÇÈÚÉ ";
+ Text[ greek ] = "ÅêôõðùôÞò ";
+ Text[ korean ] = "ÇÁ¸°ÅÍ ";
+ Text[ turkish ] = "Yazýcý ";
+ };
+};
+ // **************************************************************************
diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx
new file mode 100644
index 000000000000..549677723f4e
--- /dev/null
+++ b/sw/source/ui/envelp/mailmrge.cxx
@@ -0,0 +1,686 @@
+/*************************************************************************
+ *
+ * $RCSfile: mailmrge.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:35 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#ifndef _SDB_SDBHASH_HXX
+#include <sdb/sdbhash.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include "sfx2/iodlg.hxx"
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _MAILENUM_HXX //autogen
+#include <goodies/mailenum.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX //autogen
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _SVX_MULTIFIL_HXX
+#include <svx/multifil.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+
+#include "helpid.h"
+#include "view.hxx"
+#include "docsh.hxx"
+#include "wrtsh.hxx"
+#include "dbmgr.hxx"
+#include "dbui.hxx"
+#include "swmodule.hxx"
+#include "modcfg.hxx"
+
+#include "envelp.hrc"
+#include "mailmrge.hrc"
+#include "mailmrge.hxx"
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+
+using namespace rtl;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+using namespace com::sun::star::util;
+using namespace com::sun::star::uno;
+
+#endif
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwMailMergeDlg::SwMailMergeDlg(Window *pParent, SwWrtShell *pShell,
+ const String& rName,
+#ifdef REPLACE_OFADBMGR
+ const String& rTblName,
+#endif
+ const String& rStat,
+ SbaSelectionListRef& pSelList):
+
+ SvxStandardDialog(pParent, SW_RES(DLG_MAILMERGE)),
+
+ aAllRB (this, SW_RES(RB_ALL)),
+ aMarkedRB (this, SW_RES(RB_MARKED)),
+ aFromRB (this, SW_RES(RB_FROM)),
+ aFromNF (this, SW_RES(NF_FROM)),
+ aBisFT (this, SW_RES(FT_BIS)),
+ aToNF (this, SW_RES(NF_TO)),
+ aRecordGB (this, SW_RES(GB_RECORD)),
+
+ aPrinterRB (this, SW_RES(RB_PRINTER)),
+ aMailingRB (this, SW_RES(RB_MAILING)),
+ aFileRB (this, SW_RES(RB_FILE)),
+
+ aSingleJobsCB (this, SW_RES(CB_SINGLE_JOBS)),
+
+ aPathFT (this, SW_RES(FT_PATH)),
+ aPathED (this, SW_RES(ED_PATH)),
+ aPathPB (this, SW_RES(PB_PATH)),
+ aFilenameFT (this, SW_RES(FT_FILENAME)),
+ aColumnRB (this, SW_RES(RB_COLUMN)),
+ aFilenameRB (this, SW_RES(RB_FILENAME)),
+ aColumnLB (this, SW_RES(LB_COLUMN)),
+ aFilenameED (this, SW_RES(ED_FILENAME)),
+
+ aAddressFT (this, SW_RES(FT_ADDRESS)),
+ aAddressFldLB (this, SW_RES(LB_ADDRESSFLD)),
+ aSubjectFT (this, SW_RES(FT_SUBJECT)),
+ aSubjectED (this, SW_RES(ED_SUBJECT)),
+ aFormatFT (this, SW_RES(FT_FORMAT)),
+ aAttachFT (this, SW_RES(FT_ATTACH)),
+ aAttachED (this, SW_RES(ED_ATTACH)),
+ aAttachPB (this, SW_RES(PB_ATTACH)),
+ aFormatSwCB (this, SW_RES(CB_FORMAT_SW)),
+ aFormatHtmlCB (this, SW_RES(CB_FORMAT_HTML)),
+ aFormatRtfCB (this, SW_RES(CB_FORMAT_RTF)),
+ aDestGB (this, SW_RES(GB_DEST)),
+
+ aOkBTN (this, SW_RES(BTN_OK)),
+ aCancelBTN (this, SW_RES(BTN_CANCEL)),
+ aHelpBTN (this, SW_RES(BTN_HELP)),
+
+ pSh (pShell),
+ rDBName (rName),
+#ifdef REPLACE_OFADBMGR
+ rTableName (rTblName),
+#endif
+ rStatement (rStat),
+ rSelectionList (pSelList),
+ nMergeType (DBMGR_MERGE_MAILING)
+
+{
+ FreeResource();
+
+ DBG_ASSERT(pSh, "Shell fehlt" );
+
+#ifdef REPLACE_OFADBMGR
+#else
+ pSbaObject = pSh->GetNewDBMgr()->GetSbaObject();
+#endif
+ pModOpt = SW_MOD()->GetModuleConfig();
+
+ aSingleJobsCB.Check(pModOpt->IsSinglePrintJob());
+
+ BYTE nMailingMode(pModOpt->GetMailingFormats());
+ aFormatSwCB.Check((nMailingMode & TXTFORMAT_OFFICE) != 0);
+ aFormatHtmlCB.Check((nMailingMode & TXTFORMAT_HTML) != 0);
+ aFormatRtfCB.Check((nMailingMode & TXTFORMAT_RTF) != 0);
+
+#ifdef REPLACE_OFADBMGR
+#else
+ DBG_ASSERT(pSbaObject, "SbaObject nicht gefunden!");
+#endif
+ aAllRB.Check(TRUE);
+
+ // Handler installieren
+ Link aLk = LINK(this, SwMailMergeDlg, ButtonHdl);
+ aOkBTN.SetClickHdl(aLk);
+
+ aPathPB.SetClickHdl(LINK(this, SwMailMergeDlg, InsertPathHdl));
+ aAttachPB.SetClickHdl(LINK(this, SwMailMergeDlg, AttachFileHdl));
+
+ aLk = LINK(this, SwMailMergeDlg, RadioButtonHdl);
+ aPrinterRB.SetClickHdl(aLk);
+ aMailingRB.SetClickHdl(aLk);
+ aFileRB.SetClickHdl(aLk);
+
+ aLk = LINK(this, SwMailMergeDlg, FilenameHdl);
+ aColumnRB.SetClickHdl(aLk);
+ aFilenameRB.SetClickHdl(aLk);
+ BOOL bColumn = pModOpt->IsNameFromColumn();
+ if (bColumn)
+ aColumnRB.Check();
+ else
+ aFilenameRB.Check();
+
+ FilenameHdl(bColumn ? &aColumnRB : &aFilenameRB);
+
+ aLk = LINK(this, SwMailMergeDlg, ModifyHdl);
+ aFromNF.SetModifyHdl(aLk);
+ aToNF.SetModifyHdl(aLk);
+
+#ifdef REPLACE_OFADBMGR
+ pSh->GetNewDBMgr()->GetColumnNames(&aAddressFldLB, rDBName, rTableName);
+#else
+ pSh->GetNewDBMgr()->GetColumnNames(&aAddressFldLB, rDBName);
+#endif
+ for(USHORT nEntry = 0; nEntry < aAddressFldLB.GetEntryCount(); nEntry++)
+ aColumnLB.InsertEntry(aAddressFldLB.GetEntry(nEntry));
+ aAddressFldLB.SelectEntry(C2S("EMAIL"));
+
+ aPathED.SetText(pModOpt->GetMailingPath());
+ if (!aPathED.GetText().Len())
+ {
+ SfxIniManager* pIniManager = SFX_APP()->GetIniManager();
+ ASSERT(pIniManager, "Kein Inimanager angelegt !!");
+ aPathED.SetText(pIniManager->Get(SFX_KEY_WORK_PATH));
+ }
+ String sMailName = pModOpt->GetMailName();
+
+ if (!bColumn || !sMailName.Len())
+ {
+ aColumnLB.SelectEntry(C2S("NAME"));
+ aFilenameED.SetText(sMailName);
+ }
+ else
+ aColumnLB.SelectEntry(sMailName);
+
+ if (aAddressFldLB.GetSelectEntryCount() == 0)
+ aAddressFldLB.SelectEntryPos(0);
+ if (aColumnLB.GetSelectEntryCount() == 0)
+ aColumnLB.SelectEntryPos(0);
+
+ const BOOL bEnable = rSelectionList->Count() != 0;
+ aMarkedRB.Enable(bEnable);
+ if (bEnable && (long)rSelectionList->GetObject(0) != -1L)
+ aMarkedRB.Check();
+ else
+ {
+ aAllRB.Check();
+ aMarkedRB.Enable(FALSE);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwMailMergeDlg::~SwMailMergeDlg()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwMailMergeDlg::Apply()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMailMergeDlg, ButtonHdl, Button *, pBtn )
+{
+ if (pBtn == &aOkBTN)
+ {
+ ExecQryShell(FALSE);
+ EndDialog(RET_OK);
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMailMergeDlg, RadioButtonHdl, RadioButton *, pBtn )
+{
+ if (pBtn == &aFileRB)
+ {
+ aAddressFT.Hide();
+ aAddressFldLB.Hide();
+ aSubjectFT.Hide();
+ aSubjectED.Hide();
+ aFormatFT.Hide();
+ aFormatSwCB.Hide();
+ aFormatHtmlCB.Hide();
+ aFormatRtfCB.Hide();
+ aSingleJobsCB.Hide();
+ aAttachFT.Hide();
+ aAttachED.Hide();
+ aAttachPB.Hide();
+
+ aPathFT.Show();
+ aPathED.Show();
+ aPathPB.Show();
+ aFilenameFT.Show();
+ aColumnRB.Show();
+ aFilenameRB.Show();
+ aColumnLB.Show();
+ aFilenameED.Show();
+ }
+ else
+ {
+ aAddressFT.Show();
+ aAddressFldLB.Show();
+ aSubjectFT.Show();
+ aSubjectED.Show();
+ aFormatFT.Show();
+ aFormatSwCB.Show();
+ aFormatHtmlCB.Show();
+ aFormatRtfCB.Show();
+ aAttachFT.Show();
+ aAttachED.Show();
+ aAttachPB.Show();
+
+ aPathFT.Hide();
+ aPathED.Hide();
+ aPathPB.Hide();
+ aFilenameFT.Hide();
+ aColumnRB.Hide();
+ aFilenameRB.Hide();
+ aColumnLB.Hide();
+ aFilenameED.Hide();
+
+ const BOOL bEnable = pBtn != &aPrinterRB;
+ aAddressFT.Enable(bEnable);
+ aAddressFldLB.Enable(bEnable);
+ aSubjectFT.Enable(bEnable);
+ aSubjectED.Enable(bEnable);
+ aFormatFT.Enable(bEnable);
+ aFormatSwCB.Enable(bEnable);
+ aFormatHtmlCB.Enable(bEnable);
+ aFormatRtfCB.Enable(bEnable);
+ aAttachFT.Enable(bEnable);
+ aAttachED.Enable(bEnable);
+ aAttachPB.Enable(bEnable);
+
+ aAddressFT.Show(bEnable);
+ aAddressFldLB.Show(bEnable);
+ aSingleJobsCB.Show(!bEnable);
+ aSingleJobsCB.Enable(!bEnable);
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMailMergeDlg, FilenameHdl, RadioButton *, pBtn )
+{
+ BOOL bEnable = pBtn == &aColumnRB;
+
+ aColumnLB.Enable(bEnable);
+ aFilenameED.Enable(!bEnable);
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMailMergeDlg, ModifyHdl, NumericField *, pFld )
+{
+ aFromRB.Check();
+ return (0);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwMailMergeDlg::ExecQryShell(BOOL bVisible)
+{
+ SwNewDBMgr* pMgr = pSh->GetNewDBMgr();
+
+ if (aPrinterRB.IsChecked())
+ nMergeType = DBMGR_MERGE_MAILMERGE;
+ else if (aMailingRB.IsChecked())
+ {
+ nMergeType = DBMGR_MERGE_MAILING;
+ pMgr->SetEMailColumn(aAddressFldLB.GetSelectEntry());
+ pMgr->SetSubject(aSubjectED.GetText());
+ pMgr->SetAttachment(aAttachED.GetText());
+ }
+ else
+ {
+ nMergeType = DBMGR_MERGE_MAILFILES;
+ String sPath(aPathED.GetText());
+ pModOpt->SetMailingPath(sPath);
+ String sDelim(INET_PATH_TOKEN);
+
+ if (sPath.Len() >= sDelim.Len() &&
+ sPath.Copy(sPath.Len()-sDelim.Len()).CompareTo(sDelim) != COMPARE_EQUAL)
+ sPath += sDelim;
+
+ pModOpt->SetNameFromColumn(aColumnRB.IsChecked());
+
+ if (aColumnRB.IsChecked())
+ {
+ pMgr->SetEMailColumn(aColumnLB.GetSelectEntry());
+ pModOpt->SetMailName(aColumnLB.GetSelectEntry());
+ }
+ else
+ {
+ String sName(aFilenameED.GetText());
+ if (!sName.Len())
+ {
+ sName = pSh->GetView().GetDocShell()->GetTitle();
+ INetURLObject aTemp(sName);
+ sName = aTemp.GetBase();
+ }
+ sPath += sName;
+ pMgr->SetEMailColumn(aEmptyStr);
+ pModOpt->SetMailName(sName);
+ }
+
+ pMgr->SetSubject(sPath);
+ }
+
+ if (aFromRB.IsChecked()) // Liste Einfuegen
+ {
+ ULONG nStart = aFromNF.GetValue();
+ ULONG nEnd = aToNF.GetValue();
+
+ if (nEnd < nStart)
+ {
+ ULONG nZw = nEnd;
+ nEnd = nStart;
+ nStart = nZw;
+ }
+
+ rSelectionList->Clear();
+
+ for (ULONG i = nStart; i <= nEnd; i++)
+ rSelectionList->Insert((void*)i , LIST_APPEND);
+ }
+
+ if (aAllRB.IsChecked() )
+ rSelectionList->Clear(); // Leere Selektion = Alles einfuegen
+
+ pModOpt->SetSinglePrintJob(aSingleJobsCB.IsChecked());
+
+ BYTE nMailingMode = 0;
+
+ if (aFormatSwCB.IsChecked())
+ nMailingMode |= TXTFORMAT_OFFICE;
+ if (aFormatHtmlCB.IsChecked())
+ nMailingMode |= TXTFORMAT_HTML;
+ if (aFormatRtfCB.IsChecked())
+ nMailingMode |= TXTFORMAT_RTF;
+ pModOpt->SetMailingFormats(nMailingMode);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMailMergeDlg, InsertPathHdl, PushButton *, pBtn )
+{
+ SfxIniManager* pIniManager = SFX_APP()->GetIniManager();
+ ASSERT(pIniManager, "Kein Inimanager angelegt !!");
+ String sPath(aPathED.GetText());
+ if (!sPath.Len())
+ sPath = pIniManager->Get(SFX_KEY_WORK_PATH);
+ WinBits nBits = WB_3DLOOK|WB_STDMODAL|WB_OPEN|SFXWB_PATHDIALOG;
+
+ SfxFileDialog* pFileDlg = new SfxFileDialog( this, nBits );
+ pFileDlg->DisableSaveLastDirectory();
+ pFileDlg->SetPath( sPath );
+ pFileDlg->SetHelpId(HID_FILEDLG_MAILMRGE1);
+
+ if (pFileDlg->Execute())
+ aPathED.SetText(pFileDlg->GetPath());
+
+ delete pFileDlg;
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMailMergeDlg, AttachFileHdl, PushButton *, pBtn )
+{
+ SvxMultiFileDialog* pFileDlg = new SvxMultiFileDialog(this);
+ pFileDlg->SetFiles(aAttachED.GetText());
+ pFileDlg->SetHelpId(HID_FILEDLG_MAILMRGE2);
+
+ if (pFileDlg->Execute())
+ aAttachED.SetText(pFileDlg->GetFiles());
+
+ delete pFileDlg;
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.75 2000/09/18 16:05:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.74 2000/07/18 12:50:08 os
+ replace ofadbmgr
+
+ Revision 1.73 2000/06/07 13:26:46 os
+ using UCB
+
+ Revision 1.72 2000/04/19 12:56:34 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.71 2000/04/18 15:31:35 os
+ UNICODE
+
+ Revision 1.70 2000/03/03 15:17:00 os
+ StarView remainders removed
+
+ Revision 1.69 2000/02/11 14:45:27 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.68 2000/01/24 12:48:37 os
+ #72153# call SfxFileDialog::DisableSaveLastDirectory
+
+ Revision 1.67 1998/09/02 12:11:56 OM
+ #45378# HelpIDs fuer Dateidialoge
+
+
+ Rev 1.66 02 Sep 1998 14:11:56 OM
+ #45378# HelpIDs fuer Dateidialoge
+
+ Rev 1.65 23 Jul 1998 13:26:52 OM
+ #52257# Mail Attachments
+
+ Rev 1.64 17 Jul 1998 17:19:52 TJ
+ include
+
+ Rev 1.63 09 Jul 1998 09:52:32 JP
+ EmptyStr benutzen
+
+ Rev 1.62 09 Dec 1997 12:31:28 OM
+ #45200# Serienbrief: Speichern-Monitor
+
+ Rev 1.61 02 Dec 1997 19:39:12 MA
+ #45900#, SelectionList muss fuer Dialog existieren
+
+ Rev 1.60 24 Nov 1997 11:52:12 MA
+ includes
+
+ Rev 1.59 03 Nov 1997 13:17:14 MA
+ precomp entfernt
+
+ Rev 1.58 30 Sep 1997 14:22:06 MH
+ chg: header
+
+ Rev 1.57 02 Sep 1997 09:58:22 OM
+ SDB-Headeranpassung
+
+ Rev 1.56 26 Aug 1997 15:34:46 TRI
+ VCL Includes
+
+ Rev 1.55 05 Aug 1997 12:31:44 MH
+ chg: header
+
+ Rev 1.54 08 Jul 1997 14:12:44 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.53 09 Jun 1997 17:22:32 OM
+ Serienbriefe als Dateien speichern
+
+ Rev 1.52 04 Jun 1997 11:43:02 OM
+ Korrektes Mailformat RTF
+
+ Rev 1.51 20 Mar 1997 12:44:42 OM
+ Mailing: Format RTF
+
+ Rev 1.50 11 Mar 1997 11:27:18 OM
+ Serienbrief-eMail in waehlbaren Formaten versenden
+
+ Rev 1.49 14 Feb 1997 11:36:24 OM
+ #36178# GPF im Serienbriefdruck behoben
+
+ Rev 1.48 29 Jan 1997 18:13:04 MA
+ unbenutzes entfernt
+
+ Rev 1.47 06 Dec 1996 14:39:36 OM
+ OpenDB-Fehlercode korrigiert
+
+ Rev 1.46 05 Dec 1996 13:36:58 OM
+ Serienbrief reanimiert
+
+ Rev 1.45 11 Nov 1996 09:44:18 MA
+ ResMgr
+
+ Rev 1.44 07 Oct 1996 09:33:18 MA
+ Umstellung Enable/Disable
+
+ Rev 1.43 18 Sep 1996 10:38:54 OM
+ Serienbriefe wieder angebunden
+
+ Rev 1.42 13 Sep 1996 15:46:48 OM
+ Serienbrief
+
+ Rev 1.41 22 Aug 1996 12:30:32 OM
+ Serienbrief Dlg umgestellt
+
+ Rev 1.40 06 Aug 1996 16:45:38 OM
+ Datenbankumstellung
+
+ Rev 1.39 26 Jul 1996 20:36:38 MA
+ includes
+
+ Rev 1.38 25 Jul 1996 16:39:52 OM
+ DB-Auswahldialog eingebaut
+
+ Rev 1.37 23 Jul 1996 13:26:32 OM
+ Datenbank und Tabelle auswaehlen
+
+ Rev 1.36 22 Jul 1996 11:03:00 OM
+ Datenbankauswahldialog
+
+ Rev 1.35 19 Jul 1996 16:10:02 OM
+ SBA-Umstellung
+
+ Rev 1.34 17 Jul 1996 13:47:06 OM
+ Datenbankumstellung 327
+
+ Rev 1.33 05 Jul 1996 15:57:50 OM
+ #28464# Serienbrief mit markierten Datensaetzen
+
+ Rev 1.32 28 Jun 1996 10:21:50 OM
+ Neue Segs
+
+ Rev 1.31 28 Jun 1996 10:20:54 OM
+ #29103# Radiobutton bei Eingabe selektieren
+
+ Rev 1.30 04 Jun 1996 14:10:28 OM
+ Neue Segs
+
+ Rev 1.29 04 Jun 1996 14:09:40 OM
+ Serienbrief Mailing
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/envelp/mailmrge.hrc b/sw/source/ui/envelp/mailmrge.hrc
new file mode 100644
index 000000000000..3d03b62fd82c
--- /dev/null
+++ b/sw/source/ui/envelp/mailmrge.hrc
@@ -0,0 +1,108 @@
+/*************************************************************************
+ *
+ * $RCSfile: mailmrge.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _MAILMRGE_HRC
+#define _MAILMRGE_HRC
+
+// #include -----------------------------------------------------------------
+
+#include "envelp.hrc"
+
+// Elemente -----------------------------------------------------------------
+
+#define GB_RECORD 1
+#define RB_ALL 2
+#define RB_MARKED 3
+#define RB_FROM 4
+#define NF_FROM 5
+#define FT_BIS 6
+#define NF_TO 7
+#define BTN_OK 8
+#define BTN_CANCEL 9
+#define BTN_HELP 10
+#define RB_PRINTER 11
+#define RB_MAILING 12
+#define FT_ADDRESS 13
+#define LB_ADDRESSFLD 14
+#define FT_SUBJECT 15
+#define ED_SUBJECT 16
+#define GB_DEST 17
+#define CB_SINGLE_JOBS 18
+#define FT_FORMAT 19
+#define CB_FORMAT_SW 20
+#define CB_FORMAT_HTML 21
+#define CB_FORMAT_RTF 22
+#define RB_FILE 23
+#define FT_PATH 24
+#define ED_PATH 25
+#define PB_PATH 26
+#define FT_FILENAME 27
+#define RB_COLUMN 28
+#define RB_FILENAME 29
+#define LB_COLUMN 30
+#define ED_FILENAME 31
+#define FT_ATTACH 32
+#define ED_ATTACH 33
+#define PB_ATTACH 34
+
+#endif
+
+
diff --git a/sw/source/ui/envelp/mailmrge.src b/sw/source/ui/envelp/mailmrge.src
new file mode 100644
index 000000000000..f749259c6e83
--- /dev/null
+++ b/sw/source/ui/envelp/mailmrge.src
@@ -0,0 +1,785 @@
+/*************************************************************************
+ *
+ * $RCSfile: mailmrge.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #pragma ******************************************************************
+
+ // #include *****************************************************************
+#include "mailmrge.hrc"
+#include "cmdid.h"
+ModalDialog DLG_MAILMERGE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 242 , 179 ) ;
+ Text = "Serienbrief" ;
+ Text [ ENGLISH ] = "Print merge" ;
+ Text [ norwegian ] = "Print merge" ;
+ Text [ italian ] = "Stampa in serie" ;
+ Text [ portuguese_brazilian ] = "Imprimir Intercalação" ;
+ Text [ portuguese ] = "Carta em série" ;
+ Text [ finnish ] = "Yhdistelytulostus" ;
+ Text [ danish ] = "Brevfletning" ;
+ Text [ french ] = "Mailing" ;
+ Text [ swedish ] = "Kopplad utskrift" ;
+ Text [ dutch ] = "Standaardbrief" ;
+ Text [ spanish ] = "Carta en serie" ;
+ Text [ english_us ] = "Form Letter" ;
+ Moveable = TRUE ;
+ HelpID = FN_QRY_MERGE ;
+ RadioButton RB_ALL
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 162 , 10 ) ;
+ Text = "~Alle" ;
+ Text [ ENGLISH ] = "~All" ;
+ Text [ norwegian ] = "~All" ;
+ Text [ italian ] = "~Tutti" ;
+ Text [ portuguese_brazilian ] = "~Tudo" ;
+ Text [ portuguese ] = "~Todos" ;
+ Text [ finnish ] = "~Kaikki" ;
+ Text [ danish ] = "Alle" ;
+ Text [ french ] = "~Tous" ;
+ Text [ swedish ] = "~Alla" ;
+ Text [ dutch ] = "~Alles" ;
+ Text [ spanish ] = "T~odos" ;
+ Text [ english_us ] = "~All" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "È«²¿(~A)";
+ Text[ russian ] = "Âñå";
+ Text[ polish ] = "Wszystkie";
+ Text[ japanese ] = "‚·‚ׂÄ(~A)";
+ Text[ chinese_traditional ] = "¥þ³¡(~A)";
+ Text[ arabic ] = "Çáßá";
+ Text[ greek ] = "¼ëá";
+ Text[ korean ] = "Àüü(~A)";
+ Text[ turkish ] = "Tümü";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_MARKED
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 162 , 10 ) ;
+ Text = "Markierte ~Datensätze" ;
+ Text [ ENGLISH ] = "S~elected records" ;
+ Text [ norwegian ] = "Selected records" ;
+ Text [ italian ] = "R~ecord selezionati" ;
+ Text [ portuguese_brazilian ] = "~Selected records" ;
+ Text [ portuguese ] = "~Registos seleccionados" ;
+ Text [ finnish ] = "~Selected records" ;
+ Text [ danish ] = "Markerede dataposter" ;
+ Text [ french ] = "Enregistrements ~sélectionnés" ;
+ Text [ swedish ] = "Markerade ~dataposter" ;
+ Text [ dutch ] = "~Gemarkeerde records" ;
+ Text [ spanish ] = "~Registros seleccionados" ;
+ Text [ english_us ] = "~Selected records" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "Ñ¡ÖеÄÊý¾ÝÌõÄ¿(~S)";
+ Text[ russian ] = "Âûäåëåííûå çàïèñè";
+ Text[ polish ] = "Zaznaczone rekordy";
+ Text[ japanese ] = "‘I‘ð‚µ‚½Úº°ÄÞ(~S)";
+ Text[ chinese_traditional ] = "¿ï¨úªº¸ê®Æ¶µ¥Ø(~S)";
+ Text[ arabic ] = "ÇáÓÌáÇÊ ÇáãÍÏÏÉ";
+ Text[ greek ] = "ÅðéëåãìÝíåò åããñáöÝò";
+ Text[ korean ] = "¼±ÅÃµÈ ·¹ÄÚµå(~S)";
+ Text[ turkish ] = "Seçili veri kümeleri";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FROM
+ {
+ Pos = MAP_APPFONT ( 12 , 41 ) ;
+ Size = MAP_APPFONT ( 33 , 10 ) ;
+ Text = "~Von:" ;
+ Text [ ENGLISH ] = "~From:" ;
+ Text [ norwegian ] = "~From:" ;
+ Text [ italian ] = "~Da:" ;
+ Text [ portuguese_brazilian ] = "~De:" ;
+ Text [ portuguese ] = "~De:" ;
+ Text [ finnish ] = "~From:" ;
+ Text [ danish ] = "Fra:" ;
+ Text [ french ] = "~De :" ;
+ Text [ swedish ] = "~Från:" ;
+ Text [ dutch ] = "~Vanaf:" ;
+ Text [ spanish ] = "~Del:" ;
+ Text [ english_us ] = "~From:" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "´Ó(~F)£º";
+ Text[ russian ] = "Îò:";
+ Text[ polish ] = "Od:";
+ Text[ japanese ] = "Žn‚ß:(~F)";
+ Text[ chinese_traditional ] = "±q(~F)¡G";
+ Text[ arabic ] = "ãä:";
+ Text[ greek ] = "Áðü:";
+ Text[ korean ] = "·Î ºÎÅÍ:(~F)";
+ Text[ turkish ] = "Ýlk:";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_FROM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 48 , 40 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ StrictFormat = TRUE ;
+ Minimum = 1 ;
+ Maximum = 999999 ;
+ };
+ FixedText FT_BIS
+ {
+ Pos = MAP_APPFONT ( 75 , 41 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "~Bis:" ;
+ Text [ ENGLISH ] = "~To:" ;
+ Text [ norwegian ] = "~To:" ;
+ Text [ italian ] = "a:" ;
+ Text [ portuguese_brazilian ] = "~Para:" ;
+ Text [ portuguese ] = "~Para:" ;
+ Text [ finnish ] = "~To:" ;
+ Text [ danish ] = "Til:" ;
+ Text [ french ] = "~À :" ;
+ Text [ swedish ] = "~Till:" ;
+ Text [ dutch ] = "~Tot:" ;
+ Text [ spanish ] = "~al:" ;
+ Text [ english_us ] = "~To:" ;
+ Center = TRUE ;
+ Text[ chinese_simplified ] = "ÖÁ(~T)£º";
+ Text[ russian ] = "Äî:";
+ Text[ polish ] = "Do:";
+ Text[ japanese ] = "I‚è:(~T)";
+ Text[ chinese_traditional ] = "¦¬¥óªÌ(~T)";
+ Text[ arabic ] = "Åáì:";
+ Text[ greek ] = "Ðñïò:";
+ Text[ korean ] = "¿¡°Ô:(~T)";
+ Text[ turkish ] = "Son:";
+ Text[ language_user1 ] = "RB: SW Datei - Serienbrief";
+ };
+ NumericField NF_TO
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 105 , 40 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ StrictFormat = TRUE ;
+ Minimum = 1 ;
+ Maximum = 999999 ;
+ };
+ GroupBox GB_RECORD
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 174 , 55 ) ;
+ Text = "Datensätze" ;
+ Text [ ENGLISH ] = "Records" ;
+ Text [ norwegian ] = "Records" ;
+ Text [ italian ] = "Record di dati" ;
+ Text [ portuguese_brazilian ] = "Registros" ;
+ Text [ portuguese ] = "Registos" ;
+ Text [ finnish ] = "Records" ;
+ Text [ danish ] = "Dataposter" ;
+ Text [ french ] = "Enregistrements" ;
+ Text [ swedish ] = "Dataposter" ;
+ Text [ dutch ] = "Records" ;
+ Text [ spanish ] = "Registros" ;
+ Text [ english_us ] = "Records" ;
+ Text[ chinese_simplified ] = "Êý¾ÝÌõÄ¿";
+ Text[ russian ] = "Çàïèñè äàííûõ";
+ Text[ polish ] = "Rekordy";
+ Text[ japanese ] = "Úº°ÄÞ";
+ Text[ chinese_traditional ] = "¸ê®Æ¶µ¥Ø";
+ Text[ arabic ] = "ÇáÓÌáÇÊ";
+ Text[ greek ] = "ÅããñáöÝò";
+ Text[ korean ] = "·¹ÄÚµå";
+ Text[ turkish ] = "Veri kümeleri";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_PRINTER
+ {
+ Pos = MAP_APPFONT ( 12 , 75 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Dr~ucker : ~Drucker */
+ Text = "Dr~ucker" ;
+ Text [ ENGLISH ] = "~Printer" ;
+ Check = TRUE ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "~Printer" ;
+ Text [ english_us ] = "~Printer" ;
+ Text [ italian ] = "Stampante" ;
+ Text [ spanish ] = "~Impresora" ;
+ Text [ french ] = "~Sur l'imprimante" ;
+ Text [ swedish ] = "S~krivare" ;
+ Text [ danish ] = "Printer" ;
+ Text [ portuguese ] = "~Impressora" ;
+ Text [ portuguese_brazilian ] = "~Drucker" ;
+ Text[ chinese_simplified ] = "´òÓ¡»ú(~P)";
+ Text[ russian ] = "Ïðèíòåð";
+ Text[ polish ] = "Drukarka";
+ Text[ japanese ] = "ÌßØÝÀ‚Ö(~P)";
+ Text[ chinese_traditional ] = "¦Lªí¾÷(~P)";
+ Text[ arabic ] = "Åáì ÇáØÇÈÚÉ";
+ Text[ greek ] = "ÅêôõðùôÞò";
+ Text[ korean ] = "ÇÁ¸°ÅÍ(~P)";
+ Text[ turkish ] = "~Yazýcý";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_MAILING
+ {
+ Pos = MAP_APPFONT ( 66 , 75 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Text = "~Mailing" ;
+ Text [ ENGLISH ] = "~Mailing" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "~Mailing" ;
+ Text [ english_us ] = "~Electronic" ;
+ Text [ italian ] = "~Mailing" ;
+ Text [ spanish ] = "~Enviar correo" ;
+ Text [ french ] = "~Par e-mail" ;
+ Text [ swedish ] = "~Mailing" ;
+ Text [ danish ] = "Mailing" ;
+ Text [ portuguese ] = "~Correio-e" ;
+ Text [ portuguese_brazilian ] = "~Mailing" ;
+ Text[ chinese_simplified ] = "µç×ÓÓʼþ(~M)";
+ Text[ russian ] = "Ïî÷òà";
+ Text[ polish ] = "Po~czta";
+ Text[ japanese ] = "Ò°Ù‚Æ‚µ‚Ä(~M)";
+ Text[ chinese_traditional ] = "¹q¤l¶l¥ó(~M)";
+ Text[ arabic ] = "ßÈÑíÏ ÅáßÊÑæäí";
+ Text[ greek ] = "Áëëçëïãñáößá";
+ Text[ korean ] = "ÆíÁö(~M)";
+ Text[ turkish ] = "E-posta";
+ Text[ language_user1 ] = "ENG:the anglicism \"Mailing\" as used in German cannot be used in Eng. because the real meaning has nothing to do with e-mail.EM17.5.00";
+ };
+ RadioButton RB_FILE
+ {
+ Pos = MAP_APPFONT ( 120 , 75 ) ;
+ Size = MAP_APPFONT ( 55 , 10 ) ;
+ Text = "Datei" ;
+ Text [ ENGLISH ] = "File" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "Ficheiro" ;
+ Text [ english_us ] = "File" ;
+ Text [ portuguese_brazilian ] = "Datei" ;
+ Text [ swedish ] = "Fil" ;
+ Text [ danish ] = "Fil" ;
+ Text [ italian ] = "File" ;
+ Text [ spanish ] = "Archivo" ;
+ Text [ french ] = "Dans un fichier" ;
+ Text [ dutch ] = "Bestand" ;
+ Text[ chinese_simplified ] = "Îļþ";
+ Text[ russian ] = "Ôàéë";
+ Text[ polish ] = "Pli~k";
+ Text[ japanese ] = "̧²Ù‚Æ‚µ‚Ä";
+ Text[ chinese_traditional ] = "ÀÉ®×";
+ Text[ arabic ] = "Ýí ãáÝ";
+ Text[ greek ] = "Áñ÷åßï";
+ Text[ korean ] = "ÆÄÀÏ";
+ Text[ turkish ] = "Dosya";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_PATH
+ {
+ Pos = MAP_APPFONT ( 12 , 94 ) ;
+ Size = MAP_APPFONT ( 41 , 10 ) ;
+ Hide = TRUE ;
+ Text = "Pfad" ;
+ Text [ ENGLISH ] = "Path" ;
+ Text [ english_us ] = "Path" ;
+ Text [ portuguese_brazilian ] = "Pfad" ;
+ Text [ swedish ] = "Sökväg" ;
+ Text [ danish ] = "Sti" ;
+ Text [ italian ] = "Percorso" ;
+ Text [ spanish ] = "Ruta" ;
+ Text [ french ] = "Chemin" ;
+ Text [ dutch ] = "Pad" ;
+ Text [ portuguese ] = "Atalho" ;
+ Text[ chinese_simplified ] = "·¾¶";
+ Text[ russian ] = "Ïóòü";
+ Text[ polish ] = "Œcie¿ka";
+ Text[ japanese ] = "Êß½";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¸ô®|";
+ Text[ arabic ] = "ÇáãÓÇÑ";
+ Text[ greek ] = "ÄéáäñïìÞ";
+ Text[ korean ] = "°æ·Î";
+ Text[ turkish ] = "Veri yolu";
+ };
+ Edit ED_PATH
+ {
+ Pos = MAP_APPFONT ( 53 , 93 ) ;
+ Size = MAP_APPFONT ( 101 , 12 ) ;
+ Hide = TRUE ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_PATH
+ {
+ Pos = MAP_APPFONT ( 160 , 93 ) ;
+ Size = MAP_APPFONT ( 14 , 12 ) ;
+ // Soll Groesse des Edits haben (12)!
+ Text = "~..." ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ };
+ FixedText FT_FILENAME
+ {
+ Pos = MAP_APPFONT ( 12 , 116 ) ;
+ Size = MAP_APPFONT ( 102 , 10 ) ;
+ Hide = TRUE ;
+ Text = "Dateiname generiert aus" ;
+ Text [ ENGLISH ] = "Generate filename from" ;
+ Text [ english_us ] = "Generate file name from" ;
+ Text [ portuguese_brazilian ] = "Dateiname generiert aus" ;
+ Text [ swedish ] = "Generera filnamn från" ;
+ Text [ danish ] = "Generer filnavn fra" ;
+ Text [ italian ] = "Nome di file generato da " ;
+ Text [ spanish ] = "Nombre de archivo a partir de" ;
+ Text [ french ] = "Génération du nom de fichier :" ;
+ Text [ dutch ] = "Bestandsnaam ontnemen aan" ;
+ Text [ portuguese ] = "Gerar nome do ficheiro a partir de" ;
+ Text[ chinese_simplified ] = "ÎļþÃûµÄÉú³É·½Ê½";
+ Text[ russian ] = "Èìÿ ôàéëà ñîçäàíî èç";
+ Text[ polish ] = "Generuj nazwê pliku z";
+ Text[ japanese ] = "̧²Ù–¼‚ÌŽw’è‚Í";
+ Text[ chinese_traditional ] = "ÀɮצWªº¥Í¦¨¤è¦¡";
+ Text[ arabic ] = "ÅäÔÇÁ ÇÓã ÇáãáÝ ãä";
+ Text[ greek ] = "Äçìéïõñãßá ïíüìáôïò áñ÷åßïõ áðü";
+ Text[ korean ] = "·ÎºÎÅÍ ÆÄÀÏ À̸§ »ý¼º";
+ Text[ turkish ] = "Dosya adý kaynaðý";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_COLUMN
+ {
+ Pos = MAP_APPFONT ( 18 , 131 ) ;
+ Size = MAP_APPFONT ( 81 , 10 ) ;
+ Text = "Datenbankfeld" ;
+ Text [ ENGLISH ] = "Database field" ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text [ portuguese ] = "Campo da base de dados" ;
+ Text [ english_us ] = "Database field" ;
+ Text [ portuguese_brazilian ] = "Datenbankfeld" ;
+ Text [ swedish ] = "Databasfält" ;
+ Text [ danish ] = "Databasefelt" ;
+ Text [ italian ] = "Campo database" ;
+ Text [ spanish ] = "Campo de base de datos" ;
+ Text [ french ] = "Champ de B.D." ;
+ Text [ dutch ] = "Database-veld" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â×Ö¶Î";
+ Text[ russian ] = "Ïîëå áàçû äàííûõ";
+ Text[ polish ] = "Pole bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½Ì¨°ÙÄÞ‚©‚ç";
+ Text[ chinese_traditional ] = "¸ê®Æ®wÄæ";
+ Text[ arabic ] = "ÍÞá ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "Ðåäßï âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "Å×ÀÌÅͺ£À̽º Çʵå";
+ Text[ turkish ] = "Veritabaný alaný";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FILENAME
+ {
+ Pos = MAP_APPFONT ( 18 , 147 ) ;
+ Size = MAP_APPFONT ( 81 , 10 ) ;
+ Text = "Manueller Vorgabe" ;
+ Text [ ENGLISH ] = "Custom" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Hide = TRUE ;
+ Text [ portuguese ] = "Predefinição manual" ;
+ Text [ english_us ] = "Manual setting" ;
+ Text [ portuguese_brazilian ] = "Manueller Vorgabe" ;
+ Text [ swedish ] = "Anpassa" ;
+ Text [ danish ] = "Manuel forudindstilling" ;
+ Text [ italian ] = "Preimpostazione manuale" ;
+ Text [ spanish ] = "Manualmente" ;
+ Text [ french ] = "Saisie manuelle" ;
+ Text [ dutch ] = "Handmatige voorgift" ;
+ Text[ chinese_simplified ] = "ÊÖ¹¤Ô¤Éè";
+ Text[ russian ] = "Óñòàíîâêà âðó÷íóþ";
+ Text[ polish ] = "Ustawienie rêczne";
+ Text[ japanese ] = "”CˆÓÝ’è";
+ Text[ chinese_traditional ] = "¤â¤u¹w³]";
+ Text[ arabic ] = "ÇáÅÚÏÇÏ ÇáíÏæí";
+ Text[ greek ] = "×åéñïêßíçôç ñýèìéóç";
+ Text[ korean ] = "¼öµ¿ ¼³Á¤";
+ Text[ turkish ] = "Manüel giriþ";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_COLUMN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 100 , 130 ) ;
+ Size = MAP_APPFONT ( 74 , 84 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Hide = TRUE ;
+ };
+ Edit ED_FILENAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 100 , 146 ) ;
+ Size = MAP_APPFONT ( 74 , 12 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ };
+ CheckBox CB_SINGLE_JOBS
+ {
+ Pos = MAP_APPFONT ( 12 , 88 ) ;
+ Size = MAP_APPFONT ( 162 , 10 ) ;
+ Text = "~Einzelne Druckjobs erzeugen" ;
+ Text [ ENGLISH ] = "Si~ngle print jobs" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Single print jobs" ;
+ Text [ portuguese_brazilian ] = "Einzelne Druckjobs erzeugen" ;
+ Text [ swedish ] = "skapa ~enstaka utskriftsjobb" ;
+ Text [ danish ] = "Opret enkelte printerjob" ;
+ Text [ italian ] = "Crea singoli ordini di stampa" ;
+ Text [ spanish ] = "~Crear tareas individuales de impresión" ;
+ Text [ french ] = "~Travaux d'impression individuels" ;
+ Text [ dutch ] = "Af~zonderlijke afdrukjobs" ;
+ Text [ portuguese ] = "C~riar tarefas de impressão individuais" ;
+ Text[ chinese_simplified ] = "Éú³Éµ¥¸ö´òÓ¡ÈÎÎñ(~S)";
+ Text[ russian ] = "Ñîçäàòü îòäåëüíîå çàäàíèå ïå÷àòè";
+ Text[ polish ] = "Utwórz pojedyncze zadania wydruku";
+ Text[ japanese ] = "1‚‚¸‚ˆóü(~S)";
+ Text[ chinese_traditional ] = "¥Í¦¨³æ­Ó¦C¦L¥ô°È(~S)";
+ Text[ arabic ] = "ÅäÔÇÁ æÙÇÆÝ ØÈÇÚÉ ÝÑÏíÉ";
+ Text[ greek ] = "Äçìéïõñãßá ìåìïíùìÝíùí åñãáóéþí åêôýðùóçò";
+ Text[ korean ] = "´ÜÀÏ Àμâ ÀÛ¾÷(~S)";
+ Text[ turkish ] = "Bireysel yazdýrma iþleri oluþtur";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_ADDRESS
+ {
+ Pos = MAP_APPFONT ( 12 , 89 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Disable = TRUE ;
+ Hide = TRUE ;
+ Text = "Adress~feld" ;
+ Text [ ENGLISH ] = "A~ddress Field" ;
+ Text [ english_us ] = "Address ~field" ;
+ Text [ italian ] = "Campo indirizzo" ;
+ Text [ spanish ] = "~Campo dirección" ;
+ Text [ french ] = "~Champ d'adresse" ;
+ Text [ dutch ] = "A~dresveld" ;
+ Text [ swedish ] = "Adress~fält" ;
+ Text [ danish ] = "Adressefelt" ;
+ Text [ portuguese_brazilian ] = "Adressfeld" ;
+ Text [ portuguese ] = "~Campo de endereço" ;
+ Text[ chinese_simplified ] = "µØÖ·À¸(~F)";
+ Text[ russian ] = "Àäðåñíîå ïîëå";
+ Text[ polish ] = "Pole adresowe";
+ Text[ japanese ] = "ZŠÌ¨°ÙÄÞ(~F)";
+ Text[ chinese_traditional ] = "¦a§}Äæ(~F)";
+ Text[ arabic ] = "ÍÞá ÇáÚäæÇä";
+ Text[ greek ] = "Ðåäßï äéåýèõíóçò";
+ Text[ korean ] = "ÁÖ¼Ò Çʵå(~F)";
+ Text[ turkish ] = "Adres alaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_ADDRESSFLD
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 88 ) ;
+ Size = MAP_APPFONT ( 108 , 84 ) ;
+ Disable = TRUE ;
+ Hide = TRUE ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_SUBJECT
+ {
+ Pos = MAP_APPFONT ( 12 , 104 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Disable = TRUE ;
+ /* ### ACHTUNG: Neuer Text in Resource? Be~treff : Betreff */
+ Text = "Be~treff" ;
+ Text [ ENGLISH ] = "S~ubject" ;
+ Text [ english_us ] = "~Subject" ;
+ Text [ italian ] = "~Oggetto" ;
+ Text [ spanish ] = "A~sunto" ;
+ Text [ french ] = "~Objet" ;
+ Text [ dutch ] = "~Betreft" ;
+ Text [ swedish ] = "~Angående" ;
+ Text [ danish ] = "Emne" ;
+ Text [ portuguese_brazilian ] = "Betreff" ;
+ Text [ portuguese ] = "~Assunto" ;
+ Text[ chinese_simplified ] = "ÊÂÓÉ(~S)";
+ Text[ russian ] = "Òåìà";
+ Text[ polish ] = "Temat";
+ Text[ japanese ] = "Œ–¼(~S)";
+ Text[ chinese_traditional ] = "¥D¦®(~S)";
+ Text[ arabic ] = "ÇáãæÖæÚ";
+ Text[ greek ] = "ÈÝìá";
+ Text[ korean ] = "ÁÖÁ¦(~S)";
+ Text[ turkish ] = "Konu";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SUBJECT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 103 ) ;
+ Size = MAP_APPFONT ( 108 , 12 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_ATTACH
+ {
+ Pos = MAP_APPFONT ( 12 , 118 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Disable = TRUE ;
+ Text = "Anhänge" ;
+ Text [ ENGLISH ] = "Attachments" ;
+ Text [ english_us ] = "Attachments" ;
+ Text [ portuguese_brazilian ] = "Anhänge" ;
+ Text [ swedish ] = "Bilagor" ;
+ Text [ danish ] = "Vedhæftede filer" ;
+ Text [ italian ] = "Allegati" ;
+ Text [ spanish ] = "Anexos" ;
+ Text [ french ] = "Fichiers joints" ;
+ Text [ dutch ] = "Aanhangsels" ;
+ Text [ portuguese ] = "Anexos" ;
+ Text[ chinese_simplified ] = "¸½¼þ";
+ Text[ russian ] = "Ïðèëîæåíèÿ";
+ Text[ polish ] = "Za³¹czniki";
+ Text[ japanese ] = "“Y•t";
+ Text[ chinese_traditional ] = "´¡¤JÀÉ®×";
+ Text[ arabic ] = "ÅÑÝÇÞÇÊ";
+ Text[ greek ] = "ÓõíçììÝíá";
+ Text[ korean ] = "÷ºÎ";
+ Text[ turkish ] = "Ekler";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_ATTACH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 117 ) ;
+ Size = MAP_APPFONT ( 88 , 12 ) ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ ReadOnly = TRUE ;
+ };
+ PushButton PB_ATTACH
+ {
+ Pos = MAP_APPFONT ( 160 , 117 ) ;
+ Size = MAP_APPFONT ( 14 , 12 ) ;
+ // Soll Groesse des Edits haben (12)!
+ Text = "~..." ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ };
+ FixedText FT_FORMAT
+ {
+ Pos = MAP_APPFONT ( 12 , 133 ) ;
+ Size = MAP_APPFONT ( 51 , 10 ) ;
+ Disable = TRUE ;
+ Text = "Mail-Format" ;
+ Text [ ENGLISH ] = "Mail format" ;
+ Text [ english_us ] = "Mail Format" ;
+ Text [ portuguese_brazilian ] = "Format" ;
+ Text [ swedish ] = "E-postformat" ;
+ Text [ danish ] = "Mail-format" ;
+ Text [ italian ] = "Formato mail" ;
+ Text [ spanish ] = "Formato de correo" ;
+ Text [ french ] = "Format de message" ;
+ Text [ dutch ] = "Mail-formaat" ;
+ Text [ portuguese ] = "Formato da mensagem" ;
+ Text[ chinese_simplified ] = "Óʼþ¸ñʽ";
+ Text[ russian ] = "Ôîðìàò Mail";
+ Text[ polish ] = "Format wiadomoœci";
+ Text[ japanese ] = "Ò°Ù‘Ž®";
+ Text[ chinese_traditional ] = "¶l¥ó®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÇáÈÑíÏ";
+ Text[ greek ] = "ÌïñöÞ ìçíýìáôïò";
+ Text[ korean ] = "¿ìÆí ¼­½Ä";
+ Text[ turkish ] = "E-posta formatý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FORMAT_HTML
+ {
+ Pos = MAP_APPFONT ( 66 , 133 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Disable = TRUE ;
+ /* ### ACHTUNG: Neuer Text in Resource? HTM~L : HTML */
+ Text = "HTM~L" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "HTM~L" ;
+ Text [ portuguese_brazilian ] = "HTML" ;
+ Text [ swedish ] = "HTM~L" ;
+ Text [ danish ] = "HTML" ;
+ Text [ italian ] = "HTML" ;
+ Text [ spanish ] = "HTM~L" ;
+ Text [ french ] = "HTM~L" ;
+ Text [ dutch ] = "~HTML" ;
+ Text [ portuguese ] = "HTM~L" ;
+ Text[ chinese_simplified ] = "HTML(~L)";
+ Text[ russian ] = "HTM~L";
+ Text[ polish ] = "HTML";
+ Text[ japanese ] = "HTMLŒ`Ž®(~L)";
+ Text[ chinese_traditional ] = "HTM~L";
+ Text[ arabic ] = "HTM~L";
+ Text[ greek ] = "HTML";
+ Text[ korean ] = "HTM~L";
+ Text[ turkish ] = "HTM~L";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FORMAT_RTF
+ {
+ Pos = MAP_APPFONT ( 66 , 145 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Disable = TRUE ;
+ Text = "~RTF" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "RT~F" ;
+ Text [ portuguese_brazilian ] = "RTF" ;
+ Text [ swedish ] = "~RTF" ;
+ Text [ danish ] = "RTF" ;
+ Text [ italian ] = "RTF" ;
+ Text [ spanish ] = "R~TF" ;
+ Text [ french ] = "~RTF" ;
+ Text [ dutch ] = "~RTF" ;
+ Text [ portuguese ] = "~RTF" ;
+ Text[ chinese_simplified ] = "RTF(~F)";
+ Text[ russian ] = "~RTF";
+ Text[ polish ] = "RTF";
+ Text[ japanese ] = "RTF(~F)";
+ Text[ chinese_traditional ] = "RT~F";
+ Text[ arabic ] = "RTF~";
+ Text[ greek ] = "RTF";
+ Text[ korean ] = "RT~F";
+ Text[ turkish ] = "~RTF";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FORMAT_SW
+ {
+ Pos = MAP_APPFONT ( 66 , 157 ) ;
+ Size = MAP_APPFONT ( 108 , 10 ) ;
+ Disable = TRUE ;
+ Text = "~StarOffice Writer" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~StarOffice Writer" ;
+ Text [ portuguese_brazilian ] = "StarOffice Writer" ;
+ Text [ swedish ] = "~StarOffice Writer" ;
+ Text [ danish ] = "StarOffice Writer" ;
+ Text [ italian ] = "~StarOffice Writer" ;
+ Text [ spanish ] = "~StarOffice Writer" ;
+ Text [ french ] = "StarOffice ~Writer" ;
+ Text [ dutch ] = "~StarOffice Writer" ;
+ Text [ portuguese ] = "~StarOffice Writer" ;
+ Text[ chinese_simplified ] = "StarOffice Writer";
+ Text[ russian ] = "~StarOffice Writer";
+ Text[ polish ] = "~StarOffice Writer";
+ Text[ japanese ] = "StarOffice Writer";
+ Text[ chinese_traditional ] = "~StarOffice Writer";
+ Text[ arabic ] = "StarOffice Writer~";
+ Text[ greek ] = "StarOffice Writer";
+ Text[ korean ] = "~StarOffice Writer";
+ Text[ turkish ] = "~StarOffice Writer";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_DEST
+ {
+ Pos = MAP_APPFONT ( 6 , 64 ) ;
+ Size = MAP_APPFONT ( 174 , 109 ) ;
+ Text = "Ausgabe" ;
+ Text [ ENGLISH ] = "Destination" ;
+ Text [ english_us ] = "Output" ;
+ Text [ italian ] = "Destinazione" ;
+ Text [ spanish ] = "Destino" ;
+ Text [ french ] = "Sortie" ;
+ Text [ dutch ] = "Uitgave" ;
+ Text [ swedish ] = "Utdata" ;
+ Text [ danish ] = "Output" ;
+ Text [ portuguese_brazilian ] = "Ausgabe" ;
+ Text [ portuguese ] = "Destino" ;
+ Text[ chinese_simplified ] = "Êä³ö";
+ Text[ russian ] = "Âûâîä";
+ Text[ polish ] = "Wyjœcie";
+ Text[ japanese ] = "±³ÄÌ߯Ä";
+ Text[ chinese_traditional ] = "¿é¥X";
+ Text[ arabic ] = "ÇáÅÎÑÇÌ";
+ Text[ greek ] = "ÅîáãùãÞ";
+ Text[ korean ] = "Ãâ·Â";
+ Text[ turkish ] = "Çýktý";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BTN_OK
+ {
+ Pos = MAP_APPFONT ( 186 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ DefButton = TRUE ;
+ };
+ CancelButton BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 186 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ HelpButton BTN_HELP
+ {
+ Pos = MAP_APPFONT ( 186 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ Text[ chinese_simplified ] = "ÓʼþºÏ²¢";
+ Text[ russian ] = "Ñëèÿíèå";
+ Text[ polish ] = "List seryjny";
+ Text[ japanese ] = "·‚µž‚݈óü";
+ Text[ chinese_traditional ] = "¦X¨Ö¦C¦L";
+ Text[ arabic ] = "ÎØÇÈ ãÓáÓá";
+ Text[ greek ] = "ÏìáäéêÞ åðéóôïëÞ";
+ Text[ korean ] = "ÆíÁö º´ÇÕ";
+ Text[ turkish ] = "Standart mektup";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/envelp/makefile.mk b/sw/source/ui/envelp/makefile.mk
new file mode 100644
index 000000000000..b0cc87381e9d
--- /dev/null
+++ b/sw/source/ui/envelp/makefile.mk
@@ -0,0 +1,122 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=envelp
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ envfmt.cxx \
+ envimg.cxx \
+ envlop1.cxx \
+ envprt.cxx \
+ label1.cxx \
+ labfmt.cxx \
+ labprt.cxx \
+ labimg.cxx \
+ mailmrge.cxx \
+ syncbtn.cxx
+
+SRCFILES =\
+ envelp.src \
+ envfmt.src \
+ envlop.src \
+ envprt.src \
+ label.src \
+ labfmt.src \
+ labprt.src \
+ mailmrge.src
+
+SLOFILES = \
+ $(SLO)$/envfmt.obj \
+ $(SLO)$/envimg.obj \
+ $(SLO)$/envlop1.obj \
+ $(SLO)$/envprt.obj \
+ $(SLO)$/label1.obj \
+ $(SLO)$/labfmt.obj \
+ $(SLO)$/labprt.obj \
+ $(SLO)$/labimg.obj \
+ $(SLO)$/mailmrge.obj \
+ $(SLO)$/syncbtn.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/label1.obj
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/envelp/syncbtn.cxx b/sw/source/ui/envelp/syncbtn.cxx
new file mode 100644
index 000000000000..5af231ba39c4
--- /dev/null
+++ b/sw/source/ui/envelp/syncbtn.cxx
@@ -0,0 +1,171 @@
+/*************************************************************************
+ *
+ * $RCSfile: syncbtn.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "uiparam.hxx"
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+
+#include "cmdid.h"
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "label.hrc"
+
+#define _SYNCDLG
+#include "syncbtn.hxx"
+#include "swtypes.hxx"
+
+SFX_IMPL_FLOATINGWINDOW( SwSyncChildWin, FN_SYNC_LABELS )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwSyncChildWin::SwSyncChildWin( Window* pParent,
+ USHORT nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo ) :
+ SfxChildWindow( pParent, nId )
+{
+ pWindow = new SwSyncBtnDlg( pBindings, this, pParent);
+
+ if (!pInfo->aSize.Width() || !pInfo->aSize.Height())
+ {
+ const SwEditWin &rEditWin = ::GetActiveView()->GetEditWin();
+ pWindow->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
+ pInfo->aPos = pWindow->GetPosPixel();
+ pInfo->aSize = pWindow->GetSizePixel();
+ }
+
+ ((SwSyncBtnDlg *)pWindow)->Initialize(pInfo);
+
+ pWindow->Show();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwSyncBtnDlg::SwSyncBtnDlg( SfxBindings* pBindings,
+ SfxChildWindow* pChild,
+ Window *pParent) :
+ SfxFloatingWindow(pBindings, pChild, pParent, SW_RES(DLG_SYNC_BTN)),
+ aSyncBtn (this, SW_RES(BTN_SYNC ))
+{
+ FreeResource();
+ aSyncBtn.SetClickHdl(LINK(this, SwSyncBtnDlg, BtnHdl));
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+__EXPORT SwSyncBtnDlg::~SwSyncBtnDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwSyncBtnDlg, BtnHdl, PushButton *, pBtn )
+{
+ SfxViewFrame::Current()->GetDispatcher()->Execute(FN_UPDATE_ALL_LINKS, SFX_CALLMODE_ASYNCHRON);
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.6 2000/09/18 16:05:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.5 2000/09/07 15:59:23 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.4 1998/03/18 10:27:32 OM
+ #48713# SynchronButton initial oben links positionieren
+
+
+ Rev 1.3 18 Mar 1998 11:27:32 OM
+ #48713# SynchronButton initial oben links positionieren
+
+ Rev 1.2 16 Mar 1998 20:11:34 OM
+ Initial in der View positionieren
+
+ Rev 1.1 16 Mar 1998 16:17:40 OM
+ Aktualisieren-Button kontextsensitiv
+
+ Rev 1.0 15 Mar 1998 14:09:52 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
new file mode 100644
index 000000000000..51fb0631bece
--- /dev/null
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -0,0 +1,663 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _CHANGEDB_CXX
+
+#include <svtools/stdctrl.hxx>
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#else
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SBA_SBAOBJ_HXX //autogen
+#include <offmgr/sbaobj.hxx>
+#endif
+
+#endif
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _TXTATR_HXX
+#include <txtatr.hxx>
+#endif
+#ifndef _NDTXT_HXX
+#include <ndtxt.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _CHANGEDB_HXX
+#include <changedb.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _CHANGEDB_HRC
+#include <changedb.hrc>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+//using namespace com::sun::star::sdb;
+//using namespace com::sun::star::sdbc;
+//using namespace com::sun::star::sdbcx;
+//using namespace com::sun::star::beans;
+#define C2U(cChar) OUString::createFromAscii(cChar)
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldeinfuegen bearbeiten
+ --------------------------------------------------------------------*/
+
+
+SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) :
+ SvxStandardDialog(&rVw.GetViewFrame()->GetWindow(), SW_RES(DLG_CHANGE_DB)),
+
+ aDescFT (this, SW_RES(FT_DESC )),
+ aUsedDBFT (this, SW_RES(FT_USEDDB )),
+ aAvailDBFT (this, SW_RES(FT_AVAILDB )),
+ aDBListGB (this, SW_RES(GB_DBLIST )),
+ aUsedDBTLB (this, SW_RES(TLB_USEDDB )),
+ aAvailDBTLB (this, SW_RES(TLB_AVAILDB )),
+ aDocDBTextFT(this, SW_RES(FT_DOCDBTEXT )),
+ aDocDBNameFT(this, SW_RES(FT_DOCDBNAME )),
+ aOKBT (this, SW_RES(BT_OK )),
+ aCancelBT (this, SW_RES(BT_CANCEL )),
+ aHelpBT (this, SW_RES(BT_HELP )),
+// aChangeBT (this, SW_RES(BT_CHANGEDB )),
+
+ aRootOpened (SW_RES(BMP_ROOT_CLOSED)),
+ aRootClosed (SW_RES(BMP_ROOT_OPENED)),
+ aDBBMP (SW_RES(BMP_DB)),
+ aTableBMP (SW_RES(BMP_TABLE)),
+
+ pMgr( new SwFldMgr() ),
+ pSh(rVw.GetWrtShellPtr())
+{
+ FillDBPopup();
+
+ FreeResource();
+
+ ShowDBName(pSh->GetDBName());
+ aOKBT.SetClickHdl(LINK(this, SwChangeDBDlg, ButtonHdl));
+
+ aUsedDBTLB.SetSelectionMode(MULTIPLE_SELECTION);
+ aUsedDBTLB.SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
+ aUsedDBTLB.SetFont(GetSettings().GetStyleSettings().GetAppFont());
+ aUsedDBTLB.SetSpaceBetweenEntries(0);
+ aUsedDBTLB.SetNodeBitmaps( aRootOpened, aRootClosed );
+
+ Link aLink = LINK(this, SwChangeDBDlg, TreeSelectHdl);
+
+ aUsedDBTLB.SetSelectHdl(aLink);
+ aUsedDBTLB.SetDeselectHdl(aLink);
+ aAvailDBTLB.SetSelectHdl(aLink);
+ aAvailDBTLB.SetDeselectHdl(aLink);
+ TreeSelectHdl();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Datenbank-Listboxen initialisieren
+ --------------------------------------------------------------------*/
+
+
+void SwChangeDBDlg::FillDBPopup()
+{
+#ifdef REPLACE_OFADBMGR
+ Reference<XNameAccess> xDBContext;
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+// SwNewDBMgr* pNewDBMgr = pSh->GetNewDBMgr();
+
+// String sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+// SfxApplication* pSfxApp = SFX_APP();
+// sDBNames = pSfxApp->LocalizeDBName(INI2NATIONAL, sDBNames);
+
+// USHORT nDBNamesCount = sDBNames.GetTokenCount();
+
+ String sDataBaseName(pSh->GetDBName());
+ String sDBName(sDataBaseName.GetToken(0, DB_DELIM));
+ String sTableName(sDataBaseName.GetToken(1, DB_DELIM));
+ aAvailDBTLB.Select(sDBName, sTableName, aEmptyStr);
+
+// sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+ SvStringsDtor aAllDBNames(5, 5);
+
+ Sequence<OUString> aDBNames = xDBContext->getElementNames();
+ const OUString* pDBNames = aDBNames.getConstArray();
+ long nDBCount = aDBNames.getLength();
+
+ for(long i = 0; i < nDBCount; i++)
+ {
+ String sDBName(pDBNames[i]);
+ aAllDBNames.Insert(new String(sDBName), aAllDBNames.Count());
+ }
+
+ SvStringsDtor aDBNameList(5, 1);
+ pSh->GetAllUsedDB( aDBNameList, &aAllDBNames );
+
+ USHORT nCount = aDBNameList.Count();
+ aUsedDBTLB.Clear();
+ SvLBoxEntry *pFirst = 0;
+ SvLBoxEntry *pLast = 0;
+
+ for (i = 0; i < nCount; i++)
+ {
+ sDBName = *aDBNameList.GetObject(i);
+ sDBName = sDBName.GetToken(0);
+ pLast = Insert(sDBName);
+ if (!pFirst)
+ pFirst = pLast;
+ }
+
+ if (pFirst)
+ {
+ aUsedDBTLB.MakeVisible(pFirst);
+ aUsedDBTLB.Select(pFirst);
+ }
+
+#else
+
+ SwNewDBMgr* pNewDBMgr = pSh->GetNewDBMgr();
+
+ String sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+ SfxApplication* pSfxApp = SFX_APP();
+ sDBNames = pSfxApp->LocalizeDBName(INI2NATIONAL, sDBNames);
+
+ USHORT nDBNamesCount = sDBNames.GetTokenCount();
+
+
+
+// if (rDBName.Len())
+// sDBName = pSfxApp->LocalizeDBName(INI2NATIONAL, rDBName);
+// else
+ String sDBName = pSfxApp->LocalizeDBName(INI2NATIONAL, pSh->GetDBName());
+ aAvailDBTLB.Select(sDBName);
+
+ SvStringsDtor aDBNameList(5, 1);
+
+ sDBNames = pNewDBMgr->GetSbaObject()->GetDatabaseNames();
+ SvStringsDtor aAllDBNames(5, 5);
+ for (USHORT i = 0; i < nDBNamesCount; i++)
+#ifdef UNX
+ aAllDBNames.Insert(new String(sDBNames.GetToken(i)), aAllDBNames.Count());
+#else
+ aAllDBNames.Insert(new String(sDBNames.GetToken(i).ToUpperAscii()), aAllDBNames.Count());
+#endif
+
+
+ pSh->GetAllUsedDB( aDBNameList, &aAllDBNames );
+
+ USHORT nCount = aDBNameList.Count();
+ aUsedDBTLB.Clear();
+ SvLBoxEntry *pFirst = 0;
+ SvLBoxEntry *pLast = 0;
+
+ for (i = 0; i < nCount; i++)
+ {
+ sDBName = pNewDBMgr->ExtractDBName(*aDBNameList.GetObject(i));
+
+#ifndef UNX
+ // Richtige Schreibweise ermitteln (upper/lower-case)
+ for (USHORT i2 = 0; i2 < nDBNamesCount; i2++)
+ {
+ if (sDBName.GetToken(0, DB_DELIM).ToUpperAscii() == sDBNames.GetToken(i2).ToUpperAscii())
+ {
+ sDBName = sDBNames.GetToken(i2);
+ break;
+ }
+ }
+#endif
+ pLast = Insert(sDBName);
+ if (!pFirst)
+ pFirst = pLast;
+ }
+
+ if (pFirst)
+ {
+ aUsedDBTLB.MakeVisible(pFirst);
+ aUsedDBTLB.Select(pFirst);
+ }
+#endif //REPLACE_OFADBMGR
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SvLBoxEntry* SwChangeDBDlg::Insert(const String& rDBName)
+{
+ String sDBName(rDBName.GetToken(0, DB_DELIM));
+ String sTableName(rDBName.GetToken(1, DB_DELIM));
+ SvLBoxEntry* pParent;
+ SvLBoxEntry* pChild;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ sDBName = SFX_APP()->LocalizeDBName(INI2NATIONAL, sDBName);
+#endif //REPLACE_OFADBMGR
+
+ USHORT nParent = 0;
+ USHORT nChild = 0;
+
+#ifdef REPLACE_OFADBMGR
+ while ((pParent = aUsedDBTLB.GetEntry(nParent++)) != NULL)
+ {
+ if (sDBName == aUsedDBTLB.GetEntryText(pParent))
+ {
+ while ((pChild = aUsedDBTLB.GetEntry(pParent, nChild++)) != NULL)
+ {
+ if (sTableName == aUsedDBTLB.GetEntryText(pChild))
+ return pChild;
+ }
+ return aUsedDBTLB.InsertEntry(sTableName, aTableBMP, aTableBMP, pParent);
+ }
+ }
+#else
+ while ((pParent = aUsedDBTLB.GetEntry(nParent++)) != NULL)
+ {
+#ifdef UNX
+ if (sDBName == aUsedDBTLB.GetEntryText(pParent))
+#else
+ if (sDBName.ToUpperAscii() == aUsedDBTLB.GetEntryText(pParent).ToUpperAscii())
+#endif
+ {
+ while ((pChild = aUsedDBTLB.GetEntry(pParent, nChild++)) != NULL)
+ {
+#ifdef UNX
+ if (sTableName == aUsedDBTLB.GetEntryText(pChild))
+#else
+ if (sTableName.ToUpperAscii() == aUsedDBTLB.GetEntryText(pChild).ToUpperAscii())
+#endif
+ return pChild;
+ }
+ return aUsedDBTLB.InsertEntry(sTableName, aTableBMP, aTableBMP, pParent);
+ }
+ }
+#endif
+ pParent = aUsedDBTLB.InsertEntry(sDBName, aDBBMP, aDBBMP);
+ return aUsedDBTLB.InsertEntry(sTableName, aTableBMP, aTableBMP, pParent);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Dialog zerstoeren
+ --------------------------------------------------------------------*/
+
+
+__EXPORT SwChangeDBDlg::~SwChangeDBDlg()
+{
+ delete pMgr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Schliessen
+ --------------------------------------------------------------------*/
+
+
+void __EXPORT SwChangeDBDlg::Apply()
+{
+ UpdateFlds();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwChangeDBDlg::UpdateFlds()
+{
+ SvStringsDtor aDBNames( (BYTE)aUsedDBTLB.GetSelectionCount(), 1 );
+ SvLBoxEntry* pEntry = aUsedDBTLB.FirstSelected();
+
+ while( pEntry )
+ {
+ if( aUsedDBTLB.GetParent( pEntry ))
+ {
+ String* pTmp = new String( aUsedDBTLB.GetEntryText(
+ aUsedDBTLB.GetParent( pEntry )));
+#ifdef REPLACE_OFADBMGR
+#else
+ *pTmp = SFX_APP()->LocalizeDBName( NATIONAL2INI, *pTmp);
+#endif
+ *pTmp += DB_DELIM;
+ *pTmp += aUsedDBTLB.GetEntryText( pEntry );
+ aDBNames.Insert(pTmp, aDBNames.Count() );
+ }
+ pEntry = aUsedDBTLB.NextSelected(pEntry);
+ }
+
+ pSh->StartAllAction();
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sTemp(aAvailDBTLB.GetDBName(sTableName, sColumnName));
+ sTemp += DB_DELIM;
+ sTemp += sTableName;
+ pSh->ChangeDBFields( aDBNames, sTemp);
+#else
+ pSh->ChangeDBFields( aDBNames, aAvailDBTLB.GetDBName());
+#endif
+ pSh->EndAllAction();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwChangeDBDlg, ButtonHdl, Button *, pBtn )
+{
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sTemp(aAvailDBTLB.GetDBName(sTableName, sColumnName));
+ sTemp += DB_DELIM;
+ sTemp += sTableName;
+ sTemp += DB_DELIM;
+ sTemp += sColumnName;
+ pSh->ChgDBName(sTemp);
+#else
+ String sNewDBName(aAvailDBTLB.GetDBName());
+ pSh->ChgDBName(sNewDBName);
+#endif
+ ShowDBName(pSh->GetDBName());
+ EndDialog(RET_OK);
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwChangeDBDlg, TreeSelectHdl, SvTreeListBox *, pBox )
+{
+ BOOL bEnable = FALSE;
+
+ SvLBoxEntry* pEntry = aAvailDBTLB.GetCurEntry();
+
+ if (pEntry)
+ {
+ if (aAvailDBTLB.GetParent(pEntry))
+ bEnable = TRUE;
+ aOKBT.Enable( bEnable );
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Datenbankname fuer Anzeige wandeln
+ --------------------------------------------------------------------*/
+
+void SwChangeDBDlg::ShowDBName(const String& rDBName)
+{
+ String sTmp(rDBName.GetToken(0, DB_DELIM));
+ String sName;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ sTmp = SFX_APP()->LocalizeDBName(INI2NATIONAL, sTmp);
+#endif
+ sTmp += '.';
+ sTmp += rDBName.GetToken(1, DB_DELIM);
+
+ for (USHORT i = 0; i < sTmp.Len(); i++)
+ {
+ sName += sTmp.GetChar(i);
+ if (sTmp.GetChar(i) == '~')
+ sName += '~';
+ }
+
+ aDocDBNameFT.SetText(sName);
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.43 2000/09/18 16:05:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.42 2000/07/07 15:25:43 os
+ replace ofadbmgr
+
+ Revision 1.41 2000/06/26 13:35:59 os
+ new DataBase API
+
+ Revision 1.40 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.39 2000/03/03 15:17:00 os
+ StarView remainders removed
+
+ Revision 1.38 2000/02/11 14:46:04 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.37 2000/01/31 12:53:09 os
+ #72339# dialog needs one apply button only
+
+ Revision 1.36 1999/09/29 06:49:52 mh
+ chg: header
+
+ Revision 1.35 1999/06/09 17:34:28 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+
+ Rev 1.34 09 Jun 1999 19:34:28 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.33 04 Feb 1999 21:18:30 JP
+ Bug #61404#/#61014#: Optimierung der Schnittstellen
+
+ Rev 1.32 19 Nov 1998 13:18:44 OM
+ #59660# Eintrag vorselektieren
+
+ Rev 1.31 06 Nov 1997 17:03:22 OM
+ Geaenderte DB-Selektionsbox
+
+ Rev 1.30 03 Nov 1997 13:18:10 MA
+ precomp entfernt
+
+ Rev 1.29 30 Oct 1997 14:30:48 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.28 18 Sep 1997 14:34:04 OM
+ Feldumstellung
+
+ Rev 1.27 02 Sep 1997 09:55:54 OM
+ SDB-Headeranpassung
+
+ Rev 1.26 15 Aug 1997 12:11:20 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.25 06 Aug 1997 13:39:54 TRI
+ VCL: GetpApp() statt pApp
+
+ Rev 1.24 23 Jul 1997 20:25:52 HJS
+ includes
+
+ Rev 1.23 14 May 1997 19:01:46 OM
+ Datenbank auch in ExpressionFields austauschen
+
+ Rev 1.22 13 May 1997 13:11:06 OM
+ #39586# Datenbank festlegen beendet Dialog
+
+ Rev 1.21 08 Apr 1997 12:44:38 MA
+ includes
+
+ Rev 1.20 07 Apr 1997 18:23:06 MH
+ chg: header
+
+ Rev 1.19 18 Mar 1997 15:24:14 OM
+ Sortierte Treelistbox
+
+ Rev 1.18 11 Nov 1996 09:56:04 MA
+ ResMgr
+
+ Rev 1.17 28 Oct 1996 11:29:52 OM
+ #32799#Namen der aktuellen Datenbank korrekt anzeigen
+
+ Rev 1.16 02 Oct 1996 16:50:26 MA
+ Umstellung Enable/Disable
+
+ Rev 1.15 25 Sep 1996 14:11:42 OM
+ Neue Datenbanktrenner
+
+ Rev 1.14 28 Aug 1996 12:13:32 OS
+ includes
+
+ Rev 1.13 14 Aug 1996 11:45:54 OM
+ Neue Segs
+
+ Rev 1.12 14 Aug 1996 11:44:34 OM
+ Datenbankumstellung
+
+ Rev 1.11 23 Jul 1996 16:08:30 OM
+ Neue Segs
+
+ Rev 1.10 23 Jul 1996 16:07:28 OM
+ Datenbank am Dok umsetzen
+
+ Rev 1.9 17 Jul 1996 13:47:30 OM
+ Datenbankumstellung 327
+
+ Rev 1.8 23 May 1996 16:34:40 OM
+ DB-Namen in Expressionfields austauschen
+
+ Rev 1.7 23 May 1996 15:29:02 OM
+ Schreibweise der DB-Namen restaurieren
+
+ Rev 1.6 22 May 1996 12:04:38 OM
+ ChangeDBFields an Doc verlagert
+
+ Rev 1.5 20 May 1996 16:33:28 OM
+ Nur verwendete Datenbanken zu Auswahl stellen
+
+ Rev 1.4 20 May 1996 11:06:44 OM
+ ChangeDBFields in die EditShell verlagert
+
+ Rev 1.3 15 May 1996 17:05:28 OM
+ Neue Segs
+
+ Rev 1.2 15 May 1996 17:05:02 OM
+ Datenbanken austauschen
+
+ Rev 1.1 15 May 1996 14:02:22 OM
+ Neue Segs
+
+ Rev 1.0 15 May 1996 14:01:12 OM
+ Initial revision.
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/fldui/changedb.hrc b/sw/source/ui/fldui/changedb.hrc
new file mode 100644
index 000000000000..0588662bafbe
--- /dev/null
+++ b/sw/source/ui/fldui/changedb.hrc
@@ -0,0 +1,93 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _CHANGEDB_HRC
+#define _CHANGEDB_HRC
+
+// #include -----------------------------------------------------------------
+
+// Elemente -----------------------------------------------------------------
+
+#define FT_DESC 1
+#define FT_DOCDBTEXT 2
+#define FT_DOCDBNAME 3
+#define BT_CHANGEDB 4
+#define FT_USEDDB 5
+#define FT_AVAILDB 6
+#define TLB_USEDDB 7
+#define TLB_AVAILDB 8
+#define GB_DBLIST 9
+#define BT_OK 10
+#define BT_CANCEL 11
+#define BT_HELP 11
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bitmaps
+ --------------------------------------------------------------------*/
+
+#define BMP_ROOT_CLOSED 1
+#define BMP_ROOT_OPENED 2
+#define BMP_DB 3
+#define BMP_TABLE 4
+
+#endif
+
+
diff --git a/sw/source/ui/fldui/changedb.src b/sw/source/ui/fldui/changedb.src
new file mode 100644
index 000000000000..53c74a8a33ad
--- /dev/null
+++ b/sw/source/ui/fldui/changedb.src
@@ -0,0 +1,413 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "changedb.hrc"
+#include "fldui.hrc"
+
+#define IMAGE_STDBTN_COLOR Color { Red = 0xff00 ; Green = 0x0000 ; Blue = 0xff00 ; }
+
+ModalDialog DLG_CHANGE_DB
+{
+ // HelpID = HID_EDIT_FIELD;
+ OutputSize = TRUE ;
+ // Hide = TRUE;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 266 , 151 ) ;
+ Text = "Datenbank austauschen" ;
+ Text [ ENGLISH ] = "Change Database Name" ;
+ Text [ english_us ] = "Exchange Databases" ;
+ Text [ italian ] = "Scambia database" ;
+ Text [ spanish ] = "Cambiar Bases de Datos" ;
+ Text [ french ] = "Changer de base de données" ;
+ Text [ dutch ] = "Database wisselen" ;
+ Text [ swedish ] = "Byt databas" ;
+ Text [ danish ] = "Udskift database" ;
+ Text [ portuguese_brazilian ] = "Datenbank austauschen" ;
+ Text [ portuguese ] = "Substituir base de dados" ;
+ Moveable = TRUE ;
+ FixedText FT_DESC
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 190 , 45 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? In diesem Dialog können Sie Datenbanken, auf die Sie in Ihrem Dokument über Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie können nur eine Änderung pro Arbeitsgang durchführen. In der linken Liste ist Mehrfachselektion möglich. : In diesem Dialog k÷nnen Sie Datenbanken, auf die Sie in Ihrem Dokument ³ber Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie k÷nnen nur eine Žnderung pro Arbeitsgang durchf³hren. In der linken Liste ist Mehrfachselektion m÷glich. */
+ Text = "In diesem Dialog können Sie Datenbanken, auf die Sie in Ihrem Dokument über Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie können nur eine Änderung pro Arbeitsgang durchführen. In der linken Liste ist Mehrfachselektion möglich." ;
+ Text [ ENGLISH ] = "???" ;
+ WordBreak = TRUE ;
+ Left = TRUE ;
+ Text [ english_us ] = "Use this dialog to exchange the database accessed in your document via database fields with another one. You can only make one change at a time. Multiple selection is possible in the list on the left." ;
+ Text [ italian ] = "In questo dialogo si possono scambiare database ai quali si accede tramite campi di database. Si può effettuare una modifica per volta. Nell'elenco di sinistra è possibile una selezione multipla." ;
+ Text [ spanish ] = "En este diálogo puede intercambiar por otras las bases de datos a las que acceda a través de los campos. Se puede realizar solo un cambio por fase de trabajo. En la lista izquierda es posible hacer una selección múltiple." ;
+ Text [ french ] = "Cette boîte de dialogue vous permet d'échanger les bases de données auxquelles vous accédez dans vos documents par des champs de formulaire. Vous pouvez exécuter une seule modification par saisie. La liste de gauche permet une sélection multiple." ;
+ Text [ dutch ] = "In deze dialoog kunt u gegevensbestanden waarop u in uw document via de speciale velden betrekking neemt, door andere gegevensbestanden vervangen. In de linker lijst is een meervoudige keuze mogelijk." ;
+ Text [ swedish ] = "I denna dialog kan man byta ut de databaser, som kan nås via databasfältet i Ditt dokument, mot andra databaser. Man kan bara göra en ändring åt gången. I den vänstra listen finns möjlighet till multipel markering." ;
+ Text [ danish ] = "I denne dialog kan du udskifte databaser, som du har adgang til via databasefelter. Du kan kun udføre en ændring ad gangen. I listen til venstre er der mulighed for multimarkering." ;
+ Text [ portuguese_brazilian ] = "In diesem Dialog können Sie Datenbanken, auf die Sie in Ihrem Dokument über Datenbankfelder zugreifen, durch andere Datenbanken austauschen. Sie können nur eine Änderung pro Arbeitsgang durchführen. In der linken Liste ist Mehrfachselektion möglich." ;
+ Text [ portuguese ] = "Nesta caixa de diálogo poderá substituir bases de dados por outras, tendo acesso a elas no seu documento através dos campos da base de dados. É apenas possível uma alteração por cada operação. Na lista da esquerda poderá seleccionar várias opções." ;
+ Text[ chinese_simplified ] = "ÔÚÕâ¸ö¶Ô»°¿òÄÚÄúÄܹ»Ê¹ÓÃÒ»¸öÆäËûÊý¾Ý¿âÀ´´úÌæÄúµ±Ç°±à¼­µÄÎĵµËùʹÓõÄÊý¾Ý¿â¡£Ã¿´ÎÄúÖ»ÄÜ×öÒ»Ïî¸ü¸Ä¡£ÔÚ×ó·½µÄÁе¥ÄÚÄú¿ÉÒÔ½øÐжàÖØÑ¡Ôñ¡£";
+ Text[ russian ] = "Â ýòîì äèàëîãå Âû ìîæåòå çàìåíèòü áàçû äàííûõ, äîñòóï ê êîòîðûì âîçìîæåí ïðè ïîìîùè ïîëåé áàçû äàííûõ, äðóãèìè áàçàìè äàííûõ. Çà îäíó îïåðàöèþ Âû ìîæåòå ïðîèçâåñòè òîëüêî îäíî èçìåíåíèå. Â ñïèñêå ñëåâà âîçìîæíî ìíîãîêðàòíîå âûäåëåíèå.";
+ Text[ polish ] = "W tym dialogu mo¿esz wymieniæ dostêpne w twoim dokumencie poprzez pola bazy danych na inne. Mo¿esz dokonaæ tylko jednej zmiany podczas sesji roboczej. Na liœcie z lewej strony mo¿liwa jest wielokrotna selekcja.";
+ Text[ japanese ] = "‚±‚ÌÀÞ²±Û¸Þ‚Å‚ÍÃÞ°ÀÍÞ°½Ì¨°ÙÄÞ‚ð’Ê‚µ‚ÄAÄÞ·­ÒÝĂɱ¸¾½‚·‚éÃÞ°ÀÍÞ°½‚𑼂ÌÃÞ°ÀÍÞ°½‚ÆŒðŠ·‚Å‚«‚Ü‚·Bˆê“x‚É1‚‚̕ÏX‚µ‚©‚Å‚«‚Ü‚¹‚ñB¶‚ÌؽĂł͕¡”‘I‘ð‚ª‰Â”\\‚Å‚·B";
+ Text[ chinese_traditional ] = "¦b³o­Ó¹ï¸Ü¤è¶ô¤º±z¯à°÷¨Ï¥Î¤@­Ó¨ä¥L¸ê®Æ®w¨Ó¥N´À±z·í«e½s¿èªº¤å¥ó©Ò¨Ï¥Îªº¸ê®Æ®w¡C±z¨C¦¸¥u¯à§@¤@¦¸Åܧó¡C±z¯à°÷¦b¥ªÄ椺§@¦h­«¿ï¾Ü¡C";
+ Text[ arabic ] = "Ýí ãÑÈÚ ÇáÍæÇÑ åÐÇ¡ íãßäß ÇÓÊÈÏÇá ÞæÇÚÏ ÇáÈíÇäÇÊ¡ ÇáÊí ÊÕá ÅáíåÇ Ýí ãÓÊäÏß ÈæÇÓØÉ ÍÞæá ÞæÇÚÏ ÇáÈíÇäÇÊ¡ ÈÃÎÑì. áÇÍÙ Ãäå íãßäß Úãá ÊÛííÑ æÇÍÏ ÝÞØ ßá ãÑÉ. íãßä Úãá ÃßËÑ ãä ÊÍÏíÏ Ýí ÇáÞÇÆãÉ ÇáíÓÑì.";
+ Text[ dutch ] = "In deze dialoog kunt u gegevensbestanden waarop u in uw document via de speciale velden betrekking neemt, door andere gegevensbestanden vervangen. In de linker lijst is een meervoudige keuze mogelijk.";
+ Text[ chinese_simplified ] = "ÔÚÕâ¸ö¶Ô»°¿òÄÚÄúÄܹ»Ê¹ÓÃÒ»¸öÆäËûÊý¾Ý¿âÀ´´úÌæÄúµ±Ç°±à¼­µÄÎĵµËùʹÓõÄÊý¾Ý¿â¡£Ã¿´ÎÄúÖ»ÄÜ×öÒ»Ïî¸ü¸Ä¡£ÔÚ×ó·½µÄÁе¥ÄÚÄú¿ÉÒÔ½øÐжàÖØÑ¡Ôñ¡£";
+ Text[ greek ] = "Óå áõôüí ôïí äéÜëïãï ìðïñåßôå íá áíôáëëÜîåôå ôéò âÜóåéò äåäïìÝíùí, ôéò ïðïßåò ÷ñçóéìïðïéåßôå ãéá ôï Ýããñáöï óáò ìÝóù ôùí ðåäßùí âÜóåùí äåäïìÝíùí, ìå Üëëåò âÜóåéò äåäïìÝíùí. ÅðéôñÝðåôáé ìüíï ìéá áëëáãÞ áíÜ åñãÜóéìç çìÝñá. Óôï áñéóôåñü ôìÞìá ìðïñïýí íá ãßíïõí ðïëëáëÝò åðéëïãÝò.";
+ Text[ korean ] = "ÀÌ ´ëÈ­»óÀÚ¿¡¼­,´ç½ÅÀº ¹®¼­¿¡¼­ µ¥ÀÌÅͺ£À̽º¿¡ Á¢±ÙÇϰųª ±³È¯ÇÏ´Â µ¥ÀÌÅͺ£À̽º Çʵ带 »ç¿ëÇϽǼö ÀÖ½À´Ï´Ù.Çѹø¿¡ Çѹø º¯°æÀÌ ¸¸µé¾î Áý´Ï´Ù. ¿ÞÂÊÀÇ ¸®½ºÆ® »ó¿¡¼­, ´ÙÁß ¼±ÅÃÀÌ °¡´ÉÇÕ´Ï´Ù.";
+ Text[ turkish ] = "Bu diyalogda, belgenizdeki veritabaný alanlarý yoluyla eriþtiðiniz veritabanlarýný baþkalarý ile deðiþtirebilirsiniz. Her iþlemde yalnýzca tek bir deðiþiklik yapýlabilir. Soldaki listede birden fazla seçim yapýlabilir.";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_USEDDB
+ {
+ Pos = MAP_APPFONT ( 12 , 60 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ Text = "Verwendete Datenbanken" ;
+ Text [ ENGLISH ] = "Used Databases" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Databases in Use" ;
+ Text [ italian ] = "Database utilizzati" ;
+ Text [ spanish ] = "Bases de datos utilizadas" ;
+ Text [ french ] = "Bases de données utilisées" ;
+ Text [ dutch ] = "Gebruikte gegevensbestanden" ;
+ Text [ swedish ] = "Använda databaser" ;
+ Text [ danish ] = "Anvendte databaser" ;
+ Text [ portuguese_brazilian ] = "Verwendete Datenbanken" ;
+ Text [ portuguese ] = "Bases de dados utilizadas" ;
+ Text[ chinese_simplified ] = "ʹÓõÄÊý¾Ý¿â";
+ Text[ russian ] = "Èñïîëüçóåìûå áàçû äàííûõ";
+ Text[ polish ] = "U¿yte bazy danych";
+ Text[ japanese ] = "Žg—p‚³‚ꂽÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "©Ò¨Ï¥Îªº¸ê®Æ®w";
+ Text[ arabic ] = "ÞæÇÚÏ ÇáÈíÇäÇÊ ÞíÏ ÇáÇÓÊÎÏÇã";
+ Text[ dutch ] = "Gebruikte gegevensbestanden";
+ Text[ chinese_simplified ] = "ʹÓõÄÊý¾Ý¿â";
+ Text[ greek ] = "×ñçóéìïðïéçìÝíåò âÜóåéò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º°¡ »ç¿ëÁß ÀÔ´Ï´Ù.";
+ Text[ turkish ] = "Kullanýlan veritabanlarý";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_AVAILDB
+ {
+ Pos = MAP_APPFONT ( 108 , 60 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Verfügbare Datenbanken : Verf³gbare Datenbanken */
+ Text = "Verfügbare Datenbanken" ;
+ Text [ ENGLISH ] = "Available Databases" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Available Databases" ;
+ Text [ italian ] = "Database disponibili" ;
+ Text [ spanish ] = "Bases de datos diponibles" ;
+ Text [ french ] = "Bases de données disponibles" ;
+ Text [ dutch ] = "Beschikbare gegevensbestanden" ;
+ Text [ swedish ] = "Tillgängliga databaser" ;
+ Text [ danish ] = "Tilgængelige databaser" ;
+ Text [ portuguese_brazilian ] = "Verfügbare Datenbanken" ;
+ Text [ portuguese ] = "Bases de dados disponíveis" ;
+ Text[ chinese_simplified ] = "¿ÉʹÓõÄÊý¾Ý¿â";
+ Text[ russian ] = "Äîñòóïíûå áàçû äàííûõ";
+ Text[ polish ] = "Dostêpne bazy danych";
+ Text[ japanese ] = "Žg—p‚Å‚«‚éÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "²{¦sªº¸ê®Æ®w";
+ Text[ arabic ] = "ÞæÇÚÏ ÇáÈíÇäÇÊ ÇáãÊÇÍÉ";
+ Text[ dutch ] = "Beschikbare gegevensbestanden";
+ Text[ chinese_simplified ] = "¿ÉʹÓõÄÊý¾Ý¿â";
+ Text[ greek ] = "ÄéáèÝóéìåò âÜóåéò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º »ç¿ë°¡´É";
+ Text[ turkish ] = "Mevcut veritabanlarý";
+ Text[ language_user1 ] = " ";
+ };
+ Control TLB_USEDDB
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 73 ) ;
+ Size = MAP_APPFONT ( 90 , 52 ) ;
+ TabStop = TRUE ;
+ };
+ Control TLB_AVAILDB
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 108 , 73 ) ;
+ Size = MAP_APPFONT ( 90 , 52 ) ;
+ TabStop = TRUE ;
+ };
+ /* MultiListBox LB_USEDDB {
+ Sort = TRUE;
+ Border = TRUE;
+ SimpleMode = TRUE;
+ Pos = MAP_APPFONT( 12, 73 );
+ Size = MAP_APPFONT( 90, 52 );
+ TabStop = TRUE;
+ };
+ ListBox LB_AVAILDB {
+ Sort = TRUE;
+ Border = TRUE;
+ Pos = MAP_APPFONT( 108, 73 );
+ Size = MAP_APPFONT( 90, 52 );
+ TabStop = TRUE;
+ };*/
+ FixedText FT_DOCDBTEXT
+ {
+ Pos = MAP_APPFONT ( 6 , 136 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "Am Dokument gesetzte Datenbank:" ;
+ Text [ ENGLISH ] = "???" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Database applied to document:" ;
+ Text [ italian ] = "Database applicato a documento" ;
+ Text [ spanish ] = "Base de datos aplicada al doc.:" ;
+ Text [ french ] = "Base de données attachée au document :" ;
+ Text [ dutch ] = "Gekoppeld gegevensbestand" ;
+ Text [ swedish ] = "Databaser använda för dokumentet:" ;
+ Text [ danish ] = "Database tilknyttet til dokument:" ;
+ Text [ portuguese_brazilian ] = "Am Dokument gesetzte Datenbank:" ;
+ Text [ portuguese ] = "Base de dados aplicada ao documento:" ;
+ Text[ chinese_simplified ] = "ÎĵµÊ¹ÓõÄÊý¾Ý¿â£º";
+ Text[ russian ] = "Áàçà äàííûõ, óñòàíîâëåííàÿ â äîêóìåíòå:";
+ Text[ polish ] = "Baza danych ustawiona przy dok.:";
+ Text[ japanese ] = "ÄÞ·¨ÒÝÄ‚É“K—p‚³‚ꂽÃÞ°ÀÍÞ°½:";
+ Text[ chinese_traditional ] = "¤å¥ó¨Ï¥Îªº¸ê®Æ®w¡G";
+ Text[ arabic ] = "ÞÇÚÏÉ ÇáÈíÇäÇÊ ÇáãÑÊÈØÉ ÈÇáãÓÊäÏ:";
+ Text[ dutch ] = "Gekoppeld gegevensbestand";
+ Text[ chinese_simplified ] = "ÎĵµÊ¹ÓõÄÊý¾Ý¿â£º";
+ Text[ greek ] = "Óôï Ýããñáöï åöáñìïóìÝíç âÜóç äåäïìÝíùí:";
+ Text[ korean ] = "¹®¼­¿¡ µ¥ÀÌÅͺ£À̽º Àû¿ë:";
+ Text[ turkish ] = "Belge ile kullanýlan veritabaný:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_DOCDBNAME
+ {
+ Pos = MAP_APPFONT ( 109 , 136 ) ;
+ Size = MAP_APPFONT ( 94 , 10 ) ;
+ Text = "Adressen.Adressen" ;
+ Text [ ENGLISH ] = "???" ;
+ Left = TRUE ;
+ Text [ dutch ] = "Adressen.Adressen" ;
+ Text [ english_us ] = "Addresses.Addresses" ;
+ Text [ italian ] = "Indirizzi.Indirizzi" ;
+ Text [ spanish ] = "Direcciones.Direcciones" ;
+ Text [ french ] = "Adresses.Adresses" ;
+ Text [ swedish ] = "Adresser.Adresser" ;
+ Text [ danish ] = "Adresser.Adresser" ;
+ Text [ portuguese_brazilian ] = "Adressen.Adressen" ;
+ Text [ portuguese ] = "Endereços. Endereços" ;
+ Text[ chinese_simplified ] = "µØÖ·.µØÖ·";
+ Text[ russian ] = "Àäðåñà.Àäðåñà";
+ Text[ polish ] = "Adresy.Adresy";
+ Text[ japanese ] = "ZŠ.ZŠ";
+ Text[ chinese_traditional ] = "¦a§}.¦a§}";
+ Text[ arabic ] = "ÚäÇæíä ÚäÇæíä";
+ Text[ dutch ] = "Adressen.Adressen";
+ Text[ chinese_simplified ] = "µØÖ·.µØÖ·";
+ Text[ greek ] = "Äéåõèýíóåéò.Äéåõèýíóåéò";
+ Text[ korean ] = "ÁÖ¼Ò.ÁÖ¼Ò";
+ Text[ turkish ] = "Adresler.Adresler";
+ Text[ language_user1 ] = " ";
+ };
+/* PushButton BT_CHANGEDB
+ {
+ Pos = MAP_APPFONT ( 210 , 135 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "Festlegen" ;
+ Text [ ENGLISH ] = "???" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "Definiëren" ;
+ Text [ english_us ] = "Define" ;
+ Text [ italian ] = "Definisci" ;
+ Text [ spanish ] = "Definir" ;
+ Text [ french ] = "Définir" ;
+ Text [ swedish ] = "Definiera" ;
+ Text [ danish ] = "Fastlæg" ;
+ Text [ portuguese ] = "Definir" ;
+ Text [ portuguese_brazilian ] = "Festlegen" ;
+ Text[ chinese_simplified ] = "¶¨Òå";
+ Text[ russian ] = "Óñòàíîâèòü";
+ Text[ polish ] = "Zdefiniuj";
+ Text[ japanese ] = "Šm’è";
+ Text[ chinese_traditional ] = "©w¸q";
+ Text[ arabic ] = "ÊÚÑíÝ";
+ Text[ dutch ] = "Define";
+ Text[ chinese_simplified ] = "Define";
+ Text[ greek ] = "Êáèïñéóìüò";
+ Text[ korean ] = "Define";
+ };
+ */ GroupBox GB_DBLIST
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 198 , 128 ) ;
+ Text = "Datenbank austauschen" ;
+ Text [ ENGLISH ] = "Change Database Names" ;
+ Text [ dutch ] = "Database wisselen" ;
+ Text [ english_us ] = "Exchange databases" ;
+ Text [ italian ] = "Scambia database" ;
+ Text [ spanish ] = "Cambiar Bases de Datos" ;
+ Text [ french ] = "Changer de base de données" ;
+ Text [ swedish ] = "Byt databas" ;
+ Text [ danish ] = "Udskift database" ;
+ Text [ portuguese_brazilian ] = "Datenbank austauschen" ;
+ Text [ portuguese ] = "Substituir base de dados" ;
+ Text[ chinese_simplified ] = "¸ü»»Êý¾Ý¿â";
+ Text[ russian ] = "Çàìåíèòü áàçó äàííûõ";
+ Text[ polish ] = "Wymieñ bazê danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚ÌŒðŠ·";
+ Text[ chinese_traditional ] = "´À´«¸ê®Æ®w";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÞæÇÚÏ ÇáÈíÇäÇÊ";
+ Text[ dutch ] = "Database wisselen";
+ Text[ chinese_simplified ] = "¸ü»»Êý¾Ý¿â";
+ Text[ greek ] = "ÁíôáëëáãÞ âÜóåùí äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º ±³È¯";
+ Text[ turkish ] = "Veritabanýnýn deðiþtirilmesi";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 210 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ Disable = TRUE ;
+ Text = "Festlegen" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "Definiëren" ;
+ Text [ english_us ] = "Define" ;
+ Text [ italian ] = "Definisci" ;
+ Text [ spanish ] = "Definir" ;
+ Text [ french ] = "Définir" ;
+ Text [ swedish ] = "Definiera" ;
+ Text [ danish ] = "Definer" ;
+ Text [ portuguese ] = "Definir" ;
+ Text [ portuguese_brazilian ] = "Festlegen" ;
+ Text[ chinese_simplified ] = "¶¨Òå";
+ Text[ russian ] = "Çàäàòü";
+ Text[ polish ] = "Zdefiniuj";
+ Text[ japanese ] = "Šm”F";
+ Text[ chinese_traditional ] = "©w¸q";
+ Text[ arabic ] = "ÊÚÑíÝ";
+ Text[ dutch ] = "Definiëren";
+ Text[ chinese_simplified ] = "¶¨Òå";
+ Text[ greek ] = "Êáèïñéóìüò";
+ Text[ korean ] = "Á¤ÀÇ";
+ Text[ turkish ] = "Tanýmla";
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 210 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "~Schließen" ;
+ Text [ ENGLISH ] = "~Close" ;
+ Text [ norwegian ] = "~Lukk" ;
+ Text [ italian ] = "~Chiudi" ;
+ Text [ portuguese_brazilian ] = "~Fechar" ;
+ Text [ portuguese ] = "~Fechar" ;
+ Text [ finnish ] = "~Sulje" ;
+ Text [ danish ] = "~Luk" ;
+ Text [ french ] = "~Fermer" ;
+ Text [ swedish ] = "~Stäng" ;
+ Text [ dutch ] = "~Sluiten" ;
+ Text [ spanish ] = "~Cerrar" ;
+ Text [ english_us ] = "~Close" ;
+ Text[ chinese_simplified ] = "¹Ø±Õ(~C)";
+ Text[ russian ] = "Çàêðûòü";
+ Text[ polish ] = "~Zamknij";
+ Text[ japanese ] = "•Â‚¶‚é(~C)";
+ Text[ chinese_traditional ] = "Ãö³¬(~C)";
+ Text[ arabic ] = "ÅÛáÇÞ";
+ Text[ greek ] = "Êëåß~óéìï";
+ Text[ korean ] = "´Ý±â(~C)";
+ Text[ turkish ] = "~Çýkýþ";
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 210 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Bitmap BMP_ROOT_CLOSED
+ {
+ File = "plus.bmp" ;
+ };
+ Bitmap BMP_ROOT_OPENED
+ {
+ File = "minus.bmp" ;
+ };
+ Image BMP_DB
+ {
+ ImageBitmap = Bitmap { File = "db.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Image BMP_TABLE
+ {
+ ImageBitmap = Bitmap { File = "table.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ };
+ Text[ chinese_simplified ] = "¸ü»»Êý¾Ý¿â";
+ Text[ russian ] = "Çàìåíèòü áàçó äàííûõ";
+ Text[ polish ] = "Wymieñ bazê danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚ÌŒðŠ·";
+ Text[ chinese_traditional ] = "§ó´«¸ê®Æ®w";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÞæÇÚÏ ÇáÈíÇäÇÊ";
+ Text[ dutch ] = "Database wisselen";
+ Text[ chinese_simplified ] = "¸ü»»Êý¾Ý¿â";
+ Text[ greek ] = "ÁíôáëëáãÞ âÜóåùí äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º ±³È¯";
+ Text[ turkish ] = "Veritabanýnýn deðiþtirilmesi";
+ Text[ language_user1 ] = " ";
+};
+
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
new file mode 100644
index 000000000000..3ef394ce56ff
--- /dev/null
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -0,0 +1,756 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddb.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _FLDTDLG_HXX
+#include <fldtdlg.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDDB_HXX
+#include <flddb.hxx>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDBPage::SwFldDBPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pParent, SW_RES( TP_FLD_DB ), rCoreSet ),
+ aTypeFT (this, SW_RES(FT_DBTYPE)),
+ aTypeLB (this, SW_RES(LB_DBTYPE)),
+ aSelectionFT(this, SW_RES(FT_DBSELECTION)),
+ aDatabaseTLB(this, SW_RES(TLB_DBLIST), aEmptyStr, FALSE),
+ aConditionFT(this, SW_RES(FT_DBCONDITION)),
+ aConditionED(this, SW_RES(ED_DBCONDITION)),
+ aValueFT (this, SW_RES(FT_DBSETNUMBER)),
+ aValueED (this, SW_RES(ED_DBSETNUMBER)),
+ aDBFormatRB (this, SW_RES(RB_DBOWNFORMAT)),
+ aNewFormatRB(this, SW_RES(RB_DBFORMAT)),
+ aNumFormatLB(this, SW_RES(LB_DBNUMFORMAT)),
+ aFormatLB (this, SW_RES(LB_DBFORMAT)),
+ aFormatGB (this, SW_RES(GB_DBFORMAT))
+{
+ FreeResource();
+
+ aOldNumSelectHdl = aNumFormatLB.GetSelectHdl();
+
+ aNumFormatLB.SetSelectHdl(LINK(this, SwFldDBPage, NumSelectHdl));
+ aDatabaseTLB.SetSelectHdl(LINK(this, SwFldDBPage, TreeSelectHdl));
+ aDatabaseTLB.SetDoubleClickHdl(LINK(this, SwFldDBPage, InsertHdl));
+
+ aValueED.SetModifyHdl(LINK(this, SwFldDBPage, ModifyHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldDBPage::~SwFldDBPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage initialisieren
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet)
+{
+ Init(); // Allgemeine initialisierung
+
+ aTypeLB.SetUpdateMode(FALSE);
+ USHORT nOldPos = aTypeLB.GetSelectEntryPos();
+#ifdef REPLACE_OFADBMGR
+ sOldDBName = aDatabaseTLB.GetDBName(sOldTableName, sOldColumnName);
+#else
+ sOldDBName = aDatabaseTLB.GetDBName();
+#endif
+
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId, i;
+
+ if (!IsFldEdit())
+ {
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ for(i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+
+ // alte Pos selektieren
+ if (GetTypeSel() != LISTBOX_ENTRY_NOTFOUND)
+ aTypeLB.SelectEntryPos(GetTypeSel());
+
+ aFormatLB.Clear();
+
+ USHORT nSize = GetFldMgr().GetFormatCount(TYP_DBSETNUMBERFLD, FALSE, IsFldDlgHtmlMode());
+ for( i = 0; i < nSize; ++i )
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(TYP_DBSETNUMBERFLD, i));
+ USHORT nFmtId = GetFldMgr().GetFormatId( TYP_DBSETNUMBERFLD, i );
+ aFormatLB.SetEntryData( nPos, (void*)nFmtId );
+ if( SVX_NUM_ARABIC == nFmtId )
+ aFormatLB.SelectEntryPos( nPos );
+ }
+
+ if (!IsFldEdit())
+ {
+ if (nOldPos != LISTBOX_ENTRY_NOTFOUND)
+ aTypeLB.SelectEntryPos(nOldPos);
+
+ if (sOldDBName.Len())
+ {
+#ifdef REPLACE_OFADBMGR
+ aDatabaseTLB.Select(sOldDBName, sOldTableName, sOldColumnName);
+#else
+ aDatabaseTLB.Select(sOldDBName);
+#endif
+ }
+ else
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+#ifdef REPLACE_OFADBMGR
+ String sTmp(pSh->GetDBName());
+
+ aDatabaseTLB.Select(
+ sTmp.GetToken(0, DB_DELIM),
+ sTmp.GetToken(1, DB_DELIM),
+ sTmp.GetToken(2, DB_DELIM));
+#else
+ aDatabaseTLB.Select(pSh->GetDBName());
+#endif
+ }
+ }
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ aTypeLB.SetUpdateMode(TRUE);
+ aTypeLB.SetSelectHdl(LINK(this, SwFldDBPage, TypeHdl));
+ aTypeLB.SetDoubleClickHdl(LINK(this, SwFldDBPage, InsertHdl));
+
+ if (IsFldEdit())
+ {
+ aConditionED.SaveValue();
+ aValueED.SaveValue();
+#ifdef REPLACE_OFADBMGR
+ sOldDBName = aDatabaseTLB.GetDBName(sOldTableName, sOldColumnName);
+#else
+ sOldDBName = aDatabaseTLB.GetDBName();
+#endif
+ nOldFormat = GetCurField()->GetFormat();
+ nOldSubType = GetCurField()->GetSubType();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldDBPage::FillItemSet(SfxItemSet& rSet)
+{
+#ifdef REPLACE_OFADBMGR
+ String sTableName, sColumnName;
+ String sDBName = aDatabaseTLB.GetDBName(sTableName, sColumnName);
+#else
+ String sDBName = aDatabaseTLB.GetDBName();
+#endif
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ if (!sDBName.Len())
+ {
+#ifdef REPLACE_OFADBMGR
+ String sTmp = pSh->GetDBName();
+ sDBName = sTmp.GetToken(0, DB_DELIM);
+ sTableName = sTmp.GetToken(1, DB_DELIM);
+#else
+ sDBName = pSh->GetDBName();
+#endif
+ }
+ else
+ {
+#ifdef REPLACE_OFADBMGR
+ String sNewDBName = sDBName;
+ sNewDBName += DB_DELIM;
+ sNewDBName += sTableName;
+ pSh->ChgDBName(sNewDBName);
+#else
+ // keine Spaltennamen an ChgDBName uebergeben
+ String sNewDBName = sDBName.GetToken(0, DB_DELIM);
+ sNewDBName += DB_DELIM;
+ sNewDBName += sDBName.GetToken(1, DB_DELIM);
+ pSh->ChgDBName(sNewDBName);
+#endif
+ }
+
+ if (sDBName.Len()) // Ohne Datenbank kein neuer Feldbefehl
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+ String aVal(aValueED.GetText());
+ String aName(aConditionED.GetText());
+ ULONG nFormat = 0;
+ USHORT nSubType = 0;
+
+ sDBName += DB_DELIM;
+#ifdef REPLACE_OFADBMGR
+ sDBName += sTableName;
+ sDBName += DB_DELIM;
+ if(sColumnName.Len())
+ {
+ sDBName += sColumnName;
+ sDBName += DB_DELIM;
+ }
+#endif
+ aName.Insert(sDBName, 0);
+
+ switch (nTypeId)
+ {
+ case TYP_DBFLD:
+ nFormat = aNumFormatLB.GetFormat();
+ if (aNewFormatRB.IsEnabled() && aNewFormatRB.IsChecked())
+ nSubType = SUB_OWN_FMT;
+ aName = sDBName;
+ break;
+
+ case TYP_DBSETNUMBERFLD:
+ nFormat = (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ break;
+ }
+
+
+#ifdef REPLACE_OFADBMGR
+ String sTempDBName, sTempTableName, sTempColumnName;
+ sTempDBName = aDatabaseTLB.GetDBName(sTempTableName, sTempColumnName);
+ BOOL bDBListBoxChanged = sOldDBName != sTempDBName ||
+ sOldTableName != sTempTableName || sOldColumnName != sTempColumnName;
+#else
+ BOOL bDBListBoxChanged = sOldDBName != aDatabaseTLB.GetDBName();
+#endif
+ if (!IsFldEdit() ||
+ aConditionED.GetSavedValue() != aConditionED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ bDBListBoxChanged ||
+ nOldFormat != nFormat || nOldSubType != nSubType)
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat);
+ }
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldDBPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldDBPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDBPage::GetGroup()
+{
+ return GRP_DB;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ if (nOld != GetTypeSel())
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ BOOL bCond = FALSE, bSetNo = FALSE, bFormat = FALSE, bDBFormat = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ aDatabaseTLB.ShowColumns(nTypeId == TYP_DBFLD);
+
+ if (IsFldEdit())
+ {
+#ifdef REPLACE_OFADBMGR
+ String sDBName, sTableName, sColumnName;
+ if (nTypeId == TYP_DBFLD)
+ {
+ sDBName = ((SwDBField*)GetCurField())->GetDBName();
+ sColumnName = ((SwDBFieldType*)GetCurField()->GetTyp())->GetColumnName();
+ }
+ else
+ {
+ sDBName = ((SwDBNameInfField*)GetCurField())->GetDBName(pSh->GetDoc());
+ }
+ sTableName = sDBName.GetToken(1, DB_DELIM);
+ sDBName = sDBName.GetToken(0, DB_DELIM);
+
+ aDatabaseTLB.Select(sDBName, sTableName, sColumnName);
+#else
+ String sDBName;
+ if (nTypeId == TYP_DBFLD)
+ {
+ sDBName = ((SwDBField*)GetCurField())->GetDBName();
+ sDBName += DB_DELIM;
+ sDBName += ((SwDBFieldType*)GetCurField()->GetTyp())->GetColumnName();
+ }
+ else
+ sDBName = ((SwDBNameInfField*)GetCurField())->GetDBName(pSh->GetDoc());
+
+ aDatabaseTLB.Select(sDBName);
+#endif
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_DBFLD:
+ bFormat = TRUE;
+ bDBFormat = TRUE;
+ aNumFormatLB.Show();
+ aFormatLB.Hide();
+
+ if (pBox) // Typ wurde vom User geaendert
+ aDBFormatRB.Check();
+
+ if (IsFldEdit())
+ {
+ if (GetCurField()->GetFormat() != 0 && GetCurField()->GetFormat() != ULONG_MAX)
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+
+ if (GetCurField()->GetSubType() & SUB_OWN_FMT)
+ aNewFormatRB.Check();
+ else
+ aDBFormatRB.Check();
+ }
+ break;
+
+ case TYP_DBNUMSETFLD:
+ bSetNo = TRUE;
+ // kein break!
+ case TYP_DBNEXTSETFLD:
+ bCond = TRUE;
+ if (IsFldEdit())
+ {
+ aConditionED.SetText(GetCurField()->GetPar1());
+ aValueED.SetText(GetCurField()->GetPar2());
+ }
+ break;
+
+ case TYP_DBNAMEFLD:
+ break;
+
+ case TYP_DBSETNUMBERFLD:
+ bFormat = TRUE;
+ aNewFormatRB.Check();
+ aNumFormatLB.Hide();
+ aFormatLB.Show();
+ if( IsFldEdit() )
+ {
+ for( USHORT nI = aFormatLB.GetEntryCount(); nI; )
+ if( GetCurField()->GetFormat() == (USHORT)(ULONG)
+ aFormatLB.GetEntryData( --nI ))
+ {
+ aFormatLB.SelectEntryPos( nI );
+ break;
+ }
+ }
+ break;
+ }
+
+ aConditionFT.Enable(bCond);
+ aConditionED.Enable(bCond);
+ aValueFT.Enable(bSetNo);
+ aValueED.Enable(bSetNo);
+ if (nTypeId != TYP_DBFLD)
+ {
+ aDBFormatRB.Enable(bDBFormat);
+ aNewFormatRB.Enable(bDBFormat|bFormat);
+ aNumFormatLB.Enable(bDBFormat);
+ aFormatLB.Enable(bFormat);
+ }
+ aFormatGB.Enable(bDBFormat|bFormat);
+
+ if (!IsFldEdit())
+ {
+ aValueED.SetText(aEmptyStr);
+ if (bCond)
+ aConditionED.SetText( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( "TRUE" )));
+ else
+ aConditionED.SetText(aEmptyStr);
+ }
+
+ CheckInsert();
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, NumSelectHdl, NumFormatListBox *, pLB )
+{
+ aNewFormatRB.Check();
+ aOldNumSelectHdl.Call(pLB);
+
+ return 0;
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+void SwFldDBPage::CheckInsert()
+{
+ BOOL bInsert = TRUE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ SvLBoxEntry* pEntry = aDatabaseTLB.GetCurEntry();
+
+ if (pEntry)
+ {
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ if (nTypeId == TYP_DBFLD && pEntry)
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ bInsert &= pEntry != 0;
+ }
+ else
+ bInsert = FALSE;
+
+ if (nTypeId == TYP_DBNUMSETFLD)
+ {
+ BOOL bHasValue = aValueED.GetText().Len() != 0;
+
+ bInsert &= bHasValue;
+ }
+
+ EnableInsert(bInsert);
+}
+
+/*---------------------------------------------------------------------
+ Beschreibung:
+---------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, TreeSelectHdl, SvTreeListBox *, pBox )
+{
+ SvLBoxEntry* pColEntry;
+ SvLBoxEntry* pEntry = pColEntry = pBox->GetCurEntry();
+ if (pEntry)
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ if (nTypeId == TYP_DBFLD && pEntry)
+ pEntry = aDatabaseTLB.GetParent(pEntry);
+
+ CheckInsert();
+
+ if (nTypeId == TYP_DBFLD)
+ {
+ BOOL bNumFormat = FALSE;
+
+ if (pEntry != 0)
+ {
+#ifdef REPLACE_OFADBMGR
+ String sTableName;
+ String sColumnName;
+ BOOL bIsTable;
+ String sDBName = aDatabaseTLB.GetDBName(sTableName, sColumnName, &bIsTable);
+ bNumFormat = GetFldMgr().IsDBNumeric(sDBName,
+ sTableName,
+ bIsTable,
+ sColumnName);
+#else
+ String sName(aDatabaseTLB.GetDBName());
+ String sColumnName(sName.GetToken(2, DB_DELIM));
+ String sDBName(sName.GetToken(0, DB_DELIM));
+ sDBName += DB_DELIM;
+ sDBName += sName.GetToken(1, DB_DELIM);
+ bNumFormat = GetFldMgr().IsDBNumeric(sDBName, sColumnName);
+#endif
+ if (!IsFldEdit())
+ aDBFormatRB.Check();
+ }
+
+ aDBFormatRB.Enable(bNumFormat);
+ aNewFormatRB.Enable(bNumFormat);
+ aNumFormatLB.Enable(bNumFormat);
+ aFormatGB.Enable(bNumFormat);
+ }
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDBPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ CheckInsert();
+ return 0;
+}
+
+/* -----------------12.01.99 11:21-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldDBPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.31 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.30 2000/07/07 15:25:43 os
+ replace ofadbmgr
+
+ Revision 1.29 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.28 2000/06/26 13:35:59 os
+ new DataBase API
+
+ Revision 1.27 2000/05/23 18:36:33 jp
+ Bugfixes for Unicode
+
+ Revision 1.26 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.25 1999/02/25 16:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+
+ Rev 1.24 25 Feb 1999 17:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.23 21 Jan 1999 09:50:36 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.22 12 Jan 1999 11:42:26 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.21 11 Dec 1998 15:16:24 OM
+ #60051# Richtiges Format fuer Serienbrieffelder waehlen
+
+ Rev 1.20 17 Nov 1998 10:50:38 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.19 04 Nov 1998 13:27:56 OM
+ #58939# Bei Formataenderung RadioButton vorselektieren
+
+ Rev 1.18 10 Aug 1998 16:39:58 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.17 09 Jul 1998 09:52:58 JP
+ EmptyStr benutzen
+
+ Rev 1.16 10 Jun 1998 13:26:08 OM
+ Alten Typ nach Reset restaurieren
+
+ Rev 1.15 27 Mar 1998 15:23:54 OM
+ #48909# Insert-Btn korrekt enablen/disablen
+
+ Rev 1.14 06 Mar 1998 13:07:48 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.13 04 Mar 1998 08:32:24 MH
+ chg: Syntax
+
+ Rev 1.12 16 Feb 1998 09:39:00 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.11 06 Jan 1998 18:12:54 OM
+ Felbefehl-Dlg
+
+ Rev 1.10 05 Jan 1998 17:44:34 OM
+ DB-Feldbefehl bearbeiten
+
+ Rev 1.9 12 Dec 1997 17:14:00 OM
+ Listbox bei numerischen Formaten enablen
+
+ Rev 1.8 11 Dec 1997 16:58:00 OM
+ Feldumstellung
+
+ Rev 1.7 20 Nov 1997 17:01:20 OM
+ Neuer Felddialog
+
+ Rev 1.6 19 Nov 1997 16:30:42 OM
+ Datenbank-TP Drag&Drop
+
+ Rev 1.5 18 Nov 1997 10:34:36 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.4 17 Nov 1997 09:06:36 OM
+ Basisklasse fuer Feldbefehl-TPs
+
+ Rev 1.3 05 Nov 1997 17:02:46 OM
+ Spaltennamen anzeigen
+
+ Rev 1.2 05 Nov 1997 15:35:38 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.1 30 Oct 1997 14:31:42 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.0 28 Oct 1997 15:05:06 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/flddb.hxx b/sw/source/ui/fldui/flddb.hxx
new file mode 100644
index 000000000000..5dc89b9b2ca9
--- /dev/null
+++ b/sw/source/ui/fldui/flddb.hxx
@@ -0,0 +1,137 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddb.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDDB_HXX
+#define _SWFLDDB_HXX
+
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#include "condedit.hxx"
+#include "dbtree.hxx"
+#include "numfmtlb.hxx"
+
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldDBPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ SwDBTreeList aDatabaseTLB;
+ FixedText aConditionFT;
+ ConditionEdit aConditionED;
+ FixedText aValueFT;
+ Edit aValueED;
+ RadioButton aDBFormatRB;
+ RadioButton aNewFormatRB;
+ NumFormatListBox aNumFormatLB;
+ ListBox aFormatLB;
+ GroupBox aFormatGB;
+
+ String sOldDBName;
+#ifdef REPLACE_OFADBMGR
+ String sOldTableName;
+ String sOldColumnName;
+#endif
+ ULONG nOldFormat;
+ USHORT nOldSubType;
+ Link aOldNumSelectHdl;
+
+ DECL_LINK( TypeHdl, ListBox* );
+ DECL_LINK( NumSelectHdl, NumFormatListBox* pLB = 0);
+ DECL_LINK( TreeSelectHdl, SvTreeListBox* pBox );
+ DECL_LINK( ModifyHdl, Edit *pED = 0 );
+
+ void CheckInsert();
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldDBPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldDBPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/flddb.src b/sw/source/ui/fldui/flddb.src
new file mode 100644
index 000000000000..2dc7bc334cef
--- /dev/null
+++ b/sw/source/ui/fldui/flddb.src
@@ -0,0 +1,337 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddb.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_DB
+{
+ HelpID = HID_FLD_DB ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Datenbank" ;
+ Text [ ENGLISH ] = "Database" ;
+ FixedText FT_DBTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Fälttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï ïîëÿ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨°ÙÄÞ‚ÌŽí—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "äæÚ ÇáÍÞá";
+ Text[ greek ] = "~Ôýðïò ðåäßïõ";
+ Text[ korean ] = "ÇüÅÂ(~T)";
+ Text[ turkish ] = "Alan tipi";
+ };
+ ListBox LB_DBTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 54 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ /* StringList =
+ {
+ < "Beliebiger Datensatz" ; > ;
+ < "Datensatznummer" ; > ;
+ < "Nächster Datensatz" ; > ;
+ < "Serienbrieffeld" ; > ;
+ < "Datenbankname" ; > ;
+ };*/
+ };
+ FixedText FT_DBCONDITION
+ {
+ Pos = MAP_APPFONT ( 6 , 76 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ TEXT = "Bedin~gung" ;
+ TEXT [ English ] = "Conditio~n" ;
+ TEXT [ norwegian ] = "Vilkår" ;
+ TEXT [ italian ] = "Con~dizione" ;
+ TEXT [ portuguese_brazilian ] = "condição" ;
+ TEXT [ portuguese ] = "~Condição" ;
+ TEXT [ finnish ] = "Ehto" ;
+ TEXT [ danish ] = "Betingelse" ;
+ TEXT [ french ] = "~Si" ;
+ TEXT [ swedish ] = "~Villkor" ;
+ TEXT [ dutch ] = "~Voorwaarde" ;
+ TEXT [ spanish ] = "Con~dición" ;
+ TEXT [ english_us ] = "~Condition" ;
+ Left = TRUE ;
+ TEXT[ chinese_simplified ] = "Ìõ¼þ(~C)";
+ TEXT[ russian ] = "Óñëîâèå";
+ TEXT[ polish ] = "Warunek";
+ TEXT[ japanese ] = "ðŒ(~C)";
+ TEXT[ chinese_traditional ] = "±ø¥ó(~C)";
+ TEXT[ arabic ] = "ÇáÔÑØ";
+ TEXT[ greek ] = "¼ñïò";
+ TEXT[ korean ] = "Á¶°Ç(~C)";
+ TEXT[ turkish ] = "Koþul";
+ };
+ Edit ED_DBCONDITION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 88 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_DBSETNUMBER
+ {
+ Pos = MAP_APPFONT ( 6 , 105 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ TEXT = "Sat~znummer" ;
+ TEXT [ English ] = "Setnumber" ;
+ TEXT [ norwegian ] = "Setnumber" ;
+ TEXT [ italian ] = "Numero di record" ;
+ TEXT [ portuguese_brazilian ] = "Definir número" ;
+ TEXT [ portuguese ] = "~Número de registo" ;
+ TEXT [ finnish ] = "Joukon numero" ;
+ TEXT [ danish ] = "Datapostnummer" ;
+ TEXT [ french ] = "~Numéro de l'enregistrement" ;
+ TEXT [ swedish ] = "Datapostnummer" ;
+ TEXT [ dutch ] = "~Record-nummer" ;
+ TEXT [ spanish ] = "Número de registro" ;
+ TEXT [ english_us ] = "Record number" ;
+ Left = TRUE ;
+ TEXT[ chinese_simplified ] = "ÌõÄ¿±àºÅ";
+ TEXT[ russian ] = "Íîìåð ïðåäëîæåíèÿ";
+ TEXT[ polish ] = "Numer zdania";
+ TEXT[ japanese ] = "Úº°ÄÞ”Ô†";
+ TEXT[ chinese_traditional ] = "¶µ¥Ø¸¹½X";
+ TEXT[ arabic ] = "ÑÞã ÇáÓÌá";
+ TEXT[ greek ] = "Áñéèìüò åããñáöÞò";
+ TEXT[ korean ] = "·¹ÄÚµå ¹øÈ£";
+ TEXT[ turkish ] = "Veri kümesi numarasý";
+ };
+ Edit ED_DBSETNUMBER
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 117 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_DBSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 166 , 10 ) ;
+ Text = "Datenbank~auswahl" ;
+ Text [ ENGLISH ] = "Database s~election" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Database s~election" ;
+ Text [ portuguese_brazilian ] = "Datenbank~auswahl" ;
+ Text [ swedish ] = "Datab~asurval" ;
+ Text [ danish ] = "Databaseudvalg" ;
+ Text [ italian ] = "Scelta ~database" ;
+ Text [ spanish ] = "~Seleccionar base de datos" ;
+ Text [ french ] = "~Sélection d'une base de données" ;
+ Text [ dutch ] = "Selectie ~database" ;
+ Text [ portuguese ] = "~Seleccionar base de dados" ;
+ Text[ chinese_simplified ] = "Ñ¡ÔñÊý¾Ý¿â(~E)";
+ Text[ russian ] = "Âûáîð áàçû äàííûõ";
+ Text[ polish ] = "Wybór bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚Ì‘I‘ð(~E)";
+ Text[ chinese_traditional ] = "¿ï¾Ü¸ê®Æ®w(~E)";
+ Text[ arabic ] = "ÇÎÊíÇÑ ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "ÅðéëïãÞ âÜóçò äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º ¼±ÅÃ(~E)";
+ Text[ turkish ] = "Veritabaný seçimi";
+ };
+ Control TLB_DBLIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 166 , 72 ) ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_DBOWNFORMAT
+ {
+ Pos = MAP_APPFONT ( 94 , 103 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "A~us Datenbank" ;
+ Text [ ENGLISH ] = "From database" ;
+ Check = TRUE ;
+ Text [ english_us ] = "From database" ;
+ Text [ portuguese_brazilian ] = "Aus Datenbank" ;
+ Text [ swedish ] = "Från databas" ;
+ Text [ danish ] = "Fra database" ;
+ Text [ italian ] = "Dal database" ;
+ Text [ spanish ] = "De la base de datos" ;
+ Text [ french ] = "~De la B.D." ;
+ Text [ dutch ] = "~Uit database" ;
+ Text [ portuguese ] = "~Da base de dados" ;
+ Text[ chinese_simplified ] = "´ÓÊý¾Ý¿â";
+ Text[ russian ] = "èç áàçû äàííûõ";
+ Text[ polish ] = "Z bazy danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½‚©‚ç";
+ Text[ chinese_traditional ] = "±q¸ê®Æ®w";
+ Text[ arabic ] = "ãä ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "Áðü âÜóç äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º·Î ºÎÅÍ";
+ Text[ turkish ] = "Kaynak veritabaný";
+ };
+ RadioButton RB_DBFORMAT
+ {
+ Pos = MAP_APPFONT ( 94 , 115 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Se~lbst definiert" ;
+ Text [ ENGLISH ] = "User defined" ;
+ Text [ english_us ] = "User-defined" ;
+ Text [ portuguese_brazilian ] = "Selbstdefiniert" ;
+ Text [ swedish ] = "Användardefinierat" ;
+ Text [ danish ] = "Brugerdefineret" ;
+ Text [ italian ] = "Personalizzato" ;
+ Text [ spanish ] = "Definido por el usuario" ;
+ Text [ french ] = "Dé~fini par l'utilisateur" ;
+ Text [ dutch ] = "~Zelf gedefinieerd" ;
+ Text [ portuguese ] = "D~efinido pelo utilizador" ;
+ Text[ chinese_simplified ] = "Óû§×Ô¶¨";
+ Text[ russian ] = "ïîëüçîâàòåëÿ";
+ Text[ polish ] = "Zdefiniowane przez u¿ytkownika";
+ Text[ japanese ] = "Õ°»Þ°’è‹`";
+ Text[ chinese_traditional ] = "¦Û­q";
+ Text[ arabic ] = "ãõÚÑÝ ãä ÞÈá ÇáãÓÊÎÏã";
+ Text[ greek ] = "ÐñïóáñìïóìÝíï";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ";
+ Text[ turkish ] = "Kullanýcý tanýmlý";
+ };
+ ListBox LB_DBNUMFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 160 , 113 ) ;
+ Size = MAP_APPFONT ( 88 , 60 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ DropDown = TRUE ;
+ };
+ ListBox LB_DBFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 160 , 113 ) ;
+ Size = MAP_APPFONT ( 88 , 60 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ DropDown = TRUE ;
+ Sort = FALSE ;
+ Hide = TRUE ;
+ };
+ GroupBox GB_DBFORMAT
+ {
+ Pos = MAP_APPFONT ( 88 , 91 ) ;
+ Size = MAP_APPFONT ( 166 , 38 ) ;
+ TEXT = "Format" ;
+ TEXT [ English ] = "Format" ;
+ Text [ english_us ] = "Format" ;
+ Text [ portuguese_brazilian ] = "Format" ;
+ Text [ swedish ] = "Format" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "Formato" ;
+ Text [ spanish ] = "Formato" ;
+ Text [ french ] = "Format" ;
+ Text [ dutch ] = "Formaat" ;
+ Text [ portuguese ] = "Formato" ;
+ Text[ chinese_simplified ] = "¸ñʽ";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®";
+ Text[ chinese_traditional ] = "®æ¦¡";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "ÌïñöÞ";
+ Text[ korean ] = "¼­½Ä";
+ Text[ turkish ] = "Format";
+ };
+ Text [ english_us ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Datenbank" ;
+ Text [ swedish ] = "Databas" ;
+ Text [ danish ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ french ] = "Base de données" ;
+ Text [ dutch ] = "Database" ;
+ Text [ portuguese ] = "Base de dados" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â";
+ Text[ russian ] = "Áàçà äàííûõ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "¸ê®Æ®w";
+ Text[ arabic ] = "ÞÇÚÏÉ ÈíÇäÇÊ";
+ Text[ greek ] = "ÂÜóç äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º";
+ Text[ turkish ] = "Veritabaný";
+};
diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx
new file mode 100644
index 000000000000..9ba592230a3e
--- /dev/null
+++ b/sw/source/ui/fldui/flddinf.cxx
@@ -0,0 +1,571 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddinf.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _FLDDINF_HXX
+#include <flddinf.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDokInfPage::SwFldDokInfPage(Window* pWindow, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pWindow, SW_RES( TP_FLD_DOKINF ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_DOKINFTYPE)),
+ aTypeTLB (this, SW_RES(TLB_DOKINFTYPE)),
+ aSelectionFT(this, SW_RES(FT_DOKINFSELECTION)),
+ aSelectionLB(this, SW_RES(LB_DOKINFSELECTION)),
+ aFormatFT (this, SW_RES(FT_DOKINFFORMAT)),
+ aFormatLB (this, SW_RES(LB_DOKINFFORMAT)),
+ aFixedCB (this, SW_RES(CB_DOKINFFIXEDCONTENT)),
+
+ aRootOpened (SW_RES(BMP_DOKINFROOT_OPENED)),
+ aRootClosed (SW_RES(BMP_DOKINFROOT_CLOSED)),
+ aInfoStr (SW_RES(STR_DOKINF_INFO)),
+ pSelEntry (0)
+{
+ FreeResource();
+
+ aTypeTLB.SetHelpId(HID_FIELD_DINF_TYPE);
+ aTypeTLB.SetSelectionMode(SINGLE_SELECTION);
+ aTypeTLB.SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
+ // Font nicht setzen, damit der Font des Controls uebernommen wird!
+ // Sonst bei falschem Font Bug an OV.
+ aTypeTLB.SetSpaceBetweenEntries(0);
+
+ aTypeTLB.SetNodeBitmaps( aRootOpened, aRootClosed );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldDokInfPage::~SwFldDokInfPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldDokInfPage::Reset(const SfxItemSet& rSet)
+{
+ Init(); // Allgemeine initialisierung
+
+ // TypeListBox initialisieren
+ aTypeTLB.SetUpdateMode(FALSE);
+ aTypeTLB.Clear();
+ pSelEntry = 0;
+
+ // SubTypes in der TypeLB anzeigen
+ USHORT nTypeId = TYP_DOCINFOFLD;
+ SvLBoxEntry* pEntry = 0;
+
+ SvLBoxEntry* pInfo = 0;
+
+ USHORT nSubType = USHRT_MAX;
+
+ if (IsFldEdit())
+ nSubType = ((SwDocInfoField*)GetCurField())->GetSubType() & 0xff;
+
+ USHORT nSelEntryData = USHRT_MAX;
+ String sUserData = GetUserData();
+ if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ nSelEntryData = sVal.ToInt32();
+ }
+
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ for (USHORT i = 0; i < rLst.Count(); ++i)
+ {
+ if (!IsFldEdit() || nSubType == i)
+ {
+ if (i >= DI_INFO1 && i <= DI_INFO4)
+ {
+ if (!pInfo && !IsFldEdit())
+ {
+ pInfo = aTypeTLB.InsertEntry(aInfoStr);
+ pInfo->SetUserData((void*)USHRT_MAX);
+ }
+ pEntry = aTypeTLB.InsertEntry(*rLst[i], pInfo);
+ pEntry->SetUserData((void*)i);
+ }
+ else
+ {
+ if (!(IsFldDlgHtmlMode() && (i == DI_EDIT || i == DI_THEMA || i == DI_PRINT)))
+ {
+ pEntry = aTypeTLB.InsertEntry(*rLst[i]);
+ pEntry->SetUserData((void*)i);
+ }
+ }
+ if(nSelEntryData == i)
+ pSelEntry = pEntry;
+ }
+ }
+
+ // alte Pos selektieren
+ if (pSelEntry != 0)
+ {
+ aTypeTLB.Select(pSelEntry);
+ nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+ }
+ else
+ {
+ pSelEntry = aTypeTLB.GetEntry(0);
+ nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+ }
+
+ FillSelectionLB(nSubType);
+ TypeHdl();
+
+ aTypeTLB.SetUpdateMode(TRUE);
+ aTypeTLB.SetSelectHdl(LINK(this, SwFldDokInfPage, TypeHdl));
+ aTypeTLB.SetDoubleClickHdl(LINK(this, SwFldDokInfPage, InsertHdl));
+ aSelectionLB.SetSelectHdl(LINK(this, SwFldDokInfPage, SubTypeHdl));
+ aSelectionLB.SetDoubleClickHdl(LINK(this, SwFldDokInfPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl(LINK(this, SwFldDokInfPage, InsertHdl));
+
+ if (IsFldEdit())
+ {
+ nOldSel = aSelectionLB.GetSelectEntryPos();
+ nOldFormat = GetCurField()->GetFormat();
+ aFixedCB.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokInfPage, TypeHdl, ListBox *, EMPTYARG )
+{
+ // Alte ListBoxPos sichern
+ SvLBoxEntry* pOldEntry = pSelEntry;
+
+ // Aktuelle ListBoxPos
+ pSelEntry = aTypeTLB.FirstSelected();
+
+ if(!pSelEntry)
+ {
+ pSelEntry = aTypeTLB.GetEntry(0);
+ aTypeTLB.Select(pSelEntry);
+ }
+ else
+
+ if (pOldEntry != pSelEntry)
+ FillSelectionLB((USHORT)(ULONG)pSelEntry->GetUserData());
+
+ SubTypeHdl();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokInfPage, SubTypeHdl, ListBox *, pBox )
+{
+ USHORT nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ USHORT nExtSubType;
+
+ if (nSubType != DI_EDIT)
+ {
+ if (nPos == LISTBOX_ENTRY_NOTFOUND)
+ {
+ if (!aSelectionLB.GetEntryCount())
+ {
+ aFormatLB.Clear();
+ aFormatLB.Enable(FALSE);
+ aFormatFT.Enable(FALSE);
+ return 0;
+ }
+ nPos = 0;
+ }
+
+ nExtSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ }
+ else
+ nExtSubType = DI_SUB_TIME;
+
+ USHORT nOldType = 0;
+ USHORT nNewType = 0;
+ BOOL bEnable = FALSE;
+ BOOL bOneArea = FALSE;
+
+ if (aFormatLB.IsEnabled())
+ nOldType = aFormatLB.GetFormatType();
+
+ switch (nExtSubType)
+ {
+ case DI_SUB_AUTHOR:
+ break;
+
+ case DI_SUB_DATE:
+ nNewType = NUMBERFORMAT_DATE;
+ bOneArea = TRUE;
+ break;
+
+ case DI_SUB_TIME:
+ nNewType = NUMBERFORMAT_TIME;
+ bOneArea = TRUE;
+ break;
+ }
+
+ if (!nNewType)
+ {
+ aFormatLB.Clear();
+ }
+ else
+ {
+ if (nOldType != nNewType)
+ {
+ aFormatLB.SetFormatType(nNewType);
+ aFormatLB.SetOneArea(bOneArea);
+ }
+ bEnable = TRUE;
+ }
+
+ ULONG nFormat = IsFldEdit() ? ((SwDocInfoField*)GetCurField())->GetFormat() : 0;
+
+ USHORT nOldSubType = IsFldEdit() ? (((SwDocInfoField*)GetCurField())->GetSubType() & 0xff00) : 0;
+
+ if (IsFldEdit())
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ nSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+
+ nOldSubType &= ~DI_SUB_FIXED;
+ if (nOldSubType == nSubType)
+ {
+ if (!nFormat && (nNewType == NUMBERFORMAT_DATE || nNewType == NUMBERFORMAT_TIME))
+ {
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+ LanguageType eLang = aFormatLB.GetCurLanguage();
+
+ if (nNewType == NUMBERFORMAT_DATE)
+ nFormat = pFormatter->GetFormatIndex( NF_DATE_SYSTEM_SHORT, eLang);
+ else if (nNewType == NUMBERFORMAT_TIME)
+ nFormat = pFormatter->GetFormatIndex( NF_TIME_HHMM, eLang);
+ }
+ aFormatLB.SetDefFormat(nFormat);
+ }
+ }
+ }
+
+ aFormatLB.Enable(bEnable);
+ aFormatFT.Enable(bEnable);
+
+ if (bEnable && aFormatLB.GetSelectEntryPos() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ aFormatLB.SelectEntryPos(0);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokInfPage::FillSelectionLB(USHORT nSubType)
+{
+ // Format-Listbox fuellen
+ USHORT nTypeId = TYP_DOCINFOFLD;
+
+ EnableInsert(nSubType != USHRT_MAX);
+
+ if (nSubType == USHRT_MAX) // Info-Text
+ nSubType = DI_INFO1;
+
+ aSelectionLB.Clear();
+
+ USHORT nSize = 0;
+ USHORT nSelPos = USHRT_MAX;
+ USHORT nExtSubType = IsFldEdit() ? (((SwDocInfoField*)GetCurField())->GetSubType() & 0xff00) : 0;
+
+ if (IsFldEdit())
+ {
+ aFixedCB.Check((nExtSubType & DI_SUB_FIXED) != 0);
+ nExtSubType = ((nExtSubType & ~DI_SUB_FIXED) >> 8) - 1;
+ }
+
+ if (nSubType < DI_CREATE || nSubType == DI_DOCNO || nSubType == DI_EDIT)
+ {
+ // Format Box ist fuer Title und Time leer
+ }
+ else
+ {
+ nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aSelectionLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ aSelectionLB.SetEntryData(nPos, (void*)GetFldMgr().GetFormatId(nTypeId, i));
+ if (IsFldEdit() && i == nExtSubType)
+ nSelPos = nPos;
+ }
+ }
+
+ BOOL bEnable = nSize != 0;
+
+ if (nSize)
+ {
+ if (!aSelectionLB.GetSelectEntryCount())
+ aSelectionLB.SelectEntryPos(nSelPos == USHRT_MAX ? 0 : nSelPos);
+
+ bEnable = TRUE;
+ }
+
+ aSelectionFT.Enable(bEnable);
+ aSelectionLB.Enable(bEnable);
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldDokInfPage::FillItemSet(SfxItemSet& rSet)
+{
+ if (!pSelEntry || (USHORT)(ULONG)pSelEntry->GetUserData() == USHRT_MAX)
+ return FALSE;
+
+ USHORT nTypeId = TYP_DOCINFOFLD;
+ USHORT nSubType = (USHORT)(ULONG)pSelEntry->GetUserData();
+
+ ULONG nFormat = 0;
+
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ nSubType |= (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+
+ if (aFixedCB.IsChecked())
+ nSubType |= DI_SUB_FIXED;
+
+ nPos = aFormatLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ nFormat = aFormatLB.GetFormat();
+
+ if (!IsFldEdit() || nOldSel != aSelectionLB.GetSelectEntryPos() ||
+ nOldFormat != nFormat || aFixedCB.GetState() != aFixedCB.GetSavedValue())
+ {
+ InsertFld(nTypeId, nSubType, aEmptyStr, aEmptyStr, nFormat);
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldDokInfPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldDokInfPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokInfPage::GetGroup()
+{
+ return GRP_REG;
+}
+/* -----------------12.01.99 11:21-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldDokInfPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ SvLBoxEntry* pEntry = aTypeTLB.FirstSelected();
+ USHORT nTypeSel = pEntry ? (ULONG)pEntry->GetUserData() : USHRT_MAX;
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.21 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.20 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.19 2000/05/23 18:36:37 jp
+ Bugfixes for Unicode
+
+ Revision 1.18 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.17 2000/02/11 14:46:08 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.16 1999/02/19 07:48:26 MA
+ #61949# CurrShell gibt es nicht mehr
+
+
+ Rev 1.15 19 Feb 1999 08:48:26 MA
+ #61949# CurrShell gibt es nicht mehr
+
+ Rev 1.14 21 Jan 1999 09:46:24 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.13 12 Jan 1999 11:42:24 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.12 06 Mar 1998 14:53:52 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.11 25 Feb 1998 16:47:58 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.10 16 Feb 1998 10:10:22 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.9 12 Feb 1998 11:06:02 OM
+ Zahlenformat fuer Docinfofelder
+
+ Rev 1.8 03 Feb 1998 12:21:38 OM
+ #46621# HelpIDs fuer Feldbefehl-Dlg
+
+ Rev 1.7 19 Dec 1997 18:24:30 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.6 12 Dec 1997 16:10:06 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.5 11 Dec 1997 16:58:00 OM
+ Feldumstellung
+
+ Rev 1.4 10 Dec 1997 14:42:08 OM
+ Fixe DocInfoFelder
+
+ Rev 1.3 21 Nov 1997 17:19:46 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.2 20 Nov 1997 17:01:22 OM
+ Neuer Felddialog
+
+ Rev 1.1 05 Nov 1997 15:35:38 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.0 30 Oct 1997 14:30:02 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/flddinf.hxx b/sw/source/ui/fldui/flddinf.hxx
new file mode 100644
index 000000000000..5a61b627e10b
--- /dev/null
+++ b/sw/source/ui/fldui/flddinf.hxx
@@ -0,0 +1,132 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddinf.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDDINF_HXX
+#define _SWFLDDINF_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+
+#include "numfmtlb.hxx"
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldDokInfPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ SvTreeListBox aTypeTLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aFormatFT;
+ NumFormatListBox aFormatLB;
+ CheckBox aFixedCB;
+
+ SvLBoxEntry* pSelEntry;
+
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+ String aInfoStr;
+
+ USHORT nOldSel;
+ ULONG nOldFormat;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+
+ USHORT FillSelectionLB(USHORT nSubTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldDokInfPage(Window* pWindow, const SfxItemSet& rSet);
+
+ ~SwFldDokInfPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/flddinf.src b/sw/source/ui/fldui/flddinf.src
new file mode 100644
index 000000000000..9a968d45c076
--- /dev/null
+++ b/sw/source/ui/fldui/flddinf.src
@@ -0,0 +1,398 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddinf.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_DOKINF
+{
+ HelpID = HID_FLD_DOKINF ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Dokumentinfo" ;
+ Text [ ENGLISH ] = "Document information" ;
+ FixedText FT_DOKINFTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Fälttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï ïîëÿ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨°ÙÄÞ‚ÌŽí—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "äæÚ ÇáÍÞá";
+ Text[ greek ] = "~Ôýðïò ðåäßïõ";
+ Text[ korean ] = "ÇüÅÂ(~T)";
+ Text[ turkish ] = "A~lan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ Control TLB_DOKINFTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_DOKINFSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleção" ;
+ Text [ portuguese ] = "~Selecção" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Sélection" ;
+ Text [ swedish ] = "~Urval" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~lección" ;
+ Text [ english_us ] = "S~elect" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~E)";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð(~E)";
+ Text[ chinese_traditional ] = "¿ï¾Ü(~E)";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "~ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ(~E)";
+ Text[ turkish ] = "S~eçim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKINFSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ StringList =
+ {
+ < "Autor" ; > ;
+ < "Uhrzeit" ; > ;
+ < "Datum" ; > ;
+ < "Datum Zeit Autor" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "Author" ; > ;
+ < "Time" ; > ;
+ < "Date" ; > ;
+ < "Date Time Author" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Autor" ; > ;
+ < "Uhrzeit" ; > ;
+ < "Datum" ; > ;
+ < "Datum Zeit Autor" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Författare" ; > ;
+ < "Klockslag" ; > ;
+ < "Datum" ; > ;
+ < "Datum Tid Författare" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Forfatter" ; > ;
+ < "Klokkeslæt" ; > ;
+ < "Dato" ; > ;
+ < "Dato Tid Forfatter" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Autore" ; > ;
+ < "Orario" ; > ;
+ < "Data" ; > ;
+ < "Data orario autore" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Autor" ; > ;
+ < "Hora" ; > ;
+ < "Fecha" ; > ;
+ < "Fecha Hora Autor" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Auteur" ; > ;
+ < "Heure" ; > ;
+ < "Date" ; > ;
+ < "Date Heure Auteur" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Auteur" ; > ;
+ < "Tijd" ; > ;
+ < "Datum" ; > ;
+ < "Datum Tijd Auteur" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Autor" ; > ;
+ < "Horas" ; > ;
+ < "Data" ; > ;
+ < "Data Horas Autor" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×÷Õß" ; > ;
+ < "ʱ¼ä" ; > ;
+ < "ÈÕÆÚ" ; > ;
+ < "ÈÕÆÚ Ê±¼ä ×÷Õß" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Àâòîð" ; > ;
+ < "Âðåìÿ" ; > ;
+ < "Äàòà" ; > ;
+ < "Äàòà Âðåìÿ Àâòîð" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Autor" ; > ;
+ < "Godzina" ; > ;
+ < "Data" ; > ;
+ < "Data Godzina Autor" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "쬎Ò" ; > ;
+ < "Žž" ; > ;
+ < "“ú•t" ; > ;
+ < "“ú•t@Žž@쬎Ò" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "§@ªÌ" ; > ;
+ < "®É¶¡" ; > ;
+ < "¤é´Á" ; > ;
+ < "¤é´Á ®É¶¡ §@ªÌ" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÇáãÄáÝ" ; > ;
+ < "ÇáæÞÊ" ; > ;
+ < "ÇáÊÇÑíÎ" ; > ;
+ < "ÇáÊÇÑíÎ ÇáæÞÊ ÇáãÄáÝ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÓõíôÜêôçò" ; > ;
+ < "¿ñá" ; > ;
+ < "Çìåñïìçíßá" ; > ;
+ < "Çìåñïìçíßá ¿ñá ÓõíôÜêôçò" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ÀÛ¼ºÀÎ" ; > ;
+ < "½Ã°£" ; > ;
+ < "ÀÏÀÚ" ; > ;
+ < "ÀÏÀÚ ½Ã°£ ÀÛ¼ºÀÎ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yazan" ; > ;
+ < "Saat" ; > ;
+ < "Tarih" ; > ;
+ < "Tarih Saat Yazan" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_DOKINFFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "F~ormaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ì~ïñöÞ";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKINFFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 98 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ CheckBox CB_DOKINFFIXEDCONTENT
+ {
+ Pos = MAP_APPFONT ( 170 , 120 ) ;
+ Size = MAP_APPFONT ( 72 , 10 ) ;
+ TEXT = "~Inhalt fixieren" ;
+ TEXT [ English ] = "Fixed content" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Fi~xed content" ;
+ Text [ portuguese_brazilian ] = "~Inhalt fixieren" ;
+ Text [ swedish ] = "Fixera ~innehåll" ;
+ Text [ danish ] = "Fast indhold" ;
+ Text [ italian ] = "~Fissa il contenuto" ;
+ Text [ spanish ] = "~Fijar contenido" ;
+ Text [ french ] = "Contenu f~ixe" ;
+ Text [ dutch ] = "~Inhoud fixeren" ;
+ Text [ portuguese ] = "~Contéudo fixo" ;
+ Text[ chinese_simplified ] = "¹Ì¶¨ÄÚÈÝ(~X)";
+ Text[ russian ] = "Ôèêñ. ñîäåðæèìîå";
+ Text[ polish ] = "Sta³a treœæ";
+ Text[ japanese ] = "“à—e‚̌Œè(~F)";
+ Text[ chinese_traditional ] = "©T©w¤º®e(~F)";
+ Text[ arabic ] = "ÊËÈíÊ ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Ðáãßùóç ðåñ~éå÷ïìÝíùí";
+ Text[ korean ] = "³»¿ë °íÁ¤(~X)";
+ Text[ turkish ] = "Ýçeriði sabitle";
+ Text[ language_user1 ] = " ";
+ };
+ Bitmap BMP_DOKINFROOT_OPENED
+ {
+ File = "plus.bmp" ;
+ };
+ Bitmap BMP_DOKINFROOT_CLOSED
+ {
+ File = "minus.bmp" ;
+ };
+ String STR_DOKINF_INFO
+ {
+ TEXT = "Info" ;
+ TEXT [ English ] = "Info" ;
+ Text [ english_us ] = "Info" ;
+ Text [ portuguese_brazilian ] = "Info" ;
+ Text [ swedish ] = "Info" ;
+ Text [ danish ] = "Info" ;
+ Text [ italian ] = "Info" ;
+ Text [ spanish ] = "Información" ;
+ Text [ french ] = "Info" ;
+ Text [ dutch ] = "Info" ;
+ Text [ portuguese ] = "Info" ;
+ Text[ chinese_simplified ] = "ÓйØ";
+ Text[ russian ] = "Èíôîðìàöèÿ";
+ Text[ polish ] = "Informacja";
+ Text[ japanese ] = "²ÝÌ«Ò°¼®Ý";
+ Text[ chinese_traditional ] = "Ãö©ó";
+ Text[ arabic ] = "ãÚáæãÇÊ";
+ Text[ greek ] = "Ðëçñïöïñßåò";
+ Text[ korean ] = "Á¤º¸";
+ Text[ turkish ] = "Bilgi";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "DocInformation" ;
+ Text [ portuguese_brazilian ] = "Dokumentinfo" ;
+ Text [ swedish ] = "Dokumentinfo" ;
+ Text [ danish ] = "Dokumentinfo" ;
+ Text [ italian ] = "Info documento" ;
+ Text [ spanish ] = "Información del documento" ;
+ Text [ french ] = "Info document" ;
+ Text [ dutch ] = "Documentinfo" ;
+ Text [ portuguese ] = "Info. sobre documento" ;
+ Text[ chinese_simplified ] = "ÎĵµÐÅÏ¢";
+ Text[ russian ] = "Ñâåäåíèÿ î äîêóìåíòå";
+ Text[ polish ] = "Informacje o dokumencie";
+ Text[ japanese ] = "ÄÞ·­ÒÝÄ ²ÝÌ«Ò°¼®Ý";
+ Text[ chinese_traditional ] = "¤å¥ó¸ê°T";
+ Text[ arabic ] = "ãÚáæãÇÊ ÇáãÓÊäÏ";
+ Text[ greek ] = "Ðëçñïöïñßåò åããñÜöïõ";
+ Text[ korean ] = "µî·ÏÁ¤º¸";
+ Text[ turkish ] = "Belge bilgileri";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
new file mode 100644
index 000000000000..4cf7743f6995
--- /dev/null
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -0,0 +1,872 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddok.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+
+#ifndef _FLDDAT_HXX //autogen
+#include <flddat.hxx>
+#endif
+#ifndef _DOCUFLD_HXX //autogen
+#include <docufld.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _CHPFLD_HXX
+#include <chpfld.hxx>
+#endif
+
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDDOK_HXX
+#include <flddok.hxx>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDokPage::SwFldDokPage(Window* pWindow, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pWindow, SW_RES( TP_FLD_DOK ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_DOKTYPE)),
+ aTypeLB (this, SW_RES(LB_DOKTYPE)),
+ aSelectionFT (this, SW_RES(FT_DOKSELECTION)),
+ aSelectionLB (this, SW_RES(LB_DOKSELECTION)),
+ aValueFT (this, SW_RES(FT_DOKVALUE)),
+ aValueED (this, SW_RES(ED_DOKVALUE)),
+ aLevelED (this, SW_RES(ED_DOKLEVEL)),
+ aDateOffsetED (this, SW_RES(ED_DOKDATEOFF)),
+
+ aFormatFT (this, SW_RES(FT_DOKFORMAT)),
+ aFormatLB (this, SW_RES(LB_DOKFORMAT)),
+ aNumFormatLB (this, SW_RES(LB_DOKNUMFORMAT)),
+ aFixedCB (this, SW_RES(CB_DOKFIXEDCONTENT)),
+
+ sDateOffset (SW_RES(STR_DOKDATEOFF)),
+ sTimeOffset (SW_RES(STR_DOKTIMEOFF)),
+ aRootOpened (SW_RES(BMP_DOKROOT_OPENED)),
+ aRootClosed (SW_RES(BMP_DOKROOT_CLOSED))
+{
+ FreeResource();
+
+ aSelectionLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, InsertHdl));
+ aNumFormatLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, NumFormatHdl));
+
+ aLevelED.SetMax(MAXLEVEL);
+ aDateOffsetED.SetMin(LONG_MIN);
+ aDateOffsetED.SetMax(LONG_MAX);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldDokPage::~SwFldDokPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldDokPage::Reset(const SfxItemSet& rSet)
+{
+ SavePos(&aTypeLB);
+ Init(); // Allgemeine initialisierung
+
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId;
+ BOOL bPage = FALSE;
+
+ if (!IsFldEdit())
+ {
+ // Typ-Listbox fuellen
+ for(short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+
+ switch (nTypeId)
+ {
+ case TYP_PREVPAGEFLD:
+ case TYP_NEXTPAGEFLD:
+ case TYP_PAGENUMBERFLD:
+ if (!bPage)
+ {
+ nPos = aTypeLB.InsertEntry(SW_RESSTR(FMT_REF_PAGE));
+ aTypeLB.SetEntryData(nPos, (void*)USHRT_MAX);
+ bPage = TRUE;
+ }
+ break;
+
+ default:
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ break;
+ }
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ if (nTypeId == TYP_FIXDATEFLD)
+ nTypeId = TYP_DATEFLD;
+ if (nTypeId == TYP_FIXTIMEFLD)
+ nTypeId = TYP_TIMEFLD;
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+
+ // alte Pos selektieren
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetUpdateMode(TRUE);
+ aTypeLB.SetDoubleClickHdl(LINK(this, SwFldDokPage, InsertHdl));
+ aTypeLB.SetSelectHdl(LINK(this, SwFldDokPage, TypeHdl));
+ aFormatLB.SetSelectHdl(LINK(this, SwFldDokPage, FormatHdl));
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if( sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1 ))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ if (IsFldEdit())
+ {
+ nOldSel = aSelectionLB.GetSelectEntryPos();
+ nOldFormat = GetCurField()->GetFormat();
+ aFixedCB.SaveValue();
+ aValueED.SaveValue();
+ aLevelED.SaveValue();
+ aDateOffsetED.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokPage, TypeHdl, ListBox *, EMPTYARG )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ USHORT nCount;
+
+ if (nOld != GetTypeSel())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ aSelectionLB.Clear();
+
+ if (nTypeId != USHRT_MAX)
+ {
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+
+ if (nTypeId != TYP_AUTHORFLD)
+ nCount = rLst.Count();
+ else
+ nCount = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ USHORT nPos;
+
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ if (!IsFldEdit())
+ {
+ if (nTypeId != TYP_AUTHORFLD)
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ else
+ nPos = aSelectionLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ }
+ else
+ {
+ BOOL bInsert = FALSE;
+
+ switch (nTypeId)
+ {
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ if (((SwDateTimeField*)GetCurField())->IsFixed() && !i)
+ aSelectionLB.SelectEntryPos(nPos);
+ if (!((SwDateTimeField*)GetCurField())->IsFixed() && i)
+ aSelectionLB.SelectEntryPos(nPos);
+ break;
+
+ case TYP_EXTUSERFLD:
+ case TYP_DOCSTATFLD:
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ if (GetCurField()->GetSubType() == i)
+ aSelectionLB.SelectEntryPos(nPos);
+ break;
+
+ case TYP_AUTHORFLD:
+ {
+ String sFmt(GetFldMgr().GetFormatStr(nTypeId, i));
+ nPos = aSelectionLB.InsertEntry(sFmt);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ aSelectionLB.SelectEntry(GetFldMgr().GetFormatStr(nTypeId, GetCurField()->GetFormat()));
+ break;
+ }
+
+ default:
+ if (*rLst[i] == GetCurField()->GetPar1())
+ bInsert = TRUE;
+ break;
+ }
+ if (bInsert)
+ {
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ break;
+ }
+ }
+ }
+ aSelectionLB.SetSelectHdl(Link());
+ }
+ else
+ {
+ AddSubType(TYP_PAGENUMBERFLD);
+ AddSubType(TYP_PREVPAGEFLD);
+ AddSubType(TYP_NEXTPAGEFLD);
+ nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(0);
+ nCount = 3;
+ aSelectionLB.SetSelectHdl(LINK(this, SwFldDokPage, SubTypeHdl));
+ }
+
+ BOOL bEnable = nCount != 0;
+
+ if (bEnable && !aSelectionLB.GetSelectEntryCount())
+ aSelectionLB.SelectEntryPos(0);
+
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ // Format-Listbox fuellen
+ USHORT nSize = FillFormatLB(nTypeId);
+
+ BOOL bValue = FALSE, bLevel = FALSE, bNumFmt = FALSE, bOffset = FALSE;
+ BOOL bFormat = nSize != 0;
+ BOOL bOneArea = FALSE;
+ BOOL bFixed = FALSE;
+ USHORT nFmtType = 0;
+
+ switch (nTypeId)
+ {
+ case TYP_DATEFLD:
+ bFormat = bNumFmt = bOneArea = bOffset = TRUE;
+
+ nFmtType = NUMBERFORMAT_DATE;
+ aValueFT.SetText(sDateOffset);
+ aDateOffsetED.SetFirst(-31); // Ein Monat
+ aDateOffsetED.SetLast(31);
+
+ if (IsFldEdit())
+ aDateOffsetED.SetValue( ((SwDateTimeField*)GetCurField())->GetOffset() / 24 / 60);
+ break;
+
+ case TYP_TIMEFLD:
+ bFormat = bNumFmt = bOneArea = bOffset = TRUE;
+
+ nFmtType = NUMBERFORMAT_TIME;
+ aValueFT.SetText(sTimeOffset);
+ aDateOffsetED.SetFirst(-1440); // Ein Tag
+ aDateOffsetED.SetLast(1440);
+
+ if (IsFldEdit())
+ aDateOffsetED.SetValue( ((SwDateTimeField*)GetCurField())->GetOffset() );
+ break;
+
+ case TYP_PREVPAGEFLD:
+ case TYP_NEXTPAGEFLD:
+ if (IsFldEdit())
+ {
+ USHORT nTmp = (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ String sOldTxt(aValueFT.GetText());
+
+ if (FMT_NUM_PAGESPECIAL - FMT_NUM_BEGIN != nTmp)
+ {
+ short nOff = GetCurField()->GetPar2().ToInt32();
+ if( TYP_NEXTPAGEFLD == nTypeId && 1 != nOff )
+ aValueED.SetText( nOff - 1 );
+ else if( TYP_PREVPAGEFLD == nTypeId && -1 != nOff )
+ aValueED.SetText( nOff + 1 );
+ else
+ aValueED.SetText(aEmptyStr);
+ }
+ else
+ aValueED.SetText(((SwPageNumberField*)GetCurField())->GetUserString());
+ }
+ bValue = TRUE;
+ break;
+
+ case TYP_CHAPTERFLD:
+ aValueFT.SetText(SW_RESSTR(STR_LEVEL));
+ if (IsFldEdit())
+ aLevelED.SetText(String::CreateFromInt32(((SwChapterField*)GetCurField())->GetLevel() + 1));
+ bLevel = TRUE;
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ aValueFT.SetText( SW_RESSTR( STR_OFFSET ));
+ if (IsFldEdit())
+ aValueED.SetText(GetCurField()->GetPar2());
+ bValue = TRUE;
+ break;
+
+ case TYP_EXTUSERFLD:
+ case TYP_AUTHORFLD:
+ case TYP_FILENAMEFLD:
+ bFixed = TRUE;
+ break;
+
+ default:
+ break;
+ }
+
+ if (bNumFmt)
+ {
+ if (IsFldEdit())
+ {
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+
+ if (aNumFormatLB.GetFormatType() == (NUMBERFORMAT_DATE|NUMBERFORMAT_TIME))
+ {
+ // Format-Typ immer einstellen, da sonst bei kombinierten Datum/Zeitformaten
+ // beide Formate gleichzeitig angezeigt werden wuerden
+ aNumFormatLB.SetFormatType(0);
+ aNumFormatLB.SetFormatType(nFmtType);
+ // Nochmal richtiges Format einstellen
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+ }
+ }
+ else
+ aNumFormatLB.SetFormatType(nFmtType);
+
+ aNumFormatLB.SetOneArea(bOneArea);
+ }
+
+ aFormatLB.Show(!bNumFmt);
+ aNumFormatLB.Show(bNumFmt);
+
+ Size aSz(aFormatLB.GetSizePixel());
+
+ if (bValue | bLevel | bOffset)
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 82), MAP_APPFONT).Height();
+ else
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 98), MAP_APPFONT).Height();
+
+ aValueFT.Show(bValue | bLevel | bOffset);
+ aValueED.Show(bValue);
+ aLevelED.Show(bLevel);
+ aDateOffsetED.Show(bOffset);
+ aFixedCB.Show(!bValue && !bLevel && !bOffset);
+
+ aFormatLB.SetSizePixel(aSz);
+ aNumFormatLB.SetSizePixel(aSz);
+
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat);
+ aFixedCB.Enable(bFixed);
+
+ if (IsFldEdit())
+ aFixedCB.Check(((GetCurField()->GetFormat() & AF_FIXED) != 0) & bFixed);
+
+ if (aNumFormatLB.GetSelectEntryPos() == LISTBOX_ENTRY_NOTFOUND)
+ aNumFormatLB.SelectEntryPos(0);
+ aValueFT.Enable(bValue | bLevel | bOffset);
+ aValueED.Enable(bValue);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDokPage::AddSubType(USHORT nTypeId)
+{
+ USHORT nPos = aSelectionLB.InsertEntry(*SwFieldType::GetFldNames()->GetObject(nTypeId));
+ aSelectionLB.SetEntryData(nPos, (void*)nTypeId);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokPage, SubTypeHdl, ListBox *, EMPTYARG )
+{
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+
+ USHORT nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ FillFormatLB(nTypeId);
+
+ USHORT nTextRes = 0;
+ switch (nTypeId)
+ {
+ case TYP_CHAPTERFLD:
+ nTextRes = STR_LEVEL;
+ break;
+
+ case TYP_PREVPAGEFLD:
+ case TYP_NEXTPAGEFLD:
+ nTextRes = SVX_NUM_CHAR_SPECIAL == (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() )
+ ? STR_VALUE : STR_OFFSET;
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ nTextRes = STR_OFFSET;
+ break;
+ }
+
+ if( nTextRes )
+ aValueFT.SetText( SW_RESSTR( nTextRes ));
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokPage::FillFormatLB(USHORT nTypeId)
+{
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+
+ if (nTypeId == TYP_AUTHORFLD)
+ return aFormatLB.GetEntryCount();
+
+ USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ for( USHORT i = 0; i < nSize; ++i )
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ USHORT nFmtId = GetFldMgr().GetFormatId( nTypeId, i );
+ aFormatLB.SetEntryData( nPos, (void*)nFmtId );
+ if (IsFldEdit() && nFmtId == (GetCurField()->GetFormat() & ~AF_FIXED))
+ aFormatLB.SelectEntryPos( nPos );
+ }
+
+ if( nSize && !aFormatLB.GetSelectEntryCount() )
+ {
+ aFormatLB.SelectEntry( SW_RESSTR(FMT_NUM_PAGEDESC) );
+ if( !aFormatLB.GetSelectEntryCount() )
+ {
+ aFormatLB.SelectEntry( SW_RESSTR(FMT_NUM_ARABIC) );
+ if( !aFormatLB.GetSelectEntryCount() )
+ aFormatLB.SelectEntryPos( 0 );
+ }
+ }
+
+ FormatHdl();
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDokPage, FormatHdl, ListBox *, EMPTYARG )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if (nTypeId == USHRT_MAX)
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+
+ nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ }
+
+ if (nTypeId == TYP_NEXTPAGEFLD || nTypeId == TYP_PREVPAGEFLD)
+ {
+ // Prev/Next - PageNumFelder Sonderbehandlung:
+ USHORT nTmp = (USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ String sOldTxt( aValueFT.GetText() );
+ String sNewTxt( SW_RES( SVX_NUM_CHAR_SPECIAL == nTmp ? STR_VALUE
+ : STR_OFFSET ));
+
+ if( sOldTxt != sNewTxt )
+ aValueFT.SetText( sNewTxt );
+
+ if (sOldTxt != aValueFT.GetText())
+ aValueED.SetText( aEmptyStr );
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldDokPage::FillItemSet(SfxItemSet& rSet)
+{
+ BOOL bPage = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if (nTypeId == USHRT_MAX)
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos == LISTBOX_ENTRY_NOTFOUND)
+ nPos = 0;
+ nTypeId = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ bPage = TRUE;
+ }
+
+ String aVal(aValueED.GetText());
+ ULONG nFormat = 0;
+ USHORT nSubType = 0;
+
+ if (aFormatLB.IsEnabled())
+ {
+ USHORT nPos = aFormatLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ nFormat = (USHORT)(ULONG)aFormatLB.GetEntryData(nPos);
+ }
+
+ if (aSelectionLB.IsEnabled())
+ {
+ USHORT nPos = aSelectionLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ nSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nPos);
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_AUTHORFLD:
+ nFormat = nSubType;
+ nSubType = 0;
+ // kein break!
+ case TYP_EXTUSERFLD:
+ nFormat |= aFixedCB.IsChecked() ? AF_FIXED : 0;
+ break;
+
+ case TYP_FILENAMEFLD:
+ nFormat |= aFixedCB.IsChecked() ? FF_FIXED : 0;
+ break;
+
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ {
+ nFormat = aNumFormatLB.GetFormat();
+ long nVal = aDateOffsetED.GetValue();
+ if (nTypeId == TYP_DATEFLD)
+ aVal = String::CreateFromInt32(nVal * 60 * 24);
+ else
+ aVal = String::CreateFromInt32(nVal);
+ break;
+ }
+
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_PAGENUMBERFLD:
+ case TYP_GETREFPAGEFLD:
+ {
+ if( SVX_NUM_CHAR_SPECIAL != nFormat &&
+ (TYP_PREVPAGEFLD == nTypeId || TYP_NEXTPAGEFLD == nTypeId))
+ {
+ short nVal = aValueED.GetText().ToInt32();
+ aVal = String::CreateFromInt32(nVal);
+ }
+ break;
+ }
+
+ case TYP_CHAPTERFLD:
+ aVal = aLevelED.GetText();
+ break;
+
+ default:
+ break;
+ }
+
+ if (!IsFldEdit() ||
+ nOldSel != aSelectionLB.GetSelectEntryPos() ||
+ nOldFormat != nFormat ||
+ aFixedCB.GetState() != aFixedCB.GetSavedValue() ||
+ aValueED.GetText() != aValueED.GetSavedValue() ||
+ aLevelED.GetText() != aLevelED.GetSavedValue() ||
+ aDateOffsetED.GetText() != aDateOffsetED.GetSavedValue())
+ {
+ InsertFld( nTypeId, nSubType, aEmptyStr, aVal, nFormat );
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldDokPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldDokPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldDokPage::GetGroup()
+{
+ return GRP_DOC;
+}
+
+/* -----------------12.01.99 10:09-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldDokPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.36 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.35 2000/08/23 11:33:25 os
+ CreateFromInt32
+
+ Revision 1.34 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.33 2000/05/23 18:36:41 jp
+ Bugfixes for Unicode
+
+ Revision 1.32 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.31 2000/02/24 17:57:26 hr
+ #73447#: removed temporary
+
+ Revision 1.30 2000/02/11 14:46:18 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.29 1999/03/23 09:51:34 OS
+ #61673# Reihenfolge der Seitenfelder besser
+
+
+ Rev 1.28 23 Mar 1999 10:51:34 OS
+ #61673# Reihenfolge der Seitenfelder besser
+
+ Rev 1.27 25 Feb 1999 17:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.26 21 Jan 1999 09:50:36 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.25 12 Jan 1999 11:42:24 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.24 17 Nov 1998 10:50:38 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.23 04 Nov 1998 12:11:06 OM
+ #58851# Fixe Dateinamenfelder bearbeiten
+
+ Rev 1.22 27 Oct 1998 15:53:24 OM
+ #58427# Fixes FilenameField
+
+ Rev 1.21 10 Aug 1998 16:39:58 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.20 20 May 1998 15:59:52 OM
+ Kombinierte DateTime-Formate verarbeiten
+
+ Rev 1.19 20 May 1998 13:24:22 OM
+ Offset fuer DateTimeFields
+
+ Rev 1.18 03 Apr 1998 13:16:48 OM
+ #49062 Spinbutton fuer Kapitelebenen
+
+ Rev 1.17 26 Mar 1998 17:00:28 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.16 26 Mar 1998 16:43:10 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.15 06 Mar 1998 15:38:30 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.14 25 Feb 1998 16:47:58 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.13 16 Feb 1998 10:10:22 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.12 12 Feb 1998 13:58:24 OM
+ #47262# Offset loeschen
+
+ Rev 1.11 14 Jan 1998 10:30:26 OM
+ Kapitelfeldebene bearbeiten
+
+ Rev 1.10 09 Jan 1998 16:56:50 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.9 08 Jan 1998 14:58:24 OM
+ Traveling
+
+ Rev 1.8 07 Jan 1998 17:17:42 OM
+ Referenzen editieren
+
+ Rev 1.7 05 Jan 1998 17:44:34 OM
+ DB-Feldbefehl bearbeiten
+
+ Rev 1.6 19 Dec 1997 18:24:30 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.5 12 Dec 1997 16:10:06 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.4 11 Dec 1997 16:58:00 OM
+ Feldumstellung
+
+ Rev 1.3 20 Nov 1997 17:01:22 OM
+ Neuer Felddialog
+
+ Rev 1.2 07 Nov 1997 16:39:32 OM
+ NumberFormat-Listbox
+
+ Rev 1.1 05 Nov 1997 15:35:40 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.0 04 Nov 1997 10:07:18 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/flddok.hxx b/sw/source/ui/fldui/flddok.hxx
new file mode 100644
index 000000000000..066071f63efa
--- /dev/null
+++ b/sw/source/ui/fldui/flddok.hxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddok.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDDOK_HXX
+#define _SWFLDDOK_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#include "numfmtlb.hxx"
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldDokPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aValueFT;
+ Edit aValueED;
+ NumericField aLevelED;
+ NumericField aDateOffsetED;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ NumFormatListBox aNumFormatLB;
+ CheckBox aFixedCB;
+
+ String sDateOffset;
+ String sTimeOffset;
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+
+ USHORT nOldSel;
+ ULONG nOldFormat;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( FormatHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+
+ void AddSubType(USHORT nTypeId);
+ USHORT FillFormatLB(USHORT nTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldDokPage(Window* pWindow, const SfxItemSet& rSet);
+
+ ~SwFldDokPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/flddok.src b/sw/source/ui/fldui/flddok.src
new file mode 100644
index 000000000000..2e7afc5a0444
--- /dev/null
+++ b/sw/source/ui/fldui/flddok.src
@@ -0,0 +1,367 @@
+/*************************************************************************
+ *
+ * $RCSfile: flddok.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_DOK
+{
+ HelpID = HID_FLD_DOK ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Dokument" ;
+ Text [ ENGLISH ] = "Document" ;
+ FixedText FT_DOKTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "~Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Fälttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï ïîëÿ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨°ÙÄÞ‚ÌŽí—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "äæÚ ÇáÍÞá";
+ Text[ greek ] = "~Ôýðïò ðåäßïõ";
+ Text[ korean ] = "ÇüÅÂ(~T)";
+ Text[ turkish ] = "~Alan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_DOKSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleção" ;
+ Text [ portuguese ] = "~Selecção" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Sélection" ;
+ Text [ swedish ] = "Urv~al" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~lección" ;
+ Text [ english_us ] = "S~elect" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~E)";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð(~E)";
+ Text[ chinese_traditional ] = "¿ï¨ú(~E)";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "~ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ(~E)";
+ Text[ turkish ] = "~Seçim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ // Keine Sortierung auf Wunsch von MA (wg. Absender)
+ // Sort = TRUE;
+ TabStop = TRUE ;
+ };
+ FixedText FT_DOKFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "~Notatie" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ì~ïñöÞ";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DOKFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ // Size = MAP_APPFONT ( 84 , 82 ) ;
+ Size = MAP_APPFONT ( 84 , 98 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ ListBox LB_DOKNUMFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ // Size = MAP_APPFONT ( 84 , 82 ) ;
+ Size = MAP_APPFONT ( 84 , 98 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ Hide = TRUE ;
+ };
+ FixedText FT_DOKVALUE
+ {
+ Pos = MAP_APPFONT ( 170 , 105 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "Ko~rrektur" ;
+ TEXT [ English ] = "Offs~et" ;
+ TEXT [ norwegian ] = "Offset" ;
+ TEXT [ italian ] = "~Correzione" ;
+ TEXT [ portuguese_brazilian ] = "Deslocar" ;
+ TEXT [ portuguese ] = "~Correcção" ;
+ TEXT [ finnish ] = "Siirroa" ;
+ TEXT [ danish ] = "Korrektion" ;
+ TEXT [ french ] = "C~orrecture" ;
+ TEXT [ swedish ] = "Ko~rrigering" ;
+ TEXT [ dutch ] = "~Correctie" ;
+ TEXT [ spanish ] = "~Corrección" ;
+ TEXT [ english_us ] = "O~ffset" ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ TEXT[ chinese_simplified ] = "ÐÞ¸Ä(~F)";
+ TEXT[ russian ] = "Êîððåêòèðîâêà";
+ TEXT[ polish ] = "Korekta";
+ TEXT[ japanese ] = "C³(~F)";
+ TEXT[ chinese_traditional ] = "­×§ï(~F)";
+ TEXT[ arabic ] = "ÇáÊÕÍíÍ";
+ TEXT[ greek ] = "Äéüñèùóç";
+ TEXT[ korean ] = "¼öÁ¤(~F)";
+ TEXT[ turkish ] = "Düzeltme";
+ TEXT[ language_user1 ] = " ";
+ };
+ Edit ED_DOKVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ };
+ NumericField ED_DOKLEVEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ Text = "1" ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Hide = TRUE ;
+ Minimum = 1 ;
+ Maximum = 10 ;
+ First = 1 ;
+ SpinSize = 1 ;
+ };
+ NumericField ED_DOKDATEOFF
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ Text = "0" ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Hide = TRUE ;
+ SpinSize = 1 ;
+ };
+ CheckBox CB_DOKFIXEDCONTENT
+ {
+ Pos = MAP_APPFONT ( 170 , 120 ) ;
+ Size = MAP_APPFONT ( 72 , 10 ) ;
+ TEXT = "~Inhalt fixieren" ;
+ TEXT [ English ] = "Fixed content" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Fixed content" ;
+ Text [ portuguese_brazilian ] = "~Inhalt fixieren" ;
+ Text [ swedish ] = "Fixera ~innehåll" ;
+ Text [ danish ] = "Fast indhold" ;
+ Text [ italian ] = "~Fissa il contenuto" ;
+ Text [ spanish ] = "~Fijar contenido" ;
+ Text [ french ] = "Contenu f~ixe" ;
+ Text [ dutch ] = "~Inhoud fixeren" ;
+ Text [ portuguese ] = "Conteúdo ~fixo" ;
+ Text[ chinese_simplified ] = "¹Ì¶¨ÄÚÈÝ(~F)";
+ Text[ russian ] = "Çàôèêñèðîâàòü ñîäåðæàíèå";
+ Text[ polish ] = "Sta³a treœæ";
+ Text[ japanese ] = "“à—e‚̌Œè(~F)";
+ Text[ chinese_traditional ] = "©T©w¤º®e(~F)";
+ Text[ arabic ] = "ÊËÈíÊ ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Ðáãßùóç ðåñ~éå÷ïìÝíùí";
+ Text[ korean ] = "³»¿ë °íÁ¤(~F)";
+ Text[ turkish ] = "Ýçeriði sabitle";
+ Text[ language_user1 ] = " ";
+ };
+ Bitmap BMP_DOKROOT_OPENED
+ {
+ File = "plus.bmp" ;
+ };
+ Bitmap BMP_DOKROOT_CLOSED
+ {
+ File = "minus.bmp" ;
+ };
+ String STR_DOKDATEOFF
+ {
+ TEXT = "Ko~rrektur in Tagen" ;
+ TEXT [ English ] = "Offs~et in days" ;
+ Text [ english_us ] = "Offs~et in days" ;
+ Text [ portuguese_brazilian ] = "Ko~rrektur in Tagen" ;
+ Text [ swedish ] = "Ko~rrigering i dagar" ;
+ Text [ danish ] = "Korrektion i dage" ;
+ Text [ italian ] = "Correzione in ~giorni" ;
+ Text [ spanish ] = "~Corrección en días" ;
+ Text [ french ] = "Co~rrection en jours" ;
+ Text [ dutch ] = "Co~rrectie in dagen" ;
+ Text [ portuguese ] = "Co~rrecção em dias" ;
+ Text[ chinese_simplified ] = "ÐÞ¸ÄÌìÊý(~E)";
+ Text[ russian ] = "Êîððåêòèðîâêà äíåé";
+ Text[ polish ] = "Korekta dni";
+ Text[ japanese ] = "“ú‚ÌC³(~E)";
+ Text[ chinese_traditional ] = "­×§ï¤é´Áªº¤Ñ¼Æ(~E)";
+ Text[ arabic ] = "ÇáÊÕÍíÍ ÈÇáÃíÇã";
+ Text[ greek ] = "Äéüñèùóç óå çìÝñåò";
+ Text[ korean ] = "¸çÄ¥ ¾È¿¡ ¼öÁ¤(~E)";
+ Text[ turkish ] = "Düzeltme (gün)";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_DOKTIMEOFF
+ {
+ TEXT = "Ko~rrektur in Minuten" ;
+ TEXT [ English ] = "Offs~et in minutes" ;
+ Text [ english_us ] = "Offs~et in minutes" ;
+ Text [ portuguese_brazilian ] = "Ko~rrektur in Minuten" ;
+ Text [ swedish ] = "Ko~rrigering i minuter" ;
+ Text [ danish ] = "Korrektion i minutter" ;
+ Text [ italian ] = "Co~rrezione in minuti" ;
+ Text [ spanish ] = "~Corrección en minutos" ;
+ Text [ french ] = "Co~rrection en minutes" ;
+ Text [ dutch ] = "Co~rrectie in minuten" ;
+ Text [ portuguese ] = "Co~rrecção em minutos" ;
+ Text[ chinese_simplified ] = "Ð޸ķÖÖÓÉ趨(~E)";
+ Text[ russian ] = "Êîððåêòèðîâêà ìèíóò";
+ Text[ polish ] = "Korekta minut";
+ Text[ japanese ] = "•ª‚ÌC³(~E)";
+ Text[ chinese_traditional ] = "­×§ï¤ÀÄÁ³]©w(~E)";
+ Text[ arabic ] = "ÇáÊÕÍíÍ ÈÇáÏÞÇÆÞ";
+ Text[ greek ] = "Äéüñèùóç óå ëåðôÜ";
+ Text[ korean ] = "¸î ºÐ³» ¼öÁ¤(~E)";
+ Text[ turkish ] = "Düzeltme (dakika)";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Document" ;
+ Text [ portuguese_brazilian ] = "Dokument" ;
+ Text [ swedish ] = "Dokument" ;
+ Text [ danish ] = "Dokument" ;
+ Text [ italian ] = "Documento" ;
+ Text [ spanish ] = "Documento" ;
+ Text [ french ] = "Document" ;
+ Text [ dutch ] = "Document" ;
+ Text [ portuguese ] = "Documento" ;
+ Text[ chinese_simplified ] = "Îĵµ";
+ Text[ russian ] = "Äîêóìåíò";
+ Text[ polish ] = "Dokument";
+ Text[ japanese ] = "•¶‘";
+ Text[ chinese_traditional ] = "¤å¥ó";
+ Text[ arabic ] = "ÇáãÓÊäÏ";
+ Text[ greek ] = "¸ããñáöï";
+ Text[ korean ] = "¹®¼­";
+ Text[ turkish ] = "Belge";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldedt.cxx b/sw/source/ui/fldui/fldedt.cxx
new file mode 100644
index 000000000000..5677a70c11da
--- /dev/null
+++ b/sw/source/ui/fldui/fldedt.cxx
@@ -0,0 +1,505 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldedt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_ADRITEM_HXX //autogen
+#include <svx/adritem.hxx>
+#endif
+#ifndef _SVX_OPTGENRL_HXX //autogen
+#include <svx/optgenrl.hxx>
+#endif
+
+#ifndef _ADDRDLG_HXX
+#include <addrdlg.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DBFLD_HXX
+#include <dbfld.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDDB_HXX
+#include <flddb.hxx>
+#endif
+#ifndef _FLDDINF_HXX
+#include <flddinf.hxx>
+#endif
+#ifndef _FLDVAR_HXX
+#include <fldvar.hxx>
+#endif
+#ifndef _FLDDOK_HXX
+#include <flddok.hxx>
+#endif
+#ifndef _FLDFUNC_HXX
+#include <fldfunc.hxx>
+#endif
+#ifndef _FLDREF_HXX
+#include <fldref.hxx>
+#endif
+#ifndef _FLDEDT_HXX
+#include <fldedt.hxx>
+#endif
+
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldEditDlg::SwFldEditDlg(SwView& rVw) :
+ SfxSingleTabDialog(&rVw.GetViewFrame()->GetWindow(), 0, 0),
+ pSh (rVw.GetWrtShellPtr()),
+ aAddressBT (this, SW_RES(PB_FLDEDT_ADDRESS)),
+ aPrevBT (this, SW_RES(BTN_FLDEDT_PREV)),
+ aNextBT (this, SW_RES(BTN_FLDEDT_NEXT))
+{
+ SwFldMgr aMgr(pSh);
+
+ SwField *pCurFld = aMgr.GetCurFld();
+ if(!pCurFld)
+ return;
+
+ pSh->SetCareWin(this);
+ pSh->Right(TRUE);
+ pSh->SwapPam();
+ USHORT nGroup = aMgr.GetGroup(FALSE, pCurFld->GetTypeId(), pCurFld->GetSubType());
+
+ CreatePage(nGroup);
+
+ GetOKButton()->SetClickHdl(LINK(this, SwFldEditDlg, OKHdl));
+
+ // Buttons selbst positionieren, da sie sonst bei unterschiedlichen
+ // Fontgroessen im Wald stehen, und da PB im SingleTabDlg feste Pixelgroessen
+ // fuer seine Buttons und die Dialogbreite verwendet.
+ aPrevBT.SetPosPixel(Point(GetOKButton()->GetPosPixel().X(), aPrevBT.GetPosPixel().Y()));
+ USHORT nWidth = GetOKButton()->GetOutputSize().Width() / 2 - 3;
+ Size aNewSize(LogicToPixel(Size(nWidth, GetOKButton()->GetOutputSize().Height())));
+ aPrevBT.SetSizePixel(aNewSize);
+
+ aNextBT.SetSizePixel(aPrevBT.GetSizePixel());
+
+ long nXPos = GetOKButton()->GetPosPixel().X() + GetOKButton()->GetSizePixel().Width()
+ - aNextBT.GetSizePixel().Width() - 1;
+ aNextBT.SetPosPixel(Point(nXPos, aNextBT.GetPosPixel().Y()));
+
+ aAddressBT.SetPosPixel(Point(GetOKButton()->GetPosPixel().X(), aAddressBT.GetPosPixel().Y()));
+ aAddressBT.SetSizePixel(GetOKButton()->GetSizePixel());
+
+ aPrevBT.SetClickHdl(LINK(this, SwFldEditDlg, NextPrevHdl));
+ aNextBT.SetClickHdl(LINK(this, SwFldEditDlg, NextPrevHdl));
+
+ aAddressBT.SetClickHdl(LINK(this, SwFldEditDlg, AddressHdl));
+ aAddressBT.SetHelpId(HID_FLDEDT_ADDRESS);
+
+ Init();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Controlls initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldEditDlg::Init()
+{
+ SwFldPage* pPage = (SwFldPage*)GetTabPage();
+
+ if( pPage )
+ {
+ SwFldMgr& rMgr = pPage->GetFldMgr();
+
+ SwField *pCurFld = rMgr.GetCurFld();
+
+ if(!pCurFld)
+ return;
+
+ // Traveling nur bei mehr als einem Feld
+ pSh->StartAction();
+ pSh->CreateCrsr();
+
+ BOOL bMove = rMgr.GoNext();
+ if( bMove )
+ rMgr.GoPrev();
+ aNextBT.Enable(bMove);
+
+ if( 0 != ( bMove = rMgr.GoPrev() ) )
+ rMgr.GoNext();
+ aPrevBT.Enable( bMove );
+
+ if (pCurFld->GetTypeId() == TYP_EXTUSERFLD)
+ aAddressBT.Show();
+
+ pSh->DestroyCrsr();
+ pSh->EndAction();
+ }
+
+ GetOKButton()->Enable( !pSh->IsReadOnlyAvailable() ||
+ !pSh->HasReadonlySel() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* SwFldEditDlg::CreatePage(USHORT nGroup)
+{
+ // TabPage erzeugen
+ SfxTabPage* pPage = 0;
+ USHORT nHelpId = 0;
+
+ switch (nGroup)
+ {
+ case GRP_DOC:
+ pPage = SwFldDokPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_DOK;
+ break;
+ case GRP_FKT:
+ pPage = SwFldFuncPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_FUNC;
+ break;
+ case GRP_REF:
+ pPage = SwFldRefPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_REF;
+ break;
+ case GRP_REG:
+ pPage = SwFldDokInfPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_DOKINF;
+ break;
+ case GRP_DB:
+ pPage = SwFldDBPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_DB;
+ break;
+ case GRP_VAR:
+ pPage = SwFldVarPage::Create(this, *(SfxItemSet*)0);
+ nHelpId = HID_EDIT_FLD_VAR;
+ break;
+
+ }
+ pPage->SetHelpId(nHelpId);
+ SetTabPage(pPage);
+
+ String sTitle(GetText());
+ sTitle.Insert(String::CreateFromAscii(": "), 0);
+ sTitle.Insert(SW_RESSTR(STR_FLD_EDIT_DLG), 0);
+ SetText(sTitle);
+
+ return pPage;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldEditDlg::~SwFldEditDlg()
+{
+ pSh->SetCareWin(NULL);
+ pSh->EnterStdMode();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldEditDlg::EnableInsert(BOOL bEnable)
+{
+ if( bEnable && pSh->IsReadOnlyAvailable() && pSh->HasReadonlySel() )
+ bEnable = FALSE;
+ GetOKButton()->Enable( bEnable );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldEditDlg::InsertHdl()
+{
+ GetOKButton()->Click();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aendern des Feldes anstossen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldEditDlg, OKHdl, Button *, pBtn )
+{
+ if (GetOKButton()->IsEnabled())
+ {
+ SfxTabPage* pPage = GetTabPage();
+ if (pPage)
+ {
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ }
+ EndDialog( RET_OK );
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+short SwFldEditDlg::Execute()
+{
+ // Ohne TabPage kein Dialog
+ return GetTabPage() ? Dialog::Execute() : RET_CANCEL;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling zwishen Feldern gleichen Typs
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldEditDlg, NextPrevHdl, Button *, pButton )
+{
+ BOOL bNext = pButton == &aNextBT;
+
+ pSh->EnterStdMode();
+
+ SwFieldType *pOldTyp = 0;
+ SwFldPage* pPage = (SwFldPage*)GetTabPage();
+ SwFldMgr& rMgr = pPage->GetFldMgr();
+ SwField *pCurFld = rMgr.GetCurFld();
+
+ if (pCurFld->GetTypeId() == TYP_DBFLD)
+ pOldTyp = (SwDBFieldType*)pCurFld->GetTyp();
+
+ if( GetOKButton()->IsEnabled() )
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ rMgr.GoNextPrev( bNext, pOldTyp );
+ pCurFld = rMgr.GetCurFld();
+ pSh->Right(TRUE);
+ pSh->SwapPam();
+
+ USHORT nGroup = rMgr.GetGroup(FALSE, pCurFld->GetTypeId(), pCurFld->GetSubType());
+
+ if (nGroup != pPage->GetGroup())
+ pPage = (SwFldPage*)CreatePage(nGroup);
+
+ pPage->EditNewField();
+
+ Init();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldEditDlg, AddressHdl, PushButton *, pButton )
+{
+ SwFldPage* pPage = (SwFldPage*)GetTabPage();
+ SwFldMgr& rMgr = pPage->GetFldMgr();
+ SwField *pCurFld = rMgr.GetCurFld();
+
+ SfxItemSet aSet( pSh->GetAttrPool(),
+ SID_ATTR_ADDRESS, SID_ATTR_ADDRESS,
+ SID_FIELD_GRABFOCUS, SID_FIELD_GRABFOCUS,
+ 0L );
+ SvxAddressItem aAddress( pPathFinder->GetAddress() );
+ aSet.Put(aAddress);
+ USHORT nEditPos = UNKNOWN_EDIT;
+
+ switch(pCurFld->GetSubType())
+ {
+ case EU_FIRSTNAME: nEditPos = FIRSTNAME_EDIT; break;
+ case EU_NAME: nEditPos = LASTNAME_EDIT; break;
+ case EU_SHORTCUT: nEditPos = SHORTNAME_EDIT; break;
+ case EU_COMPANY: nEditPos = COMPANY_EDIT; break;
+ case EU_STREET: nEditPos = STREET_EDIT; break;
+ case EU_TITLE: nEditPos = TITLE_EDIT; break;
+ case EU_POSITION: nEditPos = POSITION_EDIT; break;
+ case EU_PHONE_PRIVATE:nEditPos = TELPRIV_EDIT; break;
+ case EU_PHONE_COMPANY:nEditPos = TELCOMPANY_EDIT; break;
+ case EU_FAX: nEditPos = FAX_EDIT; break;
+ case EU_EMAIL: nEditPos = EMAIL_EDIT; break;
+ case EU_COUNTRY: nEditPos = COUNTRY_EDIT; break;
+ case EU_ZIP: nEditPos = PLZ_EDIT; break;
+ case EU_CITY: nEditPos = CITY_EDIT; break;
+ case EU_STATE: nEditPos = STATE_EDIT; break;
+
+ default: nEditPos = UNKNOWN_EDIT; break;
+
+ }
+ aSet.Put(SfxUInt16Item(SID_FIELD_GRABFOCUS, nEditPos));
+ SwAddrDlg aDlg( this, aSet );
+ aDlg.Execute();
+ const SfxItemSet* pSfxItemSet = aDlg.GetOutputItemSet();
+ const SvxAddressItem* pAddrItem;
+
+ if( pSfxItemSet && SFX_ITEM_SET == pSfxItemSet->GetItemState(SID_ATTR_ADDRESS,
+ FALSE, (const SfxPoolItem**)&pAddrItem) )
+ {
+ pPathFinder->SetAddress( (SvxAddressItem&)*pAddrItem );
+ pSh->UpdateFlds( *pCurFld );
+ }
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.146 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.145 2000/05/10 11:55:12 os
+ Basic API removed
+
+ Revision 1.144 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.143 2000/02/11 14:46:27 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.142 1999/09/21 14:05:23 os
+ SwExtUserSubType: language
+
+ Revision 1.141 1999/01/20 13:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.140 20 Jan 1999 14:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.139 15 Oct 1998 16:02:48 OM
+ #57965# Variablennamen fuer Eingabefeld verwenden
+
+ Rev 1.138 19 Aug 1998 17:22:12 JP
+ Bug #55247#: fuers MoveNext-/-PrevFldType einen eigenen Pam verwenden
+
+ Rev 1.137 15 Jun 1998 13:07:50 OM
+ #50908# Positionskorrektur der Imagebuttons
+
+ Rev 1.136 08 Apr 1998 09:48:52 OM
+ #47470 Neue HelpIDs beim bearbeiten von Felbefehlen
+
+ Rev 1.135 06 Mar 1998 14:53:52 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.134 03 Mar 1998 15:26:56 OM
+ Feld beim traveln selektieren
+
+ Rev 1.133 25 Feb 1998 16:56:48 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.132 06 Feb 1998 14:17:04 OM
+ #47145# Buttongroesse anpassen
+
+ Rev 1.131 09 Jan 1998 16:56:50 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.130 08 Jan 1998 16:16:26 OM
+ Traveling
+
+ Rev 1.129 08 Jan 1998 13:36:20 OM
+ Feldbefehl-Traveling
+
+ Rev 1.128 08 Jan 1998 12:56:24 OM
+ Feldbefehl-Traveling
+
+ Rev 1.127 16 Dec 1997 17:01:40 OM
+ Feldbefehle bearbeiten
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx
new file mode 100644
index 000000000000..06bea4663cda
--- /dev/null
+++ b/sw/source/ui/fldui/fldfunc.cxx
@@ -0,0 +1,779 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldfunc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#ifndef _BASOBJ_HXX //autogen
+#include <basctl/basobj.hxx>
+#endif
+
+#ifndef _BASMGR_HXX //autogen
+#include <basic/basmgr.hxx>
+#endif
+
+#ifndef _SB_SBSTAR_HXX //autogen
+#include <basic/sbstar.hxx>
+#endif
+
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDFUNC_HXX
+#include <fldfunc.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldFuncPage::SwFldFuncPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pParent, SW_RES( TP_FLD_FUNC ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_FUNCTYPE)),
+ aTypeLB (this, SW_RES(LB_FUNCTYPE)),
+ aSelectionFT(this, SW_RES(FT_FUNCSELECTION)),
+ aSelectionLB(this, SW_RES(LB_FUNCSELECTION)),
+ aFormatFT (this, SW_RES(FT_FUNCFORMAT)),
+ aFormatLB (this, SW_RES(LB_FUNCFORMAT)),
+ aNameFT (this, SW_RES(FT_FUNCNAME)),
+ aNameED (this, SW_RES(ED_FUNCNAME)),
+ aValueFT (this, SW_RES(FT_FUNCVALUE)),
+ aValueED (this, SW_RES(ED_FUNCVALUE)),
+ aCond1FT (this, SW_RES(FT_FUNCCOND1)),
+ aCond1ED (this, SW_RES(ED_FUNCCOND1)),
+ aCond2FT (this, SW_RES(FT_FUNCCOND2)),
+ aCond2ED (this, SW_RES(ED_FUNCCOND2)),
+ aMacroBT (this, SW_RES(BT_FUNCMACRO))
+{
+ FreeResource();
+
+ aNameED.SetPosPixel(Point(aNameED.GetPosPixel().X(), aFormatLB.GetPosPixel().Y()));
+
+ sOldValueFT = aValueFT.GetText();
+ sOldNameFT = aNameFT.GetText();
+
+ aCond1ED.ShowBrackets(FALSE);
+ aCond2ED.ShowBrackets(FALSE);
+
+// SwWrtShell* pSh = (SwWrtShell*)ViewShell::GetCurrShell();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldFuncPage::~SwFldFuncPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldFuncPage::Reset(const SfxItemSet& rSet)
+{
+ SavePos(&aTypeLB);
+ Init(); // Allgemeine initialisierung
+
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId;
+ BOOL bPage = FALSE;
+
+ if (!IsFldEdit())
+ {
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ // Typ-Listbox fuellen
+ for(short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+
+ if (nTypeId == TYP_MACROFLD)
+ {
+ String sName(GetCurField()->GetPar1());
+ BasicManager *pBasMgr = 0;
+ GetFldMgr().SetMacroModule(0);
+
+ if (sName.GetToken( 0, '.') == SFX_APP()->GetName())
+ pBasMgr = SFX_APP()->GetBasicManager();
+ else
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ pBasMgr = pSh->GetView().GetDocShell()->GetBasicManager();
+ }
+
+ if (pBasMgr)
+ {
+ String sLibName(sName.GetToken(1, '.'));
+ StarBASIC* pBasic = pBasMgr->GetLib(sLibName);
+
+ if (pBasic)
+ {
+ SbModule* pModule = BasicIDE::FindModule( pBasic, sName.GetToken( 2, '.') );
+ GetFldMgr().SetMacroModule(pModule);
+ }
+ }
+
+ if (sName.Len())
+ {
+ // Inhalt von sName umdrehen
+ String sBuf;
+ String sTmp;
+ USHORT nPos = 0;
+ USHORT nCount = sName.GetTokenCount('.');
+
+ for (int i = nCount - 1; i >= nCount - 4; i--)
+ {
+ if (i == nCount - 4)
+ {
+ nPos = 0;
+ sName.GetToken(i, '.', nPos);
+ sTmp = sName.Copy(0, nPos - 1);
+ }
+ else
+ {
+ sTmp = sName.GetToken(i, '.');
+ sTmp += '.';
+ }
+
+ sBuf += sTmp;
+ }
+
+ sName = sBuf;
+ }
+
+ GetFldMgr().SetMacroPath(sName);
+ }
+ }
+
+ // alte Pos selektieren
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertHdl));
+ aTypeLB.SetSelectHdl (LINK(this, SwFldFuncPage, TypeHdl));
+ aSelectionLB.SetSelectHdl (LINK(this, SwFldFuncPage, SelectHdl));
+ aSelectionLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertMacroHdl));
+ aFormatLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertHdl));
+ aMacroBT.SetClickHdl (LINK(this, SwFldFuncPage, MacroHdl));
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ aTypeLB.SetUpdateMode(TRUE);
+
+ if (IsFldEdit())
+ {
+ aNameED.SaveValue();
+ aValueED.SaveValue();
+ aCond1ED.SaveValue();
+ aCond2ED.SaveValue();
+ nOldFormat = GetCurField()->GetFormat();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ if (nOld != GetTypeSel())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ UpdateSubType();
+
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+
+ USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ aFormatLB.SetEntryData( nPos, (void*)GetFldMgr().GetFormatId( nTypeId, i ) );
+ }
+
+ if (nSize)
+ {
+ if (IsFldEdit() && nTypeId == TYP_JUMPEDITFLD)
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_MARK_BEGIN + (USHORT)GetCurField()->GetFormat()));
+
+ if (!aFormatLB.GetSelectEntryCount())
+ aFormatLB.SelectEntryPos(0);
+ }
+
+ BOOL bValue = FALSE, bName = FALSE, bMacro = FALSE, bInsert = TRUE;
+ BOOL bShowSelection = FALSE;
+ BOOL bFormat = nSize != 0;
+
+ // fuer Conditional Text zwei Controls
+ if(nTypeId != TYP_CONDTXTFLD)
+ {
+ aCond1FT.Hide();
+ aCond1ED.Hide();
+ aCond2FT.Hide();
+ aCond2ED.Hide();
+ aValueFT.Show();
+ aValueED.Show();
+ }
+ aNameED.EnableDrop(FALSE);
+
+ if (IsFldEdit())
+ {
+ aNameED.SetText(GetCurField()->GetPar1());
+ aValueED.SetText(GetCurField()->GetPar2());
+ }
+ else
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ if (aNameFT.GetText() != sOldNameFT)
+ aNameFT.SetText(sOldNameFT);
+ if (aValueFT.GetText() != sOldValueFT)
+ aValueFT.SetText(sOldValueFT);
+
+ switch (nTypeId)
+ {
+ case TYP_MACROFLD:
+ bMacro = TRUE;
+ bShowSelection = TRUE;
+ if (GetFldMgr().GetMacroPath().Len())
+ bValue = TRUE;
+ else
+ bInsert = FALSE;
+
+ aNameFT.SetText(SW_RESSTR(STR_MACNAME));
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ break;
+
+ case TYP_HIDDENPARAFLD:
+ aNameFT.SetText(SW_RESSTR(STR_COND));
+ aNameED.EnableDrop(TRUE);
+ bName = TRUE;
+ break;
+
+ case TYP_HIDDENTXTFLD:
+ aNameFT.SetText(SW_RESSTR(STR_COND));
+ aNameED.EnableDrop(TRUE);
+ aValueFT.SetText(SW_RESSTR(STR_INSTEXT));
+ if (!IsFldEdit())
+ aValueED.SetText(::GetActiveView()->GetWrtShell().GetSelTxt());
+ bName = bValue = TRUE;
+ break;
+
+ case TYP_CONDTXTFLD:
+ aNameFT.SetText(SW_RESSTR(STR_COND));
+ aNameED.EnableDrop(TRUE);
+ if (IsFldEdit())
+ {
+ aCond1ED.SetText(GetCurField()->GetPar2().GetToken(0, '|'));
+ aCond2ED.SetText(GetCurField()->GetPar2().GetToken(1, '|'));
+ }
+
+ bName = bValue = TRUE;
+
+ aCond1FT.Show();
+ aCond1ED.Show();
+ aCond2FT.Show();
+ aCond2ED.Show();
+ aValueFT.Hide();
+ aValueED.Hide();
+ break;
+
+ case TYP_JUMPEDITFLD:
+ aNameFT.SetText(SW_RESSTR(STR_JUMPEDITFLD));
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+ bName = bValue = TRUE;
+ break;
+
+ case TYP_INPUTFLD:
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+ bValue = TRUE;
+ // bShowSelection = TRUE;
+ break;
+
+ default:
+ break;
+ }
+
+ if (bShowSelection)
+ {
+ aSelectionLB.Show();
+ aSelectionFT.Show();
+ aFormatLB.Hide();
+ aFormatFT.Hide();
+ }
+ else
+ {
+ aFormatLB.Show();
+ aFormatFT.Show();
+ aSelectionLB.Hide();
+ aSelectionFT.Hide();
+ }
+
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat);
+ aNameFT.Enable(bName);
+ aNameED.Enable(bName);
+ aValueFT.Enable(bValue);
+ aValueED.Enable(bValue);
+ aMacroBT.Enable(bMacro);
+
+ EnableInsert(bInsert);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, SelectHdl, ListBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if (nTypeId == TYP_MACROFLD)
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, InsertMacroHdl, ListBox *, pBox )
+{
+ SelectHdl();
+ InsertHdl();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Typen in der SelectionBox erneuern
+ --------------------------------------------------------------------*/
+
+
+void SwFldFuncPage::UpdateSubType()
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ aSelectionLB.SetUpdateMode(FALSE);
+ aSelectionLB.Clear();
+
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ USHORT nCount = rLst.Count();
+
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ USHORT nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ }
+
+ BOOL bEnable = nCount != 0;
+
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ if (bEnable)
+ {
+ if (nTypeId == TYP_MACROFLD)
+ {
+ BOOL bHasMacro = GetFldMgr().GetMacroPath().Len() != 0;
+
+ if (bHasMacro)
+ {
+ aSelectionLB.SelectEntry(GetFldMgr().GetMacroPath());
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ aValueFT.Enable();
+ aValueED.Enable();
+ }
+ EnableInsert(bHasMacro);
+ }
+ else
+ aSelectionLB.SelectEntryPos(0);
+ }
+ aSelectionLB.SetUpdateMode(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: MacroBrowser aufrufen, Listbox mit Macros fuellen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldFuncPage, MacroHdl, Button *, pBtn )
+{
+ Window* pDefModalDlgParent = Application::GetDefDialogParent();
+ Application::SetDefDialogParent( pBtn );
+
+ String sMacro(TurnMacroString(aNameED.GetText()));
+ while (sMacro.SearchAndReplace('.', ';') != STRING_NOTFOUND);
+
+ if (GetFldMgr().ChooseMacro(sMacro))
+ UpdateSubType();
+
+ Application::SetDefDialogParent( pDefModalDlgParent );
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldFuncPage::FillItemSet(SfxItemSet& rSet)
+{
+ BOOL bPage = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ USHORT nSubType = 0;
+
+ ULONG nFormat = aFormatLB.GetSelectEntryPos();
+
+ if(nFormat == LISTBOX_ENTRY_NOTFOUND)
+ nFormat = 0;
+ else
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+
+ String aVal(aValueED.GetText());
+ String aName(aNameED.GetText());
+
+ switch(nTypeId)
+ {
+ case TYP_INPUTFLD:
+ nSubType = INP_TXT;
+ break;
+
+ case TYP_MACROFLD:
+ aName = TurnMacroString(aName);
+ break;
+
+ case TYP_CONDTXTFLD:
+ aVal = aCond1ED.GetText();
+ aVal += '|';
+ aVal += aCond2ED.GetText();
+ break;
+
+ default:
+ break;
+ }
+
+ if (!IsFldEdit() ||
+ aNameED.GetSavedValue() != aNameED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ aCond1ED.GetSavedValue() != aCond1ED.GetText() ||
+ aCond2ED.GetSavedValue() != aCond2ED.GetText() ||
+ nOldFormat != nFormat)
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat );
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+String SwFldFuncPage::TurnMacroString(const String &rMacro)
+{
+ if (rMacro.Len())
+ {
+ // Inhalt von aName umdrehen
+ String sTmp, sBuf;
+ USHORT nPos = 0;
+
+ for (USHORT i = 0; i < 4 && nPos != STRING_NOTFOUND; i++)
+ {
+ if (i == 3)
+ sTmp = rMacro.Copy(nPos);
+ else
+ sTmp = rMacro.GetToken(0, '.', nPos);
+
+ if( sBuf.Len() )
+ sTmp += '.';
+ sBuf.Insert( sTmp, 0 );
+ }
+ return sBuf;
+ }
+
+ return rMacro;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldFuncPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldFuncPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldFuncPage::GetGroup()
+{
+ return GRP_FKT;
+}
+
+/* -----------------12.01.99 10:09-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldFuncPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.28 2000/09/18 16:05:28 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.27 2000/09/04 11:43:02 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.26 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.25 2000/05/23 18:36:44 jp
+ Bugfixes for Unicode
+
+ Revision 1.24 2000/04/18 15:17:31 os
+ UNICODE
+
+ Revision 1.23 2000/03/03 15:17:01 os
+ StarView remainders removed
+
+ Revision 1.22 1999/02/25 16:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+
+ Rev 1.21 25 Feb 1999 17:24:50 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.20 21 Jan 1999 09:50:36 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.19 12 Jan 1999 11:42:26 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.18 10 Aug 1998 16:39:58 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.17 24 Jul 1998 13:57:08 OM
+ #53246# Makros vorselektieren
+
+ Rev 1.16 20 Jul 1998 11:31:00 OM
+ #53244# Makros beim Bearbeiten nicht zersemmeln
+
+ Rev 1.15 20 Jul 1998 09:38:52 OM
+ #53278# Flackern vermeiden
+
+ Rev 1.14 29 May 1998 16:41:18 OM
+ #50667# Makrofelder bearbeiten
+
+ Rev 1.13 18 May 1998 14:52:42 OM
+ #50001 Keine eckigen Klammern in DB-Condition-Fields
+
+ Rev 1.12 13 Mar 1998 16:30:42 OM
+ #48197# Focus nach MacroDlg greppen
+
+ Rev 1.11 07 Mar 1998 14:38:46 OM
+ Feld nur bei Aenderung aktualisieren
+
+ Rev 1.10 04 Mar 1998 08:37:50 MH
+ chg: Syntax
+
+ Rev 1.9 03 Feb 1998 09:24:58 OM
+ Test
+
+ Rev 1.8 02 Feb 1998 15:04:36 OM
+ #46781# Macrofelder auch ausfuehren, wenn Dateiname mehr als 1 Punkt enthaelt
+
+ Rev 1.7 09 Jan 1998 16:56:52 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.6 08 Jan 1998 14:58:26 OM
+ Traveling
+
+ Rev 1.5 06 Jan 1998 18:12:54 OM
+ Felbefehl-Dlg
+
+ Rev 1.4 12 Dec 1997 16:10:06 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.3 11 Dec 1997 16:58:02 OM
+ Feldumstellung
+
+ Rev 1.2 25 Nov 1997 12:59:28 OM
+ Funktionen-TP
+
+ Rev 1.1 25 Nov 1997 12:38:42 OM
+ Funktionen-TP
+
+ Rev 1.0 04 Nov 1997 10:07:18 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/fldfunc.hxx b/sw/source/ui/fldui/fldfunc.hxx
new file mode 100644
index 000000000000..6eba1598d219
--- /dev/null
+++ b/sw/source/ui/fldui/fldfunc.hxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldfunc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDFUNC_HXX
+#define _SWFLDFUNC_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#include "condedit.hxx"
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldFuncPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ FixedText aNameFT;
+ ConditionEdit aNameED;
+ FixedText aValueFT;
+ Edit aValueED;
+ FixedText aCond1FT;
+ ConditionEdit aCond1ED;
+ FixedText aCond2FT;
+ ConditionEdit aCond2ED;
+ PushButton aMacroBT;
+
+ String sOldValueFT;
+ String sOldNameFT;
+
+ ULONG nOldFormat;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SelectHdl, ListBox* pLB = 0 );
+ DECL_LINK( InsertMacroHdl, ListBox* pLB = 0 );
+
+ // Macro ausw„hlen
+ DECL_LINK( MacroHdl, Button * );
+
+ void UpdateSubType();
+ String TurnMacroString(const String &rMacro);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldFuncPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldFuncPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldfunc.src b/sw/source/ui/fldui/fldfunc.src
new file mode 100644
index 000000000000..c9f287149dac
--- /dev/null
+++ b/sw/source/ui/fldui/fldfunc.src
@@ -0,0 +1,380 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldfunc.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_FUNC
+{
+ HelpID = HID_FLD_FUNC ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Funktionen" ;
+ Text [ ENGLISH ] = "Functions" ;
+ FixedText FT_FUNCTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Fälttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï ïîëÿ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨°ÙÄÞ‚ÌŽí—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "äæÚ ÇáÍÞá";
+ Text[ greek ] = "~Ôýðïò ðåäßïõ";
+ Text[ korean ] = "ÇüÅÂ(~T)";
+ Text[ turkish ] = "~Alan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FUNCTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Sort = FALSE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_FUNCSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "~Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleção" ;
+ Text [ portuguese ] = "~Selecção" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Sélection" ;
+ Text [ swedish ] = "~Urval" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~lección" ;
+ Text [ english_us ] = "S~elect" ;
+ Hide = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~E)";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð(~E)";
+ Text[ chinese_traditional ] = "¿ï¾Ü(~E)";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "~ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ(~E)";
+ Text[ turkish ] = "~Seçim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FUNCSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_FUNCFORMAT
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "F~ormat" ;
+ Text [ ENGLISH ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "F~ormaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ì~ïñöÞ";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FUNCFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_FUNCNAME
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "Na~me" ;
+ TEXT [ English ] = "Na~me" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "No~me" ;
+ Text [ spanish ] = "No~mbre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "Naa~m" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~M)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~M)";
+ Text[ chinese_traditional ] = "¦WºÙ(~M)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~M)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 15 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_FUNCVALUE
+ {
+ Pos = MAP_APPFONT ( 170 , 33 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "~Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Værdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Värde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "~Value" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊýÖµ(~V)";
+ Text[ russian ] = "Çíà÷åíèå";
+ Text[ polish ] = "WartoϾ";
+ Text[ japanese ] = "’l(~V)";
+ Text[ chinese_traditional ] = "¼Æ­È(~V)";
+ Text[ arabic ] = "ÇáÞíãÉ";
+ Text[ greek ] = "ÔéìÞ";
+ Text[ korean ] = "°ª(~V)";
+ Text[ turkish ] = "D~eðer";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 45 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_FUNCCOND1
+ {
+ Pos = MAP_APPFONT ( 170 , 33 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "~Dann" ;
+ Text [ ENGLISH ] = "Then" ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Then" ;
+ Text [ portuguese_brazilian ] = "Dann" ;
+ Text [ swedish ] = "Så" ;
+ Text [ danish ] = "Så" ;
+ Text [ italian ] = "Poi" ;
+ Text [ spanish ] = "Entonces" ;
+ Text [ french ] = "~Alors" ;
+ Text [ dutch ] = "~Dan" ;
+ Text [ portuguese ] = "~Então" ;
+ Text[ chinese_simplified ] = "¾Í";
+ Text[ russian ] = "Äàëåå";
+ Text[ polish ] = "Wtedy";
+ Text[ japanese ] = "ðŒ‚ð–ž‚½‚·‚Æ‚«";
+ Text[ chinese_traditional ] = "´N";
+ Text[ arabic ] = "Ýí åÐå ÇáÍÇáÉ";
+ Text[ greek ] = "Ôüôå";
+ Text[ korean ] = "´ÙÀ½";
+ Text[ turkish ] = "O halde";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCCOND1
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 45 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ };
+ FixedText FT_FUNCCOND2
+ {
+ Pos = MAP_APPFONT ( 170 , 63 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "So~nst" ;
+ Text [ ENGLISH ] = "Else" ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Else" ;
+ Text [ portuguese_brazilian ] = "Sonst" ;
+ Text [ swedish ] = "Annars" ;
+ Text [ danish ] = "Ellers" ;
+ Text [ italian ] = "Altrimenti" ;
+ Text [ spanish ] = "Si no" ;
+ Text [ french ] = "~Sinon" ;
+ Text [ dutch ] = "~Anders" ;
+ Text [ portuguese ] = "~Senão" ;
+ Text[ chinese_simplified ] = "ÆäËü";
+ Text[ russian ] = "针֌";
+ Text[ polish ] = "W przeciwnym wypadku";
+ Text[ japanese ] = "ðŒ‚ð–ž‚½‚³‚È‚¢‚Æ‚«";
+ Text[ chinese_traditional ] = "§_«h";
+ Text[ arabic ] = "ÝíãÇ ÚÏÇ Ðáß";
+ Text[ greek ] = "Áëëéþò";
+ Text[ korean ] = "±âŸ";
+ Text[ turkish ] = "Yoksa";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_FUNCCOND2
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 75 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Hide = TRUE ;
+ };
+ PushButton BT_FUNCMACRO
+ {
+ Pos = MAP_APPFONT ( 204 , 115 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "M~akro..." ;
+ Text [ English ] = "M~acro..." ;
+ Text [ norwegian ] = "Macro..." ;
+ Text [ italian ] = "~Macro..." ;
+ Text [ portuguese_brazilian ] = "Macro..." ;
+ Text [ portuguese ] = "Macro..." ;
+ Text [ french ] = "~Macro..." ;
+ Text [ dutch ] = "~Macro..." ;
+ Text [ spanish ] = "M~acro..." ;
+ Text [ danish ] = "Makro..." ;
+ Text [ swedish ] = "M~akro..." ;
+ Text [ finnish ] = "Macro..." ;
+ Text [ english_us ] = "~Macro..." ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ºê(~M)...";
+ Text[ russian ] = "Ìàêðîñ...";
+ Text[ polish ] = "Makro...";
+ Text[ japanese ] = "ϸÛ(~C)...";
+ Text[ chinese_traditional ] = "¥¨¶°(~C)...";
+ Text[ arabic ] = "ãÇßÑæ...";
+ Text[ greek ] = "ÌáêñïåíôïëÞ...";
+ Text[ korean ] = "¸ÅÅ©·Î(~M)...";
+ Text[ turkish ] = "M~akro...";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Functions" ;
+ Text [ portuguese_brazilian ] = "Funktionen" ;
+ Text [ swedish ] = "Funktioner" ;
+ Text [ danish ] = "Funktioner" ;
+ Text [ italian ] = "Funzioni" ;
+ Text [ spanish ] = "Funciones" ;
+ Text [ french ] = "Fonctions" ;
+ Text [ dutch ] = "Functies" ;
+ Text [ portuguese ] = "Funções" ;
+ Text[ chinese_simplified ] = "¹¦ÄÜ";
+ Text[ russian ] = "Ôóíêöèè";
+ Text[ polish ] = "Funkcje";
+ Text[ japanese ] = "‹@”\\";
+ Text[ chinese_traditional ] = "¥\\¯à";
+ Text[ arabic ] = "ãåÇã";
+ Text[ greek ] = "Ëåéôïõñãßåò";
+ Text[ korean ] = "ÇÔ¼ö";
+ Text[ turkish ] = "Fonksiyon";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldmgr.cxx b/sw/source/ui/fldui/fldmgr.cxx
new file mode 100644
index 000000000000..f2c7a221d751
--- /dev/null
+++ b/sw/source/ui/fldui/fldmgr.cxx
@@ -0,0 +1,2450 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "view.hxx"
+#include "wrtsh.hxx" // Actives Fenster
+#include "doc.hxx" // Actives Fenster
+#include "docsh.hxx" // Actives Fenster
+#include "swmodule.hxx"
+#include "hintids.hxx"
+#include "charatr.hxx"
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
+#include <com/sun/star/sdbc/DataType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
+#include <com/sun/star/sdb/XQueriesSupplier.hpp>
+#endif
+//#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+//#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+//#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#else
+
+
+#endif //REPLACE_OFADBMGR
+
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+
+#ifndef _SFX_OBJSH_HXX //autogen
+#include <sfx2/objsh.hxx>
+#endif
+
+#ifndef _LINKMGR_HXX //autogen
+#include <so3/linkmgr.hxx>
+#endif
+
+#ifndef _BASMGR_HXX //autogen
+#include <basic/basmgr.hxx>
+#endif
+
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+
+#ifndef _FMTRFMRK_HXX //autogen
+#include <fmtrfmrk.hxx>
+#endif
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#ifndef _SB_SBSTAR_HXX //autogen
+#include <basic/sbstar.hxx>
+#endif
+
+#ifndef _SB_SBMETH_HXX //autogen
+#include <basic/sbmeth.hxx>
+#endif
+
+#ifndef _SBXCLASS_HXX //autogen
+#include <svtools/sbx.hxx>
+#endif
+#ifndef _BASOBJ_HXX //autogen
+#include <basctl/basobj.hxx>
+#endif
+
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+
+#ifndef _ZFORMAT_HXX //autogen
+#include <svtools/zformat.hxx>
+#endif
+
+#ifndef _SB_SBMOD_HXX //autogen
+#include <basic/sbmod.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _CELLATR_HXX
+#include <cellatr.hxx>
+#endif
+#include "dbmgr.hxx"
+#include "shellres.hxx"
+#include "fldbas.hxx"
+#include "docufld.hxx"
+#include "chpfld.hxx"
+#include "ddefld.hxx"
+#include "expfld.hxx"
+#include "reffld.hxx"
+#include "usrfld.hxx"
+#include "dbfld.hxx"
+#include "authfld.hxx"
+#include "flddat.hxx"
+#include "fldmgr.hxx"
+
+#include "fldui.hrc"
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdb;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: Gruppen der Felder
+ --------------------------------------------------------------------*/
+enum
+{
+ GRP_DOC_BEGIN = 0,
+ GRP_DOC_END = GRP_DOC_BEGIN + 11,
+
+ GRP_FKT_BEGIN = GRP_DOC_END,
+ GRP_FKT_END = GRP_FKT_BEGIN + 6,
+
+ GRP_REF_BEGIN = GRP_FKT_END,
+ GRP_REF_END = GRP_REF_BEGIN + 2,
+
+ GRP_REG_BEGIN = GRP_REF_END,
+ GRP_REG_END = GRP_REG_BEGIN + 1,
+
+ GRP_DB_BEGIN = GRP_REG_END,
+ GRP_DB_END = GRP_DB_BEGIN + 5,
+
+ GRP_VAR_BEGIN = GRP_DB_END,
+ GRP_VAR_END = GRP_VAR_BEGIN + 9
+};
+
+enum
+{
+ GRP_WEB_DOC_BEGIN = 0,
+ GRP_WEB_DOC_END = GRP_WEB_DOC_BEGIN + 9,
+
+ GRP_WEB_FKT_BEGIN = GRP_WEB_DOC_END + 2,
+ GRP_WEB_FKT_END = GRP_WEB_FKT_BEGIN + 0, // Die Gruppe ist leer!
+
+ GRP_WEB_REF_BEGIN = GRP_WEB_FKT_END + 6, // Die Gruppe ist leer!
+ GRP_WEB_REF_END = GRP_WEB_REF_BEGIN + 0,
+
+ GRP_WEB_REG_BEGIN = GRP_WEB_REF_END + 2,
+ GRP_WEB_REG_END = GRP_WEB_REG_BEGIN + 1,
+
+ GRP_WEB_DB_BEGIN = GRP_WEB_REG_END, // Die Gruppe ist leer!
+ GRP_WEB_DB_END = GRP_WEB_DB_BEGIN + 0,
+
+ GRP_WEB_VAR_BEGIN = GRP_WEB_DB_END + 5,
+ GRP_WEB_VAR_END = GRP_WEB_VAR_BEGIN + 1
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Formate in der richtigen Reihenfolge
+ --------------------------------------------------------------------*/
+static const USHORT __FAR_DATA aSetFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_SETVAR_???
+// uebereinstimmen
+ 0,
+ 0
+};
+
+static const USHORT __FAR_DATA aGetFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_GETVAR_???
+// uebereinstimmen
+ 0
+};
+
+static const USHORT __FAR_DATA aUsrFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_SETVAR_???
+// uebereinstimmen
+ 0,
+ SUB_CMD
+};
+
+static const USHORT __FAR_DATA aDBFmt[] =
+{
+// die Reihenfolge muss zu Beginn mit den ResourceIds fuer FMT_DBFLD_???
+// uebereinstimmen
+ SUB_OWN_FMT
+};
+
+static const USHORT VF_COUNT = sizeof(aGetFmt) / sizeof(USHORT);
+static const USHORT VF_USR_COUNT = sizeof(aUsrFmt) / sizeof(USHORT);
+static const USHORT VF_DB_COUNT = sizeof(aDBFmt) / sizeof(USHORT);
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldtypen und Subtypes
+ --------------------------------------------------------------------*/
+struct SwFldPack
+{
+ USHORT nTypeId;
+
+ USHORT nSubTypeStart;
+ USHORT nSubTypeEnd;
+
+ ULONG nFmtBegin;
+ ULONG nFmtEnd;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Strings und Formate
+ --------------------------------------------------------------------*/
+static const SwFldPack __FAR_DATA aSwFlds[] =
+{
+ // Dokument
+ TYP_EXTUSERFLD, FLD_EU_BEGIN, FLD_EU_END, 0, 0,
+ TYP_AUTHORFLD, 0, 0, FMT_AUTHOR_BEGIN, FMT_AUTHOR_END,
+ TYP_DATEFLD, FLD_DATE_BEGIN, FLD_DATE_END, 0, 0,
+ TYP_TIMEFLD, FLD_TIME_BEGIN, FLD_TIME_END, 0, 0,
+ TYP_PAGENUMBERFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-1,
+ TYP_NEXTPAGEFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END,
+ TYP_PREVPAGEFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END,
+ TYP_FILENAMEFLD, 0, 0, FMT_FF_BEGIN, FMT_FF_END,
+ TYP_DOCSTATFLD, FLD_STAT_BEGIN, FLD_STAT_END, FMT_NUM_BEGIN, FMT_NUM_END-1,
+
+ TYP_CHAPTERFLD, 0, 0, FMT_CHAPTER_BEGIN, FMT_CHAPTER_END,
+ TYP_TEMPLNAMEFLD, 0, 0, FMT_FF_BEGIN, FMT_FF_END,
+
+ // Funktion
+ TYP_CONDTXTFLD, 0, 0, 0, 0,
+ TYP_INPUTFLD, FLD_INPUT_BEGIN, FLD_INPUT_END, 0, 0,
+ TYP_MACROFLD, 0, 0, 0, 0,
+ TYP_JUMPEDITFLD, 0, 0, FMT_MARK_BEGIN, FMT_MARK_END,
+ TYP_HIDDENTXTFLD, 0, 0, 0, 0,
+ TYP_HIDDENPARAFLD, 0, 0, 0, 0,
+
+ // Referenzen
+ TYP_SETREFFLD, 0, 0, 0, 0,
+ TYP_GETREFFLD, 0, 0, FMT_REF_BEGIN, FMT_REF_END,
+
+ // Ablage
+ TYP_DOCINFOFLD, 0, 0, FMT_REG_BEGIN, FMT_REG_END,
+
+ // Datenbank
+ TYP_DBFLD, 0, 0, FMT_DBFLD_BEGIN, FMT_DBFLD_END,
+ TYP_DBNEXTSETFLD, 0, 0, 0, 0,
+ TYP_DBNUMSETFLD, 0, 0, 0, 0,
+ TYP_DBSETNUMBERFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-2,
+ TYP_DBNAMEFLD, 0, 0, 0, 0,
+
+ // Variablen
+ TYP_SETFLD, 0, 0, FMT_SETVAR_BEGIN, FMT_SETVAR_END,
+
+ TYP_GETFLD, 0, 0, FMT_GETVAR_BEGIN, FMT_GETVAR_END,
+ TYP_DDEFLD, 0, 0, FMT_DDE_BEGIN, FMT_DDE_END,
+ TYP_FORMELFLD, 0, 0, FMT_GETVAR_BEGIN, FMT_GETVAR_END,
+ TYP_INPUTFLD, FLD_INPUT_BEGIN, FLD_INPUT_END, 0, 0,
+ TYP_SEQFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-2,
+ TYP_SETREFPAGEFLD, FLD_PAGEREF_BEGIN, FLD_PAGEREF_END,0, 0,
+ TYP_GETREFPAGEFLD, 0, 0, FMT_NUM_BEGIN, FMT_NUM_END-1,
+ TYP_USERFLD, 0, 0, FMT_USERVAR_BEGIN, FMT_USERVAR_END
+};
+
+String* SwFldMgr::pDate = 0;
+String* SwFldMgr::pTime = 0;
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zugriff auf die Shell
+ --------------------------------------------------------------------*/
+
+SwWrtShell* lcl_GetShell()
+{
+ SwView* pView;
+ if ( 0 != (pView = ::GetActiveView()) )
+ return pView->GetWrtShellPtr();
+ return 0;
+}
+
+inline USHORT GetPackCount() { return sizeof(aSwFlds) / sizeof(SwFldPack); }
+
+/*--------------------------------------------------------------------
+ Beschreibung: FieldManager regelt das Einfuegen und Updaten
+ von Feldern
+ --------------------------------------------------------------------*/
+
+SwFldMgr::SwFldMgr(SwWrtShell* pSh ) :
+ bEvalExp(TRUE),
+ pModule(0),
+ pMacroItem(0),
+ pWrtShell(pSh)
+{
+ // aktuelles Feld ermitteln falls vorhanden
+ GetCurFld();
+}
+
+
+SwFldMgr::~SwFldMgr()
+{
+ aSubLst.DeleteAndDestroy(0, aSubLst.Count());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: RefMark ueber Namen organisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwFldMgr::CanInsertRefMark( const String& rStr )
+{
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *lcl_GetShell();
+ USHORT nCnt = rSh.GetCrsrCnt();
+
+ // der letzte Crsr muss keine aufgespannte Selektion
+ if( 1 < nCnt && !rSh.SwCrsrShell::HasSelection() )
+ --nCnt;
+
+ return 2 > nCnt && 0 == rSh.GetRefMark( rStr );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Alle DBTypes loeschen
+ --------------------------------------------------------------------*/
+
+void SwFldMgr::RemoveDBTypes()
+{
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *lcl_GetShell();
+ USHORT nCount = rSh.GetFldTypeCount(RES_DBFLD);
+ for ( USHORT i=0; i < nCount ; ++i )
+ {
+ SwFieldType* pType = rSh.GetFldType( i, RES_DBFLD );
+ if( !pType->GetDepends() )
+ {
+ rSh.RemoveFldType( i--, RES_DBFLD );
+ nCount--;
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zugriff ueber ResIds
+ --------------------------------------------------------------------*/
+
+USHORT SwFldMgr::GetFldTypeCount(USHORT nResId) const
+{
+ return pWrtShell ?
+ pWrtShell->GetFldTypeCount(nResId) :
+ ::lcl_GetShell()->GetFldTypeCount(nResId);
+}
+
+
+SwFieldType* SwFldMgr::GetFldType(USHORT nResId, USHORT nId) const
+{
+ return pWrtShell ?
+ pWrtShell->GetFldType(nId, nResId) :
+ ::lcl_GetShell()->GetFldType(nId, nResId);
+}
+
+
+SwFieldType* SwFldMgr::GetFldType(USHORT nResId, const String& rName) const
+{
+ return pWrtShell ?
+ pWrtShell->GetFldType(nResId, rName) :
+ ::lcl_GetShell()->GetFldType(nResId, rName);
+}
+
+
+void SwFldMgr::RemoveFldType(USHORT nResId, USHORT nId)
+{
+ pWrtShell ?
+ pWrtShell->RemoveFldType(nId, nResId) :
+ ::lcl_GetShell()->RemoveFldType(nId, nResId);
+}
+
+
+void SwFldMgr::RemoveFldType(USHORT nResId, const String& rName )
+{
+ pWrtShell ?
+ pWrtShell->RemoveFldType(nResId, rName) :
+ ::lcl_GetShell()->RemoveFldType(nResId, rName);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aktuelles Feld ermitteln
+ --------------------------------------------------------------------*/
+
+
+SwField* SwFldMgr::GetCurFld()
+{
+ SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ if ( pSh )
+ pCurFld = pSh->GetCurFld();
+ else
+ pCurFld = NULL;
+
+ // Strings und Format initialisieren
+ //
+ aCurPar1.Erase();
+ aCurPar2.Erase();
+ sCurFrame.Erase();
+ nCurFmt = 0;
+
+ if(!pCurFld)
+ return 0;
+
+ // Aktuelle Werte aufbereiten Parameter 1 und Parameter 2
+ // als auch das Format ermitteln
+ //
+ const USHORT nTypeId = pCurFld->GetTypeId();
+
+ nCurFmt = pCurFld->GetFormat();
+ aCurPar1 = pCurFld->GetPar1();
+ aCurPar2 = pCurFld->GetPar2();
+
+ switch( nTypeId )
+ {
+ case TYP_PAGENUMBERFLD:
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_GETREFPAGEFLD:
+ if( nCurFmt == SVX_NUM_PAGEDESC )
+ nCurFmt -= 2;
+ break;
+ }
+ return pCurFld;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Gruppen-Bereich liefern
+ --------------------------------------------------------------------*/
+
+
+const SwFldGroupRgn& SwFldMgr::GetGroupRange(BOOL bHtmlMode, USHORT nGrpId) const
+{
+static SwFldGroupRgn __READONLY_DATA aRanges[] =
+{
+ /* Dokument */ GRP_DOC_BEGIN, GRP_DOC_END,
+ /* Funktionen */ GRP_FKT_BEGIN, GRP_FKT_END,
+ /* Referenzen */ GRP_REF_BEGIN, GRP_REF_END,
+ /* Ablage */ GRP_REG_BEGIN, GRP_REG_END,
+ /* DB */ GRP_DB_BEGIN, GRP_DB_END,
+ /* User */ GRP_VAR_BEGIN, GRP_VAR_END,
+};
+static SwFldGroupRgn __READONLY_DATA aWebRanges[] =
+{
+ /* Dokument */ GRP_WEB_DOC_BEGIN, GRP_WEB_DOC_END,
+ /* Funktionen */ GRP_WEB_FKT_BEGIN, GRP_WEB_FKT_END,
+ /* Referenzen */ GRP_WEB_REF_BEGIN, GRP_WEB_REF_END,
+ /* Ablage */ GRP_WEB_REG_BEGIN, GRP_WEB_REG_END,
+ /* DB */ GRP_WEB_DB_BEGIN, GRP_WEB_DB_END,
+ /* User */ GRP_WEB_VAR_BEGIN, GRP_WEB_VAR_END,
+};
+
+ if (bHtmlMode)
+ return aWebRanges[(USHORT)nGrpId];
+ else
+ return aRanges[(USHORT)nGrpId];
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: GroupId bestimmen
+ --------------------------------------------------------------------*/
+
+USHORT SwFldMgr::GetGroup(BOOL bHtmlMode, USHORT nTypeId, USHORT nSubType) const
+{
+ if (nTypeId == TYP_SETINPFLD)
+ nTypeId = TYP_SETFLD;
+
+ if (nTypeId == TYP_INPUTFLD && (nSubType & INP_USR))
+ nTypeId = TYP_USERFLD;
+
+ if (nTypeId == TYP_FIXDATEFLD)
+ nTypeId = TYP_DATEFLD;
+
+ if (nTypeId == TYP_FIXTIMEFLD)
+ nTypeId = TYP_TIMEFLD;
+
+ for (USHORT i = GRP_DOC; i <= GRP_VAR; i++)
+ {
+ const SwFldGroupRgn& rRange = GetGroupRange(bHtmlMode, i);
+ for (USHORT nPos = rRange.nStart; nPos < rRange.nEnd; nPos++)
+ {
+ if (aSwFlds[nPos].nTypeId == nTypeId)
+ return i;
+ }
+ }
+ return USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Namen zur TypeId ermitteln
+ ZUGRIFF ueber TYP_....
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetTypeId(USHORT nPos) const
+{
+ ASSERT(nPos < ::GetPackCount(), "unzulaessige Pos");
+ return aSwFlds[ nPos ].nTypeId;
+}
+
+
+const String& SwFldMgr::GetTypeStr(USHORT nPos) const
+{
+ ASSERT(nPos < ::GetPackCount(), "unzulaessige TypeId");
+
+ USHORT nFldWh = aSwFlds[ nPos ].nTypeId;
+
+ // Sonderbehandlung fuer Datum/Zeit Felder (ohne var/fix)
+ if( TYP_DATEFLD == nFldWh )
+ {
+ if( !pDate )
+ pDate = new SW_RESSTR( STR_DATEFLD );
+ return *pDate;
+ }
+ if( TYP_TIMEFLD == nFldWh )
+ {
+ if( !pTime )
+ pTime = new SW_RESSTR( STR_TIMEFLD );
+ return *pTime;
+ }
+
+ return *SwFieldType::GetFldNames()->GetObject( nFldWh );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Pos in der Liste bestimmen
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetPos(USHORT nTypeId) const
+{
+ switch( nTypeId )
+ {
+ case TYP_FIXDATEFLD: nTypeId = TYP_DATEFLD; break;
+ case TYP_FIXTIMEFLD: nTypeId = TYP_TIMEFLD; break;
+ case TYP_SETINPFLD: nTypeId = TYP_SETFLD; break;
+ case TYP_USRINPFLD: nTypeId = TYP_USERFLD; break;
+ }
+
+ for(USHORT i = 0; i < GetPackCount(); i++)
+ if(aSwFlds[i].nTypeId == nTypeId)
+ return i;
+
+ return USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Subtypen eines Feldes lokalisieren
+ --------------------------------------------------------------------*/
+
+SvStringsDtor& SwFldMgr::GetSubTypes(USHORT nTypeId)
+{
+ // aSubLst.DeleteAndDestroy(0, aSubLst.Count());
+ for (USHORT i=0; i < aSubLst.Count(); )
+ {
+ String* pStr = aSubLst[i];
+ DELETEZ(pStr);
+ aSubLst.Remove(i);
+ }
+
+ const USHORT nPos = GetPos(nTypeId);
+
+ switch(nTypeId)
+ {
+ case TYP_SETREFFLD:
+ case TYP_GETREFFLD:
+ {
+ // Referenzen sind keine Felder
+ pWrtShell ?
+ pWrtShell->GetRefMarks( &aSubLst ) :
+ ::lcl_GetShell()->GetRefMarks( &aSubLst );
+ break;
+ }
+ case TYP_MACROFLD:
+ {
+ if (sMacroPath.Len())
+ {
+ String sPath = sMacroPath.Copy(sMacroPath.Search('.', 0));
+ if (pModule)
+ {
+ SbxArray* pSbxArray = pModule->GetMethods();
+
+ for (USHORT nMethod = 0; nMethod < pSbxArray->Count(); nMethod++)
+ {
+ SbMethod* pMethod = (SbMethod*)pSbxArray->Get(nMethod);
+ DBG_ASSERT( pMethod, "Methode nicht gefunden! (NULL)" );
+
+ String* pNew = new String(pMethod->GetName());
+ *pNew += sPath;
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ else
+ {
+ String* pNew = new String(sMacroPath);
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ break;
+ }
+ case TYP_INPUTFLD:
+ { String* pNew = new SW_RESSTR(aSwFlds[nPos].nSubTypeStart);
+ aSubLst.Insert(pNew, aSubLst.Count());
+ // Weiter bei generischen Typen
+ }
+ case TYP_DDEFLD:
+ case TYP_SEQFLD:
+ case TYP_FORMELFLD:
+ case TYP_GETFLD:
+ case TYP_SETFLD:
+ case TYP_USERFLD:
+ {
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *::lcl_GetShell();
+ const USHORT nCount = rSh.GetFldTypeCount();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ SwFieldType* pFldType = rSh.GetFldType( i );
+ const USHORT nWhich = pFldType->Which();
+
+ if((nTypeId == TYP_DDEFLD && pFldType->Which() == RES_DDEFLD) ||
+
+ (nTypeId == TYP_USERFLD && nWhich == RES_USERFLD) ||
+
+ (nTypeId == TYP_GETFLD && nWhich == RES_SETEXPFLD &&
+ !(((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ||
+
+ (nTypeId == TYP_SETFLD && nWhich == RES_SETEXPFLD &&
+ !(((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ||
+
+ (nTypeId == TYP_SEQFLD && nWhich == RES_SETEXPFLD &&
+ (((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ||
+
+ ((nTypeId == TYP_INPUTFLD || nTypeId == TYP_FORMELFLD) &&
+ (nWhich == RES_USERFLD ||
+ nWhich == RES_SETEXPFLD &&
+ !(((SwSetExpFieldType*)pFldType)->GetType() & GSE_SEQ)) ) )
+ {
+ String* pNew = new String(pFldType->GetName());
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ break;
+ }
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBNAMEFLD:
+ case TYP_DBSETNUMBERFLD:
+ break;
+
+ default:
+ {
+ // statische SubTypes
+ if(nPos != USHRT_MAX)
+ {
+ USHORT nCount;
+ if (nTypeId == TYP_DOCINFOFLD)
+ nCount = DI_SUBTYPE_END - DI_SUBTYPE_BEGIN;
+ else
+ nCount = aSwFlds[nPos].nSubTypeEnd - aSwFlds[nPos].nSubTypeStart;
+
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *::lcl_GetShell();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ String* pNew;
+ if (nTypeId == TYP_DOCINFOFLD)
+ {
+ if (i >= DI_INFO1 && i <= DI_INFO4)
+ pNew = new String( rSh.GetInfo()->GetUserKey(i-DI_INFO1).GetTitle());
+ else
+ pNew = new String(*ViewShell::GetShellRes()->aDocInfoLst[i]);
+ }
+ else
+ pNew = new SW_RESSTR(aSwFlds[nPos].nSubTypeStart + i);
+
+ aSubLst.Insert(pNew, aSubLst.Count());
+ }
+ }
+ }
+ }
+ return aSubLst;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Format ermitteln
+ ZUGRIFF ueber TYP_....
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetFormatCount(USHORT nTypeId, BOOL bIsText, BOOL bHtmlMode) const
+{
+ ASSERT(nTypeId < TYP_END, "unzulaessige TypeId");
+
+ {
+ const USHORT nPos = GetPos(nTypeId);
+
+ if(nPos == USHRT_MAX || (bHtmlMode && nTypeId == TYP_SETFLD))
+ return 0;
+
+ ULONG nStart = aSwFlds[nPos].nFmtBegin;
+ ULONG nEnd = aSwFlds[nPos].nFmtEnd;
+
+ if (bIsText && nEnd - nStart >= 2)
+ return 2;
+
+ if (nTypeId == TYP_FILENAMEFLD)
+ nEnd -= 2; // Kein Bereich oder Vorlage
+
+ switch(nStart)
+ {
+ case FMT_GETVAR_BEGIN:
+ case FMT_SETVAR_BEGIN: return VF_COUNT;
+ case FMT_USERVAR_BEGIN: return VF_USR_COUNT;
+ case FMT_DBFLD_BEGIN: return VF_DB_COUNT;
+ }
+ return (USHORT)(nEnd - nStart);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: FormatString zu einem Typ ermitteln
+ --------------------------------------------------------------------*/
+
+
+String SwFldMgr::GetFormatStr(USHORT nTypeId, ULONG nFormatId) const
+{
+ String aRet;
+ SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ ASSERT(nTypeId < TYP_END, "unzulaessige TypeId");
+
+ const USHORT nPos = GetPos(nTypeId);
+
+ if(nPos == USHRT_MAX)
+ return aRet;
+
+ ULONG nStart;
+
+ nStart = aSwFlds[nPos].nFmtBegin;
+
+ if (nTypeId == TYP_FILENAMEFLD)
+ nFormatId &= ~FF_FIXED; // Fixed-Flag ausmaskieren
+
+ aRet = SW_RESSTR((USHORT)(nStart + nFormatId));
+
+ return aRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: FormatId aus Pseudo-ID ermitteln
+ --------------------------------------------------------------------*/
+
+USHORT SwFldMgr::GetFormatId(USHORT nTypeId, ULONG nFormatId) const
+{
+ USHORT nId = (USHORT)nFormatId;
+
+ switch( nTypeId )
+ {
+ case TYP_DOCINFOFLD:
+ switch( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId )
+ {
+ case FMT_REG_AUTHOR: nId = DI_SUB_AUTHOR; break;
+ case FMT_REG_TIME: nId = DI_SUB_TIME; break;
+ case FMT_REG_DATE: nId = DI_SUB_DATE; break;
+ }
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_DOCSTATFLD:
+ case TYP_DBSETNUMBERFLD:
+ case TYP_SEQFLD:
+ case TYP_GETREFPAGEFLD:
+ switch( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId )
+ {
+ case FMT_NUM_ABC: nId = SVX_NUM_CHARS_UPPER_LETTER; break;
+ case FMT_NUM_SABC: nId = SVX_NUM_CHARS_LOWER_LETTER; break;
+ case FMT_NUM_ROMAN: nId = SVX_NUM_ROMAN_UPPER; break;
+ case FMT_NUM_SROMAN: nId = SVX_NUM_ROMAN_LOWER; break;
+ case FMT_NUM_ARABIC: nId = SVX_NUM_ARABIC; break;
+ case FMT_NUM_PAGEDESC: nId = SVX_NUM_PAGEDESC; break;
+ case FMT_NUM_PAGESPECIAL: nId = SVX_NUM_CHAR_SPECIAL; break;
+ case FMT_NUM_ABC_N: nId = SVX_NUM_CHARS_UPPER_LETTER_N; break;
+ case FMT_NUM_SABC_N: nId = SVX_NUM_CHARS_LOWER_LETTER_N; break;
+ }
+ break;
+
+ case TYP_DDEFLD:
+ switch ( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId )
+ {
+ case FMT_DDE_NORMAL: nId = LINKUPDATE_ONCALL; break;
+ case FMT_DDE_HOT: nId = LINKUPDATE_ALWAYS; break;
+ }
+ break;
+ }
+
+ return nId;
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling
+ --------------------------------------------------------------------*/
+
+
+BOOL SwFldMgr::GoNextPrev( BOOL bNext, SwFieldType* pTyp )
+{
+ SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+
+ if( !pTyp && pCurFld )
+ {
+ const USHORT nTypeId = pCurFld->GetTypeId();
+ if( TYP_SETINPFLD == nTypeId || TYP_USRINPFLD == nTypeId )
+ pTyp = pSh->GetFldType( 0, RES_INPUTFLD );
+ else
+ pTyp = pCurFld->GetTyp();
+ }
+
+ if (pTyp && pTyp->Which() == RES_DBFLD)
+ {
+ // Fuer Feldbefehl-bearbeiten (alle DB-Felder anspringen)
+ return pSh->MoveFldType( 0, bNext, USHRT_MAX, RES_DBFLD );
+ }
+
+ return pTyp && pSh ? pSh->MoveFldType( pTyp, bNext ) : FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldtypen einfuegen
+ --------------------------------------------------------------------*/
+
+
+void SwFldMgr::InsertFldType(SwFieldType& rType)
+{
+ pWrtShell ?
+ pWrtShell->InsertFldType(rType) :
+ ::lcl_GetShell()->InsertFldType(rType);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aktuelle TypeId ermitteln
+ --------------------------------------------------------------------*/
+
+
+USHORT SwFldMgr::GetCurTypeId() const
+{
+ return pCurFld->GetTypeId();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ueber String Feld einfuegen oder Update
+ --------------------------------------------------------------------*/
+
+
+BOOL SwFldMgr::InsertFld(USHORT nType,
+ USHORT nSubType,
+ const String& rPar1,
+ const String& rPar2,
+ ULONG nFormat,
+ SwWrtShell* pSh,
+ sal_Unicode cSeparator)
+{
+ SwField* pFld = 0;
+ BOOL bExp = FALSE;
+ BOOL bTbl = FALSE;
+ BOOL bPageVar = FALSE;
+
+ if (pSh == NULL)
+ pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+
+ switch(nType)
+ { // ACHTUNG dieses Feld wird ueber einen gesonderten Dialog eingefuegt
+ case TYP_POSTITFLD:
+ {
+ SwPostItFieldType* pType =
+ (SwPostItFieldType*)pSh->GetFldType(0, RES_POSTITFLD);
+ pFld = new SwPostItField(pType, rPar1, rPar2, Date());
+ break;
+ }
+ case TYP_SCRIPTFLD:
+ {
+ SwScriptFieldType* pType =
+ (SwScriptFieldType*)pSh->GetFldType(0, RES_SCRIPTFLD);
+ pFld = new SwScriptField(pType, rPar1, rPar2, (BOOL)nFormat);
+ break;
+ }
+ case TYP_AUTHORITY:
+ {
+ SwAuthorityFieldType* pType =
+ (SwAuthorityFieldType*)pSh->GetFldType(0, RES_AUTHORITY);
+ if(!pType)
+ {
+ pType =
+ (SwAuthorityFieldType*)pSh->InsertFldType(
+ SwAuthorityFieldType(pSh->GetDoc()));
+ }
+ pFld = new SwAuthorityField(pType, rPar1);
+ }
+ break;
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ {
+ USHORT nSub = (nType == TYP_DATEFLD) ? DATEFLD : TIMEFLD;
+ nSub |= nSubType == DATE_VAR ? 0 : FIXEDFLD;
+
+ SwDateTimeFieldType* pTyp =
+ (SwDateTimeFieldType*)pSh->GetFldType(0, RES_DATETIMEFLD);
+ pFld = new SwDateTimeField(pTyp, nSub, nFormat);
+ pFld->SetPar2(rPar2);
+ break;
+ }
+ case TYP_FILENAMEFLD:
+ {
+ SwFileNameFieldType* pTyp =
+ (SwFileNameFieldType*)pSh->GetFldType(0, RES_FILENAMEFLD);
+ pFld = new SwFileNameField(pTyp, nFormat);
+ break;
+ }
+ case TYP_TEMPLNAMEFLD:
+ {
+ SwTemplNameFieldType* pTyp =
+ (SwTemplNameFieldType*)pSh->GetFldType(0, RES_TEMPLNAMEFLD);
+ pFld = new SwTemplNameField(pTyp, nFormat);
+ break;
+ }
+ case TYP_CHAPTERFLD:
+ { USHORT nByte = rPar2.ToInt32();
+ SwChapterFieldType* pTyp =
+ (SwChapterFieldType*)pSh->GetFldType(0, RES_CHAPTERFLD);
+ pFld = new SwChapterField(pTyp, nFormat);
+ nByte = Max(USHORT(1), nByte);
+ nByte = Min(nByte, USHORT(MAXLEVEL));
+ nByte -= 1;
+ ((SwChapterField*)pFld)->SetLevel((BYTE)nByte);
+ break;
+ }
+ case TYP_NEXTPAGEFLD:
+ case TYP_PREVPAGEFLD:
+ case TYP_PAGENUMBERFLD:
+ {
+ short nOff = rPar2.ToInt32();
+
+ if(nType == TYP_NEXTPAGEFLD)
+ {
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ nOff = 1;
+ else
+ nOff += 1;
+ nSubType = PG_NEXT;
+ }
+ else if(nType == TYP_PREVPAGEFLD)
+ {
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ nOff = -1;
+ else
+ nOff -= 1;
+ nSubType = PG_PREV;
+ }
+ else
+ nSubType = PG_RANDOM;
+
+ SwPageNumberFieldType* pTyp =
+ (SwPageNumberFieldType*)pSh->GetFldType(0, RES_PAGENUMBERFLD);
+ pFld = new SwPageNumberField(pTyp, nSubType, nFormat, nOff);
+
+ if( SVX_NUM_CHAR_SPECIAL == nFormat &&
+ ( PG_PREV == nSubType || PG_NEXT == nSubType ) )
+ ((SwPageNumberField*)pFld)->SetUserString( rPar2 );
+ break;
+ }
+ case TYP_DOCSTATFLD:
+ { SwDocStatFieldType* pTyp =
+ (SwDocStatFieldType*)pSh->GetFldType(0, RES_DOCSTATFLD);
+ pFld = new SwDocStatField(pTyp, nSubType, nFormat);
+ break;
+ }
+ case TYP_AUTHORFLD:
+ { SwAuthorFieldType* pTyp =
+ (SwAuthorFieldType*)pSh->GetFldType(0, RES_AUTHORFLD);
+ pFld = new SwAuthorField(pTyp, nFormat);
+ break;
+ }
+ case TYP_CONDTXTFLD:
+ case TYP_HIDDENTXTFLD:
+ {
+ SwHiddenTxtFieldType* pTyp =
+ (SwHiddenTxtFieldType*)pSh->GetFldType(0, RES_HIDDENTXTFLD);
+ pFld = new SwHiddenTxtField(pTyp, TRUE, rPar1, rPar2, FALSE, nType);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_HIDDENPARAFLD:
+ {
+ SwHiddenParaFieldType* pTyp =
+ (SwHiddenParaFieldType*)pSh->GetFldType(0, RES_HIDDENPARAFLD);
+ pFld = new SwHiddenParaField(pTyp, rPar1);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_SETREFFLD:
+ {
+ if( rPar1.Len() > 0 && CanInsertRefMark( rPar1 ) )
+ {
+ pSh->SetAttr( SwFmtRefMark( rPar1 ) );
+ return TRUE;
+ }
+ return FALSE;
+ }
+ case TYP_GETREFFLD:
+ {
+ SwGetRefFieldType* pTyp =
+ (SwGetRefFieldType*)pSh->GetFldType(0, RES_GETREFFLD);
+ USHORT nSeqNo = rPar2.ToInt32();
+ pFld = new SwGetRefField(pTyp, rPar1, nSubType, nSeqNo, nFormat);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DDEFLD:
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ String sCmd( rPar2 );
+ USHORT nTmpPos = sCmd.SearchAndReplace( ' ', cTokenSeperator );
+ sCmd.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+
+ SwDDEFieldType* pTyp = (SwDDEFieldType*)pSh->InsertFldType(
+ SwDDEFieldType( rPar1, sCmd, (USHORT)nFormat ));
+ pFld = new SwDDEField( pTyp );
+ break;
+ }
+ case TYP_MACROFLD:
+ {
+ SwMacroFieldType* pTyp =
+ (SwMacroFieldType*)pSh->GetFldType(0, RES_MACROFLD);
+
+ pFld = new SwMacroField(pTyp, rPar1, rPar2);
+ break;
+ }
+ case TYP_INTERNETFLD:
+ {
+ SwFmtINetFmt aFmt( rPar1, sCurFrame );
+ if( pMacroItem )
+ aFmt.SetMacroTbl( &pMacroItem->GetMacroTable() );
+ return pSh->InsertURL( aFmt, rPar2 );
+ }
+ case TYP_JUMPEDITFLD:
+ {
+ SwJumpEditFieldType* pTyp =
+ (SwJumpEditFieldType*)pSh->GetFldType(0, RES_JUMPEDITFLD);
+
+ pFld = new SwJumpEditField(pTyp, nFormat, rPar1, rPar2 );
+ break;
+ }
+ case TYP_DOCINFOFLD:
+ {
+ SwDocInfoFieldType* pTyp = (SwDocInfoFieldType*)pSh->GetFldType(
+ 0, RES_DOCINFOFLD );
+ pFld = new SwDocInfoField(pTyp, nSubType, nFormat);
+ break;
+ }
+ case TYP_EXTUSERFLD:
+ {
+ SwExtUserFieldType* pTyp = (SwExtUserFieldType*)pSh->GetFldType(
+ 0, RES_EXTUSERFLD);
+ pFld = new SwExtUserField(pTyp, nSubType, nFormat);
+ break;
+ }
+ case TYP_DBFLD:
+ {
+ String sDBName;
+ String sPar1;
+
+ if (rPar1.Search(DB_DELIM) == STRING_NOTFOUND)
+ {
+ sDBName = pSh->GetDBName();
+ sPar1 = rPar1;
+ }
+ else
+ {
+ sDBName = rPar1.GetToken(0, DB_DELIM);
+ sDBName += DB_DELIM;
+ sDBName += rPar1.GetToken(1, DB_DELIM);
+ sPar1 = rPar1.GetToken(2, DB_DELIM);
+ }
+
+ if (sDBName.Len() && pSh->GetDBName() != sDBName)
+ pSh->ChgDBName(sDBName);
+
+ SwDBFieldType* pTyp = (SwDBFieldType*)pSh->InsertFldType(
+ SwDBFieldType(pSh->GetDoc(), sPar1, sDBName) );
+ pFld = new SwDBField(pTyp);
+ pFld->SetSubType(nSubType);
+
+ if( !(nSubType & SUB_OWN_FMT) ) // Datenbankformat ermitteln
+ {
+#ifdef REPLACE_OFADBMGR
+ String sSourceName(sDBName.GetToken(0, DB_DELIM));
+ String sTableName(sDBName.GetToken(1, DB_DELIM));
+ nFormat = pSh->GetNewDBMgr()->GetColumnFmt( sSourceName, sTableName, sPar1,
+ pSh->GetNumberFormatter(), GetCurrLanguage() );
+#else
+ nFormat = pSh->GetNewDBMgr()->GetColumnFmt( sDBName, sPar1,
+ pSh->GetNumberFormatter() );
+#endif
+ }
+ pFld->ChangeFormat( nFormat );
+
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DBSETNUMBERFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNAMEFLD:
+ {
+ USHORT nPos, nTablePos, nExpPos;
+ String sDBName, sPar1;
+
+ // DBName aus rPar1 extrahieren. Format: DBName.TableName.ExpStrg
+ if ((nTablePos = rPar1.Search(DB_DELIM)) != STRING_NOTFOUND)
+ sDBName = rPar1.Copy(0, nTablePos++);
+ if ((nExpPos = rPar1.Search(DB_DELIM, nTablePos)) != STRING_NOTFOUND)
+ {
+ sDBName += DB_DELIM;
+ sDBName += rPar1.Copy(nTablePos, nExpPos++ - nTablePos);
+ }
+ if (nExpPos != STRING_NOTFOUND)
+ nPos = nExpPos;
+ else if (nTablePos != STRING_NOTFOUND)
+ nPos = nTablePos;
+ else
+ nPos = 0;
+ sPar1 = rPar1.Copy(nPos);
+
+#ifdef REPLACE_OFADBMGR
+ if (sDBName.Len() && pSh->GetDBName() != sDBName)
+#else
+ if (sDBName.Len() && pSh->GetDBName().ToUpperAscii() != sDBName.ToUpperAscii())
+#endif
+ pSh->ChgDBName(sDBName);
+
+ switch(nType)
+ {
+ case TYP_DBNAMEFLD:
+ {
+ SwDBNameFieldType* pTyp =
+ (SwDBNameFieldType*)pSh->GetFldType(0, RES_DBNAMEFLD);
+ pFld = new SwDBNameField(pTyp, sDBName);
+
+ break;
+ }
+ case TYP_DBNEXTSETFLD:
+ {
+ SwDBNextSetFieldType* pTyp = (SwDBNextSetFieldType*)pSh->GetFldType(
+ 0, RES_DBNEXTSETFLD);
+ pFld = new SwDBNextSetField(pTyp, sPar1, rPar2, sDBName);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DBNUMSETFLD:
+ {
+ SwDBNumSetFieldType* pTyp = (SwDBNumSetFieldType*)pSh->GetFldType(
+ 0, RES_DBNUMSETFLD);
+ pFld = new SwDBNumSetField( pTyp, sPar1, rPar2, sDBName);
+ bExp = TRUE;
+ break;
+ }
+ case TYP_DBSETNUMBERFLD:
+ {
+ SwDBSetNumberFieldType* pTyp = (SwDBSetNumberFieldType*)
+ pSh->GetFldType(0, RES_DBSETNUMBERFLD);
+ pFld = new SwDBSetNumberField( pTyp, sDBName, nFormat);
+ bExp = TRUE;
+ break;
+ }
+ }
+ break;
+ }
+ case TYP_USERFLD:
+ {
+ SwUserFieldType* pTyp =
+ (SwUserFieldType*)pSh->GetFldType(RES_USERFLD, rPar1);
+
+ // nur wenn vorhanden
+ if(!pTyp)
+ {
+ pTyp = (SwUserFieldType*)pSh->InsertFldType(
+ SwUserFieldType(pSh->GetDoc(), rPar1));
+ }
+ if (pTyp->GetContent(nFormat) != rPar2)
+ pTyp->SetContent(rPar2, nFormat);
+ pFld = new SwUserField(pTyp, 0, nFormat);
+ if (pFld->GetSubType() != nSubType)
+ pFld->SetSubType(nSubType);
+ bTbl = TRUE;
+ break;
+ }
+ case TYP_INPUTFLD:
+ {
+ if ((nSubType & 0x00ff) == INP_VAR)
+ {
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)
+ pSh->GetFldType(RES_SETEXPFLD, rPar1);
+
+ // kein Experssion Type mit dem Namen vorhanden -> anlegen
+ if(pTyp)
+ {
+ SwSetExpField* pExpFld =
+ new SwSetExpField(pTyp, aEmptyStr, nFormat);
+
+ // Typ vom SwSetExpFieldType nicht veraendern:
+ USHORT nOldSubType = pExpFld->GetSubType();
+ pExpFld->SetSubType(nOldSubType | (nSubType & 0xff00));
+
+ pExpFld->SetPromptText(rPar2);
+ pExpFld->SetInputFlag(TRUE) ;
+ bExp = TRUE;
+ pFld = pExpFld;
+ }
+ else
+ return FALSE;
+ }
+ else
+ {
+ SwInputFieldType* pTyp =
+ (SwInputFieldType*)pSh->GetFldType(0, RES_INPUTFLD);
+
+ SwInputField* pInpFld =
+ new SwInputField(pTyp, rPar1, rPar2, nSubType|SUB_INVISIBLE, nFormat);
+ pFld = pInpFld;
+ }
+
+ // Dialog starten
+ //
+ pSh->StartInputFldDlg(pFld, FALSE);
+ break;
+ }
+ case TYP_SETFLD:
+ {
+ if (!rPar2.Len()) // Leere Variablen sind nicht erlaubt
+ return FALSE;
+
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)pSh->InsertFldType(
+ SwSetExpFieldType(pSh->GetDoc(), rPar1) );
+
+ SwSetExpField* pExpFld = new SwSetExpField( pTyp, rPar2, nFormat);
+ pExpFld->SetSubType(nSubType);
+ pExpFld->SetPar2(rPar2);
+ bExp = TRUE;
+ pFld = pExpFld;
+ break;
+ }
+ case TYP_SEQFLD:
+ {
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)pSh->InsertFldType(
+ SwSetExpFieldType(pSh->GetDoc(), rPar1, GSE_SEQ));
+
+ BYTE nLevel = nSubType & 0xff;
+
+ pTyp->SetOutlineLvl(nLevel);
+ if (nLevel != 0x7f && cSeparator == 0)
+ cSeparator = '.';
+
+ pTyp->SetDelimiter(cSeparator);
+ SwSetExpField* pExpFld = new SwSetExpField(pTyp, rPar2, nFormat);
+ bExp = TRUE;
+ pFld = pExpFld;
+ nSubType = GSE_SEQ;
+ break;
+ }
+ case TYP_GETFLD:
+ {
+ // gibt es ein entprechendes SetField
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ pSh->GetFldType(RES_SETEXPFLD, rPar1);
+
+ if(pSetTyp)
+ {
+ SwGetExpFieldType* pTyp = (SwGetExpFieldType*)pSh->GetFldType(
+ 0, RES_GETEXPFLD);
+ pFld = new SwGetExpField(pTyp, rPar1, pSetTyp->GetType(), nFormat);
+ pFld->SetSubType(nSubType | pSetTyp->GetType());
+ bExp = TRUE;
+ }
+ else
+ return FALSE;
+ break;
+ }
+ case TYP_FORMELFLD:
+ {
+ if(pSh->GetFrmType(0,FALSE) & FRMTYPE_TABLE)
+ {
+ pSh->StartAllAction();
+
+ SvNumberFormatter* pFormatter = pSh->GetDoc()->GetNumberFormatter();
+ const SvNumberformat* pEntry = pFormatter->GetEntry(nFormat);
+
+ if (pEntry)
+ {
+ SfxStringItem aFormat(FN_NUMBER_FORMAT, pEntry->GetFormatstring());
+ pSh->GetView().GetViewFrame()->GetDispatcher()->
+ Execute(FN_NUMBER_FORMAT, SFX_CALLMODE_SYNCHRON, &aFormat, 0L);
+ }
+
+ SfxItemSet aBoxSet( pSh->GetAttrPool(),
+ RES_BOXATR_FORMULA, RES_BOXATR_FORMULA );
+
+ String sFml( rPar2 );
+ if( sFml.EraseLeadingChars().Len() &&
+ '=' == sFml.GetChar( 0 ) )
+ sFml.Erase( 0, 1 );
+
+ aBoxSet.Put( SwTblBoxFormula( sFml ));
+ pSh->SetTblBoxFormulaAttrs( aBoxSet );
+ pSh->UpdateTable();
+
+ pSh->EndAllAction();
+ return TRUE;
+
+/* // In der Tabelle Tabellenformeln einfuegen
+ SwTblFieldType* pTyp = (SwTblFieldType*)pSh->GetFldType(
+ 0, RES_TABLEFLD);
+ pFld = new SwTblField(pTyp, rPar2, GSE_EXPR, nFormat);
+ bTbl = TRUE;*/
+ }
+ else
+ {
+ SwGetExpFieldType* pTyp = (SwGetExpFieldType*)
+ pSh->GetFldType(0, RES_GETEXPFLD);
+ pFld = new SwGetExpField(pTyp, rPar2, GSE_FORMULA, nFormat);
+ pFld->SetSubType(nSubType);
+ bExp = TRUE;
+ }
+ break;
+ }
+ case TYP_SETREFPAGEFLD:
+ pFld = new SwRefPageSetField( (SwRefPageSetFieldType*)
+ pSh->GetFldType( 0, RES_REFPAGESETFLD ),
+ rPar2.ToInt32(), 0 != nSubType );
+ bPageVar = TRUE;
+ break;
+
+ case TYP_GETREFPAGEFLD:
+ pFld = new SwRefPageGetField( (SwRefPageGetFieldType*)
+ pSh->GetFldType( 0, RES_REFPAGEGETFLD ), nFormat );
+ bPageVar = TRUE;
+ break;
+
+ default:
+ { ASSERT(!this, "Falscher Feldtyp");
+ return FALSE;
+ }
+ }
+ ASSERT(pFld, "Feld nicht vorhanden");
+
+ USHORT nLang = GetCurrLanguage();
+
+ // Language
+ pFld->SetLanguage(nLang);
+
+ // Einfuegen
+ pSh->StartAllAction();
+
+ pSh->Insert(*pFld);
+
+ if(bExp && bEvalExp)
+ pSh->UpdateExpFlds(TRUE);
+
+ if(bTbl)
+ {
+ pSh->Left();
+ pSh->UpdateFlds(*pFld);
+ pSh->Right();
+ }
+ else if( bPageVar )
+ ((SwRefPageGetFieldType*)pSh->GetFldType( 0, RES_REFPAGEGETFLD ))->UpdateFlds();
+ else if( TYP_GETREFFLD == nType )
+ pFld->GetTyp()->Modify( 0, 0 );
+
+ // temporaeres Feld loeschen
+ delete pFld;
+
+ pSh->EndAllAction();
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Felder Update
+ --------------------------------------------------------------------*/
+
+
+void SwFldMgr::UpdateCurFld(ULONG nFormat,
+ const String& rPar1,
+ const String& rPar2)
+{
+ // Format aendern
+ ASSERT(pCurFld, "kein Feld an der CursorPos");
+
+ SwFieldType* pType = pCurFld->GetTyp();
+ const USHORT nTypeId = pCurFld->GetTypeId();
+
+ SwWrtShell &rSh = pWrtShell ? *pWrtShell : *::lcl_GetShell();
+ rSh.StartAllAction();
+
+ BOOL bSetPar2 = TRUE;
+ String sPar1( rPar1 );
+ String sPar2( rPar2 );
+
+ // Order to Format
+ switch( nTypeId )
+ {
+ case TYP_DDEFLD:
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ USHORT nTmpPos = sPar2.SearchAndReplace( ' ', cTokenSeperator );
+ sPar2.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+ break;
+ }
+
+ case TYP_CHAPTERFLD:
+ {
+ USHORT nByte = rPar2.ToInt32();
+ nByte = Max(USHORT(1), nByte);
+ nByte = Min(nByte, USHORT(MAXLEVEL));
+ nByte -= 1;
+ ((SwChapterField*)pCurFld)->SetLevel((BYTE)nByte);
+ bSetPar2 = FALSE;
+ break;
+ }
+
+ case TYP_SCRIPTFLD:
+ ((SwScriptField*)pCurFld)->SetCodeURL((BOOL)nFormat);
+ break;
+
+ case TYP_NEXTPAGEFLD:
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ {
+ ((SwPageNumberField*)pCurFld)->SetUserString( sPar2 );
+ sPar2 = 1;
+ }
+ else
+ {
+ if( nFormat + 2 == SVX_NUM_PAGEDESC )
+ nFormat = SVX_NUM_PAGEDESC;
+ short nOff = sPar2.ToInt32();
+ nOff += 1;
+ sPar2 = nOff;
+ }
+ break;
+
+ case TYP_PREVPAGEFLD:
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ {
+ ((SwPageNumberField*)pCurFld)->SetUserString( sPar2 );
+ sPar2 = -1;
+ }
+ else
+ {
+ if( nFormat + 2 == SVX_NUM_PAGEDESC )
+ nFormat = SVX_NUM_PAGEDESC;
+ short nOff = sPar2.ToInt32();
+ nOff -= 1;
+ sPar2 = nOff;
+ }
+ break;
+
+ case TYP_PAGENUMBERFLD:
+ case TYP_GETREFPAGEFLD:
+ if( nFormat + 2 == SVX_NUM_PAGEDESC )
+ nFormat = SVX_NUM_PAGEDESC;
+ break;
+
+ case TYP_GETREFFLD:
+ {
+ bSetPar2 = FALSE;
+ ((SwGetRefField*)pCurFld)->SetSubType( rPar2.ToInt32() );
+ USHORT nPos = rPar2.Search( '|' );
+ if( STRING_NOTFOUND != nPos )
+ ((SwGetRefField*)pCurFld)->SetSeqNo( rPar2.Copy( nPos + 1 ).ToInt32());
+ }
+ break;
+ }
+
+ // Format setzen
+ // Format wegen NumberFormatter vor SetPar2 einstellen!
+ pCurFld->ChangeFormat(nFormat);
+
+ pCurFld->SetPar1( sPar1 );
+ if( bSetPar2 )
+ pCurFld->SetPar2( sPar2 );
+
+ // Update anschmeissen
+ if(nTypeId == TYP_DDEFLD ||
+ nTypeId == TYP_USERFLD ||
+ nTypeId == TYP_USRINPFLD)
+ {
+ pType->UpdateFlds();
+ rSh.SetModified();
+ }
+ else
+ rSh.SwEditShell::UpdateFlds(*pCurFld);
+
+ rSh.EndAllAction();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen / Erfragen Werte von Benutzerfeldern aus BASIC
+------------------------------------------------------------------------*/
+
+
+BOOL SwFldMgr::SetFieldValue(const String &rFieldName,
+ const String &rValue)
+{
+ SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ SwUserFieldType* pType = (SwUserFieldType*)pWrtShell->InsertFldType(
+ SwUserFieldType( pSh->GetDoc(), rFieldName ));
+
+ if(pType)
+ pType->SetContent(rValue);
+ return 0 != pType;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Wert Datenbankfeld erfragen
+------------------------------------------------------------------------*/
+
+
+String SwFldMgr::GetDataBaseFieldValue(const String &rDBName, const String &rFieldName, SwWrtShell* pSh)
+{
+ String sFieldName(rFieldName);
+
+ if (rDBName.Len())
+ sFieldName = rDBName;
+ else
+ sFieldName = pSh->GetDBName();
+ sFieldName += DB_DELIM;
+ sFieldName += rFieldName;
+
+ SwFieldList aLst(pWrtShell ? pWrtShell : ::lcl_GetShell());
+
+ aLst.InsertFields(RES_DBFLD, &sFieldName);
+ SwField* pFld = aLst.GetLastField();
+
+ if(!pFld)
+ pFld = aLst.GetNextField();
+
+ if(pFld)
+ return pFld->Expand();
+
+ return aEmptyStr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ist das Datenbankfeld numerisch?
+ Anm: Im Fehlerfall wird TRUE returnt.
+ --------------------------------------------------------------------*/
+
+#ifdef REPLACE_OFADBMGR
+BOOL SwFldMgr::IsDBNumeric(const String& rDBName, const String& rTblQryName,
+ BOOL bIsTable, const String& rFldName)
+{
+ BOOL bNumeric = TRUE;
+ if(!GetDBContext().is() || !xDBContext->hasByName(rDBName))
+ return bNumeric;
+ Any aDBSource = xDBContext->getByName(rDBName);
+ Reference<XDataSource>* pxSource = (Reference<XDataSource>*)aDBSource.getValue();
+ Reference<XConnection> xConnection;
+ try
+ {
+ OUString sDummy;
+ xConnection = (*pxSource)->getConnection(sDummy, sDummy);
+ }
+ catch(...) {}
+ Reference<XColumnsSupplier> xColsSupplier;
+
+ if(bIsTable)
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ DBG_ASSERT(xTbls->hasByName(rTblQryName), "table not available anymore?")
+ try
+ {
+ Any aTable = xTbls->getByName(rTblQryName);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aTable.getValue();
+ xColsSupplier = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+ else
+ {
+ Reference<XQueriesSupplier> xQSupplier = Reference<XQueriesSupplier>(xConnection, UNO_QUERY);
+ if(xQSupplier.is())
+ {
+ Reference<XNameAccess> xQueries = xQSupplier->getQueries();
+ DBG_ASSERT(xQueries->hasByName(rTblQryName), "table not available anymore?")
+ try
+ {
+ Any aQuery = xQueries->getByName(rTblQryName);
+ Reference<XPropertySet> xPropSet = *(Reference<XPropertySet>*)aQuery.getValue();
+ xColsSupplier = Reference<XColumnsSupplier>(xPropSet, UNO_QUERY);
+ }
+ catch(...){}
+ }
+ }
+
+ if(xColsSupplier.is())
+ {
+ Reference <XNameAccess> xCols = xColsSupplier->getColumns();
+ if(xCols.is() && xCols->hasByName(rFldName))
+ {
+ Any aCol = xCols->getByName(rFldName);
+ Reference <XPropertySet> xCol = *(Reference <XPropertySet>*)aCol.getValue();
+ Any aType = xCol->getPropertyValue(C2S("Type"));
+ sal_Int32 eDataType;
+ aType >>= eDataType;
+ switch(eDataType)
+ {
+ case DataType::BIT:
+ case DataType::TINYINT:
+ case DataType::SMALLINT:
+ case DataType::INTEGER:
+ case DataType::BIGINT:
+ case DataType::FLOAT:
+ case DataType::REAL:
+ case DataType::DOUBLE:
+ case DataType::NUMERIC:
+ case DataType::DECIMAL:
+ case DataType::DATE:
+ case DataType::TIME:
+ case DataType::TIMESTAMP:
+ break;
+
+ case DataType::BINARY:
+ case DataType::VARBINARY:
+ case DataType::LONGVARBINARY:
+ case DataType::SQLNULL:
+ case DataType::OTHER:
+ case DataType::OBJECT:
+ case DataType::DISTINCT:
+ case DataType::STRUCT:
+ case DataType::ARRAY:
+ case DataType::BLOB:
+ case DataType::CLOB:
+ case DataType::REF:
+ case DataType::CHAR:
+ case DataType::VARCHAR:
+ case DataType::LONGVARCHAR:
+ default:
+ bNumeric = FALSE;
+ }
+ }
+ }
+ return bNumeric;
+}
+
+#else
+BOOL SwFldMgr::IsDBNumeric(const String& rDBName, USHORT nCol)
+{
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ String sDBName;
+ if (!rDBName.Len())
+ sDBName = pSh->GetDBDesc();
+ else
+ sDBName = rDBName;
+
+ SwNewDBMgr* pDBMgr = pSh->GetNewDBMgr();
+ BOOL bRet = TRUE;
+ if(nCol > 0 && pDBMgr->OpenDB(DBMGR_STD, sDBName, FALSE))
+ {
+ short nType = pDBMgr->GetColumnFormatType(DBMGR_STD, nCol);
+
+ switch (nType)
+ {
+ case dbCurrency:
+ case dbCounter:
+ case dbNumeric:
+ case dbDateTime:
+ case dbDate:
+ case dbTime:
+ case dbBool:
+ case dbDecimal:
+ case dbBigInt:
+ bRet = TRUE;
+ break;
+
+ default:
+ bRet = FALSE;
+ break;
+ }
+ }
+ return bRet;
+}
+
+BOOL SwFldMgr::IsDBNumeric(const String& rDBName, const String& rFldName)
+{
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ SwNewDBMgr* pDBMgr = pSh->GetNewDBMgr();
+
+ String sDBName;
+ if (!rDBName.Len())
+ sDBName = pSh->GetDBDesc();
+ else
+ sDBName = rDBName;
+
+ if( pDBMgr->OpenDB(DBMGR_STD, sDBName, FALSE))
+ {
+ int nCol = pDBMgr->GetColumnPos(DBMGR_STD, rFldName);
+ if (nCol > 0)
+ return IsDBNumeric(rDBName, nCol);
+ }
+ return TRUE;
+}
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: ExpressionFields explizit evaluieren
+ --------------------------------------------------------------------*/
+
+
+void SwFldMgr::EvalExpFlds(SwWrtShell* pSh)
+{
+ if (pSh == NULL)
+ pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+
+ if(pSh)
+ {
+ pSh->StartAllAction();
+ pSh->UpdateExpFlds(TRUE);
+ pSh->EndAllAction();
+ }
+}
+
+
+USHORT SwFldMgr::GetCurrLanguage() const
+{
+ SwWrtShell* pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ if(pSh)
+ {
+ SfxItemSet aSet( pSh->GetAttrPool(), RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE);
+ pSh->GetAttr(aSet);
+ return ((const SvxLanguageItem&)aSet.Get( RES_CHRATR_LANGUAGE ) ).GetLanguage();
+ }
+
+ LanguageType eCurLanguage = GetpApp()->GetAppInternational().GetLanguage();
+
+ return (USHORT)eCurLanguage;
+}
+
+
+void SwFieldType::_GetFldName()
+{
+ static const USHORT coFldCnt = STR_TYPE_END - STR_TYPE_BEGIN;
+
+ static USHORT __READONLY_DATA coFldNms[ coFldCnt ] = {
+ FLD_DATE_STD,
+ FLD_TIME_STD,
+ STR_FILENAMEFLD,
+ STR_DBNAMEFLD,
+ STR_CHAPTERFLD,
+ STR_PAGENUMBERFLD,
+ STR_DOCSTATFLD,
+ STR_AUTHORFLD,
+ STR_SETFLD,
+ STR_GETFLD,
+ STR_FORMELFLD,
+ STR_HIDDENTXTFLD,
+ STR_SETREFFLD,
+ STR_GETREFFLD,
+ STR_DDEFLD,
+ STR_MACROFLD,
+ STR_INPUTFLD,
+ STR_HIDDENPARAFLD,
+ STR_DOCINFOFLD,
+ STR_DBFLD,
+ STR_USERFLD,
+ STR_POSTITFLD,
+ STR_TEMPLNAMEFLD,
+ STR_SEQFLD,
+ STR_DBNEXTSETFLD,
+ STR_DBNUMSETFLD,
+ STR_DBSETNUMBERFLD,
+ STR_CONDTXTFLD,
+ STR_NEXTPAGEFLD,
+ STR_PREVPAGEFLD,
+ STR_EXTUSERFLD,
+ FLD_DATE_FIX,
+ FLD_TIME_FIX,
+ STR_SETINPUTFLD,
+ STR_USRINPUTFLD,
+ STR_SETREFPAGEFLD,
+ STR_GETREFPAGEFLD,
+ STR_INTERNETFLD,
+ STR_JUMPEDITFLD,
+ STR_SCRIPTFLD,
+ STR_AUTHORITY
+ };
+
+ // Infos fuer Felder einfuegen
+ SwFieldType::pFldNames = new SvStringsDtor( (BYTE)coFldCnt, 2 );
+ for( USHORT nIdx = 0; nIdx < coFldCnt; ++nIdx )
+ {
+ String* pTmp = new SW_RESSTR( coFldNms[ nIdx ] );
+ pTmp->EraseAllChars('~');
+ SwFieldType::pFldNames->Insert(pTmp, nIdx );
+ }
+}
+
+
+BOOL SwFldMgr::SetUserSubType(const String& rName, USHORT nType)
+{
+ BOOL bRet = FALSE;
+ SwUserFieldType *pType =
+ (SwUserFieldType *) (pWrtShell ?
+ pWrtShell->GetFldType(RES_USERFLD, rName) :
+ ::lcl_GetShell()->GetFldType(RES_USERFLD, rName));
+
+ if(pType)
+ {
+ pType->SetType(nType);
+ bRet = TRUE;
+ }
+ return bRet;
+}
+
+BOOL SwFldMgr::InsertURL( const String& rName,
+ const String& rVal,
+ const String& rFrame,
+ const SvxMacroItem* pItem)
+{
+ sCurFrame = rFrame;
+ pMacroItem = pItem;
+ BOOL bRet = InsertFld(TYP_INTERNETFLD, 0, rName, rVal, 0);
+ sCurFrame = aEmptyStr;
+ pMacroItem = 0;
+ return bRet;
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwFldMgr::ChooseMacro(const String &rSelMacro)
+{
+ String sSelMacro(rSelMacro);
+ SfxApplication* pSfxApp = SFX_APP();
+
+ if (sSelMacro.GetToken(0) == pSfxApp->GetName())
+ { // Malte arbeitet (faelschlicherweise) in ChooseMacro mit
+ // GetTitle statt GetName, daher diese Konvertierung:
+ sSelMacro.SetToken( 0, ';', Application::GetAppName());
+ }
+ else
+ {
+ SwWrtShell *pSh = pWrtShell ? pWrtShell : ::lcl_GetShell();
+ if (pSh)
+ {
+ SwDocShell* pDocSh = pSh->GetView().GetDocShell();
+
+ if (sSelMacro.GetToken(0) == pDocSh->GetName())
+ { // Malte arbeitet (faelschlicherweise) in ChooseMacro mit
+ // GetTitle statt GetName, daher diese Konvertierung:
+ sSelMacro.SetToken( 0, ';', pDocSh->GetTitle( SFX_TITLE_FILENAME ));
+ }
+ }
+ }
+ SbMethod* pMethod = BasicIDE::ChooseMacro(FALSE, TRUE, sSelMacro);
+ BOOL bRet = FALSE;
+
+ if (pMethod)
+ {
+ SbModule* pModule = pMethod->GetModule();
+ SbxObject* pObject = pModule->GetParent();
+
+ SetMacroModule(pModule);
+
+ ASSERT(pObject->IsA(TYPE(StarBASIC)), "Kein Basic gefunden!");
+
+ String sMacro(pMethod->GetName());
+ sMacro += '.';
+ sMacro += pModule->GetName();
+ sMacro += '.';
+ sMacro += pObject->GetName();
+ sMacro += '.';
+
+ StarBASIC* pLib = (StarBASIC*)pObject;
+ pSfxApp->EnterBasicCall();
+ BOOL bFound = FALSE;
+ BasicManager* pBasicMgr = pSfxApp->GetBasicManager();
+ SfxObjectShell* pDocShell = 0;
+ while ( !bFound && pBasicMgr )
+ {
+ USHORT nLibs = pBasicMgr->GetLibCount();
+ for ( USHORT nLib = 0; nLib < nLibs; nLib++ )
+ {
+ StarBASIC* pL = pBasicMgr->GetLib( nLib );
+ if ( pL == pLib )
+ {
+ bFound = TRUE;
+ break;
+ }
+ }
+ if(!bFound)
+ {
+ if ( pDocShell )
+ pDocShell = SfxObjectShell::GetNext( *pDocShell );
+ else
+ pDocShell = SfxObjectShell::GetFirst();
+ }
+
+ pBasicMgr = ( pDocShell ? pDocShell->GetBasicManager() : 0 );
+ }
+ pSfxApp->LeaveBasicCall();
+ if(pDocShell)
+ sMacro += pDocShell->GetName();
+ else
+ sMacro += pSfxApp->GetName();
+
+
+ SetMacroPath(sMacro);
+ bRet = TRUE;
+ }
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ULONG SwFldMgr::GetDefaultFormat(USHORT nTypeId, BOOL bIsText, SvNumberFormatter* pFormatter, double* pVal)
+{
+ double fValue;
+ short nDefFormat;
+
+ switch (nTypeId)
+ {
+ case TYP_TIMEFLD:
+ case TYP_DATEFLD:
+ {
+ Date aDate;
+ Date* pNullDate = pFormatter->GetNullDate();
+
+ fValue = aDate - *pNullDate;
+
+ Time aTime;
+
+ ULONG nNumFmtTime = (ULONG)aTime.GetSec() + (ULONG)aTime.GetMin() * 60L +
+ (ULONG)aTime.GetHour() * 3600L;
+
+ fValue += (double)nNumFmtTime / 86400.0;
+
+ nDefFormat = (nTypeId == TYP_DATEFLD) ? NUMBERFORMAT_DATE : NUMBERFORMAT_TIME;
+ }
+ break;
+
+ default:
+ if (bIsText)
+ {
+ fValue = 0.0;
+ nDefFormat = NUMBERFORMAT_TEXT;
+ }
+ else
+ {
+ fValue = 0.0;
+ nDefFormat = NUMBERFORMAT_ALL;
+ }
+ break;
+ }
+
+ if (pVal)
+ *pVal = fValue;
+
+ return pFormatter->GetStandardFormat(nDefFormat, GetCurrLanguage());
+}
+#ifdef REPLACE_OFADBMGR
+/* -----------------------------23.06.00 17:32--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Reference<XNameAccess> SwFldMgr::GetDBContext()
+{
+ if(!xDBContext.is())
+ {
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+ }
+ return xDBContext;
+}
+#endif
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.285 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.284 2000/09/07 15:59:23 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.283 2000/09/04 11:43:16 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.282 2000/08/15 19:53:15 jp
+ Bug #76817#: DDE-Field - use the correct format Id's
+
+ Revision 1.281 2000/07/18 12:50:08 os
+ replace ofadbmgr
+
+ Revision 1.280 2000/06/30 08:52:52 os
+ #76541# string assertions removed
+
+ Revision 1.279 2000/06/26 13:36:00 os
+ new DataBase API
+
+ Revision 1.278 2000/05/26 07:21:29 os
+ old SW Basic API Slots removed
+
+ Revision 1.277 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.276 2000/02/11 14:46:35 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.275 1999/10/21 10:50:48 os
+ SwAuthorityFieldType has SwDoc* member
+
+ Revision 1.274 1999/10/11 09:00:11 os
+ AuthorityField(Type):Import/Export interfaces
+
+ Revision 1.273 1999/09/20 09:46:33 os
+ second param at SwAuthorityField
+
+ Revision 1.272 1999/09/15 14:04:02 os
+ AuthorityField(-Type), RES_AUTHORITY
+
+ Revision 1.271 1999/01/12 20:16:08 JP
+ Bug #60431#: Datenbank Numberformate ggfs. ins Doc uebertragen
+
+
+ Rev 1.270 12 Jan 1999 21:16:08 JP
+ Bug #60431#: Datenbank Numberformate ggfs. ins Doc uebertragen
+
+ Rev 1.269 27 Nov 1998 14:52:16 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.268 17 Nov 1998 10:50:38 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.267 04 Nov 1998 12:11:08 OM
+ #58851# Fixe Dateinamenfelder bearbeiten
+
+ Rev 1.266 16 Oct 1998 12:55:46 OM
+ #57970# Zahlenformat Seitenvorlage fuer Statistikfeld
+
+ Rev 1.265 15 Oct 1998 16:02:50 OM
+ #57965# Variablennamen fuer Eingabefeld verwenden
+
+ Rev 1.264 15 Sep 1998 16:01:58 OM
+ #55149# In Dialogen Zahlenformat der Applikation verwenden
+
+ Rev 1.263 10 Aug 1998 16:40:00 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.262 24 Jul 1998 13:57:04 OM
+ #53246# Makros vorselektieren
+
+ Rev 1.261 07 Jul 1998 17:04:58 OM
+ #52283# Ueber alle DB-Feldbefehle navigieren
+
+ Rev 1.260 18 Jun 1998 11:16:42 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.259 20 May 1998 13:24:24 OM
+ Offset fuer DateTimeFields
+
+ Rev 1.258 15 Apr 1998 16:39:34 OM
+ #47244 SubType nich veraendern
+
+ Rev 1.257 26 Mar 1998 17:00:22 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.256 26 Mar 1998 16:43:06 OM
+ Feldbefehl: Seitenanzahl im Html-Mode
+
+ Rev 1.255 06 Mar 1998 15:31:20 OM
+ Neue numerische Datenbankformate
+
+ Rev 1.254 13 Feb 1998 14:14:50 JP
+ UpdateFld: TYP_INETFLD gibt es nicht mehr!
+
+ Rev 1.253 27 Jan 1998 22:43:52 JP
+ GetNumDepend durch GetDepends ersetzt
+
+ Rev 1.252 13 Jan 1998 15:01:48 OM
+ Formula-Field wieder unterstuetzt
+
+ Rev 1.251 12 Jan 1998 17:10:20 OM
+ Formelfelder wieder erlauben
+
+ Rev 1.250 12 Jan 1998 12:42:58 OM
+ Nummernkreise nicht doppelt anlegen
+
+ Rev 1.249 06 Jan 1998 18:12:56 OM
+ Felbefehl-Dlg
+
+ Rev 1.248 19 Dec 1997 18:24:26 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.247 17 Dec 1997 15:23:36 OM
+ #46218# Korrekte Sprache besorgen
+
+ Rev 1.246 16 Dec 1997 17:01:42 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.245 11 Dec 1997 16:58:02 OM
+ Feldumstellung
+
+ Rev 1.244 05 Dec 1997 13:16:38 OM
+ #45750# DDE-Field Delimiter fuer Basic wandeln
+
+ Rev 1.243 28 Nov 1997 19:50:38 MA
+ includes
+
+ Rev 1.242 27 Nov 1997 13:17:18 OM
+ Variablen-TP
+
+ Rev 1.241 25 Nov 1997 12:38:44 OM
+ Funktionen-TP
+
+ Rev 1.240 21 Nov 1997 17:19:44 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.239 18 Nov 1997 14:33:14 OM
+ Sba-Umstellung 372
+
+ Rev 1.238 18 Nov 1997 10:33:12 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.237 14 Nov 1997 11:42:36 OM
+ Aufgeraeumt
+
+ Rev 1.236 30 Oct 1997 14:30:52 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.235 15 Oct 1997 11:57:24 OM
+ Feldumstellung
+
+ Rev 1.234 13 Oct 1997 11:43:16 OM
+ Feldumstellung
+
+ Rev 1.233 09 Oct 1997 16:13:44 OM
+ Feldumstellung
+
+ Rev 1.232 07 Oct 1997 10:51:26 OM
+ Feldumstellung
+
+ Rev 1.231 06 Oct 1997 15:40:44 OM
+ Feldumstellung
+
+ Rev 1.230 02 Oct 1997 15:21:44 OM
+ Feldumstellung
+
+ Rev 1.229 24 Sep 1997 15:18:56 OM
+ Feldumstellung
+
+ Rev 1.228 18 Sep 1997 14:34:02 OM
+ Feldumstellung
+
+ Rev 1.227 02 Sep 1997 09:55:56 OM
+ SDB-Headeranpassung
+
+ Rev 1.226 01 Sep 1997 13:12:40 OS
+ DLL-Umstellung
+
+ Rev 1.225 25 Aug 1997 11:54:20 OS
+ 368-Changes SBA
+
+ Rev 1.224 15 Aug 1997 12:11:24 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.223 09 Aug 1997 13:17:38 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.222 05 Aug 1997 12:38:24 MH
+ chg: header
+
+ Rev 1.221 09 Jul 1997 17:33:24 HJS
+ includes
+
+ Rev 1.220 29 May 1997 16:16:00 OM
+ URL in ScriptDialog eingeben
+
+ Rev 1.219 29 Apr 1997 16:10:22 OM
+ Unsichtbare Benutzerfelder
+
+ Rev 1.218 28 Apr 1997 16:31:04 JP
+ SetFldValue: immer einen FldTypen anlegen.
+
+ Rev 1.217 08 Apr 1997 10:32:42 MA
+ includes
+
+ Rev 1.216 04 Apr 1997 10:32:28 OM
+ Datenbanken nach Gebrauch wieder schliessen
+
+ Rev 1.215 14 Mar 1997 14:07:22 OM
+ #37666# GPF beim Bearbeiten alter 3.x DB-Feldbefehlen behoben
+
+ Rev 1.214 11 Mar 1997 13:15:12 OM
+ Datenbank beim Feldeinfuegen am Dok setzen
+
+ Rev 1.213 26 Feb 1997 02:22:20 OM
+ #37068# Feldbefhel-Dlg GPF gefixt
+
+ Rev 1.212 25 Feb 1997 20:04:10 OM
+ GPF in Feldbefehlen behoben
+
+ Rev 1.211 24 Feb 1997 20:29:30 OM
+ Offset-Fehler behoben
+
+ Rev 1.210 23 Feb 1997 21:14:42 OM
+ Aufgeraeumt
+
+ Rev 1.209 23 Feb 1997 15:05:54 OS
+ SetFieldValue liefert BOOL
+
+ Rev 1.208 22 Feb 1997 21:22:58 OM
+ Aufgeraeumt
+
+ Rev 1.207 22 Feb 1997 16:43:14 OM
+ Basic-Umstellung: OpenColumn
+
+ Rev 1.206 17 Feb 1997 10:39:18 OM
+ Neue Feldbefehle im Webmode
+
+ Rev 1.205 16 Feb 1997 10:48:20 OM
+ DBMGR an Ofa verschoben
+
+ Rev 1.204 13 Feb 1997 17:37:42 OM
+ Neu: javaedit
+
+ Rev 1.203 11 Feb 1997 16:52:04 OM
+ Eingabefeld ueber Basic ohne Dialog einfuegen
+
+ Rev 1.202 09 Feb 1997 16:34:06 OM
+ Variable setzen: html_on/off
+
+ Rev 1.201 07 Feb 1997 17:19:50 OM
+ Web-Mode fuer Feldbefehle-Dlg
+
+ Rev 1.200 07 Feb 1997 11:34:14 OM
+ Web-Mode fuer FeldbefehlDlg
+
+ Rev 1.199 05 Feb 1997 09:35:56 OM
+ Verschiebung in den Bereichen behoben
+
+ Rev 1.198 03 Feb 1997 17:08:58 OM
+ InsertURL aus Feldbefehl-Dlg entfernt
+
+ Rev 1.197 29 Jan 1997 13:14:18 MA
+ unbenutzes entfernt
+
+ Rev 1.196 17 Dec 1996 15:37:46 OM
+ Macrofelder editieren
+
+ Rev 1.195 11 Dec 1996 10:21:04 MA
+ Warnings
+
+ Rev 1.194 26 Nov 1996 20:39:32 JP
+ RefFelder werden jetzt mit&nach den ExpFeldern aktualisiert
+
+ Rev 1.193 13 Nov 1996 15:00:58 JP
+ neuer FeldTyp fuer Scripts (z.B. JavaScript)
+
+ Rev 1.192 11 Nov 1996 09:55:52 MA
+ ResMgr
+
+ Rev 1.191 08 Nov 1996 14:55:58 JP
+ ueberfluessiges Include entfernt
+
+ Rev 1.190 07 Nov 1996 15:46:56 JP
+ Bug #33084#: Referenzen nach einfuegen updaten
+
+ Rev 1.189 05 Nov 1996 22:45:06 JP
+ UpdateCurFld..() entfernt - ueberflussig; UpdateFld: GetRefFld sonderbehandelt
+
+ Rev 1.188 05 Nov 1996 15:32:42 JP
+ Umstellungen fuer neue Referenz-Seite
+
+ Rev 1.187 01 Nov 1996 03:55:46 MH
+ add: includes
+
+ Rev 1.186 24 Oct 1996 13:36:20 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.185 25 Sep 1996 14:11:48 OM
+ Neue Datenbanktrenner
+
+ Rev 1.184 19 Sep 1996 14:32:30 OM
+ Datenbank Basicanbindung
+
+ Rev 1.183 02 Sep 1996 18:43:00 JP
+ INetFeld entfernt
+
+ Rev 1.182 30 Aug 1996 12:45:42 OS
+ UpdateGlosPath kann Blockliste aktualisieren
+
+ Rev 1.181 28 Aug 1996 12:11:14 OS
+ includes
+
+ Rev 1.180 21 Aug 1996 13:08:52 OS
+ Manager gfs. mit wrtshell konstruieren
+
+ Rev 1.179 20 Aug 1996 17:22:18 JP
+ Bug #30489#: Mehrfachselektion bei SetRef-Feldern abklemmen
+
+ Rev 1.178 16 Aug 1996 11:27:56 OM
+ Dokinfo aufgegliedert
+
+ Rev 1.177 15 Aug 1996 09:56:44 AMA
+ Fix: Macros am INetFmt setzen.
+
+ Rev 1.176 12 Aug 1996 10:50:04 AMA
+ Chg: SwFmtINetFmt jetzt mit TargetFrame im CTor.
+
+ Rev 1.175 08 Aug 1996 15:33:34 AMA
+ New: Benutze InsertURL (als Textattribut) an der EditShell
+
+ Rev 1.174 05 Aug 1996 15:18:24 OM
+ Datenbankumstellung
+
+ Rev 1.173 25 Jul 1996 16:41:54 OM
+ Umstellung auf Tabellen
+
+ Rev 1.172 23 Jul 1996 14:29:40 JP
+ PageNext/-Prev: mit Offset; InsertField: nach Left auch wieder ein Right rufen
+
+ Rev 1.171 10 Jul 1996 17:47:56 OM
+ LocalizeDBName in Expfld verschoben
+
+
+*************************************************************************/
+
diff --git a/sw/source/ui/fldui/fldpage.cxx b/sw/source/ui/fldui/fldpage.cxx
new file mode 100644
index 000000000000..9af15462a85d
--- /dev/null
+++ b/sw/source/ui/fldui/fldpage.cxx
@@ -0,0 +1,544 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldpage.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _DBFLD_HXX //autogen
+#include <dbfld.hxx>
+#endif
+#ifndef _FLDDAT_HXX
+#include <flddat.hxx>
+#endif
+#ifndef _FMTFLD_HXX //autogen
+#include <fmtfld.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _FLDEDT_HXX
+#include <fldedt.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _FLDTDLG_HXX
+#include <fldtdlg.hxx>
+#endif
+#ifndef _FLDPAGE_HXX
+#include <fldpage.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldPage::SwFldPage(Window *pParent, const ResId &rId, const SfxItemSet &rAttrSet ) :
+ SfxTabPage (pParent, rId, rAttrSet),
+ nPageId (rId.GetId()),
+ bFldDlgHtmlMode (FALSE),
+ nFldDlgAktGrpSel(0),
+ nTypeSel (LISTBOX_ENTRY_NOTFOUND),
+ nSelectionSel (LISTBOX_ENTRY_NOTFOUND),
+ bFldEdit (FALSE),
+ pCurFld (0),
+ bInsert (TRUE),
+ bRefresh (FALSE)
+{
+// FreeResource();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldPage::~SwFldPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldPage::GetGroup()
+{
+ ASSERT (0, "GetGroup not implemented!");
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldPage::Init()
+{
+ SwDocShell* pDocSh = (SwDocShell*)SfxObjectShell::Current();
+ BOOL bNewMode = (::GetHtmlMode(pDocSh) & HTMLMODE_ON) != 0;
+
+ bFldEdit = GetTabDialog() == 0;
+ pCurFld = aMgr.GetCurFld();
+
+ nFldDlgAktGrpSel = GetGroup();
+
+ if (bNewMode != bFldDlgHtmlMode)
+ {
+ bFldDlgHtmlMode = bNewMode;
+
+ // Bereichslistbox initialisieren
+ if (bFldDlgHtmlMode)
+ {
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ (SwSetExpFieldType*)pSh->InsertFldType(SwSetExpFieldType(pDocSh->GetDoc(),
+ String::CreateFromAscii("HTML_ON"), 1));
+ (SwSetExpFieldType*)pSh->InsertFldType(SwSetExpFieldType(pDocSh->GetDoc(),
+ String::CreateFromAscii("HTML_OFF"), 1));
+ }
+ }
+
+ aMgr.GetCurFld(); // FieldManager neu initialisieren
+ // wichtig fuer Dok-Wechsel (fldtdlg:ReInitTabPage)
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Seite neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldPage::ActivatePage()
+{
+ EnableInsert(bInsert);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Kompletter Reset; neues Feld editieren
+ --------------------------------------------------------------------*/
+
+void SwFldPage::EditNewField()
+{
+ nFldDlgAktGrpSel = 0;
+ nTypeSel = LISTBOX_ENTRY_NOTFOUND;
+ nSelectionSel = LISTBOX_ENTRY_NOTFOUND;
+ bRefresh = TRUE;
+ Reset(*(SfxItemSet*)0);
+ bRefresh = FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feld einfuegen
+ --------------------------------------------------------------------*/
+
+BOOL SwFldPage::InsertFld(USHORT nTypeId, USHORT nSubType, const String& rPar1,
+ const String& rPar2, ULONG nFormatId, sal_Unicode cSeparator)
+{
+ BOOL bRet = FALSE;
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ if (!IsFldEdit()) // Neues Feld einfuegen
+ {
+ bRet = aMgr.InsertFld( nTypeId, nSubType, rPar1, rPar2, nFormatId, 0, cSeparator );
+
+ }
+ else // Feld aendern
+ {
+ String sPar1(rPar1);
+ String sPar2(rPar2);
+ BOOL bDBChanged = FALSE;
+
+ switch( nTypeId )
+ {
+ case TYP_DATEFLD:
+ case TYP_TIMEFLD:
+ nSubType = ((nTypeId == TYP_DATEFLD) ? DATEFLD : TIMEFLD) |
+ ((nSubType == DATE_VAR) ? 0 : FIXEDFLD);
+ break;
+
+ case TYP_DBNAMEFLD:
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBSETNUMBERFLD:
+ {
+ USHORT nPos, nTablePos, nExpPos;
+ String sDBName;
+
+ // DBName aus rPar1 extrahieren. Format: DBName.TableName.ExpStrg
+ if ((nTablePos = rPar1.Search(DB_DELIM)) != STRING_NOTFOUND)
+ sDBName = rPar1.Copy(0, nTablePos++);
+ if ((nExpPos = rPar1.Search(DB_DELIM, nTablePos)) != STRING_NOTFOUND)
+ {
+ sDBName += DB_DELIM;
+ sDBName += rPar1.Copy(nTablePos, nExpPos++ - nTablePos);
+ }
+ if (nExpPos != STRING_NOTFOUND)
+ nPos = nExpPos;
+ else if (nTablePos != STRING_NOTFOUND)
+ nPos = nTablePos;
+ else
+ nPos = 0;
+ sPar1 = rPar1.Copy(nPos);
+
+ ((SwDBNameInfField*)pCurFld)->SetDBName(sDBName);
+ bDBChanged = TRUE;
+ }
+ break;
+
+ case TYP_DBFLD:
+ {
+ String sDBName = rPar1.GetToken(0, DB_DELIM);
+ sDBName += DB_DELIM;
+ sDBName += rPar1.GetToken(1, DB_DELIM);
+ String sColumn = rPar1.GetToken(2, DB_DELIM);
+
+ SwDBFieldType* pOldTyp = (SwDBFieldType*)pCurFld->GetTyp();
+ SwDBFieldType* pTyp = (SwDBFieldType*)pSh->InsertFldType(
+ SwDBFieldType(pSh->GetDoc(), sColumn, sDBName));
+
+ SwClientIter aIter( *pOldTyp );
+
+ for( SwFmtFld* pFmtFld = (SwFmtFld*)aIter.First( TYPE(SwFmtFld) );
+ pFmtFld; pFmtFld = (SwFmtFld*)aIter.Next() )
+ {
+ if( pFmtFld->GetFld() == pCurFld)
+ {
+ pTyp->Add(pFmtFld); // Feld auf neuen Typ umhaengen
+ pCurFld->ChgTyp(pTyp);
+ break;
+ }
+ }
+ bDBChanged = TRUE;
+ }
+ break;
+
+ case TYP_SEQFLD:
+ {
+ SwSetExpFieldType* pTyp = (SwSetExpFieldType*)pCurFld->GetTyp();
+ pTyp->SetOutlineLvl(nSubType & 0xff);
+ pTyp->SetDelimiter((char)((nSubType & 0xff00) >> 8));
+
+ nSubType = GSE_SEQ;
+ }
+ break;
+
+ case TYP_INPUTFLD:
+ {
+ // User- oder SetField ?
+ if (aMgr.GetFldType(RES_USERFLD, sPar1) == 0 &&
+ !(pCurFld->GetSubType() & INP_TXT)) // SETEXPFLD
+ {
+ SwSetExpField* pFld = (SwSetExpField*)pCurFld;
+ pFld->SetPromptText(sPar2);
+ sPar2 = pFld->GetPar2();
+ }
+ }
+ break;
+ }
+
+ pSh->StartAllAction();
+
+ pCurFld->SetSubType(nSubType);
+
+ aMgr.UpdateCurFld( nFormatId, sPar1, sPar2 );
+
+ switch (nTypeId)
+ {
+ case TYP_HIDDENTXTFLD:
+ case TYP_HIDDENPARAFLD:
+ aMgr.EvalExpFlds(pSh);
+ break;
+ }
+
+ if (bDBChanged) // Datenbank geaendert
+ {
+ switch(nTypeId)
+ {
+ case TYP_DBFLD:
+ ((SwDBField*)pCurFld)->ClearInitialized();
+ ((SwDBField*)pCurFld)->InitContent();
+ case TYP_DBNAMEFLD:
+ case TYP_DBNEXTSETFLD:
+ case TYP_DBNUMSETFLD:
+ case TYP_DBSETNUMBERFLD:
+ pCurFld->GetTyp()->UpdateFlds();
+ break;
+ }
+ }
+
+ pSh->SetUndoNoResetModified();
+ pSh->EndAllAction();
+ }
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldPage::SavePos(ListBox* pLst1, ListBox* pLst2, ListBox* pLst3)
+{
+ if (pLst1 && pLst1->GetEntryCount())
+ sLst1 = pLst1->GetSelectEntry();
+ else
+ sLst1.Erase();
+
+ if (pLst2 && pLst2->GetEntryCount())
+ sLst2 = pLst2->GetSelectEntry();
+ else
+ sLst2.Erase();
+
+ if (pLst3 && pLst3->GetEntryCount())
+ sLst3 = pLst3->GetSelectEntry();
+ else
+ sLst3.Erase();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldPage::RestorePos(ListBox* pLst1, ListBox* pLst2, ListBox* pLst3)
+{
+ USHORT nPos = 0;
+
+ if (pLst1 && pLst1->GetEntryCount() && sLst1.Len() && (nPos = pLst1->GetEntryPos(sLst1)) != LISTBOX_ENTRY_NOTFOUND)
+ pLst1->SelectEntryPos(nPos);
+ if (pLst2 && pLst2->GetEntryCount() && sLst1.Len() && (nPos = pLst2->GetEntryPos(sLst1)) != LISTBOX_ENTRY_NOTFOUND)
+ pLst2->SelectEntryPos(nPos);
+ if (pLst3 && pLst3->GetEntryCount() && sLst1.Len() && (nPos = pLst3->GetEntryPos(sLst1)) != LISTBOX_ENTRY_NOTFOUND)
+ pLst3->SelectEntryPos(nPos);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einfuegen von neuen Feldern
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldPage, InsertHdl, Button *, pBtn )
+{
+ SwFldDlg *pDlg = (SwFldDlg*)GetTabDialog();
+
+ if (pDlg)
+ {
+ pDlg->InsertHdl();
+
+ if (pBtn)
+ pBtn->GrabFocus(); // Wegen InputField-Dlg
+ }
+ else
+ {
+ SwFldEditDlg *pEditDlg = (SwFldEditDlg *)GetParent();
+ pEditDlg->InsertHdl();
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: "Einfuegen"-Button Enablen/Disablen
+ --------------------------------------------------------------------*/
+
+void SwFldPage::EnableInsert(BOOL bEnable)
+{
+ SwFldDlg *pDlg = (SwFldDlg*)GetTabDialog();
+
+ if (pDlg)
+ {
+ if (pDlg->GetCurPageId() == nPageId)
+ pDlg->EnableInsert(bEnable);
+ }
+ else
+ {
+ SwFldEditDlg *pEditDlg = (SwFldEditDlg *)GetParent();
+ pEditDlg->EnableInsert(bEnable);
+ }
+
+ bInsert = bEnable;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldPage, NumFormatHdl, ListBox *, pLst )
+{
+ InsertHdl();
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.25 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.24 2000/06/30 08:52:53 os
+ #76541# string assertions removed
+
+ Revision 1.23 2000/05/10 11:55:13 os
+ Basic API removed
+
+ Revision 1.22 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.21 2000/02/11 14:46:39 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.20 1999/01/20 13:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.19 20 Jan 1999 14:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.18 29 Oct 1998 14:08:32 OM
+ #58544# Butzerfeld: richtigen Inhalt anzeigen
+
+ Rev 1.17 15 Oct 1998 16:02:52 OM
+ #57965# Variablennamen fuer Eingabefeld verwenden
+
+ Rev 1.16 18 Jun 1998 11:16:44 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.15 27 Mar 1998 16:26:18 OM
+ #48007# UpdateExpFlds bei Aenderung von HiddenText und HiddenParaField
+
+ Rev 1.14 18 Mar 1998 10:33:56 OM
+ #48197# Focus restaurieren nach InputDlg
+
+ Rev 1.13 06 Mar 1998 14:54:24 OM
+ Nur bei Aenderung Feld aktualisieren
+
+ Rev 1.12 08 Jan 1998 13:36:20 OM
+ Feldbefehl-Traveling
+
+ Rev 1.11 08 Jan 1998 10:19:04 OM
+ Referenzen editieren
+
+ Rev 1.10 06 Jan 1998 18:13:34 OM
+ Felbefehl-Dlg
+
+ Rev 1.9 19 Dec 1997 18:25:00 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.8 16 Dec 1997 17:01:44 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.7 12 Dec 1997 16:10:08 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.6 11 Dec 1997 16:58:50 OM
+ Feldumstellung
+
+ Rev 1.5 09 Dec 1997 17:16:46 OM
+ Kein alter Feldbefehl-Dialog mehr
+
+ Rev 1.4 28 Nov 1997 19:51:32 MA
+ includes
+
+ Rev 1.3 20 Nov 1997 17:02:04 OM
+ Neuer Felddialog
+
+ Rev 1.2 19 Nov 1997 16:30:42 OM
+ Datenbank-TP Drag&Drop
+
+ Rev 1.1 18 Nov 1997 10:34:36 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.0 17 Nov 1997 09:07:00 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/fldpage.hxx b/sw/source/ui/fldui/fldpage.hxx
new file mode 100644
index 000000000000..a2cfc89e6c6d
--- /dev/null
+++ b/sw/source/ui/fldui/fldpage.hxx
@@ -0,0 +1,134 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldpage.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDPAGE_HXX
+#define _SWFLDPAGE_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#include "fldmgr.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldPage : public SfxTabPage
+{
+ USHORT nFldDlgAktGrpSel;
+ String sLst1;
+ String sLst2;
+ String sLst3;
+ USHORT nPageId;
+ BOOL bFldEdit;
+ BOOL bInsert;
+
+ SwFldMgr aMgr;
+ USHORT nTypeSel;
+ USHORT nSelectionSel;
+ BOOL bFldDlgHtmlMode;
+ BOOL bRefresh;
+ SwField *pCurFld;
+
+protected:
+
+ USHORT GetTypeSel() {return nTypeSel;}
+ void SetTypeSel(USHORT nSet) {nTypeSel = nSet;}
+ USHORT GetSelectionSel() {return nSelectionSel;}
+ void SetSelectionSel(USHORT nSet) {nSelectionSel = nSet;}
+ BOOL IsFldDlgHtmlMode() {return bFldDlgHtmlMode;}
+ BOOL IsRefresh() { return bRefresh;}
+ SwField* GetCurField() {return pCurFld;}
+
+ DECL_LINK( InsertHdl, Button *pBtn = 0 );
+ DECL_LINK( NumFormatHdl, ListBox *pBtn = 0 );
+
+ void Init();
+ void SavePos(ListBox* pLst1, ListBox* pLst2 = 0, ListBox* pLst3 = 0);
+ void RestorePos(ListBox* pLst1, ListBox* pLst2 = 0, ListBox* pLst3 = 0);
+ void EnableInsert(BOOL bEnable = TRUE);
+ inline BOOL IsFldEdit() const { return bFldEdit; }
+
+ // Feld einfuegen
+ BOOL InsertFld( USHORT nTypeId,
+ USHORT nSubType,
+ const String& rPar1,
+ const String& rPar2,
+ ULONG nFormatId,
+ sal_Unicode cDelim = ' ');
+
+public:
+ SwFldPage( Window *pParent,
+ const ResId &rId,
+ const SfxItemSet &rAttrSet );
+
+ ~SwFldPage();
+
+ virtual void ActivatePage();
+
+ inline SwFldMgr& GetFldMgr() { return aMgr; }
+ void EditNewField();
+ virtual USHORT GetGroup() = 0;
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx
new file mode 100644
index 000000000000..acc266285ef0
--- /dev/null
+++ b/sw/source/ui/fldui/fldref.cxx
@@ -0,0 +1,908 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldref.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "swtypes.hxx"
+
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _BOOKMRK_HXX //autogen
+#include <bookmrk.hxx>
+#endif
+#ifndef _EXPFLD_HXX //autogen
+#include <expfld.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDREF_HXX
+#include <fldref.hxx>
+#endif
+#ifndef _REFFLD_HXX
+#include <reffld.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+#define REFFLDFLAG 0x4000
+#define REFFLDFLAG_BOOKMARK 0x4800
+#define REFFLDFLAG_FOOTNOTE 0x5000
+#define REFFLDFLAG_ENDNOTE 0x6000
+
+USHORT nFldDlgFmtSel = 0;
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldRefPage::SwFldRefPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage( pParent, SW_RES( TP_FLD_REF ), rCoreSet ),
+
+ aTypeFT (this, SW_RES(FT_REFTYPE)),
+ aTypeLB (this, SW_RES(LB_REFTYPE)),
+ aSelectionFT (this, SW_RES(FT_REFSELECTION)),
+ aSelectionLB (this, SW_RES(LB_REFSELECTION)),
+ aFormatFT (this, SW_RES(FT_REFFORMAT)),
+ aFormatLB (this, SW_RES(LB_REFFORMAT)),
+ aNameFT (this, SW_RES(FT_REFNAME)),
+ aNameED (this, SW_RES(ED_REFNAME)),
+ aValueFT (this, SW_RES(FT_REFVALUE)),
+ aValueED (this, SW_RES(ED_REFVALUE)),
+
+ sBookmarkTxt (SW_RES(STR_REFBOOKMARK)),
+ sFootnoteTxt (SW_RES(STR_REFFOOTNOTE)),
+ sEndnoteTxt (SW_RES(STR_REFENDNOTE))
+{
+ FreeResource();
+
+ aNameED.SetModifyHdl(LINK(this, SwFldRefPage, ModifyHdl));
+
+// SwWrtShell* pSh = (SwWrtShell*)ViewShell::GetCurrShell();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldRefPage::~SwFldRefPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldRefPage::Reset(const SfxItemSet& )
+{
+ if (!IsFldEdit())
+ SavePos(&aTypeLB);
+ SetSelectionSel(LISTBOX_ENTRY_NOTFOUND);
+ SetTypeSel(LISTBOX_ENTRY_NOTFOUND);
+ Init(); // Allgemeine initialisierung
+
+ // TypeListBox initialisieren
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ // Typ-Listbox fuellen
+
+ // mit den Sequence-Typen auffuellen
+ SwView *pView = ::GetActiveView();
+ ASSERT(pView, View fehlt);
+ SwWrtShell &rSh = pView->GetWrtShell();
+ USHORT nPos;
+
+ USHORT nFldTypeCnt = rSh.GetFldTypeCount(RES_SETEXPFLD);
+
+ for (USHORT n = 0; n < nFldTypeCnt; ++n)
+ {
+ SwSetExpFieldType* pType = (SwSetExpFieldType*)rSh.GetFldType(n, RES_SETEXPFLD);
+
+ if ((GSE_SEQ & pType->GetType()) && pType->GetDepends() && rSh.IsUsed(*pType))
+ {
+ nPos = aTypeLB.InsertEntry(pType->GetName());
+ aTypeLB.SetEntryData(nPos, (void*)(REFFLDFLAG | n));
+ }
+ }
+
+ // Textmarken - jetzt immer (wegen Globaldokumenten)
+ nFldTypeCnt = rSh.GetBookmarkCnt(TRUE);
+ nPos = aTypeLB.InsertEntry(sBookmarkTxt);
+ aTypeLB.SetEntryData(nPos, (void*)REFFLDFLAG_BOOKMARK);
+
+ // Fussnoten:
+ if( rSh.HasFtns() )
+ {
+ nPos = aTypeLB.InsertEntry(sFootnoteTxt);
+ aTypeLB.SetEntryData(nPos, (void*)REFFLDFLAG_FOOTNOTE);
+ }
+
+ // Endnoten:
+ if( rSh.HasFtns(TRUE) )
+ {
+ nPos = aTypeLB.InsertEntry(sEndnoteTxt);
+ aTypeLB.SetEntryData(nPos, (void*)REFFLDFLAG_ENDNOTE);
+ }
+
+ // Referenz setzen / einfuegen
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ for (short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ const USHORT nTypeId = GetFldMgr().GetTypeId(i);
+
+ if (!IsFldEdit() || nTypeId != TYP_SETREFFLD)
+ {
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i), i - rRg.nStart);
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+
+ // alte Pos selektieren
+ if (!IsFldEdit())
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetUpdateMode(TRUE);
+ aTypeLB.SetDoubleClickHdl (LINK(this, SwFldRefPage, InsertHdl));
+ aTypeLB.SetSelectHdl (LINK(this, SwFldRefPage, TypeHdl));
+ aSelectionLB.SetSelectHdl (LINK(this, SwFldRefPage, SubTypeHdl));
+ aSelectionLB.SetDoubleClickHdl (LINK(this, SwFldRefPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl (LINK(this, SwFldRefPage, InsertHdl));
+
+ nFldDlgFmtSel = 0;
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(!IsRefresh() && sUserData.GetToken(0, ';').
+ EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ if (IsFldEdit())
+ {
+ aTypeLB.SaveValue();
+ aSelectionLB.SaveValue();
+ aFormatLB.SaveValue();
+ aNameED.SaveValue();
+ aValueED.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldRefPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ if (IsFldEdit())
+ {
+ // Positionen selektieren
+ String sName;
+ USHORT nFlag = 0;
+
+ switch( GetCurField()->GetSubType() )
+ {
+ case REF_BOOKMARK:
+ sName = sBookmarkTxt;
+ nFlag = REFFLDFLAG_BOOKMARK;
+ break;
+
+ case REF_FOOTNOTE:
+ sName = sFootnoteTxt;
+ nFlag = REFFLDFLAG_FOOTNOTE;
+ break;
+
+ case REF_ENDNOTE:
+ sName = sEndnoteTxt;
+ nFlag = REFFLDFLAG_ENDNOTE;
+ break;
+
+ case REF_SETREFATTR:
+ sName = SW_RESSTR(STR_GETREFFLD);
+ nFlag = REF_SETREFATTR;
+ break;
+
+ case REF_SEQUENCEFLD:
+ sName = ((SwGetRefField*)GetCurField())->GetSetRefName();
+ nFlag = REFFLDFLAG;
+ break;
+ }
+
+ if (aTypeLB.GetEntryPos(sName) == LISTBOX_ENTRY_NOTFOUND) // Referenz zu gel”schter Marke
+ {
+ USHORT nPos = aTypeLB.InsertEntry(sName);
+ aTypeLB.SetEntryData(nPos, (void*)nFlag);
+ }
+
+ aTypeLB.SelectEntry(sName);
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+ }
+ else
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+ }
+
+ if (nOld != GetTypeSel())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ // Auswahl-Listbox fuellen
+ UpdateSubType();
+
+ BOOL bName = FALSE;
+ nFldDlgFmtSel = 0;
+
+ if ((!IsFldEdit() || aSelectionLB.GetEntryCount()) && nOld != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_GETREFFLD:
+ if (REFFLDFLAG & (USHORT)(ULONG)aTypeLB.GetEntryData(nOld))
+ // dann bleibt die alte bestehen
+ nFldDlgFmtSel = aFormatLB.GetSelectEntryPos();
+ bName = TRUE;
+ break;
+
+ case TYP_SETREFFLD:
+ bName = TRUE;
+ break;
+
+ case REFFLDFLAG_BOOKMARK:
+ bName = TRUE;
+ // kein break!!!
+ default:
+ if( REFFLDFLAG & nTypeId )
+ {
+ USHORT nOldId = (USHORT)(ULONG)aTypeLB.GetEntryData(nOld);
+ if( nOldId & REFFLDFLAG || nOldId == TYP_GETREFFLD )
+ // dann bleibt die alte bestehen
+ nFldDlgFmtSel = aFormatLB.GetSelectEntryPos();
+ }
+ break;
+ }
+
+ aNameED.Enable(bName);
+ aNameFT.Enable(bName);
+
+ // Format-Listbox fuellen
+ USHORT nSize = FillFormatLB(nTypeId);
+ BOOL bFormat = nSize != 0;
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat);
+
+ SubTypeHdl();
+ ModifyHdl();
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldRefPage, SubTypeHdl, ListBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ switch(nTypeId)
+ {
+ case TYP_GETREFFLD:
+ if (!IsFldEdit() || aSelectionLB.GetSelectEntryCount())
+ {
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ ModifyHdl(&aNameED);
+ }
+ break;
+
+ case TYP_SETREFFLD:
+ aValueED.SetText(::GetActiveView()->GetWrtShell().GetSelTxt());
+ break;
+
+ default:
+ if (!IsFldEdit() || aSelectionLB.GetSelectEntryCount())
+ aNameED.SetText(aSelectionLB.GetSelectEntry());
+ break;
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Typen in SelectionLB erneuern
+ --------------------------------------------------------------------*/
+
+void SwFldRefPage::UpdateSubType()
+{
+ SwWrtShell *pSh = ::GetActiveView()->GetWrtShellPtr();
+ SwGetRefField* pRefFld = (SwGetRefField*)GetCurField();
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ String sOldSel;
+
+ USHORT nSelectionSel = aSelectionLB.GetSelectEntryPos();
+ if (nSelectionSel != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aSelectionLB.GetEntry(nSelectionSel);
+
+ aSelectionLB.SetUpdateMode(FALSE);
+ aSelectionLB.Clear();
+
+ if (IsFldEdit() && !sOldSel.Len())
+ sOldSel = String::CreateFromInt32( pRefFld->GetSeqNo() + 1 );
+
+ if( REFFLDFLAG & nTypeId )
+ {
+ if (nTypeId == REFFLDFLAG_BOOKMARK) // TextMarken!
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle()|WB_SORT);
+ // alle Textmarken besorgen
+ USHORT nCnt = pSh->GetBookmarkCnt(TRUE);
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ const SwBookmark& rBkmk = pSh->GetBookmark( n, TRUE );
+ aSelectionLB.InsertEntry( rBkmk.GetName() );
+ }
+ if (IsFldEdit())
+ sOldSel = pRefFld->GetSetRefName();
+ }
+ else if (nTypeId == REFFLDFLAG_FOOTNOTE)
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle() & ~WB_SORT);
+ SwSeqFldList aArr;
+ USHORT nCnt = pSh->GetSeqFtnList( aArr );
+ USHORT nFnd = 0;
+
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ aSelectionLB.InsertEntry( aArr[ n ]->sDlgEntry );
+ if (IsFldEdit() && pRefFld->GetSeqNo() == aArr[ n ]->nSeqNo)
+ sOldSel = aArr[n]->sDlgEntry;
+ }
+ }
+ else if (nTypeId == REFFLDFLAG_ENDNOTE)
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle() & ~WB_SORT);
+ SwSeqFldList aArr;
+ USHORT nCnt = pSh->GetSeqFtnList( aArr, TRUE );
+ USHORT nFnd = 0;
+
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ aSelectionLB.InsertEntry( aArr[ n ]->sDlgEntry );
+ if (IsFldEdit() && pRefFld->GetSeqNo() == aArr[ n ]->nSeqNo)
+ sOldSel = aArr[n]->sDlgEntry;
+ }
+ }
+ else
+ {
+ aSelectionLB.SetStyle(aSelectionLB.GetStyle()|WB_SORT);
+ // zum Seq-FeldTyp die Felder besorgen:
+
+ SwSetExpFieldType* pType = (SwSetExpFieldType*)pSh->GetFldType(
+ nTypeId & ~REFFLDFLAG, RES_SETEXPFLD );
+ if( pType )
+ {
+ SwSeqFldList aArr;
+ sOldSel.Erase();
+
+ USHORT nCnt = pType->GetSeqFldList( aArr );
+ for( USHORT n = 0; n < nCnt; ++n )
+ {
+ aSelectionLB.InsertEntry( aArr[ n ]->sDlgEntry );
+ if (IsFldEdit() && !sOldSel.Len() &&
+ aArr[ n ]->nSeqNo == pRefFld->GetSeqNo())
+ sOldSel = aArr[ n ]->sDlgEntry;
+ }
+
+ if (IsFldEdit() && !sOldSel.Len())
+ sOldSel = String::CreateFromInt32( pRefFld->GetSeqNo() + 1);
+ }
+ }
+ }
+ else
+ {
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ for (USHORT i = 0; i < rLst.Count(); ++i)
+ aSelectionLB.InsertEntry(*rLst[i]);
+
+ if (IsFldEdit())
+ sOldSel = pRefFld->GetSetRefName();
+ }
+
+ aSelectionLB.SetUpdateMode(TRUE);
+
+ // Enable oder Disable
+ BOOL bEnable = aSelectionLB.GetEntryCount() != 0;
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ if ( bEnable )
+ {
+ aSelectionLB.SelectEntry(sOldSel);
+ if (!aSelectionLB.GetSelectEntryCount() && !IsFldEdit())
+ aSelectionLB.SelectEntryPos(0);
+ }
+
+ if (IsFldEdit() && !aSelectionLB.GetSelectEntryCount()) // Falls die Referenz schon geloescht wurde...
+ aNameED.SetText(sOldSel);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldRefPage::FillFormatLB(USHORT nTypeId)
+{
+ String sOldSel;
+
+ USHORT nFormatSel = aFormatLB.GetSelectEntryPos();
+ if (nFormatSel != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aFormatLB.GetEntry(nFormatSel);
+
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+
+ // Referenz hat weniger als die Beschriftung
+ USHORT nSize;
+ switch (nTypeId)
+ {
+ case TYP_GETREFFLD:
+ case REFFLDFLAG_BOOKMARK:
+ case REFFLDFLAG_FOOTNOTE:
+ case REFFLDFLAG_ENDNOTE:
+ nSize = FMT_REF_PAGE_PGDSC - FMT_REF_BEGIN + 1;
+ break;
+
+ default:
+ nSize = GetFldMgr().GetFormatCount( (REFFLDFLAG & nTypeId)
+ ? TYP_GETREFFLD : nTypeId,
+ FALSE, IsFldDlgHtmlMode() );
+ break;
+ }
+
+ if (REFFLDFLAG & nTypeId)
+ nTypeId = TYP_GETREFFLD;
+
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr( nTypeId, i ));
+ aFormatLB.SetEntryData( nPos, (void*)GetFldMgr().GetFormatId( nTypeId, i ));
+ }
+
+ if (nSize)
+ {
+ if (!IsFldEdit())
+ aFormatLB.SelectEntry(sOldSel);
+ else
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_REF_BEGIN + (USHORT)GetCurField()->GetFormat()));
+
+ if (!aFormatLB.GetSelectEntryCount())
+ {
+ aFormatLB.SelectEntryPos(nFldDlgFmtSel);
+ if (!aFormatLB.GetSelectEntryCount())
+ aFormatLB.SelectEntryPos(0);
+ }
+ }
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldRefPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ String aName(aNameED.GetText());
+ const USHORT nLen = aName.Len();
+
+ BOOL bEnable = TRUE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ if ((nTypeId == TYP_SETREFFLD && !GetFldMgr().CanInsertRefMark(aName)) ||
+ (nLen == 0 && (nTypeId == TYP_GETREFFLD || nTypeId == TYP_SETREFFLD ||
+ nTypeId == REFFLDFLAG_BOOKMARK)))
+ bEnable = FALSE;
+
+ EnableInsert(bEnable);
+
+ aSelectionLB.SelectEntry(aName);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwFldRefPage::FillItemSet(SfxItemSet& )
+{
+ BOOL bPage = FALSE;
+ BOOL bModified = FALSE;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ USHORT nSubType = 0;
+ ULONG nFormat;
+
+ nFormat = aFormatLB.GetSelectEntryPos();
+
+ if(nFormat == LISTBOX_ENTRY_NOTFOUND)
+ nFormat = 0;
+ else
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+
+ String aVal(aValueED.GetText());
+ String aName(aNameED.GetText());
+
+ switch(nTypeId)
+ {
+ case TYP_GETREFFLD:
+ // aName = aSelectionLB.GetSelectEntry();
+ nSubType = REF_SETREFATTR;
+ break;
+
+ case TYP_SETREFFLD:
+ {
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_SETEXPFLD, aName);
+
+ if(!pType) // Nur einfuegen, wenn es den Namen noch nicht gibt
+ {
+ aSelectionLB.InsertEntry(aName);
+ aSelectionLB.Enable();
+ aSelectionFT.Enable();
+ }
+ break;
+ }
+ }
+
+ SwGetRefField* pRefFld = (SwGetRefField*)GetCurField();
+
+ if (REFFLDFLAG & nTypeId)
+ {
+ SwView *pView = ::GetActiveView();
+ ASSERT(pView, View fehlt);
+ SwWrtShell &rSh = pView->GetWrtShell();
+
+ if (nTypeId == REFFLDFLAG_BOOKMARK) // TextMarken!
+ {
+ aName = aNameED.GetText();
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_BOOKMARK;
+ }
+ else if (REFFLDFLAG_FOOTNOTE == nTypeId) // Fussnoten
+ {
+ SwSeqFldList aArr;
+ _SeqFldLstElem aElem( aSelectionLB.GetSelectEntry(), 0 );
+
+ USHORT nPos;
+
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_FOOTNOTE;
+ aName.Erase();
+
+ if (rSh.GetSeqFtnList(aArr) && aArr.SeekEntry(aElem, &nPos))
+ {
+ aVal = String::CreateFromInt32( aArr[nPos]->nSeqNo );
+
+ if (IsFldEdit() && COMPARE_EQUAL != aVal.CompareTo(pRefFld->GetSeqNo()))
+ bModified = TRUE; // Kann bei Feldern passieren, deren Referenz geloescht wurde
+ }
+ else if (IsFldEdit())
+ aVal = String::CreateFromInt32( pRefFld->GetSeqNo() );
+ }
+ else if (REFFLDFLAG_ENDNOTE == nTypeId) // Endnoten
+ {
+ SwSeqFldList aArr;
+ _SeqFldLstElem aElem( aSelectionLB.GetSelectEntry(), 0 );
+
+ USHORT nPos;
+
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_ENDNOTE;
+ aName.Erase();
+
+ if (rSh.GetSeqFtnList(aArr, TRUE) && aArr.SeekEntry(aElem, &nPos))
+ {
+ aVal = String::CreateFromInt32( aArr[nPos]->nSeqNo );
+
+ if (IsFldEdit() && COMPARE_EQUAL != aVal.CompareTo(pRefFld->GetSeqNo()))
+ bModified = TRUE; // Kann bei Feldern passieren, deren Referenz geloescht wurde
+ }
+ else if (IsFldEdit())
+ aVal = String::CreateFromInt32( pRefFld->GetSeqNo() );
+ }
+ else // SeqenceFelder
+ {
+ // zum Seq-FeldTyp die Felder besorgen:
+ SwSetExpFieldType* pType = (SwSetExpFieldType*)rSh.GetFldType(
+ nTypeId & ~REFFLDFLAG, RES_SETEXPFLD );
+ if( pType )
+ {
+ SwSeqFldList aArr;
+ _SeqFldLstElem aElem( aSelectionLB.GetSelectEntry(), 0 );
+
+ USHORT nPos;
+
+ nTypeId = TYP_GETREFFLD;
+ nSubType = REF_SEQUENCEFLD;
+ aName = pType->GetName();
+
+ if (pType->GetSeqFldList(aArr) && aArr.SeekEntry(aElem, &nPos))
+ {
+ aVal = String::CreateFromInt32( aArr[nPos]->nSeqNo );
+
+ if (IsFldEdit() && COMPARE_EQUAL != aVal.CompareTo(pRefFld->GetSeqNo()))
+ bModified = TRUE; // Kann bei Feldern passieren, deren Referenz geloescht wurde
+ }
+ else if (IsFldEdit())
+ aVal = String::CreateFromInt32( pRefFld->GetSeqNo() );
+ }
+ }
+ }
+
+ if (IsFldEdit() && nTypeId == TYP_GETREFFLD)
+ {
+ aVal.Insert('|', 0);
+ aVal.Insert(String::CreateFromInt32(nSubType), 0);
+ }
+
+ if (!IsFldEdit() || bModified ||
+ aNameED.GetSavedValue() != aNameED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ aTypeLB.GetSavedValue() != aTypeLB.GetSelectEntryPos() ||
+ aSelectionLB.GetSavedValue() != aSelectionLB.GetSelectEntryPos() ||
+ aFormatLB.GetSavedValue() != aFormatLB.GetSelectEntryPos())
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat );
+ }
+
+ ModifyHdl(); // Insert ggf enablen/disablen
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* SwFldRefPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldRefPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldRefPage::GetGroup()
+{
+ return GRP_REF;
+}
+
+/* -----------------12.01.99 10:09-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldRefPage::FillUserData()
+{
+ String sData( String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( USER_DATA_VERSION )));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.32 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.31 2000/08/31 10:07:13 os
+ #78315# CreateFromInt32
+
+ Revision 1.30 2000/07/20 08:10:52 jp
+ Unicode-Change-Error: call createfromint32
+
+ Revision 1.29 2000/06/30 08:52:53 os
+ #76541# string assertions removed
+
+ Revision 1.28 2000/06/19 14:06:07 os
+ #72953# call SubTypeHdl more often
+
+ Revision 1.27 2000/05/23 18:36:48 jp
+ Bugfixes for Unicode
+
+ Revision 1.26 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.25 1999/09/28 11:10:35 os
+ #68076# call modify handler if a name is selected
+
+ Revision 1.24 1999/04/06 09:27:54 JP
+ Task #64320#: bei Referenz auf Nummernkreis auch die Nummer als Format anbieten
+
+
+ Rev 1.23 06 Apr 1999 11:27:54 JP
+ Task #64320#: bei Referenz auf Nummernkreis auch die Nummer als Format anbieten
+
+ Rev 1.22 25 Feb 1999 17:24:52 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.21 21 Jan 1999 09:46:22 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.20 20 Jan 1999 14:25:40 MIB
+ Keine leeren Refs auf Textmarken
+
+ Rev 1.19 12 Jan 1999 11:42:54 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.18 10 Aug 1998 16:41:12 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.17 23 Jun 1998 14:43:10 OM
+ Referenzen und Textmarken mit beliebigem Namen einfuegen
+
+ Rev 1.16 22 Jun 1998 17:58:02 OM
+ Vorbereitung fuer eigenstaendige Referenzfelder
+
+ Rev 1.15 18 May 1998 15:21:34 OM
+ #50222 Korrekte Formate fuer Endnoten
+
+ Rev 1.14 27 Mar 1998 16:56:42 OM
+ Nur bei Aenderung Dok modifizieren
+
+ Rev 1.13 23 Feb 1998 07:26:36 OS
+ GetBookmark/ Cnt mit Bookmark-Flag
+
+ Rev 1.12 16 Feb 1998 10:10:22 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.11 30 Jan 1998 15:25:36 OM
+ Endnoten
+
+ Rev 1.10 27 Jan 1998 22:43:52 JP
+ GetNumDepend durch GetDepends ersetzt
+
+ Rev 1.9 09 Jan 1998 16:56:52 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.8 08 Jan 1998 14:58:26 OM
+ Traveling
+
+ Rev 1.7 08 Jan 1998 10:19:04 OM
+ Referenzen editieren
+
+ Rev 1.6 07 Jan 1998 17:17:42 OM
+ Referenzen editieren
+
+ Rev 1.5 19 Dec 1997 18:24:26 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.4 12 Dec 1997 16:10:34 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.3 11 Dec 1997 16:58:50 OM
+ Feldumstellung
+
+ Rev 1.2 08 Dec 1997 12:32:22 MA
+ vorb. Endnoten
+
+ Rev 1.1 24 Nov 1997 14:40:24 OM
+ Referenz-TP
+
+ Rev 1.0 04 Nov 1997 10:07:20 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/fldui/fldref.hxx b/sw/source/ui/fldui/fldref.hxx
new file mode 100644
index 000000000000..9c50d0d29293
--- /dev/null
+++ b/sw/source/ui/fldui/fldref.hxx
@@ -0,0 +1,130 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldref.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDREF_HXX
+#define _SWFLDREF_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#include "fldpage.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldRefPage : public SwFldPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ ListBox aSelectionLB;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aValueFT;
+ Edit aValueED;
+ String sBookmarkTxt;
+ String sFootnoteTxt;
+ String sEndnoteTxt;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( ModifyHdl, Edit *pEd = 0 );
+
+ void UpdateSubType();
+ USHORT FillFormatLB(USHORT nTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldRefPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldRefPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldref.src b/sw/source/ui/fldui/fldref.src
new file mode 100644
index 000000000000..2763f4b209a2
--- /dev/null
+++ b/sw/source/ui/fldui/fldref.src
@@ -0,0 +1,352 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldref.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabPage TP_FLD_REF
+{
+ HelpID = HID_FLD_REF ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Referenzen" ;
+ Text [ ENGLISH ] = "References" ;
+ FixedText FT_REFTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Fälttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï ïîëÿ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨°ÙÄÞ‚ÌŽí—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "äæÚ ÇáÍÞá";
+ Text[ greek ] = "~Ôýðïò ðåäßïõ";
+ Text[ korean ] = "ÇüÅÂ(~T)";
+ Text[ turkish ] = "~Alan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_REFTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ // JP 05.11.96: darf nicht sortiert sein!
+ // Sort = FALSE;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_REFSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ norwegian ] = "Selection" ;
+ Text [ italian ] = "~Selezione" ;
+ Text [ portuguese_brazilian ] = "Seleção" ;
+ Text [ portuguese ] = "~Selecção" ;
+ Text [ finnish ] = "Valinta" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "~Sélection" ;
+ Text [ swedish ] = "~Urval" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ spanish ] = "Se~lección" ;
+ Text [ english_us ] = "S~election" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~E)";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð(~E)";
+ Text[ chinese_traditional ] = "¿ï¨ú(~E)";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "~ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ(~E)";
+ Text[ turkish ] = "S~eçim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_REFSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 113 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_REFFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "F~ormaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ì~ïñöÞ";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_REFFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 56 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ // Sort = TRUE;
+ };
+ FixedText FT_REFNAME
+ {
+ Pos = MAP_APPFONT ( 170 , 78 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "Na~me" ;
+ TEXT [ English ] = "Na~me" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "No~me" ;
+ Text [ spanish ] = "No~mbre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "Naa~m" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~M)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~M)";
+ Text[ chinese_traditional ] = "¦WºÙ(~M)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~M)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_REFNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 90 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_REFVALUE
+ {
+ Pos = MAP_APPFONT ( 170 , 105 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "~Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Værdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Värde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "~Value" ;
+ Disable = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊýÖµ(~V)";
+ Text[ russian ] = "Çíà÷åíèå";
+ Text[ polish ] = "WartoϾ";
+ Text[ japanese ] = "’l(~V)";
+ Text[ chinese_traditional ] = "¼Æ­È(~V)";
+ Text[ arabic ] = "ÇáÞíãÉ";
+ Text[ greek ] = "ÔéìÞ";
+ Text[ korean ] = "°ª(~V)";
+ Text[ turkish ] = "~Deðer";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_REFVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 117 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Left = TRUE ;
+ };
+ String STR_REFBOOKMARK
+ {
+ TEXT = "Textmarken" ;
+ TEXT [ English ] = "Bookmarks" ;
+ Text [ dutch ] = "Tekstmarkeringen" ;
+ Text [ english_us ] = "Bookmarks" ;
+ Text [ italian ] = "Segnalibri di testo" ;
+ Text [ spanish ] = "Marcas de texto" ;
+ Text [ french ] = "Repères de texte" ;
+ Text [ swedish ] = "Bokmärken" ;
+ Text [ danish ] = "Tekstmarkeringer" ;
+ Text [ portuguese ] = "Marcadores de texto" ;
+ Text [ portuguese_brazilian ] = "Textmarken" ;
+ Text[ chinese_simplified ] = "ÊéÇ©";
+ Text[ russian ] = "Çàêëàäêè";
+ Text[ polish ] = "Zak³adki";
+ Text[ japanese ] = "÷½ÄÏ°¸";
+ Text[ chinese_traditional ] = "¤º¤å¼ÐÅÒ";
+ Text[ arabic ] = "ÅÔÇÑÇÊ ãÑÌÚíÉ";
+ Text[ greek ] = "Óåëéäïäåßêôåò";
+ Text[ korean ] = "Ã¥ °¥ÇÇ";
+ Text[ turkish ] = "Metin iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_REFFOOTNOTE
+ {
+ Text = "Fußnoten" ;
+ Text [ English ] = "Footnotes" ;
+ Text [ norwegian ] = "Fotnoter" ;
+ Text [ italian ] = "Note a piè pagina" ;
+ Text [ portuguese_brazilian ] = "Notas de rodapé" ;
+ Text [ portuguese ] = "Notas de rodapé" ;
+ Text [ finnish ] = "Alaviitteet" ;
+ Text [ danish ] = "Fodnoter" ;
+ Text [ french ] = "Notes de bas de page" ;
+ Text [ swedish ] = "Fotnoter" ;
+ Text [ dutch ] = "Voetnoten" ;
+ Text [ spanish ] = "Notas al pie" ;
+ Text [ english_us ] = "Footnotes" ;
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ russian ] = "Ñíîñêè";
+ Text[ polish ] = "Przypisy dolne";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "µù¸}";
+ Text[ arabic ] = "ÍæÇÔí ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåéþóåéò";
+ Text[ korean ] = "°¢ÁÖ";
+ Text[ turkish ] = "Dipnotlar";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_REFENDNOTE
+ {
+ Text = "Endnoten" ;
+ Text [ ENGLISH ] = "endnotes" ;
+ Text [ english_us ] = "Endnotes" ;
+ Text [ portuguese_brazilian ] = "Endnoten" ;
+ Text [ swedish ] = "Slutnoter" ;
+ Text [ danish ] = "Slutnote" ;
+ Text [ italian ] = "Note di chiusura" ;
+ Text [ spanish ] = "Notas finales" ;
+ Text [ french ] = "Notes de fin" ;
+ Text [ dutch ] = "Eindnoten" ;
+ Text [ portuguese ] = "Notas finais" ;
+ Text[ chinese_simplified ] = "βע";
+ Text[ russian ] = "Êîíöåâàÿ ñíîñêà";
+ Text[ polish ] = "Przypisy koñcowe";
+ Text[ japanese ] = "•¶––‹r’";
+ Text[ chinese_traditional ] = "§Àª`";
+ Text[ arabic ] = "ÊÚáíÞÇÊ ÎÊÇãíÉ";
+ Text[ greek ] = "Óçìåéþóåéò ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ";
+ Text[ turkish ] = "Son notlar";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "References" ;
+ Text [ portuguese_brazilian ] = "Referenzen" ;
+ Text [ swedish ] = "Referenser" ;
+ Text [ danish ] = "Referencer" ;
+ Text [ italian ] = "Riferimenti" ;
+ Text [ spanish ] = "Referencias" ;
+ Text [ french ] = "Références" ;
+ Text [ dutch ] = "Verwijzingen" ;
+ Text [ portuguese ] = "Referências" ;
+ Text[ chinese_simplified ] = "˵Ã÷ÎÄ";
+ Text[ russian ] = "Ññûëêè";
+ Text[ polish ] = "Odwo³ania";
+ Text[ japanese ] = "ŽQÆ";
+ Text[ chinese_traditional ] = "°Ñ·Ó¤å";
+ Text[ arabic ] = "ÇáãÑÇÌÚ";
+ Text[ greek ] = "ÁíáöïñÝò";
+ Text[ korean ] = "ÂüÁ¶";
+ Text[ turkish ] = "Referans";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx
new file mode 100644
index 000000000000..1fbf87548f46
--- /dev/null
+++ b/sw/source/ui/fldui/fldtdlg.cxx
@@ -0,0 +1,567 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldtdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FLDWRAP_HXX
+#include <fldwrap.hxx>
+#endif
+#ifndef _FLDDB_HXX
+#include <flddb.hxx>
+#endif
+#ifndef _FLDDINF_HXX
+#include <flddinf.hxx>
+#endif
+#ifndef _FLDVAR_HXX
+#include <fldvar.hxx>
+#endif
+#ifndef _FLDDOK_HXX
+#include <flddok.hxx>
+#endif
+#ifndef _FLDFUNC_HXX
+#include <fldfunc.hxx>
+#endif
+#ifndef _FLDREF_HXX
+#include <fldref.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _FLDTDLG_HXX
+#include <fldtdlg.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+
+
+SFX_IMPL_CHILDWINDOW(SwFldDlgWrapper, FN_INSERT_FIELD)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwChildWinWrapper::SwChildWinWrapper(Window *pParentWindow, USHORT nId) :
+ SfxChildWindow(pParentWindow, nId),
+ pDocSh(0)
+{
+ // Flackern der Buttons vermeiden:
+ aUpdateTimer.SetTimeout(200);
+ aUpdateTimer.SetTimeoutHdl(LINK(this, SwChildWinWrapper, UpdateHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwChildWinWrapper, UpdateHdl, void*, EMPTYARG )
+{
+ GetWindow()->Activate(); // Dialog aktualisieren
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwChildWinWrapper::ReInitDlg(SwDocShell *pDocSh)
+{
+ BOOL bRet = FALSE;
+
+ if (pDocSh != GetOldDocShell())
+ {
+ aUpdateTimer.Stop();
+ bRet = TRUE; // Sofortiges Update
+ }
+ else
+ aUpdateTimer.Start();
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldDlgWrapper::SwFldDlgWrapper( Window* pParent, USHORT nId,
+ SfxBindings* pB,
+ SfxChildWinInfo* pInfo) :
+ SwChildWinWrapper( pParent, nId )
+
+{
+ pWindow = new SwFldDlg( pB, this, pParent );
+ SwFldDlg *pWin = (SwFldDlg*)pWindow;
+ pWin->Start();
+
+ ((SwFldDlg*)pWindow)->Initialize(pInfo);
+ eChildAlignment = SFX_ALIGN_NOALIGNMENT;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxChildWinInfo SwFldDlgWrapper::GetInfo() const
+{
+ SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
+ // ((SfxFloatingWindow*)GetWindow())->FillInfo( aInfo );
+ return aInfo;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwFldDlgWrapper::ReInitDlg(SwDocShell *pDocSh)
+{
+ BOOL bRet;
+
+ if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // Sofort aktualisieren, Dok-Wechsel
+ ((SwFldDlg*)GetWindow())->ReInitDlg();
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlgWrapper::ShowPage(USHORT nPage)
+{
+ ((SwFldDlg*)GetWindow())->ShowPage(nPage ? nPage : TP_FLD_REF);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Traeger des Dialoges
+ --------------------------------------------------------------------*/
+
+
+SwFldDlg::SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent) :
+ SfxTabDialog(pParent, SW_RES(DLG_FLD_INSERT)),
+ pChildWin(pCW)
+{
+ SetStyle(GetStyle()|WB_STDMODELESS);
+ bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
+
+ RemoveResetButton();
+
+ GetOKButton().SetText(String(SW_RES(STR_FLD_INSERT)));
+ GetOKButton().SetHelpId(HID_FIELD_INSERT);
+ GetOKButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+
+ GetCancelButton().SetText(String(SW_RES(STR_FLD_CLOSE)));
+ GetCancelButton().SetHelpId(HID_FIELD_CLOSE);
+ GetCancelButton().SetHelpText(aEmptyStr); // Damit generierter Hilfetext verwendet wird
+
+ FreeResource();
+
+ GetOKButton().SetClickHdl(LINK(this, SwFldDlg, OKHdl));
+
+ AddTabPage(TP_FLD_DOK, SwFldDokPage::Create, 0);
+ AddTabPage(TP_FLD_VAR, SwFldVarPage::Create, 0);
+ AddTabPage(TP_FLD_DOKINF, SwFldDokInfPage::Create, 0);
+
+ if (!bHtmlMode)
+ {
+ AddTabPage(TP_FLD_REF, SwFldRefPage::Create, 0);
+ AddTabPage(TP_FLD_FUNC, SwFldFuncPage::Create, 0);
+ AddTabPage(TP_FLD_DB, SwFldDBPage::Create, 0);
+ }
+ else
+ {
+ RemoveTabPage(TP_FLD_REF);
+ RemoveTabPage(TP_FLD_FUNC);
+ RemoveTabPage(TP_FLD_DB);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwFldDlg::~SwFldDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwFldDlg::Close()
+{
+ SfxViewFrame::Current()->GetDispatcher()->
+ Execute(FN_INSERT_FIELD, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::Initialize(SfxChildWinInfo *pInfo)
+{
+ Point aPos;
+ Size aSize;
+
+ if ( pInfo->aSize.Width() != 0 && pInfo->aSize.Height() != 0 )
+ {
+ aPos = pInfo->aPos;
+ if ( GetStyle() & WB_SIZEABLE )
+ SetSizePixel( pInfo->aSize );
+
+ // Initiale Gr"o\se aus pInfo merken
+ aSize = GetSizePixel();
+
+ // Soll das FloatingWindow eingezoomt werden ?
+ if ( pInfo->nFlags & SFX_CHILDWIN_ZOOMIN )
+ RollUp();
+ }
+ else
+ {
+ // Initiale Gr"o\se aus Resource oder ctor merken
+ aSize = GetSizePixel();
+
+ Size aParentSize = GetParent()->GetOutputSizePixel();
+ aPos.X() += ( aParentSize.Width() - aSize.Width() ) / 2;
+ aPos.Y() += ( aParentSize.Height() - aSize.Height() ) / 2;
+ }
+
+ Point aPoint;
+ Rectangle aRect = GetDesktopRectPixel();
+ aPoint.X() = aRect.Right() - aSize.Width();
+ aPoint.Y() = aRect.Bottom() - aSize.Height();
+
+ aPoint = OutputToScreenPixel( aPoint );
+
+ if ( aPos.X() > aPoint.X() )
+ aPos.X() = aPoint.X() ;
+ if ( aPos.Y() > aPoint.Y() )
+ aPos.Y() = aPoint.Y();
+
+ if ( aPos.X() < 0 ) aPos.X() = 0;
+ if ( aPos.Y() < 0 ) aPos.Y() = 0;
+
+ SetPosPixel( aPos );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+/* switch( nId )
+ {
+ case TP_CHAR_DB:
+// ((SvxCharExtPage&)rPage).DisableControls(DISABLE_CASEMAP);
+ break;
+ }*/
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxItemSet* SwFldDlg::CreateInputItemSet( USHORT nId )
+{
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einfuegen von neuen Feldern anstossen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldDlg, OKHdl, Button *, pBtn )
+{
+ if (GetOKButton().IsEnabled())
+ {
+ SfxTabPage* pPage = GetTabPage(GetCurPageId());
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ GetOKButton().GrabFocus(); // Wegen InputField-Dlg
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::ReInitDlg()
+{
+ SwDocShell* pDocSh = (SwDocShell*)SfxObjectShell::Current();
+ BOOL bNewMode = (::GetHtmlMode(pDocSh) & HTMLMODE_ON) != 0;
+
+ if (bNewMode != bHtmlMode)
+ {
+ SfxViewFrame::Current()->GetDispatcher()->
+ Execute(FN_INSERT_FIELD, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+ Close();
+ }
+
+ const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell();
+ GetOKButton().Enable( !rSh.IsReadOnlyAvailable() ||
+ !rSh.HasReadonlySel() );
+
+ ReInitTabPage(TP_FLD_DOK);
+ ReInitTabPage(TP_FLD_VAR);
+ ReInitTabPage(TP_FLD_DOKINF);
+
+ if (!bHtmlMode)
+ {
+ ReInitTabPage(TP_FLD_REF);
+ ReInitTabPage(TP_FLD_FUNC);
+ ReInitTabPage(TP_FLD_DB);
+ }
+
+ pChildWin->SetOldDocShell(pDocSh);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel TabPage neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::ReInitTabPage(USHORT nPageId)
+{
+ SwFldPage* pPage = (SwFldPage* )GetTabPage(nPageId);
+
+ if (pPage)
+ pPage->EditNewField(); // TabPage neu initialisieren
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Aktivierung einige TabPages neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::Activate()
+{
+ BOOL bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
+
+ const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell();
+ GetOKButton().Enable( !rSh.IsReadOnlyAvailable() ||
+ !rSh.HasReadonlySel() );
+
+ ReInitTabPage(TP_FLD_VAR);
+
+ if (!bHtmlMode)
+ ReInitTabPage(TP_FLD_REF);
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::EnableInsert(BOOL bEnable)
+{
+ if( bEnable )
+ {
+ const SwWrtShell& rSh = ::GetActiveView()->GetWrtShell();
+ if( rSh.IsReadOnlyAvailable() && rSh.HasReadonlySel() )
+ bEnable = FALSE;
+ }
+ GetOKButton().Enable(bEnable);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFldDlg::InsertHdl()
+{
+ GetOKButton().Click();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.26 2000/09/18 16:05:29 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.25 2000/09/07 15:59:24 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.24 2000/02/11 14:45:56 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.23 1999/01/20 13:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.22 20 Jan 1999 14:16:52 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.21 22 Oct 1998 12:20:42 OM
+ #58157# Querverweis einfuegen
+
+ Rev 1.20 21 Oct 1998 16:16:04 OM
+ #58157# Querverweise einfuegen
+
+ Rev 1.19 09 Jul 1998 09:52:58 JP
+ EmptyStr benutzen
+
+ Rev 1.18 31 Mar 1998 13:31:38 OM
+ Korrekt abgleichen
+
+ Rev 1.17 27 Mar 1998 14:14:16 OM
+ ChildWindows im Modified-Hdl updaten
+
+ Rev 1.16 18 Mar 1998 10:33:56 OM
+ #48197# Focus restaurieren nach InputDlg
+
+ Rev 1.15 10 Mar 1998 17:27:12 OM
+ Korrekte Windowbits setzen
+
+ Rev 1.14 03 Mar 1998 13:31:02 OM
+ Im Html-Mode nicht alle TabPages anzeigen
+
+ Rev 1.13 09 Jan 1998 16:57:18 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.12 06 Jan 1998 18:13:36 OM
+ Felbefehl-Dlg
+
+ Rev 1.11 19 Dec 1997 18:25:00 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.10 16 Dec 1997 17:02:46 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.9 12 Dec 1997 16:11:12 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.8 12 Dec 1997 10:49:38 OM
+ ExchangeSupport implementiert
+
+ Rev 1.7 09 Dec 1997 17:16:46 OM
+ Kein alter Feldbefehl-Dialog mehr
+
+ Rev 1.6 21 Nov 1997 17:19:42 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.5 18 Nov 1997 10:33:10 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.4 11 Nov 1997 10:03:40 OM
+ Neuer Feldbefehl-Dialog
+
+ Rev 1.3 04 Nov 1997 10:05:42 OM
+ Neuer Felddialog
+
+ Rev 1.2 30 Oct 1997 16:29:42 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.1 30 Oct 1997 14:30:48 OM
+ Feldbefehl-Umstellung
+
+ Rev 1.0 28 Oct 1997 15:05:38 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
diff --git a/sw/source/ui/fldui/fldtdlg.hrc b/sw/source/ui/fldui/fldtdlg.hrc
new file mode 100644
index 000000000000..524ed5cc3a68
--- /dev/null
+++ b/sw/source/ui/fldui/fldtdlg.hrc
@@ -0,0 +1,189 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldtdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:36 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _FLDTDLG_HRC
+#define _FLDTDLG_HRC
+
+// #include -----------------------------------------------------------------
+
+// #define ------------------------------------------------------------------
+
+#define RC_FLDTDLG_BEGIN 0
+
+// Datenbankfeld-TabPage:
+#define RC_TP_DB_START (RC_FLDTDLG_BEGIN)
+#define FT_DBTYPE (RC_TP_DB_START + 1)
+#define LB_DBTYPE (RC_TP_DB_START + 2)
+#define GB_DBFORMAT (RC_TP_DB_START + 3)
+#define FT_DBSELECTION (RC_TP_DB_START + 4)
+#define TLB_DBLIST (RC_TP_DB_START + 5)
+#define FT_DBCONDITION (RC_TP_DB_START + 6)
+#define FT_DBSETNUMBER (RC_TP_DB_START + 7)
+#define ED_DBCONDITION (RC_TP_DB_START + 8)
+#define ED_DBSETNUMBER (RC_TP_DB_START + 9)
+#define LB_DBFORMAT (RC_TP_DB_START + 10)
+#define LB_DBNUMFORMAT (RC_TP_DB_START + 11)
+#define RB_DBFORMAT (RC_TP_DB_START + 12)
+#define RB_DBOWNFORMAT (RC_TP_DB_START + 13)
+#define RC_TP_DB_END (RC_TP_DB_START + 14)
+
+// Dokumentinfo-TabPage:
+#define RC_TP_DOCINF_START (RC_TP_DB_END)
+#define FT_DOKINFTYPE (RC_TP_DOCINF_START + 1)
+#define TLB_DOKINFTYPE (RC_TP_DOCINF_START + 2)
+#define FT_DOKINFSELECTION (RC_TP_DOCINF_START + 3)
+#define LB_DOKINFSELECTION (RC_TP_DOCINF_START + 4)
+#define FT_DOKINFFORMAT (RC_TP_DOCINF_START + 5)
+#define LB_DOKINFFORMAT (RC_TP_DOCINF_START + 6)
+#define CB_DOKINFFIXEDCONTENT (RC_TP_DOCINF_START + 7)
+#define BMP_DOKINFROOT_OPENED (RC_TP_DOCINF_START + 8)
+#define BMP_DOKINFROOT_CLOSED (RC_TP_DOCINF_START + 9)
+#define STR_DOKINF_INFO (RC_TP_DOCINF_START + 10)
+#define RC_TP_DOCINF_END (RC_TP_DOCINF_START + 11)
+
+// Variablen-TabPage:
+#define RC_TP_VAR_START (RC_TP_DOCINF_END)
+#define FT_VARTYPE (RC_TP_VAR_START + 1)
+#define LB_VARTYPE (RC_TP_VAR_START + 2)
+#define FT_VARSELECTION (RC_TP_VAR_START + 3)
+#define LB_VARSELECTION (RC_TP_VAR_START + 4)
+#define FT_VARNAME (RC_TP_VAR_START + 5)
+#define ED_VARNAME (RC_TP_VAR_START + 6)
+#define FT_VARVALUE (RC_TP_VAR_START + 7)
+#define ED_VARVALUE (RC_TP_VAR_START + 8)
+#define FT_VARFORMAT (RC_TP_VAR_START + 9)
+#define LB_VARNUMFORMAT (RC_TP_VAR_START + 10)
+#define LB_VARFORMAT (RC_TP_VAR_START + 11)
+#define FT_VARCHAPTERHEADER (RC_TP_VAR_START + 12)
+#define FT_VARCHAPTERLEVEL (RC_TP_VAR_START + 13)
+#define LB_VARCHAPTERLEVEL (RC_TP_VAR_START + 14)
+#define CB_VARINVISIBLE (RC_TP_VAR_START + 15)
+#define FT_VARSEPARATOR (RC_TP_VAR_START + 16)
+#define ED_VARSEPARATOR (RC_TP_VAR_START + 17)
+#define TBX_VARNEWDEL (RC_TP_VAR_START + 18)
+#define BT_VARAPPLY (RC_TP_VAR_START + 19)
+#define BT_VARDELETE (RC_TP_VAR_START + 20)
+#define RC_TP_VAR_END (RC_TP_VAR_START + 21)
+
+// Dokument-TabPage:
+#define RC_TP_DOC_START (RC_TP_VAR_END)
+#define FT_DOKTYPE (RC_TP_DOC_START + 1)
+#define LB_DOKTYPE (RC_TP_DOC_START + 2)
+#define FT_DOKSELECTION (RC_TP_DOC_START + 3)
+#define LB_DOKSELECTION (RC_TP_DOC_START + 4)
+#define LB_DOKNUMFORMAT (RC_TP_DOC_START + 5)
+#define LB_DOKFORMAT (RC_TP_DOC_START + 6)
+#define FT_DOKFORMAT (RC_TP_DOC_START + 7)
+#define FT_DOKVALUE (RC_TP_DOC_START + 8)
+#define ED_DOKVALUE (RC_TP_DOC_START + 9)
+#define ED_DOKLEVEL (RC_TP_DOC_START + 10)
+#define ED_DOKDATEOFF (RC_TP_DOC_START + 11)
+#define CB_DOKFIXEDCONTENT (RC_TP_DOC_START + 12)
+#define STR_DOKDATEOFF (RC_TP_DOC_START + 13)
+#define STR_DOKTIMEOFF (RC_TP_DOC_START + 14)
+#define BMP_DOKROOT_OPENED (RC_TP_DOC_START + 15)
+#define BMP_DOKROOT_CLOSED (RC_TP_DOC_START + 16)
+#define RC_TP_DOC_END (RC_TP_DOC_START + 17)
+
+// Funktion-TabPage:
+#define RC_TP_FUNC_START (RC_TP_DOC_END)
+#define FT_FUNCTYPE (RC_TP_FUNC_START + 1)
+#define LB_FUNCTYPE (RC_TP_FUNC_START + 2)
+#define LB_FUNCSELECTION (RC_TP_FUNC_START + 3)
+#define FT_FUNCSELECTION (RC_TP_FUNC_START + 4)
+#define FT_FUNCFORMAT (RC_TP_FUNC_START + 5)
+#define LB_FUNCFORMAT (RC_TP_FUNC_START + 6)
+#define FT_FUNCNAME (RC_TP_FUNC_START + 7)
+#define ED_FUNCNAME (RC_TP_FUNC_START + 8)
+#define FT_FUNCVALUE (RC_TP_FUNC_START + 9)
+#define ED_FUNCVALUE (RC_TP_FUNC_START + 10)
+#define FT_FUNCCOND1 (RC_TP_FUNC_START + 11)
+#define ED_FUNCCOND1 (RC_TP_FUNC_START + 12)
+#define FT_FUNCCOND2 (RC_TP_FUNC_START + 13)
+#define ED_FUNCCOND2 (RC_TP_FUNC_START + 14)
+#define BT_FUNCMACRO (RC_TP_FUNC_START + 15)
+#define RC_TP_FUNC_END (RC_TP_FUNC_START + 16)
+
+// Referenz-TabPage:
+#define RC_TP_REF_START (RC_TP_FUNC_END)
+#define FT_REFTYPE (RC_TP_REF_START + 1)
+#define LB_REFTYPE (RC_TP_REF_START + 2)
+#define FT_REFSELECTION (RC_TP_REF_START + 3)
+#define LB_REFSELECTION (RC_TP_REF_START + 4)
+#define LB_REFFORMAT (RC_TP_REF_START + 5)
+#define FT_REFFORMAT (RC_TP_REF_START + 6)
+#define FT_REFNAME (RC_TP_REF_START + 7)
+#define ED_REFNAME (RC_TP_REF_START + 8)
+#define FT_REFVALUE (RC_TP_REF_START + 9)
+#define ED_REFVALUE (RC_TP_REF_START + 10)
+#define STR_REFBOOKMARK (RC_TP_REF_START + 11)
+#define STR_REFFOOTNOTE (RC_TP_REF_START + 12)
+#define STR_REFENDNOTE (RC_TP_REF_START + 13)
+#define RC_TP_REF_END (RC_TP_REF_START + 14)
+
+#define RC_TP_END (RC_TP_REF_END)
+
+// Strings ------------------------------------------------------------------
+
+#define STR_FLD_INSERT (RC_TP_END + 1)
+#define STR_FLD_CLOSE (RC_TP_END + 2)
+
+#endif
diff --git a/sw/source/ui/fldui/fldtdlg.src b/sw/source/ui/fldui/fldtdlg.src
new file mode 100644
index 000000000000..11858862a80a
--- /dev/null
+++ b/sw/source/ui/fldui/fldtdlg.src
@@ -0,0 +1,306 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldtdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldui.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+TabDialog DLG_FLD_INSERT
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Feldbefehle" ;
+ Text [ ENGLISH ] = "Fields" ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FLD_DOK ;
+ Text = "Dokument" ;
+ Text [ ENGLISH ] = "Document" ;
+ PageResID = TP_FLD_DOK ;
+ Text [ english_us ] = "Document" ;
+ Text [ portuguese_brazilian ] = "Dokument" ;
+ Text [ swedish ] = "Dokument" ;
+ Text [ danish ] = "Dokument" ;
+ Text [ italian ] = "Documento" ;
+ Text [ spanish ] = "Documento" ;
+ Text [ french ] = "Document" ;
+ Text [ dutch ] = "Document" ;
+ Text [ portuguese ] = "Documento" ;
+ Text[ chinese_simplified ] = "Îĵµ";
+ Text[ russian ] = "Äîêóìåíò";
+ Text[ polish ] = "Dokument";
+ Text[ japanese ] = "•¶‘";
+ Text[ chinese_traditional ] = "¤å¥ó";
+ Text[ arabic ] = "ÇáãÓÊäÏ";
+ Text[ greek ] = "¸ããñáöï";
+ Text[ korean ] = "¹®¼­";
+ Text[ turkish ] = "Belge";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_REF ;
+ Text = "Referenzen" ;
+ Text [ ENGLISH ] = "References" ;
+ PageResID = TP_FLD_REF ;
+ Text [ english_us ] = "References" ;
+ Text [ portuguese_brazilian ] = "Referenzen" ;
+ Text [ swedish ] = "Referenser" ;
+ Text [ danish ] = "Referencer" ;
+ Text [ italian ] = "Riferimenti" ;
+ Text [ spanish ] = "Referencias" ;
+ Text [ french ] = "Références" ;
+ Text [ dutch ] = "Verwijzingen" ;
+ Text [ portuguese ] = "Referências" ;
+ Text[ chinese_simplified ] = "ÒýÓÃ";
+ Text[ russian ] = "Ññûëêè";
+ Text[ polish ] = "Odwo³ania";
+ Text[ japanese ] = "ŽQÆ";
+ Text[ chinese_traditional ] = "°Ñ·Ó";
+ Text[ arabic ] = "ãÑÇÌÚ";
+ Text[ greek ] = "ÁíáöïñÝò";
+ Text[ korean ] = "ÂüÁ¶";
+ Text[ turkish ] = "Referanslar";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_FUNC ;
+ Text = "Funktionen" ;
+ Text [ ENGLISH ] = "Functions" ;
+ PageResID = TP_FLD_FUNC ;
+ Text [ english_us ] = "Functions" ;
+ Text [ portuguese_brazilian ] = "Funktionen" ;
+ Text [ swedish ] = "Funktioner" ;
+ Text [ danish ] = "Funktioner" ;
+ Text [ italian ] = "Funzioni" ;
+ Text [ spanish ] = "Funciones" ;
+ Text [ french ] = "Fonctions" ;
+ Text [ dutch ] = "Functies" ;
+ Text [ portuguese ] = "Funções" ;
+ Text[ chinese_simplified ] = "¹¦ÄÜ";
+ Text[ russian ] = "Ôóíêöèè";
+ Text[ polish ] = "Funkcje";
+ Text[ japanese ] = "‹@”\\";
+ Text[ chinese_traditional ] = "¥\\¯à";
+ Text[ arabic ] = "ãåÇã";
+ Text[ greek ] = "Ëåéôïõñãßåò";
+ Text[ korean ] = "±â´É";
+ Text[ turkish ] = "Ýþlevler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_DOKINF ;
+ Text = "Dokumentinfo" ;
+ Text [ ENGLISH ] = "Document information" ;
+ PageResID = TP_FLD_DOKINF ;
+ Text [ english_us ] = "DocInformation" ;
+ Text [ portuguese_brazilian ] = "Dokumentinfo" ;
+ Text [ swedish ] = "Dokumentinfo" ;
+ Text [ danish ] = "Dokumentinfo" ;
+ Text [ italian ] = "Info documento" ;
+ Text [ spanish ] = "Información del documento" ;
+ Text [ french ] = "Info document" ;
+ Text [ dutch ] = "Documentinfo" ;
+ Text [ portuguese ] = "Info. sobre documento" ;
+ Text[ chinese_simplified ] = "ÎĵµÐÅÏ¢";
+ Text[ russian ] = "Ñâåäåíèÿ î äîêóìåíòå";
+ Text[ polish ] = "Informacje o dokumencie";
+ Text[ japanese ] = "ÄÞ·­ÒÝÄ ²ÝÌ«Ò°¼®Ý";
+ Text[ chinese_traditional ] = "¤å¥ó¸ê°T";
+ Text[ arabic ] = "ãÚáæãÇÊ ÇáãÓÊäÏ";
+ Text[ greek ] = "Ðëçñïöïñßåò åããñÜöïõ";
+ Text[ korean ] = "µî·ÏÁ¤º¸";
+ Text[ turkish ] = "Belge bilgileri";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_VAR ;
+ Text = "Variablen" ;
+ Text [ ENGLISH ] = "Variables" ;
+ PageResID = TP_FLD_VAR ;
+ Text [ english_us ] = "Variables" ;
+ Text [ portuguese_brazilian ] = "Variablen" ;
+ Text [ swedish ] = "Variabler" ;
+ Text [ danish ] = "Variabler" ;
+ Text [ italian ] = "Variabili" ;
+ Text [ spanish ] = "Variables" ;
+ Text [ french ] = "Variables" ;
+ Text [ dutch ] = "Variabelen" ;
+ Text [ portuguese ] = "Variáveis" ;
+ Text[ chinese_simplified ] = "±äÁ¿";
+ Text[ russian ] = "Ïåðåìåííûå";
+ Text[ polish ] = "Zmienne";
+ Text[ japanese ] = "•Ï”";
+ Text[ chinese_traditional ] = "Åܶq";
+ Text[ arabic ] = "ãÊÛíÑÇÊ";
+ Text[ greek ] = "ÌåôáâëçôÝò";
+ Text[ korean ] = "º¯¼ö";
+ Text[ turkish ] = "Deðiþkenler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FLD_DB ;
+ Text = "Datenbank" ;
+ Text [ ENGLISH ] = "Database" ;
+ PageResID = TP_FLD_DB ;
+ Text [ english_us ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Datenbank" ;
+ Text [ swedish ] = "Databas" ;
+ Text [ danish ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ french ] = "Base de données" ;
+ Text [ dutch ] = "Database" ;
+ Text [ portuguese ] = "Base de dados" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â";
+ Text[ russian ] = "Áàçà äàííûõ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "¸ê®Æ®w";
+ Text[ arabic ] = "ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ Text[ greek ] = "ÂÜóç äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º";
+ Text[ turkish ] = "Veritabaný";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ String STR_FLD_INSERT
+ {
+ Text = "~Einfügen" ;
+ Text [ ENGLISH ] = "~Insert" ;
+ Text [ norwegian ] = "~Insert" ;
+ Text [ italian ] = "~Inserisci" ;
+ Text [ portuguese_brazilian ] = "~Inserir" ;
+ Text [ portuguese ] = "~Inserir" ;
+ Text [ finnish ] = "~Lisää" ;
+ Text [ danish ] = "~Indsæt" ;
+ Text [ french ] = "~Insérer" ;
+ Text [ swedish ] = "~Infoga" ;
+ Text [ dutch ] = "~Invoegen" ;
+ Text [ spanish ] = "~Insertar" ;
+ Text [ english_us ] = "~Insert" ;
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ russian ] = "Âñòàâêà";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü(~I)";
+ Text[ chinese_traditional ] = "´¡¤J(~I)";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ(~I)";
+ Text[ turkish ] = "~Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_FLD_CLOSE
+ {
+ Text = "~Schließen" ;
+ Text [ ENGLISH ] = "C~lose" ;
+ Text [ english_us ] = "~Close" ;
+ Text [ italian ] = "~Chiudi" ;
+ Text [ spanish ] = "~Cerrar" ;
+ Text [ french ] = "~Fermer" ;
+ Text [ dutch ] = "~Sluiten" ;
+ Text [ swedish ] = "~Stäng" ;
+ Text [ danish ] = "Luk" ;
+ Text [ portuguese_brazilian ] = "~Schließen" ;
+ Text [ portuguese ] = "~Sair" ;
+ Text[ chinese_simplified ] = "¹Ø±Õ(~C)";
+ Text[ russian ] = "Çàêðûòü";
+ Text[ polish ] = "Zamknij";
+ Text[ japanese ] = "•Â‚¶‚é(~C)";
+ Text[ chinese_traditional ] = "Ãö³¬(~C)";
+ Text[ arabic ] = "ÅÛáÇÞ";
+ Text[ greek ] = "Êëåßóéìï";
+ Text[ korean ] = "´Ý±â(~C)";
+ Text[ turkish ] = "~Çýkýþ";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Fields" ;
+ Text [ portuguese_brazilian ] = "Feldbefehle" ;
+ Text [ swedish ] = "Fältkommandon" ;
+ Text [ danish ] = "Felter" ;
+ Text [ italian ] = "Comandi di campo" ;
+ Text [ spanish ] = "Comandos de campo" ;
+ Text [ french ] = "Instructions de champ" ;
+ Text [ dutch ] = "Veldopdracht" ;
+ Text [ portuguese ] = "Campos" ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÖ¸Áî";
+ Text[ russian ] = "Ïîëå";
+ Text[ polish ] = "Pola";
+ Text[ japanese ] = "̨°ÙÄÞ";
+ Text[ chinese_traditional ] = "Äæ¦ì«ü¥O";
+ Text[ arabic ] = "ÍÞæá";
+ Text[ greek ] = "ÅíôïëÝò ðåäßùí";
+ Text[ korean ] = "Çʵå";
+ Text[ turkish ] = "Alan öðeleri";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldui.src b/sw/source/ui/fldui/fldui.src
new file mode 100644
index 000000000000..c91f5cee5473
--- /dev/null
+++ b/sw/source/ui/fldui/fldui.src
@@ -0,0 +1,3383 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define _FLDUI_SRC
+#include "fldui.hrc"
+#include "helpid.h"
+
+/*--------------------------------------------------------------------
+ Beschreibung: Strings fuer die Types
+ --------------------------------------------------------------------*/
+String STR_FLD_EDIT_DLG
+{
+ Text = "Feldbefehl bearbeiten" ;
+ Text [ ENGLISH ] = "Edit Field" ;
+ Text [ norwegian ] = "Edit Field" ;
+ Text [ italian ] = "Modifica comando di campo" ;
+ Text [ portuguese_brazilian ] = "Editar Campo" ;
+ Text [ portuguese ] = "Editar campos" ;
+ Text [ finnish ] = "Muokkaa kenttää" ;
+ Text [ danish ] = "Rediger felt" ;
+ Text [ french ] = "Édition d'une instruction de champ" ;
+ Text [ swedish ] = "Redigera fältkommando" ;
+ Text [ dutch ] = "Veldopdracht bewerken" ;
+ Text [ spanish ] = "Editar campos" ;
+ Text [ english_us ] = "Edit Fields" ;
+ Text[ chinese_simplified ] = "±à¼­×Ö¶ÎÖ¸Áî";
+ Text[ russian ] = "Ïðàâêà ïîëÿ";
+ Text[ polish ] = "Edytuj pole";
+ Text[ japanese ] = "̨°ÙÄÞ‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿èÄæ¦ì«ü¥O";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÍÞá";
+ Text[ greek ] = "Åðåîåñãáóßá åíôïëÞò ðåäßïõ";
+ Text[ korean ] = "ÆÄÀÏ ÆíÁý";
+ Text[ turkish ] = "Alan öðesi düzenle";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Strings fuer die Types
+ --------------------------------------------------------------------*/
+ //
+ // Bereich Dokument
+ //
+String STR_DATEFLD
+{
+ TEXT = "Datum" ;
+ TEXT [ English ] = "Date" ;
+ TEXT [ norwegian ] = "Date" ;
+ TEXT [ italian ] = "Data" ;
+ TEXT [ portuguese_brazilian ] = "Data" ;
+ TEXT [ portuguese ] = "Data" ;
+ TEXT [ finnish ] = "Päiväys" ;
+ TEXT [ danish ] = "Dato" ;
+ TEXT [ french ] = "Date" ;
+ TEXT [ swedish ] = "Datum" ;
+ TEXT [ dutch ] = "Datum" ;
+ TEXT [ spanish ] = "Fecha" ;
+ TEXT [ english_us ] = "Date" ;
+ TEXT[ chinese_simplified ] = "ÈÕÆÚ";
+ TEXT[ russian ] = "Äàòà";
+ TEXT[ polish ] = "Data";
+ TEXT[ japanese ] = "“ú•t";
+ TEXT[ chinese_traditional ] = "¤é´Á";
+ TEXT[ arabic ] = "ÇáÊÇÑíÎ";
+ TEXT[ greek ] = "Çìåñïìçíßá";
+ TEXT[ korean ] = "ÀÏÀÚ";
+ TEXT[ turkish ] = "Tarih";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TIMEFLD
+{
+ TEXT = "Uhrzeit" ;
+ TEXT [ English ] = "Time" ;
+ TEXT [ norwegian ] = "Time" ;
+ TEXT [ italian ] = "Orario" ;
+ TEXT [ portuguese_brazilian ] = "Hora" ;
+ TEXT [ portuguese ] = "Hora" ;
+ TEXT [ finnish ] = "Aika" ;
+ TEXT [ danish ] = "Klokkeslæt" ;
+ TEXT [ french ] = "Heure" ;
+ TEXT [ swedish ] = "Klockslag" ;
+ TEXT [ dutch ] = "Tijd" ;
+ TEXT [ spanish ] = "Hora" ;
+ TEXT [ english_us ] = "Time" ;
+ TEXT[ chinese_simplified ] = "ʱ¼ä";
+ TEXT[ russian ] = "Âðåìÿ";
+ TEXT[ polish ] = "Godzina";
+ TEXT[ japanese ] = "Žž";
+ TEXT[ chinese_traditional ] = "®É¶¡";
+ TEXT[ arabic ] = "ÇáæÞÊ";
+ TEXT[ greek ] = "¿ñá";
+ TEXT[ korean ] = "½Ã°£";
+ TEXT[ turkish ] = "Saat";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FILENAMEFLD
+{
+ TEXT = "Dateiname" ;
+ TEXT [ English ] = "Filename" ;
+ TEXT [ norwegian ] = "Filename" ;
+ TEXT [ italian ] = "Nome file" ;
+ TEXT [ portuguese_brazilian ] = "Nome do Arquivo" ;
+ TEXT [ portuguese ] = "Nome do ficheiro" ;
+ TEXT [ finnish ] = "Tiedostonimi" ;
+ TEXT [ danish ] = "Filnavn" ;
+ TEXT [ french ] = "Nom de fichier" ;
+ TEXT [ swedish ] = "Filnamn" ;
+ TEXT [ dutch ] = "Bestandsnaam" ;
+ TEXT [ spanish ] = "Nombre del archivo" ;
+ TEXT [ english_us ] = "File name" ;
+ TEXT[ chinese_simplified ] = "ÎļþÃû";
+ TEXT[ russian ] = "Èìÿ ôàéëà";
+ TEXT[ polish ] = "Nazwa pliku";
+ TEXT[ japanese ] = "̧²Ù–¼";
+ TEXT[ chinese_traditional ] = "ÀɮצW";
+ TEXT[ arabic ] = "ÇÓã ÇáãáÝ";
+ TEXT[ greek ] = "¼íïìá áñ÷åßïõ";
+ TEXT[ korean ] = "ÆÄÀÏ À̸§";
+ TEXT[ turkish ] = "Dosya adý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBNAMEFLD
+{
+ TEXT = "Datenbankname" ;
+ TEXT [ English ] = "Database name" ;
+ TEXT [ norwegian ] = "Database name" ;
+ TEXT [ italian ] = "Nome database" ;
+ TEXT [ portuguese_brazilian ] = "Nome da base de dados" ;
+ TEXT [ portuguese ] = "Nome da base de dados" ;
+ TEXT [ finnish ] = "Tietokannan nimi" ;
+ TEXT [ danish ] = "Databasenavn" ;
+ TEXT [ french ] = "Nom de la base de données" ;
+ TEXT [ swedish ] = "Databasnamn" ;
+ TEXT [ dutch ] = "Naam database" ;
+ TEXT [ spanish ] = "Nombre de base de datos" ;
+ TEXT [ english_us ] = "Database Name" ;
+ TEXT[ chinese_simplified ] = "Êý¾Ý¿âÃû³Æ";
+ TEXT[ russian ] = "Èìÿ áàçû äàííûõ";
+ TEXT[ polish ] = "Nazwa bazy danych";
+ TEXT[ japanese ] = "ÃÞ°ÀÍÞ°½–¼";
+ TEXT[ chinese_traditional ] = "¸ê®Æ®w¦WºÙ";
+ TEXT[ arabic ] = "ÇÓã ÞÇÚÏÉ ÇáÈíÇäÇÊ";
+ TEXT[ greek ] = "¼íïìá âÜóçò äåäïìÝíùí";
+ TEXT[ korean ] = "µ¥ÀÌÅͺ£À̽º À̸§";
+ TEXT[ turkish ] = "Veritabaný adý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_CHAPTERFLD
+{
+ TEXT = "Kapitel" ;
+ TEXT [ English ] = "Chapter" ;
+ TEXT [ norwegian ] = "Chapter" ;
+ TEXT [ italian ] = "Capitolo" ;
+ TEXT [ portuguese_brazilian ] = "Capítulo" ;
+ TEXT [ portuguese ] = "Capítulo" ;
+ TEXT [ finnish ] = "Luku" ;
+ TEXT [ danish ] = "Kapitel" ;
+ TEXT [ french ] = "Chapitre" ;
+ TEXT [ swedish ] = "Kapitel" ;
+ TEXT [ dutch ] = "Hoofdstuk" ;
+ TEXT [ spanish ] = "Capítulo" ;
+ TEXT [ english_us ] = "Chapter" ;
+ TEXT[ chinese_simplified ] = "ÕÂ";
+ TEXT[ russian ] = "Ãëàâà";
+ TEXT[ polish ] = "Rozdzia³";
+ TEXT[ japanese ] = "Í";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "³¹";
+ TEXT[ arabic ] = "ÇáÝÕá";
+ TEXT[ greek ] = "ÊåöÜëáéï";
+ TEXT[ korean ] = "Àå";
+ TEXT[ turkish ] = "Bölüm";
+};
+String STR_PAGENUMBERFLD
+{
+ TEXT = "Seitennummer" ;
+ TEXT [ English ] = "Page number" ;
+ TEXT [ norwegian ] = "Sidenummer" ;
+ TEXT [ italian ] = "Numero pagina" ;
+ TEXT [ portuguese_brazilian ] = "Número de página" ;
+ TEXT [ portuguese ] = "Número de página" ;
+ TEXT [ finnish ] = "Sivunumero" ;
+ TEXT [ danish ] = "Sidetal" ;
+ TEXT [ french ] = "Numéro de page" ;
+ TEXT [ swedish ] = "Sidnummer" ;
+ TEXT [ dutch ] = "Paginanummer" ;
+ TEXT [ spanish ] = "Número de página" ;
+ TEXT [ english_us ] = "Page numbers" ;
+ TEXT[ chinese_simplified ] = "Ò³Âë";
+ TEXT[ russian ] = "Íîìåð ñòðàíèöû";
+ TEXT[ polish ] = "Numer strony";
+ TEXT[ japanese ] = "Íß°¼Þ”Ô†";
+ TEXT[ chinese_traditional ] = "­¶½X";
+ TEXT[ arabic ] = "ÑÞã ÇáÕÝÍÉ";
+ TEXT[ greek ] = "Áñéèìüò óåëßäáò";
+ TEXT[ korean ] = "ÆäÀÌÁö ¹øÈ£";
+ TEXT[ turkish ] = "Sayfa numarasý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DOCSTATFLD
+{
+ TEXT = "Statistik" ;
+ TEXT [ English ] = "Statistics" ;
+ TEXT [ norwegian ] = "Statistics" ;
+ TEXT [ italian ] = "Statistiche" ;
+ TEXT [ portuguese_brazilian ] = "Estatística" ;
+ TEXT [ portuguese ] = "Estatística" ;
+ TEXT [ finnish ] = "Tilasto" ;
+ TEXT [ danish ] = "Statistik" ;
+ TEXT [ french ] = "Statistique" ;
+ TEXT [ swedish ] = "Statistik" ;
+ TEXT [ dutch ] = "Statistiek" ;
+ TEXT [ spanish ] = "Estadística" ;
+ TEXT [ english_us ] = "Statistics" ;
+ TEXT[ chinese_simplified ] = "ͳ¼Æ";
+ TEXT[ russian ] = "Ñòàòèñòèêà";
+ TEXT[ polish ] = "Statystyka";
+ TEXT[ japanese ] = "“Œv";
+ TEXT[ chinese_traditional ] = "²Î­p";
+ TEXT[ arabic ] = "ÅÍÕÇÆíÇÊ";
+ TEXT[ greek ] = "ÓôáôéóôéêÜ";
+ TEXT[ korean ] = "Åë°è";
+ TEXT[ turkish ] = "Ýstatistik";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_AUTHORFLD
+{
+ TEXT = "Benutzer" ;
+ TEXT [ English ] = "User" ;
+ Text [ portuguese ] = "Autor" ;
+ Text [ english_us ] = "Author" ;
+ Text [ portuguese_brazilian ] = "Autor" ;
+ Text [ swedish ] = "Användare" ;
+ Text [ danish ] = "Bruger" ;
+ Text [ italian ] = "Autore" ;
+ Text [ spanish ] = "Usuario" ;
+ Text [ french ] = "Utilisateur" ;
+ Text [ dutch ] = "Gebruiker" ;
+ Text[ chinese_simplified ] = "ʹÓÃÕß";
+ Text[ russian ] = "Ïîëüçîâàòåëü";
+ Text[ polish ] = "U¿ytkownik";
+ Text[ japanese ] = "Õ°»Þ°";
+ Text[ chinese_traditional ] = "¨Ï¥ÎªÌ";
+ Text[ arabic ] = "ÇáãÓÊÎÏã";
+ Text[ greek ] = "×ñÞóôçò";
+ Text[ korean ] = "ÀÛ¼ºÀÚ";
+ Text[ turkish ] = "Yazan";
+ Text[ language_user1 ] = " ";
+};
+String STR_TEMPLNAMEFLD
+{
+ TEXT = "Dokumentvorlage" ;
+ TEXT [ English ] = "Template" ;
+ TEXT [ norwegian ] = "Mal" ;
+ TEXT [ italian ] = "Modello" ;
+ TEXT [ portuguese_brazilian ] = "Modelo" ;
+ TEXT [ portuguese ] = "Modelo de documento" ;
+ TEXT [ finnish ] = "Mallipohja" ;
+ TEXT [ danish ] = "Dokumentskabelon" ;
+ TEXT [ french ] = "Modèle de document" ;
+ TEXT [ swedish ] = "Dokumentmall" ;
+ TEXT [ dutch ] = "Sjabloon" ;
+ TEXT [ spanish ] = "Plantilla" ;
+ TEXT [ english_us ] = "Templates" ;
+ TEXT[ chinese_simplified ] = "ÎĵµÑùʽ";
+ TEXT[ russian ] = "Øàáëîí äîêóìåíòà";
+ TEXT[ polish ] = "Szablon dokumentu";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝÄ‚ÌÃÝÌßÚ°Ä";
+ TEXT[ chinese_traditional ] = "¤å¥ó¼Ë¦¡";
+ TEXT[ arabic ] = "ÞÇáÈ ãÓÊäÏ";
+ TEXT[ greek ] = "Ðñüôõðï åããñÜöïõ";
+ TEXT[ korean ] = "¹®¼­ ÅÛÇø®Æ®";
+ TEXT[ turkish ] = "Belge þablonu";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_EXTUSERFLD
+{
+ TEXT = "Absender" ;
+ TEXT [ English ] = "Sender" ;
+ TEXT [ norwegian ] = "Sender" ;
+ TEXT [ italian ] = "Mittente" ;
+ TEXT [ portuguese_brazilian ] = "Remetente" ;
+ TEXT [ portuguese ] = "Remetente" ;
+ TEXT [ finnish ] = "Lähettäjä" ;
+ TEXT [ danish ] = "Afsender" ;
+ TEXT [ french ] = "Expéditeur" ;
+ TEXT [ swedish ] = "Avsändare" ;
+ TEXT [ dutch ] = "Afzender" ;
+ TEXT [ spanish ] = "Remitente" ;
+ TEXT [ english_us ] = "Sender" ;
+ TEXT[ chinese_simplified ] = "·¢¼þÈË";
+ TEXT[ russian ] = "Îòïðàâèòåëü";
+ TEXT[ polish ] = "Nadawca";
+ TEXT[ japanese ] = "·ol";
+ TEXT[ chinese_traditional ] = "±H¥óªÌ";
+ TEXT[ arabic ] = "ÇáãÑÓá";
+ TEXT[ greek ] = "ÁðïóôïëÝáò";
+ TEXT[ korean ] = "º¸³½ »ç¶÷";
+ TEXT[ turkish ] = "Gönderen";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich Funktionen
+ //
+String STR_SETFLD
+{
+ TEXT = "Variable setzen" ;
+ TEXT [ English ] = "Set variable" ;
+ TEXT [ norwegian ] = "Set variable" ;
+ TEXT [ italian ] = "Imposta variabile" ;
+ TEXT [ portuguese_brazilian ] = "Definir variável" ;
+ TEXT [ portuguese ] = "Definir variável" ;
+ TEXT [ finnish ] = "Määritä muuttuja" ;
+ TEXT [ danish ] = "Definer variabel" ;
+ TEXT [ french ] = "Définir une variable" ;
+ TEXT [ swedish ] = "Sätt variabel" ;
+ TEXT [ dutch ] = "Variabele definiëren" ;
+ TEXT [ spanish ] = "Establecer variable" ;
+ TEXT [ english_us ] = "Set variable" ;
+ TEXT[ chinese_simplified ] = "É趨±äÁ¿";
+ TEXT[ russian ] = "Óñòàíîâèòü ïåðåìåííûå";
+ TEXT[ polish ] = "OsadŸ zmienn¹";
+ TEXT[ japanese ] = "•Ï”‚ÌÝ’è";
+ TEXT[ chinese_traditional ] = "³]©wÅܶq";
+ TEXT[ arabic ] = "ÊÚííä ãÊÛíÑÉ";
+ TEXT[ greek ] = "Êáèïñéóìüò ìåôáâëçôÞò";
+ TEXT[ korean ] = "º¯¼ö ¼³Á¤";
+ TEXT[ turkish ] = "Deðiþken tanýmla";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_GETFLD
+{
+ TEXT = "Variable anzeigen" ;
+ TEXT [ English ] = "Show variable" ;
+ TEXT [ norwegian ] = "Show variable" ;
+ TEXT [ italian ] = "Mostra variabile" ;
+ TEXT [ portuguese_brazilian ] = "Mostrar variável" ;
+ TEXT [ portuguese ] = "Mostrar variável" ;
+ TEXT [ finnish ] = "Näytä muuttuja" ;
+ TEXT [ danish ] = "Vis variabel" ;
+ TEXT [ french ] = "Afficher variables" ;
+ TEXT [ swedish ] = "Visa variabel" ;
+ TEXT [ dutch ] = "Variabele weergeven" ;
+ TEXT [ spanish ] = "Mostrar variable" ;
+ TEXT [ english_us ] = "Show variable" ;
+ TEXT[ chinese_simplified ] = "ÏÔʾ±äÁ¿";
+ TEXT[ russian ] = "Ïîêàçàòü ïåðåìåííûå";
+ TEXT[ polish ] = "Poka¿ zmienn¹";
+ TEXT[ japanese ] = "•Ï”‚Ì•\\Ž¦";
+ TEXT[ chinese_traditional ] = "Åã¥ÜÅܶq";
+ TEXT[ arabic ] = "ÅÙåÇÑ ãÊÛíÑÉ";
+ TEXT[ greek ] = "ÅìöÜíéóç ìåôáâëçôÞò";
+ TEXT[ korean ] = "º¯¼ö º¸À̱â";
+ TEXT[ turkish ] = "Deðiþken görüntüle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FORMELFLD
+{
+ TEXT = "Formel einfügen" ;
+ TEXT [ English ] = "Insert equation" ;
+ TEXT [ norwegian ] = "Insert equation" ;
+ TEXT [ italian ] = "Inserisci formula" ;
+ TEXT [ portuguese_brazilian ] = "Inserir equação" ;
+ TEXT [ portuguese ] = "Inserir fórmula" ;
+ TEXT [ finnish ] = "Lisää kaava" ;
+ TEXT [ danish ] = "Indsæt formel" ;
+ TEXT [ french ] = "Insérer une formule" ;
+ TEXT [ swedish ] = "Infoga formel" ;
+ TEXT [ dutch ] = "Formule invoegen" ;
+ TEXT [ spanish ] = "Insertar fórmula" ;
+ TEXT [ english_us ] = "Insert Formula" ;
+ TEXT[ chinese_simplified ] = "²åÈ빫ʽ";
+ TEXT[ russian ] = "Âñòàâêà ôîðìóëû";
+ TEXT[ polish ] = "Wstaw formu³ê";
+ TEXT[ japanese ] = "”Ž®‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J¤½¦¡";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ÕíÛÉ";
+ TEXT[ greek ] = "ÅéóáãùãÞ ôýðïõ";
+ TEXT[ korean ] = "¼ö½Ä »ðÀÔ";
+ TEXT[ turkish ] = "Formül ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INPUTFLD
+{
+ TEXT = "Eingabefeld" ;
+ TEXT [ English ] = "Input field" ;
+ TEXT [ norwegian ] = "Input field" ;
+ TEXT [ italian ] = "Campo di digitazione" ;
+ TEXT [ portuguese_brazilian ] = "Campo de entrada" ;
+ TEXT [ portuguese ] = "Campo de entrada" ;
+ TEXT [ finnish ] = "Syöttökenttä" ;
+ TEXT [ danish ] = "Inputfelt" ;
+ TEXT [ french ] = "Champ de saisie" ;
+ TEXT [ swedish ] = "Inmatningsfält" ;
+ TEXT [ dutch ] = "Invoerveld" ;
+ TEXT [ spanish ] = "Campo de entrada" ;
+ TEXT [ english_us ] = "Input field" ;
+ TEXT[ chinese_simplified ] = "ÊäÈëÀ¸";
+ TEXT[ russian ] = "Ïîëå ââîäà";
+ TEXT[ polish ] = "Pole wprowadzania";
+ TEXT[ japanese ] = "“ü—Į́°ÙÄÞ";
+ TEXT[ chinese_traditional ] = "Äæ¦ì";
+ TEXT[ arabic ] = "ÍÞá ÅÏÎÇá";
+ TEXT[ greek ] = "Ðåäßï åéóáãùãÞò";
+ TEXT[ korean ] = "Çʵå ÀÔ·Â";
+ TEXT[ turkish ] = "Giriþ alaný";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETINPUTFLD
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ /* ### ACHTUNG: Neuer Text in Resource? Eingabefeld (Variable) : Eingabefeld (Varibale) */
+ TEXT = "Eingabefeld (Variable)" ;
+ TEXT [ English ] = "Input field (Variable)" ;
+ Text [ english_us ] = "Input field (variable)" ;
+ Text [ italian ] = "Campo di digitazione (variabile)" ;
+ Text [ spanish ] = "Campo de entrada (variable)" ;
+ Text [ french ] = "Champ de saisie (pour variables)" ;
+ Text [ dutch ] = "Invoerveld (variabele)" ;
+ Text [ swedish ] = "Inmatningsfält (variabel)" ;
+ Text [ danish ] = "Inputfelt (variabel)" ;
+ Text [ portuguese ] = "Campo de entrada (variável)" ;
+ Text [ portuguese_brazilian ] = "Eingabefeld (Varibale)" ;
+ Text[ chinese_simplified ] = "ÊäÈë×Ö¶ÎÇø(±äÊý)";
+ Text[ russian ] = "Ïîëå ââîäà (èçìåíÿåìîå)";
+ Text[ polish ] = "Pole wprowadzania (Zmienna)";
+ Text[ japanese ] = "“ü—Į́°ÙÄÞ (•Ï”)";
+ Text[ chinese_traditional ] = "¿é¤JÄæ¦ì(ÅܼÆ)";
+ Text[ arabic ] = "ÍÞá ÅÏÎÇá (ãÊÛíÑÉ)";
+ Text[ greek ] = "Ðåäßï åéóáãùãÞò (ÌåôáâëçôÞ)";
+ Text[ korean ] = "ÇÊµå »ðÀÔ(º¯¼ö)";
+ Text[ turkish ] = "Giriþ alaný (deðiþken)";
+ Text[ language_user1 ] = " ";
+};
+String STR_USRINPUTFLD
+{
+ TEXT = "Eingabefeld (Benutzer)" ;
+ TEXT [ English ] = "Input field (User)" ;
+ Text [ dutch ] = "Invoerveld (gebruiker)" ;
+ Text [ english_us ] = "Input field (user)" ;
+ Text [ italian ] = "Campo di digitazione (utente)" ;
+ Text [ spanish ] = "Campo de entrada (Usuario)" ;
+ Text [ french ] = "Champ de saisie (utilisateur)" ;
+ Text [ swedish ] = "Inmatningsfält (användare)" ;
+ Text [ danish ] = "Inputfelt (bruger)" ;
+ Text [ portuguese ] = "Campo de entrada (utilizador)" ;
+ Text [ portuguese_brazilian ] = "Eingabefeld (Benutzer)" ;
+ Text[ chinese_simplified ] = "ÊäÈëÀ¸(ʹÓÃÕß)";
+ Text[ russian ] = "Ïîëå ââîäà (ïîëüçîâàòåëü)";
+ Text[ polish ] = "Pole wprowadzania (U¿ytkownik)";
+ Text[ japanese ] = "“ü—Į́°ÙÄÞ (Õ°»Þ°)";
+ Text[ chinese_traditional ] = "¿é¤JÄæ¦ì(¨Ï¥ÎªÌ)";
+ Text[ arabic ] = "ÍÞá ÅÏÎÇá (ÇáãÓÊÎÏã)";
+ Text[ greek ] = "Ðåäßï åéóáãùãÞò (×ñÞóôçò)";
+ Text[ korean ] = "Çʵå ÀÔ·Â (»ç¿ëÀÚ)";
+ Text[ turkish ] = "Giriþ alaný (Kullanýcý)";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONDTXTFLD
+{
+ TEXT = "Bedingter Text" ;
+ TEXT [ English ] = "Conditional text" ;
+ TEXT [ norwegian ] = "Conditional text" ;
+ TEXT [ italian ] = "Testo condizionale" ;
+ TEXT [ portuguese_brazilian ] = "Texto condicional" ;
+ TEXT [ portuguese ] = "Texto condicional" ;
+ TEXT [ finnish ] = "Ehdollinen teksti" ;
+ TEXT [ danish ] = "Betinget tekst" ;
+ TEXT [ french ] = "Texte conditionnel" ;
+ TEXT [ swedish ] = "Villkorlig text" ;
+ TEXT [ dutch ] = "Conditionele tekst" ;
+ TEXT [ spanish ] = "Texto condicionado" ;
+ TEXT [ english_us ] = "Conditional text" ;
+ TEXT[ chinese_simplified ] = "ÓÐÌõ¼þµÄÎÄ×Ö";
+ TEXT[ russian ] = "Óñëîâíûé òåêñò";
+ TEXT[ polish ] = "Tekst warunkowy";
+ TEXT[ japanese ] = "ðŒ•t‚«•¶Žš—ñ";
+ TEXT[ chinese_traditional ] = "¦³±ø¥óªº¤å¦r";
+ TEXT[ arabic ] = "äÕ ãÔÑæØ";
+ TEXT[ greek ] = "Êåßìåíï õðü óõíèÞêåò";
+ TEXT[ korean ] = "Á¶°ÇÀû ÅؽºÆ®";
+ TEXT[ turkish ] = "Koþullu metin";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DDEFLD
+{
+ TEXT = "DDE-Feld" ;
+ TEXT [ English ] = "DDE link" ;
+ TEXT [ norwegian ] = "DDE link" ;
+ TEXT [ italian ] = "Campo DDE" ;
+ TEXT [ portuguese_brazilian ] = "Ligação do DDE" ;
+ TEXT [ portuguese ] = "Campo DDE" ;
+ TEXT [ finnish ] = "DDE-linkki" ;
+ TEXT [ danish ] = "DDE-felt" ;
+ TEXT [ french ] = "Champ DDE" ;
+ TEXT [ swedish ] = "DDE-fält" ;
+ TEXT [ dutch ] = "DDE-koppeling" ;
+ TEXT [ spanish ] = "Campo DDE" ;
+ TEXT [ english_us ] = "DDE field" ;
+ TEXT[ chinese_simplified ] = "DDE-ÇøÓò";
+ TEXT[ russian ] = "Ïîëå DDE";
+ TEXT[ polish ] = "Pole DDE";
+ TEXT[ japanese ] = "DDĘ°ÙÄÞ";
+ TEXT[ chinese_traditional ] = "DDE-°Ï°ì";
+ TEXT[ arabic ] = "ÍÞá DDE";
+ TEXT[ greek ] = "Ðåäßï DDE";
+ TEXT[ korean ] = "DDE Çʵå";
+ TEXT[ turkish ] = "DDE alaný";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MACROFLD
+{
+ TEXT = "Makro ausführen" ;
+ TEXT [ English ] = "Execute macro" ;
+ TEXT [ norwegian ] = "Execute macro" ;
+ TEXT [ italian ] = "Esegui macro" ;
+ TEXT [ portuguese_brazilian ] = "Executar macro" ;
+ TEXT [ portuguese ] = "Executar macro" ;
+ TEXT [ finnish ] = "Suorita makro" ;
+ TEXT [ danish ] = "Udfør makro" ;
+ TEXT [ french ] = "Exécuter la macro" ;
+ TEXT [ swedish ] = "Utför makro" ;
+ TEXT [ dutch ] = "Macro uitvoeren" ;
+ TEXT [ spanish ] = "Ejecutar macro" ;
+ TEXT [ english_us ] = "Execute macro" ;
+ TEXT[ chinese_simplified ] = "Ö´Ðкê";
+ TEXT[ russian ] = "Âûïîëíèòü ìàêðîñ";
+ TEXT[ polish ] = "Wykonaj makro";
+ TEXT[ japanese ] = "ϸۂ̎Às";
+ TEXT[ chinese_traditional ] = "°õ¦æ¥¨¶°";
+ TEXT[ arabic ] = "ÊäÝíÐ ãÇßÑæ";
+ TEXT[ greek ] = "ÅêôÝëåóç ìáêñïåíôïëÞò";
+ TEXT[ korean ] = "¸ÅÅ©·Î ½ÇÇà";
+ TEXT[ turkish ] = "Makroyu çalýþtýr";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SEQFLD
+{
+ TEXT = "Nummernkreis" ;
+ TEXT [ English ] = "Sequence" ;
+ TEXT [ norwegian ] = "Sequence" ;
+ TEXT [ italian ] = "Sequenza" ;
+ TEXT [ portuguese_brazilian ] = "Sequência" ;
+ TEXT [ portuguese ] = "Sequência" ;
+ TEXT [ finnish ] = "Sarjanumero" ;
+ TEXT [ danish ] = "Sekvensnummererering" ;
+ TEXT [ french ] = "Séquence" ;
+ TEXT [ swedish ] = "Nummersekvens" ;
+ TEXT [ dutch ] = "Nummerreeks" ;
+ TEXT [ spanish ] = "Secuencia" ;
+ TEXT [ english_us ] = "Number range" ;
+ TEXT[ chinese_simplified ] = "±àºÅ˳Ðò";
+ TEXT[ russian ] = "Ïîðÿäêîâûé íîìåð";
+ TEXT[ polish ] = "Sekwencja";
+ TEXT[ japanese ] = "˜A”Ô";
+ TEXT[ chinese_traditional ] = "½s¸¹¶¶§Ç";
+ TEXT[ arabic ] = "ÊÑÞíã ãÊÓáÓá";
+ TEXT[ greek ] = "Êýêëïò áñéèìþí";
+ TEXT[ korean ] = "¼ýÀÚ ¹üÀ§";
+ TEXT[ turkish ] = "Numara aralýðý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETREFPAGEFLD
+{
+ TEXT = "Seitenvariable setzen" ;
+ TEXT [ English ] = "Set pagevariable" ;
+ Text [ english_us ] = "Set page variable" ;
+ Text [ italian ] = "Imposta variabile di pagina" ;
+ Text [ spanish ] = "Determinar variable de página" ;
+ Text [ french ] = "Variable de la page" ;
+ Text [ dutch ] = "Paginavariabele definiëren" ;
+ Text [ swedish ] = "Sätt sidvariabler" ;
+ Text [ danish ] = "Definer sidevariabel" ;
+ Text [ portuguese ] = "Definir variável de página" ;
+ Text [ portuguese_brazilian ] = "Seitenvariable setzen" ;
+ Text[ chinese_simplified ] = "É趨ҳÃæ±äÊý";
+ Text[ russian ] = "Óñòàíîâèòü ïåðåìåííûå ñòðàíèö";
+ Text[ polish ] = "OsadŸ zmienn¹ strony";
+ Text[ japanese ] = "Íß°¼Þ•Ï”‚ÌÝ’è";
+ Text[ chinese_traditional ] = "³]©w­¶­±ÅܼÆ";
+ Text[ arabic ] = "ÊÚííä ãÊÛíÑÉ ÕÝÍÉ";
+ Text[ greek ] = "Êáèïñéóìüò ìåôáâëçôÞò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö º¯¼ö ¼³Á¤";
+ Text[ turkish ] = "Sayfa deðiþkeni tanýmla";
+ Text[ language_user1 ] = " ";
+};
+String STR_GETREFPAGEFLD
+{
+ TEXT = "Seitenvariable anzeigen" ;
+ TEXT [ English ] = "Show pagevariable" ;
+ Text [ dutch ] = "Paginavariabele weergeven" ;
+ Text [ english_us ] = "Show page variable" ;
+ Text [ italian ] = "Mostra variabile di pagina" ;
+ Text [ spanish ] = "Mostrar variable de página" ;
+ Text [ french ] = "Afficher variable de page" ;
+ Text [ swedish ] = "Visa sidvariabler" ;
+ Text [ danish ] = "Vis sidevariabel" ;
+ Text [ portuguese ] = "Mostrar variável de página" ;
+ Text [ portuguese_brazilian ] = "Seitenvariable anzeigen" ;
+ Text[ chinese_simplified ] = "ÏÔʾҳÃæ±äÊý";
+ Text[ russian ] = "Ïîêàçàòü ïåðåìåííûå ñòðàíèöû";
+ Text[ polish ] = "Poka¿ zmienn¹ strony";
+ Text[ japanese ] = "Íß°¼Þ•Ï”‚Ì•\\Ž¦";
+ Text[ chinese_traditional ] = "Åã¥Ü­¶­±ÅܼÆ";
+ Text[ arabic ] = "ÅÙåÇÑ ãÊÛíÑÉ ÕÝÍÉ";
+ Text[ greek ] = "ÅìöÜíéóç ìåôáâëçôÞò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö º¯¼ö º¸À̱â";
+ Text[ turkish ] = "Sayfa deðiþkenini görüntüle";
+ Text[ language_user1 ] = " ";
+};
+String STR_INTERNETFLD
+{
+ TEXT = "URL laden" ;
+ TEXT [ English ] = "Load URL" ;
+ Text [ english_us ] = "Load URL" ;
+ Text [ italian ] = "Carica URL" ;
+ Text [ spanish ] = "Cargar URL" ;
+ Text [ french ] = "Charger l'URL" ;
+ Text [ dutch ] = "URL laden" ;
+ Text [ swedish ] = "Ladda URL" ;
+ Text [ danish ] = "Indlæs URL" ;
+ Text [ portuguese ] = "Carregar URL" ;
+ Text [ portuguese_brazilian ] = "URL laden" ;
+ Text[ chinese_simplified ] = "×°ÔØ URL";
+ Text[ russian ] = "Çàïóñê URL";
+ Text[ polish ] = "£aduj URL";
+ Text[ japanese ] = "URL‚Ì“Ç‚Ýž‚Ý";
+ Text[ chinese_traditional ] = "¸Ë¸ü URL";
+ Text[ arabic ] = "ÊÍãíá URL";
+ Text[ greek ] = "Öüñôùóç URL";
+ Text[ korean ] = "URL ·Îµå";
+ Text[ turkish ] = "URL'yi yükle";
+ Text[ language_user1 ] = " ";
+};
+String STR_JUMPEDITFLD
+{
+ TEXT = "Plat~zhalter" ;
+ TEXT [ English ] = "Pla~ce marker" ;
+ Text [ english_us ] = "Placeholder" ;
+ Text [ italian ] = "Segnaposto" ;
+ Text [ spanish ] = "~Comodín" ;
+ Text [ french ] = "~Substituant" ;
+ Text [ dutch ] = "~Plaatsaanwijzer" ;
+ Text [ swedish ] = "Plat~shållare" ;
+ Text [ danish ] = "Pladsholdere" ;
+ Text [ portuguese ] = "Marcador de ~posição" ;
+ Text [ portuguese_brazilian ] = "Plat~zhalter" ;
+ Text[ chinese_simplified ] = "ͨÅä·û";
+ Text[ russian ] = "Ìåòêà-çàïîëíèòåëü";
+ Text[ polish ] = "Znak wype³niacz";
+ Text[ japanese ] = "ܲÙÄÞ¶°ÄÞ";
+ Text[ chinese_traditional ] = "³q°t²Å";
+ Text[ arabic ] = "ÚäÕÑ äÇÆÈ";
+ Text[ greek ] = "Óýìâïëá êñÜôçóçò èÝóçò";
+ Text[ korean ] = "°³Ã¼Æ²";
+ Text[ turkish ] = "Genel arama karakteri";
+ Text[ language_user1 ] = " ";
+};
+ //
+ // Bereich Referenzen
+ //
+String STR_SETREFFLD
+{
+ TEXT = "Referenz setzen" ;
+ TEXT [ English ] = "Set reference" ;
+ TEXT [ norwegian ] = "Set reference" ;
+ TEXT [ italian ] = "Imposta riferimento" ;
+ TEXT [ portuguese_brazilian ] = "Definir referência" ;
+ TEXT [ portuguese ] = "Definir referência" ;
+ TEXT [ finnish ] = "Määritä viittaus" ;
+ TEXT [ danish ] = "Definer reference" ;
+ TEXT [ french ] = "Définir une référence" ;
+ TEXT [ swedish ] = "Sätt referens" ;
+ TEXT [ dutch ] = "Verwijzing definiëren" ;
+ TEXT [ spanish ] = "Establecer referencia" ;
+ TEXT [ english_us ] = "Set Reference" ;
+ TEXT[ chinese_simplified ] = "É趨ÒýÓÃ";
+ TEXT[ russian ] = "Óñòàíîâèòü ññûëêó";
+ TEXT[ polish ] = "Okreœl odwo³anie";
+ TEXT[ japanese ] = "ŽQÆÝ’è";
+ TEXT[ chinese_traditional ] = "³]©w°Ñ·Ó";
+ TEXT[ arabic ] = "ÊÚííä ãÑÌÚ";
+ TEXT[ greek ] = "Ïñéóìüò áíáöïñÜò";
+ TEXT[ korean ] = "ÂüÁ¶ ¼³Á¤";
+ TEXT[ turkish ] = "Referans tanýmla";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_GETREFFLD
+{
+ TEXT = "Referenz einfügen" ;
+ TEXT [ English ] = "Insert reference" ;
+ TEXT [ norwegian ] = "Insert reference" ;
+ TEXT [ italian ] = "Inserisci riferimento" ;
+ TEXT [ portuguese_brazilian ] = "Inserir referência" ;
+ TEXT [ portuguese ] = "Inserir referência" ;
+ TEXT [ finnish ] = "Lisää viittaus" ;
+ TEXT [ danish ] = "Indsæt reference" ;
+ TEXT [ french ] = "Insérer une référence" ;
+ TEXT [ swedish ] = "Infoga referens" ;
+ TEXT [ dutch ] = "Verwijzing invoegen" ;
+ TEXT [ spanish ] = "Insertar referencia" ;
+ TEXT [ english_us ] = "Insert Reference" ;
+ TEXT[ chinese_simplified ] = "²åÈëÒýÓÃ";
+ TEXT[ russian ] = "Âñòàâèòü ññûëêó";
+ TEXT[ polish ] = "Wstaw odwo³anie";
+ TEXT[ japanese ] = "ŽQÆ‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J°Ñ·Ó";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ãÑÌÚ";
+ TEXT[ greek ] = "ÅéóáãùãÞ áíáöïñÜò";
+ TEXT[ korean ] = "ÂüÁ¶ »ðÀÔ";
+ TEXT[ turkish ] = "Referans ekle";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich Datenbank
+ //
+String STR_DBFLD
+{
+ TEXT = "Serienbrieffeld" ;
+ TEXT [ English ] = "Print merge field" ;
+ TEXT [ norwegian ] = "Print merge field" ;
+ TEXT [ italian ] = "Campo stampa in serie" ;
+ TEXT [ portuguese_brazilian ] = "Imprimir campo intercalado" ;
+ TEXT [ portuguese ] = "Campo para cartas em série" ;
+ TEXT [ finnish ] = "Yhdistelykenttä" ;
+ TEXT [ danish ] = "Brevfletningsfelt" ;
+ TEXT [ french ] = "Champ de mailing" ;
+ TEXT [ swedish ] = "Fält för kopplad utskrift" ;
+ TEXT [ dutch ] = "Standaardbriefveld" ;
+ TEXT [ spanish ] = "Campo de carta en serie" ;
+ TEXT [ english_us ] = "Form letter field" ;
+ TEXT[ chinese_simplified ] = "ÓʼþºÏ²¢×Ö¶Î";
+ TEXT[ russian ] = "Ïîëå ñëèÿíèÿ";
+ TEXT[ polish ] = "Pole koresp. seryj.";
+ TEXT[ japanese ] = "·‚µž‚݈óų̈°ÙÄÞ";
+ TEXT[ chinese_traditional ] = "¦X¨Ö¦C¦LÄæ¦ì";
+ TEXT[ arabic ] = "ÍÞá ÎØÇÈ ãÓáÓá";
+ TEXT[ greek ] = "Ðåäßï ïìáäéêÞò åðéóôïëÞò";
+ TEXT[ korean ] = "ÆíÁö Çʵå·Î ºÎÅÍ";
+ TEXT[ turkish ] = "Standart mektup";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBNEXTSETFLD
+{
+ TEXT = "Nächster Datensatz" ;
+ TEXT [ English ] = "Next Set" ;
+ TEXT [ norwegian ] = "Next Set" ;
+ TEXT [ italian ] = "Record dati successivo" ;
+ TEXT [ portuguese_brazilian ] = "Definir próximo" ;
+ TEXT [ portuguese ] = "Registo seguinte" ;
+ TEXT [ finnish ] = "Seuraava joukko" ;
+ TEXT [ danish ] = "Næste datapost" ;
+ TEXT [ french ] = "Enregistrement suivant" ;
+ TEXT [ swedish ] = "Nästa datapost" ;
+ TEXT [ dutch ] = "Volgende record" ;
+ TEXT [ spanish ] = "Registro siguiente" ;
+ TEXT [ english_us ] = "Next record" ;
+ TEXT[ chinese_simplified ] = "ÏÂÒ»¸öÊý¾ÝÌõÄ¿";
+ TEXT[ russian ] = "Ñëåäóþùàÿ çàïèñü";
+ TEXT[ polish ] = "Nastêpny rekord";
+ TEXT[ japanese ] = "ŽŸ‚ÌÚº°ÄÞ";
+ TEXT[ chinese_traditional ] = "¤U¤@­Ó¸ê®Æ¶µ¥Ø";
+ TEXT[ arabic ] = "ÇáÓÌá ÇáÊÇáí";
+ TEXT[ greek ] = "Åðüìåíç åããñáöÞ";
+ TEXT[ korean ] = "´ÙÀ½ ·¹ÄÚµå";
+ TEXT[ turkish ] = "Sonraki veri kümesi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBNUMSETFLD
+{
+ TEXT = "Beliebiger Datensatz" ;
+ TEXT [ English ] = "Random Set" ;
+ TEXT [ norwegian ] = "Random Set" ;
+ TEXT [ italian ] = "Qualsiasi record di dati" ;
+ TEXT [ portuguese_brazilian ] = "Definir aleatoriamente" ;
+ TEXT [ portuguese ] = "Registo aleatório" ;
+ TEXT [ finnish ] = "Satunnainen joukko" ;
+ TEXT [ danish ] = "Vilkårlig datapost" ;
+ TEXT [ french ] = "Enregistrement aléatoire" ;
+ TEXT [ swedish ] = "Slumpvis datapost" ;
+ TEXT [ dutch ] = "Willekeurige record" ;
+ TEXT [ spanish ] = "Cualquier registro" ;
+ TEXT [ english_us ] = "Any record" ;
+ TEXT[ chinese_simplified ] = "ÈκÎÒ»¸öÊý¾ÝÌõÄ¿";
+ TEXT[ russian ] = "Ëþáàÿ çàïèñü";
+ TEXT[ polish ] = "Dowolny rekord";
+ TEXT[ japanese ] = "”CˆÓ‚ÌÚº°ÄÞ";
+ TEXT[ chinese_traditional ] = "¥ô¦ó¤@­Ó¸ê®Æ¶µ¥Ø";
+ TEXT[ arabic ] = "Ãí ÓÌá";
+ TEXT[ greek ] = "ÏðïéáäÞðïôå åããñáöÞ";
+ TEXT[ korean ] = "ÀÓÀÇÀÇ ·¹ÄÚµå";
+ TEXT[ turkish ] = "Herhangi bir veri kümesi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DBSETNUMBERFLD
+{
+ TEXT = "Datensatznummer" ;
+ TEXT [ English ] = "Setnumber" ;
+ TEXT [ norwegian ] = "Setnumber" ;
+ TEXT [ italian ] = "Numero record dati" ;
+ TEXT [ portuguese_brazilian ] = "Definir número" ;
+ TEXT [ portuguese ] = "Número do registo" ;
+ TEXT [ finnish ] = "Joukon numero" ;
+ TEXT [ danish ] = "Datapostnummer" ;
+ TEXT [ french ] = "Numéro d'enregistrement" ;
+ TEXT [ swedish ] = "Datapostnummer" ;
+ TEXT [ dutch ] = "Record-nummer" ;
+ TEXT [ spanish ] = "Número de registro" ;
+ TEXT [ english_us ] = "Record number" ;
+ TEXT[ chinese_simplified ] = "Êý¾ÝÌõÄ¿ºÅÂë";
+ TEXT[ russian ] = "Íîìåð çàïèñè";
+ TEXT[ polish ] = "Numer rekordu";
+ TEXT[ japanese ] = "Úº°ÄÞ”Ô†";
+ TEXT[ chinese_traditional ] = "¸ê®Æ¶µ¥Ø¸¹½X";
+ TEXT[ arabic ] = "ÑÞã ÇáÓÌá";
+ TEXT[ greek ] = "Áñéèìüò åããñáöÞò";
+ TEXT[ korean ] = "·¹ÄÚµå ¹øÈ£";
+ TEXT[ turkish ] = "Veri kümesi numarasý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_PREVPAGEFLD
+{
+ TEXT = "Vorherige Seite" ;
+ TEXT [ English ] = "Prev Page" ;
+ TEXT [ norwegian ] = "Prev Page" ;
+ TEXT [ italian ] = "Pagina precedente" ;
+ TEXT [ portuguese_brazilian ] = "Examinar Página" ;
+ TEXT [ portuguese ] = "Página anterior" ;
+ TEXT [ finnish ] = "Edellinen sivu" ;
+ TEXT [ danish ] = "Forrige side" ;
+ TEXT [ french ] = "Page précédente" ;
+ TEXT [ swedish ] = "Föregående sida" ;
+ TEXT [ dutch ] = "Vorige pagina" ;
+ TEXT [ spanish ] = "Página anterior" ;
+ TEXT [ english_us ] = "Previous page" ;
+ TEXT[ chinese_simplified ] = "ÉÏÒ»Ò³";
+ TEXT[ russian ] = "Ïðåäûäóùàÿ ñòðàíèöà";
+ TEXT[ polish ] = "Poprzednia strona";
+ TEXT[ japanese ] = "‘O‚ÌÍß°¼Þ";
+ TEXT[ chinese_traditional ] = "¤W¤@­¶";
+ TEXT[ arabic ] = "ÇáÕÝÍÉ ÇáÓÇÈÞÉ";
+ TEXT[ greek ] = "Ðñïçãïýìåíç óåëßäá";
+ TEXT[ korean ] = "ÀÌÀü ÆäÀÌÁö";
+ TEXT[ turkish ] = "Önceki sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NEXTPAGEFLD
+{
+ TEXT = "Nächste Seite" ;
+ TEXT [ English ] = "Next Page" ;
+ TEXT [ norwegian ] = "Neste side" ;
+ TEXT [ italian ] = "Pagina successiva" ;
+ TEXT [ portuguese_brazilian ] = "Próxima Página" ;
+ TEXT [ portuguese ] = "Página seguinte" ;
+ TEXT [ finnish ] = "Seuraava sivu" ;
+ TEXT [ danish ] = "Næste side" ;
+ TEXT [ french ] = "Page suivante" ;
+ TEXT [ swedish ] = "Nästa sida" ;
+ TEXT [ dutch ] = "Volgende pagina" ;
+ TEXT [ spanish ] = "Página siguiente" ;
+ TEXT [ english_us ] = "Next page" ;
+ TEXT[ chinese_simplified ] = "ÏÂÒ»Ò³";
+ TEXT[ russian ] = "Ñëåäóþùàÿ ñòðàíèöà";
+ TEXT[ polish ] = "Nastêpna strona";
+ TEXT[ japanese ] = "ŽŸ‚ÌÍß°¼Þ";
+ TEXT[ chinese_traditional ] = "¤U¤@­¶";
+ TEXT[ arabic ] = "ÇáÕÝÍÉ ÇáÊÇáíÉ";
+ TEXT[ greek ] = "Åðüìåíç óåëßäá";
+ TEXT[ korean ] = "´ÙÀ½ ÆäÀÌÁö";
+ TEXT[ turkish ] = "Sonraki sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_HIDDENTXTFLD
+{
+ TEXT = "Versteckter Text" ;
+ TEXT [ English ] = "Hidden Text" ;
+ TEXT [ norwegian ] = "Hidden Text" ;
+ TEXT [ italian ] = "Testo nascosto" ;
+ TEXT [ portuguese_brazilian ] = "Texto oculto" ;
+ TEXT [ portuguese ] = "Texto oculto" ;
+ TEXT [ finnish ] = "Piiloteksti" ;
+ TEXT [ danish ] = "Skjult tekst" ;
+ TEXT [ french ] = "Texte masqué" ;
+ TEXT [ swedish ] = "Dold text" ;
+ TEXT [ dutch ] = "Verborgen tekst" ;
+ TEXT [ spanish ] = "Texto oculto" ;
+ TEXT [ english_us ] = "Hidden text" ;
+ TEXT[ chinese_simplified ] = "ÒþÈëµÄÎÄ×Ö";
+ TEXT[ russian ] = "Ñêðûòûé òåêñò";
+ TEXT[ polish ] = "Ukryty tekst";
+ TEXT[ japanese ] = "‰B‚µÃ·½Ä";
+ TEXT[ chinese_traditional ] = "Áô¤Jªº¤å¦r";
+ TEXT[ arabic ] = "äÕ ãÎÝí";
+ TEXT[ greek ] = "Êñõöü êåßìåíï";
+ TEXT[ korean ] = "¼û°ÜÁø ÅؽºÆ®";
+ TEXT[ turkish ] = "Gizli";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich Benutzerfelder
+ //
+String STR_USERFLD
+{
+ TEXT = "Benutzerfeld" ;
+ TEXT [ English ] = "User field" ;
+ TEXT [ norwegian ] = "User field" ;
+ TEXT [ italian ] = "Campo utente" ;
+ TEXT [ portuguese_brazilian ] = "Campo do usuário" ;
+ TEXT [ portuguese ] = "Campo do utilizador" ;
+ TEXT [ finnish ] = "Käyttäjän kenttä" ;
+ TEXT [ danish ] = "Brugerdefineret felt" ;
+ TEXT [ french ] = "Champ d'utilisateur" ;
+ TEXT [ swedish ] = "Användarfält" ;
+ TEXT [ dutch ] = "Gebruikersveld" ;
+ TEXT [ spanish ] = "Campo del usuario" ;
+ TEXT [ english_us ] = "User Field" ;
+ TEXT[ chinese_simplified ] = "ʹÓÃÕß×Ö¶Î";
+ TEXT[ russian ] = "Ïîëå ïîëüçîâàòåëÿ";
+ TEXT[ polish ] = "Pole u¿ytkownika";
+ TEXT[ japanese ] = "Õ°»Þ°Ì¨°ÙÄÞ";
+ TEXT[ chinese_traditional ] = "¨Ï¥ÎªÌÄæ¦ì";
+ TEXT[ arabic ] = "ÍÞá ÇáãÓÊÎÏã";
+ TEXT[ greek ] = "Ðåäßï ÷ñÞóôç";
+ TEXT[ korean ] = "»ç¿ëÀÚ Çʵå";
+ TEXT[ turkish ] = "Kullanýcý alaný";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_POSTITFLD
+{
+ TEXT = "Notiz" ;
+ TEXT [ English ] = "Note" ;
+ TEXT [ norwegian ] = "Merknad" ;
+ TEXT [ italian ] = "Nota" ;
+ TEXT [ portuguese_brazilian ] = "Observação" ;
+ TEXT [ portuguese ] = "Anotação" ;
+ TEXT [ finnish ] = "Huomautus" ;
+ TEXT [ danish ] = "Note" ;
+ TEXT [ french ] = "Note" ;
+ TEXT [ swedish ] = "Anteckning" ;
+ TEXT [ dutch ] = "Aantekening" ;
+ TEXT [ spanish ] = "Nota" ;
+ TEXT [ english_us ] = "Note" ;
+ TEXT[ chinese_simplified ] = "±¸×¢";
+ TEXT[ russian ] = "Ïðèìå÷àíèå";
+ TEXT[ polish ] = "Notatka";
+ TEXT[ japanese ] = "ÒÓ";
+ TEXT[ chinese_traditional ] = "³Æª`";
+ TEXT[ arabic ] = "ãáÇÍÙÉ";
+ TEXT[ greek ] = "Óçìåßùóç";
+ TEXT[ korean ] = "¸Þ¸ð";
+ TEXT[ turkish ] = "Not";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SCRIPTFLD
+{
+ TEXT = "Script" ;
+ TEXT [ English ] = "Script" ;
+ Text [ dutch ] = "Script" ;
+ Text [ english_us ] = "Script" ;
+ Text [ italian ] = "Script" ;
+ Text [ spanish ] = "Script" ;
+ Text [ french ] = "Script" ;
+ Text [ swedish ] = "Skript" ;
+ Text [ danish ] = "Script" ;
+ Text [ portuguese ] = "Script" ;
+ Text [ portuguese_brazilian ] = "Script" ;
+ Text[ chinese_simplified ] = "½Å±¾";
+ Text[ russian ] = "Ñêðèïò";
+ Text[ polish ] = "Script";
+ Text[ japanese ] = "½¸ØÌßÄ";
+ Text[ chinese_traditional ] = "©R¥O½Z";
+ Text[ arabic ] = "Script";
+ Text[ greek ] = "Script";
+ Text[ korean ] = "½ºÅ©¸³Æ®";
+ Text[ turkish ] = "Script";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTHORITY
+{
+ TEXT = "Eintrag Literaturverzeichnis" ;
+ TEXT [ English ] = "Authority entry" ;
+ TEXT[ english_us ] = "Bibliography entry";
+ TEXT[ portuguese ] = "Entrada bibliográfica";
+ TEXT[ russian ] = "Ýëåìåíò ñïèñêà ëèòåðàòóðû";
+ TEXT[ greek ] = "ÅããñáöÞ âéâëéïãñáößáò";
+ TEXT[ dutch ] = "Item voor literatuurlijst";
+ TEXT[ french ] = "Entrée de bibliographie";
+ TEXT[ spanish ] = "Entrada bibliografía";
+ TEXT[ italian ] = "Voce bibliografia";
+ TEXT[ danish ] = "Element litteraturliste";
+ TEXT[ swedish ] = "Post litteraturförteckning";
+ TEXT[ polish ] = "Wpis bibliograficzny";
+ TEXT[ portuguese_brazilian ] = "Authority entry";
+ TEXT[ japanese ] = "ŽQl•¶Œ£€–Ú";
+ TEXT[ korean ] = "Âü°í¹®Çå Ç׸ñ";
+ TEXT[ chinese_simplified ] = "ÎÄÏ×Ŀ¼ÌõÄ¿";
+ TEXT[ chinese_traditional ] = "±ø¥Ø °Ñ¦Ò¤åÄm¥Ø¿ý";
+ TEXT[ arabic ] = "ÅÏÎÇá Ýí ÝåÑÓ ÇáãÑÇÌÚ";
+ TEXT[ turkish ] = "Kaynakça giriþi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_HIDDENPARAFLD
+{
+ TEXT = "Versteckter Absatz" ;
+ TEXT [ English ] = "Hidden paragraph" ;
+ TEXT [ norwegian ] = "Hidden paragraph" ;
+ TEXT [ italian ] = "Paragrafo vuoto" ;
+ TEXT [ portuguese_brazilian ] = "Parágrafo vazio" ;
+ TEXT [ portuguese ] = "Parágrafo oculto" ;
+ TEXT [ finnish ] = "Tyhjä kappale" ;
+ TEXT [ danish ] = "Skjult afsnit" ;
+ TEXT [ french ] = "Paragraphe masqué" ;
+ TEXT [ swedish ] = "Dolt stycke" ;
+ TEXT [ dutch ] = "Verborgen alinea" ;
+ TEXT [ spanish ] = "Párrafo oculto" ;
+ TEXT [ english_us ] = "Hidden Paragraph" ;
+ TEXT[ chinese_simplified ] = "ÒþÈëµÄ¶ÎÂä";
+ TEXT[ russian ] = "Ñêðûòûé àáçàö";
+ TEXT[ polish ] = "Ukryty akapit";
+ TEXT[ japanese ] = "‰B‚µ’i—Ž";
+ TEXT[ chinese_traditional ] = "Áô¤Jªº¬q¸¨";
+ TEXT[ arabic ] = "ÝÞÑÉ ãÎÝíÉ";
+ TEXT[ greek ] = "ÊñõöÞ ðáñÜãñáöïò";
+ TEXT[ korean ] = "¼û°ÜÁø ´Ü¶ô";
+ TEXT[ turkish ] = "Gizli paragraf";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // Bereich DokumentInfo
+ //
+String STR_DOCINFOFLD
+{
+ TEXT = "Dokumentinfo" ;
+ TEXT [ English ] = "Document info" ;
+ TEXT [ norwegian ] = "Document info" ;
+ TEXT [ italian ] = "Info documento" ;
+ TEXT [ portuguese_brazilian ] = "Informações sobre o documento" ;
+ TEXT [ portuguese ] = "Info. sobre documento" ;
+ TEXT [ finnish ] = "Asiakirjan tiedot" ;
+ TEXT [ danish ] = "Dokumentinfo" ;
+ TEXT [ french ] = "Info document" ;
+ TEXT [ swedish ] = "Dokumentinformation" ;
+ TEXT [ dutch ] = "Documentinfo" ;
+ TEXT [ spanish ] = "Información del documento" ;
+ TEXT [ english_us ] = "DocInformation" ;
+ TEXT[ chinese_simplified ] = "ÎĵµÐÅÏ¢";
+ TEXT[ russian ] = "Ñâåäåíèÿ î äîêóìåíòå";
+ TEXT[ polish ] = "Informacje o dokumencie";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝIJÝÌ«Ò°¼®Ý";
+ TEXT[ chinese_traditional ] = "¤å¥ó¸ê°T";
+ TEXT[ arabic ] = "ãÚáæãÇÊ ÇáãÓÊäÏ";
+ TEXT[ greek ] = "Ðëçñïöïñßåò åããñÜöïõ";
+ TEXT[ korean ] = "¹®¼­ Á¤º¸";
+ TEXT[ turkish ] = "Belge bilgileri";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: SubCmd-Strings
+ --------------------------------------------------------------------*/
+String FLD_DATE_STD
+{
+ TEXT = "Datum" ;
+ TEXT [ English ] = "Date" ;
+ TEXT[ english_us ] = "Date";
+ TEXT[ portuguese ] = "Data";
+ TEXT[ russian ] = "Äàòà";
+ TEXT[ dutch ] = "Datum";
+ TEXT[ french ] = "Date";
+ TEXT[ spanish ] = "Fecha";
+ TEXT[ italian ] = "Data";
+ TEXT[ danish ] = "Dato";
+ TEXT[ swedish ] = "Datum";
+ TEXT[ polish ] = "Data";
+ TEXT[ portuguese_brazilian ] = "Data (var.)";
+ TEXT[ japanese ] = "“ú•t";
+ TEXT[ chinese_simplified ] = "ÈÕÆÚ";
+ TEXT[ chinese_traditional ] = "¤é´Á";
+ TEXT[ arabic ] = "ÇáÊÇÑíÎ";
+ TEXT[ greek ] = "Çìåñïìçíßá";
+ TEXT[ korean ] = "ÀÏÀÚ";
+ TEXT[ turkish ] = "Tarih";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_DATE_FIX
+{
+ TEXT = "Datum (fix)" ;
+ TEXT [ English ] = "Date (fix)" ;
+ TEXT [ norwegian ] = "Date (fix)" ;
+ TEXT [ italian ] = "Data (fissa)" ;
+ TEXT [ portuguese_brazilian ] = "Data (fix)" ;
+ TEXT [ portuguese ] = "Data (fixa)" ;
+ TEXT [ finnish ] = "Päivä (vakio)" ;
+ TEXT [ danish ] = "Dato (fast)" ;
+ TEXT [ french ] = "Date (fixe)" ;
+ TEXT [ swedish ] = "Datum (fast)" ;
+ TEXT [ dutch ] = "Datum (vast)" ;
+ TEXT [ spanish ] = "Fecha (fija)" ;
+ TEXT [ english_us ] = "Date (fixed)" ;
+ TEXT[ chinese_simplified ] = "ÈÕÆÚ(¹Ì¶¨)";
+ TEXT[ russian ] = "Äàòà (ôèêñ.)";
+ TEXT[ polish ] = "Data (sta³a)";
+ TEXT[ japanese ] = "“ú•t(ŒÅ’è)";
+ TEXT[ chinese_traditional ] = "¤é´Á(©T©w)";
+ TEXT[ arabic ] = "ÊÇÑíÎ (ËÇÈÊ)";
+ TEXT[ greek ] = "Çìåñïìçíßá (ÓôáèåñÜ)";
+ TEXT[ korean ] = "ÀÏÀÚ (°íÁ¤µÊ)";
+ TEXT[ turkish ] = "Tarih (sabit)";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_TIME_STD
+{
+ TEXT = "Uhrzeit" ;
+ TEXT [ English ] = "Time" ;
+ TEXT[ english_us ] = "Time";
+ TEXT[ portuguese ] = "Hora";
+ TEXT[ russian ] = "Âðåìÿ";
+ TEXT[ dutch ] = "Tijd";
+ TEXT[ french ] = "Heure";
+ TEXT[ spanish ] = "Hora";
+ TEXT[ italian ] = "Orario";
+ TEXT[ danish ] = "Klokkeslæt";
+ TEXT[ swedish ] = "Klockslag";
+ TEXT[ polish ] = "Godzina";
+ TEXT[ portuguese_brazilian ] = "Hora (var.)";
+ TEXT[ japanese ] = "Žž";
+ TEXT[ chinese_simplified ] = "ʱ¼ä";
+ TEXT[ chinese_traditional ] = "®É¶¡";
+ TEXT[ arabic ] = "ÇáæÞÊ";
+ TEXT[ greek ] = "¿ñá";
+ TEXT[ korean ] = "½Ã°£";
+ TEXT[ turkish ] = "Saat";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_TIME_FIX
+{
+ TEXT = "Uhrzeit (fix)" ;
+ TEXT [ English ] = "Time (fix)" ;
+ TEXT [ norwegian ] = "Time (fix)" ;
+ TEXT [ italian ] = "Orario (fisso)" ;
+ TEXT [ portuguese_brazilian ] = "Hora (fix)" ;
+ TEXT [ portuguese ] = "Hora (fixa)" ;
+ TEXT [ finnish ] = "Aika (vakio)" ;
+ TEXT [ danish ] = "Klokkeslæt (fast)" ;
+ TEXT [ french ] = "Heure (fixe)" ;
+ TEXT [ swedish ] = "Klockslag (fast)" ;
+ TEXT [ dutch ] = "Tijd (vast)" ;
+ TEXT [ spanish ] = "Hora (fija)" ;
+ TEXT [ english_us ] = "Time (fixed)" ;
+ TEXT[ chinese_simplified ] = "ʱ¼ä(¹Ì¶¨)";
+ TEXT[ russian ] = "Âðåìÿ (ôèêñ.)";
+ TEXT[ polish ] = "Godzina (sta³a)";
+ TEXT[ japanese ] = "Žž(ŒÅ’è)";
+ TEXT[ chinese_traditional ] = "®É¶¡(©T©w)";
+ TEXT[ arabic ] = "ÇáæÞÊ (ËÇÈÊ)";
+ TEXT[ greek ] = "¿ñá (óôáèåñÜ)";
+ TEXT[ korean ] = "½Ã°£ (°íÁ¤µÊ)";
+ TEXT[ turkish ] = "Saat (sabit)";
+ TEXT[ language_user1 ] = " ";
+};
+ //
+ // SubCmd Statistik
+ //
+String FLD_STAT_TABLE
+{
+ TEXT = "Tabellen" ;
+ TEXT [ English ] = "Tables" ;
+ TEXT [ norwegian ] = "Tables" ;
+ TEXT [ italian ] = "Tabella" ;
+ TEXT [ portuguese_brazilian ] = "Tabelas" ;
+ TEXT [ portuguese ] = "Tabelas" ;
+ TEXT [ finnish ] = "Taulukot" ;
+ TEXT [ danish ] = "Tabeller" ;
+ TEXT [ french ] = "Tableaux" ;
+ TEXT [ swedish ] = "Tabeller" ;
+ TEXT [ dutch ] = "Tabellen" ;
+ TEXT [ spanish ] = "Tablas" ;
+ TEXT [ english_us ] = "Tables" ;
+ TEXT[ chinese_simplified ] = "±í¸ñ";
+ TEXT[ russian ] = "Òàáëèöû";
+ TEXT[ polish ] = "Tabele";
+ TEXT[ japanese ] = "•\\";
+ TEXT[ chinese_traditional ] = "ªí®æ";
+ TEXT[ arabic ] = "ÌÏÇæá";
+ TEXT[ greek ] = "Ðßíáêåò";
+ TEXT[ korean ] = "Ç¥";
+ TEXT[ turkish ] = "Tablo";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_CHAR
+{
+ TEXT = "Zeichen" ;
+ TEXT [ English ] = "Characters" ;
+ TEXT [ norwegian ] = "Characters" ;
+ TEXT [ italian ] = "Carattere" ;
+ TEXT [ portuguese_brazilian ] = "Caracteres" ;
+ TEXT [ portuguese ] = "Caracteres" ;
+ TEXT [ finnish ] = "Merkit" ;
+ TEXT [ danish ] = "Tegn" ;
+ TEXT [ french ] = "Caractères" ;
+ TEXT [ swedish ] = "Tecken" ;
+ TEXT [ dutch ] = "Teken" ;
+ TEXT [ spanish ] = "Caracteres" ;
+ TEXT [ english_us ] = "Characters" ;
+ TEXT[ chinese_simplified ] = "×Ö·û";
+ TEXT[ russian ] = "Çíàêè";
+ TEXT[ polish ] = "Znaki";
+ TEXT[ japanese ] = "•¶Žš";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "¦r¤¸";
+ TEXT[ arabic ] = "ÃÍÑÝ";
+ TEXT[ greek ] = "×áñáêôÞñåò";
+ TEXT[ korean ] = "¹®ÀÚ";
+ TEXT[ turkish ] = "Karakter";
+};
+String FLD_STAT_WORD
+{
+ TEXT = "Wörter" ;
+ TEXT [ English ] = "Words" ;
+ TEXT [ norwegian ] = "Words" ;
+ TEXT [ italian ] = "Parole" ;
+ TEXT [ portuguese_brazilian ] = "Palavras" ;
+ TEXT [ portuguese ] = "Palavras" ;
+ TEXT [ finnish ] = "Sanat" ;
+ TEXT [ danish ] = "Ord" ;
+ TEXT [ french ] = "Mots" ;
+ TEXT [ swedish ] = "Ord" ;
+ TEXT [ dutch ] = "Woorden" ;
+ TEXT [ spanish ] = "Palabras" ;
+ TEXT [ english_us ] = "Words" ;
+ TEXT[ chinese_simplified ] = "×Ö";
+ TEXT[ russian ] = "Ñëîâà";
+ TEXT[ polish ] = "S³owa";
+ TEXT[ japanese ] = "Œ¾—t";
+ TEXT[ chinese_traditional ] = "¦r";
+ TEXT[ arabic ] = "ßáãÇÊ";
+ TEXT[ greek ] = "ËÝîåéò";
+ TEXT[ korean ] = "´Ü¾î";
+ TEXT[ turkish ] = "Sözcük";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_PARA
+{
+ TEXT = "Absätze" ;
+ TEXT [ English ] = "Paragraphs" ;
+ TEXT [ norwegian ] = "Paragraphs" ;
+ TEXT [ italian ] = "Paragrafi" ;
+ TEXT [ portuguese_brazilian ] = "Parágrafos" ;
+ TEXT [ portuguese ] = "Parágrafos" ;
+ TEXT [ finnish ] = "Kappaleet" ;
+ TEXT [ danish ] = "Afsnit" ;
+ TEXT [ french ] = "Paragraphes" ;
+ TEXT [ swedish ] = "Stycken" ;
+ TEXT [ dutch ] = "Alinea's" ;
+ TEXT [ spanish ] = "Párrafos" ;
+ TEXT [ english_us ] = "Paragraphs" ;
+ TEXT[ chinese_simplified ] = "¶ÎÂä";
+ TEXT[ russian ] = "Àáçàöû";
+ TEXT[ polish ] = "Akapity";
+ TEXT[ japanese ] = "’i—Ž";
+ TEXT[ chinese_traditional ] = "¬q¸¨";
+ TEXT[ arabic ] = "ÝÞÑÇÊ";
+ TEXT[ greek ] = "ÐáñÜãñáöïé";
+ TEXT[ korean ] = "´Ü¶ô";
+ TEXT[ turkish ] = "Paragraf";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_GRF
+{
+ TEXT = "Grafiken" ;
+ TEXT [ English ] = "Graphics" ;
+ TEXT [ norwegian ] = "Grafikker" ;
+ TEXT [ italian ] = "Immagini" ;
+ TEXT [ portuguese_brazilian ] = "Gráficos" ;
+ TEXT [ portuguese ] = "Imagens" ;
+ TEXT [ finnish ] = "Kuvat" ;
+ TEXT [ danish ] = "Grafik" ;
+ TEXT [ french ] = "Images" ;
+ TEXT [ swedish ] = "Grafiker" ;
+ TEXT [ dutch ] = "Afbeeldingen" ;
+ TEXT [ spanish ] = "Imágenes" ;
+ TEXT [ english_us ] = "Graphics" ;
+ TEXT[ chinese_simplified ] = "ͼÐÎ";
+ TEXT[ russian ] = "Ðèñóíêè";
+ TEXT[ polish ] = "Grafiki";
+ TEXT[ japanese ] = "¸Þ×̨¯¸½";
+ TEXT[ chinese_traditional ] = "¹Ï¤ù";
+ TEXT[ arabic ] = "ÕæÑ";
+ TEXT[ greek ] = "ÃñáöéêÜ";
+ TEXT[ korean ] = "±×·¡ÇÈ";
+ TEXT[ turkish ] = "Grafik";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_OBJ
+{
+ TEXT = "Objekte" ;
+ TEXT [ English ] = "Objects" ;
+ TEXT [ norwegian ] = "Objects" ;
+ TEXT [ italian ] = "Oggetti" ;
+ TEXT [ portuguese_brazilian ] = "Objetos" ;
+ TEXT [ portuguese ] = "Objectos" ;
+ TEXT [ finnish ] = "Objektit" ;
+ TEXT [ danish ] = "Objekter" ;
+ TEXT [ french ] = "Objets" ;
+ TEXT [ swedish ] = "Objekt" ;
+ TEXT [ dutch ] = "Objecten" ;
+ TEXT [ spanish ] = "Objetos" ;
+ TEXT [ english_us ] = "Objects" ;
+ TEXT[ chinese_simplified ] = "¶ÔÏó";
+ TEXT[ russian ] = "Îáúåêòû";
+ TEXT[ polish ] = "Obiekty";
+ TEXT[ japanese ] = "µÌÞ¼Þª¸Ä";
+ TEXT[ chinese_traditional ] = "ª«¥ó";
+ TEXT[ arabic ] = "ßÇÆäÇÊ";
+ TEXT[ greek ] = "Áíôéêåßìåíá";
+ TEXT[ korean ] = "°³Ã¼";
+ TEXT[ turkish ] = "Nesne";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_STAT_PAGE
+{
+ TEXT = "Seiten" ;
+ TEXT [ English ] = "Pages" ;
+ TEXT [ norwegian ] = "Pages" ;
+ TEXT [ italian ] = "Pagine" ;
+ TEXT [ portuguese_brazilian ] = "Páginas" ;
+ TEXT [ portuguese ] = "Páginas" ;
+ TEXT [ finnish ] = "Sivumäärä" ;
+ TEXT [ danish ] = "Sider" ;
+ TEXT [ french ] = "Pages" ;
+ TEXT [ swedish ] = "Sidor" ;
+ TEXT [ dutch ] = "Pagina's" ;
+ TEXT [ spanish ] = "Páginas" ;
+ TEXT [ english_us ] = "Pages" ;
+ TEXT[ chinese_simplified ] = "Ò³";
+ TEXT[ russian ] = "Ñòðàíèöû";
+ TEXT[ polish ] = "Strony";
+ TEXT[ japanese ] = "Íß°¼Þ";
+ TEXT[ chinese_traditional ] = "­¶";
+ TEXT[ arabic ] = "ÕÝÍÇÊ";
+ TEXT[ greek ] = "Óåëßäåò";
+ TEXT[ korean ] = "ÆäÀÌÁö";
+ TEXT[ turkish ] = "Sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+ // SubCmd DDETypen
+ //
+String FMT_DDE_HOT
+{
+ TEXT = "DDE automatisch" ;
+ TEXT [ English ] = "DDE automatic" ;
+ TEXT [ norwegian ] = "DDE automatic" ;
+ TEXT [ italian ] = "DDE automatico" ;
+ TEXT [ portuguese_brazilian ] = "DDE autom tico" ;
+ TEXT [ portuguese ] = "DDE automático" ;
+ TEXT [ finnish ] = "DDE automaattinen" ;
+ TEXT [ danish ] = "DDE automatisk" ;
+ TEXT [ french ] = "DDE automatique" ;
+ TEXT [ swedish ] = "DDE-automatisk" ;
+ TEXT [ dutch ] = "DDE automatisch" ;
+ TEXT [ spanish ] = "DDE automático" ;
+ TEXT [ english_us ] = "DDE automatic" ;
+ TEXT[ chinese_simplified ] = "DDE ×Ô¶¯";
+ TEXT[ russian ] = "DDE àâòîìàòè÷åñêè";
+ TEXT[ polish ] = "DDE automatycznie";
+ TEXT[ japanese ] = "DDE Ž©“®";
+ TEXT[ chinese_traditional ] = "DDE ¦Û°Ê";
+ TEXT[ arabic ] = "DDE ÊáÞÇÆí";
+ TEXT[ greek ] = "DDE áõôïìÜôùò";
+ TEXT[ korean ] = "DDE ÀÚµ¿";
+ TEXT[ turkish ] = "Otomatik DDE";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_DDE_NORMAL
+{
+ TEXT = "DDE manuell" ;
+ TEXT [ English ] = "DDE manual" ;
+ TEXT [ norwegian ] = "DDE håndbok" ;
+ TEXT [ italian ] = "DDE manuale" ;
+ TEXT [ portuguese_brazilian ] = "DDE manual" ;
+ TEXT [ portuguese ] = "DDE manual" ;
+ TEXT [ finnish ] = "DDE manuaalinen" ;
+ TEXT [ danish ] = "DDE manuel" ;
+ TEXT [ french ] = "DDE manuel" ;
+ TEXT [ swedish ] = "DDE manuell" ;
+ TEXT [ dutch ] = "DDE-handmatig" ;
+ TEXT [ spanish ] = "DDE manual" ;
+ TEXT [ english_us ] = "DDE manual" ;
+ TEXT[ chinese_simplified ] = "DDE ÊÖ¹¤";
+ TEXT[ russian ] = "DDE âðó÷íóþ";
+ TEXT[ polish ] = "DDE rêcznie";
+ TEXT[ japanese ] = "DDE Žè“®";
+ TEXT[ chinese_traditional ] = "DDE ¤H¤u";
+ TEXT[ arabic ] = "DDE íÏæí";
+ TEXT[ greek ] = "DDE ÷åéñïêßíçôá";
+ TEXT[ korean ] = "DDE ¼öµ¿";
+ TEXT[ turkish ] = "Manüel DDE";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_INPUT_TEXT
+{
+ TEXT = "[Text]" ;
+};
+/*--------------------------------------------------------------------
+ Beschreibung: SubType Extuser
+ --------------------------------------------------------------------*/
+String FLD_EU_FIRMA
+{
+ TEXT = "Firma" ;
+ TEXT [ English ] = "Company" ;
+ TEXT [ norwegian ] = "Company" ;
+ TEXT [ italian ] = "Azienda" ;
+ TEXT [ portuguese_brazilian ] = "Compania" ;
+ TEXT [ portuguese ] = "Empresa" ;
+ TEXT [ finnish ] = "Yritys" ;
+ TEXT [ danish ] = "Firma" ;
+ TEXT [ french ] = "Société" ;
+ TEXT [ swedish ] = "Företag" ;
+ TEXT [ dutch ] = "Bedrijf" ;
+ TEXT [ spanish ] = "Empresa" ;
+ TEXT [ english_us ] = "Company" ;
+ TEXT[ chinese_simplified ] = "¹«Ë¾";
+ TEXT[ russian ] = "Ôèðìà";
+ TEXT[ polish ] = "Firma";
+ TEXT[ japanese ] = "‰ïŽÐ";
+ TEXT[ chinese_traditional ] = "¤½¥q";
+ TEXT[ arabic ] = "ÇáÔÑßÉ";
+ TEXT[ greek ] = "Åôáéñßá";
+ TEXT[ korean ] = "ȸ»ç";
+ TEXT[ turkish ] = "Þirket";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_VORNAME
+{
+ TEXT = "Vorname" ;
+ TEXT [ English ] = "First Name" ;
+ TEXT [ norwegian ] = "First Name" ;
+ TEXT [ italian ] = "Nome" ;
+ TEXT [ portuguese_brazilian ] = "Primeiro nome" ;
+ TEXT [ portuguese ] = "Nome próprio" ;
+ TEXT [ finnish ] = "Etunimi" ;
+ TEXT [ danish ] = "Fornavn" ;
+ TEXT [ french ] = "Prénom" ;
+ TEXT [ swedish ] = "Förnamn" ;
+ TEXT [ dutch ] = "Voornaam" ;
+ TEXT [ spanish ] = "Nombre" ;
+ TEXT [ english_us ] = "First Name" ;
+ TEXT[ chinese_simplified ] = "Ãû×Ö";
+ TEXT[ russian ] = "Èìÿ";
+ TEXT[ polish ] = "Imiê";
+ TEXT[ japanese ] = "–¼";
+ TEXT[ chinese_traditional ] = "¦W¦r";
+ TEXT[ arabic ] = "ÇáÇÓã";
+ TEXT[ greek ] = "¼íïìá";
+ TEXT[ korean ] = "¼º";
+ TEXT[ turkish ] = "Ad";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_NAME
+{
+ TEXT = "Nachname" ;
+ TEXT [ English ] = "Last Name" ;
+ TEXT [ english_us ] = "Last Name" ;
+ Text [ portuguese ] = "Apelido" ;
+ Text [ portuguese_brazilian ] = "Nomear" ;
+ Text [ swedish ] = "Efternamn" ;
+ Text [ danish ] = "Efternavn" ;
+ Text [ italian ] = "Cognome" ;
+ Text [ spanish ] = "Apellidos" ;
+ Text [ french ] = "Nom" ;
+ Text [ dutch ] = "Achternaam" ;
+ Text[ chinese_simplified ] = "ÐÕÊÏ";
+ Text[ russian ] = "Ôàìèëèÿ";
+ Text[ polish ] = "Nazwisko";
+ Text[ japanese ] = "©";
+ Text[ chinese_traditional ] = "©m¤ó";
+ Text[ arabic ] = "ÇÓã ÇáÚÇÆáÉ";
+ Text[ greek ] = "Åðþíõìï";
+ Text[ korean ] = "À̸§";
+ Text[ turkish ] = "Soyad";
+ Text[ language_user1 ] = " ";
+};
+String FLD_EU_ABK
+{
+ TEXT = "Kürzel" ;
+ TEXT [ English ] = "Short Cut" ;
+ TEXT [ norwegian ] = "Short Cut" ;
+ TEXT [ italian ] = "Iniziali" ;
+ TEXT [ portuguese_brazilian ] = "Atalho" ;
+ TEXT [ portuguese ] = "Iniciais" ;
+ TEXT [ finnish ] = "Pikatoiminto" ;
+ TEXT [ danish ] = "Initialer" ;
+ TEXT [ french ] = "Initiales" ;
+ TEXT [ swedish ] = "Initialer" ;
+ TEXT [ dutch ] = "Initialen" ;
+ TEXT [ spanish ] = "Iniciales" ;
+ TEXT [ english_us ] = "Initials" ;
+ TEXT[ chinese_simplified ] = "Ëõд";
+ TEXT[ russian ] = "Èíèöèàëû";
+ TEXT[ polish ] = "Inicja³y";
+ TEXT[ japanese ] = "²Æ¼¬Ù";
+ TEXT[ chinese_traditional ] = "ÁY¼g";
+ TEXT[ arabic ] = "ÇáÇÎÊÕÇÑ";
+ TEXT[ greek ] = "Áñ÷éêÜ";
+ TEXT[ korean ] = "¸Ó¸®±ÛÀÚ";
+ TEXT[ turkish ] = "Baþharfler";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_STRASSE
+{
+ TEXT = "Straße" ;
+ TEXT [ English ] = "Street" ;
+ TEXT [ norwegian ] = "Street" ;
+ TEXT [ italian ] = "Via" ;
+ TEXT [ portuguese_brazilian ] = "Rua" ;
+ TEXT [ portuguese ] = "Rua" ;
+ TEXT [ finnish ] = "Lähiosoite" ;
+ TEXT [ danish ] = "Gade" ;
+ TEXT [ french ] = "Rue" ;
+ TEXT [ swedish ] = "Gata" ;
+ TEXT [ dutch ] = "Straat" ;
+ TEXT [ spanish ] = "Calle" ;
+ TEXT [ english_us ] = "Street" ;
+ TEXT[ chinese_simplified ] = "½ÖµÀ";
+ TEXT[ russian ] = "Óëèöà";
+ TEXT[ polish ] = "Ulica";
+ TEXT[ japanese ] = "Žs’¬‘º–¼";
+ TEXT[ chinese_traditional ] = "µó¹D";
+ TEXT[ arabic ] = "ÇáÔÇÑÚ";
+ TEXT[ greek ] = "Ïäüò";
+ TEXT[ korean ] = "ÁÖ¼Ò¹øÁö";
+ TEXT[ turkish ] = "Sokak";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_LAND
+{
+ TEXT = "Land" ;
+ TEXT [ English ] = "Country" ;
+ TEXT [ norwegian ] = "Country" ;
+ TEXT [ italian ] = "Paese" ;
+ TEXT [ portuguese_brazilian ] = "País" ;
+ TEXT [ portuguese ] = "País" ;
+ TEXT [ finnish ] = "Valtio" ;
+ TEXT [ danish ] = "Land" ;
+ TEXT [ french ] = "Pays" ;
+ TEXT [ swedish ] = "Land" ;
+ TEXT [ dutch ] = "Land" ;
+ TEXT [ spanish ] = "País" ;
+ TEXT [ english_us ] = "Country" ;
+ TEXT[ chinese_simplified ] = "¹ú¼Ò";
+ TEXT[ russian ] = "Ñòðàíà";
+ TEXT[ polish ] = "Kraj";
+ TEXT[ japanese ] = "‘–¼";
+ TEXT[ chinese_traditional ] = "°ê®a";
+ TEXT[ arabic ] = "ÇáÈáÏ";
+ TEXT[ greek ] = "×þñá";
+ TEXT[ korean ] = "±¹°¡";
+ TEXT[ turkish ] = "Ülke";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_PLZ
+{
+ TEXT = "PLZ" ;
+ TEXT [ English ] = "ZIP Code" ;
+ TEXT [ norwegian ] = "ZIP Code" ;
+ TEXT [ italian ] = "C.A.P." ;
+ TEXT [ portuguese_brazilian ] = "CEP" ;
+ TEXT [ portuguese ] = "CP" ;
+ TEXT [ finnish ] = "Postinro" ;
+ TEXT [ danish ] = "Postnr." ;
+ TEXT [ french ] = "Code postal" ;
+ TEXT [ swedish ] = "Postnummer" ;
+ TEXT [ dutch ] = "Postcode" ;
+ TEXT [ spanish ] = "CP" ;
+ TEXT [ english_us ] = "Zip code" ;
+ TEXT[ chinese_simplified ] = "Óʱà";
+ TEXT[ russian ] = "Ïî÷òîâûé èíäåêñ";
+ TEXT[ polish ] = "Kod pocztowy";
+ TEXT[ japanese ] = "—X•Ö”Ô†";
+ TEXT[ chinese_traditional ] = "¶l»¼°Ï¸¹";
+ TEXT[ arabic ] = "ÇáÑãÒ ÇáÈÑíÏí";
+ TEXT[ greek ] = "Ô.Ê.";
+ TEXT[ korean ] = "¿ìÆò¹øÈ£";
+ TEXT[ turkish ] = "P.Kodu";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_ORT
+{
+ TEXT = "Ort" ;
+ TEXT [ English ] = "City" ;
+ TEXT [ norwegian ] = "City" ;
+ TEXT [ italian ] = "Località" ;
+ TEXT [ portuguese_brazilian ] = "Cidade" ;
+ TEXT [ portuguese ] = "Cidade" ;
+ TEXT [ finnish ] = "Kaupunki" ;
+ TEXT [ danish ] = "By" ;
+ TEXT [ french ] = "Ville" ;
+ TEXT [ swedish ] = "Stad" ;
+ TEXT [ dutch ] = "Plaats" ;
+ TEXT [ spanish ] = "Ciudad" ;
+ TEXT [ english_us ] = "City" ;
+ TEXT[ chinese_simplified ] = "λÖÃ";
+ TEXT[ russian ] = "Ãîðîä";
+ TEXT[ polish ] = "MiejscowoϾ";
+ TEXT[ japanese ] = "B–¼A“s“¹•{Œ§–¼";
+ TEXT[ chinese_traditional ] = "¦ì¸m";
+ TEXT[ arabic ] = "ÇáãÏíäÉ";
+ TEXT[ greek ] = "Ðüëç";
+ TEXT[ korean ] = "½Ã";
+ TEXT[ turkish ] = "Þehir";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_TITEL
+{
+ TEXT = "Titel" ;
+ TEXT [ English ] = "Titel" ;
+ TEXT [ norwegian ] = "Tittel" ;
+ TEXT [ italian ] = "Titolo" ;
+ TEXT [ portuguese_brazilian ] = "Títilo" ;
+ TEXT [ portuguese ] = "Título" ;
+ TEXT [ finnish ] = "Otsikko" ;
+ TEXT [ danish ] = "Titel" ;
+ TEXT [ french ] = "Titre" ;
+ TEXT [ swedish ] = "Rubrik" ;
+ TEXT [ dutch ] = "Titel" ;
+ TEXT [ spanish ] = "Título" ;
+ TEXT [ english_us ] = "Title" ;
+ TEXT[ chinese_simplified ] = "Í·ÏÎ";
+ TEXT[ russian ] = "Òèòóë";
+ TEXT[ polish ] = "Tytu³";
+ TEXT[ japanese ] = "Œ¨‘‚«";
+ TEXT[ chinese_traditional ] = "ÀY»Î";
+ TEXT[ arabic ] = "ÇáãÓãì ÇáæÙíÝí";
+ TEXT[ greek ] = "Ôßôëïò";
+ TEXT[ korean ] = "Á¦¸ñ";
+ TEXT[ turkish ] = "Unvan";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_POS
+{
+ TEXT = "Position" ;
+ TEXT [ English ] = "Position" ;
+ TEXT [ norwegian ] = "Posisjon" ;
+ TEXT [ italian ] = "Posizione" ;
+ TEXT [ portuguese_brazilian ] = "Posição" ;
+ TEXT [ portuguese ] = "Posição" ;
+ TEXT [ finnish ] = "Sijainti" ;
+ TEXT [ danish ] = "Stilling" ;
+ TEXT [ french ] = "Position" ;
+ TEXT [ swedish ] = "Position" ;
+ TEXT [ dutch ] = "Positie" ;
+ TEXT [ spanish ] = "Posición" ;
+ TEXT [ english_us ] = "Position" ;
+ TEXT[ chinese_simplified ] = "λÖÃ";
+ TEXT[ russian ] = "Äîëæíîñòü";
+ TEXT[ polish ] = "Pozycja";
+ TEXT[ japanese ] = "ˆÊ’u";
+ TEXT[ chinese_traditional ] = "¦ì¸m";
+ TEXT[ arabic ] = "ÇáãÑßÒ";
+ TEXT[ greek ] = "ÈÝóç";
+ TEXT[ korean ] = "Á÷À§";
+ TEXT[ turkish ] = "Pozisyon";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_TELPRIV
+{
+ TEXT = "Tel. (Privat)" ;
+ TEXT [ English ] = "Phone (private)" ;
+ TEXT [ norwegian ] = "Phone (private)" ;
+ TEXT [ italian ] = "Telefono (priv.)" ;
+ TEXT [ portuguese_brazilian ] = "Fone (privado)" ;
+ TEXT [ portuguese ] = "Tel. (part.)" ;
+ TEXT [ finnish ] = "Puhelin (kotiin)" ;
+ TEXT [ danish ] = "Tlf. (privat)" ;
+ TEXT [ french ] = "Tél. (domicile)" ;
+ TEXT [ swedish ] = "Tfn. (privat)" ;
+ TEXT [ dutch ] = "Tel. (privé)" ;
+ TEXT [ spanish ] = "Tel. (Priv.)" ;
+ TEXT [ english_us ] = "Tel. (Home)" ;
+ TEXT[ chinese_simplified ] = "µç»°(˽ÈË)";
+ TEXT[ russian ] = "Òåë. (äîìàøíèé)";
+ TEXT[ polish ] = "Tel. (prywatny)";
+ TEXT[ japanese ] = "Tel.(Ž©‘î)";
+ TEXT[ chinese_traditional ] = "¹q¸Ü(¨p¤H)";
+ TEXT[ arabic ] = "ÇáåÇÊÝ (ãäÒá)";
+ TEXT[ greek ] = "Ôçë. (Ïéêßá)";
+ TEXT[ korean ] = "ÀüÈ­¹øÈ£ (Áý)";
+ TEXT[ turkish ] = "Tlf. (Ev)";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_TELFIRMA
+{
+ TEXT = "Tel. (Geschäft)" ;
+ TEXT [ English ] = "Phone (Company)" ;
+ TEXT [ norwegian ] = "Phone (Company)" ;
+ TEXT [ italian ] = "Telefono (uff.)" ;
+ TEXT [ portuguese_brazilian ] = "Fone (Compania)" ;
+ TEXT [ portuguese ] = "Tel. (empr.)" ;
+ TEXT [ finnish ] = "Puhelin (työhön)" ;
+ TEXT [ danish ] = "Tlf. (arbejde)" ;
+ TEXT [ french ] = "Tél. (bureau)" ;
+ TEXT [ swedish ] = "Tfn. (företag)" ;
+ TEXT [ dutch ] = "Tel. (Bedrijf)" ;
+ TEXT [ spanish ] = "Tel. (Emp.)" ;
+ TEXT [ english_us ] = "Tel. (Work)" ;
+ TEXT[ chinese_simplified ] = "µç»°(°ì¹«ÊÒ)";
+ TEXT[ russian ] = "Òåë. (ñëóæåáíûé)";
+ TEXT[ polish ] = "Tel. (firmowy)";
+ TEXT[ japanese ] = "Tel.(‹Î–±æ)";
+ TEXT[ chinese_traditional ] = "¹q¸Ü(¿ì¤½«Ç)";
+ TEXT[ arabic ] = "ÇáåÇÊÝ (Úãá)";
+ TEXT[ greek ] = "Ôçë. (Åñãáóßá)";
+ TEXT[ korean ] = "ÀüÈ­¹øÈ£. (Á÷Àå)";
+ TEXT[ turkish ] = "Tlf. (Ýþ)";
+ TEXT[ language_user1 ] = " ";
+};
+String FLD_EU_FAX
+{
+ TEXT = "FAX" ;
+};
+String FLD_EU_EMAIL
+{
+ TEXT = "E-Mail" ;
+ TEXT [ English ] = "E-mail" ;
+ Text [ portuguese ] = "E-mail" ;
+ Text [ english_us ] = "E-mail" ;
+ Text [ portuguese_brazilian ] = "E-Mail" ;
+ Text [ swedish ] = "E-post" ;
+ Text [ danish ] = "E-mail" ;
+ Text [ italian ] = "eMail" ;
+ Text [ spanish ] = "E-mail" ;
+ Text [ french ] = "E-Mail" ;
+ Text [ dutch ] = "E-mail" ;
+ Text[ chinese_simplified ] = "µç×ÓÓʼþ";
+ Text[ russian ] = "Àäðåñ ýë. ïî÷òû";
+ Text[ polish ] = "e-mail";
+ Text[ japanese ] = "E-mail";
+ Text[ chinese_traditional ] = "¹q¤l¶l¥ó";
+ Text[ arabic ] = "ÈÑíÏ ÅáßÊÑæäí";
+ Text[ greek ] = "E-mail";
+ Text[ korean ] = "ÀüÀÚ¿ìÆí";
+ Text[ turkish ] = "E-posta";
+ Text[ language_user1 ] = " ";
+};
+String FLD_EU_STATE
+{
+ Text = "Staat" ;
+ Text [ English ] = "State" ;
+ Text [ english_us ] = "State" ;
+ Text [ italian ] = "Stato" ;
+ Text [ spanish ] = "Estado" ;
+ Text [ french ] = "Région" ;
+ Text [ dutch ] = "Staat" ;
+ Text [ danish ] = "Stat" ;
+ Text [ portuguese_brazilian ] = "Staat" ;
+ Text [ portuguese ] = "Estado" ;
+ Text [ swedish ] = "Stat" ;
+ Text[ chinese_simplified ] = "Ê¡ÊÐ";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Pañstwo";
+ Text[ japanese ] = "‘–¼";
+ Text[ chinese_traditional ] = "¬Ù¥«";
+ Text[ arabic ] = "ÇáæáÇíÉ";
+ Text[ greek ] = "×þñá";
+ Text[ korean ] = "ÁÖ";
+ Text[ turkish ] = "Ýl";
+ Text[ language_user1 ] = " ";
+};
+String FLD_PAGEREF_OFF
+{
+ TEXT = "aus" ;
+ TEXT [ English ] = "off" ;
+ Text [ english_us ] = "off" ;
+ Text [ italian ] = "off" ;
+ Text [ spanish ] = "de" ;
+ Text [ french ] = "désactivé" ;
+ Text [ dutch ] = "uit" ;
+ Text [ swedish ] = "av" ;
+ Text [ danish ] = "deaktiveret" ;
+ Text [ portuguese ] = "desligado" ;
+ Text [ portuguese_brazilian ] = "aus" ;
+ Text[ chinese_simplified ] = "ʧ»î";
+ Text[ russian ] = "âûêë.";
+ Text[ polish ] = "wy³¹cz";
+ Text[ japanese ] = "µÌ";
+ Text[ chinese_traditional ] = "¥¢¬¡";
+ Text[ arabic ] = "ÅíÞÇÝ";
+ Text[ greek ] = "áðåíåñãïðïßçóç";
+ Text[ korean ] = "ÇØÁ¦";
+ Text[ turkish ] = "kapalý";
+ Text[ language_user1 ] = " ";
+};
+String FLD_PAGEREF_ON
+{
+ TEXT = "an" ;
+ TEXT [ English ] = "on" ;
+ Text [ english_us ] = "on" ;
+ Text [ italian ] = "on" ;
+ Text [ spanish ] = "en" ;
+ Text [ french ] = "activé" ;
+ Text [ dutch ] = "aan" ;
+ Text [ swedish ] = "på" ;
+ Text [ danish ] = "aktiveret" ;
+ Text [ portuguese ] = "ligado" ;
+ Text [ portuguese_brazilian ] = "an" ;
+ Text[ chinese_simplified ] = "ÖÁ";
+ Text[ russian ] = "âêë.";
+ Text[ polish ] = "w³¹cz";
+ Text[ japanese ] = "µÝ";
+ Text[ chinese_traditional ] = "¦¬¥óªÌ";
+ Text[ arabic ] = "ÊÔÛíá";
+ Text[ greek ] = "åíåñãïðïßçóç";
+ Text[ korean ] = "ÀÛµ¿";
+ Text[ turkish ] = "Açýk";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Pfadname
+ --------------------------------------------------------------------*/
+ // Formate FileName
+String FMT_FF_NAME
+{
+ TEXT = "Dateiname" ;
+ TEXT [ English ] = "Filename" ;
+ TEXT [ norwegian ] = "Filename" ;
+ TEXT [ italian ] = "Nome file" ;
+ TEXT [ portuguese_brazilian ] = "Nome do Arquivo" ;
+ TEXT [ portuguese ] = "Nome do ficheiro" ;
+ TEXT [ finnish ] = "Tiedostonimi" ;
+ TEXT [ danish ] = "Filnavn" ;
+ TEXT [ french ] = "Nom de fichier" ;
+ TEXT [ swedish ] = "Filnamn" ;
+ TEXT [ dutch ] = "Naam bestand" ;
+ TEXT [ spanish ] = "Nombre del archivo" ;
+ TEXT [ english_us ] = "File name" ;
+ TEXT[ chinese_simplified ] = "ÎļþÃû";
+ TEXT[ russian ] = "Èìÿ ôàéëà";
+ TEXT[ polish ] = "Nazwa pliku";
+ TEXT[ japanese ] = "̧²Ù–¼";
+ TEXT[ chinese_traditional ] = "ÀɮצWºÙ";
+ TEXT[ arabic ] = "ÇÓã ÇáãáÝ";
+ TEXT[ greek ] = "¼íïìá áñ÷åßïõ";
+ TEXT[ korean ] = "ÆÄÀÏ À̸§";
+ TEXT[ turkish ] = "Dosya adý";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_FF_NAME_NOEXT
+{
+ TEXT = "Dateiname ohne Erweiterung" ;
+ TEXT [ English ] = "Filename without extension" ;
+ Text [ portuguese ] = "Nome do ficheiro sem extensão" ;
+ Text [ english_us ] = "File name without extension" ;
+ Text [ portuguese_brazilian ] = "Dateiname ohne Erweiterung" ;
+ Text [ swedish ] = "Filnamn utan tillägg" ;
+ Text [ danish ] = "Filnavn uden filtypenavn" ;
+ Text [ italian ] = "File senza estensione" ;
+ Text [ spanish ] = "Nombre del archivo sin extensión" ;
+ Text [ french ] = "Nom de fichier sans extension" ;
+ Text [ dutch ] = "Bestandsnaam zonder extensie" ;
+ Text[ chinese_simplified ] = "²»º¬À©Õ¹ÃûµÄÎļþÃû";
+ Text[ russian ] = "Èìÿ ôàéëà áåç ðàñøèðåíèÿ";
+ Text[ polish ] = "Nazwa pliku bez rozszerzenia";
+ Text[ japanese ] = "Šg’£Žq‚È‚µ‚Ì̧²Ù–¼";
+ Text[ chinese_traditional ] = "¤£§t°ÆÀɦWªºÀɮצWºÙ";
+ Text[ arabic ] = "ÇÓã ãáÝ ÈÏæä ÇãÊÏÇÏ";
+ Text[ greek ] = "¼íïìá áñ÷åßïõ ÷ùñßò åðÝêôáóç";
+ Text[ korean ] = "È®ÀåÀÚ ¾ø´Â ÆÄÀÏ À̸§";
+ Text[ turkish ] = "Uzantýsýz dosya adý";
+ Text[ language_user1 ] = " ";
+};
+String FMT_FF_PATHNAME
+{
+ TEXT = "Pfad/Dateiname" ;
+ TEXT [ English ] = "Path/Filename" ;
+ TEXT [ norwegian ] = "Path/Filename" ;
+ TEXT [ italian ] = "Percorso/Nome file" ;
+ TEXT [ portuguese_brazilian ] = "Caminho/Nome do arquivo" ;
+ TEXT [ portuguese ] = "Atalho/Nome do ficheiro" ;
+ TEXT [ finnish ] = "Polku/Tiedostonimi" ;
+ TEXT [ danish ] = "Sti/Filnavn" ;
+ TEXT [ french ] = "Chemin/Nom de fichier" ;
+ TEXT [ swedish ] = "Sökväg/Filnamn" ;
+ TEXT [ dutch ] = "Pad/Bestandsnaam" ;
+ TEXT [ spanish ] = "Ruta de acceso/Nombre de archivo" ;
+ TEXT [ english_us ] = "Path/File name" ;
+ TEXT[ chinese_simplified ] = "·¾¶/ÎļþÃû";
+ TEXT[ russian ] = "Ïóòü/Èìÿ ôàéëà";
+ TEXT[ polish ] = "Œcie¿ka/Nazwa pliku";
+ TEXT[ japanese ] = "Êß½/̧²Ù–¼";
+ TEXT[ chinese_traditional ] = "¸ô®|©MÀɮצW";
+ TEXT[ arabic ] = "ÇáãÓÇÑ/ÇÓã ÇáãáÝ";
+ TEXT[ greek ] = "ÄéáäñïìÞ/¼íïìá áñ÷åßïõ";
+ TEXT[ korean ] = "°æ·Î/ÆÄÀÏ À̸§";
+ TEXT[ turkish ] = "Veri yolu/Dosya adý";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_FF_PATH
+{
+ TEXT = "Pfad" ;
+ TEXT [ English ] = "Path" ;
+ TEXT [ norwegian ] = "Bane" ;
+ TEXT [ italian ] = "Percorso" ;
+ TEXT [ portuguese_brazilian ] = "Caminho" ;
+ TEXT [ portuguese ] = "Atalho" ;
+ TEXT [ finnish ] = "Polku" ;
+ TEXT [ danish ] = "Sti" ;
+ TEXT [ french ] = "Chemin" ;
+ TEXT [ swedish ] = "Sökväg" ;
+ TEXT [ dutch ] = "Pad" ;
+ TEXT [ spanish ] = "Ruta" ;
+ TEXT [ english_us ] = "Path" ;
+ TEXT[ chinese_simplified ] = "·¾¶";
+ TEXT[ russian ] = "Ïóòü";
+ TEXT[ polish ] = "Œcie¿ka";
+ TEXT[ japanese ] = "Êß½";
+ TEXT[ chinese_traditional ] = "¸ô®|";
+ TEXT[ arabic ] = "ÇáãÓÇÑ";
+ TEXT[ greek ] = "ÄéáäñïìÞ";
+ TEXT[ korean ] = "°æ·Î";
+ TEXT[ turkish ] = "Veri yolu";
+};
+String FMT_FF_UI_NAME
+{
+ TEXT = "Vorlage" ;
+ TEXT [ English ] = "Template" ;
+ Text [ portuguese ] = "Estilo" ;
+ Text [ english_us ] = "Style" ;
+ Text [ portuguese_brazilian ] = "Vorlage" ;
+ Text [ swedish ] = "Mall" ;
+ Text [ danish ] = "Skabelon" ;
+ Text [ italian ] = "Modello" ;
+ Text [ spanish ] = "Plantilla" ;
+ Text [ french ] = "Style" ;
+ Text [ dutch ] = "Sjabloon" ;
+ Text[ chinese_simplified ] = "Ñùʽ";
+ Text[ russian ] = "Øàáëîí";
+ Text[ polish ] = "Szablon";
+ Text[ japanese ] = "ÃÝÌßÚ°Ä";
+ Text[ chinese_traditional ] = "¼Ë¦¡";
+ Text[ arabic ] = "ÞÇáÈ";
+ Text[ greek ] = "Ðñüôõðï";
+ Text[ korean ] = "ÅÛÇø®Æ®";
+ Text[ turkish ] = "Þablon";
+ Text[ language_user1 ] = " ";
+};
+String FMT_FF_UI_RANGE
+{
+ TEXT = "Bereich" ;
+ TEXT [ English ] = "Group" ;
+ Text [ portuguese ] = "Área" ;
+ Text [ english_us ] = "Area" ;
+ Text [ portuguese_brazilian ] = "Bereich" ;
+ Text [ swedish ] = "Område" ;
+ Text [ danish ] = "Område" ;
+ Text [ italian ] = "Sezione" ;
+ Text [ spanish ] = "Area" ;
+ Text [ french ] = "Plage" ;
+ Text [ dutch ] = "Bereik" ;
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "”͈Í";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "äØÇÞ";
+ Text[ greek ] = "Ðåñéï÷Þ";
+ Text[ korean ] = "¿µ¿ª";
+ Text[ turkish ] = "Aralýk";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Format Kapitel
+ --------------------------------------------------------------------*/
+String FMT_CHAPTER_NAME
+{
+ TEXT = "Kapitelname" ;
+ TEXT [ English ] = "Chapter name" ;
+ TEXT [ norwegian ] = "Chapter name" ;
+ TEXT [ italian ] = "Nome capitolo" ;
+ TEXT [ portuguese_brazilian ] = "Nome do capítulo" ;
+ TEXT [ portuguese ] = "Nome do capítulo" ;
+ TEXT [ finnish ] = "Luvun nimi" ;
+ TEXT [ danish ] = "Kapitelnavn" ;
+ TEXT [ french ] = "Nom de chapitre" ;
+ TEXT [ swedish ] = "Kapitelnamn" ;
+ TEXT [ dutch ] = "Naam hoofdstuk" ;
+ TEXT [ spanish ] = "Nombre del capítulo" ;
+ TEXT [ english_us ] = "Chapter name" ;
+ TEXT[ chinese_simplified ] = "ÕÂÃû³Æ";
+ TEXT[ russian ] = "Íàçâàíèå ãëàâû";
+ TEXT[ polish ] = "Nazwa rozdzia³u";
+ TEXT[ japanese ] = "Í‚Ì–¼Ì";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "³¹¦WºÙ";
+ TEXT[ arabic ] = "ÇÓã ÇáÝÕá";
+ TEXT[ greek ] = "¼íïìá êåöáëáßïõ";
+ TEXT[ korean ] = "Àå À̸§";
+ TEXT[ turkish ] = "Bölüm adý";
+};
+String FMT_CHAPTER_NO
+{
+ TEXT = "Kapitelnummer" ;
+ TEXT [ English ] = "Chapter number" ;
+ Text [ portuguese ] = "Número do capítulo" ;
+ Text [ english_us ] = "Chapter number" ;
+ Text [ portuguese_brazilian ] = "Número do capítulo" ;
+ Text [ swedish ] = "Kapitelnummer" ;
+ Text [ danish ] = "Kapitelnummer" ;
+ Text [ italian ] = "Numero capitolo" ;
+ Text [ spanish ] = "Número del capítulo" ;
+ Text [ french ] = "Numéro de chapitre" ;
+ Text [ dutch ] = "Nummer hoofdstuk" ;
+ Text[ chinese_simplified ] = "Õ±àºÅ";
+ Text[ russian ] = "Íîìåð ãëàâû";
+ Text[ polish ] = "Numer rozdzia³u";
+ Text[ japanese ] = "͔Ԇ";
+ Text[ chinese_traditional ] = "³¹½s¸¹";
+ Text[ arabic ] = "ÑÞã ÇáÝÕá";
+ Text[ greek ] = "Áñéèìüò êåöáëáßïõ";
+ Text[ korean ] = "Àå ¹øÈ£";
+ Text[ turkish ] = "Bölüm numarasý";
+ Text[ language_user1 ] = " ";
+};
+String FMT_CHAPTER_NO_NOSEPARATOR
+{
+ TEXT = "Kapitelnummer ohne Trennzeichen" ;
+ TEXT [ English ] = "Chapter number without separator" ;
+ Text [ portuguese ] = "Número de capítulo sem separador" ;
+ Text [ english_us ] = "Chapter number without separator" ;
+ Text [ portuguese_brazilian ] = "Kapitelnummer ohne Trennzeichen" ;
+ Text [ swedish ] = "Kapitelnummer utan skiljetecken" ;
+ Text [ danish ] = "Kapitelnummer uden skilletegn" ;
+ Text [ italian ] = "Numero di capitolo senza separatore" ;
+ Text [ spanish ] = "Número de capítulo sin separador" ;
+ Text [ french ] = "Numéro de chapitre sans séparateur" ;
+ Text [ dutch ] = "Hoofdstuknummer zonder scheidingstekens" ;
+ Text[ chinese_simplified ] = "Õ±àºÅ²»´øÁ¬×Ö·û";
+ Text[ russian ] = "Íîìåð ãëàâû áåç ðàçäåëèòåëÿ";
+ Text[ polish ] = "Numer rozdzia³u bez separatora";
+ Text[ japanese ] = "ʲÌÝ‚È‚µ‚Ì͔Ԇ";
+ Text[ chinese_traditional ] = "³¹½s¸¹¤£±a³s¦r²Å";
+ Text[ arabic ] = "ÑÞã ÇáÝÕá ÈÏæä ÝÇÕá";
+ Text[ greek ] = "Áñéèìüò êåöáëáßïõ ÷ùñßò åíùôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ ¾ø´Â Àå ¹øÈ£";
+ Text[ turkish ] = "Ayýrma iþareti içermeyen bölüm numarasý";
+ Text[ language_user1 ] = " ";
+};
+String FMT_CHAPTER_NAMENO
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Kapitelnummer und Name : Nummer und Name */
+ TEXT = "Kapitelnummer und Name" ;
+ TEXT [ English ] = "Chapter number and name" ;
+ Text [ portuguese ] = "Número e nome do capítulo" ;
+ Text [ english_us ] = "Chapter number and name" ;
+ Text [ portuguese_brazilian ] = "Número e nome" ;
+ Text [ swedish ] = "Kapitelnummer och namn" ;
+ Text [ danish ] = "Kapitelnummer og navn" ;
+ Text [ italian ] = "Numero di capitolo e nome" ;
+ Text [ spanish ] = "Número y nombre" ;
+ Text [ french ] = "Numéro et nom de chapitre" ;
+ Text [ dutch ] = "Hoofdstuknummer en naam" ;
+ Text[ chinese_simplified ] = "Õ±àºÅºÍÃû³Æ";
+ Text[ russian ] = "Íàçâàíèå è íîìåð ãëàâû";
+ Text[ polish ] = "Numer i nazwa rozdzia³u";
+ Text[ japanese ] = "͂̔Ԇ‚Æ–¼Ì";
+ Text[ chinese_traditional ] = "³¹½s¸¹©M¦WºÙ";
+ Text[ arabic ] = "ÑÞã æÇÓã ÇáÝÕá";
+ Text[ greek ] = "Áñéèìüò êåöáëáßïõ êáé üíïìá";
+ Text[ korean ] = "Àå ¹øÈ£¿Í À̸§";
+ Text[ turkish ] = "Bölüm numarasý ve adý";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Formate
+ --------------------------------------------------------------------*/
+String FMT_NUM_ABC
+{
+ TEXT = "A B C" ;
+};
+String FMT_NUM_SABC
+{
+ TEXT = "a b c" ;
+};
+String FMT_NUM_ABC_N
+{
+ TEXT = "A .. AA .. AAA" ;
+};
+String FMT_NUM_SABC_N
+{
+ TEXT = "a .. aa .. aaa" ;
+};
+String FMT_NUM_ROMAN
+{
+ TEXT = "Römisch (I II III)" ;
+ TEXT [ English ] = "Roman (I II III)" ;
+ TEXT [ norwegian ] = "Roman (I II III)" ;
+ TEXT [ italian ] = "Romani (I II III)" ;
+ TEXT [ portuguese_brazilian ] = "Romano (I II III)" ;
+ TEXT [ portuguese ] = "Romano (I II III)" ;
+ TEXT [ finnish ] = "Roomalainen (I II III)" ;
+ TEXT [ danish ] = "Romertal (I II III)" ;
+ TEXT [ french ] = "Romain (I II III)" ;
+ TEXT [ swedish ] = "Romerska siffror (I II III)" ;
+ TEXT [ dutch ] = "Romeins (I II III)" ;
+ TEXT [ spanish ] = "Romanos (I II III)" ;
+ TEXT [ english_us ] = "Roman (I II III)" ;
+ TEXT[ chinese_simplified ] = "ÂÞÂíÊý×Ö(I II III)";
+ TEXT[ russian ] = "Ðèìñêèå (I II III)";
+ TEXT[ polish ] = "Rzymskie (I II III)";
+ TEXT[ japanese ] = "Û°Ï”Žš (I II III)";
+ TEXT[ chinese_traditional ] = "ù°¨¼Æ¦r(I II III)";
+ TEXT[ arabic ] = "ÃÑÞÇã ÑæãÇäíÉ (III II I)";
+ TEXT[ greek ] = "ÑùìáúêÜ (I II III)";
+ TEXT[ korean ] = "·Î¸¶½Ä (I II III)";
+ TEXT[ turkish ] = "Roma (I II III)";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_SROMAN
+{
+ TEXT = "Römisch (i ii iii)" ;
+ TEXT [ English ] = "Roman (i ii iii)" ;
+ TEXT [ norwegian ] = "Roman (i ii iii)" ;
+ TEXT [ italian ] = "Romani (i ii iii)" ;
+ TEXT [ portuguese_brazilian ] = "Romano (i ii iii)" ;
+ TEXT [ portuguese ] = "Romano (i ii iii)" ;
+ TEXT [ finnish ] = "Roomalainen (i ii iii)" ;
+ TEXT [ danish ] = "Romertal (i ii iii)" ;
+ TEXT [ french ] = "Romain (i ii iii)" ;
+ TEXT [ swedish ] = "Romerska siffror (i ii iii)" ;
+ TEXT [ dutch ] = "Romeins (i ii iii)" ;
+ TEXT [ spanish ] = "Romanos (i ii iii)" ;
+ TEXT [ english_us ] = "Roman (i ii iii)" ;
+ TEXT[ chinese_simplified ] = "ÂÞÂíÊý×Ö(i ii iii)";
+ TEXT[ russian ] = "Ðèìñêèå (i ii iii)";
+ TEXT[ polish ] = "Rzymskie (i ii iii)";
+ TEXT[ japanese ] = "Û°Ï”Žš (i ii iii)";
+ TEXT[ chinese_traditional ] = "ù°¨¼Æ¦r(i ii iii)";
+ TEXT[ arabic ] = "ÃÑÞÇã ÑæãÇäíÉ (iii ii i)";
+ TEXT[ greek ] = "ÑùìáúêÜ (i ii iii)";
+ TEXT[ korean ] = "·Î¸¶½Ä (i ii iii)";
+ TEXT[ turkish ] = "Roma (i ii iii)";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_ARABIC
+{
+ TEXT = "Arabisch (1 2 3)" ;
+ TEXT [ English ] = "Arabic (1 2 3)" ;
+ TEXT [ norwegian ] = "Arabic (1 2 3)" ;
+ TEXT [ italian ] = "Arabi (1 2 3)" ;
+ TEXT [ portuguese_brazilian ] = "Arábico (1 2 3)" ;
+ TEXT [ portuguese ] = "Arábe (1 2 3)" ;
+ TEXT [ finnish ] = "Arabialainen (1 2 3)" ;
+ TEXT [ danish ] = "Arabisk (1 2 3)" ;
+ TEXT [ french ] = "Arabe (1 2 3)" ;
+ TEXT [ swedish ] = "Arabiska siffror (1 2 3)" ;
+ TEXT [ dutch ] = "Arabisch (1 2 3)" ;
+ TEXT [ spanish ] = "Árabes (1 2 3)" ;
+ TEXT [ english_us ] = "Arabic (1 2 3)" ;
+ TEXT[ chinese_simplified ] = "°¢À­²®Êý×Ö(1 2 3)";
+ TEXT[ russian ] = "Àðàáñêèå (1 2 3)";
+ TEXT[ polish ] = "Arabskie (1 2 3)";
+ TEXT[ japanese ] = "±×ËÞ±”Žš(1 2 3)";
+ TEXT[ chinese_traditional ] = "ªü©Ô§B¼Æ¦r(1 2 3)";
+ TEXT[ arabic ] = "ÃÑÞÇã ÚÑÈíÉ (1 2 3)";
+ TEXT[ greek ] = "ÁñáâéêÜ (1 2 3)";
+ TEXT[ korean ] = "¾Æ¶óºñ¾Æ ½Ä (1 2 3)";
+ TEXT[ turkish ] = "Arap (1 2 3)";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_PAGEDESC
+{
+ TEXT = "Wie Seitenvorlage" ;
+ TEXT [ English ] = "As Page Style" ;
+ TEXT [ norwegian ] = "As Page Style" ;
+ TEXT [ italian ] = "Come modello di pagina" ;
+ TEXT [ portuguese_brazilian ] = "Como Estilo de Página" ;
+ TEXT [ portuguese ] = "Como estilo de página" ;
+ TEXT [ finnish ] = "Sivutyylinä" ;
+ TEXT [ danish ] = "Som sidetypografi" ;
+ TEXT [ french ] = "D'après le style de page" ;
+ TEXT [ swedish ] = "Som sidformatmallen" ;
+ TEXT [ dutch ] = "Zoals pagina-opmaakprofiel" ;
+ TEXT [ spanish ] = "Como estilo de página" ;
+ TEXT [ english_us ] = "As Page Style" ;
+ TEXT[ chinese_simplified ] = "ºÍÒ³ÃæÑùʽÏàͬ";
+ TEXT[ russian ] = "Êàê ñòèëü ñòðàíèöû";
+ TEXT[ polish ] = "Jako styl strony";
+ TEXT[ japanese ] = "Íß°¼Þ½À²Ù‚ÌÝ’è‚ð“K—p";
+ TEXT[ chinese_traditional ] = "©M­¶­±¼Ë¦¡¬Û¦P";
+ TEXT[ arabic ] = "ãËá äãØ ÇáÕÝÍÉ";
+ TEXT[ greek ] = "¼ðùò ôï ðñüôõðï óåëßäáò";
+ TEXT[ korean ] = "ÆäÀÌÁö À¯Çüó·³";
+ TEXT[ turkish ] = "Sayfa biçimi gibi";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_NUM_PAGESPECIAL
+{
+ TEXT = "Text" ;
+ TEXT [ English ] = "Text" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Author
+ --------------------------------------------------------------------*/
+String FMT_AUTHOR_NAME
+{
+ TEXT = "Name" ;
+ TEXT [ English ] = "Name" ;
+ TEXT [ norwegian ] = "Navn" ;
+ TEXT [ italian ] = "Nome" ;
+ TEXT [ portuguese_brazilian ] = "Nomear" ;
+ TEXT [ portuguese ] = "Nome" ;
+ TEXT [ finnish ] = "Nimi" ;
+ TEXT [ danish ] = "Navn" ;
+ TEXT [ french ] = "Nom" ;
+ TEXT [ swedish ] = "Namn" ;
+ TEXT [ dutch ] = "Naam" ;
+ TEXT [ spanish ] = "Nombre" ;
+ TEXT [ english_us ] = "Name" ;
+ TEXT[ chinese_simplified ] = "ÐÕÃû";
+ TEXT[ russian ] = "Èìÿ";
+ TEXT[ polish ] = "Nazwa";
+ TEXT[ japanese ] = "–¼‘O";
+ TEXT[ chinese_traditional ] = "©m¦W";
+ TEXT[ arabic ] = "ÇáÇÓã";
+ TEXT[ greek ] = "¼íïìá";
+ TEXT[ korean ] = "À̸§";
+ TEXT[ turkish ] = "Ad";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_AUTHOR_SCUT
+{
+ TEXT = "Kürzel" ;
+ TEXT [ English ] = "Short name" ;
+ TEXT [ norwegian ] = "Short name" ;
+ TEXT [ italian ] = "Iniziali" ;
+ TEXT [ portuguese_brazilian ] = "Abreviação" ;
+ TEXT [ portuguese ] = "Iniciais" ;
+ TEXT [ finnish ] = "Lyhyt nimi" ;
+ TEXT [ danish ] = "Initialer" ;
+ TEXT [ french ] = "Abréviation" ;
+ TEXT [ swedish ] = "Inititaler" ;
+ TEXT [ dutch ] = "Initialen" ;
+ TEXT [ spanish ] = "Iniciales" ;
+ TEXT [ english_us ] = "Initials" ;
+ TEXT[ chinese_simplified ] = "Ëõд";
+ TEXT[ russian ] = "Èíèöèàëû";
+ TEXT[ polish ] = "Inicja³y";
+ TEXT[ japanese ] = "²Æ¼¬Ù";
+ TEXT[ chinese_traditional ] = "ÁY¼g";
+ TEXT[ arabic ] = "ÇáÇÎÊÕÇÑ";
+ TEXT[ greek ] = "Áñ÷éêÜ";
+ TEXT[ korean ] = "¸Ó¸®±ÛÀÚ";
+ TEXT[ turkish ] = "Baþharfler";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Varibale setzen
+ --------------------------------------------------------------------*/
+String FMT_SETVAR_SYS
+{
+ TEXT = "System" ;
+ TEXT [ English ] = "System" ;
+ Text [ portuguese ] = "Sistema" ;
+ Text [ english_us ] = "System" ;
+ Text [ portuguese_brazilian ] = "System" ;
+ Text [ swedish ] = "System" ;
+ Text [ danish ] = "System" ;
+ Text [ italian ] = "Sistema" ;
+ Text [ spanish ] = "Sistema" ;
+ Text [ french ] = "Système" ;
+ Text [ dutch ] = "Systeem" ;
+ Text[ chinese_simplified ] = "ϵͳ";
+ Text[ russian ] = "Ñèñòåìà";
+ Text[ polish ] = "System";
+ Text[ japanese ] = "¼½ÃÑ";
+ Text[ chinese_traditional ] = "¨t²Î";
+ Text[ arabic ] = "ÇáäÙÇã";
+ Text[ greek ] = "Óýóôçìá";
+ Text[ korean ] = "½Ã½ºÅÛ";
+ Text[ turkish ] = "Sistem";
+ Text[ language_user1 ] = " ";
+};
+String FMT_SETVAR_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_GETVAR_NAME
+{
+ TEXT = "Name" ;
+ TEXT [ English ] = "Name" ;
+ Text [ portuguese ] = "Nome" ;
+ Text [ english_us ] = "Name" ;
+ Text [ portuguese_brazilian ] = "Name" ;
+ Text [ swedish ] = "Namn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "Nome" ;
+ Text [ spanish ] = "Nombre" ;
+ Text [ french ] = "Nom" ;
+ Text [ dutch ] = "Naam" ;
+ Text[ chinese_simplified ] = "Ãû³Æ";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O";
+ Text[ chinese_traditional ] = "¦WºÙ";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§";
+ Text[ turkish ] = "Ad";
+ Text[ language_user1 ] = " ";
+};
+String FMT_GETVAR_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "ÇáäÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_USERVAR_CMD
+{
+ TEXT = "Formel" ;
+ TEXT [ English ] = "Formula" ;
+ Text [ portuguese ] = "Fórmula" ;
+ Text [ english_us ] = "Formula" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text [ swedish ] = "Formel" ;
+ Text [ danish ] = "Formel" ;
+ Text [ italian ] = "Formula" ;
+ Text [ spanish ] = "Fórmula" ;
+ Text [ french ] = "Formule" ;
+ Text [ dutch ] = "Formule" ;
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ russian ] = "Ôîðìóëà";
+ Text[ polish ] = "Formu³a";
+ Text[ japanese ] = "”Ž®";
+ Text[ chinese_traditional ] = "¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "¼ö½Ä";
+ Text[ turkish ] = "Formül";
+ Text[ language_user1 ] = " ";
+};
+String FMT_USERVAR_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "Îı¾";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_DBFLD_DB
+{
+ TEXT = "Datenbank" ;
+ TEXT [ English ] = "Database" ;
+ Text [ portuguese ] = "Base de dados" ;
+ Text [ english_us ] = "Database" ;
+ Text [ portuguese_brazilian ] = "Datenbank" ;
+ Text [ swedish ] = "Databas" ;
+ Text [ danish ] = "Database" ;
+ Text [ italian ] = "Database" ;
+ Text [ spanish ] = "Base de datos" ;
+ Text [ french ] = "Base de données" ;
+ Text [ dutch ] = "Database" ;
+ Text[ chinese_simplified ] = "Êý¾Ý¿â";
+ Text[ russian ] = "Áàçà äàííûõ";
+ Text[ polish ] = "Baza danych";
+ Text[ japanese ] = "ÃÞ°ÀÍÞ°½";
+ Text[ chinese_traditional ] = "¸ê®Æ®w";
+ Text[ arabic ] = "ÞÇÚÏÉ ÈíÇäÇÊ";
+ Text[ greek ] = "ÂÜóç äåäïìÝíùí";
+ Text[ korean ] = "µ¥ÀÌÅͺ£À̽º";
+ Text[ turkish ] = "Veritabaný";
+ Text[ language_user1 ] = " ";
+};
+String FMT_DBFLD_SYS
+{
+ TEXT = "System" ;
+ TEXT [ English ] = "System" ;
+ Text [ portuguese ] = "Sistema" ;
+ Text [ english_us ] = "System" ;
+ Text [ portuguese_brazilian ] = "System" ;
+ Text [ swedish ] = "System" ;
+ Text [ danish ] = "System" ;
+ Text [ italian ] = "Sistema" ;
+ Text [ spanish ] = "Sistema" ;
+ Text [ french ] = "Système" ;
+ Text [ dutch ] = "Systeem" ;
+ Text[ chinese_simplified ] = "ϵͳ";
+ Text[ russian ] = "Ñèñòåìà";
+ Text[ polish ] = "System";
+ Text[ japanese ] = "¼½ÃÑ";
+ Text[ chinese_traditional ] = "¨t²Î";
+ Text[ arabic ] = "ÇáäÙÇã";
+ Text[ greek ] = "Óýóôçìá";
+ Text[ korean ] = "½Ã½ºÅÛ";
+ Text[ turkish ] = "Sistem";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Ablagefelder
+ --------------------------------------------------------------------*/
+String FMT_REG_AUTHOR
+{
+ TEXT = "Autor" ;
+ TEXT [ English ] = "Author" ;
+ TEXT [ norwegian ] = "Forfatter" ;
+ TEXT [ italian ] = "Autore" ;
+ TEXT [ portuguese_brazilian ] = "Autor" ;
+ TEXT [ portuguese ] = "Autor" ;
+ TEXT [ finnish ] = "Tekijä" ;
+ TEXT [ danish ] = "Forfatter" ;
+ TEXT [ french ] = "Auteur" ;
+ TEXT [ swedish ] = "Författare" ;
+ TEXT [ dutch ] = "Auteur" ;
+ TEXT [ spanish ] = "Autor" ;
+ TEXT [ english_us ] = "Author" ;
+ TEXT[ chinese_simplified ] = "×÷Õß";
+ TEXT[ russian ] = "Àâòîð";
+ TEXT[ polish ] = "Autor";
+ TEXT[ japanese ] = "쬎Ò";
+ TEXT[ chinese_traditional ] = "§@ªÌ";
+ TEXT[ arabic ] = "ÇáãÄáÝ";
+ TEXT[ greek ] = "ÓõíôÜêôçò";
+ TEXT[ korean ] = "ÀÛ¼ºÀÎ";
+ TEXT[ turkish ] = "Yazan";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REG_TIME
+{
+ TEXT = "Uhrzeit" ;
+ TEXT [ English ] = "Time" ;
+ TEXT [ norwegian ] = "Time" ;
+ TEXT [ italian ] = "Orario" ;
+ TEXT [ portuguese_brazilian ] = "Hora" ;
+ TEXT [ portuguese ] = "Hora" ;
+ TEXT [ finnish ] = "Aika" ;
+ TEXT [ danish ] = "Klokkeslæt" ;
+ TEXT [ french ] = "Heure" ;
+ TEXT [ swedish ] = "Klockslag" ;
+ TEXT [ dutch ] = "Uur" ;
+ TEXT [ spanish ] = "Hora" ;
+ TEXT [ english_us ] = "Time" ;
+ TEXT[ chinese_simplified ] = "ʱ¼ä";
+ TEXT[ russian ] = "Âðåìÿ";
+ TEXT[ polish ] = "Godzina";
+ TEXT[ japanese ] = "Žž";
+ TEXT[ chinese_traditional ] = "®É¶¡";
+ TEXT[ arabic ] = "ÇáæÞÊ";
+ TEXT[ greek ] = "¿ñá";
+ TEXT[ korean ] = "½Ã°£";
+ TEXT[ turkish ] = "Saat";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REG_DATE
+{
+ TEXT = "Datum" ;
+ TEXT [ English ] = "Date" ;
+ TEXT [ norwegian ] = "Date" ;
+ TEXT [ italian ] = "Data" ;
+ TEXT [ portuguese_brazilian ] = "Data" ;
+ TEXT [ portuguese ] = "Data" ;
+ TEXT [ finnish ] = "Päiväys" ;
+ TEXT [ danish ] = "Dato" ;
+ TEXT [ french ] = "Date" ;
+ TEXT [ swedish ] = "Datum" ;
+ TEXT [ dutch ] = "Datum" ;
+ TEXT [ spanish ] = "Fecha" ;
+ TEXT [ english_us ] = "Date" ;
+ TEXT[ chinese_simplified ] = "ÈÕÆÚ";
+ TEXT[ russian ] = "Äàòà";
+ TEXT[ polish ] = "Data";
+ TEXT[ japanese ] = "“ú•t";
+ TEXT[ chinese_traditional ] = "¤é´Á";
+ TEXT[ arabic ] = "ÇáÊÇÑíÎ";
+ TEXT[ greek ] = "Çìåñïìçíßá";
+ TEXT[ korean ] = "ÀÏÀÚ";
+ TEXT[ turkish ] = "Tarih";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Formate Referenzen
+ --------------------------------------------------------------------*/
+String FMT_REF_TEXT
+{
+ TEXT = "Referenztext" ;
+ TEXT [ English ] = "Reference" ;
+ TEXT [ norwegian ] = "Reference" ;
+ TEXT [ italian ] = "Testo di riferimento" ;
+ TEXT [ portuguese_brazilian ] = "Referência" ;
+ TEXT [ portuguese ] = "Referência" ;
+ TEXT [ finnish ] = "Viittaus" ;
+ TEXT [ danish ] = "Referencetekst" ;
+ TEXT [ french ] = "Texte de référence" ;
+ TEXT [ swedish ] = "Referenstext" ;
+ TEXT [ dutch ] = "Verwijzingstekst" ;
+ TEXT [ spanish ] = "Texto de referencia" ;
+ TEXT [ english_us ] = "Reference" ;
+ TEXT[ chinese_simplified ] = "˵Ã÷ÎÄ";
+ TEXT[ russian ] = "Òåêñò ññûëêè";
+ TEXT[ polish ] = "Tekst odwo³añ";
+ TEXT[ japanese ] = "ŽQÆ•¶Žš—ñ";
+ TEXT[ chinese_traditional ] = "°Ñ·Ó¤å";
+ TEXT[ arabic ] = "äÕ ãÑÌÚí";
+ TEXT[ greek ] = "Êåßìåíï áíáöïñÜò";
+ TEXT[ korean ] = "ÂüÁ¶";
+ TEXT[ turkish ] = "Referans metni";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REF_PAGE
+{
+ TEXT = "Seite" ;
+ TEXT [ English ] = "Page" ;
+ TEXT [ norwegian ] = "Page" ;
+ TEXT [ italian ] = "Pagina" ;
+ TEXT [ portuguese_brazilian ] = "Página" ;
+ TEXT [ portuguese ] = "Página" ;
+ TEXT [ finnish ] = "Sivu" ;
+ TEXT [ danish ] = "Side" ;
+ TEXT [ french ] = "Page" ;
+ TEXT [ swedish ] = "Sida" ;
+ TEXT [ dutch ] = "Pagina" ;
+ TEXT [ spanish ] = "Página" ;
+ TEXT [ english_us ] = "Page" ;
+ TEXT[ chinese_simplified ] = "Ò³";
+ TEXT[ russian ] = "Ñòðàíèöà";
+ TEXT[ polish ] = "Strona";
+ TEXT[ japanese ] = "Íß°¼Þ";
+ TEXT[ chinese_traditional ] = "­¶";
+ TEXT[ arabic ] = "ÕÝÍÉ";
+ TEXT[ greek ] = "Óåëßäá";
+ TEXT[ korean ] = "ÆäÀÌÁö";
+ TEXT[ turkish ] = "Sayfa";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REF_CHAPTER
+{
+ TEXT = "Kapitel" ;
+ TEXT [ English ] = "Chapter" ;
+ TEXT [ norwegian ] = "Chapter" ;
+ TEXT [ italian ] = "Capitolo" ;
+ TEXT [ portuguese_brazilian ] = "Capítulo" ;
+ TEXT [ portuguese ] = "Capítulo" ;
+ TEXT [ finnish ] = "Luku" ;
+ TEXT [ danish ] = "Kapitel" ;
+ TEXT [ french ] = "Chapitre" ;
+ TEXT [ swedish ] = "Kapitel" ;
+ TEXT [ dutch ] = "Hoofdstuk" ;
+ TEXT [ spanish ] = "Capítulo" ;
+ TEXT [ english_us ] = "Chapter" ;
+ TEXT[ chinese_simplified ] = "ÕÂ";
+ TEXT[ russian ] = "Ãëàâà";
+ TEXT[ polish ] = "Rozdzia³";
+ TEXT[ japanese ] = "Í";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "³¹";
+ TEXT[ arabic ] = "ÇáÝÕá";
+ TEXT[ greek ] = "ÊåöÜëáéï";
+ TEXT[ korean ] = "Àå";
+ TEXT[ turkish ] = "Bölüm";
+};
+String FMT_REF_UPDOWN
+{
+ TEXT = "Oberhalb/Unterhalb" ;
+ TEXT [ English ] = "Above/Below" ;
+ Text [ dutch ] = "Boven/beneden" ;
+ Text [ english_us ] = "Above/Below" ;
+ Text [ italian ] = "Al di sopra/al di sotto" ;
+ Text [ spanish ] = "Encima/Debajo" ;
+ Text [ french ] = "Supra/infra" ;
+ Text [ swedish ] = "Över/under" ;
+ Text [ danish ] = "Over/under" ;
+ Text [ portuguese ] = "Acima/Abaixo" ;
+ Text [ portuguese_brazilian ] = "Oberhalb/Unterhalb" ;
+ Text[ chinese_simplified ] = "Ö®ÉÏ/Ö®ÏÂ";
+ Text[ russian ] = "Ñâåðõó/Ñíèçó";
+ Text[ polish ] = "Powy¿ej/Poni¿ej";
+ Text[ japanese ] = "ã/‰º";
+ Text[ chinese_traditional ] = "¤§¤W/¤§¤U";
+ Text[ arabic ] = "ÃÚáì/ÃÓÝá";
+ Text[ greek ] = "¢íù áðü/ÊÜôù áðü";
+ Text[ korean ] = "À§/¾Æ·¡";
+ Text[ turkish ] = "Üstte/Altta";
+ Text[ language_user1 ] = " ";
+};
+String FMT_REF_PAGE_PGDSC
+{
+ TEXT = "Wie Seitenvorlage" ;
+ TEXT [ English ] = "As Page Style" ;
+ TEXT [ norwegian ] = "As Page Style" ;
+ TEXT [ italian ] = "Come modello di pagina" ;
+ TEXT [ portuguese_brazilian ] = "Como Estilo de Página" ;
+ TEXT [ portuguese ] = "Como estilo de página" ;
+ TEXT [ finnish ] = "Sivutyylinä" ;
+ TEXT [ danish ] = "Som sidetypografi" ;
+ TEXT [ french ] = "D'après le style de page" ;
+ TEXT [ swedish ] = "Som sidformatmallen" ;
+ TEXT [ dutch ] = "Volgens pagina-opmaakprofiel" ;
+ TEXT [ spanish ] = "Como estilo de página" ;
+ TEXT [ english_us ] = "As Page Style" ;
+ TEXT[ chinese_simplified ] = "ºÍÒ³ÃæÑùʽÏàͬ";
+ TEXT[ russian ] = "Êàê ñòèëü ñòðàíèöû";
+ TEXT[ polish ] = "Jako styl strony";
+ TEXT[ japanese ] = "Íß°¼Þ½À²Ù‚ÌÝ’è‚ð“K—p";
+ TEXT[ chinese_traditional ] = "©M­¶­±¼Ë¦¡¬Û¦P";
+ TEXT[ arabic ] = "ãËá äãØ ÇáÕÝÍÉ";
+ TEXT[ greek ] = "¼ðùò ôï ðñüôõðï óåëßäáò";
+ TEXT[ korean ] = "ÆäÀÌÁö À¯Çüó·³";
+ TEXT[ turkish ] = "Sayfa biçimi gibi";
+ TEXT[ language_user1 ] = " ";
+};
+String FMT_REF_ONLYNUMBER
+{
+ TEXT = "Kategorie und Nummer" ;
+ TEXT [ English ] = "Only Category and Numbering" ;
+ Text [ dutch ] = "Categorie en nummer" ;
+ Text [ english_us ] = "Category and Number" ;
+ Text [ italian ] = "Numero e categoria" ;
+ Text [ spanish ] = "Categoría y número" ;
+ Text [ french ] = "Catégorie et numéro" ;
+ Text [ swedish ] = "Kategori och nummer" ;
+ Text [ danish ] = "Kategori og nummer" ;
+ Text [ portuguese ] = "Categoria e número" ;
+ Text [ portuguese_brazilian ] = "Kategorie und Nummer" ;
+ Text[ chinese_simplified ] = "·ÖÀàºÍ±àºÅ";
+ Text[ russian ] = "Êàòåãîðèÿ è íîìåð";
+ Text[ polish ] = "Kategoria i numer";
+ Text[ japanese ] = "€–ڂƔԆ";
+ Text[ chinese_traditional ] = "¤ÀÃþ©M½s¸¹";
+ Text[ arabic ] = "ÇáÝÆÉ æÇáÑÞã";
+ Text[ greek ] = "Êáôçãïñßá êáé áñéèìüò";
+ Text[ korean ] = "Àå°ú ¹øÈ£";
+ Text[ turkish ] = "Kategori ve numara";
+ Text[ language_user1 ] = " ";
+};
+String FMT_REF_ONLYCAPTION
+{
+ TEXT = "Beschriftungstext" ;
+ TEXT [ English ] = "Only Caption" ;
+ Text [ dutch ] = "Bijschrifttekst" ;
+ Text [ english_us ] = "Caption Text" ;
+ Text [ italian ] = "Dicitura" ;
+ Text [ spanish ] = "Texto de etiqueta" ;
+ Text [ french ] = "Texte de légende" ;
+ Text [ swedish ] = "Bildtext" ;
+ Text [ danish ] = "Billedtekst" ;
+ Text [ portuguese ] = "Texto para etiqueta" ;
+ Text [ portuguese_brazilian ] = "Beschriftungstext" ;
+ Text[ chinese_simplified ] = "±êÇ©ÎÄ";
+ Text[ russian ] = "Òåêñò íàçâàíèÿ";
+ Text[ polish ] = "Tekst etykiety";
+ Text[ japanese ] = "×ÍÞÙ‚Ì÷½Ä";
+ Text[ chinese_traditional ] = "¼ÐÅÒ¤å";
+ Text[ arabic ] = "äÕ ÇáÊÓãíÉ ÇáÊæÖíÍíÉ";
+ Text[ greek ] = "Êåßìåíï åðéãñáöÞò";
+ Text[ korean ] = "ĸ¼Ç ÅؽºÆ®";
+ Text[ turkish ] = "Altyazý metni";
+ Text[ language_user1 ] = " ";
+};
+String FMT_REF_ONLYSEQNO
+{
+ TEXT = "Nummer" ;
+ TEXT [ English ] = "Only Numbering" ;
+ TEXT[ english_us ] = "Numbering";
+ TEXT[ portuguese ] = "Número";
+ TEXT[ russian ] = "Íîìåð";
+ TEXT[ dutch ] = "Nummer";
+ TEXT[ french ] = "Numéro";
+ TEXT[ spanish ] = "Número";
+ TEXT[ italian ] = "Numero";
+ TEXT[ danish ] = "Nummer";
+ TEXT[ swedish ] = "Nummer";
+ TEXT[ polish ] = "Numer";
+ TEXT[ portuguese_brazilian ] = "Only Numbering";
+ TEXT[ japanese ] = "”Ô†";
+ TEXT[ chinese_simplified ] = "񅧏";
+ TEXT[ chinese_traditional ] = "½s¸¹";
+ TEXT[ arabic ] = "ÇáÑÞã";
+ TEXT[ greek ] = "Áñéèìüò";
+ TEXT[ korean ] = "¹øÈ£ ¸Å±â±â";
+ TEXT[ turkish ] = "Numara";
+ TEXT[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Platzhalter
+ --------------------------------------------------------------------*/
+String FMT_MARK_TEXT
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_TABLE
+{
+ Text = "Tabelle" ;
+ Text [ English ] = "Table" ;
+ Text [ norwegian ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ portuguese_brazilian ] = "Tabela" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ finnish ] = "Taulukko" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ french ] = "Tableau" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ english_us ] = "Table" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_FRAME
+{
+ Text = "Rahmen" ;
+ Text [ English ] = "Frame" ;
+ Text [ norwegian ] = "Ramme" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ portuguese_brazilian ] = "Moldura" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ finnish ] = "Kehys" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ english_us ] = "Frame" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Ðàìêà";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÅؽºÆ® »óÀÚ";
+ Text[ turkish ] = "Çerçeve";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_GRAFIC
+{
+ Text = "Grafik" ;
+ Text [ English ] = "Graphic" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ portuguese_brazilian ] = "Gráfico" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Grafik" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ english_us ] = "Graphics" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String FMT_MARK_OLE
+{
+ Text = "Objekt" ;
+ Text [ English ] = "Object" ;
+ Text [ norwegian ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ portuguese_brazilian ] = "Objeto" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text [ finnish ] = "Objekti" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ french ] = "Objet" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ dutch ] = "Object" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ english_us ] = "Object" ;
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ russian ] = "Îáúåêò";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ª«¥ó";
+ Text[ arabic ] = "ßÇÆä";
+ Text[ greek ] = "Áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼";
+ Text[ turkish ] = "Nesne";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Nur-Text
+ --------------------------------------------------------------------*/
+String FMT_TEXT
+{
+ TEXT = "Text" ;
+};
+/*--------------------------------------------------------------------
+ Beschreibung: globale String-Ressourcen
+ --------------------------------------------------------------------*/
+String STR_ALL
+{
+ Text = "Alle" ;
+ Text [ ENGLISH ] = "All" ;
+ Text [ norwegian ] = "All" ;
+ Text [ italian ] = "Tutto" ;
+ Text [ portuguese_brazilian ] = "Tudo" ;
+ Text [ portuguese ] = "Todos" ;
+ Text [ finnish ] = "Kaikki" ;
+ Text [ danish ] = "Alle" ;
+ Text [ french ] = "Tout" ;
+ Text [ swedish ] = "Alla" ;
+ Text [ dutch ] = "Alles" ;
+ Text [ spanish ] = "Todo" ;
+ Text [ english_us ] = "All" ;
+ Text[ chinese_simplified ] = "È«²¿";
+ Text[ russian ] = "Âñå";
+ Text[ polish ] = "Wszystkie";
+ Text[ japanese ] = "‚·‚ׂÄ";
+ Text[ chinese_traditional ] = "¥þ³¡";
+ Text[ arabic ] = "Çáßá";
+ Text[ greek ] = "¼ëá";
+ Text[ korean ] = "Àüü";
+ Text[ turkish ] = "Tümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT
+{
+ Text = "Einfügen" ;
+ Text [ ENGLISH ] = "Insert" ;
+ Text [ norwegian ] = "Sett inn" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Inserir" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text [ finnish ] = "Lisää" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ french ] = "Insérer" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ english_us ] = "Insert" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâêà";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+};
+/*--------------------------------------------------------------------
+ Beschreibung: AustauschStrings fuer Edit/NameFT
+ --------------------------------------------------------------------*/
+String STR_COND
+{
+ TEXT = "Bedin~gung" ;
+ TEXT [ English ] = "Conditio~n" ;
+ TEXT [ norwegian ] = "Vilkår" ;
+ TEXT [ italian ] = "Condizione" ;
+ TEXT [ portuguese_brazilian ] = "condição" ;
+ TEXT [ portuguese ] = "~Condição" ;
+ TEXT [ finnish ] = "Ehto" ;
+ TEXT [ danish ] = "Betingelse" ;
+ TEXT [ french ] = "~Condition" ;
+ TEXT [ swedish ] = "Villkor" ;
+ TEXT [ dutch ] = "~Voorwaarde" ;
+ TEXT [ spanish ] = "~Condición" ;
+ TEXT [ english_us ] = "~Condition" ;
+ TEXT[ chinese_simplified ] = "Ìõ¼þ(~C)";
+ TEXT[ russian ] = "Óñëîâèå";
+ TEXT[ polish ] = "Warunek";
+ TEXT[ japanese ] = "ðŒ(~C)";
+ TEXT[ chinese_traditional ] = "±ø¥ó(~C)";
+ TEXT[ arabic ] = "ÔÑØ";
+ TEXT[ greek ] = "¼ñïò";
+ TEXT[ korean ] = "Á¶°Ç(~C)";
+ TEXT[ turkish ] = "Koþul";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TEXT
+{
+ TEXT = "Dann, Sonst" ;
+ TEXT [ English ] = "Then,Else" ;
+ TEXT [ norwegian ] = "Then,Else" ;
+ TEXT [ italian ] = "Poi, altrimenti" ;
+ TEXT [ portuguese_brazilian ] = "Entao,Senão" ;
+ TEXT [ portuguese ] = "Então, Senão" ;
+ TEXT [ finnish ] = "Sitten,Muuten" ;
+ TEXT [ danish ] = "Så, Ellers" ;
+ TEXT [ french ] = "Alors, sinon" ;
+ TEXT [ swedish ] = "Sedan, annars" ;
+ TEXT [ dutch ] = "Dan, Anders" ;
+ TEXT [ spanish ] = "Entonces, si no" ;
+ TEXT [ english_us ] = "Then, Else" ;
+ TEXT[ chinese_simplified ] = "ÄÇô¾Í£¬·ñÔò";
+ TEXT[ russian ] = "Çàòåì, Èíà÷å";
+ TEXT[ polish ] = "Nastêpnie, Poza tym";
+ TEXT[ japanese ] = "ðŒ‚ð–ž‚½‚·ŽžA–ž‚½‚³‚È‚¢Žž";
+ TEXT[ chinese_traditional ] = "¨º»ò´N¡A§_«h";
+ TEXT[ arabic ] = "Ëã¡ ÛíÑ Ðáß";
+ TEXT[ greek ] = "Ôüôå, Áëëéþò";
+ TEXT[ korean ] = "´ÙÀ½, ±âŸ";
+ TEXT[ turkish ] = "O halde, Yoksa";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DDE_CMD
+{
+ TEXT = "DDE Anweisung" ;
+ TEXT [ English ] = "DDE instruction" ;
+ TEXT [ norwegian ] = "DDE instruction" ;
+ TEXT [ italian ] = "Istruzione DDE" ;
+ TEXT [ portuguese_brazilian ] = "Instruções do DDE" ;
+ TEXT [ portuguese ] = "Instruções DDE" ;
+ TEXT [ finnish ] = "DDE-käsky" ;
+ TEXT [ danish ] = "DDE-sætning" ;
+ TEXT [ french ] = "Instruction DDE" ;
+ TEXT [ swedish ] = "DDE-instruktion" ;
+ TEXT [ dutch ] = "DDE-instructie" ;
+ TEXT [ spanish ] = "Instrucción DDE" ;
+ TEXT [ english_us ] = "DDE Statement" ;
+ TEXT[ chinese_simplified ] = "DDE Ö¸Áî";
+ TEXT[ russian ] = "Óêàçàíèå DDE";
+ TEXT[ polish ] = "Instrukcja DDE";
+ TEXT[ japanese ] = "DDEŽwŽ¦";
+ TEXT[ chinese_traditional ] = "DDE «ü¥O";
+ TEXT[ arabic ] = "ÚÈÇÑÉ DDE";
+ TEXT[ greek ] = "ÅíôïëÞ DDE";
+ TEXT[ korean ] = "DDE ¹®Àå";
+ TEXT[ turkish ] = "DDE deyimi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSTEXT
+{
+ TEXT = "Text einf~ügen" ;
+ TEXT [ English ] = "Inser~t text" ;
+ TEXT [ norwegian ] = "Insert text" ;
+ TEXT [ italian ] = "Inserisci testo" ;
+ TEXT [ portuguese_brazilian ] = "Inserir texto" ;
+ TEXT [ portuguese ] = "Inserir ~texto" ;
+ TEXT [ finnish ] = "Lisää teksti" ;
+ TEXT [ danish ] = "Indsæt tekst" ;
+ TEXT [ french ] = "Insérer un ~texte" ;
+ TEXT [ swedish ] = "Infoga ~text" ;
+ TEXT [ dutch ] = "~Tekst invoegen" ;
+ TEXT [ spanish ] = "I~nsertar texto" ;
+ TEXT [ english_us ] = "Insert t~ext" ;
+ TEXT[ chinese_simplified ] = "²åÈëÎÄ×Ö(~E)";
+ TEXT[ russian ] = "Âñòàâèòü òåêñò";
+ TEXT[ polish ] = "Wstaw tekst";
+ TEXT[ japanese ] = "‘}“ü‚·‚é÷½Ä";
+ TEXT[ chinese_traditional ] = "´¡¤J¤å¦r(~E)";
+ TEXT[ arabic ] = "ÅÏÑÇÌ äÕ";
+ TEXT[ greek ] = "ÅéóáãùãÞ êåéìÝíïõ";
+ TEXT[ korean ] = "ÅؽºÆ® »ðÀÔ(~E)";
+ TEXT[ turkish ] = "Metin ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MACNAME
+{
+ TEXT = "~Makroname" ;
+ TEXT [ English ] = "~Macro name" ;
+ TEXT [ norwegian ] = "Macro name" ;
+ TEXT [ italian ] = "Nome ~macro" ;
+ TEXT [ portuguese_brazilian ] = "Nome da macro" ;
+ TEXT [ portuguese ] = "Nome da ~macro" ;
+ TEXT [ finnish ] = "Makron nimi" ;
+ TEXT [ danish ] = "Makronavn" ;
+ TEXT [ french ] = "~Nom de la macro" ;
+ TEXT [ swedish ] = "~Makronamn" ;
+ TEXT [ dutch ] = "~Naam macro" ;
+ TEXT [ spanish ] = "Nombre de la ~macro" ;
+ TEXT [ english_us ] = "~Macro name" ;
+ TEXT[ chinese_simplified ] = "ºêÃû³Æ(~M)";
+ TEXT[ russian ] = "Èìÿ ìàêðîñà";
+ TEXT[ polish ] = "Nazwa makra";
+ TEXT[ japanese ] = "ϸۖ¼(~M)";
+ TEXT[ chinese_traditional ] = "¥¨¶°¦WºÙ(~M)";
+ TEXT[ arabic ] = "ÇÓã ÇáãÇßÑæ";
+ TEXT[ greek ] = "¼íïìá ìáêñïåíôïëÞò";
+ TEXT[ korean ] = "¸ÅÅ©·Î À̸§(~M)";
+ TEXT[ turkish ] = "Makro ~adý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_PROMPT
+{
+ TEXT = "H~inweis" ;
+ TEXT [ English ] = "Pr~ompt" ;
+ TEXT [ norwegian ] = "Prompt" ;
+ TEXT [ italian ] = "Nota" ;
+ TEXT [ portuguese_brazilian ] = "Aviso" ;
+ TEXT [ portuguese ] = "~Anotação" ;
+ TEXT [ finnish ] = "Kehote" ;
+ TEXT [ danish ] = "Henvisning" ;
+ TEXT [ french ] = "~Annotation" ;
+ TEXT [ swedish ] = "Hänv~isning" ;
+ TEXT [ dutch ] = "~Aanwijzing" ;
+ TEXT [ spanish ] = "I~ndicación" ;
+ TEXT [ english_us ] = "~Reference" ;
+ TEXT[ chinese_simplified ] = "Ìáʾ(~R)";
+ TEXT[ russian ] = "Óêàçàíèå";
+ TEXT[ polish ] = "Wskazówka";
+ TEXT[ japanese ] = "ŽQÆ(~R)";
+ TEXT[ chinese_traditional ] = "´£¥Ü(~R)";
+ TEXT[ arabic ] = "ãáÇÍÙÉ";
+ TEXT[ greek ] = "Õðüäå~éîç";
+ TEXT[ korean ] = "ÂüÁ¶(~R)";
+ TEXT[ turkish ] = "Bilgi";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETNO
+{
+ TEXT = "Satznummer" ;
+ TEXT [ English ] = "Setnumber" ;
+ TEXT [ norwegian ] = "Setnumber" ;
+ TEXT [ italian ] = "Numero di record" ;
+ TEXT [ portuguese_brazilian ] = "Definir número" ;
+ TEXT [ portuguese ] = "Número de registo" ;
+ TEXT [ finnish ] = "Joukon numero" ;
+ TEXT [ danish ] = "Datapostnummer" ;
+ TEXT [ french ] = "Numéro de l'enregistrement" ;
+ TEXT [ swedish ] = "Datapostnummer" ;
+ TEXT [ dutch ] = "Recordnummer" ;
+ TEXT [ spanish ] = "Número de registro" ;
+ TEXT [ english_us ] = "Record number" ;
+ TEXT[ chinese_simplified ] = "ÌõÄ¿±àºÅ";
+ TEXT[ russian ] = "Íîìåð ïðåäëîæåíèÿ";
+ TEXT[ polish ] = "Numer rekordu";
+ TEXT[ japanese ] = "Úº°ÄÞ”Ô†";
+ TEXT[ chinese_traditional ] = "¶µ¥Ø¸¹½X";
+ TEXT[ arabic ] = "ÑÞã ÇáÓÌá";
+ TEXT[ greek ] = "Áñéèìüò åããñáöÞò";
+ TEXT[ korean ] = "·¹ÄÚµå ¹øÈ£";
+ TEXT[ turkish ] = "Veri kaydý numarasý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_OFFSET
+{
+ TEXT = "Ko~rrektur" ;
+ TEXT [ English ] = "Offs~et" ;
+ TEXT [ norwegian ] = "Offset" ;
+ TEXT [ italian ] = "Correzione" ;
+ TEXT [ portuguese_brazilian ] = "Deslocar" ;
+ TEXT [ portuguese ] = "~Correcção" ;
+ TEXT [ finnish ] = "Siirroa" ;
+ TEXT [ danish ] = "Korrektion" ;
+ TEXT [ french ] = "Dé~calage" ;
+ TEXT [ swedish ] = "Ko~rrigering" ;
+ TEXT [ dutch ] = "~Correctie" ;
+ TEXT [ spanish ] = "C~orrección" ;
+ TEXT [ english_us ] = "O~ffset" ;
+ TEXT[ chinese_simplified ] = "ÐÞ¸Ä(~F)";
+ TEXT[ russian ] = "Êîððåêòèðîâêà";
+ TEXT[ polish ] = "Korekta";
+ TEXT[ japanese ] = "C³(~F)";
+ TEXT[ chinese_traditional ] = "­×§ï(~F)";
+ TEXT[ arabic ] = "ÊÕÍíÍ";
+ TEXT[ greek ] = "Äéüñèùóç";
+ TEXT[ korean ] = "¼öÁ¤(~F)";
+ TEXT[ turkish ] = "Düzeltme";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_VALUE
+{
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "~Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Værdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Värde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "Value" ;
+ Text[ chinese_simplified ] = "ÊýÖµ";
+ Text[ russian ] = "Çíà÷åíèå";
+ Text[ polish ] = ", WartoϾ ";
+ Text[ japanese ] = "’l";
+ Text[ chinese_traditional ] = "¼Æ­È";
+ Text[ arabic ] = "ÇáÞíãÉ";
+ Text[ greek ] = "ÔéìÞ";
+ Text[ korean ] = "°ª";
+ Text[ turkish ] = "De~ðer";
+ Text[ language_user1 ] = " ";
+};
+String STR_FORMULA
+{
+ TEXT = "Formel" ;
+ TEXT [ English ] = "Formula" ;
+ Text [ portuguese ] = "Fórmula" ;
+ Text [ english_us ] = "Formula" ;
+ Text [ portuguese_brazilian ] = "Fórmula do Texto" ;
+ Text [ swedish ] = "Formel" ;
+ Text [ danish ] = "Formel" ;
+ Text [ italian ] = "Formula" ;
+ Text [ spanish ] = "Fórmula" ;
+ Text [ french ] = "Formule " ;
+ Text [ dutch ] = "Formule" ;
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ russian ] = "Ôîðìóëà";
+ Text[ polish ] = "Formu³a";
+ Text[ japanese ] = "”Ž®";
+ Text[ chinese_traditional ] = "¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "¼ö½Ä";
+ Text[ turkish ] = "Formül";
+ Text[ language_user1 ] = " ";
+};
+String STR_LEVEL
+{
+ TEXT = "Ebene" ;
+ TEXT [ English ] = "Level" ;
+ TEXT [ norwegian ] = "Level" ;
+ TEXT [ italian ] = "Livello " ;
+ TEXT [ portuguese_brazilian ] = "Nível" ;
+ TEXT [ portuguese ] = "Nível " ;
+ TEXT [ finnish ] = "Taso" ;
+ TEXT [ danish ] = "Niveau" ;
+ TEXT [ french ] = "Niveau" ;
+ TEXT [ swedish ] = "Nivå " ;
+ TEXT [ dutch ] = "Niveau" ;
+ TEXT [ spanish ] = "Nivel " ;
+ TEXT [ english_us ] = "Layer " ;
+ TEXT[ chinese_simplified ] = "¼¶";
+ TEXT[ russian ] = "Ñëîé";
+ TEXT[ polish ] = "Poziom ";
+ TEXT[ japanese ] = "ÚÍÞÙ";
+ TEXT[ chinese_traditional ] = "¯Å";
+ TEXT[ arabic ] = "ÇáãÓÊæì ";
+ TEXT[ greek ] = "Åðßðåäï";
+ TEXT[ korean ] = "°èÃþ";
+ TEXT[ turkish ] = "Düzey";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_URLPROMPT
+{
+ TEXT = "~URL" ;
+ TEXT [ English ] = "~URL" ;
+ Text [ english_us ] = "~URL" ;
+ Text [ italian ] = "~URL" ;
+ Text [ spanish ] = "~URL" ;
+ Text [ french ] = "~URL" ;
+ Text [ dutch ] = "~URL" ;
+ Text [ swedish ] = "~URL" ;
+ Text [ danish ] = "URL" ;
+ Text [ portuguese ] = "~URL" ;
+ Text [ portuguese_brazilian ] = "~URL" ;
+ Text[ chinese_simplified ] = "~URL";
+ Text[ russian ] = "~URL";
+ Text[ polish ] = "URL";
+ Text[ japanese ] = "URL(~U)";
+ Text[ chinese_traditional ] = "~URL";
+ Text[ arabic ] = "URL~";
+ Text[ greek ] = "URL";
+ Text[ korean ] = "~URL";
+ Text[ turkish ] = "~URL";
+ Text[ language_user1 ] = " ";
+};
+String STR_ALL_DATABASE
+{
+ TEXT = "<Alle>" ;
+ TEXT [ English ] = "<All>" ;
+ Text [ dutch ] = "<Alle>" ;
+ Text [ english_us ] = "<All>" ;
+ Text [ italian ] = "<Tutti>" ;
+ Text [ spanish ] = "<Todos>" ;
+ Text [ french ] = "<Toutes>" ;
+ Text [ swedish ] = "<Alla>" ;
+ Text [ danish ] = "<Alle>" ;
+ Text [ portuguese ] = "<Todos>" ;
+ Text [ portuguese_brazilian ] = "<Alle>" ;
+ Text[ chinese_simplified ] = "<È«²¿>";
+ Text[ russian ] = "<Âñå>";
+ Text[ polish ] = "<Wszystkie>";
+ Text[ japanese ] = "<‚·‚ׂÄ>";
+ Text[ chinese_traditional ] = "<¥þ³¡>";
+ Text[ arabic ] = "<Çáßá>";
+ Text[ greek ] = "<¼ëá>";
+ Text[ korean ] = "<Àüü>";
+ Text[ turkish ] = "<Tümü>";
+ Text[ language_user1 ] = " ";
+};
+ImageButton BTN_FLDEDT_PREV
+{
+ Pos = MAP_APPFONT ( 263 , 115 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_PREV ;
+ Helpid = HID_DLG_FLDEDT_PREV ;
+};
+ImageButton BTN_FLDEDT_NEXT
+{
+ Pos = MAP_APPFONT ( 294 , 115 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_NEXT ;
+ Helpid = HID_DLG_FLDEDT_NEXT ;
+};
+PushButton PB_FLDEDT_ADDRESS
+{
+ TEXT = "Bearbeiten" ;
+ TEXT [ English ] = "Edit" ;
+ Pos = MAP_APPFONT ( 294 , 100 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Edit" ;
+ Text [ portuguese_brazilian ] = "Bearbeiten" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ french ] = "Modifier" ;
+ Text [ dutch ] = "Bewerken" ;
+ Text [ portuguese ] = "Editar" ;
+ Helpid = HID_DLG_FLDEDT_ADDRESS ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "Edycja";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ greek ] = "Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
new file mode 100644
index 000000000000..2b5f7b964a1f
--- /dev/null
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -0,0 +1,1562 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldvar.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+
+#ifndef _LINKMGR_HXX //autogen
+#include <so3/linkmgr.hxx>
+#endif
+
+#ifndef _USRFLD_HXX
+#include <usrfld.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _DDEFLD_HXX
+#include <ddefld.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _DOCARY_HXX
+#include <docary.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDVAR_HXX
+#include <fldvar.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _FLDTDLG_HRC
+#include <fldtdlg.hrc>
+#endif
+
+#define USER_DATA_VERSION_1 "1"
+#define USER_DATA_VERSION USER_DATA_VERSION_1
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFldVarPage::SwFldVarPage(Window* pParent, const SfxItemSet& rCoreSet ) :
+ SwFldPage ( pParent, SW_RES( TP_FLD_VAR ), rCoreSet ),
+ aTypeFT (this, SW_RES(FT_VARTYPE)),
+ aTypeLB (this, SW_RES(LB_VARTYPE)),
+ aSelectionFT (this, SW_RES(FT_VARSELECTION)),
+ aSelectionLB (this, SW_RES(LB_VARSELECTION)),
+ aNameFT (this, SW_RES(FT_VARNAME)),
+ aNameED (this, SW_RES(ED_VARNAME)),
+ aValueFT (this, SW_RES(FT_VARVALUE)),
+ aValueED (this, SW_RES(ED_VARVALUE)),
+ aFormatFT (this, SW_RES(FT_VARFORMAT)),
+ aNumFormatLB (this, SW_RES(LB_VARNUMFORMAT)),
+ aFormatLB (this, SW_RES(LB_VARFORMAT)),
+ aChapterHeaderFT(this, SW_RES(FT_VARCHAPTERHEADER)),
+ aChapterLevelFT (this, SW_RES(FT_VARCHAPTERLEVEL)),
+ aChapterLevelLB (this, SW_RES(LB_VARCHAPTERLEVEL)),
+ aInvisibleCB (this, SW_RES(CB_VARINVISIBLE)),
+ aSeparatorFT (this, SW_RES(FT_VARSEPARATOR)),
+ aSeparatorED (this, SW_RES(ED_VARSEPARATOR)),
+ aNewDelTBX (this, SW_RES(TBX_VARNEWDEL)),
+ bInit (TRUE)
+{
+ FreeResource();
+
+ aNewDelTBX.SetSizePixel( aNewDelTBX.CalcWindowSizePixel() );
+
+ long nDelta = ( aValueED.GetSizePixel().Height() -
+ aNewDelTBX.GetSizePixel().Height() ) / 2;
+ Point aNewPnt = aNewDelTBX.GetPosPixel();
+ aNewPnt.Y() += nDelta;
+ aNewDelTBX.SetPosPixel( aNewPnt );
+
+ sOldValueFT = aValueFT.GetText();
+ sOldNameFT = aNameFT.GetText();
+
+ for (USHORT i = 1; i <= MAXLEVEL; i++)
+ aChapterLevelLB.InsertEntry(String::CreateFromInt32(i));
+
+ aChapterLevelLB.SelectEntryPos(0);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwFldVarPage::~SwFldVarPage()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwFldVarPage::Reset(const SfxItemSet& rSet)
+{
+ SavePos(&aTypeLB);
+
+ Init(); // Allgemeine initialisierung
+
+ aTypeLB.SetUpdateMode(FALSE);
+ aTypeLB.Clear();
+
+ USHORT nPos, nTypeId;
+
+ if (!IsFldEdit())
+ {
+ // TypeListBox initialisieren
+ const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
+
+ for (short i = rRg.nStart; i < rRg.nEnd; ++i)
+ {
+ nTypeId = GetFldMgr().GetTypeId(i);
+
+#ifndef DDE_AVAILABLE
+ if (nTypeId != TYP_DDEFLD)
+#endif
+ { // Nur unter WIN, WNT und OS/2 DDE-Fields
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+ }
+ }
+ else
+ {
+ nTypeId = GetCurField()->GetTypeId();
+ if (nTypeId == TYP_SETINPFLD)
+ nTypeId = TYP_INPUTFLD;
+ nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ aTypeLB.SetEntryData(nPos, (void*)nTypeId);
+ }
+
+ // alte Pos selektieren
+ RestorePos(&aTypeLB);
+
+ aTypeLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aTypeLB.SetSelectHdl (LINK(this, SwFldVarPage, TypeHdl));
+ aSelectionLB.SetSelectHdl (LINK(this, SwFldVarPage, SubTypeHdl));
+ aSelectionLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aFormatLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aNumFormatLB.SetDoubleClickHdl (LINK(this, SwFldVarPage, InsertHdl));
+ aNameED.SetModifyHdl (LINK(this, SwFldVarPage, ModifyHdl));
+ aValueED.SetModifyHdl (LINK(this, SwFldVarPage, ModifyHdl));
+ aNewDelTBX.SetClickHdl (LINK(this, SwFldVarPage, TBClickHdl));
+ aChapterLevelLB.SetSelectHdl (LINK(this, SwFldVarPage, ChapterHdl));
+ aSeparatorED.SetModifyHdl (LINK(this, SwFldVarPage, SeparatorHdl));
+
+ if( !IsRefresh() )
+ {
+ String sUserData = GetUserData();
+ if(!IsRefresh() && sUserData.GetToken(0, ';').EqualsIgnoreCaseAscii(USER_DATA_VERSION_1))
+ {
+ String sVal = sUserData.GetToken(1, ';');
+ USHORT nVal = sVal.ToInt32();
+ if(nVal != USHRT_MAX)
+ {
+ for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++)
+ if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i))
+ {
+ aTypeLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ TypeHdl(0);
+
+ aTypeLB.SetUpdateMode(TRUE);
+
+ if (IsFldEdit())
+ {
+ aSelectionLB.SaveValue();
+ aFormatLB.SaveValue();
+ nOldFormat = aNumFormatLB.GetFormat();
+ aNameED.SaveValue();
+ aValueED.SaveValue();
+ aInvisibleCB.SaveValue();
+ aChapterLevelLB.SaveValue();
+ aSeparatorED.SaveValue();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, TypeHdl, ListBox *, pBox )
+{
+ // Alte ListBoxPos sichern
+ const USHORT nOld = GetTypeSel();
+
+ // Aktuelle ListBoxPos
+ SetTypeSel(aTypeLB.GetSelectEntryPos());
+
+ if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
+ {
+ SetTypeSel(0);
+ aTypeLB.SelectEntryPos(0);
+ }
+
+ if (nOld != GetTypeSel() || nOld == LISTBOX_ENTRY_NOTFOUND)
+ {
+ bInit = TRUE;
+ if (nOld != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ aValueED.EnableDrop(FALSE);
+ UpdateSubType(); // Auswahl-Listboxen initialisieren
+ }
+
+ bInit = FALSE;
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, SubTypeHdl, ListBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+ USHORT nSelPos = aSelectionLB.GetSelectEntryPos();
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ nSelPos = (USHORT)(ULONG)aSelectionLB.GetEntryData(nSelPos);
+
+ if (IsFldEdit() && (!pBox || bInit))
+ {
+ if (nTypeId != TYP_FORMELFLD)
+ aNameED.SetText(GetFldMgr().GetCurFldPar1());
+
+ aValueED.SetText(GetFldMgr().GetCurFldPar2());
+ }
+
+ if (aNameFT.GetText() != sOldNameFT)
+ aNameFT.SetText(sOldNameFT);
+ if (aValueFT.GetText() != sOldValueFT)
+ aValueFT.SetText(sOldValueFT);
+
+ aNumFormatLB.SetUpdateMode(FALSE);
+ aFormatLB.SetUpdateMode(FALSE);
+ FillFormatLB(nTypeId);
+
+ USHORT nSize = aFormatLB.GetEntryCount();
+
+ BOOL bValue = FALSE, bName = FALSE, bNumFmt = FALSE,
+ bInvisible = FALSE, bSeparator = FALSE, bChapterLevel = FALSE;
+ BOOL bFormat = nSize != 0;
+
+ switch (nTypeId)
+ {
+ case TYP_USERFLD:
+ {
+ // Benutzertyp aendern oder anlegen
+ SwUserFieldType* pType = (SwUserFieldType*)
+ GetFldMgr().GetFldType(RES_USERFLD, nSelPos);
+
+ if (pType)
+ {
+ if (!IsFldEdit())
+ {
+ if (pBox || (bInit && !IsRefresh())) // Nur bei Interaktion mit Maus
+ {
+ aNameED.SetText(pType->GetName());
+
+ if (pType->GetType() == UF_STRING)
+ {
+ aValueED.SetText(pType->GetContent());
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ else
+ aValueED.SetText(pType->GetContent());
+// aValueED.SetText(pType->GetContent(aNumFormatLB.GetFormat()));
+ }
+ }
+ else
+ aValueED.SetText(pType->GetContent());
+ }
+ else
+ {
+ if (pBox) // Nur bei Interaktion mit Maus
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+ }
+ bValue = bName = bNumFmt = bInvisible = TRUE;
+
+ aValueED.EnableDrop(TRUE);
+ break;
+ }
+
+ case TYP_SETFLD:
+ bValue = TRUE;
+
+ bNumFmt = bInvisible = TRUE;
+
+ if (!IsFldDlgHtmlMode())
+ bName = TRUE;
+ else
+ {
+ aNumFormatLB.Clear();
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_SETVAR_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ // gibt es ein entprechendes SetField
+ if (IsFldEdit() || pBox) // Nur bei Interaktion mit Maus
+ {
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ String sName(aSelectionLB.GetSelectEntry());
+ aNameED.SetText(sName);
+
+ if (!IsFldDlgHtmlMode())
+ {
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ ::GetActiveView()->GetWrtShell().
+ GetFldType(RES_SETEXPFLD, sName);
+
+ if (pSetTyp && pSetTyp->GetType() == GSE_STRING)
+ aNumFormatLB.SelectEntryPos(0); // Textuell
+ }
+ }
+ }
+ if (IsFldEdit())
+ {
+ // GetFormula fuehrt bei Datumsformaten zu Problemen,
+ // da nur der numerische Wert ohne Formatierung returned wird.
+ // Muss aber verwendet werden, da sonst bei GetPar2 nur der vom
+ // Kalkulator errechnete Wert angezeigt werden wuerde
+ // (statt test2 = test + 1)
+ aValueED.SetText(((SwSetExpField*)GetCurField())->GetFormula());
+ }
+ aValueED.EnableDrop(TRUE);
+ break;
+
+ case TYP_FORMELFLD:
+ {
+ bValue = TRUE;
+ bNumFmt = TRUE;
+ aValueFT.SetText(SW_RESSTR(STR_FORMULA));
+ aValueED.EnableDrop(TRUE);
+ }
+ break;
+
+ case TYP_GETFLD:
+ {
+ if (!IsFldEdit())
+ {
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ }
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ String sName(aSelectionLB.GetSelectEntry());
+ if (!IsFldEdit())
+ aNameED.SetText(sName);
+
+ // gibt es ein entprechendes SetField
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ ::GetActiveView()->GetWrtShell().
+ GetFldType(RES_SETEXPFLD, sName);
+
+ if(pSetTyp)
+ {
+ if (pSetTyp->GetType() & GSE_STRING) // Textuell?
+ bFormat = TRUE;
+ else // Numerisch
+ bNumFmt = TRUE;
+ }
+ }
+ else
+ bFormat = FALSE;
+
+ EnableInsert(bFormat|bNumFmt);
+ }
+ break;
+
+ case TYP_INPUTFLD:
+ aValueFT.SetText(SW_RESSTR(STR_PROMPT));
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ bValue = bNumFmt = TRUE;
+
+ String sName;
+
+ sName = aSelectionLB.GetSelectEntry();
+ aNameED.SetText( sName );
+
+ // User- oder SetField ?
+ USHORT nInpType = 0;
+ nInpType = GetFldMgr().GetFldType(RES_USERFLD, sName) ? 0 : TYP_SETINPFLD;
+
+ if (nInpType) // SETEXPFLD
+ {
+ // gibt es ein entprechendes SetField
+ SwSetExpFieldType* pSetTyp = (SwSetExpFieldType*)
+ GetFldMgr().GetFldType(RES_SETEXPFLD, sName);
+
+ if(pSetTyp)
+ {
+ if (pSetTyp->GetType() == GSE_STRING) // Textuell?
+ {
+ aNumFormatLB.Clear();
+
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_USERVAR_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ }
+ if (IsFldEdit() && (!pBox || bInit))
+ aValueED.SetText(((SwSetExpField*)GetCurField())->GetPromptText());
+ }
+ else // USERFLD
+ bFormat = bNumFmt = FALSE;
+ }
+ break;
+
+ case TYP_DDEFLD:
+ aValueFT.SetText(SW_RESSTR(STR_DDE_CMD));
+
+ if (IsFldEdit() || pBox) // Nur bei Interaktion mit Maus
+ {
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ SwDDEFieldType* pType =
+ (SwDDEFieldType*) GetFldMgr().GetFldType(RES_DDEFLD, nSelPos);
+
+ if(pType)
+ {
+ aNameED.SetText(pType->GetName());
+
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet
+ String sCmd( pType->GetCmd() );
+ USHORT nTmpPos = sCmd.SearchAndReplace( cTokenSeperator, ' ' );
+ sCmd.SearchAndReplace( cTokenSeperator, ' ', nTmpPos );
+
+ aValueED.SetText( sCmd );
+ aFormatLB.SelectEntryPos(pType->GetType());
+ }
+ }
+ }
+ bName = bValue = TRUE;
+ break;
+
+ case TYP_SEQFLD:
+ {
+ // aNumRB.Check(TRUE);
+ bName = bValue = bSeparator = bChapterLevel = TRUE;
+
+ SwFieldType* pFldTyp;
+ if( IsFldEdit() )
+ pFldTyp = GetCurField()->GetTyp();
+ else
+ {
+ String sFldTypeName( aSelectionLB.GetEntry( nSelPos ));
+ if( sFldTypeName.Len() )
+ pFldTyp = GetFldMgr().GetFldType( RES_SETEXPFLD,
+ sFldTypeName );
+ else
+ pFldTyp = 0;
+ }
+
+ if( IsFldEdit() )
+ aValueED.SetText( ((SwSetExpField*)GetCurField())->
+ GetFormula() );
+
+ if( IsFldEdit() || pBox ) // Nur bei Interaktion mit Maus
+ aNameED.SetText( aSelectionLB.GetSelectEntry() );
+
+ if( pFldTyp )
+ {
+ BYTE nLevel = ((SwSetExpFieldType*)pFldTyp)->GetOutlineLvl();
+ if( 0x7f == nLevel )
+ aChapterLevelLB.SelectEntryPos( 0 );
+ else
+ aChapterLevelLB.SelectEntryPos( nLevel + 1 );
+ sal_Unicode cDelim = ((SwSetExpFieldType*)pFldTyp)->GetDelimiter();
+ if(cDelim)
+ aSeparatorED.SetText( cDelim );
+ else
+ aSeparatorED.SetText( aEmptyStr );
+ ChapterHdl();
+ }
+ }
+ break;
+
+ case TYP_SETREFPAGEFLD:
+ {
+ bValue = FALSE;
+ aValueFT.SetText( SW_RESSTR( STR_OFFSET ));
+
+ if (IsFldEdit() || pBox) // Nur bei Interaktion mit Maus
+ aNameED.SetText(aEmptyStr);
+
+ if (nSelPos != 0 && nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ bValue = TRUE; // SubType OFF - kennt keinen Offset
+ if (IsFldEdit())
+ aValueED.SetText(String::CreateFromInt32(((SwRefPageSetField*)GetCurField())->GetOffset()));
+ }
+ }
+ break;
+
+ case TYP_GETREFPAGEFLD:
+ aNameED.SetText(aEmptyStr);
+ aValueED.SetText(aEmptyStr);
+ break;
+ }
+
+ aNumFormatLB.Show(bNumFmt);
+ aFormatLB.Show(!bNumFmt);
+
+ if (IsFldEdit())
+ bName = FALSE;
+
+ aFormatLB.Enable(bFormat);
+ aFormatFT.Enable(bFormat|bNumFmt);
+ aNameFT.Enable(bName);
+ aNameED.Enable(bName);
+ aValueFT.Enable(bValue);
+ aValueED.Enable(bValue);
+
+ Size aSz(aFormatLB.GetSizePixel());
+
+ if (bChapterLevel)
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 37), MAP_APPFONT).Height();
+ else
+ aSz.Height() = aFormatLB.LogicToPixel(Size(1, 71), MAP_APPFONT).Height();
+
+ aFormatLB.SetSizePixel(aSz);
+
+ aInvisibleCB.Show(!bSeparator);
+ aSeparatorFT.Show(bSeparator);
+ aSeparatorED.Show(bSeparator);
+ aChapterHeaderFT.Show(bChapterLevel);
+ aChapterLevelFT.Show(bChapterLevel);
+ aChapterLevelLB.Show(bChapterLevel);
+ aInvisibleCB.Enable(bInvisible);
+
+ ModifyHdl(); // Anwenden/Einfuegen/Loeschen Status update
+
+ aNumFormatLB.SetUpdateMode(TRUE);
+ aFormatLB.SetUpdateMode(TRUE);
+
+ if(aSelectionLB.IsCallAddSelection())
+ {
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ switch (nTypeId)
+ {
+ case TYP_FORMELFLD:
+ {
+ USHORT nSelPos = aSelectionLB.GetSelectEntryPos();
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND)
+ nSelPos = (USHORT)(ULONG)aSelectionLB.GetEntryData(nSelPos);
+
+ if (nSelPos != LISTBOX_ENTRY_NOTFOUND && pBox && !bInit)
+ {
+ aValueED.ReplaceSelected(aSelectionLB.GetSelectEntry());
+ ModifyHdl();
+ }
+ }
+ break;
+ }
+ aSelectionLB.ResetCallAddSelection();
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Typen in der SelectionBox erneuern
+ --------------------------------------------------------------------*/
+
+void SwFldVarPage::UpdateSubType()
+{
+ String sOldSel;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ SetSelectionSel(aSelectionLB.GetSelectEntryPos());
+ if(GetSelectionSel() != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aSelectionLB.GetEntry(GetSelectionSel());
+
+ // Auswahl-Listbox fuellen
+ aSelectionLB.SetUpdateMode(FALSE);
+ aSelectionLB.Clear();
+
+ SvStringsDtor& rLst = GetFldMgr().GetSubTypes(nTypeId);
+ USHORT nCount = rLst.Count();
+ USHORT nPos;
+
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ if (nTypeId != TYP_INPUTFLD || i)
+ {
+ if (!IsFldEdit())
+ {
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ }
+ else
+ {
+ BOOL bInsert = FALSE;
+
+ switch (nTypeId)
+ {
+ case TYP_INPUTFLD:
+ if (*rLst[i] == GetCurField()->GetPar1())
+ bInsert = TRUE;
+ break;
+
+ case TYP_FORMELFLD:
+ bInsert = TRUE;
+ break;
+
+ case TYP_GETFLD:
+ if (*rLst[i] == ((SwFormulaField*)GetCurField())->GetFormula())
+ bInsert = TRUE;
+ break;
+
+ case TYP_SETFLD:
+ case TYP_USERFLD:
+ if (*rLst[i] == GetCurField()->GetTyp()->GetName())
+ {
+ bInsert = TRUE;
+ if (GetCurField()->GetSubType() & SUB_INVISIBLE)
+ aInvisibleCB.Check();
+ }
+ break;
+
+ case TYP_SETREFPAGEFLD:
+ if ((((SwRefPageSetField*)GetCurField())->IsOn() && i) ||
+ (!((SwRefPageSetField*)GetCurField())->IsOn() && !i))
+ sOldSel = *rLst[i];
+
+ // Alle Eintr„ge zur Auswahl zulassen:
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ break;
+
+ default:
+ if (*rLst[i] == GetCurField()->GetPar1())
+ bInsert = TRUE;
+ break;
+ }
+ if (bInsert)
+ {
+ nPos = aSelectionLB.InsertEntry(*rLst[i]);
+ aSelectionLB.SetEntryData(nPos, (void*)i);
+ if (nTypeId != TYP_FORMELFLD)
+ break;
+ }
+ }
+ }
+ }
+
+ BOOL bEnable = aSelectionLB.GetEntryCount() != 0;
+ ListBox *pLB = 0;
+
+ if (bEnable)
+ {
+ aSelectionLB.SelectEntry(sOldSel);
+ if (!aSelectionLB.GetSelectEntryCount())
+ {
+ aSelectionLB.SelectEntryPos(0);
+ pLB = &aSelectionLB; // Alle Controls neu initialisieren
+ }
+ }
+
+ aSelectionLB.Enable( bEnable );
+ aSelectionFT.Enable( bEnable );
+
+ SubTypeHdl(pLB);
+ aSelectionLB.SetUpdateMode(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldVarPage::FillFormatLB(USHORT nTypeId)
+{
+ String sOldSel, sOldNumSel;
+ ULONG nOldNumFormat = 0;
+
+ USHORT nFormatSel = aFormatLB.GetSelectEntryPos();
+ if (nFormatSel != LISTBOX_ENTRY_NOTFOUND)
+ sOldSel = aFormatLB.GetEntry(nFormatSel);
+
+ USHORT nNumFormatSel = aNumFormatLB.GetSelectEntryPos();
+ if (nNumFormatSel != LISTBOX_ENTRY_NOTFOUND)
+ {
+ sOldNumSel = aNumFormatLB.GetEntry(nNumFormatSel);
+ nOldNumFormat = aNumFormatLB.GetFormat();
+ }
+
+ // Format-Listbox fuellen
+ aFormatLB.Clear();
+ aNumFormatLB.Clear();
+ BOOL bSpecialFmt = FALSE;
+
+ if( TYP_GETREFPAGEFLD != nTypeId )
+ {
+ if (IsFldEdit())
+ {
+ bSpecialFmt = GetCurField()->GetFormat() == ULONG_MAX || !GetCurField()->GetFormat();
+
+ if (!bSpecialFmt)
+ {
+ aNumFormatLB.SetDefFormat(GetCurField()->GetFormat());
+ sOldNumSel = aEmptyStr;
+ }
+ else
+ if (nTypeId == TYP_GETFLD || nTypeId == TYP_FORMELFLD)
+ aNumFormatLB.SetFormatType(NUMBERFORMAT_NUMBER);
+ }
+ else
+ {
+ if (nOldNumFormat && nOldNumFormat != ULONG_MAX)
+ aNumFormatLB.SetDefFormat(nOldNumFormat);
+ else
+ aNumFormatLB.SetFormatType(NUMBERFORMAT_NUMBER);
+ }
+ }
+
+ switch (nTypeId)
+ {
+ case TYP_USERFLD:
+ {
+ if (!IsFldEdit() || bSpecialFmt)
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_MARK_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_USERVAR_CMD), 1);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ }
+ break;
+
+ case TYP_SETFLD:
+ {
+ if (!IsFldEdit() || bSpecialFmt)
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_SETVAR_TEXT), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ }
+ break;
+
+ case TYP_FORMELFLD:
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_GETVAR_NAME), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ break;
+
+ case TYP_GETFLD:
+ {
+ USHORT nPos = aNumFormatLB.InsertEntry(SW_RESSTR(FMT_GETVAR_NAME), 0);
+ aNumFormatLB.SetEntryData(nPos, (void *)ULONG_MAX);
+ }
+ break;
+ }
+
+ if (IsFldEdit() && bSpecialFmt)
+ {
+ if (nTypeId == TYP_USERFLD && (GetCurField()->GetSubType() & SUB_CMD))
+ aNumFormatLB.SelectEntryPos(1);
+ else
+ aNumFormatLB.SelectEntryPos(0);
+ }
+ else
+ {
+ if (!nOldNumFormat && (nNumFormatSel = aNumFormatLB.GetEntryPos(sOldNumSel)) != LISTBOX_ENTRY_NOTFOUND)
+ aNumFormatLB.SelectEntryPos(nNumFormatSel);
+ else if (nOldNumFormat && nOldNumFormat == ULONG_MAX)
+ aNumFormatLB.SelectEntry(sOldSel);
+ }
+
+ USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
+
+ for (USHORT i = 0; i < nSize; i++)
+ {
+ USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(nTypeId, i));
+ USHORT nFldId = GetFldMgr().GetFormatId( nTypeId, i );
+ aFormatLB.SetEntryData( nPos, (void*)nFldId );
+ if (IsFldEdit() && nFldId == GetCurField()->GetFormat())
+ aFormatLB.SelectEntryPos( nPos );
+ }
+
+ if (nSize && (!IsFldEdit() || !aFormatLB.GetSelectEntryCount()))
+ {
+ aFormatLB.SelectEntry(sOldSel);
+
+ if (!aFormatLB.GetSelectEntryCount())
+ {
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_NUM_PAGEDESC));
+ if (!aFormatLB.GetSelectEntryCount())
+ {
+ aFormatLB.SelectEntry(SW_RESSTR(FMT_NUM_ARABIC));
+ if (!aFormatLB.GetSelectEntryCount())
+ aFormatLB.SelectEntryPos(0);
+ }
+ }
+ }
+
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ String sValue(aValueED.GetText());
+ BOOL bHasValue = sValue.Len() != 0;
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+ BOOL bInsert = FALSE, bApply = FALSE, bDelete = FALSE;
+
+ String sName(aNameED.GetText());
+ const USHORT nOldLen = sName.Len();
+ Selection aSel(aNameED.GetSelection());
+
+ if( nTypeId == TYP_DDEFLD ||
+ nTypeId == TYP_USERFLD ||
+ nTypeId == TYP_SETFLD ||
+ nTypeId == TYP_SEQFLD)
+ {
+ sName.EraseAllChars(' ');
+ sName.EraseAllChars('-');
+ }
+ const USHORT nLen = sName.Len();
+
+ if (nOldLen != nLen)
+ {
+ aNameED.SetText(sName);
+ aNameED.SetSelection(aSel); // Cursorpos restaurieren
+ }
+
+ // Buttons ueberpruefen
+ switch (nTypeId)
+ {
+ case TYP_DDEFLD:
+ {
+ // Gibts schon einen entsprechenden Type
+ bInsert = bApply = sName.Len() > 0;
+
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_DDEFLD, sName);
+
+ if (pType)
+ bDelete = !::GetActiveView()->GetWrtShell().IsUsed( *pType );
+ }
+ break;
+
+ case TYP_USERFLD:
+ {
+ // Gibts schon einen entsprechenden Type
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_USERFLD, sName);
+
+ if (pType)
+ bDelete = !::GetActiveView()->GetWrtShell().IsUsed( *pType );
+
+ pType = GetFldMgr().GetFldType(RES_SETEXPFLD, sName);
+ if (!pType) // Kein Namenskonflikt mit Variablen
+ {
+ // Benutzerfelder duerfen auch ohne Inhalt eingefuegt werden!
+ // Bug #56845
+ bInsert = bApply = sName.Len() > 0;
+ }
+ }
+ break;
+
+ default:
+ {
+ bInsert = TRUE;
+
+ if (nTypeId == TYP_SETFLD || nTypeId == TYP_SEQFLD)
+ {
+ SwSetExpFieldType* pFldType = (SwSetExpFieldType*)
+ GetFldMgr().GetFldType(RES_SETEXPFLD, sName);
+
+ if (pFldType)
+ {
+
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ const SwFldTypes* p = rSh.GetDoc()->GetFldTypes();
+ USHORT i;
+
+ for (i = 0; i < INIT_FLDTYPES; i++)
+ {
+ SwFieldType* pType = (*p)[ i ];
+ if (pType == pFldType)
+ break;
+ }
+
+ if (i >= INIT_FLDTYPES && !rSh.IsUsed(*pFldType))
+ bDelete = TRUE;
+
+ if (nTypeId == TYP_SEQFLD && !(pFldType->GetType() & GSE_SEQ))
+ bInsert = FALSE;
+
+ if (nTypeId == TYP_SETFLD && (pFldType->GetType() & GSE_SEQ))
+ bInsert = FALSE;
+ }
+ if (GetFldMgr().GetFldType(RES_USERFLD, sName))
+ bInsert = FALSE;
+ }
+
+ if (nLen == 0 && (nTypeId == TYP_SETFLD || (!IsFldEdit() && nTypeId == TYP_GETFLD)))
+ bInsert = FALSE;
+
+ if ((nTypeId == TYP_SETFLD || nTypeId == TYP_FORMELFLD) && !bHasValue)
+ bInsert = FALSE;
+ }
+ break;
+ }
+
+ aNewDelTBX.EnableItem(BT_VARAPPLY, bApply);
+ aNewDelTBX.EnableItem(BT_VARDELETE, bDelete);
+ EnableInsert(bInsert);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, TBClickHdl, ToolBox *, pBox )
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ switch (pBox->GetCurItemId())
+ {
+ case BT_VARDELETE:
+ {
+ if( nTypeId == TYP_USERFLD )
+ GetFldMgr().RemoveFldType(RES_USERFLD, aSelectionLB.GetSelectEntry());
+ else
+ {
+ USHORT nWhich;
+
+ switch(nTypeId)
+ {
+ case TYP_SETFLD:
+ case TYP_SEQFLD:
+ nWhich = RES_SETEXPFLD;
+ break;
+ default:
+ nWhich = RES_DDEFLD;
+ break;
+ }
+
+ GetFldMgr().RemoveFldType(nWhich, aSelectionLB.GetSelectEntry());
+ }
+
+ UpdateSubType();
+ ::GetActiveView()->GetWrtShell().SetModified();
+ }
+ break;
+
+ case BT_VARAPPLY:
+ {
+ String sName(aNameED.GetText()), sValue(aValueED.GetText());
+ SwFieldType* pType = 0;
+ USHORT nId;
+ USHORT nNumFormatPos = aNumFormatLB.GetSelectEntryPos();
+
+ switch (nTypeId)
+ {
+ case TYP_USERFLD: nId = RES_USERFLD; break;
+ case TYP_DDEFLD: nId = RES_DDEFLD; break;
+ case TYP_SETFLD: nId = RES_SETEXPFLD;break;
+ }
+ pType = GetFldMgr().GetFldType(nId, sName);
+
+ ULONG nFormat = aFormatLB.GetSelectEntryPos();
+ if (nFormat != LISTBOX_ENTRY_NOTFOUND)
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+
+ if (pType) // Aendern
+ {
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ rSh.StartAllAction();
+
+ if (nTypeId == TYP_USERFLD)
+ {
+ if (nNumFormatPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ ULONG nFmt = nNumFormatPos == 0 ? 0 : aNumFormatLB.GetFormat();
+ if (nFmt)
+ { // Sprache auf Office-Sprache umstellen, da String im Office
+ // Format vom Kalkulator erwartet wird und so in den Dlg
+ // eingegeben werden sollte
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+ nFmt = SwValueField::GetSystemFormat(rSh.GetNumberFormatter(), nFmt);
+ }
+ ((SwUserFieldType*)pType)->SetContent(aValueED.GetText(), nFmt);
+ ((SwUserFieldType*)pType)->SetType(
+ nNumFormatPos == 0 ? GSE_STRING : GSE_EXPR );
+ }
+ }
+ else
+ {
+ if (nFormat != LISTBOX_ENTRY_NOTFOUND)
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ USHORT nTmpPos = sValue.SearchAndReplace( ' ', cTokenSeperator );
+ sValue.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+ ((SwDDEFieldType*)pType)->SetCmd(sValue);
+ ((SwDDEFieldType*)pType)->SetType((USHORT)nFormat);
+ }
+ }
+ pType->UpdateFlds();
+
+ ::GetActiveView()->GetWrtShell().EndAllAction();
+ }
+ else // Neu
+ {
+ if(nTypeId == TYP_USERFLD)
+ {
+ SwUserFieldType aType( ::GetActiveView()->GetWrtShellPtr()->GetDoc(), sName );
+
+ if (nNumFormatPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ aType.SetType(nNumFormatPos == 0 ? GSE_STRING : GSE_EXPR);
+ aType.SetContent( sValue, nNumFormatPos == 0 ? 0 : aNumFormatLB.GetFormat() );
+ aSelectionLB.InsertEntry(sName);
+ aSelectionLB.SelectEntry(sName);
+ GetFldMgr().InsertFldType( aType ); // Userfld Neu
+ }
+ }
+ else
+ {
+ if (nFormat != LISTBOX_ENTRY_NOTFOUND)
+ {
+ //JP 28.08.95: DDE-Topics/-Items koennen Blanks in ihren
+ // Namen haben! Wird hier noch nicht beachtet.
+ USHORT nTmpPos = sValue.SearchAndReplace( ' ', cTokenSeperator );
+ sValue.SearchAndReplace( ' ', cTokenSeperator, nTmpPos );
+
+ SwDDEFieldType aType(sName, sValue, (USHORT)nFormat);
+ aSelectionLB.InsertEntry(sName);
+ aSelectionLB.SelectEntry(sName);
+ GetFldMgr().InsertFldType(aType); // DDE-Feld Neu
+ }
+ }
+ }
+ if (IsFldEdit())
+ GetFldMgr().GetCurFld(); // FieldManager Updaten
+
+ UpdateSubType();
+ }
+ break;
+ }
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, ChapterHdl, ListBox *, pLB )
+{
+ BOOL bEnable = aChapterLevelLB.GetSelectEntryPos() != 0;
+
+ aSeparatorED.Enable(bEnable);
+ aSeparatorFT.Enable(bEnable);
+ SeparatorHdl();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFldVarPage, SeparatorHdl, Edit *, pED )
+{
+ BOOL bEnable = aSeparatorED.GetText().Len() != 0 ||
+ aChapterLevelLB.GetSelectEntryPos() == 0;
+ EnableInsert(bEnable);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL __EXPORT SwFldVarPage::FillItemSet(SfxItemSet& rSet)
+{
+ USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
+
+ String aVal(aValueED.GetText());
+ String aName(aNameED.GetText());
+
+ USHORT nSubType = aSelectionLB.GetSelectEntryPos();
+ if(nSubType == LISTBOX_ENTRY_NOTFOUND)
+ nSubType = 0;
+ else
+ nSubType = (USHORT)(ULONG)aSelectionLB.GetEntryData(nSubType);
+
+ ULONG nFormat;
+
+ if (!aNumFormatLB.IsVisible())
+ {
+ nFormat = aFormatLB.GetSelectEntryPos();
+
+ if(nFormat == LISTBOX_ENTRY_NOTFOUND)
+ nFormat = 0;
+ else
+ nFormat = (ULONG)aFormatLB.GetEntryData((USHORT)nFormat);
+ }
+ else
+ {
+ nFormat = aNumFormatLB.GetFormat();
+
+ if (nFormat && nFormat != ULONG_MAX)
+ {
+ // Sprache auf Office-Sprache umstellen, da String im Office-
+ // Format vom Kalkulator erwartet wird und so in den Dlg
+ // eingegeben werden sollte
+ SwWrtShell &rSh = ::GetActiveView()->GetWrtShell();
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+
+ nFormat = SwValueField::GetSystemFormat(rSh.GetNumberFormatter(), nFormat);
+ }
+ }
+ sal_Unicode cSeparator = ' ';
+ switch (nTypeId)
+ {
+ case TYP_USERFLD:
+ {
+ nSubType = (nFormat == ULONG_MAX) ? GSE_STRING : GSE_EXPR;
+
+ if (nFormat == ULONG_MAX && aNumFormatLB.GetSelectEntry() == SW_RESSTR(FMT_USERVAR_CMD))
+ nSubType |= SUB_CMD;
+
+ if (aInvisibleCB.IsChecked())
+ nSubType |= SUB_INVISIBLE;
+ break;
+ }
+ case TYP_FORMELFLD:
+ {
+ nSubType = GSE_FORMULA;
+ if (aNumFormatLB.IsVisible() && nFormat == ULONG_MAX)
+ nSubType |= SUB_CMD;
+ break;
+ }
+ case TYP_GETFLD:
+ {
+ nSubType &= 0xff00;
+ if (aNumFormatLB.IsVisible() && nFormat == ULONG_MAX)
+ nSubType |= SUB_CMD;
+ break;
+ }
+ case TYP_INPUTFLD:
+ {
+ SwFieldType* pType = GetFldMgr().GetFldType(RES_USERFLD, aName);
+ nSubType = (nSubType & 0xff00) | ((pType) ? INP_USR : INP_VAR);
+ break;
+ }
+
+ case TYP_SETFLD:
+ {
+ if (IsFldDlgHtmlMode())
+ {
+ nSubType = 0x0100;
+ nSubType = (nSubType & 0xff00) | GSE_STRING;
+ }
+ else
+ nSubType = (nSubType & 0xff00) | ((nFormat == ULONG_MAX) ? GSE_STRING : GSE_EXPR);
+
+ if (aInvisibleCB.IsChecked())
+ nSubType |= SUB_INVISIBLE;
+ break;
+ }
+ case TYP_SEQFLD:
+ {
+ // nSubType = GSE_SEQ; // GSE_SEQ wird im Fldmgr fest gesetzt, kann also entfallen
+ nSubType = aChapterLevelLB.GetSelectEntryPos();
+ if (nSubType == 0)
+ nSubType = 0x7f;
+ else
+ {
+ nSubType--;
+ String sSeparator(aSeparatorED.GetText().GetChar(0));
+ cSeparator = sSeparator.Len() ? sSeparator.GetChar(0) : ' ';
+ //nSubType |= (USHORT)(((BYTE)) << 8);
+ }
+ break;
+ }
+ case TYP_GETREFPAGEFLD:
+ if( SVX_NUM_CHAR_SPECIAL == nFormat )
+ aVal = aValueED.GetText();
+ break;
+ }
+
+ if (!IsFldEdit() ||
+ aNameED.GetSavedValue() != aNameED.GetText() ||
+ aValueED.GetSavedValue() != aValueED.GetText() ||
+ aSelectionLB.GetSavedValue() != aSelectionLB.GetSelectEntryPos() ||
+ aFormatLB.GetSavedValue() != aFormatLB.GetSelectEntryPos() ||
+ nOldFormat != aNumFormatLB.GetFormat() ||
+ aInvisibleCB.GetState() != aInvisibleCB.GetSavedValue() ||
+ aChapterLevelLB.GetSavedValue() != aChapterLevelLB.GetSelectEntryPos() ||
+ aSeparatorED.GetSavedValue() != aSeparatorED.GetText())
+ {
+ InsertFld( nTypeId, nSubType, aName, aVal, nFormat, cSeparator );
+ }
+
+ UpdateSubType();
+
+ return FALSE;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwFldVarPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet )
+{
+ return ( new SwFldVarPage( pParent, rAttrSet ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFldVarPage::GetGroup()
+{
+ return GRP_VAR;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SelectionListBox::SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId ) :
+ ListBox (pDialog, rResId),
+ pDlg (pDialog),
+ bCallAddSelection(FALSE)
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long SelectionListBox::PreNotify( NotifyEvent& rNEvt )
+{
+ long nHandled = ListBox::PreNotify( rNEvt );
+ //BOOL bAddSel = FALSE;
+ if ( rNEvt.GetType() == EVENT_KEYUP )
+ {
+ const KeyEvent* pKEvt = rNEvt.GetKeyEvent();
+ const KeyCode aKeyCode = pKEvt->GetKeyCode();
+ const USHORT nModifier = aKeyCode.GetModifier();
+ if( aKeyCode.GetCode() == KEY_SPACE && !nModifier)
+// bAddSel = TRUE;
+ bCallAddSelection = TRUE;
+ }
+ if ( rNEvt.GetType() == EVENT_MOUSEBUTTONDOWN )
+ {
+ const MouseEvent* pMEvt = rNEvt.GetMouseEvent();
+
+ if (pMEvt && (pMEvt->IsMod1() || pMEvt->IsMod2())) // Alt oder Ctrl
+ //bAddSel = TRUE;
+ bCallAddSelection = TRUE;
+ }
+
+// if (bAddSel)
+// pDlg->AddSelection(this);
+
+ return nHandled;
+}
+/* -----------------12.01.99 11:14-------------------
+ *
+ * --------------------------------------------------*/
+void SwFldVarPage::FillUserData()
+{
+ String sData(String::CreateFromAscii(USER_DATA_VERSION));
+ sData += ';';
+ USHORT nTypeSel = aTypeLB.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
+ nTypeSel = USHRT_MAX;
+ else
+ nTypeSel = (ULONG)aTypeLB.GetEntryData( nTypeSel );
+ sData += String::CreateFromInt32( nTypeSel );
+ SetUserData(sData);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.54 2000/09/18 16:05:30 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.53 2000/08/25 14:18:40 os
+ CreateFromInt32()
+
+ Revision 1.52 2000/07/20 18:00:34 jp
+ FillFormatLB: don't call SetDefFormat/SetFormatType if the field is a GetRefPageFld
+
+ Revision 1.51 2000/06/30 08:52:53 os
+ #76541# string assertions removed
+
+ Revision 1.50 2000/05/23 18:36:52 jp
+ Bugfixes for Unicode
+
+ Revision 1.49 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.48 2000/02/11 14:46:46 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.47 1999/05/25 09:25:22 OS
+ #64715# Ctrl/Alt-Erkennung im PreNotify und Auswertung im SelectHdl
+
+
+ Rev 1.46 25 May 1999 11:25:22 OS
+ #64715# Ctrl/Alt-Erkennung im PreNotify und Auswertung im SelectHdl
+
+ Rev 1.45 20 Apr 1999 10:59:34 JP
+ Bug #65026#: SequenceFelder: Level/Sep-Controls im SubTypeHdl aktualisieren
+
+ Rev 1.44 25 Feb 1999 17:24:52 JP
+ Bug #62438#: UserData nur auswerten, wenn kein Refresh ist
+
+ Rev 1.43 08 Feb 1999 15:07:18 OS
+ #60579# UserData nur einmalig auslesen
+
+ Rev 1.42 21 Jan 1999 09:46:24 OS
+ #59900# Fussnoten im Dialog korrekt sortieren; keine prot. Member
+
+ Rev 1.41 12 Jan 1999 11:42:26 OS
+ #60579# ausgewaehlten Typ in den UserData speichern
+
+ Rev 1.40 11 Dec 1998 15:16:24 OM
+ #60051# Richtiges Format fuer Serienbrieffelder waehlen
+
+ Rev 1.39 17 Nov 1998 10:50:36 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.38 30 Oct 1998 15:33:02 OM
+ #58522# Richtigen Wert bei Formelfeld bearbeiten
+
+ Rev 1.37 29 Oct 1998 14:08:32 OM
+ #58544# Butzerfeld: richtigen Inhalt anzeigen
+
+ Rev 1.36 27 Oct 1998 14:01:16 OM
+ #57956# Formelfeld: richtigen Wert anzeigen
+
+ Rev 1.35 15 Oct 1998 15:58:32 OM
+ #57956# Richtige Formel bearbeiten
+
+ Rev 1.34 21 Sep 1998 16:05:42 OM
+ #56845# Leere Benutzerfelder zulassen
+
+ Rev 1.33 15 Sep 1998 16:02:04 OM
+ #55149# In Dialogen Zahlenformat der Applikation verwenden
+
+ Rev 1.32 10 Aug 1998 16:41:12 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.31 18 Jun 1998 15:50:46 OM
+ Ebenen fangen mit 1 an
+
+ Rev 1.30 18 Jun 1998 11:59:00 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.29 18 Jun 1998 11:21:10 OM
+ Kapitelebenen fuer Nummernkreise
+
+ Rev 1.28 03 Apr 1998 14:38:40 OM
+ #49178 Akualisierung verbessert
+
+ Rev 1.27 30 Mar 1998 11:00:38 OM
+ Edit: OK-Button auch bei FLD_GETVAR enablen
+
+ Rev 1.26 27 Mar 1998 17:15:04 OM
+ Nur bei Aenderung Dok modifizieren
+
+ Rev 1.25 27 Mar 1998 14:56:20 OM
+ #48908# Formel beim Bearbeiten anzeigen
+
+ Rev 1.24 12 Mar 1998 16:32:00 OM
+ Datenbanknamen in eckigen Klammern bei Drop
+
+ Rev 1.23 16 Feb 1998 10:10:24 OM
+ Fuer Solaris nicht direkt von void* auf ushort casten
+
+ Rev 1.22 11 Feb 1998 16:29:40 OM
+ Textdarstellung fuer Felder
+
+ Rev 1.21 11 Feb 1998 11:49:58 OM
+ Formel einfuegen
+
+ Rev 1.20 06 Feb 1998 14:50:56 OM
+ #47089# Seitenvariable anzeigen
+
+ Rev 1.19 02 Feb 1998 11:26:22 OM
+ #46839# Nummernkreise editieren: Als Value Formel anzeigen
+
+ Rev 1.18 13 Jan 1998 15:02:06 OM
+ Formula-Field wieder unterstuetzt
+
+ Rev 1.17 12 Jan 1998 17:10:24 OM
+ Formelfelder wieder erlauben
+
+ Rev 1.16 12 Jan 1998 14:16:04 OM
+ Keine Namenskonflikte zwischen verschiedenen Variablentypen
+
+ Rev 1.15 12 Jan 1998 12:43:34 OM
+ Eintraege der Edits beibehalten
+
+ Rev 1.14 09 Jan 1998 16:57:18 OM
+ Bei Dok-Wechsel updaten
+
+ Rev 1.13 08 Jan 1998 14:58:26 OM
+ Traveling
+
+ Rev 1.12 07 Jan 1998 17:18:18 OM
+ Referenzen editieren
+
+ Rev 1.11 19 Dec 1997 18:25:00 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.10 17 Dec 1997 17:58:46 OM
+ Datumsformate fuer SetExpFields
+
+ Rev 1.9 16 Dec 1997 17:02:58 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.8 12 Dec 1997 16:11:12 OM
+ AutoUpdate bei FocusWechsel u.a.
+
+ Rev 1.7 11 Dec 1997 16:59:30 OM
+ Feldumstellung
+
+ Rev 1.6 28 Nov 1997 19:55:06 MA
+ includes
+
+ Rev 1.5 28 Nov 1997 15:37:02 OM
+ Variablen-TP
+
+ Rev 1.4 27 Nov 1997 13:18:02 OM
+ Variablen-TP
+
+ Rev 1.3 05 Nov 1997 15:35:42 OM
+ Neuer Feldbefehldialog
+
+ Rev 1.2 03 Nov 1997 11:40:56 OM
+ Neuer Felddialog
+
+ Rev 1.1 31 Oct 1997 15:14:42 OM
+ Feldumstellung
+
+ Rev 1.0 30 Oct 1997 16:31:26 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fldui/fldvar.hxx b/sw/source/ui/fldui/fldvar.hxx
new file mode 100644
index 000000000000..ef1f71b753e8
--- /dev/null
+++ b/sw/source/ui/fldui/fldvar.hxx
@@ -0,0 +1,172 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldvar.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFLDVAR_HXX
+#define _SWFLDVAR_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#include "fldpage.hxx"
+#include "condedit.hxx"
+#include "numfmtlb.hxx"
+
+class SwFldVarPage;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SelectionListBox : public ListBox
+{
+ SwFldVarPage* pDlg;
+ BOOL bCallAddSelection;
+
+ virtual long PreNotify( NotifyEvent& rNEvt );
+
+public:
+ SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId );
+
+ // Selektieren per Ctrl oder Alt erkennen und mit SelectHdl auswerten
+ BOOL IsCallAddSelection() const {return bCallAddSelection;}
+ void ResetCallAddSelection() {bCallAddSelection = FALSE;}
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldVarPage : public SwFldPage
+{
+ friend class SelectionListBox;
+
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ FixedText aSelectionFT;
+ SelectionListBox aSelectionLB;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aValueFT;
+ ConditionEdit aValueED;
+ FixedText aFormatFT;
+ NumFormatListBox aNumFormatLB;
+ ListBox aFormatLB;
+ FixedText aChapterHeaderFT;
+ FixedText aChapterLevelFT;
+ ListBox aChapterLevelLB;
+ CheckBox aInvisibleCB;
+ FixedText aSeparatorFT;
+ Edit aSeparatorED;
+ ToolBox aNewDelTBX;
+
+ String sOldValueFT;
+ String sOldNameFT;
+
+ ULONG nOldFormat;
+ BOOL bInit;
+
+ DECL_LINK( TypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
+ DECL_LINK( ModifyHdl, Edit *pED = 0 );
+ DECL_LINK( TBClickHdl, ToolBox *pTB = 0);
+ DECL_LINK( ChapterHdl, ListBox *pLB = 0);
+ DECL_LINK( SeparatorHdl, Edit *pED = 0 );
+
+ void UpdateSubType();
+ USHORT FillFormatLB(USHORT nTypeId);
+
+protected:
+ virtual USHORT GetGroup();
+
+public:
+ SwFldVarPage(Window* pParent, const SfxItemSet& rSet);
+
+ ~SwFldVarPage();
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void FillUserData();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/fldvar.src b/sw/source/ui/fldui/fldvar.src
new file mode 100644
index 000000000000..5c38ec847145
--- /dev/null
+++ b/sw/source/ui/fldui/fldvar.src
@@ -0,0 +1,560 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldvar.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "fldtdlg.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+TabPage TP_FLD_VAR
+{
+ HelpID = HID_FLD_VAR ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Variablen" ;
+ Text [ ENGLISH ] = "Variables" ;
+ FixedText FT_VARTYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Feldtyp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "~Tipo di campo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo de ~campo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Felttype" ;
+ Text [ french ] = "~Type de champ" ;
+ Text [ swedish ] = "~Fälttyp" ;
+ Text [ dutch ] = "~Veldtype" ;
+ Text [ spanish ] = "~Tipo de campo" ;
+ Text [ english_us ] = "~Type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×Ö¶ÎÀàÐÍ(~T)";
+ Text[ russian ] = "Òèï ïîëÿ";
+ Text[ polish ] = "Typ pola";
+ Text[ japanese ] = "̨°ÙÄÞ‚ÌŽí—Þ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "äæÚ ÇáÍÞá";
+ Text[ greek ] = "~Ôýðïò ðåäßïõ";
+ Text[ korean ] = "ÇüÅÂ(~T)";
+ Text[ turkish ] = "A~lan tipi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARTYPE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 83 ) ;
+ TabStop = TRUE ;
+ Sort = FALSE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_VARSELECTION
+ {
+ Pos = MAP_APPFONT ( 88 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 8 ) ;
+ Text = "~Auswahl" ;
+ Text [ ENGLISH ] = "S~election" ;
+ Left = TRUE ;
+ Text [ english_us ] = "S~election" ;
+ Text [ portuguese_brazilian ] = "~Auswahl" ;
+ Text [ swedish ] = "Urv~al" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ italian ] = "~Selezione" ;
+ Text [ spanish ] = "~Selección" ;
+ Text [ french ] = "~Sélection" ;
+ Text [ dutch ] = "~Selectie" ;
+ Text [ portuguese ] = "~Selecção" ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~E)";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "~Wybór";
+ Text[ japanese ] = "‘I‘ð(~E)";
+ Text[ chinese_traditional ] = "¿ï¨ú(~E)";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "~ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ(~E)";
+ Text[ turkish ] = "~Seçim";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARSELECTION
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 16 ) ;
+ Size = MAP_APPFONT ( 76 , 83 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_VARFORMAT
+ {
+ Pos = MAP_APPFONT ( 170 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "F~ormat" ;
+ TEXT [ English ] = "Format" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Format" ;
+ Text [ portuguese_brazilian ] = "F~ormat" ;
+ Text [ swedish ] = "F~ormat" ;
+ Text [ danish ] = "Format" ;
+ Text [ italian ] = "F~ormato" ;
+ Text [ spanish ] = "F~ormato" ;
+ Text [ french ] = "F~ormat" ;
+ Text [ dutch ] = "~Formaat" ;
+ Text [ portuguese ] = "F~ormato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®";
+ Text[ chinese_traditional ] = "®æ¦¡(~F)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ì~ïñöÞ";
+ Text[ korean ] = "¼­½Ä";
+ Text[ turkish ] = "F~ormat";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 71 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ };
+ ListBox LB_VARNUMFORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 170 , 16 ) ;
+ Size = MAP_APPFONT ( 84 , 71 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ };
+ CheckBox CB_VARINVISIBLE
+ {
+ Pos = MAP_APPFONT ( 170 , 91 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ TEXT = "~Unsichtbar" ;
+ TEXT [ English ] = "Invisible" ;
+ TEXT [ norwegian ] = "Usynlig" ;
+ TEXT [ italian ] = "Nascosto" ;
+ TEXT [ portuguese_brazilian ] = "Invisível" ;
+ TEXT [ portuguese ] = "~Invisível" ;
+ TEXT [ finnish ] = "Näkymätön" ;
+ TEXT [ danish ] = "Usynlig" ;
+ TEXT [ french ] = "Invisible" ;
+ TEXT [ swedish ] = "Os~ynlig" ;
+ TEXT [ dutch ] = "~Onzichtbaar" ;
+ TEXT [ spanish ] = "Invisi~ble" ;
+ TEXT [ english_us ] = "Invisi~ble" ;
+ TabStop = TRUE ;
+ TEXT[ chinese_simplified ] = "ÒþÈëµÄ";
+ TEXT[ russian ] = "Íåâèäèìûé";
+ TEXT[ polish ] = "Niewid~oczny";
+ TEXT[ japanese ] = "”ñ•\\Ž¦";
+ TEXT[ chinese_traditional ] = "Áô¤Jªº";
+ TEXT[ arabic ] = "ÛíÑ ãÑÆí";
+ TEXT[ greek ] = "Ìç ïñáôÜ";
+ TEXT[ korean ] = "¾Èº¸ÀÓ(~B)";
+ TEXT[ turkish ] = "Görünmez";
+ TEXT[ language_user1 ] = " ";
+ };
+ FixedText FT_VARCHAPTERHEADER
+ {
+ Pos = MAP_APPFONT ( 170 , 62 ) ;
+ Size = MAP_APPFONT ( 84 , 10 ) ;
+ Hide = TRUE ;
+ TEXT = "Kapitelweise Nummerierung" ;
+ TEXT [ English ] = "Chapter numbering" ;
+ Text [ english_us ] = "Numbering by chapter" ;
+ Text [ portuguese_brazilian ] = "Kapitelweise Numerierung" ;
+ Text [ swedish ] = "Numrering kapitelvis" ;
+ Text [ danish ] = "Kapitelvis nummerering" ;
+ Text [ italian ] = "Numerazione a capitoli" ;
+ Text [ spanish ] = "Numeración de capítulos" ;
+ Text [ french ] = "Numérotation par chapitre" ;
+ Text [ dutch ] = "Hoofdstuksgewijs nummeren" ;
+ Text [ portuguese ] = "Numeração por capítulos" ;
+ Text[ chinese_simplified ] = "°´Õ±àºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ ïî ãëàâàì";
+ Text[ polish ] = "Numeracja wed³ug rozdzia³ów ";
+ Text[ japanese ] = "͂̔Ԇ•t‚¯";
+ Text[ chinese_traditional ] = "«ö³¹½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÝÕæá";
+ Text[ greek ] = "Áñßèìçóç êáôÜ êåöÜëáéá";
+ Text[ korean ] = "ÀåÀ¸·Î ¹øÈ£¸Å±â±â";
+ Text[ turkish ] = "Bölüme göre numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_VARCHAPTERLEVEL
+ {
+ Pos = MAP_APPFONT ( 175 , 76 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Hide = TRUE ;
+ TEXT = "E~bene" ;
+ TEXT [ English ] = "Level" ;
+ Text [ english_us ] = "~Level" ;
+ Text [ portuguese_brazilian ] = "E~bene" ;
+ Text [ swedish ] = "~Nivå" ;
+ Text [ danish ] = "Niveau" ;
+ Text [ italian ] = "Li~vello" ;
+ Text [ spanish ] = "~Nivel" ;
+ Text [ french ] = "Ni~veau" ;
+ Text [ dutch ] = "N~iveau" ;
+ Text [ portuguese ] = "~Nível" ;
+ Text[ chinese_simplified ] = "¼¶(~L)";
+ Text[ russian ] = "Óðîâåíü";
+ Text[ polish ] = "Poziom";
+ Text[ japanese ] = "ÚÍÞÙ(~L)";
+ Text[ chinese_traditional ] = "¯Å(~L)";
+ Text[ arabic ] = "ÇáãÓÊæì";
+ Text[ greek ] = "Åðßðåäï";
+ Text[ korean ] = "¼öÁØ(~L)";
+ Text[ turkish ] = "D~üzey";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_VARCHAPTERLEVEL
+ {
+ Border = TRUE ;
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 75 ) ;
+ Size = MAP_APPFONT ( 46 , 76 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ english ] =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "None" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Inga" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Ingen" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Senza" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Ninguno" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Aucun(e)" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Geen" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Nenhum" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÎÞ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Áåç" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Brak" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‚È‚µ" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "µL" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÈÏæä" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÊáíÝíá" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¾øÀ½" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yok" ; > ;
+ };
+ };
+ FixedText FT_VARSEPARATOR
+ {
+ Pos = MAP_APPFONT ( 175 , 91 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Hide = TRUE ;
+ TEXT = "~Trenner" ;
+ TEXT [ English ] = "Separator" ;
+ Text [ english_us ] = "~Separator" ;
+ Text [ portuguese_brazilian ] = "~Trenner" ;
+ Text [ swedish ] = "A~vdelare" ;
+ Text [ danish ] = "Separator" ;
+ Text [ italian ] = "~Separatore" ;
+ Text [ spanish ] = "~Separador" ;
+ Text [ french ] = "~Séparateur" ;
+ Text [ dutch ] = "~Scheidingsteken" ;
+ Text [ portuguese ] = "~Separador" ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û(~S)";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹æØ‚è‹L†(~S)";
+ Text[ chinese_traditional ] = "³s±µ²Å(~S)";
+ Text[ arabic ] = "ÝÇÕá";
+ Text[ greek ] = "Äéá÷ùñéóôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ(~S)";
+ Text[ turkish ] = "A~yýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_VARSEPARATOR
+ {
+ Pos = MAP_APPFONT ( 208 , 90 ) ;
+ Size = MAP_APPFONT ( 46 , 12 ) ;
+ Border = TRUE ;
+ Hide = TRUE ;
+ MaxTextLength = 1 ;
+ TEXT = "." ;
+ };
+ FixedText FT_VARNAME
+ {
+ Pos = MAP_APPFONT ( 6 , 105 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "Na~me" ;
+ TEXT [ English ] = "Na~me" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ italian ] = "No~me" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "Na~am" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~M)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~M)";
+ Text[ chinese_traditional ] = "¦WºÙ(~M)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~M)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_VARNAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 117 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_VARVALUE
+ {
+ Pos = MAP_APPFONT ( 88 , 105 ) ;
+ Size = MAP_APPFONT ( 76 , 10 ) ;
+ Text = "~Wert" ;
+ Text [ ENGLISH ] = "Value" ;
+ Text [ norwegian ] = "Verdi" ;
+ Text [ italian ] = "~Valore" ;
+ Text [ portuguese_brazilian ] = "Valor" ;
+ Text [ portuguese ] = "~Valor" ;
+ Text [ finnish ] = "Arvo" ;
+ Text [ danish ] = "Værdi" ;
+ Text [ french ] = "~Valeur" ;
+ Text [ swedish ] = "~Värde" ;
+ Text [ dutch ] = "~Waarde" ;
+ Text [ spanish ] = "~Valor" ;
+ Text [ english_us ] = "~Value" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊýÖµ(~V)";
+ Text[ russian ] = "Çíà÷åíèå";
+ Text[ polish ] = "WartoϾ";
+ Text[ japanese ] = "’l(~V)";
+ Text[ chinese_traditional ] = "¼Æ­È(~V)";
+ Text[ arabic ] = "ÞíãÉ";
+ Text[ greek ] = "ÔéìÞ";
+ Text[ korean ] = "°ª(~V)";
+ Text[ turkish ] = "De~ðer";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_VARVALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 88 , 117 ) ;
+ Size = MAP_APPFONT ( 76 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ ToolBox TBX_VARNEWDEL
+ {
+ Pos = MAP_APPFONT ( 167 , 117 ) ;
+ SVLook = TRUE ;
+ Border = FALSE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = BT_VARAPPLY ;
+ HelpID = HID_FLDVAR_APPLY ;
+ ItemBitmap = Bitmap { File = "sc20558.bmp" ; };
+ Text = "Übernehmen" ;
+ Text [ English ] = "Apply" ;
+ Text [ norwegian ] = "Benytt" ;
+ Text [ italian ] = "Applica" ;
+ Text [ portuguese_brazilian ] = "Aplicar" ;
+ Text [ portuguese ] = "Aplicar" ;
+ Text [ finnish ] = "Käytä" ;
+ Text [ danish ] = "Anvend" ;
+ Text [ french ] = "Appliquer" ;
+ Text [ swedish ] = "Överta" ;
+ Text [ dutch ] = "Overnemen" ;
+ Text [ spanish ] = "Aplicar" ;
+ Text [ english_us ] = "Apply" ;
+ Text[ chinese_simplified ] = "Ó¦ÓÃ";
+ Text[ russian ] = "Âûïîëíèòü";
+ Text[ polish ] = "Zastosuj";
+ Text[ japanese ] = "“K—p";
+ Text[ chinese_traditional ] = "¨Ï¥Î";
+ Text[ arabic ] = "ÊØÈíÞ";
+ Text[ greek ] = "ÅöáñìïãÞ";
+ Text[ korean ] = "Àû¿ë";
+ Text[ turkish ] = "Kullan";
+ Text[ language_user1 ] = " ";
+ };
+ ToolBoxItem
+ {
+ Identifier = BT_VARDELETE ;
+ HelpID = HID_FLDVAR_DELETE ;
+ ItemBitmap = Bitmap { File = "sc20557.bmp" ; };
+ Text = "Löschen" ;
+ Text [ ENGLISH ] = "Delete" ;
+ Text [ norwegian ] = "Slett" ;
+ Text [ italian ] = "Elimina" ;
+ Text [ portuguese_brazilian ] = "Apagar" ;
+ Text [ portuguese ] = "Eliminar" ;
+ Text [ finnish ] = "Poista" ;
+ Text [ danish ] = "Slet" ;
+ Text [ french ] = "Supprimer" ;
+ Text [ swedish ] = "Radera" ;
+ Text [ dutch ] = "Wissen" ;
+ Text [ spanish ] = "Eliminar" ;
+ Text [ english_us ] = "Delete" ;
+ Text[ chinese_simplified ] = "ɾ³ý";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ";
+ Text[ chinese_traditional ] = "§R°£";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦";
+ Text[ turkish ] = "Sil";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text [ english_us ] = "Variables" ;
+ Text [ portuguese_brazilian ] = "Variablen" ;
+ Text [ swedish ] = "Variabler" ;
+ Text [ danish ] = "Variabler" ;
+ Text [ italian ] = "Variabili" ;
+ Text [ spanish ] = "Variables" ;
+ Text [ french ] = "Variables" ;
+ Text [ dutch ] = "Variabelen" ;
+ Text [ portuguese ] = "Variáveis" ;
+ Text[ chinese_simplified ] = "±äÁ¿";
+ Text[ russian ] = "Ïåðåìåííûå";
+ Text[ polish ] = "Zmienne";
+ Text[ japanese ] = "•Ï”";
+ Text[ chinese_traditional ] = "Åܶq";
+ Text[ arabic ] = "ãÊÛíÑÇÊ";
+ Text[ greek ] = "ÌåôáâëçôÝò";
+ Text[ korean ] = "º¯¼ö";
+ Text[ turkish ] = "Deðiþkenler";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/inpdlg.cxx b/sw/source/ui/fldui/inpdlg.cxx
new file mode 100644
index 000000000000..22767712b20d
--- /dev/null
+++ b/sw/source/ui/fldui/inpdlg.cxx
@@ -0,0 +1,320 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _INPDLG_CXX
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _USRFLD_HXX
+#include <usrfld.hxx>
+#endif
+#ifndef _INPDLG_HXX
+#include <inpdlg.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _INPDLG_HRC
+#include <inpdlg.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Feldeinfuegen bearbeiten
+ --------------------------------------------------------------------*/
+
+SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
+ SwField* pField, BOOL bNextButton ) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_FLD_INPUT)),
+
+ rSh( rS ),
+ aLabelED (this, SW_RES(ED_LABEL )),
+ aEditED (this, SW_RES(ED_EDIT )),
+ aEditGB (this, SW_RES(GB_EDIT )),
+ aOKBT (this, SW_RES(BT_OK )),
+ aCancelBT (this, SW_RES(BT_CANCEL )),
+ aNextBT (this, SW_RES(PB_NEXT )),
+ aHelpBT (this, SW_RES(PB_HELP )),
+ pInpFld(0),
+ pSetFld(0),
+ pUsrType(0)
+{
+ // Font fuers Edit umschalten
+ Font aFont(aEditED.GetFont());
+ aFont.SetWeight(WEIGHT_LIGHT);
+ aEditED.SetFont(aFont);
+
+ if( bNextButton )
+ {
+ aNextBT.Show();
+ aNextBT.SetClickHdl(LINK(this, SwFldInputDlg, NextHdl));
+ }
+ else
+ {
+ long nDiff = aCancelBT.GetPosPixel().Y() - aOKBT.GetPosPixel().Y();
+ Point aPos = aHelpBT.GetPosPixel();
+ aPos.Y() -= nDiff;
+ aHelpBT.SetPosPixel(aPos);
+ }
+
+ // Auswertung hier
+ String aStr;
+ if( RES_INPUTFLD == pField->GetTyp()->Which() )
+ { // Es ist eine Eingabefeld
+ //
+ pInpFld = (SwInputField*)pField;
+ aLabelED.SetText( pInpFld->GetPar2() );
+ USHORT nSubType = pInpFld->GetSubType();
+
+ switch(nSubType & 0xff)
+ {
+ case INP_TXT:
+ aStr = pInpFld->GetPar1();
+ break;
+
+ case INP_USR:
+ // Benutzerfeld
+ if( 0 != ( pUsrType = (SwUserFieldType*)rSh.GetFldType(
+ RES_USERFLD, pInpFld->GetPar1() ) ) )
+ aStr = pUsrType->GetContent();
+ break;
+ }
+ }
+ else
+ {
+ // es ist eine SetExpression
+ pSetFld = (SwSetExpField*)pField;
+ String sFormula(pSetFld->GetFormula());
+ //values are formatted - formulas are not
+ International aInt(pSetFld->GetLanguage());
+ if(aInt.IsNumeric(sFormula))
+ aStr = pSetFld->Expand();
+ else
+ aStr = sFormula;
+ aLabelED.SetText( pSetFld->GetPromptText() );
+ }
+
+ // JP 31.3.00: Inputfields in readonly regions must be allowed to
+ // input any content. - 74639
+ BOOL bEnable = !rSh.IsCrsrReadonly();
+ /*!rSh.IsReadOnlyAvailable() || !rSh.HasReadonlySel()*/;
+ aOKBT.Enable( bEnable );
+ aEditED.SetReadOnly( !bEnable );
+
+ if( aStr.Len() )
+ aEditED.SetText( aStr.ConvertLineEnd() );
+ aEditED.GrabFocus();
+ FreeResource();
+}
+
+SwFldInputDlg::~SwFldInputDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Schliessen
+ --------------------------------------------------------------------*/
+
+void SwFldInputDlg::Apply()
+{
+ String aTmp( aEditED.GetText() );
+ aTmp.EraseAllChars( '\r' );
+
+ rSh.StartAllAction();
+ BOOL bModified = FALSE;
+ if(pInpFld)
+ {
+ if(pUsrType)
+ {
+ if( aTmp != pUsrType->GetContent() )
+ {
+ pUsrType->SetContent(aTmp);
+ pUsrType->UpdateFlds();
+ bModified = TRUE;
+ }
+ }
+ else if( aTmp != pInpFld->GetPar1() )
+ {
+ pInpFld->SetPar1(aTmp);
+ rSh.SwEditShell::UpdateFlds(*pInpFld);
+ bModified = TRUE;
+ }
+ }
+ else if( aTmp != pSetFld->GetPar2() )
+ {
+ pSetFld->SetPar2(aTmp);
+ rSh.SwEditShell::UpdateFlds(*pSetFld);
+ bModified = TRUE;
+ }
+
+ if( bModified )
+ rSh.SetUndoNoResetModified();
+
+ rSh.EndAllAction();
+}
+
+
+IMPL_LINK(SwFldInputDlg, NextHdl, PushButton*, EMPTYARG)
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.48 2000/09/18 16:05:30 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.47 2000/08/21 09:11:38 os
+ Set expression input fields: show formula or Expand() depending on the formula content
+
+ Revision 1.46 2000/03/31 08:00:44 jp
+ Bug #74639#: allow changes on InputFields in readonly regions
+
+ Revision 1.45 2000/02/11 14:46:53 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.44 1999/01/20 15:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.43 20 Jan 1999 16:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.42 17 Dec 1997 17:58:46 OM
+ Datumsformate fuer SetExpFields
+
+ Rev 1.41 03 Nov 1997 13:18:10 MA
+ precomp entfernt
+
+ Rev 1.40 02 Oct 1997 15:21:44 OM
+ Feldumstellung
+
+ Rev 1.39 23 Jul 1997 20:25:54 HJS
+ includes
+
+ Rev 1.38 11 Nov 1996 09:56:08 MA
+ ResMgr
+
+ Rev 1.37 24 Oct 1996 13:36:22 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.36 30 Aug 1996 12:43:16 OS
+ InputFldDlg mit Next-Button
+
+ Rev 1.35 28 Aug 1996 12:10:58 OS
+ includes
+
+ Rev 1.34 01 Aug 1996 10:59:16 AMA
+ New: Eingabe-Felder mit Zeilenumbruechen
+
+ Rev 1.33 04 Jun 1996 18:41:52 JP
+ bei GetFldType wurden die Parameter getauscht
+
+ Rev 1.32 02 Apr 1996 14:32:34 OS
+ *_cxx - define hinter hdrstop
+
+ Rev 1.31 24 Nov 1995 16:57:42 OM
+ PCH->PRECOMPILED
+
+ Rev 1.30 08 Nov 1995 13:45:34 OM
+ Change->Set
+
+ Rev 1.29 30 Aug 1995 13:53:30 MA
+ fix: sexport'iert
+
+ Rev 1.28 21 Aug 1995 09:24:36 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.27 18 Jan 1995 18:54:20 ER
+ fld.hxx -> *fld*.hxx
+
+ Rev 1.26 25 Oct 1994 17:57:02 ER
+ add: PCH
+
+ Rev 1.25 17 Oct 1994 16:24:58 PK
+ ausgeboxtes wieder reingeboxt
+
+*************************************************************************/
+
diff --git a/sw/source/ui/fldui/inpdlg.hrc b/sw/source/ui/fldui/inpdlg.hrc
new file mode 100644
index 000000000000..a5741d19a994
--- /dev/null
+++ b/sw/source/ui/fldui/inpdlg.hrc
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define FT_LABEL 1
+#define ED_EDIT 3
+#define GB_EDIT 4
+#define BT_OK 5
+#define BT_CANCEL 6
+#define ED_LABEL 7
+#define PB_NEXT 8
+#define PB_HELP 9
diff --git a/sw/source/ui/fldui/inpdlg.src b/sw/source/ui/fldui/inpdlg.src
new file mode 100644
index 000000000000..b2bb8f68b67c
--- /dev/null
+++ b/sw/source/ui/fldui/inpdlg.src
@@ -0,0 +1,228 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "fldui.hrc"
+#include "inpdlg.hrc"
+#include "helpid.h"
+ModalDialog DLG_FLD_INPUT
+{
+ HelpID = HID_FLD_INPUT ;
+ OutputSize = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 194 , 119 ) ;
+ Text = "Eingabefeld" ;
+ Text [ english ] = "Input Field" ;
+ Text [ english_us ] = "Input Field" ;
+ Moveable = TRUE ;
+ /* FixedText FT_LABEL
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 115 , 8 ) ;
+ Text = "Eingabe" ;
+ Text [ English ] = "Input" ;
+ Text [ norwegian ] = "Input" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Inserção" ;
+ Text [ portuguese ] = "Inserção" ;
+ Text [ finnish ] = "Syöttö" ;
+ Text [ danish ] = "Input" ;
+ Text [ french ] = "Entrée" ;
+ Text [ swedish ] = "Inmatning" ;
+ Text [ dutch ] = "Invoer" ;
+ Text [ spanish ] = "Entrada" ;
+ Text [ english_us ] = "Input" ;
+ Left = TRUE ;
+ };*/
+ Edit ED_LABEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 115 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Text = "Eingabe" ;
+ Text [ English ] = "Input" ;
+ Text [ norwegian ] = "Input" ;
+ Text [ italian ] = "Introduci" ;
+ Text [ portuguese_brazilian ] = "Inserção" ;
+ Text [ portuguese ] = "Entrada" ;
+ Text [ finnish ] = "Syöttö" ;
+ Text [ danish ] = "Input" ;
+ Text [ french ] = "Saisie" ;
+ Text [ swedish ] = "Inmatning" ;
+ Text [ dutch ] = "Invoer" ;
+ Text [ spanish ] = "Entrada" ;
+ Text [ english_us ] = "Input" ;
+ Readonly = TRUE ;
+ Text[ chinese_simplified ] = "ÊäÈë";
+ Text[ russian ] = "Ââîä";
+ Text[ polish ] = "Wejœcie";
+ Text[ japanese ] = "“ü—Í";
+ Text[ chinese_traditional ] = "¿é¤J";
+ Text[ arabic ] = "ÅÏÎÇá";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "ÀÔ·Â";
+ Text[ turkish ] = "Giriþ";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit ED_EDIT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 32 ) ;
+ Size = MAP_APPFONT ( 115 , 72 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ GroupBox GB_EDIT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 127 , 108 ) ;
+ Text = "Bearbeiten" ;
+ Text [ English ] = "Edit" ;
+ Text [ norwegian ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ portuguese_brazilian ] = "Editar" ;
+ Text [ portuguese ] = "Editar" ;
+ Text [ finnish ] = "Muokkaa" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ french ] = "Modifier" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ dutch ] = "Be~werken" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ english_us ] = "Edit" ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "Edycja";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ greek ] = "Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 139 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 139 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_NEXT
+ {
+ Pos = MAP_APPFONT ( 139 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text = "~Weiter" ;
+ Text [ English ] = "~Next" ;
+ Text [ dutch ] = "~Volgende" ;
+ Text [ english_us ] = "~Next" ;
+ Text [ italian ] = "~Avanti" ;
+ Text [ spanish ] = "~Siguiente" ;
+ Text [ french ] = "~Suivant" ;
+ Text [ swedish ] = "~Nästa" ;
+ Text [ danish ] = "Næste" ;
+ Text [ portuguese ] = "~Seguinte" ;
+ Text [ portuguese_brazilian ] = "~Weiter" ;
+ Text[ chinese_simplified ] = "¼ÌÐø(~N)";
+ Text[ russian ] = "Äàëåå";
+ Text[ polish ] = "~Dalej";
+ Text[ japanese ] = "ŽŸ‚Ö(~N)";
+ Text[ chinese_traditional ] = "Ä~Äò(~N)";
+ Text[ arabic ] = "ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíï";
+ Text[ korean ] = "´ÙÀ½(~N)";
+ Text[ turkish ] = "Ý~leri";
+ Text[ language_user1 ] = " ";
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 139 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ TabStop = TRUE ;
+ };
+ Text [ portuguese_brazilian ] = "Eingabefeld" ;
+ Text [ swedish ] = "Inmatningsfält" ;
+ Text [ danish ] = "Inputfelt" ;
+ Text [ italian ] = "Campo di digitazione" ;
+ Text [ spanish ] = "Campo de entrada" ;
+ Text [ french ] = "Champ de saisie" ;
+ Text [ dutch ] = "Invoerveld" ;
+ Text [ portuguese ] = "Campo de entrada" ;
+ Text[ chinese_simplified ] = "ÊäÈëÀ¸";
+ Text[ russian ] = "Ïîëå ââîäà";
+ Text[ polish ] = "Pole wprowadzania";
+ Text[ japanese ] = "“ü—Į́°ÙÄÞ";
+ Text[ chinese_traditional ] = "¿é¤JÄæ¦ì";
+ Text[ arabic ] = "ÍÞá ÅÏÎÇá";
+ Text[ greek ] = "Ðåäßï åéóáãùãÞò";
+ Text[ korean ] = "Çʵå ÀÔ·Â";
+ Text[ turkish ] = "Giriþ alaný";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fldui/javaedit.cxx b/sw/source/ui/fldui/javaedit.cxx
new file mode 100644
index 000000000000..e87b93c1005b
--- /dev/null
+++ b/sw/source/ui/fldui/javaedit.cxx
@@ -0,0 +1,417 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+// include ---------------------------------------------------------------
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _JAVAEDIT_CXX
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _JAVAEDIT_HXX
+#include <javaedit.hxx>
+#endif
+
+#ifndef _FLDUI_HRC
+#include <fldui.hrc>
+#endif
+#ifndef _JAVAEDIT_HRC
+#include <javaedit.hrc>
+#endif
+
+// static ----------------------------------------------------------------
+
+// class SwJavaEditDialog ------------------------------------------------
+
+
+
+SwJavaEditDialog::SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_JAVAEDIT)),
+
+ aTypeFT ( this, SW_RES( FT_TYPE ) ),
+ aTypeED ( this, SW_RES( ED_TYPE ) ),
+ aUrlRB ( this, SW_RES( RB_URL ) ),
+ aUrlED ( this, SW_RES( ED_URL ) ),
+ aUrlPB ( this, SW_RES( PB_URL ) ),
+ aEditRB ( this, SW_RES( RB_EDIT ) ),
+ aEditED ( this, SW_RES( ED_EDIT ) ),
+ aPostItGB ( this, SW_RES( GB_POSTIT ) ),
+ aOKBtn ( this, SW_RES( BTN_POST_OK ) ),
+ aCancelBtn ( this, SW_RES( BTN_POST_CANCEL ) ),
+ aPrevBtn ( this, SW_RES( BTN_PREV ) ),
+ aNextBtn ( this, SW_RES( BTN_NEXT ) ),
+ aHelpBtn ( this, SW_RES( BTN_POST_HELP ) ),
+
+ pSh(pWrtSh),
+ bNew(TRUE)
+{
+ // Handler installieren
+ aPrevBtn.SetClickHdl( LINK( this, SwJavaEditDialog, PrevHdl ) );
+ aNextBtn.SetClickHdl( LINK( this, SwJavaEditDialog, NextHdl ) );
+ aOKBtn.SetClickHdl( LINK( this, SwJavaEditDialog, OKHdl ) );
+
+ Link aLk = LINK(this, SwJavaEditDialog, RadioButtonHdl);
+ aUrlRB.SetClickHdl(aLk);
+ aEditRB.SetClickHdl(aLk);
+ aUrlPB.SetClickHdl(LINK(this, SwJavaEditDialog, InsertFileHdl));
+
+ Font aFont( aEditED.GetFont() );
+ aFont.SetWeight( WEIGHT_LIGHT );
+ aEditED.SetFont( aFont );
+
+ pMgr = new SwFldMgr;
+ pFld = (SwScriptField*)pMgr->GetCurFld();
+
+ bNew = !(pFld && pFld->GetTyp()->Which() == RES_SCRIPTFLD);
+
+ CheckTravel();
+
+ if( !bNew )
+ SetText( SW_RES( STR_JAVA_EDIT ) );
+ else
+ // neu anlegen
+ SetText( SW_RES( STR_JAVA_INSERT ) );
+
+ FreeResource();
+
+ RadioButtonHdl(NULL);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+SwJavaEditDialog::~SwJavaEditDialog()
+{
+ delete pMgr;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK_INLINE_START( SwJavaEditDialog, PrevHdl, Button *, EMPTYARG )
+{
+ SetFld();
+ pMgr->GoPrev();
+ pFld = (SwScriptField*)pMgr->GetCurFld();
+ CheckTravel();
+ RadioButtonHdl(NULL);
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwJavaEditDialog, PrevHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK_INLINE_START( SwJavaEditDialog, NextHdl, Button *, EMPTYARG )
+{
+ SetFld();
+ pMgr->GoNext();
+ pFld = (SwScriptField*)pMgr->GetCurFld();
+ CheckTravel();
+ RadioButtonHdl(NULL);
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwJavaEditDialog, NextHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwJavaEditDialog, OKHdl, Button *, EMPTYARG )
+{
+ SetFld();
+ EndDialog( RET_OK );
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+void SwJavaEditDialog::Apply()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+void SwJavaEditDialog::CheckTravel()
+{
+ BOOL bTravel = FALSE;
+ BOOL bNext, bPrev;
+
+ if(!bNew)
+ {
+ // Traveling nur bei mehr als einem Feld
+ pSh->StartAction();
+ pSh->CreateCrsr();
+
+ bNext = pMgr->GoNext();
+ if( bNext )
+ pMgr->GoPrev();
+
+ if( 0 != ( bPrev = pMgr->GoPrev() ) )
+ pMgr->GoNext();
+ bTravel |= bNext|bPrev;
+
+ pSh->DestroyCrsr();
+ pSh->EndAction();
+
+ if (pFld->IsCodeURL())
+ {
+ aUrlED.SetText(pFld->GetPar2());
+ aEditED.SetText(aEmptyStr);
+ aUrlRB.Check();
+ }
+ else
+ {
+ aEditED.SetText(pFld->GetPar2());
+ aUrlED.SetText(aEmptyStr);
+ aEditRB.Check();
+ }
+ aTypeED.SetText(pFld->GetPar1());
+ }
+
+ if ( !bTravel )
+ {
+ aPrevBtn.Hide();
+ aNextBtn.Hide();
+ }
+ else
+ {
+ aPrevBtn.Enable(bPrev);
+ aNextBtn.Enable(bNext);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+void SwJavaEditDialog::SetFld()
+{
+ if( !aOKBtn.IsEnabled() )
+ return ;
+
+ String sText;
+ String sType( aTypeED.GetText() );
+ BOOL bIsUrl = aUrlRB.IsChecked();
+
+ if( bIsUrl )
+ {
+ sText = aUrlED.GetText();
+ if(sText.Len())
+ sText = URIHelper::SmartRelToAbs(sText);
+ }
+ else
+ sText = aEditED.GetText();
+
+ if( !sType.Len() )
+ sType = String::CreateFromAscii("JavaScript");
+
+ if( bNew )
+ pMgr->InsertFld(TYP_SCRIPTFLD, 0, sType, sText, bIsUrl);
+ else if( bIsUrl != pFld->GetFormat() ||
+ pFld->GetPar2() != sType || pFld->GetPar1() != sText )
+ {
+ pMgr->UpdateCurFld( bIsUrl, sType, sText );
+ pSh->SetUndoNoResetModified();
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwJavaEditDialog, RadioButtonHdl, RadioButton *, pBtn )
+{
+ BOOL bEnable = aUrlRB.IsChecked();
+ aUrlPB.Enable(bEnable);
+ aUrlED.Enable(bEnable);
+ aEditED.Enable(!bEnable);
+
+ if( !bNew )
+ {
+ bEnable = !pSh->IsReadOnlyAvailable() || !pSh->HasReadonlySel();
+ aOKBtn.Enable( bEnable );
+ aUrlED.SetReadOnly( !bEnable );
+ aEditED.SetReadOnly( !bEnable);
+ aTypeED.SetReadOnly( !bEnable);
+ if( aUrlPB.IsEnabled() && !bEnable )
+ aUrlPB.Enable( FALSE );
+ }
+ return 0;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+IMPL_LINK( SwJavaEditDialog, InsertFileHdl, PushButton *, pBtn )
+{
+ String sFileName;
+ if( GetFileFilterNameDlg( *pBtn, sFileName ))
+ aUrlED.SetText( sFileName );
+ return 0;
+}
+
+/*************************************************************************
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.13 2000/09/18 16:05:31 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.12 2000/06/26 13:20:15 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.11 2000/04/18 15:17:32 os
+ UNICODE
+
+ Revision 1.10 2000/02/11 14:46:57 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.9 1999/01/20 15:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.8 20 Jan 1999 16:56:58 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.7 19 Aug 1998 17:22:14 JP
+ Bug #55247#: fuers MoveNext-/-PrevFldType einen eigenen Pam verwenden
+
+ Rev 1.6 13 Feb 1998 14:16:02 JP
+ statt selbst den InserDocDialog zu rufen, die neue Funktion GetFileFilterNameDlg rufen
+
+ Rev 1.5 24 Nov 1997 18:23:28 MA
+ includes
+
+ Rev 1.4 03 Nov 1997 13:18:10 MA
+ precomp entfernt
+
+ Rev 1.3 23 Jul 1997 20:25:54 HJS
+ includes
+
+ Rev 1.2 29 May 1997 16:16:02 OM
+ URL in ScriptDialog eingeben
+
+ Rev 1.1 13 Feb 1997 17:36:02 OM
+ Segmentierung
+
+ Rev 1.0 13 Feb 1997 17:35:22 OM
+ Initial revision.
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/fldui/javaedit.hrc b/sw/source/ui/fldui/javaedit.hrc
new file mode 100644
index 000000000000..a58ce4b73211
--- /dev/null
+++ b/sw/source/ui/fldui/javaedit.hrc
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_JAVAEDIT_HRC
+#define _SW_JAVAEDIT_HRC
+
+// defines ------------------------------------------------------------------
+
+#define FT_TYPE 10
+#define ED_TYPE 11
+#define RB_EDIT 12
+#define ED_EDIT 13
+#define GB_POSTIT 14
+#define BTN_PREV 15
+#define BTN_NEXT 16
+#define STR_JAVA_EDIT 17
+#define STR_JAVA_INSERT 18
+#define RB_URL 19
+#define ED_URL 20
+#define PB_URL 21
+
+#define BTN_POST_OK 30
+#define BTN_POST_CANCEL 31
+#define BTN_POST_HELP 32
+
+
+#endif
+
diff --git a/sw/source/ui/fldui/javaedit.src b/sw/source/ui/fldui/javaedit.src
new file mode 100644
index 000000000000..f96e84993780
--- /dev/null
+++ b/sw/source/ui/fldui/javaedit.src
@@ -0,0 +1,319 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // include ---------------------------------------------------------------
+#include "javaedit.hrc"
+#include "fldui.hrc"
+#include "helpid.h"
+ // pragma ----------------------------------------------------------------
+
+ // RID_SVXDLG_POSTIT -----------------------------------------------------
+ModalDialog DLG_JAVAEDIT
+{
+ OutputSize = TRUE ;
+ SvLook = TRUE ;
+ Size = MAP_APPFONT ( 248 , 157 ) ;
+ Text = "Script bearbeiten" ;
+ Text [ ENGLISH ] = "Edit script" ;
+ Moveable = TRUE ;
+ FixedText FT_TYPE
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Script-T~yp" ;
+ Text [ ENGLISH ] = "Script type" ;
+ Text [ english_us ] = "Script type" ;
+ Text [ portuguese_brazilian ] = "Script-Typ" ;
+ Text [ swedish ] = "Skriptt~yp" ;
+ Text [ danish ] = "Script-type" ;
+ Text [ italian ] = "Tipo di script" ;
+ Text [ spanish ] = "Tipo de script" ;
+ Text [ french ] = "T~ype de script" ;
+ Text [ dutch ] = "Scriptt~ype" ;
+ Text [ portuguese ] = "~Tipo de Script" ;
+ Text[ chinese_simplified ] = "½Å±¾ÀàÐÍ";
+ Text[ russian ] = "Òèï ñêðèïòà";
+ Text[ polish ] = "Typ Scriptu";
+ Text[ japanese ] = "½¸ØÌßÄ‚ÌŽí—Þ";
+ Text[ chinese_traditional ] = "©R¥O½ZÃþ«¬";
+ Text[ arabic ] = "äæÚ ÇáÓßÑíÈÊ";
+ Text[ greek ] = "Ôýðïò ôïõ Script";
+ Text[ korean ] = "½ºÅ©¸³Æ® ÇüÅÂ";
+ Text[ turkish ] = "Script tipi";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_TYPE
+ {
+ Border = TRUE ;
+ Text = "JavaScript" ;
+ // Nicht uebersetzen!!!
+ Pos = MAP_APPFONT ( 57 , 14 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_URL
+ {
+ Text = "~URL" ;
+ Text [ ENGLISH ] = "URL" ;
+ Pos = MAP_APPFONT ( 12 , 28 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~URL" ;
+ Text [ english_us ] = "URL" ;
+ Text [ portuguese_brazilian ] = "URL" ;
+ Text [ swedish ] = "~URL" ;
+ Text [ danish ] = "URL" ;
+ Text [ italian ] = "URL" ;
+ Text [ spanish ] = "URL" ;
+ Text [ french ] = "~URL" ;
+ Text [ dutch ] = "~URL" ;
+ Text[ chinese_simplified ] = "URL";
+ Text[ russian ] = "URL";
+ Text[ polish ] = "URL";
+ Text[ japanese ] = "URL";
+ Text[ chinese_traditional ] = "URL";
+ Text[ arabic ] = "URL";
+ Text[ greek ] = "~URL";
+ Text[ korean ] = "URL";
+ Text[ turkish ] = "URL";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_URL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 57 , 27 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_URL
+ {
+ Pos = MAP_APPFONT ( 163 , 26 ) ;
+ Size = MAP_APPFONT ( 14 , 14 ) ;
+ Text = "~..." ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_EDIT
+ {
+ Pos = MAP_APPFONT ( 12 , 40 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Text" ;
+ Text [ English ] = "~Text" ;
+ Text [ norwegian ] = "~Text" ;
+ Text [ italian ] = "~Testo" ;
+ Text [ portuguese_brazilian ] = "~Texto" ;
+ Text [ portuguese ] = "~Texto" ;
+ Text [ finnish ] = "~Teksti" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ french ] = "~Texte" ;
+ Text [ swedish ] = "~Text" ;
+ Text [ dutch ] = "~Tekst" ;
+ Text [ spanish ] = "~Texto" ;
+ Text [ english_us ] = "~Text" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö(~T)";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä(~T)";
+ Text[ chinese_traditional ] = "¤å¦r(~T)";
+ Text[ arabic ] = "äÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®(~T)";
+ Text[ turkish ] = "~Metin";
+ Text[ language_user1 ] = " ";
+ };
+ MultiLineEdit ED_EDIT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 23 , 54 ) ;
+ Size = MAP_APPFONT ( 155 , 91 ) ;
+ Left = TRUE ;
+ VScroll = TRUE ;
+ HScroll = TRUE ;
+ IgnoreTab = TRUE ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_POSTIT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 179 , 147 ) ;
+ Text = "Inhalt" ;
+ Text [ ENGLISH ] = "Contents" ;
+ Text [ norwegian ] = "Innhold " ;
+ Text [ italian ] = "Contenuto" ;
+ Text [ portuguese_brazilian ] = "Conteúdo" ;
+ Text [ portuguese ] = "Conteúdo" ;
+ Text [ finnish ] = "Sisältö" ;
+ Text [ danish ] = "Indhold" ;
+ Text [ french ] = "Contenu" ;
+ Text [ swedish ] = "Innehåll" ;
+ Text [ dutch ] = "Inhoud" ;
+ Text [ spanish ] = "Contenido" ;
+ Text [ english_us ] = "Contents" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝ";
+ Text[ russian ] = "Ñîäåðæèìîå";
+ Text[ polish ] = "ZawartoϾ";
+ Text[ japanese ] = "“à—e";
+ Text[ chinese_traditional ] = "¤º®e";
+ Text[ arabic ] = "ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Ðåñéå÷üìåíá";
+ Text[ korean ] = "³»¿ë";
+ Text[ turkish ] = "Ýçerik";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BTN_POST_OK
+ {
+ Pos = MAP_APPFONT ( 191 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ DefButton = TRUE ;
+ };
+ CancelButton BTN_POST_CANCEL
+ {
+ Pos = MAP_APPFONT ( 191 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ };
+ HelpButton BTN_POST_HELP
+ {
+ Pos = MAP_APPFONT ( 191 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 15 ) ;
+ };
+ ImageButton BTN_PREV
+ {
+ Pos = MAP_APPFONT ( 191 , 60 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ Symbol = IMAGEBUTTON_ARROW_LEFT ;
+ };
+ ImageButton BTN_NEXT
+ {
+ Pos = MAP_APPFONT ( 217 , 60 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ Symbol = IMAGEBUTTON_ARROW_RIGHT ;
+ };
+ // lokale Strings
+ String STR_JAVA_EDIT
+ {
+ Text = "Script bearbeiten" ;
+ Text [ English ] = "Edit script" ;
+ Text [ portuguese ] = "Editar Script" ;
+ Text [ english_us ] = "Edit script" ;
+ Text [ portuguese_brazilian ] = "Script bearbeiten" ;
+ Text [ swedish ] = "Redigera skript" ;
+ Text [ danish ] = "Rediger script" ;
+ Text [ italian ] = "Modifica script" ;
+ Text [ spanish ] = "Editar script" ;
+ Text [ french ] = "Éditer le script" ;
+ Text [ dutch ] = "Script bewerken" ;
+ Text[ chinese_simplified ] = "±à¼­½Å±¾";
+ Text[ russian ] = "Ïðàâêà ñêðèïòà";
+ Text[ polish ] = "Edytuj Script";
+ Text[ japanese ] = "½¸ØÌßÄ‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿è©R¥O½Z";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÜ script";
+ Text[ greek ] = "Åðåîåñãáóßá Script";
+ Text[ korean ] = "½ºÅ©¸³Æ® ÆíÁý";
+ Text[ turkish ] = "Script bearbeiten";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_JAVA_INSERT
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Script einfügen : Script einf³gen */
+ Text = "Script einfügen" ;
+ Text [ English ] = "Insert script" ;
+ Text [ portuguese ] = "Inserir Script" ;
+ Text [ english_us ] = "Insert Script" ;
+ Text [ portuguese_brazilian ] = "Script einfügen" ;
+ Text [ swedish ] = "Infoga skript" ;
+ Text [ danish ] = "Indsæt script" ;
+ Text [ italian ] = "Inserisci script" ;
+ Text [ spanish ] = "Insertar script" ;
+ Text [ french ] = "Insérer un script" ;
+ Text [ dutch ] = "Script invoegen" ;
+ Text[ chinese_simplified ] = "²åÈë½Å±¾";
+ Text[ russian ] = "Âñòàâèòü ñêðèïò";
+ Text[ polish ] = "Wstaw Script";
+ Text[ japanese ] = "½¸ØÌßÄ‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J©R¥O½Z";
+ Text[ arabic ] = "ÅÏÑÇÌ Script";
+ Text[ greek ] = "ÐñïóèÞêç Script";
+ Text[ korean ] = "½ºÅ©¸³Æ® »ðÀÔ";
+ Text[ turkish ] = "Script einfügen";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Edit Script" ;
+ Text [ portuguese_brazilian ] = "Script bearbeiten" ;
+ Text [ swedish ] = "Redigera skript" ;
+ Text [ danish ] = "Rediger script" ;
+ Text [ italian ] = "Modifica script" ;
+ Text [ spanish ] = "Editar script" ;
+ Text [ french ] = "Éditer le script" ;
+ Text [ dutch ] = "Script bewerken" ;
+ Text [ portuguese ] = "Editar Script" ;
+ Text[ chinese_simplified ] = "±à¼­½Å±¾";
+ Text[ russian ] = "Ïðàâêà ñêðèïòà";
+ Text[ polish ] = "Edytuj Script";
+ Text[ japanese ] = "½¸ØÌßÄ‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿è©R¥O½Z";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÜ Script";
+ Text[ greek ] = "Åðåîåñãáóßá Script";
+ Text[ korean ] = "½ºÅ©¸³Æ® ÆíÁý";
+ Text[ turkish ] = "Script'i düzenle";
+ Text[ language_user1 ] = " ";
+};
+ // ********************************************************************** EOF
diff --git a/sw/source/ui/fldui/makefile.mk b/sw/source/ui/fldui/makefile.mk
new file mode 100644
index 000000000000..36348687942e
--- /dev/null
+++ b/sw/source/ui/fldui/makefile.mk
@@ -0,0 +1,131 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=fldui
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ changedb.cxx \
+ flddb.cxx \
+ flddinf.cxx \
+ flddok.cxx \
+ fldedt.cxx \
+ fldfunc.cxx \
+ fldmgr.cxx \
+ fldpage.cxx \
+ fldref.cxx \
+ fldtdlg.cxx \
+ fldvar.cxx \
+ javaedit.cxx \
+ inpdlg.cxx
+
+SRCFILES = \
+ changedb.src \
+ flddb.src \
+ flddinf.src \
+ flddok.src \
+ fldfunc.src \
+ fldref.src \
+ fldtdlg.src \
+ fldui.src \
+ fldvar.src \
+ javaedit.src \
+ inpdlg.src
+
+SLOFILES = \
+ $(SLO)$/changedb.obj \
+ $(SLO)$/flddb.obj \
+ $(SLO)$/flddinf.obj \
+ $(SLO)$/flddok.obj \
+ $(SLO)$/fldedt.obj \
+ $(SLO)$/fldfunc.obj \
+ $(SLO)$/fldmgr.obj \
+ $(SLO)$/fldpage.obj \
+ $(SLO)$/fldref.obj \
+ $(SLO)$/fldtdlg.obj \
+ $(SLO)$/fldvar.obj \
+ $(SLO)$/javaedit.obj \
+ $(SLO)$/inpdlg.obj
+
+EXCEPTIONSFILES = \
+ $(SLO)$/fldmgr.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/fmtui/fmtui.src b/sw/source/ui/fmtui/fmtui.src
new file mode 100644
index 000000000000..23b48affc55b
--- /dev/null
+++ b/sw/source/ui/fmtui/fmtui.src
@@ -0,0 +1,140 @@
+/*************************************************************************
+ *
+ * $RCSfile: fmtui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "fmtui.hrc"
+#include "globals.hrc"
+
+String STR_FMT_STD
+{
+ TEXT = "(keins)" ;
+ TEXT [ English ] = "(none)" ;
+ TEXT [ norwegian ] = "(ingen)" ;
+ TEXT [ italian ] = "(senza)" ;
+ TEXT [ portuguese_brazilian ] = "(nenhum)" ;
+ TEXT [ portuguese ] = "(nenhum)" ;
+ TEXT [ finnish ] = "(ei mitään)" ;
+ TEXT [ danish ] = "(ingen)" ;
+ TEXT [ french ] = "(aucun(e))" ;
+ TEXT [ swedish ] = "(ingen)" ;
+ TEXT [ dutch ] = "(geen)" ;
+ TEXT [ spanish ] = "(ninguna)" ;
+ TEXT [ english_us ] = "(none)" ;
+ TEXT[ chinese_simplified ] = "(ÎÞ)";
+ TEXT[ russian ] = "(áåç)";
+ TEXT[ polish ] = "(brak)";
+ TEXT[ japanese ] = "(‚È‚µ)";
+ TEXT[ chinese_traditional ] = "(µL)";
+ TEXT[ arabic ] = "(ÈÏæä)";
+ TEXT[ dutch ] = "(geen)";
+ TEXT[ chinese_simplified ] = "(ÎÞ)";
+ TEXT[ greek ] = "(êáíÝíá)";
+ TEXT[ korean ] = "(¾øÀ½)";
+ TEXT[ turkish ] = "(yok)";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TEMPLATE_WILDCARD
+{
+ TEXT = "*.vor" ;
+};
+ //String STR_NONAME //!! VB
+ //{
+ // TEXT = "Unbenannt ";
+ // TEXT [English] = "Noname ";
+ // TEXT [norwegian] = "Noname ";
+ // TEXT [italian] = "Senza nome";
+ // TEXT [portuguese_brazilian] = "Semnome ";
+ // TEXT [portuguese] = "Semnome ";
+ // TEXT [finnish] = "Nimetön ";
+ // TEXT [danish] = "Intet navn";
+ // TEXT [french] = "Sansnom ";
+ // TEXT [swedish] = "Namnlös";
+ // TEXT [dutch] = "Naamloos";
+ // TEXT [spanish] = "Sin nombre ";
+ // TEXT [english_us] = "Noname ";
+ //};
+String STR_OVERWRITE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Wollen Sie die Vorlage wirklich überschreiben? : Wollen Sie die Vorlage wirklich ³berschreiben? */
+ TEXT = "Wollen Sie die Vorlage wirklich überschreiben?" ;
+ TEXT [ English ] = "Do you really want to overwrite the template?" ;
+ TEXT [ norwegian ] = "Do you really want to overwrite the template?" ;
+ TEXT [ italian ] = "\nSovrascrivere il modello?" ;
+ TEXT [ portuguese_brazilian ] = "Deseja realmente gravar sobre o modelo?" ;
+ TEXT [ portuguese ] = "Deseja realmente eliminar este modelo?" ;
+ TEXT [ finnish ] = "Haluatko varmasti korvata mallin?" ;
+ TEXT [ danish ] = "Er du sikker på, at du vil overskrive denne skabelon?" ;
+ TEXT [ french ] = "Voulez-vous vraiment écraser le modèle ?" ;
+ TEXT [ swedish ] = "Vill Du verkligen skriva över den här mallen?" ;
+ TEXT [ dutch ] = "\nWilt u deze sjabloon werkelijk overschrijven?" ;
+ TEXT [ spanish ] = "¿Desea realmente sobrescribir la plantilla?" ;
+ TEXT [ english_us ] = "\nAre you sure you want to delete this template?" ;
+ TEXT[ chinese_simplified ] = "ÄúÕæµÄÒª¸²Ð´Õâ¸öÑùʽÂð£¿";
+ TEXT[ russian ] = "Âû äåéñòâèòåëüíî õîòèòå çàìåíèòü ýòîò øàáëîí?";
+ TEXT[ polish ] = "Chcesz na pewno skasowaæ ten szablon przez zapisanie?";
+ TEXT[ japanese ] = "ÃÝÌßÚ°Ä‚ð–{“–‚É휂µ‚Ü‚·‚©H";
+ TEXT[ chinese_traditional ] = "±z¯u­nÂмg³o­Ó¼Ë¦¡¡H";
+ TEXT[ arabic ] = "åá ÊÑíÏ ÈÇáÝÚá ÇáßÊÇÈÉ ÝæÞ ÇáÞÇáÈ¿";
+ TEXT[ dutch ] = "\nWilt u deze sjabloon werkelijk overschrijven?";
+ TEXT[ chinese_simplified ] = "ÄúÕæµÄÒª¸²Ð´Õâ¸öÑùʽÂð£¿";
+ TEXT[ greek ] = "ÈÝëåôå óßãïõñá íá áíôéêáôáóôÞóåôå ôï ðñüôõðï;";
+ TEXT[ korean ] = "\nÀÌ ¼­½ÄÆÄÀÏÀ» Á¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î?";
+ TEXT[ turkish ] = "Bu þablonu silmek istediðinizden emin misiniz?";
+ TEXT[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/fmtui/makefile.mk b/sw/source/ui/fmtui/makefile.mk
new file mode 100644
index 000000000000..a264e2477d9c
--- /dev/null
+++ b/sw/source/ui/fmtui/makefile.mk
@@ -0,0 +1,94 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=fmtui
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ tmpdlg.cxx
+
+SRCFILES = \
+ tmpdlg.src
+
+SLOFILES = \
+ $(SLO)$/tmpdlg.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx
new file mode 100644
index 000000000000..05ab186722a9
--- /dev/null
+++ b/sw/source/ui/fmtui/tmpdlg.cxx
@@ -0,0 +1,628 @@
+/*************************************************************************
+ *
+ * $RCSfile: tmpdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SVSTDARR_STRINGSISORTDTOR
+#define _SVSTDARR_STRINGSISORTDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_CHARDLG_HXX //autogen
+#include <svx/chardlg.hxx>
+#endif
+#ifndef _SVX_PARAGRPH_HXX //autogen
+#include <svx/paragrph.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+#ifndef _SVX_TABSTPGE_HXX //autogen
+#include <svx/tabstpge.hxx>
+#endif
+#ifndef _SVX_HDFT_HXX //autogen
+#include <svx/hdft2.hxx>
+#endif
+#ifndef _SVX_FLSTITEM_HXX //autogen
+#include <svx/flstitem.hxx>
+#endif
+#ifndef _SVX_PAGE_HXX //autogen
+#include <svx/page.hxx>
+#endif
+#ifndef _SVX_BORDER_HXX //autogen
+#include <svx/border.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_NUMPAGES_HXX //autogen
+#include <svx/numpages.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+#ifndef _NUMPARA_HXX
+#include <numpara.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx> // fuer Create-Methoden
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _PGFNOTE_HXX
+#include <pgfnote.hxx> // der Dialog
+#endif
+#ifndef _TMPDLG_HXX
+#include <tmpdlg.hxx> // der Dialog
+#endif
+#ifndef _COLUMN_HXX
+#include <column.hxx> // Spalten
+#endif
+#ifndef _DRPCPS_HXX
+#include <drpcps.hxx> // Initialen
+#endif
+#ifndef _FRMPAGE_HXX
+#include <frmpage.hxx> // Rahmen
+#endif
+#ifndef _WRAP_HXX
+#include <wrap.hxx> // Rahmen
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx> // Rahmen
+#endif
+#ifndef _CCOLL_HXX
+#include <ccoll.hxx> // CondColl
+#endif
+#ifndef _DOCSTYLE_HXX
+#include <docstyle.hxx> //
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx> //
+#endif
+#ifndef _MACASSGN_HXX
+#include <macassgn.hxx> //
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx> // inclusive der NumTabPages!
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _SHELLRES_HXX //autogen
+#include <shellres.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FMTUI_HRC
+#include <fmtui.hrc>
+#endif
+
+
+extern SwWrtShell* GetActiveWrtShell();
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Traeger des Dialoges
+ --------------------------------------------------------------------*/
+
+SwTemplateDlg::SwTemplateDlg(Window* pParent,
+ SfxStyleSheetBase& rBase,
+ USHORT nRegion,
+ BOOL bColumn,
+ SwWrtShell* pActShell,
+ BOOL bNew ) :
+ SfxStyleDialog( pParent,
+ SW_RES(DLG_TEMPLATE_BASE + nRegion),
+ rBase,
+ FALSE,
+ 0 ),
+ nType( nRegion ),
+ pWrtShell(pActShell),
+ bNewStyle(bNew)
+{
+ FreeResource();
+
+ nHtmlMode = ::GetHtmlMode(pWrtShell->GetView().GetDocShell());
+ // TabPages zusammenfieseln
+ switch( nRegion )
+ {
+ // Zeichenvorlagen
+ case SFX_STYLE_FAMILY_CHAR:
+ {
+ AddTabPage(TP_CHAR_STD, SvxCharStdPage::Create,
+ SvxCharStdPage::GetRanges );
+ AddTabPage(TP_CHAR_EXT, SvxCharExtPage::Create,
+ SvxCharExtPage::GetRanges );
+ AddTabPage(TP_BACKGROUND, SvxBackgroundTabPage::Create,
+ SvxBackgroundTabPage::GetRanges );
+ break;
+ }
+ // Absatzvorlagen
+ case SFX_STYLE_FAMILY_PARA:
+ {
+ AddTabPage(TP_PARA_STD, SvxStdParagraphTabPage::Create,
+ SvxStdParagraphTabPage::GetRanges );
+ AddTabPage(TP_PARA_ALIGN, SvxParaAlignTabPage::Create,
+ SvxParaAlignTabPage::GetRanges );
+
+ AddTabPage(TP_PARA_EXT, SvxExtParagraphTabPage::Create,
+ SvxExtParagraphTabPage::GetRanges );
+
+ AddTabPage(TP_CHAR_STD, SvxCharStdPage::Create,
+ SvxCharStdPage::GetRanges );
+ AddTabPage(TP_CHAR_EXT, SvxCharExtPage::Create,
+ SvxCharExtPage::GetRanges );
+
+ AddTabPage(TP_TABULATOR, SvxTabulatorTabPage::Create,
+ SvxTabulatorTabPage::GetRanges );
+
+ AddTabPage(TP_NUMPARA, SwParagraphNumTabPage::Create,
+ SwParagraphNumTabPage::GetRanges);
+ AddTabPage(TP_DROPCAPS, SwDropCapsPage::Create,
+ SwDropCapsPage::GetRanges );
+
+ AddTabPage(TP_BACKGROUND, SvxBackgroundTabPage::Create,
+ SvxBackgroundTabPage::GetRanges );
+ AddTabPage(TP_BORDER, SvxBorderTabPage::Create,
+ SvxBorderTabPage::GetRanges );
+
+ AddTabPage( TP_CONDCOLL, SwCondCollPage::Create,
+ SwCondCollPage::GetRanges );
+ if( (!bNewStyle && RES_CONDTXTFMTCOLL != ((SwDocStyleSheet&)rBase).GetCollection()->Which())
+ || nHtmlMode & HTMLMODE_ON )
+ RemoveTabPage(TP_CONDCOLL);
+
+ if(nHtmlMode & HTMLMODE_ON)
+ {
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ if (!pHtmlOpt->IsPrintLayoutExtension())
+ RemoveTabPage(TP_PARA_EXT);
+ RemoveTabPage(TP_TABULATOR);
+ RemoveTabPage(TP_NUMPARA);
+ if(!(nHtmlMode & HTMLMODE_FULL_STYLES))
+ {
+ RemoveTabPage(TP_BACKGROUND);
+ RemoveTabPage(TP_DROPCAPS);
+ }
+ if(!(nHtmlMode & HTMLMODE_PARA_BORDER))
+ RemoveTabPage(TP_BORDER);
+ }
+ }
+ break;
+ // Rahmenvorlagen
+ case SFX_STYLE_FAMILY_FRAME:
+ {
+ AddTabPage(TP_FRM_STD, SwFrmPage::Create,
+ SwFrmPage::GetRanges );
+ AddTabPage(TP_FRM_ADD, SwFrmAddPage::Create,
+ SwFrmAddPage::GetRanges );
+ AddTabPage(TP_FRM_WRAP, SwWrapTabPage::Create,
+ SwWrapTabPage::GetRanges );
+
+ AddTabPage(TP_BACKGROUND, SvxBackgroundTabPage::Create,
+ SvxBackgroundTabPage::GetRanges );
+ AddTabPage(TP_BORDER, SvxBorderTabPage::Create,
+ SvxBorderTabPage::GetRanges );
+
+ AddTabPage(TP_COLUMN, SwColumnPage::Create,
+ SwColumnPage::GetRanges );
+
+ AddTabPage( TP_MACRO_ASSIGN, SfxSmallMacroTabPage::Create, 0);
+
+ // Auskommentiert wegen Bug #45776 (per default keine Breite&Groesse in Rahmenvorlagen)
+/* SwFmtFrmSize aSize( (const SwFmtFrmSize&)rBase.
+ GetItemSet().Get(RES_FRM_SIZE));
+ if( !aSize.GetWidth() )
+ {
+ aSize.SetWidth( DFLT_WIDTH );
+ aSize.SetHeight( DFLT_HEIGHT );
+ rBase.GetItemSet().Put( aSize );
+ }*/
+ break;
+ }
+ // Seitenvorlagen
+ case SFX_STYLE_FAMILY_PAGE:
+ {
+ AddTabPage(TP_BACKGROUND, SvxBackgroundTabPage::Create,
+ SvxBackgroundTabPage::GetRanges );
+ AddTabPage(TP_HEADER_PAGE, String(SW_RES(STR_PAGE_HEADER)),
+ SvxHeaderPage::Create,
+ SvxHeaderPage::GetRanges );
+ AddTabPage(TP_FOOTER_PAGE, String(SW_RES(STR_PAGE_FOOTER)),
+ SvxFooterPage::Create,
+ SvxFooterPage::GetRanges );
+ if(bColumn)
+ SetCurPageId(TP_COLUMN);
+
+ AddTabPage(TP_PAGE_STD, String(SW_RES(STR_PAGE_STD)),
+ SvxPageDescPage::Create,
+ SvxPageDescPage::GetRanges,
+ FALSE,
+ 1 ); // nach der Verwalten-Page
+ if(!pActShell || 0 == ::GetHtmlMode(pWrtShell->GetView().GetDocShell()))
+ {
+ AddTabPage(TP_BORDER, String(SW_RES(STR_PAGE_BORDER)),
+ SvxBorderTabPage::Create,
+ SvxBorderTabPage::GetRanges );
+ AddTabPage(TP_COLUMN, String(SW_RES(STR_PAGE_COLUMN)),
+ SwColumnPage::Create,
+ SwColumnPage::GetRanges );
+ AddTabPage(TP_FOOTNOTE_PAGE, String(SW_RES(STR_PAGE_FOOTNOTE)),
+ SwFootNotePage::Create,
+ SwFootNotePage::GetRanges );
+ }
+
+
+ }
+ break;
+ // Numerierungsvorlagen
+ case SFX_STYLE_FAMILY_PSEUDO:
+ {
+ AddTabPage(RID_SVXPAGE_PICK_SINGLE_NUM, &SvxSingleNumPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_PICK_BULLET, &SvxBulletPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_PICK_NUM, &SvxNumPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_PICK_BMP, &SvxBitmapPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_NUM_OPTIONS, &SvxNumOptionsTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_NUM_POSITION,&SvxNumPositionTabPage::Create, 0);
+
+/* const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rBase.GetItemSet().GetItemState(
+ FN_PARAM_ACT_NUMBER, FALSE, &pItem ))
+ {
+// pActNum = (ActNumberFormat*)((const SwPtrItem*)pItem)->GetValue();
+ }
+*/
+ }
+ break;
+
+ default:
+ ASSERT(!this, "Falsche Familie");
+
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwTemplateDlg::~SwTemplateDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+short SwTemplateDlg::Ok()
+{
+ short nRet = SfxTabDialog::Ok();
+ if( RET_OK == nRet )
+ {
+ const SfxPoolItem *pOutItem, *pExItem;
+ if( SFX_ITEM_SET == pExampleSet->GetItemState(
+ SID_ATTR_NUMBERING_RULE, FALSE, &pExItem ) &&
+ ( !GetOutputItemSet() ||
+ SFX_ITEM_SET != GetOutputItemSet()->GetItemState(
+ SID_ATTR_NUMBERING_RULE, FALSE, &pOutItem ) ||
+ *pExItem != *pOutItem ))
+ {
+ if( GetOutputItemSet() )
+ ((SfxItemSet*)GetOutputItemSet())->Put( *pExItem );
+ else
+ nRet = RET_CANCEL;
+ }
+ }
+ else
+ //JP 09.01.98 Bug #46446#:
+ // das ist der Ok - Handler also muss auf OK defaultet werden!
+ nRet = RET_OK;
+ return nRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+const SfxItemSet* SwTemplateDlg::GetRefreshedSet()
+{
+ delete GetInputSetImpl();
+ return new SfxItemSet(GetStyleSheet().GetItemSet());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+ //Namen der Vorlagen und Metric setzen
+ String sNumCharFmt; GetDocPoolNm( RES_POOLCHR_NUM_LEVEL, sNumCharFmt);
+ String sBulletCharFmt; GetDocPoolNm( RES_POOLCHR_BUL_LEVEL, sBulletCharFmt);
+
+ switch( nId )
+ {
+ case TP_CHAR_STD:
+ {
+ ASSERT(::GetActiveView(), "keine View aktiv");
+
+ SvxFontListItem aFontListItem( *( (SvxFontListItem*)::GetActiveView()->
+ GetDocShell()->GetItem( SID_ATTR_CHAR_FONTLIST ) ) );
+
+ ((SvxCharStdPage&)rPage).SetFontList(aFontListItem);
+
+ if(rPage.GetItemSet().GetParent() && 0 == (nHtmlMode & HTMLMODE_ON ))
+ ((SvxCharStdPage&)rPage).EnableRelativeMode();
+ }
+ break;
+
+ case TP_CHAR_EXT:
+ ((SvxCharExtPage&)rPage).EnableFlash();
+ break;
+
+ case TP_PARA_STD:
+ if( rPage.GetItemSet().GetParent() )
+ {
+ ((SvxStdParagraphTabPage&)rPage).EnableRelativeMode();
+ ((SvxStdParagraphTabPage&)rPage).EnableRegisterMode();
+ ((SvxStdParagraphTabPage&)rPage).EnableAutoFirstLine();
+ ((SvxStdParagraphTabPage&)rPage).EnableAbsLineDist(MM50/2);
+ }
+ break;
+ case TP_NUMPARA:
+ {
+ ListBox & rBox = ((SwParagraphNumTabPage&)rPage).GetStyleBox();
+ SfxStyleSheetBasePool* pPool = pWrtShell->GetView().GetDocShell()->GetStyleSheetPool();
+ pPool->SetSearchMask(SFX_STYLE_FAMILY_PSEUDO, SFXSTYLEBIT_ALL);
+ const SfxStyleSheetBase* pBase = pPool->First();
+ SvStringsISortDtor aNames;
+ while(pBase)
+ {
+ aNames.Insert(new String(pBase->GetName()));
+ pBase = pPool->Next();
+ }
+ for(USHORT i = 0; i < aNames.Count(); i++)
+ rBox.InsertEntry(*aNames.GetObject(i));
+ }
+ break;
+ case TP_PARA_ALIGN:
+ ((SvxParaAlignTabPage&)rPage).EnableJustifyExt();
+ break;
+
+ case TP_FRM_STD:
+ ((SwFrmPage&)rPage).SetNewFrame( TRUE );
+ ((SwFrmPage&)rPage).SetFormatUsed( TRUE );
+ break;
+
+ case TP_FRM_ADD:
+ ((SwFrmAddPage&)rPage).SetFormatUsed(TRUE);
+ ((SwFrmAddPage&)rPage).SetNewFrame(TRUE);
+ break;
+
+ case TP_FRM_WRAP:
+ ((SwWrapTabPage&)rPage).SetFormatUsed( TRUE, FALSE );
+ break;
+
+ case TP_COLUMN:
+ if( nType == SFX_STYLE_FAMILY_FRAME )
+ ((SwColumnPage&)rPage).SetFrmMode(TRUE);
+ ((SwColumnPage&)rPage).SetFormatUsed( TRUE );
+ break;
+
+ case TP_BACKGROUND:
+ if( SFX_STYLE_FAMILY_PARA == nType )
+ ((SvxBackgroundTabPage&)rPage).ShowParaControl();
+ if( SFX_STYLE_FAMILY_CHAR != nType )
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+ break;
+
+ case TP_CONDCOLL:
+ ((SwCondCollPage&)rPage).SetCollection(
+ ((SwDocStyleSheet&)GetStyleSheet()).GetCollection(), bNewStyle );
+ break;
+
+ case TP_PAGE_STD:
+ if(0 == (nHtmlMode & HTMLMODE_ON ))
+ {
+ List aList;
+ String* pNew = new String;
+ GetDocPoolNm( RES_POOLCOLL_TEXT, *pNew );
+ aList.Insert( pNew, (ULONG)0 );
+ if( pWrtShell )
+ {
+ SfxStyleSheetBasePool* pStyleSheetPool = pWrtShell->
+ GetView().GetDocShell()->GetStyleSheetPool();
+ pStyleSheetPool->SetSearchMask(SFX_STYLE_FAMILY_PARA);
+ SfxStyleSheetBase *pStyle = pStyleSheetPool->First();
+ while(pStyle)
+ {
+ aList.Insert( new String(pStyle->GetName()),
+ aList.Count());
+ pStyle = pStyleSheetPool->Next();
+ }
+ }
+ ((SvxPageDescPage&)rPage).SetCollectionList(&aList);
+ for( USHORT i = (USHORT)aList.Count(); i; --i )
+ delete (String*)aList.Remove(i);
+ }
+ break;
+
+ case TP_MACRO_ASSIGN:
+ SwMacroAssignDlg::AddEvents( (SfxSmallMacroTabPage&)rPage, MACASSGN_ALLFRM);
+ break;
+
+ case RID_SVXPAGE_PICK_NUM:
+ ((SvxNumPickTabPage&)rPage).SetCharFmtNames(sNumCharFmt, sBulletCharFmt);
+ break;
+ case RID_SVXPAGE_NUM_OPTIONS:
+ {
+ ((SvxNumOptionsTabPage&)rPage).SetCharFmts(sNumCharFmt, sBulletCharFmt);
+ ListBox& rCharFmtLB = ((SvxNumOptionsTabPage&)rPage).GetCharFmtListBox();
+ // Zeichenvorlagen sammeln
+ rCharFmtLB.Clear();
+ rCharFmtLB.InsertEntry( ViewShell::GetShellRes()->aStrNone );
+ SwDocShell* pDocShell = ::GetActiveWrtShell()->GetView().GetDocShell();
+ ::FillCharStyleListBox(rCharFmtLB, pDocShell);
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell));
+ ((SvxNumOptionsTabPage&)rPage).SetMetric(eMetric);
+ }
+ break;
+ case RID_SVXPAGE_NUM_POSITION:
+ {
+ SwDocShell* pDocShell = ::GetActiveWrtShell()->GetView().GetDocShell();
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell));
+ ((SvxNumPositionTabPage&)rPage).SetMetric(eMetric);
+ }
+ break;
+ case RID_SVXPAGE_PICK_BULLET :
+ ((SvxBulletPickTabPage&)rPage).SetCharFmtName(sBulletCharFmt);
+ break;
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.88 2000/09/18 16:05:31 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.87 2000/07/27 21:15:53 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.86 2000/02/11 14:47:00 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.85 1999/01/05 09:11:44 OS
+ #60606# #52654# Numerierungsregel an Styles wieder korrekt
+
+
+ Rev 1.84 05 Jan 1999 10:11:44 OS
+ #60606# #52654# Numerierungsregel an Styles wieder korrekt
+
+ Rev 1.83 17 Nov 1998 10:51:44 OS
+ #58263# Numerierungs-Tabseiten aus dem Svx
+
+ Rev 1.82 17 Jul 1998 10:18:28 OS
+ SfxxSmallMacroTabPage einsetzen #52809#
+
+ Rev 1.81 01 Jul 1998 17:41:16 OS
+ keine rel. FontHeight im Html #51938#
+
+ Rev 1.80 24 Apr 1998 11:06:24 OS
+ Format-Flag fuer Spalten-Page setzen
+
+ Rev 1.79 22 Apr 1998 13:35:04 OS
+ PrintingExtensions im HTML
+
+ Rev 1.78 16 Apr 1998 15:56:40 OS
+ kein RegisterMode im HTML
+
+ Rev 1.77 31 Mar 1998 10:20:56 OM
+ #45776 Per default kein Size-Item in Rahmenvorlagen
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/fmtui/tmpdlg.src b/sw/source/ui/fmtui/tmpdlg.src
new file mode 100644
index 000000000000..831a7ad0a9f9
--- /dev/null
+++ b/sw/source/ui/fmtui/tmpdlg.src
@@ -0,0 +1,1283 @@
+/*************************************************************************
+ *
+ * $RCSfile: tmpdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SFX_HRC
+#include <sfx2/sfx.hrc>
+#endif
+#include "fmtui.hrc"
+#include "globals.hrc"
+#include "svx/dialogs.hrc"
+TabDialog DLG_TEMPLATE_1
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Zeichenvorlage" ;
+ Text [ ENGLISH ] = "Character Style" ;
+ Text [ norwegian ] = "Character Style" ;
+ Text [ italian ] = "Modello di carattere" ;
+ Text [ portuguese_brazilian ] = "Estilo de caracter" ;
+ Text [ portuguese ] = "Estilos de caracteres" ;
+ Text [ finnish ] = "Merkkityyli" ;
+ Text [ danish ] = "Tegntypografi" ;
+ Text [ french ] = "Style de caractères" ;
+ Text [ swedish ] = "Teckenformatmall" ;
+ Text [ dutch ] = "Tekenopmaakprofiel" ;
+ Text [ spanish ] = "Estilo de carácter" ;
+ Text [ english_us ] = "Character Style" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_CHAR_STD ;
+ Text = "Schrift" ;
+ Text [ ENGLISH ] = "Font" ;
+ Text [ norwegian ] = "Skrift" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Fonte" ;
+ Text [ portuguese ] = "Tipo de letra" ;
+ Text [ finnish ] = "Fontti" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "Police" ;
+ Text [ swedish ] = "Teckensnitt" ;
+ Text [ dutch ] = "Lettertype" ;
+ Text [ spanish ] = "Fuente" ;
+ Text [ english_us ] = "Font" ;
+ PageResID = TP_CHAR_STD ;
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ russian ] = "Øðèôò";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "Ì«ÝÄ";
+ Text[ chinese_traditional ] = "¦r«¬";
+ Text[ arabic ] = "ÇáÎØ";
+ Text[ greek ] = "ÃñáììáôïóåéñÜ";
+ Text[ korean ] = "±Û²Ã";
+ Text[ turkish ] = "Yazýtipi";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_CHAR_EXT ;
+ Text = "Schrifteffekt" ;
+ Text [ ENGLISH ] = "Font Effects" ;
+ Text [ norwegian ] = "Font Effects" ;
+ Text [ italian ] = "Effetto carattere" ;
+ Text [ portuguese_brazilian ] = "Efeitos de fonte" ;
+ Text [ portuguese ] = "Efeitos do tipo de letra" ;
+ Text [ finnish ] = "Fontin tehosteet" ;
+ Text [ danish ] = "Skrifteffekt" ;
+ Text [ french ] = "Effet de caractère" ;
+ Text [ swedish ] = "Teckensnittseffekt" ;
+ Text [ dutch ] = "Schrifteffect" ;
+ Text [ spanish ] = "Efectos de fuente" ;
+ Text [ english_us ] = "Font Effects" ;
+ PageResID = TP_CHAR_EXT ;
+ Text[ chinese_simplified ] = "×ÖÌåЧ¹û";
+ Text[ russian ] = "Ýôôåêòû øðèôòà";
+ Text[ polish ] = "Efekty czcionki";
+ Text[ japanese ] = "Ì«ÝÄŒø‰Ê";
+ Text[ chinese_traditional ] = "¦r«¬®ÄªG";
+ Text[ arabic ] = "ÊÃËíÑÇÊ ÇáÎØæØ";
+ Text[ greek ] = "ÅöÝ ÷áñáêôÞñùí";
+ Text[ korean ] = "±Û²Ã È¿°ú";
+ Text[ turkish ] = "Yazýtipi seçenekleri";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ russian ] = "Ñòèëü çíàêîâ";
+ Text[ polish ] = "Styl znaku";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ chinese_traditional ] = "¦r«¬¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "ÅؽºÆ® À¯Çü";
+ Text[ turkish ] = "Karakter biçimi";
+ Text[ language_user1 ] = " ";
+};
+TabDialog DLG_TEMPLATE_2
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Absatzvorlage" ;
+ Text [ ENGLISH ] = "Paragraph Style" ;
+ Text [ norwegian ] = "Paragraph Style" ;
+ Text [ italian ] = "Modello paragrafo" ;
+ Text [ portuguese_brazilian ] = "Estilo de parágrafo" ;
+ Text [ portuguese ] = "Estilo de parágrafo" ;
+ Text [ finnish ] = "Kappaletyyli" ;
+ Text [ danish ] = "Afsnitstypografi" ;
+ Text [ french ] = "Style de paragraphe" ;
+ Text [ swedish ] = "Styckeformatmall" ;
+ Text [ dutch ] = "Alinea-opmaakprofiel" ;
+ Text [ spanish ] = "Estilo de párrafo" ;
+ Text [ english_us ] = "Paragraph Style" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_PARA_STD ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einzüge und Abstände : Einz³ge und Abstõnde */
+ Text = "Einzüge und Abstände" ;
+ Text [ ENGLISH ] = "Indent and Spacing" ;
+ Text [ norwegian ] = "Indent and Spacing" ;
+ Text [ italian ] = "Rientro e spaziatura" ;
+ Text [ portuguese_brazilian ] = "Indentar e Espaçar" ;
+ Text [ portuguese ] = "Avanços e espaçamento" ;
+ Text [ finnish ] = "Sisennys ja välit" ;
+ Text [ danish ] = "Indrykning og mellemrum" ;
+ Text [ french ] = "Retraits et écarts" ;
+ Text [ swedish ] = "Indrag och avstånd" ;
+ Text [ dutch ] = "Inspringen en afstanden" ;
+ Text [ spanish ] = "Sangrías y espacios" ;
+ Text [ english_us ] = "Indents & Spacing" ;
+ PageResID = TP_PARA_STD ;
+ Text[ chinese_simplified ] = "Ëõ½øºÍ¼ä¸ô";
+ Text[ russian ] = "Îòñòóïû è èíòåðâàëû";
+ Text[ polish ] = "Wciêcia i odstêpy";
+ Text[ japanese ] = "²ÝÃÞÝÄ‚ÆŠÔŠu";
+ Text[ chinese_traditional ] = "ÁY±Æ©M¶¡¹j";
+ Text[ arabic ] = "ÇáÅÒÇÍÉ æÇáÊÈÇÚÏ";
+ Text[ greek ] = "Åóï÷Ýò êáé áðïóôÜóåéò";
+ Text[ korean ] = "µé¿©¾²±â¿Í °£°Ý";
+ Text[ turkish ] = "Girinti ve aralýklar";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_PARA_ALIGN ;
+ Text = "Ausrichtung" ;
+ Text [ ENGLISH ] = "Alignment" ;
+ PageResID = TP_PARA_ALIGN ;
+ Text [ english_us ] = "Alignment" ;
+ Text [ portuguese_brazilian ] = "Ausrichtung" ;
+ Text [ swedish ] = "Justering" ;
+ Text [ danish ] = "Justering" ;
+ Text [ italian ] = "Allineamento" ;
+ Text [ spanish ] = "Alineación" ;
+ Text [ french ] = "Alignement" ;
+ Text [ dutch ] = "Uitlijning" ;
+ Text [ portuguese ] = "Alinhamento" ;
+ Text[ chinese_simplified ] = "¶ÔÆë";
+ Text[ russian ] = "Âûðàâíèâàíèå";
+ Text[ polish ] = "Wyrównanie";
+ Text[ japanese ] = "”z’u";
+ Text[ chinese_traditional ] = "¹ï»ô";
+ Text[ arabic ] = "ÇáãÍÇÐÇÉ";
+ Text[ greek ] = "Óôïß÷éóç";
+ Text[ korean ] = "¸ÂÃã";
+ Text[ turkish ] = "Hizalama";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_PARA_EXT ;
+ /* ### ACHTUNG: Neuer Text in Resource? Textfluß : Textflu˜ */
+ Text = "Textfluss" ;
+ Text [ ENGLISH ] = "Text Flow" ;
+ Text [ norwegian ] = "Text Flow" ;
+ Text [ italian ] = "Flusso di testo" ;
+ Text [ portuguese_brazilian ] = "Fluxo do Texto" ;
+ Text [ portuguese ] = "Fluxo de texto" ;
+ Text [ finnish ] = "Tekstin juoksutus" ;
+ Text [ danish ] = "Tekstretning" ;
+ Text [ french ] = "Enchaînements" ;
+ Text [ swedish ] = "Textflöde" ;
+ Text [ dutch ] = "Tekstverloop" ;
+ Text [ spanish ] = "Flujo del texto" ;
+ Text [ english_us ] = "Text Flow" ;
+ PageResID = TP_PARA_EXT ;
+ Text[ chinese_simplified ] = "»»ÐкͷÖÒ³";
+ Text[ russian ] = "Ïîëîæåíèå íà ñòðàíèöå";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "‘ÌÙ";
+ Text[ chinese_traditional ] = "´«¦æ©M¤À­¶";
+ Text[ arabic ] = "ÇäÓíÇÈ ÇáäÕ";
+ Text[ greek ] = "ÑïÞ êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® È帧";
+ Text[ turkish ] = "Metin akýþý";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_CHAR_STD ;
+ Text = "Schrift" ;
+ Text [ ENGLISH ] = "Font" ;
+ Text [ norwegian ] = "Skrift" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Fonte" ;
+ Text [ portuguese ] = "Tipo de letra" ;
+ Text [ finnish ] = "Fontti" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "Police" ;
+ Text [ swedish ] = "Teckensnitt" ;
+ Text [ dutch ] = "Lettertype" ;
+ Text [ spanish ] = "Fuente" ;
+ Text [ english_us ] = "Font" ;
+ PageResID = TP_CHAR_STD ;
+ Text[ chinese_simplified ] = "×ÖÌå";
+ Text[ russian ] = "Øðèôò";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "Ì«ÝÄ";
+ Text[ chinese_traditional ] = "¦r«¬";
+ Text[ arabic ] = "ÇáÎØ";
+ Text[ greek ] = "ÃñáììáôïóåéñÜ";
+ Text[ korean ] = "±Û²Ã";
+ Text[ turkish ] = "Yazýtipi";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_CHAR_EXT ;
+ Text = "Schrifteffekte" ;
+ Text [ ENGLISH ] = "Font Effects" ;
+ Text [ norwegian ] = "Font Effects" ;
+ Text [ italian ] = "Effetto carattere" ;
+ Text [ portuguese_brazilian ] = "Efeitos de fonte" ;
+ Text [ portuguese ] = "Efeitos do tipo de letra" ;
+ Text [ finnish ] = "Fontin tehosteet" ;
+ Text [ danish ] = "Skrifteffekter" ;
+ Text [ french ] = "Effets de caractère" ;
+ Text [ swedish ] = "Teckensnittseffekter" ;
+ Text [ dutch ] = "Schrifteffecten" ;
+ Text [ spanish ] = "Efectos de fuente" ;
+ Text [ english_us ] = "Font Effects" ;
+ PageResID = TP_CHAR_EXT ;
+ Text[ chinese_simplified ] = "×ÖÌåЧ¹û";
+ Text[ russian ] = "Ýôôåêòû øðèôòà";
+ Text[ polish ] = "Efekty czcionki";
+ Text[ japanese ] = "Ì«ÝÄŒø‰Ê";
+ Text[ chinese_traditional ] = "¦r«¬®ÄªG";
+ Text[ arabic ] = "ÊÃËíÑÇÊ ÇáÎØæØ";
+ Text[ greek ] = "ÅöÝ ãñáììáôïóåéñÜò";
+ Text[ korean ] = "±Û²Ã È¿°ú";
+ Text[ turkish ] = "Yazýtipi seçenekleri";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_NUMPARA ;
+ Text = "Nummerierung" ;
+ Text [ ENGLISH ] = "Numbering" ;
+ Text [ english_us ] = "Numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ dutch ] = "Nummering" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_TABULATOR ;
+ Text = "Tabulatoren" ;
+ Text [ ENGLISH ] = "Tabs" ;
+ Text [ norwegian ] = "Tabulatorer" ;
+ Text [ italian ] = "Tabulazioni" ;
+ Text [ portuguese_brazilian ] = "Tabulações" ;
+ Text [ portuguese ] = "Tabulações" ;
+ Text [ finnish ] = "Sarkaimet" ;
+ Text [ danish ] = "Tabulatorer" ;
+ Text [ french ] = "Tabulations" ;
+ Text [ swedish ] = "Tabulatorer" ;
+ Text [ dutch ] = "Tabs" ;
+ Text [ spanish ] = "Tabulaciones" ;
+ Text [ english_us ] = "Tabs" ;
+ PageResID = TP_TABULATOR ;
+ Text[ chinese_simplified ] = "ÖƱí·û";
+ Text[ russian ] = "Òàáóëÿòîðû";
+ Text[ polish ] = "Tabulatory";
+ Text[ japanese ] = "ÀÌÞ";
+ Text[ chinese_traditional ] = "»sªí²Å";
+ Text[ arabic ] = "ÚáÇãÇÊ ÇáÌÏæáÉ";
+ Text[ greek ] = "ÓôçëïèÝôåò";
+ Text[ korean ] = "ÅÇ";
+ Text[ turkish ] = "Sekmeler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_DROPCAPS ;
+ Text = "Initialen" ;
+ Text [ ENGLISH ] = "Drop Caps" ;
+ Text [ norwegian ] = "Drop Caps" ;
+ Text [ italian ] = "Capolettera" ;
+ Text [ portuguese_brazilian ] = "Capitulares descidas" ;
+ Text [ portuguese ] = "Iniciais" ;
+ Text [ finnish ] = "Anfangit" ;
+ Text [ danish ] = "Initialer" ;
+ Text [ french ] = "Lettrines" ;
+ Text [ swedish ] = "Anfangsbokstäver" ;
+ Text [ dutch ] = "Initialen" ;
+ Text [ spanish ] = "Iniciales" ;
+ Text [ english_us ] = "Drop Caps" ;
+ PageResID = TP_DROPCAPS ;
+ Text[ chinese_simplified ] = "×ÖÊ×´óд";
+ Text[ russian ] = "Èíèöèàëû";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß";
+ Text[ chinese_traditional ] = "¦r­º¤j¼g";
+ Text[ arabic ] = "ÇáÃÍÑÝ ÇáÇÓÊåáÇáíÉ";
+ Text[ greek ] = "Áñ÷éãñÜììáôá";
+ Text[ korean ] = "´Ü¶ô ù¹®ÀÚ Àå½Ä";
+ Text[ turkish ] = "Baþharfler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ PageResID = TP_BORDER ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_CONDCOLL ;
+ PageResID = TP_CONDCOLL ;
+ Text = "Bedingung" ;
+ Text [ English ] = "Condition" ;
+ Text [ english_us ] = "Condition" ;
+ Text [ italian ] = "Condizione" ;
+ Text [ spanish ] = "Condición" ;
+ Text [ french ] = "Condition" ;
+ Text [ dutch ] = "Voorwaarde" ;
+ Text [ swedish ] = "Villkor" ;
+ Text [ danish ] = "Betingelse" ;
+ Text [ portuguese_brazilian ] = "Bedingung" ;
+ Text [ portuguese ] = "Condição" ;
+ Text[ chinese_simplified ] = "Ìõ¼þ";
+ Text[ russian ] = "Óñëîâèå";
+ Text[ polish ] = "Warunek";
+ Text[ japanese ] = "ðŒ";
+ Text[ chinese_traditional ] = "±ø¥ó";
+ Text[ arabic ] = "ÇáÔÑØ";
+ Text[ greek ] = "ÓõíèÞêç";
+ Text[ korean ] = "Á¶°Ç";
+ Text[ turkish ] = "Koþul";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "¶ÎÂäÑùʽ";
+ Text[ russian ] = "Ñòèëü àáçàöà";
+ Text[ polish ] = "Styl akapitu";
+ Text[ japanese ] = "’i—Ž½À²Ù";
+ Text[ chinese_traditional ] = "¬q¸¨¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÝÞÑÉ";
+ Text[ greek ] = "Ðñüôõðï ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô À¯Çü";
+ Text[ turkish ] = "Paragraf biçimi";
+ Text[ language_user1 ] = " ";
+};
+TabDialog DLG_TEMPLATE_4
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Seitenvorlage" ;
+ Text [ ENGLISH ] = "Page Style" ;
+ // Text[norwegian_wrong] = "Sidetyper";
+ // Text[italian_wrong] = "Stili pagina";
+ // Text[portuguese_brazilian_wrong] = "Estilos da Página ";
+ // Text[portuguese_wrong] = "Estilos da Página ";
+ // Text[finnish_wrong] = "Sivutyylit";
+ // Text[danish_wrong] = "Sidelayout";
+ // Text[french_wrong] = "Styles de page";
+ // Text[swedish_wrong] = "Sidformat";
+ // Text[dutch_wrong] = "Pagina-opmaakprofielen";
+ // Text[spanish_wrong] = "Estilos de página";
+ Text [ english_us ] = "Page Style" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ /* PageItem
+ {
+ Identifier = TP_PAGE_STD ;
+ Text = "Seite" ;
+ Text [ ENGLISH ] = "Page" ;
+ Text [ norwegian ] = "Page" ;
+ Text [ italian ] = "Pagina" ;
+ Text [ portuguese_brazilian ] = "Página" ;
+ Text [ portuguese ] = "Página" ;
+ Text [ finnish ] = "Sivu" ;
+ Text [ danish ] = "Side" ;
+ Text [ french ] = "Page" ;
+ Text [ swedish ] = "Sida" ;
+ Text [ dutch ] = "Pagina" ;
+ Text [ spanish ] = "Página" ;
+ Text [ english_us ] = "Page" ;
+ PageResID = TP_PAGE_STD ;
+ };*/
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ /* PageItem
+ {
+ Identifier = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contorno" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Rækkefølge" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Kantlinje" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ PageResID = TP_BORDER ;
+ };
+ PageItem
+ {
+ Identifier = TP_HEADER_PAGE ;
+ Text = "Kopfzeile" ;
+ Text [ ENGLISH ] = "Header" ;
+ Text [ norwegian ] = "Header" ;
+ Text [ italian ] = "Intestazione" ;
+ Text [ portuguese_brazilian ] = "Cabeçalho" ;
+ Text [ portuguese ] = "Cabeçalho" ;
+ Text [ finnish ] = "Yläteksti" ;
+ Text [ danish ] = "Toptekst" ;
+ Text [ french ] = "En-tête page" ;
+ Text [ swedish ] = "Sidhuvud" ;
+ Text [ dutch ] = "Koptekst" ;
+ Text [ spanish ] = "Línea de encabezamiento" ;
+ Text [ english_us ] = "Header" ;
+ PageResID = TP_HEADER_PAGE ;
+ };
+ PageItem
+ {
+ Identifier = TP_FOOTER_PAGE ;
+ Text = "Fußzeile" ;
+ Text [ ENGLISH ] = "Footer" ;
+ Text [ norwegian ] = "Footer" ;
+ Text [ italian ] = "Piè di pagina" ;
+ Text [ portuguese_brazilian ] = "Rodapé" ;
+ Text [ portuguese ] = "Rodapé" ;
+ Text [ finnish ] = "Alateksti" ;
+ Text [ danish ] = "Bundtekst" ;
+ Text [ french ] = "Pied de page" ;
+ Text [ swedish ] = "Sidfot" ;
+ Text [ dutch ] = "Voettekst" ;
+ Text [ spanish ] = "Pie de página" ;
+ Text [ english_us ] = "Footer" ;
+ PageResID = TP_FOOTER_PAGE ;
+ };
+ PageItem
+ {
+ Identifier = TP_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Spalter" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ PageResID = TP_COLUMN ;
+ };
+ PageItem
+ {
+ Identifier = TP_FOOTNOTE_PAGE ;
+ Text = "Fußnote" ;
+ Text [ ENGLISH ] = "Footnote" ;
+ Text [ norwegian ] = "Footnote" ;
+ Text [ italian ] = "Nota a piè di pagina" ;
+ Text [ portuguese_brazilian ] = "Nota de pé de página" ;
+ Text [ portuguese ] = "Nota de rodapé" ;
+ Text [ finnish ] = "Alaviite" ;
+ Text [ danish ] = "Fodnote" ;
+ Text [ french ] = "Note de bas de page" ;
+ Text [ swedish ] = "Fotnot" ;
+ Text [ dutch ] = "Voetnoot" ;
+ Text [ spanish ] = "Nota al pie de página" ;
+ Text [ english_us ] = "Footnote" ;
+ PageResID = TP_FOOTNOTE_PAGE ;
+ };*/
+ };
+ };
+ Text [ dutch ] = "Pagina-opmaakprofiel" ;
+ Text [ italian ] = "Modello di pagina" ;
+ Text [ spanish ] = "Estilo de página" ;
+ Text [ french ] = "Style de page" ;
+ Text [ swedish ] = "Sidformatmall" ;
+ Text [ danish ] = "Sidetypografi" ;
+ Text [ portuguese ] = "Estilo de página" ;
+ Text [ portuguese_brazilian ] = "Seitenvorlage" ;
+ Text[ chinese_simplified ] = "Ò³ÃæÑùʽ";
+ Text[ russian ] = "Ñòèëü ñòðàíèöû";
+ Text[ polish ] = "Styl strony";
+ Text[ japanese ] = "Íß°¼Þ½À²Ù";
+ Text[ chinese_traditional ] = "­¶­±¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÕÝÍÉ";
+ Text[ greek ] = "Ðñüôõðï óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö À¯Çü";
+ Text[ turkish ] = "Sayfa biçimi";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGE_STD
+{
+ Text = "Seite" ;
+ Text [ ENGLISH ] = "Page" ;
+ Text [ norwegian ] = "Page" ;
+ Text [ italian ] = "Pagina" ;
+ Text [ portuguese_brazilian ] = "Página" ;
+ Text [ portuguese ] = "Página" ;
+ Text [ finnish ] = "Sivu" ;
+ Text [ danish ] = "Side" ;
+ Text [ french ] = "Page" ;
+ Text [ swedish ] = "Sida" ;
+ Text [ dutch ] = "Pagina" ;
+ Text [ spanish ] = "Página" ;
+ Text [ english_us ] = "Page" ;
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ";
+ Text[ chinese_traditional ] = "­¶";
+ Text[ arabic ] = "ÕÝÍÉ";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGE_BORDER
+{
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "Å׵θ®";
+ Text[ turkish ] = "Kenarlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGE_HEADER
+{
+ Text = "Kopfzeile" ;
+ Text [ ENGLISH ] = "Header" ;
+ Text [ norwegian ] = "Header" ;
+ Text [ italian ] = "Riga d'intestazione" ;
+ Text [ portuguese_brazilian ] = "Cabeçalho" ;
+ Text [ portuguese ] = "Cabeçalho" ;
+ Text [ finnish ] = "Yläteksti" ;
+ Text [ danish ] = "Sidehoved" ;
+ Text [ french ] = "En-tête" ;
+ Text [ swedish ] = "Sidhuvud" ;
+ Text [ dutch ] = "Koptekst" ;
+ Text [ spanish ] = "Encabezamiento" ;
+ Text [ english_us ] = "Header" ;
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë";
+ Text[ polish ] = "Nag³ówek";
+ Text[ japanese ] = "ͯÀÞ";
+ Text[ chinese_traditional ] = "­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ";
+ Text[ greek ] = "Êåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Üstbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGE_FOOTER
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußzeile : Fu˜zeile */
+ Text = "Fußzeile" ;
+ Text [ ENGLISH ] = "Footer" ;
+ Text [ norwegian ] = "Footer" ;
+ Text [ italian ] = "Piè di pagina" ;
+ Text [ portuguese_brazilian ] = "Rodapé" ;
+ Text [ portuguese ] = "Rodapé" ;
+ Text [ finnish ] = "Alateksti" ;
+ Text [ danish ] = "Sidefod" ;
+ Text [ french ] = "Pied de page" ;
+ Text [ swedish ] = "Sidfot" ;
+ Text [ dutch ] = "Voettekst" ;
+ Text [ spanish ] = "Pie de página" ;
+ Text [ english_us ] = "Footer" ;
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë";
+ Text[ polish ] = "Stopka";
+ Text[ japanese ] = "̯À";
+ Text[ chinese_traditional ] = "­¶¸}";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ";
+ Text[ greek ] = "ÕðïóÝëéäï";
+ Text[ korean ] = "¹Ù´Ú±Û";
+ Text[ turkish ] = "Altbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGE_COLUMN
+{
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+};
+String STR_PAGE_FOOTNOTE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußnote : Fu˜note */
+ Text = "Fußnote" ;
+ Text [ ENGLISH ] = "Footnote" ;
+ Text [ norwegian ] = "Footnote" ;
+ Text [ italian ] = "Nota a piè pagina" ;
+ Text [ portuguese_brazilian ] = "Nota de pé de página" ;
+ Text [ portuguese ] = "Nota de rodapé" ;
+ Text [ finnish ] = "Alaviite" ;
+ Text [ danish ] = "Fodnote" ;
+ Text [ french ] = "Note de bas de page" ;
+ Text [ swedish ] = "Fotnot" ;
+ Text [ dutch ] = "Voetnoot" ;
+ Text [ spanish ] = "Nota al pie" ;
+ Text [ english_us ] = "Footnote" ;
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ russian ] = "Ñíîñêà";
+ Text[ polish ] = "Przypis dolny";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "µù¸}";
+ Text[ arabic ] = "ÍÇÔíÉ ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåßùóç";
+ Text[ korean ] = "°¢ÁÖ";
+ Text[ turkish ] = "Dipnot";
+ Text[ language_user1 ] = " ";
+};
+TabDialog DLG_TEMPLATE_3
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Rahmenvorlage" ;
+ Text [ ENGLISH ] = "Frame Style" ;
+ // Text[norwegian_wrong] = "Rammemaler";
+ // Text[italian_wrong] = "Stili cornice";
+ // Text[portuguese_brazilian_wrong] = "Estilos de Moldura";
+ // Text[portuguese_wrong] = "Estilos de Moldura";
+ // Text[finnish_wrong] = "Kehystyylit";
+ // Text[danish_wrong] = "Rammelayout";
+ // Text[french_wrong] = "Styles d'encadrement";
+ // Text[swedish_wrong] = "Ramformat";
+ // Text[dutch_wrong] = "Kaderopmaakprofielen";
+ // Text[spanish_wrong] = "Estilos de marco";
+ Text [ english_us ] = "Frame Style" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FRM_STD ;
+ Text = "Typ" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "Type" ;
+ Text [ swedish ] = "Typ" ;
+ Text [ dutch ] = "Type" ;
+ Text [ spanish ] = "Tipo" ;
+ Text [ english_us ] = "Type" ;
+ PageResID = TP_FRM_STD ;
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ turkish ] = "Tip";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_ADD ;
+ PageResID = TP_FRM_ADD ;
+ /* ### ACHTUNG: Neuer Text in Resource? Zusätze : Zusõtze */
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Additions" ;
+ Text [ english_us ] = "Options" ;
+ Text [ italian ] = "Extra" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ dutch ] = "Overige" ;
+ Text [ swedish ] = "Tillägg" ;
+ Text [ danish ] = "Flere" ;
+ Text [ portuguese_brazilian ] = "Zusätze" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "ÆäËü";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Dodatki";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¨ä¥¦";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_WRAP ;
+ Text = "Umlauf" ;
+ Text [ ENGLISH ] = "Wrap" ;
+ Text [ norwegian ] = "Wrap" ;
+ Text [ italian ] = "Scorrimento" ;
+ Text [ portuguese_brazilian ] = "Circundamento" ;
+ Text [ portuguese ] = "Ajuste" ;
+ Text [ finnish ] = "Kierrätys" ;
+ Text [ danish ] = "Ombrydning" ;
+ Text [ french ] = "Adaptation du texte" ;
+ Text [ swedish ] = "Textanpassning" ;
+ Text [ dutch ] = "Om beeld" ;
+ Text [ spanish ] = "Ajuste" ;
+ Text [ english_us ] = "Wrap" ;
+ PageResID = TP_FRM_WRAP ;
+ Text[ chinese_simplified ] = "»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå";
+ Text[ polish ] = "Obieg tekstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "´«¦æ";
+ Text[ arabic ] = "ÇáÊÝÇÝ";
+ Text[ greek ] = "Áíáäßðëùóç";
+ Text[ korean ] = "¼øȯ";
+ Text[ turkish ] = "Metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ PageResID = TP_BORDER ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "Å׵θ®";
+ Text[ turkish ] = "Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ PageResID = TP_COLUMN ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_MACRO_ASSIGN ;
+ Text = "Makro" ;
+ Text [ ENGLISH ] = "Macro" ;
+ Text [ english_us ] = "Macro" ;
+ Text [ italian ] = "Macro" ;
+ Text [ spanish ] = "Macro" ;
+ Text [ french ] = "Macro" ;
+ Text [ dutch ] = "Macro" ;
+ Text [ swedish ] = "Makro" ;
+ Text [ danish ] = "Makro" ;
+ Text [ portuguese_brazilian ] = "Makro" ;
+ Text [ portuguese ] = "Macro" ;
+ Text[ chinese_simplified ] = "ºê";
+ Text[ russian ] = "Ìàêðîñ";
+ Text[ polish ] = "Makro";
+ Text[ japanese ] = "ϸÛ";
+ Text[ chinese_traditional ] = "¥¨¶°";
+ Text[ arabic ] = "ãÇßÑæ";
+ Text[ greek ] = "ÌáêñïåíôïëÞ";
+ Text[ korean ] = "¸ÅÅ©·Î";
+ Text[ turkish ] = "Makro";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text [ italian ] = "Modello di cornice" ;
+ Text [ spanish ] = "Estilo de marcos" ;
+ Text [ french ] = "Style de cadre" ;
+ Text [ dutch ] = "Kaderopmaakprofiel" ;
+ Text [ swedish ] = "Ramformatmall" ;
+ Text [ danish ] = "Rammetypografi" ;
+ Text [ portuguese ] = "Estilo de moldura" ;
+ Text [ portuguese_brazilian ] = "Rahmenvorlage" ;
+ Text[ chinese_simplified ] = "¿òÑùʽ";
+ Text[ russian ] = "Ñòèëü ðàìêè";
+ Text[ polish ] = "Styl ramki";
+ Text[ japanese ] = "˜g½À²Ù";
+ Text[ chinese_traditional ] = "®Ø¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÅØÇÑ";
+ Text[ greek ] = "Óôõë ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ À¯Çü";
+ Text[ turkish ] = "Çerçeve biçimi";
+ Text[ language_user1 ] = " ";
+};
+TabDialog DLG_TEMPLATE_5
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Nummerierungsvorlage" ;
+ Text [ ENGLISH ] = "Number Style" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_BULLET ;
+ Text = "Bullets" ;
+ Text [ ENGLISH ] = "Bullets" ;
+ Text [ english_us ] = "Bullets" ;
+ Text [ portuguese_brazilian ] = "Bullets" ;
+ Text [ swedish ] = "Bullets" ;
+ Text [ danish ] = "Punkttegn" ;
+ Text [ italian ] = "Punti" ;
+ Text [ spanish ] = "Viñetas" ;
+ Text [ french ] = "Puces" ;
+ Text [ dutch ] = "Opsommingstekens" ;
+ Text [ portuguese ] = "Marcas" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ";
+ Text[ russian ] = "Ìàðêåðû";
+ Text[ polish ] = "Wypunktowanie";
+ Text[ japanese ] = "‰Óð‘‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹";
+ Text[ arabic ] = "ÚáÇãÇÊ ÊÚÏÇÏ";
+ Text[ greek ] = "Êïõêßäåò";
+ Text[ korean ] = "±Û¸Ó¸® ±âÈ£";
+ Text[ turkish ] = "Madde iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_SINGLE_NUM;
+ Text = "Nummerierungsart" ;
+ Text [ ENGLISH ] = "Digits" ;
+ Text [ english_us ] = "Numbering Style" ;
+ Text [ portuguese_brazilian ] = "Numerierungsart" ;
+ Text [ swedish ] = "Numreringstyp" ;
+ Text [ danish ] = "Nummereringstype" ;
+ Text [ italian ] = "Tipo numerazione" ;
+ Text [ spanish ] = "Tipo de numeración" ;
+ Text [ french ] = "Type de numérotation" ;
+ Text [ dutch ] = "Nummeringstijl" ;
+ Text [ portuguese ] = "Tipo de numeração" ;
+ Text[ chinese_simplified ] = "±àºÅÀàÐÍ";
+ Text[ russian ] = "Òèï íóìåðàöèè";
+ Text[ polish ] = "Rodzaj numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯‚ÌŽí—Þ";
+ Text[ chinese_traditional ] = "½s¸¹Ãþ«¬";
+ Text[ arabic ] = "ØÑíÞÉ ÇáÊÑÞíã";
+ Text[ language_user1 ] = "MS Word, KeyID23136";
+ Text[ greek ] = "Óôõë áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£¸Å±â±â À¯Çü";
+ Text[ turkish ] = "Numaralama türü";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_NUM ;
+ Text = "Gliederung" ;
+ Text [ ENGLISH ] = "Outline" ;
+ Text [ english_us ] = "Outline" ;
+ Text [ portuguese_brazilian ] = "Gliederung" ;
+ Text [ swedish ] = "Disposition" ;
+ Text [ danish ] = "Disposition" ;
+ Text [ italian ] = "Struttura" ;
+ Text [ spanish ] = "Esquema" ;
+ Text [ french ] = "Plan" ;
+ Text [ dutch ] = "Overzicht" ;
+ Text [ portuguese ] = "Esquema" ;
+ Text[ chinese_simplified ] = "´ó¸Ù";
+ Text[ russian ] = "Ñòðóêòóðà";
+ Text[ polish ] = "Konspekt";
+ Text[ japanese ] = "±³ÄײÝ";
+ Text[ chinese_traditional ] = "¤jºõ";
+ Text[ arabic ] = "ÊÞÓíã";
+ Text[ greek ] = "ÄéÜñèñùóç";
+ Text[ korean ] = "°³¿ä";
+ Text[ turkish ] = "Anahat";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_BMP;
+ Text = "Grafiken" ;
+ Text [ ENGLISH ] = "Images" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ portuguese_brazilian ] = "Grafiken" ;
+ Text [ swedish ] = "Grafiker" ;
+ Text [ danish ] = "Billeder" ;
+ Text [ italian ] = "Immagini" ;
+ Text [ spanish ] = "Imágenes" ;
+ Text [ french ] = "Images" ;
+ Text [ dutch ] = "Afbeeldingen" ;
+ Text [ portuguese ] = "Imagens" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíêè";
+ Text[ polish ] = "Grafiki";
+ Text[ japanese ] = "}";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑ";
+ Text[ greek ] = "ÃñáöéêÜ";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_NUM_POSITION ;
+ Text = "Position" ;
+ Text [ ENGLISH ] = "Position" ;
+ Text [ english_us ] = "Position" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ swedish ] = "Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ spanish ] = "Posición" ;
+ Text [ french ] = "Position" ;
+ Text [ dutch ] = "Positie" ;
+ Text [ portuguese ] = "Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_NUM_OPTIONS;
+ Text = "~Optionen" ;
+ Text [ ENGLISH ] = "Customize" ;
+ Text [ portuguese ] = "~Opções" ;
+ Text [ english_us ] = "Options" ;
+ Text [ portuguese_brazilian ] = "~Optionen" ;
+ Text [ swedish ] = "Alternativ" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ italian ] = "Opzioni" ;
+ Text [ spanish ] = "~Opciones" ;
+ Text [ french ] = "~Options" ;
+ Text [ dutch ] = "~Opties" ;
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ language_user1 ] = "KW:Tilde entfernen falls noch vorhanden";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ };
+ };
+ };
+ Text [ portuguese ] = "Estilo de numeração" ;
+ Text [ english_us ] = "Numbering Style" ;
+ Text [ portuguese_brazilian ] = "Numerierungsvorlage" ;
+ Text [ swedish ] = "Numreringsformatmall" ;
+ Text [ danish ] = "Nummereringstypografi" ;
+ Text [ italian ] = "Modello di numerazione" ;
+ Text [ spanish ] = "Estilo de numeración" ;
+ Text [ french ] = "Style de numérotation" ;
+ Text [ dutch ] = "Opmaakprofiel voor nummering" ;
+ Text[ chinese_simplified ] = "±àºÅÑùʽ";
+ Text[ russian ] = "Ñòèëü íóìåðàöèè";
+ Text[ polish ] = "Styl numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯½À²Ù";
+ Text[ chinese_traditional ] = "½s¸¹¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÊÑÞíã";
+ Text[ greek ] = "Ðñüôõðï áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama biçimi";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/frmdlg/colex.cxx b/sw/source/ui/frmdlg/colex.cxx
new file mode 100644
index 000000000000..514f6718c4f6
--- /dev/null
+++ b/sw/source/ui/frmdlg/colex.cxx
@@ -0,0 +1,514 @@
+/*************************************************************************
+ *
+ * $RCSfile: colex.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "hintids.hxx"
+#include "uiparam.hxx"
+
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_PAGEITEM_HXX //autogen
+#include <svx/pageitem.hxx>
+#endif
+
+#include "colex.hxx"
+#include "colmgr.hxx"
+
+
+/*-----------------------------------------------------------------------
+ Beschreibung: Uebernahme der aktualisierten Werte aus dem Set
+ -----------------------------------------------------------------------*/
+
+
+void SwColExample::UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr )
+{
+ pColMgr = pMgr;
+ const SvxPageItem* pPage = 0;
+ SfxItemPool* pPool = rSet.GetPool();
+ USHORT nWhich = pPool->GetWhich( SID_ATTR_PAGE );
+
+ if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
+ {
+ // Ausrichtung
+ pPage = (const SvxPageItem*)&rSet.Get( nWhich );
+
+ if ( pPage )
+ SetUsage( pPage->GetPageUsage() );
+ }
+
+ nWhich = pPool->GetWhich( SID_ATTR_PAGE_SIZE );
+
+ if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
+ {
+ // Orientation und Size aus dem PageItem
+ const SvxSizeItem& rSize = (const SvxSizeItem&)rSet.Get( nWhich );
+ Size aSize( rSize.GetSize() );
+ SetSize( aSize );
+ }
+ nWhich = RES_LR_SPACE;
+ if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
+ {
+ // linken und rechten Rand einstellen
+ const SvxLRSpaceItem& rLRSpace = (const SvxLRSpaceItem&)rSet.Get( nWhich );
+
+ SetLeft( rLRSpace.GetLeft() );
+ SetRight( rLRSpace.GetRight() );
+ }
+ else
+ {
+ SetLeft( 0 );
+ SetRight( 0 );
+ }
+
+ nWhich = RES_UL_SPACE;
+
+ if ( rSet.GetItemState( nWhich, FALSE ) == SFX_ITEM_SET )
+ {
+ // oberen und unteren Rand einstellen
+ const SvxULSpaceItem& rULSpace = (const SvxULSpaceItem&)rSet.Get( nWhich );
+
+ SetTop( rULSpace.GetUpper() );
+ SetBottom( rULSpace.GetLower() );
+ }
+ else
+ {
+ SetTop( 0 );
+ SetBottom( 0 );
+ }
+
+
+ // Kopfzeilen-Attribute auswerten
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == rSet.GetItemState( pPool->GetWhich( SID_ATTR_PAGE_HEADERSET),
+ FALSE, &pItem ) )
+ {
+ const SfxItemSet& rHeaderSet = ((SvxSetItem*)pItem)->GetItemSet();
+ const SfxBoolItem& rHeaderOn =
+ (const SfxBoolItem&)rHeaderSet.Get( pPool->GetWhich( SID_ATTR_PAGE_ON ) );
+
+ if ( rHeaderOn.GetValue() )
+ {
+ const SvxSizeItem& rSize =
+ (const SvxSizeItem&)rHeaderSet.Get(pPool->GetWhich(SID_ATTR_PAGE_SIZE));
+
+ const SvxULSpaceItem& rUL = (const SvxULSpaceItem&)rHeaderSet.Get(
+ pPool->GetWhich(SID_ATTR_ULSPACE));
+ const SvxLRSpaceItem& rLR = (const SvxLRSpaceItem&)rHeaderSet.Get(
+ pPool->GetWhich(SID_ATTR_LRSPACE));
+
+ SetHdHeight( rSize.GetSize().Height() - rUL.GetLower());
+ SetHdDist( rUL.GetLower() );
+ SetHdLeft( rLR.GetLeft() );
+ SetHdRight( rLR.GetRight() );
+ SetHeader( TRUE );
+ }
+ else
+ SetHeader( FALSE );
+ }
+
+ if( SFX_ITEM_SET == rSet.GetItemState( pPool->GetWhich( SID_ATTR_PAGE_FOOTERSET),
+ FALSE, &pItem ) )
+ {
+ const SfxItemSet& rFooterSet = ((SvxSetItem*)pItem)->GetItemSet();
+ const SfxBoolItem& rFooterOn =
+ (const SfxBoolItem&)rFooterSet.Get( SID_ATTR_PAGE_ON );
+
+ if ( rFooterOn.GetValue() )
+ {
+ const SvxSizeItem& rSize =
+ (const SvxSizeItem&)rFooterSet.Get( pPool->GetWhich( SID_ATTR_PAGE_SIZE ) );
+
+ const SvxULSpaceItem& rUL = (const SvxULSpaceItem&)rFooterSet.Get(
+ pPool->GetWhich( SID_ATTR_ULSPACE ) );
+ const SvxLRSpaceItem& rLR = (const SvxLRSpaceItem&)rFooterSet.Get(
+ pPool->GetWhich( SID_ATTR_LRSPACE ) );
+
+ SetFtHeight( rSize.GetSize().Height() - rUL.GetUpper());
+ SetFtDist( rUL.GetUpper() );
+ SetFtLeft( rLR.GetLeft() );
+ SetFtRight( rLR.GetRight() );
+ SetFooter( TRUE );
+ }
+ else
+ SetFooter( FALSE );
+ }
+
+ Invalidate();
+}
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+
+void SwColExample::DrawPage( const Point& rOrg,
+ const BOOL bSecond,
+ const BOOL bEnabled )
+{
+ SvxPageWindow::DrawPage( rOrg, bSecond, bEnabled );
+ if( pColMgr && pColMgr->GetCount() >1 )
+ {
+// SetPen( Pen( PEN_DOT ) );
+
+ long nL = GetLeft();
+ long nR = GetRight();
+
+ if ( GetUsage() == SVX_PAGE_MIRROR && !bSecond )
+ {
+ // fuer gespiegelt drehen
+ nL = GetRight();
+ nR = GetLeft();
+ }
+
+ SetFillColor( Color( COL_LIGHTGRAY ) );
+ Rectangle aRect;
+ aRect.Right() = rOrg.X() + GetSize().Width() - nR;
+ aRect.Left() = rOrg.X() + nL;
+ aRect.Top() = rOrg.Y() + GetTop()
+ + GetHdHeight() + GetHdDist();
+ aRect.Bottom()= rOrg.Y() + GetSize().Height() - GetBottom()
+ - GetFtHeight() - GetFtDist();
+ DrawRect(aRect);
+
+ SetFillColor( Color( COL_WHITE ) );
+ USHORT nColumnCount = pColMgr->GetCount();
+ for(USHORT i = 0; i < nColumnCount; i++)
+ {
+ aRect.Right() = aRect.Left() + pColMgr->GetColWidth( i );
+ DrawRect(aRect);
+ if(i < nColumnCount - 1)
+ aRect.Left() = aRect.Right() + pColMgr->GetGutterWidth(i);
+ }
+ if(pColMgr->HasLine())
+ {
+// SetPen( Pen ( PEN_SOLID ) );
+ Point aUp( rOrg.X() + nL, rOrg.Y() + GetTop() );
+ Point aDown( rOrg.X() + nL, rOrg.Y() + GetSize().Height()
+ - GetBottom() - GetFtHeight() - GetFtDist() );
+
+ if( pColMgr->GetLineHeightPercent() != 100 )
+ {
+ long nLength = aDown.Y() - aUp.Y();
+ nLength -= nLength * pColMgr->GetLineHeightPercent() / 100;
+ switch(pColMgr->GetAdjust())
+ {
+ case COLADJ_BOTTOM: aUp.Y() += nLength; break;
+ case COLADJ_TOP: aDown.Y() -= nLength; break;
+ case COLADJ_CENTER:
+ aUp.Y() += nLength / 2;
+ aDown.Y() -= nLength / 2;
+ break;
+ }
+ }
+
+ int nDist;
+ for( i = 0; i < nColumnCount - 1; i++)
+ {
+ int nGutter = pColMgr->GetGutterWidth(i);
+ nDist = pColMgr->GetColWidth( i ) + nGutter;
+ nDist -= (i == 0) ?
+ nGutter/2 :
+ 0;
+ aUp.X() += nDist;
+ aDown.X() += nDist;
+ DrawLine( aUp, aDown );
+
+ }
+ }
+ }
+}
+
+
+
+SwColExample::SwColExample(Window* pPar, const ResId& rResId ) :
+ SvxPageWindow(pPar, rResId )
+{
+ SetSize(Size(11907, 16433));// DIN A4
+}
+
+/*-----------------25.10.96 09.15-------------------
+
+--------------------------------------------------*/
+
+
+SwColumnOnlyExample::SwColumnOnlyExample( Window* pParent, const ResId& rResId) :
+ Window(pParent, rResId),
+ aFrmSize(1,1),
+ nDistance(0)
+{
+ SetMapMode( MapMode( MAP_TWIP ) );
+ aWinSize = GetOutputSizePixel();
+ aWinSize.Height() -= 4;
+ aWinSize.Width() -= 4;
+
+ aWinSize = PixelToLogic( aWinSize );
+
+}
+
+/*-----------------25.10.96 09.16-------------------
+
+--------------------------------------------------*/
+
+
+void SwColumnOnlyExample::Paint( const Rectangle& rRect )
+{
+// Pen aSolidPen(PEN_SOLID);
+ long nWidth = aFrmSize.Width();
+ long nHeight = aFrmSize.Height();
+ Fraction aXScale( aWinSize.Width(),
+ max( nWidth + nWidth / 8, 1 ) );
+ Fraction aYScale( aWinSize.Height(), max( nHeight, 1 ) );
+ MapMode aMapMode( GetMapMode() );
+ aMapMode.SetScaleX( aXScale );
+ aMapMode.SetScaleY( aYScale );
+ SetMapMode( aMapMode );
+
+ Size aLogSize(PixelToLogic(GetOutputSizePixel()));
+ Point aTL( (aLogSize.Width() - aFrmSize.Width()) / 2,
+ (aLogSize.Height() - aFrmSize.Height()) / 2);
+ Rectangle aRect(aTL, aFrmSize);
+
+ SetFillColor( Color( COL_WHITE ) );
+// SetPen(aSolidPen);
+ DrawRect(aRect);
+
+ Size aInside(aFrmSize.Width() - nDistance, aFrmSize.Height() - nDistance);
+ long nDist2 = nDistance / 2;
+ aTL.X() += nDist2;
+ aTL.Y() += nDist2;
+ Rectangle aInsRect(aTL, aInside);
+ DrawRect(aInsRect);
+
+ SetFillColor(Color( COL_LIGHTGRAY ) );
+
+ //Spaltentrenner?
+ long nLength = aLogSize.Height() - 2 * aTL.Y();
+ Point aUp( aTL );
+ Point aDown( aTL.X(), nLength );
+ BOOL bLines = FALSE;
+ if(aCols.GetLineAdj() != COLADJ_NONE)
+ {
+ bLines = TRUE;
+
+ USHORT nPercent = aCols.GetLineHeight();
+ if( nPercent != 100 )
+ {
+ nLength -= nLength * nPercent / 100;
+ switch(aCols.GetLineAdj())
+ {
+ case COLADJ_BOTTOM: aUp.Y() += nLength; break;
+ case COLADJ_TOP: aDown.Y() -= nLength; break;
+ case COLADJ_CENTER:
+ aUp.Y() += nLength / 2;
+ aDown.Y() -= nLength / 2;
+ break;
+ }
+ }
+
+ }
+
+ const SwColumns& rCols = aCols.GetColumns();
+ USHORT nColCount = rCols.Count();
+// SetPen(Pen(PEN_DOT));
+ if( !nColCount)
+ DrawRect(aRect);
+ else
+ {
+ Rectangle aFrmRect(aTL, aInside);
+ long nSum = aTL.X();
+ for(USHORT i = 0; i < nColCount; i++)
+ {
+ SwColumn* pCol = rCols[i];
+ aFrmRect.Left() = nSum + pCol->GetLeft();//nSum + pCol->GetLeft() + aTL.X();
+ nSum += pCol->GetWishWidth();
+ aFrmRect.Right() = nSum - pCol->GetRight();
+ DrawRect(aFrmRect);
+ }
+// SetPen( aSolidPen );
+ if(bLines )
+ {
+ nSum = aTL.X();
+ for(USHORT i = 0; i < nColCount - 1; i++)
+ {
+ nSum += rCols[i]->GetWishWidth();
+ aUp.X() = nSum;
+ aDown.X() = nSum;
+ DrawLine(aUp, aDown);
+ }
+ }
+ }
+}
+
+/*-----------------25.10.96 12.05-------------------
+
+--------------------------------------------------*/
+
+
+void SwColumnOnlyExample::SetFrameSize(const Size& rS, long nDist)
+{
+ aFrmSize = rS;
+ nDistance = 2 * nDist;
+ ::FitToActualSize(aCols, (USHORT)aFrmSize.Width());
+}
+
+/*-----------------25.02.94 21:22-------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.26 2000/09/18 16:05:32 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.25 2000/03/03 15:17:01 os
+ StarView remainders removed
+
+ Revision 1.24 1998/04/28 09:28:32 OS
+ Abstand nur fuer existierende Spalten erfragen
+
+
+ Rev 1.23 28 Apr 1998 11:28:32 OS
+ Abstand nur fuer existierende Spalten erfragen
+
+ Rev 1.22 16 Apr 1998 13:09:28 OS
+ Spaltenabstand fuer Seitenbeispiel richtig #49516#
+
+ Rev 1.21 28 Nov 1997 19:40:38 MA
+ includes
+
+ Rev 1.20 24 Nov 1997 17:40:12 MA
+ include
+
+ Rev 1.19 03 Nov 1997 13:19:44 MA
+ precomp entfernt
+
+ Rev 1.18 15 Aug 1997 12:15:24 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.17 12 Aug 1997 15:58:08 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.16 07 Aug 1997 14:59:08 OM
+ Headerfile-Umstellung
+
+ Rev 1.15 23 Apr 1997 11:08:48 OS
+ ResId const
+
+ Rev 1.14 21 Nov 1996 11:53:34 OS
+ Umrandungsabstand mit anzeigen
+
+ Rev 1.13 08 Nov 1996 14:07:54 OS
+ ohne Spalten mit richtigem Hintergrund painten
+
+ Rev 1.12 25 Oct 1996 14:56:56 OS
+ neues Spaltenbeispiel ohne Seite
+
+ Rev 1.11 28 Aug 1996 11:52:54 OS
+ includes
+
+ Rev 1.10 27 Mar 1996 16:02:56 OS
+ Hoehe Kopf-/Fusszeilen richtig einstellen
+
+ Rev 1.9 22 Mar 1996 14:20:58 MH
+ add: include pageitem.hxx
+
+ Rev 1.8 24 Nov 1995 16:58:10 OM
+ PCH->PRECOMPILED
+
+ Rev 1.7 21 Nov 1995 08:16:04 OS
+ +pragma
+
+ Rev 1.6 21 Nov 1995 08:00:48 OS
+ Itemsate auf _SET pruefen, Seitengroesse init.
+
+ Rev 1.5 17 Oct 1995 15:00:08 MA
+ fix: SEXPORT'iert
+
+ Rev 1.4 22 Aug 1995 09:10:02 MA
+ svxitems-header entfernt
+
+ Rev 1.3 07 Aug 1995 18:51:24 OS
+ Trennlinien mit einzeichnen
+
+ Rev 1.2 02 Aug 1995 17:47:50 OS
+ Seitenspaltenbeispiel implementiert
+
+ Rev 1.1 11 Jul 1995 15:42:06 OS
+ Beispielfenster jetzt vom SvxPageWindow abgeleitet
+
+ Rev 1.0 20 Apr 1995 17:38:02 OS
+ Initial revision.
+
+--------------------------------------------------*/
+
+
diff --git a/sw/source/ui/frmdlg/colmgr.cxx b/sw/source/ui/frmdlg/colmgr.cxx
new file mode 100644
index 000000000000..b9ef8398dd39
--- /dev/null
+++ b/sw/source/ui/frmdlg/colmgr.cxx
@@ -0,0 +1,289 @@
+/*************************************************************************
+ *
+ * $RCSfile: colmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+
+#include "frmmgr.hxx"
+#include "frmfmt.hxx"
+#include "colmgr.hxx"
+
+
+// PRIVATE METHODES ------------------------------------------------------
+/*------------------------------------------------------------------------
+ Beschreibung: Spaltenbreite auf aktuelle Breite einstellen
+------------------------------------------------------------------------*/
+
+
+
+void FitToActualSize(SwFmtCol& rCol, USHORT nWidth)
+{
+ const USHORT nCount = rCol.GetColumns().Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const USHORT nTmp = rCol.CalcColWidth(i, nWidth);
+ rCol.GetColumns()[i]->SetWishWidth(nTmp);
+ }
+ rCol.SetWishWidth(nWidth);
+}
+
+
+// PUBLIC METHODES -------------------------------------------------------
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen Spaltenanzahl und Gutterwidth
+------------------------------------------------------------------------*/
+
+
+
+void SwColMgr::SetCount(USHORT nCount, USHORT nGutterWidth)
+{
+ aFmtCol.Init(nCount, nGutterWidth, nWidth);
+ aFmtCol.SetWishWidth(nWidth);
+ aFmtCol.SetGutterWidth(nGutterWidth, nWidth);
+}
+
+
+
+USHORT SwColMgr::GetGutterWidth( USHORT nPos ) const
+{
+ USHORT nRet;
+ if(nPos == USHRT_MAX )
+ nRet = GetCount() > 1 ? aFmtCol.GetGutterWidth() : DEF_GUTTER_WIDTH;
+ else
+ {
+ DBG_ASSERT(nPos < GetCount() - 1, "Spalte ueberindiziert" )
+ const SwColumns& rCols = aFmtCol.GetColumns();
+ nRet = rCols.GetObject(nPos)->GetRight() + rCols.GetObject(nPos + 1)->GetLeft();
+ }
+ return nRet;
+}
+
+/*-----------------22.10.96 14.28-------------------
+
+--------------------------------------------------*/
+
+
+void SwColMgr::SetGutterWidth(USHORT nGutterWidth, USHORT nPos )
+{
+ if(nPos == USHRT_MAX)
+ aFmtCol.SetGutterWidth(nGutterWidth, nWidth);
+ else
+ {
+ DBG_ASSERT(nPos < GetCount() - 1, "Spalte ueberindiziert" )
+ SwColumns& rCols = aFmtCol.GetColumns();
+ USHORT nGutterWidth2 = nGutterWidth / 2;
+ rCols.GetObject(nPos)->SetRight(nGutterWidth2);
+ rCols.GetObject(nPos + 1)->SetLeft(nGutterWidth2);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Hoehe Trennlinie
+------------------------------------------------------------------------*/
+
+
+
+short SwColMgr::GetLineHeightPercent() const
+{
+ return (short)aFmtCol.GetLineHeight();
+}
+
+
+
+void SwColMgr::SetLineHeightPercent(short nPercent)
+{
+ ASSERT(nPercent <= 100, LineHeight darf nur bis 100 % gross sein);
+ aFmtCol.SetLineHeight((BYTE)nPercent);
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Spaltenbreite
+------------------------------------------------------------------------*/
+
+
+
+USHORT SwColMgr::GetColWidth(USHORT nIdx) const
+{
+ ASSERT(nIdx < GetCount(), Spaltenarray ueberindiziert.);
+ return aFmtCol.CalcPrtColWidth(nIdx, nWidth);
+}
+
+
+
+void SwColMgr::SetColWidth(USHORT nIdx, USHORT nWd)
+{
+ ASSERT(nIdx < GetCount(), Spaltenarray ueberindiziert.);
+ aFmtCol.GetColumns()[nIdx]->SetWishWidth(nWd);
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Groesse neu setzen
+ --------------------------------------------------------------------*/
+
+
+
+void SwColMgr::SetActualWidth(USHORT nW)
+{
+ nWidth = nW;
+ ::FitToActualSize(aFmtCol, nW);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ctor
+ --------------------------------------------------------------------*/
+
+
+
+SwColMgr::SwColMgr(const SfxItemSet& rSet, USHORT nActWidth) :
+ aFmtCol((const SwFmtCol&)rSet.Get(RES_COL)),
+ nWidth(nActWidth)
+{
+ if(nWidth == USHRT_MAX)
+ {
+ nWidth = (USHORT)((const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE)).GetWidth();
+ if (nWidth < MINLAY)
+ nWidth = USHRT_MAX;
+ const SvxLRSpaceItem &rLR = (const SvxLRSpaceItem&)rSet.Get(RES_LR_SPACE);
+ nWidth -= (USHORT)rLR.GetLeft();
+ nWidth -= (USHORT)rLR.GetRight();
+ }
+ ::FitToActualSize(aFmtCol, nWidth);
+}
+
+
+
+
+SwColMgr::~SwColMgr() {}
+
+
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.43 2000/09/18 16:05:32 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.42 1997/11/24 16:40:12 MA
+ include
+
+
+ Rev 1.41 24 Nov 1997 17:40:12 MA
+ include
+
+ Rev 1.40 03 Nov 1997 13:19:46 MA
+ precomp entfernt
+
+ Rev 1.39 12 Aug 1997 15:58:08 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.38 07 Aug 1997 14:59:18 OM
+ Headerfile-Umstellung
+
+ Rev 1.37 24 Oct 1996 17:59:50 OS
+ unterschiedliche Spaltenabstaende einstellen
+
+ Rev 1.36 28 Aug 1996 11:52:52 OS
+ includes
+
+ Rev 1.35 19 Apr 1996 16:59:00 MA
+ chg: Vorbereitung fuer kleine Rahmen
+
+ Rev 1.34 18 Apr 1996 11:47:06 OM
+ Unbenutzte Fkt entfernt
+
+ Rev 1.33 24 Nov 1995 16:58:10 OM
+ PCH->PRECOMPILED
+
+ Rev 1.32 13 Jul 1995 22:45:20 JP
+ Spaltenbreiten richtig berechnen
+
+ Rev 1.31 21 May 1995 18:55:28 OS
+ Trennlinienhoehe gerichtet
+
+ Rev 1.30 03 May 1995 14:09:24 OM
+ DEF_GUTTER_WIDTH fuer Default-Spaltenabstand
+
+ Rev 1.29 03 Apr 1995 17:13:08 OM
+ Bug in Spaltenpage gefixt
+
+ Rev 1.28 28 Mar 1995 15:38:56 OS
+ Pre-Fix fuer leere Breite
+
+ Rev 1.27 13 Mar 1995 16:19:44 MS
+ neu: Spalten im Bsp
+
+ Rev 1.26 08 Mar 1995 12:54:28 MS
+ Aktuelle Breite einstellen
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx
new file mode 100644
index 000000000000..e2957fb05a2f
--- /dev/null
+++ b/sw/source/ui/frmdlg/column.cxx
@@ -0,0 +1,1561 @@
+/*************************************************************************
+ *
+ * $RCSfile: column.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "uiparam.hxx"
+#include "hintids.hxx"
+
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+
+
+#include "globals.hrc"
+#include "swtypes.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "docsh.hxx"
+#include "uitool.hxx"
+#include "cmdid.h"
+#include "viewopt.hxx"
+#include "format.hxx"
+#include "frmmgr.hxx"
+#include "frmdlg.hxx"
+#include "column.hxx"
+#include "colmgr.hxx"
+#include "prcntfld.hxx"
+#include "linetype.hxx"
+#include "paratr.hxx"
+#include "frmui.hrc"
+#include "poolfmt.hrc"
+#include "column.hrc"
+#ifndef _SECTION_HXX //autogen
+#include <section.hxx>
+#endif
+#ifndef _DOCARY_HXX
+#include <docary.hxx>
+#endif
+#ifndef _PAGEDESC_HXX //autogen
+#include <pagedesc.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#define FRAME_FORMAT_WIDTH 1000
+/*--------------------------------------------------------------------
+ Beschreibung: Statische Daten
+ --------------------------------------------------------------------*/
+
+static const USHORT __FAR_DATA nLines[] = {
+ LIN_1,
+ LIN_2,
+ LIN_3,
+ LIN_4,
+ LIN_5
+};
+
+static const USHORT nLineCount = sizeof(nLines) / sizeof(nLines[0]);
+static const nVisCols = 3;
+
+inline BOOL IsMarkInSameSection( SwWrtShell& rWrtSh, const SwSection* pSect )
+{
+ rWrtSh.SwapPam();
+ BOOL bRet = pSect == rWrtSh.GetCurrSection();
+ rWrtSh.SwapPam();
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwColumnDlg::SwColumnDlg(Window* pParent, SwWrtShell& rSh) :
+ SfxModalDialog(pParent, SW_RES(DLG_COLUMN)),
+ aOK(this, ResId(PB_OK)),
+ aCancel(this, ResId(PB_CANCEL)),
+ aHelp(this, ResId(PB_HELP)),
+ aApplyToFT(this, ResId(FT_APPLY_TO)),
+ aApplyToLB(this, ResId(LB_APPLY_TO)),
+ rWrtShell(rSh),
+ pPageSet(0),
+ pSectionSet(0),
+ pSelectionSet(0),
+ pFrameSet(0),
+ nOldSelection(0),
+ bPageChanged(FALSE),
+ nSelectionWidth(0),
+ bSectionChanged(FALSE),
+ bSelSectionChanged(FALSE),
+ bFrameChanged(FALSE)
+{
+ FreeResource();
+
+ SwRect aRect;
+ rWrtShell.CalcBoundRect(aRect, FLY_IN_CNTNT);
+
+ nSelectionWidth = aRect.Width();
+
+ SfxItemSet* pColPgSet = 0;
+ static USHORT __READONLY_DATA aSectIds[] = { RES_COL, RES_COL,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_COLUMNBALANCE, RES_COLUMNBALANCE,
+ 0 };
+
+ const SwSection* pCurrSection = rWrtShell.GetCurrSection();
+ USHORT nFullSectCnt = rWrtShell.GetFullSelectedSectionCount();
+ if( pCurrSection && ( !rWrtShell.HasSelection() || 0 != nFullSectCnt ))
+ {
+ pSectionSet = new SfxItemSet( rWrtShell.GetAttrPool(), aSectIds );
+ pSectionSet->Put( pCurrSection->GetFmt()->GetAttrSet() );
+ pColPgSet = pSectionSet;
+ aApplyToLB.RemoveEntry( aApplyToLB.GetEntryPos(
+ (void*)( 1 >= nFullSectCnt
+ ? LISTBOX_SECTIONS
+ : LISTBOX_SECTION )));
+ }
+ else
+ {
+ aApplyToLB.RemoveEntry(aApplyToLB.GetEntryPos( (void*) LISTBOX_SECTION ));
+ aApplyToLB.RemoveEntry(aApplyToLB.GetEntryPos( (void*) LISTBOX_SECTIONS ));
+ }
+
+ if( rWrtShell.HasSelection() && rWrtShell.IsInsRegionAvailable() &&
+ ( !pCurrSection || ( 1 != nFullSectCnt &&
+ IsMarkInSameSection( rWrtShell, pCurrSection ) )))
+ {
+ pSelectionSet = new SfxItemSet( rWrtShell.GetAttrPool(), aSectIds );
+ pColPgSet = pSelectionSet;
+ }
+ else
+ aApplyToLB.RemoveEntry(aApplyToLB.GetEntryPos( (void*) LISTBOX_SELECTION ));
+
+ if( rWrtShell.GetFlyFrmFmt() )
+ {
+ const SwFrmFmt* pFmt = rSh.GetFlyFrmFmt() ;
+ pFrameSet = new SfxItemSet(rWrtShell.GetAttrPool(), aSectIds );
+ pFrameSet->Put(pFmt->GetFrmSize());
+ pFrameSet->Put(pFmt->GetCol());
+ pColPgSet = pFrameSet;
+ }
+ else
+ aApplyToLB.RemoveEntry(aApplyToLB.GetEntryPos( (void*) LISTBOX_FRAME ));
+
+
+ USHORT nPagePos = aApplyToLB.GetEntryPos( (void*) LISTBOX_PAGE );
+ const SwPageDesc* pPageDesc = rWrtShell.GetSelectedPageDescs();
+ if( pPageDesc )
+ {
+ pPageSet = new SfxItemSet( rWrtShell.GetAttrPool(),
+ RES_COL, RES_COL,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_LR_SPACE, RES_LR_SPACE,
+ 0 );
+
+ String sPageStr = aApplyToLB.GetEntry(nPagePos);
+ aApplyToLB.RemoveEntry( nPagePos );
+ sPageStr += pPageDesc->GetName();
+ aApplyToLB.InsertEntry( sPageStr, nPagePos );
+ aApplyToLB.SetEntryData( nPagePos, (void*) LISTBOX_PAGE);
+
+ const SwFrmFmt &rFmt = pPageDesc->GetMaster();
+ nPageWidth = rFmt.GetFrmSize().GetSize().Width();
+ pPageSet->Put(rFmt.GetCol());
+ pPageSet->Put(rFmt.GetLRSpace());
+ pColPgSet = pPageSet;
+ }
+ else
+ aApplyToLB.RemoveEntry( nPagePos );
+
+
+ ASSERT( pColPgSet, "" );
+ // TabPage erzeugen
+ SwColumnPage* pPage = (SwColumnPage*) SwColumnPage::Create( this,
+ *pColPgSet );
+ pTabPage = pPage;
+
+ //Groesse anpassen
+ Size aPageSize(pTabPage->GetSizePixel());
+ Size aDlgSize(GetOutputSizePixel());
+ aDlgSize.Height() = aPageSize.Height();
+ SetOutputSizePixel(aDlgSize);
+ pTabPage->Show();
+
+ aApplyToLB.SelectEntryPos(0);
+ ObjectHdl(0);
+
+ aApplyToLB.SetSelectHdl(LINK(this, SwColumnDlg, ObjectHdl));
+ aOK.SetClickHdl(LINK(this, SwColumnDlg, OkHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwColumnDlg::~SwColumnDlg()
+{
+ delete pTabPage;
+ delete pPageSet;
+ delete pSectionSet;
+ delete pSelectionSet;
+}
+
+/* -----------------26.05.99 11:40-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK(SwColumnDlg, ObjectHdl, ListBox*, pBox)
+{
+ SfxItemSet* pSet = 0;
+ switch(nOldSelection)
+ {
+ case LISTBOX_SELECTION :
+ pSet = pSelectionSet;
+ break;
+ case LISTBOX_SECTION :
+ pSet = pSectionSet;
+ bSectionChanged = TRUE;
+ break;
+ case LISTBOX_SECTIONS :
+ pSet = pSectionSet;
+ bSelSectionChanged = TRUE;
+ break;
+ case LISTBOX_PAGE :
+ pSet = pPageSet;
+ bPageChanged = TRUE;
+ break;
+ case LISTBOX_FRAME:
+ pSet = pFrameSet;
+ bFrameChanged = TRUE;
+ break;
+ }
+ if(pBox)
+ {
+ pTabPage->FillItemSet(*pSet);
+ }
+ nOldSelection = (long)aApplyToLB.GetEntryData(aApplyToLB.GetSelectEntryPos());
+ long nWidth = nSelectionWidth;
+ switch(nOldSelection)
+ {
+ case LISTBOX_SELECTION :
+ pSet = pSelectionSet;
+ pSet->Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth, nWidth));
+ break;
+ case LISTBOX_SECTION :
+ case LISTBOX_SECTIONS :
+ pSet = pSectionSet;
+ pSet->Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth, nWidth));
+ break;
+ case LISTBOX_PAGE :
+ nWidth = nPageWidth;
+ pSet = pPageSet;
+ pSet->Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth, nWidth));
+ break;
+ case LISTBOX_FRAME:
+ pSet = pFrameSet;
+ break;
+ }
+ pTabPage->ShowBalance(pSet == pSectionSet || pSet == pSelectionSet);
+ pTabPage->SetFrmMode(TRUE);
+ pTabPage->SetPageWidth(nWidth);
+ pTabPage->Reset(*pSet);
+ return 0;
+}
+/* -----------------26.05.99 12:32-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK(SwColumnDlg, OkHdl, OKButton*, EMPTYARG)
+{
+ //aktuelle Selektion auswerten
+ SfxItemSet* pSet = 0;
+ switch(nOldSelection)
+ {
+ case LISTBOX_SELECTION :
+ pSet = pSelectionSet;
+ break;
+ case LISTBOX_SECTION :
+ pSet = pSectionSet;
+ bSectionChanged = TRUE;
+ break;
+ case LISTBOX_SECTIONS :
+ pSet = pSectionSet;
+ bSelSectionChanged = TRUE;
+ break;
+ case LISTBOX_PAGE :
+ pSet = pPageSet;
+ bPageChanged = TRUE;
+ break;
+ case LISTBOX_FRAME:
+ pSet = pFrameSet;
+ bFrameChanged = TRUE;
+ break;
+ }
+ pTabPage->FillItemSet(*pSet);
+
+ if(pSelectionSet && SFX_ITEM_SET == pSelectionSet->GetItemState(RES_COL))
+ {
+ //Bereich mit Spalten einfuegen
+ const SwFmtCol& rColItem = (const SwFmtCol&)pSelectionSet->Get(RES_COL);
+ //nur, wenn es auch Spalten gibt!
+ if(rColItem.GetNumCols() > 1)
+ rWrtShell.GetView().GetViewFrame()->GetDispatcher()->Execute(
+ FN_INSERT_REGION, SFX_CALLMODE_ASYNCHRON, *pSelectionSet );
+ }
+
+ if(pSectionSet && pSectionSet->Count() && bSectionChanged )
+ {
+ const SwSection* pCurrSection = rWrtShell.GetCurrSection();
+ const SwSectionFmt* pFmt = pCurrSection->GetFmt();
+ USHORT nNewPos = rWrtShell.GetSectionFmtPos( *pFmt );
+ rWrtShell.ChgSection( nNewPos, *pCurrSection, pSectionSet );
+ }
+
+ if(pSectionSet && pSectionSet->Count() && bSelSectionChanged )
+ {
+ rWrtShell.SetSectionAttr( *pSectionSet );
+ }
+
+ if(pPageSet && SFX_ITEM_SET == pPageSet->GetItemState(RES_COL) && bPageChanged)
+ {
+ // aktuellen PageDescriptor ermitteln und damit den Set fuellen
+ const USHORT nCurIdx = rWrtShell.GetCurPageDesc();
+ SwPageDesc aPageDesc(rWrtShell.GetPageDesc(nCurIdx));
+ SwFrmFmt &rFmt = aPageDesc.GetMaster();
+ rFmt.SetAttr(pPageSet->Get(RES_COL));
+ rWrtShell.ChgPageDesc(nCurIdx, aPageDesc);
+ }
+ if(pFrameSet && SFX_ITEM_SET == pFrameSet->GetItemState(RES_COL) && bFrameChanged)
+ {
+ SfxItemSet aTmp(*pFrameSet->GetPool(), RES_COL, RES_COL);
+ aTmp.Put(*pFrameSet);
+ rWrtShell.StartAction();
+ rWrtShell.Push();
+ rWrtShell.SetFlyFrmAttr( aTmp );
+ //die Rahmenselektion wieder aufheben
+ if(rWrtShell.IsFrmSelected())
+ {
+ rWrtShell.UnSelectFrm();
+ rWrtShell.LeaveSelFrmMode();
+ }
+ rWrtShell.Pop();
+ rWrtShell.EndAction();
+ }
+ EndDialog(RET_OK);
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+#ifndef DEBUG
+inline
+#endif
+USHORT GetMaxWidth( SwColMgr* pColMgr, USHORT nCols )
+{
+ USHORT nMax = pColMgr->GetActualSize();
+ if( --nCols )
+ nMax -= pColMgr->GetGutterWidth() * nCols;
+ return nMax;
+}
+
+static USHORT __FAR_DATA aPageRg[] = {
+ RES_COL, RES_COL,
+ 0
+};
+
+
+DBG_NAME(columnhdl) ;
+
+
+
+USHORT lcl_LineWidthToPos(ULONG nWidth)
+{
+ const USHORT nUShortWidth = (USHORT)nWidth;
+ for(USHORT i = 0; i < nLineCount; ++i)
+ if(nUShortWidth == nLines[i])
+ return i;
+ return 0;
+}
+
+
+
+void SwColumnPage::ResetColWidth()
+{
+ if( nCols )
+ {
+ USHORT nWidth = GetMaxWidth( pColMgr, nCols );
+ nWidth /= nCols;
+
+ for(USHORT i = 0; i < nCols; ++i)
+ nColWidth[i] = (long) nWidth;
+ }
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Jetzt als TabPage
+ --------------------------------------------------------------------*/
+
+
+
+SwColumnPage::SwColumnPage(Window *pParent, const SfxItemSet &rSet)
+
+ : SfxTabPage(pParent, SW_RES(TP_COLUMN), rSet),
+
+ aClNrLbl(this, ResId(FT_NUMBER )),
+ aCLNrEdt(this, ResId(ED_NUMBER )),
+ aAutoWidthBox(this, ResId(CB_AUTO_WIDTH)),
+ aDefaultVS(this, ResId(VS_DEFAULTS)),
+ aBalanceColsCB(this, ResId(CB_BALANCECOLS)),
+ aCLGroup(this, ResId(GB_COLUMNS )),
+
+ aLineTypeLbl(this, ResId(FT_STYLE)),
+ aLineTypeDLB(this, ResId(LB_STYLE)),
+ aLineHeightLbl(this, ResId(FT_HEIGHT)),
+ aLineHeightEdit(this, ResId(ED_HEIGHT)),
+ aLinePosLbl(this, ResId(FT_POSITION)),
+ aLinePosDLB(this, ResId(LB_POSITION)),
+ aLineTypeGrp(this, ResId(GB_LINETYPE)),
+ aBtnUp(this, ResId(BTN_DOWN)),
+ aBtnDown(this, ResId(BTN_UP)),
+
+ aWidthFT(this, ResId(FT_WIDTH)),
+ aDistFT(this, ResId(FT_DIST)),
+ aLbl1(this, ResId(FT_1)),
+ aEd1(this, ResId(ED_1)),
+ aDistEd1(this, ResId(ED_DIST1)),
+ aLbl2(this, ResId(FT_2)),
+ aEd2(this, ResId(ED_2)),
+ aDistEd2(this, ResId(ED_DIST2)),
+ aLbl3(this, ResId(FT_3)),
+ aEd3(this, ResId(ED_3)),
+ aLayoutGrp(this, ResId(GB_LAYOUT)),
+
+ aPgeExampleWN(this, ResId(WN_BSP)),
+ aFrmExampleWN(this, ResId(WN_BSP)),
+ aExampleGB(this, ResId(GB_BSP)),
+
+ nFirstVis(0),
+ bFrm(FALSE),
+ bFormat(FALSE),
+ bHtmlMode(FALSE),
+ nMinWidth(MINLAY),
+ pModifiedField(0),
+ pColMgr(0),
+ bLockUpdate(FALSE)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ aDefaultVS.SetColCount( 5 );
+ aDefaultVS.SetStyle( aDefaultVS.GetStyle()
+ | WB_ITEMBORDER
+ | WB_DOUBLEBORDER );
+ for(USHORT i = 0; i < 5; i++)
+ aDefaultVS.InsertItem( i + 1, i );
+
+ aDefaultVS.SetSelectHdl(LINK(this, SwColumnPage, SetDefaultsHdl));
+
+ // Controls fuer Zusaetzebereich beim MoreButton anmelden
+ aCLNrEdt.SetModifyHdl(LINK(this, SwColumnPage, ColModify));
+ Link aLk = LINK(this, SwColumnPage, GapModify);
+ aDistEd1.SetUpHdl(aLk);
+ aDistEd1.SetDownHdl(aLk);
+ aDistEd1.SetLoseFocusHdl(aLk);
+ aDistEd2.SetUpHdl(aLk);
+ aDistEd2.SetDownHdl(aLk);
+ aDistEd2.SetLoseFocusHdl(aLk);
+
+ aLk = LINK(this, SwColumnPage, EdModify);
+
+ aEd1.SetUpHdl(aLk);
+ aEd1.SetDownHdl(aLk);
+ aEd1.SetLoseFocusHdl(aLk);
+
+ aEd2.SetUpHdl(aLk);
+ aEd2.SetDownHdl(aLk);
+ aEd2.SetLoseFocusHdl(aLk);
+
+ aEd3.SetUpHdl(aLk);
+ aEd3.SetDownHdl(aLk);
+ aEd3.SetLoseFocusHdl(aLk);
+
+ aBtnUp.SetClickHdl(LINK(this, SwColumnPage, Up));
+ aBtnDown.SetClickHdl(LINK(this, SwColumnPage, Down));
+ aAutoWidthBox.SetClickHdl(LINK(this, SwColumnPage, AutoWidthHdl));
+
+ aLk = LINK( this, SwColumnPage, UpdateColMgr );
+ aLineTypeDLB.SetSelectHdl( aLk );
+ aLineHeightEdit.SetModifyHdl( aLk );
+ aLinePosDLB.SetSelectHdl( aLk );
+
+ // Trennlinie
+ aLineTypeDLB.SetUnit( FUNIT_POINT );
+ aLineTypeDLB.SetSourceUnit( FUNIT_TWIP );
+ for( i = 0; i < nLineCount; ++i )
+ aLineTypeDLB.InsertEntry( 100 * nLines[ i ] );
+}
+
+
+
+SwColumnPage::~SwColumnPage()
+{
+ delete pColMgr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwColumnPage::SetPageWidth(long nPageWidth)
+{
+ long nNewMaxWidth = aEd1.Normalize(nPageWidth);
+
+ aDistEd1.SetMax(nNewMaxWidth, FUNIT_TWIP);
+ aDistEd2.SetMax(nNewMaxWidth, FUNIT_TWIP);
+ aEd1.SetMax(nNewMaxWidth, FUNIT_TWIP);
+ aEd2.SetMax(nNewMaxWidth, FUNIT_TWIP);
+ aEd3.SetMax(nNewMaxWidth, FUNIT_TWIP);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwColumnPage::Reset(const SfxItemSet &rSet)
+{
+ USHORT nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
+ if(nHtmlMode & HTMLMODE_ON)
+ {
+ bHtmlMode = TRUE;
+ aAutoWidthBox.Enable(FALSE);
+ }
+ FieldUnit aMetric = ::GetDfltMetric(bHtmlMode);
+ SetMetric(aEd1, aMetric);
+ SetMetric(aEd2, aMetric);
+ SetMetric(aEd3, aMetric);
+ SetMetric(aDistEd1, aMetric);
+ SetMetric(aDistEd2, aMetric);
+
+ delete pColMgr;
+ pColMgr = new SwColMgr(rSet);
+ nCols = pColMgr->GetCount() ;
+ aCLNrEdt.SetMax(Max((USHORT)aCLNrEdt.GetMax(), (USHORT)nCols));
+ aCLNrEdt.SetLast(Max(nCols,(USHORT)aCLNrEdt.GetMax()));
+
+ if(bFrm)
+ {
+ if(bFormat) // hier gibt es keine Size
+ pColMgr->SetActualWidth(FRAME_FORMAT_WIDTH);
+ else
+ {
+ const SwFmtFrmSize& rSize = (const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE);
+ const SvxBoxItem& rBox = (const SvxBoxItem&) rSet.Get(RES_BOX);
+ pColMgr->SetActualWidth((USHORT)rSize.GetSize().Width() - rBox.GetDistance());
+ }
+ }
+ if(aBalanceColsCB.IsVisible())
+ {
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == rSet.GetItemState( RES_COLUMNBALANCE, FALSE, &pItem ))
+ aBalanceColsCB.Check(!((const SwFmtNoBalancedColumns*)pItem)->GetValue());
+ else
+ aBalanceColsCB.Check( TRUE );
+ }
+
+ Init();
+ ActivatePage( rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage erzeugen
+ --------------------------------------------------------------------*/
+
+
+
+SfxTabPage* SwColumnPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwColumnPage(pParent, rSet);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Attribute in den Set stopfen bei OK
+ --------------------------------------------------------------------*/
+
+
+
+BOOL SwColumnPage::FillItemSet(SfxItemSet &rSet)
+{
+ // Im ItemSet setzen
+ // Die aktuellen Einstellungen sind
+ // schon vorhanden
+ //
+ const SfxPoolItem* pOldItem;
+ const SwFmtCol& rCol = pColMgr->GetColumns();
+ if(0 == (pOldItem = GetOldItem( rSet, RES_COL )) ||
+ rCol != *pOldItem )
+ rSet.Put(rCol);
+
+ if(aBalanceColsCB.IsVisible() )
+ {
+ rSet.Put(SwFmtNoBalancedColumns(!aBalanceColsCB.IsChecked() ));
+ }
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ColumnManager updaten
+ --------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwColumnPage, UpdateColMgr, void *, pField )
+{
+ long nGutterWidth = pColMgr->GetGutterWidth();
+ if(nCols > 1)
+ {
+ // Ermitteln, ob die schmalste Spalte zu schmal ist
+ // fuer den eingestellten Spaltenabstand
+ long nMin = nColWidth[0];
+ for(USHORT i = 1; i < nCols; ++i)
+ nMin = Min(nMin, nColWidth[i]);
+
+ BOOL bAutoWidth = aAutoWidthBox.IsChecked();
+ if(!bAutoWidth)
+ {
+ pColMgr->SetAutoWidth(FALSE);
+ // falls der Benutzer nicht die Gesamtbreite vergeben hat,
+ // den fehlenden Betrag auf die letzte Spalte addieren.
+ long nSum = 0;
+ for(i = 0; i < nCols; ++i)
+ nSum += nColWidth[i];
+ nGutterWidth = 0;
+ for(i = 0; i < nCols - 1; ++i)
+ nGutterWidth += nColDist[i];
+ nSum += nGutterWidth;
+
+ long nMaxW = pColMgr->GetActualSize();
+
+ if( nSum < nMaxW )
+ nColWidth[nCols - 1] += nMaxW - nSum;
+
+ pColMgr->SetColWidth( 0, nColWidth[0] + (USHORT)nColDist[0]/2 );
+ for( i = 1; i < nCols-1; ++i )
+ {
+ long nActDist = (nColDist[i] + nColDist[i - 1]) / 2;
+ pColMgr->SetColWidth( i, (USHORT)nColWidth[i] + (USHORT)nActDist );
+ }
+ pColMgr->SetColWidth( nCols-1, (USHORT)nColWidth[nCols-1] + nColDist[nCols -2]/2 );
+
+ }
+
+ // keins ist ausgeschaltet
+ const USHORT nPos = aLineTypeDLB.GetSelectEntryPos();
+ BOOL bEnable = 0 != nPos;
+ aLineHeightEdit.Enable( bEnable );
+ aLineHeightLbl.Enable( bEnable );
+ if( !bEnable )
+ pColMgr->SetNoLine();
+ else if( LISTBOX_ENTRY_NOTFOUND != nPos )
+ {
+ pColMgr->SetLineWidthAndColor(nLines[nPos - 1], Color(COL_BLACK) );
+ pColMgr->SetAdjust( SwColLineAdj(
+ aLinePosDLB.GetSelectEntryPos() + 1) );
+ pColMgr->SetLineHeightPercent((short)aLineHeightEdit.GetValue());
+ bEnable = pColMgr->GetLineHeightPercent() != 100;
+ }
+ aLinePosLbl.Enable( bEnable );
+ aLinePosDLB.Enable( bEnable );
+ }
+ else
+ {
+ pColMgr->NoCols();
+ }
+
+ //Maximalwerte setzen
+ aCLNrEdt.SetMax(Max(1L,
+ Min(long(nMaxCols), long( pColMgr->GetActualSize() /
+ ((nGutterWidth + MINLAY)) ))));
+ aCLNrEdt.SetLast(aCLNrEdt.GetMax());
+ aCLNrEdt.Reformat();
+
+ //Beispielfenster anregen
+ if(!bLockUpdate)
+ {
+ if(bFrm)
+ {
+ aFrmExampleWN.SetColumns( pColMgr->GetColumns() );
+ aFrmExampleWN.Invalidate();
+ }
+ else
+ aPgeExampleWN.Invalidate();
+ }
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Initialisierung
+------------------------------------------------------------------------*/
+
+
+
+void SwColumnPage::Init()
+{
+ aCLNrEdt.SetValue(nCols);
+
+ aAutoWidthBox.Check(pColMgr->IsAutoWidth() || bHtmlMode );
+
+ // Setzen der Breiten
+ for(USHORT i = 0; i < nCols; ++i)
+ {
+ nColWidth[i] = pColMgr->GetColWidth(i);
+ if(i < nCols - 1)
+ nColDist[i] = pColMgr->GetGutterWidth(i);
+ }
+
+ if( 1 < nCols )
+ {
+ USHORT eAdj = pColMgr->GetAdjust();
+ if( COLADJ_NONE == eAdj ) // der Dialog kennt kein NONE!
+ {
+ eAdj = COLADJ_TOP;
+ //ohne Adjust auch kein Linientyp
+ aLineTypeDLB.SelectEntryPos( 0 );
+ aLineHeightEdit.SetValue( 100 );
+ }
+ else
+ {
+ aLineTypeDLB.SelectEntryPos( lcl_LineWidthToPos(( pColMgr->GetLineWidth() ) + 1 ));
+ aLineHeightEdit.SetValue( pColMgr->GetLineHeightPercent() );
+ }
+ aLinePosDLB.SelectEntryPos( eAdj - 1 );
+ }
+ else
+ {
+ aLinePosDLB.SelectEntryPos( 0 );
+ aLineTypeDLB.SelectEntryPos( 0 );
+ aLineHeightEdit.SetValue( 100 );
+ }
+
+ UpdateCols();
+ Update();
+
+ // Maximale Spaltenzahl setzen
+ // Werte kleiner als 1 sind nicht erlaubt
+ aCLNrEdt.SetMax(Max(1L,
+ Min(long(nMaxCols), long(pColMgr->GetActualSize() / nMinWidth))));
+
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Die Anzahl der Spalten hat sich veraendert -- hier werden
+ die Controls fuer die Bearbeitung der Spalten entsprechend
+ der Spaltenzahl en- oder disabled.
+ Falls es mehr als nVisCols (= 3) Spalten gibt, werden
+ alle Edit enabled und die Buttons fuer das Scrollen
+ ebenfalls.
+ Andernfalls werden die Edits jeweils fuer die entsprechenden
+ Spaltenzahl enabled; eine Spalte kann nicht bearbeitet werden.
+------------------------------------------------------------------------*/
+
+
+
+void SwColumnPage::UpdateCols()
+{
+ BOOL bEnableBtns= FALSE;
+ BOOL bEnable12 = FALSE;
+ BOOL bEnable3 = FALSE;
+ const BOOL bEdit = !aAutoWidthBox.IsChecked();
+ if ( nCols > nVisCols )
+ {
+ bEnableBtns = TRUE && !bHtmlMode;
+ bEnable12 = bEnable3 = bEdit;
+ }
+ else if( bEdit )
+ {
+ // hier gibt es absichtlich kaum noch breaks
+ switch(nCols)
+ {
+ case 3: bEnable3 = TRUE;
+ case 2: bEnable12= TRUE; break;
+ default: /* do nothing */;
+ }
+ }
+ aEd1.Enable( bEnable12 );
+ aDistEd1.Enable(nCols > 1);
+ aEd2.Enable( bEnable12 );
+ aDistEd2.Enable(bEnable3);
+ aEd3.Enable( bEnable3 );
+ aLbl1.Enable(bEnable12 );
+ aLbl2.Enable(bEnable12 );
+ aLbl3.Enable(bEnable3 );
+ aBtnUp.Enable( bEnableBtns );
+ aBtnDown.Enable( bEnableBtns );
+
+ const BOOL bEnable = nCols > 1;
+ if( !bEnable )
+ {
+ aLinePosDLB.Enable( FALSE );
+ aLinePosLbl.Enable( FALSE );
+ }
+ aLineHeightEdit.Enable( bEnable );
+ aLineHeightLbl.Enable( bEnable );
+ aLineTypeDLB.Enable( bEnable );
+ aLineTypeLbl.Enable( bEnable );
+ aAutoWidthBox.Enable( bEnable && !bHtmlMode );
+}
+
+void SwColumnPage::SetLabels( USHORT nVis )
+{
+ String sLbl( '~' );
+
+ String sLbl2( String::CreateFromInt32( nVis + 1 ));
+ sLbl2.Insert(sLbl, sLbl2.Len() - 1);
+ aLbl1.SetText(sLbl2);
+
+ sLbl2 = String::CreateFromInt32( nVis + 2 );
+ sLbl2.Insert(sLbl, sLbl2.Len() - 1);
+ aLbl2.SetText(sLbl2);
+
+ sLbl2 = String::CreateFromInt32( nVis + 3 );
+ sLbl2.Insert(sLbl, sLbl2.Len() - 1);
+ aLbl3.SetText(sLbl2);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler, der bei einer Veraenderung der Spaltenzahl
+ gerufen wird.
+ Eine Aenderung der Spaltenzahl ueberschreibt eventuelle
+ Breiteneinstellungen des Benutzers; alle Spalten sind
+ gleich breit.
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwColumnPage, ColModify, NumericField *, pNF )
+{
+ if(pNF)
+ aDefaultVS.SetNoSelection();
+ nCols = (USHORT)aCLNrEdt.GetValue();
+ long nDist = aDistEd1.Denormalize(aDistEd1.GetValue(FUNIT_TWIP));
+ pColMgr->SetCount(nCols, (USHORT)nDist);
+ for(USHORT i = 0; i < nCols; i++)
+ nColDist[i] = nDist;
+ nFirstVis = 0;
+ SetLabels( nFirstVis );
+ UpdateCols();
+ ResetColWidth();
+ Update();
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Modify- Handler fuer eine Aenderung der Spaltenbreite
+ oder des Spaltenabstandes.
+ Diese Aenderungen wirken sich erst zeitversetzt aus.
+ Durch eine Aenderung der Spaltenbreite wird die automatische
+ Berechnung der Spaltenbreite ausser Kraft gesetzt; erst
+ eine Aenderung der Spaltenzahl kehrt wieder zu diesem
+ Default zurueck.
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwColumnPage, GapModify, PercentField *, pFld )
+{
+ long nActValue = pFld->Denormalize(pFld->GetValue(FUNIT_TWIP));
+ if(nCols < 2)
+ return 0;
+ if(aAutoWidthBox.IsChecked())
+ {
+ USHORT nMaxGap = pColMgr->GetActualSize() - nCols * MINLAY;
+ DBG_ASSERT(nCols, "Abstand kann nicht ohne Spalten eingestellt werden")
+ nMaxGap /= nCols - 1;
+ if(nActValue > nMaxGap)
+ {
+ nActValue = nMaxGap;
+ aDistEd1.SetValue(aDistEd1.Normalize(nMaxGap), FUNIT_TWIP);
+ }
+ pColMgr->SetGutterWidth((USHORT)nActValue);
+ for(USHORT i = 0; i < nCols; i++)
+ nColDist[i] = nActValue;
+
+ ResetColWidth();
+ UpdateCols();
+ }
+ else
+
+ {
+ USHORT nOffset = 0;
+ if(pFld == &aDistEd2)
+ {
+ nOffset = 1;
+ }
+ long nDiff = nActValue - nColDist[nFirstVis + nOffset];
+ if(nDiff)
+ {
+ long nLeft = nColWidth[nFirstVis + nOffset];
+ long nRight = nColWidth[nFirstVis + nOffset + 1];
+ if(nLeft + nRight + 2 * MINLAY < nDiff)
+ nDiff = nLeft + nRight - 2 * MINLAY;
+ if(nDiff < nRight - MINLAY)
+ {
+ nRight -= nDiff;
+ }
+ else
+ {
+ long nTemp = nDiff - nRight + MINLAY;
+ nRight = MINLAY;
+ if(nLeft > nTemp - MINLAY)
+ {
+ nLeft -= nTemp;
+ nTemp = 0;
+ }
+ else
+ {
+ nTemp -= nLeft + MINLAY;
+ nLeft = MINLAY;
+ }
+ nDiff = nTemp;
+ }
+ nColWidth[nFirstVis + nOffset] = nLeft;
+ nColWidth[nFirstVis + nOffset + 1] = nRight;
+ nColDist[nFirstVis + nOffset] += nDiff;
+
+ pColMgr->SetColWidth( nFirstVis + nOffset, USHORT(nLeft) );
+ pColMgr->SetColWidth( nFirstVis + nOffset + 1, USHORT(nRight) );
+ pColMgr->SetGutterWidth( USHORT(nColDist[nFirstVis + nOffset]), nFirstVis + nOffset );
+ }
+
+ }
+ Update();
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwColumnPage, EdModify, PercentField *, pField )
+{
+ pModifiedField = pField;
+ Timeout(0);
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Handler hinter der Checkbox fuer automatische Breite.
+ Ist die Box gecheckt, koennen keine expliziten Werte
+ fuer die Spaltenbreite eingegeben werden.
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwColumnPage, AutoWidthHdl, CheckBox *, pBox )
+{
+ long nDist = aDistEd1.Denormalize(aDistEd1.GetValue(FUNIT_TWIP));
+ pColMgr->SetCount(nCols, (USHORT)nDist);
+ for(USHORT i = 0; i < nCols; i++)
+ nColDist[i] = nDist;
+ if(pBox->IsChecked())
+ {
+ pColMgr->SetGutterWidth(USHORT(nDist));
+ ResetColWidth();
+ }
+ pColMgr->SetAutoWidth(pBox->IsChecked(), USHORT(nDist));
+ UpdateCols();
+ Update();
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Raufscrollen der Inhalte der Edits.
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwColumnPage, Up, Button *, EMPTYARG )
+{
+ if( nFirstVis )
+ {
+ --nFirstVis;
+ SetLabels( nFirstVis );
+ Update();
+ }
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Runterscrollen der Inhalte der Edits.
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwColumnPage, Down, Button *, EMPTYARG )
+{
+ if( nFirstVis + nVisCols < nCols )
+ {
+ ++nFirstVis;
+ SetLabels( nFirstVis );
+ Update();
+ }
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Relikt aus alten Zeiten - jetzt direkt ohne time
+ * Timer- Handler; angetriggert durch eine Aenderung der
+ Spaltenbreite oder des Spaltenabstandes.
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwColumnPage, Timeout, Timer *, EMPTYARG )
+{
+ DBG_PROFSTART(columnhdl) ;
+ if(pModifiedField)
+ {
+ // Finden der veraenderten Spalte
+ USHORT nChanged = nFirstVis;
+ if(pModifiedField == &aEd2)
+ ++nChanged;
+ else if(pModifiedField == &aEd3)
+ nChanged += 2;
+ /*else if(pModifiedField == &aEd4)
+ nChanged += 3;*/
+
+ long nNewWidth = (USHORT)
+ pModifiedField->Denormalize(pModifiedField->GetValue(FUNIT_TWIP));
+ long nDiff = nNewWidth - nColWidth[nChanged];
+
+ // wenn es die letzte Spalte ist
+ if(nChanged == nCols - 1)
+ {
+ nColWidth[0] -= nDiff;
+ if(nColWidth[0] < (long)nMinWidth)
+ {
+ nNewWidth -= nMinWidth - nColWidth[0];
+ nColWidth[0] = nMinWidth;
+ }
+
+ }
+ else if(nDiff)
+ {
+ nColWidth[nChanged + 1] -= nDiff;
+ if(nColWidth[nChanged + 1] < (long) nMinWidth)
+ {
+ nNewWidth -= nMinWidth - nColWidth[nChanged + 1];
+ nColWidth[nChanged + 1] = nMinWidth;
+ }
+ }
+ nColWidth[nChanged] = nNewWidth;
+ pModifiedField = 0;
+ }
+ Update();
+ DBG_PROFSTOP(columnhdl) ;
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Aktualisierung der Anzeige
+------------------------------------------------------------------------*/
+
+
+
+void SwColumnPage::Update()
+{
+ aBalanceColsCB.Enable(nCols > 1);
+ if(nCols >= 2)
+ {
+ aEd1.SetValue(aEd1.Normalize(nColWidth[nFirstVis]), FUNIT_TWIP);
+ aDistEd1.SetValue(aDistEd1.Normalize(nColDist[nFirstVis]), FUNIT_TWIP);
+ aEd2.SetValue(aEd2.Normalize(nColWidth[nFirstVis + 1]), FUNIT_TWIP);
+ if(nCols >= 3)
+ {
+ aDistEd2.SetValue(aDistEd2.Normalize(nColDist[nFirstVis + 1]), FUNIT_TWIP);
+ aEd3.SetValue(aEd3.Normalize(nColWidth[nFirstVis + 2]), FUNIT_TWIP);
+ }
+ else
+ {
+ aEd3.SetText(aEmptyStr);
+ aDistEd2.SetText(aEmptyStr);
+ }
+ }
+ else
+ {
+ aEd1.SetText(aEmptyStr);
+ aEd2.SetText(aEmptyStr);
+ aEd3.SetText(aEmptyStr);
+ aDistEd1.SetText(aEmptyStr);
+ aDistEd2.SetText(aEmptyStr);
+ }
+ UpdateColMgr(0);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Update Bsp
+ --------------------------------------------------------------------*/
+
+
+
+void SwColumnPage::ActivatePage(const SfxItemSet& rSet)
+{
+ if(!bFrm)
+ {
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_PAGE_SIZE ))
+ {
+ const SvxSizeItem& rSize = (const SvxSizeItem&)rSet.Get(
+ SID_ATTR_PAGE_SIZE);
+ const SvxLRSpaceItem& rLRSpace = (const SvxLRSpaceItem&)rSet.Get(
+ RES_LR_SPACE );
+ const SvxBoxItem& rBox = (const SvxBoxItem&) rSet.Get(RES_BOX);
+ USHORT nActWidth = (USHORT)rSize.GetSize().Width()
+ - rLRSpace.GetLeft() - rLRSpace.GetRight() - rBox.GetDistance();
+
+ if( pColMgr->GetActualSize() != nActWidth)
+ {
+ pColMgr->SetActualWidth(nActWidth);
+ ColModify( 0 );
+ UpdateColMgr( 0 );
+ }
+ }
+ aFrmExampleWN.Hide();
+ aPgeExampleWN.UpdateExample( rSet, pColMgr );
+ aPgeExampleWN.Show();
+
+ }
+ else
+ {
+ aPgeExampleWN.Hide();
+ aFrmExampleWN.Show();
+
+ // Size
+ const SwFmtFrmSize& rSize = (const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE);
+ const SvxBoxItem& rBox = (const SvxBoxItem&) rSet.Get(RES_BOX);
+
+ long nDistance = rBox.GetDistance();
+ if(bFormat)
+ aFrmExampleWN.SetFrameSize(Size(FRAME_FORMAT_WIDTH, FRAME_FORMAT_WIDTH), 0);
+ else
+ aFrmExampleWN.SetFrameSize(rSize.GetSize(), nDistance);
+
+
+ const USHORT nTotalWish = bFormat ? FRAME_FORMAT_WIDTH : USHORT(rSize.GetWidth() - 2 * nDistance);
+
+ // Maximalwerte der Spaltenbreiten setzen
+ SetPageWidth(nTotalWish);
+
+ if(pColMgr->GetActualSize() != nTotalWish)
+ {
+ pColMgr->SetActualWidth(nTotalWish);
+ Init();
+ }
+ BOOL bPercent;
+ // im Rahmenformat nur relative Angaben
+ if ( bFormat || rSize.GetWidthPercent() && rSize.GetWidthPercent() != 0xff)
+ {
+ // Wert fuer 100% setzen
+ aEd1.SetRefValue(nTotalWish);
+ aEd2.SetRefValue(nTotalWish);
+ aEd3.SetRefValue(nTotalWish);
+ aDistEd1.SetRefValue(nTotalWish);
+ aDistEd2.SetRefValue(nTotalWish);
+
+ // Auf %-Darstellung umschalten
+ bPercent = TRUE;
+ }
+ else
+ bPercent = FALSE;
+
+ aEd1.ShowPercent(bPercent);
+ aEd2.ShowPercent(bPercent);
+ aEd3.ShowPercent(bPercent);
+ aDistEd1.ShowPercent(bPercent);
+ aDistEd2.ShowPercent(bPercent);
+ aDistEd1.MetricField::SetMin(0);
+ aDistEd2.MetricField::SetMin(0);
+ }
+ Update();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+int SwColumnPage::DeactivatePage(SfxItemSet *pSet)
+{
+ if(pSet)
+ FillItemSet(*pSet);
+
+ return TRUE;
+}
+
+
+
+USHORT* SwColumnPage::GetRanges()
+{
+ return aPageRg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwColumnPage, SetDefaultsHdl, ValueSet *, pVS )
+{
+ USHORT nItem = pVS->GetSelectItemId();
+ if( nItem < 4 )
+ {
+ aCLNrEdt.SetValue( nItem );
+ aAutoWidthBox.Check();
+ aDistEd1.SetValue(0);
+ ColModify(0);
+ }
+ else
+ {
+ bLockUpdate = TRUE;
+ aCLNrEdt.SetValue( 2 );
+ aAutoWidthBox.Check(FALSE);
+ aDistEd1.SetValue(0);
+ ColModify(0);
+ // jetzt noch das Breitenverhaeltnisse auf 2 : 1 bzw. 1 : 2 stellen
+ USHORT nSmall = pColMgr->GetActualSize() / 3;
+ if(nItem == 4)
+ {
+ aEd2.SetValue(aEd2.Normalize(long(nSmall)), FUNIT_TWIP);
+ pModifiedField = &aEd2;
+ }
+ else
+ {
+ aEd1.SetValue(aEd1.Normalize(long(nSmall)), FUNIT_TWIP);
+ pModifiedField = &aEd1;
+ }
+ bLockUpdate = FALSE;
+ Timeout(0);
+
+ }
+ return 0;
+}
+
+/*-----------------25.10.96 11.41-------------------
+
+--------------------------------------------------*/
+
+
+void SwColumnPage::SetFrmMode(BOOL bMod)
+{
+ bFrm = bMod;
+}
+
+/*-----------------07.03.97 08.33-------------------
+
+--------------------------------------------------*/
+
+
+void ColumnValueSet::UserDraw( const UserDrawEvent& rUDEvt )
+{
+ OutputDevice* pDev = rUDEvt.GetDevice();
+ Rectangle aRect = rUDEvt.GetRect();
+ USHORT nItemId = rUDEvt.GetItemId();
+ long nRectWidth = aRect.GetWidth();
+ long nRectHeight = aRect.GetHeight();
+
+ Point aBLPos = aRect.TopLeft();
+ Color aOldLineColor = pDev->GetLineColor();
+ pDev->SetLineColor(Color(COL_BLACK));
+
+ long nStep = Abs(Abs(nRectHeight * 95 /100) / 11);
+ long nTop = (nRectHeight - 11 * nStep ) / 2;
+ USHORT nCols;
+ long nStarts[3];
+ long nEnds[3];
+ nStarts[0] = nRectWidth * 10 / 100;
+ switch( nItemId )
+ {
+ case 1:
+ nEnds[0] = nRectWidth * 9 / 10;
+ nCols = 1;
+ break;
+ case 2: nCols = 2;
+ nEnds[0] = nRectWidth * 45 / 100;
+ nStarts[1] = nEnds[0] + nStep;
+ nEnds[1] = nRectWidth * 9 / 10;
+ break;
+ case 3: nCols = 3;
+ nEnds[0] = nRectWidth * 30 / 100;
+ nStarts[1] = nEnds[0] + nStep;
+ nEnds[1] = nRectWidth * 63 / 100;
+ nStarts[2] = nEnds[1] + nStep;
+ nEnds[2] = nRectWidth * 9 / 10;
+ break;
+ case 4: nCols = 2;
+ nEnds[0] = nRectWidth * 63 / 100;
+ nStarts[1] = nEnds[0] + nStep;
+ nEnds[1] = nRectWidth * 9 / 10;
+ break;
+ case 5: nCols = 2;
+ nEnds[0] = nRectWidth * 30 / 100;
+ nStarts[1] = nEnds[0] + nStep;
+ nEnds[1] = nRectWidth * 9 / 10;
+ break;
+ }
+ for(USHORT j = 0; j < nCols; j++ )
+ {
+ Point aStart(aBLPos.X() + nStarts[j], 0);
+ Point aEnd(aBLPos.X() + nEnds[j], 0);
+ for( USHORT i = 0; i < 12; i ++)
+ {
+ aStart.Y() = aEnd.Y() = aBLPos.Y() + nTop + i * nStep;
+ pDev->DrawLine(aStart, aEnd);
+ }
+ }
+ pDev->SetLineColor(aOldLineColor);
+}
+
+/*-----------------07.03.97 08.48-------------------
+
+--------------------------------------------------*/
+
+
+ColumnValueSet::~ColumnValueSet()
+{
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.156 2000/09/18 16:05:32 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.155 2000/09/05 10:38:24 kz
+ chg. SetWinStyle/GetWinStyle to SetStyle/GetStyle
+
+ Revision 1.154 2000/08/15 15:46:54 os
+ #77635# set accelerator at last character
+
+ Revision 1.153 2000/07/26 16:26:29 jp
+ Bug #77158#: call InsertRegionDialog with the complete Itemset
+
+ Revision 1.152 2000/05/23 18:48:10 jp
+ Bugfixes for Unicode
+
+ Revision 1.151 2000/03/03 15:17:01 os
+ StarView remainders removed
+
+ Revision 1.150 2000/01/07 15:32:20 ama
+ Fix #71411#: NoBalanced columns
+
+ Revision 1.149 2000/01/04 15:36:29 os
+ #71411# balanced columns
+
+ Revision 1.148 1999/10/22 11:41:23 os
+ #69058# ListBox entries: selected sections only if more than one section is selected
+
+ Revision 1.147 1999/09/06 18:16:32 jp
+ Insert into the LineTypeBox twip values and set the Source- & Unit
+
+ Revision 1.146 1999/06/10 16:39:56 JP
+ new: Change columns for selected Pages or Sections
+
+
+ Rev 1.145 10 Jun 1999 18:39:56 JP
+ new: Change columns for selected Pages or Sections
+
+ Rev 1.144 27 May 1999 13:02:26 OS
+ Einf?gen/Bearbeiten von Spalten ueberarbeitet
+
+ Rev 1.143 05 Mar 1999 10:30:08 OS
+ #62854# ModifyHdl nur im Up/Down/LoseFocus, kein Timer
+
+ Rev 1.142 12 Oct 1998 17:21:32 OM
+ #57749# UI fuer spaltige Bereiche
+
+ Rev 1.141 08 Sep 1998 16:56:54 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.140 12 May 1998 12:29:34 OS
+ GapModify return wenn Spaltenzahl < 2 #50218#
+
+ Rev 1.139 24 Apr 1998 11:05:50 OS
+ Spalten in Rahmenvorlagen nur relativ
+
+ Rev 1.138 08 Apr 1998 13:55:24 OS
+ ein cast an der falschen Stelle
+
+ Rev 1.137 06 Apr 1998 09:49:20 OS
+ Warnungen beseitigt
+
+ Rev 1.136 28 Nov 1997 19:30:32 MA
+ includes
+
+ Rev 1.135 24 Nov 1997 17:40:10 MA
+ include
+
+ Rev 1.134 03 Nov 1997 13:19:48 MA
+ precomp entfernt
+
+ Rev 1.133 02 Sep 1997 14:41:42 OS
+ LineListBox fuer VCL
+
+ Rev 1.132 01 Sep 1997 13:26:24 OS
+ DLL-Umstellung
+
+ Rev 1.131 12 Aug 1997 15:58:08 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.130 08 Aug 1997 17:26:38 OM
+ Headerfile-Umstellung
+
+ Rev 1.129 07 Aug 1997 14:59:06 OM
+ Headerfile-Umstellung
+
+ Rev 1.128 07 Mar 1997 09:35:28 OS
+ Spaltenbeispiel mit UserDraw
+
+ Rev 1.127 20 Feb 1997 19:20:24 HJS
+ header umgestellt
+
+ Rev 1.126 28 Jan 1997 16:31:52 OS
+ HtmlMode mit GetHtmlMode ermitteln
+
+ Rev 1.125 08 Jan 1997 11:00:26 OS
+ SID_HTML_MODE jetzt UInt16Item
+
+ Rev 1.124 11 Dec 1996 10:24:06 MA
+ Warnings
+
+ Rev 1.123 02 Dec 1996 11:42:22 OS
+ GapModify mit PercentField
+
+ Rev 1.122 22 Nov 1996 09:52:16 OS
+ ValueSet deselektieren, wenn sich die Spaltenzahl aendert
+
+ Rev 1.121 21 Nov 1996 11:53:56 OS
+ Umrandungsabstand beruecksichtigen
+
+ Rev 1.120 11 Nov 1996 10:44:16 MA
+ ResMgr
+
+ Rev 1.119 08 Nov 1996 14:07:24 OS
+ div. Bugs behoben
+
+ Rev 1.118 25 Oct 1996 14:55:36 OS
+ neues Spaltenbeispiel ohne Seite
+
+ Rev 1.117 24 Oct 1996 17:57:40 OS
+ Rahmendialog mit unterschiedlichen Spaltenabstaenden
+
+ Rev 1.116 18 Oct 1996 16:14:40 HJS
+ includes
+
+ Rev 1.115 11 Oct 1996 12:06:28 OS
+ Aenderungen fuer HTML-Mode
+
+ Rev 1.114 02 Oct 1996 17:36:18 MA
+ Umstellung Enable/Disable
+
+ Rev 1.113 11 Sep 1996 15:09:32 OM
+ Rahmenspalten
+
+ Rev 1.112 10 Sep 1996 17:00:44 OM
+ Prozentuale Rahmen
+
+ Rev 1.111 09 Sep 1996 16:57:04 OM
+ Prozentuale Spalten
+
+ Rev 1.110 06 Sep 1996 14:15:18 OM
+ #31010# GPF bei fehlenden Groessenangaben behoben
+
+ Rev 1.109 28 Aug 1996 11:52:52 OS
+ includes
+
+ Rev 1.108 12 Aug 1996 14:04:08 OS
+ Registerhaltigkeit abschaltbar ...
+
+ Rev 1.107 10 Aug 1996 14:59:24 OS
+ FixedTexts immer mit enablen/disablen
+
+ Rev 1.106 31 Jul 1996 14:45:58 OS
+ im Html-Mode nur autom. Spaltenbreite
+
+ Rev 1.105 27 Jul 1996 10:52:58 OS
+ RegisterItem benutzen
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/frmdlg/column.hrc b/sw/source/ui/frmdlg/column.hrc
new file mode 100644
index 000000000000..1ba3aadbc4ba
--- /dev/null
+++ b/sw/source/ui/frmdlg/column.hrc
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * $RCSfile: column.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define FT_NUMBER 1
+#define ED_NUMBER 2
+#define FT_DISTANCE 3
+#define ED_DISTANCE 4
+#define CB_AUTO_WIDTH 4
+#define GB_COLUMNS 6
+
+#define FT_1 20
+#define FT_2 21
+#define FT_3 22
+
+
+#define ED_1 25
+#define ED_2 26
+#define ED_3 27
+
+
+#define BTN_UP 30
+#define BTN_DOWN 31
+#define GB_LAYOUT 32
+
+#define FT_STYLE 33
+#define LB_STYLE 34
+#define FT_HEIGHT 35
+#define ED_HEIGHT 36
+#define FT_POSITION 37
+#define LB_POSITION 38
+#define GB_LINETYPE 39
+
+
+#define GB_BSP 40
+#define WN_BSP 41
+#define LB_REFERENCE 42
+#define CB_REGISTER 43
+#define GB_REGISTER 44
+#define FT_REFERENCE 45
+
+#define ED_DIST1 46
+#define ED_DIST2 47
+
+#define FT_WIDTH 49
+#define FT_DIST 50
+#define VS_DEFAULTS 51
+#define IL_PRE_COLS 52
+
+#define FT_APPLY_TO 53
+#define LB_APPLY_TO 54
+#define PB_HELP 55
+#define PB_CANCEL 56
+#define PB_OK 57
+#define CB_BALANCECOLS 58
+
+#define LISTBOX_SELECTION 0
+#define LISTBOX_SECTION 1
+#define LISTBOX_SECTIONS 2
+#define LISTBOX_PAGE 3
+#define LISTBOX_FRAME 4
diff --git a/sw/source/ui/frmdlg/column.src b/sw/source/ui/frmdlg/column.src
new file mode 100644
index 000000000000..c5792310cc37
--- /dev/null
+++ b/sw/source/ui/frmdlg/column.src
@@ -0,0 +1,1145 @@
+/*************************************************************************
+ *
+ * $RCSfile: column.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "column.hrc"
+#include "frmui.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ // #define TP_COLUMN 256
+TabPage TP_COLUMN
+{
+ HelpID = HID_COLUMN ;
+ Hide = TRUE;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Spalten" ; // Dieser Text ist fuer den SingleTabDialog bestimmt!
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ FixedText FT_NUMBER
+ {
+ Pos = MAP_APPFONT ( 11 , 16 ) ;
+ Size = MAP_APPFONT ( 28 , 10 ) ;
+ Text = "~Anzahl" ;
+ Text [ ENGLISH ] = "~Num." ;
+ Text [ norwegian ] = "~Num." ;
+ Text [ italian ] = "~Num." ;
+ Text [ portuguese_brazilian ] = "~N£m." ;
+ Text [ portuguese ] = "~Quantidade" ;
+ Text [ finnish ] = "~Määrä" ;
+ Text [ danish ] = "Antal" ;
+ Text [ french ] = "~Nombre" ;
+ Text [ swedish ] = "~Antal" ;
+ Text [ dutch ] = "~Aantal" ;
+ Text [ spanish ] = "~Cantidad" ;
+ Text [ english_us ] = "~Amount" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊýÄ¿(~A)";
+ Text[ russian ] = "×èñëî";
+ Text[ polish ] = "Liczba";
+ Text[ japanese ] = "’i”(~A)";
+ Text[ chinese_traditional ] = "¼Æ¥Ø(~A)";
+ Text[ arabic ] = "ÇáÚÏÏ";
+ Text[ dutch ] = "~Aantal";
+ Text[ chinese_simplified ] = "ÊýÄ¿(~A)";
+ Text[ greek ] = "~Áñéèìüò";
+ Text[ korean ] = "¾ç(~A)";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "S~ayý";
+ };
+ NumericField ED_NUMBER
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 11 , 28 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 20 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 20 ;
+ SpinSize = 1 ;
+ };
+ Control VS_DEFAULTS
+ {
+ Pos = MAP_APPFONT ( 50 , 12 ) ;
+ Size = MAP_APPFONT ( 110 , 28 ) ;
+ TabStop = TRUE ;
+ };
+ CheckBox CB_BALANCECOLS
+ {
+ Pos = MAP_APPFONT ( 11 , 43 ) ;
+ Size = MAP_APPFONT ( 150 , 10 ) ;
+ Text = "~Spalten ausgleichen" ;
+ Text [ ENGLISH ] = "Balance columns" ;
+ Hide = TRUE;
+ Text[ english_us ] = "~Balance columns";
+ Text[ portuguese ] = "Optimizar ~colunas";
+ Text[ russian ] = "Âûðîâíÿòü êîëîíêè";
+ Text[ greek ] = "Åîé~óïññüðçóç óôçëþí";
+ Text[ dutch ] = "~Kolommen uitbalanceren";
+ Text[ french ] = "Optimiser les ~colonnes";
+ Text[ spanish ] = "~Optimar columnas";
+ Text[ italian ] = "Ottimizza colonne";
+ Text[ danish ] = "Udjævn kolonner";
+ Text[ swedish ] = "~Jämna ut kolumner";
+ Text[ polish ] = "~Wyrównaj kolumny";
+ Text[ portuguese_brazilian ] = "Balance columns";
+ Text[ japanese ] = "’i‚Ì•‚ð‚·‚×‚Ä“¯‚¶‚É‚·‚é(~B)";
+ Text[ korean ] = "´Ü ±æÀÌ Á¶Á¤(~B)";
+ Text[ chinese_simplified ] = "Эµ÷À¸";
+ Text[ chinese_traditional ] = "Äæ¦P¨B¤Æ";
+ Text[ arabic ] = "ÃÚãÏÉ ãÊÓÇæíÉ";
+ Text[ turkish ] = "S~ütunlarý dengele";
+ };
+ GroupBox GB_COLUMNS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 157 , 53 ) ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ dutch ] = "Kolommen";
+ Text[ chinese_simplified ] = "À¸";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Sütun";
+ };
+ FixedText FT_STYLE
+ {
+ Pos = MAP_APPFONT ( 180 , 70 ) ;
+ Size = MAP_APPFONT ( 18 , 10 ) ;
+ Text = "A~rt" ;
+ Text [ ENGLISH ] = "~Style" ;
+ Text [ norwegian ] = "~Style" ;
+ Text [ italian ] = "~Stile" ;
+ Text [ portuguese_brazilian ] = "~Estilo" ;
+ Text [ portuguese ] = "~Estilo" ;
+ Text [ finnish ] = "~Tyyli" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "~Type" ;
+ Text [ swedish ] = "~Typ" ;
+ Text [ dutch ] = "~Type" ;
+ Text [ spanish ] = "~Tipo" ;
+ Text [ english_us ] = "~Line" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÀàÐÍ(~L)";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ(~L)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~L)";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ dutch ] = "~Type";
+ Text[ chinese_simplified ] = "ÀàÐÍ(~L)";
+ Text[ greek ] = "Ôý~ðïò";
+ Text[ korean ] = "¼±(~L)";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "T~ür";
+ };
+ ListBox LB_STYLE
+ {
+ Pos = MAP_APPFONT ( 211 , 69 ) ;
+ Size = MAP_APPFONT ( 40 , 66 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Keine" ; Default ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Keine" ; Default ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "Keine" ; Default ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Senza" ; Default ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Nenhum" ; Default ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Nenhum" ; Default ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "Keine" ; Default ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Ingen" ; Default ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "Aucun(e)" ; Default ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Ingen" ; Default ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Geen" ; Default ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Ninguno" ; Default ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "None" ; Default ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÎÞ" ; Default ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Áåç" ; Default ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Brak" ; Default ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‚È‚µ" ; Default ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; Default ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "µL" ; Default ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÈÏæä" ; Default ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Geen" ; Default ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÎÞ" ; Default ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÊáíÝíá" ; Default ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¾øÀ½" ; Default ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yok" ; Default ; > ;
+ };
+ };
+ FixedText FT_HEIGHT
+ {
+ Pos = MAP_APPFONT ( 180 , 90 ) ;
+ Size = MAP_APPFONT ( 22 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Höh~e : H÷h~e */
+ Text = "Höh~e" ;
+ Text [ ENGLISH ] = "Hei~ght" ;
+ Text [ norwegian ] = "Hei~ght" ;
+ Text [ italian ] = "Altezza" ;
+ Text [ portuguese_brazilian ] = "Altu~ra" ;
+ Text [ portuguese ] = "Altu~ra" ;
+ Text [ finnish ] = "~Korkeus" ;
+ Text [ danish ] = "Højde" ;
+ Text [ french ] = "~Hauteur" ;
+ Text [ swedish ] = "Hö~jd" ;
+ Text [ dutch ] = "~Hoogte" ;
+ Text [ spanish ] = "A~ltura" ;
+ Text [ english_us ] = "~Height" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¸ß(~H)";
+ Text[ russian ] = "Âûñîòà";
+ Text[ polish ] = "Wys.";
+ Text[ japanese ] = "‚‚³(~H)";
+ Text[ chinese_traditional ] = "°ª(~H)";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ";
+ Text[ dutch ] = "~Hoogte";
+ Text[ chinese_simplified ] = "¸ß(~H)";
+ Text[ greek ] = "¾øïò";
+ Text[ korean ] = "³ôÀÌ(~H)";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "~Yüks.";
+ };
+ MetricField ED_HEIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 211 , 89 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 25 ;
+ Maximum = 100 ;
+ Value = 100 ;
+ Unit = FUNIT_CUSTOM ;
+ CustomUnitText = "%" ;
+ First = 25 ;
+ Last = 100 ;
+ };
+ FixedText FT_POSITION
+ {
+ Pos = MAP_APPFONT ( 180 , 110 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Position" ;
+ Text [ English ] = "~Position" ;
+ Left = TRUE ;
+ Text [ portuguese ] = "~Posição" ;
+ Text [ english_us ] = "~Position" ;
+ Text [ portuguese_brazilian ] = "~Position" ;
+ Text [ swedish ] = "~Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "~Posizione" ;
+ Text [ spanish ] = "~Posición" ;
+ Text [ french ] = "~Position" ;
+ Text [ dutch ] = "~Positie" ;
+ Text[ chinese_simplified ] = "λÖÃ(~P)";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u(~P)";
+ Text[ chinese_traditional ] = "¦ì¸m(~P)";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ dutch ] = "~Positie";
+ Text[ chinese_simplified ] = "λÖÃ(~P)";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡(~P)";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "~Konum";
+ };
+ ListBox LB_POSITION
+ {
+ Pos = MAP_APPFONT ( 211 , 109 ) ;
+ Size = MAP_APPFONT ( 40 , 40 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Oben" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Unten" ; Default ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Oben" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Unten" ; Default ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "Oben" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Unten" ; Default ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "In alto" ; Default ; > ;
+ < "Al centro" ; Default ; > ;
+ < "In basso" ; Default ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Oben" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Base" ; Default ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Em cima" ; Default ; > ;
+ < "Centrado" ; Default ; > ;
+ < "Em baixo" ; Default ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "Oben" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Unten" ; Default ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Foroven" ; Default ; > ;
+ < "Centreret" ; Default ; > ;
+ < "Forneden" ; Default ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "En haut" ; Default ; > ;
+ < "Centré" ; Default ; > ;
+ < "En bas" ; Default ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Uppe" ; Default ; > ;
+ < "Centrerat" ; Default ; > ;
+ < "Nere" ; Default ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Boven" ; Default ; > ;
+ < "Gecentreerd" ; Default ; > ;
+ < "Beneden" ; Default ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Arriba" ; Default ; > ;
+ < "Centrado" ; Default ; > ;
+ < "Abajo" ; Default ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Top" ; Default ; > ;
+ < "Centered" ; Default ; > ;
+ < "Bottom" ; Default ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÉÏ" ; Default ; > ;
+ < "¾ÓÖÐ" ; Default ; > ;
+ < "ÏÂ" ; Default ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Ââåðõó" ; Default ; > ;
+ < "Ïî öåíòðó" ; Default ; > ;
+ < "Âíèçó" ; Default ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Na górze" ; Default ; > ;
+ < "Wyœrodkowany" ; Default ; > ;
+ < "Na dole" ; Default ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "ã" ; Default ; > ;
+ < "’†‰›" ; Default ; > ;
+ < "‰º" ; Default ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¤W" ; Default ; > ;
+ < "¸m¤¤" ; Default ; > ;
+ < "¤U" ; Default ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÃÚáì" ; Default ; > ;
+ < "ãÊæÓØ" ; Default ; > ;
+ < "ÃÓÝá" ; Default ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Boven" ; Default ; > ;
+ < "Gecentreerd" ; Default ; > ;
+ < "Beneden" ; Default ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÉÏ" ; Default ; > ;
+ < "¾ÓÖÐ" ; Default ; > ;
+ < "ÏÂ" ; Default ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÐÜíù" ; Default ; > ;
+ < "ÊåíôñáñéóìÝíá" ; Default ; > ;
+ < "ÊÜôù" ; Default ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ˤ" ; Default ; > ;
+ < "°¡¿îµ¥" ; Default ; > ;
+ < "¾Æ·¡" ; Default ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; Default ; > ;
+ < " " ; Default ; > ;
+ < " " ; Default ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Üst" ; Default ; > ;
+ < "Orta" ; Default ; > ;
+ < "Alt" ; Default ; > ;
+ };
+ };
+ GroupBox GB_LINETYPE
+ {
+ Pos = MAP_APPFONT ( 171 , 49 ) ;
+ Size = MAP_APPFONT ( 83 , 80 ) ;
+ Text = "Trennlinie" ;
+ Text [ ENGLISH ] = "Lines between" ;
+ Text [ norwegian ] = "Lines between" ;
+ Text [ italian ] = "Linea di separazione" ;
+ Text [ portuguese_brazilian ] = "Linhas entre" ;
+ Text [ portuguese ] = "Separador" ;
+ Text [ finnish ] = "Rivejä välissä" ;
+ Text [ danish ] = "Separator" ;
+ Text [ french ] = "Trait de séparation" ;
+ Text [ swedish ] = "Skiljelinje" ;
+ Text [ dutch ] = "Scheidingslijn" ;
+ Text [ spanish ] = "Línea de separación" ;
+ Text [ english_us ] = "Separator" ;
+ Text[ chinese_simplified ] = "·Ö¸ôÏß";
+ Text[ russian ] = "Ðàçäåëèòåëüíàÿ ëèíèÿ";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹«ŠEü‚ðˆø‚­";
+ Text[ chinese_traditional ] = "¤À¹j½u";
+ Text[ arabic ] = "ÇáÎØ ÇáÝÇÕá";
+ Text[ dutch ] = "Scheidingslijn";
+ Text[ chinese_simplified ] = "·Ö¸ôÏß";
+ Text[ greek ] = "Äéá÷ùñéóôéêÞ ãñáììÞ";
+ Text[ korean ] = "±¸ºÐÀÚ";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Ayýrma çizgisi";
+ };
+ FixedText FT_WIDTH
+ {
+ Pos = MAP_APPFONT ( 12 , 86 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "Breite" ;
+ Text [ English ] = "Width" ;
+ Left = TRUE ;
+ Text [ dutch ] = "Breedte" ;
+ Text [ english_us ] = "Width" ;
+ Text [ italian ] = "Larghezza" ;
+ Text [ spanish ] = "Ancho" ;
+ Text [ french ] = "Largeur" ;
+ Text [ swedish ] = "Bredd" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ portuguese ] = "Largura" ;
+ Text [ portuguese_brazilian ] = "Breite" ;
+ Text[ chinese_simplified ] = "¿í";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "’i‚Ì•";
+ Text[ chinese_traditional ] = "¼e";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ dutch ] = "Breedte";
+ Text[ chinese_simplified ] = "¿í";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Geniþlik";
+ };
+ FixedText FT_DIST
+ {
+ Pos = MAP_APPFONT ( 12 , 103 ) ;
+ Size = MAP_APPFONT ( 45 , 10 ) ;
+ Text = "Abstand" ;
+ Text [ English ] = "Distance" ;
+ Left = TRUE ;
+ Text [ dutch ] = "Afstand" ;
+ Text [ english_us ] = "Spacing" ;
+ Text [ italian ] = "Distanza" ;
+ Text [ spanish ] = "Espacio" ;
+ Text [ french ] = "Écart" ;
+ Text [ swedish ] = "Avstånd" ;
+ Text [ danish ] = "Afstand" ;
+ Text [ portuguese ] = "Espaçamento" ;
+ Text [ portuguese_brazilian ] = "Abstand" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "Èíòåðâàë";
+ Text[ polish ] = "Odstêp";
+ Text[ japanese ] = "ŠÔŠu";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÇáÊÈÇÚÏ";
+ Text[ dutch ] = "Afstand";
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ greek ] = "Áðüóôáóç";
+ Text[ korean ] = "°£°Ý";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Aralýk";
+ };
+ CheckBox CB_AUTO_WIDTH
+ {
+ Pos = MAP_APPFONT ( 12 , 117 ) ;
+ Size = MAP_APPFONT ( 75 , 10 ) ;
+ Text = "A~utomatische Breite" ;
+ Text [ ENGLISH ] = "Automatic ~width" ;
+ Text [ norwegian ] = "Automatic ~width" ;
+ Text [ italian ] = "~Larghezza autom." ;
+ Text [ portuguese_brazilian ] = "Autom tica ~largura" ;
+ Text [ portuguese ] = "~Largura automática" ;
+ Text [ finnish ] = "Automaattinen ~leveys" ;
+ Text [ danish ] = "Automatisk bredde" ;
+ Text [ french ] = "~Largeur automatique" ;
+ Text [ swedish ] = "A~utomatisk bredd" ;
+ Text [ dutch ] = "A~utomatische breedte" ;
+ Text [ spanish ] = "Ancho ~automático" ;
+ Text [ english_us ] = "Auto~Width" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "×Ô¶¯µ÷Õû¿í¶È(~W)";
+ Text[ russian ] = "Àâòîì. øèðèíà";
+ Text[ polish ] = "Automatyczna szerokoϾ";
+ Text[ japanese ] = "•Ž©“®’²®(~W)";
+ Text[ chinese_traditional ] = "¦Û°Ê½Õ¾ã¼e«×(~W)";
+ Text[ arabic ] = "ÚÑÖ ÊáÞÇÆí";
+ Text[ dutch ] = "A~utomatische breedte";
+ Text[ chinese_simplified ] = "×Ô¶¯µ÷Õû¿í¶È(~W)";
+ Text[ greek ] = "Áõôüìáôï ðëÜôïò";
+ Text[ korean ] = "ÀÚµ¿ ³Êºñ(~W)";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "O~tomatik geniþlik";
+ };
+ ImageButton BTN_UP
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 145 , 69 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_ARROW_RIGHT ;
+ };
+ ImageButton BTN_DOWN
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 40 , 69 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_ARROW_LEFT ;
+ };
+ FixedText FT_1
+ {
+ Pos = MAP_APPFONT ( 55 , 69 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~1" ;
+ Left = TRUE ;
+ Center = TRUE ;
+ Right = TRUE ;
+ };
+ FixedText FT_2
+ {
+ Pos = MAP_APPFONT ( 90 , 69 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~2" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ FixedText FT_3
+ {
+ Pos = MAP_APPFONT ( 125 , 69 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~3" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField ED_1
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 40 , 84 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ MetricField ED_2
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 80 , 84 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ MetricField ED_3
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 120 , 84 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ MetricField ED_DIST1
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 60 , 101 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ MetricField ED_DIST2
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 100 , 101 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ GroupBox GB_LAYOUT
+ {
+ Pos = MAP_APPFONT ( 6 , 59 ) ;
+ Size = MAP_APPFONT ( 157 , 70 ) ;
+ Text = "Spaltenbreite" ;
+ Text [ ENGLISH ] = "Column width" ;
+ Text [ norwegian ] = "Bredde på kolonne " ;
+ Text [ italian ] = "Larghezza colonna" ;
+ Text [ portuguese_brazilian ] = "Largura da coluna" ;
+ Text [ portuguese ] = "Largura da coluna" ;
+ Text [ finnish ] = "Sarakeleveys" ;
+ Text [ danish ] = "Kolonnebredde" ;
+ Text [ french ] = "Largeur des colonnes" ;
+ Text [ swedish ] = "Kolumnbredd" ;
+ Text [ dutch ] = "Kolombreedte" ;
+ Text [ spanish ] = "Ancho de columna" ;
+ Text [ english_us ] = "Column width" ;
+ Text[ chinese_simplified ] = "À¸¿í";
+ Text[ russian ] = "Øèðèíà êîëîíîê";
+ Text[ polish ] = "Szer. kolumny";
+ Text[ japanese ] = "’i‚Ì•";
+ Text[ chinese_traditional ] = "Äæ¼e";
+ Text[ arabic ] = "ÚÑÖ ÇáÃÚãÏÉ";
+ Text[ dutch ] = "Kolombreedte";
+ Text[ chinese_simplified ] = "À¸¿í";
+ Text[ greek ] = "ÐëÜôïò óôÞëçò";
+ Text[ korean ] = "¿­ ³Êºñ";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Sütun geniþliði";
+ };
+ GroupBox GB_BSP
+ {
+ Pos = MAP_APPFONT ( 171 , 3 ) ;
+ Size = MAP_APPFONT ( 83 , 46 ) ;
+ Text = "Vorschau" ;
+ Text [ ENGLISH ] = "Example" ;
+ Text [ norwegian ] = "Eksempel" ;
+ Text [ italian ] = "Anteprima" ;
+ Text [ portuguese_brazilian ] = "Exemplo" ;
+ Text [ portuguese ] = "Previsualizar" ;
+ Text [ finnish ] = "Malli" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ french ] = "Aperçu" ;
+ Text [ swedish ] = "Förhandsvisning" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ spanish ] = "Previsualización" ;
+ Text [ english_us ] = "Preview" ;
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ polish ] = "Podgl¹d";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ÇáãÚÇíäÉ";
+ Text[ dutch ] = "Voorbeeld";
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Önizleme";
+ };
+ Window WN_BSP
+ {
+ Pos = MAP_APPFONT ( 176 , 12 ) ;
+ Size = MAP_APPFONT ( 72 , 31 ) ;
+ };
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ dutch ] = "Kolommen";
+ Text[ chinese_simplified ] = "À¸";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Sütun";
+};
+
+ModalDialog DLG_COLUMN
+{
+ HelpID = HID_FORMAT_COLUMN;
+ Hide = TRUE;
+ Moveable = TRUE;
+ Size = MAP_APPFONT ( 316 , 135 ) ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ OKButton PB_OK
+ {
+ DefButton = TRUE ;
+ Pos = MAP_APPFONT ( 260 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 260 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 260 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_APPLY_TO
+ {
+ Pos = MAP_APPFONT ( 260 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Anwenden auf:" ;
+ Text [ English ] = "~Apply to:" ;
+ Left = TRUE ;
+ Text[ english_us ] = "~Apply to:";
+ Text[ portuguese ] = "~Aplicar a:";
+ Text[ greek ] = "Åö~áñìïãÞ óå:";
+ Text[ dutch ] = "~Toepassen op:";
+ Text[ french ] = "~Appliquer à :";
+ Text[ spanish ] = "~Aplicar a:";
+ Text[ swedish ] = "~Använd på:";
+ Text[ russian ] = "Ïðèìåíèòü ê:";
+ Text[ italian ] = "~Applica a:";
+ Text[ danish ] = "Anvend på:";
+ Text[ polish ] = "Zastosuj w";
+ Text[ portuguese_brazilian ] = "~Apply to:";
+ Text[ japanese ] = "Ý’è‘ÎÛ:(~A)";
+ Text[ korean ] = "Àû¿ë:(~A)";
+ Text[ chinese_simplified ] = "ÔËÓÃÔÚ£º(~A)";
+ Text[ chinese_traditional ] = "®M¥Î¨ì¡G(~A)";
+ Text[ arabic ] = "ÊØÈíÞ Úáì:";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "~Uygulanacaðý yer:";
+ };
+ ListBox LB_APPLY_TO
+ {
+ Pos = MAP_APPFONT ( 260 , 75 ) ;
+ Size = MAP_APPFONT ( 50 , 66 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Selektion" ; LISTBOX_SELECTION; > ;
+ < "Aktuellen Bereich" ; LISTBOX_SECTION ; > ;
+ < "Selektierte Bereiche" ; LISTBOX_SECTIONS ; > ;
+ < "Rahmen" ; LISTBOX_FRAME ; > ;
+ < "Seitenvorlage: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ENGLISH]=
+ {
+ < "Selection" ; LISTBOX_SELECTION; > ;
+ < "Current section" ; LISTBOX_SECTION ; > ;
+ < "Selected section" ; LISTBOX_SECTIONS ; > ;
+ < "Text Frame" ; LISTBOX_FRAME ; > ;
+ < "Page style: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < "Selektion" ; LISTBOX_SELECTION; > ;
+ < " " ; LISTBOX_SECTION ; > ;
+ < "Selektierte Bereiche" ; LISTBOX_SECTIONS ; > ;
+ < "Rahmen" ; LISTBOX_FRAME ; > ;
+ < "Seitenvorlage:" ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Selection" ; LISTBOX_SELECTION; > ;
+ < "Current Section" ; LISTBOX_SECTION ; > ;
+ < "Selected section" ; LISTBOX_SECTIONS ; > ;
+ < "Frame" ; LISTBOX_FRAME ; > ;
+ < "Page Style: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Selecção" ; LISTBOX_SELECTION; > ;
+ < "Secção activa" ; LISTBOX_SECTION ; > ;
+ < "Secções seleccionadas" ; LISTBOX_SECTIONS ; > ;
+ < "Moldura" ; LISTBOX_FRAME ; > ;
+ < "Estilo de página: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÅðéëïãÞ" ; LISTBOX_SELECTION; > ;
+ < "ÔñÝ÷ùí ðåñéï÷Þ" ; LISTBOX_SECTION ; > ;
+ < "ÅðéëåãìÝíåò ðåñéï÷Ýò" ; LISTBOX_SECTIONS ; > ;
+ < "Ðåñßãñáììá" ; LISTBOX_FRAME ; > ;
+ < "Ðñüôõðï óåëßäáò: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Selectie" ; LISTBOX_SELECTION; > ;
+ < "Actueel bereik" ; LISTBOX_SECTION ; > ;
+ < "Geselecteerd bereik" ; LISTBOX_SECTIONS ; > ;
+ < "Kader" ; LISTBOX_FRAME ; > ;
+ < "Pagina-opmaakprofiel: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "Sélection" ; LISTBOX_SELECTION; > ;
+ < "Section active" ; LISTBOX_SECTION ; > ;
+ < "Sections sélectionnées" ; LISTBOX_SECTIONS ; > ;
+ < "Cadre" ; LISTBOX_FRAME ; > ;
+ < "Style de page : " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Selección" ; LISTBOX_SELECTION; > ;
+ < "Área actual" ; LISTBOX_SECTION ; > ;
+ < "Áreas seleccionadas" ; LISTBOX_SECTIONS ; > ;
+ < "Marco" ; LISTBOX_FRAME ; > ;
+ < "Estilo de página: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Markering" ; LISTBOX_SELECTION; > ;
+ < "Aktuellt område" ; LISTBOX_SECTION ; > ;
+ < "Markerade områden" ; LISTBOX_SECTIONS ; > ;
+ < "Ram" ; LISTBOX_FRAME ; > ;
+ < "Sidformatmall: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Âûäåëåíèþ" ; LISTBOX_SELECTION; > ;
+ < "Òåêóùåé îáëàñòè" ; LISTBOX_SECTION ; > ;
+ < "Âûäåëåííîé îáëàñòè" ; LISTBOX_SECTIONS ; > ;
+ < "Ðàìêå" ; LISTBOX_FRAME ; > ;
+ < "Ñòèëþ ñòðàíèöû: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Selezione" ; LISTBOX_SELECTION; > ;
+ < "Sezione corrente" ; LISTBOX_SECTION ; > ;
+ < "Aree contrassegnate" ; LISTBOX_SECTIONS ; > ;
+ < "Cornice" ; LISTBOX_FRAME ; > ;
+ < "Modello di pagina: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Markering" ; LISTBOX_SELECTION; > ;
+ < "Aktuelt område" ; LISTBOX_SECTION ; > ;
+ < "Markeret område" ; LISTBOX_SECTIONS ; > ;
+ < "Ramme" ; LISTBOX_FRAME ; > ;
+ < "Sidetypografi: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Selekcja" ; LISTBOX_SELECTION; > ;
+ < "Aktualny obszar" ; LISTBOX_SECTION ; > ;
+ < "Zaznaczone obszary" ; LISTBOX_SECTIONS ; > ;
+ < "Ramka" ; LISTBOX_FRAME ; > ;
+ < "Styl strony: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Selektion" ; LISTBOX_SELECTION; > ;
+ < "Aktuellen Bereich" ; LISTBOX_SECTION ; > ;
+ < "Selektierte Bereiche" ; LISTBOX_SECTIONS ; > ;
+ < "Rahmen" ; LISTBOX_FRAME ; > ;
+ < "Seitenvorlage: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‘I‘ð”͈Í" ; LISTBOX_SELECTION; > ;
+ < "Œ»Ý‚͈̔Í" ; LISTBOX_SECTION ; > ;
+ < "‘I‘ð”͈Í" ; LISTBOX_SECTIONS ; > ;
+ < "ŠO˜g" ; LISTBOX_FRAME ; > ;
+ < "Íß°¼Þ½À²Ù: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¼±ÅÃ" ; LISTBOX_SELECTION; > ;
+ < "ÇöÀç ¼±ÅÃ" ; LISTBOX_SECTION ; > ;
+ < "¼±ÅÃµÈ ±¸¿ª" ; LISTBOX_SECTIONS ; > ;
+ < "ÇÁ·¹ÀÓ" ; LISTBOX_FRAME ; > ;
+ < "ÆäÀÌÁö ¼³Á¤: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "Ñ¡ÖÐ" ; LISTBOX_SELECTION; > ;
+ < "µ±Ç°µÄÇøÓò" ; LISTBOX_SECTION ; > ;
+ < "Ñ¡ÖеÄÇøÓò" ; LISTBOX_SECTIONS ; > ;
+ < "¿ò" ; LISTBOX_FRAME ; > ;
+ < "Ò³ÃæÑùʽ£º " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¿ï¾Ü" ; LISTBOX_SELECTION; > ;
+ < "·í«eªº°Ï°ì" ; LISTBOX_SECTION ; > ;
+ < "¿ï¾Üªº°Ï°ì" ; LISTBOX_SECTIONS ; > ;
+ < "®Ø" ; LISTBOX_FRAME ; > ;
+ < "­¶­±¼Ë¦¡¡G " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÇáÊÍÏíÏ" ; LISTBOX_SELECTION; > ;
+ < "ÇáäØÇÞ ÇáÍÇáí" ; LISTBOX_SECTION ; > ;
+ < "ÇáäØÇÞÇÊ ÇáãÍÏÏÉ" ; LISTBOX_SECTIONS ; > ;
+ < "ÇáÅØÇÑ" ; LISTBOX_FRAME ; > ;
+ < "ÞÇáÈ ÇáÕÝÍÉ: " ; LISTBOX_PAGE ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Seçim" ; LISTBOX_SELECTION; > ;
+ < "Yürürlükteki bölüm" ; LISTBOX_SECTION ; > ;
+ < "Seçilen bölüm" ; LISTBOX_SECTIONS ; > ;
+ < "Çerçeve" ; LISTBOX_FRAME ; > ;
+ < "Sayfa biçimi: " ; LISTBOX_PAGE ; > ;
+ };
+ };
+ Text[ english_us ] = "Columns";
+ Text[ portuguese ] = "Colunas";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ dutch ] = "Kolommen";
+ Text[ french ] = "Colonnes";
+ Text[ spanish ] = "Columnas";
+ Text[ swedish ] = "Kolumner";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ italian ] = "Colonne";
+ Text[ danish ] = "Kolonner";
+ Text[ polish ] = "Kolumny";
+ Text[ portuguese_brazilian ] = "Columns";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ korean ] = "¿­";
+ Text[ chinese_simplified ] = "À¸";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Sütun";
+};
diff --git a/sw/source/ui/frmdlg/cption.cxx b/sw/source/ui/frmdlg/cption.cxx
new file mode 100644
index 000000000000..fbfcc4af463c
--- /dev/null
+++ b/sw/source/ui/frmdlg/cption.cxx
@@ -0,0 +1,715 @@
+/*************************************************************************
+ *
+ * $RCSfile: cption.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _CPTION_HXX
+#include <cption.hxx>
+#endif
+#ifndef _CAPTION_HXX
+#include <caption.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _FRMFMT_HXX //autogen
+#include <frmfmt.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_FRAME_XSTORABLE_HPP_
+#include <com/sun/star/frame/XStorable.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
+#include <com/sun/star/frame/XModel.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_GRAPHICCROP_HPP_
+#include <com/sun/star/text/GraphicCrop.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTGRAPHICOBJECTSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTTABLECURSOR_HPP_
+#include <com/sun/star/text/XTextTableCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTTABLESSUPPLIER_HPP_
+#include <com/sun/star/text/XTextTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_TABLECOLUMNSEPARATOR_HPP_
+#include <com/sun/star/text/TableColumnSeparator.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTTABLE_HPP_
+#include <com/sun/star/text/XTextTable.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTEMBEDDEDOBJECTSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTEMBEDDEDOBJECT_HPP_
+#include <com/sun/star/text/XTextEmbeddedObject.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTFRAMESSUPPLIER_HPP_
+#include <com/sun/star/text/XTextFramesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTFRAME_HPP_
+#include <com/sun/star/text/XTextFrame.hpp>
+#endif
+
+#ifndef _FRMUI_HRC
+#include <frmui.hrc>
+#endif
+#ifndef _CPTION_HRC
+#include <cption.hrc>
+#endif
+
+using namespace ::com::sun::star;
+
+extern String* pOldGrfCat;
+extern String* pOldTabCat;
+extern String* pOldFrmCat;
+extern String* pOldDrwCat;
+
+class SwSequenceOptionDialog : public SvxStandardDialog
+{
+ FixedText aFtLevel;
+ ListBox aLbLevel;
+ FixedText aFtDelim;
+ Edit aEdDelim;
+ OKButton aOKButton;
+ CancelButton aCancelButton;
+ HelpButton aHelpButton;
+ GroupBox aGbHeader;
+ SwView& rView;
+ String aFldTypeName;
+
+public:
+ SwSequenceOptionDialog( Window *pParent, SwView &rV,
+ const String& rSeqFldType );
+ virtual ~SwSequenceOptionDialog();
+ virtual void Apply();
+};
+
+
+SwCaptionDialog::SwCaptionDialog( Window *pParent, SwView &rV ) :
+
+ SvxStandardDialog( pParent, SW_RES(DLG_CAPTION) ),
+
+ aOKButton (this, SW_RES(BTN_OK )),
+ aCancelButton (this, SW_RES(BTN_CANCEL )),
+ aHelpButton (this, SW_RES(BTN_HELP )),
+ aOptionButton (this, SW_RES(BTN_OPTION )),
+ aSampleText (this, SW_RES(TXT_SAMPLE )),
+ aCategoryText (this, SW_RES(TXT_CATEGORY)),
+ aCategoryBox (this, SW_RES(BOX_CATEGORY)),
+ aFormatText (this, SW_RES(TXT_FORMAT )),
+ aFormatBox (this, SW_RES(BOX_FORMAT )),
+ aTextText (this, SW_RES(TXT_TEXT )),
+ aTextEdit (this, SW_RES(EDT_TEXT )),
+ aPosText (this, SW_RES(TXT_POS )),
+ aPosBox (this, SW_RES(BOX_POS )),
+ aCopyAttributesCB(this, SW_RES(CB_COPY_ATTR )),
+ aObjectNameFT(this, SW_RES(FT_OBJECT_NAME )),
+ aObjectNameED(this, SW_RES(ED_OBJECT_NAME )),
+ aSettingsGroup(this, SW_RES(GRP_SETTINGS)),
+ rView( rV ),
+ pMgr( new SwFldMgr() )
+
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+ uno::Reference< frame::XModel > xModel = rView.GetDocShell()->GetBaseModel();
+
+ eType = (SwWrtShell::SelectionType)rSh.GetSelectionType();
+ if ( eType & SwWrtShell::SEL_OLE )
+ {
+ eType = SwWrtShell::SEL_GRF;
+ uno::Reference< text::XTextEmbeddedObjectsSupplier > xObjs(xModel, uno::UNO_QUERY);
+ xNameAccess = xObjs->getEmbeddedObjects();
+ }
+
+ Link aLk = LINK( this, SwCaptionDialog, ModifyHdl );
+ aCategoryBox.SetModifyHdl( aLk );
+ aTextEdit .SetModifyHdl( aLk );
+
+ aLk = LINK(this, SwCaptionDialog, SelectHdl);
+ aCategoryBox.SetSelectHdl( aLk );
+ aFormatBox .SetSelectHdl( aLk );
+// aPosBox .SetSelectHdl( aLk );
+
+ aOptionButton.SetClickHdl( LINK( this, SwCaptionDialog, OptionHdl ) );
+
+ sal_uInt16 i, nCount = pMgr->GetFldTypeCount();
+ for (i = 0; i < nCount; i++)
+ {
+ SwFieldType *pType = pMgr->GetFldType( USHRT_MAX, i );
+ if( pType->Which() == RES_SETEXPFLD &&
+ ((SwSetExpFieldType *) pType)->GetType() & GSE_SEQ )
+ aCategoryBox.InsertEntry(SwBoxEntry(pType->GetName(), i));
+ }
+
+ String* pString;
+ sal_uInt16 nPoolId = 0;
+ if (eType & SwWrtShell::SEL_GRF)
+ {
+ nPoolId = RES_POOLCOLL_LABEL_ABB;
+ pString = pOldGrfCat;
+ aCopyAttributesCB.Show();
+ aCopyAttributesCB.Check(sal_True);
+ sObjectName = rSh.GetFlyName();
+ //if not OLE
+ if(!xNameAccess.is())
+ {
+ uno::Reference< text::XTextGraphicObjectsSupplier > xGraphics(xModel, uno::UNO_QUERY);
+ xNameAccess = xGraphics->getGraphicObjects();
+ }
+
+ }
+ else if( eType & SwWrtShell::SEL_TBL )
+ {
+ nPoolId = RES_POOLCOLL_LABEL_TABLE;
+ pString = pOldTabCat;
+ uno::Reference< text::XTextTablesSupplier > xTables(xModel, uno::UNO_QUERY);
+ xNameAccess = xTables->getTextTables();
+ sObjectName = rSh.GetTableFmt()->GetName();
+ }
+ else if( eType & SwWrtShell::SEL_FRM )
+ {
+ nPoolId = RES_POOLCOLL_LABEL_FRAME;
+ pString = pOldFrmCat;
+ uno::Reference< text::XTextFramesSupplier > xFrms(xModel, uno::UNO_QUERY);
+ xNameAccess = xFrms->getTextFrames();
+ sObjectName = rSh.GetFlyName();
+ }
+ else if( eType == SwWrtShell::SEL_TXT )
+ {
+ nPoolId = RES_POOLCOLL_LABEL_FRAME;
+ pString = pOldFrmCat;
+ aObjectNameED.Show(sal_False);
+ aObjectNameFT.Show(sal_False);
+ }
+ else if( eType & SwWrtShell::SEL_DRW )
+ {
+ nPoolId = RES_POOLCOLL_LABEL_DRAWING;
+ pString = pOldDrwCat;
+ aObjectNameED.Show(sal_False);
+ aObjectNameFT.Show(sal_False);
+ }
+ if( nPoolId )
+ {
+ if( pString && pString->Len())
+ aCategoryBox.SetText( *pString );
+ else
+ {
+ String sTmp;
+ aCategoryBox.SetText( GetDocPoolNm( nPoolId, sTmp ));
+ }
+ }
+
+ //
+ if(aObjectNameED.IsVisible())
+ {
+ if(!aCopyAttributesCB.IsVisible())
+ {
+ long nHeightDiff = aObjectNameFT.GetPosPixel().Y() - aObjectNameED.GetPosPixel().Y();
+ Point aPos(aCopyAttributesCB.GetPosPixel());
+ aObjectNameFT.SetPosPixel(aPos);
+ aPos.X() = aObjectNameED.GetPosPixel().X();
+ aPos.Y() -= nHeightDiff;
+ aObjectNameED.SetPosPixel(aPos);
+ }
+ if(xNameAccess.is())
+ {
+ uno::Any aObj = xNameAccess->getByName(sObjectName);
+ uno::Reference< uno::XInterface > xTmp = *(uno::Reference< uno::XInterface > *)aObj.getValue();
+ xNamed = uno::Reference< container::XNamed >(xTmp, uno::UNO_QUERY);
+ }
+ aObjectNameED.SetText(sObjectName);
+ aObjectNameED.SetForbiddenChars(' ');
+ aObjectNameED.SetModifyHdl(LINK(this, SwCaptionDialog, ModifyHdl));
+ }
+
+ // aFormatBox
+ sal_uInt16 nSelFmt = SVX_NUM_ARABIC;
+ nCount = pMgr->GetFldTypeCount();
+ SwFieldType* pFldType;
+ for ( i = nCount; i; )
+ if( ( pFldType = pMgr->GetFldType(USHRT_MAX, --i))->GetName() ==
+ aCategoryBox.GetText() )
+ {
+ nSelFmt = (sal_uInt16)((SwSetExpFieldType*)pFldType)->GetSeqFormat();
+ break;
+ }
+
+
+ nCount = pMgr->GetFormatCount(TYP_SEQFLD, sal_False);
+ for ( i = 0; i < nCount; ++i )
+ {
+ aFormatBox.InsertEntry( pMgr->GetFormatStr(TYP_SEQFLD, i) );
+ sal_uInt16 nFmtId = pMgr->GetFormatId(TYP_SEQFLD, i);
+ aFormatBox.SetEntryData( i, (void*)nFmtId );
+ if( nFmtId == nSelFmt )
+ aFormatBox.SelectEntryPos( i );
+ }
+
+ // aPosBox
+ switch (eType)
+ {
+ case SwWrtShell::SEL_GRF:
+ case SwWrtShell::SEL_TBL:
+ case SwWrtShell::SEL_TBL | SwWrtShell::SEL_NUM:
+ case SwWrtShell::SEL_TBL | SwWrtShell::SEL_TXT:
+ case SwWrtShell::SEL_TBL | SwWrtShell::SEL_NUM | SwWrtShell::SEL_TXT:
+ case SwWrtShell::SEL_DRW:
+ case SwWrtShell::SEL_DRW | SwWrtShell::SEL_BEZ:
+ aPosBox.InsertEntry(SW_RESSTR(STR_ABOVE));
+ aPosBox.InsertEntry(SW_RESSTR(STR_CP_BELOW));
+ break;
+ case SwWrtShell::SEL_FRM:
+ case SwWrtShell::SEL_TXT:
+ aPosBox.InsertEntry(SW_RESSTR(STR_BEGINNING));
+ aPosBox.InsertEntry(SW_RESSTR(STR_END ));
+ break;
+ }
+ aPosBox.SelectEntryPos(1);
+ if (eType & (SwWrtShell::SEL_GRF|SwWrtShell::SEL_DRW))
+ aPosBox.Enable( sal_False );
+
+ aCategoryBox.GetModifyHdl().Call(&aCategoryBox);
+
+ FreeResource();
+ aTextEdit.GrabFocus();
+}
+
+
+
+void SwCaptionDialog::Apply()
+{
+ String sNewName = aObjectNameED.GetText();
+ if(aObjectNameED.IsVisible() && sNewName != sObjectName)
+ {
+ xNamed->setName(sNewName);
+ }
+
+ InsCaptionOpt aOpt;
+
+ aOpt.UseCaption() = sal_True;
+ String aName( aCategoryBox.GetText() );
+ aName.EraseLeadingChars (' ');
+ aName.EraseTrailingChars(' ');
+ aOpt.SetCategory(aName);
+ aOpt.SetNumType((sal_uInt16)(sal_uInt32)aFormatBox.GetEntryData(aFormatBox.GetSelectEntryPos()));
+ aOpt.SetCaption(aTextEdit.GetText());
+ aOpt.SetPos(aPosBox.GetSelectEntryPos());
+ aOpt.IgnoreSeqOpts() = sal_True;
+ aOpt.CopyAttributes() = aCopyAttributesCB.IsVisible() && aCopyAttributesCB.IsChecked();
+ rView.InsertCaption(&aOpt);
+}
+
+
+
+IMPL_LINK_INLINE_START( SwCaptionDialog, OptionHdl, Button*, pButton )
+{
+ SwSequenceOptionDialog( pButton, rView, aCategoryBox.GetText() ).Execute();
+ DrawSample();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwCaptionDialog, OptionHdl, Button*, EMPTYARG )
+
+IMPL_LINK_INLINE_START( SwCaptionDialog, SelectHdl, ListBox *, pBox )
+{
+ DrawSample();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwCaptionDialog, SelectHdl, ListBox *, EMPTYARG )
+
+
+
+IMPL_LINK( SwCaptionDialog, ModifyHdl, Edit *, pEdit )
+{
+ String sNewName = aObjectNameED.GetText();
+ sal_Bool bCorrectName = !aObjectNameED.IsVisible() ||
+ (sNewName.Len() &&
+ (sNewName == sObjectName ||
+ !xNameAccess.is() || !xNameAccess->hasByName(sNewName)));
+ SwWrtShell &rSh = rView.GetWrtShell();
+ String sFldTypeName = aCategoryBox.GetText();
+ SwFieldType* pType = sFldTypeName.Len() ? rSh.GetFldType(RES_SETEXPFLD, sFldTypeName) : 0;
+
+ aOKButton.Enable( bCorrectName &&
+ (!pType || ((SwSetExpFieldType*)pType)->GetType() == GSE_SEQ)
+ && sFldTypeName.Len() != 0 );
+ aOptionButton.Enable( aOKButton.IsEnabled() );
+
+ if(pEdit != &aObjectNameED)
+ DrawSample();
+ return 0;
+}
+
+
+
+void SwCaptionDialog::DrawSample()
+{
+ String aStr;
+
+ // Nummer
+ sal_uInt16 nNumFmt = (sal_uInt16)(sal_uInt32)aFormatBox.GetEntryData(
+ aFormatBox.GetSelectEntryPos() );
+ if( SVX_NUM_NUMBER_NONE != nNumFmt )
+ {
+ // Kategorie
+ aStr += aCategoryBox.GetText();
+ aStr += ' ';
+
+ SwWrtShell &rSh = rView.GetWrtShell();
+ String sFldTypeName( aCategoryBox.GetText() );
+ SwSetExpFieldType* pFldType = (SwSetExpFieldType*)rSh.GetFldType(
+ RES_SETEXPFLD, sFldTypeName );
+ if( pFldType && pFldType->GetOutlineLvl() < MAXLEVEL )
+ {
+ sal_Int8 nLvl = pFldType->GetOutlineLvl();
+ SwNodeNum aNum( nLvl );
+ for( sal_Int8 i = 0; i <= nLvl; ++i )
+ *(aNum.GetLevelVal() + i) = 1;
+
+ String sNumber( rSh.GetOutlineNumRule()->MakeNumString(
+ aNum, sal_False ));
+ if( sNumber.Len() )
+ (aStr += sNumber) += pFldType->GetDelimiter();
+ }
+
+ switch( nNumFmt )
+ {
+ case SVX_NUM_CHARS_UPPER_LETTER: aStr += 'A'; break;
+ case SVX_NUM_CHARS_UPPER_LETTER_N: aStr += 'A'; break;
+ case SVX_NUM_CHARS_LOWER_LETTER: aStr += 'a'; break;
+ case SVX_NUM_CHARS_LOWER_LETTER_N: aStr += 'a'; break;
+ case SVX_NUM_ROMAN_UPPER: aStr += 'I'; break;
+ case SVX_NUM_ROMAN_LOWER: aStr += 'i'; break;
+ //case ARABIC:
+ default: aStr += '1'; break;
+ }
+ }
+
+ aStr += aTextEdit.GetText();
+ aSampleText.SetText(aStr);
+}
+
+
+
+SwCaptionDialog::~SwCaptionDialog()
+{
+ delete pMgr;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: form ohne Spaces
+------------------------------------------------------------------------*/
+
+
+
+void NoSpaceCombo::KeyInput(const KeyEvent& rEvt)
+{
+ if( rEvt.GetKeyCode().GetCode() != KEY_SPACE )
+ SwComboBox::KeyInput(rEvt);
+}
+
+
+
+/* */
+
+SwSequenceOptionDialog::SwSequenceOptionDialog( Window *pParent, SwView &rV,
+ const String& rSeqFldType )
+ : SvxStandardDialog( pParent, SW_RES(DLG_SEQUENCE_OPTION) ),
+ aOKButton (this, SW_RES(BTN_OK )),
+ aCancelButton (this, SW_RES(BTN_CANCEL )),
+ aHelpButton (this, SW_RES(BTN_HELP )),
+ aFtLevel (this, SW_RES(FT_LEVEL )),
+ aLbLevel (this, SW_RES(LB_LEVEL )),
+ aFtDelim (this, SW_RES(FT_SEPARATOR )),
+ aEdDelim (this, SW_RES(ED_SEPARATOR )),
+ aGbHeader (this, SW_RES(GB_HEADER )),
+ aFldTypeName( rSeqFldType ),
+ rView( rV )
+{
+ FreeResource();
+ SwWrtShell &rSh = rView.GetWrtShell();
+
+ for( sal_uInt16 n = 0; n < MAXLEVEL; ++n )
+ aLbLevel.InsertEntry( String::CreateFromInt32(n+1) );
+
+ SwSetExpFieldType* pFldType = (SwSetExpFieldType*)rSh.GetFldType(
+ RES_SETEXPFLD, aFldTypeName );
+
+ sal_Unicode cDelim = '.', nLvl = MAXLEVEL;
+ if( pFldType )
+ {
+ cDelim = pFldType->GetDelimiter();
+ nLvl = pFldType->GetOutlineLvl();
+ }
+
+ aLbLevel.SelectEntryPos( nLvl < MAXLEVEL ? nLvl + 1 : 0 );
+ aEdDelim.SetText( cDelim );
+}
+
+SwSequenceOptionDialog::~SwSequenceOptionDialog()
+{
+}
+
+void SwSequenceOptionDialog::Apply()
+{
+ SwWrtShell &rSh = rView.GetWrtShell();
+ SwSetExpFieldType* pFldType = (SwSetExpFieldType*)rSh.GetFldType(
+ RES_SETEXPFLD, aFldTypeName );
+
+ sal_Int8 nLvl = (sal_Int8)( aLbLevel.GetSelectEntryPos() - 1);
+ sal_Unicode cDelim = aEdDelim.GetText().GetChar(0);
+
+ sal_Bool bUpdate = sal_True;
+ if( pFldType )
+ {
+ pFldType->SetDelimiter( cDelim );
+ pFldType->SetOutlineLvl( nLvl );
+ }
+ else if( nLvl < MAXLEVEL )
+ {
+ // dann muessen wir das mal einfuegen
+ SwSetExpFieldType aFldType( rSh.GetDoc(), aFldTypeName, GSE_SEQ );
+ aFldType.SetDelimiter( cDelim );
+ aFldType.SetOutlineLvl( nLvl );
+ rSh.InsertFldType( aFldType );
+ }
+ else
+ bUpdate = sal_False;
+
+ if( bUpdate )
+ rSh.UpdateExpFlds();
+}
+
+
+
+/*-----------------25.02.94 21:56-------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.74 2000/09/18 16:05:32 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.73 2000/09/12 08:39:37 os
+ #78678# CreateFromInt32
+
+ Revision 1.72 2000/07/27 21:16:09 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.71 2000/04/26 14:49:17 os
+ GetName() returns const String&
+
+ Revision 1.70 2000/04/18 15:14:56 os
+ UNICODE
+
+ Revision 1.69 2000/03/23 06:49:59 os
+ UNOIII
+
+ Revision 1.68 2000/02/15 14:18:19 os
+ #72904# check container::XNameAccess
+
+ Revision 1.67 2000/02/11 14:47:24 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.66 1999/11/19 16:40:22 os
+ modules renamed
+
+ Revision 1.65 1999/08/19 11:52:22 OS
+ OLE objects: no GPF
+
+
+ Rev 1.64 19 Aug 1999 13:52:22 OS
+ OLE objects: no GPF
+
+ Rev 1.63 21 Jul 1999 14:15:14 OS
+ #67425# Appearance improved
+
+ Rev 1.62 10 Jun 1999 13:02:36 OS
+ rename objects
+
+ Rev 1.61 09 Jun 1999 10:43:04 OS
+ #66732# Insert caption: copy border and shadow optionally
+
+ Rev 1.60 10 Dec 1998 09:45:52 MIB
+ #60060#: Beschriftungen fuer Zeichen-Objekte
+
+ Rev 1.59 17 Nov 1998 10:52:52 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.58 06 Nov 1998 17:04:06 OM
+ #58158# Automatische Beschriftung
+
+ Rev 1.57 11 Aug 1998 14:22:08 HR
+ void* kann nicht direkt nach sal_uInt16 gecastet werden
+
+ Rev 1.56 10 Aug 1998 16:42:42 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.55 19 Jun 1998 11:44:04 JP
+ neu: Nummernkreis Optionen - fuer die Kapitelweisenummerierung
+
+ Rev 1.54 20 Apr 1998 13:45:00 OS
+ Variablen duerfen nicht ueber Nummernkreise eingefuegt werden
+
+ Rev 1.53 27 Feb 1998 16:41:44 OM
+ Unterhalb
+
+ Rev 1.52 02 Feb 1998 10:59:28 OM
+ #46835# Auch bei Cursor im Rahmen (SEL_TXT) richtigen Selektionsmodus (SEL_FRM) auswerten
+
+ Rev 1.51 08 Jan 1998 09:16:12 OS
+ initialen Focus umgesetzt #45673#
+
+ Rev 1.50 24 Nov 1997 17:40:10 MA
+ include
+
+ Rev 1.49 03 Nov 1997 13:19:46 MA
+ precomp entfernt
+
+ Rev 1.48 02 Oct 1997 15:22:10 OM
+ Feldumstellung
+
+ Rev 1.47 05 May 1997 17:09:08 TRI
+ ICC brauchte Instanz
+
+ Rev 1.46 29 Apr 1997 16:17:56 OM
+ Unsichtbare Benutzerfelder
+
+ Rev 1.45 04 Apr 1997 10:32:48 OM
+ Datenbanken nach Gebrauch wieder schliessen
+
+ Rev 1.44 18 Mar 1997 17:38:42 OM
+ Segmentiert
+
+ Rev 1.43 18 Mar 1997 17:35:54 OM
+ keine Spaces in Kategorie
+
+ Rev 1.42 14 Mar 1997 15:58:14 OS
+ neue Beschriftungsvorlage von Beschriftung abgeleitet
+
+ Rev 1.41 09 Jan 1997 08:41:24 OS
+ Beschriftungsdialog mit HelpID und HelpButton
+
+ Rev 1.40 11 Nov 1996 10:44:14 MA
+ ResMgr
+
+ Rev 1.39 02 Oct 1996 17:36:14 MA
+ Umstellung Enable/Disable
+
+ Rev 1.38 28 Aug 1996 11:52:50 OS
+ includes
+
+ Rev 1.37 09 Jul 1996 17:52:20 OM
+ Alternatives Formatmenue fuer Expressionfields
+
+ Rev 1.36 06 Feb 1996 15:19:22 JP
+ Link Umstellung 305
+
+ Rev 1.35 28 Nov 1995 11:20:24 JP
+ Umstellungsbugs entfernt, optimiert
+
+ Rev 1.34 27 Nov 1995 21:16:00 JP
+ static Strings gegen Pointer ausgetauscht, werden im InitUi angelegt/zerstoert
+
+ Rev 1.33 24 Nov 1995 16:58:08 OM
+ PCH->PRECOMPILED
+
+ Rev 1.32 13 Nov 1995 13:40:26 MA
+ chg: Link-Cast entfernt
+
+ Rev 1.31 08 Nov 1995 13:46:22 OM
+ Change->Set
+
+ Rev 1.30 06 Oct 1995 15:34:52 MA
+ fix: Selectiontype ist verodert
+
+ Rev 1.29 30 Aug 1995 14:13:50 MA
+ fix: sexport'iert
+
+ Rev 1.28 21 Aug 1995 09:27:08 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+--------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/frmdlg/cption.hrc b/sw/source/ui/frmdlg/cption.hrc
new file mode 100644
index 000000000000..eb4b272dcfb1
--- /dev/null
+++ b/sw/source/ui/frmdlg/cption.hrc
@@ -0,0 +1,95 @@
+/*************************************************************************
+ *
+ * $RCSfile: cption.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _CPTION_HRC
+#define _CPTION_HRC
+
+#define BTN_OK 1
+#define BTN_CANCEL 2
+#define TXT_SAMPLE 3
+#define TXT_CATEGORY 4
+#define BOX_CATEGORY 5
+#define TXT_FORMAT 6
+#define BOX_FORMAT 7
+#define TXT_TEXT 8
+#define EDT_TEXT 9
+#define TXT_POS 10
+#define BOX_POS 11
+#define GRP_SETTINGS 12
+#define BTN_HELP 13
+#define BTN_OPTION 14
+#define GB_HEADER 15
+#define FT_LEVEL 16
+#define LB_LEVEL 17
+#define FT_SEPARATOR 18
+#define ED_SEPARATOR 19
+#define CB_COPY_ATTR 20
+#define FT_OBJECT_NAME 21
+#define ED_OBJECT_NAME 22
+
+#define STR_BEGINNING 1
+#define STR_END 2
+#define STR_ABOVE 3
+#define STR_CP_BELOW 4
+
+#endif
+
+// ********************************************************************** EOF
diff --git a/sw/source/ui/frmdlg/cption.src b/sw/source/ui/frmdlg/cption.src
new file mode 100644
index 000000000000..1ca23375af5b
--- /dev/null
+++ b/sw/source/ui/frmdlg/cption.src
@@ -0,0 +1,722 @@
+/*************************************************************************
+ *
+ * $RCSfile: cption.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ // #include *****************************************************************
+#include "helpid.h"
+#include "frmui.hrc"
+#include "cption.hrc"
+#include "cmdid.h"
+ // #pragma ******************************************************************
+
+ // ModalDialog **************************************************************
+ModalDialog DLG_CAPTION
+{
+ HelpID = HID_DLG_CAPTION ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 250 , 127 ) ;
+ Text = "Beschriftung" ;
+ Text [ English ] = "Caption" ;
+ Text [ norwegian ] = "Bildetekst" ;
+ Text [ italian ] = "Dicitura" ;
+ Text [ portuguese_brazilian ] = "Captura" ;
+ Text [ portuguese ] = "Legenda" ;
+ Text [ finnish ] = "Selite" ;
+ Text [ danish ] = "Billedtekst" ;
+ Text [ french ] = "Légende" ;
+ Text [ swedish ] = "Bildtext" ;
+ Text [ dutch ] = "Bijschrift" ;
+ Text [ spanish ] = "Etiqueta" ;
+ Text [ english_us ] = "Caption" ;
+ Moveable = TRUE ;
+ OKButton BTN_OK
+ {
+ DefButton = TRUE ;
+ Pos = MAP_APPFONT ( 194 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ CancelButton BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 194 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BTN_HELP
+ {
+ Pos = MAP_APPFONT ( 194 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton BTN_OPTION
+ {
+ Pos = MAP_APPFONT ( 194 , 63 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "~Optionen" ;
+ Text [ English ] = "~Options" ;
+ Text [ norwegian ] = "~Options" ;
+ Text [ italian ] = "~Opzioni" ;
+ Text [ portuguese_brazilian ] = "~Opções" ;
+ Text [ portuguese ] = "~Opções" ;
+ Text [ finnish ] = "~Määritykset" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ french ] = "~Options" ;
+ Text [ swedish ] = "~Alternativ" ;
+ Text [ dutch ] = "~Opties" ;
+ Text [ spanish ] = "~Opciones" ;
+ Text [ english_us ] = "~Options" ;
+ Text[ chinese_simplified ] = "Ñ¡Ïî(~O)";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý(~O)";
+ Text[ chinese_traditional ] = "¿ï¶µ(~O)";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¿É¼Ç(~O)";
+ Text[ turkish ] = "~Seçenekler";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText TXT_SAMPLE
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 170 , 8 ) ;
+ Center = TRUE ;
+ };
+ FixedText TXT_CATEGORY
+ {
+ Pos = MAP_APPFONT ( 12 , 30 ) ;
+ Size = MAP_APPFONT ( 64 , 8 ) ;
+ Text = "~Kategorie" ;
+ Text [ English ] = "~Category" ;
+ Text [ norwegian ] = "~Category" ;
+ Text [ italian ] = "~Categoria" ;
+ Text [ portuguese_brazilian ] = "~Categoria" ;
+ Text [ portuguese ] = "~Categoria" ;
+ Text [ finnish ] = "~Ryhmä" ;
+ Text [ danish ] = "Kategori" ;
+ Text [ french ] = "~Catégorie" ;
+ Text [ swedish ] = "~Kategori" ;
+ Text [ dutch ] = "~Categorie" ;
+ Text [ spanish ] = "~Categoría" ;
+ Text [ english_us ] = "C~ategory" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "·ÖÀà(~A)";
+ Text[ russian ] = "Êàòåãîðèÿ";
+ Text[ polish ] = "Kategoria";
+ Text[ japanese ] = "¶ÃºÞØ°(~A)";
+ Text[ chinese_traditional ] = "¤ÀÃþ(~A)";
+ Text[ arabic ] = "ÇáÝÆÉ";
+ Text[ greek ] = "Êáôçãïñßá";
+ Text[ korean ] = "ºÐ·ù Ç׸ñ(~A)";
+ Text[ turkish ] = "~Kategori";
+ Text[ language_user1 ] = " ";
+ };
+ ComboBox BOX_CATEGORY
+ {
+ Pos = MAP_APPFONT ( 82 , 28 ) ;
+ Size = MAP_APPFONT ( 100 , 61 ) ;
+ DropDown = TRUE ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText TXT_FORMAT
+ {
+ Pos = MAP_APPFONT ( 12 , 45 ) ;
+ Size = MAP_APPFONT ( 64 , 8 ) ;
+ Text = "~Nummerierung" ;
+ Text [ English ] = "~Numbering" ;
+ Text [ norwegian ] = "~Numbering" ;
+ Text [ italian ] = "~Numerazione" ;
+ Text [ portuguese_brazilian ] = "~Numeração" ;
+ Text [ portuguese ] = "~Numeração" ;
+ Text [ finnish ] = "~Numerointi" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ french ] = "~Numérotation" ;
+ Text [ swedish ] = "~Numrering" ;
+ Text [ dutch ] = "~Nummering" ;
+ Text [ spanish ] = "Nu~meración" ;
+ Text [ english_us ] = "~Numbering" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "񅧏(~N)";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯(~N)";
+ Text[ chinese_traditional ] = "½s¸¹(~N)";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â(~N)";
+ Text[ turkish ] = "~Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox BOX_FORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 82 , 43 ) ;
+ Size = MAP_APPFONT ( 100 , 61 ) ;
+ DropDown = TRUE ;
+ TabStop = TRUE ;
+ };
+ FixedText TXT_TEXT
+ {
+ Pos = MAP_APPFONT ( 12 , 60 ) ;
+ Size = MAP_APPFONT ( 64 , 8 ) ;
+ Text = "~Beschriftungstext" ;
+ Text [ English ] = "~Caption text" ;
+ Text [ norwegian ] = "~Caption" ;
+ Text [ italian ] = "~Dicitura" ;
+ Text [ portuguese_brazilian ] = "~Legenda" ;
+ Text [ portuguese ] = "~Legenda" ;
+ Text [ finnish ] = "~Otsikko" ;
+ Text [ danish ] = "Billedtekst" ;
+ Text [ french ] = "~Texte de légende" ;
+ Text [ swedish ] = "~Bildtext" ;
+ Text [ dutch ] = "~Opschrift" ;
+ Text [ spanish ] = "~Texto de etiqueta" ;
+ Text [ english_us ] = "~Caption" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "±êÇ©ÎÄ(~C)";
+ Text[ russian ] = "Òåêñò íàçâàíèÿ";
+ Text[ polish ] = "Tekst etykiety";
+ Text[ japanese ] = "×ÍÞÙ(~C)";
+ Text[ chinese_traditional ] = "¼ÐÅÒ¤å(~C)";
+ Text[ arabic ] = "äÕ ÇáÊÓãíÉ ÇáÊæÖíÍíÉ";
+ Text[ greek ] = "Êåßìåíï åðéãñáöÞò";
+ Text[ korean ] = "ĸ¼Ç(~C)";
+ Text[ turkish ] = "R~esim yazýsý metni";
+ Text[ language_user1 ] = " ";
+ };
+ Edit EDT_TEXT
+ {
+ Pos = MAP_APPFONT ( 82 , 58 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText TXT_POS
+ {
+ Pos = MAP_APPFONT ( 12 , 75 ) ;
+ Size = MAP_APPFONT ( 64 , 8 ) ;
+ Left = TRUE ;
+ Text = "~Position" ;
+ Text [ English ] = "~Position" ;
+ Text [ norwegian ] = "~Posisjon" ;
+ Text [ italian ] = "~Posizione" ;
+ Text [ portuguese_brazilian ] = "~Posição" ;
+ Text [ portuguese ] = "~Posição" ;
+ Text [ finnish ] = "A~sema" ;
+ Text [ danish ] = "Placering" ;
+ Text [ french ] = "~Position" ;
+ Text [ swedish ] = "~Position" ;
+ Text [ dutch ] = "~Positie" ;
+ Text [ spanish ] = "~Posición" ;
+ Text [ english_us ] = "~Position" ;
+ Text[ chinese_simplified ] = "λÖÃ(~P)";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u(~P)";
+ Text[ chinese_traditional ] = "¦ì¸m(~P)";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡(~P)";
+ Text[ turkish ] = "K~onum";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox BOX_POS
+ {
+ Pos = MAP_APPFONT ( 82 , 73 ) ;
+ Size = MAP_APPFONT ( 100 , 61 ) ;
+ DropDown = TRUE ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ CheckBox CB_COPY_ATTR
+ {
+ Pos = MAP_APPFONT ( 12 , 90) ;
+ Size = MAP_APPFONT ( 145 , 12 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE;
+ Text = "~Umrandung und Schatten übernehmen" ;
+ Text [ English ] = "~Copy border and shadow" ;
+ Text[ english_us ] = "~Apply border and shadow";
+ Text[ portuguese ] = "~Aplicar contornos e sombreado";
+ Text[ russian ] = "Ïðèìåíèòü îáðàìëåíèå è òåíü";
+ Text[ greek ] = "ÅöáñìïãÞ ðåñéãñÜììáôïò êáé óêéÜò";
+ Text[ dutch ] = "~Omranding en schadow overnemen";
+ Text[ french ] = "~Appliquer bordure et ombre";
+ Text[ spanish ] = "Aceptar ~borde y sombra";
+ Text[ italian ] = "~Applica bordo e ombra";
+ Text[ danish ] = "Overtag ramme og skygge";
+ Text[ swedish ] = "Ö~verta inramning och skugga";
+ Text[ polish ] = "Przejmij obramowanie i cieñ";
+ Text[ portuguese_brazilian ] = "~Copy border and shadow";
+ Text[ japanese ] = "ŠO˜g‚Ɖe‚ðˆø—p(~A)";
+ Text[ korean ] = "¿Ü°û¼±°ú ±×¸²ÀÚ Àû¿ë(~A)";
+ Text[ chinese_simplified ] = "Ì×Óñ߿òºÍÒõÓ°(~A)";
+ Text[ chinese_traditional ] = "±Ä¥ÎÃä®Ø©M³±¼v(~A)";
+ Text[ arabic ] = "ÊØÈíÞ ÇáÍÏæÏ æÇáÙá";
+ Text[ turkish ] = "~Kenarlýk ve gölgeyi kullan";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_OBJECT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 105 ) ;
+ Size = MAP_APPFONT ( 64 , 8 ) ;
+ Text = "~Objektname" ;
+ Text [ English ] = "~Object name" ;
+ Text[ english_us ] = "~Object name";
+ Text[ portuguese ] = "~Nome do objecto";
+ Text[ russian ] = "~Èìÿ îáúåêòà";
+ Text[ greek ] = "¼íïìá áíôéêåéìÝíïõ";
+ Text[ dutch ] = "~Objectnaam";
+ Text[ french ] = "~Nom de l'objet";
+ Text[ spanish ] = "~Nombre del objeto";
+ Text[ italian ] = "~Nome oggetto";
+ Text[ danish ] = "Objektnavn";
+ Text[ swedish ] = "~Objektnamn";
+ Text[ polish ] = "Nazwa obiektu";
+ Text[ portuguese_brazilian ] = "~Object name";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä–¼(~O)";
+ Text[ korean ] = "°³Ã¼À̸§(~O)";
+ Text[ chinese_simplified ] = "¶ÔÏóÃû³Æ(~O)";
+ Text[ chinese_traditional ] = "ª«¥ó¦WºÙ(~O)";
+ Text[ arabic ] = "ÇÓã ÇáßÇÆä";
+ Text[ turkish ] = "N~esne adý";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_OBJECT_NAME
+ {
+ Pos = MAP_APPFONT ( 82 , 103 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ GroupBox GRP_SETTINGS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 182 , 118 ) ;
+ Text = "Einstellungen" ;
+ Text [ English ] = "Settings" ;
+ Text [ norwegian ] = "Settings" ;
+ Text [ italian ] = "Impostazioni" ;
+ Text [ portuguese_brazilian ] = "Parâmetros" ;
+ Text [ portuguese ] = "Predefinições" ;
+ Text [ finnish ] = "Asetukset" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ french ] = "Paramètres" ;
+ Text [ swedish ] = "Inställningar" ;
+ Text [ dutch ] = "Instellingen" ;
+ Text [ spanish ] = "Configuración" ;
+ Text [ english_us ] = "Settings" ;
+ Text[ chinese_simplified ] = "É趨";
+ Text[ russian ] = "Íàñòðîéêè";
+ Text[ polish ] = "Ustawienia";
+ Text[ japanese ] = "Ý’è";
+ Text[ chinese_traditional ] = "³]©w";
+ Text[ arabic ] = "ÇáÅÚÏÇÏÇÊ";
+ Text[ greek ] = "Ñõèìßóåéò";
+ Text[ korean ] = "¼³Á¤";
+ Text[ turkish ] = "Ayarlar";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_BEGINNING
+ {
+ Text = "Am Anfang" ;
+ Text [ English ] = "At the beginning" ;
+ Text [ norwegian ] = "At the beginning" ;
+ Text [ italian ] = "All'inizio" ;
+ Text [ portuguese_brazilian ] = "No início" ;
+ Text [ portuguese ] = "No início" ;
+ Text [ finnish ] = "Alussa" ;
+ Text [ danish ] = "Ved begyndelsen" ;
+ Text [ french ] = "Au début" ;
+ Text [ swedish ] = "I början" ;
+ Text [ dutch ] = "Aan het begin" ;
+ Text [ spanish ] = "Al principio" ;
+ Text [ english_us ] = "Above" ;
+ Text[ chinese_simplified ] = "ÔÚÊ׶Ë";
+ Text[ russian ] = " íà÷àëå";
+ Text[ polish ] = "Na pocz¹tku";
+ Text[ japanese ] = "ʼn‚É";
+ Text[ chinese_traditional ] = "¦b­ººÝ";
+ Text[ arabic ] = "Ýí ÇáÈÏÇíÉ";
+ Text[ greek ] = "Óôçí áñ÷Þ";
+ Text[ korean ] = "ˤ";
+ Text[ turkish ] = "Baþta";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_END
+ {
+ Text = "Am Ende" ;
+ Text [ English ] = "At the end" ;
+ Text [ norwegian ] = "At the end" ;
+ Text [ italian ] = "Alla fine" ;
+ Text [ portuguese_brazilian ] = "Ao final" ;
+ Text [ portuguese ] = "No fim" ;
+ Text [ finnish ] = "Lopussa" ;
+ Text [ danish ] = "Ved slutningen" ;
+ Text [ french ] = "À la fin" ;
+ Text [ swedish ] = "I slutet" ;
+ Text [ dutch ] = "Aan het einde" ;
+ Text [ spanish ] = "Al final" ;
+ Text [ english_us ] = "Below" ;
+ Text[ chinese_simplified ] = "ÔÚβ¶Ë";
+ Text[ russian ] = "Â êîíöå";
+ Text[ polish ] = "Na koñcu";
+ Text[ japanese ] = "ÅŒã‚É";
+ Text[ chinese_traditional ] = "¦b§ÀºÝ";
+ Text[ arabic ] = "Ýí ÇáäåÇíÉ";
+ Text[ greek ] = "Óôï ôÝëïò";
+ Text[ korean ] = "¾Æ·¡";
+ Text[ turkish ] = "Sonda";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_ABOVE
+ {
+ Text = "Oberhalb" ;
+ Text [ English ] = "Above" ;
+ Text [ norwegian ] = "Above" ;
+ Text [ italian ] = "Al di sopra" ;
+ Text [ portuguese_brazilian ] = "Acima" ;
+ Text [ portuguese ] = "Acima" ;
+ Text [ finnish ] = "Yläpuolella" ;
+ Text [ danish ] = "Over" ;
+ Text [ french ] = "Supra" ;
+ Text [ swedish ] = "Över" ;
+ Text [ dutch ] = "Boven" ;
+ Text [ spanish ] = "Encima" ;
+ Text [ english_us ] = "Above" ;
+ Text[ chinese_simplified ] = "Ö®ÉÏ";
+ Text[ russian ] = "Ñâåðõó";
+ Text[ polish ] = "Powy¿ej";
+ Text[ japanese ] = "ã‚É";
+ Text[ chinese_traditional ] = "¤§¤W";
+ Text[ arabic ] = "ÃÚáì";
+ Text[ greek ] = "ÐÜíù áðü";
+ Text[ korean ] = "ˤ";
+ Text[ turkish ] = "Üstte";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_CP_BELOW
+ {
+ Text = "Unterhalb" ;
+ Text [ English ] = "Below" ;
+ Text [ norwegian ] = "Below" ;
+ Text [ italian ] = "Al di sotto" ;
+ Text [ portuguese_brazilian ] = "Abaixo" ;
+ Text [ portuguese ] = "Abaixo" ;
+ Text [ finnish ] = "Alapuolella" ;
+ Text [ danish ] = "Under" ;
+ Text [ french ] = "Infra" ;
+ Text [ swedish ] = "Nedanför" ;
+ Text [ dutch ] = "Beneden" ;
+ Text [ spanish ] = "Debajo" ;
+ Text [ english_us ] = "Below" ;
+ Text[ chinese_simplified ] = "Ö®ÏÂ";
+ Text[ russian ] = "Ñíèçó";
+ Text[ polish ] = "Poni¿ej";
+ Text[ japanese ] = "‰º‚É";
+ Text[ chinese_traditional ] = "¤§¤U";
+ Text[ arabic ] = "ÃÓÝá";
+ Text[ greek ] = "ÊÜôù áðü";
+ Text[ korean ] = "¾Æ·¡";
+ Text[ turkish ] = "Altta";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ russian ] = "Íàçâàíèå";
+ Text[ polish ] = "Opis";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ chinese_traditional ] = "¼ÐÅÒ";
+ Text[ arabic ] = "ÊÓãíÉ ÊæÖíÍíÉ";
+ Text[ greek ] = "ÅðéãñáöÞ";
+ Text[ korean ] = "ĸ¼Ç";
+ Text[ turkish ] = "Resim yazýsý";
+ Text[ language_user1 ] = " ";
+};
+ModalDialog DLG_SEQUENCE_OPTION
+{
+ HelpID = HID_DLG_SEQUENCE_OPTION ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 165 , 64 ) ;
+ Text = "Nummernkreis Optionen" ;
+ TEXT [ English ] = "Sequence options" ;
+ Moveable = TRUE ;
+ OKButton BTN_OK
+ {
+ DefButton = TRUE ;
+ Pos = MAP_APPFONT ( 110 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ CancelButton BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 110 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BTN_HELP
+ {
+ Pos = MAP_APPFONT ( 110 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_HEADER
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 97 , 54 ) ;
+ TEXT = "Kapitelweise Nummerierung" ;
+ TEXT [ English ] = "Chapter numbering" ;
+ Text [ english_us ] = "Numbering by chapter" ;
+ Text [ portuguese_brazilian ] = "Kapitelweise Numerierung" ;
+ Text [ swedish ] = "Numrering kapitelvis" ;
+ Text [ danish ] = "Kapitelvis nummerering" ;
+ Text [ italian ] = "Numerazione a capitoli" ;
+ Text [ spanish ] = "Numeración de capítulos" ;
+ Text [ french ] = "Par chapitre" ;
+ Text [ dutch ] = "Hoofdstuksgewijs nummeren" ;
+ Text [ portuguese ] = "Numeração por capítulos" ;
+ Text[ chinese_simplified ] = "°´Õ±àºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ ïî ãëàâàì";
+ Text[ polish ] = "Numeracja wed³ug rozdzia³ów";
+ Text[ japanese ] = "Í‚²‚Ƃ̔Ԇ•t‚¯";
+ Text[ chinese_traditional ] = "«ö³¹½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÇáÝÕæá";
+ Text[ greek ] = "Áñßèìçóç êáôÜ êåöÜëáéá";
+ Text[ korean ] = "Àå ¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Bölüme göre numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_LEVEL
+ {
+ Pos = MAP_APPFONT ( 17 , 20 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ TEXT = "E~bene" ;
+ TEXT [ English ] = "~Level" ;
+ Text [ portuguese ] = "~Nível" ;
+ Text [ english_us ] = "~Level" ;
+ Text [ portuguese_brazilian ] = "E~bene" ;
+ Text [ swedish ] = "~Nivå" ;
+ Text [ danish ] = "Niveau" ;
+ Text [ italian ] = "Li~vello" ;
+ Text [ spanish ] = "~Nivel" ;
+ Text [ french ] = "Ni~veau" ;
+ Text [ dutch ] = "N~iveau" ;
+ Text[ chinese_simplified ] = "¼¶(~L)";
+ Text[ russian ] = "Óðîâåíü";
+ Text[ polish ] = "Poziom";
+ Text[ japanese ] = "ÚÍÞÙ(~L)";
+ Text[ chinese_traditional ] = "¯Å(~L)";
+ Text[ arabic ] = "ÇáãÓÊæì";
+ Text[ greek ] = "Åðßðåäï";
+ Text[ korean ] = "¼öÁØ(~L)";
+ Text[ turkish ] = "D~üzey";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_LEVEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 50 , 19 ) ;
+ Size = MAP_APPFONT ( 46 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ english ] =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Nenhum" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "None" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Keine" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Inga" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Ingen" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Senza" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Ninguna" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Aucun(e)" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Geen" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÎÞ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Áåç" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Brak" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‚È‚µ" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "µL" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÈÏæä" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÊáíÝíá" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¾øÀ½" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yok" ; > ;
+ };
+ };
+ FixedText FT_SEPARATOR
+ {
+ Pos = MAP_APPFONT ( 17 , 35 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ TEXT = "~Trenner" ;
+ TEXT [ English ] = "~Separator" ;
+ Text [ english_us ] = "~Separator" ;
+ Text [ portuguese_brazilian ] = "~Trenner" ;
+ Text [ swedish ] = "A~vdelare" ;
+ Text [ danish ] = "Separator" ;
+ Text [ italian ] = "~Separatore" ;
+ Text [ spanish ] = "~Separador" ;
+ Text [ french ] = "~Séparateurs" ;
+ Text [ dutch ] = "~Scheidingsteken" ;
+ Text [ portuguese ] = "~Separador" ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û(~S)";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹æØ‚è‹L†(~S)";
+ Text[ chinese_traditional ] = "³s±µ²Å(~S)";
+ Text[ arabic ] = "ÇáÝÇÕá";
+ Text[ greek ] = "Äéá÷ùñéóôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ(~S)";
+ Text[ turkish ] = "A~yýrma iþr.";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SEPARATOR
+ {
+ Pos = MAP_APPFONT ( 50 , 34 ) ;
+ Size = MAP_APPFONT ( 46 , 12 ) ;
+ Border = TRUE ;
+ MaxTextLength = 1 ;
+ TEXT = "." ;
+ };
+ Text [ english_us ] = "Number range options" ;
+ Text [ portuguese_brazilian ] = "Nummernkreis Optionen" ;
+ Text [ swedish ] = "Sekvens alternativ" ;
+ Text [ danish ] = "Sekvensnummerering-indstillinger" ;
+ Text [ italian ] = "Opzioni sequenza" ;
+ Text [ spanish ] = "Opciones de secuencias" ;
+ Text [ french ] = "Options de séquence" ;
+ Text [ dutch ] = "Nummerreeks-opties" ;
+ Text [ portuguese ] = "Opções de sequências" ;
+ Text[ chinese_simplified ] = "ºÅÂëÐòÁÐÑ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû ïîðÿäêîâîãî íîìåðà";
+ Text[ polish ] = "Opcje sekwencji";
+ Text[ japanese ] = "ˆê˜A”Ô†‚̵Ìß¼®Ý";
+ Text[ chinese_traditional ] = "½s¸¹§Ç¦C¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ ÇáÊÑÞíã ÇáãÊÓáÓá";
+ Text[ greek ] = "ÅðéëïãÝò êýêëïõ áñéèìþí";
+ Text[ korean ] = "¼ýÀÚ ¿µ¿ª ¿É¼Ç";
+ Text[ turkish ] = "Numara aralýðý seçenekleri";
+ Text[ language_user1 ] = " ";
+};
+ // ********************************************************************** EOF
diff --git a/sw/source/ui/frmdlg/frmdlg.cxx b/sw/source/ui/frmdlg/frmdlg.cxx
new file mode 100644
index 000000000000..386c367821b7
--- /dev/null
+++ b/sw/source/ui/frmdlg/frmdlg.cxx
@@ -0,0 +1,332 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_BORDER_HXX
+#include <svx/border.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+#ifndef _SVX_GRFPAGE_HXX //autogen
+#include <svx/grfpage.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+
+
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _FRMDLG_HXX
+#include <frmdlg.hxx>
+#endif
+#ifndef _FRMPAGE_HXX
+#include <frmpage.hxx>
+#endif
+#ifndef _WRAP_HXX
+#include <wrap.hxx>
+#endif
+#ifndef _COLUMN_HXX
+#include <column.hxx>
+#endif
+#ifndef _MACASSGN_HXX
+#include <macassgn.hxx>
+#endif
+
+#ifndef _FRMUI_HRC
+#include <frmui.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Traeger des Dialoges
+ --------------------------------------------------------------------*/
+
+SwFrmDlg::SwFrmDlg( SfxViewFrame* pFrame,
+ Window* pParent,
+ const SfxItemSet& rCoreSet,
+ BOOL bNewFrm,
+ USHORT nResType,
+ BOOL bFmt,
+ UINT16 nDefPage,
+ const String* pStr) :
+
+ SfxTabDialog(pFrame, pParent, SW_RES(nResType), &rCoreSet, pStr != 0),
+ bNew(bNewFrm),
+ bFormat(bFmt),
+ rSet(rCoreSet),
+ nDlgType(nResType),
+ pWrtShell(((SwView*)pFrame->GetViewShell())->GetWrtShellPtr())
+{
+ FreeResource();
+ USHORT nHtmlMode = ::GetHtmlMode(pWrtShell->GetView().GetDocShell());
+ BOOL bHtmlMode = nHtmlMode & HTMLMODE_ON;
+
+ // BspFont fuer beide Bsp-TabPages
+ //
+ if(pStr)
+ {
+ String aTmp( GetText() );
+ aTmp += SW_RESSTR(STR_COLL_HEADER);
+ aTmp += *pStr;
+ aTmp += ')';
+ }
+ AddTabPage(TP_FRM_STD, SwFrmPage::Create, 0);
+ AddTabPage(TP_FRM_ADD, SwFrmAddPage::Create, 0);
+ AddTabPage(TP_FRM_WRAP, SwWrapTabPage::Create, 0);
+ AddTabPage(TP_FRM_URL, SwFrmURLPage::Create, 0);
+ if(nDlgType == DLG_FRM_GRF)
+ {
+ AddTabPage( TP_GRF_EXT, SwGrfExtPage::Create, 0 );
+ AddTabPage( RID_SVXPAGE_GRFCROP, SvxGrfCropPage::Create, 0 );
+ }
+ if (nDlgType == DLG_FRM_STD)
+ {
+ AddTabPage(TP_COLUMN, SwColumnPage::Create, 0);
+ }
+ AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, 0);
+ AddTabPage( TP_MACRO_ASSIGN, SfxSmallMacroTabPage::Create, 0);
+ AddTabPage( TP_BORDER, SvxBorderTabPage::Create, 0);
+
+ if(bHtmlMode)
+ {
+ switch( nDlgType )
+ {
+ case DLG_FRM_STD:
+ if(0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS))
+ RemoveTabPage(TP_BORDER);
+ RemoveTabPage(TP_COLUMN);
+ // kein break
+ case DLG_FRM_OLE:
+ RemoveTabPage(TP_FRM_URL);
+ RemoveTabPage(TP_MACRO_ASSIGN);
+ break;
+ case DLG_FRM_GRF:
+ RemoveTabPage(RID_SVXPAGE_GRFCROP);
+ break;
+ }
+ if( 0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS) ||
+ nDlgType != DLG_FRM_STD )
+ RemoveTabPage(TP_BACKGROUND);
+ }
+
+ if (bNew)
+ SetCurPageId(TP_FRM_STD);
+
+ if (nDefPage)
+ SetCurPageId(nDefPage);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwFrmDlg::~SwFrmDlg()
+{
+}
+
+
+
+
+void SwFrmDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+ switch ( nId )
+ {
+ case TP_FRM_STD:
+ ((SwFrmPage&)rPage).SetNewFrame(bNew);
+ ((SwFrmPage&)rPage).SetFormatUsed(bFormat);
+ ((SwFrmPage&)rPage).SetFrmType(nDlgType);
+ break;
+
+ case TP_FRM_ADD:
+ ((SwFrmAddPage&)rPage).SetFormatUsed(bFormat);
+ ((SwFrmAddPage&)rPage).SetFrmType(nDlgType);
+ ((SwFrmAddPage&)rPage).SetNewFrame(bNew);
+ ((SwFrmAddPage&)rPage).SetShell(pWrtShell);
+ break;
+
+ case TP_FRM_WRAP:
+ ((SwWrapTabPage&)rPage).SetNewFrame(bNew);
+ ((SwWrapTabPage&)rPage).SetFormatUsed(bFormat, FALSE);
+ ((SwWrapTabPage&)rPage).SetShell(pWrtShell);
+ break;
+
+ case TP_COLUMN:
+ {
+ ((SwColumnPage&)rPage).SetFrmMode(TRUE);
+ ((SwColumnPage&)rPage).SetFormatUsed(bFormat);
+
+ const SwFmtFrmSize& rSize = (const SwFmtFrmSize&)
+ rSet.Get( RES_FRM_SIZE );
+ ((SwColumnPage&)rPage).SetPageWidth( rSize.GetWidth() );
+ }
+ break;
+
+ case TP_MACRO_ASSIGN:
+ SwMacroAssignDlg::AddEvents( (SfxSmallMacroTabPage&)rPage,
+ DLG_FRM_GRF == nDlgType ? MACASSGN_GRAPHIC
+ : DLG_FRM_OLE == nDlgType ? MACASSGN_OLE
+ : MACASSGN_FRMURL );
+ break;
+
+ case TP_BACKGROUND:
+ if( DLG_FRM_STD == nDlgType )
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+ break;
+
+ case TP_BORDER:
+ ((SvxBorderTabPage&) rPage).SetSWMode(SW_BORDER_MODE_FRAME);
+ break;
+ }
+}
+
+
+/*-----------------25.02.94 21:22-------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.196 2000/09/18 16:05:33 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.195 2000/08/25 14:10:11 jp
+ Graphic Crop-Attribut and TabPage exported to SVX
+
+ Revision 1.194 2000/06/20 14:47:24 os
+ #70060# less occurences of columns in HTML
+
+ Revision 1.193 1998/07/17 08:18:06 OS
+ SfxxSmallMacroTabPage einsetzen #52809#
+
+
+ Rev 1.192 17 Jul 1998 10:18:06 OS
+ SfxxSmallMacroTabPage einsetzen #52809#
+
+ Rev 1.191 15 Jun 1998 21:15:48 MH
+ add: list.hxx
+
+ Rev 1.190 16 Apr 1998 13:11:10 OS
+ Rahmenanpassung die zweite
+
+ Rev 1.189 06 Apr 1998 09:48:24 OS
+ HTML-Anpassungen
+
+ Rev 1.188 28 Nov 1997 19:41:18 MA
+ includes
+
+ Rev 1.187 24 Nov 1997 17:40:14 MA
+ include
+
+ Rev 1.186 03 Nov 1997 13:19:48 MA
+ precomp entfernt
+
+ Rev 1.185 01 Sep 1997 13:29:54 OS
+ DLL-Umstellung
+
+ Rev 1.184 15 Aug 1997 12:13:22 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.183 11 Aug 1997 12:45:16 MH
+ chg: header
+
+ Rev 1.182 03 Jul 1997 12:54:34 OS
+ SwSwMode jetzt mit BYTE #41255#
+
+ Rev 1.181 29 Apr 1997 15:04:48 OS
+ Hintergrund auch fuer OLE
+
+--------------------------------------------------*/
+
+
diff --git a/sw/source/ui/frmdlg/frmmgr.cxx b/sw/source/ui/frmdlg/frmmgr.cxx
new file mode 100644
index 000000000000..a9d9a873b3fa
--- /dev/null
+++ b/sw/source/ui/frmdlg/frmmgr.cxx
@@ -0,0 +1,832 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#include "hintids.hxx"
+
+
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_OPAQITEM_HXX //autogen
+#include <svx/opaqitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_SHADITEM_HXX //autogen
+#include <svx/shaditem.hxx>
+#endif
+
+
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "viewopt.hxx"
+#include "uitool.hxx"
+#include "frmmgr.hxx"
+#include "format.hxx"
+#include "mdiexp.hxx"
+#include "poolfmt.hxx"
+
+static USHORT __FAR_DATA aFrmMgrRange[] = {
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ FN_SET_FRM_NAME, FN_SET_FRM_NAME,
+ 0};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rahmen-Attribute ueber Shell ermitteln
+ --------------------------------------------------------------------*/
+
+SwFlyFrmAttrMgr::SwFlyFrmAttrMgr( BOOL bNew, SwWrtShell* pSh, BYTE nType ) :
+ bAbsPos( FALSE ),
+ bNewFrm( bNew ),
+ aSet( (SwAttrPool&)pSh->GetAttrPool(), aFrmMgrRange ),
+ pOwnSh( pSh )
+
+{
+ if ( bNewFrm )
+ {
+ // Defaults einstellen:
+ USHORT nId;
+ switch ( nType )
+ {
+ case FRMMGR_TYPE_TEXT: nId = RES_POOLFRM_FRAME; break;
+ case FRMMGR_TYPE_OLE: nId = RES_POOLFRM_OLE; break;
+ case FRMMGR_TYPE_GRF: nId = RES_POOLFRM_GRAPHIC; break;
+ }
+ aSet.SetParent( &pOwnSh->GetFmtFromPool( nId )->GetAttrSet());
+ aSet.Put( SwFmtFrmSize( ATT_MIN_SIZE, DFLT_WIDTH, DFLT_HEIGHT ));
+ if ( 0 != ::GetHtmlMode(pSh->GetView().GetDocShell()) )
+ aSet.Put( SwFmtHoriOrient( 0, HORI_LEFT, PRTAREA ) );
+ }
+ else if ( nType == FRMMGR_TYPE_NONE )
+ pOwnSh->GetFlyFrmAttr( aSet );
+ ::PrepareBoxInfo( aSet, *pOwnSh );
+}
+
+SwFlyFrmAttrMgr::SwFlyFrmAttrMgr( BOOL bNew, SwWrtShell* pSh, const SfxItemSet &rSet ) :
+ bAbsPos( FALSE ),
+ bNewFrm( bNew ),
+ aSet( rSet ),
+ pOwnSh( pSh )
+
+{
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::UpdateAttrMgr()
+{
+ if ( !bNewFrm && pOwnSh->IsFrmSelected() )
+ pOwnSh->GetFlyFrmAttr( aSet );
+ ::PrepareBoxInfo( aSet, *pOwnSh );
+}
+
+void SwFlyFrmAttrMgr::_UpdateFlyFrm()
+{
+ const SfxPoolItem* pItem = 0;
+
+ if (aSet.GetItemState(FN_SET_FRM_NAME, FALSE, &pItem) == SFX_ITEM_SET)
+ pOwnSh->SetFlyName(((SfxStringItem *)pItem)->GetValue());
+
+ pOwnSh->SetModified();
+
+ if ( bAbsPos )
+ {
+ pOwnSh->SetFlyPos( aAbsPos );
+ bAbsPos = FALSE;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bestehenden Fly-Frame aendern
+ --------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::UpdateFlyFrm()
+{
+ ASSERT( pOwnSh->IsFrmSelected(),
+ "Kein Rahmen selektiert oder keine Shell, Update nicht moeglich");
+
+ // return wg. BASIC
+ if( !aSet.Count() || !pOwnSh->IsFrmSelected() )
+ return;
+
+ pOwnSh->StartAllAction();
+ pOwnSh->SetFlyFrmAttr( aSet );
+ _UpdateFlyFrm();
+ pOwnSh->EndAllAction();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rahmen einfuegen
+ --------------------------------------------------------------------*/
+
+BOOL SwFlyFrmAttrMgr::InsertFlyFrm()
+{
+ pOwnSh->StartAllAction();
+
+ BOOL bRet = 0 != pOwnSh->NewFlyFrm( aSet );
+
+ // richtigen Mode an der Shell einschalten, Rahmen wurde aut. selektiert.
+ if ( bRet )
+ {
+ _UpdateFlyFrm();
+ pOwnSh->EnterSelFrmMode();
+ FrameNotify(pOwnSh, FLY_DRAG_START);
+ }
+ pOwnSh->EndAllAction();
+ return bRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Rahmen des Typs eAnchorType einfuegen. Position und
+ Groesse werden explizit angegeben.
+ Nicht erlaubte Werte des Aufzaehlungstypes werden
+ korrigiert.
+------------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::InsertFlyFrm(RndStdIds eAnchorType,
+ const Point &rPos,
+ const Size &rSize,
+ BOOL bAbs )
+{
+ ASSERT( eAnchorType == FLY_PAGE ||
+ eAnchorType == FLY_AT_CNTNT ||
+ eAnchorType == FLY_AUTO_CNTNT ||
+ eAnchorType == FLY_AT_FLY ||
+ eAnchorType == FLY_IN_CNTNT, "Rahmentyp nicht erlaubt" );
+
+ if ( bAbs )
+ SetAbsPos( rPos );
+ else
+ SetPos( rPos );
+
+ SetSize( rSize );
+ SetAnchor( eAnchorType );
+ InsertFlyFrm();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Anker setzen
+ --------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::SetAnchor( RndStdIds eId )
+{
+ USHORT nPhyPageNum, nVirtPageNum;
+ pOwnSh->GetPageNum( nPhyPageNum, nVirtPageNum );
+
+ aSet.Put( SwFmtAnchor( eId, nPhyPageNum ) );
+ if( FLY_PAGE == eId || FLY_AT_CNTNT == eId || FLY_AUTO_CNTNT == eId
+ || FLY_AT_FLY == eId )
+ {
+ SwFmtVertOrient aVertOrient( GetVertOrient() );
+ SwFmtHoriOrient aHoriOrient( GetHoriOrient() );
+ aHoriOrient.SetRelationOrient( FRAME );
+ aVertOrient.SetRelationOrient( FRAME );
+ aSet.Put( aVertOrient );
+ aSet.Put( aHoriOrient );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen des Attributs fuer Spalten
+------------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::SetCol( const SwFmtCol &rCol )
+{
+ aSet.Put( rCol );
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Absolute Position setzen
+ --------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::SetAbsPos( const Point& rPoint )
+{
+ bAbsPos = TRUE;
+ aAbsPos = rPoint;
+
+ SwFmtVertOrient aVertOrient( GetVertOrient() );
+ SwFmtHoriOrient aHoriOrient( GetHoriOrient() );
+ aHoriOrient.SetHoriOrient( HORI_NONE );
+ aVertOrient.SetVertOrient( VERT_NONE );
+ aSet.Put( aVertOrient );
+ aSet.Put( aHoriOrient );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Metriken auf Korrektheit pruefen
+ --------------------------------------------------------------------*/
+
+void SwFlyFrmAttrMgr::ValidateMetrics( SwFrmValid& rVal, BOOL bOnlyPercentRefValue )
+{
+ if (!bOnlyPercentRefValue)
+ {
+ rVal.nMinHeight = MINFLY + CalcTopSpace() + CalcBottomSpace();
+ rVal.nMinWidth = MINFLY + CalcLeftSpace()+ CalcRightSpace();
+ }
+
+ SwRect aBoundRect;
+
+ pOwnSh->CalcBoundRect(aBoundRect, rVal.eArea, rVal.eHRel, rVal.bMirror, NULL, &rVal.aPercentSize);
+
+ if (bOnlyPercentRefValue)
+ return;
+
+ if ( rVal.eArea == FLY_PAGE || rVal.eArea == FLY_AT_FLY )
+ {
+ // MinimalPosition
+ rVal.nMinHPos = aBoundRect.Left();
+ rVal.nMinVPos = aBoundRect.Top();
+ SwTwips nH = rVal.nHPos;
+ SwTwips nV = rVal.nVPos;
+
+ if (rVal.nHPos + rVal.nWidth > aBoundRect.Right())
+ {
+ if (rVal.eHori == HORI_NONE)
+ {
+ rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right());
+ nH = rVal.nHPos;
+ }
+ else
+ rVal.nWidth = aBoundRect.Right() - rVal.nHPos;
+ }
+
+ if (rVal.nHPos + rVal.nWidth > aBoundRect.Right())
+ rVal.nWidth = aBoundRect.Right() - rVal.nHPos;
+
+ if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom())
+ {
+ if (rVal.eVert == SVX_VERT_NONE)
+ {
+ rVal.nVPos -= ((rVal.nVPos + rVal.nHeight) - aBoundRect.Bottom());
+ nV = rVal.nVPos;
+ }
+ else
+ rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos;
+ }
+
+ if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom())
+ rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos;
+
+ if ( rVal.eVert != SVX_VERT_NONE )
+ nV = aBoundRect.Top();
+
+ if ( rVal.eHori != HORI_NONE )
+ nH = aBoundRect.Left();
+
+ rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth;
+ rVal.nMaxHeight = aBoundRect.Bottom() - nV;
+
+ rVal.nMaxVPos = aBoundRect.Bottom() - rVal.nHeight;
+ rVal.nMaxWidth = aBoundRect.Right() - nH;
+ }
+ else if ( rVal.eArea == FLY_AT_CNTNT || rVal.eArea == FLY_AUTO_CNTNT )
+ {
+ SwTwips nH = rVal.nHPos;
+ SwTwips nV = rVal.nVPos;
+
+ if (rVal.nHPos + rVal.nWidth > aBoundRect.Right())
+ {
+ if (rVal.eHori == HORI_NONE)
+ {
+ rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right());
+ nH = rVal.nHPos;
+ }
+ else
+ rVal.nWidth = aBoundRect.Right() - rVal.nHPos;
+ }
+
+ if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom())
+ {
+ if (rVal.eVert == SVX_VERT_NONE)
+ {
+ rVal.nVPos -= ((rVal.nVPos + rVal.nHeight) - aBoundRect.Bottom());
+ nV = rVal.nVPos;
+ }
+ else
+ rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos;
+ }
+
+ if ( rVal.eVert != SVX_VERT_NONE )
+ nV = aBoundRect.Top();
+
+ if ( rVal.eHori != HORI_NONE )
+ nH = aBoundRect.Left();
+
+ rVal.nMinVPos = aBoundRect.Top();
+ rVal.nMaxVPos = aBoundRect.Height() - rVal.nHeight;
+
+ rVal.nMinHPos = aBoundRect.Left();
+ rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth;
+
+ // Maximale Breite Hoehe
+ rVal.nMaxHeight = rVal.nMaxVPos + rVal.nHeight - nV;
+ rVal.nMaxWidth = rVal.nMaxHPos + rVal.nWidth - nH;
+ }
+ else if ( rVal.eArea == FLY_IN_CNTNT )
+ {
+ rVal.nMinHPos = 0;
+ rVal.nMaxHPos = 0;
+
+ rVal.nMaxHeight = aBoundRect.Height();
+ rVal.nMaxWidth = aBoundRect.Width();
+
+ rVal.nMaxVPos = aBoundRect.Height();
+ rVal.nMinVPos = -aBoundRect.Height() + rVal.nHeight;
+ if (rVal.nMaxVPos < rVal.nMinVPos)
+ {
+ rVal.nMinVPos = rVal.nMaxVPos;
+ rVal.nMaxVPos = -aBoundRect.Height();
+ }
+ }
+ if (rVal.nMaxWidth < rVal.nWidth)
+ rVal.nWidth = rVal.nMaxWidth;
+ if (rVal.nMaxHeight < rVal.nHeight)
+ rVal.nHeight = rVal.nMaxHeight;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Korrektur fuer Umrandung
+ --------------------------------------------------------------------*/
+
+long SwFlyFrmAttrMgr::CalcWidthSpace()
+{
+ SvxLRSpaceItem &rLR = (SvxLRSpaceItem&)aSet.Get(RES_LR_SPACE);
+ return rLR.GetLeft() + rLR.GetRight() + CalcLeftSpace() + CalcRightSpace();
+}
+
+long SwFlyFrmAttrMgr::CalcHeightSpace()
+{
+ SvxULSpaceItem &rUL = (SvxULSpaceItem&)aSet.Get(RES_UL_SPACE);
+ return rUL.GetUpper() + rUL.GetLower() + CalcTopSpace() + CalcBottomSpace();
+}
+
+SwTwips SwFlyFrmAttrMgr::CalcTopSpace()
+{
+ const SvxShadowItem& rShadow = GetShadow();
+ const SvxBoxItem& rBox = GetBox();
+ return rShadow.CalcShadowSpace(SHADOW_TOP ) + rBox.CalcLineSpace(BOX_LINE_TOP);
+}
+
+SwTwips SwFlyFrmAttrMgr::CalcBottomSpace()
+{
+ const SvxShadowItem& rShadow = GetShadow();
+ const SvxBoxItem& rBox = GetBox();
+ return rShadow.CalcShadowSpace(SHADOW_BOTTOM) + rBox.CalcLineSpace(BOX_LINE_BOTTOM);
+}
+
+SwTwips SwFlyFrmAttrMgr::CalcLeftSpace()
+{
+ const SvxShadowItem& rShadow = GetShadow();
+ const SvxBoxItem& rBox = GetBox();
+ return rShadow.CalcShadowSpace(SHADOW_LEFT) + rBox.CalcLineSpace(BOX_LINE_LEFT);
+}
+
+SwTwips SwFlyFrmAttrMgr::CalcRightSpace()
+{
+ const SvxShadowItem& rShadow = GetShadow();
+ const SvxBoxItem& rBox = GetBox();
+ return rShadow.CalcShadowSpace(SHADOW_RIGHT) + rBox.CalcLineSpace(BOX_LINE_RIGHT);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Attribut aus dem Set loeschen
+ --------------------------------------------------------------------*/
+void SwFlyFrmAttrMgr::DelAttr( USHORT nId )
+{
+ aSet.ClearItem( nId );
+}
+
+void SwFlyFrmAttrMgr::SetLRSpace( long nLeft, long nRight )
+{
+ ASSERT( LONG_MAX != nLeft && LONG_MAX != nRight, "Welchen Raend setzen?" );
+
+ SvxLRSpaceItem aTmp( (SvxLRSpaceItem&)aSet.Get( RES_LR_SPACE ) );
+ if( LONG_MAX != nLeft )
+ aTmp.SetLeft( USHORT(nLeft) );
+ if( LONG_MAX != nRight )
+ aTmp.SetRight( USHORT(nRight) );
+ aSet.Put( aTmp );
+}
+
+void SwFlyFrmAttrMgr::SetULSpace( long nTop, long nBottom )
+{
+ ASSERT( LONG_MAX != nTop && LONG_MAX != nBottom, Welchen Raend setzen? );
+
+ SvxULSpaceItem aTmp( (SvxULSpaceItem&)aSet.Get( RES_UL_SPACE ) );
+ if( LONG_MAX != nTop )
+ aTmp.SetUpper( USHORT(nTop) );
+ if( LONG_MAX != nBottom )
+ aTmp.SetLower( USHORT(nBottom) );
+ aSet.Put( aTmp );
+}
+
+void SwFlyFrmAttrMgr::SetWrapType( SwSurround eFly )
+{
+ SwFmtSurround aWrap( GetSurround() );
+ aWrap.SetSurround( eFly );
+ aSet.Put( aWrap );
+}
+
+void SwFlyFrmAttrMgr::SetAnchorOnly(BOOL bSet)
+{
+ SwFmtSurround aWrap( GetSurround() );
+ aWrap.SetAnchorOnly(bSet);
+ aSet.Put( aWrap );
+}
+
+void SwFlyFrmAttrMgr::SetContour( BOOL bSet)
+{
+ SwFmtSurround aWrap( GetSurround() );
+ aWrap.SetContour(bSet);
+ aSet.Put( aWrap );
+}
+
+void SwFlyFrmAttrMgr::SetPos( const Point& rPoint )
+{
+ SwFmtVertOrient aVertOrient( GetVertOrient() );
+ SwFmtHoriOrient aHoriOrient( GetHoriOrient() );
+
+ aHoriOrient.SetPos ( rPoint.X() );
+ aHoriOrient.SetHoriOrient( HORI_NONE );
+
+ aVertOrient.SetPos ( rPoint.Y() );
+ aVertOrient.SetVertOrient( VERT_NONE );
+
+ aSet.Put( aVertOrient );
+ aSet.Put( aHoriOrient );
+}
+
+void SwFlyFrmAttrMgr::SetHorzOrientation(SwHoriOrient eOrient)
+{
+ SwFmtHoriOrient aHoriOrient( GetHoriOrient() );
+ aHoriOrient.SetHoriOrient( eOrient );
+ aSet.Put( aHoriOrient );
+}
+
+void SwFlyFrmAttrMgr::SetVertOrientation(SvxFrameVertOrient eOrient)
+{
+ SwFmtVertOrient aVertOrient( GetVertOrient() );
+ aVertOrient.SetVertOrient( (SwVertOrient)eOrient );
+ aSet.Put( aVertOrient );
+}
+
+void SwFlyFrmAttrMgr::SetSizeType( SwFrmSize eType )
+{
+ SwFmtFrmSize aSize( GetFrmSize() );
+ aSize.SetSizeType( eType );
+ aSet.Put( aSize );
+}
+
+void SwFlyFrmAttrMgr::SetSize( const Size& rSize )
+{
+ SwFmtFrmSize aSize( GetFrmSize() );
+ aSize.SetSize(Size(Max(rSize.Width(), long(MINFLY)), Max(rSize.Height(), long(MINFLY))));
+ aSet.Put( aSize );
+}
+
+void SwFlyFrmAttrMgr::SetFrmSize(const SwFmtFrmSize& rFrmSize)
+{
+ aSet.Put(rFrmSize);
+}
+
+void SwFlyFrmAttrMgr::ProtectPosSize( BOOL bProt )
+{
+ SvxProtectItem aProtection( ((SvxProtectItem&)aSet.Get(RES_PROTECT)));
+ aProtection.SetSizeProtect( bProt );
+ aProtection.SetPosProtect ( bProt );
+ aSet.Put( aProtection );
+}
+
+void SwFlyFrmAttrMgr::SetTransparent(BOOL bTrans)
+{
+ aSet.Put( SvxOpaqueItem( RES_OPAQUE, !bTrans ));
+}
+
+
+void SwFlyFrmAttrMgr::SetAttrSet(const SfxItemSet& rSet)
+{
+ aSet.ClearItem();
+ aSet.Put( rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Validierung der Inputs
+ --------------------------------------------------------------------*/
+
+SwFrmValid::SwFrmValid() :
+ bAuto(0),
+ bMirror(0),
+ nHPos(0),
+ nMaxHPos(LONG_MAX),
+ nMinHPos(0),
+
+ nVPos(0),
+ nMaxVPos(LONG_MAX),
+ nMinVPos(0),
+
+ nWidth( DFLT_WIDTH ),
+ nMinWidth(0),
+ nMaxWidth(LONG_MAX),
+
+ nHeight( DFLT_HEIGHT ),
+ nMaxHeight(LONG_MAX)
+{
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.168 2000/09/18 16:05:33 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.167 1998/11/04 18:43:28 MA
+ #58858# Format fuer MakeNewFly durchreichen
+
+
+ Rev 1.166 04 Nov 1998 19:43:28 MA
+ #58858# Format fuer MakeNewFly durchreichen
+
+ Rev 1.165 07 Apr 1998 12:00:42 OM
+ Maximalwerte fuer Umlauf
+
+ Rev 1.164 01 Apr 1998 15:15:22 OM
+ #49023 Prozentuale Controller rechtzeitig initialisieren
+
+ Rev 1.163 05 Feb 1998 15:27:38 OM
+ Maximalwertberechnung fuer Rahmenausrichtung
+
+ Rev 1.162 04 Feb 1998 15:53:56 AMA
+ Chg: CalcBoundRect beruecksichtigt die neuen Rahmenausrichtungen
+
+ Rev 1.161 24 Nov 1997 17:40:08 MA
+ include
+
+ Rev 1.160 20 Nov 1997 12:14:36 AMA
+ Opt. SwSurround: GoldCut jetzt als Enum; nicht implementierte Enums entfernt
+
+ Rev 1.159 12 Sep 1997 16:32:36 AMA
+ Neu: Wenn am Rahmen verankerte Rahmen ausserhalb sein duerfen ...
+
+ Rev 1.158 12 Sep 1997 10:38:00 OS
+ ITEMID_* definiert
+
+ Rev 1.157 15 Aug 1997 12:13:24 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.156 12 Aug 1997 15:58:10 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.155 07 Aug 1997 14:59:12 OM
+ Headerfile-Umstellung
+
+ Rev 1.154 30 Jul 1997 18:17:48 HJS
+ includes
+
+ Rev 1.153 23 Apr 1997 10:44:34 AMA
+ Fix: FLY_AUTO_CNTNT Abstaende richtig berechnen
+
+ Rev 1.152 16 Apr 1997 16:24:14 OS
+ neu: SetContour und SetAnchorOnly
+
+ Rev 1.151 16 Apr 1997 11:08:58 NF
+ Include-Reihenfolge wegen Internal Compiler Error
+
+ Rev 1.150 15 Apr 1997 16:27:58 AMA
+ New: Rahmengebundene Rahmen und auto.positionierte Rahmen
+
+ Rev 1.149 03 Feb 1997 16:00:36 OM
+ Maximalwertberechnung fuer zeichengebundene Rahmen geaendert
+
+ Rev 1.148 29 Jan 1997 13:06:24 MA
+ unbenutzes entfernt
+
+ Rev 1.147 28 Jan 1997 10:12:18 NF
+ includes ...
+
+ Rev 1.146 27 Jan 1997 16:22:30 OS
+ HtmlMode wird ueber GetHtmlMode ermittelt
+
+ Rev 1.145 06 Nov 1996 16:26:10 OM
+ Maximalwertberechnung verbessert
+
+ Rev 1.144 04 Nov 1996 16:50:44 OM
+ Maximalwertbegrenzung fuer Umlauf-TP
+
+ Rev 1.143 04 Nov 1996 14:58:42 OM
+ ValidateMetric umgestellt
+
+ Rev 1.142 30 Sep 1996 07:52:36 MA
+ new: CalcWidthSpace, CalcHeightSpace
+
+ Rev 1.141 26 Sep 1996 09:03:08 MA
+ defautls fuer Rahmen + Aufraeumarbeiten
+
+ Rev 1.140 23 Sep 1996 13:30:54 OS
+ richtige max. V-Position und Hoehe fuer absatzgebundene Rahmen
+
+ Rev 1.139 18 Sep 1996 10:39:18 OM
+ Umlauf: Nur Anker
+
+ Rev 1.138 12 Sep 1996 17:01:50 OS
+ GetAnyCurRect() ersetzt GetCur*Rect
+
+ Rev 1.137 11 Sep 1996 16:51:44 MA
+ new: Umlauf nur Anker
+
+ Rev 1.136 10 Sep 1996 17:00:44 OM
+ Prozentuale Rahmen
+
+ Rev 1.135 10 Sep 1996 14:21:48 MA
+ chg: ein bischen vereinfacht
+
+ Rev 1.134 10 Sep 1996 14:00:46 OM
+ Aufgeraeumt
+
+ Rev 1.133 06 Sep 1996 14:15:20 OM
+ #31010# GPF bei fehlenden Groessenangaben behoben
+
+ Rev 1.132 28 Aug 1996 11:52:48 OS
+ includes
+
+ Rev 1.131 01 Jul 1996 14:55:02 OM
+ Neue Segs
+
+ Rev 1.130 01 Jul 1996 14:53:58 OM
+ Basic: Rahmengroesse in Prozent setzen
+
+ Rev 1.129 15 May 1996 15:47:18 OS
+ SwVertOrient -> SvxFrameVertOrient
+
+ Rev 1.128 25 Apr 1996 15:59:24 MA
+ #27183# neg. Position von zeichengeb. beruecksichtigen
+
+ Rev 1.127 19 Apr 1996 17:00:34 MA
+ chg: Vorbereitung fuer kleine Rahmen
+
+ Rev 1.126 18 Apr 1996 14:10:32 JP
+ unbenutzte Methoden entfernt
+
+ Rev 1.125 22 Mar 1996 15:06:00 OS
+ Umstellung 311
+
+ Rev 1.124 21 Mar 1996 14:06:32 OM
+ Umstellung 311
+
+ Rev 1.123 20 Feb 1996 17:03:06 JP
+ Umbau SfxItemPool -> SwAttrPool
+
+ Rev 1.122 24 Nov 1995 16:58:12 OM
+ PCH->PRECOMPILED
+
+ Rev 1.121 17 Nov 1995 18:11:42 OM
+ Rahmennamen setzen
+
+ Rev 1.120 03 Nov 1995 20:17:30 MA
+ GetUpper..Rect returne keine Objecte mehr
+
+ Rev 1.119 30 Oct 1995 18:44:04 OM
+ FrameNotify umgestellt
+
+ Rev 1.118 30 Oct 1995 11:25:34 MA
+ chg: Geraffel entfernt
+
+ Rev 1.117 09 Aug 1995 21:50:48 ER
+ ! static data _vor_ seg_eofglobals
+
+ Rev 1.116 25 Jul 1995 19:12:06 OS
+ +ProtectPos(), +ProtectSize()
+
+ Rev 1.115 24 Jul 1995 19:13:30 MA
+ chg: Ctor nur noch mit Shell
+
+ Rev 1.114 17 Jul 1995 16:10:56 OS
+ Default-Konstanten jetzt im Header
+
+ Rev 1.113 21 May 1995 15:41:58 MA
+ opt: FRMTYE_FLY_ANY.
+
+ Rev 1.112 25 Apr 1995 17:34:06 OM
+ Range des Set-Konstruktors um BoxInfoItem erweitert
+
+ Rev 1.111 23 Apr 1995 20:45:26 OS
+ Position/Size beim Aufziehen
+
+ Rev 1.110 31 Mar 1995 12:07:38 MA
+ fix: Bei PosProtect nicht den Inhalt schuetzen.
+ opt: Diverse.
+ opt: unoetige includes entfernt.
+
+ Rev 1.109 24 Mar 1995 20:28:32 PK
+ neuer member: pownsh
+
+ Rev 1.108 21 Mar 1995 07:38:36 OM
+ InsertFlyFrm wieder drin
+
+ Rev 1.107 20 Mar 1995 19:18:30 OS
+ unbenutzte Funktionen entfernt
+
+ Rev 1.106 14 Feb 1995 17:26:06 MS
+ PrepareBoxInfo
+
+ Rev 1.105 13 Feb 1995 21:11:50 MS
+ Rahmen aktiviert
+
+ Rev 1.104 23 Jan 1995 18:14:14 OM
+ Auf neue precompiled Header umgestellt
+
+ Rev 1.103 09 Jan 1995 17:08:10 ER
+ del: cmdid h
+
+ Rev 1.102 20 Dec 1994 11:54:06 MA
+ SS Drawing.
+
+ Rev 1.101 18 Nov 1994 16:17:22 MA
+ min -> Min, max -> Max.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
new file mode 100644
index 000000000000..90cd2045ae6d
--- /dev/null
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -0,0 +1,2837 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmpage.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include <sfx2/iodlg.hxx>
+#endif
+#ifndef _SVX_IMPGRF_HXX //autogen
+#include <svx/impgrf.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_OPAQITEM_HXX //autogen
+#include <svx/opaqitem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SVX_PRNTITEM_HXX //autogen
+#include <svx/prntitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _FMTEIRO_HXX //autogen
+#include <fmteiro.hxx>
+#endif
+#ifndef _FMTCNCT_HXX //autogen
+#include <fmtcnct.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _FRMDLG_HXX
+#include <frmdlg.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _FRMPAGE_HXX
+#include <frmpage.hxx>
+#endif
+#ifndef _WRAP_HXX
+#include <wrap.hxx>
+#endif
+#ifndef _COLMGR_HXX
+#include <colmgr.hxx>
+#endif
+#ifndef _GRFATR_HXX
+#include <grfatr.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+
+#ifndef _FRMUI_HRC
+#include <frmui.hrc>
+#endif
+#ifndef _FRMPAGE_HRC
+#include <frmpage.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+struct FrmMap
+{
+ USHORT nStrId;
+ USHORT nMirrorStrId;
+ USHORT nAlign;
+ ULONG nLBRelations;
+};
+
+struct RelationMap
+{
+ USHORT nStrId;
+ USHORT nMirrorStrId;
+ ULONG nLBRelation;
+ USHORT nRelation;
+};
+
+#define LB_FRAME 0x00000001L // Textbereich des Absatzes
+#define LB_PRTAREA 0x00000002L // Textbereich des Absatzes + Einzuege
+#define LB_REL_PG_LEFT 0x00000004L // Linker Seitenrand
+#define LB_REL_PG_RIGHT 0x00000008L // Rechter Seitenrand
+#define LB_REL_FRM_LEFT 0x00000010L // Linker Absatzrand
+#define LB_REL_FRM_RIGHT 0x00000020L // Rechter Absatzrand
+#define LB_REL_PG_FRAME 0x00000040L // Gesamte Seite
+#define LB_REL_PG_PRTAREA 0x00000080L // Textbereich der Seite
+
+#define LB_FLY_REL_PG_LEFT 0x00000100L // Linker Rahmenrand
+#define LB_FLY_REL_PG_RIGHT 0x00000200L // Rechter Rahmenrand
+#define LB_FLY_REL_PG_FRAME 0x00000400L // Gesamte Rahmen
+#define LB_FLY_REL_PG_PRTAREA 0x00000800L // Rahmeninneres
+
+#define LB_VERT_FRAME 0x00001000L // Vertikaler Textbereich des Absatzes
+#define LB_VERT_PRTAREA 0x00002000L // Vertikaler Textbereich des Absatzes + Einzuege
+
+#define LB_REL_BASE 0x00010000L // Zeichenausrichtung Basis
+#define LB_REL_CHAR 0x00020000L // Zeichenausrichtung Zeichen
+#define LB_REL_ROW 0x00040000L // Zeichenausrichtung Zeile
+
+static RelationMap __FAR_DATA aRelationMap[] =
+{
+ STR_FRAME, STR_FRAME, LB_FRAME, FRAME,
+ STR_PRTAREA, STR_PRTAREA, LB_PRTAREA, PRTAREA,
+ STR_REL_PG_LEFT, STR_MIR_REL_PG_LEFT, LB_REL_PG_LEFT, REL_PG_LEFT,
+ STR_REL_PG_RIGHT, STR_MIR_REL_PG_RIGHT, LB_REL_PG_RIGHT, REL_PG_RIGHT,
+ STR_REL_FRM_LEFT, STR_MIR_REL_FRM_LEFT, LB_REL_FRM_LEFT, REL_FRM_LEFT,
+ STR_REL_FRM_RIGHT, STR_MIR_REL_FRM_RIGHT, LB_REL_FRM_RIGHT, REL_FRM_RIGHT,
+ STR_REL_PG_FRAME, STR_REL_PG_FRAME, LB_REL_PG_FRAME, REL_PG_FRAME,
+ STR_REL_PG_PRTAREA, STR_REL_PG_PRTAREA, LB_REL_PG_PRTAREA, REL_PG_PRTAREA,
+ STR_REL_CHAR, STR_REL_CHAR, LB_REL_CHAR, REL_CHAR,
+
+ STR_FLY_REL_PG_LEFT, STR_FLY_MIR_REL_PG_LEFT, LB_FLY_REL_PG_LEFT, REL_PG_LEFT,
+ STR_FLY_REL_PG_RIGHT, STR_FLY_MIR_REL_PG_RIGHT, LB_FLY_REL_PG_RIGHT, REL_PG_RIGHT,
+ STR_FLY_REL_PG_FRAME, STR_FLY_REL_PG_FRAME, LB_FLY_REL_PG_FRAME, REL_PG_FRAME,
+ STR_FLY_REL_PG_PRTAREA, STR_FLY_REL_PG_PRTAREA, LB_FLY_REL_PG_PRTAREA, REL_PG_PRTAREA,
+
+ STR_REL_BORDER, STR_REL_BORDER, LB_VERT_FRAME, FRAME,
+ STR_REL_PRTAREA, STR_REL_PRTAREA, LB_VERT_PRTAREA, PRTAREA,
+};
+
+static RelationMap __FAR_DATA aAsCharRelationMap[] =
+{
+ STR_REL_BASE, STR_REL_BASE, LB_REL_BASE, FRAME,
+ STR_REL_CHAR, STR_REL_CHAR, LB_REL_CHAR, FRAME,
+ STR_REL_ROW, STR_REL_ROW, LB_REL_ROW, FRAME,
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Seite verankert
+ --------------------------------------------------------------------*/
+
+#define HORI_PAGE_REL (LB_REL_PG_FRAME|LB_REL_PG_PRTAREA|LB_REL_PG_LEFT| \
+ LB_REL_PG_RIGHT)
+
+static FrmMap __FAR_DATA aHPageMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, HORI_PAGE_REL,
+ STR_RIGHT, STR_MIR_RIGHT, HORI_RIGHT, HORI_PAGE_REL,
+ STR_CENTER_HORI, STR_CENTER_HORI, HORI_CENTER, HORI_PAGE_REL,
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, HORI_PAGE_REL
+};
+
+static FrmMap __FAR_DATA aHPageHtmlMap[] =
+{
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, LB_REL_PG_FRAME
+};
+
+#define VERT_PAGE_REL (LB_REL_PG_FRAME|LB_REL_PG_PRTAREA)
+
+static FrmMap __FAR_DATA aVPageMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, VERT_PAGE_REL,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_BOTTOM, VERT_PAGE_REL,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_CENTER, VERT_PAGE_REL,
+ STR_FROMTOP, STR_FROMTOP, SVX_VERT_NONE, VERT_PAGE_REL,
+};
+
+static FrmMap __FAR_DATA aVPageHtmlMap[] =
+{
+ STR_FROMTOP, STR_FROMTOP, SVX_VERT_NONE, LB_REL_PG_FRAME
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rahmen verankert
+ --------------------------------------------------------------------*/
+
+#define HORI_FRAME_REL (LB_FLY_REL_PG_FRAME|LB_FLY_REL_PG_PRTAREA| \
+ LB_FLY_REL_PG_LEFT|LB_FLY_REL_PG_RIGHT)
+
+static FrmMap __FAR_DATA aHFrameMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, HORI_FRAME_REL,
+ STR_RIGHT, STR_MIR_RIGHT, HORI_RIGHT, HORI_FRAME_REL,
+ STR_CENTER_HORI, STR_CENTER_HORI, HORI_CENTER, HORI_FRAME_REL,
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, HORI_FRAME_REL
+};
+
+static FrmMap __FAR_DATA aHFlyHtmlMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, LB_FLY_REL_PG_FRAME,
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, LB_FLY_REL_PG_FRAME
+};
+
+static FrmMap __FAR_DATA aVFlyHtmlMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, LB_VERT_FRAME,
+ STR_FROMTOP, STR_FROMTOP, SVX_VERT_NONE, LB_VERT_FRAME
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Absatz verankert
+ --------------------------------------------------------------------*/
+
+#define HORI_PARA_REL (LB_FRAME|LB_PRTAREA|LB_REL_PG_LEFT|LB_REL_PG_RIGHT| \
+ LB_REL_PG_FRAME|LB_REL_PG_PRTAREA|LB_REL_FRM_LEFT| \
+ LB_REL_FRM_RIGHT)
+
+static FrmMap __FAR_DATA aHParaMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, HORI_PARA_REL,
+ STR_RIGHT, STR_MIR_RIGHT, HORI_RIGHT, HORI_PARA_REL,
+ STR_CENTER_HORI, STR_CENTER_HORI, HORI_CENTER, HORI_PARA_REL,
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, HORI_PARA_REL
+};
+
+#define HTML_HORI_PARA_REL (LB_FRAME|LB_PRTAREA)
+
+static FrmMap __FAR_DATA aHParaHtmlMap[] =
+{
+ STR_LEFT, STR_LEFT, HORI_LEFT, HTML_HORI_PARA_REL,
+ STR_RIGHT, STR_RIGHT, HORI_RIGHT, HTML_HORI_PARA_REL,
+};
+
+static FrmMap __FAR_DATA aHParaHtmlAbsMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, HTML_HORI_PARA_REL,
+ STR_RIGHT, STR_MIR_RIGHT, HORI_RIGHT, HTML_HORI_PARA_REL,
+};
+
+#define VERT_PARA_REL (LB_VERT_FRAME|LB_VERT_PRTAREA)
+
+static FrmMap __FAR_DATA aVParaMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, VERT_PARA_REL,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_BOTTOM, VERT_PARA_REL,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_CENTER, VERT_PARA_REL,
+ STR_FROMTOP, STR_FROMTOP, SVX_VERT_NONE, VERT_PARA_REL,
+};
+
+static FrmMap __FAR_DATA aVParaHtmlMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, LB_VERT_PRTAREA,
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Relativ zum Zeichen verankert
+ --------------------------------------------------------------------*/
+
+#define HORI_CHAR_REL (LB_FRAME|LB_PRTAREA|LB_REL_PG_LEFT|LB_REL_PG_RIGHT| \
+ LB_REL_PG_FRAME|LB_REL_PG_PRTAREA|LB_REL_FRM_LEFT| \
+ LB_REL_FRM_RIGHT|LB_REL_CHAR)
+
+static FrmMap __FAR_DATA aHCharMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, HORI_CHAR_REL,
+ STR_RIGHT, STR_MIR_RIGHT, HORI_RIGHT, HORI_CHAR_REL,
+ STR_CENTER_HORI, STR_CENTER_HORI, HORI_CENTER, HORI_CHAR_REL,
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, HORI_CHAR_REL
+};
+
+#define HTML_HORI_CHAR_REL (LB_FRAME|LB_PRTAREA|LB_REL_CHAR)
+
+static FrmMap __FAR_DATA aHCharHtmlMap[] =
+{
+ STR_LEFT, STR_LEFT, HORI_LEFT, HTML_HORI_CHAR_REL,
+ STR_RIGHT, STR_RIGHT, HORI_RIGHT, HTML_HORI_CHAR_REL,
+};
+
+static FrmMap __FAR_DATA aHCharHtmlAbsMap[] =
+{
+ STR_LEFT, STR_MIR_LEFT, HORI_LEFT, LB_PRTAREA|LB_REL_CHAR,
+ STR_RIGHT, STR_MIR_RIGHT, HORI_RIGHT, LB_PRTAREA,
+ STR_FROMLEFT, STR_MIR_FROMLEFT, HORI_NONE, LB_REL_PG_FRAME
+};
+
+#define VERT_CHAR_REL (LB_VERT_FRAME|LB_VERT_PRTAREA|LB_REL_CHAR)
+
+static FrmMap __FAR_DATA aVCharMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, VERT_CHAR_REL,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_BOTTOM, VERT_CHAR_REL,
+ STR_BELOW, STR_BELOW, SVX_VERT_CHAR_BOTTOM, LB_REL_CHAR,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_CENTER, VERT_CHAR_REL,
+ STR_FROMTOP, STR_FROMTOP, SVX_VERT_NONE, VERT_CHAR_REL,
+};
+
+
+static FrmMap __FAR_DATA aVCharHtmlMap[] =
+{
+ STR_BELOW, STR_BELOW, SVX_VERT_CHAR_BOTTOM, LB_REL_CHAR,
+};
+
+static FrmMap __FAR_DATA aVCharHtmlAbsMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, LB_REL_CHAR,
+ STR_BELOW, STR_BELOW, SVX_VERT_CHAR_BOTTOM, LB_REL_CHAR
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Als Zeichen verankert
+ --------------------------------------------------------------------*/
+
+static FrmMap __FAR_DATA aVAsCharMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, LB_REL_BASE,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_BOTTOM, LB_REL_BASE,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_CENTER, LB_REL_BASE,
+
+ STR_TOP, STR_TOP, SVX_VERT_CHAR_TOP, LB_REL_CHAR,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_CHAR_BOTTOM, LB_REL_CHAR,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_CHAR_CENTER, LB_REL_CHAR,
+
+ STR_TOP, STR_TOP, SVX_VERT_LINE_TOP, LB_REL_ROW,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_LINE_BOTTOM, LB_REL_ROW,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_LINE_CENTER, LB_REL_ROW,
+
+ STR_FROMBOTTOM, STR_FROMBOTTOM, SVX_VERT_NONE, LB_REL_BASE
+};
+
+static FrmMap __FAR_DATA aVAsCharHtmlMap[] =
+{
+ STR_TOP, STR_TOP, SVX_VERT_TOP, LB_REL_BASE,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_CENTER, LB_REL_BASE,
+
+ STR_TOP, STR_TOP, SVX_VERT_CHAR_TOP, LB_REL_CHAR,
+
+ STR_TOP, STR_TOP, SVX_VERT_LINE_TOP, LB_REL_ROW,
+ STR_BOTTOM, STR_BOTTOM, SVX_VERT_LINE_BOTTOM, LB_REL_ROW,
+ STR_CENTER_VERT, STR_CENTER_VERT, SVX_VERT_LINE_CENTER, LB_REL_ROW,
+};
+
+
+static FrmMap* pVMap = 0;
+static FrmMap* pHMap = 0;
+
+static BOOL bProtPos = FALSE;
+static BOOL bProtSize = FALSE;
+static BOOL bProtCntnt = FALSE;
+
+static const USHORT nPathLen = 30;
+
+static USHORT __FAR_DATA aPageRg[] = {
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_VERT_ORIENT, RES_ANCHOR,
+ RES_COL, RES_COL,
+ 0
+};
+static USHORT __FAR_DATA aAddPgRg[] = {
+ RES_PROTECT, RES_PROTECT,
+ RES_PRINT, RES_PRINT,
+ FN_SET_FRM_NAME, FN_SET_FRM_NAME,
+ FN_SET_FRM_ALT_NAME, FN_SET_FRM_ALT_NAME,
+ 0
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT lcl_GetFrmMapCount(FrmMap* pMap)
+{
+ if ( pMap )
+ {
+ int aSizeOf = sizeof(FrmMap);
+ if( pMap == aVParaHtmlMap)
+ return sizeof(aVParaHtmlMap) / aSizeOf;
+ if( pMap == aVAsCharHtmlMap)
+ return sizeof(aVAsCharHtmlMap) / aSizeOf;
+ if( pMap == aHParaHtmlMap)
+ return sizeof(aHParaHtmlMap) / aSizeOf;
+ if( pMap == aHParaHtmlAbsMap)
+ return sizeof(aHParaHtmlAbsMap) / aSizeOf;
+ if ( pMap == aVPageMap )
+ return sizeof(aVPageMap) / aSizeOf;
+ if ( pMap == aVPageHtmlMap )
+ return sizeof(aVPageHtmlMap) / aSizeOf;
+ if ( pMap == aVAsCharMap )
+ return sizeof(aVAsCharMap) / aSizeOf;
+ if ( pMap == aVParaMap )
+ return sizeof(aVParaMap) / aSizeOf;
+ if ( pMap == aHParaMap )
+ return sizeof(aHParaMap) / aSizeOf;
+ if ( pMap == aHFrameMap )
+ return sizeof(aHFrameMap) / aSizeOf;
+ if ( pMap == aHCharMap )
+ return sizeof(aHCharMap) / aSizeOf;
+ if ( pMap == aHCharHtmlMap )
+ return sizeof(aHCharHtmlMap) / aSizeOf;
+ if ( pMap == aHCharHtmlAbsMap )
+ return sizeof(aHCharHtmlAbsMap) / aSizeOf;
+ if ( pMap == aVCharMap )
+ return sizeof(aVCharMap) / aSizeOf;
+ if ( pMap == aVCharHtmlMap )
+ return sizeof(aVCharHtmlMap) / aSizeOf;
+ if ( pMap == aVCharHtmlAbsMap )
+ return sizeof(aVCharHtmlAbsMap) / aSizeOf;
+ if ( pMap == aHPageHtmlMap )
+ return sizeof(aHPageHtmlMap) / aSizeOf;
+ if ( pMap == aHFlyHtmlMap )
+ return sizeof(aHFlyHtmlMap) / aSizeOf;
+ if ( pMap == aVFlyHtmlMap )
+ return sizeof(aVFlyHtmlMap) / aSizeOf;
+ return sizeof(aHPageMap) / aSizeOf;
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long lcl_GetTwipValue(MetricField& rMetric)
+{
+ return rMetric.Denormalize(rMetric.GetValue(FUNIT_TWIP));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void lcl_SetTwipValue(MetricField& rMetric, long nValue)
+{
+ rMetric.SetValue(rMetric.Normalize(nValue),FUNIT_TWIP);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: StandardRahmenTabPage
+ --------------------------------------------------------------------*/
+
+SwFrmPage::SwFrmPage ( Window *pParent, const SfxItemSet &rSet ) :
+ SfxTabPage (pParent, SW_RES(TP_FRM_STD), rSet),
+ aWidthFT (this, SW_RES(FT_WIDTH)),
+ aWidthED (this, SW_RES(ED_WIDTH)),
+ aRelWidthCB (this, SW_RES(CB_REL_WIDTH)),
+ aHeightFT (this, SW_RES(FT_HEIGHT)),
+ aHeightED (this, SW_RES(ED_HEIGHT)),
+ aRelHeightCB (this, SW_RES(CB_REL_HEIGHT)),
+ aAutoHeightCB (this, SW_RES(CB_AUTOHEIGHT)),
+ aFixedRatioCB (this, SW_RES(CB_FIXEDRATIO)),
+ aSizeGB (this, SW_RES(GB_SIZE)),
+
+ aAnchorTypeRB (this, SW_RES(RB_ANCHOR_TYPE)),
+ aAnchorAsCharRB (this, SW_RES(RB_ANCHOR_CHAR)),
+ aAnchorTypeLB (this, SW_RES(LB_ANCHOR_TYPE)),
+ aTypeGB (this, SW_RES(GB_TYPE)),
+
+ aHorizontalFT (this, SW_RES(FT_HORIZONTAL)),
+ aHorizontalDLB (this, SW_RES(DLB_HORIZONTAL)),
+ aAtHorzPosFT (this, SW_RES(FT_AT_HORZ_POS)),
+ aAtHorzPosED (this, SW_RES(ED_AT_HORZ_POS)),
+ aHoriRelationFT (this, SW_RES(FT_HORI_RELATION)),
+ aHoriRelationLB (this, SW_RES(LB_HORI_RELATION)),
+ aMirrorPagesCB (this, SW_RES(CB_MIRROR)),
+ aVerticalFT (this, SW_RES(FT_VERTICAL)),
+ aVerticalDLB (this, SW_RES(DLB_VERTICAL)),
+ aAtVertPosFT (this, SW_RES(FT_AT_VERT_POS)),
+ aAtVertPosED (this, SW_RES(ED_AT_VERT_POS)),
+ aVertRelationFT (this, SW_RES(FT_VERT_RELATION)),
+ aVertRelationLB (this, SW_RES(LB_VERT_RELATION)),
+ aPositionGB (this, SW_RES(GB_POSITION)),
+ aRealSizeBT (this, SW_RES(BT_REALSIZE)),
+ aExampleWN (this, SW_RES(WN_BSP)),
+ bFormat(FALSE),
+ bNew(TRUE),
+ nDlgType(0),
+ nUpperBorder(0),
+ nLowerBorder(0),
+ nOldH(HORI_CENTER),
+ nOldHRel(0),
+ nOldV(SVX_VERT_TOP),
+ nOldVRel(PRTAREA),
+ bAtHorzPosModified( FALSE ),
+ bAtVertPosModified( FALSE ),
+ bWidthLastChanged ( TRUE ),
+ nHtmlMode(0),
+ bHtmlMode(FALSE),
+ bNoModifyHdl(TRUE)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ Link aLk = LINK(this, SwFrmPage, RangeModifyHdl);
+ aWidthED. SetLoseFocusHdl( aLk );
+ aHeightED. SetLoseFocusHdl( aLk );
+ aAtHorzPosED.SetLoseFocusHdl( aLk );
+ aAtVertPosED.SetLoseFocusHdl( aLk );
+
+ aLk = LINK(this, SwFrmPage, ModifyHdl);
+ aWidthED. SetModifyHdl( aLk );
+ aHeightED. SetModifyHdl( aLk );
+ aAtHorzPosED.SetModifyHdl( aLk );
+ aAtVertPosED.SetModifyHdl( aLk );
+
+ aLk = LINK(this, SwFrmPage, TypHdl);
+ aAnchorTypeRB.SetClickHdl( aLk );
+ aAnchorAsCharRB.SetClickHdl( aLk );
+ aAnchorTypeLB.SetSelectHdl( aLk );
+ aAnchorTypeLB.SelectEntryPos(0);
+ aAnchorTypeLB.SetEntryData(0, (void*)FLY_PAGE);
+ aAnchorTypeLB.SetEntryData(1, (void*)FLY_AT_CNTNT);
+ aAnchorTypeLB.SetEntryData(2, (void*)FLY_AUTO_CNTNT);
+ aAnchorTypeLB.SetEntryData(3, (void*)FLY_AT_FLY);
+
+ aHorizontalDLB.SetSelectHdl(LINK(this, SwFrmPage, PosHdl));
+ aVerticalDLB. SetSelectHdl(LINK(this, SwFrmPage, PosHdl));
+
+ aHoriRelationLB.SetSelectHdl(LINK(this, SwFrmPage, RelHdl));
+ aVertRelationLB.SetSelectHdl(LINK(this, SwFrmPage, RelHdl));
+
+ aMirrorPagesCB.SetClickHdl(LINK(this, SwFrmPage, MirrorHdl));
+
+ aLk = LINK(this, SwFrmPage, RelSizeClickHdl);
+ aRelWidthCB.SetClickHdl( aLk );
+ aRelHeightCB.SetClickHdl( aLk );
+
+ aFixedRatioCB.SetClickHdl(LINK(this, SwFrmPage, AspectRatioCheckHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Dtor
+ --------------------------------------------------------------------*/
+
+SwFrmPage::~SwFrmPage()
+{
+}
+
+SfxTabPage* SwFrmPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwFrmPage( pParent, rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFrmPage::Reset( const SfxItemSet &rSet )
+{
+
+ SwWrtShell* pSh = bFormat ? ::GetActiveWrtShell() :
+ ((SwFrmDlg*)GetParent()->GetParent())->GetWrtShell();
+
+ nHtmlMode = ::GetHtmlMode(pSh->GetView().GetDocShell());
+ bHtmlMode = nHtmlMode & HTMLMODE_ON ? TRUE : FALSE;
+
+ FieldUnit aMetric = ::GetDfltMetric(bHtmlMode);
+ SetMetric( aWidthED, aMetric );
+ SetMetric( aHeightED, aMetric );
+ SetMetric( aAtHorzPosED, aMetric );
+ SetMetric( aAtVertPosED, aMetric );
+
+
+ const SwFmtAnchor& rAnchor = (const SwFmtAnchor&)rSet.Get(RES_ANCHOR);
+
+ if (bFormat)
+ {
+ // Bei Formaten keine Ankerbearbeitung
+ aAnchorTypeRB.Enable( FALSE );
+ aAnchorTypeLB.Enable( FALSE );
+ aAnchorAsCharRB.Enable( FALSE );
+ aTypeGB.Enable( FALSE );
+ aFixedRatioCB.Enable(FALSE);
+ }
+ else if (rAnchor.GetAnchorId() != FLY_AT_FLY && !pSh->IsFlyInFly())
+ aAnchorTypeLB.RemoveEntry(3);
+
+ if ( nDlgType == DLG_FRM_GRF || nDlgType == DLG_FRM_OLE )
+ {
+ ASSERT(pSh , "shell not found");
+ const SfxPoolItem* pItem;
+ //OS: nur fuer die Variante Einfuegen/Grafik/Eigenschaften
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_GRF_REALSIZE, FALSE, &pItem))
+ aGrfSize = ((const SvxSizeItem*)pItem)->GetSize();
+ else
+ pSh->GetGrfSize( aGrfSize );
+
+ if ( !bNew )
+ {
+ aRealSizeBT.Show();
+ aRealSizeBT.SetClickHdl(LINK(this, SwFrmPage, RealSizeHdl));
+ }
+ else
+ aTypeGB.SetSizePixel(Size(aTypeGB.GetSizePixel().Width(), aSizeGB.GetSizePixel().Height()));
+
+ if ( nDlgType == DLG_FRM_GRF )
+ aFixedRatioCB.Check( FALSE );
+ else
+ {
+ if ( bNew )
+ SetText( SW_RESSTR(STR_OLE_INSERT));
+ else
+ SetText( SW_RESSTR(STR_OLE_EDIT));
+ }
+ }
+ else
+ {
+ aTypeGB.SetSizePixel(Size(aTypeGB.GetSizePixel().Width(), aSizeGB.GetSizePixel().Height()));
+ aGrfSize = ((const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE)).GetSize();
+ }
+
+ //Prozenteingabe ermoeglichen.
+ aWidthED. SetBaseValue( aWidthED.Normalize(aGrfSize.Width()), FUNIT_TWIP );
+ aHeightED.SetBaseValue( aHeightED.Normalize(aGrfSize.Height()), FUNIT_TWIP );
+
+ // Allgemeiner Initialisierungteil
+ USHORT nPos = 0;
+ if (rAnchor.GetAnchorId() == FLY_IN_CNTNT)
+ aAnchorAsCharRB.Check();
+ else
+ {
+ aAnchorTypeRB.Check();
+
+ while ((USHORT)(ULONG)aAnchorTypeLB.GetEntryData(nPos) != rAnchor.GetAnchorId())
+ nPos++;
+ aAnchorTypeLB.SelectEntryPos(nPos);
+ }
+
+ if(bHtmlMode)
+ {
+ if(nDlgType == DLG_FRM_STD &&
+ 0 == (nHtmlMode & HTMLMODE_FULL_ABS_POS))
+ {
+ aHeightFT .Enable( FALSE );
+ aHeightED .Enable( FALSE );
+ aRelHeightCB.Enable( FALSE );
+ }
+ if( 0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS))
+ {
+ if (GetAnchor() == FLY_PAGE )
+ {
+ nPos = 0;
+ while ((USHORT)(ULONG)aAnchorTypeLB.GetEntryData(nPos) != FLY_AT_CNTNT)
+ nPos++;
+ aAnchorTypeLB.SelectEntryPos(nPos);
+ }
+ aAnchorTypeLB.RemoveEntry(0);
+ }
+ aAutoHeightCB.Enable(FALSE);
+ aMirrorPagesCB.Show(FALSE);
+ if(nDlgType == DLG_FRM_STD)
+ aFixedRatioCB.Enable(FALSE);
+ }
+
+ Init( rSet, TRUE );
+ aAtVertPosED.SaveValue();
+ aAtHorzPosED.SaveValue();
+
+ bNoModifyHdl = FALSE;
+ RangeModifyHdl(&aWidthED); // Alle Maximalwerte initial setzen
+
+ aAutoHeightCB.SaveValue();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Attribute in den Set stopfen bei OK
+ --------------------------------------------------------------------*/
+
+BOOL SwFrmPage::FillItemSet(SfxItemSet &rSet)
+{
+ BOOL bRet = FALSE;
+ SwWrtShell* pSh = bFormat ? ::GetActiveWrtShell()
+ : ((SwFrmDlg*)GetParent()->GetParent())->GetWrtShell();
+ ASSERT( pSh , "shell not found");
+ const SfxItemSet& rOldSet = GetItemSet();
+ const SfxPoolItem* pOldItem = 0;
+
+ RndStdIds eAnchorId = (RndStdIds)GetAnchor();
+
+ if ( !bFormat )
+ {
+ pOldItem = GetOldItem(rSet, RES_ANCHOR);
+ if (bNew || !pOldItem || eAnchorId != ((const SwFmtAnchor*)pOldItem)->GetAnchorId())
+ {
+ SwFmtAnchor aAnc( eAnchorId, pSh->GetPhyPageNum() );
+ bRet = 0 != rSet.Put( aAnc );
+ }
+ }
+
+ if ( pHMap )
+ {
+ SwFmtHoriOrient aHoriOrient( (const SwFmtHoriOrient&)
+ rOldSet.Get(RES_HORI_ORIENT) );
+
+ USHORT nMapPos = GetMapPos(pHMap, aHorizontalDLB);
+ USHORT nAlign = GetAlignment(pHMap, nMapPos, aHorizontalDLB, aHoriRelationLB);
+ USHORT nRel = GetRelation(pHMap, aHoriRelationLB);
+
+ const SwHoriOrient eHOri = (SwHoriOrient)nAlign;
+ const SwRelationOrient eRel = (SwRelationOrient)nRel;
+
+ aHoriOrient.SetHoriOrient( eHOri );
+ aHoriOrient.SetRelationOrient( eRel );
+ aHoriOrient.SetPosToggle(aMirrorPagesCB.IsChecked());
+
+ BOOL bMod = aAtHorzPosED.GetText() != aAtHorzPosED.GetSavedValue();
+ bMod |= aMirrorPagesCB.GetState() != aMirrorPagesCB.GetSavedValue();
+
+ if ( eHOri == HORI_NONE &&
+ (bNew || (bAtHorzPosModified || bMod) || nOldH != eHOri ) )
+ {
+ SwTwips nX = aAtHorzPosED.Denormalize(aAtHorzPosED.GetValue(FUNIT_TWIP));
+ aHoriOrient.SetPos( nX );
+ }
+
+ pOldItem = GetOldItem(rSet, FN_HORI_ORIENT);
+ BOOL bSame = FALSE;
+ if ((bNew == bFormat) && pOldItem)
+ {
+ bSame = bFormat ?
+ aHoriOrient.GetHoriOrient() == ((SwFmtHoriOrient*)pOldItem)->GetHoriOrient() &&
+ aHoriOrient.GetRelationOrient() == ((SwFmtHoriOrient*)pOldItem)->GetRelationOrient() &&
+ aHoriOrient.GetPos() == ((SwFmtHoriOrient*)pOldItem)->GetPos()
+
+ : aHoriOrient == (SwFmtHoriOrient&)*pOldItem;
+ }
+ if ((bNew && !bFormat) || ((bAtHorzPosModified || bMod) && !bSame))
+ {
+ bRet |= 0 != rSet.Put( aHoriOrient );
+ }
+ }
+
+ if ( pVMap )
+ {
+ // Ausrichtung Vertikal
+ SwFmtVertOrient aVertOrient( (const SwFmtVertOrient&)
+ rOldSet.Get(RES_VERT_ORIENT) );
+
+ USHORT nMapPos = GetMapPos(pVMap, aVerticalDLB);
+ USHORT nAlign = GetAlignment(pVMap, nMapPos, aVerticalDLB, aVertRelationLB);
+ USHORT nRel = GetRelation(pVMap, aVertRelationLB);
+
+ const SvxFrameVertOrient eVOri = (SvxFrameVertOrient)nAlign;
+ const SwRelationOrient eRel = (SwRelationOrient)nRel;
+
+ aVertOrient.SetVertOrient ( (SwVertOrient)eVOri);
+ aVertOrient.SetRelationOrient( eRel );
+
+ BOOL bMod = aAtVertPosED.GetText() != aAtVertPosED.GetSavedValue();
+
+ if ( eVOri == SVX_VERT_NONE &&
+ ( bNew || (bAtVertPosModified || bMod) || nOldV != eVOri) )
+ {
+ // Vertikale Position
+ // fuer zeichengebundene Rahmen Offset umrechenen
+ SwTwips nY = aAtVertPosED.Denormalize(aAtVertPosED.GetValue(FUNIT_TWIP));
+ if (eAnchorId == FLY_IN_CNTNT)
+ nY *= -1;
+ aVertOrient.SetPos( nY );
+ }
+ pOldItem = GetOldItem(rSet, FN_VERT_ORIENT);
+ BOOL bSame = FALSE;
+ if((bNew == bFormat) && pOldItem)
+ {
+ bSame = bFormat ?
+ aVertOrient.GetVertOrient() == ((SwFmtVertOrient*)pOldItem)->GetVertOrient() &&
+ aVertOrient.GetRelationOrient() == ((SwFmtVertOrient*)pOldItem)->GetRelationOrient() &&
+ aVertOrient.GetPos() == ((SwFmtVertOrient*)pOldItem)->GetPos()
+
+ : aVertOrient == (SwFmtVertOrient&)*pOldItem;
+ }
+ if( ( bNew && !bFormat ) || ((bAtVertPosModified || bMod) && !bSame ))
+ {
+ bRet |= 0 != rSet.Put( aVertOrient );
+ }
+ }
+
+ //Size setzen
+ //Neuer Sonderfall: Ist die Groesse von pMgr(0, 0), so werden die
+ //Eigenschaften fuer eine Grafik festgelegt, die noch gar nicht geladen
+ //ist. Dann wird hier kein SetSize() gemacht, wenn die
+ //Groesseneinstellungen vom Anwender nicht veraendert wurden.
+ const SwFmtFrmSize& rOldSize = (const SwFmtFrmSize& )rOldSet.Get(RES_FRM_SIZE);
+ SwFmtFrmSize aSz( rOldSize );
+
+/* // Folgende Zeilen nur zum debuggen:
+ BOOL bModified = aWidthED.IsValueModified();
+ USHORT nOldWidth = rOldSize.GetWidth ();
+ USHORT nWidth = aWidthED .GetValue();
+ USHORT nMinWidth = aWidthED .GetMin();*/
+
+ BOOL bValueModified = (aWidthED.IsValueModified() || aHeightED.IsValueModified());
+ BOOL bCheckChanged = (aRelWidthCB.GetSavedValue() != aRelWidthCB.IsChecked()
+ || aRelHeightCB.GetSavedValue() != aRelHeightCB.IsChecked());
+
+ BOOL bLegalValue = !(!rOldSize.GetWidth () && !rOldSize.GetHeight() &&
+ aWidthED .GetValue() == aWidthED .GetMin() &&
+ aHeightED.GetValue() == aHeightED.GetMin());
+
+ if ((bNew && !bFormat) || (bValueModified || bCheckChanged) && bLegalValue)
+ {
+ long nNewWidth = aWidthED.Denormalize (aWidthED.GetRealValue(FUNIT_TWIP));
+ long nNewHeight = aHeightED.Denormalize(aHeightED.GetRealValue(FUNIT_TWIP));
+ aSz.SetWidth (nNewWidth);
+ aSz.SetHeight(nNewHeight);
+
+ if (aRelWidthCB.IsChecked())
+ {
+ aSz.SetWidthPercent((BYTE)Min(100L, aWidthED.Convert(aWidthED.Normalize(nNewWidth), FUNIT_TWIP, FUNIT_CUSTOM)));
+ }
+ else
+ aSz.SetWidthPercent(0);
+ if (aRelHeightCB.IsChecked())
+ aSz.SetHeightPercent((BYTE)Min(100L, aHeightED.Convert(aHeightED.Normalize(nNewHeight), FUNIT_TWIP, FUNIT_CUSTOM)));
+ else
+ aSz.SetHeightPercent(0);
+
+ if (aFixedRatioCB.IsChecked() && (aRelWidthCB.IsChecked() ^ aRelHeightCB.IsChecked()))
+ {
+ if (aRelWidthCB.IsChecked())
+ aSz.SetHeightPercent(0xff);
+ else
+ aSz.SetWidthPercent(0xff);
+ }
+ }
+ if ( nDlgType != DLG_FRM_GRF )
+ {
+ if (aAutoHeightCB.GetState() != aAutoHeightCB.GetSavedValue())
+ {
+ SwFrmSize eFrmSize = (SwFrmSize) aAutoHeightCB.IsChecked() ?
+ ATT_MIN_SIZE : ATT_FIX_SIZE;
+ if(eFrmSize != aSz.GetSizeType())
+ {
+ aSz.SetSizeType(eFrmSize);
+ }
+ }
+ }
+ if( !bFormat && aFixedRatioCB.GetSavedValue() != aFixedRatioCB.IsChecked())
+ bRet |= 0 != rSet.Put(SfxBoolItem(FN_KEEP_ASPECT_RATIO, aFixedRatioCB.IsChecked()));
+
+ pOldItem = GetOldItem(rSet, RES_FRM_SIZE);
+
+ if ((pOldItem && aSz != *pOldItem) || (!pOldItem && !bFormat) ||
+ (bFormat &&
+ (aSz.GetWidth() > 0 || aSz.GetWidthPercent() > 0) &&
+ (aSz.GetHeight() > 0 || aSz.GetHeightPercent() > 0)))
+ {
+ if (aSz.GetSizeType() == ATT_VAR_SIZE) // VAR_SIZE gibts nicht bei Rahmen
+ aSz.SetSizeType(ATT_MIN_SIZE); // Bug #45776 (Vorlagen ohne Breite/Hoehe)
+
+ bRet |= 0 != rSet.Put( aSz );
+ }
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Horizontale und vertikale Pos initialisieren
+ --------------------------------------------------------------------*/
+
+void SwFrmPage::InitPos(USHORT nId,
+ USHORT nH,
+ USHORT nHRel,
+ USHORT nV,
+ USHORT nVRel,
+ long nX,
+ long nY)
+{
+ USHORT nPos = aVerticalDLB.GetSelectEntryPos();
+ if ( nPos != LISTBOX_ENTRY_NOTFOUND && pVMap )
+ {
+ nOldV = pVMap[nPos].nAlign;
+
+ nPos = aVertRelationLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ nOldVRel = ((RelationMap *)aVertRelationLB.GetEntryData(nPos))->nRelation;
+ }
+
+ nPos = aHorizontalDLB.GetSelectEntryPos();
+ if ( nPos != LISTBOX_ENTRY_NOTFOUND && pHMap )
+ {
+ nOldH = pHMap[nPos].nAlign;
+
+ nPos = aHoriRelationLB.GetSelectEntryPos();
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ nOldHRel = ((RelationMap *)aHoriRelationLB.GetEntryData(nPos))->nRelation;
+ }
+
+ BOOL bEnable = TRUE;
+ if ( nId == FLY_PAGE )
+ {
+ pVMap = bHtmlMode ? aVPageHtmlMap : aVPageMap;
+ pHMap = bHtmlMode ? aHPageHtmlMap : aHPageMap;
+ }
+ else if ( nId == FLY_AT_FLY )
+ {
+ pVMap = bHtmlMode ? aVFlyHtmlMap : aVParaMap;
+ pHMap = bHtmlMode ? aHFlyHtmlMap : aHFrameMap;
+ }
+ else if ( nId == FLY_AT_CNTNT )
+ {
+ if(bHtmlMode)
+ {
+ pVMap = aVParaHtmlMap;
+ pHMap = nHtmlMode & HTMLMODE_SOME_ABS_POS ? aHParaHtmlAbsMap : aHParaHtmlMap;
+ }
+ else
+ {
+ pVMap = aVParaMap;
+ pHMap = aHParaMap;
+ }
+ }
+ else if ( nId == FLY_AUTO_CNTNT )
+ {
+ if(bHtmlMode)
+ {
+ pVMap = nHtmlMode & HTMLMODE_SOME_ABS_POS ? aVCharHtmlAbsMap : aVCharHtmlMap;
+ pHMap = nHtmlMode & HTMLMODE_SOME_ABS_POS ? aHCharHtmlAbsMap : aHCharHtmlMap;
+ }
+ else
+ {
+ pVMap = aVCharMap;
+ pHMap = aHCharMap;
+ }
+ }
+ else if ( nId == FLY_IN_CNTNT )
+ {
+ pVMap = bHtmlMode ? aVAsCharHtmlMap : aVAsCharMap;
+ pHMap = 0;
+ bEnable = FALSE;
+ }
+ aHorizontalDLB.Enable( bEnable );
+ aHorizontalFT.Enable( bEnable );
+
+ // aktuelle Pos selektieren
+ // Horizontal
+ if ( nH == USHRT_MAX )
+ {
+ nH = nOldH;
+ nHRel = nOldHRel;
+ }
+ USHORT nMapPos = FillPosLB(pHMap, nH, aHorizontalDLB);
+ FillRelLB(pHMap, nMapPos, nH, nHRel, aHoriRelationLB);
+
+ // Vertikal
+ if ( nV == USHRT_MAX )
+ {
+ nV = nOldV;
+ nVRel = nOldVRel;
+ }
+ nMapPos = FillPosLB(pVMap, nV, aVerticalDLB);
+ FillRelLB(pVMap, nMapPos, nV, nVRel, aVertRelationLB);
+
+ // Edits init
+ bEnable = nH == HORI_NONE && nId != FLY_IN_CNTNT;//#61359# warum nicht in Formaten&& !bFormat;
+ if (!bEnable)
+ {
+ aAtHorzPosED.SetValue( 0, FUNIT_TWIP );
+ if (nX != LONG_MAX && bHtmlMode)
+ aAtHorzPosED.SetModifyFlag();
+ }
+ else
+ {
+ if (nX != LONG_MAX)
+ aAtHorzPosED.SetValue( aAtHorzPosED.Normalize(nX), FUNIT_TWIP );
+ }
+ aAtHorzPosFT.Enable( bEnable );
+ aAtHorzPosED.Enable( bEnable );
+
+ bEnable = nV == SVX_VERT_NONE && !bFormat;
+ if ( !bEnable )
+ {
+ aAtVertPosED.SetValue( 0, FUNIT_TWIP );
+ if(nY != LONG_MAX && bHtmlMode)
+ aAtVertPosED.SetModifyFlag();
+ }
+ else
+ {
+ if ( nId == FLY_IN_CNTNT )
+ {
+ if ( nY == LONG_MAX )
+ nY = 0;
+ else
+ nY *= -1;
+ }
+ if ( nY != LONG_MAX )
+ aAtVertPosED.SetValue( aAtVertPosED.Normalize(nY), FUNIT_TWIP );
+ }
+ aAtVertPosFT.Enable( bEnable );
+ aAtVertPosED.Enable( bEnable );
+ UpdateExample();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFrmPage::FillPosLB(FrmMap *pMap, USHORT nAlign, ListBox &rLB)
+{
+ String sSelEntry, sOldEntry;
+ sOldEntry = rLB.GetSelectEntry();
+
+ rLB.Clear();
+
+ // Listbox fuellen
+ USHORT nCount = ::lcl_GetFrmMapCount(pMap);
+ for (USHORT i = 0; pMap && i < nCount; ++i)
+ {
+// #61359# Warum nicht von links/von innen bzw. von oben?
+// if (!bFormat || (pMap[i].nStrId != STR_FROMLEFT && pMap[i].nStrId != STR_FROMTOP))
+ {
+ USHORT nResId = aMirrorPagesCB.IsChecked() ? pMap[i].nMirrorStrId : pMap[i].nStrId;
+ String sEntry(SW_RES(nResId));
+ sEntry.EraseAllChars( '~' );
+ if (rLB.GetEntryPos(sEntry) == LISTBOX_ENTRY_NOTFOUND)
+ // bei zeichengebundenen Rahmen keine doppelten Eintraege einfuegen
+ rLB.InsertEntry(sEntry);
+ if (nAlign == pMap[i].nAlign)
+ sSelEntry = sEntry;
+ }
+ }
+
+ rLB.SelectEntry(sSelEntry);
+ if (!rLB.GetSelectEntryCount())
+ rLB.SelectEntry(sOldEntry);
+
+ if (!rLB.GetSelectEntryCount())
+ rLB.SelectEntryPos(0);
+
+ PosHdl(&rLB);
+
+ return GetMapPos(pMap, rLB);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ULONG SwFrmPage::FillRelLB(FrmMap *pMap, USHORT nMapPos, USHORT nAlign, USHORT nRel, ListBox &rLB)
+{
+ String sSelEntry;
+ ULONG nLBRelations = 0;
+ USHORT nMapCount = ::lcl_GetFrmMapCount(pMap);
+
+ rLB.Clear();
+
+ if (nMapPos < nMapCount)
+ {
+ if (pMap == aVAsCharHtmlMap || pMap == aVAsCharMap)
+ {
+ String sOldEntry(rLB.GetSelectEntry());
+ USHORT nRelCount = sizeof(aAsCharRelationMap) / sizeof(RelationMap);
+ USHORT nStrId = pMap[nMapPos].nStrId;
+
+ for (USHORT nMapPos = 0; nMapPos < nMapCount; nMapPos++)
+ {
+ if (pMap[nMapPos].nStrId == nStrId)
+ {
+ nLBRelations = pMap[nMapPos].nLBRelations;
+ for (USHORT nRelPos = 0; nRelPos < nRelCount; nRelPos++)
+ {
+ if (nLBRelations & aAsCharRelationMap[nRelPos].nLBRelation)
+ {
+ USHORT nResId = aAsCharRelationMap[nRelPos].nStrId;
+
+ String sEntry(SW_RES(nResId));
+ USHORT nPos = rLB.InsertEntry(sEntry);
+ rLB.SetEntryData(nPos, &aAsCharRelationMap[nRelPos]);
+ if (pMap[nMapPos].nAlign == nAlign)
+ sSelEntry = sEntry;
+ break;
+ }
+ }
+ }
+ }
+ if (sSelEntry.Len())
+ rLB.SelectEntry(sSelEntry);
+ else
+ {
+ rLB.SelectEntry(sOldEntry);
+
+ if (!rLB.GetSelectEntryCount())
+ {
+ for (USHORT i = 0; i < rLB.GetEntryCount(); i++)
+ {
+ RelationMap *pEntry = (RelationMap *)rLB.GetEntryData(i);
+ if (pEntry->nLBRelation == LB_REL_CHAR) // Default
+ {
+ rLB.SelectEntryPos(i);
+ break;
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ USHORT nRelCount = sizeof(aRelationMap) / sizeof(RelationMap);
+
+ nLBRelations = pMap[nMapPos].nLBRelations;
+
+ for (ULONG nBit = 1; nBit < 0x80000000; nBit <<= 1)
+ {
+ if (nLBRelations & nBit)
+ {
+ for (USHORT nRelPos = 0; nRelPos < nRelCount; nRelPos++)
+ {
+ if (aRelationMap[nRelPos].nLBRelation == nBit)
+ {
+ USHORT nResId = aMirrorPagesCB.IsChecked() ? aRelationMap[nRelPos].nMirrorStrId : aRelationMap[nRelPos].nStrId;
+ String sEntry(SW_RES(nResId));
+ USHORT nPos = rLB.InsertEntry(sEntry);
+ rLB.SetEntryData(nPos, &aRelationMap[nRelPos]);
+ if (!sSelEntry.Len() && aRelationMap[nRelPos].nRelation == nRel)
+ sSelEntry = sEntry;
+ }
+ }
+ }
+ }
+ if (sSelEntry.Len())
+ rLB.SelectEntry(sSelEntry);
+ else
+ {
+ // Warscheinlich Ankerwechsel. Daher aehnliche Relation suchen
+ switch (nRel)
+ {
+ case FRAME: nRel = REL_PG_FRAME; break;
+ case PRTAREA: nRel = REL_PG_PRTAREA; break;
+ case REL_PG_LEFT: nRel = REL_FRM_LEFT; break;
+ case REL_PG_RIGHT: nRel = REL_FRM_RIGHT; break;
+ case REL_FRM_LEFT: nRel = REL_PG_LEFT; break;
+ case REL_FRM_RIGHT: nRel = REL_PG_RIGHT; break;
+ case REL_PG_FRAME: nRel = FRAME; break;
+ case REL_PG_PRTAREA: nRel = PRTAREA; break;
+
+ default:
+ if (rLB.GetEntryCount())
+ {
+ RelationMap *pEntry = (RelationMap *)rLB.GetEntryData(rLB.GetEntryCount() - 1);
+ nRel = pEntry->nRelation;
+ }
+ break;
+ }
+
+ for (USHORT i = 0; i < rLB.GetEntryCount(); i++)
+ {
+ RelationMap *pEntry = (RelationMap *)rLB.GetEntryData(i);
+ if (pEntry->nRelation == nRel)
+ {
+ rLB.SelectEntryPos(i);
+ break;
+ }
+ }
+
+ if (!rLB.GetSelectEntryCount())
+ rLB.SelectEntryPos(0);
+ }
+ }
+ }
+
+ rLB.Enable(rLB.GetEntryCount() != 0);
+
+ RelHdl(&rLB);
+
+ return nLBRelations;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFrmPage::GetRelation(FrmMap *pMap, ListBox &rRelationLB)
+{
+ USHORT nRel = 0;
+ USHORT nPos = rRelationLB.GetSelectEntryPos();
+
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ RelationMap *pEntry = (RelationMap *)rRelationLB.GetEntryData(nPos);
+ nRel = pEntry->nRelation;
+ }
+
+ return nRel;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFrmPage::GetAlignment(FrmMap *pMap, USHORT nMapPos, ListBox &rAlignLB, ListBox &rRelationLB)
+{
+ USHORT nAlign = 0;
+
+ if (pMap == aVAsCharHtmlMap || pMap == aVAsCharMap)
+ {
+ if (rRelationLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND)
+ {
+ ULONG nRel = ((RelationMap *)rRelationLB.GetEntryData(rRelationLB.GetSelectEntryPos()))->nLBRelation;
+ USHORT nMapCount = ::lcl_GetFrmMapCount(pMap);
+ USHORT nStrId = pMap[nMapPos].nStrId;
+
+ for (USHORT i = 0; i < nMapCount; i++)
+ {
+ if (pMap[i].nStrId == nStrId)
+ {
+ ULONG nLBRelations = pMap[i].nLBRelations;
+ if (nLBRelations & nRel)
+ {
+ nAlign = pMap[i].nAlign;
+ break;
+ }
+ }
+ }
+ }
+ }
+ else if (pMap)
+ nAlign = pMap[nMapPos].nAlign;
+
+ return nAlign;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFrmPage::GetMapPos(FrmMap *pMap, ListBox &rAlignLB)
+{
+ USHORT nMapPos = 0;
+ USHORT nLBSelPos = rAlignLB.GetSelectEntryPos();
+
+ if (nLBSelPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ if (pMap == aVAsCharHtmlMap || pMap == aVAsCharMap)
+ {
+ USHORT nMapCount = ::lcl_GetFrmMapCount(pMap);
+ String sSelEntry(rAlignLB.GetSelectEntry());
+
+ for (USHORT i = 0; i < nMapCount; i++)
+ {
+ USHORT nResId = pMap[i].nStrId;
+
+ String sEntry(SW_RES(nResId));
+ sEntry.EraseAllChars( '~' );
+
+ if (sEntry == sSelEntry)
+ {
+ nMapPos = i;
+ break;
+ }
+ }
+ }
+ else
+ nMapPos = nLBSelPos;
+ }
+
+ return nMapPos;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwFrmPage::GetAnchor()
+{
+ if (aAnchorTypeRB.IsChecked())
+ return (USHORT)(ULONG)aAnchorTypeLB.GetEntryData(aAnchorTypeLB.GetSelectEntryPos());
+ else
+ return FLY_IN_CNTNT;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bsp - Update
+ --------------------------------------------------------------------*/
+
+void SwFrmPage::ActivatePage(const SfxItemSet& rSet)
+{
+ bNoModifyHdl = TRUE;
+ Init(rSet);
+ bNoModifyHdl = FALSE;
+ RangeModifyHdl(&aWidthED); // Alle Maximalwerte initial setzen
+}
+
+int SwFrmPage::DeactivatePage(SfxItemSet * pSet)
+{
+ if ( pSet )
+ {
+ FillItemSet( *pSet );
+
+ //FillItemSet setzt den Anker nicht in den Set, wenn er mit dem
+ //Original uebereinstimmt. Fuer die anderen Pages brauchen wir aber
+ //den aktuellen Anker.
+ SwWrtShell* pSh = bFormat ? ::GetActiveWrtShell()
+ : ((SwFrmDlg*)GetParent()->GetParent())->GetWrtShell();
+ RndStdIds eAnchorId = (RndStdIds)GetAnchor();
+ SwFmtAnchor aAnc( eAnchorId, pSh->GetPhyPageNum() );
+ pSet->Put( aAnc );
+ }
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Links/rechts mit Innen/aussen tauschen
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFrmPage, MirrorHdl, CheckBox *, pBtn )
+{
+ USHORT nId = GetAnchor();
+ InitPos( nId, USHRT_MAX, 0, USHRT_MAX, 0, LONG_MAX, LONG_MAX);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFrmPage, RelSizeClickHdl, CheckBox *, pBtn )
+{
+ if (pBtn == &aRelWidthCB)
+ aWidthED.ShowPercent(pBtn->IsChecked());
+ else
+ aHeightED.ShowPercent(pBtn->IsChecked());
+
+ if (pBtn) // Nur wenn Handler durch Aenderung des Controllers gerufen wurde
+ RangeModifyHdl(&aWidthED); // Werte wieder korrigieren
+
+ if (pBtn == &aRelWidthCB)
+ ModifyHdl(&aWidthED);
+ else
+ ModifyHdl(&aHeightED);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bereichspruefung
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFrmPage, RangeModifyHdl, Edit *, pEdit )
+{
+ if (bNoModifyHdl)
+ return 0;
+
+ SwWrtShell* pSh = bFormat ? ::GetActiveWrtShell()
+ :((SwFrmDlg*)GetParent()->GetParent())->GetWrtShell();
+ ASSERT(pSh , "shell not found");
+ SwFlyFrmAttrMgr aMgr( bNew, pSh, (const SwAttrSet&)GetItemSet() );
+ SwFrmValid aVal;
+
+ aVal.eArea = (RndStdIds)GetAnchor();
+ aVal.bAuto = aAutoHeightCB.IsChecked();
+ aVal.bMirror = aMirrorPagesCB.IsChecked();
+
+ if ( pHMap )
+ {
+ // Ausrichtung Horizontal
+ USHORT nMapPos = GetMapPos(pHMap, aHorizontalDLB);
+ USHORT nAlign = GetAlignment(pHMap, nMapPos, aHorizontalDLB, aHoriRelationLB);
+ USHORT nRel = GetRelation(pHMap, aHoriRelationLB);
+
+ aVal.eHori = (SwHoriOrient)nAlign;
+ aVal.eHRel = (SwRelationOrient)nRel;
+ }
+ else
+ aVal.eHori = HORI_NONE;
+
+ if ( pVMap )
+ {
+ // Ausrichtung Vertikal
+ USHORT nMapPos = GetMapPos(pVMap, aVerticalDLB);
+ USHORT nAlign = GetAlignment(pVMap, nMapPos, aVerticalDLB, aVertRelationLB);
+ USHORT nRel = GetRelation(pVMap, aVertRelationLB);
+
+ aVal.eVert = (SvxFrameVertOrient)nAlign;
+ aVal.eVRel = (SwRelationOrient)nRel;
+ }
+ else
+ aVal.eVert = SVX_VERT_NONE;
+
+ const long nAtHorzPosVal =
+ aAtHorzPosED.Denormalize(aAtHorzPosED.GetValue(FUNIT_TWIP));
+ const long nAtVertPosVal =
+ aAtVertPosED.Denormalize(aAtVertPosED.GetValue(FUNIT_TWIP));
+
+ aVal.nHPos = nAtHorzPosVal;
+ aVal.nVPos = nAtVertPosVal;
+
+ aMgr.ValidateMetrics(aVal, TRUE); // Einmal, um Referenzwerte fuer prozentuale Werte zu erhalten
+
+ // Referenzwerte fuer fuer Prozentwerte setzen (100%) ...
+ aWidthED.SetRefValue(aVal.aPercentSize.Width());
+ aHeightED.SetRefValue(aVal.aPercentSize.Height());
+
+ // ... und damit Breite und Hoehe korrekt umrechnen
+ SwTwips nWidth = aWidthED. Denormalize(aWidthED.GetValue(FUNIT_TWIP));
+ SwTwips nHeight = aHeightED.Denormalize(aHeightED.GetValue(FUNIT_TWIP));
+ aVal.nWidth = nWidth;
+ aVal.nHeight = nHeight;
+
+ aMgr.ValidateMetrics(aVal); // Nochmal um mit korrekter Breite und Hoehe alle restlichen Werte zu ermitteln
+
+ // alle Spalten muessen passen
+ if(GetTabDialog()->GetExampleSet() &&
+ SFX_ITEM_DEFAULT <= GetTabDialog()->GetExampleSet()->GetItemState(RES_COL))
+ {
+ const SwFmtCol& rCol = (const SwFmtCol&)GetTabDialog()->GetExampleSet()->Get(RES_COL);
+ if ( rCol.GetColumns().Count() > 1 )
+ {
+ for ( USHORT i = 0; i < rCol.GetColumns().Count(); ++i )
+ {
+ aVal.nMinWidth += rCol.GetColumns()[i]->GetLeft() +
+ rCol.GetColumns()[i]->GetRight() +
+ MINFLY;
+ }
+ aVal.nMinWidth -= MINFLY;//einen hatten wir schon mit drin!
+ }
+ }
+
+ nWidth = aVal.nWidth;
+ nHeight = aVal.nHeight;
+
+ // Mindestbreite auch fuer Vorlage
+ aHeightED.SetMin(aHeightED.Normalize(aVal.nMinHeight), FUNIT_TWIP);
+ aWidthED. SetMin(aWidthED.Normalize(aVal.nMinWidth), FUNIT_TWIP);
+
+ SwTwips nMaxWidth(aVal.nMaxWidth);
+ SwTwips nMaxHeight(aVal.nMaxHeight);
+
+ if (aVal.bAuto && (nDlgType == DLG_FRM_GRF || nDlgType == DLG_FRM_OLE))
+ {
+ SwTwips nTmp = Min(nWidth * nMaxHeight / Max(nHeight, 1L), nMaxHeight);
+ aWidthED.SetMax(aWidthED.Normalize(nTmp), FUNIT_TWIP);
+
+ nTmp = Min(nHeight * nMaxWidth / Max(nWidth, 1L), nMaxWidth);
+ aHeightED.SetMax(aWidthED.Normalize(nTmp), FUNIT_TWIP);
+ }
+ else
+ {
+ SwTwips nTmp = aHeightED.Normalize(nMaxHeight);
+ aHeightED.SetMax(nTmp, FUNIT_TWIP);
+
+ nTmp = aWidthED.Normalize(nMaxWidth);
+ aWidthED.SetMax(nTmp, FUNIT_TWIP);
+ }
+
+ aAtHorzPosED.SetMin(aAtHorzPosED.Normalize(aVal.nMinHPos), FUNIT_TWIP);
+ aAtHorzPosED.SetMax(aAtHorzPosED.Normalize(aVal.nMaxHPos), FUNIT_TWIP);
+ if ( aVal.nHPos != nAtHorzPosVal )
+ aAtHorzPosED.SetValue(aAtHorzPosED.Normalize(aVal.nHPos), FUNIT_TWIP);
+
+ SwTwips nUpperOffset = aVal.eArea == FLY_IN_CNTNT ? nUpperBorder : 0;
+ SwTwips nLowerOffset = aVal.eArea == FLY_IN_CNTNT ? nLowerBorder : 0;
+
+ aAtVertPosED.SetMin(aAtVertPosED.Normalize(aVal.nMinVPos + nLowerOffset + nUpperOffset), FUNIT_TWIP);
+ aAtVertPosED.SetMax(aAtVertPosED.Normalize(aVal.nMaxVPos), FUNIT_TWIP);
+ if ( aVal.nVPos != nAtVertPosVal )
+ aAtVertPosED.SetValue(aAtVertPosED.Normalize(aVal.nVPos), FUNIT_TWIP);
+
+ if (pEdit == &aWidthED)
+ bWidthLastChanged = TRUE;
+ else if (pEdit == &aHeightED)
+ bWidthLastChanged = FALSE;
+ return 0;
+}
+
+IMPL_LINK( SwFrmPage, TypHdl, ListBox *, pLB )
+{
+ if (pLB == &aAnchorTypeLB)
+ aAnchorTypeRB.Check();
+
+ aMirrorPagesCB.Enable(aAnchorTypeRB.IsChecked());
+
+ USHORT nId = GetAnchor();
+
+ InitPos( nId, USHRT_MAX, 0, USHRT_MAX, 0, LONG_MAX, LONG_MAX);
+ if (pLB) // Nur wenn Handler durch Aenderung des Controllers gerufen wurde
+ RangeModifyHdl(0);
+
+ if(bHtmlMode)
+ {
+ PosHdl(&aHorizontalDLB);
+ PosHdl(&aVerticalDLB);
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFrmPage, PosHdl, ListBox *, pLB )
+{
+ BOOL bHori = pLB == &aHorizontalDLB;
+ ListBox *pRelLB = bHori ? &aHoriRelationLB : &aVertRelationLB;
+ FrmMap *pMap = bHori ? pHMap : pVMap;
+
+ USHORT nLBSelPos = pLB->GetSelectEntryPos();
+ //BOOL bEnable = nLBSelPos == pLB->GetEntryCount()-1 && !bFormat;
+
+ USHORT nMapPos = GetMapPos(pMap, *pLB);
+ USHORT nAlign = GetAlignment(pMap, nMapPos, *pLB, *pRelLB);
+
+ if (bHori)
+ {
+ BOOL bEnable = HORI_NONE == nAlign && !bFormat;
+ aAtHorzPosED.Enable( bEnable );
+ aAtHorzPosFT.Enable( bEnable );
+ }
+ else
+ {
+ BOOL bEnable = SVX_VERT_NONE == nAlign && !bFormat;
+ aAtVertPosED.Enable( bEnable );
+ aAtVertPosFT.Enable( bEnable );
+ }
+
+ if (pLB) // Nur wenn Handler durch Aenderung des Controllers gerufen wurde
+ RangeModifyHdl( 0 );
+
+ USHORT nRel = 0;
+ if (pLB->GetSelectEntryCount())
+ {
+
+ if (pRelLB->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND)
+ nRel = ((RelationMap *)pRelLB->GetEntryData(pRelLB->GetSelectEntryPos()))->nRelation;
+
+ FillRelLB(pMap, nMapPos, nAlign, nRel, *pRelLB);
+ }
+ else
+ pRelLB->Clear();
+
+ UpdateExample();
+
+ if (bHori)
+ bAtHorzPosModified = TRUE;
+ else
+ bAtVertPosModified = TRUE;
+
+ // Sonderbehandlung fuer HTML-Mode mit horz-vert-Abhaengigkeiten
+ if(bHtmlMode && nHtmlMode&HTMLMODE_SOME_ABS_POS &&
+ FLY_AUTO_CNTNT == GetAnchor())
+ {
+ BOOL bSet = FALSE;
+ if(bHori)
+ {
+ // rechts ist nur unterhalb erlaubt - von links nur oben
+ // von links am Zeichen -> unterhalb
+ if((HORI_LEFT == nAlign || HORI_RIGHT == nAlign) &&
+ 0 == aVerticalDLB.GetSelectEntryPos())
+ {
+ if(FRAME == nRel)
+ aVerticalDLB.SelectEntryPos(1);
+ else
+ aVerticalDLB.SelectEntryPos(0);
+ bSet = TRUE;
+ }
+ else if(HORI_LEFT == nAlign && 1 == aVerticalDLB.GetSelectEntryPos())
+ {
+ aVerticalDLB.SelectEntryPos(0);
+ bSet = TRUE;
+ }
+ else if(HORI_NONE == nAlign && 1 == aVerticalDLB.GetSelectEntryPos())
+ {
+ aVerticalDLB.SelectEntryPos(0);
+ bSet = TRUE;
+ }
+ if(bSet)
+ PosHdl(&aVerticalDLB);
+ }
+ else
+ {
+ if(SVX_VERT_TOP == nAlign)
+ {
+ if(1 == aHorizontalDLB.GetSelectEntryPos())
+ {
+ aHorizontalDLB.SelectEntryPos(0);
+ bSet = TRUE;
+ }
+ aHoriRelationLB.SelectEntryPos(1);
+ }
+ else if(SVX_VERT_CHAR_BOTTOM == nAlign)
+ {
+ if(2 == aHorizontalDLB.GetSelectEntryPos())
+ {
+ aHorizontalDLB.SelectEntryPos(0);
+ bSet = TRUE;
+ }
+ aHoriRelationLB.SelectEntryPos(0) ;
+ }
+ if(bSet)
+ PosHdl(&aHorizontalDLB);
+ }
+
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Horizontale Pos
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFrmPage, RelHdl, ListBox *, pLB )
+{
+ BOOL bHori = pLB == &aHoriRelationLB;
+
+ UpdateExample();
+
+ if (bHori)
+ bAtHorzPosModified = TRUE;
+ else
+ bAtVertPosModified = TRUE;
+
+ if (!bHori && pVMap == aVCharMap)
+ {
+ // Ausrichtung Vertikal
+ String sEntry;
+ USHORT nMapPos = GetMapPos(pVMap, aVerticalDLB);
+ USHORT nAlign = GetAlignment(pVMap, nMapPos, aVerticalDLB, aVertRelationLB);
+ USHORT nRel = GetRelation(pVMap, aVertRelationLB);
+
+ if (nRel == REL_CHAR)
+ sEntry = SW_RESSTR(STR_FROMBOTTOM);
+ else
+ sEntry = SW_RESSTR(STR_FROMTOP);
+
+ USHORT nOldPos = aVerticalDLB.GetSelectEntryPos();
+
+ String sName = aVerticalDLB.GetEntry(aVerticalDLB.GetEntryCount() - 1);
+ if (sName != sEntry)
+ {
+ aVerticalDLB.RemoveEntry(aVerticalDLB.GetEntryCount() - 1);
+ aVerticalDLB.InsertEntry(sEntry);
+ aVerticalDLB.SelectEntryPos(nOldPos);
+ }
+ }
+ if(bHtmlMode && FLY_AUTO_CNTNT == GetAnchor()) // wieder Sonderbehandlung
+ {
+ if(bHori)
+ {
+ USHORT nRel = GetRelation(pHMap, aHoriRelationLB);
+ if(PRTAREA == nRel && 0 == aVerticalDLB.GetSelectEntryPos())
+ {
+ aVerticalDLB.SelectEntryPos(1);
+ }
+ else if(REL_CHAR == nRel && 1 == aVerticalDLB.GetSelectEntryPos())
+ {
+ aVerticalDLB.SelectEntryPos(0);
+ }
+ }
+ }
+ if (pLB) // Nur wenn Handler durch Aenderung des Controllers gerufen wurde
+ RangeModifyHdl(0);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwFrmPage, AspectRatioCheckHdl, CheckBox *, pCB )
+{
+ if ( aFixedRatioCB.IsChecked() &&
+ (aWidthED.IsValueModified() || aHeightED.IsValueModified()) &&
+ nDlgType != DLG_FRM_GRF || (aGrfSize.Width() && aGrfSize.Height()) )
+ {
+ if (!aRelWidthCB.IsChecked() && !aRelHeightCB.IsChecked())
+ {
+ if (bWidthLastChanged)
+ {
+ SwTwips nHFac = aGrfSize.Height() * 1000 / aGrfSize.Width();
+ SwTwips nTmp;
+ if ( aWidthED.IsValueModified() )
+ nTmp = aWidthED.Denormalize(aWidthED.GetValue(FUNIT_TWIP));
+ else
+ { //Rundungsfehler vermeiden
+ const SwFmtFrmSize &rSz = (const SwFmtFrmSize&)GetItemSet().
+ Get(RES_FRM_SIZE);
+ nTmp = rSz.GetWidth();
+ }
+ nTmp = nTmp * nHFac / 1000;
+ aHeightED.SetUserValue(aHeightED.Normalize(nTmp), FUNIT_TWIP);
+ }
+ else
+ {
+ SwTwips nVFac = aGrfSize.Width() * 1000 / aGrfSize.Height();
+ SwTwips nTmp;
+ if ( aHeightED.IsValueModified() )
+ nTmp = aHeightED.Denormalize(aHeightED.GetValue(FUNIT_TWIP));
+ else
+ { //Rundungsfehler vermeiden
+ const SwFmtFrmSize &rSz = (const SwFmtFrmSize&)GetItemSet().
+ Get(RES_FRM_SIZE);
+ nTmp = rSz.GetHeight();
+ }
+ nTmp = nTmp * nVFac / 1000;
+ aWidthED.SetUserValue(aWidthED.Normalize(nTmp), FUNIT_TWIP);
+ }
+ }
+ UpdateExample();
+ }
+
+ if (pCB) // Nur wenn Handler durch Aenderung des Controllers gerufen wurde
+ RangeModifyHdl(&aWidthED); // Alle Maximalwerte neu initialisieren
+
+ return 0;
+}
+
+IMPL_LINK_INLINE_START( SwFrmPage, RealSizeHdl, Button *, EMPTYARG )
+{
+ aWidthED.SetUserValue( aWidthED. Normalize(aGrfSize.Width() ), FUNIT_TWIP);
+ aHeightED.SetUserValue(aHeightED.Normalize(aGrfSize.Height()), FUNIT_TWIP);
+ UpdateExample();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFrmPage, RealSizeHdl, Button *, EMPTYARG )
+
+IMPL_LINK_INLINE_START( SwFrmPage, ManualHdl, Button *, EMPTYARG )
+{
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFrmPage, ManualHdl, Button *, EMPTYARG )
+
+IMPL_LINK( SwFrmPage, ModifyHdl, Edit *, pEdit )
+{
+ if (pEdit == &aWidthED)
+ bWidthLastChanged = TRUE;
+ else if (pEdit == &aHeightED)
+ bWidthLastChanged = FALSE;
+
+ if ( aFixedRatioCB.IsChecked() )
+ {
+ BOOL bWidthRelative = aRelWidthCB.IsChecked();
+ BOOL bHeightRelative = aRelHeightCB.IsChecked();
+ if ( pEdit == &aWidthED )
+ {
+ const SwTwips nTmp = aHeightED.Normalize(aGrfSize.Height() *
+ aWidthED.Denormalize(aWidthED.GetValue(FUNIT_TWIP)) /
+ Max(aGrfSize.Width(), 1L));
+ const SwTwips nMaxHeight = bHeightRelative ?
+ aHeightED.GetRefValue() * ( aHeightED.GetOldDigits() == 1 ? 10 : 100):
+ aHeightED.GetMax(FUNIT_TWIP);
+ if(nMaxHeight >= nTmp)
+ aHeightED.SetValue(nTmp, FUNIT_TWIP);
+ else
+ {
+ //cut selected width
+ const SwTwips nNewWidth = aWidthED.Normalize(aGrfSize.Width() *
+ aHeightED.Denormalize(nMaxHeight) /
+ Max(aGrfSize.Height(),1L));
+ aWidthED.SetUserValue(nNewWidth, FUNIT_TWIP);
+ //aHeightED.SetValue(nMaxHeight, FUNIT_TWIP);
+ aHeightED.SetUserValue(nMaxHeight, FUNIT_TWIP);
+
+ }
+ }
+ else
+ {
+ const SwTwips nTmp = aWidthED.Normalize(aGrfSize.Width() *
+ aHeightED.Denormalize(aHeightED.GetValue(FUNIT_TWIP)) /
+ Max(aGrfSize.Height(),1L));
+ const SwTwips nMaxWidth = bWidthRelative ?
+ aWidthED.GetRefValue() * (aWidthED.GetOldDigits()== 1 ? 10 : 100):
+ aWidthED.GetMax(FUNIT_TWIP);
+ if(nMaxWidth >= nTmp)
+ aWidthED.SetValue(nTmp, FUNIT_TWIP);
+ else
+ {
+ //cut selected height
+ const SwTwips nNewHeight = aHeightED.Normalize(aGrfSize.Height() *
+ aWidthED.Denormalize(nMaxWidth) /
+ Max(aGrfSize.Width(),1L));
+ aHeightED.SetUserValue(nNewHeight, FUNIT_TWIP);
+ //aWidthED.SetValue(nMaxWidth, FUNIT_TWIP);
+ aWidthED.SetUserValue(nMaxWidth, FUNIT_TWIP);
+
+ }
+ }
+ }
+
+ UpdateExample();
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwFrmPage::UpdateExample()
+{
+ USHORT nPos = aHorizontalDLB.GetSelectEntryPos();
+ if ( pHMap && nPos != LISTBOX_ENTRY_NOTFOUND )
+ {
+ USHORT nMapPos = GetMapPos(pHMap, aHorizontalDLB);
+ USHORT nAlign = GetAlignment(pHMap, nMapPos, aHorizontalDLB, aHoriRelationLB);
+ USHORT nRel = GetRelation(pHMap, aHoriRelationLB);
+
+ aExampleWN.SetHAlign(nAlign);
+ aExampleWN.SetHoriRel(nRel);
+ }
+
+ nPos = aVerticalDLB.GetSelectEntryPos();
+ if ( pVMap && nPos != LISTBOX_ENTRY_NOTFOUND )
+ {
+ USHORT nMapPos = GetMapPos(pVMap, aVerticalDLB);
+ USHORT nAlign = GetAlignment(pVMap, nMapPos, aVerticalDLB, aVertRelationLB);
+ USHORT nRel = GetRelation(pVMap, aVertRelationLB);
+
+ aExampleWN.SetVAlign(nAlign);
+ aExampleWN.SetVertRel(nRel);
+ }
+
+ // Size
+ long nXPos = aAtHorzPosED.Denormalize(aAtHorzPosED.GetValue(FUNIT_TWIP));
+ long nYPos = aAtVertPosED.Denormalize(aAtVertPosED.GetValue(FUNIT_TWIP));
+ aExampleWN.SetRelPos(Point(nXPos, nYPos));
+
+ RndStdIds eAnchorId = (RndStdIds)GetAnchor();
+ aExampleWN.SetAnchor( eAnchorId );
+ aExampleWN.Invalidate();
+}
+
+void SwFrmPage::Init(const SfxItemSet& rSet, BOOL bReset)
+{
+ if(!bFormat)
+ {
+ SwWrtShell* pSh = ((SwFrmDlg*)GetParent()->GetParent())->GetWrtShell();
+
+ // Size
+ const FASTBOOL bSizeFixed = pSh->IsSelObjProtected( FLYPROTECT_FIXED );
+
+ aWidthED .Enable( !bSizeFixed );
+ aHeightED.Enable( !bSizeFixed );
+ }
+
+ const SwFmtFrmSize& rSize = (const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE);
+ long nWidth = aWidthED.Normalize(rSize.GetWidth());
+ long nHeight = aHeightED.Normalize(rSize.GetHeight());
+
+ if (nWidth != aWidthED.GetValue(FUNIT_TWIP))
+ {
+ if(!bReset)
+ {
+ // Wert wurde von Umlauf-Tabpage geaendert und muss
+ // mit Modify-Flag gesetzt werden
+ aWidthED.SetUserValue(nWidth, FUNIT_TWIP);
+ }
+ else
+ aWidthED.SetValue(nWidth, FUNIT_TWIP);
+ }
+
+ if (nHeight != aHeightED.GetValue(FUNIT_TWIP))
+ {
+ if (!bReset)
+ {
+ // Wert wurde von Umlauf-Tabpage geaendert und muss
+ // mit Modify-Flag gesetzt werden
+ aHeightED.SetUserValue(nHeight, FUNIT_TWIP);
+ }
+ else
+ aHeightED.SetValue(nHeight, FUNIT_TWIP);
+ }
+
+ if (nDlgType != DLG_FRM_GRF && nDlgType != DLG_FRM_OLE)
+ {
+ aAutoHeightCB.Check(rSize.GetSizeType() != ATT_FIX_SIZE);
+ if ( !bFormat )
+ {
+ SwWrtShell* pSh = ((SwFrmDlg*)GetParent()->GetParent())->GetWrtShell();
+ const SwFrmFmt* pFmt = pSh->GetFlyFrmFmt();
+ if( pFmt && pFmt->GetChain().GetNext() )
+ aAutoHeightCB.Enable( FALSE );
+ }
+ }
+ else
+ aAutoHeightCB.Hide();
+
+ // Umlauf-Abstand fuer zeichengebundene Rahmen organisieren
+ const SvxULSpaceItem &rUL = (const SvxULSpaceItem &)rSet.Get(RES_UL_SPACE);
+ nUpperBorder = rUL.GetUpper();
+ nLowerBorder = rUL.GetLower();
+
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_KEEP_ASPECT_RATIO))
+ {
+ aFixedRatioCB.Check(((const SfxBoolItem&)rSet.Get(FN_KEEP_ASPECT_RATIO)).GetValue());
+ aFixedRatioCB.SaveValue();
+ }
+
+ // Spalten
+ SwFmtCol aCol( (const SwFmtCol&)rSet.Get(RES_COL) );
+ ::FitToActualSize( aCol, (USHORT)rSize.GetWidth() );
+
+ RndStdIds eAnchorId = (RndStdIds)GetAnchor();
+
+ if ( bNew && !bFormat )
+ InitPos (eAnchorId, USHRT_MAX, 0, USHRT_MAX, USHRT_MAX, LONG_MAX, LONG_MAX);
+ else
+ {
+ const SwFmtHoriOrient& rHori = (const SwFmtHoriOrient&)rSet.Get(RES_HORI_ORIENT);
+ const SwFmtVertOrient& rVert = (const SwFmtVertOrient&)rSet.Get(RES_VERT_ORIENT);
+ nOldH = rHori.GetHoriOrient();
+ nOldHRel = rHori.GetRelationOrient();
+ nOldV = rVert.GetVertOrient(),
+ nOldVRel = rVert.GetRelationOrient();
+
+ if (eAnchorId == FLY_PAGE)
+ {
+ if (nOldHRel == FRAME)
+ nOldHRel = REL_PG_FRAME;
+ else if (nOldHRel == PRTAREA)
+ nOldHRel = REL_PG_PRTAREA;
+ if (nOldVRel == FRAME)
+ nOldVRel = REL_PG_FRAME;
+ else if (nOldVRel == PRTAREA)
+ nOldVRel = REL_PG_PRTAREA;
+ }
+
+ aMirrorPagesCB.Check(rHori.IsPosToggle());
+ aMirrorPagesCB.SaveValue();
+
+ InitPos(eAnchorId,
+ nOldH,
+ nOldHRel,
+ nOldV,
+ nOldVRel,
+ rHori.GetPos(),
+ rVert.GetPos());
+ }
+
+ // Transparent fuers Bsp
+ // Umlauf fuers Bsp
+ const SwFmtSurround& rSurround = (const SwFmtSurround&)rSet.Get(RES_SURROUND);
+ aExampleWN.SetWrap ( rSurround.GetSurround() );
+
+ if ( rSurround.GetSurround() == SURROUND_THROUGHT )
+ {
+ const SvxOpaqueItem& rOpaque = (const SvxOpaqueItem&)rSet.Get(RES_OPAQUE);
+ aExampleWN.SetTransparent(!rOpaque.GetValue());
+ }
+
+ // ggf auf Prozent umschalten
+ RangeModifyHdl(&aWidthED); // Referenzwerte setzen (fuer 100%)
+
+ if (rSize.GetWidthPercent() == 0xff || rSize.GetHeightPercent() == 0xff)
+ aFixedRatioCB.Check(TRUE);
+ if (rSize.GetWidthPercent() && rSize.GetWidthPercent() != 0xff &&
+ !aRelWidthCB.IsChecked())
+ {
+ aRelWidthCB.Check(TRUE);
+ RelSizeClickHdl(&aRelWidthCB);
+ aWidthED.SetValue(rSize.GetWidthPercent(), FUNIT_CUSTOM);
+ }
+ if (rSize.GetHeightPercent() && rSize.GetHeightPercent() != 0xff &&
+ !aRelHeightCB.IsChecked())
+ {
+ aRelHeightCB.Check(TRUE);
+ RelSizeClickHdl(&aRelHeightCB);
+ aHeightED.SetValue(rSize.GetHeightPercent(), FUNIT_CUSTOM);
+ }
+ aRelWidthCB.SaveValue();
+ aRelHeightCB.SaveValue();
+}
+
+USHORT* SwFrmPage::GetRanges()
+{
+ return aPageRg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwGrfExtPage::SwGrfExtPage(Window *pParent, const SfxItemSet &rSet) :
+ SfxTabPage( pParent, SW_RES(TP_GRF_EXT), rSet ),
+ aBmpWin (this, WN_BMP, Graphic(), Bitmap(BMP_EXAMPLE) ),
+ aConnectGB (this, SW_RES( GB_CONNECT )),
+ aConnectFT (this, SW_RES( FT_CONNECT )),
+ aConnectED (this, SW_RES( ED_CONNECT )),
+ aBrowseBT (this, SW_RES( PB_BROWSE )),
+ aMirrorVertBox (this, SW_RES( CB_VERT )),
+ aMirrorHorzBox (this, SW_RES( CB_HOR )),
+// aMirrorPagesLB (this, SW_RES( LB_MIRROR_PAGES )),
+// aMirrorPagesFT (this, SW_RES( FT_MIRROR_PAGES )),
+ aAllPagesRB( this, SW_RES( RB_MIRROR_ALL_PAGES )),
+ aLeftPagesRB( this, SW_RES( RB_MIRROR_LEFT_PAGES )),
+ aRightPagesRB( this, SW_RES( RB_MIRROR_RIGHT_PAGES )),
+
+ aMirrorFrm (this, SW_RES( GB_MIRROR )),
+ pGrfDlg( 0 )
+{
+ FreeResource();
+ SetExchangeSupport();
+ aMirrorHorzBox.SetClickHdl( LINK(this, SwGrfExtPage, MirrorHdl));
+ aMirrorVertBox.SetClickHdl( LINK(this, SwGrfExtPage, MirrorHdl));
+ aBrowseBT.SetClickHdl ( LINK(this, SwGrfExtPage, BrowseHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwGrfExtPage::~SwGrfExtPage()
+{
+ delete pGrfDlg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SfxTabPage* SwGrfExtPage::Create( Window *pParent, const SfxItemSet &rSet )
+{
+ return new SwGrfExtPage( pParent, rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwGrfExtPage::Reset(const SfxItemSet &rSet)
+{
+ const SfxPoolItem* pItem;
+ USHORT nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
+ bHtmlMode = nHtmlMode & HTMLMODE_ON ? TRUE : FALSE;
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_GRF_CONNECT, TRUE, &pItem)
+ && ((const SfxBoolItem *)pItem)->GetValue() )
+ {
+ aBrowseBT.Enable();
+ aConnectED.SetReadOnly(FALSE);
+ }
+
+ ActivatePage(rSet);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwGrfExtPage::ActivatePage(const SfxItemSet& rSet)
+{
+ const SvxProtectItem& rProt = (const SvxProtectItem& )rSet.Get(RES_PROTECT);
+ bProtCntnt = rProt.IsCntntProtected();
+
+ const SfxPoolItem* pItem = 0;
+ BOOL bEnable = FALSE;
+ BOOL bEnableMirrorRB = FALSE;
+
+ SfxItemState eState = rSet.GetItemState(RES_GRFATR_MIRRORGRF, TRUE, &pItem);
+ if( SFX_ITEM_UNKNOWN != eState && !bProtCntnt && !bHtmlMode )
+ {
+ if( SFX_ITEM_SET != eState )
+ pItem = &rSet.Get( RES_GRFATR_MIRRORGRF );
+
+ bEnable = TRUE;
+
+ USHORT eMirror = (GRFMIRROR) ((const SwMirrorGrf* )pItem)->GetValue();
+ switch( eMirror )
+ {
+ case RES_DONT_MIRROR_GRF: break;
+ case RES_MIRROR_GRF_VERT: aMirrorHorzBox.Check(TRUE); break;
+ case RES_MIRROR_GRF_HOR: aMirrorVertBox.Check(TRUE); break;
+ case RES_MIRROR_GRF_BOTH: aMirrorHorzBox.Check(TRUE);
+ aMirrorVertBox.Check(TRUE);
+ break;
+ }
+
+ USHORT nPos = ((const SwMirrorGrf* )pItem)->IsGrfToggle() ? 1 : 0;
+ nPos += (eMirror == RES_MIRROR_GRF_VERT || eMirror == RES_MIRROR_GRF_BOTH)
+ ? 2 : 0;
+
+ bEnableMirrorRB = nPos != 0;
+
+ switch (nPos)
+ {
+ case 1: // Auf linken bzw geraden Seiten spiegeln
+ aLeftPagesRB.Check();
+ aMirrorHorzBox.Check(TRUE);
+ break;
+ case 2: // Auf allen Seiten spiegeln
+ aAllPagesRB.Check();
+ break;
+ case 3: // Auf rechten bzw ungeraden Seiten spiegeln
+ aRightPagesRB.Check();
+ break;
+ default:
+ aAllPagesRB.Check();
+ break;
+ }
+ }
+
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_GRAF_GRAPHIC, FALSE, &pItem ) )
+ {
+ const SvxBrushItem& rBrush = *(SvxBrushItem*)pItem;
+ if( rBrush.GetGraphicLink() )
+ {
+ aGrfName = aNewGrfName = *rBrush.GetGraphicLink();
+ aConnectED.SetText( aNewGrfName );
+ }
+ const Graphic* pGrf = rBrush.GetGraphic();
+ if( pGrf )
+ aBmpWin.SetGraphic( *pGrf );
+ }
+
+ aAllPagesRB .Enable(bEnableMirrorRB);
+ aLeftPagesRB.Enable(bEnableMirrorRB);
+ aRightPagesRB.Enable(bEnableMirrorRB);
+ aMirrorHorzBox.Enable(bEnable);
+ aMirrorVertBox.Enable(bEnable);
+ aMirrorFrm.Enable(bEnable);
+
+ aAllPagesRB .SaveValue();
+ aLeftPagesRB.SaveValue();
+ aRightPagesRB.SaveValue();
+ aMirrorHorzBox.SaveValue();
+ aMirrorVertBox.SaveValue();
+
+ aBmpWin.MirrorHorz( aMirrorVertBox.IsChecked() );
+ aBmpWin.MirrorVert( aMirrorHorzBox.IsChecked() );
+ aBmpWin.Invalidate();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL SwGrfExtPage::FillItemSet( SfxItemSet &rSet )
+{
+ BOOL bModified = FALSE;
+ if ( aMirrorHorzBox.GetSavedValue() != aMirrorHorzBox.IsChecked() ||
+ aMirrorVertBox.GetSavedValue() != aMirrorVertBox.IsChecked() ||
+ aAllPagesRB .GetSavedValue() != aAllPagesRB .IsChecked() ||
+ aLeftPagesRB.GetSavedValue() != aLeftPagesRB.IsChecked() ||
+ aRightPagesRB.GetSavedValue() != aRightPagesRB.IsChecked())
+ {
+ bModified = TRUE;
+
+ BOOL bHori = FALSE;
+
+ if (aMirrorHorzBox.IsChecked() &&
+ !aLeftPagesRB.IsChecked())
+ bHori = TRUE;
+
+ GRFMIRROR eMirror;
+ eMirror = aMirrorVertBox.IsChecked() && bHori ?
+ RES_MIRROR_GRF_BOTH : bHori ?
+ RES_MIRROR_GRF_VERT : aMirrorVertBox.IsChecked() ?
+ RES_MIRROR_GRF_HOR : RES_DONT_MIRROR_GRF;
+
+ BOOL bMirror = !aAllPagesRB.IsChecked();
+ SwMirrorGrf aMirror( eMirror );
+ aMirror.SetGrfToggle(bMirror );
+ rSet.Put( aMirror );
+ }
+
+ if( aGrfName != aNewGrfName || aConnectED.IsModified() )
+ {
+ bModified = TRUE;
+ aGrfName = aConnectED.GetText();
+ rSet.Put( SvxBrushItem( aGrfName, aFilterName, GPOS_LT,
+ SID_ATTR_GRAF_GRAPHIC ));
+ }
+ return bModified;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+int SwGrfExtPage::DeactivatePage(SfxItemSet *pSet)
+{
+ if( pSet )
+ FillItemSet( *pSet );
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwGrfExtPage, BrowseHdl, Button *, EMPTYARG )
+{
+ if(!pGrfDlg)
+ pGrfDlg = new SvxImportGraphicDialog( this,
+ SW_RESSTR(STR_EDIT_GRF), ENABLE_STANDARD );
+ pGrfDlg->SetPath( aConnectED.GetText(), FALSE, TRUE );
+
+ if ( pGrfDlg->Execute() == RET_OK )
+ { // ausgewaehlten Filter merken
+ aFilterName = pGrfDlg->GetCurFilter();
+ aNewGrfName = INetURLObject::decode( pGrfDlg->GetPath(),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 );
+ aConnectED.SetModifyFlag();
+ aConnectED.SetText( aNewGrfName );
+ //Spiegeln zuruecksetzen, da u. U. eine Bitmap
+ //gegen eine andere Art von Grafik ausgetauscht worden ist,
+ //die nicht gespiegelt werden kann.
+ aMirrorVertBox.Check(FALSE);
+ aMirrorHorzBox.Check(FALSE);
+ aAllPagesRB .Enable(FALSE);
+ aLeftPagesRB.Enable(FALSE);
+ aRightPagesRB.Enable(FALSE);
+ aBmpWin.MirrorHorz(FALSE);
+ aBmpWin.MirrorVert(FALSE);
+ BOOL bEnable = FALSE;
+ Graphic* pGrf = pGrfDlg->GetGraphic();
+ if(pGrf)
+ {
+ aBmpWin.SetGraphic(*pGrf);
+
+ if( GRAPHIC_BITMAP == pGrf->GetType() ||
+ GRAPHIC_GDIMETAFILE == pGrf->GetType())
+ bEnable = TRUE;
+ }
+ aMirrorVertBox.Enable(bEnable);
+ aMirrorHorzBox.Enable(bEnable);
+ aAllPagesRB .Enable(bEnable);
+ aLeftPagesRB.Enable(bEnable);
+ aRightPagesRB.Enable(bEnable);
+ }
+ return 0;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwGrfExtPage, MirrorHdl, CheckBox *, EMPTYARG )
+{
+ BOOL bHori = FALSE;
+ BOOL bEnable = aMirrorHorzBox.IsChecked();
+
+ aBmpWin.MirrorHorz( aMirrorVertBox.IsChecked() );
+ aBmpWin.MirrorVert( bEnable );
+
+ aAllPagesRB .Enable(bEnable);
+ aLeftPagesRB.Enable(bEnable);
+ aRightPagesRB.Enable(bEnable);
+
+ if (!aAllPagesRB.IsChecked() && !aLeftPagesRB.IsChecked() && !aRightPagesRB.IsChecked())
+ aAllPagesRB.Check();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: BeispielWindow
+ --------------------------------------------------------------------*/
+
+BmpWindow::BmpWindow(Window* pPar, USHORT nId,
+ const Graphic& rGraphic, const Bitmap& rBmp) :
+ Window(pPar, SW_RES(nId)),
+ aGraphic(rGraphic),
+ aBmp(rBmp),
+ bHorz(FALSE),
+ bVert(FALSE),
+ bGraphic(FALSE),
+ bLeftAlign(FALSE)
+{
+}
+
+void BmpWindow::Paint( const Rectangle& )
+{
+ Point aPntPos;
+ Size aPntSz( GetSizePixel() );
+ Size aGrfSize;
+ if(bGraphic)
+ aGrfSize = ::GetGraphicSizeTwip(aGraphic, this);
+ else
+ aGrfSize = PixelToLogic(aBmp.GetSizePixel());
+
+ // u.U. ist nichts gesetzt
+ if(aGrfSize.Width() && aGrfSize.Height())
+ {
+ long nRelGrf = aGrfSize.Width() * 100L / aGrfSize.Height();
+ long nRelWin = aPntSz.Width() * 100L / aPntSz.Height();
+ if(nRelGrf < nRelWin)
+ {
+ const long nWidth = aPntSz.Width();
+ aPntSz.Width() = aPntSz.Height() * nRelGrf /100;
+ if(!bLeftAlign)
+ aPntPos.X() += nWidth - aPntSz.Width() ;
+ }
+
+ if ( bHorz )
+ {
+ aPntPos.Y() += aPntSz.Height();
+ aPntPos.Y() --;
+ aPntSz.Height() *= -1;
+ }
+ if ( bVert )
+ {
+ aPntPos.X() += aPntSz.Width();
+ aPntPos.X()--;
+ aPntSz.Width() *= -1;
+ }
+ if(bGraphic)
+ aGraphic.Draw(this, aPntPos, aPntSz);
+ else
+ DrawBitmap( aPntPos, aPntSz, aBmp );
+ }
+}
+
+BmpWindow::~BmpWindow()
+{
+}
+
+/***************************************************************************
+ Beschreibung: URL und ImageMap an Rahmen einstellen
+***************************************************************************/
+
+
+SwFrmURLPage::SwFrmURLPage( Window *pParent, const SfxItemSet &rSet ) :
+ SfxTabPage(pParent, SW_RES(TP_FRM_URL), rSet),
+ aHyperLinkGB (this, SW_RES( GB_HYPERLINK )),
+ aURLFT (this, SW_RES( FT_URL )),
+ aURLED (this, SW_RES( ED_URL )),
+ aNameFT (this, SW_RES( FT_NAME )),
+ aNameED (this, SW_RES( ED_NAME )),
+ aFrameFT (this, SW_RES( FT_FRAME )),
+ aFrameCB (this, SW_RES( CB_FRAME )),
+ aSearchPB (this, SW_RES( PB_SEARCH )),
+ aImageGB (this, SW_RES( GB_IMAGE )),
+ aServerCB (this, SW_RES( CB_SERVER )),
+ aClientCB (this, SW_RES( CB_CLIENT ))
+{
+ FreeResource();
+ aSearchPB.SetClickHdl(LINK(this, SwFrmURLPage, InsertFileHdl));
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+SwFrmURLPage::~SwFrmURLPage()
+{
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+void SwFrmURLPage::Reset( const SfxItemSet &rSet )
+{
+ const SfxPoolItem* pItem;
+ if ( SFX_ITEM_SET == rSet.GetItemState( SID_DOCFRAME, TRUE, &pItem))
+ {
+ TargetList* pList = new TargetList;
+ ((const SfxFrameItem*)pItem)->GetFrame()->GetTargetList(*pList);
+ USHORT nCount = (USHORT)pList->Count();
+ if( nCount )
+ {
+ for ( USHORT i = 0; i < nCount; i++ )
+ {
+ aFrameCB.InsertEntry(*pList->GetObject(i));
+ }
+ for ( i = nCount; i; i-- )
+ {
+ delete pList->GetObject( i - 1 );
+ }
+ }
+ delete pList;
+ }
+
+ if ( SFX_ITEM_SET == rSet.GetItemState( RES_URL, TRUE, &pItem ) )
+ {
+ const SwFmtURL* pFmtURL = (const SwFmtURL*)pItem;
+ aURLED.SetText( INetURLObject::decode( pFmtURL->GetURL(),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ));
+ aNameED.SetText( pFmtURL->GetName());
+
+ aClientCB.Enable( pFmtURL->GetMap() != 0 );
+ aClientCB.Check ( pFmtURL->GetMap() != 0 );
+ aServerCB.Check ( pFmtURL->IsServerMap() );
+
+ aFrameCB.SetText(pFmtURL->GetTargetFrameName());
+ aFrameCB.SaveValue();
+ }
+ else
+ aClientCB.Enable( FALSE );
+
+ aServerCB.SaveValue();
+ aClientCB.SaveValue();
+}
+
+
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+BOOL SwFrmURLPage::FillItemSet(SfxItemSet &rSet)
+{
+ BOOL bModified = FALSE;
+ const SwFmtURL* pOldURL = (SwFmtURL*)GetOldItem(rSet, RES_URL);
+ SwFmtURL* pFmtURL;
+ if(pOldURL)
+ pFmtURL = (SwFmtURL*)pOldURL->Clone();
+ else
+ pFmtURL = new SwFmtURL();
+
+ {
+ String sText = aURLED.GetText();
+ if( sText.Len() )
+ sText = URIHelper::SmartRelToAbs( sText );
+
+ if( pFmtURL->GetURL() != sText ||
+ pFmtURL->GetName() != aNameED.GetText() ||
+ aServerCB.IsChecked() != pFmtURL->IsServerMap() )
+ {
+ pFmtURL->SetURL( sText, aServerCB.IsChecked() );
+ pFmtURL->SetName( aNameED.GetText() );
+ bModified = TRUE;
+ }
+ }
+
+ if(!aClientCB.IsChecked() && pFmtURL->GetMap() != 0)
+ {
+ pFmtURL->SetMap(0);
+ bModified = TRUE;
+ }
+
+ if(pFmtURL->GetTargetFrameName() != aFrameCB.GetText())
+ {
+ pFmtURL->SetTargetFrameName(aFrameCB.GetText());
+ bModified = TRUE;
+ }
+ rSet.Put(*pFmtURL);
+ delete pFmtURL;
+ return bModified;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+SfxTabPage* SwFrmURLPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwFrmURLPage( pParent, rSet );
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+IMPL_LINK( SwFrmURLPage, InsertFileHdl, PushButton *, pBtn )
+{
+ SfxFileDialog* pFileDlg = new SfxFileDialog(pBtn, WB_OPEN);
+ pFileDlg->DisableSaveLastDirectory();
+ pFileDlg->SetHelpId(HID_FILEDLG_CHARDLG);
+ String sTemp(aURLED.GetText());
+ if(sTemp.Len())
+ pFileDlg->SetPath(sTemp);
+
+ if(RET_OK == pFileDlg->Execute())
+ {
+ aURLED.SetText( URIHelper::SmartRelToAbs( pFileDlg->GetPath(), FALSE,
+ INetURLObject::WAS_ENCODED,
+ INetURLObject::DECODE_WITH_CHARSET ));
+ }
+ delete pFileDlg;
+
+ return 0;
+}
+
+/*-----------------13.11.96 13.15-------------------
+
+--------------------------------------------------*/
+
+SwFrmAddPage::SwFrmAddPage(Window *pParent, const SfxItemSet &rSet ) :
+ SfxTabPage(pParent, SW_RES(TP_FRM_ADD), rSet),
+ aNameFT (this, SW_RES(FT_NAME)),
+ aNameED (this, SW_RES(ED_NAME)),
+ aAltNameFT (this, SW_RES(FT_ALT_NAME)),
+ aAltNameED (this, SW_RES(ED_ALT_NAME)),
+ aPrevFT (this, SW_RES(FT_PREV)),
+ aPrevED (this, SW_RES(ED_PREV)),
+ aNextFT (this, SW_RES(FT_NEXT)),
+ aNextED (this, SW_RES(ED_NEXT)),
+ aNamesGB (this, SW_RES(GB_NAME)),
+
+ aProtectContentCB (this, SW_RES(CB_PROTECT_CONTENT)),
+ aProtectFrameCB (this, SW_RES(CB_PROTECT_FRAME)),
+ aProtectSizeCB (this, SW_RES(CB_PROTECT_SIZE)),
+ aProtectGB (this, SW_RES(GB_PROTECT)),
+
+ aEditInReadonlyCB (this, SW_RES(CB_EDIT_IN_READONLY)),
+ aPrintFrameCB (this, SW_RES(CB_PRINT_FRAME)),
+ aExtGB (this, SW_RES(GB_EXT)),
+ nDlgType(0),
+ pWrtSh(0),
+ bFormat(FALSE),
+ bHtmlMode(FALSE)
+{
+ FreeResource();
+
+}
+
+/*-----------------13.11.96 13.15-------------------
+
+--------------------------------------------------*/
+
+SwFrmAddPage::~SwFrmAddPage()
+{
+}
+
+/*-----------------13.11.96 13.15-------------------
+
+--------------------------------------------------*/
+
+SfxTabPage* SwFrmAddPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwFrmAddPage(pParent, rSet);
+}
+
+/*-----------------13.11.96 13.14-------------------
+
+--------------------------------------------------*/
+
+void SwFrmAddPage::Reset(const SfxItemSet &rSet )
+{
+ const SfxPoolItem* pItem;
+ USHORT nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
+ bHtmlMode = nHtmlMode & HTMLMODE_ON ? TRUE : FALSE;
+ if(bHtmlMode)
+ {
+ aProtectContentCB .Hide();
+ aProtectFrameCB .Hide();
+ aProtectSizeCB .Hide();
+ aEditInReadonlyCB .Hide();
+ aPrintFrameCB .Hide();
+ aExtGB .Hide();
+ aProtectGB.Hide();
+ }
+ if ( DLG_FRM_GRF == nDlgType || DLG_FRM_OLE == nDlgType )
+ aEditInReadonlyCB.Hide();
+
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_SET_FRM_ALT_NAME, FALSE, &pItem))
+ {
+ aAltNameED.SetText(((const SfxStringItem*)pItem)->GetValue());
+ aAltNameED.SaveValue();
+ }
+
+ if(!bFormat)
+ {
+ // Grafik einfuegen - Eigenschaften
+ // bNew ist nicht gesetzt, deswegen ueber Selektion erkennen
+ String aTmpName1;
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_SET_FRM_NAME, FALSE, &pItem))
+ {
+ aTmpName1 = ((const SfxStringItem*)pItem)->GetValue();
+ }
+
+ DBG_ASSERT(pWrtSh, "keine Shell?")
+ if( bNew || !aTmpName1.Len() )
+
+ switch( nDlgType )
+ {
+ case DLG_FRM_GRF:
+ aTmpName1 = pWrtSh->GetUniqueGrfName();
+ break;
+ case DLG_FRM_OLE:
+ aTmpName1 = pWrtSh->GetUniqueOLEName();
+ break;
+ default:
+ aTmpName1 = pWrtSh->GetUniqueFrameName();
+ break;
+ }
+
+ aNameED.SetText( aTmpName1 );
+ aNameED.SaveValue();
+ }
+ else
+ {
+ aNameED.Enable( FALSE );
+ aAltNameED.Enable(FALSE);
+ aNameFT.Enable( FALSE );
+ aAltNameFT.Enable(FALSE);
+ aNamesGB.Enable(FALSE);
+ }
+ if(nDlgType == DLG_FRM_STD)
+ {
+ aAltNameFT.Hide();
+ aAltNameED.Hide();
+ }
+ else
+ {
+ aNameED.SetModifyHdl(LINK(this, SwFrmAddPage, EditModifyHdl));
+ }
+
+ BOOL bNoPrev = TRUE, bNoNext = TRUE;
+ if (!bNew)
+ {
+ const SwFrmFmt* pFmt = pWrtSh->GetFlyFrmFmt();
+
+ if (pFmt)
+ {
+ const SwFmtChain &rChain = pFmt->GetChain();
+ const SwFlyFrmFmt* pFlyFmt;
+
+ if ((pFlyFmt = rChain.GetPrev()) != 0)
+ {
+ aPrevED.SetText(pFlyFmt->GetName());
+ bNoPrev = FALSE;
+ }
+
+ if ((pFlyFmt = rChain.GetNext()) != 0)
+ {
+ aNextED.SetText(pFlyFmt->GetName());
+ bNoNext = FALSE;
+ }
+ }
+ }
+
+ if (bNoPrev)
+ {
+ aPrevFT.Disable();
+ aPrevED.Disable();
+ }
+ if (bNoNext)
+ {
+ aNextFT.Disable();
+ aNextED.Disable();
+ }
+
+ // Pos Protected
+ const SvxProtectItem& rProt = (const SvxProtectItem& )rSet.Get(RES_PROTECT);
+ aProtectFrameCB.Check(rProt.IsPosProtected());
+ aProtectContentCB.Check(rProt.IsCntntProtected());
+ aProtectSizeCB.Check(rProt.IsSizeProtected());
+
+ const SwFmtEditInReadonly& rEdit = (const SwFmtEditInReadonly& )rSet.Get(RES_EDIT_IN_READONLY);
+ aEditInReadonlyCB.Check(rEdit.GetValue()); aEditInReadonlyCB.SaveValue();
+
+ // drucken
+ const SvxPrintItem& rPrt = (const SvxPrintItem&)rSet.Get(RES_PRINT);
+ aPrintFrameCB.Check(rPrt.GetValue()); aPrintFrameCB.SaveValue();
+}
+
+/*-----------------13.11.96 13.20-------------------
+
+--------------------------------------------------*/
+
+BOOL SwFrmAddPage::FillItemSet(SfxItemSet &rSet)
+{
+ BOOL bRet = FALSE;
+ if (aNameED.GetText() != aNameED.GetSavedValue())
+ bRet |= 0 != rSet.Put(SfxStringItem(FN_SET_FRM_NAME, aNameED.GetText()));
+ if (aAltNameED.GetText() != aAltNameED.GetSavedValue())
+ bRet |= 0 != rSet.Put(SfxStringItem(FN_SET_FRM_ALT_NAME, aAltNameED.GetText()));
+
+ const SfxPoolItem* pOldItem;
+ SvxProtectItem aProt ( (const SvxProtectItem& )GetItemSet().Get(RES_PROTECT) );
+ aProt.SetCntntProtect( aProtectContentCB.IsChecked() );
+ aProt.SetSizeProtect ( aProtectSizeCB.IsChecked() );
+ aProt.SetPosProtect ( aProtectFrameCB.IsChecked() );
+ if ( 0 == (pOldItem = GetOldItem(rSet, FN_SET_PROTECT)) ||
+ aProt != *pOldItem )
+ bRet |= 0 != rSet.Put( aProt);
+
+ BOOL bChecked;
+ if ( (bChecked = aEditInReadonlyCB.IsChecked()) != aEditInReadonlyCB.GetSavedValue() )
+ bRet |= 0 != rSet.Put( SwFmtEditInReadonly( RES_EDIT_IN_READONLY, bChecked));
+
+ if ( (bChecked = aPrintFrameCB.IsChecked()) != aPrintFrameCB.GetSavedValue() )
+ bRet |= 0 != rSet.Put( SvxPrintItem( RES_PRINT, bChecked));
+
+ return bRet;
+}
+
+/*-----------------13.11.96 15.05-------------------
+
+--------------------------------------------------*/
+
+USHORT* SwFrmAddPage::GetRanges()
+{
+ return aAddPgRg;
+}
+
+/*-----------------13.11.96 16.12-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK(SwFrmAddPage, EditModifyHdl, Edit*, EMPTYARG)
+{
+ BOOL bEnable = 0 != aNameED.GetText().Len();
+ aAltNameED.Enable(bEnable);
+ aAltNameFT.Enable(bEnable);
+
+ return 0;
+}
+/*--------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.255 2000/09/18 16:05:33 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.254 2000/08/25 14:09:49 jp
+ Graphic Crop-Attribut and TabPage exported to SVX
+
+ Revision 1.253 2000/08/17 11:38:50 jp
+ remove the SW graphicmanager and UI with decoded URLs
+
+ Revision 1.252 2000/06/26 13:13:31 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.251 2000/05/10 14:05:18 os
+ #75737# ReadioButtons used for hori mirror type
+
+ Revision 1.250 2000/04/26 14:49:17 os
+ GetName() returns const String&
+
+ Revision 1.249 2000/04/19 12:56:34 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.248 2000/04/18 15:14:56 os
+ UNICODE
+
+ Revision 1.247 2000/02/11 14:47:20 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.246 2000/01/24 12:45:28 os
+ #72153# call SfxFileDialog::DisableSaveLastDirectory
+
+ Revision 1.245 1999/11/23 13:18:55 os
+ #69479# relative/fixed ratio handling corrected
+
+ Revision 1.244 1999/06/21 11:30:30 OS
+ #64885# width/height matching corrected
+
+
+ Rev 1.243 21 Jun 1999 13:30:30 OS
+ #64885# width/height matching corrected
+
+ Rev 1.242 09 Jun 1999 10:48:10 OS
+ #66733# CropPage: reset relative values
+
+ Rev 1.241 09 Apr 1999 12:17:24 OS
+ #64438# Grenzwerte fuer L+R richtig berechnen
+
+--------------------------------------------------*/
diff --git a/sw/source/ui/frmdlg/frmpage.hrc b/sw/source/ui/frmdlg/frmpage.hrc
new file mode 100644
index 000000000000..baaa5df21819
--- /dev/null
+++ b/sw/source/ui/frmdlg/frmpage.hrc
@@ -0,0 +1,137 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmpage.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define WN_BSP 21
+#define FT_BSP 22
+#define RB_ANCHOR_TYPE 23
+#define LB_ANCHOR_TYPE 24
+#define RB_ANCHOR_CHAR 25
+#define GB_TYPE 26
+#define FT_WIDTH 27
+#define ED_WIDTH 28
+#define FT_HEIGHT 29
+#define ED_HEIGHT 30
+#define CB_AUTOHEIGHT 31
+#define GB_SIZE 32
+#define FT_HORIZONTAL 33
+#define DLB_HORIZONTAL 34
+#define FT_AT_HORZ_POS 35
+#define ED_AT_HORZ_POS 36
+#define FT_HORI_RELATION 1
+#define LB_HORI_RELATION 2
+#define CB_MIRROR 37
+#define FT_VERTICAL 38
+#define DLB_VERTICAL 39
+#define FT_AT_VERT_POS 40
+#define ED_AT_VERT_POS 41
+#define FT_VERT_RELATION 3
+#define LB_VERT_RELATION 4
+#define GB_POSITION 43
+#define BT_REALSIZE 44
+#define BT_MANUAL 45
+
+#define CB_HOR 46
+#define CB_VERT 47
+//#define LB_MIRROR_PAGES 49
+//#define FT_MIRROR_PAGES 50
+#define GB_MIRROR 51
+#define WN_BMP 52
+#define PB_BROWSE 53
+#define ED_CONNECT 54
+#define GB_CONNECT 55
+#define FT_CONNECT 57
+#define FT_URL 58
+#define ED_URL 59
+
+#define BMP_EXAMPLE 62
+#define RB_MIRROR_ALL_PAGES 63
+#define RB_MIRROR_LEFT_PAGES 64
+#define RB_MIRROR_RIGHT_PAGES 65
+
+#define GB_HYPERLINK 94
+#define FT_FRAME 95
+#define CB_FRAME 96
+#define GB_IMAGE 97
+#define CB_SERVER 98
+#define CB_CLIENT 99
+
+#define CB_REL_WIDTH 100
+#define CB_REL_HEIGHT 101
+#define CB_FIXEDRATIO 102
+#define PB_SEARCH 103
+
+#define CB_ANCHOR_ONLY 103
+
+#define FT_NAME 110
+#define ED_NAME 111
+#define FT_ALT_NAME 112
+#define ED_ALT_NAME 113
+#define FT_PREV 114
+#define ED_PREV 115
+#define FT_NEXT 116
+#define ED_NEXT 117
+#define GB_NAME 118
+#define CB_PROTECT_CONTENT 119
+#define CB_PROTECT_FRAME 120
+#define CB_PROTECT_SIZE 121
+#define GB_PROTECT 122
+#define CB_EDIT_IN_READONLY 123
+#define CB_PRINT_FRAME 124
+#define GB_EXT 125
diff --git a/sw/source/ui/frmdlg/frmpage.src b/sw/source/ui/frmdlg/frmpage.src
new file mode 100644
index 000000000000..f29299a97e58
--- /dev/null
+++ b/sw/source/ui/frmdlg/frmpage.src
@@ -0,0 +1,2707 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmpage.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "frmui.hrc"
+#include "frmpage.hrc"
+#include "globals.hrc"
+#include "helpid.h"
+#include "svx/dialogs.hrc"
+
+TabDialog DLG_FRM_STD
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Rahmen" ;
+ Text [ ENGLISH ] = "Frame" ;
+ Text [ norwegian ] = "Ramme" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ portuguese_brazilian ] = "Moldura" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ finnish ] = "Kehys" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ english_us ] = "Frame" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FRM_STD ;
+ PageResID = TP_FRM_STD ;
+ Text = "Typ" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "Type" ;
+ Text [ swedish ] = "Typ" ;
+ Text [ dutch ] = "Type" ;
+ Text [ spanish ] = "Tipo" ;
+ Text [ english_us ] = "Type" ;
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ turkish ] = "Tip";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_ADD ;
+ PageResID = TP_FRM_ADD ;
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Additions" ;
+ Text [ english_us ] = "Options" ;
+ Text [ italian ] = "Extra" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ dutch ] = "Overige" ;
+ Text [ swedish ] = "Tillägg" ;
+ Text [ danish ] = "Supplerende" ;
+ Text [ portuguese_brazilian ] = "Zusätze" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "ÆäËû";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Dodatki";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_WRAP ;
+ PageResID = TP_FRM_WRAP ;
+ Text = "Umlauf" ;
+ Text [ ENGLISH ] = "Wrap" ;
+ Text [ norwegian ] = "Wrap" ;
+ Text [ italian ] = "Scorrimento" ;
+ Text [ portuguese_brazilian ] = "Circundamento" ;
+ Text [ portuguese ] = "Ajuste" ;
+ Text [ finnish ] = "Kierrätys" ;
+ Text [ danish ] = "Ombrydning" ;
+ Text [ french ] = "Adaptation du texte" ;
+ Text [ swedish ] = "Textanpassning" ;
+ Text [ dutch ] = "Om beeld" ;
+ Text [ spanish ] = "Ajuste" ;
+ Text [ english_us ] = "Wrap" ;
+ Text[ chinese_simplified ] = "»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå";
+ Text[ polish ] = "Obieg tekstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "´«¦æ";
+ Text[ arabic ] = "ÇáÊÝÇÝ";
+ Text[ greek ] = "Áíáäßðëùóç";
+ Text[ korean ] = "¼øȯ";
+ Text[ turkish ] = "Metin daðýlýmý";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_URL ;
+ PageResID = TP_FRM_URL ;
+ Text = "Hyperlink" ;
+ Text [ ENGLISH ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ PageResID = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ english_us ] = "Borders" ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "Kenarlýk";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ PageResID = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ };
+ PageItem
+ {
+ Identifier = TP_COLUMN ;
+ PageResID = TP_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "—ñ";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ };
+ PageItem
+ {
+ Identifier = TP_MACRO_ASSIGN ;
+ Text = "Makro" ;
+ Text [ ENGLISH ] = "Macro" ;
+ Text [ english_us ] = "Macro" ;
+ Text [ italian ] = "Macro" ;
+ Text [ spanish ] = "Macro" ;
+ Text [ french ] = "Macro" ;
+ Text [ dutch ] = "Macro" ;
+ Text [ swedish ] = "Makro" ;
+ Text [ danish ] = "Makro" ;
+ Text [ portuguese_brazilian ] = "Makro" ;
+ Text [ portuguese ] = "Macro" ;
+ Text[ chinese_simplified ] = "ºê";
+ Text[ russian ] = "Ìàêðîñ";
+ Text[ polish ] = "Makro";
+ Text[ japanese ] = "ϸÛ";
+ Text[ chinese_traditional ] = "¥¨¶°";
+ Text[ arabic ] = "ãÇßÑæ";
+ Text[ greek ] = "ÌáêñïåíôïëÞ";
+ Text[ korean ] = "¸ÅÅ©·Î";
+ Text[ turkish ] = "Makro";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Ðàìêà";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçeve";
+};
+TabDialog DLG_FRM_GRF
+{
+ SVLook = TRUE ;
+ Text = "Grafik" ;
+ Text [ ENGLISH ] = "Graphic" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ portuguese_brazilian ] = "Gráfico" ;
+ Text [ portuguese ] = "Imagens" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Billeder" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ english_us ] = "Graphics" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FRM_STD ;
+ PageResID = TP_FRM_STD ;
+ Text = "Typ" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "Type" ;
+ Text [ swedish ] = "Typ" ;
+ Text [ dutch ] = "Type" ;
+ Text [ spanish ] = "Tipo" ;
+ Text [ english_us ] = "Type" ;
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ turkish ] = "Tip";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_ADD ;
+ PageResID = TP_FRM_ADD ;
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Additions" ;
+ Text [ english_us ] = "Options" ;
+ Text [ italian ] = "Extra" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ dutch ] = "Overige" ;
+ Text [ swedish ] = "Tillägg" ;
+ Text [ danish ] = "Supplerende" ;
+ Text [ portuguese_brazilian ] = "Zusätze" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "ÆäËû";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Dodatki";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_WRAP ;
+ PageResID = TP_FRM_WRAP ;
+ Text = "Umlauf" ;
+ Text [ ENGLISH ] = "Wrap" ;
+ Text [ norwegian ] = "Wrap" ;
+ Text [ italian ] = "Scorrimento" ;
+ Text [ portuguese_brazilian ] = "Circundamento" ;
+ Text [ portuguese ] = "Ajuste" ;
+ Text [ finnish ] = "Kierrätys" ;
+ Text [ danish ] = "Ombrydning" ;
+ Text [ french ] = "Adaptation du texte" ;
+ Text [ swedish ] = "Textanpassning" ;
+ Text [ dutch ] = "Om beeld" ;
+ Text [ spanish ] = "Ajuste" ;
+ Text [ english_us ] = "Wrap" ;
+ Text[ chinese_simplified ] = "»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå";
+ Text[ polish ] = "Obieg tekstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "´«¦æ";
+ Text[ arabic ] = "ÇáÊÝÇÝ";
+ Text[ greek ] = "Áíáäßðëùóç";
+ Text[ korean ] = "¼øȯ";
+ Text[ turkish ] = "Metin daðýlýmý";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_URL ;
+ PageResID = TP_FRM_URL ;
+ Text = "Hyperlink" ;
+ Text [ ENGLISH ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ };
+ PageItem
+ {
+ Identifier = TP_GRF_EXT ;
+ PageResID = TP_GRF_EXT ;
+ Text = "Grafik" ;
+ Text [ ENGLISH ] = "Graphic" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ portuguese_brazilian ] = "Gráfico" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Grafik" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ english_us ] = "Graphics" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸½";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_GRFCROP;
+ PageResID = RID_SVXPAGE_GRFCROP;
+ Text = "Zuschneiden" ;
+ Text [ ENGLISH ] = "Crop" ;
+ Text [ dutch ] = "Knippen" ;
+ Text [ english_us ] = "Crop" ;
+ Text [ italian ] = "Taglia" ;
+ Text [ spanish ] = "Recortar" ;
+ Text [ french ] = "Recadrer" ;
+ Text [ swedish ] = "Skära till" ;
+ Text [ danish ] = "Beskær" ;
+ Text [ portuguese_brazilian ] = "Zuschneiden" ;
+ Text [ portuguese ] = "Recortar" ;
+ Text[ chinese_simplified ] = "²Ã¼ô";
+ Text[ russian ] = "Îáðåçàòü";
+ Text[ polish ] = "Przytnij";
+ Text[ japanese ] = "ÄØÐݸÞ";
+ Text[ chinese_traditional ] = "°Å¤U";
+ Text[ arabic ] = "ÇÞÊÕÇÕ";
+ Text[ greek ] = "ÐñïóáñìïãÞ";
+ Text[ korean ] = "ÀÚ¸£±â";
+ Text[ turkish ] = "Kýrpma";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ PageResID = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ english_us ] = "Borders" ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "Kenarlýk";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ PageResID = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ };
+ PageItem
+ {
+ Identifier = TP_MACRO_ASSIGN ;
+ Text = "Makro" ;
+ Text [ ENGLISH ] = "Macro" ;
+ Text [ english_us ] = "Macro" ;
+ Text [ italian ] = "Macro" ;
+ Text [ spanish ] = "Macro" ;
+ Text [ french ] = "Macro" ;
+ Text [ dutch ] = "Macro" ;
+ Text [ swedish ] = "Makro" ;
+ Text [ danish ] = "Makro" ;
+ Text [ portuguese_brazilian ] = "Makro" ;
+ Text [ portuguese ] = "Macro" ;
+ Text[ chinese_simplified ] = "ºê";
+ Text[ russian ] = "Ìàêðîñ";
+ Text[ polish ] = "Makro";
+ Text[ japanese ] = "ϸÛ";
+ Text[ chinese_traditional ] = "¥¨¶°";
+ Text[ arabic ] = "ãÇßÑæ";
+ Text[ greek ] = "ÌáêñïåíôïëÞ";
+ Text[ korean ] = "¸ÅÅ©·Î";
+ Text[ turkish ] = "Makro";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "}";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+};
+TabDialog DLG_FRM_OLE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Objekt" ;
+ Text [ ENGLISH ] = "Object" ;
+ Text [ norwegian ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ portuguese_brazilian ] = "Objeto" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text [ finnish ] = "Objekti" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ french ] = "Objet" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ dutch ] = "Object" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ english_us ] = "Object" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FRM_STD ;
+ PageResID = TP_FRM_STD ;
+ Text = "Typ" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Type" ;
+ Text [ french ] = "Type" ;
+ Text [ swedish ] = "Typ" ;
+ Text [ dutch ] = "Type" ;
+ Text [ spanish ] = "Tipo" ;
+ Text [ english_us ] = "Type" ;
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ russian ] = "Òèï";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ turkish ] = "Tip";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_ADD ;
+ PageResID = TP_FRM_ADD ;
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Additions" ;
+ Text [ english_us ] = "Options" ;
+ Text [ italian ] = "Extra" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ dutch ] = "Overige" ;
+ Text [ swedish ] = "Tillägg" ;
+ Text [ danish ] = "Supplerende" ;
+ Text [ portuguese_brazilian ] = "Zusätze" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "ÆäËû";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Dodatki";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_WRAP ;
+ PageResID = TP_FRM_WRAP ;
+ Text = "Umlauf" ;
+ Text [ ENGLISH ] = "Wrap" ;
+ Text [ norwegian ] = "Wrap" ;
+ Text [ italian ] = "Scorrimento" ;
+ Text [ portuguese_brazilian ] = "Circundamento" ;
+ Text [ portuguese ] = "Ajuste" ;
+ Text [ finnish ] = "Kierrätys" ;
+ Text [ danish ] = "Ombrydning" ;
+ Text [ french ] = "Adaptation du texte" ;
+ Text [ swedish ] = "Textanpassning" ;
+ Text [ dutch ] = "Om beeld" ;
+ Text [ spanish ] = "Ajuste" ;
+ Text [ english_us ] = "Wrap" ;
+ Text[ chinese_simplified ] = "»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå";
+ Text[ polish ] = "Obieg tekstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "´«¦æ";
+ Text[ arabic ] = "ÇáÊÝÇÝ";
+ Text[ greek ] = "Áíáäßðëùóç";
+ Text[ korean ] = "¼øȯ";
+ Text[ turkish ] = "Metin daðýlýmý";
+ };
+ PageItem
+ {
+ Identifier = TP_FRM_URL ;
+ PageResID = TP_FRM_URL ;
+ Text = "Hyperlink" ;
+ Text [ ENGLISH ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ PageResID = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ english_us ] = "Borders" ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "Kenarlýk";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ PageResID = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ };
+ /*
+ PageItem {
+ Identifier = TP_COLUMN ;
+ PageResID = TP_COLUMN;
+ Text = "Spalten" ;
+ Text[ ENGLISH ] = "Columns" ;
+ Text[ norwegian ] = "Kolonner" ;
+ Text[ italian ] = "Colonne" ;
+ Text[ portuguese_brazilian] = "Colunas" ;
+ Text[ portuguese ] = "Colunas" ;
+ Text[ finnish ] = "Sarakkeet" ;
+ Text[ danish ] = "Spalter" ;
+ Text[ french ] = "Colonnes" ;
+ Text[ swedish ] = "Kolumner" ;
+ Text[ dutch ] = "Kolommen" ;
+ Text[ spanish ] = "Columnas" ;
+ Text[ english_us ] = "Columns" ;
+ };
+*/
+ PageItem
+ {
+ Identifier = TP_MACRO_ASSIGN ;
+ Text = "Makro" ;
+ Text [ ENGLISH ] = "Macro" ;
+ Text [ english_us ] = "Macro" ;
+ Text [ italian ] = "Macro" ;
+ Text [ spanish ] = "Macro" ;
+ Text [ french ] = "Macro" ;
+ Text [ dutch ] = "Macro" ;
+ Text [ swedish ] = "Makro" ;
+ Text [ danish ] = "Makro" ;
+ Text [ portuguese_brazilian ] = "Makro" ;
+ Text [ portuguese ] = "Macro" ;
+ Text[ chinese_simplified ] = "ºê";
+ Text[ russian ] = "Ìàêðîñ";
+ Text[ polish ] = "Makro";
+ Text[ japanese ] = "ϸÛ";
+ Text[ chinese_traditional ] = "¥¨¶°";
+ Text[ arabic ] = "ãÇßÑæ";
+ Text[ greek ] = "ÌáêñïåíôïëÞ";
+ Text[ korean ] = "¸ÅÅ©·Î";
+ Text[ turkish ] = "Makro";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ russian ] = "Îáúåêò";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ª«¥ó";
+ Text[ arabic ] = "ßÇÆä";
+ Text[ greek ] = "Áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼";
+ Text[ turkish ] = "Nesne";
+};
+TabPage TP_FRM_STD
+{
+ HelpID = HID_FRM_STD ;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ FixedText FT_WIDTH
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 21 , 10 ) ;
+ Left = TRUE ;
+ Text = "~Breite" ;
+ Text [ ENGLISH ] = "~Width" ;
+ Text [ norwegian ] = "~Bredde" ;
+ Text [ italian ] = "~Largh." ;
+ Text [ portuguese_brazilian ] = "~Largura" ;
+ Text [ portuguese ] = "~Largura" ;
+ Text [ finnish ] = "~Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "~Larg." ;
+ Text [ swedish ] = "~Bredd" ;
+ Text [ dutch ] = "B~reedte" ;
+ Text [ spanish ] = "A~ncho" ;
+ Text [ english_us ] = "~Width" ;
+ Text[ chinese_simplified ] = "¿í¶È(~W)";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "•(~W)";
+ Text[ chinese_traditional ] = "¼e«×(~W)";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ(~W)";
+ Text[ turkish ] = "~Geniþlik";
+ };
+ MetricField ED_WIDTH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 33 , 14 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Text = "12,99" ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 5 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 5 ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ CheckBox CB_REL_WIDTH
+ {
+ Pos = MAP_APPFONT ( 78 , 16 ) ;
+ Size = MAP_APPFONT ( 35 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~Relativ" ;
+ Text [ ENGLISH ] = "Relativ" ;
+ Text [ dutch ] = "~Relatief" ;
+ Text [ english_us ] = "Relat~ive" ;
+ Text [ italian ] = "~Relativo" ;
+ Text [ spanish ] = "R~elativo" ;
+ Text [ french ] = "~Relatif" ;
+ Text [ swedish ] = "~Relativ" ;
+ Text [ danish ] = "Relativ" ;
+ Text [ portuguese_brazilian ] = "~Relativ" ;
+ Text [ portuguese ] = "~Relativo" ;
+ Text[ chinese_simplified ] = "숦﵀(~V)";
+ Text[ russian ] = "Îòíîñèò.";
+ Text[ polish ] = "Wzglê~dny";
+ Text[ japanese ] = "Š„‡(~V)";
+ Text[ chinese_traditional ] = "¬Û¹ïªº(~V)";
+ Text[ arabic ] = "äÓÈí";
+ Text[ greek ] = "Ó÷åôéêÜ";
+ Text[ korean ] = "ºñ·Ê(~I)";
+ Text[ turkish ] = "~Göreceli";
+ };
+ FixedText FT_HEIGHT
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 21 , 10 ) ;
+ Left = TRUE ;
+ Text = "Höh~e" ;
+ Text [ ENGLISH ] = "H~eight" ;
+ Text [ norwegian ] = "H~eight" ;
+ Text [ italian ] = "Altezza" ;
+ Text [ portuguese_brazilian ] = "A~ltura" ;
+ Text [ portuguese ] = "A~ltura" ;
+ Text [ finnish ] = "~Korkeus" ;
+ Text [ danish ] = "Højde" ;
+ Text [ french ] = "~Haut." ;
+ Text [ swedish ] = "Höj~d" ;
+ Text [ dutch ] = "H~oogte" ;
+ Text [ spanish ] = "A~ltura" ;
+ Text [ english_us ] = "~Height" ;
+ Text[ chinese_simplified ] = "¸ß¶È(~H)";
+ Text[ russian ] = "Âûñîòà";
+ Text[ polish ] = "Wys.";
+ Text[ japanese ] = "‚‚³(~H)";
+ Text[ chinese_traditional ] = "°ª«×(~H)";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ";
+ Text[ greek ] = "¾øïò";
+ Text[ korean ] = "³ôÀÌ(~H)";
+ Text[ turkish ] = "~Yüks.";
+ };
+ MetricField ED_HEIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 33 , 29 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 5 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 5 ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ CheckBox CB_REL_HEIGHT
+ {
+ Pos = MAP_APPFONT ( 78 , 31 ) ;
+ Size = MAP_APPFONT ( 35 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "Re~lativ" ;
+ Text [ ENGLISH ] = "Relativ" ;
+ Text [ dutch ] = "Re~latief" ;
+ Text [ english_us ] = "Re~lative" ;
+ Text [ italian ] = "Re~lativo" ;
+ Text [ spanish ] = "Rela~tivo" ;
+ Text [ french ] = "Re~latif" ;
+ Text [ swedish ] = "Rel~ativ" ;
+ Text [ danish ] = "Relativ" ;
+ Text [ portuguese_brazilian ] = "Re~lativ" ;
+ Text [ portuguese ] = "Relat~ivo" ;
+ Text[ chinese_simplified ] = "숦﵀(~E)";
+ Text[ russian ] = "Îòíîñèò.";
+ Text[ polish ] = "Wzglêd~ny";
+ Text[ japanese ] = "Š„‡(~E)";
+ Text[ chinese_traditional ] = "¬Û¹ïªº(~E)";
+ Text[ arabic ] = "äÓÈí";
+ Text[ greek ] = "Ó÷åôéêÜ";
+ Text[ korean ] = "ºñ·Ê(~L)";
+ Text[ turkish ] = "G~öreceli";
+ };
+ CheckBox CB_FIXEDRATIO
+ {
+ Pos = MAP_APPFONT ( 12 , 47 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "Abgle~ich" ;
+ Text [ ENGLISH ] = "Fixed ratio" ;
+ Text [ english_us ] = "~Keep ratio" ;
+ Text [ dutch ] = "~Synchroniseren" ;
+ Text [ italian ] = "Proporz." ;
+ Text [ spanish ] = "Prop~orcional" ;
+ Text [ french ] = "~Proportionnel" ;
+ Text [ swedish ] = "~proportionellt" ;
+ Text [ danish ] = "Proport." ;
+ Text [ portuguese_brazilian ] = "Abgle~ich" ;
+ Text [ portuguese ] = "Pr~oporcional" ;
+ Text[ chinese_simplified ] = "ͬ²½»¯(~K)";
+ Text[ russian ] = "Ïðîïîðöèîíàëüíî";
+ Text[ polish ] = "Dopas~uj";
+ Text[ japanese ] = "’²®(~K)";
+ Text[ chinese_traditional ] = "¦P¨B¤Æ(~K)";
+ Text[ arabic ] = "ÊÒÇãä";
+ Text[ greek ] = "Áíáëïã~éêÜ";
+ Text[ korean ] = "ºñÀ² À¯Áö(~K)";
+ Text[ turkish ] = "Orant~ý";
+ };
+ CheckBox CB_AUTOHEIGHT
+ {
+ Pos = MAP_APPFONT ( 56 , 47 ) ;
+ Size = MAP_APPFONT ( 58 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "auto. H~öhe" ;
+ Text [ ENGLISH ] = "auto. Hei~ght" ;
+ Text [ norwegian ] = "auto. Hei~ght" ;
+ Text [ italian ] = "Altezza. ~auto" ;
+ Text [ portuguese_brazilian ] = "Altura automática" ;
+ Text [ portuguese ] = "Altura automática" ;
+ Text [ finnish ] = "automaattinen k~orkeus" ;
+ Text [ danish ] = "Auto. højde" ;
+ Text [ french ] = "Hau~teur auto." ;
+ Text [ swedish ] = "auto. h~öjd" ;
+ Text [ dutch ] = "Auto. h~oogte" ;
+ Text [ spanish ] = "Altura auto~m." ;
+ Text [ english_us ] = "AutoHei~ght" ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸ß¶È(~G)";
+ Text[ russian ] = "Àâòîïîäáîð âûñîòû";
+ Text[ polish ] = "~Autom. wys.";
+ Text[ japanese ] = "‚‚³Ž©“®’²®(~G)";
+ Text[ chinese_traditional ] = "¦Û°Ê°ª«×(~G)";
+ Text[ arabic ] = "ÇÑÊÝÇÚ ÊáÞÇÆí";
+ Text[ greek ] = "Áõôüìáôï ýøïò";
+ Text[ korean ] = "ÀÚµ¿ ³ôÀÌ(~G)";
+ Text[ turkish ] = "otom. ~yüksekl.";
+ };
+ GroupBox GB_SIZE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 114 , 60 ) ;
+ Text = "Größe" ;
+ Text [ ENGLISH ] = "Size" ;
+ Text [ norwegian ] = "Størrelse" ;
+ Text [ italian ] = "Dimensione" ;
+ Text [ portuguese_brazilian ] = "Tamanho" ;
+ Text [ portuguese ] = "Tamanho" ;
+ Text [ finnish ] = "Koko" ;
+ Text [ danish ] = "Størrelse" ;
+ Text [ french ] = "Taille" ;
+ Text [ swedish ] = "Storlek" ;
+ Text [ dutch ] = "Grootte" ;
+ Text [ spanish ] = "Tamaño" ;
+ Text [ english_us ] = "Size" ;
+ Text[ chinese_simplified ] = "´óС";
+ Text[ russian ] = "Ðàçìåð";
+ Text[ polish ] = "Rozmiar";
+ Text[ japanese ] = "»²½Þ";
+ Text[ chinese_traditional ] = "¤j¤p";
+ Text[ arabic ] = "ÇáÍÌã";
+ Text[ greek ] = "ÌÝãåèïò";
+ Text[ korean ] = "Å©±â";
+ Text[ turkish ] = "Boyut";
+ };
+ RadioButton RB_ANCHOR_TYPE
+ {
+ Pos = MAP_APPFONT ( 132 , 16 ) ;
+ Size = MAP_APPFONT ( 25 , 10 ) ;
+ Text = "~an" ;
+ Text [ ENGLISH ] = "as" ;
+ Check = TRUE ;
+ Text [ english_us ] = "~To" ;
+ Text [ portuguese_brazilian ] = "~an" ;
+ Text [ swedish ] = "t~ill" ;
+ Text [ danish ] = "til" ;
+ Text [ italian ] = "~a" ;
+ Text [ spanish ] = "~A" ;
+ Text [ french ] = "~À" ;
+ Text [ dutch ] = "~aan" ;
+ Text [ portuguese ] = "pa~ra" ;
+ Text[ chinese_simplified ] = "ÖÁ(~T)";
+ Text[ russian ] = "~ê";
+ Text[ polish ] = "do";
+ Text[ japanese ] = "êŠ(~T)";
+ Text[ chinese_traditional ] = "¦Ü(~T)";
+ Text[ arabic ] = "Úáì";
+ Text[ greek ] = "ðñïò";
+ Text[ korean ] = "¸ÂÃâ °÷(~T)";
+ Text[ turkish ] = "~noktasý";
+ };
+ ListBox LB_ANCHOR_TYPE
+ {
+ Pos = MAP_APPFONT ( 158 , 14 ) ;
+ Size = MAP_APPFONT ( 46 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Seite" ; > ;
+ < "Absatz" ; > ;
+ < "Zeichen" ; > ;
+ < "Rahmen" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "Seite" ; > ;
+ < "Absatz" ; > ;
+ < "Zeichen" ; > ;
+ < "Rahmen" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "Page" ; > ;
+ < "Paragraph" ; > ;
+ < "Character" ; > ;
+ < "Frame" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Seite" ; > ;
+ < "Absatz" ; > ;
+ < "Zeichen" ; > ;
+ < "Rahmen" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "sida" ; > ;
+ < "stycke" ; > ;
+ < "tecken" ; > ;
+ < "Ram" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Side" ; > ;
+ < "Afsnit" ; > ;
+ < "Tegn" ; > ;
+ < "Ramme" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Pagina" ; > ;
+ < "Paragrafo" ; > ;
+ < "Carattere" ; > ;
+ < "Cornice" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Página" ; > ;
+ < "Párrafo" ; > ;
+ < "Carácter" ; > ;
+ < "Marcos" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Page" ; > ;
+ < "Paragraphe" ; > ;
+ < "Caractère" ; > ;
+ < "Cadre" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Pagina" ; > ;
+ < "Alinea" ; > ;
+ < "Teken" ; > ;
+ < "Kader" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Página" ; > ;
+ < "Parágrafo" ; > ;
+ < "Caracteres" ; > ;
+ < "Molduras" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "Ò³" ; > ;
+ < "¶ÎÂä" ; > ;
+ < "×Ö·û" ; > ;
+ < "¿ò" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Ñòðàíèöà" ; > ;
+ < "Àáçàö" ; > ;
+ < "Çíàê" ; > ;
+ < "Ðàìêà" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Strona" ; > ;
+ < "Akapit" ; > ;
+ < "Znak" ; > ;
+ < "Ramka" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "Íß°¼Þ" ; > ;
+ < "’i—Ž" ; > ;
+ < "•¶Žš" ; > ;
+ < "˜g" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "­¶" ; > ;
+ < "¬q¸¨" ; > ;
+ < "¦r¤¸" ; > ;
+ < "¤å¦r¤è¶ô" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÇáÕÝÍÉ" ; > ;
+ < "ÇáÝÞÑÉ" ; > ;
+ < "ÎØ" ; > ;
+ < "ÅØÇÑ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "Óåëßäá" ; > ;
+ < "ÐáñÜãñáöïò" ; > ;
+ < "×áñáêôÞñåò" ; > ;
+ < "Ðåñßãñáììá" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ÆäÀÌÁö" ; > ;
+ < "´Ü¶ô" ; > ;
+ < "¹®ÀÚ" ; > ;
+ < "ÇÁ·¹ÀÓ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Sayfa" ; > ;
+ < "Paragraf" ; > ;
+ < "Karakter" ; > ;
+ < "Çerçeve" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < "Seite" ; > ;
+ < "Absatz" ; > ;
+ < "Zeichen" ; > ;
+ < "Rahmen" ; > ;
+ };
+ };
+ RadioButton RB_ANCHOR_CHAR
+ {
+ Pos = MAP_APPFONT ( 132 , 29 ) ;
+ Size = MAP_APPFONT ( 72 , 10 ) ;
+ Text = "als Zei~chen" ;
+ Text [ ENGLISH ] = "like a character" ;
+ Text [ english_us ] = "~As character" ;
+ Text [ portuguese_brazilian ] = "als Zei~chen" ;
+ Text [ swedish ] = "som te~cken" ;
+ Text [ danish ] = "som tegn" ;
+ Text [ italian ] = "quale ~carattere" ;
+ Text [ spanish ] = "Como ~carácter" ;
+ Text [ french ] = "Comme c~aractère" ;
+ Text [ dutch ] = "als te~ken" ;
+ Text [ portuguese ] = "como ~carácter" ;
+ Text[ chinese_simplified ] = "µ±×÷×Ö·û(~H)";
+ Text[ russian ] = "êàê çíàê";
+ Text[ polish ] = "jako zna~k";
+ Text[ japanese ] = "•¶Žš‚Æ‚µ‚Ä(~H)";
+ Text[ language_user1 ] = "èëè: ñèìâîë; èëè ðèñóíîê - èëE ñèEüJ; èëEðèñóûM";
+ Text[ chinese_traditional ] = "·í§@¦r¤¸(~H)";
+ Text[ arabic ] = "ßÍÑÝ";
+ Text[ greek ] = "ùò ÷áñáêôÞñáò";
+ Text[ korean ] = "¹®ÀÚ·Î(~A)";
+ Text[ turkish ] = "karakter o~larak";
+ };
+ /* RadioButton RB_TYPE_PAGE
+ {
+ Pos = MAP_APPFONT ( 132 , 15 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~Seite" ;
+ Text [ ENGLISH ] = "Bound to page" ;
+ Text [ norwegian ] = "Bound to page" ;
+ Text [ italian ] = "Pagina" ;
+ Text [ portuguese_brazilian ] = "Limitado à página" ;
+ Text [ portuguese ] = "~Página" ;
+ Text [ finnish ] = "Sido sivulle" ;
+ Text [ danish ] = "På siden" ;
+ Text [ french ] = "P~age" ;
+ Text [ swedish ] = "~Sida" ;
+ Text [ dutch ] = "~Pagina" ;
+ Text [ spanish ] = "Pági~na" ;
+ Text [ english_us ] = "~Page" ;
+ };
+ RadioButton RB_TYPE_PARAGRAPH
+ {
+ Pos = MAP_APPFONT ( 132 , 28 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Absatz" ;
+ Text [ ENGLISH ] = "Frame at ~Paragraph" ;
+ Text [ norwegian ] = "Frame at ~Paragraph" ;
+ Text [ italian ] = "~Paragrafo" ;
+ Text [ portuguese_brazilian ] = "Moldura em ~Parágrafo" ;
+ Text [ portuguese ] = "~Parágrafo" ;
+ Text [ finnish ] = "Kehys ~kappaleessa" ;
+ Text [ danish ] = "Ved ~afsnit" ;
+ Text [ french ] = "~Paragraphe" ;
+ Text [ swedish ] = "St~ycke" ;
+ Text [ dutch ] = "~Alinea" ;
+ Text [ spanish ] = "Párra~fo" ;
+ Text [ english_us ] = "~Paragraph" ;
+ };
+ RadioButton RB_TYPE_CHAR
+ {
+ Pos = MAP_APPFONT ( 132 , 41 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Zei~chen" ;
+ Text [ ENGLISH ] = "Frame at ~Character" ;
+ Text [ norwegian ] = "Frame at ~Character" ;
+ Text [ italian ] = "~Carattere" ;
+ Text [ portuguese_brazilian ] = "Moldura em ~Caracter" ;
+ Text [ portuguese ] = "~Caracter" ;
+ Text [ finnish ] = "Kehys ~merkissä" ;
+ Text [ danish ] = "På tegnet" ;
+ Text [ french ] = "~Caractère" ;
+ Text [ swedish ] = "~Tecken" ;
+ Text [ dutch ] = "~Teken" ;
+ Text [ spanish ] = "~Carácter" ;
+ Text [ english_us ] = "~Character" ;
+ };
+ RadioButton RB_TYPE_FLY
+ {
+ Pos = MAP_APPFONT ( 132 , 54 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Rahmen" ;
+ Text [ ENGLISH ] = "Frame at ~Frame" ;
+ Text [ english_us ] = "~Frame" ;
+ Text [ portuguese_brazilian ] = "~Rahmen" ;
+ Text [ swedish ] = "~Ramar" ;
+ Text [ danish ] = "~Rahmen" ;
+ Text [ italian ] = "~Cornice" ;
+ Text [ spanish ] = "~Marcos" ;
+ Text [ french ] = "~Cadre" ;
+ Text [ dutch ] = "~Kader" ;
+ Text [ portuguese ] = "~Moldura" ;
+ };*/
+ GroupBox GB_TYPE
+ {
+ Pos = MAP_APPFONT ( 126 , 3 ) ;
+ Size = MAP_APPFONT ( 84 , 39 ) ;
+ Text = "Verankerung" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ norwegian ] = "Type" ;
+ Text [ italian ] = "Ancoraggio" ;
+ Text [ portuguese_brazilian ] = "Tipo" ;
+ Text [ portuguese ] = "Âncora" ;
+ Text [ finnish ] = "Laji" ;
+ Text [ danish ] = "Forankring" ;
+ Text [ french ] = "Ancrage" ;
+ Text [ swedish ] = "Förankring" ;
+ Text [ dutch ] = "Verankering" ;
+ Text [ spanish ] = "Anclaje" ;
+ Text [ english_us ] = "Anchor" ;
+ Text[ chinese_simplified ] = "Ëø¶¨";
+ Text[ russian ] = "Ïðèâÿçêà";
+ Text[ polish ] = "Zakotwiczenie";
+ Text[ japanese ] = "±Ý¶°";
+ Text[ chinese_traditional ] = "Âê©w";
+ Text[ arabic ] = "ÅÑÓÇÁ";
+ Text[ greek ] = "Áãêýñùóç";
+ Text[ korean ] = "°íÁ¤ ±âÁØ";
+ Text[ turkish ] = "Sabitleme";
+ };
+ Window WN_BSP
+ {
+ Pos = MAP_APPFONT ( 217 , 6 ) ;
+ Size = MAP_APPFONT ( 39 , 58 ) ;
+ };
+ PushButton BT_REALSIZE
+ {
+ Pos = MAP_APPFONT ( 126 , 49 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text = "Originalgr~öße" ;
+ Text [ ENGLISH ] = "Real Size" ;
+ Text [ norwegian ] = "Real Size" ;
+ Text [ italian ] = "Dimens. originale" ;
+ Text [ portuguese_brazilian ] = "Tamanho real" ;
+ Text [ portuguese ] = "Tamanho original" ;
+ Text [ finnish ] = "Todellinen koko" ;
+ Text [ danish ] = "Oprindelig størrelse" ;
+ Text [ french ] = "Taille d'~origine" ;
+ Text [ swedish ] = "Originalst~orlek" ;
+ Text [ dutch ] = "~Originele grootte" ;
+ Text [ spanish ] = "Ta~maño original" ;
+ Text [ english_us ] = "Original Size" ;
+ Text[ chinese_simplified ] = "Ô­¼þ´óС";
+ Text[ russian ] = "Èñõîäíûé ðàçìåð";
+ Text[ polish ] = "Rozmiar oryginalny";
+ Text[ japanese ] = "Œ³‚Ì»²½Þ";
+ Text[ chinese_traditional ] = "­ì¥ó¤j¤p";
+ Text[ arabic ] = "ÇáÍÌã ÇáÃÕáí";
+ Text[ greek ] = "Áñ÷éêü ìÝãåèïò";
+ Text[ korean ] = "±âº» Å©±â";
+ Text[ turkish ] = "Ýlk b~oyut";
+ };
+ FixedText FT_HORIZONTAL
+ {
+ Pos = MAP_APPFONT ( 12 , 81 ) ;
+ Size = MAP_APPFONT ( 35 , 10 ) ;
+ Left = TRUE ;
+ Text = "Horizon~tal" ;
+ Text [ ENGLISH ] = "Hori~zontal" ;
+ Text [ norwegian ] = "Hori~zontal" ;
+ Text [ italian ] = "Ori~zzontale" ;
+ Text [ portuguese_brazilian ] = "Hori~zontal" ;
+ Text [ portuguese ] = "Hori~zontal" ;
+ Text [ finnish ] = "~Vaaksuunta" ;
+ Text [ danish ] = "Vandret" ;
+ Text [ french ] = "Hori~zontale" ;
+ Text [ swedish ] = "H~orisontellt" ;
+ Text [ dutch ] = "Horizon~taal" ;
+ Text [ spanish ] = "Hori~zontal" ;
+ Text [ english_us ] = "Hori~zontal" ;
+ Text[ chinese_simplified ] = "ˮƽ·½Ïò(~Z)";
+ Text[ russian ] = "Ïî ãîðèçîíòàëè";
+ Text[ polish ] = "W poziomie";
+ Text[ japanese ] = "‰¡(~Z)";
+ Text[ chinese_traditional ] = "¤ô¥­(~Z)";
+ Text[ arabic ] = "ÃÝÞí";
+ Text[ greek ] = "Ïñéæüíôéá";
+ Text[ korean ] = "¼öÆò(~Z)";
+ Text[ turkish ] = "Ya~tay";
+ };
+ ListBox DLB_HORIZONTAL
+ {
+ Pos = MAP_APPFONT ( 49 , 79 ) ;
+ Size = MAP_APPFONT ( 50 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_AT_HORZ_POS
+ {
+ Pos = MAP_APPFONT ( 102 , 81 ) ;
+ Size = MAP_APPFONT ( 12 , 10 ) ;
+ Left = TRUE ;
+ Text = "~um" ;
+ Text [ ENGLISH ] = "at" ;
+ Text [ norwegian ] = "i" ;
+ Text [ italian ] = "~di" ;
+ Text [ portuguese_brazilian ] = "em" ;
+ Text [ portuguese ] = "em" ;
+ Text [ finnish ] = " - " ;
+ Text [ danish ] = "ved" ;
+ Text [ french ] = "~de" ;
+ Text [ swedish ] = "~med" ;
+ Text [ dutch ] = "~om" ;
+ Text [ spanish ] = "a" ;
+ Text [ english_us ] = "by" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "íà";
+ Text[ polish ] = "o";
+ Text[ japanese ] = "ŠÔŠu";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÈãÞÏÇÑ";
+ Text[ greek ] = "á~íÜ";
+ Text[ korean ] = "Á¤µµ";
+ Text[ turkish ] = "g~rnt.";
+ };
+ MetricField ED_AT_HORZ_POS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 118 , 79 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = -9999 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = -9999 ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_HORI_RELATION
+ {
+ Pos = MAP_APPFONT ( 161 , 81 ) ;
+ Size = MAP_APPFONT ( 16 , 10 ) ;
+ Left = TRUE ;
+ Text = "zu" ;
+ Text [ ENGLISH ] = "to" ;
+ Text [ english_us ] = "to" ;
+ Text [ portuguese_brazilian ] = "zu" ;
+ Text [ swedish ] = "till" ;
+ Text [ danish ] = "fra" ;
+ Text [ italian ] = "a" ;
+ Text [ spanish ] = "a" ;
+ Text [ french ] = "de" ;
+ Text [ dutch ] = "naar" ;
+ Text [ portuguese ] = "para" ;
+ Text[ chinese_simplified ] = "ÖÁ";
+ Text[ russian ] = "ê";
+ Text[ polish ] = "do";
+ Text[ japanese ] = "‘ÎÛ";
+ Text[ chinese_traditional ] = "¦Ü";
+ Text[ arabic ] = "Åáì";
+ Text[ greek ] = "ðñïò";
+ Text[ korean ] = "¸ÂÃâ ¹æÇâ";
+ Text[ turkish ] = "->";
+ Text[ language_user1 ] = "\"zu\" muss ich hier weglassen weils es als Suffix im letzten Satzelement (Listbox) schon vorkommt.";
+ };
+ ListBox LB_HORI_RELATION
+ {
+ Pos = MAP_APPFONT ( 178 , 79 ) ;
+ Size = MAP_APPFONT ( 70 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ CheckBox CB_MIRROR
+ {
+ Pos = MAP_APPFONT ( 49 , 95 ) ;
+ Size = MAP_APPFONT ( 205 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "Auf geraden Seiten ~spiegeln" ;
+ Text [ ENGLISH ] = "Switch position on even page numbers" ;
+ Text [ english_us ] = "~Mirror on even pages" ;
+ Text [ portuguese_brazilian ] = "Auf geraden Seiten ~spiegeln" ;
+ Text [ swedish ] = "~spegelvänd på jämna sidor" ;
+ Text [ danish ] = "Spejlvend på lige sider" ;
+ Text [ italian ] = "Rispecchia su pagine ~pari" ;
+ Text [ spanish ] = "Reflejar en ~páginas pares" ;
+ Text [ french ] = "~En vis-à-vis sur les pages paires" ;
+ Text [ dutch ] = "Op even pagina's ~spiegelen" ;
+ Text [ portuguese ] = "Inverter em páginas ~pares" ;
+ Text[ chinese_simplified ] = "·´Ó³µ½Å¼ÊýÒ³Ãæ(~E)";
+ Text[ russian ] = "Îòîáðàçèòü íà ÷åòíûõ ñòðàíèöàõ";
+ Text[ polish ] = "Przerzu~æ na parzystych stronach";
+ Text[ japanese ] = "‹ô”Íß°¼Þ‚É”½“](~E)";
+ Text[ chinese_traditional ] = "¤Ï¬M¨ì°¸¼Æ­¶­±(~E)";
+ Text[ arabic ] = "ÇäÚßÇÓ Úáì ÇáÕÝÍÇÊ ÇáÒæÌíÉ";
+ Text[ greek ] = "Êáèñåðôé~óìüò óôéò Üñôéåò óåëßäåò";
+ Text[ korean ] = "¦¼ö ÆäÀÌÁö ¸¶ÁÖº¸±â(~M)";
+ Text[ turkish ] = "Çift numaralý sayfalarda ya~nsýt";
+ };
+ FixedText FT_VERTICAL
+ {
+ Pos = MAP_APPFONT ( 12 , 111 ) ;
+ Size = MAP_APPFONT ( 35 , 10 ) ;
+ Left = TRUE ;
+ Text = "~Vertikal" ;
+ Text [ ENGLISH ] = "~Vertical" ;
+ Text [ norwegian ] = "~Vertikal" ;
+ Text [ italian ] = "~Verticale" ;
+ Text [ portuguese_brazilian ] = "~Vertical" ;
+ Text [ portuguese ] = "~Vertical" ;
+ Text [ finnish ] = "~Rinnakkain" ;
+ Text [ danish ] = "Lodret" ;
+ Text [ french ] = "~Verticale" ;
+ Text [ swedish ] = "~Vertikalt" ;
+ Text [ dutch ] = "~Verticaal" ;
+ Text [ spanish ] = "~Vertical" ;
+ Text [ english_us ] = "~Vertical" ;
+ Text[ chinese_simplified ] = "´¹Ö±·½Ïò(~V)";
+ Text[ russian ] = "Ïî âåðòèêàëè";
+ Text[ polish ] = "W pionie";
+ Text[ japanese ] = "c(~V)";
+ Text[ chinese_traditional ] = "««ª½¤è¦V(~V)";
+ Text[ arabic ] = "ÑÃÓí";
+ Text[ greek ] = "Êáôáêüñõöá";
+ Text[ korean ] = "¼öÁ÷(~V)";
+ Text[ turkish ] = "Di~key";
+ };
+ ListBox DLB_VERTICAL
+ {
+ Pos = MAP_APPFONT ( 49 , 109 ) ;
+ Size = MAP_APPFONT ( 50 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_AT_VERT_POS
+ {
+ Pos = MAP_APPFONT ( 102 , 111 ) ;
+ Size = MAP_APPFONT ( 12 , 10 ) ;
+ Left = TRUE ;
+ Text = "u~m" ;
+ Text [ ENGLISH ] = "at" ;
+ Text [ norwegian ] = "i" ;
+ Text [ italian ] = "di" ;
+ Text [ portuguese_brazilian ] = "em" ;
+ Text [ portuguese ] = "em" ;
+ Text [ finnish ] = " - " ;
+ Text [ danish ] = "ved" ;
+ Text [ french ] = "d~e" ;
+ Text [ swedish ] = "m~ed" ;
+ Text [ dutch ] = "~om" ;
+ Text [ spanish ] = "a" ;
+ Text [ english_us ] = "by" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "íà";
+ Text[ polish ] = "o";
+ Text[ japanese ] = "ŠÔŠu";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÈãÞÏÇÑ";
+ Text[ greek ] = "áíÜ";
+ Text[ korean ] = "¿¡ ÀÇÇØ";
+ Text[ turkish ] = "gr~nt.";
+ };
+ MetricField ED_AT_VERT_POS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 118 , 109 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = -9999 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = -9999 ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_VERT_RELATION
+ {
+ Pos = MAP_APPFONT ( 161 , 111 ) ;
+ Size = MAP_APPFONT ( 16 , 10 ) ;
+ Left = TRUE ;
+ Text = "zu" ;
+ Text [ ENGLISH ] = "to" ;
+ Text [ english_us ] = "to" ;
+ Text [ portuguese_brazilian ] = "zu" ;
+ Text [ swedish ] = "till" ;
+ Text [ danish ] = "fra" ;
+ Text [ italian ] = "a" ;
+ Text [ spanish ] = "a" ;
+ Text [ french ] = "de" ;
+ Text [ dutch ] = "naar" ;
+ Text [ portuguese ] = "para" ;
+ Text[ chinese_simplified ] = "ÖÁ";
+ Text[ russian ] = "ê";
+ Text[ polish ] = "do";
+ Text[ japanese ] = "‘ÎÛ";
+ Text[ chinese_traditional ] = "¦Ü";
+ Text[ arabic ] = "Åáì";
+ Text[ greek ] = "ðñïò";
+ Text[ korean ] = "¸ÂÃâ ¹æÇâ";
+ Text[ turkish ] = "->";
+ Text[ language_user1 ] = "\"zu\" muss ich hier weglassen weils es als Suffix im letzten Satzelement (Listbox) schon vorkommt.";
+ };
+ ListBox LB_VERT_RELATION
+ {
+ Pos = MAP_APPFONT ( 178 , 109 ) ;
+ Size = MAP_APPFONT ( 70 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ GroupBox GB_POSITION
+ {
+ Pos = MAP_APPFONT ( 6 , 66 ) ;
+ Size = MAP_APPFONT ( 248 , 63 ) ;
+ Text = "Position" ;
+ Text [ ENGLISH ] = "Position" ;
+ Text [ norwegian ] = "Posisjon" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ portuguese_brazilian ] = "Posição" ;
+ Text [ portuguese ] = "Posição" ;
+ Text [ finnish ] = "Sijainti" ;
+ Text [ danish ] = "Placering" ;
+ Text [ french ] = "Position" ;
+ Text [ swedish ] = "Position" ;
+ Text [ dutch ] = "Positie" ;
+ Text [ spanish ] = "Posición" ;
+ Text [ english_us ] = "Position" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ };
+};
+TabPage TP_GRF_EXT
+{
+ Hide = TRUE ;
+ HelpID = HID_GRF_EXT ;
+ SVLook = TRUE ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Bitmap BMP_EXAMPLE
+ {
+ File = "dog.bmp" ;
+ };
+ GroupBox GB_CONNECT
+ {
+ Pos = MAP_APPFONT ( 6 , 91 ) ;
+ Size = MAP_APPFONT ( 248 , 38 ) ;
+ Text = "Verknüpfung" ;
+ Text [ ENGLISH ] = "Link" ;
+ Text [ norwegian ] = "Kobling" ;
+ Text [ italian ] = "Collegamento" ;
+ Text [ portuguese_brazilian ] = "Ligar" ;
+ Text [ portuguese ] = "Ligar" ;
+ Text [ finnish ] = "Yhteys" ;
+ Text [ danish ] = "Kæde" ;
+ Text [ french ] = "Lien" ;
+ Text [ swedish ] = "Länk" ;
+ Text [ dutch ] = "Koppeling" ;
+ Text [ spanish ] = "Vínculo" ;
+ Text [ english_us ] = "Link" ;
+ Text[ chinese_simplified ] = "Á´½Ó";
+ Text[ russian ] = "Ññûëêà";
+ Text[ polish ] = "£¹cze";
+ Text[ japanese ] = "Øݸ";
+ Text[ chinese_traditional ] = "±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØ";
+ Text[ greek ] = "Óýíäåóç";
+ Text[ korean ] = "¿¬°á";
+ Text[ turkish ] = "Baðlantý";
+ };
+ FixedText FT_CONNECT
+ {
+ Pos = MAP_APPFONT ( 13 , 102 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ Text = "~Dateiname" ;
+ Text [ English ] = "Filename" ;
+ Text [ english_us ] = "~File name" ;
+ Text [ italian ] = "~Nome file" ;
+ Text [ spanish ] = "~Nombre de archivo" ;
+ Text [ french ] = "~Nom de fichier" ;
+ Text [ dutch ] = "~Naam bestand" ;
+ Text [ swedish ] = "~Filnamn" ;
+ Text [ danish ] = "Filnavn" ;
+ Text [ portuguese_brazilian ] = "~Dateiname" ;
+ Text [ portuguese ] = "~Nome do ficheiro" ;
+ Text[ chinese_simplified ] = "ÎļþÃû(~F)";
+ Text[ russian ] = "Èìÿ ôàéëà";
+ Text[ polish ] = "Nazwa pliku";
+ Text[ japanese ] = "̧²Ù–¼(~F)";
+ Text[ chinese_traditional ] = "ÀɮצW(~F)";
+ Text[ arabic ] = "ÇÓã ÇáãáÝ";
+ Text[ greek ] = "¼íïìá áñ÷åßïõ";
+ Text[ korean ] = "ÆÄÀÏ À̸§(~F)";
+ Text[ turkish ] = "D~osya adý";
+ };
+ Edit ED_CONNECT
+ {
+ Pos = MAP_APPFONT ( 13 , 114 ) ;
+ Size = MAP_APPFONT ( 200 , 12 ) ;
+ Text = "[Keiner]" ;
+ Text [ ENGLISH ] = "[None]" ;
+ Text [ norwegian ] = "[Ingen]" ;
+ Text [ italian ] = "[senza]" ;
+ Text [ portuguese_brazilian ] = "[Nenhum]" ;
+ Text [ portuguese ] = "[Nenhum]" ;
+ Text [ finnish ] = "[Ei ole]" ;
+ Text [ danish ] = "[Ingen]" ;
+ Text [ french ] = "[Aucun(e)]" ;
+ Text [ swedish ] = "[Inga]" ;
+ Text [ dutch ] = "[Geen]" ;
+ Text [ spanish ] = "[Sin]" ;
+ Text [ english_us ] = "[None]" ;
+ Readonly = TRUE ;
+ Left = TRUE ;
+ Border = TRUE ;
+ Text[ chinese_simplified ] = "[ÎÞ]";
+ Text[ russian ] = "[áåç]";
+ Text[ polish ] = "[brak]";
+ Text[ japanese ] = "[‚È‚µ]";
+ Text[ language_user1 ] = "ûD";
+ Text[ chinese_traditional ] = "[µL]";
+ Text[ arabic ] = "[ÈÏæä]";
+ Text[ greek ] = "[ÊáíÝíá]";
+ Text[ korean ] = "[¾øÀ½]";
+ Text[ turkish ] = "[Boþ]";
+ };
+ PushButton PB_BROWSE
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 230 , 114 ) ;
+ Size = MAP_APPFONT ( 12 , 12 ) ;
+ Text = "~..." ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~..." ;
+ Text [ swedish ] = "~..." ;
+ Text [ danish ] = "~..." ;
+ Text [ italian ] = "~..." ;
+ Text [ spanish ] = "~..." ;
+ Text [ french ] = "~..." ;
+ Text [ dutch ] = "~..." ;
+ Text [ portuguese_brazilian ] = "~..." ;
+ Text [ portuguese ] = "~..." ;
+ Text[ chinese_simplified ] = "(~.)...";
+ Text[ russian ] = "~...";
+ Text[ polish ] = "~...";
+ Text[ japanese ] = "~...";
+ Text[ chinese_traditional ] = "~....";
+ Text[ arabic ] = "...~";
+ Text[ greek ] = "~...";
+ Text[ korean ] = "~...";
+ Text[ turkish ] = "~...";
+ };
+ CheckBox CB_VERT
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text = "~vertikal" ;
+ Text [ ENGLISH ] = "verti~cally" ;
+ Text [ norwegian ] = "verti~cally" ;
+ Text [ italian ] = "~Verticale" ;
+ Text [ portuguese_brazilian ] = "hori~zontalmente" ;
+ Text [ portuguese ] = "~vertical" ;
+ Text [ finnish ] = "~pystysuunnassa" ;
+ Text [ danish ] = "lodret" ;
+ Text [ french ] = "~verticalement" ;
+ Text [ swedish ] = "~vertikalt" ;
+ Text [ dutch ] = "verti~caal" ;
+ Text [ spanish ] = "~vertical" ;
+ Text [ english_us ] = "~vertically" ;
+ Text[ chinese_simplified ] = "´¹Ö±·½Ïò(~V)";
+ Text[ russian ] = "âåðòèêàëüíî";
+ Text[ polish ] = "pio~nowo";
+ Text[ japanese ] = "c(~V)";
+ Text[ chinese_traditional ] = "««ª½¤è¦V(~V)";
+ Text[ arabic ] = "ÑÃÓí";
+ Text[ greek ] = "êáôáêüñõöá";
+ Text[ korean ] = "¼öÁ÷(~V)";
+ Text[ turkish ] = "d~ikey";
+ };
+ CheckBox CB_HOR
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "hori~zontal" ;
+ Text [ english ] = "hori~zontal" ;
+ Text[ english_us ] = "hori~zontally";
+ Text[ portuguese ] = "~horizontal";
+ Text[ russian ] = "ãîðèçîíòàëüíî, íà";
+ Text[ greek ] = "ïñé~æüíôéá";
+ Text[ dutch ] = "~horizontaal";
+ Text[ french ] = "~horizontalement";
+ Text[ spanish ] = "~horizontal, sobre";
+ Text[ italian ] = "~orizzontalmente su ";
+ Text[ danish ] = "vandret";
+ Text[ swedish ] = "h~orisontalt";
+ Text[ polish ] = "p~oziomo, na";
+ Text[ portuguese_brazilian ] = "verti~calmente";
+ Text[ japanese ] = "¶‰E(~H)";
+ Text[ korean ] = "¼öÆòÀ¸·Î, À§(~Z)";
+ Text[ chinese_simplified ] = "ˮƽ·½Ïò(~Z)";
+ Text[ chinese_traditional ] = "¤ô¥­¤è¦V";
+ Text[ turkish ] = "yata~y";
+ Text[ arabic ] = "ÃÝÞí";
+ };
+ RadioButton RB_MIRROR_ALL_PAGES
+ {
+ Pos = MAP_APPFONT ( 18 , 44 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "~auf allen Seiten" ;
+ Text [ ENGLISH ] = "on all pages" ;
+ Text [ english_us ] = "on all pages" ;
+ Text[ portuguese ] = "~em todas as páginas";
+ Text[ russian ] = "on all pages";
+ Text[ greek ] = "óå üëåò ôéò óåëßäåò";
+ Text[ dutch ] = "~op alle pagina's";
+ Text[ french ] = "~sur toutes les pages";
+ Text[ spanish ] = "on all pages";
+ Text[ italian ] = "on all pages";
+ Text[ danish ] = "på alle sider";
+ Text[ swedish ] = "på ~alla sidor";
+ Text[ polish ] = "on all pages";
+ Text[ portuguese_brazilian ] = "on all pages";
+ Text[ japanese ] = "‚·‚ׂĂÌÍß°¼Þ‚É";
+ Text[ korean ] = "on all pages";
+ Text[ chinese_simplified ] = "È«²¿Ò³Ãæ";
+ Text[ chinese_traditional ] = "¦b©Ò¦³­¶­±¤W";
+ Text[ turkish ] = "on all pages";
+ Text[ arabic ] = "Úáì ßá ÇáÕÝÍÇÊ";
+ };
+ RadioButton RB_MIRROR_LEFT_PAGES
+ {
+ Pos = MAP_APPFONT ( 18 , 59 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "auf ~linken Seiten" ;
+ Text [ ENGLISH ] = "on even pages" ;
+ Text [ english_us ] = "on even pages" ;
+ Text[ portuguese ] = "~nas páginas da esquerda";
+ Text[ russian ] = "on even pages";
+ Text[ greek ] = "óå áñéóôåñÝò óå~ëßäåò";
+ Text[ dutch ] = "op e~ven pagina's";
+ Text[ french ] = "sur les pages de ~gauche";
+ Text[ spanish ] = "on even pages";
+ Text[ italian ] = "on even pages";
+ Text[ danish ] = "på venstre sider";
+ Text[ swedish ] = "på vä~nstersidor";
+ Text[ polish ] = "on even pages";
+ Text[ portuguese_brazilian ] = "on even pages";
+ Text[ japanese ] = "¶Íß°¼Þ‚É";
+ Text[ korean ] = "on even pages";
+ Text[ chinese_simplified ] = "ÔÚ×ó·½Ò³Ãæ";
+ Text[ chinese_traditional ] = "¦b¥ª­¶¤W";
+ Text[ turkish ] = "on even pages";
+ Text[ arabic ] = "Úáì ÇáÕÝÍÇÊ ÇáÒæÌíÉ";
+ };
+ RadioButton RB_MIRROR_RIGHT_PAGES
+ {
+ Pos = MAP_APPFONT ( 18 , 74 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "auf ~rechten Seiten" ;
+ Text [ ENGLISH ] = "on odd pages" ;
+ Text [ english_us ] = "on odd pages" ;
+ Text[ portuguese ] = "nas pág~inas da direita";
+ Text[ russian ] = "on odd pages";
+ Text[ greek ] = "óå äåîéÝò óåëßäåò";
+ Text[ dutch ] = "op o~neven pagina's";
+ Text[ french ] = "sur les pages de ~droite";
+ Text[ spanish ] = "on odd pages";
+ Text[ italian ] = "on odd pages";
+ Text[ danish ] = "på højre sider";
+ Text[ swedish ] = "på höge~rsidor";
+ Text[ polish ] = "on odd pages";
+ Text[ portuguese_brazilian ] = "on odd pages";
+ Text[ japanese ] = "‰EÍß°¼Þ‚É";
+ Text[ korean ] = "on odd pages";
+ Text[ chinese_simplified ] = "ÔÚÓÒ·½Ò³Ãæ";
+ Text[ chinese_traditional ] = "¦b¥k­¶¤W";
+ Text[ turkish ] = "on odd pages";
+ Text[ arabic ] = "Úáì ÇáÕÝÍÇÊ ÇáÝÑÏíÉ";
+ };
+
+/* ListBox LB_MIRROR_PAGES
+ {
+ Pos = MAP_APPFONT ( 22 , 44 ) ;
+ Size = MAP_APPFONT ( 55 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "allen" ; > ;
+ < "linken" ; > ;
+ < "rechten" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "allen" ; > ;
+ < "linken" ; > ;
+ < "rechten" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "all" ; > ;
+ < "even" ; > ;
+ < "odd" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "allen" ; > ;
+ < "linken" ; > ;
+ < "rechten" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "alla" ; > ;
+ < "jämna" ; > ;
+ < "högra" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "alle" ; > ;
+ < "venstre" ; > ;
+ < "højre" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "tutti" ; > ;
+ < "pari" ; > ;
+ < "dispari" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Todos" ; > ;
+ < "pares" ; > ;
+ < "impares" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "toutes les" ; > ;
+ < "paires" ; > ;
+ < "impaires" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "alle" ; > ;
+ < "linker" ; > ;
+ < "rechter" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "tudo" ; > ;
+ < "ímpar" ; > ;
+ < "par" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "È«²¿" ; > ;
+ < "×ó" ; > ;
+ < "ÓÒ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "âñåì" ; > ;
+ < "íå÷åòíûé" ; > ;
+ < "÷åòíûé" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "wszystkim" ; > ;
+ < "parzyste" ; > ;
+ < "nieparzyste" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‚·‚ׂÄ" ; > ;
+ < "¶" ; > ;
+ < "‰E" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¥þ³¡" ; > ;
+ < "¥ª" ; > ;
+ < "¥k" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "Çáßá" ; > ;
+ < "ÇáíÓÑì" ; > ;
+ < "Çáíãäì" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "üëá" ; > ;
+ < "áñéóôåñÜ" ; > ;
+ < "äåîéÜ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "Àüü" ; > ;
+ < "¦¼ö" ; > ;
+ < "Ȧ¼ö" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "tüm" ; > ;
+ < "sol" ; > ;
+ < "sað" ; > ;
+ };
+ };
+ FixedText FT_MIRROR_PAGES
+ {
+ Pos = MAP_APPFONT ( 80 , 46 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Seiten" ;
+ Text [ ENGLISH ] = "pages" ;
+ Text [ english_us ] = "~pages" ;
+ Text [ portuguese_brazilian ] = "~Seiten" ;
+ Text [ swedish ] = "~Sidor" ;
+ Text [ danish ] = "Sider" ;
+ Text [ italian ] = "~Pagine" ;
+ Text [ spanish ] = "~páginas" ;
+ Text [ french ] = "~pages" ;
+ Text [ dutch ] = "~Pagina's" ;
+ Text [ portuguese ] = "~Páginas" ;
+ Text[ chinese_simplified ] = "Ò³(~P)";
+ Text[ russian ] = "Ñòðàíèöû";
+ Text[ polish ] = "Strony";
+ Text[ japanese ] = "Íß°¼Þ(~P)";
+ Text[ chinese_traditional ] = "­¶(~P)";
+ Text[ arabic ] = "ÇáÕÝÍÇÊ";
+ Text[ greek ] = "Óåëßäåò";
+ Text[ korean ] = "ÆäÀÌÁö(~P)";
+ Text[ language_user1 ] = "LS 18.11.99 Steht mitten im Satz, muß also nicht in allen Sprachen groß geschrieben werden! - -";
+ Text[ turkish ] = "~sayfalarda";
+ };
+*/ Window WN_BMP
+ {
+ Pos = MAP_APPFONT ( 120 , 13 ) ;
+ Size = MAP_APPFONT ( 127 , 69 ) ;
+ };
+ GroupBox GB_MIRROR
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 85 ) ;
+ Text = "Spiegeln" ;
+ Text [ ENGLISH ] = "Mirror" ;
+ Text [ norwegian ] = "Speil" ;
+ Text [ italian ] = "Rispecchia" ;
+ Text [ portuguese_brazilian ] = "Espelhar" ;
+ Text [ portuguese ] = "Reflectir" ;
+ Text [ finnish ] = "Peilaa" ;
+ Text [ danish ] = "Spejlvend" ;
+ Text [ french ] = "Refléter" ;
+ Text [ swedish ] = "Spegla" ;
+ Text [ dutch ] = "Spiegelen" ;
+ Text [ spanish ] = "Reflejar" ;
+ Text [ english_us ] = "Flip" ;
+ Text[ chinese_simplified ] = "·´Ó³";
+ Text[ russian ] = "Îòîáðàçèòü";
+ Text[ polish ] = "Przerzuæ";
+ Text[ japanese ] = "”½“]";
+ Text[ chinese_traditional ] = "¤Ï¬M";
+ Text[ arabic ] = "ÇäÚßÇÓ";
+ Text[ greek ] = "ÁíáóôñïöÞ";
+ Text[ korean ] = "´ëĪ";
+ Text[ turkish ] = "Yansýt";
+ };
+};
+String STR_EDIT_GRF
+{
+ TEXT = "Verknüpfen" ;
+ TEXT [ English ] = "Link to" ;
+ TEXT [ norwegian ] = "Link to" ;
+ TEXT [ italian ] = "Collega" ;
+ TEXT [ portuguese_brazilian ] = "Ligação com" ;
+ TEXT [ portuguese ] = "Ligar" ;
+ TEXT [ finnish ] = "Linkitä:" ;
+ TEXT [ danish ] = "Kæd" ;
+ TEXT [ french ] = "Lien " ;
+ TEXT [ swedish ] = "Länka" ;
+ TEXT [ dutch ] = "Koppelen" ;
+ TEXT [ spanish ] = "Vincular" ;
+ TEXT [ english_us ] = "Link" ;
+ TEXT[ chinese_simplified ] = "Á´½Ó";
+ TEXT[ russian ] = "Ñâÿçàòü";
+ TEXT[ polish ] = "Po³¹cz";
+ TEXT[ japanese ] = "Øݸ";
+ TEXT[ chinese_traditional ] = "±¶®|";
+ TEXT[ arabic ] = "ÑÈØ";
+ TEXT[ greek ] = "Óýíäåóç";
+ TEXT[ korean ] = "¿¬°á";
+ TEXT[ turkish ] = "Baðla";
+};
+
+TabPage TP_FRM_URL
+{
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_FRM_URL ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ FixedText FT_URL
+ {
+ Pos = MAP_APPFONT ( 13 , 15 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "U~RL" ;
+ Text [ English ] = "URL" ;
+ Text [ dutch ] = "~URL" ;
+ Text [ english_us ] = "~URL" ;
+ Text [ italian ] = "~URL" ;
+ Text [ spanish ] = "~URL" ;
+ Text [ french ] = "~URL" ;
+ Text [ swedish ] = "U~RL" ;
+ Text [ danish ] = "URL" ;
+ Text [ portuguese_brazilian ] = "U~RL" ;
+ Text [ portuguese ] = "U~RL" ;
+ Text[ chinese_simplified ] = "URL(~U)";
+ Text[ russian ] = "U~RL";
+ Text[ polish ] = "URL";
+ Text[ japanese ] = "URL(~U)";
+ Text[ chinese_traditional ] = "~URL";
+ Text[ arabic ] = "U~RL";
+ Text[ greek ] = "URL";
+ Text[ korean ] = "~URL";
+ Text[ turkish ] = "U~RL";
+ };
+ Edit ED_URL
+ {
+ Pos = MAP_APPFONT ( 45 , 14 ) ;
+ Size = MAP_APPFONT ( 89 , 12 ) ;
+ Left = TRUE ;
+ Border = TRUE ;
+ };
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 13 , 32 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Name" ;
+ Text [ English ] = "~Name" ;
+ Text [ english_us ] = "~Name" ;
+ Text [ italian ] = "~Nome" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "~Naam" ;
+ Text [ swedish ] = "~Namn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ portuguese_brazilian ] = "~Name" ;
+ Text [ portuguese ] = "~Nome" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ turkish ] = "~Ad";
+ };
+ Edit ED_NAME
+ {
+ Pos = MAP_APPFONT ( 45 , 31 ) ;
+ Size = MAP_APPFONT ( 89 , 12 ) ;
+ Left = TRUE ;
+ Border = TRUE ;
+ };
+ FixedText FT_FRAME
+ {
+ Pos = MAP_APPFONT ( 13 , 49 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Frame" ;
+ Text [ English ] = "Frame" ;
+ Text [ dutch ] = "~Frame" ;
+ Text [ english_us ] = "Frame" ;
+ Text [ italian ] = "~Frame" ;
+ Text [ spanish ] = "Frame" ;
+ Text [ french ] = "~Frame" ;
+ Text [ swedish ] = "R~am" ;
+ Text [ danish ] = "Frame" ;
+ Text [ portuguese_brazilian ] = "~Frame" ;
+ Text [ portuguese ] = "~Frame" ;
+ Text[ chinese_simplified ] = "¿ò¶ÔÏó";
+ Text[ russian ] = "Êàäð";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "ÌÚ°Ñ";
+ Text[ chinese_traditional ] = "°T®Ø";
+ Text[ arabic ] = "~Frame";
+ Text[ greek ] = "Ðëáßóéï";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "~Frame";
+ };
+ ComboBox CB_FRAME
+ {
+ Pos = MAP_APPFONT ( 45 , 48 ) ;
+ Size = MAP_APPFONT ( 89 , 50 ) ;
+ Left = TRUE ;
+ DropDown = TRUE ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_SEARCH
+ {
+ Pos = MAP_APPFONT ( 140 , 14 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "A~uswählen..." ;
+ Text [ English ] = "~Browse..." ;
+ Text [ english_us ] = "~Browse..." ;
+ Text [ portuguese_brazilian ] = "Durchs~uchen..." ;
+ Text [ swedish ] = "Välj ~ut..." ;
+ Text [ danish ] = "Gennemse..." ;
+ Text [ italian ] = "~Sfoglia..." ;
+ Text [ spanish ] = "Selecc~ionar..." ;
+ Text [ french ] = "~Parcourir..." ;
+ Text [ dutch ] = "Selec~teren..." ;
+ Text [ portuguese ] = "~Pesquisar..." ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ(~B)...";
+ Text[ russian ] = "Âûáðàòü...";
+ Text[ polish ] = "Wybierz...";
+ Text[ japanese ] = "‘I‘ð(~B)...";
+ Text[ chinese_traditional ] = "¿ï¾Ü(~B)...";
+ Text[ arabic ] = "ÇÓÊÚÑÇÖ...";
+ Text[ greek ] = "ÅðéëïãÞ...";
+ Text[ korean ] = "¼±ÅÃÇϱâ(~B)...";
+ Text[ turkish ] = "~Seç...";
+ };
+ GroupBox GB_HYPERLINK
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 190 , 67 ) ;
+ Text = "Hyperlink" ;
+ Text [ ENGLISH ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ };
+ CheckBox CB_SERVER
+ {
+ Pos = MAP_APPFONT ( 208 , 14 ) ;
+ Size = MAP_APPFONT ( 44 , 12 ) ;
+ Text = "~Server" ;
+ Text [ ENGLISH ] = "Server" ;
+ Text [ english_us ] = "~Server" ;
+ Text [ italian ] = "~Server" ;
+ Text [ spanish ] = "~Servidor" ;
+ Text [ french ] = "~Serveur" ;
+ Text [ dutch ] = "~Server" ;
+ Text [ swedish ] = "~Server" ;
+ Text [ danish ] = "Server" ;
+ Text [ portuguese_brazilian ] = "~Server" ;
+ Text [ portuguese ] = "~Servidor" ;
+ Text[ chinese_simplified ] = "·þÎñÆ÷(~S)";
+ Text[ russian ] = "Ñåðâåð";
+ Text[ polish ] = "Serwer";
+ Text[ japanese ] = "»°ÊÞ°(~S)";
+ Text[ chinese_traditional ] = "¦øªA¾¹(~S)";
+ Text[ arabic ] = "ÇáãÒæøÏ";
+ Text[ greek ] = "ÄéáêïìéóôÞò";
+ Text[ korean ] = "¼­¹ö(~S)";
+ Text[ turkish ] = "~Sunucu";
+ };
+ CheckBox CB_CLIENT
+ {
+ Pos = MAP_APPFONT ( 208 , 31 ) ;
+ Size = MAP_APPFONT ( 44 , 12 ) ;
+ Text = "~Client" ;
+ Text [ ENGLISH ] = "Client" ;
+ Text [ dutch ] = "~Cliënt" ;
+ Text [ english_us ] = "~Client" ;
+ Text [ italian ] = "~Client" ;
+ Text [ spanish ] = "~Cliente" ;
+ Text [ french ] = "~Client" ;
+ Text [ swedish ] = "~Klient" ;
+ Text [ danish ] = "Klient" ;
+ Text [ portuguese ] = "~Cliente" ;
+ Text [ portuguese_brazilian ] = "~Client" ;
+ Text[ chinese_simplified ] = "¿Í»§¶Ë(~C)";
+ Text[ russian ] = "Êëèåíò";
+ Text[ polish ] = "Klient";
+ Text[ japanese ] = "¸×²±ÝÄ(~C)";
+ Text[ chinese_traditional ] = "¥Î¤áºÝ(~C)";
+ Text[ arabic ] = "ÇáÚãíá";
+ Text[ greek ] = "ÐåëÜôçò";
+ Text[ korean ] = "Ŭ¶óÀ̾ðÆ®(~C)";
+ Text[ turkish ] = "~Ýstemci";
+ };
+ GroupBox GB_IMAGE
+ {
+ Pos = MAP_APPFONT ( 202 , 3 ) ;
+ Size = MAP_APPFONT ( 52 , 67 ) ;
+ Text = "Image Map" ;
+ Text [ ENGLISH ] = "Image Map" ;
+ Text [ dutch ] = "Image Map" ;
+ Text [ english_us ] = "Image map" ;
+ Text [ italian ] = "Image Map" ;
+ Text [ spanish ] = "Image Map" ;
+ Text [ french ] = "Image Map" ;
+ Text [ swedish ] = "Image Map" ;
+ Text [ danish ] = "Image Map" ;
+ Text [ portuguese_brazilian ] = "Image Map" ;
+ Text [ portuguese ] = "Mapa de imagens" ;
+ Text[ chinese_simplified ] = "ͼÏñÓ³Éä";
+ Text[ russian ] = "Êàðòà èçîáðàæåíèÿ";
+ Text[ polish ] = "Mapa obrazkowa";
+ Text[ japanese ] = "²Ò°¼ÞϯÌß";
+ Text[ chinese_traditional ] = "¼v¹³¬M®g";
+ Text[ arabic ] = "Image map";
+ Text[ greek ] = "Image map";
+ Text[ korean ] = "À̹ÌÁö ¸Ê";
+ Text[ turkish ] = "Resim eþlem";
+ };
+};
+TabPage TP_FRM_ADD
+{
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_FRM_ADD ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 13 ) ;
+ Size = MAP_APPFONT ( 61 , 10 ) ;
+ Text = "~Name" ;
+ Text [ ENGLISH ] = "Name" ;
+ Text [ english_us ] = "~Name" ;
+ Text [ italian ] = "~Nome" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ dutch ] = "~Naam" ;
+ Text [ swedish ] = "~Namn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ portuguese_brazilian ] = "~Name" ;
+ Text [ portuguese ] = "~Nome" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ turkish ] = "~Ad";
+ };
+ Edit ED_NAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 81 , 12 ) ;
+ Size = MAP_APPFONT ( 167 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_ALT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 61 , 10 ) ;
+ Text = "~Alternativtext" ;
+ Text [ ENGLISH ] = "Alternative text" ;
+ Text [ english_us ] = "~Alternative (Text only)" ;
+ Text [ italian ] = "Testo ~alternativo" ;
+ Text [ spanish ] = "Te~xto alternativo" ;
+ Text [ french ] = "~Texte (facultatif)" ;
+ Text [ dutch ] = "~Alternatieve tekst" ;
+ Text [ swedish ] = "~Alternativtext" ;
+ Text [ danish ] = "Alternativtekst" ;
+ Text [ portuguese_brazilian ] = "~Alternativtext" ;
+ Text [ portuguese ] = "Texto ~alternativo" ;
+ Text[ chinese_simplified ] = "¸½¼ÓÎÄ×Ö(~A)";
+ Text[ russian ] = "Àëüòåðíàòèâíûé òåêñò";
+ Text[ polish ] = "Tekst alternatywny";
+ Text[ japanese ] = "‘I‘𕶑(~A)";
+ Text[ chinese_traditional ] = "ªþ¥[¤å¦r(~A)";
+ Text[ arabic ] = "äÕ ÈÏíá";
+ Text[ greek ] = "Åí~áëëáêôéêÜ (Ìüíï êåßìåíï)";
+ Text[ korean ] = "´ëü (ÅؽºÆ®¸¸)(~A)";
+ Text[ turkish ] = "~Alternatif metin";
+ };
+ Edit ED_ALT_NAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 81 , 26 ) ;
+ Size = MAP_APPFONT ( 167 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_PREV
+ {
+ Pos = MAP_APPFONT ( 12 , 41 ) ;
+ Size = MAP_APPFONT ( 61 , 10 ) ;
+ Text = "~Vorgänger" ;
+ Text [ ENGLISH ] = "Previous link" ;
+ Text [ english_us ] = "~Previous link" ;
+ Text [ portuguese_brazilian ] = "~Vorgänger" ;
+ Text [ swedish ] = "Före~gående" ;
+ Text [ danish ] = "Overordnet" ;
+ Text [ italian ] = "~Precedente" ;
+ Text [ spanish ] = "~Anterior" ;
+ Text [ french ] = "~Précédent" ;
+ Text [ dutch ] = "~Vorganger" ;
+ Text [ portuguese ] = "Ligação ~anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öÁ´½Ó(~P)";
+ Text[ russian ] = "Ïðåäûäóùèé";
+ Text[ polish ] = "Poprzednik";
+ Text[ japanese ] = "ŽQÆŒ³(~P)";
+ Text[ chinese_traditional ] = "¤W¤@­Ó±¶®|(~P)";
+ Text[ arabic ] = "ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíï";
+ Text[ korean ] = "ÀÌÀü ¿¬°á(~P)";
+ Text[ turkish ] = "~Önceki";
+ };
+ Edit ED_PREV
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 81 , 40 ) ;
+ Size = MAP_APPFONT ( 167 , 12 ) ;
+ TabStop = TRUE ;
+ ReadOnly = TRUE ;
+ };
+ FixedText FT_NEXT
+ {
+ Pos = MAP_APPFONT ( 12 , 56 ) ;
+ Size = MAP_APPFONT ( 61 , 10 ) ;
+ Text = "Nach~folger" ;
+ Text [ ENGLISH ] = "Next link" ;
+ Text [ english_us ] = "~Next link" ;
+ Text [ portuguese_brazilian ] = "Nach~folger" ;
+ Text [ swedish ] = "~Följande" ;
+ Text [ danish ] = "Underordnet" ;
+ Text [ italian ] = "~Successivo" ;
+ Text [ spanish ] = "~Vínculo siguiente" ;
+ Text [ french ] = "Lien suivant" ;
+ Text [ dutch ] = "Op~volger" ;
+ Text [ portuguese ] = "Ligação ~seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öÁ´½Ó(~N)";
+ Text[ russian ] = "Ñëåäóþùàÿ";
+ Text[ polish ] = "Nastêpca";
+ Text[ japanese ] = "ŽQÆæ(~N)";
+ Text[ chinese_traditional ] = "¤U¤@­Ó±¶®|(~N)";
+ Text[ arabic ] = "ÇááÇÍÞ";
+ Text[ greek ] = "Åðüìåíï";
+ Text[ korean ] = "´ÙÀ½ ¿¬°á(~N)";
+ Text[ turkish ] = "S~onraki";
+ };
+ Edit ED_NEXT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 81 , 55 ) ;
+ Size = MAP_APPFONT ( 167 , 12 ) ;
+ TabStop = TRUE ;
+ ReadOnly = TRUE ;
+ };
+ GroupBox GB_NAME
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 71 ) ;
+ Text = "Namen" ;
+ Text [ English ] = "Names" ;
+ Text [ english_us ] = "Names" ;
+ Text [ italian ] = "Nomi" ;
+ Text [ spanish ] = "Nombres" ;
+ Text [ french ] = "Noms" ;
+ Text [ dutch ] = "Namen" ;
+ Text [ swedish ] = "Namn" ;
+ Text [ danish ] = "Navne" ;
+ Text [ portuguese_brazilian ] = "Namen" ;
+ Text [ portuguese ] = "Nomes" ;
+ Text[ chinese_simplified ] = "Ãû³Æ";
+ Text[ russian ] = "Èìåíà";
+ Text[ polish ] = "Nazwy";
+ Text[ japanese ] = "–¼‘O";
+ Text[ chinese_traditional ] = "¦WºÙ";
+ Text[ arabic ] = "ÇáÃÓãÇÁ";
+ Text[ greek ] = "Ïíüìáôá";
+ Text[ korean ] = "À̸§";
+ Text[ turkish ] = "Ad";
+ };
+ CheckBox CB_PROTECT_CONTENT
+ {
+ Pos = MAP_APPFONT ( 12 , 90 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~Inhalt" ;
+ Text [ ENGLISH ] = "Content" ;
+ Text [ english_us ] = "~Contents" ;
+ Text [ portuguese_brazilian ] = "Prot~eger conteúdo" ;
+ Text [ swedish ] = "~Innehåll" ;
+ Text [ danish ] = "Indhold" ;
+ Text [ italian ] = "~Contenuto" ;
+ Text [ spanish ] = "~Contenido" ;
+ Text [ french ] = "~Contenu" ;
+ Text [ dutch ] = "~Inhoud" ;
+ Text [ portuguese ] = "~Conteúdo" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝ(~C)";
+ Text[ russian ] = "Ñîäåðæèìîå";
+ Text[ polish ] = "Zawarto~Ͼ";
+ Text[ japanese ] = "“à—e(~C)";
+ Text[ chinese_traditional ] = "¤º®e(~C)";
+ Text[ arabic ] = "ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Ðåñéå÷üìåíá";
+ Text[ korean ] = "³»¿ë(~C)";
+ Text[ turkish ] = "~Ýçerik";
+ };
+ CheckBox CB_PROTECT_FRAME
+ {
+ Pos = MAP_APPFONT ( 12 , 102 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~Position" ;
+ Text [ ENGLISH ] = "Pos~ition" ;
+ Text [ english_us ] = "P~osition" ;
+ Text [ portuguese_brazilian ] = "Proteger pos~ição" ;
+ Text [ swedish ] = "~Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "Pos~izione" ;
+ Text [ spanish ] = "P~osición" ;
+ Text [ french ] = "Pos~ition" ;
+ Text [ dutch ] = "Pos~itie" ;
+ Text [ portuguese ] = "~Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ(~P)";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u(~P)";
+ Text[ chinese_traditional ] = "¦ì¸m(~P)";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡(~O)";
+ Text[ turkish ] = "K~onum";
+ };
+ CheckBox CB_PROTECT_SIZE
+ {
+ Pos = MAP_APPFONT ( 12 , 114 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ TabStop = TRUE ;
+ Text = "~Größe" ;
+ Text [ ENGLISH ] = "Size" ;
+ Text [ english_us ] = "~Size" ;
+ Text [ portuguese_brazilian ] = "Pro~tect Size" ;
+ Text [ swedish ] = "~Storlek" ;
+ Text [ danish ] = "Størrelse" ;
+ Text [ italian ] = "~Dimensione" ;
+ Text [ spanish ] = "~Tamaño" ;
+ Text [ french ] = "~Taille" ;
+ Text [ dutch ] = "~Grootte" ;
+ Text [ portuguese ] = "~Tamanho" ;
+ Text[ chinese_simplified ] = "´óС(~S)";
+ Text[ russian ] = "Ðàçìåð";
+ Text[ polish ] = "Rozmiar";
+ Text[ japanese ] = "»²½Þ(~S)";
+ Text[ chinese_traditional ] = "¤j¤p(~S)";
+ Text[ arabic ] = "ÇáÍÌã";
+ Text[ greek ] = "ÌÝãåèïò";
+ Text[ korean ] = "Å©±â(~S)";
+ Text[ turkish ] = "~Boyut";
+ };
+ GroupBox GB_PROTECT
+ {
+ Pos = MAP_APPFONT ( 6 , 77 ) ;
+ Size = MAP_APPFONT ( 62 , 52 ) ;
+ Text = "Schützen" ;
+ Text [ English ] = "Protect" ;
+ Text [ english_us ] = "Protect" ;
+ Text [ portuguese_brazilian ] = "Schützen" ;
+ Text [ swedish ] = "Skydda" ;
+ Text [ danish ] = "Beskyt" ;
+ Text [ italian ] = "Proteggi" ;
+ Text [ spanish ] = "Proteger" ;
+ Text [ french ] = "Protéger" ;
+ Text [ dutch ] = "Beveiligen" ;
+ Text [ portuguese ] = "Proteger" ;
+ Text[ chinese_simplified ] = "±£»¤";
+ Text[ russian ] = "Çàùèòà";
+ Text[ polish ] = "Chroñ";
+ Text[ japanese ] = "•ÛŒì";
+ Text[ chinese_traditional ] = "«OÅ@";
+ Text[ arabic ] = "ÍãÇíÉ";
+ Text[ greek ] = "Ðñïóôáóßá";
+ Text[ korean ] = "º¸È£";
+ Text[ turkish ] = "Koru";
+ };
+ CheckBox CB_EDIT_IN_READONLY
+ {
+ Pos = MAP_APPFONT ( 80 , 90 ) ;
+ Size = MAP_APPFONT ( 162 , 10 ) ;
+ Text = "~Editierbar in schreibgeschütztem Dokument" ;
+ Text [ ENGLISH ] = "Edit in readonly Document" ;
+ Text [ english_us ] = "~Editable in read-only document" ;
+ Text [ portuguese_brazilian ] = "Editierbar in schreibgeschütztem Dokument" ;
+ Text [ swedish ] = "R~edigerbar i skrivskyddat dokument" ;
+ Text [ danish ] = "Redigerbar i skrivebeskyttet dokument" ;
+ Text [ italian ] = "Modificabile nel documento a sola lettura" ;
+ Text [ spanish ] = "Se puede editar en documentos de solo lectura" ;
+ Text [ french ] = "À é~diter dans le document en mode Lecture seule" ;
+ Text [ dutch ] = "~Editeerbaar in schrijfbeveiligd document" ;
+ Text [ portuguese ] = "~Editável em documento só de leitura" ;
+ Text[ chinese_simplified ] = "¿É±à¼­·À¸²Ð´µÄÎĵµ(~E)";
+ Text[ russian ] = "Ïðàâêà çàùèùåííîãî îò çàïèñè äîêóìåíòà";
+ Text[ polish ] = "Edycja ~mo¿liwa w dokumentach tylko do odczytu";
+ Text[ japanese ] = "‘‚«ž‚ݕی앶‘‚É•ÒW‰Â”\\(~E)";
+ Text[ chinese_traditional ] = "¥i½s¿è°ßŪ¤å¥ó(~E)";
+ Text[ arabic ] = "ÞÇÈá ááÊÍÑíÑ Ýí ãÓÊäÏ ááÞÑÇÁÉ ÝÞØ";
+ Text[ greek ] = "Äõíáôüôçôá ~åðåîåñãáóßáò óå Ýããñáöï ôýðïõ \"Ìüíï ãéá áíÜãíùóç\"";
+ Text[ korean ] = "ÀбâÀü¿ë ¹®¼­¿¡¼­ ÆíÁý°¡´É(~E)";
+ Text[ turkish ] = "Salt okunur belge içinde düzenlenebilir";
+ };
+ CheckBox CB_PRINT_FRAME
+ {
+ Pos = MAP_APPFONT ( 80 , 103 ) ;
+ Size = MAP_APPFONT ( 70 , 10 ) ;
+ Text = "Dru~cken" ;
+ Text [ ENGLISH ] = "Print ~frame" ;
+ Text [ norwegian ] = "Print ~frame" ;
+ Text [ italian ] = "Stampa" ;
+ Text [ portuguese_brazilian ] = "Imprimir ~moldura" ;
+ Text [ portuguese ] = "Imprimir" ;
+ Text [ finnish ] = "Tulosta ~kehys" ;
+ Text [ danish ] = "Udskriv" ;
+ Text [ french ] = "~Imprimer" ;
+ Text [ swedish ] = "Skriv ~ut" ;
+ Text [ dutch ] = "Afdru~kken" ;
+ Text [ spanish ] = "Im~primir" ;
+ Text [ english_us ] = "Prin~t" ;
+ Text[ chinese_simplified ] = "´òÓ¡(~P)";
+ Text[ russian ] = "Ïå÷àòü";
+ Text[ polish ] = "Drukuj";
+ Text[ japanese ] = "ˆóü(~P)";
+ Text[ chinese_traditional ] = "¦C¦L(~P)";
+ Text[ arabic ] = "ØÈÇÚÉ";
+ Text[ greek ] = "Åêôýðùóç";
+ Text[ korean ] = "Àμâ(~T)";
+ Text[ turkish ] = "~Yazdýr";
+ };
+ GroupBox GB_EXT
+ {
+ Pos = MAP_APPFONT ( 74 , 77 ) ;
+ Size = MAP_APPFONT ( 180 , 52 ) ;
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Additional Setting" ;
+ Text [ english_us ] = "Options" ;
+ Text [ italian ] = "Extra" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ dutch ] = "Overige" ;
+ Text [ swedish ] = "Tillägg" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ portuguese_brazilian ] = "Zusätze" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "ÆäËû";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Dodatki";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ };
+};
diff --git a/sw/source/ui/frmdlg/frmui.src b/sw/source/ui/frmdlg/frmui.src
new file mode 100644
index 000000000000..b48fabe3f05e
--- /dev/null
+++ b/sw/source/ui/frmdlg/frmui.src
@@ -0,0 +1,1388 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "frmui.hrc"
+
+/*-----------------------------------------------------------------------
+ Beschreibung: V-Align
+ -----------------------------------------------------------------------*/
+String STR_TOP
+{
+ TEXT = "~Oben" ;
+ TEXT [ English ] = "Top" ;
+ TEXT [ norwegian ] = "Top" ;
+ TEXT [ italian ] = "Alto" ;
+ TEXT [ portuguese_brazilian ] = "Topo" ;
+ TEXT [ portuguese ] = "Em cima" ;
+ TEXT [ finnish ] = "Ylä" ;
+ TEXT [ danish ] = "Foroven" ;
+ TEXT [ french ] = "~En haut" ;
+ TEXT [ swedish ] = "~Överst" ;
+ TEXT [ dutch ] = "~Boven" ;
+ TEXT [ spanish ] = "~Arriba" ;
+ TEXT [ english_us ] = "~Top" ;
+ TEXT[ chinese_simplified ] = "ÉÏ(~T)";
+ TEXT[ russian ] = "Ââåðõó";
+ TEXT[ polish ] = "Na górze";
+ TEXT[ japanese ] = "ã(~T)";
+ TEXT[ chinese_traditional ] = "¤W(~T)";
+ TEXT[ arabic ] = "ÃÚáì";
+ TEXT[ greek ] = "ÐÜíù";
+ TEXT[ korean ] = "ˤ(~T)";
+ TEXT[ turkish ] = "~Üst";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_BOTTOM
+{
+ TEXT = "~Unten" ;
+ TEXT [ English ] = "Bottom" ;
+ TEXT [ norwegian ] = "Bottom" ;
+ TEXT [ italian ] = "Basso" ;
+ TEXT [ portuguese_brazilian ] = "Base" ;
+ TEXT [ portuguese ] = "~Base" ;
+ TEXT [ finnish ] = "Ala" ;
+ TEXT [ danish ] = "Forneden" ;
+ TEXT [ french ] = "En ~bas" ;
+ TEXT [ swedish ] = "Nederst" ;
+ TEXT [ dutch ] = "~Beneden" ;
+ TEXT [ spanish ] = "A~bajo" ;
+ TEXT [ english_us ] = "~Bottom" ;
+ TEXT[ chinese_simplified ] = "ÏÂ(~B)";
+ TEXT[ russian ] = "Âíèçó";
+ TEXT[ polish ] = "Na dole";
+ TEXT[ japanese ] = "‰º(~B)";
+ TEXT[ chinese_traditional ] = "¤U(~B)";
+ TEXT[ arabic ] = "ÃÓÝá";
+ TEXT[ greek ] = "ÊÜôù";
+ TEXT[ korean ] = "¾Æ·¡(~B)";
+ TEXT[ turkish ] = "A~ltta";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_CENTER_HORI
+{
+ TEXT = "~Zentriert" ;
+ TEXT [ English ] = "Centered" ;
+ TEXT [ norwegian ] = "Centered" ;
+ TEXT [ italian ] = "Centrato" ;
+ TEXT [ portuguese_brazilian ] = "Centralizado" ;
+ TEXT [ portuguese ] = "Centrado" ;
+ TEXT [ finnish ] = "Keski" ;
+ TEXT [ danish ] = "Centreret" ;
+ TEXT [ french ] = "~Centré" ;
+ TEXT [ swedish ] = "~Centrerad" ;
+ TEXT [ dutch ] = "~Gecentreerd" ;
+ TEXT [ spanish ] = "~Centrado" ;
+ TEXT [ english_us ] = "~Centered" ;
+ TEXT[ chinese_simplified ] = "¾ÓÖÐ(~C)";
+ TEXT[ russian ] = "Ïî öåíòðó";
+ TEXT[ polish ] = "Wyœrodkuj";
+ TEXT[ japanese ] = "’†‰›(~C)";
+ TEXT[ chinese_traditional ] = "¸m¤¤(~C)";
+ TEXT[ arabic ] = "ÊæÓíØ";
+ TEXT[ greek ] = "ÊåíôñáñéóìÝíá";
+ TEXT[ korean ] = "°¡¿îµ¥(~C)";
+ TEXT[ turkish ] = "~Ortala";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FROMTOP
+{
+ TEXT = "Von Oben" ;
+ TEXT [ English ] = "From top" ;
+ TEXT [ norwegian ] = "From top" ;
+ TEXT [ italian ] = "Dall'alto" ;
+ TEXT [ portuguese_brazilian ] = "Do topo" ;
+ TEXT [ portuguese ] = "De cima" ;
+ TEXT [ finnish ] = "Ylhäältä" ;
+ TEXT [ danish ] = "Ovenfra" ;
+ TEXT [ french ] = "Du haut" ;
+ TEXT [ swedish ] = "Uppifrån" ;
+ TEXT [ dutch ] = "Van boven" ;
+ TEXT [ spanish ] = "Desde arriba" ;
+ TEXT [ english_us ] = "From top" ;
+ TEXT[ chinese_simplified ] = "´ÓÉÏ";
+ TEXT[ russian ] = "Ñâåðõó";
+ TEXT[ polish ] = "Z góry";
+ TEXT[ japanese ] = "ã‚©‚ç";
+ TEXT[ chinese_traditional ] = "±q¤W";
+ TEXT[ arabic ] = "ãä ÃÚáì";
+ TEXT[ greek ] = "Aðü ðÜíù";
+ TEXT[ korean ] = "À§ºÎÅÍ";
+ TEXT[ turkish ] = "Üstten";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FROMBOTTOM
+{
+ TEXT = "Von Unten" ;
+ TEXT [ English ] = "From bottom" ;
+ Text [ portuguese ] = "De baixo" ;
+ Text [ english_us ] = "From bottom" ;
+ Text [ portuguese_brazilian ] = "Von Unten" ;
+ Text [ swedish ] = "Nedifrån" ;
+ Text [ danish ] = "Nedefra" ;
+ Text [ italian ] = "Dal basso" ;
+ Text [ spanish ] = "Desde abajo" ;
+ Text [ french ] = "Du bas" ;
+ Text [ dutch ] = "Van beneden" ;
+ Text[ chinese_simplified ] = "´ÓÏÂ";
+ Text[ russian ] = "Ñíèçó";
+ Text[ polish ] = "Z do³u";
+ Text[ japanese ] = "‰º‚©‚ç";
+ Text[ chinese_traditional ] = "±q¤U";
+ Text[ arabic ] = "ãä ÃÓÝá";
+ Text[ greek ] = "Áðü êÜôù";
+ Text[ korean ] = "¾Æ·¡ºÎÅÍ";
+ Text[ turkish ] = "Alttan";
+ Text[ language_user1 ] = " ";
+};
+String STR_BELOW
+{
+ TEXT = "Unterhalb" ;
+ TEXT [ English ] = "Below" ;
+ Text [ portuguese ] = "Abaixo" ;
+ Text [ english_us ] = "Below" ;
+ Text [ portuguese_brazilian ] = "Unterhalb" ;
+ Text [ swedish ] = "Nedanför" ;
+ Text [ danish ] = "Nedenfor" ;
+ Text [ italian ] = "Al di sotto" ;
+ Text [ spanish ] = "Debajo" ;
+ Text [ french ] = "Infra" ;
+ Text [ dutch ] = "Beneden" ;
+ Text[ chinese_simplified ] = "Ö®ÏÂ";
+ Text[ russian ] = "Ñíèçó";
+ Text[ polish ] = "Poni¿ej";
+ Text[ japanese ] = "‰º‚É";
+ Text[ chinese_traditional ] = "¤§¤U";
+ Text[ arabic ] = "ÃÓÝá";
+ Text[ greek ] = "ÊÜôù áðü";
+ Text[ korean ] = "¾Æ·¡";
+ Text[ turkish ] = "Altta";
+ Text[ language_user1 ] = " ";
+};
+/*-----------------------------------------------------------------------
+ Beschreibung: H-Align
+ -----------------------------------------------------------------------*/
+String STR_LEFT
+{
+ TEXT = "Links" ;
+ TEXT [ English ] = "Left" ;
+ TEXT [ norwegian ] = "Left" ;
+ TEXT [ italian ] = "Sinistra" ;
+ TEXT [ portuguese_brazilian ] = "A Esquerda" ;
+ TEXT [ portuguese ] = "Esquerda" ;
+ TEXT [ finnish ] = "Vasen" ;
+ TEXT [ danish ] = "Venstre" ;
+ TEXT [ french ] = "À gauche" ;
+ TEXT [ swedish ] = "Vänster" ;
+ TEXT [ dutch ] = "Link" ;
+ TEXT [ spanish ] = "Izquierda" ;
+ TEXT [ english_us ] = "Left" ;
+ TEXT[ chinese_simplified ] = "×ó";
+ TEXT[ russian ] = "Ñëåâà";
+ TEXT[ polish ] = "Z lewej strony";
+ TEXT[ japanese ] = "¶";
+ TEXT[ chinese_traditional ] = "¥ª";
+ TEXT[ arabic ] = "Åáì ÇáíÓÇÑ";
+ TEXT[ greek ] = "ÁñéóôåñÜ";
+ TEXT[ korean ] = "¿ÞÂÊ";
+ TEXT[ turkish ] = "Sol";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MIR_LEFT
+{
+ TEXT = "Innen" ;
+ TEXT [ English ] = "Inside" ;
+ Text [ portuguese ] = "Interior" ;
+ Text [ english_us ] = "Inside" ;
+ Text [ portuguese_brazilian ] = "Innen" ;
+ Text [ swedish ] = "Invändigt" ;
+ Text [ danish ] = "Indersiden" ;
+ Text [ italian ] = "Interno" ;
+ Text [ spanish ] = "Interior" ;
+ Text [ french ] = "Intérieur" ;
+ Text [ dutch ] = "Binnenin" ;
+ Text[ chinese_simplified ] = "ÄÚ";
+ Text[ russian ] = "Âíóòðè";
+ Text[ polish ] = "Wewn¹trz";
+ Text[ japanese ] = "“à‘¤";
+ Text[ chinese_traditional ] = "¤º";
+ Text[ arabic ] = "ÏÇÎá";
+ Text[ greek ] = "ÅóùôåñéêÜ";
+ Text[ korean ] = "³»ºÎ";
+ Text[ turkish ] = "Ýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_RIGHT
+{
+ TEXT = "Rechts" ;
+ TEXT [ English ] = "Right" ;
+ TEXT [ norwegian ] = "Right" ;
+ TEXT [ italian ] = "Destra" ;
+ TEXT [ portuguese_brazilian ] = "A Direita" ;
+ TEXT [ portuguese ] = "Direita" ;
+ TEXT [ finnish ] = "Oikea" ;
+ TEXT [ danish ] = "Højre" ;
+ TEXT [ french ] = "À droite" ;
+ TEXT [ swedish ] = "Höger" ;
+ TEXT [ dutch ] = "Rechts" ;
+ TEXT [ spanish ] = "Derecha" ;
+ TEXT [ english_us ] = "Right" ;
+ TEXT[ chinese_simplified ] = "ÓÒ";
+ TEXT[ russian ] = "Ñïðàâà";
+ TEXT[ polish ] = "Z prawej";
+ TEXT[ japanese ] = "‰E";
+ TEXT[ chinese_traditional ] = "¥k";
+ TEXT[ arabic ] = "Åáì Çáíãíä";
+ TEXT[ greek ] = "ÄåîéÜ";
+ TEXT[ korean ] = "¿À¸¥ÂÊ";
+ TEXT[ turkish ] = "Sað";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MIR_RIGHT
+{
+ TEXT = "Außen" ;
+ TEXT [ English ] = "Outside" ;
+ TEXT [ norwegian ] = "Outside" ;
+ TEXT [ italian ] = "Esterno" ;
+ TEXT [ portuguese_brazilian ] = "Fora" ;
+ TEXT [ portuguese ] = "Exterior" ;
+ TEXT [ finnish ] = "Ulkopuoli" ;
+ TEXT [ danish ] = "Ydersiden" ;
+ TEXT [ french ] = "Extérieur" ;
+ TEXT [ swedish ] = "Utsida" ;
+ TEXT [ dutch ] = "Buiten" ;
+ TEXT [ spanish ] = "Exterior" ;
+ TEXT [ english_us ] = "Outside" ;
+ TEXT[ chinese_simplified ] = "Íâ²à";
+ TEXT[ russian ] = "Ñíàðóæè";
+ TEXT[ polish ] = "Na zewn¹trz";
+ TEXT[ japanese ] = "ŠO‘¤";
+ TEXT[ chinese_traditional ] = "¥~°¼";
+ TEXT[ arabic ] = "ÎÇÑÌ";
+ TEXT[ greek ] = "ÅîùôåñéêÜ";
+ TEXT[ korean ] = "¿ÜºÎ";
+ TEXT[ turkish ] = "Dýþ";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_CENTER_VERT
+{
+ TEXT = "~Mitte" ;
+ Text [ English ] = "~Middle" ;
+ Text [ portuguese ] = "~Centro" ;
+ Text [ english_us ] = "C~enter" ;
+ Text [ portuguese_brazilian ] = "~Mitte" ;
+ Text [ swedish ] = "~Mitten" ;
+ Text [ danish ] = "Centreret" ;
+ Text [ italian ] = "Centro" ;
+ Text [ spanish ] = "~Centro" ;
+ Text [ french ] = "~Milieu" ;
+ Text [ dutch ] = "~Midden" ;
+ Text[ chinese_simplified ] = "ÖÐ(~E)";
+ Text[ russian ] = "Ñåðåäèíà";
+ Text[ polish ] = "Wyœrodkuj";
+ Text[ japanese ] = "’†S(~E)";
+ Text[ chinese_traditional ] = "¸m¤¤(~E)";
+ Text[ arabic ] = "ÇáæÓØ";
+ Text[ greek ] = "ÊÝíôñï";
+ Text[ korean ] = "°¡¿îµ¥(~E)";
+ Text[ turkish ] = "O~rta";
+ Text[ language_user1 ] = " ";
+};
+String STR_FROMLEFT
+{
+ TEXT = "Von Links" ;
+ TEXT [ English ] = "From left" ;
+ TEXT [ norwegian ] = "From left" ;
+ TEXT [ italian ] = "Da sinistra" ;
+ TEXT [ portuguese_brazilian ] = "Da esquerda" ;
+ TEXT [ portuguese ] = "Esquerda" ;
+ TEXT [ finnish ] = "Vasemmalta" ;
+ TEXT [ danish ] = "Fra venstre" ;
+ TEXT [ french ] = "De gauche" ;
+ TEXT [ swedish ] = "Från vänster" ;
+ TEXT [ dutch ] = "Van links" ;
+ TEXT [ spanish ] = "De izquierda" ;
+ TEXT [ english_us ] = "From left" ;
+ TEXT[ chinese_simplified ] = "´Ó×ó";
+ TEXT[ russian ] = "Ñëåâà";
+ TEXT[ polish ] = "Z lewej";
+ TEXT[ japanese ] = "¶‚©‚ç";
+ TEXT[ chinese_traditional ] = "±q¥ª";
+ TEXT[ arabic ] = "ãä ÇáíÓÇÑ";
+ TEXT[ greek ] = "Aðü áñéóôåñÜ";
+ TEXT[ korean ] = "¿ÞÂÊ¿¡¼­ ºÎÅÍ";
+ TEXT[ turkish ] = "Soldan";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MIR_FROMLEFT
+{
+ TEXT = "Von Innen" ;
+ TEXT [ English ] = "From inside" ;
+ Text [ portuguese ] = "Do interior" ;
+ Text [ english_us ] = "From inside" ;
+ Text [ portuguese_brazilian ] = "Von Innen" ;
+ Text [ swedish ] = "Inifrån" ;
+ Text [ danish ] = "Indefra" ;
+ Text [ italian ] = "Dall'interno" ;
+ Text [ spanish ] = "Desde el interior" ;
+ Text [ french ] = "De l'intérieur" ;
+ Text [ dutch ] = "Van binnen" ;
+ Text[ chinese_simplified ] = "´ÓÄÚ";
+ Text[ russian ] = "Âíóòðè";
+ Text[ polish ] = "Od œrodka";
+ Text[ japanese ] = "“à‘¤‚©‚ç";
+ Text[ chinese_traditional ] = "±q¤º";
+ Text[ arabic ] = "ãä ÇáÏÇÎá";
+ Text[ greek ] = "Áðü åóùôåñéêü";
+ Text[ korean ] = "¾È¿¡¼­ ºÎÅÍ";
+ Text[ turkish ] = "Ýçerden";
+ Text[ language_user1 ] = " ";
+};
+/*-----------------------------------------------------------------------
+ Beschreibung: V-Rel
+ -----------------------------------------------------------------------*/
+String STR_REL_BORDER
+{
+ TEXT = "Rand" ;
+ TEXT [ English ] = "Border" ;
+ Text [ portuguese ] = "Margem" ;
+ Text [ english_us ] = "Margin" ;
+ Text [ portuguese_brazilian ] = "Rand" ;
+ Text [ swedish ] = "Marginal" ;
+ Text [ danish ] = "Margen" ;
+ Text [ italian ] = "Margine" ;
+ Text [ spanish ] = "Margen" ;
+ Text [ french ] = "Marge" ;
+ Text [ dutch ] = "Marge" ;
+ Text[ chinese_simplified ] = "Ò³±ß¾à";
+ Text[ russian ] = "Ïîëå";
+ Text[ polish ] = "Margines";
+ Text[ japanese ] = "—]”’";
+ Text[ chinese_traditional ] = "̊ƒ";
+ Text[ arabic ] = "ÇáåÇãÔ";
+ Text[ greek ] = "Ðåñéèþñéï";
+ Text[ korean ] = "¿©¹é";
+ Text[ turkish ] = "Kenar";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_PRTAREA
+{
+ TEXT = "Textbereich" ;
+ TEXT [ English ] = "Text area" ;
+ Text [ portuguese ] = "Área de texto" ;
+ Text [ english_us ] = "Text area" ;
+ Text [ portuguese_brazilian ] = "Textbereich" ;
+ Text [ swedish ] = "Textområde" ;
+ Text [ danish ] = "Tekstområde" ;
+ Text [ italian ] = "Area del testo" ;
+ Text [ spanish ] = "Área de texto " ;
+ Text [ french ] = "Zone de texte" ;
+ Text [ dutch ] = "Tekstbereik" ;
+ Text[ chinese_simplified ] = "ÎÄ×ÖÇøÓò";
+ Text[ russian ] = "Îáëàñòü òåêñòà";
+ Text[ polish ] = "Obszar tekstu";
+ Text[ japanese ] = "•¶‘”͈Í";
+ Text[ chinese_traditional ] = "¤å¦r°Ï°ì";
+ Text[ arabic ] = "äØÇÞ ÇáäÕ";
+ Text[ greek ] = "Ðåñéï÷Þ êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ¿µ¿ª";
+ Text[ turkish ] = "Metin alaný";
+ Text[ language_user1 ] = " ";
+};
+String STR_TOPPRT
+{
+ TEXT = "Oberer Rand" ;
+ TEXT [ English ] = "Border Top" ;
+ TEXT [ norwegian ] = "Border Top" ;
+ TEXT [ italian ] = "Bordo superiore" ;
+ TEXT [ portuguese_brazilian ] = "Topo da margem" ;
+ TEXT [ portuguese ] = "Margem superior" ;
+ TEXT [ finnish ] = "Yläreunaviiva" ;
+ TEXT [ danish ] = "Topmargen" ;
+ TEXT [ french ] = "Marge supérieure" ;
+ TEXT [ swedish ] = "Övre marginal" ;
+ TEXT [ dutch ] = "Bovenrand" ;
+ TEXT [ spanish ] = "Margen superior" ;
+ TEXT [ english_us ] = "Upper Margin" ;
+ TEXT[ chinese_simplified ] = "ÉÏ·½Ò³±ß¾à";
+ TEXT[ russian ] = "Âåðõíèé êðàé";
+ TEXT[ polish ] = "Górny margines";
+ TEXT[ japanese ] = "ã—]”’";
+ TEXT[ chinese_traditional ] = "¤WÃä¬É";
+ TEXT[ arabic ] = "ÇáåÇãÔ ÇáÚáæí";
+ TEXT[ greek ] = "¢íù ðåñéèþñéï";
+ TEXT[ korean ] = "À§ÂÊ ¿©¹é";
+ TEXT[ turkish ] = "Üst kenar";
+ TEXT[ language_user1 ] = " ";
+};
+/*-----------------------------------------------------------------------
+ Beschreibung: H-Rel
+ -----------------------------------------------------------------------*/
+String STR_FLY_REL_PG_LEFT
+{
+ TEXT = "Rahmenrand links" ;
+ TEXT [ English ] = "Left frame border" ;
+ Text [ portuguese ] = "Contorno esquerdo da moldura" ;
+ Text [ english_us ] = "Left frame border" ;
+ Text [ portuguese_brazilian ] = "Rahmenrand links" ;
+ Text [ swedish ] = "Vänster rammarginal" ;
+ Text [ danish ] = "Venstre rammekant" ;
+ Text [ italian ] = "Margine cornice sinistro" ;
+ Text [ spanish ] = "Borde izquierdo del marco" ;
+ Text [ french ] = "Bordure de cadre gauche" ;
+ Text [ dutch ] = "Kaderrand links" ;
+ Text[ chinese_simplified ] = "×ó¿ò±ß";
+ Text[ russian ] = "Ëåâûé êðàé ðàìêè";
+ Text[ polish ] = "Lewa krawêdŸ ramki";
+ Text[ japanese ] = "¶—]”’";
+ Text[ chinese_traditional ] = "¥ª®ØÃä";
+ Text[ arabic ] = "åÇãÔ ÇáÅØÇÑ ÇáÃíÓÑ";
+ Text[ greek ] = "Ðåñéèþñéï ðëáéóßïõ - áñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ ÇÁ·¹ÀÓ ¿Ü°û¼±";
+ Text[ turkish ] = "Sol çerçeve kenarý";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_MIR_REL_PG_LEFT
+{
+ TEXT = "Rahmenrand innen" ;
+ TEXT [ English ] = "Inner frame border" ;
+ Text [ portuguese ] = "Contorno interior da moldura" ;
+ Text [ english_us ] = "Inner frame border" ;
+ Text [ portuguese_brazilian ] = "Rahmenrand innen" ;
+ Text [ swedish ] = "Invändig rammarginal" ;
+ Text [ danish ] = "Indre rammekant" ;
+ Text [ italian ] = "Margine cornice interno" ;
+ Text [ spanish ] = "Borde interior del marco" ;
+ Text [ french ] = "Bordure de cadre intérieure" ;
+ Text [ dutch ] = "Binnenste kaderrand" ;
+ Text[ chinese_simplified ] = "¿ò±ßÄÚÔò";
+ Text[ russian ] = "Âíóòðåííèé êðàé ðàìêè";
+ Text[ polish ] = "Wewnêtrzna krawêdŸ ramki";
+ Text[ japanese ] = "—]”’ “à‘¤";
+ Text[ chinese_traditional ] = "®ØÃ䤺«h";
+ Text[ arabic ] = "åÇãÔ ÇáÅØÇÑ ÇáÏÇÎáí";
+ Text[ greek ] = "Ðåñéèþñéï ðëáéóßïõ - åóùôåñéêÜ";
+ Text[ korean ] = "³»ºÎ ÇÁ·¹ÀÓ ¿Ü°û¼±";
+ Text[ turkish ] = "Ýç çerçeve kenarý";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_REL_PG_RIGHT
+{
+ TEXT = "Rahmenrand rechts" ;
+ TEXT [ English ] = "Right frame border" ;
+ Text [ portuguese ] = "Contorno direito da moldura" ;
+ Text [ english_us ] = "Right frame border" ;
+ Text [ portuguese_brazilian ] = "Rahmenrand rechts" ;
+ Text [ swedish ] = "Höger rammarginal" ;
+ Text [ danish ] = "Højre rammekant" ;
+ Text [ italian ] = "Margine cornice destro" ;
+ Text [ spanish ] = "Borde derecho del marco" ;
+ Text [ french ] = "Bordure de cadre droite" ;
+ Text [ dutch ] = "Kaderrand rechts" ;
+ Text[ chinese_simplified ] = "ÓÒ¿ò±ß";
+ Text[ russian ] = "Ïðàâûé êðàé ðàìêè";
+ Text[ polish ] = "Prawa krawêdŸ ramki";
+ Text[ japanese ] = "‰E—]”’";
+ Text[ chinese_traditional ] = "¥k®ØÃä";
+ Text[ arabic ] = "åÇãÔ ÇáÅØÇÑ ÇáÃíãä";
+ Text[ greek ] = "Ðåñéèþñéï ðëáéóßïõ - äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ ÇÁ·¹ÀÓ ¿Ü°û¼±";
+ Text[ turkish ] = "Sað çerçeve kenarý";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_MIR_REL_PG_RIGHT
+{
+ TEXT = "Rahmenrand außen" ;
+ TEXT [ English ] = "Outer frame border" ;
+ Text [ portuguese ] = "Contorno exterior da moldura" ;
+ Text [ english_us ] = "Outer frame border" ;
+ Text [ portuguese_brazilian ] = "Rahmenrand außen" ;
+ Text [ swedish ] = "Utvändig rammarginal" ;
+ Text [ danish ] = "Ydre rammekant" ;
+ Text [ italian ] = "Margine cornice esterno" ;
+ Text [ spanish ] = "Borde exterior del marco" ;
+ Text [ french ] = "Bordure de cadre extérieure" ;
+ Text [ dutch ] = "Buitenste kaderrand" ;
+ Text[ chinese_simplified ] = "¿ò±ßÍâ²à";
+ Text[ russian ] = "Íàðóæíûé êðàé ðàìêè";
+ Text[ polish ] = "Zewnêtrzna krawêdŸ ramki";
+ Text[ japanese ] = "—]”’ ŠO‘¤";
+ Text[ chinese_traditional ] = "®ØÃä¥~°¼";
+ Text[ arabic ] = "åÇãÔ ÇáÅØÇÑ ÇáÎÇÑÌí";
+ Text[ greek ] = "Ðåñéèþñéï ðëáéóßïõ - åîùôåñéêÜ";
+ Text[ korean ] = "¿ÜºÎ ÇÁ·¹ÀÓ ¿Ü°û¼±";
+ Text[ turkish ] = "Dýþ çerçeve kenarý";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_REL_PG_FRAME
+{
+ TEXT = "Gesamter Rahmen" ;
+ TEXT [ English ] = "Whole frame" ;
+ Text [ portuguese ] = "Moldura inteira" ;
+ Text [ english_us ] = "Entire frame" ;
+ Text [ portuguese_brazilian ] = "Gesamter Rahmen" ;
+ Text [ swedish ] = "Hela ramen" ;
+ Text [ danish ] = "Hele rammen" ;
+ Text [ italian ] = "Intera cornice" ;
+ Text [ spanish ] = "Marco entero" ;
+ Text [ french ] = "Cadre entier" ;
+ Text [ dutch ] = "Compleet kader" ;
+ Text[ chinese_simplified ] = "Õû¸ö¿ò";
+ Text[ russian ] = "Âñÿ ðàìêà";
+ Text[ polish ] = "Ca³a ramka";
+ Text[ japanese ] = "˜g‘S‘Ì";
+ Text[ chinese_traditional ] = "¾ã­Ó®Ø";
+ Text[ arabic ] = "ÇáÅØÇÑ ÈÃßãáå";
+ Text[ greek ] = "Ïëüêëçñï ðëáßóéï";
+ Text[ korean ] = "Àüü ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçevenin tümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_REL_PG_PRTAREA
+{
+ TEXT = "Rahmentextbereich" ;
+ TEXT [ English ] = "Frame text area" ;
+ Text [ portuguese ] = "Área da moldura para texto" ;
+ Text [ english_us ] = "Frame text area" ;
+ Text [ portuguese_brazilian ] = "Rahmentextbereich" ;
+ Text [ swedish ] = "Ramtextområde" ;
+ Text [ danish ] = "Rammetekstområde" ;
+ Text [ italian ] = "Area del testo della cornice" ;
+ Text [ spanish ] = "Área de texto del marco" ;
+ Text [ french ] = "Zone de texte de cadre" ;
+ Text [ dutch ] = "Kadertekstbereik" ;
+ Text[ chinese_simplified ] = "¿òÄÚÎÄ×ÖÇø";
+ Text[ russian ] = "Îáëàñòü òåêñòîâîé ðàìêè";
+ Text[ polish ] = "Obszar tekstu ramki";
+ Text[ japanese ] = "˜g•t‚¯”͈Í";
+ Text[ chinese_traditional ] = "®Ø¤º¤å¦r°Ï";
+ Text[ arabic ] = "äØÇÞ äÕ ÇáÅØÇÑ";
+ Text[ greek ] = "Ðåñéï÷Þ êåéìÝíïõ ôïõ ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ ÅؽºÆ® ¿µ¿ª";
+ Text[ turkish ] = "Çerçeve metin alaný";
+ Text[ language_user1 ] = " ";
+};
+String STR_FRAME
+{
+ TEXT = "Absatzbereich" ;
+ TEXT [ English ] = "Paragraph area" ;
+ Text [ portuguese ] = "Área de parágrafo" ;
+ Text [ english_us ] = "Paragraph area" ;
+ Text [ portuguese_brazilian ] = "Absatzbereich" ;
+ Text [ swedish ] = "Styckeområde" ;
+ Text [ danish ] = "Afsnitsområde" ;
+ Text [ italian ] = "Area del paragrafo" ;
+ Text [ spanish ] = "Área de párrafo" ;
+ Text [ french ] = "Zone de paragraphe" ;
+ Text [ dutch ] = "Alineabereik" ;
+ Text[ chinese_simplified ] = "¶ÎÂäÇøÓò";
+ Text[ russian ] = "Îáëàñòü àáçàöà";
+ Text[ polish ] = "Obszar akapitu";
+ Text[ japanese ] = "’i—Ž”͈Í";
+ Text[ chinese_traditional ] = "¬q¸¨°Ï°ì";
+ Text[ arabic ] = "äØÇÞ ÇáÝÞÑÉ";
+ Text[ greek ] = "Ðåñéï÷Þ ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô ¿µ¿ª";
+ Text[ turkish ] = "Paragraf bölümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRTAREA
+{
+ TEXT = "Absatztextbereich" ;
+ TEXT [ English ] = "Text area of paragraph" ;
+ Text [ portuguese ] = "Área de texto do parágrafo " ;
+ Text [ english_us ] = "Paragraph text area" ;
+ Text [ portuguese_brazilian ] = "Absatztextbereich" ;
+ Text [ swedish ] = "Textområde i stycke" ;
+ Text [ danish ] = "Afsnitstekstområde" ;
+ Text [ italian ] = "Area del testo del paragrafo" ;
+ Text [ spanish ] = "Área de texto del párrafo" ;
+ Text [ french ] = "Zone de texte de paragraphe" ;
+ Text [ dutch ] = "Alineatekstbereik" ;
+ Text[ chinese_simplified ] = "¶ÎÂäÎÄ×ÖÇøÓò";
+ Text[ russian ] = "Îáëàñòü òåêñòîâîãî àáçàöà";
+ Text[ polish ] = "Obszar tekstu w akapicie";
+ Text[ japanese ] = "’i—Ž‚Ì÷½Ä”͈Í";
+ Text[ chinese_traditional ] = "¬q¸¨¤å¦r°Ï°ì";
+ Text[ arabic ] = "äØÇÞ äÕ ÇáÝÞÑÉ";
+ Text[ greek ] = "Ðåñéï÷Þ êåéìÝíïõ ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô ÅؽºÆ® ¿µ¿ª";
+ Text[ turkish ] = "Paragraf metin alaný";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_PG_LEFT
+{
+ TEXT = "Seitenrand links" ;
+ TEXT [ English ] = "Left page border" ;
+ Text [ portuguese ] = "Margem esquerda do parágrafo" ;
+ Text [ english_us ] = "Left page border" ;
+ Text [ portuguese_brazilian ] = "Seitenrand links" ;
+ Text [ swedish ] = "Vänster sidmarginal" ;
+ Text [ danish ] = "Venstre siderand" ;
+ Text [ italian ] = "Margine paragrafo sinistro" ;
+ Text [ spanish ] = "Margen izquierdo de la página" ;
+ Text [ french ] = "Marge à gauche" ;
+ Text [ dutch ] = "Paginarand links" ;
+ Text[ chinese_simplified ] = "×ó·½Ò³±ß¾à";
+ Text[ russian ] = "Ëåâûé êðàé ñòðàíèöû";
+ Text[ polish ] = "Lewy margines strony";
+ Text[ japanese ] = "Íß°¼Þ—]”’ ¶";
+ Text[ chinese_traditional ] = "¥ªÃä¬É";
+ Text[ arabic ] = "åÇãÔ ÇáÕÝÍÉ ÇáÃíÓÑ";
+ Text[ greek ] = "Ðåñéèþñéï óåëßäáò - áñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ ÆäÀÌÁö ¿Ü°û¼±";
+ Text[ turkish ] = "Sol sayfa kenarý";
+ Text[ language_user1 ] = " ";
+};
+String STR_MIR_REL_PG_LEFT
+{
+ TEXT = "Seitenrand innen" ;
+ TEXT [ English ] = "Inner page border" ;
+ Text [ portuguese ] = "Margem interior da página" ;
+ Text [ english_us ] = "Inner page border" ;
+ Text [ portuguese_brazilian ] = "Seitenrand innen" ;
+ Text [ swedish ] = "Invändig sidmarginal" ;
+ Text [ danish ] = "Indre siderand" ;
+ Text [ italian ] = "Margine pagina interno" ;
+ Text [ spanish ] = "Margen interior de la página" ;
+ Text [ french ] = "Marge intérieure" ;
+ Text [ dutch ] = "Binnenste zijrand" ;
+ Text[ chinese_simplified ] = "ÄÚ²àÒ³±ß¾à";
+ Text[ russian ] = "Âíóòðåííèé êðàé ñòðàíèöû";
+ Text[ polish ] = "Wewnêrzny margines strony";
+ Text[ japanese ] = "Íß°¼Þ—]”’ “à‘¤";
+ Text[ chinese_traditional ] = "Ãä¬É¤º°¼";
+ Text[ arabic ] = "åÇãÔ ÇáÕÝÍÉ ÇáÏÇÎáí";
+ Text[ greek ] = "Ðåñéèþñéï óåëßäáò - åóùôåñéêÜ";
+ Text[ korean ] = "³»ºÎ ÆäÀÌÁö ¿Ü°û¼±";
+ Text[ turkish ] = "Sayfa kenarý (iç)";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_PG_RIGHT
+{
+ TEXT = "Seitenrand rechts" ;
+ TEXT [ English ] = "Right page border" ;
+ Text [ portuguese ] = "Margem direita da página" ;
+ Text [ english_us ] = "Right page border" ;
+ Text [ portuguese_brazilian ] = "Seitenrand rechts" ;
+ Text [ swedish ] = "Höger sidmarginal" ;
+ Text [ danish ] = "Højre siderand" ;
+ Text [ italian ] = "Margine pagina destro" ;
+ Text [ spanish ] = "Margen derecho de la página" ;
+ Text [ french ] = "Marge à droite" ;
+ Text [ dutch ] = "Paginarand rechts" ;
+ Text[ chinese_simplified ] = "ÓÒÒ³Ãæ¿Õ°×";
+ Text[ russian ] = "Ïðàâûé êðàé ñòðàíèöû";
+ Text[ polish ] = "Prawy margines strony";
+ Text[ japanese ] = "Íß°¼Þ—]”’ ‰E";
+ Text[ chinese_traditional ] = "¥k­¶­±ªÅ¥Õ";
+ Text[ arabic ] = "åÇãÔ ÇáÕÝÍÉ ÇáÃíãä";
+ Text[ greek ] = "Ðåñéèþñéï óåëßäáò - äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ ÆäÀÌÁö ¿Ü°û¼±";
+ Text[ turkish ] = "Sað sayfa kenarý";
+ Text[ language_user1 ] = " ";
+};
+String STR_MIR_REL_PG_RIGHT
+{
+ TEXT = "Seitenrand außen" ;
+ TEXT [ English ] = "Outer page border" ;
+ Text [ portuguese ] = "Margem exterior da página" ;
+ Text [ english_us ] = "Outer page border" ;
+ Text [ portuguese_brazilian ] = "Seitenrand außen" ;
+ Text [ swedish ] = "Utvändig sidmarginal" ;
+ Text [ danish ] = "Ydre siderand" ;
+ Text [ italian ] = "Margine pagina esterno" ;
+ Text [ spanish ] = "Margen exterior de la página" ;
+ Text [ french ] = "Marge extérieure" ;
+ Text [ dutch ] = "Buitenste zijrand" ;
+ Text[ chinese_simplified ] = "Íâ²àÒ³±ß¾à";
+ Text[ russian ] = "Íàðóæíûé êðàé ñòðàíèöû";
+ Text[ polish ] = "Zewnêtrzny margines strony";
+ Text[ japanese ] = "Íß°¼Þ—]”’ ŠO‘¤";
+ Text[ chinese_traditional ] = "Ãä¬É¥~°¼";
+ Text[ arabic ] = "åÇãÔ ÇáÕÝÍÉ ÇáÎÇÑÌí";
+ Text[ greek ] = "Ðåñéèþñéï óåëßäáò - åîùôåñéêÜ";
+ Text[ korean ] = "¿ÜºÎ ÆäÀÌÁö ¿Ü°û¼±";
+ Text[ turkish ] = "Sayfa kenarý (dýþ)";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_FRM_LEFT
+{
+ TEXT = "Absatzrand links" ;
+ TEXT [ English ] = "Left paragraph border" ;
+ Text [ portuguese ] = "Margem esquerda do parágrafo" ;
+ Text [ english_us ] = "Left paragraph border" ;
+ Text [ portuguese_brazilian ] = "Absatzrand links" ;
+ Text [ swedish ] = "Vänster styckemarginal" ;
+ Text [ danish ] = "Venstre afsnitsrand" ;
+ Text [ italian ] = "Margine paragrafo sinistro" ;
+ Text [ spanish ] = "Margen izquierdo del párrafo" ;
+ Text [ french ] = "Marge de paragraphe gauche" ;
+ Text [ dutch ] = "Alinearand links" ;
+ Text[ chinese_simplified ] = "×ó¶ÎÂäÒ³±ß";
+ Text[ russian ] = "Ëåâûé êðàé àáçàöà";
+ Text[ polish ] = "Lewy margines akapitu";
+ Text[ japanese ] = "’i—Ž—]”’ ¶";
+ Text[ chinese_traditional ] = "¥ª¬q¸¨­¶Ãä";
+ Text[ arabic ] = "åÇãÔ ÇáÝÞÑÉ ÇáÃíÓÑ";
+ Text[ greek ] = "Ðåñéèþñéï ðáñáãñÜöïõ - áñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ ´Ü¶ô ¿Ü°û¼±";
+ Text[ turkish ] = "Paragraf kenarý (sol)";
+ Text[ language_user1 ] = " ";
+};
+String STR_MIR_REL_FRM_LEFT
+{
+ TEXT = "Absatzrand innen" ;
+ TEXT [ English ] = "Inner paragraph border" ;
+ Text [ portuguese ] = "Margem interior do parágrafo" ;
+ Text [ english_us ] = "Inner paragraph border" ;
+ Text [ portuguese_brazilian ] = "Absatzrand innen" ;
+ Text [ swedish ] = "Inre styckemarginal" ;
+ Text [ danish ] = "Indre afsnitsrand" ;
+ Text [ italian ] = "Margine paragrafo interno" ;
+ Text [ spanish ] = "Margen interior del párrafo" ;
+ Text [ french ] = "Marge de paragraphe intérieure" ;
+ Text [ dutch ] = "Binnenste alinearand" ;
+ Text[ chinese_simplified ] = "¼ä¸ôÄÚ±ß";
+ Text[ russian ] = "Âíóòðåííèé êðàé àáçàöà";
+ Text[ polish ] = "Wewnêtrzny margines akapitu";
+ Text[ japanese ] = "’i—Ž—]”’ “à‘¤";
+ Text[ chinese_traditional ] = "¶¡¹j¤ºÃä";
+ Text[ arabic ] = "åÇãÔ ÇáÝÞÑÉ ÇáÏÇÎáí";
+ Text[ greek ] = "Ðåñéèþñéï ðáñáãñÜöïõ - åóùôåñéêÜ";
+ Text[ korean ] = "³»ºÎ ´Ü¶ô °æ°è¼±";
+ Text[ turkish ] = "Paragraf kenarý (iç)";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_FRM_RIGHT
+{
+ TEXT = "Absatzrand rechts" ;
+ TEXT [ English ] = "Right paragraph border" ;
+ Text [ portuguese ] = "Margem direita do parágrafo" ;
+ Text [ english_us ] = "Right paragraph border" ;
+ Text [ portuguese_brazilian ] = "Absatzrand rechts" ;
+ Text [ swedish ] = "Höger styckemarginal" ;
+ Text [ danish ] = "Højre afsnitsrand" ;
+ Text [ italian ] = "Margine paragrafo destro" ;
+ Text [ spanish ] = "Margen derecho del párrafo" ;
+ Text [ french ] = "Marge de paragraphe droite" ;
+ Text [ dutch ] = "Alinearand rechts" ;
+ Text[ chinese_simplified ] = "ÓÒ¶ÎÂäÒ³±ß";
+ Text[ russian ] = "Ïðàâûé êðàé àáçàöà";
+ Text[ polish ] = "Prawy margines akapitu";
+ Text[ japanese ] = "’i—Ž—]”’ ‰E";
+ Text[ chinese_traditional ] = "¥k¬q¸¨­¶Ãä";
+ Text[ arabic ] = "åÇãÔ ÇáÝÞÑÉ ÇáÃíãä";
+ Text[ greek ] = "Ðåñéèþñéï ðáñáãñÜöïõ - äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ ´Ü¶ô ¿Ü°û¼±";
+ Text[ turkish ] = "Paragraf kenarý (sað)";
+ Text[ language_user1 ] = " ";
+};
+String STR_MIR_REL_FRM_RIGHT
+{
+ TEXT = "Absatzrand außen" ;
+ TEXT [ English ] = "Outer paragraph border" ;
+ Text [ portuguese ] = "Margem exterior do parágrafo" ;
+ Text [ english_us ] = "Outer paragraph border" ;
+ Text [ portuguese_brazilian ] = "Absatzrand außen" ;
+ Text [ swedish ] = "Yttre styckemarginal" ;
+ Text [ danish ] = "Ydre afsnitsrand" ;
+ Text [ italian ] = "Margine paragrafo esterno" ;
+ Text [ spanish ] = "Margen exterior del párrafo" ;
+ Text [ french ] = "Marge de paragraphe extérieure " ;
+ Text [ dutch ] = "Buitenste alinearand" ;
+ Text[ chinese_simplified ] = "¶ÎÂä¼ä¸ôÍâ²à";
+ Text[ russian ] = "Íàðóæíûé êðàé àáçàöà";
+ Text[ polish ] = "Zewnêtrzny margines akapitu";
+ Text[ japanese ] = "’i—Ž—]”’ ŠO‘¤";
+ Text[ chinese_traditional ] = "¬q¸¨¶¡¹j¥~°¼";
+ Text[ arabic ] = "åÇãÔ ÇáÝÞÑÉ ÇáÎÇÑÌí";
+ Text[ greek ] = "Ðåñéèþñéï ðáñáãñÜöïõ - åîùôåñéêÜ";
+ Text[ korean ] = "¿ÜºÎ ´Ü¶ô ¿Ü°û¼±";
+ Text[ turkish ] = "Paragraf kenarý (dýþ)";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_PG_FRAME
+{
+ TEXT = "Gesamte Seite" ;
+ TEXT [ English ] = "Whole page" ;
+ Text [ portuguese ] = "Página inteira" ;
+ Text [ english_us ] = "Entire page" ;
+ Text [ portuguese_brazilian ] = "Gesamte Seite" ;
+ Text [ swedish ] = "Hela sidan" ;
+ Text [ danish ] = "Hele siden" ;
+ Text [ italian ] = "Intera pagina" ;
+ Text [ spanish ] = "Página entera" ;
+ Text [ french ] = "Page entière" ;
+ Text [ dutch ] = "Gehele pagina" ;
+ Text[ chinese_simplified ] = "ÕûÒ³";
+ Text[ russian ] = "Âñÿ ñòðàíèöà";
+ Text[ polish ] = "Ca³a strona";
+ Text[ japanese ] = "Íß°¼Þ•";
+ Text[ chinese_traditional ] = "¾ã­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÈÃßãáåÇ";
+ Text[ greek ] = "Ïëüêëçñç óåëßäá";
+ Text[ korean ] = "Àüü ÆäÀÌÁö";
+ Text[ turkish ] = "Sayfanýn tümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_PG_PRTAREA
+{
+ TEXT = "Seitentextbereich" ;
+ TEXT [ English ] = "Page text area" ;
+ Text [ portuguese ] = "Área de texto da página" ;
+ Text [ english_us ] = "Page text area" ;
+ Text [ portuguese_brazilian ] = "Seitentextbereich" ;
+ Text [ swedish ] = "Sidtextområde" ;
+ Text [ danish ] = "Sidetekstområde" ;
+ Text [ italian ] = "Area del testo della pagina" ;
+ Text [ spanish ] = "Área de texto de la página" ;
+ Text [ french ] = "Zone de texte de page" ;
+ Text [ dutch ] = "Paginatekstbereik" ;
+ Text[ chinese_simplified ] = "Ò³ÃæÎÄ×ÖÇøÓò";
+ Text[ russian ] = "Îáëàñòü òåêñòîâîé ñòðàíèöû";
+ Text[ polish ] = "Obszar tekstu na stronie";
+ Text[ japanese ] = "Íß°¼Þ‚Ì÷½Ä”͈Í";
+ Text[ chinese_traditional ] = "­¶­±¤å¦r°Ï°ì";
+ Text[ arabic ] = "äØÇÞ äÕ ÇáÕÝÍÉ";
+ Text[ greek ] = "Ðåñéï÷Þ êåéìÝíïõ óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ÅؽºÆ® ¿µ¿ª";
+ Text[ turkish ] = "Sayfa metin alaný";
+ Text[ language_user1 ] = " ";
+};
+/*-----------------------------------------------------------------------
+ Beschreibung: V-Rel Zeichenausrichtungen
+ -----------------------------------------------------------------------*/
+String STR_REL_BASE
+{
+ TEXT = "Grundlinie" ;
+ TEXT [ English ] = "Baseline" ;
+ Text [ portuguese ] = "Linha de base" ;
+ Text [ english_us ] = "Base line" ;
+ Text [ portuguese_brazilian ] = "Grundlinie" ;
+ Text [ swedish ] = "Baslinje" ;
+ Text [ danish ] = "Basislinje" ;
+ Text [ italian ] = "Linea di base" ;
+ Text [ spanish ] = "Línea de base" ;
+ Text [ french ] = "Ligne de base" ;
+ Text [ dutch ] = "Basislijn" ;
+ Text[ chinese_simplified ] = "»ùÏß";
+ Text[ russian ] = "Îñíîâíàÿ ëèíèÿ";
+ Text[ polish ] = "Linia podstawowa";
+ Text[ japanese ] = "Šîü";
+ Text[ chinese_traditional ] = "°ò½u";
+ Text[ arabic ] = "ÇáÎØ ÇáÃÓÇÓí";
+ Text[ greek ] = "ÂáóéêÞ ãñáììÞ";
+ Text[ korean ] = "±âÁؼ±";
+ Text[ turkish ] = "Taban çizgisi";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_CHAR
+{
+ TEXT = "Zeichen" ;
+ TEXT [ English ] = "Char" ;
+ Text [ portuguese ] = "Caracteres" ;
+ Text [ english_us ] = "Character" ;
+ Text [ portuguese_brazilian ] = "Zeichen" ;
+ Text [ swedish ] = "Tecken" ;
+ Text [ danish ] = "Tegn" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ spanish ] = "Caracteres" ;
+ Text [ french ] = "Caractère" ;
+ Text [ dutch ] = "Teken" ;
+ Text[ chinese_simplified ] = "×Ö·û";
+ Text[ russian ] = "Çíàê";
+ Text[ polish ] = "Znak";
+ Text[ japanese ] = "•¶Žš";
+ Text[ chinese_traditional ] = "¦r¤¸";
+ Text[ arabic ] = "ÍÑÝ";
+ Text[ greek ] = "×áñáêôÞñåò";
+ Text[ korean ] = "¹®ÀÚ";
+ Text[ turkish ] = "Karakter";
+ Text[ language_user1 ] = " ";
+};
+String STR_REL_ROW
+{
+ TEXT = "Zeile" ;
+ TEXT [ English ] = "Row" ;
+ Text [ portuguese ] = "Linha" ;
+ Text [ english_us ] = "Row" ;
+ Text [ portuguese_brazilian ] = "Zeile" ;
+ Text [ swedish ] = "Rad" ;
+ Text [ danish ] = "Række" ;
+ Text [ italian ] = "Riga" ;
+ Text [ spanish ] = "Fila" ;
+ Text [ french ] = "Ligne" ;
+ Text [ dutch ] = "Rij" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêà";
+ Text[ polish ] = "Wiersz";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÕÝ";
+ Text[ greek ] = "ÃñáììÞ";
+ Text[ korean ] = "Çà";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+};
+/*-----------------------------------------------------------------------
+ Beschreibung: Zeichenausrichtungen fuer frmsh.cxx - Kontextmenue
+ -----------------------------------------------------------------------*/
+String STR_TOP_BASE
+{
+ TEXT = "Grundlinie ~oben" ;
+ TEXT [ English ] = "Top of baseline" ;
+ Text [ portuguese ] = "Linha de base em ~cima" ;
+ Text [ english_us ] = "Base line at ~top" ;
+ Text [ portuguese_brazilian ] = "Basis ~oben" ;
+ Text [ swedish ] = "Baslinje ~överst" ;
+ Text [ danish ] = "Basislinje øverst" ;
+ Text [ italian ] = "Linea di base in ~alto" ;
+ Text [ spanish ] = "Línea de base ~encima" ;
+ Text [ french ] = "Ligne de base en ~haut" ;
+ Text [ dutch ] = "Basis ~boven" ;
+ Text[ chinese_simplified ] = "»ùÏßÉÏ·½(~T)";
+ Text[ russian ] = "Îñíîâíàÿ ëèíèÿ ñâåðõó";
+ Text[ polish ] = "Linia podstawowa w górze";
+ Text[ japanese ] = "Šîü‚Ìã(~T)";
+ Text[ chinese_traditional ] = "°ò½u¤W¤è(~T)";
+ Text[ arabic ] = "ÃÚáì ÇáÎØ ÇáÃÓÇÓí";
+ Text[ greek ] = "ÂáóéêÞ ãñáììÞ - Üíù";
+ Text[ korean ] = "±âÁؼ±ÀÇ À§(~T)";
+ Text[ turkish ] = "Taban çizgisi ~üstü";
+ Text[ language_user1 ] = " ";
+};
+String STR_BOTTOM_BASE
+{
+ TEXT = "Grundlinie ~unten" ;
+ TEXT [ English ] = "Bottom of base" ;
+ Text [ portuguese ] = "~Abaixo da base" ;
+ Text [ english_us ] = "~Base line at bottom" ;
+ Text [ portuguese_brazilian ] = "Basis ~unten" ;
+ Text [ swedish ] = "Baslinje ~nederst" ;
+ Text [ danish ] = "Basislinje nederst" ;
+ Text [ italian ] = "Base in ~basso" ;
+ Text [ spanish ] = "Base a~bajo" ;
+ Text [ french ] = "Ligne de base en ~bas" ;
+ Text [ dutch ] = "Basis ~beneden" ;
+ Text[ chinese_simplified ] = "»ùÏßÏ·½(~B)";
+ Text[ russian ] = "Îñíîâíàÿ ëèíèÿ ñíèçó";
+ Text[ polish ] = "Linia podstawowa w dole";
+ Text[ japanese ] = "Šîü‚̉º(~B)";
+ Text[ chinese_traditional ] = "°ò½u¤U¤è(~B)";
+ Text[ arabic ] = "ÃÓÝá ÇáÎØ ÇáÃÓÇÓí";
+ Text[ greek ] = "ÂáóéêÞ ãñáììÞ - êÜôù";
+ Text[ korean ] = "±âÁؼ±ÀÇ ¾Æ·¡(~B)";
+ Text[ turkish ] = "Alt ~taban çizgisi";
+ Text[ language_user1 ] = " ";
+};
+String STR_CENTER_BASE
+{
+ TEXT = "Grundlinie ~zentriert" ;
+ TEXT [ English ] = "Center of baseline" ;
+ Text [ portuguese ] = "Linha de base ~centrada" ;
+ Text [ english_us ] = "Base line ~centered" ;
+ Text [ portuguese_brazilian ] = "Basis ~zentriert" ;
+ Text [ swedish ] = "Baslinje ~centrerad" ;
+ Text [ danish ] = "Basislinje centreret" ;
+ Text [ italian ] = "Linea di base ~centrata" ;
+ Text [ spanish ] = "Base ~centro" ;
+ Text [ french ] = "Ligne de base ~centrée" ;
+ Text [ dutch ] = "Basis ge~centreerd" ;
+ Text[ chinese_simplified ] = "»ùÏß¾ÓÖÐ(~C)";
+ Text[ russian ] = "Îñíîâíàÿ ëèíèÿ ïî öåíòðó";
+ Text[ polish ] = "Linia podstawowa, wyœrodkowana";
+ Text[ japanese ] = "Šîü‚Ì’†‰›(~C)";
+ Text[ chinese_traditional ] = "°ò½u¸m¤¤(~C)";
+ Text[ arabic ] = "æÓØ ÇáÎØ ÇáÃÓÇÓí";
+ Text[ greek ] = "ÂáóéêÞ ãñáììÞ - êåíôñáñéóìÝíá";
+ Text[ korean ] = "±âÁؼ±ÀÇ °¡¿îµ¥(~C)";
+ Text[ turkish ] = "Taban çizgisini ~ortala";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_TOP
+{
+ TEXT = "Zeile oben" ;
+ TEXT [ English ] = "Line top" ;
+ Text [ dutch ] = "Bovenste regel" ;
+ Text [ english_us ] = "Top of line" ;
+ Text [ italian ] = "Riga in alto" ;
+ Text [ spanish ] = "Línea superior" ;
+ Text [ french ] = "Ligne supérieure" ;
+ Text [ swedish ] = "Översta raden" ;
+ Text [ danish ] = "Række øverst" ;
+ Text [ portuguese ] = "Linha superior" ;
+ Text [ portuguese_brazilian ] = "Zeile oben" ;
+ Text[ chinese_simplified ] = "ÐÐÏòÉÏ";
+ Text[ russian ] = "Ñòðîêà ñâåðõó";
+ Text[ polish ] = "Wiersz na górze";
+ Text[ japanese ] = "s‚Ìã";
+ Text[ chinese_traditional ] = "¦æ¦V¤W";
+ Text[ arabic ] = "ÃÚáì ÇáÓØÑ";
+ Text[ greek ] = "ÃñáììÞ - Üíù";
+ Text[ korean ] = "¼± À§";
+ Text[ turkish ] = "Satýr üstü";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_BOTTOM
+{
+ TEXT = "Zeile unten" ;
+ TEXT [ English ] = "Line bottom" ;
+ Text [ dutch ] = "Onderste regel" ;
+ Text [ english_us ] = "Bottom of line" ;
+ Text [ italian ] = "Riga in basso" ;
+ Text [ spanish ] = "Línea inferior" ;
+ Text [ french ] = "Ligne inférieure" ;
+ Text [ swedish ] = "Nedersta raden" ;
+ Text [ danish ] = "Række nederst" ;
+ Text [ portuguese ] = "Linha inferior" ;
+ Text [ portuguese_brazilian ] = "Zeile unten" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»ÐÐ";
+ Text[ russian ] = "Ñòðîêà ñíèçó";
+ Text[ polish ] = "Wiersz na dole";
+ Text[ japanese ] = "s‚̉º";
+ Text[ chinese_traditional ] = "¤U¤@¦æ";
+ Text[ arabic ] = "ÃÓÝá ÇáÓØÑ";
+ Text[ greek ] = "ÃñáììÞ - êÜôù";
+ Text[ korean ] = "¼±ÀÇ ¾Æ·¡";
+ Text[ turkish ] = "Satýr altý";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_CENTER
+{
+ TEXT = "Zeile zentriert" ;
+ TEXT [ English ] = "Line centered" ;
+ Text [ english_us ] = "Center of line" ;
+ Text [ italian ] = "Riga centrata" ;
+ Text [ spanish ] = "Línea centrada" ;
+ Text [ french ] = "Ligne centrée" ;
+ Text [ dutch ] = "Regel gecentreerd" ;
+ Text [ swedish ] = "Rad centrerad" ;
+ Text [ danish ] = "Række centreret" ;
+ Text [ portuguese ] = "Linha centrada" ;
+ Text [ portuguese_brazilian ] = "Zeile zentriert" ;
+ Text[ chinese_simplified ] = "ÐоÓÖÐ";
+ Text[ russian ] = "Ñòðîêà ïî öåíòðó";
+ Text[ polish ] = "Wiersz wyœrodkowany";
+ Text[ japanese ] = "s‚Ì’†‰›";
+ Text[ chinese_traditional ] = "¦æ¸m¤¤";
+ Text[ arabic ] = "æÓØ ÇáÓØÑ";
+ Text[ greek ] = "ÃñáììÞ êåíôñáñéóìÝíç";
+ Text[ korean ] = "¼± °¡¿îµ¥";
+ Text[ turkish ] = "Satýrý ortala";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAR_TOP
+{
+ TEXT = "Zeichen oben" ;
+ TEXT [ English ] = "Top of character" ;
+ Text [ dutch ] = "Teken boven" ;
+ Text [ english_us ] = "Top of character" ;
+ Text [ italian ] = "Carattere in alto" ;
+ Text [ spanish ] = "Carácter arriba" ;
+ Text [ french ] = "Décalage haut" ;
+ Text [ swedish ] = "Tecken överst" ;
+ Text [ danish ] = "Tegn øverst" ;
+ Text [ portuguese ] = "Carácter em cima" ;
+ Text [ portuguese_brazilian ] = "Zeichen oben" ;
+ Text[ chinese_simplified ] = "×Ö·ûÏòÉÏ";
+ Text[ russian ] = "Çíàê ñâåðõó";
+ Text[ polish ] = "Znaki w górze";
+ Text[ japanese ] = "•¶Žš‚Ìã";
+ Text[ chinese_traditional ] = "¦r¤¸¦V¤W";
+ Text[ arabic ] = "ÃÚáì ÇáÍÑÝ";
+ Text[ greek ] = "×áñáêôÞñáò - Üíù";
+ Text[ korean ] = "¹®ÀÚÀÇ À§¿¡";
+ Text[ turkish ] = "Karakter üstü";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAR_BOTTOM
+{
+ TEXT = "Zeichen unten" ;
+ TEXT [ English ] = "Bottom of character" ;
+ Text [ dutch ] = "Teken beneden" ;
+ Text [ english_us ] = "Bottom of character" ;
+ Text [ italian ] = "Carattere in basso" ;
+ Text [ spanish ] = "Carácter abajo" ;
+ Text [ french ] = "Décalage bas" ;
+ Text [ swedish ] = "Tecken nederst" ;
+ Text [ danish ] = "Tegn nederst" ;
+ Text [ portuguese ] = "Carácter em baixo" ;
+ Text [ portuguese_brazilian ] = "Zeichen unten" ;
+ Text[ chinese_simplified ] = "×Ö·ûÏòÏÂ";
+ Text[ russian ] = "Çíàê ñíèçó";
+ Text[ polish ] = "Znaki na dole";
+ Text[ japanese ] = "•¶Žš‚̉º";
+ Text[ chinese_traditional ] = "¦r¤¸¦V¤U";
+ Text[ arabic ] = "ÃÓÝá ÇáÍÑÝ";
+ Text[ greek ] = "×áñáêôÞñáò - êÜôù";
+ Text[ korean ] = "¹®ÀÚÀÇ ¾Æ·¡";
+ Text[ turkish ] = "Karakter altý";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHAR_CENTER
+{
+ TEXT = "Zeichen zentriert" ;
+ TEXT [ English ] = "Middle of character" ;
+ Text [ english_us ] = "Center of character" ;
+ Text [ italian ] = "Carattere centrato" ;
+ Text [ spanish ] = "Carácter centrado" ;
+ Text [ french ] = "Caractère centré" ;
+ Text [ dutch ] = "Teken gecentreerd" ;
+ Text [ swedish ] = "Tecken centrerat" ;
+ Text [ danish ] = "Tegn centreret" ;
+ Text [ portuguese ] = "Carácter centrado" ;
+ Text [ portuguese_brazilian ] = "Zeichen zentriert" ;
+ Text[ chinese_simplified ] = "×Ö·û¾ÓÖÐ";
+ Text[ russian ] = "Çíàê ïî öåíòðó";
+ Text[ polish ] = "Znaki wyœrodkowane";
+ Text[ japanese ] = "•¶Žš‚Ì’†‰›";
+ Text[ chinese_traditional ] = "¦r¤¸¸m¤¤";
+ Text[ arabic ] = "æÓØ ÇáÍÑÝ";
+ Text[ greek ] = "×áñáêôÞñáò - êåíôñáñéóìÝíá";
+ Text[ korean ] = "¹®ÀÚÀÇ °¡¿îµ¥";
+ Text[ turkish ] = "Karakteri ortala";
+ Text[ language_user1 ] = " ";
+};
+String STR_OLE_INSERT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Objekt einfügen : Objekt einf³gen */
+ TEXT = "Objekt einfügen" ;
+ TEXT [ English ] = "Insert object" ;
+ TEXT [ norwegian ] = "Insert object" ;
+ TEXT [ italian ] = "Inserisci oggetto" ;
+ TEXT [ portuguese_brazilian ] = "Inserir objeto" ;
+ TEXT [ portuguese ] = "Inserir objecto" ;
+ TEXT [ finnish ] = "Lisää objekti" ;
+ TEXT [ danish ] = "Indsæt objekt" ;
+ TEXT [ french ] = "Insérer un objet" ;
+ TEXT [ swedish ] = "Infoga objekt" ;
+ TEXT [ dutch ] = "Object invoegen" ;
+ TEXT [ spanish ] = "Insertar objeto" ;
+ TEXT [ english_us ] = "Insert object" ;
+ TEXT[ chinese_simplified ] = "²åÈë¶ÔÏó";
+ TEXT[ russian ] = "Âñòàâèòü îáúåêò";
+ TEXT[ polish ] = "Wstaw obiekt";
+ TEXT[ japanese ] = "µÌß¼Þª¸Ä‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤Jª«¥ó";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ßÇÆä";
+ TEXT[ greek ] = "ÐñïóèÞêç áíôéêåéìÝíïõ";
+ TEXT[ korean ] = "°³Ã¼ »ðÀÔ";
+ TEXT[ turkish ] = "Nesne ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_OLE_EDIT
+{
+ TEXT = "Objekt bearbeiten" ;
+ TEXT [ English ] = "Edit object" ;
+ TEXT [ norwegian ] = "Edit object" ;
+ TEXT [ italian ] = "Modifica oggetto" ;
+ TEXT [ portuguese_brazilian ] = "Editar objeto" ;
+ TEXT [ portuguese ] = "Editar objecto" ;
+ TEXT [ finnish ] = "Muokkaa objektia" ;
+ TEXT [ danish ] = "Rediger objekt" ;
+ TEXT [ french ] = "Modifier l'objet" ;
+ TEXT [ swedish ] = "Redigera objekt" ;
+ TEXT [ dutch ] = "Een object bewerken" ;
+ TEXT [ spanish ] = "Editar objeto" ;
+ TEXT [ english_us ] = "Edit object" ;
+ TEXT[ chinese_simplified ] = "±à¼­¶ÔÏó";
+ TEXT[ russian ] = "Ïðàâêà îáúåêòà";
+ TEXT[ polish ] = "Edytuj obiekt";
+ TEXT[ japanese ] = "µÌß¼Þª¸Ä‚Ì•ÒW";
+ TEXT[ chinese_traditional ] = "½s¿èª«¥ó";
+ TEXT[ arabic ] = "ÊÍÑíÑ ÇáßÇÆä";
+ TEXT[ greek ] = "Åðåîåñãáóßá áíôéêåéìÝíïõ";
+ TEXT[ korean ] = "°³Ã¼ ÆíÁý";
+ TEXT[ turkish ] = "Nesneyi düzenle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_COLL_HEADER
+{
+ TEXT = " (Vorlage: " ;
+ TEXT [ English ] = " (Template: " ;
+ TEXT [ norwegian ] = " (Template: " ;
+ TEXT [ italian ] = "(Modello: " ;
+ TEXT [ portuguese_brazilian ] = "(Modelo: " ;
+ TEXT [ portuguese ] = "(Modelo: " ;
+ TEXT [ finnish ] = " (Malli: " ;
+ TEXT [ danish ] = "(Skabelon: " ;
+ TEXT [ french ] = "(modèle : " ;
+ TEXT [ swedish ] = "(Mall: " ;
+ TEXT [ dutch ] = "(Sjabloon: " ;
+ TEXT [ spanish ] = "(Plantilla: " ;
+ TEXT [ english_us ] = " (Template: " ;
+ TEXT[ chinese_simplified ] = "(Ñùʽ£º ";
+ TEXT[ russian ] = "(Øàáëîí: ";
+ TEXT[ polish ] = "(Szablon: ";
+ TEXT[ japanese ] = "(ÃÝÌßÚ°Ä: ";
+ TEXT[ chinese_traditional ] = "(¼Ë¦¡¡G ";
+ TEXT[ arabic ] = "(ÇáÞÇáÈ: ";
+ TEXT[ greek ] = "(Ðñüôõðï: ";
+ TEXT[ korean ] = "(ÅÛÇø®Æ®: ";
+ TEXT[ turkish ] = "(Þablon: ";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_FRMUI_BORDER
+{
+ Text = "Umrandung" ;
+ Text [ English ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "Kenarlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_FRMUI_PATTERN
+{
+ Text = "Hintergrund" ;
+ Text [ English ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+};
+String STR_FRMUI_WRAP
+{
+ Text = "Umlauf" ;
+ Text [ ENGLISH ] = "Wrap" ;
+ Text [ norwegian ] = "Wrap" ;
+ Text [ italian ] = "Scorrimento" ;
+ Text [ portuguese_brazilian ] = "Circundamento" ;
+ Text [ portuguese ] = "Ajuste" ;
+ Text [ finnish ] = "Kierrätys" ;
+ Text [ danish ] = "Ombrydning" ;
+ Text [ french ] = "Adaptation du texte" ;
+ Text [ swedish ] = "Textanpassning" ;
+ Text [ dutch ] = "Om beeld" ;
+ Text [ spanish ] = "Ajuste" ;
+ Text [ english_us ] = "Wrap" ;
+ Text[ chinese_simplified ] = "»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå";
+ Text[ polish ] = "Obieg tekstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "´«¦æ";
+ Text[ arabic ] = "ÇáÊÝÇÝ";
+ Text[ greek ] = "Áíáäßðëùóç";
+ Text[ korean ] = "¼øȯ";
+ Text[ turkish ] = "Metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+InfoBox MSG_COLUMN_ERR_BOUNDWIDTH
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ /* ### ACHTUNG: Neuer Text in Resource? Der Spaltenabstand ist zu groß für die Spaltenbreite. : Der Spaltenabstand ist zu gro˜ f³r die Spaltenbreite. */
+ MESSAGE = "Der Spaltenabstand ist zu groß für die Spaltenbreite." ;
+ MESSAGE [ English ] = "Gutter width exceeds column width." ;
+ MESSAGE [ norwegian ] = "Gutter width exceeds column width." ;
+ MESSAGE [ italian ] = "La distanza tra le colonne supera la larghezza delle colonne" ;
+ MESSAGE [ portuguese_brazilian ] = "Largura do guter excede largura da coluna." ;
+ MESSAGE [ portuguese ] = "O espaço entre as colunas é grande demais para a largura das colunas." ;
+ MESSAGE [ finnish ] = "Palstojen väli on palstojen leveyttä suurempi." ;
+ MESSAGE [ danish ] = "Kolonneafstanden er for stor til kolonnebredden." ;
+ MESSAGE [ french ] = "Largeur de gouttière excède largeur de colonne." ;
+ MESSAGE [ swedish ] = "Fästmarginalens bredd är för stor för kolumnbredden." ;
+ MESSAGE [ dutch ] = "De kolomafstand is te groot voor deze kolombreedte" ;
+ MESSAGE [ spanish ] = "La distancia entre columnas es demasiado grande para el ancho de las columnas." ;
+ MESSAGE [ english_us ] = "Column spacing exceeds the column width." ;
+ MESSAGE[ chinese_simplified ] = "Áмä¸ôÌ«´ó£¬³¬¹ýÁÐÇøÓò¡£";
+ MESSAGE[ russian ] = "Ðàññòîÿíèå ìåæäó êîëîíêàìè ñëèøêîì áîëüøîå äëÿ øèðèíû êîëîíîê.";
+ MESSAGE[ polish ] = "Odstêp miêdzy kolumnami jest za du¿y dla ich szerokoœci.";
+ MESSAGE[ japanese ] = "—ñ‚ÌŠÔŠu‚ª—ñ‚Ì•‚ɑ΂µ‚ÄL‚·‚¬‚Ü‚·";
+ MESSAGE[ chinese_traditional ] = "Ä涡¹j¤Ó¤j¡A¶W¹LÄæ°Ï°ì¡C";
+ MESSAGE[ arabic ] = "íÝæÞ ÊÈÇÚÏ ÇáÃÚãÏÉ ÚÑÖåÇ.";
+ MESSAGE[ greek ] = "Ç áðüóôáóç óôçëþí õðåñâáßíåé ôï ðëÜôïò ôçò óôÞëçò.";
+ MESSAGE[ korean ] = "¿­ °£°ÝÀÌ ¿­ ³Êºñ¿¡ ºñÇØ ³Ê¹« ³Ð½À´Ï´Ù.";
+ MESSAGE[ turkish ] = "Sütun aralýðý, sütun geniþliði için çok büyük.";
+ MESSAGE[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/frmdlg/makefile.mk b/sw/source/ui/frmdlg/makefile.mk
new file mode 100644
index 000000000000..3007f4d1fce3
--- /dev/null
+++ b/sw/source/ui/frmdlg/makefile.mk
@@ -0,0 +1,125 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=frmdlg
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+IMGLST_SRS=$(SRS)$/frmdlg.srs
+BMP_IN=$(PRJ)$/win/imglst
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ bbmgr.cxx \
+ colmgr.cxx \
+ column.cxx \
+ colex.cxx \
+ cption.cxx \
+ cropex.cxx \
+ frmdlg.cxx \
+ frmex.cxx \
+ frmmgr.cxx \
+ frmpage.cxx \
+ pattern.cxx \
+ uiborder.cxx \
+ wrap.cxx
+
+SRCFILES = \
+ column.src \
+ cption.src \
+ frmpage.src \
+ frmui.src \
+ wrap.src
+
+SLOFILES = \
+ $(SLO)$/bbmgr.obj \
+ $(SLO)$/colmgr.obj \
+ $(SLO)$/column.obj \
+ $(SLO)$/colex.obj \
+ $(SLO)$/cption.obj \
+ $(SLO)$/cropex.obj \
+ $(SLO)$/frmdlg.obj \
+ $(SLO)$/frmex.obj \
+ $(SLO)$/frmmgr.obj \
+ $(SLO)$/frmpage.obj \
+ $(SLO)$/pattern.obj \
+ $(SLO)$/uiborder.obj \
+ $(SLO)$/wrap.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/frmdlg/pattern.cxx b/sw/source/ui/frmdlg/pattern.cxx
new file mode 100644
index 000000000000..e7cb9673230f
--- /dev/null
+++ b/sw/source/ui/frmdlg/pattern.cxx
@@ -0,0 +1,167 @@
+/*************************************************************************
+ *
+ * $RCSfile: pattern.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+
+
+#include "swtypes.hxx"
+#include "pattern.hxx"
+#include "frmui.hrc"
+
+
+/****************************************************************************
+Ctor
+****************************************************************************/
+
+
+
+SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) :
+
+ SfxSingleTabDialog(pParent, rSet, 0)
+
+{
+ SetText(SW_RESSTR(STR_FRMUI_PATTERN));
+ SetTabPage(SvxBackgroundTabPage::Create(this, rSet));
+}
+
+/****************************************************************************
+Dtor
+****************************************************************************/
+
+
+
+SwBackgroundDlg::~SwBackgroundDlg()
+{
+}
+
+/*************************************************************************
+
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/frmdlg/pattern.cxx,v 1.1.1.1 2000-09-18 17:14:38 hr Exp $
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.62 2000/09/18 16:05:34 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.61 1997/11/24 16:40:16 MA
+ include
+
+
+ Rev 1.60 24 Nov 1997 17:40:16 MA
+ include
+
+ Rev 1.59 03 Nov 1997 13:19:48 MA
+ precomp entfernt
+
+ Rev 1.58 14 Nov 1996 15:31:26 TRI
+ includes
+
+ Rev 1.57 11 Nov 1996 10:44:16 MA
+ ResMgr
+
+ Rev 1.56 28 Aug 1996 11:52:44 OS
+ includes
+
+ Rev 1.55 24 Nov 1995 16:58:10 OM
+ PCH->PRECOMPILED
+
+ Rev 1.54 16 Aug 1995 17:48:32 MA
+ Riesenheader dialogs entfernt.
+
+ Rev 1.53 31 Mar 1995 13:10:38 OM
+ SfxModalDialog -> SfxSingleTabDialog
+
+ Rev 1.52 29 Mar 1995 08:32:04 OS
+ SfxModalDialog - Parameter zusatzlich
+
+ Rev 1.51 07 Feb 1995 19:19:10 PK
+ caption fuer uiborder und pattern
+
+ Rev 1.50 24 Jan 1995 13:10:24 SWG
+ Map entfernt
+
+ Rev 1.49 21 Nov 1994 13:11:24 PK
+ sfxmodaldialog
+
+ Rev 1.48 17 Nov 1994 13:06:00 PK
+ swpatterndlg -> swbackgrounddlg
+
+ Rev 1.47 25 Oct 1994 18:14:40 ER
+ add: PCH
+
+ Rev 1.46 19 Oct 1994 12:09:48 MA
+ SV-ChangeXXX -> SetXXX.
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/frmdlg/pattern.hrc b/sw/source/ui/frmdlg/pattern.hrc
new file mode 100644
index 000000000000..da9feae9bea6
--- /dev/null
+++ b/sw/source/ui/frmdlg/pattern.hrc
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: pattern.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define BRUSH_LBL 1
+#define BRUSH_LBOX 2
+
+#define COLOR_LBL 3
+#define COLOR_LBOX 4
+
+#define FILLIN_COLOR_LBL 5
+#define FILLIN_COLOR_LBOX 6
+
+#define NO_PATTERN_BOX 7
+
+#define PATTERN_FRM 8
+#define EXAMPLE_FRM 9
+#define EXAMPLE_WIN 10
+
+#define OK_BTN 11
+#define CANCEL_BTN 12
+#define RESET_BTN 13
+
diff --git a/sw/source/ui/frmdlg/uiborder.cxx b/sw/source/ui/frmdlg/uiborder.cxx
new file mode 100644
index 000000000000..e7762ff6fead
--- /dev/null
+++ b/sw/source/ui/frmdlg/uiborder.cxx
@@ -0,0 +1,164 @@
+/*************************************************************************
+ *
+ * $RCSfile: uiborder.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVX_BORDER_HXX //autogen
+#include <svx/border.hxx>
+#endif
+
+
+#include "swtypes.hxx"
+#include "uiborder.hxx"
+#include "frmui.hrc"
+
+
+
+
+SwBorderDlg::SwBorderDlg(Window* pParent, SfxItemSet& rSet, USHORT nType) :
+
+ SfxSingleTabDialog(pParent, rSet, 0)
+
+{
+ SetText(SW_RESSTR(STR_FRMUI_BORDER));
+
+ // TabPage erzeugen
+ SvxBorderTabPage* pPage = (SvxBorderTabPage*) SvxBorderTabPage::Create(this, rSet);
+ pPage->SetSWMode(nType);
+ if(SW_BORDER_MODE_TABLE == nType)
+ pPage->HideShadowControls();
+ SetTabPage(pPage);
+}
+
+
+
+SwBorderDlg::~SwBorderDlg()
+{
+}
+
+/*************************************************************************
+
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/frmdlg/uiborder.cxx,v 1.1.1.1 2000-09-18 17:14:38 hr Exp $
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.84 2000/09/18 16:05:35 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.83 2000/01/31 12:29:56 os
+ #70943# SwBorderDlg: call SvxBorderTabPage::SetSWMode
+
+ Revision 1.82 1997/11/24 16:40:16 MA
+ include
+
+
+ Rev 1.81 24 Nov 1997 17:40:16 MA
+ include
+
+ Rev 1.80 03 Nov 1997 13:19:46 MA
+ precomp entfernt
+
+ Rev 1.79 14 Nov 1996 15:32:36 TRI
+ includes
+
+ Rev 1.78 11 Nov 1996 10:44:14 MA
+ ResMgr
+
+ Rev 1.77 28 Aug 1996 11:52:58 OS
+ includes
+
+ Rev 1.76 24 Nov 1995 16:58:12 OM
+ PCH->PRECOMPILED
+
+ Rev 1.75 16 Aug 1995 17:48:26 MA
+ Riesenheader dialogs entfernt.
+
+ Rev 1.74 31 Mar 1995 13:10:40 OM
+ SfxModalDialog -> SfxSingleTabDialog
+
+ Rev 1.73 29 Mar 1995 08:32:18 OS
+ SfxModalDialog - Parameter zusatzlich
+
+ Rev 1.72 07 Feb 1995 19:19:12 PK
+ caption fuer uiborder und pattern
+
+ Rev 1.71 01 Feb 1995 17:45:16 PK
+ hideshadowcontrol()
+
+ Rev 1.70 27 Jan 1995 07:24:36 MS
+ HideShadowControls auskommentiert
+
+ Rev 1.69 26 Jan 1995 17:37:32 PK
+ hideshadowcontrols() scharfgeschaltet
+
+ Rev 1.68 26 Jan 1995 17:02:00 PK
+ ctor erweiert
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx
new file mode 100644
index 000000000000..a817643ad563
--- /dev/null
+++ b/sw/source/ui/frmdlg/wrap.cxx
@@ -0,0 +1,974 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrap.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SV_GRAPH_HXX
+#include <vcl/graph.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFX_OBJSH_HXX //autogen
+#include <sfx2/objsh.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SVX_OPAQITEM_HXX //autogen
+#include <svx/opaqitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "uitool.hxx"
+#include "wrtsh.hxx"
+#include "swmodule.hxx"
+#include "viewopt.hxx"
+#include "frmatr.hxx"
+#include "frmmgr.hxx"
+#include "globals.hrc"
+#include "frmui.hrc"
+#include "wrap.hrc"
+#include "wrap.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+static USHORT __FAR_DATA aWrapPageRg[] = {
+ RES_LR_SPACE, RES_UL_SPACE,
+ RES_PROTECT, RES_SURROUND,
+ RES_PRINT, RES_PRINT,
+ 0
+};
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwWrapDlg::SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, BOOL bDrawMode) :
+ SfxSingleTabDialog(pParent, rSet, 0),
+ pWrtShell(pSh)
+
+{
+ // TabPage erzeugen
+ SwWrapTabPage* pPage = (SwWrapTabPage*) SwWrapTabPage::Create(this, rSet);
+ pPage->SetFormatUsed(FALSE, bDrawMode);
+ pPage->SetShell(pWrtShell);
+ SetTabPage(pPage);
+
+ String sTitle(SW_RES(STR_FRMUI_WRAP));
+ SetText(sTitle);
+}
+
+
+
+SwWrapDlg::~SwWrapDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwWrapTabPage::SwWrapTabPage(Window *pParent, const SfxItemSet &rSet) :
+ SfxTabPage(pParent, SW_RES(TP_FRM_WRAP), rSet),
+
+ aWrapBoxC (this, SW_RES(C_WRAP_BOX)),
+ aNoWrapRB (this, SW_RES(RB_NO_WRAP)),
+ aWrapLeftRB (this, SW_RES(RB_WRAP_LEFT)),
+ aWrapRightRB (this, SW_RES(RB_WRAP_RIGHT)),
+ aWrapParallelRB (this, SW_RES(RB_WRAP_PARALLEL)),
+ aWrapThroughRB (this, SW_RES(RB_WRAP_THROUGH)),
+ aIdealWrapRB (this, SW_RES(RB_WRAP_IDEAL)),
+ aWrapAnchorOnlyCB (this, SW_RES(CB_ANCHOR_ONLY)),
+ aWrapTransparentCB (this, SW_RES(CB_TRANSPARENT)),
+ aWrapOutlineCB (this, SW_RES(CB_OUTLINE)),
+ aWrapOutsideCB (this, SW_RES(CB_ONLYOUTSIDE)),
+ aOptionsGB (this, SW_RES(GB_OPTION)),
+ aLeftMarginFT (this, SW_RES(FT_LEFT_MARGIN)),
+ aLeftMarginED (this, SW_RES(ED_LEFT_MARGIN)),
+ aRightMarginFT (this, SW_RES(FT_RIGHT_MARGIN)),
+ aRightMarginED (this, SW_RES(ED_RIGHT_MARGIN)),
+ aTopMarginFT (this, SW_RES(FT_TOP_MARGIN)),
+ aTopMarginED (this, SW_RES(ED_TOP_MARGIN)),
+ aBottomMarginFT (this, SW_RES(FT_BOTTOM_MARGIN)),
+ aBottomMarginED (this, SW_RES(ED_BOTTOM_MARGIN)),
+ aMarginGB (this, SW_RES(GB_MARGIN)),
+
+ aWrapIL (SW_RES(IL_WRAP)),
+ nHtmlMode(0),
+ bNew(TRUE),
+ bFormat(FALSE),
+ bHtmlMode(FALSE),
+ bContourImage(FALSE),
+ nAnchorId(0)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+
+ Link aLk = LINK(this, SwWrapTabPage, RangeModifyHdl);
+ aLeftMarginED.SetUpHdl(aLk);
+ aLeftMarginED.SetDownHdl(aLk);
+ aLeftMarginED.SetFirstHdl(aLk);
+ aLeftMarginED.SetLastHdl(aLk);
+ aLeftMarginED.SetLoseFocusHdl(aLk);
+
+ aRightMarginED.SetUpHdl(aLk);
+ aRightMarginED.SetDownHdl(aLk);
+ aRightMarginED.SetFirstHdl(aLk);
+ aRightMarginED.SetLastHdl(aLk);
+ aRightMarginED.SetLoseFocusHdl(aLk);
+
+ aTopMarginED.SetUpHdl(aLk);
+ aTopMarginED.SetDownHdl(aLk);
+ aTopMarginED.SetFirstHdl(aLk);
+ aTopMarginED.SetLastHdl(aLk);
+ aTopMarginED.SetLoseFocusHdl(aLk);
+
+ aBottomMarginED.SetUpHdl(aLk);
+ aBottomMarginED.SetDownHdl(aLk);
+ aBottomMarginED.SetFirstHdl(aLk);
+ aBottomMarginED.SetLastHdl(aLk);
+ aBottomMarginED.SetLoseFocusHdl(aLk);
+
+ aLk = LINK(this, SwWrapTabPage, WrapTypeHdl);
+ aNoWrapRB.SetClickHdl(aLk);
+ aWrapLeftRB.SetClickHdl(aLk);
+ aWrapRightRB.SetClickHdl(aLk);
+ aWrapParallelRB.SetClickHdl(aLk);
+ aWrapThroughRB.SetClickHdl(aLk);
+ aIdealWrapRB.SetClickHdl(aLk);
+ aWrapThroughRB.SetImage(aWrapIL.GetImage(IMG_THROUGH));
+
+ aWrapOutlineCB.SetClickHdl(LINK(this, SwWrapTabPage, ContourHdl));
+}
+
+
+
+SwWrapTabPage::~SwWrapTabPage()
+{
+}
+
+
+
+SfxTabPage* SwWrapTabPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwWrapTabPage(pParent, rSet);
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwWrapTabPage::Reset(const SfxItemSet &rSet)
+{
+ //Contour fuer Draw, Grafik und OLE (Einfuegen/Grafik/Eigenschaften fehlt noch!)
+ if( bDrawMode )
+ {
+ aWrapOutlineCB.Show();
+ aWrapOutsideCB.Show();
+
+ aWrapTransparentCB.Check( 0 == ((const SfxInt16Item&)rSet.Get(
+ FN_DRAW_WRAP_DLG)).GetValue() );
+ aWrapTransparentCB.SaveValue();
+ }
+ else
+ {
+ BOOL bShowCB = bFormat;
+ if( !bFormat )
+ {
+ int nSelType = pWrtSh->GetSelectionType();
+ if( ( nSelType & SwWrtShell::SEL_GRF ) ||
+ ( nSelType & SwWrtShell::SEL_OLE && GRAPHIC_NONE !=
+ pWrtSh->GetIMapGraphic().GetType() ))
+ bShowCB = TRUE;
+ }
+ if( bShowCB )
+ {
+ aWrapOutlineCB.Show();
+ aWrapOutsideCB.Show();
+ }
+ }
+
+ nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
+ bHtmlMode = nHtmlMode & HTMLMODE_ON ? TRUE : FALSE;
+
+ FieldUnit aMetric = ::GetDfltMetric(bHtmlMode);
+ SetMetric( aLeftMarginED , aMetric );
+ SetMetric( aRightMarginED , aMetric );
+ SetMetric( aTopMarginED , aMetric );
+ SetMetric( aBottomMarginED, aMetric );
+
+ const SwFmtSurround& rSurround = (const SwFmtSurround&)rSet.Get(RES_SURROUND);
+
+ USHORT nSur = rSurround.GetSurround();
+ const SwFmtAnchor &rAnch = (const SwFmtAnchor&)rSet.Get(RES_ANCHOR);
+ nAnchorId = rAnch.GetAnchorId();
+
+ if ( (nAnchorId == FLY_AT_CNTNT || nAnchorId == FLY_AUTO_CNTNT) && nSur != SURROUND_NONE )
+ aWrapAnchorOnlyCB.Check( rSurround.IsAnchorOnly() );
+ else
+ aWrapAnchorOnlyCB.Enable( FALSE );
+
+ BOOL bContour = rSurround.IsContour();
+ aWrapOutlineCB.Check( bContour );
+ aWrapOutsideCB.Check( rSurround.IsOutside() );
+ aWrapThroughRB.Enable(!aWrapOutlineCB.IsChecked());
+ bContourImage = !bContour;
+
+ ImageRadioButton* pBtn = NULL;
+
+ switch (nSur)
+ {
+ case SURROUND_NONE:
+ {
+ pBtn = &aNoWrapRB;
+ break;
+ }
+
+ case SURROUND_THROUGHT:
+ {
+ // transparent ?
+ pBtn = &aWrapThroughRB;
+
+ if (!bDrawMode)
+ {
+ const SvxOpaqueItem& rOpaque = (const SvxOpaqueItem&)rSet.Get(RES_OPAQUE);
+ aWrapTransparentCB.Check(!rOpaque.GetValue());
+ }
+ break;
+ }
+
+ case SURROUND_PARALLEL:
+ {
+ pBtn = &aWrapParallelRB;
+ break;
+ }
+
+ case SURROUND_IDEAL:
+ {
+ pBtn = &aIdealWrapRB;
+ break;
+ }
+
+ default:
+ {
+ if (nSur == SURROUND_LEFT)
+ pBtn = &aWrapLeftRB;
+ else if (nSur == SURROUND_RIGHT)
+ pBtn = &aWrapRightRB;
+ }
+ }
+ if (pBtn)
+ {
+ pBtn->Check();
+ WrapTypeHdl(pBtn);
+ // Hier wird fuer Zeichenobjekte, die im Moment auf Durchlauf stehen,
+ // schon mal der Default "Kontur an" vorbereitet, falls man spaeter auf
+ // irgendeinen Umlauf umschaltet.
+ if (bDrawMode && !aWrapOutlineCB.IsEnabled())
+ aWrapOutlineCB.Check();
+ }
+ aWrapTransparentCB.Enable( pBtn == &aWrapThroughRB && !bHtmlMode );
+
+ const SvxULSpaceItem& rUL = (const SvxULSpaceItem&)rSet.Get(RES_UL_SPACE);
+ const SvxLRSpaceItem& rLR = (const SvxLRSpaceItem&)rSet.Get(RES_LR_SPACE);
+
+ // Abstand zum Text
+ aLeftMarginED.SetValue(aLeftMarginED.Normalize(rLR.GetLeft()), FUNIT_TWIP);
+ aRightMarginED.SetValue(aRightMarginED.Normalize(rLR.GetRight()), FUNIT_TWIP);
+ aTopMarginED.SetValue(aTopMarginED.Normalize(rUL.GetUpper()), FUNIT_TWIP);
+ aBottomMarginED.SetValue(aBottomMarginED.Normalize(rUL.GetLower()), FUNIT_TWIP);
+
+ ContourHdl(0);
+ ActivatePage( rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Attribute in den Set stopfen bei OK
+ --------------------------------------------------------------------*/
+
+
+
+BOOL SwWrapTabPage::FillItemSet(SfxItemSet &rSet)
+{
+ BOOL bModified = FALSE;
+ const SfxPoolItem* pOldItem;
+
+ const SwFmtSurround& rOldSur = (const SwFmtSurround&)GetItemSet().Get(RES_SURROUND);
+ SwFmtSurround aSur( rOldSur );
+
+ SvxOpaqueItem aOp;
+
+ if (!bDrawMode)
+ {
+ const SvxOpaqueItem& rOpaque = (const SvxOpaqueItem&)GetItemSet().Get(RES_OPAQUE);
+ SvxOpaqueItem aOp = rOpaque;
+ aOp.SetValue(TRUE);
+ }
+
+ if (aNoWrapRB.IsChecked())
+ aSur.SetSurround(SURROUND_NONE);
+ else if (aWrapLeftRB.IsChecked())
+ aSur.SetSurround(SURROUND_LEFT);
+ else if (aWrapRightRB.IsChecked())
+ aSur.SetSurround(SURROUND_RIGHT);
+ else if (aWrapParallelRB.IsChecked())
+ aSur.SetSurround(SURROUND_PARALLEL);
+ else if (aWrapThroughRB.IsChecked())
+ {
+ aSur.SetSurround(SURROUND_THROUGHT);
+ if (aWrapTransparentCB.IsChecked() && !bDrawMode)
+ aOp.SetValue(FALSE);
+ }
+ else if (aIdealWrapRB.IsChecked())
+ aSur.SetSurround(SURROUND_IDEAL);
+
+ aSur.SetAnchorOnly( aWrapAnchorOnlyCB.IsChecked() );
+ BOOL bContour = aWrapOutlineCB.IsChecked() && aWrapOutlineCB.IsEnabled();
+ aSur.SetContour( bContour );
+
+ if ( bContour )
+ aSur.SetOutside(aWrapOutsideCB.IsChecked());
+
+ if(0 == (pOldItem = GetOldItem( rSet, RES_SURROUND )) ||
+ aSur != *pOldItem )
+ {
+ rSet.Put(aSur);
+ bModified = TRUE;
+ }
+
+ if (!bDrawMode)
+ {
+ if(0 == (pOldItem = GetOldItem( rSet, FN_OPAQUE )) ||
+ aOp != *pOldItem )
+ {
+ rSet.Put(aOp);
+ bModified = TRUE;
+ }
+ }
+
+ BOOL bTopMod = aTopMarginED.IsValueModified();
+ BOOL bBottomMod = aBottomMarginED.IsValueModified();
+
+ SvxULSpaceItem aUL;
+ aUL.SetUpper((USHORT)aTopMarginED.Denormalize(aTopMarginED.GetValue(FUNIT_TWIP)));
+ aUL.SetLower((USHORT)aBottomMarginED.Denormalize(aBottomMarginED.GetValue(FUNIT_TWIP)));
+
+ if ( bTopMod || bBottomMod )
+ {
+ if(0 == (pOldItem = GetOldItem(rSet, RES_UL_SPACE)) ||
+ aUL != *pOldItem )
+ {
+ rSet.Put( aUL, RES_UL_SPACE );
+ bModified = TRUE;
+ }
+ }
+
+ BOOL bLeftMod = aLeftMarginED.IsValueModified();
+ BOOL bRightMod = aRightMarginED.IsValueModified();
+
+ SvxLRSpaceItem aLR;
+ aLR.SetLeft((USHORT)aLeftMarginED.Denormalize(aLeftMarginED.GetValue(FUNIT_TWIP)));
+ aLR.SetRight((USHORT)aRightMarginED.Denormalize(aRightMarginED.GetValue(FUNIT_TWIP)));
+
+ if ( bLeftMod || bRightMod )
+ {
+ if( 0 == (pOldItem = GetOldItem(rSet, RES_LR_SPACE)) ||
+ aLR != *pOldItem )
+ {
+ rSet.Put(aLR, RES_LR_SPACE);
+ bModified = TRUE;
+ }
+ }
+
+ if ( bDrawMode )
+ {
+ BOOL bChecked = aWrapTransparentCB.IsChecked() & aWrapTransparentCB.IsEnabled();
+ if (aWrapTransparentCB.GetSavedValue() != bChecked)
+ bModified |= 0 != rSet.Put(SfxInt16Item(FN_DRAW_WRAP_DLG, bChecked ? 0 : 1));
+ }
+
+ return bModified;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bsp - Update
+ --------------------------------------------------------------------*/
+
+
+
+void SwWrapTabPage::ActivatePage(const SfxItemSet& rSet)
+{
+ // Anchor
+ const SwFmtAnchor &rAnch = (const SwFmtAnchor&)rSet.Get(RES_ANCHOR);
+ nAnchorId = rAnch.GetAnchorId();
+ BOOL bEnable = nAnchorId != FLY_IN_CNTNT;
+
+ if (!bDrawMode)
+ {
+ SwWrtShell* pSh = bFormat ? ::GetActiveWrtShell() : pWrtSh;
+ SwFlyFrmAttrMgr aMgr( bNew, pSh, (const SwAttrSet&)GetItemSet() );
+ SwFrmValid aVal;
+
+ // Size
+ const SwFmtFrmSize& rFrmSize = (const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE);
+ Size aSize = rFrmSize.GetSize();
+
+ // Rand
+ const SvxULSpaceItem& rUL = (const SvxULSpaceItem&)rSet.Get(RES_UL_SPACE);
+ const SvxLRSpaceItem& rLR = (const SvxLRSpaceItem&)rSet.Get(RES_LR_SPACE);
+ nOldLeftMargin = rLR.GetLeft();
+ nOldRightMargin = rLR.GetRight();
+ nOldUpperMargin = rUL.GetUpper();
+ nOldLowerMargin = rUL.GetLower();
+
+ // Position
+ const SwFmtHoriOrient& rHori = (const SwFmtHoriOrient&)rSet.Get(RES_HORI_ORIENT);
+ const SwFmtVertOrient& rVert = (const SwFmtVertOrient&)rSet.Get(RES_VERT_ORIENT);
+
+ aVal.eArea = (RndStdIds)nAnchorId;
+ aVal.bAuto = rFrmSize.GetSizeType() == ATT_MIN_SIZE;
+ aVal.bMirror = rHori.IsPosToggle();
+
+ aVal.eHori = rHori.GetHoriOrient();
+ aVal.eVert = (SvxFrameVertOrient)rVert.GetVertOrient();
+
+ aVal.nHPos = rHori.GetPos();
+ aVal.eHRel = rHori.GetRelationOrient();
+ aVal.nVPos = rVert.GetPos();
+ aVal.eVRel = rVert.GetRelationOrient();
+
+ if (rFrmSize.GetWidthPercent() && rFrmSize.GetWidthPercent() != 0xff)
+ aSize.Width() = aSize.Width() * rFrmSize.GetWidthPercent() / 100;
+
+ if (rFrmSize.GetHeightPercent() && rFrmSize.GetHeightPercent() != 0xff)
+ aSize.Height() = aSize.Height() * rFrmSize.GetHeightPercent() / 100;
+
+ aVal.nWidth = aSize.Width();
+ aVal.nHeight = aSize.Height();
+ aFrmSize = aSize;
+
+ aMgr.ValidateMetrics(aVal);
+
+ SwTwips nLeft;
+ SwTwips nRight;
+ SwTwips nTop;
+ SwTwips nBottom;
+
+ nLeft = aVal.nHPos - aVal.nMinHPos;
+ nRight = aVal.nMaxWidth - aVal.nWidth;
+ nTop = aVal.nVPos - aVal.nMinVPos;
+ nBottom = aVal.nMaxHeight - aVal.nHeight;
+
+ if (bHtmlMode && 0 == (nHtmlMode & HTMLMODE_FULL_ABS_POS))
+ {
+ nLeft = nRight = ( nLeft + nRight ) / 2;
+ nTop = nBottom = ( nTop + nBottom ) / 2;
+ }
+ else
+ {
+ if (aVal.eArea == FLY_IN_CNTNT)
+ {
+ nLeft = nRight;
+
+ if (aVal.nVPos < 0)
+ {
+ if (aVal.nVPos <= aVal.nMaxHeight)
+ nTop = aVal.nMaxVPos - aVal.nHeight;
+ else
+ nTop = nBottom = 0; // Kein Umlauf
+ }
+ else
+ nTop = aVal.nMaxVPos - aVal.nHeight - aVal.nVPos;
+ }
+ else
+ {
+ nLeft += nRight;
+ nTop += nBottom;
+ }
+
+ nBottom = nTop;
+ nRight = nLeft;
+ }
+
+ aLeftMarginED.SetMax(aLeftMarginED.Normalize(nLeft), FUNIT_TWIP);
+ aRightMarginED.SetMax(aRightMarginED.Normalize(nRight), FUNIT_TWIP);
+
+ aTopMarginED.SetMax(aTopMarginED.Normalize(nTop), FUNIT_TWIP);
+ aBottomMarginED.SetMax(aBottomMarginED.Normalize(nBottom), FUNIT_TWIP);
+
+ RangeModifyHdl(&aLeftMarginED);
+ RangeModifyHdl(&aTopMarginED);
+ }
+
+ const SwFmtSurround& rSurround = (const SwFmtSurround&)rSet.Get(RES_SURROUND);
+ USHORT nSur = rSurround.GetSurround();
+
+ aWrapTransparentCB.Enable( bEnable && !bHtmlMode && nSur == SURROUND_THROUGHT );
+ if(bHtmlMode)
+ {
+ BOOL bSomeAbsPos = 0 != (nHtmlMode & HTMLMODE_SOME_ABS_POS);
+ const SwFmtHoriOrient& rHori = (const SwFmtHoriOrient&)rSet.Get(RES_HORI_ORIENT);
+ SwHoriOrient eHOrient = rHori.GetHoriOrient();
+ SwRelationOrient eHRelOrient = rHori.GetRelationOrient();
+ aWrapOutlineCB.Hide();
+ BOOL bAllHtmlModes = (nAnchorId == FLY_AT_CNTNT || nAnchorId == FLY_AUTO_CNTNT) &&
+ (eHOrient == HORI_RIGHT || eHOrient == HORI_LEFT);
+ aWrapAnchorOnlyCB.Enable( bAllHtmlModes && nSur != SURROUND_NONE );
+ aWrapOutsideCB.Hide();
+ aIdealWrapRB.Enable( FALSE );
+
+
+ aWrapTransparentCB.Enable( FALSE );
+ aNoWrapRB.Enable( FLY_AT_CNTNT == nAnchorId );
+ aWrapParallelRB.Enable( FALSE );
+ aWrapLeftRB .Enable( FLY_AT_CNTNT == nAnchorId ||
+ (FLY_AUTO_CNTNT == nAnchorId && eHOrient == HORI_RIGHT && eHRelOrient == PRTAREA));
+ aWrapRightRB .Enable( FLY_AT_CNTNT == nAnchorId ||
+ ( FLY_AUTO_CNTNT == nAnchorId && eHOrient == HORI_LEFT && eHRelOrient == PRTAREA));
+
+ aWrapThroughRB.Enable( (FLY_PAGE == nAnchorId ||
+ (FLY_AUTO_CNTNT == nAnchorId && eHRelOrient != PRTAREA) || FLY_AT_CNTNT == nAnchorId )
+ && bSomeAbsPos &&
+ eHOrient != HORI_RIGHT);
+ if(aNoWrapRB.IsChecked() && !aNoWrapRB.IsEnabled())
+ {
+ if(aWrapThroughRB.IsEnabled())
+ aWrapThroughRB.Check(TRUE);
+ else if(aWrapLeftRB.IsEnabled())
+ aWrapLeftRB.Check();
+ else if(aWrapRightRB.IsEnabled())
+ aWrapRightRB.Check();
+
+ }
+ if(aWrapLeftRB.IsChecked() && !aWrapLeftRB.IsEnabled())
+ {
+ if(aWrapRightRB.IsEnabled())
+ aWrapRightRB.Check();
+ else if(aWrapThroughRB.IsEnabled())
+ aWrapThroughRB.Check();
+ }
+ if(aWrapRightRB.IsChecked() && !aWrapRightRB.IsEnabled())
+ {
+ if(aWrapLeftRB.IsEnabled())
+ aWrapLeftRB.Check();
+ else if(aWrapThroughRB.IsEnabled())
+ aWrapThroughRB.Check();
+ }
+ if(aWrapThroughRB.IsChecked() && !aWrapThroughRB.IsEnabled())
+ if(aNoWrapRB.IsEnabled())
+ aNoWrapRB.Check();
+
+ if(aWrapParallelRB.IsChecked() && !aWrapParallelRB.IsEnabled())
+ aWrapThroughRB.Check();
+ }
+ else
+ {
+ aNoWrapRB.Enable( bEnable );
+ aWrapLeftRB.Enable( bEnable );
+ aWrapRightRB.Enable( bEnable );
+ aIdealWrapRB.Enable( bEnable );
+ aWrapThroughRB.Enable( bEnable );
+ aWrapParallelRB.Enable( bEnable );
+ aWrapAnchorOnlyCB.Enable( (nAnchorId == FLY_AT_CNTNT || nAnchorId == FLY_AUTO_CNTNT)
+ && nSur != SURROUND_NONE && nSur != SURROUND_THROUGHT );
+ }
+ ContourHdl(0);
+}
+
+
+
+int SwWrapTabPage::DeactivatePage(SfxItemSet* pSet)
+{
+ if(pSet)
+ FillItemSet(*pSet);
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bereichspruefung
+ --------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwWrapTabPage, RangeModifyHdl, MetricField *, pEdit )
+{
+ if(bHtmlMode && 0 == (nHtmlMode & HTMLMODE_FULL_ABS_POS))
+ {
+ long nValue = pEdit->GetValue();
+ if (pEdit == &aLeftMarginED)
+ aRightMarginED.SetUserValue(nValue, FUNIT_NONE);
+ else if (pEdit == &aRightMarginED)
+ aLeftMarginED.SetUserValue(nValue, FUNIT_NONE);
+ else if (pEdit == &aTopMarginED)
+ aBottomMarginED.SetUserValue(nValue, FUNIT_NONE);
+ else if (pEdit == &aBottomMarginED)
+ aTopMarginED.SetUserValue(nValue, FUNIT_NONE);
+ }
+ else
+ {
+ long nValue = pEdit->GetValue();
+ MetricField *pOpposite;
+
+ if (pEdit == &aLeftMarginED)
+ pOpposite = &aRightMarginED;
+ else if (pEdit == &aRightMarginED)
+ pOpposite = &aLeftMarginED;
+ else if (pEdit == &aTopMarginED)
+ pOpposite = &aBottomMarginED;
+ else if (pEdit == &aBottomMarginED)
+ pOpposite = &aTopMarginED;
+
+ long nOpposite = pOpposite->GetValue();
+
+ if (nValue + nOpposite > Max(pEdit->GetMax(), pOpposite->GetMax()))
+ pOpposite->SetValue(pOpposite->GetMax() - nValue);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwWrapTabPage, WrapTypeHdl, ImageRadioButton *, pBtn )
+{
+ BOOL bWrapThrough = (pBtn == &aWrapThroughRB);
+ aWrapTransparentCB.Enable( bWrapThrough && !bHtmlMode );
+ bWrapThrough |= ( nAnchorId == FLY_IN_CNTNT );
+ aWrapOutlineCB.Enable( !bWrapThrough );
+ aWrapOutsideCB.Enable( !bWrapThrough && aWrapOutlineCB.IsChecked() );
+ aWrapAnchorOnlyCB.Enable( (nAnchorId == FLY_AT_CNTNT || nAnchorId == FLY_AUTO_CNTNT) &&
+ (pBtn != &aNoWrapRB) && !bWrapThrough );
+
+ ContourHdl(0);
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwWrapTabPage, ContourHdl, CheckBox *, pBtn )
+{
+ BOOL bEnable = !(aWrapOutlineCB.IsChecked() && aWrapOutlineCB.IsEnabled());
+
+ aWrapOutsideCB.Enable(!bEnable);
+
+ bEnable = !aWrapOutlineCB.IsChecked();
+ if (bEnable == bContourImage) // damit es nicht immer flackert
+ {
+ if(bEnable)
+ {
+ aNoWrapRB.SetImage(aWrapIL.GetImage(IMG_NONE));
+ aWrapLeftRB.SetImage(aWrapIL.GetImage(IMG_LEFT));
+ aWrapRightRB.SetImage(aWrapIL.GetImage(IMG_RIGHT));
+ aWrapParallelRB.SetImage(aWrapIL.GetImage(IMG_PARALLEL));
+ aIdealWrapRB.SetImage(aWrapIL.GetImage(IMG_IDEAL));
+ bContourImage = FALSE;
+ }
+ else
+ {
+ aNoWrapRB.SetImage(aWrapIL.GetImage( IMG_KON_NONE ));
+ aWrapLeftRB.SetImage(aWrapIL.GetImage( IMG_KON_LEFT ));
+ aWrapRightRB.SetImage(aWrapIL.GetImage( IMG_KON_RIGHT ));
+ aWrapParallelRB.SetImage(aWrapIL.GetImage(IMG_KON_PARALLEL ));
+ aIdealWrapRB.SetImage(aWrapIL.GetImage( IMG_KON_IDEAL ));
+ bContourImage = TRUE;
+ }
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+USHORT* SwWrapTabPage::GetRanges()
+{
+ return aWrapPageRg;
+}
+
+/*--------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.61 2000/09/18 16:05:35 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.60 2000/03/13 16:42:50 jp
+ Bug #73538#: Reset - show or hide the contour checkboxes
+
+ Revision 1.59 1999/09/28 10:24:03 os
+ #68077# :ActivatePage AnchorOnly not enabled in wrap through
+
+ Revision 1.58 1998/09/08 14:57:00 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+
+ Rev 1.57 08 Sep 1998 16:57:00 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.56 10 Jul 1998 10:14:24 OS
+ Fix im Umlauf fuer HTML
+
+ Rev 1.55 23 Apr 1998 12:58:00 OS
+ noch ein paar HTML-Reste
+
+ Rev 1.54 16 Apr 1998 13:11:04 OS
+ Rahmenanpassung die zweite
+
+ Rev 1.53 07 Apr 1998 12:00:48 OM
+ Maximalwerte fuer Umlauf
+
+ Rev 1.52 06 Apr 1998 09:48:30 OS
+ HTML-Anpassungen
+
+ Rev 1.51 30 Mar 1998 13:20:54 OM
+ Umlauf nicht mehr auf naechsten Rand begrenzen
+
+ Rev 1.50 25 Feb 1998 15:12:36 OM
+ AnchorOnly auch bei Auto-Anker
+
+ Rev 1.49 04 Feb 1998 11:46:30 OM
+ #45775# Keine Maximalwerteinschraenkung bei Rahmenvorlagen
+
+ Rev 1.48 28 Nov 1997 19:49:20 MA
+ basobj
+
+ Rev 1.47 24 Nov 1997 17:39:32 MA
+ include
+
+ Rev 1.46 20 Nov 1997 12:14:58 AMA
+ Opt. SwSurround: GoldCut jetzt als Enum; nicht implementierte Enums entfernt
+
+ Rev 1.45 03 Nov 1997 13:19:50 MA
+ precomp entfernt
+
+ Rev 1.44 30 Sep 1997 18:34:22 MA
+ nicht gepostete MUSS-Aenderung eingebaut
+
+ Rev 1.43 01 Sep 1997 13:26:22 OS
+ DLL-Umstellung
+
+ Rev 1.42 12 Aug 1997 15:58:08 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.41 07 Aug 1997 14:59:16 OM
+ Headerfile-Umstellung
+
+ Rev 1.40 10 Jul 1997 15:56:44 OM
+ Abstand oben/unten
+
+ Rev 1.39 02 Jul 1997 13:43:50 AMA
+ New: Abstaende nach oben/unten, noch nicht freigeschaltet
+
+ Rev 1.38 05 May 1997 16:37:48 OM
+ Ohne Umlauf kein erster Absatz
+
+ Rev 1.37 11 Mar 1997 15:18:18 OM
+ Bei Html-Mode falsche Umlaufform nicht korrigieren
+
+ Rev 1.36 23 Feb 1997 16:59:34 AMA
+ Fix: Zeichengeb.: Abstand oben/unten zulassen; Outline nicht
+
+ Rev 1.35 20 Feb 1997 13:45:48 AMA
+ Fix #36502#: Rahmenabstaende im HTML-Mode zulassen.
+
+ Rev 1.34 20 Feb 1997 13:42:58 AMA
+ Fix #36502#: Rahmenabstaende im HTML-Mode zulassen.
+
+ Rev 1.33 10 Feb 1997 10:02:24 OM
+ Aufgeraeumt
+
+ Rev 1.31 05 Feb 1997 16:18:20 OS
+ keine Kontur fuer Html
+
+ Rev 1.30 04 Feb 1997 16:28:56 OM
+ Controller disablen
+
+ Rev 1.29 03 Feb 1997 16:30:24 OM
+ Maximalwertberechnung fuer zeichengebundene Rahmen geaendert
+
+ Rev 1.28 03 Feb 1997 16:00:42 OM
+ Maximalwertberechnung fuer zeichengebundene Rahmen geaendert
+
+ Rev 1.27 28 Jan 1997 18:36:22 HJS
+ includes
+
+ Rev 1.26 28 Jan 1997 16:31:50 OS
+ HtmlMode mit GetHtmlMode ermitteln
+
+ Rev 1.25 24 Jan 1997 16:58:26 HJS
+ #35241# GPF gefixed - fuer OM
+
+ Rev 1.25 24 Jan 1997 13:39:56 OM
+ #35241# GPF gefixt
+
+ Rev 1.24 22 Jan 1997 11:32:08 MA
+ Umstellung Put
+
+ Rev 1.23 21 Jan 1997 10:21:28 OM
+ Checkbox fuer: nur aussen
+
+ Rev 1.22 13 Jan 1997 16:59:10 MA
+ Kontur fuer Grafik und OLE
+
+ Rev 1.21 08 Jan 1997 10:56:44 OS
+ SID_HTML_MODE jetzt UInt16Item
+
+ Rev 1.20 07 Jan 1997 08:54:46 MA
+ new_frm_size entfernt
+
+ Rev 1.19 18 Dec 1996 12:15:00 OM
+ Konturumfluss defaulten
+
+ Rev 1.18 17 Dec 1996 16:28:14 OM
+ Kontur defaulten
+
+ Rev 1.17 27 Nov 1996 16:14:38 OM
+ #33427# Zeichenobjekte: automatischer Layerwechsel je nach Umlaufart
+
+ Rev 1.16 19 Nov 1996 11:42:28 OS
+ +ImageList
+
+ Rev 1.15 15 Nov 1996 20:24:52 MA
+ #32280#
+
+ Rev 1.14 14 Nov 1996 12:00:42 OS
+ Zusaetze-Group ausgelagert, Flackern verhindert, keine ContourImage fuer Durchlauf
+
+ Rev 1.13 12 Nov 1996 16:11:20 MA
+ Vorb. Rahmenabstand
+
+ Rev 1.12 11 Nov 1996 10:39:36 MA
+ ResMgr
+
+ Rev 1.11 08 Nov 1996 15:58:52 OM
+ Schuetzen neu organisiert, transparenz im Draw-Mode
+
+ Rev 1.10 06 Nov 1996 15:21:52 OM
+ Kontur enabled
+
+ Rev 1.9 06 Nov 1996 11:31:18 OM
+ #33048# Transparent-CB nur bei Durchlauf enablen
+
+ Rev 1.8 05 Nov 1996 17:44:16 OM
+ #33046# Rand-Maximalwertberechnung korrigiert
+
+ Rev 1.7 04 Nov 1996 16:50:46 OM
+ Maximalwertbegrenzung fuer Umlauf-TP
+
+ Rev 1.6 30 Oct 1996 15:40:00 OM
+ Neue Segs
+
+ Rev 1.5 30 Oct 1996 15:39:40 OM
+ Durchlauf auch bei Draw-Objekten
+
+ Rev 1.4 29 Oct 1996 17:14:40 OM
+ Abstaende auch im Drawmode
+
+ Rev 1.3 29 Oct 1996 15:39:04 OM
+ Controls im Drawmode verstecken
+
+ Rev 1.2 25 Oct 1996 16:01:26 OM
+ Controls im Drawmode verstecken
+
+ Rev 1.1 25 Oct 1996 15:06:42 OM
+ Neue Umfluss-Tabpage in Rahmendialog uebernommen
+
+ Rev 1.0 23 Oct 1996 19:54:46 OM
+ Initial revision.
+
+--------------------------------------------------*/
+
+
diff --git a/sw/source/ui/frmdlg/wrap.hrc b/sw/source/ui/frmdlg/wrap.hrc
new file mode 100644
index 000000000000..ffa36adfc834
--- /dev/null
+++ b/sw/source/ui/frmdlg/wrap.hrc
@@ -0,0 +1,98 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrap.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define RB_NO_WRAP 2
+#define RB_WRAP_LEFT 3
+#define RB_WRAP_RIGHT 4
+#define RB_WRAP_PARALLEL 5
+#define RB_WRAP_THROUGH 6
+#define RB_WRAP_IDEAL 7
+#define CB_ANCHOR_ONLY 8
+#define FT_LEFT_MARGIN 13
+#define ED_LEFT_MARGIN 14
+#define FT_RIGHT_MARGIN 15
+#define ED_RIGHT_MARGIN 16
+#define FT_TOP_MARGIN 17
+#define ED_TOP_MARGIN 18
+#define ED_BOTTOM_MARGIN 19
+#define FT_BOTTOM_MARGIN 20
+#define GB_MARGIN 21
+#define CB_TRANSPARENT 22
+#define CB_OUTLINE 23
+#define GB_OPTION 24
+#define CB_ONLYOUTSIDE 25
+#define C_WRAP_BOX 31
+
+#define IL_WRAP 32
+// nur fuer die ImageList
+#define IMG_BEGIN 1
+#define IMG_NONE (IMG_BEGIN)
+#define IMG_LEFT (IMG_BEGIN + 1)
+#define IMG_RIGHT (IMG_BEGIN + 2)
+#define IMG_PARALLEL (IMG_BEGIN + 3)
+#define IMG_THROUGH (IMG_BEGIN + 4)
+#define IMG_IDEAL (IMG_BEGIN + 5)
+#define IMG_KON_NONE (IMG_BEGIN + 6)
+#define IMG_KON_LEFT (IMG_BEGIN + 7)
+#define IMG_KON_RIGHT (IMG_BEGIN + 8)
+#define IMG_KON_PARALLEL (IMG_BEGIN + 9)
+#define IMG_KON_IDEAL (IMG_BEGIN + 10)
+
+
diff --git a/sw/source/ui/frmdlg/wrap.src b/sw/source/ui/frmdlg/wrap.src
new file mode 100644
index 000000000000..848d70d826bb
--- /dev/null
+++ b/sw/source/ui/frmdlg/wrap.src
@@ -0,0 +1,597 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrap.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "frmui.hrc"
+#include "wrap.hrc"
+#include "globals.hrc"
+#include "helpid.h"
+TabPage TP_FRM_WRAP
+{
+ SVLook = TRUE ;
+ HelpID = HID_FRM_EXT ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE;
+ GroupBox C_WRAP_BOX
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 48 ) ;
+ };
+ ImageRadioButton RB_NO_WRAP
+ {
+ Pos = MAP_APPFONT ( 9 , 10 ) ;
+ Size = MAP_APPFONT ( 37 , 37 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Kein : ~Keiner */
+ /* ### ACHTUNG: Neuer Text in Resource? ~Kein : ~Keiner */
+ /* ### ACHTUNG: Neuer Text in Resource? ~Kein : ~Keiner */
+ Text = "~Kein" ;
+ Text [ ENGLISH ] = "No Wrap" ;
+ Text [ english_us ] = "~None" ;
+ TopImage = True ;
+ Text [ dutch ] = "~Geen" ;
+ Text [ italian ] = "~Senza" ;
+ Text [ spanish ] = "~Ninguno" ;
+ Text [ french ] = "~Aucun(e)" ;
+ Text [ swedish ] = "~Ingen" ;
+ Text [ danish ] = "Ingen" ;
+ Text [ portuguese ] = "~Nenhum" ;
+ Text [ portuguese_brazilian ] = "~Kein" ;
+ Text[ chinese_simplified ] = "ÎÞ(~N)";
+ Text[ russian ] = "Áåç";
+ Text[ polish ] = "Brak";
+ Text[ japanese ] = "㉺(~N)";
+ Text[ language_user1 ] = "Íåò";
+ Text[ chinese_traditional ] = "µL(~N)";
+ Text[ arabic ] = "ÈÏæä";
+ Text[ greek ] = "ÊáíÝíá";
+ Text[ korean ] = "¾øÀ½(~N)";
+ Text[ turkish ] = "~Yok";
+ };
+ ImageRadioButton RB_WRAP_LEFT
+ {
+ Pos = MAP_APPFONT ( 50 , 10 ) ;
+ Size = MAP_APPFONT ( 37 , 37 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Links : Links */
+ /* ### ACHTUNG: Neuer Text in Resource? ~Links : Links */
+ /* ### ACHTUNG: Neuer Text in Resource? ~Links : Links */
+ Text = "~Links" ;
+ Text [ ENGLISH ] = "~Left" ;
+ Text [ english_us ] = "~Left" ;
+ TopImage = True ;
+ Text [ dutch ] = "~Links" ;
+ Text [ italian ] = "Sinistra" ;
+ Text [ spanish ] = "Iz~quierda" ;
+ Text [ french ] = "~À gauche" ;
+ Text [ swedish ] = "V~änster" ;
+ Text [ danish ] = "Venstre" ;
+ Text [ portuguese ] = "~Esquerda" ;
+ Text [ portuguese_brazilian ] = "~Links" ;
+ Text[ chinese_simplified ] = "×ó(~L)";
+ Text[ russian ] = "Ñëåâà";
+ Text[ polish ] = "Z le~wej";
+ Text[ japanese ] = "¶(~L)";
+ Text[ chinese_traditional ] = "¥ª(~L)";
+ Text[ arabic ] = "Åáì ÇáíÓÇÑ";
+ Text[ greek ] = "ÁñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ(~L)";
+ Text[ turkish ] = "So~l";
+ };
+ ImageRadioButton RB_WRAP_RIGHT
+ {
+ Pos = MAP_APPFONT ( 91 , 10 ) ;
+ Size = MAP_APPFONT ( 37 , 37 ) ;
+ Text = "~Rechts" ;
+ Text [ ENGLISH ] = "~Right" ;
+ Text [ english_us ] = "R~ight" ;
+ TopImage = True ;
+ Text [ dutch ] = "~Rechts" ;
+ Text [ italian ] = "Destra" ;
+ Text [ spanish ] = "~Derecha" ;
+ Text [ french ] = "À ~droite" ;
+ Text [ swedish ] = "Hö~ger" ;
+ Text [ danish ] = "Højre" ;
+ Text [ portuguese ] = "~Direita" ;
+ Text [ portuguese_brazilian ] = "~Rechts" ;
+ Text[ chinese_simplified ] = "ÓÒ(~R)";
+ Text[ russian ] = "Ñïðàâà";
+ Text[ polish ] = "Z prawej";
+ Text[ japanese ] = "‰E(~R)";
+ Text[ chinese_traditional ] = "¥k(~R)";
+ Text[ arabic ] = "Åáì Çáíãíä";
+ Text[ greek ] = "ÄåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ(~I)";
+ Text[ turkish ] = "Sa~ð";
+ };
+ ImageRadioButton RB_WRAP_PARALLEL
+ {
+ Pos = MAP_APPFONT ( 132 , 10 ) ;
+ Size = MAP_APPFONT ( 37 , 37 ) ;
+ Text = "~Parallel" ;
+ Text [ ENGLISH ] = "~Parallel" ;
+ Text [ english_us ] = "~Parallel" ;
+ TopImage = True ;
+ Text [ dutch ] = "~Parallel" ;
+ Text [ italian ] = "~Parallelo" ;
+ Text [ spanish ] = "~Paralelo" ;
+ Text [ french ] = "~Parallèle" ;
+ Text [ swedish ] = "~Parallell" ;
+ Text [ danish ] = "Parallel" ;
+ Text [ portuguese ] = "~Paralelo" ;
+ Text [ portuguese_brazilian ] = "~Parallel" ;
+ Text[ chinese_simplified ] = "ƽÐÐ(~P)";
+ Text[ russian ] = "Ïàðàëëåëüíî";
+ Text[ polish ] = "Równ~olegle";
+ Text[ japanese ] = "—¼‘¤(~P)";
+ Text[ chinese_traditional ] = "¥­¦æ(~P)";
+ Text[ arabic ] = "ãÊæÇÒ";
+ Text[ greek ] = "ÐáñÜëëçëá";
+ Text[ korean ] = "ÆòÇà(~P)";
+ Text[ turkish ] = "~Paralel";
+ };
+ ImageRadioButton RB_WRAP_THROUGH
+ {
+ Pos = MAP_APPFONT ( 173 , 10 ) ;
+ Size = MAP_APPFONT ( 37 , 37 ) ;
+ Text = "~Durchlauf" ;
+ Text [ ENGLISH ] = "Wrap ~through" ;
+ Text [ norwegian ] = "Wrap ~through" ;
+ Text [ italian ] = "~Attraverso" ;
+ Text [ portuguese_brazilian ] = "Circundarmento ~através" ;
+ Text [ portuguese ] = "~Através do objecto" ;
+ Text [ finnish ] = "Kierrätys ~läpi" ;
+ Text [ danish ] = "Gennem" ;
+ Text [ french ] = "À ~travers" ;
+ Text [ swedish ] = "Genomflö~de" ;
+ Text [ dutch ] = "~Doorloop" ;
+ Text [ spanish ] = "~Continuo" ;
+ Text [ english_us ] = "Thro~ugh" ;
+ TopImage = True ;
+ Text[ chinese_simplified ] = "¹á´©(~T)";
+ Text[ russian ] = "Ñêâîçíîå";
+ Text[ polish ] = "Przep³. te~kstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ‚È‚µ(~T)";
+ Text[ chinese_traditional ] = "¤£Àô¶(~T)";
+ Text[ arabic ] = "ÚÈÑ";
+ Text[ greek ] = "Äéá ìÝóïõ";
+ Text[ korean ] = "Àüü µ¹¸²(~U)";
+ Text[ turkish ] = "~Metin arkasýna gönder";
+ };
+ ImageRadioButton RB_WRAP_IDEAL
+ {
+ Pos = MAP_APPFONT ( 214 , 10 ) ;
+ Size = MAP_APPFONT ( 37 , 37 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? D~ynamisch : ~Optimal */
+ /* ### ACHTUNG: Neuer Text in Resource? D~ynamisch : ~Optimal */
+ Text = "D~ynamisch" ;
+ Text [ ENGLISH ] = "D~ynamic Wrap" ;
+ TopImage = True ;
+ Text [ dutch ] = "D~ynamisch" ;
+ Text [ english_us ] = "~Optimal" ;
+ Text [ italian ] = "~Dinamico" ;
+ Text [ spanish ] = "Diná~mico" ;
+ Text [ french ] = "~Dynamique" ;
+ Text [ swedish ] = "D~ynamisk" ;
+ Text [ danish ] = "Dynamisk" ;
+ Text [ portuguese ] = "D~inâmico" ;
+ Text [ portuguese_brazilian ] = "D~ynamisch" ;
+ Text[ chinese_simplified ] = "×î¼Ñ(~O)";
+ Text[ russian ] = "Îïòèìàëüíîå";
+ Text[ polish ] = "Dyna~miczny";
+ Text[ japanese ] = "¶‰E“®“I(~O)";
+ Text[ chinese_traditional ] = "³ÌÓì(~O)";
+ Text[ arabic ] = "ÏíäÇãíßí";
+ Text[ greek ] = "ÄõíáìéêÜ";
+ Text[ korean ] = "ÃÖÀûÀÇ(~O)";
+ Text[ turkish ] = "D~inamik";
+ };
+ CheckBox CB_ANCHOR_ONLY
+ {
+ Pos = MAP_APPFONT ( 12 , 65 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Er~ster Absatz" ;
+ Text [ ENGLISH ] = "First paragraph only" ;
+ Text [ english_us ] = "~First paragraph" ;
+ Text [ italian ] = "Primo paragrafo" ;
+ Text [ spanish ] = "Primer párra~fo" ;
+ Text [ french ] = "1~er paragraphe" ;
+ Text [ dutch ] = "~Eerste alinea" ;
+ Text [ swedish ] = "För~sta stycket" ;
+ Text [ danish ] = "Første afsnit" ;
+ Text [ portuguese_brazilian ] = "Erster Absat~z" ;
+ Text [ portuguese ] = "Primeiro pará~grafo" ;
+ Text[ chinese_simplified ] = "µÚÒ»¶ÎÂä(~F)";
+ Text[ russian ] = "Ïåðâûé àáçàö";
+ Text[ polish ] = "Pierwszy akapit";
+ Text[ japanese ] = "ʼn‚Ì’i—Ž(~F)";
+ Text[ chinese_traditional ] = "²Ä¤@¬q¸¨(~F)";
+ Text[ arabic ] = "ÇáÝÞÑÉ ÇáÃæáì";
+ Text[ greek ] = "Ðñþôç ðáñÜãñáöï~ò";
+ Text[ korean ] = "ù ´Ü¶ô(~F)";
+ Text[ turkish ] = "Ýlk paragraf";
+ };
+ CheckBox CB_TRANSPARENT
+ {
+ Pos = MAP_APPFONT ( 12 , 81 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Im Hin~tergrund : ~Transparent */
+ /* ### ACHTUNG: Neuer Text in Resource? Im Hin~tergrund : ~Transparent */
+ /* ### ACHTUNG: Neuer Text in Resource? Im Hin~tergrund : ~Transparent */
+ Text = "Im Hin~tergrund" ;
+ Text [ ENGLISH ] = "To background" ;
+ Text [ dutch ] = "~Op achtergrond" ;
+ Text [ english_us ] = "In bac~kground" ;
+ Text [ italian ] = "~Attraverso trasparente" ;
+ Text [ spanish ] = "En el f~ondo" ;
+ Text [ french ] = "À l'~arrière-plan" ;
+ Text [ swedish ] = "I ~bakgrunden" ;
+ Text [ danish ] = "I baggrunden" ;
+ Text [ portuguese ] = "Em ~segundo plano" ;
+ Text [ portuguese_brazilian ] = "Im Hin~tergrund" ;
+ Text[ chinese_simplified ] = "ÖÃÓÚ±³¾°(~K)";
+ Text[ russian ] = "Íà ôîíå";
+ Text[ polish ] = "W tle";
+ Text[ japanese ] = "”wŒi‚É(~K)";
+ Text[ chinese_traditional ] = "¸m©ó­I´º(~K)";
+ Text[ arabic ] = "Ýí ÇáÎáÝíÉ";
+ Text[ greek ] = "Óå öüíôï";
+ Text[ korean ] = "¹è°æ¿¡(~K)";
+ Text[ turkish ] = "Arta~landa";
+ };
+ CheckBox CB_OUTLINE
+ {
+ Pos = MAP_APPFONT ( 12 , 97 ) ;
+ Size = MAP_APPFONT ( 109 , 10 ) ;
+ Text = "Kont~ur" ;
+ Text [ ENGLISH ] = "Contou~r" ;
+ Hide = TRUE ;
+ Text [ dutch ] = "~Contour" ;
+ Text [ english_us ] = "~Contour" ;
+ Text [ italian ] = "Contorno" ;
+ Text [ spanish ] = "Conto~rno" ;
+ Text [ french ] = "~Contour" ;
+ Text [ swedish ] = "Kont~ur" ;
+ Text [ danish ] = "Kontur" ;
+ Text [ portuguese ] = "~Contorno" ;
+ Text [ portuguese_brazilian ] = "Kontu~r" ;
+ Text[ chinese_simplified ] = "ÂÖÀª(~C)";
+ Text[ russian ] = "Êîíòóð";
+ Text[ polish ] = "Kontur";
+ Text[ japanese ] = "—ÖŠs(~C)";
+ Text[ chinese_traditional ] = "½ü¹ø(~C)";
+ Text[ arabic ] = "ÇáÎØ ÇáßÝÇÝí";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "À±°û(~C)";
+ Text[ turkish ] = "Kontu~r";
+ };
+ CheckBox CB_ONLYOUTSIDE
+ {
+ Pos = MAP_APPFONT ( 22 , 110 ) ;
+ Size = MAP_APPFONT ( 99 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Nur außen : Nur au˜en */
+ Text = "~Nur außen" ;
+ Text [ ENGLISH ] = "Only outside" ;
+ Hide = TRUE ;
+ Text [ portuguese ] = "Só ~exterior" ;
+ Text [ english_us ] = "Outside only" ;
+ Text [ portuguese_brazilian ] = "Nur außen" ;
+ Text [ swedish ] = "Bara uta~nför" ;
+ Text [ danish ] = "Kun yderside" ;
+ Text [ italian ] = "Solo esterno" ;
+ Text [ spanish ] = "Solo en el exterior" ;
+ Text [ french ] = "~Seul l'extérieur" ;
+ Text [ dutch ] = "~Alleen buiten" ;
+ Text[ chinese_simplified ] = "Ö»ÊÇÍâ²à";
+ Text[ russian ] = "Òîëüêî ñíàðóæè";
+ Text[ polish ] = "Tylko na zewn¹trz";
+ Text[ japanese ] = "ŠO‘¤‚Ì‚Ý";
+ Text[ chinese_traditional ] = "¥u¬O¥~°¼";
+ Text[ arabic ] = "Ýí ÇáÎÇÑÌ ÝÞØ";
+ Text[ greek ] = "Ìü~íï åîùôåñéêÜ";
+ Text[ korean ] = "¿ÜºÎ¸¸";
+ Text[ turkish ] = "Yalnýzca dýþarýda";
+ };
+ GroupBox GB_OPTION
+ {
+ Pos = MAP_APPFONT ( 6 , 54 ) ;
+ Size = MAP_APPFONT ( 121 , 75 ) ;
+ Text = "Optionen" ;
+ Text [ ENGLISH ] = "Options" ;
+ Text [ dutch ] = "Opties" ;
+ Text [ english_us ] = "Options" ;
+ Text [ italian ] = "Opzioni" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ swedish ] = "Alternativ" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ portuguese ] = "Opções" ;
+ Text [ portuguese_brazilian ] = "Optionen" ;
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ };
+ FixedText FT_LEFT_MARGIN
+ {
+ Pos = MAP_APPFONT ( 139 , 66 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "L~inks" ;
+ Text [ ENGLISH ] = "~Left" ;
+ Text [ norwegian ] = "~Left" ;
+ Text [ italian ] = "~Sinistra" ;
+ Text [ portuguese_brazilian ] = "~Esquerda" ;
+ Text [ portuguese ] = "~Esquerda" ;
+ Text [ finnish ] = "~Vasemmalle" ;
+ Text [ danish ] = "Venstre" ;
+ Text [ french ] = "À ~gauche" ;
+ Text [ swedish ] = "~Vänster" ;
+ Text [ dutch ] = "L~inks" ;
+ Text [ spanish ] = "I~zquierda" ;
+ Text [ english_us ] = "L~eft" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×ó(~E)";
+ Text[ russian ] = "Ñëåâà";
+ Text[ polish ] = "Z lewej";
+ Text[ japanese ] = "¶(~E)";
+ Text[ chinese_traditional ] = "¥ª(~E)";
+ Text[ arabic ] = "Åáì ÇáíÓÇÑ";
+ Text[ greek ] = "ÁñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ(~E)";
+ Text[ turkish ] = "S~ol";
+ };
+ MetricField ED_LEFT_MARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 65 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_RIGHT_MARGIN
+ {
+ Pos = MAP_APPFONT ( 139 , 81 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Re~chts" ;
+ Text [ ENGLISH ] = "~Right" ;
+ Text [ norwegian ] = "~Right" ;
+ Text [ italian ] = "Destra" ;
+ Text [ portuguese_brazilian ] = "~Direita" ;
+ Text [ portuguese ] = "~Direita" ;
+ Text [ finnish ] = "~Oikealle" ;
+ Text [ danish ] = "Højre" ;
+ Text [ french ] = "À ~droite" ;
+ Text [ swedish ] = "H~öger" ;
+ Text [ dutch ] = "Rec~hts" ;
+ Text [ spanish ] = "D~erecha" ;
+ Text [ english_us ] = "Rig~ht" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÓÒ(~H)";
+ Text[ russian ] = "Ñïðàâà";
+ Text[ polish ] = "Z prawej";
+ Text[ japanese ] = "‰E(~H)";
+ Text[ chinese_traditional ] = "¥k(~H)";
+ Text[ arabic ] = "Åáì Çáíãíä";
+ Text[ greek ] = "ÄåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ(~H)";
+ Text[ turkish ] = "S~að";
+ };
+ MetricField ED_RIGHT_MARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 80 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_TOP_MARGIN
+ {
+ Pos = MAP_APPFONT ( 139 , 96 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "O~ben" ;
+ Text [ ENGLISH ] = "~Top" ;
+ Text [ norwegian ] = "~Top" ;
+ Text [ italian ] = "~Alto" ;
+ Text [ portuguese_brazilian ] = "~Topo" ;
+ Text [ portuguese ] = "Em ~cima" ;
+ Text [ finnish ] = "~Ylös" ;
+ Text [ danish ] = "Øverst" ;
+ Text [ french ] = "En ~haut" ;
+ Text [ swedish ] = "Övers~t" ;
+ Text [ dutch ] = "~Boven" ;
+ Text [ spanish ] = "~Arriba" ;
+ Text [ english_us ] = "~Top" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÉÏ(~T)";
+ Text[ russian ] = "Ââåðõó";
+ Text[ polish ] = "W górze";
+ Text[ japanese ] = "ã(~T)";
+ Text[ chinese_traditional ] = "¤W(~T)";
+ Text[ arabic ] = "ÃÚáì";
+ Text[ greek ] = "ÐÜíù";
+ Text[ korean ] = "ˤ(~T)";
+ Text[ turkish ] = "Üs~t";
+ };
+ MetricField ED_TOP_MARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 95 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_BOTTOM_MARGIN
+ {
+ Pos = MAP_APPFONT ( 139 , 111 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Unt~en" ;
+ Text [ ENGLISH ] = "~Bottom" ;
+ Text [ norwegian ] = "~Bottom" ;
+ Text [ italian ] = "~Basso" ;
+ Text [ portuguese_brazilian ] = "~Base" ;
+ Text [ portuguese ] = "Em ~baixo" ;
+ Text [ finnish ] = "~Alas" ;
+ Text [ danish ] = "Nederst" ;
+ Text [ french ] = "En ~bas" ;
+ Text [ swedish ] = "Und~erst" ;
+ Text [ dutch ] = "Be~neden" ;
+ Text [ spanish ] = "~Abajo" ;
+ Text [ english_us ] = "~Bottom" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÏÂ(~B)";
+ Text[ russian ] = "Âíèçó";
+ Text[ polish ] = "Na dole";
+ Text[ japanese ] = "‰º(~B)";
+ Text[ chinese_traditional ] = "¤U(~B)";
+ Text[ arabic ] = "ÃÓÝá";
+ Text[ greek ] = "ÊÜôù";
+ Text[ korean ] = "¾Æ·¡(~B)";
+ Text[ turkish ] = "A~lt";
+ };
+ MetricField ED_BOTTOM_MARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 110 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ GroupBox GB_MARGIN
+ {
+ Pos = MAP_APPFONT ( 133 , 54 ) ;
+ Size = MAP_APPFONT ( 121 , 75 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Abstände : Abstõnde */
+ Text = "Abstände" ;
+ Text [ ENGLISH ] = "Margins" ;
+ Text [ norwegian ] = "Margins" ;
+ Text [ italian ] = "Distanze" ;
+ Text [ portuguese_brazilian ] = "Margens" ;
+ Text [ portuguese ] = "Espaçamento" ;
+ Text [ finnish ] = "Reunukset" ;
+ Text [ danish ] = "Afstand" ;
+ Text [ french ] = "Écarts" ;
+ Text [ swedish ] = "Avstånd" ;
+ Text [ dutch ] = "Afstanden" ;
+ Text [ spanish ] = "Distancias" ;
+ Text [ english_us ] = "Spacing" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "Èíòåðâàëû";
+ Text[ polish ] = "Odstêpy";
+ Text[ japanese ] = "ŠÔŠu";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÇáÊÈÇÚÏ";
+ Text[ greek ] = "AðïóôÜóåéò";
+ Text[ korean ] = "°£°Ý";
+ Text[ turkish ] = "Aralýk";
+ };
+ #define IMAGE_STDBTN_COLOR Color { Red = 0xC000; Green = 0xC000; Blue = 0xC000; }
+ ImageList IL_WRAP
+ {
+ ImageBitmap = Bitmap { File = "wraplist.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ IdList =
+ {
+ IMG_NONE ;
+ IMG_LEFT ;
+ IMG_RIGHT ;
+ IMG_PARALLEL ;
+ IMG_THROUGH ;
+ IMG_IDEAL ;
+ IMG_KON_NONE ;
+ IMG_KON_LEFT ;
+ IMG_KON_RIGHT ;
+ IMG_KON_PARALLEL ;
+ IMG_KON_IDEAL ;
+ };
+ IdCount = { 11 ; };
+ };
+};
diff --git a/sw/source/ui/globdoc/globdoc.cxx b/sw/source/ui/globdoc/globdoc.cxx
new file mode 100644
index 000000000000..e128b7e33abd
--- /dev/null
+++ b/sw/source/ui/globdoc/globdoc.cxx
@@ -0,0 +1,181 @@
+/*************************************************************************
+ *
+ * $RCSfile: globdoc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_EXCHANGE_HXX //autogen
+#include <vcl/exchange.hxx>
+#endif
+
+#ifndef _SO_CLSIDS_HXX
+#include <so3/clsids.hxx>
+#endif
+
+#include "swtypes.hxx"
+
+
+#include "shellio.hxx"
+#include "globdoc.hxx"
+#include "globdoc.hrc"
+
+/*--------------------------------------------------------------------
+ Beschreibung: Alle Filter registrieren
+ --------------------------------------------------------------------*/
+
+// 4.0: {340AC970-E30D-11d0-A53F-00A0249D57B1}
+// 4.0: 0x340ac970, 0xe30d, 0x11d0, 0xa5, 0x3f, 0x0, 0xa0, 0x24, 0x9d, 0x57, 0xb1
+// 5.0: 0xc20cf9d3, 0x85ae, 0x11d1, 0xaa, 0xb4, 0x0, 0x60, 0x97, 0xda, 0x56, 0x1a
+SFX_IMPL_OBJECTFACTORY_LOD(SwGlobalDocShell, SFXOBJECTSHELL_STD_NORMAL|SFXOBJECTSHELL_HASMENU, /*swriter4/GlobalDocument,*/ \
+ SvGlobalName(SO3_SWGLOB_CLASSID) , Sw)
+
+TYPEINIT1(SwGlobalDocShell, SwDocShell);
+
+SwGlobalDocShell::SwGlobalDocShell(SfxObjectCreateMode eMode ) :
+ SwDocShell(eMode)
+{
+}
+
+__EXPORT SwGlobalDocShell::~SwGlobalDocShell()
+{
+}
+
+// Anforderung der pIo-Struktur fuer den Zugriff auf Substorages
+// und Streams
+
+void __EXPORT SwGlobalDocShell::FillRegInfo( SvEmbeddedRegistryInfo * pInfo)
+{
+ SfxInPlaceObject::FillRegInfo( pInfo );
+ pInfo->aObjName = String::CreateFromAscii("StarWriterGlobalDocument");
+ pInfo->nMajorVers = 5;
+ pInfo->nMinorVers = 0;
+ pInfo->aHumanShortTypeName = SW_RESSTR(STR_HUMAN_SWGLOBDOC_NAME);
+ pInfo->nIconResId =
+#ifdef REG_ICON_RESID_SW_GLOBDOC
+ REG_ICON_RESID_SW_GLOBDOC;
+#else
+ 9;
+#endif
+}
+
+void __EXPORT SwGlobalDocShell::FillClass( SvGlobalName * pClassName,
+ ULONG * pClipFormat,
+ String * pAppName,
+ String * pLongUserName,
+ String * pUserName,
+ long nVersion ) const
+{
+ SfxInPlaceObject::FillClass(pClassName, pClipFormat, pAppName, pLongUserName,
+ pUserName, nVersion);
+
+ if (nVersion == SOFFICE_FILEFORMAT_40)
+ {
+ *pClassName = SvGlobalName( SO3_SWGLOB_CLASSID_40 );
+ *pClipFormat = SOT_FORMATSTR_ID_STARWRITERGLOB_40;
+ *pAppName = String::CreateFromAscii("StarWriter 4.0/GlobalDocument");
+
+ *pLongUserName = SW_RESSTR(STR_WRITER_GLOBALDOC_FULLTYPE_40);
+ }
+ else if (nVersion == SOFFICE_FILEFORMAT_NOW)
+ {
+ *pLongUserName = SW_RESSTR(STR_WRITER_GLOBALDOC_FULLTYPE);
+ }
+ *pUserName = SW_RESSTR(STR_HUMAN_SWGLOBDOC_NAME);
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.9 2000/09/18 16:05:35 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.8 2000/04/18 15:32:07 os
+ UNICODE
+
+ Revision 1.7 2000/02/11 14:47:35 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.6 1999/09/10 13:19:20 os
+ Chg: resource types removed
+
+ Revision 1.5 1998/11/18 14:16:34 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+
+ Rev 1.4 18 Nov 1998 15:16:34 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+ Rev 1.3 07 Jan 1998 18:38:32 MIB
+ 5.0 Fileformat
+
+ Rev 1.2 28 Nov 1997 19:52:58 MA
+ includes
+
+ Rev 1.1 01 Sep 1997 13:11:20 OS
+ DLL-Umstellung
+
+ Rev 1.0 12 Jun 1997 16:14:44 MA
+ Initial revision.
+
+------------------------------------------------------------------------*/
diff --git a/sw/source/ui/globdoc/globdoc.src b/sw/source/ui/globdoc/globdoc.src
new file mode 100644
index 000000000000..cec492281e75
--- /dev/null
+++ b/sw/source/ui/globdoc/globdoc.src
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: globdoc.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globdoc.hrc"
+String STR_HUMAN_SWGLOBDOC_NAME
+{
+ Text = "Globaldokument" ;
+ Text [ English ] = "Global Document" ;
+ Text [ english_us ] = "Master Document" ;
+ Text [ portuguese_brazilian ] = "Globaldokument" ;
+ Text [ swedish ] = "Samlingsdokument" ;
+ Text [ danish ] = "Hoveddokument" ;
+ Text [ italian ] = "Documento master" ;
+ Text [ spanish ] = "Documento maestro" ;
+ Text [ french ] = "Document maître" ;
+ Text [ dutch ] = "Master-document" ;
+ Text [ portuguese ] = "Documento-mestre" ;
+ Text[ chinese_simplified ] = "Ö÷¿ØÎĵµ";
+ Text[ russian ] = "Ãëàâíûé äîêóìåíò";
+ Text[ polish ] = "Dokument g³ówny";
+ Text[ japanese ] = "ϽÀ°ÄÞ·­ÒÝÄ";
+ Text[ chinese_traditional ] = "¥D±±¤å¥ó";
+ Text[ arabic ] = "ãÓÊäÏ ÔÇãá";
+ Text[ dutch ] = "Master-document";
+ Text[ chinese_simplified ] = "Ö÷¿ØÎĵµ";
+ Text[ greek ] = "Kýñéï Ýããñáöï";
+ Text[ korean ] = "¸¶½ºÅÍ ¹®¼­";
+ Text[ turkish ] = "Ana belge";
+ Text[ language_user1 ] = " ";
+};
+String STR_WRITER_GLOBALDOC_FULLTYPE_40
+{
+ Text = "StarOffice 4.0 Global Document" ;
+};
+String STR_WRITER_GLOBALDOC_FULLTYPE
+{
+ Text = "StarOffice 5.0 Global Document" ;
+};
diff --git a/sw/source/ui/globdoc/makefile.mk b/sw/source/ui/globdoc/makefile.mk
new file mode 100644
index 000000000000..f0574953365c
--- /dev/null
+++ b/sw/source/ui/globdoc/makefile.mk
@@ -0,0 +1,94 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=globdoc
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ globdoc.cxx
+
+SRCFILES = \
+ globdoc.src
+
+SLOFILES = \
+ $(SLO)$/globdoc.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/inc/abstract.hxx b/sw/source/ui/inc/abstract.hxx
new file mode 100644
index 000000000000..6b86b66b553e
--- /dev/null
+++ b/sw/source/ui/inc/abstract.hxx
@@ -0,0 +1,113 @@
+/*************************************************************************
+ *
+ * $RCSfile: abstract.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ABSTRACT_HXX
+#define _ABSTRACT_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+
+/*-----------------22.02.97 15.06-------------------
+
+--------------------------------------------------*/
+class SwInsertAbstractDlg : public SfxModalDialog
+{
+ GroupBox aGB;
+ FixedText aLevelFT;
+ NumericField aLevelNF;
+ FixedText aParaFT;
+ NumericField aParaNF;
+ FixedText aDescFT;
+ OKButton aOkPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+
+protected:
+
+public:
+ SwInsertAbstractDlg( Window* pParent );
+ ~SwInsertAbstractDlg();
+
+ BYTE GetLevel() const;
+ BYTE GetPara() const;
+};
+
+#endif
+
+
+
diff --git a/sw/source/ui/inc/actctrl.hxx b/sw/source/ui/inc/actctrl.hxx
new file mode 100644
index 000000000000..22d82bb653b3
--- /dev/null
+++ b/sw/source/ui/inc/actctrl.hxx
@@ -0,0 +1,123 @@
+/*************************************************************************
+ *
+ * $RCSfile: actctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ACTCTRL_HXX
+#define _ACTCTRL_HXX
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung: numerische Eingabe
+ --------------------------------------------------------------------*/
+
+class NumEditAction: public NumericField
+{
+ Link aActionLink;
+
+protected:
+ virtual void Action();
+#ifdef VCL
+ virtual long Notify( NotifyEvent& rNEvt );
+#else
+ virtual long ParentNotify( NotifyEvent& rNEvt );
+#endif
+public:
+ NumEditAction( Window* pParent, const ResId& rResId ) :
+ NumericField(pParent, rResId) {}
+
+ void SetActionHdl( const Link& rLink ) { aActionLink = rLink;}
+ const Link& GetActionHdl() const { return aActionLink; }
+};
+
+
+/* -----------------21.04.98 08:11-------------------
+ * Edit, dass keine Spaces akzeptiert
+ * --------------------------------------------------*/
+class NoSpaceEdit : public Edit
+{
+ String sForbiddenChars;
+protected:
+ virtual void KeyInput( const KeyEvent& );
+ virtual void Modify();
+
+public:
+ NoSpaceEdit( Window* pParent, const ResId& rResId)
+ : Edit(pParent, rResId),
+ sForbiddenChars(String::CreateFromAscii(" "))
+ {}
+ void SetForbiddenChars(const String& rSet){sForbiddenChars = rSet;}
+ const String& GetForbiddenChars(){return sForbiddenChars;}
+};
+
+/* -----------------21.04.98 08:33-------------------
+ * Kein Space und kein Punkt
+ * --------------------------------------------------*/
+class TableNameEdit : public NoSpaceEdit
+{
+public:
+ TableNameEdit(Window* pWin, const ResId& rResId) :
+ NoSpaceEdit(pWin, rResId)
+ {SetForbiddenChars(String::CreateFromAscii(" .<>"));}
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/addrdlg.hxx b/sw/source/ui/inc/addrdlg.hxx
new file mode 100644
index 000000000000..08e34cf777ef
--- /dev/null
+++ b/sw/source/ui/inc/addrdlg.hxx
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: addrdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ADDRDLG_HXX
+#define _ADDRDLG_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+class SwAddrDlg : public SfxSingleTabDialog
+{
+public:
+
+ SwAddrDlg( Window* pParent, SfxItemSet& rSet );
+ ~SwAddrDlg();
+};
+
+#endif
+
+
+
+
diff --git a/sw/source/ui/inc/app.hrc b/sw/source/ui/inc/app.hrc
new file mode 100644
index 000000000000..11a0ad808cb1
--- /dev/null
+++ b/sw/source/ui/inc/app.hrc
@@ -0,0 +1,204 @@
+/*************************************************************************
+ *
+ * $RCSfile: app.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _APP_HRC
+#define _APP_HRC
+
+#include "rcid.hrc"
+
+// Default Bitmap fuer ToolBox
+#define BMP_FEHLT (RC_APP_BEGIN + 1)
+
+// Document-Icon
+#define RC_DOC_ICON (RC_APP_BEGIN + 2)
+
+//Soll das Clipboard fuer andere Applikationen...
+#define MSG_CLPBRD_CLEAR (RC_APP_BEGIN + 3)
+
+#define STR_CANTCREATE (RC_APP_BEGIN + 4)
+#define STR_CANTOPEN (RC_APP_BEGIN + 5)
+
+// Messages
+#define MSG_ERROR_SEND_MAIL ( RC_APP_BEGIN + 6)
+#define MSG_SAVE_HTML_QUERY ( RC_APP_BEGIN + 7)
+
+//Fuer das Interface, weil der RID_APP_BEGIN jetzt Desktop ist.
+#define RID_SW_NAME ( RC_APP_BEGIN + 8)
+
+#define MSG_INDEX_OVERFLOW ( RC_APP_BEGIN + 10)
+
+#define STR_UNBENANNT (RC_APP_BEGIN + 13)
+#define STR_VERSION (RC_APP_BEGIN + 14)
+#define STR_PRINT_MERGE_MACRO (RC_APP_BEGIN + 15)
+#define STR_PAGE_COUNT_MACRO (RC_APP_BEGIN + 16)
+
+// Bitmap fuer die NumerierungsVorlagen im Organizer
+#define BMP_STYLES_FAMILY_NUM (RC_APP_BEGIN + 17)
+
+// Strings fuer Bereiche in der Konfiguration
+#define STR_GRP_FILE (RC_APP_BEGIN + 56)
+#define STR_GRP_EDIT (RC_APP_BEGIN + 57)
+#define STR_GRP_TRAVELLING (RC_APP_BEGIN + 58)
+#define STR_GRP_VIEW (RC_APP_BEGIN + 59)
+#define STR_GRP_INSERT (RC_APP_BEGIN + 60)
+#define STR_GRP_FORMAT (RC_APP_BEGIN + 61)
+#define STR_GRP_STYLE (RC_APP_BEGIN + 62)
+#define STR_GRP_TEXT (RC_APP_BEGIN + 63)
+#define STR_GRP_FRAME (RC_APP_BEGIN + 64)
+#define STR_GRP_GRAPHIC (RC_APP_BEGIN + 65)
+#define STR_GRP_TABLE (RC_APP_BEGIN + 66)
+#define STR_GRP_TOOLS (RC_APP_BEGIN + 67)
+#define STR_GRP_NUMBERING (RC_APP_BEGIN + 68)
+#define STR_GRP_WINDOW (RC_APP_BEGIN + 69)
+#define STR_GRP_MISC (RC_APP_BEGIN + 70)
+#define STR_GRP_MACRO (RC_APP_BEGIN + 71)
+#define RES_EXT_HELP_STRING (RC_APP_BEGIN + 72)
+#define RES_STD_HELP_STRING (RC_APP_BEGIN + 73)
+#define STR_PAGEOFFSET (RC_APP_BEGIN + 74)
+#define STR_PAGEBREAK (RC_APP_BEGIN + 75)
+
+
+#define SID_TOGGLETOOLBOX (RC_APP_BEGIN + 89)
+
+#define STR_ENV_TITLE (RC_APP_BEGIN + 91)
+#define STR_LAB_TITLE (RC_APP_BEGIN + 92)
+
+#define STR_HUMAN_SWDOC_NAME (RC_APP_BEGIN + 93)
+
+#define RID_SW_ERRHDL (RC_APP_BEGIN + 95)
+
+#define STR_FDLG_TEMPLATE_BUTTON (RC_APP_BEGIN + 1)
+#define STR_FDLG_TEMPLATE_NAME (RC_APP_BEGIN + 2)
+
+
+// Ids fuer die einzelnen PopUpMenues
+#define MN_WIZARD (RC_APP_BEGIN + 9)
+#define MN_INDEX (RC_APP_BEGIN + 10)
+#define MN_FILE (RC_APP_BEGIN + 11)
+#define MN_EDIT (RC_APP_BEGIN + 12)
+#define MN_VIEW (RC_APP_BEGIN + 13)
+#define MN_INS (RC_APP_BEGIN + 14)
+#define MN_TEXT (RC_APP_BEGIN + 15)
+#define MN_FORMAT (RC_APP_BEGIN + 16)
+#define MN_FORMAT_STYLE (RC_APP_BEGIN + 17)
+#define MN_FORMAT_ALGN (RC_APP_BEGIN + 18)
+#define MN_FORMAT_LINESPACE (RC_APP_BEGIN + 19)
+#define MN_EXTRA (RC_APP_BEGIN + 20)
+#define MN_WIN (RC_APP_BEGIN + 21)
+#define MN_HELP (RC_APP_BEGIN + 22)
+#define MN_FORMAT_FRM_HORZ (RC_APP_BEGIN + 23)
+#define MN_FORMAT_FRM_VERT (RC_APP_BEGIN + 24)
+#define MN_PICKLIST (RC_APP_BEGIN + 25)
+#define MN_WINLIST (RC_APP_BEGIN + 26)
+#define MN_MACRO (RC_APP_BEGIN + 27)
+#define MN_FORMAT_HIERARCHY (RC_APP_BEGIN + 28)
+#define MN_CELL (RC_APP_BEGIN + 29)
+#define MN_HELP_TIP (RC_APP_BEGIN + 30)
+#define MN_HELP_SEARCH (RC_APP_BEGIN + 31)
+#define MN_HELP_ACTIVE (RC_APP_BEGIN + 32)
+#define MN_HELP_INDEX (RC_APP_BEGIN + 33)
+#define MN_OBJECT (RC_APP_BEGIN + 34)
+#define MN_DATABASE (RC_APP_BEGIN + 35)
+#define MN_DIRSUBMENU (RC_APP_BEGIN + 36)
+#define MN_MAIL (RC_APP_BEGIN + 37)
+#define MN_WRAP (RC_APP_BEGIN + 38)
+#define MN_SUB_TBLROW (RC_APP_BEGIN + 39)
+#define MN_SUB_TBLCOL (RC_APP_BEGIN + 40)
+#define MN_SUB_AUTOFORMAT (RC_APP_BEGIN + 41)
+#define MN_SUB_TOOLBAR (RC_APP_BEGIN + 42)
+#define MN_SUB_FIELD (RC_APP_BEGIN + 43)
+#define MN_SUB_GRAPHIC (RC_APP_BEGIN + 44)
+#define MN_SUB_TEMPLATES (RC_APP_BEGIN + 45)
+#define MN_SUB_ARRANGE (RC_APP_BEGIN + 46)
+#define MN_SUB_SPELLING (RC_APP_BEGIN + 47)
+#define MN_SUB_UPDATE (RC_APP_BEGIN + 48)
+#define MN_SUB_MIRROR (RC_APP_BEGIN + 49)
+#define MN_SUB_ALIGN (RC_APP_BEGIN + 50)
+#define MN_SUB_OPTIONS (RC_APP_BEGIN + 51)
+#define MN_SUB_SENDTO (RC_APP_BEGIN + 52)
+#define MN_SUB_REVISE (RC_APP_BEGIN + 53)
+#define MN_TEMPLATES (RC_APP_BEGIN + 54)
+#define MN_FILE_PORT (RC_APP_BEGIN + 55)
+#define MN_EDIT_PORT (RC_APP_BEGIN + 56)
+#define MN_VIEW_PORT (RC_APP_BEGIN + 57)
+#define MN_INS_PORT (RC_APP_BEGIN + 58)
+#define MN_FORMAT_PORT (RC_APP_BEGIN + 59)
+#define MN_EXTRA_PORT (RC_APP_BEGIN + 60)
+#define MN_WIN_PORT (RC_APP_BEGIN + 61)
+#define MN_HELP_PORT (RC_APP_BEGIN + 62)
+
+
+#define RC_INTRO_BEGIN (RC_APP_BEGIN + 90)
+#define RC_INTRO_END (RC_APP_BEGIN + 96)
+
+#define STR_WRITER_DOCUMENT_FULLTYPE_31 (RC_APP_BEGIN + 97)
+#define STR_WRITER_DOCUMENT_FULLTYPE_40 (RC_APP_BEGIN + 98)
+#define STR_WRITER_DOCUMENT_FULLTYPE (RC_APP_BEGIN + 100)
+
+#define STR_ABSTRACT_TITLE (RC_APP_BEGIN +99)
+
+#define APP_ACT_END STR_WRITER_DOCUMENT_FULLTYPE
+
+#if APP_ACT_END > RC_APP_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
diff --git a/sw/source/ui/inc/ascfldlg.hxx b/sw/source/ui/inc/ascfldlg.hxx
new file mode 100644
index 000000000000..0f34e28d7cb5
--- /dev/null
+++ b/sw/source/ui/inc/ascfldlg.hxx
@@ -0,0 +1,119 @@
+/*************************************************************************
+ *
+ * $RCSfile: ascfldlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ASCFLDLG_HXX
+#define _ASCFLDLG_HXX
+
+#ifndef _BASEDLGS_HXX
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SV_GROUP_HXX
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+
+class SwAsciiOptions;
+class SvStream;
+class SwDocShell;
+
+class SwAsciiFilterDlg : public SfxModalDialog
+{
+ GroupBox aGB;
+ FixedText aCharSetFT;
+ ListBox aCharSetLB;
+ FixedText aFontFT;
+ ListBox aFontLB;
+ FixedText aLanguageFT;
+ ListBox aLanguageLB;
+ FixedText aCRLF_FT;
+ RadioButton aCRLF_RB, aCR_RB, aLF_RB;
+ OKButton aOkPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+ String sNoLanguage, sCharSet, sSystemCharSet;
+ BOOL bSaveLineStatus;
+
+ DECL_LINK( CharSetSelHdl, ListBox* );
+ DECL_LINK( LineEndHdl, RadioButton* );
+ void SetCRLF( LineEnd eEnd );
+ LineEnd GetCRLF() const;
+
+public:
+ // CTOR: for import - pStream is the inputstream
+ // for export - pStream must be 0
+ SwAsciiFilterDlg( Window* pParent, SwDocShell& rDocSh,
+ SvStream* pStream );
+ virtual ~SwAsciiFilterDlg();
+
+ void FillOptions( SwAsciiOptions& rOptions );
+};
+
+
+
+#endif
+
diff --git a/sw/source/ui/inc/autoedit.hxx b/sw/source/ui/inc/autoedit.hxx
new file mode 100644
index 000000000000..c7c89d42aeb3
--- /dev/null
+++ b/sw/source/ui/inc/autoedit.hxx
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ * $RCSfile: autoedit.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _AUTOEDIT_HXX
+#define _AUTOEDIT_HXX
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+
+class AutoEdit : public Edit
+{
+public:
+ AutoEdit( Window* pParent, ResId aResId ) : Edit( pParent, aResId ){}
+
+protected:
+ virtual void KeyInput( const KeyEvent& rEvent );
+};
+
+// Implementieriung im autocorr.cxx
+
+
+
+#endif
+
+
diff --git a/sw/source/ui/inc/barcfg.hxx b/sw/source/ui/inc/barcfg.hxx
new file mode 100644
index 000000000000..421a042ed30c
--- /dev/null
+++ b/sw/source/ui/inc/barcfg.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: barcfg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef SW_BARCFG_HXX
+#define SW_BARCFG_HXX
+
+#ifndef _SFXCFGITEM_HXX //autogen
+#include <sfx2/cfgitem.hxx>
+#endif
+
+class CfgUSHORTTable;
+
+class SwToolbarConfigItem : public SfxConfigItem
+{
+ CfgUSHORTTable *pTbl;
+private:
+ virtual int Load (SvStream& rStrm);
+ virtual BOOL Store(SvStream& rStrm);
+ virtual void UseDefault();
+
+public:
+ SwToolbarConfigItem( BOOL bWeb );
+ ~SwToolbarConfigItem();
+
+ void SetTopToolbar( int nSelType, USHORT nBarId );
+ USHORT GetTopToolbar( int nSelType ); //USHRT_MAX: noch nicht eingetragen
+};
+
+#endif
diff --git a/sw/source/ui/inc/basesh.hxx b/sw/source/ui/inc/basesh.hxx
new file mode 100644
index 000000000000..67e7bf05d695
--- /dev/null
+++ b/sw/source/ui/inc/basesh.hxx
@@ -0,0 +1,177 @@
+/*************************************************************************
+ *
+ * $RCSfile: basesh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWBASESH_HXX
+#define _SWBASESH_HXX
+
+#ifndef _SHELLID_HXX
+#include <shellid.hxx>
+#endif
+
+#ifndef _SFXMODULE_HXX //autogen
+#include <sfx2/module.hxx>
+#endif
+#ifndef _SFX_SHELL_HXX //autogen
+#include <sfx2/shell.hxx>
+#endif
+
+#ifndef _LINK_HXX //autogen
+#include <tools/link.hxx>
+#endif
+#ifndef _SV_TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+
+class SwWrtShell;
+class SwCrsrShell;
+class SwView;
+class GraphicFilter;
+class SwFlyFrmAttrMgr;
+class SfxItemSet;
+class Graphic;
+
+extern void DisableAllItems(SfxItemSet &);
+
+class SwBaseShell: public SfxShell
+{
+ SwView &rView;
+
+ // DragModus
+ static USHORT nFrameMode;
+
+ // Bug 75078 - if in GetState the asynch call of GetGraphic returns
+ // synch, the set the state directly into the itemset
+ SfxItemSet* pGetStateSet;
+
+ //Update-Timer fuer Graphic
+ BOOL bUpdateSID_IMap :1;
+ BOOL bUpdateSID_IMapExec :1;
+ BOOL bUpdateSID_IContour :1;
+ BOOL bUpdateSID_IContourDlg :1;
+
+ DECL_LINK( GraphicArrivedHdl, SwCrsrShell* );
+ DECL_LINK( UpdatePercentHdl, GraphicFilter* );
+
+protected:
+
+ SwWrtShell& GetShell ();
+ SwWrtShell* GetShellPtr();
+
+ SwView& GetView() { return rView; }
+
+ SwFlyFrmAttrMgr *pFrmMgr;
+
+ DECL_STATIC_LINK( SwBaseShell, InsertDBTextHdl, String* );
+
+public:
+ SwBaseShell(SwView &rShell);
+ virtual ~SwBaseShell();
+ SFX_DECL_INTERFACE(SW_BASESHELL);
+ TYPEINFO();
+
+ void ExecDelete(SfxRequest &);
+
+ void ExecClpbrd(SfxRequest &);
+ void StateClpbrd(SfxItemSet &);
+
+ void ExecUndo(SfxRequest &);
+ void StateUndo(SfxItemSet &);
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void StateStyle(SfxItemSet &);
+
+ void ExecuteGallery(SfxRequest&);
+ void GetGalleryState(SfxItemSet&);
+
+ void ExecDlg(SfxRequest &);
+
+ void StateStatusLine(SfxItemSet &rSet);
+ void ExecTxtCtrl(SfxRequest& rReq);
+ void GetTxtCtrlState(SfxItemSet& rSet);
+ void GetBorderState(SfxItemSet &rSet);
+ void GetBckColState(SfxItemSet &rSet);
+
+ void ExecBckCol(SfxRequest& rReq);
+ void SetWrapMode( USHORT nSlot );
+
+ void ExecDB(SfxRequest &rReq);
+
+ void StateDisableItems(SfxItemSet &);
+
+ void EditRegionDialog(SfxRequest& rReq);
+ void InsertRegionDialog(SfxRequest& rReq);
+
+ void ExecField(SfxRequest& rReq);
+
+ static void SetFrmMode( USHORT nMode, SwWrtShell *pShell ); //Mit Update!
+ static void _SetFrmMode( USHORT nMode ) { nFrameMode = nMode; }
+ static USHORT GetFrmMode() { return nFrameMode; }
+
+ //public fuer D&D
+ int InsertGraphic( const String &rPath, const String &rFilter,
+ BOOL bLink = TRUE, GraphicFilter *pFlt = 0,
+ Graphic* pPreviewGrf = 0,
+ BOOL bRule = FALSE );
+
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/beziersh.hxx b/sw/source/ui/inc/beziersh.hxx
new file mode 100644
index 000000000000..8a3d70ad79c1
--- /dev/null
+++ b/sw/source/ui/inc/beziersh.hxx
@@ -0,0 +1,78 @@
+/*************************************************************************
+ *
+ * $RCSfile: beziersh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWBEZIERSH_HXX
+#define _SWBEZIERSH_HXX
+
+#include "basesh.hxx"
+
+class SwBezierShell: public SwBaseShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_BEZIERSHELL);
+ TYPEINFO();
+
+ SwBezierShell(SwView &rView);
+
+ void GetState(SfxItemSet &);
+ void Execute(SfxRequest &);
+};
+
+#endif
diff --git a/sw/source/ui/inc/bmpwin.hxx b/sw/source/ui/inc/bmpwin.hxx
new file mode 100644
index 000000000000..b866754a438c
--- /dev/null
+++ b/sw/source/ui/inc/bmpwin.hxx
@@ -0,0 +1,104 @@
+/*************************************************************************
+ *
+ * $RCSfile: bmpwin.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _BMPWIN_HXX
+#define _BMPWIN_HXX
+
+#ifndef _GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _BITMAP_HXX //autogen
+#include <vcl/bitmap.hxx>
+#endif
+#ifndef _WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Extended Page fuer Grafiken
+ --------------------------------------------------------------------*/
+
+class BmpWindow : public Window
+{
+ void Paint(const Rectangle& rRect);
+ Graphic aGraphic;
+ Bitmap aBmp;
+ BOOL bHorz : 1;
+ BOOL bVert : 1;
+ BOOL bGraphic : 1;
+ BOOL bLeftAlign : 1;
+
+public:
+ BmpWindow(Window* pPar, USHORT nId,
+ const Graphic& rGraphic, const Bitmap& rBmp);
+ BmpWindow(Window* pParent, const ResId rResId) :
+ Window(pParent, rResId), bLeftAlign(TRUE),
+ bHorz(FALSE), bVert(FALSE),bGraphic(FALSE){}
+ ~BmpWindow();
+ void MirrorVert(BOOL bMirror) { bVert = bMirror; Invalidate(); }
+ void MirrorHorz(BOOL bMirror) { bHorz = bMirror; Invalidate(); }
+ void SetGraphic(const Graphic& rGrf)
+ {aGraphic = rGrf; bGraphic = TRUE; Invalidate();}
+
+};
+
+#endif
diff --git a/sw/source/ui/inc/bookctrl.hxx b/sw/source/ui/inc/bookctrl.hxx
new file mode 100644
index 000000000000..0b8fc4861972
--- /dev/null
+++ b/sw/source/ui/inc/bookctrl.hxx
@@ -0,0 +1,95 @@
+/*************************************************************************
+ *
+ * $RCSfile: bookctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _BOOKCTRL_HXX
+#define _BOOKCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+// class BookmarkToolBoxControl -------------------------------------------
+
+class SwBookmarkControl : public SfxStatusBarControl
+{
+ virtual void Command( const CommandEvent& rCEvt );
+
+public:
+ virtual void StateChanged( const SfxPoolItem* pState );
+ virtual void Paint( const UserDrawEvent& rEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SwBookmarkControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+ ~SwBookmarkControl();
+
+private:
+ String sPageNumber;
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/bookmark.hxx b/sw/source/ui/inc/bookmark.hxx
new file mode 100644
index 000000000000..c7978a2229fc
--- /dev/null
+++ b/sw/source/ui/inc/bookmark.hxx
@@ -0,0 +1,127 @@
+/*************************************************************************
+ *
+ * $RCSfile: bookmark.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _BOOKMARK_HXX
+#define _BOOKMARK_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#include "swlbox.hxx" // SwComboBox
+
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class BookmarkCombo : public SwComboBox
+{
+ USHORT GetFirstSelEntryPos() const;
+ USHORT GetNextSelEntryPos(USHORT nPos) const;
+ USHORT GetSelEntryPos(USHORT nPos) const;
+
+ virtual long PreNotify(NotifyEvent& rNEvt);
+public:
+ BookmarkCombo( Window* pWin, const ResId& rResId );
+
+ USHORT GetSelectEntryCount() const;
+ XubString GetSelectEntry( USHORT nSelIndex = 0 ) const;
+ USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
+
+ static const String aForbiddenChars;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwInsertBookmarkDlg: public SvxStandardDialog
+{
+ BookmarkCombo aBookmarkBox;
+ GroupBox aBookmarkFrm;
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ PushButton aDeleteBtn;
+
+ String sRemoveWarning;
+ SwWrtShell &rSh;
+
+ DECL_LINK( ModifyHdl, BookmarkCombo * );
+ DECL_LINK( DeleteHdl, Button * );
+
+ virtual void Apply();
+
+public:
+ SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh );
+ ~SwInsertBookmarkDlg();
+
+};
+
+#endif
diff --git a/sw/source/ui/inc/break.hxx b/sw/source/ui/inc/break.hxx
new file mode 100644
index 000000000000..d28342fd4334
--- /dev/null
+++ b/sw/source/ui/inc/break.hxx
@@ -0,0 +1,124 @@
+/*************************************************************************
+ *
+ * $RCSfile: break.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _BREAK_HXX
+#define _BREAK_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwBreakDlg: public SvxStandardDialog
+{
+ SwWrtShell &rSh;
+ RadioButton aLineBtn;
+ RadioButton aColumnBtn;
+ RadioButton aPageBtn;
+ FixedText aPageCollText;
+ ListBox aPageCollBox;
+ CheckBox aPageNumBox;
+ NumericField aPageNumEdit;
+ GroupBox aBreakFrm;
+
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ BOOL bHtmlMode;
+
+ DECL_LINK( ClickHdl, void * );
+ DECL_LINK( PageNumHdl, CheckBox * );
+ DECL_LINK( PageNumModifyHdl, Edit * );
+ DECL_LINK( OkHdl, Button * );
+
+ void CheckEnable();
+
+protected:
+ virtual void Apply();
+
+public:
+ SwBreakDlg( Window *pParent, SwWrtShell &rSh );
+ ~SwBreakDlg();
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/caption.hxx b/sw/source/ui/inc/caption.hxx
new file mode 100644
index 000000000000..b8f575dd0c02
--- /dev/null
+++ b/sw/source/ui/inc/caption.hxx
@@ -0,0 +1,146 @@
+/*************************************************************************
+ *
+ * $RCSfile: caption.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CAPTION_HXX
+#define _CAPTION_HXX
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+#ifndef _STREAM_HXX //autogen
+#include <tools/stream.hxx>
+#endif
+#ifndef _GLOBNAME_HXX //autogen
+#include <tools/globname.hxx>
+#endif
+
+enum SwCapObjType
+{
+ FRAME_CAP, GRAPHIC_CAP, TABLE_CAP, OLE_CAP
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class InsCaptionOpt
+{
+private:
+ BOOL bUseCaption;
+ SwCapObjType eObjType;
+ SvGlobalName aOleId;
+ String sCategory;
+ USHORT nNumType;
+ String sCaption;
+ USHORT nPos;
+ USHORT nLevel;
+ sal_Unicode cSeparator;
+ BOOL bIgnoreSeqOpts; // wird nicht gespeichert
+ BOOL bCopyAttributes; // -""-
+
+public:
+ InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = 0);
+ InsCaptionOpt(const InsCaptionOpt&);
+ ~InsCaptionOpt();
+
+ inline BOOL& UseCaption() { return bUseCaption; }
+ inline BOOL UseCaption() const { return bUseCaption; }
+
+ inline SwCapObjType GetObjType() const { return eObjType; }
+ inline void SetObjType(const SwCapObjType eType) { eObjType = eType; }
+
+ inline const SvGlobalName& GetOleId() const { return aOleId; }
+ inline void SetOleId(const SvGlobalName &rId) { aOleId = rId; }
+
+ inline const String& GetCategory() const { return sCategory; }
+ inline void SetCategory(const String& rCat) { sCategory = rCat; }
+
+ inline USHORT GetNumType() const { return nNumType; }
+ inline void SetNumType(const USHORT nNT) { nNumType = nNT; }
+
+ inline const String& GetCaption() const { return sCaption; }
+ inline void SetCaption(const String& rCap) { sCaption = rCap; }
+
+ inline USHORT GetPos() const { return nPos; }
+ inline void SetPos(const USHORT nP) { nPos = nP; }
+
+ inline USHORT GetLevel() const { return nLevel; }
+ inline void SetLevel(const USHORT nLvl) { nLevel = nLvl; }
+
+ inline sal_Unicode GetSeparator() const { return cSeparator; }
+ inline void SetSeparator(const sal_Unicode cSep){ cSeparator = cSep; }
+
+ inline BOOL& IgnoreSeqOpts() { return bIgnoreSeqOpts; }
+ inline BOOL IgnoreSeqOpts() const { return bIgnoreSeqOpts; }
+
+ inline BOOL& CopyAttributes() { return bCopyAttributes; }
+ inline BOOL CopyAttributes() const { return bCopyAttributes; }
+
+ BOOL operator==( const InsCaptionOpt& rOpt ) const;
+ InsCaptionOpt& operator= ( const InsCaptionOpt& rOpt );
+ inline BOOL operator< ( const InsCaptionOpt & rObj ) const
+ { return aOleId < rObj.aOleId; }
+ friend SvStream& operator>>( SvStream& rIStream, InsCaptionOpt& rCapOpt );
+ friend SvStream& operator<<( SvStream& rOStream, const InsCaptionOpt& rCapOpt );
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/cfgdesc.hxx b/sw/source/ui/inc/cfgdesc.hxx
new file mode 100644
index 000000000000..2423ab0489e5
--- /dev/null
+++ b/sw/source/ui/inc/cfgdesc.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: cfgdesc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CFGDESC_HXX
+#define _CFGDESC_HXX
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+class SwCfgDesc
+{
+protected:
+ String aFuncText;
+ String aLibName;
+ USHORT nEvent;
+
+ SwCfgDesc(const String &rFuncName, USHORT nId);
+ SwCfgDesc(const String &rLib,const String &rMacro);
+ ~SwCfgDesc();
+
+public:
+ void SetEvent(USHORT nE); // inline
+ void SetFuncText(const String &rStr); // inline
+ void SetMacro(const String &rLib, const String &rMac);
+ BOOL IsMacro() const;
+ USHORT GetEvent() const; // inline
+ String GetFuncText() const; // inline
+ String GetMacro() const; // inline
+ String GetLib() const; // inline
+};
+
+// INLINE METHODE --------------------------------------------------------
+inline void SwCfgDesc::SetEvent(USHORT nE) {
+ nEvent = nE;
+}
+
+inline void SwCfgDesc::SetFuncText(const String &rStr) {
+ aFuncText = rStr;
+}
+
+inline USHORT SwCfgDesc::GetEvent() const { return nEvent; }
+inline String SwCfgDesc::GetFuncText() const { return aFuncText; }
+inline String SwCfgDesc::GetMacro() const { return aFuncText; }
+inline String SwCfgDesc::GetLib() const { return aLibName; }
+
+
+#endif
diff --git a/sw/source/ui/inc/cfgid.h b/sw/source/ui/inc/cfgid.h
new file mode 100644
index 000000000000..4595bffcc41f
--- /dev/null
+++ b/sw/source/ui/inc/cfgid.h
@@ -0,0 +1,180 @@
+/*************************************************************************
+ *
+ * $RCSfile: cfgid.h,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CFGID_H
+#define _CFGID_H
+
+#ifndef _SFX_HRC //autogen
+#include <sfx2/sfx.hrc>
+#endif
+
+#define CFG_DBDESCMGR_ITEM SFX_ITEMTYPE_SW_BEGIN
+#define CFG_USERPREF_ITEM (SFX_ITEMTYPE_SW_BEGIN + 1)
+
+#define CFG_COLOR_ITEM (SFX_ITEMTYPE_SW_BEGIN + 3)
+#define CFG_PRINT_ITEM (SFX_ITEMTYPE_SW_BEGIN + 4)
+#define CFG_AUTOCORR_ITEM (SFX_ITEMTYPE_SW_BEGIN + 5)
+#define CFG_AUTOFMT_ITEM (SFX_ITEMTYPE_SW_BEGIN + 6)
+#define CFG_NUMRULE_ITEM (SFX_ITEMTYPE_SW_BEGIN + 7)
+#define CFG_ENV_ITEM (SFX_ITEMTYPE_SW_BEGIN + 8)
+#define CFG_LAB_ITEM (SFX_ITEMTYPE_SW_BEGIN + 9)
+#define CFG_CHAPTER_ITEM (SFX_ITEMTYPE_SW_BEGIN +10)
+//#define CFG_BROWSEPREF_ITEM (SFX_ITEMTYPE_SW_BEGIN +11) //UsrPrefs fuer BrowseView
+#define CFG_STDFONT_ITEM (SFX_ITEMTYPE_SW_BEGIN +12)
+#define CFG_STATUSBAR (SFX_ITEMTYPE_SW_BEGIN +13)
+#define CFG_NAVIPI (SFX_ITEMTYPE_SW_BEGIN +14)
+#define CFG_SRCVIEW (SFX_ITEMTYPE_SW_BEGIN +15)
+#define CFG_SW_MENU (SFX_ITEMTYPE_SW_BEGIN +16)
+#define CFG_SW_ACCEL (SFX_ITEMTYPE_SW_BEGIN +17)
+#define CFG_SW_MODULE (SFX_ITEMTYPE_SW_BEGIN +18)
+#define CFG_SWWEB_MENU (SFX_ITEMTYPE_SW_BEGIN +19)
+#define CFG_SWWEB_ACCEL (SFX_ITEMTYPE_SW_BEGIN +20)
+#define CFG_SWWEB_USRPREF (SFX_ITEMTYPE_SW_BEGIN +21)
+#define CFG_WEBPRINT_ITEM (SFX_ITEMTYPE_SW_BEGIN +22)
+#define CFG_TOOLBARCONFIG_ITEM (SFX_ITEMTYPE_SW_BEGIN +23)
+#define CFG_WEBTOOLBARCONFIG_ITEM (SFX_ITEMTYPE_SW_BEGIN +24)
+#define CFG_INSERT_DBCOLUMN_ITEM (SFX_ITEMTYPE_SW_BEGIN +25)
+#define CFG_INSERT_HEADFOOT_ITEM (SFX_ITEMTYPE_SW_BEGIN +26)
+#define CFG_SW_MENU_PORTAL (SFX_ITEMTYPE_SW_BEGIN +27)
+#define CFG_SWWEB_MENU_PORTAL (SFX_ITEMTYPE_SW_BEGIN +28)
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.25 2000/09/18 16:05:37 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.24 2000/08/07 14:02:28 os
+ portal menu added
+
+ Revision 1.23 1998/05/25 08:06:20 JP
+ neue ConfigId fuers einfuegen von Standard Kopf-/Fusszeilen
+
+
+ Rev 1.22 25 May 1998 10:06:20 JP
+ neue ConfigId fuers einfuegen von Standard Kopf-/Fusszeilen
+
+ Rev 1.21 20 May 1998 21:24:56 JP
+ neue ConfigId fuer Datenbankspalten einfuegen Autopilot
+
+ Rev 1.20 02 Apr 1998 10:05:00 MA
+ new: ToolbarCfg
+
+ Rev 1.19 28 Nov 1997 08:26:12 MA
+ includes
+
+ Rev 1.18 05 Feb 1997 13:35:44 OS
+ PrintOptins auch fuer Web
+
+ Rev 1.17 30 Jan 1997 11:13:36 OS
+ Id fuer BrowseUsrPref
+
+ Rev 1.16 24 Jan 1997 14:57:20 OS
+ defines fuer WebMenue und -Accel
+
+ Rev 1.15 13 Jan 1997 16:54:00 OS
+ neu: SwModuleOptions
+
+ Rev 1.14 18 Nov 1996 09:27:14 OS
+ neue ConfigIds
+
+ Rev 1.13 15 Nov 1996 10:52:58 OS
+ SFX_ITEMTYPE_USER_BEGIN -> SFX_ITEMTYPE_SW_BEGIN
+
+ Rev 1.12 13 Nov 1996 14:33:08 OS
+ neues ConfigItem: SwNavigationConfig
+
+ Rev 1.11 07 Nov 1996 16:18:56 OS
+ neue Id fuer StatusBar
+
+ Rev 1.10 03 Sep 1996 16:55:08 OS
+ neu: ConfigItem fuer Standardfonts
+
+ Rev 1.9 24 Apr 1996 15:04:04 OS
+ Umstellung UsrPref/ViewOption
+
+ Rev 1.8 03 Jan 1996 10:33:28 OS
+ neue Id fuer Kapitelnumerierung
+
+ Rev 1.7 20 Feb 1995 19:38:26 PK
+ neu: efg_(env|lab)_item
+
+ Rev 1.6 10 Jan 1995 18:53:26 ER
+ #endif ohne Kommentar
+
+ Rev 1.5 31 Oct 1994 11:16:34 MS
+ ifndef angepasst
+
+ Rev 1.4 06 Oct 1994 17:15:52 VB
+ cfgid.h -> T:/sw/source/ui/inc/cfgid.h_v
+ Enter description of changes made
+ NumRules wieder scharf geschaltet.
+
+ Rev 1.3 28 Sep 1994 14:14:24 MS
+ Umstellung auf SfxConfigItem
+
+ Rev 1.2 27 Sep 1994 10:47:38 MS
+
+ Rev 1.1 19 Sep 1994 15:28:32 MS
+ Fix fuers Update
+
+ Rev 1.0 15 Sep 1994 16:41:46 MS
+ Initial revision.
+ -------------------------------------------------------------------------*/
+#endif
diff --git a/sw/source/ui/inc/cfgitems.hxx b/sw/source/ui/inc/cfgitems.hxx
new file mode 100644
index 000000000000..067b482f569b
--- /dev/null
+++ b/sw/source/ui/inc/cfgitems.hxx
@@ -0,0 +1,300 @@
+/*************************************************************************
+ *
+ * $RCSfile: cfgitems.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CFGITEMS_HXX
+#define _CFGITEMS_HXX
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+#ifndef _AUTHRATR_HXX
+#include <authratr.hxx>
+#endif
+
+class SwWriterApp;
+class SwModule;
+#ifndef PRODUCT
+class SwTestTabPage;
+#endif
+class SwAddPrinterTabPage;
+class SfxPrinter;
+class ViewShell;
+class SwViewOption;
+class SwPrintOptions;
+class SwContentOptPage;
+class SwLayoutOptPage;
+class SwDocEditDialog;
+
+SfxPrinter* GetPrt( ViewShell* );
+void SetPrt( SfxPrinter* );
+
+
+/*--------OS 12.01.95 -----------------------------------
+Item fuer Einstellungsdialog - Dokumentanzeige
+--------------------------------------------------------- */
+#ifdef FN_PARAM_DOCDISP
+
+class SwDocDisplayItem : public SfxPoolItem
+{
+ friend SwWriterApp;
+ friend SwContentOptPage;
+ friend SwModule;
+
+ BOOL bParagraphEnd :1;
+ BOOL bTab :1;
+ BOOL bSpace :1;
+ BOOL bNonbreakingSpace :1;
+ BOOL bSoftHyphen :1;
+ BOOL bHiddenText :1;
+ BOOL bManualBreak :1;
+ BOOL bIndexEntry :1;
+ BOOL bIndexBackground :1;
+ BOOL bFootnoteBackground:1;
+ BOOL bField :1;
+ BOOL bTable :1;
+ BOOL bGraphic :1;
+ BOOL bDrawing :1;
+ BOOL bFieldName :1;
+ BOOL bNotes :1;
+ BOOL bShowHiddenPara :1;
+
+ Color aIndexBackgrndCol;
+
+
+public:
+ TYPEINFO();
+ SwDocDisplayItem( USHORT nWhich = FN_PARAM_DOCDISP );
+ SwDocDisplayItem(
+ const SwDocDisplayItem& rSwDocDisplayItem );
+ SwDocDisplayItem( const SwViewOption& rVOpt,
+ USHORT nWhich );
+
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ void operator=( const SwDocDisplayItem& );
+ void FillViewOptions( SwViewOption& rVOpt) const;
+};
+#endif
+/*--------OS 12.01.95 -----------------------------------
+Item fuer Einstellungsdialog, Elementeseite
+--------------------------------------------------------- */
+#ifdef FN_PARAM_ELEM
+class SwElemItem : public SfxPoolItem
+{
+ BOOL bHorzScrollbar :1;
+ BOOL bVertScrollbar :1;
+ BOOL bHorzRuler :1;
+ BOOL bVertRuler :1;
+ BOOL bTableBounds :1;
+ BOOL bSectionBounds :1;
+ BOOL bCrosshair :1;
+ BOOL bHandles :1;
+ BOOL bBigHandles :1;
+ BOOL bBounds :1;
+ BOOL bStatusLine :1;
+ BOOL bSmoothScroll :1;
+
+ friend SwLayoutOptPage;
+
+public:
+ TYPEINFO();
+ SwElemItem( USHORT nWhich = FN_PARAM_ELEM );
+ SwElemItem(const SwElemItem& rElemItem);
+ SwElemItem(const SwViewOption& rVOpt, USHORT nWhich);
+
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ void operator=( const SwElemItem& );
+
+ void FillViewOptions( SwViewOption& rVOpt) const;
+
+ void SetStatusLine(BOOL bSet){bStatusLine = bSet;}
+ BOOL IsStatusLine()const {return bStatusLine;}
+};
+#endif
+/*--------OS 12.01.95 -----------------------------------
+Item fuer Einstellungsdialog - Drucker/Zusaetze
+--------------------------------------------------------- */
+#ifdef FN_PARAM_ADDPRINTER
+
+class SwAddPrinterItem : public SfxPoolItem
+{
+ friend SwAddPrinterTabPage;
+
+ String sFaxName;
+ UINT16 nPrintPostIts;
+
+ BOOL bPrintGraphic :1,
+ bPrintTable :1,
+ bPrintDrawing :1,
+ bPrintLeftPage :1,
+ bPrintRightPage :1,
+ bPrintControl :1,
+ bPrintReverse :1,
+ bPaperFromSetup :1,
+ bPrintProspect :1,
+ bPrintPageBackground:1,
+ bPrintBlackFont :1,
+ bPrintSingleJobs :1;
+
+public:
+ TYPEINFO();
+ SwAddPrinterItem( USHORT nWhich = FN_PARAM_ADDPRINTER );
+ SwAddPrinterItem( USHORT nWhich, SwPrintOptions* pPrtOpt );
+ SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem);
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ void SetPrintOptions( SwPrintOptions* pPrtOpt ) const;
+ const String &GetFax() const { return sFaxName; }
+ void SetFax( const String& rFax) { sFaxName = rFax; }
+
+
+ BOOL IsPrintProspect() const { return bPrintProspect; }
+ void SetPrintProspect(BOOL bFlag ){ bPrintProspect = bFlag; }
+ BOOL IsPrintGraphic () const { return bPrintGraphic; }
+ BOOL IsPrintTable () const { return bPrintTable; }
+ BOOL IsPrintDraw () const { return bPrintDrawing; }
+ BOOL IsPrintControl () const { return bPrintControl; }
+ BOOL IsPrintLeftPage () const { return bPrintLeftPage; }
+ BOOL IsPrintRightPage() const { return bPrintRightPage; }
+ BOOL IsPrintReverse () const { return bPrintReverse; }
+ BOOL IsPaperFromSetup() const { return bPaperFromSetup; }
+ BOOL IsPrintPageBackground() const { return bPrintPageBackground; }
+ BOOL IsPrintBlackFont() const { return bPrintBlackFont; }
+ BOOL IsPrintSingleJobs() const { return bPrintSingleJobs; }
+ UINT16 GetPrintPostIts () const { return nPrintPostIts; }
+
+};
+#endif
+
+
+/*--------OS 12.01.95 -----------------------------------
+Item fuer Einstellungsdialog, ShadowCursorSeite
+--------------------------------------------------------- */
+#ifdef FN_PARAM_SHADOWCURSOR
+
+class SwShadowCursorItem : public SfxPoolItem
+{
+ Color aColor;
+ BYTE eMode;
+ BOOL bOn;
+public:
+ TYPEINFO();
+ SwShadowCursorItem( USHORT nWhich = FN_PARAM_SHADOWCURSOR );
+ SwShadowCursorItem( const SwShadowCursorItem& rElemItem );
+ SwShadowCursorItem( const SwViewOption& rVOpt, USHORT nWhich );
+
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ void operator=( const SwShadowCursorItem& );
+
+ void FillViewOptions( SwViewOption& rVOpt) const;
+
+ const Color& GetColor() const { return aColor; }
+ BYTE GetMode() const { return eMode; }
+ BOOL IsOn() const { return bOn; }
+
+ void SetColor( const Color& rCol ) { aColor = rCol; }
+ void SetMode( BYTE eM ) { eMode = eM; }
+ void SetOn( BOOL bFlag ) { bOn = bFlag; }
+};
+#endif
+
+#ifndef PRODUCT
+/*--------OS 12.01.95 -----------------------------------
+Item fuer Einstellungsdialog - Testeinstellungen
+--------------------------------------------------------- */
+class SwTestItem : public SfxPoolItem
+{
+ friend SwModule;
+ friend SwWriterApp;
+ friend SwTestTabPage;
+ friend SwDocEditDialog;
+
+ BOOL bTest1:1;
+ BOOL bTest2:1;
+ BOOL bTest3:1;
+ BOOL bTest4:1;
+ BOOL bTest5:1;
+ BOOL bTest6:1;
+ BOOL bTest7:1;
+ BOOL bTest8:1;
+ BOOL bTest9:1;
+ BOOL bTest10:1;
+
+public:
+ SwTestItem( USHORT nWhich):
+ SfxPoolItem(nWhich){};
+ SwTestItem( const SwTestItem& pTestItem);
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+
+};
+#endif
+
+#endif
+
+
diff --git a/sw/source/ui/inc/changedb.hxx b/sw/source/ui/inc/changedb.hxx
new file mode 100644
index 000000000000..6ffe3451eaf3
--- /dev/null
+++ b/sw/source/ui/inc/changedb.hxx
@@ -0,0 +1,135 @@
+/*************************************************************************
+ *
+ * $RCSfile: changedb.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CHANGEDB_HXX
+#define _CHANGEDB_HXX
+
+
+#ifndef _BITMAP_HXX //autogen
+#include <vcl/bitmap.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+#ifndef _DBTREE_HXX
+#include "dbtree.hxx"
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+class SwFldMgr;
+class SwView;
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Datenbank an Feldern austauschen
+ --------------------------------------------------------------------*/
+
+class SwChangeDBDlg: public SvxStandardDialog
+{
+ FixedInfo aDescFT;
+ FixedText aUsedDBFT;
+ FixedText aAvailDBFT;
+ SvTreeListBox aUsedDBTLB;
+ SwDBTreeList aAvailDBTLB;
+ GroupBox aDBListGB;
+ FixedText aDocDBTextFT;
+ FixedText aDocDBNameFT;
+ OKButton aOKBT;
+ CancelButton aCancelBT;
+ HelpButton aHelpBT;
+// PushButton aChangeBT;
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+ Image aDBBMP;
+ Image aTableBMP;
+
+ SwWrtShell *pSh;
+ SwFldMgr *pMgr;
+
+ DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox = 0);
+ DECL_LINK(ButtonHdl, Button* pBtn);
+
+ virtual void Apply();
+ void UpdateFlds();
+ void FillDBPopup();
+ SvLBoxEntry* Insert(const String& rDBName);
+ void ShowDBName(const String& rDBName);
+
+public:
+ SwChangeDBDlg(SwView& rVw);
+ ~SwChangeDBDlg();
+};
+
+#endif
diff --git a/sw/source/ui/inc/chartins.hxx b/sw/source/ui/inc/chartins.hxx
new file mode 100644
index 000000000000..fad5a97de0ca
--- /dev/null
+++ b/sw/source/ui/inc/chartins.hxx
@@ -0,0 +1,160 @@
+/*************************************************************************
+ *
+ * $RCSfile: chartins.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/*
+/*
+/* (C) 1995 - 2000 StarDivision GmbH, Hamburg, Germany
+/* $Author: hr $ $Date: 2000-09-18 17:14:39 $ $Revision: 1.1.1.1 $
+/* $Logfile: T:/sw/source/ui/inc/chartins.hxv $ $Workfile: CHARTINS.HXX $
+/*
+/* Dialog Einfuegen StarChart
+/*
+/*------------------------------------------------------------------ */
+
+#ifndef _CHARTINS_HXX
+#define _CHARTINS_HXX
+
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+
+#ifdef _CHARTINS_CXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#include "autoedit.hxx"
+
+class SfxItemSet;
+class SwWrtShell;
+class SchMemChart;
+
+//========================================================================
+
+class SwInsertChartDlg : public SfxModelessDialog
+{
+ FixedText aTextFt;
+ FixedText aRangeFt;
+ AutoEdit aRangeEd;
+ HelpButton aHelp;
+ CancelButton aCancel;
+ FixedText aHLine;
+ PushButton aPrev;
+ PushButton aNext;
+ PushButton aFinish;
+ CheckBox aFirstRow;
+ CheckBox aFirstCol;
+ GroupBox aGroup1;
+ SchMemChart * pChartData;
+ ModalDialog* pChartDlg;
+ SfxItemSet* pInItemSet;
+ SfxItemSet* pOutItemSet;
+ SwWrtShell* pWrtShell;
+ String aAktTableName;
+ BOOL bUpdateChartData;
+ BOOL bChartInserted;
+
+ void UpdateData();
+ virtual BOOL Close();
+
+public:
+ SwInsertChartDlg( SfxBindings*, SfxChildWindow*,
+ Window *pParent, SwWrtShell * );
+ ~SwInsertChartDlg();
+
+ DECL_LINK( SelTblCellsNotify, SwWrtShell * );
+ DECL_LINK( ModifyHdl, Edit* );
+ DECL_LINK( NextHdl, Button* );
+ DECL_LINK( FinishHdl, Button* );
+ DECL_LINK( CloseHdl, Button* );
+ DECL_LINK( ClickHdl, CheckBox* );
+};
+#endif
+
+class SwInsertChartChild : public SfxChildWindow
+{
+public:
+ SwInsertChartChild( Window* ,
+ USHORT nId,
+ SfxBindings*,
+ SfxChildWinInfo* );
+ SFX_DECL_CHILDWINDOW( SwInsertChartChild );
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/chldwrap.hxx b/sw/source/ui/inc/chldwrap.hxx
new file mode 100644
index 000000000000..3bc8e98805c8
--- /dev/null
+++ b/sw/source/ui/inc/chldwrap.hxx
@@ -0,0 +1,94 @@
+/*************************************************************************
+ *
+ * $RCSfile: chldwrap.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CHLDWRAP_HXX
+#define _CHLDWRAP_HXX
+
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+
+#ifndef _SV_TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+
+class SwDocShell;
+
+class SwChildWinWrapper : public SfxChildWindow
+{
+ Timer aUpdateTimer;
+ SwDocShell* pDocSh;
+
+ DECL_LINK( UpdateHdl, void* );
+
+ // Implementation in fldtdlg.cxx
+protected:
+ SwChildWinWrapper(Window *pParentWindow, USHORT nId);
+
+public:
+ virtual BOOL ReInitDlg(SwDocShell *pDocSh);
+
+ inline SwDocShell* GetOldDocShell() { return pDocSh; }
+ inline void SetOldDocShell(SwDocShell *pDcSh) { pDocSh = pDcSh; }
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/chrdlg.hxx b/sw/source/ui/inc/chrdlg.hxx
new file mode 100644
index 000000000000..8fdb151ba12d
--- /dev/null
+++ b/sw/source/ui/inc/chrdlg.hxx
@@ -0,0 +1,157 @@
+/*************************************************************************
+ *
+ * $RCSfile: chrdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWCHARDLG_HXX
+#define _SWCHARDLG_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+class FontList;
+class SwView;
+class SvxMacroItem;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Tabdialog Traeger der TabPages
+ --------------------------------------------------------------------*/
+
+class SwCharDlg: public SfxTabDialog
+{
+ SwView& rView;
+ BOOL bIsDrwTxtMode;
+
+public:
+ SwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet,
+ const String* pFmtStr = 0, BOOL bIsDrwTxtDlg = FALSE);
+
+ ~SwCharDlg();
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+};
+
+/*-----------------14.08.96 11.03-------------------
+ Beschreibung: Tabpage fuer URL-Attribut
+--------------------------------------------------*/
+
+class SwCharURLPage : public SfxTabPage
+{
+ GroupBox aURLGB;
+
+ FixedText aURLFT;
+ Edit aURLED;
+ FixedText aTextFT;
+ Edit aTextED;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aTargetFrmFT;
+ ComboBox aTargetFrmLB;
+ PushButton aURLPB;
+ PushButton aEventPB;
+ GroupBox aStyleGB;
+ FixedText aVisitedFT;
+ ListBox aVisitedLB;
+ FixedText aNotVisitedFT;
+ ListBox aNotVisitedLB;
+
+ SvxMacroItem* pINetItem;
+ BOOL bModified;
+
+ DECL_LINK( InsertFileHdl, PushButton * );
+ DECL_LINK( EventHdl, PushButton * );
+
+public:
+ SwCharURLPage( Window* pParent,
+ const SfxItemSet& rSet );
+
+ ~SwCharURLPage();
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/cnttab.hxx b/sw/source/ui/inc/cnttab.hxx
new file mode 100644
index 000000000000..e8a301214f80
--- /dev/null
+++ b/sw/source/ui/inc/cnttab.hxx
@@ -0,0 +1,581 @@
+/*************************************************************************
+ *
+ * $RCSfile: cnttab.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CNTTAB_HXX
+#define _CNTTAB_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#include "tox.hxx"
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _TOXMGR_HXX
+#include <toxmgr.hxx>
+#endif
+#ifndef _SVX_CHECKLBX_HXX //autogen wg. SvxCheckListBox
+#include <svx/checklbx.hxx>
+#endif
+#ifndef _SV_RESARY_HXX //autogen wg. ResStringArray
+#include <vcl/resary.hxx>
+#endif
+#ifndef _SVTREEBOX_HXX
+#include <svtools/svtreebx.hxx>
+#endif
+#ifndef _SV_MENUBTN_HXX
+#include <vcl/menubtn.hxx>
+#endif
+
+class SwWrtShell;
+class SwTOXMgr;
+/* -----------------14.06.99 12:12-------------------
+
+ --------------------------------------------------*/
+struct CurTOXType
+{
+ TOXTypes eType;
+ USHORT nIndex; //for TOX_USER only
+
+ BOOL operator==(const CurTOXType aCmp)
+ {
+ return eType == aCmp.eType && nIndex == aCmp.nIndex;
+ }
+ USHORT GetFlatIndex() const;
+
+};
+//-----------------------------------------------------------------------------
+#if 0
+class IdxExampleResource : public Resource
+{
+ ResStringArray aTextArray;
+
+public:
+ IdxExampleResource(const ResId& rResId);
+
+ ResStringArray& GetTextArray() {return aTextArray;}
+};
+#endif
+
+//-----------------------------------------------------------------------------
+class SwOneExampleFrame;
+struct SwIndexSections_Impl;
+
+class SwMultiTOXTabDialog : public SfxTabDialog
+{
+ Window aExampleContainerWIN;
+ Window aExampleWIN;
+ CheckBox aShowExampleCB;
+ SwTOXMgr* pMgr;
+ SwWrtShell& rSh;
+
+ SwOneExampleFrame* pExampleFrame;
+
+ SwTOXDescription** pDescArr; //
+ SwForm** pFormArr; //
+ SwIndexSections_Impl** pxIndexSectionsArr;
+
+ CurTOXType eCurrentTOXType;
+
+ String sUserDefinedIndex;
+ USHORT nTypeCount;
+ USHORT nInitialTOXType;
+
+ BOOL bEditTOX;
+ BOOL bExampleCreated;
+ BOOL bGlobalFlag;
+
+ virtual short Ok();
+ SwTOXDescription* CreateTOXDescFromTOXBase(const SwTOXBase*pCurTOX);
+
+ DECL_LINK(CreateExample_Hdl, void* );
+ DECL_LINK(ShowPreviewHdl, CheckBox*);
+
+public:
+ SwMultiTOXTabDialog(Window* pParent, const SfxItemSet& rSet,
+ SwWrtShell &rShell,
+ const SwTOXBase* pCurTOX, USHORT nToxType = USHRT_MAX,
+ BOOL bGlobal = FALSE);
+ ~SwMultiTOXTabDialog();
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+
+ SwForm* GetForm(CurTOXType eType);
+
+ CurTOXType GetCurrentTOXType() const { return eCurrentTOXType;}
+ void SetCurrentTOXType(CurTOXType eSet)
+ {
+ eCurrentTOXType = eSet;
+ }
+
+ void UpdateExample();
+ BOOL IsTOXEditMode() const { return bEditTOX;}
+// const SwTOXBase* GetCurTOX() const;
+
+ SwWrtShell& GetWrtShell() {return rSh;}
+
+ SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes);
+ void CreateOrUpdateExample(
+ USHORT nTOXIndex, USHORT nPage = 0, USHORT nCurLevel = USHRT_MAX);
+
+ static BOOL IsNoNum(SwWrtShell& rSh, const String& rName);
+};
+
+/* -----------------14.06.99 12:17-------------------
+
+ --------------------------------------------------*/
+class SwOLENames : public Resource
+{
+ ResStringArray aNamesAry;
+public:
+ SwOLENames(const ResId& rResId) :
+ Resource(rResId),
+ aNamesAry(ResId(1)){FreeResource();}
+
+ ResStringArray& GetNames() { return aNamesAry;}
+
+};
+/* -----------------14.07.99 12:17-------------------
+
+ --------------------------------------------------*/
+class SwTOXSelectTabPage : public SfxTabPage
+{
+ FixedText aTypeFT;
+ ListBox aTypeLB;
+ CheckBox aReadOnlyCB;
+ FixedText aTitleFT;
+ Edit aTitleED;
+ GroupBox aTypeTitleGB;
+
+ ListBox aAreaLB;
+ FixedText aLevelFT; //content, user
+ NumericField aLevelNF; //content, user
+ GroupBox aAreaGB;
+
+ //content
+ CheckBox aFromHeadingsCB;
+ PushButton aChapterDlgPB;
+ CheckBox aAddStylesCB;
+ PushButton aAddStylesPB;
+ //user
+// CheckBox aFromStylesCB; -> aAddStylesCB;
+// PushButton aFromStylesPB; -> aAddStylesPB;
+ CheckBox aFromTablesCB;
+ CheckBox aFromFramesCB;
+ CheckBox aFromGraphicsCB;
+ CheckBox aFromOLECB;
+ CheckBox aLevelFromChapterCB;
+
+ //illustration + table
+ RadioButton aFromCaptionsRB;
+ RadioButton aFromObjectNamesRB;
+
+ //illustration and tables
+ FixedText aCaptionSequenceFT;
+ ListBox aCaptionSequenceLB;
+ FixedText aDisplayTypeFT;
+ ListBox aDisplayTypeLB;
+
+ //all but illustration and table
+ CheckBox aTOXMarksCB;
+
+ //
+ GroupBox aCreateFromGB; // content, user, illustration
+
+ //index only
+ CheckBox aCollectSameCB;
+ CheckBox aUseFFCB;
+ CheckBox aUseDashCB;
+ CheckBox aCaseSensitiveCB;
+ CheckBox aInitialCapsCB;
+ CheckBox aKeyAsEntryCB;
+ CheckBox aFromFileCB;
+ MenuButton aAutoMarkPB;
+// PushButton aCreateAutoMarkPB;
+// PushButton aEditAutoMarkPB;
+ GroupBox aIdxOptionsGB; // index only
+
+ // object only
+ SwOLENames aFromNames;
+ SvxCheckListBox aFromObjCLB;
+ GroupBox aFromObjGB;
+
+ CheckBox aSequenceCB;
+ FixedText aBracketFT;
+ ListBox aBracketLB;
+ GroupBox aAuthorityFormatGB;
+
+ Point aCBLeftPos1;
+ Point aCBLeftPos2;
+ Point aCBLeftPos3;
+
+ String aStyleArr[MAXLEVEL];
+ String sAutoMarkURL;
+ String sAutoMarkType;
+ String sAddStyleUser;
+ String sAddStyleContent;
+
+ BOOL bFirstCall;
+
+ DECL_LINK(TOXTypeHdl, ListBox* );
+ DECL_LINK(TOXAreaHdl, ListBox* );
+ DECL_LINK(ChapterHdl, PushButton* );
+ DECL_LINK(AddStylesHdl, PushButton* );
+// DECL_LINK(AutoMarkHdl, PushButton* );
+// DECL_LINK(CreateEditAutoMarkHdl,PushButton* );
+ DECL_LINK(MenuEnableHdl, Menu*);
+ DECL_LINK(MenuExecuteHdl, Menu*);
+
+ DECL_LINK(CheckBoxHdl, CheckBox* );
+ DECL_LINK(RadioButtonHdl, RadioButton* );
+ DECL_LINK(ModifyHdl, void*);
+
+ void ApplyTOXDescription();
+ void FillTOXDescription();
+public:
+ SwTOXSelectTabPage(Window* pParent, const SfxItemSet& rAttrSet);
+ ~SwTOXSelectTabPage();
+
+ virtual BOOL FillItemSet( SfxItemSet& );
+ virtual void Reset( const SfxItemSet& );
+ virtual void ActivatePage( const SfxItemSet& );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+ void SelectType(TOXTypes eSet); //preset TOXType, GlobalDoc
+ void SetWrtShell(SwWrtShell& rSh);
+};
+/* -----------------16.06.99 08:33-------------------
+
+ --------------------------------------------------*/
+
+DECLARE_LIST(TOXControlList, Control*);
+class SwTOXEdit;
+class SwTOXButton;
+class SwTOXEntryTabPage;
+class SwTokenWindow : public Window
+{
+ ImageButton aLeftScrollWin;
+ Window aCtrlParentWin;
+ ImageButton aRightScrollWin;
+ TOXControlList aControlList;
+ SwForm* pForm;
+ USHORT nLevel;
+ BOOL bValid;
+ String aButtonTexts[TOKEN_END]; // Text of the buttons
+ String aButtonHelpTexts[TOKEN_END]; // QuickHelpText of the buttons
+ String sCharStyle;
+ Link aButtonSelectedHdl;
+ Control* pActiveCtrl;
+ Link aModifyHdl;
+
+ SwTOXEntryTabPage* m_pParent;
+
+ DECL_LINK(EditResize, Edit*);
+ DECL_LINK(NextItemHdl, SwTOXEdit* );
+ DECL_LINK(TbxFocusHdl, SwTOXEdit* );
+ DECL_LINK(NextItemBtnHdl, SwTOXButton* );
+ DECL_LINK(TbxFocusBtnHdl, SwTOXButton* );
+ DECL_LINK(ScrollHdl, ImageButton* );
+
+ void SetActiveControl(Control* pSet);
+
+ Control* InsertItem(const String& rText, const SwFormToken& aToken);
+ void AdjustPositions();
+ void AdjustScrolling();
+ void MoveControls(long nOffset);
+
+public:
+ SwTokenWindow(SwTOXEntryTabPage* pParent, const ResId& rResId);
+ ~SwTokenWindow();
+
+ void SetForm(SwForm& rForm, USHORT nLevel);
+ USHORT GetLastLevel()const {return nLevel;};
+
+ BOOL IsValid() const {return bValid;}
+ void Invalidate() {bValid = FALSE;}
+
+ String GetPattern() const;
+
+ void SetButtonSelectedHdl(const Link& rLink)
+ { aButtonSelectedHdl = rLink;}
+
+ void SetModifyHdl(const Link& rLink){aModifyHdl = rLink;}
+
+ Control* GetActiveControl()
+ { return pActiveCtrl;}
+
+ void InsertAtSelection(const String& rText, const SwFormToken& aToken);
+ void RemoveControl(SwTOXButton* pDel, BOOL bInternalCall = FALSE);
+
+ BOOL Contains(FormTokenType) const;
+
+ BOOL DetermineLinkStart();
+
+ //helper for pattern buttons and edits
+ BOOL CreateQuickHelp(Control* pCtrl,
+ const SwFormToken& rToken, const HelpEvent& );
+
+ virtual void Resize();
+};
+/* -----------------------------23.12.99 14:16--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwTOXEntryTabPage;
+class SwIdxTreeListBox : public SvTreeListBox
+{
+ SwTOXEntryTabPage* pParent;
+
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+public:
+ SwIdxTreeListBox(SwTOXEntryTabPage* pPar, const ResId& rResId);
+};
+
+/* -----------------16.06.99 12:49-------------------
+
+ --------------------------------------------------*/
+class SwTOXEntryTabPage : public SfxTabPage
+{
+ SwIdxTreeListBox aLevelLB;
+ FixedText aLevelFT;
+
+ SwTokenWindow aTokenWIN;
+ PushButton aAllLevelsPB;
+
+ PushButton aEntryNoPB;
+ PushButton aEntryPB;
+ PushButton aTabPB;
+ PushButton aChapterInfoPB;
+ PushButton aPageNoPB;
+ PushButton aHyperLinkPB;
+
+ ListBox aAuthFieldsLB;
+ PushButton aAuthInsertPB;
+ PushButton aAuthRemovePB;
+
+ FixedText aCharStyleFT;
+ ListBox aCharStyleLB; // character style of the current token
+ PushButton aEditStylePB;
+
+ FixedText aChapterEntryFT;
+ ListBox aChapterEntryLB; // type of chapter info
+// FixedText aSortingFT;
+// ListBox aSortingLB;
+
+ FixedText aFillCharFT;
+ ComboBox aFillCharCB; // fill char for tab stop
+ FixedText aTabPosFT;
+ MetricField aTabPosMF; // tab stop position
+ CheckBox aAutoRightCB;
+ GroupBox aEntryGB;
+
+ CheckBox aRelToStyleCB; // position relative to the right margin of the para style
+ FixedText aMainEntryStyleFT;
+ ListBox aMainEntryStyleLB; // character style of main entries in indexes
+ CheckBox aAlphaDelimCB;
+ CheckBox aCommaSeparatedCB;
+ GroupBox aFormatGB;
+
+ RadioButton aSortDocPosRB;
+ RadioButton aSortContentRB;
+ GroupBox aSortingGB;
+
+ FixedText aFirstKeyFT;
+ ListBox aFirstKeyLB;
+ ImageRadioButton aFirstSortUpRB;
+ ImageRadioButton aFirstSortDownRB;
+
+ FixedText aSecondKeyFT;
+ ListBox aSecondKeyLB;
+ ImageRadioButton aSecondSortUpRB;
+ ImageRadioButton aSecondSortDownRB;
+
+ FixedText aThirdKeyFT;
+ ListBox aThirdKeyLB;
+ ImageRadioButton aThirdSortUpRB;
+ ImageRadioButton aThirdSortDownRB;
+
+ GroupBox aSortKeyGB;
+
+ String sDelimStr;
+ String sLevelStr;
+ String sAuthTypeStr;
+
+ String sNoCharStyle;
+ String sNoCharSortKey;
+ Point aButtonPositions[5];
+ SwForm* pCurrentForm;
+
+ Point aRelToStylePos;
+ Point aRelToStyleIdxPos;
+ Size aLevelGBSize;
+
+ CurTOXType aLastTOXType;
+ BOOL bInLevelHdl;
+
+ DECL_LINK(StyleSelectHdl, ListBox*);
+ DECL_LINK(EditStyleHdl, PushButton*);
+ DECL_LINK(InsertTokenHdl, PushButton*);
+ DECL_LINK(LevelHdl, SvTreeListBox*);
+ DECL_LINK(AutoRightHdl, CheckBox*);
+ DECL_LINK(TokenSelectedHdl, SwFormToken*);
+ DECL_LINK(TabPosHdl, MetricField*);
+ DECL_LINK(FillCharHdl, ComboBox*);
+ DECL_LINK(RemoveInsertAuthHdl, PushButton*);
+ DECL_LINK(SortKeyHdl, RadioButton*);
+ DECL_LINK(ChapterInfoHdl, ListBox*);
+ DECL_LINK(AllLevelsHdl, PushButton*);
+
+ void EnableButtons();
+ void WriteBackLevel();
+ void UpdateDescriptor();
+ DECL_LINK(ModifyHdl, void*);
+
+public:
+ SwTOXEntryTabPage(Window* pParent, const SfxItemSet& rAttrSet);
+ ~SwTOXEntryTabPage();
+
+ virtual BOOL FillItemSet( SfxItemSet& );
+ virtual void Reset( const SfxItemSet& );
+ virtual void ActivatePage( const SfxItemSet& );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+ void SetWrtShell(SwWrtShell& rSh);
+
+ String GetLevelHelp(USHORT nLevel) const;
+
+ void PreTokenButtonRemoved(const SwFormToken& rToken);
+};
+/* -----------------05.07.99 13:00-------------------
+
+ --------------------------------------------------*/
+class SwTOXStylesTabPage : public SfxTabPage
+{
+ FixedText aLevelFT2;
+ ListBox aLevelLB;
+ FixedText aTemplateFT;
+ ListBox aParaLayLB;
+ PushButton aStdBT;
+ PushButton aAssignBT;
+ PushButton aEditStyleBT;
+ GroupBox aFormatGB;
+
+ SwForm* pCurrentForm;
+// void UpdatePattern();
+
+ DECL_LINK( EditStyleHdl, Button *);
+ DECL_LINK( StdHdl, Button * );
+ DECL_LINK( EnableSelectHdl, ListBox * );
+ DECL_LINK( DoubleClickHdl, Button * );
+ DECL_LINK( AssignHdl, Button * );
+ DECL_LINK( ModifyHdl, void*);
+
+ SwForm& GetForm()
+ {
+ SwMultiTOXTabDialog* pDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ return *pDlg->GetForm(pDlg->GetCurrentTOXType());
+ }
+public:
+ SwTOXStylesTabPage(Window* pParent, const SfxItemSet& rAttrSet);
+ ~SwTOXStylesTabPage();
+
+ virtual BOOL FillItemSet( SfxItemSet& );
+ virtual void Reset( const SfxItemSet& );
+ virtual void ActivatePage( const SfxItemSet& );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+};
+
+#endif // _CNTTAB_HXX
+
diff --git a/sw/source/ui/inc/colex.hxx b/sw/source/ui/inc/colex.hxx
new file mode 100644
index 000000000000..1424de2de112
--- /dev/null
+++ b/sw/source/ui/inc/colex.hxx
@@ -0,0 +1,119 @@
+/*************************************************************************
+ *
+ * $RCSfile: colex.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _COLEX_HXX
+#define _COLEX_HXX
+
+#ifndef _SVX_PAGECTRL_HXX //autogen
+#include <svx/pagectrl.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+
+#include "frmatr.hxx"
+
+class SwColMgr;
+class SfxItemSet;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwColExample : public SvxPageWindow
+{
+private:
+ SwColMgr* pColMgr;
+protected:
+ virtual void DrawPage( const Point& rPoint,
+ const BOOL bSecond,
+ const BOOL bEnabled );
+
+public:
+ SwColExample(Window* pPar, const ResId& rResId );
+
+ void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr = 0 );
+
+};
+
+/*-----------------25.10.96 08.23-------------------
+
+--------------------------------------------------*/
+class SwColumnOnlyExample : public Window
+{
+private:
+ Size aWinSize;
+
+ Size aFrmSize;
+ SwFmtCol aCols;
+ long nDistance;
+
+protected:
+ virtual void Paint( const Rectangle& rRect );
+
+public:
+ SwColumnOnlyExample( Window* , const ResId& );
+
+ void SetColumns(const SwFmtCol& rCol) { aCols = rCol; }
+ void SetFrameSize(const Size& rS, long nDist);
+
+};
+
+#endif // _COLEX_HXX
diff --git a/sw/source/ui/inc/colmgr.hxx b/sw/source/ui/inc/colmgr.hxx
new file mode 100644
index 000000000000..b7041cfc1381
--- /dev/null
+++ b/sw/source/ui/inc/colmgr.hxx
@@ -0,0 +1,166 @@
+/*************************************************************************
+ *
+ * $RCSfile: colmgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _COLMGR_HXX
+#define _COLMGR_HXX
+
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+
+void FitToActualSize(SwFmtCol& rCol, USHORT nWidth);
+
+class SwColMgr
+{
+public:
+ // lActWidth wird aus den Edits des Seitendialogs
+ // direkt uebergeben
+ SwColMgr(const SfxItemSet &rSet, USHORT nActWidth = USHRT_MAX);
+ ~SwColMgr();
+
+
+ inline USHORT GetCount() const;
+ void SetCount(USHORT nCount, USHORT nGutterWidth);
+ USHORT GetGutterWidth(USHORT nPos = USHRT_MAX) const;
+ void SetGutterWidth(USHORT nWidth, USHORT nPos = USHRT_MAX);
+
+ USHORT GetColWidth(USHORT nIdx) const;
+ void SetColWidth(USHORT nIdx, USHORT nWidth);
+
+ inline BOOL IsAutoWidth() const;
+ void SetAutoWidth(BOOL bOn = TRUE, USHORT lGutterWidth = 0);
+
+ inline BOOL HasLine() const;
+ inline void SetNoLine();
+
+ inline void SetLineWidthAndColor(ULONG nWidth, const Color& rCol);
+ inline ULONG GetLineWidth() const;
+ inline const Color& GetLineColor() const;
+
+ inline SwColLineAdj GetAdjust() const;
+ inline void SetAdjust(SwColLineAdj);
+
+ short GetLineHeightPercent() const;
+ void SetLineHeightPercent(short nPercent);
+
+ inline void NoCols();
+ void Update();
+
+ const SwFmtCol& GetColumns() const { return aFmtCol; }
+
+ void SetActualWidth(USHORT nW);
+ USHORT GetActualSize() const { return nWidth; }
+
+
+private:
+
+ SwFmtCol aFmtCol;
+ USHORT nWidth;
+};
+
+// INLINE METHODE --------------------------------------------------------
+
+inline USHORT SwColMgr::GetCount() const
+{
+ return aFmtCol.GetNumCols();
+}
+inline void SwColMgr::SetLineWidthAndColor(ULONG nWidth, const Color& rCol)
+{
+ aFmtCol.SetLineWidth(nWidth);
+ aFmtCol.SetLineColor(rCol);
+}
+inline ULONG SwColMgr::GetLineWidth() const
+{
+ return aFmtCol.GetLineWidth();
+}
+inline const Color& SwColMgr::GetLineColor() const
+{
+ return aFmtCol.GetLineColor();
+}
+inline SwColLineAdj SwColMgr::GetAdjust() const
+{
+ return aFmtCol.GetLineAdj();
+}
+inline void SwColMgr::SetAdjust(SwColLineAdj eAdj)
+{
+ aFmtCol.SetLineAdj(eAdj);
+}
+inline BOOL SwColMgr::IsAutoWidth() const
+{
+ return aFmtCol.IsOrtho();
+}
+inline void SwColMgr::SetAutoWidth(BOOL bOn, USHORT nGutterWidth)
+{
+ aFmtCol.SetOrtho(bOn, nGutterWidth, nWidth);
+}
+inline void SwColMgr::NoCols()
+{
+ aFmtCol.GetColumns().DeleteAndDestroy(0, aFmtCol.GetColumns().Count());
+}
+inline BOOL SwColMgr::HasLine() const
+{
+ return GetAdjust() != COLADJ_NONE;
+}
+inline void SwColMgr::SetNoLine()
+{
+ SetAdjust(COLADJ_NONE);
+}
+
+#endif
diff --git a/sw/source/ui/inc/column.hxx b/sw/source/ui/inc/column.hxx
new file mode 100644
index 000000000000..57934a843c92
--- /dev/null
+++ b/sw/source/ui/inc/column.hxx
@@ -0,0 +1,266 @@
+/*************************************************************************
+ *
+ * $RCSfile: column.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _COLUMN_HXX
+#define _COLUMN_HXX
+
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _IMAGE_HXX //autogen
+#include <vcl/image.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+#ifndef _CTRLBOX_HXX
+#include <svtools/ctrlbox.hxx>
+#endif
+#ifndef _VALUESET_HXX //autogen
+#include <svtools/valueset.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _FMTCLBL_HXX
+#include <fmtclbl.hxx>
+#endif
+#ifndef _COLEX_HXX
+#include <colex.hxx>
+#endif
+#ifndef _PRCNTFLD_HXX
+#include <prcntfld.hxx>
+#endif
+
+const nMaxCols = 99;
+class SwColMgr;
+class SwWrtShell;
+class SwColumnPage;
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwColumnDlg : public SfxModalDialog
+{
+ OKButton aOK;
+ CancelButton aCancel;
+ HelpButton aHelp;
+
+ FixedText aApplyToFT;
+ ListBox aApplyToLB;
+
+ SwWrtShell& rWrtShell;
+ SwColumnPage* pTabPage;
+ SfxItemSet* pPageSet;
+ SfxItemSet* pSectionSet;
+ SfxItemSet* pSelectionSet;
+ SfxItemSet* pFrameSet;
+
+ long nOldSelection;
+ long nSelectionWidth;
+ long nPageWidth;
+
+ BOOL bPageChanged : 1;
+ BOOL bSectionChanged : 1;
+ BOOL bSelSectionChanged : 1;
+ BOOL bFrameChanged : 1;
+
+
+ DECL_LINK(ObjectHdl, ListBox*);
+ DECL_LINK(OkHdl, OKButton*);
+
+public:
+ SwColumnDlg(Window* pParent, SwWrtShell& rSh);
+ virtual ~SwColumnDlg();
+
+ SwWrtShell& GetWrtShell() { return rWrtShell; }
+};
+
+/*-----------------07.03.97 08.26-------------------
+
+--------------------------------------------------*/
+class ColumnValueSet : public ValueSet
+{
+ public:
+ ColumnValueSet(Window* pParent, const ResId& rResId) :
+ ValueSet(pParent, rResId){}
+ ~ColumnValueSet();
+
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Spaltendialog jetzt als TabPage
+ --------------------------------------------------------------------*/
+class SwColumnPage : public SfxTabPage
+{
+ FixedText aClNrLbl;
+ NumericField aCLNrEdt;
+ ColumnValueSet aDefaultVS;
+ ImageList aPreColsIL;
+ CheckBox aBalanceColsCB;
+ GroupBox aCLGroup;
+
+ ImageButton aBtnUp;
+ FixedText aWidthFT;
+ FixedText aDistFT;
+ FixedText aLbl1;
+ PercentField aEd1;
+ PercentField aDistEd1;
+ FixedText aLbl2;
+ PercentField aEd2;
+ PercentField aDistEd2;
+ FixedText aLbl3;
+ PercentField aEd3;
+ ImageButton aBtnDown;
+ CheckBox aAutoWidthBox;
+
+ GroupBox aLayoutGrp;
+
+ FixedText aLineTypeLbl;
+ LineListBox aLineTypeDLB;
+ FixedText aLineHeightLbl;
+ MetricField aLineHeightEdit;
+ FixedText aLinePosLbl;
+ ListBox aLinePosDLB;
+ GroupBox aLineTypeGrp;
+
+ // Example
+ SwColExample aPgeExampleWN;
+ SwColumnOnlyExample aFrmExampleWN;
+ GroupBox aExampleGB;
+
+ SwColMgr* pColMgr;
+
+ USHORT nFirstVis;
+ USHORT nCols;
+ long nColWidth[nMaxCols];
+ long nColDist[nMaxCols];
+ USHORT nMinWidth;
+ PercentField *pModifiedField;
+ BOOL bFormat;
+ BOOL bFrm;
+ BOOL bHtmlMode;
+ BOOL bLockUpdate;
+
+ // Handler
+ DECL_LINK( ColModify, NumericField * );
+ DECL_LINK( GapModify, PercentField * );
+ DECL_LINK( EdModify, PercentField * );
+ DECL_LINK( AutoWidthHdl, CheckBox * );
+ DECL_LINK( Timeout, Timer * );
+ DECL_LINK( SetDefaultsHdl, ValueSet * );
+
+ DECL_LINK( Up, Button * );
+ DECL_LINK( Down, Button * );
+ void Apply(Button *);
+ DECL_LINK( UpdateColMgr, void* );
+
+ void Update();
+ void UpdateCols();
+ void Init();
+ void ResetColWidth();
+ void SetLabels( USHORT nVis );
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet *pSet);
+
+ SwColumnPage(Window *pParent, const SfxItemSet &rSet);
+
+public:
+ ~SwColumnPage();
+
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+
+ void SetFrmMode(BOOL bMod);
+ void SetPageWidth(long nPageWidth);
+
+ void SetFormatUsed(BOOL bFmt) { bFormat = bFmt; }
+
+ void ShowBalance(BOOL bShow) {aBalanceColsCB.Show(bShow);}
+
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/conarc.hxx b/sw/source/ui/inc/conarc.hxx
new file mode 100644
index 000000000000..1c7b0c117540
--- /dev/null
+++ b/sw/source/ui/inc/conarc.hxx
@@ -0,0 +1,91 @@
+/*************************************************************************
+ *
+ * $RCSfile: conarc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CONARC_HXX
+#define _CONARC_HXX
+
+#include "drawbase.hxx"
+
+/*************************************************************************
+|*
+|* Rechteck zeichnen
+|*
+\************************************************************************/
+
+class ConstArc : public SwDrawBase
+{
+ Point aStartPnt;
+ UINT16 nAnzButUp;
+
+public:
+ ConstArc(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
+
+ // Mouse- & Key-Events
+ virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
+ virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+
+ virtual void Activate(const USHORT nSlotId); // Funktion aktivieren
+ virtual void Deactivate();
+};
+
+
+
+#endif // _CONARC_HXX
+
diff --git a/sw/source/ui/inc/condedit.hxx b/sw/source/ui/inc/condedit.hxx
new file mode 100644
index 000000000000..29b0d3ba6e95
--- /dev/null
+++ b/sw/source/ui/inc/condedit.hxx
@@ -0,0 +1,103 @@
+/*************************************************************************
+ *
+ * $RCSfile: condedit.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CONDEDTI_HXX
+#define _CONDEDTI_HXX
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+class DropEvent;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class ConditionEdit : public Edit
+{
+ BOOL bBrackets;
+
+ virtual BOOL QueryDrop( DropEvent& rEvt );
+
+public:
+ ConditionEdit( Window* pParent, const ResId& rResId );
+
+ inline void ShowBrackets(BOOL bShow) { bBrackets = bShow; }
+};
+
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/inc/conform.hxx b/sw/source/ui/inc/conform.hxx
new file mode 100644
index 000000000000..fc9817760575
--- /dev/null
+++ b/sw/source/ui/inc/conform.hxx
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: conform.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CONFORM_HXX
+#define _CONFORM_HXX
+
+#include "drawbase.hxx"
+
+class ConstFormControl : public SwDrawBase
+{
+public:
+ ConstFormControl(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
+
+ // Mouse- & Key-Events
+ virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+
+ virtual void Activate(const USHORT nSlotId); // Function aktivieren
+};
+
+
+
+#endif
+
diff --git a/sw/source/ui/inc/conpoly.hxx b/sw/source/ui/inc/conpoly.hxx
new file mode 100644
index 000000000000..3005b04ca4ad
--- /dev/null
+++ b/sw/source/ui/inc/conpoly.hxx
@@ -0,0 +1,89 @@
+/*************************************************************************
+ *
+ * $RCSfile: conpoly.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CONPOLY_HXX
+#define _CONPOLY_HXX
+
+#include "drawbase.hxx"
+
+/*************************************************************************
+|*
+|* Basisklasse fuer alle Funktionen
+|*
+\************************************************************************/
+
+class ConstPolygon : public SwDrawBase
+{
+ Point aLastPos;
+
+public:
+ ConstPolygon(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
+
+ // Mouse- & Key-Events
+ virtual BOOL MouseMove(const MouseEvent& rMEvt);
+ virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
+ virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+
+ virtual void Activate(const USHORT nSlotId); // Function aktivieren
+};
+
+
+#endif // _CONPOLY_HXX
+
diff --git a/sw/source/ui/inc/conrect.hxx b/sw/source/ui/inc/conrect.hxx
new file mode 100644
index 000000000000..baefac2db343
--- /dev/null
+++ b/sw/source/ui/inc/conrect.hxx
@@ -0,0 +1,90 @@
+/*************************************************************************
+ *
+ * $RCSfile: conrect.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SW_CONRECT_HXX
+#define _SW_CONRECT_HXX
+
+#include "drawbase.hxx"
+
+/*************************************************************************
+|*
+|* Rechteck zeichnen
+|*
+\************************************************************************/
+
+class ConstRectangle : public SwDrawBase
+{
+ BOOL bMarquee;
+
+ public:
+ ConstRectangle(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
+
+ // Mouse- & Key-Events
+ virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
+ virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+
+ virtual void Activate(const USHORT nSlotId); // Function aktivieren
+};
+
+
+
+#endif // _SW_CONRECT_HXX
+
diff --git a/sw/source/ui/inc/content.hxx b/sw/source/ui/inc/content.hxx
new file mode 100644
index 000000000000..8162ec6f53d7
--- /dev/null
+++ b/sw/source/ui/inc/content.hxx
@@ -0,0 +1,256 @@
+/*************************************************************************
+ *
+ * $RCSfile: content.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CONTENT_HXX
+#define _CONTENT_HXX
+
+#include <limits.h> // USHRT_MAX
+#ifndef _SWCONT_HXX
+#include "swcont.hxx"
+#endif
+
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+
+class SwWrtShell;
+class SwContentArr;
+class SwContentType;
+class SwNavigationPI;
+class SwFmtFld;
+class SwTxtINetFmt;
+class SwNavigationConfig;
+class SwDocShell;
+class SvDataObject;
+class SwTOXBase;
+
+//----------------------------------------------------------------------------
+// Hilfsklassen
+//----------------------------------------------------------------------------
+
+class SwPopup : public PopupMenu
+{
+ USHORT nCurId;
+ virtual void Select(){nCurId = GetCurItemId();}
+
+public:
+ SwPopup() :
+ PopupMenu(),
+ nCurId(USHRT_MAX){}
+
+ USHORT GetCurId() const { return nCurId; }
+
+};
+
+//----------------------------------------------------------------------------
+
+class SwOutlineContent : public SwContent
+{
+ USHORT nOutlinePos;
+ BYTE nOutlineLevel;
+ BOOL bIsMoveable;
+ public:
+ SwOutlineContent( const SwContentType* pCnt,
+ const String& rName,
+ USHORT nArrPos,
+ BYTE nLevel,
+ BOOL bMove,
+ long nYPos) :
+ SwContent(pCnt, rName, nYPos), nOutlineLevel(nLevel),
+ nOutlinePos(nArrPos), bIsMoveable(bMove){}
+
+ USHORT GetPos(){return nOutlinePos;}
+ BYTE GetOutlineLevel(){return nOutlineLevel;}
+ BOOL IsMoveable(){return bIsMoveable;};
+};
+
+//----------------------------------------------------------------------------
+class SwRegionContent : public SwContent
+{
+
+ BYTE nRegionLevel;
+
+ public:
+ SwRegionContent( const SwContentType* pCnt,
+ const String& rName,
+ BYTE nLevel,
+ long nYPos) :
+ SwContent(pCnt, rName, nYPos),
+ nRegionLevel(nLevel){}
+ BYTE GetRegionLevel() const {return nRegionLevel;}
+};
+//----------------------------------------------------------------------------
+
+class SwURLFieldContent : public SwContent
+{
+ const SwTxtINetFmt* pINetAttr;
+ String sURL;
+
+public:
+ SwURLFieldContent( const SwContentType* pCnt,
+ const String& rName,
+ const String& rURL,
+ const SwTxtINetFmt* pAttr,
+ long nYPos )
+ : SwContent( pCnt, rName, nYPos ), sURL( rURL ), pINetAttr( pAttr )
+ {}
+
+ virtual BOOL IsProtect() const;
+ const String& GetURL() { return sURL; }
+ const SwTxtINetFmt* GetINetAttr() { return pINetAttr; }
+};
+
+//----------------------------------------------------------------------------
+
+class SwPostItContent : public SwContent
+{
+ const SwFmtFld* pFld;
+public:
+ SwPostItContent( const SwContentType* pCnt,
+ const String& rName,
+ const SwFmtFld* pField,
+ long nYPos )
+ : SwContent( pCnt, rName, nYPos ), pFld( pField )
+ {}
+
+ const SwFmtFld* GetPostIt() { return pFld; }
+ virtual BOOL IsProtect() const;
+};
+
+//----------------------------------------------------------------------------
+
+class SwGraphicContent : public SwContent
+{
+ String sLink;
+public:
+ SwGraphicContent(const SwContentType* pCnt, const String& rName, const String& rLink, long nYPos)
+ : SwContent( pCnt, rName, nYPos ), sLink( rLink )
+ {}
+ virtual ~SwGraphicContent();
+
+ const String& GetLink() const {return sLink;}
+};
+
+//----------------------------------------------------------------------------
+class SwTOXBaseContent : public SwContent
+{
+ const SwTOXBase* pBase;
+public:
+ SwTOXBaseContent(const SwContentType* pCnt, const String& rName, long nYPos, const SwTOXBase& rBase)
+ : SwContent( pCnt, rName, nYPos ), pBase(&rBase)
+ {}
+ virtual ~SwTOXBaseContent();
+
+ const SwTOXBase* GetTOXBase() const {return pBase;}
+};
+/*
+ class ContentType enthaelt Informationen zu einer Inhaltsform
+ Das MemberArray wird nur gefuellt, wenn der Inhalt mit GetMember
+ angefordert wird. Es wird nach Invalidate() nur dann neu geladen,
+ wenn der Inhalt erneut ausgelesen werden soll.
+*/
+//----------------------------------------------------------------------------
+//----------------------------------------------------------------------------
+
+class SwContentType : public SwTypeNumber
+{
+ SwWrtShell* pWrtShell;
+ SwContentArr* pMember; // Array fuer Inhalte
+ String sContentTypeName; // Name der Inhaltsform
+ String sSingleContentTypeName; // Name der Inhaltsform, Singular
+ String sTypeToken; // Anhaengsel fuer URL
+ USHORT nMemberCount; // Inhaltsanzahl
+ USHORT nContentType; // Id der Inhaltsform
+ BYTE nOutlineLevel;
+ BOOL bMemberFilled : 1; // wurden die Inhalte bereits eingefuegt?
+ BOOL bIsInternalDrag:1; // koennen die Inhalte verschoben werden?
+ BOOL bDataValid : 1; //
+ BOOL bEdit: 1; // kann diese Type bearbeitet werden ?
+ BOOL bDelete: 1; // kann diese Type geloescht werden ?
+protected:
+ void RemoveNewline(String&);
+public:
+ SwContentType(SwWrtShell* pParent, USHORT nType, BYTE nLevel );
+ ~SwContentType();
+
+ void Init(BOOL* pbInvalidateWindow = 0);
+ void FillMemberList(BOOL* pbLevelChanged = NULL);
+ USHORT GetMemberCount() const
+ {return nMemberCount;};
+ USHORT GetType() const {return nContentType;}
+ const SwContent* GetMember(USHORT nIndex);
+ const String& GetName() {return sContentTypeName;}
+ const String& GetSingleName() const {return sSingleContentTypeName;}
+ const String& GetTypeToken() const{return sTypeToken;}
+
+ void SetOutlineLevel(BYTE nNew)
+ {
+ nOutlineLevel = nNew;
+ Invalidate();
+ }
+
+ void Invalidate(); // nur nMemberCount wird neu gelesen
+
+ BOOL IsEditable() const {return bEdit;}
+ BOOL IsDeletable() const {return bDelete;}
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/conttree.hxx b/sw/source/ui/inc/conttree.hxx
new file mode 100644
index 000000000000..1732d879c812
--- /dev/null
+++ b/sw/source/ui/inc/conttree.hxx
@@ -0,0 +1,332 @@
+/*************************************************************************
+ *
+ * $RCSfile: conttree.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _CONTTREE_HXX
+#define _CONTTREE_HXX
+#ifndef _SWCONT_HXX
+#include "swcont.hxx"
+#endif
+
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+
+class SwWrtShell;
+class SwContentArr;
+class SwContentType;
+class SwNavigationPI;
+class SwFmtFld;
+class SwTxtINetFmt;
+class SwNavigationConfig;
+class SwDocShell;
+class SvDataObject;
+class Menu;
+class ToolBox;
+
+#define EDIT_MODE_EDIT 0
+#define EDIT_MODE_UPD_IDX 1
+#define EDIT_MODE_RMV_IDX 2
+#define EDIT_UNPROTECT_TABLE 3
+#define EDIT_MODE_DELETE 4
+#define EDIT_MODE_RENAME 5
+
+//----------------------------------------------------------------------------
+//----------------------------------------------------------------------------
+
+class SwContentTree : public SvTreeListBox
+{
+ SwWrtShell* pHiddenShell; // gedropptes Doc
+ SwWrtShell* pActiveShell; // die aktive oder eine konst. offene View
+ SwNavigationConfig* pConfig;
+ ImageList aEntryImages;
+ String sSpace;
+ AutoTimer aUpdTimer;
+
+ USHORT nActiveBlock;
+ USHORT nHiddenBlock;
+ USHORT nRootType;
+ USHORT nLastSelType;
+ USHORT nDragMode; // wir fuer den StaticLink gebraucht
+ BYTE nOutlineLevel;
+
+ BOOL bIsActive :1;
+ BOOL bIsConstant :1;
+ BOOL bIsHidden :1;
+ BOOL bDocChgdInDragging :1;
+ BOOL bIsInternalDrag :1;
+ BOOL bIsRoot :1;
+ BOOL bIsIdleClear :1;
+ BOOL bIsLastReadOnly :1;
+ BOOL bIsOutlineMoveable :1;
+ BOOL bViewHasChanged :1;
+ BOOL bIsImageListInitialized : 1;
+
+ static BOOL bIsInDrag;
+
+ SwContentType* aActiveContentArr[CONTENT_TYPE_MAX];
+ SwContentType* aHiddenContentArr[CONTENT_TYPE_MAX];
+ String aContextStrings[CONTEXT_COUNT + 1];
+ String sRemoveIdx;
+ String sUpdateIdx;
+ String sUnprotTbl;
+ String sRename;
+ String sReadonlyIdx;
+ String sInvisible;
+
+ void FindActiveTypeAndRemoveUserData();
+
+protected:
+ virtual BOOL Drop( const DropEvent& rEvt);
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&);
+
+ SwNavigationPI* GetParentWindow(){return
+ (SwNavigationPI*)Window::GetParent();}
+
+ void StartExecuteDrag();
+ BOOL FillDragServer(USHORT& nDragMode);
+ BOOL HasContentChanged();
+
+ virtual DragDropMode NotifyBeginDrag( SvLBoxEntry* );
+
+ virtual BOOL NotifyMoving( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ ULONG& rNewChildPos
+ );
+ virtual BOOL NotifyCopying( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ ULONG& rNewChildPos
+ );
+ virtual BOOL NotifyQueryDrop( SvLBoxEntry* );
+ virtual void BeginDrag( const Point& );
+ virtual void EndDrag();
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+
+ void EditEntry(SvLBoxEntry* pEntry, BYTE nMode = EDIT_MODE_EDIT);
+ void GotoContent(SwContent* pCnt);
+ static void SetInDrag(BOOL bSet) {bIsInDrag = bSet;}
+
+ USHORT GetDragMode() const {return nDragMode;}
+ DECL_STATIC_LINK(SwContentTree, ExecDragHdl, SwContentTree*);
+
+public:
+ SwContentTree(Window* pParent, const ResId& rResId);
+ ~SwContentTree();
+
+ BOOL ToggleToRoot();
+ BOOL IsRoot() const {return bIsRoot;}
+ USHORT GetRootType() const {return nRootType;}
+ void SetRootType(USHORT nType);
+ void Display( BOOL bActiveView );
+ void Clear();
+ void SetHiddenShell(SwWrtShell* pSh);
+ void ShowHiddenShell();
+ void ShowActualView();
+ void SetActiveShell(SwWrtShell* pSh);
+ void SetConstantShell(SwWrtShell* pSh);
+
+ SwWrtShell* GetWrtShell()
+ {return bIsActive||bIsConstant ?
+ pActiveShell :
+ pHiddenShell;}
+
+ static BOOL IsInDrag() {return bIsInDrag;}
+ BOOL IsInternalDrag() const {return bIsInternalDrag != 0;}
+
+ USHORT GetActiveBlock() const {return nActiveBlock;}
+
+ BYTE GetOutlineLevel()const {return nOutlineLevel;}
+ void SetOutlineLevel(BYTE nSet);
+ BOOL Expand( SvLBoxEntry* pParent );
+ BOOL Collapse( SvLBoxEntry* pParent );
+ void ExecCommand(USHORT nCmd, BOOL bModifier);
+ void Show();
+ void Hide();
+
+ BOOL IsConstantView() {return bIsConstant;}
+ BOOL IsActiveView() {return bIsActive;}
+ BOOL IsHiddenView() {return bIsHidden;}
+
+ const SwWrtShell* GetActiveWrtShell() {return pActiveShell;}
+ SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;}
+
+ DECL_LINK( ContentDoubleClickHdl, SwContentTree * );
+ DECL_LINK( PopupHdl, Menu* );
+ DECL_LINK( TimerUpdate, Timer * );
+
+ virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void GetFocus();
+ virtual void KeyInput(const KeyEvent& rKEvt);
+ virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
+};
+
+
+//----------------------------------------------------------------------------
+// TreeListBox fuer Globaldokumente
+//----------------------------------------------------------------------------
+
+class SwGlblDocContents;
+class SwGlblDocContent;
+
+class SwLBoxString : public SvLBoxString
+{
+public:
+
+ SwLBoxString( SvLBoxEntry* pEntry, USHORT nFlags,
+ const String& rStr ) : SvLBoxString(pEntry,nFlags,rStr)
+ {
+ }
+
+ virtual void Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
+ SvLBoxEntry* pEntry);
+};
+
+class SwGlobalTree : public SvTreeListBox
+{
+ AutoTimer aUpdateTimer;
+ String aContextStrings[GLOBAL_CONTEXT_COUNT];
+
+ ImageList aEntryImages;
+
+ SwWrtShell* pActiveShell; //
+ SvLBoxEntry* pEmphasisEntry; // Drag'n Drop-Emphasis
+ SvLBoxEntry* pDDSource; // Quelle beim DnD
+ SwGlblDocContents* pSwGlblDocContents; // Array mit sortierten Inhalten
+
+ BOOL bIsInternalDrag :1;
+ BOOL bLastEntryEmphasis :1; // Drag'n Drop
+ BOOL bIsImageListInitialized : 1;
+
+ static const SfxObjectShell* pShowShell;
+
+ protected:
+ virtual BOOL Drop( const DropEvent& rEvt);
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+
+ virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
+ virtual DragDropMode NotifyBeginDrag( SvLBoxEntry* );
+ virtual BOOL NotifyMoving( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ ULONG& rNewChildPos
+ );
+ virtual BOOL NotifyCopying( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ ULONG& rNewChildPos
+ );
+ virtual BOOL NotifyQueryDrop( SvLBoxEntry* );
+ virtual void BeginDrag( const Point& );
+ virtual void EndDrag();
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void KeyInput(const KeyEvent& rKEvt);
+ virtual void GetFocus();
+ virtual void SelectHdl();
+ virtual void DeselectHdl();
+ virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&);
+
+ void Clear();
+
+ DECL_LINK( PopupHdl, Menu* );
+ DECL_LINK( Timeout, Timer* );
+ DECL_LINK( DoubleClickHdl, SwGlobalTree * );
+
+ BOOL IsInternalDrag() const {return bIsInternalDrag != 0;}
+ SwNavigationPI* GetParentWindow(){return
+ (SwNavigationPI*)Window::GetParent();}
+
+ void OpenDoc(const SwGlblDocContent*);
+ void GotoContent(const SwGlblDocContent*);
+ USHORT GetEnableFlags() const;
+
+ static const SfxObjectShell* GetShowShell() {return pShowShell;}
+ static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;}
+ DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, SwGlobalTree*);
+
+ public:
+ SwGlobalTree(Window* pParent, const ResId& rResId);
+ ~SwGlobalTree();
+
+ void TbxMenuHdl(USHORT nTbxId, ToolBox* pBox);
+ void InsertRegion(const SwGlblDocContent* pCont,
+ const String* pFileName = 0 );
+ void EditContent(const SwGlblDocContent* pCont );
+ void Show();
+ void Hide();
+
+ void ExecCommand(USHORT nCmd);
+
+ void Display(BOOL bOnlyUpdateUserData = FALSE);
+ BOOL Update(BOOL bHard = FALSE);
+};
+
+
+
+#endif
+
+
diff --git a/sw/source/ui/inc/convert.hxx b/sw/source/ui/inc/convert.hxx
new file mode 100644
index 000000000000..e73666a6fc86
--- /dev/null
+++ b/sw/source/ui/inc/convert.hxx
@@ -0,0 +1,120 @@
+/*************************************************************************
+ *
+ * $RCSfile: convert.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_CONVERT_HXX
+#define _SW_CONVERT_HXX
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+class SwTableAutoFmt;
+class SwView;
+class SwWrtShell;
+
+class SwConvertTableDlg: public SfxModalDialog
+{
+ RadioButton aTabBtn;
+ RadioButton aSemiBtn;
+ RadioButton aParaBtn;
+ RadioButton aOtherBtn;
+ Edit aOtherEd;
+ CheckBox aKeepColumn;
+ GroupBox aDelimFrm;
+
+ CheckBox aHeaderCB;
+ CheckBox aRepeatHeaderCB;
+ CheckBox aDontSplitCB;
+ CheckBox aBorderCB;
+ GroupBox aOptionsGB;
+
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+ PushButton aAutoFmtBtn;
+
+ String sConvertTextTable;
+ SwTableAutoFmt* pTAutoFmt;
+ SwWrtShell* pShell;
+
+ DECL_LINK( AutoFmtHdl, PushButton* );
+ DECL_LINK( BtnHdl, Button* );
+ DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 );
+
+public:
+ SwConvertTableDlg( SwView& rView );
+ ~SwConvertTableDlg();
+
+ void GetValues( char& rDelim,
+ USHORT& rInsTblFlags,
+ SwTableAutoFmt *& prTAFmt );
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/cption.hxx b/sw/source/ui/inc/cption.hxx
new file mode 100644
index 000000000000..2e411d0d838d
--- /dev/null
+++ b/sw/source/ui/inc/cption.hxx
@@ -0,0 +1,176 @@
+/*************************************************************************
+ *
+ * $RCSfile: cption.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CPTION_HXX
+#define _CPTION_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _ACTCTRL_HXX //autogen
+#include <actctrl.hxx>
+#endif
+
+
+#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATIONACCESS_HPP_
+#include <com/sun/star/container/XEnumerationAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP_
+#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP_
+#include <com/sun/star/container/XContentEnumerationAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATION_HPP_
+#include <com/sun/star/container/XEnumeration.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XELEMENTACCESS_HPP_
+#include <com/sun/star/container/XElementAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XINDEXACCESS_HPP_
+#include <com/sun/star/container/XIndexAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMED_HPP_
+#include <com/sun/star/container/XNamed.hpp>
+#endif
+
+class SwFldMgr;
+class SwView;
+
+#include "swlbox.hxx"
+
+class NoSpaceCombo : public SwComboBox
+{
+protected:
+ virtual void KeyInput( const KeyEvent& );
+
+public:
+ NoSpaceCombo( Window* pParent, const ResId& rResId)
+ : SwComboBox(pParent, rResId)
+ {}
+};
+
+class SwCaptionDialog : public SvxStandardDialog
+{
+ FixedText aSampleText;
+ FixedText aCategoryText;
+ NoSpaceCombo aCategoryBox;
+ FixedText aFormatText;
+ ListBox aFormatBox;
+ FixedText aTextText;
+ Edit aTextEdit;
+ FixedText aPosText;
+ ListBox aPosBox;
+ CheckBox aCopyAttributesCB;
+ FixedText aObjectNameFT;
+ NoSpaceEdit aObjectNameED;
+ GroupBox aSettingsGroup;
+ OKButton aOKButton;
+ CancelButton aCancelButton;
+ HelpButton aHelpButton;
+ PushButton aOptionButton;
+
+ SwView &rView; //Suchen per aktive ::com::sun::star::sdbcx::View vermeiden.
+ SwFldMgr *pMgr; //Ptr um das include zu sparen
+ sal_uInt16 eType;
+
+ String sObjectName;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xNameAccess;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > xNamed;
+
+ DECL_LINK( SelectHdl, ListBox * );
+ DECL_LINK( ModifyHdl, Edit * );
+ DECL_LINK( OptionHdl, Button * );
+
+ virtual void Apply();
+
+ void DrawSample();
+
+public:
+ SwCaptionDialog( Window *pParent, SwView &rV );
+ ~SwCaptionDialog();
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/dbinsdlg.hxx b/sw/source/ui/inc/dbinsdlg.hxx
new file mode 100644
index 000000000000..54ff61bfcff5
--- /dev/null
+++ b/sw/source/ui/inc/dbinsdlg.hxx
@@ -0,0 +1,245 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbinsdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _DBINSDLG_HXX
+#define _DBINSDLG_HXX
+
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SVEDIT_HXX //autogen
+#include <svtools/svmedit.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+#ifndef _SWNUMFMTLB_HXX //autogen
+#include <numfmtlb.hxx>
+#endif
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
+#include <com/sun/star/uno/Reference.h>
+#endif
+namespace com{namespace sun{namespace star{namespace sdbcx{
+ class XColumnsSupplier;
+}}}}
+#endif
+
+class SwTableAutoFmt;
+class SwView;
+class SbaSelectionList;
+class _DB_ColumnConfig;
+class SfxItemSet;
+class SwTableRep;
+class _DB_Columns;
+
+struct SwInsDBColumn
+{
+ String sColumn, sUsrNumFmt;
+ ULONG nDBNumFmt, nUsrNumFmt; // besser ist NumFormatStr !!
+ LanguageType eUsrNumFmtLng;
+ USHORT nCol;
+ BOOL bHasFmt : 1;
+ BOOL bIsDBFmt : 1;
+
+ SwInsDBColumn( const String& rStr, USHORT nColumn )
+ : sColumn( rStr ), nCol( nColumn ), nDBNumFmt( 0 ), nUsrNumFmt( 0 ),
+ bHasFmt(FALSE), bIsDBFmt(TRUE), eUsrNumFmtLng( LANGUAGE_SYSTEM )
+ {}
+
+ int operator==( const SwInsDBColumn& rCmp ) const
+ { return sColumn == rCmp.sColumn; }
+ int operator<( const SwInsDBColumn& rCmp ) const;
+};
+
+#ifdef REPLACE_OFADBMGR
+struct SwInsDBData
+{
+ String sDataBaseName;
+ String sDataTableName;
+ String sStatement;
+};
+#endif
+typedef SwInsDBColumn* SwInsDBColumnPtr;
+SV_DECL_PTRARR_SORT_DEL( SwInsDBColumns, SwInsDBColumnPtr, 32, 32 )
+
+
+class SwInsertDBColAutoPilot : public SfxModalDialog
+{
+ FixedText aFtInsertData;
+ RadioButton aRbAsTable;
+ RadioButton aRbAsField;
+ RadioButton aRbAsText;
+
+ GroupBox aGbSelection;
+ FixedText aFtDbColumn;
+
+ ListBox aLbTblDbColumn;
+ ListBox aLbTxtDbColumn;
+
+ GroupBox aGbDbFormat;
+ RadioButton aRbDbFmtFromDb;
+ RadioButton aRbDbFmtFromUsr;
+ NumFormatListBox aLbDbFmtFromUsr;
+
+ /* ----- Page Text/Field ------- */
+ PushButton aPbDbcolToEdit;
+ MultiLineEdit aEdDbText;
+ FixedText aFtDbParaColl;
+ ListBox aLbDbParaColl;
+
+ /* ----- Page Table ------------ */
+ PushButton aPbDbcolAllTo;
+ PushButton aPbDbcolOneTo;
+ PushButton aPbDbcolOneFrom;
+ PushButton aPbDbcolAllFrom;
+ FixedText aFtTableCol;
+ ListBox aLbTableCol;
+ GroupBox aGbTableHead;
+ CheckBox aCbTableHeadon;
+ RadioButton aRbHeadlColnms;
+ RadioButton aRbHeadlEmpty;
+ PushButton aPbTblFormat;
+ PushButton aPbTblAutofmt;
+
+ OKButton aBtOk;
+ CancelButton aBtCancel;
+ HelpButton aBtHelp;
+
+ SwInsDBColumns aDBColumns;
+#ifdef REPLACE_OFADBMGR
+ const SwInsDBData aDBData;
+#else
+
+#endif //REPLACE_OFADBMGR
+
+ Link aOldNumFmtLnk;
+ String sNoTmpl;
+
+ SwView* pView;
+ SwTableAutoFmt* pTAutoFmt;
+ _DB_ColumnConfig* pConfig;
+
+ SfxItemSet* pTblSet;
+ SwTableRep* pRep;
+ USHORT nGBFmtLen;
+
+ DECL_LINK( PageHdl, Button* );
+ DECL_LINK( AutoFmtHdl, PushButton* );
+ DECL_LINK( TblFmtHdl, PushButton* );
+ DECL_LINK( DBFormatHdl, Button* );
+ DECL_LINK( TblToFromHdl, Button* );
+ DECL_LINK( SelectHdl, ListBox* );
+ DECL_LINK( DblClickHdl, ListBox* );
+ DECL_LINK( HeaderHdl, Button* );
+
+ FASTBOOL SplitTextToColArr( const String& rTxt, _DB_Columns& rColArr, BOOL bInsField );
+
+ // Daten ins INI-File schreiben
+ void WriteUIToIni();
+ // Daten aus dem INI-File lesen:
+ void ReadIniToUI();
+ // setze die Tabellen - Eigenschaften
+ void SetTabSet();
+
+public:
+#ifdef REPLACE_OFADBMGR
+ SwInsertDBColAutoPilot( SwView& rView,
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
+ com::sun::star::uno::Reference<com::sun::star::sdbcx::XColumnsSupplier>,
+ const SwInsDBData& rData );
+#else
+ SwInsertDBColAutoPilot( SwView& rView );
+#endif //REPLACE_OFADBMGR
+
+ virtual ~SwInsertDBColAutoPilot();
+
+#ifdef REPLACE_OFADBMGR
+ void DataToDoc( const SbaSelectionList*,
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection);
+#else
+ BOOL HasValidDB() const { return 0 != aDBColumns.Count(); }
+ void DataToDoc( const SbaSelectionList* );
+#endif //REPLACE_OFADBMGR
+
+};
+
+
+
+
+#endif
diff --git a/sw/source/ui/inc/dbtree.hxx b/sw/source/ui/inc/dbtree.hxx
new file mode 100644
index 000000000000..b8439bd911e7
--- /dev/null
+++ b/sw/source/ui/inc/dbtree.hxx
@@ -0,0 +1,121 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbtree.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _DBTREE_HXX
+#define _DBTREE_HXX
+
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
+#include <com/sun/star/uno/Reference.h>
+#endif
+namespace com{namespace sun{namespace star{namespace container{
+ class XNameAccess;
+}}}}
+#endif
+
+#include "swtypes.hxx"
+
+class SwDBTreeList : public SvTreeListBox
+{
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+ Image aDBBMP;
+ Image aTableBMP;
+ Image aQueryBMP;
+
+ String sDefDBName;
+ BOOL bInitialized;
+ BOOL bShowColumns;
+
+#ifdef REPLACE_OFADBMGR
+ com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> xDBContext;
+#endif
+ DECL_LINK( DBCompare, SvSortData* );
+
+ void InitTreeList();
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
+
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+
+ void StartExecuteDrag();
+
+public:
+ SwDBTreeList(Window* pParent, const ResId& rResId, const String& rDefDBName = aEmptyStr, const BOOL bShowCol = FALSE );
+ ~SwDBTreeList();
+
+#ifdef REPLACE_OFADBMGR
+ String GetDBName(String& rTableName, String& rColumnName, BOOL* pbIsTable = 0);
+ void Select(const String& rDBName, const String& rTableName, const String& rColumnName);
+#else
+ String GetDBName() const;
+ void Select(const String& rDBName); // Format: Datenbank.Tabelle
+#endif
+
+ void Show();
+ void ShowColumns(BOOL bShowCol);
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/dbui.hxx b/sw/source/ui/inc/dbui.hxx
new file mode 100644
index 000000000000..ffb5571d54b5
--- /dev/null
+++ b/sw/source/ui/inc/dbui.hxx
@@ -0,0 +1,114 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbui.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _DBUI_HXX
+#define _DBUI_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#include "dbtree.hxx"
+#include "swtypes.hxx"
+
+class SwWrtShell;
+class SbaObject;
+
+class SwDBSelect : public SvxStandardDialog
+{
+ SwDBTreeList aTree;
+
+ OKButton aOkBTN;
+ CancelButton aCancelBTN;
+ HelpButton aHelpBTN;
+
+ DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox);
+
+ virtual void Apply();
+
+public:
+ SwDBSelect(Window* pParent, SwWrtShell* pSh, const String& rDefDBName = aEmptyStr);
+ ~SwDBSelect();
+
+ String GetDBName() const;
+};
+
+class PrintMonitor: public ModelessDialog
+{
+public:
+ FixedText aDocName;
+ FixedText aPrinting;
+ FixedText aPrinter;
+ FixedText aPrintInfo;
+ CancelButton aCancel;
+
+ PrintMonitor( Window *pParent, BOOL bEMail = FALSE );
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/docfnote.hxx b/sw/source/ui/inc/docfnote.hxx
new file mode 100644
index 000000000000..ff632ca6839c
--- /dev/null
+++ b/sw/source/ui/inc/docfnote.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: docfnote.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _DOCFNOTE_HXX
+#define _DOCFNOTE_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwFootNoteOptionDlg :public SfxTabDialog
+{
+ SwWrtShell &rSh;
+ Link aOldOkHdl;
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+
+#ifdef __PRIVATE
+ DECL_LINK( OkHdl, Button * );
+#endif
+
+public:
+ SwFootNoteOptionDlg(Window *pParent, SwWrtShell &rSh );
+ ~SwFootNoteOptionDlg();
+};
+
+#endif
diff --git a/sw/source/ui/inc/docstdlg.hxx b/sw/source/ui/inc/docstdlg.hxx
new file mode 100644
index 000000000000..792d31be5064
--- /dev/null
+++ b/sw/source/ui/inc/docstdlg.hxx
@@ -0,0 +1,124 @@
+/*************************************************************************
+ *
+ * $RCSfile: docstdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _DOCSTDLG_HXX
+#define _DOCSTDLG_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+
+#include "docstat.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung: DocInfo jetzt als Page
+ --------------------------------------------------------------------*/
+
+class SwDocStatPage: public SfxTabPage
+{
+public:
+ SwDocStatPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwDocStatPage();
+
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+
+protected:
+ virtual BOOL FillItemSet( SfxItemSet &rSet);
+ virtual void Reset (const SfxItemSet &rSet);
+
+ DECL_LINK( UpdateHdl, PushButton*);
+
+private:
+ FixedText aTableLbl;
+ FixedText aGrfLbl;
+ FixedText aOLELbl;
+ FixedText aPageLbl;
+ FixedText aParaLbl;
+ FixedText aWordLbl;
+ FixedText aWordDelimFT;
+ Edit aWordDelim;
+ FixedText aCharLbl;
+ FixedText aLineLbl;
+
+ FixedInfo aTableNo;
+ FixedInfo aGrfNo;
+ FixedInfo aOLENo;
+ FixedInfo aPageNo;
+ FixedInfo aParaNo;
+ FixedInfo aWordNo;
+ FixedInfo aCharNo;
+ FixedInfo aLineNo;
+
+ PushButton aUpdatePB;
+ SwDocStat aDocStat;
+
+ void Update();
+ void SetData(const SwDocStat &rStat);
+};
+
+#endif
diff --git a/sw/source/ui/inc/drawbase.hxx b/sw/source/ui/inc/drawbase.hxx
new file mode 100644
index 000000000000..f55dc84672f9
--- /dev/null
+++ b/sw/source/ui/inc/drawbase.hxx
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawbase.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_DRAWBASE_HXX
+#define _SW_DRAWBASE_HXX
+
+#ifndef _GEN_HXX //autogen
+#include <tools/gen.hxx>
+#endif
+
+class SwView;
+class SwWrtShell;
+class SwEditWin;
+class KeyEvent;
+class MouseEvent;
+
+#define MIN_FREEHAND_DISTANCE 10
+
+/*************************************************************************
+|*
+|* Basisklasse fuer alle Funktionen
+|*
+\************************************************************************/
+
+class SwDrawBase
+{
+protected:
+ SwView* pView;
+ SwWrtShell* pSh;
+ SwEditWin* pWin;
+ Point aStartPos; // Position von BeginCreate
+ Point aMDPos; // Position von MouseButtonDown
+ BOOL bCreateObj :1;
+ BOOL bInsForm :1;
+
+public:
+ SwDrawBase(SwWrtShell *pSh, SwEditWin* pWin, SwView* pView);
+ virtual ~SwDrawBase();
+
+ void SetDrawPointer();
+ void EnterSelectMode(const MouseEvent& rMEvt);
+ inline BOOL IsInsertForm() const { return bInsForm; }
+ inline BOOL IsCreateObj() const { return bCreateObj; }
+
+ // Mouse- & Key-Events; Returnwert=TRUE: Event wurde bearbeitet
+ virtual BOOL KeyInput(const KeyEvent& rKEvt);
+ virtual BOOL MouseMove(const MouseEvent& rMEvt);
+ virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
+ virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+
+ void BreakCreate();
+
+ virtual void Activate(const USHORT nSlotId); // Function aktivieren
+ virtual void Deactivate(); // Function deaktivieren
+};
+
+
+
+#endif // _SW_DRAWBASE_HXX
+
diff --git a/sw/source/ui/inc/drawsh.hxx b/sw/source/ui/inc/drawsh.hxx
new file mode 100644
index 000000000000..e148badafd90
--- /dev/null
+++ b/sw/source/ui/inc/drawsh.hxx
@@ -0,0 +1,88 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWDRAWSH_HXX
+#define _SWDRAWSH_HXX
+
+#include "drwbassh.hxx"
+
+class SdrObject;
+class SwDrawBaseShell;
+
+class SwDrawShell: public SwDrawBaseShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_DRAWSHELL);
+ TYPEINFO();
+
+ SwDrawShell(SwView &rView);
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void ExecDrawDlg(SfxRequest& rReq);
+ void ExecDrawAttrArgs(SfxRequest& rReq);
+ void GetDrawAttrState(SfxItemSet &rSet);
+
+ void ExecFormText(SfxRequest& rReq);
+ void GetFormTextState(SfxItemSet& rSet);
+};
+
+#endif
diff --git a/sw/source/ui/inc/drformsh.hxx b/sw/source/ui/inc/drformsh.hxx
new file mode 100644
index 000000000000..475cb4a45771
--- /dev/null
+++ b/sw/source/ui/inc/drformsh.hxx
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * $RCSfile: drformsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWDRWFORMSH_HXX
+#define _SWDRWFORMSH_HXX
+
+#include "drwbassh.hxx"
+
+class SdrObject;
+class SwDrawBaseShell;
+
+class SwDrawFormShell: public SwDrawBaseShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_DRAWFORMSHELL);
+ TYPEINFO();
+
+ SwDrawFormShell(SwView &rView);
+ virtual ~SwDrawFormShell();
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+};
+
+#endif
diff --git a/sw/source/ui/inc/drpcps.hxx b/sw/source/ui/inc/drpcps.hxx
new file mode 100644
index 000000000000..e239fbbfb9cc
--- /dev/null
+++ b/sw/source/ui/inc/drpcps.hxx
@@ -0,0 +1,166 @@
+/*************************************************************************
+ *
+ * $RCSfile: drpcps.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _DRPCPS_HXX
+#define _DRPCPS_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+class SwWrtShell;
+
+// class SwDropCapsDlg ******************************************************
+
+class SwDropCapsDlg : public SfxSingleTabDialog
+{
+
+public:
+
+ SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
+ ~SwDropCapsDlg();
+
+};
+
+class SwDropCapsPict;
+
+// class SwDropCapsPage *****************************************************
+
+class SwDropCapsPage : public SfxTabPage
+{
+friend class SwDropCapsPict;
+
+ CheckBox aDropCapsBox;
+ CheckBox aWholeWordCB;
+ FixedText aSwitchText;
+ NumericField aDropCapsField;
+ FixedText aLinesText;
+ NumericField aLinesField;
+ FixedText aDistanceText;
+ MetricField aDistanceField;
+ GroupBox aSettingsGroup;
+
+ FixedText aTextText;
+ Edit aTextEdit;
+ FixedText aTemplateText;
+ ListBox aTemplateBox;
+ GroupBox aContentBox;
+
+ SwDropCapsPict *pPict;
+ GroupBox aPictBox;
+
+ BOOL bModified;
+ BOOL bFormat;
+ BOOL bHtmlMode;
+
+ SwWrtShell &rSh;
+
+ SwDropCapsPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwDropCapsPage();
+
+ virtual int DeactivatePage(SfxItemSet *pSet);
+ void FillSet( SfxItemSet &rSet );
+
+ DECL_LINK( ClickHdl, Button * );
+ DECL_LINK( ModifyHdl, Edit * );
+ DECL_LINK( SelectHdl, ListBox * );
+ DECL_LINK( WholeWordHdl, CheckBox * );
+
+public:
+
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet( SfxItemSet &rSet);
+ virtual void Reset (const SfxItemSet &rSet);
+
+ void SetFormat(BOOL bSet){bFormat = bSet;}
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/drwbassh.hxx b/sw/source/ui/inc/drwbassh.hxx
new file mode 100644
index 000000000000..54d83432ab7f
--- /dev/null
+++ b/sw/source/ui/inc/drwbassh.hxx
@@ -0,0 +1,101 @@
+/*************************************************************************
+ *
+ * $RCSfile: drwbassh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWDRWBASSH_HXX
+#define _SWDRWBASSH_HXX
+
+#include "basesh.hxx"
+
+class SwWrtShell;
+class SwView;
+class SfxItemSet;
+class SwDrawBase;
+
+class SwDrawBaseShell: public SwBaseShell
+{
+ SwDrawBase* pDrawActual;
+
+ UINT16 eDrawMode;
+ BOOL bRotate : 1;
+ BOOL bSelMove: 1;
+
+public:
+ SwDrawBaseShell(SwView &rShell);
+ virtual ~SwDrawBaseShell();
+
+ SFX_DECL_INTERFACE(SW_DRAWBASESHELL);
+ TYPEINFO();
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void DisableState(SfxItemSet &rSet) { Disable(rSet);}
+ BOOL Disable(SfxItemSet& rSet, USHORT nWhich = 0);
+
+ void StateStatusline(SfxItemSet &rSet);
+
+/* SwDrawBase* GetDrawFuncPtr() { return (pDrawActual); }
+ void SetDrawFuncPtr(SwDrawBase* pFuncPtr);
+ UINT16 GetDrawMode() { return (eDrawMode); }
+ void SetDrawMode(UINT16 eDrwMode) { eDrawMode = eDrwMode; }
+*/
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/drwtxtsh.hxx b/sw/source/ui/inc/drwtxtsh.hxx
new file mode 100644
index 000000000000..0f9ba8ea6d98
--- /dev/null
+++ b/sw/source/ui/inc/drwtxtsh.hxx
@@ -0,0 +1,123 @@
+/*************************************************************************
+ *
+ * $RCSfile: drwtxtsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWDRWTXTSH_HXX
+#define _SWDRWTXTSH_HXX
+
+
+#ifndef _SFX_SHELL_HXX //autogen
+#include <sfx2/shell.hxx>
+#endif
+#include "shellid.hxx"
+
+class OutlinerView;
+class SdrOutliner;
+class SdrView;
+class SwView;
+class SfxModule;
+class SwWrtShell;
+
+class SwDrawTextShell: public SfxShell
+{
+ SwView &rView;
+
+ SdrView *pSdrView;
+ OutlinerView*pOLV;
+ SdrOutliner *pOutliner;
+
+ BOOL bRotate : 1;
+ BOOL bSelMove: 1;
+
+ void SetAttrToMarked(const SfxItemSet& rAttr);
+ void InsertSymbol();
+ BOOL IsTextEdit();
+public:
+ SFX_DECL_INTERFACE(SW_DRWTXTSHELL);
+ TYPEINFO();
+
+ SwView &GetView() { return rView; }
+ SwWrtShell &GetShell();
+
+ SwDrawTextShell(SwView &rView);
+ virtual ~SwDrawTextShell();
+
+ void StateDisableItems(SfxItemSet &);
+
+ void Execute(SfxRequest &);
+ void ExecDraw(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void GetDrawTxtCtrlState(SfxItemSet&);
+
+ void ExecFontWork(SfxRequest& rReq);
+ void StateFontWork(SfxItemSet& rSet);
+ void ExecFormText(SfxRequest& rReq);
+ void GetFormTextState(SfxItemSet& rSet);
+ void ExecDrawLingu(SfxRequest &rReq);
+ void ExecUndo(SfxRequest &rReq);
+ void StateUndo(SfxItemSet &rSet);
+ void ExecClpbrd(SfxRequest &rReq);
+ void StateClpbrd(SfxItemSet &rSet);
+ void StateInsert(SfxItemSet &rSet);
+
+ void Init();
+ void StateStatusline(SfxItemSet &rSet);
+};
+
+#endif
diff --git a/sw/source/ui/inc/dselect.hxx b/sw/source/ui/inc/dselect.hxx
new file mode 100644
index 000000000000..5fcb53b64a96
--- /dev/null
+++ b/sw/source/ui/inc/dselect.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: dselect.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_DSELECT_HXX
+#define _SW_DSELECT_HXX
+
+#include "drawbase.hxx"
+
+/*************************************************************************
+|*
+|* Rechteck zeichnen
+|*
+\************************************************************************/
+
+class DrawSelection : public SwDrawBase
+{
+ public:
+ DrawSelection(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
+
+ // Mouse- & Key-Events
+ virtual BOOL KeyInput(const KeyEvent& rKEvt);
+
+ virtual void Activate(const USHORT nSlotId); // Function aktivieren
+};
+
+
+
+#endif // _SW_DSELECT_HXX
+
diff --git a/sw/source/ui/inc/edtwin.hxx b/sw/source/ui/inc/edtwin.hxx
new file mode 100644
index 000000000000..5f631cdad10b
--- /dev/null
+++ b/sw/source/ui/inc/edtwin.hxx
@@ -0,0 +1,304 @@
+/*************************************************************************
+ *
+ * $RCSfile: edtwin.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _EDTWIN_HXX
+#define _EDTWIN_HXX
+
+#ifndef _LINK_HXX //autogen
+#include <tools/link.hxx>
+#endif
+#ifndef _TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+#ifndef _WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+#ifndef _SOT_EXCHANGE_HXX //autogen
+#include <sot/exchange.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+
+#define _SVSTDARR_STRINGSISORTDTOR
+#include <svtools/svstdarr.hxx>
+
+class SwWrtShell;
+class SwView;
+class SwRect;
+class SwDrawBase;
+class ViewShell;
+class SwAnchorMarker;
+class SdrViewUserMarker;
+class SdrObject;
+class SwShadowCursor;
+class DataChangedEvent;
+
+struct SwApplyTemplate;
+struct QuickHelpData;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Eingabe-Fenster
+ --------------------------------------------------------------------*/
+
+class SwEditWin: public Window
+{
+friend void ScrollMDI(ViewShell* pVwSh, const SwRect&,
+ USHORT nRangeX, USHORT nRangeY);
+friend BOOL IsScrollMDI(ViewShell* pVwSh, const SwRect&);
+
+friend void SizeNotify(ViewShell* pVwSh, const Size &);
+
+friend void PageNumNotify( ViewShell* pVwSh,
+ USHORT nPhyNum,
+ USHORT nVirtNum,
+ const String& rPg );
+
+ static QuickHelpData* pQuickHlpData;
+
+ static BOOL bReplaceQuote;
+ static long nDDStartPosX, nDDStartPosY;
+
+ static Color aTextColor; //Textfarbe, fuer die Giesskanne
+ static BOOL bTransparentBackColor; // Hintergrund transparent
+ static Color aTextBackColor; //Texthintergrundfarbe, fuer die Giesskanne
+
+ /*
+ * Timer und Handler fuer das Weiterscrollen, wenn der
+ * Mauspointer innerhalb eines Drag-Vorgangs ausserhalb des
+ * EditWin stehen bleibt. In regelmaessigen Intervallen wird
+ * die Selektion in Richtung der Mausposition vergroessert.
+ */
+ AutoTimer aTimer;
+ // Timer fuer verschachtelte KeyInputs (z.B. fuer Tabellen)
+ Timer aKeyInputTimer;
+ // timer for ANY-KeyInut question without a following KeyInputEvent
+ Timer aKeyInputFlushTimer;
+
+ String aInBuffer;
+ Point aStartPos;
+ Point aMovePos;
+ Point aRszMvHdlPt;
+ Timer aTemplateTimer;
+
+ // Type/Objecte ueber dem der MousePointer steht
+ SwCallMouseEvent aSaveCallEvent;
+
+ SwApplyTemplate *pApplyTempl;
+ SwAnchorMarker *pAnchorMarker; // zum Verschieben eines Ankers
+
+ SdrViewUserMarker *pUserMarker;
+ SdrObject *pUserMarkerObj;
+ SwShadowCursor *pShadCrsr;
+
+ SwView &rView;
+
+ int aActHitType; // aktueller Mauspointer
+
+ ULONG nDropFormat; //Format aus dem letzten QueryDrop
+ USHORT nDropAction; //Action aus dem letzten QueryDrop
+ USHORT nDropDestination; //Ziel aus dem letzten QueryDrop
+
+ UINT16 eDrawMode;
+ UINT16 eBezierMode;
+ UINT16 nInsFrmColCount; //Spaltenzahl fuer interaktiven Rahmen
+ BOOL bLinkRemoved : 1,
+ bMBPressed : 1,
+ bInsDraw : 1,
+ bInsFrm : 1,
+ bGrfToOle : 1, //Grf to Sim, fuer den Rueckweg.
+ bIsInMove : 1,
+ bIsInDrag : 1, //StartExecuteDrag nich doppelt ausfuehren
+ bOldIdle : 1, //Zum abschalten des Idle'ns
+ bOldIdleSet : 1, //waehrend QeueryDrop
+ bTblInsDelMode : 1, //
+ bTblIsInsMode : 1, //
+ bTblIsColMode : 1, //
+ bChainMode : 1, //Rahmen verbinden
+ bWasShdwCrsr : 1, //ShadowCrsr war im MouseButtonDown an
+ bLockInput : 1; //Lock waehrend die Rechenleiste aktiv ist
+
+
+ void LeaveArea(const Point &);
+ void JustifyAreaTimer();
+ inline void EnterArea();
+
+ void RstMBDownFlags();
+
+ void ChangeFly( BYTE nDir, BOOL bWeb = FALSE );
+
+ BOOL EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos);
+ BOOL RulerClook( SwView& , const MouseEvent& rMEvt);
+
+ //Hilfsfunktionen fuer D&D
+ void DropCleanup();
+ void CleanupDropUserMarker();
+
+
+ /*
+ * Handler fuer das Weiterscrollen, wenn der Mauspointer innerhalb eines
+ * Drag-Vorgangs ausserhalb des EditWin stehen bleibt. In regelmaessigen
+ * Intervallen wird die Selektion in Richtung der Mausposition
+ * vergroessert.
+ */
+ DECL_LINK( TimerHandler, Timer * );
+ void StartDDTimer();
+ void StopDDTimer(SwWrtShell *, const Point &);
+ DECL_LINK( DDHandler, Timer * );
+
+ // timer for ANY-KeyInut question without a following KeyInputEvent
+ DECL_LINK( KeyInputFlushHandler, Timer * );
+
+ // Timer fuer verschachtelte KeyInputs (z.B. fuer Tabellen)
+ DECL_LINK( KeyInputTimerHandler, Timer * );
+
+ // Timer fuer das ApplyTemplates per Maus (verkapptes Drag&Drop)
+ DECL_LINK( TemplateTimerHdl, Timer* );
+
+protected:
+
+ virtual void DataChanged( const DataChangedEvent& );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void KeyInput(const KeyEvent &rKEvt);
+
+ virtual void GetFocus();
+ virtual void LoseFocus();
+
+
+ virtual void MouseMove(const MouseEvent& rMEvt);
+ virtual void MouseButtonDown(const MouseEvent& rMEvt);
+ virtual void MouseButtonUp(const MouseEvent& rMEvt);
+ virtual void RequestHelp(const HelpEvent& rEvt);
+
+ virtual void Command( const CommandEvent& rCEvt );
+
+ virtual BOOL Drop(const DropEvent& rEvt);
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+
+public:
+
+
+ void OleToGrf();
+ void GrfToOle();
+
+ void UpdatePointer(const Point &, USHORT nButtons = 0);
+
+ BOOL IsDrawSelMode();
+ BOOL IsDrawAction() { return (bInsDraw); }
+ void SetDrawAction(BOOL bFlag) { bInsDraw = bFlag; }
+ inline UINT16 GetDrawMode(BOOL bBuf = FALSE) const { return eDrawMode; }
+ inline void SetDrawMode(UINT16 eDrwMode) { eDrawMode = eDrwMode; }
+ void StdDrawMode(USHORT nSlotId);
+ BOOL IsFrmAction() { return (bInsFrm); }
+ inline UINT16 GetBezierMode() { return eBezierMode; }
+ void SetBezierMode(UINT16 eBezMode) { eBezierMode = eBezMode; }
+ void EnterDrawTextMode(const Point& aDocPos); // DrawTextEditMode einschalten
+ void InsFrm(USHORT nCols);
+ void StopInsFrm();
+ UINT16 GetFrmColCount() const {return nInsFrmColCount;} //Spaltenzahl fuer interaktiven Rahmen
+
+
+ void SetChainMode( BOOL bOn );
+ BOOL IsChainMode() const { return bChainMode; }
+
+ void FlushInBuffer( SwWrtShell *pSh );
+
+ static void SetReplaceQuote(BOOL bOn = TRUE) { bReplaceQuote = bOn; }
+ static BOOL IsReplaceQuote() { return bReplaceQuote; }
+
+ void SetApplyTemplate(const SwApplyTemplate &);
+ SwApplyTemplate* GetApplyTemplate() const { return pApplyTempl; }
+
+ void StartExecuteDrag();
+ USHORT GetDropAction() const { return nDropAction; }
+ ULONG GetDropFormat() const { return nDropFormat; }
+
+ Color GetTextColor() { return aTextColor; }
+ void SetTextColor(const Color& rCol ) { aTextColor = rCol; }
+
+ Color GetTextBackColor()
+ { return aTextBackColor; }
+ void SetTextBackColor(const Color& rCol )
+ { aTextBackColor = rCol; }
+ void SetTextBackColorTransparent(BOOL bSet)
+ { bTransparentBackColor = bSet; }
+ BOOL IsTextBackColorTransparent()
+ { return bTransparentBackColor; }
+ void LockKeyInput(BOOL bSet){bLockInput = bSet;}
+
+ const SwView &GetView() const { return rView; }
+ SwView &GetView() { return rView; }
+
+ // Tipfenster loeschen
+ static void ClearTip();
+
+ static inline long GetDDStartPosX() { return nDDStartPosX; }
+ static inline long GetDDStartPosY() { return nDDStartPosY; }
+
+ static void _InitStaticData();
+ static void _FinitStaticData();
+
+ SwEditWin(Window *pParent, SwView &);
+ virtual ~SwEditWin();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/envimg.hxx b/sw/source/ui/inc/envimg.hxx
new file mode 100644
index 000000000000..e6f7ea7933ef
--- /dev/null
+++ b/sw/source/ui/inc/envimg.hxx
@@ -0,0 +1,138 @@
+/*************************************************************************
+ *
+ * $RCSfile: envimg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ENVIMG_HXX
+#define _ENVIMG_HXX
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+#ifndef _SFXCFGITEM_HXX //autogen
+#include <sfx2/cfgitem.hxx>
+#endif
+
+
+// enum -----------------------------------------------------------------------
+
+enum SwEnvAlign
+{
+ ENV_HOR_LEFT = 0,
+ ENV_HOR_CNTR,
+ ENV_HOR_RGHT,
+ ENV_VER_LEFT,
+ ENV_VER_CNTR,
+ ENV_VER_RGHT
+};
+
+// class SwEnvItem ------------------------------------------------------------
+
+class SwEnvItem : public SfxPoolItem
+{
+public:
+
+ String aAddrText; // Text fuer Empfaenger
+ BOOL bSend; // Absender?
+ String aSendText; // Text fuer Absender
+ long lAddrFromLeft; // Linker Abstand fuer Empfaenger (twips)
+ long lAddrFromTop; // Oberer Abstand fuer Empfaenger (twips)
+ long lSendFromLeft; // Linker Abstand fuer Absender (twips)
+ long lSendFromTop; // Oberer Abstand fuer Absender (twips)
+ long lWidth; // Breite des Umschlags (twips)
+ long lHeight; // Hoehe des Umschlags (twips)
+ SwEnvAlign eAlign; // Ausrichtung beim Einzug
+ BOOL bPrintFromAbove; // Von oben drucken?
+ long lShiftRight; // Verschiebung nach rechts (twips)
+ long lShiftDown; // Verschiebung nach unten (twips)
+ String aSlot; // Druckerschacht
+
+ SwEnvItem();
+ SwEnvItem(const SwEnvItem& rItem);
+
+ SwEnvItem& operator =(const SwEnvItem& rItem);
+
+ virtual int operator ==(const SfxPoolItem& rItem) const;
+
+ virtual SfxPoolItem* Clone(SfxItemPool* = 0) const;
+};
+
+// class SwEnvCfgItem -------------------------------------------------------
+
+class SwEnvCfgItem : public SfxConfigItem
+{
+protected:
+
+ virtual int Load (SvStream& rStrm);
+ virtual BOOL Store(SvStream& rStrm);
+ virtual void UseDefault();
+
+public:
+ SwEnvItem aEnvItem;
+ SwEnvCfgItem();
+
+ virtual String GetName() const;
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/envlop.hxx b/sw/source/ui/inc/envlop.hxx
new file mode 100644
index 000000000000..e27815d453f5
--- /dev/null
+++ b/sw/source/ui/inc/envlop.hxx
@@ -0,0 +1,181 @@
+/*************************************************************************
+ *
+ * $RCSfile: envlop.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ENVLOP_HXX
+#define _ENVLOP_HXX
+
+#ifdef VCL
+#ifndef _SV_MEDIT_HXX
+#include <svtools/svmedit.hxx>
+#endif
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+
+#include "envimg.hxx"
+
+#define GetFldVal(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP))
+#define SetFldVal(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP)
+
+class SwEnvPage;
+class SwEnvFmtPage;
+class SwWrtShell;
+class Printer;
+
+// class SwEnvPreview ---------------------------------------------------------
+
+class SwEnvPreview : public Window
+{
+ void Paint(const Rectangle&);
+
+public:
+
+ SwEnvPreview(SfxTabPage* pParent, const ResId& rResID);
+ ~SwEnvPreview();
+};
+
+// class SwEnvDlg -----------------------------------------------------------
+
+class SwEnvDlg : public SfxTabDialog
+{
+friend class SwEnvPage;
+friend class SwEnvFmtPage;
+friend class SwEnvPrtPage;
+friend class SwEnvPreview;
+
+ String sInsert;
+ String sChange;
+ SwEnvItem aEnvItem;
+ SwWrtShell *pSh;
+ Printer *pPrinter;
+ SfxItemSet *pAddresseeSet;
+ SfxItemSet *pSenderSet;
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+ virtual short Ok();
+
+public:
+ SwEnvDlg(Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, BOOL bInsert);
+ ~SwEnvDlg();
+};
+
+// class SwEnvPage ----------------------------------------------------------
+
+class SwEnvPage : public SfxTabPage
+{
+ FixedText aAddrText;
+ MultiLineEdit aAddrEdit;
+ FixedText aDatabaseFT;
+ ListBox aDatabaseLB;
+ FixedText aTableFT;
+ ListBox aTableLB;
+ ImageButton aInsertBT;
+ FixedText aDBFieldFT;
+ ListBox aDBFieldLB;
+ CheckBox aSenderBox;
+ MultiLineEdit aSenderEdit;
+ SwEnvPreview aPreview;
+
+ SwWrtShell* pSh;
+ String sActDBName;
+
+ SwEnvPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwEnvPage();
+
+ DECL_LINK( DatabaseHdl, ListBox * );
+ DECL_LINK( FieldHdl, Button * );
+ DECL_LINK( SenderHdl, Button * );
+
+ void InitDatabaseBox();
+
+ SwEnvDlg* GetParent() {return (SwEnvDlg*) SfxTabPage::GetParent()->GetParent();}
+
+public:
+
+ static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet* pSet = 0);
+ void FillItem(SwEnvItem& rItem);
+ virtual BOOL FillItemSet(SfxItemSet& rSet);
+ virtual void Reset(const SfxItemSet& rSet);
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/fldedt.hxx b/sw/source/ui/inc/fldedt.hxx
new file mode 100644
index 000000000000..610635dd3d06
--- /dev/null
+++ b/sw/source/ui/inc/fldedt.hxx
@@ -0,0 +1,108 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldedt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _FLDEDT_HXX
+#define _FLDEDT_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+
+class Window;
+class SfxItemSet;
+class SwView;
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwFldEditDlg : public SfxSingleTabDialog
+{
+ SwWrtShell* pSh;
+ ImageButton aPrevBT;
+ ImageButton aNextBT;
+ PushButton aAddressBT;
+
+ DECL_LINK( AddressHdl, PushButton *pBt = 0 );
+ DECL_LINK( NextPrevHdl, Button *pBt = 0 );
+
+ void Init();
+ SfxTabPage* CreatePage(USHORT nGroup);
+
+public:
+
+ SwFldEditDlg(SwView& rVw);
+ ~SwFldEditDlg();
+
+ DECL_LINK( OKHdl, Button * );
+
+ virtual short Execute();
+
+ void EnableInsert(BOOL bEnable);
+ void InsertHdl();
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/fldmgr.hxx b/sw/source/ui/inc/fldmgr.hxx
new file mode 100644
index 000000000000..31d043dbe2a0
--- /dev/null
+++ b/sw/source/ui/inc/fldmgr.hxx
@@ -0,0 +1,273 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldmgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _FLDMGR_HXX
+#define _FLDMGR_HXX
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+#include "swtypes.hxx"
+
+#ifdef REPLACE_OFADBMGR
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
+#include <com/sun/star/uno/Reference.h>
+#endif
+namespace com{namespace sun{namespace star{namespace container{
+ class XNameAccess;
+}}}}
+#else
+#endif
+
+class SwWrtShell;
+class SwField;
+class SwFieldType;
+class SwFmtRefMark;
+class SbModule;
+class SvxMacroItem;
+class ListBox;
+class SvNumberFormatter;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Shell setzen auf der der SwFldMgr arbeitet
+ --------------------------------------------------------------------*/
+
+void SetFldMgrShell(SwWrtShell* pSh);
+
+/*--------------------------------------------------------------------
+ Beschreibung: Die Gruppen von Feldern
+ --------------------------------------------------------------------*/
+
+enum SwFldGroups
+{
+ GRP_DOC,
+ GRP_FKT,
+ GRP_REF,
+ GRP_REG,
+ GRP_DB,
+ GRP_VAR
+};
+
+struct SwFldGroupRgn
+{
+ USHORT nStart;
+ USHORT nEnd;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der FeldManager handelt das Einfuegen von Felder
+ ueber Command-Strings
+ --------------------------------------------------------------------*/
+
+class SwFldMgr
+{
+private:
+ SvStringsDtor aSubLst;
+
+ SwField* pCurFld;
+ SbModule* pModule;
+ const SvxMacroItem* pMacroItem;
+ SwWrtShell* pWrtShell; // darf auch NULL sein!
+ String aCurPar1;
+ String aCurPar2;
+ String sCurFrame;
+
+ String sMacroPath;
+
+ ULONG nCurFmt;
+ BOOL bEvalExp;
+
+ USHORT GetCurrLanguage() const;
+
+#ifdef REPLACE_OFADBMGR
+ com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> xDBContext;
+
+ com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> GetDBContext();
+#endif
+
+public:
+ SwFldMgr(SwWrtShell* pSh = 0);
+ ~SwFldMgr();
+
+ // Feld einfuegen ueber TypeId (TYP_ ...)
+ BOOL InsertFld( USHORT nTypeId,
+ USHORT nSubType,
+ const String& rPar1,
+ const String& rPar2,
+ ULONG nFormatId,
+ SwWrtShell* pSh = NULL,
+ sal_Unicode cSeparator = ' ');
+
+ BOOL InsertURL( const String& rName,
+ const String& rVal,
+ const String& rFrame,
+ const SvxMacroItem* pItem = 0);
+
+ // Direkt das aktuelle Feld aendern
+ void UpdateCurFld(ULONG nFormat,
+ const String& rPar1,
+ const String& rPar2);
+
+ inline const String& GetCurFldPar1() const;
+ inline const String& GetCurFldPar2() const;
+ inline const ULONG GetCurFldFmt() const;
+
+ // Ein Feld ermitteln
+ SwField* GetCurFld();
+
+ // Zugriff auf Feldtypen
+ void RemoveDBTypes();
+ void InsertFldType(SwFieldType& rType);
+
+ BOOL ChooseMacro(const String &rSelMacro = aEmptyStr);
+ inline void SetMacroPath(const String& rPath) { sMacroPath = rPath; }
+ inline const String& GetMacroPath() const { return (sMacroPath); }
+ inline void SetMacroModule(SbModule* pMod) { pModule = pMod; }
+
+ // Vorheriger Naechster gleichen Typ
+ BOOL GoNextPrev( BOOL bNext = TRUE, SwFieldType* pTyp = 0 );
+ BOOL GoNext( SwFieldType* pTyp = 0 ) { return GoNextPrev( TRUE, pTyp ); }
+ BOOL GoPrev( SwFieldType* pTyp = 0 ) { return GoNextPrev( FALSE, pTyp ); }
+
+ // Setzen von Werten aus Benutzerfeldern (BASIC)
+ //
+ BOOL SetFieldValue(const String &rFieldName,
+ const String &rValue);
+
+ // Erfragen von Werten aus Datenbankfeldern (BASIC )
+ String GetDataBaseFieldValue(const String &rDBName, const String &rFieldName, SwWrtShell* pSh);
+#ifdef REPLACE_OFADBMGR
+ BOOL IsDBNumeric(const String& rDBName, const String& rTblQryName,
+ BOOL bIsTable, const String& rFldName);
+#else
+ BOOL IsDBNumeric(const String& rDBName, USHORT nColumn);
+ BOOL IsDBNumeric(const String& rDBName, const String& rFldName);
+#endif
+
+ // RefMark mit Namen organisieren
+ BOOL CanInsertRefMark( const String& rStr );
+
+
+ // Zugriff ueber ResId auf Feldtypen
+ USHORT GetFldTypeCount(USHORT nResId = USHRT_MAX) const;
+ SwFieldType* GetFldType(USHORT nResId, USHORT nId = 0) const;
+ SwFieldType* GetFldType(USHORT nResId, const String& rName) const;
+
+ void RemoveFldType(USHORT nResId, USHORT nId = 0);
+ void RemoveFldType(USHORT nResId, const String& rName);
+
+ // Zugriff ueber TypeId aus dem Dialog
+ // Ids fuer einen Bereich von Feldern
+ const SwFldGroupRgn& GetGroupRange(BOOL bHtmlMode, USHORT nGrpId) const;
+ USHORT GetGroup(BOOL bHtmlMode, USHORT nTypeId, USHORT nSubType = 0) const;
+
+ // TypeId des aktuellen Feldes
+ USHORT GetCurTypeId() const;
+ // TypeId fuer einen konkrete Pos in der Liste
+ USHORT GetTypeId(USHORT nPos) const;
+ // Name des Typen in der Liste der Felder
+ const String& GetTypeStr(USHORT nPos) const;
+
+ // Pos in der Liste der Felder
+ USHORT GetPos(USHORT nTypeId) const;
+
+ // Untertypen zu einem Typ
+ SvStringsDtor& GetSubTypes(USHORT nId);
+
+ BOOL SetUserSubType(const String& rName, USHORT nSubType);
+
+ // Formate zu einem Typ
+ USHORT GetFormatCount(USHORT nTypeId, BOOL bIsText, BOOL bHtmlMode = FALSE) const;
+ String GetFormatStr(USHORT nTypeId, ULONG nFormatId) const;
+ USHORT GetFormatId(USHORT nTypeId, ULONG nFormatId) const;
+ ULONG GetDefaultFormat(USHORT nTypeId, BOOL bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L);
+
+ // Evaluierung der ExpressionFelder ausschalten fuer das Einfuegen
+ // vieler Expressionfelder (siehe Etiketten)
+ //
+ inline void SetEvalExpFlds(BOOL bEval);
+ void EvalExpFlds(SwWrtShell* pSh = NULL);
+
+ // public, damit sie im fldini initialisiert werden koennen.
+ static String *pDate, *pTime;
+
+};
+
+inline void SwFldMgr::SetEvalExpFlds(BOOL bEval)
+ { bEvalExp = bEval; }
+
+inline const String& SwFldMgr::GetCurFldPar1() const
+ { return aCurPar1; }
+
+inline const String& SwFldMgr::GetCurFldPar2() const
+ { return aCurPar2; }
+
+inline const ULONG SwFldMgr::GetCurFldFmt() const
+ { return nCurFmt; }
+
+
+#endif
+
diff --git a/sw/source/ui/inc/fldwrap.hxx b/sw/source/ui/inc/fldwrap.hxx
new file mode 100644
index 000000000000..4784d04265cf
--- /dev/null
+++ b/sw/source/ui/inc/fldwrap.hxx
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: fldwrap.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _FLDWRAP_HXX
+#define _FLDWRAP_HXX
+
+#include "chldwrap.hxx"
+
+class SwFldDlgWrapper : public SwChildWinWrapper
+{
+public:
+ SwFldDlgWrapper( Window* pParent, USHORT nId,
+ SfxBindings* pBindings, SfxChildWinInfo* pInfo );
+
+ SFX_DECL_CHILDWINDOW(SwFldDlgWrapper);
+
+ virtual BOOL ReInitDlg(SwDocShell *pDocSh);
+ void ShowPage(USHORT nPage = 0);
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/fontcfg.hxx b/sw/source/ui/inc/fontcfg.hxx
new file mode 100644
index 000000000000..5e83b605d7d9
--- /dev/null
+++ b/sw/source/ui/inc/fontcfg.hxx
@@ -0,0 +1,154 @@
+/*************************************************************************
+ *
+ * $RCSfile: fontcfg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _FONTCFG_HXX
+#define _FONTCFG_HXX
+
+#ifndef _UTL_CONFIGITEM_HXX_
+#include <unotools/configitem.hxx>
+#endif
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+
+#define FONT_STANDARD 0
+#define FONT_OUTLINE 1
+#define FONT_LIST 2
+#define FONT_CAPTION 3
+#define FONT_INDEX 4
+
+class SwStdFontConfig : public utl::ConfigItem
+{
+ String sFontStandard;
+ String sFontOutline ;
+ String sFontList ;
+ String sFontCaption ;
+ String sFontIndex ;
+
+ com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
+
+public:
+ SwStdFontConfig();
+ ~SwStdFontConfig();
+
+ virtual void Commit();
+
+ const String& GetFontStandard() const {return sFontStandard ;}
+ const String& GetFontOutline() const {return sFontOutline ;}
+ const String& GetFontList () const {return sFontList ;}
+ const String& GetFontCaption() const {return sFontCaption ;}
+ const String& GetFontIndex () const {return sFontIndex ;}
+
+ BOOL IsFontDefault(USHORT nFontType) const;
+
+ inline void SetFontStandard(const String& rSet);
+ inline void SetFontOutline(const String& rSet);
+ inline void SetFontList (const String& rSet);
+ inline void SetFontCaption(const String& rSet);
+ inline void SetFontIndex (const String& rSet);
+
+ static String GetDefaultFor(USHORT nFontType);
+};
+
+inline void SwStdFontConfig::SetFontStandard (const String& rSet)
+{
+ if( sFontStandard != rSet)
+ {
+ SetModified();
+ sFontStandard = rSet;
+ }
+}
+inline void SwStdFontConfig::SetFontOutline(const String& rSet)
+{
+ if( sFontOutline != rSet)
+ {
+ SetModified();
+ sFontOutline = rSet;
+ }
+}
+inline void SwStdFontConfig::SetFontList (const String& rSet)
+{
+ if(sFontList != rSet)
+ {
+ SetModified();
+ sFontList = rSet;
+ }
+}
+
+inline void SwStdFontConfig::SetFontCaption(const String& rSet)
+{
+ if(sFontCaption != rSet)
+ {
+ SetModified();
+ sFontCaption = rSet;
+ }
+}
+
+inline void SwStdFontConfig::SetFontIndex (const String& rSet)
+{
+ if(sFontIndex != rSet)
+ {
+ SetModified();
+ sFontIndex = rSet;
+ }
+}
+#endif
+
+
diff --git a/sw/source/ui/inc/formedt.hxx b/sw/source/ui/inc/formedt.hxx
new file mode 100644
index 000000000000..cccfb99b0c2f
--- /dev/null
+++ b/sw/source/ui/inc/formedt.hxx
@@ -0,0 +1,148 @@
+/*************************************************************************
+ *
+ * $RCSfile: formedt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _FORMEDT_HXX
+#define _FORMEDT_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#include "toxe.hxx"
+
+class SwWrtShell;
+class SwForm;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Markierung fuer Verzeichniseintrag einfuegen
+ --------------------------------------------------------------------*/
+
+class SwIdxFormDlg : public SvxStandardDialog
+{
+ DECL_LINK( EntryHdl, Button * );
+ DECL_LINK( PageHdl, Button * );
+ DECL_LINK( TabHdl, Button * );
+ DECL_LINK( JumpHdl, Button * );
+ DECL_LINK( StdHdl, Button * );
+ DECL_LINK( SelectHdl, ListBox * );
+ DECL_LINK( EnableSelectHdl, ListBox * );
+ DECL_LINK( DoubleClickHdl, Button * );
+ DECL_LINK( ModifyHdl, Edit * );
+ DECL_LINK( AssignHdl, Button * );
+ void UpdatePattern();
+ void Apply();
+
+ ListBox aEntryLB;
+ OKButton aOKBtn;
+ CancelButton aCancelBT;
+ FixedText aLevelFT;
+ Edit aEntryED;
+ PushButton aEntryBT;
+ PushButton aTabBT;
+ PushButton aPageBT;
+ PushButton aJumpBT;
+ GroupBox aEntryGB;
+ FixedText aLevelFT2;
+ ListBox aLevelLB;
+ FixedText aTemplateFT;
+ ListBox aParaLayLB;
+ PushButton aStdBT;
+ PushButton aAssignBT;
+ GroupBox aFormatGB;
+
+ SwWrtShell &rSh;
+ SwForm *pForm;
+ USHORT nAktLevel;
+ BOOL bLastLinkIsEnd;
+
+public:
+ SwIdxFormDlg( Window* pParent, SwWrtShell &rShell, const SwForm& rForm );
+ ~SwIdxFormDlg();
+
+ static BOOL IsNoNum(SwWrtShell& rSh, const String& rName);
+ const SwForm& GetTOXForm();
+};
+
+inline const SwForm& SwIdxFormDlg::GetTOXForm()
+{
+ return *pForm;
+}
+
+#endif
diff --git a/sw/source/ui/inc/frmdlg.hxx b/sw/source/ui/inc/frmdlg.hxx
new file mode 100644
index 000000000000..aa12e64a2ac2
--- /dev/null
+++ b/sw/source/ui/inc/frmdlg.hxx
@@ -0,0 +1,102 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _FRMDLG_HXX
+#define _FRMDLG_HXX
+
+#include "globals.hrc"
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rahmendialog
+ --------------------------------------------------------------------*/
+
+class SwFrmDlg : public SfxTabDialog
+{
+ BOOL bFormat;
+ BOOL bNew;
+ const SfxItemSet& rSet;
+ USHORT nDlgType;
+ SwWrtShell* pWrtShell;
+
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+
+public:
+ SwFrmDlg( SfxViewFrame *pFrame, Window *pParent,
+ const SfxItemSet& rCoreSet,
+ BOOL bNewFrm = TRUE,
+ USHORT nResType = DLG_FRM_STD,
+ BOOL bFmt = FALSE,
+ UINT16 nDefPage = 0,
+ const String* pFmtStr = 0);
+
+ ~SwFrmDlg();
+
+ inline SwWrtShell* GetWrtShell() { return pWrtShell; }
+};
+
+
+#endif // _FRMDLG_HXX
diff --git a/sw/source/ui/inc/frmmgr.hxx b/sw/source/ui/inc/frmmgr.hxx
new file mode 100644
index 000000000000..f74092c7a840
--- /dev/null
+++ b/sw/source/ui/inc/frmmgr.hxx
@@ -0,0 +1,283 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmmgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _FRMMGR_HXX
+#define _FRMMGR_HXX
+
+#include "swtypes.hxx"
+#include "frmatr.hxx"
+
+#ifndef _SVX_SVXENUM_HXX //autogen
+#include <svx/svxenum.hxx>
+#endif
+#ifndef _GEN_HXX //autogen
+#include <tools/gen.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTSRND_HXX //autogen
+#include <fmtsrnd.hxx>
+#endif
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _FMTANCHR_HXX //autogen
+#include <fmtanchr.hxx>
+#endif
+
+class SwWrtShell;
+struct SwFrmValid;
+
+class SwFmt;
+class SwFmtCol;
+
+const SwTwips DFLT_WIDTH = MM50 * 4;
+const SwTwips DFLT_HEIGHT = MM50;
+
+#define FULL_ATTRSET 0xffff
+
+#define FRMMGR_TYPE_NONE 0x00
+#define FRMMGR_TYPE_TEXT 0x01
+#define FRMMGR_TYPE_GRF 0x02
+#define FRMMGR_TYPE_OLE 0x04
+#define FRMMGR_TYPE_LABEL 0x08
+#define FRMMGR_TYPE_ENVELP 0x10
+
+class SwFlyFrmAttrMgr
+{
+ SfxItemSet aSet;
+ Point aAbsPos;
+ SwWrtShell *pOwnSh;
+
+ BOOL bAbsPos,
+ bNewFrm;
+
+ // interne Verrechnung fuer Umrandung
+ SwTwips CalcTopSpace();
+ SwTwips CalcBottomSpace();
+ SwTwips CalcLeftSpace();
+ SwTwips CalcRightSpace();
+
+ void _UpdateFlyFrm(); //Nacharbeit nach Einfuegen oder Update
+
+public:
+ SwFlyFrmAttrMgr( BOOL bNew, SwWrtShell* pSh, BYTE nType );
+
+ //CopyCtor fuer die Dialoge, zum Pruefen der Metrics
+ SwFlyFrmAttrMgr( BOOL bNew, SwWrtShell *pSh, const SfxItemSet &rSet );
+
+ inline SwWrtShell* GetShell() { return pOwnSh; }
+
+ void SetAnchor(RndStdIds eId);
+ inline RndStdIds GetAnchor() const;
+
+ void SetHorzOrientation(SwHoriOrient eOrient);
+ void SetVertOrientation(SvxFrameVertOrient eOrient);
+
+ // Absolute Position
+ void SetAbsPos(const Point& rLPoint);
+
+ // Relative Position vom Anker
+ void SetPos(const Point& rLPoint);
+ inline Point GetPos() const;
+
+ // Groesse
+ void SetSize(const Size& rLSize);
+ inline const Size& GetSize() const;
+ void SetFrmSize(const SwFmtFrmSize& rFrmSize);
+
+ inline USHORT GetHeightPercent() const;
+
+ void SetSizeType(SwFrmSize eType);
+
+ // Abstand zum Inhalt
+ void SetLRSpace( long nLeft = LONG_MAX,
+ long nRight = LONG_MAX );
+ void SetULSpace( long nTop = LONG_MAX,
+ long nBottom= LONG_MAX );
+
+ void SetWrapType(SwSurround eSurround);
+
+ void SetAnchorOnly(BOOL bSet);
+ void SetContour( BOOL bSet);
+ void SetTransparent(BOOL bTrans);
+
+ void ProtectPosSize(BOOL bProt);
+
+ void SetCol( const SwFmtCol &rCol);
+
+ // Attribute aendern und erfragen
+ void UpdateAttrMgr();
+ void UpdateFlyFrm();
+
+ // neuen Rahmen erzeugen
+ BOOL InsertFlyFrm();
+ void InsertFlyFrm(RndStdIds eAnchorType,
+ const Point &rPos,
+ const Size &rSize,
+ BOOL bAbsPos = FALSE);
+
+ // Metriken pruefen und aendern
+ void ValidateMetrics(SwFrmValid& rVal, BOOL bOnlyPercentRefValue = FALSE);
+
+ void DelAttr(USHORT nId);
+
+ // Set rausreichen
+ inline const SfxItemSet &GetAttrSet() const { return aSet; }
+ inline SfxItemSet &GetAttrSet() { return aSet; }
+ void SetAttrSet(const SfxItemSet& rSet);
+
+ inline const SwFmtVertOrient &GetVertOrient() const;
+ inline const SwFmtHoriOrient &GetHoriOrient() const;
+ inline const SvxShadowItem &GetShadow() const;
+ inline const SvxBoxItem &GetBox() const;
+ inline const SwFmtSurround &GetSurround() const;
+ inline const SwFmtFrmSize &GetFrmSize() const;
+
+ long CalcWidthSpace();
+ long CalcHeightSpace();
+
+ long CalcWidthBorder() { return CalcLeftSpace()+CalcRightSpace(); }
+ long CalcHeightBorder() { return CalcTopSpace()+CalcBottomSpace(); }
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Validierung von Metriken
+ --------------------------------------------------------------------*/
+
+struct SwFrmValid
+{
+ RndStdIds eArea;
+ SwHoriOrient eHori;
+ SvxFrameVertOrient eVert;
+ SwRelationOrient eHRel;
+ SwRelationOrient eVRel;
+ BOOL bAuto;
+ BOOL bMirror;
+
+ SwTwips nHPos;
+ SwTwips nMaxHPos;
+ SwTwips nMinHPos;
+
+ SwTwips nVPos;
+ SwTwips nMaxVPos;
+ SwTwips nMinVPos;
+
+ SwTwips nWidth;
+ SwTwips nMinWidth;
+ SwTwips nMaxWidth;
+
+ SwTwips nHeight;
+ SwTwips nMinHeight;
+ SwTwips nMaxHeight;
+
+ Size aPercentSize; // Size fuer 100%-Wert
+
+ SwFrmValid();
+};
+
+
+inline const Size& SwFlyFrmAttrMgr::GetSize() const
+{
+ return ((SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE)).GetSize();
+}
+
+inline const SwFmtVertOrient &SwFlyFrmAttrMgr::GetVertOrient() const
+{
+ return ((SwFmtVertOrient&)aSet.Get(RES_VERT_ORIENT));
+}
+inline const SwFmtHoriOrient &SwFlyFrmAttrMgr::GetHoriOrient() const
+{
+ return ((SwFmtHoriOrient &)aSet.Get(RES_HORI_ORIENT));
+}
+inline const SwFmtFrmSize& SwFlyFrmAttrMgr::GetFrmSize() const
+{
+ return ((SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE));
+}
+inline const SvxShadowItem &SwFlyFrmAttrMgr::GetShadow() const
+{
+ return ((SvxShadowItem&)aSet.Get(RES_SHADOW));
+}
+inline const SvxBoxItem &SwFlyFrmAttrMgr::GetBox() const
+{
+ return ((SvxBoxItem&)aSet.Get(RES_BOX));
+}
+inline const SwFmtSurround &SwFlyFrmAttrMgr::GetSurround() const
+{
+ return ((SwFmtSurround&)aSet.Get(RES_SURROUND));
+}
+
+inline Point SwFlyFrmAttrMgr::GetPos() const
+{
+ return Point( GetHoriOrient().GetPos(), GetVertOrient().GetPos() );
+}
+
+inline RndStdIds SwFlyFrmAttrMgr::GetAnchor() const
+{
+ return ((SwFmtAnchor&)aSet.Get(RES_ANCHOR)).GetAnchorId();
+}
+
+inline USHORT SwFlyFrmAttrMgr::GetHeightPercent() const
+{
+ return GetFrmSize().GetHeightPercent();
+}
+
+#endif
diff --git a/sw/source/ui/inc/frmpage.hxx b/sw/source/ui/inc/frmpage.hxx
new file mode 100644
index 000000000000..abb10de280d4
--- /dev/null
+++ b/sw/source/ui/inc/frmpage.hxx
@@ -0,0 +1,337 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmpage.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _FRMPAGE_HXX
+#define _FRMPAGE_HXX
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _BMPWIN_HXX
+#include <bmpwin.hxx>
+#endif
+#ifndef _FRMEX_HXX
+#include <frmex.hxx>
+#endif
+#ifndef _PRCNTFLD_HXX
+#include <prcntfld.hxx>
+#endif
+
+class SvxImportGraphicDialog;
+class SwWrtShell;
+struct FrmMap;
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rahmendialog
+ --------------------------------------------------------------------*/
+
+class SwFrmPage: public SfxTabPage
+{
+ // Size
+ FixedText aWidthFT;
+ PercentField aWidthED;
+ CheckBox aRelWidthCB;
+ FixedText aHeightFT;
+ PercentField aHeightED;
+ CheckBox aRelHeightCB;
+ CheckBox aFixedRatioCB;
+ CheckBox aAutoHeightCB;
+ GroupBox aSizeGB;
+ BOOL bWidthLastChanged;
+
+ // Anker
+ RadioButton aAnchorTypeRB;
+ RadioButton aAnchorAsCharRB;
+ ListBox aAnchorTypeLB;
+ GroupBox aTypeGB;
+
+ // Position
+ FixedText aHorizontalFT;
+ ListBox aHorizontalDLB;
+ FixedText aAtHorzPosFT;
+ MetricField aAtHorzPosED;
+ FixedText aHoriRelationFT;
+ ListBox aHoriRelationLB;
+ CheckBox aMirrorPagesCB;
+ FixedText aVerticalFT;
+ ListBox aVerticalDLB;
+ FixedText aAtVertPosFT;
+ MetricField aAtVertPosED;
+ FixedText aVertRelationFT;
+ ListBox aVertRelationLB;
+ GroupBox aPositionGB;
+ BOOL bAtHorzPosModified;
+ BOOL bAtVertPosModified;
+
+ PushButton aRealSizeBT;
+
+ // Example
+ SwFrmPagePreview aExampleWN;
+
+ BOOL bFormat;
+ BOOL bNew;
+ BOOL bHtmlMode;
+ BOOL bNoModifyHdl;
+ USHORT nHtmlMode;
+ USHORT nDlgType;
+ Size aGrfSize;
+ Size aWrap;
+ SwTwips nUpperBorder;
+ SwTwips nLowerBorder;
+
+ // Die alten Ausrichtungen
+ USHORT nOldH;
+ USHORT nOldHRel;
+ USHORT nOldV;
+ USHORT nOldVRel;
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet *pSet);
+
+
+ DECL_LINK( RangeModifyHdl, Edit * );
+ DECL_LINK( TypHdl, ListBox *pLB = 0 );
+ DECL_LINK( PosHdl, ListBox * );
+ DECL_LINK( RelHdl, ListBox * );
+ void InitPos(USHORT nId, USHORT nH, USHORT nHRel,
+ USHORT nV, USHORT nVRel,
+ long nX, long nY);
+
+ DECL_LINK( EditModifyHdl, Edit * );
+ DECL_LINK( AspectRatioCheckHdl, CheckBox * );
+ DECL_LINK( RealSizeHdl, Button * );
+ DECL_LINK( RelSizeClickHdl, CheckBox * );
+ DECL_LINK( MirrorHdl, CheckBox * );
+
+ DECL_LINK( ManualHdl, Button * );
+
+ // Beispiel aktualisieren
+ void UpdateExample();
+ DECL_LINK( ModifyHdl, Edit * );
+
+ void Init(const SfxItemSet& rSet, BOOL bReset = FALSE);
+ USHORT FillPosLB(FrmMap *pMap, USHORT nAlign, ListBox &rLB);
+ ULONG FillRelLB(FrmMap *pMap, USHORT nLBSelPos, USHORT nAlign, USHORT nRel, ListBox &rLB);
+ USHORT GetMapPos(FrmMap *pMap, ListBox &rAlignLB);
+ USHORT GetAlignment(FrmMap *pMap, USHORT nMapPos, ListBox &rAlignLB, ListBox &rRelationLB);
+ USHORT GetRelation(FrmMap *pMap, ListBox &rRelationLB);
+ USHORT GetAnchor();
+
+ SwFrmPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwFrmPage();
+
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+
+ void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; }
+ void SetFormatUsed(BOOL bFmt) { bFormat = bFmt; }
+ void SetFrmType(USHORT nType) { nDlgType = nType; }
+};
+
+class SwGrfExtPage: public SfxTabPage
+{
+ BmpWindow aBmpWin;
+
+ GroupBox aConnectGB;
+ FixedText aConnectFT;
+ Edit aConnectED;
+ PushButton aBrowseBT;
+
+ // Spiegeln
+ GroupBox aMirrorFrm;
+ CheckBox aMirrorHorzBox;
+ CheckBox aMirrorVertBox;
+// ListBox aMirrorPagesLB;
+ RadioButton aAllPagesRB;
+ RadioButton aLeftPagesRB;
+ RadioButton aRightPagesRB;
+// FixedText aMirrorPagesFT;
+
+ String aFilterName;
+ String aGrfName, aNewGrfName;
+
+ SvxImportGraphicDialog* pGrfDlg;
+
+ BOOL bHtmlMode;
+
+ // Handler fuer Spiegeln
+ DECL_LINK( MirrorHdl, CheckBox * );
+ DECL_LINK( BrowseHdl, Button * );
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ SwGrfExtPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwGrfExtPage();
+
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+ virtual int DeactivatePage(SfxItemSet *pSet);
+};
+
+
+class SwFrmURLPage : public SfxTabPage
+{
+ //Hyperlink
+ GroupBox aHyperLinkGB;
+ FixedText aURLFT;
+ Edit aURLED;
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aFrameFT;
+ ComboBox aFrameCB;
+ PushButton aSearchPB;
+
+ //Image map
+ GroupBox aImageGB;
+ CheckBox aServerCB;
+ CheckBox aClientCB;
+
+ DECL_LINK( InsertFileHdl, PushButton * );
+
+
+ SwFrmURLPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwFrmURLPage();
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+};
+
+/*-----------------13.11.96 12.59-------------------
+
+--------------------------------------------------*/
+
+class SwFrmAddPage : public SfxTabPage
+{
+ FixedText aNameFT;
+ Edit aNameED;
+ FixedText aAltNameFT;
+ Edit aAltNameED;
+ FixedText aPrevFT;
+ Edit aPrevED;
+ FixedText aNextFT;
+ Edit aNextED;
+ GroupBox aNamesGB;
+
+ CheckBox aProtectContentCB;
+ CheckBox aProtectFrameCB;
+ CheckBox aProtectSizeCB;
+ GroupBox aProtectGB;
+
+ CheckBox aEditInReadonlyCB;
+ CheckBox aPrintFrameCB;
+ GroupBox aExtGB;
+
+ SwWrtShell* pWrtSh;
+
+ USHORT nDlgType;
+ BOOL bHtmlMode;
+ BOOL bFormat;
+ BOOL bNew;
+
+ DECL_LINK(EditModifyHdl, Edit*);
+
+ SwFrmAddPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwFrmAddPage();
+
+public:
+
+ static SfxTabPage* Create(Window *pParent, const SfxItemSet &rSet);
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+
+ void SetFormatUsed(BOOL bFmt) { bFormat = bFmt; }
+ void SetFrmType(USHORT nType) { nDlgType = nType; }
+ void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; }
+ void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; }
+
+};
+
+#endif // _FRMPAGE_HXX
diff --git a/sw/source/ui/inc/frmsh.hxx b/sw/source/ui/inc/frmsh.hxx
new file mode 100644
index 000000000000..6172f3d3512c
--- /dev/null
+++ b/sw/source/ui/inc/frmsh.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWFRMSH_HXX
+#define _SWFRMSH_HXX
+
+#include "basesh.hxx"
+
+class SwFrameShell: public SwBaseShell
+{
+
+public:
+ SFX_DECL_INTERFACE(SW_FRAMESHELL);
+
+ SwFrameShell(SwView &rView);
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void ExecFrameStyle(SfxRequest& rReq);
+ void GetLineStyleState(SfxItemSet &rSet);
+ void StateInsert(SfxItemSet &rSet);
+
+ void StateStatusline(SfxItemSet &rSet);
+
+ void GetBckColState(SfxItemSet &rSet);
+ void ExecBckCol(SfxRequest& rReq);
+};
+
+#endif
diff --git a/sw/source/ui/inc/frmui.hrc b/sw/source/ui/inc/frmui.hrc
new file mode 100644
index 000000000000..677d76703f45
--- /dev/null
+++ b/sw/source/ui/inc/frmui.hrc
@@ -0,0 +1,176 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmui.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _FRMUI_HRC
+#define _FRMUI_HRC
+
+#include "rcid.hrc"
+#include "globals.hrc"
+
+#define DLG_FRMOPT (RC_FRMDLG_BEGIN + 1)
+#define DLG_PATTERN (RC_FRMDLG_BEGIN + 2)
+#define DLG_BORDER (RC_FRMDLG_BEGIN + 3)
+#define DLG_COLUMN (RC_FRMDLG_BEGIN + 4)
+#define DLG_FOOTNOTE (RC_FRMDLG_BEGIN + 5)
+#define DLG_INSERT_FOOTNOTE (RC_FRMDLG_BEGIN + 6)
+
+#define DLG_VIEW_HEADER (RC_FRMDLG_BEGIN + 8)
+#define DLG_FORMAT_COLUMN (RC_FRMDLG_BEGIN + 10)
+#define DLG_CAPTION (RC_FRMDLG_BEGIN + 11)
+#define DLG_SEQUENCE_OPTION (RC_FRMDLG_BEGIN + 12)
+
+#define TP_FOOTNOTEOPTION (RC_FRMDLG_BEGIN + 12)
+#define TP_ENDNOTEOPTION (RC_FRMDLG_BEGIN + 13)
+
+#define STR_PATTERN_BRD (RC_FRMDLG_BEGIN + 13)
+#define STR_SHPATTERN (RC_FRMDLG_BEGIN + 14)
+#define STR_LNPATTERN (RC_FRMDLG_BEGIN + 15)
+#define STR_FRMUI_BORDER (RC_FRMDLG_BEGIN + 16)
+#define STR_FRMUI_PATTERN (RC_FRMDLG_BEGIN + 17)
+#define STR_FRMUI_WRAP (RC_FRMDLG_BEGIN + 18)
+
+#define BMP_PORTRAIT (RC_FRMDLG_BEGIN + 16)
+#define BMP_LANDSCAPE (RC_FRMDLG_BEGIN + 17)
+#define BMP_BEGIN (RC_FRMDLG_BEGIN + 18)
+#define BMP_WRAP (BMP_BEGIN)
+#define BMP_LEFT (BMP_BEGIN+1)
+#define BMP_RIGHT (BMP_BEGIN+2)
+#define BMP_OPAQUE (BMP_BEGIN+3)
+#define BMP_OPAQUET (BMP_BEGIN+4)
+#define BMP_NOWRAP (BMP_BEGIN+5)
+
+#define BMP_END (BMP_NOWRAP)
+
+#define MN_OPTION (BMP_END + 1)
+#define MN_COLUMN (BMP_END + 2)
+#define MN_PAPERSZ (BMP_END + 3)
+#define MN_BACKGROUND (BMP_END + 4)
+#define MN_FRAME (BMP_END + 5)
+#define STR_BACKGROUND (BMP_END + 6)
+#define MN_FOOTNOTE (BMP_END + 7)
+
+#define STR_FRMDLG_BEGIN (MN_FOOTNOTE + 1)
+
+#define STR_TOPPRT (STR_FRMDLG_BEGIN + 1)
+#define STR_FROMBOTTOM (STR_FRMDLG_BEGIN + 2)
+#define STR_FROMTOP (STR_FRMDLG_BEGIN + 3)
+#define STR_BELOW (STR_FRMDLG_BEGIN + 4)
+
+#define STR_LEFT (STR_FRMDLG_BEGIN + 5)
+#define STR_RIGHT (STR_FRMDLG_BEGIN + 6)
+#define STR_FROMLEFT (STR_FRMDLG_BEGIN + 7)
+#define STR_MIR_LEFT (STR_FRMDLG_BEGIN + 8)
+#define STR_MIR_RIGHT (STR_FRMDLG_BEGIN + 9)
+#define STR_MIR_FROMLEFT (STR_FRMDLG_BEGIN + 10)
+
+#define STR_BORDER (STR_FRMDLG_BEGIN + 16)
+#define STR_COLUMN (STR_FRMDLG_BEGIN + 17)
+#define STR_PARA (STR_FRMDLG_BEGIN + 18)
+#define STR_CHAR (STR_FRMDLG_BEGIN + 19)
+
+#define STR_FRAME (STR_FRMDLG_BEGIN + 20)
+#define STR_PRTAREA (STR_FRMDLG_BEGIN + 21)
+#define STR_REL_PG_LEFT (STR_FRMDLG_BEGIN + 22)
+#define STR_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 23)
+#define STR_REL_FRM_LEFT (STR_FRMDLG_BEGIN + 24)
+#define STR_REL_FRM_RIGHT (STR_FRMDLG_BEGIN + 25)
+#define STR_MIR_REL_PG_LEFT (STR_FRMDLG_BEGIN + 26)
+#define STR_MIR_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 27)
+#define STR_MIR_REL_FRM_LEFT (STR_FRMDLG_BEGIN + 28)
+#define STR_MIR_REL_FRM_RIGHT (STR_FRMDLG_BEGIN + 29)
+#define STR_REL_PG_FRAME (STR_FRMDLG_BEGIN + 30)
+#define STR_REL_PG_PRTAREA (STR_FRMDLG_BEGIN + 31)
+#define STR_REL_BASE (STR_FRMDLG_BEGIN + 32)
+#define STR_REL_CHAR (STR_FRMDLG_BEGIN + 33)
+#define STR_REL_ROW (STR_FRMDLG_BEGIN + 34)
+#define STR_REL_BORDER (STR_FRMDLG_BEGIN + 35)
+#define STR_REL_PRTAREA (STR_FRMDLG_BEGIN + 36)
+#define STR_FLY_REL_PG_LEFT (STR_FRMDLG_BEGIN + 37)
+#define STR_FLY_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 38)
+#define STR_FLY_REL_PG_FRAME (STR_FRMDLG_BEGIN + 39)
+#define STR_FLY_REL_PG_PRTAREA (STR_FRMDLG_BEGIN + 40)
+#define STR_FLY_MIR_REL_PG_LEFT (STR_FRMDLG_BEGIN + 41)
+#define STR_FLY_MIR_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 42)
+#define STR_FLY_MIR_REL_PG_FRAME (STR_FRMDLG_BEGIN + 43)
+#define STR_FLY_MIR_REL_PG_PRTAREA (STR_FRMDLG_BEGIN + 44)
+
+#define STR_OLE_INSERT (STR_FRMDLG_BEGIN + 45)
+#define STR_OLE_EDIT (STR_FRMDLG_BEGIN + 46)
+#define STR_COLL_HEADER (STR_FRMDLG_BEGIN + 47)
+
+#define MSG_COLUMN_ERR_BOUNDWIDTH (STR_FRMDLG_BEGIN + 48)
+#define STR_EDIT_GRF (STR_FRMDLG_BEGIN + 49)
+
+#define STR_LINE_TOP (STR_FRMDLG_BEGIN + 50)
+#define STR_LINE_BOTTOM (STR_FRMDLG_BEGIN + 51)
+#define STR_LINE_CENTER (STR_FRMDLG_BEGIN + 52)
+#define STR_CHAR_TOP (STR_FRMDLG_BEGIN + 53)
+#define STR_CHAR_BOTTOM (STR_FRMDLG_BEGIN + 54)
+#define STR_CHAR_CENTER (STR_FRMDLG_BEGIN + 55)
+
+#define FRMDLG_ACT_END STR_CHAR_CENTER
+
+#if FRMDLG_ACT_END > RC_FRMDLG_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+
+#endif // FRMUI_HRC
diff --git a/sw/source/ui/inc/globals.h b/sw/source/ui/inc/globals.h
new file mode 100644
index 000000000000..a555a8755991
--- /dev/null
+++ b/sw/source/ui/inc/globals.h
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * $RCSfile: globals.h,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _GLOBALS_H
+#define _GLOBALS_H
+
+enum SwChangeState
+{
+ STATE_OFF = 0,
+ STATE_ON = 1,
+ STATE_TOGGLE = 2
+};
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.2 2000/09/18 16:05:42 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.1 1994/09/20 12:07:48 MS
+ Initial revision.
+
+
+ Rev 1.0 20 Sep 1994 14:07:48 MS
+ Initial revision.
+ -------------------------------------------------------------------------*/
+#endif
diff --git a/sw/source/ui/inc/globdoc.hrc b/sw/source/ui/inc/globdoc.hrc
new file mode 100644
index 000000000000..ad8e21ba40bd
--- /dev/null
+++ b/sw/source/ui/inc/globdoc.hrc
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: globdoc.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _GLOBDOC_HRC
+#define _GLOBDOC_HRC
+
+#include "rcid.hrc"
+
+#define STR_HUMAN_SWGLOBDOC_NAME (RC_GLOBDOC_BEGIN + 2)
+#define STR_WRITER_GLOBALDOC_FULLTYPE_40 (RC_GLOBDOC_BEGIN + 3)
+#define STR_WRITER_GLOBALDOC_FULLTYPE (RC_GLOBDOC_BEGIN + 4)
+
+// ------------------------------------------------------------------------
+
+#define GLOBDOC_ACT_END STR_WRITER_GLOBALDOC_FULLTYPE
+
+
+#if GLOBDOC_ACT_END > RC_GLOBDOC_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
diff --git a/sw/source/ui/inc/glosbib.hxx b/sw/source/ui/inc/glosbib.hxx
new file mode 100644
index 000000000000..1c8f112bb429
--- /dev/null
+++ b/sw/source/ui/inc/glosbib.hxx
@@ -0,0 +1,163 @@
+/*************************************************************************
+ *
+ * $RCSfile: glosbib.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _GLOSBIB_HXX
+#define _GLOSBIB_HXX
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _SVTABBX_HXX //autogen
+#include <svtools/svtabbx.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+class SwGlossaryHdl;
+class SvStrings;
+
+class FEdit : public Edit
+{
+ public:
+ FEdit(Window * pParent, const ResId& rResId) :
+ Edit(pParent, rResId){}
+
+ virtual void KeyInput( const KeyEvent& rKEvent );
+};
+/* -----------------------------08.02.00 15:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+struct GlosBibUserData
+{
+ String sPath;
+ String sGroupName;
+ String sGroupTitle;
+};
+class SwGlossaryGroupTLB : public SvTabListBox
+{
+public:
+ SwGlossaryGroupTLB(Window* pParent, const ResId& rResId) :
+ SvTabListBox(pParent, rResId) {}
+
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ void Clear();
+};
+
+class SwGlossaryGroupDlg : public SvxStandardDialog
+{
+
+ FEdit aNameED;
+ ListBox aPathLB;
+ SwGlossaryGroupTLB aGroupTLB;
+
+ OKButton aOkPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+ PushButton aNewPB;
+ PushButton aDelPB;
+ PushButton aRenamePB;
+ GroupBox aBibGB;
+
+ SvStrings* pRemovedArr;
+ SvStrings* pInsertedArr;
+ SvStrings* pRenamedArr;
+
+ SwGlossaryHdl *pGlosHdl;
+
+ String sCreatedGroup;
+
+ BOOL IsDeleteAllowed(const String &rGroup);
+
+protected:
+ virtual void Apply();
+ DECL_LINK( SelectHdl, SvTabListBox* );
+ DECL_LINK( NewHdl, Button* );
+ DECL_LINK( DeleteHdl, Button* );
+ DECL_LINK( ModifyHdl, Edit* );
+ DECL_LINK( RenameHdl, Button* );
+
+public:
+ SwGlossaryGroupDlg(Window * pParent,
+ const SvStrings* pPathArr,
+ SwGlossaryHdl *pGlosHdl);
+ ~SwGlossaryGroupDlg();
+
+ const String& GetCreatedGroupName() const {return sCreatedGroup;}
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/glosdoc.hxx b/sw/source/ui/inc/glosdoc.hxx
new file mode 100644
index 000000000000..9eb9ab72ac74
--- /dev/null
+++ b/sw/source/ui/inc/glosdoc.hxx
@@ -0,0 +1,132 @@
+/*************************************************************************
+ *
+ * $RCSfile: glosdoc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _GLOSDOC_HXX
+#define _GLOSDOC_HXX
+
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XAUTOTEXTGROUP_HPP_
+#include <com/sun/star/text/XAutoTextGroup.hpp>
+#endif
+
+class SwTextBlocks;
+class SvStrings;
+
+typedef com::sun::star::uno::Reference<com::sun::star::text::XAutoTextGroup>* XAutoTextGroupPtr;
+SV_DECL_PTRARR_DEL(XAutoTextGroupPtrArr, XAutoTextGroupPtr, 4, 4)
+
+typedef com::sun::star::uno::Reference<com::sun::star::uno::XInterface>* XInterfacePtr;
+SV_DECL_PTRARR_DEL(XAutoTextEntryPtrArr, XInterfacePtr, 4, 4)
+
+#define GLOS_DELIM (sal_Unicode)'*'
+
+// CLASS -----------------------------------------------------------------
+class SwGlossaries
+{
+ XAutoTextGroupPtrArr aGlosGroupArr;
+ XAutoTextEntryPtrArr aGlosEntryArr;
+ String aPath;
+ String sOldErrPath;
+ String sErrPath;
+ SvStrings *pPathArr;
+ SvStrings *pGlosArr;
+ BOOL bError;
+
+ SwTextBlocks* GetGlosDoc(const String &rName, BOOL bCreate = TRUE) const;
+ SvStrings *GetNameList();
+public:
+ SwGlossaries();
+ ~SwGlossaries();
+
+ XAutoTextGroupPtrArr& GetUnoGroupArray() { return aGlosGroupArr; }
+ XAutoTextEntryPtrArr& GetUnoEntryArray() { return aGlosEntryArr; }
+
+ USHORT GetGroupCnt();
+ String GetGroupName(USHORT );
+ String GetGroupTitle( const String& rGroupName );
+
+ BOOL FindGroupName(String & rGroup);
+
+ SwTextBlocks* GetGroupDoc(const String &rName,
+ BOOL bCreate = FALSE) const;
+ SwTextBlocks* GetDefGroupDoc() const {return GetGroupDoc(GetDefName());}
+ void PutGroupDoc(SwTextBlocks *pBlock);
+ static String GetDefName();
+ static String GetExtension();
+
+ BOOL NewGroupDoc(String &rGroupName, const String& rTitle);
+ BOOL RenameGroupDoc(const String& sOldGroup, String& sNewGroup, const String& rNewTitle);
+ BOOL DelGroupDoc(const String &);
+ void EditGroupDoc(const String &rGrpName, const String& rShortName );
+ void SaveGroupDoc(const String &rGrpName, const String& rLongName );
+ void UpdateGlosPath(BOOL bFull);
+ void ShowError();
+ inline ULONG IsGlosPathErr() { return bError; }
+ const SvStrings* GetPathArray() const {return pPathArr;}
+};
+
+#endif // _GLOSDOC_HXX
diff --git a/sw/source/ui/inc/gloshdl.hxx b/sw/source/ui/inc/gloshdl.hxx
new file mode 100644
index 000000000000..c2e9c5c05e36
--- /dev/null
+++ b/sw/source/ui/inc/gloshdl.hxx
@@ -0,0 +1,150 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloshdl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _GLOSHDL_HXX
+#define _GLOSHDL_HXX
+
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+class SwWrtShell;
+class SwTextBlocks;
+class SvxMacro;
+class SwGlossaries;
+class SfxViewFrame;
+
+// CLASS -----------------------------------------------------------------
+class SwGlossaryHdl
+{
+
+ SwGlossaries& rStatGlossaries;
+ String aCurGrp;
+ SfxViewFrame* pViewFrame;
+ SwWrtShell* pWrtShell;
+ SwTextBlocks* pCurGrp;
+
+ void _SetMacros(const String &rName,
+ const SvxMacro *pStart,
+ const SvxMacro *pEnd);
+
+ BOOL Expand( const String& rShortName,
+ SwGlossaries* pGlossaries,
+ SwTextBlocks *pGlossary,
+ BOOL bApi = FALSE );
+public:
+ void GlossaryDlg();
+
+ USHORT GetGroupCnt() const;
+ String GetGroupName( USHORT, String* pTitle = 0 );
+ BOOL NewGroup(String & rGroupName, const String& rTitle);
+ BOOL DelGroup(const String &);
+ BOOL RenameGroup(const String & rOld, String& rNew, const String& rNewTitle);
+ void SetCurGroup(const String &aGrp, BOOL bApi = FALSE, BOOL bAlwaysCreateNew = FALSE);
+
+ const String &GetCurGroup() const { return aCurGrp; }
+
+ USHORT GetGlossaryCnt();
+ USHORT GetGlossaryCnt(const String& rGrpName); //fuer Basic
+ String GetGlossaryName(USHORT);
+ String GetGlossaryName(USHORT, const String& rGrpName); //fuer Basic
+ String GetGlossaryShortName(const String &rName);
+ String GetGlossaryShortName(USHORT);
+
+ BOOL Rename( const String& rOldShortName, const String& rNewShortName,
+ const String& rNewName);
+ BOOL CopyOrMove( const String& rSourceGroupName, String& rSourceShortName,
+ const String& rDestGroupName, const String& rLongName, BOOL bMove );
+ BOOL HasShortName(const String &rShortName) const;
+ //wird NewGlossary vom Basic gerufen, dann soll dir zuvor eingestellte
+ //Gruppe ggf. neu erstellt werden
+ BOOL NewGlossary(const String &rName, const String &rShortName,
+ BOOL bApiCall = FALSE, BOOL bNoAttr = FALSE );
+ BOOL DelGlossary(const String&);
+ BOOL CopyToClipboard(SwWrtShell& rSh, const String& rShortName);
+
+ BOOL ExpandGlossary(BOOL bUseStandard = TRUE, BOOL bApi = FALSE);
+ BOOL ExpandGlossary( const String& rShortName, BOOL bApi = FALSE );
+ BOOL InsertGlossary(const String &rName);
+
+ void SetMacros(const String& rName,
+ const SvxMacro* pStart,
+ const SvxMacro* pEnd,
+ SwTextBlocks *pGlossary = 0 );
+ void GetMacros(const String& rShortName,
+ SvxMacro& rStart,
+ SvxMacro& rEnd,
+ SwTextBlocks* pGlossary = 0 );
+
+ BOOL IsReadOnly( const String* = 0 ) const;
+ BOOL IsOld() const;
+
+ BOOL FindGroupName(String & rGroup); // Gruppe ohne Pfadindex finden
+
+ BOOL ImportGlossaries( const String& rName );
+
+ String GetValidShortCut( const String& rLong,
+ BOOL bCheckInBlock = FALSE ) const;
+
+ SwGlossaryHdl(SfxViewFrame* pViewFrame, SwWrtShell *);
+ ~SwGlossaryHdl();
+};
+
+#endif // _GLOSHDL_HXX
diff --git a/sw/source/ui/inc/gloslst.hxx b/sw/source/ui/inc/gloslst.hxx
new file mode 100644
index 000000000000..7805af34cf99
--- /dev/null
+++ b/sw/source/ui/inc/gloslst.hxx
@@ -0,0 +1,131 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloslst.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _GLOSLST_HXX
+#define _GLOSLST_HXX
+
+
+#ifndef _DATETIME_HXX
+#include <tools/datetime.hxx>
+#endif
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+#ifndef _TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+
+class SwGlossaries;
+class SvStringsISortDtor;
+
+struct AutoTextGroup
+{
+ USHORT nCount;
+ String sName;
+ String sTitle;
+ String sLongNames; // durch 0x0A getrennte Langnamen
+ String sShortNames; // durch 0x0A getrennte Kurznamen
+ DateTime aDateModified;
+};
+
+
+typedef AutoTextGroup* AutoTextGroupPtr;
+SV_DECL_PTRARR(AutoTextGroups, AutoTextGroupPtr, 4, 4);
+
+class SwGlossaryList : public AutoTimer
+{
+ AutoTextGroups aGroupArr;
+ String sPath;
+ BOOL bFilled;
+
+ AutoTextGroup* FindGroup(const String& rGroupName);
+ void FillGroup(AutoTextGroup* pGroup, SwGlossaries* pGloss);
+
+public:
+ SwGlossaryList();
+ ~SwGlossaryList();
+
+ BOOL HasLongName(const String& rBegin, SvStringsISortDtor* pLongNames );
+ BOOL GetShortName(const String& rLongName,
+ String& rShortName, String& rGroupName );
+
+ USHORT GetGroupCount();
+ String GetGroupName(USHORT nPos, BOOL bNoPath = TRUE, String* pTitle = 0);
+ USHORT GetBlockCount(USHORT nGroup);
+ String GetBlockName(USHORT nGroup, USHORT nBlock, String& rShortName);
+
+ void Update();
+
+ virtual void Timeout();
+
+ void ClearGroups();
+};
+
+#endif
+
+
+
+
+
+
diff --git a/sw/source/ui/inc/glossary.hxx b/sw/source/ui/inc/glossary.hxx
new file mode 100644
index 000000000000..bcc118ef599f
--- /dev/null
+++ b/sw/source/ui/inc/glossary.hxx
@@ -0,0 +1,249 @@
+/*************************************************************************
+ *
+ * $RCSfile: glossary.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _GLOSSARY_HXX
+#define _GLOSSARY_HXX
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+
+#ifndef _MENUBTN_HXX //autogen
+#include <vcl/menubtn.hxx>
+#endif
+
+#ifndef _ACTCTRL_HXX
+#include <actctrl.hxx>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATIONACCESS_HPP_
+#include <com/sun/star/container/XEnumerationAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP_
+#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP_
+#include <com/sun/star/container/XContentEnumerationAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATION_HPP_
+#include <com/sun/star/container/XEnumeration.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XELEMENTACCESS_HPP_
+#include <com/sun/star/container/XElementAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XINDEXACCESS_HPP_
+#include <com/sun/star/container/XIndexAccess.hpp>
+#endif
+
+class SwGlossaryHdl;
+class SwNewGlosNameDlg;
+class SwWrtShell;
+class SfxViewFrame;
+class PopupMenu;
+class Menu;
+
+const short RET_EDIT = 100;
+
+//------------------------------------------------------------------
+
+class SwGlTreeListBox : public SvTreeListBox
+{
+ const String sReadonly;
+
+ SvLBoxEntry* pDragEntry;
+
+ virtual DragDropMode NotifyBeginDrag( SvLBoxEntry* );
+ virtual sal_Bool NotifyQueryDrop( SvLBoxEntry* );
+
+ virtual sal_Bool NotifyMoving( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ sal_uInt32& rNewChildPos
+ );
+ virtual sal_Bool NotifyCopying( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ sal_uInt32& rNewChildPos);
+ public:
+ SwGlTreeListBox(Window* pParent, const ResId& rResId);
+
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ void Clear();
+};
+
+//------------------------------------------------------------------
+class SwOneExampleFrame;
+class SwGlossaryDlg : public SvxStandardDialog
+{
+ friend SwNewGlosNameDlg;
+ friend SwGlTreeListBox;
+
+ GroupBox aExampleGB;
+ Window aExampleWIN;
+ CheckBox aShowExampleCB;
+
+ CheckBox aInsertTipCB;
+
+ FixedText aNameLbl;
+ Edit aNameED;
+ FixedText aShortNameLbl;
+ NoSpaceEdit aShortNameEdit;
+
+ SwGlTreeListBox aCategoryBox;
+ GroupBox aGlossaryFrm;
+
+ CheckBox aFileRelCB;
+ CheckBox aNetRelCB;
+ GroupBox aRelativeGB;
+
+ OKButton aInsertBtn;
+ CancelButton aCloseBtn;
+ HelpButton aHelpBtn;
+ MenuButton aEditBtn;
+ PushButton aBibBtn;
+ PushButton aPathBtn;
+
+ String sReadonlyPath;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > _xAutoText;
+ SwOneExampleFrame* pExampleFrame;
+
+ PopupMenu* pMenu;
+ SwGlossaryHdl* pGlossaryHdl;
+ const sal_Bool bSelection : 1;
+ sal_Bool bReadOnly : 1;
+ sal_Bool bIsOld : 1;
+ sal_Bool bIsDocReadOnly:1;
+
+ SwWrtShell* pSh;
+
+ void EnableShortName(sal_Bool bOn = sal_True);
+
+ DECL_LINK( NameModify, Edit * );
+ DECL_LINK( NameDoubleClick, SvTreeListBox * );
+ DECL_LINK( GrpSelect, SvTreeListBox * );
+ DECL_LINK( MenuHdl, Menu * );
+ DECL_LINK( EnableHdl, Menu * );
+ DECL_LINK( BibHdl, Button * );
+ DECL_LINK( EditHdl, Button * );
+ DECL_LINK( PathHdl, Button * );
+ DECL_LINK( CheckBoxHdl, CheckBox * );
+ DECL_LINK( ShowPreviewHdl, CheckBox * );
+ DECL_LINK( PreviewLoadedHdl, void * );
+
+
+ virtual void Apply();
+ void Init();
+ SvLBoxEntry* DoesBlockExist(const String& sBlock, const String& rShort);
+ void ShowAutoText(const String& rGroup, const String& rShortName);
+
+public:
+ SwGlossaryDlg(SfxViewFrame* pViewFrame, SwGlossaryHdl* pGlosHdl, SwWrtShell *pWrtShell);
+ ~SwGlossaryDlg();
+ String GetCurrGrpName() const;
+ inline String GetCurrLongName() const;
+ inline String GetCurrShortName() const;
+ static String GetCurrGroup();
+ static void SetActGroup(const String& rNewGroup);
+ static String GetExtension();
+};
+
+inline String SwGlossaryDlg::GetCurrLongName() const
+{
+ return aNameED.GetText();
+}
+inline String SwGlossaryDlg::GetCurrShortName() const
+{
+ return aShortNameEdit.GetText();
+}
+
+
+#endif
+
diff --git a/sw/source/ui/inc/glshell.hxx b/sw/source/ui/inc/glshell.hxx
new file mode 100644
index 000000000000..702829404fd9
--- /dev/null
+++ b/sw/source/ui/inc/glshell.hxx
@@ -0,0 +1,140 @@
+/*************************************************************************
+ *
+ * $RCSfile: glshell.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _AUTODOC_HXX
+#define _AUTODOC_HXX
+
+#include "wdocsh.hxx"
+
+class SwTextBlocks;
+
+class SwGlosDocShell : public SwDocShell
+{
+ String aLongName;
+ String aShortName;
+ String aGroupName;
+protected:
+ virtual BOOL Save();
+
+public:
+ TYPEINFO();
+ SFX_DECL_INTERFACE(SW_GLOSDOCSHELL);
+ SwGlosDocShell();
+ virtual ~SwGlosDocShell();
+
+ void Execute( SfxRequest& );
+ void GetState( SfxItemSet& );
+ void SetLongName( const String& rLongName )
+ { aLongName = rLongName; }
+ void SetShortName( const String& rShortName )
+ { aShortName = rShortName; }
+ void SetGroupName( const String& rGroupName )
+ { aGroupName = rGroupName; }
+ const String& GetShortName(){return aShortName;}
+};
+
+
+class SwWebGlosDocShell : public SwWebDocShell
+{
+ String aLongName;
+ String aShortName;
+ String aGroupName;
+protected:
+ virtual BOOL Save();
+
+public:
+ TYPEINFO();
+ SFX_DECL_INTERFACE(SW_WEBGLOSDOCSHELL);
+ SwWebGlosDocShell();
+ virtual ~SwWebGlosDocShell();
+
+ void Execute( SfxRequest& );
+ void GetState( SfxItemSet& );
+ void SetLongName( const String& rLongName )
+ { aLongName = rLongName; }
+ void SetShortName( const String& rShortName )
+ { aShortName = rShortName; }
+ void SetGroupName( const String& rGroupName )
+ { aGroupName = rGroupName; }
+ const String& GetShortName(){return aShortName;}
+};
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/inc/grfsh.hxx b/sw/source/ui/inc/grfsh.hxx
new file mode 100644
index 000000000000..1ace70f2e4a0
--- /dev/null
+++ b/sw/source/ui/inc/grfsh.hxx
@@ -0,0 +1,79 @@
+/*************************************************************************
+ *
+ * $RCSfile: grfsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWGRFSH_HXX
+#define _SWGRFSH_HXX
+
+#include "frmsh.hxx"
+
+class SwGrfShell: public SwBaseShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_GRFSHELL);
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void ExecAttr(SfxRequest &);
+ void GetAttrState(SfxItemSet &);
+
+ SwGrfShell(SwView &rView);
+};
+
+#endif
diff --git a/sw/source/ui/inc/hidfunc.h b/sw/source/ui/inc/hidfunc.h
new file mode 100644
index 000000000000..00f296a447c0
--- /dev/null
+++ b/sw/source/ui/inc/hidfunc.h
@@ -0,0 +1,383 @@
+/*************************************************************************
+ *
+ * $RCSfile: hidfunc.h,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define HID_EXIT 1017
+#define HID_NEW_WINDOW 1701
+#define HID_ARRANGE_CASCADE_WIN 1703
+#define HID_ARRANGE_HORZ_WIN 1704
+#define HID_ARRANGE_VERT_WIN 1705
+#define HID_ARRANGE_ALL_WIN 1702
+#define HID_SHOW_HELP_INDEX 1802
+#define HID_NEW_FILE 1005
+#define HID_NEW_FILE_DEFAULT 1024
+#define HID_CLOSE_FILE 1001
+#define HID_DOC_MGR_DLG 1032
+#define HID_CONFIG_TOOLBOX 1629
+#define HID_CONFIG_MENU 1630
+#define HID_CONFIG_KEY 1631
+#define HID_TEMPLATE_PI 1657
+#define HID_ADDR_PI 1658
+#define HID_AUTO_FORMAT 1651
+#define HID_NAVIGATION_PI 1656
+#define HID_NAVIGATION_PI_GOTO_PAGE 1659
+#define HID_HELP_PI 1655
+#define HID_FORMAT_DROPCAPS 1454
+#define HID_CONFIG_VIEWOPTIONS 1635
+#define HID_CONFIG_COLORS 1636
+#define HID_TOOLBOX 1213
+#define HID_RIBBON 1210
+#define HID_RULER 1211
+#define HID_VLINEAL 1216
+#define HID_VSCROLLBAR 1217
+#define HID_HSCROLLBAR 1218
+#define HID_SAVE_FILE 1013
+#define HID_SAVE_ALL 1023
+#define HID_SAVE_FILE_AS 1012
+#define HID_OPEN_LASTVERSION 1009
+#define HID_STATUSBAR 1212
+#define HID_ABOUT_DLG 1806
+#define HID_SEND_MAIL 1022
+#define HID_OPEN_FILE 1007
+#define HID_INSERT_FILE 1309
+#define HID_DOCSTAT_DLG 1020
+#define HID_LOAD_TEMPLATE_DLG 1021
+#define HID_ESCAPE 1941
+#define HID_PLAY_MACRO_DLG 1624
+#define HID_RECORD_MACRO_DLG 1622
+#define HID_ASSIGN_LOCAL_MACRO_DLG 1632
+#define HID_COMPILE_MACRO 1633
+#define HID_CREATE_DOCUMENT 1019
+#define HID_PAGEUP 1937
+#define HID_PAGEDOWN 1938
+#define HID_SET_LEFT_PARA 1418
+#define HID_SET_RIGHT_PARA 1419
+#define HID_SET_CENTER_PARA 1420
+#define HID_SET_JUSTIFY_PARA 1421
+#define HID_SET_ADJUST 1428
+#define HID_FORMAT_RESET 1469
+#define HID_INDENT_TO_TABSTOP 1417
+#define HID_UNINDENT_TO_TABSTOP 1431
+#define HID_SET_BOLD 1405
+#define HID_SET_ITALIC 1406
+#define HID_SET_UNDERLINE 1409
+#define HID_SET_STRIKEOUT 1410
+#define HID_SET_OUTLINE 1408
+#define HID_SET_SHADOW 1407
+#define HID_SET_SUPER_SCRIPT 1411
+#define HID_SET_SUB_SCRIPT 1412
+#define HID_SET_COLOR 1413
+#define HID_SET_CASEMAP 1414
+#define HID_SET_LANGUAGE 1415
+#define HID_SET_KERNING 1416
+#define HID_SET_FONT 1401
+#define HID_SET_FONT_SIZE 1402
+#define HID_GROW_FONT_SIZE 1403
+#define HID_SHRINK_FONT_SIZE 1404
+#define HID_SET_LINE_SPACE_1 1422
+#define HID_SET_LINE_SPACE_15 1423
+#define HID_SET_LINE_SPACE_2 1424
+#define HID_SET_PROP_LINE_SPACE 1540
+#define HID_SET_ABS_LINE_SPACE 1541
+#define HID_INSERT_SYMBOL 1328
+#define HID_INSERT_OBJECT_DLG 1322
+#define HID_EDIT_OBJECT 1110
+#define HID_EDIT_LINK_DLG 1109
+#define HID_EDIT_FILE_INFO_DLG 1107
+#define HID_EDIT_IDX_ENTRY_DLG 1123
+#define HID_NUM_BULLET_DOWN 1130
+#define HID_NUM_BULLET_MOVEUP 1134
+#define HID_NUM_BULLET_MOVEDOWN 1135
+#define HID_NUM_BULLET_UP 1131
+#define HID_NUM_BULLET_PREV 1132
+#define HID_NUM_BULLET_NEXT 1133
+#define HID_NUM_BULLET_OUTLINE_MOVEDOWN 1142
+#define HID_NUM_BULLET_OUTLINE_MOVEUP 1141
+#define HID_NUM_BULLET_OUTLINE_UP 1140
+#define HID_NUM_BULLET_OUTLINE_DOWN 1139
+#define HID_NUM_BULLET_NONUM 1136
+#define HID_NUM_NUMBERING_ON 1144
+#define HID_NUM_BULLET_ON 1138
+#define HID_NUM_BULLET_OFF 1137
+#define HID_INSERT_IDX_ENTRY_DLG 1335
+#define HID_POSTIT 1329
+#define HID_INSERT_CAPTION 1310
+#define HID_INSERT_IDX 1336
+#define HID_INSERT_USERIDX 1337
+#define HID_INSERT_CNTNTIDX 1338
+#define HID_INSERT_IDX_ENTRY 1340
+#define HID_INSERT_USERIDX_ENTRY 1341
+#define HID_INSERT_CNTNTIDX_ENTRY 1342
+#define HID_INSERT_FRAME 1334
+#define HID_INSERT_FRAME_INTERACT 1333
+#define HID_INSERT_SOFT_HYPHEN 1350
+#define HID_INSERT_HARD_SPACE 1351
+#define HID_FORMAT_FRAME_DLG 1456
+#define HID_FRAME_TO_TOP 1470
+#define HID_FRAME_TO_BOTTOM 1471
+#define HID_FRAME_NOWRAP 1472
+#define HID_FRAME_WRAP 1473
+#define HID_FRAME_WRAPTHRU 1474
+#define HID_FRAME_ALIGN_HORZ_LEFT 1475
+#define HID_FRAME_ALIGN_HORZ_RIGHT 1476
+#define HID_FRAME_ALIGN_HORZ_CENTER 1477
+#define HID_FRAME_ALIGN_VERT_TOP 1478
+#define HID_FRAME_ALIGN_VERT_BOTTOM 1479
+#define HID_FRAME_ALIGN_VERT_CENTER 1480
+#define HID_EDIT_FIELD 1104
+#define HID_SET_FIELD_VALUE 1112
+#define HID_INSERT_FIELD 1308
+#define HID_INSERT_MERGEFIELD_DLG 1320
+#define HID_EXECUTE_MACROFIELD 1127
+#define HID_UPDATE_FIELDS 1126
+#define HID_UPDATE_INPUTFIELDS 1143
+#define HID_CALC_TABLE 1129
+#define HID_INSERT_BREAK_DLG 1304
+#define HID_INSERT_BOOKMARK 1302
+#define HID_DELETE_BOOKMARK 1301
+#define HID_INSERT_GRAFIC 1315
+#define HID_FORMAT_TABLE_DLG 1460
+#define HID_INSERT_TABLE 1330
+#define HID_INSERT_COLS 1332
+#define HID_PAGE_STYLE_SET_COLS 1538
+#define HID_CONVERT_TEXT_TABLE 1500
+#define HID_TABLE_INSERT_ROW 1501
+#define HID_TABLE_INSERT_COL 1502
+#define HID_TABLE_DELETE_ROW 1503
+#define HID_TABLE_DELETE_COL 1504
+#define HID_TABLE_SPLIT_CELLS 1505
+#define HID_TABLE_MERGE_CELLS 1506
+#define HID_TABLE_SET_ROW_HEIGHT 1507
+#define HID_TABLE_SET_COL_WIDTH 1508
+#define HID_TABLE_SET_ULSPACE 1509
+#define HID_TABLE_SET_GRID 1510
+#define HID_TABLE_SET_SHADOW 1511
+#define HID_FORMAT_CHAR_DLG 1441
+#define HID_FORMAT_PAGE_DLG 1452
+#define HID_CHANGE_PAGENUM 1634
+#define HID_FORMAT_PARA_DLG 1443
+#define HID_FORMAT_TAB_DLG 1445
+#define HID_FORMAT_BORDER_DLG 1447
+#define HID_FORMAT_BORDER 1439
+#define HID_FORMAT_SHADOW 1438
+#define HID_FORMAT_BACKGROUND 1448
+#define HID_FORMAT_BACKGROUND_DLG 1450
+#define HID_SET_FRM_SIZE 1481
+#define HID_SET_FRM_POSITION 1482
+#define HID_SET_FRM_ANCHOR 1483
+#define HID_SET_FRM_WRAP 1484
+#define HID_SET_FRM_DIST 1485
+#define HID_SET_FRM_OPTIONS 1486
+#define HID_SET_FRM_MACRO 1494
+#define HID_SET_FRM_COLUMNS 1495
+#define HID_SET_FRM_COLUMN_WIDTH 1496
+#define HID_SET_GRF_MIRROR 1488
+#define HID_SET_TABLE_WIDTH 1489
+#define HID_SET_TABLE_ALIGN 1490
+#define HID_TABLE_SET_READ_ONLY_CELLS 1517
+#define HID_TABLE_UNSET_READ_ONLY_CELLS 1519
+#define HID_NEW_STYLE_BY_EXAMPLE 1462
+#define HID_UPDATE_STYLES_DIRECT 1497
+#define HID_UPDATE_STYLE_BY_EXAMPLE 1463
+#define HID_STYLE_SHEET_FRAME_DLG 1464
+#define HID_STYLE_SHEET_DOC_DLG 1465
+#define HID_SET_STANDARD_FONTS 1442
+#define HID_COPY 1102
+#define HID_PASTE 1113
+#define HID_PASTESPECIAL 1114
+#define HID_CUT 1103
+#define HID_FLIP_HORZ_GRAFIC 1425
+#define HID_FLIP_VERT_GRAFIC 1426
+#define HID_FORMAT_GRAFIC_DLG 1458
+#define HID_VIEW_BOUNDS 1214
+#define HID_VIEW_FIELDS 1215
+#define HID_VIEW_META_CHARS 1224
+#define HID_VIEW_MARKS 1225
+#define HID_VIEW_FIELDNAME 1226
+#define HID_VIEW_TABLEGRID 1227
+#define HID_SEARCH 1117
+#define HID_REPEAT_SEARCH 1150
+#define HID_REPLACE 1118
+#define HID_GOTO 1111
+#define HID_SETUP_PRINTER_DLG 1015
+#define HID_PRINT_FILE 1010
+#define HID_PRINT_FILE_DEFAULT 1025
+#define HID_FAX 1028
+#define HID_PRINT_FILE_OPTIONS 1011
+#define HID_THESAURUS_DLG 1604
+#define HID_SPELLING_DLG 1601
+#define HID_HYPHENATE_OPT_DLG 1607
+#define HID_MERGE_FILE_DLG 1004
+#define HID_SELECT_DATABASE 1030
+#define HID_DOC_INFO_DLG 1031
+#define HID_MERGE_FILE 1003
+#define HID_MERGE_RECORD 1327
+#define HID_INSERT_RECORD 1326
+#define HID_NUMBERING_OUTLINE_DLG 1612
+#define HID_NUMBER_BULLETS 1121
+#define HID_ZOOM 1231
+#define HID_SORTING 1613
+#define HID_SORTING_DLG 1614
+#define HID_CALCULATE 1615
+#define HID_REFRESH_VIEW 1201
+#define HID_CHAR_LEFT 1901
+#define HID_CHAR_RIGHT 1902
+#define HID_LINE_UP 1903
+#define HID_LINE_DOWN 1904
+#define HID_START_OF_LINE 1905
+#define HID_END_OF_LINE 1906
+#define HID_START_OF_DOCUMENT 1907
+#define HID_END_OF_DOCUMENT 1908
+#define HID_SELECT_WORD 1943
+#define HID_SELECT_ALL 1119
+#define HID_START_OF_NEXT_PAGE 1909
+#define HID_END_OF_NEXT_PAGE 1910
+#define HID_START_OF_PREV_PAGE 1911
+#define HID_END_OF_PREV_PAGE 1912
+#define HID_START_OF_PAGE 1913
+#define HID_END_OF_PAGE 1914
+#define HID_NEXT_WORD 1921
+#define HID_START_OF_PARA 1919
+#define HID_END_OF_PARA 1920
+#define HID_PREV_WORD 1922
+#define HID_NEXT_SENT 1923
+#define HID_PREV_SENT 1924
+#define HID_SET_INS_MODE 1936
+#define HID_SET_ADD_MODE 1939
+#define HID_SET_EXT_MODE 1940
+#define HID_START_TABLE 1947
+#define HID_END_TABLE 1948
+#define HID_NEXT_TABLE 1949
+#define HID_PREV_TABLE 1950
+#define HID_TABLE_SELECT_ALL 1515
+#define HID_TABLE_SELECT_COL 1514
+#define HID_TABLE_SELECT_ROW 1513
+#define HID_START_OF_COLUMN 1917
+#define HID_END_OF_COLUMN 1918
+#define HID_START_OF_NEXT_COLUMN 1951
+#define HID_END_OF_NEXT_COLUMN 1952
+#define HID_START_OF_PREV_COLUMN 1953
+#define HID_END_OF_PREV_COLUMN 1954
+#define HID_FOOTNOTE_TO_ANCHOR 1955
+#define HID_NEXT_FOOTNOTE 1956
+#define HID_PREV_FOOTNOTE 1957
+#define HID_CNTNT_TO_NEXT_FRAME 1958
+#define HID_FRAME_TO_ANCHOR 1959
+#define HID_TO_HEADER 1960
+#define HID_TO_FOOTER 1961
+#define HID_IDX_MARK_TO_IDX 1962
+#define HID_DELETE 1925
+#define HID_BACKSPACE 1926
+#define HID_DELETE_SENT 1927
+#define HID_DELETE_BACK_SENT 1928
+#define HID_DELETE_WORD 1929
+#define HID_DELETE_BACK_WORD 1930
+#define HID_DELETE_LINE 1931
+#define HID_DELETE_BACK_LINE 1932
+#define HID_DELETE_PARA 1933
+#define HID_DELETE_BACK_PARA 1934
+#define HID_DELETE_WHOLE_LINE 1935
+#define HID_INSERT_BREAK 1303
+#define HID_INSERT_PAGEBREAK 1323
+#define HID_INSERT_LINEBREAK 1318
+#define HID_INSERT_COLUMN_BREAK 1305
+#define HID_INSERT_FOOTNOTE 1311
+#define HID_INSERT_FOOTNOTE_DLG 1312
+#define HID_FORMAT_FOOTNOTE_DLG 1468
+#define HID_UNDO 1120
+#define HID_REDO 1116
+#define HID_REPEAT 1122
+#define HID_REPAGINATE 1161
+#define HID_SHOW_UPDATE_HELP 1805
+#define HID_SHOW_KEYBOARD_HELP 1803
+#define HID_SHOW_HELP_MANUAL 1804
+#define HID_GLOSSARY_DLG 1620
+#define HID_EXPAND_GLOSSARY 1628
+#define HID_INSERT_GLOSSARY 1640
+#define HID_AUTO_CORRECT_DLG 1650
+#define HID_AUTO_CORRECT 1649
+#define HID_CONFIG_DLG 1627
+#define HID_INSERT_STRING 1331
+#define HID_SET_CHAR_STYLE 1491
+#define HID_SET_PARA_STYLE 1492
+#define HID_SET_PAGE_STYLE 1493
+#define HID_SET_LRMARGIN 1429
+#define HID_SET_ULMARGIN 1430
+#define HID_SET_HYPHEN_ZONE 1432
+#define HID_SET_PAGE_BREAK 1433
+#define HID_FORMAT_PAGE 1451
+#define HID_SET_KEEP_TOGETHER 1434
+#define HID_SET_WIDOW 1436
+#define HID_SET_ORPHAN 1437
+#define HID_BUFFER_UPDATE 1124
+#define HID_FORMAT_TAB 1444
+#define HID_IS_END_OF_PARA 2000
+#define HID_IS_END_OF_WORD 2000
+#define HID_IS_END_OF_DOC 2000
+#define HID_IS_START_OF_PARA 2000
+#define HID_IS_START_OF_WORD 2000
+#define HID_IS_START_OF_DOC 2000
+#define HID_EDIT_FORMULA 1128
+#define HID_ENVELOP 2050
+#define HID_LABEL 2051
+#define HID_AGENDA_WIZZARD 1663
+#define HID_MEMO_WIZZARD 1662
+#define HID_FAX_WIZZARD 1661
+#define HID_LETTER_WIZZARD 1660
+#define HID_LAUNCH_REGISTRY 1002
diff --git a/sw/source/ui/inc/hyp.hxx b/sw/source/ui/inc/hyp.hxx
new file mode 100644
index 000000000000..0f6f0253dc20
--- /dev/null
+++ b/sw/source/ui/inc/hyp.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: hyp.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _HYP_HXX
+#define _HYP_HXX
+
+#ifndef _LINK_HXX
+#include <tools/link.hxx>
+#endif
+#ifndef _SVX_SPLWRAP_HXX //autogen
+#include <svx/splwrap.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XHYPHENATOR_HPP_
+#include <com/sun/star/linguistic/XHyphenator.hpp>
+#endif
+
+class SwView;
+
+class SwHyphWrapper : public SvxSpellWrapper {
+private:
+ SwView* pView;
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator > xHyph;
+ Link aOldLnk;
+ sal_uInt32 nLangError; // nicht vorhandene Sprache
+ sal_uInt16 nPageCount; // Seitenanzahl fuer Progressanzeige
+ sal_uInt16 nPageStart; // 1. gepruefte Seite
+ sal_Bool bInSelection : 1; // Trennen von selektiertem Text
+ sal_Bool bShowError : 1; // nicht vorhandene Sprache melden
+ sal_Bool bAutomatic : 1; // Trennstellen ohne Rueckfrage einfuegen
+ DECL_LINK( SpellError, void * );
+
+public:
+ SwHyphWrapper( SwView* pVw, ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator > &rxHyph,
+ sal_Bool bStart, sal_Bool bOther, sal_Bool bSelect );
+
+ ~SwHyphWrapper();
+protected:
+ virtual void SpellStart( SvxSpellArea eSpell );
+ virtual sal_Bool SpellContinue();
+ virtual void SpellEnd( );
+ virtual sal_Bool SpellMore();
+ virtual void InsertHyphen( const sal_uInt16 nPos ); // Hyphen einfuegen
+};
+
+#endif
diff --git a/sw/source/ui/inc/idxmrk.hxx b/sw/source/ui/inc/idxmrk.hxx
new file mode 100644
index 000000000000..47daae127d21
--- /dev/null
+++ b/sw/source/ui/inc/idxmrk.hxx
@@ -0,0 +1,345 @@
+/*************************************************************************
+ *
+ * $RCSfile: idxmrk.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _IDXMRK_HXX
+#define _IDXMRK_HXX
+
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _BASEDLGS_HXX
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _SVX_STDDLG_HXX
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+#ifndef _TOXE_HXX
+#include "toxe.hxx"
+#endif
+#ifndef _STDCTRL_HXX
+#include <svtools/stdctrl.hxx>
+#endif
+class SwWrtShell;
+class SwTOXMgr;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Markierung fuer Verzeichniseintrag einfuegen
+ --------------------------------------------------------------------*/
+class SwIndexMarkFloatDlg;
+class SwIndexMarkModalDlg;
+class SwIndexMarkDlg : public Window //SvxStandardDialog
+{
+ friend class SwIndexMarkFloatDlg;
+ friend class SwIndexMarkModalDlg;
+ FixedText aTypeFT;
+ ListBox aTypeDCB;
+ ImageButton aNewBT;
+ FixedText aEntryFT;
+ Edit aEntryED;
+ FixedText aKeyFT;
+ ComboBox aKeyDCB;
+ FixedText aKey2FT;
+ ComboBox aKey2DCB;
+ FixedText aLevelFT;
+ NumericField aLevelED;
+ CheckBox aMainEntryCB;
+ CheckBox aApplyToAllCB;
+ CheckBox aSearchCaseSensitiveCB;
+ CheckBox aSearchCaseWordOnlyCB;
+
+ GroupBox aIndexGB;
+
+ OKButton aOKBT;
+ CancelButton aCancelBT;
+ HelpButton aHelpBT;
+ PushButton aDelBT;
+ //PushButton aNewBT;
+
+ ImageButton aPrevSameBT;
+ ImageButton aNextSameBT;
+ ImageButton aPrevBT;
+ ImageButton aNextBT;
+
+ String aOrgStr;
+ sal_Bool bDel;
+ sal_Bool bNewMark;
+ sal_Bool bSelected;
+
+ SwTOXMgr* pTOXMgr;
+ SwWrtShell* pSh;
+
+ void Apply();
+ void InitControls();
+ void InsertMark();
+ void UpdateMark();
+
+ DECL_LINK( InsertHdl, Button * );
+ DECL_LINK( CloseHdl, Button * );
+ DECL_LINK( DelHdl, Button * );
+ DECL_LINK( NextHdl, Button * );
+ DECL_LINK( NextSameHdl, Button * );
+ DECL_LINK( PrevHdl, Button * );
+ DECL_LINK( PrevSameHdl, Button * );
+ DECL_LINK( ModifyHdl, ListBox* pBox = 0 );
+ DECL_LINK( KeyDCBModifyHdl, ComboBox * );
+ DECL_LINK( NewUserIdxHdl, Button*);
+ DECL_LINK( SearchTypeHdl, CheckBox*);
+
+ void UpdateKeyBoxes();
+
+ void UpdateDialog();
+ void InsertUpdate();
+
+ virtual void Activate();
+
+public:
+
+ SwIndexMarkDlg( Window *pParent,
+ sal_Bool bNewDlg,
+ const ResId& rResId);
+
+
+ ~SwIndexMarkDlg();
+
+ void ReInitDlg(SwWrtShell& rWrtShell);
+ sal_Bool IsTOXType(const String& rName)
+ {return LISTBOX_ENTRY_NOTFOUND != aTypeDCB.GetEntryPos(rName);}
+};
+/* -----------------06.10.99 10:11-------------------
+
+ --------------------------------------------------*/
+class SwIndexMarkFloatDlg : public SfxModelessDialog
+{
+ SwIndexMarkDlg aDlg;
+ virtual void Activate();
+ public:
+ SwIndexMarkFloatDlg( SfxBindings* pBindings,
+ SfxChildWindow* pChild,
+ Window *pParent,
+ sal_Bool bNew=sal_True);
+
+ SwIndexMarkDlg& GetDlg() {return aDlg;}
+};
+/* -----------------06.10.99 10:33-------------------
+
+ --------------------------------------------------*/
+class SwIndexMarkModalDlg : public SvxStandardDialog
+{
+ SwIndexMarkDlg aDlg;
+public:
+ SwIndexMarkModalDlg(Window *pParent, SwWrtShell& rSh);
+
+ SwIndexMarkDlg& GetDlg() {return aDlg;}
+ virtual void Apply();
+};
+
+/* -----------------07.09.99 08:02-------------------
+
+ --------------------------------------------------*/
+class SwInsertIdxMarkWrapper : public SfxChildWindow
+{
+protected:
+ SwInsertIdxMarkWrapper( Window *pParentWindow,
+ sal_uInt16 nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo );
+
+ SFX_DECL_CHILDWINDOW(SwInsertIdxMarkWrapper);
+
+public:
+ void ReInitDlg(SwWrtShell& rWrtShell)
+ {((SwIndexMarkFloatDlg*)pWindow)->GetDlg().ReInitDlg(rWrtShell);}
+
+};
+
+/* -----------------15.09.99 08:39-------------------
+
+ --------------------------------------------------*/
+class SwAuthMarkModalDlg;
+class SwAuthMarkDlg : public Window
+{
+ static sal_Bool bIsFromComponent;
+
+ friend class SwAuthMarkModalDlg;
+ RadioButton aFromComponentRB;
+ RadioButton aFromDocContentRB;
+ FixedText aEntryFT;
+ Edit aEntryED;
+ ListBox aEntryLB;
+ FixedText aAuthorFT;
+ FixedInfo aAuthorFI;
+ FixedText aTitleFT;
+ FixedInfo aTitleFI;
+
+ GroupBox aEntryGB;
+
+ OKButton aOKBT;
+ CancelButton aCancelBT;
+ HelpButton aHelpBT;
+ PushButton aCreateEntryPB;
+ PushButton aEditEntryPB;
+
+ String sChangeST;
+ sal_Bool bNewEntry;
+ sal_Bool bBibAccessInitialized;
+
+ SwWrtShell* pSh;
+
+ String m_sColumnTitles[AUTH_FIELD_END];
+ String m_sFields[AUTH_FIELD_END];
+
+ String m_sCreatedEntry[AUTH_FIELD_END];
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xBibAccess;
+
+ DECL_LINK(InsertHdl, PushButton*);
+ DECL_LINK(CloseHdl, PushButton*);
+ DECL_LINK(CreateEntryHdl, PushButton*);
+ DECL_LINK(CompEntryHdl, ListBox*);
+ DECL_LINK(ChangeSourceHdl, RadioButton*);
+ DECL_LINK(IsEntryAllowedHdl, Edit*);
+
+ void InitControls();
+public:
+
+ SwAuthMarkDlg( Window *pParent,
+ const ResId& rResId,
+ sal_Bool bNew=sal_True);
+ ~SwAuthMarkDlg();
+
+ void ReInitDlg(SwWrtShell& rWrtShell);
+};
+/* -----------------07.09.99 08:02-------------------
+
+ --------------------------------------------------*/
+class SwInsertAuthMarkWrapper : public SfxChildWindow
+{
+protected:
+ SwInsertAuthMarkWrapper( Window *pParentWindow,
+ sal_uInt16 nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo );
+
+ SFX_DECL_CHILDWINDOW(SwInsertAuthMarkWrapper);
+
+public:
+ void ReInitDlg(SwWrtShell& rWrtShell);
+};
+/* -----------------06.10.99 10:11-------------------
+
+ --------------------------------------------------*/
+class SwAuthMarkFloatDlg : public SfxModelessDialog
+{
+ SwAuthMarkDlg aDlg;
+ virtual void Activate();
+ public:
+ SwAuthMarkFloatDlg( SfxBindings* pBindings,
+ SfxChildWindow* pChild,
+ Window *pParent,
+ sal_Bool bNew=sal_True);
+
+ SwAuthMarkDlg& GetDlg() {return aDlg;}
+};
+/* -----------------06.10.99 10:33-------------------
+
+ --------------------------------------------------*/
+class SwAuthMarkModalDlg : public SvxStandardDialog
+{
+ SwAuthMarkDlg aDlg;
+public:
+ SwAuthMarkModalDlg(Window *pParent, SwWrtShell& rSh);
+
+ SwAuthMarkDlg& GetDlg() {return aDlg;}
+ virtual void Apply();
+};
+
+
+#endif // _IDXMRK_HXX
+
diff --git a/sw/source/ui/inc/initui.hxx b/sw/source/ui/inc/initui.hxx
new file mode 100644
index 000000000000..c48253072a83
--- /dev/null
+++ b/sw/source/ui/inc/initui.hxx
@@ -0,0 +1,109 @@
+/*************************************************************************
+ *
+ * $RCSfile: initui.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _INITUI_HXX
+#define _INITUI_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+/*
+ * Forward Declarations
+ */
+class String;
+class SwThesaurus;
+class SpellCheck;
+class SvStringsDtor;
+
+/*
+ * Extern Definitions
+ */
+extern SwThesaurus* pThes;
+extern String GetSWGVersion();
+
+extern String* pOldGrfCat;
+extern String* pOldTabCat;
+extern String* pOldFrmCat;
+
+extern String* pCurrGlosGroup;
+
+extern SvStringsDtor* pDBNameList;
+
+extern SvStringsDtor* pAuthFieldNameList;
+extern SvStringsDtor* pAuthFieldTypeList;
+
+// stellt die Textbausteinverwaltung zur Verfuegung
+class SwGlossaries;
+SwGlossaries* GetGlossaries();
+
+class SwGlossaryList;
+
+BOOL HasGlossaryList();
+SwGlossaryList* GetGlossaryList();
+
+extern void _InitUI();
+extern void _FinitUI();
+extern void _InitSpell();
+extern void _FinitSpell();
+
+
+#endif
diff --git a/sw/source/ui/inc/inpdlg.hxx b/sw/source/ui/inc/inpdlg.hxx
new file mode 100644
index 000000000000..6ff63ad02d5f
--- /dev/null
+++ b/sw/source/ui/inc/inpdlg.hxx
@@ -0,0 +1,123 @@
+/*************************************************************************
+ *
+ * $RCSfile: inpdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _INPDLG_HXX
+#define _INPDLG_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef VCL
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#else
+#ifndef _SV_SVMEDIT_HXX //autogen
+#include <svtools/svmedit.hxx>
+#endif
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+class SwInputField;
+class SwSetExpField;
+class SwUserFieldType;
+class SwField;
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Einfuegen Felder
+ --------------------------------------------------------------------*/
+
+class SwFldInputDlg: public SvxStandardDialog
+{
+ virtual void Apply();
+
+ SwWrtShell &rSh;
+ SwInputField* pInpFld;
+ SwSetExpField* pSetFld;
+ SwUserFieldType* pUsrType;
+
+ Edit aLabelED;
+
+ MultiLineEdit aEditED;
+ GroupBox aEditGB;
+
+ OKButton aOKBT;
+ CancelButton aCancelBT;
+ PushButton aNextBT;
+ HelpButton aHelpBT;
+
+ DECL_LINK(NextHdl, PushButton*);
+public:
+ SwFldInputDlg( Window *pParent, SwWrtShell &rSh,
+ SwField* pField, BOOL bNextButton = FALSE );
+ ~SwFldInputDlg();
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/inputwin.hxx b/sw/source/ui/inc/inputwin.hxx
new file mode 100644
index 000000000000..57aa0166767a
--- /dev/null
+++ b/sw/source/ui/inc/inputwin.hxx
@@ -0,0 +1,165 @@
+/*************************************************************************
+ *
+ * $RCSfile: inputwin.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef SW_INPUTWIN_HXX
+#define SW_INPUTWIN_HXX
+
+
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+#ifndef _TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+class SwFldMgr;
+class SwWrtShell;
+class SwView;
+class SfxDispatcher;
+
+//========================================================================
+class InputEdit : public Edit
+{
+public:
+ InputEdit(Window* pParent, WinBits nStyle) :
+ Edit(pParent , nStyle){}
+
+ void UpdateRange(const String& aSel,
+ const String& aTblName );
+
+protected:
+ virtual void KeyInput( const KeyEvent& );
+};
+
+//========================================================================
+
+class SwInputWindow : public ToolBox
+{
+friend class InputEdit;
+
+ Edit aPos;
+ InputEdit aEdit;
+ PopupMenu aPopMenu;
+ SwFldMgr* pMgr;
+ SwWrtShell* pWrtShell;
+ SwView* pView;
+ String aAktTableName, sOldFml;
+ USHORT nActionCnt;
+
+ BOOL bFirst : 1; //Initialisierungen beim ersten Aufruf
+ BOOL bActive : 1; //fuer Hide/Show beim Dokumentwechsel
+ BOOL bIsTable : 1;
+ BOOL bDelSel : 1;
+ BOOL bDoesUndo : 1;
+ BOOL bResetUndo : 1;
+ BOOL bCallUndo : 1;
+
+
+ void DelBoxCntnt();
+ DECL_LINK( ModifyHdl, InputEdit* );
+
+protected:
+ virtual void Resize();
+ virtual void Click();
+ DECL_LINK( MenuHdl, Menu * );
+ void ApplyFormula();
+ void CancelFormula();
+public:
+ SwInputWindow( Window* pParent );
+ virtual ~SwInputWindow();
+
+
+ void SelectHdl( ToolBox*);
+ virtual void Show();
+ BOOL IsActive(){ return bActive; };
+ DECL_LINK( SelTblCellsNotify, SwWrtShell * );
+
+ void SetFormula( const String& rFormula, BOOL bDelSel = TRUE );
+ const SwView* GetView() const{return pView;}
+};
+
+class SwInputChild : public SfxChildWindow
+{
+ BOOL bObjVis;
+ SfxDispatcher* pDispatch;
+public:
+ SwInputChild( Window* ,
+ USHORT nId,
+ SfxBindings*,
+ SfxChildWinInfo* );
+ ~SwInputChild();
+ SFX_DECL_CHILDWINDOW( SwInputChild );
+ void SetFormula( const String& rFormula, BOOL bDelSel = TRUE )
+ { ((SwInputWindow*)pWindow)->SetFormula(
+ rFormula, bDelSel ); }
+ const SwView* GetView() const{return ((SwInputWindow*)pWindow)->GetView();}
+
+};
+
+//==================================================================
+
+#endif
+
diff --git a/sw/source/ui/inc/insfnote.hxx b/sw/source/ui/inc/insfnote.hxx
new file mode 100644
index 000000000000..9c91d2bc9f01
--- /dev/null
+++ b/sw/source/ui/inc/insfnote.hxx
@@ -0,0 +1,125 @@
+/*************************************************************************
+ *
+ * $RCSfile: insfnote.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _INSFNOTE_HXX
+#define _INSFNOTE_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+
+class SwWrtShell;
+
+class SwInsFootNoteDlg: public SvxStandardDialog
+{
+ SwWrtShell &rSh;
+
+ //Alles fuer das/die Zeichen
+ String aFontName;
+ CharSet eCharSet;
+ char cExtChar;
+ BOOL bExtCharAvailable;
+ BOOL bEdit;
+ RadioButton aNumberAutoBtn;
+ RadioButton aNumberCharBtn;
+ Edit aNumberCharEdit;
+ PushButton aNumberExtChar;
+ GroupBox aNumberFrm;
+
+ //Alles fuer die Auswahl Fussnote/Endnote
+ RadioButton aFtnBtn;
+ RadioButton aEndNoteBtn;
+ GroupBox aTypeBox;
+
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+ ImageButton aPrevBT;
+ ImageButton aNextBT;
+
+ DECL_LINK( NumberCharHdl, Button * );
+ DECL_LINK( NumberEditHdl, void * );
+ DECL_LINK( NumberAutoBtnHdl, Button *);
+ DECL_LINK( NumberExtCharHdl, Button *);
+ DECL_LINK( NextPrevHdl, Button * );
+
+ virtual void Apply();
+
+ void Init();
+
+public:
+ SwInsFootNoteDlg(Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE);
+ ~SwInsFootNoteDlg();
+};
+
+#endif
diff --git a/sw/source/ui/inc/insrc.hxx b/sw/source/ui/inc/insrc.hxx
new file mode 100644
index 000000000000..1414cc02c69d
--- /dev/null
+++ b/sw/source/ui/inc/insrc.hxx
@@ -0,0 +1,125 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _INSRC_HXX
+#define _INSRC_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+class SwView;
+class SwInsRowColDlg : public SvxStandardDialog
+{
+ FixedText aCount;
+ NumericField aCountEdit;
+ GroupBox aInsGrp;
+
+ RadioButton aBeforeBtn;
+ RadioButton aAfterBtn;
+ GroupBox aPosGrp;
+
+ String aRow;
+ String aCol;
+
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ SwView& rView;
+ BOOL bColumn;
+
+protected:
+ virtual void Apply();
+
+public:
+ SwInsRowColDlg( SwView& rView, BOOL bCol );
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/insrule.hxx b/sw/source/ui/inc/insrule.hxx
new file mode 100644
index 000000000000..8f59642f44ec
--- /dev/null
+++ b/sw/source/ui/inc/insrule.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrule.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _INSRULE_HXX
+#define _INSRULE_HXX
+
+#ifndef _NUM_HXX
+#include "num.hxx"
+#endif
+
+class SwDocShell;
+
+class SwRulerValueSet;
+class ValueSet;
+/*-----------------14.02.97 12.30-------------------
+
+--------------------------------------------------*/
+class SwInsertGrfRulerDlg : public SfxModalDialog
+{
+ GroupBox aSelectionGB;
+ OKButton aOkPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+
+ List aGrfNames;
+ String sSimple;
+
+ USHORT nSelPos;
+
+ SwRulerValueSet* pExampleVS;
+
+protected:
+ DECL_LINK(SelectHdl, ValueSet*);
+ DECL_LINK(DoubleClickHdl, ValueSet*);
+
+public:
+ SwInsertGrfRulerDlg( Window* pParent, SwDocShell* pDocSh );
+ ~SwInsertGrfRulerDlg();
+
+ String GetGraphicName();
+ BOOL IsSimpleLine() {return nSelPos == 1;}
+ BOOL HasImages() const {return 0 != aGrfNames.Count();}
+};
+
+#endif
+
+
+
diff --git a/sw/source/ui/inc/instable.hxx b/sw/source/ui/inc/instable.hxx
new file mode 100644
index 000000000000..9539157a6660
--- /dev/null
+++ b/sw/source/ui/inc/instable.hxx
@@ -0,0 +1,127 @@
+/*************************************************************************
+ *
+ * $RCSfile: instable.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _INSTABLE_HXX
+#define _INSTABLE_HXX
+
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _ACTCTRL_HXX
+#include <actctrl.hxx>
+#endif
+class SwWrtShell;
+class SwTableAutoFmt;
+
+class SwInsTableDlg : public SfxModalDialog
+{
+ TableNameEdit aNameEdit;
+ GroupBox aNameFrm;
+ FixedText aColLbl;
+ NumericField aColEdit;
+ FixedText aRowLbl;
+ NumericField aRowEdit;
+
+ CheckBox aHeaderCB;
+ CheckBox aRepeatHeaderCB;
+ CheckBox aDontSplitCB;
+ CheckBox aBorderCB;
+ GroupBox aOptionsGB;
+
+ GroupBox aFrm;
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+ PushButton aAutoFmtBtn;
+
+ SwWrtShell* pShell;
+ SwTableAutoFmt* pTAutoFmt;
+
+ DECL_LINK( ModifyName, Edit * );
+ DECL_LINK( ModifyRowCol, NumericField * );
+ DECL_LINK( AutoFmtHdl, PushButton* );
+ DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 );
+
+public:
+ SwInsTableDlg( SwView& rView );
+ ~SwInsTableDlg();
+
+ void GetValues( String& rName, USHORT& rRow, USHORT& rCol,
+ USHORT& rInsTblFlags,
+ SwTableAutoFmt *& prTAFmt );
+};
+
+#endif
diff --git a/sw/source/ui/inc/itemdef.hxx b/sw/source/ui/inc/itemdef.hxx
new file mode 100644
index 000000000000..f655af266ad2
--- /dev/null
+++ b/sw/source/ui/inc/itemdef.hxx
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * $RCSfile: itemdef.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef ITEMDEF_HXX
+#define ITEMDEF_HXX
+
+
+#ifndef _SFXMSG_HXX //autogen
+#include <sfx2/msg.hxx>
+#endif
+
+SFX_DECL_TYPE(10); //SwElemItem
+SFX_DECL_TYPE(13); //SwAddPrinterItem
+SFX_DECL_TYPE(16); //SwDocDisplayItem
+
+#endif
diff --git a/sw/source/ui/inc/javaedit.hxx b/sw/source/ui/inc/javaedit.hxx
new file mode 100644
index 000000000000..5afac53b79ca
--- /dev/null
+++ b/sw/source/ui/inc/javaedit.hxx
@@ -0,0 +1,144 @@
+/*************************************************************************
+ *
+ * $RCSfile: javaedit.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_JAVAEDIT_HXX
+#define _SW_JAVAEDIT_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef VCL
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#else
+#ifndef _SV_SVMEDIT_HXX //autogen
+#include <svtools/svmedit.hxx>
+#endif
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+
+class SwWrtShell;
+class SwFldMgr;
+class SwScriptField;
+
+// class SwJavaEditDialog -------------------------------------------------
+
+class SwJavaEditDialog : public SvxStandardDialog
+{
+public:
+ SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh);
+ ~SwJavaEditDialog();
+
+private:
+ FixedText aTypeFT;
+ Edit aTypeED;
+ RadioButton aUrlRB;
+ RadioButton aEditRB;
+ PushButton aUrlPB;
+ Edit aUrlED;
+ MultiLineEdit aEditED;
+ GroupBox aPostItGB;
+
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ ImageButton aPrevBtn;
+ ImageButton aNextBtn;
+ HelpButton aHelpBtn;
+
+ BOOL bNew;
+
+ SwScriptField* pFld;
+ SwFldMgr* pMgr;
+ SwWrtShell* pSh;
+
+ DECL_LINK( OKHdl, Button* );
+ DECL_LINK( PrevHdl, Button* );
+ DECL_LINK( NextHdl, Button* );
+ DECL_LINK( RadioButtonHdl, RadioButton* pBtn );
+ DECL_LINK( InsertFileHdl, PushButton * );
+
+ virtual void Apply();
+
+ void CheckTravel();
+ void SetFld();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/label.hxx b/sw/source/ui/inc/label.hxx
new file mode 100644
index 000000000000..8660d82e6ae1
--- /dev/null
+++ b/sw/source/ui/inc/label.hxx
@@ -0,0 +1,136 @@
+/*************************************************************************
+ *
+ * $RCSfile: label.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _LABEL_HXX
+#define _LABEL_HXX
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#define _SVSTDARR_USHORTS
+#include <svtools/svstdarr.hxx>
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
+#include <com/sun/star/frame/XModel.hpp>
+#endif
+
+class SwLabRec;
+class SwLabRecs;
+class SwLabItem;
+class SwLabPrtPage;
+class SwNewDBMgr;
+class Printer;
+
+class SwLabDlg : public SfxTabDialog
+{
+ SwNewDBMgr* pNewDBMgr;
+ SwLabPrtPage* pPrtPage;
+
+ SvUShorts aTypeIds;
+ SvStringsDtor aMakes;
+
+ SwLabRecs* pRecs;
+ String aLstGroup;
+ String sBusinessCardDlg;
+ String sFormat;
+ String sMedium;
+ BOOL m_bLabel;
+ void _ReplaceGroup( const String &rMake, SwLabItem *pItem );
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+public:
+
+ SwLabDlg( Window* pParent, const SfxItemSet& rSet,
+ SwNewDBMgr* pNewDBMgr, BOOL bLabel);
+ ~SwLabDlg();
+
+ void MakeConfigItem(SwLabItem& rItem) const;
+
+ SwLabRec* GetRecord(const String &rRecName, BOOL bCont);
+ void GetLabItem(SwLabItem &rItem);
+
+ SwLabRecs &Recs() { return *pRecs; }
+ const SwLabRecs &Recs() const { return *pRecs; }
+
+ SvUShorts &TypeIds() { return aTypeIds; }
+ const SvUShorts &TypeIds() const { return aTypeIds; }
+
+ SvStringsDtor &Makes() { return aMakes; }
+ const SvStringsDtor &Makes() const { return aMakes; }
+
+ Printer *GetPrt();
+ inline void ReplaceGroup( const String &rMake, SwLabItem *pItem );
+ static void UpdateFieldInformation(::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel,
+ const SwLabItem& rItem);
+ const String& GetBusinessCardStr() const {return sBusinessCardDlg;}
+
+};
+
+inline void SwLabDlg::ReplaceGroup( const String &rMake, SwLabItem *pItem )
+{
+ if ( rMake != aLstGroup )
+ _ReplaceGroup( rMake, pItem );
+}
+
+#endif
+
diff --git a/sw/source/ui/inc/labimg.hxx b/sw/source/ui/inc/labimg.hxx
new file mode 100644
index 000000000000..432d5d2e343c
--- /dev/null
+++ b/sw/source/ui/inc/labimg.hxx
@@ -0,0 +1,176 @@
+/*************************************************************************
+ *
+ * $RCSfile: labimg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _LABIMG_HXX
+#define _LABIMG_HXX
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+#ifndef _SFXCFGITEM_HXX //autogen
+#include <sfx2/cfgitem.hxx>
+#endif
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+// class SwLabItem ----------------------------------------------------------
+
+class SwLabItem : public SfxPoolItem
+{
+public:
+
+ SwLabItem();
+ SwLabItem(const SwLabItem& rItem);
+
+ SwLabItem& operator =(const SwLabItem& rItem);
+
+ virtual int operator ==(const SfxPoolItem& rItem) const;
+
+ virtual SfxPoolItem* Clone(SfxItemPool* = 0) const;
+
+ int Load (SvStream& rStrm, USHORT nVersion, BOOL bLabel);
+ BOOL Store(SvStream& rStrm, BOOL bLabel);
+
+ String aLstMake; //Letzte Auswahl merken.
+ String aLstType;
+ String sDBName; // Verwendete Datenbank
+
+ String aWriting; // Aufschrift
+ String aMake; // Etikettenmarke
+ String aType; // Etikettentyp
+ String aBin; // Druckerschacht
+ long lHDist; // Horizontaler Abstand (Benutzer)
+ long lVDist; // Vertikaler Abstand (Benutzer)
+ long lWidth; // Breite (Benutzer)
+ long lHeight; // Hoehe (Benutzer)
+ long lLeft; // Rand links (Benutzer)
+ long lUpper; // Rand oben (Benutzer)
+ USHORT nCols; // Anzahl Spalten (Benutzer)
+ USHORT nRows; // Anzahl Zeilen (Benutzer)
+ USHORT nCol; // Spalte fuer Einzeldruck
+ USHORT nRow; // Zeile fuer Einzeldruck
+ BOOL bAddr :1;// Adresse als Aufschrift?
+ BOOL bCont :1;// Endlospapier?
+ BOOL bPage :1;// Ganze Seite oder einzelnes Etikett?
+ BOOL bSynchron:1;// Alle Etiketten synchronisieren
+
+ //parts of the business card
+ String aPrivFirstName;
+ String aPrivName;
+ String aPrivShortCut;
+ String aPrivFirstName2;
+ String aPrivName2;
+ String aPrivShortCut2;
+ String aPrivStreet;
+ String aPrivZip;
+ String aPrivCity;
+ String aPrivCountry;
+ String aPrivState;
+ String aPrivTitle;
+ String aPrivProfession;
+ String aPrivPhone;
+ String aPrivMobile;
+ String aPrivFax;
+ String aPrivWWW;
+ String aPrivMail;
+ String aCompCompany;
+ String aCompCompanyExt;
+ String aCompSlogan;
+ String aCompStreet;
+ String aCompZip;
+ String aCompCity;
+ String aCompCountry;
+ String aCompState;
+ String aCompPosition;
+ String aCompPhone;
+ String aCompMobile;
+ String aCompFax;
+ String aCompWWW;
+ String aCompMail;
+
+ String sGlossaryGroup;
+ String sGlossaryBlockName;
+};
+
+// class SwLabCfgItem -------------------------------------------------------
+
+class SwLabCfgItem : public SfxConfigItem
+{
+ SwLabItem aLabItem;
+ SwLabItem aBusinessItem;
+protected:
+ virtual int Load (SvStream& rStrm);
+ virtual BOOL Store(SvStream& rStrm);
+ virtual void UseDefault();
+
+public:
+ SwLabCfgItem();
+
+ SwLabItem& GetLabItem() {return aLabItem;}
+ SwLabItem& GetBusinessItem() {return aBusinessItem;}
+ virtual String GetName() const;
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/linenum.hxx b/sw/source/ui/inc/linenum.hxx
new file mode 100644
index 000000000000..8e7a40897d41
--- /dev/null
+++ b/sw/source/ui/inc/linenum.hxx
@@ -0,0 +1,158 @@
+/*************************************************************************
+ *
+ * $RCSfile: linenum.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWLINENUM_HXX
+#define _SWLINENUM_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+class Window;
+class SfxItemSet;
+class SwView;
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung: SingleTabDialog
+ --------------------------------------------------------------------*/
+
+class SwLineNumberingDlg : public SfxSingleTabDialog
+{
+ SwWrtShell* pSh;
+
+ DECL_LINK( OKHdl, Button * );
+
+public:
+ inline SwWrtShell* GetWrtShell() const { return pSh; }
+
+ SwLineNumberingDlg(SwView *pVw);
+ ~SwLineNumberingDlg();
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage
+ --------------------------------------------------------------------*/
+
+class SwLineNumberingPage : public SfxTabPage
+{
+ CheckBox aNumberingOnCB;
+ FixedText aCharStyleFT;
+ ListBox aCharStyleLB;
+ FixedText aFormatFT;
+ ListBox aFormatLB;
+ FixedText aPosFT;
+ ListBox aPosLB;
+ FixedText aOffsetFT;
+ MetricField aOffsetMF;
+ FixedText aNumIntervalFT;
+ NumericField aNumIntervalNF;
+ FixedText aNumRowsFT;
+ GroupBox aDisplayGB;
+ FixedText aDivisorFT;
+ Edit aDivisorED;
+ FixedText aDivIntervalFT;
+ NumericField aDivIntervalNF;
+ FixedText aDivRowsFT;
+ GroupBox aDivisorGB;
+ CheckBox aCountEmptyLinesCB;
+ CheckBox aCountFrameLinesCB;
+ CheckBox aRestartEachPageCB;
+ GroupBox aCountGB;
+
+ SwWrtShell* pSh;
+
+ SwLineNumberingPage( Window* pParent, const SfxItemSet& rSet );
+ ~SwLineNumberingPage();
+
+ DECL_LINK( LineOnOffHdl, CheckBox *pCB = 0 );
+ DECL_LINK( ModifyHdl, Edit *pED = 0 );
+
+public:
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/listsh.hxx b/sw/source/ui/inc/listsh.hxx
new file mode 100644
index 000000000000..a963517bb0dd
--- /dev/null
+++ b/sw/source/ui/inc/listsh.hxx
@@ -0,0 +1,78 @@
+/*************************************************************************
+ *
+ * $RCSfile: listsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWLISTSH_HXX
+#define _SWLISTSH_HXX
+
+#include "basesh.hxx"
+
+class SwListShell: public SwBaseShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_LISTSHELL);
+ TYPEINFO();
+
+ SwListShell(SwView &rView);
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+};
+
+#endif
diff --git a/sw/source/ui/inc/macassgn.hxx b/sw/source/ui/inc/macassgn.hxx
new file mode 100644
index 000000000000..dc147435e931
--- /dev/null
+++ b/sw/source/ui/inc/macassgn.hxx
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: macassgn.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _MACASSGN_HXX
+#define _MACASSGN_HXX
+
+#ifndef _MACROPG_HXX //autogen
+#include <sfx2/macropg.hxx>
+#endif
+
+class SwWrtShell;
+class SvxMacroItem;
+
+enum DlgEventType
+{
+ MACASSGN_TEXTBAUST,
+ MACASSGN_GRAPHIC,
+ MACASSGN_OLE,
+ MACASSGN_FRMURL,
+ MACASSGN_INETFMT,
+ MACASSGN_ALLFRM
+};
+
+class SwMacroAssignDlg : public SfxMacroAssignDlg
+{
+public:
+ SwMacroAssignDlg( Window* pParent, SfxItemSet& rSet, DlgEventType eType );
+ virtual ~SwMacroAssignDlg();
+
+ static void AddEvents( SfxSmallMacroTabPage& rPg, DlgEventType eType );
+ static BOOL INetFmtDlg( Window* pParent, SwWrtShell& rSh,
+ SvxMacroItem*& rpINetItem );
+};
+
+
+
+
+#endif
+
diff --git a/sw/source/ui/inc/mailmrge.hxx b/sw/source/ui/inc/mailmrge.hxx
new file mode 100644
index 000000000000..1b6271e89a6b
--- /dev/null
+++ b/sw/source/ui/inc/mailmrge.hxx
@@ -0,0 +1,178 @@
+/*************************************************************************
+ *
+ * $RCSfile: mailmrge.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _MAILMRGE_HXX
+#define _MAILMRGE_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+class SwWrtShell;
+class SbaObject;
+class SbaSelectionListRef;
+class SwModuleOptions;
+
+class SwMailMergeDlg : public SvxStandardDialog
+{
+ RadioButton aAllRB;
+ RadioButton aMarkedRB;
+ RadioButton aFromRB;
+ NumericField aFromNF;
+ FixedText aBisFT;
+ NumericField aToNF;
+ GroupBox aRecordGB;
+
+ RadioButton aPrinterRB;
+ RadioButton aMailingRB;
+ RadioButton aFileRB;
+
+ CheckBox aSingleJobsCB;
+
+ FixedText aPathFT;
+ Edit aPathED;
+ PushButton aPathPB;
+ FixedText aFilenameFT;
+ RadioButton aColumnRB;
+ RadioButton aFilenameRB;
+ ListBox aColumnLB;
+ Edit aFilenameED;
+
+ FixedText aAddressFT;
+ ListBox aAddressFldLB;
+ FixedText aSubjectFT;
+ Edit aSubjectED;
+ FixedText aFormatFT;
+ FixedText aAttachFT;
+ Edit aAttachED;
+ PushButton aAttachPB;
+ CheckBox aFormatHtmlCB;
+ CheckBox aFormatRtfCB;
+ CheckBox aFormatSwCB;
+ GroupBox aDestGB;
+
+ OKButton aOkBTN;
+ CancelButton aCancelBTN;
+ HelpButton aHelpBTN;
+
+ SwWrtShell* pSh;
+#ifdef REPLACE_OFADBMGR
+#else
+ SbaObject* pSbaObject;
+#endif
+ SwModuleOptions* pModOpt;
+ const String& rDBName;
+#ifdef REPLACE_OFADBMGR
+ const String& rTableName;
+#endif
+ const String& rStatement;
+ SbaSelectionListRef& rSelectionList;
+
+ USHORT nMergeType;
+
+ DECL_LINK( ButtonHdl, Button* pBtn );
+ DECL_LINK( InsertPathHdl, PushButton * );
+ DECL_LINK( AttachFileHdl, PushButton * );
+ DECL_LINK( RadioButtonHdl, RadioButton* pBtn );
+ DECL_LINK( FilenameHdl, RadioButton* pBtn );
+ DECL_LINK( ModifyHdl, NumericField* pLB );
+
+ virtual void Apply();
+ void ExecQryShell(BOOL bVisible);
+
+public:
+
+ SwMailMergeDlg(Window* pParent, SwWrtShell* pSh,
+ const String& rName,
+#ifdef REPLACE_OFADBMGR
+ const String& rTblName,
+#endif
+ const String& rStat, SbaSelectionListRef& pSelList);
+ ~SwMailMergeDlg();
+
+ inline USHORT GetMergeType() { return nMergeType; }
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/makefile.mk b/sw/source/ui/inc/makefile.mk
new file mode 100644
index 000000000000..221888abb0c6
--- /dev/null
+++ b/sw/source/ui/inc/makefile.mk
@@ -0,0 +1,61 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
diff --git a/sw/source/ui/inc/mergetbl.hxx b/sw/source/ui/inc/mergetbl.hxx
new file mode 100644
index 000000000000..ef8481755b06
--- /dev/null
+++ b/sw/source/ui/inc/mergetbl.hxx
@@ -0,0 +1,94 @@
+/*************************************************************************
+ *
+ * $RCSfile: mergetbl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _MERGETBL_HXX
+#define _MERGETBL_HXX
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+
+class SwMergeTblDlg : public SvxStandardDialog
+{
+ OKButton aOKPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+ GroupBox aMergeGB;
+ RadioButton aMergePrevRB;
+ RadioButton aMergeNextRB;
+
+ BOOL& rMergePrev;
+protected:
+ virtual void Apply();
+
+public:
+ SwMergeTblDlg( Window *pParent, BOOL& rWithPrev );
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/misc.hrc b/sw/source/ui/inc/misc.hrc
new file mode 100644
index 000000000000..657d6f3e2777
--- /dev/null
+++ b/sw/source/ui/inc/misc.hrc
@@ -0,0 +1,142 @@
+/*************************************************************************
+ *
+ * $RCSfile: misc.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _MISC_HRC
+#define _MISC_HRC
+
+#include "rcid.hrc"
+
+#define DLG_QUERY_DELETE (RC_MISC_BEGIN + 2)
+
+#define DLG_MASTERDOC_PAGE (RC_MISC_BEGIN + 3)
+#define DLG_QUERY_ADD (RC_MISC_BEGIN + 4)
+
+#define STR_GLOSSARY_BIB_DLG (RC_MISC_BEGIN + 5)
+#define STR_DOCUMENT_BIB_DLG (RC_MISC_BEGIN + 6)
+
+#define WIN_GLOBAL_DOC (RC_MISC_BEGIN + 7)
+#define DLG_GLOBAL_DOC_OPTION (RC_MISC_BEGIN + 8)
+#define DLG_NUMBERING (RC_MISC_BEGIN + 9)
+#define DLG_ZOOM (RC_MISC_BEGIN + 10)
+#define DLG_GLOSSARY (RC_MISC_BEGIN + 11)
+#define DLG_INS_FOOTNOTE (RC_MISC_BEGIN + 12)
+#define DLG_DOC_FOOTNOTE (RC_MISC_BEGIN + 13)
+#define DLG_PG_FOOTNOTE (RC_MISC_BEGIN + 14)
+#define DLG_NUMBERING_OUTLINE (RC_MISC_BEGIN + 15)
+#define DLG_BIB_BASE (RC_MISC_BEGIN + 16)
+#define DLG_INSERT_BOOKMARK (RC_MISC_BEGIN + 17)
+#define DLG_NUM_NAMES (RC_MISC_BEGIN + 18)
+#define DLG_SORTING (RC_MISC_BEGIN + 19)
+#define DLG_CHARMAP (RC_MISC_BEGIN + 20)
+#define DLG_AUTOCORR (RC_MISC_BEGIN + 23)
+#define DLG_AUTOFMT_OPT (RC_MISC_BEGIN + 24)
+#define DLG_RENAME_GLOS (RC_MISC_BEGIN + 25)
+#define DLG_AUTOFMT_TAB (RC_MISC_BEGIN + 26)
+#define DLG_PRCNT_SET (RC_MISC_BEGIN + 27)
+#define DLG_INSERT_RULER (RC_MISC_BEGIN + 28)
+#define DLG_REDLINE_ACCEPT (RC_MISC_BEGIN + 29)
+#define DLG_SEL_TEMPLATE (RC_MISC_BEGIN + 30)
+#define DLG_TAB_OUTLINE (RC_MISC_BEGIN + 31)
+#define DLG_MOD_REDLINE_ACCEPT (RC_MISC_BEGIN + 32)
+
+
+#define MSG_DOUBLE_SHORTNAME (RC_MISC_BEGIN + 30)
+#define MSG_QUERY_DELETE (RC_MISC_BEGIN + 31)
+#define STR_QUERY_DELETE_GROUP1 (RC_MISC_BEGIN + 32)
+#define STR_QUERY_DELETE_GROUP2 (RC_MISC_BEGIN + 33)
+#define MSG_NO_GLOSSARIES (RC_MISC_BEGIN + 34)
+
+#define BMP_ROOT_CLOSED (RC_MISC_BEGIN + 35)
+#define BMP_ROOT_OPENED (RC_MISC_BEGIN + 36)
+
+#define MSG_BLOCK_CREATE_ERR (RC_MISC_BEGIN + 40)
+#define MSG_BLOCK_DELETE_ERR (RC_MISC_BEGIN + 41)
+#define MSG_SRTERR (RC_MISC_BEGIN + 42)
+
+#define STR_GLOSSARY (RC_MISC_BEGIN + 43)
+#define STR_CHANGE_START (RC_MISC_BEGIN + 44)
+#define STR_CHANGE_END (RC_MISC_BEGIN + 45)
+#define STR_SAVE_GLOSSARY (RC_MISC_BEGIN + 46)
+
+#define STR_FULLNUMS_START (RC_MISC_BEGIN + 47)
+#define STR_FULLNUMS_1 (STR_FULLNUMS_START )
+#define STR_FULLNUMS_2 (STR_FULLNUMS_START + 1)
+#define STR_FULLNUMS_3 (STR_FULLNUMS_START + 2)
+#define STR_FULLNUMS_4 (STR_FULLNUMS_START + 3)
+#define STR_FULLNUMS_5 (STR_FULLNUMS_START + 4)
+#define STR_FULLNUMS_6 (STR_FULLNUMS_START + 5)
+#define STR_FULLNUMS_7 (STR_FULLNUMS_START + 6)
+#define STR_FULLNUMS_8 (STR_FULLNUMS_START + 7)
+
+#define STR_BULLET_THEME (RC_MISC_BEGIN + 55)
+#define MSG_NO_BULLETS (RC_MISC_BEGIN + 56)
+
+#define STR_NUMRULE_UNKNOWN (RC_MISC_BEGIN + 60)
+#define MN_REDLINE_POPUP (RC_MISC_BEGIN + 61)
+#define STR_REMOVE_WARNING (RC_MISC_BEGIN + 62)
+
+#define MISC_ACT_END STR_REMOVE_WARNING
+
+#if MISC_ACT_END > RC_MISC_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif // _MISC_HRC
diff --git a/sw/source/ui/inc/multmrk.hxx b/sw/source/ui/inc/multmrk.hxx
new file mode 100644
index 000000000000..917c3d05b4c0
--- /dev/null
+++ b/sw/source/ui/inc/multmrk.hxx
@@ -0,0 +1,119 @@
+/*************************************************************************
+ *
+ * $RCSfile: multmrk.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _MULTMRK_HXX
+#define _MULTMRK_HXX
+
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+class SwTOXMgr;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Markierung fuer Verzeichniseintrag einfuegen
+ --------------------------------------------------------------------*/
+
+class SwMultiTOXMarkDlg : public SvxStandardDialog
+{
+ DECL_LINK( SelectHdl, ListBox * );
+
+ FixedText aEntryFT;
+ FixedInfo aTextFT;
+ FixedText aTOXFT;
+ ListBox aTOXLB;
+ GroupBox aTOXGB;
+ OKButton aOkBT;
+ CancelButton aCancelBT;
+
+ SwTOXMgr &rMgr;
+ USHORT nPos;
+
+ void Apply();
+public:
+ SwMultiTOXMarkDlg( Window* pParent, SwTOXMgr &rTOXMgr );
+ ~SwMultiTOXMarkDlg();
+};
+
+
+#endif // _MULTMRK_HXX
+
diff --git a/sw/source/ui/inc/navicfg.hxx b/sw/source/ui/inc/navicfg.hxx
new file mode 100644
index 000000000000..50ff2183c6d8
--- /dev/null
+++ b/sw/source/ui/inc/navicfg.hxx
@@ -0,0 +1,154 @@
+/*************************************************************************
+ *
+ * $RCSfile: navicfg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _NAVICFG_HXX
+#define _NAVICFG_HXX
+
+#ifndef _UTL_CONFIGITEM_HXX_
+#include <unotools/configitem.hxx>
+#endif
+/* -----------------------------08.09.00 16:27--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwNavigationConfig : public utl::ConfigItem
+{
+ sal_Int32 nRootType; //RootType
+ sal_Int32 nSelectedPos; //SelectedPosition
+ sal_Int32 nOutlineLevel; //OutlineLevel
+ sal_Int32 nRegionMode; //InsertMode
+ sal_Int32 nActiveBlock; //ActiveBlock//Expand/CollapsState
+ sal_Bool bIsSmall; //ShowListBox
+ sal_Bool bIsGlobalActive; //GlobalDocMode// Globalansicht fuer GlobalDoc gueltig?
+
+ com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
+
+public:
+ SwNavigationConfig();
+ ~SwNavigationConfig();
+
+ virtual void Commit();
+
+ sal_Int32 GetRootType()const {return nRootType;}
+ void SetRootType(sal_Int32 nSet){
+ if(nRootType != nSet)
+ {
+ SetModified();
+ nRootType = nSet;
+ }
+ }
+
+ sal_Int32 GetSelectedPos()const {return nSelectedPos;}
+ void SetSelectedPos(sal_Int32 nSet){
+ if(nSelectedPos != nSet)
+ {
+ SetModified();
+ nSelectedPos = nSet;
+ }
+ }
+
+
+ sal_Int32 GetOutlineLevel()const {return nOutlineLevel;}
+ void SetOutlineLevel(sal_Int32 nSet){
+ if(nOutlineLevel != nSet)
+ {
+ SetModified();
+ nOutlineLevel = nSet;
+ }
+ }
+
+ sal_Int32 GetRegionMode()const {return nRegionMode;}
+ void SetRegionMode(sal_Int32 nSet){
+ if(nRegionMode != nSet)
+ {
+ SetModified();
+ nRegionMode = nSet;
+ }
+ }
+
+
+ sal_Int32 GetActiveBlock()const {return nActiveBlock;}
+ void SetActiveBlock(sal_Int32 nSet){
+ if(nActiveBlock != nSet)
+ {
+ SetModified();
+ nActiveBlock = nSet;
+ }
+ }
+
+ sal_Bool IsSmall() const {return bIsSmall;}
+ void SetSmall(sal_Bool bSet){
+ if(bIsSmall != bSet)
+ {
+ SetModified();
+ bIsSmall = bSet;
+ }
+ }
+
+ sal_Bool IsGlobalActive() const {return bIsGlobalActive;}
+ void SetGlobalActive(sal_Bool bSet){
+ if(bIsGlobalActive != bSet)
+ {
+ SetModified();
+ bIsGlobalActive = bSet;
+ }
+ }
+};
+#endif
+
diff --git a/sw/source/ui/inc/navicont.hxx b/sw/source/ui/inc/navicont.hxx
new file mode 100644
index 000000000000..d273c1e98e38
--- /dev/null
+++ b/sw/source/ui/inc/navicont.hxx
@@ -0,0 +1,112 @@
+/*************************************************************************
+ *
+ * $RCSfile: navicont.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _NAVICONT_HXX
+#define _NAVICONT_HXX
+
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+class SwDocShell;
+class SotDataObject;
+
+/*-----------------06.02.97 19.10-------------------
+
+--------------------------------------------------*/
+
+
+class NaviContentBookmark
+
+/* [Beschreibung]
+
+ Navigator-Bookmark zur eindeutigen Identifizierung im Sw
+
+*/
+
+{
+ String aUrl; // URL inkl. Sprungmarke
+ String aDescr; // Description
+ long nDocSh; // Adresse der DocShell
+ USHORT nDefDrag; // Description enthaelt defaultDragType
+
+protected:
+
+public:
+ NaviContentBookmark( const String &rUrl, const String& rDesc,
+ USHORT nDragType, const SwDocShell* );
+ NaviContentBookmark();
+
+ const String& GetURL() const { return aUrl; }
+ const String& GetDescription() const { return aDescr; }
+ USHORT GetDefaultDragType() const { return nDefDrag; }
+ long GetDocShell() const {return(nDocSh);}
+
+ static BOOL DragServerHasFormat( USHORT nItem, const SwDocShell* pDocSh );
+ static ULONG HasFormat( SotDataObject& rObj );
+
+
+ BOOL CopyDragServer() const;
+ BOOL PasteDragServer( USHORT nItem );
+ BOOL Paste( SotDataObject& rObj, ULONG nFormat );
+};
+
+#endif
diff --git a/sw/source/ui/inc/navipi.hxx b/sw/source/ui/inc/navipi.hxx
new file mode 100644
index 000000000000..73f500293e91
--- /dev/null
+++ b/sw/source/ui/inc/navipi.hxx
@@ -0,0 +1,235 @@
+/*************************************************************************
+ *
+ * $RCSfile: navipi.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _NAVIPI_HXX
+#define _NAVIPI_HXX
+
+// INCLUDE ---------------------------------------------------------------
+
+#ifndef _SFXCTRLITEM_HXX //autogen
+#include <sfx2/ctrlitem.hxx>
+#endif
+
+#ifndef _SFXLSTNER_HXX //autogen
+#include <svtools/lstner.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+
+#include "conttree.hxx"
+#include "popbox.hxx"
+
+class SwWrtShell;
+class SwNavigationPI;
+class SwNavigationChild;
+class SfxBindings;
+class NumEditAction;
+class SwView;
+class SwNavigationConfig;
+class SfxObjectShellLock;
+class SfxChildWindowContext;
+
+//-----------------------------------------------------------------------
+
+class SwNavHelpToolBox : public SwHelpToolBox
+{
+ virtual void MouseButtonDown(const MouseEvent &rEvt);
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+
+ public:
+ SwNavHelpToolBox(Window* pParent, const ResId &rResId) :
+ SwHelpToolBox(pParent, rResId){}
+};
+
+
+// CLASS -----------------------------------------------------------------
+class SwNavigationPI: public Window,
+ public SfxControllerItem, public SfxListener
+{
+ friend class SwNavigationChild;
+ friend class SwContentTree;
+ friend class SwGlobalTree;
+
+private:
+
+ SwNavHelpToolBox aContentToolBox;
+ SwHelpToolBox aGlobalToolBox;
+ ImageList aContentImageList;
+ SwContentTree aContentTree;
+ SwGlobalTree aGlobalTree;
+ ListBox aDocListBox;
+
+ Timer aPageChgTimer;
+
+ SfxObjectShellLock* pxObjectShell;
+ SwView* pContentView;
+ SwWrtShell* pContentWrtShell;
+ SwView* pActContView;
+
+ SfxChildWindowContext* pContextWin;
+
+ SwNavigationConfig* pConfig;
+
+ String sContentFileName;
+ String aContextArr[3];
+ String aStatusArr[4];
+
+ Point aBoxBottomLeft; // Pos., wenn Box unten ist
+ long nDocLBIniHeight;
+ long nWishWidth;
+ USHORT nActMark;
+ USHORT nAutoMarkIdx;
+ USHORT nRegionMode; // 0 - URL, 1 - Bereich mit Link 2 - B. ohne Link
+ short nZoomIn;
+ short nZoomOutInit;
+ short nZoomOut;
+
+ BOOL bSmallMode : 1;
+ BOOL bIsZoomedIn : 1;
+ BOOL bPageCtrlsVisible : 1;
+ BOOL bGlobalMode : 1;
+
+ SfxBindings &rBindings;
+
+ BOOL _IsZoomedIn() const {return bIsZoomedIn;}
+ void _ZoomOut();
+ void _ZoomIn();
+
+ void FillBox();
+ void MakeMark();
+
+ DECL_LINK( DocListBoxSelectHdl, ListBox * );
+ DECL_LINK( ToolBoxSelectHdl, ToolBox * );
+ DECL_LINK( ToolBoxClickHdl, ToolBox * );
+ DECL_LINK( EditAction, NumEditAction * );
+ DECL_LINK( EditGetFocus, NumEditAction * );
+ DECL_LINK( DoneLink, SfxPoolItem * );
+ DECL_LINK( MenuSelectHdl, Menu * );
+ DECL_LINK( ReadOnlyHdl, void * );
+ DECL_LINK( ChangePageHdl, Timer* );
+ DECL_LINK( PageEditModifyHdl, Edit* );
+ void UsePage(SwWrtShell *);
+
+ void MakeVisible();
+
+ virtual SfxChildAlignment
+ CheckAlignment(SfxChildAlignment,SfxChildAlignment);
+
+protected:
+
+ virtual BOOL Close();
+ virtual void Resize();
+
+ virtual BOOL Drop( const DropEvent& rEvt);
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+
+ // zum App-Ende rechtzeitig ObjectShellLock loslassen
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+
+ NumEditAction& GetPageEdit();
+ BOOL ToggleTree();
+ void SetGlobalMode(BOOL bSet) {bGlobalMode = bSet;}
+
+
+public:
+ SwNavigationPI(SfxBindings*, SfxChildWindowContext*, Window*);
+ ~SwNavigationPI();
+
+ void GotoPage(); // Seite anspringen; bindbare Funktion
+
+ void Update() { FillBox(); }
+ void UpdateListBox();
+ void MoveOutline(USHORT nSource, USHORT nTarget, BOOL bWithCilds);
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+
+ static String CreateDropFileName(USHORT nItem);
+ static void CleanEntry( String& rEntry );
+
+ USHORT GetRegionDropMode() const {return nRegionMode;}
+ void SetRegionDropMode(USHORT nNewMode);
+ BOOL IsInDrag() const;
+
+ BOOL IsGlobalDoc() const;
+ BOOL IsGlobalMode() const {return bGlobalMode;}
+
+};
+
+class SwNavigationChild : public SfxChildWindowContext
+{
+protected:
+ virtual BOOL Drop( const DropEvent& rEvt);
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+public:
+ SwNavigationChild( Window* ,
+ USHORT nId,
+ SfxBindings*,
+ SfxChildWinInfo* );
+
+ SFX_DECL_CHILDWINDOW_CONTEXT( SwNavigationChild )
+
+};
+#endif
diff --git a/sw/source/ui/inc/num.hxx b/sw/source/ui/inc/num.hxx
new file mode 100644
index 000000000000..710b359ebda0
--- /dev/null
+++ b/sw/source/ui/inc/num.hxx
@@ -0,0 +1,236 @@
+/*************************************************************************
+ *
+ * $RCSfile: num.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _NUM_HXX
+#define _NUM_HXX
+
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _MENUBTN_HXX //autogen
+#include <vcl/menubtn.hxx>
+#endif
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+#ifndef _NUMPREVW_HXX
+#include <numprevw.hxx>
+#endif
+#ifndef _SVX_NUMPAGES_HXX
+#include <svx/numpages.hxx>
+#endif
+#include "numrule.hxx"
+#include "bmpwin.hxx" // BmpWindow
+
+class SwWrtShell;
+class SwDocShell;
+class SwUiNumRules;
+class SwCharFmt;
+class SvxBrushItem;
+class SwOutlineTabDialog;
+
+
+/*-----------------13.02.97 14.02-------------------
+
+--------------------------------------------------*/
+
+struct SwBmpItemInfo
+{
+ SvxBrushItem* pBrushItem;
+ USHORT nItemId;
+};
+
+
+/*-----------------07.02.97 15.37-------------------
+
+--------------------------------------------------*/
+#define NUM_PAGETYPE_BULLET 0
+#define NUM_PAGETYPE_SINGLENUM 1
+#define NUM_PAGETYPE_NUM 2
+#define NUM_PAGETYPE_BMP 3
+#define PAGETYPE_USER_START 10
+
+
+
+/*-----------------08.02.97 10.48-------------------
+ struct aktuelle Numerierung, wird in einem PointerItem
+ uebertragen und von allen Tabpages geshared
+--------------------------------------------------*/
+
+class SwNumValueSet;
+class ValueSet;
+class SwBmpNumValueSet;
+
+
+/*-----------------03.12.97 10:18-------------------
+
+--------------------------------------------------*/
+class SwNumPositionTabPage : public SfxTabPage
+{
+ GroupBox aLevelGB;
+ MultiListBox aLevelLB;
+
+ GroupBox aPositionGB;
+ FixedText aAlignFT;
+ ListBox aAlignLB;
+ FixedText aDistBorderFT;
+ CheckBox aRelativeCB;
+ MetricField aDistBorderMF;
+ FixedText aIndentFT;
+ MetricField aIndentMF;
+ FixedText aDistNumFT;
+ MetricField aDistNumMF;
+ PushButton aStandardPB;
+
+ GroupBox aPreviewGB;
+ NumberingPreview aPreviewWIN;
+
+ SwNumRule* pActNum;
+ SwNumRule* pSaveNum;
+ SwWrtShell* pWrtSh;
+
+ SwOutlineTabDialog* pOutlineDlg;
+ USHORT nActNumLvl;
+
+ BOOL bModified : 1;
+ BOOL bHasChild : 1;
+ BOOL bPreset : 1;
+ BOOL bInInintControl : 1; //Modify-Fehler umgehen, soll ab 391 behoben sein
+
+// void SetMinDist();
+ void InitControls();
+
+ DECL_LINK( LevelHdl, ListBox * );
+ DECL_LINK( EditModifyHdl, Edit*);
+ DECL_LINK( DistanceHdl, MetricField * );
+ DECL_LINK( RelativeHdl, CheckBox * );
+ DECL_LINK( StandardHdl, PushButton * );
+
+ public:
+ SwNumPositionTabPage(Window* pParent,
+ const SfxItemSet& rSet);
+ ~SwNumPositionTabPage();
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet *pSet);
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+ void SetOutlineTabDialog(SwOutlineTabDialog* pDlg){pOutlineDlg = pDlg;}
+ void SetWrtShell(SwWrtShell* pSh);
+#ifdef DEBUG
+ void SetModified(BOOL bRepaint = TRUE);
+#else
+ void SetModified(BOOL bRepaint = TRUE)
+ {bModified = TRUE;
+ if(bRepaint)
+ {
+ aPreviewWIN.SetLevel(nActNumLvl);
+ aPreviewWIN.Invalidate();
+ }
+ }
+#endif
+};
+
+class SwSvxNumBulletTabDialog : public SfxTabDialog
+{
+ SwWrtShell& rWrtSh;
+
+ String sRemoveText;
+ int nRetOptionsDialog;
+
+ protected:
+ virtual short Ok();
+ virtual void PageCreated(USHORT nPageId, SfxTabPage& rPage);
+ DECL_LINK(RemoveNumberingHdl, PushButton*);
+ public:
+ SwSvxNumBulletTabDialog(Window* pParent,
+ const SfxItemSet* pSwItemSet,
+ SwWrtShell &);
+ ~SwSvxNumBulletTabDialog();
+};
+#endif // _NUM_CXX
+
diff --git a/sw/source/ui/inc/numfmtlb.hxx b/sw/source/ui/inc/numfmtlb.hxx
new file mode 100644
index 000000000000..2a050a9e1957
--- /dev/null
+++ b/sw/source/ui/inc/numfmtlb.hxx
@@ -0,0 +1,116 @@
+/*************************************************************************
+ *
+ * $RCSfile: numfmtlb.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWNUMFMTLB_HXX
+#define _SWNUMFMTLB_HXX
+
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+
+class SwView;
+
+class NumFormatListBox : public ListBox
+{
+ short nCurrFormatType;
+ USHORT nStdEntry;
+ BOOL bOneArea;
+ ULONG nDefFormat;
+ SwView* pVw;
+ SvNumberFormatter* pOwnFormatter;
+ LanguageType eCurLanguage;
+
+ DECL_LINK( SelectHdl, ListBox * );
+
+ double GetDefValue(SvNumberFormatter* pFormatter, const short nFormatType) const;
+ void Init(short nFormatType, BOOL bUsrFmts);
+ SwView* GetView();
+
+public:
+ NumFormatListBox( Window* pWin, const ResId& rResId,
+ short nFormatType = NUMBERFORMAT_NUMBER, ULONG nDefFmt = 0,
+ BOOL bUsrFmts = TRUE );
+
+ NumFormatListBox( Window* pWin, SwView* pView, const ResId& rResId,
+ short nFormatType = NUMBERFORMAT_NUMBER, ULONG nDefFmt = 0,
+ BOOL bUsrFmts = TRUE );
+
+ ~NumFormatListBox();
+
+ void Clear();
+
+ inline void SetOneArea(BOOL bOnlyOne = TRUE) { bOneArea = bOnlyOne; }
+
+ void SetFormatType(const short nFormatType);
+ inline short GetFormatType() const { return nCurrFormatType; }
+ void SetDefFormat(const ULONG nDefFmt);
+ ULONG GetFormat() const;
+ const String& GetFormatStr() const;
+
+ inline LanguageType GetCurLanguage() const { return eCurLanguage;}
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/numpara.hxx b/sw/source/ui/inc/numpara.hxx
new file mode 100644
index 000000000000..21229ecdd084
--- /dev/null
+++ b/sw/source/ui/inc/numpara.hxx
@@ -0,0 +1,134 @@
+/*************************************************************************
+ *
+ * $RCSfile: numpara.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _NUMPARA_HXX
+#define _NUMPARA_HXX
+
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+
+/* --- class SwParagraphNumTabPage ----------------------------------------
+ Mit dieser TabPage werden Numerierungseinstellungen am Absatz bzw. der
+ Absatzvorlage vorgenommen.
+
+ ---------------------------------------------------------------------------*/
+class SwParagraphNumTabPage : public SfxTabPage
+{
+ GroupBox aNumberStyleGB;
+ ListBox aNumberStyleLB;
+
+ GroupBox aNewStartGB;
+ TriStateBox aNewStartCB;
+ FixedText aNewStartFT;
+ NumericField aNewStartNF;
+
+ GroupBox aCountParaGB;
+ TriStateBox aCountParaCB;
+ TriStateBox aRestartParaCountCB;
+ FixedText aRestartFT;
+ NumericField aRestartNF;
+
+ BOOL bModified : 1;
+ BOOL bCurNumrule : 1;
+
+ DECL_LINK( NewStartHdl_Impl, CheckBox* );
+ DECL_LINK( StyleHdl_Impl, ListBox* );
+ DECL_LINK( LineCountHdl_Impl, CheckBox* );
+
+protected:
+ SwParagraphNumTabPage(Window* pParent, const SfxItemSet& rSet );
+
+public:
+ ~SwParagraphNumTabPage();
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rSet );
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ void EnableNewStart();
+
+ ListBox& GetStyleBox() {return aNumberStyleLB;};
+
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/numprevw.hxx b/sw/source/ui/inc/numprevw.hxx
new file mode 100644
index 000000000000..729d85402745
--- /dev/null
+++ b/sw/source/ui/inc/numprevw.hxx
@@ -0,0 +1,107 @@
+/*************************************************************************
+ *
+ * $RCSfile: numprevw.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _NUMPREVW_HXX
+#define _NUMPREVW_HXX
+
+
+#ifndef _SV_WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+
+class SwNumRule;
+/*-----------------02.12.97 10:31-------------------
+
+--------------------------------------------------*/
+
+class NumberingPreview : public Window
+{
+ const SwNumRule* pActNum;
+ Font aStdFont;
+ long nPageWidth;
+ const String* pOutlineNames;
+ BOOL bPosition;
+ UINT16 nActLevel;
+
+ protected:
+ virtual void Paint( const Rectangle& rRect );
+
+ public:
+ NumberingPreview(Window* pParent, const ResId& rResId ) :
+ Window(pParent, rResId),
+ pActNum(0),nPageWidth(0), pOutlineNames(0), bPosition(FALSE), nActLevel(USHRT_MAX) {}
+ ~NumberingPreview();
+
+ void SetNumRule(const SwNumRule* pNum)
+ {pActNum = pNum; Invalidate();};
+ void SetPageWidth(long nPgWidth)
+ {nPageWidth = nPgWidth;}
+ void SetOutlineNames(const String* pNames)
+ {pOutlineNames = pNames;}
+ void SetPositionMode()
+ { bPosition = TRUE;}
+ void SetLevel(USHORT nSet) {nActLevel = nSet;}
+
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/olesh.hxx b/sw/source/ui/inc/olesh.hxx
new file mode 100644
index 000000000000..2f1742dcb8ba
--- /dev/null
+++ b/sw/source/ui/inc/olesh.hxx
@@ -0,0 +1,82 @@
+/*************************************************************************
+ *
+ * $RCSfile: olesh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWOLESH_HXX
+#define _SWOLESH_HXX
+
+#include "frmsh.hxx"
+
+class SwOleShell: public SwFrameShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_OLESHELL);
+
+ SwOleShell(SwView &rView);
+
+};
+
+#endif
+
+
+
+
+
+
+
diff --git a/sw/source/ui/inc/olmenu.hxx b/sw/source/ui/inc/olmenu.hxx
new file mode 100644
index 000000000000..5c5f66d4dfc0
--- /dev/null
+++ b/sw/source/ui/inc/olmenu.hxx
@@ -0,0 +1,102 @@
+/*************************************************************************
+ *
+ * $RCSfile: olmenu.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _OLMENU_HXX
+#define _OLMENU_HXX
+
+#ifndef _COM_SUN_STAR_LINGUISTIC_XDICTIONARY_HPP_
+#include <com/sun/star/linguistic/XDictionary.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLALTERNATIVES_HPP_
+#include <com/sun/star/linguistic/XSpellAlternatives.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XOTHERLINGU_HPP_
+#include <com/sun/star/linguistic/XOtherLingu.hpp>
+#endif
+
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+
+class SwWrtShell;
+class SvStringsDtor;
+
+class SwSpellPopup : public PopupMenu
+{
+ SwWrtShell* pSh;
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary > > aDics;
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellAlternatives > xSpellAlt;
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XOtherLingu> xOther;
+ LanguageType nCorrLang;
+
+public:
+ SwSpellPopup( SwWrtShell*,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellAlternatives > &xAlt );
+
+ sal_uInt16 Execute( Window* pWin, const Point& rPopupPos );
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/optload.hxx b/sw/source/ui/inc/optload.hxx
new file mode 100644
index 000000000000..71b65ae5ffc4
--- /dev/null
+++ b/sw/source/ui/inc/optload.hxx
@@ -0,0 +1,118 @@
+/*************************************************************************
+ *
+ * $RCSfile: optload.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _OPTLOAD_HXX
+#define _OPTLOAD_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+class SwWrtShell;
+
+/*-----------------31.08.96 10.09-------------------
+
+--------------------------------------------------*/
+
+class SwLoadOptPage : public SfxTabPage
+{
+private:
+ RadioButton aAlwaysRB;
+ RadioButton aRequestRB;
+ RadioButton aNeverRB;
+ CheckBox aLinkDocOnlyCB;
+ GroupBox aLinkGB;
+
+ CheckBox aAutoUpdateFields;
+ CheckBox aAutoUpdateCharts;
+ CheckBox aFldDocOnlyCB;
+ GroupBox aFldGB;
+
+ CheckBox aMergeDistCB;
+ CheckBox aMergeDistPageStartCB;
+ GroupBox aCompatGB;
+
+ SwWrtShell* pWrtShell;
+ USHORT nOldLinkMode;
+
+ DECL_LINK( UpdateHdl, CheckBox* );
+
+public:
+ SwLoadOptPage( Window* pParent,
+ const SfxItemSet& rSet );
+ ~SwLoadOptPage();
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/optpage.hxx b/sw/source/ui/inc/optpage.hxx
new file mode 100644
index 000000000000..87942b306da8
--- /dev/null
+++ b/sw/source/ui/inc/optpage.hxx
@@ -0,0 +1,531 @@
+/*************************************************************************
+ *
+ * $RCSfile: optpage.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _OPTPAGE_HXX
+#define _OPTPAGE_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _CTRLBOX_HXX //autogen
+#include <svtools/ctrlbox.hxx>
+#endif
+
+#ifndef _SVX_FNTCTRL_HXX //autogen
+#include <svx/fntctrl.hxx>
+#endif
+
+#ifndef _SVX_STRARRAY_HXX //autogen
+#include <svx/strarray.hxx>
+#endif
+
+class SvStringsDtor;
+class SfxPrinter;
+class SwStdFontConfig;
+class SwWrtShell;
+
+/*-----------------31.08.96 10.09-------------------
+
+--------------------------------------------------*/
+
+class SwContentOptPage : public SfxTabPage
+{
+
+private:
+ GroupBox aDispBox;
+ CheckBox aGrfCB;
+ CheckBox aTblCB;
+ CheckBox aDrwCB;
+ CheckBox aFldNameCB;
+ CheckBox aPostItCB;
+
+ GroupBox aBackBox;
+ CheckBox aIdxEntryCB;
+ CheckBox aIdxBackCB;
+ CheckBox aFootBackCB;
+ CheckBox aFldBackCB;
+
+ GroupBox aUnprintBox;
+ CheckBox aParaCB;
+ CheckBox aSHyphCB;
+ CheckBox aSpacesCB;
+ CheckBox aHSpacesCB;
+ CheckBox aTabCB;
+ CheckBox aBreakCB;
+ CheckBox aHiddenCB;
+ CheckBox aHiddenParaCB;
+
+public:
+ SwContentOptPage( Window* pParent,
+ const SfxItemSet& rSet );
+ ~SwContentOptPage();
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+};
+
+/*-----------------31.08.96 10.10-------------------
+
+--------------------------------------------------*/
+
+class SwLayoutOptPage : public SfxTabPage
+{
+
+ GroupBox aLineGB;
+ CheckBox aTxtbegCB;
+ CheckBox aTblbegCB;
+ CheckBox aSectBoundsCB;
+ CheckBox aCrossCB;
+ CheckBox aSolidHandleCB;
+ CheckBox aBigHandleCB;
+
+ GroupBox aWindowGB;
+ CheckBox aHScrollBox;
+ CheckBox aVScrollBox;
+ CheckBox aHRulerCBox;
+ CheckBox aVRulerCBox;
+ CheckBox aSmoothCBox;
+
+ ListBox aMetricLB;
+ GroupBox aMetricGB;
+
+ GroupBox aTabGB;
+ MetricField aTabMF;
+
+ UINT16 nLastTab;
+
+ SvxStringArray aMetricArr;
+
+ DECL_LINK(MetricHdl, ListBox*);
+
+ SwLayoutOptPage( Window* pParent,
+ const SfxItemSet& rSet );
+ ~SwLayoutOptPage();
+public:
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+};
+
+/*-------- OS 27.01.95 -----------------------------------
+ TabPage Druckereinstellungen Zusaetze
+--------------------------------------------------------- */
+
+
+class SwAddPrinterTabPage : public SfxTabPage
+{
+ CheckBox aGrfCB;
+ CheckBox aTabCB;
+ CheckBox aDrawCB;
+ CheckBox aCtrlFldCB;
+ CheckBox aBackgroundCB;
+ CheckBox aBlackFontCB;
+ GroupBox aGroup1;
+ CheckBox aLeftPageCB;
+ CheckBox aRightPageCB;
+ CheckBox aReverseCB;
+ CheckBox aProspectCB;
+ GroupBox aGroup2;
+ RadioButton aNoRB;
+ RadioButton aOnlyRB;
+ RadioButton aEndRB;
+ RadioButton aEndPageRB;
+ GroupBox aGroup3;
+ CheckBox aSingleJobsCB;
+ GroupBox aGroup4;
+ ListBox aFaxLB;
+ GroupBox aFaxGB;
+ CheckBox aPaperFromSetupCB;
+ GroupBox aGroup5;
+
+ BOOL bAttrModified;
+ BOOL bPreview;
+
+ void Init();
+ DECL_LINK( AutoClickHdl, CheckBox * );
+ DECL_LINK( SelectHdl, ListBox * );
+
+
+ SwAddPrinterTabPage( Window* pParent,
+ const SfxItemSet& rSet );
+
+public:
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+ void SetFax( const SvStringsDtor& );
+ void SelectFax( const String& );
+ void SetPreview(BOOL bPrev);
+
+};
+
+/*-----------------03.09.96 11.50-------------------
+
+--------------------------------------------------*/
+
+class SwStdFontTabPage : public SfxTabPage
+{
+ FixedText aStandardLbl;
+ ComboBox aStandardBox;
+ FixedText aTitleLbl ;
+ ComboBox aTitleBox ;
+ FixedText aListLbl ;
+ ComboBox aListBox ;
+ FixedText aLabelLbl ;
+ ComboBox aLabelBox ;
+ FixedText aIdxLbl ;
+ ComboBox aIdxBox ;
+ CheckBox aDocOnlyCB ;
+ GroupBox aStdChrFrm ;
+ PushButton aStandardPB;
+
+ String sShellStd;
+ String sShellTitle;
+ String sShellList;
+ String sShellLabel;
+ String sShellIndex;
+
+ SfxPrinter* pPrt;
+ SwStdFontConfig* pFontConfig;
+ SwWrtShell* pWrtShell;
+ // waren nur defaults vorhanden? wurden sie mit den Boxen ueberschrieben
+ BOOL bListDefault :1;
+ BOOL bSetListDefault :1;
+ BOOL bLabelDefault :1;
+ BOOL bSetLabelDefault :1;
+ BOOL bIdxDefault :1;
+ BOOL bSetIdxDefault :1;
+ BOOL bDeletePrinter :1;
+
+
+
+ DECL_LINK( StandardHdl, PushButton * );
+ DECL_LINK( ModifyHdl, ComboBox * );
+
+ SwStdFontTabPage( Window* pParent,
+ const SfxItemSet& rSet );
+ ~SwStdFontTabPage();
+
+public:
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+};
+
+/*-----------------18.01.97 12.10-------------------
+
+--------------------------------------------------*/
+
+class SwTableOptionsTabPage : public SfxTabPage
+{
+ GroupBox aMoveGB;
+ FixedText aRowMoveFT;
+ MetricField aRowMoveMF;
+ FixedText aColMoveFT;
+ MetricField aColMoveMF;
+
+ GroupBox aInsertGB;
+ FixedText aRowInsertFT;
+ MetricField aRowInsertMF;
+ FixedText aColInsertFT;
+ MetricField aColInsertMF;
+
+ GroupBox aHandlingGB;
+ RadioButton aFixRB;
+ RadioButton aFixPropRB;
+ RadioButton aVarRB;
+ FixedText aFixFT;
+ FixedText aFixPropFT;
+ FixedText aVarFT;
+
+ FixedText aDescFT;
+
+ SwWrtShell* pWrtShell;
+
+
+ SwTableOptionsTabPage( Window* pParent,
+ const SfxItemSet& rSet );
+ ~SwTableOptionsTabPage();
+
+public:
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ void SetWrtShell(SwWrtShell* pSh) {pWrtShell = pSh;}
+
+
+};
+/*-----------------19.04.97 13:17-------------------
+
+--------------------------------------------------*/
+class SwSourceViewOptionsTabPage : public SfxTabPage
+{
+ GroupBox aColorGB;
+ FixedText aSGMLFT;
+ ColorListBox aSGMLLB;
+ FixedText aCommentFT;
+ ColorListBox aCommentLB;
+ FixedText aKeywdFT;
+ ColorListBox aKeywdLB;
+ FixedText aUnknownFT;
+ ColorListBox aUnknownLB;
+
+ SwSourceViewOptionsTabPage( Window* pParent,
+ const SfxItemSet& rSet );
+ ~SwSourceViewOptionsTabPage();
+
+public:
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+};
+
+/*-----------------31.10.97 17:55-------------------
+ TabPage fuer ShadowCrsr
+--------------------------------------------------*/
+
+class SwShdwCrsrOptionsTabPage : public SfxTabPage
+{
+ GroupBox aFlagGB;
+ CheckBox aOnOffCB;
+
+ FixedText aFillModeFT;
+ RadioButton aFillMarginRB;
+ RadioButton aFillIndentRB;
+ RadioButton aFillTabRB;
+ RadioButton aFillSpaceRB;
+
+ FixedText aColorFT;
+ ColorListBox aColorLB;
+
+ GroupBox aCrsrOptGB;
+ CheckBox aCrsrInProtCB;
+
+ SwShdwCrsrOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
+ ~SwShdwCrsrOptionsTabPage();
+
+public:
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+};
+
+/*-----------------------------------------------------------------------
+ Beschreibung: Markierungsvorschau
+ -----------------------------------------------------------------------*/
+
+class SwMarkPreview : public Window
+{
+ Color aTransColor; // Transparente Farbe
+ Color aMarkColor; // Farbe der Markierungen
+
+ Rectangle aPage;
+ Rectangle aLeftPagePrtArea;
+ Rectangle aRightPagePrtArea;
+
+ USHORT nMarkPos;
+
+ void DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor);
+ void Paint(const Rectangle&);
+ void PaintPage(const Rectangle &rRect);
+
+public:
+
+ SwMarkPreview(Window* pParent, const ResId& rResID);
+ ~SwMarkPreview();
+
+ inline void SetColor(Color aCol) { aMarkColor = aCol; }
+ inline void SetMarkPos(USHORT nPos) { nMarkPos = nPos; }
+};
+
+/*-----------------------------------------------------------------------
+ Beschreibung: Redlining-Optionen
+ -----------------------------------------------------------------------*/
+
+class SwRedlineOptionsTabPage : public SfxTabPage
+{
+ RadioButton aInsertRB;
+ RadioButton aDeletedRB;
+ RadioButton aChangedRB;
+
+ FixedText aInsertFT;
+ ListBox aInsertLB;
+ ListBox aDeletedLB;
+ ListBox aChangedLB;
+ FixedText aInsertColorFT;
+ ColorListBox aInsertColorLB;
+ ColorListBox aDeletedColorLB;
+ ColorListBox aChangedColorLB;
+ SvxFontPrevWindow aAttribPreviewWN;
+ GroupBox aInsertGB;
+
+ FixedText aMarkPosFT;
+ ListBox aMarkPosLB;
+ FixedText aMarkColorFT;
+ ColorListBox aMarkColorLB;
+ SwMarkPreview aMarkPreviewWN;
+ GroupBox aChangedGB;
+ String sAuthor;
+ String sNone;
+
+ SwRedlineOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
+ ~SwRedlineOptionsTabPage();
+
+ DECL_LINK( RadioHdl, RadioButton *pRB );
+
+ DECL_LINK( AttribHdl, ListBox *pLB );
+ DECL_LINK( ChangedMaskPrevHdl, ListBox *pLB = 0 );
+ DECL_LINK( ColorHdl, ColorListBox *pColorLB );
+
+ void InitFontStyle(SvxFontPrevWindow& rExampleWin);
+
+public:
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+};
+
+/*--------OS 11.01.95 -----------------------------------
+ TabPage Testeinstellungen fuer SW
+--------------------------------------------------------- */
+
+#ifndef PRODUCT
+
+class SwTestTabPage : public SfxTabPage
+{
+public:
+ SwTestTabPage( Window* pParent,
+ const SfxItemSet& rSet );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+private:
+ GroupBox aTestGBox;
+ CheckBox aTest1CBox;
+ CheckBox aTest2CBox;
+ CheckBox aTest3CBox;
+ CheckBox aTest4CBox;
+ CheckBox aTest5CBox;
+ CheckBox aTest6CBox;
+ CheckBox aTest7CBox;
+ CheckBox aTest8CBox;
+ CheckBox aTest9CBox;
+ CheckBox aTest10CBox;
+
+ BOOL bAttrModified;
+
+ void Init();
+ DECL_LINK( AutoClickHdl, CheckBox * );
+
+};
+#endif //PRODUCT
+#endif
+
+
diff --git a/sw/source/ui/inc/outline.hxx b/sw/source/ui/inc/outline.hxx
new file mode 100644
index 000000000000..8205e1642270
--- /dev/null
+++ b/sw/source/ui/inc/outline.hxx
@@ -0,0 +1,209 @@
+/*************************************************************************
+ *
+ * $RCSfile: outline.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _OUTLINE_HXX
+#define _OUTLINE_HXX
+
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+
+#ifndef _SV_MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#include "swtypes.hxx" //fuer MAXLEVEL
+#ifndef _NUMPREVW_HXX
+#include <numprevw.hxx>
+#endif
+
+class SwWrtShell;
+class SwTxtFmtColl;
+class SwNumRule;
+class SwChapterNumRules;
+
+/* -----------------07.07.98 13:38-------------------
+ *
+ * --------------------------------------------------*/
+class SwOutlineTabDialog : public SfxTabDialog
+{
+ String aNullStr;
+ String aCollNames[MAXLEVEL];
+ PopupMenu aFormMenu;
+
+ SwWrtShell& rWrtSh;
+ SwNumRule* pNumRule;
+ SwChapterNumRules* pChapterNumRules;
+
+ USHORT nNumLevel;
+ BOOL bModified : 1;
+
+ protected:
+ DECL_LINK( CancelHdl, Button * );
+ DECL_LINK( FormHdl, Button * );
+ DECL_LINK( MenuSelectHdl, Menu * );
+
+ virtual void PageCreated(USHORT nPageId, SfxTabPage& rPage);
+ virtual short Ok();
+
+ public:
+ SwOutlineTabDialog(Window* pParent,
+ const SfxItemSet* pSwItemSet,
+ SwWrtShell &);
+ ~SwOutlineTabDialog();
+
+ SwNumRule* GetNumRule() {return pNumRule;}
+ USHORT GetLevel(const String &rFmtName) const;
+ String* GetCollNames() {return aCollNames;}
+ USHORT GetActNumLevel() {return nNumLevel;}
+ void SetActNumLevel(USHORT nSet) {nNumLevel = nSet;}
+};
+/* -----------------07.07.98 13:47-------------------
+ *
+ * --------------------------------------------------*/
+class SwOutlineSettingsTabPage : public SfxTabPage
+{
+ ListBox aLevelLB;
+ GroupBox aLevelGB;
+
+ FixedText aCollLbl;
+ ListBox aCollBox;
+ FixedText aNumberLbl;
+ ListBox aNumberBox;
+ FixedText aCharFmtFT;
+ ListBox aCharFmtLB;
+ FixedText aAllLevelFT;
+ NumericField aAllLevelNF;
+ FixedText aDelim;
+ FixedText aPrefixFT;
+ Edit aPrefixED;
+ FixedText aSuffixFT;
+ Edit aSuffixED;
+ FixedText aStartLbl;
+ NumericField aStartEdit;
+ GroupBox aNumberGrp;
+ GroupBox aPreviewGB;
+ NumberingPreview aPreviewWIN;
+
+ String aNoFmtName;
+ String aSaveCollNames[MAXLEVEL];
+ SwWrtShell* pSh;
+ SwNumRule* pNumRule;
+ String* pCollNames;
+ USHORT nActLevel;
+
+ DECL_LINK( LevelHdl, ListBox * );
+ DECL_LINK( ToggleComplete, NumericField * );
+ DECL_LINK( CollSelect, ListBox * );
+ DECL_LINK( CollSelectGetFocus, ListBox * );
+ DECL_LINK( NumberSelect, ListBox * );
+ DECL_LINK( DelimModify, Edit * );
+ DECL_LINK( StartModified, NumericField * );
+ DECL_LINK( CharFmtHdl, ListBox * );
+
+ void Update();
+
+ void SetModified(){aPreviewWIN.Invalidate();}
+
+
+public:
+ SwOutlineSettingsTabPage(Window* pParent, const SfxItemSet& rSet);
+ ~SwOutlineSettingsTabPage();
+
+ void SetWrtShell(SwWrtShell* pShell);
+
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet *pSet);
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+};
+#endif
diff --git a/sw/source/ui/inc/pardlg.hxx b/sw/source/ui/inc/pardlg.hxx
new file mode 100644
index 000000000000..501f8f3ebe09
--- /dev/null
+++ b/sw/source/ui/inc/pardlg.hxx
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: pardlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SW_PARDLG_HXX
+#define _SW_PARDLG_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+class SwView;
+class SfxItemSet;
+
+//DialogModes:
+#define DLG_STD 0
+#define DLG_ENVELOP 2
+
+class SwParaDlg: public SfxTabDialog
+{
+ SwView& rView;
+ USHORT nHtmlMode;
+ BYTE nDlgMode;
+ BOOL bDrawParaDlg;
+
+ void PageCreated(USHORT nID, SfxTabPage& rPage);
+
+public:
+ SwParaDlg( Window *pParent,
+ SwView& rVw,
+ const SfxItemSet&,
+ BYTE nDialogMode,
+ const String *pCollName = 0,
+ BOOL bDraw = FALSE,
+ UINT16 nDefPage = 0);
+ ~SwParaDlg();
+};
+
+
+#endif
diff --git a/sw/source/ui/inc/pattern.hxx b/sw/source/ui/inc/pattern.hxx
new file mode 100644
index 000000000000..b4ebc857d621
--- /dev/null
+++ b/sw/source/ui/inc/pattern.hxx
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: pattern.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _PATTERN_HXX
+#define _PATTERN_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+class Window;
+class SfxItemSet;
+
+class SwBackgroundDlg : public SfxSingleTabDialog
+{
+public:
+
+ SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet);
+ ~SwBackgroundDlg();
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/pgfnote.hxx b/sw/source/ui/inc/pgfnote.hxx
new file mode 100644
index 000000000000..a350a774545d
--- /dev/null
+++ b/sw/source/ui/inc/pgfnote.hxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * $RCSfile: pgfnote.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _PGFNOTE_HXX
+#define _PGFNOTE_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifdef VCL
+#ifndef _CTRLBOX_HXX
+#include <svtools/ctrlbox.hxx>
+#endif
+#else
+#include "linbox.hxx"
+#endif
+#include "colex.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung: Fussnoteneinstellungs-TabPage
+ --------------------------------------------------------------------*/
+
+class SwFootNotePage: public SfxTabPage
+{
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+
+private:
+ SwFootNotePage(Window *pParent, const SfxItemSet &rSet);
+ ~SwFootNotePage();
+
+ RadioButton aMaxHeightPageBtn;
+ RadioButton aMaxHeightBtn;
+ MetricField aMaxHeightEdit;
+ FixedText aDistLbl;
+ MetricField aDistEdit;
+ GroupBox aPosFrm;
+
+ FixedText aLinePosLbl;
+ ListBox aLinePosBox;
+ FixedText aLineTypeLbl;
+#ifdef VCL
+ LineListBox aLineTypeBox;
+#else
+ SwLineBox aLineTypeBox;
+#endif
+ FixedText aLineWidthLbl;
+ MetricField aLineWidthEdit;
+ FixedText aLineDistLbl;
+ MetricField aLineDistEdit;
+ GroupBox aLineFrm;
+ SwColExample aBspWin;
+ GroupBox aBspFrm;
+
+ DECL_LINK( HeightPage, Button * );
+ DECL_LINK( HeightMetric, Button * );
+ DECL_LINK( HeightModify, MetricField * );
+ void InitBsp(const SfxItemSet& rSet);
+
+ long lMaxHeight;
+
+ virtual void ActivatePage( const SfxItemSet& rSet );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+
+};
+
+#endif
diff --git a/sw/source/ui/inc/popbox.hxx b/sw/source/ui/inc/popbox.hxx
new file mode 100644
index 000000000000..c7091ae15e3a
--- /dev/null
+++ b/sw/source/ui/inc/popbox.hxx
@@ -0,0 +1,94 @@
+/*************************************************************************
+ *
+ * $RCSfile: popbox.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _POPBOX_HXX
+#define _POPBOX_HXX
+
+
+#ifndef _TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+
+class SwHelpToolBox: public ToolBox
+{
+ Link aDoubleClickLink;
+ Link aRightClickLink; // Link bekommt MouseEvent als Parameter !!!
+protected:
+ virtual void MouseButtonDown(const MouseEvent &rEvt);
+ virtual long DoubleClick(ToolBox *);
+ virtual BOOL Drop( const DropEvent& rEvt);
+ virtual BOOL QueryDrop( DropEvent& rEvt);
+public:
+ SwHelpToolBox(Window* pParent, const ResId &);
+ ~SwHelpToolBox();
+ void SetDoubleClickLink(const Link &); // inline
+ void SetRightClickLink(const Link &); // inline
+};
+
+inline void SwHelpToolBox::SetDoubleClickLink(const Link &rLink) {
+ aDoubleClickLink = rLink;
+}
+
+inline void SwHelpToolBox::SetRightClickLink(const Link &rLink) {
+ aRightClickLink = rLink;
+}
+
+
+#endif
diff --git a/sw/source/ui/inc/popup.hrc b/sw/source/ui/inc/popup.hrc
new file mode 100644
index 000000000000..e825a018c884
--- /dev/null
+++ b/sw/source/ui/inc/popup.hrc
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ * $RCSfile: popup.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _POPUP_HRC
+#define _POPUP_HRC
+
+#include "rcid.hrc"
+
+#define MN_TEXT_POPUPMENU (RC_POPUPS_BEGIN + 0)
+#define MN_TAB_POPUPMENU (RC_POPUPS_BEGIN + 1)
+#define MN_FRM_POPUPMENU (RC_POPUPS_BEGIN + 2)
+#define MN_DRAW_POPUPMENU (RC_POPUPS_BEGIN + 3)
+#define MN_DRWTXT_POPUPMENU (RC_POPUPS_BEGIN + 4)
+#define MN_GRF_POPUPMENU (RC_POPUPS_BEGIN + 5)
+#define MN_OLE_POPUPMENU (RC_POPUPS_BEGIN + 6)
+#define MN_PPREVIEW_POPUPMENU (RC_POPUPS_BEGIN + 7)
+#define MN_SRCVIEW_POPUPMENU (RC_POPUPS_BEGIN + 8)
+#define MN_DRAWFORM_POPUPMENU (RC_POPUPS_BEGIN + 9)
+
+#if MN_DRAWFORM_POPUPMENU > RC_POPUPS_END
+
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+
+#endif // _POPUP_HRC
diff --git a/sw/source/ui/inc/prcntfld.hxx b/sw/source/ui/inc/prcntfld.hxx
new file mode 100644
index 000000000000..47ee3cf3a724
--- /dev/null
+++ b/sw/source/ui/inc/prcntfld.hxx
@@ -0,0 +1,106 @@
+/*************************************************************************
+ *
+ * $RCSfile: prcntfld.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _PRCNTFLD_HXX
+#define _PRCNTFLD_HXX
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+class PercentField : public MetricField
+{
+ long nRefValue; // 100%-Wert fuer Umrechnung (in Twips)
+ long nOldMax, nOldMin, nOldSpinSize, nOldBaseValue;
+ long nLastPercent, nLastValue;
+ USHORT nOldDigits;
+ FieldUnit eOldUnit;
+
+ long ImpPower10(USHORT n);
+
+public:
+ PercentField( Window* pWin, const ResId& rResId );
+
+ void SetValue(long nNewValue, FieldUnit eInUnit = FUNIT_NONE);
+ void SetUserValue(long nNewValue, FieldUnit eInUnit = FUNIT_NONE);
+ void SetBaseValue(long nNewValue, FieldUnit eInUnit = FUNIT_NONE);
+ long GetValue(FieldUnit eOutUnit = FUNIT_NONE);
+ BOOL IsValueModified();
+
+ void SetMax(long nNewMax, FieldUnit eInUnit = FUNIT_NONE);
+ void SetMin(long nNewMin, FieldUnit eInUnit = FUNIT_NONE);
+
+ long Normalize(long nValue);
+ long Denormalize(long nValue);
+
+ void SetRefValue(long nValue);
+ inline long GetRefValue() const { return nRefValue; }
+ long GetRealValue(FieldUnit eOutUnit = FUNIT_NONE);
+
+ long Convert(long nValue, FieldUnit eInUnit, FieldUnit eOutUnit);
+
+ void ShowPercent(BOOL bPercent);
+
+ USHORT GetOldDigits() const {return nOldDigits;}
+
+};
+
+#endif // _PRCNTFLD_HXX
+
diff --git a/sw/source/ui/inc/prtopt.hxx b/sw/source/ui/inc/prtopt.hxx
new file mode 100644
index 000000000000..35f2409068ac
--- /dev/null
+++ b/sw/source/ui/inc/prtopt.hxx
@@ -0,0 +1,129 @@
+/*************************************************************************
+ *
+ * $RCSfile: prtopt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _PRTOPT_HXX
+#define _PRTOPT_HXX
+
+#ifndef _UTL_CONFIGITEM_HXX_
+#include <unotools/configitem.hxx>
+#endif
+
+class SwPrintOptions : public utl::ConfigItem
+{
+ sal_Bool
+ bPrintGraphic :1,
+ bPrintTable :1,
+ bPrintDraw :1,
+ bPrintControl :1,
+ bPrintPageBackground:1,
+ bPrintBlackFont :1,
+
+ bPrintLeftPage :1,
+ bPrintRightPage :1,
+ bReverse :1,
+ bPrintProspect :1,
+ bPrintSingleJobs :1,
+
+ bPaperFromSetup :1;
+
+ sal_uInt32 nPrintPostIts;
+ rtl::OUString sFaxName;
+
+ com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
+public:
+ SwPrintOptions(sal_Bool bWeb);
+ virtual ~SwPrintOptions();
+
+ virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ virtual void Commit();
+
+ sal_Bool IsPrintGraphic() const { return bPrintGraphic; }
+ sal_Bool IsPrintTable() const { return bPrintTable; }
+ sal_Bool IsPrintDraw() const { return bPrintDraw; }
+ sal_Bool IsPrintControl() const { return bPrintControl; }
+ sal_Bool IsPrintLeftPage() const { return bPrintLeftPage; }
+ sal_Bool IsPrintRightPage() const { return bPrintRightPage; }
+ sal_Bool IsPrintReverse() const { return bReverse; }
+ sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; }
+ sal_Bool IsPrintProspect() const { return bPrintProspect; }
+ sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; }
+ sal_Bool IsPrintBlackFont() const { return bPrintBlackFont;}
+ sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs;}
+ sal_uInt32 GetPrintPostIts() const { return nPrintPostIts; }
+ const rtl::OUString GetFaxName() const{return sFaxName;}
+
+ void SetPrintGraphic ( sal_Bool b ) { SetModified(); bPrintGraphic = b;}
+ void SetPrintTable ( sal_Bool b ) { SetModified(); bPrintTable = b;}
+ void SetPrintDraw ( sal_Bool b ) { SetModified(); bPrintDraw = b;}
+ void SetPrintControl ( sal_Bool b ) { SetModified(); bPrintControl = b; }
+ void SetPrintLeftPage ( sal_Bool b ) { SetModified(); bPrintLeftPage = b;}
+ void SetPrintRightPage( sal_Bool b ) { SetModified(); bPrintRightPage = b;}
+ void SetPrintReverse ( sal_Bool b ) { SetModified(); bReverse = b;}
+ void SetPaperFromSetup( sal_Bool b ) { SetModified(); bPaperFromSetup = b;}
+ void SetPrintPostIts ( sal_uInt32 n){ SetModified(); nPrintPostIts = n; }
+ void SetPrintProspect ( sal_Bool b ) { SetModified(); bPrintProspect = b; }
+ void SetPrintPageBackground(sal_Bool b){ SetModified(); bPrintPageBackground = b;}
+ void SetPrintBlackFont(sal_Bool b){ SetModified(); bPrintBlackFont = b;}
+ void SetPrintSingleJobs(sal_Bool b){ SetModified(); bPrintSingleJobs = b;}
+ void SetFaxName(const rtl::OUString& rSet){sFaxName = rSet;}
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/pview.hxx b/sw/source/ui/inc/pview.hxx
new file mode 100644
index 000000000000..57883c6b9249
--- /dev/null
+++ b/sw/source/ui/inc/pview.hxx
@@ -0,0 +1,283 @@
+/*************************************************************************
+ *
+ * $RCSfile: pview.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWPVIEW_HXX
+#define _SWPVIEW_HXX
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _VIEWFAC_HXX //autogen
+#include <sfx2/viewfac.hxx>
+#endif
+#ifndef _LINK_HXX //autogen
+#include <tools/link.hxx>
+#endif
+#ifndef _WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+#ifndef _SFXVIEWSH_HXX //autogen
+#include <sfx2/viewsh.hxx>
+#endif
+#include "shellid.hxx"
+
+class SwViewOption;
+class SwDocShell;
+class SwScrollbar;
+class ViewShell;
+class SwPagePreView;
+class ImageButton;
+class Button;
+class SwRect;
+class DataChangedEvent;
+class CommandEvent;
+
+class SwPagePreViewWin : public Window
+{
+ ViewShell* pViewShell;
+ USHORT nSttPage, nVirtPage;
+ BYTE nRow, nCol;
+ Size aWinSize, aPgSize;
+ Fraction aScale;
+ SwPagePreView& rView;
+
+ void SetPagePreview( BYTE nRow, BYTE nCol );
+
+public:
+ SwPagePreViewWin( Window* pParent, SwPagePreView& rView );
+ ~SwPagePreViewWin();
+
+ //Ruft ViewShell::Paint
+ virtual void Paint( const Rectangle& rRect );
+ virtual void KeyInput( const KeyEvent & );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void MouseButtonDown(const MouseEvent& rMEvt);
+ virtual void DataChanged( const DataChangedEvent& );
+
+ void SetViewShell( ViewShell* pShell ) { pViewShell = pShell; }
+ ViewShell* GetViewShell() const { return pViewShell; }
+
+ BYTE GetRow() const { return nRow; }
+ void SetRow( BYTE n ) { if( n ) nRow = n; }
+
+ BYTE GetCol() const { return nCol; }
+ void SetCol( BYTE n ) { if( n ) nCol = n; }
+
+ USHORT GetVirtPage() const { return nVirtPage; }
+ USHORT GetSttPage() const { return nSttPage; }
+ void SetSttPage( USHORT n )
+ { nSttPage = nVirtPage = n; if( !n ) ++nVirtPage; }
+
+ //JP 19.08.98: bei Einspaltigkeit gibt es keine 0. Seite!
+ USHORT GetDefSttPage() const { return 1 == nCol ? 1 : 0; }
+
+ void CalcWish( BYTE nNewRow, BYTE nNewCol );
+
+ const Size& GetWinSize() const { return aWinSize; }
+ void SetWinSize( const Size& rNewSize );
+
+ enum MoveMode{ MV_CALC, MV_PAGE_UP, MV_PAGE_DOWN, MV_DOC_STT, MV_DOC_END };
+ int MovePage( int eMoveMode );
+
+ // erzeuge den String fuer die StatusLeiste
+ void GetStatusStr( String& rStr, USHORT nPageCount ) const;
+ void GetOptimalSize( Size& rSize ) const;
+
+ void RepaintCoreRect( const SwRect& rRect );
+};
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sicht auf ein Dokument
+ --------------------------------------------------------------------*/
+
+class SwPagePreView: public SfxViewShell
+{
+ // ViewWindow und Henkel zur Core
+ // aktuelle Dispatcher-Shell
+ SwPagePreViewWin aViewWin;
+ //viewdata of the previous SwView and the new crsrposition
+ String sSwViewData,
+ //and the new cursor position if the user double click in the PagePreView
+ sNewCrsrPos;
+ // Sichtbarer Bereich
+ String sPageStr;
+ Size aDocSz;
+ Rectangle aVisArea;
+
+ // MDI Bedienelemente
+ SwScrollbar *pHScrollbar;
+ SwScrollbar *pVScrollbar;
+ ImageButton *pPageUpBtn,
+ *pPageDownBtn;
+ // Dummy-Window zum Fllen der rechten unteren Ecke, wenn beide Scrollbars
+ // aktiv sind
+ Window *pScrollFill;
+
+ USHORT nPageCount;
+ BOOL bNormalPrint;
+
+ void Init(const SwViewOption* = 0);
+ Point AlignToPixel(const Point& rPt) const;
+
+ int _CreateScrollbar( int bHori );
+ int _KillScrollbar( int bHori );
+ DECL_LINK( ScrollHdl, SwScrollbar * );
+ DECL_LINK( EndScrollHdl, SwScrollbar * );
+ DECL_LINK( BtnPage, Button * );
+ int ChgPage( int eMvMode, int bUpdateScrollbar = TRUE );
+
+
+ virtual USHORT Print( SfxProgress &rProgress,
+ PrintDialog *pPrintDialog = 0 );
+ virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE );
+ virtual USHORT SetPrinter( SfxPrinter *pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL );
+ virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent,
+ const SfxItemSet &rOptions );
+ virtual PrintDialog* CreatePrintDialog( Window *pParent );
+
+ void CalcAndSetBorderPixel( SvBorder &rToFill, FASTBOOL bInner );
+
+
+protected:
+ virtual void InnerResizePixel( const Point &rOfs, const Size &rSize );
+ virtual void OuterResizePixel( const Point &rOfs, const Size &rSize );
+ virtual Size GetOptimalSizePixel() const;
+
+public:
+ SFX_DECL_VIEWFACTORY(SwPagePreView);
+ SFX_DECL_INTERFACE(SW_PAGEPREVIEW);
+ TYPEINFO();
+
+ inline Window* GetFrameWindow() const { return &(GetViewFrame())->GetWindow(); }
+ inline ViewShell& GetViewShell() const { return *aViewWin.GetViewShell(); }
+ inline const Rectangle& GetVisArea() const { return aVisArea; }
+ inline void GrabFocusViewWin() { aViewWin.GrabFocus(); }
+ inline void RepaintCoreRect( const SwRect& rRect )
+ { aViewWin.RepaintCoreRect( rRect ); }
+
+ void DocSzChgd(const Size& rNewSize);
+ const Size& GetDocSz() const { return aDocSz; }
+
+ virtual void SetVisArea( const Rectangle&, BOOL bUpdateScrollbar = TRUE);
+
+ inline int StatHScrollbar() const;
+ inline int CreateHScrollbar();
+ inline int KillHScrollbar();
+ inline int CreateVScrollbar();
+ inline int KillVScrollbar();
+ inline int StatVScrollbar() const;
+ inline void AdjustEditWin();
+
+ void VScrollViewSzChg();
+ void VScrollDocSzChg();
+
+ USHORT GetPageCount() const { return nPageCount; }
+
+ BOOL HandleWheelCommands( const CommandEvent& );
+
+ const String& GetPrevSwViewData() const { return sSwViewData; }
+ void SetNewCrsrPos( const String& rStr ) { sNewCrsrPos = rStr; }
+ const String& GetNewCrsrPos() const { return sNewCrsrPos; }
+ // Handler
+ void Execute(SfxRequest&);
+ void GetState(SfxItemSet&);
+ void StateUndo(SfxItemSet&);
+
+ SwDocShell* GetDocShell();
+
+ SwPagePreView( SfxViewFrame* pFrame, SfxViewShell* );
+ ~SwPagePreView();
+};
+
+// ----------------- inline Methoden ----------------------
+
+inline int SwPagePreView::StatHScrollbar() const
+{
+ return 0 != pHScrollbar;
+}
+inline int SwPagePreView::CreateHScrollbar()
+{
+ return StatHScrollbar() ? 1 : _CreateScrollbar( TRUE );
+}
+inline int SwPagePreView::KillHScrollbar()
+{
+ return StatHScrollbar() ? _KillScrollbar( TRUE ) : 1;
+}
+
+inline int SwPagePreView::StatVScrollbar() const
+{
+ return 0 != pVScrollbar;
+}
+inline int SwPagePreView::CreateVScrollbar()
+{
+ return StatVScrollbar() ? 1 : _CreateScrollbar( FALSE );
+}
+inline int SwPagePreView::KillVScrollbar()
+{
+ return StatVScrollbar() ? _KillScrollbar( FALSE ) : 1;
+}
+
+inline void SwPagePreView::AdjustEditWin()
+{
+ OuterResizePixel( Point(), GetFrameWindow()->GetOutputSizePixel() );
+}
+
+#endif
diff --git a/sw/source/ui/inc/redlndlg.hxx b/sw/source/ui/inc/redlndlg.hxx
new file mode 100644
index 000000000000..21cdc682b5f1
--- /dev/null
+++ b/sw/source/ui/inc/redlndlg.hxx
@@ -0,0 +1,131 @@
+/*************************************************************************
+ *
+ * $RCSfile: redlndlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWREDLNDLG_HXX
+#define _SWREDLNDLG_HXX
+
+#include "chldwrap.hxx"
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+class SwChildWinWrapper;
+class SwRedlineAcceptDlg;
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+class SwModelessRedlineAcceptDlg : public SfxModelessDialog
+{
+ SwRedlineAcceptDlg* pImplDlg;
+ SwChildWinWrapper* pChildWin;
+
+ virtual void Resize();
+
+public:
+ SwModelessRedlineAcceptDlg(SfxBindings*, SwChildWinWrapper*, Window *pParent);
+ ~SwModelessRedlineAcceptDlg();
+
+ virtual void Activate();
+ virtual void FillInfo(SfxChildWinInfo&) const;
+ void Initialize (SfxChildWinInfo* pInfo);
+};
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+class SwModalRedlineAcceptDlg : public SfxModalDialog
+{
+ SwRedlineAcceptDlg* pImplDlg;
+
+ virtual void Resize();
+
+public:
+ SwModalRedlineAcceptDlg(Window *pParent);
+ ~SwModalRedlineAcceptDlg();
+
+ void AcceptAll( BOOL bAccept );
+ virtual void Activate();
+};
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+class SwRedlineAcceptChild : public SwChildWinWrapper
+{
+public:
+ SwRedlineAcceptChild( Window* ,
+ USHORT nId,
+ SfxBindings*,
+ SfxChildWinInfo* );
+
+ SFX_DECL_CHILDWINDOW( SwRedlineAcceptChild );
+
+ virtual BOOL ReInitDlg(SwDocShell *pDocSh);
+};
+
+
+#endif
+
+
diff --git a/sw/source/ui/inc/regionsw.hxx b/sw/source/ui/inc/regionsw.hxx
new file mode 100644
index 000000000000..d533f689234b
--- /dev/null
+++ b/sw/source/ui/inc/regionsw.hxx
@@ -0,0 +1,418 @@
+/*************************************************************************
+ *
+ * $RCSfile: regionsw.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _REGIONSW_HXX
+#define _REGIONSW_HXX
+
+#ifndef _SV_FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _BITMAP_HXX //autogen
+#include <vcl/bitmap.hxx>
+#endif
+#ifndef _SVTREEBOX_HXX //autogen
+#include <svtools/svtreebx.hxx>
+#endif
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+
+#ifndef _CONDEDIT_HXX
+#include <condedit.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _FMTCLDS_HXX
+#include <fmtclds.hxx>
+#endif
+#ifndef _FMTFTNTX_HXX
+#include <fmtftntx.hxx>
+#endif
+#ifndef _FMTCLBL_HXX
+#include <fmtclbl.hxx>
+#endif
+
+class SwWrtShell;
+class EditRegionDlg;
+class DropEvent;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SectRepr
+{
+ SwSection aSection;
+ SwFmtCol aCol;
+ SvxBrushItem aBrush;
+ SwFmtFtnAtTxtEnd aFtnNtAtEnd;
+ SwFmtEndAtTxtEnd aEndNtAtEnd;
+ SwFmtNoBalancedColumns aBalance;
+ USHORT nArrPos;
+ USHORT nColumn;
+ BOOL bContent : 1; //zeigt an, ob evtl. Textinhalt im Bereich ist
+ BOOL bSelected : 1; //fuer Multiselektion erst markieren, dann mit der TreeListBox arbeiten!
+ BOOL bIsCondition: 1; //
+
+public:
+ SectRepr(USHORT nPos, SwSection& rSect);
+ int operator ==(SectRepr& rSectRef) const
+ {return nArrPos==rSectRef.GetArrPos();}
+
+ int operator <(SectRepr& rSectRef) const
+ {return nArrPos<rSectRef.GetArrPos();}
+
+ SwSection& GetSection() { return aSection; }
+ SwFmtCol& GetCol() { return aCol; }
+ SvxBrushItem& GetBackground() { return aBrush; }
+ SwFmtFtnAtTxtEnd& GetFtnNtAtEnd() { return aFtnNtAtEnd; }
+ SwFmtEndAtTxtEnd& GetEndNtAtEnd() { return aEndNtAtEnd; }
+ SwFmtNoBalancedColumns& GetBalance() { return aBalance; }
+
+ USHORT GetArrPos() const {return nArrPos;}
+ const String& GetCondition() const {return aSection.GetCondition();}
+ const String& GetName() const { return aSection.GetName(); }
+ String GetFile() const;
+ String GetSubRegion() const;
+ void SetFile( const String& rFile );
+ void SetFilter( const String& rFilter );
+ void SetSubRegion( const String& rSubRegion );
+
+ void SetFilePasswd( const String& rPasswd )
+ { aSection.SetLinkFilePassWd( rPasswd ); }
+ void SetCondition( const String& rString )
+ {aSection.SetCondition( rString);}
+ int IsCondHidden()const
+ {return aSection.IsCondHidden();}
+ int IsHidden()const
+ {return aSection.IsHidden();}
+ int IsProtect()const
+ {return aSection.IsProtect();}
+ void SetHidden(int bFlag = TRUE)
+ {aSection.SetHidden(bFlag);}
+ void SetCondHidden(int bFlag = TRUE)
+ {aSection.SetCondHidden(bFlag);}
+ void SetProtect(int bFlag = TRUE)
+ {aSection.SetProtect(bFlag);}
+ BOOL IsContent(){return bContent;}
+ void SetContent(BOOL bValue){bContent = bValue;}
+ void SetSectionType(SectionType eSectionType) {aSection.SetType(eSectionType);}
+ SectionType GetSectionType(){return aSection.GetType();}
+
+ void SetSelected(){bSelected = TRUE;}
+ BOOL IsSelected() const {return bSelected;}
+
+ BOOL IsConditionValid() const {return bIsCondition;}
+ void SetConditionValid(BOOL bSet) { bIsCondition = bSet;}
+
+};
+
+/*************************************************************************
+ Dialog "Bereiche bearbeiten"
+*************************************************************************/
+
+typedef SectRepr* SectReprPtr;
+SV_DECL_PTRARR_SORT( SectReprArr, SectReprPtr, 0, 4 )
+
+class SwEditRegionDlg : public SfxModalDialog
+{
+ SvTreeListBox aTree;
+ CheckBox aPasswdCB;
+ FixedText aNameFT;
+ Edit aCurName;
+ TriStateBox aProtectCB;
+ TriStateBox aHideCB;
+ TriStateBox aCondCB;
+ ConditionEdit aConditionED;
+
+ TriStateBox aFileCB;
+#ifdef DDE_AVAILABLE
+ CheckBox aDDECB;
+#endif
+ FixedText aFileNameFT;
+#ifdef DDE_AVAILABLE
+ FixedText aDDECommandFT;
+#endif
+ Edit aFileNameED;
+ ComboBox aSubRegionED;
+ FixedText aSubRegionFT;
+ OKButton aOK;
+ CancelButton aCancel;
+ PushButton aOptionsPB;
+ PushButton aDismiss;
+ HelpButton aHelp;
+ PushButton aFilePB;
+ GroupBox aGroupBoxName;
+ GroupBox aGroupBoxOptions;
+ Bitmap aProtHideBM;
+ Bitmap aProtNoHideBM;
+ Bitmap aNoProtHideBM;
+ Bitmap aNoProtNoHideBM;
+ Bitmap aExpNode;
+ Bitmap aCollNode;
+
+ Bitmap aBmpArr[4];
+ String aNewPasswd;
+ SwWrtShell& rSh;
+ SectReprArr aSectReprArr;
+ SvLBoxEntry* pAktEntry;
+ const SwSection*pCurrSect;
+
+ BOOL bIsPasswd :1;
+ BOOL bIsPasswdSet :1;
+ BOOL bWeb :1;
+
+
+ Bitmap& BuildBitmap(BOOL bProtect,BOOL bHidden)
+ { return aBmpArr[bProtect+(bHidden<<1)]; }
+
+public:
+ SwEditRegionDlg( Window* pParent, SwWrtShell& rWrtSh );
+ virtual ~SwEditRegionDlg();
+
+ void RecurseList( const SwSectionFmt* pFmt, SvLBoxEntry* pEntry);
+ USHORT FindArrPos(const SwSectionFmt* pFmt);
+
+ void SetPassword(const String& rPassWd);
+
+ DECL_LINK( GetFirstEntryHdl, SvTreeListBox * );
+ DECL_LINK( DeselectHdl, SvTreeListBox * );
+
+ DECL_LINK( OkHdl, CheckBox * );
+ DECL_LINK( NameEditHdl, Edit * );
+ DECL_LINK( ConditionEditHdl, Edit * );
+
+ DECL_LINK( ChangePasswdHdl, CheckBox * );
+ DECL_LINK( ChangeProtectHdl, TriStateBox * );
+ DECL_LINK( ChangeHideHdl, TriStateBox * );
+ DECL_LINK( ChangeCondHdl, TriStateBox * );
+ DECL_LINK( ChangeDismissHdl, CheckBox * );
+ DECL_LINK( UseFileHdl, CheckBox* );
+ DECL_LINK( FileSearchHdl, PushButton* );
+ DECL_LINK( OptionsHdl, PushButton* );
+ DECL_LINK( FileNameHdl, Edit* );
+#ifdef DDE_AVAILABLE
+ DECL_LINK( DDEHdl, CheckBox* );
+#endif
+};
+/*************************************************************************
+ Dialog "Bereich einfuegen"
+*************************************************************************/
+
+/* -----------------21.05.99 11:05-------------------
+ *
+ * --------------------------------------------------*/
+class SwInsertSectionTabPage : public SfxTabPage
+{
+ ComboBox aCurName;
+ CheckBox aProtectCB;
+ CheckBox aHideCB;
+ CheckBox aCondCB;
+ ConditionEdit aConditionED;
+ CheckBox aFileCB;
+#ifdef DDE_AVAILABLE
+ CheckBox aDDECB;
+ FixedText aDDECommandFT;
+#endif
+ FixedText aFileNameFT;
+ Edit aFileNameED;
+ FixedText aSubRegionFT;
+ ComboBox aSubRegionED;
+ PushButton aFilePB;
+ GroupBox aGroupBoxName;
+ GroupBox aGroupBoxOptions;
+ String sSection;
+ String sFileName;
+ String sFilterName;
+ String sFilePasswd;
+
+// SwFmtCol* pCols;
+ const String* pPasswdSect;
+// SfxRequest* pRequest;
+ SwWrtShell* pWrtSh;
+
+ DECL_LINK( ChangeHideHdl, CheckBox * );
+ DECL_LINK( ChangeProtectHdl, CheckBox * );
+ DECL_LINK( ChangeCondHdl, CheckBox * );
+ DECL_LINK( NameEditHdl, Edit * );
+ DECL_LINK( UseFileHdl, CheckBox* );
+ DECL_LINK( FileSearchHdl, PushButton* );
+#ifdef DDE_AVAILABLE
+ DECL_LINK( DDEHdl, CheckBox* );
+#endif
+
+ void FillList( const SwSectionFmt* pFmt = 0 );
+
+public:
+ SwInsertSectionTabPage(Window *pParent, const SfxItemSet &rAttrSet);
+ virtual ~SwInsertSectionTabPage();
+
+ void SetWrtShell(SwWrtShell& rSh);
+
+ virtual BOOL FillItemSet( SfxItemSet& );
+ virtual void Reset( const SfxItemSet& );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+};
+
+class SwSectionFtnEndTabPage : public SfxTabPage
+{
+ GroupBox aGroupBoxFtn;
+ CheckBox aFtnNtAtTextEndCB;
+
+ CheckBox aFtnNtNumCB;
+ FixedText aFtnOffsetLbl;
+ NumericField aFtnOffsetFld;
+
+ CheckBox aFtnNtNumFmtCB;
+ FixedText aFtnPrefixFT;
+ Edit aFtnPrefixED;
+ ListBox aFtnNumViewBox;
+ FixedText aFtnSuffixFT;
+ Edit aFtnSuffixED;
+
+ GroupBox aGroupBoxEnd;
+ CheckBox aEndNtAtTextEndCB;
+
+ CheckBox aEndNtNumCB;
+ FixedText aEndOffsetLbl;
+ NumericField aEndOffsetFld;
+
+ CheckBox aEndNtNumFmtCB;
+ FixedText aEndPrefixFT;
+ Edit aEndPrefixED;
+ ListBox aEndNumViewBox;
+ FixedText aEndSuffixFT;
+ Edit aEndSuffixED;
+
+
+ DECL_LINK( FootEndHdl, CheckBox * );
+ void ResetState( BOOL bFtn, const SwFmtFtnEndAtTxtEnd& );
+
+public:
+ SwSectionFtnEndTabPage( Window *pParent, const SfxItemSet &rAttrSet );
+ virtual ~SwSectionFtnEndTabPage();
+
+ virtual BOOL FillItemSet( SfxItemSet& );
+ virtual void Reset( const SfxItemSet& );
+
+ static SfxTabPage* Create( Window* pParent,
+ const SfxItemSet& rAttrSet);
+};
+
+/* -----------------21.05.99 13:07-------------------
+ *
+ * --------------------------------------------------*/
+class SwInsertSectionTabDialog : public SfxTabDialog
+{
+ SwWrtShell& rWrtSh;
+ SwSection* pToInsertSection;
+protected:
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+ virtual short Ok();
+public:
+ SwInsertSectionTabDialog(Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh);
+ virtual ~SwInsertSectionTabDialog();
+
+ void SetSection(const SwSection& rSect);
+ SwSection* GetSection() { return pToInsertSection;}
+};
+
+/* -----------------21.05.99 13:07-------------------
+ *
+ * --------------------------------------------------*/
+class SwSectionPropertyTabDialog : public SfxTabDialog
+{
+protected:
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+public:
+ SwSectionPropertyTabDialog(Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh);
+ virtual ~SwSectionPropertyTabDialog();
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/ribbar.hrc b/sw/source/ui/inc/ribbar.hrc
new file mode 100644
index 000000000000..68d73f2b4a81
--- /dev/null
+++ b/sw/source/ui/inc/ribbar.hrc
@@ -0,0 +1,168 @@
+/*************************************************************************
+ *
+ * $RCSfile: ribbar.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _RIBBAR_HRC
+#define _RIBBAR_HRC
+
+#include "rcid.hrc"
+
+#define MN_FORM1 1 // Defines fuer NumNames-Popup
+#define MN_FORMBASE MN_FORM1
+#define MN_FORM2 2
+#define MN_FORM3 3
+#define MN_FORM4 4
+#define MN_FORM5 5
+
+#define WIN_RIBBAR RC_RIBBAR_BEGIN
+
+#define CB_FORMAT (RC_RIBBAR_BEGIN +1)
+#define CB_FONT (RC_RIBBAR_BEGIN +2)
+#define CB_SIZE (RC_RIBBAR_BEGIN +3)
+#define PB_FORMULA_OK (RC_RIBBAR_BEGIN +4)
+#define PB_FORMULA_CANCEL (RC_RIBBAR_BEGIN +5)
+#define BMP_OK PB_FORMULA_OK
+#define BMP_CANCEL PB_FORMULA_CANCEL
+#define RID_TBX_FORMULA (RC_RIBBAR_BEGIN +6)
+#define FT_POS (RC_RIBBAR_BEGIN +7)
+#define BT_FORMULA (RC_RIBBAR_BEGIN +8)
+#define STR_FORMULA (RC_RIBBAR_BEGIN +9)
+
+#define STR_BACKGROUND_PATTERN (RC_RIBBAR_BEGIN + 10)
+#define STR_BACKGROUND_COLOR (RC_RIBBAR_BEGIN + 11)
+#define STR_BORDER_COLOR (RC_RIBBAR_BEGIN + 12)
+#define STR_BORDER_STYLE (RC_RIBBAR_BEGIN + 13)
+#define STR_BORDER_LINE (RC_RIBBAR_BEGIN + 14)
+#define STR_TEXT_COLOR (RC_RIBBAR_BEGIN + 15)
+#define STR_NUMLIST (RC_RIBBAR_BEGIN + 16)
+
+#define STR_HELP_TOOLBOX_TOGGLE (RC_RIBBAR_BEGIN + 17)
+
+#define RID_DRAW_WIN (RC_RIBBAR_BEGIN + 18)
+#define RID_CNTRLR_WIN (RC_RIBBAR_BEGIN + 19)
+#define RID_ALIGNMENT_WIN (RC_RIBBAR_BEGIN + 20)
+
+//Resourcen fuer Inputwin (Rechenleiste)
+#define RID_WIN_FORMULA (RC_RIBBAR_BEGIN + 21)
+#define MN_CALC_POPUP (RC_RIBBAR_BEGIN + 22)
+
+#define MN_NUMNAMES_POPUP (RC_RIBBAR_BEGIN + 23)
+#define RID_INSERT_CTRL (RC_RIBBAR_BEGIN + 24)
+#define RID_INSERT_OBJ_CTRL (RC_RIBBAR_BEGIN + 25)
+#define RID_INSERT_FIELD_CTRL (RC_RIBBAR_BEGIN + 26)
+#define RID_TBL_OPT_CTRL (RC_RIBBAR_BEGIN + 27)
+#define RID_BEZIER_WIN (RC_RIBBAR_BEGIN + 28)
+#define RID_SCROLL_NAVI_TBX (RC_RIBBAR_BEGIN + 29)
+#define RID_SCROLL_NAVIGATION_WIN (RC_RIBBAR_BEGIN + 30)
+
+#define STR_IMGBTN_START (RC_RIBBAR_BEGIN + 31)
+
+#define STR_IMGBTN_NEXT_DOWN (STR_IMGBTN_START + 0)
+#define STR_IMGBTN_PREV_DOWN (STR_IMGBTN_START + 1)
+#define STR_IMGBTN_TBL_DOWN (STR_IMGBTN_START + 2)
+#define STR_IMGBTN_FRM_DOWN (STR_IMGBTN_START + 3)
+#define STR_IMGBTN_PGE_DOWN (STR_IMGBTN_START + 4)
+#define STR_IMGBTN_DRW_DOWN (STR_IMGBTN_START + 5)
+#define STR_IMGBTN_CTRL_DOWN (STR_IMGBTN_START + 6)
+#define STR_IMGBTN_REG_DOWN (STR_IMGBTN_START + 7)
+#define STR_IMGBTN_BKM_DOWN (STR_IMGBTN_START + 8)
+#define STR_IMGBTN_GRF_DOWN (STR_IMGBTN_START + 9)
+#define STR_IMGBTN_OLE_DOWN (STR_IMGBTN_START +10)
+#define STR_IMGBTN_OUTL_DOWN (STR_IMGBTN_START +11)
+#define STR_IMGBTN_SEL_DOWN (STR_IMGBTN_START +12)
+#define STR_IMGBTN_FTN_DOWN (STR_IMGBTN_START +13)
+#define STR_IMGBTN_MARK_DOWN (STR_IMGBTN_START +14)
+#define STR_IMGBTN_POSTIT_DOWN (STR_IMGBTN_START +15)
+#define STR_IMGBTN_SRCH_REP_DOWN (STR_IMGBTN_START +16)
+#define STR_IMGBTN_INDEX_ENTRY_DOWN (STR_IMGBTN_START +17)
+#define STR_IMGBTN_TBLFML_DOWN (STR_IMGBTN_START +18)
+#define STR_IMGBTN_TBLFML_ERR_DOWN (STR_IMGBTN_START +19)
+
+#define STR_IMGBTN_NEXT_UP (STR_IMGBTN_START +20)
+#define STR_IMGBTN_PREV_UP (STR_IMGBTN_START +21)
+#define STR_IMGBTN_TBL_UP (STR_IMGBTN_START +22)
+#define STR_IMGBTN_FRM_UP (STR_IMGBTN_START +23)
+#define STR_IMGBTN_PGE_UP (STR_IMGBTN_START +24)
+#define STR_IMGBTN_DRW_UP (STR_IMGBTN_START +25)
+#define STR_IMGBTN_CTRL_UP (STR_IMGBTN_START +26)
+#define STR_IMGBTN_REG_UP (STR_IMGBTN_START +27)
+#define STR_IMGBTN_BKM_UP (STR_IMGBTN_START +28)
+#define STR_IMGBTN_GRF_UP (STR_IMGBTN_START +29)
+#define STR_IMGBTN_OLE_UP (STR_IMGBTN_START +30)
+#define STR_IMGBTN_OUTL_UP (STR_IMGBTN_START +31)
+#define STR_IMGBTN_SEL_UP (STR_IMGBTN_START +32)
+#define STR_IMGBTN_FTN_UP (STR_IMGBTN_START +33)
+#define STR_IMGBTN_MARK_UP (STR_IMGBTN_START +34)
+#define STR_IMGBTN_POSTIT_UP (STR_IMGBTN_START +35)
+#define STR_IMGBTN_SRCH_REP_UP (STR_IMGBTN_START +36)
+#define STR_IMGBTN_INDEX_ENTRY_UP (STR_IMGBTN_START +37)
+#define STR_IMGBTN_TBLFML_UP (STR_IMGBTN_START +38)
+#define STR_IMGBTN_TBLFML_ERR_UP (STR_IMGBTN_START +39)
+
+#define BTN_NAVI (STR_IMGBTN_START +40)
+
+#define MN_ANCHOR_POPUP (STR_IMGBTN_START +41)
+
+#define RC_RIBBAR_ACT_END MN_ANCHOR_POPUP
+
+#if RC_RIBBAR_ACT_END > RC_RIBBAR_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
diff --git a/sw/source/ui/inc/rowht.hxx b/sw/source/ui/inc/rowht.hxx
new file mode 100644
index 000000000000..4357697a786b
--- /dev/null
+++ b/sw/source/ui/inc/rowht.hxx
@@ -0,0 +1,103 @@
+/*************************************************************************
+ *
+ * $RCSfile: rowht.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ROWHT_HXX
+#define _ROWHT_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwTableHeightDlg : public SvxStandardDialog
+{
+ MetricField aHeightEdit;
+ CheckBox aAutoHeightCB;
+ GroupBox aHeightFrm;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+ SwWrtShell &rSh;
+
+protected:
+ virtual void Apply();
+
+public:
+ SwTableHeightDlg( Window *pParent, SwWrtShell &rS );
+};
+
+#endif
diff --git a/sw/source/ui/inc/scroll.hxx b/sw/source/ui/inc/scroll.hxx
new file mode 100644
index 000000000000..0d15009d6ccd
--- /dev/null
+++ b/sw/source/ui/inc/scroll.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: scroll.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SCROLL_HXX
+#define _SCROLL_HXX
+
+#ifndef _SCRBAR_HXX //autogen
+#include <vcl/scrbar.hxx>
+#endif
+
+class SwRect;
+
+class SwScrollbar: public ScrollBar
+{
+ Size aDocSz;
+ BOOL bHori :1; // Horizontal = TRUE, sonst Vertikal
+ BOOL bAuto :1; // fuer Scrollingmode
+ BOOL bThumbEnabled:1;
+ BOOL bVisible :1; // Show/Hide sollen nur noch dieses Flag setzen
+ BOOL bSizeSet :1; // wurde die Groesse bereits gesetzt?
+
+ void AutoShow();
+public:
+ void Show( BOOL bVisible = TRUE );
+ void Hide() { Show( FALSE ); }
+ void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize );
+ BOOL IsVisible(BOOL bReal = FALSE) const { return bReal ? ScrollBar::IsVisible() : bVisible; }
+ void SetUpdateMode( BOOL bUpdate );
+ // Aenderung der Dokumentgroesse
+ void DocSzChgd(const Size &rNewSize);
+ // Aenderung des sichtbaren Bereiches
+ void ViewPortChgd(const Rectangle &rRectangle);
+ // was fuer einer ist es denn ??
+ int IsHoriScroll() const { return bHori; }
+
+ void SetAuto(BOOL bSet);
+ BOOL IsAuto() { return bAuto;}
+
+ //Bewegungen des Thumbs abklemmen
+ void EnableThumbPos( BOOL bEnable, const SwRect &rVisArea );
+
+ SwScrollbar(Window *pParent, int bHori = TRUE );
+ ~SwScrollbar();
+};
+
+
+
+#endif
diff --git a/sw/source/ui/inc/selglos.hxx b/sw/source/ui/inc/selglos.hxx
new file mode 100644
index 000000000000..a348d5546b29
--- /dev/null
+++ b/sw/source/ui/inc/selglos.hxx
@@ -0,0 +1,113 @@
+/*************************************************************************
+ *
+ * $RCSfile: selglos.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SELGLOS_HXX
+#define _SELGLOS_HXX
+
+#ifndef _DIALOG_HXX //autogen
+#include <vcl/dialog.hxx>
+#endif
+
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+
+class SwSelGlossaryDlg : public ModalDialog
+{
+protected:
+ ListBox aGlosBox;
+ GroupBox aGlosFrm;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ DECL_LINK(DoubleClickHdl, ListBox*);
+public:
+ SwSelGlossaryDlg(Window * pParent, const String &rShortName);
+ ~SwSelGlossaryDlg();
+ void InsertGlos(const String &rRegion, const String &rGlosName); // inline
+ USHORT GetSelectedIdx() const; // inline
+ void SelectEntryPos(USHORT nIdx); // inline
+};
+
+inline void SwSelGlossaryDlg::InsertGlos(const String &rRegion,
+ const String &rGlosName)
+{
+ String aTmp( rRegion );
+ aTmp += ':';
+ aTmp += rGlosName;
+ aGlosBox.InsertEntry( aTmp );
+}
+inline USHORT SwSelGlossaryDlg::GetSelectedIdx() const
+{ return aGlosBox.GetSelectEntryPos(); }
+inline void SwSelGlossaryDlg::SelectEntryPos(USHORT nIdx)
+{ aGlosBox.SelectEntryPos(nIdx); }
+
+#endif
diff --git a/sw/source/ui/inc/shdwcrsr.hxx b/sw/source/ui/inc/shdwcrsr.hxx
new file mode 100644
index 000000000000..17b63243fb77
--- /dev/null
+++ b/sw/source/ui/inc/shdwcrsr.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: shdwcrsr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SHDWCRSR_HXX
+#define _SHDWCRSR_HXX
+
+
+#ifndef _GEN_HXX //autogen
+#include <tools/gen.hxx>
+#endif
+#ifndef _SV_COLOR_HXX //autogen
+#include <vcl/color.hxx>
+#endif
+#include <limits.h>
+
+class Window;
+
+class SwShadowCursor
+{
+ Window* pWin;
+ Color aCol;
+ Point aOldPt;
+ long nOldHeight;
+ USHORT nOldMode;
+
+ void DrawTri( const Point& rPt, long nHeight, BOOL bLeft );
+ void DrawCrsr( const Point& rPt, long nHeight, USHORT nMode );
+
+public:
+ SwShadowCursor( Window& rWin, const Color& rCol )
+ : pWin( &rWin ), nOldMode( USHRT_MAX ), aCol( rCol ) {}
+ ~SwShadowCursor();
+
+ void SetPos( const Point& rPt, long nHeight, USHORT nMode );
+
+ void Paint();
+
+ const Point& GetPoint() const { return aOldPt; }
+ long GetHeight() const { return nOldHeight; }
+ USHORT GetMode() const { return nOldMode; }
+
+ Rectangle GetRect() const;
+};
+
+
+
+#endif
+
diff --git a/sw/source/ui/inc/shells.hrc b/sw/source/ui/inc/shells.hrc
new file mode 100644
index 000000000000..44eb7efbe3cf
--- /dev/null
+++ b/sw/source/ui/inc/shells.hrc
@@ -0,0 +1,140 @@
+/*************************************************************************
+ *
+ * $RCSfile: shells.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SHELLS_HRC
+#define _SHELLS_HRC
+
+#include "rcid.hrc"
+
+#define MSG_REMOVE_LINK (RC_SHELLS_BEGIN + 1)
+
+#define STR_GRFILTER_OPENERROR (RC_SHELLS_BEGIN + 1)
+#define STR_GRFILTER_IOERROR (RC_SHELLS_BEGIN + 2)
+#define STR_GRFILTER_FORMATERROR (RC_SHELLS_BEGIN + 3)
+#define STR_GRFILTER_VERSIONERROR (RC_SHELLS_BEGIN + 4)
+#define STR_GRFILTER_FILTERERROR (RC_SHELLS_BEGIN + 5)
+#define STR_GRFILTER_TOOBIG (RC_SHELLS_BEGIN + 6)
+#define STR_INSERT_GRAPHIC (RC_SHELLS_BEGIN + 7)
+#define STR_NOTIZ_INSERT (RC_SHELLS_BEGIN + 8)
+#define DLG_IMPORT_DBNAME (RC_SHELLS_BEGIN + 9)
+#define STR_NO_ADDRESSBOOK (RC_SHELLS_BEGIN + 10)
+#define STR_REDLINE_COMMENT (RC_SHELLS_BEGIN + 11)
+#define STR_REDLINE_INSERTED (RC_SHELLS_BEGIN + 12)
+#define STR_REDLINE_DELETED (RC_SHELLS_BEGIN + 13)
+#define STR_REDLINE_FMTCOLLSET (RC_SHELLS_BEGIN + 14)
+
+#define RID_TEXT_TOOLBOX (RC_SHELLS_BEGIN + 15)
+#define RID_TABLE_TOOLBOX (RC_SHELLS_BEGIN + 16)
+#define RID_FRAME_TOOLBOX (RC_SHELLS_BEGIN + 17)
+#define RID_GRAFIK_TOOLBOX (RC_SHELLS_BEGIN + 18)
+#define RID_DRAW_TOOLBOX (RC_SHELLS_BEGIN + 19)
+#define RID_DRAW_TEXT_TOOLBOX (RC_SHELLS_BEGIN + 20)
+#define RID_NUM_TOOLBOX (RC_SHELLS_BEGIN + 21)
+#define RID_OLE_TOOLBOX (RC_SHELLS_BEGIN + 22)
+#define RID_TOOLS_TOOLBOX (RC_SHELLS_BEGIN + 23)
+
+#define STR_SHELLNAME_TEXT (RC_SHELLS_BEGIN + 24)
+#define STR_SHELLNAME_TABLE (RC_SHELLS_BEGIN + 25)
+#define STR_SHELLNAME_FRAME (RC_SHELLS_BEGIN + 26)
+#define STR_SHELLNAME_GRAPHIC (RC_SHELLS_BEGIN + 27)
+#define STR_SHELLNAME_OBJECT (RC_SHELLS_BEGIN + 28)
+#define STR_SHELLNAME_LIST (RC_SHELLS_BEGIN + 29)
+#define STR_SHELLNAME_DRAW (RC_SHELLS_BEGIN + 30)
+#define STR_SHELLNAME_DRAW_TEXT (RC_SHELLS_BEGIN + 31)
+
+#define RID_SRCVIEW_TOOLBOX (RC_SHELLS_BEGIN + 32)
+
+#define RID_BEZIER_TOOLBOX (RC_SHELLS_BEGIN + 33)
+#define STR_SHELLNAME_BEZIER (RC_SHELLS_BEGIN + 34)
+
+#define STR_SWBG_PARAGRAPH (RC_SHELLS_BEGIN + 37)
+#define STR_SWBG_GRAPHIC (RC_SHELLS_BEGIN + 38)
+#define STR_SWBG_OLE (RC_SHELLS_BEGIN + 39)
+#define STR_SWBG_FRAME (RC_SHELLS_BEGIN + 40)
+#define STR_SWBG_TABLE (RC_SHELLS_BEGIN + 41)
+#define STR_SWBG_TABLE_ROW (RC_SHELLS_BEGIN + 42)
+#define STR_SWBG_TABLE_CELL (RC_SHELLS_BEGIN + 43)
+#define STR_SWBG_PAGE (RC_SHELLS_BEGIN + 44)
+#define STR_SWBG_HEADER (RC_SHELLS_BEGIN + 45)
+#define STR_SWBG_FOOTER (RC_SHELLS_BEGIN + 46)
+#define MSG_NO_RULER (RC_SHELLS_BEGIN + 47)
+
+#define STR_SHELLNAME_DRAWFORM (RC_SHELLS_BEGIN + 48)
+#define RID_DRAWFORM_TOOLBOX (RC_SHELLS_BEGIN + 49)
+
+#define STR_REDLINE_FORMATED (RC_SHELLS_BEGIN + 50)
+#define STR_REDLINE_TABLECHG (RC_SHELLS_BEGIN + 51)
+
+#define STR_REDLINE_TITLE (RC_SHELLS_BEGIN + 52)
+#define STR_REDLINE_MSG (RC_SHELLS_BEGIN + 53)
+#define STR_REDLINE_ACCEPT_ALL (RC_SHELLS_BEGIN + 54)
+#define STR_REDLINE_REJECT_ALL (RC_SHELLS_BEGIN + 55)
+#define STR_REDLINE_EDIT (RC_SHELLS_BEGIN + 56)
+#define STR_REDLINE_AUTOFMT (RC_SHELLS_BEGIN + 57)
+
+#define SHELLS_ACT_END STR_REDLINE_AUTOFMT
+
+#if SHELLS_ACT_END > RC_SHELLS_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
+
diff --git a/sw/source/ui/inc/split.hxx b/sw/source/ui/inc/split.hxx
new file mode 100644
index 000000000000..432e30240bd8
--- /dev/null
+++ b/sw/source/ui/inc/split.hxx
@@ -0,0 +1,115 @@
+/*************************************************************************
+ *
+ * $RCSfile: split.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TAB_SPLIT_HXX
+#define _TAB_SPLIT_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwSplitTableDlg : public SvxStandardDialog
+{
+ FixedText aCountLbl;
+ NumericField aCountEdit;
+ GroupBox aCountFrm;
+ ImageRadioButton aHorzBox;
+ ImageRadioButton aVertBox;
+ GroupBox aDirFrm;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+ SwWrtShell& rSh;
+
+protected:
+ virtual void Apply();
+
+public:
+ SwSplitTableDlg(Window *pParent, SwWrtShell& rShell );
+ DECL_STATIC_LINK( SwSplitTableDlg, ClickHdl, Button * );
+};
+
+#endif
diff --git a/sw/source/ui/inc/splittbl.hxx b/sw/source/ui/inc/splittbl.hxx
new file mode 100644
index 000000000000..d516ae04188c
--- /dev/null
+++ b/sw/source/ui/inc/splittbl.hxx
@@ -0,0 +1,100 @@
+/*************************************************************************
+ *
+ * $RCSfile: splittbl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SPLITTBL_HXX
+#define _SPLITTBL_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwSplitTblDlg : public SvxStandardDialog
+{
+ OKButton aOKPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+ GroupBox aSplitGB;
+ RadioButton aCntntCopyRB;
+ RadioButton aBoxAttrCopyWithParaRB ;
+ RadioButton aBoxAttrCopyNoParaRB ;
+ RadioButton aBorderCopyRB;
+
+ SwWrtShell &rShell;
+
+protected:
+ virtual void Apply();
+
+public:
+ SwSplitTblDlg( Window *pParent, SwWrtShell &rSh );
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/srcedtw.hxx b/sw/source/ui/inc/srcedtw.hxx
new file mode 100644
index 000000000000..0e76a8bc8068
--- /dev/null
+++ b/sw/source/ui/inc/srcedtw.hxx
@@ -0,0 +1,198 @@
+/*************************************************************************
+ *
+ * $RCSfile: srcedtw.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SRCEDTW_HXX
+#define _SRCEDTW_HXX
+
+#ifndef _WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+
+#ifndef _SFXLSTNER_HXX //autogen
+#include <svtools/lstner.hxx>
+#endif
+
+#ifndef _TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+
+#ifndef _TABLE_HXX //autogen
+#include <tools/table.hxx>
+#endif
+
+#ifndef _XTEXTEDT_HXX //autogen
+#include <svtools/xtextedt.hxx>
+#endif
+
+class ScrollBar;
+class SwSrcView;
+class SwSrcEditWindow;
+class SwSrcViewConfig;
+class TextEngine;
+class ExtTextView;
+class DataChangedEvent;
+
+class TextViewOutWin : public Window
+{
+ ExtTextView* pTextView;
+
+protected:
+ virtual void Paint( const Rectangle& );
+ virtual void KeyInput( const KeyEvent& rKeyEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual BOOL Drop( const DropEvent& rEvt );
+ virtual BOOL QueryDrop( DropEvent& rEvt );
+ virtual void DataChanged( const DataChangedEvent& );
+
+public:
+ TextViewOutWin(Window* pParent, WinBits nBits) :
+ Window(pParent, nBits), pTextView(0){}
+
+ void SetTextView( ExtTextView* pView ) {pTextView = pView;}
+
+};
+
+//------------------------------------------------------------
+
+class SwSrcEditWindow : public Window, public SfxListener
+{
+private:
+ ExtTextView* pTextView;
+ ExtTextEngine* pTextEngine;
+
+ TextViewOutWin* pOutWin;
+ ScrollBar *pHScrollbar,
+ *pVScrollbar;
+
+ SwSrcView* pSrcView;
+
+ const SwSrcViewConfig* pSrcVwConfig;
+
+ long nCurTextWidth;
+ USHORT nStartLine;
+ BOOL bReadonly;
+ BOOL bDoSyntaxHighlight;
+ BOOL bHighlighting;
+
+ Timer aSyntaxIdleTimer;
+ Table aSyntaxLineTable;
+
+ void ImpDoHighlight( const String& rSource, USHORT nLineOff );
+
+ DECL_LINK( SyntaxTimerHdl, Timer * );
+ DECL_LINK( TimeoutHdl, Timer * );
+
+protected:
+
+ virtual void Resize();
+ virtual void DataChanged( const DataChangedEvent& );
+ virtual void GetFocus();
+// virtual void LoseFocus();
+
+ void CreateTextEngine();
+ void DoSyntaxHighlight( USHORT nPara );
+
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+
+ DECL_LINK(ScrollHdl, ScrollBar*);
+
+public:
+ SwSrcEditWindow( Window* pParent, SwSrcView* pParentView );
+ ~SwSrcEditWindow();
+
+ void SetScrollBarRanges();
+ void InitScrollBars();
+ ULONG Read( SvStream& rInput)
+ {return pTextEngine->Read(rInput);}
+ ULONG Write( SvStream& rOutput)
+ {return pTextEngine->Write(rOutput);}
+
+ ExtTextView* GetTextView()
+ {return pTextView;}
+ TextEngine* GetTextEngine()
+ {return pTextEngine;}
+ SwSrcView* GetSrcView() {return pSrcView;}
+
+ TextViewOutWin* GetOutWin() {return pOutWin;}
+ void Invalidate();
+
+ void ClearModifyFlag()
+ { pTextEngine->SetModified(FALSE); }
+ BOOL IsModified() const
+ { return pTextEngine->IsModified();}
+ void CreateScrollbars();
+
+ void SetReadonly(BOOL bSet){bReadonly = bSet;}
+ BOOL IsReadonly(){return bReadonly;}
+
+ void DoDelayedSyntaxHighlight( USHORT nPara );
+
+ void SyntaxColorsChanged();
+
+ void SetStartLine(USHORT nLine){nStartLine = nLine;}
+
+ virtual void Command( const CommandEvent& rCEvt );
+ void HandleWheelCommand( const CommandEvent& rCEvt );
+};
+
+#endif
diff --git a/sw/source/ui/inc/srcview.hxx b/sw/source/ui/inc/srcview.hxx
new file mode 100644
index 000000000000..d7f73e6594c5
--- /dev/null
+++ b/sw/source/ui/inc/srcview.hxx
@@ -0,0 +1,165 @@
+/*************************************************************************
+ *
+ * $RCSfile: srcview.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SRCVIEW_HXX
+#define _SRCIEW_HXX
+
+#ifndef _VIEWFAC_HXX //autogen
+#include <sfx2/viewfac.hxx>
+#endif
+#ifndef _SFXVIEWSH_HXX //autogen
+#include <sfx2/viewsh.hxx>
+#endif
+#include "srcedtw.hxx"
+#include "shellid.hxx"
+
+class SwDocShell;
+class SvxSearchItem;
+class SwSrcViewConfig;
+class SfxMedium;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwSrcView: public SfxViewShell
+{
+ SwSrcEditWindow aEditWin;
+
+ SvxSearchItem* pSearchItem;
+ SwSrcViewConfig* pSrcViewConfig;
+
+ BOOL bSourceSaved :1;
+ void Init();
+
+ // fuer Readonly-Umschaltung
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+
+
+protected:
+ USHORT StartSearchAndReplace(const SvxSearchItem& rItem,
+ BOOL bFromStart,
+ BOOL bApi,
+ BOOL bRecursive = FALSE);
+
+
+public:
+
+ SFX_DECL_VIEWFACTORY(SwSrcView);
+ SFX_DECL_INTERFACE(SW_SRC_VIEWSHELL);
+ TYPEINFO();
+
+
+ SwSrcView(SfxViewFrame* pFrame, const SwSrcView&);
+ SwSrcView(SfxViewFrame* pFrame, SfxViewShell*);
+
+ ~SwSrcView();
+
+ SwDocShell* GetDocShell();
+ SwSrcEditWindow& GetEditWin() {return aEditWin;}
+ void SaveContent(const String& rTmpFile);
+ void SaveContentTo(SfxMedium& rMed);
+
+ BOOL IsModified() {return aEditWin.IsModified();}
+
+
+
+ void Execute(SfxRequest&);
+ void GetState(SfxItemSet&);
+
+ SvxSearchItem* GetSearchItem();
+ void SetSearchItem( const SvxSearchItem& rItem );
+
+ void Load(SwDocShell* pDocShell);
+
+ virtual USHORT SetPrinter( SfxPrinter* pNew,
+ USHORT nDiff = SFX_PRINTER_ALL);
+ virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog,
+ BOOL bSilent );
+ virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE );
+
+ void SourceSaved() {bSourceSaved = TRUE;}
+ BOOL HasSourceSaved() const {return bSourceSaved;}
+
+};
+
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/inc/srtdlg.hxx b/sw/source/ui/inc/srtdlg.hxx
new file mode 100644
index 000000000000..cbda0c7bef94
--- /dev/null
+++ b/sw/source/ui/inc/srtdlg.hxx
@@ -0,0 +1,142 @@
+/*************************************************************************
+ *
+ * $RCSfile: srtdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SRTDLG_HXX
+#define _SRTDLG_HXX
+
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwSortDlg : public SvxStandardDialog
+{
+ FixedText aColLbl;
+ FixedText aTypLbl;
+ FixedText aDirLbl;
+
+ CheckBox aKeyCB1;
+ NumericField aColEdt1;
+ ListBox aTypDLB1;
+ RadioButton aSortUpRB;
+ RadioButton aSortDnRB;
+ CheckBox aKeyCB2;
+ NumericField aColEdt2;
+ ListBox aTypDLB2;
+ RadioButton aSortUp2RB;
+ RadioButton aSortDn2RB;
+ CheckBox aKeyCB3;
+ NumericField aColEdt3;
+ ListBox aTypDLB3;
+ RadioButton aSortUp3RB;
+ RadioButton aSortDn3RB;
+ GroupBox aSortGrp;
+ RadioButton aColumnRB;
+ RadioButton aRowRB;
+
+ GroupBox aDirGrp;
+
+ RadioButton aDelimTabRB;
+ RadioButton aDelimFreeRB;
+ Edit aDelimEdt;
+ GroupBox aDelimGrp;
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ String aColTxt;
+ String aRowTxt;
+ USHORT nX;
+ USHORT nY;
+
+ SwWrtShell &rSh;
+
+ virtual void Apply();
+ DECL_LINK( CheckHdl, CheckBox * );
+ DECL_LINK( DelimHdl, RadioButton* );
+
+public:
+ SwSortDlg(Window * pParent, SwWrtShell &rSh);
+ ~SwSortDlg();
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/swcont.hxx b/sw/source/ui/inc/swcont.hxx
new file mode 100644
index 000000000000..1d183504de2f
--- /dev/null
+++ b/sw/source/ui/inc/swcont.hxx
@@ -0,0 +1,149 @@
+/*************************************************************************
+ *
+ * $RCSfile: swcont.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWCONT_HXX
+#define _SWCONT_HXX
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+class SwContentType;
+
+//Reihenfolge und Anzahl mit ResIds abgleichen!!
+#define CONTENT_TYPE_OUTLINE 0
+#define CONTENT_TYPE_TABLE 1
+#define CONTENT_TYPE_FRAME 2
+#define CONTENT_TYPE_GRAPHIC 3
+#define CONTENT_TYPE_OLE 4
+#define CONTENT_TYPE_BOOKMARK 5
+#define CONTENT_TYPE_REGION 6
+#define CONTENT_TYPE_URLFIELD 7
+#define CONTENT_TYPE_REFERENCE 8
+#define CONTENT_TYPE_INDEX 9
+#define CONTENT_TYPE_POSTIT 10
+#define CONTENT_TYPE_DRAWOBJECT 11
+#define CONTENT_TYPE_MAX CONTENT_TYPE_DRAWOBJECT +1
+
+
+// Typen fuer das Globaldokument
+#define GLOBAL_CONTENT_REGION 100
+#define GLOBAL_CONTENT_INDEX 101
+#define GLOBAL_CONTENT_TEXT 102
+#define GLOBAL_CONTENT_MAX 3
+
+// Strings fuer Kontextmenue
+#define CONTEXT_COUNT 12
+#define GLOBAL_CONTEXT_COUNT 13
+
+// Modi fuer Drag 'n Drop
+#define REGION_MODE_NONE 0
+#define REGION_MODE_LINK 1
+#define REGION_MODE_EMBEDDED 2
+
+//----------------------------------------------------------------------------
+//----------------------------------------------------------------------------
+
+//mini rtti
+class SwTypeNumber
+{
+ BYTE nTypeId;
+
+ public:
+ SwTypeNumber(BYTE nId) :nTypeId(nId){}
+ virtual ~SwTypeNumber();
+
+ virtual BYTE GetTypeId();
+};
+//----------------------------------------------------------------------------
+
+class SwContent : public SwTypeNumber
+{
+ const SwContentType* pParent;
+ String sContentName;
+ long nYPosition;
+ BOOL bInvisible;
+public:
+ SwContent(const SwContentType* pCnt, const String& rName, long nYPos );
+
+ virtual BOOL IsProtect() const;
+ const SwContentType* GetParent() const {return pParent;}
+ const String& GetName() const {return sContentName;}
+ int operator==(const SwContent& rCont) const
+ {
+ //gleich sind sie nie, sonst fallen sie aus dem Array
+ return FALSE;
+ }
+ int operator<(const SwContent& rCont) const
+ {
+ //zuerst nach Position dann nach Name sortieren
+ return nYPosition != rCont.nYPosition ?
+ nYPosition < rCont.nYPosition :
+ sContentName < rCont.sContentName;;
+ }
+
+ long GetYPos() const {return nYPosition;}
+
+ BOOL IsInvisible() const {return bInvisible;}
+ void SetInvisible(){ bInvisible = TRUE;}
+};
+
+#endif
diff --git a/sw/source/ui/inc/swlbox.hxx b/sw/source/ui/inc/swlbox.hxx
new file mode 100644
index 000000000000..7802eaad10ed
--- /dev/null
+++ b/sw/source/ui/inc/swlbox.hxx
@@ -0,0 +1,231 @@
+/*************************************************************************
+ *
+ * $RCSfile: swlbox.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWLBOX_HXX
+#define _SWLBOX_HXX
+
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+
+class SwBoxEntry;
+class Window;
+
+SV_DECL_PTRARR_DEL(SwEntryLst, SwBoxEntry*, 10, 10)
+
+/*--------------------------------------------------------------------
+ Beschreibung: SwBoxEntry
+ --------------------------------------------------------------------*/
+
+class SwBoxEntry
+{
+ friend class SwComboBox;
+
+ BOOL bModified : 1;
+ BOOL bNew : 1;
+
+public:
+ SwBoxEntry(const String& aName, USHORT nId=0);
+ SwBoxEntry(const SwBoxEntry& rOrg);
+ SwBoxEntry();
+
+ String aName;
+ USHORT nId;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Listbox mit Entry-Verwaltung
+ --------------------------------------------------------------------*/
+
+/*class SwListBox : private ListBox
+{
+ SwEntryLst aEntryLst;
+ SwBoxEntry aDefault;
+
+ BOOL SeekEntry( const SwBoxEntry& rEntryLst, USHORT* pPos = 0 );
+public:
+ // die SwListBox ist default NICHT sortiert!
+ // Eine Sortierung erfolgt nur ueber das interne Array. Das errechnet
+ // die richtige Position in der Box!
+ SwListBox( Window* pParent, const ResId& rId );
+ ~SwListBox();
+
+ void InsertEntry( const SwBoxEntry&,
+ USHORT nPos = LISTBOX_APPEND );
+ void InsertEntrySort( const SwBoxEntry& );
+ void RemoveEntry( USHORT nPos );
+ void Clear();
+
+ const SwBoxEntry& GetEntry( USHORT ) const;
+ const SwBoxEntry& GetSelectEntry() const;
+
+ // ueberladene Methoden der ListBox:
+ inline void SetSelectHdl( const Link& rLink );
+ inline void SetDoubleClickHdl( const Link& rLink );
+ inline void SetUpdateMode( BOOL bFlag );
+ inline void SelectEntryPos( USHORT nPos, BOOL bSelect = TRUE );
+ inline void SelectEntry( const String& rStr, BOOL bSelect = TRUE );
+ inline USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
+ inline USHORT GetEntryPos( const String& rStr ) const;
+ inline USHORT GetEntryCount() const;
+ // fuer zugriffe aufs Control, aber nicht auf die ListBox!
+ inline Control& GetControl() { return *this; }
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: fuer ComboBoxen
+ --------------------------------------------------------------------*/
+
+enum SwComboBoxStyle
+{
+ CBS_UPPER = 0x01,
+ CBS_LOWER = 0x02,
+ CBS_ALL = 0x04,
+ CBS_FILENAME = 0x08,
+#ifdef WIN
+ CBS_SW_FILENAME = CBS_FILENAME | CBS_LOWER
+#else
+ CBS_SW_FILENAME = CBS_FILENAME
+#endif
+};
+
+class SwComboBox : public ComboBox
+{
+ SwEntryLst aEntryLst;
+ SwEntryLst aDelEntryLst;
+ SwBoxEntry aDefault;
+ USHORT nStyle;
+
+ void InitComboBox();
+ void InsertSorted(SwBoxEntry* pEntry);
+public:
+ SwComboBox(Window* pParent, const ResId& rId,
+ USHORT nStyleBits = CBS_ALL);
+ ~SwComboBox();
+
+ virtual void KeyInput( const KeyEvent& rKEvt );
+
+ void InsertNewEntry(const SwBoxEntry&);
+ void InsertEntry(const SwBoxEntry&);
+
+ void RemoveEntry(USHORT nPos);
+
+ USHORT GetEntryPos(const SwBoxEntry& rEntry) const;
+ const SwBoxEntry& GetEntry(USHORT) const;
+
+ USHORT GetRemovedCount() const;
+ const SwBoxEntry& GetRemovedEntry(USHORT nPos) const;
+
+ USHORT GetNewCount() const;
+ const SwBoxEntry& GetNewEntry(USHORT nPos) const;
+
+ USHORT GetStyle() const { return nStyle; }
+ void SetStyle(const USHORT nSt) { nStyle = nSt; }
+
+ String GetText() const;
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Inlines
+ --------------------------------------------------------------------*/
+
+/*inline void SwListBox::SetSelectHdl( const Link& rLink )
+{
+ ListBox::SetSelectHdl(rLink);
+}
+inline void SwListBox::SetDoubleClickHdl( const Link& rLink )
+{
+ ListBox::SetDoubleClickHdl( rLink );
+}
+inline void SwListBox::SetUpdateMode( BOOL bFlag )
+{
+ ListBox::SetUpdateMode(bFlag);
+}
+inline void SwListBox::SelectEntryPos( USHORT nPos, BOOL bSelect )
+{
+ ListBox::SelectEntryPos( nPos, bSelect );
+}
+inline void SwListBox::SelectEntry( const String& rStr, BOOL bSelect )
+{
+ ListBox::SelectEntry( rStr, bSelect );
+}
+inline USHORT SwListBox::GetSelectEntryPos( USHORT nSelIndex ) const
+{
+ return ListBox::GetSelectEntryPos( nSelIndex );
+}
+inline USHORT SwListBox::GetEntryPos( const String& rStr ) const
+{
+ return ListBox::GetEntryPos( rStr );
+}
+inline USHORT SwListBox::GetEntryCount() const
+{
+ return ListBox::GetEntryCount();
+}
+*/
+#endif // _SWLBOX_HXX
+
diff --git a/sw/source/ui/inc/swvset.hxx b/sw/source/ui/inc/swvset.hxx
new file mode 100644
index 000000000000..d9b828f10535
--- /dev/null
+++ b/sw/source/ui/inc/swvset.hxx
@@ -0,0 +1,88 @@
+/*************************************************************************
+ *
+ * $RCSfile: swvset.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWVSET_HXX
+#define _SWVSET_HXX
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _SVX_NUMVSET_HXX
+#include <svx/numvset.hxx>
+#endif
+
+class SwDocShell;
+
+class SwRulerValueSet : public SvxBmpNumValueSet
+{
+ SwDocShell* pSwDocSh;
+ public:
+ SwRulerValueSet( Window* pParent,
+ const ResId& rResId,
+ const List& rStrNames,
+ SwDocShell* pSwDocSh );
+ ~SwRulerValueSet();
+
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ DECL_STATIC_LINK(SwRulerValueSet, GraphicArrivedHdl_Impl, SvxBrushItem*);
+
+};
+#endif
+
diff --git a/sw/source/ui/inc/syncbtn.hxx b/sw/source/ui/inc/syncbtn.hxx
new file mode 100644
index 000000000000..361cf0665bb0
--- /dev/null
+++ b/sw/source/ui/inc/syncbtn.hxx
@@ -0,0 +1,113 @@
+/*************************************************************************
+ *
+ * $RCSfile: syncbtn.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWSYNCBTN_HXX
+#define _SWSYNCBTN_HXX
+
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+
+#ifdef _SYNCDLG
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+class SwWrtShell;
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+class SwSyncBtnDlg : public SfxFloatingWindow
+{
+ PushButton aSyncBtn;
+
+ DECL_LINK( BtnHdl, PushButton* pBtn = 0 );
+
+public:
+ SwSyncBtnDlg(SfxBindings*, SfxChildWindow*, Window *pParent);
+ ~SwSyncBtnDlg();
+};
+#endif
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+class SwSyncChildWin : public SfxChildWindow
+{
+public:
+ SwSyncChildWin( Window* ,
+ USHORT nId,
+ SfxBindings*,
+ SfxChildWinInfo* );
+
+ SFX_DECL_CHILDWINDOW( SwSyncChildWin );
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/table.hrc b/sw/source/ui/inc/table.hrc
new file mode 100644
index 000000000000..b0cd5097c8ef
--- /dev/null
+++ b/sw/source/ui/inc/table.hrc
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ * $RCSfile: table.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "rcid.hrc"
+
+#define DLG_INSERT_TABLE RC_TABLE_BEGIN
+#define DLG_FORMAT_TABLE (RC_TABLE_BEGIN + 1)
+#define DLG_CONV_TEXT_TABLE (RC_TABLE_BEGIN + 2)
+#define DLG_INS_ROW_COL (RC_TABLE_BEGIN + 3)
+#define DLG_ROW_HEIGHT (RC_TABLE_BEGIN + 4)
+#define DLG_SPLIT (RC_TABLE_BEGIN + 5)
+#define DLG_COL_WIDTH (RC_TABLE_BEGIN + 6)
+#define MSG_ERR_TABLE_MERGE (RC_TABLE_BEGIN + 7)
+#define DLG_AUTOFMT_TABLE (RC_TABLE_BEGIN + 9)
+#define DLG_SWDLG_STRINPUT (RC_TABLE_BEGIN + 10)
+#define TP_TABLE_COLUMN (RC_TABLE_BEGIN + 11)
+#define DLG_INSERT_CHART (RC_TABLE_BEGIN + 12)
+#define MSG_WRONG_TABLENAME (RC_TABLE_BEGIN + 13)
+#define DLG_SPLIT_TABLE (RC_TABLE_BEGIN + 14)
+#define DLG_MERGE_TABLE (RC_TABLE_BEGIN + 15)
+
+#define TABLE_ACT_END DLG_MERGE_TABLE
+
+#if TABLE_ACT_END > RC_TABLE_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
diff --git a/sw/source/ui/inc/tabledlg.hxx b/sw/source/ui/inc/tabledlg.hxx
new file mode 100644
index 000000000000..bcc4ace8bb0e
--- /dev/null
+++ b/sw/source/ui/inc/tabledlg.hxx
@@ -0,0 +1,148 @@
+/*************************************************************************
+ *
+ * $RCSfile: tabledlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TABLEDLG_HXX
+#define _TABLEDLG_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#include "swtypes.hxx"
+
+class SwWrtShell;
+class SwTabCols;
+struct TColumn;
+
+void lcl_ItemSetToTableParam( const SfxItemSet&, SwWrtShell& );
+extern const USHORT __FAR_DATA aUITableAttrRange[];
+
+/*-------------------------------------------------------
+ Tabellendialog
+--------------------------------------------------------- */
+class SwTableTabDlg : public SfxTabDialog
+{
+ SwWrtShell* pShell;
+ USHORT nHtmlMode;
+
+ virtual void PageCreated(USHORT nId, SfxTabPage& rPage);
+public:
+ SwTableTabDlg( Window* pParent, SfxItemPool& Pool,
+ const SfxItemSet* pItemSet, SwWrtShell* pSh );
+};
+
+class SwTableRep
+{
+ TColumn* pTColumns;
+
+ SwTwips nTblWidth;
+ SwTwips nSpace;
+ SwTwips nLeftSpace;
+ SwTwips nRightSpace;
+ USHORT nAlign;
+ USHORT nColCount;
+ USHORT nAllCols;
+ USHORT nWidthPercent;
+ BOOL bComplex : 1;
+ BOOL bLineSelected : 1;
+ BOOL bWidthChanged : 1;
+ BOOL bColsChanged : 1;
+
+public:
+ SwTableRep( const SwTabCols& rTabCol, BOOL bComplex );
+ ~SwTableRep();
+
+ BOOL FillTabCols( SwTabCols& rTabCol ) const;
+
+ SwTwips GetLeftSpace() const {return nLeftSpace;}
+ void SetLeftSpace(SwTwips nSet) {nLeftSpace = nSet;}
+
+ SwTwips GetRightSpace() const {return nRightSpace;}
+ void SetRightSpace(SwTwips nSet) {nRightSpace = nSet;}
+
+ SwTwips GetWidth() const {return nTblWidth;}
+ void SetWidth(SwTwips nSet) {nTblWidth = nSet;}
+
+ USHORT GetWidthPercent() const {return nWidthPercent;}
+ void SetWidthPercent(USHORT nSet) {nWidthPercent = nSet;}
+
+ USHORT GetAlign() const {return nAlign;}
+ void SetAlign(USHORT nSet) {nAlign = nSet;}
+
+ BOOL IsComplex() const {return bComplex;}
+ USHORT GetColCount() const {return nColCount;}
+ USHORT GetAllColCount() const {return nAllCols;}
+
+ BOOL HasColsChanged() const {return bColsChanged;}
+ void SetColsChanged() {bColsChanged = TRUE;}
+
+ BOOL HasWidthChanged() const {return bWidthChanged;}
+ void SetWidthChanged() {bWidthChanged = TRUE;}
+
+ BOOL IsLineSelected() const {return bLineSelected;}
+ void SetLineSelected(BOOL bSet) {bLineSelected = bSet;}
+
+ SwTwips GetSpace() const { return nSpace;}
+ void SetSpace(SwTwips nSet) {nSpace = nSet;}
+
+ TColumn* GetColumns() const {return pTColumns;}
+};
+
+#endif
diff --git a/sw/source/ui/inc/tablemgr.hxx b/sw/source/ui/inc/tablemgr.hxx
new file mode 100644
index 000000000000..464e6a3bb51c
--- /dev/null
+++ b/sw/source/ui/inc/tablemgr.hxx
@@ -0,0 +1,112 @@
+/*************************************************************************
+ *
+ * $RCSfile: tablemgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TABLEMGR_HXX
+#define _TABLEMGR_HXX
+
+#include "swtypes.hxx"
+#include "tabcol.hxx"
+
+class SwFrmFmt;
+class SwWrtShell;
+class Window;
+class SchMemChart;
+class SfxItemSet;
+
+const SwTwips lAutoWidth = INVALID_TWIPS;
+const char cParaDelim = 0x0a;
+
+class SwTableFUNC
+{
+ SwFrmFmt *pFmt;
+ SwWrtShell *pSh;
+ BOOL bCopy;
+ SwTabCols aCols;
+private:
+ int GetRightSeparator(int nNum) const;
+public:
+ inline SwTableFUNC(SwFrmFmt &);
+ SwTableFUNC(SwWrtShell *pShell, BOOL bCopyFmt = FALSE);
+ ~SwTableFUNC();
+
+ void InitTabCols();
+ void ColWidthDlg(Window *pParent );
+ SwTwips GetColWidth(USHORT nNum) const;
+ SwTwips GetMaxColWidth(USHORT nNum) const;
+ void SetColWidth(USHORT nNum, SwTwips nWidth );
+ USHORT GetColCount() const;
+ USHORT GetCurColNum() const;
+
+ BOOL IsTableSelected() const { return pFmt != 0; }
+
+ const SwFrmFmt *GetTableFmt() const { return pFmt; }
+
+ void InsertChart( SchMemChart& rData, const SfxItemSet* pSet = 0 );
+ void UpdateChart();
+};
+
+inline SwTableFUNC::SwTableFUNC(SwFrmFmt &rFmt) :
+ pFmt(&rFmt),
+ bCopy(FALSE),
+ pSh(0)
+{
+}
+
+#endif
diff --git a/sw/source/ui/inc/tabsh.hxx b/sw/source/ui/inc/tabsh.hxx
new file mode 100644
index 000000000000..9e6b3a05211a
--- /dev/null
+++ b/sw/source/ui/inc/tabsh.hxx
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * $RCSfile: tabsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWTABSH_HXX
+#define _SWTABSH_HXX
+
+#include "basesh.hxx"
+
+class SwTableShell: public SwBaseShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_TABSHELL);
+ TYPEINFO();
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+ void GetFrmBorderState(SfxItemSet &rSet);
+ void GetLineStyleState(SfxItemSet &rSet);
+ void ExecTableStyle(SfxRequest& rReq);
+
+ void ExecNumberFormat(SfxRequest& rReq);
+
+ SwTableShell(SwView &rView);
+};
+
+#endif
diff --git a/sw/source/ui/inc/tautofmt.hxx b/sw/source/ui/inc/tautofmt.hxx
new file mode 100644
index 000000000000..a85da1bcacd2
--- /dev/null
+++ b/sw/source/ui/inc/tautofmt.hxx
@@ -0,0 +1,162 @@
+/*************************************************************************
+ *
+ * $RCSfile: tautofmt.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef SW_TAUTOFMT_HXX
+#define SW_TAUTOFMT_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _MOREBTN_HXX //autogen
+#include <vcl/morebtn.hxx>
+#endif
+
+#ifndef _VIRDEV_HXX //autogen
+#include <vcl/virdev.hxx>
+#endif
+
+class SwView;
+class SwTableAutoFmt;
+class SvxBoxItem;
+class SvxBorderLine;
+class AutoFmtPreview;
+class SwTableAutoFmtTbl;
+
+//------------------------------------------------------------------------
+
+enum AutoFmtLine { TOP_LINE, BOTTOM_LINE, LEFT_LINE, RIGHT_LINE };
+
+//========================================================================
+
+class SwAutoFormatDlg : public SfxModalDialog
+{
+ FixedText aFtFormat;
+ ListBox aLbFormat;
+ GroupBox aGbPreview;
+ CheckBox aBtnNumFormat;
+ CheckBox aBtnBorder;
+ CheckBox aBtnFont;
+ CheckBox aBtnPattern;
+ CheckBox aBtnAlignment;
+ GroupBox aGbFormat;
+ OKButton aBtnOk;
+ CancelButton aBtnCancel;
+ HelpButton aBtnHelp;
+ PushButton aBtnAdd;
+ PushButton aBtnRemove;
+ PushButton aBtnRename;
+ MoreButton aBtnMore;
+ String aStrTitle;
+ String aStrLabel;
+ String aStrClose;
+ String aStrDelTitle;
+ String aStrDelMsg;
+ String aStrRenameTitle;
+ String aStrInvalidFmt;
+ AutoFmtPreview* pWndPreview;
+
+ //------------------------
+ SwWrtShell* pShell;
+ SwTableAutoFmtTbl* pTableTbl;
+ BYTE nIndex;
+ BYTE nDfltStylePos;
+ BOOL bCoreDataChanged : 1;
+ BOOL bSetAutoFmt : 1;
+
+
+ void Init( const SwTableAutoFmt* pSelFmt );
+ void UpdateChecks( const SwTableAutoFmt&, BOOL bEnableBtn );
+ //------------------------
+ DECL_LINK( CheckHdl, Button * );
+ DECL_LINK( OkHdl, Button * );
+ DECL_LINK( AddHdl, void * );
+ DECL_LINK( RemoveHdl, void * );
+ DECL_LINK( RenameHdl, void * );
+ DECL_LINK( SelFmtHdl, void * );
+
+public:
+ SwAutoFormatDlg( Window* pParent, SwWrtShell* pShell,
+ BOOL bSetAutoFmt = TRUE,
+ const SwTableAutoFmt* pSelFmt = 0 );
+ virtual ~SwAutoFormatDlg();
+
+ void FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const;
+};
+
+
+#endif // SW_AUTOFMT_HXX
+
diff --git a/sw/source/ui/inc/tblctrl.hxx b/sw/source/ui/inc/tblctrl.hxx
new file mode 100644
index 000000000000..63c54b0d6e79
--- /dev/null
+++ b/sw/source/ui/inc/tblctrl.hxx
@@ -0,0 +1,93 @@
+/*************************************************************************
+ *
+ * $RCSfile: tblctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TBLCTRL_HXX
+#define _TBLCTRL_HXX
+
+
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+
+//----------------------------------------------------------------------------
+//
+//----------------------------------------------------------------------------
+
+class SwTableOptimizeCtrl : public SfxToolBoxControl
+{
+
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SwTableOptimizeCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SwTableOptimizeCtrl();
+
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+
+};
+
+//
+//----------------------------------------------------------------------------
+
+#endif
+
+
diff --git a/sw/source/ui/inc/tblnumfm.hxx b/sw/source/ui/inc/tblnumfm.hxx
new file mode 100644
index 000000000000..f24cb39a7462
--- /dev/null
+++ b/sw/source/ui/inc/tblnumfm.hxx
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: tblnumfm.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TBLNUMFM_HXX
+#define _TBLNUMFM_HXX
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+class Window;
+class SfxItemSet;
+
+class SwNumFmtDlg : public SfxSingleTabDialog
+{
+public:
+
+ SwNumFmtDlg(Window* pParent, SfxItemSet& rSet);
+ ~SwNumFmtDlg();
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/tbxanchr.hxx b/sw/source/ui/inc/tbxanchr.hxx
new file mode 100644
index 000000000000..c8f0471d3570
--- /dev/null
+++ b/sw/source/ui/inc/tbxanchr.hxx
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxanchr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TBXANCHR_HXX
+#define _TBXANCHR_HXX
+
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+class SwTbxAnchor : public SfxToolBoxControl
+{
+ USHORT nActAnchorId;
+
+public:
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual void Click();
+
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SwTbxAnchor( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SwTbxAnchor();
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/tbxmgr.hxx b/sw/source/ui/inc/tbxmgr.hxx
new file mode 100644
index 000000000000..86ffbd85e13e
--- /dev/null
+++ b/sw/source/ui/inc/tbxmgr.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxmgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TBXMGR_HXX
+#define _TBXMGR_HXX
+
+#ifndef _TBXDRAW_HXX //autogen
+#include <svx/tbxdraw.hxx>
+#endif
+
+class SwPopupWindowTbxMgr : public SvxPopupWindowTbxMgr
+{
+ BOOL bWeb:1; //gilt der WebMode?
+ ResId aRIdWinTemp;
+ ResId aRIdTbxTemp;
+
+public:
+ SwPopupWindowTbxMgr( USHORT nId,
+ WindowAlign eAlign,
+ ResId aRIdWin,
+ ResId aRIdTbx,
+ SfxBindings& rBindings );
+
+ virtual void StateChanged(USHORT nSID, SfxItemState eState, const SfxPoolItem* pState);
+ virtual SfxPopupWindow* Clone() const;
+};
+
+
+#endif // _TBX_DRAW_HXX
diff --git a/sw/source/ui/inc/textsh.hxx b/sw/source/ui/inc/textsh.hxx
new file mode 100644
index 000000000000..02a9290c3965
--- /dev/null
+++ b/sw/source/ui/inc/textsh.hxx
@@ -0,0 +1,132 @@
+/*************************************************************************
+ *
+ * $RCSfile: textsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWTEXTSH_HXX
+#define _SWTEXTSH_HXX
+
+#ifndef _SWBASESH_HXX
+#include <basesh.hxx>
+#endif
+
+class Button;
+class SwFldMgr;
+class SvxHyperlinkItem;
+
+class SwTextShell: public SwBaseShell
+{
+ SwFldMgr* pPostItFldMgr;
+
+ // Itemset pointer for the Graphic-Insert Dialog. This set contains all
+ // graphic sepcifict attributes and will only be created / deletec by the
+ // methods InsertGraphicDialog and InitGraphicFrame
+ SfxItemSet* pInsGrfSetPtr;
+
+ void InsertSymbol( const String& rChars, const String& rFont );
+ void InsertHyperlink(const SvxHyperlinkItem& rHlnkItem);
+ BOOL InsertGraphicDlg();
+ void InsertURLButton(const String& rURL, const String& rTarget, const String& rTxt);
+ void InsertDBFld(const String& sFldName);
+
+public:
+ SFX_DECL_INTERFACE(SW_TEXTSHELL);
+ TYPEINFO();
+
+ DECL_LINK( PostItNextHdl, Button * );
+ DECL_LINK( PostItPrevHdl, Button * );
+ DECL_LINK( RedlineNextHdl, Button * );
+ DECL_LINK( RedlinePrevHdl, Button * );
+
+ DECL_LINK( InitGraphicFrame, Button * );
+
+ void Execute(SfxRequest &);
+ void GetState(SfxItemSet &);
+
+ void ExecInsert(SfxRequest &);
+ void StateInsert(SfxItemSet&);
+ void ExecDelete(SfxRequest &);
+ void ExecEnterNum(SfxRequest &);
+ void ExecBasicMove(SfxRequest &);
+ void ExecMove(SfxRequest &);
+ void ExecMovePage(SfxRequest &);
+ void ExecMoveCol(SfxRequest &);
+ void ExecMoveLingu(SfxRequest &);
+ void ExecMoveMisc(SfxRequest &);
+ void ExecField(SfxRequest &rReq);
+ void StateField(SfxItemSet &);
+ void ExecIdx(SfxRequest &);
+ void GetIdxState(SfxItemSet &);
+ void ExecGlossary(SfxRequest &);
+
+ void ExecCharAttr(SfxRequest &);
+ void ExecCharButtonAttr(SfxRequest &);
+ void ExecCharAttrArgs(SfxRequest &);
+ void ExecParaAttr(SfxRequest &);
+ void ExecParaAttrArgs(SfxRequest &);
+ void ExecAttr(SfxRequest &);
+ void ExecDB(SfxRequest &);
+
+ void GetAttrState(SfxItemSet &);
+
+ SwTextShell(SwView &rView);
+ virtual ~SwTextShell();
+};
+
+#endif
diff --git a/sw/source/ui/inc/tmpdlg.hxx b/sw/source/ui/inc/tmpdlg.hxx
new file mode 100644
index 000000000000..680b1cf85ee3
--- /dev/null
+++ b/sw/source/ui/inc/tmpdlg.hxx
@@ -0,0 +1,104 @@
+/*************************************************************************
+ *
+ * $RCSfile: tmpdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWCHARDLG_HXX
+#define _SWCHARDLG_HXX
+
+#ifndef _SFX_STYLEDLG_HXX //autogen
+#include <sfx2/styledlg.hxx>
+#endif
+
+class SfxItemSet;
+class FontList;
+class SwWrtShell;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Der Tabdialog Traeger der TabPages
+ --------------------------------------------------------------------*/
+
+class SwTemplateDlg: public SfxStyleDialog
+{
+
+ USHORT nType;
+ USHORT nHtmlMode;
+ SwWrtShell* pWrtShell;
+ BOOL bNewStyle;
+
+ DECL_LINK( NumOptionsHdl, PushButton* );
+
+public:
+ SwTemplateDlg( Window* pParent,
+ SfxStyleSheetBase& rBase,
+ USHORT nRegion,
+ BOOL bColumn = FALSE,
+ SwWrtShell* pActShell = 0,
+ BOOL bNew = FALSE );
+
+ ~SwTemplateDlg();
+ const SfxItemSet* GetRefreshedSet();
+
+ virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+ virtual short Ok();
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/tmplctrl.hxx b/sw/source/ui/inc/tmplctrl.hxx
new file mode 100644
index 000000000000..dfaac8722c79
--- /dev/null
+++ b/sw/source/ui/inc/tmplctrl.hxx
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: tmplctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TMPLCTRL_HXX
+#define _TMPLCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+
+// class BookmarkToolBoxControl -------------------------------------------
+
+class SwTemplateControl : public SfxStatusBarControl
+{
+protected:
+ virtual void Command( const CommandEvent& rCEvt );
+public:
+ virtual void StateChanged( const SfxPoolItem* pState );
+ virtual void Paint( const UserDrawEvent& rEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SwTemplateControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+ ~SwTemplateControl();
+
+private:
+ String sTemplate;
+};
+
+
+#endif
+
diff --git a/sw/source/ui/inc/toxmgr.hxx b/sw/source/ui/inc/toxmgr.hxx
new file mode 100644
index 000000000000..05ed0282fe47
--- /dev/null
+++ b/sw/source/ui/inc/toxmgr.hxx
@@ -0,0 +1,351 @@
+/*************************************************************************
+ *
+ * $RCSfile: toxmgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _TOXMGR_HXX
+#define _TOXMGR_HXX
+
+#include "tox.hxx"
+#ifndef _AUTHFLD_HXX
+#include <authfld.hxx>
+#endif
+
+class SwWrtShell;
+class SwForm;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Manager fuer Verzeichnisfunktionalitaet
+ --------------------------------------------------------------------*/
+//one single method will be sufficient to insert AND upate indexes
+
+class SwTOXDescription
+{
+ TOXTypes eTOXType;
+ String aStyleNames[MAXLEVEL];
+ String sSequenceName;
+ String sMainEntryCharStyle;
+ String sAutoMarkURL;
+ String* pTitle;
+ String* pTOUName;
+ SwForm* pForm;
+ USHORT nContent;
+ USHORT nIndexOptions;
+ USHORT nOLEOptions;
+ String sAuthBrackets;
+ SwCaptionDisplay eCaptionDisplay;
+ SwTOXSortKey eSortKey1;
+ SwTOXSortKey eSortKey2;
+ SwTOXSortKey eSortKey3;
+ BYTE nLevel;
+ BOOL bFromObjectNames : 1;
+ BOOL bFromChapter : 1;
+ BOOL bReadonly: 1;
+ BOOL bLevelFromChapter : 1;
+ BOOL bIsAuthSequence :1;
+ BOOL bSortByDocument :1;
+
+ //TODO: TemplateNames
+ //const String* pTemplateName = 0, ???
+ SwTOXDescription(SwTOXDescription&);
+public:
+ SwTOXDescription(TOXTypes eType) :
+ eTOXType(eType),
+ pTitle(0),
+ pForm(0),
+ nContent(TOX_MARK | TOX_OUTLINELEVEL),
+ nLevel(MAXLEVEL),
+ pTOUName(0),
+ nIndexOptions(TOI_SAME_ENTRY|TOI_FF|TOI_CASE_SENSITIVE),
+ nOLEOptions(0),
+ eCaptionDisplay(CAPTION_COMPLETE),
+ bFromObjectNames(FALSE),
+ bFromChapter(FALSE),
+ bReadonly(TRUE),
+ bLevelFromChapter(FALSE),
+ bIsAuthSequence(FALSE),
+ bSortByDocument(TRUE)
+ {}
+ ~SwTOXDescription()
+ {
+ delete pTitle;
+ delete pForm;
+ delete pTOUName;
+ }
+
+ void SetTOXType(TOXTypes eSet) { eTOXType = eSet;}
+ TOXTypes GetTOXType() const { return eTOXType;}
+
+ const String& GetStyleNames(USHORT nLevel) const
+ {return aStyleNames[nLevel];}
+ void SetStyleNames(const String& rSet, USHORT nLevel)
+ {aStyleNames[nLevel] = rSet; }
+
+ const String& GetAutoMarkURL() const { return sAutoMarkURL;}
+ void SetAutoMarkURL(const String& rSet) {sAutoMarkURL = rSet;}
+
+ void SetTitle(const String& pSet) {delete pTitle; pTitle = new String(pSet);}
+ const String* GetTitle() const {return pTitle; }
+
+ void SetTOUName(const String& pSet) {delete pTOUName; pTOUName = new String(pSet);}
+ const String* GetTOUName() const {return pTOUName; }
+
+ void SetForm(const SwForm& rSet) {delete pForm; pForm = new SwForm(rSet);}
+ const SwForm* GetForm() const {return pForm;}
+
+ void SetContentOptions(USHORT nSet) { nContent = nSet;}
+ USHORT GetContentOptions() const { return nContent;}
+
+ void SetIndexOptions(USHORT nSet) { nIndexOptions = nSet;}
+ USHORT GetIndexOptions() const { return nIndexOptions;}
+
+ const String& GetMainEntryCharStyle() const {return sMainEntryCharStyle;}
+ void SetMainEntryCharStyle(const String& rSet) {sMainEntryCharStyle = rSet;}
+
+ void SetLevel(BYTE nSet) {nLevel = nSet;}
+ BYTE GetLevel()const {return nLevel; }
+
+ void SetCreateFromObjectNames(BOOL bSet) { bFromObjectNames = bSet;}
+ BOOL IsCreateFromObjectNames() const {return bFromObjectNames;}
+
+ const String& GetSequenceName() const {return sSequenceName;}
+ void SetSequenceName(const String& rSet) {sSequenceName = rSet;}
+
+ SwCaptionDisplay GetCaptionDisplay() const { return eCaptionDisplay;}
+ void SetCaptionDisplay(SwCaptionDisplay eSet) {eCaptionDisplay = eSet;}
+
+ void SetFromChapter(BOOL bSet) { bFromChapter = bSet;}
+ BOOL IsFromChapter() const {return bFromChapter;}
+
+ void SetReadonly(BOOL bSet){bReadonly = bSet;}
+ BOOL IsReadonly() const {return bReadonly;}
+
+ USHORT GetOLEOptions() const {return nOLEOptions;}
+ void SetOLEOptions(USHORT nOpt) {nOLEOptions = nOpt;}
+
+ BOOL IsLevelFromChapter() const {return bLevelFromChapter;}
+ void SetLevelFromChapter(BOOL bSet) {bLevelFromChapter = bSet;}
+
+ String GetAuthBrackets() const {return sAuthBrackets;}
+ void SetAuthBrackets(const String& rSet) {sAuthBrackets = rSet;}
+
+ BOOL IsAuthSequence() const {return bIsAuthSequence;}
+ void SetAuthSequence(BOOL bSet){bIsAuthSequence = bSet;}
+
+ BOOL IsSortByDocument()const {return bSortByDocument ;}
+ void SetSortByDocument(BOOL bSet) {bSortByDocument = bSet;}
+
+ void SetSortKeys(SwTOXSortKey eKey1,
+ SwTOXSortKey eKey2,
+ SwTOXSortKey eKey3);
+
+ SwTOXSortKey GetSortKey1() const {return eSortKey1;}
+ SwTOXSortKey GetSortKey2() const {return eSortKey2;}
+ SwTOXSortKey GetSortKey3() const {return eSortKey3;}
+
+
+ void ApplyTo(SwTOXBase& rTOXBase);
+};
+// --------------------------------------------------------------------------------
+class SwTOXMarkDescription
+{
+ TOXTypes eTOXType;
+ int nLevel;
+ BOOL bMainEntry;
+
+ String* pPrimKey;
+ String* pSecKey;
+ String* pAltStr;
+ String* pTOUName;
+
+public:
+ SwTOXMarkDescription(TOXTypes eType) :
+ eTOXType(eType),
+ pPrimKey(0),
+ pSecKey(0),
+ pAltStr(0),
+ pTOUName(0),
+ nLevel(0),
+ bMainEntry(FALSE)
+ {
+ }
+ ~SwTOXMarkDescription()
+ {
+ delete pPrimKey;
+ delete pSecKey;
+ delete pAltStr;
+ delete pTOUName;
+ }
+
+ TOXTypes GetTOXType()const {return eTOXType;}
+
+ void SetLevel(int nSet) {nLevel = nSet;}
+ int GetLevel() const {return nLevel;}
+
+ void SetMainEntry(BOOL bSet) {bMainEntry = bSet;}
+ BOOL IsMainEntry() const {return bMainEntry;}
+
+ void SetPrimKey(const String& rSet)
+ {delete pPrimKey; pPrimKey = new String(rSet);}
+ const String* GetPrimKey() const {return pPrimKey;}
+
+ void SetSecKey(const String& rSet)
+ {delete pSecKey; pSecKey = new String(rSet);}
+ const String* GetSecKey() const { return pSecKey; }
+
+ void SetAltStr(const String& rSet)
+ {delete pAltStr; pAltStr = new String(rSet);}
+ const String* GetAltStr() const { return pAltStr; }
+
+ void SetTOUName(const String& rSet)
+ {delete pTOUName; pTOUName = new String(rSet);}
+ const String* GetTOUName() const {return pTOUName;}
+};
+
+class SwTOXMgr
+{
+ SwWrtShell* pSh;
+ SwTOXMark* pCurTOXMark;
+ SwTOXMarks aCurMarks;
+
+ USHORT GetUserTypeID(const String& rStr);
+
+public:
+ SwTOXMgr(SwWrtShell* pShell);
+ //
+ // Methoden fuer Verzeichnismarkierungen
+ //
+ void InsertTOXMark(const SwTOXMarkDescription& rDesc);
+
+ void UpdateTOXMark(const SwTOXMarkDescription& rDesc);
+
+
+ void DeleteTOXMark();
+ void NextTOXMark(BOOL bSame=FALSE);
+ void PrevTOXMark(BOOL bSame=FALSE);
+
+ // Aktuelle TOXmarks holen
+ USHORT GetTOXMarks();
+ USHORT GetTOXMarkCount();
+ SwTOXMark* GetTOXMark(USHORT nId);
+ SwTOXMark* GetCurTOXMark();
+ void SetCurTOXMark(USHORT nId);
+
+ //
+ // Methoden fuer Verzeichnisse
+ //
+ BOOL UpdateOrInsertTOX(const SwTOXDescription& rDesc, SwTOXBase** ppBase = 0, const SfxItemSet* pSet = 0);
+
+#ifdef USE_OLD_INDEXES
+ void InsertTOI(const USHORT nOptions = TOI_SAME_ENTRY|TOI_FF|TOI_CASE_SENSITIVE,
+ const String* pTitel = 0,
+ const SwForm* pForm = 0,
+ SwTOXBase** ppBase = 0 );
+
+ BOOL UpdateTOI(const USHORT nOptions,
+ const String* pTitel = 0,
+ const SwForm* pForm = 0);
+
+
+ void InsertTOC(const USHORT nContent = TOX_MARK | TOX_OUTLINELEVEL,
+ int nLevel = MAXLEVEL,
+ const String* pTitel = 0,
+ const SwForm* pForm = 0,
+ SwTOXBase** ppBase = 0);
+
+ BOOL UpdateTOC(const USHORT nContent = TOX_MARK | TOX_OUTLINELEVEL,
+ int nLevel = MAXLEVEL,
+ const String* pTitel = 0,
+ const SwForm* pForm = 0);
+
+ void InsertTOU(const USHORT nContent = TOX_MARK,
+ const String* pTOUName = 0,
+ const String* pTemplateName = 0,
+ int nLevel = MAXLEVEL,
+ const String* pTitel = 0,
+ const SwForm* pForm = 0,
+ SwTOXBase** ppBase = 0);
+
+ BOOL UpdateTOU(const USHORT nContent,
+ const String* pTOUName = 0,
+ const String* pTemplateName = 0,
+ int nLevel = MAXLEVEL,
+ const String* pTitel = 0,
+ const SwForm* pForm = 0);
+
+#endif
+
+ const SwTOXType* GetTOXType(TOXTypes eTyp, USHORT nId) const;
+ const SwTOXBase* GetCurTOX();
+
+};
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Inlines
+ --------------------------------------------------------------------*/
+
+inline USHORT SwTOXMgr::GetTOXMarkCount()
+ { return aCurMarks.Count(); }
+
+
+inline SwTOXMark* SwTOXMgr::GetCurTOXMark()
+ { return pCurTOXMark; }
+
+#endif
diff --git a/sw/source/ui/inc/uiborder.hxx b/sw/source/ui/inc/uiborder.hxx
new file mode 100644
index 000000000000..fb2790a84896
--- /dev/null
+++ b/sw/source/ui/inc/uiborder.hxx
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: uiborder.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UIBORDER_HXX
+#define _UIBORDER_HXX
+
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+class Window;
+class SfxItemSet;
+
+class SwBorderDlg : public SfxSingleTabDialog
+{
+public:
+
+ // nType may be:
+ // SW_BORDER_MODE_PARA
+ // SW_BORDER_MODE_TABLE
+ // SW_BORDER_MODE_FRAME
+
+ SwBorderDlg(Window* pParent, SfxItemSet& rSet, USHORT nType);
+ ~SwBorderDlg();
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/uiitems.hxx b/sw/source/ui/inc/uiitems.hxx
new file mode 100644
index 000000000000..4516476eeee4
--- /dev/null
+++ b/sw/source/ui/inc/uiitems.hxx
@@ -0,0 +1,147 @@
+/*************************************************************************
+ *
+ * $RCSfile: uiitems.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UIITEMS_HXX
+#define _UIITEMS_HXX
+
+#include "pagedesc.hxx"
+#include "cmdid.h"
+#ifndef _SFXINTITEM_HXX
+#include <svtools/intitem.hxx>
+#endif
+class SwNumRule;
+class International;
+
+/*--------------------------------------------------------------------
+ Beschreibung: Container fuer FootNote
+ --------------------------------------------------------------------*/
+class SwPageFtnInfoItem : public SfxPoolItem
+{
+ SwPageFtnInfo aFtnInfo;
+
+public:
+
+ SwPageFtnInfoItem(const USHORT nId, SwPageFtnInfo& rInfo);
+ SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
+ ~SwPageFtnInfoItem();
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText,
+ const International* pIntl = 0 ) const;
+ SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; }
+ const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
+ void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; }
+};
+
+/*******************************************************************/
+
+class SwPtrItem : public SfxPoolItem
+{
+ void* pMisc;
+
+public:
+ SwPtrItem( const USHORT nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
+ SwPtrItem( const SwPtrItem& rItem );
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ void SetValue(void * pPtr) { pMisc= pPtr; }
+ void* GetValue() const { return pMisc; }
+};
+
+/*******************************************************************/
+
+class SwUINumRuleItem : public SfxPoolItem
+{
+ SwNumRule* pRule;
+
+public:
+ SwUINumRuleItem( const String& rName, const USHORT = FN_PARAM_ACT_NUMBER);
+ SwUINumRuleItem( const SwNumRule& rRule, const USHORT = FN_PARAM_ACT_NUMBER);
+ SwUINumRuleItem( const SwUINumRuleItem& rItem );
+ virtual ~SwUINumRuleItem();
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ 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 );
+
+ const SwNumRule* GetNumRule() const { return pRule; }
+ SwNumRule* GetNumRule() { return pRule; }
+};
+
+/* -----------------17.06.98 17:40-------------------
+ *
+ * --------------------------------------------------*/
+class SwBackgroundDestinationItem : public SfxUInt16Item
+{
+public:
+ SwBackgroundDestinationItem(USHORT nWhich, USHORT nValue);
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+};
+
+#endif // _UIITEMS_HXX
diff --git a/sw/source/ui/inc/uinums.hxx b/sw/source/ui/inc/uinums.hxx
new file mode 100644
index 000000000000..601e2a145b03
--- /dev/null
+++ b/sw/source/ui/inc/uinums.hxx
@@ -0,0 +1,178 @@
+/*************************************************************************
+ *
+ * $RCSfile: uinums.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UINUMS_HXX
+#define _UINUMS_HXX
+
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+#ifndef _CFGID_H
+#include <cfgid.h>
+#endif
+
+class SfxPoolItem;
+class SwWrtShell;
+class SvStream;
+
+#define MAX_NUM_RULES 9
+
+typedef SfxPoolItem* SfxPoolItemPtr;
+SV_DECL_PTRARR_DEL( _SwNumFmtsAttrs, SfxPoolItemPtr, 5,0 )
+
+//------------------------------------------------------------------------
+class SwNumRulesWithName
+{
+ String aName;
+ // die Formate der NumRule muessen! unabhaengig von einem Document sein
+ // (Sie sollen immer vorhanden sein!)
+ class _SwNumFmtGlobal
+ {
+ SwNumFmt aFmt;
+ String sCharFmtName;
+ USHORT nCharPoolId;
+ _SwNumFmtsAttrs aItems;
+
+ _SwNumFmtGlobal& operator=( const _SwNumFmtGlobal& );
+
+ public:
+ _SwNumFmtGlobal( const SwNumFmt& rFmt );
+ _SwNumFmtGlobal( const _SwNumFmtGlobal& );
+ _SwNumFmtGlobal( SvStream&, USHORT nVersion );
+ ~_SwNumFmtGlobal();
+
+ void Store( SvStream& );
+ void ChgNumFmt( SwWrtShell& rSh, SwNumFmt& rChg ) const;
+ };
+
+ _SwNumFmtGlobal* aFmts[ MAXLEVEL ];
+protected:
+ void SetName(const String& rSet) {aName = rSet;}
+
+public:
+ SwNumRulesWithName(const SwNumRule &, const String &);
+ SwNumRulesWithName( const SwNumRulesWithName & );
+ SwNumRulesWithName(SvStream &, USHORT nVersion);
+ ~SwNumRulesWithName();
+
+ const SwNumRulesWithName &operator=(const SwNumRulesWithName &);
+
+ const String& GetName() const { return aName; }
+ void MakeNumRule( SwWrtShell& rSh, SwNumRule& rChg ) const;
+
+ void Store( SvStream& );
+};
+/********************************************************************
+
+********************************************************************/
+class SwBaseNumRules
+{
+public:
+ enum { nMaxRules = MAX_NUM_RULES }; // zur Zeit 9 definierte Forms
+protected:
+ SwNumRulesWithName *pNumRules[ MAX_NUM_RULES ];
+ String sFileName;
+ USHORT nVersion;
+ BOOL bModified;
+
+ virtual int Load(SvStream&);
+ virtual BOOL Store(SvStream&);
+
+ void Init();
+
+public:
+ SwBaseNumRules(const String& rFileName);
+ virtual ~SwBaseNumRules();
+
+ inline const SwNumRulesWithName* GetRules(USHORT nIdx) const;
+ const SwNumRulesWithName* GetRules(const String &rName) const;
+ virtual void ApplyNumRules(
+ const SwNumRulesWithName &rCopy,
+ USHORT nIdx);
+
+};
+
+/********************************************************************
+
+********************************************************************/
+class SwChapterNumRules : public SwBaseNumRules
+{
+
+public:
+ SwChapterNumRules();
+ virtual ~SwChapterNumRules();
+
+ virtual String GetName() const;
+ virtual void ApplyNumRules( const SwNumRulesWithName &rCopy,
+ USHORT nIdx);
+};
+
+// INLINE METHODE --------------------------------------------------------
+inline const SwNumRulesWithName *SwBaseNumRules::GetRules(USHORT nIdx) const
+{
+ ASSERT(nIdx < nMaxRules, Array der NumRules ueberindiziert.);
+ return pNumRules[nIdx];
+}
+
+#endif
diff --git a/sw/source/ui/inc/uitool.hxx b/sw/source/ui/inc/uitool.hxx
new file mode 100644
index 000000000000..08f8c1ccb014
--- /dev/null
+++ b/sw/source/ui/inc/uitool.hxx
@@ -0,0 +1,139 @@
+/*************************************************************************
+ *
+ * $RCSfile: uitool.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _UITOOL_HXX
+#define _UITOOL_HXX
+
+#ifndef _SV_WINTYPES_HXX //autogen
+#include <vcl/wintypes.hxx>
+#endif
+#ifndef _SV_FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+
+class MetricFormatter;
+class SfxItemSet;
+class SfxMedium;
+class SwPageDesc;
+class Printer;
+class SvxTabStopItem;
+class SwWrtShell;
+class ListBox;
+class SwDocShell;
+class SwFrmFmt;
+class SwTabCols;
+
+
+// Umschalten einer Metric
+void SetMetric(MetricFormatter& rCtrl, FieldUnit eUnit);
+
+// BoxInfoAttribut fuellen
+void PrepareBoxInfo(SfxItemSet& rSet, const SwWrtShell& rSh);
+
+// SfxItemSets <-> PageDesc
+void ItemSetToPageDesc(const SfxItemSet& rSet,
+ SwPageDesc& rPageDesc,
+ SwWrtShell* pShell );
+
+void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet);
+
+// Auffuellen der Tabs mit DefaultTabs
+void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs);
+
+// DefaultTabs loeschen aus dem TabStopArray
+//void EraseDefTabs(SvxTabStopItem& rTabs);
+
+// Abstand zwischen dem 1. und zweitem Element ermitteln
+USHORT GetTabDist(const SvxTabStopItem& rTabs);
+
+// erfrage ob im Set eine Sfx-PageDesc-Kombination vorliegt
+// und setze diesen im Set und loesche die Transport Items
+// (PageBreak & PageModel) aus dem Set
+void SwToSfxPageDescAttr( SfxItemSet& rSet );
+void SfxToSwPageDescAttr( const SwWrtShell& rShell, SfxItemSet& rSet );
+
+FieldUnit GetDfltMetric(BOOL bWeb);
+void SetDfltMetric(FieldUnit eMetric, BOOL bWeb);
+
+// Umwandlung: Sub(LibName.ModulName) -> LibName.ModulName.Sub
+String ConvertMacroFormat(const String& rInput );
+
+// besorge einen Filenamen/Filternamen. Wird ppMed uebergeben, wird das
+// erzeugte Medium returnt. Auch das FilePassword kann returnt werden.
+BOOL GetFileFilterNameDlg( Window& rParent, String& rFileName,
+ String* pFilePassword =0, String* pFilterName =0,
+ SfxMedium** ppMed = 0 );
+
+// ListBox mit allen Zeichenvorlagen fuellen - ausser Standard!
+void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, BOOL bSorted = FALSE);
+//inserts a string sorted into a ListBox,
+USHORT InsertStringSorted(const String& rEntry, ListBox& rToFill, BOOL bHasOffset, const International& rInt);
+
+// Tabellenbreite und Ausrichtung ermitteln
+SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, USHORT *pPercent,
+ SwWrtShell* pSh );
+
+
+#endif // _UITOOL_HXX
diff --git a/sw/source/ui/inc/uivwimp.hxx b/sw/source/ui/inc/uivwimp.hxx
new file mode 100644
index 000000000000..cdd3e7935ca1
--- /dev/null
+++ b/sw/source/ui/inc/uivwimp.hxx
@@ -0,0 +1,121 @@
+/*************************************************************************
+ *
+ * $RCSfile: uivwimp.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UIVWIMP_HXX
+#define _UIVWIMP_HXX
+
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_
+#include <com/sun/star/view/XSelectionSupplier.hpp>
+#endif
+#ifndef _CPPUHELPER_IMPLBASE1_HXX_
+#include <cppuhelper/implbase1.hxx> // helper for implementations
+#endif
+
+class SwXTextView;
+/* -----------------------------29.05.00 08:22--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwScannerEventListener : public ::cppu::WeakImplHelper1< ::com::sun::star::lang::XEventListener >
+{
+private:
+
+ SwView* m_pParent;
+
+public:
+
+ SwScannerEventListener( SwView* pParent ) : m_pParent( pParent ) {};
+ virtual ~SwScannerEventListener();
+
+ // XEventListener
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& rEventObject );
+
+ void ParentDestroyed() { m_pParent = NULL; }
+};
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwView_Impl
+{
+ SwView* pView;
+ ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier > *pxXTextView; // UNO object
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > xScanEvtLstnr;
+ SwScannerEventListener* pScanEvtLstnr;
+ ShellModes eShellMode;
+
+ public:
+ SwView_Impl(SwView* pShell);
+ ~SwView_Impl();
+
+ void SetShellMode(ShellModes eSet);
+
+ ::com::sun::star::view::XSelectionSupplier* GetUNOObject();
+ SwXTextView* GetUNOObject_Impl();
+
+ ShellModes GetShellMode() {return eShellMode;}
+
+ void ExcuteScan(USHORT nSlot);
+ SwScannerEventListener& GetScannerEventListener();
+};
+#endif
+
diff --git a/sw/source/ui/inc/unotools.hxx b/sw/source/ui/inc/unotools.hxx
new file mode 100644
index 000000000000..fad07a577ec7
--- /dev/null
+++ b/sw/source/ui/inc/unotools.hxx
@@ -0,0 +1,218 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotools.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UNOTOOLS_HXX
+#define _UNOTOOLS_HXX
+
+
+#ifndef _SV_DIALOG_HXX //autogen
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _ACTCTRL_HXX //autogen
+#include <actctrl.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_
+#include <com/sun/star/frame/XController.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTCURSOR_HPP_
+#include <com/sun/star/text/XTextCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XCONTROL_HPP_
+#include <com/sun/star/awt/XControl.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMED_HPP_
+#include <com/sun/star/container/XNamed.hpp>
+#endif
+
+#ifndef _SV_RESARY_HXX
+#include <vcl/resary.hxx>
+#endif
+
+/* -----------------09.06.99 14:36-------------------
+ *
+ * --------------------------------------------------*/
+class SwRenameXNamedDlg : public ModalDialog
+{
+ FixedText aNewNameFT;
+ NoSpaceEdit aNewNameED;
+ GroupBox aNameGB;
+ OKButton aOk;
+ CancelButton aCancel;
+ HelpButton aHelp;
+
+ String sRemoveWarning;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xSecondAccess;
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xThirdAccess;
+
+ DECL_LINK(OkHdl, OKButton*);
+ DECL_LINK(ModifyHdl, NoSpaceEdit*);
+
+public:
+ SwRenameXNamedDlg(Window* pParent, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess);
+
+ void SetForbiddenChars(const String& rSet){aNewNameED.SetForbiddenChars(rSet);}
+
+ void SetAlternativeAccess( ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xSecond, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xThird)
+ {
+ xSecondAccess = xSecond;
+ xThirdAccess = xThird;
+ }
+
+};
+/* -----------------------------15.12.99 09:55--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwOneExampleFrame;
+class SwFrmCtrlWindow : public Window
+{
+ SwOneExampleFrame* pExampleFrame;
+public:
+ SwFrmCtrlWindow(Window* pParent, WinBits nBits, SwOneExampleFrame* pFrame);
+
+ virtual void Command( const CommandEvent& rCEvt );
+};
+/* -----------------------------15.12.99 12:56--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class MenuResource : public Resource
+{
+ ResStringArray aMenuArray;
+
+public:
+ MenuResource(const ResId& rResId);
+
+ ResStringArray& GetMenuArray() {return aMenuArray;}
+};
+/* -----------------27.07.99 15:20-------------------
+
+ --------------------------------------------------*/
+#define EX_SHOW_ONLINE_LAYOUT 0x001
+
+//online layout and hard zoom value
+#define EX_SHOW_BUSINESS_CARDS 0x003
+
+class SwView;
+class SwOneExampleFrame
+{
+ SwFrmCtrlWindow aTopWindow;
+ Window& rWindow;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > _xControl;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > _xModel;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > _xController;
+ ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > _xCursor;
+
+ Timer aLoadedTimer;
+ Link aInitializedLink;
+
+ MenuResource aMenuRes;
+
+ SwView* pModuleView;
+
+ sal_uInt32 nStyleFlags;
+
+ sal_Bool bIsInitialized;
+ sal_Bool bServiceAvailable;
+
+ static sal_Bool bShowServiceNotAvailableMessage;
+
+ DECL_LINK( TimeoutHdl, Timer* );
+ DECL_LINK( PopupHdl, Menu* );
+
+public:
+ SwOneExampleFrame(Window& rWin,
+ sal_uInt32 nStyleFlags = EX_SHOW_ONLINE_LAYOUT,
+ const Link* pInitalizedLink = 0,
+ String* pURL = 0);
+ ~SwOneExampleFrame();
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > & GetControl() {return _xControl;}
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & GetModel() {return _xModel;}
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > & GetController() {return _xController;}
+ ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > & GetTextCursor() {return _xCursor;}
+
+ void ExecUndo();
+
+ sal_Bool IsInitialized() const {return bIsInitialized;}
+ sal_Bool IsServiceAvailable() const {return bServiceAvailable;}
+
+ void CreatePopup(const Point& rPt);
+
+ static void CreateErrorMessage(Window* pParent);
+};
+#endif
+
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx
new file mode 100644
index 000000000000..b792953ddf5a
--- /dev/null
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -0,0 +1,262 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotxvw.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UNOTXVW_HXX
+#define _UNOTXVW_HXX
+
+#ifndef _SFX_SFXBASECONTROLLER_HXX_
+#include <sfx2/sfxbasecontroller.hxx>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTVIEWCURSOR_HPP_
+#include <com/sun/star/text/XTextViewCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTVIEWCURSORSUPPLIER_HPP_
+#include <com/sun/star/text/XTextViewCursorSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XCONTROLACCESS_HPP_
+#include <com/sun/star/view/XControlAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XSCREENCURSOR_HPP_
+#include <com/sun/star/view/XScreenCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XVIEWSETTINGSSUPPLIER_HPP_
+#include <com/sun/star/view/XViewSettingsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_
+#include <com/sun/star/view/XSelectionSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XLINECURSOR_HPP_
+#include <com/sun/star/view/XLineCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XVIEWCURSOR_HPP_
+#include <com/sun/star/view/XViewCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XPAGECURSOR_HPP_
+#include <com/sun/star/text/XPageCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_
+#include <com/sun/star/beans/XPropertyState.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
+#include <com/sun/star/lang/XServiceInfo.hpp>
+#endif
+#ifndef _CPPUHELPER_IMPLBASE8_HXX_
+#include <cppuhelper/implbase8.hxx> // helper for implementations
+#endif
+#ifndef _SFX_ITEMPROP_HXX
+#include <svtools/itemprop.hxx>
+#endif
+
+
+class SwView;
+typedef ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > * XSelectionChangeListenerPtr;
+SV_DECL_PTRARR_DEL( SelectionChangeListenerArr, XSelectionChangeListenerPtr, 4, 4 );
+
+/******************************************************************************
+ *
+ ******************************************************************************/
+class SwXTextView :
+ public ::com::sun::star::view::XSelectionSupplier,
+ public ::com::sun::star::lang::XServiceInfo,
+ public ::com::sun::star::view::XControlAccess,
+ public ::com::sun::star::text::XTextViewCursorSupplier,
+ public ::com::sun::star::view::XViewSettingsSupplier,
+ public SfxBaseController
+{
+ SelectionChangeListenerArr aSelChangedListeners;
+
+ SwView* pView;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxViewSettings;
+ ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > * pxTextViewCursor;
+
+public:
+ SwXTextView(SwView* pSwView);
+ virtual ~SwXTextView();
+
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL acquire( ) throw();
+ virtual void SAL_CALL release( ) throw();
+
+ 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);
+
+ //XSelectionSupplier
+ virtual ::com::sun::star::uno::Any SAL_CALL getSelection(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& aInterface) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL addSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XControlAccess
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL getControl(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException );
+
+ //XTextViewCursorSupplier
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > SAL_CALL getViewCursor(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XViewSettings
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getViewSettings(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XServiceInfo
+ virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual 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(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ void NotifySelChanged();
+
+ SwView* GetView() {return pView;}
+ void Invalidate(){pView = 0;}
+};
+
+/* -----------------17.09.98 12:52-------------------
+ *
+ * --------------------------------------------------*/
+class SwXTextViewCursor : public cppu::WeakImplHelper8
+<
+::com::sun::star::text::XTextViewCursor,
+::com::sun::star::lang::XServiceInfo,
+::com::sun::star::text::XPageCursor,
+::com::sun::star::view::XScreenCursor,
+::com::sun::star::view::XViewCursor,
+::com::sun::star::view::XLineCursor,
+::com::sun::star::beans::XPropertySet,
+::com::sun::star::beans::XPropertyState
+>
+{
+ SwView* pView;
+ SfxItemPropertySet aPropSet;
+public:
+ SwXTextViewCursor(SwView* pVw);
+ virtual ~SwXTextViewCursor();
+
+ //XTextViewCursor
+ virtual sal_Bool SAL_CALL isVisible(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setVisible(sal_Bool bVisible) throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::com::sun::star::awt::Point SAL_CALL getPosition(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XTextCursor - neu
+ virtual void SAL_CALL collapseToStart( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL collapseToEnd( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual BOOL SAL_CALL isCollapsed( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual BOOL SAL_CALL goLeft( sal_Int16 nCount, BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException);
+ virtual BOOL SAL_CALL goRight( sal_Int16 nCount, BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL gotoStart( BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL gotoEnd( BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL gotoRange( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException);
+
+ //XPageCursor
+ virtual sal_Bool SAL_CALL jumpToFirstPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToLastPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToNextPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToEndOfPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToStartOfPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Int16 SAL_CALL getPage(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XTextRange
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getStart(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getEnd(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual rtl::OUString SAL_CALL getString(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setString(const rtl::OUString& aString) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XScreenCursor
+ virtual sal_Bool SAL_CALL screenDown(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL screenUp(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XViewCursor
+ virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
+// virtual sal_Bool goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
+// virtual sal_Bool goRight(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
+
+ //XLineCursor
+ virtual sal_Bool SAL_CALL isAtStartOfLine(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL isAtEndOfLine(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand) 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);
+
+ //XPropertyState
+ virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+
+ //XServiceInfo
+ virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual 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(void) throw( ::com::sun::star::uno::RuntimeException );
+
+ void Invalidate(){pView = 0;}
+};
+#endif
+
+
diff --git a/sw/source/ui/inc/usrpref.hxx b/sw/source/ui/inc/usrpref.hxx
new file mode 100644
index 000000000000..d07bf0995459
--- /dev/null
+++ b/sw/source/ui/inc/usrpref.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: usrpref.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _USRPREF_HXX
+#define _USRPREF_HXX
+
+
+#ifndef _SFXCFGITEM_HXX //autogen
+#include <sfx2/cfgitem.hxx>
+#endif
+#include "viewopt.hxx"
+
+class SwMasterUsrPref: public SwViewOption, public SfxConfigItem
+{
+protected:
+ virtual int Load(SvStream&);
+ virtual BOOL Store(SvStream&);
+ virtual void UseDefault();
+
+public:
+ SwMasterUsrPref(USHORT nType);
+
+ virtual String GetName() const;
+
+ void SetUsrPref(const SwViewOption &rCopy);
+};
+
+#endif
+
diff --git a/sw/source/ui/inc/utlui.hrc b/sw/source/ui/inc/utlui.hrc
new file mode 100644
index 000000000000..0b1d6ceb02fc
--- /dev/null
+++ b/sw/source/ui/inc/utlui.hrc
@@ -0,0 +1,198 @@
+/*************************************************************************
+ *
+ * $RCSfile: utlui.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _UTLUI_HRC
+#define _UTLUI_HRC
+
+#include "rcid.hrc"
+
+
+#define RID_SW_SHELLRES (RC_UTLUI_BEGIN + 1)
+#define RID_STR_SYSTEM (RC_UTLUI_BEGIN + 2)
+
+// ------------------------------------------------------------------------
+
+// Strings in NumberFormatter-Listbox
+#define STR_DEFINE_NUMBERFORMAT (RC_UTLUI_BEGIN + 4)
+
+// Namene der Inhaltstypen (RC_UTLUI_BEGIN + 7)
+#define STR_CONTENT_TYPE_FIRST (RC_UTLUI_BEGIN + 8)
+#define STR_CONTENT_TYPE_OUTLINE STR_CONTENT_TYPE_FIRST
+#define STR_CONTENT_TYPE_TABLE (RC_UTLUI_BEGIN + 9)
+#define STR_CONTENT_TYPE_FRAME (RC_UTLUI_BEGIN + 10)
+#define STR_CONTENT_TYPE_GRAPHIC (RC_UTLUI_BEGIN + 11)
+#define STR_CONTENT_TYPE_OLE (RC_UTLUI_BEGIN + 12)
+#define STR_CONTENT_TYPE_BOOKMARK (RC_UTLUI_BEGIN + 13)
+#define STR_CONTENT_TYPE_REGION (RC_UTLUI_BEGIN + 14)
+#define STR_CONTENT_TYPE_URLFIELD (RC_UTLUI_BEGIN + 15)
+#define STR_CONTENT_TYPE_REFERENCE (RC_UTLUI_BEGIN + 16)
+#define STR_CONTENT_TYPE_INDEX (RC_UTLUI_BEGIN + 17)
+#define STR_CONTENT_TYPE_POSTIT (RC_UTLUI_BEGIN + 18)
+#define STR_CONTENT_TYPE_DRAWOBJECT (RC_UTLUI_BEGIN + 19)
+#define STR_CONTENT_END (RC_UTLUI_BEGIN + 19)
+
+#define STR_CONTENT_TYPE_SINGLE_FIRST (STR_CONTENT_END + 1)
+#define STR_CONTENT_TYPE_SINGLE_OUTLINE (STR_CONTENT_TYPE_SINGLE_FIRST + 0)
+#define STR_CONTENT_TYPE_SINGLE_TABLE (STR_CONTENT_TYPE_SINGLE_FIRST + 1)
+#define STR_CONTENT_TYPE_SINGLE_FRAME (STR_CONTENT_TYPE_SINGLE_FIRST + 2)
+#define STR_CONTENT_TYPE_SINGLE_GRAPHIC (STR_CONTENT_TYPE_SINGLE_FIRST + 3)
+#define STR_CONTENT_TYPE_SINGLE_OLE (STR_CONTENT_TYPE_SINGLE_FIRST + 4)
+#define STR_CONTENT_TYPE_SINGLE_BOOKMARK (STR_CONTENT_TYPE_SINGLE_FIRST + 5)
+#define STR_CONTENT_TYPE_SINGLE_REGION (STR_CONTENT_TYPE_SINGLE_FIRST + 6)
+#define STR_CONTENT_TYPE_SINGLE_URLFIELD (STR_CONTENT_TYPE_SINGLE_FIRST + 7)
+#define STR_CONTENT_TYPE_SINGLE_REFERENCE (STR_CONTENT_TYPE_SINGLE_FIRST + 8)
+#define STR_CONTENT_TYPE_SINGLE_INDEX (STR_CONTENT_TYPE_SINGLE_FIRST + 9)
+#define STR_CONTENT_TYPE_SINGLE_POSTIT (STR_CONTENT_TYPE_SINGLE_FIRST + 10)
+#define STR_CONTENT_TYPE_SINGLE_DRAWOBJECT (STR_CONTENT_TYPE_SINGLE_FIRST + 11)
+#define STR_CONTENT_SINGLE_END STR_CONTENT_TYPE_SINGLE_DRAWOBJECT
+
+#define FLD_DOCINFO_BEGIN STR_CONTENT_SINGLE_END
+#define FLD_DOCINFO_TITEL FLD_DOCINFO_BEGIN
+#define FLD_DOCINFO_THEMA (FLD_DOCINFO_BEGIN + 1)
+#define FLD_DOCINFO_KEYS (FLD_DOCINFO_BEGIN + 2)
+#define FLD_DOCINFO_COMMENT (FLD_DOCINFO_BEGIN + 3)
+#define FLD_DOCINFO_INFO1 (FLD_DOCINFO_BEGIN + 4)
+#define FLD_DOCINFO_INFO2 (FLD_DOCINFO_BEGIN + 5)
+#define FLD_DOCINFO_INFO3 (FLD_DOCINFO_BEGIN + 6)
+#define FLD_DOCINFO_INFO4 (FLD_DOCINFO_BEGIN + 7)
+#define FLD_DOCINFO_CREATE (FLD_DOCINFO_BEGIN + 8)
+#define FLD_DOCINFO_CHANGE (FLD_DOCINFO_BEGIN + 9)
+#define FLD_DOCINFO_PRINT (FLD_DOCINFO_BEGIN + 10)
+#define FLD_DOCINFO_DOCNO (FLD_DOCINFO_BEGIN + 11)
+#define FLD_DOCINFO_EDIT (FLD_DOCINFO_BEGIN + 12)
+#define FLD_DOCINFO_END (FLD_DOCINFO_BEGIN + 13)
+
+#define STR_SERVICE_UNAVAILABLE (FLD_DOCINFO_END + 1)
+
+#define STR_AUTH_TYPE_START (FLD_DOCINFO_END + 2)
+#define STR_AUTH_TYPE_ARTICLE (STR_AUTH_TYPE_START + 0)
+#define STR_AUTH_TYPE_BOOK (STR_AUTH_TYPE_START + 1)
+#define STR_AUTH_TYPE_BOOKLET (STR_AUTH_TYPE_START + 2)
+#define STR_AUTH_TYPE_CONFERENCE (STR_AUTH_TYPE_START + 3)
+#define STR_AUTH_TYPE_INBOOK (STR_AUTH_TYPE_START + 4)
+#define STR_AUTH_TYPE_INCOLLECTION (STR_AUTH_TYPE_START + 5)
+#define STR_AUTH_TYPE_INPROCEEDINGS (STR_AUTH_TYPE_START + 6)
+#define STR_AUTH_TYPE_JOURNAL (STR_AUTH_TYPE_START + 7)
+#define STR_AUTH_TYPE_MANUAL (STR_AUTH_TYPE_START + 8)
+#define STR_AUTH_TYPE_MASTERSTHESIS (STR_AUTH_TYPE_START + 9)
+#define STR_AUTH_TYPE_MISC (STR_AUTH_TYPE_START + 10)
+#define STR_AUTH_TYPE_PHDTHESIS (STR_AUTH_TYPE_START + 11)
+#define STR_AUTH_TYPE_PROCEEDINGS (STR_AUTH_TYPE_START + 12)
+#define STR_AUTH_TYPE_TECHREPORT (STR_AUTH_TYPE_START + 13)
+#define STR_AUTH_TYPE_UNPUBLISHED (STR_AUTH_TYPE_START + 14)
+#define STR_AUTH_TYPE_EMAIL (STR_AUTH_TYPE_START + 15)
+#define STR_AUTH_TYPE_WWW (STR_AUTH_TYPE_START + 16)
+#define STR_AUTH_TYPE_CUSTOM1 (STR_AUTH_TYPE_START + 17)
+#define STR_AUTH_TYPE_CUSTOM2 (STR_AUTH_TYPE_START + 18)
+#define STR_AUTH_TYPE_CUSTOM3 (STR_AUTH_TYPE_START + 19)
+#define STR_AUTH_TYPE_CUSTOM4 (STR_AUTH_TYPE_START + 20)
+#define STR_AUTH_TYPE_CUSTOM5 (STR_AUTH_TYPE_START + 21)
+#define STR_AUTH_TYPE_END (STR_AUTH_TYPE_CUSTOM5)
+
+#define STR_AUTH_FIELD_START (STR_AUTH_TYPE_END + 1)
+#define STR_AUTH_FIELD_IDENTIFIER (STR_AUTH_FIELD_START + 0)
+#define STR_AUTH_FIELD_AUTHORITY_TYPE (STR_AUTH_FIELD_START + 1)
+#define STR_AUTH_FIELD_ADDRESS (STR_AUTH_FIELD_START + 2)
+#define STR_AUTH_FIELD_ANNOTE (STR_AUTH_FIELD_START + 3)
+#define STR_AUTH_FIELD_AUTHOR (STR_AUTH_FIELD_START + 4)
+#define STR_AUTH_FIELD_BOOKTITLE (STR_AUTH_FIELD_START + 5)
+#define STR_AUTH_FIELD_CHAPTER (STR_AUTH_FIELD_START + 6)
+#define STR_AUTH_FIELD_EDITION (STR_AUTH_FIELD_START + 7)
+#define STR_AUTH_FIELD_EDITOR (STR_AUTH_FIELD_START + 8)
+#define STR_AUTH_FIELD_HOWPUBLISHED (STR_AUTH_FIELD_START + 9)
+#define STR_AUTH_FIELD_INSTITUTION (STR_AUTH_FIELD_START + 10)
+#define STR_AUTH_FIELD_JOURNAL (STR_AUTH_FIELD_START + 11)
+#define STR_AUTH_FIELD_MONTH (STR_AUTH_FIELD_START + 12)
+#define STR_AUTH_FIELD_NOTE (STR_AUTH_FIELD_START + 13)
+#define STR_AUTH_FIELD_NUMBER (STR_AUTH_FIELD_START + 14)
+#define STR_AUTH_FIELD_ORGANIZATIONS (STR_AUTH_FIELD_START + 15)
+#define STR_AUTH_FIELD_PAGES (STR_AUTH_FIELD_START + 16)
+#define STR_AUTH_FIELD_PUBLISHER (STR_AUTH_FIELD_START + 17)
+#define STR_AUTH_FIELD_SCHOOL (STR_AUTH_FIELD_START + 18)
+#define STR_AUTH_FIELD_SERIES (STR_AUTH_FIELD_START + 19)
+#define STR_AUTH_FIELD_TITLE (STR_AUTH_FIELD_START + 20)
+#define STR_AUTH_FIELD_TYPE (STR_AUTH_FIELD_START + 21)
+#define STR_AUTH_FIELD_VOLUME (STR_AUTH_FIELD_START + 22)
+#define STR_AUTH_FIELD_YEAR (STR_AUTH_FIELD_START + 23)
+#define STR_AUTH_FIELD_URL (STR_AUTH_FIELD_START + 24)
+#define STR_AUTH_FIELD_CUSTOM1 (STR_AUTH_FIELD_START + 25)
+#define STR_AUTH_FIELD_CUSTOM2 (STR_AUTH_FIELD_START + 26)
+#define STR_AUTH_FIELD_CUSTOM3 (STR_AUTH_FIELD_START + 27)
+#define STR_AUTH_FIELD_CUSTOM4 (STR_AUTH_FIELD_START + 28)
+#define STR_AUTH_FIELD_CUSTOM5 (STR_AUTH_FIELD_START + 29)
+#define STR_AUTH_FIELD_ISBN (STR_AUTH_FIELD_START + 30)
+#define STR_AUTH_FIELD_END (STR_AUTH_FIELD_ISBN)
+
+#define RES_FRMEX_MENU (STR_AUTH_FIELD_END + 1)
+
+#define DLG_NAVIGATION_PI (RC_UTLUI_BEGIN + 1)
+#define DLG_ADDR_PI (RC_UTLUI_BEGIN + 2)
+#define DLG_GLOSSARY_DECIDE_DLG (RC_UTLUI_BEGIN + 3)
+
+#define IMG_NAVI_ENTRYBMP (RC_UTLUI_BEGIN + 4)
+
+#define UTLUI_ACT_END RES_FRMEX_MENU
+
+#if UTLUI_ACT_END > RC_UTLUI_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
diff --git a/sw/source/ui/inc/view.hxx b/sw/source/ui/inc/view.hxx
new file mode 100644
index 000000000000..38694520c2f3
--- /dev/null
+++ b/sw/source/ui/inc/view.hxx
@@ -0,0 +1,655 @@
+/*************************************************************************
+ *
+ * $RCSfile: view.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWVIEW_HXX
+#define _SWVIEW_HXX
+
+#ifndef _TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _VIEWFAC_HXX //autogen
+#include <sfx2/viewfac.hxx>
+#endif
+#ifndef _SFXVIEWSH_HXX //autogen
+#include <sfx2/viewsh.hxx>
+#endif
+#ifndef _SVX_SVXENUM_HXX //autogen
+#include <svx/svxenum.hxx>
+#endif
+#ifndef _SVX_ZOOMITEM_HXX //autogen
+#include <svx/zoomitem.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SHELLID_HXX
+#include <shellid.hxx>
+#endif
+
+class SwBaseShell;
+class Button;
+class ImageButton;
+class SwTxtFmtColl;
+class SwPageDesc;
+class SwFrmFmt;
+class SwCharFmt;
+class SwNumRule;
+class SwViewOption;
+class SwGlossaryHdl;
+class SwDrawBase;
+class SvxRuler;
+class SvxLRSpaceItem;
+class SwDocShell;
+class SwScrollbar;
+class PrintDialog;
+class SvxVCBrowser;
+class SvBorder;
+class Ruler;
+class OutlinerView;
+class SvxSearchItem;
+class SearchAttrItemList;
+class SvxSearchDialog;
+class SdrView;
+class Dialog;
+class SdrObject;
+class SdrPageView;
+class SwNaviImageButton;
+class SwHlpImageButton;
+class Outliner;
+class SwView;
+class SwEditWin;
+class SwWrtShell;
+class SwView_Impl;
+namespace com{ namespace sun { namespace star {namespace view{ class XSelectionSupplier;}}}}
+class XSelectionObject;
+struct SwSearchOptions;
+class FmFormShell;
+class CommandEvent;
+class InsCaptionOpt;
+class SvGlobalName;
+
+const long nLeftOfst = -370;
+const long nScrollX = 30;
+const long nScrollY = 30;
+
+#define MINZOOM 20
+#define MAXZOOM 600
+
+#define MAX_MARKS 5
+
+
+enum ShellModes
+{
+ SEL_TEXT,
+ SEL_FRAME,
+ SEL_GRAPHIC,
+ SEL_OBJECT,
+ SEL_DRAW,
+ SEL_DRAW_CTRL,
+ SEL_DRAW_FORM,
+ SEL_DRAWTEXT,
+ SEL_BEZIER,
+ SEL_LIST_TEXT,
+ SEL_TABLE_TEXT,
+ SEL_TABLE_LIST_TEXT
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung: Anwendung einer Vorlage
+ --------------------------------------------------------------------*/
+
+struct SwApplyTemplate
+{
+ union
+ {
+ SwTxtFmtColl* pTxtColl;
+ SwPageDesc* pPageDesc;
+ SwFrmFmt* pFrmFmt;
+ SwCharFmt* pCharFmt;
+ SwNumRule* pNumRule;
+ } aColl;
+
+ int eType;
+ USHORT nColor;
+ BOOL bUndo;
+
+ SwApplyTemplate() :
+ eType(0),
+ nColor(0),
+ bUndo(FALSE)
+ {
+ aColl.pTxtColl = 0;
+ }
+};
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sicht auf ein Dokument
+ --------------------------------------------------------------------*/
+
+class SwView: public SfxViewShell
+{
+ //Messehack (MA,MBA)
+ friend void lcl_SelectShellForDrop( SwView &rView );
+
+ friend class TestTemplateItem;
+ friend class SwSpellWrapper;
+ friend class SwHyphWrapper;
+ friend class SwView_Impl;
+
+ //suchen & ersetzen
+ static SvxSearchDialog *pSrchDlg;
+ static SvxSearchItem *pSrchItem;
+
+ static USHORT nInsertCtrlState;
+ static USHORT nWebInsertCtrlState;
+ static USHORT nInsertObjectCtrlState;
+ static USHORT nInsertFieldCtrlState;
+ static USHORT nMoveType; // fuer Buttons unter dem Scrollbar (viewmdi)
+ static BYTE nActMark; // aktuelle Sprungmarke fuer unbenannte Merker
+
+ static BOOL bExtra;
+ static BOOL bFound;
+ static BOOL bJustOpened;
+
+ static SearchAttrItemList* pSrchList;
+ static SearchAttrItemList* pReplList;
+
+
+ Timer aTimer; //Fuer verzoegerte ChgLnks waehrend
+ //einer Aktion
+ String aPageStr; //Statusanzeige, aktuelle Seite
+ String sSwViewData,
+ //and the new cursor position if the user double click in the PagePreView
+ sNewCrsrPos;
+
+ Point aTabColFromDocPos; //Verschieben von Tabellenspalten aus
+ //aus dem Dokument heraus.
+ Size aDocSz; // aktuelle Dokumentgroesse
+ Rectangle aVisArea; // sichtbarer Bereich
+
+ SwEditWin *pEditWin;
+ SwWrtShell *pWrtShell;
+
+ SfxShell *pShell; //aktuelle SubShell auf dem Dispatcher
+ FmFormShell *pFormShell; // DB-FormShell
+
+ SwView_Impl *pViewImpl; // Impl-Daten fuer UNO + Basic
+
+
+ SwScrollbar *pHScrollbar, // MDI Bedienelemente
+ *pVScrollbar;
+
+ Window *pScrollFill; // Dummy-Window zum Fllen der rechten
+ // unteren Ecke, wenn beide Scrollbars
+ // aktiv sind
+
+ SvxRuler *pHLineal,
+ *pVLineal;
+ ImageButton *pTogglePageBtn;
+
+ SwHlpImageButton *pPageUpBtn,
+ *pPageDownBtn;
+
+ SwNaviImageButton *pNaviBtn;
+ SwGlossaryHdl *pGlosHdl; // Henkel Textbausteine
+ SwDrawBase *pDrawActual;
+
+ const SwFrmFmt* pLastTableFormat;
+
+ int nSelectionType;
+
+ // Aktueller Drawmode
+ USHORT nDrawSfxId;
+ USHORT nFormSfxId;
+
+ BOOL bCenterCrsr : 1,
+ bTopCrsr : 1,
+ bAllwaysShowSel : 1,
+ bTabColFromDoc : 1,
+ bSetTabColFromDoc : 1 ,
+ bAttrChgNotified : 1,
+ bAttrChgNotifiedWithRegistrations : 1,
+ bVerbsActive : 1,
+ bDrawRotate : 1,
+ bDrawSelMode : 1,
+ bShowAtResize : 1,
+ bInOuterResizePixel : 1,
+ bIsApi : 1;
+
+ // Methoden fuers Suchen
+ // Suchkontext setzen
+ BOOL SearchAndWrap(BOOL bApi = FALSE);
+ BOOL SearchAll(USHORT* pFound = 0);
+ ULONG FUNC_Search( const SwSearchOptions& rOptions );
+ void Replace();
+
+ inline BOOL IsDocumentBorder();
+
+ BOOL IsTextTool() const;
+
+ // Bedienelemente verwalten anlegen
+ void CreateBtns();
+ DECL_LINK( BtnPage, Button * );
+
+ DECL_LINK( TimeoutHdl, Timer * );
+
+ inline long GetXScroll() const;
+ inline long GetYScroll() const;
+ Point AlignToPixel(const Point& rPt) const;
+ void CalcPt( Point* pPt,const Rectangle& rRect,
+ USHORT nRangeX = USHRT_MAX,
+ USHORT nRangeY = USHRT_MAX);
+
+ BOOL GetPageScrollUpOffset(SwTwips& rOff) const;
+ BOOL GetPageScrollDownOffset(SwTwips& rOff) const;
+
+ // Scrollbar Movements
+ long PageUp();
+ long PageDown();
+ long PageUpCrsr(BOOL bSelect);
+ long PageDownCrsr(BOOL bSelect);
+ long PhyPageUp();
+ long PhyPageDown();
+
+ int _CreateScrollbar( int bHori );
+ int _KillScrollbar( int bHori );
+ DECL_LINK( ScrollHdl, SwScrollbar * );
+ DECL_LINK( EndScrollHdl, SwScrollbar * );
+ BOOL UpdateScrollbars();
+ void CalcVisArea( const Size &rPixelSz );
+
+ int _CreateVLineal();
+ int _KillVLineal();
+ int _CreateTab();
+ int _KillTab();
+ void CreatePageButtons(BOOL bShow);
+
+ // Linguistik-Funktionen
+ void SpellDocument( const String* pStr, BOOL bAllRight = FALSE );
+ void HyphenateDocument();
+ BOOL IsDrawTextHyphenate();
+ void HyphenateDrawText();
+ void StartThesaurus();
+
+ void SpellStart( SvxSpellArea eSpell, BOOL bStartDone,
+ BOOL bEndDone );
+ void HyphStart( SvxSpellArea eSpell );
+ void SpellEnd();
+ void _SpellDocument( const String* pStr, BOOL bAllRight );
+ BOOL CheckSpecialCntnt();
+ void SpellKontext(BOOL bOn = TRUE)
+ { bCenterCrsr = bOn; bAllwaysShowSel = bOn; }
+
+ // Methoden fuers Printing
+ virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE );
+ virtual PrintDialog* CreatePrintDialog( Window* pParent );
+ SfxTabPage* CreatePrintOptionsPage( Window* pParent,
+ const SfxItemSet& rSet);
+ // fuer Readonly-Umschaltung
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ void _CheckReadonlyState();
+ void _CheckReadonlySelection();
+
+ // Methode fuer PageDesc drehen
+ void SwapPageMargin(const SwPageDesc&, SvxLRSpaceItem& rLR);
+
+ void _SetZoom( const Size &rEditSz,
+ SvxZoomType eZoomType,
+ short nFactor = 100,
+ BOOL bViewOnly = FALSE);
+ void CalcAndSetBorderPixel( SvBorder &rToFill, FASTBOOL bInner );
+
+ void ShowAtResize();
+
+ virtual void Move();
+
+
+protected:
+
+ SwView_Impl* GetViewImpl() {return pViewImpl;}
+
+ void ImpSetVerb( int nSelType );
+
+ int GetSelectionType() const { return nSelectionType; }
+ void SetSelectionType(int nSet) { nSelectionType = nSet;}
+
+ // fuer die SwWebView
+ void SetShell( SfxShell* pS ) { pShell = pS; }
+ void SetFormShell( FmFormShell* pSh ) { pFormShell = pSh; }
+
+ virtual void SelectShell();
+
+ virtual void Activate(BOOL);
+ virtual void Deactivate(BOOL);
+ virtual void InnerResizePixel( const Point &rOfs, const Size &rSize );
+ virtual void OuterResizePixel( const Point &rOfs, const Size &rSize );
+ virtual Size GetOptimalSizePixel() const;
+
+ void SetImageButtonColor(Color& rColor);
+
+ const SwFrmFmt* GetLastTblFrmFmt() const {return pLastTableFormat;}
+ void SetLastTblFrmFmt(const SwFrmFmt* pSet) {pLastTableFormat = pSet;}
+
+public:
+
+ SFX_DECL_VIEWFACTORY(SwView);
+ SFX_DECL_INTERFACE(SW_VIEWSHELL);
+ TYPEINFO();
+
+ SfxDispatcher &GetDispatcher();
+
+ virtual SdrView* GetDrawView() const;
+ virtual void UIDeactivate( SvInPlaceObject *pIPObj );
+ virtual BOOL HasUIFeature( ULONG nFeature );
+ virtual void ShowCursor( FASTBOOL bOn = TRUE );
+ virtual ErrCode DoVerb( long nVerb );
+
+ virtual USHORT SetPrinter( SfxPrinter* pNew,
+ USHORT nDiff = SFX_PRINTER_ALL);
+ virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog,
+ BOOL bSilent );
+ ShellModes GetShellMode();
+
+ com::sun::star::view::XSelectionSupplier* GetUNOObject();
+
+ String GetSelectionTextParam( BOOL bCompleteWords,
+ BOOL bEraseTrail,
+ BOOL bExtendedDelimiter = FALSE );
+ virtual BOOL HasSelection( BOOL bText ) const;
+ virtual String GetSelectionText( BOOL bCompleteWords );
+ virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE );
+ virtual void MarginChanged();
+
+ // Shell sofort wechseln -> fuer GetSelectionObject
+ void StopShellTimer();
+ // hier wird bei Bedarf SelectShell gerufen (getSelection)
+ void PrepareGetSelection();
+
+ inline SwWrtShell& GetWrtShell () const { return *pWrtShell; }
+ inline SwWrtShell* GetWrtShellPtr() const { return pWrtShell; }
+
+ inline SwEditWin &GetEditWin() { return *pEditWin; }
+ inline const SwEditWin &GetEditWin () const { return *pEditWin; }
+
+#if defined WIN || defined WNT || defined UNX
+ void ScannerEventHdl( const ::com::sun::star::lang::EventObject& rEventObject );
+#endif
+
+ //Handler fuer Textbausteine an die Textshell rausreichen, gfs. anlegen
+ SwGlossaryHdl* GetGlosHdl();
+
+ inline const Rectangle& GetVisArea() const { return aVisArea; }
+
+ BOOL IsScroll(const Rectangle& rRect) const;
+ void Scroll( const Rectangle& rRect,
+ USHORT nRangeX = USHRT_MAX,
+ USHORT nRangeY = USHRT_MAX);
+
+ long SetVScrollMax(long lMax);
+ long SetHScrollMax(long lMax);
+
+ DECL_LINK( SpellError, void * );
+ BOOL ExecSpellPopup( const Point& rPt );
+ BOOL ExecDrwTxtSpellPopup(const Point& rPt);
+
+ void SetTabColFromDocPos( const Point &rPt ) { aTabColFromDocPos = rPt; }
+ void SetTabColFromDoc( BOOL b ) { bTabColFromDoc = b; }
+ BOOL IsTabColFromDoc() const { return bTabColFromDoc; }
+
+ void DocSzChgd( const Size& rNewSize );
+ const Size& GetDocSz() const { return aDocSz; }
+ virtual void SetVisArea( const Rectangle&, BOOL bUpdateScrollbar = TRUE);
+ void SetVisArea( const Point&, BOOL bUpdateScrollbar = TRUE);
+ void CheckVisArea();
+
+ static Dialog* GetSearchDialog();
+
+ static USHORT GetMoveType();
+ static void SetMoveType(USHORT nSet);
+ void MoveNavigation(BOOL bNext);
+ static void SetActMark(BYTE nSet);
+
+ BOOL HandleWheelCommands( const CommandEvent& );
+
+ // Rahmen einfuegen
+ void InsFrmMode(USHORT nCols);
+
+ void SetZoom( SvxZoomType eZoomType, short nFactor = 100, BOOL bViewOnly = FALSE);
+ virtual void SetZoomFactor( const Fraction &rX, const Fraction & );
+
+ inline int StatHScrollbar() const;
+ inline int CreateHScrollbar();
+ inline int KillHScrollbar();
+
+ inline int CreateVScrollbar();
+ inline int KillVScrollbar();
+ inline int StatVScrollbar() const;
+
+ inline int CreateVLineal();
+ inline int KillVLineal();
+ int StatVLineal() const { return pVLineal != 0; }
+ void ChangeVLinealMetric(FieldUnit eUnit);
+
+ inline int CreateTab();
+ inline int KillTab();
+ int StatTab() const { return ((Window*)pHLineal)->IsVisible(); }
+ SvxRuler *GetHLineal() { return pHLineal; }
+ SvxRuler *GetVLineal() { return pVLineal; }
+ void InvalidateRulerPos();
+ void ChangeTabMetric(FieldUnit eUnit);
+
+ // Handler
+ void Execute(SfxRequest&);
+ void ExecPageMove(SfxRequest&);
+ void ExecStyle(SfxRequest&);
+ void ExecLingu(SfxRequest&);
+ void ExecDataBase(SfxRequest&);
+ void ExecDlg(SfxRequest&);
+ void ExecDlgExt(SfxRequest&);
+ void ExecDBDlg(SfxRequest &);
+ void ExecColl(SfxRequest&);
+ void ExecutePrint(SfxRequest&);
+ void ExecDraw(SfxRequest&);
+ void ExecTabWin(SfxRequest&);
+ void ExecuteStatusLine(SfxRequest&);
+ DECL_LINK( ExecRulerClick, Ruler * );
+ void ExecSearch(SfxRequest&, BOOL bNoMessage = FALSE);
+
+ void StateSearch(SfxItemSet &);
+ void GetState(SfxItemSet&);
+ void StateStatusLine(SfxItemSet&);
+
+
+ // Funktionen fuer Drawing
+ void SetDrawFuncPtr(SwDrawBase* pFuncPtr);
+ inline SwDrawBase* GetDrawFuncPtr(BOOL bBuf = FALSE) const { return pDrawActual; }
+ void GetDrawState(SfxItemSet &rSet);
+ void ExitDraw();
+ inline BOOL IsDrawRotate() { return bDrawRotate; }
+ inline void FlipDrawRotate() { bDrawRotate = !bDrawRotate; }
+ inline BOOL IsDrawSelMode() { return bDrawSelMode; }
+ void SetSelDrawSlot();
+ inline void FlipDrawSelMode() { bDrawSelMode = !bDrawSelMode; }
+ void NoRotate(); // Rotate-Mode abschalten
+ BOOL EnterDrawTextMode(const Point& aDocPos);
+ void LeaveDrawCreate() { nDrawSfxId = nFormSfxId = USHRT_MAX; }
+ BOOL IsDrawMode() { return (nDrawSfxId != USHRT_MAX || nFormSfxId != USHRT_MAX); }
+ BOOL IsFormMode() const;
+ BOOL IsBezierEditMode();
+ BOOL AreOnlyFormsSelected() const;
+ BOOL HasDrwObj(SdrObject *pSdrObj) const;
+ BOOL HasOnlyObj(SdrObject *pSdrObj, UINT32 eObjInventor) const;
+ BOOL BeginTextEdit( SdrObject* pObj, SdrPageView* pPV=NULL,
+ Window* pWin=NULL, BOOL bIsNewObj=FALSE);
+
+ void StateTabWin(SfxItemSet&);
+
+ // Attribute haben sich geaendert
+ DECL_LINK( AttrChangedNotify, SwWrtShell * );
+
+ // Links bearbeiten
+ void EditLinkDlg();
+ void AutoCaption(const USHORT nType, const SvGlobalName *pOleId = 0);
+ void InsertCaption(const InsCaptionOpt *pOpt);
+
+ // Async Aufruf durch Core
+ void UpdatePageNums(USHORT nPhyNum, USHORT nVirtNum, const String& rPgStr);
+
+ String GetPageStr(USHORT nPhyNum, USHORT nVirtNum, const String& rPgStr);
+
+ // Shell rausreichen
+ SfxShell *GetCurShell() { return pShell; }
+ SwDocShell *GetDocShell();
+ inline const SwDocShell *GetDocShell() const;
+ inline FmFormShell *GetFormShell() { return pFormShell; }
+
+ //damit in DToren der SubShells ggf. pShell zurueckgesetzt werden kann
+ void ResetSubShell() { pShell = 0; }
+
+ virtual void WriteUserData(String &, BOOL bBrowse = FALSE );
+ virtual void ReadUserData(const String &, BOOL bBrowse = FALSE );
+
+ void SetCrsrAtTop( BOOL bFlag, BOOL bCenter = FALSE )
+ { bTopCrsr = bFlag, bCenterCrsr = bCenter; }
+ BOOL IsCrsrAtTop() const { return bTopCrsr; }
+ BOOL IsCrsrAtCenter() const { return bCenterCrsr; }
+
+ BOOL JumpToSwMark( const String& rMark );
+
+ long InsertDoc( USHORT nSlotId, const String& rFileName,
+ const String& rFilterName, INT16 nVersion = 0 );
+
+ SwView(SfxViewFrame* pFrame, SfxViewShell*);
+ ~SwView();
+};
+
+// ----------------- inline Methoden ----------------------
+
+inline int SwView::StatHScrollbar() const
+{
+ return 0 != pHScrollbar;
+}
+inline int SwView::CreateHScrollbar()
+{
+ return StatHScrollbar() ? 1 : _CreateScrollbar( TRUE );
+}
+inline int SwView::KillHScrollbar()
+{
+ return StatHScrollbar() ? _KillScrollbar( TRUE ) : 1;
+}
+
+inline int SwView::StatVScrollbar() const
+{
+ return 0 != pVScrollbar;
+}
+inline int SwView::CreateVScrollbar()
+{
+ return StatVScrollbar() ? 1 : _CreateScrollbar( FALSE );
+}
+inline int SwView::KillVScrollbar()
+{
+ return StatVScrollbar() ? _KillScrollbar( FALSE ) : 1;
+}
+
+inline int SwView::CreateVLineal()
+{
+ return StatVLineal() ? 1 : _CreateVLineal();
+}
+inline int SwView::KillVLineal()
+{
+ return StatVLineal() ? _KillVLineal() : 1;
+}
+
+inline int SwView::CreateTab()
+{
+ return StatTab() ? 1 : _CreateTab();
+}
+inline int SwView::KillTab()
+{
+ return StatTab() ? _KillTab() : 1;
+}
+
+inline long SwView::GetXScroll() const
+{
+ return aVisArea.GetWidth() * nScrollX / 100L;
+}
+
+inline long SwView::GetYScroll() const
+{
+ return aVisArea.GetHeight() * nScrollY / 100L;
+}
+
+inline const SwDocShell *SwView::GetDocShell() const
+{
+ return ((SwView*)this)->GetDocShell();
+}
+
+//***********************************************************
+
+SfxTabPage* CreatePrintOptionsPage( Window *pParent,
+ const SfxItemSet &rOptions,
+ BOOL bPreview);
+
+#endif
diff --git a/sw/source/ui/inc/web.hrc b/sw/source/ui/inc/web.hrc
new file mode 100644
index 000000000000..10795ac0899e
--- /dev/null
+++ b/sw/source/ui/inc/web.hrc
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * $RCSfile: web.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _WEB_HRC
+#define _WEB_HRC
+
+#include "rcid.hrc"
+
+#define RC_WEB_ICON (RC_WEB_BEGIN + 1)
+#define RID_WEBTOOLS_TOOLBOX (RC_WEB_BEGIN + 2)
+#define RID_WEBTEXT_TOOLBOX (RC_WEB_BEGIN + 3)
+#define STR_HUMAN_SWWEBDOC_NAME (RC_WEB_BEGIN + 4)
+#define STR_WRITER_WEBDOC_FULLTYPE_40 (RC_WEB_BEGIN + 5)
+#define STR_SHELLNAME_WEBTEXT (RC_WEB_BEGIN + 6)
+#define STR_SHELLNAME_WEBFRAME (RC_WEB_BEGIN + 7)
+#define RID_WEBFRAME_TOOLBOX (RC_WEB_BEGIN + 8)
+#define STR_WRITER_WEBDOC_FULLTYPE (RC_WEB_BEGIN + 9)
+#define RID_WEBGRAPHIC_TOOLBOX (RC_WEB_BEGIN + 10)
+#define RID_WEBOLE_TOOLBOX (RC_WEB_BEGIN + 11)
+
+
+#define MN_WEBFILE (RC_WEB_BEGIN + 30)
+#define MN_WEBEDIT (RC_WEB_BEGIN + 31)
+#define MN_WEBVIEW (RC_WEB_BEGIN + 32)
+#define MN_WEBINS (RC_WEB_BEGIN + 33)
+#define MN_WEBFORMAT (RC_WEB_BEGIN + 34)
+#define MN_WEBEXTRA (RC_WEB_BEGIN + 35)
+#define MN_WEBWIN (RC_WEB_BEGIN + 36)
+
+#define MN_OBJECTMENU_WEBTEXT (RC_WEB_BEGIN + 37)
+#define MN_OBJECTMENU_WEBLIST (RC_WEB_BEGIN + 38)
+#define MN_OBJECTMENU_WEBTABLE (RC_WEB_BEGIN + 39)
+#define MN_OBJECTMENU_WEBFRAME (RC_WEB_BEGIN + 40)
+#define MN_OBJECTMENU_WEBGRAFIK (RC_WEB_BEGIN + 41)
+#define MN_OBJECTMENU_WEBDRAW (RC_WEB_BEGIN + 42)
+#define MN_OBJECTMENU_WEBDRWTXT (RC_WEB_BEGIN + 43)
+#define MN_OBJECTMENU_WEBOLE (RC_WEB_BEGIN + 44)
+#define MN_OBJECTMENU_WEBDRAWCONTROL (RC_WEB_BEGIN + 45)
+
+#define MN_WEB_TEXT_POPUPMENU (RC_WEB_BEGIN + 46)
+
+#define MN_WEBFILE_PORT (RC_WEB_BEGIN + 47)
+#define MN_WEBEDIT_PORT (RC_WEB_BEGIN + 48)
+#define MN_WEBVIEW_PORT (RC_WEB_BEGIN + 49)
+#define MN_WEBINS_PORT (RC_WEB_BEGIN + 50)
+#define MN_WEBFORMAT_PORT (RC_WEB_BEGIN + 51)
+#define MN_WEBEXTRA_PORT (RC_WEB_BEGIN + 52)
+#define MN_WEBWIN_PORT (RC_WEB_BEGIN + 53)
+
+// ------------------------------------------------------------------------
+
+#define WEB_ACT_END MN_OBJECTMENU_WEBDRAWCONTROL
+
+
+#if WEB_ACT_END > RC_WEB_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
diff --git a/sw/source/ui/inc/wformsh.hxx b/sw/source/ui/inc/wformsh.hxx
new file mode 100644
index 000000000000..dfa89ca1338d
--- /dev/null
+++ b/sw/source/ui/inc/wformsh.hxx
@@ -0,0 +1,79 @@
+/*************************************************************************
+ *
+ * $RCSfile: wformsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWWDRWFORMSH_HXX
+#define _SWWDRWFORMSH_HXX
+
+#include "drformsh.hxx"
+
+class SwWebDrawFormShell : public SwDrawFormShell
+{
+public:
+ SwWebDrawFormShell(SwView &rShell);
+ virtual ~SwWebDrawFormShell();
+
+ SFX_DECL_INTERFACE(SW_WEBDRAWFORMSHELL);
+ TYPEINFO();
+};
+
+
+#endif
+
+
diff --git a/sw/source/ui/inc/wfrmsh.hxx b/sw/source/ui/inc/wfrmsh.hxx
new file mode 100644
index 000000000000..e7f40ae5d051
--- /dev/null
+++ b/sw/source/ui/inc/wfrmsh.hxx
@@ -0,0 +1,82 @@
+/*************************************************************************
+ *
+ * $RCSfile: wfrmsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWWFRMSH_HXX
+#define _SWWFRMSH_HXX
+
+#include "frmsh.hxx"
+
+
+class SwWebFrameShell: public SwFrameShell
+{
+
+public:
+ SFX_DECL_INTERFACE(SW_WEBFRAMESHELL);
+ TYPEINFO();
+
+ SwWebFrameShell(SwView &rView);
+ virtual ~SwWebFrameShell();
+};
+
+#endif
+
+
+
diff --git a/sw/source/ui/inc/wgrfsh.hxx b/sw/source/ui/inc/wgrfsh.hxx
new file mode 100644
index 000000000000..56b1c44f7c9a
--- /dev/null
+++ b/sw/source/ui/inc/wgrfsh.hxx
@@ -0,0 +1,79 @@
+/*************************************************************************
+ *
+ * $RCSfile: wgrfsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWWGRFSH_HXX
+#define _SWWGRFSH_HXX
+
+#include "grfsh.hxx"
+
+class SwWebGrfShell: public SwGrfShell
+{
+public:
+ SwWebGrfShell(SwView &rShell);
+ virtual ~SwWebGrfShell();
+
+ SFX_DECL_INTERFACE(SW_WEBGRFSHELL);
+ TYPEINFO();
+};
+
+
+#endif
+
+
diff --git a/sw/source/ui/inc/wlistsh.hxx b/sw/source/ui/inc/wlistsh.hxx
new file mode 100644
index 000000000000..7c824c8b7fe8
--- /dev/null
+++ b/sw/source/ui/inc/wlistsh.hxx
@@ -0,0 +1,76 @@
+/*************************************************************************
+ *
+ * $RCSfile: wlistsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWWLISTSH_HXX
+#define _SWWLISTSH_HXX
+
+#include "listsh.hxx"
+
+class SwWebListShell: public SwListShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_WEBLISTSHELL);
+ TYPEINFO();
+
+ virtual ~SwWebListShell();
+ SwWebListShell(SwView &rView);
+};
+
+#endif
diff --git a/sw/source/ui/inc/wolesh.hxx b/sw/source/ui/inc/wolesh.hxx
new file mode 100644
index 000000000000..fccee3aa35bd
--- /dev/null
+++ b/sw/source/ui/inc/wolesh.hxx
@@ -0,0 +1,82 @@
+/*************************************************************************
+ *
+ * $RCSfile: wolesh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWWOLESH_HXX
+#define _SWWOLESH_HXX
+
+#include "olesh.hxx"
+
+class SwWebOleShell: public SwOleShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_WEBOLESHELL);
+
+ virtual ~SwWebOleShell();
+ SwWebOleShell(SwView &rView);
+};
+
+#endif
+
+
+
+
+
+
+
diff --git a/sw/source/ui/inc/workctrl.hxx b/sw/source/ui/inc/workctrl.hxx
new file mode 100644
index 000000000000..982461eefb39
--- /dev/null
+++ b/sw/source/ui/inc/workctrl.hxx
@@ -0,0 +1,228 @@
+/*************************************************************************
+ *
+ * $RCSfile: workctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _WORKCTRL_HXX
+#define _WORKCTRL_HXX
+
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+#ifndef _VALUESET_HXX //autogen
+#include <svtools/valueset.hxx>
+#endif
+
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+
+class PopupMenu;
+class SwView;
+
+// doppelter Eintrag! hrc und hxx
+// diese Ids bestimmen, was die Buttons unter dem Scrollbar tun
+#define NID_START 20000
+#define NID_NEXT 20000
+#define NID_PREV 20001
+#define NID_TBL 20002
+#define NID_FRM 20003
+#define NID_PGE 20004
+#define NID_DRW 20005
+#define NID_CTRL 20006
+#define NID_REG 20007
+#define NID_BKM 20008
+#define NID_GRF 20009
+#define NID_OLE 20010
+#define NID_OUTL 20011
+#define NID_SEL 20012
+#define NID_FTN 20013
+#define NID_MARK 20014
+#define NID_POSTIT 20015
+#define NID_SRCH_REP 20016
+#define NID_INDEX_ENTRY 20017
+#define NID_TABLE_FORMULA 20018
+#define NID_TABLE_FORMULA_ERROR 20019
+#define NID_COUNT 20
+
+
+
+//----------------------------------------------------------------------------
+//
+//----------------------------------------------------------------------------
+
+class SwTbxInsertCtrl : public SfxToolBoxControl
+{
+ USHORT nLastSlotId;
+
+ virtual void Select( BOOL bMod1 = FALSE );
+
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SwTbxInsertCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SwTbxInsertCtrl();
+
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+ virtual void StateChanged( USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState );
+
+};
+
+//----------------------------------------------------------------------------
+//
+//----------------------------------------------------------------------------
+
+class SwTbxAutoTextCtrl : public SfxToolBoxControl
+{
+ PopupMenu* pPopup;
+ SwView* pView;
+
+
+ void DelPopup();
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SwTbxAutoTextCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SwTbxAutoTextCtrl();
+
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+ virtual void StateChanged( USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState );
+
+ DECL_LINK(PopupHdl, PopupMenu*);
+};
+
+
+//----------------------------------------------------------------------------
+//
+//----------------------------------------------------------------------------
+
+class SwScrollNaviValueSet : public ValueSet
+{
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+
+ public:
+ SwScrollNaviValueSet(Window* pParent, WinBits nWinStyle ) :
+ ValueSet(pParent, nWinStyle ) {}
+};
+
+class SwScrollNaviPopup : public SfxPopupWindow
+{
+ SwScrollNaviValueSet aVSet;
+ ImageList aIList;
+ const ResId& rResId;
+
+ String sQuickHelp[2 * NID_COUNT];
+
+ USHORT nFwdId;
+ USHORT nBackId;
+
+ protected:
+ DECL_LINK(SelectHdl, ValueSet*);
+
+ public:
+ SwScrollNaviPopup( USHORT nId, const ResId &rId, SfxBindings & );
+ ~SwScrollNaviPopup();
+
+ static String GetQuickHelpText(BOOL bNext);
+ virtual void PopupModeEnd();
+ virtual SfxPopupWindow* Clone() const;
+};
+
+//----------------------------------------------------------------------------
+//
+//----------------------------------------------------------------------------
+
+class SwNaviImageButton : public ImageButton
+{
+ SwScrollNaviPopup* pPopup;
+ Image aImage;
+ String sQuickText;
+
+ protected:
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ public:
+ SwNaviImageButton(Window* pParent);
+};
+
+//----------------------------------------------------------------------------
+// Die ImageButtons muessen sich bei Bedarf den HelpText selbst setzen
+//----------------------------------------------------------------------------
+
+class SwHlpImageButton : public ImageButton
+{
+ BOOL bUp;
+ public:
+ SwHlpImageButton(Window* pParent, const ResId& rResId, BOOL bUpBtn) :
+ ImageButton(pParent, rResId), bUp(bUpBtn){}
+
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+
+};
+#endif
+
+
+
diff --git a/sw/source/ui/inc/wrap.hxx b/sw/source/ui/inc/wrap.hxx
new file mode 100644
index 000000000000..3a9cc0f55f95
--- /dev/null
+++ b/sw/source/ui/inc/wrap.hxx
@@ -0,0 +1,185 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrap.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _WRAP_HXX
+#define _WRAP_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+class Window;
+class SfxItemSet;
+class SwWrtShell;
+
+class SwWrapDlg : public SfxSingleTabDialog
+{
+ SwWrtShell* pWrtShell;
+
+public:
+ SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, BOOL bDrawMode);
+ ~SwWrapDlg();
+
+ inline SwWrtShell* GetWrtShell() { return pWrtShell; }
+};
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Umlauf-TabPage
+ --------------------------------------------------------------------*/
+
+class SwWrapTabPage: public SfxTabPage
+{
+ // WRAPPING
+ ImageRadioButton aNoWrapRB;
+ ImageRadioButton aWrapLeftRB;
+ ImageRadioButton aWrapRightRB;
+ ImageRadioButton aWrapParallelRB;
+ ImageRadioButton aWrapThroughRB;
+ ImageRadioButton aIdealWrapRB;
+ GroupBox aWrapBoxC;
+
+ CheckBox aWrapAnchorOnlyCB;
+ CheckBox aWrapTransparentCB;
+ CheckBox aWrapOutlineCB;
+ CheckBox aWrapOutsideCB;
+ GroupBox aOptionsGB;
+
+ // MARGIN
+ FixedText aLeftMarginFT;
+ MetricField aLeftMarginED;
+ FixedText aRightMarginFT;
+ MetricField aRightMarginED;
+ FixedText aTopMarginFT;
+ MetricField aTopMarginED;
+ FixedText aBottomMarginFT;
+ MetricField aBottomMarginED;
+ GroupBox aMarginGB;
+
+ ImageList aWrapIL;
+
+ USHORT nOldLeftMargin;
+ USHORT nOldRightMargin;
+ USHORT nOldUpperMargin;
+ USHORT nOldLowerMargin;
+
+ USHORT nAnchorId;
+ USHORT nHtmlMode;
+
+ Size aFrmSize;
+ SwWrtShell* pWrtSh;
+
+ BOOL bFormat;
+ BOOL bNew;
+ BOOL bHtmlMode;
+ BOOL bDrawMode;
+ BOOL bContourImage;
+
+ SwWrapTabPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwWrapTabPage();
+
+ void EnableModes(const SfxItemSet& rSet);
+ virtual void ActivatePage(const SfxItemSet& rSet);
+ virtual int DeactivatePage(SfxItemSet *pSet);
+
+ DECL_LINK( RangeModifyHdl, MetricField * );
+ DECL_LINK( WrapTypeHdl, ImageRadioButton * );
+ DECL_LINK( ContourHdl, CheckBox * );
+
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+
+ static USHORT* GetRanges();
+ inline void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; }
+ inline void SetFormatUsed(BOOL bFmt, BOOL bDrw) { bFormat = bFmt;
+ bDrawMode = bDrw; }
+ inline void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; }
+};
+
+#endif
+
+
diff --git a/sw/source/ui/inc/wrtsh.hxx b/sw/source/ui/inc/wrtsh.hxx
new file mode 100644
index 000000000000..410a6a8ef14f
--- /dev/null
+++ b/sw/source/ui/inc/wrtsh.hxx
@@ -0,0 +1,611 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _WRTSH_HXX
+#define _WRTSH_HXX
+
+#ifndef _FESH_HXX
+#include <fesh.hxx>
+#endif
+#ifndef _SORTOPT_HXX
+#include <sortopt.hxx>
+#endif
+#ifndef _SWURL_HXX
+#include <swurl.hxx>
+#endif
+
+class Window;
+class SbxArray;
+class SwDoc;
+class SvInPlaceObjectRef;
+class SvEmbeddedObjectRef;
+class SpellCheck;
+class SwViewOption;
+class SwFlyFrmAttrMgr;
+class SwField;
+class SwTOXBase;
+class SdrView;
+class SwView;
+class SvGlobalName;
+class SwInputFieldList;
+class SwSection;
+class Timer;
+class SvxMacro;
+class SwFmtINetFmt;
+class SvxINetBookmark;
+class SvxAutoCorrect;
+class NaviContentBookmark;
+struct SwCallMouseEvent;
+class DropEvent;
+struct ChartSelectionInfo;
+
+#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLCHECKER1_HPP_
+#include <com/sun/star/linguistic/XSpellChecker1.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XHYPHENATOR_HPP_
+#include <com/sun/star/linguistic/XHyphenator.hpp>
+#endif
+
+class SwWrtShell: public SwFEShell
+{
+public:
+ typedef long (SwWrtShell::*SELECTFUNC)(const Point *, BOOL bProp );
+
+ SELECTFUNC fnDrag;
+ SELECTFUNC fnSetCrsr;
+ SELECTFUNC fnEndDrag;
+ SELECTFUNC fnKillSel;
+
+ // Alle Selektionen aufheben
+ long ResetSelect( const Point *, BOOL );
+
+ //setzt den Cursorstack nach dem Bewegen mit PageUp/-Down
+ //zurueck, falls ein Stack aufgebaut ist
+ inline void ResetCursorStack();
+
+ enum SelectionType
+ {
+ SEL_TXT = CNT_TXT, // Text, niemals auch Rahmen 0x0001
+ SEL_GRF = CNT_GRF, // Grafik 0x0002
+ SEL_OLE = CNT_OLE, // OLE 0x0010
+ SEL_FRM = 0x0020, // Rahmen, keine Inhaltsform
+ SEL_NUM = 0x0040, // NumListe
+ SEL_TBL = 0x0080, // Cursor steht in Tabelle
+ SEL_TBL_CELLS = 0x0100, // Tabellenzellen sind selektiert
+ SEL_DRW = 0x0200, // Zeichenobjekte (Rechteck, Kreis...)
+ SEL_DRW_TXT = 0x0400, // Draw-Textobjekte im Editmode
+ SEL_BEZ = 0x0800, // Bezierobjekte editieren
+ SEL_DRW_FORM = 0x1000 // Zeichenobjekte: DB-Forms
+ };
+ int GetSelectionType() const;
+
+ BOOL IsModePushed() const { return 0 != pModeStack; }
+ void PushMode();
+ void PopMode();
+
+ void SttSelect();
+ void EndSelect();
+ BOOL IsInSelect() const { return bInSelect; }
+ void SetInSelect(BOOL bSel = TRUE) { bInSelect = bSel; }
+ // Liegt eine Text- oder Rahmenselektion vor?
+ BOOL HasSelection() const { return IsSelection() || IsSelFrmMode() || IsObjSelected(); }
+ FASTBOOL Pop( BOOL bOldCrsr = TRUE );
+
+ void EnterStdMode();
+ BOOL IsStdMode() const { return !bExtMode && !bAddMode; }
+
+ void EnterExtMode();
+ void LeaveExtMode();
+ long ToggleExtMode();
+ BOOL IsExtMode() const { return bExtMode; }
+
+ void EnterAddMode();
+ void LeaveAddMode();
+ long ToggleAddMode();
+ BOOL IsAddMode() const { return bAddMode; }
+
+ void SetInsMode( BOOL bOn = TRUE );
+ void ToggleInsMode() { SetInsMode( !bIns ); }
+ BOOL IsInsMode() const { return bIns; }
+
+ void EnterSelFrmMode(const Point *pStartDrag = 0);
+ void LeaveSelFrmMode();
+ BOOL IsSelFrmMode() const { return bLayoutMode; }
+ // Selektion von Rahmen aufheben
+ void UnSelectFrm();
+
+ // Tabellenzellen selektieren fuer Bearbeiten von Formeln in der Ribbonbar
+ inline void SelTblCells( const Link &rLink, BOOL bMark = TRUE );
+ inline void EndSelTblCells();
+
+ //Wortweisen oder zeilenweisen Selektionsmodus verlassen. Wird
+ //in der Regel in MB-Up gerufen.
+ BOOL IsExtSel() const { return bSelWrd || bSelLn; }
+
+ // erfrage, ob der akt. fnDrag - Pointer auf BeginDrag gesetzt ist
+ // Wird fuer MouseMove gebraucht, um die Bugs 55592/55931 zu umgehen.
+ inline BOOL Is_FnDragEQBeginDrag() const;
+
+ //Basisabfragen
+ BOOL IsInWrd() { return IsInWord(); }
+ BOOL IsSttWrd() { return IsStartWord(); }
+ BOOL IsEndWrd();
+ BOOL IsSttOfPara() const { return IsSttPara(); }
+ BOOL IsEndOfPara() const { return IsEndPara(); }
+
+ //Word bzw. Satz selektieren.
+ BOOL SelNearestWrd();
+ BOOL SelWrd (const Point * = 0, BOOL bProp=FALSE );
+ BOOL SelSentence (const Point * = 0, BOOL bProp=FALSE );
+ void SelLine (const Point * = 0, BOOL bProp=FALSE );
+ long SelAll();
+
+ //Basiscursortravelling
+typedef FASTBOOL (SwWrtShell:: *FNSimpleMove)();
+ FASTBOOL SimpleMove( FNSimpleMove, FASTBOOL bSelect );
+
+ FASTBOOL Left ( FASTBOOL bSelect = FALSE, USHORT nCount = 1,
+ BOOL bBasicCall = FALSE );
+ FASTBOOL Right ( FASTBOOL bSelect = FALSE, USHORT nCount = 1,
+ BOOL bBasicCall = FALSE );
+ FASTBOOL Up ( FASTBOOL bSelect = FALSE, USHORT nCount = 1,
+ BOOL bBasicCall = FALSE );
+ FASTBOOL Down ( FASTBOOL bSelect = FALSE, USHORT nCount = 1,
+ BOOL bBasicCall = FALSE );
+ FASTBOOL NxtWrd ( FASTBOOL bSelect = FALSE ) { return SimpleMove( &SwWrtShell::_NxtWrd, bSelect ); }
+ FASTBOOL PrvWrd ( FASTBOOL bSelect = FALSE ) { return SimpleMove( &SwWrtShell::_PrvWrd, bSelect ); }
+ FASTBOOL LeftMargin ( FASTBOOL bSelect = FALSE, FASTBOOL bBasicCall = FALSE );
+ FASTBOOL RightMargin( FASTBOOL bSelect = FALSE, FASTBOOL bBasicCall = FALSE );
+ FASTBOOL SttDoc ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndDoc ( FASTBOOL bSelect = FALSE );
+
+ FASTBOOL SttNxtPg ( FASTBOOL bSelect = FALSE );
+ FASTBOOL SttPrvPg ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndNxtPg ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndPrvPg ( FASTBOOL bSelect = FALSE );
+ FASTBOOL SttPg ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndPg ( FASTBOOL bSelect = FALSE );
+ FASTBOOL SttPara ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndPara ( FASTBOOL bSelect = FALSE );
+ FASTBOOL FwdPara ( FASTBOOL bSelect = FALSE )
+ { return SimpleMove( &SwWrtShell::_FwdPara, bSelect ); }
+ FASTBOOL BwdPara ( FASTBOOL bSelect = FALSE )
+ { return SimpleMove( &SwWrtShell::_BwdPara, bSelect ); }
+ FASTBOOL FwdSentence( FASTBOOL bSelect = FALSE )
+ { return SimpleMove( &SwWrtShell::_FwdSentence, bSelect ); }
+ FASTBOOL BwdSentence( FASTBOOL bSelect = FALSE )
+ { return SimpleMove( &SwWrtShell::_BwdSentence, bSelect ); }
+
+ FASTBOOL SelectTableRow();
+ FASTBOOL SelectTableCol();
+ FASTBOOL SelectTxtAttr( USHORT nWhich, const SwTxtAttr* pAttr = 0 );
+
+ // Spaltenweise Spruenge
+ FASTBOOL StartOfColumn ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndOfColumn ( FASTBOOL bSelect = FALSE );
+ FASTBOOL StartOfNextColumn ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndOfNextColumn ( FASTBOOL bSelect = FALSE );
+ FASTBOOL StartOfPrevColumn ( FASTBOOL bSelect = FALSE );
+ FASTBOOL EndOfPrevColumn ( FASTBOOL bSelect = FALSE );
+
+ // setze den Cursor auf die Seite "nPage" an den Anfang
+ // zusaetzlich zu der gleichnamigen Implementierung in crsrsh.hxx
+ // werden hier alle bestehenden Selektionen vor dem Setzen des
+ // Cursors aufgehoben
+ BOOL GotoPage(USHORT nPage, BOOL bRecord = TRUE);
+
+ //setzen des Cursors; merken der alten Position fuer Zurueckblaettern.
+ DECL_LINK( ExecFlyMac, void * );
+
+ BOOL PageCrsr(SwTwips lOffset, BOOL bSelect);
+
+ // Felder Update
+ void UpdateInputFlds( SwInputFieldList* pLst = 0, BOOL bOnlyInSel = FALSE );
+
+ void NoEdit(BOOL bHideCrsr = TRUE);
+ void Edit();
+ BOOL IsNoEdit() const { return bNoEdit; }
+
+ // Loeschen
+ long DelToEndOfLine();
+ long DelToStartOfLine();
+ long DelLine();
+ long DelLeft();
+
+ // loescht auch Rahmen bzw. setzt den Cursor in den Rahmen,
+ // wenn bDelFrm == FALSE ist
+ long DelRight( BOOL bDelFrm = FALSE );
+ long DelToEndOfPara();
+ long DelToStartOfPara();
+ long DelToEndOfSentence();
+ long DelToStartOfSentence();
+ long DelNxtWord();
+ long DelPrvWord();
+
+ // Prueft, ob eine Wortselektion vorliegt.
+ // Gemaess den Regeln fuer intelligentes Cut / Paste
+ // werden umgebende Spaces rausgeschnitten.
+ // Liefert Art der Wortselektion zurueck (siehe enum)
+ enum {
+ NO_WORD = 0,
+ WORD_SPACE_BEFORE = 1,
+ WORD_SPACE_AFTER = 2,
+ WORD_NO_SPACE = 3
+ };
+ int IntelligentCut(int nSelectionType, BOOL bCut = TRUE);
+
+ // Editieren
+ void Insert(SwField &);
+ void Insert(const String &);
+ void InsertByWord( const String & );
+ void InsertPageBreak(const String *pPageDesc = 0, USHORT nPgNum = 0 );
+ void InsertLineBreak();
+ void InsertColumnBreak();
+ void InsertFootnote(const String &, BOOL bEndNote = FALSE, BOOL bEdit = TRUE );
+ void SplitNode( BOOL bAutoFormat = FALSE, BOOL bCheckTableStart = TRUE );
+ BOOL CanInsert();
+
+ // Verzeichnisse
+ void InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0);
+ BOOL UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0);
+
+ // Numerierung und Bullets
+ void NumOn();
+ void BulletOn();
+
+ // Graphic
+ void Insert( const String &rPath, const String &rFilter,
+ const Graphic &, SwFlyFrmAttrMgr * = 0,
+ BOOL bRule = FALSE );
+ //OLE
+ void Insert ( SvInPlaceObjectRef *pObj, // != 0 fuer Clipboard
+ SvGlobalName *pName = 0, // != 0 entspr. Object erzeugen.
+ BOOL bActivate = TRUE,
+ USHORT nSlotId = 0); // SlotId fuer Dialog
+ BOOL InsertOle ( SvInPlaceObjectRef aRef ); // In die Core einfuegen.
+ void LaunchOLEObj( long nVerb = 0 ); // Server starten
+ BOOL FinishOLEObj(); // Server wird beendet
+ BOOL IsOLEObj() const { return GetCntType() == CNT_OLE;}
+ virtual void CalcAndSetScale( SvEmbeddedObjectRef xObj,
+ const SwRect *pFlyPrtRect = 0,
+ const SwRect *pFlyFrmRect = 0 );
+ virtual void ConnectObj( SvInPlaceObjectRef xIPObj, const SwRect &rPrt,
+ const SwRect &rFrm );
+ DECL_LINK( ChartSelectionHdl, ChartSelectionInfo * );
+
+ // Vorlagen und Formate
+
+ // enum gibt an, was geschehen soll, wenn das Style nicht gefunden wurde
+ enum GetStyle { GETSTYLE_NOCREATE, // keins anlegen
+ GETSTYLE_CREATESOME, // falls auf PoolId mapt anlegen
+ GETSTYLE_CREATEANY }; // ggfs Standard returnen
+
+ SwTxtFmtColl* GetParaStyle(const String &rCollName,
+ GetStyle eCreate = GETSTYLE_NOCREATE);
+ SwCharFmt* GetCharStyle(const String &rFmtName,
+ GetStyle eCreate = GETSTYLE_NOCREATE);
+ SwFrmFmt* GetTblStyle(const String &rFmtName);
+
+ void SetPageStyle(const String &rCollName);
+
+ String GetCurPageStyle( const BOOL bCalcFrm = TRUE ) const;
+
+ // Aktuelle Vorlage anhand der geltenden Attribute aendern
+ void QuickUpdateStyle();
+
+ enum DoType { UNDO, REDO, REPEAT };
+
+ void Do( DoType eDoType );
+ String GetDoString( DoType eDoType ) const;
+ String GetRepeatString() const;
+
+ //Suchen oder Ersetzen
+ ULONG SearchPattern(const SearchParam& rParam,
+ SwDocPositions eStart, SwDocPositions eEnde,
+ FindRanges eFlags = FND_IN_BODY,
+ int bReplace = FALSE );
+
+ ULONG SearchTempl (const String &rTempl,
+ SwDocPositions eStart, SwDocPositions eEnde,
+ FindRanges eFlags = FND_IN_BODY,
+ const String* pReplTempl = 0 );
+
+ ULONG SearchAttr (const SfxItemSet& rFindSet,
+ BOOL bNoColls,
+ SwDocPositions eStart,SwDocPositions eEnde,
+ FindRanges eFlags = FND_IN_BODY,
+ const SearchParam* pParam = 0,
+ const SfxItemSet* pReplaceSet = 0);
+
+ void AutoCorrect( SvxAutoCorrect& rACorr, sal_Unicode cChar = ' ' );
+
+ // Aktion vor Cursorbewegung
+ // Hebt gfs. Selektionen auf, triggert Timer und GCAttr()
+ void MoveCrsr( FASTBOOL bWithSelect = FALSE );
+
+ // Eingabefelder updaten
+ BOOL StartInputFldDlg(SwField*, BOOL bNextButton);
+
+ //"Handler" fuer Anederungen an der DrawView - fuer Controls.
+ virtual void DrawSelChanged( SdrView * );
+
+ // springe zum Bookmark und setze die "Selections-Flags" wieder richtig
+ FASTBOOL GotoBookmark( USHORT nPos );
+ FASTBOOL GotoBookmark( USHORT nPos, BOOL bSelect, BOOL bStart );
+ FASTBOOL GotoBookmark( const String& rName );
+ FASTBOOL GoNextBookmark(); // TRUE, wenn's noch eine gab
+ FASTBOOL GoPrevBookmark();
+
+ // Zugehoerige SwView ermitteln
+ const SwView& GetView() const { return rView; }
+ SwView& GetView() { return rView; }
+
+ //Weil es sonst keiner macht, gibt es hier eine ExecMacro()
+ void ExecMacro( const SvxMacro& rMacro, String* pRet = 0, SbxArray* pArgs = 0 );
+ // rufe ins dunkle Basic/JavaScript
+ USHORT CallEvent( USHORT nEvent, const SwCallMouseEvent& rCallEvent,
+ BOOL bCheckPtr = FALSE, SbxArray* pArgs = 0,
+ const Link* pCallBack = 0 );
+
+ void StartBasicAction();
+ void EndBasicAction();
+ void SetBasicActionCount(USHORT nSet);
+ USHORT EndAllBasicActions();
+
+ // ein Klick aus das angegebene Feld. Der Cursor steht auf diesem.
+ // Fuehre die vor definierten Aktionen aus.
+ void ClickToField( const SwField& rFld, USHORT nFilter = URLLOAD_NOFILTER );
+ void ClickToINetAttr( const SwFmtINetFmt& rItem, USHORT nFilter = URLLOAD_NOFILTER );
+ BOOL ClickToINetGrf( const Point& rDocPt, USHORT nFilter = URLLOAD_NOFILTER );
+ inline BOOL IsInClickToEdit() const ;
+
+ // fall ein URL-Button selektiert ist, dessen URL returnen, ansonsten
+ // einen LeerString
+ BOOL GetURLFromButton( String& rURL, String& rDescr ) const;
+ BOOL SetURLToButton( const String& rURL, const String& rDescr );
+
+ void NavigatorPaste( const NaviContentBookmark& rBkmk, const DropEvent* pEvt );
+
+ // die Core erzeugt eine Selektion, das SttSelect muss gerufen werden
+ virtual void NewCoreSelection();
+
+ // autom. Update von Vorlagen
+ void AutoUpdateFrame(SwFrmFmt* pFmt, const SfxItemSet& rStyleSet);
+ void AutoUpdatePara(SwTxtFmtColl* pColl, const SfxItemSet& rStyleSet);
+
+ // Link fuers einfuegen von Bereichen uebers Drag&Drop/Clipboard
+ DECL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSection* );
+
+
+ //ctoren, der erstere ist eine Art kontrollierter copy ctor fuer weitere
+ //Sichten auf ein Dokument
+ SwWrtShell( SwWrtShell *, Window *pWin, SwView &rShell);
+ SwWrtShell( SwDoc *pDoc,
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellChecker1 >&,
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator >&,
+ Window *pWin, SwView &rShell,
+ SwRootFrm* pMaster = 0, const SwViewOption *pViewOpt = 0);
+ ~SwWrtShell();
+
+private:
+
+ void OpenMark();
+ void CloseMark( BOOL bOkFlag );
+
+ String GetWrdDelim();
+ String GetSDelim();
+ String GetBothDelim();
+
+ struct ModeStack
+ {
+ ModeStack *pNext;
+ BOOL bAdd,
+ bExt,
+ bIns;
+ ModeStack(ModeStack *pNextMode, BOOL _bIns, BOOL _bExt, BOOL _bAdd):
+ pNext(pNextMode),
+ bIns(_bIns),
+ bExt(_bExt),
+ bAdd(_bAdd) {}
+ } *pModeStack;
+
+ // Cursor bei PageUp / -Down mitnehmen
+ enum PageMove
+ {
+ MV_NO,
+ MV_PAGE_UP,
+ MV_PAGE_DOWN
+ } ePageMove;
+
+ struct CrsrStack
+ {
+ Point aDocPos;
+ CrsrStack *pNext;
+ BOOL bValidCurPos : 1;
+ BOOL bIsFrmSel : 1;
+ SwTwips lOffset;
+
+ CrsrStack( BOOL bValid, BOOL bFrmSel, const Point &rDocPos,
+ SwTwips lOff, CrsrStack *pN )
+ : aDocPos(rDocPos), lOffset(lOff), pNext(pN)
+ {
+ bValidCurPos = bValid;
+ bIsFrmSel = bFrmSel;
+ }
+
+ } *pCrsrStack;
+
+ SwView &rView;
+
+ Point aDest;
+ BOOL bDestOnStack;
+ BOOL HasCrsrStack() const { return 0 != pCrsrStack; }
+ BOOL PushCrsr(SwTwips lOffset, BOOL bSelect);
+ BOOL PopCrsr(BOOL bUpdate, BOOL bSelect = FALSE);
+
+ // ENDE Cursor bei PageUp / -Down mitnehmen
+ FASTBOOL _SttWrd();
+ FASTBOOL _EndWrd();
+ FASTBOOL _NxtWrd();
+ FASTBOOL _PrvWrd();
+ FASTBOOL _FwdSentence();
+ FASTBOOL _BwdSentence();
+ FASTBOOL _FwdPara();
+ FASTBOOL _BwdPara();
+
+ // Selektionen
+ BOOL bIns :1;
+ BOOL bInSelect :1;
+ BOOL bExtMode :1;
+ BOOL bAddMode :1;
+ BOOL bLayoutMode :1;
+ BOOL bNoEdit :1;
+ BOOL bCopy :1;
+ BOOL bSelWrd :1;
+ BOOL bSelLn :1;
+ BOOL bIsInClickToEdit:1;
+ BOOL bClearMark :1; // Selektion fuer ChartAutoPilot nicht loeschen
+
+ Point aStart;
+ Link aSelTblLink;
+
+ SELECTFUNC fnLeaveSelect;
+
+ //setzt den Cursorstack nach dem Bewegen mit PageUp/-Down zurueck.
+ void _ResetCursorStack();
+
+ void SttDragDrop(Timer *);
+ long SetCrsr(const Point *, BOOL bProp=FALSE );
+ long SetCrsrKillSel(const Point *, BOOL bProp=FALSE );
+
+ long StdSelect(const Point *, BOOL bProp=FALSE );
+ long BeginDrag(const Point *, BOOL bProp=FALSE );
+ long Drag(const Point *, BOOL bProp=FALSE );
+ long EndDrag(const Point *, BOOL bProp=FALSE );
+
+ long ExtSelWrd(const Point *, BOOL bProp=FALSE );
+ long ExtSelLn(const Point *, BOOL bProp=FALSE );
+
+ //Verschieben von Text aus Drag and Drop; Point ist
+ //Destination fuer alle Selektionen.
+ long MoveText(const Point *, BOOL bProp=FALSE );
+
+ long BeginFrmDrag(const Point *, BOOL bProp=FALSE );
+
+ //nach SSize/Move eines Frames Update; Point ist Destination.
+ long UpdateLayoutFrm(const Point *, BOOL bProp=FALSE );
+
+ long SttLeaveSelect(const Point *, BOOL bProp=FALSE );
+ long AddLeaveSelect(const Point *, BOOL bProp=FALSE );
+ long Ignore(const Point *, BOOL bProp=FALSE );
+
+ void LeaveExtSel() { bSelWrd = bSelLn = FALSE;}
+ BOOL _CanInsert();
+
+ BOOL GoStart(BOOL KeepArea = FALSE, BOOL * = 0,
+ BOOL bSelect = FALSE, BOOL bDontMoveRegion = FALSE);
+ BOOL GoEnd(BOOL KeepArea = FALSE, BOOL * = 0);
+
+ enum BookMarkMove
+ {
+ BOOKMARK_INDEX,
+ BOOKMARK_NEXT,
+ BOOKMARK_PREV,
+ BOOKMARK_LAST_LAST_ENTRY
+ };
+
+ FASTBOOL MoveBookMark( BookMarkMove eFuncId,
+ USHORT nPos = 0,
+ BOOL bStart = TRUE );
+};
+
+inline void SwWrtShell::ResetCursorStack()
+{
+ if ( HasCrsrStack() )
+ _ResetCursorStack();
+}
+
+inline void SwWrtShell::SelTblCells(const Link &rLink, BOOL bMark )
+{
+ SetSelTblCells( TRUE );
+ bClearMark = bMark;
+ aSelTblLink = rLink;
+}
+inline void SwWrtShell::EndSelTblCells()
+{
+ SetSelTblCells( FALSE );
+ bClearMark = TRUE;
+}
+
+inline BOOL SwWrtShell::IsInClickToEdit() const { return bIsInClickToEdit; }
+
+inline BOOL SwWrtShell::Is_FnDragEQBeginDrag() const
+{
+#ifdef GCC
+ SELECTFUNC fnTmp = &SwWrtShell::BeginDrag;
+ return fnDrag == fnTmp;
+#else
+ return fnDrag == &SwWrtShell::BeginDrag;
+#endif
+}
+
+#endif
diff --git a/sw/source/ui/inc/wtabsh.hxx b/sw/source/ui/inc/wtabsh.hxx
new file mode 100644
index 000000000000..8fda4bac4a22
--- /dev/null
+++ b/sw/source/ui/inc/wtabsh.hxx
@@ -0,0 +1,76 @@
+/*************************************************************************
+ *
+ * $RCSfile: wtabsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWWTABSH_HXX
+#define _SWWTABSH_HXX
+
+#include "tabsh.hxx"
+
+class SwWebTableShell: public SwTableShell
+{
+public:
+ SFX_DECL_INTERFACE(SW_WEBTABSHELL);
+ TYPEINFO();
+
+ virtual ~SwWebTableShell();
+ SwWebTableShell(SwView &rView);
+};
+
+#endif
diff --git a/sw/source/ui/inc/wtextsh.hxx b/sw/source/ui/inc/wtextsh.hxx
new file mode 100644
index 000000000000..71c82ebdc9ab
--- /dev/null
+++ b/sw/source/ui/inc/wtextsh.hxx
@@ -0,0 +1,82 @@
+/*************************************************************************
+ *
+ * $RCSfile: wtextsh.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SWWTEXTSH_HXX
+#define _SWWTEXTSH_HXX
+
+#include "textsh.hxx"
+
+
+class SwWebTextShell: public SwTextShell
+{
+
+public:
+ SFX_DECL_INTERFACE(SW_WEBTEXTSHELL);
+ TYPEINFO();
+
+ SwWebTextShell(SwView &rView);
+ virtual ~SwWebTextShell();
+};
+
+#endif
+
+
+
diff --git a/sw/source/ui/inc/wview.hxx b/sw/source/ui/inc/wview.hxx
new file mode 100644
index 000000000000..56c2a1e27a72
--- /dev/null
+++ b/sw/source/ui/inc/wview.hxx
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: wview.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWWVIEW_HXX
+#define _SWWVIEW_HXX
+
+#include "view.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+class SwWebView: public SwView
+{
+protected:
+ virtual void SelectShell();
+public:
+
+ SFX_DECL_VIEWFACTORY(SwWebView);
+ SFX_DECL_INTERFACE(SW_WEBVIEWSHELL);
+ TYPEINFO();
+
+ SwWebView(SfxViewFrame* pFrame, SfxViewShell*);
+ ~SwWebView();
+};
+
+#endif
diff --git a/sw/source/ui/inc/zoomctrl.hxx b/sw/source/ui/inc/zoomctrl.hxx
new file mode 100644
index 000000000000..422baa871b6f
--- /dev/null
+++ b/sw/source/ui/inc/zoomctrl.hxx
@@ -0,0 +1,88 @@
+/*************************************************************************
+ *
+ * $RCSfile: zoomctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _ZOOMCTRL_HXX
+#define _ZOOMCTRL_HXX
+
+#ifndef _SVX_ZOOMCTRL_HXX //autogen
+#include <svx/zoomctrl.hxx>
+#endif
+
+class SwZoomControl : public SvxZoomStatusBarControl
+{
+private:
+ String sPreviewZoom;
+public:
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void Paint( const UserDrawEvent& rEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SwZoomControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+ ~SwZoomControl();
+
+};
+
+
+#endif
+
+
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
new file mode 100644
index 000000000000..f5d3074e5434
--- /dev/null
+++ b/sw/source/ui/index/cnttab.cxx
@@ -0,0 +1,4853 @@
+/*************************************************************************
+ *
+ * $RCSfile: cnttab.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <rsc/rscsfx.hxx>
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_HELP_HXX
+#include <vcl/help.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX
+#include <sfx2/inimgr.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include <sfx2/iodlg.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+#ifndef _SVX_SIMPTABL_HXX //autogen wg. SvxSimpleTable
+#include <svx/simptabl.hxx>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XDOCUMENTINDEXESSUPPLIER_HPP_
+#include <com/sun/star/text/XDocumentIndexesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XDOCUMENTINDEX_HPP_
+#include <com/sun/star/text/XDocumentIndex.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTSECTIONSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextSectionsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_STYLE_BREAKTYPE_HPP_
+#include <com/sun/star/style/BreakType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTFIELDSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextFieldsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XDEPENDENTTEXTFIELD_HPP_
+#include <com/sun/star/text/XDependentTextField.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XPARAGRAPHCURSOR_HPP_
+#include <com/sun/star/text/XParagraphCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XDOCUMENTINDEX_HPP_
+#include <com/sun/star/text/XDocumentIndex.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_CHAPTERFORMAT_HPP_
+#include <com/sun/star/text/ChapterFormat.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTSECTION_HPP_
+#include <com/sun/star/text/XTextSection.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_CONTROLCHARACTER_HPP_
+#include <com/sun/star/text/ControlCharacter.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUES_HPP_
+#include <com/sun/star/beans/PropertyValues.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_TEXTCONTENTANCHORTYPE_HPP_
+#include <com/sun/star/text/TextContentAnchorType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCOMMANDENVIRONMENT_HPP_
+#include <com/sun/star/ucb/XCommandEnvironment.hpp>
+#endif
+#ifndef _UCBHELPER_CONTENT_HXX
+#include <ucbhelper/content.hxx>
+#endif
+
+#ifndef _COLUMN_HXX //autogen
+#include <column.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _AUTHFLD_HXX
+#include <authfld.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _OUTLINE_HXX
+#include <outline.hxx>
+#endif
+#ifndef _CNTTAB_HXX
+#include <cnttab.hxx>
+#endif
+#ifndef _FORMEDT_HXX
+#include <formedt.hxx>
+#endif
+#ifndef _TOXMGR_HXX
+#include <toxmgr.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _UIITEMS_HXX //autogen
+#include <uiitems.hxx>
+#endif
+#ifndef _FMTCOL_HXX //autogen
+#include <fmtcol.hxx>
+#endif
+#ifndef _FLDBAS_HXX //autogen wg. SwFieldType
+#include <fldbas.hxx>
+#endif
+#ifndef _EXPFLD_HXX //autogen wg. SwSetExpFieldType
+#include <expfld.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX
+#include <unoprnms.hxx>
+#endif
+#ifndef _UNOTOOLS_HXX
+#include <unotools.hxx>
+#endif
+#ifndef _UNOTXDOC_HXX
+#include <unotxdoc.hxx>
+#endif
+#ifndef _SWDOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _MODOPT_HXX
+#include <modcfg.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _INDEX_HRC
+#include <index.hrc>
+#endif
+#ifndef _CNTTAB_HRC
+#include <cnttab.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::text;
+using namespace ::com::sun::star::beans;
+using namespace ::com::sun::star::container;
+using namespace ::com::sun::star::ucb;
+using namespace ::rtl;
+
+#define C2S(cChar) UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(cChar))
+#define C2U(cChar) OUString::createFromAscii(cChar)
+
+#ifndef _SVX_DBBROWSE_HXX
+#include <svx/dbbrowse.hxx>
+#endif
+
+static const sal_Unicode aDeliStart = '['; //fuer die form
+static const sal_Unicode aDeliEnd = ']'; //fuer die form
+
+#define POS_GRF 0
+#define POS_OLE 1
+#define POS_TABLE 2
+#define POS_FRAME 3
+
+#define IDX_FILE_EXTENSION String::CreateFromAscii( \
+ RTL_CONSTASCII_STRINGPARAM( "*.sdi" ))
+#define INDEX_SECTION_NAME String::CreateFromAscii( \
+ RTL_CONSTASCII_STRINGPARAM( "IndexSection_" ))
+
+#define TOX_PAGE_SELECT 1
+#define TOX_PAGE_ENTRY 2
+#define TOX_PAGE_STYLES 3
+
+//-----------------------------------------------------------------------------
+struct SwIndexSections_Impl
+{
+ uno::Reference< text::XTextSection > xContainerSection;
+ uno::Reference< text::XDocumentIndex > xDocumentIndex;
+};
+
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+String lcl_CreateAutoMarkFileDlg( Window* pParent, const String& rURL,
+ const String& rFileString, sal_Bool bOpen )
+{
+ String sRet;
+ SfxFileDialog* pFileDlg = new SfxFileDialog( pParent,
+ bOpen ? WB_OPEN | WB_3DLOOK
+ : WB_SAVEAS | WB_3DLOOK );
+ pFileDlg->DisableSaveLastDirectory();
+ pFileDlg->SetHelpId(HID_FILEDLG_SRCVIEW);
+ {
+ String sCurFltr( IDX_FILE_EXTENSION );
+ pFileDlg->AddFilter( rFileString, sCurFltr );
+ pFileDlg->SetCurFilter( sCurFltr );
+ }
+
+ String& rLastSaveDir = (String&)SFX_APP()->GetLastSaveDirectory();
+ String sSaveDir = rLastSaveDir;
+
+ if( rURL.Len() )
+ pFileDlg->SetPath( rURL );
+ else
+ pFileDlg->SetPath( SFX_INIMANAGER()->Get(SFX_KEY_USERCONFIG_PATH) );
+
+ if( RET_OK == pFileDlg->Execute())
+ sRet = pFileDlg->GetPath();
+
+ delete pFileDlg;
+ rLastSaveDir = sSaveDir;
+
+ return sRet;
+}
+/* -----------------------------19.01.00 11:09--------------------------------
+
+ ---------------------------------------------------------------------------*/
+struct AutoMarkEntry
+{
+ String sSearch;
+ String sAlternative;
+ String sPrimKey;
+ String sSecKey;
+ String sComment;
+ sal_Bool bCase;
+ sal_Bool bWord;
+
+ AutoMarkEntry() :
+ bCase(sal_False),
+ bWord(sal_False){}
+};
+typedef AutoMarkEntry* AutoMarkEntryPtr;
+SV_DECL_PTRARR_DEL(AutoMarkEntryArr, AutoMarkEntryPtr, 0, 4);
+SV_IMPL_PTRARR(AutoMarkEntryArr, AutoMarkEntryPtr);
+
+class SwEntryBrowseBox : public DbBrowseBox
+{
+ Edit aCellEdit;
+ DbCheckBoxCtrl aCellCheckBox;
+
+ String sSearch;
+ String sAlternative;
+ String sPrimKey;
+ String sSecKey;
+ String sComment;
+ String sCaseSensitive;
+ String sWordOnly;
+ String sYes;
+ String sNo;
+
+ AutoMarkEntryArr aEntryArr;
+
+ DbCellControllerRef xController;
+ DbCellControllerRef xCheckController;
+
+ long nCurrentRow;
+ sal_Bool bModified;
+
+ const String& GetCellText( long nRow, long nColumn ) const;
+ void SetModified() {bModified = sal_True;}
+
+protected:
+ virtual sal_Bool SeekRow( long nRow );
+// virtual void PaintField( OutputDevice& rDev, const awt::Rectangle& rRect,
+// sal_uInt16 nColumnId ) const;
+ virtual void PaintCell(OutputDevice& rDev, const Rectangle& rRect, sal_uInt16 nColId) const;
+ virtual void InitController(DbCellControllerRef& rController, long nRow, sal_uInt16 nCol);
+ virtual DbCellController* GetController(long nRow, sal_uInt16 nCol);
+ virtual sal_Bool SaveModified();
+
+public:
+ SwEntryBrowseBox(Window* pParent, const ResId& rId,
+ BrowserMode nMode = 0 );
+ void ReadEntries(SvStream& rInStr);
+ void WriteEntries(SvStream& rOutStr);
+
+ sal_Bool IsModified()const;
+};
+
+class SwAutoMarkDlg_Impl : public ModalDialog
+{
+ OKButton aOKPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+
+ SwEntryBrowseBox aEntriesBB;
+ GroupBox aEntriesGB;
+
+ String sAutoMarkURL;
+ const String sAutoMarkType;
+
+ sal_Bool bCreateMode;
+
+ DECL_LINK(OkHdl, OKButton*);
+public:
+ SwAutoMarkDlg_Impl(Window* pParent, const String& rAutoMarkURL,
+ const String& rAutoMarkType, sal_Bool bCreate);
+ ~SwAutoMarkDlg_Impl();
+
+};
+/* -----------------04.11.99 11:02-------------------
+
+ --------------------------------------------------*/
+sal_uInt16 CurTOXType::GetFlatIndex() const
+{
+ sal_uInt16 nRet = eType;
+ if(eType == TOX_USER && nIndex)
+ {
+ nRet = TOX_AUTHORITIES + nIndex;
+ }
+ return nRet;
+}
+/* -----------------29.11.99 09:04-------------------
+
+ --------------------------------------------------*/
+#if 0
+IdxExampleResource::IdxExampleResource(const ResId& rResId) :
+ Resource(rResId),
+ aTextArray(ResId(ARR_TEXT))
+{
+ FreeResource();
+}
+#endif
+/*************************************************************************
+
+*************************************************************************/
+#define EDIT_MINWIDTH 15
+
+/* -----------------14.06.99 12:12-------------------
+
+ --------------------------------------------------*/
+SwMultiTOXTabDialog::SwMultiTOXTabDialog(Window* pParent, const SfxItemSet& rSet,
+ SwWrtShell &rShell,
+ const SwTOXBase* pCurTOX,
+ sal_uInt16 nToxType, sal_Bool bGlobal) :
+ SfxTabDialog( pParent, SW_RES(DLG_MULTI_TOX), &rSet),
+ aExampleContainerWIN(this, ResId(WIN_EXAMPLE)),
+ aExampleWIN( &aExampleContainerWIN, 0 ),
+ aShowExampleCB( this, ResId(CB_SHOWEXAMPLE)),
+ sUserDefinedIndex(ResId(ST_USERDEFINEDINDEX)),
+ pMgr( new SwTOXMgr( &rShell ) ),
+ rSh(rShell),
+ nInitialTOXType(nToxType),
+ bEditTOX(sal_False),
+ pExampleFrame(0),
+ bExampleCreated(sal_False),
+ bGlobalFlag(bGlobal)
+{
+ FreeResource();
+ aExampleWIN.SetPosSizePixel(aExampleContainerWIN.GetPosPixel(),
+ aExampleContainerWIN.GetSizePixel());
+ eCurrentTOXType.eType = TOX_CONTENT;
+ eCurrentTOXType.nIndex = 0;
+
+ sal_uInt16 nUserTypeCount = rSh.GetTOXTypeCount(TOX_USER);
+ nTypeCount = nUserTypeCount + 6;
+ pFormArr = new SwForm*[nTypeCount];
+ pDescArr = new SwTOXDescription*[nTypeCount];
+ pxIndexSectionsArr = new SwIndexSections_Impl*[nTypeCount];
+ //the standard user index is on position TOX_USER
+ //all user user indexes follow after position TOX_AUTHORITIES
+ if(pCurTOX)
+ {
+ bEditTOX = sal_True;
+ }
+ for(int i = nTypeCount - 1; i > -1; i--)
+ {
+ pFormArr[i] = 0;
+ pDescArr[i] = 0;
+ pxIndexSectionsArr[i] = new SwIndexSections_Impl;
+ if(pCurTOX)
+ {
+ eCurrentTOXType.eType = pCurTOX->GetType();
+ sal_uInt16 nArrayIndex = eCurrentTOXType.eType;
+ if(eCurrentTOXType.eType == TOX_USER)
+ {
+ //which user type is it?
+ for(sal_uInt16 nUser = 0; nUser < nUserTypeCount; nUser++)
+ {
+ const SwTOXType* pTemp = rSh.GetTOXType(TOX_USER, nUser);
+ if(pCurTOX->GetTOXType() == pTemp)
+ {
+ eCurrentTOXType.nIndex = nUser;
+ nArrayIndex = nUser > 0 ? TOX_AUTHORITIES + nUser : TOX_USER;
+ break;
+ }
+ }
+ }
+ pFormArr[nArrayIndex] = new SwForm(pCurTOX->GetTOXForm());
+ pDescArr[nArrayIndex] = CreateTOXDescFromTOXBase(pCurTOX);
+ if(TOX_AUTHORITIES == eCurrentTOXType.eType)
+ {
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ rSh.GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ String sBrackets(pFType->GetPrefix());
+ sBrackets += pFType->GetSuffix();
+ pDescArr[nArrayIndex]->SetAuthBrackets(sBrackets);
+ pDescArr[nArrayIndex]->SetAuthSequence(pFType->IsSequence());
+ }
+ else
+ {
+ pDescArr[nArrayIndex]->SetAuthBrackets(C2S("[]"));
+ }
+ }
+ }
+ }
+
+ AddTabPage(TP_TOX_SELECT, SwTOXSelectTabPage::Create, 0);
+ AddTabPage(TP_TOX_STYLES, SwTOXStylesTabPage::Create, 0);
+ AddTabPage(TP_COLUMN, SwColumnPage::Create, 0);
+ AddTabPage(TP_BACKGROUND,SvxBackgroundTabPage::Create, 0);
+ AddTabPage(TP_TOX_ENTRY, SwTOXEntryTabPage::Create, 0);
+ if(!pCurTOX)
+ SetCurPageId(TP_TOX_SELECT);
+
+ aShowExampleCB.SetClickHdl(LINK(this, SwMultiTOXTabDialog, ShowPreviewHdl));
+
+ aShowExampleCB.Check( SW_MOD()->GetModuleConfig()->IsShowIndexPreview());
+ SetViewAlign( WINDOWALIGN_LEFT );
+ // SetViewWindow does not work if the dialog is visible!
+ if(!aShowExampleCB.IsChecked())
+ {
+ SetViewWindow( &aExampleContainerWIN );
+ }
+ Point aOldPos = GetPosPixel();
+ ShowPreviewHdl(0);
+ Point aNewPos = GetPosPixel();
+ //72040: initial position may be left of the view - that has to be corrected
+ if(aNewPos.X() < 0)
+ SetPosPixel(aOldPos);
+}
+/*-- 14.06.99 13:11:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwMultiTOXTabDialog::~SwMultiTOXTabDialog()
+{
+ SW_MOD()->GetModuleConfig()->SetShowIndexPreview(aShowExampleCB.IsChecked());
+
+ for(sal_uInt16 i = 0; i < nTypeCount; i++)
+ {
+ delete pFormArr[i];
+ delete pDescArr[i];
+ delete pxIndexSectionsArr[i];
+ }
+ delete pxIndexSectionsArr;
+
+ delete pFormArr;
+ delete pDescArr;
+ delete pMgr;
+ delete pExampleFrame;
+}
+/*-- 14.06.99 13:11:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwMultiTOXTabDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
+{
+ if( TP_BACKGROUND == nId )
+
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+ else if(TP_COLUMN == nId )
+ {
+ const SwFmtFrmSize& rSize = (const SwFmtFrmSize&)GetInputSetImpl()->Get(RES_FRM_SIZE);
+
+ ((SwColumnPage&)rPage).SetPageWidth(rSize.GetWidth());
+ }
+ else if(TP_TOX_ENTRY == nId)
+ ((SwTOXEntryTabPage&)rPage).SetWrtShell(rSh);
+ if(TP_TOX_SELECT == nId)
+ {
+ ((SwTOXSelectTabPage&)rPage).SetWrtShell(rSh);
+ if(USHRT_MAX != nInitialTOXType)
+ ((SwTOXSelectTabPage&)rPage).SelectType((TOXTypes)nInitialTOXType);
+ }
+}
+/*-- 14.06.99 13:11:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+short SwMultiTOXTabDialog::Ok()
+{
+ short nRet = SfxTabDialog::Ok();
+ SwTOXDescription& rDesc = GetTOXDescription(eCurrentTOXType);
+ SwTOXBase aNewDef(*rSh.GetDefaultTOXBase( eCurrentTOXType.eType, sal_True ));
+
+ sal_uInt16 nIndex = eCurrentTOXType.eType;
+ if(eCurrentTOXType.eType == TOX_USER && eCurrentTOXType.nIndex)
+ {
+ nIndex = TOX_AUTHORITIES + eCurrentTOXType.nIndex;
+ }
+
+ if(pFormArr[nIndex])
+ {
+ rDesc.SetForm(*pFormArr[nIndex]);
+ aNewDef.SetTOXForm(*pFormArr[nIndex]);
+ }
+ rDesc.ApplyTo(aNewDef);
+ if(!bGlobalFlag)
+ pMgr->UpdateOrInsertTOX(
+ rDesc, 0, GetOutputItemSet());
+
+ if(!eCurrentTOXType.nIndex)
+ rSh.SetDefaultTOXBase(aNewDef);
+
+ return nRet;
+}
+/* -----------------16.06.99 11:59-------------------
+
+ --------------------------------------------------*/
+SwForm* SwMultiTOXTabDialog::GetForm(CurTOXType eType)
+{
+ sal_uInt16 nIndex = eType.GetFlatIndex();
+ if(!pFormArr[nIndex])
+ pFormArr[nIndex] = new SwForm(eType.eType);
+ return pFormArr[nIndex];
+}
+/* -----------------09.09.99 11:29-------------------
+
+ --------------------------------------------------*/
+SwTOXDescription& SwMultiTOXTabDialog::GetTOXDescription(CurTOXType eType)
+{
+ sal_uInt16 nIndex = eType.GetFlatIndex();
+ if(!pDescArr[nIndex])
+ {
+ const SwTOXBase* pDef = rSh.GetDefaultTOXBase( eType.eType );
+ if(pDef)
+ pDescArr[nIndex] = CreateTOXDescFromTOXBase(pDef);
+ else
+ {
+ pDescArr[nIndex] = new SwTOXDescription(eType.eType);
+ if(eType.eType == TOX_USER)
+ pDescArr[nIndex]->SetTitle(sUserDefinedIndex);
+ else
+ pDescArr[nIndex]->SetTitle(
+ rSh.GetTOXType(eType.eType, 0)->GetTypeName());
+ }
+ if(TOX_AUTHORITIES == eType.eType)
+ {
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ rSh.GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ String sBrackets(pFType->GetPrefix());
+ sBrackets += pFType->GetSuffix();
+ pDescArr[nIndex]->SetAuthBrackets(sBrackets);
+ pDescArr[nIndex]->SetAuthSequence(pFType->IsSequence());
+ }
+ else
+ {
+ pDescArr[nIndex]->SetAuthBrackets(C2S("[]"));
+ }
+ }
+ }
+ return *pDescArr[nIndex];
+}
+/* -----------------09.09.99 11:36-------------------
+
+ --------------------------------------------------*/
+SwTOXDescription* SwMultiTOXTabDialog::CreateTOXDescFromTOXBase(
+ const SwTOXBase*pCurTOX)
+{
+ SwTOXDescription * pDesc = new SwTOXDescription(pCurTOX->GetType());
+ for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
+ pDesc->SetStyleNames(pCurTOX->GetStyleNames(i), i);
+ pDesc->SetAutoMarkURL(rSh.GetTOIAutoMarkURL());
+ pDesc->SetTitle(pCurTOX->GetTitle());
+
+
+ pDesc->SetContentOptions(pCurTOX->GetCreateType());
+ if(pDesc->GetTOXType() == TOX_INDEX)
+ pDesc->SetIndexOptions(pCurTOX->GetOptions());
+ pDesc->SetMainEntryCharStyle(pCurTOX->GetMainEntryCharStyle());
+ if(pDesc->GetTOXType() != TOX_INDEX)
+ pDesc->SetLevel(pCurTOX->GetLevel());
+ pDesc->SetCreateFromObjectNames(pCurTOX->IsFromObjectNames());
+ pDesc->SetSequenceName(pCurTOX->GetSequenceName());
+ pDesc->SetCaptionDisplay(pCurTOX->GetCaptionDisplay());
+ pDesc->SetFromChapter(pCurTOX->IsFromChapter());
+ pDesc->SetReadonly(pCurTOX->IsProtected());
+ pDesc->SetOLEOptions(pCurTOX->GetOLEOptions());
+ pDesc->SetLevelFromChapter(pCurTOX->IsLevelFromChapter());
+ return pDesc;
+}
+
+/* -----------------------------29.12.99 09:53--------------------------------
+
+ ---------------------------------------------------------------------------*/
+
+IMPL_LINK( SwMultiTOXTabDialog, ShowPreviewHdl, CheckBox *, pBox )
+{
+ if(aShowExampleCB.IsChecked())
+ {
+ if(!pExampleFrame && !bExampleCreated)
+ {
+ bExampleCreated = sal_True;
+ SfxIniManager* pIniMan = SFX_INIMANAGER();
+ const sal_Unicode cSearch = SFX_SEARCHPATH_DELIMITER;
+ const String sAccess = INET_PATH_TOKEN;
+
+ String sPath(pIniMan->Get(SFX_KEY_TEMPLATE_PATH));
+ sal_uInt16 nTokenCount = sPath.GetTokenCount(cSearch);
+ sal_uInt16 nToken = 0;
+ sal_Bool bExist = sal_False;
+ String sFile = sAccess;
+ sFile.AppendAscii( RTL_CONSTASCII_STRINGPARAM("internal"));
+ sFile += sAccess;
+ sFile.AppendAscii( RTL_CONSTASCII_STRINGPARAM("idxexample.sdw"));
+ String sURL;
+ do
+ {
+ sURL = sPath.GetToken(nToken, cSearch);
+ sURL = URIHelper::SmartRelToAbs(sURL);
+ sURL += sFile;
+ nToken++;
+ try
+ {
+ ::ucb::Content aTestContent(
+ sURL,
+ uno::Reference< XCommandEnvironment >());
+
+ uno::Any aAny = aTestContent.getPropertyValue( OUString::createFromAscii("IsDocument") );
+ bExist = aAny.hasValue() ? *(sal_Bool*)aAny.getValue() : FALSE;
+ }
+ catch(...)
+ {
+ bExist = FALSE;
+ }
+
+ }while(!bExist && nToken < nTokenCount);
+
+ if(!bExist)
+ {
+ String sInfo(SW_RES(STR_FILE_NOT_FOUND));
+ sInfo.SearchAndReplaceAscii("%1", sFile);
+ sInfo.SearchAndReplaceAscii("%2", sPath);
+ InfoBox aInfo(GetParent(), sInfo);
+ aInfo.Execute();
+ }
+ else
+ {
+ Link aLink(LINK(this, SwMultiTOXTabDialog, CreateExample_Hdl));
+ pExampleFrame = new SwOneExampleFrame(
+ aExampleWIN, EX_SHOW_ONLINE_LAYOUT, &aLink, &sURL);
+
+ if(!pExampleFrame->IsServiceAvailable())
+ {
+ pExampleFrame->CreateErrorMessage(0);
+ }
+ }
+ aShowExampleCB.Show(pExampleFrame && pExampleFrame->IsServiceAvailable());
+ }
+ }
+ sal_Bool bSetViewWindow = aShowExampleCB.IsChecked()
+ && pExampleFrame && pExampleFrame->IsServiceAvailable();
+ aExampleContainerWIN.Show(bSetViewWindow);
+
+ SetViewWindow( bSetViewWindow ? &aExampleContainerWIN : 0);
+ Point aPos = GetPosPixel();
+ Size aSize = GetSizePixel();
+ if(pBox)
+ AdjustLayout();
+ long nDiffWidth = GetSizePixel().Width() - aSize.Width();
+ aPos.X() -= nDiffWidth;
+ SetPosPixel(aPos);
+
+ return 0;
+}
+//-----------------------------------------------------------------------------
+IMPL_LINK( SwMultiTOXTabDialog, CreateExample_Hdl, void*, EMPTYARG )
+{
+ try
+ {
+ uno::Reference< frame::XModel > & xModel = pExampleFrame->GetModel();
+ uno::Reference< lang::XUnoTunnel > xDocTunnel(xModel, uno::UNO_QUERY);
+ SwXTextDocument* pDoc = (SwXTextDocument*)xDocTunnel->getSomething(SwXTextDocument::getUnoTunnelId());
+
+ if( pDoc )
+ pDoc->GetDocShell()->LoadStyles( *rSh.GetView().GetDocShell() );
+
+ uno::Reference< lang::XMultiServiceFactory > xFact(
+ xModel, uno::UNO_QUERY);
+ uno::Reference< text::XTextCursor > & xCrsr =
+ pExampleFrame->GetTextCursor();
+
+ uno::Reference< text::XTextSectionsSupplier > xSectionSupplier(
+ xModel, uno::UNO_QUERY);
+ uno::Reference< container::XNameAccess > xSections =
+ xSectionSupplier->getTextSections();
+
+ String sSectionName( INDEX_SECTION_NAME );
+ for(int i = 0; i < 7; ++i )
+ {
+ String sTmp( sSectionName ); sTmp += String::CreateFromInt32(i);
+ uno::Any aSection = xSections->getByName( sTmp );
+ pxIndexSectionsArr[i]->xContainerSection = * (uno::Reference<
+ text::XTextSection > *)aSection.getValue();
+ }
+ uno::Reference< text::XDocumentIndexesSupplier > xIdxSupp(xModel, uno::UNO_QUERY);
+ uno::Reference< container::XIndexAccess > xIdxs = xIdxSupp->getDocumentIndexes();
+ int n = xIdxs->getCount();
+ while(n)
+ {
+ n--;
+ uno::Any aIdx = xIdxs->getByIndex(n);
+ uno::Reference< text::XDocumentIndex > xIdx = * (uno::Reference< text::XDocumentIndex > *)aIdx.getValue();
+ xIdx->dispose();
+ }
+ CreateOrUpdateExample(eCurrentTOXType.eType);
+ }
+ catch(...)
+ {
+ DBG_ERROR("::CreateExample() - exception caught")
+ }
+ return 0;
+}
+/* -----------------04.11.99 11:28-------------------
+
+ --------------------------------------------------*/
+void lcl_SetProp( uno::Reference< XPropertySetInfo > & xInfo,
+ uno::Reference< XPropertySet > & xProps,
+ const char* rPropName,
+ const String& rValue)
+{
+ OUString uPropName(C2U(rPropName));
+ if(xInfo->hasPropertyByName(uPropName))
+ {
+ uno::Any aValue;
+ aValue <<= OUString(rValue);
+ xProps->setPropertyValue(uPropName, aValue);
+ }
+}
+void lcl_SetProp( uno::Reference< XPropertySetInfo > & xInfo,
+ uno::Reference< beans::XPropertySet > & xProps,
+ const char* rPropName, sal_Int16 nValue)
+{
+ OUString uPropName(C2U(rPropName));
+ if(xInfo->hasPropertyByName(uPropName))
+ {
+ uno::Any aValue;
+ aValue <<= nValue;
+ xProps->setPropertyValue(uPropName, aValue);
+ }
+}
+/* --------------------------------------------------
+
+ --------------------------------------------------*/
+void lcl_SetBOOLProp( uno::Reference< beans::XPropertySetInfo > & xInfo,
+ uno::Reference< beans::XPropertySet > & xProps,
+ const char* rPropName, sal_Bool bValue)
+{
+ OUString uPropName(C2U(rPropName));
+ if(xInfo->hasPropertyByName(uPropName))
+ {
+ uno::Any aValue;
+ aValue.setValue(&bValue, ::getCppuBooleanType());
+ xProps->setPropertyValue(uPropName, aValue);
+ }
+}
+/* --------------------------------------------------
+
+ --------------------------------------------------*/
+void SwMultiTOXTabDialog::CreateOrUpdateExample(
+ sal_uInt16 nTOXIndex, sal_uInt16 nPage, sal_uInt16 nCurrentLevel)
+{
+ if(!pExampleFrame || !pExampleFrame->IsInitialized())
+ return;
+
+ const char* __FAR_DATA IndexServiceNames[] =
+ {
+ "com.sun.star.text.DocumentIndex",
+ "com.sun.star.text.UserIndex",
+ "com.sun.star.text.ContentIndex",
+ "com.sun.star.text.IllustrationsIndex",
+ "com.sun.star.text.ObjectIndex",
+ "com.sun.star.text.TableIndex",
+ "com.sun.star.text.Bibliography"
+ };
+
+ try
+ {
+ DBG_ASSERT(pxIndexSectionsArr[nTOXIndex] &&
+ pxIndexSectionsArr[nTOXIndex]->xContainerSection.is(),
+ "Section not created")
+ uno::Reference< frame::XModel > & xModel = pExampleFrame->GetModel();
+ sal_Bool bInitialCreate = sal_True;
+ if(!pxIndexSectionsArr[nTOXIndex]->xDocumentIndex.is())
+ {
+ bInitialCreate = sal_True;
+ uno::Reference< text::XTextRange > xAnchor = pxIndexSectionsArr[nTOXIndex]->xContainerSection->getAnchor();
+ xAnchor = xAnchor->getStart();
+ uno::Reference< text::XTextCursor > xCrsr = xAnchor->getText()->createTextCursorByRange(xAnchor);
+
+ uno::Reference< lang::XMultiServiceFactory > xFact(xModel, uno::UNO_QUERY);
+
+ String sIndexTypeName;
+ sIndexTypeName.AssignAscii( IndexServiceNames[
+ nTOXIndex <= TOX_AUTHORITIES ? nTOXIndex : TOX_USER] );
+ pxIndexSectionsArr[nTOXIndex]->xDocumentIndex = uno::Reference< text::XDocumentIndex > (xFact->createInstance(
+ sIndexTypeName), uno::UNO_QUERY);
+ uno::Reference< text::XTextContent > xContent(pxIndexSectionsArr[nTOXIndex]->xDocumentIndex, uno::UNO_QUERY);
+ uno::Reference< text::XTextRange > xRg(xCrsr, uno::UNO_QUERY);
+ xCrsr->getText()->insertTextContent(xRg, xContent, sal_False);
+ }
+ OUString uIsVisible(C2U(UNO_NAME_IS_VISIBLE));
+ for(sal_uInt16 i = 0 ; i <= TOX_AUTHORITIES; i++)
+ {
+ uno::Reference< beans::XPropertySet > xSectPr(pxIndexSectionsArr[i]->xContainerSection, uno::UNO_QUERY);
+ uno::Any aVal;
+
+ if(xSectPr.is())
+ {
+ BOOL bTemp = i == nTOXIndex;
+ aVal.setValue(&bTemp, ::getBooleanCppuType());
+ xSectPr->setPropertyValue(uIsVisible, aVal);
+ }
+ }
+ // set properties
+ uno::Reference< beans::XPropertySet > xIdxProps(pxIndexSectionsArr[nTOXIndex]->xDocumentIndex, uno::UNO_QUERY);
+ uno::Reference< beans::XPropertySetInfo > xInfo = xIdxProps->getPropertySetInfo();
+ SwTOXDescription& rDesc = GetTOXDescription(eCurrentTOXType);
+ sal_uInt16 nIdxOptions = rDesc.GetIndexOptions();
+ if(bInitialCreate || !nPage || nPage == TOX_PAGE_SELECT)
+ {
+ //title
+ if(rDesc.GetTitle())
+ lcl_SetProp(xInfo, xIdxProps, UNO_NAME_TITLE, *rDesc.GetTitle());
+
+ //stylenames
+ sal_uInt16 nContentOptions = rDesc.GetContentOptions();
+ if(xInfo->hasPropertyByName(C2U(UNO_NAME_LEVEL_PARAGRAPH_STYLES)))
+ {
+ sal_Bool bOn = 0!=(nContentOptions&TOX_TEMPLATE );
+ uno::Any aStyleNames(xIdxProps->getPropertyValue(C2U(UNO_NAME_LEVEL_PARAGRAPH_STYLES)));
+ uno::Reference< container::XIndexReplace > xAcc =
+ *(uno::Reference< container::XIndexReplace > *)aStyleNames.getValue();
+
+ for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
+ {
+ String sLevel;
+ if(bOn)
+ sLevel = rDesc.GetStyleNames(i);
+ sal_uInt16 nStyles = sLevel.GetTokenCount(TOX_STYLE_DELIMITER);
+ uno::Sequence<OUString> aStyles(nStyles);
+ OUString* pArr = aStyles.getArray();
+ for(sal_uInt16 nStyle = 0; nStyle < nStyles; nStyle++)
+ pArr[nStyle] = sLevel.GetToken(nStyle, TOX_STYLE_DELIMITER);
+ uno::Any aAny(&aStyles, ::getCppuType((uno::Sequence<OUString>*)0));
+ xAcc->replaceByIndex(i, aAny);
+ }
+ }
+ lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LEVEL, (sal_Int16)rDesc.GetLevel());
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_MARKS, 0!=(nContentOptions&TOX_MARK ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_OUTLINE, 0!=(nContentOptions&TOX_OUTLINELEVEL));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_EMBEDDED_OBJECTS,0!=(nContentOptions&TOX_OLE ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_TABLES , 0!=(nContentOptions&TOX_TABLE ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS, 0!=(nContentOptions&TOX_GRAPHIC ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_TEXT_FRAMES, 0!=(nContentOptions&TOX_FRAME ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_LABELS, 0!=(nContentOptions&TOX_SEQUENCE ));
+
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_CHAPTER, rDesc.IsFromChapter());
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_PROTECTED, rDesc.IsReadonly());
+
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_COMBINED_ENTRIES, 0 != (nIdxOptions&TOI_SAME_ENTRY ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_P_P, 0 != (nIdxOptions&TOI_FF ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_CASE_SENSITIVE, 0 != (nIdxOptions&TOI_CASE_SENSITIVE ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_KEY_AS_ENTRY, 0 != (nIdxOptions&TOI_KEY_AS_ENTRY ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_ALPHABETICAL_SEPARATORS, 0 != (nIdxOptions&TOI_ALPHA_DELIMITTER));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_DASH, 0 != (nIdxOptions&TOI_DASH ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_UPPER_CASE, 0 != (nIdxOptions&TOI_INITIAL_CAPS ));
+
+ lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_CATEGORY, rDesc.GetSequenceName());
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_LABELS, !rDesc.IsCreateFromObjectNames());
+
+ sal_Int16 nSet = text::ChapterFormat::NAME_NUMBER;
+ switch (rDesc.GetCaptionDisplay())
+ {
+ case CAPTION_COMPLETE: nSet = text::ChapterFormat::NAME_NUMBER;break;
+ case CAPTION_NUMBER : nSet = text::ChapterFormat::NUMBER; break;
+ case CAPTION_TEXT : nSet = text::ChapterFormat::NAME; break;
+ }
+ lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_DISPLAY_TYPE, nSet);
+
+ sal_uInt16 nOLEOptions = rDesc.GetOLEOptions();
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_MATH, 0 != (TOO_MATH &nOLEOptions ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CHART, 0 != (TOO_CHART &nOLEOptions ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_IMAGE, 0 != (TOO_IMAGE &nOLEOptions ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CALC, 0 != (TOO_CALC &nOLEOptions ));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_DRAW, 0 != (TOO_DRAW_IMPRESS&nOLEOptions));
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS, 0 != (TOO_OTHER|nOLEOptions ));
+
+ //lcl_SetBOOLProp(xInfo, xIdxProps, , rDesc.IsLevelFromChapter());
+ }
+ const SwForm* pForm = GetForm(eCurrentTOXType);
+ if(bInitialCreate || !nPage || nPage == TOX_PAGE_ENTRY)
+ {
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_COMMA_SEPARATED, pForm->IsCommaSeparated());
+ lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_ALPHABETICAL_SEPARATORS, 0 != (nIdxOptions&TOI_ALPHA_DELIMITTER));
+ if(nCurrentLevel < pForm->GetFormMax() &&
+ xInfo->hasPropertyByName(C2U(UNO_NAME_LEVEL_FORMAT)))
+ {
+ String sTokenType;
+ uno::Sequence< beans::PropertyValues> aSequPropVals(10);
+ long nTokenIndex = 0;
+ long nParamCount = 2;
+ sal_Bool bTabRightAligned = sal_False;
+ SwFormTokenEnumerator aTokenEnum(pForm->GetPattern(nCurrentLevel));
+ while(aTokenEnum.HasNextToken())
+ {
+ if( aSequPropVals.getLength() <= nTokenIndex)
+ aSequPropVals.realloc(nTokenIndex + 10);
+
+ SwFormToken aToken = aTokenEnum.GetNextToken();
+ switch(aToken.eTokenType)
+ {
+ case TOKEN_ENTRY_NO :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenEntryNumber"));
+ // fuer Inhaltsverzeichnis Numerierung
+ break;
+ case TOKEN_ENTRY_TEXT :
+ case TOKEN_ENTRY :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenEntryText"));
+ break;
+ case TOKEN_TAB_STOP :
+ nParamCount += 3;
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenTabStop"));
+ break;
+ case TOKEN_TEXT :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenText"));
+ nParamCount += 1;
+ break;
+ case TOKEN_PAGE_NUMS :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenPageNumber"));
+ break;
+ case TOKEN_CHAPTER_INFO :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenChapterInfo"));
+ {
+ aToken.nChapterFormat;
+ }
+ break;
+ case TOKEN_LINK_START :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenHyperlinkStart"));
+ break;
+ case TOKEN_LINK_END :
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenHyperlinkEnd"));
+ break;
+ case TOKEN_AUTHORITY :
+ {
+ sTokenType.AssignAscii(RTL_CONSTASCII_STRINGPARAM(
+ "TokenBibliographyDataField"));
+ ToxAuthorityField eField = (ToxAuthorityField)aToken.nAuthorityField;
+ }
+ break;
+ }
+ beans::PropertyValues aPropVals(nParamCount);
+ beans::PropertyValue* pPropValArr = aPropVals.getArray();
+ pPropValArr[0].Name = C2U("TokenType");
+ pPropValArr[0].Value <<= OUString(sTokenType);
+ pPropValArr[1].Name = C2U("CharacterStyleName");
+ pPropValArr[1].Value <<= OUString(aToken.sCharStyleName);
+ if(TOKEN_TAB_STOP == aToken.eTokenType)
+ {
+ pPropValArr[2].Name = C2U("TabStopRightAligned");
+ BOOL bTemp = SVX_TAB_ADJUST_END == aToken.eTabAlign;
+ pPropValArr[2].Value.setValue(&bTemp, ::getBooleanCppuType());
+ pPropValArr[3].Name = C2U("TabStopFillCharacter");
+ pPropValArr[3].Value <<= OUString(aToken.cTabFillChar);
+ pPropValArr[4].Name = C2U("TabStopPosition");
+ SwTwips nTempPos = aToken.nTabStopPosition >= 0 ?
+ aToken.nTabStopPosition : 0;
+ nTempPos = TWIP_TO_MM100(nTempPos);
+ pPropValArr[4].Value <<= (sal_Int32)nTempPos;
+ }
+ else if(TOKEN_TEXT == aToken.eTokenType)
+ {
+ pPropValArr[2].Name = C2U("Text");
+ pPropValArr[2].Value <<= OUString(aToken.sText);
+ }
+ beans::PropertyValues* pValues = aSequPropVals.getArray();
+ pValues[nTokenIndex] = aPropVals;
+ nTokenIndex++;
+ }
+ aSequPropVals.realloc(nTokenIndex);
+
+ uno::Any aFormatAccess = xIdxProps->getPropertyValue(C2U(UNO_NAME_LEVEL_FORMAT));
+ DBG_ASSERT(aFormatAccess.getValueType() == ::getCppuType((uno::Reference<container::XIndexReplace>*)0),
+ "wrong property type")
+
+
+ uno::Reference< container::XIndexReplace > xFormatAccess =
+ *(uno::Reference< container::XIndexReplace > *)aFormatAccess.getValue();
+ uno::Any aLevelProp(&aSequPropVals, ::getCppuType((uno::Sequence<beans::PropertyValues>*)0));
+ xFormatAccess->replaceByIndex(nCurrentLevel, aLevelProp);
+ }
+ }
+ if(bInitialCreate || !nPage || nPage == TOX_PAGE_STYLES)
+ {
+ lcl_SetProp(xInfo, xIdxProps, "ParaStyleHeading", pForm->GetTemplate(0));
+ sal_uInt16 nOffset = 0;
+ sal_uInt16 nEndLevel = 2;
+ switch(eCurrentTOXType.eType)
+ {
+ case TOX_INDEX:
+ {
+ nOffset = 1;
+ nEndLevel = 4;
+ lcl_SetProp(xInfo, xIdxProps, "ParaStyleSeparator", pForm->GetTemplate(1));
+ }
+ break;
+ case TOX_CONTENT :
+ nEndLevel = 11;
+ break;
+
+ }
+ for(sal_uInt16 i = 1; i < nEndLevel; i++)
+ {
+ String sPropName(C2S("ParaStyleLevel"));
+ sPropName += String::CreateFromInt32( i );
+ lcl_SetProp(xInfo,
+ xIdxProps,
+ ByteString(sPropName, RTL_TEXTENCODING_ASCII_US).GetBuffer(),
+ pForm->GetTemplate(i + nOffset));
+ }
+ }
+/*
+ const String& GetAutoMarkURL() const { return sAutoMarkURL;}
+ const String& GetMainEntryCharStyle() const {return sMainEntryCharStyle;}
+
+ String GetAuthBrackets() const {return sAuthBrackets;}
+ sal_Bool IsAuthSequence() const {return bIsAuthSequence;}
+ sal_Bool IsSortByDocument()const {return bSortByDocument ;}
+
+ SwTOXSortKey GetSortKey1() const {return eSortKey1;}
+ SwTOXSortKey GetSortKey2() const {return eSortKey2;}
+ SwTOXSortKey GetSortKey3() const {return eSortKey3;}
+*/
+ //
+ pxIndexSectionsArr[nTOXIndex]->xDocumentIndex->update();
+
+//#ifdef DEBUG
+// uno::Reference< frame::XStorable > xStor(xModel, uno::UNO_QUERY);
+// String sURL("file:///e|/temp/sw/idxexample.sdw");
+// uno::Sequence< beans::PropertyValue > aArgs(0);
+// xStor->storeToURL(S2U(sURL), aArgs);
+//#endif
+
+ }
+ catch(...)
+ {
+ DBG_ERROR("::CreateExample() - exception caught")
+ }
+}
+/* -----------------05.07.99 09:49-------------------
+
+ --------------------------------------------------*/
+sal_Bool SwMultiTOXTabDialog::IsNoNum(SwWrtShell& rSh, const String& rName)
+{
+ SwTxtFmtColl* pColl = rSh.GetParaStyle(rName);
+ if(pColl && pColl->GetOutlineLevel() == NO_NUMBERING)
+ return sal_True;
+
+ sal_uInt16 nId = rSh.GetPoolId(rName, GET_POOLID_TXTCOLL);
+ if(nId != USHRT_MAX &&
+ rSh.GetTxtCollFromPool(nId)->GetOutlineLevel() == NO_NUMBERING)
+ return sal_True;
+
+ return sal_False;
+}
+/* -----------------14.07.99 16:01-------------------
+
+ --------------------------------------------------*/
+class SwIndexTreeLB : public SvTreeListBox
+{
+ const HeaderBar* pHeaderBar;
+public:
+ SwIndexTreeLB(Window* pWin, const ResId& rResId) :
+ SvTreeListBox(pWin, rResId), pHeaderBar(0){}
+
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
+ void SetHeaderBar(const HeaderBar* pHB) {pHeaderBar = pHB;}
+};
+/* -----------------14.07.99 16:03-------------------
+
+ --------------------------------------------------*/
+long SwIndexTreeLB::GetTabPos( SvLBoxEntry* pEntry, SvLBoxTab* pTab)
+{
+ long nData = (long)pEntry->GetUserData();
+ if(nData != USHRT_MAX)
+ {
+ sal_uInt16 nPos = pHeaderBar->GetItemRect( 101 + nData ).TopLeft().X();
+ nData = nPos;
+ }
+ else
+ nData = 0;
+ nData += pTab->GetPos();
+ return nData;
+}
+/* -----------------25.08.99 11:14-------------------
+
+ --------------------------------------------------*/
+void SwIndexTreeLB::KeyInput( const KeyEvent& rKEvt )
+{
+ SvLBoxEntry* pEntry = FirstSelected();
+ KeyCode aCode = rKEvt.GetKeyCode();
+ sal_Bool bChanged = sal_False;
+ if(pEntry)
+ {
+ long nLevel = (long)pEntry->GetUserData();
+ if(aCode.GetCode() == KEY_ADD )
+ {
+ if(nLevel < MAXLEVEL - 1)
+ nLevel++;
+ else if(nLevel == USHRT_MAX)
+ nLevel = 0;
+ bChanged = sal_True;
+ }
+ else if(aCode.GetCode() == KEY_SUBTRACT)
+ {
+ if(!nLevel)
+ nLevel = USHRT_MAX;
+ else if(nLevel != USHRT_MAX)
+ nLevel--;
+ bChanged = sal_True;
+ }
+ if(bChanged)
+ {
+ pEntry->SetUserData((void*)nLevel);
+ Invalidate();
+ }
+ }
+ if(!bChanged)
+ SvTreeListBox::KeyInput(rKEvt);
+}
+
+/* -----------------16.07.99 10:01-------------------
+
+ --------------------------------------------------*/
+class SwHeaderTree : public Control
+{
+ HeaderBar aStylesHB;
+ SwIndexTreeLB aStylesTLB;
+
+public:
+ SwHeaderTree(Window* pParent, const ResId rResId);
+
+ HeaderBar& GetHeaderBar() {return aStylesHB;}
+ SwIndexTreeLB& GetTreeListBox() { return aStylesTLB;}
+
+ virtual void GetFocus();
+};
+/* -----------------16.07.99 10:11-------------------
+
+ --------------------------------------------------*/
+SwHeaderTree::SwHeaderTree(Window* pParent, const ResId rResId) :
+ Control(pParent, rResId),
+ aStylesHB( this, ResId(HB_STYLES)),
+ aStylesTLB( this, ResId(TLB_STYLES ))
+{
+ FreeResource();
+ aStylesHB.SetStyle(aStylesHB.GetStyle()|WB_BUTTONSTYLE|WB_TABSTOP|WB_BORDER);
+ Size aHBSize(aStylesHB.GetSizePixel());
+ aHBSize.Height() = aStylesHB.CalcWindowSizePixel().Height();
+ aStylesHB.SetSizePixel(aHBSize);
+ aStylesTLB.SetPosPixel(Point(0, aHBSize.Height()));
+ Size aTLBSize(aStylesHB.GetSizePixel());
+ aTLBSize.Height() = GetOutputSizePixel().Height() - aHBSize.Height();
+ aStylesTLB.SetSizePixel(aTLBSize);
+ aStylesTLB.SetHeaderBar(&aStylesHB);
+}
+/* -----------------25.08.99 10:38-------------------
+
+ --------------------------------------------------*/
+void SwHeaderTree::GetFocus()
+{
+ Control::GetFocus();
+ aStylesTLB.GrabFocus();
+}
+/* -----------------13.07.99 15:29-------------------
+
+ --------------------------------------------------*/
+class SwAddStylesDlg_Impl : public SfxModalDialog
+{
+ OKButton aOk;
+ CancelButton aCancel;
+ HelpButton aHelp;
+
+ GroupBox aStylesGB;
+ SwHeaderTree aHeaderTree;
+ PushButton aLeftPB;
+ PushButton aRightPB;
+
+ String sHBFirst;
+ String* pStyleArr;
+
+ DECL_LINK(OkHdl, OKButton*);
+ DECL_LINK(LeftRightHdl, PushButton*);
+ DECL_LINK(HeaderDragHdl, HeaderBar*);
+
+public:
+ SwAddStylesDlg_Impl(Window* pParent, SwWrtShell& rWrtSh, String rStringArr[]);
+ ~SwAddStylesDlg_Impl();
+};
+/* -----------------13.07.99 15:39-------------------
+
+ --------------------------------------------------*/
+SwAddStylesDlg_Impl::SwAddStylesDlg_Impl(Window* pParent,
+ SwWrtShell& rWrtSh, String rStringArr[]) :
+ SfxModalDialog(pParent, SW_RES(DLG_ADD_IDX_STYLES)),
+ pStyleArr(rStringArr),
+ aHeaderTree(this, ResId(TR_HEADER )),
+ aStylesGB( this, ResId(GB_STYLES )),
+ aOk( this, ResId(PB_OK )),
+ aCancel( this, ResId(PB_CANCEL )),
+ aHelp( this, ResId(PB_HELP )),
+ aLeftPB( this, ResId(PB_LEFT )),
+ aRightPB( this, ResId(PB_RIGHT )),
+ sHBFirst( ResId(ST_HB_FIRST))
+{
+ FreeResource();
+
+ aOk.SetClickHdl(LINK(this, SwAddStylesDlg_Impl, OkHdl));
+ aLeftPB.SetClickHdl(LINK(this, SwAddStylesDlg_Impl, LeftRightHdl));
+ aRightPB.SetClickHdl(LINK(this, SwAddStylesDlg_Impl, LeftRightHdl));
+
+ HeaderBar& rHB = aHeaderTree.GetHeaderBar();
+ rHB.SetEndDragHdl(LINK(this, SwAddStylesDlg_Impl, HeaderDragHdl));
+
+ long nWidth = rHB.GetSizePixel().Width();
+ nWidth /= 14;
+ nWidth--;
+ rHB.InsertItem( 100, sHBFirst, 4 * nWidth );
+ for(sal_uInt16 i = 1; i <= MAXLEVEL; i++)
+ rHB.InsertItem( 100 + i, String::CreateFromInt32(i), nWidth );
+ rHB.Show();
+
+ SwIndexTreeLB& rTLB = aHeaderTree.GetTreeListBox();
+ rTLB.SetWindowBits(WB_CLIPCHILDREN|WB_SORT);
+ //aStylesTLB.SetSelectHdl(LINK(this, SwAddStylesDlg_Impl, SelectHdl));
+ rTLB.GetModel()->SetSortMode(SortAscending);
+ for(i = 0; i < MAXLEVEL; ++i)
+ {
+ String sStyles(rStringArr[i]);
+ for(sal_uInt16 nToken = 0; nToken < sStyles.GetTokenCount(TOX_STYLE_DELIMITER); nToken++)
+ {
+ String sTmp(sStyles.GetToken(nToken, TOX_STYLE_DELIMITER));
+ SvLBoxEntry* pEntry = rTLB.InsertEntry(sTmp);
+ pEntry->SetUserData((void*)i);
+ }
+ }
+ // now the other styles
+ //
+ const SwTxtFmtColl *pColl = 0;
+ const sal_uInt16 nSz = rWrtSh.GetTxtFmtCollCount();
+
+ for ( sal_uInt16 j = 0;j < nSz; ++j )
+ {
+ pColl = &rWrtSh.GetTxtFmtColl(j);
+ if(pColl->IsDefault())
+ continue;
+
+ const String& rName = pColl->GetName();
+
+ if(rName.Len() > 0)
+ {
+ SvLBoxEntry* pEntry = rTLB.First();
+ sal_Bool bFound = sal_False;
+ while(pEntry && !bFound)
+ {
+ if(rTLB.GetEntryText(pEntry) == rName)
+ bFound = sal_True;
+ pEntry = rTLB.Next(pEntry);
+ }
+ if(!bFound)
+ {
+ rTLB.InsertEntry(rName)->SetUserData((void*)USHRT_MAX);
+ }
+ }
+ }
+ rTLB.GetModel()->Resort();
+}
+
+/* -----------------13.07.99 15:39-------------------
+
+ --------------------------------------------------*/
+SwAddStylesDlg_Impl::~SwAddStylesDlg_Impl()
+{
+}
+/* -----------------13.07.99 15:39-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwAddStylesDlg_Impl, OkHdl, OKButton*, pBtn)
+{
+ for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
+ pStyleArr[i].Erase();
+
+ SwIndexTreeLB& rTLB = aHeaderTree.GetTreeListBox();
+ SvLBoxEntry* pEntry = rTLB.First();
+ while(pEntry)
+ {
+ long nLevel = (long)pEntry->GetUserData();
+ if(nLevel != USHRT_MAX)
+ {
+ String sName(rTLB.GetEntryText(pEntry));
+ if(pStyleArr[nLevel].Len())
+ pStyleArr[nLevel] += TOX_STYLE_DELIMITER;
+ pStyleArr[nLevel] += sName;
+ }
+ pEntry = rTLB.Next(pEntry);
+ }
+
+ //TODO write back style names
+ EndDialog(RET_OK);
+ return 0;
+}
+/* -----------------16.07.99 09:27-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwAddStylesDlg_Impl, HeaderDragHdl, HeaderBar*, pHB)
+{
+ aHeaderTree.GetTreeListBox().Invalidate();
+ //pHB->SetSizePixel(pHB->CalcWindowSizePixel());
+ return 0;
+}
+/* -----------------13.07.99 15:39-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwAddStylesDlg_Impl, LeftRightHdl, PushButton*, pBtn)
+{
+ sal_Bool bLeft = pBtn == &aLeftPB;
+ SvLBoxEntry* pEntry = aHeaderTree.GetTreeListBox().FirstSelected();
+ if(pEntry)
+ {
+ long nLevel = (long)pEntry->GetUserData();
+ if(bLeft)
+ {
+ if(!nLevel)
+ nLevel = USHRT_MAX;
+ else if(nLevel != USHRT_MAX)
+ nLevel--;
+ }
+ else
+ {
+ if(nLevel < MAXLEVEL - 1)
+ nLevel++;
+ else if(nLevel == USHRT_MAX)
+ nLevel = 0;
+ }
+ pEntry->SetUserData((void*)nLevel);
+ aHeaderTree.GetTreeListBox().Invalidate();
+ }
+ return 0;
+}
+
+/*-- 14.06.99 13:11:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwTOXSelectTabPage::SwTOXSelectTabPage(Window* pParent, const SfxItemSet& rAttrSet) :
+ SfxTabPage(pParent, SW_RES(TP_TOX_SELECT), rAttrSet),
+ aTypeFT( this, ResId(FT_TYPE )),
+ aTypeLB( this, ResId(LB_TYPE )),
+ aReadOnlyCB( this, ResId(CB_READONLY )),
+ aTitleFT( this, ResId(FT_TITLE )),
+ aTitleED( this, ResId(ED_TITLE )),
+ aTypeTitleGB( this, ResId(GB_TYPETITLE )),
+ aAreaLB( this, ResId(LB_AREA )),
+ aLevelFT( this, ResId(FT_LEVEL )),
+ aLevelNF( this, ResId(NF_LEVEL )),
+ aAreaGB( this, ResId(GB_AREA )),
+ aFromHeadingsCB( this, ResId(CB_FROMHEADINGS )),
+ aChapterDlgPB( this, ResId(PB_CHAPTERDLG )),
+ aAddStylesCB( this, ResId(CB_ADDSTYLES )),
+ aAddStylesPB( this, ResId(PB_ADDSTYLES )),
+ aFromTablesCB( this, ResId(CB_FROMTABLES )),
+ aFromFramesCB( this, ResId(CB_FROMFRAMES )),
+ aFromGraphicsCB( this, ResId(CB_FROMGRAPHICS )),
+ aFromOLECB( this, ResId(CB_FROMOLE )),
+ aLevelFromChapterCB(this, ResId(CB_LEVELFROMCHAPTER )),
+ aFromCaptionsRB( this, ResId(RB_FROMCAPTIONS )),
+ aFromObjectNamesRB( this, ResId(RB_FROMOBJECTNAMES )),
+ aCaptionSequenceFT( this, ResId(FT_CAPTIONSEQUENCE )),
+ aCaptionSequenceLB( this, ResId(LB_CAPTIONSEQUENCE )),
+ aDisplayTypeFT( this, ResId(FT_DISPLAYTYPE )),
+ aDisplayTypeLB( this, ResId(LB_DISPLAYTYPE )),
+ aTOXMarksCB( this, ResId(CB_TOXMARKS )),
+ aCreateFromGB( this, ResId(GB_CREATEFROM )),
+ aCollectSameCB( this, ResId(CB_COLLECTSAME )),
+ aUseFFCB( this, ResId(CB_USEFF )),
+ aUseDashCB( this, ResId(CB_USE_DASH )),
+ aCaseSensitiveCB( this, ResId(CB_CASESENSITIVE )),
+ aInitialCapsCB( this, ResId(CB_INITIALCAPS )),
+ aKeyAsEntryCB( this, ResId(CB_KEYASENTRY )),
+ aFromFileCB( this, ResId(CB_FROMFILE )),
+ aAutoMarkPB( this, ResId(MB_AUTOMARK )),
+// aFilePB( this, ResId(PB_FILE )),
+// aCreateAutoMarkPB( this, ResId(PB_CREATE_AUTOMARK )),
+// aEditAutoMarkPB( this, ResId(PB_EDIT_AUTOMARK )),
+ aIdxOptionsGB( this, ResId(GB_IDXOPTIONS )),
+ aFromNames( ResId(RES_SRCTYPES )),
+ aFromObjCLB( this, ResId(CLB_FROMOBJ )),
+ aFromObjGB( this, ResId(GB_FROMOBJ )),
+ aSequenceCB( this, ResId(CB_SEQUENCE )),
+ aBracketFT( this, ResId(FT_BRACKET )),
+ aBracketLB( this, ResId(LB_BRACKET )),
+ aAuthorityFormatGB( this, ResId(GB_AUTHORITY )),
+ sAddStyleUser(ResId(ST_USER_ADDSTYLE)),
+ sAutoMarkType(ResId(ST_AUTOMARK_TYPE)),
+ bFirstCall(sal_True)
+{
+ FreeResource();
+ sAddStyleContent = aAddStylesCB.GetText();
+
+ aCBLeftPos1 = aFromHeadingsCB.GetPosPixel();
+ aCBLeftPos2 = aAddStylesCB.GetPosPixel();
+ aCBLeftPos3 = aTOXMarksCB.GetPosPixel();
+
+ ResStringArray& rNames = aFromNames.GetNames();
+ for(sal_uInt16 i = 0; i < rNames.Count(); i++)
+ {
+ aFromObjCLB.InsertEntry(rNames.GetString(i));
+ aFromObjCLB.SetEntryData( i, (void*)rNames.GetValue(i) );
+ }
+ aFromObjCLB.SetHelpId(HID_OLE_CHECKLB);
+
+ SetExchangeSupport();
+ aTypeLB.SetSelectHdl(LINK(this, SwTOXSelectTabPage, TOXTypeHdl));
+
+ aAddStylesPB.SetClickHdl(LINK(this, SwTOXSelectTabPage, AddStylesHdl));
+ aChapterDlgPB.SetClickHdl(LINK(this, SwTOXSelectTabPage, ChapterHdl));
+
+ PopupMenu* pMenu = aAutoMarkPB.GetPopupMenu();
+ pMenu->SetActivateHdl(LINK(this, SwTOXSelectTabPage, MenuEnableHdl));
+ pMenu->SetSelectHdl(LINK(this, SwTOXSelectTabPage, MenuExecuteHdl));
+
+// aFilePB.SetClickHdl(LINK(this, SwTOXSelectTabPage, AutoMarkHdl));
+// aCreateAutoMarkPB.SetClickHdl(LINK(this, SwTOXSelectTabPage, CreateEditAutoMarkHdl));
+// aEditAutoMarkPB.SetClickHdl(LINK(this, SwTOXSelectTabPage, CreateEditAutoMarkHdl));
+
+ Link aLk = LINK(this, SwTOXSelectTabPage, CheckBoxHdl);
+ aAddStylesCB .SetClickHdl(aLk);
+ aFromHeadingsCB .SetClickHdl(aLk);
+ aTOXMarksCB .SetClickHdl(aLk);
+ aFromFileCB .SetClickHdl(aLk);
+ aCollectSameCB .SetClickHdl(aLk);
+ aUseFFCB .SetClickHdl(aLk);
+ aUseDashCB .SetClickHdl(aLk);
+ aInitialCapsCB .SetClickHdl(aLk);
+ aKeyAsEntryCB .SetClickHdl(aLk);
+
+ Link aModifyLk = LINK(this, SwTOXSelectTabPage, ModifyHdl);
+ aTitleED.SetModifyHdl(aModifyLk);
+ aLevelNF.SetModifyHdl(aModifyLk);
+
+ aLk = LINK(this, SwTOXSelectTabPage, RadioButtonHdl);
+ aFromCaptionsRB.SetClickHdl(aLk);
+ aFromObjectNamesRB.SetClickHdl(aLk);
+ RadioButtonHdl(&aFromCaptionsRB);
+
+ aTypeLB.SelectEntryPos(0);
+ aTitleED.SaveValue();
+}
+/*-- 14.06.99 13:11:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwTOXSelectTabPage::~SwTOXSelectTabPage()
+{
+}
+/* -----------------21.10.99 17:03-------------------
+
+ --------------------------------------------------*/
+void SwTOXSelectTabPage::SetWrtShell(SwWrtShell& rSh)
+{
+ sal_uInt16 nUserTypeCount = rSh.GetTOXTypeCount(TOX_USER);
+ if(nUserTypeCount > 1)
+ {
+ //insert all new user indexes names after the standard user index
+ sal_uInt16 nPos = aTypeLB.GetEntryPos((void*)(sal_uInt32)TO_USER);
+ nPos++;
+ for(sal_uInt16 nUser = 1; nUser < nUserTypeCount; nUser++)
+ {
+ nPos = aTypeLB.InsertEntry(rSh.GetTOXType(TOX_USER, nUser)->GetTypeName(), nPos);
+ sal_uInt32 nEntryData = nUser << 8;
+ nEntryData |= TO_USER;
+ aTypeLB.SetEntryData(nPos, (void*)nEntryData);
+ }
+ }
+}
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+sal_Bool SwTOXSelectTabPage::FillItemSet( SfxItemSet& )
+{
+ return sal_True;
+}
+/* -----------------25.08.99 14:31-------------------
+
+ --------------------------------------------------*/
+long lcl_TOXTypesToUserData(CurTOXType eType)
+{
+ sal_uInt16 nRet;
+ switch(eType.eType)
+ {
+ case TOX_INDEX : nRet = TO_INDEX; break;
+ case TOX_USER :
+ {
+ nRet = eType.nIndex << 8;
+ nRet |= TO_USER;
+ }
+ break;
+ case TOX_CONTENT : nRet = TO_CONTENT; break;
+ case TOX_ILLUSTRATIONS:nRet = TO_ILLUSTRATION; break;
+ case TOX_OBJECTS : nRet = TO_OBJECT; break;
+ case TOX_TABLES : nRet = TO_TABLE; break;
+ case TOX_AUTHORITIES : nRet = TO_AUTHORITIES; break;
+ }
+ return nRet;
+}
+//-----------------------------------------------------------------
+void SwTOXSelectTabPage::SelectType(TOXTypes eSet)
+{
+ CurTOXType eCurType = {eSet, 0};
+
+ long nData = lcl_TOXTypesToUserData(eCurType);
+ aTypeLB.SelectEntryPos(aTypeLB.GetEntryPos((void*)nData));
+ aTypeFT.Enable(sal_False);
+ aTypeLB.Enable(sal_False);
+ TOXTypeHdl(&aTypeLB);
+}
+
+/*-- 14.06.99 13:10:45---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+//-----------------------------------------------------------------
+CurTOXType lcl_UserData2TOXTypes(sal_uInt16 nData)
+{
+ CurTOXType eRet;
+ eRet.nIndex = 0;
+ switch(nData&0xff)
+ {
+ case TO_INDEX : eRet.eType = TOX_INDEX; break;
+ case TO_USER :
+ {
+ eRet.eType = TOX_USER;
+ eRet.nIndex = (nData&0xff00) >> 8;
+ }
+ break;
+ case TO_CONTENT : eRet.eType = TOX_CONTENT; break;
+ case TO_ILLUSTRATION: eRet.eType = TOX_ILLUSTRATIONS; break;
+ case TO_OBJECT : eRet.eType = TOX_OBJECTS; break;
+ case TO_TABLE : eRet.eType = TOX_TABLES; break;
+ case TO_AUTHORITIES : eRet.eType = TOX_AUTHORITIES; break;
+ default: DBG_ERROR("what a type?");
+ }
+ return eRet;
+}
+/* -----------------02.09.99 08:16-------------------
+
+ --------------------------------------------------*/
+void SwTOXSelectTabPage::ApplyTOXDescription()
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ SwTOXDescription& rDesc = pTOXDlg->GetTOXDescription(aCurType);
+ aReadOnlyCB.Check(rDesc.IsReadonly());
+ if(aTitleED.GetText() == aTitleED.GetSavedValue())
+ {
+ if(rDesc.GetTitle())
+ aTitleED.SetText(*rDesc.GetTitle());
+ else
+ aTitleED.SetText(aEmptyStr);
+ aTitleED.SaveValue();
+ }
+
+ aAreaLB.SelectEntryPos(rDesc.IsFromChapter() ? 1 : 0);
+
+ if(aCurType.eType != TOX_INDEX)
+ aLevelNF.SetValue(rDesc.GetLevel()); //content, user
+
+ sal_uInt16 nCreateType = rDesc.GetContentOptions();
+
+ //user + content
+ sal_Bool bHasStyleNames = sal_False;
+ for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
+ if(rDesc.GetStyleNames(i).Len())
+ {
+ bHasStyleNames = sal_True;
+ break;
+ }
+ aAddStylesCB.Check(bHasStyleNames && (nCreateType & TOX_TEMPLATE));
+
+ aFromOLECB.Check(nCreateType&TOX_OLE);
+ aFromTablesCB.Check(nCreateType&TOX_TABLE);
+ aFromGraphicsCB.Check(nCreateType&TOX_GRAPHIC);
+ aFromFramesCB.Check(nCreateType&TOX_FRAME);
+
+ aLevelFromChapterCB.Check(rDesc.IsLevelFromChapter());
+
+ //all but illustration and table
+ aTOXMarksCB.Check(nCreateType&TOX_MARK );
+
+ //content
+ if(TOX_CONTENT == aCurType.eType)
+ {
+ aFromHeadingsCB.Check(nCreateType&TOX_OUTLINELEVEL);
+ aChapterDlgPB.Enable(aFromHeadingsCB.IsChecked());
+ aAddStylesCB.SetText(sAddStyleContent);
+ aAddStylesPB.Enable(aAddStylesCB.IsChecked());
+ }
+ //index only
+ else if(TOX_INDEX == aCurType.eType)
+ {
+ sal_uInt16 nIndexOptions = rDesc.GetIndexOptions();
+ aCollectSameCB. Check(nIndexOptions&TOI_SAME_ENTRY);
+ aUseFFCB. Check(nIndexOptions&TOI_FF);
+ aUseDashCB. Check(nIndexOptions&TOI_DASH);
+ if(aUseFFCB.IsChecked())
+ aUseDashCB.Enable(sal_False);
+ else if(aUseDashCB.IsChecked())
+ aUseFFCB.Enable(sal_False);
+
+ aCaseSensitiveCB. Check(nIndexOptions&TOI_CASE_SENSITIVE);
+ aInitialCapsCB. Check(nIndexOptions&TOI_INITIAL_CAPS);
+ aKeyAsEntryCB. Check(nIndexOptions&TOI_KEY_AS_ENTRY);
+ }
+ else if(TOX_ILLUSTRATIONS == aCurType.eType ||
+ TOX_TABLES == aCurType.eType)
+ {
+ aFromObjectNamesRB.Check(rDesc.IsCreateFromObjectNames());
+ aFromCaptionsRB.Check(!rDesc.IsCreateFromObjectNames());
+ aCaptionSequenceLB.SelectEntry(rDesc.GetSequenceName());
+ aDisplayTypeLB.SelectEntryPos(rDesc.GetCaptionDisplay());
+ RadioButtonHdl(&aFromCaptionsRB);
+
+ }
+ else if(TOX_OBJECTS == aCurType.eType)
+ {
+ long nOLEData = rDesc.GetOLEOptions();
+ for(sal_uInt16 i = 0; i < aFromObjCLB.GetEntryCount(); i++)
+ {
+ long nData = (long)aFromObjCLB.GetEntryData(i);
+ aFromObjCLB.CheckEntryPos(i, 0 != (nData & nOLEData));
+ }
+ }
+ else if(TOX_AUTHORITIES == aCurType.eType)
+ {
+ aBracketLB.SelectEntry(rDesc.GetAuthBrackets());
+ aSequenceCB.Check(rDesc.IsAuthSequence());
+ }
+ aAutoMarkPB.Enable(aFromFileCB.IsChecked());
+// aCreateAutoMarkPB.Enable(aFromFileCB.IsChecked());
+// aEditAutoMarkPB.Enable(aFromFileCB.IsChecked() && sAutoMarkURL.Len());
+
+ for(i = 0; i < MAXLEVEL; i++)
+ aStyleArr[i] = rDesc.GetStyleNames(i);
+}
+/* -----------------09.09.99 11:57-------------------
+
+ --------------------------------------------------*/
+void SwTOXSelectTabPage::FillTOXDescription()
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ SwTOXDescription& rDesc = pTOXDlg->GetTOXDescription(aCurType);
+ rDesc.SetTitle(aTitleED.GetText());
+ rDesc.SetFromChapter(1 == aAreaLB.GetSelectEntryPos());
+ sal_uInt16 nContentOptions = 0;
+ if(aTOXMarksCB.IsVisible() && aTOXMarksCB.IsChecked())
+ nContentOptions |= TOX_MARK;
+
+ sal_uInt16 nIndexOptions = rDesc.GetIndexOptions()&TOI_ALPHA_DELIMITTER;
+ switch(rDesc.GetTOXType())
+ {
+ case TOX_CONTENT:
+ if(aFromHeadingsCB.IsChecked())
+ nContentOptions |= TOX_OUTLINELEVEL;
+ break;
+ case TOX_USER:
+ {
+ rDesc.SetTOUName(aTypeLB.GetSelectEntry());
+
+ if(aFromOLECB.IsChecked())
+ nContentOptions |= TOX_OLE;
+ if(aFromTablesCB.IsChecked())
+ nContentOptions |= TOX_TABLE;
+ if(aFromFramesCB.IsChecked())
+ nContentOptions |= TOX_FRAME;
+ if(aFromGraphicsCB.IsChecked())
+ nContentOptions |= TOX_GRAPHIC;
+ }
+ break;
+ case TOX_INDEX:
+ {
+ nContentOptions = TOX_MARK;
+
+ if(aCollectSameCB.IsChecked())
+ nIndexOptions |= TOI_SAME_ENTRY;
+ if(aUseFFCB.IsChecked())
+ nIndexOptions |= TOI_FF;
+ if(aUseDashCB.IsChecked())
+ nIndexOptions |= TOI_DASH;
+ if(aCaseSensitiveCB.IsChecked())
+ nIndexOptions |= TOI_CASE_SENSITIVE;
+ if(aInitialCapsCB.IsChecked())
+ nIndexOptions |= TOI_INITIAL_CAPS;
+ if(aKeyAsEntryCB.IsChecked())
+ nIndexOptions |= TOI_KEY_AS_ENTRY;
+ if(aFromFileCB.IsChecked())
+ rDesc.SetAutoMarkURL(sAutoMarkURL);
+ else
+ rDesc.SetAutoMarkURL(aEmptyStr);
+ }
+ break;
+ case TOX_ILLUSTRATIONS:
+ case TOX_TABLES :
+ rDesc.SetCreateFromObjectNames(aFromObjectNamesRB.IsChecked());
+ rDesc.SetSequenceName(aCaptionSequenceLB.GetSelectEntry());
+ rDesc.SetCaptionDisplay((SwCaptionDisplay)aDisplayTypeLB.GetSelectEntryPos());
+ break;
+ case TOX_OBJECTS:
+ {
+ long nOLEData = 0;
+ for(sal_uInt16 i = 0; i < aFromObjCLB.GetEntryCount(); i++)
+ {
+ if(aFromObjCLB.IsChecked(i))
+ {
+ long nData = (long)aFromObjCLB.GetEntryData(i);
+ nOLEData |= nData;
+ }
+ }
+ rDesc.SetOLEOptions(nOLEData);
+ }
+ break;
+ case TOX_AUTHORITIES:
+ {
+ rDesc.SetAuthBrackets(aBracketLB.GetSelectEntry());
+ rDesc.SetAuthSequence(aSequenceCB.IsChecked());
+ }
+ break;
+ }
+
+ rDesc.SetLevelFromChapter( aLevelFromChapterCB.IsVisible() &&
+ aLevelFromChapterCB.IsChecked());
+ if(aTOXMarksCB.IsChecked() && aTOXMarksCB.IsVisible())
+ nContentOptions |= TOX_MARK;
+ if(aFromHeadingsCB.IsChecked() && aFromHeadingsCB.IsVisible())
+ nContentOptions |= TOX_OUTLINELEVEL;
+ if(aAddStylesCB.IsChecked() && aAddStylesCB.IsVisible())
+ nContentOptions |= TOX_TEMPLATE;
+
+ rDesc.SetContentOptions(nContentOptions);
+ rDesc.SetIndexOptions(nIndexOptions);
+ rDesc.SetLevel(aLevelNF.GetValue());
+
+ rDesc.SetReadonly(aReadOnlyCB.IsChecked());
+
+ for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
+ rDesc.SetStyleNames(aStyleArr[i], i);
+}
+/* -----------------05.07.99 15:09-------------------
+
+ --------------------------------------------------*/
+void SwTOXSelectTabPage::Reset( const SfxItemSet& )
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ SwWrtShell& rSh = pTOXDlg->GetWrtShell();
+ const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ long nData = lcl_TOXTypesToUserData(aCurType);
+ aTypeLB.SelectEntryPos(aTypeLB.GetEntryPos((void*)nData));
+
+ sAutoMarkURL = INetURLObject::decode( rSh.GetTOIAutoMarkURL(),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 );
+ aFromFileCB.Check(sAutoMarkURL.Len());
+
+ aCaptionSequenceLB.Clear();
+ sal_uInt16 i, nCount = rSh.GetFldTypeCount(RES_SETEXPFLD);
+ for (i = 0; i < nCount; i++)
+ {
+ SwFieldType *pType = rSh.GetFldType( i, RES_SETEXPFLD );
+ if( pType->Which() == RES_SETEXPFLD &&
+ ((SwSetExpFieldType *) pType)->GetType() & GSE_SEQ )
+ aCaptionSequenceLB.InsertEntry(pType->GetName());
+ }
+
+ if(pTOXDlg->IsTOXEditMode())
+ {
+ aTypeFT.Enable(sal_False);
+ aTypeLB.Enable(sal_False);
+ }
+ TOXTypeHdl(&aTypeLB);
+ CheckBoxHdl(&aAddStylesCB);
+}
+/*-- 14.06.99 13:10:52---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwTOXSelectTabPage::ActivatePage( const SfxItemSet& )
+{
+ //nothing to do
+}
+/*-- 14.06.99 13:11:00---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+int SwTOXSelectTabPage::DeactivatePage( SfxItemSet* pSet )
+{
+ if(pSet)
+ pSet->Put(SfxUInt16Item(FN_PARAM_TOX_TYPE,
+ (sal_uInt16)(long)aTypeLB.GetEntryData( aTypeLB.GetSelectEntryPos() )));
+ sal_uInt16 nUserData = (sal_uInt16)(long)aTypeLB.GetEntryData( aTypeLB.GetSelectEntryPos() );
+ FillTOXDescription();
+ return LEAVE_PAGE;
+}
+
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+SfxTabPage* SwTOXSelectTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet)
+{
+ return new SwTOXSelectTabPage(pParent, rAttrSet);
+}
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, TOXTypeHdl, ListBox*, pBox)
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ if(!bFirstCall)
+ {
+ // save current values into the proper TOXDescription
+ FillTOXDescription();
+ }
+ bFirstCall = sal_False;
+ const long nType = (long)pBox->GetEntryData( pBox->GetSelectEntryPos() );
+ CurTOXType eCurType = lcl_UserData2TOXTypes(nType);
+ pTOXDlg->SetCurrentTOXType(eCurType);
+
+ aAreaLB.Show(nType & (TO_CONTENT|TO_ILLUSTRATION|TO_USER|TO_INDEX|TO_TABLE|TO_OBJECT));
+ aLevelFT.Show(nType & (TO_CONTENT));
+ aLevelNF.Show(nType & (TO_CONTENT));
+ aLevelFromChapterCB.Show(nType & (TO_USER));
+ aAreaGB.Show(nType & (TO_CONTENT|TO_ILLUSTRATION|TO_USER|TO_INDEX|TO_TABLE|TO_OBJECT));
+
+ aFromHeadingsCB.Show(nType & (TO_CONTENT));
+ aChapterDlgPB.Show(nType & (TO_CONTENT));
+ aAddStylesCB.Show(nType & (TO_CONTENT|TO_USER));
+ aAddStylesPB.Show(nType & (TO_CONTENT|TO_USER));
+
+ aFromTablesCB.Show(nType & (TO_USER));
+ aFromFramesCB.Show(nType & (TO_USER));
+ aFromGraphicsCB.Show(nType & (TO_USER));
+ aFromOLECB.Show(nType & (TO_USER));
+
+ aFromCaptionsRB.Show(nType & (TO_ILLUSTRATION|TO_TABLE));
+ aFromObjectNamesRB.Show(nType & (TO_ILLUSTRATION|TO_TABLE));
+
+ aTOXMarksCB.Show(nType & (TO_CONTENT|TO_USER));
+
+ aCreateFromGB.Show(nType & (TO_CONTENT|TO_ILLUSTRATION|TO_USER|TO_TABLE));
+ aCaptionSequenceFT.Show(nType & (TO_ILLUSTRATION|TO_TABLE));
+ aCaptionSequenceLB.Show(nType & (TO_ILLUSTRATION|TO_TABLE));
+ aDisplayTypeFT.Show(nType & (TO_ILLUSTRATION|TO_TABLE));
+ aDisplayTypeLB.Show(nType & (TO_ILLUSTRATION|TO_TABLE));
+
+ aSequenceCB.Show(nType & TO_AUTHORITIES);
+ aBracketFT.Show(nType & TO_AUTHORITIES);
+ aBracketLB.Show(nType & TO_AUTHORITIES);
+ aAuthorityFormatGB.Show(nType & TO_AUTHORITIES);
+
+ String sStr;
+ if(nType & TO_CONTENT)
+ {
+ Point aPos(aAddStylesPB.GetPosPixel());
+ aPos.X() = aChapterDlgPB.GetPosPixel().X();
+ aAddStylesPB.SetPosPixel(aPos);
+ }
+ else if( nType & TO_ILLUSTRATION )
+ aCaptionSequenceLB.SelectEntry( GetDocPoolNm( RES_POOLCOLL_LABEL_ABB, sStr ));
+ else if( nType & TO_TABLE )
+ aCaptionSequenceLB.SelectEntry( GetDocPoolNm( RES_POOLCOLL_LABEL_TABLE, sStr ));
+ else if( nType & TO_USER )
+ {
+ aAddStylesCB.SetText(sAddStyleUser);
+ // move left!
+ Point aPos(aAddStylesPB.GetPosPixel());
+ aPos.X() = aChapterDlgPB.GetPosPixel().X();
+ aPos.X() -= 2 * aAddStylesPB.GetSizePixel().Width();
+ aAddStylesPB.SetPosPixel(aPos);
+ }
+
+ aCollectSameCB.Show(nType & TO_INDEX);
+ aUseFFCB.Show(nType & TO_INDEX);
+ aUseDashCB.Show(nType & TO_INDEX);
+ aCaseSensitiveCB.Show(nType & TO_INDEX);
+ aInitialCapsCB.Show(nType & TO_INDEX);
+ aKeyAsEntryCB.Show(nType & TO_INDEX);
+ aFromFileCB.Show(nType & TO_INDEX);
+ aAutoMarkPB.Show(nType & TO_INDEX);
+// aCreateAutoMarkPB.Show(nType &TO_INDEX);
+// aEditAutoMarkPB.Show(nType & TO_INDEX);
+
+ aIdxOptionsGB.Show(nType & TO_INDEX);
+
+ //object index
+ aFromObjCLB.Show(nType & TO_OBJECT);
+ aFromObjGB.Show(nType & TO_OBJECT);
+
+ //move controls
+ aAddStylesCB.SetPosPixel(nType & TO_USER ? aCBLeftPos1 : aCBLeftPos2);
+ Point aPBPos(aAddStylesPB.GetPosPixel());
+ aPBPos.Y() = nType & TO_USER ? aCBLeftPos1.Y() : aCBLeftPos2.Y();
+ aAddStylesPB.SetPosPixel(aPBPos);
+ aTOXMarksCB.SetPosPixel(nType & TO_USER ? aCBLeftPos2 : aCBLeftPos3);
+ //set control values from the proper TOXDescription
+ {
+ ApplyTOXDescription();
+ }
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------30.11.99 12:48-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, ModifyHdl, void*, EMPTYARG)
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ if(pTOXDlg)
+ {
+ FillTOXDescription();
+ pTOXDlg->CreateOrUpdateExample(pTOXDlg->GetCurrentTOXType().eType, TOX_PAGE_SELECT);
+ }
+ return 0;
+}
+/* -----------------05.07.99 10:13-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, CheckBoxHdl, CheckBox*, pBox )
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ if(TOX_CONTENT == aCurType.eType)
+ {
+ //at least one of the three CheckBoxes must be checked
+ if(!aAddStylesCB.IsChecked() && !aFromHeadingsCB.IsChecked() && !aTOXMarksCB.IsChecked())
+ {
+ //TODO: InfoBox?
+ pBox->Check(sal_True);
+ }
+ aAddStylesPB.Enable(aAddStylesCB.IsChecked());
+ aChapterDlgPB.Enable(aFromHeadingsCB.IsChecked());
+ }
+ if(TOX_USER == aCurType.eType)
+ {
+ aAddStylesPB.Enable(aAddStylesCB.IsChecked());
+ }
+ else if(TOX_INDEX == aCurType.eType)
+ {
+ aAutoMarkPB.Enable(aFromFileCB.IsChecked());
+// aCreateAutoMarkPB.Enable(aFromFileCB.IsChecked());
+// aEditAutoMarkPB.Enable(aFromFileCB.IsChecked() && sAutoMarkURL.Len());
+
+ aUseFFCB.Enable(aCollectSameCB.IsChecked() && !aUseDashCB.IsChecked());
+ aUseDashCB.Enable(aCollectSameCB.IsChecked() && !aUseFFCB.IsChecked());
+ aCaseSensitiveCB.Enable(aCollectSameCB.IsChecked());
+ }
+ ModifyHdl(0);
+ return 0;
+};
+/* -----------------14.07.99 14:21-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, RadioButtonHdl, RadioButton*, pButton )
+{
+ sal_Bool bEnable = aFromCaptionsRB.IsChecked();
+ aCaptionSequenceFT.Enable(bEnable);
+ aCaptionSequenceLB.Enable(bEnable);
+ aDisplayTypeFT.Enable(bEnable);
+ aDisplayTypeLB.Enable(bEnable);
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, TOXAreaHdl, ListBox*, pBox)
+{
+ DBG_WARNING("not implemented")
+ switch((long)pBox->GetEntryData( pBox->GetSelectEntryPos() ))
+ {
+ case AREA_DOCUMENT : break;
+ case AREA_CHAPTER : break;
+ }
+ return 0;
+}
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, ChapterHdl, PushButton*, pButton)
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ SwWrtShell& rSh = pTOXDlg->GetWrtShell();
+
+ SfxItemSet aTmp(rSh.GetView().GetPool(), FN_PARAM_1, FN_PARAM_1);
+ SwOutlineTabDialog* pDlg = new SwOutlineTabDialog(pButton, &aTmp, rSh);
+ if(RET_OK == pDlg->Execute())
+ {
+ CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ SwForm* pForm = ((SwMultiTOXTabDialog*)GetTabDialog())->GetForm(aCurType);
+ // jetzt muss ueberprueft werden, ob dem sdbcx::Index Ueberschriftenvorlagen
+ // zugewiesen wurden
+ String sStr;
+ for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
+ {
+ sal_Bool bNum = !SwMultiTOXTabDialog::IsNoNum(rSh, pForm->GetTemplate( i + 1 ));
+ if(bNum)
+ {
+ //es gibt getrennte Resourcebereiche fuer die Inhaltsverzeichnisse
+ if(i < 5)
+ GetDocPoolNm( RES_POOLCOLL_TOX_CNTNT1 + i, sStr );
+ else
+ GetDocPoolNm( RES_POOLCOLL_TOX_CNTNT6 + i - 5, sStr );
+ pForm->SetTemplate( i + 1, sStr );
+ }
+ }
+
+ }
+ delete pDlg;
+ return 0;
+}
+/* -----------------14.06.99 13:10-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXSelectTabPage, AddStylesHdl, PushButton*, pButton)
+{
+ SwAddStylesDlg_Impl* pDlg = new SwAddStylesDlg_Impl(pButton,
+ ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell(),
+ aStyleArr);
+ pDlg->Execute();
+ delete pDlg;
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------------------19.01.00 10:59--------------------------------
+
+ ---------------------------------------------------------------------------*/
+
+IMPL_LINK(SwTOXSelectTabPage, MenuEnableHdl, Menu*, pMenu)
+{
+ pMenu->EnableItem(MN_AUTOMARK_EDIT, sAutoMarkURL.Len());
+ return 0;
+}
+
+IMPL_LINK(SwTOXSelectTabPage, MenuExecuteHdl, Menu*, pMenu)
+{
+ const String sSaveAutoMarkURL = sAutoMarkURL;
+ switch(pMenu->GetCurItemId())
+ {
+ case MN_AUTOMARK_OPEN:
+ sAutoMarkURL = lcl_CreateAutoMarkFileDlg( &aAutoMarkPB,
+ sAutoMarkURL, sAutoMarkType, sal_True);
+ break;
+ case MN_AUTOMARK_NEW :
+ sAutoMarkURL = lcl_CreateAutoMarkFileDlg( &aAutoMarkPB,
+ sAutoMarkURL, sAutoMarkType, sal_False);
+ if( !sAutoMarkURL.Len() )
+ break;
+ //no break
+ case MN_AUTOMARK_EDIT:
+ {
+ sal_Bool bNew = pMenu->GetCurItemId()== MN_AUTOMARK_NEW;
+ SwAutoMarkDlg_Impl* pAutoMarkDlg = new SwAutoMarkDlg_Impl(
+ &aAutoMarkPB, sAutoMarkURL, sAutoMarkType, bNew );
+
+ if( RET_OK != pAutoMarkDlg->Execute() && bNew )
+ sAutoMarkURL = sSaveAutoMarkURL;
+ delete pAutoMarkDlg;
+
+ sAutoMarkURL = URIHelper::SmartRelToAbs( sAutoMarkURL );
+ }
+ break;
+ }
+ return 0;
+}
+
+/* -----------------16.06.99 10:46-------------------
+
+ --------------------------------------------------*/
+class SwTOXEdit : public Edit
+{
+ SwFormToken aFormToken;
+ Link aPrevNextControlLink;
+ Link aGetFocusLink;
+ sal_Bool bNextControl;
+ SwTokenWindow* m_pParent;
+public:
+ SwTOXEdit( Window* pParent, SwTokenWindow* pTokenWin,
+ const SwFormToken& aToken)
+ : Edit( pParent, WB_BORDER|WB_TABSTOP|WB_CENTER),
+ bNextControl(sal_False),
+ aFormToken(aToken),
+ m_pParent( pTokenWin )
+ {
+ SetHelpId( HID_TOX_ENTRY_EDIT );
+ }
+
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void GetFocus();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+
+ sal_Bool IsNextControl() const {return bNextControl;}
+ void SetPrevNextLink( const Link& rLink ) {aPrevNextControlLink = rLink;}
+ void SetGetFocusLink(const Link& rLink) {aGetFocusLink = rLink;}
+
+ const SwFormToken& GetFormToken()
+ {
+ aFormToken.sText = GetText();
+ return aFormToken;
+ }
+
+ void SetCharStyleName(const String& rSet, sal_uInt16 nPoolId)
+ {
+ aFormToken.sCharStyleName = rSet;
+ aFormToken.nPoolId = nPoolId;
+ }
+
+ void AdjustSize();
+};
+
+//---------------------------------------------------
+void SwTOXEdit::RequestHelp( const HelpEvent& rHEvt )
+{
+ if(!m_pParent->CreateQuickHelp(this, aFormToken, rHEvt))
+ Edit::RequestHelp(rHEvt);
+}
+//---------------------------------------------------
+void SwTOXEdit::KeyInput( const KeyEvent& rKEvt )
+{
+ const Selection& rSel = GetSelection();
+ sal_uInt16 nTextLen = GetText().Len();
+ if(rSel.A() == rSel.B() &&
+ !rSel.A() || rSel.A() == nTextLen )
+ {
+ sal_Bool bCall = sal_False;
+ KeyCode aCode = rKEvt.GetKeyCode();
+ if(aCode.GetCode() == KEY_RIGHT && rSel.A() == nTextLen)
+ {
+ bNextControl = sal_True;
+ bCall = sal_True;
+ }
+ else if(aCode.GetCode() == KEY_LEFT && !rSel.A() )
+ {
+ bNextControl = sal_False;
+ bCall = sal_True;
+ }
+
+ if(bCall && aPrevNextControlLink.IsSet())
+ aPrevNextControlLink.Call(this);
+
+ }
+ Edit::KeyInput(rKEvt);
+}
+/* -----------------16.07.99 12:41-------------------
+
+ --------------------------------------------------*/
+void SwTOXEdit::AdjustSize()
+{
+ Size aSize(GetSizePixel());
+ Size aTextSize(GetTextWidth(GetText()), GetTextHeight());
+ aTextSize = LogicToPixel(aTextSize);
+ aSize.Width() = aTextSize.Width() + EDIT_MINWIDTH;
+ SetSizePixel(aSize);
+}
+
+//---------------------------------------------------
+void SwTOXEdit::GetFocus()
+{
+ if(aGetFocusLink.IsSet())
+ aGetFocusLink.Call(this);
+ Edit::GetFocus();
+}
+
+//---------------------------------------------------
+//---------------------------------------------------
+class SwTOXButton : public PushButton
+{
+ SwFormToken aFormToken;
+ Link aPrevNextControlLink;
+ Link aGetFocusLink;
+ sal_Bool bNextControl;
+ SwTokenWindow* m_pParent;
+public:
+ SwTOXButton( Window* pParent, SwTokenWindow* pTokenWin,
+ const SwFormToken& rToken)
+ : PushButton(pParent, WB_BORDER|WB_TABSTOP),
+ bNextControl(sal_False),
+ aFormToken(rToken),
+ m_pParent(pTokenWin)
+ {
+ SetHelpId(HID_TOX_ENTRY_BUTTON);
+ }
+
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void GetFocus();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+
+ sal_Bool IsNextControl() const {return bNextControl;}
+ void SetPrevNextLink(const Link& rLink) {aPrevNextControlLink = rLink;}
+ void SetGetFocusLink(const Link& rLink) {aGetFocusLink = rLink;}
+ const SwFormToken& GetFormToken() const {return aFormToken;}
+
+ void SetCharStyleName(const String& rSet, sal_uInt16 nPoolId)
+ {
+ aFormToken.sCharStyleName = rSet;
+ aFormToken.nPoolId = nPoolId;
+ }
+
+ void SetTabPosition(SwTwips nSet)
+ { aFormToken.nTabStopPosition = nSet; }
+
+ void SetFillChar( sal_Unicode cSet )
+ { aFormToken.cTabFillChar = cSet; }
+
+ void SetTabAlign(SvxTabAdjust eAlign)
+ { aFormToken.eTabAlign = eAlign;}
+
+ void SetChapterInfo(sal_uInt16 nSet) { aFormToken.nChapterFormat = nSet;}
+ sal_uInt16 GetChapterInfo() const{ return aFormToken.nChapterFormat;}
+
+ void SetLinkEnd()
+ {
+ DBG_ASSERT(TOKEN_LINK_START == aFormToken.eTokenType,
+ "call SetLinkEnd for link start only!")
+ aFormToken.eTokenType = TOKEN_LINK_END;
+ aFormToken.sText.AssignAscii(SwForm::aFormLinkEnd);
+ SetText(aFormToken.sText);
+ }
+ void SetLinkStart()
+ {
+ DBG_ASSERT(TOKEN_LINK_END == aFormToken.eTokenType,
+ "call SetLinkStart for link start only!")
+ aFormToken.eTokenType = TOKEN_LINK_START;
+ aFormToken.sText.AssignAscii(SwForm::aFormLinkStt);
+ SetText(aFormToken.sText);
+ }
+};
+
+//---------------------------------------------------
+void SwTOXButton::KeyInput( const KeyEvent& rKEvt )
+{
+ sal_Bool bCall = sal_False;
+ KeyCode aCode = rKEvt.GetKeyCode();
+ if(aCode.GetCode() == KEY_RIGHT)
+ {
+ bNextControl = sal_True;
+ bCall = sal_True;
+ }
+ else if(aCode.GetCode() == KEY_LEFT )
+ {
+ bNextControl = sal_False;
+ bCall = sal_True;
+ }
+ else if(aCode.GetCode() == KEY_DELETE)
+ {
+ m_pParent->RemoveControl(this, sal_True);
+ //this is invalid here
+ return;
+ }
+ if(bCall && aPrevNextControlLink.IsSet())
+ aPrevNextControlLink.Call(this);
+ else
+ PushButton::KeyInput(rKEvt);
+}
+//---------------------------------------------------
+void SwTOXButton::GetFocus()
+{
+ if(aGetFocusLink.IsSet())
+ aGetFocusLink.Call(this);
+ PushButton::GetFocus();
+}
+//---------------------------------------------------
+void SwTOXButton::RequestHelp( const HelpEvent& rHEvt )
+{
+ if(!m_pParent->CreateQuickHelp(this, aFormToken, rHEvt))
+ Button::RequestHelp(rHEvt);
+}
+/* -----------------------------23.12.99 14:28--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwIdxTreeListBox::SwIdxTreeListBox(SwTOXEntryTabPage* pPar, const ResId& rResId) :
+ SvTreeListBox(pPar, rResId),
+ pParent(pPar)
+{
+}
+/* -----------------------------23.12.99 14:19--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwIdxTreeListBox::RequestHelp( const HelpEvent& rHEvt )
+{
+ if( rHEvt.GetMode() & HELPMODE_QUICK )
+ {
+ Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
+ SvLBoxEntry* pEntry = GetEntry( aPos );
+ if( pEntry )
+ {
+ sal_uInt16 nLevel = GetModel()->GetAbsPos(pEntry);
+ String sEntry = pParent->GetLevelHelp(++nLevel);
+ if('*' == sEntry)
+ sEntry = GetEntryText(pEntry);
+ if(sEntry.Len())
+ {
+ SvLBoxTab* pTab;
+ SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
+ if( pItem && SV_ITEM_ID_LBOXSTRING == pItem->IsA())
+ {
+ aPos = GetEntryPos( pEntry );
+
+ aPos.X() = GetTabPos( pEntry, pTab );
+ Size aSize( pItem->GetSize( this, pEntry ) );
+
+ if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
+ aSize.Width() = GetSizePixel().Width() - aPos.X();
+
+ aPos = OutputToScreenPixel(aPos);
+ Rectangle aItemRect( aPos, aSize );
+ Help::ShowQuickHelp( this, aItemRect, sEntry,
+ QUICKHELP_LEFT|QUICKHELP_VCENTER );
+ }
+ }
+ }
+ }
+ else
+ SvTreeListBox::RequestHelp(rHEvt);
+}
+//---------------------------------------------------
+SwTOXEntryTabPage::SwTOXEntryTabPage(Window* pParent, const SfxItemSet& rAttrSet) :
+ SfxTabPage(pParent, SW_RES(TP_TOX_ENTRY), rAttrSet),
+ aLevelLB(this, ResId(LB_LEVEL )),
+ aLevelFT(this, ResId(FT_LEVEL )),
+ aTokenWIN(this, ResId(WIN_TOKEN )),
+ aAllLevelsPB(this, ResId(PB_ALL_LEVELS )),
+ aEntryNoPB(this, ResId(PB_ENTRYNO )),
+ aEntryPB(this, ResId(PB_ENTRY )),
+ aChapterInfoPB(this, ResId(PB_CHAPTERINFO )),
+ aPageNoPB(this, ResId(PB_PAGENO )),
+ aTabPB(this, ResId(PB_TAB )),
+ aHyperLinkPB(this, ResId(PB_HYPERLINK )),
+ aAuthFieldsLB(this, ResId(LB_AUTHFIELD )),
+ aAuthInsertPB(this, ResId(PB_AUTHINSERT )),
+ aAuthRemovePB(this, ResId(PB_AUTHREMOVE )),
+ aCharStyleFT(this, ResId(FT_CHARSTYLE )),
+ aCharStyleLB(this, ResId(LB_CHARSTYLE )),
+ aEditStylePB(this, ResId(PB_EDITSTYLE )),
+ aFillCharFT(this, ResId(FT_FILLCHAR )),
+ aFillCharCB(this, ResId(CB_FILLCHAR )),
+ aChapterEntryFT(this, ResId(FT_CHAPTERENTRY )),
+ aChapterEntryLB(this, ResId(LB_CHAPTERENTRY )),
+ aTabPosFT(this, ResId(FT_TABPOS )),
+ aTabPosMF(this, ResId(MF_TABPOS )),
+ aAutoRightCB(this, ResId(CB_AUTORIGHT )),
+ aEntryGB(this, ResId(GB_ENTRY )),
+ aRelToStyleCB(this, ResId(CB_RELTOSTYLE )),
+ aMainEntryStyleFT(this, ResId(FT_MAIN_ENTRY_STYLE)),
+ aMainEntryStyleLB(this, ResId(LB_MAIN_ENTRY_STYLE)),
+ aAlphaDelimCB(this, ResId(CB_ALPHADELIM )),
+ aCommaSeparatedCB(this, ResId(CB_COMMASEPARATED )),
+ aFormatGB(this, ResId(GB_FORMAT )),
+
+ aSortDocPosRB(this, ResId(RB_DOCPOS )),
+ aSortContentRB(this, ResId(RB_SORTCONTENT )),
+ aSortingGB(this, ResId(GB_SORTING )),
+
+ aFirstKeyFT(this, ResId(FT_FIRSTKEY )),
+ aFirstKeyLB(this, ResId(LB_FIRSTKEY )),
+ aSecondKeyFT(this, ResId(FT_SECONDKEY )),
+ aSecondKeyLB(this, ResId(LB_SECONDKEY )),
+ aThirdKeyFT(this, ResId(FT_THIRDDKEY )),
+ aThirdKeyLB(this, ResId(LB_THIRDKEY )),
+ aFirstSortUpRB(this, ResId(RB_SORTUP1 )),
+ aFirstSortDownRB(this, ResId(RB_SORTDOWN1 )),
+ aSecondSortUpRB(this, ResId(RB_SORTUP2 )),
+ aSecondSortDownRB(this, ResId(RB_SORTDOWN2 )),
+ aThirdSortUpRB(this, ResId(RB_SORTUP3 )),
+ aThirdSortDownRB(this, ResId(RB_SORTDOWN3 )),
+ aSortKeyGB(this, ResId(GB_SORTKEY )),
+ sNoCharStyle( ResId(STR_NO_CHAR_STYLE)),
+ sNoCharSortKey( ResId(STR_NOSORTKEY )),
+ sDelimStr( ResId(STR_DELIM)),
+ sAuthTypeStr( ResId(ST_AUTHTYPE)),
+ pCurrentForm(0),
+ bInLevelHdl(sal_False)
+{
+ FreeResource();
+
+ sLevelStr = aLevelFT.GetText();
+
+ aLevelLB.SetWindowBits( WB_HSCROLL );
+ aLevelLB.SetSpaceBetweenEntries(0);
+ aLevelLB.SetSelectionMode( SINGLE_SELECTION );
+ aLevelLB.SetHighlightRange(); // select full width
+ aLevelLB.SetHelpId(HID_INSERT_INDEX_ENTRY_LEVEL_LB);
+ aLevelLB.Show();
+
+ aLastTOXType.eType = (TOXTypes)USHRT_MAX;
+ aLastTOXType.nIndex = 0;
+ //aLevelGBSize = aLevelGB.GetSizePixel();
+ aLevelGBSize = aLevelFT.GetSizePixel();
+
+ SetExchangeSupport();
+ aEntryNoPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, InsertTokenHdl));
+ aEntryPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, InsertTokenHdl));
+ aChapterInfoPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, InsertTokenHdl));
+ aPageNoPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, InsertTokenHdl));
+ aTabPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, InsertTokenHdl));
+ aHyperLinkPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, InsertTokenHdl));
+ aEditStylePB.SetClickHdl(LINK(this, SwTOXEntryTabPage, EditStyleHdl));
+ aLevelLB.SetSelectHdl(LINK(this, SwTOXEntryTabPage, LevelHdl));
+ aTokenWIN.SetButtonSelectedHdl(LINK(this, SwTOXEntryTabPage, TokenSelectedHdl));
+ aTokenWIN.SetModifyHdl(LINK(this, SwTOXEntryTabPage, ModifyHdl));
+ aCharStyleLB.SetSelectHdl(LINK(this, SwTOXEntryTabPage, StyleSelectHdl));
+ aCharStyleLB.InsertEntry(sNoCharStyle);
+ aChapterEntryLB.SetSelectHdl(LINK(this, SwTOXEntryTabPage, ChapterInfoHdl));
+ aTabPosMF.SetModifyHdl(LINK(this, SwTOXEntryTabPage, TabPosHdl));
+ aFillCharCB.SetModifyHdl(LINK(this, SwTOXEntryTabPage, FillCharHdl));
+ aAutoRightCB.SetClickHdl(LINK(this, SwTOXEntryTabPage, AutoRightHdl));
+ aAuthInsertPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, RemoveInsertAuthHdl));
+ aAuthRemovePB.SetClickHdl(LINK(this, SwTOXEntryTabPage, RemoveInsertAuthHdl));
+ aSortDocPosRB.SetClickHdl(LINK(this, SwTOXEntryTabPage, SortKeyHdl));
+ aSortContentRB.SetClickHdl(LINK(this, SwTOXEntryTabPage, SortKeyHdl));
+ aAllLevelsPB.SetClickHdl(LINK(this, SwTOXEntryTabPage, AllLevelsHdl));
+
+ aAlphaDelimCB.SetClickHdl(LINK(this, SwTOXEntryTabPage, ModifyHdl));
+ aCommaSeparatedCB.SetClickHdl(LINK(this, SwTOXEntryTabPage, ModifyHdl));
+ aRelToStyleCB.SetClickHdl(LINK(this, SwTOXEntryTabPage, ModifyHdl));
+
+ aSortDocPosRB.Check();
+
+ aFillCharCB.SetMaxTextLen(1);
+ aFillCharCB.InsertEntry(' ');
+ aFillCharCB.InsertEntry('.');
+ aFillCharCB.InsertEntry('-');
+ aFillCharCB.InsertEntry('_');
+
+ aButtonPositions[0] = aEntryNoPB.GetPosPixel();
+ aButtonPositions[1] = aEntryPB.GetPosPixel();
+ aButtonPositions[2] = aChapterInfoPB.GetPosPixel();
+ aButtonPositions[3] = aPageNoPB.GetPosPixel();
+ aButtonPositions[4] = aTabPB.GetPosPixel();
+
+ aRelToStylePos = aRelToStyleCB.GetPosPixel();
+ aRelToStyleIdxPos = aRelToStylePos;
+ aRelToStyleIdxPos.Y() +=
+ 2 * (aAlphaDelimCB.GetPosPixel().Y() - aRelToStyleIdxPos.Y());
+ aEditStylePB.Enable(sal_False);
+
+ //fill the types in
+ sal_uInt32 i;
+ for( i = 0; i < AUTH_FIELD_END; i++)
+ {
+ String sTmp(SW_RES(STR_AUTH_FIELD_START + i));
+ sTmp.EraseAllChars('~');
+ sal_uInt16 nPos = aAuthFieldsLB.InsertEntry(sTmp);
+ aAuthFieldsLB.SetEntryData(nPos, (void*)(i));
+ }
+ sal_uInt16 nPos = aFirstKeyLB.InsertEntry(sNoCharSortKey);
+ aFirstKeyLB.SetEntryData(nPos, (void*)(USHRT_MAX));
+ nPos = aSecondKeyLB.InsertEntry(sNoCharSortKey);
+ aSecondKeyLB.SetEntryData(nPos, (void*)(USHRT_MAX));
+ nPos = aThirdKeyLB.InsertEntry(sNoCharSortKey);
+ aThirdKeyLB.SetEntryData(nPos, (void*)(USHRT_MAX));
+
+ for( i = 0; i < AUTH_FIELD_END; i++)
+ {
+ String sTmp(aAuthFieldsLB.GetEntry(i));
+ void* pEntryData = aAuthFieldsLB.GetEntryData(i);
+ nPos = aFirstKeyLB.InsertEntry(sTmp);
+ aFirstKeyLB.SetEntryData(nPos, pEntryData);
+ nPos = aSecondKeyLB.InsertEntry(sTmp);
+ aSecondKeyLB.SetEntryData(nPos, pEntryData);
+ nPos = aThirdKeyLB.InsertEntry(sTmp);
+ aThirdKeyLB.SetEntryData(nPos, pEntryData);
+ }
+ aFirstKeyLB.SelectEntryPos(0);
+ aSecondKeyLB.SelectEntryPos(0);
+ aThirdKeyLB.SelectEntryPos(0);
+
+}
+/* -----------------30.11.99 13:37-------------------
+ pVoid is used as signal to change all levels of the example
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, ModifyHdl, void*, pVoid)
+{
+ UpdateDescriptor();
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+
+ if(pTOXDlg)
+ {
+ sal_uInt16 nCurLevel = aLevelLB.GetModel()->GetAbsPos(aLevelLB.FirstSelected()) + 1;
+ if(aLastTOXType.eType == TOX_CONTENT && pVoid)
+ nCurLevel = USHRT_MAX;
+ pTOXDlg->CreateOrUpdateExample(
+ pTOXDlg->GetCurrentTOXType().eType, TOX_PAGE_ENTRY, nCurLevel);
+ }
+ return 0;
+}
+
+/*-- 16.06.99 10:47:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwTOXEntryTabPage::~SwTOXEntryTabPage()
+{
+}
+/*-- 16.06.99 10:47:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwTOXEntryTabPage::FillItemSet( SfxItemSet& )
+{
+ // nothing to do
+ return sal_True;
+}
+/*-- 16.06.99 10:47:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwTOXEntryTabPage::Reset( const SfxItemSet& )
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ pCurrentForm = pTOXDlg->GetForm(aCurType);
+ if(TOX_INDEX == aCurType.eType)
+ {
+ SwTOXDescription& rDesc = pTOXDlg->GetTOXDescription(aCurType);
+ String sMainEntryCharStyle = rDesc.GetMainEntryCharStyle();
+ if(sMainEntryCharStyle.Len())
+ {
+ if( LISTBOX_ENTRY_NOTFOUND ==
+ aMainEntryStyleLB.GetEntryPos(sMainEntryCharStyle))
+ aMainEntryStyleLB.InsertEntry(
+ sMainEntryCharStyle);
+ aMainEntryStyleLB.SelectEntry(sMainEntryCharStyle);
+ }
+ else
+ aMainEntryStyleLB.SelectEntry(sNoCharStyle);
+ aRelToStyleCB.Check(pCurrentForm->IsRelTabPos());
+ aAlphaDelimCB.Check(rDesc.GetIndexOptions()&TOI_ALPHA_DELIMITTER);
+ }
+ aCommaSeparatedCB.Check(pCurrentForm->IsCommaSeparated());
+}
+/*-- 16.06.99 10:47:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void lcl_ChgWidth(Window& rWin, long nDiff)
+{
+ Size aTempSz(rWin.GetSizePixel());
+ aTempSz.Width() += nDiff;
+ rWin.SetSizePixel(aTempSz);
+}
+/* ----------------------------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void lcl_ChgXPos(Window& rWin, long nDiff)
+{
+ Point aTempPos(rWin.GetPosPixel());
+ aTempPos.X() += nDiff;
+ rWin.SetPosPixel(aTempPos);
+}
+/* ----------------------------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwTOXEntryTabPage::ActivatePage( const SfxItemSet& rSet)
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+
+ pCurrentForm = pTOXDlg->GetForm(aCurType);
+ if( !( aLastTOXType == aCurType ))
+ {
+ BOOL bToxIsAuthorities = TOX_AUTHORITIES == aCurType.eType;
+ BOOL bToxIsIndex = TOX_INDEX == aCurType.eType;
+ BOOL bToxIsContent = TOX_CONTENT == aCurType.eType;
+
+ aLevelLB.Clear();
+ for(sal_uInt16 i = 1; i < pCurrentForm->GetFormMax(); i++)
+ {
+ if(bToxIsAuthorities)
+ aLevelLB.InsertEntry( SwAuthorityFieldType::GetAuthTypeName(
+ (ToxAuthorityType) (i - 1)) );
+ else if( bToxIsIndex )
+ {
+ if(i == 1)
+ aLevelLB.InsertEntry( sDelimStr );
+ else
+ aLevelLB.InsertEntry( String::CreateFromInt32(i - 1) );
+ }
+ else
+ aLevelLB.InsertEntry(String::CreateFromInt32(i));
+ }
+ if(bToxIsAuthorities)
+ {
+ //
+ SwWrtShell& rSh = pTOXDlg->GetWrtShell();
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ rSh.GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ if(pFType->IsSortByDocument())
+ aSortDocPosRB.Check();
+ else
+ {
+ aSortContentRB.Check();
+ sal_uInt16 nKeyCount = pFType->GetSortKeyCount();
+ if(0 < nKeyCount)
+ {
+ const SwTOXSortKey* pKey = pFType->GetSortKey(0);
+ aFirstKeyLB.SelectEntryPos(
+ aFirstKeyLB.GetEntryPos((void*)(sal_uInt32)pKey->eField));
+ aFirstSortUpRB.Check(pKey->bSortAscending);
+ aFirstSortDownRB.Check(!pKey->bSortAscending);
+ }
+ if(1 < nKeyCount)
+ {
+ const SwTOXSortKey* pKey = pFType->GetSortKey(1);
+ aSecondKeyLB.SelectEntryPos(
+ aSecondKeyLB.GetEntryPos((void*)(sal_uInt32)pKey->eField));
+ aSecondSortUpRB.Check(pKey->bSortAscending);
+ aSecondSortDownRB.Check(!pKey->bSortAscending);
+ }
+ if(2 < nKeyCount)
+ {
+ const SwTOXSortKey* pKey = pFType->GetSortKey(2);
+ aThirdKeyLB.SelectEntryPos(
+ aThirdKeyLB.GetEntryPos((void*)(sal_uInt32)pKey->eField));
+ aThirdSortUpRB.Check(pKey->bSortAscending);
+ aThirdSortDownRB.Check(!pKey->bSortAscending);
+ }
+ }
+ }
+ SortKeyHdl(aSortDocPosRB.IsChecked() ? &aSortDocPosRB : &aSortContentRB);
+ aLevelFT.SetText(sAuthTypeStr);
+ }
+ else
+ aLevelFT.SetText(sLevelStr);
+
+ long nDiff = 0;
+ if( bToxIsAuthorities ? aLevelFT.GetSizePixel() == aLevelGBSize
+ : aLevelFT.GetSizePixel() != aLevelGBSize )
+ {
+ nDiff = aLevelGBSize.Width();
+ if( !bToxIsAuthorities )
+ nDiff *= -1;
+ }
+
+ if(nDiff)
+ {
+// lcl_ChgWidth(aLevelGB, nDiff);
+ lcl_ChgWidth(aLevelFT, nDiff);
+ lcl_ChgWidth(aLevelLB, nDiff);
+ lcl_ChgXPos(aCharStyleFT, nDiff);
+ lcl_ChgXPos(aCharStyleLB, nDiff);
+ lcl_ChgWidth(aCharStyleLB, -nDiff);
+ // lcl_ChgXPos(aEditStylePB, -nDiff);
+ lcl_ChgXPos(aFillCharFT, nDiff);
+ lcl_ChgXPos(aFillCharCB, nDiff);
+ lcl_ChgXPos(aTabPosFT, nDiff);
+ lcl_ChgXPos(aTabPosMF, nDiff);
+ lcl_ChgXPos(aAutoRightCB, nDiff);
+ lcl_ChgXPos(aAuthFieldsLB, nDiff);
+ lcl_ChgXPos(aAuthInsertPB, nDiff);
+ lcl_ChgXPos(aAuthRemovePB, nDiff);
+ lcl_ChgXPos(aTokenWIN, nDiff);
+ lcl_ChgWidth(aTokenWIN, -nDiff);
+ lcl_ChgXPos(aSortDocPosRB, nDiff);
+ lcl_ChgXPos(aSortContentRB, nDiff);
+ lcl_ChgXPos(aFormatGB, nDiff);
+ lcl_ChgWidth(aFormatGB, -nDiff);
+ lcl_ChgXPos(aSortingGB, nDiff);
+ lcl_ChgWidth(aSortingGB, -nDiff);
+ lcl_ChgXPos(aEntryGB, nDiff);
+ lcl_ChgWidth(aEntryGB, -nDiff);
+ }
+ Link aLink = aLevelLB.GetSelectHdl();
+ aLevelLB.SetSelectHdl(Link());
+ aLevelLB.Select( aLevelLB.GetEntry( bToxIsIndex ? 1 : 0 ) );
+ aLevelLB.SetSelectHdl(aLink);
+
+ // sort token buttons
+ aEntryNoPB.SetPosPixel(aButtonPositions[0]);
+ aEntryPB.SetPosPixel(aButtonPositions[ bToxIsContent ? 1 : 0]);
+ aChapterInfoPB.SetPosPixel(aButtonPositions[2]);
+ aPageNoPB.SetPosPixel(aButtonPositions[3]);
+ sal_uInt16 nBtPos = 1;
+ if( bToxIsContent )
+ nBtPos = 2;
+ else if( bToxIsAuthorities )
+ nBtPos = 4;
+ aTabPB.SetPosPixel(aButtonPositions[nBtPos]);
+ aHyperLinkPB.SetPosPixel(aButtonPositions[4]);
+
+ //show or hide controls
+ aAllLevelsPB.Show( bToxIsContent );
+ aEntryNoPB.Show( bToxIsContent );
+ aHyperLinkPB.Show( bToxIsContent );
+ aRelToStyleCB.Show( !bToxIsAuthorities );
+ aChapterInfoPB.Show( bToxIsIndex );
+ aEntryPB.Show( !bToxIsAuthorities );
+ aPageNoPB.Show( !bToxIsAuthorities );
+ aAuthFieldsLB.Show( bToxIsAuthorities );
+ aAuthInsertPB.Show( bToxIsAuthorities );
+ aAuthRemovePB.Show( bToxIsAuthorities );
+ aFormatGB.Show( !bToxIsAuthorities );
+ aSortDocPosRB.Show( bToxIsAuthorities );
+ aSortContentRB.Show( bToxIsAuthorities );
+ aSortingGB.Show( bToxIsAuthorities );
+ aFirstKeyFT.Show( bToxIsAuthorities );
+ aFirstKeyLB.Show( bToxIsAuthorities );
+ aSecondKeyFT.Show( bToxIsAuthorities );
+ aSecondKeyLB.Show( bToxIsAuthorities );
+ aThirdKeyFT.Show( bToxIsAuthorities );
+ aThirdKeyLB.Show( bToxIsAuthorities );
+ aSortKeyGB.Show( bToxIsAuthorities );
+ aFirstSortUpRB.Show( bToxIsAuthorities );
+ aFirstSortDownRB.Show( bToxIsAuthorities );
+ aSecondSortUpRB.Show( bToxIsAuthorities );
+ aSecondSortDownRB.Show( bToxIsAuthorities );
+ aThirdSortUpRB.Show( bToxIsAuthorities );
+ aThirdSortDownRB.Show( bToxIsAuthorities );
+
+ aRelToStyleCB.SetPosPixel( bToxIsIndex ? aRelToStyleIdxPos
+ : aRelToStylePos );
+
+// aRecalcTabCB.Show( aCurType.eType == TOX_CONTENT);
+
+ aMainEntryStyleFT.Show( bToxIsIndex );
+ aMainEntryStyleLB.Show( bToxIsIndex );
+ aAlphaDelimCB.Show( bToxIsIndex );
+ aCommaSeparatedCB.Show( bToxIsIndex );
+
+ //Resizing
+ if( TOX_CONTENT == aLastTOXType.eType|| bToxIsContent )
+ {
+ Point aTokenWinPos(aTokenWIN.GetPosPixel());
+ Size aTokenWinSz(aTokenWIN.GetSizePixel());
+
+ long nButtonWidth = aAllLevelsPB.GetSizePixel().Width();
+ long nButtonXPos = aAllLevelsPB.GetPosPixel().X();
+ long nTokenWinSize;
+ if( bToxIsContent )
+ nTokenWinSize = nButtonXPos - ( nButtonWidth / 13);
+ else
+ nTokenWinSize = nButtonXPos + nButtonWidth;
+ nTokenWinSize -= aTokenWinPos.X();
+ aTokenWinSz.Width() = nTokenWinSize;
+ aTokenWIN.SetSizePixel(aTokenWinSz);
+ }
+ }
+ aLastTOXType = aCurType;
+
+ //invalidate PatternWindow
+ aTokenWIN.Invalidate();
+ LevelHdl(&aLevelLB);
+}
+/* -----------------30.11.99 15:04-------------------
+
+ --------------------------------------------------*/
+void SwTOXEntryTabPage::UpdateDescriptor()
+{
+ WriteBackLevel();
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ SwTOXDescription& rDesc = pTOXDlg->GetTOXDescription(aLastTOXType);
+ if(TOX_INDEX == aLastTOXType.eType)
+ {
+ String sTemp(aMainEntryStyleLB.GetSelectEntry());
+ rDesc.SetMainEntryCharStyle(sNoCharStyle == sTemp ? aEmptyStr : sTemp);
+ sal_uInt16 nIdxOptions = rDesc.GetIndexOptions() & ~TOI_ALPHA_DELIMITTER;
+ if(aAlphaDelimCB.IsChecked())
+ nIdxOptions |= TOI_ALPHA_DELIMITTER;
+ rDesc.SetIndexOptions(nIdxOptions);
+ }
+ else if(TOX_AUTHORITIES == aLastTOXType.eType)
+ {
+ rDesc.SetSortByDocument(aSortDocPosRB.IsChecked());
+ SwTOXSortKey aKey1, aKey2, aKey3;
+ aKey1.eField = (ToxAuthorityField)(sal_uInt32)aFirstKeyLB.GetEntryData(
+ aFirstKeyLB.GetSelectEntryPos());
+ aKey1.bSortAscending = aFirstSortUpRB.IsChecked();
+ aKey2.eField = (ToxAuthorityField)(sal_uInt32)aSecondKeyLB.GetEntryData(
+ aSecondKeyLB.GetSelectEntryPos());
+ aKey2.bSortAscending = aSecondSortUpRB.IsChecked();
+ aKey3.eField = (ToxAuthorityField)(sal_uInt32)aThirdKeyLB.GetEntryData(
+ aThirdKeyLB.GetSelectEntryPos());
+ aKey3.bSortAscending = aThirdSortUpRB.IsChecked();
+
+
+ rDesc.SetSortKeys(aKey1, aKey2, aKey3);
+ }
+ SwForm* pCurrentForm = pTOXDlg->GetForm(aLastTOXType);
+ if(aRelToStyleCB.IsVisible())
+ {
+ pCurrentForm->SetRelTabPos(aRelToStyleCB.IsChecked());
+ }
+ if(aCommaSeparatedCB.IsVisible())
+ pCurrentForm->SetCommaSeparated(aCommaSeparatedCB.IsChecked());
+}
+/*-- 16.06.99 10:47:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+int SwTOXEntryTabPage::DeactivatePage( SfxItemSet* pSet)
+{
+ UpdateDescriptor();
+ return LEAVE_PAGE;
+}
+/*-- 16.06.99 10:47:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SfxTabPage* SwTOXEntryTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet)
+{
+ return new SwTOXEntryTabPage(pParent, rAttrSet);
+}
+/*-- 16.06.99 10:47:35---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, EditStyleHdl, PushButton*, pBtn)
+{
+ if( LISTBOX_ENTRY_NOTFOUND != aCharStyleLB.GetSelectEntryPos())
+ {
+ SfxStringItem aStyle(SID_STYLE_EDIT, aCharStyleLB.GetSelectEntry());
+ SfxUInt16Item aFamily(SID_STYLE_FAMILY, SFX_STYLE_FAMILY_CHAR);
+ // TODO: WrtShell?
+// SwPtrItem aShell(FN_PARAM_WRTSHELL, pWrtShell);
+ Window* pDefDlgParent = Application::GetDefDialogParent();
+ Application::SetDefDialogParent( pBtn );
+ ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell().
+ GetView().GetViewFrame()->GetDispatcher()->Execute(
+ SID_STYLE_EDIT, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_MODAL,
+ &aStyle, &aFamily/*, &aShell*/, 0L);
+ Application::SetDefDialogParent( pDefDlgParent );
+ }
+ return 0;
+}
+/* -----------------04.10.99 11:34-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, RemoveInsertAuthHdl, PushButton*, pButton)
+{
+ sal_Bool bInsert = pButton == &aAuthInsertPB;
+ if(bInsert)
+ {
+ sal_uInt16 nSelPos = aAuthFieldsLB.GetSelectEntryPos();
+ String sToInsert(aAuthFieldsLB.GetSelectEntry());
+ SwFormToken aInsert(TOKEN_AUTHORITY);
+ aInsert.nAuthorityField = (sal_uInt16)(sal_uInt32)aAuthFieldsLB.GetEntryData(nSelPos);
+ aTokenWIN.InsertAtSelection(String::CreateFromAscii(
+ SwForm::aFormAuth), aInsert);
+ aAuthFieldsLB.RemoveEntry(sToInsert);
+ aAuthFieldsLB.SelectEntryPos( nSelPos ? nSelPos - 1 : 0);
+ }
+ else
+ {
+ Control* pCtrl = aTokenWIN.GetActiveControl();
+ DBG_ASSERT(WINDOW_EDIT != pCtrl->GetType(), "Remove should be disabled")
+ if( WINDOW_EDIT != pCtrl->GetType() )
+ {
+ //fill it into the ListBox
+ const SwFormToken& rToken = ((SwTOXButton*)pCtrl)->GetFormToken();
+ PreTokenButtonRemoved(rToken);
+ aTokenWIN.RemoveControl((SwTOXButton*)pCtrl);
+ }
+ }
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------------------17.01.00 13:44--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwTOXEntryTabPage::PreTokenButtonRemoved(const SwFormToken& rToken)
+{
+ //fill it into the ListBox
+ sal_uInt32 nData = rToken.nAuthorityField;
+ String sTemp(SW_RES(STR_AUTH_FIELD_START + nData));
+ sTemp.EraseAllChars('~');
+ sal_uInt16 nPos = aAuthFieldsLB.InsertEntry(sTemp);
+ aAuthFieldsLB.SetEntryData(nPos, (void*)(nData));
+}
+/*-- 16.06.99 10:47:35---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, InsertTokenHdl, PushButton*, pBtn)
+{
+ String sText;
+ FormTokenType eTokenType;
+ if(pBtn == &aEntryNoPB)
+ {
+ sText.AssignAscii(SwForm::aFormEntryNum);
+ eTokenType = TOKEN_ENTRY_NO;
+ }
+ else if(pBtn == &aEntryPB)
+ {
+ if( TOX_CONTENT == pCurrentForm->GetTOXType() )
+ {
+ sText.AssignAscii( SwForm::aFormEntryTxt );
+ eTokenType = TOKEN_ENTRY_TEXT;
+ }
+ else
+ {
+ sText.AssignAscii( SwForm::aFormEntry);
+ eTokenType = TOKEN_ENTRY;
+ }
+ }
+ else if(pBtn == &aChapterInfoPB)
+ {
+ sText.AssignAscii( SwForm::aFormChapterMark);
+ eTokenType = TOKEN_CHAPTER_INFO;
+ }
+ else if(pBtn == &aPageNoPB)
+ {
+ sText.AssignAscii(SwForm::aFormPageNums);
+ eTokenType = TOKEN_PAGE_NUMS;
+ }
+ else if(pBtn == &aHyperLinkPB)
+ {
+ sText.AssignAscii(SwForm::aFormLinkStt);
+ eTokenType = TOKEN_LINK_START;
+ }
+ else if(pBtn == &aTabPB)
+ {
+ sText.AssignAscii(SwForm::aFormTab);
+ eTokenType = TOKEN_TAB_STOP;
+ }
+ SwFormToken aInsert(eTokenType);
+ aInsert.nTabStopPosition = 0;
+ aTokenWIN.InsertAtSelection(sText, aInsert);
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------------------14.01.00 11:53--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, AllLevelsHdl, PushButton*, pButton)
+{
+ //get current level
+ //write it into all levels
+ if(aTokenWIN.IsValid())
+ {
+ String sNewToken = aTokenWIN.GetPattern();
+ for(sal_uInt16 i = 1; i < pCurrentForm->GetFormMax(); i++)
+ pCurrentForm->SetPattern(i, sNewToken);
+ //
+ ModifyHdl(this);
+ }
+ return 0;
+}
+
+/* -----------------02.12.99 12:40-------------------
+
+ --------------------------------------------------*/
+void SwTOXEntryTabPage::WriteBackLevel()
+{
+ if(aTokenWIN.IsValid())
+ {
+ String sNewToken = aTokenWIN.GetPattern();
+ sal_uInt16 nLastLevel = aTokenWIN.GetLastLevel();
+ if(nLastLevel != USHRT_MAX)
+ pCurrentForm->SetPattern(nLastLevel + 1, sNewToken );
+ }
+}
+/*-- 16.06.99 10:47:35---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, LevelHdl, SvTreeListBox*, pBox)
+{
+ if(bInLevelHdl)
+ return 0;
+ bInLevelHdl = sal_True;
+ WriteBackLevel();
+
+ sal_uInt16 nLevel = pBox->GetModel()->GetAbsPos(pBox->FirstSelected());
+ aTokenWIN.SetForm(*pCurrentForm, nLevel);
+ if(TOX_AUTHORITIES == pCurrentForm->GetTOXType())
+ {
+ //fill the types in
+ aAuthFieldsLB.Clear();
+ for( sal_uInt32 i = 0; i < AUTH_FIELD_END; i++)
+ {
+ String sTmp(SW_RES(STR_AUTH_FIELD_START + i));
+ sTmp.EraseAllChars('~');
+ sal_uInt16 nPos = aAuthFieldsLB.InsertEntry(sTmp);
+ aAuthFieldsLB.SetEntryData(nPos, (void*)(i));
+ }
+ String sLevelPattern(pCurrentForm->GetPattern(nLevel + 1));
+ SwFormTokenEnumerator aEnumerator(sLevelPattern);
+ while(aEnumerator.HasNextToken())
+ {
+ SwFormToken aToken = aEnumerator.GetNextToken();
+ if(TOKEN_AUTHORITY == aToken.eTokenType)
+ {
+ sal_uInt32 nSearch = aToken.nAuthorityField;
+ sal_uInt16 nLstBoxPos = aAuthFieldsLB.GetEntryPos( (void*) nSearch );
+ DBG_ASSERT(LISTBOX_ENTRY_NOTFOUND != nLstBoxPos, "Entry not found?")
+ aAuthFieldsLB.RemoveEntry(nLstBoxPos);
+ }
+ }
+ aAuthFieldsLB.SelectEntryPos(0);
+ }
+ bInLevelHdl = sal_False;
+ pBox->GrabFocus();
+ return 0;
+}
+/* -----------------20.10.99 13:16-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, SortKeyHdl, RadioButton*, pButton)
+{
+ sal_Bool bEnable = &aSortContentRB == pButton;
+ aFirstKeyFT.Enable(bEnable);
+ aFirstKeyLB.Enable(bEnable);
+ aSecondKeyFT.Enable(bEnable);
+ aSecondKeyLB.Enable(bEnable);
+ aThirdKeyFT.Enable(bEnable);
+ aThirdKeyLB.Enable(bEnable);
+ aSortKeyGB.Enable(bEnable);
+ aFirstSortUpRB.Enable(bEnable);
+ aFirstSortDownRB.Enable(bEnable);
+ aSecondSortUpRB.Enable(bEnable);
+ aSecondSortDownRB.Enable(bEnable);
+ aThirdSortUpRB.Enable(bEnable);
+ aThirdSortDownRB.Enable(bEnable);
+ return 0;
+}
+/* -----------------01.07.99 12:21-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, TokenSelectedHdl, SwFormToken*, pToken)
+{
+ if(pToken->sCharStyleName.Len())
+ aCharStyleLB.SelectEntry(pToken->sCharStyleName);
+ else
+ aCharStyleLB.SelectEntry(sNoCharStyle);
+ //StyleSelectHdl(&aCharStyleLB);
+
+ sal_Bool bTabStop = pToken->eTokenType == TOKEN_TAB_STOP;
+
+ aCharStyleLB.Enable(!bTabStop);
+ String sEntry = aCharStyleLB.GetSelectEntry();
+ aEditStylePB.Enable(!bTabStop && sEntry != sNoCharStyle);
+
+ if(pToken->eTokenType == TOKEN_CHAPTER_INFO)
+ {
+ if(pToken->nChapterFormat < 3)
+ aChapterEntryLB.SelectEntryPos(pToken->nChapterFormat);
+ else
+ aChapterEntryLB.SetNoSelection();
+ }
+
+ aFillCharFT.Show(bTabStop);
+ aFillCharCB.Show(bTabStop);
+ aTabPosFT.Show(bTabStop);
+ aTabPosMF.Show(bTabStop);
+ aAutoRightCB.Show(bTabStop);
+ aAutoRightCB.Enable(bTabStop);
+ if(bTabStop)
+ {
+ aTabPosMF.SetValue(aTabPosMF.Normalize(pToken->nTabStopPosition), FUNIT_TWIP);
+ aAutoRightCB.Check(SVX_TAB_ADJUST_END == pToken->eTabAlign);
+ aFillCharCB.SetText(pToken->cTabFillChar);
+ aTabPosFT.Enable(!aAutoRightCB.IsChecked());
+ aTabPosMF.Enable(!aAutoRightCB.IsChecked());
+ }
+ else
+ {
+ aTabPosMF.Enable(sal_False);
+ }
+
+ aChapterEntryFT.Show(pToken->eTokenType == TOKEN_CHAPTER_INFO);
+ aChapterEntryLB.Show(pToken->eTokenType == TOKEN_CHAPTER_INFO);
+
+ //now enable the visible buttons
+ //- inserting the same type of control is not allowed
+ //- some types of controls can only appear once (EntryText EntryNumber)
+
+ if(aEntryNoPB.IsVisible())
+ {
+ aEntryNoPB.Enable(TOKEN_ENTRY_NO != pToken->eTokenType );
+ }
+ if(aEntryPB.IsVisible())
+ {
+ aEntryPB.Enable(TOKEN_ENTRY_TEXT != pToken->eTokenType &&
+ !aTokenWIN.Contains(TOKEN_ENTRY_TEXT)
+ && !aTokenWIN.Contains(TOKEN_ENTRY));
+ }
+
+ if(aChapterInfoPB.IsVisible())
+ {
+ aChapterInfoPB.Enable(TOKEN_CHAPTER_INFO != pToken->eTokenType);
+ }
+ if(aPageNoPB.IsVisible())
+ {
+ aPageNoPB.Enable(TOKEN_PAGE_NUMS != pToken->eTokenType &&
+ !aTokenWIN.Contains(TOKEN_PAGE_NUMS));
+ }
+ if(aTabPB.IsVisible())
+ {
+ aTabPB.Enable(!bTabStop);
+ }
+ if(aHyperLinkPB.IsVisible())
+ {
+ aHyperLinkPB.Enable(TOKEN_LINK_START != pToken->eTokenType &&
+ TOKEN_LINK_END != pToken->eTokenType);
+ }
+ //table of authorities
+ if(aAuthInsertPB.IsVisible())
+ {
+ sal_Bool bText = TOKEN_TEXT == pToken->eTokenType;
+ aAuthInsertPB.Enable(bText && aAuthFieldsLB.GetSelectEntry().Len());
+ aAuthRemovePB.Enable(!bText);
+ }
+
+ return 0;
+}
+/* -----------------01.07.99 12:36-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, StyleSelectHdl, ListBox*, pBox)
+{
+ String sEntry = pBox->GetSelectEntry();
+ sal_uInt16 nId = (sal_uInt16)(long)pBox->GetEntryData(pBox->GetSelectEntryPos());
+ aEditStylePB.Enable(sEntry != sNoCharStyle);
+ if(sEntry == sNoCharStyle)
+ sEntry.Erase();
+ Control* pCtrl = aTokenWIN.GetActiveControl();
+ DBG_ASSERT(pCtrl, "no active control?")
+ if(pCtrl)
+ {
+ if(WINDOW_EDIT == pCtrl->GetType())
+ ((SwTOXEdit*)pCtrl)->SetCharStyleName(sEntry, nId);
+ else
+ ((SwTOXButton*)pCtrl)->SetCharStyleName(sEntry, nId);
+
+ }
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------------------11.01.00 12:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, ChapterInfoHdl, ListBox*, pBox)
+{
+ sal_uInt16 nPos = pBox->GetSelectEntryPos();
+ if(LISTBOX_ENTRY_NOTFOUND != nPos)
+ {
+ Control* pCtrl = aTokenWIN.GetActiveControl();
+ DBG_ASSERT(pCtrl, "no active control?")
+ if(pCtrl && WINDOW_EDIT != pCtrl->GetType())
+ ((SwTOXButton*)pCtrl)->SetChapterInfo(nPos);
+
+ ModifyHdl(0);
+ }
+ return 0;
+}
+/* -----------------19.08.99 15:37-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, TabPosHdl, MetricField*, pField)
+{
+ Control* pCtrl = aTokenWIN.GetActiveControl();
+ DBG_ASSERT(pCtrl && WINDOW_EDIT != pCtrl->GetType() &&
+ TOKEN_TAB_STOP == ((SwTOXButton*)pCtrl)->GetFormToken().eTokenType,
+ "no active style::TabStop control?")
+ if( pCtrl && WINDOW_EDIT != pCtrl->GetType() )
+ {
+ ((SwTOXButton*)pCtrl)->SetTabPosition(
+ pField->Denormalize( pField->GetValue( FUNIT_TWIP )));
+ }
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------09.09.99 15:37-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, FillCharHdl, ComboBox*, pBox)
+{
+ Control* pCtrl = aTokenWIN.GetActiveControl();
+ DBG_ASSERT(pCtrl && WINDOW_EDIT != pCtrl->GetType() &&
+ TOKEN_TAB_STOP == ((SwTOXButton*)pCtrl)->GetFormToken().eTokenType,
+ "no active style::TabStop control?")
+ if(pCtrl && WINDOW_EDIT != pCtrl->GetType())
+ {
+ sal_Unicode cSet;
+ if( pBox->GetText().Len() )
+ cSet = pBox->GetText().GetChar(0);
+ else
+ cSet = ' ';
+ ((SwTOXButton*)pCtrl)->SetFillChar( cSet );
+ }
+ ModifyHdl(0);
+ return 0;
+}
+
+/*-- 16.06.99 10:47:36---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+IMPL_LINK(SwTOXEntryTabPage, AutoRightHdl, CheckBox*, pBox)
+{
+ //the most right style::TabStop is usually right aligned
+ Control* pCurCtrl = aTokenWIN.GetActiveControl();
+ DBG_ASSERT(WINDOW_EDIT != pCurCtrl->GetType() &&
+ ((SwTOXButton*)pCurCtrl)->GetFormToken().eTokenType == TOKEN_TAB_STOP,
+ "no style::TabStop selected!")
+
+ const SwFormToken& rToken = ((SwTOXButton*)pCurCtrl)->GetFormToken();
+ sal_Bool bChecked = pBox->IsChecked();
+ if(rToken.eTokenType == TOKEN_TAB_STOP)
+ ((SwTOXButton*)pCurCtrl)->SetTabAlign(
+ bChecked ? SVX_TAB_ADJUST_END : SVX_TAB_ADJUST_LEFT);
+ aTabPosFT.Enable(!bChecked);
+ aTabPosMF.Enable(!bChecked);
+ ModifyHdl(0);
+ return 0;
+}
+/* -----------------16.06.99 11:00-------------------
+
+ --------------------------------------------------*/
+void SwTOXEntryTabPage::SetWrtShell(SwWrtShell& rSh)
+{
+ SwDocShell* pDocSh = rSh.GetView().GetDocShell();
+ ::FillCharStyleListBox(aCharStyleLB, pDocSh, TRUE);
+ for(sal_uInt16 i = 0; i < aCharStyleLB.GetEntryCount(); i++)
+ {
+ aMainEntryStyleLB.InsertEntry( aCharStyleLB.GetEntry(i) );
+ aMainEntryStyleLB.SetEntryData(i, aCharStyleLB.GetEntryData(i));
+ }
+ String sTmp; GetDocPoolNm( RES_POOLCHR_IDX_MAIN_ENTRY, sTmp );
+ aMainEntryStyleLB.SelectEntry(sTmp);
+}
+/* -----------------------------23.12.99 14:23--------------------------------
+
+ ---------------------------------------------------------------------------*/
+String SwTOXEntryTabPage::GetLevelHelp(sal_uInt16 nLevel) const
+{
+ String sRet;
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType();
+ if( TOX_INDEX == aCurType.eType )
+ GetDocPoolNm( 1 == nLevel ? RES_POOLCOLL_TOX_IDXBREAK
+ : RES_POOLCOLL_TOX_IDX1 + nLevel-2, sRet );
+
+ else if( TOX_AUTHORITIES == aCurType.eType )
+ {
+ //wildcard -> show entry text
+ sRet = '*';
+ }
+ return sRet;
+}
+/* -----------------16.06.99 15:18-------------------
+
+ --------------------------------------------------*/
+
+SwTokenWindow::SwTokenWindow(SwTOXEntryTabPage* pParent, const ResId& rResId) :
+ Window( pParent, rResId ),
+ aLeftScrollWin(this, ResId(WIN_LEFT_SCROLL )),
+ aCtrlParentWin(this, ResId(WIN_CTRL_PARENT )),
+ aRightScrollWin(this, ResId(WIN_RIGHT_SCROLL )),
+ pForm(0),
+ m_pParent(pParent),
+ nLevel(0),
+ bValid(sal_False),
+ pActiveCtrl(0),
+ sCharStyle(ResId(STR_CHARSTYLE))
+{
+ SetHelpId(HID_TOKEN_WINDOW);
+ for(sal_uInt16 i = 0; i < TOKEN_END; i++)
+ {
+ sal_uInt16 nTextId = STR_BUTTON_TEXT_START + i;
+ if( STR_TOKEN_ENTRY_TEXT == nTextId )
+ nTextId = STR_TOKEN_ENTRY;
+ aButtonTexts[i] = String(ResId(nTextId));
+
+ sal_uInt16 nHelpId = STR_BUTTON_HELP_TEXT_START + i;
+ if(STR_TOKEN_HELP_ENTRY_TEXT == nHelpId)
+ nHelpId = STR_TOKEN_HELP_ENTRY;
+ aButtonHelpTexts[i] = String(ResId(nHelpId));
+ }
+
+ FreeResource();
+
+ Link aLink(LINK(this, SwTokenWindow, ScrollHdl));
+ aLeftScrollWin.SetClickHdl(aLink);
+ aRightScrollWin.SetClickHdl(aLink);
+}
+/* -----------------01.07.99 12:17-------------------
+
+ --------------------------------------------------*/
+SwTokenWindow::~SwTokenWindow()
+{
+// for(sal_uInt16 i = GetItemCount(); i ; i--)
+// RemoveItem(i - 1);
+
+ for( sal_uInt16 i = aControlList.Count(); i; )
+ {
+ Control* pControl = aControlList.Remove( --i );
+ delete pControl;
+ }
+}
+/* -----------------16.06.99 13:56-------------------
+
+ --------------------------------------------------*/
+void SwTokenWindow::SetForm(SwForm& rForm, sal_uInt16 nL)
+{
+ SetActiveControl(0);
+ bValid = sal_True;
+ if(pForm)
+ {
+ //apply current level settings to the form
+ for( sal_uInt16 i = aControlList.Count(); i; )
+ {
+ Control* pControl = aControlList.Remove( --i );
+ delete pControl;
+ }
+ }
+ nLevel = nL;
+ pForm = &rForm;
+ //now the display
+ if(nLevel < MAXLEVEL || rForm.GetTOXType() == TOX_AUTHORITIES)
+ {
+ sal_uInt16 nControlId = 1;
+ Size aToolBoxSize = GetSizePixel();
+
+ String sLevelPattern(pForm->GetPattern(nLevel + 1));
+ SwFormTokenEnumerator aEnumerator(sLevelPattern);
+ sal_Bool bLastWasText = sal_False; //assure alternating text - code - text
+
+ Control* pSetActiveControl = 0;
+ while(aEnumerator.HasNextToken())
+ {
+ SwFormToken aToken(aEnumerator.GetNextToken());
+ if(TOKEN_TEXT == aToken.eTokenType)
+ {
+ DBG_ASSERT(!bLastWasText, "text following text is invalid")
+ Control* pCtrl = InsertItem(aToken.sText, aToken);
+ bLastWasText = sal_True;
+ if(!GetActiveControl())
+ SetActiveControl(pCtrl);
+ }
+ else
+ {
+ if( !bLastWasText )
+ {
+ bLastWasText = sal_True;
+ SwFormToken aTemp(TOKEN_TEXT);
+ Control* pCtrl = InsertItem(aEmptyStr, aTemp);
+ if(!pSetActiveControl)
+ pSetActiveControl = pCtrl;
+ }
+ const sal_Char* pTmp = 0;
+ switch( aToken.eTokenType )
+ {
+ case TOKEN_ENTRY_NO: pTmp = SwForm::aFormEntryNum; break;
+ case TOKEN_ENTRY_TEXT: pTmp = SwForm::aFormEntryTxt; break;
+ case TOKEN_ENTRY: pTmp = SwForm::aFormEntry; break;
+ case TOKEN_TAB_STOP: pTmp = SwForm::aFormTab; break;
+ case TOKEN_PAGE_NUMS: pTmp = SwForm::aFormPageNums; break;
+ case TOKEN_CHAPTER_INFO:pTmp = SwForm::aFormChapterMark; break;
+ case TOKEN_LINK_START: pTmp = SwForm::aFormLinkStt; break;
+ case TOKEN_LINK_END: pTmp = SwForm::aFormLinkEnd; break;
+ case TOKEN_AUTHORITY: pTmp = SwForm::aFormAuth; break;
+ }
+
+ InsertItem( pTmp ? String::CreateFromAscii(pTmp)
+ : aEmptyStr, aToken );
+ bLastWasText = sal_False;
+ }
+ }
+ SetActiveControl(pSetActiveControl);
+
+ if(!bLastWasText)
+ {
+ bLastWasText = sal_True;
+ SwFormToken aTemp(TOKEN_TEXT);
+ InsertItem(aEmptyStr, aTemp);
+ }
+ }
+ AdjustScrolling();
+}
+/* -----------------19.08.99 13:00-------------------
+
+ --------------------------------------------------*/
+void SwTokenWindow::SetActiveControl(Control* pSet)
+{
+ if( pSet != pActiveCtrl )
+ {
+ if( pActiveCtrl && WINDOW_EDIT == pActiveCtrl->GetType() )
+ ((SwTOXEdit*)pActiveCtrl)->SetControlBackground( COL_WHITE );
+
+ pActiveCtrl = pSet;
+ if( pActiveCtrl )
+ {
+ pActiveCtrl->GrabFocus();
+ //it must be a SwTOXEdit
+ const SwFormToken* pFToken;
+ if( WINDOW_EDIT == pActiveCtrl->GetType() )
+ {
+ ((SwTOXEdit*)pActiveCtrl)->SetControlBackground(COL_LIGHTGRAY);
+ pFToken = &((SwTOXEdit*)pActiveCtrl)->GetFormToken();
+ }
+ else
+ pFToken = &((SwTOXButton*)pActiveCtrl)->GetFormToken();
+
+ SwFormToken aTemp( *pFToken );
+ aButtonSelectedHdl.Call( &aTemp );
+ }
+ }
+}
+
+/* -----------------17.06.99 09:53-------------------
+
+ --------------------------------------------------*/
+Control* SwTokenWindow::InsertItem(const String& rText, const SwFormToken& rToken)
+{
+ Control* pRet = 0;
+ Control* pLast = aControlList.Last();
+ Size aControlSize(GetOutputSizePixel());
+ Point aControlPos;
+ if( pLast )
+ {
+ aControlSize = pLast->GetSizePixel();
+ aControlPos = pLast->GetPosPixel();
+ aControlPos.X() += aControlSize.Width();
+ }
+ if(TOKEN_TEXT == rToken.eTokenType)
+ {
+ SwTOXEdit* pEdit = new SwTOXEdit(&aCtrlParentWin, this, rToken);
+ pEdit->SetPosPixel(aControlPos);
+ aControlList.Insert(pEdit, aControlList.Count());
+ pEdit->SetText(rText);
+ Size aEditSize(aControlSize);
+ aEditSize.Width() = pEdit->GetTextWidth(rText) + EDIT_MINWIDTH;
+ pEdit->SetSizePixel(aEditSize);
+ pEdit->SetModifyHdl(LINK(this, SwTokenWindow, EditResize ));
+ pEdit->SetPrevNextLink(LINK(this, SwTokenWindow, NextItemHdl));
+ pEdit->SetGetFocusLink(LINK(this, SwTokenWindow, TbxFocusHdl));
+ pEdit->Show();
+ pRet = pEdit;
+ }
+ else
+ {
+ SwTOXButton* pButton = new SwTOXButton(&aCtrlParentWin, this, rToken);
+ pButton->SetPosPixel(aControlPos);
+ aControlList.Insert(pButton, aControlList.Count());
+ Size aEditSize(aControlSize);
+ aEditSize.Width() = pButton->GetTextWidth(rText) + 5;
+ pButton->SetControlBackground(Color(COL_WHITE));
+ pButton->SetSizePixel(aEditSize);
+ pButton->SetPrevNextLink(LINK(this, SwTokenWindow, NextItemBtnHdl));
+ pButton->SetGetFocusLink(LINK(this, SwTokenWindow, TbxFocusBtnHdl));
+ if(TOKEN_AUTHORITY != rToken.eTokenType)
+ pButton->SetText(aButtonTexts[rToken.eTokenType]);
+ else
+ {
+ //use the first two chars as symbol
+ String sTmp(SwAuthorityFieldType::GetAuthFieldName(
+ (ToxAuthorityField)rToken.nAuthorityField));
+ pButton->SetText(sTmp.Copy(0, 2));
+ }
+ pButton->Show();
+ pRet = pButton;
+ }
+ return pRet;
+}
+/* -----------------16.07.99 11:50-------------------
+
+ --------------------------------------------------*/
+void SwTokenWindow::InsertAtSelection(
+ const String& rText,
+ const SwFormToken& rToken)
+{
+ DBG_ASSERT(pActiveCtrl, "no active control!")
+ if(!pActiveCtrl)
+ return;
+ SwFormToken aToInsertToken(rToken);
+ if(TOKEN_LINK_START == aToInsertToken.eTokenType)
+ {
+ //determine if start or end of hyperlink is appropriate
+ //eventually change a following link start into a link end
+ // groups of LS LE should be ignored
+ // <insert>
+ //LS <insert>
+ //LE <insert>
+ //<insert> LS
+ //<insert> LE
+ //<insert>
+ sal_Bool bPreStartLinkFound = sal_False; //
+ sal_Bool bPreEndLinkFound = sal_False;
+
+ const Control* pControl = aControlList.First();
+ const Control* pExchange = 0;
+ while( pControl && pActiveCtrl != pControl )
+ {
+ if( WINDOW_EDIT != pControl->GetType())
+ {
+ const SwFormToken& rNewToken =
+ ((SwTOXButton*)pControl)->GetFormToken();
+ if( TOKEN_LINK_START == rNewToken.eTokenType )
+ {
+ bPreStartLinkFound = sal_True;
+ pExchange = 0;
+ }
+ else if(TOKEN_LINK_END == rNewToken.eTokenType)
+ {
+ if( bPreStartLinkFound )
+ bPreStartLinkFound = sal_False;
+ else
+ {
+ bPreEndLinkFound = sal_False;
+ pExchange = pControl;
+ }
+ }
+ }
+ pControl = aControlList.Next();
+ }
+
+ sal_Bool bPostLinkEndFound = sal_False;
+ sal_Bool bPostLinkStartFound = sal_False;
+ if(!bPreStartLinkFound && !bPreEndLinkFound)
+ while(pControl)
+ {
+ if( pControl != pActiveCtrl &&
+ WINDOW_EDIT != pControl->GetType())
+ {
+ const SwFormToken& rNewToken =
+ ((SwTOXButton*)pControl)->GetFormToken();
+ if( TOKEN_LINK_START == rNewToken.eTokenType )
+ {
+ if(bPostLinkStartFound)
+ break;
+ bPostLinkStartFound = sal_True;
+ pExchange = pControl;
+ }
+ else if(TOKEN_LINK_END == rNewToken.eTokenType )
+ {
+ if(bPostLinkStartFound)
+ {
+ bPostLinkStartFound = sal_False;
+ pExchange = 0;
+ }
+ else
+ {
+ bPostLinkEndFound = sal_True;
+ }
+ break;
+ }
+ }
+ pControl = aControlList.Next();
+ }
+
+ if(bPreStartLinkFound)
+ {
+ aToInsertToken.eTokenType = TOKEN_LINK_END;
+ aToInsertToken.sText = aButtonTexts[TOKEN_LINK_END];
+ }
+
+ if(bPostLinkStartFound)
+ {
+ DBG_ASSERT(pExchange, "no control to exchange?")
+ if(pExchange)
+ {
+ ((SwTOXButton*)pExchange)->SetLinkEnd();
+ ((SwTOXButton*)pExchange)->SetText(aButtonTexts[TOKEN_LINK_END]);
+ }
+ }
+
+ if(bPreEndLinkFound)
+ {
+ DBG_ASSERT(pExchange, "no control to exchange?")
+ if(pExchange)
+ {
+ ((SwTOXButton*)pExchange)->SetLinkStart();
+ ((SwTOXButton*)pExchange)->SetText(aButtonTexts[TOKEN_LINK_START]);
+ }
+ }
+ }
+
+ //if the active control is text then insert a new button at the selection
+ //else replace the button
+ sal_uInt32 nActivePos = aControlList.GetPos(pActiveCtrl);
+ sal_uInt32 nInsertPos = nActivePos;
+
+ Size aControlSize(GetOutputSizePixel());
+ if( WINDOW_EDIT == pActiveCtrl->GetType())
+ {
+ nInsertPos++;
+ Selection aSel = ((SwTOXEdit*)pActiveCtrl)->GetSelection();
+ aSel.Justify();
+ String sEditText = ((SwTOXEdit*)pActiveCtrl)->GetText();
+ String sLeft = sEditText.Copy(0, aSel.A());
+ String sRight = sEditText.Copy(aSel.B(), sEditText.Len() - aSel.B());
+
+ ((SwTOXEdit*)pActiveCtrl)->SetText(sLeft);
+ ((SwTOXEdit*)pActiveCtrl)->AdjustSize();
+
+ SwFormToken aTmpToken(TOKEN_TEXT);
+ SwTOXEdit* pEdit = new SwTOXEdit(&aCtrlParentWin, this, aTmpToken);
+ aControlList.Insert(pEdit, nActivePos + 1);
+ pEdit->SetText(sRight);
+ pEdit->SetSizePixel(aControlSize);
+ pEdit->AdjustSize();
+ pEdit->SetModifyHdl(LINK(this, SwTokenWindow, EditResize ));
+ pEdit->SetPrevNextLink(LINK(this, SwTokenWindow, NextItemHdl));
+ pEdit->SetGetFocusLink(LINK(this, SwTokenWindow, TbxFocusHdl));
+ pEdit->Show();
+ }
+ else
+ {
+ aControlList.Remove(pActiveCtrl);
+ pActiveCtrl->Hide();
+ delete pActiveCtrl;
+ }
+ //now the new button
+ SwTOXButton* pButton = new SwTOXButton(&aCtrlParentWin, this, aToInsertToken);
+ aControlList.Insert(pButton, nInsertPos);
+ pButton->SetControlBackground(Color(COL_WHITE));
+ pButton->SetPrevNextLink(LINK(this, SwTokenWindow, NextItemBtnHdl));
+ pButton->SetGetFocusLink(LINK(this, SwTokenWindow, TbxFocusBtnHdl));
+ if(TOKEN_AUTHORITY != aToInsertToken.eTokenType)
+ pButton->SetText(aButtonTexts[aToInsertToken.eTokenType]);
+ else
+ {
+ //use the first two chars as symbol
+ String sTmp(SwAuthorityFieldType::GetAuthFieldName(
+ (ToxAuthorityField)aToInsertToken.nAuthorityField));
+ pButton->SetText(sTmp.Copy(0, 2));
+ }
+
+ Size aEditSize(GetOutputSizePixel());
+ aEditSize.Width() = pButton->GetTextWidth(rText) + 5;
+ pButton->SetSizePixel(aEditSize);
+ pButton->Check(sal_True);
+ pButton->Show();
+ SetActiveControl(pButton);
+
+ AdjustPositions();
+}
+/* -----------------19.08.99 12:42-------------------
+
+ --------------------------------------------------*/
+void SwTokenWindow::RemoveControl(SwTOXButton* pDel, sal_Bool bInternalCall )
+{
+ if(bInternalCall && TOX_AUTHORITIES == pForm->GetTOXType())
+ m_pParent->PreTokenButtonRemoved(pDel->GetFormToken());
+
+ sal_uInt32 nActivePos = aControlList.GetPos(pDel);
+ DBG_ASSERT(nActivePos != 0xffffffff, "Control does not exist!");
+ // the two neighbours of the box must be merged
+ // the properties of the right one will be lost
+ DBG_ASSERT(nActivePos && nActivePos < aControlList.Count() - 1,
+ "Button at first or last position?");
+ aControlList.Seek(nActivePos - 1);
+ Control* pLeftEdit = aControlList.GetCurObject();
+ aControlList.Seek(nActivePos + 1);
+ Control* pRightEdit = aControlList.GetCurObject();
+ String sTemp(((SwTOXEdit*)pLeftEdit)->GetText());
+ sTemp += ((SwTOXEdit*)pRightEdit)->GetText();
+ ((SwTOXEdit*)pLeftEdit)->SetText(sTemp);
+ ((SwTOXEdit*)pLeftEdit)->AdjustSize();
+
+ aControlList.Remove(pRightEdit);
+ delete pRightEdit;
+
+ aControlList.Remove(pDel);
+ pActiveCtrl->Hide();
+ delete pActiveCtrl;
+ SetActiveControl(pLeftEdit);
+ AdjustPositions();
+ if(aModifyHdl.IsSet())
+ aModifyHdl.Call(0);
+}
+
+/* -----------------16.07.99 12:39-------------------
+
+ --------------------------------------------------*/
+void SwTokenWindow::AdjustPositions()
+{
+ if(aControlList.Count() > 1)
+ {
+ Control* pCtrl = aControlList.First();
+ Point aNextPos = pCtrl->GetPosPixel();
+ aNextPos.X() += pCtrl->GetSizePixel().Width();
+ while(0 != (pCtrl = aControlList.Next()))
+ {
+ pCtrl->SetPosPixel(aNextPos);
+ aNextPos.X() += pCtrl->GetSizePixel().Width();
+ }
+ AdjustScrolling();
+ }
+};
+/* -----------------------------16.08.00 13:22--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwTokenWindow::MoveControls(long nOffset)
+{
+ // move the complete list
+ Control* pCtrl = aControlList.First();
+ do
+ {
+ Point aPos = pCtrl->GetPosPixel();
+ aPos.X() += nOffset;
+ pCtrl->SetPosPixel(aPos);
+ }while(0 != (pCtrl = aControlList.Next()));
+}
+/* -----------------------------14.01.00 13:03--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwTokenWindow::AdjustScrolling()
+{
+ if(aControlList.Count() > 1)
+ {
+ //validate scroll buttons
+ Control* pLastCtrl = aControlList.Last();
+ Control* pFirstCtrl = aControlList.First();
+ long nSpace = aCtrlParentWin.GetSizePixel().Width();
+ long nWidth = pLastCtrl->GetPosPixel().X() - pFirstCtrl->GetPosPixel().X()
+ + pLastCtrl->GetSizePixel().Width();
+ sal_Bool bEnable = nWidth > nSpace;
+ //the active control must be visible
+ if(bEnable && pActiveCtrl)
+ {
+ Point aActivePos(pActiveCtrl->GetPosPixel());
+ long nMove = 0;
+ if(aActivePos.X() < 0)
+ nMove = -aActivePos.X();
+ else if((aActivePos.X() + pActiveCtrl->GetSizePixel().Width()) > nSpace)
+ nMove = -(aActivePos.X() + pActiveCtrl->GetSizePixel().Width() - nSpace);
+ if(nMove)
+ MoveControls(nMove);
+ aLeftScrollWin.Enable(aControlList.First()->GetPosPixel().X() < 0);
+ Control* pCtrl = aControlList.Last();
+ aRightScrollWin.Enable((pCtrl->GetPosPixel().X() + pCtrl->GetSizePixel().Width()) > nSpace);
+ }
+ else
+ {
+ if(pFirstCtrl)
+ {
+ //if the control fits into the space then the first control must be at postion 0
+ long nFirstPos = pFirstCtrl->GetPosPixel().X();
+ if(nFirstPos != 0)
+ MoveControls(-nFirstPos);
+ }
+ aRightScrollWin.Enable(sal_False);
+ aLeftScrollWin.Enable(sal_False);
+ }
+ }
+}
+/* -----------------------------14.01.00 13:57--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn )
+{
+ if(aControlList.Count())
+ {
+ const long nSpace = aCtrlParentWin.GetSizePixel().Width();
+#ifdef DEBUG
+ //find all start/end positions and print it
+ String sMessage(String::CreateFromAscii("Space: "));
+ sMessage += String::CreateFromInt32(nSpace);
+ sMessage += String::CreateFromAscii(" | ");
+ Control* pDebugCtrl = aControlList.First();
+ do
+ {
+ long nDebugXPos = pDebugCtrl->GetPosPixel().X();
+ long nDebugWidth = pDebugCtrl->GetSizePixel().Width();
+ sMessage += String::CreateFromInt32( nDebugXPos );
+ sMessage += String::CreateFromAscii(" ");
+ sMessage += String::CreateFromInt32(nDebugXPos + nDebugWidth);
+ sMessage += String::CreateFromAscii(" | ");
+
+ }while(0 != (pDebugCtrl = aControlList.Next()));
+
+#endif
+
+ long nMove = 0;
+ if(pBtn == &aLeftScrollWin)
+ {
+ //find the first completely visible control (left edge visible)
+ for(sal_uInt16 i = 0; i < aControlList.Count(); i++ )
+ {
+ Control* pCtrl = aControlList.GetObject(i);
+ long nXPos = pCtrl->GetPosPixel().X();
+ if(nXPos >= 0)
+ {
+ if(!i)
+ //move the current control to the left edge
+ nMove = -nXPos;
+ else
+ //move the left neighbor to the start position
+ nMove = -aControlList.GetObject(i - 1)->GetPosPixel().X();
+ break;
+ }
+ }
+ }
+ else
+ {
+ //find the first completely visible control (left edge visible)
+ for(sal_uInt16 i = aControlList.Count(); i; i-- )
+ {
+ Control* pCtrl = aControlList.GetObject(i - 1);
+ long nCtrlWidth = pCtrl->GetSizePixel().Width();
+ long nXPos = pCtrl->GetPosPixel().X() + nCtrlWidth;
+ if(nXPos <= nSpace)
+ {
+ if( i < aControlList.Count())
+ {
+ //move the right neighbor to the right edge right aligned
+ Control* pRight = aControlList.GetObject(i);
+ nMove = nSpace - pRight->GetPosPixel().X() - pRight->GetSizePixel().Width();
+ }
+ break;
+ }
+ }
+
+ //move it left until it's completely visible
+ }
+ if(nMove)
+ {
+ // move the complete list
+ Control* pCtrl = aControlList.First();
+ do
+ {
+ Point aPos = pCtrl->GetPosPixel();
+ aPos.X() += nMove;
+ pCtrl->SetPosPixel(aPos);
+ }while(0 != (pCtrl = aControlList.Next()));
+ aLeftScrollWin.Enable(aControlList.First()->GetPosPixel().X() < 0);
+ pCtrl = aControlList.Last();
+ aRightScrollWin.Enable((pCtrl->GetPosPixel().X() + pCtrl->GetSizePixel().Width()) > nSpace);
+
+#ifdef DEBUG
+ sMessage.AppendAscii("Move: ");
+ sMessage += String::CreateFromInt32(nMove);
+ GetParent()->GetParent()->GetParent()->SetText(sMessage);
+#endif
+ }
+ }
+ return 0;
+}
+/* -----------------17.06.99 11:59-------------------
+
+ --------------------------------------------------*/
+String SwTokenWindow::GetPattern() const
+{
+ String sRet;
+ const Control* pControl = ((SwTokenWindow*)this)->aControlList.First();
+ while(pControl)
+ {
+ const SwFormToken& rNewToken = WINDOW_EDIT == pControl->GetType()
+ ? ((SwTOXEdit*)pControl)->GetFormToken()
+ : ((SwTOXButton*)pControl)->GetFormToken();
+
+ //TODO: prevent input of TOX_STYLE_DELIMITER in KeyInput
+ sRet += rNewToken.GetString();
+
+ pControl = ((SwTokenWindow*)this)->aControlList.Next();
+ }
+ return sRet;
+}
+/* -----------------19.08.99 11:27-------------------
+ Description: Check if a control of the specified
+ TokenType is already contained in the list
+ --------------------------------------------------*/
+sal_Bool SwTokenWindow::Contains(FormTokenType eSearchFor) const
+{
+ sal_Bool bRet = sal_False;
+ const Control* pControl = ((SwTokenWindow*)this)->aControlList.First();
+ while(pControl)
+ {
+ const SwFormToken& rNewToken = WINDOW_EDIT == pControl->GetType()
+ ? ((SwTOXEdit*)pControl)->GetFormToken()
+ : ((SwTOXButton*)pControl)->GetFormToken();
+
+ if(eSearchFor == rNewToken.eTokenType)
+ {
+ bRet = sal_True;
+ break;
+ }
+ pControl = ((SwTokenWindow*)this)->aControlList.Next();
+ }
+ return bRet;
+}
+//---------------------------------------------------
+BOOL SwTokenWindow::CreateQuickHelp(Control* pCtrl,
+ const SwFormToken& rToken,
+ const HelpEvent& rHEvt)
+{
+ BOOL bRet = FALSE;
+ if( rHEvt.GetMode() & HELPMODE_QUICK )
+ {
+ sal_Bool bBalloon = Help::IsBalloonHelpEnabled();
+ String sEntry;
+ if(bBalloon || rToken.eTokenType != TOKEN_AUTHORITY)
+ sEntry = (aButtonHelpTexts[rToken.eTokenType]);
+ if(rToken.eTokenType == TOKEN_AUTHORITY )
+ {
+ sEntry += SwAuthorityFieldType::GetAuthFieldName(
+ (ToxAuthorityField) rToken.nAuthorityField);
+ }
+
+ Point aPos = OutputToScreenPixel(pCtrl->GetPosPixel());
+ Rectangle aItemRect( aPos, pCtrl->GetSizePixel() );
+ if(rToken.eTokenType == TOKEN_TAB_STOP )
+ {
+// sEntry += '\n';
+// sEntry += rToken.nTabStopPosition;
+ }
+ else
+ {
+ if(rToken.sCharStyleName.Len())
+ {
+ if(bBalloon)
+ sEntry += '\n';
+ else
+ sEntry += ' ';
+ sEntry += sCharStyle;
+ sEntry += rToken.sCharStyleName;
+ }
+ }
+ if(bBalloon)
+ {
+ Help::ShowBalloon( this, aPos, aItemRect, sEntry );
+ }
+ else
+ Help::ShowQuickHelp( this, aItemRect, sEntry,
+ QUICKHELP_LEFT|QUICKHELP_VCENTER );
+ bRet = TRUE;
+ }
+ return bRet;
+}
+/* -----------------------------14.01.00 12:22--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwTokenWindow::Resize()
+{
+ Size aCompleteSize(GetOutputSizePixel());
+
+ Point aRightPos(aRightScrollWin.GetPosPixel());
+ Size aRightSize(aRightScrollWin.GetSizePixel());
+
+ Size aMiddleSize(aCtrlParentWin.GetSizePixel());
+
+ long nMove = aCompleteSize.Width() - aRightSize.Width() - aRightPos.X();
+
+ aRightPos.X() += nMove;
+ aRightScrollWin.SetPosPixel(aRightPos);
+ aMiddleSize.Width() += nMove;
+ aCtrlParentWin.SetSizePixel(aMiddleSize);
+}
+
+/* -----------------16.06.99 15:23-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTokenWindow, EditResize, Edit*, pEdit)
+{
+ ((SwTOXEdit*)pEdit)->AdjustSize();
+ AdjustPositions();
+ if(aModifyHdl.IsSet())
+ aModifyHdl.Call(0);
+ return 0;
+}
+/* -----------------16.06.99 15:56-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTokenWindow, NextItemHdl, SwTOXEdit*, pEdit)
+{
+ sal_uInt16 nPos = (sal_uInt16)aControlList.GetPos(pEdit);
+ if(nPos && !pEdit->IsNextControl() ||
+ nPos < aControlList.Count() - 1 && pEdit->IsNextControl())
+ {
+ aControlList.Seek(nPos);
+ Control* pNextPrev = pEdit->IsNextControl() ? aControlList.Next() : aControlList.Prev();
+ nPos += pEdit->IsNextControl() ? 1 : -1;
+ pNextPrev->GrabFocus();
+ ((SwTOXButton*)pNextPrev)->Check();
+ AdjustScrolling();
+ }
+ return 0;
+}
+/* -----------------17.06.99 08:58-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTokenWindow, TbxFocusHdl, SwTOXEdit*, pEdit)
+{
+ for(sal_uInt16 i = 0; i < aControlList.Count(); i++)
+ {
+ Control* pControl = aControlList.First();
+ while(pControl)
+ {
+ if(WINDOW_EDIT != pControl->GetType() )
+ ((SwTOXButton*)pControl)->Check(sal_False);
+ pControl = aControlList.Next();
+ }
+ }
+ SetActiveControl(pEdit);
+ return 0;
+}
+/* -----------------17.06.99 10:05-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTokenWindow, NextItemBtnHdl, SwTOXButton*, pBtn )
+{
+ sal_uInt16 nPos = (sal_uInt16)aControlList.GetPos(pBtn);
+ if(nPos && !pBtn->IsNextControl() ||
+ nPos < aControlList.Count() - 1 && pBtn->IsNextControl())
+ {
+ aControlList.Seek(nPos);
+ sal_Bool bNext = pBtn->IsNextControl();
+ Control* pNextPrev = bNext ? aControlList.Next() : aControlList.Prev();
+ pNextPrev->GrabFocus();
+ Selection aSel(0, 0);
+ if(!bNext)
+ {
+ sal_uInt16 nLen = ((SwTOXEdit*)pNextPrev)->GetText().Len();
+ aSel.A() = nLen;
+ aSel.B() = nLen;
+ }
+ ((SwTOXEdit*)pNextPrev)->SetSelection(aSel);
+ pBtn->Check(sal_False);
+ AdjustScrolling();
+ }
+ return 0;
+}
+
+/* -----------------17.06.99 10:04-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwTokenWindow, TbxFocusBtnHdl, SwTOXButton*, pBtn )
+{
+ for(sal_uInt16 i = 0; i < aControlList.Count(); i++)
+ {
+ Control* pControl = aControlList.First();
+ while(pControl)
+ {
+ if(WINDOW_EDIT != pControl->GetType() )
+ ((SwTOXButton*)pControl)->Check(pBtn == pControl);
+ pControl = aControlList.Next();
+ }
+ }
+ SetActiveControl(pBtn);
+ return 0;
+}
+
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+SwTOXStylesTabPage::SwTOXStylesTabPage(Window* pParent, const SfxItemSet& rAttrSet ) :
+ SfxTabPage(pParent, SW_RES(TP_TOX_STYLES), rAttrSet),
+ aLevelFT2(this, SW_RES(FT_LEVEL )),
+ aLevelLB(this, SW_RES(LB_LEVEL )),
+ aTemplateFT(this, SW_RES(FT_TEMPLATE)),
+ aParaLayLB(this, SW_RES(LB_PARALAY )),
+ aStdBT(this, SW_RES(BT_STD )),
+ aAssignBT(this, SW_RES(BT_ASSIGN )),
+ aEditStyleBT(this, SW_RES(BT_EDIT_STYLE )),
+ aFormatGB(this, SW_RES(GB_FORMAT )),
+ pCurrentForm(0)
+{
+ FreeResource();
+ SetExchangeSupport( sal_True );
+
+ aEditStyleBT.SetClickHdl (LINK( this, SwTOXStylesTabPage, EditStyleHdl));
+ aAssignBT.SetClickHdl (LINK( this, SwTOXStylesTabPage, AssignHdl));
+ aStdBT.SetClickHdl (LINK( this, SwTOXStylesTabPage, StdHdl));
+ aParaLayLB.SetSelectHdl (LINK( this, SwTOXStylesTabPage, EnableSelectHdl));
+ aLevelLB.SetSelectHdl (LINK( this, SwTOXStylesTabPage, EnableSelectHdl));
+ aParaLayLB.SetDoubleClickHdl(LINK( this, SwTOXStylesTabPage, DoubleClickHdl));
+}
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+SwTOXStylesTabPage::~SwTOXStylesTabPage()
+{
+ delete pCurrentForm;
+}
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwTOXStylesTabPage::FillItemSet( SfxItemSet& )
+{
+ return sal_True;
+}
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+void SwTOXStylesTabPage::Reset( const SfxItemSet& rSet )
+{
+ ActivatePage(rSet);
+}
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
+{
+ pCurrentForm = new SwForm(GetForm());
+ aParaLayLB.Clear();
+ aLevelLB.Clear();
+
+ // kein Hyperlink fuer Benutzerverzeichnisse
+
+ sal_uInt16 i, nSize = pCurrentForm->GetFormMax();
+
+ // form-Pattern anzeigen ohne Titel
+
+ //1. TemplateEntry anzeigen
+ String aStr( SW_RES( STR_TITLE ));
+ if( pCurrentForm->GetTemplate( 0 ).Len() )
+ {
+ aStr += ' ';
+ aStr += aDeliStart;
+ aStr += pCurrentForm->GetTemplate( 0 );
+ aStr += aDeliEnd;
+ }
+ aLevelLB.InsertEntry(aStr);
+
+ for( i=1; i < nSize; ++i )
+ {
+ if( TOX_INDEX == pCurrentForm->GetTOXType() &&
+ FORM_ALPHA_DELIMITTER == i )
+ aStr = SW_RESSTR(STR_ALPHA);
+ else
+ {
+ aStr = SW_RESSTR(STR_LEVEL);
+ aStr += String::CreateFromInt32(
+ TOX_INDEX == pCurrentForm->GetTOXType() ? i - 1 : i );
+ }
+ String aCpy( aStr );
+ aStr += ' ';
+ aStr += aDeliStart;
+ aStr += pCurrentForm->GetPattern(i);
+ aStr += aDeliEnd;
+
+ if( pCurrentForm->GetTemplate( i ).Len() )
+ {
+ aCpy += ' ';
+ aCpy += aDeliStart;
+ aCpy += pCurrentForm->GetTemplate( i );
+ aCpy += aDeliEnd;
+ }
+ aLevelLB.InsertEntry( aCpy );
+ }
+
+ // Templates initialisieren
+ const SwTxtFmtColl *pColl;
+ SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
+ const sal_uInt16 nSz = rSh.GetTxtFmtCollCount();
+
+ for( i = 0; i < nSz; ++i )
+ if( !(pColl = &rSh.GetTxtFmtColl( i ))->IsDefault() )
+ aParaLayLB.InsertEntry( pColl->GetName() );
+
+ // Pool-Collections abfragen und fuer das Verzeichnis setzen
+ for( i = 0; i < pCurrentForm->GetFormMax(); ++i )
+ {
+ aStr = pCurrentForm->GetTemplate( i );
+ if( aStr.Len() &&
+ LISTBOX_ENTRY_NOTFOUND == aParaLayLB.GetEntryPos( aStr ))
+ aParaLayLB.InsertEntry( aStr );
+ }
+
+ EnableSelectHdl(&aParaLayLB);
+}
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+int SwTOXStylesTabPage::DeactivatePage( SfxItemSet* pSet )
+{
+ GetForm() = *pCurrentForm;
+ return LEAVE_PAGE;
+}
+
+/* -----------------25.03.99 15:17-------------------
+ *
+ * --------------------------------------------------*/
+SfxTabPage* SwTOXStylesTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwTOXStylesTabPage(pParent, rAttrSet);
+}
+/* -----------------26.03.99 12:47-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn )
+{
+ if( LISTBOX_ENTRY_NOTFOUND != aParaLayLB.GetSelectEntryPos())
+ {
+ SfxStringItem aStyle(SID_STYLE_EDIT, aParaLayLB.GetSelectEntry());
+ SfxUInt16Item aFamily(SID_STYLE_FAMILY, SFX_STYLE_FAMILY_PARA);
+// SwPtrItem aShell(FN_PARAM_WRTSHELL, pWrtShell);
+ Window* pDefDlgParent = Application::GetDefDialogParent();
+ Application::SetDefDialogParent( pBtn );
+ SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute(
+ SID_STYLE_EDIT, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_MODAL,
+ &aStyle, &aFamily/*, &aShell*/, 0L);
+ Application::SetDefDialogParent( pDefDlgParent );
+ }
+ return 0;
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Vorlagen zuweisen
+ --------------------------------------------------------------------*/
+IMPL_LINK( SwTOXStylesTabPage, AssignHdl, Button *, EMPTYARG )
+{
+ sal_uInt16 nLevPos = aLevelLB.GetSelectEntryPos();
+ sal_uInt16 nTemplPos = aParaLayLB.GetSelectEntryPos();
+ if(nLevPos != LISTBOX_ENTRY_NOTFOUND &&
+ nTemplPos != LISTBOX_ENTRY_NOTFOUND)
+ {
+ String aStr(aLevelLB.GetEntry(nLevPos));
+ sal_uInt16 nDelPos = aStr.Search(aDeliStart);
+ if(nDelPos != STRING_NOTFOUND)
+ aStr.Erase(nDelPos-1);
+ aStr += ' ';
+ aStr += aDeliStart;
+ aStr += aParaLayLB.GetSelectEntry();
+
+ pCurrentForm->SetTemplate(nLevPos, aParaLayLB.GetSelectEntry());
+
+ aStr += aDeliEnd;
+
+ aLevelLB.RemoveEntry(nLevPos);
+ aLevelLB.InsertEntry(aStr, nLevPos);
+ aLevelLB.SelectEntry(aStr);
+ ModifyHdl(0);
+ }
+ return 0;
+}
+/* -----------------26.03.99 09:10-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwTOXStylesTabPage, StdHdl, Button *, EMPTYARG )
+{
+ sal_uInt16 nPos = aLevelLB.GetSelectEntryPos();
+ if(nPos != LISTBOX_ENTRY_NOTFOUND)
+ { String aStr(aLevelLB.GetEntry(nPos));
+ sal_uInt16 nDelPos = aStr.Search(aDeliStart);
+ if(nDelPos != STRING_NOTFOUND)
+ aStr.Erase(nDelPos-1);
+ aLevelLB.RemoveEntry(nPos);
+ aLevelLB.InsertEntry(aStr, nPos);
+ aLevelLB.SelectEntry(aStr);
+ pCurrentForm->SetTemplate(nPos, aEmptyStr);
+ ModifyHdl(0);
+ }
+ return 0;
+}
+/* -----------------26.03.99 09:11-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwTOXStylesTabPage, DoubleClickHdl, Button *, EMPTYARG )
+{
+ String aTmpName( aParaLayLB.GetSelectEntry() );
+ SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
+
+ if(aParaLayLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND &&
+ (aLevelLB.GetSelectEntryPos() == 0 || SwMultiTOXTabDialog::IsNoNum(rSh, aTmpName)))
+ AssignHdl(&aAssignBT);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwTOXStylesTabPage, DoubleClickHdl, Button *, EMPTYARG )
+/*--------------------------------------------------------------------
+ Beschreibung: nur wenn selektiert enable
+ --------------------------------------------------------------------*/
+IMPL_LINK( SwTOXStylesTabPage, EnableSelectHdl, ListBox *, EMPTYARG )
+{
+ //UpdatePattern();
+ aStdBT.Enable(aLevelLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND);
+
+ SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
+ String aTmpName(aParaLayLB.GetSelectEntry());
+ aAssignBT.Enable(aParaLayLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND &&
+ LISTBOX_ENTRY_NOTFOUND != aLevelLB.GetSelectEntryPos() &&
+ (aLevelLB.GetSelectEntryPos() == 0 || SwMultiTOXTabDialog::IsNoNum(rSh, aTmpName)));
+ aEditStyleBT.Enable(aParaLayLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND );
+ return 0;
+}
+/* -----------------------------18.01.00 16:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwTOXStylesTabPage, ModifyHdl, void*, EMPTYARG)
+{
+ SwMultiTOXTabDialog* pTOXDlg = (SwMultiTOXTabDialog*)GetTabDialog();
+ if(pTOXDlg)
+ {
+ GetForm() = *pCurrentForm;
+ pTOXDlg->CreateOrUpdateExample(pTOXDlg->GetCurrentTOXType().eType, TOX_PAGE_STYLES);
+ }
+ return 0;
+}
+/******************************************************************************
+
+******************************************************************************/
+#define ITEM_SEARCH 1
+#define ITEM_ALTERNATIVE 2
+#define ITEM_PRIM_KEY 3
+#define ITEM_SEC_KEY 4
+#define ITEM_COMMENT 5
+#define ITEM_CASE 6
+#define ITEM_WORDONLY 7
+
+
+SwEntryBrowseBox::SwEntryBrowseBox(Window* pParent, const ResId& rId,
+ BrowserMode nMode ) :
+ DbBrowseBox( pParent, rId, nMode,
+ BROWSER_KEEPSELECTION |
+ BROWSER_COLUMNSELECTION |
+ BROWSER_MULTISELECTION |
+ BROWSER_TRACKING_TIPS |
+ BROWSER_HLINESFULL |
+ BROWSER_VLINESFULL |
+ BROWSER_AUTO_VSCROLL|
+ BROWSER_HIDECURSOR ),
+ sSearch( ResId(ST_SEARCH )),
+ sAlternative( ResId(ST_ALTERNATIVE )),
+ sPrimKey( ResId(ST_PRIMKEY )),
+ sSecKey( ResId(ST_SECKEY )),
+ sComment( ResId(ST_COMMENT )),
+ sCaseSensitive( ResId(ST_CASESENSITIVE )),
+ sWordOnly( ResId(ST_WORDONLY )),
+ sYes( ResId(ST_TRUE )),
+ sNo( ResId(ST_FALSE )),
+ aCellEdit(&GetDataWindow(), 0),
+ aCellCheckBox(&GetDataWindow()),
+ bModified(sal_False)
+{
+ FreeResource();
+ aCellCheckBox.GetBox().EnableTriState(sal_False);
+ xController = new DbEditCellController(&aCellEdit);
+ xCheckController = new DbCheckBoxCellController(&aCellCheckBox);
+
+ //////////////////////////////////////////////////////////////////////
+ // HACK: BrowseBox invalidiert nicht ihre Childs, wie es eigentlich sein sollte.
+ // Deshalb wird WB_CLIPCHILDREN zurueckgesetzt, wodurch das Invalidieren
+ // der Childs erzwungen wird.
+ WinBits aStyle = GetStyle();
+ if( aStyle & WB_CLIPCHILDREN )
+ {
+ aStyle &= ~WB_CLIPCHILDREN;
+ SetStyle( aStyle );
+ }
+ const String* aTitles[7] =
+ {
+ &sSearch,
+ &sAlternative,
+ &sPrimKey,
+ &sSecKey,
+ &sComment,
+ &sCaseSensitive,
+ &sWordOnly
+ };
+
+ long nWidth = GetSizePixel().Width();
+ nWidth /=7;
+ --nWidth;
+ for(sal_uInt16 i = 1; i < 8; i++)
+ InsertDataColumn( i, *aTitles[i - 1], nWidth,
+ HIB_STDSTYLE, HEADERBAR_APPEND );
+
+}
+/* -----------------------------19.01.00 11:29--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Bool SwEntryBrowseBox::SeekRow( long nRow )
+{
+ nCurrentRow = nRow;
+ return TRUE;
+}
+/* -----------------------------19.01.00 15:32--------------------------------
+
+ ---------------------------------------------------------------------------*/
+const String& SwEntryBrowseBox::GetCellText(long nRow, long nColumn) const
+{
+ const String* pRet = &aEmptyStr;
+ if(aEntryArr.Count() > nRow)
+ {
+ AutoMarkEntry* pEntry = aEntryArr[nRow];
+ switch(nColumn)
+ {
+ case ITEM_SEARCH :pRet = &pEntry->sSearch; break;
+ case ITEM_ALTERNATIVE :pRet = &pEntry->sAlternative; break;
+ case ITEM_PRIM_KEY :pRet = &pEntry->sPrimKey ; break;
+ case ITEM_SEC_KEY :pRet = &pEntry->sSecKey ; break;
+ case ITEM_COMMENT :pRet = &pEntry->sComment ; break;
+ case ITEM_CASE :pRet = pEntry->bCase ? &sYes : &sNo; break;
+ case ITEM_WORDONLY :pRet = pEntry->bWord ? &sYes : &sNo; break;
+ }
+ }
+ return *pRet;
+}
+
+/* -----------------------------19.01.00 11:29--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwEntryBrowseBox::PaintCell(OutputDevice& rDev,
+ const Rectangle& rRect, sal_uInt16 nColumnId) const
+{
+ const String& rPaint = GetCellText( nCurrentRow, nColumnId );
+ sal_uInt16 nStyle = TEXT_DRAW_CLIP | TEXT_DRAW_CENTER;
+ rDev.DrawText( rRect, rPaint, nStyle );
+}
+/* -----------------------------19.01.00 14:51--------------------------------
+
+ ---------------------------------------------------------------------------*/
+DbCellController* SwEntryBrowseBox::GetController(long nRow, sal_uInt16 nCol)
+{
+ return nCol < ITEM_CASE ? xController : xCheckController;
+}
+/* -----------------------------19.01.00 15:36--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Bool SwEntryBrowseBox::SaveModified()
+{
+ SetModified();
+ long nRow = GetCurRow();
+ sal_uInt16 nCol = GetCurColumnId();
+
+ String sNew;
+ sal_Bool bVal = sal_False;
+ DbCellController* pController = 0;
+ if(nCol < ITEM_CASE)
+ {
+ pController = xController;
+ sNew = ((DbEditCellController*)pController)->GetEditWindow().GetText();
+ }
+ else
+ {
+ pController = xCheckController;
+ bVal = ((DbCheckBoxCellController*)pController)->GetCheckBox().IsChecked();
+ }
+ AutoMarkEntry* pEntry = nRow >= aEntryArr.Count() ? new AutoMarkEntry
+ : aEntryArr[nRow];
+ switch(nCol)
+ {
+ case ITEM_SEARCH : pEntry->sSearch = sNew; break;
+ case ITEM_ALTERNATIVE : pEntry->sAlternative = sNew; break;
+ case ITEM_PRIM_KEY : pEntry->sPrimKey = sNew; break;
+ case ITEM_SEC_KEY : pEntry->sSecKey = sNew; break;
+ case ITEM_COMMENT : pEntry->sComment = sNew; break;
+ case ITEM_CASE : pEntry->bCase = bVal; break;
+ case ITEM_WORDONLY : pEntry->bWord = bVal; break;
+ }
+ if(nRow >= aEntryArr.Count())
+ {
+ aEntryArr.Insert( pEntry, aEntryArr.Count() );
+ RowInserted(nRow, 1, sal_True, sal_True);
+ if(nCol < ITEM_WORDONLY)
+ {
+ pController->ClearModified();
+ GoToRow( nRow );
+ }
+ }
+ return sal_True;
+}
+/* -----------------------------19.01.00 14:32--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwEntryBrowseBox::InitController(
+ DbCellControllerRef& rController, long nRow, sal_uInt16 nCol)
+{
+ const String& rTxt = GetCellText( nRow, nCol );
+ if(nCol < ITEM_CASE)
+ {
+ rController = xController;
+ DbCellController* pController = xController;
+ ((DbEditCellController*)pController)->GetEditWindow().SetText( rTxt );
+ }
+ else
+ {
+ rController = xCheckController;
+ DbCellController* pController = xCheckController;
+ ((DbCheckBoxCellController*)pController)->GetCheckBox().Check(
+ rTxt == sYes );
+ }
+}
+/* -----------------------------19.01.00 12:19--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwEntryBrowseBox::ReadEntries(SvStream& rInStr)
+{
+ AutoMarkEntry* pToInsert = 0;
+ const String sZero('0');
+ rtl_TextEncoding eTEnc = gsl_getSystemTextEncoding();
+ while( !rInStr.GetError() && !rInStr.IsEof() )
+ {
+ String sLine;
+ rInStr.ReadByteStringLine( sLine, eTEnc );
+
+ // # -> comment
+ // ; -> delimiter between entries ->
+ // Format: TextToSearchFor;AlternativeString;PrimaryKey;SecondaryKey
+ // Leading and trailing blanks are ignored
+ if( sLine.Len() )
+ {
+ //comments are contained in separate lines but are put into the struct of the following data
+ //line (if available)
+ if( '#' != sLine.GetChar(0) )
+ {
+ if( !pToInsert )
+ pToInsert = new AutoMarkEntry;
+
+ USHORT nSttPos = 0;
+ pToInsert->sSearch = sLine.GetToken(0, ';', nSttPos );
+ pToInsert->sAlternative = sLine.GetToken(0, ';', nSttPos );
+ pToInsert->sPrimKey = sLine.GetToken(0, ';', nSttPos );
+ pToInsert->sSecKey = sLine.GetToken(0, ';', nSttPos );
+
+ String sStr = sLine.GetToken(0, ';', nSttPos );
+ pToInsert->bCase = sStr.Len() && sStr != sZero;
+
+ sStr = sLine.GetToken(0, ';', nSttPos );
+ pToInsert->bWord = sStr.Len() && sStr != sZero;
+
+ aEntryArr.Insert( pToInsert, aEntryArr.Count() );
+ pToInsert = 0;
+ }
+ else
+ {
+ if(pToInsert)
+ aEntryArr.Insert(pToInsert, aEntryArr.Count());
+ pToInsert = new AutoMarkEntry;
+ pToInsert->sComment = sLine;
+ pToInsert->sComment.Erase(0, 1);
+ }
+ }
+ }
+ if( pToInsert )
+ aEntryArr.Insert(pToInsert, aEntryArr.Count());
+ RowInserted(0, aEntryArr.Count() + 1, sal_True);
+}
+/* -----------------------------19.01.00 12:19--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwEntryBrowseBox::WriteEntries(SvStream& rOutStr)
+{
+ //check if the current controller is modified
+ sal_uInt16 nCol = GetCurColumnId();
+ DbCellController* pController;
+ if(nCol < ITEM_CASE)
+ pController = xController;
+ else
+ pController = xCheckController;
+ if(pController ->IsModified())
+ GoToColumnId(nCol < ITEM_CASE ? ++nCol : --nCol );
+
+ rtl_TextEncoding eTEnc = gsl_getSystemTextEncoding();
+ for(sal_uInt16 i = 0; i < aEntryArr.Count();i++)
+ {
+ AutoMarkEntry* pEntry = aEntryArr[i];
+ if(pEntry->sComment.Len())
+ {
+ String sWrite('#');
+ sWrite += pEntry->sComment;
+ rOutStr.WriteByteStringLine( sWrite, eTEnc );
+ }
+
+ String sWrite( pEntry->sSearch );
+ sWrite += ';';
+ sWrite += pEntry->sAlternative;
+ sWrite += ';';
+ sWrite += pEntry->sPrimKey;
+ sWrite += ';';
+ sWrite += pEntry->sSecKey;
+ sWrite += ';';
+ sWrite += pEntry->bCase ? '1' : '0';
+ sWrite += ';';
+ sWrite += pEntry->bWord ? '1' : '0';
+
+ if( sWrite.Len() > 5 )
+ rOutStr.WriteByteStringLine( sWrite, eTEnc );
+ }
+}
+/* -----------------------------21.01.00 11:49--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Bool SwEntryBrowseBox::IsModified()const
+{
+ if(bModified)
+ return sal_True;
+
+
+ //check if the current controller is modified
+ sal_uInt16 nCol = GetCurColumnId();
+ DbCellController* pController;
+ if(nCol < ITEM_CASE)
+ pController = xController;
+ else
+ pController = xCheckController;
+ return pController ->IsModified();
+}
+/* -----------------------------19.01.00 11:29--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwAutoMarkDlg_Impl::SwAutoMarkDlg_Impl(Window* pParent, const String& rAutoMarkURL,
+ const String& rAutoMarkType, sal_Bool bCreate) :
+ ModalDialog(pParent, SW_RES(DLG_CREATE_AUTOMARK)),
+ aOKPB( this, ResId(PB_OK )),
+ aCancelPB( this, ResId(PB_CANCEL )),
+ aHelpPB( this, ResId(PB_HELP )),
+ aEntriesBB( this, ResId(BB_ENTRIES )),
+ aEntriesGB( this, ResId(GB_ENTRIES )),
+ sAutoMarkURL(rAutoMarkURL),
+ sAutoMarkType(rAutoMarkType),
+ bCreateMode(bCreate)
+{
+ FreeResource();
+ aOKPB.SetClickHdl(LINK(this, SwAutoMarkDlg_Impl, OkHdl));
+
+ INetURLObject aURLObj( sAutoMarkURL );
+ sAutoMarkURL = aURLObj.PathToFileName();
+ String sTitle = GetText();
+ sTitle.AppendAscii( RTL_CONSTASCII_STRINGPARAM(": "));
+ sTitle += sAutoMarkURL;
+ SetText(sTitle);
+ sal_Bool bError = sal_False;
+ if( bCreateMode )
+ aEntriesBB.RowInserted(0, 1, sal_True);
+ else
+ {
+ SvFileStream aStream(sAutoMarkURL, STREAM_STD_READ);
+ aStream.ReOpen();
+ aStream.Seek(0);
+ sal_uInt32 nError = aStream.GetError();
+ if(!nError)
+ {
+ aEntriesBB.ReadEntries(aStream);
+ aStream.Close();
+ }
+ else
+ bError = sal_True;
+ }
+
+ if(bError)
+ EndDialog(RET_CANCEL);
+}
+/* -----------------------------19.01.00 11:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwAutoMarkDlg_Impl::~SwAutoMarkDlg_Impl()
+{
+}
+/* -----------------------------19.01.00 16:43--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwAutoMarkDlg_Impl, OkHdl, OKButton*, pButton)
+{
+ sal_Bool bError = sal_False;
+ if(aEntriesBB.IsModified() || bCreateMode)
+ {
+ SvFileStream aStream(sAutoMarkURL,
+ bCreateMode ? STREAM_WRITE : STREAM_WRITE| STREAM_TRUNC);
+ if(!bCreateMode)
+ {
+ aStream.ReOpen();
+ aStream.Seek(0);
+ }
+ sal_uInt32 nError = aStream.GetError();
+ aStream.SetStreamCharSet( RTL_TEXTENCODING_MS_1253 );
+ if(!nError)
+ {
+ aEntriesBB.WriteEntries(aStream);
+ aStream.Close();
+ }
+ else
+ bError = sal_True;
+
+ }
+ if(!bError)
+ EndDialog(RET_OK);
+ return 0;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.162 2000/09/18 16:05:51 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.161 2000/08/24 12:22:06 os
+ #71235# RequestHelp must call the base class
+
+ Revision 1.160 2000/08/22 13:00:34 os
+ #77818# SeekRow has to return TRUE
+
+ Revision 1.159 2000/08/17 14:06:28 jp
+ UI with decode URL
+
+ Revision 1.158 2000/08/16 11:47:07 os
+ #73593# set first token control to start position if all controls fit into the window
+
+ Revision 1.157 2000/08/16 10:05:41 os
+ #74364# additional style CheckBox now set correctly
+
+ Revision 1.156 2000/08/14 06:58:34 os
+ #77101# don't call AdjustLayout initially
+
+ Revision 1.155 2000/08/09 14:53:25 os
+ #77101# call AdjustLayout
+
+ Revision 1.154 2000/08/03 07:56:09 jp
+ change for syntax gcc and optimized
+
+ Revision 1.153 2000/08/02 11:37:09 hjs
+ syntax gcc
+
+ Revision 1.152 2000/07/27 21:16:20 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.151 2000/07/26 12:10:47 jp
+ Bug #77101#: ShowPreviewHdl - don't call StateChanged
+
+ Revision 1.150 2000/07/19 11:01:59 os
+ properties added/renamed
+
+ Revision 1.149 2000/07/03 08:53:42 jp
+ must changes for VCL
+
+ Revision 1.148 2000/06/26 13:06:16 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.147 2000/06/19 12:12:28 os
+ #71623# FillCharStyleListBox: optional sorted insertion
+
+ Revision 1.146 2000/06/13 15:38:52 os
+ CreateFromInt32
+
+ Revision 1.145 2000/06/08 09:46:08 os
+ using UCB
+
+ Revision 1.144 2000/05/23 19:10:28 jp
+ Bugfixes for Unicode
+
+ Revision 1.143 2000/05/16 09:15:12 os
+ project usr removed
+
+ Revision 1.142 2000/04/26 14:51:23 os
+ GetName() returns const String&
+
+ Revision 1.141 2000/04/19 12:56:35 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.140 2000/04/18 15:32:23 os
+ UNICODE
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/index/cnttab.hrc b/sw/source/ui/index/cnttab.hrc
new file mode 100644
index 000000000000..d40988f28f6f
--- /dev/null
+++ b/sw/source/ui/index/cnttab.hrc
@@ -0,0 +1,308 @@
+/*************************************************************************
+ *
+ * $RCSfile: cnttab.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define CB_MARKS 4
+#define CB_OUTLN 5
+#define FT_LEVEL 6
+#define ED_LEVEL 7
+#define GB_CREATE 8
+#define ED_BSP 11
+#define GB_BSP 12
+#define BT_OUTLN 13
+#define GB_TITLE 14
+#define ED_TITLE 15
+#define BT_HELP 16
+#define ST_AUTHTYPE 17
+
+#define LB_ENTRY 20
+#define FT_NUM 21
+#define ED_ENTRY 22
+#define BT_ENTRY_NUMBER 23
+#define BT_ENTRY_TEXT 24
+#define BT_TAB 25
+#define BT_STD 26
+#define BT_PAGE 27
+#define GB_ENTRY 28
+//#define FT_LEVEL 28
+#define LB_LEVEL 29
+#define FT_TEMPLATE 30
+#define LB_PARALAY 31
+#define BT_ASSIGN 32
+#define GB_FORMAT 33
+#define BT_ENTRY 34
+//#define BT_EDIT 34
+#define BT_JUMP 35
+#define CB_RECALC_TABS 36
+#define CB_FIRST_TAB_POS 37
+#define MF_FIRST_TAB_POS 38
+#define CB_REL_TO_TEXT 39
+#define BT_EDIT_STYLE 40
+#define CB_SAME 41
+#define CB_FF 42
+#define CB_CASE 43
+#define CB_SEC 44
+#define CB_ALPHA 45
+#define GB_OPT 46
+#define CB_MAKRS 47
+#define DLB_TOD 48
+#define CB_TEMPL 49
+#define DLB_LAYOUT 50
+#define CB_OBJECT 51
+#define DLB_OBJECT 52
+#define GB_SOURCE 53
+#define CB_USER_MARKS 54
+#define BT_ALL_LEVEL 55
+#define FT_MAIN_ENTRY_STYLE 56
+#define LB_MAIN_ENTRY_STYLE 57
+
+//restart numbering
+#define FT_TYPE 1
+#define LB_TYPE 2
+#define CB_READONLY 3
+#define FT_TITLE 4
+//#define ED_TITLE 5
+#define GB_TYPETITLE 6
+#define LB_AREA 7
+//#define FT_LEVEL 8
+#define NF_LEVEL 9
+#define GB_AREA 10
+#define CB_FROMHEADINGS 11
+#define PB_CHAPTERDLG 12
+#define CB_ADDSTYLES 13
+#define PB_ADDSTYLES 14
+
+
+#define CB_FROMOLE 17
+#define CB_LEVELFROMCHAPTER 18
+#define RB_FROMCAPTIONS 19
+#define RB_FROMOBJECTNAMES 20
+#define CB_TOXMARKS 21
+#define GB_CREATEFROM 22
+#define CB_COLLECTSAME 23
+#define CB_USEFF 24
+#define CB_CASESENSITIVE 25
+#define CB_INITIALCAPS 26
+#define CB_KEYASENTRY 27
+#define CB_FROMFILE 28
+//#define PB_FILE 29
+#define MB_AUTOMARK 29
+#define GB_IDXOPTIONS 30
+//#define PB_CREATE_AUTOMARK 31
+//#define PB_EDIT_AUTOMARK 32
+
+#define CB_USE_DASH 33
+
+#define GB_LEVEL 34
+#define WIN_TOKEN 35
+#define PB_ENTRYNO 36
+#define PB_ENTRY 37
+#define PB_CHAPTERINFO 38
+#define PB_PAGENO 39
+#define PB_TAB 40
+#define PB_HYPERLINK 41
+#define FT_CHARSTYLE 42
+#define LB_CHARSTYLE 43
+#define PB_EDITSTYLE 44
+#define FT_FILLCHAR 45
+#define CB_FILLCHAR 46
+#define FT_CHAPTERENTRY 47
+#define LB_CHAPTERENTRY 48
+#define FT_SORTING 49
+#define LB_SORTING 50
+#define FT_TABPOS 51
+#define MF_TABPOS 52
+#define CB_AUTORIGHT 53
+#define CB_RELTOSTYLE 54
+//#define GB_ENTRY 55
+#define CB_RECALCTAB 56
+#define CB_NUMSTYLEFROMPDESC 57
+#define CB_ALPHADELIM 58
+#define CB_COMMASEPARATED 59
+//#define GB_FORMAT 60
+
+#define STR_NO_CHAR_STYLE 61
+#define CLB_FROMOBJ 62
+#define GB_FROMOBJ 63
+#define RES_SRCTYPES 64
+#define WIN_LEFT_SCROLL 65
+#define WIN_CTRL_PARENT 66
+#define WIN_RIGHT_SCROLL 67
+#define PB_ALL_LEVELS 68
+
+
+#define STR_BUTTON_TEXT_START 70
+#define STR_TOKEN_ENTRY_NO (STR_BUTTON_TEXT_START)
+#define STR_TOKEN_ENTRY_TEXT (STR_BUTTON_TEXT_START + 1)
+#define STR_TOKEN_ENTRY (STR_BUTTON_TEXT_START + 2)
+#define STR_TOKEN_TAB_STOP (STR_BUTTON_TEXT_START + 3)
+#define STR_TOKEN_TEXT (STR_BUTTON_TEXT_START + 4)
+#define STR_TOKEN_PAGE_NUMS (STR_BUTTON_TEXT_START + 5)
+#define STR_TOKEN_CHAPTER_INFO (STR_BUTTON_TEXT_START + 6)
+#define STR_TOKEN_LINK_START (STR_BUTTON_TEXT_START + 7)
+#define STR_TOKEN_LINK_END (STR_BUTTON_TEXT_START + 8)
+#define STR_TOKEN_AUTHORITY (STR_BUTTON_TEXT_START + 9)
+
+#define STR_BUTTON_HELP_TEXT_START (STR_TOKEN_AUTHORITY + 1)
+#define STR_TOKEN_HELP_ENTRY_NO (STR_BUTTON_HELP_TEXT_START)
+#define STR_TOKEN_HELP_ENTRY_TEXT (STR_BUTTON_HELP_TEXT_START + 1)
+#define STR_TOKEN_HELP_ENTRY (STR_BUTTON_HELP_TEXT_START + 2)
+#define STR_TOKEN_HELP_TAB_STOP (STR_BUTTON_HELP_TEXT_START + 3)
+#define STR_TOKEN_HELP_TEXT (STR_BUTTON_HELP_TEXT_START + 4)
+#define STR_TOKEN_HELP_PAGE_NUMS (STR_BUTTON_HELP_TEXT_START + 5)
+#define STR_TOKEN_HELP_CHAPTER_INFO (STR_BUTTON_HELP_TEXT_START + 6)
+#define STR_TOKEN_HELP_LINK_START (STR_BUTTON_HELP_TEXT_START + 7)
+#define STR_TOKEN_HELP_LINK_END (STR_BUTTON_HELP_TEXT_START + 8)
+#define STR_TOKEN_HELP_AUTHORITY (STR_BUTTON_HELP_TEXT_START + 9)
+
+#define STR_CHARSTYLE (STR_TOKEN_HELP_AUTHORITY + 1)
+#define TLB_STYLES 100
+#define GB_STYLES 101
+#define PB_OK 102
+#define PB_CANCEL 103
+#define PB_HELP 104
+#define FT_CAPTIONSEQUENCE 105
+#define LB_CAPTIONSEQUENCE 106
+#define FT_DISPLAYTYPE 107
+#define LB_DISPLAYTYPE 108
+#define TR_HEADER 109
+#define PB_LEFT 110
+#define PB_RIGHT 111
+#define HB_STYLES 112
+#define ST_HB_FIRST 113
+#define CB_FROMTABLES 114
+#define CB_FROMFRAMES 115
+#define CB_FROMGRAPHICS 116
+#define ST_USER_ADDSTYLE 117
+#define ST_AUTOMARK_TYPE 118
+#define LB_AUTHFIELD 119
+#define PB_AUTHINSERT 120
+#define PB_AUTHREMOVE 121
+#define CB_SEQUENCE 122
+#define FT_BRACKET 123
+#define LB_BRACKET 124
+#define GB_AUTHORITY 125
+#define RB_DOCPOS 126
+#define RB_SORTCONTENT 127
+#define FT_FIRSTKEY 128
+#define LB_FIRSTKEY 129
+#define FT_SECONDKEY 130
+#define LB_SECONDKEY 131
+#define FT_THIRDDKEY 132
+#define LB_THIRDKEY 133
+#define GB_SORTKEY 134
+#define GB_SORTING 135
+#define STR_NOSORTKEY 136
+#define RB_SORTUP1 137
+#define RB_SORTUP2 138
+#define RB_SORTUP3 139
+#define RB_SORTDOWN1 140
+#define RB_SORTDOWN2 141
+#define RB_SORTDOWN3 142
+
+#define STR_DELIM 143
+
+#define TO_CONTENT 1
+#define TO_INDEX 2
+#define TO_ILLUSTRATION 4
+#define TO_TABLE 8
+#define TO_USER 16
+#define TO_OBJECT 32
+#define TO_AUTHORITIES 64
+
+#define AREA_DOCUMENT 1
+#define AREA_CHAPTER 2
+
+//TabDialog
+#define WIN_EXAMPLE 1
+#define RES_EXAMPLE_TEXT 2
+#define ARR_TEXT 3
+#define ST_HEADING_1 4
+#define ST_TEXT_1 5
+#define ST_HEADING_1_1 6
+#define ST_TEXT_1_1 7
+#define ST_HEADING_1_2 8
+#define ST_TEXT_1_2 9
+#define ST_TABLE_LABEL 10
+#define ST_FRAME_LABEL 11
+#define ST_GRAPHIC_LABEL 12
+#define ST_USERDEFINEDINDEX 13
+#define CB_SHOWEXAMPLE 14
+
+
+// AutoMark dialog
+#define BB_ENTRIES 1
+#define GB_ENTRIES 2
+
+#define ST_SEARCH 10
+#define ST_ALTERNATIVE 11
+#define ST_PRIMKEY 12
+#define ST_SECKEY 13
+#define ST_COMMENT 14
+#define ST_CASESENSITIVE 15
+#define ST_WORDONLY 16
+#define ST_TRUE 17
+#define ST_FALSE 18
+
+
+//ButtonMenu
+#define MN_AUTOMARK_OPEN 1
+#define MN_AUTOMARK_NEW 2
+#define MN_AUTOMARK_EDIT 3
+
diff --git a/sw/source/ui/index/cnttab.src b/sw/source/ui/index/cnttab.src
new file mode 100644
index 000000000000..7d6164072791
--- /dev/null
+++ b/sw/source/ui/index/cnttab.src
@@ -0,0 +1,4444 @@
+/*************************************************************************
+ *
+ * $RCSfile: cnttab.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "index.hrc"
+#include "globals.hrc"
+#include "cnttab.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+
+String STR_TITLE
+{
+ Text = "Titel" ;
+ Text [ ENGLISH ] = "Titel" ;
+ Text [ norwegian ] = "Tittel" ;
+ Text [ italian ] = "Titolo" ;
+ Text [ portuguese_brazilian ] = "Títilo" ;
+ Text [ portuguese ] = "Título" ;
+ Text [ finnish ] = "Otsikko" ;
+ Text [ danish ] = "Titel" ;
+ Text [ french ] = "Titre" ;
+ Text [ swedish ] = "Titel" ;
+ Text [ dutch ] = "Titel" ;
+ Text [ spanish ] = "Título" ;
+ Text [ english_us ] = "Title" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãëàâèå";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "À²ÄÙ";
+ Text[ greek ] = "Ôßôëïò";
+ Text[ korean ] = "Á¦¸ñ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_ALPHA
+{
+ Text = "Trennzeichen" ;
+ Text [ ENGLISH ] = "Delimiter" ;
+ Text [ norwegian ] = "Skilletegn" ;
+ Text [ italian ] = "Separatore" ;
+ Text [ portuguese_brazilian ] = "Delimitador" ;
+ Text [ portuguese ] = "Separador" ;
+ Text [ finnish ] = "Erotin" ;
+ Text [ danish ] = "Skilletegn" ;
+ Text [ french ] = "Séparateur" ;
+ Text [ swedish ] = "Skiljetecken" ;
+ Text [ dutch ] = "Scheidingsteken" ;
+ Text [ spanish ] = "Separador" ;
+ Text [ english_us ] = "Separator" ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹æØ‚è‹L†";
+ Text[ greek ] = "Äéá÷ùñéóôéêü";
+ Text[ korean ] = "±¸ºÐ";
+ Text[ chinese_traditional ] = "³s¦r²Å";
+ Text[ arabic ] = "ÇáÝÇÕá";
+ Text[ turkish ] = "Ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+};
+String STR_LEVEL
+{
+ Text = "Ebene " ;
+ Text [ ENGLISH ] = "Level " ;
+ Text [ norwegian ] = "Nivå " ;
+ Text [ italian ] = "Livello " ;
+ Text [ portuguese_brazilian ] = "Nível" ;
+ Text [ portuguese ] = "Nível " ;
+ Text [ finnish ] = "Taso " ;
+ Text [ danish ] = "Niveau " ;
+ Text [ french ] = "Niveau " ;
+ Text [ swedish ] = "Nivå " ;
+ Text [ dutch ] = "Niveau " ;
+ Text [ spanish ] = "Nivel " ;
+ Text [ english_us ] = "Level " ;
+ Text[ chinese_simplified ] = "¼¶ ";
+ Text[ russian ] = "Óðîâåíü ";
+ Text[ polish ] = "Poziom ";
+ Text[ japanese ] = "ÚÍÞÙ ";
+ Text[ greek ] = "Åðßðåäï ";
+ Text[ korean ] = "·¹À̾î ";
+ Text[ chinese_traditional ] = "¯Å ";
+ Text[ arabic ] = "ÇáãÓÊæì ";
+ Text[ turkish ] = "Düzey ";
+ Text[ language_user1 ] = " ";
+};
+String STR_FILE_NOT_FOUND
+{
+ Text = "Die Datei \"%1\" konnte im Pfad \"%2\" nicht gefunden werden." ;
+ Text [ ENGLISH ] = "The file \"%1\" could not be found in path \"%2\"." ;
+ Text[ english_us ] = "The file, \"%1\" in the \"%2\" path could not be found.";
+ Text[ portuguese ] = "Foi impossível encontrar o ficheiro \"%1\" no atalho \"%2\".";
+ Text[ russian ] = "Íàéòè ôàéë \"%1\" ïî ìàðøðóòó \"%2\" íå óäàåòñÿ.";
+ Text[ greek ] = "Ôï áñ÷åßï \"%1\" äåí Þôáí äõíáôüí íá âñåèåß óôç äéáäñïìÞ \"%2\".";
+ Text[ dutch ] = "Bestand \"%1\" niet gevonden in pad \"%2\".";
+ Text[ french ] = "Impossible de trouver le fichier \"%1\" sur le chemin \"%2\" !";
+ Text[ spanish ] = "No se pudo encontrar el archivo \"%1\" en la ruta \"%2\".";
+ Text[ italian ] = "Non è stato possibile trovare il file \"%1\" nel percorso \"%2\".";
+ Text[ danish ] = "Det var ikke muligt at finde filen \"%1\" på sti \"%2\".";
+ Text[ swedish ] = "Filen \"%1\" kunde inte hittas i sökväg \"%2\".";
+ Text[ polish ] = "Nie znaleziono pliku \"%1\" w œcie¿ce \"%2\".";
+ Text[ portuguese_brazilian ] = "The file \"%1\" could not be found.";
+ Text[ japanese ] = "̧²Ù \"%1\" ‚ÍÊß½ \"%2\" ‚ÉŒ©‚‚©‚è‚Ü‚¹‚ñ‚Å‚µ‚½B";
+ Text[ korean ] = "\"%1\" ÆÄÀÏÀÌ\"%2\" °æ·Î¿¡¼­ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ Text[ chinese_simplified ] = "ÔÚ·¾¶ \"%2\" ÖÐÎÞ·¨ÕÒµ½Îļþ \"%1\" ¡£";
+ Text[ chinese_traditional ] = "µLªk¦b¸ô®|¡§%2¡¨¤º§ä¨ìÀɮס§%1¡¨¡C";
+ Text[ arabic ] = "ÊÚÐÑ ÇáÚËæÑ Úáì ÇáãáÝ \"%1\" Ýí ÇáãÓÇÑ \"%2\".";
+ Text[ turkish ] = "Dosya \"%1\" \"%2\" veri yolunda bulunamadý.";
+};
+/*************************************************************************
+
+*************************************************************************/
+TabDialog DLG_MULTI_TOX
+{
+ HelpID = HID_MULTI_TOX_DLG;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Verzeichnis einfügen" ;
+ Text [ ENGLISH ] = "Insert index" ;
+
+ Moveable = TRUE ;
+
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_TOX_SELECT;
+ PageResID = TP_TOX_SELECT;
+ Text = "Verzeichnis" ;
+ Text [ ENGLISH ] = "Index" ;
+ Text[ english_us ] = "Index";
+ Text[ portuguese ] = "Índice";
+ Text[ russian ] = "Óêàçàòåëü";
+ Text[ greek ] = "ÅõñåôÞñéï";
+ Text[ dutch ] = "Index";
+ Text[ french ] = "Index";
+ Text[ spanish ] = "Índice";
+ Text[ italian ] = "Indice";
+ Text[ danish ] = "Indeks";
+ Text[ swedish ] = "Förteckning";
+ Text[ polish ] = "Indeks";
+ Text[ portuguese_brazilian ] = "Index";
+ Text[ japanese ] = "õˆø";
+ Text[ korean ] = "»öÀÎ";
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÝåÑÓ";
+ Text[ turkish ] = "Dizin";
+ };
+ PageItem
+ {
+ Identifier = TP_TOX_ENTRY;
+ PageResID = TP_TOX_ENTRY;
+ Text = "Einträge";
+ Text [English] = "Entries";
+ Text[ english_us ] = "Entries";
+ Text[ portuguese ] = "Entradas";
+ Text[ russian ] = "Ýëåìåíòû";
+ Text[ greek ] = "ÅããñáöÝò";
+ Text[ dutch ] = "Items";
+ Text[ french ] = "Entrées";
+ Text[ spanish ] = "Entradas";
+ Text[ italian ] = "Voci";
+ Text[ danish ] = "Elementer";
+ Text[ swedish ] = "Poster";
+ Text[ polish ] = "Wpisy";
+ Text[ portuguese_brazilian ] = "Entries";
+ Text[ japanese ] = "€–Ú";
+ Text[ korean ] = "Ç׸ñ";
+ Text[ chinese_simplified ] = "ÌõÄ¿";
+ Text[ chinese_traditional ] = "±ø¥Ø";
+ Text[ arabic ] = "ÅÏÎÇáÇÊ";
+ Text[ turkish ] = "Giriþler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_TOX_STYLES;
+ PageResID = TP_TOX_STYLES;
+ Text = "Vorlagen" ;
+ Text [ ENGLISH ] = "Styles" ;
+ Text[ english_us ] = "Styles";
+ Text[ portuguese ] = "Estilos";
+ Text[ russian ] = "Ñòèëè";
+ Text[ dutch ] = "Opmaakprofielen";
+ Text[ french ] = "Styles";
+ Text[ spanish ] = "Estilos";
+ Text[ italian ] = "Modelli";
+ Text[ danish ] = "Typografi";
+ Text[ swedish ] = "Mallar";
+ Text[ polish ] = "Szablony";
+ Text[ portuguese_brazilian ] = "Styles";
+ Text[ japanese ] = "½À²Ù";
+ Text[ chinese_simplified ] = "Ñùʽ";
+ Text[ chinese_traditional ] = "¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ";
+ Text[ greek ] = "Ðñüôõðá";
+ Text[ korean ] = "À¯Çü";
+ Text[ turkish ] = "Þablonlar";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_COLUMN ;
+ PageResID = TP_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ turkish ] = "Sütunlar";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ PageResID = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Window WIN_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 0 , 10 ) ;
+ Size = MAP_APPFONT ( 150, 160 ) ;
+ };
+ String ST_USERDEFINEDINDEX
+ {
+ Text = "Benutzerdefiniertes Verzeichnis" ;
+ Text [ ENGLISH ] = "User-define index" ;
+ Text[ english_us ] = "User-Defined Index";
+ Text[ portuguese ] = "Índice personalizado";
+ Text[ russian ] = "Óêàçàòåëü ïîëüçîâàòåëÿ";
+ Text[ greek ] = "ÐñïóáñìïóìÝíï åõñåôÞñéï";
+ Text[ dutch ] = "Gebruikergedefinieerde index";
+ Text[ french ] = "Index personnalisé";
+ Text[ spanish ] = "Índice del usuario";
+ Text[ italian ] = "Indice personalizzato";
+ Text[ danish ] = "Brugerdefineret indeks";
+ Text[ swedish ] = "Användardefinierad förteckning";
+ Text[ polish ] = "Indeks u¿ytkownika";
+ Text[ portuguese_brazilian ] = "User-define index";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ »öÀÎ";
+ Text[ chinese_simplified ] = "Óû§¶¨ÒåµÄĿ¼";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý";
+ Text[ arabic ] = "ÝåÑÓ ãÚÑÝ ãä ÞÈá ÇáãÓÊÎÏã";
+ Text[ turkish ] = "Kullanýcý tanýmlý dizin";
+ };
+ CheckBox CB_SHOWEXAMPLE
+ {
+ Size = MAP_APPFONT ( 100, 10 ) ;
+ Text = "~Vorschau anzeigen" ;
+ Text [ ENGLISH ] = "Show ~preview" ;
+ Text[ english_us ] = "Sho~w preview";
+ Text[ portuguese ] = "~Mostrar Previsualizar";
+ Text[ russian ] = "Âêëþ÷èòü ïðîñìîòð";
+ Text[ greek ] = "Åì~öÜíéóç ðñïåðéóêüðçóçò";
+ Text[ dutch ] = "~Voorbeeld weergeven";
+ Text[ french ] = "Afficher l'~aperçu";
+ Text[ spanish ] = "Previsuali~zación";
+ Text[ italian ] = "Mostra anteprima";
+ Text[ danish ] = "Vis eksempel";
+ Text[ swedish ] = "~Visa förhandsvisning";
+ Text[ polish ] = "Wyœwietl podgl¹d";
+ Text[ portuguese_brazilian ] = "Show ~preview";
+ Text[ japanese ] = "ÌßÚËÞ­°‚Ì•\\Ž¦(~W)";
+ Text[ korean ] = "¹Ì¸®º¸±â º¸±â(~W)";
+ Text[ chinese_simplified ] = "ÏÔʾԤÊÓ(~P)";
+ Text[ chinese_traditional ] = "Åã¥Ü¹wÄý(~P)";
+ Text[ arabic ] = "ÅÙåÇÑ ÇáãÚÇíäÉ";
+ Text[ turkish ] = "Önizlemeyi görüntüle";
+ };
+ Text[ english_us ] = "Insert Index";
+ Text[ portuguese ] = "Inserir índice";
+ Text[ russian ] = "Âñòàâèòü óêàçàòåëü";
+ Text[ greek ] = "ÐñïóèÞêç åõñåôçñßïõ";
+ Text[ dutch ] = "Index invoegen";
+ Text[ french ] = "Insertion d'index";
+ Text[ spanish ] = "Insertar índice";
+ Text[ italian ] = "Inserisci indice";
+ Text[ danish ] = "Indsæt indeks";
+ Text[ swedish ] = "Infoga förteckning";
+ Text[ polish ] = "Wstaw indeks";
+ Text[ portuguese_brazilian ] = "Insert index";
+ Text[ japanese ] = "õˆø‚Ì‘}“ü";
+ Text[ korean ] = "»öÀÎ »ðÀÔ";
+ Text[ chinese_simplified ] = "²åÈëĿ¼";
+ Text[ chinese_traditional ] = "´¡¤J¥Ø¿ý";
+ Text[ arabic ] = "ÅÏÑÇÌ ÝåÑÓ";
+ Text[ english_us ] = "Insert Index";
+ Text[ portuguese ] = "Inserir índice";
+ Text[ russian ] = "Âñòàâèòü óêàçàòåëü";
+ Text[ greek ] = "ÐñïóèÞêç åõñåôçñßïõ";
+ Text[ dutch ] = "Index invoegen";
+ Text[ french ] = "Insertion d'index";
+ Text[ spanish ] = "Insertar índice";
+ Text[ italian ] = "Inserisci indice";
+ Text[ danish ] = "Indsæt indeks";
+ Text[ swedish ] = "Infoga förteckning";
+ Text[ polish ] = "Wstaw indeks";
+ Text[ portuguese_brazilian ] = "Insert index";
+ Text[ japanese ] = "õˆø‚Ì‘}“ü";
+ Text[ korean ] = "»öÀÎ »ðÀÔ";
+ Text[ chinese_simplified ] = "²åÈëĿ¼";
+ Text[ chinese_traditional ] = "´¡¤J¥Ø¿ý";
+ Text[ arabic ] = "ÅÏÑÇÌ ÝåÑÓ";
+ Text[ turkish ] = "Dizin ekle";
+ Text[ language_user1 ] = " ";
+};
+//------------------------------------------------------------------
+TabPage TP_TOX_SELECT
+{
+ HelpID = HID_TP_TOX_SELECT;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+
+ FixedText FT_TYPE
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 30, 10 ) ;
+ Text = "T~yp" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text[ english_us ] = "Type";
+ Text[ portuguese ] = "T~ipo";
+ Text[ russian ] = "Òèï";
+ Text[ greek ] = "Ôý~ðïò";
+ Text[ dutch ] = "~Type";
+ Text[ french ] = "~Type";
+ Text[ spanish ] = "Tip~o";
+ Text[ italian ] = "Tipo";
+ Text[ danish ] = "Type";
+ Text[ swedish ] = "T~yp";
+ Text[ polish ] = "Typ";
+ Text[ portuguese_brazilian ] = "Type";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ korean ] = "ŸÀÔ";
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ turkish ] = "Tip";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_TYPE
+ {
+ Pos = MAP_APPFONT ( 45 , 14 ) ;
+ Size = MAP_APPFONT ( 80 , 80 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Inhaltsverzeichnis" ; TO_CONTENT ;> ;
+ < "Stichwortverzeichnis" ; TO_INDEX ;> ;
+ < "Abbildungsverzeichnis" ; TO_ILLUSTRATION ;> ;
+ < "Tabellenverzeichnis" ; TO_TABLE ;> ;
+ < "Benutzerdefiniert" ; TO_USER ;> ;
+ < "Objektverzeichnis" ; TO_OBJECT ;> ;
+ < "Literaturverzeichnis" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Table of contents" ; TO_CONTENT ;> ;
+ < "Index" ; TO_INDEX ;> ;
+ < "Table of illustrations" ;TO_ILLUSTRATION ;> ;
+ < "Table of tables" ; TO_TABLE ;> ;
+ < "User-Defined" ; TO_USER ;> ;
+ < "Table of objects" ; TO_OBJECT ;> ;
+ < "Table of authorities" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; TO_CONTENT ;> ;
+ < " " ; TO_INDEX ;> ;
+ < " " ; TO_ILLUSTRATION ;> ;
+ < " " ; TO_TABLE ;> ;
+ < " " ; TO_USER ;> ;
+ < " " ; TO_OBJECT ;> ;
+ < " " ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Table of Contents" ; TO_CONTENT ;> ;
+ < "Alphabetical Index" ; TO_INDEX ;> ;
+ < "Illustration Index" ; TO_ILLUSTRATION ;> ;
+ < "Index of Tables" ; TO_TABLE ;> ;
+ < "User-Defined" ; TO_USER ;> ;
+ < "Table of Objects" ; TO_OBJECT ;> ;
+ < "Bibliography" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Índice geral" ; TO_CONTENT ;> ;
+ < "Índice remissivo" ; TO_INDEX ;> ;
+ < "Índice de ilustrações" ; TO_ILLUSTRATION ;> ;
+ < "Índice de tabelas" ; TO_TABLE ;> ;
+ < "Personalizado" ; TO_USER ;> ;
+ < "Índice de objectos" ; TO_OBJECT ;> ;
+ < "Bibliografia" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ russian ] =
+ {
+ < "Îãëàâëåíèå" ; TO_CONTENT ;> ;
+ < "Ïðåäìåòíûé óêàçàòåëü" ; TO_INDEX ;> ;
+ < "Ñïèñîê ðèñóíêîâ" ; TO_ILLUSTRATION ;> ;
+ < "Ñïèñîê òàáëèö" ; TO_TABLE ;> ;
+ < "Çàäàíî ïîëüçîâàòåëåì" ; TO_USER ;> ;
+ < "Ñïèñîê îáúåêòîâ" ; TO_OBJECT ;> ;
+ < "Ñïèñîê ëèòåðàòóðû" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÊáôÜëïãïò ðåñéå÷ïìÝíùí" ; TO_CONTENT ;> ;
+ < "ÅõñåôÞñéï ëÝîåùí" ; TO_INDEX ;> ;
+ < "ÊáôÜëïãïò åéêüíùí" ; TO_ILLUSTRATION ;> ;
+ < "ÅõñåôÞñéï ðéíÜêùí" ; TO_TABLE ;> ;
+ < "ÐñïóáñìïóìÝíá" ; TO_USER ;> ;
+ < "ÊáôÜëïãïò áíôéêåéìÝíùí" ; TO_OBJECT ;> ;
+ < "Âéâëéïãñáößá" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Inhoudsopgave" ; TO_CONTENT ;> ;
+ < "Trefwoordenregister" ; TO_INDEX ;> ;
+ < "Afbeeldingenregister" ; TO_ILLUSTRATION ;> ;
+ < "Tabellenregister" ; TO_TABLE ;> ;
+ < "Gebruikergedefinieerd" ; TO_USER ;> ;
+ < "Objectenregister" ; TO_OBJECT ;> ;
+ < "Literatuurlijst" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ french ] =
+ {
+ < "Table des matières" ; TO_CONTENT ;> ;
+ < "Index lexical" ; TO_INDEX ;> ;
+ < "Index des illustrations" ; TO_ILLUSTRATION ;> ;
+ < "Index des tables" ; TO_TABLE ;> ;
+ < "Index personnalisé" ; TO_USER ;> ;
+ < "Index des objets" ; TO_OBJECT ;> ;
+ < "Bibliographie" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Índice de contenido" ; TO_CONTENT ;> ;
+ < "Índice alfabético" ; TO_INDEX ;> ;
+ < "Índice de ilustraciones" ; TO_ILLUSTRATION ;> ;
+ < "Índice de tablas" ; TO_TABLE ;> ;
+ < "Índice del usuario" ; TO_USER ;> ;
+ < "Índice de objetos" ; TO_OBJECT ;> ;
+ < "Bibliografía" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ italian ] =
+ {
+ < "Indice generale" ; TO_CONTENT ;> ;
+ < "Indice analitico" ; TO_INDEX ;> ;
+ < "Indice delle illustrazioni" ; TO_ILLUSTRATION ;> ;
+ < "Indice delle tabelle" ; TO_TABLE ;> ;
+ < "Indice personalizzato" ; TO_USER ;> ;
+ < "Indice degli oggetti" ; TO_OBJECT ;> ;
+ < "Bibliografia" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ danish ] =
+ {
+ < "Indholdsfortegnelse" ; TO_CONTENT ;> ;
+ < "Stikordsregister" ; TO_INDEX ;> ;
+ < "Figuroversigt" ; TO_ILLUSTRATION ;> ;
+ < "Tabeloversigt" ; TO_TABLE ;> ;
+ < "Brugerdefineret" ; TO_USER ;> ;
+ < "Objektindeks" ; TO_OBJECT ;> ;
+ < "Litteraturliste" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Innehållsförteckning" ; TO_CONTENT ;> ;
+ < "Sakregister" ; TO_INDEX ;> ;
+ < "Illustrationsförteckning" ; TO_ILLUSTRATION ;> ;
+ < "Tabellförteckning" ; TO_TABLE ;> ;
+ < "Användardefinierad" ; TO_USER ;> ;
+ < "Objektförteckning" ; TO_OBJECT ;> ;
+ < "Litteraturförteckning" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ polish ] =
+ {
+ < "Spis treœci" ; TO_CONTENT ;> ;
+ < "Zestaw hase³" ; TO_INDEX ;> ;
+ < "Spis obrazów" ; TO_ILLUSTRATION ;> ;
+ < "Spis tabel" ; TO_TABLE ;> ;
+ < "Zdefiniowane przez u¿ytkownika" ; TO_USER ;> ;
+ < "Spis obiektów" ; TO_OBJECT ;> ;
+ < "Spis literatury" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Inhaltsverzeichnis" ; TO_CONTENT ;> ;
+ < "Stichwortverzeichnis" ; TO_INDEX ;> ;
+ < "Abbildungsverzeichnis" ; TO_ILLUSTRATION ;> ;
+ < "Tabellenverzeichnis" ; TO_TABLE ;> ;
+ < "Benutzerverzeichnis" ; TO_USER ;> ;
+ < "Objektverzeichnis" ; TO_OBJECT ;> ;
+ < "Literaturverzeichnis" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ japanese ] =
+ {
+ < "–ÚŽŸ" ; TO_CONTENT ;> ;
+ < "õˆø" ; TO_INDEX ;> ;
+ < "}‚Ìõˆø" ; TO_ILLUSTRATION ;> ;
+ < "•\\‚Ìõˆø" ; TO_TABLE ;> ;
+ < "Õ°»Þ°’è‹`" ; TO_USER ;> ;
+ < "µÌÞ¼Þª¸Ä‚Ìõˆø" ; TO_OBJECT ;> ;
+ < "ŽQl•¶Œ£•\\" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ korean ] =
+ {
+ < "³»¿ë Ç¥" ; TO_CONTENT ;> ;
+ < "¾ËÆĺª ¼øÀÇ »öÀÎ" ; TO_INDEX ;> ;
+ < "»ðÈ­ »öÀÎ" ; TO_ILLUSTRATION ;> ;
+ < "Ç¥ »öÀÎ" ; TO_TABLE ;> ;
+ < "»ç¿ëÀÚ Á¤ÀÇ" ; TO_USER ;> ;
+ < "°³Ã¼ Ç¥" ; TO_OBJECT ;> ;
+ < "Âü°í ¹®Çå" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÄÚÈÝĿ¼" ; TO_CONTENT ;> ;
+ < "Ë÷Òý" ; TO_INDEX ;> ;
+ < "²åͼĿ¼" ; TO_ILLUSTRATION ;> ;
+ < "±í¸ñĿ¼" ; TO_TABLE ;> ;
+ < "Óû§×Ô¶¨µÄ" ; TO_USER ;> ;
+ < "¶ÔÏóĿ¼" ; TO_OBJECT ;> ;
+ < "ÎÄÏ×Ŀ¼" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¤º®e¥Ø¿ý" ; TO_CONTENT ;> ;
+ < "¯Á¤Þ" ; TO_INDEX ;> ;
+ < "´¡¹Ï¥Ø¿ý" ; TO_ILLUSTRATION ;> ;
+ < "ªí®æ¥Ø¿ý" ; TO_TABLE ;> ;
+ < "¦Û­q" ; TO_USER ;> ;
+ < "ª«¥ó¥Ø¿ý" ; TO_OBJECT ;> ;
+ < "¤åÄm¥Ø¿ý" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÝåÑÓ ÇáãÍÊæíÇÊ" ; TO_CONTENT ;> ;
+ < "ÝåÑÓ ÃÈÌÏí" ; TO_INDEX ;> ;
+ < "ÝåÑÓ ÇáÕæÑ ÇáÅíÖÇÍíÉ" ; TO_ILLUSTRATION ;> ;
+ < "ÝåÑÓ ÇáÌÏÇæá" ; TO_TABLE ;> ;
+ < "ãÚÑÝ ãä ÞÈá ÇáãÓÊÎÏã" ; TO_USER ;> ;
+ < "ÝåÑÓ ÇáßÇÆäÇÊ" ; TO_OBJECT ;> ;
+ < "ÝåÑÓ ÇáãÑÇÌÚ" ; TO_AUTHORITIES ;> ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Ýçindekiler" ; TO_CONTENT ;> ;
+ < "Alfabetik dizin" ; TO_INDEX ;> ;
+ < "Resim dizini" ; TO_ILLUSTRATION ;> ;
+ < "Tablo dizini" ; TO_TABLE ;> ;
+ < "Kullanýcý tanýmlý" ; TO_USER ;> ;
+ < "Nesne dizini" ; TO_OBJECT ;> ;
+ < "Kaynakça" ; TO_AUTHORITIES ;> ;
+ };
+ };
+ CheckBox CB_READONLY
+ {
+ Pos = MAP_APPFONT ( 130 , 16 ) ;
+ Size = MAP_APPFONT ( 120 , 10 ) ;
+ Text = "G~eschützt vor manuellen Änderungen" ;
+ Text [ ENGLISH ] = "Protected against manual changes" ;
+ Check = TRUE;
+ Text[ english_us ] = "Protected against manual changes";
+ Text[ portuguese ] = "~Protegido contra modificações manuais";
+ Text[ russian ] = "Çàùèùåíî îò èçìåíåíèé âðó÷íóþ";
+ Text[ greek ] = "Ðñïóôáóßá Ýíáíôé ÷~åéñïêßí. áëëáãþí";
+ Text[ dutch ] = "B~eveiligd tegen handmatige wijzigingen.";
+ Text[ french ] = "~Protégé contre toute modification manuelle";
+ Text[ spanish ] = "Protegido contra modificaciones ~manuales";
+ Text[ italian ] = "Prot~etto contro modifiche manuali";
+ Text[ danish ] = "Beskyttet mod manuelle ændringer";
+ Text[ swedish ] = "Skyddad för manuella ändringar";
+ Text[ polish ] = "Chroniony przed rêcznymi zmianami";
+ Text[ portuguese_brazilian ] = "Protected against manual changes";
+ Text[ japanese ] = "”CˆÓ•ÏX‚©‚ç•ÛŒì";
+ Text[ korean ] = "¼öµ¿º¯È¯À¸·Î ºÎÅÍ º¸È£";
+ Text[ chinese_simplified ] = "·ÀÖ¹ÊÖ¶¯¸ü¸Ä";
+ Text[ chinese_traditional ] = "¤£¤¹³\\¤â¤uÅܧó";
+ Text[ arabic ] = "ãÄãøä ÖÏ ÇáÊÛííÑÇÊ ÇáíÏæíÉ";
+ Text[ turkish ] = "Manüel deðiþikliklere karþý koru";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_TITLE
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 30 ,10 ) ;
+ Text = "T~itel" ;
+ Text [ ENGLISH ] = "Title" ;
+ Text[ english_us ] = "~Title";
+ Text[ portuguese ] = "~Título";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ greek ] = "Ôßôëïò";
+ Text[ dutch ] = "T~itel";
+ Text[ french ] = "~Titre";
+ Text[ spanish ] = "Títu~lo";
+ Text[ italian ] = "T~itolo";
+ Text[ danish ] = "Overskrift";
+ Text[ swedish ] = "T~itel";
+ Text[ polish ] = "Tytu³";
+ Text[ portuguese_brazilian ] = "Title";
+ Text[ japanese ] = "À²ÄÙ(~T)";
+ Text[ korean ] = "Á¦¸ñ(~T)";
+ Text[ chinese_simplified ] = "±êÌâ(~T)";
+ Text[ chinese_traditional ] = "¼ÐÃD(~T)";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_TITLE
+ {
+ Pos = MAP_APPFONT ( 45 , 29 ) ;
+ Size = MAP_APPFONT ( 203 , 12 ) ;
+ Border = TRUE;
+ };
+ GroupBox GB_TYPETITLE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248, 41 ) ;
+ Text = "Typ und Titel" ;
+ Text [ ENGLISH ] = "Type and title" ;
+ Text[ english_us ] = "Type and title";
+ Text[ portuguese ] = "Tipo e título";
+ Text[ russian ] = "Òèï è çàãîëîâîê";
+ Text[ greek ] = "Ôýðïò êáé ôßôëïò";
+ Text[ dutch ] = "Type en titel";
+ Text[ french ] = "Type et titre";
+ Text[ spanish ] = "Tipo y título";
+ Text[ italian ] = "Tipo e titolo";
+ Text[ danish ] = "Type og overskrift";
+ Text[ swedish ] = "Typ och titel";
+ Text[ polish ] = "Typ i tytu³";
+ Text[ portuguese_brazilian ] = "Type and title";
+ Text[ japanese ] = "À²Ìß‚ÆÀ²ÄÙ";
+ Text[ korean ] = "ŸÀÔ°ú Á¦¸ñ";
+ Text[ chinese_simplified ] = "±êÌâºÍÀàÐÍ";
+ Text[ chinese_traditional ] = "Ãþ«¬©M¼ÐÃD";
+ Text[ arabic ] = "ÇáäæÚ æÇáÚäæÇä";
+ Text[ turkish ] = "Tip ve baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_AREA
+ {
+ Pos = MAP_APPFONT ( 12 , 58 ) ;
+ Size = MAP_APPFONT ( 113 , 12 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Gesamtes Dokument" ; AREA_DOCUMENT ;> ;
+ < "Kapitel" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Entire document" ; AREA_DOCUMENT ;> ;
+ < "Chapter" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; AREA_DOCUMENT ;> ;
+ < " " ; AREA_CHAPTER ;> ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Entire document" ; AREA_DOCUMENT ;> ;
+ < "Chapter" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Documento inteiro" ; AREA_DOCUMENT ;> ;
+ < "Capítulo" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ russian ] =
+ {
+ < "Âåñü äîêóìåíò" ; AREA_DOCUMENT ;> ;
+ < "Ãëàâà" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ greek ] =
+ {
+ < "Ïëüêëçñï ôï Ýããñáöï" ; AREA_DOCUMENT ;> ;
+ < "ÊåöÜëáéï" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Compleet document" ; AREA_DOCUMENT ;> ;
+ < "Hoofdstuk" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ french ] =
+ {
+ < "Document entier" ; AREA_DOCUMENT ;> ;
+ < "Chapitre" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Todo el documento" ; AREA_DOCUMENT ;> ;
+ < "Capítulo" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ italian ] =
+ {
+ < "Intero documento" ; AREA_DOCUMENT ;> ;
+ < "Capitolo" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ danish ] =
+ {
+ < "Hele dokumentet" ; AREA_DOCUMENT ;> ;
+ < "Kapitel" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Hela dokumentet" ; AREA_DOCUMENT ;> ;
+ < "Kapitel" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ polish ] =
+ {
+ < "Ca³y dokument" ; AREA_DOCUMENT ;> ;
+ < "Rozdzia³" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Gesamtes Dokument" ; AREA_DOCUMENT ;> ;
+ < "Kapitel" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ japanese ] =
+ {
+ < "‚·‚ׂĂÌÄÞ·­ÒÝÄ" ; AREA_DOCUMENT ;> ;
+ < "Í" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ korean ] =
+ {
+ < "Àüü ¹®¼­" ; AREA_DOCUMENT ;> ;
+ < "Àå" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "È«²¿Îĵµ" ; AREA_DOCUMENT ;> ;
+ < "ÕÂ" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¾ã­Ó¤å¥ó" ; AREA_DOCUMENT ;> ;
+ < "³¹¸`" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ãÓÊäÏ ßÇãá" ; AREA_DOCUMENT ;> ;
+ < "ÇáÝÕá" ; AREA_CHAPTER ;> ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Tüm belge" ; AREA_DOCUMENT ;> ;
+ < "Bölüm" ; AREA_CHAPTER ;> ;
+ };
+ };
+ FixedText FT_LEVEL
+ {
+ Pos = MAP_APPFONT ( 145 , 59 ) ;
+ Size = MAP_APPFONT ( 80 , 10 ) ;
+ Text = "A~uswerten bis Ebene" ;
+ Text [ ENGLISH ] = "Evaluation level" ;
+ Text[ english_us ] = "Evaluation level";
+ Text[ portuguese ] = "A~valiar até nível";
+ Text[ russian ] = "Îöåíèòü äî óðîâíÿ";
+ Text[ greek ] = "Áðïôßìçóç ùò åðßðåäï";
+ Text[ dutch ] = "~Aantal niveaus";
+ Text[ french ] = "~Niveau de profondeur souhaité";
+ Text[ spanish ] = "E~valuar hasta nivel";
+ Text[ italian ] = "Val~uta fino a livello";
+ Text[ danish ] = "Evaluer indtil niveau";
+ Text[ swedish ] = "~Utvärdera till nivå";
+ Text[ polish ] = "Ewaluuj do poziomu";
+ Text[ portuguese_brazilian ] = "Evaluation level";
+ Text[ japanese ] = "ŽŸ‚ÌÚÍÞÙ‚Ü‚Å“K—p";
+ Text[ korean ] = "Æò°¡ ´Ü°è";
+ Text[ chinese_simplified ] = "°üÀ¨±êÌ⼶±ð";
+ Text[ chinese_traditional ] = "¥]¬A¼ÐÃD¯Å§O";
+ Text[ arabic ] = "ÊÞííã ÍÊì ÇáãÓÊæì";
+ Text[ turkish ] = "Þu düzeye kadar:";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_LEVEL
+ {
+ Pos = MAP_APPFONT ( 228 , 59 ) ;
+ Size = MAP_APPFONT ( 20 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 10 ;
+ Value = 10 ;
+ SpinSize = 1 ;
+ };
+ GroupBox GB_AREA
+ {
+ Pos = MAP_APPFONT ( 6 , 47 ) ;
+ Size = MAP_APPFONT ( 248, 27 ) ;
+ Text = "~Verzeichnis erstellen für" ;
+ Text [ ENGLISH ] = "Create index of" ;
+ Text[ english_us ] = "Create index for";
+ Text[ portuguese ] = "Criar ín~dice para";
+ Text[ russian ] = "Ñîçäàòü óêàçàòåëü äëÿ";
+ Text[ greek ] = "Äçìéïõñãßá åõñåôçñßïõ ãéá";
+ Text[ dutch ] = "~Index maken voor";
+ Text[ french ] = "Créer un ~index pour";
+ Text[ spanish ] = "Crear í~ndice para";
+ Text[ italian ] = "Crea indice per";
+ Text[ danish ] = "Opret indeks for";
+ Text[ swedish ] = "Skapa fö~rteckning för";
+ Text[ polish ] = "Utwórz indeks dla";
+ Text[ portuguese_brazilian ] = "Create index of";
+ Text[ japanese ] = "õˆø쬂̑ÎÛ";
+ Text[ korean ] = "»öÀÎ ¸¸µé±â";
+ Text[ chinese_simplified ] = "½¨Á¢Ä¿Â¼ÓÃÓÚ";
+ Text[ chinese_traditional ] = "¥Í¦¨¥Ø¿ý¥Î©ó";
+ Text[ arabic ] = "ÅäÔÇÁ ÝåÑÓ áÜ";
+ Text[ turkish ] = "Þunun için dizin oluþtur:";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FROMHEADINGS
+ {
+ Pos = MAP_APPFONT ( 12 , 87 ) ;
+ Size = MAP_APPFONT ( 95 , 10 ) ;
+ Check = TRUE;
+ Text = "~Gliederung" ;
+ Text [ ENGLISH ] = "Outline" ;
+ Text[ english_us ] = "Outline";
+ Text[ portuguese ] = "~Esquema";
+ Text[ russian ] = "Ñòðóêòóðà";
+ Text[ greek ] = "ÄéÜñèñùóç";
+ Text[ dutch ] = "~Overzicht";
+ Text[ french ] = "~Structure";
+ Text[ spanish ] = "~Esquema";
+ Text[ italian ] = "Struttura";
+ Text[ danish ] = "Disposition";
+ Text[ swedish ] = "~Disposition";
+ Text[ polish ] = "Konspekt";
+ Text[ portuguese_brazilian ] = "Outline";
+ Text[ japanese ] = "±³ÄײÝ";
+ Text[ korean ] = "À±°û";
+ Text[ chinese_simplified ] = "´ó¸Ù";
+ Text[ chinese_traditional ] = "¤jºõ";
+ Text[ arabic ] = "ÊÞÓíã";
+ Text[ turkish ] = "Anahat";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_CHAPTERDLG
+ {
+ Pos = MAP_APPFONT ( 115 , 85 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ Text = "~..." ;
+ //Text [ ENGLISH ] = "" ;
+ TabStop = TRUE ;
+ };
+ CheckBox CB_ADDSTYLES
+ {
+ Pos = MAP_APPFONT ( 12 , 100 ) ;
+ Size = MAP_APPFONT ( 75 , 10 ) ;
+ Text = "~weiteren Vorlagen" ;
+ Text [ ENGLISH ] = "additional styles" ;
+ Text[ english_us ] = "~Additional Styles";
+ Text[ portuguese ] = "~Outros estilos";
+ Text[ russian ] = "Äîïîëíèòåëüíûå ñòèëè";
+ Text[ greek ] = "~Ðñüóèåôá ðñüôõðá";
+ Text[ dutch ] = "~andere opmaakprofielen";
+ Text[ french ] = "Styles ~supplémentaires";
+ Text[ spanish ] = "Otro~s estilos";
+ Text[ italian ] = "Altri modelli";
+ Text[ danish ] = "Yderligere typografier";
+ Text[ swedish ] = "Ytterligare ~mallar";
+ Text[ polish ] = "Inne szablony";
+ Text[ portuguese_brazilian ] = "additional styles";
+ Text[ japanese ] = "‚»‚Ì‘¼‚̽À²Ù";
+ Text[ korean ] = "ºÎ°¡ÀûÀÎ À¯Çü(~A)";
+ Text[ chinese_simplified ] = "ÆäËüÑùʽ";
+ Text[ chinese_traditional ] = "¨ä¥L¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÅÖÇÝíÉ";
+ Text[ turkish ] = "Diðer þablonlar";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_USER_ADDSTYLE
+ {
+ Text = "~Vorlagen" ;
+ Text [ ENGLISH ] = "Styles" ;
+ Text[ english_us ] = "Styl~es";
+ Text[ portuguese ] = "E~stilos";
+ Text[ russian ] = "Ñòèëè";
+ Text[ greek ] = "Ðñüôõðá";
+ Text[ dutch ] = "~Opmaakprofielen";
+ Text[ french ] = "~Styles";
+ Text[ spanish ] = "~Estilos";
+ Text[ italian ] = "Modelli";
+ Text[ danish ] = "Typografi";
+ Text[ swedish ] = "~Mallar";
+ Text[ polish ] = "Szablony";
+ Text[ portuguese_brazilian ] = "Styles";
+ Text[ japanese ] = "½À²Ù(~E)";
+ Text[ korean ] = "À¯Çü(~E)";
+ Text[ chinese_simplified ] = "Ñùʽ(~E)";
+ Text[ chinese_traditional ] = "¼Ë¦¡(~E)";
+ Text[ arabic ] = "ÃäãÇØ";
+ Text[ turkish ] = "Þablonlar";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_ADDSTYLES
+ {
+ Pos = MAP_APPFONT ( 115 , 98 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ Text = "..." ;
+ //Text [ ENGLISH ] = "" ;
+ TabStop = TRUE ;
+ };
+ RadioButton RB_FROMCAPTIONS
+ {
+ Pos = MAP_APPFONT ( 12 , 87 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Bes~chriftungen" ;
+ Text [ ENGLISH ] = "Captions" ;
+ Text[ english_us ] = "Captions";
+ Text[ portuguese ] = "~Legendas";
+ Text[ russian ] = "Íàçâàíèÿ";
+ Text[ greek ] = "ÅðéãñáöÝò";
+ Text[ dutch ] = "~Bijschriften";
+ Text[ french ] = "Légendes";
+ Text[ spanish ] = "Etiq~uetas";
+ Text[ italian ] = "Diciture";
+ Text[ danish ] = "Billedtekster";
+ Text[ swedish ] = "Bi~ldtexter";
+ Text[ polish ] = "Ety~kiety";
+ Text[ portuguese_brazilian ] = "Captions";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ korean ] = "ĸ¼Ç";
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ chinese_traditional ] = "¼ÐÅÒ";
+ Text[ arabic ] = "ÊÓãíÇÊ ÊæÖíÍíÉ";
+ Text[ turkish ] = "Resim yazýsý";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_CAPTIONSEQUENCE
+ {
+ Pos = MAP_APPFONT ( 12 , 101 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Kategorie" ;
+ Text [ ENGLISH ] = "Category" ;
+ Text[ english_us ] = "Category";
+ Text[ portuguese ] = "~Categoria";
+ Text[ russian ] = "Êàòåãîðèÿ";
+ Text[ greek ] = "Êáôçãïñßá";
+ Text[ dutch ] = "~Categorie";
+ Text[ french ] = "~Catégorie";
+ Text[ spanish ] = "~Categoría";
+ Text[ italian ] = "C~ategoria";
+ Text[ danish ] = "Kategori";
+ Text[ swedish ] = "~Kategori";
+ Text[ polish ] = "Kategorie";
+ Text[ portuguese_brazilian ] = "Category";
+ Text[ japanese ] = "¶ÃºÞØ°";
+ Text[ korean ] = "ºÐ·ùÇ׸ñ";
+ Text[ chinese_simplified ] = "·ÖÀà";
+ Text[ chinese_traditional ] = "­S³ò";
+ Text[ arabic ] = "ÇáÝÆÉ";
+ Text[ turkish ] = "Kategori";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_CAPTIONSEQUENCE
+ {
+ Pos = MAP_APPFONT ( 55 , 99 ) ;
+ Size = MAP_APPFONT ( 70 , 40 ) ;
+ DropDown = TRUE;
+ TabStop = TRUE;
+ };
+ FixedText FT_DISPLAYTYPE
+ {
+ Pos = MAP_APPFONT ( 12 , 115 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Anzeige" ;
+ Text [ ENGLISH ] = "Display" ;
+ Text[ english_us ] = "Display";
+ Text[ portuguese ] = "~Monitor";
+ Text[ russian ] = "Ïîêàçàòü";
+ Text[ greek ] = "Ïèüíç";
+ Text[ dutch ] = "~Weergave";
+ Text[ french ] = "~Affichage";
+ Text[ spanish ] = "Visuali~zación";
+ Text[ italian ] = "~Visualizzazione";
+ Text[ danish ] = "Visning";
+ Text[ swedish ] = "Visning";
+ Text[ polish ] = "Poka¿";
+ Text[ portuguese_brazilian ] = "Display";
+ Text[ japanese ] = "•\\Ž¦";
+ Text[ korean ] = "Ç¥½Ã";
+ Text[ chinese_simplified ] = "ÏÔʾ";
+ Text[ chinese_traditional ] = "Åã¥Ü";
+ Text[ arabic ] = "ÚÑÖ";
+ Text[ turkish ] = "Görüntü";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_DISPLAYTYPE
+ {
+ Pos = MAP_APPFONT ( 55 , 114 ) ;
+ Size = MAP_APPFONT ( 70 , 40 ) ;
+ DropDown = TRUE;
+ TabStop = TRUE;
+ StringList =
+ {
+ < "Referenztext" ; > ;
+ < "Kategorie und Nummer" ; > ;
+ < "Beschriftungstext" ; > ;
+ };
+ StringList [English]=
+ {
+ < "Reference text" ; > ;
+ < "Category and number" ; > ;
+ < "Caption text" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "References" ; > ;
+ < "Category and Number" ; > ;
+ < "Caption Text" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Texto de referência" ; > ;
+ < "Categoria e número" ; > ;
+ < "Texto para legenda" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Òåêñò ññûëêè" ; > ;
+ < "Êàòåãîðèÿ è íîìåð" ; > ;
+ < "Òåêñò íàçâàíèÿ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "Êåßìåíï áíáöïñÜò" ; > ;
+ < "Êáôçãïñßá êáé áñéèìüò" ; > ;
+ < "Êåßìåíï åðéãñáöÞò" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Referentietekst" ; > ;
+ < "Categorie en nummer" ; > ;
+ < "Bijschrifttekst" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "Texte de référence" ; > ;
+ < "Catégorie et numéro" ; > ;
+ < "Texte de légende" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Texto de referencia" ; > ;
+ < "Categoría y número" ; > ;
+ < "Texto de la etiqueta" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Testo di riferimento" ; > ;
+ < "Categoria e numero" ; > ;
+ < "Dicitura" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Referencetekst" ; > ;
+ < "Kategori og nummer" ; > ;
+ < "Billedtekst" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Referenstext" ; > ;
+ < "Kategori och nummer" ; > ;
+ < "Bildtext" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Tekst odwo³añ" ; > ;
+ < "Kategoria i numer" ; > ;
+ < "Tekst etykiety" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Referenztext" ; > ;
+ < "Kategorie und Nummer" ; > ;
+ < "Beschriftungstext" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "ŽQÆ•¶Žš—ñ" ; > ;
+ < "¶ÃºÞØ°‚ƔԆ" ; > ;
+ < "×ÍÞÙ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ÂüÁ¶" ; > ;
+ < "ºÐ·ùÇ׸ñ°ú ¼ýÀÚ" ; > ;
+ < "ĸ¼Ç ÅؽºÆ®" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "²Î¿¼ÎÄ" ; > ;
+ < "·ÖÀàºÍ±àºÅ" ; > ;
+ < "±êÇ©ÎÄ" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "°Ñ·Ó¤å" ; > ;
+ < "­S³ò©M¸¹½X" ; > ;
+ < "¼ÐÅÒ¤å" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "äÕ ãÑÌÚí" ; > ;
+ < "ÇáÝÆÉ æÇáÑÞã" ; > ;
+ < "äÕ ÇáÊÓãíÉ ÇáÊæÖíÍíÉ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Referans metni" ; > ;
+ < "Kategori ve numara" ; > ;
+ < "Resim yazýsý" ; > ;
+ };
+ };
+ RadioButton RB_FROMOBJECTNAMES
+ {
+ Pos = MAP_APPFONT ( 156 , 87 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Obje~ktnamen" ;
+ Text [ ENGLISH ] = "Object names" ;
+ Text[ english_us ] = "Object names";
+ Text[ portuguese ] = "Nomes de ~objectos";
+ Text[ russian ] = "Íàçâàíèÿ îáúåêòîâ";
+ Text[ greek ] = "Ïíüìáôá áíôéêåéìÝíïõ";
+ Text[ dutch ] = "Obje~ctnamen";
+ Text[ french ] = "~Noms d'objets";
+ Text[ spanish ] = "Nombres de o~bjeto";
+ Text[ italian ] = "~Nome oggetti";
+ Text[ danish ] = "Objektnavne";
+ Text[ swedish ] = "Objektnamn";
+ Text[ polish ] = "Nazwy obiektów";
+ Text[ portuguese_brazilian ] = "Object names";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä–¼";
+ Text[ korean ] = "°³Ã¼ À̸§";
+ Text[ chinese_simplified ] = "¶ÔÏóÃû³Æ";
+ Text[ chinese_traditional ] = "ª«¥ó¦WºÙ";
+ Text[ arabic ] = "ÃÓãÇÁ ÇáßÇÆä";
+ Text[ turkish ] = "Nesne adlarý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_TOXMARKS
+ {
+ Pos = MAP_APPFONT ( 12 , 113 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Verzeichnism~arkierungen" ;
+ Text [ ENGLISH ] = "Index entries" ;
+ Text[ english_us ] = "Inde~x marks";
+ Text[ portuguese ] = "~Marcas do índice";
+ Text[ russian ] = "Ìåòêè óêàçàòåëÿ";
+ Text[ greek ] = "ÓçìÜíóåéò åõñåôçñßïõ";
+ Text[ dutch ] = "~Indexmarkeringen";
+ Text[ french ] = "~Marques d'index";
+ Text[ spanish ] = "Mar~cas del índice";
+ Text[ italian ] = "Contrasse~gni indice";
+ Text[ danish ] = "Indeksmarkeringer";
+ Text[ swedish ] = "Förteckningsm~arkeringar";
+ Text[ polish ] = "Zaz~naczanie indeksów";
+ Text[ portuguese_brazilian ] = "Index entries";
+ Text[ japanese ] = "õˆø‘I‘ð€–Ú";
+ Text[ korean ] = "À妽º Ç¥±â(~X)";
+ Text[ chinese_simplified ] = "±ê¼ÇĿ¼ÌõÄ¿";
+ Text[ chinese_traditional ] = "¥Ø¿ý¼Ð°O";
+ Text[ arabic ] = "ÊÍÏíÏÇÊ ÇáÝåÑÓ";
+ Text[ turkish ] = "Dizin ~iþaretleri";
+ };
+ GroupBox GB_CREATEFROM
+ {
+ Pos = MAP_APPFONT ( 6 , 77 ) ;
+ Size = MAP_APPFONT ( 248, 56 ) ;
+ Text = "Erzeugen aus" ;
+ Text [ ENGLISH ] = "Create from" ;
+ Text[ english_us ] = "Create from";
+ Text[ portuguese ] = "Criar a partir de";
+ Text[ russian ] = "Ñîçäàòü èç";
+ Text[ greek ] = "Äçìéïõñãßá áðü";
+ Text[ dutch ] = "Maken van";
+ Text[ french ] = "Créer à partir de";
+ Text[ spanish ] = "Crear de";
+ Text[ italian ] = "Crea da";
+ Text[ danish ] = "Opret ud fra";
+ Text[ swedish ] = "Skapa från";
+ Text[ polish ] = "Utwórz z";
+ Text[ portuguese_brazilian ] = "Create from";
+ Text[ japanese ] = "쬌ó•â";
+ Text[ korean ] = "·ÎºÎÅÍ ¸¸µé±â";
+ Text[ chinese_simplified ] = "Éú³É²ÉÓÃ";
+ Text[ chinese_traditional ] = "¥Í¦¨±q";
+ Text[ arabic ] = "ÅäÔÇÁ ãä";
+ Text[ turkish ] = "Kaynak";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_COLLECTSAME
+ {
+ Pos = MAP_APPFONT ( 12 , 86 ) ;
+ Size = MAP_APPFONT ( 121 , 10 ) ;
+ Text = "Zusammenfassen ~gleicher Einträge" ;
+ Text [ ENGLISH ] = "Combine identical entries" ;
+ Text[ english_us ] = "Combine identical entries";
+ Text[ portuguese ] = "Agrupar entradas ~idênticas";
+ Text[ russian ] = "Îáúåäèíÿòü îäèíàêîâûå ýëåìåíòû";
+ Text[ greek ] = "Óõ~ãêÝíôñùóç ôáõôüóçìùí åããñáöþí";
+ Text[ dutch ] = "~Samenvatten van identieke items";
+ Text[ french ] = "Grouper les entrées ~identiques";
+ Text[ spanish ] = "Com~binar entradas idénticas";
+ Text[ italian ] = "Riunisci voci ~uguali";
+ Text[ danish ] = "Kombiner identiske elementer";
+ Text[ swedish ] = "Kom~binera likadana poster";
+ Text[ polish ] = "Sc~al takie same wpisy";
+ Text[ portuguese_brazilian ] = "Combine identical entries";
+ Text[ japanese ] = "“¯ˆê€–Ú‚ð“‡";
+ Text[ korean ] = "µ¿ÀÏ Ç׸ñ Á¶ÇÕ";
+ Text[ chinese_simplified ] = "ºÏ²¢ÏàͬµÄÌõÄ¿";
+ Text[ chinese_traditional ] = "¦X¦}¦P¤@±ø¥Ø";
+ Text[ arabic ] = "Öã ÇáÅÏÎÇáÇÊ ÇáãÊãÇËáÉ";
+ Text[ turkish ] = "~Eþ giriþleri birleþtir";
+ };
+ CheckBox CB_USEFF
+ {
+ Pos = MAP_APPFONT ( 18 , 98 ) ;
+ Size = MAP_APPFONT ( 115 , 10 ) ;
+ Text = "Zusammenfassen mit ~f oder ff" ;
+ Text [ english ] = "Combine identical entries with ~pp." ;
+ Text[ english_us ] = "Combine identical entries with p or ~pp";
+ Text[ portuguese ] = "Combinar com entradas ~seguinte(s)";
+ Text[ russian ] = "Îáúåäèíÿòü ýëåìåíòû ñ ñ èëè ññ";
+ Text[ greek ] = "ÁíÜëõóç ìå ~å Þ ìå åð.";
+ Text[ dutch ] = "Samenvatten met ~e.v.";
+ Text[ french ] = "~avec \"et suiv.\"";
+ Text[ spanish ] = "Combinar entradas con las ~siguiente(s)";
+ Text[ italian ] = "Riunisci con ~p. o pp.";
+ Text[ danish ] = "Kombiner med f. eller ff.";
+ Text[ swedish ] = "Kombinera med ~f eller ff";
+ Text[ polish ] = "Streœæ za pomoc¹ s lub ss";
+ Text[ portuguese_brazilian ] = "Combine identical entries with ~pp.";
+ Text[ japanese ] = "‘±‚«Íß°¼Þ‚ð p ‚Ü‚½‚Í pp ‚Å•\\Ž¦(~P)";
+ Text[ korean ] = "p ¶Ç´Âpp¿Í µ¿ÀÏ Ç׸ñÀ» Çϳª·Î ¹­À½(~P)";
+ Text[ chinese_simplified ] = "ºÏ²¢´ø f »ò ff µÄÌõÄ¿(~P)";
+ Text[ chinese_traditional ] = "¦X¦}¥Î ~f ©Î ff";
+ Text[ arabic ] = "Combine identical entries with ~pp.";
+ Text[ turkish ] = "Sonraki ~sayfa ya da sayfalar ile birleþtir";
+ };
+ CheckBox CB_USE_DASH
+ {
+ Pos = MAP_APPFONT ( 18 , 110 ) ;
+ Size = MAP_APPFONT ( 115 , 10 ) ;
+ Text = "Zusammenfassen ~mit -" ;
+ Text [ english ] = "Combine identical entries with -" ;
+ Text[ english_us ] = "Combine with -";
+ Text[ portuguese ] = "Agrupar ~com -";
+ Text[ russian ] = "Îáúåäèíÿòü ýëåìåíòû ñ -";
+ Text[ greek ] = "ÓõãêÝíôñùóç ~ìå";
+ Text[ dutch ] = "Samenvatten ~met -";
+ Text[ french ] = "a~vec -";
+ Text[ spanish ] = "U~nir con -";
+ Text[ italian ] = "Riunisci ~con -";
+ Text[ danish ] = "Kombiner med -";
+ Text[ swedish ] = "Kombinera ~med -";
+ Text[ polish ] = "~Scal z -";
+ Text[ portuguese_brazilian ] = "Combine identical entries with -";
+ Text[ japanese ] = "‘±‚«Íß°¼Þ‚ð - ‚Å•\\Ž¦";
+ Text[ korean ] = "-¿Í µ¿ÀÏ Ç׸ñ Á¶ÇÕ";
+ Text[ chinese_simplified ] = "Óà - ºÏ²¢";
+ Text[ chinese_traditional ] = "¦X¦}¥Î -";
+ Text[ arabic ] = "Öã ÈÇÓÊÎÏÇã -";
+ Text[ turkish ] = "~Birleþme -";
+ };
+ CheckBox CB_CASESENSITIVE
+ {
+ Pos = MAP_APPFONT ( 18 , 122 ) ;
+ Size = MAP_APPFONT ( 115 , 10 ) ;
+ Text = "Groß- und ~Kleinschreibung beachten" ;
+ Text [ ENGLISH ] = "Case sensitive" ;
+ Text[ english_us ] = "Case sensitive";
+ Text[ portuguese ] = "Maiús~culas e minúsculas";
+ Text[ russian ] = "Ó÷èòûâàòü ðåãèñòð";
+ Text[ greek ] = "Óõìöùíßá ðåæþí-êåöáëáßùí";
+ Text[ dutch ] = "Hoofdletters/~kleine letters belangrijk";
+ Text[ french ] = "en respectant la ~casse";
+ Text[ spanish ] = "~Mayúsculas/minúsculas";
+ Text[ italian ] = "Maiuscole/minu~scole";
+ Text[ danish ] = "Forskel på store og små bogstaver";
+ Text[ swedish ] = "Observera stor och liten bo~kstav";
+ Text[ polish ] = "Uwzglêd~nij ma³e i du¿e litery";
+ Text[ portuguese_brazilian ] = "Case sensitive";
+ Text[ japanese ] = "‘啶Žš/¬•¶Žš‚ð‹æ•Ê";
+ Text[ korean ] = "´ë/¼Ò¹®ÀÚ ±¸ºÐ";
+ Text[ chinese_simplified ] = "Çø·Ö´óСд";
+ Text[ chinese_traditional ] = "°Ï¤À¦r¥À¤j¤p¼g";
+ Text[ arabic ] = "ãÑÇÚÇÉ ÇáÃÍÑÝ ÇáßÈíÑÉ/ÇáÕÛíÑÉ";
+ Text[ turkish ] = "Büyük/küçük harf duyarlý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_INITIALCAPS
+ {
+ Pos = MAP_APPFONT ( 136 , 86 ) ;
+ Size = MAP_APPFONT ( 115 , 10 ) ;
+ Text = "Einträge ~automatisch großschreiben";
+ Text [ ENGLISH ] = "Capitalize entries";
+ Text[ english_us ] = "AutoCapitalize entries";
+ Text[ portuguese ] = "~Escrever entradas em maiúsculas autom.";
+ Text[ russian ] = "Ýëåìåíòû çàãëàâíûìè áóêâàìè (àâòîì.)";
+ Text[ greek ] = "ÅããñáöÝò áõôïìÜôùò ìå êåöáëáßá ãñÜììáôá";
+ Text[ dutch ] = "Items automatisch in ~hoofdletterss";
+ Text[ french ] = "Entrées en majuscules (autom.)";
+ Text[ spanish ] = "Escribir entradas automáticamente en ma~yúsculas";
+ Text[ italian ] = "Scrivi le voci maiusc~ole";
+ Text[ danish ] = "Skriv elementer automatisk med stort";
+ Text[ swedish ] = "Skriv ~automatiskt poster med stor bokstav";
+ Text[ polish ] = "Wpisy autom. zapisywa~æ du¿ymi literami";
+ Text[ portuguese_brazilian ] = "Capitalize entries";
+ Text[ japanese ] = "Œê“ª‚ðŽ©“®“I‚ɑ啶Žš‚É‚·‚é";
+ Text[ korean ] = "´ë¹®ÀÚ Ç׸ñ";
+ Text[ chinese_simplified ] = "×Ô¶¯×ª»»³É´óдÌõÄ¿";
+ Text[ chinese_traditional ] = "Âà°ÊÂà´«¦¨¤j¼g¦r¥À";
+ Text[ arabic ] = "ßÊÇÈÉ ÇáÅÏÎÇáÇÊ ÈÃÍÑÝ ßÈíÑÉ ÊáÞÇÆíÇð";
+ Text[ turkish ] = "Giriþleri otomatik olarak büyük harfle baþla";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_KEYASENTRY
+ {
+ Pos = MAP_APPFONT ( 136, 98 ) ;
+ Size = MAP_APPFONT ( 100 , 10 ) ;
+ Text = "~Schlüssel als eigener Eintrag" ;
+ Text [ ENGLISH ] = "Keys as separate entries" ;
+ Text[ english_us ] = "Keys as separate entries";
+ Text[ portuguese ] = "~Chaves como entradas separadas";
+ Text[ russian ] = "Êëþ÷ êàê îòäåëüíûé ýëåìåíò";
+ Text[ greek ] = "ÊëåéäéÜ ùò îå÷ùñé~óôÞ åéóáãùãÞ";
+ Text[ dutch ] = "~Sleutel als extra item";
+ Text[ french ] = "~Clé comme entrée séparée";
+ Text[ spanish ] = "~Claves como entradas propias";
+ Text[ italian ] = "~Chiavi come voci separate";
+ Text[ danish ] = "Nøgle som separat element";
+ Text[ swedish ] = "~Nyckel som egen post";
+ Text[ polish ] = "Klucz ja~ko wpis w³asny";
+ Text[ portuguese_brazilian ] = "Keys as separate entries";
+ Text[ japanese ] = "”CˆÓ“ü—Í—p·°";
+ Text[ korean ] = "ºÐ¸® Ç׸ñÀ¸·Î¼­ÀÇ Å°";
+ Text[ chinese_simplified ] = "¼üÂë×÷Ϊµ¥¶ÀµÄÌõÄ¿";
+ Text[ chinese_traditional ] = "Áä½X·í§@¤@­Ó¦Û¤vªº±ø¥Ø";
+ Text[ arabic ] = "ÇáãÝÊÇÍ ßÅÏÎÇá ãäÝÕá";
+ Text[ turkish ] = "Anahtarlarý ayrý giriþ olarak gir";
+ };
+ CheckBox CB_FROMFILE
+ {
+ Pos = MAP_APPFONT ( 136 , 110 ) ;
+ Size = MAP_APPFONT ( 73 , 10 ) ;
+ Text = "Konko~rdanzdatei" ;
+ Text [ ENGLISH ] = "...file??" ;
+ Text[ english_us ] = "~Concordance file";
+ Text[ portuguese ] = "~Ficheiro de concordância";
+ Text[ russian ] = "Ôàéë-êîíêîðäàíñ";
+ Text[ greek ] = "~Áñ÷åßï ôáîéíüìçóçò";
+ Text[ dutch ] = "~Concordantiebestand";
+ Text[ french ] = "Fichier de ~concordance";
+ Text[ spanish ] = "~Archivo de concordancia";
+ Text[ italian ] = "File di conco~rdanza";
+ Text[ danish ] = "Konkordansfil";
+ Text[ swedish ] = "Konkordansfil";
+ Text[ polish ] = "Plik konkordancji";
+ Text[ portuguese_brazilian ] = "Create entries from file";
+ Text[ japanese ] = "—pŒêõˆø(~C)";
+ Text[ korean ] = "ÀÏÄ¡ÇÏ´Â ÆÄÀÏ(~C)";
+ Text[ chinese_simplified ] = "ÓÉÎļþ»ã±à³öÌõÄ¿(~C)";
+ Text[ chinese_traditional ] = "±qÀɮ׶׽s±ø¥Ø(~C)";
+ Text[ arabic ] = "ãáÝ ÝåÑÓ ÃÈÌÏí";
+ Text[ turkish ] = "Uyumluluk dosyasý";
+ };
+ CheckBox CB_FROMTABLES
+ {
+ Pos = MAP_APPFONT ( 112 , 87 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "~Tabellen" ;
+ Text [ ENGLISH ] = "Tables" ;
+ Text[ english_us ] = "Tables";
+ Text[ portuguese ] = "~Tabelas";
+ Text[ russian ] = "Òàáëèöû";
+ Text[ greek ] = "Ðßíáêåò";
+ Text[ dutch ] = "~Tabellen";
+ Text[ french ] = "~Tables";
+ Text[ spanish ] = "~Tablas";
+ Text[ italian ] = "Ta~belle";
+ Text[ danish ] = "Tabeller";
+ Text[ swedish ] = "~Tabeller";
+ Text[ polish ] = "Tabele";
+ Text[ portuguese_brazilian ] = "Tables";
+ Text[ japanese ] = "•\\";
+ Text[ korean ] = "Ç¥";
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏÇæá";
+ Text[ turkish ] = "Tablolar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FROMFRAMES
+ {
+ Pos = MAP_APPFONT ( 182 , 87 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "Te~xtrahmen" ;
+ Text [ ENGLISH ] = "Text frames" ;
+ Text[ english_us ] = "Te~xt frames";
+ Text[ portuguese ] = "~Molduras de texto";
+ Text[ russian ] = "Òåêñòîâûå ðàìêè";
+ Text[ greek ] = "Ðëáßóéï êåéìÝíïõ";
+ Text[ dutch ] = "~Tekstkaders";
+ Text[ french ] = "Cadre ~texte";
+ Text[ spanish ] = "Marco de te~xto";
+ Text[ italian ] = "Cornici";
+ Text[ danish ] = "Tekstboks";
+ Text[ swedish ] = "Textramar";
+ Text[ polish ] = "Ramki tekstu";
+ Text[ portuguese_brazilian ] = "Text frames";
+ Text[ japanese ] = "÷½Ä˜g(~X)";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓ(~X)";
+ Text[ chinese_simplified ] = "Îı¾¿ò(~X)";
+ Text[ chinese_traditional ] = "¤å¦r¤è®Ø(~X)";
+ Text[ arabic ] = "ÅØÇÑÇÊ äÕ";
+ Text[ turkish ] = "Metin çerçevesi";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FROMGRAPHICS
+ {
+ Pos = MAP_APPFONT ( 112 , 100 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "~Grafiken" ;
+ Text [ ENGLISH ] = "Graphics" ;
+ Text[ english_us ] = "Graphics";
+ Text[ portuguese ] = "~Imagens";
+ Text[ russian ] = "Ðèñóíêè";
+ Text[ greek ] = "ÃñáöéêÜ";
+ Text[ dutch ] = "~Afbeeldingen";
+ Text[ french ] = "~Images";
+ Text[ spanish ] = "Imágene~s";
+ Text[ italian ] = "~Immagini";
+ Text[ danish ] = "Billeder";
+ Text[ swedish ] = "~Grafiker";
+ Text[ polish ] = "Grafiki";
+ Text[ portuguese_brazilian ] = "Graphics";
+ Text[ japanese ] = "}";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ chinese_traditional ] = "¹Ï§Î";
+ Text[ arabic ] = "ÕæÑ";
+ Text[ turkish ] = "Grafikler";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FROMOLE
+ {
+ Pos = MAP_APPFONT ( 182 , 100 ) ;
+ Size = MAP_APPFONT ( 68 , 10 ) ;
+ Text = "~OLE-Objekten" ;
+ Text [ ENGLISH ] = "OLE objects" ;
+ Text[ english_us ] = "OLE objects";
+ Text[ portuguese ] = "~Objectos OLE";
+ Text[ russian ] = "Îáúåêòû OLE";
+ Text[ greek ] = "Áíôéêåßìåíá OLE";
+ Text[ dutch ] = "~OLE-objecten";
+ Text[ french ] = "Objets ~OLE";
+ Text[ spanish ] = "Objetos O~LE";
+ Text[ italian ] = "O~ggetti OLE";
+ Text[ danish ] = "OLE-objekter";
+ Text[ swedish ] = "~OLE-objekt";
+ Text[ polish ] = "Obiekty OLE";
+ Text[ portuguese_brazilian ] = "OLE objects";
+ Text[ japanese ] = "OLEµÌÞ¼Þª¸Ä";
+ Text[ korean ] = "OLE °³Ã¼";
+ Text[ chinese_simplified ] = "OLE ¶ÔÏó";
+ Text[ chinese_traditional ] = "OLE ª«¥ó";
+ Text[ arabic ] = "ßÇÆäÇÊ OLE";
+ Text[ turkish ] = "OLE nesneleri";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_LEVELFROMCHAPTER
+ {
+ Pos = MAP_APPFONT ( 118 , 113 ) ;
+ Size = MAP_APPFONT ( 103 , 10 ) ;
+ Text = "Ebene aus Urs~prungskapitel" ;
+ Text [ ENGLISH ] = "Use level from source" ;
+ Text[ english_us ] = "Use level from source chapter";
+ Text[ portuguese ] = "Nível do ~capítulo de origem";
+ Text[ russian ] = "Óðîâåíü èç èñõîäíîé ãëàâû";
+ Text[ greek ] = "Åðßðåäï ùò êåöÜëáéï ~ðñïÝëåõóçò";
+ Text[ dutch ] = "Niveau als ~oorsprongshoofdstuk";
+ Text[ french ] = "Niveau du chapitre d'~origine";
+ Text[ spanish ] = "Nivel del capítulo orige~n";
+ Text[ italian ] = "Livello dal capitolo ~sorgente";
+ Text[ danish ] = "Niveau fra kildekapitel";
+ Text[ swedish ] = "Nivå från urs~prungskapitel";
+ Text[ polish ] = "Poziom ze Ÿród³a";
+ Text[ portuguese_brazilian ] = "Use level from source";
+ Text[ japanese ] = "‚à‚Æ‚ÌÍ‚ÌÚÍÞÙ";
+ Text[ korean ] = "¿ø·¡ Àå¿¡¼­ÀÇ ¼öÁØ »ç¿ë";
+ Text[ chinese_simplified ] = "ʹÓÃÔ´Õ½ڵļ¶";
+ Text[ chinese_traditional ] = "¯Å±q·½³¹¸`";
+ Text[ arabic ] = "ÇÓÊÎÏÇã ãÓÊæì ãä ÇáÝÕá ÇáãÕÏÑí";
+ Text[ turkish ] = "Kaynak bölümdeki düzeyi kullan";
+ };
+ MenuButton MB_AUTOMARK
+ {
+ Pos = MAP_APPFONT ( 210 , 110 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Datei" ;
+ Text [ ENGLISH ] = "File" ;
+ TabStop = TRUE ;
+ ButtonMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_AUTOMARK_OPEN ;
+ Text = "Öffnen";
+ Text[English] = "Open";
+ Text[ english_us ] = "Open";
+ Text[ portuguese ] = "Abrir";
+ Text[ russian ] = "Îòêðûòü";
+ Text[ greek ] = "¢íïéãìá";
+ Text[ dutch ] = "Open";
+ Text[ french ] = "Ouvrir";
+ Text[ spanish ] = "Abrir";
+ Text[ italian ] = "Apri";
+ Text[ danish ] = "Åbn";
+ Text[ swedish ] = "Öppna";
+ Text[ polish ] = "Otwórz";
+ Text[ portuguese_brazilian ] = "Open";
+ Text[ japanese ] = "ŠJ‚­";
+ Text[ korean ] = "¿­±â";
+ Text[ chinese_simplified ] = "´ò¿ª";
+ Text[ chinese_traditional ] = "¶}±ÒÂÂÀÉ";
+ Text[ arabic ] = "ÝÊÍ";
+ Text[ turkish ] = "Aç";
+ };
+ MenuItem
+ {
+ Identifier = MN_AUTOMARK_NEW ;
+ Text = "~Neu..." ;
+ Text [ ENGLISH ] = "New..." ;
+ Text[ english_us ] = "~New...";
+ Text[ portuguese ] = "~Novo...";
+ Text[ russian ] = "Ñîçäàòü...";
+ Text[ greek ] = "~Äçìéïõñãßá...";
+ Text[ dutch ] = "~Nieuw...";
+ Text[ french ] = "~Nouveau...";
+ Text[ spanish ] = "~Nuevo...";
+ Text[ italian ] = "~Nuovo...";
+ Text[ danish ] = "~Ny...";
+ Text[ swedish ] = "~Nytt...";
+ Text[ polish ] = "~Nowy...";
+ Text[ portuguese_brazilian ] = "New...";
+ Text[ japanese ] = "V‹Kì¬(~N)...";
+ Text[ korean ] = "»õ·Î(~N)...";
+ Text[ chinese_simplified ] = "н¨...";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(~N)...";
+ Text[ arabic ] = "ÌÏíÏ...";
+ Text[ turkish ] = "Yeni...";
+ };
+ MenuItem
+ {
+ Identifier = MN_AUTOMARK_EDIT ;
+ Text = "~Bearbeiten..." ;
+ Text [ ENGLISH ] = "Edit..." ;
+ Text[ english_us ] = "~Edit...";
+ Text[ portuguese ] = "~Editar...";
+ Text[ russian ] = "Ïðàâêà...";
+ Text[ greek ] = "~Åðåîåñãáóßá...";
+ Text[ dutch ] = "~Bewerken...";
+ Text[ french ] = "~Éditer...";
+ Text[ spanish ] = "~Editar...";
+ Text[ italian ] = "~Modifica...";
+ Text[ danish ] = "~Rediger...";
+ Text[ swedish ] = "~Redigera...";
+ Text[ polish ] = "~Edytuj...";
+ Text[ portuguese_brazilian ] = "Edit...";
+ Text[ japanese ] = "•ÒW(~E)...";
+ Text[ korean ] = "ÆíÁý(~E)...";
+ Text[ chinese_simplified ] = "±à¼­...";
+ Text[ chinese_traditional ] = "½s¿è(~E)...";
+ Text[ arabic ] = "ÊÍÑíÑ...";
+ Text[ turkish ] = "Düzenle...";
+ };
+ };
+ };
+ Text[ english_us ] = "~File";
+ Text[ portuguese ] = "~Ficheiro";
+ Text[ russian ] = "Ôàéë";
+ Text[ greek ] = "~Áñ÷åßï";
+ Text[ dutch ] = "~Bestand";
+ Text[ french ] = "~Fichier";
+ Text[ spanish ] = "~Archivo";
+ Text[ italian ] = "File";
+ Text[ danish ] = "~Filer";
+ Text[ swedish ] = "~Fil";
+ Text[ polish ] = "~Plik";
+ Text[ portuguese_brazilian ] = "File";
+ Text[ japanese ] = "̧²Ù";
+ Text[ korean ] = "ÆÄÀÏ(~F)";
+ Text[ chinese_simplified ] = "Îļþ";
+ Text[ chinese_traditional ] = "ÀÉ®×";
+ Text[ arabic ] = "ãáÝ";
+ Text[ turkish ] = "Dosya";
+ };
+/* PushButton PB_FILE
+ {
+ Pos = MAP_APPFONT ( 234 , 110 ) ;
+ Size = MAP_APPFONT ( 12 , 12 ) ;
+ Text = "~..." ;
+ //Text [ ENGLISH ] = "" ;
+ TabStop = TRUE ;
+ QuickHelpText = "Öffnen";
+ QuickHelpText[English] = "Open";
+ };
+ PushButton PB_CREATE_AUTOMARK
+ {
+ Pos = MAP_APPFONT ( 143 , 125 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Neu..." ;
+ Text [ ENGLISH ] = "New..." ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_EDIT_AUTOMARK
+ {
+ Pos = MAP_APPFONT ( 196 , 125 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Bearbeiten..." ;
+ Text [ ENGLISH ] = "Edit..." ;
+ TabStop = TRUE ;
+ };*/
+
+ GroupBox GB_IDXOPTIONS
+ {
+ Pos = MAP_APPFONT ( 6 , 77 ) ;
+ Size = MAP_APPFONT ( 248, 56 ) ;
+ Text = "Zusätze" ;
+ Text [ ENGLISH ] = "Options" ;
+ Text[ english_us ] = "Options";
+ Text[ portuguese ] = "Opções";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ dutch ] = "Overige";
+ Text[ french ] = "Options";
+ Text[ spanish ] = "Opciones";
+ Text[ italian ] = "Extra";
+ Text[ danish ] = "Indstillinger";
+ Text[ swedish ] = "Tillägg";
+ Text[ polish ] = "Dodatki";
+ Text[ portuguese_brazilian ] = "Options";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ chinese_simplified ] = "ÆäËü";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ turkish ] = "Seçenekler";
+ Text[ language_user1 ] = " ";
+ };
+ Control CLB_FROMOBJ
+ {
+ Pos = MAP_APPFONT ( 12 , 87 ) ;
+ Size = MAP_APPFONT ( 236 , 43 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ };
+ Resource RES_SRCTYPES
+ {
+ StringArray 1
+ {
+/* ids from tox.hxx
+ TOO_MATH = 0x01,
+ TOO_CHART = 0x02,
+ TOO_IMAGE = 0x04,
+ TOO_CALC = 0x08,
+ TOO_DRAW_IMPRESS= 0x10,
+ TOO_OTHER = 0x80*/
+
+ ItemList =
+ {
+ < "StarMath" ; 1;> ;
+ < "StarChart" ; 2;> ;
+ < "StarImage" ; 4;> ;
+ < "StarCalc" ; 8;> ;
+ < "StarDraw/StarImpress" ; 16;> ;
+ < "Andere OLE-Objekte"; 128;> ;
+ };
+ ItemList[ ENGLISH ] =
+ {
+ < "StarMath" ; 1; > ;
+ < "StarChart" ; 2;> ;
+ < "StarImage" ; 4;> ;
+ < "StarCalc" ; 8;> ;
+ < "StarDraw/StarImpress" ; 16;> ;
+ < "Other OLE objects" ; 128;> ;
+ };
+ ItemList [ language_user1 ] =
+ {
+ < " " ; 1;> ;
+ < " " ; 2;> ;
+ < " " ; 4;> ;
+ < " " ; 8;> ;
+ < " " ; 16;> ;
+ < " "; 128;> ;
+ };
+ ItemList [ english_us ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Other OLE objects"; 128;> ;
+ };
+ ItemList [ portuguese ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Outros obejctos OLE"; 128;> ;
+ };
+ ItemList [ russian ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Äðóãèå îáúêòû OLE"; 128;> ;
+ };
+ ItemList [ greek ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "¢ëëá áíôéêåßìåíá OLE"; 128;> ;
+ };
+ ItemList [ dutch ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Andere OLE-objecten"; 128;> ;
+ };
+ ItemList [ french ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Autres objets OLE"; 128;> ;
+ };
+ ItemList [ spanish ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Otros objetos OLE"; 128;> ;
+ };
+ ItemList [ italian ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Altri oggetti OLE"; 128;> ;
+ };
+ ItemList [ danish ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Andre OLE-objekter"; 128;> ;
+ };
+ ItemList [ swedish ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Andra OLE-objekt"; 128;> ;
+ };
+ ItemList [ polish ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Inne obiekty OLE"; 128;> ;
+ };
+ ItemList [ portuguese_brazilian ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Andere OLE-Objekte"; 128;> ;
+ };
+ ItemList [ japanese ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "‚Ù‚©‚Ì OLE µÌÞ¼Þª¸Ä"; 128;> ;
+ };
+ ItemList [ korean ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "±âŸ OLE °³Ã¼"; 128;> ;
+ };
+ ItemList [ chinese_simplified ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "ÆäËü OLE ¶ÔÏó"; 128;> ;
+ };
+ ItemList [ chinese_traditional ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "¨ä¥L OLE ª«¥ó"; 128;> ;
+ };
+ ItemList [ arabic ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "ßÇÆäÇÊ OLE ÃÎÑì"; 128;> ;
+ };
+ ItemList [ turkish ] =
+ {
+ < "StarOffice Math" ; 1;> ;
+ < "StarOffice Chart" ; 2;> ;
+ < "StarOffice Image" ; 4;> ;
+ < "StarOffice Calc" ; 8;> ;
+ < "StarOffice Draw/StarOffice Impress" ; 16;> ;
+ < "Diðer OLE nesneleri"; 128;> ;
+ };
+ };
+ };
+ GroupBox GB_FROMOBJ
+ {
+ Pos = MAP_APPFONT ( 6 , 77) ;
+ Size = MAP_APPFONT ( 248, 56 ) ;
+ Text = "Aus folgenden Objekten erzeugen" ;
+ Text [ ENGLISH ] = "Create from the following objects" ;
+ Text[ english_us ] = "Create from the following objects";
+ Text[ portuguese ] = "Criar a partir dos seguintes objectos";
+ Text[ russian ] = "Ñîçäàòü èç ñëåäóþùèõ îáúåêòîâ";
+ Text[ greek ] = "Äçìéïõñãßá áðü ôá áêüëïõèá áíôéêåßìåíá";
+ Text[ dutch ] = "Uit de volgende objecten samenstellen";
+ Text[ french ] = "Créer à partir des objets suivants";
+ Text[ spanish ] = "Crear de los siguientes objetos";
+ Text[ italian ] = "Crea dai seguenti oggetti";
+ Text[ danish ] = "Opret ud fra følgende objekter";
+ Text[ swedish ] = "Skapa utifrån följande objekt";
+ Text[ polish ] = "Utwórz z nastêpuj¹cych obiektów";
+ Text[ portuguese_brazilian ] = "Create from the following objects";
+ Text[ japanese ] = "ˆÈ‰º‚̵ÌÞ¼Þª¸Ä‚©‚çì¬";
+ Text[ korean ] = "´ÙÀ½ÀÇ °³Ã¼·Î ºÎÅÍ ¸¸µé±â";
+ Text[ chinese_simplified ] = "ÓÉÏÂÁжÔÏóÉú³É";
+ Text[ chinese_traditional ] = "±q¤U¦Cª«¥ó¥Í¦¨";
+ Text[ arabic ] = "ÅäÔÇÁ ãä ÇáßÇÆäÇÊ ÇáÊÇáíÉ";
+ Text[ turkish ] = "Þu nesnelerden oluþtur:";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_SEQUENCE
+ {
+ Pos = MAP_APPFONT ( 12, 57) ;
+ Size = MAP_APPFONT ( 100, 10 ) ;
+ Text = "~Einträge nummerieren" ;
+ Text [ ENGLISH ] = "Number entries" ;
+ Text[ english_us ] = "~Number entries";
+ Text[ portuguese ] = "~Numerar entradas";
+ Text[ russian ] = "Ïðîíóìåðîâàòü ýëåìåíòû";
+ Text[ greek ] = "Áñßèìçóç åããñáöþí";
+ Text[ dutch ] = "~Items nummeren";
+ Text[ french ] = "~Numéroter les entrées";
+ Text[ spanish ] = "~Numerar entradas";
+ Text[ italian ] = "Num~era voci";
+ Text[ danish ] = "Nummerer elementer";
+ Text[ swedish ] = "Numrera poster";
+ Text[ polish ] = "Numeruj wpisy";
+ Text[ portuguese_brazilian ] = "Number entries";
+ Text[ japanese ] = "€–ڂɔԆ‚ð•t‚¯‚é(~N)";
+ Text[ korean ] = "¼ýÀÚ Ç׸ñ(~N)";
+ Text[ chinese_simplified ] = "±àÅÅÌõÄ¿(~N)";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹(~N)";
+ Text[ arabic ] = "ÊÑÞíã ÇáÅÏÎÇáÇÊ";
+ Text[ turkish ] = "Giriþleri numarala";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_BRACKET
+ {
+ Pos = MAP_APPFONT ( 12, 70) ;
+ Size = MAP_APPFONT ( 60, 10 ) ;
+ Text = "~Klammern" ;
+ Text [ ENGLISH ] = "Brackets" ;
+ Text[ english_us ] = "~Brackets";
+ Text[ portuguese ] = "~Parêntesis";
+ Text[ russian ] = "Ñêîáêè";
+ Text[ greek ] = "ÐáñåíèÝóåéò";
+ Text[ dutch ] = "~Haakjes";
+ Text[ french ] = "~Parenthèses";
+ Text[ spanish ] = "~Paréntesis";
+ Text[ italian ] = "Parentesi";
+ Text[ danish ] = "Parenteser";
+ Text[ swedish ] = "Parenteser";
+ Text[ polish ] = "Nawiasy";
+ Text[ portuguese_brazilian ] = "Brackets";
+ Text[ japanese ] = "Š‡ŒÊ(~B)";
+ Text[ korean ] = "°ýÈ£(~B)";
+ Text[ chinese_simplified ] = "À¨ºÅ(~B)";
+ Text[ chinese_traditional ] = "¬A¸¹(~B)";
+ Text[ arabic ] = "ÃÞæÇÓ";
+ Text[ turkish ] = "Ayraçlar";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_BRACKET
+ {
+ Pos = MAP_APPFONT ( 75, 70) ;
+ Size = MAP_APPFONT ( 20, 50 ) ;
+ Border = TRUE;
+ DropDown = TRUE;
+ StringList =
+ {
+ < "[]" ;> ;
+ < "()" ;> ;
+ < "{}" ;> ;
+ < "<>" ;> ;
+ };
+ };
+ GroupBox GB_AUTHORITY
+ {
+ Pos = MAP_APPFONT ( 6 , 47) ;
+ Size = MAP_APPFONT ( 248, 86 ) ;
+ Text = "Formatierung der Einträge" ;
+ Text [ ENGLISH ] = "Formatting of the marks" ;
+ Text[ english_us ] = "Formatting of the entries";
+ Text[ portuguese ] = "Formatação das entradas";
+ Text[ russian ] = "Ôîðìàòèðîâàíèÿ ýëåìåíòîâ";
+ Text[ greek ] = "Ìïñöïðïßçóç åããñáöþí";
+ Text[ dutch ] = "Items opmaken";
+ Text[ french ] = "Formatage des entrées";
+ Text[ spanish ] = "Formateado de las entradas";
+ Text[ italian ] = "Formattazione delle voci";
+ Text[ danish ] = "Elementernes formatering";
+ Text[ swedish ] = "Formatering av poster";
+ Text[ polish ] = "Formatowanie wpisów";
+ Text[ portuguese_brazilian ] = "Formatting of the marks";
+ Text[ japanese ] = "€–Ú‚Ì‘Ž®Ý’è";
+ Text[ korean ] = "Ç׸ñ ¼­½Ä";
+ Text[ chinese_simplified ] = "ÌõÄ¿¸ñʽ";
+ Text[ chinese_traditional ] = "¶µ¥Ø®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÇáÅÏÎÇáÇÊ";
+ Text[ turkish ] = "Giriþ formatlama";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_AUTOMARK_TYPE
+ {
+ Text = "Markierungsdatei für Stichwortverzeichnis (*.sdi)" ;
+ Text [ ENGLISH ] = "Mark up file for index (*.sdi)" ;
+ Text[ english_us ] = "Selection file for the alphabetical index (*.sdi)";
+ Text[ portuguese ] = "Ficheiro de marcas para índice remissivo (*.sdi)";
+ Text[ russian ] = "Âûäåëåííûé ôàéë äëÿ ïðåäìåòíîãî óêàçàòåëÿ (*.sdi)";
+ Text[ greek ] = "Áñ÷åßï óÞìáíóçò ãéá åõñåôÞñéï ëÝîåùí (*.sdi)";
+ Text[ dutch ] = "Bestand met markeringen voor trefwoordenregister (*.sdi)";
+ Text[ french ] = "Fichier descriptif pour l'index lexical (*.sdi)";
+ Text[ spanish ] = "Archivo de marcas para índice alfabético (*.sdi)";
+ Text[ italian ] = "File di selezione per indice analitico (*.sdi)";
+ Text[ danish ] = "Markeringsfil for stikordsregister (*.sdi)";
+ Text[ swedish ] = "Markeringsfil för sakregister (*.sdi)";
+ Text[ polish ] = "Plik zaznaczaj¹cy dla zestawu hase³ (*.sdi) ";
+ Text[ portuguese_brazilian ] = "Mark up file for index";
+ Text[ japanese ] = "õˆø€–Ú—p‚ÉÏ°¸‚ð‚‚¯‚½Ì§²Ù (*.sdi)";
+ Text[ korean ] = "¾ËÆĺª ¼øÀÇ »öÀÎÀ» À§ÇÑ ¼±Åà ÆÄÀÏ (*.sdi)";
+ Text[ chinese_simplified ] = "ÓÃÓÚË÷ÒýĿ¼µÄ±ê¼ÇÎļþ(*.sdi)";
+ Text[ chinese_traditional ] = "¥Î©ó¯Á¤Þªº¼Ð°OÀÉ®×(*.sdi)";
+ Text[ arabic ] = "ãáÝ ÇáÊÍÏíÏ ááÝåÑÓ ÇáÃÈÌÏí (*.sdi)";
+ Text[ turkish ] = "Alfabetik dizin için seçim dosyasý (*.sdi)";
+ };
+};
+
+TabPage TP_TOX_ENTRY
+{
+ HelpID = HID_TP_TOX_ENTRY;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ Control LB_LEVEL
+ {
+ Pos = MAP_APPFONT ( 6, 15 ) ;
+ Size = MAP_APPFONT ( 25, 118 ) ;
+ TabStop = TRUE ;
+ Border = TRUE;
+// HScroll = TRUE;
+/* StringList =
+ {
+ < "1" ; > ;
+ < "2" ; > ;
+ < "3" ; > ;
+ < "4" ; > ;
+ < "5" ; > ;
+ < "6" ; > ;
+ < "7" ; > ;
+ < "8" ; > ;
+ < "9" ; > ;
+ < "10" ; > ;
+ < "1-10" ; > ;
+ };*/
+ };
+ FixedText FT_LEVEL
+ {
+ Pos = MAP_APPFONT ( 6, 3 ) ;
+ Size = MAP_APPFONT ( 25, 8 ) ;
+ Text = "E~bene" ;
+ Text [ ENGLISH ] = "Level" ;
+ Text[ english_us ] = "~Level";
+ Text[ portuguese ] = "~Nível";
+ Text[ russian ] = "Óðîâåíü";
+ Text[ greek ] = "Åðßðåäï";
+ Text[ dutch ] = "~Niveau";
+ Text[ french ] = "~Niveau";
+ Text[ spanish ] = "Ni~vel";
+ Text[ italian ] = "Livello";
+ Text[ danish ] = "Niveau";
+ Text[ swedish ] = "~Nivå";
+ Text[ polish ] = "Poziom";
+ Text[ portuguese_brazilian ] = "Level";
+ Text[ japanese ] = "ÚÍÞÙ(~L)";
+ Text[ korean ] = "¼öÁØ(~L)";
+ Text[ chinese_simplified ] = "¼¶(~L)";
+ Text[ chinese_traditional ] = "¯Å(~L)";
+ Text[ arabic ] = "ÇáãÓÊæì";
+ Text[ turkish ] = "Düzey";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_AUTHTYPE
+ {
+ Text = "~Art";
+ Text[English]= "Type";
+ Text[ english_us ] = "~Type";
+ Text[ portuguese ] = "T~ipo";
+ Text[ russian ] = "Òèï";
+ Text[ greek ] = "Ôýðïò";
+ Text[ dutch ] = "~Type";
+ Text[ french ] = "T~ype";
+ Text[ spanish ] = "~Tipo";
+ Text[ italian ] = "Tipo";
+ Text[ danish ] = "Type";
+ Text[ swedish ] = "Ty~p";
+ Text[ polish ] = "Typ";
+ Text[ portuguese_brazilian ] = "Type";
+ Text[ japanese ] = "À²Ìß(~T)";
+ Text[ korean ] = "Çü½Ä(~T)";
+ Text[ chinese_simplified ] = "ÀàÐÍ(~T)";
+ Text[ chinese_traditional ] = "Ãþ«¬(~T)";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ turkish ] = "Tür";
+ };
+ Window WIN_TOKEN
+ {
+ Pos = MAP_APPFONT ( 37, 12 ) ;
+ Size = MAP_APPFONT ( 212, 12 ) ;
+ ImageButton WIN_LEFT_SCROLL
+ {
+ Pos = MAP_APPFONT ( 0, 0 ) ;
+ Size = MAP_APPFONT ( 10, 12 ) ;
+ Symbol = IMAGEBUTTON_ARROW_LEFT;
+ };
+ Window WIN_CTRL_PARENT
+ {
+ Pos = MAP_APPFONT ( 11, 0 ) ;
+ Size = MAP_APPFONT ( 190, 12 ) ;
+ };
+ ImageButton WIN_RIGHT_SCROLL
+ {
+ Pos = MAP_APPFONT ( 202, 0 ) ;
+ Size = MAP_APPFONT ( 10, 12 ) ;
+ Symbol = IMAGEBUTTON_ARROW_RIGHT;
+ };
+ String STR_TOKEN_ENTRY_NO
+ {
+ Text = "E#";
+ Text [English] = "E#";
+ Text[ language_user1 ] = " ";
+ Text[ english_us ] = "E#";
+ Text[ portuguese ] = "E#";
+ Text[ russian ] = "Ý#";
+ Text[ greek ] = "E#";
+ Text[ dutch ] = "I#";
+ Text[ french ] = "E#";
+ Text[ spanish ] = "E#";
+ Text[ italian ] = "E#";
+ Text[ danish ] = "E#";
+ Text[ swedish ] = "E#";
+ Text[ polish ] = "W#";
+ Text[ portuguese_brazilian ] = "E#";
+ Text[ japanese ] = "E#";
+ Text[ korean ] = "E#";
+ Text[ chinese_simplified ] = "E#";
+ Text[ chinese_traditional ] = "E#";
+ Text[ arabic ] = "E#";
+ Text[ turkish ] = "B#";
+ };
+ String STR_TOKEN_ENTRY
+ {
+ Text = "E";
+ Text [English] = "E";
+ Text[ english_us ] = "E";
+ Text[ portuguese ] = "E";
+ Text[ russian ] = "Ý";
+ Text[ greek ] = "E";
+ Text[ dutch ] = "I";
+ Text[ french ] = "E";
+ Text[ spanish ] = "E";
+ Text[ italian ] = "E";
+ Text[ danish ] = "E";
+ Text[ swedish ] = "E";
+ Text[ polish ] = "W";
+ Text[ portuguese_brazilian ] = "E";
+ Text[ japanese ] = "E";
+ Text[ korean ] = "E";
+ Text[ chinese_simplified ] = "E";
+ Text[ chinese_traditional ] = "E";
+ Text[ arabic ] = "E";
+ Text[ turkish ] = "G";
+ };
+ String STR_TOKEN_TAB_STOP
+ {
+ Text = "T";
+ Text [English] = "T";
+ Text[ english_us ] = "T";
+ Text[ portuguese ] = "T";
+ Text[ russian ] = "Ò";
+ Text[ greek ] = "Ó";
+ Text[ dutch ] = "T";
+ Text[ french ] = "T";
+ Text[ spanish ] = "T";
+ Text[ italian ] = "T";
+ Text[ danish ] = "T";
+ Text[ swedish ] = "T";
+ Text[ polish ] = "T";
+ Text[ portuguese_brazilian ] = "T";
+ Text[ japanese ] = "T";
+ Text[ korean ] = "T";
+ Text[ chinese_simplified ] = "ÖƱí·û";
+ Text[ chinese_traditional ] = "¨îªí²Å";
+ Text[ arabic ] = "T";
+ Text[ turkish ] = "T";
+ };
+ String STR_TOKEN_TEXT
+ {
+ Text = "";
+ //unused
+ };
+ String STR_TOKEN_PAGE_NUMS
+ {
+ Text = "#";
+ Text [English] = "#";
+ Text[ english_us ] = "#";
+ Text[ portuguese ] = "#";
+ Text[ russian ] = "#";
+ Text[ greek ] = "#";
+ Text[ dutch ] = "#";
+ Text[ french ] = "#";
+ Text[ spanish ] = "#";
+ Text[ italian ] = "#";
+ Text[ danish ] = "#";
+ Text[ swedish ] = "#";
+ Text[ polish ] = "#";
+ Text[ portuguese_brazilian ] = "#";
+ Text[ japanese ] = "#";
+ Text[ korean ] = "#";
+ Text[ chinese_simplified ] = "#";
+ Text[ chinese_traditional ] = "#";
+ Text[ arabic ] = "#";
+ Text[ turkish ] = "#";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_CHAPTER_INFO
+ {
+ Text = "KI";
+ Text [English] = "CI";
+ Text[ english_us ] = "CI";
+ Text[ portuguese ] = "IC";
+ Text[ russian ] = "ÈÃ";
+ Text[ greek ] = "ÐÊ";
+ Text[ dutch ] = "HI";
+ Text[ french ] = "IC";
+ Text[ spanish ] = "CI";
+ Text[ italian ] = "CI";
+ Text[ danish ] = "KI";
+ Text[ swedish ] = "CI";
+ Text[ polish ] = "IR";
+ Text[ portuguese_brazilian ] = "CI";
+ Text[ japanese ] = "CI";
+ Text[ korean ] = "CI";
+ Text[ chinese_simplified ] = "CI";
+ Text[ chinese_traditional ] = "CI";
+ Text[ arabic ] = "CI";
+ Text[ turkish ] = "Bh";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_LINK_START
+ {
+ Text = "LS";
+ Text [English] = "LS";
+ Text[ english_us ] = "LS";
+ Text[ portuguese ] = "LS";
+ Text[ russian ] = "ÃÍ";
+ Text[ greek ] = "ÅÕ";
+ Text[ dutch ] = "LS";
+ Text[ french ] = "DH";
+ Text[ spanish ] = "HI";
+ Text[ italian ] = "LS";
+ Text[ danish ] = "HB";
+ Text[ swedish ] = "LS";
+ Text[ polish ] = "HS";
+ Text[ portuguese_brazilian ] = "LS";
+ Text[ japanese ] = "LS";
+ Text[ korean ] = "LS";
+ Text[ chinese_simplified ] = "LS";
+ Text[ chinese_traditional ] = "LS";
+ Text[ arabic ] = "LS";
+ Text[ turkish ] = "Bb";
+ };
+ String STR_TOKEN_LINK_END
+ {
+ Text = "LE";
+ Text [English] = "LE";
+ Text[ english_us ] = "LE";
+ Text[ portuguese ] = "LE";
+ Text[ russian ] = "ÃÊ";
+ Text[ greek ] = "ÔÕ";
+ Text[ dutch ] = "LE";
+ Text[ french ] = "FH";
+ Text[ spanish ] = "HF";
+ Text[ italian ] = "LE";
+ Text[ danish ] = "HS";
+ Text[ swedish ] = "LE";
+ Text[ polish ] = "HK";
+ Text[ portuguese_brazilian ] = "LE";
+ Text[ japanese ] = "LE";
+ Text[ korean ] = "LE";
+ Text[ chinese_simplified ] = "LE";
+ Text[ chinese_traditional ] = "LE";
+ Text[ arabic ] = "LE";
+ Text[ turkish ] = "Bs";
+ };
+ String STR_TOKEN_AUTHORITY
+ {
+ Text = "A";
+ Text [English] = "A";
+ Text[ english_us ] = "A";
+ Text[ portuguese ] = "A";
+ Text[ russian ] = "A";
+ Text[ greek ] = "A";
+ Text[ dutch ] = "A";
+ Text[ french ] = "A";
+ Text[ spanish ] = "A";
+ Text[ italian ] = "A";
+ Text[ danish ] = "A";
+ Text[ swedish ] = "A";
+ Text[ polish ] = "A";
+ Text[ portuguese_brazilian ] = "A";
+ Text[ japanese ] = "A";
+ Text[ korean ] = "A";
+ Text[ chinese_simplified ] = "A";
+ Text[ chinese_traditional ] = "A";
+ Text[ arabic ] = "A";
+ Text[ turkish ] = "A";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_ENTRY_NO
+ {
+ Text = "Kapitelnummer";
+ Text [English] = "Chapter number";
+ Text[ english_us ] = "Chapter number";
+ Text[ portuguese ] = "Número de capítulo";
+ Text[ russian ] = "Íîìåð ãëàâû";
+ Text[ greek ] = "Áñéèìüò êåöáëáßïõ";
+ Text[ dutch ] = "Hoofdstuknummer";
+ Text[ french ] = "Numéro de chapitre";
+ Text[ spanish ] = "Número de capítulo";
+ Text[ italian ] = "Numero capitolo";
+ Text[ danish ] = "Kapitelnummer";
+ Text[ swedish ] = "Kapitelnummer";
+ Text[ polish ] = "Numer rozdzia³u";
+ Text[ portuguese_brazilian ] = "Chapter number";
+ Text[ japanese ] = "͔Ԇ";
+ Text[ korean ] = "Àå ¹øÈ£";
+ Text[ chinese_simplified ] = "Õ½ڱàºÅ";
+ Text[ chinese_traditional ] = "³¹¸`½s¸¹";
+ Text[ arabic ] = "ÑÞã ÇáÝÕá";
+ Text[ turkish ] = "Bölüm numarasý";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_ENTRY
+ {
+ Text = "Eintrag";
+ Text [English] = "Entry";
+ Text[ english_us ] = "Entry";
+ Text[ portuguese ] = "Entrada";
+ Text[ russian ] = "Ýëåìåíò";
+ Text[ greek ] = "Êáôá÷þñéóç";
+ Text[ dutch ] = "Item";
+ Text[ french ] = "Entrée";
+ Text[ spanish ] = "Entrada";
+ Text[ italian ] = "Voce";
+ Text[ danish ] = "Element";
+ Text[ swedish ] = "Post";
+ Text[ polish ] = "Wpis";
+ Text[ portuguese_brazilian ] = "Entry";
+ Text[ japanese ] = "€–Ú";
+ Text[ korean ] = "Ç׸ñ";
+ Text[ chinese_simplified ] = "ÌõÄ¿";
+ Text[ chinese_traditional ] = "±ø¥Ø";
+ Text[ arabic ] = "ÇáÅÏÎÇá";
+ Text[ turkish ] = "Giriþ";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_TAB_STOP
+ {
+ Text = "Tabulator";
+ Text [English] = "Tab stop";
+ Text[ english_us ] = "Tab stop";
+ Text[ portuguese ] = "Tabulação";
+ Text[ russian ] = "Òàáóëÿòîð";
+ Text[ greek ] = "ÓôçëïèÝôçò";
+ Text[ dutch ] = "Tabstop";
+ Text[ french ] = "Tabulation";
+ Text[ spanish ] = "Tabulación";
+ Text[ italian ] = "Tabulazione";
+ Text[ danish ] = "Tabulator";
+ Text[ swedish ] = "Tabulator";
+ Text[ polish ] = "Tabulator";
+ Text[ portuguese_brazilian ] = "Tab stop";
+ Text[ japanese ] = "ÀÌÞ";
+ Text[ korean ] = "ÅÇ Á¤Áö";
+ Text[ chinese_simplified ] = "ÖƱí·û";
+ Text[ chinese_traditional ] = "¨îªí²Å";
+ Text[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ Text[ turkish ] = "Sekme";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_TEXT
+ {
+ Text = "Text";
+ Text [English] = "Text";
+ Text[ english_us ] = "Text";
+ Text[ portuguese ] = "Texto";
+ Text[ russian ] = "Òåêñò";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ dutch ] = "Tekst";
+ Text[ french ] = "Texte";
+ Text[ spanish ] = "Texto";
+ Text[ italian ] = "Testo";
+ Text[ danish ] = "Tekst";
+ Text[ swedish ] = "Text";
+ Text[ polish ] = "Text";
+ Text[ portuguese_brazilian ] = "Text";
+ Text[ japanese ] = "•¶Žš—ñ";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_PAGE_NUMS
+ {
+ Text = "Seitennummer";
+ Text [English] = "Page number";
+ Text[ english_us ] = "Page number";
+ Text[ portuguese ] = "Página nº";
+ Text[ russian ] = "Íîìåð ñòðàíèöû";
+ Text[ greek ] = "Áñéèìüò óåëßäáò";
+ Text[ dutch ] = "Paginanummer";
+ Text[ french ] = "Numéro de page";
+ Text[ spanish ] = "Número de página";
+ Text[ italian ] = "Numero pagina";
+ Text[ danish ] = "Sidetal";
+ Text[ swedish ] = "Sidnummer";
+ Text[ polish ] = "Numer strony";
+ Text[ portuguese_brazilian ] = "Page number";
+ Text[ japanese ] = "Íß°¼Þ”Ô†";
+ Text[ korean ] = "ÆäÀÌÁö ¹øÈ£";
+ Text[ chinese_simplified ] = "Ò³Âë";
+ Text[ chinese_traditional ] = "­¶½X";
+ Text[ arabic ] = "ÑÞã ÇáÕÝÍÉ";
+ Text[ turkish ] = "Sayfa numarasý";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_CHAPTER_INFO
+ {
+ Text = "Kapitelinformation";
+ Text [English] = "Chapter information";
+ Text[ english_us ] = "Chapter info";
+ Text[ portuguese ] = "Informação sobre capítulo";
+ Text[ russian ] = "Èíôîðìàöèÿ ãëàâû";
+ Text[ greek ] = "Ðëçñïöïñßåò êåöáëáßïõ";
+ Text[ dutch ] = "Informatie over hoofdstuk";
+ Text[ french ] = "Information sur le chapitre";
+ Text[ spanish ] = "Información sobre el capítulo";
+ Text[ italian ] = "Informazioni capitolo";
+ Text[ danish ] = "Kapitelinformation";
+ Text[ swedish ] = "Kapitelinformation";
+ Text[ polish ] = "Informacja o rozdziale";
+ Text[ portuguese_brazilian ] = "Chapter information";
+ Text[ japanese ] = "Í‚Ìî•ñ";
+ Text[ korean ] = "Àå Á¤º¸";
+ Text[ chinese_simplified ] = "Õ½ÚÐÅÏ¢";
+ Text[ chinese_traditional ] = "³¹¸`¸ê°T";
+ Text[ arabic ] = "ãÚáæãÇÊ ÇáÝÕá";
+ Text[ turkish ] = "Bölüm bilgileri";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_LINK_START
+ {
+ Text = "Hyperlink Anfang";
+ Text [English] = "Hyperlink start";
+ Text[ english_us ] = "Hyperlink start";
+ Text[ portuguese ] = "Início de hiperligação";
+ Text[ russian ] = "Íà÷àëî ãèïåðññûëêè";
+ Text[ greek ] = "Áñ÷Þ õðåñ-óýíäåóçò";
+ Text[ dutch ] = "Hyperlink start";
+ Text[ french ] = "Début de l'hyperlien";
+ Text[ spanish ] = "Comienzo de hiperenlace";
+ Text[ italian ] = "Inizio hyperlink";
+ Text[ danish ] = "Hyperlink start";
+ Text[ swedish ] = "Hyperlänk start";
+ Text[ polish ] = "Pocz¹tek hiper³¹cza";
+ Text[ portuguese_brazilian ] = "Hyperlink start";
+ Text[ japanese ] = "ʲÊß°ØݸŠJŽn";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ© ½ÃÀÛ";
+ Text[ chinese_simplified ] = "³¬Á´½Ó¿ªÊ¼´¦";
+ Text[ chinese_traditional ] = "¶W³sµ² ¶}©l";
+ Text[ arabic ] = "ÈÏÇíÉ ÇáÇÑÊÈÇØ ÇáÊÔÚÈí";
+ Text[ turkish ] = "Hyperlink baþlangýcý";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_LINK_END
+ {
+ Text = "Hyperlink Ende";
+ Text [English] = "Hyperlink End";
+ Text[ english_us ] = "Hyperlink end";
+ Text[ portuguese ] = "Final de hiperligação";
+ Text[ russian ] = "Êîíåö ãèïåðññûëêè";
+ Text[ greek ] = "ÔÝëïò õðåñ-óýíäåóçò";
+ Text[ dutch ] = "Hyperlink einde";
+ Text[ french ] = "Fin de l'hyperlien";
+ Text[ spanish ] = "Final de hiperenlace";
+ Text[ italian ] = "Fine hyperlink";
+ Text[ danish ] = "Hyperlink slut";
+ Text[ swedish ] = "Hyperlänk slut";
+ Text[ polish ] = "Koniec hiper³¹cza";
+ Text[ portuguese_brazilian ] = "Hyperlink End";
+ Text[ japanese ] = "ʲÊß°ØݸI—¹";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ© Á¾·á";
+ Text[ chinese_simplified ] = "³¬Á´½ÓÖÕÖ¹´¦";
+ Text[ chinese_traditional ] = "¶W³sµ² µ²§ô";
+ Text[ arabic ] = "äåÇíÉ ÇáÇÑÊÈÇØ ÇáÊÔÚÈí";
+ Text[ turkish ] = "Hyperlink sonu";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TOKEN_HELP_AUTHORITY
+ {
+ Text = "Literatureintrag: ";
+ Text [English] = "Authority entry: ";
+ Text[ english_us ] = "Bibliography entry: ";
+ Text[ portuguese ] = "Entrada bibliográfica: ";
+ Text[ russian ] = "Ýëåìåíò ñïèñêà ëèòåðàòóðû: ";
+ Text[ greek ] = "ÅéóáãùãÞ âéâëéïãñáößáò: ";
+ Text[ dutch ] = "Literatuuritem: ";
+ Text[ french ] = "Entrée de bibliographie : ";
+ Text[ spanish ] = "Entrada de bibliografía: ";
+ Text[ italian ] = "Voce bibliografica: ";
+ Text[ danish ] = "Litteraturlisteelement: ";
+ Text[ swedish ] = "Litteraturpost: ";
+ Text[ polish ] = "Wpis bibliograficzny: ";
+ Text[ portuguese_brazilian ] = "Authority entry: ";
+ Text[ japanese ] = "ŽQl•¶Œ£€–Ú: ";
+ Text[ korean ] = "Âü°í ¹®Çå Ç׸ñ: ";
+ Text[ chinese_simplified ] = "ÎÄÏ×ÌõÄ¿£º ";
+ Text[ chinese_traditional ] = "°Ñ¦Ò¤åÄm±ø¥Ø ";
+ Text[ arabic ] = "ÅÏÑÇÌ Ýí ÝåÑÓ ÇáãÑÇÌÚ: ";
+ Text[ turkish ] = "Kaynakça giriþi: ";
+ };
+ String STR_CHARSTYLE
+ {
+ Text = "Zeichenvorlage: ";
+ Text [English] = "Character style: ";
+ Text[ english_us ] = "Character Style: ";
+ Text[ portuguese ] = "Estilo de caracteres: ";
+ Text[ russian ] = "Ñòèëü çíàêîâ: ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí: ";
+ Text[ dutch ] = "Tekenopmaakprofiel: ";
+ Text[ french ] = "Style de caractère : ";
+ Text[ spanish ] = "Estilo de carácter: ";
+ Text[ italian ] = "Modello di carattere: ";
+ Text[ danish ] = "Tegntypografi: ";
+ Text[ swedish ] = "Teckenformatmall: ";
+ Text[ polish ] = "Styl znaków: ";
+ Text[ portuguese_brazilian ] = "Character style: ";
+ Text[ japanese ] = "•¶Žš½À²Ù: ";
+ Text[ korean ] = "¹®ÀÚ À¯Çü: ";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ£º ";
+ Text[ chinese_traditional ] = "¦r«¬¼Ë¦¡¡G ";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ: ";
+ Text[ turkish ] = "Karakter þablonu: ";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ PushButton PB_ALL_LEVELS
+ {
+ Pos = MAP_APPFONT ( 199 , 12 ) ;
+ Size = MAP_APPFONT ( 50, 12 ) ;
+ Text = "~Alle Ebenen" ;
+ Text [ ENGLISH ] = "All levels" ;
+ Text[ english_us ] = "~All levels";
+ Text[ portuguese ] = "~Níveis todos";
+ Text[ russian ] = "Âñå óðîâíè";
+ Text[ greek ] = "¼ë~á ôá åðßðåäá";
+ Text[ dutch ] = "~Alle niveaus";
+ Text[ french ] = "~Tous les niveaux";
+ Text[ spanish ] = "Todos los ~niveles";
+ Text[ italian ] = "Tutti i livelli";
+ Text[ danish ] = "Alle niveauer";
+ Text[ swedish ] = "~Alla nivåer";
+ Text[ polish ] = "Wszystkie poziomy";
+ Text[ portuguese_brazilian ] = "All levels";
+ Text[ japanese ] = "‚·‚ׂĂÌÚÍÞÙ";
+ Text[ korean ] = "¸ðµç ¼öÁØ(~A)";
+ Text[ chinese_simplified ] = "ËùÓеȼ¶";
+ Text[ chinese_traditional ] = "©Ò¦³¯Å";
+ Text[ arabic ] = "ßá ÇáãÓÊæíÇÊ";
+ Text[ turkish ] = "Tüm düzeyler";
+ };
+ PushButton PB_ENTRYNO
+ {
+ Pos = MAP_APPFONT ( 37 , 25 ) ;
+ Size = MAP_APPFONT ( 40, 12 ) ;
+ Text = "~Kapitelnr." ;
+ Text [ ENGLISH ] = "Chapter no." ;
+ Text[ english_us ] = "Chapter no.";
+ Text[ portuguese ] = "~Capítulo nº.";
+ Text[ russian ] = "Ãëàâà ¹";
+ Text[ greek ] = "Áñéèìüò êåöáëáßïõ";
+ Text[ dutch ] = "~Hoofdstuknr.";
+ Text[ french ] = "N° de ~chapitre";
+ Text[ spanish ] = "Nú~m. capítulo";
+ Text[ italian ] = "Capitolo no.";
+ Text[ danish ] = "Kapitelnr.";
+ Text[ swedish ] = "~Kapitelnr";
+ Text[ polish ] = "Rozdzia³ nr.";
+ Text[ portuguese_brazilian ] = "Chapter no.";
+ Text[ japanese ] = "͔Ԇ";
+ Text[ korean ] = "Àå ¹øÈ£.";
+ Text[ chinese_simplified ] = "Õ½ڱàºÅ";
+ Text[ chinese_traditional ] = "³¹¸`½s¸¹";
+ Text[ arabic ] = "ÑÞã ÇáÝÕá";
+ Text[ turkish ] = "Bölüm no.";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_ENTRY
+ {
+ Pos = MAP_APPFONT ( 80, 25 ) ;
+ Size = MAP_APPFONT ( 40, 12 ) ;
+ Text = "~Eintragstext" ;
+ Text [ ENGLISH ] = "Entry text" ;
+ Text[ english_us ] = "Entry text";
+ Text[ portuguese ] = "E~ntrada";
+ Text[ russian ] = "Òåêñò ýëåìåíòà";
+ Text[ greek ] = "Êåßìåíï êáôá÷þñéóçò";
+ Text[ dutch ] = "Tekst~item";
+ Text[ french ] = "~Texte";
+ Text[ spanish ] = "Te~xto de entrada";
+ Text[ italian ] = "Testo voce";
+ Text[ danish ] = "Elementtekst";
+ Text[ swedish ] = "~Posttext";
+ Text[ polish ] = "Tekst wpisu";
+ Text[ portuguese_brazilian ] = "Entry text";
+ Text[ japanese ] = "“ü—Í•¶Žš—ñ";
+ Text[ korean ] = "Ç׸ñ ÅؽºÆ®";
+ Text[ chinese_simplified ] = "ÌõÄ¿ÎÄ×Ö";
+ Text[ chinese_traditional ] = "±ø¥Ø¤å";
+ Text[ arabic ] = "äÕ ÇáÅÏÎÇá";
+ Text[ turkish ] = "Giriþ metni";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_CHAPTERINFO
+ {
+ Pos = MAP_APPFONT ( 123 , 25 ) ;
+ Size = MAP_APPFONT ( 40, 12 ) ;
+ Text = "~Kapitelinfo" ;
+ Text [ ENGLISH ] = "Chapter info" ;
+ Text[ english_us ] = "~Chapter info";
+ Text[ portuguese ] = "Inform. sobre ~capítulo";
+ Text[ russian ] = "Èíôîðìàöèÿ ãëàâû";
+ Text[ greek ] = "Ðëçñïöïñßåò êåöáëáßïõ";
+ Text[ dutch ] = "Hoo~fdstukinfo";
+ Text[ french ] = "Info ~chapitre";
+ Text[ spanish ] = "Información ~cap.";
+ Text[ italian ] = "Info capitolo";
+ Text[ danish ] = "Kapitelinfo";
+ Text[ swedish ] = "~Kapitelinfo";
+ Text[ polish ] = "Informacja o rozdziale";
+ Text[ portuguese_brazilian ] = "Chapter info";
+ Text[ japanese ] = "Í‚Ìî•ñ";
+ Text[ korean ] = "Àå Á¤º¸(~C)";
+ Text[ chinese_simplified ] = "Õ½ÚÐÅÏ¢";
+ Text[ chinese_traditional ] = "³¹¸`¸ê°T";
+ Text[ arabic ] = "ãÚáæãÇÊ ÇáÝÕá";
+ Text[ turkish ] = "Bölüm bilgileri";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_PAGENO
+ {
+ Pos = MAP_APPFONT ( 166 , 25 ) ;
+ Size = MAP_APPFONT ( 40, 12 ) ;
+ Text = "~Seitennr." ;
+ Text [ ENGLISH ] = "Page no." ;
+ Text[ english_us ] = "Page no.";
+ Text[ portuguese ] = "~Página nº.";
+ Text[ russian ] = "Ñòðàíèöà ¹";
+ Text[ greek ] = "Áñéèìüò óåëßäáò";
+ Text[ dutch ] = "~Paginanr.";
+ Text[ french ] = "~No. de page";
+ Text[ spanish ] = "Nú~m. página";
+ Text[ italian ] = "Pag. no.";
+ Text[ danish ] = "Sidetal";
+ Text[ swedish ] = "~Sidnr";
+ Text[ polish ] = "Numer str.";
+ Text[ portuguese_brazilian ] = "Page no.";
+ Text[ japanese ] = "Íß°¼Þ”Ô†";
+ Text[ korean ] = "ÆäÀÌÁö ¹øÈ£.";
+ Text[ chinese_simplified ] = "Ò³Âë";
+ Text[ chinese_traditional ] = "­¶­±¸¹½X";
+ Text[ arabic ] = "ÑÞã ÇáÕÝÍÉ";
+ Text[ turkish ] = "Sayfa no.";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_TAB
+ {
+ Pos = MAP_APPFONT ( 209 ,25 ) ;
+ Size = MAP_APPFONT ( 40, 12 ) ;
+ Text = "~Tabulator" ;
+ Text [ ENGLISH ] = "Tab stop" ;
+ Text[ english_us ] = "Tab stop";
+ Text[ portuguese ] = "~Tabulação";
+ Text[ russian ] = "Òàáóëÿòîð";
+ Text[ greek ] = "ÓôçëïèÝôçò";
+ Text[ dutch ] = "~Tabstop";
+ Text[ french ] = "~Tabulation";
+ Text[ spanish ] = "~Tabulación";
+ Text[ italian ] = "~Tabulazione";
+ Text[ danish ] = "Tabulator";
+ Text[ swedish ] = "~Tabulator";
+ Text[ polish ] = "Tabulator";
+ Text[ portuguese_brazilian ] = "Tab stop";
+ Text[ japanese ] = "ÀÌÞ";
+ Text[ korean ] = "ÅÇ Á¤Áö";
+ Text[ chinese_simplified ] = "ÖƱí·û";
+ Text[ chinese_traditional ] = "¨îªí²Å";
+ Text[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ Text[ turkish ] = "Sekme";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_HYPERLINK
+ {
+ Pos = MAP_APPFONT ( 209 , 25 ) ;
+ Size = MAP_APPFONT ( 40, 12 ) ;
+ Text = "H~yperlink" ;
+ Text [ ENGLISH ] = "Hyperlink" ;
+ Text[ english_us ] = "~Hyperlink";
+ Text[ portuguese ] = "~Hiperligação";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ dutch ] = "H~yperlink";
+ Text[ french ] = "~Hyperlien";
+ Text[ spanish ] = "~Hiperenlace";
+ Text[ italian ] = "H~yperlink";
+ Text[ danish ] = "H~yperlink";
+ Text[ swedish ] = "H~yperlänk";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ portuguese_brazilian ] = "Hyperlink";
+ Text[ japanese ] = "ʲÊß°Øݸ(~H)";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©(~H)";
+ Text[ chinese_simplified ] = "³¬Á´½Ó(~H)";
+ Text[ chinese_traditional ] = "¶W³sµ²(~H)";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ turkish ] = "Hyperlink";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_AUTHFIELD
+ {
+ Pos = MAP_APPFONT ( 37 , 25 ) ;
+ Size = MAP_APPFONT ( 59, 60 ) ;
+ DropDown = TRUE;
+ Border = TRUE;
+ Sort = TRUE;
+ };
+ PushButton PB_AUTHINSERT
+ {
+ Pos = MAP_APPFONT ( 99 , 25 ) ;
+ Size = MAP_APPFONT ( 39, 12 ) ;
+ Text = "~Einfügen" ;
+ Text [ ENGLISH ] = "Insert" ;
+ Text[ english_us ] = "~Insert";
+ Text[ portuguese ] = "~Inserir";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ dutch ] = "~Invoegen";
+ Text[ french ] = "~Insérer";
+ Text[ spanish ] = "In~sertar";
+ Text[ italian ] = "Inserisci";
+ Text[ danish ] = "Indsæt";
+ Text[ swedish ] = "~Infoga";
+ Text[ polish ] = "Wstaw";
+ Text[ portuguese_brazilian ] = "Insert";
+ Text[ japanese ] = "‘}“ü(~I)";
+ Text[ korean ] = "»ðÀÔ(~I)";
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ chinese_traditional ] = "´¡¤J(~I)";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_AUTHREMOVE
+ {
+ Pos = MAP_APPFONT ( 142 , 25 ) ;
+ Size = MAP_APPFONT ( 39, 12 ) ;
+ Text = "~Entfernen" ;
+ Text [ ENGLISH ] = "Remove" ;
+ Text[ english_us ] = "~Remove";
+ Text[ portuguese ] = "E~liminar";
+ Text[ russian ] = "Óáðàòü";
+ Text[ greek ] = "ÊáôÜñãçóç";
+ Text[ dutch ] = "~Verwijderen";
+ Text[ french ] = "~Supprimer";
+ Text[ spanish ] = "~Eliminar";
+ Text[ italian ] = "Rimuovi";
+ Text[ danish ] = "Fjern";
+ Text[ swedish ] = "~Ta bort";
+ Text[ polish ] = "Usuñ";
+ Text[ portuguese_brazilian ] = "Remove";
+ Text[ japanese ] = "íœ(~R)";
+ Text[ korean ] = "Á¦°Å(~R)";
+ Text[ chinese_simplified ] = "ɾ³ý(~R)";
+ Text[ chinese_traditional ] = "§R°£(~R)";
+ Text[ arabic ] = "ÅÒÇáÉ";
+ Text[ turkish ] = "Kaldýr";
+ Text[ language_user1 ] = " ";
+ };
+
+
+
+
+ FixedText FT_CHARSTYLE
+ {
+ Pos = MAP_APPFONT ( 37 , 42 ) ;
+ Size = MAP_APPFONT (60 , 10 ) ;
+ Text = "Zeichen~vorlage" ;
+ Text [ ENGLISH ] = "Character style" ;
+ Text[ english_us ] = "Character Style";
+ Text[ portuguese ] = "~Estilos de caracteres";
+ Text[ russian ] = "Ñòèëü çíàêîâ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ dutch ] = "Teken~opmaakprofiel";
+ Text[ french ] = "Style de ~caractère";
+ Text[ spanish ] = "Estilo de ~carácter";
+ Text[ italian ] = "Modello di carattere";
+ Text[ danish ] = "Tegntypografi";
+ Text[ swedish ] = "T~eckenformatmall";
+ Text[ polish ] = "Styl znaku";
+ Text[ portuguese_brazilian ] = "Character style";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ korean ] = "¹®ÀÚ À¯Çü";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ chinese_traditional ] = "¦r«¬¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ";
+ Text[ turkish ] = "Karakter þablonu";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_CHARSTYLE
+ {
+ Pos = MAP_APPFONT ( 100 , 40 ) ;
+ Size = MAP_APPFONT ( 98, 40 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ PushButton PB_EDITSTYLE
+ {
+ Pos = MAP_APPFONT ( 199 , 40 ) ;
+ Size = MAP_APPFONT ( 50, 12 ) ;
+ Text = "~Bearbeiten..." ;
+ Text [ ENGLISH ] = "Edit..." ;
+ Text[ english_us ] = "~Edit...";
+ Text[ portuguese ] = "~Editar...";
+ Text[ russian ] = "Ïðàâêà...";
+ Text[ greek ] = "Åðåîåñãáóßá...";
+ Text[ dutch ] = "~Bewerken...";
+ Text[ french ] = "~Éditer...";
+ Text[ spanish ] = "~Editar...";
+ Text[ italian ] = "~Modifica...";
+ Text[ danish ] = "Rediger...";
+ Text[ swedish ] = "~Redigera...";
+ Text[ polish ] = "Edytuj...";
+ Text[ portuguese_brazilian ] = "Edit...";
+ Text[ japanese ] = "•ÒW(~E)...";
+ Text[ korean ] = "ÆíÁý(~E)...";
+ Text[ chinese_simplified ] = "±à¼­(~E)...";
+ Text[ chinese_traditional ] = "½s¿è(~E)...";
+ Text[ arabic ] = "ÊÍÑíÑ...";
+ Text[ turkish ] = "Düzenle...";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_FILLCHAR
+ {
+ Pos = MAP_APPFONT ( 37 , 57 ) ;
+ Size = MAP_APPFONT (60 , 10 ) ;
+ Text = "~Füllzeichen" ;
+ Text [ ENGLISH ] = "Fill character" ;
+ Text[ english_us ] = "Fill character";
+ Text[ portuguese ] = "Caracter de ~preenchimento";
+ Text[ russian ] = "Çàïîëíèòåëü";
+ Text[ greek ] = "×áñáêôÞñáò ãåìßóìáôïò";
+ Text[ dutch ] = "Opv~ulteken";
+ Text[ french ] = "Caractères de ~remplissage";
+ Text[ spanish ] = "Carácter de ~relleno";
+ Text[ italian ] = "Caratteri riempitivi";
+ Text[ danish ] = "Fyldtegn";
+ Text[ swedish ] = "Ut~fyllnadstecken";
+ Text[ polish ] = "Znak-wype³niacz";
+ Text[ portuguese_brazilian ] = "Fill character";
+ Text[ japanese ] = "Ø°ÀÞ°";
+ Text[ korean ] = "¹®ÀÚ Ã¤¿ì±â";
+ Text[ chinese_simplified ] = "³äÌî×Ö·û";
+ Text[ chinese_traditional ] = "¥R¶ñ¦r«¬";
+ Text[ arabic ] = "ÍÑæÝ ÊÚÈÆÉ";
+ Text[ turkish ] = "Öncü";
+ Text[ language_user1 ] = " ";
+ };
+ ComboBox CB_FILLCHAR
+ {
+ Pos = MAP_APPFONT ( 100 , 55 ) ;
+ Size = MAP_APPFONT ( 20, 40 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_CHAPTERENTRY
+ {
+ Pos = MAP_APPFONT ( 37 , 57 ) ;
+ Size = MAP_APPFONT ( 60, 10 ) ;
+ Text = "Ka~piteleintrag" ;
+ Text [ ENGLISH ] = "Chapter entry" ;
+ Text[ english_us ] = "Chapter entry";
+ Text[ portuguese ] = "Entrada de ~capítulo";
+ Text[ russian ] = "Ýëåìåíò ãëàâû";
+ Text[ greek ] = "ÅããñáöÞ êåöáëáßïõ";
+ Text[ dutch ] = "Hoofd~stukitem";
+ Text[ french ] = "Entrée de ~chapitre";
+ Text[ spanish ] = "E~ntrada de capítulo";
+ Text[ italian ] = "Voce capitolo";
+ Text[ danish ] = "Kapitelelement";
+ Text[ swedish ] = "Ka~pitelpost";
+ Text[ polish ] = "Wpis do rozdzia³u";
+ Text[ portuguese_brazilian ] = "Chapter entry";
+ Text[ japanese ] = "ÍŒ©o‚µ";
+ Text[ korean ] = "Àå Ç׸ñ";
+ Text[ chinese_simplified ] = "Õ½ÚÌõÄ¿";
+ Text[ chinese_traditional ] = "³¹¸`±ø¥Ø";
+ Text[ arabic ] = "ÅÏÎÇá Ýí ÝÕá";
+ Text[ turkish ] = "Bölüm giriþi";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_CHAPTERENTRY
+ {
+ Pos = MAP_APPFONT ( 100 , 55 ) ;
+ Size = MAP_APPFONT ( 98, 40 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Nur Nummernkreis" ; > ;
+ < "Nur Beschreibung" ; > ;
+ < "Nummernkreis und Beschreibung" ; > ;
+ };
+ StringList [English]=
+ {
+ < "Sequence only" ; > ;
+ < "Description only" ; > ;
+ < "Sequence and description" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Number range only" ; > ;
+ < "Description only" ; > ;
+ < "Number range and description" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Só sequência" ; > ;
+ < "Só descrição" ; > ;
+ < "Sequência e descrição" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Òîëüêî ïîðÿäêîâûé íîìåð" ; > ;
+ < "Òîëüêî îïèñàíèå" ; > ;
+ < "Ïîðÿäêîâûé íîìåð è îïèñàíèå" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "Ìüíï êýêëïò áñéèìþí" ; > ;
+ < "Ìüíï ðåñéãñáöÞ" ; > ;
+ < "Ìüíï ðåñéãñáöÞ" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Alleen nummerreeks" ; > ;
+ < "Alleen beschrijving" ; > ;
+ < "Nummerreeks en beschrijving" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "Uniquement la séquence" ; > ;
+ < "Uniquement la description" ; > ;
+ < "Séquence et description" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Solo secuencia" ; > ;
+ < "Solo descripción" ; > ;
+ < "Secuencia y descripción" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Solo sequenza" ; > ;
+ < "Solo descrizione" ; > ;
+ < "Sequenza e descrizione" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Kun sekvensnummerering" ; > ;
+ < "Kun beskrivelse" ; > ;
+ < "Sekvensnummerering og beskrivelse" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Bara nummersekvens" ; > ;
+ < "Bara beskrivning" ; > ;
+ < "Nummersekvens och beskrivning" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Tylko sekwencja" ; > ;
+ < "Tylko opis" ; > ;
+ < "Sekwencja i opis" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Nummernkreis und Beschreibung" ; > ;
+ < "Nur Nummernkreis" ; > ;
+ < "Nur Beschreibung" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "˜A”Ô‚Ì‚Ý" ; > ;
+ < "×ÍÞÙ‚Ì‚Ý" ; > ;
+ < "˜A”Ô‚Æ×ÍÞÙ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¼ýÀÚ ¿µ¿ª¸¸" ; > ;
+ < "¼³¸í¸¸" ; > ;
+ < "¼ýÀÚ ¿µ¿ª°ú ¼³¸í" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "Ö»ÊÇÅÅÁбàºÅ" ; > ;
+ < "Ö»ÊÇ˵Ã÷" ; > ;
+ < "ÅÅÁбàºÅºÍ˵Ã÷" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¶È±Ä¥Î¸¹½X" ; > ;
+ < "¶È±Ä¥Î´y­z" ; > ;
+ < "¸¹½X©M´y­z" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÊÓáÓá ÝÞØ" ; > ;
+ < "æÕÝ ÝÞØ" ; > ;
+ < "ÊÓáÓá ææÕÝ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Yalnýzca numara aralýðý" ; > ;
+ < "Yalnýzca açýklama" ; > ;
+ < "Numara aralýðý ve açýklama" ; > ;
+ };
+ };
+/* FixedText FT_SORTING
+ {
+ Pos = MAP_APPFONT ( 43 , 85 ) ;
+ Size = MAP_APPFONT ( 60, 10 ) ;
+ Text = "Sortierung" ;
+ Text [ ENGLISH ] = "Sorting" ;
+ };
+ ListBox LB_SORTING
+ {
+ Pos = MAP_APPFONT ( 100 , 85 ) ;
+ Size = MAP_APPFONT ( 100, 40 ) ;
+ DropDown = TRUE;
+ TabStop = TRUE;
+ StringList =
+ {
+ < "Alphabetisch" ; > ;
+ < "Fortlaufend" ; > ;
+ };
+ StringList [English]=
+ {
+ < "Alphabetical" ; > ;
+ < "Consecutively" ; > ;
+ };
+ };
+*/ FixedText FT_TABPOS
+ {
+ Pos = MAP_APPFONT ( 37 , 70 ) ;
+ Size = MAP_APPFONT ( 60, 10 ) ;
+ Text = "Tab~ulatorposition" ;
+ Text [ ENGLISH ] = "Tab stop position" ;
+ Text[ english_us ] = "Tab stop position";
+ Text[ portuguese ] = "~Posição da tabulação";
+ Text[ russian ] = "Ïîçèöèÿ òàáóëÿòîðà";
+ Text[ greek ] = "ÈÝóç óôçëïèÝôç";
+ Text[ dutch ] = "T~abstoppositie";
+ Text[ french ] = "Position de ~tabulation";
+ Text[ spanish ] = "Po~sición de tabulación";
+ Text[ italian ] = "Posizione tab~ulazione";
+ Text[ danish ] = "Tabulatorposition";
+ Text[ swedish ] = "Tab~ulatorposition";
+ Text[ polish ] = "Pozycja tabulatora";
+ Text[ portuguese_brazilian ] = "Tab stop position";
+ Text[ japanese ] = "ÀÌވʒu";
+ Text[ korean ] = "ÅÇ À§Ä¡";
+ Text[ chinese_simplified ] = "ÖƱí·ûλÖÃ";
+ Text[ chinese_traditional ] = "¨îªí²Å¦ì¸m";
+ Text[ arabic ] = "ãæÖÚ ÚáÇãÉ ÇáÌÏæáÉ";
+ Text[ turkish ] = "Sekme konumu";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_TABPOS
+ {
+ Pos = MAP_APPFONT ( 100 , 70 ) ;
+ Size = MAP_APPFONT ( 40, 10 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 1999 ;
+ DecimalDigits = 2 ;
+ Value = 0 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 1999 ;
+ SpinSize = 5 ;
+ };
+ CheckBox CB_AUTORIGHT
+ {
+ Pos = MAP_APPFONT ( 143 , 70 ) ;
+ Size = MAP_APPFONT ( 100, 10 ) ;
+ Text = "Am ~rechten Rand" ;
+ Text [ ENGLISH ] = "Right border" ;
+ Text[ english_us ] = "T~o right margin";
+ Text[ portuguese ] = "Na margem ~direita";
+ Text[ russian ] = "Â ïðàâîì ïîëå";
+ Text[ greek ] = "Óôï äåîß ðåñéèþñéï";
+ Text[ dutch ] = "Aan rechter ~marge";
+ Text[ french ] = "Bord ~droit";
+ Text[ spanish ] = "Al bor~de derecho";
+ Text[ italian ] = "Bordo dest~ro";
+ Text[ danish ] = "Ved højre margen";
+ Text[ swedish ] = "Vid högermarginalen";
+ Text[ polish ] = "Z prawej krawêdzi";
+ Text[ portuguese_brazilian ] = "Right border";
+ Text[ japanese ] = "‰E—]”’";
+ Text[ korean ] = "¿À¸¥ÂÊ ¿©¹é(~O)";
+ Text[ chinese_simplified ] = "Óұ߿հ×";
+ Text[ chinese_traditional ] = "¦b¥kÃäªÅ¥Õ¤W";
+ Text[ arabic ] = "Úáì ÇáåÇãÔ ÇáÃíãä";
+ Text[ turkish ] = "Sað kenar";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_ENTRY
+ {
+ Pos = MAP_APPFONT ( 34 , 3 ) ;
+ Size = MAP_APPFONT ( 220, 80 ) ;
+ Text = "Aufbau" ;
+ Text [ ENGLISH ] = "Structure" ;
+ Text[ english_us ] = "Structure";
+ Text[ portuguese ] = "Estrutura";
+ Text[ russian ] = "Ñòðîåíèå";
+ Text[ greek ] = "ÄïìÞ";
+ Text[ dutch ] = "Structuur";
+ Text[ french ] = "Structure";
+ Text[ spanish ] = "Estructura";
+ Text[ italian ] = "Struttura";
+ Text[ danish ] = "Struktur";
+ Text[ swedish ] = "Struktur";
+ Text[ polish ] = "Struktura";
+ Text[ portuguese_brazilian ] = "Structure";
+ Text[ japanese ] = "\\¬";
+ Text[ korean ] = "±¸Á¶";
+ Text[ chinese_simplified ] = "¹¹³É";
+ Text[ chinese_traditional ] = "µ²ÌÛ";
+ Text[ arabic ] = "ÇáÈäíÉ";
+ Text[ turkish ] = "Yapý";
+ Text[ language_user1 ] = " ";
+ };
+/* CheckBox CB_RECALCTAB
+ {
+ Pos = MAP_APPFONT ( 37 , 98 ) ;
+ Size = MAP_APPFONT ( 200, 10 ) ;
+ Text = "Tabulatorposition immer neu berechnen" ;
+ Text [ ENGLISH ] = "Recalculate tab stop position" ;
+ };
+*/ CheckBox CB_RELTOSTYLE
+ {
+ Pos = MAP_APPFONT ( 37 , 96 ) ;
+ Size = MAP_APPFONT ( 200, 10 ) ;
+ Text = "P~osition der Tabulatoren relativ zum Einzug aus der Absatzvorlage" ;
+ Text [ ENGLISH ] = "Position of tab stops relativ to the paragraph style indent" ;
+ Text[ english_us ] = "Tab position relati~ve to Paragraph Style indent";
+ Text[ portuguese ] = "~Posição relativa ao avanço do estilo de parágrafo";
+ Text[ russian ] = "Ïîçèöèÿ òàáóëÿòîðîâ îòíîñ. îòñòóïà èç ñòèëÿ àáçàöà";
+ Text[ greek ] = "ÈÝóç óôçëïèåôþí áíÜëïãá ìå ôçí åóï÷Þ ôïõ ðñïôýðïõ ôçò ðáñáãñÜöïõ";
+ Text[ dutch ] = "~Positie in verhouding tot de inspringing uit het alinea-opmaakprofiel.";
+ Text[ french ] = "P~osition en fonction du style de paragraphe (retrait)";
+ Text[ spanish ] = "Posición relati~va a sangría de estilo de párrafo";
+ Text[ italian ] = "P~osizione relativa al rientro del modello di paragrafo";
+ Text[ danish ] = "Tabulatorernes position relativ til indrykningen fra afsnitstypografien";
+ Text[ swedish ] = "Tabulatorernas p~osition relativ till indraget från styckeformatmallen";
+ Text[ polish ] = "Pozycja relatywna do wciêcia ze stylu akapitu";
+ Text[ portuguese_brazilian ] = "Position relativ to the paragraph style indent";
+ Text[ japanese ] = "ÀÌވʒu‚Í’i—Ž½À²Ù‚̲ÝÃÞÝÄ‚©‚ç";
+ Text[ korean ] = "´Ü¶ôÀÇ Ã¹¹®Àå ¶ç¾î¾²±â¿¡ °ü·ÃµÈ ÅÇ À§Ä¡";
+ Text[ chinese_simplified ] = "ÖƱí·ûλÖúͶÎÂäÑùʽµÄËõ½ø±£³ÖÏà¶ÔλÖÃ";
+ Text[ chinese_traditional ] = "©M¬q¸¨¼Ë¦¡ªºÁY±Æ«O«ù¬Û¹ï¦ì¸m";
+ Text[ arabic ] = "ãæÖÚ ÚáÇãÇÊ ÇáÌÏæáÉ äÓÈÉ áÅÒÇÍÉ äãØ ÇáÝÞÑÉ";
+ Text[ turkish ] = "Paragraf biçimi girintisine göre orantýlý sekme konumu";
+ Text[ language_user1 ] = " ";
+ };
+/* CheckBox CB_NUMSTYLEFROMPDESC
+ {
+ Pos = MAP_APPFONT ( 37 , 119 ) ;
+ Size = MAP_APPFONT ( 200, 10 ) ;
+ Text = "Zahlenformat aus der Seitenvorlage" ;
+ Text [ ENGLISH ] = "Numbering type from page style" ;
+ };
+*/
+ FixedText FT_MAIN_ENTRY_STYLE
+ {
+ Pos = MAP_APPFONT ( 37 , 95 ) ;
+ Size = MAP_APPFONT ( 105, 10 ) ;
+ Text = "Zeichenvorla~ge für Haupteinträge" ;
+ Text [ ENGLISH ] = "Character style of main entries" ;
+ Text[ english_us ] = "Character Style for main entries";
+ Text[ portuguese ] = "Estilo de ~caracteres para entradas principais";
+ Text[ russian ] = "Ñòèëü çíàêîâ äëÿ ãëàâíûõ ýëåìåíòîâ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí ôùí êõñßùí åããñáöþí";
+ Text[ dutch ] = "~Tekenopmaakprofiel voor hoofditems";
+ Text[ french ] = "Style de ~caractère des entrées principales";
+ Text[ spanish ] = "~Estilo de caracteres para entradas principales";
+ Text[ italian ] = "Modello di carattere per voci principali";
+ Text[ danish ] = "Tegntypografi til hovedelementer";
+ Text[ swedish ] = "Te~ckenformatmall för huvudposter";
+ Text[ polish ] = "Styl znaku wpisów g³ównych";
+ Text[ portuguese_brazilian ] = "Character style of main entries";
+ Text[ japanese ] = "Žå“ü—Í—p•¶Žš½À²Ù";
+ Text[ korean ] = "ÁÖ Ç׸ñ¿¡´ëÇÑ ¹®ÀÚ À¯Çü";
+ Text[ chinese_simplified ] = "Ö÷ÌõÄ¿µÄ×Ö·ûÑùʽ";
+ Text[ chinese_traditional ] = "¥D¶µ¥Øªº¦r«¬¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ ááÅÏÎÇáÇÊ ÇáÃÓÇÓíÉ";
+ Text[ turkish ] = "Ana giriþler için karakter þablonu";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_MAIN_ENTRY_STYLE
+ {
+ Pos = MAP_APPFONT ( 144 , 93 ) ;
+ Size = MAP_APPFONT ( 100, 40 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+
+ CheckBox CB_ALPHADELIM
+ {
+ Pos = MAP_APPFONT ( 37 , 108 ) ;
+ Size = MAP_APPFONT ( 105, 10 ) ;
+ Text = "Alphabet~isches Trennzeichen" ;
+ Text [ ENGLISH ] = "Alphabetical delimiter" ;
+ Text[ english_us ] = "Alphabetical delimiter";
+ Text[ portuguese ] = "Separador alfa~bético";
+ Text[ russian ] = "Àëôàâèòíûé ðàçäåëèòåëü";
+ Text[ greek ] = "Áëöáâçôéêü åíùôéêü";
+ Text[ dutch ] = "~Alphabetisch scheidingsteken";
+ Text[ french ] = "Séparateur ~alphabétique";
+ Text[ spanish ] = "Separador alfa~bético";
+ Text[ italian ] = "Separatori alfabetici";
+ Text[ danish ] = "Alfabetisk skilletegn";
+ Text[ swedish ] = "Alfabetiskt skiljetecken";
+ Text[ polish ] = "Alfabetyczny separator";
+ Text[ portuguese_brazilian ] = "Alphabetical delimiter";
+ Text[ japanese ] = "±Ù̧ÍޯĂ̋æØ‚è‹L†";
+ Text[ korean ] = "¾ËÆĺª¼øÀÇ ±¸ºÐ ±âÈ£";
+ Text[ chinese_simplified ] = "×Öĸ·Ö¸ô·û";
+ Text[ chinese_traditional ] = "¦r¥À¤À¹j²Å";
+ Text[ arabic ] = "ÝÇÕá ÃÈÌÏí";
+ Text[ turkish ] = "Alfabetik ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_COMMASEPARATED
+ {
+ Pos = MAP_APPFONT ( 144 , 108 ) ;
+ Size = MAP_APPFONT ( 105, 10 ) ;
+ Text = "S~chlüssel kommasepariert" ;
+ Text [ ENGLISH ] = "Comma separated keys" ;
+ Text[ english_us ] = "Key separated by commas";
+ Text[ portuguese ] = "~Chaves separadas por vírgulas";
+ Text[ russian ] = "Êëþ÷, ðàçäåëåííûé çàïÿòîé";
+ Text[ greek ] = "ÊëåéäéÜ äéá÷ùñéæüìåíá ìå êüììáôá";
+ Text[ dutch ] = "~Sleutel afgescheiden door komma";
+ Text[ french ] = "~Clés séparées par une virgule";
+ Text[ spanish ] = "Cla~ves separadas por comas";
+ Text[ italian ] = "~Chiavi separate da virgola";
+ Text[ danish ] = "Kommasepareret nøgle";
+ Text[ swedish ] = "Nyckel, kommaseparerad";
+ Text[ polish ] = "Klucz odseparowany przecinkiem";
+ Text[ portuguese_brazilian ] = "Comma separated keys";
+ Text[ japanese ] = "ºÝÏ‚Å·°‚𗣂·";
+ Text[ korean ] = "Äĸ¶¿¡ÀÇÇØ ±¸ºÐµÈ Å°";
+ Text[ chinese_simplified ] = "¼üÂëÓöººÅ·Ö¿ª";
+ Text[ chinese_traditional ] = "Áä½X¥Î³r¸¹¤À¶}";
+ Text[ arabic ] = "ãÝÇÊíÍ ÈíäåÇ ÝÇÕáÉ";
+ Text[ turkish ] = "Virgüllerle ayrýlmýþ anahtar";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_FORMAT
+ {
+ Pos = MAP_APPFONT ( 34 , 84 ) ;
+ Size = MAP_APPFONT ( 220, 49 ) ;
+ Text = "Formatierung" ;
+ Text [ ENGLISH ] = "Format" ;
+ Text[ english_us ] = "Format";
+ Text[ portuguese ] = "Formatação";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ greek ] = "ÌïñöïðïéçìÝíï ðåäßï";
+ Text[ dutch ] = "Opmaak";
+ Text[ french ] = "Formatage";
+ Text[ spanish ] = "Formato";
+ Text[ italian ] = "Formattazione";
+ Text[ danish ] = "Formatering";
+ Text[ swedish ] = "Formatering";
+ Text[ polish ] = "Formatowanie";
+ Text[ portuguese_brazilian ] = "Format";
+ Text[ japanese ] = "‘Ž®";
+ Text[ korean ] = "¼­½Ä";
+ Text[ chinese_simplified ] = "¸ñʽ»¯";
+ Text[ chinese_traditional ] = "®æ¦¡¤Æ";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ turkish ] = "Formatlama";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_DOCPOS
+ {
+ Pos = MAP_APPFONT ( 40 , 97) ;
+ Size = MAP_APPFONT ( 110, 10 ) ;
+ Text = "Dokument~position " ;
+ Text [ ENGLISH ] = "document position" ;
+ Text[ english_us ] = "Document ~position ";
+ Text[ portuguese ] = "~Posição do documento ";
+ Text[ russian ] = "Ïîëîæåíèå äîêóìåíòà ";
+ Text[ greek ] = "ÈÝóç åããñÜöïõ ";
+ Text[ dutch ] = "Document~positie ";
+ Text[ french ] = "~Emplacement ds le document ";
+ Text[ spanish ] = "P~osición del documento ";
+ Text[ italian ] = "~Posizione del documento ";
+ Text[ danish ] = "Dokumentets placering ";
+ Text[ swedish ] = "Dokument~position ";
+ Text[ polish ] = "Pozycja dokumentu ";
+ Text[ portuguese_brazilian ] = "by document position";
+ Text[ japanese ] = "ÄÞ·­ÒÝĂ̈ʒu(~P)";
+ Text[ korean ] = "¹®¼­ À§Ä¡ (~P)";
+ Text[ chinese_simplified ] = "ÎĵµÎ»Öà (~P)";
+ Text[ chinese_traditional ] = "¤å¥ó¦ì¸m (~P)";
+ Text[ arabic ] = "ãæÖÚ ÇáãÓÊäÏ ";
+ Text[ turkish ] = "Belge konumu ";
+ };
+ RadioButton RB_SORTCONTENT
+ {
+ Pos = MAP_APPFONT ( 40 , 110 ) ;
+ Size = MAP_APPFONT ( 110, 10 ) ;
+ Text = "~Inhalt" ;
+ Text [ ENGLISH ] = "content" ;
+ Text[ english_us ] = "~Content";
+ Text[ portuguese ] = "~Conteúdo";
+ Text[ russian ] = "Ñîäåðæèìîå";
+ Text[ greek ] = "Ðåñéå÷üìåíá";
+ Text[ dutch ] = "~Inhoud";
+ Text[ french ] = "le ~contenu";
+ Text[ spanish ] = "C~ontenido";
+ Text[ italian ] = "Contenuto";
+ Text[ danish ] = "Indhold";
+ Text[ swedish ] = "I~nnehåll";
+ Text[ polish ] = "ZawartoϾ";
+ Text[ portuguese_brazilian ] = "Sort by content";
+ Text[ japanese ] = "“à—e(~C)";
+ Text[ korean ] = "³»¿ë(~C)";
+ Text[ chinese_simplified ] = "ÄÚÈÝ(~C)";
+ Text[ chinese_traditional ] = "¤º®e(~C)";
+ Text[ arabic ] = "ÇáãÍÊæíÇÊ";
+ Text[ turkish ] = "Ýçerik";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_SORTING
+ {
+ Pos = MAP_APPFONT ( 34 , 84 ) ;
+ Size = MAP_APPFONT ( 117, 49 ) ;
+ Text = "Sortierung nach" ;
+ Text [ ENGLISH ] = "Sort by" ;
+ Text[ english_us ] = "Sort by";
+ Text[ portuguese ] = "Ordenar por ...";
+ Text[ russian ] = "Ñîðòèðîâàòü ïî";
+ Text[ greek ] = "Ôáîéíüìçóç êáôÜ ...";
+ Text[ dutch ] = "Sorteren op";
+ Text[ french ] = "Trier en fonction de";
+ Text[ spanish ] = "Ordenar según";
+ Text[ italian ] = "Ordine per";
+ Text[ danish ] = "Sorter efter";
+ Text[ swedish ] = "Sortering efter ...";
+ Text[ polish ] = "Sortuj wed³ug";
+ Text[ portuguese_brazilian ] = "Sort by ...";
+ Text[ japanese ] = "•À‚בւ¦‚̇˜";
+ Text[ korean ] = "¿¡ÀÇÇÑ Á¤·Ä ...";
+ Text[ chinese_simplified ] = "ÅÅÐò°´ÕÕ ...";
+ Text[ chinese_traditional ] = "½s±Æ«ö·Ó...";
+ Text[ arabic ] = "ÇáÝÑÒ ÍÓÈ";
+ Text[ turkish ] = "Sýralama ölçütü:";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_FIRSTKEY
+ {
+ Pos = MAP_APPFONT ( 160 , 94 ) ;
+ Size = MAP_APPFONT ( 10, 8 ) ;
+ Text = "~1" ;
+ };
+ ListBox LB_FIRSTKEY
+ {
+ Pos = MAP_APPFONT ( 171 , 93 ) ;
+ Size = MAP_APPFONT ( 50, 50 ) ;
+ Border = TRUE;
+ DropDown = TRUE;
+ };
+ ImageRadioButton RB_SORTUP1
+ {
+ Pos = MAP_APPFONT ( 223 , 93 ) ;
+ Size = MAP_APPFONT ( 12, 12 ) ;
+ RadioButtonImage =
+ Image
+ {
+ ImageBitmap = Bitmap{File = "sc10712.bmp"; };
+ };
+ Check = TRUE;
+ QuickHelpText = "Aufsteigend";
+ QuickHelpText[English] = "Ascending";
+ QuickHelpText[ english_us ] = "Ascending";
+ QuickHelpText[ portuguese ] = "Ascending";
+ QuickHelpText[ russian ] = "Ïî âîçðàñòàíèþ";
+ QuickHelpText[ greek ] = "Áýîïõóá";
+ QuickHelpText[ dutch ] = "Aplopend";
+ QuickHelpText[ french ] = "Croissant";
+ QuickHelpText[ spanish ] = "Ascending";
+ QuickHelpText[ italian ] = "Crescente";
+ QuickHelpText[ danish ] = "Stigende";
+ QuickHelpText[ swedish ] = "Stigande";
+ QuickHelpText[ polish ] = "Rosn¹co";
+ QuickHelpText[ portuguese_brazilian ] = "Ascending";
+ QuickHelpText[ japanese ] = "¸‡";
+ QuickHelpText[ korean ] = "Ascending";
+ QuickHelpText[ chinese_simplified ] = "Ascending";
+ QuickHelpText[ chinese_traditional ] = "¦V¤W";
+ QuickHelpText[ arabic ] = "ÊÕÇÚÏí";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ };
+ ImageRadioButton RB_SORTDOWN1
+ {
+ Pos = MAP_APPFONT ( 237 , 93 ) ;
+ Size = MAP_APPFONT ( 12, 12 ) ;
+ RadioButtonImage =
+ Image
+ {
+ ImageBitmap = Bitmap{File = "sc10713.bmp"; };
+ };
+ QuickHelpText = "Absteigend";
+ QuickHelpText[English] = "Descending";
+ QuickHelpText[ english_us ] = "Descending";
+ QuickHelpText[ portuguese ] = "Descending";
+ QuickHelpText[ russian ] = "Ïî óáûâàíèþ";
+ QuickHelpText[ greek ] = "Öèßíïõóá";
+ QuickHelpText[ dutch ] = "Aflopend";
+ QuickHelpText[ french ] = "Décroissant";
+ QuickHelpText[ spanish ] = "Descending";
+ QuickHelpText[ italian ] = "Decrescente";
+ QuickHelpText[ danish ] = "Faldende";
+ QuickHelpText[ swedish ] = "Fallande";
+ QuickHelpText[ polish ] = "Malej¹co";
+ QuickHelpText[ portuguese_brazilian ] = "Descending";
+ QuickHelpText[ japanese ] = "~‡";
+ QuickHelpText[ korean ] = "Descending";
+ QuickHelpText[ chinese_simplified ] = "Descending";
+ QuickHelpText[ chinese_traditional ] = "¦V¤U";
+ QuickHelpText[ arabic ] = "ÊäÇÒáí";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ };
+ ImageRadioButton RB_SORTUP2
+ {
+ Pos = MAP_APPFONT ( 223 , 106 ) ;
+ Size = MAP_APPFONT ( 12, 12 ) ;
+ RadioButtonImage =
+ Image
+ {
+ ImageBitmap = Bitmap{File = "sc10712.bmp"; };
+ };
+ Check = TRUE;
+ QuickHelpText = "Aufsteigend";
+ QuickHelpText[English] = "Ascending";
+ QuickHelpText[ english_us ] = "Ascending";
+ QuickHelpText[ portuguese ] = "Ascending";
+ QuickHelpText[ russian ] = "Ïî âîçðàñòàíèþ";
+ QuickHelpText[ greek ] = "Áýîïõóá";
+ QuickHelpText[ dutch ] = "Oplopend";
+ QuickHelpText[ french ] = "Croissant";
+ QuickHelpText[ spanish ] = "Ascending";
+ QuickHelpText[ italian ] = "Crescente";
+ QuickHelpText[ danish ] = "Stigende";
+ QuickHelpText[ swedish ] = "Stigande";
+ QuickHelpText[ polish ] = "Rosn¹co";
+ QuickHelpText[ portuguese_brazilian ] = "Ascending";
+ QuickHelpText[ japanese ] = "¸‡";
+ QuickHelpText[ korean ] = "Ascending";
+ QuickHelpText[ chinese_simplified ] = "Ascending";
+ QuickHelpText[ chinese_traditional ] = "¦V¤W";
+ QuickHelpText[ arabic ] = "ÊÕÇÚÏí";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ };
+ ImageRadioButton RB_SORTDOWN2
+ {
+ Pos = MAP_APPFONT ( 237 , 106 ) ;
+ Size = MAP_APPFONT ( 12, 12 ) ;
+ RadioButtonImage =
+ Image
+ {
+ ImageBitmap = Bitmap{File = "sc10713.bmp"; };
+ };
+ QuickHelpText = "Absteigend";
+ QuickHelpText[English] = "Descending";
+ QuickHelpText[ english_us ] = "Descending";
+ QuickHelpText[ portuguese ] = "Descending";
+ QuickHelpText[ russian ] = "Ïî óáûâàíèþ";
+ QuickHelpText[ greek ] = "Öèßíïõóá";
+ QuickHelpText[ dutch ] = "Aflopend";
+ QuickHelpText[ french ] = "Décroissant";
+ QuickHelpText[ spanish ] = "Descending";
+ QuickHelpText[ italian ] = "Decrescente";
+ QuickHelpText[ danish ] = "Faldende";
+ QuickHelpText[ swedish ] = "Fallande";
+ QuickHelpText[ polish ] = "Malej¹co";
+ QuickHelpText[ portuguese_brazilian ] = "Descending";
+ QuickHelpText[ japanese ] = "~‡";
+ QuickHelpText[ korean ] = "Descending";
+ QuickHelpText[ chinese_simplified ] = "Descending";
+ QuickHelpText[ chinese_traditional ] = "¦V¤U";
+ QuickHelpText[ arabic ] = "ÊäÇÒáí";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ };
+ ImageRadioButton RB_SORTUP3
+ {
+ Pos = MAP_APPFONT ( 223 , 119 ) ;
+ Size = MAP_APPFONT ( 12, 12 ) ;
+ RadioButtonImage =
+ Image
+ {
+ ImageBitmap = Bitmap{File = "sc10712.bmp"; };
+ };
+ Check = TRUE;
+ QuickHelpText = "Aufsteigend";
+ QuickHelpText[English] = "Ascending";
+ QuickHelpText[ english_us ] = "Ascending";
+ QuickHelpText[ portuguese ] = "Ascending";
+ QuickHelpText[ russian ] = "Ïî âîçðàñòàíèþ";
+ QuickHelpText[ greek ] = "Áýîïõóá";
+ QuickHelpText[ dutch ] = "Oplopend";
+ QuickHelpText[ french ] = "Croissant";
+ QuickHelpText[ spanish ] = "Ascending";
+ QuickHelpText[ italian ] = "Crescente";
+ QuickHelpText[ danish ] = "Stigende";
+ QuickHelpText[ swedish ] = "Stigande";
+ QuickHelpText[ polish ] = "Rosn¹co";
+ QuickHelpText[ portuguese_brazilian ] = "Ascending";
+ QuickHelpText[ japanese ] = "¸‡";
+ QuickHelpText[ korean ] = "Ascending";
+ QuickHelpText[ chinese_simplified ] = "Ascending";
+ QuickHelpText[ chinese_traditional ] = "¦V¤W";
+ QuickHelpText[ arabic ] = "ÊÕÇÚÏí";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ };
+ ImageRadioButton RB_SORTDOWN3
+ {
+ Pos = MAP_APPFONT ( 237 ,119 ) ;
+ Size = MAP_APPFONT ( 12, 12 ) ;
+ RadioButtonImage =
+ Image
+ {
+ ImageBitmap = Bitmap{File = "sc10713.bmp"; };
+ };
+ QuickHelpText = "Absteigend";
+ QuickHelpText[English] = "Descending";
+ QuickHelpText[ english_us ] = "Descending";
+ QuickHelpText[ portuguese ] = "Descending";
+ QuickHelpText[ russian ] = "Ïî óáûâàíèþ";
+ QuickHelpText[ greek ] = "Öèßíïõóá";
+ QuickHelpText[ dutch ] = "Aflopend";
+ QuickHelpText[ french ] = "Décroissant";
+ QuickHelpText[ spanish ] = "Descending";
+ QuickHelpText[ italian ] = "Decrescente";
+ QuickHelpText[ danish ] = "Faldende";
+ QuickHelpText[ swedish ] = "Fallande";
+ QuickHelpText[ polish ] = "Malej¹co";
+ QuickHelpText[ portuguese_brazilian ] = "Descending";
+ QuickHelpText[ japanese ] = "~‡";
+ QuickHelpText[ korean ] = "Descending";
+ QuickHelpText[ chinese_simplified ] = "Descending";
+ QuickHelpText[ chinese_traditional ] = "¦V¤U";
+ QuickHelpText[ arabic ] = "ÊäÇÒáí";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ QuickHelpText[ language_user1 ] = " ";
+ };
+ FixedText FT_SECONDKEY
+ {
+ Pos = MAP_APPFONT ( 160 , 107 ) ;
+ Size = MAP_APPFONT ( 10, 8 ) ;
+ Text = "~2" ;
+ };
+ ListBox LB_SECONDKEY
+ {
+ Pos = MAP_APPFONT ( 171 , 106 ) ;
+ Size = MAP_APPFONT ( 50, 50 ) ;
+ Border = TRUE;
+ DropDown = TRUE;
+ };
+ FixedText FT_THIRDDKEY
+ {
+ Pos = MAP_APPFONT ( 160 , 120 ) ;
+ Size = MAP_APPFONT ( 10, 8 ) ;
+ Text = "~3" ;
+ };
+ ListBox LB_THIRDKEY
+ {
+ Pos = MAP_APPFONT ( 171 , 119 ) ;
+ Size = MAP_APPFONT ( 50, 50 ) ;
+ Border = TRUE;
+ DropDown = TRUE;
+ };
+ GroupBox GB_SORTKEY
+ {
+ Pos = MAP_APPFONT ( 154 , 84 ) ;
+ Size = MAP_APPFONT ( 100, 49 ) ;
+ Text = "Sortierschlüssel" ;
+ Text [ ENGLISH ] = "Sort keys" ;
+ Text[ english_us ] = "Sort keys";
+ Text[ portuguese ] = "Critérios de ordem";
+ Text[ russian ] = "Êëþ÷ ñîðòèðîâêè";
+ Text[ greek ] = "Êëåéäß ôáîéíüìçóçò";
+ Text[ dutch ] = "Sorteersleutel";
+ Text[ french ] = "Critère de tri";
+ Text[ spanish ] = "Criterios de ordenación";
+ Text[ italian ] = "Criteri";
+ Text[ danish ] = "Sorteringsnøgle";
+ Text[ swedish ] = "Sorteringsnyckel";
+ Text[ polish ] = "Klucz sortowania";
+ Text[ portuguese_brazilian ] = "Sort keys";
+ Text[ japanese ] = "•À‚בւ¦·°";
+ Text[ korean ] = "Á¤·Ä Å°";
+ Text[ chinese_simplified ] = "ÅÅÐòµÄ¹Ø¼ü×Ö";
+ Text[ chinese_traditional ] = "±Æ§ÇªºÃöÁä¦r";
+ Text[ arabic ] = "ãÝÇÊíÍ ÇáÝÑÒ";
+ Text[ turkish ] = "Sýralama anahtarý";
+ Text[ language_user1 ] = " ";
+ };
+
+ String STR_NOSORTKEY
+ {
+ Text = "<Keiner>";
+ Text [English] = "<None>";
+ Text[ english_us ] = "<None>";
+ Text[ portuguese ] = "<Nenhum>";
+ Text[ russian ] = "<Áåç>";
+ Text[ greek ] = "<ÊáíÝíá>";
+ Text[ dutch ] = "<Geen>";
+ Text[ french ] = "<Aucun>";
+ Text[ spanish ] = "<Ninguno>";
+ Text[ italian ] = "<nessuno>";
+ Text[ danish ] = "<Ingen>";
+ Text[ swedish ] = "<Ingen>";
+ Text[ polish ] = "<Brak>";
+ Text[ portuguese_brazilian ] = "<None>";
+ Text[ japanese ] = "<‚È‚µ>";
+ Text[ korean ] = "<¾øÀ½>";
+ Text[ chinese_simplified ] = "<ÎÞ>";
+ Text[ chinese_traditional ] = "<µL>";
+ Text[ arabic ] = "<ÈÏæä>";
+ Text[ turkish ] = "<Yok>";
+ };
+ String STR_NO_CHAR_STYLE
+ {
+ Text = "<Keine>";
+ Text [English] = "<None>";
+ Text[ english_us ] = "<None>";
+ Text[ portuguese ] = "<Nenhum>";
+ Text[ russian ] = "<Áåç>";
+ Text[ greek ] = "<ÊáíÝíá>";
+ Text[ dutch ] = "<Geen>";
+ Text[ french ] = "<Aucun>";
+ Text[ spanish ] = "<Ninguno>";
+ Text[ italian ] = "<Nessuno>";
+ Text[ danish ] = "<Ingen>";
+ Text[ swedish ] = "<Ingen>";
+ Text[ polish ] = "<Brak>";
+ Text[ portuguese_brazilian ] = "<None>";
+ Text[ japanese ] = "<‚È‚µ>";
+ Text[ korean ] = "<¾øÀ½>";
+ Text[ chinese_simplified ] = "<ÎÞ>";
+ Text[ chinese_traditional ] = "<µL>";
+ Text[ arabic ] = "<ÈÏæä>";
+ Text[ turkish ] = "<Yok>";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_DELIM
+ {
+ Text = "T";
+ Text [English] = "S";
+ Text[ language_user1 ] = " ";
+ Text[ english_us ] = "S";
+ Text[ portuguese ] = "S";
+ Text[ russian ] = "Ð";
+ Text[ greek ] = "Ä";
+ Text[ dutch ] = "S";
+ Text[ french ] = "S";
+ Text[ spanish ] = "S";
+ Text[ italian ] = "S";
+ Text[ danish ] = "S";
+ Text[ swedish ] = "A";
+ Text[ polish ] = "S";
+ Text[ portuguese_brazilian ] = "S";
+ Text[ japanese ] = "S";
+ Text[ korean ] = "S";
+ Text[ chinese_simplified ] = "S";
+ Text[ chinese_traditional ] = "S";
+ Text[ arabic ] = "Ý";
+ Text[ turkish ] = "T";
+ };
+};
+TabPage TP_TOX_STYLES
+{
+ HelpID = HID_TOX_STYLES_PAGE;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE ;
+ FixedText FT_LEVEL
+ {
+ Pos = MAP_APPFONT ( 11 , 15 ) ;
+ Size = MAP_APPFONT ( 24 , 8 ) ;
+ Text = "Stu~fen" ;
+ Text [ ENGLISH ] = "~Levels" ;
+ Text [ norwegian ] = "~Nivåer" ;
+ Text [ italian ] = "~Livelli" ;
+ Text [ portuguese_brazilian ] = "~Níveis" ;
+ Text [ portuguese ] = "~Níveis" ;
+ Text [ finnish ] = "~Tasot" ;
+ Text [ danish ] = "Niveauer" ;
+ Text [ french ] = "~Niveaux" ;
+ Text [ swedish ] = "Nivåer" ;
+ Text [ dutch ] = "~Niveaus" ;
+ Text [ spanish ] = "~Niveles" ;
+ Text [ english_us ] = "~Levels" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¼¶(~L)";
+ Text[ russian ] = "Óðîâíè";
+ Text[ polish ] = "Poziomy";
+ Text[ japanese ] = "ÚÍÞÙ(~L)";
+ Text[ chinese_traditional ] = "¯Å(~L)";
+ Text[ arabic ] = "ÇáãÓÊæíÇÊ";
+ Text[ greek ] = "Åðßðåäá";
+ Text[ korean ] = "¼öÁØ(~L)";
+ Text[ turkish ] = "Düzeyler";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_LEVEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 25 ) ;
+ Size = MAP_APPFONT ( 115 , 81 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ FixedText FT_TEMPLATE
+ {
+ Pos = MAP_APPFONT ( 133 , 15 ) ;
+ Size = MAP_APPFONT ( 54 , 8 ) ;
+ Text = "~Absatzvorlagen" ;
+ Text [ ENGLISH ] = "~Paragraph styles" ;
+ Text [ norwegian ] = "~Avsnittsmaler" ;
+ Text [ italian ] = "Mo~delli di paragrafo" ;
+ Text [ portuguese_brazilian ] = "~Estilos de parágrafo" ;
+ Text [ portuguese ] = "Estilo~s de parágrafo" ;
+ Text [ finnish ] = "~Kappaletyylit" ;
+ Text [ danish ] = "Afsnitstypografi" ;
+ Text [ french ] = "~Styles de paragraphe" ;
+ Text [ swedish ] = "Styckeformatmallar" ;
+ Text [ dutch ] = "~Alinea-opmaakprofielen" ;
+ Text [ spanish ] = "Estilos de párra~fo" ;
+ Text [ english_us ] = "Paragraph ~Styles" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¶ÎÂäÑùʽ(~S)";
+ Text[ russian ] = "Ñòèëè àáçàöåâ";
+ Text[ polish ] = "Style akapitów";
+ Text[ japanese ] = "’i—Ž½À²Ù(~S)";
+ Text[ chinese_traditional ] = "¬q¸¨¼Ë¦¡(~S)";
+ Text[ arabic ] = "ÃäãÇØ ÝÞÑÉ";
+ Text[ greek ] = "Ðñüôõð~á ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô À¯Çü(~S)";
+ Text[ turkish ] = "Paragraf þablonlarý";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_PARALAY
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 133 , 25 ) ;
+ Size = MAP_APPFONT ( 110 , 81 ) ;
+ TabStop = TRUE ;
+ Sort = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ PushButton BT_STD
+ {
+ Pos = MAP_APPFONT ( 32 , 112 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "Sta~ndard" ;
+ Text [ ENGLISH ] = "Sta~ndard" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "Stan~daard" ;
+ Text [ english_us ] = "~Default" ;
+ Text [ italian ] = "Sta~ndard" ;
+ Text [ spanish ] = "~Predeterminado" ;
+ Text [ french ] = "~Standard" ;
+ Text [ swedish ] = "Sta~ndard" ;
+ Text [ danish ] = "Standard" ;
+ Text [ portuguese ] = "~Padrão" ;
+ Text [ portuguese_brazilian ] = "Sta~ndard" ;
+ Text[ chinese_simplified ] = "±ê×¼(~D)";
+ Text[ russian ] = "Ñòàíäàðò";
+ Text[ polish ] = "Standard";
+ Text[ japanese ] = "•W€(~D)";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¼Ð·Ç(~D)";
+ Text[ arabic ] = "ÇÝÊÑÇÖí";
+ Text[ greek ] = "ÐñïåðéëïãÞ";
+ Text[ korean ] = "±âº»°ª(~D)";
+ Text[ turkish ] = "Standart";
+ };
+ PushButton BT_ASSIGN
+ {
+ Pos = MAP_APPFONT ( 133 , 112 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "<- ~Zuordnen" ;
+ Text [ ENGLISH ] = "<- ~Assign" ;
+ Text [ norwegian ] = "<- ~Tilordne" ;
+ Text [ italian ] = "<- ~Assegna" ;
+ Text [ portuguese_brazilian ] = "<- ~Designar" ;
+ Text [ portuguese ] = "<- ~Atribuir" ;
+ Text [ finnish ] = "<- ~Liitä" ;
+ Text [ danish ] = "<- Tildel" ;
+ Text [ french ] = "<- Assigner" ;
+ Text [ swedish ] = "<- Ti~lldela" ;
+ Text [ dutch ] = "<- ~Toewijzen" ;
+ Text [ spanish ] = "<- ~Asignar" ;
+ Text [ english_us ] = "<- ~Assign" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "<- Ö¸¶¨(~A)";
+ Text[ russian ] = "<- Í~àçíà÷èòü";
+ Text[ polish ] = "<- Przypis~z";
+ Text[ japanese ] = "<- ”z’u(~A)";
+ Text[ chinese_traditional ] = "<- «ü©w(~A)";
+ Text[ arabic ] = "ÊÚííä<- ";
+ Text[ greek ] = "<- ÊáôÜôáîç";
+ Text[ korean ] = "<- ÁöÁ¤(~A)";
+ Text[ turkish ] = "<- Ata";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton BT_EDIT_STYLE
+ {
+ Pos = MAP_APPFONT ( 186 , 112 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Bearbeiten" ;
+ Text [ ENGLISH ] = "~Edit" ;
+ TabStop = TRUE ;
+ Text[ english_us ] = "~Edit";
+ Text[ portuguese ] = "~Editar";
+ Text[ russian ] = "~Ïðàâêà";
+ Text[ dutch ] = "~Bewerken";
+ Text[ french ] = "Modifier";
+ Text[ spanish ] = "~Editar";
+ Text[ italian ] = "~Modifica";
+ Text[ danish ] = "Rediger";
+ Text[ swedish ] = "~Redigera";
+ Text[ polish ] = "~Edytuj";
+ Text[ portuguese_brazilian ] = "~Edit";
+ Text[ japanese ] = "•ÒW(~E)";
+ Text[ chinese_simplified ] = "±à¼­(~E)";
+ Text[ chinese_traditional ] = "½s¿è(~E)";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ greek ] = "Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý(~E)";
+ Text[ turkish ] = "Düzenle";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_FORMAT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 248 , 129 ) ;
+ Text = "Zuordnung" ;
+ Text [ ENGLISH ] = "Assignment" ;
+ Text[ english_us ] = "Assignment";
+ Text[ portuguese ] = "Atribuição";
+ Text[ russian ] = "Íàçíà÷åíèå";
+ Text[ dutch ] = "Toewijzing";
+ Text[ french ] = "Assignation";
+ Text[ spanish ] = "Asignación";
+ Text[ italian ] = "Assegnazione";
+ Text[ danish ] = "Tildel";
+ Text[ swedish ] = "Tilldelning";
+ Text[ polish ] = "Przypisanie";
+ Text[ portuguese_brazilian ] = "Layout";
+ Text[ japanese ] = "”z’u";
+ Text[ chinese_simplified ] = "Ö¸¶¨";
+ Text[ chinese_traditional ] = "«ü©w";
+ Text[ arabic ] = "ÊÚííä";
+ Text[ greek ] = "Áíôéóôïß÷éóç";
+ Text[ korean ] = "ÁöÁ¤";
+ Text[ turkish ] = "Atama";
+ Text[ language_user1 ] = " ";
+ };
+};
+ModalDialog DLG_ADD_IDX_STYLES
+{
+ HelpId = HID_DLG_ADD_IDX_STYLES;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 350 , 200 ) ;
+ Text = "Vorlage zuweisen" ;
+ Text [ ENGLISH ] = "Assign styles" ;
+ Moveable = TRUE ;
+ Control TR_HEADER
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 276 , 164 ) ;
+ Border = TRUE;
+ TabStop = TRUE;
+ Window HB_STYLES
+ {
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 276 , 20 ) ;
+ };
+ Control TLB_STYLES
+ {
+ Pos = MAP_APPFONT ( 0 , 20 ) ;
+ Size = MAP_APPFONT ( 276 , 132 ) ;
+ Border = TRUE;
+ };
+ };
+ PushButton PB_LEFT
+ {
+ Pos = MAP_APPFONT ( 12 , 182 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~<<";
+ };
+ PushButton PB_RIGHT
+ {
+ Pos = MAP_APPFONT ( 65 , 182 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~>>";
+ };
+ GroupBox GB_STYLES
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 288 , 194 ) ;
+ Text = "~Vorlagen";
+ Text [English] = "Styles";
+ Text[ english_us ] = "Styl~es";
+ Text[ portuguese ] = "E~stilos";
+ Text[ russian ] = "Ñòèëè";
+ Text[ greek ] = "Ðñüôõðá";
+ Text[ dutch ] = "~Opmaakprofielen";
+ Text[ french ] = "~Styles";
+ Text[ spanish ] = "~Estilos";
+ Text[ italian ] = "~Modelli";
+ Text[ danish ] = "Typografi";
+ Text[ swedish ] = "Mallar";
+ Text[ polish ] = "Szablony";
+ Text[ portuguese_brazilian ] = "Styles";
+ Text[ japanese ] = "½À²Ù(~E)";
+ Text[ korean ] = "À¯Çü(~E)";
+ Text[ chinese_simplified ] = "Ñùʽ(~E)";
+ Text[ chinese_traditional ] = "¼Ë¦¡(~E)";
+ Text[ arabic ] = "ÃäãÇØ";
+ Text[ turkish ] = "Þablonlar";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 297 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 297 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 297 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ String ST_HB_FIRST
+ {
+ Text = "Nicht zugewiesen";
+ Text [English] = "Not applied";
+ Text[ english_us ] = "Not applied";
+ Text[ portuguese ] = "Não aplicado";
+ Text[ russian ] = "Íå ïðèìåíåíî";
+ Text[ greek ] = "Äåí Ý÷åé ãßíåé áíôéóôïß÷éóç";
+ Text[ dutch ] = "Niet toegewezen";
+ Text[ french ] = "Non assigné";
+ Text[ spanish ] = "No asignado";
+ Text[ italian ] = "Non applicato";
+ Text[ danish ] = "Ikke tildelt";
+ Text[ swedish ] = "Inte tilldelat";
+ Text[ polish ] = "Nie przypisany";
+ Text[ portuguese_brazilian ] = "Not applied";
+ Text[ japanese ] = "“K—p‚µ‚È‚¢";
+ Text[ korean ] = "Àû¿ëµÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Text[ chinese_simplified ] = "²»ÒªÖ¸¶¨";
+ Text[ chinese_traditional ] = "¤£«ü©w";
+ Text[ arabic ] = "ÚÏã ÇáÊØÈíÞ";
+ Text[ turkish ] = "Uygulanmadý";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ english_us ] = "Assign Styles";
+ Text[ portuguese ] = "Aplicar estilos";
+ Text[ russian ] = "Íàçíà÷èòü ñòèëè";
+ Text[ greek ] = "Áíôéóôïß÷éóç ðñüôõðïõ";
+ Text[ dutch ] = "Opmaakprofiel toewijzen";
+ Text[ french ] = "Assigner le style";
+ Text[ spanish ] = "Asignar estilos";
+ Text[ italian ] = "Assegna modello";
+ Text[ danish ] = "Tildel typografi";
+ Text[ swedish ] = "Tilldela mall";
+ Text[ polish ] = "Przypisz styl";
+ Text[ portuguese_brazilian ] = "Assign styles";
+ Text[ japanese ] = "½À²Ù‚Ì“K—p";
+ Text[ korean ] = "ÁöÁ¤ À¯Çü";
+ Text[ chinese_simplified ] = "Ö¸¶¨Ñùʽ";
+ Text[ chinese_traditional ] = "«ü©w¼Ë¦¡";
+ Text[ arabic ] = "ÊÚííä ÇáÃäãÇØ";
+ Text[ turkish ] = "Þablon ata";
+ Text[ language_user1 ] = " ";
+};
+/*-----------------------------------------------------------
+
+-----------------------------------------------------------*/
+ModalDialog DLG_CREATE_AUTOMARK
+{
+ HelpId = HID_DLG_CREATE_AUTOMARK;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 350 , 200 ) ;
+ Text = "Konkordanzdatei bearbeiten" ;
+ Text [ ENGLISH ] = "Edit concordance file" ;
+ Moveable = TRUE ;
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 297 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 297 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 297 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Control BB_ENTRIES
+ {
+ Pos = MAP_APPFONT ( 12 , 18 ) ;
+ Size = MAP_APPFONT ( 276 , 175 ) ;
+ TabStop = TRUE ;
+ Border = TRUE;
+ String ST_SEARCH
+ {
+ Text = "Suchbegriff" ;
+ Text [ ENGLISH ] = "Search entry" ;
+ Text[ english_us ] = "Search term";
+ Text[ portuguese ] = "Expressão procurada";
+ Text[ russian ] = "Èñêîìîå ïîíÿòèå";
+ Text[ greek ] = "¼ñïò áíáæÞôçóçò";
+ Text[ dutch ] = "Zoekbegrip";
+ Text[ french ] = "Élément recherché";
+ Text[ spanish ] = "Término de búsqueda";
+ Text[ italian ] = "Voce cercata";
+ Text[ danish ] = "Søgeord";
+ Text[ swedish ] = "Sökord";
+ Text[ polish ] = "Szukany wyraz";
+ Text[ portuguese_brazilian ] = "Search entry";
+ Text[ japanese ] = "ŒŸõ·°";
+ Text[ korean ] = "Á¶È¸ ¿ë¾î";
+ Text[ chinese_simplified ] = "ËÑÑ°ÌõÄ¿";
+ Text[ chinese_traditional ] = "·j´M±ø¥Ø";
+ Text[ arabic ] = "ãÕØáÍ ÇáÈÍË";
+ Text[ turkish ] = "Arama terimi";
+ };
+ String ST_ALTERNATIVE
+ {
+ Text = "Alternativeintrag" ;
+ Text [ ENGLISH ] = "Alternative entry" ;
+ Text[ english_us ] = "Alternative entry";
+ Text[ portuguese ] = "Entrada alternativa";
+ Text[ russian ] = "Àëüòåðíàòèâíûé ýëåìåíò";
+ Text[ greek ] = "ÅíáëëáêôéêÞ åããñáöÞ";
+ Text[ dutch ] = "Alternatief item";
+ Text[ french ] = "Entrée de remplacement";
+ Text[ spanish ] = "Entrada alternativa";
+ Text[ italian ] = "Voce alternativa";
+ Text[ danish ] = "Alternativt element";
+ Text[ swedish ] = "Alternativpost";
+ Text[ polish ] = "Wpis alternatywny";
+ Text[ portuguese_brazilian ] = "Alternative entry";
+ Text[ japanese ] = "‚Ç‚¿‚ç‚©ˆê•û‚ð‘I‚Ô";
+ Text[ korean ] = "´ëü Ç׸ñ";
+ Text[ chinese_simplified ] = "Ñ¡ÔñÌõÄ¿";
+ Text[ chinese_traditional ] = "¨ä¥¦±ø¥Ø";
+ Text[ arabic ] = "ÅÏÎÇá ÈÏíá";
+ Text[ turkish ] = "Alternatif giriþ";
+ };
+ String ST_PRIMKEY
+ {
+ Text = "1. Schlüssel" ;
+ Text [ ENGLISH ] = "1. Key" ;
+ Text[ english_us ] = "1st key";
+ Text[ portuguese ] = "1ª chave";
+ Text[ russian ] = "1-é êëþ÷";
+ Text[ greek ] = "1. Êëåéäß";
+ Text[ dutch ] = "1e sleutel";
+ Text[ french ] = "1re clé";
+ Text[ spanish ] = "1era clave";
+ Text[ italian ] = "1° criterio";
+ Text[ danish ] = "1. nøgle";
+ Text[ swedish ] = "1 nyckel";
+ Text[ polish ] = "1 klucz";
+ Text[ portuguese_brazilian ] = "1. Key";
+ Text[ japanese ] = "1. ·°";
+ Text[ korean ] = "1.Å°";
+ Text[ chinese_simplified ] = "1. Ö÷¹Ø¼ü×Ö";
+ Text[ chinese_traditional ] = "²Ä¤@­Ó¥DÃöÁä¦r";
+ Text[ arabic ] = "ÇáãÝÊÇÍ ÇáÃæá";
+ Text[ turkish ] = "1. Anahtar";
+ };
+ String ST_SECKEY
+ {
+ Text = "2. Schlüssel" ;
+ Text [ ENGLISH ] = "2. Key" ;
+ Text[ english_us ] = "2nd key";
+ Text[ portuguese ] = "2ª chave";
+ Text[ russian ] = "2-é êëþ÷";
+ Text[ greek ] = "2. Êëåéäß";
+ Text[ dutch ] = "2e sleutel";
+ Text[ french ] = "2ème clé";
+ Text[ spanish ] = "2da llave";
+ Text[ italian ] = "2° criterio";
+ Text[ danish ] = "2. nøgle";
+ Text[ swedish ] = "2 nyckel";
+ Text[ polish ] = "2 klucz";
+ Text[ portuguese_brazilian ] = "2. Key";
+ Text[ japanese ] = "2. ·°";
+ Text[ korean ] = "2.Å°";
+ Text[ chinese_simplified ] = "2. Ö÷¹Ø¼ü×Ö";
+ Text[ chinese_traditional ] = "²Ä¤G­Ó¥DÃöÁä¦r";
+ Text[ arabic ] = "ÇáãÝÊÇÍ ÇáËÇäí";
+ Text[ turkish ] = "2. Anahtar";
+ };
+ String ST_COMMENT
+ {
+ Text = "Kommentar" ;
+ Text [ ENGLISH ] = "Comment" ;
+ Text[ english_us ] = "Comment";
+ Text[ portuguese ] = "Comentário";
+ Text[ russian ] = "Êîììåíòàðèé";
+ Text[ greek ] = "Ó÷üëéï";
+ Text[ dutch ] = "Commentaar";
+ Text[ french ] = "Commentaire";
+ Text[ spanish ] = "Comentario";
+ Text[ italian ] = "Commento";
+ Text[ danish ] = "Kommentar";
+ Text[ swedish ] = "Kommentar";
+ Text[ polish ] = "Komentarz";
+ Text[ portuguese_brazilian ] = "Comment";
+ Text[ japanese ] = "ºÒÝÄ";
+ Text[ korean ] = "¸Þ¸ð";
+ Text[ chinese_simplified ] = "×¢½â";
+ Text[ chinese_traditional ] = "ª`¸Ñ";
+ Text[ arabic ] = "ÊÚáíÞ";
+ Text[ turkish ] = "Açýklama";
+ };
+ String ST_CASESENSITIVE
+ {
+ Text = "Exakt" ;
+ Text [ ENGLISH ] = "Match case" ;
+ Text[ english_us ] = "Match case";
+ Text[ portuguese ] = "Respeitar maiúsc./minúsculas";
+ Text[ russian ] = "Òî÷íûé ïîèñê";
+ Text[ greek ] = "Áêñéâþò";
+ Text[ dutch ] = "Exact";
+ Text[ french ] = "Respecter la casse";
+ Text[ spanish ] = "Coincidencia exacta";
+ Text[ italian ] = "Ricerca esatta";
+ Text[ danish ] = "Eksakt";
+ Text[ swedish ] = "Exakt";
+ Text[ polish ] = "Dok³adnie";
+ Text[ portuguese_brazilian ] = "Match case";
+ Text[ japanese ] = "Š®‘S‚É“¯ˆê";
+ Text[ korean ] = "´ë/¼Ò¹®ÀÚ ±¸ºÐ";
+ Text[ chinese_simplified ] = "¾«È·";
+ Text[ chinese_traditional ] = "ºëÚÌ";
+ Text[ arabic ] = "ãØÇÈÞÉ ÍÇáÉ ÇáÃÍÑÝ";
+ Text[ turkish ] = "Büyük/küçük harf duyarlý";
+ };
+ String ST_WORDONLY
+ {
+ Text = "Ganze Wörter" ;
+ Text [ ENGLISH ] = "Whole words" ;
+ Text[ english_us ] = "Word only";
+ Text[ portuguese ] = "Palavras inteiras";
+ Text[ russian ] = "Âñå ñëîâî";
+ Text[ greek ] = "Ïëüêëçñåò ëÝîåéò";
+ Text[ dutch ] = "Hele woorden";
+ Text[ french ] = "Mots entiers";
+ Text[ spanish ] = "Palabras completas";
+ Text[ italian ] = "Parole intere";
+ Text[ danish ] = "Hele ord";
+ Text[ swedish ] = "Hela ord";
+ Text[ polish ] = "Ca³e s³owa";
+ Text[ portuguese_brazilian ] = "Whole words";
+ Text[ japanese ] = "Š®‘S‚È’PŒê";
+ Text[ korean ] = "´Ü¾î ¸¸";
+ Text[ chinese_simplified ] = "Õû¸ö´Ê";
+ Text[ chinese_traditional ] = "§¹¾ãªº¦rµü";
+ Text[ arabic ] = "ßáãÇÊ ßÇãáÉ";
+ Text[ turkish ] = "Tam sözcükler";
+ };
+ String ST_TRUE
+ {
+ Text = "Ja" ;
+ Text [ ENGLISH ] = "Yes" ;
+ Text[ english_us ] = "Yes";
+ Text[ portuguese ] = "Sim";
+ Text[ russian ] = "Äà";
+ Text[ greek ] = "Íáé";
+ Text[ dutch ] = "Ja";
+ Text[ french ] = "Oui";
+ Text[ spanish ] = "Sí";
+ Text[ italian ] = "Sì";
+ Text[ danish ] = "Ja";
+ Text[ swedish ] = "Ja";
+ Text[ polish ] = "Tak";
+ Text[ portuguese_brazilian ] = "Yes";
+ Text[ japanese ] = "‚Í‚¢";
+ Text[ korean ] = "¿¹";
+ Text[ chinese_simplified ] = "ÊÇ";
+ Text[ chinese_traditional ] = "¬O";
+ Text[ arabic ] = "äÚã";
+ Text[ turkish ] = "Evet";
+ };
+ String ST_FALSE
+ {
+ Text = "Nein" ;
+ Text [ ENGLISH ] = "No" ;
+ Text[ english_us ] = "No";
+ Text[ portuguese ] = "Não";
+ Text[ russian ] = "Íåò";
+ Text[ greek ] = "¼÷é";
+ Text[ dutch ] = "Nee";
+ Text[ french ] = "Non";
+ Text[ spanish ] = "No";
+ Text[ italian ] = "No";
+ Text[ danish ] = "Nej";
+ Text[ swedish ] = "Nej";
+ Text[ polish ] = "Nie";
+ Text[ portuguese_brazilian ] = "No";
+ Text[ japanese ] = "‚¢‚¢‚¦";
+ Text[ korean ] = "¾Æ´Ï¿À";
+ Text[ chinese_simplified ] = "·ñ";
+ Text[ chinese_traditional ] = "§_";
+ Text[ arabic ] = "áÇ";
+ Text[ turkish ] = "Hayýr";
+ };
+ };
+ GroupBox GB_ENTRIES
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 288, 194 ) ;
+ Text = "Einträge" ;
+ Text [ ENGLISH ] = "Entries" ;
+ Text[ english_us ] = "Entries";
+ Text[ portuguese ] = "Entradas";
+ Text[ russian ] = "Ýëåìåíòû";
+ Text[ greek ] = "ÅããñáöÝò";
+ Text[ dutch ] = "Items";
+ Text[ french ] = "Entrées";
+ Text[ spanish ] = "Entradas";
+ Text[ italian ] = "Voci";
+ Text[ danish ] = "Elementer";
+ Text[ swedish ] = "Poster";
+ Text[ polish ] = "Wpisy";
+ Text[ portuguese_brazilian ] = "Entries";
+ Text[ japanese ] = "€–Ú";
+ Text[ korean ] = "Ç׸ñ";
+ Text[ chinese_simplified ] = "ÌõÄ¿";
+ Text[ chinese_traditional ] = "±ø¥Ø";
+ Text[ arabic ] = "ÅÏÎÇáÇÊ";
+ Text[ turkish ] = "Giriþler";
+ };
+ Text[ english_us ] = "Edit Concordance File";
+ Text[ portuguese ] = "Editar ficheiro de concordância";
+ Text[ russian ] = "Ïðàâêà ôàéëà-êîíêîðäàíñà";
+ Text[ greek ] = "Åðåîåñãáóßá áñ÷åßïõ óõìöùíßáò";
+ Text[ dutch ] = "Concordantiebestand bewerken";
+ Text[ french ] = "Édition du fichier de concordance";
+ Text[ spanish ] = "Editar archivo de concordancia";
+ Text[ italian ] = "Modifica file di concordanza";
+ Text[ danish ] = "Rediger konkordansfil";
+ Text[ swedish ] = "Redigera konkordansfil";
+ Text[ polish ] = "Edytuj plik konkordancji";
+ Text[ portuguese_brazilian ] = "Edit concordance file";
+ Text[ japanese ] = "—pŒêõˆø̧²Ù‚Ì•ÒW";
+ Text[ korean ] = "ÀÏÄ¡ÇÏ´Â ÆÄÀÏ ÆíÁý";
+ Text[ chinese_simplified ] = "±à¼­Óï»ãË÷ÒýÎļþ";
+ Text[ chinese_traditional ] = "½s¿è»y¶×¯Á¤ÞÀÉ®×";
+ Text[ arabic ] = "ÊÍÑíÑ ãáÝ ÝåÑÓ ÃÈÌÏí";
+ Text[ turkish ] = "Uyumluluk dosyasýný düzenle";
+};
+
diff --git a/sw/source/ui/index/idxmrk.cxx b/sw/source/ui/index/idxmrk.cxx
new file mode 100644
index 000000000000..90d45881f0be
--- /dev/null
+++ b/sw/source/ui/index/idxmrk.cxx
@@ -0,0 +1,1892 @@
+/*************************************************************************
+ *
+ * $RCSfile: idxmrk.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
+#include <com/sun/star/beans/PropertyValue.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+
+#include "helpid.h"
+#define _SVSTDARR_STRINGSSORT
+#include <svtools/svstdarr.hxx>
+
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _TXTCMP_HXX //autogen
+#include <svtools/txtcmp.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _IDXMRK_HXX
+#include <idxmrk.hxx>
+#endif
+#ifndef _TXTTXMRK_HXX
+#include <txttxmrk.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _TOXMGR_HXX
+#include <toxmgr.hxx>
+#endif
+#ifndef _MULTMRK_HXX
+#include <multmrk.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _INDEX_HRC
+#include <index.hrc>
+#endif
+#ifndef _IDXMRK_HRC
+#include <idxmrk.hrc>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#include <utlui.hrc>
+#ifndef _SWCONT_HXX
+#include <swcont.hxx>
+#endif
+#ifndef _AUTHFLD_HXX
+#include <authfld.hxx>
+#endif
+
+#define POS_CONTENT 0
+#define POS_INDEX 1
+#define POS_USER 2
+
+static sal_uInt16 nTypePos = 1; // TOX_INDEX as standard
+static sal_uInt16 nKey1Pos = USHRT_MAX;
+
+static sal_uInt16 nKey2Pos = USHRT_MAX;
+
+using namespace ::rtl;
+using namespace ::utl;
+using namespace ::com::sun::star;
+#define C2U(cChar) OUString::createFromAscii(cChar)
+/*--------------------------------------------------------------------
+ Beschreibung: Dialog zum Einfuegen einer Verzeichnismarkierung
+ --------------------------------------------------------------------*/
+SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent,
+ sal_Bool bNewDlg,
+ const ResId& rResId ) :
+ Window(pParent, rResId),
+ bDel(sal_False),
+ bNewMark(bNewDlg),
+ pTOXMgr(0),
+ pSh(0),
+ aOKBT(this, SW_RES(BT_OK )),
+ aCancelBT(this, SW_RES(BT_CANCEL )),
+ aHelpBT(this, SW_RES(BT_HELP )),
+ aDelBT(this, SW_RES(BT_DEL )),
+ aNewBT(this, SW_RES(BT_NEW )),
+ aPrevBT(this, SW_RES(BT_PREV )),
+ aPrevSameBT(this,SW_RES(BT_PREVSAME)),
+ aNextBT(this, SW_RES(BT_NXT )),
+ aNextSameBT(this,SW_RES(BT_NXTSAME)),
+ aTypeFT (this, SW_RES(LBL_INDEX )),
+ aTypeDCB(this, SW_RES(DCB_INDEX )),
+ aEntryFT(this, SW_RES(LBL_ENTRY )),
+ aEntryED(this, SW_RES(SL_ENTRY )),
+ aKeyFT(this, SW_RES(LBL_KEY )),
+ aKeyDCB(this, SW_RES(DCB_KEY )),
+ aKey2FT(this, SW_RES(LBL_KEY2 )),
+ aKey2DCB(this, SW_RES(DCB_KEY2 )),
+ aLevelFT(this, SW_RES(LBL_LEVEL )),
+ aLevelED(this, SW_RES(SL_LEVEL )),
+ aMainEntryCB(this, SW_RES(CB_MAIN_ENTRY )),
+ aApplyToAllCB(this,SW_RES(CB_APPLY_TO_ALL)),
+ aSearchCaseSensitiveCB(this, SW_RES(CB_CASESENSITIVE )),
+ aSearchCaseWordOnlyCB(this, SW_RES(CB_WORDONLY )),
+ aIndexGB(this, SW_RES(GB_INDEX )),
+ bSelected(sal_False)
+{
+ SetStyle(GetStyle()|WB_DIALOGCONTROL);
+ FreeResource();
+ aOKBT .SetHelpId(HID_INSERT_IDX_MRK_OK );
+ aCancelBT .SetHelpId(HID_INSERT_IDX_MRK_CLOSE );
+ aDelBT .SetHelpId(HID_INSERT_IDX_MRK_DELETE );
+ aNewBT .SetHelpId(HID_INSERT_IDX_MRK_NEW );
+ aPrevBT .SetHelpId(HID_INSERT_IDX_MRK_PREV );
+ aPrevSameBT .SetHelpId(HID_INSERT_IDX_MRK_PREV_SAME );
+ aNextBT .SetHelpId(HID_INSERT_IDX_MRK_NEXT );
+ aNextSameBT .SetHelpId(HID_INSERT_IDX_MRK_NEXT_SAME );
+ aTypeDCB .SetHelpId(HID_INSERT_IDX_MRK_TYPE );
+ aEntryED .SetHelpId(HID_INSERT_IDX_MRK_ENTRY );
+ aKeyDCB .SetHelpId(HID_INSERT_IDX_MRK_PRIM_KEY );
+ aKey2DCB .SetHelpId(HID_INSERT_IDX_MRK_SEC_KEY );
+ aLevelED .SetHelpId(HID_INSERT_IDX_MRK_LEVEL );
+ aMainEntryCB .SetHelpId(HID_INSERT_IDX_MRK_MAIN_ENTRY);
+ aApplyToAllCB .SetHelpId(HID_INSERT_IDX_MRK_APPLY_ALL );
+ aSearchCaseSensitiveCB.SetHelpId( HID_INSERT_IDX_MRK_SRCH_CASESENSITIVE );
+ aSearchCaseWordOnlyCB.SetHelpId( HID_INSERT_IDX_MRK_SRCH_WORDONLY );
+
+
+ GetParent()->SetText( SW_RESSTR( bNewMark ? STR_IDXMRK_INSERT : STR_IDXMRK_EDIT));
+
+ aDelBT.SetClickHdl(LINK(this,SwIndexMarkDlg, DelHdl));
+ aPrevBT.SetClickHdl(LINK(this,SwIndexMarkDlg, PrevHdl));
+ aPrevSameBT.SetClickHdl(LINK(this,SwIndexMarkDlg, PrevSameHdl));
+ aNextBT.SetClickHdl(LINK(this,SwIndexMarkDlg, NextHdl));
+ aNextSameBT.SetClickHdl(LINK(this,SwIndexMarkDlg, NextSameHdl));
+ //aTypeDCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, ModifyHdl));
+ aTypeDCB.SetSelectHdl(LINK(this,SwIndexMarkDlg, ModifyHdl));
+ aKeyDCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, KeyDCBModifyHdl));
+ aOKBT.SetClickHdl(LINK(this,SwIndexMarkDlg, InsertHdl));
+ aCancelBT.SetClickHdl(LINK(this,SwIndexMarkDlg, CloseHdl));
+ aEntryED.SetModifyHdl(LINK(this,SwIndexMarkDlg, ModifyHdl));
+ aNewBT.SetClickHdl(LINK(this, SwIndexMarkDlg, NewUserIdxHdl));
+ aApplyToAllCB.SetClickHdl(LINK(this, SwIndexMarkDlg, SearchTypeHdl));
+
+ if(bNewMark)
+ {
+ aDelBT.Hide();
+ ImageList aTempList(SW_RES(IMG_NAVI_ENTRYBMP));
+ aNewBT.SetImage(aTempList.GetImage(SID_SW_START + CONTENT_TYPE_INDEX));
+ }
+ else
+ {
+ aNewBT.Hide();
+ OKButton aTmp(this, WB_HIDE);
+ aOKBT.SetText( aTmp.GetText() );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Controls neu initialisieren mit der aktuellen
+ Markierung
+ --------------------------------------------------------------------*/
+
+
+void SwIndexMarkDlg::InitControls()
+{
+ DBG_ASSERT(pSh && pTOXMgr, "Shell nicht da?")
+ // Inhalts-Verzeichnis
+ const SwTOXType* pType = pTOXMgr->GetTOXType(TOX_CONTENT, 0);
+ ASSERT(pType, "Kein Verzeichnistyp !!");
+ String sTmpTypeSelection;
+ if(aTypeDCB.GetSelectEntryCount())
+ sTmpTypeSelection = aTypeDCB.GetSelectEntry();
+ aTypeDCB.Clear();
+ aTypeDCB.InsertEntry(pType->GetTypeName());
+
+ // Stichwort-Verzeichnis
+ pType = pTOXMgr->GetTOXType(TOX_INDEX, 0);
+ ASSERT(pType, "Kein Verzeichnistyp !!");
+ aTypeDCB.InsertEntry(pType->GetTypeName());
+
+ // Benutzerverzeichnisse
+ sal_uInt16 nCount = pSh->GetTOXTypeCount(TOX_USER);
+ for(sal_uInt16 i=0; i< nCount; ++i)
+ aTypeDCB.InsertEntry( pSh->GetTOXType(TOX_USER, i)->GetTypeName() );
+
+ // KeyWords Primary einlesen
+ SvStringsSort aArr;
+ nCount = pSh->GetTOIKeys( TOI_PRIMARY, aArr );
+ for(i=0; i < nCount; ++i)
+ aKeyDCB.InsertEntry( *aArr[ i ] );
+
+ // KeyWords Secondary einlesen
+ nCount = pSh->GetTOIKeys( TOI_SECONDARY, aArr );
+ for(i=0; i < nCount; ++i)
+ aKey2DCB.InsertEntry( *aArr[ i ] );
+
+ // Aktueller Eintrag
+ const SwTOXMark* pMark = pTOXMgr->GetCurTOXMark();
+ if( pMark && !bNewMark)
+ {
+ // Controls-Handling
+
+ // nur wenn mehr als eins vorhanden
+ // wenn gleich landet es auf dem gleichen Eintrag
+ pSh->SttCrsrMove();
+
+ const SwTOXMark* pMoveMark;
+ sal_Bool bShow = sal_False;
+
+ pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_PRV );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_NXT ), bShow = sal_True;
+ aPrevBT.Enable( pMoveMark != pMark );
+ pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_NXT );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_PRV ), bShow = sal_True;
+ aNextBT.Enable( pMoveMark != pMark );
+ if( bShow )
+ {
+ aPrevBT.Show();
+ aNextBT.Show();
+ bShow = sal_False;
+ }
+
+ pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_SAME_PRV );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_SAME_NXT ), bShow = sal_True;
+ aPrevSameBT.Enable( pMoveMark != pMark );
+ pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_SAME_NXT );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_SAME_PRV ), bShow = sal_True;
+ aNextSameBT.Enable( pMoveMark != pMark );
+ if( bShow )
+ {
+ aNextSameBT.Show();
+ aPrevSameBT.Show();
+ }
+ pSh->EndCrsrMove();
+
+ aTypeFT.Show();
+
+ aTypeDCB.Enable(sal_False);
+ aTypeFT.Enable(sal_False);
+
+ UpdateDialog();
+ }
+ else
+ { // aktuelle Selektion (1.Element) anzeigen ????
+ sal_uInt16 nCnt = pSh->GetCrsrCnt();
+ if (nCnt < 2)
+ {
+ bSelected = !pSh->HasSelection();
+ aOrgStr = pSh->GetView().GetSelectionTextParam(sal_True, sal_False, sal_True);
+ aEntryED.SetText(aOrgStr);
+
+ //alle gleichen Eintraege aufzunehmen darf nur im Body und auch da nur
+ //bei vorhandener einfacher Selektion erlaubt werden
+ const sal_uInt16 nFrmType = pSh->GetFrmType(0,sal_True);
+ aApplyToAllCB.Show();
+ aSearchCaseSensitiveCB.Show();
+ aSearchCaseWordOnlyCB.Show();
+ aApplyToAllCB.Enable(0 != aOrgStr.Len() &&
+ 0 == (nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FLY_ANY )));
+ SearchTypeHdl(&aApplyToAllCB);
+ }
+
+ // Verzeichnistyp ist default
+ if( sTmpTypeSelection.Len() &&
+ LISTBOX_ENTRY_NOTFOUND != aTypeDCB.GetEntryPos( sTmpTypeSelection ) )
+ aTypeDCB.SelectEntry(sTmpTypeSelection);
+ else
+ aTypeDCB.SelectEntry(aTypeDCB.GetEntry(nTypePos));
+ ModifyHdl(&aTypeDCB);
+ }
+}
+/* -----------------07.09.99 10:43-------------------
+ Change the content of aEntryED if text is selected
+ --------------------------------------------------*/
+
+void SwIndexMarkDlg::Activate()
+{
+ // aktuelle Selektion (1.Element) anzeigen ????
+ if(bNewMark)
+ {
+ sal_uInt16 nCnt = pSh->GetCrsrCnt();
+ if (nCnt < 2)
+ {
+ bSelected = !pSh->HasSelection();
+ aOrgStr = pSh->GetView().GetSelectionTextParam(sal_True, sal_False, sal_True);
+ aEntryED.SetText(aOrgStr);
+
+ //alle gleichen Eintraege aufzunehmen darf nur im Body und auch da nur
+ //bei vorhandener einfacher Selektion erlaubt werden
+ const sal_uInt16 nFrmType = pSh->GetFrmType(0,sal_True);
+ aApplyToAllCB.Show();
+ aSearchCaseSensitiveCB.Show();
+ aSearchCaseWordOnlyCB.Show();
+ aApplyToAllCB.Enable(0 != aOrgStr.Len() &&
+ 0 == (nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FLY_ANY )));
+ SearchTypeHdl(&aApplyToAllCB);
+ }
+ ModifyHdl(&aTypeDCB);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ok-Button auswerten
+ --------------------------------------------------------------------*/
+void SwIndexMarkDlg::Apply()
+{
+ InsertUpdate();
+ if(bSelected)
+ pSh->ResetSelect(0, sal_False);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aenderungen uebernehmen
+ --------------------------------------------------------------------*/
+
+
+void SwIndexMarkDlg::InsertUpdate()
+{
+ pSh->StartUndo(UNDO_INSATTR);
+ pSh->StartAllAction();
+
+ if( bNewMark )
+ InsertMark();
+ else if( !pSh->HasReadonlySel() )
+ {
+ if( bDel )
+ pTOXMgr->DeleteTOXMark();
+ else if( pTOXMgr->GetCurTOXMark() )
+ UpdateMark();
+ }
+
+ pSh->EndAllAction();
+ pSh->EndUndo(UNDO_INSATTR);
+
+ if((nTypePos = aTypeDCB.GetEntryPos(aTypeDCB.GetSelectEntry())) == LISTBOX_ENTRY_NOTFOUND)
+ nTypePos = 0;
+
+ nKey1Pos = aKeyDCB.GetEntryPos(aKeyDCB.GetText());
+ nKey2Pos = aKey2DCB.GetEntryPos(aKey2DCB.GetText());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Marke einfuegen
+ --------------------------------------------------------------------*/
+void lcl_SelectSameStrings(SwWrtShell& rSh, BOOL bWordOnly, BOOL bCaseSensitive)
+{
+ rSh.Push();
+ SearchParam aParam( rSh.GetSelTxt(), SearchParam::SRCH_NORMAL,
+ TRUE, FALSE, FALSE );
+
+ aParam.SetCaseSensitive( bCaseSensitive );
+ aParam.SetSrchWordOnly( bWordOnly );
+
+ rSh.ClearMark();
+ ULONG nRet = rSh.Find( aParam, DOCPOS_START, DOCPOS_END,
+ (FindRanges)(FND_IN_SELALL|FND_IN_BODYONLY), FALSE );
+}
+
+
+void SwIndexMarkDlg::InsertMark()
+{
+ sal_uInt16 nPos = aTypeDCB.GetEntryPos(aTypeDCB.GetSelectEntry());
+ TOXTypes eType = nPos == POS_CONTENT ? TOX_CONTENT :
+ nPos == POS_INDEX ? TOX_INDEX : TOX_USER;
+
+ SwTOXMarkDescription aDesc(eType);
+
+ sal_uInt16 nLevel = (sal_uInt16)aLevelED.Denormalize(aLevelED.GetValue());
+ switch(nPos)
+ {
+ case POS_CONTENT : break;
+ case POS_INDEX: // Stichwortverzeichnismarke
+ {
+ UpdateKeyBoxes();
+ String aPrim(aKeyDCB.GetText());
+ String aSec(aKey2DCB.GetText());
+ aDesc.SetPrimKey(aPrim);
+ aDesc.SetSecKey(aSec);
+ aDesc.SetMainEntry(aMainEntryCB.IsChecked());
+ }
+ break;
+ default: // Userdefinedverz.-Marke
+ {
+ String aName(aTypeDCB.GetSelectEntry());
+ aDesc.SetTOUName(aName);
+ }
+ }
+ if (aOrgStr != aEntryED.GetText())
+ aDesc.SetAltStr(aEntryED.GetText());
+ BOOL bApplyAll = aApplyToAllCB.IsChecked();
+ BOOL bWordOnly = aApplyToAllCB.IsChecked();
+ BOOL bCaseSensitive = aSearchCaseSensitiveCB.IsChecked();
+
+ pSh->StartAllAction();
+ // hier muessen alle gleichen Strings selektiert werden
+ // damit der Eintrag auf alle gleichen Strings angewandt wird
+ if(bApplyAll)
+ {
+ lcl_SelectSameStrings(*pSh, bWordOnly, bCaseSensitive);
+ }
+ aDesc.SetLevel(nLevel);
+ SwTOXMgr aMgr(pSh);
+ aMgr.InsertTOXMark(aDesc);
+ if(bApplyAll)
+ pSh->Pop(FALSE);
+
+ pSh->EndAllAction();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Marke Updaten
+ --------------------------------------------------------------------*/
+
+
+void SwIndexMarkDlg::UpdateMark()
+{
+ String aAltText(aEntryED.GetText());
+ String* pAltText = aOrgStr != aEntryED.GetText() ? &aAltText : 0;
+ //empty alternative texts are not allowed
+ if(pAltText && !pAltText->Len())
+ return;
+
+ UpdateKeyBoxes();
+
+ sal_uInt16 nPos = aTypeDCB.GetEntryPos(aTypeDCB.GetSelectEntry());
+ TOXTypes eType = TOX_USER;
+ if(POS_CONTENT == nPos)
+ eType = TOX_CONTENT;
+ else if(POS_INDEX == nPos)
+ eType = TOX_INDEX;
+
+ SwTOXMarkDescription aDesc(eType);
+ aDesc.SetLevel(aLevelED.GetValue());
+ if(pAltText)
+ aDesc.SetAltStr(*pAltText);
+
+ String aPrim(aKeyDCB.GetText());
+ if(aPrim.Len())
+ aDesc.SetPrimKey(aPrim);
+ String aSec(aKey2DCB.GetText());
+ if(aSec.Len())
+ aDesc.SetSecKey(aSec);
+ aDesc.SetMainEntry(aMainEntryCB.IsVisible() && aMainEntryCB.IsChecked());
+ pTOXMgr->UpdateTOXMark(aDesc);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Neue Keys eintragen
+ --------------------------------------------------------------------*/
+
+
+void SwIndexMarkDlg::UpdateKeyBoxes()
+{
+ String aKey(aKeyDCB.GetText());
+ sal_uInt16 nPos = aKeyDCB.GetEntryPos(aKey);
+
+ if(nPos == LISTBOX_ENTRY_NOTFOUND && aKey.Len() > 0)
+ { // neuen Key erzeugen
+ aKeyDCB.InsertEntry(aKey);
+ }
+
+ aKey = aKey2DCB.GetText();
+ nPos = aKey2DCB.GetEntryPos(aKey);
+
+ if(nPos == LISTBOX_ENTRY_NOTFOUND && aKey.Len() > 0)
+ { // neuen Key erzeugen
+ aKey2DCB.InsertEntry(aKey);
+ }
+}
+/* -----------------13.10.99 15:10-------------------
+
+ --------------------------------------------------*/
+class SwNewUserIdxDlg : public ModalDialog
+{
+ OKButton aOKPB;
+ CancelButton aCancelPB;
+ HelpButton aHelpPB;
+ GroupBox aNameGB;
+ FixedText aNameFT;
+ Edit aNameED;
+
+ SwIndexMarkDlg* pDlg;
+
+ DECL_LINK( ModifyHdl, Edit*);
+
+ public:
+ SwNewUserIdxDlg(SwIndexMarkDlg* pParent) :
+ ModalDialog(pParent, SW_RES(DLG_NEW_USER_IDX)),
+ pDlg(pParent),
+ aOKPB(this, ResId( PB_OK )),
+ aCancelPB(this, ResId( PB_CANCEL )),
+ aHelpPB(this, ResId( PB_HELP )),
+ aNameGB(this, ResId( GB_NAME )),
+ aNameFT(this, ResId( FT_NAME )),
+ aNameED(this, ResId( ED_NAME ))
+ {
+ FreeResource();
+ aNameED.SetModifyHdl(LINK(this, SwNewUserIdxDlg, ModifyHdl));
+ aOKPB.Enable(sal_False);
+ aNameED.GrabFocus();
+ }
+
+ virtual void Apply();
+ String GetName(){return aNameED.GetText();}
+};
+void SwNewUserIdxDlg::Apply()
+{
+}
+
+IMPL_LINK( SwNewUserIdxDlg, ModifyHdl, Edit*, pEdit)
+{
+ aOKPB.Enable(pEdit->GetText().Len() && !pDlg->IsTOXType(pEdit->GetText()));
+ return 0;
+}
+
+IMPL_LINK( SwIndexMarkDlg, NewUserIdxHdl, Button*, pButton)
+{
+ SwNewUserIdxDlg* pDlg = new SwNewUserIdxDlg(this);
+ if(RET_OK == pDlg->Execute())
+ {
+ String sNewName(pDlg->GetName());
+ aTypeDCB.InsertEntry(sNewName);
+ aTypeDCB.SelectEntry(sNewName);
+ }
+ delete pDlg;
+ return 0;
+}
+/* -----------------------------17.01.00 12:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwIndexMarkDlg, SearchTypeHdl, CheckBox*, pBox)
+{
+ sal_Bool bEnable = pBox->IsChecked() && pBox->IsEnabled();
+ aSearchCaseWordOnlyCB.Enable(bEnable);
+ aSearchCaseSensitiveCB.Enable(bEnable);
+ return 0;
+}
+/* -----------------07.09.99 10:30-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwIndexMarkDlg, InsertHdl, Button *, pButton )
+{
+ Apply();
+ //close the dialog if only one entry is available
+ if(!bNewMark && !aPrevBT.IsVisible() && !aNextBT.IsVisible())
+ CloseHdl(pButton);
+ return 0;
+}
+/* -----------------07.09.99 10:29-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwIndexMarkDlg, CloseHdl, Button *, pButton )
+{
+ if(bNewMark)
+ {
+ sal_uInt16 nSlot = FN_INSERT_IDX_ENTRY_DLG;
+ SfxViewFrame::Current()->GetDispatcher()->Execute(nSlot,
+ SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+ }
+ else
+ {
+ ((SwIndexMarkModalDlg*)GetParent())->EndDialog(RET_CANCEL);
+ }
+ return 0;
+}
+/*--------------------------------------------------------------------
+ Beschreibung: VerzeichnisTyp auswaehlen nur bei Einfuegen
+ --------------------------------------------------------------------*/
+IMPL_LINK( SwIndexMarkDlg, ModifyHdl, ListBox *, pBox )
+{
+ if(&aTypeDCB == pBox)
+ {
+ // Verzeichnistyp setzen
+ sal_uInt16 nPos = aTypeDCB.GetEntryPos(aTypeDCB.GetSelectEntry());
+ sal_Bool bLevelEnable = sal_False,
+ bKeyEnable = sal_False,
+ bSetKey2 = sal_False,
+ bKey2Enable = sal_False;
+ if(nPos == POS_INDEX)
+ {
+ bKeyEnable = sal_True;
+ aKeyDCB.SetText(aKeyDCB.GetEntry(nKey1Pos));
+ if(aKeyDCB.GetText().Len() > 0)
+ {
+ bSetKey2 = bKey2Enable = sal_True;
+ aKey2DCB.SetText(aKey2DCB.GetEntry(nKey2Pos));
+ }
+ }
+ else
+ {
+ bLevelEnable = sal_True;
+ aLevelED.SetMax(MAXLEVEL);
+ aLevelED.SetValue(aLevelED.Normalize(0));
+ bSetKey2 = sal_True;
+ }
+ aLevelFT.Show(bLevelEnable);
+ aLevelED.Show(bLevelEnable);
+ aMainEntryCB.Show(nPos == POS_INDEX);
+
+ aKeyFT.Enable(bKeyEnable);
+ aKeyDCB.Enable(bKeyEnable);
+ if ( bSetKey2 )
+ {
+ aKey2DCB.Enable(bKey2Enable);
+ aKey2FT.Enable(bKey2Enable);
+ }
+ }
+ aOKBT.Enable(aEntryED.GetText().Len() || pSh->GetCrsrCnt(sal_False));
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwIndexMarkDlg, NextHdl, Button *, EMPTYARG )
+{
+ InsertUpdate();
+ pTOXMgr->NextTOXMark();
+ UpdateDialog();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwIndexMarkDlg, NextHdl, Button *, EMPTYARG )
+
+
+IMPL_LINK_INLINE_START( SwIndexMarkDlg, NextSameHdl, Button *, EMPTYARG )
+{
+ InsertUpdate();
+ pTOXMgr->NextTOXMark(sal_True);
+ UpdateDialog();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwIndexMarkDlg, NextSameHdl, Button *, EMPTYARG )
+
+
+IMPL_LINK_INLINE_START( SwIndexMarkDlg, PrevHdl, Button *, EMPTYARG )
+{
+ InsertUpdate();
+ pTOXMgr->PrevTOXMark();
+ UpdateDialog();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwIndexMarkDlg, PrevHdl, Button *, EMPTYARG )
+
+
+IMPL_LINK_INLINE_START( SwIndexMarkDlg, PrevSameHdl, Button *, EMPTYARG )
+{
+ InsertUpdate();
+ pTOXMgr->PrevTOXMark(sal_True);
+ UpdateDialog();
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwIndexMarkDlg, PrevSameHdl, Button *, EMPTYARG )
+
+
+IMPL_LINK( SwIndexMarkDlg, DelHdl, Button *, EMPTYARG )
+{
+ bDel = sal_True;
+ InsertUpdate();
+ bDel = sal_False;
+
+ if(pTOXMgr->GetCurTOXMark())
+ UpdateDialog();
+ else
+ {
+ CloseHdl(&aCancelBT);
+ SfxViewFrame::Current()->GetBindings().Invalidate(FN_EDIT_IDX_ENTRY_DLG);
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Dialoganzeige erneuern
+ --------------------------------------------------------------------*/
+
+
+void SwIndexMarkDlg::UpdateDialog()
+{
+ DBG_ASSERT(pSh && pTOXMgr, "Shell nicht da?")
+ SwTOXMark* pMark = pTOXMgr->GetCurTOXMark();
+ ASSERT(pMark, "Keine aktuelle Markierung");
+ if(!pMark)
+ return;
+
+ ViewShell::SetCareWin( GetParent() );
+
+ aOrgStr = pMark->GetText();
+ aEntryED.SetText(aOrgStr);
+
+ // Verzeichnistyp setzen
+ sal_Bool bLevelEnable = sal_True,
+ bKeyEnable = sal_False,
+ bKey2Enable = sal_False;
+
+ TOXTypes eCurType = pMark->GetTOXType()->GetType();
+ if(TOX_INDEX == eCurType)
+ {
+ bLevelEnable = sal_False;
+ bKeyEnable = sal_True;
+ bKey2Enable = 0 != pMark->GetPrimaryKey().Len();
+ aKeyDCB.SetText( pMark->GetPrimaryKey() );
+ aKey2DCB.SetText( pMark->GetSecondaryKey() );
+ aMainEntryCB.Check(pMark->IsMainEntry());
+ }
+ else if(TOX_CONTENT == eCurType || TOX_USER == eCurType)
+ {
+ aLevelED.SetValue(aLevelED.Normalize(pMark->GetLevel()));
+ }
+ aKeyFT.Enable(bKeyEnable);
+ aKeyDCB.Enable(bKeyEnable);
+ aLevelED.SetMax(MAXLEVEL);
+ aLevelFT.Show(bLevelEnable);
+ aLevelED.Show(bLevelEnable);
+ aMainEntryCB.Show(!bLevelEnable);
+ aKey2FT.Enable(bKey2Enable);
+ aKey2DCB.Enable(bKey2Enable);
+
+ // Verzeichnis-Typ setzen
+ aTypeDCB.SelectEntry(pMark->GetTOXType()->GetTypeName());
+
+ // Next - Prev - Buttons setzen
+ pSh->SttCrsrMove();
+ if( aPrevBT.IsVisible() )
+ {
+ const SwTOXMark* pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_PRV );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_NXT );
+ aPrevBT.Enable( pMoveMark != pMark );
+ pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_NXT );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_PRV );
+ aNextBT.Enable( pMoveMark != pMark );
+ }
+
+ if( aPrevSameBT.IsVisible() )
+ {
+ const SwTOXMark* pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_SAME_PRV );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_SAME_NXT );
+ aPrevSameBT.Enable( pMoveMark != pMark );
+ pMoveMark = &pSh->GotoTOXMark( *pMark, TOX_SAME_NXT );
+ if( pMoveMark != pMark )
+ pSh->GotoTOXMark( *pMoveMark, TOX_SAME_PRV );
+ aNextSameBT.Enable( pMoveMark != pMark );
+ }
+
+ sal_Bool bEnable = !pSh->HasReadonlySel();
+ aOKBT.Enable( bEnable );
+ aDelBT.Enable( bEnable );
+ aEntryED.SetReadOnly( !bEnable );
+ aLevelED.SetReadOnly( !bEnable );
+ aKeyDCB.SetReadOnly( !bEnable );
+ aKey2DCB.SetReadOnly( !bEnable );
+
+ pSh->SelectTxtAttr( RES_TXTATR_TOXMARK, pMark->GetTxtTOXMark() );
+ // we need the point at the start of the attribut
+ pSh->SwapPam();
+
+ pSh->EndCrsrMove();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Enable Disable des 2. Schluessels
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwIndexMarkDlg, KeyDCBModifyHdl, ComboBox *, pBox )
+{
+ sal_Bool bEnable = pBox->GetText().Len() > 0;
+ if(!bEnable)
+ aKey2DCB.SetText(aEmptyStr);
+ aKey2DCB.Enable(bEnable);
+ aKey2FT.Enable(bEnable);
+ return 0;
+}
+
+/*-----------------25.02.94 21:19-------------------
+ dtor ueberladen
+--------------------------------------------------*/
+
+
+SwIndexMarkDlg::~SwIndexMarkDlg()
+{
+ delete pTOXMgr;
+ ViewShell::SetCareWin( 0 );
+}
+/* -----------------07.09.99 08:41-------------------
+
+ --------------------------------------------------*/
+void SwIndexMarkDlg::ReInitDlg(SwWrtShell& rWrtShell)
+{
+ pSh = &rWrtShell;
+ delete pTOXMgr;
+ pTOXMgr = new SwTOXMgr(pSh);
+ InitControls();
+}
+/* -----------------06.10.99 10:00-------------------
+
+ --------------------------------------------------*/
+SwIndexMarkFloatDlg::SwIndexMarkFloatDlg(SfxBindings* pBindings,
+ SfxChildWindow* pChild,
+ Window *pParent,
+ sal_Bool bNew) :
+ SfxModelessDialog(pBindings, pChild, pParent, SW_RES(DLG_INSIDXMARK)),
+ aDlg(this, bNew, ResId(WIN_DLG))
+{
+ FreeResource();
+}
+/* -----------------06.10.99 10:27-------------------
+
+ --------------------------------------------------*/
+void SwIndexMarkFloatDlg::Activate()
+{
+ SfxModelessDialog::Activate();
+ GetDlg().Activate();
+}
+/* -----------------06.10.99 10:35-------------------
+
+ --------------------------------------------------*/
+SwIndexMarkModalDlg::SwIndexMarkModalDlg(Window *pParent, SwWrtShell& rSh) :
+ SvxStandardDialog(pParent, SW_RES(DLG_EDIT_IDXMARK)),
+ aDlg(this, sal_False, ResId(WIN_DLG))
+{
+ FreeResource();
+ aDlg.ReInitDlg(rSh);
+}
+/* -----------------06.10.99 10:46-------------------
+
+ --------------------------------------------------*/
+void SwIndexMarkModalDlg::Apply()
+{
+ aDlg.Apply();
+}
+/* -----------------07.09.99 08:15-------------------
+
+ --------------------------------------------------*/
+SFX_IMPL_CHILDWINDOW(SwInsertIdxMarkWrapper, FN_INSERT_IDX_ENTRY_DLG)
+
+SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( Window *pParentWindow,
+ sal_uInt16 nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo ) :
+ SfxChildWindow(pParentWindow, nId)
+{
+
+ pWindow = new SwIndexMarkFloatDlg(pBindings, this, pParentWindow );
+
+ SwIndexMarkDlg& rDlg = ((SwIndexMarkFloatDlg*)pWindow)->GetDlg();
+ SwWrtShell* pWrtShell = ::GetActiveWrtShell();
+ DBG_ASSERT(pWrtShell, "No shell?")
+ rDlg.ReInitDlg(*pWrtShell);
+
+ ((SwIndexMarkFloatDlg*)pWindow)->Initialize(pInfo);
+ eChildAlignment = SFX_ALIGN_NOALIGNMENT;
+}
+/* -----------------07.09.99 09:14-------------------
+
+ --------------------------------------------------*/
+SfxChildWinInfo SwInsertIdxMarkWrapper::GetInfo() const
+{
+ SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
+
+ return aInfo;
+}
+/* -----------------16.09.99 14:19-------------------
+
+ --------------------------------------------------*/
+class SwCreateAuthEntryDlg_Impl : public ModalDialog
+{
+ OKButton aOKBT;
+ CancelButton aCancelBT;
+ HelpButton aHelpBT;
+
+ GroupBox aEntriesGB;
+
+ FixedText* pFixedTexts[AUTH_FIELD_END];
+ ListBox* pTypeListBox;
+ ComboBox* pIdentifierBox;
+ Edit* pEdits[AUTH_FIELD_END];
+
+ Link aShortNameCheckLink;
+
+ SwWrtShell& rWrtSh;
+
+ sal_Bool m_bNewEntryMode;
+ sal_Bool m_bNameAllowed;
+
+ DECL_LINK(IdentifierHdl, ComboBox*);
+ DECL_LINK(ShortNameHdl, Edit*);
+ DECL_LINK(EnableHdl, ListBox* pBox);
+
+public:
+ SwCreateAuthEntryDlg_Impl(Window* pParent,
+ const String pFields[],
+ SwWrtShell& rSh,
+ sal_Bool bNewEntry,
+ sal_Bool bCreate);
+ ~SwCreateAuthEntryDlg_Impl();
+
+ String GetEntryText(ToxAuthorityField eField) const;
+
+ void SetCheckNameHdl(Link& rLink) {aShortNameCheckLink = rLink;}
+
+};
+/*-- 15.09.99 08:43:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+struct TextInfo
+{
+ sal_uInt16 nToxField;
+ sal_uInt16 nHelpId;
+};
+static const TextInfo aTextInfoArr[] =
+{
+ {AUTH_FIELD_IDENTIFIER, HID_AUTH_FIELD_IDENTIFIER },
+ {AUTH_FIELD_AUTHORITY_TYPE, HID_AUTH_FIELD_AUTHORITY_TYPE },
+ {AUTH_FIELD_AUTHOR, HID_AUTH_FIELD_AUTHOR },
+ {AUTH_FIELD_TITLE, HID_AUTH_FIELD_TITLE },
+ {AUTH_FIELD_YEAR, HID_AUTH_FIELD_YEAR },
+ {AUTH_FIELD_PUBLISHER, HID_AUTH_FIELD_PUBLISHER },
+ {AUTH_FIELD_ADDRESS, HID_AUTH_FIELD_ADDRESS },
+ {AUTH_FIELD_ISBN, HID_AUTH_FIELD_ISBN },
+ {AUTH_FIELD_CHAPTER, HID_AUTH_FIELD_CHAPTER },
+ {AUTH_FIELD_PAGES, HID_AUTH_FIELD_PAGES },
+ {AUTH_FIELD_EDITOR, HID_AUTH_FIELD_EDITOR },
+ {AUTH_FIELD_EDITION, HID_AUTH_FIELD_EDITION },
+ {AUTH_FIELD_BOOKTITLE, HID_AUTH_FIELD_BOOKTITLE },
+ {AUTH_FIELD_VOLUME, HID_AUTH_FIELD_VOLUME },
+ {AUTH_FIELD_HOWPUBLISHED, HID_AUTH_FIELD_HOWPUBLISHED },
+ {AUTH_FIELD_ORGANIZATIONS, HID_AUTH_FIELD_ORGANIZATIONS },
+ {AUTH_FIELD_INSTITUTION, HID_AUTH_FIELD_INSTITUTION },
+ {AUTH_FIELD_SCHOOL, HID_AUTH_FIELD_SCHOOL },
+ {AUTH_FIELD_REPORT_TYPE, HID_AUTH_FIELD_REPORT_TYPE },
+ {AUTH_FIELD_MONTH, HID_AUTH_FIELD_MONTH },
+ {AUTH_FIELD_JOURNAL, HID_AUTH_FIELD_JOURNAL },
+ {AUTH_FIELD_NUMBER, HID_AUTH_FIELD_NUMBER },
+ {AUTH_FIELD_SERIES, HID_AUTH_FIELD_SERIES },
+ {AUTH_FIELD_ANNOTE, HID_AUTH_FIELD_ANNOTE },
+ {AUTH_FIELD_NOTE, HID_AUTH_FIELD_NOTE },
+ {AUTH_FIELD_URL, HID_AUTH_FIELD_URL },
+ {AUTH_FIELD_CUSTOM1, HID_AUTH_FIELD_CUSTOM1 },
+ {AUTH_FIELD_CUSTOM2, HID_AUTH_FIELD_CUSTOM2 },
+ {AUTH_FIELD_CUSTOM3, HID_AUTH_FIELD_CUSTOM3 },
+ {AUTH_FIELD_CUSTOM4, HID_AUTH_FIELD_CUSTOM4 },
+ {AUTH_FIELD_CUSTOM5, HID_AUTH_FIELD_CUSTOM5 }
+};
+
+sal_Bool SwAuthMarkDlg::bIsFromComponent = sal_True;
+
+SwAuthMarkDlg::SwAuthMarkDlg( Window *pParent,
+ const ResId& rResId,
+ sal_Bool bNewDlg) :
+ Window(pParent, rResId),
+ aFromComponentRB( this, ResId(RB_FROMCOMPONENT )),
+ aFromDocContentRB( this, ResId(RB_FROMDOCCONTENT )),
+ aEntryFT( this, ResId(FT_ENTRY )),
+ aEntryED( this, ResId(ED_ENTRY )),
+ aEntryLB( this, ResId(LB_ENTRY )),
+ aAuthorFT( this, ResId(FT_AUTHOR )),
+ aAuthorFI( this, ResId(FI_AUTHOR )),
+ aTitleFT( this, ResId(FT_TITLE )),
+ aTitleFI( this, ResId(FI_TITLE )),
+ aEntryGB( this, ResId(GB_ENTRY )),
+ aOKBT( this, ResId(PB_OK )),
+ aCancelBT( this, ResId(PB_CANCEL )),
+ aHelpBT( this, ResId(PB_HELP )),
+ sChangeST( ResId(ST_CHANGE)),
+ aCreateEntryPB(this,ResId(PB_CREATEENTRY)),
+ aEditEntryPB(this, ResId(PB_EDITENTRY)),
+ bNewEntry(bNewDlg),
+ pSh(0),
+ bBibAccessInitialized(sal_False)
+{
+ SetStyle(GetStyle()|WB_DIALOGCONTROL);
+ FreeResource();
+
+ aFromComponentRB.SetHelpId(HID_AUTH_MARK_DLG_FROM_COMP_RB);
+ aFromDocContentRB.SetHelpId(HID_AUTH_MARK_DLG_FROM_DOC_RB );
+ aEntryED.SetHelpId(HID_AUTH_MARK_DLG_ID_LISTBOX );
+ aEntryLB.SetHelpId(HID_AUTH_MARK_DLG_ID_LISTBOX );
+
+ aFromComponentRB.Show(bNewEntry);
+ aFromDocContentRB.Show(bNewEntry);
+ aFromComponentRB.Check(bIsFromComponent);
+ aFromDocContentRB.Check(!bIsFromComponent);
+
+ aOKBT .SetHelpId(HID_INSERT_AUTH_MRK_OK );
+ aCancelBT .SetHelpId(HID_INSERT_AUTH_MRK_CLOSE);
+ aEntryED .SetHelpId(HID_INSERT_AUTH_MRK_ENTRY );
+ aCreateEntryPB .SetHelpId(HID_INSERT_AUTH_MRK_CREATE_ENTRY );
+ aEditEntryPB .SetHelpId(HID_INSERT_AUTH_MRK_EDIT_ENTRY );
+
+ aOKBT.SetClickHdl(LINK(this,SwAuthMarkDlg, InsertHdl));
+ aCancelBT.SetClickHdl(LINK(this,SwAuthMarkDlg, CloseHdl));
+ aCreateEntryPB.SetClickHdl(LINK(this,SwAuthMarkDlg, CreateEntryHdl));
+ aEditEntryPB.SetClickHdl(LINK(this,SwAuthMarkDlg, CreateEntryHdl));
+ aFromComponentRB.SetClickHdl(LINK(this,SwAuthMarkDlg, ChangeSourceHdl));
+ aFromDocContentRB.SetClickHdl(LINK(this,SwAuthMarkDlg, ChangeSourceHdl));
+
+ GetParent()->SetText(String(SW_RES(
+ bNewEntry ? STR_AUTHMRK_INSERT : STR_AUTHMRK_EDIT)));
+ aEntryED.Show(!bNewEntry);
+ aEntryLB.Show(bNewEntry);
+ if(!bNewEntry)
+ {
+ aOKBT.SetText(sChangeST);
+ }
+ else
+ {
+ aEntryLB.SetSelectHdl(LINK(this, SwAuthMarkDlg, CompEntryHdl));
+ }
+}
+/*-- 15.09.99 08:43:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwAuthMarkDlg::~SwAuthMarkDlg()
+{
+}
+/*-- 15.09.99 08:43:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwAuthMarkDlg::ReInitDlg(SwWrtShell& rWrtShell)
+{
+ pSh = &rWrtShell;
+ InitControls();
+}
+/* -----------------15.09.99 08:57-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwAuthMarkDlg, CloseHdl, PushButton *, EMPTYARG )
+{
+ if(bNewEntry)
+ {
+ sal_uInt16 nSlot = FN_INSERT_AUTH_ENTRY_DLG;
+ SfxViewFrame::Current()->GetDispatcher()->Execute(nSlot,
+ SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+ }
+ else
+ {
+ ((SwAuthMarkModalDlg*)GetParent())->EndDialog(RET_CANCEL);
+ }
+ return 0;
+}
+/* -----------------06.12.99 13:54-------------------
+
+ --------------------------------------------------*/
+String lcl_FindColumnEntry(const beans::PropertyValue* pFields, sal_Int32 nLen, const String& rColumnTitle)
+{
+ String sRet;
+ OUString uColumnTitle = rColumnTitle;
+ for(sal_uInt16 i = 0; i < nLen; i++)
+ {
+ if(pFields[i].Name == uColumnTitle &&
+ pFields[i].Value.getValueType() == ::getCppuType((const OUString*)0))
+
+ {
+ OUString uTmp;
+ pFields[i].Value >>= uTmp;
+ sRet = String(uTmp);
+ break;
+ }
+ }
+ return sRet;
+}
+/* -----------------------------07.12.99 15:39--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK( SwAuthMarkDlg, CompEntryHdl, ListBox*, pBox)
+{
+ String sEntry(pBox->GetSelectEntry());
+ if(bIsFromComponent)
+ {
+ if(xBibAccess.is() && sEntry.Len())
+ {
+ OUString uEntry(sEntry);
+ if(xBibAccess->hasByName(uEntry))
+ {
+ uno::Any aEntry(xBibAccess->getByName(uEntry));
+ if(aEntry.getValueType() == ::getCppuType((uno::Sequence<beans::PropertyValue>*)0))
+
+ {
+ uno::Sequence<beans::PropertyValue> aFieldProps = *(uno::Sequence<beans::PropertyValue>*)aEntry.getValue();
+ const beans::PropertyValue* pProps = aFieldProps.getConstArray();
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ {
+ m_sFields[i] = lcl_FindColumnEntry(
+ pProps, aFieldProps.getLength(), m_sColumnTitles[i]);
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ if(sEntry.Len())
+ {
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ pSh->GetFldType(RES_AUTHORITY, aEmptyStr);
+ const SwAuthEntry* pEntry = pFType ? pFType->GetEntryByIdentifier(sEntry) : 0;
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ m_sFields[i] = pEntry ?
+ pEntry->GetAuthorField((ToxAuthorityField)i) : aEmptyStr;
+ }
+ }
+ if(!pBox->GetSelectEntry().Len())
+ {
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ m_sFields[i] = aEmptyStr;
+ }
+ aAuthorFI.SetText(m_sFields[AUTH_FIELD_AUTHOR]);
+ aTitleFI.SetText(m_sFields[AUTH_FIELD_TITLE]);
+ return 0;
+}
+
+/* -----------------15.09.99 08:57-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwAuthMarkDlg, InsertHdl, PushButton *, EMPTYARG )
+{
+ //insert or update the SwAuthorityField...
+ if(pSh)
+ {
+ sal_Bool bDifferent = sal_False;
+ DBG_ASSERT(m_sFields[AUTH_FIELD_IDENTIFIER].Len() , "No Id is set!")
+ DBG_ASSERT(m_sFields[AUTH_FIELD_AUTHORITY_TYPE].Len() , "No authority type is set!")
+ //check if the entry already exists with different content
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ pSh->GetFldType(RES_AUTHORITY, aEmptyStr);
+ const SwAuthEntry* pEntry = pFType ?
+ pFType->GetEntryByIdentifier( m_sFields[AUTH_FIELD_IDENTIFIER])
+ : 0;
+ if(pEntry)
+ {
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END && !bDifferent; i++)
+ bDifferent |= m_sFields[i] != pEntry->GetAuthorField((ToxAuthorityField)i);
+ if(bDifferent)
+ {
+ QueryBox aQuery(this, SW_RES(DLG_CHANGE_AUTH_ENTRY));
+ if(RET_YES != aQuery.Execute())
+ return 0;
+ }
+ }
+
+ SwFldMgr aMgr(pSh);
+ String sFields;
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ {
+ sFields += m_sFields[i];
+ sFields += TOX_STYLE_DELIMITER;
+ }
+ if(bNewEntry)
+ {
+ if(bDifferent)
+ {
+ SwAuthEntry aNewData;
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ aNewData.SetAuthorField((ToxAuthorityField)i, m_sFields[i]);
+ pSh->ChangeAuthorityData(&aNewData);
+ }
+ aMgr.InsertFld( TYP_AUTHORITY, 0, sFields, aEmptyStr, 0 );
+ }
+ else if(aMgr.GetCurFld())
+ {
+ aMgr.UpdateCurFld(0, sFields, aEmptyStr);
+ }
+ }
+ if(!bNewEntry)
+ CloseHdl(0);
+ return 0;
+}
+/* -----------------17.09.99 13:06-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwAuthMarkDlg, CreateEntryHdl, PushButton*, pButton)
+{
+ sal_Bool bCreate = pButton == &aCreateEntryPB;
+ String sOldId = m_sCreatedEntry[0];
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ m_sCreatedEntry[i] = bCreate ? aEmptyStr : m_sFields[i];
+ SwCreateAuthEntryDlg_Impl aDlg(pButton,
+ bCreate ? m_sCreatedEntry : m_sFields,
+ *pSh, bNewEntry, bCreate);
+ if(bNewEntry)
+ {
+ aDlg.SetCheckNameHdl(LINK(this, SwAuthMarkDlg, IsEntryAllowedHdl));
+ }
+ if(RET_OK == aDlg.Execute())
+ {
+ if(bCreate && sOldId.Len())
+ {
+ aEntryLB.RemoveEntry(sOldId);
+ }
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ {
+ m_sFields[i] = aDlg.GetEntryText((ToxAuthorityField)i);
+ m_sCreatedEntry[i] = m_sFields[i];
+ }
+ if(bNewEntry && !aFromDocContentRB.IsChecked())
+ {
+ aFromDocContentRB.Check(sal_True);
+ ChangeSourceHdl(&aFromDocContentRB);
+ }
+ if(bCreate)
+ {
+ DBG_ASSERT(LISTBOX_ENTRY_NOTFOUND ==
+ aEntryLB.GetEntryPos(m_sFields[AUTH_FIELD_IDENTIFIER]),
+ "entry exists!")
+ aEntryLB.InsertEntry(m_sFields[AUTH_FIELD_IDENTIFIER]);
+ aEntryLB.SelectEntry(m_sFields[AUTH_FIELD_IDENTIFIER]);
+ }
+ aEntryED.SetText(m_sFields[AUTH_FIELD_IDENTIFIER]);
+ aAuthorFI.SetText(m_sFields[AUTH_FIELD_AUTHOR]);
+ aTitleFI.SetText(m_sFields[AUTH_FIELD_TITLE]);
+ }
+ return 0;
+}
+/* -----------------------------20.12.99 14:26--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwAuthMarkDlg, ChangeSourceHdl, RadioButton*, pButton)
+{
+ sal_Bool bFromComp = (pButton == &aFromComponentRB);
+ bIsFromComponent = bFromComp;
+ aCreateEntryPB.Enable(!bIsFromComponent);
+ aEntryLB.Clear();
+ if(bIsFromComponent)
+ {
+ if(!bBibAccessInitialized)
+ {
+ uno::Reference< lang::XMultiServiceFactory > xMSF = getProcessServiceFactory();
+ xBibAccess = uno::Reference< container::XNameAccess > (
+ xMSF->createInstance( C2U("com.sun.star.frame.Bibliography") ),
+ uno::UNO_QUERY );
+ uno::Reference< beans::XPropertySet > xPropSet(xBibAccess, uno::UNO_QUERY);
+ OUString uPropName(C2U("BibliographyDataFieldNames"));
+ if(xPropSet.is() && xPropSet->getPropertySetInfo()->hasPropertyByName(uPropName))
+ {
+ uno::Any aNames = xPropSet->getPropertyValue(uPropName);
+ if(aNames.getValueType() == ::getCppuType((uno::Sequence<beans::PropertyValue>*)0))
+ {
+ uno::Sequence<beans::PropertyValue> aSeq = *(uno::Sequence<beans::PropertyValue>*)aNames.getValue();
+ const beans::PropertyValue* pArr = aSeq.getConstArray();
+ for(sal_uInt16 i = 0; i < aSeq.getLength(); i++)
+ {
+ String sTitle = pArr[i].Name;
+ sal_Int16 nField;
+ pArr[i].Value >>= nField;
+ if(nField >= 0 && nField < AUTH_FIELD_END)
+ m_sColumnTitles[nField] = sTitle;
+ }
+ }
+ }
+ bBibAccessInitialized = sal_True;
+ }
+ if(xBibAccess.is())
+ {
+ uno::Sequence<OUString> aIdentifiers = xBibAccess->getElementNames();
+ const OUString* pNames = aIdentifiers.getConstArray();
+ for(sal_uInt16 i = 0; i < aIdentifiers.getLength(); i++)
+ {
+ aEntryLB.InsertEntry(pNames[i]);
+ }
+ }
+ }
+ else
+ {
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ pSh->GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ SvStringsDtor aIds;
+ pFType->GetAllEntryIdentifiers( aIds );
+ for(sal_uInt16 n = 0; n < aIds.Count(); n++)
+ aEntryLB.InsertEntry(*aIds.GetObject(n));
+ }
+ if(m_sCreatedEntry[AUTH_FIELD_IDENTIFIER].Len())
+ aEntryLB.InsertEntry(m_sCreatedEntry[AUTH_FIELD_IDENTIFIER]);
+ }
+ aEntryLB.SelectEntryPos(0);
+ CompEntryHdl(&aEntryLB);
+ return 0;
+}
+/* -----------------------------20.12.99 15:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwAuthMarkDlg, IsEntryAllowedHdl, Edit*, pEdit)
+{
+ String sEntry = pEdit->GetText();
+ sal_Bool bAllowed = sal_False;
+ if(sEntry.Len())
+ {
+ if(aEntryLB.GetEntryPos(sEntry) != LISTBOX_ENTRY_NOTFOUND)
+ return 0;
+ else if(bIsFromComponent)
+ {
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ pSh->GetFldType(RES_AUTHORITY, aEmptyStr);
+ bAllowed = !pFType || !pFType->GetEntryByIdentifier(sEntry);
+ }
+ else
+ {
+ bAllowed = !xBibAccess.is() || !xBibAccess->hasByName(sEntry);
+ }
+ }
+ return bAllowed;
+}
+/* -----------------21.09.99 14:19-------------------
+
+ --------------------------------------------------*/
+void SwAuthMarkDlg::InitControls()
+{
+ DBG_ASSERT(pSh, "Shell nicht da?")
+ SwField* pField = pSh->GetCurFld();
+ ASSERT(bNewEntry || pField, "Keine aktuelle Markierung");
+ if(bNewEntry)
+ {
+ ChangeSourceHdl(aFromComponentRB.IsChecked() ? &aFromComponentRB : &aFromDocContentRB);
+ aCreateEntryPB.Enable(!aFromComponentRB.IsChecked());
+ if(!aFromComponentRB.IsChecked() && m_sCreatedEntry[0].Len())
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ m_sFields[i] = m_sCreatedEntry[i];
+ }
+ if(bNewEntry || !pField || pField->GetTyp()->Which() != RES_AUTHORITY)
+ return;
+
+ const SwAuthEntry* pEntry = ((SwAuthorityFieldType*)pField->GetTyp())->
+ GetEntryByIdentifier(((SwAuthorityField*)pField)->
+ GetFieldText(AUTH_FIELD_IDENTIFIER));
+
+ DBG_ASSERT(pEntry, "No authority entry found")
+ if(!pEntry)
+ return;
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ m_sFields[i] = pEntry->GetAuthorField((ToxAuthorityField)i);
+
+ aEntryED.SetText(pEntry->GetAuthorField(AUTH_FIELD_IDENTIFIER));
+ aAuthorFI.SetText(pEntry->GetAuthorField(AUTH_FIELD_AUTHOR));
+ aTitleFI.SetText(pEntry->GetAuthorField(AUTH_FIELD_TITLE));
+
+}
+
+/* -----------------07.09.99 08:15-------------------
+
+ --------------------------------------------------*/
+SFX_IMPL_CHILDWINDOW(SwInsertAuthMarkWrapper, FN_INSERT_AUTH_ENTRY_DLG)
+
+SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( Window *pParentWindow,
+ sal_uInt16 nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo ) :
+ SfxChildWindow(pParentWindow, nId)
+{
+
+ pWindow = new SwAuthMarkFloatDlg(pBindings, this, pParentWindow );
+
+ SwAuthMarkDlg& rDlg = ((SwAuthMarkFloatDlg*)pWindow)->GetDlg();
+ ((SwAuthMarkFloatDlg*)pWindow)->Initialize(pInfo);
+ SwWrtShell* pWrtShell = ::GetActiveWrtShell();
+ DBG_ASSERT(pWrtShell, "No shell?")
+ rDlg.ReInitDlg(*pWrtShell);
+
+ eChildAlignment = SFX_ALIGN_NOALIGNMENT;
+}
+/* -----------------07.09.99 09:14-------------------
+
+ --------------------------------------------------*/
+SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
+{
+ SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
+ return aInfo;
+}
+/* -----------------19.10.99 11:16-------------------
+
+ --------------------------------------------------*/
+void SwInsertAuthMarkWrapper::ReInitDlg(SwWrtShell& rWrtShell)
+{
+ ((SwAuthMarkFloatDlg*)pWindow)->GetDlg().ReInitDlg(rWrtShell);
+}
+
+/* -----------------16.09.99 14:27-------------------
+
+ --------------------------------------------------*/
+SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(Window* pParent,
+ const String pFields[],
+ SwWrtShell& rSh,
+ sal_Bool bNewEntry,
+ sal_Bool bCreate) :
+ ModalDialog(pParent, SW_RES(DLG_CREATE_AUTH_ENTRY)),
+ aOKBT(this, ResId(PB_OK )),
+ aCancelBT(this, ResId(PB_CANCEL )),
+ aHelpBT(this, ResId(PB_HELP )),
+ aEntriesGB(this, ResId(GB_ENTRIES )),
+ pIdentifierBox(0),
+ pTypeListBox(0),
+ rWrtSh(rSh),
+ m_bNewEntryMode(bNewEntry),
+ m_bNameAllowed(sal_True)
+{
+ FreeResource();
+ Point aGBPos(aEntriesGB.GetPosPixel());
+ Point aTL1(aGBPos);
+ Size aGBSz(aEntriesGB.GetSizePixel());
+ long nControlSpace = aGBSz.Width() / 4;
+ long nControlWidth = nControlSpace - 2 * aTL1.X();
+ aTL1.X() *= 2;
+ aTL1.Y() *= 5;
+ Point aTR1(aTL1);
+ aTR1.X() += nControlSpace;
+ Point aTL2(aTR1);
+ aTL2.X() += nControlSpace;
+ Point aTR2(aTL2);
+ aTR2.X() += nControlSpace;
+ Size aFixedTextSize(aGBSz);
+ Size aTmpSz(8,10);
+ aTmpSz = LogicToPixel(aTmpSz, MAP_APPFONT);
+ aFixedTextSize.Height() = aTmpSz.Width();
+ Size aEditSize(aFixedTextSize);
+ aFixedTextSize.Width() = nControlWidth + aGBPos.X();
+ aEditSize.Height() = aTmpSz.Height();
+ aEditSize.Width() = nControlWidth;
+
+ sal_uInt16 nOffset = aTmpSz.Width() * 3 / 2;
+ sal_Bool bLeft = sal_True;
+ for(sal_uInt16 nIndex = 0; nIndex < AUTH_FIELD_END; nIndex++)
+ {
+ const TextInfo aCurInfo = aTextInfoArr[nIndex];
+
+ pFixedTexts[nIndex] = new FixedText(this);
+
+ pFixedTexts[nIndex]->SetSizePixel(aFixedTextSize);
+ pFixedTexts[nIndex]->SetPosPixel(bLeft ? aTL1 : aTL2);
+ pFixedTexts[nIndex]->SetText(SW_RES(STR_AUTH_FIELD_START + aCurInfo.nToxField));
+ pFixedTexts[nIndex]->Show();
+ pEdits[nIndex] = 0;
+ if( AUTH_FIELD_AUTHORITY_TYPE == aCurInfo.nToxField )
+ {
+ pTypeListBox = new ListBox(this, WB_DROPDOWN|WB_BORDER);
+ for(sal_uInt16 j = 0; j < AUTH_TYPE_END; j++)
+ pTypeListBox->InsertEntry(String(SW_RES(STR_AUTH_TYPE_START + j)));
+ if(pFields[aCurInfo.nToxField].Len())
+ {
+ sal_uInt16 nIndexPos = pFields[aCurInfo.nToxField].ToInt32();
+ pTypeListBox->SelectEntryPos(nIndexPos);
+ }
+ Size aTmp(aEditSize);
+ aTmp.Height() *= 4;
+ pTypeListBox->SetSizePixel(aTmp);
+ pTypeListBox->SetPosPixel(bLeft ? aTR1 : aTR2);
+ pTypeListBox->Show();
+ pTypeListBox->SetSelectHdl(LINK(this, SwCreateAuthEntryDlg_Impl, EnableHdl));
+ pTypeListBox->SetHelpId(aCurInfo.nHelpId);
+
+ }
+ else if(AUTH_FIELD_IDENTIFIER == aCurInfo.nToxField && !m_bNewEntryMode)
+ {
+ pIdentifierBox = new ComboBox(this, WB_BORDER|WB_DROPDOWN);
+ pIdentifierBox->SetSelectHdl(LINK(this,
+ SwCreateAuthEntryDlg_Impl, IdentifierHdl));
+
+
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ rSh.GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ SvStringsDtor aIds;
+ pFType->GetAllEntryIdentifiers( aIds );
+ for(sal_uInt16 n = 0; n < aIds.Count(); n++)
+ pIdentifierBox->InsertEntry(*aIds.GetObject(n));
+ }
+ pIdentifierBox->SetText(pFields[aCurInfo.nToxField]);
+ Size aTmp(aEditSize);
+ aTmp.Height() *= 4;
+ pIdentifierBox->SetSizePixel(aTmp);
+ pIdentifierBox->SetPosPixel(bLeft ? aTR1 : aTR2);
+ pIdentifierBox->Show();
+ pIdentifierBox->SetHelpId(aCurInfo.nHelpId);
+ }
+ else
+ {
+ pEdits[nIndex] = new Edit(this, WB_BORDER);
+ pEdits[nIndex]->SetSizePixel(aEditSize);
+ pEdits[nIndex]->SetPosPixel(bLeft ? aTR1 : aTR2);
+ pEdits[nIndex]->SetText(pFields[aCurInfo.nToxField]);
+ pEdits[nIndex]->Show();
+ pEdits[nIndex]->SetHelpId(aCurInfo.nHelpId);
+ if(AUTH_FIELD_IDENTIFIER == aCurInfo.nToxField)
+ {
+ pEdits[nIndex]->SetModifyHdl(LINK(this, SwCreateAuthEntryDlg_Impl, ShortNameHdl));
+ m_bNameAllowed = pFields[nIndex].Len() > 0;
+ if(!bCreate)
+ {
+ pFixedTexts[nIndex]->Enable(sal_False);
+ pEdits[nIndex]->Enable(sal_False);
+ }
+ }
+ }
+ if(bLeft)
+ {
+ aTL1.Y() += nOffset;
+ aTR1.Y() += nOffset;
+ }
+ else
+ {
+ aTL2.Y() += nOffset;
+ aTR2.Y() += nOffset;
+ }
+ bLeft = !bLeft;
+ }
+ EnableHdl(pTypeListBox);
+
+ long nHeightDiff = - aGBSz.Height();
+ aGBSz.Height() = aTL1.Y();
+ nHeightDiff += aGBSz.Height();
+ aEntriesGB.SetSizePixel(aGBSz);
+ Size aDlgSize(GetSizePixel());
+ aDlgSize.Height() += nHeightDiff;
+ SetSizePixel(aDlgSize);
+
+}
+/* -----------------16.09.99 14:47-------------------
+
+ --------------------------------------------------*/
+SwCreateAuthEntryDlg_Impl::~SwCreateAuthEntryDlg_Impl()
+{
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ {
+ delete pFixedTexts[i];
+ delete pEdits[i];
+ }
+ delete pTypeListBox;
+ delete pIdentifierBox;
+}
+/* -----------------16.09.99 14:27-------------------
+
+ --------------------------------------------------*/
+String SwCreateAuthEntryDlg_Impl::GetEntryText(ToxAuthorityField eField) const
+{
+ String sRet;
+ if( AUTH_FIELD_AUTHORITY_TYPE == eField )
+ {
+ DBG_ASSERT(pTypeListBox, "No ListBox")
+ sRet = pTypeListBox->GetSelectEntryPos();
+ }
+ else if( AUTH_FIELD_IDENTIFIER == eField && !m_bNewEntryMode)
+ {
+ DBG_ASSERT(pIdentifierBox, "No ComboBox")
+ sRet = pIdentifierBox->GetText();
+ }
+ else
+ {
+ for(sal_uInt16 nIndex = 0; nIndex < AUTH_FIELD_END; nIndex++)
+ {
+ const TextInfo aCurInfo = aTextInfoArr[nIndex];
+ if(aCurInfo.nToxField == eField)
+ {
+ sRet = pEdits[nIndex]->GetText();
+ break;
+ }
+ }
+ }
+ return sRet;
+}
+/* -----------------21.09.99 13:54-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK(SwCreateAuthEntryDlg_Impl, IdentifierHdl, ComboBox*, pBox)
+{
+ const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*)
+ rWrtSh.GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ const SwAuthEntry* pEntry = pFType->GetEntryByIdentifier(
+ pBox->GetText());
+ if(pEntry)
+ {
+ for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++)
+ {
+ if(AUTH_FIELD_IDENTIFIER == i)
+ continue;
+ if(AUTH_FIELD_AUTHORITY_TYPE == i)
+ pTypeListBox->SelectEntry(
+ pEntry->GetAuthorField((ToxAuthorityField)i));
+ else
+ pEdits[i]->SetText(
+ pEntry->GetAuthorField((ToxAuthorityField)i));
+ }
+ }
+ }
+ return 0;
+}
+/* -----------------------------20.12.99 15:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+
+IMPL_LINK(SwCreateAuthEntryDlg_Impl, ShortNameHdl, Edit*, pEdit)
+{
+ if(aShortNameCheckLink.IsSet())
+ {
+ sal_Bool bEnable = 0 != aShortNameCheckLink.Call(pEdit);
+ m_bNameAllowed |= bEnable;
+ aOKBT.Enable(pTypeListBox->GetSelectEntryCount() && bEnable);
+ }
+ return 0;
+}
+/* -----------------------------20.12.99 15:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwCreateAuthEntryDlg_Impl, EnableHdl, ListBox*, pBox)
+{
+ aOKBT.Enable(m_bNameAllowed && pBox->GetSelectEntryCount());
+ return 0;
+};
+/* -----------------06.10.99 10:00-------------------
+
+ --------------------------------------------------*/
+SwAuthMarkFloatDlg::SwAuthMarkFloatDlg(SfxBindings* pBindings,
+ SfxChildWindow* pChild,
+ Window *pParent,
+ sal_Bool bNew) :
+ SfxModelessDialog(pBindings, pChild, pParent, SW_RES(DLG_INSAUTHMARK)),
+ aDlg(this, ResId(WIN_DLG), bNew)
+{
+ FreeResource();
+}
+/* -----------------06.10.99 10:27-------------------
+
+ --------------------------------------------------*/
+void SwAuthMarkFloatDlg::Activate()
+{
+ SfxModelessDialog::Activate();
+ GetDlg().Activate();
+}
+/* -----------------06.10.99 10:35-------------------
+
+ --------------------------------------------------*/
+SwAuthMarkModalDlg::SwAuthMarkModalDlg(Window *pParent, SwWrtShell& rSh) :
+ SvxStandardDialog(pParent, SW_RES(DLG_EDIT_AUTHMARK)),
+ aDlg(this, ResId(WIN_DLG), sal_False)
+{
+ FreeResource();
+ aDlg.ReInitDlg(rSh);
+}
+/* -----------------06.10.99 10:46-------------------
+
+ --------------------------------------------------*/
+void SwAuthMarkModalDlg::Apply()
+{
+ aDlg.InsertHdl(0);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.105 2000/09/18 16:05:53 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.104 2000/09/07 15:59:25 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.103 2000/07/03 08:27:55 os
+ #72742# resource warnings corrected
+
+ Revision 1.102 2000/06/27 19:42:06 jp
+ Bug #70447#: select the current TOXMark if the EditDialog is open
+
+ Revision 1.101 2000/05/26 07:21:31 os
+ old SW Basic API Slots removed
+
+ Revision 1.100 2000/05/16 17:29:33 jp
+ Changes for Unicode
+
+ Revision 1.99 2000/05/16 09:15:13 os
+ project usr removed
+
+ Revision 1.98 2000/04/18 15:32:23 os
+ UNICODE
+
+ Revision 1.97 2000/04/04 15:21:07 os
+ #74729# Author-Title assignment corrected
+
+ Revision 1.96 2000/03/30 13:19:03 os
+ UNO III
+
+ Revision 1.95 2000/03/23 07:42:45 os
+ UNO III
+
+ Revision 1.94 2000/02/18 14:36:57 kz
+ #65293# include PropertyValue
+
+ Revision 1.93 2000/02/11 14:55:46 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.92 2000/01/31 10:48:04 os
+ #71961# TOX_INDEX as default
+
+ Revision 1.91 2000/01/18 14:44:14 os
+ #72050# base class changed
+
+ Revision 1.90 2000/01/18 09:15:45 os
+ #72010# type is numeric
+
+ Revision 1.89 2000/01/17 12:02:19 os
+ #70703# apply to all similar texts: search options case sensitive and word only
+
+ Revision 1.88 1999/12/27 12:22:18 os
+ #71307# HelpIds added
+
+ Revision 1.87 1999/12/21 13:47:39 os
+ #70508# select source for bibliography entries
+
+ Revision 1.86 1999/12/14 10:18:42 os
+ #70819# new index button now an ImageButton at a better position
+
+ Revision 1.85 1999/12/07 16:37:15 os
+ #70508# get data from bib component
+
+ Revision 1.84 1999/11/30 13:47:52 os
+ #68736# HelpId for insert index mark dialogs
+
+ Revision 1.83 1999/11/25 08:56:01 os
+ prevent from changing content in readonly
+
+ Revision 1.82 1999/10/19 09:32:39 os
+ casts corrected
+
+ Revision 1.81 1999/10/18 11:42:53 os
+ Helpids for Modeless idx entry dialogs
+
+ Revision 1.80 1999/10/13 14:14:59 os
+ create new user index via button
+
+ Revision 1.79 1999/10/11 09:00:21 os
+ AuthorityField(Type):Import/Export interfaces
+
+ Revision 1.78 1999/10/06 12:11:23 os
+ edit tox entry dialogs now modal
+
+ Revision 1.77 1999/09/21 13:43:20 os
+ edit Authority fields
+
+ Revision 1.76 1999/09/20 09:36:38 os
+ new Dialog: SwCreateAuthEntryDlg_Impl
+
+ Revision 1.75 1999/09/15 13:57:24 os
+ dialog for authorities
+
+ Revision 1.74 1999/09/14 13:29:37 os
+ call ModifyHdl if entry text is changed
+
+ Revision 1.73 1999/09/07 13:55:04 os
+ Insert/EditIndexEntry as FloatingWindow
+
+ Revision 1.72 1999/08/24 08:41:10 OS
+ level count of user indexes now on MAXLEVEL
+
+
+ Rev 1.71 24 Aug 1999 10:41:10 OS
+ level count of user indexes now on MAXLEVEL
+
+ Rev 1.70 23 Aug 1999 10:24:30 OS
+ extended indexes: InsertTOXMark simplified; main entry in indexes
+
+ Rev 1.69 18 Jun 1999 11:53:56 OS
+ #66778# empty alternative texts are not allowed
+
+ Rev 1.68 10 Jun 1999 13:02:04 OS
+ restore selection
+
+ Rev 1.67 28 Apr 1999 12:42:54 OS
+ #65478# Level fuer Benutzerverzeichnis erlauben
+
+ Rev 1.66 21 Jan 1999 09:15:06 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.65 20 Jan 1999 11:35:28 OS
+ #60881# Verzeichniseintraege mehrfach einf?gen
+
+ Rev 1.64 10 Feb 1998 07:49:00 OS
+ Level nur fuer Inhaltsverzeichnisse #47169#
+
+ Rev 1.63 25 Nov 1997 10:51:02 MA
+ includes
+
+ Rev 1.62 05 Nov 1997 12:42:56 OS
+ richtiges Flag uebergeben #43766#
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/index/idxmrk.hrc b/sw/source/ui/index/idxmrk.hrc
new file mode 100644
index 000000000000..184d1f0816fd
--- /dev/null
+++ b/sw/source/ui/index/idxmrk.hrc
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: idxmrk.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_NXT 102
+#define BT_NXTSAME 103
+#define BT_PREV 104
+#define BT_PREVSAME 105
+#define BT_DEL 106
+#define BT_HELP 107
+#define LBL_INDEX 1
+#define DCB_INDEX 2
+#define LBL_ENTRY 3
+#define SL_ENTRY 4
+#define LBL_KEY 5
+#define DCB_KEY 6
+#define LBL_LEVEL 7
+#define SL_LEVEL 8
+#define GB_INDEX 10
+#define LBL_KEY2 11
+#define DCB_KEY2 12
+#define CB_APPLY_TO_ALL 13
+#define CB_MAIN_ENTRY 14
+#define FT_ENTRY 20
+#define ED_ENTRY 21
+#define PB_OK 22
+#define PB_CANCEL 23
+#define PB_HELP 24
+#define GB_ENTRIES 25
+#define PB_CREATEENTRY 26
+#define GB_ENTRY 27
+#define FT_TITLE 28
+#define FI_TITLE 29
+#define FT_AUTHOR 30
+#define FI_AUTHOR 31
+#define ST_CHANGE 32
+#define WIN_DLG 33
+#define BT_NEW 34
+#define GB_NAME 37
+#define FT_NAME 38
+#define ED_NAME 39
+#define LB_ENTRY 40
+#define RB_FROMCOMPONENT 41
+#define RB_FROMDOCCONTENT 42
+#define PB_EDITENTRY 43
+#define CB_CASESENSITIVE 44
+#define CB_WORDONLY 45
diff --git a/sw/source/ui/index/idxmrk.src b/sw/source/ui/index/idxmrk.src
new file mode 100644
index 000000000000..cc373178939b
--- /dev/null
+++ b/sw/source/ui/index/idxmrk.src
@@ -0,0 +1,1236 @@
+/*************************************************************************
+ *
+ * $RCSfile: idxmrk.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "index.hrc"
+#include "idxmrk.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+
+#define IDX_DIALOG_WINDOW \
+ Window WIN_DLG \
+ { \
+ Pos = MAP_APPFONT ( 0 , 0 ) ; \
+ Size = MAP_APPFONT ( 218 , WINDOW_HEIGHT ) ; \
+ OKButton BT_OK \
+ { \
+ Pos = MAP_APPFONT ( 162 , 6 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ TabStop = TRUE ; \
+ DefButton = TRUE ; \
+ Text = "Einfügen"; \
+ Text[English] = "Insert"; \
+ Text[ english_us ] = "Insert";\
+ Text[ portuguese ] = "Inserir";\
+ Text[ russian ] = "Âñòàâèòü";\
+ Text[ greek ] = "ÐñïóèÞêç";\
+ Text[ dutch ] = "Invoegen";\
+ Text[ french ] = "Insérer";\
+ Text[ spanish ] = "Insertar";\
+ Text[ italian ] = "Inserisci";\
+ Text[ danish ] = "Indsæt";\
+ Text[ swedish ] = "Infoga";\
+ Text[ polish ] = "Wstaw";\
+ Text[ portuguese_brazilian ] = "Insert";\
+ Text[ japanese ] = "‘}“ü";\
+ Text[ korean ] = "»ðÀÔ";\
+ Text[ chinese_simplified ] = "²åÈë";\
+ Text[ chinese_traditional ] = "´¡¤J";\
+ Text[ arabic ] = "ÅÏÑÇÌ";\
+ Text[ turkish ] = "Ekle";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ CancelButton BT_CANCEL \
+ { \
+ Pos = MAP_APPFONT ( 162 , 23 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ Text = "Schließen"; \
+ Text[English] = "Close"; \
+ Text[ english_us ] = "Close";\
+ Text[ portuguese ] = "Fechar";\
+ Text[ russian ] = "Çàêðûòü";\
+ Text[ greek ] = "Êëåßóéìï";\
+ Text[ dutch ] = "Sluiten";\
+ Text[ french ] = "Fermer";\
+ Text[ spanish ] = "Cerrar";\
+ Text[ italian ] = "Chiudi";\
+ Text[ danish ] = "Luk";\
+ Text[ swedish ] = "Stäng";\
+ Text[ polish ] = "Zamknij";\
+ Text[ portuguese_brazilian ] = "Close";\
+ Text[ japanese ] = "•Â‚¶‚é";\
+ Text[ korean ] = "´Ý±â";\
+ Text[ chinese_simplified ] = "¹Ø±Õ";\
+ Text[ chinese_traditional ] = "Ãö³¬";\
+ Text[ arabic ] = "ÅÛáÇÞ";\
+ Text[ turkish ] = "Kapat";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ HelpButton BT_HELP \
+ { \
+ Pos = MAP_APPFONT ( 162 , 43 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ }; \
+ PushButton BT_DEL \
+ { \
+ Pos = MAP_APPFONT ( 162 , 63 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ Text = "L~öschen" ; \
+ Text [ ENGLISH ] = "~Delete" ; \
+ Text [ norwegian ] = "~Slett" ; \
+ Text [ italian ] = "~Elimina" ; \
+ Text [ portuguese_brazilian ] = "~Apagar" ; \
+ Text [ portuguese ] = "E~liminar" ; \
+ Text [ finnish ] = "~Poista" ; \
+ Text [ danish ] = "Slet" ; \
+ Text [ french ] = "~Supprimer" ; \
+ Text [ swedish ] = "~Radera" ; \
+ Text [ dutch ] = "~Wissen" ; \
+ Text [ spanish ] = "~Eliminar" ; \
+ Text [ english_us ] = "~Delete" ; \
+ TabStop = TRUE ; \
+ Text[ chinese_simplified ] = "ɾ³ý(~D)"; \
+ Text[ russian ] = "Óäàëèòü"; \
+ Text[ polish ] = "Usuñ"; \
+ Text[ japanese ] = "íœ(~D)"; \
+ Text[ chinese_traditional ] = "§R°£(~D)"; \
+ Text[ arabic ] = "ÍÐÝ"; \
+ Text[ greek ] = "ÄéáãñáöÞ";\
+ Text[ korean ] = "»èÁ¦(~D)";\
+ Text[ turkish ] = "~Sil";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ ListBox DCB_INDEX \
+ { \
+ Pos = MAP_APPFONT ( 56 , 14) ; \
+ Size = MAP_APPFONT ( DCB_INDEX_WIDTH , 56 ) ; \
+ TabStop = TRUE ; \
+ DropDown = TRUE ; \
+ }; \
+ ImageButton BT_NEW \
+ { \
+ Pos = MAP_APPFONT ( 137 , 14 ) ; \
+ Size = MAP_APPFONT ( 12 , 12 ) ; \
+ QuickHelpText = "Neues benutzerdefiniertes Verzeichnis"; \
+ QuickHelpText[English] = "New user defined index"; \
+ QuickHelpText[ english_us ] = "New user-defined index";\
+ QuickHelpText[ portuguese ] = "New user defined index";\
+ QuickHelpText[ russian ] = "Íîâûé óêàçàòåëü ïîëüçîâàòåëÿ";\
+ QuickHelpText[ greek ] = "Äçìéïõñãßá åõñåôçñßïõ ïñéóìÝíï áðü ôïí ÷ñÞóôç";\
+ QuickHelpText[ dutch ] = "Nieuwe gebruikergedefinieerde index";\
+ QuickHelpText[ french ] = "Definir un nouvel index personnalisé";\
+ QuickHelpText[ spanish ] = "New user defined index";\
+ QuickHelpText[ italian ] = "Nuovo indice personalizzato";\
+ QuickHelpText[ danish ] = "Nyt brugerdefineret indeks";\
+ QuickHelpText[ swedish ] = "Ny användardefinierad förteckning";\
+ QuickHelpText[ polish ] = "Nowy indeks u¿ytkownika";\
+ QuickHelpText[ portuguese_brazilian ] = "New user defined index";\
+ QuickHelpText[ japanese ] = "V‚µ‚¢Õ°»Þ°Ý’è‚Ìõˆø";\
+ QuickHelpText[ korean ] = "New user defined index";\
+ QuickHelpText[ chinese_simplified ] = "New user defined index";\
+ QuickHelpText[ chinese_traditional ] = "·s¼W¦Û­q¥Ø¿ý";\
+ QuickHelpText[ arabic ] = "ÝåÑÓ ÌÏíÏ ãÚÑÝ ãä ÞÈá ÇáãÓÊÎÏã";\
+ }; \
+ ImageButton BT_PREVSAME \
+ { \
+ Hide = TRUE ; \
+ Pos = MAP_APPFONT ( 162 , 80 ) ; \
+ Size = MAP_APPFONT ( 24 , 14 ) ; \
+ TabStop = TRUE ; \
+ SYMBOL = IMAGEBUTTON_FIRST ; \
+ }; \
+ ImageButton BT_PREV \
+ { \
+ Hide = TRUE ; \
+ Pos = MAP_APPFONT ( 162 , 97 ) ; \
+ Size = MAP_APPFONT ( 24 , 14 ) ; \
+ TabStop = TRUE ; \
+ SYMBOL = IMAGEBUTTON_PREV ; \
+ }; \
+ ImageButton BT_NXT \
+ { \
+ Hide = TRUE ; \
+ Pos = MAP_APPFONT ( 188 , 97 ) ; \
+ Size = MAP_APPFONT ( 24 , 14 ) ; \
+ TabStop = TRUE ; \
+ SYMBOL = IMAGEBUTTON_NEXT ; \
+ }; \
+ ImageButton BT_NXTSAME \
+ { \
+ Hide = TRUE ; \
+ Pos = MAP_APPFONT ( 188 , 80 ) ; \
+ Size = MAP_APPFONT ( 24 , 14 ) ; \
+ TabStop = TRUE ; \
+ SYMBOL = IMAGEBUTTON_LAST ; \
+ }; \
+ GroupBox GB_INDEX \
+ { \
+ Pos = MAP_APPFONT ( 6 , 3 ) ; \
+ Size = MAP_APPFONT ( 151 , GB_HEIGHT ) ; \
+ Text = "Markierung" ; \
+ Text [ ENGLISH ] = "Mark" ; \
+ Text [ norwegian ] = "Merk" ; \
+ Text [ italian ] = "Contrassegna" ; \
+ Text [ portuguese_brazilian ] = "Marca" ; \
+ Text [ portuguese ] = "Selecção" ; \
+ Text [ finnish ] = "Merkintä" ; \
+ Text [ danish ] = "Markering" ; \
+ Text [ french ] = "Marque" ; \
+ Text [ swedish ] = "Markering" ; \
+ Text [ dutch ] = "Markering" ; \
+ Text [ spanish ] = "Marca" ; \
+ Text [ english_us ] = "Selection" ; \
+ Text[ chinese_simplified ] = "񈬀"; \
+ Text[ russian ] = "Âûäåëåíèå"; \
+ Text[ polish ] = "Zaznaczenie"; \
+ Text[ japanese ] = "‘I‘ð"; \
+ Text[ chinese_traditional ] = "¼Ð°O"; \
+ Text[ arabic ] = "ÇáÊÍÏíÏ"; \
+ Text[ greek ] = "ÓÞìáíóç";\
+ Text[ korean ] = "¼±ÅÃ";\
+ Text[ turkish ] = "Seçim";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ FixedText LBL_INDEX \
+ { \
+ Pos = MAP_APPFONT ( 12 , 16 ) ; \
+ Size = MAP_APPFONT ( 40 , 10 ) ; \
+ Text = "~Verzeichnis" ; \
+ Text [ ENGLISH ] = "~Index" ; \
+ Text [ norwegian ] = "~Index" ; \
+ Text [ italian ] = "Indice" ; \
+ Text [ portuguese_brazilian ] = "~Índice" ; \
+ Text [ portuguese ] = "~Índice" ; \
+ Text [ finnish ] = "~Hakemisto" ; \
+ Text [ danish ] = "Indeks" ; \
+ Text [ french ] = "~Type" ; \
+ Text [ swedish ] = "Fö~rteckning" ; \
+ Text [ dutch ] = "~Index" ; \
+ Text [ spanish ] = "Ín~dice" ; \
+ Text [ english_us ] = "~Index" ; \
+ Left = TRUE ; \
+ Text[ chinese_simplified ] = "Ŀ¼(~I)"; \
+ Text[ russian ] = "Óêàçàòåëü"; \
+ Text[ polish ] = "Indeks"; \
+ Text[ japanese ] = "õˆø(~I)"; \
+ Text[ chinese_traditional ] = "¥Ø¿ý(~I)"; \
+ Text[ arabic ] = "ÝåÑÓ"; \
+ Text[ greek ] = "ÅõñåôÞñéï";\
+ Text[ korean ] = "»öÀÎ(~I)";\
+ Text[ language_user1 ] = " ";\
+ Text[ turkish ] = "~Dizin";\
+ }; \
+ Edit SL_ENTRY \
+ { \
+ Border = TRUE ; \
+ Pos = MAP_APPFONT ( 56 , 29 ) ; \
+ Size = MAP_APPFONT ( 94 , 12 ) ; \
+ TabStop = TRUE ; \
+ Left = TRUE ; \
+ }; \
+ FixedText LBL_ENTRY \
+ { \
+ Pos = MAP_APPFONT ( 12 , 31 ) ; \
+ Size = MAP_APPFONT ( 27 , 8 ) ; \
+ Text = "~Eintrag" ; \
+ Text [ ENGLISH ] = "~Entry" ; \
+ Text [ norwegian ] = "~Inngang" ; \
+ Text [ italian ] = "Voc~e" ; \
+ Text [ portuguese_brazilian ] = "~Entrada" ; \
+ Text [ portuguese ] = "E~ntrada" ; \
+ Text [ finnish ] = "~Hakusana" ; \
+ Text [ danish ] = "Element" ; \
+ Text [ french ] = "~Entrée" ; \
+ Text [ swedish ] = "~Post" ; \
+ Text [ dutch ] = "~Item" ; \
+ Text [ spanish ] = "~Entrada" ; \
+ Text [ english_us ] = "~Entry" ; \
+ Left = TRUE ; \
+ Text[ chinese_simplified ] = "ÌõÄ¿(~E)"; \
+ Text[ russian ] = "Ýëåìåíò"; \
+ Text[ polish ] = "Wpis"; \
+ Text[ japanese ] = "€–Ú(~E)"; \
+ Text[ chinese_traditional ] = "¶µ¥Ø(~E)"; \
+ Text[ arabic ] = "ÇáÅÏÎÇá"; \
+ Text[ greek ] = "ÅããñáöÞ";\
+ Text[ korean ] = "Ç׸ñ(~E)";\
+ Text[ turkish ] = "~Giriþ";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ FixedText LBL_KEY \
+ { \
+ Disable = TRUE ; \
+ Pos = MAP_APPFONT ( 12 , 46 ) ; \
+ Size = MAP_APPFONT ( 42 , 8 ) ; \
+ Text = "~1. Schlüssel" ; \
+ Text [ ENGLISH ] = "~1. Key" ; \
+ Text [ norwegian ] = "~1. Nøkkel" ; \
+ Text [ italian ] = "Chiave ~1" ; \
+ Text [ portuguese_brazilian ] = "~1. Tecla" ; \
+ Text [ portuguese ] = "~1ª chave" ; \
+ Text [ finnish ] = "~1. avain" ; \
+ Text [ danish ] = "1. nøgle" ; \
+ Text [ french ] = "~1re clé" ; \
+ Text [ swedish ] = "Sorteringskod ~1" ; \
+ Text [ dutch ] = "~1e sleutel" ; \
+ Text [ spanish ] = "~1ra clave" ; \
+ Text [ english_us ] = "~1st key" ; \
+ Left = TRUE ; \
+ Text[ chinese_simplified ] = "µÚÒ»¸ö¹Ø¼ü×Ö"; \
+ Text[ russian ] = "1-ûé êëþ÷"; \
+ Text[ polish ] = "Pierwszy klucz"; \
+ Text[ japanese ] = "·° 1"; \
+ Text[ chinese_traditional ] = "²Ä¤@­ÓÃöÁä¦r(~K)"; \
+ Text[ arabic ] = "ÇáãÝÊÇÍ ÇáÃæá"; \
+ Text[ greek ] = "~1ï êëåéäß";\
+ Text[ korean ] = "1¹ø° Å°";\
+ Text[ turkish ] = "~1. Anahtar";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ ComboBox DCB_KEY \
+ { \
+ Disable = TRUE ; \
+ Pos = MAP_APPFONT ( 56 , 44 ) ; \
+ Size = MAP_APPFONT ( 94 , 56 ) ; \
+ TabStop = TRUE ; \
+ DropDown = TRUE ; \
+ }; \
+ FixedText LBL_KEY2 \
+ { \
+ Disable = TRUE ; \
+ Pos = MAP_APPFONT ( 12 , 62 ) ; \
+ Size = MAP_APPFONT ( 42 , 8 ) ; \
+ Text = "~2. Schlüssel" ; \
+ Text [ ENGLISH ] = "~2. Key" ; \
+ Text [ norwegian ] = "~2. Nøkkel" ; \
+ Text [ italian ] = "Chiave ~2" ; \
+ Text [ portuguese_brazilian ] = "~2. Tecla" ; \
+ Text [ portuguese ] = "~2ª chave" ; \
+ Text [ finnish ] = "~2. avain" ; \
+ Text [ danish ] = "2. nøgle" ; \
+ Text [ french ] = "~2ème clé" ; \
+ Text [ swedish ] = "Sorteringskod ~2" ; \
+ Text [ dutch ] = "~2e sleutel" ; \
+ Text [ spanish ] = "~2da clave" ; \
+ Text [ english_us ] = "~2nd key" ; \
+ Left = TRUE ; \
+ Text[ chinese_simplified ] = "µÚ¶þ¸ö¹Ø¼ü×Ö"; \
+ Text[ russian ] = "2-îé êëþ÷"; \
+ Text[ polish ] = "Drugi klucz"; \
+ Text[ japanese ] = "·° 2"; \
+ Text[ chinese_traditional ] = "²Ä¤G­ÓÃöÁä¦r(~E)"; \
+ Text[ arabic ] = "ÇáãÝÊÇÍ ÇáËÇäí"; \
+ Text[ greek ] = "~2ï Êëåéäß";\
+ Text[ korean ] = "2¹ø° Å°";\
+ Text[ turkish ] = "~2. Anahtar";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ ComboBox DCB_KEY2 \
+ { \
+ Disable = TRUE ; \
+ Pos = MAP_APPFONT ( 56 , 59 ) ; \
+ Size = MAP_APPFONT ( 94 , 56 ) ; \
+ TabStop = TRUE ; \
+ DropDown = TRUE ; \
+ }; \
+ FixedText LBL_LEVEL \
+ { \
+ Pos = MAP_APPFONT ( 12 , 76 ) ; \
+ Size = MAP_APPFONT ( 21 , 8 ) ; \
+ Text = "St~ufe" ; \
+ Text [ ENGLISH ] = "~Level" ; \
+ Text [ norwegian ] = "~Nivå" ; \
+ Text [ italian ] = "Livello" ; \
+ Text [ portuguese_brazilian ] = "~Nível" ; \
+ Text [ portuguese ] = "~Nível" ; \
+ Text [ finnish ] = "~Taso" ; \
+ Text [ danish ] = "Niveau" ; \
+ Text [ french ] = "~Niveau" ; \
+ Text [ swedish ] = "Ni~vå" ; \
+ Text [ dutch ] = "~Niveau" ; \
+ Text [ spanish ] = "~Nivel" ; \
+ Text [ english_us ] = "~Level" ; \
+ Left = TRUE ; \
+ Text[ chinese_simplified ] = "¼¶(~L)"; \
+ Text[ russian ] = "Óðîâåíü"; \
+ Text[ polish ] = "Poziom"; \
+ Text[ japanese ] = "ÚÍÞÙ(~L)"; \
+ Text[ chinese_traditional ] = "¯Å(~L)"; \
+ Text[ arabic ] = "ÇáãÓÊæì"; \
+ Text[ greek ] = "Åðßðåäï";\
+ Text[ korean ] = "¼öÁØ(~L)";\
+ Text[ turkish ] = "D~üzey";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ NumericField SL_LEVEL \
+ { \
+ Border = TRUE ; \
+ Pos = MAP_APPFONT ( 56 , 74 ) ; \
+ Size = MAP_APPFONT ( 18 , 12 ) ; \
+ TabStop = TRUE ; \
+ Left = TRUE ; \
+ Repeat = TRUE ; \
+ Spin = TRUE ; \
+ Minimum = 1 ; \
+ Maximum = 5 ; \
+ Value = 1 ; \
+ Last = 4 ; \
+ SpinSize = 1 ; \
+ }; \
+ CheckBox CB_MAIN_ENTRY \
+ { \
+ Pos = MAP_APPFONT ( 12 , 76 ) ; \
+ Size = MAP_APPFONT ( 100 , 8 ) ; \
+ Text = "Ha~upteintrag" ; \
+ Text [ ENGLISH ] = "~Main entry" ; \
+ Text[ english_us ] = "~Main entry";\
+ Text[ portuguese ] = "~Entrada principal";\
+ Text[ russian ] = "Îñíîâíîé ýëåìåíò";\
+ Text[ greek ] = "Êýñéá åããñáöÞ";\
+ Text[ dutch ] = "~Hoofditem";\
+ Text[ french ] = "~Entrée principale";\
+ Text[ spanish ] = "~Entrada principal";\
+ Text[ italian ] = "Voce principale";\
+ Text[ danish ] = "Hovedelement";\
+ Text[ swedish ] = "H~uvudpost";\
+ Text[ polish ] = "Wpis g³ówny";\
+ Text[ portuguese_brazilian ] = "~Main entry";\
+ Text[ japanese ] = "Žå€–Ú(~M)";\
+ Text[ korean ] = "ÁÖ Ç׸ñ(~M)";\
+ Text[ chinese_simplified ] = "Ö÷ÌõÄ¿(~M)";\
+ Text[ chinese_traditional ] = "¥D¶µ¥Ø(~M)";\
+ Text[ arabic ] = "ÅÏÎÇá ÑÆíÓí";\
+ Text[ turkish ] = "A~na giriþ";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ CheckBox CB_APPLY_TO_ALL \
+ { \
+ Pos = MAP_APPFONT ( 12 , 90 ) ; \
+ Size = MAP_APPFONT ( 140 , 12 ) ; \
+ Text = "~Auf alle gleichen Texte anwenden." ; \
+ Text [ ENGLISH ] = "~Apply to all similar texts." ; \
+ Hide = TRUE; \
+ Text[ english_us ] = "~Apply to all similar texts."; \
+ Text[ portuguese ] = "~Aplicar em todos os textos semelhantes"; \
+ Text[ russian ] = "Ïðèìåíèòü êî âñåì îäèíàêîâûì òåêñòàì"; \
+ Text[ dutch ] = "~Voor alle dezelfde tekst gebruiken"; \
+ Text[ french ] = "~Appliquer à tous les textes similaires."; \
+ Text[ spanish ] = "~Aplicar a todos los textos iguales."; \
+ Text[ italian ] = "~Applica a tutti i testi simili"; \
+ Text[ danish ] = "Anvend på alle lignende tekster."; \
+ Text[ swedish ] = "~Använd på alla liknande texter."; \
+ Text[ polish ] = "Zastosuj w podobnych tekstach."; \
+ Text[ portuguese_brazilian ] = "~Apply to all similar texts."; \
+ Text[ japanese ] = "‚·‚ׂĂ̎—‚Ä‚¢‚镶Žš—ñ‚É“K—p(~A)"; \
+ Text[ chinese_simplified ] = "ÊÊÓÃÓÚÏàͬµÄÕýÎÄ(~A)"; \
+ Text[ chinese_traditional ] = "¥Î©ó©Ò¦³¬Û¦Pªº¤º¤å(~A)"; \
+ Text[ arabic ] = "ÊØÈíÞ Úáì ßá ÇáäÕæÕ ÇáããÇËáÉ."; \
+ Text[ greek ] = "ÅöáñìïãÞ óå üëá ôá ðáñüìïéá êåßìåíá.";\
+ Text[ korean ] = "Àüü À¯»ç ÅؽºÆ® Àû¿ë(~A)";\
+ Text[ turkish ] = "~Tüm eþ metinlere uygula.";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ CheckBox CB_CASESENSITIVE \
+ { \
+ Pos = MAP_APPFONT ( 18 , 104 ) ; \
+ Size = MAP_APPFONT ( 134 , 12 ) ; \
+ Text = "E~xakte Suche" ; \
+ Text [ ENGLISH ] = "Match case" ; \
+ Hide = TRUE;\
+ Text[ english_us ] = "Ma~tch case";\
+ Text[ portuguese ] = "Procura e~xacta";\
+ Text[ russian ] = "Òî÷íûé ïîèñê";\
+ Text[ greek ] = "ÁêñéâÞò áíáæÞôçóç";\
+ Text[ dutch ] = "~Exact dezelfde tekens zoeken";\
+ Text[ french ] = "Respecter la ~casse";\
+ Text[ spanish ] = "Búsqueda e~xacta";\
+ Text[ italian ] = "Ricerca esatta";\
+ Text[ danish ] = "Søg eksakt";\
+ Text[ swedish ] = "E~xakt sökning";\
+ Text[ polish ] = "Dok³adne wyszukiwanie";\
+ Text[ portuguese_brazilian ] = "Match case";\
+ Text[ japanese ] = "Š®‘S‚É“¯ˆê‚È’PŒê‚ÌŒŸõ";\
+ Text[ korean ] = "´ë/¼Ò¹®ÀÚ ±¸ºÐ(~T)";\
+ Text[ chinese_simplified ] = "¾«È·ËÑÑ°";\
+ Text[ chinese_traditional ] = "ºëÚÌ´M§ä";\
+ Text[ arabic ] = "ÈÍË ÏÞíÞ";\
+ Text[ turkish ] = "BÜYÜK/küçük ~harf duyarlý";\
+ }; \
+ CheckBox CB_WORDONLY \
+ { \
+ Pos = MAP_APPFONT ( 18 , 118 ) ; \
+ Size = MAP_APPFONT ( 134 , 12 ) ; \
+ Text = "Nur ganze ~Wörter" ; \
+ Text [ ENGLISH ] = "Whole words only" ; \
+ Hide = TRUE;\
+ Text[ english_us ] = "~Whole words only";\
+ Text[ portuguese ] = "Só ~palavras inteiras";\
+ Text[ russian ] = "Òîëüêî ïîëíûå ñëîâà";\
+ Text[ greek ] = "Ìüíï ïëüêëçñåò ëÝîåéò";\
+ Text[ dutch ] = "Alleen hele ~woorden";\
+ Text[ french ] = "~Mots entiers";\
+ Text[ spanish ] = "Solo palabras e~nteras";\
+ Text[ italian ] = "Solo parole intere";\
+ Text[ danish ] = "Kun hele ord";\
+ Text[ swedish ] = "Bara hela ~ord";\
+ Text[ polish ] = "Tylko ca³e wyrazy";\
+ Text[ portuguese_brazilian ] = "Whole words only";\
+ Text[ japanese ] = "’PŒê’PˆÊ‚Å‚Ì‚Ý";\
+ Text[ korean ] = "Àüü ´Ü¾î¸¸(~W)";\
+ Text[ chinese_simplified ] = "Ö»ÔÊÐíÕû¸ö´Ê";\
+ Text[ chinese_traditional ] = "¥u¬O¾ã­Ó¦r";\
+ Text[ arabic ] = "ßáãÇÊ ßÇãáÉ ÝÞØ";\
+ Text[ turkish ] = "Yalnýzca ~tam sözcükler bul";\
+ }; \
+ };
+
+ModalDialog DLG_EDIT_IDXMARK
+{
+ OutputSize = TRUE ;
+ Moveable = TRUE ;
+ Closeable = TRUE;
+ Sizeable = FALSE ;
+ HelpID = FN_EDIT_IDX_ENTRY_DLG;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 218 , 118 ) ;
+ #define GB_HEIGHT 109
+ #define DCB_INDEX_WIDTH 94
+ #define WINDOW_HEIGHT 118
+ IDX_DIALOG_WINDOW
+};
+ModelessDialog DLG_INSIDXMARK
+{
+ OutputSize = TRUE ;
+ Moveable = TRUE ;
+ Closeable = TRUE;
+ Sizeable = FALSE ;
+// Zoomable = TRUE ;
+ HelpID = FN_INSERT_IDX_ENTRY_DLG;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 218 , 138) ;
+// Moveable = TRUE ;
+ #define GB_HEIGHT 129
+ #define DCB_INDEX_WIDTH 79
+ #define WINDOW_HEIGHT 138
+ IDX_DIALOG_WINDOW
+};
+ModalDialog DLG_NEW_USER_IDX
+{
+ OutputSize = TRUE ;
+ Moveable = TRUE ;
+ Closeable = TRUE;
+ Sizeable = FALSE ;
+ HelpID = HID_DLG_NEW_USER_IDX;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 194 , 60 ) ;
+ Text = "Neues benutzerdefiniertes Verzeichnis anlegen" ;
+ Text [ ENGLISH ] = "Create new user-defined index" ;
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 141 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 141 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 141 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ GroupBox GB_NAME
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 132 , 54 ) ;
+ Text = "Neues Benutzerverzeichnis" ;
+ Text [ ENGLISH ] = "New user index name" ;
+
+ Text[ english_us ] = "New user index";
+ Text[ portuguese ] = "Novo índice personalizado";
+ Text[ russian ] = "Íîâûé óêàçàòåëü ïîëüçîâàòåëÿ";
+ Text[ greek ] = "Äçìéïõñãßá åõñåôçñßïõ ÷ñÞóôç";
+ Text[ dutch ] = "Nieuwe gebruikersindex";
+ Text[ french ] = "Nouvel index personnalisé";
+ Text[ spanish ] = "Nuevo índice de usuario";
+ Text[ italian ] = "Nuovo indice personalizzato";
+ Text[ danish ] = "Nyt brugerindeks";
+ Text[ swedish ] = "Ny användarförteckning";
+ Text[ polish ] = "Nowy indeks u¿ytkownika";
+ Text[ portuguese_brazilian ] = "New user index name";
+ Text[ japanese ] = "V‚µ‚¢Õ°»Þ°’è‹`‚Ìõˆø";
+ Text[ korean ] = "»õ·Î¿î »ç¿ëÀÚ »öÀÎ";
+ Text[ chinese_simplified ] = "н¨Óû§Ä¿Â¼";
+ Text[ chinese_traditional ] = "·s«Ø¦Û­q¥Ø¿ý";
+ Text[ arabic ] = "ÝåÑÓ ãÓÊÎÏã ÌÏíÏ";
+ Text[ turkish ] = "Yeni kullanýcý dizini";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Name" ;
+ Text [ ENGLISH ] = "Name" ;
+
+ Text[ english_us ] = "~Name";
+ Text[ portuguese ] = "~Nome";
+ Text[ russian ] = "Èìÿ";
+ Text[ greek ] = "¼íïìá";
+ Text[ dutch ] = "~Naam";
+ Text[ french ] = "~Nom";
+ Text[ spanish ] = "~Nombre";
+ Text[ italian ] = "~Nome";
+ Text[ danish ] = "Navn";
+ Text[ swedish ] = "~Namn";
+ Text[ polish ] = "Nazwa";
+ Text[ portuguese_brazilian ] = "Name";
+ Text[ japanese ] = "–¼‘O(~N)";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇÓã";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_NAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 55 , 15 ) ;
+ Size = MAP_APPFONT ( 80 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ Text[ english_us ] = "Create New User-defined Index";
+ Text[ portuguese ] = "Definir novo índice personalizado";
+ Text[ russian ] = "Ñîçäàòü íîâûé óêàçàòåëü ïîëüçîâàòåëÿ";
+ Text[ greek ] = "Äçìéïõñãßá íÝïõ åõñåôçñßïõ ÷ñÞóôç";
+ Text[ dutch ] = "Nieuwe gebruikersindex definiëren";
+ Text[ french ] = "Création d'un nouvel index personnalisé";
+ Text[ spanish ] = "Crear nuevo índice de usuario";
+ Text[ italian ] = "Definisci nuovo indice personalizzato";
+ Text[ danish ] = "Opret nyt brugerdefineret indeks";
+ Text[ swedish ] = "Skapa ny användardefinierad förteckning";
+ Text[ polish ] = "Utwórz nowy indeks zdeiniowany przez u¿ytkownika";
+ Text[ portuguese_brazilian ] = "Define new user index";
+ Text[ japanese ] = "V‚µ‚¢Õ°»Þ°’è‹`‚Ìõˆø‚Ìì¬";
+ Text[ korean ] = "»õ·Î¿î »ç¿ëÀÚ Á¤ÀÇ »öÀÎ ¸¸µé±â";
+ Text[ chinese_simplified ] = "н¨Óû§×Ô¶¨Ä¿Â¼";
+ Text[ chinese_traditional ] = "·s¼W¦Û­qªº¥Ø¿ý";
+ Text[ arabic ] = "ÅäÔÇÁ ÝåÑÓ ÌÏíÏ ãõÚóÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã";
+ Text[ turkish ] = "Yeni kullanýcý tanýmlý dizin oluþtur";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_IDXMRK_EDIT
+{
+ Text = "Verzeichniseintrag bearbeiten" ;
+ Text [ ENGLISH ] = "Edit index entry" ;
+ Text [ norwegian ] = "Rediger stikkordregisterinngang" ;
+ Text [ italian ] = "Modifica voce di indice" ;
+ Text [ portuguese_brazilian ] = "Editar entrada de índice" ;
+ Text [ portuguese ] = "Editar entrada de índice" ;
+ Text [ finnish ] = "Muokkaa hakusanaa" ;
+ Text [ danish ] = "Rediger indekselement" ;
+ Text [ french ] = "Édition d'une entrée d'index" ;
+ Text [ swedish ] = "Redigera förteckningspost" ;
+ Text [ dutch ] = "Indexgegeven bewerken" ;
+ Text [ spanish ] = "Editar entrada de índice" ;
+ Text [ english_us ] = "Edit Index Entry" ;
+ Text[ chinese_simplified ] = "±à¼­Ä¿Â¼ÌõÄ¿";
+ Text[ russian ] = "Ïðàâêà ýëåìåíòà óêàçàòåëÿ";
+ Text[ polish ] = "Edytuj wpis do indeksu";
+ Text[ japanese ] = "õˆø€–Ú‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿è¥Ø¿ý¶µ¥Ø";
+ Text[ arabic ] = "ÊÍÑíÑ ÅÏÎÇá ÝåÑÓí";
+ Text[ greek ] = "Åðåîåñãáóßá åããñáöÞò åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ Ç׸ñ ÆíÁý";
+ Text[ turkish ] = "Dizin giriþini düzenle";
+ Text[ language_user1 ] = " ";
+};
+String STR_IDXMRK_INSERT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Verzeichniseintrag einfügen : Verzeichniseintrag einf³gen */
+ Text = "Verzeichniseintrag einfügen" ;
+ Text [ ENGLISH ] = "Insert index entry" ;
+ Text [ norwegian ] = "Sett inn oppføring i stikkkordregister" ;
+ Text [ italian ] = "Inserisci voce di indice" ;
+ Text [ portuguese_brazilian ] = "Inserir entrada de índice" ;
+ Text [ portuguese ] = "Inserir entrada no índice remissivo" ;
+ Text [ finnish ] = "Lisää hakemistotekstin" ;
+ Text [ danish ] = "Indsæt indekselement" ;
+ Text [ french ] = "Insertion d'une entrée d'index" ;
+ Text [ swedish ] = "Infoga förteckningspost" ;
+ Text [ dutch ] = "Indexgegeven invoegen" ;
+ Text [ spanish ] = "Insertar una entrada de índice" ;
+ Text [ english_us ] = "Insert Index Entry" ;
+ Text[ chinese_simplified ] = "²åÈëË÷ÒýÌõÄ¿";
+ Text[ russian ] = "Âñòàâèòü ýëåìåíò óêàçàòåëÿ";
+ Text[ polish ] = "Wstaw wpis do indeksu";
+ Text[ japanese ] = "–ÚŽŸ‚Æõˆø€–Ú‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¥Ø¿ý±ø¥Ø";
+ Text[ arabic ] = "ÅÏÑÇÌ ÅÏÎÇá ÝåÑÓí";
+ Text[ greek ] = "ÐñïóèÞêç åããñáöÞò åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ Ç׸ñ »ðÀÔ";
+ Text[ turkish ] = "Dizin giriþi ekle";
+ Text[ language_user1 ] = " ";
+};
+
+#define AUTH_DIALOG_WINDOW \
+ Window WIN_DLG \
+ { \
+ Pos = MAP_APPFONT ( 0 , 0 ) ; \
+ Size = MAP_APPFONT ( 218 , 118 + RADIO_BUTTON_HEIGHT) ; \
+ RadioButton RB_FROMCOMPONENT \
+ { \
+ Pos = MAP_APPFONT ( 12 , 14 ) ; \
+ Size = MAP_APPFONT ( 147 , 12 ) ; \
+ Text = "Aus Literatur~datenbank" ; \
+ Text [ ENGLISH ] = "Form bibliography database" ; \
+ Text[ english_us ] = "From bibliography ~database";\
+ Text[ portuguese ] = "A partir da ~base de dados bibliográfica";\
+ Text[ russian ] = "Èç áàçû äàííûõ áèáëèîãðàôèè";\
+ Text[ greek ] = "Áðü ôç âÜóç ~äåäïìÝíùí âéâëéïãñáößáò";\
+ Text[ dutch ] = "Uit ~literatuur-database";\
+ Text[ french ] = "À partir de la ~base de données bibliographique";\
+ Text[ spanish ] = "De la base de datos ~bibliográfica";\
+ Text[ italian ] = "Dal ~database bibliografico";\
+ Text[ danish ] = "fra litteraturdatabasen";\
+ Text[ swedish ] = "Från litteratur~databas";\
+ Text[ polish ] = "Z bibliograficznej bazy danych";\
+ Text[ portuguese_brazilian ] = "Form bibliography database";\
+ Text[ japanese ] = "‘ ‘ŠÇ—ÃÞ°ÀÍÞ°½‚©‚ç(~D)";\
+ Text[ korean ] = "Âü°í¹®Çå µ¥ÀÌÅͺ£À̽º·Î ºÎÅÍ(~D)";\
+ Text[ chinese_simplified ] = "²ÉÓÃÎÄÏ×Êý¾Ý¿â";\
+ Text[ chinese_traditional ] = "±q¤åÄm¸ê®Æ®w";\
+ Text[ arabic ] = "ãä ÞÇÚÏÉ ÈíÇäÇÊ ÇáãÑÇÌÚ";\
+ Text[ turkish ] = "Kaynakça veritabanýndan";\
+ }; \
+ RadioButton RB_FROMDOCCONTENT \
+ { \
+ Pos = MAP_APPFONT ( 12, 29 ) ; \
+ Size = MAP_APPFONT ( 147 , 12 ) ; \
+ Text = "~Aus Dokumentinhalt" ; \
+ Text [ ENGLISH ] = "From document content" ; \
+ Text[ english_us ] = "~From document content";\
+ Text[ portuguese ] = "A partir do ~conteúdo do documento";\
+ Text[ russian ] = "Èç ñîäåðæèìîãî äîêóìåíòà";\
+ Text[ greek ] = "~Áðü ôï ðåñéå÷üìåíï ôïõ åããñÜöïõ";\
+ Text[ dutch ] = "Uit ~documentinhoud";\
+ Text[ french ] = "À partir du contenu du ~document";\
+ Text[ spanish ] = "~Del contenido del documento";\
+ Text[ italian ] = "Dal contenuto del documento";\
+ Text[ danish ] = "fra dokumentindholdet";\
+ Text[ swedish ] = "~Från dokumentinnehåll";\
+ Text[ polish ] = "Z zawartoœci dokumentu";\
+ Text[ portuguese_brazilian ] = "From document content";\
+ Text[ japanese ] = "•¶‘“à—e‚©‚ç(~F)";\
+ Text[ korean ] = "¹®¼­ ³»¿ë¿¡¼­ ºÎÅÍ(~F)";\
+ Text[ chinese_simplified ] = "²ÉÓÃÎĵµÄÚÈÝ";\
+ Text[ chinese_traditional ] = "±q¤å¥ó¤º®e";\
+ Text[ arabic ] = "ãä ãÍÊæíÇÊ ÇáãÓÊäÏ";\
+ Text[ turkish ] = "~Belge içeriðinden";\
+ }; \
+ FixedText FT_ENTRY \
+ { \
+ Pos = MAP_APPFONT ( 12 , 15 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 60 , 8 ) ; \
+ Text = "~Kurzbezeichnung" ; \
+ Text [ ENGLISH ] = "Short name" ; \
+ Text[ english_us ] = "Short ~name";\
+ Text[ portuguese ] = "~Abreviatura";\
+ Text[ russian ] = "Ñîêðàùåííîå íàçâàíèå";\
+ Text[ greek ] = "Óõíôïìïãñáößá";\
+ Text[ dutch ] = "Beknopte aand~uiding";\
+ Text[ french ] = "~Abrégé";\
+ Text[ spanish ] = "Abre~viatura";\
+ Text[ italian ] = "Abbreviazione";\
+ Text[ danish ] = "Kort betegnelse";\
+ Text[ swedish ] = "~Kort beteckning";\
+ Text[ polish ] = "Skrót";\
+ Text[ portuguese_brazilian ] = "Short name";\
+ Text[ japanese ] = "—ªÌ(~N)";\
+ Text[ korean ] = "ªÀº À̸§(~N)";\
+ Text[ chinese_simplified ] = "¼ò³Æ(~N)";\
+ Text[ chinese_traditional ] = "²µu´y­z(~N)";\
+ Text[ arabic ] = "ÇÓã ãÎÊÕÑ";\
+ Text[ turkish ] = "K~ýsaltma";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ Edit ED_ENTRY \
+ { \
+ Border = TRUE ; \
+ Pos = MAP_APPFONT ( 75 , 14 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 74 , 12 ) ; \
+ TabStop = TRUE ; \
+ Left = TRUE ; \
+ }; \
+ ListBox LB_ENTRY \
+ { \
+ Border = TRUE ; \
+ Pos = MAP_APPFONT ( 75 , 14 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 74 , 50 ) ; \
+ TabStop = TRUE ; \
+ DropDown = TRUE ; \
+ }; \
+ FixedText FT_AUTHOR \
+ { \
+ Pos = MAP_APPFONT ( 12 , 28 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 60 , 8 ) ; \
+ Text = "Autor" ; \
+ Text [ ENGLISH ] = "Author" ; \
+ Text[ english_us ] = "Author";\
+ Text[ portuguese ] = "Autor";\
+ Text[ russian ] = "Àâòîð";\
+ Text[ greek ] = "ÓõíôÜêôçò";\
+ Text[ dutch ] = "Auteur";\
+ Text[ french ] = "Auteur";\
+ Text[ spanish ] = "Autor";\
+ Text[ italian ] = "Autore";\
+ Text[ danish ] = "Forfatter";\
+ Text[ swedish ] = "Författare";\
+ Text[ polish ] = "Autor";\
+ Text[ portuguese_brazilian ] = "Author";\
+ Text[ japanese ] = "’˜ŽÒ";\
+ Text[ korean ] = "ÀÛ¼ºÀÚ";\
+ Text[ chinese_simplified ] = "×÷Õß";\
+ Text[ chinese_traditional ] = "§@ªÌ";\
+ Text[ arabic ] = "ÇáãÄáÝ";\
+ Text[ turkish ] = "Yazan";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ FixedText FI_AUTHOR \
+ { \
+ Pos = MAP_APPFONT ( 75 , 28 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 74 , 20 ) ; \
+ WordBreak = TRUE; \
+ }; \
+ FixedText FT_TITLE \
+ { \
+ Pos = MAP_APPFONT ( 12 , 54 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 60 , 8 ) ; \
+ Text = "Titel" ; \
+ Text [ ENGLISH ] = "Title" ; \
+ Text[ english_us ] = "Title";\
+ Text[ portuguese ] = "Título";\
+ Text[ russian ] = "Çàãîëîâîê";\
+ Text[ greek ] = "Ôßôëïò";\
+ Text[ dutch ] = "Titel";\
+ Text[ french ] = "Titre";\
+ Text[ spanish ] = "Título";\
+ Text[ italian ] = "Titolo";\
+ Text[ danish ] = "Titel";\
+ Text[ swedish ] = "Titel";\
+ Text[ polish ] = "Tytu³";\
+ Text[ portuguese_brazilian ] = "Title";\
+ Text[ japanese ] = "À²ÄÙ";\
+ Text[ korean ] = "Á¦¸ñ";\
+ Text[ chinese_simplified ] = "±êÌâ";\
+ Text[ chinese_traditional ] = "¼ÐÃD";\
+ Text[ arabic ] = "ÇáÚäæÇä";\
+ Text[ turkish ] = "Baþlýk";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ FixedText FI_TITLE \
+ { \
+ Pos = MAP_APPFONT ( 75 , 54 + RADIO_BUTTON_HEIGHT) ; \
+ Size = MAP_APPFONT ( 74 , 20 ) ; \
+ WordBreak = TRUE; \
+ }; \
+ GroupBox GB_ENTRY \
+ { \
+ Pos = MAP_APPFONT ( 6 , 3 ) ; \
+ Size = MAP_APPFONT ( 146 , 112 + RADIO_BUTTON_HEIGHT) ; \
+ Text = "Eintrag" ; \
+ Text [ ENGLISH ] = "Entry" ; \
+ Text[ english_us ] = "Entry";\
+ Text[ portuguese ] = "Entrada";\
+ Text[ russian ] = "Ýëåìåíò";\
+ Text[ greek ] = "Êáôá÷þñéóç";\
+ Text[ dutch ] = "Item";\
+ Text[ french ] = "Entrée";\
+ Text[ spanish ] = "Entrada";\
+ Text[ italian ] = "Voce";\
+ Text[ danish ] = "Element";\
+ Text[ swedish ] = "Post";\
+ Text[ polish ] = "Wpis";\
+ Text[ portuguese_brazilian ] = "Entry";\
+ Text[ japanese ] = "€–Ú";\
+ Text[ korean ] = "Ç׸ñ";\
+ Text[ chinese_simplified ] = "ÌõÄ¿";\
+ Text[ chinese_traditional ] = "¶µ¥Ø";\
+ Text[ arabic ] = "ÅÏÎÇá";\
+ Text[ turkish ] = "Giriþ";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ OKButton PB_OK \
+ { \
+ Pos = MAP_APPFONT ( 162 , 6 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ TabStop = TRUE ; \
+ DefButton = TRUE ; \
+ Text = "Einfügen"; \
+ Text[English] = "Insert"; \
+ Text[ english_us ] = "Insert";\
+ Text[ portuguese ] = "Inserir";\
+ Text[ russian ] = "Âñòàâèòü";\
+ Text[ greek ] = "ÐñïóèÞêç";\
+ Text[ dutch ] = "Invoegen";\
+ Text[ french ] = "Insérer";\
+ Text[ spanish ] = "Insertar";\
+ Text[ italian ] = "Inserisci";\
+ Text[ danish ] = "Indsæt";\
+ Text[ swedish ] = "Infoga";\
+ Text[ polish ] = "Wstaw";\
+ Text[ portuguese_brazilian ] = "Insert";\
+ Text[ japanese ] = "‘}“ü";\
+ Text[ korean ] = "»ðÀÔ";\
+ Text[ chinese_simplified ] = "²åÈë";\
+ Text[ chinese_traditional ] = "´¡¤J";\
+ Text[ arabic ] = "ÅÏÑÇÌ";\
+ Text[ turkish ] = "Ekle";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ CancelButton PB_CANCEL \
+ { \
+ Pos = MAP_APPFONT ( 162 , 23 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ Text = "Schließen"; \
+ Text[English] = "Close"; \
+ Text[ english_us ] = "Close";\
+ Text[ portuguese ] = "Fechar";\
+ Text[ russian ] = "Çàêðûòü";\
+ Text[ greek ] = "Êëåßóéìï";\
+ Text[ dutch ] = "Sluiten";\
+ Text[ french ] = "Fermer";\
+ Text[ spanish ] = "Cerrar";\
+ Text[ italian ] = "Chiudi";\
+ Text[ danish ] = "Luk";\
+ Text[ swedish ] = "Stäng";\
+ Text[ polish ] = "Zamknij";\
+ Text[ portuguese_brazilian ] = "Close";\
+ Text[ japanese ] = "•Â‚¶‚é";\
+ Text[ korean ] = "´Ý±â";\
+ Text[ chinese_simplified ] = "¹Ø±Õ";\
+ Text[ chinese_traditional ] = "Ãö³¬";\
+ Text[ arabic ] = "ÅÛáÇÞ";\
+ Text[ turkish ] = "Kapat";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ HelpButton PB_HELP \
+ { \
+ Pos = MAP_APPFONT ( 162 , 43 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ }; \
+ PushButton PB_CREATEENTRY \
+ { \
+ Pos = MAP_APPFONT ( 162 , 60 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ Text = "Ne~u"; \
+ Text[English] = "New"; \
+ Text[ english_us ] = "~New";\
+ Text[ portuguese ] = "~Novo";\
+ Text[ russian ] = "Ñîçäàòü";\
+ Text[ greek ] = "Äçìéïõñãßá";\
+ Text[ dutch ] = "Nie~uw";\
+ Text[ french ] = "~Nouvelle entrée";\
+ Text[ spanish ] = "N~uevo";\
+ Text[ italian ] = "Nuovo";\
+ Text[ danish ] = "Ny";\
+ Text[ swedish ] = "N~y";\
+ Text[ polish ] = "Nowy";\
+ Text[ portuguese_brazilian ] = "Create entry";\
+ Text[ japanese ] = "V‹Kì¬";\
+ Text[ korean ] = "»õ·Î(~N)";\
+ Text[ chinese_simplified ] = "н¨";\
+ Text[ chinese_traditional ] = "·s«Ø";\
+ Text[ arabic ] = "ÌÏíÏ";\
+ Text[ turkish ] = "~Yeni";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ PushButton PB_EDITENTRY \
+ { \
+ Pos = MAP_APPFONT ( 162 , 77 ) ; \
+ Size = MAP_APPFONT ( 50 , 14 ) ; \
+ Text = "~Bearbeiten"; \
+ Text[English] = "Edit"; \
+ Text[ english_us ] = "Edit";\
+ Text[ portuguese ] = "~Editar";\
+ Text[ russian ] = "Ïðàâêà";\
+ Text[ greek ] = "Åðåîåñãáóßá";\
+ Text[ dutch ] = "~Bewerken";\
+ Text[ french ] = "É~diter";\
+ Text[ spanish ] = "~Editar";\
+ Text[ italian ] = "~Modifica";\
+ Text[ danish ] = "Rediger";\
+ Text[ swedish ] = "Redigera";\
+ Text[ polish ] = "~Edytuj";\
+ Text[ portuguese_brazilian ] = "Edit";\
+ Text[ japanese ] = "•ÒW(~Ej";\
+ Text[ korean ] = "ÆíÁý";\
+ Text[ chinese_simplified ] = "±à¼­";\
+ Text[ chinese_traditional ] = "½s¿è";\
+ Text[ arabic ] = "ÊÍÑíÑ";\
+ Text[ turkish ] = "D~üzenle";\
+ }; \
+ String ST_CHANGE \
+ { \
+ Text = "Ändern"; \
+ Text[English] = "Apply"; \
+ Text[ english_us ] = "Modify";\
+ Text[ portuguese ] = "Modificar";\
+ Text[ russian ] = "Èçìåíèòü";\
+ Text[ greek ] = "ÁëëáãÞ";\
+ Text[ dutch ] = "Wijzigen";\
+ Text[ french ] = "Modifier";\
+ Text[ spanish ] = "Modificar";\
+ Text[ italian ] = "Cambia";\
+ Text[ danish ] = "Modificer";\
+ Text[ swedish ] = "Ändra";\
+ Text[ polish ] = "Modyfikuj";\
+ Text[ portuguese_brazilian ] = "Apply";\
+ Text[ japanese ] = "•ÏX";\
+ Text[ korean ] = "¼öÁ¤";\
+ Text[ chinese_simplified ] = "¸ü¸Ä";\
+ Text[ chinese_traditional ] = "Åܧó";\
+ Text[ arabic ] = "ÊØÈíÞ";\
+ Text[ turkish ] = "Deðiþtir";\
+ Text[ language_user1 ] = " ";\
+ }; \
+ };
+
+ModalDialog DLG_EDIT_AUTHMARK
+{
+ OutputSize = TRUE ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Sizeable = FALSE ;
+ HelpID = FN_EDIT_AUTH_ENTRY_DLG;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 218 , 118 ) ;
+ #define RADIO_BUTTON_HEIGHT 0
+ AUTH_DIALOG_WINDOW
+};
+ModelessDialog DLG_INSAUTHMARK
+{
+ OutputSize = TRUE ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Sizeable = FALSE ;
+// Zoomable = TRUE ;
+ HelpID = FN_INSERT_AUTH_ENTRY_DLG;
+ SVLook = TRUE ;
+ #define RADIO_BUTTON_HEIGHT 30
+ Size = MAP_APPFONT ( 218 , 118 + RADIO_BUTTON_HEIGHT) ;
+// Moveable = TRUE ;
+ AUTH_DIALOG_WINDOW
+};
+ModalDialog DLG_CREATE_AUTH_ENTRY
+{
+ HelpId = HID_DLG_CREATE_AUTH_ENTRY;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 365 , 203 ) ;
+ Text = "Literatureintrag definieren" ;
+ Text [ ENGLISH ] = "Define authority entry" ;
+ Moveable = TRUE ;
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 312 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 312 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 312 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ GroupBox GB_ENTRIES
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 300 , 197 ) ;
+ Text = "Eintragsdaten" ;
+ Text [ ENGLISH ] = "Entry data" ;
+ Text[ english_us ] = "Entry data";
+ Text[ portuguese ] = "Dados da entrada";
+ Text[ russian ] = "Äàííûå ýëåìåíòà";
+ Text[ greek ] = "ÄåäïìÝíá åããñáöÞò";
+ Text[ dutch ] = "Itemgegevens";
+ Text[ french ] = "Données de l'entrée";
+ Text[ spanish ] = "Datos de la entrada";
+ Text[ italian ] = "Dati voce";
+ Text[ danish ] = "Elementdata";
+ Text[ swedish ] = "Postdata";
+ Text[ polish ] = "Dane wpisu";
+ Text[ portuguese_brazilian ] = "Entry data";
+ Text[ japanese ] = "“ü—Í“ú";
+ Text[ korean ] = "Ç׸ñ µ¥ÀÌÅÍ";
+ Text[ chinese_simplified ] = "ÌõÄ¿Êý¾Ý";
+ Text[ chinese_traditional ] = "±ø¥Ø¼ÆÕu";
+ Text[ arabic ] = "ÈíÇäÇÊ ÇáÅÏÎÇá";
+ Text[ turkish ] = "Giriþ verileri";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ english_us ] = "Define Bibliography Entry";
+ Text[ portuguese ] = "Definir entrada bibliográfica";
+ Text[ russian ] = "Çàäàòü ýëåìåíò ñïèñêà ëèòåðàòóðû";
+ Text[ greek ] = "Ïñéóìüò åããñáöÞò âéâëéïãñáößáò";
+ Text[ dutch ] = "Als Item voor literatuurlijst definiëren";
+ Text[ french ] = "Définir une entrée de bibliographie";
+ Text[ spanish ] = "Definir entrada de bibliografía";
+ Text[ italian ] = "Definisci voce bibliografica";
+ Text[ danish ] = "Definer litteraturlisteelement";
+ Text[ swedish ] = "Definiera litteraturpost";
+ Text[ polish ] = "Zdefiniuj wpis bibliograficzny";
+ Text[ portuguese_brazilian ] = "Define authority entry";
+ Text[ japanese ] = "ŽQl•¶Œ£€–Ú‚Ì’è‹`";
+ Text[ korean ] = "Âü°í¹®Çå Ç׸ñ Á¤ÀÇ";
+ Text[ chinese_simplified ] = "¶¨ÒåÎÄÏ×ÌõÄ¿";
+ Text[ chinese_traditional ] = "©w¸q°Ñ¦Ò¤åÄm±ø¥Ø";
+ Text[ arabic ] = "ÊÚÑíÝ ÅÏÎÇá Ýí ÝåÑÓ ÇáãÑÇÌÚ";
+ Text[ turkish ] = "Kaynakça giriþini tanýmla";
+};
+String STR_AUTHMRK_EDIT
+{
+ Text = "Literaturverzeichniseintrag bearbeiten" ;
+ Text [ ENGLISH ] = "Edit authority entry" ;
+
+ Text[ english_us ] = "Edit bibliography entry";
+ Text[ portuguese ] = "Editar entrada bibliográfica";
+ Text[ russian ] = "Ïðàâêà ýëåìåíòà ñïèñêà ëèòåðàòóðû";
+ Text[ greek ] = "Åðåîåñãáóßá åããñáöÞò âéâëéïãñáößáò";
+ Text[ dutch ] = "Item voor literatuurlijst bewerken";
+ Text[ french ] = "Éditer une entrée de bibliographie";
+ Text[ spanish ] = "Editar entrada de bibliografía";
+ Text[ italian ] = "Modifica voce bibliografica";
+ Text[ danish ] = "Rediger litteraturlisteelement";
+ Text[ swedish ] = "Redigera post i litteraturförteckning";
+ Text[ polish ] = "Edytuj wpis bibliograficzny";
+ Text[ portuguese_brazilian ] = "Edit authority entry";
+ Text[ japanese ] = "ŽQl•¶Œ£•\\‚Ì•ÒW";
+ Text[ korean ] = "Âü°í¹®Çå Ç׸ñ ÆíÁý";
+ Text[ chinese_simplified ] = "±à¼­ÎÄÏ×Ŀ¼ÌõÄ¿";
+ Text[ chinese_traditional ] = "½s¿è°Ñ¦Ò¤åÄm±ø¥Ø";
+ Text[ arabic ] = "ÊÍÑíÑ ÅÏÎÇá Ýí ÝåÑÓ ÇáãÑÇÌÚ";
+ Text[ turkish ] = "Kaynakça dizini giriþini düzenle";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTHMRK_INSERT
+{
+ Text = "Literaturverzeichniseintrag einfügen" ;
+ Text [ ENGLISH ] = "Insert authority entry" ;
+
+ Text[ english_us ] = "Insert bibliography entry";
+ Text[ portuguese ] = "Inserir entrada bibliográfica";
+ Text[ russian ] = "Âñòàâèòü ýëåìåíò ñïèñêà ëèòåðàòóðû";
+ Text[ greek ] = "ÐñïóèÞêç åããñáöÞò âéâëéïãñáößáò";
+ Text[ dutch ] = "Item invoegen in literatuurlijst";
+ Text[ french ] = "Insérer une entrée de bibliographie";
+ Text[ spanish ] = "Insertar entrada de bibliografía";
+ Text[ italian ] = "Inserisci voce bibliografica";
+ Text[ danish ] = "Indsæt litteraturlisteelement";
+ Text[ swedish ] = "Infoga post i litteraturförteckning";
+ Text[ polish ] = "Wstaw wpis bibliograficzny";
+ Text[ portuguese_brazilian ] = "Insert authority entry";
+ Text[ japanese ] = "ŽQl•¶Œ£‚Ì‘}“ü";
+ Text[ korean ] = "Âüº¸¹®Çå Ç׸ñ Á¤ÀÇ";
+ Text[ chinese_simplified ] = "²åÈëÎÄÏ×Ŀ¼ÌõÄ¿";
+ Text[ chinese_traditional ] = "´¡¤J°Ñ¦Ò¤åÄm±ø¥Ø";
+ Text[ arabic ] = "ÅÏÑÇÌ ÅÏÎÇá Ýí ÝåÑÓ ÇáãÑÇÌÚ";
+ Text[ turkish ] = "Kaynakça dizini giriþi ekle";
+ Text[ language_user1 ] = " ";
+};
+QueryBox DLG_CHANGE_AUTH_ENTRY
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Der Bibliographie-Eintrag ist bereits mit abweichenden Daten im Dokument enthalten. "\
+ "Möchten sie die bereits enthaltenen Einträge anpassen?" ;
+ MESSAGE [ English ] = "The bibliography entry is already contained in the document with different data."\
+ "Do you want to adjust the existing bibliography entries?" ;
+ MESSAGE[ english_us ] = "The bibliography entry is already contained in the document with different data. ";
+ MESSAGE[ portuguese ] = "A entrada bibliográfica já existe no documento com dados diferentes. ";
+ MESSAGE[ russian ] = "Ýòîò ýëåìåíò áèáëèîãðàôèè ñ íåêîòîðûìè îòëè÷íûìè äàííûìè óæå ñîäåðæèòñÿ â äîêóìåíòå. ";
+ MESSAGE[ greek ] = "Ç åããñáöÞ âéâëéïèÞêçò ðåñéÝ÷åôáé ìå Þäç ìç óõìðßðôïíôá äåäïìÝíá óôï Ýããñáöï. ";
+ MESSAGE[ dutch ] = "Het bibliografie-item bevindt zich reeds met andere gegevens in het document. ";
+ MESSAGE[ french ] = "L'entrée de bibliographie existe déjà en relation avec des données différentes dans le document. ";
+ MESSAGE[ spanish ] = "La entrada de bibliografía existe ya con datos diferentes en el documento. ";
+ MESSAGE[ italian ] = "La voce bibliografica è già presente nel documento con dati diversi. ";
+ MESSAGE[ danish ] = "Litteraturlisteelementet er allerede indeholdt i dokumentet med afvigende data. ";
+ MESSAGE[ swedish ] = "Bibliografiposten finns redan med avvikande data i dokumentet. ";
+ MESSAGE[ polish ] = "Wpis bibliograficzny zawarty jest w dokumencie ³¹cznie z innymi danymi.";
+ MESSAGE[ portuguese_brazilian ] = "The bibliography entry is already contained in the document with different data.";
+ MESSAGE[ japanese ] = "‚±‚ÌŽQl•¶Œ£‚Í‚±‚Ì•¶‘‚̕ʂ̌Š‚É‚·‚Å‚Éo‚Ä‚«‚Ä‚¢‚Ü‚·B ";
+ MESSAGE[ korean ] = "Âü°í¹®Çå Ç׸ñÀº ÀÌ¹Ì ´Ù¸¥ µ¥ÀÌÅÍ¿Í ÇÔ²² ¹®¼­¿¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. ";
+ MESSAGE[ chinese_simplified ] = "ÎĵµÄÚÒѾ­º¬Óи½´ø²»Í¬Êý¾ÝµÄĿ¼ÌõÄ¿¡£ ";
+ MESSAGE[ chinese_traditional ] = "¦b¤å¥ó¤º¤w¸g§t¦³¤£¦P¼ÆÕuªº¥Ø¿ý¶µ¥Ø¡C ";
+ MESSAGE[ arabic ] = "ÅÏÎÇá ÇáãÑÌÚ ãæÌæÏ ÈÇáÝÚá Ýí ÇáãÓÊäÏ ÈÈíÇäÇÊ ãÎÊáÝÉ. ";
+ MESSAGE[ turkish ] = "Kaynakça giriþi, farklý veriler ile belgede mevcut.";
+};
+
diff --git a/sw/source/ui/index/makefile.mk b/sw/source/ui/index/makefile.mk
new file mode 100644
index 000000000000..60b1812990bb
--- /dev/null
+++ b/sw/source/ui/index/makefile.mk
@@ -0,0 +1,105 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=index
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ cnttab.cxx \
+ idxmrk.cxx \
+ multmrk.cxx \
+ toxmgr.cxx
+
+SRCFILES = \
+ cnttab.src \
+ idxmrk.src \
+ multmrk.src
+
+SLOFILES = \
+ $(SLO)$/cnttab.obj \
+ $(SLO)$/idxmrk.obj \
+ $(SLO)$/multmrk.obj \
+ $(SLO)$/toxmgr.obj
+
+EXCEPTIONSFILES = \
+ $(SLO)$/cnttab.obj \
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/index/multmrk.cxx b/sw/source/ui/index/multmrk.cxx
new file mode 100644
index 000000000000..2baf57d5144e
--- /dev/null
+++ b/sw/source/ui/index/multmrk.cxx
@@ -0,0 +1,224 @@
+/*************************************************************************
+ *
+ * $RCSfile: multmrk.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "swtypes.hxx"
+
+#include "multmrk.hxx"
+#include "toxmgr.hxx"
+
+#include "index.hrc"
+#include "multmrk.hrc"
+
+
+SwMultiTOXMarkDlg::SwMultiTOXMarkDlg( Window* pParent, SwTOXMgr& rTOXMgr ) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_MULTMRK)),
+
+ aEntryFT(this, SW_RES(FT_ENTRY)),
+ aTextFT(this, SW_RES(FT_TEXT)),
+ aTOXFT(this, SW_RES(FT_TOX)),
+ aOkBT(this, SW_RES(OK_BT)),
+ aCancelBT(this, SW_RES(CANCEL_BT)),
+ aTOXLB(this, SW_RES(LB_TOX)),
+ aTOXGB(this, SW_RES(GB_TOX)),
+ rMgr( rTOXMgr ),
+ nPos(0)
+{
+ aTOXLB.SetSelectHdl(LINK(this, SwMultiTOXMarkDlg, SelectHdl));
+
+ USHORT nSize = rMgr.GetTOXMarkCount();
+ for(USHORT i=0; i < nSize; ++i)
+ aTOXLB.InsertEntry(rMgr.GetTOXMark(i)->GetText());
+
+ aTOXLB.SelectEntryPos(0);
+ aTextFT.SetText(rMgr.GetTOXMark(0)->GetTOXType()->GetTypeName());
+
+ FreeResource();
+}
+
+
+IMPL_LINK_INLINE_START( SwMultiTOXMarkDlg, SelectHdl, ListBox *, pBox )
+{
+ if(pBox->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND)
+ { SwTOXMark* pMark = rMgr.GetTOXMark(pBox->GetSelectEntryPos());
+ aTextFT.SetText(pMark->GetTOXType()->GetTypeName());
+ nPos = pBox->GetSelectEntryPos();
+ }
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwMultiTOXMarkDlg, SelectHdl, ListBox *, pBox )
+
+
+void SwMultiTOXMarkDlg::Apply()
+{
+ rMgr.SetCurTOXMark(nPos);
+}
+
+/*-----------------25.02.94 22:06-------------------
+ dtor ueberladen
+--------------------------------------------------*/
+
+
+SwMultiTOXMarkDlg::~SwMultiTOXMarkDlg() {}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.28 2000/09/18 16:05:53 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.27 1997/11/05 11:43:50 OS
+ Segmentierung entfernt
+
+
+ Rev 1.26 05 Nov 1997 12:43:50 OS
+ Segmentierung entfernt
+
+ Rev 1.25 03 Nov 1997 13:20:56 MA
+ precomp entfernt
+
+ Rev 1.24 14 Nov 1996 15:34:12 TRI
+ includes
+
+ Rev 1.23 11 Nov 1996 10:55:34 MA
+ ResMgr
+
+ Rev 1.22 26 Jul 1996 21:04:22 MA
+ includes
+
+ Rev 1.21 06 Feb 1996 15:20:48 JP
+ Link Umstellung 305
+
+ Rev 1.20 24 Nov 1995 16:59:04 OM
+ PCH->PRECOMPILED
+
+ Rev 1.19 08 Nov 1995 13:47:00 OM
+ Change->Set
+
+ Rev 1.18 30 Aug 1995 14:07:02 MA
+ fix: sexport'iert
+
+ Rev 1.17 21 Aug 1995 09:36:02 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.16 25 Oct 1994 18:18:46 ER
+ add: PCH
+
+ Rev 1.15 26 Feb 1994 02:03:52 ER
+ virt. dtor mit export
+
+ Rev 1.14 25 Feb 1994 22:07:08 ER
+ virtuellen dtor wegen export ueberladen
+
+ Rev 1.13 22 Feb 1994 14:39:38 ER
+ EXPORT --> SEXPORT
+
+ Rev 1.12 21 Feb 1994 22:39:20 ER
+ LINK EXPORT
+
+ Rev 1.11 17 Feb 1994 08:46:28 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.10 16 Feb 1994 20:07:06 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.9 16 Feb 1994 16:46:26 MI
+ Pragmas zurechtgerueckt
+
+ Rev 1.8 28 Jan 1994 11:43:50 MI
+ TCOV() entfernt, SW_... nach SEG_... umbenannt
+
+ Rev 1.7 13 Jan 1994 08:44:40 MI
+ Segmentierung per #define ermoeglicht
+
+ Rev 1.6 09 Jan 1994 21:12:12 MI
+ Provisorische Segmentierung
+
+ Rev 1.5 26 Sep 1993 18:42:02 MI
+ Segmentierung
+
+ Rev 1.4 28 May 1993 11:48:22 VB
+ Umstellung Precompiled Headers
+
+ Rev 1.3 26 May 1993 10:36:32 MS
+ Anpassung SwTOXMgr
+
+ Rev 1.2 27 Apr 1993 08:37:28 OK
+ NEU: #pragma hdrstop
+
+ Rev 1.1 26 Apr 1993 11:49:12 MS
+ Markentraveling aktiviert
+
+ Rev 1.0 25 Feb 1993 14:47:06 MS
+ Initial revision.
+
+ Rev 1.12 23 Feb 1993 13:42:18 MS
+ Form auswerten
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/index/multmrk.hrc b/sw/source/ui/index/multmrk.hrc
new file mode 100644
index 000000000000..254a01664612
--- /dev/null
+++ b/sw/source/ui/index/multmrk.hrc
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: multmrk.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define FT_ENTRY 1
+#define FT_TOX 2
+#define OK_BT 3
+#define LB_TOX 4
+#define FT_TEXT 5
+#define GB_TOX 6
+#define CANCEL_BT 7
+
diff --git a/sw/source/ui/index/multmrk.src b/sw/source/ui/index/multmrk.src
new file mode 100644
index 000000000000..b99b69001171
--- /dev/null
+++ b/sw/source/ui/index/multmrk.src
@@ -0,0 +1,217 @@
+/*************************************************************************
+ *
+ * $RCSfile: multmrk.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "index.hrc"
+#include "multmrk.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_MULTMRK
+{
+ HelpID = FN_EDIT_IDX_ENTRY_DLG ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 220 , 95 ) ;
+ Text = "Verzeichnismarkierungen" ;
+ Text [ English ] = "Index marks" ;
+ Text [ norwegian ] = "Stikkordregistermerker" ;
+ Text [ italian ] = "Contrassegni indice" ;
+ Text [ portuguese_brazilian ] = "Marcas do índice" ;
+ Text [ portuguese ] = "Marcas do índice" ;
+ Text [ finnish ] = "Hakemistomerkinnät" ;
+ Text [ danish ] = "Indeksmarkeringer" ;
+ Text [ french ] = "Marques d'index" ;
+ Text [ swedish ] = "Förteckningsmarkeringar" ;
+ Text [ dutch ] = "Indexmarkeringen" ;
+ Text [ spanish ] = "Marcas del índice" ;
+ Text [ english_us ] = "Index Markings" ;
+ Moveable = TRUE ;
+ FixedText FT_ENTRY
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 41 , 8 ) ;
+ Text = "Verzeichnis" ;
+ Text [ English ] = "Index" ;
+ Text [ norwegian ] = "Stikkordregister" ;
+ Text [ italian ] = "Indice" ;
+ Text [ portuguese_brazilian ] = "Índice" ;
+ Text [ portuguese ] = "Índice" ;
+ Text [ finnish ] = "Hakemisto" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ french ] = "Index" ;
+ Text [ swedish ] = "Förteckning" ;
+ Text [ dutch ] = "Index" ;
+ Text [ spanish ] = "Índice" ;
+ Text [ english_us ] = "Index" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ russian ] = "Óêàçàòåëü";
+ Text[ polish ] = "Indeks";
+ Text[ japanese ] = "õˆø";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÇáÝåÑÓ";
+ Text[ dutch ] = "Index";
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ greek ] = "ÅõñåôÞñéï";
+ Text[ korean ] = "»öÀÎ";
+ Text[ turkish ] = "Dizin";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_TEXT
+ {
+ Pos = MAP_APPFONT ( 53 , 14 ) ;
+ Size = MAP_APPFONT ( 100 , 8 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_TOX
+ {
+ Pos = MAP_APPFONT ( 12 , 28 ) ;
+ Size = MAP_APPFONT ( 41 , 8 ) ;
+ Text = "Eintrag" ;
+ Text [ English ] = "Entry" ;
+ Text [ norwegian ] = "Inngang" ;
+ Text [ italian ] = "Voce" ;
+ Text [ portuguese_brazilian ] = "Entrada" ;
+ Text [ portuguese ] = "Entrada" ;
+ Text [ finnish ] = "Merkintä" ;
+ Text [ danish ] = "Element" ;
+ Text [ french ] = "Entrée" ;
+ Text [ swedish ] = "Post" ;
+ Text [ dutch ] = "Item" ;
+ Text [ spanish ] = "Entrada" ;
+ Text [ english_us ] = "Entry" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÌõÄ¿";
+ Text[ russian ] = "Ýëåìåíò";
+ Text[ polish ] = "Wpis";
+ Text[ japanese ] = "€–Ú";
+ Text[ chinese_traditional ] = "¶µ¥Ø";
+ Text[ arabic ] = "ÇáÅÏÎÇá";
+ Text[ dutch ] = "Item";
+ Text[ chinese_simplified ] = "ÌõÄ¿";
+ Text[ greek ] = "Êáôá÷þñéóç";
+ Text[ korean ] = "Ç׸ñ";
+ Text[ turkish ] = "Giriþ";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton OK_BT
+ {
+ Pos = MAP_APPFONT ( 165 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton CANCEL_BT
+ {
+ Pos = MAP_APPFONT ( 165 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ ListBox LB_TOX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 53 , 28 ) ;
+ Size = MAP_APPFONT ( 100 , 52 ) ;
+ TabStop = TRUE ;
+ AutoHScroll = TRUE ;
+ };
+ GroupBox GB_TOX
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 153 , 85 ) ;
+ Text = "Auswahl" ;
+ Text [ English ] = "Choice" ;
+ Text [ norwegian ] = "Choice" ;
+ Text [ italian ] = "Scelta" ;
+ Text [ portuguese_brazilian ] = "Escolha" ;
+ Text [ portuguese ] = "Opções" ;
+ Text [ finnish ] = "Määritykset" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ french ] = "Sélection" ;
+ Text [ swedish ] = "Urval" ;
+ Text [ dutch ] = "Selectie" ;
+ Text [ spanish ] = "Opción" ;
+ Text [ english_us ] = "Selection" ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ";
+ Text[ russian ] = "Îòáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð";
+ Text[ chinese_traditional ] = "¿ï¾Ü";
+ Text[ arabic ] = "ÊÍÏíÏ";
+ Text[ dutch ] = "Selectie";
+ Text[ chinese_simplified ] = "Ñ¡Ôñ";
+ Text[ greek ] = "ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ";
+ Text[ turkish ] = "Seçim";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "Ŀ¼±ê¼Ç";
+ Text[ russian ] = "Âûäåëåíèÿ óêàçàòåëÿ";
+ Text[ polish ] = "Znaczniki indeksu";
+ Text[ japanese ] = "õˆø‘I‘ð€–Ú";
+ Text[ chinese_traditional ] = "¯Á¤Þ¿ï¨ú";
+ Text[ arabic ] = "ÊÍÏíÏÇÊ ÇáÝåÑÓ";
+ Text[ dutch ] = "Indexmarkeringen";
+ Text[ chinese_simplified ] = "Ŀ¼±ê¼Ç";
+ Text[ greek ] = "ÓçìÜíóåéò åõñåôçñßïõ";
+ Text[ korean ] = "»öÀΠǥ½Ã";
+ Text[ turkish ] = "Dizin için iþaretlenen giriþler";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/index/toxmgr.cxx b/sw/source/ui/index/toxmgr.cxx
new file mode 100644
index 000000000000..cd937c8b2f01
--- /dev/null
+++ b/sw/source/ui/index/toxmgr.cxx
@@ -0,0 +1,798 @@
+/*************************************************************************
+ *
+ * $RCSfile: toxmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SHELLRES_HXX
+#include <shellres.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _SWVIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _TOXMGR_HXX
+#include <toxmgr.hxx>
+#endif
+#ifndef _AUTHFLD_HXX
+#include <authfld.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+/*-----------------23.01.98 07:41-------------------
+ Standard - Verzeichnisnamen herausreichen
+--------------------------------------------------*/
+const String& SwTOXBase::GetTOXName(TOXTypes eType)
+{
+ const String* pRet;
+ ShellResource* pShellRes = ViewShell::GetShellRes();
+ switch(eType)
+ {
+ case TOX_CONTENT : pRet = &pShellRes->aTOXContentName; break;
+ case TOX_INDEX : pRet = &pShellRes->aTOXIndexName; break;
+ case TOX_USER : pRet = &pShellRes->aTOXUserName; break;
+ case TOX_ILLUSTRATIONS: pRet = &pShellRes->aTOXIllustrationsName; break;
+ case TOX_OBJECTS : pRet = &pShellRes->aTOXObjectsName; break;
+ case TOX_TABLES : pRet = &pShellRes->aTOXTablesName; break;
+ case TOX_AUTHORITIES : pRet = &pShellRes->aTOXAuthoritiesName; break;
+ }
+ return *pRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Handhabung der Verzeichnisse durch TOXMgr
+ --------------------------------------------------------------------*/
+
+
+SwTOXMgr::SwTOXMgr(SwWrtShell* pShell):
+ pSh(pShell)
+{
+ GetTOXMarks();
+ SetCurTOXMark(0);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Aktuelle TOXMarks behandeln
+ --------------------------------------------------------------------*/
+
+
+USHORT SwTOXMgr::GetTOXMarks()
+{
+ return pSh->GetCurTOXMarks(aCurMarks);
+}
+
+
+SwTOXMark* SwTOXMgr::GetTOXMark(USHORT nId)
+{
+ if(aCurMarks.Count() > 0)
+ return aCurMarks[nId];
+ return 0;
+}
+
+
+void SwTOXMgr::DeleteTOXMark()
+{
+ SwTOXMark* pNext = 0;
+ if( pCurTOXMark )
+ {
+ pNext = (SwTOXMark*)&pSh->GotoTOXMark( *pCurTOXMark, TOX_NXT );
+ if( pNext == pCurTOXMark )
+ pNext = 0;
+
+ pSh->DeleteTOXMark( pCurTOXMark );
+ pSh->SetModified();
+ }
+ // zur naechsten wandern
+ pCurTOXMark = pNext;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Stichwortmarkierung einfuegen
+ --------------------------------------------------------------------*/
+
+
+/*void SwTOXMgr::InsertTOIMark(const String* pPrimKey, const String* pSecKey,
+ const String* pAltStr)
+{
+ SwTOXMark aMark(pSh->GetTOXType(TOX_INDEX, 0));
+
+ if( pPrimKey && pPrimKey->Len() )
+ {
+ aMark.SetPrimaryKey( *pPrimKey );
+
+ if( pSecKey && pSecKey->Len() )
+ aMark.SetSecondaryKey( *pSecKey );
+ }
+
+ if(pAltStr)
+ aMark.SetAlternativeText(*pAltStr);
+
+ pSh->StartAllAction();
+ pSh->SwEditShell::Insert(aMark);
+ pSh->EndAllAction();
+
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Inhaltsverzeichnismarkierung einfuegen
+ --------------------------------------------------------------------*/
+
+
+/*void SwTOXMgr::InsertTOCMark(int nLevel, const String* pAltStr)
+{
+ ASSERT(nLevel > 0 && nLevel <= MAXLEVEL, ungueltiger Level InsertTOCMark);
+ SwTOXMark aMark(pSh->GetTOXType(TOX_CONTENT, 0));
+ aMark.SetLevel(nLevel);
+
+ if(pAltStr)
+ aMark.SetAlternativeText(*pAltStr);
+
+ pSh->StartAllAction();
+ pSh->SwEditShell::Insert(aMark);
+ pSh->EndAllAction();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Benutzerverzeichnismarkierungen einfuegen
+ --------------------------------------------------------------------*/
+
+
+/*void SwTOXMgr::InsertTOUMark(const String& rTOUName, int nLevel,
+ const String* pAltStr)
+{
+ ASSERT(nLevel > 0 && nLevel <= MAXLEVEL, ungueltiger Level InsertTOCMark);
+ USHORT nId = GetUserTypeID(rTOUName);
+ SwTOXMark aMark(pSh->GetTOXType(TOX_USER, nId));
+ aMark.SetLevel(nLevel);
+
+ if(pAltStr)
+ aMark.SetAlternativeText(*pAltStr);
+
+ pSh->StartAllAction();
+ pSh->SwEditShell::Insert(aMark);
+ pSh->EndAllAction();
+}
+/* -----------------20.08.99 10:48-------------------
+
+ --------------------------------------------------*/
+void SwTOXMgr::InsertTOXMark(const SwTOXMarkDescription& rDesc)
+{
+ SwTOXMark* pMark = 0;
+ switch(rDesc.GetTOXType())
+ {
+ case TOX_CONTENT:
+ {
+ ASSERT(rDesc.GetLevel() > 0 && rDesc.GetLevel() <= MAXLEVEL,
+ ungueltiger Level InsertTOCMark);
+ pMark = new SwTOXMark(pSh->GetTOXType(TOX_CONTENT, 0));
+ pMark->SetLevel(rDesc.GetLevel());
+
+ if(rDesc.GetAltStr())
+ pMark->SetAlternativeText(*rDesc.GetAltStr());
+ }
+ break;
+ case TOX_INDEX:
+ {
+ pMark = new SwTOXMark(pSh->GetTOXType(TOX_INDEX, 0));
+
+ if( rDesc.GetPrimKey() && rDesc.GetPrimKey()->Len() )
+ {
+ pMark->SetPrimaryKey( *rDesc.GetPrimKey() );
+
+ if( rDesc.GetSecKey() && rDesc.GetSecKey()->Len() )
+ pMark->SetSecondaryKey( *rDesc.GetSecKey() );
+ }
+ if(rDesc.GetAltStr())
+ pMark->SetAlternativeText(*rDesc.GetAltStr());
+ pMark->SetMainEntry(rDesc.IsMainEntry());
+ }
+ break;
+ case TOX_USER:
+ {
+ ASSERT(rDesc.GetLevel() > 0 && rDesc.GetLevel() <= MAXLEVEL,
+ ungueltiger Level InsertTOCMark);
+ USHORT nId = rDesc.GetTOUName() ?
+ GetUserTypeID(*rDesc.GetTOUName()) : 0;
+ pMark = new SwTOXMark(pSh->GetTOXType(TOX_USER, nId));
+ pMark->SetLevel(rDesc.GetLevel());
+
+ if(rDesc.GetAltStr())
+ pMark->SetAlternativeText(*rDesc.GetAltStr());
+ }
+ break;
+ }
+ pSh->StartAllAction();
+ pSh->SwEditShell::Insert(*pMark);
+ pSh->EndAllAction();
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Update eines TOXMarks
+ --------------------------------------------------------------------*/
+
+
+void SwTOXMgr::UpdateTOXMark(const SwTOXMarkDescription& rDesc)
+{
+ ASSERT(pCurTOXMark, "kein aktuelles TOXMark");
+
+ pSh->StartAllAction();
+ if(pCurTOXMark->GetTOXType()->GetType() == TOX_INDEX)
+ {
+ if(rDesc.GetPrimKey() && rDesc.GetPrimKey()->Len() )
+ {
+ pCurTOXMark->SetPrimaryKey( *rDesc.GetPrimKey() );
+
+ if( rDesc.GetSecKey() && rDesc.GetSecKey()->Len() )
+ pCurTOXMark->SetSecondaryKey( *rDesc.GetSecKey() );
+ else
+ pCurTOXMark->SetSecondaryKey( aEmptyStr );
+ }
+ else
+ pCurTOXMark->SetPrimaryKey( aEmptyStr );
+ pCurTOXMark->SetMainEntry(rDesc.IsMainEntry());
+ }
+ else
+ pCurTOXMark->SetLevel(rDesc.GetLevel());
+
+ if(rDesc.GetAltStr())
+ {
+ // JP 26.08.96: Bug 30344 - entweder der Text aus dem Doc oder
+ // ein Alternativ-Text, beides gibts nicht!
+ BOOL bReplace = pCurTOXMark->IsAlternativeText();
+ pCurTOXMark->SetAlternativeText( *rDesc.GetAltStr() );
+ if( !bReplace )
+ {
+ SwTOXMark aCpy( *pCurTOXMark );
+ aCurMarks.Remove(0, aCurMarks.Count());
+ pSh->DeleteTOXMark(pCurTOXMark);
+ pSh->SwEditShell::Insert( aCpy );
+ pCurTOXMark = 0;
+ }
+ }
+ pSh->SetModified();
+ pSh->EndAllAction();
+ // Bug 36207 pCurTOXMark zeigt hier in den Wald!
+ if(!pCurTOXMark)
+ {
+ pSh->Left();
+ pSh->GetCurTOXMarks(aCurMarks);
+ SetCurTOXMark(0);
+ }
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: UserTypeID ermitteln
+ --------------------------------------------------------------------*/
+
+
+USHORT SwTOXMgr::GetUserTypeID(const String& rStr)
+{
+ USHORT nSize = pSh->GetTOXTypeCount(TOX_USER);
+ for(USHORT i=0; i < nSize; ++i)
+ {
+ const SwTOXType* pTmp = pSh->GetTOXType(TOX_USER, i);
+ if(pTmp && pTmp->GetTypeName() == rStr)
+ return i;
+ }
+ SwTOXType aUserType(TOX_USER, rStr);
+ pSh->InsertTOXType(aUserType);
+ return nSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling zwischen den TOXMarks
+ --------------------------------------------------------------------*/
+
+
+void SwTOXMgr::NextTOXMark(BOOL bSame)
+{
+ ASSERT(pCurTOXMark, "kein aktuelles TOXMark");
+ if( pCurTOXMark )
+ {
+ SwTOXSearch eDir = bSame ? TOX_SAME_NXT : TOX_NXT;
+ pCurTOXMark = (SwTOXMark*)&pSh->GotoTOXMark( *pCurTOXMark, eDir );
+ }
+}
+
+
+void SwTOXMgr::PrevTOXMark(BOOL bSame)
+{
+ ASSERT(pCurTOXMark, "kein aktuelles TOXMark");
+ if( pCurTOXMark )
+ {
+ SwTOXSearch eDir = bSame ? TOX_SAME_PRV : TOX_PRV;
+ pCurTOXMark = (SwTOXMark*)&pSh->GotoTOXMark(*pCurTOXMark, eDir );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Stichwortverzeichnis einfuegen
+ --------------------------------------------------------------------*/
+
+/*
+void SwTOXMgr::InsertTOI(const USHORT nOptions, const String* pTitel,
+ const SwForm* pForm,
+ SwTOXBase** ppBase)
+{
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ const SwTOXType* pType = pSh->GetTOXType(TOX_INDEX, 0);
+
+ SwForm aForm(TOX_INDEX);
+ SwTOXBase* pTOX = new SwTOXBase(pType, aForm, TOX_MARK, pType->GetTypeName());
+ pTOX->SetOptions(nOptions);
+
+ if(pTitel) pTOX->SetTitle(*pTitel);
+ if(pForm) pTOX->SetTOXForm(*pForm);
+
+ // wird ppBase uebergeben, dann wird das TOXBase hier nur erzeugt
+ // und dann ueber den Dialog in ein Globaldokument eingefuegt
+ if(ppBase)
+ (*ppBase) = pTOX;
+ else
+ {
+ pSh->InsertTableOf(*pTOX);
+ delete pTOX;
+ }
+}
+
+
+BOOL SwTOXMgr::UpdateTOI(const USHORT nOptions, const String* pTitel,
+ const SwForm* pForm)
+{
+ if(pSh->HasSelection())
+ pSh->DelRight();
+ SwTOXBase* pTOX = (SwTOXBase*)GetCurTOX();
+ if(!pTOX)
+ {
+ InsertTOI(nOptions, pTitel, pForm);
+ return TRUE;
+ }
+
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ pTOX->SetOptions(nOptions);
+ if(pTitel) pTOX->SetTitle(*pTitel);
+ if(pForm) pTOX->SetTOXForm(*pForm);
+
+ BOOL bRet = pSh->UpdateTableOf(*pTOX);
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Inhaltsverzeichnis einfuegen
+ --------------------------------------------------------------------*/
+
+/*
+void SwTOXMgr::InsertTOC(const USHORT nContent, int nLevel,
+ const String* pTitel, const SwForm* pForm,
+ SwTOXBase** ppBase)
+{
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ const SwTOXType* pType = pSh->GetTOXType(TOX_CONTENT, 0);
+ SwForm aForm(TOX_CONTENT);
+
+ SwTOXBase* pTOX = new SwTOXBase(pType, aForm, nContent, pType->GetTypeName());
+
+ pTOX->SetLevel(nLevel);
+ if(pTitel) pTOX->SetTitle(*pTitel);
+ if(pForm) pTOX->SetTOXForm(*pForm);
+ if(ppBase)
+ (*ppBase) = pTOX;
+ else
+ {
+ pSh->InsertTableOf(*pTOX);
+ delete pTOX;
+ }
+}
+
+
+BOOL SwTOXMgr::UpdateTOC(const USHORT nContent,int nLevel,
+ const String* pTitel, const SwForm* pForm)
+{
+ if(pSh->HasSelection())
+ pSh->DelRight();
+ SwTOXBase* pTOX = (SwTOXBase*)GetCurTOX();
+ if(!pTOX)
+ {
+ InsertTOC(nContent, nLevel, pTitel, pForm);
+ return TRUE;
+ }
+
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ pTOX->SetCreate(nContent);
+ pTOX->SetLevel(nLevel);
+
+ if(pTitel) pTOX->SetTitle(*pTitel);
+ if(pForm) pTOX->SetTOXForm(*pForm);
+
+ BOOL bRet = pSh->UpdateTableOf(*pTOX);
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Userverzeichnis einfuegen
+ --------------------------------------------------------------------*/
+
+/*
+ void SwTOXMgr::InsertTOU(const USHORT nContent, const String* pTOUName,
+ const String* pTemplateName, int nLevel,
+ const String* pTitel,
+ const SwForm* pForm, SwTOXBase** ppBase)
+{
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ USHORT nPos = 0;
+ USHORT nSize = pSh->GetTOXTypeCount(TOX_USER);
+ for(USHORT i=0; pTOUName && i < nSize; ++i)
+ { const SwTOXType* pType = pSh->GetTOXType(TOX_USER, i);
+ if(pType->GetTypeName() == *pTOUName)
+ { nPos = i;
+ break;
+ }
+ }
+ const SwTOXType* pType = pSh->GetTOXType(TOX_USER, nPos);
+
+ SwForm aForm(TOX_USER);
+ SwTOXBase* pTOX = new SwTOXBase(pType, aForm, nContent, pType->GetTypeName());
+
+ if(pTemplateName) pTOX->SetTemplateName(*pTemplateName);
+ if(pTitel) pTOX->SetTitle(*pTitel);
+ if(pForm) pTOX->SetTOXForm(*pForm);
+
+ if(ppBase)
+ (*ppBase) = pTOX;
+ else
+ {
+ pSh->InsertTableOf(*pTOX);
+ delete pTOX;
+ }
+}
+
+
+BOOL SwTOXMgr::UpdateTOU(const USHORT nContent,
+ const String* pTOUName,
+ const String* pTemplateName,
+ int nLevel,
+ const String* pTitel, const SwForm* pForm)
+{
+ if(pSh->HasSelection())
+ pSh->DelRight();
+ SwTOXBase* pTOX = (SwTOXBase*)GetCurTOX();
+ if(!pTOX)
+ {
+ InsertTOU(nContent, pTOUName, pTemplateName, nLevel, pTitel, pForm);
+ return TRUE;
+ }
+
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+
+ pTOX->SetCreate(nContent);
+ if(pTemplateName) pTOX->SetTemplateName(*pTemplateName);
+ if(pTitel) pTOX->SetTitle(*pTitel);
+ if(pForm) pTOX->SetTOXForm(*pForm);
+
+ BOOL bRet = pSh->UpdateTableOf(*pTOX);
+ return bRet;
+}
+*/
+
+const SwTOXBase* SwTOXMgr::GetCurTOX()
+{
+ return pSh->GetCurTOX();
+}
+
+const SwTOXType* SwTOXMgr::GetTOXType(TOXTypes eTyp, USHORT nId) const
+{
+ return pSh->GetTOXType(eTyp, nId);
+}
+
+void SwTOXMgr::SetCurTOXMark(USHORT nId)
+{
+ pCurTOXMark = (nId < aCurMarks.Count()) ? aCurMarks[nId] : 0;
+}
+
+/* -----------------01.07.99 16:23-------------------
+
+ --------------------------------------------------*/
+
+BOOL SwTOXMgr::UpdateOrInsertTOX(const SwTOXDescription& rDesc,
+ SwTOXBase** ppBase,
+ const SfxItemSet* pSet)
+{
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+ BOOL bRet = TRUE;
+ const SwTOXBase* pCurTOX = GetCurTOX();
+ SwTOXBase* pTOX = (SwTOXBase*)pCurTOX;
+ TOXTypes eCurTOXType = rDesc.GetTOXType();
+ if(pCurTOX && !ppBase && pSh->HasSelection())
+ pSh->DelRight();
+
+ switch(eCurTOXType)
+ {
+ case TOX_INDEX :
+ {
+ if(!pCurTOX || ppBase)
+ {
+ const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, 0);
+ SwForm aForm(eCurTOXType);
+ pTOX = new SwTOXBase(pType, aForm, TOX_MARK, pType->GetTypeName());
+ }
+ pTOX->SetOptions(rDesc.GetIndexOptions());
+ pTOX->SetMainEntryCharStyle(rDesc.GetMainEntryCharStyle());
+ pSh->SetTOIAutoMarkURL(rDesc.GetAutoMarkURL());
+ pSh->ApplyAutoMark();
+ }
+ break;
+ case TOX_CONTENT :
+ {
+ if(!pCurTOX || ppBase)
+ {
+ const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, 0);
+ SwForm aForm(eCurTOXType);
+ pTOX = new SwTOXBase(pType, aForm, rDesc.GetContentOptions(), pType->GetTypeName());
+ }
+ pTOX->SetCreate(rDesc.GetContentOptions());
+ pTOX->SetLevel(rDesc.GetLevel());
+ }
+ break;
+ case TOX_USER :
+ {
+ if(!pCurTOX || ppBase)
+ {
+ USHORT nPos = 0;
+ USHORT nSize = pSh->GetTOXTypeCount(eCurTOXType);
+ for(USHORT i=0; rDesc.GetTOUName() && i < nSize; ++i)
+ { const SwTOXType* pType = pSh->GetTOXType(TOX_USER, i);
+ if(pType->GetTypeName() == *rDesc.GetTOUName())
+ { nPos = i;
+ break;
+ }
+ }
+ const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, nPos);
+
+ SwForm aForm(eCurTOXType);
+ pTOX = new SwTOXBase(pType, aForm, rDesc.GetContentOptions(), pType->GetTypeName());
+
+ }
+ else
+ {
+ SwTOXBase* pTOX = (SwTOXBase*)pCurTOX;
+ pTOX->SetCreate(rDesc.GetContentOptions());
+ }
+ pTOX->SetLevelFromChapter(rDesc.IsLevelFromChapter());
+ }
+ break;
+ case TOX_OBJECTS:
+ case TOX_TABLES:
+ case TOX_AUTHORITIES:
+ case TOX_ILLUSTRATIONS:
+ {
+ //Special handling for TOX_AUTHORITY
+ if(TOX_AUTHORITIES == eCurTOXType)
+ {
+ SwAuthorityFieldType* pFType = (SwAuthorityFieldType*)
+ pSh->GetFldType(RES_AUTHORITY, aEmptyStr);
+ if(pFType)
+ {
+ pFType->SetPreSuffix(rDesc.GetAuthBrackets().GetChar(0),
+ rDesc.GetAuthBrackets().GetChar(1));
+ pFType->SetSequence(rDesc.IsAuthSequence());
+ SwTOXSortKey rArr[3];
+ rArr[0] = rDesc.GetSortKey1();
+ rArr[1] = rDesc.GetSortKey2();
+ rArr[2] = rDesc.GetSortKey3();
+ pFType->SetSortKeys(3, rArr);
+ pFType->SetSortByDocument(rDesc.IsSortByDocument());
+
+ pFType->UpdateFlds();
+ }
+ }
+ // TODO: consider properties of the current TOXType
+ if(!pCurTOX || ppBase)
+ {
+ const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, 0);
+ SwForm aForm(eCurTOXType);
+ pTOX = new SwTOXBase(
+ pType, aForm,
+ TOX_AUTHORITIES == eCurTOXType ? TOX_MARK : 0, pType->GetTypeName());
+ }
+ else
+ {
+ if(pSh->HasSelection())
+ pSh->DelRight();
+ pTOX = (SwTOXBase*)pCurTOX;
+ }
+// pTOX->SetOptions(rDesc.GetIndexOptions());
+ pTOX->SetFromObjectNames(rDesc.IsCreateFromObjectNames());
+ pTOX->SetOLEOptions(rDesc.GetOLEOptions());
+ }
+ break;
+ }
+
+
+ DBG_ASSERT(pTOX, "no TOXBase created!" )
+ if(!pTOX)
+ return FALSE;
+ pTOX->SetFromChapter(rDesc.IsFromChapter());
+ pTOX->SetSequenceName(rDesc.GetSequenceName());
+ pTOX->SetCaptionDisplay(rDesc.GetCaptionDisplay());
+ pTOX->SetProtected(rDesc.IsReadonly());
+
+ for(USHORT nLevel = 0; nLevel < MAXLEVEL; nLevel++)
+ pTOX->SetStyleNames(rDesc.GetStyleNames(nLevel), nLevel);
+
+ if(rDesc.GetTitle())
+ pTOX->SetTitle(*rDesc.GetTitle());
+ if(rDesc.GetForm())
+ pTOX->SetTOXForm(*rDesc.GetForm());
+ if(!pCurTOX || ppBase)
+ {
+ // wird ppBase uebergeben, dann wird das TOXBase hier nur erzeugt
+ // und dann ueber den Dialog in ein Globaldokument eingefuegt
+ if(ppBase)
+ (*ppBase) = pTOX;
+ else
+ {
+ pSh->InsertTableOf(*pTOX, pSet);
+ delete pTOX;
+ }
+ }
+ else
+ bRet = pSh->UpdateTableOf(*pTOX, pSet);
+
+ return bRet;
+}
+/* -----------------20.10.99 14:11-------------------
+
+ --------------------------------------------------*/
+void SwTOXDescription::SetSortKeys(SwTOXSortKey eKey1,
+ SwTOXSortKey eKey2,
+ SwTOXSortKey eKey3)
+{
+ SwTOXSortKey aArr[3];
+ USHORT nPos = 0;
+ if(AUTH_FIELD_END > eKey1.eField)
+ aArr[nPos++] = eKey1;
+ if(AUTH_FIELD_END > eKey2.eField)
+ aArr[nPos++] = eKey2;
+ if(AUTH_FIELD_END > eKey3.eField)
+ aArr[nPos++] = eKey3;
+
+ eSortKey1 = aArr[0];
+ eSortKey2 = aArr[1];
+ eSortKey3 = aArr[2];
+}
+
+/* -----------------10.09.99 10:02-------------------
+
+ --------------------------------------------------*/
+void SwTOXDescription::ApplyTo(SwTOXBase& rTOXBase)
+{
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ rTOXBase.SetStyleNames(GetStyleNames(i), i);
+ rTOXBase.SetTitle(GetTitle() ? *GetTitle() : aEmptyStr);
+// const String* GetTOUName() const {return pTOUName; }
+ rTOXBase.SetCreate(GetContentOptions());
+
+ if(GetTOXType() == TOX_INDEX)
+ rTOXBase.SetOptions(GetIndexOptions());
+ if(GetTOXType() != TOX_INDEX)
+ rTOXBase.SetLevel(GetLevel());
+ rTOXBase.SetFromObjectNames(IsCreateFromObjectNames());
+ rTOXBase.SetSequenceName(GetSequenceName());
+ rTOXBase.SetCaptionDisplay(GetCaptionDisplay());
+ rTOXBase.SetFromChapter(IsFromChapter());
+ rTOXBase.SetProtected(IsReadonly());
+ rTOXBase.SetOLEOptions(GetOLEOptions());
+ rTOXBase.SetLevelFromChapter(IsLevelFromChapter());
+
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.59 2000/09/18 16:05:53 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.58 2000/06/27 19:42:10 jp
+ Bug #70447#: select the current TOXMark if the EditDialog is open
+
+ Revision 1.57 1999/10/21 08:53:42 os
+ sorting authority entries by content
+
+ Revision 1.56 1999/10/20 06:37:21 os
+ rsequence impl., Brackets selectable
+
+ Revision 1.55 1999/10/05 14:20:43 os
+ no jumps to null-pointers
+
+ Revision 1.54 1999/09/10 08:30:20 os
+ use doc default TOXs
+
+ Revision 1.53 1999/09/08 12:42:45 os
+ new: Is/SetLevelFromChapter
+
+ Revision 1.52 1999/08/26 14:01:00 OS
+ AutoMark implemented
+
+
+ Rev 1.51 26 Aug 1999 16:01:00 OS
+ AutoMark implemented
+
+ Rev 1.50 25 Aug 1999 15:29:14 OS
+ extended indexes: OLEOptions
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/lingu/cvdata.mac b/sw/source/ui/lingu/cvdata.mac
new file mode 100644
index 000000000000..1f26c95fbe85
--- /dev/null
+++ b/sw/source/ui/lingu/cvdata.mac
@@ -0,0 +1,19 @@
+#############
+## Deutsch ##
+#############
+rename "GR_HYP.DAT" "German Hyph"
+setfile -c 'SW/g' -t 'Lexi' "German Hyph"
+rename "GR_SPL.DAT" "German Spell"
+setfile -c 'SW/g' -t 'Lexi' "German Spell"
+rename "GR_THE.DAT" "German Thes"
+setfile -c 'SW/g' -t 'Lexi' "German Thes"
+
+#############
+## English ##
+#############
+rename "EN_HYP.DAT" "English Hyph"
+setfile -c 'SW/g' -t 'Lexi' "English Hyph"
+rename "EN_SPL.DAT" "English Spell"
+setfile -c 'SW/g' -t 'Lexi' "English Spell"
+rename "EN_THE.DAT" "English Thes"
+setfile -c 'SW/g' -t 'Lexi' "English Thes"
diff --git a/sw/source/ui/lingu/hyp.cxx b/sw/source/ui/lingu/hyp.cxx
new file mode 100644
index 000000000000..da779423de7a
--- /dev/null
+++ b/sw/source/ui/lingu/hyp.cxx
@@ -0,0 +1,505 @@
+/*************************************************************************
+ *
+ * $RCSfile: hyp.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "initui.hxx"
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "wrtsh.hxx"
+#include "globals.hrc"
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+
+#include "hyp.hxx"
+#include "mdiexp.hxx"
+#include "olmenu.hrc"
+
+#define HYPHHERE '-'
+#define PSH (&pView->GetWrtShell())
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+#define C2U(cChar) OUString::createFromAscii(cChar)
+/*--------------------------------------------------------------------
+ Beschreibung: Interaktive Trennung
+ --------------------------------------------------------------------*/
+
+SwHyphWrapper::SwHyphWrapper( SwView* pVw,
+ uno::Reference< linguistic::XHyphenator > &rxHyph,
+ sal_Bool bStart, sal_Bool bOther, sal_Bool bSelect ) :
+ SvxSpellWrapper( &pVw->GetEditWin(), rxHyph, bStart, bOther ),
+ xHyph( rxHyph ),
+ nLangError( 0 ),
+ nPageCount( 0 ),
+ nPageStart( 0 ),
+ bInSelection( bSelect ),
+ bShowError( sal_False ),
+ pView( pVw )
+{
+ uno::Reference< beans::XPropertySet > xProp( GetLinguPropertySet() );
+ bAutomatic = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_HYPH_AUTO) ).getValue() : sal_False;
+ SetHyphen();
+}
+
+// -----------------------------------------------------------------------
+void SwHyphWrapper::SpellStart( SvxSpellArea eSpell )
+{
+ if( SVX_SPELL_OTHER == eSpell && nPageCount )
+ {
+ ::EndProgress( pView->GetDocShell() );
+ nPageCount = 0;
+ nPageStart = 0;
+ }
+ pView->HyphStart( eSpell );
+}
+
+// -----------------------------------------------------------------------
+
+sal_Bool SwHyphWrapper::SpellContinue()
+{
+ // Fuer autom. Trennung Aktionen erst am Ende sichtbar machen
+ SwWait *pWait;
+ if( bAutomatic )
+ {
+ PSH->StartAllAction();
+ pWait = new SwWait( *pView->GetDocShell(), sal_True );
+ }
+
+ uno::Reference< uno::XInterface > xHyphWord = bInSelection ?
+ PSH->HyphContinue( NULL, NULL ) :
+ PSH->HyphContinue( &nPageCount, &nPageStart );
+ SetLast( xHyphWord );
+
+ // Fuer autom. Trennung Aktionen erst am Ende sichtbar machen
+ if( bAutomatic )
+ {
+ PSH->EndAllAction();
+ delete pWait;
+ }
+
+ if( bShowError )
+ {
+ bShowError = sal_False;
+ PSH->Push();
+ PSH->ClearMark();
+ pView->SpellError( (void*)nLangError );
+ PSH->Combine();
+ }
+ return GetLast().is();
+}
+
+// -----------------------------------------------------------------------
+void SwHyphWrapper::SpellEnd()
+{
+ PSH->HyphEnd();
+ SvxSpellWrapper::SpellEnd();
+}
+
+IMPL_LINK( SwHyphWrapper, SpellError, void *, nLang )
+{
+ sal_uInt32 nNew = (sal_uInt32)nLang;
+ if( nNew != nLangError )
+ {
+ nLangError = nNew;
+ bShowError = sal_True;
+ }
+ return 0;
+}
+
+
+// -----------------------------------------------------------------------
+sal_Bool SwHyphWrapper::SpellMore()
+{
+ PSH->Push();
+ InfoBox( &pView->GetEditWin(), SW_RESSTR(STR_HYP_OK) ).Execute();
+ PSH->Combine();
+ return sal_False;
+}
+
+// -----------------------------------------------------------------------
+
+void SwHyphWrapper::InsertHyphen( const sal_uInt16 nPos )
+{
+ if( nPos)
+ PSH->InsertSoftHyph( nPos + 1); // does nPos == 1 really mean
+ // insert hyphen after first char?
+ // (instead of nPos == 0)
+ else
+ PSH->HyphIgnore();
+}
+
+// -----------------------------------------------------------------------
+SwHyphWrapper::~SwHyphWrapper()
+{
+ if( nPageCount )
+ ::EndProgress( pView->GetDocShell() );
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.95 2000/09/18 16:05:54 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.94 2000/07/04 15:20:20 tl
+ XHyphenator1 => XHyphenator
+
+ Revision 1.93 2000/04/18 15:35:07 os
+ UNICODE
+
+ Revision 1.92 2000/03/23 07:42:45 os
+ UNO III
+
+ Revision 1.91 2000/03/08 17:23:12 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.90 2000/02/24 12:14:03 tl
+ #71915# SvxSpellWrapper::SpellEnd called in SpellEnd now
+
+ Revision 1.89 2000/02/16 20:58:34 tl
+ #72219# Locale Umstellung
+
+ Revision 1.88 2000/02/11 14:55:51 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.87 1999/11/24 18:28:37 tl
+ check for Service availability
+
+ Revision 1.86 1999/11/19 16:40:23 os
+ modules renamed
+
+ Revision 1.85 1999/11/10 11:01:24 tl
+ XInterface SpellContinue() -> sal_Bool SpellContinue()
+ Ongoing ONE_LINGU implementation
+
+ Revision 1.84 1999/10/25 19:13:24 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.83 1999/08/31 08:37:30 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.82 31 Aug 1999 10:37:30 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.81 08 Jul 1999 16:16:14 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.80 08 Jul 1999 10:31:44 MA
+ limit wait cursor to document window
+
+ Rev 1.79 12 Aug 1998 18:16:00 HR
+ #54781#: GCC braucht Temporary
+
+ Rev 1.78 03 Dec 1997 17:10:10 AMA
+ Fix: Paintprobleme durch Actionklammerung bei automatischer Trennung
+
+ Rev 1.77 28 Nov 1997 15:30:32 MA
+ includes
+
+ Rev 1.76 28 Nov 1997 13:35:34 AMA
+ Fix #45841#: Auch Fehlermeldungen duerfen verschoben werden.
+
+ Rev 1.75 03 Nov 1997 13:21:46 MA
+ precomp entfernt
+
+ Rev 1.74 24 Oct 1997 10:30:54 AMA
+ Fix #44994#: InfoBox nach Abschluss der Silbentrennung anzeigen
+
+ Rev 1.73 05 Sep 1997 11:46:26 MH
+ chg: header
+
+ Rev 1.72 14 Feb 1997 15:19:30 AMA
+ Fix #36204#: Falsche Parentbeziehung des Dialogs.
+
+ Rev 1.71 08 Jan 1997 12:55:14 AMA
+ New: Rueckwaerts kann unterbunden werden, wird genutzt von der Silbentrennung
+
+ Rev 1.70 04 Dec 1996 23:04:40 MH
+ chg: header
+
+ Rev 1.69 09 Oct 1996 18:00:26 MA
+ Progress
+
+ Rev 1.68 28 Aug 1996 12:52:34 OS
+ includes
+
+ Rev 1.67 14 Mar 1996 11:37:24 AMA
+ New: Progress-Anzeige bei Rechtschr. und Silbentrennung
+
+ Rev 1.66 24 Nov 1995 16:57:40 OM
+ PCH->PRECOMPILED
+
+ Rev 1.65 31 Oct 1995 18:39:42 OM
+ GetFrameWindow entfernt
+
+ Rev 1.64 09 Aug 1995 17:14:04 AMA
+ SEG_GLOBALS wieder da
+
+ Rev 1.63 06 Aug 1995 14:36:54 AMA
+ Benutzt den SvxSpellWrapper als HyphWrapper
+
+ Rev 1.62 25 Feb 1995 13:33:08 MS
+ IBM-Linguistik
+
+ Rev 1.61 18 Nov 1994 16:10:40 MA
+ min -> Min, max -> Max
+
+ Rev 1.60 09 Nov 1994 07:59:42 MS
+ Includes geaendert
+
+ Rev 1.59 08 Nov 1994 16:47:46 MS
+ pSpell ist global
+
+ Rev 1.58 25 Oct 1994 18:21:54 ER
+ add: PCH
+
+ Rev 1.57 07 Oct 1994 14:30:30 MS
+ Anpassung Sfx
+
+ Rev 1.56 04 Aug 1994 09:59:56 SWG
+ swg32: SED awt::Size to SSize, LSize to awt::Size etc.
+
+ Rev 1.55 02 Aug 1994 16:00:18 MS
+ Umstellung Linguistik
+
+ Rev 1.54 22 Jul 1994 09:49:36 MS
+ Bug 8784 richtuge Anzeige des zu trennenden Wortes
+
+ Rev 1.53 21 Jun 1994 13:26:44 MS
+ Bug 8526 Abrrechen des Trennvorganges und Defbutton auf dem MAC
+
+ Rev 1.52 07 Apr 1994 16:58:08 MS
+ neues Pragma
+
+ Rev 1.51 07 Apr 1994 16:26:36 MS
+ neu LangError
+
+ Rev 1.50 26 Feb 1994 01:58:24 ER
+ virt. dtor mit export
+
+ Rev 1.49 26 Feb 1994 01:10:18 ER
+ virtuellen dtor wegen export ueberladen
+
+ Rev 1.48 25 Feb 1994 20:44:40 ER
+ virtuellen dtor wegen export ueberladen
+
+ Rev 1.47 23 Feb 1994 10:58:24 ER
+ SEXPORT
+
+ Rev 1.46 22 Feb 1994 14:40:04 ER
+ EXPORT --> SEXPORT
+
+ Rev 1.45 21 Feb 1994 21:35:46 ER
+ LINK EXPORT
+
+ Rev 1.44 17 Feb 1994 08:47:02 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.43 16 Feb 1994 20:07:34 MI
+ SEG_FUNCDEFS ausgefuellt
+
+ Rev 1.42 16 Feb 1994 16:50:56 MI
+ Pragmas zurechtgerueckt
+
+ Rev 1.41 01 Feb 1994 18:18:58 MI
+ TCOV() entfernt, SW_... nach SEG_... umbenannt
+
+ Rev 1.40 01 Feb 1994 13:44:18 MS
+ Umstellung Linguistik v2.0
+
+ Rev 1.39 21 Jan 1994 09:53:10 MS
+ Ablauf interaktive Trennung geaendert
+
+ Rev 1.38 20 Jan 1994 18:41:18 MS
+ Ablauf geaendert
+
+ Rev 1.37 13 Jan 1994 08:44:48 MI
+ Segmentierung per #define ermoeglicht
+
+ Rev 1.36 09 Jan 1994 21:12:54 MI
+ Provisorische Segmentierung
+
+ Rev 1.35 06 Dec 1993 13:09:58 MS
+ Anpassung der Selektion
+
+ Rev 1.34 06 Dec 1993 10:31:56 MS
+ Trennstellen selektieren
+
+ Rev 1.33 27 Sep 1993 01:23:40 MI
+ Segmentierung
+
+ Rev 1.32 20 Sep 1993 14:58:52 MS
+ Umstellung Lingu
+
+ Rev 1.31 26 Aug 1993 09:46:08 MS
+ Nach Weiter am Dokumentanfang Controlls initialisieren
+
+ Rev 1.30 08 Aug 1993 11:56:24 MS
+ fuer MSC
+
+ Rev 1.29 08 Aug 1993 09:31:42 MS
+ Ablauf interaktive Silbentrennung geaendert
+
+ Rev 1.28 06 Aug 1993 08:13:38 ER
+ String Array-Indexe mit sal_uInt16 statt short
+
+ Rev 1.28 06 Aug 1993 08:11:36 ER
+ String Array-Indexe mit sal_uInt16 statt short
+
+ Rev 1.27 05 Aug 1993 10:32:30 MS
+ Drunken Hyphenator beseitigt
+
+ Rev 1.26 18 Jun 1993 09:21:28 BP
+ bug: InitControls(), Initialisierung von nHyphPos
+
+ Rev 1.25 28 May 1993 11:51:42 VB
+ Umstellung Precompiled Headers
+
+ Rev 1.24 14 May 1993 11:31:36 MS
+ Traveling innerhalb des zu trennenden Wortes korrigiert
+
+ Rev 1.23 27 Apr 1993 08:39:08 OK
+ NEU: #pragma hdrstop
+
+ Rev 1.22 20 Apr 1993 13:13:38 MS
+ Entflechtung Linguistik
+
+ Rev 1.21 23 Mar 1993 18:18:20 MS
+
+ Rev 1.20 23 Mar 1993 18:10:30 MS
+ richtigen Trennindex bestimmen
+
+ Rev 1.19 22 Mar 1993 10:08:26 OK
+ Anpassung fuer NT
+
+ Rev 1.18 16 Mar 1993 08:32:42 MS
+ Fix fuer kk entfernt
+
+ Rev 1.17 12 Mar 1993 14:49:06 MS
+ Uebergeben des SoftHyph geaendert
+
+ Rev 1.16 12 Mar 1993 14:02:34 MS
+ Navigation geaendert
+
+ Rev 1.15 11 Mar 1993 14:00:04 MS
+ keine alternativwoerter fuer Formatierung
+
+ Rev 1.14 11 Mar 1993 13:54:54 MS
+ Ablauf geaendert
+
+ Rev 1.13 09 Mar 1993 10:48:24 MS
+ Trennung mit Start und Continue - Mimik
+
+ Rev 1.12 10 Feb 1993 19:59:46 TB
+ Umstellung SV21
+
+ Rev 1.11 22 Jan 1993 14:30:32 MS
+ String im Header geaendert
+
+ Rev 1.10 05 Jan 1993 10:01:56 MS
+ neu mit Sprachanzeige
+
+ Rev 1.9 22 Dec 1992 20:19:00 VB
+ Aenderung der FN_-Ids
+
+ Rev 1.8 22 Dec 1992 10:12:26 OK
+ Anpassung an M70
+
+ Rev 1.7 21 Dec 1992 16:19:34 MS
+ Enable Disable Buttons
+
+ Rev 1.6 18 Dec 1992 11:54:24 MS
+ mit SL_SOFT_HYPHEN
+
+ Rev 1.5 11 Dec 1992 13:42:48 MS
+ IgnoreButton
+
+ Rev 1.4 17 Nov 1992 16:55:44 MS
+ Trennhilfe-Dialog geaendert
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/lingu/makefile.mk b/sw/source/ui/lingu/makefile.mk
new file mode 100644
index 000000000000..7f395caee9f1
--- /dev/null
+++ b/sw/source/ui/lingu/makefile.mk
@@ -0,0 +1,100 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=lingu
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ hyp.cxx \
+ olmenu.cxx \
+ sdrspell.cxx \
+ splwrp.cxx
+
+SLOFILES = \
+ $(SLO)$/hyp.obj \
+ $(SLO)$/olmenu.obj \
+ $(SLO)$/sdrspell.obj \
+ $(SLO)$/splwrp.obj
+
+SRCFILES = \
+ olmenu.src
+
+# --- Targets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx
new file mode 100644
index 000000000000..99b8d6ff7997
--- /dev/null
+++ b/sw/source/ui/lingu/olmenu.cxx
@@ -0,0 +1,895 @@
+/*************************************************************************
+ *
+ * $RCSfile: olmenu.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _MySVXACORR_HXX //autogen
+#include <svx/svxacorr.hxx>
+#endif
+#ifndef _SVX_SPLDLG_HXX
+#include <svx/spldlg.hxx>
+#endif
+
+#ifndef _SFXINIMGR_HXX
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XOTHERLINGU2_HPP_
+#include <com/sun/star/linguistic/XOtherLingu2.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XSTORABLE_HPP_
+#include <com/sun/star/frame/XStorable.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _SVX_DLGUTIL_HXX
+#include <svx/dlgutil.hxx>
+#endif
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+
+
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx> //CheckSpellChanges
+#endif
+#ifndef _OLMENU_HXX
+#include <olmenu.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _TEMPAUTO_HXX
+#include <tempauto.hxx> // temporaere Autokorrektur
+#endif
+#ifndef _OLMENU_HRC
+#include <olmenu.hrc>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+#define C2U(cChar) OUString::createFromAscii(cChar)
+
+/*--------------------------------------------------------------------------
+
+---------------------------------------------------------------------------*/
+
+util::Language lcl_CheckLanguage( const OUString &rWord, uno::Reference< linguistic::XSpellChecker1 > xSpell )
+{
+ // andere Sprachen automatisch pr"ufen
+ // auch wenn beliebiger Schwachsinn rauskommt
+ // NUR: wenn Sprache KEINE oder die neue die Alte ist oder die Sprache
+ // nicht vorhanden ist
+
+ util::Language nLang = LANGUAGE_NONE;
+
+ uno::Reference< linguistic::XSpellAlternatives > xAlt;
+ uno::Sequence< util::Language > aLangs;
+ if (xSpell.is())
+ aLangs = xSpell->getLanguages();
+ const util::Language *pLang = aLangs.getConstArray();
+ sal_Int16 nCount = aLangs.getLength();
+
+ for (sal_Int16 i = 0; i < nCount; i++)
+ {
+ if (pLang[i] != LANGUAGE_NONE)
+ {
+ if (xSpell->isValid( rWord, pLang[i] ))
+ {
+ nLang = pLang[i];
+ break;
+ }
+ }
+ }
+ return nLang;
+}
+
+
+/*SwSpellPopup::SwSpellPopup( SwWrtShell* pWrtSh, const uno::Reference< linguistic::XSpellAlternatives > &xAlt ) :
+ PopupMenu(SW_RES(MN_SPELL_POPUP)),
+ pSh ( pWrtSh ),
+ xSpellAlt (xAlt)
+{
+ DBG_ASSERT(xSpellAlt.is(), "no spelling alternatives available");
+
+ uno::Sequence< UString > aStrings;
+ if (xSpellAlt.is())
+ aStrings = xSpellAlt->getAlternatives();
+ const UString *pString = aStrings.getConstArray();
+ sal_Int16 nStringCount = aStrings.getLength();
+
+ PopupMenu *pMenu = GetPopupMenu(MN_AUTOCORR);
+ sal_Bool bEnable = sal_False;
+ if( nStringCount )
+ {
+ InsertSeparator(0);
+ bEnable = sal_True;
+ for( sal_uInt16 i = 0, nPos = 1, nId = MN_AUTOCORR_START + 1;
+ i < nStringCount; ++i, ++nPos, ++nId )
+ {
+ const String aEntry = U2S( pString[ i ] );
+ InsertItem( nPos, aEntry, 0, i );
+ SetHelpId( nPos, HID_LINGU_REPLACE);
+ pMenu->InsertItem( nId, aEntry );
+ pMenu->SetHelpId( nId, HID_LINGU_AUTOCORR);
+ }
+ }
+ EnableItem( MN_AUTOCORR, bEnable );
+
+ nCorrLang = LANGUAGE_NONE;
+ if (xSpellAlt.is())
+ nCorrLang = lcl_CheckLanguage( xSpellAlt->getWord(), ::GetSpellChecker() );
+ if( nCorrLang != LANGUAGE_NONE )
+ {
+ InsertSeparator();
+ String aTmp( ::GetLanguageString( nCorrLang ) );
+ InsertItem( MN_LANGUAGE_WORD, String( SW_RES( STR_WORD ) ) + aTmp );
+ SetHelpId( MN_LANGUAGE_WORD, HID_LINGU_WORD_LANGUAGE );
+ InsertItem( MN_LANGUAGE_PARA, String( SW_RES( STR_PARAGRAPH ) ) + aTmp );
+ SetHelpId( MN_LANGUAGE_PARA, HID_LINGU_PARA_LANGUAGE );
+ }
+
+ pMenu = GetPopupMenu(MN_INSERT);
+ //DBG_ASSERT(0, "Fremdlinguistik fehlt noch");
+<<<<<<< olmenu.cxx
+#ifdef NOT_YET
+ if( pSpell->HasOtherLingu() && pSpell->HasOtherSpell() )
+ {
+ bEnable = sal_True;
+ pMenu->InsertItem( MN_INSERT_START,
+ pSpell->GetOtherLinguName( pSpell->GetOtherIdx() ) );
+ pMenu->SetHelpId( MN_INSERT_START, HID_LINGU_ADD_WORD);
+ }
+ else
+#endif
+ {
+ bEnable = sal_False;
+
+ uno::Reference< linguistic::XDictionaryList > xDicList( SvxGetDictionaryList() );
+=======
+
+
+ bEnable = FALSE; // enable MN_INSERT?
+
+ INT16 nOtherIndex = -1;
+ BOOL bHasOtherFunc = FALSE;
+ BOOL bIsStandardSpell = TRUE;
+ XPropertySetRef xProp( SvxGetLinguPropertySet() );
+ if (xProp.is())
+ {
+ nOtherIndex = xProp->getPropertyValue(
+ S2U(UPN_OTHER_LINGU_INDEX) ).getINT16();
+ bIsStandardSpell = xProp->getPropertyValue(
+ S2U(UPN_IS_STANDARD_SPELL_CHECKER) ).getBOOL();
+ }
+
+ if (nOtherIndex >= 0)
+ {
+ XMultiServiceFactoryRef xMgr( NAMESPACE_USR( getProcessServiceManager)() );
+ xOther = XOtherLinguRef( xMgr->createInstance(
+ S2U("com.sun.star.linguistic.OtherLingu") ), USR_QUERY );
+ if (xOther.is())
+ {
+ bHasOtherFunc = xOther->hasSpellChecker( nOtherIndex );
+ if ( bHasOtherFunc)
+ {
+ bEnable = TRUE;
+ pMenu->InsertItem( MN_INSERT_START,
+ U2S( xOther->getIdentifier( nOtherIndex ) ) );
+ pMenu->SetHelpId( MN_INSERT_START, HID_LINGU_ADD_WORD);
+ }
+ }
+ }
+
+ if (nOtherIndex < 0 || bIsStandardSpell)
+ {
+ XDictionaryListRef xDicList( SvxGetDictionaryList() );
+>>>>>>> 1.55
+ if (xDicList.is())
+ {
+ // add active, positive dictionary to dic-list (if not already done).
+ // This is to ensure that there is at least on dictionary to which
+ // words could be added.
+ uno::Reference< linguistic::XDictionary1 > xDic( SvxGetOrCreatePosDic( xDicList ) );
+ if (xDic.is())
+ xDic->setActive( sal_True );
+
+ aDics = xDicList->getDictionaries();
+ const uno::Reference< linguistic::XDictionary > *pDic = aDics.getConstArray();
+ sal_Int32 nDicCount = aDics.getLength();
+
+ sal_Int16 nLanguage = LANGUAGE_NONE;
+ if (xSpellAlt.is())
+ nLanguage = SvxLocaleToLanguage( xSpellAlt->getLocale() );
+
+ for( sal_Int32 i = 0; i < nDicCount; i++ )
+ {
+ uno::Reference< linguistic::XDictionary1 > xDic( pDic[i], uno::UNO_QUERY );
+ if (!xDic.is())
+ continue;
+
+ LanguageType nActLanguage = xDic->getLanguage();
+ if( xDic->isActive()
+ && xDic->getDictionaryType() != linguistic::DictionaryType_NEGATIVE
+ && (nLanguage == nActLanguage || LANGUAGE_NONE == nActLanguage )
+ && SvxGetIgnoreAllList() != xDic )
+ {
+ // the extra 1 is because of the (possible) external
+ // linguistic entry above
+ pMenu->InsertItem( MN_INSERT_START + i + 1, U2S( xDic->getName() ) );
+ bEnable = sal_True;
+ }
+ }
+ }
+ }
+ EnableItem( MN_INSERT, bEnable );
+
+ RemoveDisabledEntries( sal_True, sal_True );
+}
+*/
+SwSpellPopup::SwSpellPopup( SwWrtShell* pWrtSh, const uno::Reference< linguistic::XSpellAlternatives > &xAlt ) :
+ PopupMenu(SW_RES(MN_SPELL_POPUP)),
+ pSh ( pWrtSh ),
+ xSpellAlt (xAlt)
+{
+ DBG_ASSERT(xSpellAlt.is(), "no spelling alternatives available");
+
+ uno::Sequence< OUString > aStrings;
+ if (xSpellAlt.is())
+ aStrings = xSpellAlt->getAlternatives();
+ const OUString *pString = aStrings.getConstArray();
+ sal_Int16 nStringCount = aStrings.getLength();
+
+ PopupMenu *pMenu = GetPopupMenu(MN_AUTOCORR);
+ sal_Bool bEnable = sal_False;
+ if( nStringCount )
+ {
+ InsertSeparator(0);
+ bEnable = sal_True;
+ for( sal_uInt16 i = 0, nPos = 1, nId = MN_AUTOCORR_START + 1;
+ i < nStringCount; ++i, ++nPos, ++nId )
+ {
+ const String aEntry = pString[ i ];
+ InsertItem( nPos, aEntry, 0, i );
+ SetHelpId( nPos, HID_LINGU_REPLACE);
+ pMenu->InsertItem( nId, aEntry );
+ pMenu->SetHelpId( nId, HID_LINGU_AUTOCORR);
+ }
+ }
+ EnableItem( MN_AUTOCORR, bEnable );
+
+ nCorrLang = LANGUAGE_NONE;
+ if (xSpellAlt.is())
+ nCorrLang = lcl_CheckLanguage( xSpellAlt->getWord(), ::GetSpellChecker() );
+ if( nCorrLang != LANGUAGE_NONE )
+ {
+ InsertSeparator();
+ String aTmp( ::GetLanguageString( nCorrLang ) );
+ InsertItem( MN_LANGUAGE_WORD, String( SW_RES( STR_WORD ) ).Append(aTmp) );
+ SetHelpId( MN_LANGUAGE_WORD, HID_LINGU_WORD_LANGUAGE );
+ InsertItem( MN_LANGUAGE_PARA, String( SW_RES( STR_PARAGRAPH ) ).Append(aTmp) );
+ SetHelpId( MN_LANGUAGE_PARA, HID_LINGU_PARA_LANGUAGE );
+ }
+
+ pMenu = GetPopupMenu(MN_INSERT);
+ //DBG_ASSERT(0, "Fremdlinguistik fehlt noch");
+
+ bEnable = FALSE; // enable MN_INSERT?
+
+ sal_Int16 nOtherIndex = -1;
+ sal_Bool bHasOtherFunc = FALSE;
+ sal_Bool bIsStandardSpell = TRUE;
+ uno::Reference< beans::XPropertySet > xProp( SvxGetLinguPropertySet() );
+ if (xProp.is())
+ {
+ nOtherIndex = *(sal_Int16*)xProp->getPropertyValue(C2U(UPN_OTHER_LINGU_INDEX) ).getValue();
+ bIsStandardSpell = *(sal_Bool*)xProp->getPropertyValue(
+ C2U(UPN_IS_STANDARD_SPELL_CHECKER) ).getValue();
+ }
+
+ if (nOtherIndex >= 0)
+ {
+
+ uno::Reference< lang::XMultiServiceFactory >
+ xMgr = utl::getProcessServiceFactory();
+ xOther = uno::Reference< linguistic::XOtherLingu >( xMgr->createInstance(
+ C2U("com.sun.star.linguistic.OtherLingu") ), uno::UNO_QUERY );
+ if (xOther.is())
+ {
+ bHasOtherFunc = xOther->hasSpellChecker( nOtherIndex );
+ if (/*nOtherIndex >= 0 &&*/ bHasOtherFunc)
+ {
+ bEnable = TRUE;
+ pMenu->InsertItem( MN_INSERT_START,
+ xOther->getIdentifier( nOtherIndex ) );
+ pMenu->SetHelpId( MN_INSERT_START, HID_LINGU_ADD_WORD);
+ }
+ }
+ }
+
+ if (nOtherIndex < 0 || bIsStandardSpell)
+ {
+ uno::Reference< linguistic::XDictionaryList > xDicList( SvxGetDictionaryList() );
+ if (xDicList.is())
+ {
+ // add active, positive dictionary to dic-list (if not already done).
+ // This is to ensure that there is at least on dictionary to which
+ // words could be added.
+ uno::Reference< linguistic::XDictionary1 > xDic( SvxGetOrCreatePosDic( xDicList ) );
+ if (xDic.is())
+ xDic->setActive( sal_True );
+
+ aDics = xDicList->getDictionaries();
+ const uno::Reference< linguistic::XDictionary > *pDic = aDics.getConstArray();
+ sal_Int32 nDicCount = aDics.getLength();
+
+ sal_Int16 nLanguage = LANGUAGE_NONE;
+ if (xSpellAlt.is())
+ nLanguage = SvxLocaleToLanguage( xSpellAlt->getLocale() );
+
+ for( sal_Int32 i = 0; i < nDicCount; i++ )
+ {
+ uno::Reference< linguistic::XDictionary1 > xDic( pDic[i], uno::UNO_QUERY );
+ if (!xDic.is() || SvxGetIgnoreAllList() == xDic)
+ continue;
+
+ uno::Reference< frame::XStorable > xStor( xDic, uno::UNO_QUERY );
+ LanguageType nActLanguage = xDic->getLanguage();
+ if( xDic->isActive()
+ && xDic->getDictionaryType() != linguistic::DictionaryType_NEGATIVE
+ && (nLanguage == nActLanguage || LANGUAGE_NONE == nActLanguage )
+ && (!xStor.is() || !xStor->isReadonly()) )
+ {
+ // the extra 1 is because of the (possible) external
+ // linguistic entry above
+ pMenu->InsertItem( MN_INSERT_START + i + 1, xDic->getName() );
+ bEnable = sal_True;
+ }
+ }
+ }
+ }
+ EnableItem( MN_INSERT, bEnable );
+
+ RemoveDisabledEntries( TRUE, TRUE );
+
+}
+
+/*--------------------------------------------------------------------------
+
+---------------------------------------------------------------------------*/
+sal_uInt16 SwSpellPopup::Execute( Window* pWin, const Point& rWordPos )
+{
+ sal_uInt16 nRet = PopupMenu::Execute(pWin, pWin->LogicToPixel(rWordPos));
+ sal_Bool bAutoCorr = sal_False;
+ if( nRet > MN_AUTOCORR_START && nRet != USHRT_MAX )
+ {
+ nRet -= MN_AUTOCORR_START;
+ bAutoCorr = sal_True;
+ }
+
+ if( nRet && nRet != USHRT_MAX)
+ {
+ int nAltIdx = nRet - 1;
+ if( xSpellAlt.is() && nAltIdx < xSpellAlt->getAlternativesCount() )
+ {
+ sal_Bool bOldIns = pSh->IsInsMode();
+ pSh->SetInsMode( sal_True );
+
+ pSh->StartUndo(UIUNDO_REPLACE);
+ pSh->StartAction();
+ pSh->DelLeft();
+
+ const OUString *pString = xSpellAlt->getAlternatives().getConstArray();
+ DBG_ASSERT( 0 <= nAltIdx && nAltIdx <= xSpellAlt->getAlternativesCount(),
+ "index out of range");
+ String aTmp( pString[ nAltIdx ] );
+ String aOrig( xSpellAlt->getWord());
+
+ // if orginal word has a trailing . (likely the end of a sentence)
+ // and the replacement text hasn't, then add it to the replacement
+ if (aTmp.Len() && aOrig.Len() &&
+ '.' == aOrig.GetChar( aOrig.Len() - 1) && /* !IsAlphaNumeric ??*/
+ '.' != aTmp.GetChar( aTmp.Len() - 1))
+ {
+ aTmp += '.';
+ }
+
+ pSh->Insert( aTmp );
+ pSh->EndAction();
+ pSh->EndUndo(UIUNDO_REPLACE);
+
+ pSh->SetInsMode( bOldIns );
+
+
+ // nur aufnehmen, wenn es NICHT schon in der Autokorrektur vorhanden ist
+ SvxAutoCorrect* pACorr = OFF_APP()->GetAutoCorrect();
+
+ LanguageType eLanguage = SvxLocaleToLanguage( xSpellAlt->getLocale() );
+
+ String aOrigWord( xSpellAlt->getWord() ) ;
+ String aNewWord;
+ if( nRet )
+ aNewWord = pString[ nAltIdx ];
+ else
+ aNewWord = aOrigWord;
+ SvxPrepareAutoCorrect( aOrigWord, aNewWord );
+ if( bAutoCorr )
+ {
+ pACorr->PutText( aOrigWord, aNewWord, eLanguage );
+ if( pTempAuto )
+ pTempAuto->Delete( aOrigWord );
+ }
+ else
+ {
+ SvxAutocorrWord aAWord( aOrigWord, aEmptyStr );
+ if( !pACorr->GetAutocorrWordList(eLanguage)->Seek_Entry( &aAWord ))
+ {
+ SwCorrection* pCorr = new SwCorrection( aAWord.GetShort() );
+ pCorr->Correct() = aNewWord;
+ if( !pTempAuto )
+ pTempAuto = new SwTempAuto();
+ pTempAuto->Insert( pCorr );
+ }
+ }
+
+ }
+ else
+ switch( nRet )
+ {
+ case MN_SPELLING:
+ {
+ pSh->Left();
+ {
+ SvxDicListChgClamp aClamp( SvxGetDictionaryList() );
+ pSh->GetView().GetViewFrame()->GetDispatcher()->
+ Execute( FN_SPELLING_DLG, SFX_CALLMODE_ASYNCHRON );
+ }
+ // should be superfluos by adding the ignore list to
+ // the dictionary list.
+ // SW_MOD()->CheckSpellChanges( sal_False, );
+ }
+ break;
+ case MN_IGNORE :
+ {
+ sal_Int16 nAddRes = SvxAddEntryToDic(
+ uno::Reference< linguistic::XDictionary > ( SvxGetIgnoreAllList(), uno::UNO_QUERY ),
+ xSpellAlt->getWord(), sal_False,
+ aEmptyStr, LANGUAGE_NONE );
+ }
+ break;
+ case MN_INSERT:
+ DBG_ERROR("geht noch nicht!")
+ break;
+ case MN_LANGUAGE_WORD:
+ case MN_LANGUAGE_PARA:
+ {
+ pSh->StartAction();
+
+ if( MN_LANGUAGE_PARA == nRet )
+ {
+ if( !pSh->IsSttPara() )
+ pSh->MovePara( fnParaCurr, fnParaStart );
+ pSh->SwapPam();
+ if( !pSh->IsEndPara() )
+ pSh->MovePara( fnParaCurr, fnParaEnd );
+ }
+
+ SfxItemSet aSet(pSh->GetAttrPool(), RES_CHRATR_LANGUAGE,
+ RES_CHRATR_LANGUAGE);
+ aSet.Put( SvxLanguageItem( nCorrLang ) );
+ pSh->SetAttr( aSet );
+
+ pSh->EndAction();
+ }
+ break;
+ default:
+ if(nRet >= MN_INSERT_START )
+ {
+ OUString aWord( xSpellAlt->getWord() );
+ if (MN_INSERT_START == nRet)
+ {
+ uno::Reference< linguistic::XOtherLingu2 > xOther2( xOther, uno::UNO_QUERY );
+ if (xOther2.is())
+ {
+ xOther2->addWord( 0, aWord,
+ SvxLocaleToLanguage( xSpellAlt->getLocale() ) );
+
+ // first parameter is TRUE since this menue
+ // is only invoked while online-spelling is
+ // active
+ SW_MOD()->CheckSpellChanges( TRUE, TRUE, FALSE );
+ }
+ }
+ else
+ {
+ INT32 nDicIdx = nRet - MN_INSERT_START - 1;
+ DBG_ASSERT( nDicIdx < aDics.getLength(),
+ "dictionary index out of range" );
+ uno::Reference< linguistic::XDictionary > xDic =
+ aDics.getConstArray()[nDicIdx];
+ INT16 nAddRes = SvxAddEntryToDic( xDic,
+ aWord, FALSE, aEmptyStr, LANGUAGE_NONE );
+
+ /*if (DIC_ERR_NONE == nAddRes)
+ SW_MOD()->CheckSpellChanges( FALSE, TRUE, FALSE );
+ else*/
+ if (DIC_ERR_NONE != nAddRes
+ && !xDic->getEntry( aWord ).is())
+ {
+ SvxDicError(
+ &pSh->GetView().GetViewFrame()->GetWindow(),
+ nAddRes );
+ }
+ }
+
+ //should work with dictionaryListener mechanism
+ //SW_MOD()->CheckSpellChanges( FALSE, FALSE, FALSE );
+ }
+ }
+ }
+ pSh->EnterStdMode();
+ return nRet;
+}
+
+
+
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.64 2000/09/18 16:05:54 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.63 2000/09/07 15:59:25 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.62 2000/05/24 11:54:40 khz
+ Change for Unicode
+
+ Revision 1.61 2000/05/16 17:27:46 jp
+ Changes for Unicode
+
+ Revision 1.60 2000/05/16 09:15:13 os
+ project usr removed
+
+ Revision 1.59 2000/05/09 14:46:08 os
+ UNICODE
+
+ Revision 1.58 2000/04/18 15:35:07 os
+ UNICODE
+
+ Revision 1.57 2000/04/12 11:01:24 tl
+ #74727# bugfix von src569 nachgezogen
+
+ Revision 1.56 2000/03/23 07:32:27 os
+ UNO III
+
+ Revision 1.55 2000/03/16 10:51:17 tl
+ #73839# use language of word to check for dictionories to be displayed in SwSpellPopup
+
+ Revision 1.54 2000/03/15 14:49:19 tl
+ #70734# AddWord for external linguistic added
+
+ Revision 1.53 2000/03/07 10:40:19 tl
+ #72833# SvxPrepareAutoCorrect used
+
+ Revision 1.52 2000/02/25 10:44:07 tl
+ #62869# new error message when adding word to dictionary failed
+
+ Revision 1.51 2000/02/22 16:38:05 tl
+ #73380# standard.dic created, acivated and added to list
+
+ Revision 1.50 2000/02/21 15:57:17 tl
+ #72081# strip '.' from word before adding to dictionaries
+
+ Revision 1.49 2000/02/16 20:58:50 tl
+ #72219# Locale Umstellung
+
+ Revision 1.48 2000/02/04 12:22:19 tl
+ #72446# IgnoreAllList removed from list of selectable dictionaries
+
+ Revision 1.47 2000/02/01 11:53:12 tl
+ #71634# insert '.' to replacement if original word has it
+
+ Revision 1.46 2000/01/11 10:28:08 tl
+ #70735# use isActive/setActive from linguistic::XDictionary now
+
+ Revision 1.45 1999/12/22 19:56:14 jp
+ Bug #71270#: SwSpellPopup - insert separator
+
+ Revision 1.44 1999/12/16 13:52:07 tl
+ #70973# PopupMenu ok even without spelling alternatives
+
+ Revision 1.43 1999/11/24 18:30:28 tl
+ check for Service availability
+
+ Revision 1.42 1999/11/19 16:40:23 os
+ modules renamed
+
+ Revision 1.41 1999/11/10 11:03:36 tl
+ Ongoing ONE_LINGU implementation
+
+ Revision 1.40 1999/10/18 13:15:34 os
+ external lingu: no special handling in WIN
+
+ Revision 1.39 1999/09/21 10:22:26 rt
+ #65293# sysdep.hxx -> svwin.h
+
+ Revision 1.38 1999/09/21 10:16:23 os
+ Sysdepen::GethWnd -> return 0
+
+ Revision 1.37 1999/09/20 11:08:21 hr
+ #65293#: removed <vcl/sysdep.hxx>
+
+ Revision 1.36 1999/08/31 08:37:26 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.35 31 Aug 1999 10:37:26 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.34 22 Feb 1999 13:37:56 MA
+ #62126# gesperrte Eintraege entfernen lassen
+
+ Rev 1.33 24 Nov 1998 10:05:10 OS
+ #59590# mehrsprachige Autokorrektur
+
+ Rev 1.32 29 Oct 1998 16:29:54 AMA
+ Fix #58621#: Falsch geschriebene Woerter _nicht_ in AusnahmeWB uebernehmen
+
+ Rev 1.31 28 Jul 1998 15:34:50 AMA
+ Fix #54147#: Nicht zuviel loeschen, Ueberschreibmodus kurzzeitig ausschalten
+
+ Rev 1.30 09 Jun 1998 15:28:44 AMA
+ Fix #50994#: Bei der Absatzselektion nicht uebers Ziel hinausschiessen
+
+ Rev 1.29 07 May 1998 15:05:04 AMA
+ New: SpellPopup bietet Sprachumstellung am Wort oder Absatz an
+
+ Rev 1.28 29 Apr 1998 09:30:04 MA
+ ucb::Command, Contextmenu auch fuer Tastatur
+
+ Rev 1.27 21 Nov 1997 13:00:26 MA
+ includes
+
+ Rev 1.26 18 Sep 1997 14:00:10 OS
+ Pointer::GetPosPixel fuer VCL ersetzt
+
+ Rev 1.25 29 Aug 1997 16:35:50 MH
+ chg: Syntax
+
+ Rev 1.24 29 Aug 1997 15:59:24 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.23 29 Aug 1997 14:02:46 OS
+ DLL-Umbau
+
+ Rev 1.22 07 Aug 1997 14:34:00 HJS
+ includes
+
+ Rev 1.21 14 Jul 1997 08:07:58 OS
+ HelpIDs fuer SpellPopup #41627#
+
+ Rev 1.20 30 Jun 1997 10:29:06 MH
+ cat fuer OS2
+
+ Rev 1.19 26 Jun 1997 13:31:40 AMA
+ New: AddWord mit Window-Handle + Automatisches Aufnehmen unbekannter Woerter
+
+ Rev 1.18 05 Jun 1997 17:28:52 AMA
+ New: Fremdlinguistik nimmt auch Woerter auf
+
+ Rev 1.17 04 Feb 1997 13:13:00 AMA
+ New: Online-Spelling-Vorschlag in die Autokorrektur aufnehmen
+
+ Rev 1.16 11 Nov 1996 10:58:52 MA
+ ResMgr
+
+ Rev 1.15 06 Nov 1996 19:57:04 MH
+ SwSplCfg -> OfaSplCfg
+
+ Rev 1.14 24 Oct 1996 13:36:28 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.13 23 Oct 1996 13:49:28 JP
+ SVMEM -> SVSTDARR Umstellung
+
+ Rev 1.12 15 Oct 1996 14:14:46 JP
+ AutoCorrCfg in die OfficeApplication verschoben
+
+ Rev 1.11 28 Aug 1996 12:52:34 OS
+ includes
+
+ Rev 1.10 21 Jun 1996 10:33:32 AMA
+ New #28010#: Temporaere Autokorrektur
+
+ Rev 1.9 20 May 1996 09:58:38 AMA
+ Fix: SvStringsDtor statt SvStrings
+
+ Rev 1.8 26 Apr 1996 15:47:10 AMA
+ Fix #27394#: Geprueftes Wort jetzt als erstes der Alternativen
+
+ Rev 1.7 26 Apr 1996 10:18:10 AMA
+ Fix #27394#: Geprueftes Wort jetzt als erstes Element der Alternativ-Liste.
+
+ Rev 1.6 23 Apr 1996 10:33:28 AMA
+ Fix #27260#: Online-Spelling-PopUp und Punkte, Anfuehrungszeichen etc.
+
+ Rev 1.5 05 Mar 1996 11:13:30 AMA
+ Fix: GetCorrect() selektiert; Fix: Punkte bei Abkrzg. und Satzende beachten
+
+ Rev 1.4 29 Feb 1996 10:31:30 AMA
+ Opt: SpellItAgainSam startet Idlen ggf. auch ohne Spell-Invalidierung
+
+ Rev 1.3 27 Feb 1996 17:04:56 AMA
+ New: CheckSpellChanges()
+
+ Rev 1.2 26 Feb 1996 07:50:56 OS
+ Aufnehmen-enable berichtigt
+
+ Rev 1.1 23 Feb 1996 08:33:42 OS
+ Woerterbuecher nach Sprache anbieten, Woerter aufnehmen
+
+ Rev 1.0 22 Feb 1996 15:55:28 OS
+ Initial revision.
+
+*************************************************************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/lingu/olmenu.hrc b/sw/source/ui/lingu/olmenu.hrc
new file mode 100644
index 000000000000..71937efaa450
--- /dev/null
+++ b/sw/source/ui/lingu/olmenu.hrc
@@ -0,0 +1,87 @@
+/*************************************************************************
+ *
+ * $RCSfile: olmenu.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _OLMENU_HRC
+#define _OLMENU_HRC
+
+#include "rcid.hrc"
+
+#define MN_SPELL_POPUP (RC_LINGU_BEGIN + 1)
+#define STR_SPELL_OK (RC_LINGU_BEGIN + 2)
+#define STR_HYP_OK (RC_LINGU_BEGIN + 3)
+#define STR_WORD (RC_LINGU_BEGIN + 4)
+#define STR_PARAGRAPH (RC_LINGU_BEGIN + 5)
+
+#define MN_SPELLING 100
+#define MN_IGNORE 102
+#define MN_INSERT 103
+#define MN_AUTOCORR 104
+#define MN_LANGUAGE_WORD 105
+#define MN_LANGUAGE_PARA 106
+
+#define MN_INSERT_START 500
+#define MN_AUTOCORR_START 900
+
+#endif
+
+
+
+
diff --git a/sw/source/ui/lingu/olmenu.src b/sw/source/ui/lingu/olmenu.src
new file mode 100644
index 000000000000..4e72d6936acf
--- /dev/null
+++ b/sw/source/ui/lingu/olmenu.src
@@ -0,0 +1,298 @@
+/*************************************************************************
+ *
+ * $RCSfile: olmenu.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+#include "olmenu.hrc"
+#include "helpid.h"
+#define SEPARATOR MenuItem { Separator = TRUE; };
+Menu MN_SPELL_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_SPELLING ;
+ HelpID = HID_LINGU_SPELLING_DLG ;
+ Text = "~Rechtschreibung" ;
+ Text [ English ] = "~Spelling" ;
+ Text [ english_us ] = "~Spellcheck" ;
+ Text [ italian ] = "Controllo ~ortografico" ;
+ Text [ spanish ] = "Ortogra~fía" ;
+ Text [ french ] = "~Orthographe" ;
+ Text [ dutch ] = "~Spellingcontrole" ;
+ Text [ swedish ] = "~Rättstavning" ;
+ Text [ danish ] = "Stavekont~rol" ;
+ Text [ portuguese ] = "Or~tografia" ;
+ Text [ portuguese_brazilian ] = "~Rechtschreibung" ;
+ Text[ chinese_simplified ] = "Õý×Ö·¨(~S)";
+ Text[ russian ] = "Ïðàâ~îïèñàíèå";
+ Text[ polish ] = "~Pisownia";
+ Text[ japanese ] = "•¶ÍZ³(~S)";
+ Text[ chinese_traditional ] = "«÷¦r(~S)";
+ Text[ arabic ] = "~ÊÏÞíÞ ÅãáÇÆí";
+ Text[ dutch ] = "~Spellingcontrole";
+ Text[ chinese_simplified ] = "Õý×Ö·¨(~S)";
+ Text[ greek ] = "Ïñèïã~ñáößá";
+ Text[ korean ] = "¸ÂÃã¹ý(~S)";
+ Text[ turkish ] = "~Yazým kýlavuzu";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_INSERT ;
+ HelpID = HID_LINGU_ADD_WORD ;
+ Text = "~Aufnehmen" ;
+ Text [ English ] = "~Insert" ;
+ SubMenu = Menu
+ {
+ };
+ Text [ english_us ] = "~Add" ;
+ Text [ italian ] = "A~ggiungi" ;
+ Text [ spanish ] = "~Incluir" ;
+ Text [ french ] = "~Ajouter" ;
+ Text [ dutch ] = "~Toevoegen" ;
+ Text [ swedish ] = "~Lägg till" ;
+ Text [ danish ] = "Tilføj" ;
+ Text [ portuguese ] = "~Adicionar" ;
+ Text [ portuguese_brazilian ] = "~Aufnehmen" ;
+ Text[ chinese_simplified ] = "½ÓÊÜ(~A)";
+ Text[ russian ] = "Äîáàâèòü";
+ Text[ polish ] = "Dodaj";
+ Text[ japanese ] = "’ljÁ(~A)";
+ Text[ chinese_traditional ] = "¥[¤J(~A)";
+ Text[ arabic ] = "ÅÖÇÝÉ";
+ Text[ dutch ] = "~Toevoegen";
+ Text[ chinese_simplified ] = "½ÓÊÜ(~A)";
+ Text[ greek ] = "Ðñ~ïóèÞêç";
+ Text[ korean ] = "Ãß°¡(~A)";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_IGNORE ;
+ HelpID = HID_LINGU_IGNORE_WORD ;
+ /* ### ACHTUNG: Neuer Text in Resource? Alle i~gnorieren : ~Ignorieren */
+ /* ### ACHTUNG: Neuer Text in Resource? Alle i~gnorieren : ~Ignorieren */
+ Text = "Alle i~gnorieren" ;
+ Text [ ENGLISH ] = "I~gnore all" ;
+ Text [ norwegian ] = "I~gnorer alle" ;
+ Text [ italian ] = "~Ignora tutto" ;
+ Text [ portuguese_brazilian ] = "I~gnorar tudo" ;
+ Text [ portuguese ] = "~Ignorar tudo" ;
+ Text [ finnish ] = "O~hita kaikki" ;
+ Text [ danish ] = "Ignorer alle" ;
+ Text [ french ] = "~Ignorer tout" ;
+ Text [ swedish ] = "~Ignorera alla" ;
+ Text [ dutch ] = "Alle ~negeren" ;
+ Text [ spanish ] = "~Ignorar todo" ;
+ Text [ english_us ] = "Ignore All" ;
+ Text[ chinese_simplified ] = "È«²¿ºöÂÔ(~I)";
+ Text[ russian ] = "Ïðîïóñêàòü âñå";
+ Text[ polish ] = "Zignoruj wszystkie";
+ Text[ japanese ] = "‚·‚ׂĖ³Ž‹‚·‚é";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¥þ³¡©¿²¤(~I)";
+ Text[ arabic ] = "ÊÌÇåá Çáßá";
+ Text[ dutch ] = "Alle ~negeren";
+ Text[ chinese_simplified ] = "È«²¿ºöÂÔ(~I)";
+ Text[ greek ] = "ÐáñÜ~âëåøç üëùí";
+ Text[ korean ] = "¸ðµÎ ¹«½Ã";
+ Text[ turkish ] = "Tümünü yok say";
+ };
+ MenuItem
+ {
+ Identifier = MN_AUTOCORR ;
+ HelpID = HID_LINGU_AUTOCORR ;
+ Text = "Auto~Korrektur" ;
+ Text [ English ] = "~AutoCorrect" ;
+ SubMenu = Menu
+ {
+ };
+ Text [ english_us ] = "AutoCorrect" ;
+ Text [ portuguese_brazilian ] = "Auto~Korrektur" ;
+ Text [ swedish ] = "Auto~Korrigering" ;
+ Text [ danish ] = "AutoKorrektur" ;
+ Text [ italian ] = "Correzione automatica" ;
+ Text [ spanish ] = "Auto~Corrección" ;
+ Text [ french ] = "AutoCo~rrection" ;
+ Text [ dutch ] = "Auto~Correctie" ;
+ Text [ portuguese ] = "Auto~Correcção" ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸üÕý(~K)";
+ Text[ russian ] = "Àâòîçàìåíà";
+ Text[ polish ] = "Autokorekta";
+ Text[ japanese ] = "µ°ÄºÚ¸Ä";
+ Text[ chinese_traditional ] = "¦Û°Ê®Õ¥¿(~K)";
+ Text[ arabic ] = "ÊÕÍíÍ ÊáÞÇÆí";
+ Text[ dutch ] = "Auto~Correctie";
+ Text[ chinese_simplified ] = "×Ô¶¯¸üÕý(~K)";
+ Text[ greek ] = "Áõôï~Äéüñèùóç";
+ Text[ korean ] = "ÀÚµ¿ ¸ÂÃã";
+ Text[ turkish ] = "Otomatik düzeltme";
+ Text[ language_user1 ] = " ";
+ };
+ };
+};
+String STR_WORD
+{
+ Text = "Wort ist " ;
+ Text [ ENGLISH ] = "word in" ;
+ Text [ portuguese ] = "Palavra em " ;
+ Text [ english_us ] = "word is " ;
+ Text [ portuguese_brazilian ] = "Wort ist " ;
+ Text [ swedish ] = "ord är " ;
+ Text [ danish ] = "Ordet er " ;
+ Text [ italian ] = "Il termine è " ;
+ Text [ spanish ] = "La palabra es " ;
+ Text [ french ] = "Le mot est en " ;
+ Text [ dutch ] = "Woord is " ;
+ Text[ chinese_simplified ] = "µ¥´ÊÊÇ ";
+ Text[ russian ] = "ßçûê ñëîâà: ";
+ Text[ polish ] = "S³owo jest ";
+ Text[ japanese ] = "’PŒê‚Í ";
+ Text[ chinese_traditional ] = "¦r¬O ";
+ Text[ language_user1 ] = " ";
+ Text[ arabic ] = "áÛÉ ÇáßáãÉ: ";
+ Text[ dutch ] = "Woord is ";
+ Text[ chinese_simplified ] = "µ¥´ÊÊÇ ";
+ Text[ greek ] = "Ç ëÝîç åßíáé ";
+ Text[ korean ] = "´Ü¾î´Â ";
+ Text[ turkish ] = "Sözcük: ";
+};
+String STR_PARAGRAPH
+{
+ Text = "Absatz ist " ;
+ Text [ ENGLISH ] = "Paragraph in" ;
+ Text [ portuguese ] = "Parágrafo em " ;
+ Text [ english_us ] = "Paragraph is " ;
+ Text [ portuguese_brazilian ] = "Absatz ist " ;
+ Text [ swedish ] = "Stycket är " ;
+ Text [ danish ] = "Afsnittet er " ;
+ Text [ italian ] = "Il paragrafo è " ;
+ Text [ spanish ] = "El párrafo es " ;
+ Text [ french ] = "Le paragraphe est en" ;
+ Text [ dutch ] = "Alinea is " ;
+ Text[ chinese_simplified ] = "¶ÎÂäÊÇ ";
+ Text[ russian ] = "ßçûê àáçàöà: ";
+ Text[ polish ] = "Akapit jest ";
+ Text[ japanese ] = "’i—Ž‚Í ";
+ Text[ chinese_traditional ] = "¬q¸¨¬O ";
+ Text[ arabic ] = "áÛÉ ÇáÝÞÑÉ: ";
+ Text[ language_user1 ] = " ";
+ Text[ dutch ] = "Alinea is ";
+ Text[ chinese_simplified ] = "¶ÎÂäÊÇ ";
+ Text[ greek ] = "Ç ðáñÜãñáöïò åßíáé ";
+ Text[ korean ] = "´Ü¶ôÀº ";
+ Text[ turkish ] = "Paragraf: ";
+};
+String STR_SPELL_OK
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Die Rechtschreibprüfung ist abgeschlossen! : Die Rechtschreibpr³fung ist abgeschlossen! */
+ Text = "Die Rechtschreibprüfung ist abgeschlossen!" ;
+ Text [ ENGLISH ] = "Spell checking has finished." ;
+ Text [ portuguese ] = "A verificação ortográfica está concluída!" ;
+ Text [ english_us ] = "The spellcheck is complete." ;
+ Text [ portuguese_brazilian ] = "Die Rechtschreibprüfung ist abgeschlossen!" ;
+ Text [ swedish ] = "Rättstavningskontrollen är avslutad!" ;
+ Text [ danish ] = "Stavekontrollen er afsluttet!" ;
+ Text [ italian ] = "Controllo ortografico terminato!" ;
+ Text [ spanish ] = "¡Ha finalizado la revisión ortográfica!" ;
+ Text [ french ] = "La vérification de l'orthographe est terminée !" ;
+ Text [ dutch ] = "De spellingcontrole is beëindigd!" ;
+ Text[ chinese_simplified ] = "Õý×Ö·¨¼ì²éÒѾ­½áÊø£¡";
+ Text[ russian ] = "Ïðîâåðêà ïðàâîïèñàíèÿ çàêîí÷åíà!";
+ Text[ polish ] = "Sprawdzanie pisowni zosta³o zakoñczone!";
+ Text[ japanese ] = "½ÍßÙÁª¯¸‚ªI—¹‚µ‚Ü‚µ‚½B";
+ Text[ chinese_traditional ] = "«÷¦rÀˬd¤w¸gµ²§ô¡T";
+ Text[ arabic ] = ".Êã ÇáÇäÊåÇÁ ãä ÇáÊÏÞíÞ ÇáÅãáÇÆí";
+ Text[ dutch ] = "De spellingcontrole is beëindigd!";
+ Text[ chinese_simplified ] = "Õý×Ö·¨¼ì²éÒѾ­½áÊø£¡";
+ Text[ greek ] = "Ï ïñèïãñáöéêüò Ýëåã÷ïò ïëïêëçñþèçêå!";
+ Text[ korean ] = "¸ÂÃã¹ý °Ë»ç°¡ ¿Ï·áµÇ¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Yazým denetimi tamamlandý!";
+ Text[ language_user1 ] = " ";
+};
+String STR_HYP_OK
+{
+ Text = "Die Silbentrennung ist abgeschlossen!" ;
+ Text [ ENGLISH ] = "Hyphenating has finished." ;
+ Text [ portuguese ] = "Separação silábica está completa!" ;
+ Text [ english_us ] = "Hyphenation completed" ;
+ Text [ portuguese_brazilian ] = "Die Silbentrennung ist abgeschlossen!" ;
+ Text [ swedish ] = "Avstavningen är avslutad!" ;
+ Text [ danish ] = "Orddelingen er afsluttet!" ;
+ Text [ italian ] = "La sillabazione è conclusa!" ;
+ Text [ spanish ] = "La separación silábica ha finalizado" ;
+ Text [ french ] = "La coupure des mots est terminée !" ;
+ Text [ dutch ] = "De verdeling in lettergrepen is beëindigd!" ;
+ Text[ chinese_simplified ] = "Á¬×Ö·û¼ì²éÒѾ­Íê³É£¡";
+ Text[ russian ] = "Ðàññòàíîâêà ïåðåíîñîâ çàêîí÷åíà!";
+ Text[ polish ] = "Dzielenie wyrazów zosta³o zakoñczone.";
+ Text[ japanese ] = "ʲÌÈ°¼®Ý‚ªI—¹‚µ‚Ü‚µ‚½!";
+ Text[ chinese_traditional ] = "³s¦r²ÅÀˬd¤w¸g§¹¦¨¡I";
+ Text[ arabic ] = "ÊãøóÊ ÚãáíÉ ÝÕá ÇáãÞÇØÚ!";
+ Text[ dutch ] = "De verdeling in lettergrepen is beëindigd!";
+ Text[ chinese_simplified ] = "Á¬×Ö·û¼ì²éÒѾ­Íê³É£¡";
+ Text[ greek ] = "Ï óõëëáâéóìüò Ý÷åé ïëïêëçñùèåß!";
+ Text[ korean ] = "ÇÏÀÌÇÂÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Heceleme tamamlandý.";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/makefile.mk b/sw/source/ui/makefile.mk
new file mode 100644
index 000000000000..52fc55599eb5
--- /dev/null
+++ b/sw/source/ui/makefile.mk
@@ -0,0 +1,320 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..
+
+PRJNAME=sw
+TARGET=ui
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=.$/ui_1st$/ui_pch
+
+.IF "$(CALLTARGETS)"=="ui"
+RC_SUBDIRS=
+.ENDIF
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+.IF "$(GUI)" != "WNT"
+.IF "$(GUI)" != "MAC"
+.IF "$(COM)" != "BLC"
+.IF "$(COM)" != "WTC"
+LIBFLAGS=/NOI /NOE /PAGE:256
+.ENDIF
+.ENDIF
+.ENDIF
+.ENDIF
+
+# --- Files --------------------------------------------------------
+
+# andere Label als Verzeichnisnamen fuer VC++/NT
+.IF "$(RC_SUBDIRS)" == ""
+SWSUBDIRS= \
+ ui_1st \
+ app \
+ cctrl \
+ chrdlg \
+ config \
+ dbui \
+ dialog \
+ dochdl \
+ docvw \
+ envelp \
+ fldui \
+ fmtui \
+ frmdlg \
+ globdoc \
+ index \
+ lingu \
+ misc \
+ ribbar \
+ shells \
+ table \
+ uno \
+ uiview \
+ utlui \
+ web \
+ wizard \
+ wrtsh
+.ENDIF
+
+SUBLIBS1= \
+ $(SLB)$/app.lib \
+ $(SLB)$/cctrl.lib \
+ $(SLB)$/chrdlg.lib \
+ $(SLB)$/config.lib \
+ $(SLB)$/dbui.lib \
+ $(SLB)$/dialog.lib \
+ $(SLB)$/dochdl.lib \
+ $(SLB)$/docvw.lib \
+ $(SLB)$/envelp.lib \
+ $(SLB)$/fldui.lib \
+ $(SLB)$/fmtui.lib \
+ $(SLB)$/frmdlg.lib \
+ $(SLB)$/globdoc.lib
+
+SUBLIBS2= \
+ $(SLB)$/index.lib \
+ $(SLB)$/lingu.lib \
+ $(SLB)$/misc.lib \
+ $(SLB)$/ribbar.lib \
+ $(SLB)$/shells.lib \
+ $(SLB)$/table.lib \
+ $(SLB)$/unoidl.lib \
+ $(SLB)$/utlui.lib \
+ $(SLB)$/web.lib \
+ $(SLB)$/wizard.lib \
+ $(SLB)$/uiview.lib \
+ $(SLB)$/wrtsh.lib
+
+# -----------------------------------------------------------
+
+.IF "$(RC_SUBDIRS)" == ""
+.IF "$(depend)" == ""
+ui: \
+ ui_1st \
+ $(SWSUBDIRS) \
+ ALLTAR
+.ELSE
+ui:
+ @+echo Doing nothing in source\ui
+.ENDIF
+.ENDIF
+
+################################################################
+
+LIB1TARGET=$(SLB)$/ui1.lib
+LIB1FILES= \
+ $(SUBLIBS1)
+
+LIB2TARGET=$(SLB)$/ui2.lib
+LIB2FILES= \
+ $(SUBLIBS2)
+
+.INCLUDE : target.mk
+
+################################################################
+
+.IF "$(dbutil)" != ""
+dbutilx="dbutil=true"
+.ENDIF
+.IF "$(debug)" != ""
+.IF "$(debug)"!="D_FORCE_OPT"
+dbutilx="debug=$(debug)"
+.ENDIF
+.ENDIF
+
+.IF "$(compact)" != ""
+dcompact="compact=true"
+.ELSE
+dcompact=
+.ENDIF
+
+.IF "$(CALLTARGETS)"!="ui"
+.IF "$(DOPLD)$(dopld)" == ""
+
+.IF "$(RC_SUBDIRS)" == ""
+#rule lib / subdir
+$(LB)$/%.lib : %
+ @echo @
+
+ui_1st .SETDIR=ui_1st:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(CALLMACROS)
+
+# app $(LB)$/app.lib .SETDIR=app:
+app .SETDIR=app:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+cctrl .SETDIR=cctrl:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+chrdlg .SETDIR=chrdlg:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+config .SETDIR=config:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+dbui .SETDIR=dbui:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+dialog .SETDIR=dialog:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+dochdl .SETDIR=dochdl:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+docvw .SETDIR=docvw:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+envelp .SETDIR=envelp:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+fldui .SETDIR=fldui:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+fmtui .SETDIR=fmtui:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+frmdlg .SETDIR=frmdlg:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+globdoc .SETDIR=globdoc:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+index .SETDIR=index:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+lingu .SETDIR=lingu:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+misc .SETDIR=misc:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+ribbar .SETDIR=ribbar:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+shells .SETDIR=shells:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+table .SETDIR=table:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+uiview .SETDIR=uiview:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+utlui .SETDIR=utlui:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+uno .SETDIR=uno:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+wizard .SETDIR=wizard:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+web .SETDIR=web:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+
+wrtsh .SETDIR=wrtsh:
+ @echo $@
+ @$(MAKECMD) -d $(MFLAGS) $(dbutilx) $(dcompact) $(CALLMACROS)
+.ENDIF
+.ELSE
+ui_1st:
+ @echo nix
+.ENDIF
+.ENDIF
+
+kill:
+ @+$(RM) $(SLB)$/ui.lst
+ @+$(RM) $(SLB)$/ui.lib
+
+
diff --git a/sw/source/ui/misc/autocorr.src b/sw/source/ui/misc/autocorr.src
new file mode 100644
index 000000000000..feb19530f863
--- /dev/null
+++ b/sw/source/ui/misc/autocorr.src
@@ -0,0 +1,63 @@
+/*************************************************************************
+ *
+ * $RCSfile: autocorr.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
new file mode 100644
index 000000000000..d6c208b6da57
--- /dev/null
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -0,0 +1,452 @@
+/*************************************************************************
+ *
+ * $RCSfile: bookmark.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "basesh.hxx"
+#include "wrtsh.hxx" //
+#include "cmdid.h"
+#include "bookmark.hxx" // SwInsertBookmarkDlg
+#include "bookmrk.hxx" // SwBookmark
+#include "bookmark.hrc"
+#include "misc.hrc"
+
+
+const String BookmarkCombo::aForbiddenChars = String::CreateFromAscii("/\\@:*?\";,.#");
+
+
+IMPL_LINK( SwInsertBookmarkDlg, ModifyHdl, BookmarkCombo *, pBox )
+{
+ BOOL bSelEntries = pBox->GetSelectEntryCount() != 0;
+ // if a string has been pasted from the clipboard then
+ // there may be illegal characters in the box
+ if(!bSelEntries)
+ {
+ String sTmp = pBox->GetText();
+ USHORT nLen = sTmp.Len();
+ String sMsg;
+ for(USHORT i = 0; i < BookmarkCombo::aForbiddenChars.Len(); i++)
+ {
+ USHORT nTmpLen = sTmp.Len();
+ sTmp.EraseAllChars(BookmarkCombo::aForbiddenChars.GetChar(i));
+ if(sTmp.Len() != nTmpLen)
+ sMsg += BookmarkCombo::aForbiddenChars.GetChar(i);
+ }
+ if(sTmp.Len() != nLen)
+ {
+ pBox->SetText(sTmp);
+ String sWarning(sRemoveWarning);
+ sWarning += sMsg;
+ InfoBox(this, sWarning).Execute();
+ }
+
+
+ }
+
+ aOkBtn.Enable(!bSelEntries); // neue Textmarke
+ aDeleteBtn.Enable(bSelEntries); // loeschbar?
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Callback zum Loeschen einer Textmarke
+ -----------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertBookmarkDlg, DeleteHdl, Button *, EMPTYARG )
+{
+ // Textmarken aus der ComboBox entfernen
+
+ for (USHORT i = aBookmarkBox.GetSelectEntryCount(); i; i-- )
+ aBookmarkBox.RemoveEntry(aBookmarkBox.GetSelectEntryPos(i - 1));
+
+ aBookmarkBox.SetText(aEmptyStr);
+ aDeleteBtn.Enable(FALSE); // keine weiteren Eintraege vorhanden
+ // aBookmarkBox.SetText(aEmptyStr);
+
+ aOkBtn.Enable(); // Im OK Handler wird geloescht
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Callback fuer OKButton. Fuegt eine neue Textmarke
+ an die akt. Position ein. Geloeschte Textmarken werden auch am Modell
+ entfernt.
+ -----------------------------------------------------------------------*/
+
+
+void SwInsertBookmarkDlg::Apply()
+{
+ // Textmarke einfuegen
+ USHORT nLen = aBookmarkBox.GetText().Len();
+ SwBoxEntry aTmpEntry(aBookmarkBox.GetText(), 0 );
+
+ if (nLen && (aBookmarkBox.GetEntryPos(aTmpEntry) == COMBOBOX_ENTRY_NOTFOUND))
+ {
+ String sEntry(aBookmarkBox.GetText());
+ sEntry.EraseAllChars(aBookmarkBox.GetMultiSelectionSeparator());
+
+ rSh.SetBookmark( KeyCode(), sEntry, aEmptyStr );
+ }
+
+ for (USHORT nCount = aBookmarkBox.GetRemovedCount(); nCount > 0; nCount--)
+ {
+ rSh.DelBookmark( aBookmarkBox.GetRemovedEntry( nCount -1 ).aName );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: CTOR
+ -----------------------------------------------------------------------*/
+
+
+SwInsertBookmarkDlg::SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rS ) :
+
+ SvxStandardDialog(pParent,SW_RES(DLG_INSERT_BOOKMARK)),
+
+ aBookmarkBox(this,SW_RES(CB_BOOKMARK)),
+ aBookmarkFrm(this,SW_RES(GB_BOOKMARK)),
+ aOkBtn(this,SW_RES(BT_OK)),
+ aCancelBtn(this,SW_RES(BT_CANCEL)),
+ aDeleteBtn(this,SW_RES(BT_DELETE)),
+ rSh( rS )
+{
+ aBookmarkBox.SetModifyHdl(LINK(this, SwInsertBookmarkDlg, ModifyHdl));
+ aBookmarkBox.EnableMultiSelection(TRUE);
+ aBookmarkBox.EnableAutocomplete( TRUE, TRUE );
+
+ aDeleteBtn.SetClickHdl(LINK(this, SwInsertBookmarkDlg, DeleteHdl));
+
+ // Combobox mit vorhandenen Bookmarks fuellen
+ USHORT nCount = rSh.GetBookmarkCnt(TRUE);
+
+ for( USHORT nId = 0; nId < nCount; nId++ )
+ {
+ SwBookmark& rBkmk = rSh.GetBookmark( nId, TRUE );
+ aBookmarkBox.InsertEntry( SwBoxEntry( rBkmk.GetName(), nId ) );
+ }
+
+ FreeResource();
+ sRemoveWarning = String(SW_RES(STR_REMOVE_WARNING));
+
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SwInsertBookmarkDlg::~SwInsertBookmarkDlg()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+BookmarkCombo::BookmarkCombo( Window* pWin, const ResId& rResId ) :
+ SwComboBox(pWin, rResId)
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+USHORT BookmarkCombo::GetFirstSelEntryPos() const
+{
+ return GetSelEntryPos(0);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+USHORT BookmarkCombo::GetNextSelEntryPos(USHORT nPos) const
+{
+ return GetSelEntryPos(nPos + 1);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+USHORT BookmarkCombo::GetSelEntryPos(USHORT nPos) const
+{
+ char cSep = GetMultiSelectionSeparator();
+
+ USHORT nCnt = GetText().GetTokenCount(cSep);
+
+ for (; nPos < nCnt; nPos++)
+ {
+ String sEntry(GetText().GetToken(nPos, cSep));
+ sEntry.EraseLeadingChars();
+ sEntry.EraseTrailingChars();
+ if (GetEntryPos(sEntry) != COMBOBOX_ENTRY_NOTFOUND)
+ return nPos;
+ }
+
+ return COMBOBOX_ENTRY_NOTFOUND;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+USHORT BookmarkCombo::GetSelectEntryCount() const
+{
+ USHORT nCnt = 0;
+
+ USHORT nPos = GetFirstSelEntryPos();
+ while (nPos != COMBOBOX_ENTRY_NOTFOUND)
+ {
+ nPos = GetNextSelEntryPos(nPos);
+ nCnt++;
+ }
+
+ return nCnt;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+String BookmarkCombo::GetSelectEntry( USHORT nSelIndex ) const
+{
+ USHORT nCnt = 0;
+ USHORT nPos = GetFirstSelEntryPos();
+ String sEntry;
+
+ while (nPos != COMBOBOX_ENTRY_NOTFOUND)
+ {
+ if (nSelIndex == nCnt)
+ {
+ char cSep = GetMultiSelectionSeparator();
+ sEntry = GetText().GetToken(nPos, cSep);
+ sEntry.EraseLeadingChars();
+ sEntry.EraseTrailingChars();
+
+ break;
+ }
+ nPos = GetNextSelEntryPos(nPos);
+ nCnt++;
+ }
+
+ return sEntry;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Position in der Listbox (der ComboBox)
+ -----------------------------------------------------------------------*/
+
+USHORT BookmarkCombo::GetSelectEntryPos( USHORT nSelIndex ) const
+{
+ USHORT nCnt = 0;
+ USHORT nPos = GetFirstSelEntryPos();
+
+ while (nPos != COMBOBOX_ENTRY_NOTFOUND)
+ {
+ if (nSelIndex == nCnt)
+ {
+ char cSep = GetMultiSelectionSeparator();
+ String sEntry(GetText().GetToken(nPos, cSep));
+ sEntry.EraseLeadingChars();
+ sEntry.EraseTrailingChars();
+
+ return GetEntryPos(sEntry);
+ }
+ nPos = GetNextSelEntryPos(nPos);
+ nCnt++;
+ }
+
+ return COMBOBOX_ENTRY_NOTFOUND;
+}
+/* -----------------05.02.99 08:39-------------------
+ *
+ * --------------------------------------------------*/
+long BookmarkCombo::PreNotify( NotifyEvent& rNEvt )
+{
+ long nHandled = 0;
+ if ( rNEvt.GetType() == EVENT_KEYINPUT )
+ {
+ const KeyEvent* pKEvt = rNEvt.GetKeyEvent();
+ String sKey = pKEvt->GetCharCode();
+ if(STRING_NOTFOUND != aForbiddenChars.Search(sKey))
+ nHandled = 1;
+ }
+ if(!nHandled)
+ nHandled = SwComboBox::PreNotify( rNEvt );
+ return nHandled;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.50 2000/09/18 16:05:55 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.49 2000/05/10 11:53:42 os
+ Basic API removed
+
+ Revision 1.48 2000/04/18 15:08:16 os
+ UNICODE
+
+ Revision 1.47 1999/07/02 07:13:56 OS
+ #63003# NameWarning also in StarOne rename dialog
+
+
+ Rev 1.46 02 Jul 1999 09:13:56 OS
+ #63003# NameWarning also in StarOne rename dialog
+
+ Rev 1.45 18 Jun 1999 13:04:58 OS
+ #63003# prevent illegal characters from beeing pasted
+
+ Rev 1.44 25 Feb 1999 13:43:04 OS
+ #62407# AutoComplete casesensitive
+
+ Rev 1.43 08 Feb 1999 15:04:12 OS
+ #61421# einige Sonderzeichen in Textmarken nicht erlauben
+
+ Rev 1.42 08 Oct 1998 15:45:34 OM
+ #57748# Multiselektion beim Loeschen von Bookmarks
+
+ Rev 1.41 23 Feb 1998 07:28:18 OS
+ GetBookmark/ Cnt mit Bookmark-Flag
+
+ Rev 1.40 24 Nov 1997 16:47:42 MA
+ includes
+
+ Rev 1.39 03 Nov 1997 13:22:42 MA
+ precomp entfernt
+
+ Rev 1.38 08 Aug 1997 17:28:20 OM
+ Headerfile-Umstellung
+
+ Rev 1.37 30 Jul 1997 18:33:30 HJS
+ includes
+
+ Rev 1.36 07 Apr 1997 16:08:26 MH
+ chg: header
+
+ Rev 1.35 20 Feb 1997 10:00:44 MA
+ #36242# richtig enablen
+
+ Rev 1.34 14 Jan 1997 09:22:28 TRI
+ includes wegen Internal Compiler Error
+
+ Rev 1.33 11 Nov 1996 11:05:46 MA
+ ResMgr
+
+ Rev 1.32 02 Oct 1996 18:28:58 MA
+ Umstellung Enable/Disable
+
+ Rev 1.31 28 Aug 1996 14:12:20 OS
+ includes
+
+ Rev 1.30 06 Feb 1996 15:21:06 JP
+ Link Umstellung 305
+
+ Rev 1.29 24 Nov 1995 16:58:44 OM
+ PCH->PRECOMPILED
+
+ Rev 1.28 08 Nov 1995 13:31:40 JP
+ Umstellung zur 301: Change -> Set
+
+ Rev 1.27 24 Oct 1995 17:05:06 OS
+ Textmarken einfuegen/loeschen recordable
+
+ Rev 1.26 17 Oct 1995 20:54:50 JP
+ IsMark oder IsBookmark am Bookmark benutzen
+
+ Rev 1.25 30 Aug 1995 14:00:54 MA
+ fix: sexport'iert
+
+ Rev 1.24 21 Aug 1995 09:32:42 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.23 05 Jul 1995 19:08:14 JP
+ SwBookmarkFUNC gibts nicht mehr, rufe Methoden an die Shell-Methoden
+
+ Rev 1.22 20 Mar 1995 19:28:20 OS
+ unbenutzte Funktionen entfernt
+
+ Rev 1.21 26 Oct 1994 12:18:00 ER
+ add: PCH (missed the misc)
+
+ -----------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/misc/bookmark.hrc b/sw/source/ui/misc/bookmark.hrc
new file mode 100644
index 000000000000..ea0efd8bf21f
--- /dev/null
+++ b/sw/source/ui/misc/bookmark.hrc
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: bookmark.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#define CB_BOOKMARK 1
+#define GB_BOOKMARK 2
+
+#define BT_OK 20
+#define BT_CANCEL 21
+#define BT_DELETE 22
diff --git a/sw/source/ui/misc/bookmark.src b/sw/source/ui/misc/bookmark.src
new file mode 100644
index 000000000000..4a7dc15dbe32
--- /dev/null
+++ b/sw/source/ui/misc/bookmark.src
@@ -0,0 +1,199 @@
+/*************************************************************************
+ *
+ * $RCSfile: bookmark.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+#include "bookmark.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_INSERT_BOOKMARK
+{
+ HelpID = FN_INSERT_BOOKMARK ;
+ OUTPUTSIZE = TRUE ;
+ Size = MAP_APPFONT ( 179 , 96 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Textmarke einfügen : Textmarke einf³gen */
+ TEXT = "Textmarke einfügen" ;
+ TEXT [ English ] = "Insert bookmark" ;
+ TEXT [ norwegian ] = "Sett inn bokmerke" ;
+ TEXT [ italian ] = "Inserisci segnalibro" ;
+ TEXT [ portuguese_brazilian ] = "Inserir marca" ;
+ TEXT [ portuguese ] = "Inserir marcador de texto" ;
+ TEXT [ finnish ] = "Lisää kirjanmerkki" ;
+ TEXT [ danish ] = "Indsæt tekstmarkering" ;
+ TEXT [ french ] = "Insertion d'un repère de texte" ;
+ TEXT [ swedish ] = "Infoga bokmärke" ;
+ TEXT [ dutch ] = "Tekstmarkering invoegen" ;
+ TEXT [ spanish ] = "Insertar marca" ;
+ TEXT [ english_us ] = "Insert Bookmark" ;
+ MOVEABLE = TRUE ;
+ SVLOOK = TRUE ;
+ OkButton BT_OK
+ {
+ DISABLE = TRUE ;
+ Pos = MAP_APPFONT ( 123 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TABSTOP = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 123 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TABSTOP = TRUE ;
+ };
+ ComboBox CB_BOOKMARK
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 99 , 70 ) ;
+ TABSTOP = TRUE ;
+ AutoHScroll = TRUE ;
+ SORT = TRUE ;
+ };
+ PushButton BT_DELETE
+ {
+ Pos = MAP_APPFONT ( 123 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Löschen : ~L÷schen */
+ TEXT = "~Löschen" ;
+ TEXT [ English ] = "~Delete" ;
+ TEXT [ norwegian ] = "~Slett" ;
+ TEXT [ italian ] = "~Elimina" ;
+ TEXT [ portuguese_brazilian ] = "~Apagar" ;
+ TEXT [ portuguese ] = "E~liminar" ;
+ TEXT [ finnish ] = "~Poista" ;
+ TEXT [ danish ] = "Slet" ;
+ TEXT [ french ] = "~Supprimer" ;
+ TEXT [ swedish ] = "~Radera" ;
+ TEXT [ dutch ] = "~Wissen" ;
+ TEXT [ spanish ] = "~Eliminar" ;
+ TEXT [ english_us ] = "~Delete" ;
+ TABSTOP = TRUE ;
+ DISABLE = TRUE ;
+ TEXT[ chinese_simplified ] = "ɾ³ý(~D)";
+ TEXT[ russian ] = "Óäàëèòü";
+ TEXT[ polish ] = "~Usuñ";
+ TEXT[ japanese ] = "íœ(~D)";
+ TEXT[ chinese_traditional ] = "§R°£(~D)";
+ TEXT[ greek ] = "ÄéáãñáöÞ";
+ TEXT[ korean ] = "»èÁ¦(~D)";
+ TEXT[ arabic ] = "ÍÐÝ";
+ TEXT[ turkish ] = "~Sil";
+ };
+ GroupBox GB_BOOKMARK
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 111 , 87 ) ;
+ TEXT = "Textmarken" ;
+ TEXT [ English ] = "Bookmarks" ;
+ TEXT [ norwegian ] = "Bokmerker" ;
+ TEXT [ italian ] = "Segnalibri" ;
+ TEXT [ portuguese_brazilian ] = "Marcas" ;
+ TEXT [ portuguese ] = "Marcadores de texto" ;
+ TEXT [ finnish ] = "Kirjanmerkit" ;
+ TEXT [ danish ] = "Tekstmarkeringer" ;
+ TEXT [ french ] = "Repères de texte" ;
+ TEXT [ swedish ] = "Bokmärken" ;
+ TEXT [ dutch ] = "Tekstmarkeringen" ;
+ TEXT [ spanish ] = "Marcas de texto" ;
+ TEXT [ english_us ] = "Bookmarks" ;
+ TEXT[ chinese_simplified ] = "ÊéÇ©";
+ TEXT[ russian ] = "Çàêëàäêè";
+ TEXT[ polish ] = "Zak³adki";
+ TEXT[ japanese ] = "÷½ÄÏ°¸";
+ TEXT[ chinese_traditional ] = "¤º¤å¼ÐÅÒ";
+ TEXT[ greek ] = "Óåëéäïäåßêôåò";
+ TEXT[ korean ] = "Ã¥ °¥ÇÇ";
+ TEXT[ arabic ] = "ÅÔÇÑÇÊ ãÑÌÚíÉ";
+ TEXT[ turkish ] = "Metin iþareti";
+ };
+ TEXT[ chinese_simplified ] = "²åÈëÊéÇ©";
+ TEXT[ russian ] = "Âñòàâêà çàêëàäîê";
+ TEXT[ polish ] = "Wstaw zak³adkê";
+ TEXT[ japanese ] = "÷½ÄÏ°¸‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J¤º¤å¼ÐÅÒ";
+ TEXT[ greek ] = "ÅéóáãùãÞ óåëéäïäåßêôç";
+ TEXT[ korean ] = "Ã¥ °¥ÇÇ »ðÀÔ";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ÅÔÇÑÉ ãÑÌÚíÉ";
+ TEXT[ turkish ] = "Metin iþareti ekle";
+};
+String STR_REMOVE_WARNING
+{
+ Text = "Die folgenden Zeichen sind nicht zulässig und wurden deshalb entfernt: ";
+ Text [English] = "The following characters are not valid and have been removed: ";
+ Text[ english_us ] = "The following characters are not valid and have been removed: ";
+ Text[ portuguese ] = "Os seguintes caracteres foram eliminados porque não são válidos: ";
+ Text[ russian ] = "Ñëåäóþùèå çíàêè íå äîïóñêàþòñÿ è ïîýòîìó áóäóò óäàëåíû: ";
+ Text[ greek ] = "Ïé áêüëïõèïé ÷áñáêôÞñåò Ý÷ïõí äéáãñáöåß åðåéäÞ äåí åßíáé Ýãêõñïé. ";
+ Text[ dutch ] = "De volgende tekens zijn niet toegestaan en werden daarom verwijderd. ";
+ Text[ french ] = "Les caractères suivants ont été supprimés car ils ne sont pas permis : ";
+ Text[ spanish ] = "Los siguientes caracteres han sido eliminados porque no se permiten: ";
+ Text[ italian ] = "I caratteri seguenti non sono ammessi e per questo eliminati. ";
+ Text[ danish ] = "De følgende tegn er ikke tilladte og er derfor blevet fjernet: ";
+ Text[ swedish ] = "Följande tecken är inte tillåtna och har därför tagits bort: ";
+ Text[ polish ] = "Nastêpuj¹cy znak jest niedozwolony i zosta³ dlatego usuniêty: ";
+ Text[ portuguese_brazilian ] = "The following characters are not valid and have been removed: ";
+ Text[ japanese ] = "ŽŸ‚Ì•¶Žš‚Í‹–‰Â‚³‚ê‚Ä‚¢‚È‚¢‚Ì‚Åœ‹Ž‚³‚ê‚Ü‚µ‚½B ";
+ Text[ korean ] = "´ÙÀ½ÀÇ ¹®ÀÚµéÀº À¯È¿ÇÏÁö ¾Ê¾Æ¼­ Á¦°ÅµÇ¾ú½À´Ï´Ù: ";
+ Text[ chinese_simplified ] = "ÏÂÁÐ×Ö·ûÎÞЧÇÒÒѾ­±»É¾³ý£º ";
+ Text[ chinese_traditional ] = "¤U¦Cªº¦r«¬µL®Ä¦Ó³Q§R°£¡G ";
+ Text[ arabic ] = "ÇáÃÍÑÝ ÇáÊÇáíÉ ÛíÑ ÕÇáÍÉ¡ áåÐÇ Êã ÍÐÝåÇ: ";
+ Text[ turkish ] = "Aþaðýdaki karakterler geçerli deðiller ve bu nedenle çýkartýldýlar: ";
+};
+
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
new file mode 100644
index 000000000000..08276b7580c8
--- /dev/null
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -0,0 +1,719 @@
+/*************************************************************************
+ *
+ * $RCSfile: docfnote.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _DOCFNOTE_HXX
+#include <docfnote.hxx>
+#endif
+#ifndef _IMPFNOTE_HXX
+#include <impfnote.hxx>
+#endif
+#ifndef _FTNINFO_HXX
+#include <ftninfo.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _CHARFMT_HXX //autogen
+#include <charfmt.hxx>
+#endif
+#ifndef _DOCSTYLE_HXX //autogen
+#include <docstyle.hxx>
+#endif
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _SWSTYLE_H
+#include <swstyle.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _DOCFNOTE_HRC
+#include <docfnote.hrc>
+#endif
+#ifndef _FRMUI_HRC
+#include <frmui.hrc>
+#endif
+
+
+// Numerierungsformat Umsetzung:
+// ListBox - Format - Enum-Wert
+// 0 - A, B, C, ... - 0
+// 1 - a, b, c, ... - 1
+// 2 - I, II, III, ... - 2
+// 3 - i, ii, iii, ... - 3
+// 4 - 1, 2, 3, ... - 4
+// 5 - A, .., AA, .., - 9
+// 6 - a, .., aa, .., - 10
+
+inline USHORT GetNumPos( USHORT n )
+{
+ return SVX_NUM_ARABIC < n ? n - 4 : n;
+}
+
+inline SvxExtNumType GetNumType( USHORT n )
+{
+ return (SvxExtNumType)(4 < n ? n + 4 : n );
+}
+
+SwFootNoteOptionDlg::SwFootNoteOptionDlg( Window *pParent, SwWrtShell &rS ) :
+ SfxTabDialog( pParent, SW_RES(DLG_DOC_FOOTNOTE) ),
+ rSh( rS )
+{
+ FreeResource();
+ RemoveResetButton();
+
+ aOldOkHdl = GetOKButton().GetClickHdl();
+ GetOKButton().SetClickHdl( LINK( this, SwFootNoteOptionDlg, OkHdl ) );
+
+ AddTabPage( TP_FOOTNOTEOPTION, SwFootNoteOptionPage::Create, 0 );
+ AddTabPage( TP_ENDNOTEOPTION, SwEndNoteOptionPage::Create, 0 );
+}
+
+void SwFootNoteOptionDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+{
+ ((SwEndNoteOptionPage&)rPage).SetShell( rSh );
+}
+
+SwFootNoteOptionDlg::~SwFootNoteOptionDlg()
+{
+}
+
+IMPL_LINK( SwFootNoteOptionDlg, OkHdl, Button *, pBtn )
+{
+ SfxItemSet *pSet = 0;
+ SfxTabPage *pPage = GetTabPage( TP_FOOTNOTEOPTION );
+ if ( pPage )
+ pPage->FillItemSet( (SfxItemSet&)pSet );
+ pPage = GetTabPage( TP_ENDNOTEOPTION );
+ if ( pPage )
+ pPage->FillItemSet( (SfxItemSet&)pSet );
+ aOldOkHdl.Call( pBtn );
+ return 0;
+}
+
+
+//----------------------------------------------------------------------
+
+
+SwEndNoteOptionPage::SwEndNoteOptionPage( Window *pParent, BOOL bEN,
+ const SfxItemSet &rSet ) :
+ SfxTabPage( pParent, SW_RES(bEN ? TP_ENDNOTEOPTION : TP_FOOTNOTEOPTION), rSet ),
+ aPosPageBox (this, SW_RES( RB_POS_PAGE )),
+ aPosChapterBox (this, SW_RES( RB_POS_CHAPTER)),
+ aPosGrp (this, SW_RES( GB_POS )),
+
+ aNumViewBox (this, SW_RES( LB_NUMVIEW )),
+ aOffsetLbl (this, SW_RES( FT_OFFSET )),
+ aOffsetFld (this, SW_RES( FLD_OFFSET )),
+ aNumCountBox (this, SW_RES( LB_NUMCOUNT )),
+ aPrefixFT (this, SW_RES( FT_PREFIX )),
+ aPrefixED (this, SW_RES( ED_PREFIX )),
+ aSuffixFT (this, SW_RES( FT_SUFFIX )),
+ aSuffixED (this, SW_RES( ED_SUFFIX )),
+
+
+ aNumGrp (this, SW_RES( GB_NUM )),
+
+ aParaTemplLbl (this, SW_RES( FT_PARA_TEMPL)),
+ aParaTemplBox (this, SW_RES( LB_PARA_TEMPL)),
+ aPageTemplLbl (this, SW_RES( FT_PAGE_TEMPL)),
+ aPageTemplBox (this, SW_RES( LB_PAGE_TEMPL)),
+ aTemplGrp (this, SW_RES( GB_TEMPL )),
+
+ aFtnCharTextTemplLbl( this, SW_RES( FT_TEXT_CHARFMT)),
+ aFtnCharTextTemplBox( this, SW_RES( LB_TEXT_CHARFMT)),
+ aFtnCharAnchorTemplLbl( this, SW_RES( FT_ANCHR_CHARFMT)),
+ aFtnCharAnchorTemplBox( this, SW_RES( LB_ANCHR_CHARFMT)),
+ aCharTemplGrp( this, SW_RES(GB_CHAR_TEMPL)),
+
+ aContLbl (this, SW_RES( FT_CONT )),
+ aContEdit (this, SW_RES( ED_CONT )),
+ aContFromLbl (this, SW_RES( FT_CONT_FROM )),
+ aContFromEdit (this, SW_RES( ED_CONT_FROM )),
+ aContGrp (this, SW_RES( GB_CONT )),
+
+ aNumPage(aNumCountBox.GetEntry(FTNNUM_PAGE)),
+ pSh( 0 ),
+ bPosDoc(FALSE),
+ bEndNote( bEN )
+{
+ FreeResource();
+
+ aPosPageBox.SetClickHdl(LINK(this, SwEndNoteOptionPage, PosPage));
+ aPosChapterBox.SetClickHdl(LINK(this, SwEndNoteOptionPage, PosChapter));
+ aNumCountBox.SetSelectHdl(LINK(this, SwEndNoteOptionPage, NumCount));
+
+}
+
+void SwEndNoteOptionPage::Reset( const SfxItemSet& )
+{
+ SwEndNoteInfo *pInf = bEndNote ? new SwEndNoteInfo( pSh->GetEndNoteInfo() )
+ : new SwFtnInfo( pSh->GetFtnInfo() );
+ SfxObjectShell * pDocSh = SfxObjectShell::Current();
+ if(PTR_CAST(SwWebDocShell, pDocSh))
+ {
+ aParaTemplLbl .Hide();
+ aParaTemplBox .Hide();
+ aPageTemplLbl .Hide();
+ aPageTemplBox .Hide();
+ aFtnCharTextTemplLbl.Hide();
+ aFtnCharTextTemplBox.Hide();
+ aFtnCharAnchorTemplLbl.Hide();
+ aFtnCharAnchorTemplBox.Hide();
+ aCharTemplGrp .Hide();
+ aTemplGrp .Hide();
+ if(!bEndNote)
+ {
+ // die unteren Controls sollen nach oben verschoben werden
+ long nYDiff = aPosGrp.GetPosPixel().Y() - aTemplGrp.GetPosPixel().Y();
+ Point aTmpPos(aPosGrp.GetPosPixel());
+ aTmpPos.Y() -= nYDiff;
+ aPosGrp.SetPosPixel(aTmpPos);
+ aTmpPos = aPosPageBox.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aPosPageBox.SetPosPixel(aTmpPos);
+ aTmpPos = aPosChapterBox.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aPosChapterBox.SetPosPixel(aTmpPos);
+ aTmpPos = aNumCountBox.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aNumCountBox.SetPosPixel(aTmpPos);
+ aTmpPos = aContLbl.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aContLbl.SetPosPixel(aTmpPos);
+ aTmpPos = aContEdit.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aContEdit.SetPosPixel(aTmpPos);
+ aTmpPos = aContFromLbl.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aContFromLbl.SetPosPixel(aTmpPos);
+ aTmpPos = aContFromEdit.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aContFromEdit.SetPosPixel(aTmpPos);
+ aTmpPos = aContGrp.GetPosPixel();
+ aTmpPos.Y() -= nYDiff;
+ aContGrp.SetPosPixel(aTmpPos);
+ }
+ }
+ if ( bEndNote )
+ {
+ aPosGrp.Hide();
+ aPosPageBox.Hide();
+ aPosChapterBox.Hide();
+ aNumCountBox.Hide();
+ aContLbl.Hide();
+ aContEdit.Hide();
+ aContFromLbl.Hide();
+ aContFromEdit.Hide();
+ aContGrp.Hide();
+ bPosDoc = TRUE;
+ }
+ else
+ {
+ const SwFtnInfo &rInf = pSh->GetFtnInfo();
+ // Position (Seite, Kapitel) setzen
+ if ( rInf.ePos == FTNPOS_PAGE )
+ {
+ aPosPageBox.Check();
+ aPageTemplLbl.Enable(FALSE);
+ aPageTemplBox.Enable(FALSE);
+ }
+ else // if ( rInf.ePos == FTNPOS_CHAPTER )
+ {
+ aPosChapterBox.Check();
+ aNumCountBox.RemoveEntry(aNumPage);
+ bPosDoc = TRUE;
+ }
+ // Verweistexte
+ aContEdit.SetText(rInf.aQuoVadis);
+ aContFromEdit.SetText(rInf.aErgoSum);
+
+ // gesammelt wo
+ SelectNumbering(rInf.eNum);
+ }
+
+ // Numerierung
+ // Art
+ aNumViewBox.SelectEntryPos( GetNumPos( pInf->aFmt.eType ));
+ aOffsetFld.SetValue(pInf->nFtnOffset + 1);
+ aPrefixED.SetText(pInf->GetPrefix());
+ aSuffixED.SetText(pInf->GetSuffix());
+
+ const SwCharFmt* pCharFmt = pInf->GetCharFmt(
+ *pSh->GetView().GetDocShell()->GetDoc());
+ aFtnCharTextTemplBox.SelectEntry(pCharFmt->GetName());
+ aFtnCharTextTemplBox.SaveValue();
+
+ pCharFmt = pInf->GetAnchorCharFmt( *pSh->GetDoc() );
+ aFtnCharAnchorTemplBox.SelectEntry( pCharFmt->GetName() );
+ aFtnCharAnchorTemplBox.SaveValue();
+
+ // Vorlagen - Sonderbereiche
+ // Absatz
+ SfxStyleSheetBasePool* pStyleSheetPool = pSh->GetView().GetDocShell()->GetStyleSheetPool();
+ pStyleSheetPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, SWSTYLEBIT_EXTRA);
+ SfxStyleSheetBase *pStyle = pStyleSheetPool->First();
+ while(pStyle)
+ {
+ aParaTemplBox.InsertEntry(pStyle->GetName());
+ pStyle = pStyleSheetPool->Next();
+ }
+
+ String sStr;
+ GetDocPoolNm( bEndNote ? RES_POOLCOLL_ENDNOTE
+ : RES_POOLCOLL_FOOTNOTE, sStr );
+ if(LISTBOX_ENTRY_NOTFOUND == aParaTemplBox.GetEntryPos( sStr ) )
+ aParaTemplBox.InsertEntry( sStr );
+
+ SwTxtFmtColl* pColl = pInf->GetFtnTxtColl();
+ if( !pColl )
+ aParaTemplBox.SelectEntry( sStr ); // Default
+ else
+ {
+ ASSERT(!pColl->IsDefault(), "Defaultvorlage fuer Fussnoten ist falsch.");
+ const USHORT nPos = aParaTemplBox.GetEntryPos(pColl->GetName());
+ if( LISTBOX_ENTRY_NOTFOUND != nPos )
+ aParaTemplBox.SelectEntryPos( nPos );
+ else
+ {
+ aParaTemplBox.InsertEntry(pColl->GetName());
+ aParaTemplBox.SelectEntry(pColl->GetName());
+ }
+ }
+
+ // Seite
+ for( USHORT i = RES_POOLPAGE_BEGIN; i <= RES_POOLPAGE_ENDNOTE; ++i )
+ aPageTemplBox.InsertEntry(GetDocPoolNm( i, sStr ));
+
+ USHORT nCount = pSh->GetPageDescCnt();
+ for(i = 0; i < nCount; ++i)
+ {
+ const SwPageDesc &rPageDesc = pSh->GetPageDesc(i);
+ if(LISTBOX_ENTRY_NOTFOUND == aPageTemplBox.GetEntryPos(rPageDesc.GetName()))
+ aPageTemplBox.InsertEntry(rPageDesc.GetName());
+ }
+
+ aPageTemplBox.SelectEntry( pInf->GetPageDesc( *pSh->GetDoc() )->GetName());
+ delete pInf;
+}
+
+SwEndNoteOptionPage::~SwEndNoteOptionPage()
+{
+}
+
+SfxTabPage *SwEndNoteOptionPage::Create( Window *pParent, const SfxItemSet &rSet )
+{
+ return new SwEndNoteOptionPage( pParent, TRUE, rSet );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Unterschiedliche Arten der Numerierung; da die Listbox
+ unterschiedlich viele Eintraege hat, hier Funktionen
+ fuer das Setzen und Erfragen der gemeinten Art
+ der Numerierung.
+------------------------------------------------------------------------*/
+inline void SwEndNoteOptionPage::SelectNumbering(int eNum)
+{
+ aNumCountBox.SelectEntryPos(bPosDoc? (USHORT)eNum - 1: eNum);
+ NumCount( &aNumCountBox );
+}
+
+
+
+int SwEndNoteOptionPage::GetNumbering() const
+{
+ const USHORT nPos = aNumCountBox.GetSelectEntryPos();
+ return (int) bPosDoc? nPos + 1: nPos;
+}
+
+/*-----------------09.02.98 11:17-------------------
+
+--------------------------------------------------*/
+void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell )
+{
+ pSh = &rShell;
+ // Zeichenvorlagen sammeln
+ aFtnCharTextTemplBox.Clear();
+ aFtnCharAnchorTemplBox.Clear();
+ ::FillCharStyleListBox(aFtnCharTextTemplBox,
+ pSh->GetView().GetDocShell());
+
+ ::FillCharStyleListBox(aFtnCharAnchorTemplBox,
+ pSh->GetView().GetDocShell());
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler hinter dem Button fuer Sammeln der Fussnote
+ auf der Seite.
+ In diesem Fall koennen alle Numerierungsarten verwendet
+ werden.
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwEndNoteOptionPage, PosPage, Button *, EMPTYARG )
+{
+ const SwFtnNum eNum = (const SwFtnNum)GetNumbering();
+ bPosDoc = FALSE;
+ if(LISTBOX_ENTRY_NOTFOUND == aNumCountBox.GetEntryPos(aNumPage)) {
+ aNumCountBox.InsertEntry(aNumPage, FTNNUM_PAGE);
+ SelectNumbering(eNum);
+ }
+ aPageTemplLbl.Enable(FALSE);
+ aPageTemplBox.Enable(FALSE);
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwEndNoteOptionPage, NumCount, ListBox*, EMPTYARG )
+{
+ BOOL bEnable = TRUE;
+ if( aNumCountBox.GetEntryCount() - 1 != aNumCountBox.GetSelectEntryPos() )
+ {
+ bEnable = FALSE;
+ aOffsetFld.SetValue(1);
+ }
+ aOffsetLbl.Enable(bEnable);
+ aOffsetFld.Enable(bEnable);
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler hinter dem Button fuer Sammeln der Fussnote
+ am Kapitel oder Dokumentende.
+ In diesem Fall kann keine seitenweise Numerierung verwendet
+ werden.
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwEndNoteOptionPage, PosChapter, Button *, EMPTYARG )
+{
+ if ( !bPosDoc )
+ SelectNumbering(FTNNUM_DOC);
+
+ bPosDoc = TRUE;
+ aNumCountBox.RemoveEntry(aNumPage);
+ aPageTemplLbl.Enable();
+ aPageTemplBox.Enable();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwEndNoteOptionPage, PosChapter, Button *, EMPTYARG )
+
+SwCharFmt* lcl_GetCharFormat( SwWrtShell* pSh, const String& rCharFmtName )
+{
+ SwCharFmt* pFmt = 0;
+ USHORT nChCount = pSh->GetCharFmtCount();
+ for(USHORT i = 0; i< nChCount; i++)
+ {
+ SwCharFmt& rChFmt = pSh->GetCharFmt(i);
+ if(rChFmt.GetName() == rCharFmtName )
+ {
+ pFmt = &rChFmt;
+ break;
+ }
+ }
+ if(!pFmt)
+ {
+ SfxStyleSheetBasePool* pPool = pSh->GetView().GetDocShell()->GetStyleSheetPool();
+ SfxStyleSheetBase* pBase;
+ pBase = pPool->Find(rCharFmtName, SFX_STYLE_FAMILY_CHAR);
+ if(!pBase)
+ pBase = &pPool->Make(rCharFmtName, SFX_STYLE_FAMILY_CHAR);
+ pFmt = ((SwDocStyleSheet*)pBase)->GetCharFmt();
+ }
+ return pFmt;
+}
+
+BOOL SwEndNoteOptionPage::FillItemSet( SfxItemSet &rSet )
+{
+ SwEndNoteInfo *pInf = bEndNote ? new SwEndNoteInfo() : new SwFtnInfo();
+
+ pInf->nFtnOffset = aOffsetFld.GetValue() -1;
+ pInf->aFmt.eType = GetNumType( aNumViewBox.GetSelectEntryPos() );
+ pInf->SetPrefix(aPrefixED.GetText());
+ pInf->SetSuffix(aSuffixED.GetText());
+
+ pInf->SetCharFmt( lcl_GetCharFormat( pSh,
+ aFtnCharTextTemplBox.GetSelectEntry() ) );
+ pInf->SetAnchorCharFmt( lcl_GetCharFormat( pSh,
+ aFtnCharAnchorTemplBox.GetSelectEntry() ) );
+
+ // Absatzvorlage
+ USHORT nPos = aParaTemplBox.GetSelectEntryPos();
+ if(LISTBOX_ENTRY_NOTFOUND != nPos)
+ {
+ const String aFmtName( aParaTemplBox.GetSelectEntry() );
+ SwTxtFmtColl *pColl = pSh->GetParaStyle(aFmtName, SwWrtShell::GETSTYLE_CREATEANY);
+ ASSERT(pColl, "Absatzvorlage nicht gefunden.");
+ pInf->SetFtnTxtColl(*pColl);
+ }
+
+ // Seitenvorlage
+ pInf->ChgPageDesc( pSh->FindPageDescByName(
+ aPageTemplBox.GetSelectEntry(), TRUE ) );
+
+ if ( bEndNote )
+ {
+ if ( !(*pInf == pSh->GetEndNoteInfo()) )
+ pSh->SetEndNoteInfo( *pInf );
+ }
+ else
+ {
+ SwFtnInfo *pI = (SwFtnInfo*)pInf;
+ pI->ePos = aPosPageBox.IsChecked() ? FTNPOS_PAGE : FTNPOS_CHAPTER;
+ pI->eNum = (SwFtnNum)GetNumbering();
+ pI->aQuoVadis = aContEdit.GetText();
+ pI->aErgoSum = aContFromEdit.GetText();
+ if ( !(*pI == pSh->GetFtnInfo()) )
+ pSh->SetFtnInfo( *pI );
+ }
+ delete pInf;
+ return TRUE;
+}
+
+SwFootNoteOptionPage::SwFootNoteOptionPage( Window *pParent, const SfxItemSet &rSet ) :
+ SwEndNoteOptionPage( pParent, FALSE, rSet )
+{
+}
+
+SwFootNoteOptionPage::~SwFootNoteOptionPage()
+{
+}
+
+SfxTabPage *SwFootNoteOptionPage::Create(Window *pParent, const SfxItemSet &rSet )
+{
+ return new SwFootNoteOptionPage( pParent, rSet );
+}
+
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.72 2000/09/18 16:05:56 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.71 2000/07/27 21:16:43 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.70 2000/04/26 14:57:09 os
+ GetName() returns const String&
+
+ Revision 1.69 2000/02/22 14:50:14 os
+ #72894# footnote option dialog in HTML documents
+
+ Revision 1.68 1999/11/12 13:02:12 jp
+ call Set-/GetAnchorCharFormat at SwEndnoteInfo
+
+ Revision 1.67 1999/11/05 12:45:36 os
+ character style for footnote anchor
+
+ Revision 1.66 1999/02/05 16:45:26 JP
+ Task #61467#/#61014#: neu FindPageDescByName
+
+
+ Rev 1.65 05 Feb 1999 17:45:26 JP
+ Task #61467#/#61014#: neu FindPageDescByName
+
+ Rev 1.64 17 Nov 1998 10:57:52 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.63 06 Nov 1998 16:36:02 OS
+ #58450# Fussnoten auch im HTML
+
+ Rev 1.62 06 Aug 1998 21:41:14 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.61 26 Jun 1998 16:17:42 OM
+ #51758# Unterschiedliche HelpIDs fuer alle Controls
+
+ Rev 1.60 15 Apr 1998 14:34:58 OS
+ CharStyles sortiert
+
+ Rev 1.59 26 Feb 1998 17:09:28 OS
+ FillItemSet: erst aendern, dann vergleichen
+
+ Rev 1.58 24 Feb 1998 12:17:08 OS
+ Endnotesymbol #47534#
+
+ Rev 1.57 19 Feb 1998 13:52:18 OM
+ Zeichen statt Seitenvorlagen
+
+ Rev 1.56 09 Feb 1998 13:07:28 OS
+ Fuss-/Endnoten mit Zeichenvorlage und Pre-/Suffix
+
+ Rev 1.55 03 Feb 1998 12:54:48 OM
+ #46624# HelpIDs fuer Fuss- und Endnoten TPs
+
+ Rev 1.54 21 Jan 1998 11:03:56 JP
+ FootNodeOptionPage: unoetiges und falsche FreeResource entfernt
+
+ Rev 1.53 15 Dec 1997 10:45:20 MA
+ FtnInfo: client fuer Pagedesc; TxtColl fuer Endnote
+
+ Rev 1.52 12 Dec 1997 16:07:14 MA
+ poolpage fuer footnote und endnote
+
+ Rev 1.51 12 Dec 1997 10:10:22 MA
+ Fuss-/Endnoteneinstellungen
+
+ Rev 1.50 24 Nov 1997 16:47:44 MA
+ includes
+
+ Rev 1.49 03 Nov 1997 13:22:42 MA
+ precomp entfernt
+
+ Rev 1.48 07 Feb 1997 15:48:18 MA
+ fix: ClickHdl wird gerufen, der darf dann aber die Defaults nicht verstellen.
+
+ Rev 1.47 11 Nov 1996 11:05:44 MA
+ ResMgr
+
+ Rev 1.46 24 Oct 1996 17:08:28 JP
+ Optimierung: Find...ByName
+
+ Rev 1.45 02 Oct 1996 18:28:58 MA
+ Umstellung Enable/Disable
+
+ Rev 1.44 28 Aug 1996 14:12:20 OS
+ includes
+
+ Rev 1.43 22 Mar 1996 14:06:46 HJS
+ umstellung 311
+
+ Rev 1.42 17 Feb 1996 10:25:06 OS
+ Absatzvorlagen-Listbox zeigt jetzt alle Vorlagen/Sonderbereiche an
+
+ Rev 1.41 13 Feb 1996 11:37:46 OS
+ Offset fuer Fussnoten nur pro Dokument
+
+ Rev 1.40 12 Feb 1996 16:42:18 OS
+ neu: Offset fuer Fussnotennumerierung
+
+ Rev 1.39 06 Feb 1996 15:21:06 JP
+ Link Umstellung 305
+
+ Rev 1.38 24 Nov 1995 16:58:44 OM
+ PCH->PRECOMPILED
+
+ Rev 1.37 08 Nov 1995 13:31:40 JP
+ Umstellung zur 301: Change -> Set
+
+ Rev 1.36 12 Sep 1995 17:29:26 OM
+ Helpbutton eingefuegt
+
+ Rev 1.35 30 Aug 1995 14:00:46 MA
+ fix: sexport'iert
+
+ Rev 1.34 21 Aug 1995 09:33:48 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.33 26 Oct 1994 12:17:50 ER
+ add: PCH (missed the misc)
+
+ Rev 1.32 17 Oct 1994 16:26:14 PK
+ ausgeboxtes wieder reingeboxt
+
+------------------------------------------------------------------------*/
+
+
+
+
diff --git a/sw/source/ui/misc/docfnote.hrc b/sw/source/ui/misc/docfnote.hrc
new file mode 100644
index 000000000000..80a428249b16
--- /dev/null
+++ b/sw/source/ui/misc/docfnote.hrc
@@ -0,0 +1,92 @@
+/*************************************************************************
+ *
+ * $RCSfile: docfnote.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define RB_POS_PAGE 1
+#define RB_POS_CHAPTER 2
+#define GB_POS 3
+
+#define LB_NUMVIEW 10
+#define LB_NUMCOUNT 11
+#define FLD_OFFSET 12
+#define FT_OFFSET 13
+#define GB_NUM 14
+
+#define LB_PARA_TEMPL 30
+#define LB_PAGE_TEMPL 31
+#define FT_PARA_TEMPL 32
+#define FT_PAGE_TEMPL 33
+#define GB_TEMPL 34
+
+#define FT_CONT 40
+#define ED_CONT 41
+#define FT_CONT_FROM 42
+#define ED_CONT_FROM 43
+#define GB_CONT 44
+
+#define FT_PREFIX 45
+#define ED_PREFIX 46
+#define FT_SUFFIX 47
+#define ED_SUFFIX 48
+#define FT_TEXT_CHARFMT 49
+#define LB_TEXT_CHARFMT 50
+#define FT_ANCHR_CHARFMT 51
+#define GB_CHAR_TEMPL 52
+#define LB_ANCHR_CHARFMT 53
+
diff --git a/sw/source/ui/misc/docfnote.src b/sw/source/ui/misc/docfnote.src
new file mode 100644
index 000000000000..0b9ef56c7be3
--- /dev/null
+++ b/sw/source/ui/misc/docfnote.src
@@ -0,0 +1,1577 @@
+/*************************************************************************
+ *
+ * $RCSfile: docfnote.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+#include "docfnote.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+#include "frmui.hrc"
+TabDialog DLG_DOC_FOOTNOTE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Fußnoteneinstellung" ;
+ Text [ ENGLISH ] = "Footnote Options" ;
+ Text [ norwegian ] = "Fotnotevalg" ;
+ Text [ italian ] = "Impostazioni note a piè pagina" ;
+ Text [ portuguese_brazilian ] = "Opções de nota de rodapé" ;
+ Text [ portuguese ] = "Opções de notas de rodapé" ;
+ Text [ finnish ] = "Alaviitteen määritykset" ;
+ Text [ danish ] = "Fodnoteindstillinger" ;
+ Text [ french ] = "Paramètres des notes de bas de page" ;
+ Text [ swedish ] = "Fotnotsinställning" ;
+ Text [ dutch ] = "Voetnootinstelling" ;
+ Text [ spanish ] = "Opciones de notas al pie" ;
+ Text [ english_us ] = "Footnote Settings" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FOOTNOTEOPTION ;
+ PageResID = TP_FOOTNOTEOPTION ;
+ Text = "Fußnoten" ;
+ Text [ ENGLISH ] = "Footnotes" ;
+ Text [ english_us ] = "Footnotes" ;
+ Text [ portuguese_brazilian ] = "Fußnoten" ;
+ Text [ swedish ] = "Fotnoter" ;
+ Text [ danish ] = "Fodnoter" ;
+ Text [ italian ] = "Note a piè pagina" ;
+ Text [ spanish ] = "Notas al pie" ;
+ Text [ french ] = "Notes de bas de page" ;
+ Text [ dutch ] = "Voetnoten" ;
+ Text [ portuguese ] = "Notas de rodapé" ;
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ russian ] = "Ñíîñêè";
+ Text[ polish ] = "Przypisy dolne";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "µù¸}";
+ Text[ arabic ] = "ÍæÇÔí ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåéþóåéò";
+ Text[ korean ] = "°¢ÁÖ";
+ Text[ turkish ] = "Dipnot";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_ENDNOTEOPTION ;
+ PageResID = TP_ENDNOTEOPTION ;
+ Text = "Endnoten" ;
+ Text [ ENGLISH ] = "Endnotes" ;
+ Text [ english_us ] = "Endnotes" ;
+ Text [ portuguese_brazilian ] = "Endnoten" ;
+ Text [ swedish ] = "Slutnoter" ;
+ Text [ danish ] = "Slutnoter" ;
+ Text [ italian ] = "Note di chiusura" ;
+ Text [ spanish ] = "Notas finales" ;
+ Text [ french ] = "Notes de fin" ;
+ Text [ dutch ] = "Eindnoten" ;
+ Text [ portuguese ] = "Notas finais" ;
+ Text[ chinese_simplified ] = "βע";
+ Text[ russian ] = "Êîíöåâûå ñíîñêè";
+ Text[ polish ] = "Przypisy koñc.";
+ Text[ japanese ] = "•¶––‹r’";
+ Text[ chinese_traditional ] = "§Àª`";
+ Text[ arabic ] = "ÊÚáíÞÇÊ ÎÊÇãíÉ";
+ Text[ greek ] = "Óçìåéþóåéò ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ";
+ Text[ turkish ] = "Sonnot";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "É趨ע½Å";
+ Text[ russian ] = "Óñòàíîâêà ñíîñîê";
+ Text[ polish ] = "Ustawienie przypisów dolnych";
+ Text[ japanese ] = "‹r’‚ÌÝ’è";
+ Text[ chinese_traditional ] = "³]©wµù¸}";
+ Text[ arabic ] = "ÅÚÏÇÏ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ greek ] = "Ñõèìßóåéò õðïóçìåéþóåùí";
+ Text[ korean ] = "°¢ÁÖ ¿É¼Ç";
+ Text[ turkish ] = "Dipnot ayarlarý";
+ Text[ language_user1 ] = " ";
+};
+TabPage TP_FOOTNOTEOPTION
+{
+ SVLook = TRUE ;
+ Hide = TRUE;
+ HelpID = HID_FOOTNOTE_OPTIONS ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ GroupBox GB_NUM
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 248 , 42 ) ;
+ Text = "Automatische Nummerierung" ;
+ Text [ ENGLISH ] = "Automatic numbering" ;
+ Text [ norwegian ] = "Auto. nummerering" ;
+ Text [ italian ] = "Numerazione automatica" ;
+ Text [ portuguese_brazilian ] = "Numeração automática" ;
+ Text [ portuguese ] = "Numeração automática" ;
+ Text [ finnish ] = "Automaattinumerointi" ;
+ Text [ danish ] = "Automatisk nummerering" ;
+ Text [ french ] = "Numérotation automatique" ;
+ Text [ swedish ] = "Automatisk numrering" ;
+ Text [ dutch ] = "Automatische nummering" ;
+ Text [ spanish ] = "Numeración automática" ;
+ Text [ english_us ] = "AutoNumbering" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "×Ô¶¯±àºÅ";
+ Text[ russian ] = "Àâòîìàòè÷åñêàÿ íóìåðàöèÿ";
+ Text[ polish ] = "Automatyczna numeracja";
+ Text[ japanese ] = "Ž©“®”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "¦Û°Ê½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÊáÞÇÆí";
+ Text[ greek ] = "Áõôüìáôç áñßèìçóç";
+ Text[ korean ] = "ÀÚµ¿ ¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Otomatik numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_NUMVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 62 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ "A, B, C" ;
+ "a, b, c" ;
+ "I, II, III" ;
+ "i, ii, iii" ;
+ "1, 2, 3" ;
+ "A, .., AA, .., AAA" ;
+ "a, .., aa, .., aaa" ;
+ };
+ };
+ FixedText FT_OFFSET
+ {
+ Pos = MAP_APPFONT ( 82 , 14 ) ;
+ Size = MAP_APPFONT ( 36 , 8 ) ;
+ Text = "Be~ginn bei" ;
+ Text [ ENGLISH ] = "~Start at" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Start at" ;
+ Text [ italian ] = "Ini~zia con" ;
+ Text [ spanish ] = "Comen~zar en" ;
+ Text [ french ] = "À partir de" ;
+ Text [ dutch ] = "~Begin met" ;
+ Text [ swedish ] = "~Börja vid" ;
+ Text [ danish ] = "Begynd med" ;
+ Text [ portuguese_brazilian ] = "Be~ginn bei" ;
+ Text [ portuguese ] = "~Iniciar em" ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)";
+ Text[ russian ] = "Íà÷àòü ñ";
+ Text[ polish ] = "Zacznij od";
+ Text[ japanese ] = "ŠJŽn‹r’”Ô†(~S)";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)";
+ Text[ arabic ] = "ÇáÈÏÁ ÈÜ";
+ Text[ greek ] = "ÈÝóç åêêßíçóçò";
+ Text[ korean ] = "½ÃÀÛÇÒ °÷(~S)";
+ Text[ turkish ] = "B~aþlangýç";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField FLD_OFFSET
+ {
+ Pos = MAP_APPFONT ( 133 , 12 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ Last = 9999 ;
+ Maximum = 9999 ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ ListBox LB_NUMCOUNT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 62 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Per pagina" ; > ;
+ < "Per capitolo" ; > ;
+ < "Per documento" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Por página" ; > ;
+ < "Por capítulo" ; > ;
+ < "Por documento" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Por página" ; > ;
+ < "Por capítulo" ; > ;
+ < "Por documento" ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Per side" ; > ;
+ < "Per kapitel" ; > ;
+ < "Per dokument" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "Par page" ; > ;
+ < "Par chapitre" ; > ;
+ < "Par document" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Per sida" ; > ;
+ < "Per kapitel" ; > ;
+ < "Per dokument" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Per pagina" ; > ;
+ < "Per hoofdstuk" ; > ;
+ < "Per document" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Por página" ; > ;
+ < "Por capítulo" ; > ;
+ < "Por documento" ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Per page" ; > ;
+ < "Per chapter" ; > ;
+ < "Per document" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÿҳ" ; > ;
+ < "ÿÕÂ" ; > ;
+ < "ÿÎĵµ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Íà îäíó ñòðàíèöó" ; > ;
+ < "Íà îäíó ãëàâó" ; > ;
+ < "Íà îäèí äîêóìåíò" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Na stronê" ; > ;
+ < "Na rozdzia³" ; > ;
+ < "Na dokument" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "Íß°¼Þ‚²‚Æ" ; > ;
+ < "Í‚²‚Æ" ; > ;
+ < "•¶‘‚²‚Æ" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¨C­¶" ; > ;
+ < "¨C³¹" ; > ;
+ < "¨C­Ó¤å¥ó" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "Ýí ÇáÕÝÍÉ" ; > ;
+ < "Ýí ÇáÝÕá" ; > ;
+ < "Ýí ÇáãÓÊäÏ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÁíÜ óåëßäá" ; > ;
+ < "ÁíÜ êåöÜëáéï" ; > ;
+ < "ÁíÜ Ýããñáöï" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ÆäÀÌÁö ´ç" ; > ;
+ < "Àå ¸¶´Ù" ; > ;
+ < "¹®¼­ ´ç" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Beher sayfa" ; > ;
+ < "Beher bölüm" ; > ;
+ < "Beher belge" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_PREFIX
+ {
+ Pos = MAP_APPFONT ( 82 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Davor" ;
+ Text [ ENGLISH ] = "Before" ;
+ Text [ norwegian ] = "Før" ;
+ Text [ italian ] = "~Davanti" ;
+ Text [ portuguese_brazilian ] = "Antes" ;
+ Text [ portuguese ] = "An~tes" ;
+ Text [ finnish ] = "Edellä" ;
+ Text [ danish ] = "Før" ;
+ Text [ french ] = "Avant" ;
+ Text [ swedish ] = "~Framför" ;
+ Text [ dutch ] = "~Ervoor" ;
+ Text [ spanish ] = "~Delante" ;
+ Text [ english_us ] = "Be~fore" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~F)";
+ Text[ russian ] = "Äî";
+ Text[ polish ] = "Przed";
+ Text[ japanese ] = "”Ô†‘O(~F)";
+ Text[ chinese_traditional ] = "¤§«e(~F)";
+ Text[ arabic ] = "ÞÈá";
+ Text[ greek ] = "Ðñéí áðü";
+ Text[ korean ] = "ÀÌÀü(~F)";
+ Text[ turkish ] = "Ba~þýnda";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_PREFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 133 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+ FixedText FT_SUFFIX
+ {
+ Pos = MAP_APPFONT ( 166 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "Dahin~ter" ;
+ Text [ ENGLISH ] = "Behind" ;
+ Text [ norwegian ] = "Bak" ;
+ Text [ italian ] = "Die~tro" ;
+ Text [ portuguese_brazilian ] = "Atrás" ;
+ Text [ portuguese ] = "At~rás" ;
+ Text [ finnish ] = "Jäljessä" ;
+ Text [ danish ] = "Efter" ;
+ Text [ french ] = "Après" ;
+ Text [ swedish ] = "~Bakom" ;
+ Text [ dutch ] = "E~rachter" ;
+ Text [ spanish ] = "D~etrás" ;
+ Text [ english_us ] = "Aft~er" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ö®ºó(~E)";
+ Text[ russian ] = "Ïîñëå";
+ Text[ polish ] = "Za";
+ Text[ japanese ] = "”Ô†Œã(~E)";
+ Text[ chinese_traditional ] = "¤§«á(~E)";
+ Text[ arabic ] = "ÈÚÏ";
+ Text[ greek ] = "ÌåôÜ áðü";
+ Text[ korean ] = "ÀÌÈÄ(~E)";
+ Text[ turkish ] = "A~rkasýnda";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SUFFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 221 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+ GroupBox GB_TEMPL
+ {
+ Pos = MAP_APPFONT ( 6 , 46 ) ;
+ Size = MAP_APPFONT ( 115 , 42 ) ;
+ Text = "Vorlagen" ;
+ Text [ ENGLISH ] = "Styles" ;
+ Text [ norwegian ] = "Styles" ;
+ Text [ italian ] = "Modelli" ;
+ Text [ portuguese_brazilian ] = "Estilos" ;
+ Text [ portuguese ] = "Estilos" ;
+ Text [ finnish ] = "Tyylit" ;
+ Text [ danish ] = "Typografi" ;
+ Text [ french ] = "Styles" ;
+ Text [ swedish ] = "Formatmallar" ;
+ Text [ dutch ] = "Opmaakprofielen" ;
+ Text [ spanish ] = "Estilos" ;
+ Text [ english_us ] = "Styles" ;
+ Text[ chinese_simplified ] = "Ñùʽ";
+ Text[ russian ] = "Ñòèëè";
+ Text[ polish ] = "Szablony";
+ Text[ japanese ] = "½À²Ù";
+ Text[ chinese_traditional ] = "¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ";
+ Text[ greek ] = "Ðñüôõðá";
+ Text[ korean ] = "À¯Çü";
+ Text[ turkish ] = "Biçim";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_PARA_TEMPL
+ {
+ Pos = MAP_APPFONT ( 12 , 58 ) ;
+ Size = MAP_APPFONT ( 38 , 8 ) ;
+ Text = "~Absatz" ;
+ Text [ ENGLISH ] = "~Paragraph" ;
+ Text [ norwegian ] = "~Paragraf" ;
+ Text [ italian ] = "~Paragrafo" ;
+ Text [ portuguese_brazilian ] = "~Parágrafo" ;
+ Text [ portuguese ] = "~Parágrafo" ;
+ Text [ finnish ] = "~Kappale" ;
+ Text [ danish ] = "Afsnit" ;
+ Text [ french ] = "~Paragraphe" ;
+ Text [ swedish ] = "Sty~cke" ;
+ Text [ dutch ] = "~Alinea" ;
+ Text [ spanish ] = "Párra~fo" ;
+ Text [ english_us ] = "Pa~ragraph" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¶ÎÂä(~R)";
+ Text[ russian ] = "Àáçàö";
+ Text[ polish ] = "Akapit";
+ Text[ japanese ] = "’i—Ž(~R)";
+ Text[ chinese_traditional ] = "¬q¸¨(~R)";
+ Text[ arabic ] = "ÝÞÑÉ";
+ Text[ greek ] = "ÐáñÜãñáöïò";
+ Text[ korean ] = "´Ü¶ô(~R)";
+ Text[ turkish ] = "~Paragraf";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_PARA_TEMPL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 51 , 56 ) ;
+ Size = MAP_APPFONT ( 67 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ Sort = TRUE ;
+ };
+ FixedText FT_PAGE_TEMPL
+ {
+ Pos = MAP_APPFONT ( 12 , 73 ) ;
+ Size = MAP_APPFONT ( 38 , 8 ) ;
+ Text = "~Seite" ;
+ Text [ ENGLISH ] = "~Page" ;
+ Text [ norwegian ] = "~Page" ;
+ Text [ italian ] = "~Pagina" ;
+ Text [ portuguese_brazilian ] = "~Página" ;
+ Text [ portuguese ] = "~Página" ;
+ Text [ finnish ] = "~Sivu" ;
+ Text [ danish ] = "Side" ;
+ Text [ french ] = "P~age" ;
+ Text [ swedish ] = "~Sida" ;
+ Text [ dutch ] = "~Pagina" ;
+ Text [ spanish ] = "Pá~gina" ;
+ Text [ english_us ] = "~Page" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ò³(~P)";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ(~P)";
+ Text[ chinese_traditional ] = "­¶(~P)";
+ Text[ arabic ] = "ÇáÕÝÍÉ";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö(~P)";
+ Text[ turkish ] = "~Sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_PAGE_TEMPL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 51 , 71 ) ;
+ Size = MAP_APPFONT ( 67 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ GroupBox GB_CHAR_TEMPL
+ {
+ Pos = MAP_APPFONT ( 125 , 46 ) ;
+ Size = MAP_APPFONT ( 129 , 42 ) ;
+ Text = "Zeichenvorlagen" ;
+ Text [ ENGLISH ] = "Character styles" ;
+
+ Text[ english_us ] = "Character Styles";
+ Text[ portuguese ] = "Estilos de caracteres";
+ Text[ russian ] = "Ñòèëè çíàêîâ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ dutch ] = "Tekenopmaakprofielen";
+ Text[ french ] = "Styles de caractère";
+ Text[ spanish ] = "Estilos de carácter";
+ Text[ italian ] = "Modelli di carattere";
+ Text[ danish ] = "Tegntypografi";
+ Text[ swedish ] = "Teckenformatmallar";
+ Text[ polish ] = "Style znaków";
+ Text[ portuguese_brazilian ] = "Character styles";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ korean ] = "¹®ÀÚ À¯Çü";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ chinese_traditional ] = "¦r¤¸¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÃÍÑÝ";
+ Text[ turkish ] = "Karakter biçimi";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_ANCHR_CHARFMT
+ {
+ Pos = MAP_APPFONT ( 129 , 58 ) ;
+ Size = MAP_APPFONT ( 55 , 8 ) ;
+ Text = "Te~xtbereich" ;
+ Text [ ENGLISH ] = "Text" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Te~xt area" ;
+ Text [ portuguese_brazilian ] = "~Fußnotensymbol" ;
+ Text [ swedish ] = "Textområde" ;
+ Text [ danish ] = "Tekstområde" ;
+ Text [ italian ] = "Area del testo" ;
+ Text [ spanish ] = "Área de ~texto" ;
+ Text [ french ] = "Plage de ~texte" ;
+ Text [ dutch ] = "~Tekstbereik" ;
+ Text [ portuguese ] = "~Área de texto" ;
+ Text[ chinese_simplified ] = "ÎÄ×ÖÇøÓò(~X)";
+ Text[ russian ] = "Îáëàñòü òåêñòà";
+ Text[ polish ] = "Obszar tekstu";
+ Text[ japanese ] = "•¶‘”͈Í(~X)";
+ Text[ chinese_traditional ] = "¤å¦r°Ï°ì(~X)";
+ Text[ arabic ] = "äØÇÞ ÇáäÕ";
+ Text[ greek ] = "Ðåäßï êåéìÝíïõ";
+ Text[ korean ] = "¹Ù´Ú±Û ±âÈ£(~X)";
+ Text[ turkish ] = "Metin a~laný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_ANCHR_CHARFMT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 186 , 56 ) ;
+ Size = MAP_APPFONT ( 65 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_TEXT_CHARFMT
+ {
+ Pos = MAP_APPFONT ( 129 , 73 ) ;
+ Size = MAP_APPFONT ( 55 , 8 ) ;
+ Text = "~Fußnotenbereich" ;
+ Text [ ENGLISH ] = "~Footnote text" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Footnote area" ;
+ Text [ portuguese_brazilian ] = "~Fußnotensymbol" ;
+ Text [ swedish ] = "Fotnotsområde" ;
+ Text [ danish ] = "Fodnoteområde" ;
+ Text [ italian ] = "Area note a piè pagina" ;
+ Text [ spanish ] = "Área de ~nota al pie" ;
+ Text [ french ] = "Plage de la ~note" ;
+ Text [ dutch ] = "Voetnoot~bereik" ;
+ Text [ portuguese ] = "Á~rea de nota de rodapé" ;
+ Text[ chinese_simplified ] = "×¢½ÅÇøÓò(~F)";
+ Text[ russian ] = "Îáëàñòü ñíîñêè";
+ Text[ polish ] = "Obszar przyp. doln.";
+ Text[ japanese ] = "‹r’”͈Í(~F)";
+ Text[ chinese_traditional ] = "µù¸}°Ï°ì(~F)";
+ Text[ arabic ] = "äØÇÞ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ greek ] = "Ðåäßï õðïóçìåéþóåùí";
+ Text[ korean ] = "°¢ÁÖ ¿µ¿ª(~F)";
+ Text[ turkish ] = "D~ipnot alaný";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_TEXT_CHARFMT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 186 , 71 ) ;
+ Size = MAP_APPFONT ( 65 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ GroupBox GB_POS
+ {
+ Pos = MAP_APPFONT ( 6 , 91 ) ;
+ Size = MAP_APPFONT ( 71 , 42 ) ;
+ Text = "Position" ;
+ Text [ English ] = "Position" ;
+ Group = TRUE ;
+ Text [ english_us ] = "Position" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ swedish ] = "Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ spanish ] = "Posición" ;
+ Text [ french ] = "Position" ;
+ Text [ dutch ] = "Positie" ;
+ Text [ portuguese ] = "Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_POS_PAGE
+ {
+ Pos = MAP_APPFONT ( 12 , 104 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Seiten~ende" ;
+ Text [ ENGLISH ] = "End of ~page" ;
+ Text [ norwegian ] = "End of ~page" ;
+ Text [ italian ] = "Fine ~pagina" ;
+ Text [ portuguese_brazilian ] = "Final de ~página" ;
+ Text [ portuguese ] = "Fim de ~página" ;
+ Text [ finnish ] = "~Sivun loppu" ;
+ Text [ danish ] = "Sidens slutning" ;
+ Text [ french ] = "Fin de ~page" ;
+ Text [ swedish ] = "S~idslut" ;
+ Text [ dutch ] = "Pag~ina-einde" ;
+ Text [ spanish ] = "Fin de ~página" ;
+ Text [ english_us ] = "~End of page" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ҳβ(~O)";
+ Text[ russian ] = "Êîíåö ñòðàíèöû";
+ Text[ polish ] = "Koniec strony";
+ Text[ japanese ] = "Íß°¼Þ––(~O)";
+ Text[ chinese_traditional ] = "­¶§À(~O)";
+ Text[ arabic ] = "äåÇíÉ ÇáÕÝÍÉ";
+ Text[ greek ] = "ÔÝëïò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¸¶Áö¸·(~E)";
+ Text[ turkish ] = "Sayfa so~nu";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_POS_CHAPTER
+ {
+ Pos = MAP_APPFONT ( 12 , 118 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Do~kumentende" ;
+ Text [ ENGLISH ] = "End of ~doc." ;
+ Text [ norwegian ] = "Slutt på ~dok." ;
+ Text [ italian ] = "Fine ~documento" ;
+ Text [ portuguese_brazilian ] = "Final de~doc." ;
+ Text [ portuguese ] = "Fim do ~documento" ;
+ Text [ finnish ] = "~Asiakirjan loppu" ;
+ Text [ danish ] = "Dokumentets slutn." ;
+ Text [ french ] = "Fin de ~document" ;
+ Text [ swedish ] = "Do~kumentslut" ;
+ Text [ dutch ] = "~Documenteinde" ;
+ Text [ spanish ] = "F~in del documento" ;
+ Text [ english_us ] = "En~d of document" ;
+ Text[ chinese_simplified ] = "ÎĵµÎ²¶Ë(~D)";
+ Text[ russian ] = "Êîíåö äîêóìåíòà";
+ Text[ polish ] = "Koniec dokumentu";
+ Text[ japanese ] = "•¶‘––(~D)";
+ Text[ chinese_traditional ] = "¤å¥ó§ÀºÝ(~D)";
+ Text[ arabic ] = "äåÇíÉ ÇáãÓÊäÏ";
+ Text[ greek ] = "ÔÝëïò êåéìÝíïõ";
+ Text[ korean ] = "¹®¼­ ¸¶Áö¸·(~D)";
+ Text[ turkish ] = "~Belge sonunda";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_CONT
+ {
+ Pos = MAP_APPFONT ( 80 , 91 ) ;
+ Size = MAP_APPFONT ( 174 , 42 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Hinweistext mehrseitige Fußnoten : Hinweistext mehrseitige Fu˜noten */
+ Text = "Hinweistext mehrseitige Fußnoten" ;
+ Text [ ENGLISH ] = "Continuation notice" ;
+ Text [ norwegian ] = "+++Continuation notice" ;
+ Text [ italian ] = "Avvertenza che la nota continua" ;
+ Text [ portuguese_brazilian ] = "Aviso de continuação" ;
+ Text [ portuguese ] = "Continuação das notas de rodapé" ;
+ Text [ finnish ] = "Jatkumisilmoitus" ;
+ Text [ danish ] = "Henvisningstekst for flersidede fodnoter" ;
+ Text [ french ] = "Indication de suite" ;
+ Text [ swedish ] = "Meddelandetext för mersidiga fotnoter" ;
+ Text [ dutch ] = "Verwijstekst bij voetnoten verdeeld over meer dan een pagina" ;
+ Text [ spanish ] = "Indicación para notas al pie en varias páginas" ;
+ Text [ english_us ] = "Continuation notice" ;
+ Text[ chinese_simplified ] = "¶àÒ³×¢½ÅµÄÌáʾÎÄ";
+ Text[ russian ] = "Óêàçàòåëüíûé òåêñò äëÿ ñíîñîê íà íåñêîëüêèõ ñòðàíèöàõ";
+ Text[ polish ] = "Tekst wskazuj¹cy na kilkustronne przypisy dolne.";
+ Text[ japanese ] = "‹r’‚ªŽŸÍß°¼Þ‚É‘±‚­Û‚Ì’ˆÓ‘‚«";
+ Text[ chinese_traditional ] = "¦h­¶µù¸}ªº´£¥Ü¤å";
+ Text[ arabic ] = "ãáÇÍÙÉ Úáì Ôßá ÍæÇÔí ÓÝáíÉ Ýí ÃßËÑ ãä ÕÝÍÉ";
+ Text[ greek ] = "Êåßìåíï õðüäåéîçò óõíÝ÷éóçò õðïóçìåéþóåùí";
+ Text[ korean ] = "¿©·¯ ÆäÀÌÁöÀÇ ¹Ù´Ú±Û¿¡ ´ëÇÑ Âü°í";
+ Text[ turkish ] = "Devam eden dipnotu ile ilgili bilgi metni";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_CONT
+ {
+ Pos = MAP_APPFONT ( 86 , 103 ) ;
+ Size = MAP_APPFONT ( 58 , 8 ) ;
+ Text = "Am Fußn~otenende" ;
+ Text [ ENGLISH ] = "~Continued" ;
+ Text [ norwegian ] = "~Fortsetter" ;
+ Text [ italian ] = "Alla fine del piè pagina" ;
+ Text [ portuguese_brazilian ] = "~Continuado" ;
+ Text [ portuguese ] = "No fim da nota de ~rodapé" ;
+ Text [ finnish ] = "~Jatkuu" ;
+ Text [ danish ] = "Ved fodnotens slutning" ;
+ Text [ french ] = "En ~fin de note de bas de page" ;
+ Text [ swedish ] = "Vid slutet av f~otnoten" ;
+ Text [ dutch ] = "~Voetnooteinde" ;
+ Text [ spanish ] = "Final de n~ota al pie" ;
+ Text [ english_us ] = "End ~of footnote" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "×¢½Åβ¶Ë(~O)";
+ Text[ russian ] = "Â êîíöå ñíîñêè";
+ Text[ polish ] = "Na koncu przypisów dolnych";
+ Text[ japanese ] = "‹r’––(~O)";
+ Text[ chinese_traditional ] = "¦bª`¸}¥½(~N)";
+ Text[ arabic ] = "ÚäÏ äåÇíÉ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ greek ] = "Óôï ôÝëïò ôçò õð~ïóçìåßùóçò";
+ Text[ korean ] = "´ÙÀ½ ÆäÀÌÁö(~N)";
+ Text[ turkish ] = "~Dipnot altýnda";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_CONT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 147 , 101 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 30 ;
+ };
+ FixedText FT_CONT_FROM
+ {
+ Pos = MAP_APPFONT ( 86 , 118 ) ;
+ Size = MAP_APPFONT ( 58 , 8 ) ;
+ Text = "A~uf Folgeseite" ;
+ Text [ ENGLISH ] = "~Started" ;
+ Text [ norwegian ] = "~Startet" ;
+ Text [ italian ] = "Alla pagina succ." ;
+ Text [ portuguese_brazilian ] = "~Iniciado" ;
+ Text [ portuguese ] = "~Página seguinte" ;
+ Text [ finnish ] = "~Alkaa" ;
+ Text [ danish ] = "På følgesiden" ;
+ Text [ french ] = "~Sur la page suivante" ;
+ Text [ swedish ] = "~På följande sida" ;
+ Text [ dutch ] = "V~olgende pagina" ;
+ Text [ spanish ] = "En pág. sig~uiente" ;
+ Text [ english_us ] = "~Start of next page" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÐøÒ³(~S)";
+ Text[ russian ] = "Íà ñëåäóþùåé ñòðàíèöå";
+ Text[ polish ] = "Na nastepnej stronie";
+ Text[ japanese ] = "ŽŸ‚ÌÍß°¼Þ(~S)";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "±qÄò­¶¶}©l(~S)";
+ Text[ arabic ] = "Úáì ÇáÕÝÍÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Óôçí å~ðüìåíç óåëßäá";
+ Text[ korean ] = "½ÃÀÛ(~S)";
+ Text[ turkish ] = "~Sonraki sayfada";
+ };
+ Edit ED_CONT_FROM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 147 , 116 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 30 ;
+ };
+};
+TabPage TP_ENDNOTEOPTION
+{
+ SVLook = TRUE ;
+ Hide = TRUE;
+ HelpID = HID_ENDNOTE_OPTIONS ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ GroupBox GB_NUM
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 248 , 42 ) ;
+ Text = "Automatische Nummerierung" ;
+ Text [ ENGLISH ] = "Automatic numbering" ;
+ Text [ norwegian ] = "Auto. nummerering" ;
+ Text [ italian ] = "Numerazione automatica" ;
+ Text [ portuguese_brazilian ] = "Numeração automática" ;
+ Text [ portuguese ] = "Numeração automática" ;
+ Text [ finnish ] = "Automaattinumerointi" ;
+ Text [ danish ] = "Automatisk nummerering" ;
+ Text [ french ] = "Numérotation automatique" ;
+ Text [ swedish ] = "Automatisk numrering" ;
+ Text [ dutch ] = "Automatische nummering" ;
+ Text [ spanish ] = "Numeración automática" ;
+ Text [ english_us ] = "AutoNumbering" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "×Ô¶¯±àºÅ";
+ Text[ russian ] = "Àâòîìàòè÷åñêàÿ íóìåðàöèÿ";
+ Text[ polish ] = "Automatyczna numeracja";
+ Text[ japanese ] = "Ž©“®”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "¦Û°Ê½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÊáÞÇÆí";
+ Text[ greek ] = "Áõôüìáôç áñßèìçóç";
+ Text[ korean ] = "ÀÚµ¿ ¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Otomatik numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_NUMVIEW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 62 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ "A, B, C" ;
+ "a, b, c" ;
+ "I, II, III" ;
+ "i, ii, iii" ;
+ "1, 2, 3" ;
+ "A, .., AA, .., AAA" ;
+ "a, .., aa, .., aaa" ;
+ };
+ };
+ FixedText FT_OFFSET
+ {
+ Pos = MAP_APPFONT ( 82 , 14 ) ;
+ Size = MAP_APPFONT ( 36 , 8 ) ;
+ Text = "Be~ginn bei" ;
+ Text [ ENGLISH ] = "~Start at" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Start at" ;
+ Text [ italian ] = "Ini~zia con" ;
+ Text [ spanish ] = "Comen~zar en" ;
+ Text [ french ] = "À partir de" ;
+ Text [ dutch ] = "~Begin met" ;
+ Text [ swedish ] = "~Börja vid" ;
+ Text [ danish ] = "Begynd med" ;
+ Text [ portuguese_brazilian ] = "Be~ginn bei" ;
+ Text [ portuguese ] = "~Iniciar em" ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)";
+ Text[ russian ] = "Íà÷àòü ñ";
+ Text[ polish ] = "Zacznij od";
+ Text[ japanese ] = "ŠJŽn•¶––‹r’”Ô†(~S)";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)";
+ Text[ arabic ] = "ÇáÈÏÁ ÈÜ";
+ Text[ greek ] = "ÈÝóç åêêßíçóçò";
+ Text[ korean ] = "½ÃÀÛ(~S)";
+ Text[ turkish ] = "B~aþlangýç";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField FLD_OFFSET
+ {
+ Pos = MAP_APPFONT ( 133 , 12 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ Last = 9999 ;
+ Maximum = 9999 ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ ListBox LB_NUMCOUNT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 62 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Per pagina" ; > ;
+ < "Per capitolo" ; > ;
+ < "Per documento" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Por página" ; > ;
+ < "Por capítulo" ; > ;
+ < "Por documento" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Por página" ; > ;
+ < "Por capítulo" ; > ;
+ < "Por documento" ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "Pro Seite" ; > ;
+ < "Pro Kapitel" ; > ;
+ < "Pro Dokument" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Per side" ; > ;
+ < "Per kapitel" ; > ;
+ < "Per dokument" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "Par page" ; > ;
+ < "Par chapitre" ; > ;
+ < "Par document" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Per sida" ; > ;
+ < "Per kapitel" ; > ;
+ < "Per dokument" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Per pagina" ; > ;
+ < "Per hoofdstuk" ; > ;
+ < "Per document" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "Por página" ; > ;
+ < "Por capítulo" ; > ;
+ < "Por documento" ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Per page" ; > ;
+ < "Per chapter" ; > ;
+ < "Per document" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "ÿҳ" ; > ;
+ < "ÿÕÂ" ; > ;
+ < "ÿ¸öÎĵµ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Íà îäíó ñòðàíèöó" ; > ;
+ < "Íà îäíó ãëàâó" ; > ;
+ < "Íà îäèí äîêóìåíò" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Na stronê" ; > ;
+ < "Na rozdzia³" ; > ;
+ < "Na dokument" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "Íß°¼Þ‚²‚Æ" ; > ;
+ < "Í‚²‚Æ" ; > ;
+ < "•¶‘‚²‚Æ" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¨C­¶" ; > ;
+ < "¨C³¹" ; > ;
+ < "¨C­Ó¤å¥ó" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "Ýí ÇáÕÝÍÉ" ; > ;
+ < "Ýí ÇáÝÕá" ; > ;
+ < "Ýí ÇáãÓÊäÏ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÁíÜ óåëßäá" ; > ;
+ < "ÁíÜ êåöÜëáéï" ; > ;
+ < "ÁíÜ Ýããñáöï" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "ÆäÀÌÁö ´ç" ; > ;
+ < "Àå ¸¶´Ù" ; > ;
+ < "¹®¼­ ´ç" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Beher sayfa" ; > ;
+ < "Beher bölüm" ; > ;
+ < "Beher belge" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_PREFIX
+ {
+ Pos = MAP_APPFONT ( 82 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Davor" ;
+ Text [ ENGLISH ] = "Before" ;
+ Text [ norwegian ] = "Før" ;
+ Text [ italian ] = "~Davanti" ;
+ Text [ portuguese_brazilian ] = "Antes" ;
+ Text [ portuguese ] = "An~tes" ;
+ Text [ finnish ] = "Edellä" ;
+ Text [ danish ] = "Før" ;
+ Text [ french ] = "Avant" ;
+ Text [ swedish ] = "~Före" ;
+ Text [ dutch ] = "~Ervoor" ;
+ Text [ spanish ] = "~Delante" ;
+ Text [ english_us ] = "Be~fore" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~F)";
+ Text[ russian ] = "Äî";
+ Text[ polish ] = "Przed";
+ Text[ japanese ] = "”Ô†‘O(~F)";
+ Text[ chinese_traditional ] = "¤§«e(~F)";
+ Text[ arabic ] = "ÞÈá";
+ Text[ greek ] = "Ðñéí áðü";
+ Text[ korean ] = "ÀÌÀü(~F)";
+ Text[ turkish ] = "Ba~þýnda";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_PREFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 133 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+ FixedText FT_SUFFIX
+ {
+ Pos = MAP_APPFONT ( 166 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "Dahin~ter" ;
+ Text [ ENGLISH ] = "Behind" ;
+ Text [ norwegian ] = "Bak" ;
+ Text [ italian ] = "Die~tro" ;
+ Text [ portuguese_brazilian ] = "Atrás" ;
+ Text [ portuguese ] = "A~trás" ;
+ Text [ finnish ] = "Jäljessä" ;
+ Text [ danish ] = "Efter" ;
+ Text [ french ] = "Après" ;
+ Text [ swedish ] = "~Bakom" ;
+ Text [ dutch ] = "E~rachter" ;
+ Text [ spanish ] = "D~etrás" ;
+ Text [ english_us ] = "Aft~er" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ö®ºó(~E)";
+ Text[ russian ] = "Ïîñëå";
+ Text[ polish ] = "Za";
+ Text[ japanese ] = "”Ô†Œã(~E)";
+ Text[ chinese_traditional ] = "¤§«á(~E)";
+ Text[ arabic ] = "ÈÚÏ";
+ Text[ greek ] = "Ðßóù áðü";
+ Text[ korean ] = "ÀÌÈÄ(~E)";
+ Text[ turkish ] = "A~rkasýnda";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SUFFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 221 , 27 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 50 ;
+ };
+ GroupBox GB_TEMPL
+ {
+ Pos = MAP_APPFONT ( 6 , 46 ) ;
+ Size = MAP_APPFONT ( 115 , 42 ) ;
+ Text = "Vorlagen" ;
+ Text [ ENGLISH ] = "Styles" ;
+ Text [ norwegian ] = "Styles" ;
+ Text [ italian ] = "Modelli" ;
+ Text [ portuguese_brazilian ] = "Estilos" ;
+ Text [ portuguese ] = "Estilos" ;
+ Text [ finnish ] = "Tyylit" ;
+ Text [ danish ] = "Typografi" ;
+ Text [ french ] = "Styles" ;
+ Text [ swedish ] = "Formatmallar" ;
+ Text [ dutch ] = "Opmaakprofielen" ;
+ Text [ spanish ] = "Estilos" ;
+ Text [ english_us ] = "Styles" ;
+ Text[ chinese_simplified ] = "Ñùʽ";
+ Text[ russian ] = "Ñòèëè";
+ Text[ polish ] = "Szablony";
+ Text[ japanese ] = "½À²Ù";
+ Text[ chinese_traditional ] = "¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ";
+ Text[ greek ] = "Ðñüôõðá";
+ Text[ korean ] = "À¯Çü";
+ Text[ turkish ] = "Biçim";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_PARA_TEMPL
+ {
+ Pos = MAP_APPFONT ( 12 , 58 ) ;
+ Size = MAP_APPFONT ( 38 , 8 ) ;
+ Text = "~Absatz" ;
+ Text [ ENGLISH ] = "~Paragraph" ;
+ Text [ norwegian ] = "~Paragraf" ;
+ Text [ italian ] = "~Paragrafo" ;
+ Text [ portuguese_brazilian ] = "~Parágrafo" ;
+ Text [ portuguese ] = "~Parágrafo" ;
+ Text [ finnish ] = "~Kappale" ;
+ Text [ danish ] = "Afsnit" ;
+ Text [ french ] = "~Paragraphe" ;
+ Text [ swedish ] = "Sty~cke" ;
+ Text [ dutch ] = "~Alinea" ;
+ Text [ spanish ] = "Párra~fo" ;
+ Text [ english_us ] = "Pa~ragraph" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¶ÎÂä(~R)";
+ Text[ russian ] = "Àáçàö";
+ Text[ polish ] = "Akapit";
+ Text[ japanese ] = "’i—Ž(~R)";
+ Text[ chinese_traditional ] = "¬q¸¨(~R)";
+ Text[ arabic ] = "ÝÞÑÉ";
+ Text[ greek ] = "ÐáñÜãñáöïò";
+ Text[ korean ] = "´Ü¶ô(~R)";
+ Text[ turkish ] = "~Paragraf";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_PARA_TEMPL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 51 , 56 ) ;
+ Size = MAP_APPFONT ( 67 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ Sort = TRUE ;
+ };
+ FixedText FT_PAGE_TEMPL
+ {
+ Pos = MAP_APPFONT ( 12 , 73 ) ;
+ Size = MAP_APPFONT ( 38 , 8 ) ;
+ Text = "~Seite" ;
+ Text [ ENGLISH ] = "~Page" ;
+ Text [ norwegian ] = "~Page" ;
+ Text [ italian ] = "~Pagina" ;
+ Text [ portuguese_brazilian ] = "~Página" ;
+ Text [ portuguese ] = "~Página" ;
+ Text [ finnish ] = "~Sivu" ;
+ Text [ danish ] = "Side" ;
+ Text [ french ] = "P~age" ;
+ Text [ swedish ] = "~Sida" ;
+ Text [ dutch ] = "~Pagina" ;
+ Text [ spanish ] = "Pá~gina" ;
+ Text [ english_us ] = "~Page" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ò³(~P)";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ(~P)";
+ Text[ chinese_traditional ] = "­¶(~P)";
+ Text[ arabic ] = "ÇáÕÝÍÉ";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö(~P)";
+ Text[ turkish ] = "~Sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_PAGE_TEMPL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 51 , 71 ) ;
+ Size = MAP_APPFONT ( 67 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ GroupBox GB_CHAR_TEMPL
+ {
+ Pos = MAP_APPFONT ( 125 , 46 ) ;
+ Size = MAP_APPFONT ( 129 , 42 ) ;
+ Text = "Zeichenvorlagen" ;
+ Text [ ENGLISH ] = "Character styles" ;
+ Text[ english_us ] = "Character Styles";
+ Text[ portuguese ] = "Estilos de caracteres";
+ Text[ russian ] = "Ñòèëè çíàêîâ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ dutch ] = "Tekenopmaakprofielen";
+ Text[ french ] = "Styles de caractère";
+ Text[ spanish ] = "Estilos de carácter";
+ Text[ italian ] = "Modelli di carattere";
+ Text[ danish ] = "Tegntypografi";
+ Text[ swedish ] = "Teckenformatmallar";
+ Text[ polish ] = "Style znaku";
+ Text[ portuguese_brazilian ] = "Character styles";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ korean ] = "¹®ÀÚ À¯Çü";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ chinese_traditional ] = "¦r¤¸¼Ë¦¡";
+ Text[ arabic ] = "ÃäãÇØ ÃÍÑÝ";
+ Text[ turkish ] = "Karakter biçimi";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_ANCHR_CHARFMT
+ {
+ Pos = MAP_APPFONT ( 129 , 58 ) ;
+ Size = MAP_APPFONT ( 55 , 8 ) ;
+ Text = "Te~xtbereich" ;
+ Text [ ENGLISH ] = "Text" ;
+ Left = TRUE ;
+ Text [ english_us ] = "Te~xt area" ;
+ Text [ portuguese_brazilian ] = "~Endnotensymbol" ;
+ Text [ swedish ] = "Textområde" ;
+ Text [ danish ] = "Tekstområde" ;
+ Text [ italian ] = "Area del testo" ;
+ Text [ spanish ] = "Área de ~texto" ;
+ Text [ french ] = "Plage de ~texte" ;
+ Text [ dutch ] = "~Eindemarkeringsbereik" ;
+ Text [ portuguese ] = "Área de te~xto" ;
+ Text[ chinese_simplified ] = "ÎÄ×ÖÇøÓò(~X)";
+ Text[ russian ] = "Îáëàñòü òåêñòà";
+ Text[ polish ] = "Obszar tekstu";
+ Text[ japanese ] = "•¶‘”͈Í(~X)";
+ Text[ chinese_traditional ] = "¤å¦r°Ï°ì(~X)";
+ Text[ arabic ] = "äØÇÞ ÇáäÕ";
+ Text[ greek ] = "Ðåäßï êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ¿µ¿ª(~X)";
+ Text[ turkish ] = "Metin ~alaný";
+ };
+ ListBox LB_ANCHR_CHARFMT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 186 , 56 ) ;
+ Size = MAP_APPFONT ( 65 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_TEXT_CHARFMT
+ {
+ Pos = MAP_APPFONT ( 129 , 73 ) ;
+ Size = MAP_APPFONT ( 55 , 8 ) ;
+ Text = "E~ndnotenbereich" ;
+ Text [ ENGLISH ] = "Endnote text" ;
+ Left = TRUE ;
+ Text [ english_us ] = "~Endnote area" ;
+ Text [ portuguese_brazilian ] = "~Endnotensymbol" ;
+ Text [ swedish ] = "Slutnotsområde" ;
+ Text [ danish ] = "Slutnoteområde" ;
+ Text [ italian ] = "Area note di chiusura" ;
+ Text [ spanish ] = "Área de n~ota al final" ;
+ Text [ french ] = "Plage de la ~note" ;
+ Text [ dutch ] = "~Eindnotenbereik" ;
+ Text [ portuguese ] = "Área de ~nota final" ;
+ Text[ chinese_simplified ] = "βעÇøÓò(~E)";
+ Text[ russian ] = "Îáëàñòü êîíöåâîé ñíîñêè";
+ Text[ polish ] = "Obszar przyp. koñc.";
+ Text[ japanese ] = "•¶––‹r’”͈Í(~E)";
+ Text[ chinese_traditional ] = "§Àª`°Ï°ì(~E)";
+ Text[ arabic ] = "äØÇÞ ÇáÊÚáíÞ ÇáÎÊÇãí";
+ Text[ greek ] = "Ðåñéï÷Þ óçìåßùóçò ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ ±âÈ£(~E)";
+ Text[ turkish ] = "S~onnot alaný";
+ };
+ ListBox LB_TEXT_CHARFMT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 186 , 71 ) ;
+ Size = MAP_APPFONT ( 65 , 54 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ GroupBox GB_POS
+ {
+ Pos = MAP_APPFONT ( 6 , 91 ) ;
+ Size = MAP_APPFONT ( 71 , 42 ) ;
+ Text = "Position" ;
+ Text [ English ] = "Position" ;
+ Group = TRUE ;
+ Text [ english_us ] = "Position" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ swedish ] = "Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ spanish ] = "Posición" ;
+ Text [ french ] = "Position" ;
+ Text [ dutch ] = "Positie" ;
+ Text [ portuguese ] = "Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_POS_PAGE
+ {
+ Pos = MAP_APPFONT ( 12 , 104 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Seiten~ende" ;
+ Text [ ENGLISH ] = "End of ~page" ;
+ Text [ norwegian ] = "End of ~page" ;
+ Text [ italian ] = "Fine ~pagina" ;
+ Text [ portuguese_brazilian ] = "Final de ~página" ;
+ Text [ portuguese ] = "Fim de ~página" ;
+ Text [ finnish ] = "~Sivun loppu" ;
+ Text [ danish ] = "Sidens slutning" ;
+ Text [ french ] = "Fin de ~page" ;
+ Text [ swedish ] = "~Sidslut" ;
+ Text [ dutch ] = "Pag~ina-einde" ;
+ Text [ spanish ] = "Fin de ~página" ;
+ Text [ english_us ] = "End ~of page" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "ҳβ(~O)";
+ Text[ russian ] = "Êîíåö ñòðàíèöû";
+ Text[ polish ] = "Koniec strony";
+ Text[ japanese ] = "Íß°¼Þ––(~O)";
+ Text[ chinese_traditional ] = "­¶§À(~O)";
+ Text[ arabic ] = "äåÇíÉ ÇáÕÝÍÉ";
+ Text[ greek ] = "ÔÝëïò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¸¶Áö¸·(~O)";
+ Text[ turkish ] = "Sayfa so~nu";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_POS_CHAPTER
+ {
+ Pos = MAP_APPFONT ( 12 , 118 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Dokumentende" ;
+ Text [ ENGLISH ] = "End of ~doc." ;
+ Text [ norwegian ] = "Slutt på ~dok." ;
+ Text [ italian ] = "Fine ~documento" ;
+ Text [ portuguese_brazilian ] = "Final de~doc." ;
+ Text [ portuguese ] = "Fim do ~documento" ;
+ Text [ finnish ] = "~Asiakirjan loppu" ;
+ Text [ danish ] = "Dokumentets slutn." ;
+ Text [ french ] = "Fin de ~document" ;
+ Text [ swedish ] = "~Dokumentslut" ;
+ Text [ dutch ] = "~Documenteinde" ;
+ Text [ spanish ] = "Fin del ~documento" ;
+ Text [ english_us ] = "End of ~document" ;
+ Text[ chinese_simplified ] = "ÎĵµÎ²¶Ë(~D)";
+ Text[ russian ] = "Êîíåö äîêóìåíòà";
+ Text[ polish ] = "Koniec dokumentu";
+ Text[ japanese ] = "•¶‘––(~D)";
+ Text[ chinese_traditional ] = "¤å¥ó§ÀºÝ(~D)";
+ Text[ arabic ] = "äåÇíÉ ÇáãÓÊäÏ";
+ Text[ greek ] = "ÔÝëïò êåéìÝíïõ";
+ Text[ korean ] = "¹®¼­ ³¡(~D)";
+ Text[ turkish ] = "~Belge sonunda";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_CONT
+ {
+ Pos = MAP_APPFONT ( 80 , 91 ) ;
+ Size = MAP_APPFONT ( 174 , 42 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Hinweistext mehrseitige Fußnoten : Hinweistext mehrseitige Fu˜noten */
+ Text = "Hinweistext mehrseitige Fußnoten" ;
+ Text [ ENGLISH ] = "Continuation notice" ;
+ Text [ norwegian ] = "+++Continuation notice" ;
+ Text [ italian ] = "Avvertenza che la nota continua" ;
+ Text [ portuguese_brazilian ] = "Aviso de continuação" ;
+ Text [ portuguese ] = "Continuação das notas de rodapé" ;
+ Text [ finnish ] = "Jatkumisilmoitus" ;
+ Text [ danish ] = "Henvisningstekst for flersidede fodnoter" ;
+ Text [ french ] = "Indication de suite" ;
+ Text [ swedish ] = "Meddelandetext för mersidiga fotnoter" ;
+ Text [ dutch ] = "Verwijstekst bij voetnoten verdeeld over meer dan een pagina" ;
+ Text [ spanish ] = "Indicación para notas al pie en varias páginas" ;
+ Text [ english_us ] = "Continuation notice" ;
+ Text[ chinese_simplified ] = "¶àÒ³×¢½ÅµÄÌáʾÎÄ";
+ Text[ russian ] = "Óêàçàòåëüíûé òåêñò äëÿ ñíîñîê íà íåñêîëüêèõ ñòðàíèöàõ";
+ Text[ polish ] = "Tekst wskazuj¹cy na kilkustronne przypisy dolne.";
+ Text[ japanese ] = "‹r’‚ªŽŸÍß°¼Þ‚É‘±‚­Û‚Ì’ˆÓ‘‚«";
+ Text[ chinese_traditional ] = "¦h­¶µù¸}ªº´£¥Ü¤å";
+ Text[ arabic ] = "ãáÇÍÙÉ Úáì Ôßá ÍæÇÔí ÓÝáíÉ Ýí ÃßËÑ ãä ÕÝÍÉ";
+ Text[ greek ] = "Êåßìåíï õðüäåéîçò óõíÝ÷éóçò õðïóçìåéþóåùí";
+ Text[ korean ] = "¿©·¯ ÆäÀÌÁöÀÇ ¹Ù´Ú±Û¿¡ ´ëÇÑ Âü°í";
+ Text[ turkish ] = "Devam eden dipnotu ile ilgili bilgi metni";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_CONT
+ {
+ Pos = MAP_APPFONT ( 86 , 103 ) ;
+ Size = MAP_APPFONT ( 38 , 8 ) ;
+ Text = "~Folgeseite" ;
+ Text [ ENGLISH ] = "~Continued" ;
+ Text [ norwegian ] = "~Fortsetter" ;
+ Text [ italian ] = "Pagina su~cc." ;
+ Text [ portuguese_brazilian ] = "~Continuado" ;
+ Text [ portuguese ] = "Página ~seguinte" ;
+ Text [ finnish ] = "~Jatkuu" ;
+ Text [ danish ] = "Følgeside" ;
+ Text [ french ] = "~Page suivante" ;
+ Text [ swedish ] = "~Följande sida" ;
+ Text [ dutch ] = "~Volg. pagina" ;
+ Text [ spanish ] = "Página ~siguiente" ;
+ Text [ english_us ] = "~Following page" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÐøÒ³(~F)";
+ Text[ russian ] = "Ñëåäóþùàÿ ñòðàíèöà";
+ Text[ polish ] = "Nastêp. str.";
+ Text[ japanese ] = "ŽŸ‚ÌÍß°¼Þ(~F)";
+ Text[ chinese_traditional ] = "Äò­¶(~F)";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíç óåëßäá";
+ Text[ korean ] = "´ÙÀ½ ÆäÀÌÁö(~F)";
+ Text[ turkish ] = "~Sonraki sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_CONT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 137 , 101 ) ;
+ Size = MAP_APPFONT ( 114 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 30 ;
+ };
+ FixedText FT_CONT_FROM
+ {
+ Pos = MAP_APPFONT ( 86 , 118 ) ;
+ Size = MAP_APPFONT ( 38 , 8 ) ;
+ Text = "~Beginn" ;
+ Text [ ENGLISH ] = "~Started" ;
+ Text [ norwegian ] = "~Startet" ;
+ Text [ italian ] = "~Inizio" ;
+ Text [ portuguese_brazilian ] = "~Iniciado" ;
+ Text [ portuguese ] = "~Iniciar" ;
+ Text [ finnish ] = "~Alkaa" ;
+ Text [ danish ] = "Begyndelse" ;
+ Text [ french ] = "~Début" ;
+ Text [ swedish ] = "~Börja" ;
+ Text [ dutch ] = "~Begin" ;
+ Text [ spanish ] = "~Comenzar" ;
+ Text [ english_us ] = "~Start" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¿ªÊ¼(~S)";
+ Text[ russian ] = "Íà÷àëî";
+ Text[ polish ] = "Pocz¹tek";
+ Text[ japanese ] = "ŠJŽn(~S)";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¶}©l(~S)";
+ Text[ arabic ] = "ÇáÈÏÁ";
+ Text[ greek ] = "Åêêßíçóç";
+ Text[ korean ] = "½ÃÀÛ(~S)";
+ Text[ turkish ] = "~Baþlangýç";
+ };
+ Edit ED_CONT_FROM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 137 , 116 ) ;
+ Size = MAP_APPFONT ( 114 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ MaxTextLength = 30 ;
+ };
+};
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
new file mode 100644
index 000000000000..69f89eba3fcd
--- /dev/null
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -0,0 +1,723 @@
+/*************************************************************************
+ *
+ * $RCSfile: glosbib.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _SVSTDARR_STRINGS
+
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _TOOLS_TEMPFILE_HXX
+#include <tools/tempfile.hxx>
+#endif
+#ifndef _STREAM_HXX
+#include <tools/stream.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SV_HELP_HXX
+#include <vcl/help.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCONTENTPROVIDER_HPP_
+#include <com/sun/star/ucb/XContentProvider.hpp>
+#endif
+#ifndef _UCBHELPER_CONTENTBROKER_HXX
+#include <ucbhelper/contentbroker.hxx>
+#endif
+#ifndef _UCBHELPER_CONTENTIDENTIFIER_HXX
+#include <ucbhelper/contentidentifier.hxx>
+#endif
+
+#include <svtools/svstdarr.hxx>
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOSBIB_HXX
+#include <glosbib.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _GLOSSARY_HXX
+#include <glossary.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _GLOSBIB_HRC
+#include <glosbib.hrc>
+#endif
+
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::ucb;
+using namespace ::com::sun::star::uno;
+using namespace ::ucb;
+using namespace ::rtl;
+
+#define PATH_CASE_SENSITIVE 0x01
+#define PATH_READONLY 0x02
+
+#define RENAME_TOKEN_DELIM (sal_Unicode)1
+
+/*-----------------09.06.97 13:05-------------------
+
+--------------------------------------------------*/
+SwGlossaryGroupDlg::SwGlossaryGroupDlg(Window * pParent,
+ const SvStrings* pPathArr,
+ SwGlossaryHdl *pHdl) :
+ SvxStandardDialog(pParent, SW_RES(DLG_BIB_BASE)),
+
+ aGroupTLB( this, SW_RES(TLB_GROUPS)),
+ aNameED( this, SW_RES(ED_NAME)),
+ aPathLB( this, SW_RES(LB_PATH)),
+ aBibGB( this, SW_RES(GB_BIB)),
+ aRenamePB( this, SW_RES(PB_RENAME)),
+ aNewPB( this, SW_RES(PB_NEW)),
+ aDelPB( this, SW_RES(PB_DELETE)),
+ aOkPB( this, SW_RES(BT_OK)),
+ aCancelPB( this, SW_RES(BT_CANCEL)),
+ aHelpPB( this, SW_RES(BT_HELP)),
+ pRemovedArr(0),
+ pInsertedArr(0),
+ pRenamedArr(0),
+ pGlosHdl(pHdl)
+{
+ FreeResource();
+
+ long nTabs[] =
+ { 2, // Number of Tabs
+ 0, 160
+ };
+
+ aGroupTLB.SetHelpId(HID_GLOS_GROUP_TREE);
+ aGroupTLB.SetTabs( &nTabs[0], MAP_APPFONT );
+ aGroupTLB.SetWindowBits(WB_HSCROLL|WB_CLIPCHILDREN|WB_SORT);
+ aGroupTLB.SetSelectHdl(LINK(this, SwGlossaryGroupDlg, SelectHdl));
+ aGroupTLB.GetModel()->SetSortMode(SortAscending);
+ aNewPB.SetClickHdl(LINK(this, SwGlossaryGroupDlg, NewHdl));
+ aDelPB.SetClickHdl(LINK(this, SwGlossaryGroupDlg, DeleteHdl));
+ aNameED.SetModifyHdl(LINK(this, SwGlossaryGroupDlg, ModifyHdl));
+ aPathLB.SetSelectHdl(LINK(this, SwGlossaryGroupDlg, ModifyHdl));
+ aRenamePB.SetClickHdl(LINK(this, SwGlossaryGroupDlg, RenameHdl));
+ for(USHORT i = 0; i < pPathArr->Count(); i++)
+ {
+ String sPath(*(*pPathArr)[i]);
+ aPathLB.InsertEntry(sPath);
+ ULONG nCaseReadonly = 0;
+ TempFile aTempFile(&sPath);
+ aTempFile.EnableKillingFile();
+ if(!aTempFile.IsValid())
+ nCaseReadonly |= PATH_READONLY;
+ else
+ {
+ Reference< lang::XMultiServiceFactory > xMSF = utl::getProcessServiceFactory();
+ try
+ {
+ INetURLObject aTempObj(aTempFile.GetName());
+ aTempObj.SetBase(aTempObj.GetBase().ToLowerAscii());
+ Reference<XContentIdentifier> xRef1 = new
+ ::ucb::ContentIdentifier( xMSF, aTempObj.GetMainURL() );
+
+ aTempObj.SetBase(aTempObj.GetBase().ToUpperAscii());
+ Reference<XContentIdentifier> xRef2 = new
+ ::ucb::ContentIdentifier( xMSF, aTempObj.GetMainURL() );
+
+ ContentBroker& rBroker = *ContentBroker::get();
+
+ Reference<XContentProvider > xProv = rBroker.getContentProviderInterface();
+ sal_Int32 nCompare = xProv->compareContentIds( xRef1, xRef2 );
+ if( nCompare )
+ nCaseReadonly |= PATH_CASE_SENSITIVE;
+ }
+ catch(...)
+ {
+ }
+ }
+ aPathLB.SetEntryData(i, (void*)nCaseReadonly);
+ }
+ aPathLB.SelectEntryPos(0);
+ aPathLB.Enable(TRUE);
+
+ const USHORT nCount = pHdl->GetGroupCnt();
+ for(i = 0; i < nCount; ++i)
+ {
+ GlosBibUserData* pData = new GlosBibUserData;
+ String sTitle;
+ String sGroup = pHdl->GetGroupName(i, &sTitle);
+ pData->sGroupName = sGroup;
+ pData->sGroupTitle = sTitle;
+ String sTemp(sTitle);
+ //sGroup.GetToken(0, GLOS_DELIM)
+ sTemp += '\t';
+ pData->sPath = aPathLB.GetEntry(sGroup.GetToken(1, GLOS_DELIM).ToInt32());
+ sTemp += pData->sPath;
+ SvLBoxEntry* pEntry = aGroupTLB.InsertEntry(sTemp);
+ pEntry->SetUserData(pData);
+
+ }
+ aGroupTLB.GetModel()->Resort();
+}
+
+/*-----------------09.06.97 13:05-------------------
+
+--------------------------------------------------*/
+SwGlossaryGroupDlg::~SwGlossaryGroupDlg()
+{
+
+ if(pInsertedArr)
+ {
+ pInsertedArr->DeleteAndDestroy(0, pInsertedArr->Count());
+ delete pInsertedArr;
+ }
+ if(pRemovedArr)
+ {
+ pRemovedArr->DeleteAndDestroy(0, pRemovedArr->Count());
+ delete pRemovedArr;
+ }
+ if(pRenamedArr)
+ {
+ pRenamedArr->DeleteAndDestroy(0, pRenamedArr->Count());
+ delete pRenamedArr;
+ }
+
+}
+
+/*-----------------09.06.97 13:11-------------------
+
+--------------------------------------------------*/
+
+void __EXPORT SwGlossaryGroupDlg::Apply()
+{
+ if(aNewPB.IsEnabled())
+ NewHdl(&aNewPB);
+
+ String aActGroup = SwGlossaryDlg::GetCurrGroup();
+
+ if(pRemovedArr && pRemovedArr->Count())
+ {
+ USHORT nCount = pRemovedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const String* pDelEntry = (*pRemovedArr)[i];
+ const String sDelGroup = pDelEntry->GetToken(0, '\t');
+ if( sDelGroup == aActGroup )
+ {
+ //soll die aktuelle Gruppe geloescht werden, muss die akt. Gruppe
+ //umgesetzt werden
+ if(aGroupTLB.GetEntryCount())
+ {
+ SvLBoxEntry* pFirst = aGroupTLB.First();
+ GlosBibUserData* pUserData = (GlosBibUserData*)pFirst->GetUserData();
+ pGlosHdl->SetCurGroup(pUserData->sGroupName);
+ }
+ }
+ String sMsg(SW_RES(STR_QUERY_DELETE_GROUP1));
+ String sTitle(pDelEntry->GetToken(1, '\t'));
+ if(sTitle.Len())
+ sMsg += sTitle;
+ else
+ sDelGroup.GetToken(1, GLOS_DELIM);
+ sMsg += SW_RESSTR(STR_QUERY_DELETE_GROUP2);
+ QueryBox aQuery(this->GetParent(), WB_YES_NO|WB_DEF_NO, sMsg );
+ if(RET_YES == aQuery.Execute())
+ pGlosHdl->DelGroup( sDelGroup );
+ }
+
+ }
+ //erst umbenennen, falls es schon eins gab
+ if(pRenamedArr && pRenamedArr->Count())
+ {
+ USHORT nCount = pRenamedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ String * pEntry = (*pRenamedArr)[i];
+ xub_StrLen nStrSttPos = 0;
+ String sOld( pEntry->GetToken(0, RENAME_TOKEN_DELIM, nStrSttPos ) );
+ String sNew( pEntry->GetToken(0, RENAME_TOKEN_DELIM, nStrSttPos) );
+ String sTitle( pEntry->GetToken(0, RENAME_TOKEN_DELIM, nStrSttPos) );
+ pGlosHdl->RenameGroup(sOld, sNew, sTitle);
+ if(!i)
+ sCreatedGroup = sNew;
+ }
+ }
+ if(pInsertedArr && pInsertedArr->Count())
+ {
+ USHORT nCount = pInsertedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ String sNewGroup = *(*pInsertedArr)[i];
+ String sNewTitle = sNewGroup.GetToken(0, GLOS_DELIM);
+ if( *(*pInsertedArr)[i] != aActGroup )
+ {
+ pGlosHdl->NewGroup(sNewGroup, sNewTitle);
+ if(!sCreatedGroup.Len())
+ sCreatedGroup = sNewGroup;
+ }
+ }
+ }
+}
+/*-----------------09.06.97 13:12-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlossaryGroupDlg, SelectHdl, SvTabListBox*, EMPTYARG )
+{
+ aNewPB.Enable(FALSE);
+ SvLBoxEntry* pEntry = aGroupTLB.FirstSelected();
+ if(pEntry)
+ {
+ GlosBibUserData* pUserData = (GlosBibUserData*)pEntry->GetUserData();
+ String sEntry(pUserData->sGroupName);
+ String sName(aNameED.GetText());
+ BOOL bExists = FALSE;
+ ULONG nPos = aGroupTLB.GetEntryPos(sName, 0);
+ if( 0xffffffff > nPos)
+ {
+ SvLBoxEntry* pEntry = aGroupTLB.GetEntry(nPos);
+ GlosBibUserData* pFoundData = (GlosBibUserData*)pEntry->GetUserData();
+ String sGroup = pFoundData->sGroupName;
+ bExists = sGroup == sEntry;
+ }
+
+ aRenamePB.Enable(!bExists && sName.Len());
+ aDelPB.Enable(IsDeleteAllowed(sEntry));
+ }
+ return 0;
+}
+
+/*-----------------09.06.97 13:22-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlossaryGroupDlg, NewHdl, Button*, EMPTYARG )
+{
+ String sGroup(aNameED.GetText());
+// sGroup.ToLower();
+ sGroup += GLOS_DELIM;
+ sGroup += String::CreateFromInt32(aPathLB.GetSelectEntryPos());
+ DBG_ASSERT(!pGlosHdl->FindGroupName(sGroup), "Gruppe bereits vorhanden!")
+ if(!pInsertedArr)
+ pInsertedArr = new SvStrings;
+ pInsertedArr->Insert(new String(sGroup), pInsertedArr->Count());
+ String sTemp(aNameED.GetText());
+// sTemp.ToLower();
+ sTemp += '\t';
+ sTemp += aPathLB.GetSelectEntry();
+ SvLBoxEntry* pEntry = aGroupTLB.InsertEntry(sTemp);
+ GlosBibUserData* pData = new GlosBibUserData;
+ pData->sPath = aPathLB.GetSelectEntry();
+ pData->sGroupName = sGroup;
+ pData->sGroupTitle = aNameED.GetText();
+ pEntry->SetUserData(pData);
+ aGroupTLB.Select(pEntry);
+ aGroupTLB.MakeVisible(pEntry);
+ aGroupTLB.GetModel()->Resort();
+
+ return 0;
+}
+/*-----------------09.06.97 13:22-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton )
+{
+ SvLBoxEntry* pEntry = aGroupTLB.FirstSelected();
+ if(!pEntry)
+ {
+ pButton->Enable(FALSE);
+ return 0;
+ }
+ GlosBibUserData* pUserData = (GlosBibUserData*)pEntry->GetUserData();
+ String sEntry(pUserData->sGroupName);
+ // befindet sich der zu loeschende Name schon unter den
+ // den neuen - dann weg damit
+ BOOL bDelete = TRUE;
+ if(pInsertedArr && pInsertedArr->Count())
+ {
+ USHORT nCount = pInsertedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const String* pTemp = (*pInsertedArr)[i];
+ if(*pTemp == sEntry)
+ {
+ pInsertedArr->Remove(i);
+ bDelete = FALSE;
+ break;
+ }
+
+ }
+ }
+ // moeglicherweise sollte es schon umbenannt werden?
+ if(bDelete)
+ {
+ if(pRenamedArr && pRenamedArr->Count())
+ {
+ USHORT nCount = pRenamedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const String* pTemp = (*pRenamedArr)[i];
+ String sTemp( pTemp->GetToken(0, RENAME_TOKEN_DELIM ));
+ if(sTemp == sEntry)
+ {
+ pRenamedArr->Remove(i);
+ bDelete = FALSE;
+ break;
+ }
+ }
+ }
+ }
+ if(bDelete)
+ {
+ if(!pRemovedArr)
+ pRemovedArr = new SvStrings;
+ String sEntry(pUserData->sGroupName);
+ sEntry += '\t';
+ sEntry += pUserData->sGroupTitle;
+ pRemovedArr->Insert(new String(sEntry), pRemovedArr->Count());
+ }
+ delete pUserData;
+ aGroupTLB.GetModel()->Remove(pEntry);
+ if(!aGroupTLB.First())
+ pButton->Enable(FALSE);
+ //the content must be deleted - otherwise the new handler would be called in Apply()
+ aNameED.SetText(aEmptyStr);
+ return 0;
+}
+
+/* -----------------23.11.98 12:26-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwGlossaryGroupDlg, RenameHdl, Button *, EMPTYARG )
+{
+ SvLBoxEntry* pEntry = aGroupTLB.FirstSelected();
+ GlosBibUserData* pUserData = (GlosBibUserData*)pEntry->GetUserData();
+ String sEntryText(aGroupTLB.GetEntryText(pEntry));
+ String sEntry(pUserData->sGroupName);
+
+ String sNewName(aNameED.GetText());
+ String sNewTitle(sNewName);
+
+ sNewName += GLOS_DELIM;
+ sNewName += String::CreateFromInt32(aPathLB.GetSelectEntryPos());
+ DBG_ASSERT(!pGlosHdl->FindGroupName(sNewName), "Gruppe bereits vorhanden!")
+
+ // befindet sich der umzubenennende Name unter den
+ // den neuen - dann austauschen
+ BOOL bDone = FALSE;
+ if(pInsertedArr && pInsertedArr->Count())
+ {
+ USHORT nCount = pInsertedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const String* pTemp = (*pInsertedArr)[i];
+ if(*pTemp == sEntry)
+ {
+ pInsertedArr->Remove(i);
+ pInsertedArr->Insert(new String(sNewName), pInsertedArr->Count());
+ bDone = TRUE;
+ break;
+ }
+ }
+ }
+ if(!bDone)
+ {
+ if(!pRenamedArr)
+ pRenamedArr = new SvStrings;
+ sEntry += RENAME_TOKEN_DELIM;
+ sEntry += sNewName;
+ sEntry += RENAME_TOKEN_DELIM;
+ sEntry += sNewTitle;
+ pRenamedArr->Insert(new String(sEntry), pRenamedArr->Count());
+ }
+ delete (GlosBibUserData*)pEntry->GetUserData();
+ aGroupTLB.GetModel()->Remove(pEntry);
+ String sTemp(aNameED.GetText());
+// sTemp.ToLower();
+ sTemp += '\t';
+ sTemp += aPathLB.GetSelectEntry();
+ pEntry = aGroupTLB.InsertEntry(sTemp);
+ GlosBibUserData* pData = new GlosBibUserData;
+ pData->sPath = aPathLB.GetSelectEntry();
+ pData->sGroupName = sNewName;
+ pData->sGroupTitle = sNewTitle;
+ pEntry->SetUserData(pData);
+ aGroupTLB.Select(pEntry);
+ aGroupTLB.MakeVisible(pEntry);
+ aGroupTLB.GetModel()->Resort();
+ return 0;
+}
+/*-----------------09.06.97 13:42-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlossaryGroupDlg, ModifyHdl, Edit*, EMPTYARG )
+{
+ String sEntry(aNameED.GetText());
+// sEntry.ToLower();
+ BOOL bEnableNew = TRUE;
+ BOOL bEnableDel = FALSE;
+ ULONG nCaseReadonly =
+ (ULONG)aPathLB.GetEntryData(aPathLB.GetSelectEntryPos());
+ BOOL bDirReadonly = 0 != (nCaseReadonly&PATH_READONLY);
+
+ if(!sEntry.Len() || bDirReadonly)
+ bEnableNew = FALSE;
+ else if(sEntry.Len())
+ {
+ ULONG nPos = 0xffffffff;
+
+
+ nPos = aGroupTLB.GetEntryPos(sEntry, 0);
+ //ist es nicht case sensitive muss man selbst suchen
+ if( 0xffffffff == nPos)
+ {
+ for(USHORT i = 0; i < aGroupTLB.GetEntryCount(); i++)
+ {
+ String sTemp = aGroupTLB.GetEntryText( i, 0 );
+ ULONG nCaseReadonly = (ULONG)aPathLB.GetEntryData(
+ aPathLB.GetEntryPos(aGroupTLB.GetEntryText(i,1)));
+ BOOL bCase = 0 != (nCaseReadonly & PATH_CASE_SENSITIVE);
+ const International& rInt = Application::GetAppInternational();
+ if(!bCase && rInt.CompareEqual(sTemp, sEntry, INTN_COMPARE_IGNORECASE))
+ {
+ nPos = i;
+ break;
+ }
+ }
+ }
+ if( 0xffffffff > nPos)
+ {
+ bEnableNew = FALSE;
+ aGroupTLB.Select(aGroupTLB.GetEntry( nPos ));
+ aGroupTLB.MakeVisible(aGroupTLB.GetEntry( nPos ));
+ }
+ }
+ SvLBoxEntry* pEntry = aGroupTLB.FirstSelected();
+ if(pEntry)
+ {
+ String sGroup = aGroupTLB.GetEntryText(pEntry, 0);
+ sGroup += GLOS_DELIM;
+ sGroup += String::CreateFromInt32(aPathLB.GetEntryPos(aGroupTLB.GetEntryText(pEntry, 1)));
+ bEnableDel = IsDeleteAllowed(sGroup);
+ }
+
+ aDelPB.Enable(bEnableDel);
+ aNewPB.Enable(bEnableNew);
+ aRenamePB.Enable(bEnableNew && pEntry);
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL SwGlossaryGroupDlg::IsDeleteAllowed(const String &rGroup)
+{
+ BOOL bDel = (!pGlosHdl->IsReadOnly(&rGroup));
+
+ // OM: befindet sich der Name unter den den neuen Bereichsnamen,
+ // dann ist er auch loeschbar! Bei noch nicht existenten Bereichsnamen
+ // liefert ReadOnly naemlich TRUE.
+
+ if(pInsertedArr && pInsertedArr->Count())
+ {
+ USHORT nCount = pInsertedArr->Count();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const String* pTemp = (*pInsertedArr)[i];
+ if(*pTemp == rGroup)
+ {
+ bDel = TRUE;
+ break;
+ }
+ }
+ }
+
+ return bDel;
+}
+
+/*-----------------18.07.97 19:06-------------------
+
+--------------------------------------------------*/
+void FEdit::KeyInput( const KeyEvent& rKEvent )
+{
+ String sKey(rKEvent.GetCharCode());
+ KeyCode aCode = rKEvent.GetKeyCode();
+
+ if (aCode.GetGroup() == KEYGROUP_CURSOR ||
+ ((aCode.GetGroup() == KEYGROUP_MISC) && aCode.GetCode() <= KEY_DELETE) ||
+ sKey != SFX_SEARCHPATH_DELIMITER)
+ Edit::KeyInput( rKEvent );
+}
+/* -----------------------------08.02.00 15:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwGlossaryGroupTLB::RequestHelp( const HelpEvent& rHEvt )
+{
+ Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
+ SvLBoxEntry* pEntry = GetEntry( aPos );
+ if(pEntry)
+ {
+ SvLBoxTab* pTab;
+ SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
+ if(pItem)
+ {
+ aPos = SvTreeListBox::GetEntryPos( pEntry );
+ Size aSize(pItem->GetSize( this, pEntry ));
+ aPos.X() = GetTabPos( pEntry, pTab );
+
+ if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
+ aSize.Width() = GetSizePixel().Width() - aPos.X();
+ aPos = OutputToScreenPixel(aPos);
+ Rectangle aItemRect( aPos, aSize );
+ String sMsg;
+ GlosBibUserData* pData = (GlosBibUserData*)pEntry->GetUserData();
+ sMsg = pData->sPath;
+ sMsg += INET_PATH_TOKEN;
+ sMsg += pData->sGroupName.GetToken(0, GLOS_DELIM);
+ sMsg += SwGlossaries::GetExtension();
+
+ Help::ShowQuickHelp( this, aItemRect, sMsg,
+ QUICKHELP_LEFT|QUICKHELP_VCENTER );
+ }
+ }
+}
+/* -----------------------------08.02.00 15:08--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwGlossaryGroupTLB::Clear()
+{
+ SvLBoxEntry* pEntry = First();
+ while(pEntry)
+ {
+ GlosBibUserData* pData = (GlosBibUserData*)pEntry->GetUserData();
+ delete pData;
+ pEntry = Next(pEntry);
+ }
+ SvTabListBox::Clear();
+}
+
+/*--------------------------------------------------------------------
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.64 2000/09/18 16:05:56 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.63 2000/07/20 15:24:32 jp
+ Bug #77040#: don't create references with stack objects, must always created on the heap
+
+ Revision 1.62 2000/07/20 13:17:12 jp
+ change old txtatr-character to the two new characters
+
+ Revision 1.61 2000/06/13 09:57:14 os
+ using UCB
+
+ Revision 1.60 2000/06/07 13:27:58 os
+ using UCB
+
+ Revision 1.59 2000/05/30 14:34:29 os
+ #75706# removing of glossary groups: ask for title instead of group name
+
+ Revision 1.58 2000/05/23 19:22:32 jp
+ Bugfixes for Unicode
+
+ Revision 1.57 2000/04/18 15:08:16 os
+ UNICODE
+
+ Revision 1.56 2000/03/14 10:09:58 os
+ #73944# check if directories are readonly
+
+ Revision 1.55 2000/03/06 15:49:27 os
+ #70359# dialog size increased
+
+ Revision 1.54 2000/03/03 15:17:02 os
+ StarView remainders removed
+
+ Revision 1.53 2000/02/22 13:26:21 os
+ #73271# always append path index
+
+ Revision 1.52 2000/02/14 14:40:48 os
+ #70473# Unicode
+
+ --------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/glosbib.hrc b/sw/source/ui/misc/glosbib.hrc
new file mode 100644
index 000000000000..d5c501a22e55
--- /dev/null
+++ b/sw/source/ui/misc/glosbib.hrc
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * $RCSfile: glosbib.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define GB_BIB 1
+#define CO_NAME 2
+#define PB_NEW 3
+#define PB_DELETE 4
+#define BT_OK 5
+#define BT_CANCEL 6
+#define BT_HELP 7
+#define LB_PATH 8
+#define TLB_GROUPS 9
+#define ED_NAME 10
+#define PB_RENAME 11
+
diff --git a/sw/source/ui/misc/glosbib.src b/sw/source/ui/misc/glosbib.src
new file mode 100644
index 000000000000..ed07ae53d552
--- /dev/null
+++ b/sw/source/ui/misc/glosbib.src
@@ -0,0 +1,280 @@
+/*************************************************************************
+ *
+ * $RCSfile: glosbib.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "glosbib.hrc"
+#include "misc.hrc"
+#include "helpid.h"
+ModalDialog DLG_BIB_BASE
+{
+ HelpID = HID_BIB_BASE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 349 , 121 ) ;
+ Moveable = TRUE ;
+ Text = "Bereiche bearbeiten" ;
+ Text [ ENGLISH ] = "Edit groups" ;
+ Text [ dutch ] = "Bereiken bewerken" ;
+ Text [ english_us ] = "Edit Categories" ;
+ Text [ italian ] = "Modifica categorie" ;
+ Text [ spanish ] = "Modificar áreas" ;
+ Text [ french ] = "Édition des catégories" ;
+ Text [ swedish ] = "Redigera områden" ;
+ Text [ danish ] = "Rediger områder" ;
+ Text [ portuguese ] = "Editar categorias" ;
+ Text [ portuguese_brazilian ] = "Bereiche bearbeiten" ;
+ PushButton PB_NEW
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 293 , 66 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Neu" ;
+ Text [ ENGLISH ] = "~New" ;
+ Text [ norwegian ] = "~New" ;
+ Text [ italian ] = "~Nuovo" ;
+ Text [ portuguese_brazilian ] = "~Novo" ;
+ Text [ portuguese ] = "~Novo" ;
+ Text [ finnish ] = "~Uusi" ;
+ Text [ danish ] = "Ny" ;
+ Text [ french ] = "~Nouvelle" ;
+ Text [ swedish ] = "~Nytt" ;
+ Text [ dutch ] = "~Nieuw" ;
+ Text [ spanish ] = "~Nuevo" ;
+ Text [ english_us ] = "~New" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "н¨(~N)";
+ Text[ russian ] = "Ñîçä~àòü";
+ Text[ polish ] = "Nowy";
+ Text[ japanese ] = "V‹Kì¬(~N)";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(~N)";
+ Text[ arabic ] = "ÌÏíÏ";
+ Text[ greek ] = "Äçìéïõñãßá";
+ Text[ korean ] = "»õ·Î(~N)";
+ Text[ turkish ] = "~Yeni";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_DELETE
+ {
+ Pos = MAP_APPFONT ( 293 , 83 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Löschen : ~L÷schen */
+ Text = "~Löschen" ;
+ Text [ ENGLISH ] = "~Delete" ;
+ Text [ norwegian ] = "~Slett" ;
+ Text [ italian ] = "~Elimina" ;
+ Text [ portuguese_brazilian ] = "~Apagar" ;
+ Text [ portuguese ] = "E~liminar" ;
+ Text [ finnish ] = "~Poista" ;
+ Text [ danish ] = "Slet" ;
+ Text [ french ] = "~Supprimer" ;
+ Text [ swedish ] = "~Radera" ;
+ Text [ dutch ] = "~Wissen" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ english_us ] = "~Delete" ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Text[ chinese_simplified ] = "ɾ³ý(~D)";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ(~D)";
+ Text[ chinese_traditional ] = "§R°£(~D)";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦(~D)";
+ Text[ turkish ] = "~Sil";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_RENAME
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 293 , 100 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Umbenennen" ;
+ Text [ ENGLISH ] = "Ren~ame" ;
+ Text [ dutch ] = "~Naam wijzigen" ;
+ Text [ english_us ] = "~Rename" ;
+ Text [ italian ] = "~Rinomina" ;
+ Text [ spanish ] = "~Cambiar nombre" ;
+ Text [ french ] = "~Renommer" ;
+ Text [ swedish ] = "~Byt namn" ;
+ Text [ danish ] = "Omdøb" ;
+ Text [ portuguese ] = "~Mudar nome" ;
+ TabStop = TRUE ;
+ Text[ portuguese_brazilian ] = "Ren~ame";
+ Text[ chinese_simplified ] = "ÖØÃüÃû(~R)";
+ Text[ russian ] = "Ïåðåèìåíîâàòü";
+ Text[ polish ] = "Zmieñ nazwê";
+ Text[ japanese ] = "–¼‘O‚Ì•ÏX(~R)";
+ Text[ chinese_traditional ] = "­«·s©R¦W(~R)";
+ Text[ arabic ] = "ÅÚÇÏÉ ÇáÊÓãíÉ";
+ Text[ greek ] = "Ìåôïíïìáóßá";
+ Text[ korean ] = "À̸§ ¹Ù²Ù±â(~R)";
+ Text[ turkish ] = "Y~eniden adlandýr";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_BIB
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 281 , 111 ) ;
+ Text = "Bereich" ;
+ Text [ ENGLISH ] = "Group" ;
+ Text [ norwegian ] = "Gruppe" ;
+ Text [ italian ] = "Sezione" ;
+ Text [ portuguese_brazilian ] = "Grupo" ;
+ Text [ portuguese ] = "Categoria" ;
+ Text [ finnish ] = "Ryhmä" ;
+ Text [ danish ] = "Område" ;
+ Text [ french ] = "Catégorie" ;
+ Text [ swedish ] = "Område" ;
+ Text [ dutch ] = "Bereik" ;
+ Text [ spanish ] = "Area" ;
+ Text [ english_us ] = "Category" ;
+ Text[ chinese_simplified ] = "·ÖÀà";
+ Text[ russian ] = "Êàòåãîðèÿ";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "•ª—Þ";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "ÝÆÉ";
+ Text[ greek ] = "Êáôçãïñßá";
+ Text[ korean ] = "Ç׸ñ ºÐ·ù";
+ Text[ turkish ] = "Kategori";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 293 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 293 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 293 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Edit ED_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 159 , 12 ) ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ MaxTextLength = 256 ;
+ };
+ ListBox LB_PATH
+ {
+ Pos = MAP_APPFONT ( 174 , 14 ) ;
+ Size = MAP_APPFONT ( 107 , 50 ) ;
+ DropDown = TRUE ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ DDExtraWidth = TRUE ;
+ };
+ Control TLB_GROUPS
+ {
+ Pos = MAP_APPFONT ( 12 , 46 ) ;
+ Size = MAP_APPFONT ( 269 , 61 ) ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ /* ComboBox CO_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 89 , 76 ) ;
+ TabStop = TRUE ;
+#ifdef WIN
+ MaxTextLength = 8 ;
+#else
+ MaxTextLength = 32 ;
+#endif
+ Sort = TRUE ;
+ };*/
+ Text[ chinese_simplified ] = "±à¼­ÇøÓò";
+ Text[ russian ] = "Ïðàâêà êàòåãîðèé";
+ Text[ polish ] = "Edytuj obszary";
+ Text[ japanese ] = "•ª—Þ‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿è°Ï°ì";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÝÆÇÊ";
+ Text[ greek ] = "Åðåîåñãáóßá êáôçãïñéþí";
+ Text[ korean ] = "ºÐ·ù Ç׸ñ ÆíÁý";
+ Text[ turkish ] = "Kategorileri düzenle";
+ Text[ language_user1 ] = " ";
+};
+/*
+String STR_GLOSSARY_BIB_DLG
+{
+ Text = "Bereiche bearbeiten" ;
+ Text [ ENGLISH ] = "Edit groups" ;
+ Text [ dutch ] = "Bereiken bewerken" ;
+ Text [ english_us ] = "Edit Categories" ;
+ Text [ italian ] = "Modifica aree" ;
+ Text [ spanish ] = "Editar secciones" ;
+ Text [ french ] = "Modifier sections" ;
+ Text [ swedish ] = "Redigera områden" ;
+ Text [ danish ] = "Rediger område" ;
+ Text [ portuguese ] = "Editar secções" ;
+ Text [ portuguese_brazilian ] = "Bereiche bearbeiten" ;
+};*/
diff --git a/sw/source/ui/misc/glosdoc.cxx b/sw/source/ui/misc/glosdoc.cxx
new file mode 100644
index 000000000000..f96274a0928e
--- /dev/null
+++ b/sw/source/ui/misc/glosdoc.cxx
@@ -0,0 +1,1101 @@
+/*************************************************************************
+ *
+ * $RCSfile: glosdoc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+
+#pragma hdrstop
+
+#ifndef _COM_SUN_STAR_UCB_XCOMMANDENVIRONMENT_HPP_
+#include <com/sun/star/ucb/XCommandEnvironment.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCONTENTACCESS_HPP_
+#include <com/sun/star/ucb/XContentAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XRESULTSET_HPP_
+#include <com/sun/star/sdbc/XResultSet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XROW_HPP_
+#include <com/sun/star/sdbc/XRow.hpp>
+#endif
+#ifndef _UCBHELPER_CONTENT_HXX
+#include <ucbhelper/content.hxx>
+#endif
+#ifndef _UCBHELPER_CONTENTIDENTIFIER_HXX
+#include <ucbhelper/contentidentifier.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCONTENTPROVIDER_HPP_
+#include <com/sun/star/ucb/XContentProvider.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_TRANSFERINFO_HPP_
+#include <com/sun/star/ucb/TransferInfo.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UCB_NAMECLASH_HPP_
+#include <com/sun/star/ucb/NameClash.hpp>
+#endif
+#ifndef _UCBHELPER_CONTENTBROKER_HXX
+#include <ucbhelper/contentbroker.hxx>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _APP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SHL_HXX
+#include <tools/shl.hxx>
+#endif
+#define _SVSTDARR_STRINGS
+#include <svtools/svstdarr.hxx>
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef __RSC //autogen
+#include <tools/errinf.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX //autogen
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _TOOLS_DEBUG_HXX //autogen
+#include <tools/debug.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX
+#include <sfx2/inimgr.hxx>
+#endif
+
+#ifndef _UNOATXT_HXX
+#include <unoatxt.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx> // ASSERT
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::ucb;
+using namespace ::com::sun::star::uno;
+using namespace ::ucb;
+using namespace ::rtl;
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+// INCLUDEs die nicht bedingungslos im MSC-PCH landen --------------------
+
+
+// STATIC ---------------------------------------------------------------
+static const char __FAR_DATA pDefName[] = "standard";
+
+char __FAR_DATA aExt[] = ".bau";
+extern const char* __FAR_DATA pGlosExt = aExt;
+
+SV_IMPL_PTRARR(XAutoTextGroupPtrArr, XAutoTextGroupPtr)
+SV_IMPL_PTRARR(XAutoTextEntryPtrArr, XInterfacePtr)
+
+// PUBLIC METHODES -------------------------------------------------------
+/* -----------------23.11.98 14:30-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool lcl_RemoveFileFromList(SvStrings* pGlosArr,
+ XAutoTextEntryPtrArr& rGlosEntryArr,
+ XAutoTextGroupPtrArr& rGlosGroupArr,
+ const String& rName)
+{
+ if(pGlosArr)
+ {
+ const sal_uInt16 nCount = pGlosArr->Count();
+ for(sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ String *pTmp = (*pGlosArr)[i];
+ if(*pTmp == rName)
+ {
+ //UNO-Objekt fuer die Gruppe aus dem Array loeschen
+ OUString aUName = rName;
+ sal_uInt16 nXCount = rGlosGroupArr.Count();
+ for(sal_uInt16 j = 0; j < nXCount; ++j)
+ {
+ uno::Reference< text::XAutoTextGroup > * pxGroup = rGlosGroupArr.GetObject(j);
+ uno::Reference< container::XNamed > xNamed(*pxGroup, uno::UNO_QUERY);
+
+
+ if(xNamed->getName() == aUName )
+ {
+ text::XAutoTextGroup* pGroup = pxGroup->get();
+ ((SwXAutoTextGroup*)pGroup)->Invalidate();
+ rGlosGroupArr.Remove(j);
+ delete pxGroup;
+ break;
+ }
+ }
+ // alle UNO-Objekte fuer enthaltene Entries loeschen - rueckwaerts!
+ nXCount = rGlosEntryArr.Count();
+ for(j = nXCount; j; --j)
+ {
+ uno::Reference< uno::XInterface > * pxEntry = rGlosEntryArr.GetObject(j);
+ uno::Reference< lang::XUnoTunnel > xTunnel(*pxEntry, uno::UNO_QUERY);
+ SwXAutoTextEntry* pEntry = (SwXAutoTextEntry*)
+ xTunnel->getSomething(SwXAutoTextEntry::getUnoTunnelId());
+ if(pEntry->GetGroupName() == rName )
+ {
+ pEntry->Invalidate();
+ rGlosEntryArr.Remove(j);
+ delete pxEntry;
+ }
+ }
+
+ pGlosArr->Remove(i);
+ delete pTmp;
+ break;
+ }
+ }
+ }
+ return sal_True;
+}
+/* -----------------------------08.02.00 15:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+String lcl_CheckFileName(const String& rNewFilePath, const String& rNewGroupName)
+{
+ String sRet;
+ //group name should contain only A-Z and a-z and spaces
+ for(sal_uInt16 i = 0; i < rNewGroupName.Len(); i++)
+ {
+ char cChar = rNewGroupName.GetChar(i);
+ if( (cChar >= 'A') && (cChar <= 'Z') ||
+ (cChar >= 'a') && (cChar <= 'z') ||
+ (cChar >= '0') && (cChar <= '9') ||
+ (cChar = '_') ||
+ cChar == 0x20 )
+ {
+ sRet += cChar;
+ }
+ }
+ sRet.EraseLeadingChars();
+ sRet.EraseTrailingChars();
+ String sTmpDir(rNewFilePath);
+ sTmpDir += INET_PATH_TOKEN;
+ sTmpDir += sRet;
+ sTmpDir += SwGlossaries::GetExtension();
+
+ BOOL bCreated = FALSE;
+ try
+ {
+ ::ucb::Content aTestContent( sTmpDir ,
+ uno::Reference< XCommandEnvironment >());
+ bCreated = aTestContent.isDocument();
+ }
+ catch(...)
+ {
+ bCreated = FALSE;
+ }
+ if(!sRet.Len() || bCreated)
+ {
+ //generate generic name
+ const String sGroupBaseName(C2S("group"));
+ String sTmpDir(rNewFilePath);
+ sTmpDir += INET_PATH_TOKEN;
+ for(sal_uInt16 i = 0; i < USHRT_MAX; i++)
+ {
+ String sName(sGroupBaseName);
+ sName += String::CreateFromInt32(i);
+ sName += SwGlossaries::GetExtension();
+ sName.Insert(sTmpDir, 0);
+ try
+ {
+ ::ucb::Content aTestContent(sName ,
+ uno::Reference< XCommandEnvironment >());
+ bCreated = aTestContent.isDocument();
+ }
+ catch(...)
+ {
+ bCreated = FALSE;
+ }
+
+ if(!bCreated)
+ {
+ sRet = sGroupBaseName;
+ sRet += String::CreateFromInt32(i);
+ break;
+ }
+ }
+ }
+ return sRet;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Liefert den Namen der Default-Gruppe
+------------------------------------------------------------------------*/
+
+
+String SwGlossaries::GetDefName()
+{
+ return C2S(pDefName);
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Liefert die Anzahl der Textbausteingruppen
+------------------------------------------------------------------------*/
+
+
+sal_uInt16 SwGlossaries::GetGroupCnt()
+{
+ return GetNameList()->Count();
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Liefert den Gruppennamen
+------------------------------------------------------------------------*/
+sal_Bool SwGlossaries::FindGroupName(String & rGroup)
+{
+ // enthaelt der Gruppenname keinen Pfad, kann hier ein passender
+ // Gruppeneintrag gesucht werden;
+ sal_uInt16 nCount = GetGroupCnt();
+ sal_uInt16 i;
+ for(i= 0; i < nCount; i++)
+ {
+ String sTemp(GetGroupName(i));
+ if(rGroup.Equals( sTemp.GetToken(0, GLOS_DELIM)))
+ {
+ rGroup = sTemp;
+ return sal_True;
+ }
+ }
+ //man darf zweimal suchen, denn bei mehreren Verzeichnissen koennte der caseinsensitive Name mehrfach auftreten
+ const International& rInt = Application::GetAppInternational();
+ Reference< lang::XMultiServiceFactory > xMSF = utl::getProcessServiceFactory();
+
+ for(i = 0; i < nCount; i++)
+ {
+ String sTemp(GetGroupName(i));
+ String sPath = sTemp.GetToken(1, GLOS_DELIM);
+ sal_uInt16 nPath = sPath.ToInt32();
+
+ BOOL bCaseSensitive = FALSE;
+ try
+ {
+ INetURLObject aTempObj(*(*pPathArr)[nPath]);
+ aTempObj.SetBase(aTempObj.GetBase().ToLowerAscii());
+ Reference<XContentIdentifier> xRef1 = new
+ ::ucb::ContentIdentifier( xMSF, aTempObj.GetMainURL());
+ aTempObj.SetBase(aTempObj.GetBase().ToUpperAscii());
+ Reference<XContentIdentifier> xRef2 = new
+ ::ucb::ContentIdentifier( xMSF, aTempObj.GetMainURL());
+
+ ContentBroker& rBroker = *ContentBroker::get();
+
+ Reference<XContentProvider > xProv = rBroker.getContentProviderInterface();
+ sal_Int32 nCompare = xProv->compareContentIds( xRef1, xRef2 );
+ bCaseSensitive = nCompare != 0;
+ }
+ catch(...)
+ {
+ }
+
+ if( !bCaseSensitive &&
+ rInt.CompareEqual( rGroup, sTemp.GetToken(0, GLOS_DELIM),
+ INTN_COMPARE_IGNORECASE))
+ {
+ rGroup = sTemp;
+ return sal_True;
+ }
+ }
+ return sal_False;
+}
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+
+String SwGlossaries::GetGroupName(sal_uInt16 nGroupId)
+{
+ ASSERT(nGroupId < pGlosArr->Count(), Textbausteinarray ueberindiziert);
+ return *(*pGlosArr)[nGroupId];
+}
+/* -----------------------------08.02.00 13:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+String SwGlossaries::GetGroupTitle( const String& rGroupName )
+{
+ String sRet;
+ String sGroup(rGroupName);
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
+ FindGroupName(sGroup);
+ SwTextBlocks* pGroup = GetGroupDoc(sGroup, sal_False);
+ if(pGroup)
+ {
+ sRet = pGroup->GetName();
+ PutGroupDoc( pGroup );
+ }
+ return sRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Liefert das Textbaustein-Dokument der Gruppe rName
+------------------------------------------------------------------------*/
+
+SwTextBlocks* SwGlossaries::GetGroupDoc(const String &rName,
+ sal_Bool bCreate) const
+{
+ // gfs. in die Liste der Textbausteine eintragen
+ if(bCreate && pGlosArr)
+ {
+ const String aName(rName);
+ const sal_uInt16 nCount = pGlosArr->Count();
+ for(sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ const String *pName = (*pGlosArr)[i];
+ if(*pName == aName)
+ break;
+ }
+ if(i == nCount)
+ { // Baustein nicht in der Liste
+ String *pTmp = new String(aName);
+ pGlosArr->Insert(pTmp, pGlosArr->Count());
+ }
+ }
+ return GetGlosDoc( rName, bCreate );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Loeschen Textblock
+------------------------------------------------------------------------*/
+
+void SwGlossaries::PutGroupDoc(SwTextBlocks *pBlock) {
+ delete pBlock;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Erzeugt ein neues Dokument mit dem Gruppenname
+ Wird temp. auch als File angelegt, damit die
+ Gruppen auch spaeter (ohne Zugriff) vorhanden sind.
+------------------------------------------------------------------------*/
+
+
+sal_Bool SwGlossaries::NewGroupDoc(String& rGroupName, const String& rTitle)
+{
+ sal_uInt16 nNewPath = rGroupName.GetToken(1, GLOS_DELIM).ToInt32();
+ String sNewFilePath(*(*pPathArr)[nNewPath]);
+ String sNewGroup = lcl_CheckFileName(sNewFilePath, rGroupName.GetToken(0, GLOS_DELIM));
+ sNewGroup += GLOS_DELIM;
+ sNewGroup += rGroupName.GetToken(1, GLOS_DELIM);
+ SwTextBlocks *pBlock = GetGlosDoc( sNewGroup );
+ if(pBlock)
+ {
+ String *pTmp =
+ new String(sNewGroup);
+ SvStrings* pList = GetNameList();
+ pList->Insert(pTmp, pList->Count());
+ pBlock->SetName(rTitle);
+ PutGroupDoc(pBlock);
+ rGroupName = sNewGroup;
+ rGroupName += GLOS_DELIM;
+ rGroupName += String::CreateFromInt32(nNewPath);
+ return sal_True;
+ }
+ return sal_False;
+}
+/* -----------------23.11.98 13:13-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwGlossaries::RenameGroupDoc(
+ const String& rOldGroup, String& rNewGroup, const String& rNewTitle)
+{
+ sal_Bool bRet = sal_False;
+ sal_uInt16 nOldPath = rOldGroup.GetToken(1, GLOS_DELIM).ToInt32();
+ if(nOldPath < pPathArr->Count())
+ {
+ String sOldFileURL(*(*pPathArr)[nOldPath]);
+ sOldFileURL += INET_PATH_TOKEN;
+ sOldFileURL += rOldGroup.GetToken(0, GLOS_DELIM);
+ sOldFileURL.AppendAscii(pGlosExt);
+ BOOL bExist = FALSE;
+ try
+ {
+ ::ucb::Content aTestContent( sOldFileURL ,
+ uno::Reference< XCommandEnvironment >());
+ bExist = aTestContent.isDocument();
+ }
+ catch(...)
+ {
+ }
+ DBG_ASSERT(bExist, "Gruppe existiert nicht!")
+ if(bExist)
+ {
+ sal_uInt16 nNewPath = rNewGroup.GetToken(1, GLOS_DELIM).ToInt32();
+ if( nNewPath < pPathArr->Count())
+ {
+ String sNewFilePath(*(*pPathArr)[nNewPath]);
+ String sNewFileName = lcl_CheckFileName(
+ sNewFilePath, rNewGroup.GetToken(0, GLOS_DELIM));
+ //String aTmp( rNewGroup.GetToken(0, GLOS_DELIM));
+ const sal_uInt16 nFileNameLen = sNewFileName.Len();
+ sNewFileName.AppendAscii(pGlosExt);
+ String sTempNewFilePath(sNewFilePath);
+ sTempNewFilePath += INET_PATH_TOKEN;
+ sTempNewFilePath += sNewFileName ;
+ BOOL bExist = FALSE;
+ try
+ {
+ ::ucb::Content aTestContent( sTempNewFilePath,
+ uno::Reference< XCommandEnvironment >());
+ bExist = aTestContent.isDocument();
+ }
+ catch(...)
+ {
+ }
+ DBG_ASSERT(!bExist, "Gruppe existiert bereits!")
+ if(!bExist)
+ {
+ BOOL bCopyCompleted = TRUE;
+ try
+ {
+ ::ucb::Content aTempContent(sNewFilePath,
+ Reference< XCommandEnvironment > ());
+
+ Any aAny;
+ TransferInfo aInfo;
+ aInfo.NameClash = NameClash::ERROR;
+ aInfo.NewTitle = sNewFileName;
+ aInfo.SourceURL = sOldFileURL;
+ aInfo.MoveData = TRUE;
+
+ aAny <<= aInfo;
+ aTempContent.executeCommand( rtl::OUString::createFromAscii( "transfer" ),
+ aAny);
+ }
+ catch( Exception& rEx )
+ {
+ bCopyCompleted = FALSE;
+ }
+ if(bCopyCompleted)
+ {
+ bRet = sal_True;
+ lcl_RemoveFileFromList(pGlosArr, aGlosEntryArr, aGlosGroupArr, rOldGroup);
+ rNewGroup = sNewFileName.Copy(0, nFileNameLen);
+ rNewGroup += GLOS_DELIM;
+ rNewGroup += String::CreateFromInt32(nNewPath);
+ String *pTmp = new String(rNewGroup);
+ if(!pGlosArr)
+ GetNameList();
+ else
+ pGlosArr->Insert(pTmp, pGlosArr->Count());
+
+ sNewFilePath += INET_PATH_TOKEN;
+ sNewFilePath += sNewFileName ;
+ SwTextBlocks* pNewBlock = new SwTextBlocks( sNewFilePath );
+ pNewBlock->SetName(rNewTitle);
+ delete pNewBlock;
+ }
+ }
+ }
+ }
+ }
+ return bRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Loescht eine Textbausteingruppe
+------------------------------------------------------------------------*/
+
+
+sal_Bool SwGlossaries::DelGroupDoc(const String &rName)
+{
+ sal_uInt16 nPath = rName.GetToken(1, GLOS_DELIM).ToInt32();
+ if(nPath >= pPathArr->Count())
+ return sal_False;
+ String sFileURL(*(*pPathArr)[nPath]);
+ String aTmp( rName.GetToken(0, GLOS_DELIM));
+
+ String aName(aTmp);
+ aName += GLOS_DELIM;
+ aName += String::CreateFromInt32(nPath);
+
+ aTmp.AppendAscii(pGlosExt);
+ sFileURL += INET_PATH_TOKEN;
+ sFileURL += aTmp;
+ // Auch, wenn das File nicht existiert, muss es aus der Liste
+ // der Textbausteinbereiche entfernt werden
+ // Kein && wegen CFfront
+#ifdef DBG_UTIL
+ BOOL bRemoved = FALSE;
+#endif
+ try
+ {
+ ::ucb::Content aTempContent(sFileURL,
+ Reference< XCommandEnvironment > ());
+ aTempContent.executeCommand( rtl::OUString::createFromAscii( "delete" ),
+ makeAny( sal_Bool( sal_True ) ) );
+#ifdef DBG_UTIL
+ bRemoved = TRUE;
+#endif
+ }
+ catch( ... )
+ {
+ DBG_ERRORFILE( "Exception" );
+ }
+ DBG_ASSERT(bRemoved, "file has not been removed")
+ return lcl_RemoveFileFromList(pGlosArr, aGlosEntryArr, aGlosGroupArr, aName);
+}
+/*------------------------------------------------------------------------
+ Beschreibung: DTOR
+------------------------------------------------------------------------*/
+
+
+SwGlossaries::~SwGlossaries()
+{
+ sal_uInt16 nCount = pGlosArr? pGlosArr->Count() : 0;
+ for(sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ String *pTmp = (*pGlosArr)[i];
+ delete pTmp;
+ }
+ nCount = pPathArr? pPathArr->Count() : 0;
+ for(i = 0; i < nCount; ++i)
+ {
+ String *pTmp = (*pPathArr)[i];
+ delete pTmp;
+ }
+ delete pGlosArr;
+ delete pPathArr;
+ nCount = aGlosGroupArr.Count();
+ for(i = 0; i < nCount; ++i)
+ {
+ text::XAutoTextGroup* pGroup = aGlosGroupArr.GetObject(i)->get();
+ ((SwXAutoTextGroup*)pGroup)->Invalidate();
+ }
+ nCount = aGlosEntryArr.Count();
+ for(i = 0; i < nCount; ++i)
+ {
+ uno::Reference< uno::XInterface > * pxEntry = aGlosEntryArr.GetObject(i);
+ uno::Reference< lang::XUnoTunnel > xTunnel(*pxEntry, uno::UNO_QUERY);
+ DBG_ASSERT(xTunnel.is(), "No tunnel for SwXAutoTextEntry?");
+ SwXAutoTextEntry* pEntry =
+ (SwXAutoTextEntry*)xTunnel->getSomething(SwXAutoTextEntry::getUnoTunnelId());
+ pEntry->Invalidate();
+ }
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Bausteindokument einlesen
+------------------------------------------------------------------------*/
+
+
+SwTextBlocks* SwGlossaries::GetGlosDoc( const String &rName, sal_Bool bCreate ) const
+{
+ sal_uInt16 nPath = rName.GetToken(1, GLOS_DELIM).ToInt32();
+ SwTextBlocks *pTmp = 0;
+ if(nPath < pPathArr->Count())
+ {
+ String sFileURL(*(*pPathArr)[nPath]);
+ String aTmp( rName.GetToken(0, GLOS_DELIM));
+ aTmp.AppendAscii(pGlosExt);
+ sFileURL += INET_PATH_TOKEN;
+ sFileURL += aTmp;
+
+ BOOL bExist = FALSE;
+ if(!bCreate)
+ {
+ try
+ {
+ ::ucb::Content aTestContent(sFileURL,
+ uno::Reference< XCommandEnvironment >());
+ bExist = aTestContent.isDocument();
+ }
+ catch(...)
+ {
+ bExist = FALSE;
+ }
+ }
+
+ if (bCreate || bExist)
+ {
+ pTmp = new SwTextBlocks( sFileURL );
+ sal_Bool bOk = sal_True;
+ if( pTmp->GetError() )
+ {
+ ErrorHandler::HandleError( pTmp->GetError() );
+ bOk = !IsError( pTmp->GetError() );
+ }
+
+ if( bOk && !pTmp->GetName().Len() )
+ pTmp->SetName( rName );
+ }
+ }
+
+ return pTmp;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Zugriff auf die Liste der Name; diese wird gfs. eingelesen
+------------------------------------------------------------------------*/
+
+
+SvStrings* SwGlossaries::GetNameList()
+{
+ if(!pGlosArr)
+ {
+ pGlosArr = new SvStrings;
+ for(sal_uInt16 i = 0; i < pPathArr->Count(); i++)
+ {
+ try
+ {
+ ::ucb::Content aCnt(*(*pPathArr)[i],
+ uno::Reference< XCommandEnvironment >());
+ Reference< sdbc::XResultSet > xResultSet;
+ Sequence< OUString > aProps(1);
+ OUString* pProps = aProps.getArray();
+ pProps[ 0 ] = OUString::createFromAscii( "Title" );
+ try
+ {
+ xResultSet = aCnt.createCursor(
+ aProps, ::ucb::INCLUDE_DOCUMENTS_ONLY );
+ }
+ catch ( Exception )
+ {
+ DBG_ERRORFILE( "create cursor failed!" );
+ }
+
+ if ( aCnt.isFolder() && xResultSet.is() )
+ {
+ Reference< sdbc::XRow > xRow( xResultSet, UNO_QUERY );
+ Reference< XContentAccess >
+ xContentAccess( xResultSet, UNO_QUERY );
+ try
+ {
+ if ( xResultSet->first() )
+ {
+ do
+ {
+// OUString sId( xContentAccess->queryContentIdentfierString() );
+ // an den Gruppennamen wird der Pfad-Index angehaengt
+ // damit spaeter richtig zugegriffen werden kann
+ String sTitle = xRow->getString( 1 );
+ String sExt;
+ if(sTitle.Len() > 4) //length of ".bau"
+ {
+ String sExt = sTitle.Copy( sTitle.Len() - 4, 4);
+ if(sExt.EqualsIgnoreCaseAscii(pGlosExt))
+ {
+ sTitle.Erase( sTitle.Len() - 4, 4);
+ sTitle += GLOS_DELIM;
+ sTitle += String::CreateFromInt32(i);
+ String *pTitle = new String(sTitle);
+ pGlosArr->Insert(pTitle, pGlosArr->Count());
+ }
+ }
+ }
+ while ( xResultSet->next() );
+ }
+ }
+ catch ( ... )
+ {
+ DBG_ERRORFILE( "Exception caught!" );
+ }
+ }
+ }
+ catch ( ... )
+ {
+ DBG_ERRORFILE( "Exception caught!" );
+ }
+ }
+
+ if(!pGlosArr->Count())
+ {
+ // Der Standard-Baustein steht im ersten Teil des Pfades
+ String *pTmp = new String(C2S(pDefName));
+ (*pTmp) += GLOS_DELIM;
+ (*pTmp) += '0';
+ pGlosArr->Insert(pTmp, pGlosArr->Count());
+ }
+ }
+ return pGlosArr;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: CTOR
+------------------------------------------------------------------------*/
+
+
+SwGlossaries::SwGlossaries() :
+ pGlosArr(0),
+ pPathArr(0)
+{
+ pPathArr = new SvStrings;
+ UpdateGlosPath(sal_True);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Neuen Pfad einstellen und internes Array neu aufbauen
+------------------------------------------------------------------------*/
+
+/* -----------------21.01.99 15:36-------------------
+* #61050# Doppelte Pfade fuehren zu Verwirrung - als raus damit
+ * --------------------------------------------------*/
+sal_Bool lcl_FindSameEntry(const SvStrings& rDirArr, const String& rEntryURL)
+{
+ sal_uInt16 nSize = rDirArr.Count();
+ for(sal_uInt16 i = 0; i < rDirArr.Count(); i++)
+ if(rEntryURL == (*rDirArr.GetObject(i)))
+ return sal_True;
+ return sal_False;
+}
+
+void SwGlossaries::UpdateGlosPath(sal_Bool bFull)
+{
+ String aNewPath( SFX_INIMANAGER()->Get( SFX_KEY_GLOSSARY_PATH ) );
+ sal_Bool bPathChanged = aPath != aNewPath;
+ if (bFull || bPathChanged)
+ {
+ aPath = aNewPath;
+ sal_uInt16 nCount = pPathArr? pPathArr->Count() : 0;
+ for(sal_uInt16 i = nCount; i; --i)
+ {
+ String *pTmp = (*pPathArr)[i - 1];
+ pPathArr->Remove(i - 1);
+ delete pTmp;
+ }
+ String sErrPath;
+ sal_uInt16 nTokenCount = aPath.GetTokenCount(SFX_SEARCHPATH_DELIMITER);
+ SvStrings aDirArr;
+ for( i = 0; i < nTokenCount; i++ )
+ {
+ String sPth(aPath.GetToken(i, SFX_SEARCHPATH_DELIMITER));
+ sPth = URIHelper::SmartRelToAbs(sPth);
+
+ if(i && lcl_FindSameEntry(aDirArr, sPth))
+ {
+ continue;
+ }
+ aDirArr.Insert(new String(sPth), aDirArr.Count());
+ BOOL bExists = FALSE;
+ try
+ {
+ ::ucb::Content aTestContent(sPth, uno::Reference< XCommandEnvironment >());
+ bExists = aTestContent.isFolder();
+ }
+ catch(...)
+ {
+ DBG_ERROR("exception <getPropertyValue(IsFolder)>")
+ }
+
+ if(!bExists)
+ {
+ if(sErrPath.Len())
+ sErrPath += SFX_SEARCHPATH_DELIMITER;
+ INetURLObject aTemp(sPth);
+ sErrPath += aTemp.GetFull();
+
+ }
+ else
+ pPathArr->Insert(new String(sPth), pPathArr->Count());
+ }
+ aDirArr.DeleteAndDestroy(0, aDirArr.Count());
+
+ if(!nTokenCount ||
+ sErrPath.Len() && (bPathChanged || sOldErrPath != sErrPath) )
+ {
+ sOldErrPath = sErrPath;
+ // Falscher Pfad, d.h. AutoText-Verzeichnis existiert nicht
+
+ ErrorHandler::HandleError( *new StringErrorInfo(
+ ERR_AUTOPATH_ERROR, sErrPath,
+ ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ));
+ bError = sal_True;
+ }
+ else
+ bError = sal_False;
+
+ if(pGlosArr)
+ {
+ const sal_uInt16 nCount = pGlosArr->Count();
+ for(sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ delete (String *)(*pGlosArr)[i];
+ }
+ DELETEZ(pGlosArr);
+ GetNameList();
+ }
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+void SwGlossaries::ShowError()
+{
+ sal_uInt32 nPathError = *new StringErrorInfo(ERR_AUTOPATH_ERROR,
+ sErrPath, ERRCODE_BUTTON_OK );
+ ErrorHandler::HandleError( nPathError );
+}
+/* -----------------------------09.02.00 11:37--------------------------------
+
+ ---------------------------------------------------------------------------*/
+String SwGlossaries::GetExtension()
+{
+ return C2S(aExt);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.115 2000/09/18 16:05:56 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.114 2000/08/08 10:37:27 os
+ #77403# rename of AutoText category repaired
+
+ Revision 1.113 2000/08/08 10:14:48 os
+ ucb transfer command used
+
+ Revision 1.112 2000/08/07 08:52:02 os
+ #77227# '_' allowed in glossary names
+
+ Revision 1.111 2000/07/20 15:24:37 jp
+ Bug #77040#: don't create references with stack objects, must always created on the heap
+
+ Revision 1.110 2000/07/13 13:39:40 os
+ #76805# ignore case of .bau extension
+
+ Revision 1.109 2000/06/26 13:16:26 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.108 2000/06/20 14:51:24 os
+ SUPD removed
+
+ Revision 1.107 2000/06/13 09:57:14 os
+ using UCB
+
+ Revision 1.106 2000/06/08 09:47:32 os
+ using UCB
+
+ Revision 1.105 2000/06/07 13:27:12 os
+ using UCB
+
+ Revision 1.104 2000/05/23 19:22:29 jp
+ Bugfixes for Unicode
+
+ Revision 1.103 2000/05/19 12:08:36 os
+ appending of indices corrected
+
+ Revision 1.102 2000/04/18 15:08:17 os
+ UNICODE
+
+ Revision 1.101 2000/03/23 07:49:13 os
+ UNO III
+
+ Revision 1.100 2000/03/06 08:43:31 os
+ #70359# renames glossary groups: return corrected group name
+
+ Revision 1.99 2000/02/22 13:26:49 os
+ #73271# always append path index
+
+ Revision 1.98 2000/02/14 14:40:48 os
+ #70473# Unicode
+
+ Revision 1.97 2000/02/10 10:34:32 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.96 1999/10/21 17:48:55 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.95 1999/07/21 14:12:06 JP
+ Bug #67779#: set any MsgBoxType at the StringErrorInfo
+
+
+ Rev 1.94 21 Jul 1999 16:12:06 JP
+ Bug #67779#: set any MsgBoxType at the StringErrorInfo
+
+ Rev 1.93 09 Feb 1999 10:47:04 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+ Rev 1.92 25 Jan 1999 13:40:16 HR
+ Insert() jetzt richtig
+
+ Rev 1.91 25 Jan 1999 13:26:44 OS
+ #61050# C40_INSERT
+
+ Rev 1.90 21 Jan 1999 15:45:40 OS
+ #61050# doppelte Pfade abfangen
+
+ Rev 1.89 10 Dec 1998 15:57:06 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.88 27 Nov 1998 13:57:38 OS
+ #59548# illegales Sonderzeichen entfernt
+
+ Rev 1.87 24 Nov 1998 08:54:42 OS
+ #59548# AutoText-Gruppen umbenennbar
+
+ Rev 1.86 19 Jun 1998 16:34:58 OS
+ GetGroupName liefert String, nicht UString
+
+ Rev 1.85 19 Jun 1998 14:55:26 MH
+ add: cast
+
+ Rev 1.84 18 Jun 1998 18:17:42 OS
+ Array fuer Textbausteine
+
+ Rev 1.83 16 Jun 1998 16:49:36 OS
+ AutoText-interface verbessert
+
+ Rev 1.82 27 May 1998 17:08:18 OM
+ Uno ::com::sun::star::text::AutoTextContainer
+
+ Rev 1.81 17 Feb 1998 14:29:42 RG
+ Mac: sysdep raus
+
+ Rev 1.80 16 Dec 1997 18:14:18 JP
+ GetSearchDelim gegen SFX_SEARCH_DELIMITER ausgetauscht
+
+ Rev 1.79 28 Nov 1997 19:57:08 MA
+ includes
+
+ Rev 1.78 24 Nov 1997 16:47:46 MA
+ includes
+
+ Rev 1.77 03 Nov 1997 13:22:40 MA
+ precomp entfernt
+
+ Rev 1.76 10 Oct 1997 12:28:38 OS
+ vollstaendige Pfadpruefung
+
+ Rev 1.75 07 Oct 1997 07:28:56 OS
+ Path-Index ueberpruefen #44360#
+
+ Rev 1.74 26 Aug 1997 16:02:16 TRI
+ VCL Anpassungen
+
+ Rev 1.73 30 Jul 1997 18:33:30 HJS
+ includes
+
+ Rev 1.72 30 Jul 1997 11:27:32 OM
+ #41772# Bereich einfuegen und sofort wieder loeschen
+
+ Rev 1.71 17 Jun 1997 10:16:18 OS
+ Leerstring als AutoText-Pfad ueberleben
+
+ Rev 1.70 10 Jun 1997 14:38:52 OS
+ AutoText aus mehreren Verzeichnissen
+
+ Rev 1.69 23 Oct 1996 13:49:30 JP
+ SVMEM -> SVSTDARR Umstellung
+
+ Rev 1.68 18 Oct 1996 13:49:04 JP
+ GetGlosDoc: defaultetes Flag entfernt
+
+ Rev 1.67 26 Sep 1996 20:24:58 HJS
+ del: pDBAddress und aDBAddress
+
+ Rev 1.66 26 Sep 1996 16:59:14 OS
+ +default-Extension fuer Autotexte in swtypes
+
+ Rev 1.65 30 Aug 1996 12:38:34 OS
+ UpdateGlosPath kann Blockliste aktualisieren
+
+ Rev 1.64 28 Aug 1996 14:12:16 OS
+ includes
+
+ Rev 1.63 03 Jul 1996 13:11:32 OS
+ UpdateGlosPath: Ohne das Array zu loeschen, wird es nichts
+
+ Rev 1.62 19 Jun 1996 12:32:38 OM
+ Umstellung auf 323
+
+ Rev 1.61 14 Dec 1995 23:00:38 JP
+ Filter Umstellung: ErrorHandling und Read/Write-Parameter
+
+ Rev 1.60 13 Dec 1995 17:19:48 MA
+ opt: International
+
+ Rev 1.59 30 Nov 1995 16:26:08 JP
+ Umstellung SV304 - ErrorHandling
+
+ Rev 1.58 24 Nov 1995 16:58:48 OM
+ PCH->PRECOMPILED
+
+ Rev 1.57 16 Nov 1995 18:45:36 OM
+ Methoden zur Fehlerbehandlung
+
+ Rev 1.56 26 Oct 1995 18:08:40 JP
+ Umstellung auf SfxErrorHandler
+
+ Rev 1.55 03 Oct 1995 10:16:20 JP
+ FAR_DATA auf den String und nicht auf den Pointer
+
+ Rev 1.54 07 Sep 1995 07:21:16 OS
+ ',' in PM2-ifdef
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
new file mode 100644
index 000000000000..26c582d97a12
--- /dev/null
+++ b/sw/source/ui/misc/glossary.cxx
@@ -0,0 +1,1433 @@
+/*************************************************************************
+ *
+ * $RCSfile: glossary.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _SVSTDARR_STRINGSDTOR
+#define _SVSTDARR_STRINGS
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+#ifndef _SVSTDARR_HXX
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX //autogen
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX //autogen
+#include <sfx2/inimgr.hxx>
+#endif
+#ifndef _IODLG_HXX
+#include <sfx2/iodlg.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SVX_MULTIPAT_HXX //autogen
+#include <svx/multipat.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+
+#ifndef _DOC_HXX //autogen wg. SwDoc
+#include <doc.hxx>
+#endif
+#ifndef _UNOCRSR_HXX //autogen wg. SwUnoCrsr
+#include <unocrsr.hxx>
+#endif
+#ifndef _UNOTOOLS_HXX
+#include <unotools.hxx>
+#endif
+#ifndef _UNOOBJ_HXX
+#include <unoobj.hxx>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _UCBHELPER_CONTENT_HXX
+#include <ucbhelper/content.hxx>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XAUTOTEXTGROUP_HPP_
+#include <com/sun/star/text/XAutoTextGroup.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XAUTOTEXTENTRY_HPP_
+#include <com/sun/star/text/XAutoTextEntry.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XAUTOTEXTCONTAINER_HPP_
+#include <com/sun/star/text/XAutoTextContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XSingleServiceFactory.hpp>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _UNOTOOLS_CHARCLASS_HXX
+#include <unotools/charclass.hxx>
+#endif
+
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _GLOSSARY_HXX
+#include <glossary.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _GLOSBIB_HXX
+#include <glosbib.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx> // fuer ::GetGlossaries()
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _MACASSGN_HXX
+#include <macassgn.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _GLOSSARY_HRC
+#include <glossary.hrc>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _MODOPT_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+
+#define LONG_LENGTH 60
+#define SHORT_LENGTH 30
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::text;
+using namespace ::com::sun::star::ucb;
+using namespace ::utl;
+using namespace ::ucb;
+using namespace ::rtl;
+
+/* -----------------------------08.02.00 10:28--------------------------------
+
+ ---------------------------------------------------------------------------*/
+struct GroupUserData
+{
+ String sGroupName;
+ sal_uInt16 nPathIdx;
+ BOOL bReadonly;
+
+ GroupUserData()
+ : nPathIdx(0),
+ bReadonly(FALSE) {}
+};
+
+/*------------------------------------------------------------------------
+ Beschreibung: Dialog fuer neuen Bausteinnamen
+------------------------------------------------------------------------*/
+class SwNewGlosNameDlg : public ModalDialog
+{
+ FixedText aNNFT;
+ Edit aNewName;
+ FixedText aNSFT;
+ NoSpaceEdit aNewShort;
+ OKButton aOk;
+ CancelButton aCancel;
+ GroupBox aGrp;
+ FixedText aONFT;
+ Edit aOldName;
+ FixedText aOSFT;
+ Edit aOldShort;
+
+protected:
+ DECL_LINK( Modify, Edit * );
+ DECL_LINK( Rename, Button * );
+
+public:
+ SwNewGlosNameDlg( Window* pParent,
+ const String& rOldName,
+ const String& rOldShort );
+
+ String GetNewName() const { return aNewName.GetText(); }
+ String GetNewShort() const { return aNewShort.GetText(); }
+};
+
+SwNewGlosNameDlg::SwNewGlosNameDlg(Window* pParent,
+ const String& rOldName,
+ const String& rOldShort ) :
+ ModalDialog( pParent, SW_RES( DLG_RENAME_GLOS ) ),
+ aOk (this, SW_RES( BT_OKNEW)),
+ aCancel (this, SW_RES( BT_CANCEL)),
+ aONFT (this, SW_RES( FT_ON )),
+ aOSFT (this, SW_RES( FT_OS )),
+ aNNFT (this, SW_RES( FT_NN )),
+ aNSFT (this, SW_RES( FT_NS )),
+ aOldName(this, SW_RES( ED_ON )),
+ aOldShort(this,SW_RES( ED_OS )),
+ aNewName(this, SW_RES( ED_NN )),
+ aNewShort(this,SW_RES( ED_NS )),
+ aGrp (this, SW_RES( GB_NN ))
+{
+ FreeResource();
+ aOldName.SetText( rOldName );
+ aOldShort.SetText( rOldShort );
+ aNewShort.SetMaxTextLen(SHORT_LENGTH);
+ aNewName.SetMaxTextLen(LONG_LENGTH);
+ aNewName.SetModifyHdl(LINK(this, SwNewGlosNameDlg, Modify ));
+ aNewShort.SetModifyHdl(LINK(this, SwNewGlosNameDlg, Modify ));
+ aOk.SetClickHdl(LINK(this, SwNewGlosNameDlg, Rename ));
+ aNewName.GrabFocus();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: aktuell eingestellte Gruppe erfragen / setzen
+------------------------------------------------------------------------*/
+
+String SwGlossaryDlg::GetCurrGroup()
+{
+ if( pCurrGlosGroup && pCurrGlosGroup->Len() )
+ return *pCurrGlosGroup;
+ return SwGlossaries::GetDefName();
+}
+
+
+
+void SwGlossaryDlg::SetActGroup(const String &rGrp)
+{
+ if( !pCurrGlosGroup )
+ pCurrGlosGroup = new String;
+ *pCurrGlosGroup = rGrp;
+}
+
+
+
+SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame,
+ SwGlossaryHdl * pGlosHdl, SwWrtShell *pWrtShell) :
+
+ SvxStandardDialog(&pViewFrame->GetWindow(), SW_RES(DLG_GLOSSARY)),
+ aExampleGB (this, SW_RES(GB_EXAMPLE )),
+ aExampleWIN (this, SW_RES(WIN_EXAMPLE )),
+ aShowExampleCB(this, SW_RES(CB_SHOW_EXAMPLE )),
+ aInsertTipCB (this, SW_RES(CB_INSERT_TIP)),
+ aNameLbl (this, SW_RES(FT_NAME)),
+ aNameED (this, SW_RES(ED_NAME)),
+ aShortNameLbl (this, SW_RES(FT_SHORTNAME)),
+ aShortNameEdit(this, SW_RES(ED_SHORTNAME)),
+ aCategoryBox (this, SW_RES(LB_BIB)),
+ aGlossaryFrm (this, SW_RES(GB_GLOSSARY)),
+ aFileRelCB (this, SW_RES(CB_FILE_REL)),
+ aNetRelCB (this, SW_RES(CB_NET_REL)),
+ aRelativeGB (this, SW_RES(GB_RELATIVE)),
+ aInsertBtn (this, SW_RES(PB_INSERT)),
+ aEditBtn (this, SW_RES(PB_EDIT)),
+ aBibBtn (this, SW_RES(PB_BIB)),
+ aPathBtn (this, SW_RES(PB_PATH)),
+ aCloseBtn (this, SW_RES(PB_CLOSE)),
+ aHelpBtn (this, SW_RES(PB_HELP)),
+ sReadonlyPath (SW_RES(ST_READONLY_PATH)),
+ pMenu (new PopupMenu(SW_RES(MNU_EDIT))),
+ pGlossaryHdl (pGlosHdl),
+ pSh (pWrtShell),
+ pExampleFrame(0),
+ bSelection( pWrtShell->IsSelection() ),
+ bReadOnly( sal_False ),
+ bIsOld( sal_False ),
+ bIsDocReadOnly(sal_False)
+{
+ // Static-Pointer initialisieren
+ if( !pCurrGlosGroup )
+ pCurrGlosGroup = new String;//(SwGlossaries::GetDefName());
+
+ pMenu->SetActivateHdl(LINK(this,SwGlossaryDlg,EnableHdl));
+ pMenu->SetSelectHdl(LINK(this,SwGlossaryDlg,MenuHdl));
+ aEditBtn.SetPopupMenu(pMenu);
+ aEditBtn.SetSelectHdl(LINK(this,SwGlossaryDlg,EditHdl));
+ aPathBtn.SetClickHdl(LINK(this, SwGlossaryDlg, PathHdl));
+
+ aNameED.SetModifyHdl(LINK(this,SwGlossaryDlg,NameModify));
+ aShortNameEdit.SetModifyHdl(LINK(this,SwGlossaryDlg,NameModify));
+
+ aCategoryBox.SetDoubleClickHdl(LINK(this,SwGlossaryDlg, NameDoubleClick));
+ aCategoryBox.SetSelectHdl(LINK(this,SwGlossaryDlg,GrpSelect));
+ aBibBtn.SetClickHdl(LINK(this,SwGlossaryDlg,BibHdl));
+ aShowExampleCB.SetClickHdl(LINK(this, SwGlossaryDlg, ShowPreviewHdl));
+
+ aShortNameEdit.SetMaxTextLen(SHORT_LENGTH);
+ aNameED.SetMaxTextLen(LONG_LENGTH);
+ FreeResource();
+
+ aShowExampleCB.Check( SW_MOD()->GetModuleConfig()->IsShowAutoTextPreview());
+ ShowPreviewHdl(&aShowExampleCB);
+
+ bIsDocReadOnly = pSh->GetView().GetDocShell()->IsReadOnly() ||
+ pSh->HasReadonlySel();
+ if( bIsDocReadOnly )
+ aInsertBtn.Enable(sal_False);
+ aNameED.GrabFocus();
+ aCategoryBox.SetHelpId(HID_MD_GLOS_CATEGORY);
+ aCategoryBox.SetWindowBits(WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL|WB_VSCROLL|WB_CLIPCHILDREN|WB_SORT);
+ aCategoryBox.GetModel()->SetSortMode(SortAscending);
+ aCategoryBox.SetHighlightRange(); // ueber volle Breite selektieren
+ Bitmap aRootClosed (SW_RES(BMP_ROOT_CLOSED));
+ Bitmap aRootOpened (SW_RES(BMP_ROOT_OPENED));
+ aCategoryBox.SetNodeBitmaps( aRootClosed, aRootOpened );
+
+ Init();
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwGlossaryDlg::~SwGlossaryDlg()
+{
+ SW_MOD()->GetModuleConfig()->SetShowAutoTextPreview(aShowExampleCB.IsChecked());
+ aCategoryBox.Clear();
+ aEditBtn.SetPopupMenu(0);
+ delete pMenu;
+ delete pExampleFrame;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Auswahl neue Gruppe
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox )
+{
+ SvLBoxEntry* pEntry = pBox->FirstSelected();
+ if(!pEntry)
+ return 0;
+ SvLBoxEntry* pParent = pBox->GetParent(pEntry) ? pBox->GetParent(pEntry) : pEntry;
+ GroupUserData* pGroupData = (GroupUserData*)pParent->GetUserData();
+ (*pCurrGlosGroup) = pGroupData->sGroupName;
+ (*pCurrGlosGroup) += GLOS_DELIM;
+ (*pCurrGlosGroup) += String::CreateFromInt32(pGroupData->nPathIdx);
+ pGlossaryHdl->SetCurGroup(*pCurrGlosGroup);
+ const sal_uInt16 nCount = pGlossaryHdl->GetGlossaryCnt();
+ // Aktuellen Textbaustein setzen
+ bReadOnly = pGlossaryHdl->IsReadOnly();
+ EnableShortName( !bReadOnly );
+ aEditBtn.Enable(!bReadOnly);
+ bIsOld = pGlossaryHdl->IsOld();
+ if( pParent != pEntry)
+ {
+ String aName(pBox->GetEntryText(pEntry));
+ aNameED.SetText(aName);
+ aShortNameEdit.SetText(*(String*)pEntry->GetUserData());
+ pEntry = pBox->GetParent(pEntry);
+ aInsertBtn.Enable( !bIsDocReadOnly);
+ ShowAutoText(*pCurrGlosGroup, aShortNameEdit.GetText());
+ }
+ else
+ ShowAutoText(aEmptyStr, aEmptyStr);
+ //Controls aktualisieren
+ NameModify(&aShortNameEdit);
+ return 0;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwGlossaryDlg::Apply()
+{
+ const String aGlosName(aShortNameEdit.GetText());
+ if(aGlosName.Len()) pGlossaryHdl->InsertGlossary(aGlosName);
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+/* inline */ void SwGlossaryDlg::EnableShortName(sal_Bool bOn)
+{
+ aShortNameLbl.Enable(bOn);
+ aShortNameEdit.Enable(bOn);
+}
+
+/* -----------------26.11.98 16:15-------------------
+ * existiert der Titel in der ausgewaehlten Gruppe?
+ * --------------------------------------------------*/
+SvLBoxEntry* SwGlossaryDlg::DoesBlockExist(const String& rBlock,
+ const String& rShort)
+{
+ //evtl. vorhandenen Eintrag in der TreeListBox suchen
+ SvLBoxEntry* pEntry = aCategoryBox.FirstSelected();
+ DBG_ASSERT(pEntry, "keine Selektion?")
+ if(aCategoryBox.GetParent(pEntry))
+ pEntry = aCategoryBox.GetParent(pEntry);
+ sal_uInt32 nChildCount = aCategoryBox.GetChildCount( pEntry );
+ for(sal_uInt32 i = 0; i < nChildCount; i++)
+ {
+ SvLBoxEntry* pChild = aCategoryBox.GetEntry( pEntry, i );
+ if(rBlock == aCategoryBox.GetEntryText(pChild) &&
+ (!rShort.Len() || rShort == *(String*)pChild->GetUserData()))
+ {
+ return pChild;
+ }
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwGlossaryDlg, NameModify, Edit *, pEdit )
+{
+ String aName(aNameED.GetText());
+ sal_Bool bNameED = pEdit == &aNameED;
+ if( !aName.Len() )
+ {
+ if(bNameED)
+ aShortNameEdit.SetText(aName);
+ aInsertBtn.Enable(sal_False);
+ return 0;
+ }
+ String sShortSearch;
+ if(!bNameED)
+ sShortSearch = pEdit->GetText();
+ sal_Bool bNotFound = !DoesBlockExist(aName, sShortSearch);
+ if(bNameED)
+ {
+ // ist der Text durch einen Klick in die Listbox in das
+ // Edit gekommem?
+ if(bNotFound)
+ {
+ sal_uInt16 nSz = aName.Len();
+ sal_uInt16 nStart = 1;
+ while( aName.GetChar( nStart-1 ) == ' ' && nStart < nSz )
+ nStart++;
+ String aBuf( aName.GetChar( nStart-1 ));
+ for( nStart ; nStart < nSz; ++nStart )
+ {
+ if( aName.GetChar( nStart-1 ) == ' ' && aName.GetChar( nStart ) != ' ')
+ aBuf += aName.GetChar( nStart );
+ }
+ aShortNameEdit.SetText(aBuf);
+ EnableShortName();
+ }
+ else
+ {
+ aShortNameEdit.SetText(pGlossaryHdl->GetGlossaryShortName(aName));
+ EnableShortName(!bReadOnly);
+ }
+ aInsertBtn.Enable(!bNotFound && !bIsDocReadOnly);
+ }
+ else
+ {
+ //ShortNameEdit
+ if(!bNotFound)
+ {
+ sal_Bool bEnable = !bNotFound;
+ bEnable &= !bIsDocReadOnly;
+ aInsertBtn.Enable(bEnable);
+ }
+ }
+ return 0;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwGlossaryDlg, NameDoubleClick, SvTreeListBox*, pBox )
+{
+ SvLBoxEntry* pEntry = pBox->FirstSelected();
+ if(pBox->GetParent(pEntry) && !bIsDocReadOnly)
+ EndDialog( RET_OK );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwGlossaryDlg, NameDoubleClick, SvTreeListBox*, EMPTYARG )
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwGlossaryDlg, EnableHdl, Menu *, pMn )
+{
+ const String aEditText(aNameED.GetText());
+ const sal_Bool bHasEntry = aEditText.Len() && aShortNameEdit.GetText().Len();
+ const sal_Bool bExists = 0 != DoesBlockExist(aEditText, aShortNameEdit.GetText());
+ pMn->EnableItem(FN_GL_DEFINE, bSelection && bHasEntry && !bExists);
+ pMn->EnableItem(FN_GL_DEFINE_TEXT, bSelection && bHasEntry && !bExists);
+ pMn->EnableItem(FN_GL_COPY_TO_CLIPBOARD, bExists);
+ pMn->EnableItem(FN_GL_REPLACE, bSelection && bExists && !bIsOld );
+ pMn->EnableItem(FN_GL_EDIT, bExists );
+ pMn->EnableItem(FN_GL_RENAME, bExists && !bIsOld );
+ pMn->EnableItem(FN_GL_DELETE, bExists && !bIsOld );
+ pMn->EnableItem(FN_GL_MACRO, bExists && !bIsOld &&
+ !pGlossaryHdl->IsReadOnly() );
+
+ SvLBoxEntry* pEntry = aCategoryBox.FirstSelected();
+ DBG_ASSERT(pEntry, "keine Selektion?")
+ sal_Bool bEnable = !aCategoryBox.GetParent( pEntry ) && !bIsOld &&
+ !pGlossaryHdl->IsReadOnly();
+ pMn->EnableItem( FN_GL_IMPORT, bEnable );
+ return 1;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn )
+{
+ sal_Bool bNoAttr = sal_False;
+
+ switch(pMn->GetCurItemId())
+ {
+ case FN_GL_REPLACE:
+ pGlossaryHdl->NewGlossary( aNameED.GetText(),
+ aShortNameEdit.GetText() );
+ break;
+ case FN_GL_DEFINE_TEXT:
+ bNoAttr = sal_True;
+ // Kein break!!!
+ case FN_GL_DEFINE:
+ {
+ const String aStr(aNameED.GetText());
+ const String aShortName(aShortNameEdit.GetText());
+ if(pGlossaryHdl->HasShortName(aShortName))
+ {
+ InfoBox(this, SW_RES(MSG_DOUBLE_SHORTNAME)).Execute();
+ aShortNameEdit.SetSelection(Selection(0, SELECTION_MAX));
+ aShortNameEdit.GrabFocus();
+ break;
+ }
+ if(pGlossaryHdl->NewGlossary(aStr, aShortName, sal_False, bNoAttr ))
+ {
+ SvLBoxEntry* pEntry = aCategoryBox.FirstSelected();
+ if(aCategoryBox.GetParent(pEntry))
+ pEntry = aCategoryBox.GetParent(pEntry);
+
+ SvLBoxEntry* pChild = aCategoryBox.InsertEntry(aStr, pEntry);
+ pChild->SetUserData(new String(aShortName));
+ aNameED.SetText(aStr);
+ aShortNameEdit.SetText(aShortName);
+ NameModify(&aNameED); // fuer Schalten der Buttons
+
+ }
+ }
+ break;
+ case FN_GL_COPY_TO_CLIPBOARD :
+ {
+ pGlossaryHdl->CopyToClipboard(*pSh, aShortNameEdit.GetText());
+ }
+ break;
+ case FN_GL_EDIT:
+ break;
+ case FN_GL_RENAME:
+ {
+ aShortNameEdit.SetText(pGlossaryHdl->GetGlossaryShortName(aNameED.GetText()));
+ SwNewGlosNameDlg* pNewNameDlg = new SwNewGlosNameDlg(this, aNameED.GetText(),
+ aShortNameEdit.GetText() );
+ if(pNewNameDlg->Execute() == RET_OK)
+ {
+ pGlossaryHdl->Rename( aShortNameEdit.GetText(),
+ pNewNameDlg->GetNewShort(),
+ pNewNameDlg->GetNewName());
+ SvLBoxEntry* pEntry = aCategoryBox.FirstSelected();
+ SvLBoxEntry* pNewEntry = aCategoryBox.InsertEntry(
+ pNewNameDlg->GetNewName(), aCategoryBox.GetParent(pEntry));
+ pNewEntry->SetUserData(new String(pNewNameDlg->GetNewShort()));
+ delete (String*)pEntry->GetUserData();
+ aCategoryBox.GetModel()->Remove(pEntry);
+ aCategoryBox.Select(pNewEntry);
+ aCategoryBox.MakeVisible(pNewEntry);
+ }
+ GrpSelect( &aCategoryBox );
+ delete pNewNameDlg;
+ }
+ break;
+ case FN_GL_DELETE:
+ {
+ QueryBox aQuery(this, SW_RES(MSG_QUERY_DELETE));
+ if(RET_YES == aQuery.Execute())
+ {
+ const String aShortName(aShortNameEdit.GetText());
+ const String aTitle(aNameED.GetText());
+ if(aTitle.Len() && pGlossaryHdl->DelGlossary(aShortName))
+ {
+ SvLBoxEntry* pChild = DoesBlockExist(aTitle, aShortName);
+ DBG_ASSERT(pChild, "Eintrag nicht gefunden!")
+ SvLBoxEntry* pParent = aCategoryBox.GetParent(pChild);
+ aCategoryBox.Select(pParent);
+
+ aCategoryBox.GetModel()->Remove(pChild);
+ aNameED.SetText( aEmptyStr );
+ NameModify(&aNameED);
+ }
+ }
+ }
+ break;
+ case FN_GL_MACRO:
+ {
+ SfxItemSet aSet( pSh->GetAttrPool(), RES_FRMMACRO, RES_FRMMACRO );
+
+ SvxMacro aStart(aEmptyStr, aEmptyStr, STARBASIC);
+ SvxMacro aEnd(aEmptyStr, aEmptyStr, STARBASIC);
+ pGlossaryHdl->GetMacros(aShortNameEdit.GetText(), aStart, aEnd );
+
+ SvxMacroItem aItem;
+ if( aStart.GetMacName().Len() )
+ aItem.SetMacro( SW_EVENT_START_INS_GLOSSARY, aStart );
+ if( aEnd.GetMacName().Len() )
+ aItem.SetMacro( SW_EVENT_END_INS_GLOSSARY, aEnd );
+
+ aSet.Put( aItem );
+
+ const SfxPoolItem* pItem;
+ SwMacroAssignDlg aMacDlg( this, aSet, MACASSGN_TEXTBAUST );
+ if( RET_OK == aMacDlg.Execute() &&
+ SFX_ITEM_SET == aMacDlg.GetOutputItemSet()->GetItemState(
+ RES_FRMMACRO, sal_False, &pItem ))
+ {
+ const SvxMacroTableDtor& rTbl = ((SvxMacroItem*)pItem)->GetMacroTable();
+
+ pGlossaryHdl->SetMacros( aShortNameEdit.GetText(),
+ rTbl.Get( SW_EVENT_START_INS_GLOSSARY ),
+ rTbl.Get( SW_EVENT_END_INS_GLOSSARY ) );
+ }
+ }
+ break;
+
+ case FN_GL_IMPORT:
+ {
+ // call the FileOpenDialog do find WinWord - Files with templates
+ SfxFileDialog* pDlg = new SfxFileDialog( this, WB_OPEN | WB_3DLOOK );
+ pDlg->SetPath( SFX_INIMANAGER()->Get( SFX_KEY_WORK_PATH ));
+ String sWW8( C2S(FILTER_WW8) );
+
+ sal_uInt16 i = 0;
+
+ const SfxFactoryFilterContainer* pFltCnt =
+ SwDocShell::Factory().GetFilterContainer();
+ if( pFltCnt )
+ {
+ const SfxFilter* pFilter;
+ sal_uInt16 nCount = pFltCnt->GetFilterCount();
+ for( i = 0; i < nCount; ++i )
+ if( ( pFilter = pFltCnt->GetFilter( i ))
+ /*->IsAllowedAsTemplate()
+ && pFilter*/->GetUserData() == sWW8 )
+ {
+ pDlg->AddFilter( pFilter->GetUIName(),
+ ((WildCard&)pFilter->GetWildcard())(),
+ pFilter->GetTypeName() );
+ pDlg->SetCurFilter( pFilter->GetUIName() );
+ }
+ }
+
+ if( i && RET_OK == pDlg->Execute() )
+ {
+ if( pGlossaryHdl->ImportGlossaries( pDlg->GetPath() ))
+ Init();
+ else
+ {
+ InfoBox(this, SW_RES( MSG_NO_GLOSSARIES )).Execute();
+ }
+ }
+ delete pDlg;
+ }
+ break;
+
+ default:
+ return 0;
+ }
+ return 1;
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Dialog Verwaltung Bereiche
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwGlossaryDlg, BibHdl, Button *, EMPTYARG )
+{
+ SwGlossaries* pGloss = ::GetGlossaries();
+ if( pGloss->IsGlosPathErr() )
+ pGloss->ShowError();
+ else
+ {
+ //check if at least one glossary path is write enabled
+ String sGlosPath( SFX_INIMANAGER()->Get( SFX_KEY_GLOSSARY_PATH ) );
+ USHORT nPaths = sGlosPath.GetTokenCount(';');
+ BOOL bIsWritable = FALSE;
+ for(USHORT nPath = 0; nPath < nPaths; nPath++)
+ {
+ String sPath = URIHelper::SmartRelToAbs(sGlosPath.GetToken(nPath, ';'));
+ try
+ {
+ Content aTestContent( sPath,
+ uno::Reference< XCommandEnvironment >());
+ Any aAny = aTestContent.getPropertyValue( C2U("IsReadOnly") );
+ if(aAny.hasValue())
+ {
+ bIsWritable = !*(sal_Bool*)aAny.getValue();
+ }
+ }
+ catch(...)
+ {}
+ if(bIsWritable)
+ break;
+ }
+ if(bIsWritable)
+ {
+
+ SwGlossaryGroupDlg *pDlg = new SwGlossaryGroupDlg( this, pGloss->GetPathArray(), pGlossaryHdl );
+ if ( RET_OK == pDlg->Execute() )
+ {
+ Init();
+ //if new groups were created - select one of them
+ String sNewGroup = pDlg->GetCreatedGroupName();
+ SvLBoxEntry* pEntry = aCategoryBox.First();
+ while(sNewGroup.Len() && pEntry)
+ {
+ if(!aCategoryBox.GetParent(pEntry))
+ {
+ GroupUserData* pGroupData = (GroupUserData*)pEntry->GetUserData();
+ String sGroup = pGroupData->sGroupName;
+ sGroup += GLOS_DELIM;
+ sGroup += String::CreateFromInt32(pGroupData->nPathIdx);
+ if(sGroup == sNewGroup)
+ {
+ aCategoryBox.Select(pEntry);
+ aCategoryBox.MakeVisible(pEntry);
+ GrpSelect(&aCategoryBox);
+ break;
+ }
+ }
+ pEntry = aCategoryBox.Next(pEntry);
+ }
+
+ }
+ delete pDlg;
+ }
+ else
+ {
+ QueryBox aBox(this, WB_YES_NO, sReadonlyPath);
+ if(RET_YES == aBox.Execute())
+ PathHdl(&aPathBtn);
+ }
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Initialisierung; aus Ctor und nach Bearbeiten Bereiche
+------------------------------------------------------------------------*/
+
+
+void SwGlossaryDlg::Init()
+{
+ aCategoryBox.SetUpdateMode( sal_False );
+ aCategoryBox.Clear();
+ // Textbausteinbereiche anzeigen
+ const sal_uInt16 nCnt = pGlossaryHdl->GetGroupCnt();
+ SvLBoxEntry* pSelEntry = 0;
+ const String sSelStr(pCurrGlosGroup->GetToken(0, GLOS_DELIM));
+ const sal_uInt16 nSelPath = pCurrGlosGroup->GetToken(1, GLOS_DELIM).ToInt32();
+ for(sal_uInt16 nId = 0; nId < nCnt; ++nId )
+ {
+ String sTitle;
+ String sGroupName(pGlossaryHdl->GetGroupName(nId, &sTitle));
+ if(!sTitle.Len())
+ sTitle = sGroupName.GetToken( 0, GLOS_DELIM );
+ SvLBoxEntry* pEntry = aCategoryBox.InsertEntry( sTitle );
+ sal_uInt16 nPath = sGroupName.GetToken( 1, GLOS_DELIM ).ToInt32();
+
+ GroupUserData* pData = new GroupUserData;
+ pData->sGroupName = sGroupName.GetToken(0, GLOS_DELIM);
+ pData->nPathIdx = nPath;
+ pData->bReadonly = pGlossaryHdl->IsReadOnly(&sGroupName);
+
+ pEntry->SetUserData(pData);
+ if(sSelStr == pData->sGroupName && nSelPath == nPath)
+ pSelEntry = pEntry;
+
+ //Eintraege fuer die Gruppen auffuellen
+ {
+ pGlossaryHdl->SetCurGroup(sGroupName, sal_False, sal_True);
+ const sal_uInt16 nCount = pGlossaryHdl->GetGlossaryCnt();
+ for(sal_uInt16 i = 0; i < nCount; ++i)
+ {
+ String sTitle(pGlossaryHdl->GetGlossaryName(i));
+ SvLBoxEntry* pChild = aCategoryBox.InsertEntry(
+ sTitle, pEntry);
+ pChild->SetUserData(new String(pGlossaryHdl->GetGlossaryShortName(i)));
+ }
+ }
+ }
+ // Aktuelle Gruppe setzen und Textbausteine anzeigen
+ if(!pSelEntry)
+ {
+ //find a non-readonly group
+ SvLBoxEntry* pSearch = aCategoryBox.First();
+ while(pSearch)
+ {
+ if(!aCategoryBox.GetParent(pSearch))
+ {
+ GroupUserData* pData = (GroupUserData*)pSearch->GetUserData();
+ if(!pData->bReadonly)
+ {
+ pSelEntry = pSearch;
+ break;
+ }
+ }
+ pSearch = aCategoryBox.Next(pSearch);
+ }
+ if(!pSelEntry)
+ pSelEntry = aCategoryBox.GetEntry(0);
+ }
+ if(pSelEntry)
+ {
+ aCategoryBox.Expand(pSelEntry);
+ aCategoryBox.Select(pSelEntry);
+ aCategoryBox.MakeVisible(pSelEntry);
+ GrpSelect(&aCategoryBox);
+ }
+ //JP 16.11.99: the SvxTreeListBox has a Bug. The Box dont recalc the
+ // outputsize, when all entries are insertet. The result is, that
+ // the Focus/Highlight rectangle is to large and paintet over the
+ // HScrollbar. -> Fix: call the resize
+ aCategoryBox.Resize();
+
+ aCategoryBox.GetModel()->Resort();
+ aCategoryBox.SetUpdateMode( sal_True );
+ aCategoryBox.Update();
+
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+ aFileRelCB.Check( pCfg->IsSaveRelFile() );
+ aFileRelCB.SetClickHdl(LINK(this, SwGlossaryDlg, CheckBoxHdl));
+ aNetRelCB.Check( pCfg->IsSaveRelNet() );
+ aNetRelCB.SetClickHdl(LINK(this, SwGlossaryDlg, CheckBoxHdl));
+ aInsertTipCB.Check( pCfg->IsAutoTextTip() );
+ aInsertTipCB.SetClickHdl(LINK(this, SwGlossaryDlg, CheckBoxHdl));
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwGlossaryDlg, EditHdl, Button *, EMPTYARG )
+{
+//EndDialog darf nicht im MenuHdl aufgerufen werden
+ if(aEditBtn.GetCurItemId() == FN_GL_EDIT )
+ EndDialog(RET_EDIT);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwGlossaryDlg, EditHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung: KeyInput fuer ShortName - Edits ohne Spaces
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwNewGlosNameDlg, Modify, Edit *, pBox )
+{
+ String aName(aNewName.GetText());
+ SwGlossaryDlg* pDlg = (SwGlossaryDlg*)GetParent();
+
+ if( pBox == &aNewName )
+ {
+ if( aName.Len() )
+ aNewShort.SetText( pDlg->pGlossaryHdl->GetValidShortCut( aName ));
+ else
+ aNewShort.SetText(aName);
+ }
+
+ sal_Bool bEnable = aName.Len() && aNewShort.GetText().Len() &&
+ (!pDlg->DoesBlockExist(aName, aNewShort.GetText())
+ || aName == aOldName.GetText());
+ aOk.Enable(bEnable);
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwNewGlosNameDlg, Rename, Button *, EMPTYARG )
+{
+ SwGlossaryDlg* pDlg = (SwGlossaryDlg*)GetParent();
+ String sNew = aNewShort.GetText();
+ GetAppCharClass().toUpper(sNew);
+ if( pDlg->pGlossaryHdl->HasShortName(aNewShort.GetText())
+ && sNew != aOldShort.GetText() )
+ {
+ InfoBox(this, SW_RES(MSG_DOUBLE_SHORTNAME)).Execute();
+ aNewShort.GrabFocus();
+ }
+ else
+ EndDialog(sal_True);
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwGlossaryDlg, CheckBoxHdl, CheckBox *, pBox )
+{
+ OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+ sal_Bool bCheck = pBox->IsChecked();
+ if( pBox == &aInsertTipCB )
+ pCfg->SetAutoTextTip(bCheck);
+ else if(pBox == &aFileRelCB)
+ pCfg->SetSaveRelFile(bCheck);
+ else
+ pCfg->SetSaveRelNet(bCheck);
+ return 0;
+}
+
+/* -----------------26.11.98 15:18-------------------
+ * TreeListBox fuer Gruppen und Bausteine
+ * --------------------------------------------------*/
+SwGlTreeListBox::SwGlTreeListBox(Window* pParent, const ResId& rResId) :
+ SvTreeListBox(pParent, rResId),
+ sReadonly (SW_RES(ST_READONLY)),
+ pDragEntry(0)
+{
+ FreeResource();
+ SetDragDropMode( SV_DRAGDROP_CTRL_MOVE|SV_DRAGDROP_CTRL_COPY );
+}
+/* -----------------30.11.98 10:49-------------------
+ *
+ * --------------------------------------------------*/
+void SwGlTreeListBox::Clear()
+{
+ SvLBoxEntry* pEntry = First();
+ while(pEntry)
+ {
+ if(GetParent(pEntry))
+ delete (String*)pEntry->GetUserData();
+ else
+ delete (GroupUserData*)pEntry->GetUserData();
+ pEntry = Next(pEntry);
+ }
+ SvTreeListBox::Clear();
+}
+
+/*-----------------10.06.97 14.52-------------------
+
+--------------------------------------------------*/
+void SwGlTreeListBox::RequestHelp( const HelpEvent& rHEvt )
+{
+ Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
+ SvLBoxEntry* pEntry = GetEntry( aPos );
+ // Hilfe gibt es nur fuer die Gruppennamen
+ if(pEntry)
+ {
+ SvLBoxTab* pTab;
+ SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
+ if(pItem)
+ {
+ aPos = SvTreeListBox::GetEntryPos( pEntry );
+ Size aSize(pItem->GetSize( this, pEntry ));
+ aPos.X() = GetTabPos( pEntry, pTab );
+
+ if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
+ aSize.Width() = GetSizePixel().Width() - aPos.X();
+ aPos = OutputToScreenPixel(aPos);
+ Rectangle aItemRect( aPos, aSize );
+ String sMsg;
+ if(!GetParent(pEntry))
+ {
+ GroupUserData* pData = (GroupUserData*)pEntry->GetUserData();
+ const SvStrings* pPathArr = ::GetGlossaries()->GetPathArray();
+ if(pPathArr->Count())
+ {
+ sMsg = (*(*pPathArr)[pData->nPathIdx]);
+ sMsg += INET_PATH_TOKEN;
+ sMsg += pData->sGroupName;
+ sMsg += SwGlossaries::GetExtension();
+ INetURLObject aTmp(sMsg);
+ sMsg = aTmp.GetPath();
+
+ if(pData->bReadonly)
+ {
+ sMsg += ' ';
+ sMsg += '(';
+ sMsg += sReadonly;
+ sMsg += ')';
+ }
+
+
+ }
+ }
+ else
+ sMsg = *(String*)pEntry->GetUserData();
+ Help::ShowQuickHelp( this, aItemRect, sMsg,
+ QUICKHELP_LEFT|QUICKHELP_VCENTER );
+ }
+ }
+}
+/* -----------------26.11.98 14:42-------------------
+ *
+ * --------------------------------------------------*/
+DragDropMode SwGlTreeListBox::NotifyBeginDrag( SvLBoxEntry* pEntry)
+{
+ DragDropMode eRet;
+ pDragEntry = pEntry;
+ String sEntry;
+ if(!GetParent(pEntry))
+ eRet = SV_DRAGDROP_NONE;
+ else
+ {
+ SwGlossaryDlg* pDlg = (SwGlossaryDlg*)Window::GetParent();
+ SvLBoxEntry* pParent = GetParent(pEntry);
+
+ GroupUserData* pGroupData = (GroupUserData*)pParent->GetUserData();
+ String sEntry(pGroupData->sGroupName);
+ sEntry += GLOS_DELIM;
+ sEntry += String::CreateFromInt32(pGroupData->nPathIdx);
+ sal_uInt16 nDragOptions = DRAG_COPYABLE;
+ eRet = SV_DRAGDROP_CTRL_COPY;
+ if(!pDlg->pGlossaryHdl->IsReadOnly(&sEntry))
+ {
+ eRet |= SV_DRAGDROP_CTRL_MOVE;
+ nDragOptions |= DRAG_MOVEABLE;
+ }
+ SetDragOptions( nDragOptions );
+ }
+ return eRet;
+}
+/* -----------------27.11.98 09:35-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwGlTreeListBox::NotifyQueryDrop( SvLBoxEntry* pEntry)
+{
+ // TODO: Readonly - Ueberpruefung fehlt noch!
+ SvLBoxEntry* pSrcParent = GetParent(pEntry) ? GetParent(pEntry) : pEntry;
+ SvLBoxEntry* pDestParent =
+ GetParent(pDragEntry ) ? GetParent(pDragEntry ) : pDragEntry ;
+ return pDestParent != pSrcParent;
+
+}
+/* -----------------26.11.98 14:42-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwGlTreeListBox::NotifyMoving( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ sal_uInt32& rNewChildPos
+ )
+{
+ pDragEntry = 0;
+ if(!pTarget) //An den Anfang verschieben
+ {
+ pTarget = GetEntry(0);
+ }
+ // 1. wird in verschiedene Gruppen verschoben?
+ // 2. darf in beiden Gruppen geschrieben werden?
+ SvLBoxEntry* pSrcParent = GetParent(pEntry);
+ SvLBoxEntry* pDestParent =
+ GetParent(pTarget) ? GetParent(pTarget) : pTarget;
+ sal_Bool bRet = sal_False;
+ if(pDestParent != pSrcParent)
+ {
+ SwGlossaryDlg* pDlg = (SwGlossaryDlg*)Window::GetParent();
+ SwWait aWait( *pDlg->pSh->GetView().GetDocShell(), sal_True );
+
+ GroupUserData* pGroupData = (GroupUserData*)pSrcParent->GetUserData();
+ String sSourceGroup(pGroupData->sGroupName);
+ sSourceGroup += GLOS_DELIM;
+ sSourceGroup += String::CreateFromInt32(pGroupData->nPathIdx);
+ pDlg->pGlossaryHdl->SetCurGroup(sSourceGroup);
+ String sTitle(GetEntryText(pEntry));
+ String sShortName(*(String*)pEntry->GetUserData());
+
+ GroupUserData* pDestData = (GroupUserData*)pDestParent->GetUserData();
+ String sDestName = pDestData->sGroupName;
+ sDestName += GLOS_DELIM;
+ sDestName += String::CreateFromInt32(pDestData->nPathIdx);
+ bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName,
+ sDestName, sTitle, sal_True );
+ if(bRet)
+ {
+ SvLBoxEntry* pChild = InsertEntry(sTitle, pDestParent);
+ pChild->SetUserData(new String(sShortName));
+ GetModel()->Remove(pEntry);
+ }
+ }
+ return sal_False; //sonst wird der Eintrag automatisch vorgenommen
+}
+/* -----------------26.11.98 14:42-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwGlTreeListBox::NotifyCopying( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ sal_uInt32& rNewChildPos
+ )
+{
+ pDragEntry = 0;
+ // 1. wird in verschiedene Gruppen verschoben?
+ // 2. darf in beiden Gruppen geschrieben werden?
+ if(!pTarget) //An den Anfang verschieben
+ {
+ pTarget = GetEntry(0);
+ }
+ SvLBoxEntry* pSrcParent = GetParent(pEntry);
+ SvLBoxEntry* pDestParent =
+ GetParent(pTarget) ? GetParent(pTarget) : pTarget;
+ sal_Bool bRet = sal_False;
+ if(pDestParent != pSrcParent)
+ {
+ SwGlossaryDlg* pDlg = (SwGlossaryDlg*)Window::GetParent();
+ SwWait aWait( *pDlg->pSh->GetView().GetDocShell(), sal_True );
+
+ GroupUserData* pGroupData = (GroupUserData*)pSrcParent->GetUserData();
+ String sSourceGroup(pGroupData->sGroupName);
+ sSourceGroup += GLOS_DELIM;
+ sSourceGroup += String::CreateFromInt32(pGroupData->nPathIdx);
+
+ pDlg->pGlossaryHdl->SetCurGroup(sSourceGroup);
+ String sTitle(GetEntryText(pEntry));
+ String sShortName(*(String*)pEntry->GetUserData());
+
+ GroupUserData* pDestData = (GroupUserData*)pDestParent->GetUserData();
+ String sDestName = pDestData->sGroupName;
+ sDestName += GLOS_DELIM;
+ sDestName += String::CreateFromInt32(pDestData->nPathIdx);
+
+ bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName,
+ sDestName, sTitle, sal_False );
+ if(bRet)
+ {
+ SvLBoxEntry* pChild = InsertEntry(sTitle, pDestParent);
+ pChild->SetUserData(new String(sShortName));
+ }
+ }
+ return sal_False; //sonst wird der Eintrag automatisch vorgenommen
+}
+
+
+/*-----------------10.06.97 15.18-------------------
+
+--------------------------------------------------*/
+String SwGlossaryDlg::GetCurrGrpName() const
+{
+ SvLBoxEntry* pEntry = aCategoryBox.FirstSelected();
+ String sRet;
+ if(pEntry)
+ {
+ pEntry =
+ aCategoryBox.GetParent(pEntry) ? aCategoryBox.GetParent(pEntry) : pEntry;
+ GroupUserData* pGroupData = (GroupUserData*)pEntry->GetUserData();
+ sRet = pGroupData->sGroupName;
+ sRet += GLOS_DELIM;
+ sRet += String::CreateFromInt32(pGroupData->nPathIdx);
+ }
+ return sRet;
+}
+
+/*-----------------11.06.97 08.17-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlossaryDlg, PathHdl, Button *, pBtn )
+{
+ SvxMultiPathDialog* pDlg = new SvxMultiPathDialog(pBtn);
+ String sGlosPath( SFX_INIMANAGER()->Get( SFX_KEY_GLOSSARY_PATH ) );
+ pDlg->SetPath(sGlosPath);
+ if(RET_OK == pDlg->Execute())
+ {
+ String sTmp(pDlg->GetPath());
+ if(sTmp != sGlosPath)
+ {
+ SFX_INIMANAGER()->Set(sTmp, SFX_KEY_GLOSSARY_PATH);
+ ::GetGlossaries()->UpdateGlosPath( sal_True );
+ Init();
+ }
+ }
+ delete pDlg;
+ return 0;
+}
+/* -----------------28.07.99 13:48-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwGlossaryDlg, ShowPreviewHdl, CheckBox *, pBox )
+{
+ sal_Bool bCreated = sal_False;
+ if(pBox->IsChecked())
+ {
+ //create example
+ if(!pExampleFrame)
+ {
+ Link aLink(LINK(this, SwGlossaryDlg, PreviewLoadedHdl));
+ pExampleFrame = new SwOneExampleFrame(aExampleWIN, EX_SHOW_ONLINE_LAYOUT, &aLink);
+ bCreated = sal_True;
+ }
+ }
+
+ aExampleWIN.Show(pBox->IsChecked() && !bCreated);
+ if(pCurrGlosGroup)
+ ShowAutoText(*pCurrGlosGroup, aShortNameEdit.GetText());
+
+ return 0;
+};
+/* -----------------18.11.99 17:09-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwGlossaryDlg, PreviewLoadedHdl, void *, EMPTYARG )
+{
+ if(pCurrGlosGroup)
+ ShowAutoText(*pCurrGlosGroup, aShortNameEdit.GetText());
+ aExampleWIN.Show(aShowExampleCB.IsChecked());
+ return 0;
+};
+
+/* -----------------28.07.99 16:28-------------------
+
+ --------------------------------------------------*/
+void SwGlossaryDlg::ShowAutoText(const String& rGroup, const String& rShortName)
+{
+ if(aExampleWIN.IsVisible())
+ {
+ if(!_xAutoText.is())
+ {
+ uno::Reference< lang::XMultiServiceFactory >
+ xMgr = getProcessServiceFactory();
+ //now the AutoText ListBoxes have to be filled
+
+ uno::Reference< uno::XInterface > xAText = xMgr->createInstance( C2U("com.sun.star.text.AutoTextContainer") );
+ _xAutoText = uno::Reference< container::XNameAccess >(xAText, uno::UNO_QUERY);
+ }
+
+ //try to make an Undo()
+ pExampleFrame->ExecUndo();
+ uno::Reference< XTextCursor > & xCrsr = pExampleFrame->GetTextCursor();
+ if(xCrsr.is())
+ {
+ if(rShortName.Len())
+ {
+ uno::Any aGroup = _xAutoText->getByName(rGroup);
+ uno::Reference< XAutoTextGroup > xGroup = *(uno::Reference< XAutoTextGroup > *)aGroup.getValue();
+ OUString uShortName(rShortName);
+ if(xGroup->hasByName(uShortName))
+ {
+ uno::Any aEntry(xGroup->getByName(uShortName));
+ uno::Reference< XAutoTextEntry > xEntry = *(uno::Reference< XAutoTextEntry > *)aEntry.getValue();
+ uno::Reference< XTextRange > xRange(xCrsr, uno::UNO_QUERY);
+ xEntry->applyTo(xRange);
+ }
+ }
+ }
+ }
+}
+/*--------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.154 2000/09/18 16:05:56 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.153 2000/08/31 06:33:07 jp
+ use CharClass instead of international
+
+ Revision 1.152 2000/08/16 07:33:39 os
+ #71166# handling of readonly AutoText groups improved
+
+ Revision 1.151 2000/07/03 08:54:04 jp
+ must changes for VCL
+
+ Revision 1.150 2000/06/07 13:20:47 os
+ using UCB
+
+ Revision 1.149 2000/05/16 17:30:17 jp
+ Changes for Unicode
+
+ Revision 1.148 2000/05/16 09:15:13 os
+ project usr removed
+
+ Revision 1.147 2000/05/10 11:53:43 os
+ Basic API removed
+
+ Revision 1.146 2000/04/19 12:56:35 os
+ include sfx2/filedlg.hxx removed
+
+ Revision 1.145 2000/04/18 15:08:17 os
+ UNICODE
+
+ Revision 1.144 2000/03/23 08:42:49 os
+ UNO III
+
+ Revision 1.143 2000/03/14 10:53:19 os
+ #73958# select non-readonly group after start up
+
+ Revision 1.142 2000/03/06 08:50:43 os
+ #70359# GetGroupName: if no title is set use group name
+
+ Revision 1.141 2000/03/03 15:17:02 os
+ StarView remainders removed
+
+ Revision 1.140 2000/02/14 14:40:48 os
+ #70473# Unicode
+
+ Revision 1.139 2000/02/10 10:34:32 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.138 2000/02/03 11:07:05 jp
+ Task #72579#: SwTextblocks - use the new method GetValidShortCut
+
+ Revision 1.137 2000/02/02 17:03:02 jp
+ Task #72579#: WW8Reader can import glossaries
+
+ Revision 1.136 2000/02/02 11:23:21 os
+ #72564# select one of the created groups; #72563# D'n'D: set copy mode for readonly blocks
+
+ Revision 1.135 1999/12/29 07:58:25 os
+ #71320# flags for AutoText preview in module config
+
+ Revision 1.134 1999/12/27 10:35:11 os
+ #71262# Undo in SwOneExampleFrame
+
+ Revision 1.133 1999/12/15 15:32:24 os
+ #70234# ExampleFrame: OnlineLayout, ContextMenu, disabled
+
+ Revision 1.132 1999/11/25 13:11:59 hr
+ #65293#: cast
+
+ Revision 1.131 1999/11/19 16:40:24 os
+ modules renamed
+
+ Revision 1.130 1999/11/19 11:47:36 os
+ #67410# consider path index selection restore
+
+ Revision 1.129 1999/11/19 11:11:52 os
+ #69862# Example window corrected
+
+ Revision 1.128 1999/11/16 16:09:00 jp
+ Init: call resize at SvTreeListBox
+
+ Revision 1.127 1999/10/21 17:48:59 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ --------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/glossary.hrc b/sw/source/ui/misc/glossary.hrc
new file mode 100644
index 000000000000..1bba3cdadebc
--- /dev/null
+++ b/sw/source/ui/misc/glossary.hrc
@@ -0,0 +1,126 @@
+/*************************************************************************
+ *
+ * $RCSfile: glossary.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+// Box Textbausteine
+#define FT_SHORTNAME 1
+#define ED_SHORTNAME 2
+#define FT_NAME 3
+//#define DCB_NAME 4
+#define ED_NAME 4
+#define CB_INSERT_TIP 5
+
+//#define FT_BIB 10
+
+#define GB_GLOSSARY 30
+
+#define PB_INSERT 50
+#define PB_EDIT 52
+#define PB_BIB 54
+#define PB_CLOSE 55
+#define PB_PATH 56
+#define PB_HELP 57
+
+#define MNU_EDIT 60
+#define FN_GL_DEFINE 61
+#define FN_GL_DEFINE_TEXT 62
+#define FN_GL_REPLACE 63
+#define FN_GL_EDIT 64
+#define FN_GL_DELETE 65
+#define FN_GL_RENAME 66
+#define FN_GL_MACRO 67
+#define CB_FILE_REL 68
+#define CB_NET_REL 69
+#define GB_RELATIVE 70
+#define GB_EXAMPLE 71
+#define WIN_EXAMPLE 72
+#define CB_SHOW_EXAMPLE 73
+#define FN_GL_COPY_TO_CLIPBOARD 74
+#define FN_GL_IMPORT 75
+#define ST_READONLY 76
+#define ST_READONLY_PATH 77
+
+// Box Bibliothek Textbausteine
+#define GB_EDIT 1
+#define GB_BIB 2
+#define ED_BIB 3
+
+#define PB_NEW 10
+#define PB_DELETE 11
+
+#define BT_OK 100
+
+// beide
+#define LB_BIB 80
+
+// Dialog Namensaenderung
+#define FT_ON 1
+#define FT_OS 2
+#define FT_NN 3
+#define FT_NS 4
+#define ED_ON 5
+#define ED_OS 6
+#define ED_NN 7
+#define ED_NS 8
+#define GB_NN 9
+#define BT_CANCEL 10
+#define BT_OKNEW 11
+
diff --git a/sw/source/ui/misc/glossary.src b/sw/source/ui/misc/glossary.src
new file mode 100644
index 000000000000..cfcd20958dda
--- /dev/null
+++ b/sw/source/ui/misc/glossary.src
@@ -0,0 +1,1169 @@
+/*************************************************************************
+ *
+ * $RCSfile: glossary.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+#include "glossary.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ // #define DLG_GLOSSARY 256
+ModalDialog DLG_GLOSSARY
+{
+ HelpID = FN_GLOSSARY_DLG ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 375 , 164 ) ;
+ Text = "AutoText" ;
+ Text [ ENGLISH ] = "AutoText" ;
+ Text [ norwegian ] = "AutoTekst" ;
+ Text [ italian ] = "Testo automatico" ;
+ Text [ portuguese_brazilian ] = "Texto autom tico" ;
+ Text [ portuguese ] = "AutoTexto" ;
+ Text [ finnish ] = "Automaattiteksti" ;
+ Text [ danish ] = "AutoTekst" ;
+ Text [ french ] = "AutoTexte" ;
+ Text [ swedish ] = "AutoText" ;
+ Text [ dutch ] = "AutoTekst" ;
+ Text [ spanish ] = "AutoTexto" ;
+ Text [ english_us ] = "AutoText" ;
+ Moveable = TRUE ;
+ GroupBox GB_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 94 , 155 ) ;
+ Text = "Vorschau" ;
+ Text [ ENGLISH ] = "Preview" ;
+ Text[ english_us ] = "Preview";
+ Text[ portuguese ] = "Previsualizar";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ dutch ] = "Voorbeeld";
+ Text[ french ] = "Aperçu";
+ Text[ spanish ] = "Previsualización";
+ Text[ italian ] = "Anteprima";
+ Text[ danish ] = "Eksempel";
+ Text[ swedish ] = "Förhandsvisning";
+ Text[ polish ] = "Podgl¹d";
+ Text[ portuguese_brazilian ] = "Preview";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ÇáãÚÇíäÉ";
+ Text[ turkish ] = "Önizleme";
+ Text[ language_user1 ] = " ";
+ };
+ Window WIN_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 82 , 124 ) ;
+ };
+ CheckBox CB_SHOW_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 12 , 143 ) ;
+ Size = MAP_APPFONT ( 82 , 12 ) ;
+ Text = "~Vorschau anzeigen" ;
+ Text [ ENGLISH ] = "Show ~preview" ;
+ Text[ english_us ] = "Sho~w preview";
+ Text[ portuguese ] = "~Mostrar Previsualizar";
+ Text[ russian ] = "Âêëþ÷èòü ïðîñìîòð";
+ Text[ greek ] = "ÅìöÜíéóç ðñïåðéóêüðçóçò";
+ Text[ dutch ] = "~Voorbeeld weergeven";
+ Text[ french ] = "Afficher l'~aperçu";
+ Text[ spanish ] = "Mostrar pre~visualización";
+ Text[ italian ] = "Mostra ~anteprima";
+ Text[ danish ] = "Vis eksempel";
+ Text[ swedish ] = "Visa förhandsvisning";
+ Text[ polish ] = "Wyœwietl podgl¹d";
+ Text[ portuguese_brazilian ] = "Show ~preview";
+ Text[ japanese ] = "ÌßÚËÞ­°•\\Ž¦(~P)";
+ Text[ korean ] = "¹Ì¸®º¸±â º¸±â(~W)";
+ Text[ chinese_simplified ] = "ÏÔʾԤÊÓ(~P)";
+ Text[ chinese_traditional ] = "±Ä¥Î¹wÄý(~P)";
+ Text[ arabic ] = "ÅÙåÇÑ ÇáãÚÇíäÉ";
+ Text[ turkish ] = "Önizlemeyi görüntüle";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_INSERT_TIP
+ {
+ Pos = MAP_APPFONT ( 112 , 12 ) ;
+ Size = MAP_APPFONT ( 200 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "~Rest des Namens bei der Eingabe als Tipp anzeigen" ;
+ Text [ ENGLISH ] = "Show the rest of the name as tip while typing" ;
+ Text [ english_us ] = "~Display remainder of name as suggestion while typing" ;
+ Text [ italian ] = "Visualizza il resto del nome nella digitazione come suggerimento" ;
+ Text [ spanish ] = "~Muestra el resto del nombre como sugerencia durante la entrada" ;
+ Text [ french ] = "Lors de la saisie, afficher le nom complet sous forme d'~infobulle" ;
+ Text [ dutch ] = "~Rest van de naam bij invoer als tip weergeven" ;
+ Text [ swedish ] = "~Visa resten av namnet som tips vid inmatningen" ;
+ Text [ danish ] = "Vis resten af navnet som tip under skrivning" ;
+ Text [ portuguese_brazilian ] = "~Rest des Namens bei der Eingabe als Tip anzeigen" ;
+ Text [ portuguese ] = "Mostrar ~resto do nome durante a digitação como sugestão" ;
+ Text[ chinese_simplified ] = "×Ô¶¯ÏÔʾÊäÈëÎÄÌáʾ(~D)";
+ Text[ russian ] = "Ïðè ââîäå ïîêàçûâàòü âåñü àâòîòåêñò êàê ïîäñêàçêó";
+ Text[ polish ] = "Wyœwietl pozosta³¹ czêœæ nazwy przy wprowadzaniu jako wskazówkê";
+ Text[ japanese ] = "“ü—Í’†‚É“ü—ÍŽx‰‡€–Ú–¼‚ð•\\Ž¦‚·‚é(~D)";
+ Text[ chinese_traditional ] = "¦Û°Ê§¹¦¨Åã¥Ü(~D)";
+ Text[ arabic ] = "ÚÑÖ ÈÞíÉ ÅÏÎÇá ÇáäÕ ÇáÊáÞÇÆí ÃËäÇÁ ÇáßÊÇÈÉ Úáì Ôßá ÊáãíÍ";
+ Text[ greek ] = "ÅìöÜíéóç ôïõ õðüëïéðïõ ìÝ~ñïõò ôïõ ïíüìáôïò ùò õðüäåéîç êáôÜ ôçí äáêôõëïãñÜöçóç";
+ Text[ korean ] = "±âÀÔÇÏ´Â µ¿¾È Á¦¾ÈÀ¸·Î¼­ ³ª¸ÓÁö À̸§ Ç¥½Ã(~D)";
+ Text[ turkish ] = "Giriþ sýrasýnda adýn tamamýný öneri olarak görüntüle";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 112 , 31 ) ;
+// Pos = MAP_APPFONT ( 80 , 31 ) ;
+ Size = MAP_APPFONT ( 27 , 8 ) ;
+ Text = "~Name" ;
+ Text [ ENGLISH ] = "~Name" ;
+ Text [ norwegian ] = "~Navn" ;
+ Text [ italian ] = "~Nome" ;
+ Text [ portuguese_brazilian ] = "~Nome" ;
+ Text [ portuguese ] = "~Nome" ;
+ Text [ finnish ] = "~Nimi" ;
+ Text [ danish ] = "Navn" ;
+ Text [ french ] = "~Nom" ;
+ Text [ swedish ] = "~Namn" ;
+ Text [ dutch ] = "~Naam" ;
+ Text [ spanish ] = "N~ombre" ;
+ Text [ english_us ] = "~Name" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ russian ] = "Àâòîòåêñò";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "€–Ú–¼(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ turkish ] = "Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_NAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 145 , 29 ) ;
+ Size = MAP_APPFONT ( 100 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_SHORTNAME
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 248 , 31 ) ;
+ Size = MAP_APPFONT ( 32 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Kürzel : ~K³rzel */
+ Text = "~Kürzel" ;
+ Text [ ENGLISH ] = "~Shortcut" ;
+ Text [ norwegian ] = "+++~Shortcut" ;
+ Text [ italian ] = "Sigla" ;
+ Text [ portuguese_brazilian ] = "~Atalho" ;
+ Text [ portuguese ] = "~Atalho" ;
+ Text [ finnish ] = "~Pikatoiminto" ;
+ Text [ danish ] = "Genvej" ;
+ Text [ french ] = "~Raccourci" ;
+ Text [ swedish ] = "~Förkortning" ;
+ Text [ dutch ] = "~Afkorting" ;
+ Text [ spanish ] = "~Abrev." ;
+ Text [ english_us ] = "~Shortcut" ;
+ Right = TRUE ;
+ Text[ chinese_simplified ] = "Ëõд(~S)";
+ Text[ russian ] = "Ñîêðàùåíèå";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "¼®°Ä¶¯Ä·°";
+ Text[ chinese_traditional ] = "ÁY¼g(~S)";
+ Text[ arabic ] = "ÇáÇÎÊÕÇÑ";
+ Text[ greek ] = "Óõíôüìåõóç";
+ Text[ korean ] = "¹Ù·Î°¡±â(~S)";
+ Text[ turkish ] = "Kýsaltma";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SHORTNAME
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 286 , 29 ) ;
+ Size = MAP_APPFONT ( 21 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ Control LB_BIB
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 112 , 44 ) ;
+ Size = MAP_APPFONT ( 195 , 78 ) ;
+ TabStop = TRUE ;
+ // Sort = TRUE ;
+ // CurPos = 0 ;
+ String ST_READONLY
+ {
+ Text = "schreibgeschützt" ;
+ Text [ ENGLISH ] = "readonly" ;
+ };
+ };
+ GroupBox GB_GLOSSARY
+ {
+ Pos = MAP_APPFONT ( 106 , 3 ) ;
+ Size = MAP_APPFONT ( 207 , 125 ) ;
+ Text = "AutoText" ;
+ Text [ ENGLISH ] = "AutoText" ;
+ Text [ norwegian ] = "AutoTekst" ;
+ Text [ italian ] = "Testo automatico" ;
+ Text [ portuguese_brazilian ] = "Texto autom tico" ;
+ Text [ portuguese ] = "AutoTexto" ;
+ Text [ finnish ] = "Automaattiteksti" ;
+ Text [ danish ] = "AutoTekst" ;
+ Text [ french ] = "AutoTexte" ;
+ Text [ swedish ] = "AutoText" ;
+ Text [ dutch ] = "AutoTekst" ;
+ Text [ spanish ] = "AutoTexto" ;
+ Text [ english_us ] = "AutoText" ;
+ Text[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯";
+ Text[ russian ] = "Àâòîòåêñò";
+ Text[ polish ] = "Autotekst";
+ Text[ japanese ] = "“ü—ÍŽx‰‡";
+ Text[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°";
+ Text[ arabic ] = "äÕ ÊáÞÇÆí";
+ Text[ greek ] = "ÁõôïÊåßìåíï";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ®";
+ Text[ turkish ] = "Otomatik metin";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_FILE_REL
+ {
+ Pos = MAP_APPFONT ( 114 , 144 ) ;
+ Size = MAP_APPFONT ( 90 , 12 ) ;
+ Text = "Im ~Dateisystem" ;
+ Text [ ENGLISH ] = "on ~filesystem" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~File system" ;
+ Text [ italian ] = "Al file system" ;
+ Text [ spanish ] = "En el ~sistema de archivos" ;
+ Text [ french ] = "Dans le système de ~fichiers" ;
+ Text [ dutch ] = "In b~estandsysteem" ;
+ Text [ swedish ] = "I ~filsystem" ;
+ Text [ danish ] = "i ~filsystemet" ;
+ Text [ portuguese_brazilian ] = "Im ~Dateisystem" ;
+ Text [ portuguese ] = "~Sistema do ficheiro" ;
+ Text[ chinese_simplified ] = "ÔÚÎļþϵͳÄÚ(~F)";
+ Text[ russian ] = "Â ñèñòåìå ôàéëîâ";
+ Text[ polish ] = "W systemie plików";
+ Text[ japanese ] = "̧²Ù ¼½ÃÑ‚É(~F)";
+ Text[ chinese_traditional ] = "Àɮרt²Î(~F)";
+ Text[ arabic ] = "Ýí äÙÇã ÇáãáÝ";
+ Text[ greek ] = "óôï óýóôçìá áñ÷åßùí";
+ Text[ korean ] = "ÆÄÀÏ ½Ã½ºÅÛ(~F)";
+ Text[ turkish ] = "Dosya sistemi";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_NET_REL
+ {
+ Pos = MAP_APPFONT ( 209 , 144 ) ;
+ Size = MAP_APPFONT ( 90 , 12 ) ;
+ Text = "Im ~Internet" ;
+ Text [ ENGLISH ] = "on int~ernet" ;
+ Text [ english_us ] = "Inte~rnet" ;
+ Text [ italian ] = "In ~Internet" ;
+ Text [ spanish ] = "En I~nternet" ;
+ Text [ french ] = "Sur l'~Internet" ;
+ Text [ dutch ] = "In Interne~t" ;
+ Text [ swedish ] = "På ~Internet" ;
+ Text [ danish ] = "på ~Internettet" ;
+ Text [ portuguese_brazilian ] = "Im ~Internet" ;
+ Text [ portuguese ] = "~Internet" ;
+ Text[ chinese_simplified ] = "ÔÚ¹ú¼Ê»¥ÁªÍøÄÚ(~R)";
+ Text[ russian ] = "Â Èíòåðíåòå";
+ Text[ polish ] = "W Int~ernecie";
+ Text[ japanese ] = "²ÝÀ°È¯Ä(~R)";
+ Text[ chinese_traditional ] = "Inte~rnet";
+ Text[ arabic ] = "Ýí ÇáÅäÊÑäÊ";
+ Text[ greek ] = "Óôï Internet";
+ Text[ korean ] = "ÀÎÅͳÝ(~R)";
+ Text[ turkish ] = "Internet";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_RELATIVE
+ {
+ Pos = MAP_APPFONT ( 106 , 134 ) ;
+ Size = MAP_APPFONT ( 207 , 24 ) ;
+ Text= "Verknüpfungen relativ speichern";
+ Text[ italian ] = "Salvare i collegamenti in modo relativo";
+ Text[ portuguese_brazilian ] = "Verknüpfungen relativ speichern";
+ Text[ portuguese ] = "Guardar ligações relacionadas com";
+ Text[ danish ] = "Gem kæderne relativt";
+ Text[ french ] = "Enregistrement relatif des liens";
+ Text[ swedish ] = "Spara länkar relativt";
+ Text[ dutch ] = "Koppelingen relatief opslaan";
+ Text[ spanish ] = "Guardar vínculos relativamente";
+ Text[ english_us ] = "Save links relative to";
+ Text[ chinese_simplified ] = "´æÅÌÏà¶ÔµÄÁ´½Ó";
+ Text = "Verknüpfungen relativ speichern" ;
+ Text[ chinese_traditional ] = "Àx¦s¬Û¹ïªº±¶®|";
+ Text[ russian ] = "Ñîõðàíèòü ññûëêè îòíîñ.";
+ Text[ greek ] = "Ó÷åôéêÞ áðïèÞêåõóç óõíäÝóåùí";
+ Text[ polish ] = "Zapisz ³¹cza wzglêdnie";
+ Text[ japanese ] = "Øݸ‚̊ÎÛ‚ð•Û‘¶";
+ Text[ korean ] = "¿¡°üÇÑ ¿¬°á ÀúÀå";
+ Text[ arabic ] = "ÍÝÙ ÇáÇÑÊÈÇØÇÊ ÍÝÙÇð äÓÈíÇð";
+ Text[ turkish ] = "Baðlantýlarý göreceli kaydet";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton PB_INSERT
+ {
+ Pos = MAP_APPFONT ( 319 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Einfügen : ~Einf³gen */
+ Text = "~Einfügen" ;
+ Text [ ENGLISH ] = "~Insert" ;
+ Text [ norwegian ] = "~Insert" ;
+ Text [ italian ] = "~Inserisci" ;
+ Text [ portuguese_brazilian ] = "~Inserir" ;
+ Text [ portuguese ] = "~Inserir" ;
+ Text [ finnish ] = "~Lisää" ;
+ Text [ danish ] = "~Indsæt" ;
+ Text [ french ] = "~Insérer" ;
+ Text [ swedish ] = "Infog~a" ;
+ Text [ dutch ] = "~Invoegen" ;
+ Text [ spanish ] = "~Insertar" ;
+ Text [ english_us ] = "~Insert" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Fügt den aktuellen Textblock ein und schließt das Dialogfeld : F³gt den aktuellen Textblock ein und schlie˜t das Dialogfeld */
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü(~I)";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü(~I)";
+ Text[ chinese_simplified ] = "²åÈë(~I)";
+ Text[ chinese_traditional ] = "´¡¤J(~I)";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ(~I)";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ CancelButton PB_CLOSE
+ {
+ Pos = MAP_APPFONT ( 319 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Schließen : ~Schlie˜en */
+ Text = "~Schließen" ;
+ Text [ ENGLISH ] = "~Close" ;
+ Text [ norwegian ] = "~Lukk" ;
+ Text [ italian ] = "~Chiudi" ;
+ Text [ portuguese_brazilian ] = "~Fechar" ;
+ Text [ portuguese ] = "~Fechar" ;
+ Text [ finnish ] = "~Sulje" ;
+ Text [ danish ] = "~Luk" ;
+ Text [ french ] = "~Fermer" ;
+ Text [ swedish ] = "~Stäng" ;
+ Text [ dutch ] = "~Sluiten" ;
+ Text [ spanish ] = "~Cerrar" ;
+ Text [ english_us ] = "~Close" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "¹Ø±Õ(~C)";
+ Text[ russian ] = "Çàêðûòü";
+ Text[ polish ] = "Zamknij";
+ Text[ japanese ] = "•Â‚¶‚é(~C)";
+ Text[ chinese_traditional ] = "Ãö³¬(~C)";
+ Text[ arabic ] = "ÅÛáÇÞ";
+ Text[ greek ] = "Êëåßóéìï";
+ Text[ korean ] = "´Ý±â(~C)";
+ Text[ turkish ] = "Kapat";
+ Text[ language_user1 ] = " ";
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 319 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+ MenuButton PB_EDIT
+ {
+ Pos = MAP_APPFONT ( 319 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "AutoTe~xt" ;
+ Text [ ENGLISH ] = "AutoTe~xt" ;
+ Text [ norwegian ] = "AutoTekst" ;
+ Text [ italian ] = "Testo auto." ;
+ Text [ portuguese_brazilian ] = "Texto autom tico" ;
+ Text [ portuguese ] = "AutoTe~xto" ;
+ Text [ finnish ] = "Automaattiteksti" ;
+ Text [ danish ] = "AutoTekst" ;
+ Text [ french ] = "~AutoTexte" ;
+ Text [ swedish ] = "AutoTe~xt" ;
+ Text [ dutch ] = "~AutoTekst" ;
+ Text [ spanish ] = "AutoTe~xto" ;
+ Text [ english_us ] = "AutoTe~xt" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯(~X)";
+ Text[ russian ] = "Àâòîòåêñò";
+ Text[ polish ] = "Autote~kst";
+ Text[ japanese ] = "“ü—ÍŽx‰‡(~X)";
+ Text[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°(~X)";
+ Text[ arabic ] = "äÕ ÊáÞÇÆí";
+ Text[ greek ] = "Áõôï~Êåßìåíï";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ®(~X)";
+ Text[ turkish ] = "Otomatik metin";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_BIB
+ {
+ Pos = MAP_APPFONT ( 319 , 77 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Bereiche..." ;
+ Text [ ENGLISH ] = "~Groups..." ;
+ Text [ norwegian ] = "~Grupper..." ;
+ Text [ italian ] = "Categorie..." ;
+ Text [ portuguese_brazilian ] = "~Grupos..." ;
+ Text [ portuguese ] = "~Categorias..." ;
+ Text [ finnish ] = "~Ryhmät..." ;
+ Text [ danish ] = "Områder..." ;
+ Text [ french ] = "Caté~gories..." ;
+ Text [ swedish ] = "~Områden..." ;
+ Text [ dutch ] = "~Bereiken..." ;
+ Text [ spanish ] = "~Areas..." ;
+ Text [ english_us ] = "C~ategories..." ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "·ÖÀà(~A)...";
+ Text[ russian ] = "Êàòåãîðèè...";
+ Text[ polish ] = "Obszary...";
+ Text[ japanese ] = "”͈Í(~A)...";
+ Text[ chinese_traditional ] = "°Ï°ì(~A)...";
+ Text[ arabic ] = "ÝÆÇÊ...";
+ Text[ greek ] = "Êáôçãïñßåò...";
+ Text[ korean ] = "ºÐ·ùÇ׸ñ(~A)...";
+ Text[ turkish ] = "Bölümler...";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton PB_PATH
+ {
+ Pos = MAP_APPFONT ( 319 , 94 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Pfad..." ;
+ Text [ ENGLISH ] = "~Path..." ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~Atalho..." ;
+ Text [ english_us ] = "~Path..." ;
+ Text [ portuguese_brazilian ] = "~Pfad..." ;
+ Text [ swedish ] = "Sök~väg..." ;
+ Text [ danish ] = "Sti..." ;
+ Text [ italian ] = "~Percorso..." ;
+ Text [ spanish ] = "~Ruta..." ;
+ Text [ french ] = "~Chemin..." ;
+ Text [ dutch ] = "~Pad..." ;
+ Text[ chinese_simplified ] = "·¾¶(~P)...";
+ Text[ russian ] = "Ïóòü...";
+ Text[ polish ] = "Œcie¿ka...";
+ Text[ japanese ] = "Êß½(~P)...";
+ Text[ chinese_traditional ] = "¸ô®|(~P)...";
+ Text[ arabic ] = "ÇáãÓÇÑ...";
+ Text[ greek ] = "ÄéáäñïìÞ...";
+ Text[ korean ] = "°æ·Î(~P)...";
+ Text[ turkish ] = "Veri yolu...";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_READONLY_PATH
+ {
+ Text = "Für die Verzeichnisse für 'AutoText' sind sind keine Schreibrechte vorhanden. Möchten Sie den Pfaddialog aufrufen?" ;
+ Text [ ENGLISH ] = "The directories of 'AutoText' don't have write access. Do you want to call the path settings dialog?" ;
+ };
+ Menu MNU_EDIT
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = FN_GL_DEFINE ;
+ HelpID = HID_MD_GLOS_DEFINE ;
+ Text = "~Neu" ;
+ Text [ ENGLISH ] = "~New" ;
+ Text [ norwegian ] = "~New" ;
+ Text [ italian ] = "~Nuovo" ;
+ Text [ portuguese_brazilian ] = "~Novo" ;
+ Text [ portuguese ] = "~Novo" ;
+ Text [ finnish ] = "~Uusi" ;
+ Text [ danish ] = "~Ny(t)" ;
+ Text [ french ] = "~Nouveau" ;
+ Text [ swedish ] = "~Nytt" ;
+ Text [ dutch ] = "N~ieuw" ;
+ Text [ spanish ] = "~Nuevo" ;
+ Text [ english_us ] = "~New" ;
+ Text[ chinese_simplified ] = "н¨(~N)";
+ Text[ russian ] = "Ñîçä~àòü";
+ Text[ polish ] = "~Nowy";
+ Text[ japanese ] = "V‹Kì¬(~N)";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(~N)";
+ Text[ arabic ] = "~ÌÏíÏ";
+ Text[ greek ] = "~Äçìéïõñãßá";
+ Text[ korean ] = "»õ·Î(~N)";
+ Text[ turkish ] = "~Yeni";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_DEFINE_TEXT ;
+ HelpID = HID_MD_GLOS_DEFINE_TEXT ;
+ Text = "Neu (nur ~Text)" ;
+ Text [ ENGLISH ] = "New (only ~text)" ;
+ Text [ english_us ] = "New (text only)" ;
+ Text [ portuguese_brazilian ] = "Neu (nur ~Text)" ;
+ Text [ swedish ] = "Ny (endast ~text)" ;
+ Text [ danish ] = "Ny (kun tekst)" ;
+ Text [ italian ] = "Nuovo (solo ~testo)" ;
+ Text [ spanish ] = "Nuevo (solo ~texto)" ;
+ Text [ french ] = "Nouveau (t~exte seulement)" ;
+ Text [ dutch ] = "Nieuw (alleen ~tekst)" ;
+ Text [ portuguese ] = "Novo (só ~texto)" ;
+ Text[ chinese_simplified ] = "н¨(Ö»ÊÇÎı¾)(~T)";
+ Text[ russian ] = "Ñîçäàòü (òîëüêî òåêñò)";
+ Text[ polish ] = "Nowy (tylko tekst)";
+ Text[ japanese ] = "V‹Kì¬(÷½Ä‚Ì‚Ý)";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(¯Â¤å¦r)(~T)";
+ Text[ arabic ] = "ÌÏíÏ (ÇáäÕ ÝÞØ)";
+ Text[ greek ] = "Äçìéïõñãßá (ìüíï ~êåßìåíï)";
+ Text[ korean ] = "»õ·Î (ÅؽºÆ® ¸¸)";
+ Text[ turkish ] = "Yeni (yalnýzca metin)";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_COPY_TO_CLIPBOARD;
+ HelpID = HID_MD_COPY_TO_CLIPBOARD;
+ Text = "~Kopieren";
+ Text [English] = "Copy";
+ Text[ english_us ] = "~Copy";
+ Text[ portuguese ] = "~Copiar";
+ Text[ russian ] = "Êîïèðîâàòü";
+ Text[ greek ] = "Áíôé~ãñáöÞ";
+ Text[ dutch ] = "~Kopiëren";
+ Text[ french ] = "~Copier";
+ Text[ spanish ] = "~Copiar";
+ Text[ italian ] = "~Copia";
+ Text[ danish ] = "K~opier";
+ Text[ swedish ] = "Kopiera";
+ Text[ polish ] = "Kopiuj";
+ Text[ portuguese_brazilian ] = "Copy";
+ Text[ japanese ] = "ºËß°(~C)";
+ Text[ korean ] = "º¹»ç(~C)";
+ Text[ chinese_simplified ] = "¸´ÖÆ(~C)";
+ Text[ chinese_traditional ] = "Î`»s(~C)";
+ Text[ arabic ] = "äÓÎ";
+ Text[ turkish ] = "Kopyala";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_REPLACE ;
+ HelpID = HID_MD_GLOS_REPLACE ;
+ Text = "~Ersetzen" ;
+ Text [ ENGLISH ] = "~Replace" ;
+ Text [ norwegian ] = "~Erstatte" ;
+ Text [ italian ] = "~Sostituisci" ;
+ Text [ portuguese_brazilian ] = "~Substituir" ;
+ Text [ portuguese ] = "~Substituir" ;
+ Text [ finnish ] = "~Korvaa" ;
+ Text [ danish ] = "~Erstat" ;
+ Text [ french ] = "R~emplacer" ;
+ Text [ swedish ] = "~Ersätta" ;
+ Text [ dutch ] = "V~ervangen" ;
+ Text [ spanish ] = "Ree~mplazar" ;
+ Text [ english_us ] = "Replace" ;
+ Text[ chinese_simplified ] = "¸üÌæ(~R)";
+ Text[ russian ] = "Çàìåíèòü";
+ Text[ polish ] = "Zamieñ";
+ Text[ japanese ] = "’uŠ·";
+ Text[ chinese_traditional ] = "¥N´À(~R)";
+ Text[ arabic ] = "ÇÓÊÈÏÇá";
+ Text[ greek ] = "Á~íôéêáôÜóôáóç";
+ Text[ korean ] = "¹Ù²Ù±â";
+ Text[ turkish ] = "Deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_RENAME ;
+ HelpID = HID_MD_GLOS_RENAME ;
+ Text = "~Umbenennen..." ;
+ Text [ ENGLISH ] = "Ren~ame..." ;
+ Text [ dutch ] = "~Naam wijzigen..." ;
+ Text [ english_us ] = "Rename..." ;
+ Text [ italian ] = "~Rinomina..." ;
+ Text [ spanish ] = "~Cambiar nombre..." ;
+ Text [ french ] = "~Renommer..." ;
+ Text [ swedish ] = "~Byt namn..." ;
+ Text [ danish ] = "Omdøb" ;
+ Text [ portuguese_brazilian ] = "~Umbenennen" ;
+ Text [ portuguese ] = "~Mudar nome..." ;
+ Text[ chinese_simplified ] = "ÖØÃüÃû(~A)...";
+ Text[ russian ] = "Ïåðåèìåíîâàòü...";
+ Text[ polish ] = "Zmieñ nazwê...";
+ Text[ japanese ] = "–¼‘O‚Ì•ÏX...";
+ Text[ chinese_traditional ] = "­«·s©R¦W(~A)...";
+ Text[ arabic ] = "...ÅÚÇÏÉ ÊÓãíÉ";
+ Text[ greek ] = "~Ìåôïíïìáóßá...";
+ Text[ korean ] = "À̸§ ¹Ù²Ù±â...";
+ Text[ turkish ] = "Yeniden adlandýr...";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_DELETE ;
+ HelpID = HID_MD_GLOS_DELETE ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Löschen : ~L÷schen */
+ Text = "~Löschen" ;
+ Text [ ENGLISH ] = "~Delete" ;
+ Text [ norwegian ] = "~Slett" ;
+ Text [ italian ] = "~Elimina" ;
+ Text [ portuguese_brazilian ] = "~Apagar" ;
+ Text [ portuguese ] = "E~liminar" ;
+ Text [ finnish ] = "~Poista" ;
+ Text [ danish ] = "~Slet" ;
+ Text [ french ] = "~Supprimer" ;
+ Text [ swedish ] = "~Radera" ;
+ Text [ dutch ] = "~Verwijderen" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ english_us ] = "~Delete" ;
+ Text[ chinese_simplified ] = "ɾ³ý(~D)";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ(~D)";
+ Text[ chinese_traditional ] = "§R°£(~D)";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "Äéáãñá~öÞ";
+ Text[ korean ] = "»èÁ¦(~D)";
+ Text[ turkish ] = "Sil";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_EDIT ;
+ HelpID = HID_MD_GLOS_EDIT ;
+ Text = "~Bearbeiten" ;
+ Text [ ENGLISH ] = "~Edit" ;
+ Text [ norwegian ] = "~Rediger" ;
+ Text [ italian ] = "~Modifica" ;
+ Text [ portuguese_brazilian ] = "~Editar" ;
+ Text [ portuguese ] = "E~ditar" ;
+ Text [ finnish ] = "~Muokkaa" ;
+ Text [ danish ] = "~Rediger" ;
+ Text [ french ] = "~Edition" ;
+ Text [ swedish ] = "~Redigera" ;
+ Text [ dutch ] = "Be~werken" ;
+ Text [ spanish ] = "~Editar" ;
+ Text [ english_us ] = "~Edit" ;
+ Text[ chinese_simplified ] = "±à¼­(~E)";
+ Text[ russian ] = "~Ïðàâêà";
+ Text[ polish ] = "~Edytuj";
+ Text[ japanese ] = "•ÒWi~‚dj";
+ Text[ chinese_traditional ] = "½s¿è(~E)";
+ Text[ arabic ] = "~ÊÍÑíÑ";
+ Text[ greek ] = "~Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý(~E)";
+ Text[ turkish ] = "Düzenle";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_MACRO ;
+ HelpID = HID_MD_GLOS_MACRO ;
+ Text = "~Makro..." ;
+ Text [ ENGLISH ] = "~Macro..." ;
+ Text [ norwegian ] = "~Macro..." ;
+ Text [ italian ] = "Macro..." ;
+ Text [ portuguese_brazilian ] = "~Macro..." ;
+ Text [ portuguese ] = "~Macro..." ;
+ Text [ finnish ] = "~Makro..." ;
+ Text [ danish ] = "~Makro..." ;
+ Text [ french ] = "~Macro..." ;
+ Text [ swedish ] = "~Makro..." ;
+ Text [ dutch ] = "~Macro..." ;
+ Text [ spanish ] = "~Macro..." ;
+ Text [ english_us ] = "~Macro..." ;
+ Text[ chinese_simplified ] = "ºê(~M)...";
+ Text[ russian ] = "Ìàêðîñ...";
+ Text[ polish ] = "Makro...";
+ Text[ japanese ] = "ϸÛ(~M)...";
+ Text[ chinese_traditional ] = "¥¨¶°(~M)...";
+ Text[ arabic ] = "ÇáãÇßÑæ...";
+ Text[ greek ] = "~ÌáêñïåíôïëÞ...";
+ Text[ korean ] = "¸ÅÅ©·Î(~M)...";
+ Text[ turkish ] = "Makro...";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = FN_GL_IMPORT;
+ HelpID = HID_MD_GLOS_IMPORT ;
+ Text = "~Importieren..." ;
+ Text [ ENGLISH ] = "~Import..." ;
+ Text[ english_us ] = "~Import...";
+ Text[ portuguese ] = "~Importar...";
+ Text[ russian ] = "~Èìïîðò...";
+ Text[ greek ] = "Å~éóáãùãÞ...";
+ Text[ dutch ] = "~Importeren...";
+ Text[ french ] = "~Importer...";
+ Text[ spanish ] = "~Importar...";
+ Text[ italian ] = "~Importa...";
+ Text[ danish ] = "~Importer...";
+ Text[ swedish ] = "~Importera...";
+ Text[ polish ] = "~Importuj...";
+ Text[ portuguese_brazilian ] = "~Import...";
+ Text[ japanese ] = "²ÝÎß°Ä‚·‚é(~I)...";
+ Text[ korean ] = "°¡Á®¿À±â(~I)...";
+ Text[ chinese_simplified ] = "ÊäÈë(~I)...";
+ Text[ chinese_traditional ] = "¿é¤J(~I)...";
+ Text[ arabic ] = "ÇÓÊíÑÇÏ...";
+ Text[ turkish ] = "~Ýçe aktar...";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯";
+ Text[ russian ] = "Àâòîòåêñò";
+ Text[ polish ] = "Autotekst";
+ Text[ japanese ] = "“ü—ÍŽx‰‡";
+ Text[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°";
+ Text[ arabic ] = "äÕ ÊáÞÇÆí";
+ Text[ greek ] = "ÁõôïÊåßìåíï";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ®";
+ Text[ turkish ] = "Otomatik metin";
+ Text[ language_user1 ] = " ";
+};
+InfoBox MSG_DOUBLE_SHORTNAME
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Kürzel wird bereits verwendet. Bitte einen anderen Namen vergeben! : K³rzel wird bereits verwendet. Bitte einen anderen Namen vergeben! */
+ MESSAGE = "Kürzel wird bereits verwendet. Bitte einen anderen Namen vergeben!" ;
+ MESSAGE [ ENGLISH ] = "Short name already in use. Please choose annother name!" ;
+ MESSAGE [ norwegian ] = "Kort navn er i bruk. Vennligst velg et annet navn!" ;
+ MESSAGE [ italian ] = "La sigla è già in uso. Scegliere un altro nome." ;
+ MESSAGE [ portuguese_brazilian ] = "AbreviaçÆo j  em uso. Por favor escolha outro nome!" ;
+ MESSAGE [ portuguese ] = "Abreviatura já existe. Por favor escolha outro nome!" ;
+ MESSAGE [ finnish ] = "Lyhenne on jo käytössä. Valitse toinen nimi!" ;
+ MESSAGE [ danish ] = "Denne genvej eksisterer allerede. Vælg venligst et andet navn!" ;
+ MESSAGE [ french ] = "Abréviation déjà utilisée. Choisissez un autre nom !" ;
+ MESSAGE [ swedish ] = "Kortkommandonamnet används redan. Välj ett annat namn!" ;
+ MESSAGE [ dutch ] = "Deze afkorting bestaat al. Probeer een andere naam!" ;
+ MESSAGE [ spanish ] = "Esta abreviatura ya está en uso. ¡Elija otro nombre por favor!" ;
+ MESSAGE [ english_us ] = "Shortcut name already exists. Please choose another name." ;
+ MESSAGE[ chinese_simplified ] = "ÒѾ­´æÔÚÕâ¸öËõд¡£ÇëÄúÊäÈëÒ»¸öÆäËûËõдÃû³Æ£¡";
+ MESSAGE[ russian ] = "Ýòî ñîêðàùåíèå óæå ñóùåñòâóåò. Ïîæàëóéñòà, âûáåðèòå äðóãîå èìÿ!";
+ MESSAGE[ polish ] = "Te inicja³y ju¿ zosta³y u¿yte. Proszê podaæ inn¹ nazwê!";
+ MESSAGE[ japanese ] = "‚±‚̼®°Ä¶¯Ä·°‚Í‚·‚Å‚ÉŽg—p‚³‚ê‚Ä‚¢‚Ü‚·B•Ê‚Ì·°‚ð‘I‘ð‚µ‚Ä‰º‚³‚¢B";
+ MESSAGE[ chinese_traditional ] = "¤w¸g¨Ï¥Î¤F³o­ÓÁY¼g¡C½Ð±z¿é¤J¤@­Ó¤£¦Pªº¦WºÙ¡T";
+ MESSAGE[ arabic ] = "åÐÇ ÇáÇÎÊÕÇÑ ãæÌæÏ ÈÇáÝÚá. ÇáÑÌÇÁ ÇÓÊÎÏÇã ÇÓã ÌÏíÏ!";
+ MESSAGE[ greek ] = "Ôï üíïìá óõíôüìåõóçò õðÜñ÷åé Þäç. Ðáñáêáëþ äþóôå Ýíá Üëëï üíïìá!";
+ MESSAGE[ korean ] = "¹Ù·Î°¡±â À̸§ÀÌ ÀÌ¹Ì Á¸ÀçÇÕ´Ï´Ù. ´Ù¸¥ À̸§À» ¼±ÅÃÇØ ÁֽʽÿÀ";
+ MESSAGE[ turkish ] = "Bu kýsaltma mevcut durumda. Baþka bir ad seçin!";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox MSG_QUERY_DELETE
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ /* ### ACHTUNG: Neuer Text in Resource? Soll der AutoText gelöscht werden? : Soll der AutoText gel÷scht werden? */
+ MESSAGE = "Soll der AutoText gelöscht werden?" ;
+ MESSAGE [ English ] = "Delete AutoText?" ;
+ MESSAGE [ norwegian ] = "Slette AutoTekst?" ;
+ MESSAGE [ italian ] = "Elimina inserimento testo automatico?." ;
+ MESSAGE [ portuguese_brazilian ] = "Apagar TextoAutom tico?" ;
+ MESSAGE [ portuguese ] = "Deseja apagar o AutoTexto?" ;
+ MESSAGE [ finnish ] = "Poistetaanko automaattiteksti?" ;
+ MESSAGE [ danish ] = "Skal denne AutoTekst slettes?" ;
+ MESSAGE [ french ] = "Supprimer l'AutoTexte ?" ;
+ MESSAGE [ swedish ] = "Skall AutoText raderas?" ;
+ MESSAGE [ dutch ] = "AutoTekst wissen?" ;
+ MESSAGE [ spanish ] = "¿Desea eliminar el AutoTexto?" ;
+ MESSAGE [ english_us ] = "Delete AutoText?" ;
+ MESSAGE[ chinese_simplified ] = "ÄúҪɾ³ý×Ô¶¯Í¼Îļ¯?";
+ MESSAGE[ russian ] = "Óäàëèòü àâòîòåêñò?";
+ MESSAGE[ polish ] = "Usun¹æ autotekst?";
+ MESSAGE[ japanese ] = "“ü—ÍŽx‰‡‚ð휂µ‚Ü‚·‚©H";
+ MESSAGE[ chinese_traditional ] = "­n§R°£¦Û°Ê¹Ï¤å¶°?";
+ MESSAGE[ arabic ] = "åá ÊÑíÏ ÍÐÝ ÇáäÕ ÇáÊáÞÇÆí¿";
+ MESSAGE[ greek ] = "ÄéáãñáöÞ ÁõôïÊåéìÝíïõ;";
+ MESSAGE[ korean ] = "ÀÚµ¿ ÅؽºÆ®¸¦ »èÁ¦ ÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "Otomatik metin silinsin mi?";
+ MESSAGE[ language_user1 ] = " ";
+};
+String STR_QUERY_DELETE_GROUP1
+{
+ TEXT = "Soll der Bereich " ;
+ TEXT [ English ] = "Delete Group " ;
+ TEXT [ english_us ] = "Delete the category " ;
+ Text [ dutch ] = "Wilt u het bereik " ;
+ Text [ italian ] = "Cancellare la categoria " ;
+ Text [ spanish ] = "¿Desea usted eliminar " ;
+ Text [ french ] = "Supprimer la catégorie " ;
+ Text [ swedish ] = "Ska kategorin " ;
+ Text [ danish ] = "Skal området " ;
+ Text [ portuguese ] = "Deseja eliminar " ;
+ Text [ portuguese_brazilian ] = "Soll der Bereich " ;
+ Text[ chinese_simplified ] = "Ҫɾ³ýÕâ¸öÇøÓò ";
+ Text[ russian ] = "Óäàëèòü ";
+ Text[ polish ] = "Czy ten obszar ";
+ Text[ japanese ] = "‚±‚Ì•ª—Þ‚ð휂µ‚Ü‚·‚©H ";
+ Text[ chinese_traditional ] = "­n§R°£³o­Ó°Ï°ì ";
+ Text[ arabic ] = "åá ÊÑíÏ ÍÐÝ ÇáÝÆÉ ";
+ Text[ greek ] = "ÈÝëåôå ç êáôçãïñßá ";
+ Text[ korean ] = "ºÐ·ùÇ׸ñÀ» »èÁ¦ÇϽðڽÀ´Ï±î? ";
+ Text[ turkish ] = "Bölüm ";
+ Text[ language_user1 ] = " ";
+};
+String STR_QUERY_DELETE_GROUP2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? gelöscht werden? : gel÷scht werden? */
+ TEXT = " gelöscht werden?" ;
+ TEXT [ English ] = "?" ;
+ TEXT [ english_us ] = "?" ;
+ Text [ dutch ] = "wissen?" ;
+ Text [ italian ] = "?" ;
+ Text [ spanish ] = "la categoría?" ;
+ Text [ french ] = "?" ;
+ Text [ swedish ] = "raderas?" ;
+ Text [ danish ] = "slettes?" ;
+ Text [ portuguese ] = "a secção?" ;
+ Text [ portuguese_brazilian ] = "gelöscht werden?" ;
+ Text[ chinese_simplified ] = "£¿";
+ Text[ russian ] = "îáëàñòü?";
+ Text[ polish ] = "ma zostaæ usuniêty?";
+ Text[ japanese ] = "휂µ‚Ü‚·‚©H";
+ Text[ chinese_traditional ] = "?";
+ Text[ arabic ] = "¿";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "íá äéáãñáöåß;";
+ Text[ korean ] = "?";
+ Text[ turkish ] = "silinsin mi?";
+};
+String STR_GLOSSARY
+{
+ Text = "Textbaustein : " ;
+ Text [ English ] = "Textblock : " ;
+ Text [ norwegian ] = "Textblock : " ;
+ Text [ italian ] = "Modulo di testo: " ;
+ Text [ portuguese_brazilian ] = "Textblock : " ;
+ Text [ portuguese ] = "Módulo de texto : " ;
+ Text [ french ] = "Module de texte : " ;
+ Text [ dutch ] = "Tekstbouwsteen : " ;
+ Text [ spanish ] = "Módulo de texto : " ;
+ Text [ danish ] = "Tekstelement : " ;
+ Text [ swedish ] = "Textblock : " ;
+ Text [ finnish ] = "Textblock : " ;
+ Text [ english_us ] = "Text block : " ;
+ Text[ chinese_simplified ] = "´ÊÌõ: ";
+ Text[ russian ] = "Òåêñòîâûé áëîê : ";
+ Text[ polish ] = "Blok tekstu : ";
+ Text[ japanese ] = "÷½ÄÌÞÛ¯¸: ";
+ Text[ chinese_traditional ] = "¶µ¥Ø¡G ";
+ Text[ arabic ] = "ÚäÕÑ ÇáäÕ : ";
+ Text[ greek ] = "ÔìÞìá êåéìÝíïõ : ";
+ Text[ korean ] = "ÅؽºÆ® ºí·Ï : ";
+ Text[ turkish ] = "Metin öðesi: ";
+ Text[ language_user1 ] = " ";
+};
+ModalDialog DLG_RENAME_GLOS
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 287 , 47 ) ;
+ Text = "Textbaustein umbenennen" ;
+ Text [ ENGLISH ] = "Rename textblock" ;
+ Moveable = TRUE ;
+ HelpID = HID_RENAME_GLOSSARY ;
+ OKButton BT_OKNEW
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 231 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ DefButton = TRUE ;
+ TabStop = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 231 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_ON
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 30 , 8 ) ;
+ // ### ACHTUNG: Neuer Text in Resource? Na~me : Name
+ Text = "Na~me" ;
+ Text [ ENGLISH ] = "Name" ;
+ Text [ dutch ] = "Naa~m" ;
+ Text [ english_us ] = "Na~me" ;
+ Text [ italian ] = "Nome" ;
+ Text [ spanish ] = "N~ombre" ;
+ Text [ french ] = "~Nom" ;
+ Text [ swedish ] = "Na~mn" ;
+ Text [ danish ] = "Navn" ;
+ Text [ portuguese_brazilian ] = "Na~me" ;
+ Text [ portuguese ] = "No~me" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~M)";
+ Text[ russian ] = "Àâòîòåêñò";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~M)";
+ Text[ chinese_traditional ] = "¦WºÙ(~M)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~M)";
+ Text[ turkish ] = "Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_ON
+ {
+ ReadOnly = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 44 , 12 ) ;
+ Size = MAP_APPFONT ( 118 , 12 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_OS
+ {
+ Pos = MAP_APPFONT ( 165 , 14 ) ;
+ Size = MAP_APPFONT ( 34 , 8 ) ;
+ // ### ACHTUNG: Neuer Text in Resource? Kü~rzel : Kürzel
+ /* ### ACHTUNG: Neuer Text in Resource? Kü~rzel : K³~rzel */
+ Text = "Kü~rzel" ;
+ Text [ ENGLISH ] = "Shortcut" ;
+ Text [ english_us ] = "Short~cut" ;
+ Text [ italian ] = "Sigla" ;
+ Text [ spanish ] = "~Abrev." ;
+ Text [ french ] = "Ab~r." ;
+ Text [ dutch ] = "Afko~rting" ;
+ Text [ swedish ] = "~Förkortning" ;
+ Text [ danish ] = "Genvej" ;
+ Text [ portuguese_brazilian ] = "Kü~rzel" ;
+ Text [ portuguese ] = "Iniciais" ;
+ Text[ chinese_simplified ] = "Ëõд(~C)";
+ Text[ russian ] = "Ñîêðàùåíèå";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "¼®°Ä¶¯Ä·°";
+ Text[ chinese_traditional ] = "ÁY¼g(~C)";
+ Text[ arabic ] = "ÇáÇÎÊÕÇÑ";
+ Text[ greek ] = "Óõíôüìåõóç";
+ Text[ korean ] = "¹Ù·Î°¡±â(~C)";
+ Text[ turkish ] = "Kýsaltma";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_OS
+ {
+ ReadOnly = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 200 , 12 ) ;
+ Size = MAP_APPFONT ( 21 , 12 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_NN
+ {
+ Pos = MAP_APPFONT ( 12 , 29 ) ;
+ Size = MAP_APPFONT ( 30 , 8 ) ;
+ Text = "~Neu" ;
+ Text [ ENGLISH ] = "~New" ;
+ Text [ dutch ] = "~Nieuw" ;
+ Text [ english_us ] = "~New" ;
+ Text [ italian ] = "~Nuovo" ;
+ Text [ spanish ] = "~Nuevo" ;
+ Text [ french ] = "Nou~veau" ;
+ Text [ swedish ] = "~Nytt" ;
+ Text [ danish ] = "Ny" ;
+ Text [ portuguese ] = "~Novo" ;
+ Text [ portuguese_brazilian ] = "~Neu" ;
+ Text[ chinese_simplified ] = "н¨(~N)";
+ Text[ russian ] = "Ñîçä~àòü";
+ Text[ polish ] = "Nowy";
+ Text[ japanese ] = "V‹Kì¬(~N)";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ(~N)";
+ Text[ arabic ] = "ÌÏíÏ";
+ Text[ greek ] = "Äçìéïõñãßá";
+ Text[ korean ] = "»õ·Î(~N)";
+ Text[ turkish ] = "Yeni";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_NN
+ {
+ TabStop = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 44 , 27 ) ;
+ Size = MAP_APPFONT ( 118 , 12 ) ;
+ Left = TRUE ;
+ };
+ FixedText FT_NS
+ {
+ Pos = MAP_APPFONT ( 165 , 29 ) ;
+ Size = MAP_APPFONT ( 34 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Kürzel : ~K³rzel */
+ Text = "~Kürzel" ;
+ Text [ ENGLISH ] = "~Shortcut" ;
+ Text [ english_us ] = "~Shortcut" ;
+ Text [ italian ] = "Sigla" ;
+ Text [ spanish ] = "~Abreviatura" ;
+ Text [ french ] = "~Abr." ;
+ Text [ dutch ] = "~Afkorting" ;
+ Text [ swedish ] = "~Ersätt" ;
+ Text [ danish ] = "Erstat" ;
+ Text [ portuguese_brazilian ] = "~Kürzel" ;
+ Text [ portuguese ] = "S~ubstituir" ;
+ Text[ chinese_simplified ] = "Á´½Ó(~S)";
+ Text[ russian ] = "Ñîêðàùåíèå";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "¼®°Ä¶¯Ä·°";
+ Text[ chinese_traditional ] = "±¶®|(~S)";
+ Text[ arabic ] = "ÇáÇÎÊÕÇÑ";
+ Text[ greek ] = "Óõíôüìåõóç";
+ Text[ korean ] = "¹Ù·Î°¡±â(~S)";
+ Text[ turkish ] = "Kýsaltma";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_NS
+ {
+ TabStop = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 200 , 27 ) ;
+ Size = MAP_APPFONT ( 21 , 12 ) ;
+ Left = TRUE ;
+ };
+ GroupBox GB_NN
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 219 , 41 ) ;
+ };
+ Text [ dutch ] = "Naam tekstbouwsteen wijzigen" ;
+ Text [ english_us ] = "Rename Text Block" ;
+ Text [ italian ] = "Rinomina modulo di testo" ;
+ Text [ spanish ] = "Cambiar nombre al módulo de texto" ;
+ Text [ french ] = "Renommer le module de texte" ;
+ Text [ swedish ] = "Byt namn på textblock" ;
+ Text [ danish ] = "Omdøb tekstelement" ;
+ Text [ portuguese_brazilian ] = "Textbaustein umbenennen" ;
+ Text [ portuguese ] = "Mudar nome do módulo de texto" ;
+ Text[ chinese_simplified ] = "ÖØÃüÃû´ÊÌõ";
+ Text[ russian ] = "Ïåðåèìåíîâàòü àâòîòåêñò";
+ Text[ polish ] = "Zmieñ nazwê bloków tekstu";
+ Text[ japanese ] = "÷½ÄÌÞÛ¯¸‚Ì–¼‘O‚Ì•ÏX";
+ Text[ chinese_traditional ] = "­«·s©R¦W¶µ¥Ø";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÓãíÉ ÚäÕÑ ÇáäÕ";
+ Text[ greek ] = "Ìåôïíïìáóßá ôìÞìáôïò êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ºí·Ï À̸§ ¹Ù²Ù±â";
+ Text[ turkish ] = "Metin öðesini yeniden adlandýr";
+ Text[ language_user1 ] = " ";
+};
+String STR_SAVE_GLOSSARY
+{
+ Text= "Textbaustein speichern";
+ Text[ italian ] = "Salva modulo di testo";
+ Text[ portuguese_brazilian ] = "Textbaustein speichern";
+ Text[ portuguese ] = "Guardar módulo de texto";
+ Text[ danish ] = "Gem tekstelementer";
+ Text[ french ] = "Enregistrer le module de texte";
+ Text[ swedish ] = "Spara textblock";
+ Text[ dutch ] = "Tekstbouwsteen opslaan";
+ Text[ spanish ] = "Guardar módulo de texto";
+ Text[ english_us ] = "Save Text Block";
+ Text[ chinese_simplified ] = "´æÅÌ´ÊÌõ";
+ Text[ russian ] = "Ñîõðàíèòü òåêñòîâûé áëîê";
+ Text[ polish ] = "Zapisz blok tekstu";
+ Text[ japanese ] = "÷½ÄÌÞÛ¯¸‚Ì•Û‘¶";
+ Text[ chinese_traditional ] = "Àx¦s¶µ¥Ø";
+ Text[ arabic ] = "ÍÝÙ ÚäÕÑ ÇáäÕ";
+ Text [ English ] = "Save textblock" ;
+ Text[ greek ] = "ÁðïèÞêåõóç ôìÞìáôïò êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ºí·Ï ÀúÀå";
+ Text[ turkish ] = "Metin öðesi";
+ Text[ language_user1 ] = " ";
+};
+InfoBox MSG_NO_GLOSSARIES
+{
+ MESSAGE = "Diese Datei enthält keine Textbausteine." ;
+ MESSAGE [ ENGLISH ] = "There are no textblocks in this file." ;
+ MESSAGE[ english_us ] = "There is no AutoText in this file.";
+ MESSAGE[ portuguese ] = "Este ficheiro não contém módulos de texto.";
+ MESSAGE[ russian ] = "Ýòîò ôàéë íå ñîäåðæèò ýëåìåíòîâ òåêñòà.";
+ MESSAGE[ greek ] = "Ôï áñ÷åßï áõôü äåí ðåñéÝ÷åé ôìÞìáôá êåéìÝíïõ.";
+ MESSAGE[ dutch ] = "Dit bestand bevat geen tekstbouwstenen";
+ MESSAGE[ french ] = "Ce fichier ne contient aucun module de texte.";
+ MESSAGE[ spanish ] = "Este archivo no contiene módulos de texto.";
+ MESSAGE[ italian ] = "Questo documento non contiene testi automatici.";
+ MESSAGE[ danish ] = "Denne fil indeholder ingen tekstelementer.";
+ MESSAGE[ swedish ] = "Den här filen innehåller inga textblock.";
+ MESSAGE[ polish ] = "Plik ten nie zawiera ¿adnych bloków tekstu.";
+ MESSAGE[ portuguese_brazilian ] = "There are no textblocks in this file.";
+ MESSAGE[ japanese ] = "‚±‚Ì̧²Ù‚É‚Í÷½ÄÌÞÛ¯¸‚ª‚ ‚è‚Ü‚¹‚ñB";
+ MESSAGE[ korean ] = "ÀÌ ÆÄÀÏ¿¡´Â ÀÚµ¿ ÅؽºÆ®°¡ ¾ø½À´Ï´Ù. .";
+ MESSAGE[ chinese_simplified ] = "Õâ¸öÎļþÄÚ²»°üº¬´ÊÌõ";
+ MESSAGE[ chinese_traditional ] = "³o­ÓÀɮרS¦³¤å¦r¬q";
+ MESSAGE[ arabic ] = "áÇ íÍÊæí åÐÇ ÇáãáÝ Úáì ßÊá äÕíÉ.";
+ MESSAGE[ turkish ] = "Bu dosya metin bileþenleri içermiyor";
+};
diff --git a/sw/source/ui/misc/glshell.cxx b/sw/source/ui/misc/glshell.cxx
new file mode 100644
index 000000000000..0d49ae6f503b
--- /dev/null
+++ b/sw/source/ui/misc/glshell.cxx
@@ -0,0 +1,515 @@
+/*************************************************************************
+ *
+ * $RCSfile: glshell.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:44 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXSIDS_HRC //autogen
+#include <sfx2/sfxsids.hrc>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _GLSHELL_HXX
+#include <glshell.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx> // fuer ::GetGlossaries()
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+
+
+#define SwWebGlosDocShell
+#define SwGlosDocShell
+#ifndef _ITEMDEF_HXX
+#include <itemdef.hxx>
+#endif
+#ifndef _SWSLOTS_HXX
+#include <swslots.hxx>
+#endif
+
+
+SFX_IMPL_INTERFACE( SwGlosDocShell, SwDocShell, SW_RES(0) )
+{
+}
+
+
+SFX_IMPL_INTERFACE( SwWebGlosDocShell, SwWebDocShell, SW_RES(0) )
+{
+}
+
+
+TYPEINIT1( SwGlosDocShell, SwDocShell );
+TYPEINIT1( SwWebGlosDocShell, SwWebDocShell );
+
+
+void lcl_Execute( SwDocShell& rSh, SfxRequest& rReq )
+{
+ if ( rReq.GetSlot() == SID_SAVEDOC )
+ {
+ if( !rSh.HasName() )
+ {
+ rReq.SetReturnValue( SfxBoolItem( 0, rSh.Save() ) );
+ }
+ else
+ {
+ const SfxBoolItem* pRes = ( const SfxBoolItem* )
+ rSh.ExecuteSlot( rReq,
+ rSh.SfxObjectShell::GetInterface() );
+ if( pRes->GetValue() )
+ rSh.GetDoc()->ResetModified();
+ }
+ }
+}
+
+
+void lcl_GetState( SwDocShell& rSh, SfxItemSet& rSet )
+{
+ if( SFX_ITEM_AVAILABLE >= rSet.GetItemState( SID_SAVEDOC, FALSE ))
+ {
+ if( !rSh.GetDoc()->IsModified() )
+ rSet.DisableItem( SID_SAVEDOC );
+ else
+ rSet.Put( SfxStringItem( SID_SAVEDOC, SW_RESSTR(STR_SAVE_GLOSSARY)));
+ }
+}
+
+
+BOOL lcl_Save( SwWrtShell& rSh, const String& rGroupName,
+ const String& rShortNm, const String& rLongNm )
+{
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+ SwTextBlocks * pBlock = ::GetGlossaries()->GetGroupDoc( rGroupName );
+
+ SvxMacro aStart(aEmptyStr, aEmptyStr);
+ SvxMacro aEnd(aEmptyStr, aEmptyStr);
+
+ SwGlossaryHdl* pGlosHdl = rSh.GetView().GetGlosHdl();
+ pGlosHdl->GetMacros( rShortNm, aStart, aEnd, pBlock );
+
+
+
+ USHORT nRet = rSh.SaveGlossaryDoc( *pBlock, rLongNm, rShortNm,
+ pCfg->IsSaveRelFile(), pCfg->IsSaveRelNet(),
+ pBlock->IsOnlyTextBlock( rShortNm ) );
+
+ if(aStart.GetMacName().Len() || aEnd.GetMacName().Len())
+ {
+ SvxMacro* pStart = aStart.GetMacName().Len() ? &aStart : 0;
+ SvxMacro* pEnd = aEnd.GetMacName().Len() ? &aEnd : 0;
+ pGlosHdl->SetMacros( rShortNm, pStart, pEnd, pBlock );
+ }
+
+ rSh.EnterStdMode();
+ if( USHRT_MAX != nRet )
+ rSh.ResetModified();
+ delete pBlock;
+ return nRet != USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwGlosDocShell::SwGlosDocShell()
+ : SwDocShell( SFX_CREATE_MODE_STANDARD )
+{
+ SetHelpId(SW_GLOSDOCSHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwGlosDocShell::~SwGlosDocShell( )
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwGlosDocShell::Execute( SfxRequest& rReq )
+{
+ ::lcl_Execute( *this, rReq );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwGlosDocShell::GetState( SfxItemSet& rSet )
+{
+ ::lcl_GetState( *this, rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+BOOL SwGlosDocShell::Save()
+{
+ return ::lcl_Save( *GetWrtShell(), aGroupName, aShortName, aLongName );
+}
+
+
+/* */
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwWebGlosDocShell::SwWebGlosDocShell()
+ : SwWebDocShell( SFX_CREATE_MODE_STANDARD )
+{
+ SetHelpId(SW_WEBGLOSDOCSHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwWebGlosDocShell::~SwWebGlosDocShell( )
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwWebGlosDocShell::Execute( SfxRequest& rReq )
+{
+ ::lcl_Execute( *this, rReq );
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwWebGlosDocShell::GetState( SfxItemSet& rSet )
+{
+ ::lcl_GetState( *this, rSet );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+BOOL SwWebGlosDocShell::Save()
+{
+ return ::lcl_Save( *GetWrtShell(), aGroupName, aShortName, aLongName );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SV_DECL_REF(SwDocShell)
+SV_IMPL_REF(SwDocShell)
+
+void SwGlossaries::EditGroupDoc( const String& rGroup, const String& rShortName )
+{
+ SwTextBlocks* pGroup = GetGroupDoc( rGroup );
+ if(pGroup->IsOld())
+ {
+ pGroup->ConvertToNew();
+ if( pGroup->GetError() )
+ ErrorHandler::HandleError( pGroup->GetError() );
+ }
+
+ if( pGroup && pGroup->GetCount() )
+ {
+ SwDocShellRef xDocSh;
+
+ // erfrage welche View registriert ist. Im WebWriter gibts es keine
+ // normale View
+ USHORT nViewId = 0 != &SwView::Factory() ? 2 : 6;
+ String sLongName = pGroup->GetLongName(pGroup->GetIndex( rShortName ));
+
+ if( 6 == nViewId )
+ {
+ xDocSh = new SwWebGlosDocShell();
+ SwWebGlosDocShell* pDocSh = (SwWebGlosDocShell*)&xDocSh;
+ pDocSh->DoInitNew( 0 );
+
+ pDocSh->SetLongName( sLongName );
+ pDocSh->SetShortName( rShortName);
+ pDocSh->SetGroupName( rGroup );
+ }
+ else
+ {
+ xDocSh = new SwGlosDocShell();
+ SwGlosDocShell* pDocSh = (SwGlosDocShell*)&xDocSh;
+ pDocSh->DoInitNew( 0 );
+
+ pDocSh->SetLongName( sLongName );
+ pDocSh->SetShortName( rShortName );
+ pDocSh->SetGroupName( rGroup );
+ }
+
+ // Dokumenttitel setzen
+ SfxViewFrame* pFrame = SFX_APP()->CreateViewFrame( *xDocSh, nViewId );
+ String aDocTitle(SW_RES( STR_GLOSSARY ));
+ aDocTitle += sLongName;
+
+ BOOL bDoesUndo = xDocSh->GetDoc()->DoesUndo();
+ xDocSh->GetDoc()->DoUndo( FALSE );
+
+ xDocSh->GetWrtShell()->InsertGlossary( *pGroup, rShortName );
+ if( !xDocSh->GetDoc()->GetPrt() )
+ {
+ // wir erzeugen einen default SfxPrinter.
+ // Das ItemSet wird vom Sfx geloescht!
+ SfxItemSet *pSet = new SfxItemSet( xDocSh->GetDoc()->GetAttrPool(),
+ FN_PARAM_ADDPRINTER, FN_PARAM_ADDPRINTER,
+ SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
+ SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
+ 0 );
+ SfxPrinter* pPrinter = new SfxPrinter( pSet );
+
+ // und haengen ihn ans Dokument.
+ xDocSh->GetDoc()->SetPrt( pPrinter );
+ }
+
+ xDocSh->SetTitle( aDocTitle );
+ xDocSh->GetDoc()->DoUndo( bDoesUndo );
+ xDocSh->GetDoc()->ResetModified();
+ pFrame->GetFrame()->Appear();
+ delete pGroup;
+ }
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.59 2000/09/18 16:05:57 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.58 2000/05/10 11:53:43 os
+ Basic API removed
+
+ Revision 1.57 1999/12/22 09:21:04 os
+ #71203# editing of AutoText: keep macros
+
+ Revision 1.56 1999/07/23 08:23:24 OS
+ #67828# glossary - methods on doc level
+
+
+ Rev 1.55 23 Jul 1999 10:23:24 OS
+ #67828# glossary - methods on doc level
+
+ Rev 1.54 09 Feb 1999 10:47:04 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+ Rev 1.53 22 Jan 1999 13:06:14 JP
+ Task #61076#: UndoFlag zuruecksetzen
+
+ Rev 1.52 27 Jun 1998 15:59:06 JP
+ neu: Textbausteine ohne Formatierung
+
+ Rev 1.51 19 Jan 1998 11:57:42 MBA
+ CreateViewFrame verwenden
+
+ Rev 1.50 25 Nov 1997 11:58:26 TJ
+ include fuer SfxPrinter
+
+ Rev 1.49 24 Nov 1997 16:47:44 MA
+ includes
+
+ Rev 1.48 13 Nov 1997 13:21:16 MH
+ chg: header
+
+ Rev 1.47 03 Sep 1997 19:09:14 MBA
+ Kein wswslots.hxx mehr includen
+
+ Rev 1.46 01 Sep 1997 13:16:34 OS
+ DLL-Umstellung
+
+ Rev 1.45 26 Aug 1997 16:05:10 HJS
+ internal comp. err. - header vor-includet
+
+ Rev 1.44 05 Aug 1997 16:14:20 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.43 31 Jul 1997 15:22:04 MH
+ chg: header
+
+ Rev 1.42 11 Jul 1997 16:35:46 JP
+ Bug #41481#: SaveGlossaryDoc - beachtet auch Tabellen am Anfang
+
+ Rev 1.41 07 Apr 1997 16:08:24 MH
+ chg: header
+
+ Rev 1.40 12 Feb 1997 12:01:16 JP
+ neu: WebGlossryDocShell
+
+ Rev 1.39 11 Nov 1996 11:05:46 MA
+ ResMgr
+
+ Rev 1.38 15 Oct 1996 14:13:26 JP
+ AutoCorrCfg in die OfficeApplication verschoben
+
+ Rev 1.37 23 Sep 1996 08:07:54 OS
+ Statusstring fuer SID_SAVE
+
+ Rev 1.36 28 Aug 1996 14:12:12 OS
+ includes
+
+ Rev 1.35 09 Aug 1996 11:08:04 OS
+ Appear am Frame aufrufen, damit das Fenster richtige erkannt wird
+
+ Rev 1.34 08 Aug 1996 21:37:50 JP
+ Save: das gesamte Doc selektieren, nicht den akt. Bereich
+
+ Rev 1.33 09 Jul 1996 10:11:16 OS
+ Autotexte relativ sichern
+
+ Rev 1.32 25 Jun 1996 18:39:36 HJS
+ includes
+
+ Rev 1.31 19 Jun 1996 12:29:24 OM
+ Umstellung auf 323
+
+ Rev 1.30 27 Mar 1996 09:39:20 OS
+ GlosDocShell ueber Ref anlegen
+
+ Rev 1.29 22 Mar 1996 14:06:50 HJS
+ umstellung 311
+
+ Rev 1.28 14 Dec 1995 23:00:40 JP
+ Filter Umstellung: ErrorHandling und Read/Write-Parameter
+
+ Rev 1.27 03 Dec 1995 11:24:32 OS
+ +include itemdef.hxx
+
+ Rev 1.26 29 Nov 1995 13:47:00 OS
+ -slotadd.hxx
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/impfnote.hxx b/sw/source/ui/misc/impfnote.hxx
new file mode 100644
index 000000000000..a60e2842a621
--- /dev/null
+++ b/sw/source/ui/misc/impfnote.hxx
@@ -0,0 +1,155 @@
+/*************************************************************************
+ *
+ * $RCSfile: impfnote.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _IMPFNOTE_HXX
+#define _IMPFNOTE_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+class SwWrtShell;
+
+class SwEndNoteOptionPage : public SfxTabPage
+{
+ RadioButton aPosPageBox;
+ RadioButton aPosChapterBox;
+ GroupBox aPosGrp;
+
+ ListBox aNumViewBox;
+ FixedText aOffsetLbl;
+ NumericField aOffsetFld;
+ ListBox aNumCountBox;
+ FixedText aPrefixFT;
+ Edit aPrefixED;
+ FixedText aSuffixFT;
+ Edit aSuffixED;
+ GroupBox aNumGrp;
+
+ FixedText aParaTemplLbl;
+ ListBox aParaTemplBox;
+ FixedText aPageTemplLbl;
+ ListBox aPageTemplBox;
+ GroupBox aTemplGrp;
+
+ FixedText aFtnCharAnchorTemplLbl;
+ ListBox aFtnCharAnchorTemplBox;
+ FixedText aFtnCharTextTemplLbl;
+ ListBox aFtnCharTextTemplBox;
+ GroupBox aCharTemplGrp;
+
+ FixedText aContLbl;
+ Edit aContEdit;
+ FixedText aContFromLbl;
+ Edit aContFromEdit;
+ GroupBox aContGrp;
+
+ String aNumPage;
+ SwWrtShell *pSh;
+ BOOL bPosDoc;
+ BOOL bEndNote;
+
+ inline void SelectNumbering(int eNum);
+ int GetNumbering() const;
+
+ DECL_LINK( PosPage, Button * );
+ DECL_LINK( PosChapter, Button * );
+ DECL_LINK( NumCount, ListBox * );
+
+
+public:
+ SwEndNoteOptionPage( Window *pParent, BOOL bEndNote,
+ const SfxItemSet &rSet );
+ ~SwEndNoteOptionPage();
+
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset( const SfxItemSet& );
+
+ void SetShell( SwWrtShell &rShell );
+};
+
+class SwFootNoteOptionPage : public SwEndNoteOptionPage
+{
+ SwFootNoteOptionPage( Window *pParent, const SfxItemSet &rSet );
+ ~SwFootNoteOptionPage();
+
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+};
+
+
+
+#endif
diff --git a/sw/source/ui/misc/insfnote.cxx b/sw/source/ui/misc/insfnote.cxx
new file mode 100644
index 000000000000..19caab6a7539
--- /dev/null
+++ b/sw/source/ui/misc/insfnote.cxx
@@ -0,0 +1,487 @@
+/*************************************************************************
+ *
+ * $RCSfile: insfnote.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_CHARMAP_HXX //autogen
+#include <svx/charmap.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+
+#ifndef _FMTFTN_HXX //autogen
+#include <fmtftn.hxx>
+#endif
+#include <swundo.hxx>
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _INSFNOTE_HXX
+#include <insfnote.hxx>
+#endif
+
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _INSFNOTE_HRC
+#include <insfnote.hrc>
+#endif
+
+static BOOL bFootnote = TRUE;
+
+/*------------------------------------------------------------------------
+ Beschreibung: Einfuegen der Fussnote durch OK
+------------------------------------------------------------------------*/
+
+void __EXPORT SwInsFootNoteDlg::Apply()
+{
+ String aStr;
+
+ if ( aNumberCharBtn.IsChecked() )
+ aStr = aNumberCharEdit.GetText();
+
+ if ( bEdit )
+ {
+ rSh.StartAction();
+ rSh.Left();
+ rSh.StartUndo( UNDO_START );
+ SwFmtFtn aNote( aEndNoteBtn.IsChecked() );
+ aNote.SetNumStr( aStr );
+
+ if( rSh.SetCurFtn( aNote ) && bExtCharAvailable )
+ {
+ rSh.Right(TRUE);
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
+ rSh.GetAttr( aSet );
+ SvxFontItem &rFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
+ SvxFontItem aFont( rFont.GetFamily(), aFontName,
+ rFont.GetStyleName(), rFont.GetPitch(),
+ eCharSet );
+ aSet.Put( aFont );
+ rSh.SetAttr( aSet, SETATTR_DONTEXPAND );
+ rSh.ResetSelect(0, FALSE);
+ rSh.Left();
+ }
+ rSh.EndUndo( UNDO_END );
+ rSh.EndAction();
+ }
+ else
+ {
+ rSh.StartUndo( UIUNDO_INSERT_FOOTNOTE );
+ rSh.InsertFootnote( aStr, aEndNoteBtn.IsChecked(), !bExtCharAvailable );
+
+ if ( bExtCharAvailable )
+ {
+ rSh.Left( TRUE );
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
+ rSh.GetAttr( aSet );
+ SvxFontItem &rFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
+ SvxFontItem aFont( rFont.GetFamily(), aFontName,
+ rFont.GetStyleName(), rFont.GetPitch(),
+ eCharSet );
+ aSet.Put( aFont );
+ rSh.SetAttr( aSet, SETATTR_DONTEXPAND );
+ // zur Bearbeitung des Fussnotentextes
+ rSh.ResetSelect(0, FALSE);
+ rSh.GotoFtnTxt();
+ }
+ rSh.EndUndo( UIUNDO_INSERT_FOOTNOTE );
+ }
+
+ bFootnote = aFtnBtn.IsChecked();
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwInsFootNoteDlg, NumberCharHdl, Button *, EMPTYARG )
+{
+ aNumberCharEdit.GrabFocus();
+ aOkBtn.Enable( aNumberCharEdit.GetText().Len() || bExtCharAvailable );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwInsFootNoteDlg, NumberCharHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwInsFootNoteDlg, NumberEditHdl, void *, EMPTYARG )
+{
+ aNumberCharBtn.Check( TRUE );
+ aOkBtn.Enable( 0 != aNumberCharEdit.GetText().Len() );
+
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwInsFootNoteDlg, NumberEditHdl, void *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK_INLINE_START( SwInsFootNoteDlg, NumberAutoBtnHdl, Button *, EMPTYARG )
+{
+ aOkBtn.Enable( TRUE );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwInsFootNoteDlg, NumberAutoBtnHdl, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsFootNoteDlg, NumberExtCharHdl, Button *, EMPTYARG )
+{
+ aNumberCharBtn.Check( TRUE );
+
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
+ rSh.GetAttr( aSet );
+ const SvxFontItem &rFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
+
+ SvxCharacterMap* pDlg = new SvxCharacterMap(this, FALSE);
+
+ Font aDlgFont( pDlg->GetCharFont() );
+ aDlgFont.SetName( rFont.GetFamilyName() );
+ aDlgFont.SetCharSet( rFont.GetCharSet() );
+
+ pDlg->SetCharFont( aDlgFont );
+ if (RET_OK == pDlg->Execute())
+ {
+ String sExtChars(pDlg->GetCharacters());
+
+ aFontName = pDlg->GetCharFont().GetName();
+ eCharSet = pDlg->GetCharFont().GetCharSet();
+ aNumberCharEdit.SetText( sExtChars );
+ aNumberCharEdit.SetFont( pDlg->GetCharFont() );
+ bExtCharAvailable = TRUE;
+ aOkBtn.Enable(0 != aNumberCharEdit.GetText().Len());
+ }
+ delete pDlg;
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsFootNoteDlg, NextPrevHdl, Button *, pBtn )
+{
+ Apply();
+
+ // Hier zur naechsten Fuss/Endnote wandern
+ rSh.ResetSelect(0, FALSE);
+ if (pBtn == &aNextBT)
+ rSh.GotoNextFtnAnchor();
+ else
+ rSh.GotoPrevFtnAnchor();
+
+ Init();
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwInsFootNoteDlg::SwInsFootNoteDlg(Window *pParent, SwWrtShell &rShell, BOOL bEd) :
+
+ SvxStandardDialog(pParent,SW_RES(DLG_INS_FOOTNOTE)),
+
+ rSh(rShell),
+ bEdit(bEd),
+ bExtCharAvailable(FALSE),
+ aNumberAutoBtn (this,SW_RES(RB_NUMBER_AUTO)),
+ aNumberCharBtn (this,SW_RES(RB_NUMBER_CHAR)),
+ aNumberCharEdit (this,SW_RES(ED_NUMBER_CHAR)),
+ aNumberExtChar (this,SW_RES(BT_NUMBER_CHAR)),
+ aNumberFrm (this,SW_RES(GB_NUMBER)),
+ aFtnBtn (this,SW_RES(RB_TYPE_FTN)),
+ aEndNoteBtn (this,SW_RES(RB_TYPE_ENDNOTE)),
+ aTypeBox (this,SW_RES(GB_TYPE)),
+
+ aOkBtn (this,SW_RES(BT_OK)),
+ aCancelBtn (this,SW_RES(BT_CANCEL)),
+ aHelpBtn (this,SW_RES(BT_HELP)),
+ aPrevBT (this,SW_RES(BT_PREV)),
+ aNextBT (this,SW_RES(BT_NEXT))
+{
+ aNumberAutoBtn.SetClickHdl(LINK(this,SwInsFootNoteDlg,NumberAutoBtnHdl));
+ aNumberExtChar.SetClickHdl(LINK(this,SwInsFootNoteDlg,NumberExtCharHdl));
+ aNumberCharBtn.SetClickHdl(LINK(this,SwInsFootNoteDlg,NumberCharHdl));
+ aNumberCharEdit.SetModifyHdl(LINK(this,SwInsFootNoteDlg,NumberEditHdl));
+ aNumberCharEdit.SetMaxTextLen(10);
+ aNumberCharEdit.Enable();
+
+ aPrevBT.SetClickHdl(LINK(this, SwInsFootNoteDlg, NextPrevHdl));
+ aNextBT.SetClickHdl(LINK(this, SwInsFootNoteDlg, NextPrevHdl));
+
+ FreeResource();
+ rSh.SetCareWin(this);
+
+ if (bEdit)
+ {
+ Init();
+
+ aPrevBT.Show();
+ aNextBT.Show();
+ }
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwInsFootNoteDlg::~SwInsFootNoteDlg()
+{
+ rSh.SetCareWin(0);
+
+ if (bEdit)
+ rSh.ResetSelect(0, FALSE);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwInsFootNoteDlg::Init()
+{
+ SwFmtFtn aFtnNote;
+ String sNumStr;
+ Font aFont;
+ bExtCharAvailable = FALSE;
+
+ rSh.StartAction();
+
+ if( rSh.GetCurFtn( &aFtnNote ))
+ {
+ if(aFtnNote.GetNumStr().Len())
+ {
+ sNumStr = aFtnNote.GetNumStr();
+
+ rSh.Right(TRUE);
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
+ rSh.GetAttr( aSet );
+ const SvxFontItem &rFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
+
+ aFont = aNumberCharEdit.GetFont();
+ aFontName = rFont.GetFamilyName();
+ eCharSet = rFont.GetCharSet();
+ aFont.SetName(aFontName);
+ aFont.SetCharSet(eCharSet);
+ bExtCharAvailable = TRUE;
+ rSh.Left();
+ }
+ bFootnote = !aFtnNote.IsEndNote();
+ }
+ aNumberCharEdit.SetFont(aFont);
+
+ BOOL bNumChar = sNumStr.Len() != 0;
+
+ aNumberCharEdit.SetText(sNumStr);
+ aNumberCharBtn.Check(bNumChar);
+ aNumberAutoBtn.Check(!bNumChar);
+ if (bNumChar)
+ aNumberCharEdit.GrabFocus();
+
+ if (bFootnote)
+ aFtnBtn.Check();
+ else
+ aEndNoteBtn.Check();
+
+ BOOL bNext = rSh.GotoNextFtnAnchor();
+
+ if (bNext)
+ rSh.GotoPrevFtnAnchor();
+
+ BOOL bPrev = rSh.GotoPrevFtnAnchor();
+
+ if (bPrev)
+ rSh.GotoNextFtnAnchor();
+
+ aPrevBT.Enable(bPrev);
+ aNextBT.Enable(bNext);
+
+ rSh.Right(TRUE);
+
+ rSh.EndAction();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.46 2000/09/18 16:05:57 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.45 2000/05/10 11:53:43 os
+ Basic API removed
+
+ Revision 1.44 2000/02/11 14:56:21 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.43 1999/12/22 19:50:26 jp
+ Bug #71204#: SetCurFtn - return change state
+
+ Revision 1.42 1998/04/02 15:17:46 OM
+ Fussnoten: Traveling u.a.
+
+
+ Rev 1.41 02 Apr 1998 17:17:46 OM
+ Fussnoten: Traveling u.a.
+
+ Rev 1.40 26 Feb 1998 19:01:10 MA
+ #47622# richtig initialisieren
+
+ Rev 1.39 09 Feb 1998 09:55:12 OM
+ #46894# Letzten Mode merken
+
+ Rev 1.38 12 Dec 1997 14:46:04 MA
+ undo chgftn jetzt in der core
+
+ Rev 1.37 12 Dec 1997 11:04:16 TJ
+ include
+
+ Rev 1.36 10 Dec 1997 13:08:56 MA
+ weiteres fuer Fuss-/Endnoten
+
+ Rev 1.35 24 Nov 1997 16:47:44 MA
+ includes
+
+ Rev 1.34 03 Nov 1997 13:22:42 MA
+ precomp entfernt
+
+ Rev 1.33 15 Aug 1997 12:19:34 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.32 07 Apr 1997 16:08:26 MH
+ chg: header
+
+ Rev 1.31 11 Nov 1996 11:05:44 MA
+ ResMgr
+
+ Rev 1.30 28 Aug 1996 14:12:10 OS
+ includes
+
+ Rev 1.29 17 Jul 1996 14:09:04 JP
+ SS von GetCurFtn geaendert
+
+ Rev 1.28 06 Feb 1996 15:21:08 JP
+ Link Umstellung 305
+
+ Rev 1.27 24 Nov 1995 16:58:44 OM
+ PCH->PRECOMPILED
+
+ Rev 1.26 08 Nov 1995 13:31:42 JP
+ Umstellung zur 301: Change -> Set
+
+ Rev 1.25 24 Oct 1995 18:19:22 MA
+ chg: AutoCheck bei Edit
+
+ Rev 1.24 23 Oct 1995 17:28:00 OS
+ Insert/EditFootnote recordable
+
+ Rev 1.23 12 Sep 1995 17:29:32 OM
+ Helpbutton eingefuegt
+
+ Rev 1.22 30 Aug 1995 14:00:46 MA
+ fix: __EXPORT'iert
+
+ Rev 1.21 24 Aug 1995 14:33:22 MA
+ swstddlg -> svxstandarddialog
+
+ Rev 1.20 21 Jun 1995 16:17:32 OS
+ Max. Fussnotenlaenge auf 10 begrenzt
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/insfnote.hrc b/sw/source/ui/misc/insfnote.hrc
new file mode 100644
index 000000000000..780a89c5b85c
--- /dev/null
+++ b/sw/source/ui/misc/insfnote.hrc
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * $RCSfile: insfnote.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define RB_NUMBER_AUTO 1
+#define RB_NUMBER_CHAR 2
+#define ED_NUMBER_CHAR 3
+#define BT_NUMBER_CHAR 4
+#define GB_NUMBER 5
+#define GB_TYPE 6
+#define RB_TYPE_FTN 7
+#define RB_TYPE_ENDNOTE 8
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+#define BT_PREV 103
+#define BT_NEXT 104
diff --git a/sw/source/ui/misc/insfnote.src b/sw/source/ui/misc/insfnote.src
new file mode 100644
index 000000000000..0c5b2d3c83a7
--- /dev/null
+++ b/sw/source/ui/misc/insfnote.src
@@ -0,0 +1,318 @@
+/*************************************************************************
+ *
+ * $RCSfile: insfnote.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+#include "insfnote.hrc"
+#include "helpid.h"
+ // #define DLG_INS_FOOTNOTE 257
+ModalDialog DLG_INS_FOOTNOTE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 145 , 100 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Fußnote einfügen : Fu˜note einf³gen */
+ Text = "Fußnote einfügen" ;
+ Text [ ENGLISH ] = "Insert footnote" ;
+ Text [ norwegian ] = "Sette inn fotnote" ;
+ Text [ italian ] = "Inserisci nota a piè pagina" ;
+ Text [ portuguese_brazilian ] = "Inserir nota de rodapé" ;
+ Text [ portuguese ] = "Inserir nota de rodapé" ;
+ Text [ finnish ] = "Lisää alaviitteen" ;
+ Text [ danish ] = "Indsæt fodnote" ;
+ Text [ french ] = "Insérer une note de bas de page" ;
+ Text [ swedish ] = "Infoga fotnot" ;
+ Text [ dutch ] = "Voetnoot invoegen" ;
+ Text [ spanish ] = "Insertar nota al pie" ;
+ Text [ english_us ] = "Insert Footnote" ;
+ Moveable = TRUE ;
+ Edit ED_NUMBER_CHAR
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 54 , 27 ) ;
+ Size = MAP_APPFONT ( 23 , 12 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Left = TRUE ;
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 89 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 89 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 89 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ ImageButton BT_PREV
+ {
+ Pos = MAP_APPFONT ( 89 , 82 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ SYMBOL = IMAGEBUTTON_PREV ;
+ };
+ ImageButton BT_NEXT
+ {
+ Pos = MAP_APPFONT ( 115 , 82 ) ;
+ Size = MAP_APPFONT ( 24 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ SYMBOL = IMAGEBUTTON_NEXT ;
+ };
+ RadioButton RB_NUMBER_AUTO
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 54 , 10 ) ;
+ Text = "~Automatisch" ;
+ Text [ ENGLISH ] = "~Auto" ;
+ Text [ norwegian ] = "~Auto" ;
+ Text [ italian ] = "~Automatico" ;
+ Text [ portuguese_brazilian ] = "~Auto" ;
+ Text [ portuguese ] = "~Automática" ;
+ Text [ finnish ] = "~Automaattinen" ;
+ Text [ danish ] = "Automatisk" ;
+ Text [ french ] = "~Automatique" ;
+ Text [ swedish ] = "~Automatisk" ;
+ Text [ dutch ] = "~Automatisch" ;
+ Text [ spanish ] = "~Automático" ;
+ Text [ english_us ] = "~Automatic" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "×Ô¶¯(~A)";
+ Text[ russian ] = "Àâòî";
+ Text[ polish ] = "~Automatycznie";
+ Text[ japanese ] = "Ž©“®(~A)";
+ Text[ chinese_traditional ] = "¦Û°Ê(~A)";
+ Text[ arabic ] = "ÊáÞÇÆí";
+ Text[ greek ] = "Áõôüìáôá";
+ Text[ korean ] = "ÀÚµ¿(~A)";
+ Text[ turkish ] = "~Otomatik";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_NUMBER_CHAR
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 39 , 10 ) ;
+ Text = "~Zeichen" ;
+ Text [ ENGLISH ] = "~Char" ;
+ Text [ norwegian ] = "~Tegn" ;
+ Text [ italian ] = "~Carattere" ;
+ Text [ portuguese_brazilian ] = "~Caracter" ;
+ Text [ portuguese ] = "~Caracteres" ;
+ Text [ finnish ] = "~Merkki" ;
+ Text [ danish ] = "Tegn" ;
+ Text [ french ] = "~Caractère" ;
+ Text [ swedish ] = "~Tecken" ;
+ Text [ dutch ] = "~Teken" ;
+ Text [ spanish ] = "~Caracteres" ;
+ Text [ english_us ] = "~Character" ;
+ Text[ chinese_simplified ] = "×Ö·û(~C)";
+ Text[ russian ] = "Çíàê";
+ Text[ polish ] = "Znak";
+ Text[ japanese ] = "•¶Žš(~C)";
+ Text[ chinese_traditional ] = "¦r¤¸(~C)";
+ Text[ arabic ] = "ÃÍÑÝ";
+ Text[ greek ] = "×áñáêôÞñåò";
+ Text[ korean ] = "¹®ÀÚ(~C)";
+ Text[ turkish ] = "~Karakter";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_NUMBER
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 77 , 54 ) ;
+ Text = "Nummerierung" ;
+ Text [ ENGLISH ] = "Numbering" ;
+ Text [ norwegian ] = "Nummering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ portuguese_brazilian ] = "Numeração" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text [ finnish ] = "Numerointi" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ dutch ] = "Nummering" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ english_us ] = "Numbering" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton BT_NUMBER_CHAR
+ {
+ Pos = MAP_APPFONT ( 54 , 42 ) ;
+ Size = MAP_APPFONT ( 12 , 12 ) ;
+ Text = "..." ;
+ };
+ RadioButton RB_TYPE_FTN
+ {
+ Pos = MAP_APPFONT ( 12 , 70 ) ;
+ Size = MAP_APPFONT ( 64 , 10 ) ;
+ Text = "~Fußnote" ;
+ Text [ ENGLISH ] = "~Footnote" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Check = TRUE ;
+ Text [ portuguese ] = "~Nota de rodapé" ;
+ Text [ english_us ] = "~Footnote" ;
+ Text [ portuguese_brazilian ] = "~Fußnote" ;
+ Text [ swedish ] = "~Fotnot" ;
+ Text [ danish ] = "Fodnote" ;
+ Text [ italian ] = "~Nota a piè pagina" ;
+ Text [ spanish ] = "N~ota al pie" ;
+ Text [ french ] = "Note de ~bas de page" ;
+ Text [ dutch ] = "~Voetnoot" ;
+ Text[ chinese_simplified ] = "×¢½Å(~F)";
+ Text[ russian ] = "Îáû÷íàÿ";
+ Text[ polish ] = "Przypis ~dolny";
+ Text[ japanese ] = "‹r’(~‚e)";
+ Text[ chinese_traditional ] = "µù¸}(~F)";
+ Text[ arabic ] = "ÍÇÔíÉ ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåßùóç";
+ Text[ korean ] = "°¢ÁÖ(~F)";
+ Text[ turkish ] = "~Dipnot";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_TYPE_ENDNOTE
+ {
+ Pos = MAP_APPFONT ( 12 , 83 ) ;
+ Size = MAP_APPFONT ( 64 , 10 ) ;
+ Text = "~Endnote" ;
+ Text [ ENGLISH ] = "~Endnote" ;
+ Text [ portuguese ] = "~Nota final" ;
+ Text [ english_us ] = "~Endnote" ;
+ Text [ portuguese_brazilian ] = "~Endnote" ;
+ Text [ swedish ] = "~Slutnot" ;
+ Text [ danish ] = "Slutnote" ;
+ Text [ italian ] = "~Nota di chiusura" ;
+ Text [ spanish ] = "Nota al ~final" ;
+ Text [ french ] = "~Note de fin" ;
+ Text [ dutch ] = "~Eindnoot" ;
+ Text[ chinese_simplified ] = "βע(~E)";
+ Text[ russian ] = "Êîíöåâàÿ";
+ Text[ polish ] = "P~rzypis koñcowy";
+ Text[ japanese ] = "•¶––‹r’(~‚d)";
+ Text[ chinese_traditional ] = "§Àª`(~E)";
+ Text[ arabic ] = "ÊÚáíÞ ÎÊÇãí";
+ Text[ greek ] = "Óçìåßùóç ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ(~E)";
+ Text[ turkish ] = "~Sonnot";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_TYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 60 ) ;
+ Size = MAP_APPFONT ( 77 , 36 ) ;
+ Text = "Art" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text [ english_us ] = "Type" ;
+ Text [ portuguese_brazilian ] = "Art" ;
+ Text [ swedish ] = "Typ" ;
+ Text [ danish ] = "Type" ;
+ Text [ italian ] = "Tipo" ;
+ Text [ spanish ] = "Tipo" ;
+ Text [ french ] = "Type" ;
+ Text [ dutch ] = "Type" ;
+ Text [ portuguese ] = "Tipo" ;
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ russian ] = "Òèï ñíîñêè";
+ Text[ polish ] = "Typ";
+ Text[ japanese ] = "Ží—Þ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ turkish ] = "Tür";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "²åÈë×¢½Å";
+ Text[ russian ] = "Âñòàâèòü ñíîñêó";
+ Text[ polish ] = "Wstaw przypis dolny";
+ Text[ japanese ] = "‹r’‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤Jµù¸}";
+ Text[ arabic ] = "ÅÏÑÇÌ ÍÇÔíÉ ÓÝáíÉ";
+ Text[ greek ] = "ÐñïóèÞêç õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ »ðÀÔ";
+ Text[ turkish ] = "Dipnot ekle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/misc/insrule.cxx b/sw/source/ui/misc/insrule.cxx
new file mode 100644
index 000000000000..b41f96061c7c
--- /dev/null
+++ b/sw/source/ui/misc/insrule.cxx
@@ -0,0 +1,377 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrule.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "uiparam.hxx"
+#include "hintids.hxx"
+
+#ifndef _GALLERY_HXX_ //autogen
+#include <svx/gallery.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "docsh.hxx"
+#include "insrule.hxx"
+#include "swvset.hxx"
+#include "insrule.hrc"
+#include "misc.hrc"
+#include "helpid.h"
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+SwInsertGrfRulerDlg::SwInsertGrfRulerDlg( Window* pParent, SwDocShell* pDocSh ) :
+ SfxModalDialog(pParent, SW_RES(DLG_INSERT_RULER)),
+ aSelectionGB(this, ResId(GB_SEL )),
+ pExampleVS (new SwRulerValueSet(this, ResId(VS_EXAMPLE ), aGrfNames, pDocSh)),
+ aOkPB (this, ResId(PB_OK )),
+ aCancelPB (this, ResId(PB_CANCEL )),
+ aHelpPB (this, ResId(PB_HELP )),
+ sSimple (ResId(ST_SIMPLE)),
+ nSelPos(USHRT_MAX)
+{
+ FreeResource();
+ pExampleVS->SetLineCount(6);
+ pExampleVS->SetColCount(1);
+ pExampleVS->SetSelectHdl(LINK(this, SwInsertGrfRulerDlg, SelectHdl));
+ pExampleVS->SetDoubleClickHdl(LINK(this, SwInsertGrfRulerDlg, DoubleClickHdl));
+ pExampleVS->GrabFocus();
+
+ // Grafiknamen ermitteln
+ GalleryExplorer::FillObjList( GALLERY_THEME_RULERS, aGrfNames );
+ pExampleVS->SetHelpId(HID_VS_RULER);
+ Color aColor(COL_WHITE);
+ pExampleVS->InsertItem( 1, 1);
+ pExampleVS->SetItemText( 1, sSimple);
+
+ for(USHORT i = 1; i <= aGrfNames.Count(); i++)
+ {
+ pExampleVS->InsertItem( i + 1, i);
+ pExampleVS->SetItemText( i + 1, *((String*)aGrfNames.GetObject(i-1)));
+ }
+ pExampleVS->Show();
+
+}
+/*-----------------14.02.97 13.18-------------------
+
+--------------------------------------------------*/
+
+SwInsertGrfRulerDlg::~SwInsertGrfRulerDlg()
+{
+ delete pExampleVS;
+}
+
+/*-----------------14.02.97 13.17-------------------
+
+--------------------------------------------------*/
+
+String SwInsertGrfRulerDlg::GetGraphicName()
+{
+ String sRet;
+ if(nSelPos != USHRT_MAX)
+ {
+ SvxBmpItemInfo* pInfo = pExampleVS->FindInfo(nSelPos);
+ if(pInfo)
+ sRet = *pInfo->pBrushItem->GetGraphicLink();
+ }
+ return sRet;
+}
+
+/*-----------------14.02.97 13.20-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK(SwInsertGrfRulerDlg, SelectHdl, ValueSet*, pVS)
+{
+ nSelPos = pVS->GetSelectItemId();
+ aOkPB.Enable();
+ return 0;
+}
+
+/*-----------------14.02.97 14.17-------------------
+
+--------------------------------------------------*/
+
+SwRulerValueSet::SwRulerValueSet( Window* pParent,
+ const ResId& rResId,
+ const List& rStrNames,
+ SwDocShell* pDocSh) :
+ SvxBmpNumValueSet(pParent, rResId, rStrNames),
+ pSwDocSh(pDocSh)
+{
+
+ SetStyle( GetStyle()
+ & ~WB_ITEMBORDER );
+
+}
+
+/*-----------------14.02.97 14.17-------------------
+
+--------------------------------------------------*/
+
+SwRulerValueSet::~SwRulerValueSet()
+{
+}
+
+
+/*-----------------13.02.97 09.41-------------------
+
+--------------------------------------------------*/
+
+IMPL_STATIC_LINK(SwRulerValueSet, GraphicArrivedHdl_Impl, SvxBrushItem*, pItem)
+{
+ // Ueber Timer wird ein Format angeworfen
+ pThis->GetFormatTimer().Start();
+ return 0;
+}
+
+/*-----------------14.02.97 13.42-------------------
+
+--------------------------------------------------*/
+
+void __EXPORT SwRulerValueSet::UserDraw( const UserDrawEvent& rUDEvt )
+{
+ Rectangle aRect = rUDEvt.GetRect();
+ OutputDevice* pDev = rUDEvt.GetDevice();
+ USHORT nItemId = rUDEvt.GetItemId();
+ Point aBLPos = aRect.TopLeft();
+
+ const List& rStrList = GetStringList();
+ // Itemzaehlung beginnt bei 1, und die 1. ist die einfache Linie
+ if(nItemId > 1)
+ {
+ if(rStrList.Count() > nItemId - 2)
+ {
+ String* pGrfName = (String*)rStrList.GetObject(nItemId - 2);
+ SvxBmpItemInfo* pInfo;
+ if(0 == (pInfo = FindInfo(nItemId)))
+ {
+ pInfo = new SvxBmpItemInfo();
+ pInfo->nItemId = nItemId;
+ pInfo->pBrushItem = new SvxBrushItem(*pGrfName, aEmptyStr, GPOS_AREA);
+ pInfo->pBrushItem->SetDoneLink(STATIC_LINK(
+ this, SwRulerValueSet, GraphicArrivedHdl_Impl));
+ GetGrfBrushItems().Insert(pInfo);
+ }
+
+ const Graphic* pGraphic = pInfo->pBrushItem->GetGraphic(pSwDocSh);
+
+ if(pGraphic)
+ {
+ Size aGrfSize = pGraphic->GetPrefSize();
+ if(aGrfSize.Width() && aGrfSize.Height())
+ {
+ int nRelGrf = aGrfSize.Height() * 100 / aGrfSize.Width();
+ Size aWinSize = aRect.GetSize();
+ Size aPaintSize = aWinSize;
+ int nRelWin = aWinSize.Height() * 100 / aWinSize.Width();
+ if(nRelGrf > nRelWin)
+ {
+ aPaintSize.Width() = aWinSize.Height() * 100 / nRelGrf;
+ aBLPos.X() += (aWinSize.Width() - aPaintSize.Width()) /2;
+ }
+ else
+ {
+ aPaintSize.Height() = aWinSize.Width() * nRelGrf/100;
+ aBLPos.Y() += (aWinSize.Height() - aPaintSize.Height()) /2;
+ }
+ aBLPos.X() -= aPaintSize.Width() /2;
+ aBLPos.Y() -= aPaintSize.Height() /2;
+
+ aPaintSize.Width() *= 2;
+ aPaintSize.Height() *= 2;
+ if(aPaintSize.Height() < 2)
+ aPaintSize.Height() = 2;
+ Region aRegion = pDev->GetClipRegion();
+ pDev->SetClipRegion(aRect);
+ pGraphic->Draw(pDev, aBLPos, aPaintSize);
+ pDev->SetClipRegion(aRegion);
+ }
+ }
+ else
+ {
+ SetGrfNotFound(TRUE);
+ }
+ }
+ }
+ else
+ {
+ // Text fuer einfache Linie painten
+ Font aOldFont = pDev->GetFont();
+ Font aFont = pDev->GetFont();
+ Size aSize = aFont.GetSize();
+ int nRectHeight = aRect.GetHeight();
+ aSize.Height() = nRectHeight * 2 / 3;
+ aFont.SetSize(aSize);
+ pDev->SetFont(aFont);
+ String aText(GetItemText(nItemId));
+ aSize.Width() = pDev->GetTextWidth(aText);
+ aSize.Height() = pDev->GetTextHeight();
+ Point aPos(aBLPos);
+ aPos.Y() += (nRectHeight - aSize.Height()) / 2;
+ aPos.X() += (aRect.GetWidth() - aSize.Width()) / 2;
+ pDev->DrawText(aPos, aText);
+
+ pDev->SetFont(aOldFont);
+ }
+}
+
+/*-----------------15.02.97 10.03-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK(SwInsertGrfRulerDlg, DoubleClickHdl, ValueSet*, pVS)
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.22 2000/09/18 16:05:57 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.21 2000/09/05 10:40:43 kz
+ chg. SetWinStyle/GetWinStyle to SetStyle/GetStyle
+
+ Revision 1.20 2000/04/18 15:08:17 os
+ UNICODE
+
+ Revision 1.19 2000/02/11 14:56:03 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.18 1999/03/16 11:43:36 MA
+ #62507# Ruler uber ID besorgen
+
+
+ Rev 1.17 16 Mar 1999 12:43:36 MA
+ #62507# Ruler uber ID besorgen
+
+ Rev 1.16 18 Nov 1998 08:31:54 OS
+ #58263# Numerierung in den Svx - Reste
+
+ Rev 1.15 17 Nov 1998 13:01:56 OS
+ #58263# alte Methoden verschoben
+
+ Rev 1.14 17 Mar 1998 17:04:24 OS
+ Focus initial ins ValueSet#48169#
+
+ Rev 1.13 24 Nov 1997 16:47:42 MA
+ includes
+
+ Rev 1.12 22 Sep 1997 15:14:42 OS
+ MessageBox nicht im Dlg-Ctor aufrufen #44095#
+
+ Rev 1.11 09 Sep 1997 13:34:28 OS
+ Header aufgeteilt
+
+ Rev 1.10 09 Aug 1997 13:31:34 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.9 08 Aug 1997 17:28:26 OM
+ Headerfile-Umstellung
+
+ Rev 1.8 26 May 1997 10:32:18 TRI
+ __EXPORT benutzt
+
+ Rev 1.7 23 May 1997 10:09:36 OS
+ Ableitung von SfxModalDialog
+
+ Rev 1.6 10 Mar 1997 17:28:22 OS
+ fuer NULL-Size nicht painten (DrawObjekte)
+
+ Rev 1.5 25 Feb 1997 12:21:08 OS
+ Mindesthoehe fuer Ruler: 2 Pixel
+
+ Rev 1.4 22 Feb 1997 20:21:42 OS
+ doppelte Groesse, nur noch 6 Zeilen
+
+ Rev 1.3 20 Feb 1997 17:50:22 OS
+ Itemborder abgeschaltet
+
+ Rev 1.2 19 Feb 1997 16:22:22 OS
+ Dialogtitel jetzt >Horizontale Linie einfuegen<
+
+ Rev 1.1 17 Feb 1997 16:38:08 OS
+ Offset korrigiert
+
+ Rev 1.0 15 Feb 1997 15:15:36 OS
+ Initial revision.
+
+ --------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/insrule.hrc b/sw/source/ui/misc/insrule.hrc
new file mode 100644
index 000000000000..a395f187bc2f
--- /dev/null
+++ b/sw/source/ui/misc/insrule.hrc
@@ -0,0 +1,69 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrule.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+
+#define GB_SEL 1
+#define VS_EXAMPLE 2
+#define PB_OK 3
+#define PB_CANCEL 4
+#define PB_HELP 5
+#define ST_SIMPLE 6
diff --git a/sw/source/ui/misc/insrule.src b/sw/source/ui/misc/insrule.src
new file mode 100644
index 000000000000..9e71fec7f9a7
--- /dev/null
+++ b/sw/source/ui/misc/insrule.src
@@ -0,0 +1,171 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrule.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "insrule.hrc"
+#include "helpid.h"
+ModalDialog DLG_INSERT_RULER
+{
+ HelpID = HID_RULER_DIALOG ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 242 , 124 ) ;
+ Text = "Horizontale Linie einfügen" ;
+ Text [ ENGLISH ] = "InsertRuler" ;
+ Moveable = TRUE ;
+ GroupBox GB_SEL
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 174 , 118 ) ;
+ Text = "Auswahl" ;
+ Text [ ENGLISH ] = "Selection" ;
+ Text [ english_us ] = "Selection" ;
+ Text [ portuguese_brazilian ] = "Auswahl" ;
+ Text [ swedish ] = "Urval" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ spanish ] = "Selección" ;
+ Text [ french ] = "Sélection" ;
+ Text [ dutch ] = "Selectie" ;
+ Text [ portuguese ] = "Selecção" ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð";
+ Text[ chinese_traditional ] = "¿ï¨ú";
+ Text[ arabic ] = "ÊÍÏíÏ";
+ Text[ greek ] = "ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ";
+ Text[ turkish ] = "Seçim";
+ Text[ language_user1 ] = " ";
+ };
+ Control VS_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 9 , 12 ) ;
+ Size = MAP_APPFONT ( 168 , 106 ) ;
+ Hide = TRUE ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 186 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ Disable = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 186 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 186 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ String ST_SIMPLE
+ {
+ Text = "Einfach" ;
+ Text [ English ] = "Simple" ;
+ Text [ portuguese ] = "Simples" ;
+ Text [ english_us ] = "Single" ;
+ Text [ portuguese_brazilian ] = "Einfach" ;
+ Text [ swedish ] = "Enkel" ;
+ Text [ danish ] = "Enkelt" ;
+ Text [ italian ] = "Semplice" ;
+ Text [ spanish ] = "Sencilla" ;
+ Text [ french ] = "Simple" ;
+ Text [ dutch ] = "Enkel" ;
+ Text[ chinese_simplified ] = "µ¥Ïß";
+ Text[ russian ] = "Îáû÷íàÿ";
+ Text[ polish ] = "Pojedyncze";
+ Text[ japanese ] = "¼ÝÌßÙ";
+ Text[ chinese_traditional ] = "³æ½u";
+ Text[ arabic ] = "ãÝÑÏ";
+ Text[ greek ] = "Áðëü";
+ Text[ korean ] = "´ÜÀÏ";
+ Text[ turkish ] = "Tek";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Insert Horizontal Ruler" ;
+ Text [ portuguese_brazilian ] = "Horizontale Linie einfügen" ;
+ Text [ swedish ] = "Infoga horisontell linje" ;
+ Text [ danish ] = "Indsæt vandret linje" ;
+ Text [ italian ] = "Inserisci linea orizzontale" ;
+ Text [ spanish ] = "Insertar línea horizontal" ;
+ Text [ french ] = "Insertion de ligne horizontale" ;
+ Text [ dutch ] = "Horizontale lijn invoegen" ;
+ Text [ portuguese ] = "Inserir linha horizontal" ;
+ Text[ chinese_simplified ] = "²åÈëˮƽÏß";
+ Text[ russian ] = "Âñòàâèòü ãîðèçîíòàëüíóþ ëèíèþ";
+ Text[ polish ] = "Wstaw liniê poziom¹";
+ Text[ japanese ] = "…•½ü‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¤ô¥­½u";
+ Text[ arabic ] = "ÅÏÑÇÌ ÎØ ÃÝÞí";
+ Text[ greek ] = "ÐñïóèÞêç ïñéæüíôéáò ãñáììÞò";
+ Text[ korean ] = "¼öÆò ´«±ÝÀÚ »ðÀÔ";
+ Text[ turkish ] = "Yatay çizgi ekle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
new file mode 100644
index 000000000000..4513deaae704
--- /dev/null
+++ b/sw/source/ui/misc/linenum.cxx
@@ -0,0 +1,431 @@
+/*************************************************************************
+ *
+ * $RCSfile: linenum.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+
+#ifndef _CHARFMT_HXX //autogen
+#include <charfmt.hxx>
+#endif
+
+#ifndef _FLDMGR_HXX //autogen
+#include <fldmgr.hxx>
+#endif
+
+#ifndef _DOC_HXX //autogen
+#include <doc.hxx>
+#endif
+
+#ifndef _DOCSTYLE_HXX //autogen
+#include <docstyle.hxx>
+#endif
+
+#include "fldbas.hxx"
+#include "lineinfo.hxx"
+#include "globals.hrc"
+#include "linenum.hrc"
+#include "linenum.hxx"
+#include "uitool.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwLineNumberingDlg::SwLineNumberingDlg(SwView *pVw) :
+ SfxSingleTabDialog(&pVw->GetViewFrame()->GetWindow(), 0, 0),
+ pSh(pVw->GetWrtShellPtr())
+{
+ // TabPage erzeugen
+ SfxTabPage* pPage = SwLineNumberingPage::Create(this, *(SfxItemSet*)0);
+ SetTabPage(pPage);
+
+ GetOKButton()->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+__EXPORT SwLineNumberingDlg::~SwLineNumberingDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwLineNumberingDlg, OKHdl, Button *, pBtn )
+{
+ if (GetOKButton()->IsEnabled())
+ {
+ SfxTabPage* pPage = GetTabPage();
+ if (pPage)
+ pPage->FillItemSet(*(SfxItemSet*)0);
+
+ EndDialog( RET_OK );
+ }
+
+ return 0;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SwLineNumberingPage::SwLineNumberingPage( Window* pParent,
+ const SfxItemSet& rSet )
+ : SfxTabPage(pParent, SW_RES(TP_LINENUMBERING), rSet),
+ aNumberingOnCB ( this, SW_RES( CB_NUMBERING_ON )),
+ aCharStyleFT ( this, SW_RES( FT_CHAR_STYLE )),
+ aCharStyleLB ( this, SW_RES( LB_CHAR_STYLE )),
+ aFormatFT ( this, SW_RES( FT_FORMAT )),
+ aFormatLB ( this, SW_RES( LB_FORMAT )),
+ aPosFT ( this, SW_RES( FT_POS )),
+ aPosLB ( this, SW_RES( LB_POS )),
+ aOffsetFT ( this, SW_RES( FT_OFFSET )),
+ aOffsetMF ( this, SW_RES( MF_OFFSET )),
+ aNumIntervalFT ( this, SW_RES( FT_NUM_INVERVAL )),
+ aNumIntervalNF ( this, SW_RES( NF_NUM_INVERVAL )),
+ aNumRowsFT ( this, SW_RES( FT_NUM_ROWS )),
+ aDisplayGB ( this, SW_RES( GB_DISPLAY )),
+ aDivisorFT ( this, SW_RES( FT_DIVISOR )),
+ aDivisorED ( this, SW_RES( ED_DIVISOR )),
+ aDivIntervalFT ( this, SW_RES( FT_DIV_INTERVAL )),
+ aDivIntervalNF ( this, SW_RES( NF_DIV_INTERVAL )),
+ aDivRowsFT ( this, SW_RES( FT_DIV_ROWS )),
+ aDivisorGB ( this, SW_RES( GB_DIVISOR )),
+ aCountEmptyLinesCB ( this, SW_RES( CB_COUNT_EMPTYLINES )),
+ aCountFrameLinesCB ( this, SW_RES( CB_COUNT_FRAMELINES )),
+ aRestartEachPageCB ( this, SW_RES( CB_RESTART_PAGE )),
+ aCountGB ( this, SW_RES( GB_COUNT ))
+
+{
+ FreeResource();
+ SwLineNumberingDlg *pDlg = (SwLineNumberingDlg *)GetParent();
+ pSh = pDlg->GetWrtShell();
+ // Zeichenvorlagen
+ ::FillCharStyleListBox(aCharStyleLB, pSh->GetView().GetDocShell());
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+__EXPORT SwLineNumberingPage::~SwLineNumberingPage()
+{
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwLineNumberingPage::Create( Window* pParent, const SfxItemSet& rSet )
+{
+ return new SwLineNumberingPage( pParent, rSet );
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+void __EXPORT SwLineNumberingPage::Reset( const SfxItemSet& rSet )
+{
+ const SwLineNumberInfo &rInf = pSh->GetLineNumberInfo();
+
+ String sStyleName(rInf.GetCharFmt(*pSh->GetDoc())->GetName());
+ const USHORT nPos = aCharStyleLB.GetEntryPos(sStyleName);
+
+ if (nPos != LISTBOX_ENTRY_NOTFOUND)
+ aCharStyleLB.SelectEntryPos(nPos);
+ else
+ {
+ if (sStyleName.Len())
+ {
+ aCharStyleLB.InsertEntry(sStyleName);
+ aCharStyleLB.SelectEntry(sStyleName);
+ }
+ }
+
+ // Format
+ SwFldMgr aMgr( pSh );
+ USHORT nSelFmt = rInf.GetNumType().eType;
+ USHORT nCnt = aMgr.GetFormatCount( TYP_SEQFLD, FALSE );
+
+ for( USHORT i = 0; i < nCnt; i++)
+ {
+ aFormatLB.InsertEntry(aMgr.GetFormatStr( TYP_SEQFLD, i));
+ USHORT nFmtId = aMgr.GetFormatId( TYP_SEQFLD, i );
+ aFormatLB.SetEntryData( i, (void*)nFmtId );
+ if( nFmtId == nSelFmt )
+ aFormatLB.SelectEntryPos( i );
+ }
+
+ if ( !aFormatLB.GetSelectEntryCount() )
+ aFormatLB.SelectEntryPos(aFormatLB.GetEntryCount() - 1);
+
+ // Position
+ aPosLB.SelectEntryPos((USHORT)rInf.GetPos());
+
+ // Offset
+ USHORT nOffset = rInf.GetPosFromLeft();
+ if (nOffset == USHRT_MAX)
+ nOffset = 0;
+
+ aOffsetMF.SetValue(aOffsetMF.Normalize(nOffset), FUNIT_TWIP);
+
+ // Numerierungsoffset
+ aNumIntervalNF.SetValue(rInf.GetCountBy());
+
+ // Teiler
+ aDivisorED.SetText(rInf.GetDivider());
+
+ // Teileroffset
+ aDivIntervalNF.SetValue(rInf.GetDividerCountBy());
+
+ // Zaehlen
+ aCountEmptyLinesCB.Check(rInf.IsCountBlankLines());
+ aCountFrameLinesCB.Check(rInf.IsCountInFlys());
+ aRestartEachPageCB.Check(rInf.IsRestartEachPage());
+
+ aNumberingOnCB.Check(rInf.IsPaintLineNumbers());
+
+ aNumberingOnCB.SetClickHdl(LINK(this, SwLineNumberingPage, LineOnOffHdl));
+ aDivisorED.SetModifyHdl(LINK(this, SwLineNumberingPage, ModifyHdl));
+ ModifyHdl();
+ LineOnOffHdl();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Modify
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwLineNumberingPage, ModifyHdl, Edit *, EMPTYARG )
+{
+ BOOL bHasValue = aDivisorED.GetText().Len() != 0;
+
+ aDivIntervalFT.Enable(bHasValue);
+ aDivIntervalNF.Enable(bHasValue);
+ aDivRowsFT.Enable(bHasValue);
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: On/Off
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwLineNumberingPage, LineOnOffHdl, CheckBox *, EMPTYARG )
+{
+ BOOL bEnable = aNumberingOnCB.IsChecked();
+
+ aCharStyleFT.Enable(bEnable);
+ aCharStyleLB.Enable(bEnable);
+ aFormatFT.Enable(bEnable);
+ aFormatLB.Enable(bEnable);
+ aPosFT.Enable(bEnable);
+ aPosLB.Enable(bEnable);
+ aOffsetFT.Enable(bEnable);
+ aOffsetMF.Enable(bEnable);
+ aNumIntervalFT.Enable(bEnable);
+ aNumIntervalNF.Enable(bEnable);
+ aNumRowsFT.Enable(bEnable);
+ aDisplayGB.Enable(bEnable);
+ aDivisorFT.Enable(bEnable);
+ aDivisorED.Enable(bEnable);
+ aDivIntervalFT.Enable(bEnable);
+ aDivIntervalNF.Enable(bEnable);
+ aDivRowsFT.Enable(bEnable);
+ aDivisorGB.Enable(bEnable);
+ aCountEmptyLinesCB.Enable(bEnable);
+ aCountFrameLinesCB.Enable(bEnable);
+ aRestartEachPageCB.Enable(bEnable);
+ aCountGB.Enable(bEnable);
+
+ return 0;
+}
+
+/*-----------------------------------------------------------------------
+ Beschreibung:
+ -----------------------------------------------------------------------*/
+
+BOOL __EXPORT SwLineNumberingPage::FillItemSet( SfxItemSet& rSet )
+{
+ SwLineNumberInfo aInf(pSh->GetLineNumberInfo());
+
+ // Zeichenvorlagen
+ String sCharFmtName(aCharStyleLB.GetSelectEntry());
+ SwCharFmt *pCharFmt = pSh->FindCharFmtByName(sCharFmtName);
+
+ if (!pCharFmt)
+ {
+ SfxStyleSheetBasePool* pPool = pSh->GetView().GetDocShell()->GetStyleSheetPool();
+ SfxStyleSheetBase* pBase;
+ pBase = pPool->Find(sCharFmtName, SFX_STYLE_FAMILY_CHAR);
+ if(!pBase)
+ pBase = &pPool->Make(sCharFmtName, SFX_STYLE_FAMILY_CHAR);
+ pCharFmt = ((SwDocStyleSheet*)pBase)->GetCharFmt();
+ }
+
+ if (pCharFmt)
+ aInf.SetCharFmt(pCharFmt);
+
+ // Format
+ SwNumType aType;
+ aType.eType = (SvxExtNumType)(USHORT)(ULONG)aFormatLB.GetEntryData(
+ aFormatLB.GetSelectEntryPos() );
+ aInf.SetNumType(aType);
+
+ // Position
+ aInf.SetPos((LineNumberPosition)aPosLB.GetSelectEntryPos());
+
+ // Offset
+ aInf.SetPosFromLeft((USHORT)aOffsetMF.Denormalize(aOffsetMF.GetValue(FUNIT_TWIP)));
+
+ // Numerierungsoffset
+ aInf.SetCountBy((USHORT)aNumIntervalNF.GetValue());
+
+ // Teiler
+ aInf.SetDivider(aDivisorED.GetText());
+
+ // Teileroffset
+ aInf.SetDividerCountBy((USHORT)aDivIntervalNF.GetValue());
+
+ // Zaehlen
+ aInf.SetCountBlankLines(aCountEmptyLinesCB.IsChecked());
+ aInf.SetCountInFlys(aCountFrameLinesCB.IsChecked());
+ aInf.SetRestartEachPage(aRestartEachPageCB.IsChecked());
+
+ aInf.SetPaintLineNumbers(aNumberingOnCB.IsChecked());
+
+ pSh->SetLineNumberInfo(aInf);
+
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.11 2000/09/18 16:05:57 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.10 2000/08/14 12:50:15 ma
+ optional restart at each page for line numbering
+
+ Revision 1.9 2000/04/26 14:55:46 os
+ GetName() returns const String&
+
+ Revision 1.8 2000/02/11 14:56:26 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.7 1998/11/17 09:57:52 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+
+ Rev 1.6 17 Nov 1998 10:57:52 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.5 11 Aug 1998 14:26:30 HR
+ void* kann nicht direkt nach USHORT gecastet werden
+
+ Rev 1.4 10 Aug 1998 16:42:10 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.3 15 Apr 1998 14:34:08 OS
+ CharStyles sortiert
+
+ Rev 1.2 20 Feb 1998 11:23:22 MA
+ Restarbeiten Zeilennummerierung
+
+ Rev 1.1 19 Feb 1998 13:51:32 OM
+ Zeilennumerierung
+
+ Rev 1.0 18 Feb 1998 18:56:48 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/misc/linenum.hrc b/sw/source/ui/misc/linenum.hrc
new file mode 100644
index 000000000000..e3e3e63e23dd
--- /dev/null
+++ b/sw/source/ui/misc/linenum.hrc
@@ -0,0 +1,84 @@
+/*************************************************************************
+ *
+ * $RCSfile: linenum.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define CB_NUMBERING_ON 1
+#define FT_CHAR_STYLE 2
+#define LB_CHAR_STYLE 3
+#define FT_FORMAT 4
+#define LB_FORMAT 5
+#define FT_POS 6
+#define LB_POS 7
+#define FT_OFFSET 8
+#define MF_OFFSET 9
+#define FT_NUM_INVERVAL 10
+#define NF_NUM_INVERVAL 11
+#define FT_NUM_ROWS 12
+#define GB_DISPLAY 13
+#define FT_DIVISOR 14
+#define ED_DIVISOR 15
+#define FT_DIV_INTERVAL 16
+#define NF_DIV_INTERVAL 17
+#define FT_DIV_ROWS 18
+#define GB_DIVISOR 19
+#define CB_COUNT_EMPTYLINES 20
+#define CB_COUNT_FRAMELINES 21
+#define GB_COUNT 22
+#define CB_RESTART_PAGE 23
+
diff --git a/sw/source/ui/misc/linenum.src b/sw/source/ui/misc/linenum.src
new file mode 100644
index 000000000000..f966969526d9
--- /dev/null
+++ b/sw/source/ui/misc/linenum.src
@@ -0,0 +1,729 @@
+/*************************************************************************
+ *
+ * $RCSfile: linenum.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+#ifndef _SFX_HRC
+#include <sfx2/sfx.hrc>
+#endif
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#include "globals.hrc"
+#include "misc.hrc"
+#include "linenum.hrc"
+#include "helpid.h"
+/**************************************************************************/
+/* */
+/**************************************************************************/
+TabPage TP_LINENUMBERING
+{
+ HelpID = HID_LINENUMBERING ;
+ SVLook = TRUE ;
+ Hide = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Text = "Zeilennummerierung" ;
+ Text [ ENGLISH ] = "Line Numbering" ;
+ CheckBox CB_NUMBERING_ON
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 248 , 10 ) ;
+ Text = "~Nummerierung einschalten" ;
+ Text [ ENGLISH ] = "~Turn line numbering on" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Show numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung einschalten" ;
+ Text [ swedish ] = "~Numrering på" ;
+ Text [ danish ] = "Aktiver nummerering" ;
+ Text [ italian ] = "Att~iva numerazione" ;
+ Text [ spanish ] = "Mostrar ~numeración" ;
+ Text [ french ] = "Activer la ~numérotation" ;
+ Text [ dutch ] = "~Nummering inschakelen" ;
+ Text [ portuguese ] = "Activar ~numeração" ;
+ Text[ chinese_simplified ] = "ÏÔʾ±àºÅ";
+ Text[ russian ] = "Âêëþ÷èòü íóìåðàöèþ";
+ Text[ polish ] = "W³¹cz numeracjê";
+ Text[ japanese ] = "”Ô†•t‚¯‚ðµÝ‚É‚·‚é(~S)";
+ Text[ chinese_traditional ] = "Åã¥Ü½s¸¹";
+ Text[ arabic ] = "ÅÙåÇÑ ÇáÊÑÞíã";
+ Text[ greek ] = "Åíåñãïðïßçóç áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ º¸À̱â(~S)";
+ Text[ turkish ] = "~Numaralamayý etkinleþtir";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_CHAR_STYLE
+ {
+ Pos = MAP_APPFONT ( 12 , 32 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Zeichenvorlage" ;
+ Text [ English ] = "~Char style" ;
+ Text [ english_us ] = "~Character Style" ;
+ Text [ portuguese_brazilian ] = "Zeichenvorlage" ;
+ Text [ swedish ] = "~Teckenformatmall" ;
+ Text [ danish ] = "Tegntypografi" ;
+ Text [ italian ] = "~Modelli di carattere" ;
+ Text [ spanish ] = "Est~ilo de caracteres" ;
+ Text [ french ] = "Style de ~caractères" ;
+ Text [ dutch ] = "~Tekenopmaakprofiel" ;
+ Text [ portuguese ] = "~Estilos de caracteres" ;
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ russian ] = "Ñòèëü çíàêîâ";
+ Text[ polish ] = "Styl znaku";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ chinese_traditional ] = "¤å¦r¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯Çü(~C)";
+ Text[ turkish ] = "~Karakter biçimi";
+ Text[ language_user1 ] = "All \"Vorlage\"/Styles are always written with capital S. 10.5.00EM";
+ };
+ ListBox LB_CHAR_STYLE
+ {
+ Pos = MAP_APPFONT ( 65 , 30 ) ;
+ Size = MAP_APPFONT ( 75 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Sort = TRUE ;
+ };
+ FixedText FT_FORMAT
+ {
+ Pos = MAP_APPFONT ( 12 , 50 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Format" ;
+ Text [ English ] = "~Format" ;
+ Text [ english_us ] = "F~ormat" ;
+ Text [ portuguese_brazilian ] = "Format" ;
+ Text [ swedish ] = "~Format" ;
+ Text [ danish ] = "~Format" ;
+ Text [ italian ] = "~Formato" ;
+ Text [ spanish ] = "~Formato" ;
+ Text [ french ] = "~Format" ;
+ Text [ dutch ] = "~Opmaak" ;
+ Text [ portuguese ] = "~Formato" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ìïñ~öÞ";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "~Format";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FORMAT
+ {
+ Pos = MAP_APPFONT ( 65 , 48 ) ;
+ Size = MAP_APPFONT ( 75 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_POS
+ {
+ Pos = MAP_APPFONT ( 12 , 68 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Position" ;
+ Text [ English ] = "~Position" ;
+ Text [ english_us ] = "Position" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ swedish ] = "~Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "~Posizione" ;
+ Text [ spanish ] = "~Posición" ;
+ Text [ french ] = "~Position" ;
+ Text [ dutch ] = "~Positie" ;
+ Text [ portuguese ] = "~Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_POS
+ {
+ Pos = MAP_APPFONT ( 65 , 66 ) ;
+ Size = MAP_APPFONT ( 75 , 60 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Links" ; > ;
+ < "Rechts" ; > ;
+ < "Innen" ; > ;
+ < "Außen" ; > ;
+ };
+ StringList [ English ] =
+ {
+ < "Links" ; > ;
+ < "Rechts" ; > ;
+ < "Innen" ; > ;
+ < "Außen" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "Left" ; > ;
+ < "Right" ; > ;
+ < "Inner" ; > ;
+ < "outer" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Links" ; > ;
+ < "Rechts" ; > ;
+ < "Innen" ; > ;
+ < "Außen" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Vänster" ; > ;
+ < "Höger" ; > ;
+ < "Inre" ; > ;
+ < "utanför" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Venstre" ; > ;
+ < "Højre" ; > ;
+ < "Inderside" ; > ;
+ < "Yderside" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Sinistra" ; > ;
+ < "Destra" ; > ;
+ < "Interno" ; > ;
+ < "Fuori" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Izquierda" ; > ;
+ < "Derecha" ; > ;
+ < "Interior" ; > ;
+ < "Exterior" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "À gauche" ; > ;
+ < "À droite" ; > ;
+ < "A l'intérieur" ; > ;
+ < "A l'extérieur" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Links" ; > ;
+ < "Rechts" ; > ;
+ < "Binnen" ; > ;
+ < "Buiten" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Esquerda" ; > ;
+ < "Direita" ; > ;
+ < "Interior" ; > ;
+ < "Exterior" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×ó" ; > ;
+ < "ÓÒ" ; > ;
+ < "ÄÚ" ; > ;
+ < "Íâ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Ñëåâà" ; > ;
+ < "Ñïðàâà" ; > ;
+ < "Âíóòðè" ; > ;
+ < "Ñíàðóæè" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Z lewej" ; > ;
+ < "Z prawej" ; > ;
+ < "W œrodku" ; > ;
+ < "Na zewn¹trz" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "¶" ; > ;
+ < "‰E" ; > ;
+ < "“à‘¤" ; > ;
+ < "ŠO‘¤" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¥ª" ; > ;
+ < "¥k" ; > ;
+ < "¤º" ; > ;
+ < "¥~" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "Úáì ÇáíÓÇÑ" ; > ;
+ < "Úáì Çáíãíä" ; > ;
+ < "Ýí ÇáÏÇÎá" ; > ;
+ < "Ýí ÇáÎÇÑÌ" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÁñéóôåñÜ" ; > ;
+ < "ÄåîéÜ" ; > ;
+ < "ÅóùôåñéêÜ" ; > ;
+ < "ÅîùôåñéêÜ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¿ÞÂÊ" ; > ;
+ < "¿À¸¥ÂÊ" ; > ;
+ < "³»ºÎ" ; > ;
+ < "¿ÜºÎ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Sol" ; > ;
+ < "Sað" ; > ;
+ < "Ýç" ; > ;
+ < "Dýþ" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ FixedText FT_OFFSET
+ {
+ Pos = MAP_APPFONT ( 12 , 86 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Abstand" ;
+ Text [ English ] = "~Offset" ;
+ Text [ english_us ] = "Spacing" ;
+ Text [ portuguese_brazilian ] = "Abstand" ;
+ Text [ swedish ] = "~Avstånd" ;
+ Text [ danish ] = "Afstand" ;
+ Text [ italian ] = "Distan~za" ;
+ Text [ spanish ] = "E~spacio" ;
+ Text [ french ] = "~Écart" ;
+ Text [ dutch ] = "~Afstand" ;
+ Text [ portuguese ] = "Es~paçamento" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "Ðàññòîÿíèå";
+ Text[ polish ] = "Odstêp";
+ Text[ japanese ] = "ŠÔŠu";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÇáÊÈÇÚÏ";
+ Text[ greek ] = "~Áðüóôáóç";
+ Text[ korean ] = "°£°Ý";
+ Text[ turkish ] = "~Uzaklýk";
+ };
+ MetricField MF_OFFSET
+ {
+ Pos = MAP_APPFONT ( 65 , 84 ) ;
+ Size = MAP_APPFONT ( 45 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 9999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_NUM_INVERVAL
+ {
+ Pos = MAP_APPFONT ( 12 , 104 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Intervall" ;
+ Text [ English ] = "~Interval" ;
+ Text [ english_us ] = "Interval" ;
+ Text [ portuguese_brazilian ] = "Intervall" ;
+ Text [ swedish ] = "~Intervall" ;
+ Text [ danish ] = "Interval" ;
+ Text [ italian ] = "I~ntervallo" ;
+ Text [ spanish ] = "~Intervalo" ;
+ Text [ french ] = "~Intervalle" ;
+ Text [ dutch ] = "~Interval" ;
+ Text [ portuguese ] = "~Intervalo" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "Èíòåðâàë";
+ Text[ polish ] = "Przedzia³";
+ Text[ japanese ] = "”Ô†•t‚¯‚ÌŠÔŠu";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÇáÝÇÕá";
+ Text[ greek ] = "ÄéÜóôçìá";
+ Text[ korean ] = "±¸°£";
+ Text[ turkish ] = "~Aralýk";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_NUM_INVERVAL
+ {
+ Pos = MAP_APPFONT ( 65 , 102 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 1000 ;
+ First = 1 ;
+ Last = 1000 ;
+ SpinSize = 1 ;
+ };
+ FixedText FT_NUM_ROWS
+ {
+ Pos = MAP_APPFONT ( 100 , 104 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Zeilen" ;
+ Text [ English ] = "Rows" ;
+ Text [ english_us ] = "lines" ;
+ Text [ portuguese_brazilian ] = "Zeilen" ;
+ Text [ swedish ] = "Rader" ;
+ Text [ danish ] = "linjer" ;
+ Text [ italian ] = "Righe" ;
+ Text [ spanish ] = "Líneas" ;
+ Text [ french ] = "lignes" ;
+ Text [ dutch ] = "Regels" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÃÓØÑ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "¼±";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_DISPLAY
+ {
+ Pos = MAP_APPFONT ( 6 , 19 ) ;
+ Size = MAP_APPFONT ( 140 , 103 ) ;
+ Text = "Anzeige" ;
+ Text [ English ] = "Display" ;
+ Text [ english_us ] = "View" ;
+ Text [ portuguese_brazilian ] = "Anzeige" ;
+ Text [ swedish ] = "Visa" ;
+ Text [ danish ] = "Vis" ;
+ Text [ italian ] = "Visualizzazione" ;
+ Text [ spanish ] = "Visualización" ;
+ Text [ french ] = "Affichage" ;
+ Text [ dutch ] = "Weergave" ;
+ Text [ portuguese ] = "Vista" ;
+ Text[ chinese_simplified ] = "ÏÔʾ";
+ Text[ russian ] = "Ïîêàç";
+ Text[ polish ] = "Wyœwietlenie";
+ Text[ japanese ] = "•\\Ž¦";
+ Text[ chinese_traditional ] = "Åã¥Ü";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐñïâïëÞ";
+ Text[ korean ] = "º¸±â";
+ Text[ turkish ] = "Görünüm";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_DIVISOR
+ {
+ Pos = MAP_APPFONT ( 158 , 32 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "~Text" ;
+ Text [ English ] = "~Text" ;
+ Text [ portuguese ] = "~Texto" ;
+ Text [ english_us ] = "Text" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text [ swedish ] = "T~ext" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ italian ] = "T~esto" ;
+ Text [ spanish ] = "Te~xto" ;
+ Text [ french ] = "~Texte" ;
+ Text [ dutch ] = "~Tekst" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "ÇáäÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "M~etin";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_DIVISOR
+ {
+ Pos = MAP_APPFONT ( 186 , 31 ) ;
+ Size = MAP_APPFONT ( 62 , 12 ) ;
+ Left = TRUE ;
+ Border = TRUE ;
+ };
+ FixedText FT_DIV_INTERVAL
+ {
+ Pos = MAP_APPFONT ( 158 , 46 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "A~lle" ;
+ Text [ English ] = "A~ll" ;
+ // Disable = TRUE ;
+ Text [ english_us ] = "Every" ;
+ Text [ portuguese_brazilian ] = "Alle" ;
+ Text [ swedish ] = "A~lla" ;
+ Text [ danish ] = "Alle" ;
+ Text [ italian ] = "~Tutti" ;
+ Text [ spanish ] = "Ca~da" ;
+ Text [ french ] = "~Toutes les" ;
+ Text [ dutch ] = "~Alle" ;
+ Text [ portuguese ] = "Tu~do" ;
+ Text[ chinese_simplified ] = "ÿ";
+ Text[ russian ] = "Âñå";
+ Text[ polish ] = "Co";
+ Text[ japanese ] = "‚·‚ׂÄ";
+ Text[ chinese_traditional ] = "¨C";
+ Text[ arabic ] = "ßá";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "ÊÜèå";
+ Text[ korean ] = "¸ðµç";
+ Text[ turkish ] = "~Tümü";
+ };
+ NumericField NF_DIV_INTERVAL
+ {
+ Pos = MAP_APPFONT ( 186 , 44 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 1000 ;
+ First = 0 ;
+ Last = 1000 ;
+ SpinSize = 1 ;
+ // Disable = TRUE ;
+ };
+ FixedText FT_DIV_ROWS
+ {
+ Pos = MAP_APPFONT ( 221 , 46 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "Zeilen" ;
+ Text [ English ] = "Rows" ;
+ Text [ english_us ] = "Lines" ;
+ Text [ portuguese_brazilian ] = "Zeilen" ;
+ Text [ swedish ] = "Rader" ;
+ Text [ danish ] = "linjer" ;
+ Text [ italian ] = "Righe" ;
+ Text [ spanish ] = "Líneas" ;
+ Text [ french ] = "lignes" ;
+ Text [ dutch ] = "Regels" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÃÓØÑ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "¼±";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_DIVISOR
+ {
+ Pos = MAP_APPFONT ( 152 , 19 ) ;
+ Size = MAP_APPFONT ( 102 , 44 ) ;
+ Text = "Teiler" ;
+ Text [ English ] = "Divisor" ;
+ Text [ english_us ] = "Separator" ;
+ Text [ portuguese_brazilian ] = "Teiler" ;
+ Text [ swedish ] = "Delare" ;
+ Text [ danish ] = "Separator" ;
+ Text [ italian ] = "Separatore" ;
+ Text [ spanish ] = "Separador" ;
+ Text [ french ] = "Séparateur" ;
+ Text [ dutch ] = "Deelteken" ;
+ Text [ portuguese ] = "Separador" ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "ŽdØ‚è";
+ Text[ chinese_traditional ] = "¤À¹j²Å";
+ Text[ arabic ] = "ÇáÝÇÕá";
+ Text[ greek ] = "Äéá÷ùñéóôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ";
+ Text[ turkish ] = "Ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_COUNT_EMPTYLINES
+ {
+ Pos = MAP_APPFONT ( 158 , 80 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "L~eerzeilen" ;
+ Text [ ENGLISH ] = "~Empty lines" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Blank lines" ;
+ Text [ portuguese_brazilian ] = "Leerzeilen" ;
+ Text [ swedish ] = "T~omma rader" ;
+ Text [ danish ] = "Tomme rækker" ;
+ Text [ italian ] = "~Righe vuote" ;
+ Text [ spanish ] = "Líneas en ~blanco" ;
+ Text [ french ] = "~Renvois à la ligne" ;
+ Text [ dutch ] = "~Tussenregels" ;
+ Text [ portuguese ] = "Linhas em ~branco" ;
+ Text[ chinese_simplified ] = "¿ÕÐÐ";
+ Text[ russian ] = "Ïóñòûå ñòðîêè";
+ Text[ polish ] = "Spacje";
+ Text[ japanese ] = "‹ó”’‚Ìs";
+ Text[ chinese_traditional ] = "ªÅ¦æ";
+ Text[ arabic ] = "ÇáÃÓØÑ ÇáÝÇÑÛÉ";
+ Text[ greek ] = "ÊåíÝò ãñáììÝò";
+ Text[ korean ] = "ºó ÁÙ";
+ Text[ turkish ] = "B~oþ satýrlar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_COUNT_FRAMELINES
+ {
+ Pos = MAP_APPFONT ( 158 , 93 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Zeilen in Te~xtrahmen" ;
+ Text [ ENGLISH ] = "Text frame l~ines" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Lines in text frames" ;
+ Text [ portuguese_brazilian ] = "Zeilen in Textrahmen" ;
+ Text [ swedish ] = "Rader i te~xtram" ;
+ Text [ danish ] = "Rækker i tekstboks" ;
+ Text [ italian ] = "Rig~he nella cornice di testo" ;
+ Text [ spanish ] = "Líneas en ma~rco de texto" ;
+ Text [ french ] = "Lignes dans le cadre texte" ;
+ Text [ dutch ] = "~Regels in tekstkaders" ;
+ Text [ portuguese ] = "Linhas na ~moldura do texto" ;
+ Text[ chinese_simplified ] = "Îı¾¿òÄÚµÄÐÐ";
+ Text[ russian ] = "Ñòðîêè â òåêñòîâîé ðàìêå";
+ Text[ polish ] = "Wi~ersze w ramce tekstowej";
+ Text[ japanese ] = "÷½Ä˜g“à‚Ìs";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô¤ºªº¦æ";
+ Text[ arabic ] = "ÃÓØÑ Ýí ÅØÇÑ ÇáäÕ";
+ Text[ greek ] = "ÃñáììÝò óå ðëáßóéï êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓÀÇ ¼±";
+ Text[ turkish ] = "Metin kutusu içindeki sa~týrlar";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_RESTART_PAGE
+ {
+ Pos = MAP_APPFONT ( 158 , 106 );
+ Size = MAP_APPFONT ( 90 , 10 );
+ Text = "~Neustart am Seitenanfang";
+ Text [ ENGLISH ] = "~Restart each new page";
+ TabStop = TRUE;
+ };
+ GroupBox GB_COUNT
+ {
+ Pos = MAP_APPFONT ( 152 , 67 ) ;
+ Size = MAP_APPFONT ( 102 , 55 ) ;
+ Text = "Zählen" ;
+ Text [ English ] = "Count" ;
+ Text [ english_us ] = "Count" ;
+ Text [ portuguese_brazilian ] = "Zählen" ;
+ Text [ swedish ] = "Räkna" ;
+ Text [ danish ] = "Tæl" ;
+ Text [ italian ] = "Conta" ;
+ Text [ spanish ] = "Contar" ;
+ Text [ french ] = "Compter" ;
+ Text [ dutch ] = "Tellen" ;
+ Text [ portuguese ] = "Contar" ;
+ Text[ chinese_simplified ] = "¼ÆÊý";
+ Text[ russian ] = "×èñëà";
+ Text[ polish ] = "Licz";
+ Text[ japanese ] = "”‚¦‚é";
+ Text[ chinese_traditional ] = "­p¼Æ";
+ Text[ arabic ] = "ÚÏ";
+ Text[ greek ] = "ÊáôáìÝôñçóç";
+ Text[ korean ] = "Ä«¿îÆ®";
+ Text[ turkish ] = "Say";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Line Numbering" ;
+ Text [ portuguese_brazilian ] = "Zeilennumerierung" ;
+ Text [ swedish ] = "Radnumrering" ;
+ Text [ danish ] = "Linjenummerering" ;
+ Text [ italian ] = "Numerazione righe" ;
+ Text [ spanish ] = "Numeración de líneas" ;
+ Text [ french ] = "Numérotation de lignes" ;
+ Text [ dutch ] = "Regelnummering" ;
+ Text [ portuguese ] = "Numeração de linhas" ;
+ Text[ chinese_simplified ] = "ÐбàºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ ñòðîê";
+ Text[ polish ] = "Numeracja wierszy";
+ Text[ japanese ] = "s‚̔Ԇ•t‚¯";
+ Text[ chinese_traditional ] = "¦æ¼Æ";
+ Text[ arabic ] = "ÊÑÞíã ÇáÃÓØÑ";
+ Text[ greek ] = "Áñßèìçóç ãñáììþí";
+ Text[ korean ] = "¼± ¹øÈ£";
+ Text[ turkish ] = "Satýr numaralamasý";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/misc/makefile.mk b/sw/source/ui/misc/makefile.mk
new file mode 100644
index 000000000000..ee09ea677cf4
--- /dev/null
+++ b/sw/source/ui/misc/makefile.mk
@@ -0,0 +1,141 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=misc
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..$/ui_1st$/ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ bookmark.cxx \
+ docfnote.cxx \
+ glosbib.cxx \
+ glosdoc.cxx \
+ glossary.cxx \
+ glshell.cxx \
+ hdftctrl.cxx \
+ insfnote.cxx \
+ insrule.cxx \
+ linenum.cxx \
+ num.cxx \
+ outline.cxx \
+ pgfnote.cxx \
+ redlndlg.cxx \
+ srtdlg.cxx \
+ tmpldlg.cxx
+
+SRCFILES=\
+ bookmark.src \
+ docfnote.src \
+ glossary.src \
+ glosbib.src \
+ insfnote.src \
+ insrule.src \
+ linenum.src \
+ num.src \
+ outline.src \
+ pgfnote.src \
+ redlndlg.src \
+ srtdlg.src \
+ tmpldlg.src
+
+SLOFILES = \
+ $(SLO)$/bookmark.obj \
+ $(SLO)$/docfnote.obj \
+ $(SLO)$/glosbib.obj \
+ $(SLO)$/glosdoc.obj \
+ $(SLO)$/glossary.obj \
+ $(SLO)$/glshell.obj \
+ $(SLO)$/hdftctrl.obj \
+ $(SLO)$/insfnote.obj \
+ $(SLO)$/insrule.obj \
+ $(SLO)$/linenum.obj \
+ $(SLO)$/num.obj \
+ $(SLO)$/outline.obj \
+ $(SLO)$/pgfnote.obj \
+ $(SLO)$/redlndlg.obj \
+ $(SLO)$/srtdlg.obj \
+ $(SLO)$/tmpldlg.obj
+
+EXCEPTIONSFILES = \
+ $(SLO)$/glosdoc.obj \
+ $(SLO)$/glosbib.obj \
+ $(SLO)$/glossary.obj \
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
new file mode 100644
index 000000000000..4c8c209a7130
--- /dev/null
+++ b/sw/source/ui/misc/num.cxx
@@ -0,0 +1,1000 @@
+/*************************************************************************
+ *
+ * $RCSfile: num.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define USE_NUMTABPAGES
+#define _NUM_CXX
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXIMGMGR_HXX //autogen
+#include <sfx2/imgmgr.hxx>
+#endif
+#ifndef _GALLERY_HXX_
+#include <svx/gallery.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_IMPGRF_HXX //autogen
+#include <svx/impgrf.hxx>
+#endif
+#ifndef _SVX_CHARMAP_HXX //autogen
+#include <svx/charmap.hxx>
+#endif
+#ifndef _SV_MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#ifndef _SVX_NUMITEM_HXX //autogen wg. SvxNumBulletItem
+#include <svx/numitem.hxx>
+#endif
+
+
+#ifndef _SWVSET_HXX //autogen
+#include <swvset.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+#ifndef _DOCSTYLE_HXX
+#include <docstyle.hxx>
+#endif
+#ifndef _CHARFMT_HXX
+#include <charfmt.hxx>
+#endif
+#ifndef _UINUMS_HXX
+#include <uinums.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _SHELLRES_HXX
+#include <shellres.hxx>
+#endif
+#ifndef _OUTLINE_HXX
+#include <outline.hxx>
+#endif
+#ifndef _NUM_HXX
+#include <num.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _FRMUI_HRC
+#include <frmui.hrc>
+#endif
+#ifndef _NUM_HRC
+#include <num.hrc>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+
+
+static BOOL bLastRelative = FALSE;
+
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+SwNumPositionTabPage::SwNumPositionTabPage(Window* pParent,
+ const SfxItemSet& rSet) :
+ SfxTabPage( pParent, SW_RES( TP_NUM_POSITION ), rSet ),
+ aLevelGB( this, ResId(GB_LEVEL )),
+ aLevelLB( this, ResId(LB_LEVEL )),
+ aPositionGB( this, ResId(GB_POSITION )),
+ aAlignFT( this, ResId(FT_ALIGN )),
+ aAlignLB( this, ResId(LB_ALIGN )),
+ aDistBorderFT( this, ResId(FT_BORDERDIST )),
+ aDistBorderMF( this, ResId(MF_BORDERDIST )),
+ aDistNumFT( this, ResId(FT_NUMDIST )),
+ aDistNumMF( this, ResId(MF_NUMDIST )),
+ aRelativeCB( this, ResId(CB_RELATIVE )),
+ aIndentFT( this, ResId(FT_INDENT )),
+ aIndentMF( this, ResId(MF_INDENT )),
+ aStandardPB( this, ResId(PB_STANDARD )),
+ aPreviewGB( this, ResId(GB_PREVIEW )),
+ aPreviewWIN( this, ResId(WIN_PREVIEW )),
+ bInInintControl(FALSE),
+ pActNum(0),
+ pOutlineDlg(0),
+ pSaveNum(0)
+{
+ FreeResource();
+ SetExchangeSupport();
+ aPreviewWIN.SetBackground(Wallpaper(Color(COL_TRANSPARENT)));
+
+ aRelativeCB.Check();
+ aAlignLB.SetSelectHdl(LINK(this, SwNumPositionTabPage, EditModifyHdl));
+
+ Link aLk = LINK(this, SwNumPositionTabPage, DistanceHdl);
+ aDistBorderMF.SetUpHdl(aLk);
+ aDistNumMF.SetUpHdl(aLk);
+ aIndentMF.SetUpHdl(aLk);
+ aDistBorderMF.SetDownHdl(aLk);
+ aDistNumMF.SetDownHdl(aLk);
+ aIndentMF.SetDownHdl(aLk);
+ aDistBorderMF.SetLoseFocusHdl(aLk);
+ aDistNumMF.SetLoseFocusHdl(aLk);
+ aIndentMF.SetLoseFocusHdl(aLk);
+
+ aLevelLB.SetSelectHdl(LINK(this, SwNumPositionTabPage, LevelHdl));
+ aRelativeCB.SetClickHdl(LINK(this, SwNumPositionTabPage, RelativeHdl));
+ aStandardPB.SetClickHdl(LINK(this, SwNumPositionTabPage, StandardHdl));
+
+ // Ebenen einfuegen
+ for(USHORT i = 1; i <= MAXLEVEL; i++)
+ aLevelLB.InsertEntry(String::CreateFromInt32(i));
+ String sEntry(String::CreateFromAscii("1 - "));
+ sEntry += String::CreateFromInt32(MAXLEVEL);
+ aLevelLB.InsertEntry(sEntry);
+ aLevelLB.SelectEntry(sEntry);
+
+ aRelativeCB.Check(bLastRelative);
+ aPreviewWIN.SetPositionMode();
+
+}
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+SwNumPositionTabPage::~SwNumPositionTabPage()
+{
+ delete pActNum;
+}
+/*-----------------03.12.97 10:06-------------------
+
+--------------------------------------------------*/
+void SwNumPositionTabPage::InitControls()
+{
+ bInInintControl = TRUE;
+ BOOL bRelative = aRelativeCB.IsChecked() && aRelativeCB.IsEnabled();
+// SetMinDist();
+ BOOL bSingleSelection = aLevelLB.GetSelectEntryCount() == 1 && USHRT_MAX != nActNumLvl;
+ aDistBorderMF.Enable(bSingleSelection || bRelative || 0 != pOutlineDlg);
+
+ SwTwips nWidth = pWrtSh->GetAnyCurRect(RECT_FRM).Width();
+
+ aDistBorderMF.SetMax(aDistBorderMF.Normalize( nWidth ), FUNIT_TWIP );
+ aDistNumMF .SetMax(aDistNumMF .Normalize( nWidth ), FUNIT_TWIP );
+ aIndentMF .SetMax(aIndentMF .Normalize( nWidth ), FUNIT_TWIP );
+ SwTwips nLast2 = nWidth /2;
+ aDistBorderMF.SetLast( aDistBorderMF.Normalize( nLast2 ), FUNIT_TWIP );
+ aDistNumMF .SetLast( aDistNumMF .Normalize( nLast2 ), FUNIT_TWIP );
+ aIndentMF .SetLast( aIndentMF .Normalize( nLast2 ), FUNIT_TWIP );
+
+
+ BOOL bSetDistEmpty = FALSE;
+// BOOL bSameDistBorder= TRUE;
+ BOOL bSameDistBorderNum = TRUE;
+ BOOL bSameDist = TRUE;
+ BOOL bSameIndent = TRUE;
+ BOOL bSameAdjust = TRUE;
+
+ const SwNumFmt* aNumFmtArr[MAXLEVEL];
+ const SwFmtVertOrient* pFirstOrient = 0;
+ USHORT nMask = 1;
+ USHORT nLvl = USHRT_MAX;
+// SwTwips nFirstLSpace = 0;
+ long nFirstBorderText = 0;
+ long nFirstBorderTextRelative = -1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ aNumFmtArr[i] = &pActNum->Get(i);
+ if(nActNumLvl & nMask)
+ {
+ if(USHRT_MAX == nLvl)
+ {
+ nLvl = i;
+ pFirstOrient = aNumFmtArr[nLvl]->GetGrfOrient();
+// nFirstLSpace = nLvl > 0 ?
+// aNumFmtArr[nLvl]->GetAbsLSpace() - aNumFmtArr[nLvl - 1]->GetAbsLSpace():
+// aNumFmtArr[nLvl]->GetAbsLSpace();
+ nFirstBorderText = nLvl > 0 ?
+ aNumFmtArr[nLvl]->GetAbsLSpace() + aNumFmtArr[nLvl]->GetFirstLineOffset() -
+ aNumFmtArr[nLvl - 1]->GetAbsLSpace() + aNumFmtArr[nLvl - 1]->GetFirstLineOffset():
+ aNumFmtArr[nLvl]->GetAbsLSpace() + aNumFmtArr[nLvl]->GetFirstLineOffset();
+ }
+
+ if( i > nLvl)
+ {
+ if(bRelative)
+ {
+ if(nFirstBorderTextRelative == -1)
+ nFirstBorderTextRelative =
+ (aNumFmtArr[i]->GetAbsLSpace() + aNumFmtArr[i]->GetFirstLineOffset() -
+ aNumFmtArr[i - 1]->GetAbsLSpace() + aNumFmtArr[i - 1]->GetFirstLineOffset());
+ else
+ bSameDistBorderNum &= nFirstBorderTextRelative ==
+ (aNumFmtArr[i]->GetAbsLSpace() + aNumFmtArr[i]->GetFirstLineOffset() -
+ aNumFmtArr[i - 1]->GetAbsLSpace() + aNumFmtArr[i - 1]->GetFirstLineOffset());
+
+ }
+ else
+ {
+ bSameDistBorderNum &=
+ aNumFmtArr[i]->GetAbsLSpace() - aNumFmtArr[i]->GetFirstLineOffset() ==
+ aNumFmtArr[i - 1]->GetAbsLSpace() - aNumFmtArr[i - 1]->GetFirstLineOffset();
+// bSameDistBorder &= aNumFmtArr[i]->GetAbsLSpace() == aNumFmtArr[nLvl]->GetAbsLSpace();
+ }
+
+ bSameDist &= aNumFmtArr[i]->GetCharTextOffset() == aNumFmtArr[nLvl]->GetCharTextOffset();
+ bSameIndent &= aNumFmtArr[i]->GetFirstLineOffset() == aNumFmtArr[nLvl]->GetFirstLineOffset();
+ bSameAdjust &= aNumFmtArr[i]->GetAdjust() == aNumFmtArr[nLvl]->GetAdjust();
+
+ }
+ }
+// else
+// aNumFmtArr[i] = 0;
+ nMask <<= 1;
+
+ }
+ if(bSameDistBorderNum)
+// if(bSameDistBorder)
+ {
+ long nDistBorderNum;
+ if(bRelative)
+ {
+ nDistBorderNum = (long)aNumFmtArr[nLvl]->GetAbsLSpace()+ aNumFmtArr[nLvl]->GetFirstLineOffset();
+ if(nLvl)
+ nDistBorderNum -= (long)aNumFmtArr[nLvl - 1]->GetAbsLSpace()+ aNumFmtArr[nLvl - 1]->GetFirstLineOffset();
+ }
+ else
+ {
+ nDistBorderNum = (long)aNumFmtArr[nLvl]->GetAbsLSpace()+ aNumFmtArr[nLvl]->GetFirstLineOffset();
+ }
+ aDistBorderMF.SetValue(aDistBorderMF.Normalize(nDistBorderNum),FUNIT_TWIP);
+
+// aDistBorderMF.SetValue(aDistBorderMF.Normalize(
+// bRelative ? (long)nFirstLSpace : (long)aNumFmtArr[nLvl]->GetAbsLSpace()),
+// FUNIT_TWIP);
+ }
+ else
+ bSetDistEmpty = TRUE;
+
+ if(bSameDist)
+ aDistNumMF .SetValue(aDistNumMF.Normalize(aNumFmtArr[nLvl]->GetCharTextOffset()), FUNIT_TWIP);
+ else
+ aDistNumMF.SetText(aEmptyStr);
+ if(bSameIndent)
+ aIndentMF.SetValue(aIndentMF.Normalize(-aNumFmtArr[nLvl]->GetFirstLineOffset()), FUNIT_TWIP);
+ else
+ aIndentMF.SetText(aEmptyStr);
+
+ if(bSameAdjust)
+ {
+ USHORT nPos = 1; // zentriert
+ if(aNumFmtArr[nLvl]->GetAdjust() == SVX_ADJUST_LEFT)
+ nPos = 0;
+ else if(aNumFmtArr[nLvl]->GetAdjust() == SVX_ADJUST_RIGHT)
+ nPos = 2;
+ aAlignLB.SelectEntryPos(nPos);
+ }
+ else
+ {
+ aAlignLB.SetNoSelection();
+ }
+
+ if(TRUE == bSetDistEmpty)
+ aDistBorderMF.SetText(aEmptyStr);
+
+ bInInintControl = FALSE;
+}
+/*-----------------03.12.97 12:21-------------------
+
+--------------------------------------------------*/
+/*void SwNumPositionTabPage::SetMinDist()
+{
+ // JP 03.04.97: Bug 32903 - MinWert fuer DistBorderMF setzen
+
+ // ggfs. den akt. NumLevel anpassen
+ USHORT nStart = 0;
+ USHORT nEnd = MAXLEVEL;
+ USHORT nMask = 1;
+ USHORT nTmpLvl = USHRT_MAX;
+ SwTwips nMinVal = 0;
+ BOOL bInit = FALSE;
+
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ {
+ if(USHRT_MAX == nTmpLvl)
+ {
+ nTmpLvl = i;
+ const SwNumFmt& rNumFmt = pActNum->Get( nTmpLvl );
+
+ nMinVal = - rNumFmt.GetFirstLineOffset();
+ if( nTmpLvl )
+ nMinVal -= pActNum->Get( nTmpLvl - 1 ).GetAbsLSpace();
+ }
+ const SwNumFmt& rAktNumFmt = pActNum->Get( nStart );
+ if( rAktNumFmt.GetAbsLSpace() < nMinVal )
+ {
+ bInit = TRUE;
+ SwNumFmt aNumFmt( rAktNumFmt );
+ aNumFmt.SetAbsLSpace( nMinVal );
+ pActNum->Set( nStart, aNumFmt );
+ }
+ }
+ nMask <<=1;
+ }
+
+ if(!aRelativeCB.IsChecked() && aRelativeCB.IsEnabled())
+ nMinVal = 0;
+ nMinVal = aDistBorderMF.Normalize( nMinVal );
+ aDistBorderMF.SetMin( nMinVal, FUNIT_TWIP );
+ aDistBorderMF.SetFirst( nMinVal, FUNIT_TWIP );
+ if(bInit)
+ InitControls();
+}
+ */
+
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+void SwNumPositionTabPage::ActivatePage(const SfxItemSet& rSet)
+{
+ const SfxPoolItem* pItem;
+ UINT16 nTmpNumLvl =
+ pOutlineDlg ? pOutlineDlg->GetActNumLevel() : 0;
+// ((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel();
+ const SfxItemSet* pExampleSet = GetTabDialog()->GetExampleSet();
+ if(pExampleSet && pExampleSet->GetItemState(FN_PARAM_NUM_PRESET, FALSE, &pItem))
+ {
+ bPreset = ((const SfxBoolItem*)pItem)->GetValue();
+ }
+ //
+ bModified = (!pActNum->GetNumFmt( 0 ) || bPreset);
+ if(*pActNum != *pSaveNum ||
+ nActNumLvl != nTmpNumLvl )
+ {
+ *pActNum = *pSaveNum;
+ nActNumLvl = nTmpNumLvl;
+ USHORT nMask = 1;
+ aLevelLB.SetUpdateMode(FALSE);
+ aLevelLB.SetNoSelection();
+ aLevelLB.SelectEntryPos( MAXLEVEL, nActNumLvl == USHRT_MAX);
+ if(nActNumLvl != USHRT_MAX)
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ aLevelLB.SelectEntryPos( i, TRUE);
+ nMask <<= 1 ;
+ }
+ aLevelLB.SetUpdateMode(TRUE);
+ InitControls();
+ }
+ aRelativeCB.Enable(1 != nActNumLvl);
+ aPreviewWIN.Invalidate();
+}
+
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+int SwNumPositionTabPage::DeactivatePage(SfxItemSet *pSet)
+{
+ if(pOutlineDlg)
+ pOutlineDlg->SetActNumLevel(nActNumLvl);
+// else
+// ((SwNumBulletTabDialog*)GetTabDialog())->SetActNumLevel(nActNumLvl);
+ if(pSet)
+ FillItemSet(*pSet);
+ return TRUE;
+
+}
+
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+BOOL SwNumPositionTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ if(pOutlineDlg)
+ *pOutlineDlg->GetNumRule() = *pActNum;
+ else if(bModified && pActNum)
+ {
+ *pSaveNum = *pActNum;
+ rSet.Put(SwUINumRuleItem( *pSaveNum ));
+ rSet.Put(SfxBoolItem(FN_PARAM_NUM_PRESET, FALSE));
+ }
+ return bModified;
+}
+
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+void SwNumPositionTabPage::Reset( const SfxItemSet& rSet )
+{
+ const SfxPoolItem* pItem;
+ if(pOutlineDlg)
+ {
+ pSaveNum = pOutlineDlg->GetNumRule();
+ aLevelLB.EnableMultiSelection(FALSE);
+ }
+ else if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_ACT_NUMBER, FALSE, &pItem))
+ pSaveNum = ((SwUINumRuleItem*)pItem)->GetNumRule();
+
+ nActNumLvl =
+ pOutlineDlg ? pOutlineDlg->GetActNumLevel() : 0;
+// ((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel();
+ USHORT nMask = 1;
+ aLevelLB.SetUpdateMode(FALSE);
+ aLevelLB.SetNoSelection();
+ if(nActNumLvl == USHRT_MAX)
+ {
+ aLevelLB.SelectEntryPos( MAXLEVEL, TRUE);
+ }
+ else
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ aLevelLB.SelectEntryPos( i, TRUE);
+ nMask <<= 1;
+ }
+ aLevelLB.SetUpdateMode(TRUE);
+
+ if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_CHILD_LEVELS, FALSE, &pItem))
+ bHasChild = ((const SfxBoolItem*)pItem)->GetValue();
+ if(!pActNum)
+ pActNum = new SwNumRule(*pSaveNum);
+ else if(*pSaveNum != *pActNum)
+ *pActNum = *pSaveNum;
+ aPreviewWIN.SetNumRule(pActNum);
+ InitControls();
+ bModified = FALSE;
+}
+
+/*-----------------03.12.97 10:02-------------------
+
+--------------------------------------------------*/
+SfxTabPage* SwNumPositionTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwNumPositionTabPage(pParent, rAttrSet);
+}
+
+/*-----------------04.12.97 12:51-------------------
+
+--------------------------------------------------*/
+void SwNumPositionTabPage::SetWrtShell(SwWrtShell* pSh)
+{
+ pWrtSh = pSh;
+ const SwRect& rPrtRect = pWrtSh->GetAnyCurRect(RECT_PAGE);
+ aPreviewWIN.SetPageWidth(rPrtRect.Width());
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &pWrtSh->GetView()));
+ if(eMetric == FUNIT_MM)
+ {
+ aDistBorderMF .SetDecimalDigits(1);
+ aDistNumMF .SetDecimalDigits(1);
+ aIndentMF .SetDecimalDigits(1);
+ }
+ aDistBorderMF .SetUnit( eMetric );
+ aDistNumMF .SetUnit( eMetric );
+ aIndentMF .SetUnit( eMetric );
+}
+
+/*-----------------03.12.97 11:06-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwNumPositionTabPage, EditModifyHdl, Edit *, pEdit )
+{
+
+ USHORT nStart = 0;
+ USHORT nEnd = MAXLEVEL;
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ {
+ SwNumFmt aNumFmt(pActNum->Get(i));
+
+ USHORT nPos = aAlignLB.GetSelectEntryPos();
+ SvxAdjust eAdjust = SVX_ADJUST_CENTER;
+ if(nPos == 0)
+ eAdjust = SVX_ADJUST_LEFT;
+ else if(nPos == 2)
+ eAdjust = SVX_ADJUST_RIGHT;
+ aNumFmt.SetAdjust( eAdjust );
+ pActNum->Set(i, aNumFmt);
+ }
+ nMask <<= 1;
+ }
+ SetModified();
+ return 0;
+}
+/*-----------------03.12.97 11:11-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwNumPositionTabPage, LevelHdl, ListBox *, pBox )
+{
+ USHORT nSaveNumLvl = nActNumLvl;
+ nActNumLvl = 0;
+ if(pBox->IsEntryPosSelected( MAXLEVEL ) &&
+ (pBox->GetSelectEntryCount() == 1 || nSaveNumLvl != 0xffff))
+ {
+ nActNumLvl = 0xFFFF;
+ pBox->SetUpdateMode(FALSE);
+ for( USHORT i = 0; i < MAXLEVEL; i++ )
+ pBox->SelectEntryPos( i, FALSE );
+ pBox->SetUpdateMode(TRUE);
+ }
+ else if(pBox->GetSelectEntryCount())
+ {
+ USHORT nMask = 1;
+ for( USHORT i = 0; i < MAXLEVEL; i++ )
+ {
+ if(pBox->IsEntryPosSelected( i ))
+ nActNumLvl |= nMask;
+ nMask <<= 1;
+ }
+ pBox->SelectEntryPos( MAXLEVEL, FALSE );
+ }
+ else
+ {
+ nActNumLvl = nSaveNumLvl;
+ USHORT nMask = 1;
+ for( USHORT i = 0; i < MAXLEVEL; i++ )
+ {
+ if(nActNumLvl & nMask)
+ {
+ pBox->SelectEntryPos(i);
+ break;
+ }
+ nMask <<=1;
+ }
+ }
+ aRelativeCB.Enable(1 != nActNumLvl);
+ SetModified();
+ InitControls();
+ return 0;
+}
+/*-----------------03.12.97 12:24-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwNumPositionTabPage, DistanceHdl, MetricField *, pFld )
+{
+ if(bInInintControl)
+ return 0;
+ long nValue = pFld->Denormalize(pFld->GetValue(FUNIT_TWIP));
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ {
+ SwNumFmt aNumFmt( pActNum->Get( i ) );
+ if(pFld == &aDistBorderMF)
+ {
+
+ if(aRelativeCB.IsChecked() && aRelativeCB.IsEnabled())
+ {
+ if(0 == i)
+ {
+ long nTmp = aNumFmt.GetFirstLineOffset();
+ aNumFmt.SetAbsLSpace( USHORT(nValue - nTmp));
+ }
+ else
+ {
+ long nTmp = pActNum->Get( i - 1 ).GetAbsLSpace() +
+ pActNum->Get( i - 1 ).GetFirstLineOffset() -
+ pActNum->Get( i ).GetFirstLineOffset();
+
+ aNumFmt.SetAbsLSpace( USHORT(nValue + nTmp));
+ }
+ }
+ else
+ {
+ aNumFmt.SetAbsLSpace( (short)nValue - aNumFmt.GetFirstLineOffset());
+ }
+ }
+ else if(pFld == &aDistNumMF)
+ {
+ aNumFmt.SetCharTextOffset( (short)nValue );
+ }
+ else if(pFld == &aIndentMF)
+ {
+ //jetzt muss mit dem FirstLineOffset auch der AbsLSpace veraendert werden
+ long nDiff = nValue + aNumFmt.GetFirstLineOffset();
+ long nAbsLSpace = aNumFmt.GetAbsLSpace();
+ aNumFmt.SetAbsLSpace(USHORT(nAbsLSpace + nDiff));
+ aNumFmt.SetFirstLineOffset( -(short)nValue );
+ }
+
+ pActNum->Set( i, aNumFmt );
+ }
+ nMask <<= 1;
+ }
+
+ SetModified();
+// SetMinDist();
+ if(!aDistBorderMF.IsEnabled())
+ aDistBorderMF.SetText(aEmptyStr);
+
+ return 0;
+}
+
+/*-----------------04.12.97 12:35-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwNumPositionTabPage, RelativeHdl, CheckBox *, pBox )
+{
+ BOOL bOn = pBox->IsChecked();
+// SetMinDist();
+ BOOL bSingleSelection = aLevelLB.GetSelectEntryCount() == 1 && USHRT_MAX != nActNumLvl;
+ BOOL bSetValue = FALSE;
+ long nValue = 0;
+ if(bOn || bSingleSelection)
+ {
+ USHORT nMask = 1;
+ BOOL bFirst = TRUE;
+ bSetValue = TRUE;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ {
+ const SwNumFmt &rNumFmt = pActNum->Get(i);
+ if(bFirst)
+ {
+ nValue = rNumFmt.GetAbsLSpace();
+ if(bOn && i)
+ nValue -= pActNum->Get(i - 1).GetAbsLSpace();
+ }
+ else
+ bSetValue = nValue == rNumFmt.GetAbsLSpace() - pActNum->Get(i - 1).GetAbsLSpace();
+ bFirst = FALSE;
+ }
+ nMask <<= 1;
+ }
+
+ }
+ if(bSetValue)
+ aDistBorderMF.SetValue(aDistBorderMF.Normalize(nValue), FUNIT_TWIP);
+ else
+ aDistBorderMF.SetText(aEmptyStr);
+ aDistBorderMF.Enable(bOn || bSingleSelection||0 != pOutlineDlg);
+ bLastRelative = bOn;
+ return 0;
+}
+/*-----------------05.12.97 15:33-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwNumPositionTabPage, StandardHdl, PushButton *, EMPTYARG )
+{
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActNumLvl & nMask)
+ {
+ SwNumFmt aNumFmt( pActNum->Get( i ) );
+ SwNumRule aTmpNumRule(pWrtSh->GetUniqueNumRuleName(),
+ pOutlineDlg ? OUTLINE_RULE : NUM_RULE
+ );
+ SwNumFmt aTempFmt(aTmpNumRule.Get( i ));
+ aNumFmt.SetAbsLSpace( aTempFmt.GetAbsLSpace());
+ aNumFmt.SetCharTextOffset( aTempFmt.GetCharTextOffset() );
+ aNumFmt.SetFirstLineOffset( aTempFmt.GetFirstLineOffset() );
+
+ pActNum->Set( i, aNumFmt );
+ }
+ nMask <<= 1;
+ }
+
+ InitControls();
+ SetModified();
+ return 0;
+}
+
+#ifdef DEBUG
+void SwNumPositionTabPage::SetModified(BOOL bRepaint)
+{
+ bModified = TRUE;
+ if(bRepaint)
+ {
+ aPreviewWIN.SetLevel(nActNumLvl);
+ aPreviewWIN.Invalidate();
+ }
+}
+
+#endif
+
+/**************************************************************************/
+/* */
+/* */
+/**************************************************************************/
+
+
+SwSvxNumBulletTabDialog::SwSvxNumBulletTabDialog(Window* pParent,
+ const SfxItemSet* pSwItemSet, SwWrtShell & rSh) :
+ SfxTabDialog(pParent, SW_RES(DLG_SVXTEST_NUM_BULLET), pSwItemSet, FALSE, &aEmptyStr),
+ rWrtSh(rSh),
+ nRetOptionsDialog(USHRT_MAX),
+ sRemoveText(ResId(ST_RESET))
+{
+ FreeResource();
+ GetUserButton()->SetText(sRemoveText);
+ GetUserButton()->SetHelpId(HID_NUM_RESET);
+ GetUserButton()->SetClickHdl(LINK(this, SwSvxNumBulletTabDialog, RemoveNumberingHdl));
+ if(!rWrtSh.GetCurNumRule())
+ GetUserButton()->Enable(FALSE);
+ AddTabPage(RID_SVXPAGE_PICK_SINGLE_NUM, &SvxSingleNumPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_PICK_BULLET, &SvxBulletPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_PICK_NUM, &SvxNumPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_PICK_BMP, &SvxBitmapPickTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_NUM_OPTIONS, &SvxNumOptionsTabPage::Create, 0);
+ AddTabPage(RID_SVXPAGE_NUM_POSITION,&SvxNumPositionTabPage::Create, 0);
+
+}
+/*-----------------07.02.97 12.08-------------------
+
+--------------------------------------------------*/
+
+SwSvxNumBulletTabDialog::~SwSvxNumBulletTabDialog()
+{
+}
+
+/*-----------------07.02.97 14.48-------------------
+
+--------------------------------------------------*/
+
+void SwSvxNumBulletTabDialog::PageCreated(USHORT nPageId, SfxTabPage& rPage)
+{
+ //Namen der Vorlagen und Metric setzen
+ String sNumCharFmt; GetDocPoolNm( RES_POOLCHR_NUM_LEVEL, sNumCharFmt );
+ String sBulletCharFmt; GetDocPoolNm( RES_POOLCHR_BUL_LEVEL, sBulletCharFmt );
+
+ switch ( nPageId )
+ {
+ case RID_SVXPAGE_PICK_NUM:
+ ((SvxNumPickTabPage&)rPage).SetCharFmtNames(sNumCharFmt, sBulletCharFmt);
+ break;
+ case RID_SVXPAGE_PICK_BULLET :
+ ((SvxBulletPickTabPage&)rPage).SetCharFmtName(sBulletCharFmt);
+ break;
+
+ case RID_SVXPAGE_NUM_OPTIONS:
+ {
+ ((SvxNumOptionsTabPage&)rPage).SetCharFmts(sNumCharFmt, sBulletCharFmt);
+ ListBox& rCharFmtLB = ((SvxNumOptionsTabPage&)rPage).GetCharFmtListBox();
+ // Zeichenvorlagen sammeln
+ rCharFmtLB.Clear();
+ rCharFmtLB.InsertEntry( ViewShell::GetShellRes()->aStrNone );
+ SwDocShell* pDocShell = rWrtSh.GetView().GetDocShell();
+ ::FillCharStyleListBox(rCharFmtLB, pDocShell);
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell));
+ ((SvxNumOptionsTabPage&)rPage).SetMetric(eMetric);
+ }
+ break;
+ case RID_SVXPAGE_NUM_POSITION:
+ {
+ SwDocShell* pDocShell = rWrtSh.GetView().GetDocShell();
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell));
+ ((SvxNumPositionTabPage&)rPage).SetMetric(eMetric);
+// ((SvxNumPositionTabPage&)rPage).SetWrtShell(&rWrtSh);
+ }
+ break;
+ }
+}
+/*-----------------17.02.97 16.52-------------------
+
+--------------------------------------------------*/
+short SwSvxNumBulletTabDialog::Ok()
+{
+ short nRet = SfxTabDialog::Ok();
+ pExampleSet->ClearItem(SID_PARAM_NUM_PRESET);
+ return nRet;
+}
+/* -----------------02.12.98 08:35-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK(SwSvxNumBulletTabDialog, RemoveNumberingHdl, PushButton*, EMPTYARG)
+{
+ EndDialog(RET_USER);
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.198 2000/09/18 16:05:58 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.197 2000/07/27 21:16:39 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.196 2000/06/30 15:08:15 os
+ #76568# CreateFromInt32
+
+ Revision 1.195 2000/05/23 19:22:35 jp
+ Bugfixes for Unicode
+
+ Revision 1.194 2000/04/18 15:08:17 os
+ UNICODE
+
+ Revision 1.193 2000/03/03 15:17:02 os
+ StarView remainders removed
+
+ Revision 1.192 2000/02/11 14:56:31 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.191 1999/08/19 14:26:00 OS
+ #67374# embedded graphics in numberings
+
+
+ Rev 1.190 19 Aug 1999 16:26:00 OS
+ #67374# embedded graphics in numberings
+
+ Rev 1.189 23 Apr 1999 16:09:20 OS
+ #64476# Differenz zu numpages.cxx
+
+ Rev 1.188 14 Apr 1999 08:57:14 OS
+ #64476# noch ein Problem behoben
+
+ Rev 1.187 13 Apr 1999 16:04:20 OS
+ #64473# CheckBox an der richtigen Stelle enablen/disablen
+
+ Rev 1.186 08 Apr 1999 13:30:58 OS
+ #64476# SetMinDist wird nicht mehr gebraucht
+
+ Rev 1.185 19 Mar 1999 07:38:10 OS
+ #62656# Abstand Num->Text jetzt richtig
+
+ Rev 1.184 18 Mar 1999 09:25:40 OS
+ #63049# gemogelte Anzeige der Numerierungseinzuege
+
+ Rev 1.183 02 Dec 1998 09:20:56 OS
+ #58263# Entfernen-Button fuer Numerierungen
+
+ Rev 1.182 17 Nov 1998 10:57:20 OS
+ #58263# Numerierungs-Tabseiten aus dem Svx
+
+ Rev 1.181 03 Nov 1998 07:25:04 OS
+ #58263# Numerierungsdialog in den Svx
+
+ Rev 1.180 12 Oct 1998 13:17:26 OS
+ #57760# Fontgroesse fuer das Beispiel eleganter ermitteln
+
+ Rev 1.179 22 Sep 1998 10:04:02 OS
+ #56894# vollstaendig fuer fortlaufende Num. veraendern
+
+ Rev 1.178 08 Sep 1998 17:01:42 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.177 06 Aug 1998 21:41:14 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.176 18 Jul 1998 14:50:46 OS
+ richtige Ebenenanzahl fuer vollst. Numerierung #53233#
+
+ Rev 1.175 09 Jul 1998 14:03:12 OS
+ Kapitelnumerierung jetzt TabDialog
+
+ Rev 1.174 07 Jul 1998 11:31:08 OS
+ InitControls: erst Min/Max setzen, dann Inhalte setzn
+
+ Rev 1.173 07 Jul 1998 09:16:40 OS
+ DisableItem ist nicht zulaessig #52134#
+
+ Rev 1.172 04 Jul 1998 15:44:10 OS
+ Grafikhoehe und Ausrichtung richtig anzeigen #52140#
+
+ Rev 1.171 25 Jun 1998 11:26:48 OS
+ RelLSpace ausbgebaut #51379#
+
+ Rev 1.170 24 Jun 1998 09:00:44 OS
+ MS-Optimierungs-GPF #51425#
+
+
+ --------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/num.hrc b/sw/source/ui/misc/num.hrc
new file mode 100644
index 000000000000..4775a035f304
--- /dev/null
+++ b/sw/source/ui/misc/num.hrc
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: num.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#define GB_LEVEL 1
+#define LB_LEVEL 2
+#define GB_POSITION 3
+#define FT_BORDERDIST 4
+#define MF_BORDERDIST 5
+#define CB_RELATIVE 6
+#define FT_INDENT 7
+#define MF_INDENT 8
+#define FT_NUMDIST 9
+#define MF_NUMDIST 10
+#define FT_ALIGN 11
+#define LB_ALIGN 12
+#define PB_STANDARD 13
+#define GB_PREVIEW 14
+#define WIN_PREVIEW 15
+#define ST_RESET 16
+
+
diff --git a/sw/source/ui/misc/num.src b/sw/source/ui/misc/num.src
new file mode 100644
index 000000000000..dfdadaa2c9de
--- /dev/null
+++ b/sw/source/ui/misc/num.src
@@ -0,0 +1,755 @@
+/*************************************************************************
+ *
+ * $RCSfile: num.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+
+#include "globals.hrc"
+#include "misc.hrc"
+#include "num.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+#include "svx/dialogs.hrc"
+
+/**************************************************************************/
+/* */
+/* TabPage Positionen */
+/* */
+/**************************************************************************/
+TabPage TP_NUM_POSITION
+{
+ HelpID = HID_NUM_POSITION ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE;
+ GroupBox GB_LEVEL
+ {
+ Pos = MAP_APPFONT ( 6 , 1 ) ;
+ Size = MAP_APPFONT ( 38 , 130 ) ;
+ Text = "Ebene" ;
+ Text [ ENGLISH ] = "Level" ;
+ Text [ norwegian ] = "Level" ;
+ Text [ italian ] = "Livello" ;
+ Text [ portuguese_brazilian ] = "Nível" ;
+ Text [ portuguese ] = "Nível" ;
+ Text [ finnish ] = "Taso" ;
+ Text [ danish ] = "Niveau" ;
+ Text [ french ] = "Niveau" ;
+ Text [ swedish ] = "Nivå" ;
+ Text [ dutch ] = "Niveau" ;
+ Text [ spanish ] = "Nivel" ;
+ Text [ english_us ] = "Level" ;
+ Text[ chinese_simplified ] = "¼¶";
+ Text[ russian ] = "Óðîâåíü";
+ Text[ polish ] = "Poziom";
+ Text[ japanese ] = "ÚÍÞÙ";
+ Text[ chinese_traditional ] = "¯Å";
+ Text[ arabic ] = "ÇáãÓÊæì";
+ Text[ greek ] = "Åðßðåäï";
+ Text[ korean ] = "¼öÁØ";
+ Text[ turkish ] = "Düzey";
+ Text[ language_user1 ] = " ";
+ };
+ MultiListBox LB_LEVEL
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 26 , 114 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ Border = TRUE ;
+ SimpleMode = TRUE ;
+ };
+ GroupBox GB_POSITION
+ {
+ Pos = MAP_APPFONT ( 47 , 1 ) ;
+ Size = MAP_APPFONT ( 207 , 77 ) ;
+ Text = "Position und Abstand" ;
+ Text [ ENGLISH ] = "Position and distance" ;
+ Group = TRUE ;
+ Text [ english_us ] = "Position and spacing" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ spanish ] = "Posición y espacio" ;
+ Text [ french ] = "Position et écart" ;
+ Text [ dutch ] = "Positie en afstand" ;
+ Text [ swedish ] = "Position och avstånd" ;
+ Text [ danish ] = "Placering og afstand" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ portuguese ] = "Posicionamento" ;
+ Text[ chinese_simplified ] = "λÖúͼä¸ô";
+ Text[ russian ] = "Ïîçèöèÿ è èíòåðâàë";
+ Text[ polish ] = "Pozycja i odstêp";
+ Text[ japanese ] = "ˆÊ’u‚ÆŠÔŠu";
+ Text[ chinese_traditional ] = "¦ì¸m©M¶¡¹j";
+ Text[ arabic ] = "ÇáãæÞÚ æÇáãÓÇÝÉ";
+ Text[ greek ] = "ÈÝóç êáé áðüóôáóç";
+ Text[ korean ] = "À§Ä¡¿Í °£°Ý";
+ Text[ language_user1 ] = " ";
+ Text[ turkish ] = "Konum ve aralýk";
+ };
+ FixedText FT_BORDERDIST
+ {
+ Pos = MAP_APPFONT ( 50 , 14 ) ;
+ Size = MAP_APPFONT ( 105 , 10 ) ;
+ Text = "Ein~rückung";
+// Text = "Abstand Text <-> Rand" ;
+ Text [ ENGLISH ] = "Distance text <-> border" ;
+ Text [ english_us ] = "Indent" ;
+ Text [ swedish ] = "Indrag" ;
+ Text [ danish ] = "Indrykning" ;
+ Text [ italian ] = "~Rientro" ;
+ Text [ spanish ] = "~Sangría" ;
+ Text [ french ] = "~Retrait" ;
+ Text [ dutch ] = "~Inspringing" ;
+ Text [ portuguese_brazilian ] = "Ab~stand Text <-> Rand" ;
+ Text [ portuguese ] = "A~vanço" ;
+ Text[ chinese_simplified ] = "Ëõ½ø";
+ Text[ russian ] = "Îòñòóï";
+ Text[ polish ] = "Wciêcie";
+ Text[ japanese ] = "ŠÔŠu(~B)";
+ Text[ chinese_traditional ] = "ÁY±Æ";
+ Text[ arabic ] = "ÇáÅÒÇÍÉ";
+ Text[ greek ] = "Åóï÷Þ";
+ Text[ korean ] = "µé¿©¾²±â";
+ Text[ turkish ] = "Girinti";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_RELATIVE
+ {
+ Pos = MAP_APPFONT ( 201 , 14 ) ;
+ Size = MAP_APPFONT ( 49 , 10 ) ;
+ Text = "Relati~v" ;
+ Text [ ENGLISH ] = "Relati~ve" ;
+ Text [ portuguese ] = "~Relativo" ;
+ Text [ english_us ] = "Relati~ve" ;
+ Text [ portuguese_brazilian ] = "Relati~v" ;
+ Text [ swedish ] = "Relati~v" ;
+ Text [ danish ] = "Relativ" ;
+ Text [ italian ] = "Relati~vo" ;
+ Text [ spanish ] = "Relati~vo" ;
+ Text [ french ] = "~Relatif" ;
+ Text [ dutch ] = "Relati~ef" ;
+ Text[ chinese_simplified ] = "Ïà¹Ø(~R)";
+ Text[ russian ] = "Îòíîñèò.";
+ Text[ polish ] = "Wzglêd~ny";
+ Text[ japanese ] = "‘OÚÍÞÙ‚©‚ç(~R)";
+ Text[ chinese_traditional ] = "¬ÛÃö(~R)";
+ Text[ arabic ] = "äÓÈí";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Ó÷åôéêÜ";
+ Text[ korean ] = "ºñ·Ê(~V)";
+ Text[ turkish ] = "Orantýlý";
+ };
+ MetricField MF_BORDERDIST
+ {
+ Pos = MAP_APPFONT ( 158 , 12 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 1999 ;
+ DecimalDigits = 2 ;
+ Value = 0 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 1999 ;
+ SpinSize = 5 ;
+ };
+ FixedText FT_INDENT
+ {
+ Pos = MAP_APPFONT ( 50 , 29 ) ;
+ Size = MAP_APPFONT ( 105 , 10 ) ;
+ Text = "Abstand zum Te~xt" ;
+// Text = "Einr~ückung" ;
+ Text [ ENGLISH ] = "Indent" ;
+ Text [ english_us ] = "Space to Te~xt" ;
+ Text [ swedish ] = "Avstånd till text" ;
+ Text [ danish ] = "Afstand til tekst" ;
+ Text [ italian ] = "~Rientro" ;
+ Text [ spanish ] = "~Distancia al texto" ;
+ Text [ french ] = "~Écart du texte" ;
+ Text [ dutch ] = "Afstand tot ~tekst" ;
+ Text [ portuguese_brazilian ] = "Einr~ückung" ;
+ Text [ portuguese ] = "~Distância do texto" ;
+ Text[ chinese_simplified ] = "ÖÁÕýÎĵľàÀë(~X)";
+ Text[ russian ] = "Ðàññòîÿíèå îò òåêñòà";
+ Text[ polish ] = "Odstêp do tekstu";
+ Text[ japanese ] = "÷½Ä‚Ü‚Å‚ÌŠÔŠu(~X)";
+ Text[ chinese_traditional ] = "¦Ü¤º¤åªº¶ZÖÃ(~X)";
+ Text[ arabic ] = "ÇáãÓÇÝÉ ÍÊì ÇáäÕ";
+ Text[ greek ] = "Áðüóôáóç áðü ~êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®¿ÍÀÇ °£°Ý(~X)";
+ Text[ turkish ] = "Metin uzaklýðý";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_INDENT
+ {
+ Pos = MAP_APPFONT ( 158 , 27 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 1999 ;
+ DecimalDigits = 2 ;
+ Value = 0 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 1999 ;
+ SpinSize = 5 ;
+ };
+ FixedText FT_NUMDIST
+ {
+ Pos = MAP_APPFONT ( 50 , 44 ) ;
+ Size = MAP_APPFONT ( 105 , 10 ) ;
+ Text = "Mindestabstand Nummer <-> Text" ;
+// Text = "Abstand Te~xt <-> Numerierung" ;
+ Text [ ENGLISH ] = "Distance text <-> numbering" ;
+ Text [ english_us ] = "Minimum space numbering <-> text" ;
+ Text [ swedish ] = "Minsta avstånd nummer <-> text" ;
+ Text [ danish ] = "Min. afstand nummer <-> tekst" ;
+ Text [ italian ] = "Distanza testo <-> numerazione" ;
+ Text [ spanish ] = "Distancia mínima Número <-> Texto" ;
+ Text [ french ] = "Écart minimum numéro <-> texte" ;
+ Text [ dutch ] = "Min. afstand nummer <-> tekst" ;
+ Text [ portuguese_brazilian ] = "Abstand Te~xt <-> Numerierung" ;
+ Text [ portuguese ] = "Distância mínima número <-> texto" ;
+ Text[ chinese_simplified ] = "×îС¼ä¸ô ±àºÅÖÁÕýÎÄ(~B)";
+ Text[ russian ] = "Ìèí. èíòåðâàë íîìåð <-> òåêñò";
+ Text[ polish ] = "Odstêp conajmniej Numer <-> tekst";
+ Text[ japanese ] = "”Ô†‚Æ÷½Ä‚ÌŬŠÔŠu(~B)";
+ Text[ chinese_traditional ] = "³Ì¤p¶¡¹j ½s¸¹ <-> ¤º¤å(~B)";
+ Text[ arabic ] = "ÃÞá ãÓÇÝÉ Èíä ÇáÑÞã <-> ÇáäÕ";
+ Text[ greek ] = "ÅëÜ÷éóôç áðüóôáóç áñéèìïý <-> Êåßìåíï";
+ Text[ korean ] = "ÃÖ¼Ò °£°Ý Å©±â <-> ÅؽºÆ®(~B)";
+ Text[ turkish ] = "Asgari numara <-> metin aralýðý";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField MF_NUMDIST
+ {
+ Pos = MAP_APPFONT ( 158 , 42 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 1999 ;
+ DecimalDigits = 2 ;
+ Value = 0 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 1999 ;
+ SpinSize = 5 ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_ALIGN
+ {
+ Pos = MAP_APPFONT ( 50 , 59 ) ;
+ Size = MAP_APPFONT ( 105 , 10 ) ;
+ Text = "Ausri~chtung der Nummerierung" ;
+ Text [ ENGLISH ] = "Alignment of the numbering" ;
+ //???
+ Text [ english_us ] = "Numbering ~alignment" ;
+ Text [ swedish ] = "~Placering av numrering" ;
+ Text [ danish ] = "Justering af nummerering" ;
+ Text [ italian ] = "~Allineamento della numerazione" ;
+ Text [ spanish ] = "~Alineación de la numeración" ;
+ Text [ french ] = "~Alignement de la numérotation" ;
+ Text [ dutch ] = "~Nummeringsopties" ;
+ Text [ portuguese_brazilian ] = "Ausri~chtung der Numerierung" ;
+ Text [ portuguese ] = "A~linhamento da numeração" ;
+ Text[ chinese_simplified ] = "±àºÅ¶ÔÆë(~A)";
+ Text[ russian ] = "Âûðàâíèâàíèå íóìåðàöèè";
+ Text[ polish ] = "Wyrównanie numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯‚Ì”z’u(~A)";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "½s¸¹¹ï»ô(~A)";
+ Text[ arabic ] = "ãÍÇÐÇÉ ÇáÊÑÞíã";
+ Text[ greek ] = "Óôïß÷éóç áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â ¸ÂÃã(~A)";
+ Text[ turkish ] = "Numara hizalama";
+ };
+ ListBox LB_ALIGN
+ {
+ Pos = MAP_APPFONT ( 158 , 57 ) ;
+ Size = MAP_APPFONT ( 40 , 40 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ StringList =
+ {
+ < "Links" ; > ;
+ < "Zentriert" ; > ;
+ < "Rechts" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Links" ; > ;
+ < "Zentriert" ; > ;
+ < "Rechts" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "Left" ; > ;
+ < "Centered" ; > ;
+ < "Right" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Links" ; > ;
+ < "Zentriert" ; > ;
+ < "Rechts" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Vänster" ; > ;
+ < "Centrerad" ; > ;
+ < "Höger" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Venstre" ; > ;
+ < "Centreret" ; > ;
+ < "Højre" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Sinistra" ; > ;
+ < "Centrato" ; > ;
+ < "Destra" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Izquierda" ; > ;
+ < "Centrado" ; > ;
+ < "Derecha" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "À gauche" ; > ;
+ < "Centré" ; > ;
+ < "À droite" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Links" ; > ;
+ < "Gecentreerd" ; > ;
+ < "Rechts" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Esquerda" ; > ;
+ < "Centrado" ; > ;
+ < "Direita" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×ó" ; > ;
+ < "¾ÓÖÐ" ; > ;
+ < "ÓÒ" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Ñëåâà" ; > ;
+ < "Ïî öåíòðó" ; > ;
+ < "Ñïðàâà" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Z lewej" ; > ;
+ < "Wyœrodkowany" ; > ;
+ < "Z prawej" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "¶" ; > ;
+ < "’†‰›" ; > ;
+ < "‰E" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¥ª" ; > ;
+ < "¸m¤¤" ; > ;
+ < "¥k" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "íÓÇÑ" ; > ;
+ < "ÊæÓíØ" ; > ;
+ < "íãíä" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÁñéóôåñÜ" ; > ;
+ < "ÊåíôñáñéóìÝíá" ; > ;
+ < "ÄåîéÜ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¿ÞÂÊ" ; > ;
+ < "°¡¿îµ¥" ; > ;
+ < "¿À¸¥ÂÊ" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Sol" ; > ;
+ < "Orta" ; > ;
+ < "Sað" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ PushButton PB_STANDARD
+ {
+ Pos = MAP_APPFONT ( 201 , 63 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Standard" ;
+ Text [ ENGLISH ] = "~Standard" ;
+ Text [ english_us ] = "~Default" ;
+ Text [ portuguese_brazilian ] = "~Standard" ;
+ Text [ swedish ] = "~Standard" ;
+ Text [ danish ] = "Standard" ;
+ Text [ italian ] = "~Standard" ;
+ Text [ spanish ] = "~Predeterminado" ;
+ Text [ french ] = "~Par défaut" ;
+ Text [ dutch ] = "~Standaard" ;
+ Text [ portuguese ] = "~Padrão" ;
+ Text[ chinese_simplified ] = "±ê×¼(~D)";
+ Text[ russian ] = "Ñòàíäàðò";
+ Text[ polish ] = "Domyœlnie";
+ Text[ japanese ] = "•W€(~D)";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¼Ð·Ç(~D)";
+ Text[ arabic ] = "ýÞíÇÓí";
+ Text[ greek ] = "ÐñïåðéëïãÞ";
+ Text[ korean ] = "±âº»°ª(~D)";
+ Text[ turkish ] = "Standart";
+ };
+ GroupBox GB_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 47 , 81 ) ;
+ Size = MAP_APPFONT ( 207 , 50 ) ;
+ Text = "Vorschau" ;
+ Text [ ENGLISH ] = "Preview" ;
+ Text [ english_us ] = "Preview" ;
+ Text [ portuguese_brazilian ] = "Vorschau" ;
+ Text [ swedish ] = "Förhandsvisning" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ italian ] = "Anteprima" ;
+ Text [ spanish ] = "Previsualización" ;
+ Text [ french ] = "Aperçu" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ portuguese ] = "Previsualizar" ;
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ polish ] = "Podgl¹d";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ÇáãÚÇíäÉ";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ turkish ] = "Önizleme";
+ Text[ language_user1 ] = " ";
+ };
+ Window WIN_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 50 , 92 ) ;
+ Size = MAP_APPFONT ( 201 , 34 ) ;
+ };
+};
+
+/**************************************************************************/
+/* */
+/* Dialog fuer Test der Svx-Implementation */
+/* */
+/**************************************************************************/
+TabDialog DLG_SVXTEST_NUM_BULLET
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Nummerierung/Aufzählung" ;
+ Text [ ENGLISH ] = "" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ SVLook = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_BULLET ;
+ Text = "Bullets" ;
+ Text [ ENGLISH ] = "Bullets" ;
+ Text [ english_us ] = "Bullets" ;
+ Text [ portuguese_brazilian ] = "Bullets" ;
+ Text [ swedish ] = "Bullets" ;
+ Text [ danish ] = "Punkttegn" ;
+ Text [ italian ] = "Punti" ;
+ Text [ spanish ] = "Viñetas" ;
+ Text [ french ] = "Puces" ;
+ Text [ dutch ] = "Opsommingstekens" ;
+ Text [ portuguese ] = "Marcas" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ";
+ Text[ russian ] = "Ìàðêåðû";
+ Text[ polish ] = "Wypunktowanie";
+ Text[ japanese ] = "‰Óð‘‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹";
+ Text[ arabic ] = "ÚáÇãÇÊ ÊÚÏÇÏ";
+ Text[ greek ] = "Êïõêßäåò";
+ Text[ korean ] = "±Û ¸Ó¸® ±âÈ£";
+ Text[ turkish ] = "Madde iþaretleri";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_SINGLE_NUM ;
+ Text = "Nummerierungsart" ;
+ Text [ ENGLISH ] = "Digits" ;
+ Text [ english_us ] = "Numbering type" ;
+ Text [ portuguese_brazilian ] = "Numerierungsart" ;
+ Text [ swedish ] = "Numreringstyp" ;
+ Text [ danish ] = "Nummereringstype" ;
+ Text [ italian ] = "Tipo di numerazione" ;
+ Text [ spanish ] = "Tipo de numeración" ;
+ Text [ french ] = "Type de numérotation" ;
+ Text [ dutch ] = "Nummeringstijl" ;
+ Text [ portuguese ] = "Tipo de numeração" ;
+ Text[ chinese_simplified ] = "±àºÅÀàÐÍ";
+ Text[ russian ] = "Òèï íóìåðàöèè";
+ Text[ polish ] = "Rodzaj numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯‚ÌŽí—Þ";
+ Text[ chinese_traditional ] = "½s¸¹Ãþ«¬";
+ Text[ arabic ] = "ØÑíÞÉ ÇáÊÑÞíã";
+ Text[ greek ] = "Óôõë áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±âÀ¯Çü";
+ Text[ turkish ] = "Numaralama türü";
+ Text[ language_user1 ] = "Avoid use of \"style\" whenever possible if it could be confused with Styles. EM15.5.00";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_NUM ;
+ Text = "Gliederung" ;
+ Text [ ENGLISH ] = "Outline" ;
+ Text [ english_us ] = "Outline" ;
+ Text [ portuguese_brazilian ] = "Numerierung" ;
+ Text [ swedish ] = "Disposition" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ italian ] = "Struttura" ;
+ Text [ spanish ] = "Esquema" ;
+ Text [ french ] = "Plan" ;
+ Text [ dutch ] = "Overzicht" ;
+ Text [ portuguese ] = "Esquema" ;
+ Text[ chinese_simplified ] = "´ó¸Ù";
+ Text[ russian ] = "Ñòðóêòóðà";
+ Text[ polish ] = "Konspekt";
+ Text[ japanese ] = "±³ÄײÝ";
+ Text[ chinese_traditional ] = "¤jºõ";
+ Text[ arabic ] = "ÊÞÓíã";
+ Text[ greek ] = "ÄéÜñèñùóç";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "Anahat";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_PICK_BMP ;
+ Text = "Grafiken" ;
+ Text [ ENGLISH ] = "Images" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ portuguese_brazilian ] = "Grafiken" ;
+ Text [ swedish ] = "Grafiker" ;
+ Text [ danish ] = "Billeder" ;
+ Text [ italian ] = "Immagini" ;
+ Text [ spanish ] = "Imágenes" ;
+ Text [ french ] = "Images" ;
+ Text [ dutch ] = "Afbeeldingen" ;
+ Text [ portuguese ] = "Imagens" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíêè";
+ Text[ polish ] = "Grafiki";
+ Text[ japanese ] = "}";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑ";
+ Text[ greek ] = "ÃñáöéêÜ";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafikler";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_NUM_POSITION ;
+ Text = "Position" ;
+ Text [ ENGLISH ] = "Position" ;
+ Text [ english_us ] = "Position" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ swedish ] = "Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ spanish ] = "Posición" ;
+ Text [ french ] = "Position" ;
+ Text [ dutch ] = "Positie" ;
+ Text [ portuguese ] = "Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÞÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = RID_SVXPAGE_NUM_OPTIONS ;
+ /* ### ACHTUNG: Neuer Text in Resource? Optionen : ~Optionen */
+ Text = "Optionen" ;
+ Text [ ENGLISH ] = "Customize" ;
+ Text [ english_us ] = "Options" ;
+ Text [ portuguese_brazilian ] = "~Optionen" ;
+ Text [ swedish ] = "Alternativ" ;
+ Text [ danish ] = "Indstillinger" ;
+ Text [ italian ] = "Opzioni" ;
+ Text [ spanish ] = "Opciones" ;
+ Text [ french ] = "Options" ;
+ Text [ dutch ] = "Opties" ;
+ Text [ portuguese ] = "Opções" ;
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ russian ] = "Íàñòðîéêè";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "»ç¿ëÀÚ È¯°æ ¼³Á¤";
+ Text[ turkish ] = "Seçenekler";
+ Text[ language_user1 ] = "KW had called this \"Customize\" which leads to unnecessary confusion in translation. EM";
+ };
+ };
+ Text[ english_us ] = "Numbering/Bullets";
+ Text[ portuguese ] = "Numeração & Marcas";
+ Text[ russian ] = "Numerierung/Aufzählung";
+ Text[ dutch ] = "Nummering/opsomming";
+ Text[ french ] = "Numérotation/Puces";
+ Text[ spanish ] = "Numeración/Viñetas";
+ Text[ italian ] = "Elenchi puntati e numerati";
+ Text[ danish ] = "Nummerering/Punkttegn";
+ Text[ swedish ] = "Numrering/punktmarkering";
+ Text[ polish ] = "Numeracja/Liczenie";
+ Text[ portuguese_brazilian ] = "Numerierung/Aufzählung";
+ Text[ japanese ] = "’i—Ž”Ô†/‰Óð‘‚«";
+ Text[ chinese_simplified ] = "±àºÅ/ÏîÄ¿·ûºÅ";
+};
+ String ST_RESET
+ {
+ Text = "~Entfernen" ;
+ Text [ ENGLISH ] = "~Remove" ;
+ Text [ norwegian ] = "~Fjern" ;
+ Text [ italian ] = "Rimuovi" ;
+ Text [ portuguese_brazilian ] = "~Remover" ;
+ Text [ portuguese ] = "~Remover" ;
+ Text [ finnish ] = "~Poista" ;
+ Text [ danish ] = "Fjern" ;
+ Text [ french ] = "~Supprimer" ;
+ Text [ swedish ] = "~Radera" ;
+ Text [ dutch ] = "Ve~rwijderen" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ english_us ] = "~Remove" ;
+ Text[ chinese_simplified ] = "ɾ³ý(~R)";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ(~R)";
+ Text[ chinese_traditional ] = "§R°£(~R)";
+ Text[ arabic ] = "ÅÒÇáÉ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦(~R)";
+ Text[ turkish ] = "Kaldýr";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Numbering/Bullets" ;
+ Text [ portuguese_brazilian ] = "Numerierung/Aufzählung" ;
+ Text [ swedish ] = "Numrering/punktmarkering" ;
+ Text [ danish ] = "Nummerering/punkttegn" ;
+ Text [ italian ] = "Elenchi puntati e numerati" ;
+ Text [ spanish ] = "Numeración/Viñetas" ;
+ Text [ french ] = "Numérotation/Puces" ;
+ Text [ dutch ] = "Nummering/opsomming" ;
+ Text [ portuguese ] = "Numeração & Marcas" ;
+ Text[ chinese_simplified ] = "±àºÅ/ÏîÄ¿·ûºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ/Ñïèñîê";
+ Text[ polish ] = "Numeracja/Wypunktowanie";
+ Text[ japanese ] = "”Ô†•t‚¯/‰Óð‘‚«";
+ Text[ chinese_traditional ] = "½s¸¹/¶µ¥Ø²Å¸¹";
+ Text[ arabic ] = "ÊÑÞíã/ÊÚÏÇÏ";
+ Text[ greek ] = "Áñßèìçóç/Êïõêßäåò";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â/±Û ¸Ó¸® ±âÈ£";
+ Text[ turkish ] = "Numaralama/madde iþaretleri";
+ Text[ language_user1 ] = " ";
+};
+
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
new file mode 100644
index 000000000000..aa73fbf26564
--- /dev/null
+++ b/sw/source/ui/misc/outline.cxx
@@ -0,0 +1,1371 @@
+/*************************************************************************
+ *
+ * $RCSfile: outline.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SHL_HXX //autogen
+#include <tools/shl.hxx>
+#endif
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SV_SYSTEM_HXX //autogen
+#include <vcl/system.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+
+#ifndef _NUM_HXX //autogen
+#define USE_NUMTABPAGES
+#include <num.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _OUTLINE_HXX
+#include <outline.hxx>
+#endif
+#ifndef _UINUMS_HXX
+#include <uinums.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _SHELLRES_HXX //autogen
+#include <shellres.hxx>
+#endif
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+#ifndef _CHARFMT_HXX //autogen
+#include <charfmt.hxx>
+#endif
+#ifndef _DOCSTYLE_HXX //autogen
+#include <docstyle.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc> // fuer Vorlagenname 'keins'
+#endif
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _OUTLINE_HRC
+#include <outline.hrc>
+#endif
+
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+DBG_NAME(outlinehdl);
+
+// ReplaceTabStr implementiert in doc/docedt.cxx
+//extern void ReplaceTabsStr( String& rStr, const String& rSrch,
+// const String& rRepl );
+
+USHORT lcl_AdjustToPos(SvxAdjust eAdjust)
+{
+ USHORT nRet = 0;
+ switch( eAdjust )
+ {
+ case SVX_ADJUST_CENTER: nRet = 1;break;
+ case SVX_ADJUST_RIGHT: nRet = 2; break;
+ }
+ return nRet;
+}
+
+// Numerierungsformat Umsetzung:
+// ListBox - Format - Enum-Wert
+// 0 - A, B, C, ... - 0
+// 1 - a, b, c, ... - 1
+// 2 - I, II, III, ... - 2
+// 3 - i, ii, iii, ... - 3
+// 4 - 1, 2, 3, ... - 4
+// 5 - A, .., AA, .., - 9
+// 6 - a, .., aa, .., - 10
+// 7 - Ohne - 5
+
+inline USHORT GetNumPos( USHORT n )
+{
+ return SVX_NUM_NUMBER_NONE == n ? 7 : SVX_NUM_ARABIC < n ? n - 4 : n;
+}
+
+inline SvxExtNumType GetNumType( USHORT n )
+{
+ return (SvxExtNumType)(7 == n ? SVX_NUM_NUMBER_NONE : SVX_NUM_ARABIC < n ? n + 4 : n);
+}
+
+/*---------------------------------------------------------------------
+
+---------------------------------------------------------------------*/
+
+class SwNumNamesDlg: public ModalDialog
+{
+ Edit aFormEdit;
+ ListBox aFormBox;
+ GroupBox aFormGrp;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ DECL_LINK( ModifyHdl, Edit * );
+ DECL_LINK( SelectHdl, ListBox * );
+ DECL_LINK( DoubleClickHdl, ListBox * );
+
+public:
+ SwNumNamesDlg(Window *pParent);
+ ~SwNumNamesDlg();
+ void SetUserNames(const String *pList[]);
+ String GetName() const { return aFormEdit.GetText(); }
+ USHORT GetCurEntryPos() const { return aFormBox.GetSelectEntryPos(); }
+};
+
+/*------------------------------------------------------------------------
+ Beschreibung: selektierten Eintrag merken
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwNumNamesDlg, SelectHdl, ListBox *, pBox )
+{
+ aFormEdit.SetText(pBox->GetSelectEntry());
+ aFormEdit.SetSelection(Selection(0, SELECTION_MAX));
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwNumNamesDlg, SelectHdl, ListBox *, pBox )
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen der vom Benutzer vergebenen Namen
+ Parameter: Liste der vom Benutzer vergebenen Namen;
+ nicht vom Benutzer benannte Positionen sind 0.
+------------------------------------------------------------------------*/
+
+
+void SwNumNamesDlg::SetUserNames(const String *pList[])
+{
+ USHORT nSelect = 0;
+ for(USHORT i = 0; i < SwBaseNumRules::nMaxRules; ++i)
+ {
+ if(pList[i])
+ {
+ aFormBox.RemoveEntry(i);
+ aFormBox.InsertEntry(*pList[i], i);
+ if(i == nSelect && nSelect < SwBaseNumRules::nMaxRules)
+ nSelect++;
+ }
+ }
+ aFormBox.SelectEntryPos(nSelect);
+ SelectHdl(&aFormBox);
+}
+/*------------------------------------------------------------------------
+ Beschreibung: OK-Button freischalten, wenn Text im Edit steht.
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwNumNamesDlg, ModifyHdl, Edit *, pBox )
+{
+ aOKBtn.Enable(0 != pBox->GetText().Len());
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwNumNamesDlg, ModifyHdl, Edit *, pBox )
+/*------------------------------------------------------------------------
+ Beschreibung: DoubleClickHdl
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwNumNamesDlg, DoubleClickHdl, ListBox *, EMPTYARG )
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwNumNamesDlg, DoubleClickHdl, ListBox *, EMPTYARG )
+
+/*--------------------------------------------------
+
+--------------------------------------------------*/
+
+SwNumNamesDlg::SwNumNamesDlg(Window *pParent)
+ : ModalDialog(pParent, SW_RES(DLG_NUM_NAMES)),
+ aFormEdit(this, SW_RES(ED_FORM)),
+ aFormBox(this, SW_RES(LB_FORM)),
+ aFormGrp(this, SW_RES(GB_FORM)),
+ aOKBtn(this, SW_RES(BT_OK)),
+ aCancelBtn(this, SW_RES(BT_CANCEL)),
+ aHelpBtn(this, SW_RES(BT_HELP))
+{
+ FreeResource();
+ aFormEdit.SetModifyHdl(LINK(this, SwNumNamesDlg, ModifyHdl));
+ aFormBox.SetSelectHdl(LINK(this, SwNumNamesDlg, SelectHdl));
+ aFormBox.SetDoubleClickHdl(LINK(this, SwNumNamesDlg, DoubleClickHdl));
+ SelectHdl(&aFormBox);
+}
+
+/*--------------------------------------------------
+
+--------------------------------------------------*/
+
+__EXPORT SwNumNamesDlg::~SwNumNamesDlg() {}
+
+
+/* -----------------08.07.98 08:46-------------------
+ *
+ * --------------------------------------------------*/
+USHORT lcl_BitToLevel(USHORT nActLevel)
+{
+ USHORT nTmp = nActLevel;
+ USHORT nTmpLevel = 0;
+ while( 0 != (nTmp >>= 1) )
+ nTmpLevel++;
+ return nTmpLevel;
+}
+
+/* -----------------07.07.98 14:13-------------------
+ *
+ * --------------------------------------------------*/
+SwOutlineTabDialog::SwOutlineTabDialog(Window* pParent,
+ const SfxItemSet* pSwItemSet,
+ SwWrtShell &rSh) :
+ //der UserString wird danach richtig gesetzt
+ SfxTabDialog(pParent, SW_RES(DLG_TAB_OUTLINE), pSwItemSet, FALSE, &aEmptyStr),
+ aFormMenu(SW_RES(MN_FORM)),
+ bModified(rWrtSh.IsModified()),
+ aNullStr(C2S("____")),
+ nNumLevel(1),
+ pChapterNumRules(SW_MOD()->GetChapterNumRules()),
+ rWrtSh(rSh)
+{
+ PushButton* pUserBtn = GetUserButton();
+ pUserBtn->SetText(SW_RES(ST_FORM));
+ pUserBtn->SetHelpId(HID_OUTLINE_FORM);
+ pUserBtn->SetClickHdl(LINK(this, SwOutlineTabDialog, FormHdl));
+
+ FreeResource();
+ pNumRule = new SwNumRule( *rSh.GetOutlineNumRule() );
+ GetCancelButton().SetClickHdl(LINK(this, SwOutlineTabDialog, CancelHdl));
+
+ AddTabPage(TP_NUM_POSITION , &SwNumPositionTabPage::Create, 0);
+ AddTabPage(TP_OUTLINE_NUM , &SwOutlineSettingsTabPage::Create, 0);
+
+ String sHeadline;
+ for(USHORT i = 0; i < MAXLEVEL; ++i )
+ {
+ // wurde die Vorlage noch nicht angelegt, dann ist sie noch an dieserPosition
+ if( !rWrtSh.GetParaStyle( GetDocPoolNm( RES_POOLCOLL_HEADLINE1 + i,
+ sHeadline )) )
+ aCollNames[i] = sHeadline;
+ }
+
+ // Erfragen der Gliederungsebenen der Textvorlagen
+ const USHORT nCount = rWrtSh.GetTxtFmtCollCount();
+ for(i = 0; i < nCount; ++i )
+ {
+ SwTxtFmtColl &rTxtColl = rWrtSh.GetTxtFmtColl(i);
+ if(!rTxtColl.IsDefault())
+ {
+ BYTE nOutLevel = rTxtColl.GetOutlineLevel();
+ if(nOutLevel != NO_NUMBERING)
+ aCollNames[ nOutLevel ] = rTxtColl.GetName();
+ }
+ }
+}
+
+/* -----------------07.07.98 14:13-------------------
+ *
+ * --------------------------------------------------*/
+SwOutlineTabDialog::~SwOutlineTabDialog()
+{
+ delete pNumRule;
+}
+
+/* -----------------07.07.98 14:13-------------------
+ *
+ * --------------------------------------------------*/
+void SwOutlineTabDialog::PageCreated(USHORT nPageId, SfxTabPage& rPage)
+{
+ switch ( nPageId )
+ {
+ case TP_NUM_POSITION:
+ ((SwNumPositionTabPage&)rPage).SetWrtShell(&rWrtSh);
+ ((SwNumPositionTabPage&)rPage).SetOutlineTabDialog(this);
+ break;
+ case TP_OUTLINE_NUM:
+ ((SwOutlineSettingsTabPage&)rPage).SetWrtShell(&rWrtSh);
+ break;
+ }
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineTabDialog, CancelHdl, Button *, pBtn )
+{
+ if (!bModified)
+ rWrtSh.ResetModified();
+ EndDialog(RET_CANCEL);
+ return 0;
+}
+/* -----------------08.07.98 12:14-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineTabDialog, FormHdl, Button *, pBtn )
+{
+ //PopupMenu auffuellen
+ for( USHORT i = 0; i < SwChapterNumRules::nMaxRules; ++i )
+ {
+ const SwNumRulesWithName *pRules = pChapterNumRules->GetRules(i);
+ if( pRules )
+ aFormMenu.SetItemText(i + MN_FORMBASE, pRules->GetName());
+ }
+ aFormMenu.SetSelectHdl(LINK(this, SwOutlineTabDialog, MenuSelectHdl));
+ aFormMenu.Execute(pBtn, Rectangle(Point(0,0), pBtn->GetSizePixel()), POPUPMENU_EXECUTE_DOWN);
+ return 0;
+}
+
+/* -----------------08.07.98 12:14-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineTabDialog, MenuSelectHdl, Menu *, pMenu )
+{
+ BYTE nLevelNo = 0;
+ switch(pMenu->GetCurItemId())
+ {
+ case MN_FORM1: nLevelNo = 1; break;
+ case MN_FORM2: nLevelNo = 2; break;
+ case MN_FORM3: nLevelNo = 3; break;
+ case MN_FORM4: nLevelNo = 4; break;
+ case MN_FORM5: nLevelNo = 5; break;
+ case MN_FORM6: nLevelNo = 6; break;
+ case MN_FORM7: nLevelNo = 7; break;
+ case MN_FORM8: nLevelNo = 8; break;
+ case MN_FORM9: nLevelNo = 9; break;
+
+ case MN_SAVE:
+ {
+ SwNumNamesDlg *pDlg = new SwNumNamesDlg(this);
+ const String *aStrArr[SwChapterNumRules::nMaxRules];
+ for(USHORT i = 0; i < SwChapterNumRules::nMaxRules; ++i)
+ {
+ const SwNumRulesWithName *pRules = pChapterNumRules->GetRules(i);
+ if(pRules)
+ aStrArr[i] = &pRules->GetName();
+ else
+ aStrArr[i] = 0;
+ }
+ pDlg->SetUserNames(aStrArr);
+ if(RET_OK == pDlg->Execute())
+ {
+ const String aName(pDlg->GetName());
+ pChapterNumRules->ApplyNumRules( SwNumRulesWithName(
+ *pNumRule, aName ), pDlg->GetCurEntryPos() );
+ pMenu->SetItemText(
+ pDlg->GetCurEntryPos() + MN_FORMBASE, aName);
+ }
+ delete pDlg;
+ return 0;
+
+ }
+
+ }
+ if( nLevelNo-- )
+ {
+ const SwNumRulesWithName *pRules = pChapterNumRules->GetRules( nLevelNo );
+ if( pRules )
+ {
+ pRules->MakeNumRule( rWrtSh, *pNumRule );
+ pNumRule->SetRuleType( OUTLINE_RULE );
+ }
+ else
+ *pNumRule = *rWrtSh.GetOutlineNumRule();
+ }
+
+ USHORT nPageId = GetCurPageId();
+ SfxTabPage* pPage = GetTabPage( nPageId );
+ pPage->Reset(*GetOutputItemSet());
+
+ return 0;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+USHORT SwOutlineTabDialog::GetLevel(const String &rFmtName) const
+{
+ for(USHORT i = 0; i < MAXLEVEL; ++i)
+ {
+ if(aCollNames[i] == rFmtName)
+ return i;
+ }
+ return NO_NUMBERING;
+}
+/* -----------------07.07.98 16:30-------------------
+ *
+ * --------------------------------------------------*/
+short SwOutlineTabDialog::Ok()
+{
+ short nRet = SfxTabDialog::Ok();
+ // bei allen erzeugten Vorlagen die Ebenen setzen, muss
+ // geschehen, um evtl. aufgehobene Zuordnungen
+ // auch wieder zu loeschen
+ USHORT i, nCount = rWrtSh.GetTxtFmtCollCount();
+ for( i = 0; i < nCount; ++i )
+ {
+ SwTxtFmtColl &rTxtColl = rWrtSh.GetTxtFmtColl(i);
+ if( !rTxtColl.IsDefault() )
+ rTxtColl.SetOutlineLevel( (BYTE)GetLevel(rTxtColl.GetName()));
+ }
+
+ for( i = 0; i < MAXLEVEL; ++i )
+ if( !aCollNames[i].Len() )
+ {
+ SwTxtFmtColl* pTxtColl = rWrtSh.GetTxtCollFromPool(
+ RES_POOLCOLL_HEADLINE1 + i );
+ pTxtColl->SetOutlineLevel( NO_NUMBERING );
+ }
+
+ rWrtSh.SetOutlineNumRule( *pNumRule );
+ return RET_OK;
+}
+
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+SwOutlineSettingsTabPage::SwOutlineSettingsTabPage(Window* pParent, const SfxItemSet& rSet) :
+ SfxTabPage(pParent, SW_RES(TP_OUTLINE_NUM), rSet),
+ aLevelGB( this, ResId(GB_LEVEL )),
+ aLevelLB( this, ResId(LB_LEVEL )),
+ aPreviewGB( this, ResId(GB_PREVIEW )),
+ aPreviewWIN( this, ResId(WIN_PREVIEW )),
+ aCollLbl(this, SW_RES(FT_COLL)),
+ aCollBox(this, SW_RES(LB_COLL)),
+ aNumberLbl(this, SW_RES(FT_NUMBER)),
+ aNumberBox(this, SW_RES(LB_NUMBER)),
+ aCharFmtFT(this, SW_RES(FT_CHARFMT)),
+ aCharFmtLB(this, SW_RES(LB_CHARFMT)),
+ aAllLevelFT( this, ResId(FT_ALL_LEVEL)),
+ aAllLevelNF( this, ResId(NF_ALL_LEVEL)),
+ aDelim(this, SW_RES(FT_DELIM)),
+ aPrefixFT(this, SW_RES(FT_PREFIX)),
+ aPrefixED(this, SW_RES(ED_PREFIX)),
+ aSuffixFT(this, SW_RES(FT_SUFFIX)),
+ aSuffixED(this, SW_RES(ED_SUFFIX)),
+ aStartLbl(this, SW_RES(FT_START)),
+ aStartEdit(this, SW_RES(ED_START)),
+ aNumberGrp(this, SW_RES(GB_NUMBER)),
+ aNoFmtName(SW_RES(ST_NO_COLL)),
+ nActLevel(1),
+ pCollNames(0),
+ pSh(0)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ aCollBox.InsertEntry(aNoFmtName);
+ aLevelLB.SetSelectHdl(LINK(this, SwOutlineSettingsTabPage, LevelHdl));
+ aAllLevelNF.SetModifyHdl(LINK(this, SwOutlineSettingsTabPage, ToggleComplete));
+ aCollBox.SetSelectHdl(LINK(this, SwOutlineSettingsTabPage, CollSelect));
+ aCollBox.SetGetFocusHdl(LINK(this, SwOutlineSettingsTabPage, CollSelectGetFocus));
+ aNumberBox.SetSelectHdl(LINK(this, SwOutlineSettingsTabPage, NumberSelect));
+ aPrefixED.SetModifyHdl(LINK(this, SwOutlineSettingsTabPage, DelimModify));
+ aSuffixED.SetModifyHdl(LINK(this, SwOutlineSettingsTabPage, DelimModify));
+ aStartEdit.SetModifyHdl(LINK(this, SwOutlineSettingsTabPage, StartModified));
+ aCharFmtLB.SetSelectHdl(LINK(this, SwOutlineSettingsTabPage, CharFmtHdl));
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+void SwOutlineSettingsTabPage::Update()
+{
+ // falls eine Vorlage fuer diese Ebene bereits selektiert wurde,
+ // diese in der ListBox auswaehlean
+ aCollBox.Enable(USHRT_MAX != nActLevel);
+ if(USHRT_MAX == nActLevel)
+ {
+ BOOL bSamePrefix = TRUE;
+ BOOL bSameSuffix = TRUE;
+ BOOL bSameType = TRUE;
+ BOOL bSameComplete = TRUE;
+ BOOL bSameStart = TRUE;
+ BOOL bSameCharFmt = TRUE;
+
+ const SwNumFmt* aNumFmtArr[MAXLEVEL];
+ const SwCharFmt* pFirstFmt = 0;
+
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+
+ aNumFmtArr[ i ] = &pNumRule->Get(i);
+ if(i == 0)
+ pFirstFmt = aNumFmtArr[i]->GetCharFmt();
+ else
+ {
+ bSameType &= aNumFmtArr[i]->eType == aNumFmtArr[0]->eType;
+ bSameStart &= aNumFmtArr[i]->GetStartValue() == aNumFmtArr[0]->GetStartValue();
+ bSamePrefix &= aNumFmtArr[i]->GetPrefix() == aNumFmtArr[0]->GetPrefix();
+ bSameSuffix &= aNumFmtArr[i]->GetPostfix() == aNumFmtArr[0]->GetPostfix();
+ bSameComplete &= aNumFmtArr[i]->GetUpperLevel() == aNumFmtArr[0]->GetUpperLevel();
+ const SwCharFmt* pFmt = aNumFmtArr[i]->GetCharFmt();
+ bSameCharFmt &= !pFirstFmt && !pFmt
+ || pFirstFmt && pFmt && pFmt->GetName() == pFirstFmt->GetName();
+ }
+ }
+ if(bSameType)
+ aNumberBox.SelectEntryPos( GetNumPos( aNumFmtArr[0]->eType ));
+ else
+ aNumberBox.SetNoSelection();
+ if(bSameStart)
+ aStartEdit.SetValue(aNumFmtArr[0]->GetStartValue());
+ else
+ aStartEdit.SetText(aEmptyStr);
+ if(bSamePrefix)
+ aPrefixED.SetText(aNumFmtArr[0]->GetPrefix());
+ else
+ aPrefixED.SetText(aEmptyStr);
+ if(bSameSuffix)
+ aSuffixED.SetText(aNumFmtArr[0]->GetPostfix());
+ else
+ aSuffixED.SetText(aEmptyStr);
+
+ if(bSameCharFmt)
+ {
+ if(pFirstFmt)
+ aCharFmtLB.SelectEntry(pFirstFmt->GetName());
+ else
+ aCharFmtLB.SelectEntry( ViewShell::GetShellRes()->aStrNone );
+ }
+ else
+ aCharFmtLB.SetNoSelection();
+
+ aAllLevelNF.Enable(TRUE);
+ aAllLevelNF.SetMax(MAXLEVEL);
+ if(bSameComplete)
+ {
+ aAllLevelNF.SetValue(aNumFmtArr[0]->GetUpperLevel());
+ }
+ else
+ {
+ aAllLevelNF.SetText(aEmptyStr);
+ }
+ }
+ else
+ {
+ USHORT nTmpLevel = lcl_BitToLevel(nActLevel);
+ String aColl(pCollNames[nTmpLevel]);
+ if(aColl.Len())
+ aCollBox.SelectEntry(aColl);
+ else
+ aCollBox.SelectEntry(aNoFmtName);
+ const SwNumFmt &rFmt = pNumRule->Get(nTmpLevel);
+ aNumberBox.SelectEntryPos( GetNumPos( rFmt.eType ));
+ aPrefixED.SetText(rFmt.GetPrefix());
+ aSuffixED.SetText(rFmt.GetPostfix());
+ const SwCharFmt* pFmt = rFmt.GetCharFmt();
+ if(pFmt)
+ aCharFmtLB.SelectEntry(pFmt->GetName());
+ else
+ aCharFmtLB.SelectEntry( ViewShell::GetShellRes()->aStrNone );
+
+ if(nTmpLevel)
+ {
+ aAllLevelNF.Enable(TRUE);
+ aAllLevelNF.SetMax(nTmpLevel + 1);
+ aAllLevelNF.SetValue(rFmt.GetUpperLevel());
+ }
+ else
+ {
+ aAllLevelNF.SetText(aEmptyStr);
+ aAllLevelNF.Enable(FALSE);
+ }
+
+ aStartEdit.SetValue( rFmt.GetStartValue() );
+ }
+ SetModified();
+}
+
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, LevelHdl, ListBox *, pBox )
+{
+ nActLevel = 0;
+ if(pBox->IsEntryPosSelected( MAXLEVEL ))
+ {
+ nActLevel = 0xFFFF;
+ }
+ else
+ {
+ USHORT nMask = 1;
+ for( USHORT i = 0; i < MAXLEVEL; i++ )
+ {
+ if(pBox->IsEntryPosSelected( i ))
+ nActLevel |= nMask;
+ nMask <<= 1;
+ }
+ }
+ Update();
+ return 0;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, ToggleComplete, NumericField *, pFld )
+{
+ USHORT nStart = 0;
+ USHORT nEnd = MAXLEVEL;
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActLevel & nMask)
+ {
+ SwNumFmt aNumFmt(pNumRule->Get(i));
+ aNumFmt.SetUpperLevel((BYTE) min(pFld->GetValue(), i + 1) );
+ pNumRule->Set(i, aNumFmt);
+ }
+ nMask <<= 1;
+ }
+ SetModified();
+ return 0;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, CollSelect, ListBox *, pBox )
+{
+ BYTE i;
+
+ const String aCollName(pBox->GetSelectEntry());
+ //0xFFFF darf hier nicht sein (disable)
+ USHORT nTmp = nActLevel;
+ USHORT nTmpLevel = lcl_BitToLevel(nActLevel);
+ String sOldName( pCollNames[nTmpLevel] );
+
+ for( i = 0; i < MAXLEVEL; ++i)
+ pCollNames[i] = aSaveCollNames[i];
+
+ if(aCollName == aNoFmtName)
+ pCollNames[nTmpLevel] = aEmptyStr;
+ else
+ {
+ pCollNames[nTmpLevel] = aCollName;
+ // wird die Vorlage bereits verwendet ?
+ for( i = 0; i < MAXLEVEL; ++i)
+ if(i != nTmpLevel && pCollNames[i] == aCollName )
+ pCollNames[i] = aEmptyStr;
+ }
+
+ // search the oldname and put it into the current entries
+ if( sOldName.Len() )
+ for( i = 0; i < MAXLEVEL; ++i)
+ if( aSaveCollNames[ i ] == sOldName && i != nTmpLevel &&
+ !pCollNames[ i ].Len() )
+ {
+ BYTE n;
+ for( n = 0; n < MAXLEVEL; ++n )
+ if( pCollNames[ n ] == sOldName )
+ break;
+
+ if( MAXLEVEL == n )
+ // it was a outline leveld name and the current entries is zero.
+ pCollNames[ i ] = sOldName;
+ }
+
+ SetModified();
+ return 0;
+}
+
+IMPL_LINK( SwOutlineSettingsTabPage, CollSelectGetFocus, ListBox *, pBox )
+{
+ for( BYTE i = 0; i < MAXLEVEL; ++i)
+ aSaveCollNames[i] = pCollNames[i];
+ return 0;
+}
+
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, NumberSelect, ListBox *, pBox )
+{
+ USHORT nStart = 0;
+ USHORT nEnd = MAXLEVEL;
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActLevel & nMask)
+ {
+ SwNumFmt aNumFmt(pNumRule->Get(i));
+ aNumFmt.eType = GetNumType( pBox->GetSelectEntryPos() );
+ pNumRule->Set(i, aNumFmt);
+ }
+ nMask <<= 1;
+ }
+ SetModified();
+ return 0;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, DelimModify, Edit *, pEdt )
+{
+ USHORT nStart = 0;
+ USHORT nEnd = MAXLEVEL;
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActLevel & nMask)
+ {
+ SwNumFmt aNumFmt(pNumRule->Get(i));
+ aNumFmt.SetPrefix( aPrefixED.GetText() );
+ aNumFmt.SetPostfix( aSuffixED.GetText() );
+ pNumRule->Set(i, aNumFmt);
+ }
+ nMask <<= 1;
+ }
+ SetModified();
+ return 0;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, StartModified, NumericField *, pFld )
+{
+ USHORT nStart = 0;
+ USHORT nEnd = MAXLEVEL;
+ USHORT nMask = 1;
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActLevel & nMask)
+ {
+ SwNumFmt aNumFmt(pNumRule->Get(i));
+ aNumFmt.SetStartValue( (USHORT)pFld->GetValue() );
+ pNumRule->Set(i, aNumFmt);
+ }
+ nMask <<= 1;
+ }
+// SetModified();
+ return 0;
+}
+/* -----------------21.09.98 12:21-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwOutlineSettingsTabPage, CharFmtHdl, ListBox *, EMPTYARG )
+{
+// bAutomaticCharStyles = FALSE;
+ String sEntry = aCharFmtLB.GetSelectEntry();
+ USHORT nMask = 1;
+ BOOL bFormatNone = sEntry == ViewShell::GetShellRes()->aStrNone;
+ SwCharFmt* pFmt = 0;
+ if(!bFormatNone)
+ {
+ USHORT nChCount = pSh->GetCharFmtCount();
+ for(USHORT i = 0; i < nChCount; i++)
+ {
+ SwCharFmt& rChFmt = pSh->GetCharFmt(i);
+ if(rChFmt.GetName() == sEntry)
+ {
+ pFmt = &rChFmt;
+ break;
+ }
+ }
+ if(!pFmt)
+ {
+ SfxStyleSheetBasePool* pPool = pSh->GetView().GetDocShell()->GetStyleSheetPool();
+ SfxStyleSheetBase* pBase;
+ pBase = pPool->Find(sEntry, SFX_STYLE_FAMILY_CHAR);
+ if(!pBase)
+ pBase = &pPool->Make(sEntry, SFX_STYLE_FAMILY_PAGE);
+ pFmt = ((SwDocStyleSheet*)pBase)->GetCharFmt();
+
+ }
+ }
+
+ for(USHORT i = 0; i < MAXLEVEL; i++)
+ {
+ if(nActLevel & nMask)
+ {
+ SwNumFmt aNumFmt(pNumRule->Get(i));
+ if(bFormatNone)
+ aNumFmt.SetCharFmt(0);
+ else
+ aNumFmt.SetCharFmt(pFmt);
+ pNumRule->Set(i, aNumFmt);
+ }
+ nMask <<= 1;
+ }
+// SetModified(FALSE);
+ return RET_OK;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+SwOutlineSettingsTabPage::~SwOutlineSettingsTabPage()
+{
+}
+/* -----------------07.07.98 16:27-------------------
+ *
+ * --------------------------------------------------*/
+void SwOutlineSettingsTabPage::SetWrtShell(SwWrtShell* pShell)
+{
+ pSh = pShell;
+ // Erfragen der NumRules dieses Dokumentes
+ pNumRule = ((SwOutlineTabDialog*)GetTabDialog())->GetNumRule();
+ pCollNames = ((SwOutlineTabDialog*)GetTabDialog())->GetCollNames();
+
+ //pNumRule = new SwNumRule( *rSh.GetOutlineNumRule() );
+
+ aPreviewWIN.SetNumRule(pNumRule);
+ aPreviewWIN.SetOutlineNames(pCollNames);
+ // Startwert setzen - nActLevel muss hier 1 sein
+ USHORT nTmpLevel = lcl_BitToLevel(nActLevel);
+ const SwNumFmt& rNumFmt = pNumRule->Get( nTmpLevel );
+ aStartEdit.SetValue( rNumFmt.GetStartValue() );
+
+ // Poolformate fuer Ueberschriften anlegen
+ String sStr;
+ USHORT i;
+ for( i = 0; i < MAXLEVEL; ++i )
+ {
+ aCollBox.InsertEntry( GetDocPoolNm( RES_POOLCOLL_HEADLINE1 + i, sStr ));
+ aLevelLB.InsertEntry( String::CreateFromInt32(i + 1) );
+ }
+ sStr.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "1 - " ));
+ sStr += String::CreateFromInt32(MAXLEVEL);
+ aLevelLB.InsertEntry( sStr );
+
+ // Erfragen der Gliederungsebenen der Textvorlagen
+ const USHORT nCount = pSh->GetTxtFmtCollCount();
+ for( i = 0; i < nCount; ++i )
+ {
+ SwTxtFmtColl &rTxtColl = pSh->GetTxtFmtColl(i);
+ if(!rTxtColl.IsDefault())
+ {
+ BYTE nOutLevel = rTxtColl.GetOutlineLevel();
+ sStr = rTxtColl.GetName();
+ if(LISTBOX_ENTRY_NOTFOUND == aCollBox.GetEntryPos( sStr ))
+ aCollBox.InsertEntry( sStr );
+ }
+ }
+
+ aNumberBox.SelectEntryPos( GetNumPos( rNumFmt.eType ));
+ USHORT nOutlinePos = pSh->GetOutlinePos(MAXLEVEL);
+ USHORT nTmp = 0;
+ if(nOutlinePos != USHRT_MAX)
+ {
+ nTmp = pSh->GetOutlineLevel(nOutlinePos);
+ }
+ aLevelLB.SelectEntryPos(nTmp);
+
+ // Zeichenvorlagen sammeln
+ aCharFmtLB.Clear();
+ aCharFmtLB.InsertEntry( ViewShell::GetShellRes()->aStrNone );
+
+ // Zeichenvorlagen
+ ::FillCharStyleListBox(aCharFmtLB,
+ pSh->GetView().GetDocShell());
+ Update();
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+void SwOutlineSettingsTabPage::ActivatePage(const SfxItemSet& rSet)
+{
+ nActLevel = ((SwOutlineTabDialog*)GetTabDialog())->GetActNumLevel();
+ if(nActLevel != USHRT_MAX)
+ aLevelLB.SelectEntryPos(lcl_BitToLevel(nActLevel));
+ else
+ aLevelLB.SelectEntryPos(MAXLEVEL);
+ LevelHdl(&aLevelLB);
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+int SwOutlineSettingsTabPage::DeactivatePage(SfxItemSet *pSet)
+{
+ ((SwOutlineTabDialog*)GetTabDialog())->SetActNumLevel(nActLevel);
+ return LEAVE_PAGE;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+BOOL SwOutlineSettingsTabPage::FillItemSet( SfxItemSet& rSet )
+{
+ return TRUE;
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+void SwOutlineSettingsTabPage::Reset( const SfxItemSet& rSet )
+{
+ ActivatePage(rSet);
+}
+/* -----------------07.07.98 14:19-------------------
+ *
+ * --------------------------------------------------*/
+SfxTabPage* SwOutlineSettingsTabPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwOutlineSettingsTabPage(pParent, rAttrSet);
+}
+
+/*-----------------09.12.97 11:54-------------------
+
+--------------------------------------------------*/
+USHORT lcl_DrawBullet(VirtualDevice* pVDev,
+ const SwNumFmt& rFmt, USHORT nXStart,
+ USHORT nYStart, const Size& rSize)
+{
+ Font aTmpFont(pVDev->GetFont());
+
+ Font aFont(*rFmt.GetBulletFont());
+ aFont.SetSize(rSize);
+ aFont.SetTransparent(TRUE);
+ pVDev->SetFont( aFont );
+ String aText(rFmt.GetBulletChar());
+ pVDev->DrawText( Point(nXStart, nYStart), aText );
+ USHORT nRet = (USHORT)pVDev->GetTextWidth(aText);
+
+ pVDev->SetFont(aTmpFont);
+ return nRet;
+}
+/*-----------------09.12.97 11:49-------------------
+
+--------------------------------------------------*/
+USHORT lcl_DrawGraphic(VirtualDevice* pVDev, const SwNumFmt &rFmt, USHORT nXStart,
+ USHORT nYStart, USHORT nDivision)
+{
+ const SvxBrushItem* pBrushItem = rFmt.GetGrfBrush();
+ USHORT nRet = 0;
+ if(pBrushItem)
+ {
+ const Graphic* pGrf = pBrushItem->GetGraphic();
+ if(pGrf)
+ {
+ Size aGSize( rFmt.GetGrfSize() );
+ aGSize.Width() /= nDivision;
+ nRet = (USHORT)aGSize.Width();
+ aGSize.Height() /= nDivision;
+ pGrf->Draw( pVDev, Point(nXStart,nYStart),
+ pVDev->PixelToLogic( aGSize ) );
+ }
+ }
+ return nRet;
+
+}
+/*-----------------02.12.97 10:34-------------------
+ Vorschau der Numerierung painten
+--------------------------------------------------*/
+void NumberingPreview::Paint( const Rectangle& rRect )
+{
+ Size aSize(PixelToLogic(GetOutputSizePixel()));
+ Rectangle aRect(Point(0,0), aSize);
+
+ VirtualDevice* pVDev = new VirtualDevice(*this);
+ pVDev->SetMapMode(GetMapMode());
+ pVDev->SetOutputSize( aSize );
+
+
+ pVDev->SetFillColor( Color( COL_WHITE ) );
+ pVDev->DrawRect(aRect);
+
+ if(pActNum)
+ {
+ USHORT nWidthRelation;
+ if(nPageWidth)
+ {
+ nWidthRelation = USHORT (nPageWidth / aSize.Width());
+ if(bPosition)
+ nWidthRelation = nWidthRelation * 2 / 3;
+ else
+ nWidthRelation = nWidthRelation / 4;
+ }
+ else
+ nWidthRelation = 30; // Kapiteldialog
+
+ //Hoehe pro Ebene
+ USHORT nXStep = aSize.Width() / (3 * MAXLEVEL);
+ if(MAXLEVEL < 10)
+ nXStep /= 2;
+ USHORT nYStart = 4;
+ USHORT nYStep = (aSize.Height() - 6)/ MAXLEVEL;
+// USHORT nLineHeight = nYStep * 8 / 10;
+ aStdFont = System::GetStandardFont(STDFONT_SWISS);
+
+ //
+ USHORT nFontHeight = nYStep * 6 / 10;
+ if(bPosition)
+ nFontHeight = nYStep * 15 / 10;
+ aStdFont.SetSize(Size( 0, nFontHeight ));
+
+ SwNodeNum aNum( (BYTE)0 );
+ USHORT nPreNum = pActNum->Get(0).GetStartValue();
+
+ if(bPosition)
+ {
+ USHORT nLineHeight = nFontHeight * 8 / 7;
+ BYTE nStart = 0;
+ while( !(nActLevel & (1<<nStart)) )
+ {
+ nStart++;
+ }
+ if(nStart) // damit moeglichs Vorgaenger und Nachfolger gezeigt werden
+ nStart--;
+ BYTE nEnd = min(nStart + 3, MAXLEVEL);
+ for( BYTE nLevel = nStart; nLevel < nEnd; ++nLevel )
+ {
+ const SwNumFmt &rFmt = pActNum->Get(nLevel);
+ aNum.GetLevelVal()[ nLevel ] = rFmt.GetStartValue();
+ USHORT nXStart = rFmt.GetAbsLSpace() / nWidthRelation;
+ USHORT nTextOffset = rFmt.GetCharTextOffset() / nWidthRelation;
+ USHORT nNumberXPos = nXStart;
+ USHORT nFirstLineOffset = (-rFmt.GetFirstLineOffset()) / nWidthRelation;
+
+ if(nFirstLineOffset <= nNumberXPos)
+ nNumberXPos -= nFirstLineOffset;
+ else
+ nNumberXPos = 0;
+
+ USHORT nBulletWidth = 0;
+ if( SVX_NUM_BITMAP == rFmt.eType )
+ {
+ nBulletWidth = lcl_DrawGraphic(pVDev, rFmt,
+ nNumberXPos,
+ nYStart, nWidthRelation);
+ }
+ else if( SVX_NUM_CHAR_SPECIAL == rFmt.eType )
+ {
+ nBulletWidth = lcl_DrawBullet(pVDev, rFmt, nNumberXPos, nYStart, aStdFont.GetSize());
+ }
+ else
+ {
+ pVDev->SetFont(aStdFont);
+ aNum.SetLevel( nLevel );
+ if(pActNum->IsContinusNum())
+ aNum.GetLevelVal()[nLevel] = nPreNum;
+ String aText(pActNum->MakeNumString( aNum ));
+ pVDev->DrawText( Point(nNumberXPos, nYStart), aText );
+ nBulletWidth = (USHORT)pVDev->GetTextWidth(aText);
+ nPreNum++;
+ }
+ USHORT nTextXPos = nXStart;
+ if(nNumberXPos + nBulletWidth + nTextOffset > nTextXPos )
+ nTextXPos = nNumberXPos + nBulletWidth + nTextOffset;
+ Rectangle aRect1(Point(nTextXPos, nYStart + nFontHeight / 2), Size(aSize.Width() / 2, 2));
+ pVDev->SetFillColor( Color( COL_BLACK ) );
+ pVDev->DrawRect( aRect1 );
+
+ Rectangle aRect2(Point(nXStart, nYStart + nLineHeight + nFontHeight / 2 ), Size(aSize.Width() / 2, 2));
+ pVDev->DrawRect( aRect2 );
+ nYStart += 2 * nLineHeight;
+ }
+ }
+ else
+ {
+ USHORT nLineHeight = nFontHeight * 3 / 2;
+ for( BYTE nLevel = 0; nLevel < MAXLEVEL;
+ ++nLevel, nYStart += nYStep )
+ {
+ const SwNumFmt &rFmt = pActNum->Get(nLevel);
+ aNum.GetLevelVal()[ nLevel ] = rFmt.GetStartValue();
+ USHORT nXStart = (rFmt.GetAbsLSpace() / nWidthRelation) / 2 + 2;
+ USHORT nTextOffset = 2 * nXStep;
+ if( SVX_NUM_BITMAP == rFmt.eType )
+ {
+ lcl_DrawGraphic(pVDev, rFmt, nXStart, nYStart, nWidthRelation);
+ nTextOffset = nLineHeight + nXStep;
+ }
+ else if( SVX_NUM_CHAR_SPECIAL == rFmt.eType )
+ {
+// aNum.GetLevelVal()[ nLevel ] = 0;
+ nTextOffset = lcl_DrawBullet(pVDev, rFmt, nXStart, nYStart, aStdFont.GetSize());
+ nTextOffset += nXStep;
+ }
+ else
+ {
+ pVDev->SetFont(aStdFont);
+ aNum.SetLevel( nLevel );
+ if(pActNum->IsContinusNum())
+ aNum.GetLevelVal()[nLevel] = nPreNum;
+ String aText(pActNum->MakeNumString( aNum ));
+ pVDev->DrawText( Point(nXStart, nYStart), aText );
+ nTextOffset = (USHORT)pVDev->GetTextWidth(aText);
+ nTextOffset += nXStep;
+ nPreNum++;
+ }
+ pVDev->SetFont(aStdFont);
+ String sMsg(C2S("StarOffice"));
+ if(pOutlineNames)
+ sMsg = pOutlineNames[nLevel];
+ pVDev->DrawText( Point(nXStart + nTextOffset, nYStart), sMsg );
+ }
+ }
+ }
+ DrawOutDev( Point(0,0), aSize,
+ Point(0,0), aSize,
+ *pVDev );
+ delete pVDev;
+
+}
+
+/*-----------------02.12.97 10:34-------------------
+
+--------------------------------------------------*/
+NumberingPreview::~NumberingPreview()
+{
+}
+
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.105 2000/09/18 16:05:58 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.104 2000/07/26 12:03:33 jp
+ OkHdl: don't use invalid PoolIds
+
+ Revision 1.103 2000/07/25 10:40:29 jp
+ Bug #76772#,#76774#: don't remove all selected templates from the preview, LoadNameRules must set the outline type
+
+ Revision 1.102 2000/07/03 08:54:11 jp
+ must changes for VCL
+
+ Revision 1.101 2000/06/13 14:11:58 os
+ #74049# save outline numbering form to the first empty position
+
+ Revision 1.100 2000/05/23 19:22:39 jp
+ Bugfixes for Unicode
+
+ Revision 1.99 2000/04/26 14:55:46 os
+ GetName() returns const String&
+
+ Revision 1.98 2000/04/18 15:08:17 os
+ UNICODE
+
+ Revision 1.97 2000/03/14 09:32:31 os
+ #74039# outline assignment corrected
+
+ Revision 1.96 2000/03/03 15:17:02 os
+ StarView remainders removed
+
+ Revision 1.95 2000/02/11 14:56:40 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.94 1999/01/06 14:04:56 OS
+ #58643# Positionsbeispiel berichtigt
+
+
+ Rev 1.93 06 Jan 1999 15:04:56 OS
+ #58643# Positionsbeispiel berichtigt
+
+ Rev 1.92 18 Nov 1998 08:35:04 OS
+ #58263# Numerierung in den Svx - Reste
+
+ Rev 1.91 17 Nov 1998 10:57:52 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.90 10 Nov 1998 16:03:34 OS
+ #58201# HelpId fuer Form-Button
+
+ Rev 1.89 09 Nov 1998 14:03:04 AWO
+ Inlcudes hinzugefuegt
+
+ Rev 1.88 06 Nov 1998 14:10:00 OS
+ #45264# Outline-Ebenen nicht fuer index-ebenen
+
+ Rev 1.87 21 Sep 1998 15:31:30 OS
+ #56738# Zeichenvorlage fuer Kapitelnumerierung einstellbar
+
+ Rev 1.86 06 Aug 1998 21:42:08 JP
+ Bug #54796#: neue NumerierungsTypen (WW97 kompatibel)
+
+ Rev 1.85 18 Jul 1998 14:50:52 OS
+ richtige Ebenenanzahl fuer vollst. Numerierung #53233#
+
+ Rev 1.84 09 Jul 1998 14:03:06 OS
+ Kapitelnumerierung jetzt TabDialog
+
+ Rev 1.83 01 Apr 1998 15:15:22 OS
+ Beispielhintergrund zuruecksetzen #49133#
+
+ Rev 1.82 26 Feb 1998 17:07:34 OS
+ keins->keine #47632#
+
+ Rev 1.81 24 Feb 1998 15:44:48 OS
+ Ausrichtung berichtigt #47417#
+
+ Rev 1.80 08 Dec 1997 11:53:30 OS
+ benannte Numerierungen entfernt
+
+ Rev 1.79 05 Dec 1997 16:50:56 OS
+ Numerierungsumbau
+
+ Rev 1.78 05 Dec 1997 10:42:50 OS
+ Numerierungsumbau
+
+ Rev 1.77 04 Dec 1997 16:57:20 OS
+ Numerierungsumbau
+
+ Rev 1.76 24 Nov 1997 16:47:44 MA
+ includes
+
+ Rev 1.75 17 Nov 1997 10:20:58 JP
+ Umstellung Numerierung
+
+ Rev 1.74 03 Nov 1997 13:22:42 MA
+ precomp entfernt
+
+ Rev 1.73 09 Oct 1997 08:48:32 OS
+ Beispieltexte nur noch setzen, wenn sie sich veraendert wurden #44493#
+
+ Rev 1.72 08 Aug 1997 17:28:08 OM
+ Headerfile-Umstellung
+
+ Rev 1.71 31 Jul 1997 15:22:06 MH
+ chg: header
+
+ Rev 1.70 08 Jul 1997 14:09:44 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.69 01 Jul 1997 09:49:52 OS
+ Erweiterung auf neun Formen
+
+ Rev 1.68 09 Jan 1997 18:49:44 OS
+ gfs. aktuelle Ebene selektieren
+
+ Rev 1.67 11 Dec 1996 10:27:02 MA
+ Warnings
+
+ Rev 1.66 11 Nov 1996 11:05:44 MA
+ ResMgr
+
+ Rev 1.65 02 Oct 1996 18:29:00 MA
+ Umstellung Enable/Disable
+
+ Rev 1.64 28 Aug 1996 14:12:18 OS
+ includes
+
+ Rev 1.63 20 Aug 1996 16:22:50 OS
+ Handler zusammengefasst, timeouthdl vor Levelumschaltung rufen
+
+ Rev 1.62 22 Jul 1996 20:54:02 JP
+ Anpassung an die neuen SwUiNumRules
+
+ Rev 1.61 19 Jul 1996 15:32:32 JP
+ Umstellung Numerierung
+
+ Rev 1.60 21 Mar 1996 10:46:00 MA
+ Umstellung SV311
+
+ Rev 1.59 19 Feb 1996 12:33:28 JP
+ MakeNumString kann den Post-/Prefix-String per Flag selbst zufuegen
+
+ Rev 1.58 06 Feb 1996 15:21:12 JP
+ Link Umstellung 305
+
+ Rev 1.57 01 Feb 1996 11:45:58 mk
+ SINIX
+
+ Rev 1.56 03 Jan 1996 11:07:56 OS
+ Format fuer Kapitelnumerierung kann jetzt gespeichert werden
+
+ Rev 1.55 24 Nov 1995 16:58:48 OM
+ PCH->PRECOMPILED
+
+ Rev 1.54 13 Nov 1995 10:51:34 OM
+ static entfernt
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/misc/outline.hrc b/sw/source/ui/misc/outline.hrc
new file mode 100644
index 000000000000..2e7f639e8754
--- /dev/null
+++ b/sw/source/ui/misc/outline.hrc
@@ -0,0 +1,133 @@
+/*************************************************************************
+ *
+ * $RCSfile: outline.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define RB_1 1
+#define RB_2 2
+#define RB_3 3
+#define RB_4 4
+#define RB_5 5
+#define FT_1 6
+#define FT_2 7
+#define FT_3 8
+#define FT_4 9
+#define FT_5 10
+#define FI_1 11
+#define FI_2 12
+#define FI_3 13
+#define FI_4 14
+#define FI_5 15
+//#define GB_LEVEL 16
+
+#define FT_COLL 20
+#define LB_COLL 21
+#define FT_NUMBER 22
+#define LB_NUMBER 23
+#define FT_DELIM 24
+#define FT_DELIM_BEVOR 25
+#define FT_DELIM_AFTER 26
+#define ED_DELIM_BEVOR 27
+#define ED_DELIM_AFTER 28
+#define CB_COMPLETE 29
+#define GB_NUMBER 30
+
+#define LB_ALIGN 31
+#define GB_ALIGN 33
+
+#define FT_START 40
+#define ED_START 41
+#define GB_START 42
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+#define BT_FORM 103
+#define BT_RESET 104
+#define GB_FORM 105
+#define LB_FORM 106
+#define ED_FORM 107
+#define FT_ALL_LEVEL 108
+#define NF_ALL_LEVEL 109
+
+#define MN_FORM 110
+#define MN_FORM1 111
+#define MN_FORMBASE MN_FORM1
+#define MN_FORM2 112
+#define MN_FORM3 113
+#define MN_FORM4 114
+#define MN_FORM5 115
+#define MN_FORM6 116
+#define MN_FORM7 117
+#define MN_FORM8 118
+#define MN_FORM9 119
+#define MN_SAVE 120
+
+#define GB_LEVEL 130
+#define LB_LEVEL 131
+#define WIN_PREVIEW 132
+#define GB_PREVIEW 133
+#define FT_SUFFIX 134
+#define ED_SUFFIX 135
+#define FT_PREFIX 136
+#define ED_PREFIX 137
+#define ST_NO_COLL 138
+
+#define ST_FORM 140
+#define FT_CHARFMT 141
+#define LB_CHARFMT 141
diff --git a/sw/source/ui/misc/outline.src b/sw/source/ui/misc/outline.src
new file mode 100644
index 000000000000..dd91b6587a51
--- /dev/null
+++ b/sw/source/ui/misc/outline.src
@@ -0,0 +1,1506 @@
+/*************************************************************************
+ *
+ * $RCSfile: outline.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+#include "outline.hrc"
+#include "globals.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_NUM_NAMES
+{
+ HelpID = HID_NUM_NAMES ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 164 , 82 ) ;
+ Text= "Speichern als";
+ Text[ italian ] = "Salva con nome";
+ Text[ portuguese_brazilian ] = "Gravar como";
+ Text[ portuguese ] = "Guardar como";
+ Text[ danish ] = "Ge~m som";
+ Text[ french ] = "Enregistrer sous";
+ Text[ swedish ] = "Spara som";
+ Text[ dutch ] = "Opslaan als";
+ Text[ spanish ] = "Guardar como";
+ Text[ english_us ] = "Save As";
+ Text[ chinese_simplified ] = "Áí´æΪ";
+ Text[ russian ] = "Ñîõðàíèòü êàê";
+ Text[ polish ] = "Zapisz jako";
+ Text[ japanese ] = "–¼‘O‚ð•t‚¯‚Ä•Û‘¶";
+ Text[ chinese_traditional ] = "¥t¦s·sÀÉ";
+ Text[ arabic ] = "ÍÝÙ ßÜ";
+ Text = "Speichern als" ;
+ Text [ ENGLISH ] = "Save as" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 108 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 108 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 108 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_FORM
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 96 , 73 ) ;
+ Text = "Form" ;
+ Text [ ENGLISH ] = "Form" ;
+ Text [ english_us ] = "Format" ;
+ Text [ swedish ] = "Format" ;
+ Text [ danish ] = "Form" ;
+ Text [ italian ] = "Forma" ;
+ Text [ spanish ] = "Forma" ;
+ Text [ french ] = "Format" ;
+ Text [ dutch ] = "Vorm" ;
+ Text [ portuguese_brazilian ] = "Form" ;
+ Text [ portuguese ] = "Formato" ;
+ Text[ chinese_simplified ] = "¸ñʽ";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "Ì«°Ñ";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "ÌïñöÞ";
+ Text[ korean ] = "¼­½Ä";
+ Text[ turkish ] = "Format";
+ };
+ ListBox LB_FORM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 29 ) ;
+ Size = MAP_APPFONT ( 84 , 42 ) ;
+ TabStop = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "Unbenannt 1" ; > ;
+ < "Unbenannt 2" ; > ;
+ < "Unbenannt 3" ; > ;
+ < "Unbenannt 4" ; > ;
+ < "Unbenannt 5" ; > ;
+ < "Unbenannt 6" ; > ;
+ < "Unbenannt 7" ; > ;
+ < "Unbenannt 8" ; > ;
+ < "Unbenannt 9" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Unbenannt 1" ; > ;
+ < "Unbenannt 2" ; > ;
+ < "Unbenannt 3" ; > ;
+ < "Unbenannt 4" ; > ;
+ < "Unbenannt 5" ; > ;
+ < "Unbenannt 6" ; > ;
+ < "Unbenannt 7" ; > ;
+ < "Unbenannt 8" ; > ;
+ < "Unbenannt 9" ; > ;
+ };
+ stringlist [ english_us ] =
+ {
+ < "Untitled 1" ; > ;
+ < "Untitled 2" ; > ;
+ < "Untitled 3" ; > ;
+ < "Untitled 4" ; > ;
+ < "Untitled 5" ; > ;
+ < "Untitled 6" ; > ;
+ < "Untitled 7" ; > ;
+ < "Untitled 8" ; > ;
+ < "Untitled 9" ; > ;
+ };
+ stringlist [ swedish ] =
+ {
+ < "Namnlös 1" ; > ;
+ < "Namnlös 2" ; > ;
+ < "Namnlös 3" ; > ;
+ < "Namnlös 4" ; > ;
+ < "Namnlös 5" ; > ;
+ < "Namnlös 6" ; > ;
+ < "Namnlös 7" ; > ;
+ < "Namnlös 8" ; > ;
+ < "Namnlös 9" ; > ;
+ };
+ stringlist [ danish ] =
+ {
+ < "Ikke-navngivet 1" ; > ;
+ < "Ikke-navngivet 2" ; > ;
+ < "Ikke-navngivet 3" ; > ;
+ < "Ikke-navngivet 4" ; > ;
+ < "Ikke-navngivet 5" ; > ;
+ < "Ikke-navngivet 6" ; > ;
+ < "Ikke-navngivet 7" ; > ;
+ < "Ikke-navngivet 8" ; > ;
+ < "Ikke-navngivet 9" ; > ;
+ };
+ stringlist [ italian ] =
+ {
+ < "Senza nome 1" ; > ;
+ < "Senza nome 2" ; > ;
+ < "Senza nome 3" ; > ;
+ < "Senza nome 4" ; > ;
+ < "Senza nome 5" ; > ;
+ < "Senza nome 6" ; > ;
+ < "Senza nome 7" ; > ;
+ < "Senza nome 8" ; > ;
+ < "Senza nome 9" ; > ;
+ };
+ stringlist [ spanish ] =
+ {
+ < "Sin nombre 1" ; > ;
+ < "Sin nombre 2" ; > ;
+ < "Sin nombre 3" ; > ;
+ < "Sin nombre 4" ; > ;
+ < "Sin nombre 5" ; > ;
+ < "Sin nombre 6" ; > ;
+ < "Sin nombre 7" ; > ;
+ < "Sin nombre 8" ; > ;
+ < "Sin nombre 9" ; > ;
+ };
+ stringlist [ french ] =
+ {
+ < "Sans nom 1" ; > ;
+ < "Sans nom 2" ; > ;
+ < "Sans nom 3" ; > ;
+ < "Sans nom 4" ; > ;
+ < "Sans nom 5" ; > ;
+ < "Sans nom 6" ; > ;
+ < "Sans nom 7" ; > ;
+ < "Sans nom 8" ; > ;
+ < "Sans nom 9" ; > ;
+ };
+ stringlist [ dutch ] =
+ {
+ < "Naamloos 1" ; > ;
+ < "Naamloos 2" ; > ;
+ < "Naamloos 3" ; > ;
+ < "Naamloos 4" ; > ;
+ < "Naamloos 5" ; > ;
+ < "Naamloos 6" ; > ;
+ < "Naamloos 7" ; > ;
+ < "Naamloos 8" ; > ;
+ < "Naamloos 9" ; > ;
+ };
+ stringlist [ portuguese ] =
+ {
+ < "Sem nome 1" ; > ;
+ < "Sem nome 2" ; > ;
+ < "Sem nome 3" ; > ;
+ < "Sem nome 4" ; > ;
+ < "Sem nome 5" ; > ;
+ < "Sem nome 6" ; > ;
+ < "Sem nome 7" ; > ;
+ < "Sem nome 8" ; > ;
+ < "Sem nome 9" ; > ;
+ };
+ stringlist [ portuguese_brazilian ] =
+ {
+ < "Unbenannt 1" ; > ;
+ < "Unbenannt 2" ; > ;
+ < "Unbenannt 3" ; > ;
+ < "Unbenannt 4" ; > ;
+ < "Unbenannt 5" ; > ;
+ < "Unbenannt 6" ; > ;
+ < "Unbenannt 7" ; > ;
+ < "Unbenannt 8" ; > ;
+ < "Unbenannt 9" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "δÃüÃû 1" ; > ;
+ < "δÃüÃû 2" ; > ;
+ < "δÃüÃû 3" ; > ;
+ < "δÃüÃû 4" ; > ;
+ < "δÃüÃû 5" ; > ;
+ < "δÃüÃû 6" ; > ;
+ < "δÃüÃû 7" ; > ;
+ < "δÃüÃû 8" ; > ;
+ < "δÃüÃû 9" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Áåç èìåíè 1" ; > ;
+ < "Áåç èìåíè 2" ; > ;
+ < "Áåç èìåíè 3" ; > ;
+ < "Áåç èìåíè 4" ; > ;
+ < "Áåç èìåíè 5" ; > ;
+ < "Áåç èìåíè 6" ; > ;
+ < "Áåç èìåíè 7" ; > ;
+ < "Áåç èìåíè 8" ; > ;
+ < "Áåç èìåíè 9" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Bez nazwy 1" ; > ;
+ < "Bez nazwy 2" ; > ;
+ < "Bez nazwy 3" ; > ;
+ < "Bez nazwy 4" ; > ;
+ < "Bez nazwy 5" ; > ;
+ < "Bez nazwy 6" ; > ;
+ < "Bez nazwy 7" ; > ;
+ < "Bez nazwy 8" ; > ;
+ < "Bez nazwy 9" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "–³‘è 1" ; > ;
+ < "–³‘è 2" ; > ;
+ < "–³‘è 3" ; > ;
+ < "–³‘è 4" ; > ;
+ < "–³‘è 5" ; > ;
+ < "–³‘è 6" ; > ;
+ < "–³‘è 7" ; > ;
+ < "–³‘è 8" ; > ;
+ < "–³‘è 9" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¥¼©R¦W 1" ; > ;
+ < "¥¼©R¦W 2" ; > ;
+ < "¥¼©R¦W 3" ; > ;
+ < "¥¼©R¦W 4" ; > ;
+ < "¥¼©R¦W 5" ; > ;
+ < "¥¼©R¦W 6" ; > ;
+ < "¥¼©R¦W 7" ; > ;
+ < "¥¼©R¦W 8" ; > ;
+ < "¥¼©R¦W 9" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "ÈÏæä ÚäæÇä 1" ; > ;
+ < "ÈÏæä ÚäæÇä 2" ; > ;
+ < "ÈÏæä ÚäæÇä 3" ; > ;
+ < "ÈÏæä ÚäæÇä 4" ; > ;
+ < "ÈÏæä ÚäæÇä 5" ; > ;
+ < "ÈÏæä ÚäæÇä 6" ; > ;
+ < "ÈÏæä ÚäæÇä 7" ; > ;
+ < "ÈÏæä ÚäæÇä 8" ; > ;
+ < "ÈÏæä ÚäæÇä 9" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "Äß÷ùò üíïìá 1" ; > ;
+ < "Äß÷ùò üíïìá 2" ; > ;
+ < "Äß÷ùò üíïìá 3" ; > ;
+ < "Äß÷ùò üíïìá 4" ; > ;
+ < "Äß÷ùò üíïìá 5" ; > ;
+ < "Äß÷ùò üíïìá 6" ; > ;
+ < "Äß÷ùò üíïìá 7" ; > ;
+ < "Äß÷ùò üíïìá 8" ; > ;
+ < "Äß÷ùò üíïìá 9" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "Á¦¸ñ¾øÀ½ 1" ; > ;
+ < "Á¦¸ñ¾øÀ½2" ; > ;
+ < "Á¦¸ñ¾øÀ½3" ; > ;
+ < "Á¦¸ñ¾øÀ½4" ; > ;
+ < "Á¦¸ñ¾øÀ½5" ; > ;
+ < "Á¦¸ñ¾øÀ½6" ; > ;
+ < "Á¦¸ñ¾øÀ½7" ; > ;
+ < "Á¦¸ñ¾øÀ½8" ; > ;
+ < "Á¦¸ñ¾øÀ½9" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Adsýz 1" ; > ;
+ < "Adsýz 2" ; > ;
+ < "Adsýz 3" ; > ;
+ < "Adsýz 4" ; > ;
+ < "Adsýz 5" ; > ;
+ < "Adsýz 6" ; > ;
+ < "Adsýz 7" ; > ;
+ < "Adsýz 8" ; > ;
+ < "Adsýz 9" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ Edit ED_FORM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 84 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ Text = "Speichern als" ;
+ Text[ greek ] = "ÁðïèÞêåõóç ùò";
+ Text[ korean ] = "´Ù¸¥ À̸§À¸·Î ÀúÀå";
+ Text[ turkish ] = "Farklý kaydet...";
+ Text[ language_user1 ] = " ";
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabDialog DLG_TAB_OUTLINE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Kapitelnummerierung" ;
+ Text [ ENGLISH ] = "Outline Numbering" ;
+ Text [ norwegian ] = "Outline Numbering" ;
+ Text [ italian ] = "Numerazione capitolo" ;
+ Text [ portuguese_brazilian ] = "Numeração Vazada" ;
+ Text [ portuguese ] = "Numeração de capítulos" ;
+ Text [ finnish ] = "Jäsennysnumerointi" ;
+ Text [ danish ] = "Kapitelnummerering" ;
+ Text [ french ] = "Numérotation de chapitres" ;
+ Text [ swedish ] = "Kapitelnumrering" ;
+ Text [ dutch ] = "Hoofdstuknummering" ;
+ Text [ spanish ] = "Numeración de capítulos" ;
+ Text [ english_us ] = "Outline Numbering" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ SVLook = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_OUTLINE_NUM ;
+ Text = "Nummerierung" ;
+ Text [ ENGLISH ] = "Numbering" ;
+ Text [ english_us ] = "Numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ dutch ] = "Nummering" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_NUM_POSITION ;
+ Text = "Position" ;
+ Text [ ENGLISH ] = "Position" ;
+ Text [ english_us ] = "Position" ;
+ Text [ portuguese_brazilian ] = "Position" ;
+ Text [ swedish ] = "Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "Posizione" ;
+ Text [ spanish ] = "Posición" ;
+ Text [ french ] = "Position" ;
+ Text [ dutch ] = "Positie" ;
+ Text [ portuguese ] = "Posição" ;
+ Text[ chinese_simplified ] = "λÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u";
+ Text[ chinese_traditional ] = "¦ì¸m";
+ Text[ arabic ] = "ÇáãæÞÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ String ST_FORM
+ {
+ Text = "~Form" ;
+ Text [ ENGLISH ] = "T~ype" ;
+ Text [ english_us ] = "~Format" ;
+ Text [ italian ] = "~Forma" ;
+ Text [ spanish ] = "~Forma" ;
+ Text [ french ] = "Format" ;
+ Text [ dutch ] = "~Vorm" ;
+ Text [ swedish ] = "~Format" ;
+ Text [ danish ] = "Format" ;
+ Text [ portuguese_brazilian ] = "~Form" ;
+ Text [ portuguese ] = "Forma~to" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~F)";
+ Text[ russian ] = "Ôîðìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "Ì«°Ñ(~F)";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "ªí®æ(~F)";
+ Text[ arabic ] = "ÇáÊäÓíÞ";
+ Text[ greek ] = "Ìïñ~öÞ";
+ Text[ korean ] = "¼­½Ä(~F)";
+ Text[ turkish ] = "Format";
+ };
+ Menu MN_FORM
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_FORM1 ;
+ Text = "Unbenannt 1" ;
+ Text [ ENGLISH ] = "Noname 1" ;
+ Text [ norwegian ] = "+++Noname 1" ;
+ Text [ italian ] = "Senza nome 1" ;
+ Text [ portuguese_brazilian ] = "Semnome 1" ;
+ Text [ portuguese ] = "Sem nome 1" ;
+ Text [ finnish ] = "Nimetön 1" ;
+ Text [ danish ] = "Ikke-navngivet 1" ;
+ Text [ french ] = "Sans nom 1" ;
+ Text [ swedish ] = "Namnlös 1" ;
+ Text [ dutch ] = "Naamloos 1" ;
+ Text [ spanish ] = "Sin nombre 1" ;
+ Text [ english_us ] = "Untitled 1" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 1";
+ Text[ russian ] = "Áåç èìåíè 1";
+ Text[ polish ] = "Bez nazwy 1";
+ Text[ japanese ] = "–³‘è 1";
+ Text[ chinese_traditional ] = "¥¼©R¦W 1";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 1";
+ Text[ greek ] = "Äß÷ùò üíïìá 1";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½ 1";
+ Text[ turkish ] = "Adsýz 1";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM2 ;
+ Text = "Unbenannt 2" ;
+ Text [ ENGLISH ] = "Noname 2" ;
+ Text [ norwegian ] = "+++Noname 2" ;
+ Text [ italian ] = "Senza nome 2" ;
+ Text [ portuguese_brazilian ] = "Semnome 2" ;
+ Text [ portuguese ] = "Sem nome 2" ;
+ Text [ finnish ] = "Nimetön 2" ;
+ Text [ danish ] = "Ikke-navngivet 2" ;
+ Text [ french ] = "Sans nom 2" ;
+ Text [ swedish ] = "Namnlös 2" ;
+ Text [ dutch ] = "Naamloos 2" ;
+ Text [ spanish ] = "Sin nombre 2" ;
+ Text [ english_us ] = "Untitled 2" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 2";
+ Text[ russian ] = "Áåç èìåíè 2";
+ Text[ polish ] = "Bez nazwy 2";
+ Text[ japanese ] = "–³‘è 2";
+ Text[ chinese_traditional ] = "¥¼©R¦W 2";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 2";
+ Text[ greek ] = "Äß÷ùò üíïìá 2";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½2";
+ Text[ turkish ] = "Adsýz 2";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM3 ;
+ Text = "Unbenannt 3" ;
+ Text [ ENGLISH ] = "Noname 3" ;
+ Text [ norwegian ] = "+++Noname 3" ;
+ Text [ italian ] = "Senza nome 3" ;
+ Text [ portuguese_brazilian ] = "Semnome 3" ;
+ Text [ portuguese ] = "Sem nome 3" ;
+ Text [ finnish ] = "Nimetön 3" ;
+ Text [ danish ] = "Ikke-navngivet 3" ;
+ Text [ french ] = "Sans nom 3" ;
+ Text [ swedish ] = "Namnlös 3" ;
+ Text [ dutch ] = "Naamloos 3" ;
+ Text [ spanish ] = "Sin nombre 3" ;
+ Text [ english_us ] = "Untitled 3" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 3";
+ Text[ russian ] = "Áåç èìåíè 3";
+ Text[ polish ] = "Bez nazwy 3";
+ Text[ japanese ] = "–³‘è 3";
+ Text[ chinese_traditional ] = "¥¼©R¦W 3";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 3";
+ Text[ greek ] = "Äß÷ùò üíïìá 3";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½3";
+ Text[ turkish ] = "Adsýz 3";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM4 ;
+ Text = "Unbenannt 4" ;
+ Text [ ENGLISH ] = "Noname 4" ;
+ Text [ norwegian ] = "+++Noname 4" ;
+ Text [ italian ] = "Senza nome 4" ;
+ Text [ portuguese_brazilian ] = "Semnome 4" ;
+ Text [ portuguese ] = "Sem nome 4" ;
+ Text [ finnish ] = "Nimetön 4" ;
+ Text [ danish ] = "Ikke-navngivet 4" ;
+ Text [ french ] = "Sans nom 4" ;
+ Text [ swedish ] = "Namnlös 4" ;
+ Text [ dutch ] = "Naamloos 4" ;
+ Text [ spanish ] = "Sin nombre 4" ;
+ Text [ english_us ] = "Untitled 4" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 4";
+ Text[ russian ] = "Áåç èìåíè 4";
+ Text[ polish ] = "Bez nazwy 4";
+ Text[ japanese ] = "–³‘è 4";
+ Text[ chinese_traditional ] = "¥¼©R¦W 4";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 4";
+ Text[ greek ] = "Äß÷ùò üíïìá 4";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½4";
+ Text[ turkish ] = "Adsýz 4";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM5 ;
+ Text = "Unbenannt 5" ;
+ Text [ ENGLISH ] = "Noname 5" ;
+ Text [ norwegian ] = "+++Noname 5" ;
+ Text [ italian ] = "Senza nome 5" ;
+ Text [ portuguese_brazilian ] = "Semnome 5" ;
+ Text [ portuguese ] = "Sem nome 5" ;
+ Text [ finnish ] = "Nimetön 5" ;
+ Text [ danish ] = "Ikke-navngivet 5" ;
+ Text [ french ] = "Sans nom 5" ;
+ Text [ swedish ] = "Namnlös 5" ;
+ Text [ dutch ] = "Naamloos 5" ;
+ Text [ spanish ] = "Sin nombre 5" ;
+ Text [ english_us ] = "Untitled 5" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 5";
+ Text[ russian ] = "Áåç èìåíè 5";
+ Text[ polish ] = "Bez nazwy 5";
+ Text[ japanese ] = "–³‘è 5";
+ Text[ chinese_traditional ] = "¥¼©R¦W 5";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 5";
+ Text[ greek ] = "Äß÷ùò üíïìá 5";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½5";
+ Text[ turkish ] = "Adsýz 5";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM6 ;
+ Text = "Unbenannt 6" ;
+ Text [ ENGLISH ] = "Noname 6" ;
+ Text [ norwegian ] = "+++Noname 6" ;
+ Text [ italian ] = "Senza nome 6" ;
+ Text [ portuguese_brazilian ] = "Semnome 6" ;
+ Text [ portuguese ] = "Sem nome 6" ;
+ Text [ finnish ] = "Nimetön 6" ;
+ Text [ danish ] = "Ikke-navngivet 6" ;
+ Text [ french ] = "Sans nom 6" ;
+ Text [ swedish ] = "Namnlös 6" ;
+ Text [ dutch ] = "Naamloos 6" ;
+ Text [ spanish ] = "Sin nombre 6" ;
+ Text [ english_us ] = "Untitled 6" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 6";
+ Text[ russian ] = "Áåç èìåíè 6";
+ Text[ polish ] = "Bez nazwy 6";
+ Text[ japanese ] = "–³‘è 6";
+ Text[ chinese_traditional ] = "¥¼©R¦W 6";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 6";
+ Text[ greek ] = "Äß÷ùò üíïìá 6";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½6";
+ Text[ turkish ] = "Adsýz 6";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM7 ;
+ Text = "Unbenannt 7" ;
+ Text [ ENGLISH ] = "Noname 7" ;
+ Text [ norwegian ] = "+++Noname 7" ;
+ Text [ italian ] = "Senza nome 7" ;
+ Text [ portuguese_brazilian ] = "Semnome 7" ;
+ Text [ portuguese ] = "Sem nome 7" ;
+ Text [ finnish ] = "Nimetön 7" ;
+ Text [ danish ] = "Ikke-navngivet 7" ;
+ Text [ french ] = "Sans nom 7" ;
+ Text [ swedish ] = "Namnlös 7" ;
+ Text [ dutch ] = "Naamloos 7" ;
+ Text [ spanish ] = "Sin nombre 7" ;
+ Text [ english_us ] = "Untitled 7" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 7";
+ Text[ russian ] = "Áåç èìåíè 7";
+ Text[ polish ] = "Bez nazwy 7";
+ Text[ japanese ] = "–³‘è 7";
+ Text[ chinese_traditional ] = "¥¼©R¦W 7";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 7";
+ Text[ greek ] = "Äß÷ùò üíïìá 7";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½7";
+ Text[ turkish ] = "Adsýz 7";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM8 ;
+ Text = "Unbenannt 8" ;
+ Text [ ENGLISH ] = "Noname 8" ;
+ Text [ norwegian ] = "+++Noname 8" ;
+ Text [ italian ] = "Senza nome 8" ;
+ Text [ portuguese_brazilian ] = "Semnome 8" ;
+ Text [ portuguese ] = "Sem nome 8" ;
+ Text [ finnish ] = "Nimetön 8" ;
+ Text [ danish ] = "Ikke-navngivet 8" ;
+ Text [ french ] = "Sans nom 8" ;
+ Text [ swedish ] = "Namnlös 8" ;
+ Text [ dutch ] = "Naamloos 8" ;
+ Text [ spanish ] = "Sin nombre 8" ;
+ Text [ english_us ] = "Untitled 8" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 8";
+ Text[ russian ] = "Áåç èìåíè 8";
+ Text[ polish ] = "Bez nazwy 8";
+ Text[ japanese ] = "–³‘è 8";
+ Text[ chinese_traditional ] = "¥¼©R¦W 8";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 8";
+ Text[ greek ] = "Äß÷ùò üíïìá 8";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½8";
+ Text[ turkish ] = "Adsýz 8";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_FORM9 ;
+ Text = "Unbenannt 9" ;
+ Text [ ENGLISH ] = "Noname 9" ;
+ Text [ norwegian ] = "+++Noname 9" ;
+ Text [ italian ] = "Senza nome 9" ;
+ Text [ portuguese_brazilian ] = "Semnome 9" ;
+ Text [ portuguese ] = "Sem nome 9" ;
+ Text [ finnish ] = "Nimetön 9" ;
+ Text [ danish ] = "Ikke-navngivet 9" ;
+ Text [ french ] = "Sans nom 9" ;
+ Text [ swedish ] = "Namnlös 9" ;
+ Text [ dutch ] = "Naamloos 9" ;
+ Text [ spanish ] = "Sin nombre 9" ;
+ Text [ english_us ] = "Untitled 9" ;
+ HelpID = HID_NUM_OUTL_NAMED_NUMS ;
+ Text[ chinese_simplified ] = "δÃüÃû 9";
+ Text[ russian ] = "Áåç èìåíè 9";
+ Text[ polish ] = "Bez nazwy 9";
+ Text[ japanese ] = "–³‘è 9";
+ Text[ chinese_traditional ] = "¥¼©R¦W 9";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä 9";
+ Text[ greek ] = "Äß÷ùò üíïìá 9";
+ Text[ korean ] = "Á¦¸ñ¾øÀ½9";
+ Text[ turkish ] = "Adsýz 9";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = MN_SAVE ;
+ Text= "Speichern ~als...";
+ Text[ italian ] = "Salva con nome...";
+ Text[ portuguese_brazilian ] = "Gravar ~como...";
+ Text[ portuguese ] = "Guardar ~como...";
+ Text[ danish ] = "Gem som...";
+ Text[ french ] = "Enregistrer comme...";
+ Text[ swedish ] = "Spara so~m...";
+ Text[ dutch ] = "Ops~laan als...";
+ Text[ spanish ] = "G~uardar como...";
+ Text[ english_us ] = "Save ~As...";
+ Text[ russian ] = "Ñîõðàíèòü êàê...";
+ Text[ polish ] = "Zapisz jako...";
+ Text[ japanese ] = "–¼‘O‚ð•t‚¯‚Ä•Û‘¶(~A)...";
+ Text[ chinese_simplified ] = "Áí´æΪ(~A)...";
+ Text = "Speichern ~als..." ;
+ Text[ arabic ] = "...ÍÝÙ ßÜ";
+ HelpID = HID_NUM_OUTL_NUM_SAVEAS ;
+ Text[ greek ] = "~ÁðïèÞêåõóç ùò...";
+ Text[ korean ] = "´Ù¸¥ À̸§À¸·Î ÀúÀå(~A)...";
+ Text[ chinese_traditional ] = "Àx¦s·sÀÉ(~A)...";
+ Text[ turkish ] = "Farklý kaydet...";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "Õ±àºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ ãëàâ";
+ Text[ polish ] = "Numeracja rozdzia³ów";
+ Text[ japanese ] = "͂̔Ԇ•t‚¯";
+ Text[ chinese_traditional ] = "³¹½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÇáÝÕæá";
+ Text[ greek ] = "Áñßèìçóç êåöáëáßùí";
+ Text[ korean ] = "Àå ¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Bölüm numaralama";
+ Text[ language_user1 ] = " ";
+};
+/**************************************************************************/
+/* */
+/* TabPage */
+/* */
+/**************************************************************************/
+TabPage TP_OUTLINE_NUM
+{
+ HelpID = HID_TP_OUTLINE_NUM ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE;
+ ListBox LB_LEVEL
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 21 , 114 ) ;
+ TabStop = TRUE ;
+ DropDown = FALSE ;
+ Border = TRUE ;
+ };
+ GroupBox GB_LEVEL
+ {
+ Pos = MAP_APPFONT ( 6 , 1 ) ;
+ Size = MAP_APPFONT ( 33 , 131 ) ;
+ Text = "Ebene" ;
+ Text [ ENGLISH ] = "Level" ;
+ Text [ norwegian ] = "Level" ;
+ Text [ italian ] = "Livello" ;
+ Text [ portuguese_brazilian ] = "Nível" ;
+ Text [ portuguese ] = "Nível" ;
+ Text [ finnish ] = "Taso" ;
+ Text [ danish ] = "Niveau" ;
+ Text [ french ] = "Niveau" ;
+ Text [ swedish ] = "Nivå" ;
+ Text [ dutch ] = "Niveau" ;
+ Text [ spanish ] = "Nivel" ;
+ Text [ english_us ] = "Level" ;
+ Text[ chinese_simplified ] = "¼¶";
+ Text[ russian ] = "Óðîâåíü";
+ Text[ polish ] = "Poziom";
+ Text[ japanese ] = "ÚÍÞÙ";
+ Text[ chinese_traditional ] = "¯Å";
+ Text[ arabic ] = "ÇáãÓÊæì";
+ Text[ greek ] = "Åðßðåäï";
+ Text[ korean ] = "¼öÁØ";
+ Text[ turkish ] = "Düzey";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_COLL
+ {
+ Pos = MAP_APPFONT ( 48 , 10 ) ;
+ Size = MAP_APPFONT ( 81 , 8 ) ;
+ Text = "~Absatzvorlage" ;
+ Text [ ENGLISH ] = "~Paragraph style" ;
+ Text [ norwegian ] = "~Avsnittsoppsett" ;
+ Text [ italian ] = "~Modello di paragrafo" ;
+ Text [ portuguese_brazilian ] = "~Estilo de parágrafo" ;
+ Text [ portuguese ] = "~Estilo de parágrafo" ;
+ Text [ finnish ] = "~Kappaletyyli" ;
+ Text [ danish ] = "Afsnitstypografi" ;
+ Text [ french ] = "~Style de paragraphe" ;
+ Text [ swedish ] = "~Styckeformatmall" ;
+ Text [ dutch ] = "~Alinea-opmaakprofiel" ;
+ Text [ spanish ] = "Estilo de ~párrafo" ;
+ Text [ english_us ] = "~Paragraph Style" ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¶ÎÂäÑùʽ(~P)";
+ Text[ russian ] = "Ñòèëü àáçàöà";
+ Text[ polish ] = "Styl akapitu";
+ Text[ japanese ] = "’i—Ž½À²Ùi~P)";
+ Text[ chinese_traditional ] = "¬q¸¨¼Ë¦¡(~P)";
+ Text[ arabic ] = "äãØ ÇáÝÞÑÉ";
+ Text[ language_user1 ] = "All \"Vorlage\"/Styles are always written with capital S. 10.5.00EM";
+ Text[ greek ] = "Ðñüôõðá ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô À¯Çü(~P)";
+ Text[ turkish ] = "Paragraf þablonu";
+ };
+ ListBox LB_COLL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 48 , 20 ) ;
+ Size = MAP_APPFONT ( 122 , 75 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Sort = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ };
+ FixedText FT_NUMBER
+ {
+ Pos = MAP_APPFONT ( 48 , 40 ) ;
+ Size = MAP_APPFONT ( 35 , 8 ) ;
+ Text = "~Nummer" ;
+ Text [ ENGLISH ] = "~Number" ;
+ Text [ norwegian ] = "~Number" ;
+ Text [ italian ] = "~Numero" ;
+ Text [ portuguese_brazilian ] = "~Número" ;
+ Text [ portuguese ] = "~Número" ;
+ Text [ finnish ] = "~Numero" ;
+ Text [ danish ] = "Nummer" ;
+ Text [ french ] = "~Numéro" ;
+ Text [ swedish ] = "~Nummer" ;
+ Text [ dutch ] = "~Nummer" ;
+ Text [ spanish ] = "~Número" ;
+ Text [ english_us ] = "~Number" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "񅧏(~N)";
+ Text[ russian ] = "Íîìåð";
+ Text[ polish ] = "Numer";
+ Text[ japanese ] = "”Ô†(~N)";
+ Text[ chinese_traditional ] = "½s¸¹(~N)";
+ Text[ arabic ] = "ÑÞã";
+ Text[ greek ] = "Áñéèìüò";
+ Text[ korean ] = "¼ö(~N)";
+ Text[ turkish ] = "Numara";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_NUMBER
+ {
+ Pos = MAP_APPFONT ( 97 , 38 ) ;
+ Size = MAP_APPFONT ( 73 , 65 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Ohne" ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "None" ;
+ };
+ StringList [ norwegian ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Ingen" ;
+ };
+ StringList [ italian ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Senza" ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Nenhum" ;
+ };
+ StringList [ portuguese ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Sem" ;
+ };
+ StringList [ finnish ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Ei ole" ;
+ };
+ StringList [ danish ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Uden" ;
+ };
+ StringList [ french ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Aucun(e)" ;
+ };
+ StringList [ swedish ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Utan" ;
+ };
+ StringList [ dutch ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Geen" ;
+ };
+ StringList [ spanish ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Ninguno" ;
+ };
+ StringList [ english_us ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "None" ;
+ };
+ StringList [ language_user1 ] =
+ {
+ " " ;
+ " " ;
+ " " ;
+ " " ;
+ " " ;
+ " " ;
+ " " ;
+ " " ;
+ };
+ StringList [ russian ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Áåç" ;
+ };
+ StringList [ greek ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "×ùñßò" ;
+ };
+ StringList [ polish ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Brak" ;
+ };
+ StringList [ japanese ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "‚È‚µ" ;
+ };
+ StringList [ korean ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "¾øÀ½" ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "ÎÞ" ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "µL" ;
+ };
+ StringList [ arabic ] =
+ {
+ "A, B, C, ..." ;
+ "...áȡÊ" ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "ÈÏæä" ;
+ };
+ StringList [ turkish ] =
+ {
+ "A, B, C, ..." ;
+ "a, b, c, ..." ;
+ "I, II, III, ..." ;
+ "i, ii, iii, ..." ;
+ "1, 2, 3, ..." ;
+ "A, .., AA, .., AAA, ..." ;
+ "a, .., aa, .., aaa, ..." ;
+ "Yok" ;
+ };
+ };
+ FixedText FT_CHARFMT
+ {
+ Pos = MAP_APPFONT ( 48 , 58 ) ;
+ Size = MAP_APPFONT ( 45 , 8 ) ;
+ Text = "Zeichenv~orlage" ;
+ Text [ ENGLISH ] = "Character style" ;
+ Text [ english_us ] = "~Character Style" ;
+ Text [ swedish ] = "~Teckenformatmall" ;
+ Text [ danish ] = "Tegntypografi" ;
+ Text [ italian ] = "Modello di carattere" ;
+ Text [ spanish ] = "E~stilo de carácter" ;
+ Text [ french ] = "St~yle de caractères" ;
+ Text [ dutch ] = "~Tekenopmaakprofiel" ;
+ Text [ portuguese_brazilian ] = "Zeichenv~orlage" ;
+ Text [ portuguese ] = "~Estilo de caracteres:" ;
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ russian ] = "Ñòèëü çíàêîâ";
+ Text[ polish ] = "Styl znaku";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ chinese_traditional ] = "¦r¤¸¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯Çü(~C)";
+ Text[ turkish ] = "Karakter þablonu";
+ Text[ language_user1 ] = "All \"Vorlage\"/Styles are always written with capital S. 10.5.00EM";
+ };
+ ListBox LB_CHARFMT
+ {
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ Pos = MAP_APPFONT ( 97 , 56 ) ;
+ Size = MAP_APPFONT ( 73 , 65 ) ;
+ };
+ FixedText FT_ALL_LEVEL
+ {
+ Pos = MAP_APPFONT ( 48 , 76 ) ;
+ Size = MAP_APPFONT ( 48 , 10 ) ;
+ Text = "~Vollständig" ;
+ Text [ ENGLISH ] = "~Complete" ;
+ Text [ norwegian ] = "~Fullstendig" ;
+ Text [ italian ] = "~Completo" ;
+ Text [ portuguese_brazilian ] = "~Completar" ;
+ Text [ portuguese ] = "Co~mpleto" ;
+ Text [ finnish ] = "~Täydellinen" ;
+ Text [ danish ] = "Fuldstændig" ;
+ Text [ french ] = "C~omplet" ;
+ Text [ swedish ] = "~Fullständig" ;
+ Text [ dutch ] = "~Volledig" ;
+ Text [ spanish ] = "~Completo" ;
+ Text [ english_us ] = "Sho~w sublevels" ;
+ Text[ chinese_simplified ] = "ÍêÕûµÄ(~W)";
+ Text[ russian ] = "Ïîëíîñòüþ";
+ Text[ polish ] = "Kompletny";
+ Text[ japanese ] = "‘Í”(~W)";
+ Text[ chinese_traditional ] = "§¹¾ãªº(~W)";
+ Text[ arabic ] = "ßÇãá";
+ Text[ greek ] = "ÏëïêëçñùìÝíï";
+ Text[ korean ] = "ÇÏÀ§ ¼öÁØ º¸À̱â(~W)";
+ Text[ turkish ] = "Tüm düzeyler";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_ALL_LEVEL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 97 , 74 ) ;
+ Size = MAP_APPFONT ( 73 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 10 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 10 ;
+ };
+ FixedText FT_DELIM
+ {
+ Pos = MAP_APPFONT ( 48 , 90 ) ;
+ Size = MAP_APPFONT ( 40 , 8 ) ;
+ Text = "Trennzeichen" ;
+ Text [ ENGLISH ] = "Delimiter" ;
+ Text [ norwegian ] = "Skilletegn" ;
+ Text [ italian ] = "Separatore" ;
+ Text [ portuguese_brazilian ] = "Delimitador" ;
+ Text [ portuguese ] = "Separador" ;
+ Text [ finnish ] = "Erotin" ;
+ Text [ danish ] = "Skilletegn" ;
+ Text [ french ] = "Séparateur" ;
+ Text [ swedish ] = "Skiljetecken" ;
+ Text [ dutch ] = "Scheidingsteken" ;
+ Text [ spanish ] = "Separador" ;
+ Text [ english_us ] = "Separator" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹æØ‚è‹L†";
+ Text[ chinese_traditional ] = "¤À¹j²Å";
+ Text[ arabic ] = "ÝÇÕá";
+ Text[ greek ] = "Åíùôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ";
+ Text[ turkish ] = "Ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_PREFIX
+ {
+ Pos = MAP_APPFONT ( 97 , 90 ) ;
+ Size = MAP_APPFONT ( 21 , 8 ) ;
+ Text = "~davor" ;
+ Text [ ENGLISH ] = "before" ;
+ Text [ norwegian ] = "før" ;
+ Text [ italian ] = "~Davanti" ;
+ Text [ portuguese_brazilian ] = "antes" ;
+ Text [ portuguese ] = "an~tes" ;
+ Text [ finnish ] = "Edellä" ;
+ Text [ danish ] = "Før" ;
+ Text [ french ] = "Devant" ;
+ Text [ swedish ] = "f~ramför" ;
+ Text [ dutch ] = "~ervoor" ;
+ Text [ spanish ] = "~delante" ;
+ Text [ english_us ] = "~Before" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~B)";
+ Text[ russian ] = "äî";
+ Text[ polish ] = "przed";
+ Text[ japanese ] = "”Ô†‘O(~B)";
+ Text[ chinese_traditional ] = "¤§«e(~B)";
+ Text[ arabic ] = "ÞÈáå";
+ Text[ greek ] = "ðñéí áðü";
+ Text[ korean ] = "Àü¿¡(~B)";
+ Text[ turkish ] = "Baþ. ekle";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_PREFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 97 , 101 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_SUFFIX
+ {
+ Pos = MAP_APPFONT ( 134 , 90 ) ;
+ Size = MAP_APPFONT ( 30 , 8 ) ;
+ // ### ACHTUNG: Neuer Text in Resource? dah~inter : da~hinter
+ Text = "dah~inter" ;
+ Text [ ENGLISH ] = "behind" ;
+ Text [ norwegian ] = "bak" ;
+ Text [ italian ] = "D~ietro" ;
+ Text [ portuguese_brazilian ] = "atrßs" ;
+ Text [ portuguese ] = "~Atrás" ;
+ Text [ finnish ] = "jäljessä" ;
+ Text [ danish ] = "Efter" ;
+ Text [ french ] = "Derrière" ;
+ Text [ swedish ] = "ba~kom" ;
+ Text [ dutch ] = "era~chter" ;
+ Text [ spanish ] = "d~etrás" ;
+ Text [ english_us ] = "~After" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "Ö®ºó(~A)";
+ Text[ russian ] = "ïîñëå";
+ Text[ polish ] = "za";
+ Text[ japanese ] = "”Ô†Œã(~A)";
+ Text[ chinese_traditional ] = "¤§«á(~A)";
+ Text[ arabic ] = "ÈÚÏå";
+ Text[ greek ] = "ìåôÜ áðü";
+ Text[ korean ] = "ÈÄ¿¡(~A)";
+ Text[ turkish ] = "Son. ekle";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_SUFFIX
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 134 , 101 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Left = TRUE ;
+ };
+ FixedText FT_START
+ {
+ Pos = MAP_APPFONT ( 48 , 119 ) ;
+ Size = MAP_APPFONT ( 43 , 8 ) ;
+ Text = "~Beginn bei" ;
+ Text [ English ] = "~Start at" ;
+ Text [ norwegian ] = "~Start på" ;
+ Text [ italian ] = "~Inizia con" ;
+ Text [ portuguese_brazilian ] = "~Começar em" ;
+ Text [ portuguese ] = "~Começar em" ;
+ Text [ finnish ] = "~Start at" ;
+ Text [ danish ] = "Begynd med" ;
+ Text [ french ] = "~À partir de" ;
+ Text [ swedish ] = "~Börja vid" ;
+ Text [ dutch ] = "~Begin met" ;
+ Text [ spanish ] = "Comen~zar en" ;
+ Text [ english_us ] = "~Start at" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¿ªÊ¼´Ó(~S)";
+ Text[ russian ] = "Íà÷àòü ñ";
+ Text[ polish ] = "Zacznij od";
+ Text[ japanese ] = "ŠJŽn͔Ԇ(~S)";
+ Text[ chinese_traditional ] = "¶}©l±q(~S)";
+ Text[ arabic ] = "ÈÏÁð ÈÜ";
+ Text[ greek ] = "ÈÝóç åêêßíçóçò";
+ Text[ korean ] = "¿¡¼­ ½ÃÀÛ(~S)";
+ Text[ turkish ] = "Baþlangýç:";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_START
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 97 , 117 ) ;
+ Size = MAP_APPFONT ( 73 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ Repeat = TRUE ;
+ Maximum = 999 ;
+ Value = 0 ;
+ First = 0 ;
+ Last = 99 ;
+ SpinSize = 1 ;
+ };
+ GroupBox GB_NUMBER
+ {
+ Pos = MAP_APPFONT ( 42 , 1 ) ;
+ Size = MAP_APPFONT ( 131 , 131 ) ;
+ Text = "Nummerierung" ;
+ Text [ ENGLISH ] = "Numbering" ;
+ Text [ norwegian ] = "Nummering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ portuguese_brazilian ] = "Numeração" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text [ finnish ] = "Numerointi" ;
+ Text [ danish ] = "Nummerering" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ dutch ] = "Nummering" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ english_us ] = "Numbering" ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+ };
+ Window WIN_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 179 , 12 ) ;
+ Size = MAP_APPFONT ( 72 , 114 ) ;
+ };
+ GroupBox GB_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 176 , 1 ) ;
+ Size = MAP_APPFONT ( 78 , 130 ) ;
+ Text = "Vorschau" ;
+ Text [ ENGLISH ] = "Preview" ;
+ Text [ english_us ] = "Preview" ;
+ Text [ portuguese_brazilian ] = "Vorschau" ;
+ Text [ swedish ] = "Förhandsvisning" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ italian ] = "Anteprima" ;
+ Text [ spanish ] = "Previsualización" ;
+ Text [ french ] = "Aperçu" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ portuguese ] = "Previsualizar" ;
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ polish ] = "Podgl¹d";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ÇáãÚÇíäÉ";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ turkish ] = "Önizleme";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_NO_COLL
+ {
+ Text = "(keine)" ;
+ TEXT [ English ] = "(none)" ;
+ TEXT [ norwegian ] = "(ingen)" ;
+ TEXT [ italian ] = "(nessuno)" ;
+ TEXT [ portuguese_brazilian ] = "(nenhum)" ;
+ TEXT [ portuguese ] = "(nenhum)" ;
+ TEXT [ finnish ] = "(ei mitään)" ;
+ TEXT [ danish ] = "(ingen)" ;
+ TEXT [ french ] = "(aucun(e))" ;
+ TEXT [ swedish ] = "(inga)" ;
+ TEXT [ dutch ] = "(geen)" ;
+ TEXT [ spanish ] = "(ninguna)" ;
+ TEXT [ english_us ] = "(none)" ;
+ TEXT[ chinese_simplified ] = "(ÎÞ)";
+ TEXT[ russian ] = "(áåç)";
+ TEXT[ polish ] = "(brak)";
+ TEXT[ japanese ] = "(‚È‚µ)";
+ TEXT[ chinese_traditional ] = "(µL)";
+ TEXT[ arabic ] = "(ÈÏæä)";
+ TEXT[ greek ] = "(êáíÝíá)";
+ TEXT[ korean ] = "(¾øÀ½)";
+ TEXT[ turkish ] = "(Yok)";
+ TEXT[ language_user1 ] = " ";
+ };
+};
+
diff --git a/sw/source/ui/misc/pgfnote.cxx b/sw/source/ui/misc/pgfnote.cxx
new file mode 100644
index 000000000000..c60da0aee7d9
--- /dev/null
+++ b/sw/source/ui/misc/pgfnote.cxx
@@ -0,0 +1,478 @@
+/*************************************************************************
+ *
+ * $RCSfile: pgfnote.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _REF_HXX //to avoid internal compiler errors
+#include <tools/ref.hxx>
+#endif
+
+#include "cmdid.h"
+#include "hintids.hxx"
+#include "uiparam.hxx"
+
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+
+
+#include "uitool.hxx"
+#include "globals.hrc"
+#include "pagedesc.hxx"
+#include "pgfnote.hxx"
+#include "uiitems.hxx"
+
+#include "misc.hrc"
+#include "pgfnote.hrc"
+
+#define TWIP_TO_LBOX 5
+/*-----------------------------------------------------#---------------
+ Beschreibung: vordefinierte Linien in Point
+ --------------------------------------------------------------------*/
+
+static const USHORT __FAR_DATA nLines[] = {
+ 0,
+ 50,
+ 100,
+ 150,
+ 200,
+ 500
+};
+
+static const USHORT nLineCount = sizeof(nLines) / sizeof(nLines[0]);
+
+static USHORT __FAR_DATA aPageRg[] = {
+ FN_PARAM_FTN_INFO, FN_PARAM_FTN_INFO,
+ 0
+};
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: liefert zurueck, ob die Linienbreite nWidth bereits
+ in der Listbox enthalten ist.
+------------------------------------------------------------------------*/
+
+
+BOOL lcl_HasLineWidth(USHORT nWidth)
+{
+ for(USHORT i = 0; i < nLineCount; ++i) {
+ if(nLines[i] == nWidth)
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler fuer umschalten zwischen den unterschiedlichen
+ Arten, wie die Hoehe des Fussnotenbereiches angegeben
+ werden kann.
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK_INLINE_START( SwFootNotePage, HeightPage, Button *, EMPTYARG )
+{
+ aMaxHeightEdit.Enable(FALSE);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFootNotePage, HeightPage, Button *, EMPTYARG )
+
+
+IMPL_LINK_INLINE_START( SwFootNotePage, HeightMetric, Button *, EMPTYARG )
+{
+ aMaxHeightEdit.Enable();
+ aMaxHeightEdit.GrabFocus();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFootNotePage, HeightMetric, Button *, EMPTYARG )
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler Grenzwerte
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwFootNotePage, HeightModify, MetricField *, EMPTYARG )
+{
+ aMaxHeightEdit.SetMax(aMaxHeightEdit.Normalize(lMaxHeight -
+ (aDistEdit.Denormalize(aDistEdit.GetValue(FUNIT_TWIP)) +
+ aLineDistEdit.Denormalize(aLineDistEdit.GetValue(FUNIT_TWIP)))),
+ FUNIT_TWIP);
+ if(aMaxHeightEdit.GetValue() < 0)
+ aMaxHeightEdit.SetValue(0);
+ aDistEdit.SetMax(aDistEdit.Normalize(lMaxHeight -
+ (aMaxHeightEdit.Denormalize(aMaxHeightEdit.GetValue(FUNIT_TWIP)) +
+ aLineDistEdit.Denormalize(aLineDistEdit.GetValue(FUNIT_TWIP)))),
+ FUNIT_TWIP);
+ if(aDistEdit.GetValue() < 0)
+ aDistEdit.SetValue(0);
+ aLineDistEdit.SetMax(aLineDistEdit.Normalize(lMaxHeight -
+ (aMaxHeightEdit.Denormalize(aMaxHeightEdit.GetValue(FUNIT_TWIP)) +
+ aDistEdit.Denormalize(aDistEdit.GetValue(FUNIT_TWIP)))),
+ FUNIT_TWIP);
+ return 0;
+}
+
+// CTOR / DTOR -----------------------------------------------------------
+
+SwFootNotePage::SwFootNotePage(Window *pParent, const SfxItemSet &rSet) :
+
+ SfxTabPage(pParent, SW_RES(TP_FOOTNOTE_PAGE), rSet),
+
+ aMaxHeightPageBtn(this, SW_RES(RB_MAXHEIGHT_PAGE)),
+ aMaxHeightBtn(this, SW_RES(RB_MAXHEIGHT)),
+ aMaxHeightEdit(this, SW_RES(ED_MAXHEIGHT)),
+ aDistLbl(this, SW_RES(FT_DIST)),
+ aDistEdit(this, SW_RES(ED_DIST)),
+ aPosFrm(this, SW_RES(GB_FOOTNOTE_SIZE)),
+
+ aLinePosLbl(this, SW_RES(FT_LINEPOS)),
+ aLinePosBox(this, SW_RES(DLB_LINEPOS)),
+ aLineTypeLbl(this, SW_RES(FT_LINETYPE)),
+ aLineTypeBox(this, SW_RES(DLB_LINETYPE)),
+ aLineWidthLbl(this, SW_RES(FT_LINEWIDTH)),
+ aLineWidthEdit(this, SW_RES(ED_LINEWIDTH)),
+ aLineDistLbl(this, SW_RES(FT_LINEDIST)),
+ aLineDistEdit(this, SW_RES(ED_LINEDIST)),
+ aLineFrm(this, SW_RES(GB_LINE)),
+ aBspWin(this, SW_RES(WN_BSP)),
+ aBspFrm(this, SW_RES(GB_BSP))
+{
+ FreeResource();
+
+ SetExchangeSupport();
+ FieldUnit aMetric = ::GetDfltMetric(FALSE);
+ SetMetric( aMaxHeightEdit, aMetric );
+ SetMetric( aDistEdit, aMetric );
+ SetMetric( aLineDistEdit, aMetric );
+ MeasurementSystem eSys = Application::GetAppInternational().GetMeasurementSystem();
+ long nHeightValue = MEASURE_METRIC != eSys ? 1440 : 1134;
+ aMaxHeightEdit.SetValue(aMaxHeightEdit.Normalize(nHeightValue),FUNIT_TWIP);;
+}
+
+SwFootNotePage::~SwFootNotePage()
+{
+}
+
+
+SfxTabPage* SwFootNotePage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwFootNotePage(pParent, rSet);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwFootNotePage::Reset(const SfxItemSet &rSet)
+{
+ // Falls noch kein Bsp vorhanden Init hier sonst im Activate
+ //
+ SwPageFtnInfo* pDefFtnInfo = 0;
+ const SwPageFtnInfo* pFtnInfo;
+ const SfxPoolItem* pItem = SfxTabPage::GetItem(rSet, FN_PARAM_FTN_INFO);
+ if( pItem )
+ {
+ pFtnInfo = &((const SwPageFtnInfoItem*)pItem)->GetPageFtnInfo();
+ }
+ else
+ {
+ // wenn "Standard" betaetigt wird, wird das Fussnotenitem geloescht,
+ // deswegen muss hier eine Fussnotenstruktur erzeugt werden
+ pDefFtnInfo = new SwPageFtnInfo();
+ pFtnInfo = pDefFtnInfo;
+ }
+ // Hoehe Fussnotenbereich
+ SwTwips lHeight = pFtnInfo->GetHeight();
+ if(lHeight)
+ {
+ aMaxHeightEdit.SetValue(aMaxHeightEdit.Normalize(lHeight),FUNIT_TWIP);
+ aMaxHeightBtn.Check(TRUE);
+ }
+ else
+ {
+ aMaxHeightPageBtn.Check(TRUE);
+ aMaxHeightEdit.Enable(FALSE);
+ }
+ aMaxHeightPageBtn.SetClickHdl(LINK(this,SwFootNotePage,HeightPage));
+ aMaxHeightBtn.SetClickHdl(LINK(this,SwFootNotePage,HeightMetric));
+ Link aLk = LINK(this, SwFootNotePage, HeightModify);
+ aMaxHeightEdit.SetLoseFocusHdl( aLk );
+ aDistEdit.SetLoseFocusHdl( aLk );
+ aLineDistEdit.SetLoseFocusHdl( aLk );
+
+ // Trennlinie
+ for(USHORT i = 0; i < nLineCount; ++i)
+ aLineTypeBox.InsertEntry(nLines[i]);
+
+ const USHORT nWidth = (USHORT)pFtnInfo->GetLineWidth() * TWIP_TO_LBOX;
+ if(lcl_HasLineWidth(nWidth))
+ aLineTypeBox.SelectEntry(nWidth);
+ else
+ {
+ aLineTypeBox.InsertEntry(nWidth);
+ aLineTypeBox.SelectEntry(nWidth);
+ }
+
+ // Position
+ aLinePosBox.SelectEntryPos(pFtnInfo->GetAdj());
+
+ // Breite
+ Fraction aTmp( 100, 1 );
+ aTmp *= pFtnInfo->GetWidth();
+ aLineWidthEdit.SetValue( aTmp );
+
+ // Abstand Fussnotenbereich
+ aDistEdit.SetValue(aDistEdit.Normalize(pFtnInfo->GetTopDist()),FUNIT_TWIP);
+ aLineDistEdit.SetValue(
+ aLineDistEdit.Normalize(pFtnInfo->GetBottomDist()), FUNIT_TWIP);
+ ActivatePage( rSet );
+ delete pDefFtnInfo;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Attribute in den Set stopfen bei OK
+ --------------------------------------------------------------------*/
+
+
+BOOL SwFootNotePage::FillItemSet(SfxItemSet &rSet)
+{
+ SwPageFtnInfoItem aItem((const SwPageFtnInfoItem&)GetItemSet().Get(FN_PARAM_FTN_INFO));
+
+ // Das ist das Original
+ SwPageFtnInfo &rFtnInfo = aItem.GetPageFtnInfo();
+
+ // Hoehe Fussnotenbereich
+ if(aMaxHeightBtn.IsChecked())
+ rFtnInfo.SetHeight(aMaxHeightEdit.
+ Denormalize(aMaxHeightEdit.GetValue(FUNIT_TWIP)));
+ else
+ rFtnInfo.SetHeight(0);
+
+ // Abstand Fussnotenbereich
+ rFtnInfo.SetTopDist(aDistEdit.Denormalize(aDistEdit.GetValue(FUNIT_TWIP)));
+ rFtnInfo.SetBottomDist(
+ aLineDistEdit.Denormalize(aLineDistEdit.GetValue(FUNIT_TWIP)));
+
+ // Trennlinie
+ //Pen aPen(rFtnInfo.GetPen());
+
+ const USHORT nPos = aLineTypeBox.GetSelectEntryPos();
+ if( LISTBOX_ENTRY_NOTFOUND != nPos )
+ rFtnInfo.SetLineWidth(nLines[nPos] / TWIP_TO_LBOX);
+ //rFtnInfo.SetPen(aPen);
+
+ // Position
+ rFtnInfo.SetAdj((SwFtnAdj)aLinePosBox.GetSelectEntryPos());
+
+ // Breite
+ rFtnInfo.SetWidth(Fraction(aLineWidthEdit.GetValue(), 100));
+
+ const SfxPoolItem* pOldItem;
+ if(0 == (pOldItem = GetOldItem( rSet, FN_PARAM_FTN_INFO )) ||
+ aItem != *pOldItem )
+ rSet.Put(aItem);
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bsp Uebernehmen
+ --------------------------------------------------------------------*/
+
+
+void SwFootNotePage::ActivatePage(const SfxItemSet& rSet)
+{
+ aBspWin.UpdateExample( rSet );
+ lMaxHeight = aBspWin.GetSize().Height() -
+ aBspWin.GetHdDist() - aBspWin.GetHdHeight() -
+ aBspWin.GetFtDist() - aBspWin.GetFtHeight()-
+ aBspWin.GetTop() - aBspWin.GetBottom();
+ lMaxHeight *= 8;
+ lMaxHeight /= 10;
+
+ // Maximalwerte setzen
+ HeightModify(0);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+int SwFootNotePage::DeactivatePage( SfxItemSet* pSet)
+{
+ if(pSet)
+ FillItemSet(*pSet);
+
+ return TRUE;
+}
+
+
+USHORT* SwFootNotePage::GetRanges()
+{
+ return aPageRg;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.79 2000/09/18 16:05:59 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.78 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.77 2000/02/11 14:56:44 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.76 1999/09/20 11:23:04 os
+ set initial value for max footnote height
+
+ Revision 1.75 1999/07/29 11:40:06 MA
+ avoid internal compiler errors
+
+
+ Rev 1.74 29 Jul 1999 13:40:06 MA
+ avoid internal compiler errors
+
+ Rev 1.73 08 Sep 1998 17:01:46 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.72 17 Apr 1998 16:24:44 OS
+ Design verbessert, Linienstaerken berichtigt
+
+ Rev 1.71 28 Nov 1997 20:11:46 MA
+ includes
+
+ Rev 1.70 24 Nov 1997 16:47:42 MA
+ includes
+
+ Rev 1.69 03 Nov 1997 13:22:44 MA
+ precomp entfernt
+
+ Rev 1.68 10 Oct 1997 12:24:12 OS
+ Index fuer LineType berichtigt
+
+ Rev 1.67 09 Sep 1997 16:11:18 OS
+ fuer VCL LineListBox benutzen #43663#
+
+ Rev 1.66 09 Aug 1997 13:31:40 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.65 05 Feb 1997 10:19:18 OM
+ FillItemSet in DeactivatePage rufen
+
+ Rev 1.64 11 Nov 1996 11:05:46 MA
+ ResMgr
+
+ Rev 1.63 02 Oct 1996 18:28:58 MA
+ Umstellung Enable/Disable
+
+ Rev 1.62 29 Aug 1996 16:09:16 OS
+ Korrektur: max. Hoehe des Fussnotenbereichs
+
+ Rev 1.61 28 Aug 1996 14:12:12 OS
+ includes
+
+ Rev 1.60 02 Jul 1996 10:09:56 NF
+ includes
+
+ Rev 1.59 06 Feb 1996 15:21:14 JP
+ Link Umstellung 305
+
+ Rev 1.58 23 Jan 1996 11:27:10 OS
+ richtige Reaktion auf Standard-Button im Formatdialog
+
+ Rev 1.57 29 Nov 1995 17:51:26 OS
+ im Reset Default-Fussnote erzeugen
+
+ Rev 1.56 28 Nov 1995 21:13:18 JP
+ UiSystem-Klasse aufgehoben, in initui/swtype aufgeteilt
+
+ Rev 1.55 24 Nov 1995 16:58:46 OM
+ PCH->PRECOMPILED
+
+ Rev 1.54 13 Nov 1995 10:51:34 OM
+ static entfernt
+
+ Rev 1.53 08 Nov 1995 13:31:44 JP
+ Umstellung zur 301: Change -> Set
+
+ Rev 1.52 05 Oct 1995 17:31:02 JP
+ eigene TabPages mit GetRanges versehen (fuer Vorlagen editieren)
+
+ Rev 1.51 22 Aug 1995 09:34:22 MA
+ svxitems-header entfernt
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/misc/pgfnote.hrc b/sw/source/ui/misc/pgfnote.hrc
new file mode 100644
index 000000000000..1f30840f238b
--- /dev/null
+++ b/sw/source/ui/misc/pgfnote.hrc
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: pgfnote.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define RB_MAXHEIGHT_PAGE 1
+#define RB_MAXHEIGHT 2
+#define ED_MAXHEIGHT 3
+#define FT_DIST 4
+#define ED_DIST 5
+#define GB_FOOTNOTE_SIZE 10
+
+#define FT_LINETYPE 20
+#define DLB_LINETYPE 21
+#define FT_LINEPOS 22
+#define DLB_LINEPOS 23
+#define FT_LINEWIDTH 24
+#define ED_LINEWIDTH 25
+#define FT_LINEDIST 26
+#define ED_LINEDIST 27
+#define GB_LINE 30
+
+#define GB_BSP 31
+#define WN_BSP 32
diff --git a/sw/source/ui/misc/pgfnote.src b/sw/source/ui/misc/pgfnote.src
new file mode 100644
index 000000000000..fe89f4dfe8e5
--- /dev/null
+++ b/sw/source/ui/misc/pgfnote.src
@@ -0,0 +1,590 @@
+/*************************************************************************
+ *
+ * $RCSfile: pgfnote.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "globals.hrc"
+#include "pgfnote.hrc"
+#include "helpid.h"
+ // #define TP_FOOTNOTE_PAGE 256
+TabPage TP_FOOTNOTE_PAGE
+{
+ HelpID = HID_FOOTNOTE_PAGE ;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE;
+ RadioButton RB_MAXHEIGHT
+ {
+ Pos = MAP_APPFONT ( 14 , 31 ) ;
+ Size = MAP_APPFONT ( 95 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Ma~x. Höhe der Fußnote : Ma~x. H÷he der Fu˜note */
+ Text = "Ma~x. Höhe der Fußnote" ;
+ Text [ ENGLISH ] = "Max. ~Height of Footnote" ;
+ Text [ norwegian ] = "Maks. ~Høyde på Fotnote" ;
+ Text [ italian ] = "Altezza massima nota a piè pagina" ;
+ Text [ portuguese_brazilian ] = "Max. ~Height of Footnote" ;
+ Text [ portuguese ] = "~Altura máxima da nota de rodapé" ;
+ Text [ finnish ] = "Max. ~Height of Footnote" ;
+ Text [ danish ] = "Maks. højde fodnote" ;
+ Text [ french ] = "Hauteur max. du ~pied de page" ;
+ Text [ swedish ] = "Fotnotens ma~x höjd" ;
+ Text [ dutch ] = "~Maximum hoogte voetnoot" ;
+ Text [ spanish ] = "Altura máx. de ~nota al pie" ;
+ Text [ english_us ] = "Maximum footnote ~height" ;
+ Text[ chinese_simplified ] = "×¢½ÅµÄ×î¸ß¶È(~H)";
+ Text[ russian ] = "Ìàêñ. âûñîòà ñíîñêè";
+ Text[ polish ] = "~Maks. wysokoœæ przypisów doln.";
+ Text[ japanese ] = "‹r’‚ÌÅ‚‚Ì‚‚³(~H)";
+ Text[ chinese_traditional ] = "µù¸}ªº³Ì°ª(~H)";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ ÇáÃÞÕì ááÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ greek ] = "ÌÝãéóôï ýøïò õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ ÃÖ´ë ³ôÀÌ(~H)";
+ Text[ turkish ] = "Azami dipnot yüksekliði";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_MAXHEIGHT_PAGE
+ {
+ Pos = MAP_APPFONT ( 14 , 16 ) ;
+ Size = MAP_APPFONT ( 95 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Höhe maximal wie ~Seite : H÷he maximal wie ~Seite */
+ Text = "Höhe maximal wie ~Seite" ;
+ Text [ ENGLISH ] = "Page height at maximum" ;
+ Text [ norwegian ] = "Maksimum Sidehøyde" ;
+ Text [ italian ] = "Altezza massima come pagina" ;
+ Text [ portuguese_brazilian ] = "Altura de página no m ximo" ;
+ Text [ portuguese ] = "Não superior à área da página" ;
+ Text [ finnish ] = "Sivun korkeus" ;
+ Text [ danish ] = "Op til maksimal sidehøjde" ;
+ Text [ french ] = "Hauteur maximale de la p~age" ;
+ Text [ swedish ] = "Höjd maximalt som ~sidan" ;
+ Text [ dutch ] = "Pag~inahoogte is max. hoogte" ;
+ Text [ spanish ] = "Altura má~xima como página" ;
+ Text [ english_us ] = "~Not larger than page area" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "×î¸ß²»³¬¹ýÒ³¸ß(~N)";
+ Text[ russian ] = "Íåáîëüøå âûñîòû ñòðàíèöû";
+ Text[ polish ] = "Nie wy¿ej ni¿ na obszarze strony";
+ Text[ japanese ] = "Å‚‚ÍÍß°¼Þ‚Ì‚‚³(~N)";
+ Text[ chinese_traditional ] = "³Ì°ª¤£¶W¹L­¶°ª(~N)";
+ Text[ arabic ] = "áíÓ ÃßÈÑ ãä äØÇÞ ÇáÕÝÍÉ";
+ Text[ greek ] = "¼÷é ìåãáëýôåñï ýøïò áðü ôçí ðåñéï÷Þ óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¿µ¿ªº¸´Ù Å©Áö ¾Ê½À´Ï´Ù.(~N)";
+ Text[ turkish ] = "En fazla sayfa yüksekliðinde";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_MAXHEIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 115 , 30 ) ;
+ Size = MAP_APPFONT ( 42 , 12 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 50 ;
+ Maximum = 99999 ;
+ DecimalDigits = 2 ;
+ Value = 200 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 99999 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_DIST
+ {
+ Pos = MAP_APPFONT ( 25 , 51 ) ;
+ Size = MAP_APPFONT ( 85 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Abstand zum Textkörper : ~Abstand zum Textk÷rper */
+ Text = "~Abstand zum Textkörper" ;
+ Text [ ENGLISH ] = "~Distance from Bodytext" ;
+ Text [ norwegian ] = "~Avstand fra Hovedtekst" ;
+ Text [ italian ] = "~Distanza dal corpo del testo" ;
+ Text [ portuguese_brazilian ] = "~Distância do Corpo do Texto" ;
+ Text [ portuguese ] = "~Distância até corpo do texto" ;
+ Text [ finnish ] = "~Etäisyys runkotekstistä" ;
+ Text [ danish ] = "Afstand til brødtekst" ;
+ Text [ french ] = "~Écart du corps de texte" ;
+ Text [ swedish ] = "A~vstånd från brödtext" ;
+ Text [ dutch ] = "A~fstand tot tekst" ;
+ Text [ spanish ] = "~Distancia al cuerpo del texto" ;
+ Text [ english_us ] = "Space to text" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÖÁÕýÎĵľàÀë(~D)";
+ Text[ russian ] = "Ðàññòîÿíèå îò òåêñòà";
+ Text[ polish ] = "Odstep do obszaru tekstowego";
+ Text[ japanese ] = "–{•¶‚Ü‚Å‚ÌŠÔŠu(~D)";
+ Text[ chinese_traditional ] = "¦Ü¤º¤åªº¶ZÖÃ(~D)";
+ Text[ arabic ] = "ÇáãÓÇÝÉ ÍÊì ÇáäÕ";
+ Text[ greek ] = "~Áðüóôáóç áðü ôï óþìá êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ®·Î ºÎÅÍ °Å¸®(~D)";
+ Text[ turkish ] = "Metinden uzaklýk";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_DIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 115 , 50 ) ;
+ Size = MAP_APPFONT ( 42 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 999 ;
+ DecimalDigits = 2 ;
+ Value = 10 ;
+ Unit = FUNIT_CM ;
+ First = 5 ;
+ Last = 99999 ;
+ SpinSize = 10 ;
+ };
+ GroupBox GB_FOOTNOTE_SIZE
+ {
+ Pos = MAP_APPFONT ( 6 , 2 ) ;
+ Size = MAP_APPFONT ( 157 , 67 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Fußnotenbereich : Fu˜notenbereich */
+ Text = "Fußnotenbereich" ;
+ Text [ ENGLISH ] = "Footnote range" ;
+ Text [ norwegian ] = "+++Footnote range" ;
+ Text [ italian ] = "Area note a piè pagina" ;
+ Text [ portuguese_brazilian ] = "Faixa de nota de pé de página" ;
+ Text [ portuguese ] = "Faixa da nota de rodapé" ;
+ Text [ finnish ] = "Alaviitealue" ;
+ Text [ danish ] = "Fodnoteområde" ;
+ Text [ french ] = "Plage notes de bas de page" ;
+ Text [ swedish ] = "Fotnotsområde" ;
+ Text [ dutch ] = "Voetnotenbereik" ;
+ Text [ spanish ] = "Área de la nota al pie" ;
+ Text [ english_us ] = "Footnote area" ;
+ Text[ chinese_simplified ] = "×¢½ÅÇøÓò";
+ Text[ russian ] = "Îáëàñòü ñíîñîê";
+ Text[ polish ] = "Obszar przypisów dolnych";
+ Text[ japanese ] = "‹r’”͈Í";
+ Text[ chinese_traditional ] = "µù¸}­S³ò";
+ Text[ arabic ] = "äØÇÞ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ greek ] = "Ðåñéï÷Þ õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ ¿µ¿ª";
+ Text[ turkish ] = "Dipnot bölümü";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_LINEPOS
+ {
+ Pos = MAP_APPFONT ( 12 , 87 ) ;
+ Size = MAP_APPFONT ( 26 , 10 ) ;
+ Text = "~Position" ;
+ Text [ English ] = "~Position" ;
+ Left = TRUE ;
+ Text [ portuguese ] = "~Posição" ;
+ Text [ english_us ] = "~Position" ;
+ Text [ portuguese_brazilian ] = "~Position" ;
+ Text [ swedish ] = "~Position" ;
+ Text [ danish ] = "Placering" ;
+ Text [ italian ] = "~Posizione" ;
+ Text [ spanish ] = "~Posición" ;
+ Text [ french ] = "~Position" ;
+ Text [ dutch ] = "~Positie" ;
+ Text[ chinese_simplified ] = "λÖÃ(~P)";
+ Text[ russian ] = "Ïîçèöèÿ";
+ Text[ polish ] = "Pozycja";
+ Text[ japanese ] = "ˆÊ’u(~P)";
+ Text[ chinese_traditional ] = "¦ì¸m(~P)";
+ Text[ arabic ] = "ÇáãæÖÚ";
+ Text[ greek ] = "ÈÝóç";
+ Text[ korean ] = "À§Ä¡(~P)";
+ Text[ turkish ] = "Konum";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox DLB_LINEPOS
+ {
+ Pos = MAP_APPFONT ( 40 , 85 ) ;
+ Size = MAP_APPFONT ( 57 , 40 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "Links" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Rechts" ; Default ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "Links" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Rechts" ; Default ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "Links" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Rechts" ; Default ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "Sinistra" ; Default ; > ;
+ < "Centrato" ; Default ; > ;
+ < "Destra" ; Default ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "Links" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "A Direita" ; Default ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "Esquerda" ; Default ; > ;
+ < "Centrado" ; Default ; > ;
+ < "Direita" ; Default ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "Links" ; Default ; > ;
+ < "Zentriert" ; Default ; > ;
+ < "Rechts" ; Default ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "Venstre" ; Default ; > ;
+ < "Centreret" ; Default ; > ;
+ < "Højre" ; Default ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "À gauche" ; Default ; > ;
+ < "Centré" ; Default ; > ;
+ < "À droite" ; Default ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "Vänster" ; Default ; > ;
+ < "Centrerad" ; Default ; > ;
+ < "Höger" ; Default ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "Links" ; Default ; > ;
+ < "Gecentreerd" ; Default ; > ;
+ < "Rechts" ; Default ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "A la izquierda" ; Default ; > ;
+ < "Centrado" ; Default ; > ;
+ < "Derecha" ; Default ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "Left" ; Default ; > ;
+ < "Centered" ; Default ; > ;
+ < "Right" ; Default ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×ó" ; Default ; > ;
+ < "¾ÓÖÐ" ; Default ; > ;
+ < "ÓÒ" ; Default ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "Ñëåâà" ; Default ; > ;
+ < "Ïî öåíòðó" ; Default ; > ;
+ < "Ñïðàâà" ; Default ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "Z lewej" ; Default ; > ;
+ < "Wyœrodkowany" ; Default ; > ;
+ < "Z prawej" ; Default ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "¶" ; Default ; > ;
+ < "’†‰›" ; Default ; > ;
+ < "‰E" ; Default ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¥ª" ; Default ; > ;
+ < "¸m¤¤" ; Default ; > ;
+ < "¥k" ; Default ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "Úáì ÇáíÓÇÑ" ; Default ; > ;
+ < "ÊæÓíØ" ; Default ; > ;
+ < "Úáì Çáíãíä" ; Default ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "ÁñéóôåñÜ" ; Default ; > ;
+ < "ÊåíôñáñéóìÝíá" ; Default ; > ;
+ < "ÄåîéÜ" ; Default ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¿ÞÂÊ" ; Default ; > ;
+ < "°¡¿îµ¥" ; Default ; > ;
+ < "¿À¸¥ÂÊ" ; Default ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "Sol" ; Default ; > ;
+ < "Orta" ; Default ; > ;
+ < "Sað" ; Default ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; Default ; > ;
+ < " " ; Default ; > ;
+ < " " ; Default ; > ;
+ };
+ };
+ FixedText FT_LINETYPE
+ {
+ Pos = MAP_APPFONT ( 12 , 107 ) ;
+ Size = MAP_APPFONT ( 26 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Stär~ke : A~rt */
+ Text = "Stär~ke" ;
+ Text [ ENGLISH ] = "~Thickness" ;
+ Group = TRUE ;
+ Left = TRUE ;
+ Text [ portuguese ] = "~Espessura da linha" ;
+ Text [ english_us ] = "~Weight" ;
+ Text [ portuguese_brazilian ] = "~Tipo" ;
+ Text [ swedish ] = "Styr~ka" ;
+ Text [ danish ] = "Styrke" ;
+ Text [ italian ] = "~Spessore" ;
+ Text [ spanish ] = "~Grosor" ;
+ Text [ french ] = "~Épaisseur" ;
+ Text [ dutch ] = "~Sterkte" ;
+ Text[ chinese_simplified ] = "ÏßÌõ´Öϸ(~L)";
+ Text[ russian ] = "Òîëùèíà ëèíèé";
+ Text[ polish ] = "GruboϾ";
+ Text[ japanese ] = "ü‚Ì‘¾‚³(~L)";
+ Text[ chinese_traditional ] = "½u±ø²Ê²Ó(~L)";
+ Text[ arabic ] = "Óõãúß ÇáÎØ";
+ Text[ greek ] = "ÐÜ÷ïò ãñáììÞò";
+ Text[ korean ] = "¼± µÎ²²(~W)";
+ Text[ turkish ] = "Çizgi kal.";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox DLB_LINETYPE
+ {
+ Pos = MAP_APPFONT ( 40 , 105 ) ;
+ Size = MAP_APPFONT ( 57 , 50 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ };
+ FixedText FT_LINEWIDTH
+ {
+ Pos = MAP_APPFONT ( 99 , 87 ) ;
+ Size = MAP_APPFONT ( 105 , 10 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Län~ge : Br~eite */
+ Text = "Län~ge" ;
+ Text [ ENGLISH ] = "~Length" ;
+ Left = TRUE ;
+ Text [ portuguese ] = "~Comprimento" ;
+ Text [ english_us ] = "~Length" ;
+ Text [ portuguese_brazilian ] = "~Largura" ;
+ Text [ swedish ] = "L~ängd" ;
+ Text [ danish ] = "Længde" ;
+ Text [ italian ] = "~Lunghezza" ;
+ Text [ spanish ] = "~Longitud" ;
+ Text [ french ] = "~Longueur" ;
+ Text [ dutch ] = "L~engte" ;
+ Text[ chinese_simplified ] = "³¤¶È(~L)";
+ Text[ russian ] = "Äëèíà";
+ Text[ polish ] = "D³ugoœæ";
+ Text[ japanese ] = "’·‚³(~L)";
+ Text[ chinese_traditional ] = "ªø«×(~L)";
+ Text[ arabic ] = "ÇáØæá";
+ Text[ greek ] = "ÌÞêïò";
+ Text[ korean ] = "±æÀÌ(~L)";
+ Text[ turkish ] = "Uzunluk";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_LINEWIDTH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 84 ) ;
+ Size = MAP_APPFONT ( 42 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 100 ;
+ Value = 100 ;
+ Unit = FUNIT_CUSTOM ;
+ CustomUnitText = "%" ;
+ First = 10 ;
+ Last = 100 ;
+ };
+ FixedText FT_LINEDIST
+ {
+ Pos = MAP_APPFONT ( 99 , 107 ) ;
+ Size = MAP_APPFONT ( 105 , 10 ) ;
+ Text = "Abstan~d zum Fußnoteninhalt" ;
+ Text [ ENGLISH ] = "Distan~ce" ;
+ Text [ norwegian ] = "Avsta~nd" ;
+ Text [ italian ] = "Distanza dal contenuto delle note" ;
+ Text [ portuguese_brazilian ] = "Distân~cia" ;
+ Text [ portuguese ] = "E~spaçam. entre traço e texto" ;
+ Text [ finnish ] = "~Etäisyys" ;
+ Text [ danish ] = "Afstand til fodnoteindholdet" ;
+ Text [ french ] = "~Écart entre trait et texte" ;
+ Text [ swedish ] = "Avstå~nd till fotnotens innehåll" ;
+ Text [ dutch ] = "~Afstand tot inhoud voetnoot" ;
+ Text [ spanish ] = "~Espacio al contenido de la nota" ;
+ Text [ english_us ] = "~Spacing to footnote contents" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÖÁ×¢½ÅÎĵļä¸ô(~S)";
+ Text[ russian ] = "Ðàññòîÿíèå îò òåêñòà ñíîñêè";
+ Text[ polish ] = "Odstêp do treœci przypisów dolnych";
+ Text[ japanese ] = "‹r’‚Ü‚Å‚ÌŠÔŠu(~‚r)";
+ Text[ chinese_traditional ] = "¦Üµù¸}¤åªº¶¡¹j(~S)";
+ Text[ arabic ] = "ÇáãÓÇÝÉ ÍÊì ãÍÊæíÇÊ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Áðüó~ôáóç áðü ôï ðåñéå÷üìåíï õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ ³»¿ë¿¡ °£°ÝÁÖ±â(~S)";
+ Text[ turkish ] = "Dipnot içeriðine uzaklýk";
+ };
+ MetricField ED_LINEDIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 104 ) ;
+ Size = MAP_APPFONT ( 42 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 999 ;
+ DecimalDigits = 2 ;
+ Value = 10 ;
+ Unit = FUNIT_CM ;
+ First = 5 ;
+ Last = 99999 ;
+ SpinSize = 10 ;
+ };
+ GroupBox GB_LINE
+ {
+ Pos = MAP_APPFONT ( 6 , 72 ) ;
+ Size = MAP_APPFONT ( 247 , 57 ) ;
+ Text = "Trennlinie" ;
+ Text [ ENGLISH ] = "Line" ;
+ Text [ norwegian ] = "Linje" ;
+ Text [ italian ] = "Linea di separazione" ;
+ Text [ portuguese_brazilian ] = "Linha" ;
+ Text [ portuguese ] = "Separador" ;
+ Text [ finnish ] = "Viiva" ;
+ Text [ danish ] = "Skillelinje" ;
+ Text [ french ] = "Trait de séparation" ;
+ Text [ swedish ] = "Skiljelinje" ;
+ Text [ dutch ] = "Scheidingslijn" ;
+ Text [ spanish ] = "Línea de separación" ;
+ Text [ english_us ] = "Separator line" ;
+ Text[ chinese_simplified ] = "·Ö¸ôÏß";
+ Text[ russian ] = "Ðàçäåëèòåëüíàÿ ëèíèÿ";
+ Text[ polish ] = "Linia podzia³u";
+ Text[ japanese ] = "‹æØ‚èü";
+ Text[ chinese_traditional ] = "¤À¹j½u";
+ Text[ arabic ] = "ÇáÎØ ÇáÝÇÕá";
+ Text[ greek ] = "Äéá÷ùñéóôéêÞ ãñáììÞ";
+ Text[ korean ] = "±¸ºÐ¼±";
+ Text[ turkish ] = "Ayýrma çizgisi";
+ Text[ language_user1 ] = " ";
+ };
+ Window WN_BSP
+ {
+ Pos = MAP_APPFONT ( 175 , 12 ) ;
+ Size = MAP_APPFONT ( 72 , 52 ) ;
+ Text = "Window" ;
+ };
+ GroupBox GB_BSP
+ {
+ Pos = MAP_APPFONT ( 169 , 2 ) ;
+ Size = MAP_APPFONT ( 84 , 67 ) ;
+ Text = "Vorschau" ;
+ Text [ ENGLISH ] = "Example" ;
+ Text [ norwegian ] = "Eksempel" ;
+ Text [ italian ] = "Anteprima" ;
+ Text [ portuguese_brazilian ] = "Exemplo" ;
+ Text [ portuguese ] = "Previsualizar" ;
+ Text [ finnish ] = "Malli" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ french ] = "Aperçu" ;
+ Text [ swedish ] = "Förhandsvisning" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ spanish ] = "Previsualización" ;
+ Text [ english_us ] = "Preview" ;
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ polish ] = "Podgl¹d";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ãÚÇíäÉ";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ turkish ] = "Önizleme";
+ Text[ language_user1 ] = " ";
+ };
+};
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
new file mode 100644
index 000000000000..be1417d9a5d2
--- /dev/null
+++ b/sw/source/ui/misc/redlndlg.cxx
@@ -0,0 +1,1708 @@
+/*************************************************************************
+ *
+ * $RCSfile: redlndlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _SVSTDARR_STRINGSSORTDTOR
+#define _SVSTDARR_USHORTSSORT
+#define _SVSTDARR_USHORTS
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _REDLINE_HXX
+#include <redline.hxx>
+#endif
+#ifndef _REDLENUM_HXX
+#include <redlenum.hxx>
+#endif
+#ifndef _TOOLS_INTN_HXX //autogen
+#include <tools/intn.hxx>
+#endif
+#ifndef _DATETIME_HXX //autogen
+#include <tools/datetime.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVSTDARR_HXX
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVX_CTREDLIN_HXX //autogen
+#include <svx/ctredlin.hxx>
+#endif
+#ifndef _SVX_POSTATTR_HXX //autogen
+#include <svx/postattr.hxx>
+#endif
+#ifndef _SVX_POSTDLG_HXX //autogen
+#include <svx/postdlg.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _REDLNDLG_HXX
+#define _REDLNACCEPTDLG
+#include <redlndlg.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _REDLNDLG_HRC
+#include <redlndlg.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SFX_IMPL_MODELESSDIALOG( SwRedlineAcceptChild, FN_REDLINE_ACCEPT )
+
+struct SwRedlineDataChild
+{
+ const SwRedlineData* pChild; // Verweis auf originale gestackte Daten
+ const SwRedlineDataChild* pNext; // Verweis auf gestackte Daten
+ SvLBoxEntry* pTLBChild; // zugehoeriger TreeListBox-Eintrag
+};
+
+struct SwRedlineDataParent
+{
+ const SwRedlineData* pData; // RedlineDataPtr
+ const SwRedlineDataChild* pNext; // Verweis auf gestackte Daten
+ SvLBoxEntry* pTLBParent; // zugehoeriger TreeListBox-Eintrag
+ String sComment; // Redline-Kommentar
+
+ inline BOOL operator==( const SwRedlineDataParent& rObj ) const
+ { return (pData && pData->GetSeqNo() == rObj.pData->GetSeqNo()); }
+ inline BOOL operator< ( const SwRedlineDataParent& rObj ) const
+ { return (pData && pData->GetSeqNo() < rObj.pData->GetSeqNo()); }
+};
+
+typedef SwRedlineDataParent* SwRedlineDataParentPtr;
+SV_DECL_PTRARR_DEL(SwRedlineDataParentArr, SwRedlineDataParentPtr, 10, 20)
+SV_IMPL_PTRARR(SwRedlineDataParentArr, SwRedlineDataParentPtr)
+
+SV_DECL_PTRARR_SORT(SwRedlineDataParentSortArr, SwRedlineDataParentPtr, 10, 20)
+SV_IMPL_OP_PTRARR_SORT(SwRedlineDataParentSortArr, SwRedlineDataParentPtr)
+
+typedef SwRedlineDataChild* SwRedlineDataChildPtr;
+SV_DECL_PTRARR_DEL(SwRedlineDataChildArr, SwRedlineDataChildPtr, 4, 4)
+SV_IMPL_PTRARR(SwRedlineDataChildArr, SwRedlineDataChildPtr)
+
+typedef SvLBoxEntry* SvLBoxEntryPtr;
+SV_DECL_PTRARR(SvLBoxEntryArr, SvLBoxEntryPtr, 100, 100)
+SV_IMPL_PTRARR(SvLBoxEntryArr, SvLBoxEntryPtr)
+
+static USHORT nSortMode = 0xffff;
+static BOOL bSortDir = TRUE;
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+class SwRedlineAcceptDlg
+{
+ Dialog* pParentDlg;
+ SwRedlineDataParentArr aRedlineParents;
+ SwRedlineDataChildArr aRedlineChilds;
+ SwRedlineDataParentSortArr aUsedSeqNo;
+ SvxAcceptChgCtr aTabPagesCTRL;
+ const International& rIntl;
+ PopupMenu aPopup;
+ Timer aDeselectTimer;
+ Timer aSelectTimer;
+ Bitmap aRootOpened;
+ Bitmap aRootClosed;
+ String sInserted;
+ String sDeleted;
+ String sFormated;
+ String sTableChgd;
+ String sFmtCollSet;
+ String sFilterAction;
+ String sAutoFormat;
+ Size aBorderSz;
+ SvxTPView* pTPView;
+ SvxRedlinTable* pTable;
+ Link aOldSelectHdl;
+ Link aOldDeselectHdl;
+ BOOL bOnlyFormatedRedlines;
+ BOOL bHasReadonlySel;
+ BOOL bRedlnAutoFmt;
+
+ DECL_LINK( AcceptHdl, void* );
+ DECL_LINK( AcceptAllHdl, void* );
+ DECL_LINK( RejectHdl, void* );
+ DECL_LINK( RejectAllHdl, void* );
+ DECL_LINK( UndoHdl, void* );
+ DECL_LINK( DeselectHdl, void* );
+ DECL_LINK( SelectHdl, void* );
+ DECL_LINK( GotoHdl, void* );
+ DECL_LINK( CommandHdl, void* );
+
+ USHORT CalcDiff(USHORT nStart, BOOL bChild);
+ void InsertChilds(SwRedlineDataParent *pParent, const SwRedline& rRedln, const USHORT nAutoFmt);
+ void InsertParents(USHORT nStart, USHORT nEnd = USHRT_MAX);
+ void RemoveParents(USHORT nStart, USHORT nEnd);
+ void InitAuthors();
+
+ String GetRedlineText(const SwRedline& rRedln, DateTime &rDateTime, USHORT nStack = 0);
+ const String& GetActionText(const SwRedline& rRedln, USHORT nStack = 0);
+ USHORT GetRedlinePos( const SvLBoxEntry& rEntry) const;
+
+public:
+ SwRedlineAcceptDlg(Dialog *pParent, BOOL bAutoFmt = FALSE);
+ ~SwRedlineAcceptDlg();
+
+ DECL_LINK( FilterChangedHdl, void *pDummy = 0 );
+
+ inline SvxAcceptChgCtr* GetChgCtrl() { return &aTabPagesCTRL; }
+ inline BOOL HasRedlineAutoFmt() const { return bRedlnAutoFmt; }
+
+ void Init(USHORT nStart = 0);
+ void CallAcceptReject( BOOL bSelect, BOOL bAccept );
+
+ void Initialize(const String &rExtraData);
+ void FillInfo(String &rExtraData) const;
+
+ virtual void Activate();
+ virtual void Resize();
+};
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwRedlineAcceptChild::SwRedlineAcceptChild( Window* pParent,
+ USHORT nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo ) :
+ SwChildWinWrapper( pParent, nId )
+{
+ pWindow = new SwModelessRedlineAcceptDlg( pBindings, this, pParent);
+
+ ((SwModelessRedlineAcceptDlg *)pWindow)->Initialize(pInfo);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren
+ --------------------------------------------------------------------*/
+
+BOOL SwRedlineAcceptChild::ReInitDlg(SwDocShell *pDocSh)
+{
+ BOOL bRet;
+
+ if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // Sofort aktualisieren, Dok-Wechsel
+ ((SwModelessRedlineAcceptDlg*)GetWindow())->Activate();
+
+ return bRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwModelessRedlineAcceptDlg::SwModelessRedlineAcceptDlg( SfxBindings* pBindings,
+ SwChildWinWrapper* pChild,
+ Window *pParent) :
+ SfxModelessDialog(pBindings, pChild, pParent, SW_RES(DLG_REDLINE_ACCEPT)),
+ pChildWin (pChild)
+{
+ pImplDlg = new SwRedlineAcceptDlg(this);
+
+ FreeResource();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModelessRedlineAcceptDlg::Activate()
+{
+ SwView *pView = ::GetActiveView();
+
+ if (!pView) // Kann passieren, wenn man auf eine andere App umschaltet, wenn
+ return; // vorher eine Listbox im Dialog den Focus hatte (eigentlich THs Bug)
+
+ SwDocShell *pDocSh = pView->GetDocShell();
+
+ if (pChildWin->GetOldDocShell() != pDocSh)
+ { // Dok-Wechsel
+ SwWait aWait( *pDocSh, FALSE );
+ SwWrtShell* pSh = pView->GetWrtShellPtr();
+
+ pChildWin->SetOldDocShell(pDocSh); // Rekursion vermeiden (durch Modified-Hdl)
+
+ BOOL bMod = pSh->IsModified();
+ SfxBoolItem aShow(FN_REDLINE_SHOW, TRUE);
+ pSh->GetView().GetViewFrame()->GetDispatcher()->Execute(
+ FN_REDLINE_SHOW, SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD, &aShow, 0L);
+ if (!bMod)
+ pSh->ResetModified();
+ pImplDlg->Init();
+
+ return;
+ }
+
+ pImplDlg->Activate();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModelessRedlineAcceptDlg::Initialize(SfxChildWinInfo *pInfo)
+{
+ String aStr;
+ if (pInfo != NULL)
+ pImplDlg->Initialize(pInfo->aExtraString);
+
+ SfxModelessDialog::Initialize(pInfo);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModelessRedlineAcceptDlg::FillInfo(SfxChildWinInfo& rInfo) const
+{
+ SfxModelessDialog::FillInfo(rInfo);
+ pImplDlg->FillInfo(rInfo.aExtraString);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwModelessRedlineAcceptDlg::Resize()
+{
+ pImplDlg->Resize();
+ SfxModelessDialog::Resize();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwModelessRedlineAcceptDlg::~SwModelessRedlineAcceptDlg()
+{
+ delete pImplDlg;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwModalRedlineAcceptDlg::SwModalRedlineAcceptDlg(Window *pParent) :
+ SfxModalDialog(pParent, SW_RES(DLG_MOD_REDLINE_ACCEPT))
+{
+ pImplDlg = new SwRedlineAcceptDlg(this, TRUE);
+
+ pImplDlg->Initialize(GetExtraData());
+ pImplDlg->Activate(); // Zur Initialisierung der Daten
+
+ FreeResource();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwModalRedlineAcceptDlg::~SwModalRedlineAcceptDlg()
+{
+ AcceptAll(FALSE); // Alles uebriggebliebene ablehnen
+ pImplDlg->FillInfo(GetExtraData());
+
+ delete pImplDlg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwModalRedlineAcceptDlg::Activate()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwModalRedlineAcceptDlg::Resize()
+{
+ pImplDlg->Resize();
+ SfxModalDialog::Resize();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwModalRedlineAcceptDlg::AcceptAll( BOOL bAccept )
+{
+ SvxTPFilter* pFilterTP = pImplDlg->GetChgCtrl()->GetFilterPage();
+
+ if (pFilterTP->IsDate() || pFilterTP->IsAuthor() ||
+ pFilterTP->IsRange() || pFilterTP->IsAction())
+ {
+ pFilterTP->CheckDate(FALSE); // Alle Filter abschalten
+ pFilterTP->CheckAuthor(FALSE);
+ pFilterTP->CheckRange(FALSE);
+ pFilterTP->CheckAction(FALSE);
+ pImplDlg->FilterChangedHdl();
+ }
+
+ pImplDlg->CallAcceptReject( FALSE, bAccept );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwRedlineAcceptDlg::SwRedlineAcceptDlg(Dialog *pParent, BOOL bAutoFmt) :
+ pParentDlg (pParent),
+ rIntl (Application::GetAppInternational()),
+ aTabPagesCTRL (pParent, SW_RES(CTRL_TABPAGES)),
+ aPopup (SW_RES(MN_REDLINE_POPUP)),
+ aRootClosed (SW_RES(BMP_ROOT_CLOSED)),
+ aRootOpened (SW_RES(BMP_ROOT_OPENED)),
+ sInserted (SW_RES(STR_REDLINE_INSERTED)),
+ sDeleted (SW_RES(STR_REDLINE_DELETED)),
+ sFormated (SW_RES(STR_REDLINE_FORMATED)),
+ sTableChgd (SW_RES(STR_REDLINE_TABLECHG)),
+ sFmtCollSet (SW_RES(STR_REDLINE_FMTCOLLSET)),
+ sAutoFormat (SW_RES(STR_REDLINE_AUTOFMT)),
+ bOnlyFormatedRedlines( FALSE ),
+ bHasReadonlySel ( FALSE ),
+ bRedlnAutoFmt (bAutoFmt)
+{
+ aTabPagesCTRL.SetHelpId(HID_REDLINE_CTRL);
+ pTPView = aTabPagesCTRL.GetViewPage();
+ pTable = pTPView->GetTableControl();
+
+ pTPView->InsertWriterHeader();
+ pTPView->SetAcceptClickHdl(LINK(this, SwRedlineAcceptDlg, AcceptHdl));
+ pTPView->SetAcceptAllClickHdl(LINK(this, SwRedlineAcceptDlg, AcceptAllHdl));
+ pTPView->SetRejectClickHdl(LINK(this, SwRedlineAcceptDlg, RejectHdl));
+ pTPView->SetRejectAllClickHdl(LINK(this, SwRedlineAcceptDlg, RejectAllHdl));
+ pTPView->SetUndoClickHdl(LINK(this, SwRedlineAcceptDlg, UndoHdl));
+
+ aTabPagesCTRL.GetFilterPage()->SetReadyHdl(LINK(this, SwRedlineAcceptDlg, FilterChangedHdl));
+
+ ListBox *pActLB = aTabPagesCTRL.GetFilterPage()->GetLbAction();
+ pActLB->InsertEntry(sInserted);
+ pActLB->InsertEntry(sDeleted);
+ pActLB->InsertEntry(sFormated);
+ pActLB->InsertEntry(sTableChgd);
+
+ if (HasRedlineAutoFmt())
+ {
+ pActLB->InsertEntry(sFmtCollSet);
+ pActLB->InsertEntry(sAutoFormat);
+ pTPView->ShowUndo(TRUE);
+ pTPView->DisableUndo(); // Noch gibts keine UNDO-Events
+ }
+
+ pActLB->SelectEntryPos(0);
+
+ pTable->SetWindowBits(WB_HASLINES|WB_CLIPCHILDREN|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
+ pTable->SetNodeBitmaps( aRootClosed, aRootOpened );
+ pTable->SetSelectionMode(MULTIPLE_SELECTION);
+ pTable->SetHighlightRange(1);
+
+ static long aStaticTabs[]=
+ {
+ 4,10,70,120,170
+ };
+
+ pTable->SetTabs(aStaticTabs);
+
+ // Minimalgroesse setzen
+ Size aMinSz(aTabPagesCTRL.GetMinSizePixel());
+ Point aPos(aTabPagesCTRL.GetPosPixel());
+
+ aMinSz.Width() += (aPos.X() * 2 - 1);
+ aMinSz.Height() += (aPos.Y() * 2 - 1);
+ pParentDlg->SetMinOutputSizePixel(aMinSz);
+
+ if (pParentDlg->GetOutputSizePixel().Width() < aMinSz.Width())
+ pParentDlg->SetOutputSizePixel(Size(aMinSz.Width(), pParentDlg->GetOutputSizePixel().Height()));
+ if (pParentDlg->GetOutputSizePixel().Height() < aMinSz.Height())
+ pParentDlg->SetOutputSizePixel(Size(pParentDlg->GetOutputSizePixel().Width(), aMinSz.Height()));
+
+ pTable->SortByCol(nSortMode, bSortDir);
+
+ aOldSelectHdl = pTable->GetSelectHdl();
+ aOldDeselectHdl = pTable->GetDeselectHdl();
+ pTable->SetSelectHdl(LINK(this, SwRedlineAcceptDlg, SelectHdl));
+ pTable->SetDeselectHdl(LINK(this, SwRedlineAcceptDlg, DeselectHdl));
+ pTable->SetCommandHdl(LINK(this, SwRedlineAcceptDlg, CommandHdl));
+
+ // Flackern der Buttons vermeiden:
+ aDeselectTimer.SetTimeout(100);
+ aDeselectTimer.SetTimeoutHdl(LINK(this, SwRedlineAcceptDlg, SelectHdl));
+
+ // Mehrfachselektion der selben Texte vermeiden:
+ aSelectTimer.SetTimeout(100);
+ aSelectTimer.SetTimeoutHdl(LINK(this, SwRedlineAcceptDlg, GotoHdl));
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwRedlineAcceptDlg::~SwRedlineAcceptDlg()
+{
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwRedlineAcceptDlg::Init(USHORT nStart)
+{
+ SwWait aWait( *::GetActiveView()->GetDocShell(), FALSE );
+ pTable->SetUpdateMode(FALSE);
+ aUsedSeqNo.Remove((USHORT)0, aUsedSeqNo.Count());
+
+ if (nStart)
+ RemoveParents(nStart, aRedlineParents.Count() - 1);
+ else
+ {
+ pTable->Clear();
+ aRedlineChilds.DeleteAndDestroy(0, aRedlineChilds.Count());
+ aRedlineParents.DeleteAndDestroy(nStart, aRedlineParents.Count() - nStart);
+ }
+
+ // Parents einfuegen
+ InsertParents(nStart);
+ InitAuthors();
+
+ pTable->SetUpdateMode(TRUE);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwRedlineAcceptDlg::InitAuthors()
+{
+ SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr();
+
+ SvxTPFilter *pFilterPage = aTabPagesCTRL.GetFilterPage();
+
+ String sAuthor;
+ SvStringsSortDtor aStrings;
+ String sOldAuthor(pFilterPage->GetSelectedAuthor());
+ pFilterPage->ClearAuthors();
+
+ String sParent;
+ USHORT nCount = pSh->GetRedlineCount();
+
+ bOnlyFormatedRedlines = TRUE;
+ bHasReadonlySel = FALSE;
+ BOOL bReadonlySel = FALSE;
+ BOOL bIsNotFormated = FALSE;
+
+ // Autoren ermitteln
+ for (USHORT i = 0; i < nCount; i++)
+ {
+ const SwRedline& rRedln = pSh->GetRedline(i);
+
+ if( bOnlyFormatedRedlines && REDLINE_FORMAT != rRedln.GetType() )
+ bOnlyFormatedRedlines = FALSE;
+
+ if( !bHasReadonlySel && rRedln.HasReadonlySel() )
+ bHasReadonlySel = TRUE;
+
+ String *pAuthor = new String(rRedln.GetAuthorString());
+ if (!aStrings.Insert(pAuthor))
+ delete pAuthor;
+
+ for (USHORT nStack = 1; nStack < rRedln.GetStackCount(); nStack++)
+ {
+ pAuthor = new String(rRedln.GetAuthorString(nStack));
+ if (!aStrings.Insert(pAuthor))
+ delete pAuthor;
+ }
+ }
+
+ for (i = 0; i < aStrings.Count(); i++)
+ pFilterPage->InsertAuthor(*aStrings[i]);
+
+ if (pFilterPage->SelectAuthor(sOldAuthor) == LISTBOX_ENTRY_NOTFOUND && aStrings.Count())
+ pFilterPage->SelectAuthor(*aStrings[0]);
+
+ BOOL bEnable = pTable->GetEntryCount() != 0;
+ BOOL bSel = pTable->FirstSelected() != 0;
+
+ SvLBoxEntry* pSelEntry = pTable->FirstSelected();
+ while (pSelEntry)
+ {
+ USHORT nPos = GetRedlinePos(*pSelEntry);
+ const SwRedline& rRedln = pSh->GetRedline( nPos );
+
+ bIsNotFormated |= REDLINE_FORMAT != rRedln.GetType();
+ pSelEntry = pTable->NextSelected(pSelEntry);
+ }
+
+ pTPView->EnableAccept( bEnable && bSel );
+ pTPView->EnableReject( bEnable && bIsNotFormated && bSel );
+ pTPView->EnableAcceptAll( bEnable && !bHasReadonlySel );
+ pTPView->EnableRejectAll( bEnable && !bHasReadonlySel &&
+ !bOnlyFormatedRedlines );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+String SwRedlineAcceptDlg::GetRedlineText(const SwRedline& rRedln, DateTime &rDateTime, USHORT nStack)
+{
+ String sEntry(GetActionText(rRedln, nStack));
+ sEntry += '\t';
+ sEntry += rRedln.GetAuthorString(nStack);
+ sEntry += '\t';
+
+ const DateTime &rDT = rRedln.GetTimeStamp(nStack);
+ rDateTime = rDT;
+
+ sEntry += rIntl.GetDate( rDT );
+ sEntry += ' ';
+ sEntry += rIntl.GetTime( rDT, FALSE, FALSE );
+ sEntry += '\t';
+
+ sEntry += rRedln.GetComment(nStack);
+
+ return sEntry;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+const String &SwRedlineAcceptDlg::GetActionText(const SwRedline& rRedln, USHORT nStack)
+{
+ switch( rRedln.GetType(nStack) )
+ {
+ case REDLINE_INSERT: return sInserted;
+ case REDLINE_DELETE: return sDeleted;
+ case REDLINE_FORMAT: return sFormated;
+ case REDLINE_TABLE: return sTableChgd;
+ case REDLINE_FMTCOLL: return sFmtCollSet;
+ }
+
+ return aEmptyStr;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwRedlineAcceptDlg::Resize()
+{
+ Size aSz(pParentDlg->GetOutputSizePixel());
+
+ Point aPos(aTabPagesCTRL.GetPosPixel());
+
+ aSz.Width() -= (aPos.X() * 2 - 1);
+ aSz.Height() -= (aPos.Y() * 2 - 1);
+
+ aTabPagesCTRL.SetOutputSizePixel(aSz);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nach Aktivierung neu initialisieren
+ --------------------------------------------------------------------*/
+
+void SwRedlineAcceptDlg::Activate()
+{
+ SwView *pView = ::GetActiveView();
+ SwWait aWait( *pView->GetDocShell(), FALSE );
+
+ aUsedSeqNo.Remove((USHORT)0, aUsedSeqNo.Count());
+
+ if (!pView) // Kann passieren, wenn man auf eine andere App umschaltet, wenn
+ return; // vorher eine Listbox im Dialog den Focus hatte (eigentlich THs Bug)
+
+/* if (HasRedlineAutoFmt())
+ {
+ Init();
+ return;
+ }*/
+
+ // Hat sich was geaendert?
+ SwWrtShell* pSh = pView->GetWrtShellPtr();
+ USHORT nCount = pSh->GetRedlineCount();
+
+ // Anzahl und Pointer ueberpruefen
+ SwRedlineDataParent *pParent = 0;
+
+ for (USHORT i = 0; i < nCount; i++)
+ {
+ const SwRedline& rRedln = pSh->GetRedline(i);
+
+ if (i >= aRedlineParents.Count())
+ {
+ // Neue Eintraege wurden angehaengt
+ Init(i);
+ return;
+ }
+
+ pParent = aRedlineParents[i];
+ if (&rRedln.GetRedlineData() != pParent->pData)
+ {
+ // Redline-Parents wurden eingefuegt, geaendert oder geloescht
+ if ((i = CalcDiff(i, FALSE)) == USHRT_MAX)
+ return;
+ continue;
+ }
+
+ const SwRedlineData *pRedlineData = rRedln.GetRedlineData().Next();
+ const SwRedlineDataChild *pBackupData = pParent->pNext;
+
+ if (!pRedlineData && pBackupData)
+ {
+ // Redline-Childs wurden geloescht
+ if ((i = CalcDiff(i, TRUE)) == USHRT_MAX)
+ return;
+ continue;
+ }
+ else
+ {
+ while (pRedlineData)
+ {
+ if (pRedlineData != pBackupData->pChild)
+ {
+ // Redline-Childs wurden eingefuegt, geaendert oder geloescht
+ if ((i = CalcDiff(i, TRUE)) == USHRT_MAX)
+ return;
+ continue;
+ }
+ if (pBackupData)
+ pBackupData = pBackupData->pNext;
+ pRedlineData = pRedlineData->Next();
+ }
+ }
+ }
+
+ if (nCount != aRedlineParents.Count())
+ {
+ // Redlines wurden am Ende geloescht
+ Init(nCount);
+ return;
+ }
+
+ // Kommentar ueberpruefen
+ for (i = 0; i < nCount; i++)
+ {
+ const SwRedline& rRedln = pSh->GetRedline(i);
+ pParent = aRedlineParents[i];
+
+ if(!rRedln.GetComment().Equals(pParent->sComment))
+ {
+ if (pParent->pTLBParent)
+ {
+ // Nur Kommentar aktualisieren
+ pTable->SetEntryText(rRedln.GetComment(), pParent->pTLBParent, 3);
+ }
+ pParent->sComment = rRedln.GetComment();
+ }
+ }
+
+ InitAuthors();
+}
+
+/* -----------------05.06.98 13:06-------------------
+ *
+ * --------------------------------------------------*/
+
+USHORT SwRedlineAcceptDlg::CalcDiff(USHORT nStart, BOOL bChild)
+{
+ if (!nStart)
+ {
+ Init();
+ return USHRT_MAX;
+ }
+
+ pTable->SetUpdateMode(FALSE);
+ SwView *pView = ::GetActiveView();
+ SwWrtShell* pSh = pView->GetWrtShellPtr();
+ USHORT nAutoFmt = HasRedlineAutoFmt() ? REDLINE_FORM_AUTOFMT : 0;
+ SvLBoxTreeList* pModel = pTable->GetModel();
+ SwRedlineDataParent *pParent = aRedlineParents[nStart];
+ const SwRedline& rRedln = pSh->GetRedline(nStart);
+
+ if (bChild) // Sollte eigentlich nie vorkommen, aber sicher ist sicher...
+ {
+ // Alle Childs des Eintrags wegwerfen und neu initialisieren
+ SwRedlineDataChildPtr pBackupData = (SwRedlineDataChildPtr)pParent->pNext;
+ SwRedlineDataChildPtr pNext;
+
+ while (pBackupData)
+ {
+ pNext = (SwRedlineDataChildPtr)pBackupData->pNext;
+ if (pBackupData->pTLBChild)
+ pModel->Remove(pBackupData->pTLBChild);
+
+ aRedlineChilds.DeleteAndDestroy(aRedlineChilds.GetPos(pBackupData), 1);
+ pBackupData = pNext;
+ }
+ pParent->pNext = 0;
+
+ // Neue Childs einfuegen
+ InsertChilds(pParent, rRedln, nAutoFmt);
+
+ pTable->SetUpdateMode(TRUE);
+ return nStart;
+ }
+
+ // Wurden Eintraege geloescht?
+ const SwRedlineData *pRedlineData = &rRedln.GetRedlineData();
+ for (USHORT i = nStart + 1; i < aRedlineParents.Count(); i++)
+ {
+ if (aRedlineParents[i]->pData == pRedlineData)
+ {
+ // Eintraege von nStart bis i-1 entfernen
+ RemoveParents(nStart, i - 1);
+ pTable->SetUpdateMode(TRUE);
+ return nStart - 1;
+ }
+ }
+
+ // Wurden Eintraege eingefuegt?
+ USHORT nCount = pSh->GetRedlineCount();
+ pRedlineData = aRedlineParents[nStart]->pData;
+
+ for (i = nStart + 1; i < nCount; i++)
+ {
+ if (&pSh->GetRedline(i).GetRedlineData() == pRedlineData)
+ {
+ // Eintraege von nStart bis i-1 einfuegen
+ InsertParents(nStart, i - 1);
+ pTable->SetUpdateMode(TRUE);
+ return nStart - 1;
+ }
+ }
+
+ pTable->SetUpdateMode(TRUE);
+ Init(nStart); // Alle Eintraege bis zum Ende abgleichen
+ return USHRT_MAX;
+}
+
+/* -----------------05.06.98 13:57-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwRedlineAcceptDlg::InsertChilds(SwRedlineDataParent *pParent, const SwRedline& rRedln, const USHORT nAutoFmt)
+{
+ String sChild;
+ SwRedlineDataChild *pLastRedlineChild = 0;
+ const SwRedlineData *pRedlineData = &rRedln.GetRedlineData();
+ BOOL bAutoFmt = (rRedln.GetRealType() & nAutoFmt) != 0;
+
+ const String *pAction = &GetActionText(rRedln);
+ BOOL bValidParent = !sFilterAction.Len() || sFilterAction == *pAction;
+ bValidParent = bValidParent && pTable->IsValidEntry(&rRedln.GetAuthorString(), &rRedln.GetTimeStamp(), &rRedln.GetComment());
+ if (nAutoFmt)
+ {
+ USHORT nPos;
+
+ if (pParent->pData->GetSeqNo() && !aUsedSeqNo.Insert(pParent, nPos)) // Gibts schon
+ {
+ if (pParent->pTLBParent)
+ {
+ pTable->SetEntryText(sAutoFormat, aUsedSeqNo[nPos]->pTLBParent, 0);
+ pTable->GetModel()->Remove(pParent->pTLBParent);
+ pParent->pTLBParent = 0;
+ }
+ return;
+ }
+ bValidParent = bValidParent && bAutoFmt;
+ }
+ BOOL bValidTree = bValidParent;
+
+ for (USHORT nStack = 1; nStack < rRedln.GetStackCount(); nStack++)
+ {
+ pRedlineData = pRedlineData->Next();
+
+ SwRedlineDataChildPtr pRedlineChild = new SwRedlineDataChild;
+ pRedlineChild->pChild = pRedlineData;
+ aRedlineChilds.Insert(pRedlineChild, aRedlineChilds.Count());
+
+ if ( pLastRedlineChild )
+ pLastRedlineChild->pNext = pRedlineChild;
+ else
+ pParent->pNext = pRedlineChild;
+
+ pAction = &GetActionText(rRedln, nStack);
+ BOOL bValidChild = !sFilterAction.Len() || sFilterAction == *pAction;
+ bValidChild = bValidChild && pTable->IsValidEntry(&rRedln.GetAuthorString(nStack), &rRedln.GetTimeStamp(nStack), &rRedln.GetComment());
+ if (nAutoFmt)
+ bValidChild = bValidChild && bAutoFmt;
+ bValidTree |= bValidChild;
+
+ if (bValidChild)
+ {
+ RedlinData *pData = new RedlinData;
+ pData->pData = pRedlineChild;
+ pData->bDisabled = TRUE;
+ sChild = GetRedlineText(rRedln, pData->aDateTime, nStack);
+
+ SvLBoxEntry* pChild = pTable->InsertEntry(sChild, pData, pParent->pTLBParent);
+
+ pRedlineChild->pTLBChild = pChild;
+ if (!bValidParent)
+ pTable->Expand(pParent->pTLBParent);
+ }
+ else
+ pRedlineChild->pTLBChild = 0;
+
+ pLastRedlineChild = pRedlineChild;
+ }
+
+ if (pLastRedlineChild)
+ pLastRedlineChild->pNext = 0;
+
+ if (!bValidTree && pParent->pTLBParent)
+ {
+ pTable->GetModel()->Remove(pParent->pTLBParent);
+ pParent->pTLBParent = 0;
+ if (nAutoFmt)
+ aUsedSeqNo.Remove(pParent);
+ }
+}
+
+/* -----------------05.06.98 15:20-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwRedlineAcceptDlg::RemoveParents(USHORT nStart, USHORT nEnd)
+{
+ SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr();
+ USHORT nCount = pSh->GetRedlineCount();
+
+ SvLBoxEntryArr aLBoxArr;
+
+ // Wegen Bug der TLB, die bei Remove den SelectHandler IMMER ruft:
+ pTable->SetSelectHdl(aOldSelectHdl);
+ pTable->SetDeselectHdl(aOldDeselectHdl);
+ BOOL bChildsRemoved = FALSE;
+ pTable->SelectAll(FALSE);
+
+ // Hinter dem letzten Eintrag Cursor setzen, da sonst Performance-Problem in TLB.
+ // TLB wuerde sonst bei jedem Remove den Cursor erneut umsetzen (teuer)
+ USHORT nPos = Min((USHORT)nCount, (USHORT)aRedlineParents.Count()) - 1;
+ SvLBoxEntry *pCurEntry = aRedlineParents[nPos]->pTLBParent;
+ if (!pCurEntry)
+ while (--nPos && (pCurEntry = aRedlineParents[nPos]->pTLBParent) == 0);
+
+ if (pCurEntry)
+ pTable->SetCurEntry(pCurEntry);
+
+ SvLBoxTreeList* pModel = pTable->GetModel();
+
+ for (USHORT i = nStart; i <= nEnd; i++)
+ {
+ if (!bChildsRemoved && aRedlineParents[i]->pNext)
+ {
+ SwRedlineDataChildPtr pChildPtr = (SwRedlineDataChildPtr)aRedlineParents[i]->pNext;
+ USHORT nPos = aRedlineChilds.GetPos(pChildPtr);
+
+ if (nPos != USHRT_MAX)
+ {
+ USHORT nChilds = 0;
+
+ while (pChildPtr)
+ {
+ pChildPtr = (SwRedlineDataChildPtr)pChildPtr->pNext;
+ nChilds++;
+ }
+
+ aRedlineChilds.DeleteAndDestroy(nPos, nChilds);
+ bChildsRemoved = TRUE;
+ }
+ }
+ SvLBoxEntry *pEntry = aRedlineParents[i]->pTLBParent;
+ if (pEntry)
+ {
+ long nIdx = (long)aLBoxArr.Count() - 1L;
+ ULONG nAbsPos = pModel->GetAbsPos(pEntry);
+ while (nIdx >= 0 &&
+ pModel->GetAbsPos(aLBoxArr[nIdx]) > nAbsPos)
+ nIdx--;
+ aLBoxArr.Insert(pEntry, ++nIdx);
+ }
+ }
+
+ // TLB von hinten abraeumen
+ long nIdx = (long)aLBoxArr.Count() - 1L;
+ while (nIdx >= 0)
+ pModel->Remove(aLBoxArr[nIdx--]);
+
+ pTable->SetSelectHdl(LINK(this, SwRedlineAcceptDlg, SelectHdl));
+ pTable->SetDeselectHdl(LINK(this, SwRedlineAcceptDlg, DeselectHdl));
+ // Durch Remove wurde leider wieder dauernd von der TLB selektiert...
+ pTable->SelectAll(FALSE);
+
+ aRedlineParents.DeleteAndDestroy( nStart, nEnd - nStart + 1);
+}
+
+/* -----------------05.06.98 15:20-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwRedlineAcceptDlg::InsertParents(USHORT nStart, USHORT nEnd)
+{
+ SwView *pView = ::GetActiveView();
+ SwWrtShell* pSh = pView->GetWrtShellPtr();
+ USHORT nAutoFmt = HasRedlineAutoFmt() ? REDLINE_FORM_AUTOFMT : 0;
+
+ String sParent;
+ USHORT nCount = pSh->GetRedlineCount();
+ nEnd = Min((USHORT)nEnd, (USHORT)(nCount - 1)); // Handelt auch nEnd=USHRT_MAX (bis zum Ende) ab
+
+ if (nEnd == USHRT_MAX)
+ return; // Keine Redlines im Dokument
+
+ RedlinData *pData = 0;
+ SvLBoxEntry* pParent = 0;
+ SwRedlineDataParentPtr pRedlineParent = 0;
+
+ for (USHORT i = nStart; i <= nEnd; i++)
+ {
+ const SwRedline& rRedln = pSh->GetRedline(i);
+ const SwRedlineData *pRedlineData = &rRedln.GetRedlineData();
+
+ pRedlineParent = new SwRedlineDataParent;
+ pRedlineParent->pData = pRedlineData;
+ pRedlineParent->pNext = 0;
+ pRedlineParent->sComment = rRedln.GetComment();
+ aRedlineParents.Insert(pRedlineParent, i);
+
+ pData = new RedlinData;
+ pData->pData = pRedlineParent;
+ pData->bDisabled = FALSE;
+
+ sParent = GetRedlineText(rRedln, pData->aDateTime);
+ pParent = pTable->InsertEntry(sParent, pData, 0, i);
+ pRedlineParent->pTLBParent = pParent;
+
+ InsertChilds(pRedlineParent, rRedln, nAutoFmt);
+ }
+}
+
+/* -----------------05.06.98 13:06-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwRedlineAcceptDlg::CallAcceptReject( BOOL bSelect, BOOL bAccept )
+{
+ SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr();
+ SvLBoxEntry* pEntry = bSelect ? pTable->FirstSelected() : pTable->First();
+ ULONG nPos = LONG_MAX;
+ SvUShortsSort aIdx;
+
+ while( pEntry )
+ {
+ if( !pTable->GetParent( pEntry ) )
+ {
+ if( bSelect && LONG_MAX == nPos )
+ nPos = pTable->GetModel()->GetAbsPos( pEntry );
+
+ RedlinData *pData = (RedlinData *)pEntry->GetUserData();
+
+ if( !pData->bDisabled )
+ aIdx.Insert(GetRedlinePos( *pEntry ));
+ }
+
+ pEntry = bSelect ? pTable->NextSelected(pEntry) : pTable->Next(pEntry);
+ }
+
+ BOOL (SwEditShell:: *FnAccRej)( USHORT ) = &SwEditShell::AcceptRedline;
+ if( !bAccept )
+ FnAccRej = &SwEditShell::RejectRedline;
+
+ SwWait aWait( *pSh->GetView().GetDocShell(), TRUE );
+ pSh->StartAction();
+ pSh->StartUndo();
+
+ for( USHORT i = aIdx.Count(); i; )
+ (pSh->*FnAccRej)( aIdx[ --i ] );
+
+ pSh->EndUndo();
+ pSh->EndAction();
+
+ Activate();
+
+ if( ULONG_MAX != nPos && pTable->GetEntryCount() )
+ {
+ if( nPos >= pTable->GetEntryCount() )
+ nPos = pTable->GetEntryCount() - 1;
+ pEntry = pTable->GetEntry( nPos );
+ if( !pEntry && nPos-- )
+ pEntry = pTable->GetEntry( nPos );
+ if( pEntry )
+ {
+ pTable->Select( pEntry );
+ pTable->MakeVisible( pEntry );
+ pTable->SetCurEntry(pEntry);
+ }
+ }
+ pTPView->EnableUndo();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+USHORT SwRedlineAcceptDlg::GetRedlinePos( const SvLBoxEntry& rEntry ) const
+{
+ SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr();
+ return pSh->FindRedlineOfData( *((SwRedlineDataParent*)((RedlinData *)
+ rEntry.GetUserData())->pData)->pData );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, AcceptHdl, void*, EMPTYARG)
+{
+ CallAcceptReject( TRUE, TRUE );
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, AcceptAllHdl, void*, EMPTYARG )
+{
+ CallAcceptReject( FALSE, TRUE );
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, RejectHdl, void*, EMPTYARG )
+{
+ CallAcceptReject( TRUE, FALSE );
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, RejectAllHdl, void*, EMPTYARG )
+{
+ CallAcceptReject( FALSE, FALSE );
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, UndoHdl, void*, EMPTYARG )
+{
+ SwView * pView = ::GetActiveView();
+ pView->GetViewFrame()->GetDispatcher()->
+ Execute(SID_UNDO, SFX_CALLMODE_SYNCHRON);
+ pTPView->EnableUndo(pView->GetSlotState(SID_UNDO) != 0);
+
+ Activate();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, FilterChangedHdl, void*, EMPTYARG )
+{
+ SvxTPFilter *pFilterTP = aTabPagesCTRL.GetFilterPage();
+
+ if (pFilterTP->IsAction())
+ sFilterAction = pFilterTP->GetLbAction()->GetSelectEntry();
+ else
+ sFilterAction = aEmptyStr;
+
+ Init();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, DeselectHdl, void*, EMPTYARG )
+{
+ // Flackern der Buttons vermeiden:
+ aDeselectTimer.Start();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, SelectHdl, void*, EMPTYARG )
+{
+ aDeselectTimer.Stop();
+ aSelectTimer.Start();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, GotoHdl, void*, EMPTYARG )
+{
+ SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr();
+ aSelectTimer.Stop();
+
+ BOOL bIsNotFormated = FALSE;
+ BOOL bSel = FALSE;
+ BOOL bReadonlySel = FALSE;
+
+ SvLBoxEntry* pSelEntry = pTable->FirstSelected();
+ if( pSelEntry )
+ {
+ SvLBoxEntry* pActEntry = pSelEntry;
+ pSh->StartAction();
+ pSh->EnterStdMode();
+ pSh->SetCareWin(pParentDlg);
+
+ while (pSelEntry)
+ {
+ if (pTable->GetParent(pSelEntry))
+ {
+ pActEntry = pTable->GetParent(pSelEntry);
+
+ if (pTable->IsSelected(pActEntry))
+ {
+ pSelEntry = pActEntry = pTable->NextSelected(pSelEntry);
+ continue; // Nicht zweimal selektieren
+ }
+ }
+ else
+ bSel = TRUE;
+
+ USHORT nPos = GetRedlinePos(*pActEntry);
+
+ const SwRedline& rRedln = pSh->GetRedline( nPos );
+ bIsNotFormated |= REDLINE_FORMAT != rRedln.GetType();
+
+ if( !bReadonlySel && rRedln.HasReadonlySel() )
+ bReadonlySel = TRUE;
+
+ if (pSh->GotoRedline(nPos, TRUE))
+ {
+ pSh->SetInSelect();
+ pSh->EnterAddMode();
+ }
+
+ pSelEntry = pActEntry = pTable->NextSelected(pSelEntry);
+ }
+
+ pSh->LeaveAddMode();
+ pSh->EndAction();
+ pSh->SetCareWin(NULL);
+ }
+ pTPView->EnableAccept( bSel && !bReadonlySel );
+ pTPView->EnableReject( bSel && bIsNotFormated && !bReadonlySel );
+ pTPView->EnableRejectAll( !bOnlyFormatedRedlines && !bHasReadonlySel );
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwRedlineAcceptDlg, CommandHdl, void*, EMPTYARG )
+{
+ const CommandEvent aCEvt(pTable->GetCommandEvent());
+
+ switch ( aCEvt.GetCommand() )
+ {
+ case COMMAND_CONTEXTMENU:
+ {
+ SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr();
+ SvLBoxEntry* pEntry = pTable->FirstSelected();
+ const SwRedline *pRed = 0;
+
+ if (pEntry)
+ {
+ SvLBoxEntry* pTopEntry = pEntry;
+
+ if (pTable->GetParent(pEntry))
+ pTopEntry = pTable->GetParent(pEntry);
+
+ USHORT nPos = GetRedlinePos(*pTopEntry);
+
+ // Bei geschuetzten Bereichen kommentieren disablen
+ if ((pRed = pSh->GotoRedline(nPos, TRUE)) != 0)
+ {
+ if( pSh->IsCrsrPtAtEnd() )
+ pSh->SwapPam();
+ pSh->SetInSelect();
+ }
+ }
+
+ aPopup.EnableItem( MN_EDIT_COMMENT, pEntry && pRed &&
+ !pTable->GetParent(pEntry) &&
+ !pTable->NextSelected(pEntry) &&
+ !pRed->HasReadonlySel() );
+
+ aPopup.EnableItem( MN_SUB_SORT, pTable->First() != 0 );
+ USHORT nColumn = pTable->GetSortedCol();
+ if (nColumn == 0xffff)
+ nColumn = 4;
+
+ PopupMenu *pSubMenu = aPopup.GetPopupMenu(MN_SUB_SORT);
+ if (pSubMenu)
+ {
+ for (USHORT i = MN_SORT_ACTION; i < MN_SORT_ACTION + 5; i++)
+ pSubMenu->CheckItem(i, FALSE);
+
+ pSubMenu->CheckItem(nColumn + MN_SORT_ACTION);
+ }
+
+ USHORT nRet = aPopup.Execute(pTable, aCEvt.GetMousePosPixel());
+
+ switch( nRet )
+ {
+ case MN_EDIT_COMMENT:
+ {
+ String sComment;
+
+ if (pEntry)
+ {
+ if (pTable->GetParent(pEntry))
+ pEntry = pTable->GetParent(pEntry);
+
+ USHORT nPos = GetRedlinePos(*pEntry);
+
+ const SwRedline &rRedline = pSh->GetRedline(nPos);
+ sComment = rRedline.GetComment();
+ SfxItemSet aSet(pSh->GetAttrPool(), SvxPostItDialog::GetRanges());
+ const International& rIntl = Application::GetAppInternational();
+
+ aSet.Put(SvxPostItTextItem(sComment.ConvertLineEnd(), SID_ATTR_POSTIT_TEXT));
+ aSet.Put(SvxPostItAuthorItem(rRedline.GetAuthorString(), SID_ATTR_POSTIT_AUTHOR));
+
+ const DateTime &rDT = rRedline.GetRedlineData().GetTimeStamp();
+
+ String sDate(rIntl.GetDate( rDT ));
+ (sDate += ' ' ) += rIntl.GetTime( rDT, FALSE, FALSE );
+
+ aSet.Put(SvxPostItDateItem(sDate, SID_ATTR_POSTIT_DATE));
+
+ SvxPostItDialog *pDlg = new SvxPostItDialog(pParentDlg, aSet, FALSE);
+ pDlg->HideAuthor();
+
+ USHORT nResId = 0;
+ switch( rRedline.GetType() )
+ {
+ case REDLINE_INSERT:
+ nResId = STR_REDLINE_INSERTED;
+ break;
+ case REDLINE_DELETE:
+ nResId = STR_REDLINE_DELETED;
+ break;
+ case REDLINE_FORMAT:
+ nResId = STR_REDLINE_FORMATED;
+ break;
+ case REDLINE_TABLE:
+ nResId = STR_REDLINE_TABLECHG;
+ break;
+ }
+ String sTitle(SW_RES(STR_REDLINE_COMMENT));
+ if( nResId )
+ sTitle += SW_RESSTR( nResId );
+ pDlg->SetText(sTitle);
+
+ pSh->SetCareWin(pDlg);
+
+ if ( pDlg->Execute() == RET_OK )
+ {
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ String sMsg(((const SvxPostItTextItem&)pOutSet->Get(SID_ATTR_POSTIT_TEXT)).GetValue());
+
+ // Kommentar einfuegen bzw aendern
+ pSh->SetRedlineComment(sMsg);
+ pTable->SetEntryText(sMsg, pEntry, 3);
+ }
+
+ delete pDlg;
+ pSh->SetCareWin(NULL);
+ }
+ }
+ break;
+
+ case MN_SORT_ACTION:
+ case MN_SORT_AUTHOR:
+ case MN_SORT_DATE:
+ case MN_SORT_COMMENT:
+ case MN_SORT_POSITION:
+ {
+ bSortDir = TRUE;
+ if (nRet - MN_SORT_ACTION == 4 && pTable->GetSortedCol() == 0xffff)
+ break; // Haben wir schon
+
+ nSortMode = nRet - MN_SORT_ACTION;
+ if (nSortMode == 4)
+ nSortMode = 0xffff; // unsortiert bzw sortiert nach Position
+
+ if (pTable->GetSortedCol() == nSortMode)
+ bSortDir = !pTable->GetSortDirection();
+
+ SwWait aWait( *::GetActiveView()->GetDocShell(), FALSE );
+ pTable->SortByCol(nSortMode, bSortDir);
+ if (nSortMode == 0xffff)
+ Init(); // Alles neu fuellen
+ }
+ break;
+ }
+ }
+ break;
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwRedlineAcceptDlg::Initialize(const String& rExtraData)
+{
+ if (rExtraData.Len())
+ {
+ USHORT nPos = rExtraData.Search(C2S("AcceptChgDat:"));
+
+ // Versuche, den Alignment-String "ALIGN:(...)" einzulesen; wenn
+ // er nicht vorhanden ist, liegt eine "altere Version vor
+ if (nPos != STRING_NOTFOUND)
+ {
+ USHORT n1 = rExtraData.Search('(', nPos);
+ if (n1 != STRING_NOTFOUND)
+ {
+ USHORT n2 = rExtraData.Search(')', n1);
+ if (n2 != STRING_NOTFOUND)
+ {
+ // Alignment-String herausschneiden
+ String aStr = rExtraData.Copy(nPos, n2 - nPos + 1);
+ aStr.Erase(0, n1 - nPos + 1);
+
+ if (aStr.Len())
+ {
+ USHORT nCount = aStr.ToInt32();
+
+ for (USHORT i = 0; i < nCount; i++)
+ {
+ USHORT n1 = aStr.Search(';');
+ aStr.Erase(0, n1 + 1);
+ pTable->SetTab(i, aStr.ToInt32(), MAP_PIXEL);
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwRedlineAcceptDlg::FillInfo(String &rExtraData) const
+{
+ rExtraData.AppendAscii("AcceptChgDat:(");
+
+ USHORT nCount = pTable->TabCount();
+
+ rExtraData += String(nCount);
+ rExtraData += ';';
+ for(USHORT i = 0; i < nCount; i++)
+ {
+ rExtraData += String(pTable->GetTab(i));
+ rExtraData += ';';
+ }
+ rExtraData += ')';
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.54 2000/09/18 16:05:59 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.53 2000/09/07 15:59:26 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.52 2000/06/14 09:06:30 os
+ #75451# enabling of buttons corrected
+
+ Revision 1.51 2000/04/18 15:08:17 os
+ UNICODE
+
+ Revision 1.50 2000/02/25 08:56:58 hr
+ #73447#: removed temporary
+
+ Revision 1.49 2000/02/11 14:56:07 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.48 1999/09/10 13:19:27 os
+ Chg: resource types removed
+
+ Revision 1.47 1999/07/08 14:31:40 MA
+ Use internal object to toggle wait cursor
+
+
+ Rev 1.46 08 Jul 1999 16:31:40 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.45 22 Jan 1999 11:51:20 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.44 12 Jan 1999 14:37:10 OS
+ #60805# ChildWindow darf kein Show rufen
+
+ Rev 1.43 18 Nov 1998 15:44:28 OM
+ #59103# Redlines nach Kommentaren filtern
+
+ Rev 1.42 13 Nov 1998 16:41:08 OM
+ #59103# Autofmt-Redlines: zusammengehoerige filtern
+
+ Rev 1.41 13 Nov 1998 15:35:18 OM
+ #59103# Autofmt-Redlines: zusammengehoerige filtern
+
+ Rev 1.40 21 Oct 1998 10:56:34 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.39 20 Oct 1998 17:52:22 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.38 20 Oct 1998 11:39:04 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.37 13 Oct 1998 16:09:38 OM
+ #57859# Redline-Dlg: Spaltenbreite merken
+
+ Rev 1.36 09 Oct 1998 17:05:22 JP
+ Bug #57741#: neue ResourceIds
+
+ Rev 1.35 18 Aug 1998 11:46:48 OM
+ #54866# Nach Aktionen filtern
+
+ Rev 1.34 28 Jul 1998 13:04:14 JP
+ Bug #53951#: Selektionen nicht aufheben, wenn keine Selektion in der Listbox ist
+
+ Rev 1.33 14 Jul 1998 14:19:54 OM
+ #52859# Autor-Button nicht anzeigen
+
+ Rev 1.32 13 Jul 1998 11:32:58 OM
+ #51840# HelpId fuer Redline-Control
+
+ Rev 1.31 10 Jun 1998 17:14:18 OM
+ WaitCursor
+
+ Rev 1.30 08 Jun 1998 17:58:16 OM
+ Ohne Redlines kein GPF
+
+ Rev 1.29 08 Jun 1998 15:04:22 OM
+ Optimiert
+
+ Rev 1.28 05 Jun 1998 17:13:16 OM
+ Optimiert
+
+ Rev 1.27 05 Jun 1998 10:46:00 OM
+ Optimierungen
+
+ Rev 1.26 03 Jun 1998 17:27:54 OM
+ Performance Optimierungen
+
+ Rev 1.25 03 Jun 1998 12:17:08 OM
+ Performance Optimierungen
+
+ Rev 1.24 07 Apr 1998 14:21:34 OM
+ RedlinData nicht mehr selber loeschen
+
+ Rev 1.23 07 Apr 1998 08:47:10 OM
+ Linien anzeigen
+
+ Rev 1.22 03 Apr 1998 13:05:30 OM
+ Kein Absturz bei fehlender SwView
+
+ Rev 1.21 01 Apr 1998 13:09:20 OM
+ Rekursion vermieden
+
+ Rev 1.20 31 Mar 1998 13:01:32 OM
+ Redline-Kommentare in schreibgeschuetzten bereichen nicht editierbar
+
+ Rev 1.19 27 Mar 1998 14:14:42 OM
+ ChildWindows im Modified-Hdl updaten
+
+ Rev 1.18 26 Mar 1998 21:48:36 JP
+ CallAcceptReject: wenn Pos am Ende steht, dann sollte der letzte Eintrag wieder selektiert werden
+
+ Rev 1.17 26 Mar 1998 15:30:16 JP
+ optimiert und Accept/Reject - behalten ihre Position in der Liste
+
+ Rev 1.16 24 Mar 1998 13:45:02 JP
+ neu: Redline fuer harte Attributierung
+
+ Rev 1.15 18 Mar 1998 18:30:46 OM
+ #48735# GPF im Redlining behoben
+
+ Rev 1.14 18 Mar 1998 11:34:10 OM
+ Resize der Basisklasse rufen
+
+ Rev 1.13 17 Mar 1998 09:36:22 OM
+ Groesse korrekt initialisieren
+
+ Rev 1.12 16 Mar 1998 19:10:42 OM
+ Zugriff auf Ini optimiert
+
+ Rev 1.11 16 Mar 1998 11:00:38 OM
+ Autoren vom Dokument zusammensuchen
+
+ Rev 1.10 16 Mar 1998 09:35:42 OM
+ 4 Spalten
+
+ Rev 1.9 15 Mar 1998 16:20:36 OM
+ Groesse merken
+
+ Rev 1.8 10 Mar 1998 12:52:26 OM
+ Keine Sortierung per Default
+
+ Rev 1.7 09 Mar 1998 12:59:24 OM
+ Sortieren und filtern
+
+ Rev 1.6 09 Mar 1998 11:52:06 OM
+ Sortieren und filtern
+
+ Rev 1.5 07 Mar 1998 14:33:36 OM
+ Filtern und sortieren
+
+ Rev 1.4 03 Mar 1998 16:03:00 OM
+ Aufgeraeumt
+
+ Rev 1.3 03 Mar 1998 10:42:50 OM
+ Redline-Browser
+
+ Rev 1.2 28 Feb 1998 15:21:02 OM
+ Author vorselektieren
+
+ Rev 1.1 28 Feb 1998 15:12:06 OM
+ Accept / reject changes
+
+ Rev 1.0 27 Feb 1998 18:22:16 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
diff --git a/sw/source/ui/misc/redlndlg.hrc b/sw/source/ui/misc/redlndlg.hrc
new file mode 100644
index 000000000000..ccd849d4a5fa
--- /dev/null
+++ b/sw/source/ui/misc/redlndlg.hrc
@@ -0,0 +1,72 @@
+/*************************************************************************
+ *
+ * $RCSfile: redlndlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define CTRL_TABPAGES 1
+
+#define MN_EDIT_COMMENT 1
+#define MN_SUB_SORT 2
+#define MN_SORT_ACTION 3
+#define MN_SORT_AUTHOR 4
+#define MN_SORT_DATE 5
+#define MN_SORT_COMMENT 6
+#define MN_SORT_POSITION 7
+
+#define XBORDER 3
+#define YBORDER 3
diff --git a/sw/source/ui/misc/redlndlg.src b/sw/source/ui/misc/redlndlg.src
new file mode 100644
index 000000000000..29c53442457d
--- /dev/null
+++ b/sw/source/ui/misc/redlndlg.src
@@ -0,0 +1,347 @@
+/*************************************************************************
+ *
+ * $RCSfile: redlndlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+#include "redlndlg.hrc"
+#include "misc.hrc"
+#include "helpid.h"
+
+#define WIDTH 297
+#define HEIGHT 169
+
+#define REDLNDLG \
+ OutputSize = TRUE ; \
+ SVLook = TRUE ; \
+ Size = MAP_APPFONT ( WIDTH , HEIGHT ) ; \
+ Moveable = TRUE ; \
+ Closeable = TRUE ; \
+ Sizeable = TRUE ; \
+ Hide = TRUE ; \
+ Control CTRL_TABPAGES\
+ {\
+ Pos = MAP_APPFONT ( XBORDER , YBORDER ) ; \
+ Size = MAP_APPFONT ( WIDTH - XBORDER * 2 , HEIGHT - YBORDER * 2 ) ; \
+ HelpID = HID_REDLINE_CTRL ; \
+ TabStop = TRUE ; \
+ };\
+
+ModelessDialog DLG_REDLINE_ACCEPT
+{
+ HelpID = HID_REDLINE_ACCEPT ;
+ /* ### ACHTUNG: Neuer Text in Resource? Änderungen akzeptieren oder verwerfen : Redlining */
+ Text = "Änderungen akzeptieren oder verwerfen" ;
+ Text [ English ] = "Accept or reject changes" ;
+ Text [ english_us ] = "Accept or Reject Changes" ;
+ Text [ portuguese_brazilian ] = "Redlining" ;
+ Text [ swedish ] = "Acceptera eller kasta bort ändringarna" ;
+ Text [ danish ] = "Accepter eller forkast ændringer" ;
+ Text [ italian ] = "Accettare o rigettare le modifiche" ;
+ Text [ spanish ] = "Aceptar o rechazar modificaciones" ;
+ Text [ french ] = "Accepter ou rejeter les modifications" ;
+ Text [ dutch ] = "Wijzigingen accepteren of verwerpen" ;
+ Text [ portuguese ] = "Aceitar ou rejeitar modificações" ;
+ REDLNDLG
+ Text[ chinese_simplified ] = "½ÓÊÜ»òÕßÈ¡Ïû¸ü¸Ä";
+ Text[ russian ] = "Ïðèíÿòü èëè îòêëîíèòü èçìåíåíèÿ";
+ Text[ polish ] = "Zaakceptuj albo odrzuæ zmiany";
+ Text[ japanese ] = "•ÏX‰ÓŠ‚ÌŠm”F";
+ Text[ chinese_traditional ] = "±µ¨ü©Î¨ú®øÅܧó";
+ Text[ arabic ] = "ÞÈæá Ãæ ÑÝÖ ÇáÊÛííÑÇÊ";
+ Text[ greek ] = "Áðïäï÷Þ Þ áðüññéøç áëëáãþí";
+ Text[ korean ] = "º¯°æ Àû¿ë ¶Ç´Â Ãë¼Ò";
+ Text[ turkish ] = "Deðiþiklikleri onayla ya da reddet";
+ Text[ language_user1 ] = " ";
+};
+
+ModalDialog DLG_MOD_REDLINE_ACCEPT
+{
+ HelpID = HID_REDLINE_AUTOFMT_ACCEPT ;
+ Text = "AutoFormat: Änderungen akzeptieren oder verwerfen" ;
+ Text [ English ] = "Accept or reject AutoFormat changes" ;
+ REDLNDLG
+ Text[ italian ] = "Formattazione automatica: accetta o annulla cambiamenti";
+ Text[ portuguese_brazilian ] = "Accept or reject AutoFormat changes";
+ Text[ portuguese ] = "AutoFormato: aceitar ou rejeitar modificações";
+ Text[ danish ] = "Accepter eller forkast AutoFormat ændringer";
+ Text[ french ] = "Revoir les modifications de l'AutoFormat";
+ Text[ swedish ] = "Acceptera eller kasta bort AutoFormat ändringar";
+ Text[ dutch ] = "AutoOpmaak: Wijzigingen accepteren of verwerpen";
+ Text[ spanish ] = "AutoFormato: Aceptar o rechazar cambios";
+ Text[ english_us ] = "Accept or reject AutoFormat changes";
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ: ½ÓÊÜ»òÕ߾ܾø¸ü¸Ä";
+ Text[ russian ] = "Àâòîôîðìàò: ïðèíÿòü èëè îòêëîíèòü èçìåíåíèÿ";
+ Text[ polish ] = "Autoformatowanie: Zaakceptuj lub odrzuæ zmiany";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä‚É‚æ‚é•ÏX‚ÌŽÀs‚ ‚é‚¢‚Í·¬Ý¾Ù";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡: ±µ¨ü©Î©Úµ´Åܧó";
+ Text[ arabic ] = "ÞÈæá Ãæ ÑÝÖ ÊÛííÑÇÊ ÇáÊäÓíÞ ÇáÊáÞÇÆí";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç:Áðïäï÷Þ Þ áðüññéøç áëëáãþí";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä º¯°æ Àû¿ë ¶Ç´Â Ãë¼Ò";
+ Text[ turkish ] = "Otomatik formatlama: Deðiþiklikleri onayla ya da reddet";
+ Text[ language_user1 ] = " ";
+};
+
+Menu MN_REDLINE_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_EDIT_COMMENT ;
+ HelpID = HID_EDIT_COMMENT ;
+ Text = "Kommentar bearbeiten..." ;
+ Text [ English ] = "Edit Comment..." ;
+ Text [ english_us ] = "Edit Comment..." ;
+ Text [ portuguese_brazilian ] = "Kommentar bearbeiten..." ;
+ Text [ swedish ] = "Bearbeta kommentar..." ;
+ Text [ danish ] = "Rediger kommentar..." ;
+ Text [ italian ] = "Modifica commento..." ;
+ Text [ spanish ] = "Modificar comentario..." ;
+ Text [ french ] = "Éditer le commentaire..." ;
+ Text [ dutch ] = "Commentaar bewerken..." ;
+ Text [ portuguese ] = "Editar comentário..." ;
+ Text[ chinese_simplified ] = "±à¼­×¢½â...";
+ Text[ russian ] = "Îáðàáîòêà êîììåíòàðèÿ...";
+ Text[ polish ] = "Edytuj komentarz...";
+ Text[ japanese ] = "ºÒÝÄ‚Ì•ÒW...";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "½s¿èª`¸Ñ...";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÊÚáíÞ...";
+ Text[ greek ] = "Åðåîåñãáóßá ó÷ïëßïõ...";
+ Text[ korean ] = "¸Þ¸ð ÆíÁý...";
+ Text[ turkish ] = "Açýklamalarý düzenle...";
+ };
+ MenuItem
+ {
+ Identifier = MN_SUB_SORT ;
+ Text = "Sortiere" ;
+ Text [ english ] = "Sort" ;
+ RadioCheck = TRUE ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_SORT_ACTION ;
+ HelpID = HID_SORT_ACTION ;
+ Text = "Aktion" ;
+ Text [ english ] = "Action" ;
+ RadioCheck = TRUE ;
+ Text [ english_us ] = "Action" ;
+ Text [ portuguese_brazilian ] = "Aktion" ;
+ Text [ swedish ] = "Aktivitet" ;
+ Text [ danish ] = "Handling" ;
+ Text [ italian ] = "Operazione" ;
+ Text [ spanish ] = "Acción" ;
+ Text [ french ] = "Action" ;
+ Text [ dutch ] = "Activiteit" ;
+ Text [ portuguese ] = "Acção" ;
+ Text[ chinese_simplified ] = "²Ù×÷";
+ Text[ russian ] = "Äåéñòâèå";
+ Text[ polish ] = "Akcja";
+ Text[ japanese ] = "±¸¼®Ý";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¾Þ§@";
+ Text[ arabic ] = "ÅÌÑÇÁ";
+ Text[ greek ] = "ÅíÝñãåéá";
+ Text[ korean ] = "µ¿ÀÛ";
+ Text[ turkish ] = "Ýþlem";
+ };
+ MenuItem
+ {
+ Identifier = MN_SORT_AUTHOR ;
+ HelpID = HID_SORT_AUTHOR ;
+ Text = "Autor" ;
+ Text [ english ] = "Author" ;
+ RadioCheck = TRUE ;
+ Text [ english_us ] = "Author" ;
+ Text [ portuguese_brazilian ] = "Autor" ;
+ Text [ swedish ] = "Författare" ;
+ Text [ danish ] = "Forfatter" ;
+ Text [ italian ] = "Autore" ;
+ Text [ spanish ] = "Autor" ;
+ Text [ french ] = "Auteur" ;
+ Text [ dutch ] = "Auteur" ;
+ Text [ portuguese ] = "Autor" ;
+ Text[ chinese_simplified ] = "×÷Õß";
+ Text[ russian ] = "Àâòîð";
+ Text[ polish ] = "Autor";
+ Text[ japanese ] = "쬎Ò";
+ Text[ chinese_traditional ] = "§@ªÌ";
+ Text[ arabic ] = "ÇáãÄáÝ";
+ Text[ greek ] = "ÓõíôÜêôçò";
+ Text[ korean ] = "ÀÛ¼ºÀÎ";
+ Text[ turkish ] = "Yazan";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_SORT_DATE ;
+ HelpID = HID_SORT_DATE ;
+ Text = "Datum" ;
+ Text [ english ] = "Date" ;
+ RadioCheck = TRUE ;
+ Text [ english_us ] = "Date" ;
+ Text [ portuguese_brazilian ] = "Datum" ;
+ Text [ swedish ] = "Datum" ;
+ Text [ danish ] = "Dato" ;
+ Text [ italian ] = "Data" ;
+ Text [ spanish ] = "Fecha" ;
+ Text [ french ] = "Date" ;
+ Text [ dutch ] = "Datum" ;
+ Text [ portuguese ] = "Data" ;
+ Text[ chinese_simplified ] = "ÈÕÆÚ";
+ Text[ russian ] = "Äàòà";
+ Text[ polish ] = "Data";
+ Text[ japanese ] = "“ú•t";
+ Text[ chinese_traditional ] = "¤é´Á";
+ Text[ arabic ] = "ÇáÊÇÑíÎ";
+ Text[ greek ] = "Çìåñïìçíßá";
+ Text[ korean ] = "ÀÏÀÚ";
+ Text[ turkish ] = "Tarih";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_SORT_COMMENT ;
+ HelpID = HID_SORT_COMMENT ;
+ Text = "Beschreibung" ;
+ Text [ english ] = "Comment" ;
+ RadioCheck = TRUE ;
+ Text [ english_us ] = "Comment" ;
+ Text [ portuguese_brazilian ] = "Beschreibung" ;
+ Text [ swedish ] = "Beskrivning" ;
+ Text [ danish ] = "Beskrivelse" ;
+ Text [ italian ] = "Descrizione" ;
+ Text [ spanish ] = "Descripción" ;
+ Text [ french ] = "Description" ;
+ Text [ dutch ] = "Beschrijving" ;
+ Text [ portuguese ] = "Descrição" ;
+ Text[ chinese_simplified ] = "˵Ã÷";
+ Text[ russian ] = "Îïèñàíèå";
+ Text[ polish ] = "Opis";
+ Text[ japanese ] = "ºÒÝÄ";
+ Text[ chinese_traditional ] = "´y­z";
+ Text[ arabic ] = "ÊÚáíÞ";
+ Text[ greek ] = "ÐåñéãñáöÞ";
+ Text[ korean ] = "¸Þ¸ð";
+ Text[ turkish ] = "Açýklama";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_SORT_POSITION ;
+ HelpID = HID_SW_SORT_POSITION ;
+ Text = "Dokumentposition" ;
+ Text [ english ] = "Document position" ;
+ RadioCheck = TRUE ;
+ Text [ english_us ] = "Document position" ;
+ Text [ portuguese_brazilian ] = "Dokumentposition" ;
+ Text [ swedish ] = "Dokumentposition" ;
+ Text [ danish ] = "Dokumentplacering" ;
+ Text [ italian ] = "Posizione documento" ;
+ Text [ spanish ] = "Posición del documento" ;
+ Text [ french ] = "Emplacement dans le document" ;
+ Text [ dutch ] = "Documentpositie" ;
+ Text [ portuguese ] = "Posição do documento" ;
+ Text[ chinese_simplified ] = "ÎĵµÎ»ÖÃ";
+ Text[ russian ] = "Ïîçèöèÿ äîêóìåíòà";
+ Text[ polish ] = "Pozycja dokumentu";
+ Text[ japanese ] = "ÄÞ·­ÒÝĂ̈ʒu";
+ Text[ chinese_traditional ] = "¤å¥ó¦ì¸m";
+ Text[ arabic ] = "ãæÞÚ ÇáãÓÊäÏ";
+ Text[ greek ] = "ÈÝóç åããñÜöïõ";
+ Text[ korean ] = "¹®¼­ À§Ä¡";
+ Text[ turkish ] = "Belge konumu";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text [ english_us ] = "Sorting" ;
+ Text [ portuguese_brazilian ] = "Sortiere" ;
+ Text [ swedish ] = "Sorterar" ;
+ Text [ danish ] = "Sorter" ;
+ Text [ italian ] = "Ordina" ;
+ Text [ spanish ] = "Ordenar" ;
+ Text [ french ] = "Trier" ;
+ Text [ dutch ] = "Sorteer" ;
+ Text [ portuguese ] = "Ordenar" ;
+ Text[ chinese_simplified ] = "ÅÅÐò";
+ Text[ russian ] = "Ñîðòèðîâêà";
+ Text[ polish ] = "Sortuj";
+ Text[ japanese ] = "•À‚בւ¦";
+ Text[ chinese_traditional ] = "±Æ§Ç";
+ Text[ arabic ] = "ÝÑÒ";
+ Text[ greek ] = "Ôáîéíüìçóç";
+ Text[ korean ] = "Á¤¿­";
+ Text[ turkish ] = "Sýrala";
+ Text[ language_user1 ] = " ";
+ };
+ };
+};
+Bitmap BMP_ROOT_CLOSED
+{
+ File = "plus.bmp" ;
+};
+Bitmap BMP_ROOT_OPENED
+{
+ File = "minus.bmp" ;
+};
diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
new file mode 100644
index 000000000000..7c5318fccd06
--- /dev/null
+++ b/sw/source/ui/misc/srtdlg.cxx
@@ -0,0 +1,459 @@
+/*************************************************************************
+ *
+ * $RCSfile: srtdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#include "view.hxx"
+#include "cmdid.h"
+#include "wrtsh.hxx"
+#include "srtdlg.hxx"
+#include "sortopt.hxx"
+#include "misc.hrc"
+#include "srtdlg.hrc"
+#include "swtable.hxx"
+#include "node.hxx"
+#include "tblsel.hxx"
+
+static BOOL bCheck1 = TRUE;
+static BOOL bCheck2 = FALSE;
+static BOOL bCheck3 = FALSE;
+
+static USHORT nCol1 = 1;
+static USHORT nCol2 = 1;
+static USHORT nCol3 = 1;
+
+static USHORT nType1 = 0;
+static USHORT nType2 = 0;
+static USHORT nType3 = 0;
+
+static BOOL bAsc1 = TRUE;
+static BOOL bAsc2 = TRUE;
+static BOOL bAsc3 = TRUE;
+static BOOL bCol = FALSE;
+static char nDeli = '\t';
+
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Fuer Tabellenselektion sel. Zeilen und Spalten
+ feststellen
+ --------------------------------------------------------------------*/
+
+
+BOOL lcl_GetSelTbl( SwWrtShell &rSh,USHORT& rX, USHORT& rY )
+{
+ const SwTableNode* pTblNd = rSh.IsCrsrInTbl();
+ if( !pTblNd )
+ return FALSE;
+
+ _FndBox aFndBox( 0, 0 );
+
+ // suche alle Boxen / Lines
+ {
+ SwSelBoxes aSelBoxes;
+ ::GetTblSel( rSh, aSelBoxes );
+ _FndPara aPara( aSelBoxes, &aFndBox );
+ const SwTable& rTbl = pTblNd->GetTable();
+ ((SwTableLines&)rTbl.GetTabLines()).ForEach( &_FndLineCopyCol, &aPara );
+ }
+ rX = aFndBox.GetLines().Count();
+ if( !rX )
+ return FALSE;
+
+ rY = aFndBox.GetLines()[0]->GetBoxes().Count();
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Init-Liste
+ --------------------------------------------------------------------*/
+
+
+
+SwSortDlg::SwSortDlg(Window* pParent, SwWrtShell &rShell) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_SORTING)),
+ rSh(rShell),
+ aOkBtn(this, SW_RES(BT_OK )),
+ aCancelBtn(this, SW_RES(BT_CANCEL)),
+ aHelpBtn(this, SW_RES(BT_HELP )),
+ aColLbl(this, SW_RES(FT_COL )),
+ aTypLbl(this, SW_RES(FT_KEYTYP)),
+ aDirLbl(this, SW_RES(FT_DIR )),
+ aKeyCB1(this, SW_RES(CB_KEY1 )),
+ aColEdt1(this, SW_RES(ED_KEY1 )),
+ aTypDLB1(this, SW_RES(DLB_KEY1 )),
+ aSortUpRB(this, SW_RES(RB_UP )),
+ aSortDnRB(this, SW_RES(RB_DN )),
+ aKeyCB2(this, SW_RES(CB_KEY2 )),
+ aColEdt2(this, SW_RES(ED_KEY2 )),
+ aTypDLB2(this, SW_RES(DLB_KEY2 )),
+ aSortUp2RB(this, SW_RES(RB_UP2 )),
+ aSortDn2RB(this, SW_RES(RB_DN2 )),
+ aKeyCB3(this, SW_RES(CB_KEY3 )),
+ aColEdt3(this, SW_RES(ED_KEY3 )),
+ aTypDLB3(this, SW_RES(DLB_KEY3 )),
+ aSortUp3RB(this, SW_RES(RB_UP3 )),
+ aSortDn3RB(this, SW_RES(RB_DN3 )),
+ aSortGrp(this, SW_RES(GB_SORT )),
+ aColumnRB(this, SW_RES(RB_COL )),
+ aRowRB(this, SW_RES(RB_ROW )),
+ aDirGrp(this, SW_RES(GB_DIR )),
+ aDelimTabRB(this, SW_RES(RB_TAB )),
+ aDelimFreeRB(this, SW_RES(RB_TABCH )),
+ aDelimEdt(this, SW_RES(ED_TABCH )),
+ aDelimGrp(this, SW_RES(GB_DELIM )),
+ aColTxt(SW_RES(STR_COL)),
+ aRowTxt(SW_RES(STR_ROW)),
+ nX( 99 ),
+ nY( 99 )
+{
+ aDelimEdt.SetMaxTextLen( 1 );
+ if(rSh.GetSelectionType() &
+ (SwWrtShell::SEL_TBL|SwWrtShell::SEL_TBL_CELLS) )
+ {
+ aColumnRB.Check(bCol);
+ aColLbl.SetText(bCol ? aRowTxt : aColTxt);
+ aRowRB.Check(!bCol);
+ aDelimTabRB.Enable(FALSE);
+ aDelimFreeRB.Enable(FALSE);
+ aDelimEdt.Enable(FALSE);
+ }
+ else
+ {
+ aColumnRB.Enable(FALSE);
+ aRowRB.Check(TRUE);
+ aColLbl.SetText(aColTxt);
+ }
+
+ // Initialisieren
+ Link aLk = LINK(this,SwSortDlg, CheckHdl);
+ aKeyCB1.SetClickHdl( aLk );
+ aKeyCB2.SetClickHdl( aLk );
+ aKeyCB3.SetClickHdl( aLk );
+ aColumnRB.SetClickHdl( aLk );
+ aRowRB.SetClickHdl( aLk );
+
+ aLk = LINK(this,SwSortDlg, DelimHdl);
+ aDelimFreeRB.SetClickHdl(aLk);
+ aDelimTabRB.SetClickHdl(aLk);
+
+ aKeyCB1.Check(bCheck1);
+ aKeyCB2.Check(bCheck2);
+ aKeyCB3.Check(bCheck3);
+
+ aColEdt1.SetValue(nCol1);
+ aColEdt2.SetValue(nCol2);
+ aColEdt3.SetValue(nCol3);
+
+ aTypDLB1.SelectEntryPos(nType1);
+ aTypDLB2.SelectEntryPos(nType2);
+ aTypDLB3.SelectEntryPos(nType3);
+
+ aSortUpRB.Check(bAsc1);
+ aSortDnRB.Check(!bAsc1);
+ aSortUp2RB.Check(bAsc2);
+ aSortDn2RB.Check(!bAsc2);
+ aSortUp3RB.Check(bAsc3);
+ aSortDn3RB.Check(!bAsc3);
+ aDelimTabRB.Check(nDeli == '\t');
+
+ if(!aDelimTabRB.IsChecked())
+ {
+ aDelimEdt.SetText(nDeli);
+ aDelimFreeRB.Check(TRUE);
+ DelimHdl(&aDelimFreeRB);
+ }
+ else
+ DelimHdl(&aDelimTabRB);
+
+ FreeResource();
+ if( ::lcl_GetSelTbl( rSh, nX, nY) )
+ {
+ USHORT nMax = aRowRB.IsChecked()? nY : nX;
+ aColEdt1.SetMax(nMax);
+ aColEdt2.SetMax(nMax);
+ aColEdt3.SetMax(nMax);
+ }
+}
+
+
+
+
+SwSortDlg::~SwSortDlg()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: An die Core weiterreichen
+ --------------------------------------------------------------------*/
+void SwSortDlg::Apply()
+{
+ SwSortOptions aOptions;
+ if(aKeyCB1.IsChecked())
+ {
+ USHORT nSort = aSortUpRB.IsChecked() ?
+ (USHORT)SRT_ASCENDING : (USHORT)SRT_DESCENDING ;
+ SwSortKey *pKey = new SwSortKey(aColEdt1.GetValue(),
+ (SwSortKeyType)aTypDLB1.GetSelectEntryPos(),
+ (SwSortOrder)nSort);
+ aOptions.aKeys.C40_INSERT(SwSortKey, pKey, aOptions.aKeys.Count());
+ }
+
+ if(aKeyCB2.IsChecked())
+ {
+ USHORT nSort = aSortUp2RB.IsChecked() ?
+ (USHORT)SRT_ASCENDING : (USHORT)SRT_DESCENDING ;
+ SwSortKey *pKey = new SwSortKey(aColEdt2.GetValue(),
+ (SwSortKeyType)aTypDLB2.GetSelectEntryPos(),
+ (SwSortOrder)nSort);
+ aOptions.aKeys.C40_INSERT(SwSortKey, pKey, aOptions.aKeys.Count());
+ }
+
+ if(aKeyCB3.IsChecked())
+ {
+ USHORT nSort = aSortUp3RB.IsChecked() ?
+ (USHORT)SRT_ASCENDING : (USHORT)SRT_DESCENDING ;
+ SwSortKey *pKey = new SwSortKey(aColEdt3.GetValue(),
+ (SwSortKeyType)aTypDLB3.GetSelectEntryPos(),
+ (SwSortOrder)nSort);
+ aOptions.aKeys.C40_INSERT(SwSortKey, pKey, aOptions.aKeys.Count());
+ }
+ aOptions.eDirection = aRowRB.IsChecked() ?
+ SRT_ROWS : SRT_COLUMNS;
+ sal_Unicode nDeli = '\t';
+ if(!aDelimTabRB.IsChecked())
+ {
+ String aTmp(aDelimEdt.GetText());
+ if( aTmp.Len() )
+ nDeli = aTmp.GetChar( 0 );
+ }
+ aOptions.nDeli = nDeli;
+ aOptions.bTable = rSh.IsTableMode();
+
+ SwWait aWait( *rSh.GetView().GetDocShell(), TRUE );
+ rSh.StartAllAction();
+ BOOL bRet = rSh.Sort(aOptions);
+ rSh.EndAllAction();
+ if(bRet)
+ InfoBox(this->GetParent(), SW_RES(MSG_SRTERR)).Execute();
+ else
+ rSh.SetModified();
+
+ // Alte Einstellung speichern
+ //
+ bCheck1 = aKeyCB1.IsChecked();
+ bCheck2 = aKeyCB2.IsChecked();
+ bCheck3 = aKeyCB3.IsChecked();
+
+ nCol1 = (USHORT)aColEdt1.GetValue();
+ nCol2 = (USHORT)aColEdt2.GetValue();
+ nCol3 = (USHORT)aColEdt3.GetValue();
+
+ nType1 = aTypDLB1.GetSelectEntryPos();
+ nType2 = aTypDLB2.GetSelectEntryPos();
+ nType3 = aTypDLB3.GetSelectEntryPos();
+
+ bAsc1 = aSortUpRB.IsChecked();
+ bAsc2 = aSortUp2RB.IsChecked();
+ bAsc3 = aSortUp3RB.IsChecked();
+ bCol = aColumnRB.IsChecked();
+}
+/* -----------------30.09.98 10:03-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwSortDlg, DelimHdl, RadioButton*, pButton )
+{
+ aDelimEdt.Enable(pButton == &aDelimFreeRB && aDelimFreeRB.IsEnabled());
+ return 0;
+}
+
+
+IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck )
+{
+ if( pCheck == ( CheckBox* ) &aRowRB)
+ {
+ aColLbl.SetText(aColTxt);
+ aColEdt1.SetMax(nY);
+ aColEdt2.SetMax(nY);
+ aColEdt3.SetMax(nY);
+
+ }
+ else if( pCheck == ( CheckBox* ) &aColumnRB)
+ {
+ aColLbl.SetText(aRowTxt);
+ aColEdt1.SetMax(nX);
+ aColEdt2.SetMax(nX);
+ aColEdt3.SetMax(nX);
+ }
+ else if(!aKeyCB1.IsChecked() &&
+ !aKeyCB2.IsChecked() &&
+ !aKeyCB3.IsChecked())
+ pCheck->Check(TRUE);
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.58 2000/09/18 16:06:00 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.57 2000/05/26 07:21:31 os
+ old SW Basic API Slots removed
+
+ Revision 1.56 2000/02/11 14:56:48 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.55 1998/09/30 08:29:10 OS
+ #52654# Sortable und SortDescriptor eingebaut, auf- und absteigend fuer jeden Schluessel
+
+
+ Rev 1.54 30 Sep 1998 10:29:10 OS
+ #52654# Sortable und SortDescriptor eingebaut, auf- und absteigend fuer jeden Schluessel
+
+ Rev 1.53 07 Apr 1998 13:04:20 OM
+ #49223 Infobox nicht mit hidden Parent executen
+
+ Rev 1.52 24 Nov 1997 16:47:48 MA
+ includes
+
+ Rev 1.51 21 Nov 1997 13:50:44 OS
+ richtigen Schluesseltext setzen #45697#
+
+ Rev 1.50 03 Nov 1997 13:22:42 MA
+ precomp entfernt
+
+ Rev 1.49 25 Jul 1997 15:39:10 HJS
+ includes
+
+ Rev 1.48 11 Nov 1996 11:05:44 MA
+ ResMgr
+
+ Rev 1.47 24 Oct 1996 13:36:36 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.46 02 Oct 1996 18:29:32 MA
+ Umstellung Enable/Disable
+
+ Rev 1.45 11 Sep 1996 17:23:46 NF
+ add: svxids.hrc
+
+ Rev 1.44 28 Aug 1996 14:12:24 OS
+ includes
+
+ Rev 1.43 26 Jun 1996 15:25:54 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.42 25 Jun 1996 18:39:38 HJS
+ includes
+
+ Rev 1.41 07 Jun 1996 14:25:56 OS
+ SelectionType auf SEL_TBL* testen, nicht auf SEL_TXT
+
+ Rev 1.40 06 Feb 1996 15:21:14 JP
+ Link Umstellung 305
+
+ Rev 1.39 24 Nov 1995 16:58:46 OM
+ PCH->PRECOMPILED
+
+ Rev 1.38 13 Nov 1995 10:52:46 OM
+ Neues Seg
+
+ Rev 1.37 13 Nov 1995 10:51:34 OM
+ static entfernt
+
+ Rev 1.36 08 Nov 1995 13:31:48 JP
+ Umstellung zur 301: Change -> Set
+
+ Rev 1.35 24 Oct 1995 17:05:52 OS
+ Sorting recordable und dazu ueber Slot imlementiert
+
+ Rev 1.34 12 Sep 1995 17:30:20 OM
+ Helpbutton eingefuegt
+
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/misc/srtdlg.hrc b/sw/source/ui/misc/srtdlg.hrc
new file mode 100644
index 000000000000..ef4ea1132ff6
--- /dev/null
+++ b/sw/source/ui/misc/srtdlg.hrc
@@ -0,0 +1,93 @@
+/*************************************************************************
+ *
+ * $RCSfile: srtdlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define BT_OK 1
+#define BT_CANCEL 2
+#define FT_COL 3
+#define FT_KEYTYP 4
+#define CB_KEY1 5
+#define ED_KEY1 6
+#define DLB_KEY1 7
+#define CB_KEY2 8
+#define ED_KEY2 9
+#define DLB_KEY2 10
+#define CB_KEY3 11
+#define ED_KEY3 12
+#define DLB_KEY3 13
+#define GB_SORT 14
+#define RB_COL 15
+#define RB_ROW 16
+#define GB_DIR 17
+#define RB_UP 18
+#define RB_DN 19
+#define GB_ORDER 20
+#define RB_TAB 21
+#define RB_TABCH 22
+#define ED_TABCH 23
+#define GB_DELIM 24
+#define STR_ROW 25
+#define STR_COL 26
+#define BT_HELP 27
+#define FT_DIR 28
+#define RB_UP2 29
+#define RB_DN2 30
+#define RB_UP3 31
+#define RB_DN3 32
+
diff --git a/sw/source/ui/misc/srtdlg.src b/sw/source/ui/misc/srtdlg.src
new file mode 100644
index 000000000000..f80236b1b1cd
--- /dev/null
+++ b/sw/source/ui/misc/srtdlg.src
@@ -0,0 +1,1193 @@
+/*************************************************************************
+ *
+ * $RCSfile: srtdlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "misc.hrc"
+#include "srtdlg.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_SORTING
+{
+ HelpID = FN_SORTING_DLG ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 268 , 153 ) ;
+ Text = "Sortieren" ;
+ Text [ ENGLISH ] = "Sort" ;
+ Text [ norwegian ] = "Sorter" ;
+ Text [ italian ] = "Ordina" ;
+ Text [ portuguese_brazilian ] = "Ordenar" ;
+ Text [ portuguese ] = "Ordenar" ;
+ Text [ finnish ] = "Lajittelu" ;
+ Text [ danish ] = "Sorter" ;
+ Text [ french ] = "Trier" ;
+ Text [ swedish ] = "Sortera" ;
+ Text [ dutch ] = "Sorteren" ;
+ Text [ spanish ] = "Ordenar" ;
+ Text [ english_us ] = "Sort" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 212 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 212 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 212 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_COL
+ {
+ Pos = MAP_APPFONT ( 68 , 12 ) ;
+ Size = MAP_APPFONT ( 25 , 8 ) ;
+ Text = "Spalte" ;
+ Text [ ENGLISH ] = "Column" ;
+ Text [ norwegian ] = "Column" ;
+ Text [ italian ] = "Colonna" ;
+ Text [ portuguese_brazilian ] = "Coluna" ;
+ Text [ portuguese ] = "Coluna" ;
+ Text [ finnish ] = "Sarake" ;
+ Text [ danish ] = "Kolonne" ;
+ Text [ french ] = "Colonne" ;
+ Text [ swedish ] = "Kolumn" ;
+ Text [ dutch ] = "Kolom" ;
+ Text [ spanish ] = "Columna" ;
+ Text [ english_us ] = "Column" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÁÐ";
+ Text[ russian ] = "Êîëîíêà";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_KEYTYP
+ {
+ Pos = MAP_APPFONT ( 101, 12 ) ;
+ Size = MAP_APPFONT ( 48 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Schlüsseltyp : Schl³sseltyp */
+ Text = "Schlüsseltyp" ;
+ Text [ ENGLISH ] = "Key type" ;
+ Text [ norwegian ] = "Tasttype" ;
+ Text [ italian ] = "Tipo chiave" ;
+ Text [ portuguese_brazilian ] = "Tipo de tecla" ;
+ Text [ portuguese ] = "Tipo de chave" ;
+ Text [ finnish ] = "Avainlaji" ;
+ Text [ danish ] = "Nøgletype" ;
+ Text [ french ] = "Type de critère" ;
+ Text [ swedish ] = "Kodtyp" ;
+ Text [ dutch ] = "Sleuteltype" ;
+ Text [ spanish ] = "Tipo de clave" ;
+ Text [ english_us ] = "Key type" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÃÜÂëÀàÐÍ";
+ Text[ russian ] = "Òèï êëþ÷à";
+ Text[ polish ] = "Typ klucza";
+ Text[ japanese ] = "·°‚ÌŽí—Þ";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "±K½XÃþ«¬";
+ Text[ arabic ] = "äæÚ ÇáãÝÊÇÍ";
+ Text[ greek ] = "Ôýðïò êëåéäéïý";
+ Text[ korean ] = "Å° ÇüÅÂ";
+ Text[ turkish ] = "Anahtar tipi";
+ };
+ FixedText FT_DIR
+ {
+ Pos = MAP_APPFONT ( 155 , 12 ) ;
+ Size = MAP_APPFONT ( 49 , 10 ) ;
+ Text = "Reihenfolge" ;
+ Text [ ENGLISH ] = "Order" ;
+ Text [ norwegian ] = "Rekkefølge" ;
+ Text [ italian ] = "Sequenza" ;
+ Text [ portuguese_brazilian ] = "Ordem" ;
+ Text [ portuguese ] = "Ordem" ;
+ Text [ finnish ] = "Järjestys" ;
+ Text [ danish ] = "Rækkefølge" ;
+ Text [ french ] = "Ordre" ;
+ Text [ swedish ] = "Ordning" ;
+ Text [ dutch ] = "Volgorde" ;
+ Text [ spanish ] = "Orden" ;
+ Text [ english_us ] = "Order" ;
+ Text[ chinese_simplified ] = "˳Ðò";
+ Text[ russian ] = "Ïîðÿäîê";
+ Text[ polish ] = "KolejnoϾ";
+ Text[ japanese ] = "‡˜";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¶¶§Ç";
+ Text[ arabic ] = "ÇáÊÑÊíÈ";
+ Text[ greek ] = "ÓåéñÜ";
+ Text[ korean ] = "¼ø¼­";
+ Text[ turkish ] = "Sýra";
+ };
+ CheckBox CB_KEY1
+ {
+ Pos = MAP_APPFONT ( 12 , 25 ) ;
+ Size = MAP_APPFONT ( 49 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Schlüssel ~1 : Schl³ssel ~1 */
+ Text = "Schlüssel ~1" ;
+ Text [ ENGLISH ] = "Key ~1" ;
+ Text [ norwegian ] = "Tast ~1" ;
+ Text [ italian ] = "Chiave ~1" ;
+ Text [ portuguese_brazilian ] = "Tecla ~1" ;
+ Text [ portuguese ] = "Tecla ~1" ;
+ Text [ finnish ] = "Avain ~1" ;
+ Text [ danish ] = "Nøgle 1" ;
+ Text [ french ] = "Critère ~1" ;
+ Text [ swedish ] = "Nyckel ~1" ;
+ Text [ dutch ] = "Sleutel ~1" ;
+ Text [ spanish ] = "Clave ~1" ;
+ Text [ english_us ] = "Key ~1" ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "ÃÜÂë 1(~1)";
+ Text[ russian ] = "Êëþ÷ ~1";
+ Text[ polish ] = "Klucz ~1";
+ Text[ japanese ] = "·° 1";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "±K½X ~1";
+ Text[ arabic ] = "ãÝÊÇÍ 1";
+ Text[ greek ] = "Êëåéäß ~1";
+ Text[ korean ] = "Å° 1";
+ Text[ turkish ] = "Anahtar ~1";
+ };
+ NumericField ED_KEY1
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 23 ) ;
+ Size = MAP_APPFONT ( 25 , 12 ) ;
+ Text = "10" ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 99 ;
+ SpinSize = 1 ;
+ };
+ ListBox DLB_KEY1
+ {
+ Pos = MAP_APPFONT ( 96 , 23 ) ;
+ Size = MAP_APPFONT ( 55 , 45 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "alfanumerica" ; > ;
+ < "numerica" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "alfanumérico" ; > ;
+ < "numérico" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "alfanumérico" ; > ;
+ < "numérico" ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "alfanumerisk" ; > ;
+ < "numerisk" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "alphanumérique" ; > ;
+ < "numérique" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "alfanumerisk" ; > ;
+ < "numerisk" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "alfanumeriek" ; > ;
+ < "numeriek" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "alfanumérica" ; > ;
+ < "numérica" ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "alphanumeric" ; > ;
+ < "numeric" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×Öĸ" ; > ;
+ < "Êý×Ö" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "àëôàâèòíî-öèôðîâîé" ; > ;
+ < "öèôðîâîé" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "alfanumeryczny" ; > ;
+ < "numeryczny" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "±Ù̧Íޯć" ; > ;
+ < "”Žš" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¦r¥À" ; > ;
+ < "¼Æ¦r" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "åÌÇÆí ÚÏÏí" ; > ;
+ < "ÚÏÏí" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "áëöáñéèìçôéêÜ" ; > ;
+ < "áñéèìçôéêÜ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¿µ¼ýÀÚ" ; > ;
+ < "¹øÈ£" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "alfanümerik" ; > ;
+ < "nümerik" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ RadioButton RB_UP
+ {
+ Pos = MAP_APPFONT ( 155 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "~Aufsteigend" ;
+ Text [ ENGLISH ] = "~Ascending" ;
+ Text [ norwegian ] = "St~igende" ;
+ Text [ italian ] = "~Crescente" ;
+ Text [ portuguese_brazilian ] = "~Ascendente" ;
+ Text [ portuguese ] = "~Ascendente" ;
+ Text [ finnish ] = "~Nouseva" ;
+ Text [ danish ] = "Stigende" ;
+ Text [ french ] = "~Croissant" ;
+ Text [ swedish ] = "Stig~ande" ;
+ Text [ dutch ] = "~Oplopend" ;
+ Text [ spanish ] = "~Ascendente" ;
+ Text [ english_us ] = "~Ascending" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "µÝÔö(~A)";
+ Text[ russian ] = "Ïî âîçðàñòàíèþ";
+ Text[ polish ] = "Rosn¹co";
+ Text[ japanese ] = "¸‡(~A)";
+ Text[ chinese_traditional ] = "»¼¼W(~A)";
+ Text[ arabic ] = "ÊÕÇÚÏí";
+ Text[ greek ] = "Áýîïõóá";
+ Text[ korean ] = "¿À¸§Â÷¼ø(~A)";
+ Text[ turkish ] = "Ar~tan";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_DN
+ {
+ Pos = MAP_APPFONT ( 155 , 35 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "A~bsteigend" ;
+ Text [ ENGLISH ] = "~Descending" ;
+ Text [ norwegian ] = "~Synkende" ;
+ Text [ italian ] = "~Decrescente" ;
+ Text [ portuguese_brazilian ] = "~Descendente" ;
+ Text [ portuguese ] = "~Descendente" ;
+ Text [ finnish ] = "~Laskeva" ;
+ Text [ danish ] = "Faldende" ;
+ Text [ french ] = "~Décroissant" ;
+ Text [ swedish ] = "Fallan~de" ;
+ Text [ dutch ] = "~Aflopend" ;
+ Text [ spanish ] = "~Descendente" ;
+ Text [ english_us ] = "~Descending" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "µÝ¼õ(~D)";
+ Text[ russian ] = "Ïî óáûâàíèþ";
+ Text[ polish ] = "Malej¹co";
+ Text[ japanese ] = "~‡";
+ Text[ chinese_traditional ] = "»¼´î(~D)";
+ Text[ arabic ] = "ÊäÇÒáí";
+ Text[ greek ] = "Öèßíïõóá";
+ Text[ korean ] = "³»¸²Â÷¼ø(~D)";
+ Text[ turkish ] = "A~zalan";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_KEY2
+ {
+ Pos = MAP_APPFONT ( 12 , 52 ) ;
+ Size = MAP_APPFONT ( 49 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Schlüssel ~2 : Schl³ssel ~2 */
+ Text = "Schlüssel ~2" ;
+ Text [ ENGLISH ] = "Key ~2" ;
+ Text [ norwegian ] = "Tast ~2" ;
+ Text [ italian ] = "Chiave ~2" ;
+ Text [ portuguese_brazilian ] = "Tecla ~2" ;
+ Text [ portuguese ] = "Tecla ~2" ;
+ Text [ finnish ] = "Avain ~2" ;
+ Text [ danish ] = "Nøgle 2" ;
+ Text [ french ] = "Critère ~2" ;
+ Text [ swedish ] = "Nyckel ~2" ;
+ Text [ dutch ] = "Sleutel ~2" ;
+ Text [ spanish ] = "Clave ~2" ;
+ Text [ english_us ] = "Key ~2" ;
+ Text[ chinese_simplified ] = "ÃÜÂë 2(~2)";
+ Text[ russian ] = "Êëþ÷ ~2";
+ Text[ polish ] = "Klucz 2";
+ Text[ japanese ] = "·° 2";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "±K½X ~2";
+ Text[ arabic ] = "ãÝÊÇÍ 2";
+ Text[ greek ] = "Êëåéäß ~2";
+ Text[ korean ] = "Å° 2";
+ Text[ turkish ] = "Anahtar ~2";
+ };
+ NumericField ED_KEY2
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 50 ) ;
+ Size = MAP_APPFONT ( 25 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 99 ;
+ SpinSize = 1 ;
+ };
+ ListBox DLB_KEY2
+ {
+ Pos = MAP_APPFONT ( 96 , 50 ) ;
+ Size = MAP_APPFONT ( 55 , 45 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "alfanumerica" ; > ;
+ < "numerica" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "alfanumérico" ; > ;
+ < "numérico" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "alfanumérico" ; > ;
+ < "numérico" ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "alfanumerisk" ; > ;
+ < "numerisk" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "alphanumérique" ; > ;
+ < "numérique" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "alfanumerisk" ; > ;
+ < "numerisk" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "alfanumeriek" ; > ;
+ < "numeriek" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "alfanumérica" ; > ;
+ < "numérica" ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "alphanumeric" ; > ;
+ < "numeric" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×Öĸ" ; > ;
+ < "Êý×Ö" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "àëôàâèòíî-öèôðîâîé" ; > ;
+ < "öèôðîâîé" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "alfanumeryczny" ; > ;
+ < "numeryczny" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "±Ù̧Íޯć" ; > ;
+ < "”Žš" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¦r¥À" ; > ;
+ < "¼Æ¦r" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "åÌÇÆí ÚÏÏí" ; > ;
+ < "ÚÏÏí" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "áëöáñéèìçôéêÜ" ; > ;
+ < "áñéèìçôéêÜ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¿µ¼ýÀÚ" ; > ;
+ < "¹øÈ£" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "alfanümerik" ; > ;
+ < "nümerik" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ RadioButton RB_UP2
+ {
+ Pos = MAP_APPFONT ( 155 , 50 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "A~ufsteigend" ;
+ Text [ ENGLISH ] = "~Ascending" ;
+ Text [ norwegian ] = "St~igende" ;
+ Text [ italian ] = "~Crescente" ;
+ Text [ portuguese_brazilian ] = "~Ascendente" ;
+ Text [ portuguese ] = "~Ascendente" ;
+ Text [ finnish ] = "~Nouseva" ;
+ Text [ danish ] = "Stigende" ;
+ Text [ french ] = "~Croissant" ;
+ Text [ swedish ] = "Sti~gande" ;
+ Text [ dutch ] = "~Oplopend" ;
+ Text [ spanish ] = "A~scendente" ;
+ Text [ english_us ] = "Ascending" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "µÝÔö";
+ Text[ russian ] = "Ïî âîçðàñòàíèþ";
+ Text[ polish ] = "Rosn¹co";
+ Text[ japanese ] = "¸‡";
+ Text[ chinese_traditional ] = "»¼¼W";
+ Text[ arabic ] = "ÊÕÇÚÏí";
+ Text[ greek ] = "Áýîïõóá";
+ Text[ korean ] = "¿À¸§Â÷¼ø";
+ Text[ turkish ] = "Arta~n";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_DN2
+ {
+ Pos = MAP_APPFONT ( 155 , 62 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Ab~steigend" ;
+ Text [ ENGLISH ] = "~Descending" ;
+ Text [ norwegian ] = "~Synkende" ;
+ Text [ italian ] = "~Decrescente" ;
+ Text [ portuguese_brazilian ] = "~Descendente" ;
+ Text [ portuguese ] = "~Descendente" ;
+ Text [ finnish ] = "~Laskeva" ;
+ Text [ danish ] = "Faldende" ;
+ Text [ french ] = "~Décroissant" ;
+ Text [ swedish ] = "Fa~llande" ;
+ Text [ dutch ] = "~Aflopend" ;
+ Text [ spanish ] = "Desc~endente" ;
+ Text [ english_us ] = "Descending" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "µÝ¼õ";
+ Text[ russian ] = "Ïî óáûâàíèþ";
+ Text[ polish ] = "Malej¹co";
+ Text[ japanese ] = "~‡";
+ Text[ chinese_traditional ] = "»¼´î";
+ Text[ arabic ] = "ÊäÇÒáí";
+ Text[ greek ] = "Öèßíïõóá";
+ Text[ korean ] = "³»¸²Â÷¼ø";
+ Text[ turkish ] = "A~rtan";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_KEY3
+ {
+ Pos = MAP_APPFONT ( 12 , 81 ) ;
+ Size = MAP_APPFONT ( 49 , 8 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Schlüssel ~3 : Schl³ssel ~3 */
+ Text = "Schlüssel ~3" ;
+ Text [ ENGLISH ] = "Key ~3" ;
+ Text [ norwegian ] = "Tast ~3" ;
+ Text [ italian ] = "Chiave ~3" ;
+ Text [ portuguese_brazilian ] = "Tecla ~3" ;
+ Text [ portuguese ] = "Tecla ~3" ;
+ Text [ finnish ] = "Avain ~3" ;
+ Text [ danish ] = "Nøgle 3" ;
+ Text [ french ] = "Critère ~3" ;
+ Text [ swedish ] = "Nyckel ~3" ;
+ Text [ dutch ] = "Sleutel ~3" ;
+ Text [ spanish ] = "Clave ~3" ;
+ Text [ english_us ] = "Key ~3" ;
+ Text[ chinese_simplified ] = "ÃÜÂë 3(~3)";
+ Text[ russian ] = "Êëþ÷ ~3";
+ Text[ polish ] = "Klucz 3";
+ Text[ japanese ] = "·° 3";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "±K½X ~3";
+ Text[ arabic ] = "ãÝÊÇÍ 3";
+ Text[ greek ] = "Êëåéäß ~3";
+ Text[ korean ] = "Å° 3";
+ Text[ turkish ] = "Anahtar ~3";
+ };
+ NumericField ED_KEY3
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 66 , 79 ) ;
+ Size = MAP_APPFONT ( 25 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 99 ;
+ SpinSize = 1 ;
+ };
+ ListBox DLB_KEY3
+ {
+ Pos = MAP_APPFONT ( 96 , 79 ) ;
+ Size = MAP_APPFONT ( 55 , 45 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ CurPos = 0 ;
+ StringList =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ ENGLISH ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ norwegian ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ italian ] =
+ {
+ < "alfanumerica" ; > ;
+ < "numerica" ; > ;
+ };
+ StringList [ portuguese_brazilian ] =
+ {
+ < "alfanumérico" ; > ;
+ < "numérico" ; > ;
+ };
+ StringList [ portuguese ] =
+ {
+ < "alfanumérico" ; > ;
+ < "numérico" ; > ;
+ };
+ StringList [ finnish ] =
+ {
+ < "alphanumerisch" ; > ;
+ < "numerisch" ; > ;
+ };
+ StringList [ danish ] =
+ {
+ < "alfanumerisk" ; > ;
+ < "numerisk" ; > ;
+ };
+ StringList [ french ] =
+ {
+ < "alphanumérique" ; > ;
+ < "numérique" ; > ;
+ };
+ StringList [ swedish ] =
+ {
+ < "alfanumerisk" ; > ;
+ < "numerisk" ; > ;
+ };
+ StringList [ dutch ] =
+ {
+ < "alfanumeriek" ; > ;
+ < "numeriek" ; > ;
+ };
+ StringList [ spanish ] =
+ {
+ < "alfanumérica" ; > ;
+ < "numérica" ; > ;
+ };
+ StringList [ english_us ] =
+ {
+ < "alphanumeric" ; > ;
+ < "numeric" ; > ;
+ };
+ StringList [ chinese_simplified ] =
+ {
+ < "×Öĸ" ; > ;
+ < "Êý×Ö" ; > ;
+ };
+ StringList [ russian ] =
+ {
+ < "àëôàâèòíî-öèôðîâîé" ; > ;
+ < "öèôðîâîé" ; > ;
+ };
+ StringList [ polish ] =
+ {
+ < "alfanumeryczny" ; > ;
+ < "numeryczny" ; > ;
+ };
+ StringList [ japanese ] =
+ {
+ < "±Ù̧Íޯć" ; > ;
+ < "”Žš" ; > ;
+ };
+ StringList [ chinese_traditional ] =
+ {
+ < "¦r¥À" ; > ;
+ < "¼Æ¦r" ; > ;
+ };
+ StringList [ arabic ] =
+ {
+ < "åÌÇÆí ÚÏÏí" ; > ;
+ < "ÚÏÏí" ; > ;
+ };
+ StringList [ greek ] =
+ {
+ < "áëöáñéèìçôéêÜ" ; > ;
+ < "áñéèìçôéêÜ" ; > ;
+ };
+ StringList [ korean ] =
+ {
+ < "¿µ¼ýÀÚ" ; > ;
+ < "¹øÈ£" ; > ;
+ };
+ StringList [ turkish ] =
+ {
+ < "alfanümerik" ; > ;
+ < "nümerik" ; > ;
+ };
+ StringList [ language_user1 ] =
+ {
+ < " " ; > ;
+ < " " ; > ;
+ };
+ };
+ RadioButton RB_UP3
+ {
+ Pos = MAP_APPFONT ( 155 , 79 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Aufstei~gend" ;
+ Text [ ENGLISH ] = "~Ascending" ;
+ Text [ norwegian ] = "St~igende" ;
+ Text [ italian ] = "~Crescente" ;
+ Text [ portuguese_brazilian ] = "~Ascendente" ;
+ Text [ portuguese ] = "~Ascendente" ;
+ Text [ finnish ] = "~Nouseva" ;
+ Text [ danish ] = "Stigende" ;
+ Text [ french ] = "~Croissant" ;
+ Text [ swedish ] = "Stiga~nde" ;
+ Text [ dutch ] = "~Oplopend" ;
+ Text [ spanish ] = "Ascende~nte" ;
+ Text [ english_us ] = "Ascending" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "µÝÔö";
+ Text[ russian ] = "Ïî âîçðàñòàíèþ";
+ Text[ polish ] = "Rosn¹co";
+ Text[ japanese ] = "¸‡";
+ Text[ chinese_traditional ] = "»¼¼W";
+ Text[ arabic ] = "ÊÕÇÚÏí";
+ Text[ greek ] = "Áýîïõóá";
+ Text[ korean ] = "¿À¸§Â÷¼ø";
+ Text[ turkish ] = "Artan";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_DN3
+ {
+ Pos = MAP_APPFONT ( 155 , 91 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Absteigen~d" ;
+ Text [ ENGLISH ] = "~Descending" ;
+ Text [ norwegian ] = "~Synkende" ;
+ Text [ italian ] = "~Decrescente" ;
+ Text [ portuguese_brazilian ] = "~Descendente" ;
+ Text [ portuguese ] = "~Descendente" ;
+ Text [ finnish ] = "~Laskeva" ;
+ Text [ danish ] = "Faldende" ;
+ Text [ french ] = "~Décroissant" ;
+ Text [ swedish ] = "Falland~e" ;
+ Text [ dutch ] = "~Aflopend" ;
+ Text [ spanish ] = "Des~cendente" ;
+ Text [ english_us ] = "Descending" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "µÝ¼õ";
+ Text[ russian ] = "Ïî óáûâàíèþ";
+ Text[ polish ] = "Malej¹co";
+ Text[ japanese ] = "~‡";
+ Text[ chinese_traditional ] = "»¼´î";
+ Text[ arabic ] = "ÊäÇÒáí";
+ Text[ greek ] = "Öèßíïõóá";
+ Text[ korean ] = "³»¸²Â÷¼ø";
+ Text[ turkish ] = "Aza~lan";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_SORT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 200 , 102 ) ;
+ Text = "Regel" ;
+ Text [ ENGLISH ] = "Rule" ;
+ Text [ norwegian ] = "+++Rule" ;
+ Text [ italian ] = "Criteri" ;
+ Text [ portuguese_brazilian ] = "Regra" ;
+ Text [ portuguese ] = "Regra" ;
+ Text [ finnish ] = "Sääntö" ;
+ Text [ danish ] = "Kriterier" ;
+ Text [ french ] = "Règle" ;
+ Text [ swedish ] = "Regel" ;
+ Text [ dutch ] = "Rij" ;
+ Text [ spanish ] = "Regla" ;
+ Text [ english_us ] = "Sort criteria" ;
+ Text[ chinese_simplified ] = "ÅÅÐò¹æÔò";
+ Text[ russian ] = "Ïîðÿäîê ñîðòèðîâêè";
+ Text[ polish ] = "Regu³a";
+ Text[ japanese ] = "ðŒ";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "±Æ§Ç³W«h";
+ Text[ arabic ] = "ÇáÞæÇÚÏ";
+ Text[ greek ] = "ÊñéôÞñéï";
+ Text[ korean ] = "Á¤·Ä ±âÁØ";
+ Text[ turkish ] = "Kural";
+ };
+ RadioButton RB_COL
+ {
+ Pos = MAP_APPFONT ( 12 , 120 ) ;
+ Size = MAP_APPFONT ( 38 , 10 ) ;
+ Text = "S~palten" ;
+ Text [ ENGLISH ] = "~Columns" ;
+ Text [ norwegian ] = "~Columns" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "~Colunas" ;
+ Text [ portuguese ] = "~Colunas" ;
+ Text [ finnish ] = "~Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "C~olonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "~Kolommen" ;
+ Text [ spanish ] = "Co~lumnas" ;
+ Text [ english_us ] = "Col~umns" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ÁÐ(~L)";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "~Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý(~L)";
+ Text[ chinese_traditional ] = "Äæ(~L)";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­(~U)";
+ Text[ turkish ] = "S~ütun";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_ROW
+ {
+ Pos = MAP_APPFONT ( 12 , 133 ) ;
+ Size = MAP_APPFONT ( 34 , 10 ) ;
+ Text = "~Zeilen" ;
+ Text [ ENGLISH ] = "~Lines" ;
+ Text [ norwegian ] = "~Linjer" ;
+ Text [ italian ] = "R~ighe" ;
+ Text [ portuguese_brazilian ] = "~Linhas" ;
+ Text [ portuguese ] = "~Linhas" ;
+ Text [ finnish ] = "~Viivat" ;
+ Text [ danish ] = "Rækker" ;
+ Text [ french ] = "~Lignes" ;
+ Text [ swedish ] = "~Rader" ;
+ Text [ dutch ] = "~Rijen" ;
+ Text [ spanish ] = "~Filas" ;
+ Text [ english_us ] = "~Rows" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "ÐÐ(~R)";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s(~R)";
+ Text[ chinese_traditional ] = "¦æ(~R)";
+ Text[ arabic ] = "ÕÝæÝ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "¿­(~R)";
+ Text[ turkish ] = "~Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_DIR
+ {
+ Pos = MAP_APPFONT ( 6 , 108 ) ;
+ Size = MAP_APPFONT ( 98 , 42 ) ;
+ Text = "Richtung" ;
+ Text [ ENGLISH ] = "Direction" ;
+ Text [ norwegian ] = "Retning" ;
+ Text [ italian ] = "Direzione" ;
+ Text [ portuguese_brazilian ] = "Direção" ;
+ Text [ portuguese ] = "Direcção" ;
+ Text [ finnish ] = "Suunta" ;
+ Text [ danish ] = "Retning" ;
+ Text [ french ] = "Direction" ;
+ Text [ swedish ] = "Riktning" ;
+ Text [ dutch ] = "Richting" ;
+ Text [ spanish ] = "Dirección" ;
+ Text [ english_us ] = "Direction" ;
+ Text[ chinese_simplified ] = "·½Ïò";
+ Text[ russian ] = "Íàïðàâëåíèå";
+ Text[ polish ] = "Kierunek";
+ Text[ japanese ] = "•ûŒü";
+ Text[ chinese_traditional ] = "¤è¦V";
+ Text[ arabic ] = "ÇáÇÊÌÇå";
+ Text[ greek ] = "Ðñïóáíáôïëéóìüò";
+ Text[ korean ] = "¹æÇâ";
+ Text[ turkish ] = "Yön";
+ Text[ language_user1 ] = " ";
+ };
+/* GroupBox GB_ORDER
+ {
+ Pos = MAP_APPFONT ( 59 , 76 ) ;
+ Size = MAP_APPFONT ( 58 , 42 ) ;
+ Text = "Reihenfolge" ;
+ Text [ ENGLISH ] = "Order" ;
+ Text [ norwegian ] = "Rekkefølge" ;
+ Text [ italian ] = "Ordine" ;
+ Text [ portuguese_brazilian ] = "Ordem" ;
+ Text [ portuguese ] = "Ordem" ;
+ Text [ finnish ] = "Järjestys" ;
+ Text [ danish ] = "Rækkefølge" ;
+ Text [ french ] = "Ordre" ;
+ Text [ swedish ] = "Ordning" ;
+ Text [ dutch ] = "Volgorde" ;
+ Text [ spanish ] = "Orden" ;
+ Text [ english_us ] = "Order" ;
+ };*/
+ RadioButton RB_TAB
+ {
+ Pos = MAP_APPFONT ( 113 , 120 ) ;
+ Size = MAP_APPFONT ( 44 , 9 ) ;
+ Text = "~Tabulator" ;
+ Text [ ENGLISH ] = "~Tab" ;
+ Text [ norwegian ] = "~Tab" ;
+ Text [ italian ] = "~Tabulazione" ;
+ Text [ portuguese_brazilian ] = "~Tabulação" ;
+ Text [ portuguese ] = "~Tabulações" ;
+ Text [ finnish ] = "~Sarkain" ;
+ Text [ danish ] = "Tabulator" ;
+ Text [ french ] = "~Tabulation" ;
+ Text [ swedish ] = "~Tabulator" ;
+ Text [ dutch ] = "Ta~b" ;
+ Text [ spanish ] = "~Tabulación" ;
+ Text [ english_us ] = "~Tabs" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "ÖƱí·û(~T)";
+ Text[ russian ] = "Òàáóëÿöèÿ";
+ Text[ polish ] = "Tabulator";
+ Text[ japanese ] = "ÀÌÞ(~T)";
+ Text[ chinese_traditional ] = "»sªí²Å(~T)";
+ Text[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ Text[ greek ] = "ÓôçëïèÝôçò";
+ Text[ korean ] = "ÅÇ(~T)";
+ Text[ turkish ] = "~Sekmeler";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_TABCH
+ {
+ Pos = MAP_APPFONT ( 113 , 133 ) ;
+ Size = MAP_APPFONT ( 38 , 10 ) ;
+ Text = "Z~eichen" ;
+ Text [ ENGLISH ] = "~Char." ;
+ Text [ norwegian ] = "~Kull." ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "~Caracter" ;
+ Text [ portuguese ] = "~Caracteres" ;
+ Text [ finnish ] = "~Merkki" ;
+ Text [ danish ] = "Tegn" ;
+ Text [ french ] = "C~aractère" ;
+ Text [ swedish ] = "Te~cken" ;
+ Text [ dutch ] = "~Teken" ;
+ Text [ spanish ] = "Ca~rácter" ;
+ Text [ english_us ] = "~Character" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "×Ö·û(~H)";
+ Text[ russian ] = "Çíàê";
+ Text[ polish ] = "Znak";
+ Text[ japanese ] = "‹L†(~H)";
+ Text[ chinese_traditional ] = "¦r¤¸(~H)";
+ Text[ arabic ] = "ÃÍÑÝ";
+ Text[ greek ] = "×áñáêôÞñåò";
+ Text[ korean ] = "¹®ÀÚ(~C)";
+ Text[ turkish ] = "~Karakter";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_TABCH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 195 , 133 ) ;
+ Size = MAP_APPFONT ( 8 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ };
+ GroupBox GB_DELIM
+ {
+ Pos = MAP_APPFONT ( 107 , 108 ) ;
+ Size = MAP_APPFONT ( 99 , 42 ) ;
+ Text = "Trenner" ;
+ Text [ ENGLISH ] = "Delimiter" ;
+ Text [ norwegian ] = "Skilletegn" ;
+ Text [ italian ] = "Separatore" ;
+ Text [ portuguese_brazilian ] = "Delimitador" ;
+ Text [ portuguese ] = "Separador" ;
+ Text [ finnish ] = "Erotin" ;
+ Text [ danish ] = "Separator" ;
+ Text [ french ] = "Séparateur" ;
+ Text [ swedish ] = "Avgränsare" ;
+ Text [ dutch ] = "Scheidingsteken" ;
+ Text [ spanish ] = "Separador" ;
+ Text [ english_us ] = "Separator" ;
+ Text[ chinese_simplified ] = "·Ö¸ô·û";
+ Text[ russian ] = "Ðàçäåëèòåëü";
+ Text[ polish ] = "Separator";
+ Text[ japanese ] = "‹æØ‚è‹L†";
+ Text[ chinese_traditional ] = "¤À¹j²Å";
+ Text[ arabic ] = "ÇáÝÇÕá";
+ Text[ greek ] = "Äéá÷ùñéóôéêü";
+ Text[ korean ] = "±¸ºÐÀÚ";
+ Text[ turkish ] = "Ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_ROW
+ {
+ Text = "Zeile" ;
+ Text [ ENGLISH ] = "Row" ;
+ Text [ norwegian ] = "Row" ;
+ Text [ italian ] = "Riga" ;
+ Text [ portuguese_brazilian ] = "Fileira" ;
+ Text [ portuguese ] = "Linha" ;
+ Text [ finnish ] = "Rivi" ;
+ Text [ danish ] = "Række" ;
+ Text [ french ] = "Ligne" ;
+ Text [ swedish ] = "Rad" ;
+ Text [ dutch ] = "Rij" ;
+ Text [ spanish ] = "Filas" ;
+ Text [ english_us ] = "Rows" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêà";
+ Text[ polish ] = "Wiersz";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÕÝ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_COL
+ {
+ Text = "Spalte" ;
+ Text [ ENGLISH ] = "Column" ;
+ Text [ norwegian ] = "Column" ;
+ Text [ italian ] = "Colonna" ;
+ Text [ portuguese_brazilian ] = "Coluna" ;
+ Text [ portuguese ] = "Coluna" ;
+ Text [ finnish ] = "Sarake" ;
+ Text [ danish ] = "Kolonne" ;
+ Text [ french ] = "Colonne" ;
+ Text [ swedish ] = "Kolumn" ;
+ Text [ dutch ] = "Kolom" ;
+ Text [ spanish ] = "Columna" ;
+ Text [ english_us ] = "Column" ;
+ Text[ chinese_simplified ] = "ÁÐ";
+ Text[ russian ] = "Êîëîíêà";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "ÅÅÐò";
+ Text[ russian ] = "Ñîðòèðîâêà";
+ Text[ polish ] = "Sortuj";
+ Text[ japanese ] = "•À‚בւ¦";
+ Text[ chinese_traditional ] = "±Æ§Ç";
+ Text[ arabic ] = "ÝÑÒ";
+ Text[ greek ] = "Ôáîéíüìçóç";
+ Text[ korean ] = "Á¤·Ä";
+ Text[ turkish ] = "Sýrala";
+ Text[ language_user1 ] = " ";
+};
+InfoBox MSG_SRTERR
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ MESSAGE = "Selektion konnte nicht sortiert werden" ;
+ MESSAGE [ English ] = "Cannot sort selection" ;
+ MESSAGE [ norwegian ] = "Kan ikke sortere utvalget" ;
+ MESSAGE [ italian ] = "Impossibile ordinare la selezione" ;
+ MESSAGE [ portuguese_brazilian ] = "Não posso ordenar seleção" ;
+ MESSAGE [ portuguese ] = "Impossível ordenar selecção" ;
+ MESSAGE [ finnish ] = "Valittuja tietoja ei voi lajitella" ;
+ MESSAGE [ danish ] = "Kan ikke sortere det markerede" ;
+ MESSAGE [ french ] = "Impossible de trier la sélection" ;
+ MESSAGE [ swedish ] = "Kan inte sortera markering" ;
+ MESSAGE [ dutch ] = "Selectie kan niet worden gesorteerd" ;
+ MESSAGE [ spanish ] = "No se pudo ordenar la selección" ;
+ MESSAGE [ english_us ] = "Cannot sort selection" ;
+ MESSAGE[ chinese_simplified ] = "ÎÞ·¨ÅÅÐòÑ¡ÔñµÄÄÚÈÝ¡£";
+ MESSAGE[ russian ] = "Ñîðòèðîâêà îòáîðà íåâîçìîæíà";
+ MESSAGE[ polish ] = "Nie mo¿na sortowaæ selekcji";
+ MESSAGE[ japanese ] = "‘I‘ð”͈͕͂À‚בւ¦o—ˆ‚Ü‚¹‚ñB";
+ MESSAGE[ chinese_traditional ] = "µLªk±Æ§Ç¿ï¾Üªº¤º®e¡C";
+ MESSAGE[ arabic ] = "ÊÚÐÑ ÝÑÒ ÇáÊÍÏíÏ";
+ MESSAGE[ greek ] = "Ç ôáîéíüìçóç ôçò åðéëïãÞò äåí Þôáí äõíáôÞ";
+ MESSAGE[ korean ] = "¼±ÅÃÀ» Á¤·ÄÇÒ¼ö ¾ø½À´Ï´Ù.";
+ MESSAGE[ turkish ] = "Seçim sýralanamadý";
+ MESSAGE[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/mui b/sw/source/ui/mui
new file mode 100644
index 000000000000..0f96b21ac2d0
--- /dev/null
+++ b/sw/source/ui/mui
@@ -0,0 +1,110 @@
+########################################################################
+# makescript UI; OK 8.12.1992
+########################################################################
+set DEF_MAKE_SCRIPT nmake
+
+FOR i IN {2}
+ If "{i}" =~ /CO/; set DEF_MAKE_SCRIPT cmake
+ Break; End
+ If "{i}" =~ /FU/; set DEF_MAKE_SCRIPT nmake
+ Break; End
+END
+
+echo "-------------------------------"
+echo "MUi © StarDivision 1992"
+echo {DEF_MAKE_SCRIPT} {1}
+echo "-------------------------------"
+
+############################################################
+set exit 0
+export exit
+set curdir `cd`
+
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:app
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:cctrl
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:chrdlg
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:config
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:dbui
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:dialog
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:dochdl
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:docvw
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:fldui
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:fmtui
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:frmdlg
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:globdoc
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:grfdlg
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:index
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:lingu
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:misc
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:prndlg
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:ribbar
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:shells
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:table
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:tabwin
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:uiview
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:utlui
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:window
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:wizard
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd "{PRJ_ROOT}SW:SOURCE:UI:wrtsh
+{DEF_MAKE_SCRIPT} {Parameters}
+
+cd {curdir}
+
+beep 1c,1
+beep 1d,1
+beep 1e,1
+beep 1f,1
+beep 1g,1
+beep 1a,1
+############################################################
diff --git a/sw/source/ui/ribbar/conarc.cxx b/sw/source/ui/ribbar/conarc.cxx
new file mode 100644
index 000000000000..fac5c6951238
--- /dev/null
+++ b/sw/source/ui/ribbar/conarc.cxx
@@ -0,0 +1,257 @@
+/*************************************************************************
+ *
+ * $RCSfile: conarc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "wrtsh.hxx"
+#include "drawbase.hxx"
+#include "conarc.hxx"
+
+
+
+/*************************************************************************
+|*
+|* Konstruktor
+|*
+\************************************************************************/
+
+
+
+ConstArc::ConstArc(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView)
+ : SwDrawBase(pWrtShell, pEditWin, pSwView), nAnzButUp(0)
+{
+}
+
+/*************************************************************************
+|*
+|* MouseButtonDown-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstArc::MouseButtonDown( const MouseEvent& rMEvt )
+{
+ BOOL bReturn;
+
+ if ((bReturn = SwDrawBase::MouseButtonDown(rMEvt)) == TRUE)
+ {
+ if (!nAnzButUp)
+ aStartPnt = pWin->PixelToLogic(rMEvt.GetPosPixel());
+ }
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* MouseButtonUp-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstArc::MouseButtonUp( const MouseEvent& rMEvt )
+{
+ BOOL bReturn = FALSE;
+
+ if ((pSh->IsDrawCreate() || pWin->IsDrawAction()) && rMEvt.IsLeft())
+ {
+ Point aPnt(pWin->PixelToLogic(rMEvt.GetPosPixel()));
+ if (!nAnzButUp && aPnt == aStartPnt)
+ {
+ SwDrawBase::MouseButtonUp(rMEvt);
+ bReturn = TRUE;
+ }
+ else
+ { nAnzButUp++;
+
+ if (nAnzButUp == 3) // Kreisbogenerzeugung beendet
+ {
+ SwDrawBase::MouseButtonUp(rMEvt);
+ nAnzButUp = 0;
+ bReturn = TRUE;
+ }
+ else
+ pSh->EndCreate(SDRCREATE_NEXTPOINT);
+ }
+ }
+/* else if ( pView->IsCreateObj() && rMEvt.IsRight() )
+ {
+ pView->EndCreateObj( SDRCREATE_FORCEEND );
+ bReturn = TRUE;
+ }*/
+
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* Function aktivieren
+|*
+\************************************************************************/
+
+
+
+void ConstArc::Activate(const USHORT nSlotId)
+{
+ switch (nSlotId)
+ {
+ case SID_DRAW_ARC:
+ pWin->SetDrawMode(OBJ_CARC);
+ break;
+ case SID_DRAW_PIE:
+ pWin->SetDrawMode(OBJ_SECT);
+ break;
+ case SID_DRAW_CIRCLECUT:
+ pWin->SetDrawMode(OBJ_CCUT);
+ break;
+ default:
+ pWin->SetDrawMode(OBJ_NONE);
+ break;
+ }
+
+ SwDrawBase::Activate(nSlotId);
+}
+
+/*************************************************************************
+|*
+|* Funktion deaktivieren
+|*
+\************************************************************************/
+
+void ConstArc::Deactivate()
+{
+ nAnzButUp = 0;
+
+ SwDrawBase::Deactivate();
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.24 2000/09/18 16:06:00 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.23 1997/11/24 13:53:58 MA
+ includes
+
+
+ Rev 1.22 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.21 03 Nov 1997 13:24:22 MA
+ precomp entfernt
+
+ Rev 1.20 05 Sep 1997 11:59:36 MH
+ chg: header
+
+ Rev 1.19 04 Feb 1997 15:20:32 OM
+ Bugs in Selektionsmodi behoben
+
+ Rev 1.18 28 Aug 1996 13:39:26 OS
+ includes
+
+ Rev 1.17 14 Aug 1996 11:31:02 JP
+ svdraw.hxx entfernt
+
+ Rev 1.16 23 May 1996 08:50:16 OS
+ ein define weniger
+
+ Rev 1.15 07 Mar 1996 14:27:30 HJS
+ 2 defines zu viel
+
+ Rev 1.14 24 Nov 1995 16:58:04 OM
+ PCH->PRECOMPILED
+
+ Rev 1.13 15 Nov 1995 18:35:26 OM
+ Virtuelle Fkt rausgeworfen
+
+ Rev 1.12 21 Sep 1995 18:38:28 OM
+ Selektionsmodi ueberarbeitet
+
+ Rev 1.11 20 Sep 1995 10:07:02 OM
+ Control-Browser: Stati gefixt
+
+ Rev 1.10 09 Aug 1995 16:55:38 MA
+ drawing-undo-header rein
+
+ Rev 1.9 21 Jun 1995 16:15:26 OS
+ SID_TOOL => SID_DRAW
+
+ Rev 1.8 24 Apr 1995 12:44:36 OM
+ Absturz bei Delete gefixt
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/ribbar/conform.cxx b/sw/source/ui/ribbar/conform.cxx
new file mode 100644
index 000000000000..0fd7e4464b22
--- /dev/null
+++ b/sw/source/ui/ribbar/conform.cxx
@@ -0,0 +1,193 @@
+/*************************************************************************
+ *
+ * $RCSfile: conform.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _SVX_FMGLOB_HXX //autogen
+#include <svx/fmglob.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _SVX_FMSHELL_HXX //autogen
+#include <svx/fmshell.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "wrtsh.hxx"
+#include "drawbase.hxx"
+#include "conform.hxx"
+
+extern BOOL bNoInterrupt; // in mainwn.cxx
+
+/*************************************************************************
+|*
+|* Konstruktor
+|*
+\************************************************************************/
+
+
+ConstFormControl::ConstFormControl(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
+ SwDrawBase(pWrtShell, pEditWin, pSwView)
+{
+ bInsForm = TRUE;
+}
+
+/*************************************************************************
+|*
+|* MouseButtonDown-event
+|*
+\************************************************************************/
+
+
+BOOL ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt)
+{
+ BOOL bReturn = FALSE;
+
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ pSdrView->SetOrtho(rMEvt.IsShift());
+ pSdrView->SetAngleSnapEnabled(rMEvt.IsShift());
+
+ if (rMEvt.IsMod2())
+ {
+ pSdrView->SetCreate1stPointAsCenter(TRUE);
+ pSdrView->SetResizeAtCenter(TRUE);
+ }
+ else
+ {
+ pSdrView->SetCreate1stPointAsCenter(FALSE);
+ pSdrView->SetResizeAtCenter(FALSE);
+ }
+
+ SdrViewEvent aVEvt;
+ SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
+
+ // Nur neues Objekt, wenn nicht im Basismode (bzw reinem Selektionsmode)
+ if (rMEvt.IsLeft() && !pWin->IsDrawAction() &&
+ (eHit == SDRHIT_UNMARKEDOBJECT || eHit == SDRHIT_NONE || pSh->IsDrawCreate()))
+ {
+ bNoInterrupt = TRUE;
+ pWin->CaptureMouse();
+
+ pWin->SetPointer(Pointer(POINTER_DRAW_RECT));
+
+ aStartPos = pWin->PixelToLogic(rMEvt.GetPosPixel());
+ bReturn = pSh->BeginCreate(pWin->GetDrawMode(), FmFormInventor, aStartPos);
+
+ if (bReturn)
+ pWin->SetDrawAction(TRUE);
+ }
+ else
+ bReturn = SwDrawBase::MouseButtonDown(rMEvt);
+
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* Function aktivieren
+|*
+\************************************************************************/
+
+
+void ConstFormControl::Activate(const USHORT nSlotId)
+{
+ pWin->SetDrawMode(nSlotId);
+ SwDrawBase::Activate(nSlotId);
+ pSh->GetDrawView()->SetCurrentObj(nSlotId);
+
+ pWin->SetPointer(Pointer(POINTER_DRAW_RECT));
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.4 2000/09/18 16:06:00 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.3 1998/03/16 11:03:42 MA
+ Verbindung FormShell->DrawView immer herstellen
+
+
+ Rev 1.2 16 Mar 1998 12:03:42 MA
+ Verbindung FormShell->DrawView immer herstellen
+
+ Rev 1.1 11 Mar 1998 17:12:08 OM
+ DB-FormShell
+
+ Rev 1.0 10 Mar 1998 14:15:20 OM
+ Initial revision.
+
+*************************************************************************/
+
diff --git a/sw/source/ui/ribbar/conpoly.cxx b/sw/source/ui/ribbar/conpoly.cxx
new file mode 100644
index 000000000000..ff74bf0de29b
--- /dev/null
+++ b/sw/source/ui/ribbar/conpoly.cxx
@@ -0,0 +1,304 @@
+/*************************************************************************
+ *
+ * $RCSfile: conpoly.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVDMARK_HXX //autogen
+#include <svx/svdmark.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDOPATH_HXX //autogen
+#include <svx/svdopath.hxx>
+#endif
+
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "wrtsh.hxx"
+#include "drawbase.hxx"
+#include "conpoly.hxx"
+
+
+/************************************************************************/
+
+#define CLOSE_PIXDIST 5 // Pixelabstand, ab dem geschlossen wird
+
+/*************************************************************************
+|*
+|* Konstruktor
+|*
+\************************************************************************/
+
+
+
+ConstPolygon::ConstPolygon(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
+ SwDrawBase(pWrtShell, pEditWin, pSwView)
+{
+}
+
+/*************************************************************************
+|*
+|* MouseButtonDown-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt)
+{
+ BOOL bReturn;
+
+ if ((bReturn = SwDrawBase::MouseButtonDown(rMEvt)) == TRUE)
+ aLastPos = rMEvt.GetPosPixel();
+
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* MouseMove-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstPolygon::MouseMove(const MouseEvent& rMEvt)
+{
+ BOOL bReturn = FALSE;
+
+ bReturn = SwDrawBase::MouseMove(rMEvt);
+
+ return bReturn;
+}
+
+/*************************************************************************
+|*
+|* MouseButtonUp-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
+{
+ BOOL bReturn = FALSE;
+
+ if (pSh->IsDrawCreate())
+ {
+ if (rMEvt.IsLeft() && rMEvt.GetClicks() == 1 &&
+ pWin->GetDrawMode() != OBJ_FREELINE)
+ {
+ if (!pSh->EndCreate(SDRCREATE_NEXTPOINT))
+ {
+ pSh->BreakCreate();
+ EnterSelectMode(rMEvt);
+ return TRUE;
+ }
+ }
+ else
+ {
+ Point aPnt(pWin->PixelToLogic(rMEvt.GetPosPixel()));
+ bReturn = SwDrawBase::MouseButtonUp(rMEvt);
+
+ if (!(bReturn && (aPnt == aStartPos || rMEvt.IsRight())))
+ {
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ long nCloseDist = pWin->PixelToLogic(Size(CLOSE_PIXDIST, 0)).Width();
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if (rMarkList.GetMark(0))
+ {
+ SdrPathObj* pPathObj = (SdrPathObj *)rMarkList.GetMark(0)->GetObj();
+ const XPolyPolygon& rXPP = pPathObj->GetPathPoly();
+ if (rXPP.Count() == 1)
+ {
+ USHORT nPntMax = rXPP[0].GetPointCount() - 1;
+ Point aDiff = rXPP[0][nPntMax] - rXPP[0][0];
+ long nSqDist = aDiff.X() * aDiff.X() + aDiff.Y() * aDiff.Y();
+ nCloseDist *= nCloseDist;
+
+ if (nSqDist <= nCloseDist && !pPathObj->IsClosed())
+ pPathObj->ToggleClosed(0);
+ }
+ }
+ }
+ }
+ }
+ else
+ bReturn = SwDrawBase::MouseButtonUp(rMEvt);
+
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* Function aktivieren
+|*
+\************************************************************************/
+
+
+
+void ConstPolygon::Activate(const USHORT nSlotId)
+{
+ switch (nSlotId)
+ {
+ case SID_DRAW_POLYGON_NOFILL:
+ pWin->SetDrawMode(OBJ_PLIN);
+ break;
+
+ case SID_DRAW_BEZIER_NOFILL:
+ pWin->SetDrawMode(OBJ_PATHLINE);
+ break;
+
+ case SID_DRAW_FREELINE_NOFILL:
+ pWin->SetDrawMode(OBJ_FREELINE);
+ break;
+
+ default:
+ break;
+ }
+
+ SwDrawBase::Activate(nSlotId);
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.29 2000/09/18 16:06:01 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.28 1997/11/28 19:14:18 MA
+ includes
+
+
+ Rev 1.27 28 Nov 1997 20:14:18 MA
+ includes
+
+ Rev 1.26 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.25 03 Nov 1997 13:24:20 MA
+ precomp entfernt
+
+ Rev 1.24 05 Sep 1997 11:57:52 MH
+ chg: header
+
+ Rev 1.23 13 Aug 1997 12:18:56 OM
+ #42383# Selektion von Punkten im Konstruktionsmode
+
+ Rev 1.22 20 Mar 1997 12:14:28 OM
+ GPF in Beziermode behoben
+
+ Rev 1.21 30 Jan 1997 11:48:08 OM
+ Freihandzeichnen
+
+ Rev 1.20 29 Jan 1997 11:22:08 OM
+ Freihandzeichnen
+
+ Rev 1.19 23 Jan 1997 16:07:06 OM
+ Neuer Polygon Zeichenmode
+
+ Rev 1.18 16 Jan 1997 12:35:58 OM
+ Neuer Objekttyp: Bezier
+
+ Rev 1.17 28 Aug 1996 13:39:32 OS
+ includes
+
+ Rev 1.16 14 Aug 1996 11:31:00 JP
+ svdraw.hxx entfernt
+
+ Rev 1.15 24 Nov 1995 16:58:06 OM
+ PCH->PRECOMPILED
+
+ Rev 1.14 15 Nov 1995 18:35:28 OM
+ Virtuelle Fkt rausgeworfen
+
+ Rev 1.13 10 Aug 1995 18:15:00 OM
+ CreateMode geaendert
+
+ Rev 1.12 09 Aug 1995 16:53:02 MA
+ drawing-undo-header rein
+
+ Rev 1.11 20 Jul 1995 19:26:38 OM
+ Umbenamsung obj_pathline->obj_plin
+
+ Rev 1.10 06 May 1995 20:38:04 OM
+ Polygonerzeugung bei Einfachklick
+
+ Rev 1.9 21 Apr 1995 02:18:44 ER
+ ToggleClosed erwartet jetzt ein long und kein Size() mehr
+
+ Rev 1.8 06 Apr 1995 20:15:56 OM
+ Polygon beenden mit rechter Maustaste
+
+ Rev 1.7 21 Mar 1995 00:47:02 ER
+ _svdorect_hxx definiert => _svdcapt_hxx definieren
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/ribbar/conrect.cxx b/sw/source/ui/ribbar/conrect.cxx
new file mode 100644
index 000000000000..cba447d61d26
--- /dev/null
+++ b/sw/source/ui/ribbar/conrect.cxx
@@ -0,0 +1,338 @@
+/*************************************************************************
+ *
+ * $RCSfile: conrect.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef sdtacitm_hxx //autogen
+#include <svx/sdtacitm.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _SDTAGITM_HXX //autogen
+#include <svx/sdtagitm.hxx>
+#endif
+#ifndef SDTAKITM_HXX //autogen
+#include <svx/sdtakitm.hxx>
+#endif
+#ifndef _SDTADITM_HXX //autogen
+#include <svx/sdtaditm.hxx>
+#endif
+#ifndef _SDTAAITM_HXX //autogen
+#include <svx/sdtaaitm.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#include "cmdid.h"
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "wrtsh.hxx"
+#include "viewopt.hxx"
+#include "drawbase.hxx"
+#include "conrect.hxx"
+
+
+/*************************************************************************
+|*
+|* Konstruktor
+|*
+\************************************************************************/
+
+
+
+ConstRectangle::ConstRectangle(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
+ SwDrawBase(pWrtShell, pEditWin, pSwView),
+ bMarquee(FALSE)
+{
+}
+
+/*************************************************************************
+|*
+|* MouseButtonDown-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt)
+{
+ BOOL bReturn;
+
+ if ((bReturn = SwDrawBase::MouseButtonDown(rMEvt)) == TRUE
+ && pWin->GetDrawMode() == OBJ_CAPTION)
+ {
+ pView->NoRotate();
+ if (pView->IsDrawSelMode())
+ {
+ pView->FlipDrawSelMode();
+ pSh->GetDrawView()->SetFrameDragSingles(pView->IsDrawSelMode());
+ }
+ }
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* MouseButtonUp-event
+|*
+\************************************************************************/
+
+
+
+BOOL ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt)
+{
+ Point aPnt(pWin->PixelToLogic(rMEvt.GetPosPixel()));
+
+ BOOL bRet = SwDrawBase::MouseButtonUp(rMEvt);
+
+ if (bRet && pWin->GetDrawMode() == OBJ_TEXT)
+ {
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ if (bMarquee)
+ {
+ BOOL bNewMode = (::GetHtmlMode(pView->GetDocShell()) & HTMLMODE_ON) != 0;
+ pSh->ChgAnchor(FLY_IN_CNTNT);
+
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+
+ if (rMarkList.GetMark(0))
+ {
+ SdrObject* pObj = rMarkList.GetMark(0)->GetObj();
+
+ // die fuer das Scrollen benoetigten Attribute setzen
+ SfxItemSet aItemSet( pSdrView->GetModel()->GetItemPool(),
+ SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST);
+
+ aItemSet.Put( SdrTextAutoGrowWidthItem( FALSE ) );
+ aItemSet.Put( SdrTextAutoGrowHeightItem( FALSE ) );
+ aItemSet.Put( SdrTextAniKindItem( SDRTEXTANI_SCROLL ) );
+ aItemSet.Put( SdrTextAniDirectionItem( SDRTEXTANI_LEFT ) );
+ aItemSet.Put( SdrTextAniCountItem( 0 ) );
+ aItemSet.Put( SdrTextAniAmountItem((INT16)pWin->PixelToLogic(Size(2,1)).Width()) );
+ pObj->SetAttributes(aItemSet, FALSE);
+ }
+ }
+
+ pView->LeaveDrawCreate(); // In Selektionsmode wechseln
+
+ pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+
+ SdrPageView* pPV = pSdrView->GetPageViewPvNum(0);
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if (rMarkList.GetMark(0))
+ {
+ SdrObject* pObj = rMarkList.GetMark(0)->GetObj();
+
+ pView->BeginTextEdit(pObj, pPV, pWin, TRUE);
+ }
+ }
+ return bRet;
+}
+
+/*************************************************************************
+|*
+|* Function aktivieren
+|*
+\************************************************************************/
+
+
+
+void ConstRectangle::Activate(const USHORT nSlotId)
+{
+ bMarquee = FALSE;
+
+ switch (nSlotId)
+ {
+ case SID_DRAW_LINE:
+ pWin->SetDrawMode(OBJ_LINE);
+ break;
+ case SID_DRAW_RECT:
+ pWin->SetDrawMode(OBJ_RECT);
+ break;
+ case SID_DRAW_ELLIPSE:
+ pWin->SetDrawMode(OBJ_CIRC);
+ break;
+ case SID_DRAW_TEXT_MARQUEE:
+ bMarquee = TRUE;
+ case SID_DRAW_TEXT:
+ pWin->SetDrawMode(OBJ_TEXT);
+ break;
+
+ case SID_DRAW_CAPTION:
+ pWin->SetDrawMode(OBJ_CAPTION);
+ break;
+ default:
+ pWin->SetDrawMode(OBJ_NONE);
+ break;
+ }
+
+ SwDrawBase::Activate(nSlotId);
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.45 2000/09/18 16:06:01 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.44 2000/09/07 15:59:26 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.43 1998/06/09 13:34:00 OM
+ VC-Controls entfernt
+
+
+ Rev 1.42 09 Jun 1998 15:34:00 OM
+ VC-Controls entfernt
+
+ Rev 1.41 28 Nov 1997 20:05:50 MA
+ includes
+
+ Rev 1.40 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.39 18 Nov 1997 10:35:12 OM
+ Lauftext nur im HTML-Mode zeichengebunden einfuegen
+
+ Rev 1.38 03 Nov 1997 13:24:22 MA
+ precomp entfernt
+
+ Rev 1.37 05 Sep 1997 11:55:04 MH
+ chg: header
+
+ Rev 1.36 07 Apr 1997 13:39:28 MH
+ chg: header
+
+ Rev 1.35 07 Mar 1997 17:13:38 OM
+ Lauftext unendlich oft durchlaufen
+
+ Rev 1.34 07 Mar 1997 17:05:12 OM
+ Lauftext unendlich oft durchlaufen
+
+ Rev 1.33 24 Feb 1997 16:55:48 OM
+ Lauftext-Objekt sofort editieren
+
+ Rev 1.32 14 Feb 1997 14:00:34 OM
+ lauftextobjekt zeichengebunden
+
+ Rev 1.31 11 Feb 1997 14:03:32 OM
+ Lauftext im Webmode
+
+ Rev 1.30 10 Feb 1997 17:29:42 OM
+ Lauftext
+
+ Rev 1.29 09 Sep 1996 21:13:44 MH
+ Umstellungen wg. internal Compiler Errors
+
+ Rev 1.28 28 Aug 1996 13:39:22 OS
+ includes
+
+ Rev 1.27 14 Aug 1996 11:31:00 JP
+ svdraw.hxx entfernt
+
+ Rev 1.26 07 Aug 1996 14:59:24 JP
+ Umstellung fuer Upd. 330
+
+ Rev 1.25 24 Nov 1995 16:58:04 OM
+ PCH->PRECOMPILED
+
+ Rev 1.24 15 Nov 1995 18:35:28 OM
+ Virtuelle Fkt rausgeworfen
+
+ Rev 1.23 14 Nov 1995 17:36:56 OM
+ Cast entfernt
+
+ Rev 1.22 08 Nov 1995 15:29:48 OM
+ Invalidate-Reihenfolge geaendert
+
+ Rev 1.21 08 Nov 1995 14:15:50 OS
+ Change => Set
+
+ Rev 1.20 08 Nov 1995 10:35:42 OM
+ Invalidate optimiert
+
+ Rev 1.19 26 Oct 1995 16:41:36 OM
+ Leere Textobjekte beim Verlassen loeschen
+
+ Rev 1.18 08 Oct 1995 18:06:46 OM
+ Textobjekt nach einfuegen oeffnen
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/ribbar/drawbase.cxx b/sw/source/ui/ribbar/drawbase.cxx
new file mode 100644
index 000000000000..4710570f456d
--- /dev/null
+++ b/sw/source/ui/ribbar/drawbase.cxx
@@ -0,0 +1,873 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawbase.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <hintids.hxx>
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _SFXPTITEM_HXX //autogen
+#include <svtools/ptitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _FMTCLDS_HXX
+#include <fmtclds.hxx>
+#endif
+#ifndef _FRMFMT_HXX //autogen
+#include <frmfmt.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#include "cmdid.h"
+#include "basesh.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "drawbase.hxx"
+#include "edtwin.hxx"
+#include "caption.hxx"
+#include "swundo.hxx"
+
+extern BOOL bNoInterrupt; // in mainwn.cxx
+
+#define MINMOVE ((USHORT)pSh->GetOut()->PixelToLogic(Size(pSh->GetDrawView()->GetMarkHdlSizePixel()/2,0)).Width())
+
+
+/*************************************************************************
+|*
+|* Konstruktor
+|*
+\************************************************************************/
+
+
+SwDrawBase::SwDrawBase(SwWrtShell* pSwWrtShell, SwEditWin* pWindow, SwView* pSwView) :
+ pSh(pSwWrtShell),
+ pWin(pWindow),
+ pView(pSwView),
+ bInsForm(FALSE),
+ bCreateObj(TRUE)
+{
+ if ( !pSh->HasDrawView() )
+ pSh->MakeDrawView();
+}
+
+/*************************************************************************
+|*
+|* Destruktor
+|*
+\************************************************************************/
+
+__EXPORT SwDrawBase::~SwDrawBase()
+{
+ if (pView->GetWrtShellPtr()) // Im view-Dtor koennte die wrtsh bereits geloescht worden sein...
+ pSh->GetDrawView()->SetEditMode(TRUE);
+}
+
+/*************************************************************************
+|*
+|* MouseButtonDown-event
+|*
+\************************************************************************/
+
+
+BOOL SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
+{
+ BOOL bReturn = FALSE;
+
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ pSdrView->SetOrtho(rMEvt.IsShift());
+ pSdrView->SetAngleSnapEnabled(rMEvt.IsShift());
+
+ if (rMEvt.IsMod2())
+ {
+ pSdrView->SetCreate1stPointAsCenter(TRUE);
+ pSdrView->SetResizeAtCenter(TRUE);
+ }
+ else
+ {
+ pSdrView->SetCreate1stPointAsCenter(FALSE);
+ pSdrView->SetResizeAtCenter(FALSE);
+ }
+
+ SdrViewEvent aVEvt;
+ SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
+
+ // Nur neues Objekt, wenn nicht im Basismode (bzw reinem Selektionsmode)
+ if (rMEvt.IsLeft() && !pWin->IsDrawAction())
+ {
+ if (IsCreateObj() && (eHit == SDRHIT_UNMARKEDOBJECT || eHit == SDRHIT_NONE || pSh->IsDrawCreate()))
+ {
+ bNoInterrupt = TRUE;
+ pWin->CaptureMouse();
+
+ aStartPos = pWin->PixelToLogic(rMEvt.GetPosPixel());
+
+ bReturn = pSh->BeginCreate(pWin->GetDrawMode(), aStartPos);
+
+ SetDrawPointer();
+
+ if ( bReturn )
+ pWin->SetDrawAction(TRUE);
+ }
+ else if (!pSdrView->IsAction())
+ {
+ /**********************************************************************
+ * BEZIER-EDITOR
+ **********************************************************************/
+ pWin->CaptureMouse();
+ aStartPos = pWin->PixelToLogic(rMEvt.GetPosPixel());
+ UINT16 nEditMode = pWin->GetBezierMode();
+
+ if (eHit == SDRHIT_HANDLE && aVEvt.pHdl->GetKind() == HDL_BWGT)
+ {
+ /******************************************************************
+ * Handle draggen
+ ******************************************************************/
+ bNoInterrupt = TRUE;
+ bReturn = pSdrView->BegDragObj(aStartPos, (OutputDevice*) NULL, aVEvt.pHdl);
+ pWin->SetDrawAction(TRUE);
+ }
+ else if (eHit == SDRHIT_MARKEDOBJECT && nEditMode == SID_BEZIER_INSERT)
+ {
+ /******************************************************************
+ * Klebepunkt einfuegen
+ ******************************************************************/
+ bNoInterrupt = TRUE;
+ bReturn = pSdrView->BegInsObjPoint(aStartPos, rMEvt.IsMod1(), NULL, 0);
+ pWin->SetDrawAction(TRUE);
+ }
+ else if (eHit == SDRHIT_MARKEDOBJECT && rMEvt.IsMod1())
+ {
+ /******************************************************************
+ * Klebepunkt selektieren
+ ******************************************************************/
+ if (!rMEvt.IsShift())
+ pSdrView->UnmarkAllPoints();
+
+ bReturn = pSdrView->BegMarkPoints(aStartPos, (OutputDevice*) NULL);
+ pWin->SetDrawAction(TRUE);
+ }
+ else if (eHit == SDRHIT_MARKEDOBJECT && !rMEvt.IsShift() && !rMEvt.IsMod2())
+ {
+ /******************************************************************
+ * Objekt verschieben
+ ******************************************************************/
+ return FALSE;
+ }
+ else if (eHit == SDRHIT_HANDLE)
+ {
+ /******************************************************************
+ * Klebepunkt selektieren
+ ******************************************************************/
+ if (pSdrView->HasMarkablePoints() && (!pSdrView->IsPointMarked(*aVEvt.pHdl) || rMEvt.IsShift()))
+ {
+ SdrHdl* pHdl = NULL;
+
+ if (!rMEvt.IsShift())
+ {
+ pSdrView->UnmarkAllPoints();
+ pHdl = pSdrView->HitHandle(aStartPos, *pWin);
+ }
+ else
+ {
+ if (pSdrView->IsPointMarked(*aVEvt.pHdl))
+ {
+ bReturn = pSdrView->UnmarkPoint(*aVEvt.pHdl);
+ pHdl = NULL;
+ }
+ else
+ {
+ pHdl = pSdrView->HitHandle(aStartPos, *pWin);
+ }
+ }
+
+ if (pHdl)
+ {
+ bNoInterrupt = TRUE;
+ pSdrView->MarkPoint(*pHdl);
+// bReturn = pSdrView->BegDragObj(aStartPos, (OutputDevice*) NULL, pHdl);
+// pWin->SetDrawAction(TRUE);
+ }
+ }
+ }
+ else
+ {
+ /******************************************************************
+ * Objekt selektieren oder draggen
+ ******************************************************************/
+ if (pSh->IsObjSelectable(aStartPos) && eHit == SDRHIT_UNMARKEDOBJECT)
+ {
+ if (pSdrView->HasMarkablePoints())
+ pSdrView->UnmarkAllPoints();
+
+ bNoInterrupt = FALSE;
+ // Drag im edtwin verwenden
+ return FALSE;
+ }
+
+ bNoInterrupt = TRUE;
+
+ if (pSh->IsObjSelected())
+ {
+ if (!rMEvt.IsShift())
+ {
+ if (!pSdrView->HasMarkablePoints())
+ pSh->SelectObj(Point(LONG_MAX, LONG_MAX)); // Alles deselektieren
+ else
+ pSdrView->UnmarkAllPoints();
+ }
+ }
+ BOOL bMarked = FALSE;
+
+ if (!pSh->IsSelFrmMode())
+ pSh->EnterSelFrmMode(NULL);
+
+ if ((bReturn = pSh->BeginMark(aStartPos)) == TRUE)
+ pWin->SetDrawAction(TRUE);
+
+ SetDrawPointer();
+ }
+ }
+ }
+ return bReturn;
+}
+
+/*************************************************************************
+|*
+|* MouseMove-event
+|*
+\************************************************************************/
+
+
+BOOL SwDrawBase::MouseMove(const MouseEvent& rMEvt)
+{
+ SdrView *pSdrView = pSh->GetDrawView();
+ Point aPnt(pWin->PixelToLogic(rMEvt.GetPosPixel()));
+ BOOL bRet = FALSE;
+
+ if (IsCreateObj() && !pWin->IsDrawSelMode() && pSdrView->IsCreateObj())
+ {
+ pSdrView->SetOrtho(rMEvt.IsShift());
+ pSdrView->SetAngleSnapEnabled(rMEvt.IsShift());
+
+ pSh->MoveCreate(aPnt);
+ bRet = TRUE;
+ }
+ else if (pSdrView->IsAction() || pSdrView->IsInsObjPoint() || pSdrView->IsMarkPoints())
+ {
+ pSh->MoveMark(aPnt);
+ bRet = TRUE;
+ }
+
+ return (bRet);
+}
+
+/*************************************************************************
+|*
+|* MouseButtonUp-event
+|*
+\************************************************************************/
+
+
+BOOL SwDrawBase::MouseButtonUp(const MouseEvent& rMEvt)
+{
+ BOOL bReturn = FALSE;
+ BOOL bCheckShell = FALSE;
+ BOOL bAutoCap = FALSE;
+
+ Point aPnt(pWin->PixelToLogic(rMEvt.GetPosPixel()));
+
+ if (IsCreateObj() && pSh->IsDrawCreate() && !pWin->IsDrawSelMode())
+ {
+ if (aPnt == aStartPos || rMEvt.IsRight())
+ {
+ pSh->BreakCreate();
+ pView->LeaveDrawCreate();
+ }
+ else
+ {
+ if (pWin->GetDrawMode() == OBJ_NONE)
+ pSh->StartUndo(UNDO_INSERT);
+
+ pSh->EndCreate(SDRCREATE_FORCEEND);
+ if (pWin->GetDrawMode() == OBJ_NONE) // Textrahmen eingefuegt
+ {
+ bAutoCap = TRUE;
+ if(pWin->GetFrmColCount() > 1)
+ {
+ SfxItemSet aSet(pView->GetPool(),RES_COL,RES_COL);
+ SwFmtCol aCol((const SwFmtCol&)aSet.Get(RES_COL));
+ aCol.Init(pWin->GetFrmColCount(), aCol.GetGutterWidth(), aCol.GetWishWidth());
+ aSet.Put(aCol);
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = pSh->GetCurFrmFmt();
+ if(pFmt && pFmt->IsAutoUpdateFmt())
+ pSh->AutoUpdateFrame(pFmt, aSet);
+ else
+ pSh->SetFlyFrmAttr( aSet );
+ }
+ }
+ if (pWin->GetDrawMode() == OBJ_NONE)
+ pSh->EndUndo(UNDO_INSERT);
+ }
+
+ bReturn = TRUE;
+
+ EnterSelectMode(rMEvt);
+ }
+ else
+ {
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ if (!pSdrView->HasMarkablePoints())
+ {
+ /**********************************************************************
+ * KEIN BEZIER_EDITOR
+ **********************************************************************/
+ if ((pSh->GetDrawView()->IsMarkObj() || pSh->GetDrawView()->IsMarkPoints())
+ && rMEvt.IsLeft())
+ {
+ bReturn = pSh->EndMark();
+
+ pWin->SetDrawAction(FALSE);
+
+ if (aPnt == aStartPos && pSh->IsObjSelectable(aPnt))
+ {
+ pSh->SelectObj(aPnt, rMEvt.IsShift() && pSh->IsSelFrmMode());
+
+ if (!pSh->IsObjSelected())
+ {
+ pView->LeaveDrawCreate(); // In Selektionsmode wechseln
+
+ pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+
+ if (pSh->IsSelFrmMode())
+ pSh->LeaveSelFrmMode();
+ }
+ pView->NoRotate();
+
+ bCheckShell = TRUE; // ggf BezierShell anwerfen
+ }
+ else if (!pSh->IsObjSelected() && !pWin->IsDrawAction())
+ {
+ if (pSh->IsObjSelectable(aPnt))
+ pSh->SelectObj(aPnt, rMEvt.IsShift() && pSh->IsSelFrmMode());
+ else
+ {
+ pView->LeaveDrawCreate();
+ if (pSh->IsSelFrmMode())
+ pSh->LeaveSelFrmMode();
+ }
+ pView->NoRotate();
+
+ bReturn = TRUE;
+ }
+ }
+ }
+ else
+ {
+ /**********************************************************************
+ * BEZIER_EDITOR
+ **********************************************************************/
+ if ( pSdrView->IsAction() )
+ {
+ if ( pSdrView->IsInsObjPoint() )
+ bReturn = pSdrView->EndInsObjPoint(SDRCREATE_FORCEEND);
+ else if (pSdrView->IsMarkPoints() )
+ bReturn = pSdrView->EndMarkPoints();
+ else
+ {
+ pSdrView->EndAction();
+ bReturn = TRUE;
+ }
+ pWin->SetDrawAction(FALSE);
+
+ if (aPnt == aStartPos)
+ {
+ if (!pSh->IsObjSelectable(aPnt))
+ pSh->SelectObj(Point(LONG_MAX, LONG_MAX));
+ else if (!bReturn)
+ {
+ if (!rMEvt.IsShift())
+ pSdrView->UnmarkAllPoints();
+ pSh->SelectObj(aPnt, rMEvt.IsShift() && pSh->IsSelFrmMode());
+ }
+
+ if (!pSh->IsObjSelected())
+ {
+ pView->LeaveDrawCreate(); // In Selektionsmode wechseln
+
+ pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+
+ if (pSh->IsSelFrmMode())
+ pSh->LeaveSelFrmMode();
+ }
+ pView->NoRotate();
+
+ bCheckShell = TRUE; // ggf BezierShell anwerfen
+ }
+ }
+
+ SetDrawPointer();
+
+ if (!pSh->IsObjSelected() && !pWin->IsDrawAction())
+ {
+ pView->LeaveDrawCreate();
+ if (pSh->IsSelFrmMode())
+ pSh->LeaveSelFrmMode();
+
+ pView->NoRotate();
+ bReturn = TRUE;
+ }
+ }
+ }
+
+ if (bCheckShell)
+ pView->AttrChangedNotify( pSh ); // ggf BezierShell anwerfen
+
+ //!!!!!!!!!! Achtung Suizid !!!!!!!!!!! Sollte alles mal erneuert werden
+ if ( bAutoCap )
+ pView->AutoCaption(FRAME_CAP); //Kann derzeit nur FRAME sein, sonst auf
+ //enums umstellen
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* Function aktivieren
+|*
+\************************************************************************/
+
+
+void SwDrawBase::Activate(const USHORT nSlotId)
+{
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ pSdrView->SetCurrentObj(pWin->GetDrawMode());
+ pSdrView->SetEditMode(FALSE);
+
+ SetDrawPointer();
+ pSh->NoEdit();
+}
+
+/*************************************************************************
+|*
+|* Function deaktivieren
+|*
+\************************************************************************/
+
+
+void __EXPORT SwDrawBase::Deactivate()
+{
+ SdrView *pSdrView = pSh->GetDrawView();
+ pSdrView->SetOrtho(FALSE);
+ pSdrView->SetAngleSnapEnabled(FALSE);
+
+ if (pWin->IsDrawAction() && pSh->IsDrawCreate())
+ pSh->BreakCreate();
+
+ pWin->SetDrawAction(FALSE);
+
+ pWin->ReleaseMouse();
+ bNoInterrupt = FALSE;
+
+// if(!pSh->IsObjSelected())
+// pSh->Edit();
+
+ if(pWin->GetApplyTemplate())
+ pWin->SetApplyTemplate(SwApplyTemplate());
+ pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+}
+
+/*************************************************************************
+|*
+|* Tastaturereignisse bearbeiten
+|*
+|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert TRUE, andernfalls
+|* FALSE.
+|*
+\************************************************************************/
+
+
+BOOL SwDrawBase::KeyInput(const KeyEvent& rKEvt)
+{
+ BOOL bReturn = FALSE;
+ USHORT nCode = rKEvt.GetKeyCode().GetCode();
+
+ switch (nCode)
+ {
+ case KEY_ESCAPE:
+ {
+ if (pWin->IsDrawAction())
+ {
+ BreakCreate();
+ pView->LeaveDrawCreate();
+ }
+
+ bReturn = TRUE;
+ }
+ break;
+
+ case KEY_DELETE:
+ {
+ pSh->DelSelectedObj();
+ bReturn = TRUE;
+ }
+ break;
+
+ case KEY_UP:
+ case KEY_DOWN:
+ case KEY_LEFT:
+ case KEY_RIGHT:
+ {
+ SdrView *pSdrView = pSh->GetDrawView();
+
+ if (!pSdrView->IsTextEdit())
+ {
+ long nX = 0;
+ long nY = 0;
+
+ if (nCode == KEY_UP)
+ {
+ // Scroll nach oben
+ nX = 0;
+ nY =-1;
+ }
+ else if (nCode == KEY_DOWN)
+ {
+ // Scroll nach unten
+ nX = 0;
+ nY = 1;
+ }
+ else if (nCode == KEY_LEFT)
+ {
+ // Scroll nach links
+ nX =-1;
+ nY = 0;
+ }
+ else if (nCode == KEY_RIGHT)
+ {
+ // Scroll nach rechts
+ nX = 1;
+ nY = 0;
+ }
+
+ if (pSdrView->HasMarkedObj() && rKEvt.GetKeyCode().IsMod2())
+ {
+ // Objekte verschieben
+ nX *= 100;
+ nY *= 100;
+ pSdrView->MoveAllMarked(Size(nX, nY));
+ }
+
+ bReturn = TRUE;
+ }
+ }
+ break;
+ }
+
+ return (bReturn);
+}
+
+
+/*************************************************************************
+|*
+|* Tastaturereignisse bearbeiten
+|*
+|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert TRUE, andernfalls
+|* FALSE.
+|*
+\************************************************************************/
+
+
+void SwDrawBase::BreakCreate()
+{
+ pSh->BreakCreate();
+ pWin->SetDrawAction(FALSE);
+ pWin->ReleaseMouse();
+
+ Deactivate();
+// pView->LeaveDrawCreate();
+}
+
+/*************************************************************************
+|*
+|* Mauspointer umschalten
+|*
+\************************************************************************/
+
+
+void SwDrawBase::SetDrawPointer()
+{
+ SdrView *pSdrView = pSh->GetDrawView();
+#ifdef VCL
+ Point aPnt(pWin->OutputToScreenPixel(pWin->GetPointerPosPixel()));
+#else
+ Point aPnt = Pointer::GetPosPixel();
+#endif
+ aPnt = pWin->PixelToLogic(pWin->ScreenToOutputPixel(aPnt));
+ const Pointer aPointTyp = pSdrView->GetPreferedPointer(aPnt, pSh->GetOut());
+ const Pointer aDrawPt(aPointTyp);
+ pWin->SetPointer(aDrawPt);
+}
+
+/*************************************************************************
+|*
+|* Ggf in Selektionsmode wechseln
+|*
+\************************************************************************/
+
+void SwDrawBase::EnterSelectMode(const MouseEvent& rMEvt)
+{
+ pWin->SetDrawAction(FALSE);
+
+ if (!pSh->IsObjSelected() && !pWin->IsDrawAction())
+ {
+ Point aPnt(pWin->PixelToLogic(rMEvt.GetPosPixel()));
+
+ if (pSh->IsObjSelectable(aPnt))
+ {
+ pSh->SelectObj(aPnt);
+ if (rMEvt.GetModifier() == KEY_SHIFT || !pSh->IsObjSelected())
+ {
+ pView->LeaveDrawCreate(); // In Selektionsmode wechseln
+
+ pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+ }
+ }
+ else
+ {
+ pView->LeaveDrawCreate();
+ if (pSh->IsSelFrmMode())
+ pSh->LeaveSelFrmMode();
+ }
+ pView->NoRotate();
+ }
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.80 2000/09/18 16:06:01 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.79 2000/09/07 15:59:27 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.78 2000/05/10 11:54:15 os
+ Basic API removed
+
+ Revision 1.77 1999/05/27 11:04:40 OS
+ Einf?gen/Bearbeiten von Spalten ueberarbeitet
+
+
+ Rev 1.76 27 May 1999 13:04:40 OS
+ Einf?gen/Bearbeiten von Spalten ueberarbeitet
+
+ Rev 1.75 11 Mar 1999 11:31:22 MA
+ #63192# mit Suizid fertig werden
+
+ Rev 1.74 16 Nov 1998 17:18:52 OM
+ #58158# Beschriftung fuer weiter OLE-Objekte
+
+ Rev 1.73 06 Nov 1998 17:05:04 OM
+ #58158# Automatische Beschriftung
+
+ Rev 1.72 09 Sep 1998 12:14:46 OM
+ #56223# Kein GPF bei Klick in Seitenrand
+
+ Rev 1.71 22 Jul 1998 16:06:00 TJ
+ add: header wg. int comp. error
+
+ Rev 1.70 09 Jun 1998 15:34:00 OM
+ VC-Controls entfernt
+
+ Rev 1.69 11 Mar 1998 17:12:08 OM
+ DB-FormShell
+
+ Rev 1.68 28 Nov 1997 20:16:46 MA
+ includes
+
+ Rev 1.67 24 Nov 1997 14:54:00 MA
+ includes
+
+ Rev 1.66 18 Sep 1997 13:59:46 OS
+ Pointer::GetPosPixel fuer VCL ersetzt
+
+ Rev 1.65 12 Sep 1997 10:36:42 OS
+ ITEMID_* definiert
+
+ Rev 1.64 04 Sep 1997 17:14:02 MA
+ includes
+
+ Rev 1.63 01 Sep 1997 13:14:38 OS
+ DLL-Umstellung
+
+ Rev 1.62 13 Aug 1997 12:19:54 OM
+ #42383# Selektion von Punkten im Konstruktionsmode
+
+ Rev 1.61 13 Aug 1997 12:18:56 OM
+ #42383# Selektion von Punkten im Konstruktionsmode
+
+ Rev 1.60 09 Aug 1997 13:33:42 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.59 30 Jul 1997 18:40:48 HJS
+ includes
+
+ Rev 1.58 07 Apr 1997 13:40:24 MH
+ chg: header
+
+ Rev 1.57 20 Mar 1997 11:33:46 OM
+ Insert und CreateMode merken
+
+ Rev 1.56 24 Feb 1997 16:51:46 OS
+ ::Deactivate: Template-Pointer gfs. abschalten
+
+ Rev 1.55 04 Feb 1997 15:20:32 OM
+ Bugs in Selektionsmodi behoben
+
+ Rev 1.54 31 Jan 1997 10:58:26 OM
+ Statusupdate
+
+ Rev 1.53 30 Jan 1997 11:48:10 OM
+ Freihandzeichnen
+
+ Rev 1.52 29 Jan 1997 11:22:08 OM
+ Freihandzeichnen
+
+ Rev 1.51 23 Jan 1997 16:07:06 OM
+ Neuer Polygon Zeichenmode
+
+ Rev 1.50 22 Jan 1997 11:19:48 OM
+ Neue Shells: DrawBaseShell und DrawControlShell
+
+ Rev 1.49 16 Jan 1997 12:35:58 OM
+ Neuer Objekttyp: Bezier
+
+ Rev 1.48 13 Jan 1997 15:50:18 OM
+ Bezier-Punkte loeschen
+
+ Rev 1.47 08 Jan 1997 12:44:26 OM
+ Aenderungen fuer Bezier-Shell
+
+ Rev 1.46 27 Nov 1996 17:26:22 OM
+ Neu: SetAngleSnap
+
+ Rev 1.45 28 Aug 1996 13:39:30 OS
+ includes
+
+ Rev 1.44 14 Aug 1996 15:05:28 OM
+ Zentrisch konstruieren
+
+ Rev 1.43 14 Aug 1996 11:31:00 JP
+ svdraw.hxx entfernt
+
+ Rev 1.42 09 Aug 1996 14:33:20 OM
+ #29784# GPF im Dtor behoben
+
+ Rev 1.41 07 Mar 1996 14:27:30 HJS
+ 2 defines zu viel
+
+ Rev 1.40 24 Jan 1996 15:19:58 OM
+ #24663# Haenger bei Polygon im Rastermode behoben
+
+ Rev 1.39 14 Jan 1996 17:59:08 OS
+ recording Rahmen einfuegen: Position von GetAnchorObjDiff() holen
+
+ Rev 1.38 17 Dec 1995 17:28:18 OS
+ Rahmen einfuegen wird jetzt an der Textshell recorded
+
+ Rev 1.37 30 Nov 1995 13:59:52 MA
+ opt: SV304, keine Pruefung vor SetPointer
+
+ Rev 1.36 24 Nov 1995 16:58:04 OM
+ PCH->PRECOMPILED
+
+ Rev 1.35 23 Nov 1995 14:29:00 MA
+ chg: GetObjAnchorDiff(), GetObjAbsPos()
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/ribbar/dselect.cxx b/sw/source/ui/ribbar/dselect.cxx
new file mode 100644
index 000000000000..d82b857badb9
--- /dev/null
+++ b/sw/source/ui/ribbar/dselect.cxx
@@ -0,0 +1,253 @@
+/*************************************************************************
+ *
+ * $RCSfile: dselect.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "drawbase.hxx"
+#include "dselect.hxx"
+
+extern BOOL bNoInterrupt; // in mainwn.cxx
+
+/*************************************************************************
+|*
+|* Konstruktor
+|*
+\************************************************************************/
+
+DrawSelection::DrawSelection(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
+ SwDrawBase(pWrtShell, pEditWin, pSwView)
+{
+ bCreateObj = FALSE;
+}
+
+/*************************************************************************
+|*
+|* Tastaturereignisse bearbeiten
+|*
+|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert TRUE, andernfalls
+|* FALSE.
+|*
+\************************************************************************/
+
+BOOL DrawSelection::KeyInput(const KeyEvent& rKEvt)
+{
+ BOOL bReturn = FALSE;
+
+ switch (rKEvt.GetKeyCode().GetCode())
+ {
+ case KEY_ESCAPE:
+ {
+ if (pWin->IsDrawAction())
+ {
+ pSh->BreakMark();
+ pWin->ReleaseMouse();
+ }
+ bReturn = TRUE;
+ }
+ break;
+ }
+
+ if (!bReturn)
+ bReturn = SwDrawBase::KeyInput(rKEvt);
+
+ return (bReturn);
+}
+
+/*************************************************************************
+|*
+|* Function aktivieren
+|*
+\************************************************************************/
+
+void DrawSelection::Activate(const USHORT nSlotId)
+{
+ pWin->SetDrawMode(SID_OBJECT_SELECT);
+ SwDrawBase::Activate(nSlotId);
+
+ pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.44 2000/09/18 16:06:01 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.43 2000/09/07 15:59:27 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.42 1998/06/12 11:33:44 OM
+ Wieder SID_OBJECT_SELECT statt SID_DRAW_SELECT
+
+
+ Rev 1.41 12 Jun 1998 13:33:44 OM
+ Wieder SID_OBJECT_SELECT statt SID_DRAW_SELECT
+
+ Rev 1.40 09 Jun 1998 15:34:00 OM
+ VC-Controls entfernt
+
+ Rev 1.39 28 Nov 1997 20:15:30 MA
+ includes
+
+ Rev 1.38 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.37 03 Nov 1997 13:24:22 MA
+ precomp entfernt
+
+ Rev 1.36 05 Sep 1997 12:00:44 MH
+ chg: header
+
+ Rev 1.35 13 Aug 1997 12:18:56 OM
+ #42383# Selektion von Punkten im Konstruktionsmode
+
+ Rev 1.34 11 Jul 1997 15:26:24 OM
+ Redraw-Bug behoben
+
+ Rev 1.33 07 Apr 1997 13:39:48 MH
+ chg: header
+
+ Rev 1.32 20 Mar 1997 11:34:16 OM
+ Insert und CreateMode merken
+
+ Rev 1.31 14 Mar 1997 16:36:40 OM
+ #37682# Bemassungsobjekt deselektieren
+
+ Rev 1.30 04 Feb 1997 15:20:32 OM
+ Bugs in Selektionsmodi behoben
+
+ Rev 1.29 31 Jan 1997 10:58:26 OM
+ Statusupdate
+
+ Rev 1.28 30 Jan 1997 11:48:10 OM
+ Freihandzeichnen
+
+ Rev 1.27 22 Jan 1997 11:19:50 OM
+ Neue Shells: DrawBaseShell und DrawControlShell
+
+ Rev 1.26 14 Jan 1997 15:37:06 OM
+ Bezierpunkte bearbeiten
+
+ Rev 1.25 13 Jan 1997 17:23:28 OM
+ Bezier-Punkte einfuegen
+
+ Rev 1.24 13 Jan 1997 15:50:18 OM
+ Bezier-Punkte loeschen
+
+ Rev 1.23 13 Jan 1997 10:11:54 OM
+ Selektionsmode fuer Bezier-Objekte
+
+ Rev 1.22 08 Jan 1997 12:44:26 OM
+ Aenderungen fuer Bezier-Shell
+
+ Rev 1.21 28 Aug 1996 13:39:24 OS
+ includes
+
+ Rev 1.20 16 Aug 1996 15:22:32 OM
+ #30046#Haenger bei Selektion beseitigt
+
+ Rev 1.19 14 Aug 1996 11:31:00 JP
+ svdraw.hxx entfernt
+
+ Rev 1.18 07 Mar 1996 14:27:32 HJS
+ 2 defines zu viel
+
+ Rev 1.17 24 Nov 1995 16:58:06 OM
+ PCH->PRECOMPILED
+
+ Rev 1.16 15 Nov 1995 18:35:28 OM
+ Virtuelle Fkt rausgeworfen
+
+ Rev 1.15 14 Nov 1995 17:36:56 OM
+ Cast entfernt
+
+ Rev 1.14 08 Nov 1995 15:29:48 OM
+ Invalidate-Reihenfolge geaendert
+
+ Rev 1.13 08 Nov 1995 14:15:50 OS
+ Change => Set
+
+ Rev 1.12 08 Nov 1995 10:35:42 OM
+ Invalidate optimiert
+
+ Rev 1.11 19 Oct 1995 18:30:44 OM
+ Acceleratorproblem behoben
+
+*************************************************************************/
+
diff --git a/sw/source/ui/ribbar/inputwin.cxx b/sw/source/ui/ribbar/inputwin.cxx
new file mode 100644
index 000000000000..0aafb4a53d0a
--- /dev/null
+++ b/sw/source/ui/ribbar/inputwin.cxx
@@ -0,0 +1,881 @@
+/*************************************************************************
+ *
+ * $RCSfile: inputwin.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _GEN_HXX //autogen
+#include <tools/gen.hxx>
+#endif
+#ifndef _SFXIMGMGR_HXX //autogen
+#include <sfx2/imgmgr.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+
+
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "swmodule.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "calc.hxx"
+#include "inputwin.hxx"
+#include "fldbas.hxx"
+#include "fldmgr.hxx"
+#include "frmfmt.hxx"
+#include "cellatr.hxx"
+#include "edtwin.hxx"
+#include "helpid.h"
+
+// nur fuers UpdateRange - Box in dem der gestackte Cursor sthet loeschen
+#include "pam.hxx"
+#include "doc.hxx"
+
+#include "swundo.hxx"
+#include "ribbar.hrc"
+#include "inputwin.hrc"
+
+
+SFX_IMPL_POS_CHILDWINDOW( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OBJECT )
+
+//==================================================================
+
+SwInputWindow::SwInputWindow( Window* pParent )
+ : ToolBox( pParent , SW_RES( RID_TBX_FORMULA )),
+ aEdit( this, WB_3DLOOK|WB_TABSTOP|WB_BORDER|WB_NOHIDESELECTION),
+ aPos( this, SW_RES(ED_POS)),
+ aPopMenu( SW_RES(MN_CALC_POPUP)),
+ pMgr(0),
+ pView(0),
+ pWrtShell(0),
+ aAktTableName(aEmptyStr)
+{
+ bFirst = bDoesUndo = TRUE;
+ bActive = bIsTable = bDelSel = bResetUndo = bCallUndo = FALSE;
+
+ FreeResource();
+ SFX_APP()->GetImageManager()->RegisterToolBox(this);
+
+ pView = ::GetActiveView();
+ pWrtShell = pView ? pView->GetWrtShellPtr() : 0;
+
+ InsertWindow( ED_POS, &aPos, 0, 0);
+ InsertSeparator ( 1 );
+ InsertSeparator ();
+ InsertWindow( ED_FORMULA, &aEdit);
+ SetHelpId(ED_FORMULA, HID_EDIT_FORMULA);
+
+ SfxImageManager* pManager = SFX_IMAGEMANAGER();
+ SetItemImage( FN_FORMULA_CALC, pManager->GetImage(FN_FORMULA_CALC ));
+ SetItemImage( FN_FORMULA_CANCEL, pManager->GetImage(FN_FORMULA_CANCEL ));
+ SetItemImage( FN_FORMULA_APPLY, pManager->GetImage(FN_FORMULA_APPLY ));
+
+ Size aSizeTbx = CalcWindowSizePixel();
+ Size aSize = GetSizePixel();
+ aSize.Height() = aSizeTbx.Height();
+ SetSizePixel( aSize );
+ Size aPosSize = aPos.GetSizePixel();
+ Size aEditSize = aEdit.GetSizePixel();
+ aPosSize.Height() = aEditSize.Height() = GetItemRect(FN_FORMULA_CALC).GetHeight() - 2;
+
+ Point aPosPos = aPos.GetPosPixel();
+ Point aEditPos= aEdit.GetPosPixel();
+ aPosPos.Y() = aEditPos.Y() = GetItemRect( FN_FORMULA_CALC ).TopLeft().Y() + 1;
+ aPos.SetPosSizePixel( aPosPos, aPosSize );
+ aEdit.SetPosSizePixel( aEditPos, aEditSize );
+
+ aPopMenu.SetSelectHdl(LINK( this, SwInputWindow, MenuHdl ));
+}
+
+//==================================================================
+
+__EXPORT SwInputWindow::~SwInputWindow()
+{
+ SFX_APP()->GetImageManager()->ReleaseToolBox(this);
+ //Lineale aufwecken
+ if(pView)
+ {
+ pView->GetHLineal()->SetActive( TRUE );
+ if( pView->GetVLineal())
+ pView->GetVLineal()->SetActive( TRUE );
+ }
+ if ( pMgr )
+ delete pMgr;
+ if(pWrtShell)
+ pWrtShell->EndSelTblCells();
+
+ if( bResetUndo )
+ {
+ DelBoxCntnt();
+ pWrtShell->DoUndo( bDoesUndo );
+ if(bCallUndo)
+ pWrtShell->Undo();
+ SwEditShell::SetUndoActionCount( nActionCnt );
+ }
+}
+
+//==================================================================
+
+void __EXPORT SwInputWindow::Resize()
+{
+ ToolBox::Resize();
+
+ long nWidth = GetSizePixel().Width();
+ long nLeft = aEdit.GetPosPixel().X();
+ Size aEditSize = aEdit.GetSizePixel();
+
+ aEditSize.Width() = Max( ((long)(nWidth - nLeft - 5)), (long)0 );
+ aEdit.SetSizePixel( aEditSize );
+ aEdit.Invalidate();
+}
+
+//==================================================================
+
+void SwInputWindow::Show()
+{
+ bIsTable = FALSE;
+ //Lineale anhalten
+ if(pView)
+ {
+ pView->GetHLineal()->SetActive( FALSE );
+ if( pView->GetVLineal())
+ pView->GetVLineal()->SetActive( FALSE );
+
+ DBG_ASSERT(pWrtShell, "Keine WrtShell!")
+ // Cursor in Tabelle
+ bIsTable = pWrtShell->IsCrsrInTbl() ? TRUE : FALSE;
+
+ if( bFirst )
+ pWrtShell->SelTblCells( LINK( this, SwInputWindow,
+ SelTblCellsNotify) );
+ if( bIsTable )
+ {
+ const String& rPos = pWrtShell->GetBoxNms();
+ USHORT nPos = 0;
+ short nSrch = -1;
+ while( (nPos = rPos.Search( ':',nPos + 1 ) ) != STRING_NOTFOUND )
+ nSrch = (short) nPos;
+ aPos.SetText( rPos.Copy( ++nSrch ) );
+ aAktTableName = pWrtShell->GetTableFmt()->GetName();
+ }
+ else
+ aPos.SetText(SW_RESSTR(STR_FORMULA));
+
+ // Aktuelles Feld bearbeiten
+ ASSERT(pMgr == 0, FieldManager nicht geloescht.);
+ pMgr = new SwFldMgr;
+
+ // JP 13.01.97: Formel soll immer mit einem "=" beginnen, hier
+ // also setzen
+ String sEdit( '=' );
+ if( pMgr->GetCurFld() && TYP_FORMELFLD == pMgr->GetCurTypeId() )
+ {
+ sEdit += pMgr->GetCurFldPar2();
+ }
+ else if( bFirst )
+ {
+ if( bIsTable )
+ {
+ bResetUndo = TRUE;
+ nActionCnt = SwEditShell::GetUndoActionCount();
+ SwEditShell::SetUndoActionCount( nActionCnt + 1 );
+
+ bDoesUndo = pWrtShell->DoesUndo();
+ if( !bDoesUndo )
+ pWrtShell->DoUndo( TRUE );
+
+ if( !pWrtShell->SwCrsrShell::HasSelection() )
+ {
+ pWrtShell->MoveSection( fnSectionCurr, fnSectionStart );
+ pWrtShell->SetMark();
+ pWrtShell->MoveSection( fnSectionCurr, fnSectionEnd );
+ }
+ if( pWrtShell->SwCrsrShell::HasSelection() )
+ {
+ pWrtShell->StartUndo( UNDO_DELETE );
+ pWrtShell->Delete();
+ if( 0 != pWrtShell->EndUndo( UNDO_DELETE ))
+ bCallUndo = TRUE;
+ }
+ pWrtShell->DoUndo( FALSE );
+
+ SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_BOXATR_FORMULA, RES_BOXATR_FORMULA );
+ if( pWrtShell->GetTblBoxFormulaAttrs( aSet ))
+ sEdit += ((SwTblBoxFormula&)aSet.Get( RES_BOXATR_FORMULA )).GetFormula();
+ }
+ }
+
+ if( bFirst )
+ {
+ // WrtShell Flags richtig setzen
+ pWrtShell->SttSelect();
+ pWrtShell->EndSelect();
+ }
+
+ bFirst = FALSE;
+
+ aEdit.SetModifyHdl( LINK( this, SwInputWindow, ModifyHdl ));
+
+ aEdit.SetText( sEdit );
+ aEdit.SetSelection( Selection( sEdit.Len(), sEdit.Len() ) );
+ sOldFml = sEdit;
+
+ aEdit.Invalidate();
+ aEdit.Update();
+ aEdit.GrabFocus();
+ // UserInterface fuer die Eingabe abklemmen
+
+ pView->GetEditWin().LockKeyInput(TRUE);
+ pView->GetViewFrame()->GetDispatcher()->Lock(TRUE);
+ pWrtShell->Push();
+ }
+ ToolBox::Show();
+}
+//==================================================================
+
+IMPL_LINK( SwInputWindow, MenuHdl, Menu *, pMenu )
+{
+static const char * __READONLY_DATA aStrArr[] = {
+ sCalc_Phd,
+ sCalc_Sqrt,
+ sCalc_Or,
+ sCalc_Xor,
+ sCalc_And,
+ sCalc_Not,
+ sCalc_Eq,
+ sCalc_Neq,
+ sCalc_Leq,
+ sCalc_Geq,
+ sCalc_L,
+ sCalc_G,
+ sCalc_Sum,
+ sCalc_Mean,
+ sCalc_Min,
+ sCalc_Max,
+ sCalc_Sin,
+ sCalc_Cos,
+ sCalc_Tan,
+ sCalc_Asin,
+ sCalc_Acos,
+ sCalc_Atan,
+ sCalc_Pow,
+ "|",
+ sCalc_Round
+};
+
+ USHORT nId = pMenu->GetCurItemId();
+ if ( nId <= MN_CALC_ROUND )
+ {
+ String aTmp( String::CreateFromAscii(aStrArr[nId - 1]) );
+ aTmp += ' ';
+ aEdit.ReplaceSelected( aTmp );
+ }
+ return 0;
+}
+
+//==================================================================
+
+
+void __EXPORT SwInputWindow::Click( )
+{
+ USHORT nCurID = GetCurItemId();
+ EndSelection(); // setzt CurItemId zurueck !
+ switch ( nCurID )
+ {
+ case FN_FORMULA_CALC :
+ {
+ Point aBL = GetItemRect( FN_FORMULA_CALC ).BottomLeft();
+ Point aPt(aBL.X(), aBL.Y());
+#ifdef VCL
+ aPopMenu.Execute( this, aPt );
+#else
+ aPt = OutputToScreenPixel( aPt );
+ aPopMenu.Execute( aPt );
+#endif
+ }
+ break;
+ case FN_FORMULA_CANCEL:
+ {
+ CancelFormula();
+ }
+ break;
+ case FN_FORMULA_APPLY:
+ {
+ ApplyFormula();
+ }
+ break;
+ }
+}
+
+//==================================================================
+
+void SwInputWindow::ApplyFormula()
+{
+ pView->GetViewFrame()->GetDispatcher()->Lock(FALSE);
+ pView->GetEditWin().LockKeyInput(FALSE);
+ if( bResetUndo )
+ {
+ DelBoxCntnt();
+ pWrtShell->DoUndo( bDoesUndo );
+ SwEditShell::SetUndoActionCount( nActionCnt );
+ if( bCallUndo )
+ pWrtShell->Undo();
+ bResetUndo = FALSE;
+ }
+ pWrtShell->Pop( FALSE );
+
+ // JP 13.01.97: Formel soll immer mit einem "=" beginnen, hier
+ // also wieder entfernen
+ BOOL bIsFormula = FALSE;
+ String sEdit( aEdit.GetText() );
+ sEdit.EraseLeadingChars().EraseTrailingChars();
+ if( sEdit.Len() && '=' == sEdit.GetChar( 0 ) )
+ {
+ sEdit.Erase( 0, 1 );
+ bIsFormula = TRUE;
+ }
+
+ pWrtShell->StartAllAction();
+ if( bDelSel && pWrtShell->HasSelection() )
+ {
+ pWrtShell->StartUndo( UNDO_START );
+ pWrtShell->DelRight();
+ }
+ else
+ {
+ pWrtShell->EnterStdMode();
+ bDelSel = FALSE;
+ }
+
+ if( !bDelSel && pMgr->GetCurFld() && TYP_FORMELFLD == pMgr->GetCurTypeId() )
+ pMgr->UpdateCurFld( pMgr->GetCurFld()->GetFormat(), aEmptyStr, sEdit );
+ else if( sEdit.Len() )
+ {
+ if( bIsTable )
+ {
+ SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_BOXATR_FORMULA, RES_BOXATR_FORMULA );
+ aSet.Put( SwTblBoxFormula( sEdit ));
+ pWrtShell->SetTblBoxFormulaAttrs( aSet );
+ pWrtShell->UpdateTable();
+ }
+ else
+ {
+ SvNumberFormatter* pFormatter = pWrtShell->GetNumberFormatter();
+ ULONG nSysNumFmt = pFormatter->GetFormatIndex( NF_NUMBER_STANDARD, LANGUAGE_SYSTEM);
+ pMgr->InsertFld(TYP_FORMELFLD, GSE_FORMULA, aEmptyStr, sEdit, nSysNumFmt);
+ }
+ }
+
+ if( bDelSel )
+ pWrtShell->EndUndo( UNDO_END );
+ pWrtShell->EndAllAction();
+
+ pWrtShell->EndSelTblCells();
+ pView->GetEditWin().GrabFocus();
+ pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON );
+}
+
+//==================================================================
+
+void SwInputWindow::CancelFormula()
+{
+ if(pView)
+ {
+ pView->GetViewFrame()->GetDispatcher()->Lock( FALSE );
+ pView->GetEditWin().LockKeyInput(FALSE);
+ if( bResetUndo )
+ {
+ DelBoxCntnt();
+ pWrtShell->DoUndo( bDoesUndo );
+ SwEditShell::SetUndoActionCount( nActionCnt );
+ if( bCallUndo )
+ pWrtShell->Undo();
+ bResetUndo = FALSE;
+ }
+ pWrtShell->Pop( FALSE );
+
+ if( bDelSel )
+ pWrtShell->EnterStdMode();
+
+ pWrtShell->EndSelTblCells();
+
+ pView->GetEditWin().GrabFocus();
+ }
+ pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON);
+}
+//==================================================================
+
+IMPL_LINK( SwInputWindow, SelTblCellsNotify, SwWrtShell *, pCaller )
+{
+ if(bIsTable)
+ {
+ SwFrmFmt* pTblFmt = pCaller->GetTableFmt();
+ String sBoxNms( pCaller->GetBoxNms() );
+ String sTblNm;
+ if( pTblFmt && aAktTableName != pTblFmt->GetName() )
+ sTblNm = pTblFmt->GetName();
+
+ aEdit.UpdateRange( sBoxNms, sTblNm );
+
+ String sNew( aEdit.GetText() );
+ if( sNew != sOldFml )
+ {
+ // Die WrtShell ist in der Tabellen Selektion
+ // dann die Tabellen Selektion wieder aufheben, sonst steht der
+ // Cursor "im Wald" und das LiveUpdate funktioniert nicht!
+ pWrtShell->StartAllAction();
+
+ SwPaM aPam( *pWrtShell->GetStkCrsr()->GetPoint() );
+ aPam.Move( fnMoveBackward, fnGoSection );
+ aPam.SetMark();
+ aPam.Move( fnMoveForward, fnGoSection );
+
+ pWrtShell->GetDoc()->Delete( aPam );
+ pWrtShell->GetDoc()->Insert( aPam, sNew );
+ pWrtShell->EndAllAction();
+ sOldFml = sNew;
+ }
+ }
+ else
+ aEdit.GrabFocus();
+ return 0;
+}
+
+
+void SwInputWindow::SetFormula( const String& rFormula, BOOL bDelFlag )
+{
+ String sEdit( '=' );
+ if( rFormula.Len() )
+ {
+ if( '=' == rFormula.GetChar( 0 ) )
+ sEdit = rFormula;
+ else
+ sEdit += rFormula;
+ }
+ aEdit.SetText( sEdit );
+ aEdit.SetSelection( Selection( sEdit.Len(), sEdit.Len() ) );
+ aEdit.Invalidate();
+ bDelSel = bDelFlag;
+}
+
+
+IMPL_LINK( SwInputWindow, ModifyHdl, InputEdit*, EMPTYARG )
+{
+ if( bIsTable && bResetUndo )
+ {
+ pWrtShell->StartAllAction();
+ DelBoxCntnt();
+ String sNew( aEdit.GetText() );
+ pWrtShell->SwEditShell::Insert( sNew );
+ pWrtShell->EndAllAction();
+ sOldFml = sNew;
+ }
+ return 0;
+}
+
+
+void SwInputWindow::DelBoxCntnt()
+{
+ if( bIsTable )
+ {
+ pWrtShell->StartAllAction();
+ pWrtShell->ClearMark();
+ pWrtShell->Pop( FALSE );
+ pWrtShell->Push();
+ pWrtShell->MoveSection( fnSectionCurr, fnSectionStart );
+ pWrtShell->SetMark();
+ pWrtShell->MoveSection( fnSectionCurr, fnSectionEnd );
+ pWrtShell->SwEditShell::Delete();
+ pWrtShell->EndAllAction();
+ }
+}
+
+//==================================================================
+
+void __EXPORT InputEdit::KeyInput(const KeyEvent& rEvent)
+{
+ const KeyCode aCode = rEvent.GetKeyCode();
+ if(aCode == KEY_RETURN || aCode == KEY_F2 )
+ ((SwInputWindow*)GetParent())->ApplyFormula();
+ else if(aCode == KEY_ESCAPE )
+ ((SwInputWindow*)GetParent())->CancelFormula();
+ else
+ Edit::KeyInput(rEvent);
+}
+
+//==================================================================
+
+void __EXPORT InputEdit::UpdateRange(const String& rBoxes,
+ const String& rName )
+{
+ if( !rBoxes.Len() )
+ {
+ GrabFocus();
+ return;
+ }
+ const sal_Unicode cOpen = '<', cClose = '>',
+ cOpenBracket = '(', cCloseBracket = ')';
+ String aPrefix = rName;
+ if(rName.Len())
+ aPrefix += '.';
+ String aBoxes = aPrefix;
+ aBoxes += rBoxes;
+ Selection aSelection(GetSelection());
+ USHORT nSel = (USHORT) aSelection.Len();
+ //OS: mit dem folgenden Ausdruck wird sichergestellt, dass im overwrite-Modus
+ //die selektierte schliessende Klammer nicht geloescht wird
+ if( nSel && ( nSel > 1 ||
+ GetText().GetChar( (USHORT)aSelection.Min() ) != cClose ) )
+ Cut();
+ else
+ aSelection.Max() = aSelection.Min();
+ String aActText(GetText());
+ const USHORT nLen = aActText.Len();
+ if( !nLen )
+ {
+ String aStr(cOpen);
+ aStr += aBoxes;
+ aStr += cClose;
+ SetText(aStr);
+ USHORT nPos = aStr.Search( cClose );
+ ASSERT(nPos < aStr.Len(), Delimiter nicht gefunden.);
+ ++nPos;
+ SetSelection( Selection( nPos, nPos ));
+ }
+ else
+ {
+ BOOL bFound = FALSE;
+ unsigned char cCh;
+ USHORT nPos, nEndPos, nStartPos = (USHORT) aSelection.Min();
+ if( nStartPos-- )
+ {
+ do {
+ if( cOpen == (cCh = aActText.GetChar( nStartPos ) ) ||
+ cOpenBracket == cCh )
+ {
+ bFound = cCh == cOpen;
+ break;
+ }
+ } while( nStartPos-- > 0 );
+ }
+ if( bFound )
+ {
+ bFound = FALSE;
+ nEndPos = nStartPos;
+ while( nEndPos < nLen )
+ {
+ if( cClose == (cCh = aActText.GetChar( nEndPos )) /*||
+ cCh == cCloseBracket*/ )
+ {
+ bFound = TRUE;
+ break;
+ }
+ ++nEndPos;
+ }
+ // nur wenn akt. Pos im Breich oder direkt dahinter liegt
+ if( bFound && !( nStartPos < (USHORT)aSelection.Max() &&
+ (USHORT)aSelection.Max() <= nEndPos + 1 ))
+ bFound = FALSE;
+ }
+ if( bFound )
+ {
+ nPos = ++nStartPos + 1; // wir wollen dahinter
+ aActText.Erase( nStartPos, nEndPos - nStartPos );
+ aActText.Insert( aBoxes, nStartPos );
+ nPos += aBoxes.Len();
+ }
+ else
+ {
+ String aTmp( (char)cOpen );
+ aTmp += aBoxes;
+ aTmp += (char)cClose;
+ nPos = (USHORT)aSelection.Min();
+ aActText.Insert( aTmp, nPos );
+ nPos += aTmp.Len();
+ }
+ if( GetText() != aActText )
+ {
+ SetText( aActText );
+ SetSelection( Selection( nPos, nPos ) );
+// GetModifyHdl().Call( this );
+ }
+ }
+ GrabFocus();
+
+}
+//==================================================================
+
+
+SwInputChild::SwInputChild(Window* pParent,
+ USHORT nId,
+ SfxBindings* ,
+ SfxChildWinInfo* ) :
+ SfxChildWindow( pParent, nId )
+{
+ SwView* pActiveView = GetActiveView();
+ pDispatch = pActiveView ? pActiveView->GetViewFrame()->GetDispatcher() : 0;
+ pWindow = new SwInputWindow( pParent );
+ ((SwInputWindow*)pWindow)->Show();
+ eChildAlignment = SFX_ALIGN_LOWESTTOP;
+
+}
+
+
+__EXPORT SwInputChild::~SwInputChild()
+{
+ if(pDispatch)
+ pDispatch->Lock(FALSE);
+}
+
+
+SfxChildWinInfo __EXPORT SwInputChild::GetInfo() const
+{
+ SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \
+ return aInfo;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.88 2000/09/18 16:06:01 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.87 2000/09/07 15:59:27 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.86 2000/07/03 08:54:31 jp
+ must changes for VCL
+
+ Revision 1.85 2000/04/26 14:56:39 os
+ GetName() returns const String&
+
+ Revision 1.84 2000/04/18 14:54:44 os
+ UNICODE
+
+ Revision 1.83 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.82 1999/05/18 13:20:16 OS
+ #66203# Undo im Dtor nur, wenn erforderlich
+
+
+ Rev 1.81 18 May 1999 15:20:16 OS
+ #66203# Undo im Dtor nur, wenn erforderlich
+
+ Rev 1.80 24 Apr 1998 17:22:46 OS
+ kein KeyInput waehrend die Rechenleiste aktiv ist #49301#
+
+ Rev 1.79 12 Mar 1998 13:33:12 OM
+ #48084# Formelfeld mit Standardformat einfuegen
+
+ Rev 1.78 22 Jan 1998 20:07:40 JP
+ CTOR des SwPaM umgestellt
+
+ Rev 1.77 19 Jan 1998 20:08:32 JP
+ Bug #46705#: Undo nur rufen, wenn etwas geloescht wurde
+
+ Rev 1.76 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.75 10 Nov 1997 11:43:12 OS
+ HelpId fuer Edit #45436#
+
+ Rev 1.74 30 Sep 1997 16:28:22 TJ
+
+ Rev 1.73 19 Sep 1997 13:42:56 OS
+ Edit mit WB_NOHIDESELECTION #43891#
+
+ Rev 1.72 04 Sep 1997 17:14:02 MA
+ includes
+
+ Rev 1.71 01 Sep 1997 10:01:24 OS
+ fuer VCL Window uebergeben
+
+ Rev 1.70 29 Aug 1997 16:52:24 MH
+ chg: Syntax
+
+ Rev 1.69 29 Aug 1997 15:45:32 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.68 29 Aug 1997 14:20:12 OS
+ DLL-Umbau
+
+ Rev 1.67 09 Jul 1997 17:36:10 HJS
+ includes
+
+ Rev 1.66 09 May 1997 09:28:42 JP
+ Bug #39214#: Formel nur ersetzen, wenn die sich veraendert hat
+
+ Rev 1.65 29 Apr 1997 16:18:50 OM
+ Unsichtbare Benutzerfelder
+
+ Rev 1.64 09 Apr 1997 16:18:42 MH
+ chg: header
+
+ Rev 1.63 07 Apr 1997 13:40:48 MH
+ chg: header
+
+ Rev 1.62 10 Feb 1997 16:26:40 OS
+ Dispatcher im Childwindow merken
+
+ Rev 1.61 07 Feb 1997 16:41:54 OS
+ Dispatcher nur noch vom ViewFrame holen
+
+ Rev 1.60 05 Feb 1997 14:32:00 JP
+ FormatMenu bei Tabellenzellen entfernen
+
+ Rev 1.59 29 Jan 1997 14:47:18 JP
+ Umstellungen fuers neue Rechnen in Tabellen
+
+ Rev 1.58 21 Jan 1997 13:48:40 JP
+ Update der Eingabe in die TabellenBox
+
+ Rev 1.57 14 Jan 1997 18:22:28 JP
+ UpdateRange: Anfang des BoxNamens korrekt suchen
+
+ Rev 1.56 14 Jan 1997 09:50:32 JP
+ neu: SetFormula; UpdateRange: Crsr hinter die BoxNamen
+
+ Rev 1.55 21 Nov 1996 17:56:44 MA
+ chg: Kein ResMgr fuer GetImage()
+
+ Rev 1.54 11 Nov 1996 11:11:30 MA
+ ResMgr
+
+ Rev 1.53 09 Nov 1996 13:51:40 OS
+ PopupMenu immer im Click
+
+ Rev 1.52 24 Oct 1996 13:36:38 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.51 10 Oct 1996 10:37:12 OS
+ Registrierung der Toolbox am SfxImageManager
+
+ Rev 1.50 28 Aug 1996 13:39:28 OS
+ includes
+
+ Rev 1.49 09 Jul 1996 17:52:42 OM
+ Alternatives Formatmenue fuer Expressionfields
+
+ Rev 1.48 26 Jun 1996 15:26:42 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.47 10 Jun 1996 18:47:04 HJS
+ ; vergessen
+
+ Rev 1.46 10 Jun 1996 11:38:08 OS
+ Reihenfolge Apply und CancelFormula angepasst
+
+ Rev 1.45 09 May 1996 15:34:12 OS
+ HLineal an der View wird nicht mehr geloescht
+
+ Rev 1.44 26 Apr 1996 10:00:32 SWG
+ IMPL-Macro getauscht, GetInfo impl.
+
+ Rev 1.43 10 Mar 1996 15:50:22 OS
+ neu: Round
+
+ Rev 1.42 29 Feb 1996 12:58:30 OS
+ UpdateRange mit zusaetzlichem Parameter
+
+ Rev 1.41 07 Feb 1996 07:29:20 OS
+ Linkumstellung: return sollte ans Ende
+
+ Rev 1.40 06 Feb 1996 15:21:16 JP
+ Link Umstellung 305
+
+------------------------------------------------------------------------*/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/ribbar/inputwin.hrc b/sw/source/ui/ribbar/inputwin.hrc
new file mode 100644
index 000000000000..38fc01c1c7da
--- /dev/null
+++ b/sw/source/ui/ribbar/inputwin.hrc
@@ -0,0 +1,118 @@
+/*************************************************************************
+ *
+ * $RCSfile: inputwin.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _INPUTWIN_HRC
+#define _INPUTWIN_HRC
+
+
+//PopupMenu Id's
+#define MN_CALC_PHD 1
+#define MN_CALC_SQRT 2
+#define MN_CALC_OR 3
+#define MN_CALC_XOR 4
+#define MN_CALC_AND 5
+#define MN_CALC_NOT 6
+#define MN_CALC_EQ 7
+#define MN_CALC_NEQ 8
+#define MN_CALC_LEQ 9
+#define MN_CALC_GEQ 10
+#define MN_CALC_LES 11
+#define MN_CALC_GRE 12
+#define MN_CALC_SUM 13
+#define MN_CALC_MEAN 14
+#define MN_CALC_MIN 15
+#define MN_CALC_MAX 16
+#define MN_CALC_SIN 17
+#define MN_CALC_COS 18
+#define MN_CALC_TAN 19
+#define MN_CALC_ASIN 20
+#define MN_CALC_ACOS 21
+#define MN_CALC_ATAN 22
+#define MN_CALC_POW 23
+#define MN_CALC_LISTSEP 24
+#define MN_CALC_ROUND 25
+
+#define MN_POP_OPS 29
+#define MN_POP_STATISTICS 30
+#define MN_POP_FUNC 31
+#define MN_RSC_END 32
+
+#define TBX_FORMULA 1
+#define ED_POS 2
+#define ED_FORMULA 3
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/ribbar/inputwin.src b/sw/source/ui/ribbar/inputwin.src
new file mode 100644
index 000000000000..6caeb7bb5156
--- /dev/null
+++ b/sw/source/ui/ribbar/inputwin.src
@@ -0,0 +1,1137 @@
+/*************************************************************************
+ *
+ * $RCSfile: inputwin.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* HelpID ressource file */
+/* HelpID ressource file */
+
+#include "cmdid.h"
+#include "helpid.h"
+#include "globals.hrc"
+#include "ribbar.hrc"
+#include "inputwin.hrc"
+ToolBox RID_TBX_FORMULA
+{
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 600 , 14 ) ;
+ HelpID = HID_CALC_TOOLBOX ;
+ SVLook = TRUE ;
+ Border = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_FORMULA_CALC ;
+ HelpID = FN_FORMULA_CALC ;
+ DropDown = TRUE ;
+ Text = "Formel" ;
+ Text [ English ] = "Formula" ;
+ Text [ norwegian ] = "Formel" ;
+ Text [ italian ] = "Formula" ;
+ Text [ portuguese_brazilian ] = "Fórmula" ;
+ Text [ portuguese ] = "Fórmula" ;
+ Text [ finnish ] = "Kaava" ;
+ Text [ danish ] = "Formel" ;
+ Text [ french ] = "Formule" ;
+ Text [ swedish ] = "Formel" ;
+ Text [ dutch ] = "Formule" ;
+ Text [ spanish ] = "Fórmula" ;
+ Text [ english_us ] = "Formula" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Formel auswählen : Formel auswõhlen */
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ russian ] = "Ôîðìóëà";
+ Text[ polish ] = "Formu³a";
+ Text[ japanese ] = "”Ž®";
+ Text[ chinese_traditional ] = "¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ";
+ Text[ dutch ] = "Formule";
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "¼ö½Ä";
+ Text[ turkish ] = "Formül";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FORMULA_CANCEL ;
+ HelpID = FN_FORMULA_CANCEL ;
+ Text = "Abbrechen" ;
+ Text [ English ] = "Cancel" ;
+ Text [ norwegian ] = "Avbryt" ;
+ Text [ italian ] = "Annulla" ;
+ Text [ portuguese_brazilian ] = "Cancelar" ;
+ Text [ portuguese ] = "Cancelar" ;
+ Text [ finnish ] = "Peruuta" ;
+ Text [ danish ] = "Annuller" ;
+ Text [ french ] = "Annuler" ;
+ Text [ swedish ] = "Avbryt" ;
+ Text [ dutch ] = "Annuleren" ;
+ Text [ spanish ] = "Cancelar" ;
+ Text [ english_us ] = "Cancel" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Formel nicht übenehmen : Formel nicht ³benehmen */
+ Text[ chinese_simplified ] = "È¡Ïû";
+ Text[ russian ] = "Îòìåíà";
+ Text[ polish ] = "Anuluj";
+ Text[ japanese ] = "·¬Ý¾Ù";
+ Text[ chinese_traditional ] = "¨ú®ø";
+ Text[ arabic ] = "ÅáÛÇÁ ÇáÃãÑ";
+ Text[ dutch ] = "Annuleren";
+ Text[ chinese_simplified ] = "È¡Ïû";
+ Text[ greek ] = "Áêýñùóç";
+ Text[ korean ] = "Ãë¼Ò";
+ Text[ turkish ] = "Ýptal";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FORMULA_APPLY ;
+ HelpID = FN_FORMULA_APPLY ;
+ /* ### ACHTUNG: Neuer Text in Resource? Übernehmen : šbernehmen */
+ Text = "Übernehmen" ;
+ Text [ English ] = "Apply" ;
+ Text [ norwegian ] = "Benytt" ;
+ Text [ italian ] = "Applica" ;
+ Text [ portuguese_brazilian ] = "Aplicar" ;
+ Text [ portuguese ] = "Aplicar" ;
+ Text [ finnish ] = "Käytä" ;
+ Text [ danish ] = "Anvend" ;
+ Text [ french ] = "Appliquer" ;
+ Text [ swedish ] = "Överta" ;
+ Text [ dutch ] = "Overnemen" ;
+ Text [ spanish ] = "Aplicar" ;
+ Text [ english_us ] = "Apply" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Formel einfügen : Formel einf³gen */
+ Text[ chinese_simplified ] = "ʹÓÃ";
+ Text[ russian ] = "Âûïîëíèòü";
+ Text[ polish ] = "Zastosuj";
+ Text[ japanese ] = "“K—p‚·‚é";
+ Text[ chinese_traditional ] = "¨Ï¥Î";
+ Text[ arabic ] = "ÅÏÎÇá";
+ Text[ dutch ] = "Overnemen";
+ Text[ chinese_simplified ] = "ʹÓÃ";
+ Text[ greek ] = "ÅöáñìïãÞ";
+ Text[ korean ] = "Àû¿ë";
+ Text[ turkish ] = "Uygula";
+ };
+ };
+ Edit ED_POS
+ {
+ Border = TRUE ;
+ Size = MAP_APPFONT ( 45 , 11 ) ;
+ ReadOnly = TRUE ;
+ SVLook = TRUE ;
+ Center = TRUE ;
+ };
+ Edit ED_FORMULA
+ {
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Size = MAP_APPFONT ( 500 , 11 ) ;
+ SVLook = TRUE ;
+ };
+};
+Menu MN_CALC_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_CALC_SUM ;
+ HelpID = HID_MN_CALC_SUM ;
+ Text = "~Summe" ;
+ Text [ English ] = "~Sum" ;
+ Text [ dutch ] = "~Soml" ;
+ Text [ spanish ] = "~Suma" ;
+ Text [ english_us ] = "Sum" ;
+ Text [ norwegian ] = "~Sum" ;
+ Text [ italian ] = "~Somma" ;
+ Text [ portuguese_brazilian ] = "~Somatório" ;
+ Text [ portuguese ] = "~Soma" ;
+ Text [ finnish ] = "~Summa" ;
+ Text [ danish ] = "Sum" ;
+ Text [ french ] = "~Somme" ;
+ Text [ swedish ] = "~Summa" ;
+ Text[ chinese_simplified ] = "×ܼÆ";
+ Text[ russian ] = "Ñóììà";
+ Text[ polish ] = "Suma";
+ Text[ japanese ] = "‡Œv";
+ Text[ chinese_traditional ] = "¤p­p";
+ Text[ arabic ] = "ÇáãÌãæÚ";
+ Text[ dutch ] = "~Soml";
+ Text[ chinese_simplified ] = "×ܼÆ";
+ Text[ greek ] = "¢èñïé~óìá";
+ Text[ korean ] = "ÇÕ°è";
+ Text[ turkish ] = "Toplam";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_ROUND ;
+ HelpID = HID_MN_CALC_ROUND ;
+ Text = "Run~den" ;
+ Text [ English ] = "Roun~d" ;
+ Text [ english_us ] = "Round" ;
+ Text [ italian ] = "Arroto~nda" ;
+ Text [ spanish ] = "R~edondear" ;
+ Text [ french ] = "A~rrondir" ;
+ Text [ dutch ] = "~Afronden" ;
+ Text [ swedish ] = "~Avrunda" ;
+ Text [ danish ] = "Rund" ;
+ Text [ portuguese ] = "A~rredondar" ;
+ Text [ portuguese_brazilian ] = "Run~den" ;
+ Text[ chinese_simplified ] = "ת»»³ÉÕûÊý";
+ Text[ russian ] = "Îêðóãëèòü";
+ Text[ polish ] = "Zaokr¹glaj";
+ Text[ japanese ] = "’[”‚ðØ‚èã‚°‚é";
+ Text[ chinese_traditional ] = "Âà´«¦¨¾ã¼Æ";
+ Text[ arabic ] = "ÊÞÑíÈ";
+ Text[ dutch ] = "~Afronden";
+ Text[ chinese_simplified ] = "ת»»³ÉÕûÊý";
+ Text[ greek ] = "Ó~ôñïããõëïðïßçóç";
+ Text[ korean ] = "¹Ý¿Ã¸²";
+ Text[ turkish ] = "Yuvarla";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_PHD ;
+ HelpID = HID_MN_CALC_PHD ;
+ Text = "~Prozent" ;
+ Text [ English ] = "~Percent" ;
+ Text [ dutch ] = "Pro~cent" ;
+ Text [ spanish ] = "~Porcentaje" ;
+ Text [ english_us ] = "Percent" ;
+ Text [ norwegian ] = "~Prosent" ;
+ Text [ italian ] = "~Percentuale" ;
+ Text [ portuguese_brazilian ] = "~Percentual" ;
+ Text [ portuguese ] = "~Percentagem" ;
+ Text [ finnish ] = "~Prosentti" ;
+ Text [ danish ] = "Procent" ;
+ Text [ french ] = "~Pourcentage" ;
+ Text [ swedish ] = "~Procent" ;
+ Text[ chinese_simplified ] = "°Ù·Ö±È(~P)";
+ Text[ russian ] = "Ïðîöåíòû";
+ Text[ polish ] = "Procent";
+ Text[ japanese ] = "Êß°¾ÝÄ";
+ Text[ chinese_traditional ] = "¦Ê¤À¤ñ(~P)";
+ Text[ arabic ] = "ÈÇáãÇÆÉ";
+ Text[ dutch ] = "Pro~cent";
+ Text[ chinese_simplified ] = "°Ù·Ö±È(~P)";
+ Text[ greek ] = "~Ðïóïóôü (%)";
+ Text[ korean ] = "¹éºÐÀ²";
+ Text[ turkish ] = "Yüzde";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_SQRT ;
+ HelpID = HID_MN_CALC_SQRT ;
+ Text = "~Wurzel" ;
+ Text [ English ] = "Square ~Root" ;
+ Text [ dutch ] = "~Vierkantswortel" ;
+ Text [ spanish ] = "~Raíz" ;
+ Text [ english_us ] = "Square Root" ;
+ Text [ norwegian ] = "Kvadrat ~Rot" ;
+ Text [ italian ] = "~Radice" ;
+ Text [ portuguese_brazilian ] = "Raiz ~Quadrada" ;
+ Text [ portuguese ] = "Raíz ~quadrada" ;
+ Text [ finnish ] = "~Neliöjuuri" ;
+ Text [ danish ] = "Kvadratrod" ;
+ Text [ french ] = "~Racine carrée" ;
+ Text [ swedish ] = "~Kvadratrot" ;
+ Text[ chinese_simplified ] = "ƽ·½¸ù(~R)";
+ Text[ russian ] = "Êîðåíü";
+ Text[ polish ] = "Pierwiastek";
+ Text[ japanese ] = "•½•ûª";
+ Text[ chinese_traditional ] = "¥­¤è®Ú(~R)";
+ Text[ arabic ] = "ÌÐÑ";
+ Text[ dutch ] = "~Vierkantswortel";
+ Text[ chinese_simplified ] = "ƽ·½¸ù(~R)";
+ Text[ language_user1 ] = "(ÄÄ) ; - - - - - -";
+ Text[ greek ] = "Ôåôñáã~ùíéêÞ ñßæá";
+ Text[ korean ] = "Á¦°ö±Ù";
+ Text[ turkish ] = "Karekök";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_POW ;
+ HelpID = HID_MN_CALC_POW ;
+ Text = "Poten~ziere" ;
+ Text [ English ] = "Po~wer" ;
+ Text [ dutch ] = "~Machtsverheffen" ;
+ Text [ spanish ] = "Po~tenciando" ;
+ Text [ english_us ] = "Power" ;
+ Text [ norwegian ] = "Po~tens" ;
+ Text [ italian ] = "Elevare a potenza" ;
+ Text [ portuguese_brazilian ] = "Po~tência" ;
+ Text [ portuguese ] = "Elevar a po~tência" ;
+ Text [ finnish ] = "Po~tenssi" ;
+ Text [ danish ] = "Opløft i potens" ;
+ Text [ french ] = "Pu~issance" ;
+ Text [ swedish ] = "~Upphöja" ;
+ Text[ chinese_simplified ] = "³ËÃÝ(~W)";
+ Text[ russian ] = "Ñòåïåíü";
+ Text[ polish ] = "Potêguj";
+ Text[ japanese ] = "—Ýæ";
+ Text[ chinese_traditional ] = "­¼¾­(~W)";
+ Text[ arabic ] = "ÞæÉ";
+ Text[ dutch ] = "~Machtsverheffen";
+ Text[ chinese_simplified ] = "³ËÃÝ(~W)";
+ Text[ greek ] = "¾ø~ùóç óå äýíáìç";
+ Text[ korean ] = "°ö";
+ Text[ turkish ] = "Kuvvet çýkar";
+ };
+ MenuItem
+ {
+ Identifier = MN_POP_OPS ;
+ HelpID = HID_MN_POP_OPS ;
+ Text = "~Operatoren" ;
+ Text [ ENGLISH ] = "~Operators" ;
+ Text [ dutch ] = "O~peratoren" ;
+ Text [ spanish ] = "~Operadores" ;
+ Text [ english_us ] = "Operators" ;
+ Text [ norwegian ] = "+++~Operators" ;
+ Text [ italian ] = "Operatori" ;
+ Text [ portuguese_brazilian ] = "~Operadores" ;
+ Text [ portuguese ] = "~Operadores" ;
+ Text [ finnish ] = "~Operaattorit" ;
+ Text [ danish ] = "Operatorer" ;
+ Text [ french ] = "~Opérateurs" ;
+ Text [ swedish ] = "~Operatorer" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_CALC_LISTSEP ;
+ HelpID = HID_MN_CALC_LISTSEP ;
+ Text = "~Listentrenner" ;
+ Text [ English ] = "Lis~t Separator" ;
+ Text [ dutch ] = "Lijst~scheidingsteken" ;
+ Text [ spanish ] = "~Separador de lista" ;
+ Text [ english_us ] = "List Separator" ;
+ Text [ norwegian ] = "+++Lis~t Separator" ;
+ Text [ italian ] = "~Separatore elenco" ;
+ Text [ portuguese_brazilian ] = "Separador de Lis~ta" ;
+ Text [ portuguese ] = "Separador de lis~ta" ;
+ Text [ finnish ] = "~Luettelon erotin" ;
+ Text [ danish ] = "Listeseparator" ;
+ Text [ french ] = "Séparateur de lis~te" ;
+ Text [ swedish ] = "List~avgränsare" ;
+ Text[ chinese_simplified ] = "Áбí·Ö¸ô·û(~S)";
+ Text[ russian ] = "Ðàçäåëèòåëü ñïèñêà";
+ Text[ polish ] = "Separator list";
+ Text[ japanese ] = "ؽĂ̋æØ‚è‹L†";
+ Text[ chinese_traditional ] = "²M³æ¤À¹j²Å(~S)";
+ Text[ arabic ] = "ÝÇÕá ÇáÞÇÆãÉ";
+ Text[ dutch ] = "Lijst~scheidingsteken";
+ Text[ chinese_simplified ] = "Áбí·Ö¸ô·û(~S)";
+ Text[ greek ] = "Äéá÷ùñéóôéêÜ ~ëßóôáò";
+ Text[ korean ] = "¸ñ·Ï ±¸ºÐÀÚ";
+ Text[ turkish ] = "~Liste öðeleri ayýrýcýsý";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_EQ ;
+ HelpID = HID_MN_CALC_EQ ;
+ Text = "~Gleich" ;
+ Text [ English ] = "~Equal" ;
+ Text [ dutch ] = "~Gelijk aan" ;
+ Text [ spanish ] = "~Igual" ;
+ Text [ english_us ] = "Equal" ;
+ Text [ norwegian ] = "~Lik" ;
+ Text [ italian ] = "~Uguale" ;
+ Text [ portuguese_brazilian ] = "~Igual" ;
+ Text [ portuguese ] = "~Igual" ;
+ Text [ finnish ] = "~Yhtä suuri kuin" ;
+ Text [ danish ] = "Lig med" ;
+ Text [ french ] = "~Égal" ;
+ Text [ swedish ] = "~Lika med" ;
+ Text[ chinese_simplified ] = "µÈÓÚ(~E)";
+ Text[ russian ] = "Ðàâíî";
+ Text[ polish ] = "Równy";
+ Text[ japanese ] = "“™‚µ‚¢";
+ Text[ chinese_traditional ] = "µ¥©ó(~E)";
+ Text[ arabic ] = "íÓÇæí";
+ Text[ dutch ] = "~Gelijk aan";
+ Text[ chinese_simplified ] = "µÈÓÚ(~E)";
+ Text[ greek ] = "º~óï";
+ Text[ korean ] = "µ¿ÀÏ";
+ Text[ turkish ] = "Eþittir";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_NEQ ;
+ HelpID = HID_MN_CALC_NEQ ;
+ Text = "~Nicht Gleich" ;
+ Text [ English ] = "~Not Equal" ;
+ Text [ dutch ] = "~Niet gelijk aan" ;
+ Text [ spanish ] = "~No igual" ;
+ Text [ english_us ] = "Not Equal" ;
+ Text [ norwegian ] = "~Ulik" ;
+ Text [ italian ] = "Non uguale" ;
+ Text [ portuguese_brazilian ] = "~Não Igual" ;
+ Text [ portuguese ] = "~Desigual" ;
+ Text [ finnish ] = "~Eri suuri kuin" ;
+ Text [ danish ] = "Forskellig fra" ;
+ Text [ french ] = "D~ifférent" ;
+ Text [ swedish ] = "~Inte lika med" ;
+ Text[ chinese_simplified ] = "²»µÈÓÚ(~N)";
+ Text[ russian ] = "Íå ðàâíî";
+ Text[ polish ] = "Nie równy";
+ Text[ japanese ] = "“™‚µ‚­‚È‚¢";
+ Text[ chinese_traditional ] = "¤£µ¥©ó(~N)";
+ Text[ arabic ] = "áÇ íÓÇæí";
+ Text[ dutch ] = "~Niet gelijk aan";
+ Text[ chinese_simplified ] = "²»µÈÓÚ(~N)";
+ Text[ greek ] = "~ÄéÜöïñï";
+ Text[ korean ] = "µ¿ÀÏÇÏÁö ¾ÊÀ½";
+ Text[ turkish ] = "Eþit deðil";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_LEQ ;
+ HelpID = HID_MN_CALC_LEQ ;
+ Text = "~Kleiner Gleich" ;
+ Text [ English ] = "Le~ss Equal" ;
+ Text [ dutch ] = "~Kleiner dan of gelijk aan" ;
+ Text [ spanish ] = "Me~nor o igual" ;
+ Text [ english_us ] = "Less Than or Equal" ;
+ Text [ norwegian ] = "Mind~re enn" ;
+ Text [ italian ] = "Minore o uguale" ;
+ Text [ portuguese_brazilian ] = "Me~nor ou Igual" ;
+ Text [ portuguese ] = "Me~nor ou igual" ;
+ Text [ finnish ] = "P~ienempi tai yhtä kuin" ;
+ Text [ danish ] = "Mindre end eller lig med" ;
+ Text [ french ] = "I~nférieur ou égal à" ;
+ Text [ swedish ] = "Mi~ndre än eller lika med" ;
+ Text[ chinese_simplified ] = "СÓÚ»òµÈÓÚ(~Q)";
+ Text[ russian ] = "Ìåíüøå èëè ðàâíî";
+ Text[ polish ] = "Mniejszy lub równy";
+ Text[ japanese ] = "¬‚Ȃ貺°Ù";
+ Text[ chinese_traditional ] = "¤p©ó©Îµ¥©ó(~Q)";
+ Text[ arabic ] = "ÃÕÛÑ ãä Ãæ íÓÇæí";
+ Text[ dutch ] = "~Kleiner dan of gelijk aan";
+ Text[ chinese_simplified ] = "СÓÚ»òµÈÓÚ(~Q)";
+ Text[ greek ] = "Ìé~êñüôåñï Þ ßóï";
+ Text[ korean ] = "ÀÌÇÏ";
+ Text[ turkish ] = "Küçük ya da eþittir";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_GEQ ;
+ HelpID = HID_MN_CALC_GEQ ;
+ /* ### ACHTUNG: Neuer Text in Resource? Gr~ößer Gleich : Gr~÷˜er Gleich */
+ Text = "Gr~ößer Gleich" ;
+ Text [ English ] = "~Greater Equal" ;
+ Text [ dutch ] = "G~roter dan of gelijk aan" ;
+ Text [ spanish ] = "M~ayor o igual" ;
+ Text [ english_us ] = "Greater Than or Equal" ;
+ Text [ norwegian ] = "~Større enn" ;
+ Text [ italian ] = "~Maggiore uguale" ;
+ Text [ portuguese_brazilian ] = "~Maior ou Igual" ;
+ Text [ portuguese ] = "M~aior ou igual" ;
+ Text [ finnish ] = "S~uurempi tai yhtä kuin" ;
+ Text [ danish ] = "Større end lig med" ;
+ Text [ french ] = "~Supérieur ou égal" ;
+ Text [ swedish ] = "St~örre än eller lika med" ;
+ Text[ chinese_simplified ] = "´óÓÚ»òµÈÓÚ(~G)";
+ Text[ russian ] = "Áîëüøå èëè ðàâíî";
+ Text[ polish ] = "Wiêkszy lub równy";
+ Text[ japanese ] = "‘å‚Ȃ貺°Ù";
+ Text[ chinese_traditional ] = "¤j©ó©Îµ¥©ó(~G)";
+ Text[ arabic ] = "ÃßÈÑ ãä Ãæ íÓÇæí";
+ Text[ dutch ] = "G~roter dan of gelijk aan";
+ Text[ chinese_simplified ] = "´óÓÚ»òµÈÓÚ(~G)";
+ Text[ greek ] = "Ìå~ãáëýôåñï Þ ßóï";
+ Text[ korean ] = "ÀÌ»ó";
+ Text[ turkish ] = "Büyük ya da eþittir";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_LES ;
+ HelpID = HID_MN_CALC_LES ;
+ Text = "Kle~iner" ;
+ Text [ English ] = "~Less" ;
+ Text [ dutch ] = "K~leiner" ;
+ Text [ spanish ] = "M~enor" ;
+ Text [ english_us ] = "Less" ;
+ Text [ norwegian ] = "~Mindre" ;
+ Text [ italian ] = "Minore" ;
+ Text [ portuguese_brazilian ] = "~Menos" ;
+ Text [ portuguese ] = "~Menor" ;
+ Text [ finnish ] = "~Pienempi kuin" ;
+ Text [ danish ] = "Mindre end" ;
+ Text [ french ] = "In~férieur" ;
+ Text [ swedish ] = "~Mindre än" ;
+ Text[ chinese_simplified ] = "СÓÚ(~L)";
+ Text[ russian ] = "Ìåíüøå";
+ Text[ polish ] = "Mniejszy";
+ Text[ japanese ] = "‚æ‚è­‚È‚¢";
+ Text[ chinese_traditional ] = "¤p©ó(~L)";
+ Text[ arabic ] = "ÃÕÛÑ";
+ Text[ dutch ] = "K~leiner";
+ Text[ chinese_simplified ] = "СÓÚ(~L)";
+ Text[ greek ] = "Ì~éêñüôåñï";
+ Text[ korean ] = "¹Ì¸¸";
+ Text[ turkish ] = "Küçüktür";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_GRE ;
+ HelpID = HID_MN_CALC_GRE ;
+ /* ### ACHTUNG: Neuer Text in Resource? G~rößer : G~r÷˜er */
+ Text = "G~rößer" ;
+ Text [ English ] = "G~reater" ;
+ Text [ dutch ] = "Gro~ter" ;
+ Text [ spanish ] = "~Mayor" ;
+ Text [ english_us ] = "Greater" ;
+ Text [ norwegian ] = "S~tørre" ;
+ Text [ italian ] = "Maggiore" ;
+ Text [ portuguese_brazilian ] = "M~aior" ;
+ Text [ portuguese ] = "M~aior" ;
+ Text [ finnish ] = "~Suurempi kuin" ;
+ Text [ danish ] = "Større end" ;
+ Text [ french ] = "S~upérieur" ;
+ Text [ swedish ] = "~Större än" ;
+ Text[ chinese_simplified ] = "´óÓÚ(~R)";
+ Text[ russian ] = "Áîëüøå";
+ Text[ polish ] = "Wiêkszy";
+ Text[ japanese ] = "‚æ‚è‘å‚«‚¢";
+ Text[ chinese_traditional ] = "¤j©ó(~R)";
+ Text[ arabic ] = "ÃßÈÑ";
+ Text[ dutch ] = "Gro~ter";
+ Text[ chinese_simplified ] = "´óÓÚ(~R)";
+ Text[ greek ] = "Ìåãáëýôå~ñï";
+ Text[ korean ] = "ÃÊ°ú";
+ Text[ turkish ] = "Büyüktür";
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_OR ;
+ HelpID = HID_MN_CALC_OR ;
+ Text = "Logisches ~Oder" ;
+ Text [ English ] = "Logical ~Or" ;
+ Text [ dutch ] = "Logisch ~Of" ;
+ Text [ spanish ] = "~O lógico" ;
+ Text [ english_us ] = "Boolean Or" ;
+ Text [ norwegian ] = "Logisk ~Eller" ;
+ Text [ italian ] = "Logica ~O" ;
+ Text [ portuguese_brazilian ] = "Ou lógico ~" ;
+ Text [ portuguese ] = "~OU lógico" ;
+ Text [ finnish ] = "Looginen ~Or" ;
+ Text [ danish ] = "Logisk ELLER" ;
+ Text [ french ] = "~OU logique" ;
+ Text [ swedish ] = "Logiskt ~Eller" ;
+ Text[ chinese_simplified ] = "Âß¼­µÄ ~Or";
+ Text[ russian ] = "Ëîãè÷åñêîå Èëè";
+ Text[ polish ] = "Funkcja logiczna LUB";
+ Text[ japanese ] = "˜_—Ï(Or)";
+ Text[ chinese_traditional ] = "Å޿誺 ~Or";
+ Text[ arabic ] = "Ãæ ãäØÞíÉ";
+ Text[ dutch ] = "Logisch ~Of";
+ Text[ chinese_simplified ] = "Âß¼­µÄ ~Or";
+ Text[ greek ] = "ÔåëåóôÞò ~Or ôïõ Boole";
+ Text[ korean ] = "ºÒ¸®¾ð Or";
+ Text[ turkish ] = "Mantýksal Veya";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_XOR ;
+ HelpID = HID_MN_CALC_XOR ;
+ Text = "Logisches E~xklusives Oder" ;
+ Text [ English ] = "Logical ~Xor" ;
+ Text [ dutch ] = "Logisch e~xclusief Of" ;
+ Text [ spanish ] = "O lógico e~xclusivo" ;
+ Text [ english_us ] = "Boolean Xor" ;
+ Text [ norwegian ] = "Logisk ~Xeller" ;
+ Text [ italian ] = "Logica O esclusiva" ;
+ Text [ portuguese_brazilian ] = "Xou lógico" ;
+ Text [ portuguese ] = "OU lógico e~xclusivo" ;
+ Text [ finnish ] = "Looginen ~Xor" ;
+ Text [ danish ] = "Logisk eksklusiv ELLER" ;
+ Text [ french ] = "Ou logique e~xclusif" ;
+ Text [ swedish ] = "Logiskt E~xklusivt Eller" ;
+ Text[ chinese_simplified ] = "Âß¼­µÄ³ýÍâµÄ Or";
+ Text[ russian ] = "Ëîãè÷åñêîå ðàçäåëèòåëüíîå \"èëè\"";
+ Text[ polish ] = "Wy³¹czna funkcja logiczna LUB";
+ Text[ japanese ] = "˜_—˜a(Xor)";
+ Text[ chinese_traditional ] = "Å޿誺°£¥~ªº Or";
+ Text[ arabic ] = "Ãæ ãäØÞíÉ ÎÇÕÉ";
+ Text[ dutch ] = "Logisch e~xclusief Of";
+ Text[ chinese_simplified ] = "Âß¼­µÄ³ýÍâµÄ Or";
+ Text[ greek ] = "ÔåëåóôÞò ~Xor ôïõ Boole";
+ Text[ korean ] = "ºÒ¸®¾ð Xor";
+ Text[ turkish ] = "Mantýksal ~tek Veya";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_AND ;
+ HelpID = HID_MN_CALC_AND ;
+ Text = "Logisches ~Und" ;
+ Text [ English ] = "Logical ~And" ;
+ Text [ dutch ] = "Logisch ~En" ;
+ Text [ spanish ] = "~Y lógico" ;
+ Text [ english_us ] = "Boolean And" ;
+ Text [ norwegian ] = "Logisk ~Og" ;
+ Text [ italian ] = "Logica ~E" ;
+ Text [ portuguese_brazilian ] = "E ~lógico" ;
+ Text [ portuguese ] = "~E lógico" ;
+ Text [ finnish ] = "Looginen ~And" ;
+ Text [ danish ] = "Logisk OG" ;
+ Text [ french ] = "~ET logique" ;
+ Text [ swedish ] = "Logiskt ~Och" ;
+ Text[ chinese_simplified ] = "Âß¼­µÄ ~And";
+ Text[ russian ] = "Ëîãè÷åñêîå ~È";
+ Text[ polish ] = "Funkcja logiczna ORAZ";
+ Text[ japanese ] = "˜_—Ï(And)";
+ Text[ chinese_traditional ] = "Å޿誺 ~And";
+ Text[ arabic ] = "æ ãäØÞíÉ";
+ Text[ dutch ] = "Logisch ~En";
+ Text[ chinese_simplified ] = "Âß¼­µÄ ~And";
+ Text[ greek ] = "ÔåëåóôÞò ~And ôïõ Boole";
+ Text[ korean ] = "ºÒ¸®¾ð And";
+ Text[ turkish ] = "Mantýksal ~Ve";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_NOT ;
+ HelpID = HID_MN_CALC_NOT ;
+ Text = "Logi~sches Nicht" ;
+ Text [ English ] = "Log~ical Not" ;
+ Text [ dutch ] = "Log~isch Niet" ;
+ Text [ spanish ] = "~No lógico" ;
+ Text [ english_us ] = "Boolean Not" ;
+ Text [ norwegian ] = "Log~isk Ikke" ;
+ Text [ italian ] = "Logica Non" ;
+ Text [ portuguese_brazilian ] = "Não Lóg~ico" ;
+ Text [ portuguese ] = "~NÃO lógico" ;
+ Text [ finnish ] = "Looginen ~Not" ;
+ Text [ danish ] = "Logisk IKKE" ;
+ Text [ french ] = "NON log~ique" ;
+ Text [ swedish ] = "Logiskt I~nte" ;
+ Text[ chinese_simplified ] = "Âß¼­µÄ Not";
+ Text[ russian ] = "Ëîãè÷åñêîå Íå";
+ Text[ polish ] = "Funkcja logiczna NIE";
+ Text[ japanese ] = "˜_—”Û’è(Not)";
+ Text[ chinese_traditional ] = "Å޿誺 Not";
+ Text[ arabic ] = "áÇ ãäØÞíÉ";
+ Text[ dutch ] = "Log~isch Niet";
+ Text[ chinese_simplified ] = "Âß¼­µÄ Not";
+ Text[ greek ] = "Ôåëå~óôÞò Not ôïõ Boole";
+ Text[ korean ] = "ºÒ¸®¾ð Not";
+ Text[ turkish ] = "Matýk~al Deðil";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "ÔËËã·û(~O)";
+ Text[ russian ] = "Îïåðàòîðû";
+ Text[ polish ] = "Operatory";
+ Text[ japanese ] = "‰‰ŽZŽq";
+ Text[ chinese_traditional ] = "¹Bºâ²Å(~O)";
+ Text[ arabic ] = "ÚæÇãá ÇáÊÔÛíá";
+ Text[ dutch ] = "O~peratoren";
+ Text[ chinese_simplified ] = "ÔËËã·û(~O)";
+ Text[ greek ] = "~ÔåëåóôÝò";
+ Text[ korean ] = "¿¬»êÀÚ";
+ Text[ turkish ] = "Ýþleçler";
+ };
+ MenuItem
+ {
+ Identifier = MN_POP_STATISTICS ;
+ HelpID = HID_MN_POP_STATISTICS ;
+ Text = "S~tatistische Funktionen" ;
+ Text [ ENGLISH ] = "S~tatistical Functions" ;
+ Text [ dutch ] = "~Statistische functies" ;
+ Text [ spanish ] = "F~unciones estadísticas" ;
+ Text [ english_us ] = "Statistical Functions" ;
+ Text [ norwegian ] = "S~tatistiske Funksjoner" ;
+ Text [ italian ] = "Funzioni statistiche" ;
+ Text [ portuguese_brazilian ] = "Funç~oes Estatísticas" ;
+ Text [ portuguese ] = "Funções e~statísticas" ;
+ Text [ finnish ] = "~Tilastofunktiot" ;
+ Text [ danish ] = "Statistiske funktioner" ;
+ Text [ french ] = "Fonctions s~tatistiques" ;
+ Text [ swedish ] = "S~tatistiska funktioner" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_CALC_MEAN ;
+ HelpID = HID_MN_CALC_MEAN ;
+ Text = "~Mittelwert" ;
+ Text [ English ] = "Average" ;
+ Text [ dutch ] = "~Gemiddelde waarde" ;
+ Text [ spanish ] = "Pro~medio" ;
+ Text [ english_us ] = "Mean" ;
+ Text [ norwegian ] = "Gjennomsnitt" ;
+ Text [ italian ] = "Valore medio" ;
+ Text [ portuguese_brazilian ] = "Média" ;
+ Text [ portuguese ] = "~Média" ;
+ Text [ finnish ] = "Keskiarvo" ;
+ Text [ danish ] = "Middel" ;
+ Text [ french ] = "~Moyenne" ;
+ Text [ swedish ] = "M~edelvärde" ;
+ Text[ chinese_simplified ] = "ƽ¾ùÖµ(~M)";
+ Text[ russian ] = "Ñðåäíåå çíà÷åíèå";
+ Text[ polish ] = "Œrednia wartoœæ";
+ Text[ japanese ] = "•½‹Ï’l";
+ Text[ chinese_traditional ] = "¥­§¡­È(~M)";
+ Text[ arabic ] = "ÇáãÚÏá";
+ Text[ dutch ] = "~Gemiddelde waarde";
+ Text[ chinese_simplified ] = "ƽ¾ùÖµ(~M)";
+ Text[ greek ] = "~ÌÝóç ôéìÞ";
+ Text[ korean ] = "Æò±Õ";
+ Text[ turkish ] = "Ortalama deðer";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_MIN ;
+ HelpID = HID_MN_CALC_MIN ;
+ Text = "Mi~nimalwert" ;
+ Text [ English ] = "Minimum" ;
+ Text [ dutch ] = "M~inimumwaarde" ;
+ Text [ spanish ] = "Valor mí~nimo" ;
+ Text [ english_us ] = "Minimum" ;
+ Text [ norwegian ] = "Minimum" ;
+ Text [ italian ] = "Valore minimo" ;
+ Text [ portuguese_brazilian ] = "Mínimo" ;
+ Text [ portuguese ] = "Valor mí~nimo" ;
+ Text [ finnish ] = "Vähintään" ;
+ Text [ danish ] = "Minimumværdi" ;
+ Text [ french ] = "~Minimum" ;
+ Text [ swedish ] = "M~inimum" ;
+ Text[ chinese_simplified ] = "×îСֵ(~N)";
+ Text[ russian ] = "Ìèíèìàëüíîå çíà÷åíèå";
+ Text[ polish ] = "Minimum";
+ Text[ japanese ] = "Ŭ’l";
+ Text[ chinese_traditional ] = "³Ì¤p­È(~N)";
+ Text[ arabic ] = "ÃÏäì ÞíãÉ";
+ Text[ dutch ] = "M~inimumwaarde";
+ Text[ chinese_simplified ] = "×îСֵ(~N)";
+ Text[ greek ] = "ÅëÜ÷éóôç ôé~ìÞ";
+ Text[ korean ] = "ÃÖ¼Ò";
+ Text[ turkish ] = "Asgari deðer";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_MAX ;
+ HelpID = HID_MN_CALC_MAX ;
+ Text = "Ma~ximalwert" ;
+ Text [ English ] = "Maximum" ;
+ Text [ dutch ] = "~Maximumwaarde" ;
+ Text [ spanish ] = "Valor má~ximo" ;
+ Text [ english_us ] = "Maximum" ;
+ Text [ norwegian ] = "Maksimum" ;
+ Text [ italian ] = "Valore massimo" ;
+ Text [ portuguese_brazilian ] = "Máximo" ;
+ Text [ portuguese ] = "Valor má~ximo" ;
+ Text [ finnish ] = "Suurin arvo" ;
+ Text [ danish ] = "Maksimumværdi" ;
+ Text [ french ] = "Ma~ximum" ;
+ Text [ swedish ] = "M~aximum" ;
+ Text[ chinese_simplified ] = "×î´óÖµ(~X)";
+ Text[ russian ] = "Ìàêñèìàëüíîå çíà÷åíèå";
+ Text[ polish ] = "Maksimum";
+ Text[ japanese ] = "Å‘å’l";
+ Text[ chinese_traditional ] = "³Ì¤j­È(~X)";
+ Text[ arabic ] = "ÃÞÕì ÞíãÉ";
+ Text[ dutch ] = "~Maximumwaarde";
+ Text[ chinese_simplified ] = "×î´óÖµ(~X)";
+ Text[ greek ] = "ÌÝ~ãéóôç ôéìÞ";
+ Text[ korean ] = "ÃÖ´ë";
+ Text[ turkish ] = "Azami deðer";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "ͳ¼Æ¹¦ÄÜ(~T)";
+ Text[ russian ] = "Ñòàòèñòè÷åñêèå ôóíêöèè";
+ Text[ polish ] = "Funkcje statystyczne";
+ Text[ japanese ] = "“ŒvŠw“IŠÖ”";
+ Text[ chinese_traditional ] = "²Î­p¥\\¯à(~T)";
+ Text[ arabic ] = "ÏÇáÇÊ ÅÍÕÇÆíÉ";
+ Text[ dutch ] = "~Statistische functies";
+ Text[ chinese_simplified ] = "ͳ¼Æ¹¦ÄÜ(~T)";
+ Text[ greek ] = "Ó~ôáôéóôéêÝò óõíáñôÞóåéò";
+ Text[ korean ] = "Åë°è ÇÔ¼ö";
+ Text[ turkish ] = "Ýstatistik iþlevleri";
+ };
+ MenuItem
+ {
+ Identifier = MN_POP_FUNC ;
+ HelpID = HID_MN_POP_FUNC ;
+ Text = "~Funktionen" ;
+ Text [ ENGLISH ] = "~Functions" ;
+ Text [ dutch ] = "~Functies" ;
+ Text [ spanish ] = "~Funciones" ;
+ Text [ english_us ] = "Functions" ;
+ Text [ norwegian ] = "~Funksjoner" ;
+ Text [ italian ] = "Funzioni" ;
+ Text [ portuguese_brazilian ] = "~Funções" ;
+ Text [ portuguese ] = "~Funções" ;
+ Text [ finnish ] = "~Funktiot" ;
+ Text [ danish ] = "Funktioner" ;
+ Text [ french ] = "~Fonctions" ;
+ Text [ swedish ] = "~Funktioner" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = MN_CALC_SIN ;
+ HelpID = HID_MN_CALC_SIN ;
+ Text = "~Sinus" ;
+ Text [ english ] = "~Sinus" ;
+ Text [ english_us ] = "Sine" ;
+ Text [ portuguese_brazilian ] = "~Sinus" ;
+ Text [ swedish ] = "~sinus" ;
+ Text [ danish ] = "Sinus" ;
+ Text [ italian ] = "~Seno" ;
+ Text [ spanish ] = "~Seno" ;
+ Text [ french ] = "~Sinus" ;
+ Text [ dutch ] = "~Sinus" ;
+ Text [ portuguese ] = "~Seno" ;
+ Text[ chinese_simplified ] = "ÕýÏÒ(~S)";
+ Text[ russian ] = "Ñèíóñ";
+ Text[ polish ] = "Sinus";
+ Text[ japanese ] = "»²Ý";
+ Text[ chinese_traditional ] = "¥¿©¶(~S)";
+ Text[ arabic ] = "ÌíÈ ÇáÒÇæíÉ";
+ Text[ dutch ] = "~Sinus";
+ Text[ chinese_simplified ] = "ÕýÏÒ(~S)";
+ Text[ greek ] = "~Çìßôïíï";
+ Text[ korean ] = "»çÀÎ";
+ Text[ turkish ] = "Sinüs";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_COS ;
+ HelpID = HID_MN_CALC_COS ;
+ Text = "~Cosinus" ;
+ Text [ english ] = "~Cosinus" ;
+ Text [ english_us ] = "Cosine" ;
+ Text [ portuguese_brazilian ] = "~Cosinus" ;
+ Text [ swedish ] = "~cosinus" ;
+ Text [ danish ] = "Cosinus" ;
+ Text [ italian ] = "~Coseno" ;
+ Text [ spanish ] = "~Coseno" ;
+ Text [ french ] = "~Cosinus" ;
+ Text [ dutch ] = "~Cosinus" ;
+ Text [ portuguese ] = "~Coseno" ;
+ Text[ chinese_simplified ] = "ÓàÏÒ(~C)";
+ Text[ russian ] = "Êîñèíóñ";
+ Text[ polish ] = "Cosinus";
+ Text[ japanese ] = "º»²Ý";
+ Text[ chinese_traditional ] = "§E©¶(~C)";
+ Text[ arabic ] = "ÌíÈ ÊãÇã";
+ Text[ dutch ] = "~Cosinus";
+ Text[ chinese_simplified ] = "ÓàÏÒ(~C)";
+ Text[ greek ] = "~Óõíçìßôïíï";
+ Text[ korean ] = "ÄÚ»çÀÎ";
+ Text[ turkish ] = "Kosinüs";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_TAN ;
+ HelpID = HID_MN_CALC_TAN ;
+ Text = "~Tangens" ;
+ Text [ english ] = "~Tangens" ;
+ Text [ english_us ] = "Tangent" ;
+ Text [ portuguese_brazilian ] = "~Tangens" ;
+ Text [ swedish ] = "~tangens" ;
+ Text [ danish ] = "Tangens" ;
+ Text [ italian ] = "~Tangente" ;
+ Text [ spanish ] = "~Tangente" ;
+ Text [ french ] = "~Tangente" ;
+ Text [ dutch ] = "~Tangens" ;
+ Text [ portuguese ] = "~Tangente" ;
+ Text[ chinese_simplified ] = "ÕýÇÐ(~T)";
+ Text[ russian ] = "Òàíãåíñ";
+ Text[ polish ] = "Tangens";
+ Text[ japanese ] = "ÀݼުÝÄ";
+ Text[ chinese_traditional ] = "¥¿¤Á(~T)";
+ Text[ arabic ] = "Ùá";
+ Text[ dutch ] = "~Tangens";
+ Text[ chinese_simplified ] = "ÕýÇÐ(~T)";
+ Text[ greek ] = "Åöáð~ôïìÝíç";
+ Text[ korean ] = "źÁ¨Æ®";
+ Text[ turkish ] = "Tanjant";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_ASIN ;
+ HelpID = HID_MN_CALC_ASIN ;
+ Text = "~Arcussinus" ;
+ Text [ english ] = "~Arcussinus" ;
+ Text [ english_us ] = "Arcsine" ;
+ Text [ portuguese_brazilian ] = "~Arcussinus" ;
+ Text [ swedish ] = "~arcussinus" ;
+ Text [ danish ] = "Arcus sinus" ;
+ Text [ italian ] = "~Arcoseno" ;
+ Text [ spanish ] = "Seno de ~arco" ;
+ Text [ french ] = "~Arc sinus" ;
+ Text [ dutch ] = "~Boogsinus" ;
+ Text [ portuguese ] = "~Arco seno" ;
+ Text[ chinese_simplified ] = "·´ÕýÏÒ";
+ Text[ russian ] = "Àðêñèíóñ";
+ Text[ polish ] = "Arcus sinus";
+ Text[ japanese ] = "±°¸»²Ý";
+ Text[ chinese_traditional ] = "¤Ï¥¿©¶";
+ Text[ arabic ] = "ãÞÇÈá ÇáÌíÈ";
+ Text[ dutch ] = "~Boogsinus";
+ Text[ chinese_simplified ] = "·´ÕýÏÒ";
+ Text[ greek ] = "~Ôüîï çìéôüíïõ";
+ Text[ korean ] = "¾ÆÅ©»çÀÎ";
+ Text[ turkish ] = "Arksinüs";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_ACOS ;
+ HelpID = HID_MN_CALC_ACOS ;
+ Text = "A~rcuscosinus" ;
+ Text [ english ] = "A~rcuscosinus" ;
+ Text [ english_us ] = "Arccosine" ;
+ Text [ portuguese_brazilian ] = "A~rcuscosinus" ;
+ Text [ swedish ] = "a~rcuscosinus" ;
+ Text [ danish ] = "Arcus cosinus" ;
+ Text [ italian ] = "A~rcocoseno" ;
+ Text [ spanish ] = "Coseno de a~rco" ;
+ Text [ french ] = "~Arc cosinus" ;
+ Text [ dutch ] = "B~oogcosinus" ;
+ Text [ portuguese ] = "Arco cose~no" ;
+ Text[ chinese_simplified ] = "·´ÓàÏÒ";
+ Text[ russian ] = "Àðêêîñèíóñ";
+ Text[ polish ] = "Arcus cosinus";
+ Text[ japanese ] = "±°¸º»²Ý";
+ Text[ chinese_traditional ] = "¤Ï§E©¶";
+ Text[ arabic ] = "ãÞÇÈá ÌíÈ ÇáÊãÇã";
+ Text[ dutch ] = "B~oogcosinus";
+ Text[ chinese_simplified ] = "·´ÓàÏÒ";
+ Text[ greek ] = "Ôü~îï óõíçìéôüíïõ";
+ Text[ korean ] = "¾ÆÅ© ÄÚ»çÀÎ";
+ Text[ turkish ] = "Arkkosinüs";
+ };
+ MenuItem
+ {
+ Identifier = MN_CALC_ATAN ;
+ HelpID = HID_MN_CALC_ATAN ;
+ Text = "Arcustan~gens" ;
+ Text [ english ] = "Arcustan~gens" ;
+ Text [ english_us ] = "Arctangent" ;
+ Text [ portuguese_brazilian ] = "Arcustan~gens" ;
+ Text [ swedish ] = "arcustan~gens" ;
+ Text [ danish ] = "Arcus tangens" ;
+ Text [ italian ] = "Arcotan~gente" ;
+ Text [ spanish ] = "~Tangente de arco" ;
+ Text [ french ] = "Arc tan~gente" ;
+ Text [ dutch ] = "Boogtan~gens" ;
+ Text [ portuguese ] = "~Arco tangente" ;
+ Text[ chinese_simplified ] = "·´ÕýÇÐ";
+ Text[ russian ] = "Àðêòàíãåíñ";
+ Text[ polish ] = "Arcus tangens";
+ Text[ japanese ] = "±°¸ÀݼުÝÄ";
+ Text[ chinese_traditional ] = "¤Ï¥¿¤Á";
+ Text[ arabic ] = "ãÞÇÈá ÇáÙá";
+ Text[ dutch ] = "Boogtan~gens";
+ Text[ chinese_simplified ] = "·´ÕýÇÐ";
+ Text[ greek ] = "Ôüîï å~öáðôïìÝíçò";
+ Text[ korean ] = "¾ÆÅ© źÁ¨Æ®";
+ Text[ turkish ] = "Arktanjant";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "º¯Êý(~F)";
+ Text[ russian ] = "Ôóíêöèè";
+ Text[ polish ] = "Funkcje";
+ Text[ japanese ] = "ŠÖ”";
+ Text[ chinese_traditional ] = "¨ç¼Æ(~F)";
+ Text[ arabic ] = "ÏÇáÇÊ";
+ Text[ dutch ] = "~Functies";
+ Text[ chinese_simplified ] = "º¯Êý(~F)";
+ Text[ language_user1 ] = "(ÄÄ) ; - - - - - -";
+ Text[ greek ] = "~ÓõíáñôÞóåéò";
+ Text[ korean ] = "ÇÔ¼ö";
+ Text[ turkish ] = "Ýþlevler";
+ };
+ };
+};
+String STR_FORMULA
+{
+ Text = "Textformel" ;
+ Text [ ENGLISH ] = "Text Formula" ;
+ Text [ dutch ] = "Tekstformule" ;
+ Text [ spanish ] = "Fórmula de texto" ;
+ Text [ english_us ] = "Text formula" ;
+ Text [ norwegian ] = "Tekstformel" ;
+ Text [ italian ] = "Formula testo" ;
+ Text [ portuguese_brazilian ] = "Fórmula do Texto" ;
+ Text [ portuguese ] = "Fórmula do texto" ;
+ Text [ finnish ] = "Tekstikaava" ;
+ Text [ danish ] = "Tekstformel" ;
+ Text [ french ] = "Formule texte" ;
+ Text [ swedish ] = "Textformel" ;
+ Text[ chinese_simplified ] = "Îı¾±í¸ñ";
+ Text[ russian ] = "Ôîðìóëà òåêñòà";
+ Text[ polish ] = "Formu³a tekstu";
+ Text[ japanese ] = "÷½ÄŒ`Ž®";
+ Text[ chinese_traditional ] = "¤å¦rªí®æ";
+ Text[ arabic ] = "ÕíÛÉ ÇáäÕ";
+ Text[ dutch ] = "Tekstformule";
+ Text[ chinese_simplified ] = "Îı¾±í¸ñ";
+ Text[ language_user1 ] = "(ÄÄ) ; - - - - - -";
+ Text[ greek ] = "Ôýðïò êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ¼ö½Ä";
+ Text[ turkish ] = "Metin formulü";
+};
+#define TB_INPUT \
+ ToolBoxItem\
+ {\
+ Identifier = FN_FORMULA_CALC ; \
+ HelpID = FN_FORMULA_CALC ; \
+ Text = "Formel" ; \
+ Text [ English ] = "Formula" ; \
+ Text [ norwegian ] = "Formel" ; \
+ Text [ italian ] = "Formula" ; \
+ Text [ portuguese_brazilian ] = "Fórmula" ; \
+ Text [ portuguese ] = "Fórmula" ; \
+ Text [ finnish ] = "Kaava" ; \
+ Text [ danish ] = "Formel" ; \
+ Text [ french ] = "Formule" ; \
+ Text [ swedish ] = "Formel" ; \
+ Text [ dutch ] = "Formule" ; \
+ Text [ spanish ] = "Fórmula" ; \
+ Text [ english_us ] = "Formula" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Formel auswählen : Formel auswõhlen */\
+ Text[ chinese_simplified ] = "¹«Ê½";\
+ Text[ russian ] = "Ôîðìóëà";\
+ Text[ polish ] = "Formu³a";\
+ Text[ japanese ] = "”Ž®";\
+ Text[ chinese_traditional ] = "¤½¦¡";\
+ Text[ arabic ] = "ÕíÛÉ";\
+ Text[ dutch ] = "Formule";\
+ Text[ chinese_simplified ] = "¹«Ê½";\
+ Text[ greek ] = "Ôýðïò";\
+ Text[ korean ] = "¼ö½Ä";\
+ Text[ turkish ] = "Formül";\
+ };\
+ ToolBoxItem\
+ {\
+ Identifier = FN_FORMULA_CANCEL ; \
+ HelpID = FN_FORMULA_CANCEL ; \
+ Text = "Abbrechen" ; \
+ Text [ English ] = "Cancel" ; \
+ Text [ norwegian ] = "Avbryt" ; \
+ Text [ italian ] = "Annulla" ; \
+ Text [ portuguese_brazilian ] = "Cancelar" ; \
+ Text [ portuguese ] = "Cancelar" ; \
+ Text [ finnish ] = "Peruuta" ; \
+ Text [ danish ] = "Annuller" ; \
+ Text [ french ] = "Annuler " ; \
+ Text [ swedish ] = "Avbryt" ; \
+ Text [ dutch ] = "Annuleren" ; \
+ Text [ spanish ] = "Cancelar" ; \
+ Text [ english_us ] = "Cancel" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Formel nicht übenehmen : Formel nicht ³benehmen */\
+ Text[ chinese_simplified ] = "È¡Ïû";\
+ Text[ russian ] = "Îòìåíà";\
+ Text[ polish ] = "Anuluj";\
+ Text[ japanese ] = "·¬Ý¾Ù";\
+ Text[ chinese_traditional ] = "¨ú®ø";\
+ Text[ arabic ] = "ÅáÛÇÁ ÇáÃãÑ";\
+ Text[ dutch ] = "Annuleren";\
+ Text[ chinese_simplified ] = "È¡Ïû";\
+ Text[ greek ] = "Áêýñùóç";\
+ Text[ korean ] = "Ãë¼Ò";\
+ Text[ turkish ] = "Ýptal";\
+ };\
+ ToolBoxItem\
+ {\
+ Identifier = FN_FORMULA_APPLY ; \
+ HelpID = FN_FORMULA_APPLY ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Übernehmen : šbernehmen */\
+ Text = "Übernehmen" ; \
+ Text [ English ] = "Apply" ; \
+ Text [ norwegian ] = "Benytt" ; \
+ Text [ italian ] = "Applica" ; \
+ Text [ portuguese_brazilian ] = "Aplicar" ; \
+ Text [ portuguese ] = "Aplicar" ; \
+ Text [ finnish ] = "Käytä" ; \
+ Text [ danish ] = "Anvend" ; \
+ Text [ french ] = "Appliquer" ; \
+ Text [ swedish ] = "Överta" ; \
+ Text [ dutch ] = "Overnemen" ; \
+ Text [ spanish ] = "Aplicar" ; \
+ Text [ english_us ] = "Apply" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Formel einfügen : Formel einf³gen */\
+ Text[ chinese_simplified ] = "Ó¦ÓÃ";\
+ Text[ russian ] = "Âûïîëíèòü";\
+ Text[ polish ] = "Zastosuj";\
+ Text[ japanese ] = "“K—p‚·‚é";\
+ Text[ chinese_traditional ] = "¨Ï¥Î";\
+ Text[ arabic ] = "ÅÏÎÇá";\
+ Text[ dutch ] = "Overnemen";\
+ Text[ chinese_simplified ] = "Ó¦ÓÃ";\
+ Text[ greek ] = "ÅöáñìïãÞ";\
+ Text[ korean ] = "Àû¿ë";\
+ Text[ turkish ] = "Uygula";\
+ };
+
diff --git a/sw/source/ui/ribbar/makefile.mk b/sw/source/ui/ribbar/makefile.mk
new file mode 100644
index 000000000000..571eabdfd645
--- /dev/null
+++ b/sw/source/ui/ribbar/makefile.mk
@@ -0,0 +1,109 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=ribbar
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+IMGLST_SRS=$(SRS)$/ribbar.srs
+BMP_IN=$(PRJ)$/win/imglst
+
+# --- Files --------------------------------------------------------
+
+SRCFILES = \
+ tbxanchr.src \
+ inputwin.src \
+ tblctrl.src \
+ workctrl.src
+
+SLOFILES = \
+ $(SLO)$/inputwin.obj \
+ $(SLO)$/tbxanchr.obj \
+ $(SLO)$/tbxmgr.obj \
+ $(SLO)$/conrect.obj \
+ $(SLO)$/conform.obj \
+ $(SLO)$/conpoly.obj \
+ $(SLO)$/conarc.obj \
+ $(SLO)$/dselect.obj \
+ $(SLO)$/drawbase.obj \
+ $(SLO)$/tblctrl.obj \
+ $(SLO)$/workctrl.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
+$(SRS)$/ribbar.srs: $(SOLARINCDIR)$/svx$/globlmn.hrc
+
diff --git a/sw/source/ui/ribbar/tblctrl.cxx b/sw/source/ui/ribbar/tblctrl.cxx
new file mode 100644
index 000000000000..89a3f08aeb67
--- /dev/null
+++ b/sw/source/ui/ribbar/tblctrl.cxx
@@ -0,0 +1,209 @@
+/*************************************************************************
+ *
+ * $RCSfile: tblctrl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "swtypes.hxx"
+#include "tbxmgr.hxx"
+#include "tblctrl.hxx"
+#include "tblctrl.hrc"
+
+
+
+SFX_IMPL_TOOLBOX_CONTROL( SwTableOptimizeCtrl, SfxUInt16Item );
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+
+
+SwTableOptimizeCtrl::SwTableOptimizeCtrl( USHORT nId,
+ ToolBox& rTbx,
+ SfxBindings& rBind ) :
+ SfxToolBoxControl( nId, rTbx, rBind )
+{
+}
+/**********************************************************************
+
+**********************************************************************/
+
+
+
+SwTableOptimizeCtrl::~SwTableOptimizeCtrl()
+{
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+
+SfxPopupWindow* SwTableOptimizeCtrl::CreatePopupWindow()
+{
+ USHORT nWinResId, nTbxResId;
+ nWinResId = RID_TBL_OPT_CTRL;
+ nTbxResId = TBX_OPTIMIZE_TABLE;
+
+ WindowAlign eAlign = WINDOWALIGN_TOP;
+ if(GetToolBox().IsHorizontal())
+ eAlign = WINDOWALIGN_LEFT;
+ SwPopupWindowTbxMgr *pWin = new SwPopupWindowTbxMgr( GetId(),
+ eAlign,
+ SW_RES(nWinResId),
+ SW_RES(nTbxResId),
+ GetBindings());
+ pWin->StartPopupMode(&GetToolBox(), TRUE);
+ pWin->StartSelection();
+ pWin->Show();
+ return pWin;
+
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+
+SfxPopupWindowType SwTableOptimizeCtrl::GetPopupWindowType() const
+{
+ return SFX_POPUPWINDOW_ONCLICK;
+}
+
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.10 2000/09/18 16:06:01 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.9 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.8 1997/11/24 13:54:00 MA
+ includes
+
+
+ Rev 1.7 24 Nov 1997 14:54:00 MA
+ includes
+
+ Rev 1.6 03 Nov 1997 13:24:22 MA
+ precomp entfernt
+
+ Rev 1.5 24 Mar 1997 01:43:52 OS
+ Alignment aussen einstellen
+
+ Rev 1.4 23 Mar 1997 23:54:26 OS
+ ToolBoxAlign statt ToolBoxControl uebergeben
+
+ Rev 1.3 29 Jan 1997 14:52:24 OM
+ Draw-Toolboxen ins Svx verschoben
+
+ Rev 1.2 14 Nov 1996 15:40:48 TRI
+ includes
+
+ Rev 1.1 11 Nov 1996 11:15:14 MA
+ ResMgr
+
+ Rev 1.0 08 Nov 1996 13:39:36 OS
+ Initial revision.
+
+
+***********************************************************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/ribbar/tblctrl.hrc b/sw/source/ui/ribbar/tblctrl.hrc
new file mode 100644
index 000000000000..83e06af7de73
--- /dev/null
+++ b/sw/source/ui/ribbar/tblctrl.hrc
@@ -0,0 +1,69 @@
+/*************************************************************************
+ *
+ * $RCSfile: tblctrl.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _TBLCTRL_HRC
+#define _TBLCTRL_HRC
+#include "ribbar.hrc"
+
+#define TBX_OPTIMIZE_TABLE 1
+
+#endif
+
+
diff --git a/sw/source/ui/ribbar/tblctrl.src b/sw/source/ui/ribbar/tblctrl.src
new file mode 100644
index 000000000000..2a1fb1d9463c
--- /dev/null
+++ b/sw/source/ui/ribbar/tblctrl.src
@@ -0,0 +1,123 @@
+/*************************************************************************
+ *
+ * $RCSfile: tblctrl.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "tblctrl.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+#define IMAGE_STDBTN_COLOR Color { Red = 0xC000; Green = 0xC000; Blue = 0xC000; }
+FloatingWindow RID_TBL_OPT_CTRL
+{
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_TBL_OPT_CTRL ;
+ Text = "Optimieren" ;
+ Text [ English ] = "Optimieren" ;
+ ToolBox TBX_OPTIMIZE_TABLE
+ {
+ MenuStrings = TRUE ;
+ SVLook = TRUE ;
+ HelpID = 1 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_BALANCE_CELLS ;
+ HelpID = FN_TABLE_BALANCE_CELLS ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_BALANCE_ROWS ;
+ HelpID = FN_TABLE_BALANCE_ROWS ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_OPTIMAL_HEIGHT ;
+ HelpID = FN_TABLE_OPTIMAL_HEIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_ADJUST_CELLS ;
+ HelpID = FN_TABLE_ADJUST_CELLS ;
+ };
+ };
+ };
+ Text [ english_us ] = "Optimize" ;
+ Text [ italian ] = "Ottimizza" ;
+ Text [ spanish ] = "Optimar" ;
+ Text [ french ] = "Optimiser" ;
+ Text [ dutch ] = "Optimaliseren" ;
+ Text [ swedish ] = "Optimera" ;
+ Text [ danish ] = "Optimer" ;
+ Text [ portuguese_brazilian ] = "Optimieren" ;
+ Text [ portuguese ] = "Optimizar" ;
+ Text[ chinese_simplified ] = "×î¼Ñ»¯";
+ Text[ russian ] = "Îïòèìèçèðîâàòü";
+ Text[ polish ] = "Optymalizuj";
+ Text[ japanese ] = "Å“K‰»‚·‚é";
+ Text[ chinese_traditional ] = "³ÌÓì¤Æ";
+ Text[ arabic ] = "ÇáÔßá ÇáÃãËá";
+ Text[ greek ] = "Âåëôéóôïðïßçóç";
+ Text[ korean ] = "ÃÖÀûÈ­";
+ Text[ turkish ] = "Optimize et";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/ribbar/tbxanchr.cxx b/sw/source/ui/ribbar/tbxanchr.cxx
new file mode 100644
index 000000000000..c981b5563955
--- /dev/null
+++ b/sw/source/ui/ribbar/tbxanchr.cxx
@@ -0,0 +1,240 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxanchr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <string> // HACK: prevent conflict between STLPORT and Workshop headers
+
+#ifndef _SV_TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+#ifndef _SFXMNUMGR_HXX //autogen
+#include <sfx2/mnumgr.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "docsh.hxx"
+#include "swtypes.hxx"
+#include "swmodule.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "viewopt.hxx"
+#include "errhdl.hxx"
+#include "ribbar.hrc"
+#include "tbxanchr.hxx"
+
+
+
+SFX_IMPL_TOOLBOX_CONTROL(SwTbxAnchor, SfxUInt16Item);
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+SwTbxAnchor::SwTbxAnchor(USHORT nId, ToolBox& rTbx, SfxBindings& rBind) :
+ SfxToolBoxControl(nId, rTbx, rBind),
+ nActAnchorId(0)
+{
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+ SwTbxAnchor::~SwTbxAnchor()
+{
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+void SwTbxAnchor::StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState )
+{
+ GetToolBox().EnableItem( GetId(), (GetItemState(pState) != SFX_ITEM_DISABLED) );
+
+ if( eState == SFX_ITEM_AVAILABLE )
+ {
+ const SfxUInt16Item* pItem = PTR_CAST( SfxUInt16Item, pState );
+ if(pItem)
+ nActAnchorId = pItem->GetValue();
+ }
+
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+void SwTbxAnchor::Click()
+{
+ PopupMenu aPopMenu(SW_RES(MN_ANCHOR_POPUP));
+
+ SwView* pView = ::GetActiveView();
+ SwWrtShell* pWrtShell = pView->GetWrtShellPtr();
+ aPopMenu.EnableItem( FN_TOOL_ANKER_FRAME, 0 != pWrtShell->IsFlyInFly() );
+
+ Rectangle aRect(GetToolBox().GetItemRect(FN_TOOL_ANKER));
+ USHORT nHtmlMode = ::GetHtmlMode((SwDocShell*)SfxObjectShell::Current());
+ BOOL bHtmlModeNoAnchor = ( nHtmlMode & HTMLMODE_ON) && 0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS);
+
+ if (bHtmlModeNoAnchor || pWrtShell->IsInHeaderFooter())
+ aPopMenu.RemoveItem(aPopMenu.GetItemPos(FN_TOOL_ANKER_PAGE));
+
+ if (!pWrtShell->IsFrmSelected())
+ aPopMenu.RemoveItem(aPopMenu.GetItemPos(FN_TOOL_ANKER_AT_CHAR));
+
+ if (nActAnchorId)
+ aPopMenu.CheckItem(nActAnchorId);
+
+
+ USHORT nSlotId = aPopMenu.Execute(&GetToolBox(), aRect.BottomLeft());
+ GetToolBox().EndSelection();
+
+ if (nSlotId)
+ pView->GetViewFrame()->GetDispatcher()->Execute(nSlotId, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+}
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.18 2000/09/18 16:06:02 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.17 2000/09/07 15:59:27 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.16 2000/05/24 12:36:18 hr
+ conflict between STLPORT and Workshop header
+
+ Revision 1.15 2000/02/11 14:56:54 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.14 1999/07/02 11:22:28 OS
+ #64782# anchor type page in hader or footer disabled
+
+
+ Rev 1.13 02 Jul 1999 13:22:28 OS
+ #64782# anchor type page in hader or footer disabled
+
+ Rev 1.12 24 Apr 1998 08:57:10 OS
+ Seitenbindung fuer HTML-Rahmen bedingt erlauben
+
+ Rev 1.11 31 Mar 1998 15:21:02 AMA
+ Fix #47521#: IsFlyInFly liefert jetzt das Format des potentiellen Ankers
+
+ Rev 1.10 29 Jan 1998 14:59:22 OM
+ Am Zeichen verankern
+
+ Rev 1.9 10 Dec 1997 11:38:48 TJ
+ include
+
+ Rev 1.8 28 Nov 1997 19:57:26 MA
+ includes
+
+ Rev 1.7 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.6 12 Sep 1997 15:33:26 AMA
+ Neu: IsFlyInFly wird gefragt, ob Verankerung am Rahmen zugelassen ist.
+
+ Rev 1.5 29 Aug 1997 15:45:34 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.4 08 Aug 1997 17:29:58 OM
+ Headerfile-Umstellung
+
+ Rev 1.3 04 Jun 1997 16:07:06 MH
+ Syntax
+
+ Rev 1.2 04 Jun 1997 12:37:22 OS
+ Rahmen an Rahmen nicht in der 4.0; Segmentierung raus
+
+ Rev 1.1 03 Mar 1997 16:41:22 OM
+ Segmentiert
+
+ Rev 1.0 03 Mar 1997 14:24:08 OM
+ Initial revision.
+
+***********************************************************************/
+
+
diff --git a/sw/source/ui/ribbar/tbxanchr.src b/sw/source/ui/ribbar/tbxanchr.src
new file mode 100644
index 000000000000..90ee969d9b1e
--- /dev/null
+++ b/sw/source/ui/ribbar/tbxanchr.src
@@ -0,0 +1,204 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxanchr.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "ribbar.hrc"
+#include "cmdid.h"
+Menu MN_ANCHOR_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ _MenuItemFlags = MIB_RADIOCHECK ;
+ RadioCheck = TRUE ;
+ Identifier = FN_TOOL_ANKER_PAGE ;
+ Text = "Seite" ;
+ Text [ ENGLISH ] = "Page" ;
+ Text [ portuguese ] = "Página" ;
+ Text [ english_us ] = "Page" ;
+ Text [ portuguese_brazilian ] = "Seite" ;
+ Text [ swedish ] = "Sida" ;
+ Text [ danish ] = "Side" ;
+ Text [ italian ] = "Pagina" ;
+ Text [ spanish ] = "Página" ;
+ Text [ french ] = "À la page" ;
+ Text [ dutch ] = "Pagina" ;
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ";
+ Text[ chinese_traditional ] = "­¶";
+ Text[ arabic ] = "ÕÝÍÉ";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ _MenuItemFlags = MIB_RADIOCHECK ;
+ RadioCheck = TRUE ;
+ Identifier = FN_TOOL_ANKER_PARAGRAPH ;
+ Text = "Absatz" ;
+ Text [ ENGLISH ] = "Paragraph" ;
+ Text [ portuguese ] = "Parágrafo" ;
+ Text [ english_us ] = "Paragraph" ;
+ Text [ portuguese_brazilian ] = "Absatz" ;
+ Text [ swedish ] = "Stycke" ;
+ Text [ danish ] = "Afsnit" ;
+ Text [ italian ] = "Paragrafo" ;
+ Text [ spanish ] = "Párrafo" ;
+ Text [ french ] = "Paragraphe" ;
+ Text [ dutch ] = "Alinea" ;
+ Text[ chinese_simplified ] = "¶ÎÂä";
+ Text[ russian ] = "Àáçàö";
+ Text[ polish ] = "Akapit";
+ Text[ japanese ] = "’i—Ž";
+ Text[ chinese_traditional ] = "¬q¸¨";
+ Text[ arabic ] = "ÝÞÑÉ";
+ Text[ greek ] = "ÐáñÜãñáöïò";
+ Text[ korean ] = "´Ü¶ô";
+ Text[ turkish ] = "Paragrafa";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ _MenuItemFlags = MIB_RADIOCHECK ;
+ RadioCheck = TRUE ;
+ Identifier = FN_TOOL_ANKER_AT_CHAR ;
+ Text = "Am Zeichen" ;
+ Text [ ENGLISH ] = "At character" ;
+ Text [ english_us ] = "At Character" ;
+ Text [ portuguese_brazilian ] = "Am Zeichen" ;
+ Text [ swedish ] = "Vid tecken" ;
+ Text [ danish ] = "Til tegn" ;
+ Text [ italian ] = "Al carattere" ;
+ Text [ spanish ] = "Al carácter" ;
+ Text [ french ] = "Au caractère" ;
+ Text [ dutch ] = "Aan teken" ;
+ Text [ portuguese ] = "No carácter" ;
+ Text[ chinese_simplified ] = "ÔÚ×Ö·ûÉÏ";
+ Text[ russian ] = "Ê çíàêó";
+ Text[ polish ] = "Przy znaku";
+ Text[ japanese ] = "•¶Žš‚É";
+ Text[ chinese_traditional ] = "¦b¦r¤¸¤W";
+ Text[ arabic ] = "Úáì ÇáÍÑÝ";
+ Text[ greek ] = "Ùò ÷áñáêôÞñáò";
+ Text[ korean ] = "¹®ÀÚ¿¡";
+ Text[ turkish ] = "Karaktere";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ _MenuItemFlags = MIB_RADIOCHECK ;
+ RadioCheck = TRUE ;
+ Identifier = FN_TOOL_ANKER_CHAR ;
+ Text = "Als Zeichen" ;
+ Text [ ENGLISH ] = "Like a character" ;
+ Text [ portuguese ] = "Como carácter" ;
+ Text [ english_us ] = "As Character" ;
+ Text [ portuguese_brazilian ] = "Zeichen" ;
+ Text [ swedish ] = "Som tecken" ;
+ Text [ danish ] = "Som tegn" ;
+ Text [ italian ] = "Quale carattere" ;
+ Text [ spanish ] = "Como carácter" ;
+ Text [ french ] = "Comme caractère" ;
+ Text [ dutch ] = "Als teken" ;
+ Text[ chinese_simplified ] = "µ±×÷×Ö·û";
+ Text[ russian ] = "Êàê çíàê";
+ Text[ polish ] = "Jako znak";
+ Text[ japanese ] = "•¶Žš‚Æ‚µ‚Ä";
+ Text[ chinese_traditional ] = "·í§@¦r¤¸";
+ Text[ arabic ] = "ßÍÑÝ";
+ Text[ greek ] = "Ùò ÷áñáêôÞñáò";
+ Text[ korean ] = "¹®ÀÚ·Î";
+ Text[ turkish ] = "Karakter olarak";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ _MenuItemFlags = MIB_RADIOCHECK ;
+ RadioCheck = TRUE ;
+ Identifier = FN_TOOL_ANKER_FRAME ;
+ Text = "Rahmen" ;
+ Text [ ENGLISH ] = "Frame" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ english_us ] = "Frame" ;
+ Text [ portuguese_brazilian ] = "Rahmen" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ french ] = "Cadre" ;
+ Text [ dutch ] = "Kader" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Ðàìêà";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçeve";
+ Text[ language_user1 ] = " ";
+ };
+ };
+};
diff --git a/sw/source/ui/ribbar/tbxmgr.cxx b/sw/source/ui/ribbar/tbxmgr.cxx
new file mode 100644
index 000000000000..bf7b2cc47480
--- /dev/null
+++ b/sw/source/ui/ribbar/tbxmgr.cxx
@@ -0,0 +1,304 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxmgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "swtypes.hxx" // nur wegen aEmptyString??
+#include "errhdl.hxx"
+#include "wdocsh.hxx"
+#include "tbxmgr.hxx"
+
+
+/*************************************************************************
+|*
+|*
+|*
+\************************************************************************/
+
+SwPopupWindowTbxMgr::SwPopupWindowTbxMgr( USHORT nId, WindowAlign eAlign,
+ ResId aRIdWin, ResId aRIdTbx,
+ SfxBindings& rBindings ) :
+ SvxPopupWindowTbxMgr( nId, eAlign, aRIdWin, aRIdTbx, rBindings),
+ bWeb(FALSE),
+ aRIdWinTemp(aRIdWin),
+ aRIdTbxTemp(aRIdTbx)
+{
+ SfxObjectShell* pObjShell = SfxObjectShell::Current();
+ if(PTR_CAST(SwWebDocShell, pObjShell))
+ {
+ bWeb = TRUE;
+ ToolBox& rTbx = GetTbxMgr().GetToolBox();
+ // jetzt muessen ein paar Items aus der Toolbox versteckt werden:
+ switch(nId)
+ {
+ case FN_INSERT_CTRL:
+ rTbx.ShowItem(FN_INSERT_FRAME_INTERACT_NOCOL);
+ rTbx.HideItem(FN_INSERT_FRAME_INTERACT);
+ rTbx.HideItem(FN_INSERT_FOOTNOTE);
+ rTbx.HideItem(FN_INSERT_ENDNOTE);
+ rTbx.HideItem(FN_PAGE_STYLE_SET_COLS);
+ rTbx.HideItem(FN_INSERT_IDX_ENTRY_DLG);
+
+ break;
+ case FN_INSERT_FIELD_CTRL:
+ rTbx.HideItem(FN_INSERT_FLD_PGNUMBER);
+ rTbx.HideItem(FN_INSERT_FLD_PGCOUNT);
+ rTbx.HideItem(FN_INSERT_FLD_TOPIC);
+ rTbx.HideItem(FN_INSERT_FLD_TITLE);
+ break;
+ }
+ }
+ else if( FN_INSERT_CTRL == nId)
+ {
+ ToolBox& rTbx = GetTbxMgr().GetToolBox();
+ rTbx.ShowItem(FN_INSERT_FRAME_INTERACT);
+ rTbx.HideItem(FN_INSERT_FRAME_INTERACT_NOCOL);
+ }
+
+ Size aSize = GetTbxMgr().CalcWindowSizePixel();
+ GetTbxMgr().SetPosSizePixel( Point(), aSize );
+ SetOutputSizePixel( aSize );
+}
+
+/*************************************************************************
+|*
+|*
+|*
+\************************************************************************/
+
+void SwPopupWindowTbxMgr::StateChanged(USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState)
+{
+ static USHORT __READONLY_DATA aInsertCtrl[] =
+ {
+ FN_INSERT_FRAME_INTERACT,
+ FN_INSERT_FOOTNOTE,
+ FN_INSERT_ENDNOTE,
+ FN_PAGE_STYLE_SET_COLS,
+ FN_INSERT_IDX_ENTRY_DLG,
+ 0
+ };
+ static USHORT __READONLY_DATA aInsertFld[] =
+ {
+ FN_INSERT_FLD_PGNUMBER,
+ FN_INSERT_FLD_PGCOUNT,
+ FN_INSERT_FLD_TOPIC,
+ FN_INSERT_FLD_TITLE,
+ 0
+ };
+
+ SfxObjectShell* pObjShell = SfxObjectShell::Current();
+ BOOL bNewWeb = 0 != PTR_CAST(SwWebDocShell, pObjShell);
+ if(bWeb != bNewWeb)
+ {
+ bWeb = bNewWeb;
+ ToolBox& rTbx = GetTbxMgr().GetToolBox();
+ // jetzt muessen ein paar Items aus der Toolbox versteckt werden:
+ const USHORT* pSid = 0;
+
+ switch(nSID)
+ {
+ case FN_INSERT_CTRL:
+ pSid = &aInsertCtrl[0];
+ if(bWeb)
+ rTbx.ShowItem(FN_INSERT_FRAME_INTERACT_NOCOL);
+ else
+ rTbx.HideItem(FN_INSERT_FRAME_INTERACT_NOCOL);
+ break;
+ case FN_INSERT_FIELD_CTRL:
+ pSid = & aInsertFld[0];
+ break;
+ }
+ if(pSid)
+ {
+ if(bWeb)
+ while(*pSid)
+ {
+ rTbx.HideItem(*pSid);
+ pSid++;
+ }
+ else
+ while(*pSid)
+ {
+ rTbx.ShowItem(*pSid);
+ pSid++;
+ }
+ Size aSize = GetTbxMgr().CalcWindowSizePixel();
+ GetTbxMgr().SetPosSizePixel( Point(), aSize );
+ SetOutputSizePixel( aSize );
+ }
+ }
+ SfxPopupWindow::StateChanged(nSID, eState, pState);
+}
+
+
+SfxPopupWindow* SwPopupWindowTbxMgr::Clone() const
+{
+ return new SwPopupWindowTbxMgr(
+ GetId(),
+ ((SwPopupWindowTbxMgr*)this)->GetTbxMgr().GetToolBox().GetAlign(),
+ aRIdWinTemp,
+ aRIdTbxTemp,
+ (SfxBindings&)GetBindings()
+ );
+}
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.10 2000/09/18 16:06:02 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.9 2000/06/20 14:48:39 os
+ #70060# less occurences of columns in HTML
+
+ Revision 1.8 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.7 1999/02/12 07:21:26 OS
+ #61547# InsertEndnote in der Wz.Leiste
+
+
+ Rev 1.6 12 Feb 1999 08:21:26 OS
+ #61547# InsertEndnote in der Wz.Leiste
+
+ Rev 1.5 06 Apr 1998 09:57:30 OS
+ INSERT_FRAME_INTERACT fuer HTML wieder erlaubt
+
+ Rev 1.4 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.3 03 Nov 1997 13:24:20 MA
+ precomp entfernt
+
+ Rev 1.2 23 Mar 1997 23:54:26 OS
+ ToolBoxAlign statt ToolBoxControl uebergeben
+
+ Rev 1.1 29 Jan 1997 17:16:36 NF
+ includes...
+
+ Rev 1.0 29 Jan 1997 14:51:48 OM
+ Initial revision.
+
+ Rev 1.36 28 Jan 1997 16:29:50 OS
+ Anpassung der ToolBox an die DocShell
+
+ Rev 1.35 15 Jan 1997 11:32:52 OM
+ Bezier-Controller entfernt
+
+ Rev 1.34 11 Dec 1996 12:33:46 OM
+ Bezier-Controller
+
+ Rev 1.33 30 Nov 1996 14:07:24 OS
+ SID_OBJECT_ALIGN: dieser Controller tauscht die Images nicht aus!
+
+ Rev 1.32 25 Nov 1996 10:56:50 OS
+ SwPopupWindowTbx entfernt
+
+ Rev 1.31 23 Nov 1996 12:41:26 OS
+ StateChanged fuer ...TbxMgr
+
+ Rev 1.30 14 Nov 1996 10:22:50 TRI
+ includes
+
+ Rev 1.29 13 Nov 1996 15:30:08 OS
+ RegisterToolBox nur noch fuer ..OUTSTYLE
+
+ Rev 1.28 12 Nov 1996 10:20:32 OS
+ Image an der Toolbox kann nur der Toolboxmgr selbst setzen
+
+ Rev 1.27 22 Oct 1996 10:47:38 OS
+ Image an der Toolbox austauschen
+
+ Rev 1.26 18 Oct 1996 08:52:02 OS
+ Alignment berichtigt
+
+ Rev 1.25 14 Oct 1996 13:38:26 OS
+ UseDefault statt Initialize am SfxToolBoxManager
+
+ Rev 1.24 10 Oct 1996 10:37:14 OS
+ Registrierung der Toolbox am SfxImageManager
+
+ Rev 1.23 26 Sep 1996 08:17:24 OS
+ Execute am Dispatcher mit OL abschliessen
+
+ Rev 1.22 23 Sep 1996 14:44:00 OS
+ Slot fuer ToolboxItem auch im SelectHdl rufen
+
+ Rev 1.21 19 Sep 1996 19:40:04 HJS
+ fehlende includes
+
+ Rev 1.20 19 Sep 1996 16:05:14 OS
+ neu: SwPopupWindowTbxMgr
+
+ Rev 1.19 28 Aug 1996 13:39:28 OS
+ includes
+
+ Rev 1.18 29 Jul 1996 15:16:04 OS
+ Clone impl.
+
+***********************************************************************/
+
diff --git a/sw/source/ui/ribbar/workctrl.cxx b/sw/source/ui/ribbar/workctrl.cxx
new file mode 100644
index 000000000000..c0c4eb92386d
--- /dev/null
+++ b/sw/source/ui/ribbar/workctrl.cxx
@@ -0,0 +1,838 @@
+/*************************************************************************
+ *
+ * $RCSfile: workctrl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <string> // HACK: prevent conflict between STLPORT and Workshop headers
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+
+
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _GLOSSARY_HXX
+#include <glossary.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _GLOSLST_HXX
+#include <gloslst.hxx>
+#endif
+#ifndef _TBXMGR_HXX
+#include <tbxmgr.hxx>
+#endif
+#ifndef _WORKCTRL_HXX
+#include <workctrl.hxx>
+#endif
+#ifndef _WORKCTRL_HRC
+#include <workctrl.hrc>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+
+
+//JP 14.01.99: Size Abpruefung
+#define NAVI_ENTRIES 20
+#if NAVI_ENTRIES != NID_COUNT
+#error SwScrollNaviPopup-CTOR static Array falsche Size. Wurden neue IDs zugefuegt ??
+#endif
+
+
+SFX_IMPL_TOOLBOX_CONTROL( SwTbxInsertCtrl, SfxUInt16Item);
+SFX_IMPL_TOOLBOX_CONTROL( SwTbxAutoTextCtrl, SfxBoolItem );
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+
+SwTbxInsertCtrl::SwTbxInsertCtrl( USHORT nId,
+ ToolBox& rTbx,
+ SfxBindings& rBind ) :
+ SfxToolBoxControl( nId, rTbx, rBind ),
+ nLastSlotId(0)
+{
+}
+/**********************************************************************
+
+**********************************************************************/
+
+
+SwTbxInsertCtrl::~SwTbxInsertCtrl()
+{
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+void SwTbxInsertCtrl::StateChanged( USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState )
+{
+ USHORT nId = GetId();
+ GetToolBox().EnableItem( nId, (GetItemState(pState) != SFX_ITEM_DISABLED) );
+
+ if( eState == SFX_ITEM_AVAILABLE )
+ {
+ const SfxUInt16Item* pItem = PTR_CAST( SfxUInt16Item, pState );
+ if(pItem)
+ {
+ nLastSlotId = pItem->GetValue();
+ if( nLastSlotId )
+ nId = nLastSlotId;
+ Image aImage = SFX_IMAGEMANAGER()->GetImage( nId, SW_MOD() );
+ GetToolBox().SetItemImage(GetId(), aImage);
+ }
+ }
+
+}
+/**********************************************************************
+
+**********************************************************************/
+
+
+SfxPopupWindow* SwTbxInsertCtrl::CreatePopupWindow()
+{
+ USHORT nWinResId, nTbxResId;
+ if(GetId() == FN_INSERT_CTRL)
+ {
+ nWinResId = RID_INSERT_CTRL;
+ nTbxResId = TBX_INSERT;
+ }
+ else /* FN_INSERT_OBJ_CTRL */
+ {
+ nWinResId = RID_INSERT_OBJ_CTRL;
+ nTbxResId = TBX_OBJ_INSERT;
+ }
+
+ WindowAlign eAlign = WINDOWALIGN_TOP;
+ if(GetToolBox().IsHorizontal())
+ eAlign = WINDOWALIGN_LEFT;
+ SwPopupWindowTbxMgr *pWin = new SwPopupWindowTbxMgr( GetId(),
+ eAlign,
+ SW_RES(nWinResId),
+ SW_RES(nTbxResId),
+ GetBindings());
+
+ pWin->StartPopupMode(&GetToolBox(), TRUE);
+ pWin->StartSelection();
+ pWin->Show();
+ return pWin;
+
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+SfxPopupWindowType SwTbxInsertCtrl::GetPopupWindowType() const
+{
+ return nLastSlotId ? SFX_POPUPWINDOW_ONTIMEOUT : SFX_POPUPWINDOW_ONCLICK;
+}
+
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+void SwTbxInsertCtrl::Select( BOOL bMod1 )
+{
+ if(nLastSlotId)
+ SfxViewFrame::Current()->GetDispatcher()->Execute(nLastSlotId);
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+SwTbxAutoTextCtrl::SwTbxAutoTextCtrl( USHORT nId,
+ ToolBox& rTbx,
+ SfxBindings& rBind ) :
+ SfxToolBoxControl( nId, rTbx, rBind ),
+ pView(0),
+ pPopup(0)
+{
+}
+/**********************************************************************
+
+**********************************************************************/
+
+
+SwTbxAutoTextCtrl::~SwTbxAutoTextCtrl()
+{
+ DelPopup();
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+SfxPopupWindow* SwTbxAutoTextCtrl::CreatePopupWindow()
+{
+ pView = ::GetActiveView();
+ if(pView && !pView->GetDocShell()->IsReadOnly() &&
+ !pView->GetWrtShell().HasReadonlySel() )
+ {
+ ToolBox& rBox = GetToolBox();
+ Point aPt(rBox.OutputToScreenPixel(rBox.GetPointerPosPixel()));
+ if(pView)
+ {
+ Link aLnk = LINK(this, SwTbxAutoTextCtrl, PopupHdl);
+
+ if (GetId() == FN_INSERT_FIELD_CTRL)
+ {
+ pPopup = new PopupMenu(SW_RES(RID_INSERT_FIELD_CTRL));
+ pPopup->SetSelectHdl(aLnk);
+
+ if (::GetHtmlMode(pView->GetDocShell()) & HTMLMODE_ON)
+ {
+ pPopup->RemoveItem(pPopup->GetItemPos(FN_INSERT_FLD_PGCOUNT));
+ pPopup->RemoveItem(pPopup->GetItemPos(FN_INSERT_FLD_TOPIC));
+ }
+ }
+ else
+ {
+ pPopup = new PopupMenu;
+ SwGlossaryList* pGlossaryList = ::GetGlossaryList();
+ USHORT nGroupCount = pGlossaryList->GetGroupCount();
+ for(USHORT i = 1; i <= nGroupCount; i++)
+ {
+ // Gruppenname mit Pfad-Extension besorgen
+ String sTitle;
+ String sGroupName = pGlossaryList->GetGroupName(i - 1, FALSE, &sTitle);
+ USHORT nBlockCount = pGlossaryList->GetBlockCount(i -1);
+ if(nBlockCount)
+ {
+ USHORT nIndex = 100 * (i);
+ // aber ohne extension einfuegen
+ pPopup->InsertItem( i, sTitle);//sGroupName.GetToken(0, GLOS_DELIM));
+ PopupMenu* pSub = new PopupMenu;
+ pSub->SetSelectHdl(aLnk);
+ pPopup->SetPopupMenu(i, pSub);
+ for(USHORT j = 0; j < nBlockCount; j++)
+ {
+ String sEntry;
+ String sLongName(pGlossaryList->GetBlockName(i - 1, j, sEntry));
+ sEntry.AppendAscii(" - ");
+ sEntry += sLongName;
+ pSub->InsertItem(++nIndex, sEntry);
+ }
+ }
+ }
+ }
+ }
+ ToolBox* pToolBox = &GetToolBox();
+ USHORT nId = GetId();
+ pToolBox->SetItemDown( nId, TRUE );
+ pPopup->Execute( pToolBox, pToolBox->ScreenToOutputPixel( aPt ) );
+ pToolBox->SetItemDown( nId, FALSE );
+ }
+ GetToolBox().EndSelection();
+ DelPopup();
+ return 0;
+
+}
+
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+SfxPopupWindowType SwTbxAutoTextCtrl::GetPopupWindowType() const
+{
+ return SFX_POPUPWINDOW_ONTIMEOUT;
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+void SwTbxAutoTextCtrl::StateChanged( USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState )
+{
+ GetToolBox().EnableItem( GetId(), (GetItemState(pState) != SFX_ITEM_DISABLED) );
+ if(FN_INSERT_FIELD_CTRL == nSID && eState >= SFX_ITEM_DEFAULT)
+ {
+ GetToolBox().CheckItem( GetId(), ((SfxBoolItem*)pState)->GetValue() );
+ }
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+IMPL_LINK(SwTbxAutoTextCtrl, PopupHdl, PopupMenu*, pMenu)
+{
+ int nId = pMenu->GetCurItemId();
+
+ if (GetId() == FN_INSERT_FIELD_CTRL)
+ {
+ SfxViewFrame::Current()->GetDispatcher()->Execute(nId);
+ }
+ else
+ {
+ USHORT nBlock = nId/100;
+
+ SwGlossaryList* pGlossaryList = ::GetGlossaryList();
+ String sShortName;
+ String sGroup = pGlossaryList->GetGroupName(nBlock - 1, FALSE);
+ String sLongName(pGlossaryList->GetBlockName(nBlock - 1, nId - (100 * nBlock) - 1, sShortName));
+
+ SwGlossaryHdl* pGlosHdl = pView->GetGlosHdl();
+ SwGlossaryDlg::SetActGroup(sGroup);
+ pGlosHdl->SetCurGroup(sGroup, TRUE);
+ pGlosHdl->InsertGlossary(sShortName);
+ }
+ return 0;
+}
+
+/**********************************************************************
+
+**********************************************************************/
+
+
+void SwTbxAutoTextCtrl::DelPopup()
+{
+ if(pPopup)
+ {
+ if (GetId() != FN_INSERT_FIELD_CTRL)
+ {
+ for( USHORT i = 0; i < pPopup->GetItemCount(); i ++ )
+ {
+ PopupMenu* pSubPopup = pPopup->GetPopupMenu(pPopup->GetItemId(i));
+ delete pSubPopup;
+ }
+ }
+ delete pPopup;
+ pPopup = 0;
+ }
+}
+
+/*-----------------19.02.97 10.52-------------------
+ Navigations-Popup
+--------------------------------------------------*/
+
+SwScrollNaviPopup::SwScrollNaviPopup( USHORT nId,
+ const ResId &rId,
+ SfxBindings & rBnd)
+ : SfxPopupWindow(nId, rId, rBnd),
+ aVSet(this, WB_NAMEFIELD),
+ aIList(ResId(IL_VALUES)),
+ rResId(rId),
+ nFwdId(FN_START_OF_NEXT_PAGE),
+ nBackId(FN_START_OF_PREV_PAGE)
+{
+ aVSet.SetHelpId(HID_NAVI_VS);
+ // die Konvertierungstabelle legt die Reihenfolge fest
+ static USHORT __READONLY_DATA aInsert[ NAVI_ENTRIES ] =
+ {
+ // -- erste Zeile
+ NID_TBL,
+ NID_FRM,
+ NID_GRF,
+ NID_OLE,
+ NID_PGE,
+ NID_OUTL,
+ NID_MARK,
+ NID_DRW,
+ NID_CTRL,
+ // -- zweite Zeile
+ NID_REG,
+ NID_BKM,
+ NID_SEL,
+ NID_FTN,
+ NID_POSTIT,
+ NID_SRCH_REP,
+ NID_INDEX_ENTRY,
+ NID_TABLE_FORMULA,
+ NID_TABLE_FORMULA_ERROR
+ };
+
+ aVSet.SetLineCount( 2 );
+ aVSet.SetColCount(NID_COUNT / 2 - 1);
+ for(USHORT i = 0; i < NID_COUNT - 2; i++)
+ {
+ USHORT nId = aInsert[i];
+ aVSet.InsertItem(nId, aIList.GetImage(nId));
+ // -2, weil es fuer Next/Prev keinen String gibt
+ USHORT nResStr = ST_TBL - 2 + nId - NID_START;
+ aVSet.SetItemText(nId, ResId(nResStr));
+ }
+ // erst hier!
+ FreeResource();
+
+ // diese Strings sind global
+ for( i = 0; i < 2 * NID_COUNT; i++)
+ {
+ sQuickHelp[i] = String(SW_RES(STR_IMGBTN_START + i));
+ }
+
+ Size aImgSize = aIList.GetImageSize();
+ aImgSize.Width() += 5;
+ aImgSize.Height() += 5;
+ Size aSz = aVSet.CalcWindowSizePixel(aImgSize, aVSet.GetItemCount() / 2, 2);
+ aVSet.SetPosSizePixel( Point(), aSz );
+ SetOutputSizePixel(aSz);
+ aVSet.SetSelectHdl(LINK(this, SwScrollNaviPopup, SelectHdl));
+ aVSet.StartSelection();
+ aVSet.Show();
+ SetBackground(Wallpaper(Color(COL_WHITE)));
+}
+/*-----------------19.02.97 12.45-------------------
+
+--------------------------------------------------*/
+
+SwScrollNaviPopup::~SwScrollNaviPopup()
+{
+}
+/*-----------------19.02.97 13.58-------------------
+
+--------------------------------------------------*/
+
+SfxPopupWindow* SwScrollNaviPopup::Clone() const
+{
+ return new SwScrollNaviPopup(GetId(), rResId, ( SfxBindings & ) GetBindings());
+}
+
+/*-----------------19.02.97 14.10-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK(SwScrollNaviPopup, SelectHdl, ValueSet*, pSet)
+{
+ USHORT nSet = pSet->GetSelectItemId();
+ if( nSet != NID_PREV && nSet != NID_NEXT )
+ {
+ SwView::SetMoveType(nSet);
+ aVSet.SetItemText(NID_NEXT, sQuickHelp[nSet - NID_START]);
+ aVSet.SetItemText(NID_PREV, sQuickHelp[nSet - NID_START + NID_COUNT]);
+ }
+ else
+ {
+ SfxBoolItem aNext(FN_SCROLL_NEXT_PREV, NID_NEXT == nSet);
+ SfxViewFrame::Current()->GetDispatcher()->
+ Execute(FN_SCROLL_NEXT_PREV,SFX_CALLMODE_SYNCHRON ,&aNext, 0L);
+ }
+ return 0;
+}
+/*-----------------23.02.97 18.21-------------------
+
+--------------------------------------------------*/
+
+void SwScrollNaviValueSet::MouseButtonUp( const MouseEvent& rMEvt )
+{
+ ValueSet::MouseButtonUp(rMEvt);
+ if ( ((SwScrollNaviPopup*)GetParent())->IsInPopupMode() )
+ ((SwScrollNaviPopup*)GetParent())->EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
+}
+
+/*-----------------20.06.97 13:28-------------------
+
+--------------------------------------------------*/
+void SwScrollNaviValueSet::RequestHelp( const HelpEvent& rHEvt )
+{
+ USHORT nMoveType = SwView::GetMoveType();
+ SetItemText(NID_NEXT, SwScrollNaviPopup::GetQuickHelpText(TRUE));
+ SetItemText(NID_PREV, SwScrollNaviPopup::GetQuickHelpText(FALSE));
+ ValueSet::RequestHelp( rHEvt );
+
+}
+/*-----------------21.02.97 11:25-------------------
+
+--------------------------------------------------*/
+
+void SwScrollNaviPopup::PopupModeEnd()
+{
+ if(aVSet.GetItemCount() < NID_COUNT)
+ {
+ aVSet.InsertItem(NID_NEXT, aIList.GetImage(NID_NEXT), NID_COUNT);
+ aVSet.InsertItem(NID_PREV, aIList.GetImage(NID_PREV), NID_COUNT/2 - 1);
+ USHORT nItemBits = aVSet.GetItemBits(NID_NEXT);
+ nItemBits |= VIB_NODOUBLECLICK;
+ aVSet.SetItemBits(NID_NEXT, nItemBits);
+ aVSet.SetItemBits(NID_PREV, nItemBits);
+ Size aImgSize = aIList.GetImageSize();
+ aImgSize.Width() += 5;
+ aImgSize.Height() += 5;
+ aVSet.SetColCount(NID_COUNT/2);
+ Size aSz = aVSet.CalcWindowSizePixel(aImgSize, NID_COUNT / 2, 2);
+ aVSet.SetPosSizePixel( Point(), aSz );
+ SetOutputSizePixel(aSz);
+ }
+ SfxPopupWindow::PopupModeEnd();
+}
+
+/*-----------------20.06.97 13:41-------------------
+
+--------------------------------------------------*/
+String SwScrollNaviPopup::GetQuickHelpText(BOOL bNext)
+{
+ USHORT nResId = STR_IMGBTN_START;
+ nResId += SwView::GetMoveType() - NID_START;
+ if(!bNext)
+ nResId += NID_COUNT;
+ return String(SW_RES(nResId));
+}
+
+
+/*-----------------20.02.97 10:17-------------------
+
+--------------------------------------------------*/
+
+void SwNaviImageButton::MouseButtonDown( const MouseEvent& rMEvt )
+{
+ if(MOUSE_LEFT == rMEvt.GetButtons())
+ {
+ SfxBindings& rBind = SfxViewFrame::Current()->GetBindings();
+ rBind.ENTERREGISTRATIONS();
+ pPopup = new
+ SwScrollNaviPopup(FN_SCROLL_NAVIGATION,
+ SW_RES(RID_SCROLL_NAVIGATION_WIN),
+ rBind);
+ rBind.LEAVEREGISTRATIONS();
+ Point aPos = OutputToScreenPixel(Point(0,0));
+ Rectangle aRect(aPos, GetSizePixel());
+ pPopup->StartPopupMode(aRect, FLOATWIN_POPUPMODE_LEFT|FLOATWIN_POPUPMODE_ALLOWTEAROFF);
+ }
+ else
+ ImageButton::MouseButtonDown(rMEvt);
+}
+/*-----------------20.02.97 10:17-------------------
+
+--------------------------------------------------*/
+
+void SwNaviImageButton::MouseButtonUp( const MouseEvent& rMEvt )
+{
+}
+
+/*-----------------21.02.97 09:41-------------------
+
+--------------------------------------------------*/
+
+void SwHlpImageButton::RequestHelp( const HelpEvent& rHEvt )
+{
+
+ SetQuickHelpText(SwScrollNaviPopup::GetQuickHelpText(!bUp));
+
+ ImageButton::RequestHelp(rHEvt);
+}
+
+/*-----------------25.02.97 12:38-------------------
+
+--------------------------------------------------*/
+
+SwNaviImageButton::SwNaviImageButton(Window* pParent) :
+ ImageButton(pParent, SW_RES(BTN_NAVI)), pPopup(0),
+ aImage(ResId(IMG_BTN)),
+ sQuickText(ResId(ST_QUICK))
+{
+ FreeResource();
+ SetStyle(GetStyle()|WB_NOPOINTERFOCUS);
+ SetQuickHelpText(sQuickText);
+ SetImage(aImage);
+}
+
+/***********************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.62 2000/09/18 16:06:02 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.61 2000/09/07 15:59:27 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.60 2000/07/03 08:54:35 jp
+ must changes for VCL
+
+ Revision 1.59 2000/06/13 09:58:28 os
+ using UCB
+
+ Revision 1.58 2000/05/24 12:36:18 hr
+ conflict between STLPORT and Workshop header
+
+ Revision 1.57 2000/04/18 14:54:44 os
+ UNICODE
+
+ Revision 1.56 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.55 2000/02/10 10:37:03 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.54 1999/04/01 11:58:32 OS
+ #64278# Zugriff auf Gruppen und Eintraege nur noch ueber Ids
+
+
+ Rev 1.53 01 Apr 1999 13:58:32 OS
+ #64278# Zugriff auf Gruppen und Eintraege nur noch ueber Ids
+
+ Rev 1.52 09 Feb 1999 10:47:44 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+ Rev 1.51 05 Feb 1999 15:52:58 MA
+ #61463# Kein Popup fuer Glossary in Readonly
+
+ Rev 1.50 14 Jan 1999 15:49:58 JP
+ Bug #60794#: Fehlererkennung beim Tabellenrechnen und anspringen von Formeln
+
+ Rev 1.49 14 Jan 1999 14:18:46 JP
+ Bug #60794#: Fehlererkennung beim Tabellenrechnen und anspringen von Formeln
+
+ Rev 1.48 03 Dec 1998 10:25:20 OS
+ #59441# Verzeichniseintrag in der Navigation
+
+ Rev 1.47 03 Nov 1998 12:24:56 OS
+ 58830# Enter/LeaveRegistrations
+
+ Rev 1.46 12 Oct 1998 08:46:42 OS
+ #52973# GetImage() mit Module* aufrufen
+
+ Rev 1.45 18 Aug 1998 17:28:44 OS
+ GetShortName sollte auf bekannte Gruppe richtig reagieren #55219#
+
+ Rev 1.44 15 Jun 1998 10:39:28 OS
+ WB_NOPOINTERFOCUS
+
+ Rev 1.43 15 Jun 1998 09:36:42 OS
+ AutoText-Popup: Kuerzel mit angeben
+
+ Rev 1.42 24 Feb 1998 12:10:32 OS
+ Navigationstool erweitert
+
+ Rev 1.41 18 Feb 1998 14:45:12 OS
+ ItemBits an der richtigen Position setzen #46669#
+
+ Rev 1.40 16 Feb 1998 08:03:22 OS
+ VIB_NODOUBLECLICK setzen #46669#
+
+ Rev 1.39 07 Feb 1998 11:09:16 OS
+ initiale Groesse berichtigt #47144#
+
+ Rev 1.38 20 Jan 1998 12:27:42 OS
+ Next und Prev im SelectHdl ausfuehren #46669#
+
+ Rev 1.37 28 Nov 1997 20:17:34 MA
+ includes
+
+ Rev 1.36 24 Nov 1997 14:53:58 MA
+ includes
+
+ Rev 1.35 17 Oct 1997 09:11:08 OS
+ EndPopup rufen #44773#
+
+ Rev 1.34 19 Sep 1997 12:51:24 PB
+ chg: fuer VCL ToolBox::SetItemDown() eingebaut
+
+ Rev 1.33 18 Sep 1997 13:59:46 OS
+ Pointer::GetPosPixel fuer VCL ersetzt
+
+ Rev 1.32 18 Sep 1997 13:18:08 TJ
+ include
+
+ Rev 1.31 29 Aug 1997 15:45:34 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.30 29 Aug 1997 14:27:06 OS
+ DLL-Umbau
+
+ Rev 1.29 09 Jul 1997 17:36:10 HJS
+ includes
+
+ Rev 1.28 20 Jun 1997 13:52:52 OS
+ Merker und Notizen in der Navigation
+
+ Rev 1.27 07 May 1997 15:30:12 OS
+ Execute mit 0L abschliessen fuer W16
+
+ Rev 1.26 05 May 1997 12:26:24 OS
+ QuickHelpText als Member, MouseButtonDwon: nur linke Taste!
+
+ Rev 1.25 07 Apr 1997 12:36:44 OS
+ HelpId fuer ValueSet
+
+ Rev 1.24 24 Mar 1997 01:43:52 OS
+ Alignment aussen einstellen
+
+ Rev 1.23 23 Mar 1997 23:54:26 OS
+ ToolBoxAlign statt ToolBoxControl uebergeben
+
+ Rev 1.22 25 Feb 1997 13:04:24 OS
+ Spruenge im MouseButtonUp
+
+ Rev 1.21 23 Feb 1997 22:07:40 OS
+ richtige Hilfetexte fuer Prev/Next-Buttons
+
+ Rev 1.20 23 Feb 1997 19:36:52 OS
+ MouseButtonDown im ValueSet erledigt die Spruenge -> kein hakliges Verhalten mehr
+
+ Rev 1.19 22 Feb 1997 20:16:26 OS
+ eigenes Image fuer Button
+
+ Rev 1.18 21 Feb 1997 19:35:42 OS
+ mit Prev/Next-Button
+
+ Rev 1.17 21 Feb 1997 17:04:48 OS
+ fast fertig
+
+ Rev 1.16 20 Feb 1997 16:45:02 OS
+ Navigation funktioniert
+
+ Rev 1.15 19 Feb 1997 20:56:26 HJS
+ auf nicht const gecastet
+
+ Rev 1.14 19 Feb 1997 16:55:16 OS
+ Popup fuer Navigation
+
+ Rev 1.13 17 Feb 1997 10:39:42 OM
+ Neue Feldbefehle im Webmode
+
+ Rev 1.12 06 Feb 1997 14:50:26 OM
+ feldbefehl Seitennummer im html-Mode erlauben
+
+ Rev 1.11 06 Feb 1997 14:32:52 OM
+ Popup-Controller fuer Feldbefehle einfuegen
+
+ Rev 1.10 29 Jan 1997 14:52:24 OM
+ Draw-Toolboxen ins Svx verschoben
+
+ Rev 1.9 11 Nov 1996 11:15:14 MA
+ ResMgr
+
+ Rev 1.8 27 Sep 1996 16:21:26 HJS
+ vertipper
+
+ Rev 1.7 27 Sep 1996 12:56:42 OS
+ PopupMenu wird bei Bedarf angelegt
+
+ Rev 1.6 26 Sep 1996 16:57:00 OS
+ Update der AutoText-Liste
+
+ Rev 1.5 24 Sep 1996 16:45:06 OS
+ View-Wechsel vor jedem Aufruf
+
+ Rev 1.4 23 Sep 1996 13:43:46 OS
+ beschleunigter Zugriff auf den GlosHdl
+
+ Rev 1.3 23 Sep 1996 08:11:42 OS
+ Menu fuer Autotexte
+
+ Rev 1.2 20 Sep 1996 14:44:28 OS
+ Zuerst kommt die Toolbox ohne Timer
+
+ Rev 1.1 19 Sep 1996 19:40:04 HJS
+ fehlende includes
+
+ Rev 1.0 19 Sep 1996 16:02:36 OS
+ Initial revision.
+
+***********************************************************************/
+
+
diff --git a/sw/source/ui/ribbar/workctrl.hrc b/sw/source/ui/ribbar/workctrl.hrc
new file mode 100644
index 000000000000..220dbc33673a
--- /dev/null
+++ b/sw/source/ui/ribbar/workctrl.hrc
@@ -0,0 +1,118 @@
+/*************************************************************************
+ *
+ * $RCSfile: workctrl.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _WORKCTRL_HRC
+#define _WORKCTRL_HRC
+#include "ribbar.hrc"
+
+#define TBX_INSERT 1
+#define TBX_OBJ_INSERT 2
+#define TBX_FIELD_INSERT 3
+#define TBX_NAVIGATION 4
+#define IL_VALUES 5
+#define IMG_BTN 6
+#define ST_QUICK 7
+
+
+#define ST_TBL 12
+#define ST_FRM 13
+#define ST_PGE 14
+#define ST_DRW 15
+#define ST_CTRL 16
+#define ST_REG 17
+#define ST_BKM 18
+#define ST_GRF 19
+#define ST_OLE 20
+#define ST_OUTL 21
+#define ST_SEL 22
+#define ST_FTN 23
+#define ST_MARK 24
+#define ST_POSTIT 25
+#define ST_SRCH_REP 26
+#define ST_INDEX_ENTRY 27
+#define ST_TABLE_FORMULA 28
+#define ST_TABLE_FORMULA_ERROR 29
+
+// doppelter Eintrag! hrc und hxx
+// diese Ids bestimmen, was die Buttons unter dem Scrollbar tun
+#define NID_START 20000
+#define NID_NEXT 20000
+#define NID_PREV 20001
+#define NID_TBL 20002
+#define NID_FRM 20003
+#define NID_PGE 20004
+#define NID_DRW 20005
+#define NID_CTRL 20006
+#define NID_REG 20007
+#define NID_BKM 20008
+#define NID_GRF 20009
+#define NID_OLE 20010
+#define NID_OUTL 20011
+#define NID_SEL 20012
+#define NID_FTN 20013
+#define NID_MARK 20014
+#define NID_POSTIT 20015
+#define NID_SRCH_REP 20016
+#define NID_INDEX_ENTRY 20017
+#define NID_TABLE_FORMULA 20018
+#define NID_TABLE_FORMULA_ERROR 20019
+#define NID_COUNT 20
+
+#endif
diff --git a/sw/source/ui/ribbar/workctrl.src b/sw/source/ui/ribbar/workctrl.src
new file mode 100644
index 000000000000..01315ea11b48
--- /dev/null
+++ b/sw/source/ui/ribbar/workctrl.src
@@ -0,0 +1,1936 @@
+/*************************************************************************
+ *
+ * $RCSfile: workctrl.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _SVXIDS_HRC
+#include <svx/svxids.hrc>
+#endif
+#ifndef _GLOBLMN_HRC
+#include <svx/globlmn.hrc>
+#endif
+#include "workctrl.hrc"
+#include "workctrl.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+#define IMAGE_STDBTN_COLOR Color { Red = 0xC000; Green = 0xC000; Blue = 0xC000; }
+FloatingWindow RID_INSERT_CTRL
+{
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_INSERT_CTRL ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einfügen : Einf³gen */
+ Text = "Einfügen" ;
+ Text [ English ] = "Insert" ;
+ ToolBox TBX_INSERT
+ {
+ MenuStrings = TRUE ;
+ SVLook = TRUE ;
+ HelpID = 1 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_FRAME_INTERACT_NOCOL ;
+ HelpID = FN_INSERT_FRAME_INTERACT_NOCOL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_FRAME_INTERACT ;
+ HelpID = FN_INSERT_FRAME_INTERACT ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_GRAPHIC ;
+ HelpID = SID_INSERT_GRAPHIC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_TABLE ;
+ HelpID = FN_INSERT_TABLE ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERTDOC ;
+ HelpID = SID_INSERTDOC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_FOOTNOTE ;
+ HelpID = FN_INSERT_FOOTNOTE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_ENDNOTE ;
+ HelpID = FN_INSERT_ENDNOTE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_SYMBOL ;
+ HelpID = FN_INSERT_SYMBOL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_COLUMN_SECTION ;
+ HelpID = FN_INSERT_COLUMN_SECTION;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_IDX_ENTRY_DLG ;
+ HelpID = FN_INSERT_IDX_ENTRY_DLG ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_BOOKMARK ;
+ HelpID = FN_INSERT_BOOKMARK ;
+ RadioCheck = TRUE ;
+ };
+ };
+ };
+ Text [ english_us ] = "Insert" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ french ] = "Insérer" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ portuguese_brazilian ] = "Einfügen" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+};
+FloatingWindow RID_INSERT_OBJ_CTRL
+{
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_INSERT_OBJ_CTRL ;
+ /* ### ACHTUNG: Neuer Text in Resource? Objekt einfügen : Objekt einf³gen */
+ Text = "Objekt einfügen" ;
+ Text [ English ] = "Insert object" ;
+ ToolBox TBX_OBJ_INSERT
+ {
+ MenuStrings = TRUE ;
+ SVLook = TRUE ;
+ HelpID = 1 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_DIAGRAM ;
+ HelpID = SID_INSERT_DIAGRAM ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_SIM ;
+ HelpID = FN_INSERT_SIM ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_SMA ;
+ HelpID = FN_INSERT_SMA ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_FLOATINGFRAME ;
+ HelpID = SID_INSERT_FLOATINGFRAME ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_OBJECT ;
+ HelpID = SID_INSERT_OBJECT ;
+ };
+#ifdef SOLAR_PLUGIN
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_PLUGIN ;
+ HelpID = SID_INSERT_PLUGIN ;
+ };
+#endif
+#ifdef SOLAR_JAVA
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_APPLET ;
+ HelpID = SID_INSERT_APPLET ;
+ };
+#endif
+ };
+ };
+ Text [ dutch ] = "Object invoegen" ;
+ Text [ english_us ] = "Insert Object" ;
+ Text [ italian ] = "Inserisci oggetto" ;
+ Text [ spanish ] = "Insertar objeto" ;
+ Text [ french ] = "Insérer un objet" ;
+ Text [ swedish ] = "Infoga objekt" ;
+ Text [ danish ] = "Indsæt objekt" ;
+ Text [ portuguese ] = "Inserir objecto" ;
+ Text [ portuguese_brazilian ] = "Objekt einfügen" ;
+ Text[ chinese_simplified ] = "²åÈë¶ÔÏó";
+ Text[ russian ] = "Âñòàâèòü îáúåêò";
+ Text[ polish ] = "Wstaw obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤Jª«¥ó";
+ Text[ arabic ] = "ÅÏÎÇá ßÇÆä";
+ Text[ greek ] = "ÅéóáãùãÞ áíôéêåéìÝíïõ";
+ Text[ korean ] = "°³Ã¼ »ðÀÔ";
+ Text[ turkish ] = "Nesne ekle";
+ Text[ language_user1 ] = " ";
+};
+Menu RID_INSERT_FIELD_CTRL
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_DATE ;
+ HelpID = FN_INSERT_FLD_DATE ;
+ Text = "Datum" ;
+ Text [ English ] = "Date" ;
+ Text [ english_us ] = "Date" ;
+ Text [ italian ] = "Data" ;
+ Text [ spanish ] = "Fecha" ;
+ Text [ french ] = "Date" ;
+ Text [ dutch ] = "Datum" ;
+ Text [ swedish ] = "Datum" ;
+ Text [ danish ] = "Dato" ;
+ Text [ portuguese_brazilian ] = "Datum" ;
+ Text [ portuguese ] = "Data" ;
+ Text[ chinese_simplified ] = "ÈÕÆÚ";
+ Text[ russian ] = "Äàòà";
+ Text[ polish ] = "Data";
+ Text[ japanese ] = "“ú•t";
+ Text[ chinese_traditional ] = "¤é´Á";
+ Text[ arabic ] = "ÊÇÑíÎ";
+ Text[ greek ] = "Çìåñïìçíßá";
+ Text[ korean ] = "µ¥ÀÌÅÍ";
+ Text[ turkish ] = "Tarih";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_TIME ;
+ HelpID = FN_INSERT_FLD_TIME ;
+ Text = "Uhrzeit" ;
+ Text [ English ] = "Time" ;
+ Text [ english_us ] = "Time" ;
+ Text [ italian ] = "Orario" ;
+ Text [ spanish ] = "Hora" ;
+ Text [ french ] = "Heure" ;
+ Text [ dutch ] = "Tijd" ;
+ Text [ swedish ] = "Klockslag" ;
+ Text [ danish ] = "Klokkeslæt" ;
+ Text [ portuguese_brazilian ] = "Uhrzeit" ;
+ Text [ portuguese ] = "Hora" ;
+ Text[ chinese_simplified ] = "ʱ¼ä";
+ Text[ russian ] = "Âðåìÿ";
+ Text[ polish ] = "Godzina";
+ Text[ japanese ] = "Žž";
+ Text[ chinese_traditional ] = "®É¶¡";
+ Text[ arabic ] = "ÇáæÞÊ";
+ Text[ greek ] = "¿ñá";
+ Text[ korean ] = "½Ã°£";
+ Text[ turkish ] = "Saat";
+ Text[ language_user1 ] = " ";
+ };
+ //#ifndef MN_SW_WEB
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_PGNUMBER ;
+ HelpID = FN_INSERT_FLD_PGNUMBER ;
+ Text = "Seitennummer" ;
+ Text [ English ] = "Pagenumber" ;
+ Text [ dutch ] = "Paginanummer" ;
+ Text [ english_us ] = "Page Numbers" ;
+ Text [ italian ] = "Numeri di pagina" ;
+ Text [ spanish ] = "Número de página" ;
+ Text [ french ] = "Numéro de page" ;
+ Text [ swedish ] = "Sidnummer" ;
+ Text [ danish ] = "Sidetal" ;
+ Text [ portuguese_brazilian ] = "Seitennummer" ;
+ Text [ portuguese ] = "Número de página" ;
+ Text[ chinese_simplified ] = "Ò³Âë";
+ Text[ russian ] = "Íîìåð ñòðàíèöû";
+ Text[ polish ] = "Numer strony";
+ Text[ japanese ] = "Íß°¼Þ”Ô†";
+ Text[ chinese_traditional ] = "­¶½X";
+ Text[ arabic ] = "ÑÞã ÇáÕÝÍÉ";
+ Text[ greek ] = "Áñéèìüò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¼ö";
+ Text[ turkish ] = "Sayfa numarasý";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_PGCOUNT ;
+ HelpID = FN_INSERT_FLD_PGCOUNT ;
+ Text = "Seitenanzahl" ;
+ Text [ English ] = "Pagecount" ;
+ Text [ dutch ] = "Aantal pagina´s" ;
+ Text [ english_us ] = "Page Count" ;
+ Text [ italian ] = "Numero di pagine" ;
+ Text [ spanish ] = "Contar páginas" ;
+ Text [ french ] = "Nombre de pages" ;
+ Text [ swedish ] = "Sidantal" ;
+ Text [ danish ] = "Sideantal" ;
+ Text [ portuguese_brazilian ] = "Seitenanzahl" ;
+ Text [ portuguese ] = "Total de páginas" ;
+ Text[ chinese_simplified ] = "Ò³Êý";
+ Text[ russian ] = "Êîëè÷åñòâî ñòðàíèö";
+ Text[ polish ] = "Liczba stron";
+ Text[ japanese ] = "Íß°¼Þ‘”";
+ Text[ chinese_traditional ] = "­¶¼Æ";
+ Text[ arabic ] = "ÚÏÏ ÇáÕÝÍÇÊ";
+ Text[ greek ] = "Óýíïëï óåëéäþí";
+ Text[ korean ] = "ÆäÀÌÁö Ä«¿îÆ®";
+ Text[ turkish ] = "Sayfa sayýsý";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_TOPIC ;
+ HelpID = FN_INSERT_FLD_TOPIC ;
+ Text = "Thema" ;
+ Text [ English ] = "Topic" ;
+ Text [ english_us ] = "Subject" ;
+ Text [ italian ] = "Argomento" ;
+ Text [ spanish ] = "Tema" ;
+ Text [ french ] = "Sujet" ;
+ Text [ dutch ] = "Onderwerp" ;
+ Text [ swedish ] = "Ämne" ;
+ Text [ danish ] = "Emne" ;
+ Text [ portuguese_brazilian ] = "Thema" ;
+ Text [ portuguese ] = "Assunto" ;
+ Text[ chinese_simplified ] = "Ö÷Ìâ";
+ Text[ russian ] = "Òåìà";
+ Text[ polish ] = "Temat";
+ Text[ japanese ] = "ðÏ";
+ Text[ chinese_traditional ] = "¥DÃD";
+ Text[ arabic ] = "ÇáãæÖæÚ";
+ Text[ greek ] = "ÈÝìá";
+ Text[ korean ] = "ÁÖÁ¦";
+ Text[ turkish ] = "Konu";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_TITLE ;
+ HelpID = FN_INSERT_FLD_TITLE ;
+ Text = "Titel" ;
+ Text [ English ] = "Title" ;
+ Text [ dutch ] = "Titel" ;
+ Text [ english_us ] = "Title" ;
+ Text [ italian ] = "Titolo" ;
+ Text [ spanish ] = "Título" ;
+ Text [ french ] = "Titre" ;
+ Text [ swedish ] = "Titel" ;
+ Text [ danish ] = "Titel" ;
+ Text [ portuguese_brazilian ] = "Titel" ;
+ Text [ portuguese ] = "Título" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãëàâèå";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "À²ÄÙ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Ôßôëïò";
+ Text[ korean ] = "Á¦¸ñ";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ //#endif
+ MenuItem
+ {
+ Identifier = FN_INSERT_FLD_AUTHOR ;
+ HelpID = FN_INSERT_FLD_AUTHOR ;
+ Text = "Autor" ;
+ Text [ English ] = "Author" ;
+ Text [ dutch ] = "Auteur" ;
+ Text [ english_us ] = "Author" ;
+ Text [ italian ] = "Autore" ;
+ Text [ spanish ] = "Autor" ;
+ Text [ french ] = "Auteur" ;
+ Text [ swedish ] = "Författare" ;
+ Text [ danish ] = "Forfatter" ;
+ Text [ portuguese_brazilian ] = "Autor" ;
+ Text [ portuguese ] = "Autor" ;
+ Text[ chinese_simplified ] = "×÷Õß";
+ Text[ russian ] = "Àâòîð";
+ Text[ polish ] = "Autor";
+ Text[ japanese ] = "쬎Ò";
+ Text[ chinese_traditional ] = "§@ªÌ";
+ Text[ arabic ] = "ÇáãÄáÝ";
+ Text[ greek ] = "ÓõíôÜêôçò";
+ Text[ korean ] = "ÀÛ¼ºÀÎ";
+ Text[ turkish ] = "Yazan";
+ Text[ language_user1 ] = " ";
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = FN_INSERT_FIELD ;
+ HelpID = FN_INSERT_FIELD ;
+ Text = "Andere..." ;
+ Text [ English ] = "Other..." ;
+ Text [ english_us ] = "Other..." ;
+ Text [ italian ] = "Altro..." ;
+ Text [ spanish ] = "Otros..." ;
+ Text [ french ] = "Autres..." ;
+ Text [ dutch ] = "Andere..." ;
+ Text [ swedish ] = "Andra..." ;
+ Text [ danish ] = "Andre..." ;
+ Text [ portuguese ] = "Outros..." ;
+ Text [ portuguese_brazilian ] = "Andere..." ;
+ Text[ chinese_simplified ] = "ÆäËû...";
+ Text[ russian ] = "Äðóãèå...";
+ Text[ polish ] = "Inne...";
+ Text[ japanese ] = "‚»‚Ì‘¼...";
+ Text[ chinese_traditional ] = "¨ä¥L...";
+ Text[ arabic ] = "ÃÎÑì...";
+ Text[ greek ] = "¢ëëá...";
+ Text[ korean ] = "±âŸ...";
+ Text[ turkish ] = "Diðer...";
+ Text[ language_user1 ] = " ";
+ };
+ };
+};
+FloatingWindow RID_SCROLL_NAVIGATION_WIN
+{
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_INSERT_CTRL ;
+ Text = "Navigation" ;
+ Text [ English ] = "Navigation" ;
+ ImageList IL_VALUES
+ {
+ ImageBitmap = Bitmap { File = "srnavi.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ IdList =
+ {
+ NID_NEXT ;
+ NID_PREV ;
+ NID_TBL ;
+ NID_FRM ;
+ NID_PGE ;
+ NID_DRW ;
+ NID_CTRL ;
+ NID_REG ;
+ NID_BKM ;
+ NID_GRF ;
+ NID_OLE ;
+ NID_OUTL ;
+ NID_SEL ;
+ NID_FTN ;
+ NID_MARK ;
+ NID_POSTIT ;
+ NID_SRCH_REP ;
+ NID_INDEX_ENTRY;
+ NID_TABLE_FORMULA;
+ NID_TABLE_FORMULA_ERROR;
+ };
+ IdCount = { 20 ; };
+ };
+ String ST_TBL
+ {
+ Text = "Tabelle" ;
+ Text [ English ] = "Table" ;
+ Text [ english_us ] = "Table" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "Tableau" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_FRM
+ {
+ Text = "Textrahmen" ;
+ Text [ English ] = "Frame" ;
+ Text [ english_us ] = "Text Frame" ;
+ Text [ portuguese_brazilian ] = "Textrahmen" ;
+ Text [ swedish ] = "Textram" ;
+ Text [ danish ] = "Tekstboks" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco de texto" ;
+ Text [ french ] = "Cadre texte" ;
+ Text [ dutch ] = "Tekstkader" ;
+ Text [ portuguese ] = "Moldura de texto" ;
+ Text[ chinese_simplified ] = "Îı¾¿ò";
+ Text[ russian ] = "Òåêñòîâàÿ ðàìêà";
+ Text[ polish ] = "Ramka tekstu";
+ Text[ japanese ] = "÷½Ä˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ äÕ";
+ Text[ greek ] = "Ðëáßóéï êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Metin çerçevesi";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_PGE
+ {
+ Text = "Seite" ;
+ Text [ English ] = "Page" ;
+ Text [ english_us ] = "Page" ;
+ Text [ portuguese_brazilian ] = "Seite" ;
+ Text [ swedish ] = "Sida" ;
+ Text [ danish ] = "Side" ;
+ Text [ italian ] = "Pagina" ;
+ Text [ spanish ] = "Página" ;
+ Text [ french ] = "Page" ;
+ Text [ dutch ] = "Pagina" ;
+ Text [ portuguese ] = "Página" ;
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ";
+ Text[ chinese_traditional ] = "­¶";
+ Text[ arabic ] = "ÕÝÍÉ";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_DRW
+ {
+ Text = "Zeichenobjekt" ;
+ Text [ English ] = "Drawing" ;
+ Text [ english_us ] = "Drawing" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekt" ;
+ Text [ swedish ] = "Ritobjekt" ;
+ Text [ danish ] = "Tegneobjekt" ;
+ Text [ italian ] = "Oggetto di disegno" ;
+ Text [ spanish ] = "Objeto de dibujo" ;
+ Text [ french ] = "Objet de dessin" ;
+ Text [ dutch ] = "Tekenobject" ;
+ Text [ portuguese ] = "Desenho" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó";
+ Text[ russian ] = "Ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Obiekt rysunkowy";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸Ä";
+ Text[ english_us ] = "Drawing";
+ Text[ portuguese ] = "Desenho";
+ Text[ russian ] = "Ãðàôè÷åñêèé îáúåêò";
+ Text[ dutch ] = "Tekenobject";
+ Text[ french ] = "Objet de dessin";
+ Text[ spanish ] = "Objeto de dibujo";
+ Text[ italian ] = "Oggetto di disegno";
+ Text[ danish ] = "Tegneobjekt";
+ Text[ swedish ] = "Ritobjekt";
+ Text[ polish ] = "Obiekt rysunkowy";
+ Text[ portuguese_brazilian ] = "Zeichenobjekt";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸Ä";
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó";
+ Text[ chinese_traditional ] = "¹Ï¤ùª«¥ó";
+ Text[ arabic ] = "ßÇÆä ÑÓæãí";
+ Text[ greek ] = "Áíôéêåßìåíï ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â";
+ Text[ turkish ] = "Çizim";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_CTRL
+ {
+ Text = "Kontrollfeld" ;
+ Text [ English ] = "Control" ;
+ Text [ english_us ] = "Control" ;
+ Text [ portuguese_brazilian ] = "Kontrollfeld" ;
+ Text [ swedish ] = "Kontrollfält" ;
+ Text [ danish ] = "Kontrolelement" ;
+ Text [ italian ] = "Campo di controllo" ;
+ Text [ spanish ] = "Campo de control" ;
+ Text [ french ] = "Champ de contrôle" ;
+ Text [ dutch ] = "Controleveld" ;
+ Text [ portuguese ] = "Campo de controlo" ;
+ Text[ chinese_simplified ] = "¿ØÖÆ";
+ Text[ russian ] = "Ýëåìåíò óïðàâëåíèÿ";
+ Text[ polish ] = "Pole kontrolne";
+ Text[ japanese ] = "ºÝÄÛ°Ù";
+ Text[ chinese_traditional ] = "±±¨î¶µ";
+ Text[ arabic ] = "ÚäÕÑ ÊÍßã";
+ Text[ greek ] = "Ðåäßï åëÝã÷ïõ";
+ Text[ korean ] = "ÄÁÆ®·Ñ";
+ Text[ turkish ] = "Komut alaný";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_REG
+ {
+ Text = "Bereich" ;
+ Text [ English ] = "Region" ;
+ Text [ english_us ] = "Section" ;
+ Text [ portuguese_brazilian ] = "Bereich" ;
+ Text [ swedish ] = "Område" ;
+ Text [ danish ] = "Område" ;
+ Text [ italian ] = "Sezione" ;
+ Text [ spanish ] = "Area" ;
+ Text [ french ] = "Section" ;
+ Text [ dutch ] = "Bereik" ;
+ Text [ portuguese ] = "Secção" ;
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Sekcja";
+ Text[ japanese ] = "”͈Í";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "äØÇÞ";
+ Text[ greek ] = "Åíüôçôá";
+ Text[ korean ] = "±¸¿ª";
+ Text[ turkish ] = "Bölüm";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_BKM
+ {
+ Text = "Textmarke" ;
+ Text [ English ] = "Bookmark" ;
+ Text [ english_us ] = "Bookmark" ;
+ Text [ portuguese_brazilian ] = "Textmarke" ;
+ Text [ swedish ] = "Bokmärke" ;
+ Text [ danish ] = "Tekstmarkering" ;
+ Text [ italian ] = "Segnalibro" ;
+ Text [ spanish ] = "Marca de texto" ;
+ Text [ french ] = "Repère de texte" ;
+ Text [ dutch ] = "Tekstmarkering" ;
+ Text [ portuguese ] = "Marcador de texto" ;
+ Text[ chinese_simplified ] = "ÊéÇ©";
+ Text[ russian ] = "Çàêëàäêè";
+ Text[ polish ] = "Zak³adka";
+ Text[ japanese ] = "÷½ÄÏ°¸";
+ Text[ chinese_traditional ] = "¤º¤å¼ÐÅÒ";
+ Text[ arabic ] = "ÅÔÇÑÉ ãÑÌÚíÉ";
+ Text[ greek ] = "Óåëéäïäåßêôçò";
+ Text[ korean ] = "Ã¥ °¥ÇÇ";
+ Text[ turkish ] = "Metin iþareti";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_GRF
+ {
+ Text = "Grafik" ;
+ Text [ English ] = "Graphic" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ portuguese_brazilian ] = "Grafik" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ danish ] = "Billede" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ french ] = "Image" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_OLE
+ {
+ Text = "OLE-Objekt" ;
+ Text [ English ] = "OLE object" ;
+ Text [ english_us ] = "OLE object" ;
+ Text [ portuguese_brazilian ] = "OLE-Objekt" ;
+ Text [ swedish ] = "OLE-objekt" ;
+ Text [ danish ] = "OLE-objekt" ;
+ Text [ italian ] = "Oggetto OLE" ;
+ Text [ spanish ] = "Objeto OLE" ;
+ Text [ french ] = "Objet OLE" ;
+ Text [ dutch ] = "OLE-object" ;
+ Text [ portuguese ] = "Objecto OLE" ;
+ Text[ chinese_simplified ] = "OLE ¶ÔÏó";
+ Text[ russian ] = "Îáúåêò OLE";
+ Text[ polish ] = "Obiekt OLE";
+ Text[ japanese ] = "OLEµÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "OLE - ª«¥ó";
+ Text[ arabic ] = "OLE ßÇÆä";
+ Text[ greek ] = "Áíôéêåßìåíï OLE";
+ Text[ korean ] = "OLE °³Ã¼";
+ Text[ turkish ] = "OLE nesnesi";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_OUTL
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift : šberschrift */
+ Text = "Überschrift" ;
+ Text [ English ] = "Outline" ;
+ Text [ english_us ] = "Headings" ;
+ Text [ portuguese_brazilian ] = "Überschrift" ;
+ Text [ swedish ] = "Överskrift" ;
+ Text [ danish ] = "Overskrift" ;
+ Text [ italian ] = "Intestazione" ;
+ Text [ spanish ] = "Encabezado" ;
+ Text [ french ] = "Titre" ;
+ Text [ dutch ] = "Kop" ;
+ Text [ portuguese ] = "Título" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "Œ©o‚µ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä";
+ Text[ greek ] = "Åðéêåöáëßäá";
+ Text[ korean ] = "Á¦¸ñ";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_SEL
+ {
+ Text = "Markierung" ;
+ Text [ English ] = "Selection" ;
+ Text [ english_us ] = "Selection" ;
+ Text [ portuguese_brazilian ] = "Markierung" ;
+ Text [ swedish ] = "Markering" ;
+ Text [ danish ] = "Markering" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ spanish ] = "Selección" ;
+ Text [ french ] = "Sélection" ;
+ Text [ dutch ] = "Markering" ;
+ Text [ portuguese ] = "Selecção" ;
+ Text[ chinese_simplified ] = "Ñ¡ÖÐ";
+ Text[ russian ] = "Âûäåëåíèå";
+ Text[ polish ] = "Zaznaczenie";
+ Text[ japanese ] = "‘I‘ð";
+ Text[ chinese_traditional ] = "¿ï¨ú";
+ Text[ arabic ] = "ÊÍÏíÏ";
+ Text[ greek ] = "ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ";
+ Text[ turkish ] = "Seçim";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_FTN
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Fußnote : Fu˜note */
+ Text = "Fußnote" ;
+ Text [ English ] = "Footnote" ;
+ Text [ english_us ] = "Footnote" ;
+ Text [ portuguese_brazilian ] = "Fußnote" ;
+ Text [ swedish ] = "Fotnot" ;
+ Text [ danish ] = "Fodnote" ;
+ Text [ italian ] = "Nota a piè pagina" ;
+ Text [ spanish ] = "Nota al pie" ;
+ Text [ french ] = "Note de bas de page" ;
+ Text [ dutch ] = "Voetnoot" ;
+ Text [ portuguese ] = "Nota de rodapé" ;
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ russian ] = "Ñíîñêè";
+ Text[ polish ] = "Przypis dolny";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "µù¸}";
+ Text[ arabic ] = "ÍÇÔíÉ ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåßùóç";
+ Text[ korean ] = "°¢ ÁÖ";
+ Text[ turkish ] = "Dipnot";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_MARK
+ {
+ Text = "Merker" ;
+ Text [ English ] = "Reminder" ;
+ Text [ english_us ] = "Reminder" ;
+ Text [ portuguese_brazilian ] = "Merker" ;
+ Text [ swedish ] = "Temporärt bokmärke" ;
+ Text [ danish ] = "Påmindelse" ;
+ Text [ italian ] = "Contrassegno" ;
+ Text [ spanish ] = "Marca" ;
+ Text [ french ] = "Pense-bête" ;
+ Text [ dutch ] = "Merktekens" ;
+ Text [ portuguese ] = "Marca" ;
+ Text[ chinese_simplified ] = "񈬀";
+ Text[ russian ] = "Ïîìåòêà";
+ Text[ polish ] = "Znacznik";
+ Text[ japanese ] = "Šo‚¦Ž~‚ß";
+ Text[ chinese_traditional ] = "´£¿ô";
+ Text[ arabic ] = "ÚáÇãÉ ÊÐßíÑ";
+ Text[ greek ] = "Õðåíèýìéóç";
+ Text[ korean ] = "³ª¸ÓÁö";
+ Text[ turkish ] = "Anýmsatýcý";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_POSTIT
+ {
+ Text = "Notiz" ;
+ Text [ English ] = "Annotation" ;
+ Text [ english_us ] = "Note" ;
+ Text [ portuguese_brazilian ] = "Notiz" ;
+ Text [ swedish ] = "Anteckning" ;
+ Text [ danish ] = "Note" ;
+ Text [ italian ] = "Nota" ;
+ Text [ spanish ] = "Nota" ;
+ Text [ french ] = "Note" ;
+ Text [ dutch ] = "Aantekening" ;
+ Text [ portuguese ] = "Anotação" ;
+ Text[ chinese_simplified ] = "±¸×¢";
+ Text[ russian ] = "Ïðèìå÷àíèå";
+ Text[ polish ] = "Notatka";
+ Text[ japanese ] = "ÒÓ";
+ Text[ chinese_traditional ] = "³Æµù";
+ Text[ arabic ] = "ãáÇÍÙÉ";
+ Text[ greek ] = "Óçìåßùóç";
+ Text[ korean ] = "¸Þ¸ð";
+ Text[ turkish ] = "Not";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_SRCH_REP
+ {
+ Text = "Suche wiederholen" ;
+ Text [ English ] = "Repeat search" ;
+ Text [ english_us ] = "Repeat search" ;
+ Text [ portuguese_brazilian ] = "Suche wiederholen" ;
+ Text [ swedish ] = "Upprepa sökning" ;
+ Text [ danish ] = "Gentag søgning" ;
+ Text [ italian ] = "Ripeti ricerca" ;
+ Text [ spanish ] = "Repetir búsqueda" ;
+ Text [ french ] = "Répéter la recherche" ;
+ Text [ dutch ] = "Zoeken herhalen" ;
+ Text [ portuguese ] = "Repetir procura" ;
+ Text[ chinese_simplified ] = "Öظ´ËÑÑ°";
+ Text[ russian ] = "Ïîâòîð ïîèñêà";
+ Text[ polish ] = "Powtórz wyszukiwanie";
+ Text[ japanese ] = "ÄŒŸõ";
+ Text[ chinese_traditional ] = "­«½Æ·j´M";
+ Text[ arabic ] = "ÊßÑÇÑ ÇáÈÍË";
+ Text[ greek ] = "ÅðáíÜëçøç áíáæÞôçóçò";
+ Text[ korean ] = "¹Ýº¹ °Ë»ö";
+ Text[ turkish ] = "Aramayý yinele";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_INDEX_ENTRY
+ {
+ Text = "Verzeichniseintrag" ;
+ Text [ English ] = "Index entry" ;
+ Text[ italian ] = "Voce di indice";
+ Text[ portuguese_brazilian ] = "Index entry";
+ Text[ portuguese ] = "Entrada do índice";
+ Text[ danish ] = "Indekselement";
+ Text[ french ] = "Entrée d'index";
+ Text[ swedish ] = "Förteckningspost";
+ Text[ dutch ] = "Index item";
+ Text[ spanish ] = "Entrada del índice";
+ Text[ english_us ] = "Index entry";
+ Text[ chinese_simplified ] = "Ŀ¼ÌõÄ¿";
+ Text[ russian ] = "Ýëåìåíò óêàçàòåëÿ";
+ Text[ polish ] = "Wpis do indeksu";
+ Text[ japanese ] = "õˆø€–Ú";
+ Text[ chinese_traditional ] = "¥Ø¿ý¶µ¥Ø";
+ Text[ arabic ] = "ÅÏÎÇá ÝåÑÓí";
+ Text[ greek ] = "Êáôá÷þñéóç åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ Ç׸ñ";
+ Text[ turkish ] = "Dizin giriþi";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_TABLE_FORMULA
+ {
+ Text = "Tabellenformel" ;
+ Text [ English ] = "Table formula" ;
+ Text[ english_us ] = "Table formula";
+ Text[ portuguese ] = "Fórmula de tabela";
+ Text[ russian ] = "Ôîðìóëà òàáëèöû";
+ Text[ dutch ] = "Tabellenformule";
+ Text[ french ] = "Formule de table";
+ Text[ spanish ] = "Fórmula de tabla";
+ Text[ italian ] = "Formula tabella";
+ Text[ danish ] = "Tabelformel";
+ Text[ swedish ] = "Tabellformel";
+ Text[ polish ] = "Formu³a tabeli";
+ Text[ portuguese_brazilian ] = "Table formula";
+ Text[ japanese ] = "•\\‚Ì”Ž®";
+ Text[ chinese_simplified ] = "¹¤×÷±í¹«Ê½";
+ Text[ chinese_traditional ] = "¤u§@ªí¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ ÌÏæá";
+ Text[ greek ] = "Ôýðïò ðßíáêá";
+ Text[ korean ] = "Ç¥ ¼ö½Ä";
+ Text[ turkish ] = "Tablo formülü";
+ Text[ language_user1 ] = " ";
+ };
+ String ST_TABLE_FORMULA_ERROR
+ {
+ Text = "Fehlerhafte Tabellenformel" ;
+ Text [ English ] = "Wrong table formula" ;
+ Text[ english_us ] = "Wrong table formula";
+ Text[ portuguese ] = "Fórmula de tabela errada";
+ Text[ russian ] = "Íåïðàâèëüíàÿ ôîðìóëà òàáëèöû";
+ Text[ dutch ] = "Foutieve tabellenformule";
+ Text[ french ] = "Formule de table erronée";
+ Text[ spanish ] = "Fórmula errónea de tabla";
+ Text[ italian ] = "Formula tabella errata";
+ Text[ danish ] = "Fejlagtig tabelformel";
+ Text[ swedish ] = "Felaktig tabellformel";
+ Text[ polish ] = "Nieprawid³owa formu³a tabeli";
+ Text[ portuguese_brazilian ] = "Wrong table formula";
+ Text[ japanese ] = "³‚µ‚­‚È‚¢•\\‚Ì”Ž®";
+ Text[ chinese_simplified ] = "´íÎóµÄ¹¤×÷±í¹«Ê½";
+ Text[ chinese_traditional ] = "¿ù»~ªº¤u§@ªí¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ ÌÏæá ÎÇØÆÉ";
+ Text[ greek ] = "ËáíèáóìÝíïò ôýðïò ðßíáêá";
+ Text[ korean ] = "À߸øµÈ Ç¥ ¼ö½Ä";
+ Text[ turkish ] = "Hatalý tablo formülü";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ portuguese ] = "Navegação" ;
+ Text [ english_us ] = "Navigation" ;
+ Text [ portuguese_brazilian ] = "Navigation" ;
+ Text [ swedish ] = "Navigation" ;
+ Text [ danish ] = "Navigation" ;
+ Text [ italian ] = "Navigazione" ;
+ Text [ spanish ] = "Navegación" ;
+ Text [ french ] = "Navigation" ;
+ Text [ dutch ] = "Navigatie" ;
+ Text[ chinese_simplified ] = "ä¯ÀÀ";
+ Text[ russian ] = "Íàâèãàöèÿ";
+ Text[ polish ] = "Nawigacja";
+ Text[ japanese ] = "ÅËÞ¹Þ°¼®Ý";
+ Text[ chinese_traditional ] = "ÂsÄý";
+ Text[ arabic ] = "ÇáãáÇÍÉ";
+ Text[ greek ] = "Ìåôáêßíçóç";
+ Text[ korean ] = "³×ºñ°ÔÀ̼Ç";
+ Text[ turkish ] = "Dolaþma";
+ Text[ language_user1 ] = " ";
+};
+/*
+Noch ein paar Reserven
+ ToolBoxItem
+ {
+ Identifier = NID_NEXT;
+ Text = "Vorwärts" ;
+ Text [ ENGLISH ] = "Forward" ;
+ };
+ ToolBoxItem
+ {
+ Identifier = NID_PREV;
+ Text = "Rückwärts" ;
+ Text [ ENGLISH ] = "Backward" ;
+ };
+ ToolBoxItem
+ {
+ Identifier = NID_CTRL;
+ Text = "Control" ;
+ };
+ ToolBoxItem
+ {
+ Identifier = NID_DRW;
+ Text = "Zeichenobjekt" ;
+ };
+
+
+*/
+/***************************************************************
+ Strings fuer die Quickhelp der View-PgUp/Down-Buttons
+***************************************************************/
+String STR_IMGBTN_NEXT_DOWN
+{
+ Text = "" ;
+};
+String STR_IMGBTN_PREV_DOWN
+{
+ Text = "" ;
+};
+String STR_IMGBTN_TBL_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Tabelle : Nõchste Tabelle */
+ Text = "Nächste Tabelle" ;
+ Text [ English ] = "Next Table" ;
+ Text [ english_us ] = "Next table" ;
+ Text [ portuguese_brazilian ] = "Nächste Tabelle" ;
+ Text [ swedish ] = "Nästa tabell" ;
+ Text [ danish ] = "Næste tabel" ;
+ Text [ italian ] = "Tabella successiva" ;
+ Text [ spanish ] = "Tabla siguiente" ;
+ Text [ french ] = "Tableau suivant" ;
+ Text [ dutch ] = "Volgende tabel" ;
+ Text [ portuguese ] = "Tabela seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö±í¸ñ";
+ Text[ russian ] = "Ñëåäóþùàÿ òàáëèöà";
+ Text[ polish ] = "Nastêpna tabela";
+ Text[ japanese ] = "ŽŸ‚Ì•\\";
+ Text[ chinese_traditional ] = "¤U¤@­Óªí®æ";
+ Text[ arabic ] = "ÇáÌÏæá ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíïò ðßíáêáò";
+ Text[ korean ] = "´ÙÀ½ Ç¥";
+ Text[ turkish ] = "Sonraki tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_FRM_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächster Textrahmen : Nõchster Textrahmen */
+ Text = "Nächster Textrahmen" ;
+ Text [ English ] = "Next Frame" ;
+ Text [ english_us ] = "Next text frame" ;
+ Text [ portuguese_brazilian ] = "Nächster Textrahmen" ;
+ Text [ swedish ] = "Nästa textram" ;
+ Text [ danish ] = "Næste tekstboks" ;
+ Text [ italian ] = "Cornice successiva" ;
+ Text [ spanish ] = "Marco de texto siguiente" ;
+ Text [ french ] = "Cadre texte suivant" ;
+ Text [ dutch ] = "Volgend tekstkader" ;
+ Text [ portuguese ] = "Moldura de texto seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öÎı¾¿ò";
+ Text[ russian ] = "Ñëåäóþùàÿ òåêñòîâàÿ ðàìêà";
+ Text[ polish ] = "Nastêpna ramka tekstowa";
+ Text[ japanese ] = "ŽŸ‚Ì÷½Ä˜g";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¤å¦r¤è®Ø";
+ Text[ arabic ] = "ÅØÇÑ ÇáäÕ ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíï ðëáßóéï êåéìÝíïõ";
+ Text[ korean ] = "´ÙÀ½ ÅؽºÆ® ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Sonraki metin çerçevesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_PGE_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Seite : Nõchste Seite */
+ Text = "Nächste Seite" ;
+ Text [ English ] = "Next Page" ;
+ Text [ english_us ] = "Next page" ;
+ Text [ portuguese_brazilian ] = "Nächste Seite" ;
+ Text [ swedish ] = "Nästa sida" ;
+ Text [ danish ] = "Næste side" ;
+ Text [ italian ] = "Pagina successiva" ;
+ Text [ spanish ] = "Página siguiente" ;
+ Text [ french ] = "Page suivante" ;
+ Text [ dutch ] = "Volgende pagina" ;
+ Text [ portuguese ] = "Página seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»Ò³";
+ Text[ russian ] = "Ñëåäóþùàÿ ñòðàíèöà";
+ Text[ polish ] = "Nastêpna strona";
+ Text[ japanese ] = "ŽŸ‚ÌÍß°¼Þ";
+ Text[ chinese_traditional ] = "¤U¤@­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíç óåëßäá";
+ Text[ korean ] = "´ÙÀ½ ÆäÀÌÁö";
+ Text[ turkish ] = "Sonraki sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_DRW_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächstes Zeichenobjekt : Nõchstes Zeichenobjekt */
+ Text = "Nächstes Zeichenobjekt" ;
+ Text [ English ] = "Next drawing" ;
+ Text [ english_us ] = "Next drawing" ;
+ Text [ portuguese_brazilian ] = "Nächstes Zeichenobjekt" ;
+ Text [ swedish ] = "Nästa ritobjekt" ;
+ Text [ danish ] = "Næste tegneobjekt" ;
+ Text [ italian ] = "Oggetto di disegno successivo" ;
+ Text [ spanish ] = "Objeto de dibujo siguiente" ;
+ Text [ french ] = "Objet de dessin suivant" ;
+ Text [ dutch ] = "Volgend tekenobject" ;
+ Text [ portuguese ] = "Objecto de desenho seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö×Ö·û¶ÔÏó";
+ Text[ russian ] = "Ñëåäóþùèé ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Nastêpny obiekt rysunkowy";
+ Text[ japanese ] = "ŽŸ‚Ì•¶ŽšµÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¦r¤¸ª«¥ó";
+ Text[ arabic ] = "ÇáßÇÆä ÇáÑÓæãí ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíï áíôéêåßìåíï ó÷åäßáóçò";
+ Text[ korean ] = "´ÙÀ½ ±×¸®±â";
+ Text[ turkish ] = "Sonraki çizim";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_CTRL_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächstes Kontrollfeld : Nõchstes Kontrollfeld */
+ Text = "Nächstes Kontrollfeld" ;
+ Text [ English ] = "Next control" ;
+ Text [ english_us ] = "Next control" ;
+ Text [ portuguese_brazilian ] = "Nächstes Kontrollfeld" ;
+ Text [ swedish ] = "Nästa kontrollfält" ;
+ Text [ danish ] = "Næste kontrolelement" ;
+ Text [ italian ] = "Campo di controllo successivo" ;
+ Text [ spanish ] = "Campo de control siguiente" ;
+ Text [ french ] = "Elément de contrôle suivant" ;
+ Text [ dutch ] = "Volgend controleveld" ;
+ Text [ portuguese ] = "Controlo seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö¿ØÖÆ";
+ Text[ russian ] = "Ñëåäóþùèé ýëåìåíò óïðàâëåíèÿ";
+ Text[ polish ] = "Nastêpne pole kontrolne";
+ Text[ japanese ] = "ŽŸ‚̺ÝÄÛ°Ù";
+ Text[ chinese_traditional ] = "¤U¤@­Ó±±¨î¶µ";
+ Text[ arabic ] = "ÚäÕÑ ÇáÊÍßã ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíï ðåäßï åëÝã÷ïõ";
+ Text[ korean ] = "´ÙÀ½ ÄÁÆ®·Ñ";
+ Text[ turkish ] = "Sonraki komut alaný";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_REG_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächster Bereich : Nõchster Bereich */
+ Text = "Nächster Bereich" ;
+ Text [ English ] = "Next region" ;
+ Text [ english_us ] = "Next section" ;
+ Text [ portuguese_brazilian ] = "Nächster Bereich" ;
+ Text [ swedish ] = "Nästa område" ;
+ Text [ danish ] = "Næste område" ;
+ Text [ italian ] = "Area successiva" ;
+ Text [ spanish ] = "Area siguiente" ;
+ Text [ french ] = "Section suivante" ;
+ Text [ dutch ] = "Volgend bereik" ;
+ Text [ portuguese ] = "Secção seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öÇøÓò";
+ Text[ russian ] = "Ñëåäóþùàÿ îáëàñòü";
+ Text[ polish ] = "Nastêpna sekcja";
+ Text[ japanese ] = "ŽŸ‚͈̔Í";
+ Text[ chinese_traditional ] = "¤U¤@­Ó°Ï°ì";
+ Text[ arabic ] = "ÇáäØÇÞ ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíç åíüôçôá";
+ Text[ korean ] = "´ÙÀ½ ±¸¿ª";
+ Text[ turkish ] = "Sonraki bölüm";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_BKM_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Textmarke : Nõchste Textmarke */
+ Text = "Nächste Textmarke" ;
+ Text [ English ] = "Next bookmark" ;
+ Text [ english_us ] = "Next bookmark" ;
+ Text [ portuguese_brazilian ] = "Nächste Textmarke" ;
+ Text [ swedish ] = "Nästa bokmärke" ;
+ Text [ danish ] = "Næste tekstmarkering" ;
+ Text [ italian ] = "Segnalibro successivo" ;
+ Text [ spanish ] = "Marcador siguiente" ;
+ Text [ french ] = "Repère de texte suivant" ;
+ Text [ dutch ] = "Volgende tekstmarkering" ;
+ Text [ portuguese ] = "Marcador de texto seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öÊéÇ©";
+ Text[ russian ] = "Ñëåäóþùàÿ çàêëàäêà";
+ Text[ polish ] = "Nastêpna zak³adka";
+ Text[ japanese ] = "ŽŸ‚Ì÷½ÄÏ°¸";
+ Text[ chinese_traditional ] = "¤U¤@­Ó®ÑÅÒ";
+ Text[ arabic ] = "ÇáÅÔÇÑÉ ÇáãÑÌÚíÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíï óçìÜäé êåéìÝíïõ";
+ Text[ korean ] = "´ÙÀ½ Ã¥ °¥ÇÇ";
+ Text[ turkish ] = "Sonraki metin iþareti";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_GRF_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Grafik : Nõchste Grafik */
+ Text = "Nächste Grafik" ;
+ Text [ English ] = "Next graphic" ;
+ Text [ english_us ] = "Next picture" ;
+ Text [ portuguese_brazilian ] = "Nächste Grafik" ;
+ Text [ swedish ] = "Nästa grafik" ;
+ Text [ danish ] = "Næste billede" ;
+ Text [ italian ] = "Immagine successiva" ;
+ Text [ spanish ] = "Imagen siguiente" ;
+ Text [ french ] = "Image suivante" ;
+ Text [ dutch ] = "Volgende afbeelding" ;
+ Text [ portuguese ] = "Imagem seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öͼÐÎ";
+ Text[ russian ] = "Ñëåäóþùèé ðèñóíîê";
+ Text[ polish ] = "Nastêpna grafika";
+ Text[ japanese ] = "ŽŸ‚̸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¹Ï¤ù";
+ Text[ arabic ] = "ÇáÕæÑÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíï ãñáöéêü";
+ Text[ korean ] = "´ÙÀ½ ±×¸²";
+ Text[ turkish ] = "Sonraki grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_OLE_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächstes OLE-Objekt : Nächstes OLE object */
+ /* ### ACHTUNG: Neuer Text in Resource? Nächstes OLE-Objekt : Nõchstes OLE-Objekt */
+ Text = "Nächstes OLE-Objekt" ;
+ Text [ English ] = "Next OLE object" ;
+ Text [ english_us ] = "Next OLE object" ;
+ Text [ portuguese_brazilian ] = "Nächstes OLE object" ;
+ Text [ swedish ] = "Nästa OLE-objekt" ;
+ Text [ danish ] = "Næste OLE-objekt" ;
+ Text [ italian ] = "Oggetto OLE successivo" ;
+ Text [ spanish ] = "Objeto OLE siguiente" ;
+ Text [ french ] = "Objet OLE suivant" ;
+ Text [ dutch ] = "Volgend OLE-object" ;
+ Text [ portuguese ] = "Objecto OLE seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö OLE-¶ÔÏó";
+ Text[ russian ] = "Ñëåäóþùèé îáúåêò OLE";
+ Text[ polish ] = "Nastêpny obiekt OLE";
+ Text[ japanese ] = "ŽŸ‚ÌOLE-µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "¤U¤@­Ó OLE-ª«¥ó";
+ Text[ arabic ] = "ÇáÊÇáí OLE ÇáßÇÆä";
+ Text[ greek ] = "Åðüìåíï áíôéêåßìåíï OLE";
+ Text[ korean ] = "´ÙÀ½ OLE°³Ã¼";
+ Text[ turkish ] = "Sonraki OLE nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_OUTL_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Überschrift : Nõchste šberschrift */
+ Text = "Nächste Überschrift" ;
+ Text [ English ] = "Next outline" ;
+ Text [ english_us ] = "Next heading" ;
+ Text [ portuguese_brazilian ] = "Nächste Überschrift" ;
+ Text [ swedish ] = "Nästa överskrift" ;
+ Text [ danish ] = "Næste overskrift" ;
+ Text [ italian ] = "Intestazione successiva" ;
+ Text [ spanish ] = "Encabezado siguiente" ;
+ Text [ french ] = "Titre suivant" ;
+ Text [ dutch ] = "Volgende kop" ;
+ Text [ portuguese ] = "Título seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö±êÌâ";
+ Text[ russian ] = "Ñëåäóþùèé çàãîëîâîê";
+ Text[ polish ] = "Nastêpny tytu³";
+ Text[ japanese ] = "ŽŸ‚ÌŒ©o‚µ";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíç åðéêåöáëßäá";
+ Text[ korean ] = "´ÙÀ½ Á¦¸ñ";
+ Text[ turkish ] = "Sonraki baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_SEL_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Markierung : Nõchste Markierung */
+ Text = "Nächste Markierung" ;
+ Text [ English ] = "Next selection" ;
+ Text [ english_us ] = "Next selection" ;
+ Text [ portuguese_brazilian ] = "Nächste Markierung" ;
+ Text [ swedish ] = "Nästa markering" ;
+ Text [ danish ] = "Næste markering" ;
+ Text [ italian ] = "Selezione successiva" ;
+ Text [ spanish ] = "Selección siguiente" ;
+ Text [ french ] = "Sélection suivante" ;
+ Text [ dutch ] = "Volgende markering" ;
+ Text [ portuguese ] = "Selecção seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öÑ¡Ôñ";
+ Text[ russian ] = "Ñëåäóþùåå âûäåëåíèå";
+ Text[ polish ] = "Nastêpne zaznaczenie";
+ Text[ japanese ] = "ŽŸ‚Ì‘I‘ð";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¿ï¨ú";
+ Text[ arabic ] = "ÇáÊÍÏíÏ ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíç åðéëïãÞ";
+ Text[ korean ] = "´ÙÀ½ ¼±ÅÃ";
+ Text[ turkish ] = "Önceki seçim";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_FTN_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Fußnote : Nõchste Fu˜note */
+ Text = "Nächste Fußnote" ;
+ Text [ English ] = "Next Footnote" ;
+ Text [ english_us ] = "Next footnote" ;
+ Text [ portuguese_brazilian ] = "Nächste Fußnote" ;
+ Text [ swedish ] = "Nästa fotnot" ;
+ Text [ danish ] = "Næste fodnote" ;
+ Text [ italian ] = "Nota a piè pagina successiva" ;
+ Text [ spanish ] = "Nota al pie siguiente" ;
+ Text [ french ] = "Note de bas de page suivante" ;
+ Text [ dutch ] = "Volgende voetnoot" ;
+ Text [ portuguese ] = "Nota de rodapé seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö×¢½Å";
+ Text[ russian ] = "Ñëåäóþùàÿ ñíîñêà";
+ Text[ polish ] = "Nastêpny przypis dolny";
+ Text[ japanese ] = "ŽŸ‚Ì‹r’";
+ Text[ chinese_traditional ] = "¤U¤@­Óµù¸}";
+ Text[ arabic ] = "ÇáÍÇÔíÉ ÇáÓÝáíÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíç õðïóçìåßùóç";
+ Text[ korean ] = "´ÙÀ½ °¢ÁÖ";
+ Text[ turkish ] = "Sonraki dipnot";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_MARK_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächster Merker : Nõchster Merker */
+ Text = "Nächster Merker" ;
+ Text [ English ] = "Next Reminder" ;
+ Text [ english_us ] = "Next Reminder" ;
+ Text [ portuguese_brazilian ] = "Nächster Merker" ;
+ Text [ swedish ] = "Nästa temporära bokmärke" ;
+ Text [ danish ] = "Næste påmindelse" ;
+ Text [ italian ] = "Contrassegno successivo" ;
+ Text [ spanish ] = "Marca siguiente" ;
+ Text [ french ] = "Pense-bête suivant" ;
+ Text [ dutch ] = "Volgend merkteken" ;
+ Text [ portuguese ] = "Marca seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö±ê¼Ç";
+ Text[ russian ] = "Ñëåäóþùàÿ ïîìåòêà";
+ Text[ polish ] = "Nastêpny znacznik";
+ Text[ japanese ] = "ŽŸ‚ÌŠo‚¦Ž~‚ß";
+ Text[ chinese_traditional ] = "¤U¤@­Ó´£¿ô";
+ Text[ arabic ] = "ÚáÇãÉ ÇáÊÐßíÑ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíç õðåíèýìéóç";
+ Text[ korean ] = "´ÙÀ½ ³ª¸ÓÁö";
+ Text[ turkish ] = "Sonraki anýmsatýcý";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_POSTIT_DOWN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nächste Notiz : Nõchste Notiz */
+ Text = "Nächste Notiz" ;
+ Text [ English ] = "Next Annotation" ;
+ Text [ english_us ] = "Next Note" ;
+ Text [ portuguese_brazilian ] = "Nächste Notiz" ;
+ Text [ swedish ] = "Nästa anteckning" ;
+ Text [ danish ] = "Næste note" ;
+ Text [ italian ] = "Nota successiva" ;
+ Text [ spanish ] = "Nota siguiente" ;
+ Text [ french ] = "Note suivante" ;
+ Text [ dutch ] = "Volgende aantekening" ;
+ Text [ portuguese ] = "Anotação seguinte" ;
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö±¸×¢";
+ Text[ russian ] = "Ñëåäóþùåå ïðèìå÷àíèå";
+ Text[ polish ] = "Nastêpna notatka";
+ Text[ japanese ] = "ŽŸ‚ÌÒÓ";
+ Text[ chinese_traditional ] = "¤U¤@­Ó³Æµù";
+ Text[ arabic ] = "ÇáãáÇÍÙÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíç óçìåßùóç";
+ Text[ korean ] = "´ÙÀ½ ¸Þ¸ð";
+ Text[ turkish ] = "Sonraki not";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_SRCH_REP_DOWN
+{
+ Text = "Vorwärts weitersuchen" ;
+ Text [ English ] = "Repeat search " ;
+ Text [ english_us ] = "Continue search forward" ;
+ Text [ portuguese_brazilian ] = "Vorwärts weitersuchen" ;
+ Text [ swedish ] = "Sök vidare framåt" ;
+ Text [ danish ] = "Fortsæt søgning fremad" ;
+ Text [ italian ] = "Continua a cercare in avanti" ;
+ Text [ spanish ] = "Continuar búsqueda hacia delante" ;
+ Text [ french ] = "Continuer la recherche vers le bas" ;
+ Text [ dutch ] = "Voorwaarts verder zoeken" ;
+ Text [ portuguese ] = "Continuar a procura para a frente" ;
+ Text[ chinese_simplified ] = "ÏòÇ°ËÑÑ°";
+ Text[ russian ] = "Ïîèñê âïåðåä";
+ Text[ polish ] = "Szukaj dalej do przodu";
+ Text[ japanese ] = "•¶––•ûŒü‚ÉŒŸõ‘±s";
+ Text[ chinese_traditional ] = "¦V«e·j´M";
+ Text[ arabic ] = "ãÊÇÈÚÉ ÇáÈÍË ááÃãÇã";
+ Text[ greek ] = "ÓõíÝ÷éóç áíáæÞôçóçò ðñïò ôá åìðñüò";
+ Text[ korean ] = "°è¼Ó ¾ÕÀ¸·Î °Ë»ö";
+ Text[ turkish ] = "Ýleri dogru ara";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_INDEX_ENTRY_DOWN
+{
+ Text = "Nächster Verzeichniseintrag" ;
+ Text [ English ] = "Next index entry" ;
+ Text[ italian ] = "Voce d'indice successiva";
+ Text[ portuguese_brazilian ] = "Next index entry";
+ Text[ portuguese ] = "Entrada do índice seguinte";
+ Text[ danish ] = "Næste indekselement";
+ Text[ french ] = "Entrée d'index suivante";
+ Text[ swedish ] = "Nästa förteckningspost";
+ Text[ dutch ] = "Volgend index item";
+ Text[ spanish ] = "Entrada de índice siguiente";
+ Text[ english_us ] = "Next index entry";
+ Text[ chinese_simplified ] = "ÏÂÒ»¸öĿ¼ÌõÄ¿";
+ Text[ russian ] = "Ñëåäóþùèé ýëåìåíò óêàçàòåëÿ";
+ Text[ polish ] = "Nastêpny wpis do indeksu";
+ Text[ japanese ] = "ŽŸ‚Ìõˆø€–Ú";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¥Ø¿ý¶µ¥Ø";
+ Text[ arabic ] = "ÇáÅÏÎÇá ÇáÝåÑÓí ÇáÊÇáí";
+ Text[ greek ] = "Åðüìåíç åããñáöÞ åõñåôçñßïõ";
+ Text[ korean ] = "´ÙÀ½ »öÀÎ Ç׸ñ";
+ Text[ turkish ] = "Sonraki dizin giriþi";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_NEXT_UP
+{
+ Text = "" ;
+};
+String STR_IMGBTN_PREV_UP
+{
+ Text = "" ;
+};
+String STR_IMGBTN_TBL_UP
+{
+ Text = "Vorige Tabelle" ;
+ Text [ English ] = "Previous table" ;
+ Text [ english_us ] = "Previous table" ;
+ Text [ portuguese_brazilian ] = "Vorige Tabelle" ;
+ Text [ swedish ] = "Föregående tabell" ;
+ Text [ danish ] = "Forrige tabel" ;
+ Text [ italian ] = "Tabella precedente" ;
+ Text [ spanish ] = "Tabla anterior" ;
+ Text [ french ] = "Tableau précédent" ;
+ Text [ dutch ] = "Vorige tabel" ;
+ Text [ portuguese ] = "Tabela anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö±í¸ñ";
+ Text[ russian ] = "Ïðåäûäóùàÿ òàáëèöà";
+ Text[ polish ] = "Poprzednia tabela";
+ Text[ japanese ] = "‘O‚Ì•\\";
+ Text[ chinese_traditional ] = "¤W¤@­Óªí®æ";
+ Text[ arabic ] = "ÇáÌÏæá ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíïò ðßíáêáò";
+ Text[ korean ] = "ÀÌÀüÇ¥";
+ Text[ turkish ] = "Önceki tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_FRM_UP
+{
+ Text = "Voriger Textrahmen" ;
+ Text [ English ] = "Previous frame" ;
+ Text [ english_us ] = "Previous text frame" ;
+ Text [ portuguese_brazilian ] = "Voriger Textrahmen" ;
+ Text [ swedish ] = "Föregående textram" ;
+ Text [ danish ] = "Forrige tekstboks" ;
+ Text [ italian ] = "Cornice di testo precedente" ;
+ Text [ spanish ] = "Marco de texto anterior" ;
+ Text [ french ] = "Cadre texte précédent" ;
+ Text [ dutch ] = "Vorig tekstkader" ;
+ Text [ portuguese ] = "Moldura de texto anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öÎı¾¿ò";
+ Text[ russian ] = "Ïðåäûäóùàÿ òåêñòîâàÿ ðàìêà";
+ Text[ polish ] = "Poprzednia ramka tekstowa";
+ Text[ japanese ] = "‘O‚Ì÷½Ä˜g";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¤å¦r¤è®Ø";
+ Text[ arabic ] = "ÅØÇÑ ÇáäÕ ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíï ðëáßóéï êåéìÝíïõ";
+ Text[ korean ] = "ÀÌÀü ÅؽºÆ® ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Önceki metin çerçevesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_PGE_UP
+{
+ Text = "Vorige Seite" ;
+ Text [ English ] = "Previous page" ;
+ Text [ english_us ] = "Previous page" ;
+ Text [ portuguese_brazilian ] = "Vorige Seite" ;
+ Text [ swedish ] = "Föregående sida" ;
+ Text [ danish ] = "Forrige side" ;
+ Text [ italian ] = "Pagina precedente" ;
+ Text [ spanish ] = "Página anterior" ;
+ Text [ french ] = "Page précédente" ;
+ Text [ dutch ] = "Vorige pagina" ;
+ Text [ portuguese ] = "Página anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»Ò³";
+ Text[ russian ] = "Ïðåäûäóùàÿ ñòðàíèöà";
+ Text[ polish ] = "Poprzednia strona";
+ Text[ japanese ] = "‘O‚ÌÍß°¼Þ";
+ Text[ chinese_traditional ] = "¤W¤@­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíç óåëßäá";
+ Text[ korean ] = "ÀÌÀü ÆäÀÌÁö";
+ Text[ turkish ] = "Önceki sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_DRW_UP
+{
+ Text = "Voriges Zeichenobjekt" ;
+ Text [ English ] = "Previous drawing" ;
+ Text [ english_us ] = "Previous drawing" ;
+ Text [ portuguese_brazilian ] = "Voriges Zeichenobjekt" ;
+ Text [ swedish ] = "Föregående ritobjekt" ;
+ Text [ danish ] = "Forrige tegneobjekt" ;
+ Text [ italian ] = "Oggetto di disegno precedente" ;
+ Text [ spanish ] = "Objeto de dibujo anterior" ;
+ Text [ french ] = "Objet de dessin précédent" ;
+ Text [ dutch ] = "Vorig tekenobject" ;
+ Text [ portuguese ] = "Objecto de desenho anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö×Ö·û¶ÔÏó";
+ Text[ russian ] = "Ïðåäûäóùèé ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Poprzedni obiekt rysunkowy";
+ Text[ japanese ] = "‘O‚Ì•¶ŽšµÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¦r¤¸ª«¥ó";
+ Text[ arabic ] = "ÇáßÇÆä ÇáÑÓæãí ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíï áíôéêåßìåíï ó÷åäßáóçò";
+ Text[ korean ] = "ÀÌÀü ±×¸®±â";
+ Text[ turkish ] = "Önceki çizim";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_CTRL_UP
+{
+ Text = "Voriges Kontrollfeld" ;
+ Text [ English ] = "Previous control" ;
+ Text [ english_us ] = "Previous control" ;
+ Text [ portuguese_brazilian ] = "Voriges Kontrollfeld" ;
+ Text [ swedish ] = "Föregående kontrollfält" ;
+ Text [ danish ] = "Forrige kontrolelement" ;
+ Text [ italian ] = "Campo di controllo precedente" ;
+ Text [ spanish ] = "Campo de control anterior" ;
+ Text [ french ] = "Elément de contrôle précédent" ;
+ Text [ dutch ] = "Vorig controleveld" ;
+ Text [ portuguese ] = "Controlo anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö¿ØÖÆ";
+ Text[ russian ] = "Ïðåäûäóùèé ýëåìåíò óïðàâëåíèÿ";
+ Text[ polish ] = "Poprzednie pole kontrolne";
+ Text[ japanese ] = "‘O‚̺ÝÄÛ°Ù";
+ Text[ chinese_traditional ] = "¤W¤@­Ó±±¨î¶µ";
+ Text[ arabic ] = "ÚäÕÑ ÇáÊÍßã ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíï ðåäßï åëÝã÷ïõ";
+ Text[ korean ] = "ÀÌÀü ÄÁÆ®·Ñ";
+ Text[ turkish ] = "Önceki komut alaný";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_REG_UP
+{
+ Text = "Voriger Bereich" ;
+ Text [ English ] = "Previous region" ;
+ Text [ english_us ] = "Previous section" ;
+ Text [ portuguese_brazilian ] = "Voriger Bereich" ;
+ Text [ swedish ] = "Föregående område" ;
+ Text [ danish ] = "Forrige område" ;
+ Text [ italian ] = "Area precedente" ;
+ Text [ spanish ] = "Area anterior" ;
+ Text [ french ] = "Section précédente" ;
+ Text [ dutch ] = "Vorig bereik" ;
+ Text [ portuguese ] = "Secção anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öÇøÓò";
+ Text[ russian ] = "Ïðåäûäóùàÿ îáëàñòü";
+ Text[ polish ] = "Poprzednia sekcja";
+ Text[ japanese ] = "‘O‚͈̔Í";
+ Text[ chinese_traditional ] = "¤W¤@­Ó°Ï°ì";
+ Text[ arabic ] = "ÇáäØÇÞ ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíç åíüôçôá";
+ Text[ korean ] = "ÀÌÀü ±¸¿ª";
+ Text[ turkish ] = "Önceki Bölüm";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_BKM_UP
+{
+ Text = "Vorige Textmarke" ;
+ Text [ English ] = "Previous bookmark" ;
+ Text [ english_us ] = "Previous bookmark" ;
+ Text [ portuguese_brazilian ] = "Vorige Textmarke" ;
+ Text [ swedish ] = "Föregående bokmärke" ;
+ Text [ danish ] = "Forrige tekstmarkering" ;
+ Text [ italian ] = "Segnalibro precedente" ;
+ Text [ spanish ] = "Marcador anterior" ;
+ Text [ french ] = "Repère de texte précédent" ;
+ Text [ dutch ] = "Vorige tekstmarkering" ;
+ Text [ portuguese ] = "Marcador de texto anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öÊéÇ©";
+ Text[ russian ] = "Ïðåäûäóùàÿ çàêëàäêà";
+ Text[ polish ] = "Poprzednia zak³adka";
+ Text[ japanese ] = "‘O‚Ì÷½ÄÏ°¸";
+ Text[ chinese_traditional ] = "¤W¤@­Ó®ÑÅÒ";
+ Text[ arabic ] = "ÇáÅÔÇÑÉ ÇáãÑÌÚíÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíï óçìÜäé êåéìÝíïõ";
+ Text[ korean ] = "ÀÌÀü Ã¥ °¥ÇÇ";
+ Text[ turkish ] = "Önceki metin iþareti";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_GRF_UP
+{
+ Text = "Vorige Grafik" ;
+ Text [ English ] = "Previous graphic" ;
+ Text [ english_us ] = "Previous picture" ;
+ Text [ portuguese_brazilian ] = "Vorige Grafik" ;
+ Text [ swedish ] = "Föregående grafik" ;
+ Text [ danish ] = "Forrige billede" ;
+ Text [ italian ] = "Immagine precedente" ;
+ Text [ spanish ] = "Imagen anterior" ;
+ Text [ french ] = "Image précédente" ;
+ Text [ dutch ] = "Vorige afbeelding" ;
+ Text [ portuguese ] = "Imagem anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öͼÐÎ";
+ Text[ russian ] = "Ïðåäûäóùèé ðèñóíîê";
+ Text[ polish ] = "Poprzednia grafika";
+ Text[ japanese ] = "‘O‚Ì}";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¹Ï¤ù";
+ Text[ arabic ] = "ÇáÕæÑÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíï ãñáöéêü";
+ Text[ korean ] = "ÀÌÀü ±×¸²";
+ Text[ turkish ] = "Önceki grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_OLE_UP
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Voriges OLE-Objekt : Voriges OLE object */
+ Text = "Voriges OLE-Objekt" ;
+ Text [ English ] = "Previous OLE object" ;
+ Text [ english_us ] = "Previous OLE object" ;
+ Text [ portuguese_brazilian ] = "Voriges OLE object" ;
+ Text [ swedish ] = "Föregående OLE-objekt" ;
+ Text [ danish ] = "Forrige OLE-objekt" ;
+ Text [ italian ] = "Oggetto OLE precedente" ;
+ Text [ spanish ] = "Objeto OLE anterior" ;
+ Text [ french ] = "Objet OLE précédent" ;
+ Text [ dutch ] = "Vorig OLE-object" ;
+ Text [ portuguese ] = "Objecto OLE anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö OLE-¶ÔÏó";
+ Text[ russian ] = "Ïðåäûäóùèé îáúåêò OLE";
+ Text[ polish ] = "Poprzedni obiekt OLE";
+ Text[ japanese ] = "‘O‚ÌOLE-µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "¤W¤@­Ó OLE-ª«¥ó";
+ Text[ arabic ] = "ÇáÓÇÈÞ OLE ÇáßÇÆä";
+ Text[ greek ] = "Ðñïçãïýìåíï áíôéêåßìåíï OLE";
+ Text[ korean ] = "ÀÌÀü OLE°³Ã¼";
+ Text[ turkish ] = "Önceki OLE nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_OUTL_UP
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Vorige Überschrift : Vorige šberschrift */
+ Text = "Vorige Überschrift" ;
+ Text [ English ] = "Previous outline" ;
+ Text [ english_us ] = "Previous heading" ;
+ Text [ portuguese_brazilian ] = "Vorige Überschrift" ;
+ Text [ swedish ] = "Föregående överskrift" ;
+ Text [ danish ] = "Forrige overskrift" ;
+ Text [ italian ] = "Intestazione precedente" ;
+ Text [ spanish ] = "Encabezado anterior" ;
+ Text [ french ] = "Titre précédent" ;
+ Text [ dutch ] = "Vorige kop" ;
+ Text [ portuguese ] = "Título anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö±êÌâ";
+ Text[ russian ] = "Ïðåäûäóùèé çàãîëîâîê";
+ Text[ polish ] = "Poprzedni tytu³";
+ Text[ japanese ] = "‘O‚ÌŒ©o‚µ";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíç åðéêåöáëßäá";
+ Text[ korean ] = "ÀÌÀüÁ¦¸ñ";
+ Text[ turkish ] = "Önceki baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_SEL_UP
+{
+ Text = "Vorige Markierung" ;
+ Text [ English ] = "Previous selection" ;
+ Text [ english_us ] = "Previous selection" ;
+ Text [ portuguese_brazilian ] = "Vorige Markierung" ;
+ Text [ swedish ] = "Föregående markering" ;
+ Text [ danish ] = "Forrige markering" ;
+ Text [ italian ] = "Selezione precedente" ;
+ Text [ spanish ] = "Selección anterior" ;
+ Text [ french ] = "Sélection précédente" ;
+ Text [ dutch ] = "Vorige markering" ;
+ Text [ portuguese ] = "Selecção anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öÑ¡Ôñ";
+ Text[ russian ] = "Ïðåäûäóùåå âûäåëåíèå";
+ Text[ polish ] = "Poprzednie zaznaczenie";
+ Text[ japanese ] = "‘O‚Ì‘I‘ð";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¿ï¨ú";
+ Text[ arabic ] = "ÇáÊÍÏíÏ ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíç åðéëïãÞ";
+ Text[ korean ] = "ÀÌÀü ¼±ÅÃ";
+ Text[ turkish ] = "Sonraki seçim";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_FTN_UP
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Vorige Fußnote : Vorige Fu˜note */
+ Text = "Vorige Fußnote" ;
+ Text [ English ] = "Previous Footnote" ;
+ Text [ english_us ] = "Previous footnote" ;
+ Text [ portuguese_brazilian ] = "Vorige Fußnote" ;
+ Text [ swedish ] = "Föregående fotnot" ;
+ Text [ danish ] = "Forrige fodnote" ;
+ Text [ italian ] = "Nota a piè pagina precedente" ;
+ Text [ spanish ] = "Nota al pie anterior" ;
+ Text [ french ] = "Note de bas de page précédente" ;
+ Text [ dutch ] = "Vorige voetnoot" ;
+ Text [ portuguese ] = "Nota de rodapé anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö×¢½Å";
+ Text[ russian ] = "Ïðåäûäóùàÿ ñíîñêà";
+ Text[ polish ] = "Poprzedni przypis dolny";
+ Text[ japanese ] = "‘O‚Ì‹r’";
+ Text[ chinese_traditional ] = "¤W¤@­Óµù¸}";
+ Text[ arabic ] = "ÇáÍÇÔíÉ ÇáÓÝáíÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíç õðïóçìåßùóç";
+ Text[ korean ] = "ÀÌÀü °¢ÁÖ";
+ Text[ turkish ] = "Önceki dipnot";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_MARK_UP
+{
+ Text = "Voriger Merker" ;
+ Text [ English ] = "Previous Reminder" ;
+ Text [ english_us ] = "Previous Reminder" ;
+ Text [ portuguese_brazilian ] = "Voriger Merker" ;
+ Text [ swedish ] = "Föregående temporära bokmärke" ;
+ Text [ danish ] = "Forrige påmindelse" ;
+ Text [ italian ] = "Contrassegno precedente" ;
+ Text [ spanish ] = "Marca anterior" ;
+ Text [ french ] = "Pense-bête précédent" ;
+ Text [ dutch ] = "Vorig merkteken" ;
+ Text [ portuguese ] = "Marca anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö±ê¼Ç";
+ Text[ russian ] = "Ïðåäûäóùàÿ ïîìåòêà";
+ Text[ polish ] = "Poprzedni znacznik";
+ Text[ japanese ] = "‘O‚ÌŠo‚¦Ž~‚ß";
+ Text[ chinese_traditional ] = "¤W¤@­Ó´£¿ô";
+ Text[ arabic ] = "ÚáÇãÉ ÇáÊÐßíÑ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíç õðåíèýìéóç";
+ Text[ korean ] = "ÀÌÀü ³ª¸ÓÁö";
+ Text[ turkish ] = "Önceki anýmsatýcý";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_POSTIT_UP
+{
+ Text = "Vorige Notiz" ;
+ Text [ English ] = "Previous Annotation" ;
+ Text [ english_us ] = "Previous Note" ;
+ Text [ portuguese_brazilian ] = "Vorige Notiz" ;
+ Text [ swedish ] = "Föregående anteckning" ;
+ Text [ danish ] = "Forrige note" ;
+ Text [ italian ] = "Nota precedente" ;
+ Text [ spanish ] = "Nota anterior" ;
+ Text [ french ] = "Note précédente" ;
+ Text [ dutch ] = "Vorige aantekening" ;
+ Text [ portuguese ] = "Anotação anterior" ;
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö±¸×¢";
+ Text[ russian ] = "Ïðåäûäóùåå ïðèìå÷àíèå";
+ Text[ polish ] = "Poprzednia notatka";
+ Text[ japanese ] = "‘O‚ÌÒÓ";
+ Text[ chinese_traditional ] = "¤W¤@­Ó³Æµù";
+ Text[ arabic ] = "ÇáãáÇÍÙÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíç óçìåßùóç";
+ Text[ korean ] = "ÀÌÀü ¸Þ¸ð";
+ Text[ turkish ] = "Önceki not";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_SRCH_REP_UP
+{
+ Text = "Rückwärts weitersuchen" ;
+ Text [ English ] = "Repeat search backwards" ;
+ Text [ english_us ] = "Continue search backwards" ;
+ Text [ portuguese_brazilian ] = "Rückwärts weitersuchen" ;
+ Text [ swedish ] = "Sök vidare bakåt" ;
+ Text [ danish ] = "Fortsæt søgning tilbage" ;
+ Text [ italian ] = "Cerca all'indietro" ;
+ Text [ spanish ] = "Continuar búsqueda en sentido inverso" ;
+ Text [ french ] = "Continuer la recherche vers le haut" ;
+ Text [ dutch ] = "Achterwaarts verder zoeken" ;
+ Text [ portuguese ] = "Continuar a procura para trás" ;
+ Text[ chinese_simplified ] = "¼ÌÐøÏòºóËÑÑ°";
+ Text[ russian ] = "Îáðàòíûé ïîèñê";
+ Text[ polish ] = "Szukaj dalej wstecz";
+ Text[ japanese ] = "•¶“ª•ûŒü‚ÉŒŸõ‘±s";
+ Text[ chinese_traditional ] = "Ä~Äò¦V«á·j´M";
+ Text[ arabic ] = "ãÊÇÈÚÉ ÇáÈÍË ááÎáÝ";
+ Text[ greek ] = "ÓõíÝ÷éóç áíáæÞôçóçò ðßóù";
+ Text[ korean ] = "°è¼Ó µÚ·Î °Ë»ö";
+ Text[ turkish ] = "Geriye doðru ara";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_INDEX_ENTRY_UP
+{
+ Text = "Voriger Verzeichniseintrag" ;
+ Text [ English ] = "Previous index entry" ;
+ Text[ italian ] = "Voce d'indice precedente";
+ Text[ portuguese_brazilian ] = "Previous index entry";
+ Text[ portuguese ] = "Entrada do índice anterior";
+ Text[ danish ] = "Forrige indekselement";
+ Text[ french ] = "Entrée d'index précédente";
+ Text[ swedish ] = "Föregående förteckningspost";
+ Text[ dutch ] = "Vorig index item";
+ Text[ spanish ] = "Entrada de índice anterior";
+ Text[ english_us ] = "Previous index entry";
+ Text[ chinese_simplified ] = "ÉÏÒ»¸öĿ¼ÌõÄ¿";
+ Text[ russian ] = "Ïðåäûäóùèé ýëåìåíò óêàçàòåëÿ";
+ Text[ polish ] = "Poprzedni wpis do indeksu";
+ Text[ japanese ] = "‘O‚Ìõˆø€–Ú";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¥Ø¿ý¶µ¥Ø";
+ Text[ arabic ] = "ÇáÅÏÎÇá ÇáÝåÑÓí ÇáÓÇÈÞ";
+ Text[ greek ] = "Ðñïçãïýìåíç åããñáöÞ åõñåôçñßïõ";
+ Text[ korean ] = "ÀÌÀü »öÀÎ Ç׸ñ";
+ Text[ turkish ] = "Önceki dizin giriþi";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_TBLFML_UP
+{
+ Text = "Vorige Tabellenformel" ;
+ Text [ English ] = "Previous table formula" ;
+ Text[ english_us ] = "Previous table formula";
+ Text[ portuguese ] = "Fórmula de tabela anterior";
+ Text[ russian ] = "Ïðåäûäóùàÿ ôîðìóëà òàáëèöû";
+ Text[ dutch ] = "Vorige tabellenformule";
+ Text[ french ] = "Formule de table précédente";
+ Text[ spanish ] = "Fórmula de tabla anterior";
+ Text[ italian ] = "Formula tabella precedente";
+ Text[ danish ] = "Forrige tabelformel";
+ Text[ swedish ] = "Föregående tabellformel";
+ Text[ polish ] = "Poprzednia formu³a tabeli";
+ Text[ portuguese_brazilian ] = "Previous table formula";
+ Text[ japanese ] = "‘O‚Ì•\\‚Ì”Ž®";
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö¹¤×÷±í¹«Ê½";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¤u§@ªí¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ ÇáÌÏæá ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíïò ôýðïò ðßíáêá";
+ Text[ korean ] = "ÀÌÀü Ç¥ ¼ö½Ä";
+ Text[ turkish ] = "Önceki tablo formülü";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_TBLFML_DOWN
+{
+ Text = "Nächste Tabellenformel" ;
+ Text [ English ] = "Next table formula" ;
+ Text[ english_us ] = "Next table formula";
+ Text[ portuguese ] = "Fórmula de tabela seguinte";
+ Text[ russian ] = "Ñëåäóþùàÿ ôîðìóëà òàáëèöû";
+ Text[ dutch ] = "Volgende tabellenformule";
+ Text[ french ] = "Formule de table suivante";
+ Text[ spanish ] = "Siguiente fórmula de tabla";
+ Text[ italian ] = "Formula tabella successiva";
+ Text[ danish ] = "Næste tabelformel";
+ Text[ swedish ] = "Nästa tabellformel";
+ Text[ polish ] = "Nastêpna formu³a tabeli";
+ Text[ portuguese_brazilian ] = "Next table formula";
+ Text[ japanese ] = "ŽŸ‚Ì•\\‚Ì”Ž®";
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö¹¤×÷±í¸ñʽ";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¤u§@ªí®æ¦¡";
+ Text[ arabic ] = "ÕíÛÉ ÇáÌÏæá ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíïò ôýðïò ðßíáêá";
+ Text[ korean ] = "´ÙÀ½ Ç¥ ¼ö½Ä";
+ Text[ turkish ] = "Sonraki tablo formülü";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_TBLFML_ERR_UP
+{
+ Text = "Vorige fehlerhafte Tabellenformel" ;
+ Text [ English ] = "Previous wrong table formula" ;
+ Text[ english_us ] = "Previous faulty table formula";
+ Text[ portuguese ] = "Fórmula de tabela anterior errada";
+ Text[ russian ] = "Íåïðàâèëüíàÿ ïðåäûäóùàÿ ôîðìóëà òàáëèöû";
+ Text[ dutch ] = "Vorige foutieve tabellenformule";
+ Text[ french ] = "Formule de table erronée précédente";
+ Text[ spanish ] = "Fórmula de tabla anterior errónea";
+ Text[ italian ] = "Formula tabella errata precedente";
+ Text[ danish ] = "Forrige fejlagtige tabelformel";
+ Text[ swedish ] = "Föregående felaktiga tabellformel";
+ Text[ polish ] = "Poprzednia b³êdna formu³a tabeli";
+ Text[ portuguese_brazilian ] = "Previous wrong table formula";
+ Text[ japanese ] = "‘O‚̳‚µ‚­‚È‚¢•\\‚Ì”Ž®";
+ Text[ chinese_simplified ] = "ÉÏÒ»¸ö´íÎóµÄ¹¤×÷±í¹«Ê½";
+ Text[ chinese_traditional ] = "¤W¤@­Ó¿ù»~ªº¤u§@ªí®æ¦¡";
+ Text[ arabic ] = "ÕíÛÉ ÇáÌÏæá ÇáÎÇØÆÉ ÇáÓÇÈÞÉ";
+ Text[ greek ] = "Ðñïçãïýìåíïò ëáíèáóìÝíïò ôýðïò ðßíáêá";
+ Text[ korean ] = "À߸øµÈ ÀÌÀü Ç¥ ¼ö½Ä";
+ Text[ turkish ] = "Önceki hatalý tablo formülü";
+ Text[ language_user1 ] = " ";
+};
+String STR_IMGBTN_TBLFML_ERR_DOWN
+{
+ Text = "Nächste fehlerhafte Tabellenformel" ;
+ Text [ English ] = "Next wrong table formula" ;
+ Text[ english_us ] = "Next faulty table formula";
+ Text[ portuguese ] = "Fórmula de tabela seguinte errada";
+ Text[ russian ] = "Íåïðàâèëüíàÿ ñëåäóþùàÿ ôîðìóëà òàáëèöû";
+ Text[ dutch ] = "Volgende foutieve tabellenformule";
+ Text[ french ] = "Formule de table erronée suivante";
+ Text[ spanish ] = "Siguiente fórmula errónea de tabla";
+ Text[ italian ] = "Formula tabella errata successiva";
+ Text[ danish ] = "Næste fejlagtige tabelformel";
+ Text[ swedish ] = "Nästa felaktiga tabellformel";
+ Text[ polish ] = "Nastêpna b³êdna formu³a tabeli";
+ Text[ portuguese_brazilian ] = "Next wrong table formula";
+ Text[ japanese ] = "ŽŸ‚̳‚µ‚­‚È‚¢•\\‚Ì”Ž®";
+ Text[ chinese_simplified ] = "ÏÂÒ»¸ö´íÎóµÄ¹¤×÷±í¸ñʽ";
+ Text[ chinese_traditional ] = "¤U¤@­Ó¿ù»~ªº¤u§@ªí®æ¦¡";
+ Text[ arabic ] = "ÕíÛÉ ÇáÌÏæá ÇáÎÇØÆÉ ÇáÊÇáíÉ";
+ Text[ greek ] = "Åðüìåíïò ëáíèáóìÝíïò ôýðïò ðßíáêá";
+ Text[ korean ] = "À߸øµÈ ´ÙÀ½ Ç¥ ¼ö½Ä";
+ Text[ turkish ] = "Sonraki hatalý tablo formülü";
+ Text[ language_user1 ] = " ";
+};
+ImageButton BTN_NAVI
+{
+ HelpID = HID_NAVIGATION_IMGBTN ;
+ SVLOOK = TRUE ;
+ HIDE = TRUE ;
+ RectStyle = TRUE ;
+ SmallStyle = TRUE ;
+ Image IMG_BTN
+ {
+ ImageBitmap = Bitmap { File = "punkt.bmp" ; };
+ };
+ String ST_QUICK
+ {
+ Text [ english_us ] = "Navigation" ;
+ Text [ portuguese_brazilian ] = "Navigation" ;
+ Text [ swedish ] = "Navigation" ;
+ Text [ danish ] = "Navigation" ;
+ Text [ italian ] = "Navigazione" ;
+ Text [ spanish ] = "Navegación" ;
+ Text [ french ] = "Navigation" ;
+ Text [ dutch ] = "Navigatie" ;
+ Text [ portuguese ] = "Navegação" ;
+ Text = "Navigation" ;
+ Text[ chinese_simplified ] = "ä¯ÀÀ";
+ Text[ russian ] = "Íàâèãàöèÿ";
+ Text[ polish ] = "Nawigacja";
+ Text[ japanese ] = "ÅËÞ¹Þ°¼®Ý";
+ Text[ chinese_traditional ] = "ÂsÄý";
+ Text[ arabic ] = "ÇáãáÇÍÉ";
+ Text[ greek ] = "Ìåôáêßíçóç";
+ Text[ korean ] = "³×ºñ°ÔÀ̼Ç";
+ Text[ turkish ] = "Dolaþma";
+ Text[ language_user1 ] = " ";
+ };
+};
diff --git a/sw/source/ui/shells/basesh.cxx b/sw/source/ui/shells/basesh.cxx
new file mode 100644
index 000000000000..5c3e1a4bfb3b
--- /dev/null
+++ b/sw/source/ui/shells/basesh.cxx
@@ -0,0 +1,2507 @@
+/*************************************************************************
+ *
+ * $RCSfile: basesh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <sot/factory.hxx>
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+
+
+#ifndef _SVXLINKMGR_HXX //autogen
+#include <svx/linkmgr.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _IMAPDLG_HXX_ //autogen
+#include <svx/imapdlg.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _EXPLORER_HXX //autogen
+#include <sfx2/explorer.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFX_OBJITEM_HXX //autogen
+#include <sfx2/objitem.hxx>
+#endif
+#ifndef _FILTER_HXX //autogen
+#include <svtools/filter.hxx>
+#endif
+#ifndef _GALLERY_HXX_ //autogen
+#include <svx/gallery.hxx>
+#endif
+#ifndef _CLIP_HXX //autogen
+#include <vcl/clip.hxx>
+#endif
+#ifndef _CONTDLG_HXX_ //autogen
+#include <svx/contdlg.hxx>
+#endif
+#ifndef _GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _SVX_IMPGRF_HXX //autogen
+#include <svx/impgrf.hxx>
+#endif
+#ifndef _SFXSLSTITM_HXX //autogen
+#include <svtools/slstitm.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXPTITEM_HXX //autogen
+#include <svtools/ptitem.hxx>
+#endif
+#ifndef _POLY_HXX //autogen
+#include <vcl/poly.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_SHADITEM_HXX //autogen
+#include <svx/shaditem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_OPAQITEM_HXX //autogen
+#include <svx/opaqitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_BORDER_HXX
+#include <svx/border.hxx>
+#endif
+
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _FMTHDFT_HXX //autogen
+#include <fmthdft.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _CHANGEDB_HXX
+#include <changedb.hxx>
+#endif
+#ifndef _BOOKMARK_HXX
+#include <bookmark.hxx>
+#endif
+#ifndef _BOOKMRK_HXX
+#include <bookmrk.hxx>
+#endif
+#ifndef _DOCSTAT_HXX
+#include <docstat.hxx>
+#endif
+#ifndef _USRFLD_HXX
+#include <usrfld.hxx>
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _FLDMGR_HXX
+#include <fldmgr.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _CONVERT_HXX
+#include <convert.hxx>
+#endif
+#ifndef _PATTERN_HXX
+#include <pattern.hxx>
+#endif
+#ifndef _UIBORDER_HXX
+#include <uiborder.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _TBLAFMT_HXX
+#include <tblafmt.hxx>
+#endif
+#ifndef _CAPTION_HXX
+#include <caption.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _STATSTR_HRC
+#include <statstr.hrc>
+#endif
+#ifndef _GLOBALS_H
+#include <globals.h>
+#endif
+
+#ifdef OS2
+#include <vcl/sysdep.hxx>
+#endif
+#ifndef _FSYS_HXX
+#include <tools/fsys.hxx>
+#endif
+
+USHORT SwBaseShell::nFrameMode = FLY_DRAG_END;
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+//Fuer die Erkennung der Id, die variable von Gallery mit SID_GALLERY_BG_BRUSH
+//ankommt.
+static BYTE nParagraphPos;
+static BYTE nGraphicPos;
+static BYTE nOlePos;
+static BYTE nFramePos;
+static BYTE nTablePos;
+static BYTE nTableRowPos;
+static BYTE nTableCellPos;
+static BYTE nPagePos;
+static BYTE nHeaderPos;
+static BYTE nFooterPos;
+
+//!!OS: das muss ein if/else bleiben, weil BLC das nicht anders versteht
+#define SVDATAOBJ \
+ SvDataObjectRef xObj; \
+ if ( Clipboard::GetFormatCount() ) \
+ { \
+ SwModule* pMod = SW_MOD(); \
+ if ( pMod->pClipboard ) \
+ xObj = pMod->pClipboard ; \
+ else \
+ xObj = SvDataObject::PasteClipboard(); \
+ }
+
+#define Interior
+#include <svx/svxslots.hxx>
+
+#define SwBaseShell
+#define Shadow
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+#define SWCONTOURDLG(rView) ( (SvxContourDlg*) ( rView.GetViewFrame()->GetChildWindow( \
+ SvxContourDlgChildWindow::GetChildWindowId() )-> \
+ GetWindow() ) )
+
+#define SWIMAPDLG(rView) ( (SvxIMapDlg*) ( rView.GetViewFrame()->GetChildWindow( \
+ SvxIMapDlgChildWindow::GetChildWindowId() )-> \
+ GetWindow() ) )
+
+SFX_IMPL_INTERFACE(SwBaseShell, SfxShell, SW_RES(0))
+{
+ SFX_CHILDWINDOW_REGISTRATION(SvxIMapDlgChildWindow::GetChildWindowId());
+ SFX_CHILDWINDOW_REGISTRATION(SvxContourDlgChildWindow::GetChildWindowId());
+}
+
+TYPEINIT1(SwBaseShell,SfxShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung: statics
+ --------------------------------------------------------------------*/
+
+
+void lcl_UpdateIMapDlg(SwWrtShell& rSh)
+{
+ Graphic aGrf(rSh.GetIMapGraphic());
+ TargetList* pList = new TargetList;
+ rSh.GetView().GetViewFrame()->GetTopFrame()->GetTargetList(*pList);
+
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_URL, RES_URL );
+ rSh.GetFlyFrmAttr( aSet );
+ const SwFmtURL &rURL = (SwFmtURL&)aSet.Get( RES_URL );
+ SvxIMapDlgChildWindow::UpdateIMapDlg(
+ aGrf, rURL.GetMap(), pList, rSh.GetIMapInventor() );
+
+ USHORT nCount = (USHORT)pList->Count();
+ if(nCount)
+ for( USHORT i = nCount; i; i-- )
+ {
+ delete pList->GetObject(i-1);
+ }
+ delete pList;
+}
+
+
+BOOL lcl_UpdateContourDlg( SwWrtShell &rSh, int nSel )
+{
+ Graphic aGraf( rSh.GetIMapGraphic() );
+ BOOL bRet = GRAPHIC_NONE != aGraf.GetType();
+ if( bRet )
+ {
+ String aGrfName;
+ if ( nSel & SwWrtShell::SEL_GRF )
+ rSh.GetGrfNms( &aGrfName, 0 );
+
+ SvxContourDlg *pDlg = SWCONTOURDLG(rSh.GetView());
+ pDlg->Update( aGraf, aGrfName.Len() > 0,
+ rSh.GetGraphicPolygon(), rSh.GetIMapInventor() );
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Alle Items disablen, wird auch aus anderen Source gerufen
+ --------------------------------------------------------------------*/
+
+void DisableAllItems(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter(rSet);
+
+ USHORT nWhich = aIter.FirstWhich();
+ ASSERT(nWhich, leeres Set);
+ while(nWhich)
+ {
+ rSet.DisableItem(nWhich);
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: loeschen
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::ExecDelete(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ switch(rReq.GetSlot())
+ {
+ case SID_DELETE:
+ rSh.DelRight(TRUE);
+ break;
+
+ case FN_BACKSPACE:
+
+ if( rSh.IsNoNum() )
+ {
+ rSh.SttCrsrMove();
+ BOOL bLeft = rSh.Left( TRUE );
+ if( bLeft )
+ {
+ // JP 28.03.96: ein Backspace im Absatz ohne Nummer wird zum Delete
+ rSh.SwapPam();
+ rSh.DelRight( FALSE );
+ }
+ else
+ // JP 15.07.96: wenns nicht mehr nach vorne geht, die
+ // Numerierung aufheben. Z.B. am Doc-/
+ // Rahmen-/Tabellen-/Bereichs-Anfang
+ rSh.DelNumRules();
+
+ rSh.EndCrsrMove();
+ break;
+ }
+
+ // ansonsten DelLeft rufen
+ case FN_SHIFT_BACKSPACE:
+ rSh.DelLeft();
+ break;
+ default:
+ DBG_ERROR("falscher Dispatcher");
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
+{
+ //Achtung: Suizid gefaehrdet! Nach Paste, Paste special kann der die
+ //Shell zerstoert sein.
+
+
+ SwWrtShell &rSh = GetShell();
+ USHORT nId = rReq.GetSlot();
+ switch( nId )
+ {
+ case SID_CUT:
+ case SID_COPY:
+ rView.GetEditWin().FlushInBuffer( &rSh );
+ if ( rSh.HasSelection() )
+ {
+ SwDataExchangeRef aDataEx( new SwDataExchange( rSh ) );
+ if ( nId == SID_CUT )
+ aDataEx->Cut();
+ else
+ aDataEx->Copy( FALSE );
+ break;
+ }
+ return;
+
+ case SID_PASTE:
+ {
+ SVDATAOBJ;
+ if ( xObj.Is() && SwDataExchange::IsPaste( GetShell(), *xObj ) )
+ {
+ // temp. Variablen, da die Shell nach dem Paste schon
+ // zerstoert sein kann
+ SwView* pView = &rView;
+ SwDataExchange::Paste( rSh, *xObj );
+ if( rSh.IsFrmSelected() || rSh.IsObjSelected())
+ rSh.EnterSelFrmMode();
+ pView->AttrChangedNotify(&rSh);
+ }
+ else
+ return;
+ }
+ break;
+ case FN_PASTESPECIAL:
+ {
+ SVDATAOBJ;
+ int nRet;
+ if ( xObj.Is() &&
+ SwDataExchange::IsPasteSpecial( rSh, *xObj ) )
+ {
+ // temp. Variablen, da die Shell nach dem Paste schon
+ // zerstoert sein kann
+ SwView* pView = &rView;
+
+ nRet = SwDataExchange::PasteSpecial( rSh, *xObj );
+ if (rSh.IsFrmSelected() || rSh.IsObjSelected())
+ rSh.EnterSelFrmMode();
+ pView->AttrChangedNotify(&rSh);
+ }
+ else
+ return;
+ rReq.SetReturnValue(SfxInt16Item(nId, nRet));
+ }
+ break;
+ default:
+ DBG_ERROR("falscher Dispatcher");
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ClipBoard-Status
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::StateClpbrd(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SfxWhichIter aIter(rSet);
+
+ const BOOL bCopy = rSh.HasSelection();
+ SVDATAOBJ;
+
+ USHORT nWhich = aIter.FirstWhich();
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_CUT:
+ if (rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0)
+ {
+ rSet.DisableItem( nWhich );
+ break;
+ }
+ case SID_COPY:
+ if( !bCopy )
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_PASTE:
+ if( !xObj.Is() || !SwDataExchange::IsPaste( rSh, *xObj))
+ rSet.DisableItem( SID_PASTE );
+ break;
+ case FN_PASTESPECIAL:
+ if( !xObj.Is() ||
+ !SwDataExchange::IsPasteSpecial( rSh, *xObj ) )
+ rSet.DisableItem( FN_PASTESPECIAL );
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Undo ausfuehren
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::ExecUndo(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ switch(rReq.GetSlot())
+ {
+ case SID_UNDO:
+ rSh.Do( SwWrtShell::UNDO );
+ break;
+
+ case SID_REDO:
+ rSh.Do( SwWrtShell::REDO );
+ break;
+
+ case SID_REPEAT:
+ rSh.Do( SwWrtShell::REPEAT );
+ break;
+
+ default:
+ DBG_ERROR("falscher Dispatcher");
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zustand Undo
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::StateUndo(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_UNDO:
+ {
+ if(rSh.GetUndoIds())
+ rSet.Put(SfxStringItem(nWhich,
+ rSh.GetDoString(SwWrtShell::UNDO)));
+ else
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ case SID_REDO:
+ {
+ if(rSh.GetRedoIds())
+ rSet.Put(SfxStringItem(nWhich,
+ rSh.GetDoString(SwWrtShell::REDO)));
+ else
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ case SID_REPEAT:
+ { // Repeat nur moeglich wenn kein REDO moeglich - UI-Restriktion
+ if(rSh.GetRedoIds() == 0 &&
+ !rSh.IsSelFrmMode() &&
+ rSh.GetRepeatIds() )
+ rSet.Put(SfxStringItem(nWhich, rSh.GetRepeatString()));
+ else
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Slot-Id auswerten bzw. Dispatchen
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::Execute(SfxRequest &rReq)
+{
+ const SfxPoolItem *pItem;
+ SwWrtShell &rSh = GetShell();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ BOOL bUp = FALSE;
+ BOOL bMore = FALSE;
+
+ USHORT nSlot = rReq.GetSlot();
+ switch(nSlot)
+ {
+ case FN_REPAGINATE:
+ rSh.CalcLayout();
+ break;
+ case FN_UPDATE_FIELDS:
+ {
+ SwDocStat aDocStat;
+ rSh.UpdateDocStat(aDocStat);
+ rSh.EndAllTblBoxEdit();
+ rSh.ViewShell::UpdateFlds(TRUE);
+
+ if( rSh.IsCrsrInTbl() )
+ {
+ if( !rSh.IsTblComplexForChart() )
+ SwTableFUNC( &rSh, FALSE).UpdateChart();
+ rSh.ClearTblBoxCntnt();
+ rSh.SaveTblBoxCntnt();
+ }
+ }
+ break;
+ case FN_UPDATE_CHARTS:
+ {
+ SwWait aWait( *rView.GetDocShell(), TRUE );
+ rSh.UpdateAllCharts();
+ }
+ break;
+
+ case FN_UPDATE_ALL:
+ {
+ rSh.EnterStdMode();
+ if( rSh.GetLinkManager().GetLinks().Count() )
+ {
+ rSh.StartAllAction();
+ rSh.GetLinkManager().UpdateAllLinks( FALSE, TRUE, TRUE );
+ rSh.EndAllAction();
+ }
+ SfxDispatcher &rDis = *GetView().GetViewFrame()->GetDispatcher();
+ rDis.Execute( FN_UPDATE_FIELDS );
+ rDis.Execute( FN_UPDATE_TOX );
+ rDis.Execute( FN_UPDATE_CHARTS );
+ rSh.CalcLayout();
+ }
+ break;
+
+ case FN_UPDATE_INPUTFIELDS:
+ rSh.UpdateInputFlds(NULL, FALSE);
+ break;
+ case FN_PREV_BOOKMARK:
+ rReq.SetReturnValue(SfxBoolItem( nSlot, rSh.GoPrevBookmark()));
+ break;
+ case FN_NEXT_BOOKMARK:
+ rReq.SetReturnValue(SfxBoolItem( nSlot, rSh.GoNextBookmark()));
+ break;
+
+ case FN_GOTO_NEXT_MARK:
+ case FN_GOTO_PREV_MARK:
+ {
+ SwFldMgr aFldMgr;
+ SwFieldType* pFldType = aFldMgr.GetFldType(RES_JUMPEDITFLD);
+
+ if (pFldType)
+ {
+ if (rSh.IsSelFrmMode())
+ {
+ rSh.UnSelectFrm();
+ rSh.LeaveSelFrmMode();
+ }
+
+ if (rSh.HasMark())
+ {
+ MV_KONTEXT(&rSh);
+ if (rSh.IsCrsrPtAtEnd())
+ rSh.SwapPam();
+ rSh.ClearMark();
+ rSh.EndSelect();
+ }
+ BOOL bRet = rSh.MoveFldType(pFldType, nSlot == FN_GOTO_NEXT_MARK);
+ if (bRet)
+ rSh.ClickToField(*rSh.GetCurFld());
+ rReq.SetReturnValue(SfxBoolItem( nSlot, bRet));
+ }
+ }
+ break;
+
+ case FN_START_DOC_DIRECT:
+ case FN_END_DOC_DIRECT:
+ {
+ if (rSh.IsSelFrmMode())
+ {
+ rSh.UnSelectFrm();
+ rSh.LeaveSelFrmMode();
+ }
+ rSh.EnterStdMode();
+ nSlot == FN_START_DOC_DIRECT ?
+ rSh.SwCrsrShell::SttDoc() :
+ rSh.SwCrsrShell::EndDoc();
+ }
+ break;
+ case FN_GOTO_PREV_OBJ:
+ case FN_GOTO_NEXT_OBJ:
+ {
+ BOOL bSuccess = rSh.GotoObj(
+ nSlot == FN_GOTO_NEXT_OBJ ? TRUE : FALSE);
+ rReq.SetReturnValue(SfxBoolItem(nSlot, bSuccess));
+ if (bSuccess && !rSh.IsSelFrmMode())
+ {
+ rSh.HideCrsr();
+ rSh.EnterSelFrmMode();
+ GetView().AttrChangedNotify( &rSh );
+ }
+ }
+ break;
+ case SID_GALLERY_FORMATS:
+ {
+ const int nSelType = rSh.GetSelectionType();
+ if ( !rSh.IsSelFrmMode() || nSelType & SwWrtShell::SEL_GRF )
+ {
+ if( SFX_ITEM_SET == pArgs->GetItemState( nSlot, TRUE, &pItem) &&
+ SGA_FORMAT_GRAPHIC & ((SfxUInt32Item*)pItem)->GetValue())
+ {
+
+ GalleryExplorer* pGal = SVX_GALLERY();
+
+ if ( pGal )
+ {
+ SwWait aWait( *rView.GetDocShell(), TRUE );
+
+ String aGrfName, aFltName;
+ const Graphic aGrf( pGal->GetGraphic() );
+
+ if( pGal->IsLinkage() )
+ {
+ // Verknuepft
+ aGrfName = pGal->GetURL().PathToFileName();
+ aGrfName = URIHelper::SmartRelToAbs(aGrfName);
+ aFltName = pGal->GetFilterName();
+ }
+
+ if ( nSelType & SwWrtShell::SEL_GRF )
+ rSh.ReRead( aGrfName, aFltName, &aGrf );
+ else
+ rSh.Insert( aGrfName, aFltName, aGrf );
+
+ GetView().GetEditWin().GrabFocus();
+ }
+ }
+ }
+ }
+ break;
+ case FN_PAGE_STYLE_SET_COLS:
+ {
+ if (pArgs)
+ {
+ // aktuellen PageDescriptor ermitteln und damit den Set fuellen
+ const USHORT nCurIdx = rSh.GetCurPageDesc();
+ SwPageDesc aPageDesc(rSh.GetPageDesc(nCurIdx));
+
+ SwFrmFmt &rFmt = aPageDesc.GetMaster();
+
+ SwFmtCol aFmtCol = rFmt.GetCol();
+
+ USHORT nCount;
+ if(SFX_ITEM_SET == pArgs->GetItemState(nSlot))
+ nCount = ((SfxUInt16Item &)pArgs->Get(nSlot)).GetValue();
+ else
+ nCount = ((SfxUInt16Item &)pArgs->Get(SID_ATTR_COLUMNS)).GetValue();
+ USHORT nGutterWidth = DEF_GUTTER_WIDTH;
+
+ aFmtCol.Init(nCount ? nCount : 1, nGutterWidth, USHRT_MAX);
+ aFmtCol.SetWishWidth(USHRT_MAX);
+ aFmtCol.SetGutterWidth(nGutterWidth, USHRT_MAX);
+
+ rFmt.SetAttr(aFmtCol);
+
+ rSh.ChgPageDesc(nCurIdx, aPageDesc);
+ }
+ else
+ GetView().GetViewFrame()->GetDispatcher()->Execute(FN_FORMAT_PAGE_COLUMN_DLG, FALSE);
+ }
+ break;
+ case FN_CONVERT_TEXT_TABLE:
+ {
+ char cDelim = 0;
+ USHORT nInsTblFlags = ALL_TBL_INS_ATTR;
+ SwTableAutoFmt* pTAFmt = 0;
+ SwConvertTableDlg *pDlg = new SwConvertTableDlg( GetView() );
+ if( RET_OK == pDlg->Execute() )
+ {
+ pDlg->GetValues( cDelim, nInsTblFlags, pTAFmt );
+
+ }
+ delete pDlg;
+
+ if( cDelim )
+ {
+ //Shellwechsel!
+ SwView& rSaveView = rView;
+ BOOL bInserted = FALSE;
+ if( rSh.GetTableFmt() )
+ rSh.TableToText( cDelim );
+ else
+ bInserted = rSh.TextToTable( cDelim, HORI_FULL,
+ nInsTblFlags, pTAFmt );
+ rSh.EnterStdMode();
+
+ if( bInserted )
+ rSaveView.AutoCaption( TABLE_CAP );
+ }
+ delete pTAFmt;
+ }
+ break;
+ case SID_STYLE_WATERCAN:
+ case SID_STYLE_UPDATE_BY_EXAMPLE:
+ case SID_STYLE_NEW_BY_EXAMPLE:
+ case SID_STYLE_APPLY:
+ {
+ ShellModes eMode = GetView().GetShellMode();
+ if ( SEL_DRAW != eMode &&
+ SEL_DRAW_CTRL != eMode &&
+ SEL_DRAW_FORM != eMode &&
+ SEL_DRAWTEXT != eMode &&
+ SEL_BEZIER != eMode )
+ {
+ // wird von der DocShell aufgezeichnet
+ GetView().GetDocShell()->ExecStyleSheet(rReq);
+ }
+ }
+ break;
+ case FN_ESCAPE:
+ GetView().ExecuteSlot(rReq);
+ break;
+ case SID_IMAP:
+ {
+ USHORT nId = SvxIMapDlgChildWindow::GetChildWindowId();
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ pVFrame->ToggleChildWindow( nId );
+ pVFrame->GetBindings().Invalidate( SID_IMAP );
+
+ if ( pVFrame->HasChildWindow( nId ) && rSh.IsFrmSelected() )
+ lcl_UpdateIMapDlg(rSh);
+ }
+ break;
+ case SID_IMAP_EXEC:
+ {
+ SvxIMapDlg* pDlg = SWIMAPDLG(GetView());
+
+ // Kontrolle, ob Zuweisung ueberhaupt sinnvoll/erlaubt
+ if ( rSh.IsFrmSelected() &&
+ pDlg->GetEditingObject() == rSh.GetIMapInventor() )
+ {
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_URL, RES_URL );
+ rSh.GetFlyFrmAttr( aSet );
+ SwFmtURL aURL( (SwFmtURL&)aSet.Get( RES_URL ) );
+ aURL.SetMap( &pDlg->GetImageMap() );
+ aSet.Put( aURL );
+ rSh.SetFlyFrmAttr( aSet );
+ }
+ }
+ break;
+ case SID_CONTOUR_DLG:
+ {
+ USHORT nId = SvxContourDlgChildWindow::GetChildWindowId();
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ pVFrame->ToggleChildWindow( nId );
+ pVFrame->GetBindings().Invalidate( SID_CONTOUR_DLG );
+
+ int nSel = rSh.GetSelectionType();
+ if ( pVFrame->HasChildWindow( nId ) &&
+ (nSel & (SwWrtShell::SEL_GRF|SwWrtShell::SEL_OLE)) )
+ {
+ lcl_UpdateContourDlg( rSh, nSel );
+ }
+ }
+ break;
+ case SID_CONTOUR_EXEC:
+ {
+ SvxContourDlg *pDlg = SWCONTOURDLG(GetView());
+
+ // Kontrolle, ob Zuweisung ueberhaupt sinnvoll/erlaubt
+ int nSel = rSh.GetSelectionType();
+ if ( nSel & (SwWrtShell::SEL_GRF|SwWrtShell::SEL_OLE) )
+ {
+ if ( pDlg->GetEditingObject() == rSh.GetIMapInventor() )
+ {
+ rSh.StartAction();
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_SURROUND, RES_SURROUND);
+ rSh.GetFlyFrmAttr( aSet );
+ SwFmtSurround aSur( (SwFmtSurround&)aSet.Get( RES_SURROUND ) );
+ if ( !aSur.IsContour() )
+ {
+ aSur.SetContour( TRUE );
+ if ( aSur.GetSurround() == SURROUND_NONE )
+ aSur.SetSurround( SURROUND_PARALLEL );
+ aSet.Put( aSur );
+ rSh.SetFlyFrmAttr( aSet );
+ }
+ const PolyPolygon aPoly( pDlg->GetPolyPolygon() );
+ rSh.SetGraphicPolygon( &aPoly );
+ if ( pDlg->IsGraphicChanged() )
+ rSh.ReRead( aEmptyStr, aEmptyStr, &pDlg->GetGraphic());
+ rSh.EndAction();
+ }
+ }
+ }
+ break;
+ case FN_FRAME_TO_ANCHOR:
+ {
+ rSh.GotoFlyAnchor();
+ rSh.EnterStdMode();
+ rSh.CallChgLnk();
+ }
+ break;
+ case FN_TOOL_ANKER:
+ break;
+ case FN_TOOL_ANKER_PAGE:
+ case FN_TOOL_ANKER_PARAGRAPH:
+ case FN_TOOL_ANKER_CHAR:
+ case FN_TOOL_ANKER_AT_CHAR:
+ case FN_TOOL_ANKER_FRAME:
+ {
+ RndStdIds eSet = nSlot == FN_TOOL_ANKER_PAGE
+ ? FLY_PAGE
+ : nSlot == FN_TOOL_ANKER_PARAGRAPH
+ ? FLY_AT_CNTNT
+ : nSlot == FN_TOOL_ANKER_FRAME
+ ? FLY_AT_FLY
+ : nSlot == FN_TOOL_ANKER_CHAR
+ ? FLY_IN_CNTNT
+ : FLY_AUTO_CNTNT;
+ rSh.StartUndo();
+ if( rSh.IsObjSelected() )
+ rSh.ChgAnchor( eSet );
+ else if( rSh.IsFrmSelected() )
+ {
+ // Der Set beinhaltet auch VERT/HORI_ORIENT, da in FEShell::
+ // SetFlyFrmAttr/SetFlyFrmAnchor ggf. als Folge des Umankerns
+ // die Ausrichtungen veraendert werden sollen.
+ SfxItemSet aSet( GetPool(), RES_VERT_ORIENT, RES_ANCHOR );
+ SwFmtAnchor aAnc( eSet, rSh.GetPhyPageNum() );
+ aSet.Put( aAnc );
+ rSh.SetFlyFrmAttr(aSet);
+ }
+
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ if( nHtmlMode )
+ {
+ SfxItemSet aSet(GetPool(), RES_SURROUND, RES_HORI_ORIENT);
+ rSh.GetFlyFrmAttr(aSet);
+
+ const SwFmtSurround& rSurround = (const SwFmtSurround&)aSet.Get(RES_SURROUND);
+ const SwFmtVertOrient& rVert = (const SwFmtVertOrient&)aSet.Get(RES_VERT_ORIENT);
+ const SwFmtHoriOrient& rHori = (const SwFmtHoriOrient&)aSet.Get(RES_HORI_ORIENT);
+ SwVertOrient eVOrient = rVert.GetVertOrient();
+ SwHoriOrient eHOrient = rHori.GetHoriOrient();
+ SwSurround eSurround = rSurround.GetSurround();
+
+ switch( eSet )
+ {
+ case FLY_AT_FLY:
+ case FLY_PAGE:
+
+ //Durchlauf, links oder von links, oben, von oben
+ if(eSurround != SURROUND_THROUGHT)
+ aSet.Put(SwFmtSurround(SURROUND_THROUGHT));
+
+ if( eVOrient != VERT_TOP && eVOrient != VERT_NONE)
+ aSet.Put(SwFmtVertOrient(0, VERT_TOP));
+
+ if(eHOrient != HORI_NONE || eHOrient != HORI_LEFT)
+ aSet.Put(SwFmtHoriOrient(0, HORI_LEFT));
+ break;
+
+ case FLY_AT_CNTNT:
+ //links, von links, rechts, oben, kein Uml, li+re Umlauf,
+ if(eSurround != SURROUND_LEFT || eSurround != SURROUND_RIGHT)
+ aSet.Put(SwFmtSurround(SURROUND_LEFT));
+
+ if( eVOrient != VERT_TOP)
+ aSet.Put(SwFmtVertOrient(0, VERT_TOP));
+
+ if(eHOrient != HORI_NONE || eHOrient != HORI_LEFT || eHOrient != HORI_RIGHT)
+ aSet.Put(SwFmtHoriOrient(0, HORI_LEFT));
+ break;
+
+ case FLY_AUTO_CNTNT:
+ //links, von links, rechts, oben, Durchlauf
+ if(eSurround != SURROUND_THROUGHT)
+ aSet.Put(SwFmtSurround(SURROUND_THROUGHT));
+
+ if( eVOrient != VERT_TOP)
+ aSet.Put(SwFmtVertOrient(0, VERT_TOP));
+
+ if(eHOrient != HORI_NONE || eHOrient != HORI_LEFT || eHOrient != HORI_RIGHT)
+ aSet.Put(SwFmtHoriOrient(0, HORI_LEFT));
+ break;
+ }
+
+ if( aSet.Count() )
+ rSh.SetFlyFrmAttr( aSet );
+ }
+ rSh.EndUndo();
+
+ GetView().GetViewFrame()->GetBindings().Invalidate( FN_TOOL_ANKER );
+ }
+ break;
+
+ case FN_FRAME_NOWRAP:
+ case FN_FRAME_WRAP:
+ case FN_FRAME_WRAP_IDEAL:
+ case FN_FRAME_WRAPTHRU:
+ case FN_FRAME_WRAPTHRU_TRANSP:
+ case FN_FRAME_WRAP_CONTOUR:
+ case FN_WRAP_ANCHOR_ONLY:
+ case FN_FRAME_WRAP_LEFT:
+ case FN_FRAME_WRAP_RIGHT:
+ SetWrapMode( nSlot );
+ break;
+
+ case FN_UPDATE_ALL_LINKS:
+ {
+ if( rSh.GetLinkManager().GetLinks().Count() )
+ {
+ BOOL bUpdateGrf = FALSE, bCallErrHdl = FALSE;
+ rSh.EnterStdMode();
+ rSh.StartAllAction();
+ rSh.GetLinkManager().UpdateAllLinks( FALSE, bCallErrHdl, bUpdateGrf );
+ rSh.EndAllAction();
+ }
+ }
+ break;
+
+ default:
+ bMore = TRUE;
+ }
+ if(bMore && pArgs)
+ {
+ pItem = 0;
+ pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem);
+ if(pItem)
+ switch(nSlot)
+ {
+ case SID_ATTR_BORDER_SHADOW:
+ case RES_SHADOW:
+ {
+ rSh.StartAllAction();
+ SfxItemSet aSet( rSh.GetAttrPool(),
+ RES_SHADOW, RES_SHADOW );
+
+ aSet.Put(*pItem);
+ // Tabellenzelle(n) selektiert?
+ if ( rSh.IsTableMode() )
+ {
+ SwFrmFmt *pFmt = rSh.GetTableFmt();
+ pFmt->SetAttr( *pItem );
+ }
+ else if ( rSh.IsFrmSelected() )
+ {
+ // Umrandungsattribute ueber Frame-Manager setzen
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+ aMgr.SetAttrSet( *pArgs );
+ aMgr.UpdateFlyFrm();
+ }
+ else
+ {
+ rSh.SetAttr( *pArgs );
+ }
+ rSh.EndAllAction();
+ }
+ break;
+ case FN_PAGE_STYLE_SET_LR_MARGIN:
+ case FN_PAGE_STYLE_SET_UL_MARGIN:
+ case FN_PAGE_STYLE_SET_NUMBER_FORMAT:
+ case FN_PAGE_STYLE_SET_PAPER_SIZE:
+ case FN_PAGE_STYLE_SET_PAPER_BIN:
+ {
+ DBG_ERROR("not implemented")
+ }
+ break;
+
+ case SID_ATTR_BORDER_OUTER:
+ {
+ // Tabellenzelle(n) selektiert?
+ if ( rSh.IsTableMode() )
+ {
+ // Umrandungattribute Get/SetTabBorders() setzen
+ rSh.SetTabBorders(*pArgs);
+ }
+ else if ( rSh.IsFrmSelected() )
+ {
+ // Umrandungsattribute ueber Frame-Manager setzen
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+ aMgr.SetAttrSet(*pArgs);
+ aMgr.UpdateFlyFrm();
+ }
+ else
+ {
+ // Umrandungsattribute ganz normal ueber Shell setzen
+ rSh.SetAttr( *pItem );
+ }
+ }
+ break;
+ default:
+ DBG_ERROR("falscher Dispatcher");
+ }
+
+ }
+
+ if(bUp)
+ {
+ SfxBindings &rBnd = GetView().GetViewFrame()->GetBindings();
+ rBnd.Invalidate(rReq.GetSlot());
+ rBnd.Update(rReq.GetSlot());
+ }
+}
+
+/* -----------------14.04.99 15:10-------------------
+ * Hier wird der State fuer SID_IMAP / SID_CONTOUR behandelt,
+ * wenn die Grafik ausgeswappt ist
+ * --------------------------------------------------*/
+IMPL_LINK(SwBaseShell, GraphicArrivedHdl, SwCrsrShell* , pCrShell )
+{
+ SwWrtShell &rSh = GetShell();
+ if( CNT_GRF == rSh.SwEditShell::GetCntType() &&
+ GRAPHIC_NONE != rSh.GetGraphicType() )
+ {
+ BOOL bProtect = 0 != rSh.IsSelObjProtected( (FlyProtectType)
+ (FLYPROTECT_CONTENT|FLYPROTECT_PARENT) );
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if( bUpdateSID_IMap || bUpdateSID_IMapExec )
+ {
+ USHORT nId = SvxIMapDlgChildWindow::GetChildWindowId();
+ SvxIMapDlg *pDlg = pVFrame->HasChildWindow( nId ) ?
+ (SvxIMapDlg*) ( pVFrame->GetChildWindow( nId )->GetWindow()) : 0;
+
+ if( pDlg && ( bUpdateSID_IMapExec || (bUpdateSID_IMap && !bProtect)) &&
+ pDlg->GetEditingObject() != rSh.GetIMapInventor() )
+ lcl_UpdateIMapDlg(rSh);
+
+ if( !bProtect && bUpdateSID_IMap )
+ {
+ SfxBoolItem aBool(SID_IMAP, 0 != pDlg);
+ if( pGetStateSet )
+ pGetStateSet->Put( aBool );
+ else
+ pVFrame->GetBindings().SetState( aBool );
+ }
+ }
+
+ if( !bProtect && ( bUpdateSID_IContour || bUpdateSID_IContourDlg ))
+ {
+ if( bUpdateSID_IContourDlg )
+ {
+ USHORT nId = SvxContourDlgChildWindow::GetChildWindowId();
+ SvxIMapDlg *pDlg = pVFrame->HasChildWindow( nId ) ?
+ (SvxIMapDlg*) ( pVFrame->GetChildWindow( nId )->GetWindow()) : 0;
+ if( pDlg && pDlg->GetEditingObject() != rSh.GetIMapInventor() )
+ lcl_UpdateContourDlg( rSh, SwWrtShell::SEL_GRF );
+
+ SfxBoolItem aBool(SID_CONTOUR_DLG, 0 != pDlg);
+ if( pGetStateSet )
+ pGetStateSet->Put( aBool );
+ else
+ pVFrame->GetBindings().SetState( aBool );
+ }
+ if( bUpdateSID_IContour )
+ {
+ SfxItemSet aSet(GetPool(), RES_SURROUND, RES_SURROUND);
+ rSh.GetFlyFrmAttr(aSet);
+ const SwFmtSurround& rWrap = (const SwFmtSurround&)aSet.Get(RES_SURROUND);
+
+ SfxBoolItem aBool( FN_FRAME_WRAP_CONTOUR, rWrap.IsContour() );
+ if( pGetStateSet )
+ pGetStateSet->Put( aBool );
+ else
+ pVFrame->GetBindings().SetState( aBool );
+ }
+ }
+
+ bUpdateSID_IMap = FALSE;
+ bUpdateSID_IMapExec = FALSE;
+ bUpdateSID_IContour = FALSE;
+ bUpdateSID_IContourDlg = FALSE;
+ }
+ return 0;
+}
+
+void SwBaseShell::GetState( SfxItemSet &rSet )
+{
+ SwWrtShell &rSh = GetShell();
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ pGetStateSet = &rSet;
+ while ( nWhich )
+ {
+ switch ( nWhich )
+ {
+ case SID_GALLERY_FORMATS:
+ if ( rSh.IsObjSelected() ||
+ (rSh.IsSelFrmMode() &&
+ !(rSh.GetSelectionType() & SwWrtShell::SEL_GRF)) )
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_GALLERY_ENABLE_ADDCOPY:
+ rSet.Put( SfxBoolItem( SID_GALLERY_ENABLE_ADDCOPY,
+ 0 == (HTMLMODE_ON & ::GetHtmlMode(GetView().GetDocShell()))));
+ break;
+ case FN_EDIT_REGION:
+ if( !rSh.IsAnySectionInDoc() )
+ rSet.DisableItem(nWhich);
+ break;
+
+ case FN_INSERT_REGION:
+ case FN_INSERT_COLUMN_SECTION:
+ if( rSh.IsSelFrmMode() ||
+ !rSh.IsInsRegionAvailable() )
+ rSet.DisableItem( nWhich );
+ break;
+ case FN_CONVERT_TEXT_TABLE:
+ {
+ USHORT eFrmType = rSh.GetFrmType(0,TRUE);
+ if( (eFrmType & FRMTYPE_FOOTNOTE) ||
+ (!rSh.GetTableFmt() && !rSh.IsTextToTableAvailable() ) )
+ rSet.DisableItem( nWhich );
+ }
+ break;
+ case RES_SHADOW:
+ {
+ SfxItemSet aSet( rSh.GetAttrPool(),
+ RES_SHADOW, RES_SHADOW );
+
+ // Tabellenzelle(n) selektiert?
+ if ( rSh.IsTableMode() )
+ {
+ SwFrmFmt *pFmt = rSh.GetTableFmt();
+ aSet.Put(pFmt->GetAttr( nWhich, TRUE ));
+ }
+ else if( rSh.IsFrmSelected() )
+ {
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+ aSet.Put( aMgr.GetAttrSet() );
+ }
+ else
+ rSh.GetAttr( aSet );
+#ifdef DEBUG
+
+ const SvxShadowItem& rShItem = (const SvxShadowItem&)aSet.Get(nWhich);
+ rSet.Put(rShItem);
+#else
+ rSet.Put((const SvxShadowItem&)aSet.Get(nWhich));
+#endif
+ }
+ break;
+ case SID_IMAP:
+ {
+ USHORT nId = SvxIMapDlgChildWindow::GetChildWindowId();
+ BOOL bHas = pVFrame->HasChildWindow( nId );
+ BOOL bFrmSel = rSh.IsFrmSelected();
+ BOOL bProtect = 0 != rSh.IsSelObjProtected( (FlyProtectType)
+ (FLYPROTECT_CONTENT|FLYPROTECT_PARENT) );
+
+ BOOL bIsGraphicSelection = rSh.GetSelectionType() == SwWrtShell::SEL_GRF;
+
+ //wenn die Grafik ausgeswappt ist, dann muss der
+ //Status asynchron ermittelt werden
+ //bis dahin wird der Slot disabled
+ if(bIsGraphicSelection && rSh.IsGrfSwapOut(TRUE))
+ {
+ rSet.DisableItem(nWhich);
+ if( !bUpdateSID_IMap )
+ {
+ bUpdateSID_IMap = TRUE;
+ rSh.GetGraphic(FALSE); // start the loading
+ }
+ }
+ else
+ {
+
+ if( bProtect || ( !bHas && ( !bFrmSel ||
+ (bIsGraphicSelection &&
+ rSh.GetIMapGraphic().GetType() == GRAPHIC_NONE )) ))
+ rSet.DisableItem( nWhich );
+ else
+ {
+ SfxBoolItem aBool(nWhich, bHas);
+ if ( bHas && bFrmSel )
+ lcl_UpdateIMapDlg(rSh);
+ rSet.Put(aBool);
+ }
+ }
+ }
+ break;
+ case SID_IMAP_EXEC:
+ {
+ BOOL bDisable = FALSE;
+ if( !rSh.IsFrmSelected())
+ bDisable = TRUE;
+ USHORT nId = SvxIMapDlgChildWindow::GetChildWindowId();
+ if(!bDisable && pVFrame->HasChildWindow( nId ))
+ {
+ if(rSh.GetSelectionType() == SwWrtShell::SEL_GRF
+ && rSh.IsGrfSwapOut(TRUE))
+ {
+ if( !bUpdateSID_IMapExec )
+ {
+ bUpdateSID_IMapExec = TRUE;
+ rSh.GetGraphic(FALSE); // start the loading
+ }
+ }
+ else
+ {
+ SvxIMapDlg *pDlg = SWIMAPDLG(GetView());
+ if( pDlg->GetEditingObject() != rSh.GetIMapInventor() )
+ lcl_UpdateIMapDlg(rSh);
+ }
+ }
+ rSet.Put(SfxBoolItem(nWhich, bDisable));
+ }
+ break;
+ case FN_BACKSPACE:
+ case SID_DELETE:
+ if (rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0)
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_CONTOUR_DLG:
+ {
+ BOOL bParentCntProt = 0 != rSh.IsSelObjProtected(
+ (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) );
+
+ if( bParentCntProt || 0 != (HTMLMODE_ON & ::GetHtmlMode(
+ GetView().GetDocShell() )) )
+ rSet.DisableItem( nWhich );
+ else
+ {
+ USHORT nId = SvxContourDlgChildWindow::GetChildWindowId();
+ BOOL bHas = GetView().GetViewFrame()->HasChildWindow( nId );
+ int nSel = rSh.GetSelectionType();
+ BOOL bOk = 0 != (nSel & (SwWrtShell::SEL_GRF|SwWrtShell::SEL_OLE));
+
+ BOOL bDisable;
+ if( !bHas && !bOk )
+ bDisable = TRUE;
+ // wenn die Grafik ausgeswappt ist, dann muss der Status
+ // asynchron ermittelt werden bis dahin wird der Slot
+ // disabled
+ else if( (nSel & SwWrtShell::SEL_GRF) &&
+ rSh.IsGrfSwapOut(TRUE))
+ {
+ bDisable = TRUE;
+ if( !bUpdateSID_IContourDlg )
+ {
+ bUpdateSID_IContourDlg = TRUE;
+ rSh.GetGraphic(FALSE); // start the loading
+ }
+ }
+ else if( bHas && bOk )
+ bDisable = !lcl_UpdateContourDlg( rSh, nSel );
+ else if( bOk )
+ bDisable = GRAPHIC_NONE == rSh.GetIMapGraphic().GetType();
+
+ if( bDisable )
+ rSet.DisableItem( nWhich );
+ else
+ rSet.Put( SfxBoolItem(nWhich, bHas) );
+ }
+ }
+ break;
+ case SID_CONTOUR_EXEC:
+ {
+ BOOL bDisable = FALSE;
+ int nSel = rSh.GetSelectionType();
+ if( !(nSel & (SwWrtShell::SEL_GRF|SwWrtShell::SEL_OLE)) )
+ bDisable = TRUE;
+ USHORT nId = SvxContourDlgChildWindow::GetChildWindowId();
+ if( !bDisable && GetView().GetViewFrame()->HasChildWindow( nId ))
+ {
+ SvxContourDlg *pDlg = SWCONTOURDLG(GetView());
+ if( pDlg->GetEditingObject() != rSh.GetIMapInventor() )
+ bDisable = TRUE;
+ }
+ rSet.Put(SfxBoolItem(nWhich, bDisable));
+ }
+ break;
+
+ case SID_SBA_BRW_UPDATE:
+ case SID_SBA_BRW_INSERT:
+ case SID_SBA_BRW_MERGE:
+ {
+ //Damit der Datenbankbrowser die Buttons fuer alle Shells
+ //anzeigt. Aber nur disabled, enabled wird nur in der Textsh.
+ const int nSelType = rSh.GetSelectionType();
+ rSet.Put(SfxBoolItem(nWhich,
+ nSelType & SwWrtShell::SEL_TXT ? TRUE : FALSE ));
+ }
+ break;
+
+ case FN_TOOL_ANKER:
+ case FN_TOOL_ANKER_PAGE:
+ case FN_TOOL_ANKER_PARAGRAPH:
+ case FN_TOOL_ANKER_CHAR:
+ case FN_TOOL_ANKER_AT_CHAR:
+ case FN_TOOL_ANKER_FRAME:
+ {
+ BOOL bObj = 0 != rSh.IsObjSelected();
+ BOOL bParentCntProt = rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+
+ if( !bParentCntProt && (bObj || rSh.IsFrmSelected()))
+ {
+ SfxItemSet aSet(GetPool(), RES_ANCHOR, RES_ANCHOR);
+ if(bObj)
+ rSh.GetObjAttr(aSet);
+ else
+ rSh.GetFlyFrmAttr(aSet);
+ RndStdIds eSet = ((SwFmtAnchor&)aSet.Get(RES_ANCHOR)).GetAnchorId();
+ BOOL bSet;
+ bSet = (nWhich == FN_TOOL_ANKER_PAGE && eSet == FLY_PAGE) ||
+ (nWhich == FN_TOOL_ANKER_PARAGRAPH && eSet == FLY_AT_CNTNT) ||
+ (nWhich == FN_TOOL_ANKER_FRAME && eSet == FLY_AT_FLY) ||
+ (nWhich == FN_TOOL_ANKER_AT_CHAR && eSet == FLY_AUTO_CNTNT) ||
+ (nWhich == FN_TOOL_ANKER_CHAR && eSet == FLY_IN_CNTNT);
+ if(nWhich != FN_TOOL_ANKER)
+ {
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ if( ( nWhich == FN_TOOL_ANKER_PAGE &&
+ ((HTMLMODE_ON & nHtmlMode) && (0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS)))) ||
+ ( nWhich == FN_TOOL_ANKER_FRAME && !rSh.IsFlyInFly() ) ||
+ ( nWhich == FN_TOOL_ANKER_AT_CHAR && !rSh.IsFrmSelected())||
+ ( nWhich == FN_TOOL_ANKER_PAGE && rSh.IsInHeaderFooter() ))
+ rSet.DisableItem(nWhich);
+ else
+ rSet.Put(SfxBoolItem(nWhich, bSet));
+ }
+ else
+ {
+ USHORT nSlotId = 0;
+
+ switch (eSet)
+ {
+ case FLY_PAGE:
+ nSlotId = FN_TOOL_ANKER_PAGE;
+ break;
+ case FLY_AT_CNTNT:
+ nSlotId = FN_TOOL_ANKER_PARAGRAPH;
+ break;
+ case FLY_IN_CNTNT:
+ nSlotId = FN_TOOL_ANKER_CHAR;
+ break;
+ case FLY_AUTO_CNTNT:
+ nSlotId = FN_TOOL_ANKER_AT_CHAR;
+ break;
+ case FLY_AT_FLY:
+ nSlotId = FN_TOOL_ANKER_FRAME;
+ break;
+ }
+ rSet.Put(SfxUInt16Item(nWhich, nSlotId));
+ }
+ }
+ else
+ rSet.DisableItem( nWhich );
+ }
+ break;
+ case FN_FRAME_NOWRAP:
+ case FN_FRAME_WRAP:
+ case FN_FRAME_WRAP_IDEAL:
+ case FN_FRAME_WRAPTHRU:
+ case FN_FRAME_WRAPTHRU_TRANSP:
+ case FN_FRAME_WRAP_CONTOUR:
+ case FN_WRAP_ANCHOR_ONLY:
+ case FN_FRAME_WRAP_LEFT:
+ case FN_FRAME_WRAP_RIGHT:
+ {
+ BOOL bObj = 0 != rSh.IsObjSelected();
+ BOOL bParentCntProt = rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+
+ if( !bParentCntProt && (bObj || rSh.IsFrmSelected()))
+ {
+ SfxItemSet aSet(GetPool(), RES_OPAQUE, RES_ANCHOR);
+ int nAnchorType;
+ if(bObj)
+ {
+ rSh.GetObjAttr(aSet);
+ nAnchorType = rSh.GetAnchorId();
+ }
+ else
+ {
+ rSh.GetFlyFrmAttr(aSet);
+ nAnchorType = ((SwFmtAnchor&)aSet.Get(RES_ANCHOR)).GetAnchorId();
+ }
+ const SwFmtSurround& rWrap = (const SwFmtSurround&)aSet.Get(RES_SURROUND);
+
+ const SvxOpaqueItem& rOpaque = (const SvxOpaqueItem&)aSet.Get(RES_OPAQUE);
+ BOOL bOpaque = rOpaque.GetValue();
+ SwSurround nSurround = rWrap.GetSurround();
+ BOOL bSet;
+
+ BOOL bDisable = nAnchorType == - 1 || nAnchorType == FLY_IN_CNTNT;
+ BOOL bHtmlMode = 0 != ::GetHtmlMode(GetView().GetDocShell());
+
+ switch( nWhich )
+ {
+ case FN_FRAME_NOWRAP:
+ bDisable |= (bHtmlMode ||
+ ( nAnchorType != FLY_AT_CNTNT &&
+ nAnchorType != FLY_AUTO_CNTNT && nAnchorType != FLY_PAGE));
+ bSet = nSurround == SURROUND_NONE;
+ break;
+ case FN_FRAME_WRAP:
+ bDisable |= bHtmlMode;
+ bSet = nSurround == SURROUND_PARALLEL;
+ break;
+ case FN_FRAME_WRAP_IDEAL:
+ bDisable |= bHtmlMode;
+ bSet = nSurround == SURROUND_IDEAL;
+ break;
+ case FN_FRAME_WRAPTHRU:
+ bDisable |= (bHtmlMode ||
+ (nAnchorType != FLY_AT_CNTNT&& nAnchorType != FLY_AUTO_CNTNT && nAnchorType != FLY_PAGE));
+ if(bObj)
+ bSet = nSurround == SURROUND_THROUGHT && rSh.GetLayerId();
+ else
+ bSet = nSurround == SURROUND_THROUGHT && bOpaque;
+ break;
+ case FN_FRAME_WRAPTHRU_TRANSP:
+ bDisable |= bHtmlMode;
+ if(bObj)
+ bSet = nSurround == SURROUND_THROUGHT && !rSh.GetLayerId();
+ else
+ bSet = nSurround == SURROUND_THROUGHT && !bOpaque;
+ break;
+ case FN_FRAME_WRAP_CONTOUR:
+ bDisable |= bHtmlMode;
+ bSet = rWrap.IsContour();
+ if( !bDisable )
+ {
+ int nSel = rSh.GetSelectionType();
+ if( (nSel & SwWrtShell::SEL_GRF) &&
+ rSh.IsGrfSwapOut(TRUE))
+ {
+ bDisable = TRUE;
+ if( !bUpdateSID_IContour )
+ {
+ bUpdateSID_IContour = TRUE;
+ rSh.GetGraphic(FALSE); // start the loading
+ }
+ }
+ else if( rSh.IsFrmSelected() )
+ bDisable = GRAPHIC_NONE ==
+ rSh.GetIMapGraphic().GetType();
+ }
+ bSet = bDisable ? FALSE : rWrap.IsContour();
+
+ break;
+ case FN_WRAP_ANCHOR_ONLY:
+ bDisable |= (bHtmlMode ||
+ (nAnchorType != FLY_AT_CNTNT));
+ bSet = rWrap.IsAnchorOnly();
+ break;
+ case FN_FRAME_WRAP_LEFT:
+ bSet = nSurround == SURROUND_LEFT;
+ break;
+ case FN_FRAME_WRAP_RIGHT:
+ bSet = nSurround == SURROUND_RIGHT;
+ break;
+ }
+
+ if(bDisable)
+ rSet.DisableItem(nWhich);
+ else
+ rSet.Put(SfxBoolItem(nWhich, bSet));
+ }
+ else
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case FN_UPDATE_CHARTS:
+ if( !rSh.HasCharts() )
+ rSet.DisableItem( nWhich );
+ break;
+ case FN_UPDATE_ALL_LINKS:
+ if ( !rSh.GetLinkManager().GetLinks().Count() )
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+ pGetStateSet = 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Slots mit dieser Statusmethode disablen
+ --------------------------------------------------------------------*/
+
+
+void SwBaseShell::StateDisableItems( SfxItemSet &rSet )
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+
+ while (nWhich)
+ {
+ rSet.DisableItem( nWhich );
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Slots mit dieser Statusmethode disablen
+ --------------------------------------------------------------------*/
+
+
+void SwBaseShell::StateStyle( SfxItemSet &rSet )
+{
+ BOOL bParentCntProt = GetShell().IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+ ShellModes eMode = GetView().GetShellMode();
+
+ if ( bParentCntProt ||
+ SEL_DRAW == eMode ||
+ SEL_DRAW_CTRL == eMode ||
+ SEL_DRAW_FORM == eMode ||
+ SEL_DRAWTEXT == eMode ||
+ SEL_BEZIER == eMode )
+ {
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ while ( nWhich )
+ {
+ rSet.DisableItem( nWhich );
+ nWhich = aIter.NextWhich();
+ }
+ }
+ else
+ GetView().GetDocShell()->StateStyleSheet(rSet, &GetShell());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwBaseShell::SetWrapMode( USHORT nSlot )
+{
+ SwWrtShell &rSh = GetShell();
+ BOOL bObj = 0 != rSh.IsObjSelected();
+ if( bObj || rSh.IsFrmSelected())
+ {
+ SfxItemSet aSet(GetPool(), RES_OPAQUE, RES_SURROUND);
+ if(bObj)
+ rSh.GetObjAttr(aSet);
+ else
+ rSh.GetFlyFrmAttr(aSet);
+ SwFmtSurround aWrap( (SwFmtSurround&)aSet.Get(RES_SURROUND) );
+ SwSurround nOldSurround(aWrap.GetSurround());
+ SwSurround nSurround = SURROUND_PARALLEL;
+
+ switch (nSlot)
+ {
+ case FN_FRAME_NOWRAP:
+ nSurround = SURROUND_NONE;
+ if (aWrap.IsContour())
+ aWrap.SetContour(FALSE);
+ break;
+ case FN_FRAME_WRAP_IDEAL:
+ nSurround = SURROUND_IDEAL;
+ break;
+ case FN_WRAP_ANCHOR_ONLY:
+ aWrap.SetAnchorOnly(!aWrap.IsAnchorOnly());
+ break;
+ case FN_FRAME_WRAP_CONTOUR:
+ aWrap.SetContour(!aWrap.IsContour());
+ if (nSurround == SURROUND_THROUGHT)
+ nSurround = SURROUND_PARALLEL;
+ break;
+ case FN_FRAME_WRAPTHRU_TRANSP:
+ if (aWrap.IsContour())
+ aWrap.SetContour(FALSE);
+ // kein break!!!
+ case FN_FRAME_WRAPTHRU:
+ nSurround = SURROUND_THROUGHT;
+ break;
+
+ case FN_FRAME_WRAP_LEFT:
+ nSurround = SURROUND_LEFT;
+ break;
+
+ case FN_FRAME_WRAP_RIGHT:
+ nSurround = SURROUND_RIGHT;
+ break;
+
+ default:
+ break;
+ }
+ aWrap.SetSurround(nSurround);
+
+ if (nSlot != FN_FRAME_WRAP_CONTOUR)
+ {
+ // Konturumfluss bei Draw-Objekten defaulten
+ if (bObj && nOldSurround != nSurround &&
+ (nOldSurround == SURROUND_NONE || nOldSurround == SURROUND_THROUGHT))
+ {
+ aWrap.SetContour(TRUE);
+ }
+ }
+
+ aSet.Put( aWrap );
+ aSet.Put(SvxOpaqueItem(RES_OPAQUE, nSlot != FN_FRAME_WRAPTHRU_TRANSP));
+ if(bObj)
+ {
+ rSh.SetObjAttr(aSet);
+ if (nSlot != FN_FRAME_WRAPTHRU_TRANSP)
+ rSh.SelectionToHeaven();
+ else
+ rSh.SelectionToHell();
+ }
+ else
+ rSh.SetFlyFrmAttr(aSet);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Update der Statuszeile erzwingen
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::SetFrmMode(USHORT nMode, SwWrtShell *pSh )
+{
+ nFrameMode = nMode;
+ SfxBindings &rBnd = pSh->GetView().GetViewFrame()->GetBindings();
+
+ if( nMode == FLY_DRAG ||
+ (pSh && (pSh->IsFrmSelected() || pSh->IsObjSelected())) )
+ {
+ const SfxPointItem aTmp1( SID_ATTR_POSITION, pSh->GetAnchorObjDiff());
+ const SvxSizeItem aTmp2( SID_ATTR_SIZE, pSh->GetObjSize());
+ rBnd.SetState( aTmp1 );
+ rBnd.SetState( aTmp2 );
+ }
+ else if( nMode == FLY_DRAG_END )
+ {
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_POSITION, SID_ATTR_SIZE, 0
+ };
+ rBnd.Invalidate(aInval);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ctor
+ --------------------------------------------------------------------*/
+
+SwBaseShell::SwBaseShell(SwView& rVw) :
+ SfxShell( &rVw ),
+ rView(rVw),
+ pFrmMgr(0),
+ pGetStateSet(0),
+ bUpdateSID_IMap(FALSE),
+ bUpdateSID_IMapExec(FALSE),
+ bUpdateSID_IContour(FALSE),
+ bUpdateSID_IContourDlg(FALSE)
+{
+ SwWrtShell& rWrtSh = rView.GetWrtShell();
+
+ SetPool(&rWrtSh.GetAttrPool());
+ SetName(C2S("Base"));
+ rWrtSh.SetGrfArrivedLnk( LINK( this, SwBaseShell, GraphicArrivedHdl));
+}
+
+
+SwBaseShell::~SwBaseShell()
+{
+ delete pFrmMgr;
+ if( rView.GetCurShell() == this )
+ rView.ResetSubShell();
+
+ Link aTmp( LINK( this, SwBaseShell, GraphicArrivedHdl));
+ if( aTmp == rView.GetWrtShell().GetGrfArrivedLnk() )
+ rView.GetWrtShell().SetGrfArrivedLnk( Link() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::ExecTxtCtrl(SfxRequest& rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+
+ SwWrtShell &rSh = GetShell();
+ if (!pArgs)
+ GetView().GetViewFrame()->GetDispatcher()->Execute( SID_CHAR_DLG, FALSE);
+ else
+ {
+ rSh.SetAttr(*pArgs);
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if(pColl && pColl->IsAutoUpdateFmt())
+ rSh.AutoUpdatePara(pColl, *pArgs);
+
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::GetTxtCtrlState(SfxItemSet& rSet)
+{
+ GetShell().GetAttr(rSet);
+/*
+#ifdef UNX
+ // Timing-Probleme: Wenn der Timer ausloest, der u.a. die FontList ermitteln
+ // will, ist die DocShell u.U. (bei langen Startup-Phasen wie z.B. unter
+ // Unix) noch gar nicht angelegt (->SF). In diesem Fall holen wir uns
+ // die FontList einfach vom AppWindow. Ein sp"aterer Timer-Aufruf wird's
+ // dann schon richten.
+ if( !GetView().GetDocShell() )
+ {
+ FontList aFontList(::GetGetpApp()()->GetAppWindow());
+ SvxFontListItem aFontListItem( &aFontList , SID_ATTR_CHAR_FONTLIST );
+ rSet.Put( aFontListItem );
+ }
+ else
+#endif
+ {
+ SvxFontListItem aFontListItem(GetView().GetDocShell()->GetFontList(), SID_ATTR_CHAR_FONTLIST);
+ rSet.Put(aFontListItem);
+ }
+
+ GetShell().GetAttr(rSet); // *alle* Textattribute von der Core erfragen
+ */
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::GetBckColState(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ int nSelType = rSh.GetSelectionType();
+
+// if ( nSelType & SwWrtShell::SEL_GRF ||
+ if( nSelType & SwWrtShell::SEL_OLE )
+ {
+ rSet.DisableItem( SID_BACKGROUND_COLOR );
+ return;
+ }
+
+ if ( nSelType & SwWrtShell::SEL_FRM )
+ {
+ BOOL bParentCntProt = rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+ if (bParentCntProt)
+ {
+ rSet.DisableItem( SID_BACKGROUND_COLOR );
+ return;
+ }
+ }
+
+ SvxBrushItem aBrushItem;
+
+ if( SwWrtShell::SEL_TBL_CELLS & nSelType )
+ rSh.GetBoxBackground( aBrushItem );
+ else
+ {
+ SfxItemSet aCoreSet(GetPool(), RES_BACKGROUND, RES_BACKGROUND);
+ if( nSelType & SwWrtShell::SEL_GRF || SwWrtShell::SEL_FRM & nSelType )
+ rSh.GetFlyFrmAttr( aCoreSet );
+ else
+ rSh.GetAttr( aCoreSet );
+ aBrushItem = (const SvxBrushItem&)aCoreSet.Get(RES_BACKGROUND);
+ }
+
+ while ( nWhich )
+ {
+ switch(nWhich)
+ {
+ case SID_BACKGROUND_COLOR :
+ {
+ SvxColorItem aColorItem(aBrushItem.GetColor());
+ rSet.Put( aColorItem, SID_BACKGROUND_COLOR );
+ }
+ break;
+ case SID_ATTR_BRUSH:
+ case RES_BACKGROUND:
+ rSet.Put( aBrushItem, GetPool().GetWhich(nWhich) );
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwBaseShell::ExecBckCol(SfxRequest& rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ int nSelType = rSh.GetSelectionType();
+ if ( nSelType & SwWrtShell::SEL_OLE )
+ {
+ return;
+ }
+
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ USHORT nSlot = rReq.GetSlot();
+ if( !pArgs && nSlot != SID_BACKGROUND_COLOR)
+ return ;
+
+ SvxBrushItem aBrushItem;
+
+ if( SwWrtShell::SEL_TBL & nSelType )
+ {
+ rSh.GetBoxBackground( aBrushItem );
+ }
+ else
+ {
+ SfxItemSet aCoreSet(GetPool(), RES_BACKGROUND, RES_BACKGROUND);
+ if( (SwWrtShell::SEL_FRM & nSelType) || (SwWrtShell::SEL_GRF & nSelType) )
+ rSh.GetFlyFrmAttr( aCoreSet );
+ else
+ rSh.GetAttr( aCoreSet );
+ aBrushItem = (const SvxBrushItem&)aCoreSet.Get(RES_BACKGROUND);
+ }
+
+// BOOL bMsgOk = FALSE;
+
+ switch (nSlot)
+ {
+ // RES_BACKGROUND (=SID_ATTR_BRUSH) muss ueber zwei IDs
+ // gesetzt werden:
+ case SID_BACKGROUND_COLOR:
+ {
+ aBrushItem.SetGraphicPos(GPOS_NONE);
+
+ //Brush &rBrush = aBrushItem.GetBrush();
+ if(pArgs)
+ {
+ const SvxColorItem& rNewColorItem = (const SvxColorItem&)
+ pArgs->Get(SID_BACKGROUND_COLOR);
+ const Color& rNewColor = rNewColorItem.GetValue();
+ aBrushItem.SetColor( rNewColor );
+ GetView().GetViewFrame()->GetBindings().SetState(rNewColorItem);
+ }
+ else
+ aBrushItem.SetColor( COL_TRANSPARENT );
+ }
+ break;
+
+ case SID_ATTR_BRUSH:
+ case RES_BACKGROUND:
+ {
+ const SvxBrushItem& rNewBrushItem = (const SvxBrushItem&)
+ pArgs->Get( GetPool().GetWhich(nSlot) );
+ aBrushItem = rNewBrushItem;
+ }
+ break;
+ default:
+// bMsgOk = FALSE;
+ DBG_ERROR( "Unbekannte Message bei ExecuteAttr!" );
+ return;
+ }
+
+ if( SwWrtShell::SEL_TBL & nSelType )
+ {
+ rSh.SetBoxBackground( aBrushItem );
+ }
+ else if( (SwWrtShell::SEL_FRM & nSelType) ||
+ (SwWrtShell::SEL_GRF & nSelType) )
+ {
+ SfxItemSet aCoreSet(GetPool(), RES_BACKGROUND, RES_BACKGROUND);
+ aCoreSet.Put( aBrushItem );
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = rSh.GetCurFrmFmt();
+ if(pFmt && pFmt->IsAutoUpdateFmt())
+ rSh.AutoUpdateFrame( pFmt, aCoreSet);
+ else
+ rSh.SetFlyFrmAttr( aCoreSet );
+ }
+ else
+ {
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if( pColl && pColl->IsAutoUpdateFmt())
+ {
+ SfxItemSet aSet(GetPool(), RES_BACKGROUND, RES_BACKGROUND );
+ aSet.Put(aBrushItem);
+ rSh.AutoUpdatePara( pColl, aSet);
+ }
+ else
+ rSh.SetAttr( aBrushItem );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwBaseShell::GetBorderState(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ // Tabellenzelle(n) selektiert?
+ BOOL bPrepare = TRUE;
+ if ( rSh.IsTableMode() )
+ {
+ SfxItemSet aCoreSet( GetPool(),
+ RES_BOX, RES_BOX,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0 );
+ SvxBoxInfoItem aBoxInfo;
+ aCoreSet.Put( aBoxInfo );
+ rSh.GetTabBorders( aCoreSet );
+ rSet.Put( aCoreSet );
+ }
+ else if ( rSh.IsFrmSelected() )
+ {
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+ rSet.Put( aMgr.GetAttrSet() );
+ bPrepare = FALSE;
+ }
+ else
+ // Umrandungsattribute ganz normal ueber Shell holen
+ rSh.GetAttr( rSet );
+
+ if ( bPrepare )
+ ::PrepareBoxInfo( rSet, rSh );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwBaseShell::ExecDlg(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ Window *pMDI = &GetView().GetViewFrame()->GetWindow();
+ //Damit aus dem Basic keine Dialoge fuer Hintergrund-Views aufgerufen werden:
+ BOOL bBackground = (&GetView() != GetActiveView());
+ const SfxPoolItem* pItem = 0;
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ USHORT nSlot = rReq.GetSlot();
+ const SfxItemSet* pOutSet = 0;
+ if(pArgs)
+ pArgs->GetItemState( GetPool().GetWhich(nSlot), FALSE, &pItem );
+
+ switch ( nSlot )
+ {
+ case FN_FORMAT_PAGE_COLUMN_DLG:
+ case FN_FORMAT_PAGE_DLG:
+ {
+ if( !bBackground )
+ {
+ const USHORT nCurIdx = rSh.GetCurPageDesc();
+ const SwPageDesc& rPageDesc = rSh.GetPageDesc( nCurIdx );
+ //temp. View, weil die Shell nach dem Dialog nicht mehr gueltig sein muss
+ //z.B. Kopfzeile ausschalten
+ SwView& rView = GetView();
+ rView.GetDocShell()->FormatPage(rPageDesc.GetName(),
+ nSlot == FN_FORMAT_PAGE_COLUMN_DLG,
+ &rSh );
+ rView.InvalidateRulerPos();
+ }
+ }
+ break;
+ case FN_FORMAT_BORDER_DLG:
+ {
+ SfxItemSet aSet( rSh.GetAttrPool(),
+ RES_BOX , RES_SHADOW,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ 0 );
+ SwBorderDlg* pDlg = 0;
+
+ // Tabellenzelle(n) selektiert?
+ if ( rSh.IsTableMode() )
+ {
+ // Umrandungattribute Get/SetTabBorders() setzen
+ ::PrepareBoxInfo( aSet, rSh );
+ rSh.GetTabBorders( aSet );
+ pDlg = new SwBorderDlg( pMDI, aSet, SW_BORDER_MODE_TABLE );
+ if ( pDlg->Execute() == RET_OK )
+ {
+ rSh.SetTabBorders( *pDlg->GetOutputItemSet() );
+ pOutSet = pDlg->GetOutputItemSet();
+ }
+ }
+ else if ( rSh.IsFrmSelected() )
+ {
+ // Umrandungsattribute ueber Frame-Manager setzen
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+ aSet.Put( aMgr.GetAttrSet() );
+
+ pDlg = new SwBorderDlg( pMDI, aSet, SW_BORDER_MODE_FRAME );
+ if ( pDlg->Execute() == RET_OK )
+ {
+ aMgr.SetAttrSet( *pDlg->GetOutputItemSet() );
+ aMgr.UpdateFlyFrm();
+ pOutSet = pDlg->GetOutputItemSet();
+ }
+ }
+ else
+ {
+ // Umrandungsattribute ganz normal ueber Shell setzen
+ rSh.GetAttr( aSet );
+ ::PrepareBoxInfo( aSet, rSh );
+
+ pDlg = new SwBorderDlg( pMDI, aSet, SW_BORDER_MODE_PARA );
+ if ( pDlg->Execute() == RET_OK )
+ {
+ rSh.SetAttr( *pDlg->GetOutputItemSet() );
+ pOutSet = pDlg->GetOutputItemSet();
+ }
+ }
+ delete pDlg;
+ }
+ break;
+ case FN_FORMAT_BACKGROUND_DLG:
+ {
+ SfxItemSet aSet( rSh.GetAttrPool(),
+ RES_BACKGROUND, RES_BACKGROUND );
+
+ SwBackgroundDlg* pDlg = 0;
+
+ // Tabellenzelle(n) selektiert?
+ if ( rSh.IsTableMode() )
+ {
+ //Hintergrundattribute der Tabelle holen und in den Set packen
+ SvxBrushItem aBrush(RES_BACKGROUND);
+ rSh.GetBoxBackground( aBrush );
+ pDlg = new SwBackgroundDlg( pMDI, aSet );
+ aSet.Put( aBrush );
+ if ( pDlg->Execute() == RET_OK )
+ {
+ //aBrush = (SvxBrushItem) pDlg->GetOutputItemSet()->Get( RES_BACKGROUND );
+
+ rSh.SetBoxBackground( (SvxBrushItem&)
+ pDlg->GetOutputItemSet()->Get( RES_BACKGROUND ));
+ pOutSet = pDlg->GetOutputItemSet();
+ }
+ }
+ else if ( rSh.IsFrmSelected() )
+ {
+
+ rSh.GetFlyFrmAttr( aSet );
+
+ pDlg = new SwBackgroundDlg( pMDI, aSet );
+ if ( pDlg->Execute() == RET_OK )
+ {
+ rSh.SetFlyFrmAttr((SfxItemSet &) *pDlg->GetOutputItemSet() );
+ pOutSet = pDlg->GetOutputItemSet();
+ }
+ }
+ else
+ {
+ // Umrandungsattribute ganz normal ueber Shell setzen
+ rSh.GetAttr( aSet );
+
+ pDlg = new SwBackgroundDlg( pMDI, aSet );
+ if ( pDlg->Execute() == RET_OK )
+ {
+ rSh.SetAttr( *pDlg->GetOutputItemSet() );
+ pOutSet = pDlg->GetOutputItemSet();
+ }
+ }
+ delete pDlg;
+
+ }
+ break;
+ default:DBG_ERROR("falscher Dispatcher (basesh.cxx)");
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+int SwBaseShell::InsertGraphic( const String &rPath, const String &rFilter,
+ BOOL bLink, GraphicFilter *pFlt,
+ Graphic* pPreviewGrf, BOOL bRule )
+{
+ SwWait aWait( *rView.GetDocShell(), TRUE );
+
+ Graphic aGrf;
+ int nRes = GRFILTER_OK;
+ if ( pPreviewGrf )
+ aGrf = *pPreviewGrf;
+ else
+ {
+ if( !pFlt )
+ pFlt = ::GetGrfFilter();
+ Link aOldLink = pFlt->GetUpdatePercentHdl();
+ pFlt->SetUpdatePercentHdl( LINK( this, SwBaseShell, UpdatePercentHdl ));
+ ::StartProgress( STR_STATSTR_IMPGRF, 0, 100, rView.GetDocShell() );
+ nRes = ::LoadGraphic( rPath, rFilter, aGrf, pFlt /*, nFilter*/ );
+ ::EndProgress( rView.GetDocShell() );
+ pFlt->SetUpdatePercentHdl( aOldLink );
+ }
+
+ if( GRFILTER_OK == nRes )
+ {
+ SwWrtShell &rSh = GetShell();
+ rSh.StartAction();
+ if( bLink )
+ rSh.Insert( URIHelper::SmartRelToAbs( rPath ),
+ rFilter, aGrf, pFrmMgr, bRule );
+ else
+ rSh.Insert( aEmptyStr, aEmptyStr, aGrf, pFrmMgr );
+ // nach dem EndAction ist es zu spaet, weil die Shell dann schon zerstoert sein kann
+ DELETEZ(pFrmMgr);
+ rSh.EndAction();
+ }
+ return nRes;
+}
+
+
+IMPL_LINK_INLINE_START( SwBaseShell, UpdatePercentHdl, GraphicFilter *, pFilter )
+{
+ ::SetProgressState( pFilter->GetPercent(), rView.GetDocShell() );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwBaseShell, UpdatePercentHdl, GraphicFilter *, pFilter )
+
+
+// ----------------------------------------------------------------------------
+
+
+SwWrtShell& SwBaseShell::GetShell()
+{
+ return rView.GetWrtShell();
+}
+
+// ----------------------------------------------------------------------------
+
+SwWrtShell* SwBaseShell::GetShellPtr()
+{
+ return rView.GetWrtShellPtr();
+}
+
+
+void SwBaseShell::GetGalleryState( SfxItemSet &rSet )
+{
+ SwWrtShell &rSh = GetShell();
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ switch ( nWhich )
+ {
+ case SID_GALLERY_BG_BRUSH:
+ {
+ int nSel = rSh.GetSelectionType();
+ SfxStringListItem aLst( nWhich );
+ List *pLst = aLst.GetList();
+ nParagraphPos = nGraphicPos = nOlePos = nFramePos = nTablePos =
+ nTableRowPos = nTableCellPos = nPagePos =
+ nHeaderPos = nFooterPos = 0;
+ BYTE nPos = 1;
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_PAGE ), pLst->Count() );
+ nPagePos = nPos++;
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ BOOL bHtmlMode = 0 != (nHtmlMode & HTMLMODE_ON);
+
+ if ( (!bHtmlMode || (nHtmlMode & HTMLMODE_FULL_STYLES)) &&
+ (nSel & SwWrtShell::SEL_TXT) )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_PARAGRAPH ), pLst->Count() );
+ nParagraphPos = nPos++;
+ }
+ if ( (!bHtmlMode || (nHtmlMode & HTMLMODE_SOME_STYLES)) &&
+ nSel & (SwWrtShell::SEL_TBL|SwWrtShell::SEL_TBL_CELLS) )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_TABLE ), pLst->Count() );
+ nTablePos = nPos++;
+
+ if(!bHtmlMode)
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_TABLE_ROW ), pLst->Count() );
+ nTableRowPos = nPos++;
+ }
+
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_TABLE_CELL), pLst->Count() );
+ nTableCellPos = nPos++;
+ }
+ if(!bHtmlMode)
+ {
+ if ( nSel & SwWrtShell::SEL_FRM )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_FRAME ), pLst->Count() );
+ nFramePos = nPos++;
+ }
+ if ( nSel & SwWrtShell::SEL_GRF )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_GRAPHIC ), pLst->Count() );
+ nGraphicPos = nPos++;
+ }
+ if ( nSel & SwWrtShell::SEL_OLE )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_OLE ), pLst->Count() );
+ nOlePos = nPos++;
+ }
+ const USHORT nType = rSh.GetFrmType(0,TRUE);
+ if ( nType & FRMTYPE_HEADER )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_HEADER ), pLst->Count() );
+ nHeaderPos = nPos++;
+ }
+ if ( nType & FRMTYPE_FOOTER )
+ {
+ pLst->Insert( (void*) new SW_RESSTR( STR_SWBG_FOOTER ), pLst->Count() );
+ nFooterPos = nPos;
+ }
+ }
+ if ( pLst->Count() )
+ rSet.Put( aLst );
+ else
+ rSet.DisableItem( nWhich );
+ break;
+ }
+ }
+}
+
+
+void SwBaseShell::ExecuteGallery(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ rSh.StartAction();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ USHORT nSlot = rReq.GetSlot();
+ switch(nSlot)
+ {
+ case SID_GALLERY_BG_BRUSH:
+ {
+ int nSel = rSh.GetSelectionType();
+ if ( nSel & SwWrtShell::SEL_DRW_TXT )
+ break;
+
+ BYTE nPos = (BYTE)((SfxUInt16Item &)pArgs->Get(SID_GALLERY_BG_POS)).GetValue();
+ ++nPos;
+
+ SvxBrushItem aBrush( (SvxBrushItem&)pArgs->Get(SID_GALLERY_BG_BRUSH));
+ aBrush.SetWhich( RES_BACKGROUND );
+ if ( nPos == nParagraphPos )
+ rSh.SetAttr( aBrush );
+ else if ( nPos == nTablePos )
+ rSh.SetTabBackground( aBrush );
+ else if ( nPos == nTableRowPos )
+ rSh.SetRowBackground( aBrush );
+ else if ( nPos == nTableCellPos )
+ rSh.SetBoxBackground( aBrush );
+ else if ( nPos == nFramePos || nPos == nGraphicPos || nPos == nOlePos )
+ {
+ SfxItemSet aCoreSet(GetPool(), RES_BACKGROUND, RES_BACKGROUND);
+ aCoreSet.Put( aBrush );
+ rSh.SetFlyFrmAttr( aCoreSet );
+ }
+ else if ( nPos == nPagePos || nPos == nHeaderPos || nPos == nFooterPos )
+ {
+ USHORT nDesc = rSh.GetCurPageDesc();
+ SwPageDesc aDesc( rSh.GetPageDesc( nDesc ) );
+ if ( nPos == nPagePos )
+ aDesc.GetMaster().SetAttr( aBrush );
+ else if ( nPos == nHeaderPos )
+ {
+ SwFmtHeader aHead( aDesc.GetMaster().GetHeader() );
+ aHead.GetHeaderFmt()->SetAttr( aBrush );
+ aDesc.GetMaster().SetAttr( aHead );
+ }
+ else if ( nPos == nFooterPos )
+ {
+ SwFmtFooter aFoot( aDesc.GetMaster().GetFooter() );
+ aFoot.GetFooterFmt()->SetAttr( aBrush );
+ aDesc.GetMaster().SetAttr( aFoot );
+ }
+ rSh.ChgPageDesc( nDesc, aDesc );
+ }
+ break;
+ }
+ }
+ rSh.EndAction();
+}
+
+void SwBaseShell::ExecField( SfxRequest& rReq )
+{
+ USHORT nSlot = rReq.GetSlot();
+ switch( nSlot )
+ {
+ case FN_CHANGE_DBFIELD:
+ {
+ SwChangeDBDlg *pDlg = new SwChangeDBDlg(GetView());
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.404 2000/09/18 16:06:02 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.403 2000/09/13 11:38:45 ka
+ use URL method of Gallery instead of DirEntry method
+
+ Revision 1.402 2000/09/12 13:16:50 kz
+ add. include tools/fsys.hxx
+
+ Revision 1.401 2000/09/08 08:12:51 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.400 2000/09/07 15:59:28 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.399 2000/08/17 11:42:20 jp
+ remove the SW graphicmanager
+
+ Revision 1.398 2000/08/15 13:51:49 os
+ #77616# allow background color for graphic objects
+
+ Revision 1.397 2000/07/11 18:54:25 jp
+ Task #70407#: use the GraphikObject
+
+ Revision 1.396 2000/07/11 17:56:35 jp
+ Bug #76736#: Execute - UpdateFields reativate
+
+ Revision 1.395 2000/06/26 13:17:56 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.394 2000/06/07 13:18:20 os
+ using UCB
+
+ Revision 1.393 2000/05/30 10:40:31 os
+ unused slots removed
+
+ Revision 1.392 2000/05/26 07:21:31 os
+ old SW Basic API Slots removed
+
+ Revision 1.391 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.390 2000/05/09 14:41:35 os
+ BASIC interface partially removed
+
+ Revision 1.389 2000/05/08 11:22:47 os
+ CreateSubObject
+
+ Revision 1.388 2000/04/18 14:58:23 os
+ UNICODE
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/beziersh.cxx b/sw/source/ui/shells/beziersh.cxx
new file mode 100644
index 000000000000..939a164e3428
--- /dev/null
+++ b/sw/source/ui/shells/beziersh.cxx
@@ -0,0 +1,488 @@
+/*************************************************************************
+ *
+ * $RCSfile: beziersh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SVDOPATH_HXX //autogen
+#include <svx/svdopath.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "helpid.h"
+#include "globals.hrc"
+#include "drawbase.hxx"
+#include "beziersh.hxx"
+
+#include "popup.hrc"
+#include "shells.hrc"
+
+#define SwBezierShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+SFX_IMPL_INTERFACE(SwBezierShell, SwBezierShell, SW_RES(STR_SHELLNAME_BEZIER))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAW_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_BEZIER_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_DRAW));
+}
+
+TYPEINIT1(SwBezierShell,SwBaseShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwBezierShell::SwBezierShell(SwView &rView):
+ SwBaseShell( rView )
+{
+ SetName(C2S("Bezier"));
+ SetHelpId(SW_BEZIERSHELL);
+
+ SwWrtShell *pSh = &GetShell();
+ SdrView* pSdrView = pSh->GetDrawView();
+ pSdrView->SetEliminatePolyPointLimitAngle(1500L);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwBezierShell::Execute(SfxRequest &rReq)
+{
+ SwWrtShell *pSh = &GetShell();
+ SdrView* pSdrView = pSh->GetDrawView();
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ USHORT nSlotId = rReq.GetSlot();
+ BOOL bChanged = pSdrView->GetModel()->IsChanged();
+ pSdrView->GetModel()->SetChanged(FALSE);
+ const SfxPoolItem* pItem;
+ if(pArgs)
+ pArgs->GetItemState(nSlotId, FALSE, &pItem);
+
+ switch (nSlotId)
+ {
+ case SID_DELETE:
+ case FN_BACKSPACE:
+ if (pSh->IsObjSelected())
+ {
+ if (pSdrView->HasMarkedPoints())
+ pSh->GetView().GetViewFrame()->GetDispatcher()->Execute(SID_BEZIER_DELETE, FALSE);
+ else
+ {
+ pSh->DelSelectedObj();
+ if (pSh->IsSelFrmMode())
+ {
+ pSh->LeaveSelFrmMode();
+ pSh->NoEdit();
+ }
+ GetView().AttrChangedNotify(pSh); // ggf Shellwechsel...
+ }
+ }
+ break;
+
+ case FN_ESCAPE:
+ if (pSdrView->HasMarkedPoints())
+ pSdrView->UnmarkAllPoints();
+ else
+ {
+ if ( pSh->IsDrawCreate() )
+ {
+ GetView().GetDrawFuncPtr()->BreakCreate();
+ GetView().AttrChangedNotify(pSh); // ggf Shellwechsel...
+ }
+ else if ( pSh->HasSelection() || GetView().IsDrawMode() )
+ {
+ GetView().LeaveDrawCreate();
+ pSh->EnterStdMode();
+ GetView().AttrChangedNotify(pSh); // ggf Shellwechsel...
+ }
+ }
+ break;
+
+ case SID_BEZIER_MOVE:
+ case SID_BEZIER_INSERT:
+ {
+ GetView().GetEditWin().SetBezierMode(nSlotId);
+ static USHORT __READONLY_DATA aInva[] =
+ {
+ SID_BEZIER_INSERT,
+ SID_BEZIER_MOVE,
+ 0
+ };
+ GetView().GetViewFrame()->GetBindings().Invalidate(aInva);
+ }
+ break;
+
+ case SID_BEZIER_DELETE:
+ case SID_BEZIER_CUTLINE:
+ case SID_BEZIER_CONVERT:
+ case SID_BEZIER_EDGE:
+ case SID_BEZIER_SMOOTH:
+ case SID_BEZIER_SYMMTR:
+ case SID_BEZIER_CLOSE:
+ case SID_BEZIER_ELIMINATE_POINTS:
+ {
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+
+ if (rMarkList.GetMark(0) && !pSdrView->IsAction())
+ {
+ switch (nSlotId)
+ {
+ case SID_BEZIER_DELETE:
+ pSdrView->DeleteMarkedPoints();
+ break;
+
+ case SID_BEZIER_CUTLINE:
+ {
+ pSdrView->RipUpAtMarkedPoints();
+ pSh->CheckUnboundObjects();
+ }
+ break;
+
+ case SID_BEZIER_CONVERT:
+ {
+ pSdrView->SetMarkedSegmentsKind(SDRPATHSEGMENT_TOGGLE);
+ break;
+ }
+
+ case SID_BEZIER_EDGE:
+ case SID_BEZIER_SMOOTH:
+ case SID_BEZIER_SYMMTR:
+ {
+ SdrPathSmoothKind eKind;
+
+ switch (nSlotId)
+ {
+ case SID_BEZIER_EDGE: eKind = SDRPATHSMOOTH_ANGULAR; break;
+ case SID_BEZIER_SMOOTH: eKind = SDRPATHSMOOTH_ASYMMETRIC; break;
+ case SID_BEZIER_SYMMTR: eKind = SDRPATHSMOOTH_SYMMETRIC; break;
+ }
+
+ SdrPathSmoothKind eSmooth = pSdrView->GetMarkedPointsSmooth();
+ if (eKind != eSmooth)
+ {
+ pSdrView->SetMarkedPointsSmooth(eKind);
+
+ static USHORT __READONLY_DATA aInva[] =
+ {
+ SID_BEZIER_SMOOTH,
+ SID_BEZIER_EDGE,
+ SID_BEZIER_SYMMTR,
+ 0
+ };
+ GetView().GetViewFrame()->GetBindings().Invalidate(aInva);
+ }
+ break;
+ }
+
+ case SID_BEZIER_CLOSE:
+ {
+ SdrPathObj* pPathObj = (SdrPathObj*) rMarkList.GetMark(0)->GetObj();
+ pSdrView->UnmarkAllPoints();
+ Size aDist(GetView().GetEditWin().PixelToLogic(Size(8,8)));
+ pPathObj->ToggleClosed(aDist.Width());
+ break;
+ }
+
+ case SID_BEZIER_ELIMINATE_POINTS:
+ pSdrView->SetEliminatePolyPoints(!pSdrView->IsEliminatePolyPoints());
+ break;
+ }
+ }
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ if (pSdrView->GetModel()->IsChanged())
+ GetShell().SetModified();
+ else if (bChanged)
+ pSdrView->GetModel()->SetChanged(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwBezierShell::GetState(SfxItemSet &rSet)
+{
+ SdrView* pSdrView = GetShell().GetDrawView();
+
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+
+ while( nWhich )
+ {
+ switch( nWhich )
+ {
+ case SID_BEZIER_MOVE:
+ case SID_BEZIER_INSERT:
+ {
+ USHORT nEditMode = GetView().GetEditWin().GetBezierMode();
+
+ rSet.Put(SfxBoolItem(nWhich, nEditMode == nWhich));
+ }
+ break;
+
+ case SID_BEZIER_CUTLINE:
+ if (!pSdrView->IsRipUpAtMarkedPointsPossible())
+ {
+ rSet.DisableItem(SID_BEZIER_CUTLINE);
+ }
+ break;
+
+ case SID_BEZIER_DELETE:
+ if (!pSdrView->IsDeleteMarkedPointsPossible())
+ {
+ rSet.DisableItem(SID_BEZIER_DELETE);
+ }
+ break;
+
+ case SID_BEZIER_CONVERT:
+ if (!pSdrView->IsSetMarkedSegmentsKindPossible())
+ {
+ rSet.DisableItem(SID_BEZIER_CONVERT);
+ }
+ else
+ {
+ SdrPathSegmentKind eSegm = pSdrView->GetMarkedSegmentsKind();
+ switch (eSegm)
+ {
+ case SDRPATHSEGMENT_DONTCARE: rSet.InvalidateItem(SID_BEZIER_CONVERT); break;
+ case SDRPATHSEGMENT_LINE : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,FALSE)); break; // Button reingedrueckt = Kurve
+ case SDRPATHSEGMENT_CURVE : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,TRUE)); break;
+ }
+ }
+ break;
+
+ case SID_BEZIER_EDGE:
+ case SID_BEZIER_SMOOTH:
+ case SID_BEZIER_SYMMTR:
+ if (!pSdrView->IsSetMarkedPointsSmoothPossible())
+ rSet.DisableItem(nWhich);
+ else
+ {
+ SdrPathSmoothKind eSmooth = pSdrView->GetMarkedPointsSmooth();
+ BOOL bEnable = FALSE;
+ switch (eSmooth)
+ {
+ case SDRPATHSMOOTH_DONTCARE :
+ break;
+ case SDRPATHSMOOTH_ANGULAR :
+ bEnable = nWhich == SID_BEZIER_EDGE;
+ break;
+ case SDRPATHSMOOTH_ASYMMETRIC:
+ bEnable = nWhich == SID_BEZIER_SMOOTH;
+ break;
+ case SDRPATHSMOOTH_SYMMETRIC :
+ bEnable = nWhich == SID_BEZIER_SYMMTR;
+ break;
+ }
+ rSet.Put(SfxBoolItem(nWhich, bEnable));
+ }
+ break;
+
+ case SID_BEZIER_CLOSE:
+ if (!pSdrView->IsOpenCloseMarkedObjectsPossible())
+ {
+ rSet.DisableItem(SID_BEZIER_CLOSE);
+ }
+ else
+ {
+ SdrObjClosedKind eClose = pSdrView->GetMarkedObjectsClosedState();
+ switch (eClose)
+ {
+ case SDROBJCLOSED_DONTCARE: rSet.InvalidateItem(SID_BEZIER_CLOSE); break;
+ case SDROBJCLOSED_OPEN : rSet.Put(SfxBoolItem(SID_BEZIER_CLOSE,FALSE)); break;
+ case SDROBJCLOSED_CLOSED : rSet.Put(SfxBoolItem(SID_BEZIER_CLOSE,TRUE)); break;
+ }
+ }
+ break;
+
+ case SID_BEZIER_ELIMINATE_POINTS:
+ rSet.Put(SfxBoolItem(SID_BEZIER_ELIMINATE_POINTS, pSdrView->IsEliminatePolyPoints()));
+ break;
+
+ default:
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.21 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.20 2000/09/07 15:59:28 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.19 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.18 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.17 2000/04/18 14:58:23 os
+ UNICODE
+
+ Revision 1.16 1997/11/29 14:51:26 MA
+ includes
+
+
+ Rev 1.15 29 Nov 1997 15:51:26 MA
+ includes
+
+ Rev 1.14 24 Nov 1997 09:46:54 MA
+ includes
+
+ Rev 1.13 03 Nov 1997 13:55:46 MA
+ precomp entfernt
+
+ Rev 1.12 05 Sep 1997 12:02:00 MH
+ chg: header
+
+ Rev 1.11 05 Aug 1997 16:18:42 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.10 01 Aug 1997 11:45:44 MH
+ chg: header
+
+ Rev 1.9 08 Jul 1997 12:07:10 OM
+ Draw-Selektionsmodi aufgeraeumt
+
+ Rev 1.8 16 Jun 1997 15:30:24 OM
+ GPF behoben: Backspace wie Delete behandeln
+
+ Rev 1.7 07 Apr 1997 17:50:00 MH
+ chg: header
+
+ Rev 1.6 21 Feb 1997 13:25:14 MA
+ #35942# Hack: CheckUnboundObjects
+
+ Rev 1.5 23 Jan 1997 16:07:44 OM
+ Aufgeraeumt
+
+ Rev 1.4 22 Jan 1997 11:20:48 OM
+ Neue Shells: DrawBaseShell und DrawControlShell
+
+ Rev 1.3 16 Jan 1997 14:46:24 OM
+ Zweistufiges Escape
+
+ Rev 1.2 14 Jan 1997 15:37:38 OM
+ Statusmethode fuer Bezier-Fkts
+
+ Rev 1.1 13 Jan 1997 15:56:10 OM
+ Bezier-Punkte loeschen
+
+ Rev 1.0 08 Jan 1997 12:46:44 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/drawdlg.cxx b/sw/source/ui/shells/drawdlg.cxx
new file mode 100644
index 000000000000..fabaee6e4444
--- /dev/null
+++ b/sw/source/ui/shells/drawdlg.cxx
@@ -0,0 +1,439 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
+
+
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVX_TEXTANIM_HXX //autogen
+#include <svx/textanim.hxx>
+#endif
+#ifndef _SVX_TAB_AREA_HXX //autogen
+#include <svx/tabarea.hxx>
+#endif
+#ifndef _SVX_TAB_LINE_HXX //autogen
+#include <svx/tabline.hxx>
+#endif
+#ifndef _SVX_DRAWITEM_HXX //autogen
+#include <svx/drawitem.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "docsh.hxx"
+#include "cmdid.h"
+
+#include "drawsh.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDrawShell::ExecDrawDlg(SfxRequest& rReq)
+{
+ SwWrtShell* pSh = &GetShell();
+ SdrView* pView = pSh->GetDrawView();
+ SdrModel* pDoc = pView->GetModel();
+ Window* pWin = GetView().GetWindow();
+ BOOL bChanged = pDoc->IsChanged();
+ pDoc->SetChanged(FALSE);
+
+ SfxItemSet aNewAttr( pDoc->GetItemPool() );
+ pView->GetAttributes( aNewAttr );
+
+ GetView().NoRotate();
+
+ pSh->StartAction();
+
+ switch (rReq.GetSlot())
+ {
+ case FN_DRAWTEXT_ATTR_DLG:
+ {
+ SvxTextTabDialog* pDlg = new SvxTextTabDialog( NULL, &aNewAttr , pView);
+ USHORT nResult = pDlg->Execute();
+
+ if (nResult == RET_OK)
+ {
+ if (pView->HasMarkedObj())
+ pView->SetAttributes(*pDlg->GetOutputItemSet());
+ }
+ delete( pDlg );
+ }
+ break;
+
+ case SID_ATTRIBUTES_AREA:
+ {
+ BOOL bHasMarked = pView->HasMarkedObj();
+
+
+#if SUPD>352
+ SvxAreaTabDialog* pDlg = new SvxAreaTabDialog( NULL, &aNewAttr, pDoc, pView );
+#else
+ SvxAreaTabDialog* pDlg = new SvxAreaTabDialog( NULL, &aNewAttr, pDoc);
+#endif
+ const SvxColorTableItem* pColorItem = (const SvxColorTableItem*)
+ GetView().GetDocShell()->GetItem(SID_COLOR_TABLE);
+ if(pColorItem->GetColorTable() == OFF_APP()->GetStdColorTable())
+ pDlg->DontDeleteColorTable();
+ if (pDlg->Execute() == RET_OK)
+ {
+ if (bHasMarked)
+ pView->SetAttributes(*pDlg->GetOutputItemSet());
+ else
+ pView->SetDefaultAttr(*pDlg->GetOutputItemSet(), FALSE);
+
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_FILL_STYLE, SID_ATTR_FILL_COLOR, 0
+ };
+ SfxBindings &rBnd = GetView().GetViewFrame()->GetBindings();
+ rBnd.Invalidate(aInval);
+ rBnd.Update(SID_ATTR_FILL_STYLE);
+ rBnd.Update(SID_ATTR_FILL_COLOR);
+ }
+ delete pDlg;
+ }
+ break;
+
+ case SID_ATTRIBUTES_LINE:
+ {
+ BOOL bHasMarked = pView->HasMarkedObj();
+
+ const SdrObject* pObj = NULL;
+ const SdrMarkList& rMarkList = pView->GetMarkList();
+ if( rMarkList.GetMarkCount() == 1 )
+ pObj = rMarkList.GetMark(0)->GetObj();
+
+ SvxLineTabDialog* pDlg = new SvxLineTabDialog(NULL, &aNewAttr,
+ pDoc, pObj, bHasMarked);
+
+ if (pDlg->Execute() == RET_OK)
+ {
+ if(bHasMarked)
+ pView->SetAttrToMarked(*pDlg->GetOutputItemSet(), FALSE);
+ else
+ pView->SetDefaultAttr(*pDlg->GetOutputItemSet(), FALSE);
+
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_LINE_STYLE, SID_ATTR_LINE_WIDTH,
+ SID_ATTR_LINE_COLOR, 0
+ };
+
+ GetView().GetViewFrame()->GetBindings().Invalidate(aInval);
+ }
+ delete pDlg;
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ pSh->EndAction();
+
+ if (pDoc->IsChanged())
+ GetShell().SetModified();
+ else
+ if (bChanged)
+ pDoc->SetChanged(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDrawShell::ExecDrawAttrArgs(SfxRequest& rReq)
+{
+ SwWrtShell* pSh = &GetShell();
+ SdrView* pView = pSh->GetDrawView();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ BOOL bChanged = pView->GetModel()->IsChanged();
+ pView->GetModel()->SetChanged(FALSE);
+
+ GetView().NoRotate();
+
+ if (pArgs)
+ {
+ if(pView->HasMarkedObj())
+ pView->SetAttrToMarked(*rReq.GetArgs(), FALSE);
+ else
+ pView->SetDefaultAttr(*rReq.GetArgs(), FALSE);
+ }
+ else
+ {
+ SfxDispatcher* pDis = pSh->GetView().GetViewFrame()->GetDispatcher();
+ switch (rReq.GetSlot())
+ {
+ case SID_ATTR_FILL_STYLE:
+ case SID_ATTR_FILL_COLOR:
+ case SID_ATTR_FILL_GRADIENT:
+ case SID_ATTR_FILL_HATCH:
+ case SID_ATTR_FILL_BITMAP:
+ pDis->Execute(SID_ATTRIBUTES_AREA, FALSE);
+ break;
+ case SID_ATTR_LINE_STYLE:
+ case SID_ATTR_LINE_DASH:
+ case SID_ATTR_LINE_WIDTH:
+ case SID_ATTR_LINE_COLOR:
+ pDis->Execute(SID_ATTRIBUTES_LINE, FALSE);
+ break;
+ }
+ }
+ if (pView->GetModel()->IsChanged())
+ GetShell().SetModified();
+ else
+ if (bChanged)
+ pView->GetModel()->SetChanged(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDrawShell::GetDrawAttrState(SfxItemSet& rSet)
+{
+ SdrView* pSdrView = GetShell().GetDrawView();
+
+ if (pSdrView->HasMarkedObj())
+ {
+ BOOL bDisable = Disable( rSet );
+
+ if( !bDisable )
+ pSdrView->GetAttributes( rSet );
+ }
+ else
+ rSet.Put(pSdrView->GetDefaultAttr());
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.85 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.84 2000/09/07 15:59:28 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.83 2000/07/14 14:41:26 ama
+ Fix #75805#: Start/EndAction prevents from performanceproblems
+
+ Revision 1.82 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.81 2000/02/11 14:57:07 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.80 1999/06/21 13:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+
+ Rev 1.79 21 Jun 1999 15:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+ Rev 1.78 29 Nov 1997 15:54:02 MA
+ includes
+
+ Rev 1.77 24 Nov 1997 09:46:54 MA
+ includes
+
+ Rev 1.76 02 Sep 1997 13:23:16 OS
+ includes
+
+ Rev 1.75 01 Sep 1997 13:27:30 OS
+ DLL-Umstellung
+
+ Rev 1.74 26 Aug 1997 16:13:08 TRI
+ VCL Anpassungen
+
+ Rev 1.73 07 Apr 1997 17:42:54 MH
+ chg: header
+
+ Rev 1.72 23 Jan 1997 10:45:50 OM
+ Neue Shells: Control- und DrawBaseShell
+
+ Rev 1.71 22 Jan 1997 11:35:56 OM
+ Neuer Parameter fuer SvxAreaTabDialog
+
+ Rev 1.70 22 Jan 1997 11:20:50 OM
+ Neue Shells: DrawBaseShell und DrawControlShell
+
+ Rev 1.69 13 Jan 1997 15:56:10 OM
+ Bezier-Punkte loeschen
+
+ Rev 1.68 08 Jan 1997 12:48:56 OM
+ Neue Segs
+
+ Rev 1.67 08 Jan 1997 12:47:20 OM
+ Aenderungen fuer Bezier-Shell
+
+ Rev 1.66 20 Dec 1996 13:22:18 MA
+ includes
+
+ Rev 1.65 13 Dec 1996 12:19:10 OM
+ Bezier-Controller Status und Execute
+
+ Rev 1.64 29 Nov 1996 10:57:42 OM
+ #33865# Fehlende Draw-Attribute gesetzt
+
+ Rev 1.63 28 Nov 1996 16:32:32 OM
+ Malattribute nur ohne selektiertes Objekt als Default setzen
+
+ Rev 1.62 28 Nov 1996 13:07:44 OM
+ #33823# Dok-Switch bei Draw-Dialogen unterbunden
+
+ Rev 1.61 27 Nov 1996 16:15:08 OM
+ #33427# Zeichenobjekte: automatischer Layerwechsel je nach Umlaufart
+
+ Rev 1.60 27 Nov 1996 10:05:18 OM
+ #33627# SetGeoAttr durch SetAttributes ersetzt
+
+ Rev 1.59 19 Nov 1996 15:55:20 NF
+ clooks...
+
+ Rev 1.58 15 Nov 1996 13:34:00 OS
+ SvxTextTabDialog angebunden
+
+ Rev 1.57 08 Nov 1996 15:59:24 OM
+ Schuetzen neu organisiert, transparenz im Draw-Mode
+
+ Rev 1.56 29 Oct 1996 17:21:48 OM
+ Abstaende auch im Drawmode
+
+ Rev 1.55 23 Oct 1996 20:04:46 OM
+ Drawobjekt Textumfluss-Dlg
+
+ Rev 1.54 23 Oct 1996 13:04:46 OS
+ DontDeleteColorTable am SvxAreaTabDialog ruen
+
+ Rev 1.53 01 Oct 1996 16:54:00 OM
+ Hyperlinks editieren
+
+ Rev 1.52 28 Aug 1996 15:55:02 OS
+ includes
+
+ Rev 1.51 15 Aug 1996 13:44:20 JP
+ svdraw.hxx entfernt
+
+ Rev 1.50 31 May 1996 11:01:36 NF
+ CLOOKS
+
+ Rev 1.49 29 May 1996 13:05:26 OS
+ headerstop wieder vor den Win31-defines
+
+ Rev 1.48 29 May 1996 09:49:00 TRI
+ CLOOKS
+
+ Rev 1.47 21 May 1996 16:57:12 AMA
+ Fix: Start+EndAction nach dem DrawDialog.
+
+ Rev 1.46 21 May 1996 08:50:42 NF
+ CLOOKS
+
+ Rev 1.45 14 May 1996 15:17:06 HJS
+ CLOOKS
+
+ Rev 1.44 10 May 1996 15:57:18 OS
+ Zeichenbindung an Drawobjekten
+
+ Rev 1.43 30 Apr 1996 13:45:18 OS
+ veraenderter TransformDlg ab 315
+
+ Rev 1.42 07 Mar 1996 14:55:58 HJS
+ 2 defines zu viel
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/shells/drawsh.cxx b/sw/source/ui/shells/drawsh.cxx
new file mode 100644
index 000000000000..59ba1473e64d
--- /dev/null
+++ b/sw/source/ui/shells/drawsh.cxx
@@ -0,0 +1,640 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDOTEXT_HXX //autogen
+#include <svx/svdotext.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_FONTWORK_HXX //autogen
+#include <svx/fontwork.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFXITEMITER_HXX //autogen
+#include <svtools/itemiter.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_XFTSFIT_HXX //autogen
+#include <svx/xftsfit.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#include "swundo.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "helpid.h"
+#include "popup.hrc"
+#include "shells.hrc"
+#include "drwbassh.hxx"
+#include "drawsh.hxx"
+
+#define SwDrawShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+
+SFX_IMPL_INTERFACE(SwDrawShell, SwDrawBaseShell, SW_RES(STR_SHELLNAME_DRAW))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAW_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_DRAW_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_DRAW));
+ SFX_CHILDWINDOW_REGISTRATION(SvxFontWorkChildWindow::GetChildWindowId());
+}
+
+TYPEINIT1(SwDrawShell,SwDrawBaseShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDrawShell::Execute(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView *pSdrView = rSh.GetDrawView();
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ SfxBindings &rBnd = GetView().GetViewFrame()->GetBindings();
+ USHORT nSlotId = rReq.GetSlot();
+ BOOL bChanged = pSdrView->GetModel()->IsChanged();
+
+ pSdrView->GetModel()->SetChanged(FALSE);
+
+ const SfxPoolItem* pItem;
+ if(pArgs)
+ pArgs->GetItemState(nSlotId, FALSE, &pItem);
+
+ BOOL bMirror = TRUE, bTopParam = TRUE, bBottomParam = TRUE;
+
+ switch (nSlotId)
+ {
+ case SID_OBJECT_ROTATE:
+ if (rSh.IsObjSelected() && pSdrView->IsRotateAllowed())
+ {
+ if (GetView().IsDrawRotate())
+ rSh.SetDragMode(SDRDRAG_MOVE);
+ else
+ rSh.SetDragMode(SDRDRAG_ROTATE);
+
+ GetView().FlipDrawRotate();
+ }
+ break;
+
+ case SID_BEZIER_EDIT:
+ if (GetView().IsDrawRotate())
+ {
+ rSh.SetDragMode(SDRDRAG_MOVE);
+ GetView().FlipDrawRotate();
+ }
+ GetView().FlipDrawSelMode();
+ pSdrView->SetFrameDragSingles(GetView().IsDrawSelMode());
+ GetView().AttrChangedNotify(&rSh); // Shellwechsel...
+ break;
+
+ case SID_OBJECT_HELL:
+ if (rSh.IsObjSelected())
+ {
+ rSh.StartUndo( UNDO_START );
+ SetWrapMode(FN_FRAME_WRAPTHRU_TRANSP);
+ rSh.SelectionToHell();
+ rSh.EndUndo( UNDO_END );
+ rBnd.Invalidate(SID_OBJECT_HEAVEN);
+ }
+ break;
+
+ case SID_OBJECT_HEAVEN:
+ if (rSh.IsObjSelected())
+ {
+ rSh.StartUndo( UNDO_START );
+ SetWrapMode(FN_FRAME_WRAPTHRU);
+ rSh.SelectionToHeaven();
+ rSh.EndUndo( UNDO_END );
+ rBnd.Invalidate(SID_OBJECT_HELL);
+ }
+ break;
+
+ case FN_TOOL_HIERARCHIE:
+ if (rSh.IsObjSelected())
+ {
+ rSh.StartUndo( UNDO_START );
+ if (rSh.GetLayerId() == 0)
+ {
+ SetWrapMode(FN_FRAME_WRAPTHRU);
+ rSh.SelectionToHeaven();
+ }
+ else
+ {
+ SetWrapMode(FN_FRAME_WRAPTHRU_TRANSP);
+ rSh.SelectionToHell();
+ }
+ rSh.EndUndo( UNDO_END );
+ rBnd.Invalidate( SID_OBJECT_HELL, SID_OBJECT_HEAVEN, 0 );
+ }
+ break;
+
+ case FN_TOOL_VMIRROR:
+ bMirror = FALSE;
+ /* no break */
+ case FN_TOOL_HMIRROR:
+ rSh.MirrorSelection( bMirror );
+ break;
+
+ case SID_FONTWORK:
+ {
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if (pArgs)
+ {
+ pVFrame->SetChildWindow(SvxFontWorkChildWindow::GetChildWindowId(),
+ ((const SfxBoolItem&)(pArgs->Get(SID_FONTWORK))).GetValue());
+ }
+ else
+ pVFrame->ToggleChildWindow( SvxFontWorkChildWindow::GetChildWindowId() );
+ pVFrame->GetBindings().Invalidate(SID_FONTWORK);
+ }
+ break;
+
+ default:
+ DBG_ASSERT(!this, "falscher Dispatcher");
+ return;
+ }
+ if (pSdrView->GetModel()->IsChanged())
+ rSh.SetModified();
+ else if (bChanged)
+ pSdrView->GetModel()->SetChanged(TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawShell::GetState(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView* pSdrView = rSh.GetDrawViewWithValidMarkList();
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ BOOL bProtected = rSh.IsSelObjProtected(FLYPROTECT_CONTENT);
+
+ if (!bProtected) // Im Parent nachsehen
+ bProtected |= rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+
+ while( nWhich )
+ {
+ switch( nWhich )
+ {
+ case SID_OBJECT_HELL:
+ if ( !rSh.IsObjSelected() || rSh.GetLayerId() == 0 || bProtected )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case SID_OBJECT_HEAVEN:
+ if ( !rSh.IsObjSelected() || rSh.GetLayerId() == 1 || bProtected )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_TOOL_HIERARCHIE:
+ if ( !rSh.IsObjSelected() || bProtected )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case SID_OBJECT_ROTATE:
+ {
+ const BOOL bIsRotate = GetView().IsDrawRotate();
+ if ( !bIsRotate && !pSdrView->IsRotateAllowed() || bProtected )
+ rSet.DisableItem( nWhich );
+ else
+ rSet.Put( SfxBoolItem( nWhich, bIsRotate ) );
+ }
+ break;
+
+ case SID_BEZIER_EDIT:
+ if (!Disable(rSet, nWhich))
+ rSet.Put( SfxBoolItem( nWhich, !GetView().IsDrawSelMode()));
+ break;
+
+ case FN_TOOL_VMIRROR:
+ if ( !pSdrView->IsMirrorAllowed() || bProtected )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_TOOL_HMIRROR:
+ if ( !pSdrView->IsMirrorAllowed() || bProtected )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case SID_FONTWORK:
+ {
+ if (bProtected)
+ rSet.DisableItem( nWhich );
+ else
+ {
+ const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();
+ rSet.Put(SfxBoolItem( nWhich , GetView().GetViewFrame()->HasChildWindow(nId)));
+ }
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwDrawShell::SwDrawShell(SwView &rView) :
+ SwDrawBaseShell(rView)
+{
+ SetHelpId(SW_DRAWSHELL);
+ SetName(String::CreateFromAscii("Draw"));
+}
+
+/*************************************************************************
+|*
+|* SfxRequests fuer FontWork bearbeiten
+|*
+\************************************************************************/
+
+
+
+void SwDrawShell::ExecFormText(SfxRequest& rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView* pDrView = rSh.GetDrawView();
+ BOOL bChanged = pDrView->GetModel()->IsChanged();
+ pDrView->GetModel()->SetChanged(FALSE);
+
+ const SdrMarkList& rMarkList = pDrView->GetMarkList();
+
+ if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() )
+ {
+ const SfxItemSet& rSet = *rReq.GetArgs();
+ const SfxPoolItem* pItem;
+
+ if ( pDrView->IsTextEdit() )
+ {
+ pDrView->EndTextEdit( TRUE );
+ GetView().AttrChangedNotify(&rSh);
+ }
+
+ if ( rSet.GetItemState(XATTR_FORMTXTSTDFORM, TRUE, &pItem) ==
+ SFX_ITEM_SET &&
+ ((const XFormTextStdFormItem*) pItem)->GetValue() != XFTFORM_NONE )
+ {
+
+ const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();
+
+ SvxFontWorkDialog* pDlg = (SvxFontWorkDialog*)(GetView().GetViewFrame()->
+ GetChildWindow(nId)->GetWindow());
+
+ pDlg->CreateStdFormObj(*pDrView, *pDrView->GetPageViewPvNum(0),
+ rSet, *rMarkList.GetMark(0)->GetObj(),
+ ((const XFormTextStdFormItem*) pItem)->
+ GetValue());
+
+ }
+ else
+ pDrView->SetAttributes(rSet);
+ }
+ if (pDrView->GetModel()->IsChanged())
+ rSh.SetModified();
+ else
+ if (bChanged)
+ pDrView->GetModel()->SetChanged(TRUE);
+}
+
+/*************************************************************************
+|*
+|* Statuswerte fuer FontWork zurueckgeben
+|*
+\************************************************************************/
+
+
+
+void SwDrawShell::GetFormTextState(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView* pDrView = rSh.GetDrawView();
+ const SdrMarkList& rMarkList = pDrView->GetMarkList();
+ const SdrObject* pObj = NULL;
+ SvxFontWorkDialog* pDlg = NULL;
+
+ const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if ( pVFrame->HasChildWindow(nId) )
+ pDlg = (SvxFontWorkDialog*)(pVFrame->GetChildWindow(nId)->GetWindow());
+
+ if ( rMarkList.GetMarkCount() == 1 )
+ pObj = rMarkList.GetMark(0)->GetObj();
+
+ if ( pObj == NULL || !pObj->ISA(SdrTextObj) ||
+ !((SdrTextObj*) pObj)->HasText() )
+ {
+#define XATTR_ANZ 12
+ static const USHORT nXAttr[ XATTR_ANZ ] =
+ {
+ XATTR_FORMTXTSTYLE, XATTR_FORMTXTADJUST, XATTR_FORMTXTDISTANCE,
+ XATTR_FORMTXTSTART, XATTR_FORMTXTMIRROR, XATTR_FORMTXTSTDFORM,
+ XATTR_FORMTXTHIDEFORM, XATTR_FORMTXTOUTLINE, XATTR_FORMTXTSHADOW,
+ XATTR_FORMTXTSHDWCOLOR, XATTR_FORMTXTSHDWXVAL, XATTR_FORMTXTSHDWYVAL
+ };
+ for( USHORT i = 0; i < XATTR_ANZ; )
+ rSet.DisableItem( nXAttr[ i++ ] );
+ }
+ else
+ {
+ if ( pDlg )
+ pDlg->SetColorTable(OFF_APP()->GetStdColorTable());
+
+ pDrView->GetAttributes( rSet );
+ }
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.143 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.142 2000/09/08 08:12:51 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.141 2000/09/07 15:59:29 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.140 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.139 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.138 2000/04/18 14:58:23 os
+ UNICODE
+
+ Revision 1.137 1999/06/21 13:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+
+ Rev 1.136 21 Jun 1999 15:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+ Rev 1.135 12 Jan 1999 17:13:44 TJ
+ include
+
+ Rev 1.134 11 Jan 1999 12:41:48 MA
+ #60294# Undo-Klammerung vervollstaendigt
+
+ Rev 1.133 06 Oct 1998 12:44:58 JP
+ Bug #57153#: neu GetDrawViewWithValidMarkList
+
+ Rev 1.132 10 Jun 1998 11:23:18 OM
+ Hell/Heaven nicht in FormShell
+
+ Rev 1.131 15 Apr 1998 15:32:24 OM
+ #49467 Objekte innerhalb von geschuetzten Rahmen duerfen nicht veraendert werden
+
+ Rev 1.130 29 Nov 1997 15:52:14 MA
+ includes
+
+ Rev 1.129 24 Nov 1997 09:46:56 MA
+ includes
+
+ Rev 1.128 03 Nov 1997 13:55:44 MA
+ precomp entfernt
+
+ Rev 1.127 01 Sep 1997 13:23:04 OS
+ DLL-Umstellung
+
+ Rev 1.126 05 Aug 1997 16:21:54 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.125 05 Aug 1997 13:29:54 MH
+ chg: header
+
+ Rev 1.124 01 Aug 1997 11:47:18 MH
+ chg: header
+
+ Rev 1.123 18 Jun 1997 18:10:34 HJS
+ Typeinit wieder hinein
+
+ Rev 1.122 17 Jun 1997 16:15:18 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.121 13 May 1997 13:24:26 OM
+ Unnoetigen Include entfernt
+
+ Rev 1.120 07 Apr 1997 17:41:54 MH
+ chg: header
+
+ Rev 1.119 24 Feb 1997 16:53:08 OM
+ Silbentrennung in Draw-Objekten
+
+ Rev 1.118 22 Jan 1997 14:40:30 OM
+ unnoetige Includes entfernt
+
+ Rev 1.117 22 Jan 1997 11:20:50 OM
+ Neue Shells: DrawBaseShell und DrawControlShell
+
+ Rev 1.116 16 Jan 1997 16:46:46 OM
+ Editmode on/off nur im richtigen Mode
+
+ Rev 1.115 14 Jan 1997 15:37:58 OM
+ Beziermode korrigiert
+
+ Rev 1.114 13 Jan 1997 15:56:10 OM
+ Bezier-Punkte loeschen
+
+ Rev 1.113 13 Jan 1997 10:12:10 OM
+ Selektionsmode fuer Bezier-Objekte
+
+ Rev 1.112 09 Jan 1997 16:24:02 OM
+ Selektionsmode fuer Bezier-Objekte
+
+ Rev 1.111 08 Jan 1997 12:48:58 OM
+ Neue Segs
+
+ Rev 1.110 08 Jan 1997 12:47:22 OM
+ Aenderungen fuer Bezier-Shell
+
+ Rev 1.109 18 Dec 1996 15:47:28 OM
+ #34500# Keine Texteingabe im Drawmode
+
+ Rev 1.108 13 Dec 1996 12:19:10 OM
+ Bezier-Controller Status und Execute
+
+ Rev 1.107 11 Dec 1996 12:34:06 OM
+ Bezier-Controller
+
+ Rev 1.106 30 Nov 1996 14:06:16 OS
+ Ausrichtung ueber Menue: EnumItem auswerten
+
+ Rev 1.105 29 Nov 1996 17:02:48 OS
+ FN_TOOL_ANKER jetzt in der Baseshell
+
+ Rev 1.104 27 Nov 1996 16:15:18 OM
+ #33427# Zeichenobjekte: automatischer Layerwechsel je nach Umlaufart
+
+ Rev 1.103 26 Nov 1996 11:56:22 NF
+ defines entfernt...
+
+ Rev 1.102 25 Nov 1996 10:55:28 OS
+ Slotumrechnung fuer SID_OBJECT_ALIGN entfernt
+
+ Rev 1.101 18 Nov 1996 13:39:32 MA
+ chg: State fuer align
+
+ Rev 1.100 15 Nov 1996 19:38:56 MA
+ opt, include
+
+ Rev 1.99 11 Nov 1996 13:37:34 MA
+ ResMgr
+
+ Rev 1.97 08 Nov 1996 11:59:20 HJS
+ include w.g. positivdefine
+
+ Rev 1.96 07 Nov 1996 16:20:08 OS
+ Wrap- und Anker-Methoden an die BaseShell
+
+ Rev 1.95 17 Oct 1996 14:35:18 MH
+ add: include
+
+ Rev 1.94 01 Oct 1996 16:54:00 OM
+ Hyperlinks editieren
+
+ Rev 1.93 28 Aug 1996 15:54:54 OS
+ includes
+
+ Rev 1.92 23 Aug 1996 12:51:56 HJS
+ clooks
+
+ Rev 1.91 22 Aug 1996 16:37:44 NF
+ clooks
+
+ Rev 1.90 14 Aug 1996 19:33:06 JP
+ svdraw.hxx entfernt
+
+ Rev 1.89 13 Aug 1996 12:38:42 OS
+ neue Shellnamen im IDL-Interface
+
+ Rev 1.88 09 Aug 1996 15:15:04 OS
+ neu: ObjectName und Value an Controls
+
+ Rev 1.87 02 Aug 1996 10:39:36 MH
+ Wer zum Teufel braucht sfxexp.hxx an dieser Stelle ?
+ Win16 jedenfalls nicht
+
+ Rev 1.86 30 Jul 1996 16:43:02 OS
+ FN_TOOL_ANKER_PAGE wieder ohne Statusmethode
+
+ Rev 1.85 27 Jul 1996 14:58:42 OS
+ Aenderungen fuer den Html-Mode
+
+ Rev 1.84 24 Jul 1996 11:06:36 NF
+ defines in ifdef win geklammert...
+
+ Rev 1.83 24 Jul 1996 09:13:04 NF
+ defines entfernt ...
+
+ Rev 1.82 23 Jul 1996 14:33:28 NF
+ CLOOKS
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/shells/drformsh.cxx b/sw/source/ui/shells/drformsh.cxx
new file mode 100644
index 000000000000..eccfd0ef37ed
--- /dev/null
+++ b/sw/source/ui/shells/drformsh.cxx
@@ -0,0 +1,375 @@
+/*************************************************************************
+ *
+ * $RCSfile: drformsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <hintids.hxx>
+#ifndef _SVX_HLNKITEM_HXX //autogen
+#include <svx/hlnkitem.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_FMGLOB_HXX
+#include <svx/fmglob.hxx>
+#endif
+#ifndef _SVDOUNO_HXX //autogen
+#include <svx/svdouno.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FORM_FORMBUTTONTYPE_HPP_
+#include <com/sun/star/form/FormButtonType.hpp>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+
+#include "viewopt.hxx"
+#include "swmodule.hxx"
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "helpid.h"
+#include "popup.hrc"
+#include "shells.hrc"
+#include "drwbassh.hxx"
+#include "drformsh.hxx"
+#include "view.hxx"
+
+#define SwDrawFormShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+#define C2U(cChar) OUString::createFromAscii(cChar)
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+SFX_IMPL_INTERFACE(SwDrawFormShell, SwDrawBaseShell, SW_RES(STR_SHELLNAME_DRAWFORM))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAWFORM_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_DRAWFORM_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_DRAWFORM));
+}
+
+
+TYPEINIT1(SwDrawFormShell, SwDrawBaseShell)
+
+
+void SwDrawFormShell::Execute(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ const SfxPoolItem* pItem = 0;
+ const SfxItemSet *pArgs = rReq.GetArgs();
+
+ switch ( rReq.GetSlot() )
+ {
+ case SID_HYPERLINK_SETLINK:
+ {
+ if(pArgs)
+ pArgs->GetItemState(SID_HYPERLINK_SETLINK, sal_False, &pItem);
+ if(pItem)
+ {
+ SdrView *pSdrView = rSh.GetDrawView();
+ const SvxHyperlinkItem& rHLinkItem = *(const SvxHyperlinkItem *)pItem;
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if (rMarkList.GetMark(0))
+ {
+ SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, rMarkList.GetMark(0)->GetObj());
+ if (pUnoCtrl && FmFormInventor == pUnoCtrl->GetObjInventor())
+ {
+ uno::Reference< awt::XControlModel > xControlModel = pUnoCtrl->GetUnoControlModel();
+
+ ASSERT( xControlModel.is(), "UNO-Control ohne Model" );
+ if( !xControlModel.is() )
+ return;
+
+ uno::Reference< beans::XPropertySet > xPropSet(xControlModel, uno::UNO_QUERY);
+
+ uno::Any aTmp;
+
+ // Darf man eine URL an dem Objekt setzen?
+ uno::Reference< beans::XPropertySetInfo > xPropInfoSet = xPropSet->getPropertySetInfo();
+ beans::Property aProp = xPropInfoSet->getPropertyByName( C2U("TargetURL" ));
+ if (aProp.Name.getLength())
+ {
+ // Ja!
+ aTmp <<= OUString(rHLinkItem.GetName());
+ xPropSet->setPropertyValue(C2U("Label"), aTmp );
+
+ aTmp <<= OUString(INetURLObject::RelToAbs(rHLinkItem.GetURL()));
+ xPropSet->setPropertyValue( C2U("TargetURL"), aTmp );
+
+ if( rHLinkItem.GetTargetFrame().Len() )
+ {
+ aTmp <<= OUString(rHLinkItem.GetTargetFrame());
+ xPropSet->setPropertyValue( C2U("TargetFrame"), aTmp );
+ }
+
+
+ form::FormButtonType eButtonType = form::FormButtonType_URL;
+ aTmp.setValue( &eButtonType, ::getCppuType((const form::FormButtonType*)0));
+ xPropSet->setPropertyValue( C2U("ButtonType"), aTmp );
+ }
+ }
+ }
+ }
+ }
+ break;
+
+ default:
+ DBG_ASSERT(!this, "falscher Dispatcher");
+ return;
+ }
+}
+
+void SwDrawFormShell::GetState(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SfxWhichIter aIter( rSet );
+ sal_uInt16 nWhich = aIter.FirstWhich();
+
+ while( nWhich )
+ {
+ switch( nWhich )
+ {
+ case SID_HYPERLINK_GETLINK:
+ {
+ SdrView* pSdrView = rSh.GetDrawViewWithValidMarkList();
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ SvxHyperlinkItem aHLinkItem;
+ if (rMarkList.GetMark(0))
+ {
+ SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, rMarkList.GetMark(0)->GetObj());
+ if (pUnoCtrl && FmFormInventor == pUnoCtrl->GetObjInventor())
+ {
+ uno::Reference< awt::XControlModel > xControlModel = pUnoCtrl->GetUnoControlModel();
+
+ ASSERT( xControlModel.is(), "UNO-Control ohne Model" );
+ if( !xControlModel.is() )
+ return;
+
+ uno::Reference< beans::XPropertySet > xPropSet(xControlModel, uno::UNO_QUERY);
+
+ uno::Any aTmp;
+ uno::Reference< beans::XPropertySetInfo > xInfo = xPropSet->getPropertySetInfo();
+ if(xInfo->hasPropertyByName(C2U("ButtonType" )))
+ {
+ form::FormButtonType eButtonType = form::FormButtonType_URL;
+ aTmp = xPropSet->getPropertyValue( C2U("ButtonType") );
+ if( aTmp.getValueType() == ::getCppuType((form::FormButtonType*)0)
+ && eButtonType == *( form::FormButtonType*)aTmp.getValue())
+ {
+ // Label
+ if(xInfo->hasPropertyByName( C2U("Label") ))
+ {
+ aTmp = xPropSet->getPropertyValue( C2U("Label") );
+ if( aTmp.getValueType() == ::getCppuType((const OUString*)0) )
+ {
+ OUString sTmp = *(OUString*)aTmp.getValue();
+ if(sTmp.getLength())
+ aHLinkItem.SetName(sTmp);
+ }
+ }
+
+ // URL
+ if(xInfo->hasPropertyByName( C2U("TargetURL" )))
+ {
+ aTmp = xPropSet->getPropertyValue( C2U("TargetURL") );
+ if( aTmp.getValueType() == ::getCppuType((const OUString*)0))
+ {
+ OUString sTmp = *(OUString*)aTmp.getValue();
+ if(sTmp.getLength())
+ aHLinkItem.SetURL(sTmp);
+ }
+ }
+
+ // Target
+ if(xInfo->hasPropertyByName( C2U("TargetFrame") ))
+ {
+ aTmp = xPropSet->getPropertyValue( C2U("TargetFrame") );
+ if( aTmp.getValueType() == ::getCppuType((const OUString*)0))
+ {
+ OUString sTmp = *(OUString*) aTmp.getValue();
+ if(sTmp.getLength())
+ aHLinkItem.SetTargetFrame(sTmp);
+ }
+ }
+ aHLinkItem.SetInsertMode(HLINK_BUTTON);
+ }
+ }
+ }
+ }
+ sal_uInt16 nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ aHLinkItem.SetInsertMode((SvxLinkInsertMode)(aHLinkItem.GetInsertMode() |
+ ((nHtmlMode & HTMLMODE_ON) != 0 ? HLINK_HTMLMODE : 0)));
+
+ rSet.Put(aHLinkItem);
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+SwDrawFormShell::SwDrawFormShell(SwView &rView) :
+ SwDrawBaseShell(rView)
+{
+ SetHelpId(SW_DRAWFORMSHELL);
+ GetShell().NoEdit(sal_True);
+ SetName(String::CreateFromAscii("DrawForm"));
+}
+
+SwDrawFormShell::~SwDrawFormShell()
+{
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.19 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.18 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.17 2000/05/16 09:15:13 os
+ project usr removed
+
+ Revision 1.16 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.15 2000/04/18 14:58:23 os
+ UNICODE
+
+ Revision 1.14 2000/03/23 07:49:14 os
+ UNO III
+
+ Revision 1.13 2000/02/11 14:57:20 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.12 1999/11/19 16:40:24 os
+ modules renamed
+
+ Revision 1.11 1999/09/24 14:38:32 os
+ hlnkitem.hxx now in SVX
+
+ Revision 1.10 1999/03/29 08:31:06 OS
+ #64017# vor getPropertyValue immer hasPropertyByName rufen
+
+
+ Rev 1.9 29 Mar 1999 10:31:06 OS
+ #64017# vor getPropertyValue immer hasPropertyByName rufen
+
+ Rev 1.8 26 Jan 1999 14:48:26 OS
+ #56371# TF_ONE51
+
+ Rev 1.7 26 Nov 1998 15:19:44 MA
+ #59896# Raster usw jetzt an der Application
+
+ Rev 1.6 02 Nov 1998 09:22:10 MA
+ #58294# Slots fuer Raster
+
+ Rev 1.5 07 Oct 1998 10:58:48 JP
+ Bug #57153#: in allen GetStates einer DrawShell die MarkListe aktualisieren
+
+ Rev 1.4 07 Jul 1998 14:03:54 OM
+ #51853# URL-Button wiederbelebt
+
+ Rev 1.3 06 Jul 1998 14:18:44 OM
+ #51853# URL-Button einfuegen
+
+ Rev 1.2 19 May 1998 12:45:50 OM
+ SvxMacro-Umstellung
+
+ Rev 1.1 08 Apr 1998 13:46:58 OM
+ #42505 Keine URL-Buttons in Html-Dokumenten
+
+ Rev 1.0 11 Mar 1998 17:06:02 OM
+ Initial revision.
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/shells/drwbassh.cxx b/sw/source/ui/shells/drwbassh.cxx
new file mode 100644
index 000000000000..e4acb4d9565c
--- /dev/null
+++ b/sw/source/ui/shells/drwbassh.cxx
@@ -0,0 +1,762 @@
+/*************************************************************************
+ *
+ * $RCSfile: drwbassh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _AEITEM_HXX //autogen
+#include <svtools/aeitem.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SVX_TRANSFRM_HXX //autogen
+#include <svx/transfrm.hxx>
+#endif
+#ifndef _SVX_LABDLG_HXX //autogen
+#include <svx/labdlg.hxx>
+#endif
+#ifndef _SVX_ANCHORID_HXX //autogen
+#include <svx/anchorid.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#ifndef _FMTORNT_HXX
+#include <fmtornt.hxx>
+#endif
+#include "cmdid.h"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "viewopt.hxx"
+#include "dcontact.hxx"
+#include "frmfmt.hxx"
+#include "wrap.hxx"
+#include "drawbase.hxx"
+#include "drwbassh.hxx"
+
+#define SwDrawBaseShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwDrawBaseShell, SwBaseShell, SW_RES(0))
+{
+}
+
+TYPEINIT1(SwDrawBaseShell,SwBaseShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwDrawBaseShell::SwDrawBaseShell(SwView &rView):
+ SwBaseShell( rView )
+{
+ GetShell().NoEdit(TRUE);
+
+ SwEditWin& rWin = GetView().GetEditWin();
+
+ rWin.SetBezierMode(SID_BEZIER_MOVE);
+
+ if ( !rView.GetDrawFuncPtr() )
+ rView.GetEditWin().StdDrawMode(SID_OBJECT_SELECT);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+__EXPORT SwDrawBaseShell::~SwDrawBaseShell()
+{
+ GetView().ExitDraw();
+ GetShell().Edit();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDrawBaseShell::Execute(SfxRequest &rReq)
+{
+ SwWrtShell *pSh = &GetShell();
+ SdrView* pSdrView = pSh->GetDrawView();
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ USHORT nSlotId = rReq.GetSlot();
+ BOOL bChanged = pSdrView->GetModel()->IsChanged();
+ pSdrView->GetModel()->SetChanged(FALSE);
+ const SfxPoolItem* pItem = 0;
+ if(pArgs)
+ pArgs->GetItemState(nSlotId, FALSE, &pItem);
+
+ //Sonderfall Align per Menue
+ if(pItem && nSlotId == SID_OBJECT_ALIGN)
+ {
+ DBG_ASSERT(PTR_CAST(SfxEnumItem, pItem),"SfxEnumItem erwartet")
+ nSlotId += ((const SfxEnumItem*)pItem)->GetValue();
+ nSlotId++;
+ }
+
+ BOOL bAlignPossible = pSh->IsAlignPossible();
+
+ BOOL bTopParam = TRUE, bBottomParam = TRUE;
+ BOOL bNotify = FALSE;
+ BOOL bDone = FALSE;
+ SfxBindings& rBind = GetView().GetViewFrame()->GetBindings();
+
+ switch (nSlotId)
+ {
+ case FN_DRAW_WRAP_DLG:
+ {
+ if(pSdrView->HasMarkedObj())
+ {
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ if(!pArgs)
+ {
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if( rMarkList.GetMark(0) != 0 )
+ {
+ SfxItemSet aSet(GetPool(), RES_SURROUND, RES_SURROUND,
+ RES_ANCHOR, RES_ANCHOR,
+ RES_LR_SPACE, RES_UL_SPACE,
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_DRAW_WRAP_DLG, FN_DRAW_WRAP_DLG,
+ 0);
+
+ const SwViewOption* pVOpt = pSh->GetViewOptions();
+ aSet.Put(SfxBoolItem(SID_HTML_MODE,
+ 0 != ::GetHtmlMode(pSh->GetView().GetDocShell())));
+
+ aSet.Put(SfxInt16Item(FN_DRAW_WRAP_DLG, pSh->GetLayerId()));
+
+ pSh->GetObjAttr(aSet);
+ SwWrapDlg aDlg(GetView().GetWindow(), aSet, pSh, TRUE);
+
+ if (aDlg.Execute() == RET_OK)
+ {
+ const SfxPoolItem* pItem;
+ const SfxItemSet* pOutSet = aDlg.GetOutputItemSet();
+ if(SFX_ITEM_SET == pOutSet->GetItemState(FN_DRAW_WRAP_DLG, FALSE, &pItem))
+ {
+ short nLayer = ((const SfxInt16Item*)pItem)->GetValue();
+ if (nLayer == 1)
+ pSh->SelectionToHeaven();
+ else
+ pSh->SelectionToHell();
+ }
+
+ pSh->SetObjAttr(*pOutSet);
+ }
+ }
+ }
+ }
+ }
+ break;
+
+ case SID_ATTR_TRANSFORM:
+ {
+ if(pSdrView->HasMarkedObj())
+ {
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ if(!pArgs)
+ {
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if( rMarkList.GetMark(0) != 0 )
+ {
+ SdrObject* pObj = rMarkList.GetMark(0)->GetObj();
+ SfxTabDialog *pDlg;
+ BOOL bCaption = FALSE;
+
+ // Erlaubte Verankerungen:
+ USHORT nAnchor = pSh->GetAnchorId();
+ USHORT nAllowedAnchors = SVX_OBJ_AT_CNTNT|SVX_OBJ_IN_CNTNT;
+ USHORT nHtmlMode = ::GetHtmlMode(pSh->GetView().GetDocShell());
+ if( !((HTMLMODE_ON & nHtmlMode) && (0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS))) )
+ nAllowedAnchors |= SVX_OBJ_PAGE;
+ if ( pSh->IsFlyInFly() )
+ nAllowedAnchors |= SVX_OBJ_AT_FLY;
+
+ if (pObj->GetObjIdentifier() == OBJ_CAPTION )
+ bCaption = TRUE;
+
+ if (bCaption)
+ pDlg = new SvxCaptionTabDialog(NULL, pSdrView, nAllowedAnchors);
+ else
+ pDlg = new SvxTransformTabDialog(NULL, NULL, pSdrView, nAllowedAnchors);
+
+ SfxItemSet aNewAttr(pSdrView->GetGeoAttrFromMarked());
+
+ const USHORT* pRange = pDlg->GetInputRanges( *aNewAttr.GetPool() );
+ SfxItemSet aSet( *aNewAttr.GetPool(), pRange );
+ aSet.Put( aNewAttr, FALSE );
+
+ if (bCaption)
+ pSdrView->GetAttributes( aSet );
+
+ aSet.Put(SfxUInt16Item(SID_ATTR_TRANSFORM_ANCHOR, nAnchor));
+
+ SwFrmFmt* pFrmFmt = FindFrmFmt( pObj );
+ SwFmtVertOrient aVOrient((SwFmtVertOrient&)pFrmFmt->GetAttr(RES_VERT_ORIENT));
+ USHORT nOrient = aVOrient.GetVertOrient();
+ aSet.Put(SfxUInt16Item(SID_ATTR_TRANSFORM_VERT_ORIENT, nOrient));
+
+ pDlg->SetInputSet( &aSet );
+
+ if (pDlg->Execute() == RET_OK)
+ {
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ pSh->StartAllAction();
+ pSdrView->SetGeoAttrToMarked(*pOutSet);
+
+ if (bCaption)
+ pSdrView->SetAttributes(*pOutSet);
+
+ BOOL bPosCorr =
+ SFX_ITEM_SET != pOutSet->GetItemState(
+ SID_ATTR_TRANSFORM_POS_X, FALSE ) &&
+ SFX_ITEM_SET != pOutSet->GetItemState(
+ SID_ATTR_TRANSFORM_POS_Y, FALSE );
+
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == pOutSet->GetItemState(
+ SID_ATTR_TRANSFORM_ANCHOR, FALSE, &pItem))
+ pSh->ChgAnchor(((const SfxUInt16Item*)pItem)
+ ->GetValue(), FALSE, bPosCorr );
+
+ if( SFX_ITEM_SET == pOutSet->GetItemState(
+ SID_ATTR_TRANSFORM_VERT_ORIENT, FALSE, &pItem))
+ {
+ aVOrient.SetVertOrient( (SwVertOrient)
+ ((const SfxUInt16Item*)pItem)->GetValue());
+ pFrmFmt->SetAttr( aVOrient );
+ }
+
+ rBind.InvalidateAll(FALSE);
+ pSh->EndAllAction();
+ }
+ delete pDlg;
+ }
+ }
+ }
+ }
+ break;
+
+ case SID_DELETE:
+ case FN_BACKSPACE:
+ if (pSh->IsObjSelected() && !pSdrView->IsTextEdit())
+ {
+ bDone = TRUE;
+
+ if( GetView().IsDrawRotate() )
+ {
+ pSh->SetDragMode( SDRDRAG_MOVE );
+ GetView().FlipDrawRotate();
+ }
+
+ pSh->SetModified();
+ pSh->DelSelectedObj();
+
+ if (rReq.IsAPI())
+ {
+ // Wenn Basic-Aufruf, dann zurck in die Textshell, da das
+ // Basic sonst keine Rckkehrm”glichkeit hat.
+ if (GetView().GetDrawFuncPtr())
+ {
+ GetView().GetDrawFuncPtr()->Deactivate();
+ GetView().SetDrawFuncPtr(NULL);
+ }
+ GetView().LeaveDrawCreate(); // In Selektionsmode wechseln
+ }
+
+ if (pSh->IsSelFrmMode())
+ {
+ pSh->LeaveSelFrmMode();
+ pSh->NoEdit();
+ }
+ bNotify = TRUE;
+ }
+ break;
+
+ case SID_GROUP:
+ if (pSh->IsObjSelected() > 1 && pSh->IsGroupAllowed())
+ {
+ pSh->GroupSelection(); // Objekt gruppieren
+ rBind.Invalidate(SID_UNGROUP);
+ }
+ break;
+
+ case SID_UNGROUP:
+ if (pSh->IsGroupSelected())
+ {
+ pSh->UnGroupSelection(); // Objektgruppierung aufheben
+ rBind.Invalidate(SID_GROUP);
+ }
+ break;
+
+ case SID_ENTER_GROUP:
+ if (pSh->IsGroupSelected())
+ {
+ pSdrView->EnterMarkedGroup();
+ rBind.InvalidateAll(FALSE);
+ }
+ break;
+
+ case SID_LEAVE_GROUP:
+ if (pSdrView->IsGroupEntered())
+ {
+ pSdrView->LeaveOneGroup();
+ rBind.Invalidate(SID_ENTER_GROUP);
+ rBind.Invalidate(SID_UNGROUP);
+ }
+ break;
+
+ case SID_OBJECT_ALIGN_LEFT:
+ case SID_OBJECT_ALIGN_CENTER:
+ case SID_OBJECT_ALIGN_RIGHT:
+ case SID_OBJECT_ALIGN_UP:
+ case SID_OBJECT_ALIGN_MIDDLE:
+ case SID_OBJECT_ALIGN_DOWN:
+ {
+ if ( bAlignPossible )
+ {
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if( rMarkList.GetMarkCount() == 1 && bAlignPossible )
+ { // Objekte nicht aneinander ausrichten
+
+ USHORT nAnchor = pSh->GetAnchorId();
+ if (nAnchor == FLY_IN_CNTNT)
+ {
+ int nVertOrient = -1;
+
+ switch (nSlotId)
+ {
+ case SID_OBJECT_ALIGN_UP:
+ nVertOrient = SVX_VERT_TOP;
+ break;
+ case SID_OBJECT_ALIGN_MIDDLE:
+ nVertOrient = SVX_VERT_CENTER;
+ break;
+ case SID_OBJECT_ALIGN_DOWN:
+ nVertOrient = SVX_VERT_BOTTOM;
+ break;
+ default:
+ break;
+ }
+ if (nVertOrient != -1)
+ {
+ pSh->StartAction();
+ SdrObject* pObj = rMarkList.GetMark(0)->GetObj();
+ SwFrmFmt* pFrmFmt = FindFrmFmt( pObj );
+ SwFmtVertOrient aVOrient((SwFmtVertOrient&)pFrmFmt->GetAttr(RES_VERT_ORIENT));
+ aVOrient.SetVertOrient((SwVertOrient)nVertOrient);
+ pFrmFmt->SetAttr(aVOrient);
+ pSh->EndAction();
+ }
+ break;
+ }
+ if (nAnchor == FLY_AT_CNTNT)
+ break; // Absatzverankerte Rahmen nicht ausrichten
+ }
+
+ pSh->StartAction();
+ switch (nSlotId)
+ {
+ case SID_OBJECT_ALIGN_LEFT:
+ pSdrView->AlignMarkedObjects(SDRHALIGN_LEFT, SDRVALIGN_NONE);
+ break;
+ case SID_OBJECT_ALIGN_CENTER:
+ pSdrView->AlignMarkedObjects(SDRHALIGN_CENTER, SDRVALIGN_NONE);
+ break;
+ case SID_OBJECT_ALIGN_RIGHT:
+ pSdrView->AlignMarkedObjects(SDRHALIGN_RIGHT, SDRVALIGN_NONE);
+ break;
+ case SID_OBJECT_ALIGN_UP:
+ pSdrView->AlignMarkedObjects(SDRHALIGN_NONE, SDRVALIGN_TOP);
+ break;
+ case SID_OBJECT_ALIGN_MIDDLE:
+ pSdrView->AlignMarkedObjects(SDRHALIGN_NONE, SDRVALIGN_CENTER);
+ break;
+ case SID_OBJECT_ALIGN_DOWN:
+ pSdrView->AlignMarkedObjects(SDRHALIGN_NONE, SDRVALIGN_BOTTOM);
+ break;
+ }
+ pSh->EndAction();
+ }
+ }
+ break;
+
+ case FN_FRAME_UP:
+ bTopParam = FALSE;
+ /* no break */
+ case SID_FRAME_TO_TOP:
+ pSh->SelectionToTop( bTopParam );
+ break;
+
+ case FN_FRAME_DOWN:
+ bBottomParam = FALSE;
+ /* no break */
+ case SID_FRAME_TO_BOTTOM:
+ pSh->SelectionToBottom( bBottomParam );
+ break;
+
+ default:
+ DBG_ASSERT(!this, "falscher Dispatcher");
+ return;
+ }
+ if(!bDone)
+ {
+ if(nSlotId >= SID_OBJECT_ALIGN_LEFT && nSlotId <= SID_OBJECT_ALIGN_DOWN)
+ rBind.Invalidate(SID_ATTR_LONG_LRSPACE);
+ if (pSdrView->GetModel()->IsChanged())
+ pSh->SetModified();
+ else if (bChanged)
+ pSdrView->GetModel()->SetChanged(TRUE);
+ // 40220: Nach dem Loeschen von DrawObjekten ueber die API GPF durch Selbstzerstoerung
+ if(bNotify)
+ GetView().AttrChangedNotify(pSh); // ggf Shellwechsel...
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwDrawBaseShell::GetState(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView* pSdrView = rSh.GetDrawViewWithValidMarkList();
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ BOOL bProtected = rSh.IsSelObjProtected(FLYPROTECT_CONTENT);
+
+ if (!bProtected) // Im Parent nachsehen
+ bProtected |= rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+
+ while( nWhich )
+ {
+ switch( nWhich )
+ {
+ case FN_DRAW_WRAP_DLG:
+ case SID_ATTR_TRANSFORM:
+ case SID_FRAME_TO_TOP:
+ case SID_FRAME_TO_BOTTOM:
+ case FN_FRAME_UP:
+ case FN_FRAME_DOWN:
+ case SID_DELETE:
+ case FN_BACKSPACE:
+ if (bProtected)
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_GROUP:
+ if ( rSh.IsObjSelected() < 2 || bProtected || !rSh.IsGroupAllowed() )
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_UNGROUP:
+ if ( !rSh.IsGroupSelected() || bProtected )
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_ENTER_GROUP:
+ if ( !rSh.IsGroupSelected() )
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_LEAVE_GROUP:
+ if ( !pSdrView->IsGroupEntered() )
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_OBJECT_ALIGN_LEFT:
+ case SID_OBJECT_ALIGN_CENTER:
+ case SID_OBJECT_ALIGN_RIGHT:
+ case SID_OBJECT_ALIGN_UP:
+ case SID_OBJECT_ALIGN_MIDDLE:
+ case SID_OBJECT_ALIGN_DOWN:
+ case SID_OBJECT_ALIGN:
+ if ( !rSh.IsAlignPossible() || bProtected )
+ rSet.DisableItem( nWhich );
+ else
+ {
+ rSet.Put(SfxAllEnumItem(nWhich, USHRT_MAX));
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+BOOL SwDrawBaseShell::Disable(SfxItemSet& rSet, USHORT nWhich)
+{
+ BOOL bDisable = GetShell().IsSelObjProtected(FLYPROTECT_CONTENT);
+
+ if (bDisable)
+ {
+ if (nWhich)
+ rSet.DisableItem( nWhich );
+ else
+ {
+ SfxWhichIter aIter( rSet );
+ nWhich = aIter.FirstWhich();
+ while (nWhich)
+ {
+ rSet.DisableItem( nWhich );
+ nWhich = aIter.NextWhich();
+ }
+ }
+ }
+
+ return bDisable;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.49 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.48 2000/09/07 15:59:29 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.47 2000/08/10 16:34:18 jp
+ Bug #77310#: don't call a method with a zero pointer
+
+ Revision 1.46 2000/05/29 16:40:53 jp
+ Bug #69159#: delete selection reset the rotate mode
+
+ Revision 1.45 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.44 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.43 2000/02/11 14:57:25 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.42 1999/06/21 13:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+
+ Rev 1.41 21 Jun 1999 15:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+ Rev 1.40 07 Oct 1998 10:58:48 JP
+ Bug #57153#: in allen GetStates einer DrawShell die MarkListe aktualisieren
+
+ Rev 1.39 06 Jul 1998 18:10:14 OM
+ Images zum gruppieren
+
+ Rev 1.38 06 Jul 1998 16:09:54 OM
+ #52065# Gruppe verlassen bei Beendigung der DrawShell
+
+ Rev 1.37 03 Jul 1998 16:28:48 OM
+ #51420# Nur erlaubte Verankerungsarten im PositionsDialog
+
+ Rev 1.36 01 Jul 1998 12:13:44 OM
+ #51323# Zeichengebundene Objekte nicht gruppieren
+
+ Rev 1.35 16 Jun 1998 13:03:32 OM
+ Gruppenobjekte per Ctrl selektieren
+
+ Rev 1.34 12 Jun 1998 16:08:56 OM
+ Gruppierung betreten/verlassen
+
+ Rev 1.33 12 Jun 1998 13:34:02 OM
+ Wieder SID_OBJECT_SELECT statt SID_DRAW_SELECT
+
+ Rev 1.32 11 Jun 1998 16:13:14 OM
+ Gruppierungsmenue
+
+ Rev 1.31 10 Jun 1998 11:23:18 OM
+ Hell/Heaven nicht in FormShell
+
+ Rev 1.30 09 Jun 1998 15:36:00 OM
+ VC-Controls entfernt
+
+ Rev 1.29 22 May 1998 15:19:06 OS
+ wird ein DrawObject geloescht, darf nicht mehr auf this zugegriffen werden
+
+ Rev 1.28 15 May 1998 16:22:02 OM
+ #49467# Geschtzte Rahmen nicht bearbeiten
+
+ Rev 1.27 15 Apr 1998 15:32:24 OM
+ #49467 Objekte innerhalb von geschuetzten Rahmen duerfen nicht veraendert werden
+
+ Rev 1.26 29 Nov 1997 15:51:24 MA
+ includes
+
+ Rev 1.25 24 Nov 1997 09:46:58 MA
+ includes
+
+ Rev 1.24 20 Oct 1997 12:45:06 OM
+ Kein Legenden-Dialog bei URL-Buttons
+
+ Rev 1.23 20 Oct 1997 12:15:18 OM
+ #44751# Umankern auch bei Legendenobjekten
+
+ Rev 1.22 15 Oct 1997 13:00:06 AMA
+ Fix #44651#: Umankern mit gleichzeitiger Positionsaenderung
+
+ Rev 1.21 05 Sep 1997 12:04:22 MH
+ chg: header
+
+ Rev 1.20 02 Sep 1997 13:23:16 OS
+ includes
+
+ Rev 1.19 16 Aug 1997 12:59:54 OS
+ include
+
+ Rev 1.18 05 Aug 1997 16:23:12 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.17 01 Aug 1997 11:47:18 MH
+ chg: header
+
+ Rev 1.16 10 Jul 1997 17:27:44 MA
+ #41589# nicht die dontcare verlieren, damit auch GPF umpopeln
+
+ Rev 1.15 08 Jul 1997 12:16:26 OM
+ Draw-Selektionsmodi aufgeraeumt
+
+ Rev 1.14 08 Jul 1997 12:07:10 OM
+ Draw-Selektionsmodi aufgeraeumt
+
+ Rev 1.13 25 Jun 1997 13:34:18 OM
+ #40966# DrawBaseShell-Ptr wieder eingefuehrt
+
+ Rev 1.12 25 Jun 1997 09:10:18 MA
+ #40965#, SubShell abmelden
+
+ Rev 1.11 17 Jun 1997 15:52:52 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.10 16 Jun 1997 15:31:56 OM
+ GPF behoben: Backspace wie Delete behandeln
+
+ Rev 1.9 27 May 1997 16:39:24 OM
+ Zeichengebundene Zeichenobjekte korrekt ausrichten
+
+ Rev 1.8 27 May 1997 12:52:46 OS
+ AttrChangedNotify erst am Ende des ::Execute rufen #40220#
+
+ Rev 1.7 30 Apr 1997 11:34:50 MA
+ #39469# erstmal GPF umpopelt
+
+ Rev 1.6 07 Apr 1997 17:43:34 MH
+ chg: header
+
+ Rev 1.5 02 Apr 1997 21:42:20 MH
+ chg: header SfxDialoge
+
+ Rev 1.4 19 Mar 1997 11:54:26 OM
+ #37302# Shellwechsel nach Basic-Delete ausloesen
+
+ Rev 1.3 27 Jan 1997 16:31:04 OS
+ HtmlMode entfernt
+
+ Rev 1.2 23 Jan 1997 10:45:52 OM
+ Neue Shells: Control- und DrawBaseShell
+
+ Rev 1.1 22 Jan 1997 14:40:32 OM
+ unnoetige Includes entfernt
+
+ Rev 1.0 22 Jan 1997 11:23:24 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx
new file mode 100644
index 000000000000..d1c8a3b76111
--- /dev/null
+++ b/sw/source/ui/shells/drwtxtex.cxx
@@ -0,0 +1,1021 @@
+/*************************************************************************
+ *
+ * $RCSfile: drwtxtex.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVX_SPLTITEM_HXX //autogen
+#include <svx/spltitem.hxx>
+#endif
+#ifndef _SVX_ORPHITEM_HXX //autogen
+#include <svx/orphitem.hxx>
+#endif
+#ifndef _SVX_BRKITEM_HXX //autogen
+#include <svx/brkitem.hxx>
+#endif
+#ifndef _SVX_WIDWITEM_HXX //autogen
+#include <svx/widwitem.hxx>
+#endif
+#ifndef _SVX_BRKITEM_HXX //autogen
+#include <svx/brkitem.hxx>
+#endif
+#ifndef _SVX_KERNITEM_HXX //autogen
+#include <svx/kernitem.hxx>
+#endif
+#ifndef _SVX_ESCPITEM_HXX //autogen
+#include <svx/escpitem.hxx>
+#endif
+#ifndef _SVX_PARAITEM_HXX //autogen
+#include <svx/lspcitem.hxx>
+#endif
+#ifndef _SVX_ADJITEM_HXX //autogen
+#include <svx/adjitem.hxx>
+#endif
+#ifndef _SVX_CRSDITEM_HXX //autogen
+#include <svx/crsditem.hxx>
+#endif
+#ifndef _SVX_SHDDITEM_HXX //autogen
+#include <svx/shdditem.hxx>
+#endif
+#ifndef _SVX_HYZNITEM_HXX //autogen
+#include <svx/hyznitem.hxx>
+#endif
+#ifndef _SVX_UDLNITEM_HXX //autogen
+#include <svx/udlnitem.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_FHGTITEM_HXX //autogen
+#include <svx/fhgtitem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_WGHTITEM_HXX //autogen
+#include <svx/wghtitem.hxx>
+#endif
+#ifndef _SVX_CNTRITEM_HXX //autogen
+#include <svx/cntritem.hxx>
+#endif
+#ifndef _SVX_POSTITEM_HXX //autogen
+#include <svx/postitem.hxx>
+#endif
+#ifndef _SVDOUTL_HXX
+#include <svx/svdoutl.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_FLDITEM_HXX
+# ifndef ITEMID_FIELD
+# ifndef _MyEDITDATA_HXX //autogen
+# include <svx/editdata.hxx> // das include wird wg. EE_FEATURE_FIELD benoetigt
+# endif
+# define ITEMID_FIELD EE_FEATURE_FIELD /* wird fuer #include <flditem.hxx> benoetigt */
+# endif
+# ifndef _SVX_FLDITEM_HXX //autogen
+# include <svx/flditem.hxx>
+# endif
+#endif
+#ifndef _EDITSTAT_HXX //autogen
+#include <svx/editstat.hxx>
+#endif
+#ifndef _OUTLINER_HXX //autogen
+#include <svx/outliner.hxx>
+#endif
+#ifndef _SVX_HLNKITEM_HXX //autogen
+#include <svx/hlnkitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+
+#include "doc.hxx"
+
+#ifndef _COM_SUN_STAR_LINGUISTIC_XTHESAURUS_HPP_
+#include <com/sun/star/linguistic/XThesaurus.hpp>
+#endif
+
+#include "wview.hxx"
+#include "viewopt.hxx"
+#include "wrtsh.hxx"
+#include "uiparam.hxx"
+#include "uitool.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "shells.hrc"
+#include "chrdlg.hxx"
+#include "pardlg.hxx"
+#include "dataex.hxx"
+#include "drwtxtsh.hxx"
+#include "swmodule.hxx"
+#include "initui.hxx" // fuer SpellPointer
+
+using namespace ::com::sun::star;
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::Execute(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+
+ SfxItemSet aEditAttr(pOLV->GetAttribs());
+ SfxItemSet aNewAttr(*(aEditAttr.GetPool()), aEditAttr.GetRanges());
+
+ sal_uInt16 nSlot = rReq.GetSlot();
+ sal_uInt16 nWhich = GetPool().GetWhich(nSlot);
+ const SfxItemSet *pNewAttrs = rReq.GetArgs();
+
+ switch (nSlot)
+ {
+ case SID_ATTR_CHAR_FONT:
+ case SID_ATTR_CHAR_FONTHEIGHT:
+ case SID_ATTR_CHAR_COLOR:
+ {
+ if (!pNewAttrs)
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute(SID_CHAR_DLG, sal_False);
+ else
+ {
+ switch (nSlot)
+ {
+ case SID_ATTR_CHAR_FONT:
+ aNewAttr.Put(((const SvxFontItem&)pNewAttrs->Get(nWhich)), EE_CHAR_FONTINFO);
+ break;
+ case SID_ATTR_CHAR_FONTHEIGHT:
+ aNewAttr.Put(((const SvxFontHeightItem&)pNewAttrs->Get(nWhich)), EE_CHAR_FONTHEIGHT);
+ break;
+ case SID_ATTR_CHAR_COLOR:
+ aNewAttr.Put(((const SvxColorItem&)pNewAttrs->Get(nWhich)), EE_CHAR_COLOR);
+ break;
+ }
+ }
+ }
+ break;
+
+ case SID_ATTR_CHAR_WEIGHT:
+ {
+ FontWeight eFW = ((const SvxWeightItem&)aEditAttr.Get(EE_CHAR_WEIGHT)).GetWeight();
+ aNewAttr.Put(SvxWeightItem(eFW == WEIGHT_NORMAL ? WEIGHT_BOLD : WEIGHT_NORMAL, EE_CHAR_WEIGHT));
+ }
+ break;
+
+ case SID_ATTR_CHAR_POSTURE:
+ {
+ FontItalic eFI = ((const SvxPostureItem&)aEditAttr.Get(EE_CHAR_ITALIC)).GetPosture();
+ aNewAttr.Put(SvxPostureItem(eFI == ITALIC_NORMAL ? ITALIC_NONE : ITALIC_NORMAL, EE_CHAR_ITALIC));
+ }
+ break;
+
+ case SID_ATTR_CHAR_UNDERLINE:
+ {
+ FontUnderline eFU = ((const SvxUnderlineItem&)aEditAttr.Get(EE_CHAR_UNDERLINE)).GetUnderline();
+ aNewAttr.Put(SvxUnderlineItem(eFU == UNDERLINE_SINGLE ? UNDERLINE_NONE : UNDERLINE_SINGLE, EE_CHAR_UNDERLINE));
+ }
+ break;
+
+ case SID_ATTR_CHAR_CONTOUR:
+ aNewAttr.Put((const SvxContourItem&)pNewAttrs->Get(nWhich), EE_CHAR_OUTLINE);
+ break;
+ case SID_ATTR_CHAR_SHADOWED:
+ aNewAttr.Put((const SvxShadowedItem&)pNewAttrs->Get(nWhich), EE_CHAR_SHADOW);
+ break;
+ case SID_ATTR_CHAR_STRIKEOUT:
+ aNewAttr.Put((const SvxCrossedOutItem&)pNewAttrs->Get(nWhich), EE_CHAR_STRIKEOUT);
+ break;
+
+ case SID_ATTR_PARA_ADJUST_LEFT:
+ aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_LEFT, EE_PARA_JUST));
+ break;
+ case SID_ATTR_PARA_ADJUST_CENTER:
+ aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_CENTER, EE_PARA_JUST));
+ break;
+ case SID_ATTR_PARA_ADJUST_RIGHT:
+ aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_RIGHT, EE_PARA_JUST));
+ break;
+ case SID_ATTR_PARA_ADJUST_BLOCK:
+ aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_BLOCK, EE_PARA_JUST));
+ break;
+
+ case SID_ATTR_PARA_LINESPACE_10:
+ {
+ SvxLineSpacingItem aItem(SVX_LINESPACE_ONE_LINE, EE_PARA_SBL);
+ aItem.SetPropLineSpace(100);
+ aNewAttr.Put(aItem);
+ }
+ break;
+ case SID_ATTR_PARA_LINESPACE_15:
+ {
+ SvxLineSpacingItem aItem(SVX_LINESPACE_ONE_POINT_FIVE_LINES, EE_PARA_SBL);
+ aItem.SetPropLineSpace(150);
+ aNewAttr.Put(aItem);
+ }
+ break;
+ case SID_ATTR_PARA_LINESPACE_20:
+ {
+ SvxLineSpacingItem aItem(SVX_LINESPACE_TWO_LINES, EE_PARA_SBL);
+ aItem.SetPropLineSpace(200);
+ aNewAttr.Put(aItem);
+ }
+ break;
+
+ case FN_SET_SUPER_SCRIPT:
+ {
+ SvxEscapementItem aItem(EE_CHAR_ESCAPEMENT);
+ SvxEscapement eEsc = (SvxEscapement ) ( (const SvxEscapementItem&)
+ aEditAttr.Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();
+
+ if( eEsc == SVX_ESCAPEMENT_SUPERSCRIPT )
+ aItem.SetEscapement( SVX_ESCAPEMENT_OFF );
+ else
+ aItem.SetEscapement( SVX_ESCAPEMENT_SUPERSCRIPT );
+ aNewAttr.Put( aItem, EE_CHAR_ESCAPEMENT );
+ }
+ break;
+ case FN_SET_SUB_SCRIPT:
+ {
+ SvxEscapementItem aItem(EE_CHAR_ESCAPEMENT);
+ SvxEscapement eEsc = (SvxEscapement ) ( (const SvxEscapementItem&)
+ aEditAttr.Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();
+
+ if( eEsc == SVX_ESCAPEMENT_SUBSCRIPT )
+ aItem.SetEscapement( SVX_ESCAPEMENT_OFF );
+ else
+ aItem.SetEscapement( SVX_ESCAPEMENT_SUBSCRIPT );
+ aNewAttr.Put( aItem, EE_CHAR_ESCAPEMENT );
+ }
+ break;
+
+ case SID_CHAR_DLG:
+ {
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ if( !pArgs )
+ {
+ SwView* pView = &GetView();
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
+ SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, eMetric));
+ SfxItemSet aDlgAttr(GetPool(), EE_ITEMS_START, EE_ITEMS_END);
+
+ // util::Language gibts an der EditEngine nicht! Daher nicht im Set.
+
+ aDlgAttr.Put( aEditAttr );
+ aDlgAttr.Put( SvxKerningItem() );
+
+ SwCharDlg* pDlg = new SwCharDlg(pView->GetWindow(), *pView, aDlgAttr, 0, sal_True);
+
+ sal_uInt16 nResult = pDlg->Execute();
+
+ switch( nResult )
+ {
+ case RET_OK:
+ {
+ pArgs = rReq.GetArgs();
+ }
+ break;
+
+ default:
+ {
+ delete pDlg;
+ }
+ return; // Abbruch
+ }
+ delete( pDlg );
+ }
+ aNewAttr.Put(*pArgs);
+ }
+ break;
+
+ case SID_PARA_DLG:
+ {
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ if (!pArgs)
+ {
+ SwView* pView = &GetView();
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
+ SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, eMetric));
+ SfxItemSet aDlgAttr(GetPool(),
+ EE_ITEMS_START, EE_ITEMS_END,
+ SID_ATTR_PARA_HYPHENZONE, SID_ATTR_PARA_HYPHENZONE,
+ SID_ATTR_PARA_SPLIT, SID_ATTR_PARA_SPLIT,
+ SID_ATTR_PARA_WIDOWS, SID_ATTR_PARA_WIDOWS,
+ SID_ATTR_PARA_ORPHANS, SID_ATTR_PARA_ORPHANS,
+ 0);
+
+ aDlgAttr.Put(aEditAttr);
+
+ // Die Werte sind erst einmal uebernommen worden, um den Dialog anzuzeigen.
+ // Muss natuerlich noch geaendert werden
+ // aDlgAttr.Put( SvxParaDlgLimitsItem( 567 * 50, 5670) );
+
+ aDlgAttr.Put( SvxHyphenZoneItem() );
+ aDlgAttr.Put( SvxFmtBreakItem() );
+ aDlgAttr.Put( SvxFmtSplitItem() );
+ aDlgAttr.Put( SvxWidowsItem() );
+ aDlgAttr.Put( SvxOrphansItem() );
+
+ SwParaDlg* pDlg = new SwParaDlg(GetView().GetWindow(), GetView(), aDlgAttr, DLG_STD, 0, sal_True);
+
+ sal_uInt16 nResult = pDlg->Execute();
+
+ switch( nResult )
+ {
+ case RET_OK:
+ {
+ pArgs = rReq.GetArgs();
+ }
+ break;
+
+ default:
+ {
+ delete pDlg;
+ }
+ return; // Abbruch
+ }
+ delete( pDlg );
+ }
+ aNewAttr.Put(*pArgs);
+ }
+ break;
+ case SID_AUTOSPELL_MARKOFF:
+ case SID_AUTOSPELL_CHECK:
+ {
+ pSdrView = rSh.GetDrawView();
+ pOutliner = pSdrView->GetTextEditOutliner();
+ sal_uInt32 nCtrl = pOutliner->GetControlWord();
+
+ sal_Bool bSet = ((const SfxBoolItem&)rReq.GetArgs()->Get(nSlot)).GetValue();
+ if(nSlot == SID_AUTOSPELL_MARKOFF)
+ {
+ if(bSet)
+ nCtrl |= EE_CNTRL_NOREDLINES;
+ else
+ nCtrl &= ~EE_CNTRL_NOREDLINES;
+ }
+ else
+ {
+ if(bSet)
+ nCtrl |= EE_CNTRL_ONLINESPELLING|EE_CNTRL_ALLOWBIGOBJS;
+ else
+ nCtrl &= ~EE_CNTRL_ONLINESPELLING;
+ }
+ pOutliner->SetControlWord(nCtrl);
+
+ SW_MOD()->ExecuteSlot(rReq);
+ }
+ break;
+ case SID_HYPERLINK_SETLINK:
+ {
+ const SfxPoolItem* pItem = 0;
+ if(pNewAttrs)
+ pNewAttrs->GetItemState(nSlot, sal_False, &pItem);
+
+ if(pItem)
+ {
+ const SvxHyperlinkItem& rHLinkItem = *(const SvxHyperlinkItem *)pItem;
+ SvxURLField aFld(rHLinkItem.GetURL(), rHLinkItem.GetName(), SVXURLFORMAT_APPDEFAULT);
+ aFld.SetTargetFrame(rHLinkItem.GetTargetFrame());
+
+ const SvxFieldItem* pFieldItem = pOLV->GetFieldAtSelection();
+
+ if (pFieldItem && pFieldItem->GetField()->ISA(SvxURLField))
+ {
+ // Feld selektieren, so dass es beim Insert geloescht wird
+ ESelection aSel = pOLV->GetSelection();
+ aSel.nEndPos++;
+ pOLV->SetSelection(aSel);
+ }
+ pOLV->InsertField(aFld);
+ }
+ }
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+ SetAttrToMarked(aNewAttr);
+
+ GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False);
+
+ if (IsTextEdit() && pOLV->GetOutliner()->IsModified())
+ rSh.SetModified();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::GetState(SfxItemSet& rSet)
+{
+ if (!IsTextEdit()) // Sonst manchmal Absturz!
+ return;
+
+ SfxItemSet aEditAttr(pOLV->GetAttribs());
+ sal_uInt16 nWhich = 0;
+
+ const SfxPoolItem* pItem = 0;
+ SfxItemState eState = aEditAttr.GetItemState(EE_PARA_JUST, sal_False, &pItem);
+ if (eState == SFX_ITEM_DONTCARE || !pItem)
+ {
+ rSet.InvalidateItem( SID_ATTR_PARA_ADJUST_LEFT );
+ rSet.InvalidateItem( SID_ATTR_PARA_ADJUST_CENTER );
+ rSet.InvalidateItem( SID_ATTR_PARA_ADJUST_RIGHT );
+ rSet.InvalidateItem( SID_ATTR_PARA_ADJUST_BLOCK );
+ }
+ else
+ {
+ SvxAdjust eAdjust = ((const SvxAdjustItem*)pItem)->GetAdjust();
+ switch( eAdjust )
+ {
+ case SVX_ADJUST_LEFT: nWhich = SID_ATTR_PARA_ADJUST_LEFT; break;
+ case SVX_ADJUST_CENTER: nWhich = SID_ATTR_PARA_ADJUST_CENTER; break;
+ case SVX_ADJUST_RIGHT: nWhich = SID_ATTR_PARA_ADJUST_RIGHT; break;
+ case SVX_ADJUST_BLOCK: nWhich = SID_ATTR_PARA_ADJUST_BLOCK; break;
+ }
+ if( nWhich )
+ rSet.Put( SfxBoolItem( nWhich, sal_True ) );
+ }
+
+ eState = aEditAttr.GetItemState(EE_PARA_SBL, sal_False, &pItem);
+ if (eState == SFX_ITEM_DONTCARE || !pItem)
+ {
+ rSet.InvalidateItem( SID_ATTR_PARA_LINESPACE_10 );
+ rSet.InvalidateItem( SID_ATTR_PARA_LINESPACE_15 );
+ rSet.InvalidateItem( SID_ATTR_PARA_LINESPACE_20 );
+ }
+ else
+ {
+ const sal_Int8 nSpace = ((const SvxLineSpacingItem*)pItem)->GetPropLineSpace();
+ nWhich = 0;
+ switch( nSpace )
+ {
+ case 100:
+ nWhich = SID_ATTR_PARA_LINESPACE_10;
+ break;
+ case 150:
+ nWhich = SID_ATTR_PARA_LINESPACE_15;
+ break;
+ case 200:
+ nWhich = SID_ATTR_PARA_LINESPACE_20;
+ break;
+ }
+ if( nWhich )
+ rSet.Put( SfxBoolItem( nWhich, sal_True ) );
+ }
+
+ SvxEscapement eEsc = (SvxEscapement)((const SvxEscapementItem&)
+ aEditAttr.Get(EE_CHAR_ESCAPEMENT)).GetEnumValue();
+
+ if( eEsc == SVX_ESCAPEMENT_SUPERSCRIPT )
+ rSet.Put( SfxBoolItem( FN_SET_SUPER_SCRIPT, sal_True ) );
+ else if( eEsc == SVX_ESCAPEMENT_SUBSCRIPT )
+ rSet.Put( SfxBoolItem( FN_SET_SUB_SCRIPT, sal_True ) );
+
+
+ // disable "Thesaurus" if the language is not supported
+ const SfxPoolItem &rItem = GetShell().GetDoc()->GetDefault(RES_CHRATR_LANGUAGE);
+ LanguageType nLang = ((const SvxLanguageItem &) rItem).GetLanguage();
+ //
+ uno::Reference< linguistic::XThesaurus > xThes( ::GetThesaurus() );
+ if (!xThes.is() || nLang == LANGUAGE_NONE ||
+ !xThes->hasLocale( SvxCreateLocale( nLang ) ))
+ rSet.DisableItem( FN_THESAURUS_DLG );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::GetDrawTxtCtrlState(SfxItemSet& rSet)
+{
+ if (!IsTextEdit()) // Sonst Absturz!
+ return;
+
+ SfxItemSet aEditAttr(pOLV->GetAttribs());
+
+ SfxWhichIter aIter(rSet);
+ sal_uInt16 nWhich = aIter.FirstWhich();
+
+ while(nWhich)
+ {
+ switch(GetPool().GetSlotId(nWhich))
+ {
+ case SID_ATTR_CHAR_FONT:
+ rSet.Put(aEditAttr.Get(EE_CHAR_FONTINFO, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_FONTHEIGHT:
+ rSet.Put(aEditAttr.Get(EE_CHAR_FONTHEIGHT, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_COLOR:
+ rSet.Put(aEditAttr.Get(EE_CHAR_COLOR, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_WEIGHT:
+ rSet.Put(aEditAttr.Get(EE_CHAR_WEIGHT, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_POSTURE:
+ rSet.Put(aEditAttr.Get(EE_CHAR_ITALIC, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_UNDERLINE:
+ rSet.Put(aEditAttr.Get(EE_CHAR_UNDERLINE, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_CONTOUR:
+ rSet.Put(aEditAttr.Get(EE_CHAR_OUTLINE, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_SHADOWED:
+ rSet.Put(aEditAttr.Get(EE_CHAR_SHADOW, sal_True), nWhich);
+ break;
+ case SID_ATTR_CHAR_STRIKEOUT:
+ rSet.Put(aEditAttr.Get(EE_CHAR_STRIKEOUT, sal_True), nWhich);
+ break;
+ case SID_AUTOSPELL_MARKOFF:
+ case SID_AUTOSPELL_CHECK:
+ const SfxPoolItem* pState = SW_MOD()->GetSlotState(nWhich);
+ if (pState)
+ rSet.Put(SfxBoolItem(nWhich, ((const SfxBoolItem*)pState)->GetValue()));
+ else
+ rSet.DisableItem( nWhich );
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::ExecClpbrd(SfxRequest &rReq)
+{
+ if (!IsTextEdit()) // Sonst Absturz!
+ return;
+
+ sal_uInt16 nId = rReq.GetSlot();
+ switch( nId )
+ {
+ case SID_CUT:
+ pOLV->Cut();
+ return;
+
+ case SID_COPY:
+ pOLV->Copy();
+ return;
+
+ case SID_PASTE:
+ pOLV->PasteSpecial();
+ break;
+
+ default:
+ DBG_ERROR("falscher Dispatcher");
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ClipBoard-Status
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::StateClpbrd(SfxItemSet &rSet)
+{
+ if (!IsTextEdit()) // Sonst Absturz!
+ return;
+
+ ESelection aSel(pOLV->GetSelection());
+ const sal_Bool bCopy = (aSel.nStartPara != aSel.nEndPara) || (aSel.nStartPos != aSel.nEndPos);
+
+
+ SfxWhichIter aIter(rSet);
+ sal_uInt16 nWhich = aIter.FirstWhich();
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_CUT:
+ case SID_COPY:
+ if( !bCopy )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case SID_PASTE:
+ {
+ //!!OS: das muss ein if/else bleiben, weil BLC das
+ // nicht anders versteht
+ SwModule* pMod = SW_MOD();
+ SvDataObjectRef xObj;
+ if( pMod->pClipboard )
+ xObj = pMod->pClipboard;
+ else
+ xObj = SvDataObject::PasteClipboard();
+
+ if( !xObj.Is() ||
+ !SwDataExchange::IsPaste( GetShell(), *xObj ) )
+ rSet.DisableItem( SID_PASTE );
+ }
+ break;
+
+ case FN_PASTESPECIAL:
+ rSet.DisableItem( FN_PASTESPECIAL );
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Hyperlink-Status
+ --------------------------------------------------------------------*/
+
+void SwDrawTextShell::StateInsert(SfxItemSet &rSet)
+{
+ if (!IsTextEdit()) // Sonst Absturz!
+ return;
+
+ SfxWhichIter aIter(rSet);
+ sal_uInt16 nWhich = aIter.FirstWhich();
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_HYPERLINK_GETLINK:
+ {
+ SvxHyperlinkItem aHLinkItem;
+ aHLinkItem.SetInsertMode(HLINK_FIELD);
+
+ const SvxFieldItem* pFieldItem = pOLV->GetFieldAtSelection();
+
+ if (pFieldItem)
+ {
+ const SvxFieldData* pField = pFieldItem->GetField();
+
+ if (pField->ISA(SvxURLField))
+ {
+ aHLinkItem.SetName(((const SvxURLField*) pField)->GetRepresentation());
+ aHLinkItem.SetURL(((const SvxURLField*) pField)->GetURL());
+ aHLinkItem.SetTargetFrame(((const SvxURLField*) pField)->GetTargetFrame());
+ }
+ }
+ else
+ {
+ String sSel(pOLV->GetSelected());
+ sSel.Erase(255);
+ sSel.EraseTrailingChars();
+ aHLinkItem.SetName(sSel);
+ }
+
+ sal_uInt16 nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ aHLinkItem.SetInsertMode((SvxLinkInsertMode)(aHLinkItem.GetInsertMode() |
+ ((nHtmlMode & HTMLMODE_ON) != 0 ? HLINK_HTMLMODE : 0)));
+
+ rSet.Put(aHLinkItem);
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.69 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.68 2000/09/07 15:59:29 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.67 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.66 2000/04/18 14:58:23 os
+ UNICODE
+
+ Revision 1.65 2000/03/23 07:49:14 os
+ UNO III
+
+ Revision 1.64 2000/02/16 21:00:17 tl
+ #72219# Locale Umstellung
+
+ Revision 1.63 2000/02/11 14:57:32 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.62 2000/01/21 13:34:45 tl
+ #70503# GetState method added for FN_THESAURUS_DLG
+
+ Revision 1.61 1999/11/30 09:44:05 jp
+ StateClpbrd: pObj contains sometimes no Pointer
+
+ Revision 1.60 1999/09/24 14:38:32 os
+ hlnkitem.hxx now in SVX
+
+ Revision 1.59 1999/08/04 09:09:50 JP
+ have to change: Outliner -> SdrOutlines
+
+
+ Rev 1.58 04 Aug 1999 11:09:50 JP
+ have to change: Outliner -> SdrOutlines
+
+ Rev 1.57 18 Mar 1999 14:41:18 OS
+ #61169# #61489# Masseinheiten fuer Text u. HTML am Module setzen, nicht an der App
+
+ Rev 1.56 04 Nov 1998 17:29:54 OM
+ #58904# Assertion umpropelt
+
+ Rev 1.55 08 Sep 1998 17:03:08 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.54 25 Jun 1998 14:11:18 JP
+ SvDataObject -> SotObject
+
+ Rev 1.53 08 Apr 1998 13:47:22 OM
+ #42505 Keine util::URL-Buttons in Html-Dokumenten
+
+ Rev 1.52 12 Mar 1998 11:28:12 OM
+ #48017# GPF entfernt
+
+ Rev 1.51 05 Feb 1998 14:48:14 OS
+ Absatzdialog enthaelt keinen TableMode
+
+ Rev 1.50 29 Nov 1997 15:52:12 MA
+ includes
+
+ Rev 1.49 24 Nov 1997 09:47:00 MA
+ includes
+
+ Rev 1.48 03 Nov 1997 13:55:46 MA
+ precomp entfernt
+
+ Rev 1.47 17 Sep 1997 13:09:18 OM
+ Editierbare Links in DrawText-Objekten
+
+ Rev 1.46 01 Sep 1997 13:24:00 OS
+ DLL-Umstellung
+
+ Rev 1.45 11 Aug 1997 08:50:18 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.44 08 Aug 1997 17:28:46 OM
+ Headerfile-Umstellung
+
+ Rev 1.43 07 Jul 1997 12:28:14 OM
+ #41258# Execute: Nur benoetigte Items putten
+
+ Rev 1.42 17 Jun 1997 16:00:00 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.41 04 Jun 1997 11:24:06 TRI
+ svwin.h nur unter WIN oder WNT includen
+
+ Rev 1.40 04 Jun 1997 09:50:08 NF
+ Includes...
+
+ Rev 1.39 28 May 1997 15:06:30 OM
+ #40067# DontCare-State fuer Absatzausrichtung beruecksichtigen
+
+ Rev 1.38 16 May 1997 17:16:40 OM
+ Links aus Hyperlinkleiste in DrawText-Objekte einfuegen
+
+ Rev 1.37 19 Mar 1997 12:48:42 AMA
+ Fix #37035: Speller am Outliner setzen.
+
+ Rev 1.36 23 Feb 1997 18:20:08 AMA
+ Fix #36843#: GPF in der EditEngine durch nicht gesetzten SpellChecker
+
+ Rev 1.35 22 Jan 1997 18:42:26 MH
+ add: include
+
+ Rev 1.34 16 Jan 1997 16:36:52 OS
+ Metric vor Dialogaufruf an der App setzen
+
+ Rev 1.33 14 Jan 1997 09:31:34 TRI
+ includes
+
+ Rev 1.32 16 Dec 1996 19:10:40 HJS
+ includes
+
+ Rev 1.31 13 Dec 1996 16:38:22 OS
+ Autospell fuer aktives DrawTextObject
+
+ Rev 1.30 22 Nov 1996 14:53:32 OS
+ FN_SET_JUSTIFY_PARA -> SID_ATTR_PARA_ADJUST_BLOCK
+
+ Rev 1.29 28 Aug 1996 15:55:10 OS
+ includes
+
+ Rev 1.28 22 Mar 1996 15:14:32 TRI
+ sfxiiter.hxx included
+
+ Rev 1.27 05 Feb 1996 17:28:42 OM
+ Parent-Win an Par/Chardlg uebergeben
+
+ Rev 1.26 12 Dec 1995 17:43:58 OM
+ Text-Attribute richtig setzen
+
+ Rev 1.25 11 Dec 1995 18:21:26 OM
+ Neuer DrawText Dialog
+
+ Rev 1.24 08 Dec 1995 18:10:28 OM
+ CharAttr-Stati richtig updaten
+
+ Rev 1.23 07 Dec 1995 18:25:36 OM
+ Neu: GetDrawTxtCtrlState
+
+ Rev 1.22 24 Nov 1995 16:59:34 OM
+ PCH->PRECOMPILED
+
+ Rev 1.21 10 Nov 1995 18:24:24 OM
+ Init-Fkt optimiert/repariert
+
+ Rev 1.20 09 Nov 1995 18:00:12 OS
+ Id fuer FormatPage/CharDlg auf SID_ umgestellt
+
+ Rev 1.19 31 Oct 1995 18:40:42 OM
+ GetFrameWindow entfernt
+
+ Rev 1.18 17 Oct 1995 19:27:14 OM
+ Clipboard fuer Drawtext
+
+ Rev 1.17 14 Oct 1995 17:58:10 OM
+ Prophylaktische Absturzvorsorge...
+
+ Rev 1.16 14 Oct 1995 17:33:44 OM
+ Bug 20805: DrawTextShell komplettiert
+
+ Rev 1.15 05 Oct 1995 18:40:44 OM
+ Aufgeraeumt
+
+ Rev 1.14 04 Oct 1995 18:43:10 OM
+ Text-Reset angefangen
+
+ Rev 1.13 13 Sep 1995 17:28:06 OM
+ Modified fuer Drawtext-Objekte geaendert
+
+ Rev 1.12 28 Aug 1995 19:03:34 MA
+ Renovierung: IDL, Shells, Textshell-Doktrin aufgegeben
+
+ Rev 1.11 21 Aug 1995 21:00:00 MA
+ chg: svxitems-header entfernt
+
+ Rev 1.10 16 Aug 1995 17:50:12 MA
+ Riesenheader dialogs entfernt.
+
+ Rev 1.9 09 Aug 1995 18:39:10 OM
+ Statusmethode abgesichert
+
+ Rev 1.8 07 Aug 1995 18:41:54 OM
+ Zeichendialog richtig attributiert
+
+ Rev 1.7 06 Aug 1995 18:27:32 OM
+ DrawTextShell-Popup
+
+ Rev 1.6 23 Jul 1995 17:04:24 OS
+ Zeilenabstand kann nur 100/150/200 sein
+
+ Rev 1.5 14 Jul 1995 18:16:40 OM
+ Farbcontroller rausgeschmissen
+
+ Rev 1.4 04 May 1995 10:10:04 JP
+ Items Optimierung
+
+ Rev 1.3 03 May 1995 23:32:52 ER
+ add: editdata.hxx
+
+ Rev 1.2 28 Mar 1995 20:07:58 ER
+ header-adder
+
+ Rev 1.1 05 Mar 1995 20:44:44 OM
+ Linienabstand, drawing::Alignment, ...
+
+ Rev 1.0 05 Mar 1995 16:36:00 OM
+ Textfarbe setzen
+
+ Rev 1.6 04 Mar 1995 19:20:44 OM
+ Aenderungen fuer 241
+
+ Rev 1.5 04 Mar 1995 19:03:18 OM
+ Execute und State fuer Texthintergrund
+
+ Rev 1.4 03 Mar 1995 18:16:06 OM
+ virtual GetPool implementiert
+
+ Rev 1.3 03 Mar 1995 02:07:32 OM
+ State-Methode fuer Font-Controller entfernt
+
+ Rev 1.2 02 Mar 1995 19:19:26 OM
+ Font-Controller eingebunden
+
+ Rev 1.1 01 Mar 1995 19:07:18 OM
+ DrawTextShell 2.Runde
+
+ Rev 1.0 28 Feb 1995 19:45:08 OM
+ Initial revision.
+
+*************************************************************************/
+
+
+
+
diff --git a/sw/source/ui/shells/drwtxtsh.cxx b/sw/source/ui/shells/drwtxtsh.cxx
new file mode 100644
index 000000000000..bdddfa3ca019
--- /dev/null
+++ b/sw/source/ui/shells/drwtxtsh.cxx
@@ -0,0 +1,815 @@
+/*************************************************************************
+ *
+ * $RCSfile: drwtxtsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+
+#if defined( WIN ) || defined( WNT )
+//#include <svwin.h>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_CHARMAP_HXX //autogen
+#include <svx/charmap.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SVDOTEXT_HXX //autogen
+#include <svx/svdotext.hxx>
+#endif
+#ifndef _SVX_XFTSFIT_HXX //autogen
+#include <svx/xftsfit.hxx>
+#endif
+#ifndef _EEITEM_HXX //autogen
+#include <svx/eeitem.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _SVX_TEXTANIM_HXX //autogen
+#include <svx/textanim.hxx>
+#endif
+#ifndef _XDEF_HXX //autogen
+#include <xdef.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVX_XFTSFIT_HXX //autogen
+#include <svx/xftsfit.hxx>
+#endif
+#ifndef _SVX_FONTWORK_HXX //autogen
+#include <svx/fontwork.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _OUTLINER_HXX //autogen
+#include <svx/outliner.hxx>
+#endif
+#ifndef _EDITSTAT_HXX //autogen
+#include <svx/editstat.hxx>
+#endif
+#ifndef _SVDOUTL_HXX
+#include <svx/svdoutl.hxx>
+#endif
+
+
+#include "swtypes.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "uiparam.hxx"
+#include "viewopt.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "helpid.h"
+#include "shells.hrc"
+#include "initui.hxx" // fuer SpellPointer
+#include "drwtxtsh.hxx"
+#include "swundo.hxx"
+
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#define SwDrawTextShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+#include "popup.hrc"
+
+SFX_IMPL_INTERFACE(SwDrawTextShell, SfxShell, SW_RES(STR_SHELLNAME_DRAW_TEXT))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRWTXT_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_DRAW_TEXT_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_DRWTXT));
+ SFX_CHILDWINDOW_REGISTRATION(SvxFontWorkChildWindow::GetChildWindowId());
+}
+
+TYPEINIT1(SwDrawTextShell,SfxShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::Init()
+{
+ SwWrtShell &rSh = GetShell();
+ pSdrView = rSh.GetDrawView();
+ pOutliner = pSdrView->GetTextEditOutliner();
+ pOLV = pSdrView->GetTextEditOutlinerView();
+ ULONG nCtrl = pOutliner->GetControlWord();
+ nCtrl |= EE_CNTRL_AUTOCORRECT;
+
+ SetUndoManager(&pOutliner->GetUndoManager());
+
+ // jetzt versuchen wir mal ein AutoSpell
+
+ const SwViewOption* pVOpt = rSh.GetViewOptions();
+ if(pVOpt->IsOnlineSpell())
+ {
+ nCtrl |= EE_CNTRL_ONLINESPELLING|EE_CNTRL_ALLOWBIGOBJS;
+ if(pVOpt->IsHideSpell())
+ nCtrl |= EE_CNTRL_NOREDLINES;
+ }
+ else
+ nCtrl &= ~(EE_CNTRL_ONLINESPELLING|EE_CNTRL_NOREDLINES);
+
+ pOutliner->SetControlWord(nCtrl);
+ pOLV->ShowCursor();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwDrawTextShell::SwDrawTextShell(SwView &rV) :
+ SfxShell(&rV),
+ rView(rV)
+{
+ SwWrtShell &rSh = GetShell();
+ SetPool(rSh.GetAttrPool().GetSecondaryPool());
+
+ Init();
+
+ rSh.NoEdit(TRUE);
+ SetName(String::CreateFromAscii("ObjectText"));
+ SetHelpId(SW_DRWTXTSHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+__EXPORT SwDrawTextShell::~SwDrawTextShell()
+{
+ if ( GetView().GetCurShell() == this )
+ rView.ResetSubShell();
+
+ //MA 13. Nov. 96: Das kommt durchaus vor #33141#:
+ //(doppel-)Klick von einem Texteditmode in ein anderes Objekt, zwischendurch
+ //wird eine andere (Draw-)Shell gepusht, die alte aber noch nicht deletet.
+ //Dann wird vor dem Flush wieder ein DrawTextShell gepusht und der Mode ist
+ //eingeschaltet. In diesem Moment wird der Dispatcher geflusht und die alte
+ //DrawTextShell zerstoert.
+// ASSERT( !pSdrView->IsTextEdit(), "TextEdit in DTor DrwTxtSh?" );
+// if (pSdrView->IsTextEdit())
+// GetShell().EndTextEdit(); // Danebengeklickt, Ende mit Edit
+
+// GetShell().Edit();
+}
+
+SwWrtShell& SwDrawTextShell::GetShell()
+{
+ return rView.GetWrtShell();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Slots mit dieser Statusmethode disablen
+ --------------------------------------------------------------------*/
+
+void SwDrawTextShell::StateDisableItems( SfxItemSet &rSet )
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+
+ while (nWhich)
+ {
+ rSet.DisableItem( nWhich );
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+/*************************************************************************
+|*
+|* Attribute setzen
+|*
+\************************************************************************/
+
+
+
+void SwDrawTextShell::SetAttrToMarked(const SfxItemSet& rAttr)
+{
+ Rectangle aNullRect;
+ Rectangle aOutRect = pOLV->GetOutputArea();
+
+ if (aNullRect != aOutRect)
+ {
+ GetShell().GetDrawView()->SetAttributes(rAttr);
+// Init();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+BOOL SwDrawTextShell::IsTextEdit()
+{
+ if (!pOutliner || !pOLV)
+ Init();
+
+ if (!pOutliner || !pOLV)
+ return (FALSE);
+
+ return (pSdrView->IsTextEdit());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::ExecFontWork(SfxRequest& rReq)
+{
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if ( rReq.GetArgs() )
+ {
+ pVFrame->SetChildWindow(SvxFontWorkChildWindow::GetChildWindowId(),
+ ((const SfxBoolItem&) (rReq.GetArgs()->
+ Get(SID_FONTWORK))).GetValue());
+ }
+ else
+ pVFrame->ToggleChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
+
+ pVFrame->GetBindings().Invalidate(SID_FONTWORK);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::StateFontWork(SfxItemSet& rSet)
+{
+ const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();
+ rSet.Put(SfxBoolItem(SID_FONTWORK, GetView().GetViewFrame()->HasChildWindow(nId)));
+}
+
+/*************************************************************************
+|*
+|* SfxRequests fuer FontWork bearbeiten
+|*
+\************************************************************************/
+
+
+
+void SwDrawTextShell::ExecFormText(SfxRequest& rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView* pDrView = rSh.GetDrawView();
+
+ const SdrMarkList& rMarkList = pDrView->GetMarkList();
+
+ if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() )
+ {
+ const SfxItemSet& rSet = *rReq.GetArgs();
+ const SfxPoolItem* pItem;
+
+ if ( pDrView->IsTextEdit() )
+ {
+ pDrView->EndTextEdit( TRUE );
+ GetView().AttrChangedNotify(&rSh);
+ }
+
+ if ( rSet.GetItemState(XATTR_FORMTXTSTDFORM, TRUE, &pItem) ==
+ SFX_ITEM_SET &&
+ ((const XFormTextStdFormItem*) pItem)->GetValue() != XFTFORM_NONE )
+ {
+
+ const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();
+
+ SvxFontWorkDialog* pDlg = (SvxFontWorkDialog*)(GetView().GetViewFrame()->
+ GetChildWindow(nId)->GetWindow());
+
+ pDlg->CreateStdFormObj(*pDrView, *pDrView->GetPageViewPvNum(0),
+ rSet, *rMarkList.GetMark(0)->GetObj(),
+ ((const XFormTextStdFormItem*) pItem)->
+ GetValue());
+ }
+ else
+ pDrView->SetAttributes(rSet);
+ }
+
+}
+
+/*************************************************************************
+|*
+|* Statuswerte fuer FontWork zurueckgeben
+|*
+\************************************************************************/
+
+
+
+void SwDrawTextShell::GetFormTextState(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SdrView* pDrView = rSh.GetDrawView();
+ const SdrMarkList& rMarkList = pDrView->GetMarkList();
+ const SdrObject* pObj = NULL;
+ SvxFontWorkDialog* pDlg = NULL;
+
+ const USHORT nId = SvxFontWorkChildWindow::GetChildWindowId();
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if ( pVFrame->HasChildWindow(nId) )
+ pDlg = (SvxFontWorkDialog*)(pVFrame->GetChildWindow(nId)->GetWindow());
+
+ if ( rMarkList.GetMarkCount() == 1 )
+ pObj = rMarkList.GetMark(0)->GetObj();
+
+ if ( pObj == NULL || !pObj->ISA(SdrTextObj) ||
+ !((SdrTextObj*) pObj)->HasText() )
+ {
+#define XATTR_ANZ 12
+ static const USHORT nXAttr[ XATTR_ANZ ] =
+ { XATTR_FORMTXTSTYLE, XATTR_FORMTXTADJUST, XATTR_FORMTXTDISTANCE,
+ XATTR_FORMTXTSTART, XATTR_FORMTXTMIRROR, XATTR_FORMTXTSTDFORM,
+ XATTR_FORMTXTHIDEFORM, XATTR_FORMTXTOUTLINE, XATTR_FORMTXTSHADOW,
+ XATTR_FORMTXTSHDWCOLOR, XATTR_FORMTXTSHDWXVAL, XATTR_FORMTXTSHDWYVAL
+ };
+ for( USHORT i = 0; i < XATTR_ANZ; )
+ rSet.DisableItem( nXAttr[ i++ ] );
+ }
+ else
+ {
+ if ( pDlg )
+ pDlg->SetColorTable(OFF_APP()->GetStdColorTable());
+
+ pDrView->GetAttributes( rSet );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::ExecDrawLingu(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+
+ if( rSh.GetDrawView()->GetMarkList().GetMarkCount() )
+ {
+ LanguageType nLang = ((const SvxLanguageItem&)rSh.
+ GetDefault(RES_CHRATR_LANGUAGE)).GetLanguage();
+ switch(rReq.GetSlot())
+ {
+ case FN_THESAURUS_DLG:
+ {
+ pOLV->StartThesaurus( nLang );
+ break;
+ }
+ case FN_SPELLING_DLG:
+ {
+ pOLV->StartSpeller( nLang );
+ break;
+ }
+ default:
+ ASSERT(!this, "unexpected slot-id");
+ return;
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::ExecDraw(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ pSdrView = rSh.GetDrawView();
+
+
+ switch (rReq.GetSlot())
+ {
+ case FN_INSERT_SYMBOL: // Sonderzeichen einfuegen
+ InsertSymbol();
+ break;
+
+ case SID_SELECTALL:
+ {
+ ULONG nParaCount = pOutliner->GetParagraphCount();
+ if (nParaCount > 0)
+ pOLV->SelectRange(0L, USHORT(nParaCount) );
+ }
+ break;
+
+ case FN_FORMAT_RESET: // Harte Textattributierung l”schen
+ {
+ SfxItemSet aEmptyAttr(GetPool(), EE_ITEMS_START, EE_ITEMS_END);
+ pSdrView->SetAttributes(aEmptyAttr, TRUE);
+ }
+ break;
+
+ case FN_ESCAPE:
+ if (pSdrView->IsTextEdit())
+ {
+ // Shellwechsel!
+ rSh.EndTextEdit();
+ rSh.GetView().AttrChangedNotify(&rSh);
+ return;
+ }
+ break;
+
+ case FN_DRAWTEXT_ATTR_DLG:
+ {
+ SfxItemSet aNewAttr( pSdrView->GetModel()->GetItemPool() );
+ pSdrView->GetAttributes( aNewAttr );
+ SvxTextTabDialog* pDlg = new SvxTextTabDialog(
+ &(GetView().GetViewFrame()->GetWindow()),
+ &aNewAttr, pSdrView );
+ USHORT nResult = pDlg->Execute();
+
+ if (nResult == RET_OK)
+ {
+ if (pSdrView->HasMarkedObj())
+ pSdrView->SetAttributes(*pDlg->GetOutputItemSet());
+ }
+ delete( pDlg );
+ }
+ break;
+
+ default:
+ ASSERT(!this, "unexpected slot-id");
+ return;
+ }
+
+ GetView().GetViewFrame()->GetBindings().InvalidateAll(FALSE);
+
+ if (IsTextEdit() && pOLV->GetOutliner()->IsModified())
+ rSh.SetModified();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Undo ausfuehren
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::ExecUndo(SfxRequest &rReq)
+{
+ if ( !IsTextEdit() )
+ return;
+
+ SfxViewFrame *pSfxViewFrame = GetView().GetViewFrame();
+ pSfxViewFrame->ExecuteSlot(rReq, pSfxViewFrame->GetInterface());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Zustand Undo
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::StateUndo(SfxItemSet &rSet)
+{
+ if ( !IsTextEdit() )
+ return;
+
+ SfxViewFrame *pSfxViewFrame = GetView().GetViewFrame();
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+ while(nWhich)
+ {
+ pSfxViewFrame->GetSlotState(nWhich, pSfxViewFrame->GetInterface(), &rSet );
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sonderzeichen einfuegen (siehe SDraw: FUBULLET.CXX)
+ --------------------------------------------------------------------*/
+
+
+
+void SwDrawTextShell::InsertSymbol()
+{
+ SvxCharacterMap* pDlg = new SvxCharacterMap( NULL, FALSE );
+
+ // Wenn Zeichen selektiert ist kann es angezeigt werden
+ // pDLg->SetFont( );
+ // pDlg->SetChar( );
+ USHORT nResult = pDlg->Execute();
+
+ //char c;
+ String s;
+
+ Font aFont;
+
+ if( nResult == RET_OK )
+ {
+ aFont = pDlg->GetCharFont();
+ s = pDlg->GetCharacters();
+ }
+ delete( pDlg );
+
+ if( nResult == RET_OK )
+ {
+ // Sonderzeichen einfuegen
+ if (pOLV)
+ {
+ // nicht flackern
+ pOLV->HideCursor();
+ pOutliner->SetUpdateMode(FALSE);
+
+ SfxItemSet aOldSet(pOLV->GetAttribs());
+ SvxFontItem aOldFontItem((const SvxFontItem&)aOldSet.Get(EE_CHAR_FONTINFO));
+
+ // String einfuegen
+ pOLV->InsertText(s, TRUE);
+
+ // attributieren (Font setzen)
+ SfxItemSet aSet(pOutliner->GetEmptyItemSet());
+ SvxFontItem aFontItem (aFont.GetFamily(), aFont.GetName(),
+ aFont.GetStyleName(), aFont.GetPitch(),
+ aFont.GetCharSet(),
+ EE_CHAR_FONTINFO);
+ aSet.Put(aFontItem);
+ pOLV->SetAttribs(aSet);
+
+ // Selektion loeschen
+ ESelection aSel(pOLV->GetSelection());
+ aSel.nStartPara = aSel.nEndPara;
+ aSel.nStartPos = aSel.nEndPos;
+ pOLV->SetSelection(aSel);
+
+ // Alten Font restaurieren
+ aSet.Put(aOldFontItem);
+ pOLV->SetAttribs(aSet);
+
+ // ab jetzt wieder anzeigen
+ pOutliner->SetUpdateMode(TRUE);
+ pOLV->ShowCursor();
+ }
+ }
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.113 2000/09/18 16:06:03 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.112 2000/09/08 08:12:51 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.111 2000/09/07 15:59:29 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.110 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.109 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.108 2000/04/18 14:58:23 os
+ UNICODE
+
+ Revision 1.107 1999/08/04 09:09:52 JP
+ have to change: Outliner -> SdrOutlines
+
+
+ Rev 1.106 04 Aug 1999 11:09:52 JP
+ have to change: Outliner -> SdrOutlines
+
+ Rev 1.105 21 Jun 1999 15:20:24 JP
+ Interface changes: SdrView::GetAttributes
+
+ Rev 1.104 10 Jun 1999 13:16:36 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.103 02 Feb 1999 13:17:36 JP
+ Bug #61335#: Schnistelle zu SwView geaendert/aufgeraeumt
+
+ Rev 1.102 12 Oct 1998 10:13:20 OM
+ #57790# Dialog nicht mehr AppModal
+
+ Rev 1.101 06 May 1998 16:20:42 OS
+ AttrChangedNotify nach Shellwechsel nicht ueber this aufrufen
+
+ Rev 1.100 29 Nov 1997 15:52:14 MA
+ includes
+
+ Rev 1.99 24 Nov 1997 09:47:00 MA
+ includes
+
+ Rev 1.98 03 Nov 1997 13:55:46 MA
+ precomp entfernt
+
+ Rev 1.97 30 Sep 1997 16:30:46 TJ
+ include
+
+ Rev 1.96 01 Sep 1997 13:23:56 OS
+ DLL-Umstellung
+
+ Rev 1.95 11 Aug 1997 08:34:16 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.94 06 Aug 1997 14:19:50 TRI
+ VCL: GetpApp() statt pApp
+
+ Rev 1.93 05 Aug 1997 13:29:54 MH
+ chg: header
+
+ Rev 1.92 25 Jun 1997 09:10:18 MA
+ #40965#, SubShell abmelden
+
+ Rev 1.91 19 Jun 1997 16:39:16 MA
+ fix: reste vom DrawText-Umbau
+
+ Rev 1.90 19 Jun 1997 16:05:42 HJS
+ includes
+
+ Rev 1.89 17 Jun 1997 15:54:12 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.88 04 Jun 1997 11:30:26 TRI
+ svwin.h nur unter WIN oder WNT includen
+
+ Rev 1.87 04 Jun 1997 09:54:48 NF
+ Includes...
+
+ Rev 1.86 02 May 1997 20:15:40 NF
+ includes...
+
+ Rev 1.85 08 Apr 1997 10:52:22 OM
+ Fehlende Includes
+
+ Rev 1.84 02 Apr 1997 14:07:00 JP
+ Bug #38398#: StateUndo - Itemset weitergeben
+
+ Rev 1.83 19 Mar 1997 12:48:20 AMA
+ Fix #37035: Speller am Outliner setzen.
+
+ Rev 1.82 24 Feb 1997 16:53:08 OM
+ Silbentrennung in Draw-Objekten
+
+ Rev 1.81 16 Dec 1996 10:41:50 OM
+ Cursor nach Initialisierung anzeigen
+
+ Rev 1.80 11 Dec 1996 10:50:58 MA
+ Warnings
+
+ Rev 1.79 26 Nov 1996 16:53:06 OS
+ Erste Schritte fuer OnlineSpelling in DrawTextObjekten
+
+ Rev 1.78 19 Nov 1996 16:02:30 NF
+ defines...
+
+ Rev 1.77 18 Nov 1996 16:05:50 OS
+ Set/GetControlWord an der OutlinerView benutzen
+
+ Rev 1.76 18 Nov 1996 15:46:40 OS
+ AutoKorrektur auch im DrawText
+
+ Rev 1.75 15 Nov 1996 13:34:02 OS
+ SvxTextTabDialog angebunden
+
+ Rev 1.74 13 Nov 1996 20:29:36 MA
+ #33141# nicht den Mode verlassen
+
+ Rev 1.73 07 Nov 1996 16:22:52 OM
+ Font nach Einfuegen:Sonderzeichen restaurieren
+
+ Rev 1.72 07 Nov 1996 15:28:18 OM
+ RefDevice am Outliner setzen
+
+ Rev 1.71 06 Nov 1996 16:41:26 OS
+ SID_SW_START statt RID_APP_START
+
+ Rev 1.70 26 Sep 1996 15:41:54 OM
+ Neues Parent fuer Sonderzeichen-Dlg
+
+ Rev 1.69 28 Aug 1996 15:55:00 OS
+ includes
+
+ Rev 1.68 15 Aug 1996 13:44:22 JP
+ svdraw.hxx entfernt
+
+ Rev 1.67 31 May 1996 11:09:30 NF
+ CLOOKS
+
+ Rev 1.66 28 May 1996 11:56:16 TRI
+ CLOOKS
+
+ Rev 1.65 21 May 1996 08:58:00 NF
+ CLOOKS
+
+ Rev 1.64 22 Mar 1996 15:17:00 TRI
+ sfxiiter.hxx included
+
+ Rev 1.63 29 Feb 1996 21:14:40 HJS
+ clooks
+
+ Rev 1.62 19 Feb 1996 18:30:58 MA
+ chg: EndTextEdit ueber die fesh
+
+ Rev 1.61 16 Feb 1996 09:14:48 SWG
+ CLOOK's
+
+ Rev 1.60 07 Feb 1996 08:07:22 OS
+ SvxTextAttrDialog hat jetzt endgueltig 3 Parameter
+
+ Rev 1.59 01 Feb 1996 08:07:18 SWG
+ TextAttrDialog wieder mal als nicht-Emergency-Version
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/shells/frmsh.cxx b/sw/source/ui/shells/frmsh.cxx
new file mode 100644
index 000000000000..8c703cd12e64
--- /dev/null
+++ b/sw/source/ui/shells/frmsh.cxx
@@ -0,0 +1,1082 @@
+/*************************************************************************
+ *
+ * $RCSfile: frmsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _GOODIES_IMAPOBJ_HXX
+#include <svtools/imapobj.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _IMAP_HXX //autogen
+#include <svtools/imap.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SB_SBSTAR_HXX //autogen
+#include <basic/sbstar.hxx>
+#endif
+#ifndef _SFXRECTITEM_HXX //autogen
+#include <svtools/rectitem.hxx>
+#endif
+#ifndef _SFXPTITEM_HXX //autogen
+#include <svtools/ptitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_BOLNITEM_HXX //autogen
+#include <svx/bolnitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SVX_HLNKITEM_HXX //autogen
+#include <svx/hlnkitem.hxx>
+#endif
+
+
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _FMTCNCT_HXX //autogen
+#include <fmtcnct.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _FRMSH_HXX
+#include <frmsh.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _FRMDLG_HXX
+#include <frmdlg.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _POPUP_HRC
+#include <popup.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+
+// Prototypen ------------------------------------------------------------
+
+void lcl_FrmGetMaxLineWidth(const SvxBorderLine* pBorderLine, SvxBorderLine& rBorderLine);
+
+#define SwFrameShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwFrameShell, SwBaseShell, SW_RES(STR_SHELLNAME_FRAME))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_FRM_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_FRAME_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_FRAME));
+}
+
+
+
+void SwFrameShell::Execute(SfxRequest &rReq)
+{
+ //Erstmal die, die keinen FrmMgr benoetigen.
+ SwWrtShell &rSh = GetShell();
+ BOOL bMore = FALSE;
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ USHORT nSlot = rReq.GetSlot();
+
+ switch ( nSlot )
+ {
+ case FN_FRAME_TO_ANCHOR:
+ if ( rSh.IsFrmSelected() )
+ {
+ rSh.GotoFlyAnchor();
+ rSh.EnterStdMode();
+ rSh.CallChgLnk();
+ }
+ break;
+ case SID_FRAME_TO_TOP:
+ rSh.SelectionToTop();
+ break;
+
+ case SID_FRAME_TO_BOTTOM:
+ rSh.SelectionToBottom();
+ break;
+
+ case FN_FRAME_UP:
+ rSh.SelectionToTop( FALSE );
+ break;
+
+ case FN_FRAME_DOWN:
+ rSh.SelectionToBottom( FALSE );
+ break;
+ case FN_INSERT_FRAME:
+ if (!pArgs)
+ {
+ // Rahmen existiert bereits, Rahmendialog zur Bearbeitung oeffnen
+ SfxUInt16Item aDefPage(FN_FORMAT_FRAME_DLG, TP_COLUMN);
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_FORMAT_FRAME_DLG,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aDefPage, 0L );
+
+ }
+ else
+ {
+ // Rahmen existiert bereits, nur Spaltenanzahl wird geaendert
+ USHORT nCols = 1;
+ if(pArgs->GetItemState(SID_ATTR_COLUMNS, FALSE, &pItem) == SFX_ITEM_SET)
+ nCols = ((SfxUInt16Item *)pItem)->GetValue();
+
+ SfxItemSet aSet(GetPool(),RES_COL,RES_COL);
+ rSh.GetFlyFrmAttr( aSet );
+ SwFmtCol aCol((const SwFmtCol&)aSet.Get(RES_COL));
+ // GutterWidth wird nicht immer uebergeben, daher erst besorgen (siehe view2: Execute auf diesen Slot)
+ USHORT nGutterWidth = aCol.GetGutterWidth();
+ if(!nCols )
+ nCols++;
+ aCol.Init(nCols, nGutterWidth, aCol.GetWishWidth());
+ aSet.Put(aCol);
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = rSh.GetCurFrmFmt();
+ if(pFmt && pFmt->IsAutoUpdateFmt())
+ {
+ rSh.AutoUpdateFrame(pFmt, aSet);
+ }
+ else
+ {
+ rSh.StartAllAction();
+ rSh.SetFlyFrmAttr( aSet );
+ rSh.SetModified();
+ rSh.EndAllAction();
+ }
+
+ }
+ return;
+
+ case SID_HYPERLINK_SETLINK:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(SID_HYPERLINK_SETLINK, FALSE, &pItem))
+ {
+ const SvxHyperlinkItem& rHLinkItem = *(const SvxHyperlinkItem *)pItem;
+ const String& rURL = rHLinkItem.GetURL();
+ const String& rTarget = rHLinkItem.GetTargetFrame();
+
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_URL, RES_URL );
+ rSh.GetFlyFrmAttr( aSet );
+ SwFmtURL aURL( (SwFmtURL&)aSet.Get( RES_URL ) );
+
+ String sOldName(rHLinkItem.GetName());
+ String sFlyName(rSh.GetFlyName());
+ if (sOldName.ToUpperAscii() != sFlyName.ToUpperAscii())
+ {
+ String sName(sOldName);
+ USHORT i = 1;
+ while (rSh.FindFlyByName(sName))
+ {
+ sName = sOldName;
+ sName += '_';
+ sName += String::CreateFromInt32(i++);
+ }
+ rSh.SetFlyName(sName);
+ }
+ aURL.SetURL( rURL, FALSE );
+ aURL.SetTargetFrameName(rTarget);
+
+ aSet.Put( aURL );
+ rSh.SetFlyFrmAttr( aSet );
+ }
+ }
+ break;
+
+ case FN_FRAME_CHAIN:
+ rSh.GetView().GetEditWin().SetChainMode( !rSh.GetView().GetEditWin().IsChainMode() );
+ break;
+
+ case FN_FRAME_UNCHAIN:
+ rSh.Unchain( (SwFrmFmt&)*rSh.GetFlyFrmFmt() );
+ GetView().GetViewFrame()->GetBindings().Invalidate(FN_FRAME_CHAIN);
+ break;
+
+ default: bMore = TRUE;
+ }
+
+ if ( !bMore )
+ {
+ return;
+ }
+
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+ BOOL bUpdateMgr = TRUE;
+ BOOL bCopyToFmt = FALSE;
+ switch ( nSlot )
+ {
+ case FN_FRAME_ALIGN_VERT_CENTER:
+ aMgr.SetVertOrientation( SVX_VERT_CENTER );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_BOTTOM:
+ aMgr.SetVertOrientation( SVX_VERT_BOTTOM );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_TOP:
+ aMgr.SetVertOrientation( SVX_VERT_TOP );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_CHAR_CENTER:
+ aMgr.SetVertOrientation( SVX_VERT_CHAR_CENTER );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_CHAR_BOTTOM:
+ aMgr.SetVertOrientation( SVX_VERT_CHAR_BOTTOM );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_CHAR_TOP:
+ aMgr.SetVertOrientation( SVX_VERT_CHAR_TOP );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_ROW_CENTER:
+ aMgr.SetVertOrientation( SVX_VERT_LINE_CENTER );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_ROW_BOTTOM:
+ aMgr.SetVertOrientation( SVX_VERT_LINE_BOTTOM );
+ break;
+
+ case FN_FRAME_ALIGN_VERT_ROW_TOP:
+ aMgr.SetVertOrientation( SVX_VERT_LINE_TOP );
+ break;
+
+ case FN_FRAME_ALIGN_HORZ_CENTER:
+ aMgr.SetHorzOrientation( HORI_CENTER );
+ break;
+
+ case FN_FRAME_ALIGN_HORZ_RIGHT:
+ aMgr.SetHorzOrientation( HORI_RIGHT );
+ break;
+
+ case FN_FRAME_ALIGN_HORZ_LEFT:
+ aMgr.SetHorzOrientation( HORI_LEFT );
+ break;
+
+ case FN_SET_FRM_POSITION:
+ {
+ aMgr.SetAbsPos(((SfxPointItem &)pArgs->Get
+ (FN_SET_FRM_POSITION)).GetValue());
+ }
+ break;
+ case SID_ATTR_BRUSH:
+ {
+ if(pArgs)
+ {
+ aMgr.SetAttrSet( *pArgs );
+ bCopyToFmt = TRUE;
+ }
+ }
+ break;
+ case SID_ATTR_ULSPACE:
+ case SID_ATTR_LRSPACE:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem))
+ {
+ aMgr.SetAttrSet( *pArgs );
+ if(SID_ATTR_ULSPACE == nSlot && SID_ATTR_ULSPACE == nSlot)
+ bCopyToFmt = TRUE;
+ }
+ }
+ break;
+ case FN_FORMAT_FRAME_DLG:
+ {
+ const int nSel = rSh.GetSelectionType();
+ if (nSel & SwWrtShell::SEL_GRF)
+ {
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute(FN_FORMAT_GRAFIC_DLG);
+ bUpdateMgr = FALSE;
+ }
+ else
+ {
+ //SFX_APP()->GetOptions().SetMetric(::GetDfltMetric());
+ SfxItemSet aSet(GetPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ FN_GET_PRINT_AREA, FN_GET_PRINT_AREA,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ SID_ATTR_BRUSH, SID_ATTR_BRUSH,
+ SID_ATTR_LRSPACE, SID_ATTR_ULSPACE,
+ FN_SURROUND, FN_HORI_ORIENT,
+ FN_SET_FRM_NAME, FN_SET_FRM_NAME,
+ FN_KEEP_ASPECT_RATIO, FN_KEEP_ASPECT_RATIO,
+ SID_DOCFRAME, SID_DOCFRAME,
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_SET_FRM_ALT_NAME, FN_SET_FRM_ALT_NAME,
+ 0);
+
+ const SwViewOption* pVOpt = rSh.GetViewOptions();
+ if(nSel & SwWrtShell::SEL_OLE)
+ {
+ aSet.Put(SfxBoolItem(FN_KEEP_ASPECT_RATIO,
+ pVOpt->IsKeepRatio()));
+ }
+ aSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(GetView().GetDocShell())));
+ aSet.Put(SfxStringItem(FN_SET_FRM_NAME, rSh.GetFlyName()));
+ if(nSel & SwWrtShell::SEL_OLE)
+ aSet.Put(SfxStringItem(FN_SET_FRM_ALT_NAME, rSh.GetAlternateText()));
+
+ const SwRect &rPg = rSh.GetAnyCurRect(RECT_PAGE);
+ SwFmtFrmSize aFrmSize(ATT_VAR_SIZE, rPg.Width(), rPg.Height());
+ aFrmSize.SetWhich(GetPool().GetWhich(SID_ATTR_PAGE_SIZE));
+ aSet.Put(aFrmSize);
+
+ const SwRect &rPr = rSh.GetAnyCurRect(RECT_PAGE_PRT);
+ SwFmtFrmSize aPrtSize(ATT_VAR_SIZE, rPr.Width(), rPr.Height());
+ aPrtSize.SetWhich(GetPool().GetWhich(FN_GET_PRINT_AREA));
+ aSet.Put(aPrtSize);
+
+ aSet.Put(aMgr.GetAttrSet());
+ aSet.SetParent( aMgr.GetAttrSet().GetParent() );
+
+ // Bei %-Werten Groesse initialisieren
+ SwFmtFrmSize& rSize = (SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE);
+ if (rSize.GetWidthPercent() && rSize.GetWidthPercent() != 0xff)
+ rSize.SetWidth(rSh.GetAnyCurRect(RECT_FLY_EMBEDDED).Width());
+ if (rSize.GetHeightPercent() && rSize.GetHeightPercent() != 0xff)
+ rSize.SetHeight(rSh.GetAnyCurRect(RECT_FLY_EMBEDDED).Height());
+
+ UINT16 nDefPage = 0;
+ if(pArgs && pArgs->GetItemState(FN_FORMAT_FRAME_DLG, FALSE, &pItem) == SFX_ITEM_SET)
+ nDefPage = ((SfxUInt16Item *)pItem)->GetValue();
+
+ aSet.Put(SfxFrameItem( SID_DOCFRAME, GetView().GetViewFrame()->GetTopFrame()));
+
+
+ SwFrmDlg *pDlg = new SwFrmDlg( GetView().GetViewFrame(),
+ GetView().GetWindow(),
+ aSet, FALSE,
+ nSel & SwWrtShell::SEL_GRF ? DLG_FRM_GRF :
+ nSel & SwWrtShell::SEL_OLE ? DLG_FRM_OLE :
+ DLG_FRM_STD,
+ FALSE,
+ nDefPage);
+
+ if ( pDlg->Execute() )
+ {
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ if(pOutSet)
+ {
+ if(nSel & SwWrtShell::SEL_OLE &&
+ SFX_ITEM_SET == pOutSet->GetItemState(FN_KEEP_ASPECT_RATIO, TRUE, &pItem))
+ {
+ SwViewOption aUsrPref( *pVOpt );
+ aUsrPref.SetKeepRatio(((const SfxBoolItem*)pItem)->GetValue());
+ SW_MOD()->ApplyUsrPref(aUsrPref, &GetView());
+ }
+ if (SFX_ITEM_SET == pOutSet->GetItemState(FN_SET_FRM_ALT_NAME, TRUE, &pItem))
+ {
+ rSh.SetAlternateText(((const SfxStringItem*)pItem)->GetValue());
+ }
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = rSh.GetCurFrmFmt();
+ if(pFmt && pFmt->IsAutoUpdateFmt())
+ {
+ rSh.AutoUpdateFrame(pFmt, *pOutSet);
+ const SfxPoolItem* pItem;
+ // alles, dass das Format nicht kann, muss hart
+ // gesetzt werden
+ if(SFX_ITEM_SET == pOutSet->GetItemState(FN_SET_FRM_NAME, FALSE, &pItem))
+ rSh.SetFlyName(((SfxStringItem*)pItem)->GetValue());
+ SfxItemSet aShellSet(GetPool(), RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_SURROUND, RES_SURROUND,
+ RES_ANCHOR, RES_ANCHOR,
+ RES_VERT_ORIENT,RES_HORI_ORIENT,
+ 0);
+ aShellSet.Put(*pOutSet);
+ aMgr.SetAttrSet(aShellSet);
+ if(SFX_ITEM_SET == pOutSet->GetItemState(FN_SET_FRM_NAME, FALSE, &pItem))
+ rSh.SetFlyName(((SfxStringItem*)pItem)->GetValue());
+ }
+ else
+ aMgr.SetAttrSet( *pOutSet );
+
+ }
+ }
+ else
+ bUpdateMgr = FALSE;
+ delete pDlg;
+ }
+ }
+ break;
+ case FN_FRAME_MIRROR_ON_EVEN_PAGES:
+ {
+ SwFmtHoriOrient aHori(aMgr.GetHoriOrient());
+ BOOL bMirror = !aHori.IsPosToggle();
+ aHori.SetPosToggle(bMirror);
+ SfxItemSet aSet(GetPool(), RES_HORI_ORIENT, RES_HORI_ORIENT);
+ aSet.Put(aHori);
+ aMgr.SetAttrSet(aSet);
+ bCopyToFmt = TRUE;
+ rReq.SetReturnValue(SfxBoolItem(nSlot, bMirror));
+ }
+ break;
+ default:
+ ASSERT( !this, "falscher Dispatcher" );
+ return;
+ }
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = rSh.GetCurFrmFmt();
+ if ( bUpdateMgr )
+ {
+ if(bCopyToFmt && pFmt && pFmt->IsAutoUpdateFmt())
+ {
+ rSh.AutoUpdateFrame(pFmt, aMgr.GetAttrSet());
+ }
+ else
+ aMgr.UpdateFlyFrm();
+ }
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwFrameShell::GetState(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ BOOL bHtmlMode = 0 != ::GetHtmlMode(rSh.GetView().GetDocShell());
+ if (rSh.IsFrmSelected())
+ {
+ SfxItemSet aSet( rSh.GetAttrPool(),
+ RES_LR_SPACE, RES_UL_SPACE,
+ RES_PROTECT, RES_HORI_ORIENT,
+ RES_OPAQUE, RES_OPAQUE,
+ RES_PRINT, RES_OPAQUE,
+ 0 );
+ rSh.GetFlyFrmAttr( aSet );
+
+ BOOL bProtect = rSh.IsSelObjProtected(FLYPROTECT_POS);
+ BOOL bParentCntProt = rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+
+ bProtect |= bParentCntProt;
+
+ const USHORT eFrmType = rSh.GetFrmType(0,TRUE);
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, FRMMGR_TYPE_NONE );
+
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ while ( nWhich )
+ {
+ switch ( nWhich )
+ {
+ case RES_FRM_SIZE:
+ {
+ SwFmtFrmSize aSz(aMgr.GetFrmSize());
+ rSet.Put(aSz);
+ }
+ break;
+ case RES_VERT_ORIENT:
+ case RES_HORI_ORIENT:
+ case SID_ATTR_ULSPACE:
+ case SID_ATTR_LRSPACE:
+ case RES_LR_SPACE:
+ case RES_UL_SPACE:
+ case RES_PROTECT:
+ case RES_OPAQUE:
+ case RES_PRINT:
+ case RES_SURROUND:
+ {
+ rSet.Put(aSet.Get(GetPool().GetWhich(nWhich), TRUE ));
+ }
+ break;
+ case FN_FRAME_ALIGN_HORZ_CENTER:
+ case FN_FRAME_ALIGN_HORZ_RIGHT:
+ case FN_FRAME_ALIGN_HORZ_LEFT:
+ if ( (eFrmType & FRMTYPE_FLY_INCNT) ||
+ bProtect ||
+ nWhich == FN_FRAME_ALIGN_HORZ_CENTER && bHtmlMode )
+ rSet.DisableItem( nWhich );
+ break;
+ case FN_FRAME_ALIGN_VERT_ROW_TOP:
+ case FN_FRAME_ALIGN_VERT_ROW_CENTER:
+ case FN_FRAME_ALIGN_VERT_ROW_BOTTOM:
+ case FN_FRAME_ALIGN_VERT_CHAR_TOP:
+ case FN_FRAME_ALIGN_VERT_CHAR_CENTER:
+ case FN_FRAME_ALIGN_VERT_CHAR_BOTTOM:
+ if ( !(eFrmType & FRMTYPE_FLY_INCNT) || bProtect
+ || bHtmlMode && FN_FRAME_ALIGN_VERT_CHAR_BOTTOM == nWhich )
+ rSet.DisableItem( nWhich );
+ break;
+ case FN_FRAME_ALIGN_VERT_TOP:
+ case FN_FRAME_ALIGN_VERT_CENTER:
+ case FN_FRAME_ALIGN_VERT_BOTTOM:
+ if ( bProtect || bHtmlMode && eFrmType & FRMTYPE_FLY_ATCNT)
+ rSet.DisableItem( nWhich );
+ else
+ {
+ USHORT nId = 0;
+ if (eFrmType & FRMTYPE_FLY_INCNT)
+ {
+ switch (nWhich)
+ {
+ case FN_FRAME_ALIGN_VERT_TOP:
+ nId = STR_TOP_BASE; break;
+ case FN_FRAME_ALIGN_VERT_CENTER:
+ nId = STR_CENTER_BASE; break;
+ case FN_FRAME_ALIGN_VERT_BOTTOM:
+ if(!bHtmlMode)
+ nId = STR_BOTTOM_BASE;
+ else
+ rSet.DisableItem( nWhich );
+ break;
+ }
+ }
+ else
+ {
+ if (nWhich == FN_FRAME_ALIGN_VERT_CENTER ||
+ nWhich == FN_FRAME_ALIGN_VERT_BOTTOM)
+ {
+ if (aMgr.GetAnchor() == FLY_AT_FLY)
+ {
+ const SwFrmFmt* pFmt = rSh.IsFlyInFly();
+ if (pFmt)
+ {
+ const SwFmtFrmSize& rFrmSz = pFmt->GetFrmSize();
+ if (rFrmSz.GetSizeType() != ATT_FIX_SIZE)
+ {
+ rSet.DisableItem( nWhich );
+ break;
+ }
+ }
+ }
+ }
+ switch (nWhich)
+ {
+ case FN_FRAME_ALIGN_VERT_TOP:
+ nId = STR_TOP; break;
+ case FN_FRAME_ALIGN_VERT_CENTER:
+ nId = STR_CENTER_VERT; break;
+ case FN_FRAME_ALIGN_VERT_BOTTOM:
+ nId = STR_BOTTOM; break;
+ }
+ }
+ if ( nId )
+ rSet.Put( SfxStringItem( nWhich, SW_RES(nId) ));
+ }
+ break;
+ case SID_HYPERLINK_GETLINK:
+ {
+ String sURL;
+ SvxHyperlinkItem aHLinkItem;
+ const SfxPoolItem* pItem;
+
+ SfxItemSet aSet(GetPool(), RES_URL, RES_URL);
+ rSh.GetFlyFrmAttr( aSet );
+
+ if(SFX_ITEM_SET == aSet.GetItemState(RES_URL, TRUE, &pItem))
+ {
+ const SwFmtURL* pFmtURL = (const SwFmtURL*)pItem;
+ aHLinkItem.SetURL(pFmtURL->GetURL());
+ aHLinkItem.SetTargetFrame(pFmtURL->GetTargetFrameName());
+ aHLinkItem.SetName(rSh.GetFlyName());
+ }
+
+ aHLinkItem.SetInsertMode((SvxLinkInsertMode)(aHLinkItem.GetInsertMode() |
+ (bHtmlMode ? HLINK_HTMLMODE : 0)));
+
+ rSet.Put(aHLinkItem);
+ }
+ break;
+
+ case FN_FRAME_CHAIN:
+ {
+ const SwFrmFmt *pFmt = rSh.GetFlyFrmFmt();
+ if ( bParentCntProt || rSh.GetView().GetEditWin().GetApplyTemplate() ||
+ !pFmt || pFmt->GetChain().GetNext() )
+ {
+ rSet.DisableItem( FN_FRAME_CHAIN );
+ }
+ else
+ {
+ BOOL bChainMode = rSh.GetView().GetEditWin().IsChainMode();
+ rSet.Put( SfxBoolItem( FN_FRAME_CHAIN, bChainMode ) );
+ }
+ break;
+ }
+
+ case FN_FRAME_UNCHAIN:
+ {
+ const SwFrmFmt *pFmt = rSh.GetFlyFrmFmt();
+ if ( bParentCntProt || rSh.GetView().GetEditWin().GetApplyTemplate() ||
+ !pFmt || !pFmt->GetChain().GetNext() )
+ {
+ rSet.DisableItem( FN_FRAME_UNCHAIN );
+ }
+ break;
+ }
+
+ case SID_FRAME_TO_TOP:
+ case SID_FRAME_TO_BOTTOM:
+ case FN_FRAME_UP:
+ case FN_FRAME_DOWN:
+ case FN_FORMAT_FRAME_DLG:
+ if ( bParentCntProt )
+ rSet.DisableItem( nWhich );
+ break;
+
+ default:
+ /* do nothing */;
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Ctor fuer FrameShell
+ --------------------------------------------------------------------*/
+
+
+SwFrameShell::SwFrameShell(SwView &rView) :
+ SwBaseShell( rView )
+{
+ SetName(String::CreateFromAscii("Frame"));
+ SetHelpId(SW_FRAMESHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwFrameShell::ExecFrameStyle(SfxRequest& rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ BOOL bDefault = FALSE;
+ if (!rSh.IsFrmSelected())
+ return;
+
+ // Erst Default-BoxItem aus Pool holen. Wenn ungleich normalem Boxitem,
+ // dann ist es bereits geaendert worden (neues ist kein Default).
+ const SvxBoxItem* pPoolBoxItem = (const SvxBoxItem*)::GetDfltAttr(RES_BOX);
+
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ SfxItemSet aFrameSet(rSh.GetAttrPool(), RES_BOX, RES_BOX);
+
+ rSh.GetFlyFrmAttr( aFrameSet );
+ const SvxBoxItem& rBoxItem = (const SvxBoxItem&)aFrameSet.Get(RES_BOX);
+
+ if (pPoolBoxItem == &rBoxItem)
+ bDefault = TRUE;
+
+ SvxBoxItem aBoxItem(rBoxItem);
+
+ SvxBorderLine aBorderLine;
+ const SfxPoolItem *pItem = 0;
+
+ if(pArgs) //irgendein Controller kann auch mal nichts liefern #48169#
+ {
+ switch (rReq.GetSlot())
+ {
+ case SID_ATTR_BORDER:
+ {
+ if (pArgs->GetItemState(RES_BOX, TRUE, &pItem) == SFX_ITEM_SET)
+ {
+ SvxBoxItem aNewBox(*((SvxBoxItem *)pItem));
+ const SvxBorderLine* pBorderLine;
+
+ if ((pBorderLine = aBoxItem.GetTop()) != NULL)
+ lcl_FrmGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = aBoxItem.GetBottom()) != NULL)
+ lcl_FrmGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = aBoxItem.GetLeft()) != NULL)
+ lcl_FrmGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = aBoxItem.GetRight()) != NULL)
+ lcl_FrmGetMaxLineWidth(pBorderLine, aBorderLine);
+
+ if(aBorderLine.GetOutWidth() == 0)
+ {
+ aBorderLine.SetInWidth(0);
+ aBorderLine.SetOutWidth(DEF_LINE_WIDTH_0);
+ aBorderLine.SetDistance(0);
+ }
+ //Distance nur setzen, wenn der Request vom Controller kommt
+
+ if(!StarBASIC::IsRunning())
+ {
+ aNewBox.SetDistance( rBoxItem.GetDistance() );
+ }
+
+ aBoxItem = aNewBox;
+ SvxBorderLine aDestBorderLine;
+
+ if ((pBorderLine = aBoxItem.GetTop()) != NULL)
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_TOP);
+ if ((pBorderLine = aBoxItem.GetBottom()) != NULL)
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_BOTTOM);
+ if ((pBorderLine = aBoxItem.GetLeft()) != NULL)
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_LEFT);
+ if ((pBorderLine = aBoxItem.GetRight()) != NULL)
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_RIGHT);
+ }
+ }
+ break;
+
+ case SID_FRAME_LINESTYLE:
+ {
+ if (pArgs->GetItemState(SID_FRAME_LINESTYLE, FALSE, &pItem) == SFX_ITEM_SET)
+ {
+ const SvxLineItem* pLineItem =
+ (const SvxLineItem*)pItem;
+
+ if ( pLineItem->GetLine() )
+ {
+ aBorderLine = *(pLineItem->GetLine());
+
+ if (!aBoxItem.GetTop() && !aBoxItem.GetBottom() &&
+ !aBoxItem.GetLeft() && !aBoxItem.GetRight())
+ {
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_TOP);
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_BOTTOM);
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_LEFT);
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_RIGHT);
+ }
+ else
+ {
+ if( aBoxItem.GetTop() )
+ {
+ aBorderLine.SetColor( aBoxItem.GetTop()->GetColor() );
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_TOP);
+ }
+ if( aBoxItem.GetBottom() )
+ {
+ aBorderLine.SetColor( aBoxItem.GetBottom()->GetColor());
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_BOTTOM);
+ }
+ if( aBoxItem.GetLeft() )
+ {
+ aBorderLine.SetColor( aBoxItem.GetLeft()->GetColor());
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_LEFT);
+ }
+ if( aBoxItem.GetRight() )
+ {
+ aBorderLine.SetColor(aBoxItem.GetRight()->GetColor());
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_RIGHT);
+ }
+ }
+ }
+ else
+ {
+ aBoxItem.SetLine(0, BOX_LINE_TOP);
+ aBoxItem.SetLine(0, BOX_LINE_BOTTOM);
+ aBoxItem.SetLine(0, BOX_LINE_LEFT);
+ aBoxItem.SetLine(0, BOX_LINE_RIGHT);
+ }
+ }
+ }
+ break;
+
+ case SID_FRAME_LINECOLOR:
+ {
+ if (pArgs->GetItemState(SID_FRAME_LINECOLOR, FALSE, &pItem) == SFX_ITEM_SET)
+ {
+ const Color& rNewColor = ((const SvxColorItem*)pItem)->GetValue();
+
+ if (!aBoxItem.GetTop() && !aBoxItem.GetBottom() &&
+ !aBoxItem.GetLeft() && !aBoxItem.GetRight())
+ {
+ aBorderLine.SetColor( rNewColor );
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_TOP);
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_BOTTOM);
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_LEFT);
+ aBoxItem.SetLine(&aBorderLine, BOX_LINE_RIGHT);
+ }
+ else
+ {
+ if ( aBoxItem.GetTop() )
+ ((SvxBorderLine*)aBoxItem.GetTop())->SetColor( rNewColor );
+ if ( aBoxItem.GetBottom() )
+ ((SvxBorderLine*)aBoxItem.GetBottom())->SetColor( rNewColor );
+ if ( aBoxItem.GetLeft() )
+ ((SvxBorderLine*)aBoxItem.GetLeft())->SetColor( rNewColor );
+ if ( aBoxItem.GetRight() )
+ ((SvxBorderLine*)aBoxItem.GetRight())->SetColor( rNewColor );
+ }
+ }
+ }
+ break;
+ }
+ }
+ if (bDefault && (aBoxItem.GetTop() || aBoxItem.GetBottom() ||
+ aBoxItem.GetLeft() || aBoxItem.GetRight()))
+ {
+ aBoxItem.SetDistance(MIN_BORDER_DIST);
+ }
+ aFrameSet.Put( aBoxItem );
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = rSh.GetCurFrmFmt();
+ if(pFmt && pFmt->IsAutoUpdateFmt())
+ {
+ rSh.AutoUpdateFrame(pFmt, aFrameSet);
+ }
+ else
+ rSh.SetFlyFrmAttr( aFrameSet );
+
+}
+
+
+
+void lcl_FrmGetMaxLineWidth(const SvxBorderLine* pBorderLine, SvxBorderLine& rBorderLine)
+{
+ if(pBorderLine->GetInWidth() > rBorderLine.GetInWidth())
+ rBorderLine.SetInWidth(pBorderLine->GetInWidth());
+
+ if(pBorderLine->GetOutWidth() > rBorderLine.GetOutWidth())
+ rBorderLine.SetOutWidth(pBorderLine->GetOutWidth());
+
+ if(pBorderLine->GetDistance() > rBorderLine.GetDistance())
+ rBorderLine.SetDistance(pBorderLine->GetDistance());
+
+ rBorderLine.SetColor(pBorderLine->GetColor());
+}
+
+
+
+void SwFrameShell::GetLineStyleState(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ BOOL bParentCntProt = rSh.IsSelObjProtected( (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) ) != 0;
+
+ if (bParentCntProt)
+ {
+ if (rSh.IsFrmSelected())
+ rSet.DisableItem( SID_FRAME_LINECOLOR );
+
+ rSet.DisableItem( SID_ATTR_BORDER );
+ rSet.DisableItem( SID_FRAME_LINESTYLE );
+ }
+ else
+ {
+ if (rSh.IsFrmSelected())
+ {
+ SfxItemSet aFrameSet( rSh.GetAttrPool(), RES_BOX, RES_BOX );
+
+ rSh.GetFlyFrmAttr(aFrameSet);
+
+ const SvxBorderLine* pLine = ((const SvxBoxItem&)aFrameSet.Get(RES_BOX)).GetTop();
+ rSet.Put(SvxColorItem(pLine ? pLine->GetColor() : Color(), SID_FRAME_LINECOLOR));
+ }
+ rSet.Put(SfxUInt16Item(SID_ATTR_BORDER, TRUE)); // Rahmencontroller: letzte Zeile einklappen
+ }
+}
+
+
+
+void SwFrameShell::GetBckColState(SfxItemSet &rSet)
+{
+ SwBaseShell::GetBckColState( rSet );
+}
+
+
+
+void SwFrameShell::ExecBckCol(SfxRequest& rReq)
+{
+ SwBaseShell::ExecBckCol( rReq );
+}
+
+
+
+void SwFrameShell::StateInsert(SfxItemSet &rSet)
+{
+ const int nSel = GetShell().GetSelectionType();
+
+ if ((nSel & SwWrtShell::SEL_GRF) || (nSel & SwWrtShell::SEL_OLE))
+ rSet.DisableItem(FN_INSERT_FRAME);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.199 2000/09/18 16:06:04 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.198 2000/09/07 15:59:29 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.197 2000/08/17 11:42:59 jp
+ remove the SW graphicmanager
+
+ Revision 1.196 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.195 2000/05/10 11:53:01 os
+ Basic API removed
+
+ Revision 1.194 2000/04/20 12:51:52 os
+ GetName() returns String&
+
+ Revision 1.193 2000/04/18 14:58:23 os
+ UNICODE
+
+ Revision 1.192 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.191 1999/09/24 14:38:32 os
+ hlnkitem.hxx now in SVX
+
+ Revision 1.190 1999/07/30 15:39:08 HR
+ #65293#: conflict with <goodies/grfmgr.hxx>
+
+
+ Rev 1.189 30 Jul 1999 17:39:08 HR
+ #65293#: conflict with <goodies/grfmgr.hxx>
+
+ Rev 1.188 02 Feb 1999 13:35:28 JP
+ Task #58423#: InsertDBCol - optional kann eine Rahmenvorlage mitgegeben werden
+
+ Rev 1.187 29 Jan 1999 17:19:38 JP
+ Task #58423#: Reports mit Bildern aus der Datenbank
+
+ Rev 1.186 27 Nov 1998 15:50:18 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.185 08 Sep 1998 17:03:06 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/shells/grfsh.cxx b/sw/source/ui/shells/grfsh.cxx
new file mode 100644
index 000000000000..619273c6a9fb
--- /dev/null
+++ b/sw/source/ui/shells/grfsh.cxx
@@ -0,0 +1,1010 @@
+/*************************************************************************
+ *
+ * $RCSfile: grfsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_IMPGRF_HXX //autogen
+#include <svx/impgrf.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SDGLUITM_HXX
+#include <svx/sdgluitm.hxx>
+#endif
+#ifndef _SDGCOITM_HXX
+#include <svx/sdgcoitm.hxx>
+#endif
+#ifndef _SDGGAITM_HXX
+#include <svx/sdggaitm.hxx>
+#endif
+#ifndef _SDGTRITM_HXX
+#include <svx/sdgtritm.hxx>
+#endif
+#ifndef _SDGINITM_HXX
+#include <svx/sdginitm.hxx>
+#endif
+#ifndef _SDGMOITM_HXX
+#include <svx/sdgmoitm.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _TEXTSH_HXX
+#include <textsh.hxx>
+#endif
+#ifndef _GRFSH_HXX
+#include <grfsh.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _FRMDLG_HXX
+#include <frmdlg.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _GRFATR_HXX
+#include <grfatr.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _CAPTION_HXX
+#include <caption.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _POPUP_HRC
+#include <popup.hrc>
+#endif
+
+#define SwGrfShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+
+
+SFX_IMPL_INTERFACE(SwGrfShell, SwBaseShell, SW_RES(STR_SHELLNAME_GRAPHIC))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_GRF_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_GRAFIK_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_GRAFIK));
+}
+
+
+void SwGrfShell::Execute(SfxRequest &rReq)
+{
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ SwWrtShell &rSh = GetShell();
+
+ USHORT nSlot = rReq.GetSlot();
+ switch(nSlot)
+ {
+ case SID_INSERT_GRAPHIC:
+ case FN_FORMAT_GRAFIC_DLG:
+ {
+ SwFlyFrmAttrMgr aMgr( FALSE, &rSh, rSh.IsFrmSelected() ?
+ FRMMGR_TYPE_NONE : FRMMGR_TYPE_GRF);
+ const SwViewOption* pVOpt = rSh.GetViewOptions();
+ SwViewOption aUsrPref( *pVOpt );
+
+ SfxItemSet aSet(GetPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ RES_GRFATR_MIRRORGRF, RES_GRFATR_CROPGRF,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ SID_ATTR_GRAF_KEEP_ZOOM, SID_ATTR_GRAF_KEEP_ZOOM,
+ SID_ATTR_GRAF_FRMSIZE, SID_ATTR_GRAF_FRMSIZE,
+ SID_ATTR_GRAF_FRMSIZE_PERCENT, SID_ATTR_GRAF_FRMSIZE_PERCENT,
+ SID_ATTR_GRAF_GRAPHIC, SID_ATTR_GRAF_GRAPHIC,
+ FN_PARAM_GRF_CONNECT, FN_PARAM_GRF_CONNECT,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ FN_GET_PRINT_AREA, FN_GET_PRINT_AREA,
+ FN_SET_FRM_NAME, FN_KEEP_ASPECT_RATIO,
+ FN_PARAM_GRF_DIALOG, FN_PARAM_GRF_DIALOG,
+ SID_DOCFRAME, SID_DOCFRAME,
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_SET_FRM_ALT_NAME, FN_SET_FRM_ALT_NAME,
+ 0);
+
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ aSet.Put(SfxUInt16Item(SID_HTML_MODE, nHtmlMode));
+ FieldUnit eMetric = ::GetDfltMetric((0 != (nHtmlMode&HTMLMODE_ON)));
+ SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, eMetric));
+
+ const SwRect* pRect = &rSh.GetAnyCurRect(RECT_PAGE);
+ SwFmtFrmSize aFrmSize( ATT_VAR_SIZE, pRect->Width(), pRect->Height());
+ aFrmSize.SetWhich( GetPool().GetWhich( SID_ATTR_PAGE_SIZE ) );
+ aSet.Put( aFrmSize );
+
+ aSet.Put(SfxStringItem(FN_SET_FRM_NAME, rSh.GetFlyName()));
+ if(nSlot == FN_FORMAT_GRAFIC_DLG)
+ aSet.Put(SfxStringItem(FN_SET_FRM_ALT_NAME, rSh.GetAlternateText()));
+
+ pRect = &rSh.GetAnyCurRect(RECT_PAGE_PRT);
+ aFrmSize.SetWidth( pRect->Width() );
+ aFrmSize.SetHeight( pRect->Height() );
+ aFrmSize.SetWhich( GetPool().GetWhich(FN_GET_PRINT_AREA) );
+ aSet.Put( aFrmSize );
+
+ aSet.Put( aMgr.GetAttrSet() );
+ aSet.SetParent( aMgr.GetAttrSet().GetParent() );
+
+ // Bei %-Werten Groesse initialisieren
+ SwFmtFrmSize& rSize = (SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE);
+ if (rSize.GetWidthPercent() && rSize.GetWidthPercent() != 0xff)
+ rSize.SetWidth(rSh.GetAnyCurRect(RECT_FLY_EMBEDDED).Width());
+ if (rSize.GetHeightPercent() && rSize.GetHeightPercent() != 0xff)
+ rSize.SetHeight(rSh.GetAnyCurRect(RECT_FLY_EMBEDDED).Height());
+
+ // and now set the size for "external" tabpages
+ {
+ SvxSizeItem aSzItm( SID_ATTR_GRAF_FRMSIZE, rSize.GetSize() );
+ aSet.Put( aSzItm );
+
+ Size aSz( rSize.GetWidthPercent(), rSize.GetHeightPercent() );
+ if( 0xff == aSz.Width() ) aSz.Width() = 0;
+ if( 0xff == aSz.Height() ) aSz.Height() = 0;
+
+ aSzItm.SetSize( aSz );
+ aSzItm.SetWhich( SID_ATTR_GRAF_FRMSIZE_PERCENT );
+ aSet.Put( aSzItm );
+ }
+
+ String sGrfNm, sFilterNm;
+ rSh.GetGrfNms( &sGrfNm, &sFilterNm );
+ if( sGrfNm.Len() )
+ {
+ aSet.Put( SvxBrushItem( INetURLObject::decode( sGrfNm,
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ),
+ sFilterNm, GPOS_LT,
+ SID_ATTR_GRAF_GRAPHIC ));
+ }
+ else
+ {
+ aSet.Put( SvxBrushItem( rSh.GetGraphicObj(), GPOS_LT,
+ SID_ATTR_GRAF_GRAPHIC ));
+ }
+ aSet.Put(SfxBoolItem( FN_PARAM_GRF_CONNECT, sGrfNm.Len() ));
+
+ // get Mirror and Crop
+ {
+ SfxItemSet aTmpSet( rSh.GetAttrPool(),
+ RES_GRFATR_MIRRORGRF, RES_GRFATR_CROPGRF );
+
+ rSh.GetAttr( aTmpSet );
+ aSet.Put( aTmpSet );
+ }
+
+ aSet.Put(SfxBoolItem(FN_KEEP_ASPECT_RATIO, aUsrPref.IsKeepRatio()));
+ aSet.Put(SfxBoolItem( SID_ATTR_GRAF_KEEP_ZOOM, aUsrPref.IsGrfKeepZoom()));
+
+ aSet.Put(SfxFrameItem( SID_DOCFRAME, GetView().GetViewFrame()->GetTopFrame()));
+
+ SwFrmDlg *pDlg = new SwFrmDlg( GetView().GetViewFrame(),
+ GetView().GetWindow(),
+ aSet, FALSE, DLG_FRM_GRF );
+ if( pDlg->Execute() )
+ {
+ rSh.StartAllAction();
+ rSh.StartUndo(UNDO_START);
+ const SfxPoolItem* pItem;
+ SfxItemSet* pSet = (SfxItemSet*)pDlg->GetOutputItemSet();
+
+ // change the 2 frmsize SizeItems to the correct SwFrmSizeItem
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ SID_ATTR_GRAF_FRMSIZE, FALSE, &pItem ))
+ {
+ SwFmtFrmSize aSize;
+ const Size& rSz = ((SvxSizeItem*)pItem)->GetSize();
+ aSize.SetWidth( rSz.Width() );
+ aSize.SetHeight( rSz.Height() );
+
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ SID_ATTR_GRAF_FRMSIZE_PERCENT, FALSE, &pItem ))
+ {
+ const Size& rSz = ((SvxSizeItem*)pItem)->GetSize();
+ aSize.SetWidthPercent( rSz.Width() );
+ aSize.SetHeightPercent( rSz.Height() );
+ }
+ pSet->Put( aSize );
+ }
+ else
+ pSet->ClearItem( RES_FRM_SIZE );
+
+ // Vorlagen-AutoUpdate
+ SwFrmFmt* pFmt = rSh.GetCurFrmFmt();
+ if(pFmt && pFmt->IsAutoUpdateFmt())
+ {
+ pFmt->SetAttr(*pSet);
+ SfxItemSet aShellSet(GetPool(), RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_SURROUND, RES_SURROUND,
+ RES_ANCHOR, RES_ANCHOR,
+ RES_VERT_ORIENT,RES_HORI_ORIENT,
+ 0);
+ aShellSet.Put(*pSet);
+ aMgr.SetAttrSet(aShellSet);
+ }
+ else
+ {
+ aMgr.SetAttrSet(*pSet);
+ }
+ aMgr.UpdateFlyFrm();
+
+ BOOL bApplyUsrPref = FALSE;
+ if (SFX_ITEM_SET == pSet->GetItemState(
+ FN_KEEP_ASPECT_RATIO, TRUE, &pItem ))
+ {
+ aUsrPref.SetKeepRatio(
+ ((const SfxBoolItem*)pItem)->GetValue() );
+ bApplyUsrPref = TRUE;
+ }
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ SID_ATTR_GRAF_KEEP_ZOOM, TRUE, &pItem ))
+ {
+ aUsrPref.SetGrfKeepZoom(
+ ((const SfxBoolItem*)pItem)->GetValue() );
+ bApplyUsrPref = TRUE;
+ }
+
+ if( bApplyUsrPref )
+ SW_MOD()->ApplyUsrPref(aUsrPref, &GetView());
+
+ // and now set all the graphic attributes and other stuff
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ SID_ATTR_GRAF_GRAPHIC, TRUE, &pItem ))
+ {
+ if( ((SvxBrushItem*)pItem)->GetGraphicLink() )
+ sGrfNm = *((SvxBrushItem*)pItem)->GetGraphicLink();
+ else
+ sGrfNm.Erase();
+
+ if( ((SvxBrushItem*)pItem)->GetGraphicFilter() )
+ sFilterNm = *((SvxBrushItem*)pItem)->GetGraphicFilter();
+ else
+ sFilterNm.Erase();
+
+ if( sGrfNm.Len() )
+ {
+ SwWait aWait( *GetView().GetDocShell(), TRUE );
+ rSh.ReRead( URIHelper::SmartRelToAbs( sGrfNm ),
+ sFilterNm, 0 );
+ }
+ }
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ FN_SET_FRM_ALT_NAME, TRUE, &pItem ))
+ rSh.SetAlternateText(
+ ((const SfxStringItem*)pItem)->GetValue() );
+
+ SfxItemSet aGrfSet( rSh.GetAttrPool(), RES_GRFATR_BEGIN,
+ RES_GRFATR_END-1 );
+ aGrfSet.Put( *pSet );
+ if( aGrfSet.Count() )
+ rSh.SetAttr( aGrfSet );
+
+ rSh.EndUndo(UNDO_END);
+ rSh.EndAllAction();
+ }
+ delete pDlg;
+ }
+ break;
+
+ case SID_SIM_START:
+ if ( SFX_APP()->HasFeature( SFX_FEATURE_SIMAGE ))
+ {
+ String sGrfNm;
+ rSh.GetGrfNms( &sGrfNm, 0 );
+
+ if( sGrfNm.Len() )
+ {
+ InfoBox aAsk( GetView().GetWindow(),
+ SW_RES(MSG_REMOVE_LINK));
+ if( RET_NO == aAsk.Execute())
+ break;
+ }
+
+ GetView().GetEditWin().GrfToOle();
+ if( rSh.IsOLEObj() )
+ {
+ rSh.LaunchOLEObj();
+ }
+ else
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_FORMAT_GRAFIC_DLG );
+ }
+ break;
+ case FN_GRAPHIC_MIRROR_ON_EVEN_PAGES:
+ {
+ SfxItemSet aSet(rSh.GetAttrPool(), RES_GRFATR_MIRRORGRF, RES_GRFATR_MIRRORGRF);
+ rSh.GetAttr( aSet );
+ SwMirrorGrf aGrf((const SwMirrorGrf &)aSet.Get(RES_GRFATR_MIRRORGRF));
+ aGrf.SetGrfToggle(!aGrf.IsGrfToggle());
+ rSh.SetAttr(aGrf);
+ }
+ break;
+
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+
+}
+
+
+void SwGrfShell::ExecAttr( SfxRequest &rReq )
+{
+ USHORT nGrfType;
+ if( CNT_GRF == GetShell().GetCntType() &&
+ ( GRAPHIC_BITMAP == ( nGrfType = GetShell().GetGraphicType()) ||
+ GRAPHIC_GDIMETAFILE == nGrfType ))
+ {
+ SfxItemSet aGrfSet( GetShell().GetAttrPool(), RES_GRFATR_BEGIN,
+ RES_GRFATR_END -1 );
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ USHORT nSlot = rReq.GetSlot();
+ if( !pArgs || SFX_ITEM_SET != pArgs->GetItemState( nSlot, FALSE, &pItem ))
+ pItem = 0;
+
+ switch( nSlot )
+ {
+ case FN_FLIP_VERT_GRAFIC:
+ case FN_FLIP_HORZ_GRAFIC:
+ {
+ GetShell().GetAttr( aGrfSet );
+ SwMirrorGrf aMirror( (SwMirrorGrf&)aGrfSet.Get(
+ RES_GRFATR_MIRRORGRF ) );
+ USHORT nMirror = aMirror.GetValue();
+ if( FN_FLIP_VERT_GRAFIC == nSlot )
+ switch( nMirror )
+ {
+ case RES_DONT_MIRROR_GRF: nMirror = RES_MIRROR_GRF_VERT;
+ break;
+ case RES_MIRROR_GRF_HOR: nMirror = RES_MIRROR_GRF_BOTH;
+ break;
+ case RES_MIRROR_GRF_VERT: nMirror = RES_DONT_MIRROR_GRF;
+ break;
+ case RES_MIRROR_GRF_BOTH: nMirror = RES_MIRROR_GRF_HOR;
+ break;
+ }
+ else
+ switch( nMirror )
+ {
+ case RES_DONT_MIRROR_GRF: nMirror = RES_MIRROR_GRF_HOR;
+ break;
+ case RES_MIRROR_GRF_VERT: nMirror = RES_MIRROR_GRF_BOTH;
+ break;
+ case RES_MIRROR_GRF_HOR: nMirror = RES_DONT_MIRROR_GRF;
+ break;
+ case RES_MIRROR_GRF_BOTH: nMirror = RES_MIRROR_GRF_VERT;
+ break;
+ }
+ aMirror.SetValue( nMirror );
+ aGrfSet.ClearItem();
+ aGrfSet.Put( aMirror );
+ }
+ break;
+
+ case SID_ATTR_GRAF_LUMINANCE:
+ if( pItem )
+ aGrfSet.Put( SwLuminanceGrf(
+ ((SfxInt16Item*)pItem)->GetValue() ));
+ break;
+ case SID_ATTR_GRAF_CONTRAST:
+ if( pItem )
+ aGrfSet.Put( SwContrastGrf(
+ ((SfxInt16Item*)pItem)->GetValue() ));
+ break;
+ case SID_ATTR_GRAF_RED:
+ if( pItem )
+ aGrfSet.Put( SwChannelRGrf(
+ ((SfxInt16Item*)pItem)->GetValue() ));
+ break;
+ case SID_ATTR_GRAF_GREEN:
+ if( pItem )
+ aGrfSet.Put( SwChannelGGrf(
+ ((SfxInt16Item*)pItem)->GetValue() ));
+ break;
+ case SID_ATTR_GRAF_BLUE:
+ if( pItem )
+ aGrfSet.Put( SwChannelBGrf(
+ ((SfxInt16Item*)pItem)->GetValue() ));
+ break;
+ case SID_ATTR_GRAF_GAMMA:
+ if( pItem )
+ aGrfSet.Put( SwGammaGrf(
+ ((SfxUInt32Item*)pItem)->GetValue() / 100 ));
+ break;
+ case SID_ATTR_GRAF_TRANSPARENCE:
+ if( pItem )
+ aGrfSet.Put( SwTransparencyGrf(
+ ((SfxUInt16Item*)pItem)->GetValue() ));
+ break;
+ case SID_ATTR_GRAF_INVERT:
+ if( pItem )
+ aGrfSet.Put( SwInvertGrf(
+ ((SfxBoolItem*)pItem)->GetValue() ));
+ break;
+
+ case SID_ATTR_GRAF_MODE:
+ if( pItem )
+ aGrfSet.Put( SwDrawModeGrf(
+ ((SfxUInt16Item*)pItem)->GetValue() ));
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ }
+ if( aGrfSet.Count() )
+ GetShell().SetAttr( aGrfSet );
+ }
+ GetView().GetViewFrame()->GetBindings().Invalidate(rReq.GetSlot());
+}
+
+
+void SwGrfShell::GetState(SfxItemSet &rSet)
+{
+ // case SID_SIM_START:
+ if ( GetShell().IsSelObjProtected(FLYPROTECT_CONTENT) ||
+ !SFX_APP()->HasFeature( SFX_FEATURE_SIMAGE ) )
+ {
+ rSet.DisableItem(SID_SIM_START);
+ }
+ else
+ {
+ SwDocShell &rSh = *GetView().GetDocShell();
+ if ( rSh.GetProtocol().IsInPlaceActive() ||
+ rSh.GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
+ rSet.DisableItem(SID_SIM_START);
+ }
+}
+
+
+void SwGrfShell::GetAttrState(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SfxItemSet aCoreSet( GetPool(), aNoTxtNodeSetRange );
+ rSh.GetAttr( aCoreSet );
+ BOOL bParentCntProt = 0 != rSh.IsSelObjProtected(
+ (FlyProtectType)(FLYPROTECT_CONTENT|FLYPROTECT_PARENT) );
+
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ while( nWhich )
+ {
+ BOOL bDisable = bParentCntProt;
+ switch( nWhich )
+ {
+ case FN_FORMAT_GRAFIC_DLG:
+ break;
+
+ case FN_FLIP_VERT_GRAFIC:
+ if( !bParentCntProt )
+ {
+ UINT16 nState = ((const SwMirrorGrf &) aCoreSet.Get(
+ RES_GRFATR_MIRRORGRF )).GetValue();
+
+ rSet.Put(SfxBoolItem( nWhich, nState == RES_MIRROR_GRF_VERT ||
+ nState == RES_MIRROR_GRF_BOTH));
+ }
+ break;
+
+ case FN_FLIP_HORZ_GRAFIC:
+ if( !bParentCntProt )
+ {
+ UINT16 nState = ((const SwMirrorGrf &) aCoreSet.Get(
+ RES_GRFATR_MIRRORGRF )).GetValue();
+
+ rSet.Put(SfxBoolItem( nWhich, nState == RES_MIRROR_GRF_HOR ||
+ nState == RES_MIRROR_GRF_BOTH));
+ }
+ break;
+
+
+ case SID_ATTR_GRAF_LUMINANCE:
+ if( !bParentCntProt )
+ rSet.Put( SfxInt16Item( nWhich, ((SwLuminanceGrf&)
+ aCoreSet.Get(RES_GRFATR_LUMINANCE)).GetValue() ));
+ break;
+ case SID_ATTR_GRAF_CONTRAST:
+ if( !bParentCntProt )
+ rSet.Put( SfxInt16Item( nWhich, ((SwContrastGrf&)
+ aCoreSet.Get(RES_GRFATR_CONTRAST)).GetValue() ));
+ break;
+ case SID_ATTR_GRAF_RED:
+ if( !bParentCntProt )
+ rSet.Put( SfxInt16Item( nWhich, ((SwChannelRGrf&)
+ aCoreSet.Get(RES_GRFATR_CHANNELR)).GetValue() ));
+ break;
+ case SID_ATTR_GRAF_GREEN:
+ if( !bParentCntProt )
+ rSet.Put( SfxInt16Item( nWhich, ((SwChannelGGrf&)
+ aCoreSet.Get(RES_GRFATR_CHANNELG)).GetValue() ));
+ break;
+ case SID_ATTR_GRAF_BLUE:
+ if( !bParentCntProt )
+ rSet.Put( SfxInt16Item( nWhich, ((SwChannelBGrf&)
+ aCoreSet.Get(RES_GRFATR_CHANNELB)).GetValue() ));
+ break;
+
+ case SID_ATTR_GRAF_GAMMA:
+ if( !bParentCntProt )
+ rSet.Put( SfxUInt32Item( nWhich, ((SwGammaGrf&)
+ aCoreSet.Get(RES_GRFATR_GAMMA)).GetValue() * 100 ));
+ break;
+ case SID_ATTR_GRAF_TRANSPARENCE:
+ if( !bParentCntProt )
+ {
+ const GraphicObject& rGrfObj = rSh.GetGraphicObj();
+ if( rGrfObj.IsAnimated() ||
+ GRAPHIC_GDIMETAFILE == rGrfObj.GetType() )
+ bDisable = TRUE;
+ else
+ rSet.Put( SfxUInt16Item( nWhich, ((SwTransparencyGrf&)
+ aCoreSet.Get(RES_GRFATR_TRANSPARENCY)).GetValue() ));
+ }
+ break;
+ case SID_ATTR_GRAF_INVERT:
+ if( !bParentCntProt )
+ rSet.Put( SfxBoolItem( nWhich, ((SwInvertGrf&)
+ aCoreSet.Get(RES_GRFATR_INVERT)).GetValue() ));
+ break;
+
+ case SID_ATTR_GRAF_MODE:
+ if( !bParentCntProt )
+ rSet.Put( SfxUInt16Item( nWhich, (GraphicDrawMode)((SwDrawModeGrf&)
+ aCoreSet.Get(RES_GRFATR_DRAWMODE)).GetValue() ));
+ break;
+
+ default:
+ bDisable = FALSE;
+ }
+
+ if( bDisable )
+ rSet.DisableItem( nWhich );
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+SwGrfShell::SwGrfShell(SwView &rView) :
+ SwBaseShell(rView)
+
+{
+ SetName(String::CreateFromAscii("Graphic"));
+ SetHelpId(SW_GRFSHELL);
+}
+
+
+BOOL SwTextShell::InsertGraphicDlg()
+{
+#ifndef ENABLE_PROP_WITHOUTLINK
+#define ENABLE_PROP_WITHOUTLINK 0x08
+#endif
+
+ BOOL bReturn = FALSE;
+ SwView &rVw = GetView();
+ USHORT nHtmlMode = ::GetHtmlMode(rVw.GetDocShell());
+ // im HTML-Mode nur verknuepft einfuegen
+ USHORT nEnable = ENABLE_ALL;
+ if(nHtmlMode & HTMLMODE_ON)
+ {
+ nEnable &= ~ENABLE_LINK;
+ nEnable |= ENABLE_PROP_WITHOUTLINK;
+ }
+ SvxImportGraphicDialog *pDlg =
+ new SvxImportGraphicDialog( rVw.GetWindow(),
+ SW_RESSTR(STR_INSERT_GRAPHIC ), nEnable );
+
+ pDlg->SetPropertyHdl(LINK(this, SwTextShell, InitGraphicFrame));
+
+ ASSERT( !pInsGrfSetPtr, "who has not delete the GraphicSet pointer?" );
+ pInsGrfSetPtr = 0;
+
+ if( pDlg->Execute() == RET_OK )
+ {
+ GetShell().StartAction();
+ GetShell().StartUndo(UNDO_INSERT);
+ Graphic* pPreViewGrf = pDlg->GetGraphic();
+
+ BOOL bAsLink = nHtmlMode & HTMLMODE_ON ? TRUE : pDlg->AsLink();
+ USHORT nError = InsertGraphic( pDlg->GetPath(), pDlg->GetCurFilter(),
+ bAsLink, &pDlg->GetFilter(), pPreViewGrf );
+
+ // Format ist ungleich Current Filter, jetzt mit auto. detection
+ if( nError == GRFILTER_FORMATERROR )
+ nError = InsertGraphic( pDlg->GetPath(), aEmptyStr, bAsLink,
+ &pDlg->GetFilter(), pPreViewGrf );
+
+ RESOURCE_TYPE nResId = 0;
+ switch( nError )
+ {
+ case GRFILTER_OPENERROR:
+ nResId = STR_GRFILTER_OPENERROR;
+ break;
+ case GRFILTER_IOERROR:
+ nResId = STR_GRFILTER_IOERROR;
+ break;
+ case GRFILTER_FORMATERROR:
+ nResId = STR_GRFILTER_FORMATERROR;
+ break;
+ case GRFILTER_VERSIONERROR:
+ nResId = STR_GRFILTER_VERSIONERROR;
+ break;
+ case GRFILTER_FILTERERROR:
+ nResId = STR_GRFILTER_FILTERERROR;
+ break;
+ case GRFILTER_TOOBIG:
+ nResId = STR_GRFILTER_TOOBIG;
+ break;
+ }
+
+ if( nResId )
+ {
+ GetShell().EndAction();
+ InfoBox aInfoBox( rVw.GetWindow(), SW_RESSTR( nResId ));
+ aInfoBox.Execute();
+ }
+ else
+ {
+ // set the specific graphic attrbutes to the graphic
+ if( pInsGrfSetPtr )
+ {
+ // set the normal graphic attributes
+ SwWrtShell& rSh = GetShell();
+ rSh.SetAttr( *pInsGrfSetPtr );
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pInsGrfSetPtr->GetItemState(
+ FN_SET_FRM_ALT_NAME, TRUE, &pItem ))
+ rSh.SetAlternateText(
+ ((const SfxStringItem*)pItem)->GetValue() );
+ }
+ GetShell().EndAction();
+ bReturn = TRUE;
+ rVw.AutoCaption( GRAPHIC_CAP );
+ }
+ rVw.GetWrtShell().EndUndo(UNDO_INSERT); // wegen moegl. Shellwechsel
+ }
+
+ delete pInsGrfSetPtr, pInsGrfSetPtr = 0;
+
+ DELETEZ( pFrmMgr );
+ delete pDlg;
+
+ return bReturn;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwTextShell, InitGraphicFrame, Button *, pButton )
+{
+//OS: pButton ist eigentlich der Pointer auf den GrafikEinfuegen-Dialog
+ SwWrtShell &rSh = GetShell();
+ SwViewOption aUsrPref( *rSh.GetViewOptions() );
+ SvxImportGraphicDialog* pGrfDlg = (SvxImportGraphicDialog*) pButton;
+ if (!pFrmMgr)
+ pFrmMgr = new SwFlyFrmAttrMgr( TRUE, &rSh, FRMMGR_TYPE_GRF );
+
+ static USHORT __READONLY_DATA aGrfAttrRange[] =
+ {
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+
+ SID_ATTR_GRAF_KEEP_ZOOM, SID_ATTR_GRAF_KEEP_ZOOM,
+ SID_ATTR_GRAF_FRMSIZE, SID_ATTR_GRAF_FRMSIZE,
+ SID_ATTR_GRAF_FRMSIZE_PERCENT, SID_ATTR_GRAF_FRMSIZE_PERCENT,
+ SID_ATTR_GRAF_GRAPHIC, SID_ATTR_GRAF_GRAPHIC,
+
+ FN_PARAM_GRF_CONNECT, FN_PARAM_GRF_CONNECT,
+ FN_PARAM_FILTER, FN_PARAM_FILTER,
+ RES_GRFATR_MIRRORGRF, RES_GRFATR_CROPGRF,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ FN_GET_PRINT_AREA, FN_GET_PRINT_AREA,
+ FN_SET_FRM_NAME, FN_SET_FRM_NAME,
+ FN_KEEP_ASPECT_RATIO, FN_KEEP_ASPECT_RATIO,
+ FN_PARAM_GRF_REALSIZE, FN_PARAM_GRF_DIALOG,
+ SID_DOCFRAME, SID_DOCFRAME,
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_SET_FRM_ALT_NAME, FN_SET_FRM_ALT_NAME,
+ 0
+ };
+
+ SfxItemSet aSet(GetPool(), aGrfAttrRange );
+
+ const SwRect &rPg = GetShell().GetAnyCurRect(RECT_PAGE);
+ SwFmtFrmSize aFrmSize(ATT_VAR_SIZE, rPg.Width(), rPg.Height());
+ aFrmSize.SetWhich(GetPool().GetWhich(SID_ATTR_PAGE_SIZE));
+ aSet.Put(aFrmSize);
+
+ const SwRect &rPr = GetShell().GetAnyCurRect(RECT_PAGE_PRT);
+ SwFmtFrmSize aPrtSize(ATT_VAR_SIZE, rPr.Width(), rPr.Height());
+ aPrtSize.SetWhich(GetPool().GetWhich(FN_GET_PRINT_AREA));
+ aSet.Put(aPrtSize);
+
+ aSet.Put( pFrmMgr->GetAttrSet() );
+ aSet.SetParent( pFrmMgr->GetAttrSet().GetParent() );
+
+ aSet.Put(SfxFrameItem( SID_DOCFRAME, GetView().GetViewFrame()->GetTopFrame()));
+
+ // niemals connected, sonst darf man den Grafikdialog doppelt aufrufen!
+ aSet.Put(SfxBoolItem(FN_PARAM_GRF_CONNECT, FALSE));
+ aSet.Put(SfxBoolItem(FN_KEEP_ASPECT_RATIO, aUsrPref.IsKeepRatio()));
+
+ aSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(GetView().GetDocShell())));
+
+ const Graphic* pGrf = pGrfDlg->GetGraphic();
+ if(pGrf)
+ {
+ Size aSize = ::GetGraphicSizeTwip(*pGrf, &GetView().GetEditWin());
+ aSize.Width() += pFrmMgr->CalcWidthSpace();
+ aSize.Height()+= pFrmMgr->CalcHeightSpace();
+ aSet.Put(SwFmtFrmSize(ATT_VAR_SIZE, aSize.Width(), aSize.Height()));
+ aSet.Put(SvxSizeItem( FN_PARAM_GRF_REALSIZE, aSize ));
+ aSet.Put( SvxSizeItem( SID_ATTR_GRAF_FRMSIZE, aSize ));
+
+ String sGrfNm( pGrfDlg->GetPath() );
+ if( sGrfNm.Len() )
+ {
+ aSet.Put( SvxBrushItem( INetURLObject::decode( sGrfNm,
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ),
+ aEmptyStr, GPOS_LT,
+ SID_ATTR_GRAF_GRAPHIC ));
+ }
+ else
+ {
+ aSet.Put( SvxBrushItem( *pGrf, GPOS_LT, SID_ATTR_GRAF_GRAPHIC ));
+ }
+ }
+
+
+ SwFrmDlg *pDlg = new SwFrmDlg( GetView().GetViewFrame(), pButton,
+ aSet, pGrf == 0, DLG_FRM_GRF );
+ if( pDlg->Execute() )
+ {
+ SfxItemSet* pSet = (SfxItemSet*)pDlg->GetOutputItemSet();
+
+ // change the 2 frmsize SizeItems to the correct SwFrmSizeItem
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ SID_ATTR_GRAF_FRMSIZE, FALSE, &pItem ))
+ {
+ SwFmtFrmSize aSize;
+ const Size& rSz = ((SvxSizeItem*)pItem)->GetSize();
+ aSize.SetWidth( rSz.Width() );
+ aSize.SetHeight( rSz.Height() );
+
+ if( SFX_ITEM_SET == pSet->GetItemState(
+ SID_ATTR_GRAF_FRMSIZE_PERCENT, FALSE, &pItem ))
+ {
+ const Size& rSz = ((SvxSizeItem*)pItem)->GetSize();
+ aSize.SetWidthPercent( rSz.Width() );
+ aSize.SetHeightPercent( rSz.Height() );
+ }
+ pSet->Put( aSize );
+ }
+ else
+ pSet->ClearItem( RES_FRM_SIZE );
+
+ pFrmMgr->SetAttrSet( *pSet );
+
+ if( SFX_ITEM_SET == pSet->GetItemState(FN_KEEP_ASPECT_RATIO, TRUE, &pItem))
+ {
+ aUsrPref.SetKeepRatio( ((const SfxBoolItem*)pItem)->GetValue() );
+ SW_MOD()->ApplyUsrPref(aUsrPref, &GetView());
+ }
+
+ if( pInsGrfSetPtr )
+ pInsGrfSetPtr->ClearItem();
+ else
+ pInsGrfSetPtr = new SfxItemSet( rSh.GetAttrPool(),
+ RES_GRFATR_MIRRORGRF, RES_GRFATR_CROPGRF,
+ FN_SET_FRM_ALT_NAME, FN_SET_FRM_ALT_NAME,
+ 0 );
+
+ pInsGrfSetPtr->Put( *pSet );
+ if( !pInsGrfSetPtr->Count() )
+ delete pInsGrfSetPtr, pInsGrfSetPtr = 0;
+ }
+
+ delete pDlg;
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.134 2000/09/18 16:06:04 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.133 2000/09/07 15:59:29 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.132 2000/08/25 14:08:54 jp
+ Graphic Crop-Attribut and TabPage exported to SVX
+
+ Revision 1.131 2000/08/17 11:43:17 jp
+ remove the SW graphicmanager and UI with decoded URLs
+
+ Revision 1.130 2000/08/17 06:34:11 jp
+ Bug #77713#: GetAttrState - Transparency not for animated graphics and metafiles
+
+ Revision 1.129 2000/08/08 13:44:14 os
+ #77423# separate graphic shell
+
+ Revision 1.128 2000/08/02 08:04:26 jp
+ changes for graphic attributes
+
+ Revision 1.127 2000/07/31 19:25:36 jp
+ new attributes for CJK/CTL and graphic
+
+ Revision 1.126 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.125 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.124 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.123 2000/02/11 14:57:17 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.122 1999/11/22 14:55:36 os
+ operator precedence
+
+ Revision 1.121 1999/03/18 13:40:50 OS
+ #61169# #61489# Masseinheiten fuer Text u. HTML am Module setzen, nicht an der App
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/listsh.cxx b/sw/source/ui/shells/listsh.cxx
new file mode 100644
index 000000000000..a979042841b7
--- /dev/null
+++ b/sw/source/ui/shells/listsh.cxx
@@ -0,0 +1,362 @@
+/*************************************************************************
+ *
+ * $RCSfile: listsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "uiparam.hxx"
+#include "hintids.hxx"
+
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SHL_HXX //autogen
+#include <tools/shl.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#include "wrtsh.hxx"
+#include "swmodule.hxx"
+#include "frmatr.hxx"
+#include "helpid.h"
+#include "globals.hrc"
+#include "shells.hrc"
+#include "uinums.hxx"
+#include "listsh.hxx"
+#include "poolfmt.hxx"
+#include "view.hxx"
+#include "edtwin.hxx"
+
+#define SwListShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+
+SFX_IMPL_INTERFACE(SwListShell, SwBaseShell, SW_RES(STR_SHELLNAME_LIST))
+{
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_NUM_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_LIST));
+}
+
+
+TYPEINIT1(SwListShell,SwBaseShell)
+
+
+void SwListShell::Execute(SfxRequest &rReq)
+{
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ USHORT nSlot = rReq.GetSlot();
+ SwWrtShell& rSh = GetShell();
+ switch (nSlot)
+ {
+ case FN_NUM_BULLET_DOWN:
+ rSh.NumUpDown();
+ GetView().GetViewFrame()->GetBindings().Invalidate( SID_TABLE_CELL ); // StatusZeile updaten!
+ break;
+
+ case FN_NUM_BULLET_NEXT:
+ rSh.GotoNextNum();
+ break;
+
+ case FN_NUM_BULLET_NONUM:
+ rSh.NoNum();
+ break;
+
+ case FN_NUM_BULLET_OFF:
+ rSh.DelNumRules();
+ break;
+
+ case FN_NUM_BULLET_OUTLINE_DOWN:
+ rSh.MoveNumParas(FALSE, FALSE);
+ break;
+
+ case FN_NUM_BULLET_OUTLINE_MOVEDOWN:
+ rSh.MoveNumParas(TRUE, FALSE);
+ break;
+
+ case FN_NUM_BULLET_OUTLINE_MOVEUP:
+ rSh.MoveNumParas(TRUE, TRUE);
+ break;
+
+ case FN_NUM_BULLET_OUTLINE_UP:
+ rSh.MoveNumParas(FALSE, TRUE);
+ break;
+
+ case FN_NUM_BULLET_PREV:
+ rSh.GotoPrevNum();
+ break;
+
+ case FN_NUM_BULLET_UP:
+ rSh.NumUpDown(FALSE);
+ GetView().GetViewFrame()->GetBindings().Invalidate( SID_TABLE_CELL ); // StatusZeile updaten!
+ break;
+
+
+ case FN_NUM_OR_NONUM:
+ {
+ BOOL bApi = rReq.IsAPI();
+ BOOL bDelete = !rSh.IsNoNum(!bApi);
+ if(pArgs )
+ bDelete = ((SfxBoolItem &)pArgs->Get(rReq.GetSlot())).GetValue();
+ rSh.NumOrNoNum( bDelete, !bApi );
+ }
+ break;
+ case FN_NUMBER_NEWSTART:
+ rSh.SetNumRuleStart(!rSh.IsNumRuleStart());
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+
+void SwListShell::GetState(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ while ( nWhich )
+ {
+ switch( nWhich )
+ {
+ case FN_NUM_OR_NONUM:
+ rSet.Put(SfxBoolItem(nWhich, GetShell().IsNoNum(FALSE)));
+ break;
+ case FN_NUMBER_NEWSTART:
+ rSet.Put(SfxBoolItem(nWhich, GetShell().IsNumRuleStart()));
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+SwListShell::SwListShell(SwView &rView) :
+ SwBaseShell(rView)
+{
+ SetName(String::CreateFromAscii("List"));
+ SetHelpId(SW_LISTSHELL);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.68 2000/09/18 16:06:04 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.67 2000/09/07 15:59:30 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.66 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.65 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.64 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.63 1999/03/12 14:13:38 OS
+ #63141# BulletURL setzen-> Groesse ermitteln
+
+
+ Rev 1.62 12 Mar 1999 15:13:38 OS
+ #63141# BulletURL setzen-> Groesse ermitteln
+
+ Rev 1.61 17 Nov 1998 10:58:32 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.60 06 Nov 1998 14:41:48 OS
+ #57903# NumOff kann weg
+
+ Rev 1.59 08 Dec 1997 11:50:04 OS
+ benannte Numerierungen entfernt
+
+ Rev 1.58 03 Dec 1997 17:07:08 OS
+ FN_NUMBER_NEWSTART eingebaut
+
+ Rev 1.57 24 Nov 1997 11:01:02 JP
+ Execute: bei NumUp/-Down die Statusleiste invalidieren
+
+ Rev 1.56 24 Nov 1997 09:47:04 MA
+ includes
+
+ Rev 1.55 17 Nov 1997 10:21:14 JP
+ Umstellung Numerierung
+
+ Rev 1.54 03 Nov 1997 13:55:48 MA
+ precomp entfernt
+
+ Rev 1.53 19 Aug 1997 10:54:50 OS
+ Exchange wird per API mit String beliefert #42898#
+
+ Rev 1.52 15 Aug 1997 11:48:38 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.51 11 Aug 1997 09:12:28 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.50 05 Aug 1997 16:29:14 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.49 08 Jul 1997 14:11:46 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.48 11 Mar 1997 16:27:00 AMA
+ New: Absaetze verschieben durch Strg + CursorUp/Down (auch ausserhalb von Num.)
+
+ Rev 1.47 20 Feb 1997 19:40:08 OS
+ includes
+
+ Rev 1.46 20 Feb 1997 17:18:26 OS
+ kleiner Bug
+
+ Rev 1.45 20 Feb 1997 11:58:54 OS
+ NumLevel ans Basic rausgeben
+
+ Rev 1.44 19 Feb 1997 16:57:22 OS
+ Basic fuer die NumRules
+
+ Rev 1.43 11 Dec 1996 10:50:56 MA
+ Warnings
+
+ Rev 1.42 11 Nov 1996 13:37:34 MA
+ ResMgr
+
+ Rev 1.41 28 Aug 1996 15:55:18 OS
+ includes
+
+ Rev 1.40 13 Aug 1996 12:38:40 OS
+ neue Shellnamen im IDL-Interface
+
+ Rev 1.39 22 Jul 1996 20:54:26 JP
+ Anpassung an die neuen SwUiNumRules
+
+ Rev 1.38 25 Jun 1996 19:50:52 HJS
+ includes
+
+ Rev 1.37 17 Apr 1996 09:32:52 OM
+ Unbenutzte Fkt Disable entfernt
+
+ Rev 1.36 28 Mar 1996 14:20:50 OS
+ neu: NumberOrNoNumber
+
+ Rev 1.35 03 Dec 1995 11:22:08 OS
+ +include itemdef.hxx
+
+ Rev 1.34 29 Nov 1995 13:48:42 OS
+ -slotadd.hxx
+
+ Rev 1.33 27 Nov 1995 19:39:40 OM
+ swslots->303a
+
+ Rev 1.32 24 Nov 1995 16:59:32 OM
+ PCH->PRECOMPILED
+
+ Rev 1.31 17 Nov 1995 13:02:00 MA
+ Segmentierung
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/shells/makefile.mk b/sw/source/ui/shells/makefile.mk
new file mode 100644
index 000000000000..a07d291ae426
--- /dev/null
+++ b/sw/source/ui/shells/makefile.mk
@@ -0,0 +1,120 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=shells
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+SRCFILES = \
+ shells.src \
+ pseudo.src
+
+SLOFILES = \
+ $(SLO)$/basesh.obj \
+ $(SLO)$/beziersh.obj \
+ $(SLO)$/drawdlg.obj \
+ $(SLO)$/drawsh.obj \
+ $(SLO)$/drformsh.obj \
+ $(SLO)$/drwbassh.obj \
+ $(SLO)$/drwtxtex.obj \
+ $(SLO)$/drwtxtsh.obj \
+ $(SLO)$/frmsh.obj \
+ $(SLO)$/grfsh.obj \
+ $(SLO)$/listsh.obj \
+ $(SLO)$/olesh.obj \
+ $(SLO)$/slotadd.obj \
+ $(SLO)$/tabsh.obj \
+ $(SLO)$/textdrw.obj \
+ $(SLO)$/textfld.obj \
+ $(SLO)$/textglos.obj \
+ $(SLO)$/textidx.obj \
+ $(SLO)$/textsh.obj \
+ $(SLO)$/textsh1.obj \
+ $(SLO)$/textsh2.obj \
+ $(SLO)$/txtattr.obj \
+ $(SLO)$/txtcrsr.obj \
+ $(SLO)$/txtnum.obj
+
+EXCEPTIONSFILES = \
+ $(SLO)$/textsh2.obj \
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
+$(SRS)$/shells.srs: $(SOLARINCDIR)$/svx$/globlmn.hrc
+
diff --git a/sw/source/ui/shells/olesh.cxx b/sw/source/ui/shells/olesh.cxx
new file mode 100644
index 000000000000..664fee5b20af
--- /dev/null
+++ b/sw/source/ui/shells/olesh.cxx
@@ -0,0 +1,224 @@
+/*************************************************************************
+ *
+ * $RCSfile: olesh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _IPOBJ_HXX //autogen
+#include <so3/ipobj.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFX_OBJITEM_HXX //autogen
+#include <sfx2/objitem.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FRMSH_HXX
+#include <frmsh.hxx>
+#endif
+#ifndef _OLESH_HXX
+#include <olesh.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _POPUP_HRC
+#include <popup.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+
+
+#define SwOleShell
+#ifndef _ITEMDEF_HXX
+#include <itemdef.hxx>
+#endif
+#ifndef _SWSLOTS_HXX
+#include <swslots.hxx>
+#endif
+
+
+SFX_IMPL_INTERFACE(SwOleShell, SwFrameShell, SW_RES(STR_SHELLNAME_OBJECT))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_OLE_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_OLE_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_OLE));
+}
+
+
+SwOleShell::SwOleShell(SwView &rView) :
+ SwFrameShell(rView)
+
+{
+ SetName(String::CreateFromAscii("Object"));
+ SetHelpId(SW_OLESHELL);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.35 2000/09/18 16:06:04 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.34 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.33 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.32 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.31 2000/05/09 14:41:35 os
+ BASIC interface partially removed
+
+ Revision 1.30 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.29 2000/02/11 14:57:36 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.28 1998/11/03 10:53:02 JP
+ Task #57916#: Vorbereitungen fuer den Selektionshandler vom Chart
+
+
+ Rev 1.27 03 Nov 1998 11:53:02 JP
+ Task #57916#: Vorbereitungen fuer den Selektionshandler vom Chart
+
+ Rev 1.26 24 Nov 1997 09:46:52 MA
+ includes
+
+ Rev 1.25 03 Nov 1997 13:55:48 MA
+ precomp entfernt
+
+ Rev 1.24 26 Aug 1997 16:31:10 TRI
+ VCL Anpassungen
+
+ Rev 1.23 08 Aug 1997 17:29:08 OM
+ Headerfile-Umstellung
+
+ Rev 1.22 05 Aug 1997 16:29:12 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.21 01 Aug 1997 11:45:44 MH
+ chg: header
+
+ Rev 1.20 11 Nov 1996 13:37:34 MA
+ ResMgr
+
+ Rev 1.19 28 Aug 1996 15:55:14 OS
+ includes
+
+ Rev 1.18 13 Aug 1996 12:38:40 OS
+ neue Shellnamen im IDL-Interface
+
+ Rev 1.17 25 Jun 1996 19:51:50 HJS
+ includes
+
+ Rev 1.16 20 Mar 1996 12:41:14 HJS
+ funcdefs muessen unique sein!
+
+ Rev 1.15 06 Feb 1996 15:16:22 OS
+ neu: Activate/Deactivate fuer Objekte
+
+ Rev 1.14 26 Jan 1996 10:54:12 OS
+ neu: GetState - Ole-Objekt dem Basic herausreichen
+
+ Rev 1.13 03 Dec 1995 11:22:08 OS
+ +include itemdef.hxx
+
+ Rev 1.12 29 Nov 1995 13:47:54 OS
+ -slotadd.hxx
+
+ Rev 1.11 27 Nov 1995 19:40:06 OM
+ swslots->303a
+
+ Rev 1.10 24 Nov 1995 16:59:36 OM
+ PCH->PRECOMPILED
+
+ Rev 1.9 17 Nov 1995 13:03:40 MA
+ Segmentierung
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/shells/shells.src b/sw/source/ui/shells/shells.src
new file mode 100644
index 000000000000..cd95397a3040
--- /dev/null
+++ b/sw/source/ui/shells/shells.src
@@ -0,0 +1,2392 @@
+/*************************************************************************
+ *
+ * $RCSfile: shells.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include <svx/svxids.hrc>
+#include <svx/globlmn.hrc>
+#include "toolbox.hrc"
+#include "helpid.h"
+InfoBox MSG_REMOVE_LINK
+{
+ Buttons = WB_YES_NO ;
+ Defbutton = WB_DEF_YES ;
+ Message = "Diese Grafik ist mit dem Dokument verknüpft. Möchten Sie die Verknüpfung aufheben, um die Grafik zu bearbeiten?" ;
+ Message [ English ] = "This is a linked graphic. Do you want to unlink the graphic in order to edit the graphic?" ;
+ Message [ norwegian ] = "Dette er +++linked grafikk. Ønsker du å +++unlink the graphic for å redigere?" ;
+ Message [ italian ] = "Questra immagine è collegata con il documento. Desiderate scollegare l'immagine per poterla modificare?" ;
+ Message [ portuguese_brazilian ] = "This is a linked graphic. Do you want to unlink the graphic in order to edit the graphic?" ;
+ Message [ portuguese ] = "Esta imagem está ligada a um documento. Deseja cancelar a ligação para poder editá-la?" ;
+ Message [ english_us ] = "This graphic is linked to a document. Do you want to unlink the graphic in order to edit it?" ;
+ Message [ finnish ] = "This is a linked graphic. Do you want to unlink the graphic in order to edit the graphic?" ;
+ Message [ danish ] = "Denne grafik er kædet til dokumentet. Vil du ophæve kæden for at kunne redigere grafikken." ;
+ Message [ french ] = "Cette image est liée à un document. Désirez-vous supprimer le lien pour l'édition ?" ;
+ Message [ swedish ] = "Den här grafiken är länkad till dokumentet. Vill Du upphäva länken för att kunna redigera grafiken?" ;
+ Message [ dutch ] = "Deze afbeelding is met het document gekoppeld. Wilt u de koppeling opheffen om de afbeelding te bewerken?" ;
+ Message [ spanish ] = "Esta imagen está vinculada al documento. ¿Desea deshacer el vínculo para editar la imagen?" ;
+ Message[ chinese_simplified ] = "Õâ¸öͼÐÎÊǺÍÒ»¸öÎĵµÏàÁ´½ÓµÄ¡£ÄúҪȡÏûÕâ¸öÁ´½Ó£¬±à¼­Õâ¸öͼÐÎÂð£¿";
+ Message[ russian ] = "Ýòîò ðèñóíîê ññûëàåòñÿ íà äîêóìåíò. Âû õîòèòå ñíÿòü ññûëêó äëÿ âîçìîæíîñòè ïðàâêè ðèñóíêà?";
+ Message[ polish ] = "Ta grafika jest po³¹czona z dokumentem. Czy chcesz usun¹æ to po³¹czenie, aby móc edytowaæ grafikê?";
+ Message[ japanese ] = "‚±‚Ì}‚ͤÄÞ·­ÒÝÄ‚ÆØݸ‚³‚ê‚Ä‚¢‚Ü‚·B}‚ð•ÒW‚·‚邽‚ß‚ÉØݸ‚ð‰ðœ‚µ‚Ü‚·‚©H";
+ Message[ chinese_traditional ] = "³o­Ó¹Ï¤ù¬O©M¤@­ÓÀɮ׬۳sµ²ªº¡C±z­n¨ú®ø³o­Ó±¶®|¡A½s¿è³o­Ó¹Ï¤ù¡H";
+ Message[ arabic ] = "åÐå ÇáÑÓãÉ ãÑÊÈØÉ ÈÇáãÓÊäÏ. åá ÊÑíÏ ÅÒÇáÉ ÇáÇÑÊÈÇØ áßí ÊÊãßä ãä ÊÍÑíÑ ÇáÑÓãÉ¿";
+ Message[ dutch ] = "Deze afbeelding is met het document gekoppeld. Wilt u de koppeling opheffen om de afbeelding te bewerken?";
+ Message[ chinese_simplified ] = "Õâ¸öͼÐÎÊǺÍÒ»¸öÎĵµÏàÁ´½ÓµÄ¡£ÄúҪȡÏûÕâ¸öÁ´½Ó£¬±à¼­Õâ¸öͼÐÎÂð£¿";
+ Message[ greek ] = "Ôï ãñáöéêü áõôü åßíáé óõíäåäåìÝíï ìå ôï Ýããñáöï. ÈÝëåôå íá êáôáñãçèåß ç óýíäåóç ãéá íá åðåîåñãÜóåôå ôï ãñáöéêü;";
+ Message[ korean ] = "ÀÌ ±×·¡ÇÈÀº ¹®¼­¿Í ¿¬°áµÇ¾î ÀÖ½À´Ï´Ù. ±×·¡ÇÈ ÆíÁýÀ» À§ÇØ ¿¬°áÀ» ÇØÁ¦ÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "Bu grafik belgeye baðlý. Grafigi düzenlemek için bu baðlantýyý kaldýrmak istiyor musunuz?";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_NO_RULER
+{
+ BUTTONS = WB_OK ;
+ DEFBUTTON = WB_DEF_OK ;
+ MESSAGE = "Es sind keine Grafiken im Gallery-Thema 'Rulers' vorhanden." ;
+ MESSAGE [ English ] = "Thera are no bitmaps in the Gallery theme 'Rulers'." ;
+ Message [ portuguese ] = "Não existem imagens no tema 'Rulers' da Gallery." ;
+ Message [ english_us ] = "There are no bitmaps in the Gallery theme 'Rulers'." ;
+ Message [ portuguese_brazilian ] = "Es sind keine Grafiken im Gallery-Thema 'Rulers' vorhanden." ;
+ Message [ swedish ] = "Det finns inga grafiker i Gallery-temat 'Rulers'." ;
+ Message [ danish ] = "Der findes ingen billeder i Gallery-emnet 'Rulers'." ;
+ Message [ italian ] = "Nella gallery con argomento 'Ruler' non ci sono immagini." ;
+ Message [ spanish ] = "No hay imágenes en el tema de Gallery 'Rulers'." ;
+ Message [ french ] = "Il n'existe pas d'image pour le thème 'Rulers' dans la Gallery." ;
+ Message [ dutch ] = "Onder het gallery-onderwerp 'Rulers' komen geen afbeeldingen voor." ;
+ Message[ chinese_simplified ] = "ÔÚ»­ÀÈÖ÷Ìâ'³¤ÌõÐÎ'ÄÚÎÞÈκÎͼÐΡ£";
+ Message[ russian ] = "Â òåìå ãàëåðåè 'Ëèíåéêè' ðèñóíêîâ íå èìååòñÿ.";
+ Message[ polish ] = "Nie ma ¿adnych grafik w temacie galerii \"Obramowania\"";
+ Message[ japanese ] = "·Þ¬×ذðÏ'Ù°×°'‚ɸÞ×̨¯¸½‚Í‚ ‚è‚Ü‚¹‚ñB";
+ Message[ chinese_traditional ] = "µe´Y¥DÃD'ªø±ø§Î'¤ºµL¥ô¦ó¹Ï¤ù¡C";
+ Message[ arabic ] = "áÇ ÊæÌÏ ÃíÉ ÕæÑ Ýí ãæÖæÚ ÇáÌÇáíÑí 'Rulers'.";
+ Message[ dutch ] = "Onder het gallery-onderwerp 'Rulers' komen geen afbeeldingen voor.";
+ Message[ chinese_simplified ] = "ÔÚ»­ÀÈÖ÷Ìâ'³¤ÌõÐÎ'ÄÚÎÞÈκÎͼÐΡ£";
+ Message[ greek ] = "Äåí õðÜñ÷ïõí ãñáöéêÜ óôç óõëëïãÞ ìå èÝìá 'Rulers'.";
+ Message[ korean ] = "Gallery ÁÖÁ¦ 'Rulers'¿¡ ±×·¡ÇÈÀÌ ¾ø½À´Ï´Ù.";
+ Message[ turkish ] = "'Rulers' galeri konusunda bit eþlem grafik mevcut deðil.";
+ Message[ language_user1 ] = " ";
+};
+String STR_GRFILTER_OPENERROR
+{
+ Text = "Grafikdatei kann nicht geöffnet werden" ;
+ Text [ English ] = "Can't open graphic file" ;
+ Text [ norwegian ] = "Can't open graphic file" ;
+ Text [ italian ] = "Impossibile aprire il file grafico" ;
+ Text [ portuguese_brazilian ] = "NÆo consigo abrir arquivo gr fico" ;
+ Text [ portuguese ] = "Impossível abrir ficheiro gráfico." ;
+ Text [ finnish ] = "Grafiikkatiedostoa ei voi avata" ;
+ Text [ danish ] = "Det er ikke muligt at åbne grafikfilen" ;
+ Text [ french ] = "Ouverture du fichier graphique impossible" ;
+ Text [ swedish ] = "Grafikfil kan inte öppnas" ;
+ Text [ dutch ] = "Grafisch bestand kan niet worden geopend" ;
+ Text [ spanish ] = "No es posible abrir el archivo gráfico" ;
+ Text [ english_us ] = "Graphics file cannot be opened" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨´ò¿ªÍ¼ÐÎÎļþ";
+ Text[ russian ] = "Îòêðûòü ãðàôè÷åñêèé ôàéë íåâîçìîæíî";
+ Text[ polish ] = "Pliku graficznego nie mo¿na by³o otworzyæ";
+ Text[ japanese ] = "¸Þ×̨¯¸Ì§²Ù‚ðŠJ‚­‚±‚Æ‚ª‚Å‚«‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "µLªk¶}±Ò¹Ï¤ùÀÉ®×";
+ Text[ arabic ] = "áÇ íãßä ÝÊÍ ãáÝ ÇáÑÓæãÇÊ";
+ Text[ dutch ] = "Grafisch bestand kan niet worden geopend";
+ Text[ chinese_simplified ] = "ÎÞ·¨´ò¿ªÍ¼ÐÎÎļþ";
+ Text[ greek ] = "Äåí åßíáé äõíáôü ôï Üíïéãìá ôïõ áñ÷åßïõ ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ ÆÄÀÏÀÌ ¿­·ÁÁöÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Grafik dosyasý açýlamýyor";
+ Text[ language_user1 ] = " ";
+};
+String STR_GRFILTER_IOERROR
+{
+ Text = "Grafikdatei kann nicht gelesen werden" ;
+ Text [ English ] = "Can't read graphic file" ;
+ Text [ norwegian ] = "Can't read graphic file" ;
+ Text [ italian ] = "Impossibile leggere il file grafico" ;
+ Text [ portuguese_brazilian ] = "NÆo consigo ler arquivo gr fico" ;
+ Text [ portuguese ] = "Impossível ler o ficheiro gráfico." ;
+ Text [ finnish ] = "Grafiikkatiedostoa ei voi lukea" ;
+ Text [ danish ] = "Det er ikke muligt at læse grafikfilen" ;
+ Text [ french ] = "Lecture du fichier graphique impossible" ;
+ Text [ swedish ] = "Grafikfil kan inte läsas" ;
+ Text [ dutch ] = "Grafisch bestand is onleesbaar" ;
+ Text [ spanish ] = "No es posible leer el archivo gráfico" ;
+ Text [ english_us ] = "Graphics file cannot be read" ;
+ Text[ chinese_simplified ] = "ÎÞ·¨¶ÁȡͼÐÎÎļþ";
+ Text[ russian ] = "Ïðî÷èòàòü ãðàôè÷åñêèé ôàéë íåâîçìîæíî";
+ Text[ polish ] = "Pliku graficznego nie mo¿na by³o odczytaæ";
+ Text[ japanese ] = "¸Þ×̨¯¸Ì§²Ù‚ª“Ç‚ß‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "µLªkŪ¨ú¹Ï¤ùÀÉ®×";
+ Text[ arabic ] = "áÇ íãßä ÞÑÇÁÉ ãáÝ ÇáÑÓæãÇÊ";
+ Text[ dutch ] = "Grafisch bestand is onleesbaar";
+ Text[ chinese_simplified ] = "ÎÞ·¨¶ÁȡͼÐÎÎļþ";
+ Text[ greek ] = "Äåí åßíáé äõíáôÞ ç áíÜãíùóç ôïõ áñ÷åßïõ ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ ÆÄÀÏÀÌ ÀÐÇôÁöÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Grafik dosyasý okunamýyor";
+ Text[ language_user1 ] = " ";
+};
+String STR_GRFILTER_FORMATERROR
+{
+ Text = "Unbekanntes Grafikformat" ;
+ Text [ English ] = "Unknown graphic format" ;
+ Text [ norwegian ] = "Unknown graphic format" ;
+ Text [ italian ] = "Formato grafico sconosciuto" ;
+ Text [ portuguese_brazilian ] = "Formato gr fico desconhecido" ;
+ Text [ portuguese ] = "Formato de gráfico desconhecido." ;
+ Text [ finnish ] = "Tuntematon grafiikkamuoto" ;
+ Text [ danish ] = "Ukendt grafikformat" ;
+ Text [ french ] = "Format d'image inconnu" ;
+ Text [ swedish ] = "Okänt grafikformat" ;
+ Text [ dutch ] = "Onbekend grafisch formaat" ;
+ Text [ spanish ] = "Formato de imagen desconocido" ;
+ Text [ english_us ] = "Unknown graphic format" ;
+ Text[ chinese_simplified ] = "²»Ã÷µÄͼÐθñʽ";
+ Text[ russian ] = "Íåèçâåñòíûé ãðàôè÷åñêèé ôîðìàò";
+ Text[ polish ] = "Nieznany format graficzny";
+ Text[ japanese ] = "•s–¾‚ȸÞ×̨¯¸‘Ž®";
+ Text[ chinese_traditional ] = "¤£©úªº¹Ï¤ù®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÑÓæãÇÊ ÛíÑ ãÚÑæÝ";
+ Text[ dutch ] = "Onbekend grafisch formaat";
+ Text[ chinese_simplified ] = "²»Ã÷µÄͼÐθñʽ";
+ Text[ greek ] = "¢ãíùóôç ìïñöÞ ãñáöéêþí";
+ Text[ korean ] = "¾Ë·ÁÁöÁö ¾ÊÀº ±×·¡ÇÈ ¼­½Ä";
+ Text[ turkish ] = "Bilinmeyen grafik formatý";
+ Text[ language_user1 ] = " ";
+};
+String STR_GRFILTER_VERSIONERROR
+{
+ Text = "Die Version der Grafikdatei wird nicht unterstützt" ;
+ Text [ English ] = "Version of graphic file not supported" ;
+ Text [ norwegian ] = "Version of graphic file not supported" ;
+ Text [ italian ] = "Versione del file grafico non supportata" ;
+ Text [ portuguese_brazilian ] = "VersÆo de arquivo gr fico nÆo suportada" ;
+ Text [ portuguese ] = "Versão do ficheiro gráfico não suportada." ;
+ Text [ finnish ] = "Ei tukea grafiikkatiedoston versiolle" ;
+ Text [ danish ] = "Grafikfilens version bliver ikke understøttet" ;
+ Text [ french ] = "Version du fichier graphique non supportée" ;
+ Text [ swedish ] = "Grafikfilens version stöds inte" ;
+ Text [ dutch ] = "Deze versie van het grafisch bestand wordt niet ondersteund" ;
+ Text [ spanish ] = "No se acepta la versión del archivo gráfico" ;
+ Text [ english_us ] = "This graphic file version is not supported" ;
+ Text[ chinese_simplified ] = "²»Ö§³ÖÕâ¸ö°æ±¾µÄͼÐÎÎļþ";
+ Text[ russian ] = "Âåðñèÿ ãðàôè÷åñêîãî ôàéëà íå ïîääåðæèâàåòñÿ";
+ Text[ polish ] = "Wersja pliku graficznego nie bêdzie obs³ugiwana";
+ Text[ japanese ] = "¸Þ×̨¯¸Ì§²Ù‚ÌÊÞ°¼Þ®Ý‚ÍA»Îß°Ä‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "¤£¤ä´©³o­Óª©¥»ªº¹Ï¤ù¤å¥ó";
+ Text[ arabic ] = "áÇ íÊã ÏÚã ÅÕÏÇÑ ãáÝ ÇáÑÓæãÇÊ";
+ Text[ dutch ] = "Deze versie van het grafisch bestand wordt niet ondersteund";
+ Text[ chinese_simplified ] = "²»Ö§³ÖÕâ¸ö°æ±¾µÄͼÐÎÎļþ";
+ Text[ greek ] = "Äåí õðïóôçñßæåôáé ç Ýêäïóç áõôïý ôïõ áñ÷åßïõ ãñáöéêþí";
+ Text[ korean ] = "ÀÌ ±×·¡ÇÈ ÆÄÀÏÀÇ ¹öÁ¯Àº Áö¿øµÇÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Grafik dosyasýnýnýn versiyonu desteklenmiyor";
+ Text[ language_user1 ] = " ";
+};
+String STR_GRFILTER_FILTERERROR
+{
+ Text = "Grafikfilter nicht gefunden" ;
+ Text [ English ] = "Graphic filter not found" ;
+ Text [ norwegian ] = "Graphic filter not found" ;
+ Text [ italian ] = "Filtro grafico non trovato" ;
+ Text [ portuguese_brazilian ] = "Filtro gr fico nÆo encontrado" ;
+ Text [ portuguese ] = "Filtro de gráficos não encontrado." ;
+ Text [ finnish ] = "Grafiikkasuodinta ei löydy" ;
+ Text [ danish ] = "Grafikfilter blev ikke fundet" ;
+ Text [ french ] = "Filtre graphique introuvable" ;
+ Text [ swedish ] = "Grafikfilter hittades inte" ;
+ Text [ dutch ] = "Grafische filter niet gevonden" ;
+ Text [ spanish ] = "No se encontró el filtro de imagen" ;
+ Text [ english_us ] = "Graphics filter not found" ;
+ Text[ chinese_simplified ] = "ûÓÐÕÒµ½Í¼ÐιýÂËÆ÷";
+ Text[ russian ] = "Ãðàôè÷åñêèé ôèëüåð íå íàéäåí";
+ Text[ polish ] = "Nie znaleziono filtrów graficznych";
+ Text[ japanese ] = "¸Þ×̨¯¸Ì¨ÙÀ‚ªŒ©‚‚©‚è‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "¨S¦³§ä¨ì¹Ï¤ù¹LÂo¾¹";
+ Text[ arabic ] = "ÊÚÐÑ ÇáÚËæÑ Úáì ÝáÊÑ ÇáÑÓæãÇÊ";
+ Text[ dutch ] = "Grafische filter niet gevonden";
+ Text[ chinese_simplified ] = "ûÓÐÕÒµ½Í¼ÐιýÂËÆ÷";
+ Text[ greek ] = "Äåí âñÝèçêå ôï ößëôñï ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ ÇÊÅÍ°¡ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ Text[ turkish ] = "Grafik filtresi bulunamadý";
+ Text[ language_user1 ] = " ";
+};
+String STR_GRFILTER_TOOBIG
+{
+ Text = "Nicht genug Speicher zum Einfügen der Grafik" ;
+ Text [ English ] = "Not enough memory to insert graphic" ;
+ Text [ norwegian ] = "Not enough memory to insert graphic" ;
+ Text [ italian ] = "Memoria insufficiente per inserirei l'immagine" ;
+ Text [ portuguese_brazilian ] = "Mem¢ria insuficiente para inserir o gr fico" ;
+ Text [ portuguese ] = "Memória insuficiente para inserir gráfico." ;
+ Text [ finnish ] = "Muisti ei riitä grafiikan lisäämiseen" ;
+ Text [ danish ] = "Ikke nok hukommelse til at indsætte billedet" ;
+ Text [ french ] = "Mémoire insuffisante pour l'insertion de l'image" ;
+ Text [ swedish ] = "Inte tillräckligt med minne för att infoga grafiken" ;
+ Text [ dutch ] = "Niet genoeg geheugen voor het invoegen van de afbeelding" ;
+ Text [ spanish ] = "No hay suficiente memoria para insertar la imagen" ;
+ Text [ english_us ] = "Not enough memory to insert the picture." ;
+ Text[ chinese_simplified ] = "ÄÚ´æ²»¹»£¬ÎÞ·¨²åÈëͼÐÎ";
+ Text[ russian ] = "Íåäîñòàòî÷íî ïàìÿòè äëÿ âñòàâêè ðèñóíêà";
+ Text[ polish ] = "Za ma³o pamiêci do wstawienia grafiki";
+ Text[ japanese ] = "}‚ð‘}“ü‚·‚é‚Ì‚ÉÒÓØ‚ª[•ª‚Å‚ ‚è‚Ü‚¹‚ñB";
+ Text[ chinese_traditional ] = "°O¾ÐÅ餣¨¬¡AµLªk´¡¤J¹Ï¤ù";
+ Text[ arabic ] = "áÇ íæÌÏ ÐÇßÑÉ ßÇÝíÉ áÅÏÑÇÌ ÇáÑÓã";
+ Text[ dutch ] = "Niet genoeg geheugen voor het invoegen van de afbeelding";
+ Text[ chinese_simplified ] = "ÄÚ´æ²»¹»£¬ÎÞ·¨²åÈëͼÐÎ";
+ Text[ greek ] = "Ç ìíÞìç äåí åðáñêåß ãéá ôçí ðñïóèÞêç ôïõ ãñáöéêïý.";
+ Text[ korean ] = "±×¸²À» »ðÀÔÇϴµ¥ ¸Þ¸ð¸®°¡ ºÎÁ· ÇÕ´Ï´Ù.";
+ Text[ turkish ] = "Grafiðin eklenmesi için yeterli bellek yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_GRAPHIC
+{
+ Text = "Grafik einfügen" ;
+ Text [ English ] = "Insert graphic" ;
+ Text [ norwegian ] = "Insert graphic" ;
+ Text [ italian ] = "Inserisci immagine" ;
+ Text [ portuguese_brazilian ] = "Inserir gr fico" ;
+ Text [ portuguese ] = "Inserir imagem" ;
+ Text [ finnish ] = "Lisää kuva" ;
+ Text [ danish ] = "Indsæt billede" ;
+ Text [ french ] = "Insérer une image" ;
+ Text [ swedish ] = "Infoga grafik" ;
+ Text [ dutch ] = "Afbeelding invoegen" ;
+ Text [ spanish ] = "Insertar imagen" ;
+ Text [ english_us ] = "Insert Graphics" ;
+ Text[ chinese_simplified ] = "²åÈëͼÐÎ";
+ Text[ russian ] = "Âñòàâèòü ðèñóíîê";
+ Text[ polish ] = "Wstaw grafikê";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¹Ï¤ù";
+ Text[ arabic ] = "ÅÏÑÇÌ ÕæÑÉ";
+ Text[ dutch ] = "Afbeelding invoegen";
+ Text[ chinese_simplified ] = "²åÈëͼÐÎ";
+ Text[ greek ] = "ÐñïóèÞêç ãñáöéêïý";
+ Text[ korean ] = "±×·¡ÇÈ »ðÀÔ";
+ Text[ turkish ] = "Grafik ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_ADDRESSBOOK
+{
+ Text = "Kein Adressbuch vorhanden" ;
+ Text [ English ] = "No directory available" ;
+ Text [ dutch ] = "Geen adresboek voorhanden" ;
+ Text [ english_us ] = "An Address Book does not exist" ;
+ Text [ italian ] = "Manca la rubrica" ;
+ Text [ spanish ] = "No hay ninguna libreta de direcciones disponible" ;
+ Text [ french ] = "Aucun carnet d'adresses disponible" ;
+ Text [ swedish ] = "Ingen adressbok tillgänglig" ;
+ Text [ danish ] = "Der finde intet adressekartotek" ;
+ Text [ portuguese_brazilian ] = "Kein Adressbuch vorhanden" ;
+ Text [ portuguese ] = "Não há livro de endereços disponível." ;
+ Text[ chinese_simplified ] = "ͨѶ²¾²»´æÔÚ";
+ Text[ russian ] = "Àäðåñíîé êíèãè íå èìååòñÿ";
+ Text[ polish ] = "Brak ksi¹¿ki adresowej";
+ Text[ japanese ] = "±ÄÞÚ½’ ‚ª‚ ‚è‚Ü‚¹‚ñ";
+ Text[ chinese_traditional ] = "³q°T¿ý¤£¦s¦b";
+ Text[ arabic ] = "áÇ íæÌÏ ÏÝÊÑ ÚäÇæíä";
+ Text[ dutch ] = "Geen adresboek voorhanden";
+ Text[ chinese_simplified ] = "ͨѶ²¾²»´æÔÚ";
+ Text[ greek ] = "Äåí õðÜñ÷åé áôæÝíôá";
+ Text[ korean ] = "»ç¿ë °¡´ÉÇÑ ÁÖ¼Ò·ÏÀÌ ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Adres defteri mevcut deðil";
+ Text[ language_user1 ] = " ";
+};
+String STR_NOTIZ_INSERT
+{
+ TEXT = "Notiz einfügen" ;
+ TEXT [ English ] = "Insert Note" ;
+ TEXT [ norwegian ] = "Sett inn Merknad" ;
+ TEXT [ italian ] = "Inserisci nota" ;
+ TEXT [ portuguese_brazilian ] = "Inserir Observação" ;
+ TEXT [ portuguese ] = "Inserir anotação" ;
+ TEXT [ finnish ] = "Lisää huomautus" ;
+ TEXT [ danish ] = "Indsæt note" ;
+ TEXT [ french ] = "Insérer une note" ;
+ TEXT [ swedish ] = "Infoga anteckning" ;
+ TEXT [ dutch ] = "Aantekening invoegen" ;
+ TEXT [ spanish ] = "Insertar nota" ;
+ TEXT [ english_us ] = "Insert Note" ;
+ TEXT[ chinese_simplified ] = "²åÈ뱸ע";
+ TEXT[ russian ] = "Âñòàâèòü ïðèìå÷àíèå";
+ TEXT[ polish ] = "Wstaw notatkê";
+ TEXT[ japanese ] = "ÒÓ‚ð‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J³Æª`";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ãáÇÍÙÉ";
+ TEXT[ dutch ] = "Aantekening invoegen";
+ TEXT[ chinese_simplified ] = "²åÈ뱸ע";
+ TEXT[ greek ] = "ÐñïóèÞêç óçìåßùóçò";
+ TEXT[ korean ] = "¸Þ¸ð »ðÀÔ";
+ TEXT[ turkish ] = "Not ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_REDLINE_COMMENT
+{
+ TEXT = "Kommentieren: " ;
+ TEXT [ English ] = "Comment: " ;
+ Text [ english_us ] = "Comment: " ;
+ Text [ portuguese_brazilian ] = "Kommentieren: " ;
+ Text [ swedish ] = "Kommentera: " ;
+ Text [ danish ] = "Kommenter: " ;
+ Text [ italian ] = "Commento: " ;
+ Text [ spanish ] = "Comentario: " ;
+ Text [ french ] = "Commentaire : " ;
+ Text [ dutch ] = "Commentaar: " ;
+ Text [ portuguese ] = "Comentário: " ;
+ Text[ chinese_simplified ] = "ÆÀÓ ";
+ Text[ russian ] = "Êîììåíòèðîâàòü: ";
+ Text[ polish ] = "Skomentuj: ";
+ Text[ japanese ] = "ºÒÝÄ: ";
+ Text[ chinese_traditional ] = "µû»y¡G ";
+ Text[ arabic ] = "ÊÚáíÞ: ";
+ Text[ dutch ] = "Commentaar: ";
+ Text[ chinese_simplified ] = "ÆÀÓ ";
+ Text[ greek ] = "Ó÷üëéï: ";
+ Text[ korean ] = "¸Þ¸ð: ";
+ Text[ turkish ] = "Açýklalama ekle: ";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_INSERTED
+{
+ TEXT = "Einfügung" ;
+ TEXT [ English ] = "Inserted" ;
+ Text [ english_us ] = "Insertions" ;
+ Text [ portuguese_brazilian ] = "Einfügung" ;
+ Text [ swedish ] = "Infogning" ;
+ Text [ danish ] = "Indsat" ;
+ Text [ italian ] = "Inserimento" ;
+ Text [ spanish ] = "Inserción" ;
+ Text [ french ] = "Insertion" ;
+ Text [ dutch ] = "Invoeging" ;
+ Text [ portuguese ] = "Inserido" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâêà";
+ Text[ polish ] = "Wstawienie";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ dutch ] = "Invoeging";
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ greek ] = "ÐñïóèÞêç";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_DELETED
+{
+ TEXT = "Löschung" ;
+ TEXT [ English ] = "Deleted" ;
+ Text [ english_us ] = "Deletions" ;
+ Text [ portuguese_brazilian ] = "Löschung" ;
+ Text [ swedish ] = "Radering" ;
+ Text [ danish ] = "Slettet" ;
+ Text [ italian ] = "Elimina" ;
+ Text [ spanish ] = "Eliminación" ;
+ Text [ french ] = "Suppression" ;
+ Text [ dutch ] = "Gewist" ;
+ Text [ portuguese ] = "Eliminado" ;
+ Text[ chinese_simplified ] = "ɾ³ý";
+ Text[ russian ] = "Óäàëåíèå";
+ Text[ polish ] = "Usuniêcie";
+ Text[ japanese ] = "íœ";
+ Text[ chinese_traditional ] = "§R°£";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ dutch ] = "Gewist";
+ Text[ chinese_simplified ] = "ɾ³ý";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦";
+ Text[ turkish ] = "Silindi";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_AUTOFMT
+{
+ TEXT = "AutoFormat" ;
+ TEXT [ English ] = "AutoFormat" ;
+ TEXT[ italian ] = "Formattazione automatica";
+ TEXT[ portuguese_brazilian ] = "AutoFormat";
+ TEXT[ portuguese ] = "AutoFormato";
+ TEXT[ danish ] = "AutoFormat";
+ TEXT[ french ] = "AutoFormat";
+ TEXT[ swedish ] = "AutoFormat";
+ TEXT[ dutch ] = "AutoOpmaak";
+ TEXT[ spanish ] = "AutoFormato";
+ TEXT[ english_us ] = "AutoFormat";
+ TEXT[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ TEXT[ russian ] = "Àâòîôîðìàò";
+ TEXT[ polish ] = "Autoformatowanie";
+ TEXT[ japanese ] = "µ°ÄÌ«°Ï¯Ä";
+ TEXT[ chinese_traditional ] = "¦Û°Ê®æ¦¡";
+ TEXT[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí";
+ TEXT[ dutch ] = "AutoOpmaak";
+ TEXT[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ TEXT[ greek ] = "ÁõôïÌïñöïðïßçóç";
+ TEXT[ korean ] = "ÀÚµ¿ ¼­½Ä";
+ TEXT[ turkish ] = "Otomatik formatlama";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_REDLINE_FORMATED
+{
+ Text = "Attributierung" ;
+ Text [ english ] = "Formatted" ;
+ Text [ english_us ] = "Formats" ;
+ Text [ portuguese_brazilian ] = "Attributierung" ;
+ Text [ swedish ] = "Attributering" ;
+ Text [ danish ] = "Formateret" ;
+ Text [ italian ] = "Attribuzione" ;
+ Text [ spanish ] = "Formateado" ;
+ Text [ french ] = "Mise en forme" ;
+ Text [ dutch ] = "Opmaak" ;
+ Text [ portuguese ] = "Formatado" ;
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ russian ] = "Îòôîðìàòèðîâàíî";
+ Text[ polish ] = "Dodawanie atrybutów";
+ Text[ japanese ] = "‘®«‚ðŽw’è‚·‚é";
+ Text[ chinese_traditional ] = "ÄÝ©Ê";
+ Text[ arabic ] = "ÊäÓíÞ";
+ Text[ language_user1 ] = " ";
+ Text[ dutch ] = "Opmaak";
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ greek ] = "Ìïñöïðïßçóç";
+ Text[ korean ] = "¼­½ÄÀÖ´Â";
+ Text[ turkish ] = "Öznitelikler";
+};
+String STR_REDLINE_TABLECHG
+{
+ Text = "Tabellenänderung" ;
+ Text [ english ] = "Changed table" ;
+ Text [ english_us ] = "Table Changes" ;
+ Text [ portuguese_brazilian ] = "Tabellenänderung" ;
+ Text [ swedish ] = "Tabelländring" ;
+ Text [ danish ] = "Ændret tabel" ;
+ Text [ italian ] = "Modifica tabella" ;
+ Text [ spanish ] = "Modificación de tabla" ;
+ Text [ french ] = "Modification de tableau" ;
+ Text [ dutch ] = "Tabelwijziging" ;
+ Text [ portuguese ] = "Tabela modificada" ;
+ Text[ chinese_simplified ] = "Ð޸ıí¸ñ";
+ Text[ russian ] = "Èçìåíåíèÿ òàáëèöû";
+ Text[ polish ] = "Zmiany w tabelach";
+ Text[ japanese ] = "ðÌÞÙ‚Ì•ÏX";
+ Text[ chinese_traditional ] = "­×§ïªí®æ";
+ Text[ arabic ] = "ÊÚÏíá ÇáÌÏæá";
+ Text[ dutch ] = "Tabelwijziging";
+ Text[ chinese_simplified ] = "Ð޸ıí¸ñ";
+ Text[ greek ] = "Ôñïðïðïßçóç ðßíáêá";
+ Text[ korean ] = "Ç¥°¡ ¹Ù²î¾ú½À´Ï´Ù.";
+ Text[ turkish ] = "Tablo deðiþikliði";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_FMTCOLLSET
+{
+ Text = "Absatzvorlage gesetzt" ;
+ Text [ english ] = "Paragraph Styles set" ;
+ Text[ italian ] = "Modello di paragrafo impostato";
+ Text[ portuguese_brazilian ] = "Paragraph Styles set";
+ Text[ portuguese ] = "Estilo de parágrafo definido";
+ Text[ danish ] = "Afsnitstypografi defineret";
+ Text[ french ] = "Le style de paragraphe a été défini";
+ Text[ swedish ] = "Styckeformatmall definierad";
+ Text[ dutch ] = "Alinea-opmaakprofiel gedefinieerd";
+ Text[ spanish ] = "Aplicado estilo de párrafo";
+ Text[ english_us ] = "Applied Paragraph Styles";
+ Text[ chinese_simplified ] = "É趨Á˶ÎÂäÑùʽ";
+ Text[ russian ] = "Ñòèëü àáçàöà óñòàíîâëåí";
+ Text[ polish ] = "Ustaw styl akapitu";
+ Text[ japanese ] = "’i—Ž½À²Ù‚ÌÝ’è";
+ Text[ chinese_traditional ] = "³]©w¤F¬q¸¨¼Ë¦¡";
+ Text[ arabic ] = "Êã ÊÚííä äãØ ÇáÝÞÑÉ";
+ Text[ dutch ] = "Alinea-opmaakprofiel gedefinieerd";
+ Text[ chinese_simplified ] = "É趨Á˶ÎÂäÑùʽ";
+ Text[ greek ] = "Ïñéóìüò ðñïôýðïõ ðáñáãñÜöïõ";
+ Text[ korean ] = "´Ü¶ô À¯Çü ¼³Á¤";
+ Text[ turkish ] = "Paragraf biçimi seçildi";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_TITLE
+{
+ Text = "AutoFormat" ;
+ Text [ English ] = "AutoFormat" ;
+ Text[ italian ] = "Formattazione automatica";
+ Text[ portuguese_brazilian ] = "AutoFormat";
+ Text[ portuguese ] = "AutoFormato";
+ Text[ danish ] = "AutoFormat";
+ Text[ french ] = "AutoFormat";
+ Text[ swedish ] = "AutoFormat";
+ Text[ dutch ] = "AutoOpmaak";
+ Text[ spanish ] = "AutoFormato";
+ Text[ english_us ] = "AutoFormat";
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ Text[ russian ] = "Àâòîôîðìàò";
+ Text[ polish ] = "Autoformatowanie";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí";
+ Text[ dutch ] = "AutoOpmaak";
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä";
+ Text[ turkish ] = "Otomatik formatlama";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_MSG
+{
+ Text = "Das AutoFormat ist beendet.\nSie können jetzt alle Änderungen annehmen oder ablehnen,\noder sie einzeln annehmen oder ablehnen." ;
+ Text [ English ] = "AutoFormat completed.\nYou can accept or reject all changes, or\naccept or reject individual changes." ;
+ Text[ italian ] = "La formattazione automatica è terminata.\nPotete accettare o rifiutare tutte le modifiche oppure\naccettare o rifiutare singolarmente le modifiche.";
+ Text[ portuguese_brazilian ] = "AutoFormat completed.\nYou can accept or reject all changes, or\naccept or reject individual changes.";
+ Text[ portuguese ] = "Concluído AutoFormato.\nPoderá aceitar ou rejeitar todas as modificações de\numa só vez ou uma a uma.";
+ Text[ danish ] = "AutoFormat er fuldført.\nDu kan nu acceptere eller forkaste alle ændringer,\neller acceptere eller forkaste dem enkeltvis.";
+ Text[ french ] = "L'AutoFormat a terminé.\nVous pouvez choisir d'en accepter ou rejeter en une seule fois toutes les modifications, ou\n de vous faire afficher toutes les modifications pour les revoir.";
+ Text[ swedish ] = "AutoFormat är färdigt.\nDu kan acceptera eller kasta bort alla ändringar eller\nacceptera eller kasta bort enstaka ändringar.";
+ Text[ dutch ] = "AutoOpmaak voltooid.\nU kunt nu alle wijzigingen accepteren of verwerpen,\nof afzonderlijke wijzigingen accepteren of verwerpen.";
+ Text[ spanish ] = "El AutoFormato ha concluido.\nAhora puede aceptar o rechazar todos los cambios\na la vez o uno por uno.";
+ Text[ english_us ] = "AutoFormat completed.\nYou can accept or reject all changes,\nor accept or reject particular changes.";
+ Text[ chinese_simplified ] = "ÒѾ­Íê³É×Ô¶¯¸ñʽ¡£\nÄúÏÖÔÚÄܹ»½ÓÊÜ»ò¾Ü¾øËùÓеĸü¸Ä£¬»òÕß\n½ÓÊÜ»ò¾Ü¾øµ¥¸ö¸ü¸Ä¡£";
+ Text[ russian ] = "Àâòîôîðìàòèðîâàíèå çàêîí÷åíî.\nÑåé÷àñ Âû ìîæåòå ïðèíÿòü èëè îòêëîíèòü ñðàçó âñå èçìåíåíèÿ,\nèëè êàæäîå ïî îòäåëüíîñòè.";
+ Text[ polish ] = "Autoformatowanie jest zakoñczone.\nMo¿esz zaaakceptowaæ lub odrzuciæ teraz wszystkie zmiany,\nlub akceptowaæ je oraz odrzucaæ pojedynczo.";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä‚ªI—¹‚µ‚Ü‚µ‚½B\n‚·‚ׂĂ̕ÏX‚ðŽó‚¯“ü‚ê‚é‚©AŒ³‚É–ß‚·‚±‚Æ‚ª‚Å‚«‚Ü‚·B\n‚Ü‚½‚͂ЂƂ‚ЂƂ‚̕ÏX‚ɂ‚¢‚ÄŒŸ“¢‚·‚邱‚Æ‚à‚Å‚«‚Ü‚·B";
+ Text[ chinese_traditional ] = "¤w¸g§¹¦¨¦Û°Ê®æ¦¡¡C\n±z²{¦b¯à°÷±µ¨ü©Î©Úµ´©Ò¦³ªºÅܧó¡A±z¤]¯à°÷\n±µ¨ü©Î©Úµ´³æ­ÓªºÅܧó¡C";
+ Text[ arabic ] = "ÊãøóÊ ÚãáíÉ ÇáÊäÓíÞ ÇáÊáÞÇÆí.\níãßäß ÇáÂä ÞÈæá Ãæ ÑÝÖ ÇáÊÛííÑÇÊ ßáåÇ¡\nÃæ ÞÈæá Ãæ ÑÝÖ ßá ÊÛííÑ Úáì ÍÏå.";
+ Text[ dutch ] = "AutoOpmaak voltooid.\nU kunt nu alle wijzigingen accepteren of verwerpen,\nof afzonderlijke wijzigingen accepteren of verwerpen.";
+ Text[ chinese_simplified ] = "ÒѾ­Íê³É×Ô¶¯¸ñʽ¡£\nÄúÏÖÔÚÄܹ»½ÓÊÜ»ò¾Ü¾øËùÓеĸü¸Ä£¬»òÕß\n½ÓÊÜ»ò¾Ü¾øµ¥¸ö¸ü¸Ä¡£";
+ Text[ greek ] = "Ç ÁõôïÌïñöïðïßçóç ïëïêëçñþèçêå.\n¸÷åôå ôç äõíáôüôçôá íá áðïäå÷ôåßôå Þ íá áðïññßøåôå üëåò Þ ìåìïíùìÝíåò áëëáãÝò.";
+ Text[ korean ] = "ÀÚµ¿ ¼­½ÄÀÌ Á¾·áµÇ¾ú½À´Ï´Ù.\nÁö±Ý º¯°æ»çÇ×À» ¸ðµÎ Àû¿ëÇϰųª Ãë¼ÒÇÒ ¼ö ÀÖÀ¸¸ç\nȤÀº °³º°ÀûÀ¸·Î Àû¿ëÇϰųª Ãë¼ÒÇÒ ¼ö ÀÖ½À´Ï´Ù.";
+ Text[ turkish ] = "Otomatik formatlama tamamlandý.\nÞimdi deðiþiklikleri tümden veya tek tek\n kabul ya da redd edebilirsiniz.";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_ACCEPT_ALL
+{
+ Text = "Alles ~annehmen" ;
+ Text [ English ] = "~Accept All" ;
+ Text[ italian ] = "~Accetta tutto";
+ Text[ portuguese_brazilian ] = "~Accept All";
+ Text[ portuguese ] = "~Aceitar tudo";
+ Text[ danish ] = "Accepter alle";
+ Text[ french ] = "Tout ~accepter";
+ Text[ swedish ] = "~Acceptera alla";
+ Text[ dutch ] = "~Alles accepteren";
+ Text[ spanish ] = "~Aceptar todo";
+ Text[ english_us ] = "Accept All";
+ Text[ chinese_simplified ] = "È«²¿½ÓÊÜ";
+ Text[ russian ] = "Ïðèíÿòü âñå";
+ Text[ polish ] = "Zaakceptuj wszystko";
+ Text[ japanese ] = "‚·‚ׂĎ󂯓ü‚ê‚é";
+ Text[ chinese_traditional ] = "¥þ³¡±µ¨ü";
+ Text[ arabic ] = "ÞÈæá Çáßá";
+ Text[ dutch ] = "~Alles accepteren";
+ Text[ chinese_simplified ] = "È«²¿½ÓÊÜ";
+ Text[ greek ] = "Áðïäï÷Þ üëùí";
+ Text[ korean ] = "¸ðµÎ Àû¿ë";
+ Text[ turkish ] = "Tümünü kabul et";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_REJECT_ALL
+{
+ Text = "Alles ableh~nen" ;
+ Text [ English ] = "~Reject All" ;
+ Text[ italian ] = "Rifiuta tutto";
+ Text[ portuguese_brazilian ] = "~Reject All";
+ Text[ portuguese ] = "~Rejeitar tudo";
+ Text[ danish ] = "Forkast alle";
+ Text[ french ] = "~Tout rejeter";
+ Text[ swedish ] = "~Kasta bort alla";
+ Text[ dutch ] = "~Alles verwerpen";
+ Text[ spanish ] = "~Ocultar todo";
+ Text[ english_us ] = "Reject All";
+ Text[ chinese_simplified ] = "È«²¿¾Ü¾ø";
+ Text[ russian ] = "Îòêëîíèòü âñå";
+ Text[ polish ] = "Odrzuæ wszystko";
+ Text[ japanese ] = "‚·‚ׂČ³‚É–ß‚·";
+ Text[ chinese_traditional ] = "¥þ³¡©Úµ´";
+ Text[ arabic ] = "ÑÝÖ Çáßá";
+ Text[ dutch ] = "~Alles verwerpen";
+ Text[ chinese_simplified ] = "È«²¿¾Ü¾ø";
+ Text[ greek ] = "Áðüññéøç üëùí";
+ Text[ korean ] = "¸ðµÎ Ãë¼Ò";
+ Text[ turkish ] = "Tümünü reddet";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE_EDIT
+{
+ Text = "Änderungen ~bearbeiten" ;
+ Text [ English ] = "Review ~Changes" ;
+ Text[ italian ] = "Modifica cambiamenti";
+ Text[ portuguese_brazilian ] = "Review ~Changes";
+ Text[ portuguese ] = "Editar ~modificações";
+ Text[ danish ] = "Rediger ændringer";
+ Text[ french ] = "~Revoir les modifications";
+ Text[ swedish ] = "Redigera ~ändringar";
+ Text[ dutch ] = "Wijzigingen ~bewerken";
+ Text[ spanish ] = "Editar ~modificaciones";
+ Text[ english_us ] = "Edit Changes";
+ Text[ chinese_simplified ] = "±à¼­¸ü¸Ä";
+ Text[ russian ] = "Àíàëèç èçìåíåíèé";
+ Text[ polish ] = "Edytuj zmiany";
+ Text[ japanese ] = "•ÏX‚Ì•ÒW";
+ Text[ chinese_traditional ] = "½s¿èÅܧó";
+ Text[ arabic ] = "ÊÍÑíÑ ÇáÊÛííÑÇÊ";
+ Text[ dutch ] = "Wijzigingen ~bewerken";
+ Text[ chinese_simplified ] = "±à¼­¸ü¸Ä";
+ Text[ greek ] = "Åðåîåñãáóßá áëëáãþí";
+ Text[ korean ] = "º¯°æ ³»¿ë °ËÅä";
+ Text[ turkish ] = "Deðiþiklikleri düzenle";
+ Text[ language_user1 ] = " ";
+};
+QueryBox DLG_IMPORT_DBNAME
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Soll der Datenbankname als Standarddatenbank für das Dokument übernommen werden?" ;
+ MESSAGE [ English ] = "Should the database name be used as document default?" ;
+ Message [ dutch ] = "Moet de database-naam als standaard database voor het document worden overgenomen?" ;
+ Message [ english_us ] = "Use database name as default database for the document?" ;
+ Message [ italian ] = "Si vuole che il nome del database venga usato come database standard per il documento?" ;
+ Message [ spanish ] = "¿Desea adoptar el nombre de la base de datos como base de datos estándar para el documento?" ;
+ Message [ french ] = "Le nom de la base de données doit-il être utilisé comme nom de base de données par défaut ?" ;
+ Message [ swedish ] = "Ska databasnamnet övertas som standarddatabas för dokumentet?" ;
+ Message [ danish ] = "Skal databasenavnet overtages som standarddatabase for dokumentet?" ;
+ Message [ portuguese_brazilian ] = "Soll der Datenbankname als Standarddatenbank für das Dokument übernommen werden?" ;
+ Message [ portuguese ] = "Deseja adoptar o nome da base de dados como base de dados padrão para o documento?" ;
+ Message[ chinese_simplified ] = "ÒªÈÃÎļþÌ×ÓÃĬÈϵÄÊý¾Ý¿âÃû³Æ£¿";
+ Message[ russian ] = "Èñïîëüçîâàòü èìÿ áàçû äàííûõ â êà÷åñòâå ñòàíäàðòíîé áàçû äàííûõ äëÿ ýòîãî äîêóìåíòà?";
+ Message[ polish ] = "Czy nazwa bazy danych ma zostaæ zastosowana w dokumencie jako standardowa baza danych?";
+ Message[ japanese ] = "‚±‚ÌÃÞ°ÀÍÞ°½‚Ì–¼‘O‚ð•W€ÃÞ°ÀÍÞ°½‚Æ‚µ‚Ä‚±‚Ì•¶‘‚ÉŽg—p‚µ‚Ü‚·‚©H";
+ Message[ chinese_traditional ] = "Åý¤å¥ó±Ä¥ÎÀq»{ªº¸ê®Æ®w¦WºÙ¡H";
+ Message[ arabic ] = "åá ÊÑíÏ ÇÓÊÎÏÇã ÇÓã ÞÇÚÏÉ ÇáÈíÇäÇÊ ßÞÇÚÏÉ ÈíÇäÇÊ ÇÝÊÑÇÖíÉ ááãÓÊäÏ¿";
+ Message[ dutch ] = "Moet de database-naam als standaard database voor het document worden overgenomen?";
+ Message[ chinese_simplified ] = "ÒªÈÃÎļþÌ×ÓÃĬÈϵÄÊý¾Ý¿âÃû³Æ£¿";
+ Message[ greek ] = "ÈÝëåôå íá ÷ñçóéìïðïéçèåß ôï üíïìá ôçò âÜóçò äåäïìÝíùí ùò âÜóç äåäïìÝíùí ðñïåðéëïãÞò ãéá ôï Ýããñáöï;";
+ Message[ korean ] = "µ¥ÀÌÅͺ£À̽º À̸§À» ¹®¼­ÀÇ ±âº» µ¥ÀÌÅͺ£À̽º·Î »ç¿ëÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "Veritabaný adý, belge için standart veritabaný olarak kullanýlsýn mý?";
+ Message[ language_user1 ] = " ";
+};
+String STR_PAGE
+{
+ TEXT = "Seite " ;
+ TEXT [ English ] = "Page " ;
+ TEXT [ norwegian ] = "Side " ;
+ TEXT [ italian ] = "Pagina " ;
+ TEXT [ portuguese_brazilian ] = "Página " ;
+ TEXT [ portuguese ] = "Página " ;
+ TEXT [ finnish ] = "Sivu " ;
+ TEXT [ danish ] = "Side " ;
+ TEXT [ french ] = "Page " ;
+ TEXT [ swedish ] = "Sida " ;
+ TEXT [ dutch ] = "Pagina " ;
+ TEXT [ spanish ] = "Página " ;
+ TEXT [ english_us ] = "Page " ;
+ TEXT[ chinese_simplified ] = "Ò³Ãæ ";
+ TEXT[ russian ] = "Ñòðàíèöà ";
+ TEXT[ polish ] = "Strona ";
+ TEXT[ japanese ] = "Íß°¼Þ ";
+ TEXT[ chinese_traditional ] = "­¶­± ";
+ TEXT[ arabic ] = "ÕÝÍÉ ";
+ TEXT[ dutch ] = "Pagina ";
+ TEXT[ chinese_simplified ] = "Ò³Ãæ ";
+ TEXT[ greek ] = "Óåëßäá ";
+ TEXT[ korean ] = "ÆäÀÌÁö ";
+ TEXT[ turkish ] = "Sayfa ";
+ TEXT[ language_user1 ] = " ";
+};
+String RID_TEXT_TOOLBOX
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Textobjektleiste : Textleiste */
+ Text = "Textobjektleiste" ;
+ Text [ English ] = "Text object bar" ;
+ Text [ portuguese ] = "Barra de objectos de texto" ;
+ Text [ english_us ] = "Text Object Bar" ;
+ Text [ portuguese_brazilian ] = "Textobjektleiste" ;
+ Text [ swedish ] = "Textobjektlist" ;
+ Text [ danish ] = "Tekstobjektlinje" ;
+ Text [ italian ] = "Barra degli oggetti di testo" ;
+ Text [ spanish ] = "Barra de objetos de texto" ;
+ Text [ french ] = "Barre d'objets de texte" ;
+ Text [ dutch ] = "Tekstbalk" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö¶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü îáúåêòîâ òåêñòà";
+ Text[ polish ] = "Pasek obiektów tabeli";
+ Text[ japanese ] = "÷½ÄµÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "¤å¦rª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÇáäÕ";
+ Text[ dutch ] = "Tekstbalk";
+ Text[ chinese_simplified ] = "ÎÄ×Ö¶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Metin nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_TEXT_TOOLBOX
+{
+ HelpID = HID_TEXT_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ LineSpacing = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ MN_TEMPLATE
+ MN_FONT
+ MN_TEXT1(TRUE)
+ MN_TEXT1_BLOCK
+ MN_TEXT_LINESPACE
+ MN_TEXT2
+ MN_TEXT_BACKGROUND
+ MN_TEXT_DIALOGS(TRUE)
+ };
+ Scroll = TRUE ;
+};
+String RID_TABLE_TOOLBOX
+{
+ Text = "Tabellenobjektleiste" ;
+ Text [ English ] = "Table objectbar" ;
+ Text [ norwegian ] = "Table" ;
+ Text [ italian ] = "Barra degli oggetti per tabelle" ;
+ Text [ portuguese_brazilian ] = "Tabela" ;
+ Text [ portuguese ] = "Barra de objectos de tabela" ;
+ Text [ finnish ] = "Taulukko" ;
+ Text [ danish ] = "Tabelobjektlinje" ;
+ Text [ french ] = "Barre d'objets de tableau" ;
+ Text [ swedish ] = "Tabellobjektlist" ;
+ Text [ dutch ] = "Tabelobjectbalk" ;
+ Text [ spanish ] = "Barra de objetos para tablas" ;
+ Text [ english_us ] = "Table Object Bar" ;
+ Text[ chinese_simplified ] = "±í¸ñ¶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü îáúåêòà òàáëèöû";
+ Text[ polish ] = "Pasek obiektów tabeli";
+ Text[ japanese ] = "•\\µÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "ªí®æª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÌÏæá";
+ Text[ dutch ] = "Tabelobjectbalk";
+ Text[ chinese_simplified ] = "±í¸ñ¶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí ðßíáêá";
+ Text[ korean ] = "Ç¥ °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Tablo nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_TABLE_TOOLBOX
+{
+ HelpID = HID_TABLE_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ Scroll = TRUE ;
+ ItemList =
+ {
+ MN_TEMPLATE
+ MN_FONT
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_AUTOSUM ;
+ HelpID = FN_TABLE_AUTOSUM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_MODE_FIX ;
+ HelpID = FN_TABLE_MODE_FIX ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_MODE_FIX_PROP ;
+ HelpID = FN_TABLE_MODE_FIX_PROP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_MODE_VARIABLE ;
+ HelpID = FN_TABLE_MODE_VARIABLE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_MERGE_CELLS ;
+ HelpID = FN_TABLE_MERGE_CELLS ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_SPLIT_CELLS ;
+ HelpID = FN_TABLE_SPLIT_CELLS ;
+ };
+ ToolBoxItem
+ {
+ DropDown = TRUE ;
+ Identifier = FN_OPTIMIZE_TABLE ;
+ HelpID = FN_OPTIMIZE_TABLE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_INSERT_ROW ;
+ HelpID = FN_TABLE_INSERT_ROW ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_INSERT_COL ;
+ HelpID = FN_TABLE_INSERT_COL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_DELETE_ROW ;
+ HelpID = FN_TABLE_DELETE_ROW ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_DELETE_COL ;
+ HelpID = FN_TABLE_DELETE_COL ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_SELECT_ALL;
+ HelpID = FN_TABLE_SELECT_ALL;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_SELECT_COL;
+ HelpID = FN_TABLE_SELECT_COL;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_SELECT_ROW;
+ HelpID = FN_TABLE_SELECT_ROW;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_VERT_NONE;
+ HelpID = FN_TABLE_VERT_NONE;
+ RadioCheck = TRUE;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_VERT_CENTER;
+ HelpID = FN_TABLE_VERT_CENTER;
+ RadioCheck = TRUE;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TABLE_VERT_BOTTOM;
+ HelpID = FN_TABLE_VERT_BOTTOM;
+ RadioCheck = TRUE;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_BORDER
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_FRAME_LINESTYLE
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_FRAME_LINECOLOR
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_BACKGROUND_COLOR
+ };
+ };
+};
+String RID_FRAME_TOOLBOX
+{
+ Text = "Rahmenobjektleiste" ;
+ Text [ English ] = "Frame objectbar" ;
+ Text [ norwegian ] = "Ramme" ;
+ Text [ italian ] = "Barra degli oggetti per cornice" ;
+ Text [ portuguese_brazilian ] = "Moldura" ;
+ Text [ portuguese ] = "Barra de molduras" ;
+ Text [ finnish ] = "Kehys" ;
+ Text [ danish ] = "Rammeobjektlinje" ;
+ Text [ french ] = "Barre d'objets de cadre" ;
+ Text [ swedish ] = "Ramobjektlist" ;
+ Text [ dutch ] = "Kaderobjectbalk" ;
+ Text [ spanish ] = "Barra de objetos de marco" ;
+ Text [ english_us ] = "Frame Object Bar" ;
+ Text[ chinese_simplified ] = "¿ò¶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü îáúåêòîâ êàäðîâ";
+ Text[ polish ] = "Pasek obiektów ramki";
+ Text[ japanese ] = "˜gµÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "®Øª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÇáÅØÇÑ";
+ Text[ dutch ] = "Kaderobjectbalk";
+ Text[ chinese_simplified ] = "¿ò¶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Çerçeve nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_FRAME_TOOLBOX
+{
+ HelpID = HID_FRAME_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ MenuStrings = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ MN_TEMPLATE
+ MN_FRAME_WRAP
+ MN_FRAME1
+ MN_FRAME2
+ MN_FRAME3
+ MN_LINESTYLE
+ MN_BACKGROUND_COLOR
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_ATTRIBUTES_FRAME
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_LAYER
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_CHAIN ;
+ HelpID = FN_FRAME_CHAIN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_UNCHAIN ;
+ HelpID = FN_FRAME_UNCHAIN ;
+ };
+ };
+ Scroll = TRUE ;
+};
+String RID_GRAFIK_TOOLBOX
+{
+ Text = "Grafikobjektleiste" ;
+ Text [ English ] = "Graphic objectbar" ;
+ Text [ norwegian ] = "Graphic" ;
+ Text [ italian ] = "Barra degli oggetti grafici" ;
+ Text [ portuguese_brazilian ] = "Gr fico" ;
+ Text [ portuguese ] = "Barra de gráficos" ;
+ Text [ finnish ] = "Kuva" ;
+ Text [ danish ] = "Grafikobjektlinje" ;
+ Text [ french ] = "Barre d'objets graphiques" ;
+ Text [ swedish ] = "Grafikobjektlist" ;
+ Text [ dutch ] = "Objectbalk afbeeldingen" ;
+ Text [ spanish ] = "Barra de objetos gráficos" ;
+ Text [ english_us ] = "Graphics Object Bar" ;
+ Text[ chinese_simplified ] = "ͼÐζÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü ãðàôè÷åñêèõ îáúåêòîâ";
+ Text[ polish ] = "Pasek obiektów graficznych";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "¹Ï¤ùª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÕæÑÉ";
+ Text[ dutch ] = "Objectbalk afbeeldingen";
+ Text[ chinese_simplified ] = "ͼÐζÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ ãñáöéêþí áíôéêåéìÝíùí";
+ Text[ korean ] = "±×·¡ÇÈ °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Grafik nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_GRAFIK_TOOLBOX
+{
+ HelpID = HID_GRAFIK_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ MenuStrings = TRUE ;
+ Customize = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_MODE;
+ HelpID = SID_ATTR_GRAF_MODE;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_RED;
+ HelpID = SID_ATTR_GRAF_RED;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_GREEN;
+ HelpID = SID_ATTR_GRAF_GREEN;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_BLUE;
+ HelpID = SID_ATTR_GRAF_BLUE;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_LUMINANCE;
+ HelpID = SID_ATTR_GRAF_LUMINANCE;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_CONTRAST;
+ HelpID = SID_ATTR_GRAF_CONTRAST;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_GAMMA;
+ HelpID = SID_ATTR_GRAF_GAMMA;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_TRANSPARENCE;
+ HelpID = SID_ATTR_GRAF_TRANSPARENCE;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ Identifier = FN_FLIP_VERT_GRAFIC ;
+ HelpID = FN_FLIP_VERT_GRAFIC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FLIP_HORZ_GRAFIC ;
+ HelpID = FN_FLIP_HORZ_GRAFIC ;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_SIM_START
+ };
+ MN_ATTRIBUTES_GRAFIK
+ };
+ Scroll = TRUE ;
+};
+String RID_OLE_TOOLBOX
+{
+ Text = "Objekt" ;
+ Text [ English ] = "Object" ;
+ Text [ norwegian ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ portuguese_brazilian ] = "Objeto" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text [ finnish ] = "Objekti" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ french ] = "Objet" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ dutch ] = "Object" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ english_us ] = "Object" ;
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ russian ] = "Îáúåêò";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ª«¥ó";
+ Text[ arabic ] = "ßÇÆä";
+ Text[ dutch ] = "Object";
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ greek ] = "Áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼";
+ Text[ turkish ] = "Nesne";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_OLE_TOOLBOX
+{
+ HelpID = HID_OLE_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ Scroll = TRUE ;
+ ItemList =
+ {
+ MN_TEMPLATE
+ MN_FRAME_WRAP
+ MN_CONTOUR
+ MN_FRAME1
+ MN_FRAME2
+ MN_FRAME3
+ MN_LINESTYLE
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_ATTRIBUTES_OLE
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_LAYER
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ DropDown = TRUE ;
+ };
+ };
+};
+String RID_DRAW_TOOLBOX
+{
+ Text = "Zeichenobjektleiste" ;
+ Text [ English ] = "Draw objectbar" ;
+ Text [ norwegian ] = "Draw" ;
+ Text [ italian ] = "Barra degli oggetti per disegno" ;
+ Text [ portuguese_brazilian ] = "Desenhar" ;
+ Text [ portuguese ] = "Barra de objectos de desenho" ;
+ Text [ finnish ] = "Piirrä" ;
+ Text [ danish ] = "Tegneobjektlinje" ;
+ Text [ french ] = "Barre d'objets de dessin" ;
+ Text [ swedish ] = "Ritobjektlist" ;
+ Text [ dutch ] = "Tekenobjectbalk" ;
+ Text [ spanish ] = "Barra de objetos de dibujo" ;
+ Text [ english_us ] = "Draw Object Bar" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü ãðàôè÷åñêîãî îáúåêòà";
+ Text[ polish ] = "Pasek obiektów rysunkowych";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ÇáßÇÆäÇÊ ÇáÑÓæãíÉ";
+ Text[ dutch ] = "Tekenobjectbalk";
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Çizim nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_DRAW_TOOLBOX
+{
+ HelpID = HID_DRAW_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_EDIT ;
+ HelpID = SID_BEZIER_EDIT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTRIBUTES_LINE ;
+ HelpID = SID_ATTRIBUTES_LINE ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_LINEEND_STYLE
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_LINE_STYLE
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_LINE_WIDTH
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_LINE_COLOR
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTRIBUTES_AREA ;
+ HelpID = SID_ATTRIBUTES_AREA ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_FILL_STYLE
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_OBJECT_ROTATE
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_NOWRAP ;
+ HelpID = FN_FRAME_NOWRAP ;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_WRAP ;
+ HelpID = FN_FRAME_WRAP ;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_WRAP_IDEAL ;
+ HelpID = FN_FRAME_WRAP_IDEAL ;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_WRAP_LEFT ;
+ HelpID = FN_FRAME_WRAP_LEFT ;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_WRAP_RIGHT ;
+ HelpID = FN_FRAME_WRAP_RIGHT ;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_WRAPTHRU ;
+ HelpID = FN_FRAME_WRAPTHRU ;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_FRAME_WRAP_CONTOUR ;
+ HelpID = FN_FRAME_WRAP_CONTOUR ;
+ Hide = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OBJECT_HEAVEN ;
+ HelpID = SID_OBJECT_HEAVEN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OBJECT_HELL ;
+ HelpID = SID_OBJECT_HELL ;
+ };
+ MN_LAYER
+ MN_GRID( HIDE=TRUE )
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OBJECT_ALIGN ;
+ HelpID = SID_OBJECT_ALIGN ;
+ DropDown = TRUE ;
+ };
+ };
+ Scroll = TRUE ;
+};
+String RID_DRAWFORM_TOOLBOX
+{
+ Text = "Kontrollfeldleiste" ;
+ Text [ English ] = "Control bar" ;
+ Text [ portuguese ] = "Barra de controlos" ;
+ Text [ english_us ] = "Control Bar" ;
+ Text [ portuguese_brazilian ] = "Kontrollfeldleiste" ;
+ Text [ swedish ] = "Kontrollfältlist" ;
+ Text [ danish ] = "Kontrolelementlinje" ;
+ Text [ italian ] = "Barra dei campi di controllo" ;
+ Text [ spanish ] = "Barra de campos de control" ;
+ Text [ french ] = "Barre de contrôles" ;
+ Text [ dutch ] = "Controleveldbalk" ;
+ Text[ chinese_simplified ] = "¿ØÖÆ×Ö¶ÎÀ¸";
+ Text[ russian ] = "Ïàíåëü ýëåìåíòîâ óïðàâëåíèÿ";
+ Text[ polish ] = "Pasek pól kontrolnych";
+ Text[ japanese ] = "ºÝÄÛ°ÙÊÞ°";
+ Text[ chinese_traditional ] = "±±¨î¶µ¦C";
+ Text[ arabic ] = "ÔÑíØ ÚäÇÕÑ ÇáÊÍßã";
+ Text[ dutch ] = "Controleveldbalk";
+ Text[ chinese_simplified ] = "¿ØÖÆ×Ö¶ÎÀ¸";
+ Text[ greek ] = "ÃñáììÞ åëÝã÷ïõ ðåäßùí";
+ Text[ korean ] = "ÄÁÆ®·Ñ ¸ðÀ½";
+ Text[ turkish ] = "Komut alaný çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_DRAWFORM_TOOLBOX
+{
+ HelpID = HID_DRAWFORM_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ Scroll = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_TRANSFORM ;
+ HelpID = SID_ATTR_TRANSFORM ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_CTL_PROPERTIES ;
+ HelpID = SID_FM_CTL_PROPERTIES ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_PROPERTIES ;
+ HelpID = SID_FM_PROPERTIES ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_SHOW_FMEXPLORER ;
+ HelpID = SID_FM_SHOW_FMEXPLORER ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_TAB_DIALOG ;
+ HelpID = SID_FM_TAB_DIALOG ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_ADD_FIELD ;
+ HelpID = SID_FM_ADD_FIELD ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_DESIGN_MODE ;
+ HelpID = SID_FM_DESIGN_MODE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ MN_LAYER
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GROUP ;
+ HelpID = SID_GROUP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_UNGROUP ;
+ HelpID = SID_UNGROUP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ENTER_GROUP ;
+ HelpID = SID_ENTER_GROUP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_LEAVE_GROUP ;
+ HelpID = SID_LEAVE_GROUP ;
+ };
+ MN_GRID( HIDE=FALSE )
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OBJECT_ALIGN ;
+ HelpID = SID_OBJECT_ALIGN ;
+ DropDown = TRUE ;
+ };
+ };
+};
+String RID_BEZIER_TOOLBOX
+{
+ Text = "Bezierobjektleiste" ;
+ Text [ English ] = "Bezier objectbar" ;
+ Text [ english_us ] = "Bézier object bar" ;
+ Text [ swedish ] = "Bézierobjektlist" ;
+ Text [ danish ] = "Bezierobjektlinje" ;
+ Text [ italian ] = "Barra degli oggetti di Bézier" ;
+ Text [ spanish ] = "Barra de objetos Bézier" ;
+ Text [ french ] = "Barre d'objets Bézier" ;
+ Text [ dutch ] = "Bézierobjectbalk" ;
+ Text [ portuguese ] = "Barra de objectos Bézier" ;
+ Text [ portuguese_brazilian ] = "Bezierobjektleiste" ;
+ Text[ chinese_simplified ] = "ÇúÏ߶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü îáúåêòîâ Áåçüå";
+ Text[ polish ] = "Pasek obiektów Beziera";
+ Text[ japanese ] = "ÍÞ¼Þª‹ÈüµÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "¦±½uª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ Bézier";
+ Text[ dutch ] = "Bézierobjectbalk";
+ Text[ chinese_simplified ] = "ÇúÏ߶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí Bezier";
+ Text[ korean ] = "º£Áö¾î °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Bezier nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_BEZIER_TOOLBOX
+{
+ HelpID = HID_BEZIER_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_EDIT ;
+ HelpID = SID_BEZIER_EDIT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_MOVE ;
+ HelpID = SID_BEZIER_MOVE ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_INSERT ;
+ HelpID = SID_BEZIER_INSERT ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_DELETE ;
+ HelpID = SID_BEZIER_DELETE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_CUTLINE ;
+ HelpID = SID_BEZIER_CUTLINE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_CONVERT ;
+ HelpID = SID_BEZIER_CONVERT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_EDGE ;
+ HelpID = SID_BEZIER_EDGE ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_SMOOTH ;
+ HelpID = SID_BEZIER_SMOOTH ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_SYMMTR ;
+ HelpID = SID_BEZIER_SYMMTR ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_CLOSE ;
+ HelpID = SID_BEZIER_CLOSE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_ELIMINATE_POINTS ;
+ HelpID = SID_BEZIER_ELIMINATE_POINTS ;
+ };
+ };
+ Scroll = TRUE ;
+};
+String RID_DRAW_TEXT_TOOLBOX
+{
+ Text = "Textobjektleiste" ;
+ Text [ English ] = "Text objectbar" ;
+ Text [ norwegian ] = "Tegne tekstmodus" ;
+ Text [ italian ] = "Barra degli oggetti di testo" ;
+ Text [ portuguese_brazilian ] = "Modo desenhar texto" ;
+ Text [ portuguese ] = "Barra de objectos de texto" ;
+ Text [ finnish ] = "Piirroksen tekstitila" ;
+ Text [ danish ] = "Tekstobjektlinje" ;
+ Text [ french ] = "Barre d'objets de texte" ;
+ Text [ swedish ] = "Textobjektlist" ;
+ Text [ dutch ] = "Tekstobjectbalk" ;
+ Text [ spanish ] = "Barra de objetos de texto" ;
+ Text [ english_us ] = "Text Object Bar" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö¶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü îáúåêòîâ òåêñòà";
+ Text[ polish ] = "Pasek obiektów tekstowych";
+ Text[ japanese ] = "÷½ÄµÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "¤å¦rª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÇáäÕ";
+ Text[ dutch ] = "Tekstobjectbalk";
+ Text[ chinese_simplified ] = "ÎÄ×Ö¶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Metin nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_DRAW_TEXT_TOOLBOX
+{
+ HelpID = HID_DRAW_TEXT_TOOLBOX ;
+ Border = TRUE ;
+ Customize = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ MN_FONT
+ MN_TEXT1(FALSE)
+ MN_TEXT1_BLOCK
+ MN_TEXT_LINESPACE
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_CHAR_COLOR
+ Hide = TRUE;
+ };
+ MN_TEXT_DIALOGS(FALSE)
+ };
+ Scroll = TRUE ;
+};
+String RID_NUM_TOOLBOX
+{
+ Text = "Nummerierungsobjektleiste" ;
+ Text [ English ] = "Outlining objectbar" ;
+ Text [ norwegian ] = "+++Outlining" ;
+ Text [ italian ] = "Barra degli oggetti per la numerazione" ;
+ Text [ portuguese_brazilian ] = "Vazado" ;
+ Text [ portuguese ] = "Barra de objectos de numeração" ;
+ Text [ finnish ] = "Jäsennys" ;
+ Text [ danish ] = "Nummereringsobjektlinje" ;
+ Text [ french ] = "Barre d'objets de numérotation" ;
+ Text [ swedish ] = "Numreringsobjektlist" ;
+ Text [ dutch ] = "Nummeringsobjectbalk" ;
+ Text [ spanish ] = "Barra de objetos de numeración" ;
+ Text [ english_us ] = "Numbering Object Bar" ;
+ Text[ chinese_simplified ] = "±àºÅ¶ÔÏóÀ¸";
+ Text[ russian ] = "Ïàíåëü îáúåêòîâ íóìåðàöèè";
+ Text[ polish ] = "Pasek obiektów numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯µÌÞ¼Þª¸ÄÊÞ°";
+ Text[ chinese_traditional ] = "½s¸¹ª«¥ó¦C";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÇáÊÑÞíã";
+ Text[ dutch ] = "Nummeringsobjectbalk";
+ Text[ chinese_simplified ] = "±àºÅ¶ÔÏóÀ¸";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ °³Ã¼ ¸ðÀ½";
+ Text[ turkish ] = "Numaralama nesne çubuðu";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_NUM_TOOLBOX
+{
+ HelpID = HID_NUM_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ MN_TEMPLATE
+ MN_FONT
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_OFF ;
+ HelpID = FN_NUM_BULLET_OFF ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_UP ;
+ HelpID = FN_NUM_BULLET_UP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_DOWN ;
+ HelpID = FN_NUM_BULLET_DOWN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_OUTLINE_UP ;
+ HelpID = FN_NUM_BULLET_OUTLINE_UP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_OUTLINE_DOWN ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_NONUM ;
+ HelpID = FN_NUM_BULLET_NONUM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_MOVEUP ;
+ HelpID = FN_NUM_BULLET_MOVEUP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_MOVEDOWN ;
+ HelpID = FN_NUM_BULLET_MOVEDOWN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_OUTLINE_MOVEUP ;
+ HelpID = FN_NUM_BULLET_OUTLINE_MOVEUP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_OUTLINE_MOVEDOWN ;
+ HelpID = FN_NUM_BULLET_OUTLINE_MOVEDOWN ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUMBER_NEWSTART ;
+ HelpID = FN_NUMBER_NEWSTART ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUMBER_BULLETS ;
+ HelpID = FN_NUMBER_BULLETS ;
+ };
+ };
+ Scroll = TRUE ;
+};
+String STR_SHELLNAME_TEXT
+{
+ Text = "Text" ;
+ Text [ ENGLISH ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text [ portuguese ] = "Texto" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "äÕ";
+ Text[ dutch ] = "Tekst";
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_TABLE
+{
+ Text = "Tabelle" ;
+ Text [ ENGLISH ] = "Table" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ english_us ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "Tableau" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "ðÌÞÙ";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ dutch ] = "Tabel";
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_FRAME
+{
+ Text = "Rahmen" ;
+ Text [ ENGLISH ] = "Frame" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ english_us ] = "Frame" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ portuguese_brazilian ] = "Rahmen" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Òåêñòîâîå ïîëå";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ dutch ] = "Kader";
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçeve";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_GRAPHIC
+{
+ Text = "Grafik" ;
+ Text [ ENGLISH ] = "Graphic" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ italian ] = "Grafico" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ french ] = "Image" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ danish ] = "Billede" ;
+ Text [ portuguese_brazilian ] = "Grafik" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "}";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ dutch ] = "Afbeelding";
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_OBJECT
+{
+ Text = "Objekt" ;
+ Text [ ENGLISH ] = "Object" ;
+ Text [ english_us ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ french ] = "Objet" ;
+ Text [ dutch ] = "Object" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ portuguese_brazilian ] = "Objekt" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ russian ] = "Îáúåêò";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ª«¥ó";
+ Text[ arabic ] = "ßÇÆä";
+ Text[ dutch ] = "Object";
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ greek ] = "Áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼";
+ Text[ turkish ] = "Nesne";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_LIST
+{
+ Text = "Liste" ;
+ Text [ ENGLISH ] = "List" ;
+ Text [ dutch ] = "Lijst" ;
+ Text [ english_us ] = "List" ;
+ Text [ italian ] = "Elenco" ;
+ Text [ spanish ] = "Lista" ;
+ Text [ french ] = "Liste" ;
+ Text [ swedish ] = "Lista" ;
+ Text [ danish ] = "Liste" ;
+ Text [ portuguese_brazilian ] = "Liste" ;
+ Text [ portuguese ] = "Lista" ;
+ Text[ chinese_simplified ] = "Áбí";
+ Text[ russian ] = "Ñïèñîê";
+ Text[ polish ] = "Lista";
+ Text[ japanese ] = "ؽÄ";
+ Text[ chinese_traditional ] = "²M³æ";
+ Text[ arabic ] = "ÞÇÆãÉ";
+ Text[ dutch ] = "Lijst";
+ Text[ chinese_simplified ] = "Áбí";
+ Text[ greek ] = "Ëßóôá";
+ Text[ korean ] = "¸®½ºÆ®";
+ Text[ turkish ] = "Liste";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_DRAW
+{
+ Text = "Zeichnung" ;
+ Text [ ENGLISH ] = "Drawing" ;
+ Text [ dutch ] = "Tekening" ;
+ Text [ english_us ] = "Drawing" ;
+ Text [ italian ] = "Disegno" ;
+ Text [ spanish ] = "Dibujo" ;
+ Text [ french ] = "Dessin" ;
+ Text [ swedish ] = "Teckning" ;
+ Text [ danish ] = "Tegning" ;
+ Text [ portuguese_brazilian ] = "Zeichnung" ;
+ Text [ portuguese ] = "Desenho" ;
+ Text[ chinese_simplified ] = "»æͼ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Rysunek";
+ Text[ japanese ] = "}Œ`•`‰æ";
+ Text[ chinese_traditional ] = "ø¹Ï";
+ Text[ arabic ] = "ÑÓã";
+ Text[ dutch ] = "Tekening";
+ Text[ chinese_simplified ] = "»æͼ";
+ Text[ greek ] = "Ó÷Ýäéï";
+ Text[ korean ] = "±×¸®±â";
+ Text[ turkish ] = "Çizim";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_DRAWFORM
+{
+ Text = "Forms" ;
+ Text [ ENGLISH ] = "Forms" ;
+ Text [ english_us ] = "Forms" ;
+ Text [ portuguese_brazilian ] = "Forms" ;
+ Text [ swedish ] = "Forms" ;
+ Text [ danish ] = "Formular" ;
+ Text [ italian ] = "Forms" ;
+ Text [ spanish ] = "Formularios" ;
+ Text [ french ] = "Formulaires" ;
+ Text [ dutch ] = "Forms" ;
+ Text [ portuguese ] = "Formulários" ;
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ russian ] = "Ôîðìû";
+ Text[ polish ] = "Kszta³ty";
+ Text[ japanese ] = "Ì«°Ñ";
+ Text[ chinese_traditional ] = "¤½¦¡";
+ Text[ arabic ] = "äãÇÐÌ";
+ Text[ dutch ] = "Forms";
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ greek ] = "Öüñìåò";
+ Text[ korean ] = "¾ç½Ä";
+ Text[ turkish ] = "Form";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_BEZIER
+{
+ Text = "Bezier" ;
+ Text [ ENGLISH ] = "Bezier" ;
+ Text [ english_us ] = "Bézier" ;
+ Text [ portuguese_brazilian ] = "Bezier" ;
+ Text [ swedish ] = "Bézier" ;
+ Text [ danish ] = "Bezier" ;
+ Text [ italian ] = "Bezier" ;
+ Text [ spanish ] = "Bézier" ;
+ Text [ french ] = "Bézier" ;
+ Text [ dutch ] = "Bézier" ;
+ Text [ portuguese ] = "Bézier" ;
+ Text[ chinese_simplified ] = "ÇúÏß";
+ Text[ russian ] = "Áåçüå";
+ Text[ polish ] = "Bezier";
+ Text[ japanese ] = "ÍÞ¼Þª‹Èü";
+ Text[ chinese_traditional ] = "¦±½u";
+ Text[ arabic ] = "Bézier";
+ Text[ dutch ] = "Bézier";
+ Text[ chinese_simplified ] = "ÇúÏß";
+ Text[ greek ] = "Bezier";
+ Text[ korean ] = "º£Áö¾î";
+ Text[ turkish ] = "Bezier";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_DRAW_TEXT
+{
+ Text = "Zeichentext" ;
+ Text [ ENGLISH ] = "Draw text" ;
+ Text [ english_us ] = "Draw text" ;
+ Text [ italian ] = "Testo di disegno" ;
+ Text [ spanish ] = "Texto de diseño" ;
+ Text [ french ] = "Texte dessiné" ;
+ Text [ dutch ] = "Tekentekst" ;
+ Text [ swedish ] = "Teckningstext" ;
+ Text [ danish ] = "Tegnetekst" ;
+ Text [ portuguese_brazilian ] = "Zeichentext" ;
+ Text [ portuguese ] = "Texto de desenho" ;
+ Text[ chinese_simplified ] = "»æͼÎÄ×Ö";
+ Text[ russian ] = "Òåêñò ðèñóíêà";
+ Text[ polish ] = "Tekst rysunku";
+ Text[ japanese ] = "}Œ`•`‰æ÷½Ä";
+ Text[ chinese_traditional ] = "ø¹Ï¤å¦r";
+ Text[ arabic ] = "äÕ ÑÓã";
+ Text[ dutch ] = "Tekentekst";
+ Text[ chinese_simplified ] = "»æͼÎÄ×Ö";
+ Text[ greek ] = "Êåßìåíï ó÷åäßïõ";
+ Text[ korean ] = "ÅؽºÆ® ±×¸®±â";
+ Text[ turkish ] = "Çizim metni";
+ Text[ language_user1 ] = " ";
+};
+ //Strings fuer Gallery/Hintergrund
+String STR_SWBG_PARAGRAPH
+{
+ Text = "Absatz" ;
+ Text [ ENGLISH ] = "Paragraph" ;
+ Text [ english_us ] = "Paragraph" ;
+ Text [ portuguese_brazilian ] = "Absatz" ;
+ Text [ swedish ] = "Stycke" ;
+ Text [ danish ] = "Afsnit" ;
+ Text [ italian ] = "Paragrafo" ;
+ Text [ spanish ] = "Párrafo" ;
+ Text [ french ] = "Paragraphe" ;
+ Text [ dutch ] = "Alinea" ;
+ Text [ portuguese ] = "Parágrafo" ;
+ Text[ chinese_simplified ] = "¶ÎÂä";
+ Text[ russian ] = "Àáçàö";
+ Text[ polish ] = "Akapit";
+ Text[ japanese ] = "’i—Ž";
+ Text[ chinese_traditional ] = "¬q¸¨";
+ Text[ arabic ] = "ÝÞÑÉ";
+ Text[ dutch ] = "Alinea";
+ Text[ chinese_simplified ] = "¶ÎÂä";
+ Text[ greek ] = "ÐáñÜãñáöïò";
+ Text[ korean ] = "´Ü¶ô";
+ Text[ turkish ] = "Paragraf";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_GRAPHIC
+{
+ Text = "Grafik" ;
+ Text [ ENGLISH ] = "Graphic" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ portuguese_brazilian ] = "Grafik" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ danish ] = "Billede" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ french ] = "Image" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "}";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ dutch ] = "Afbeelding";
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_OLE
+{
+ Text = "OLE Objekt" ;
+ Text [ ENGLISH ] = "OLE Object" ;
+ Text [ english_us ] = "OLE object" ;
+ Text [ portuguese_brazilian ] = "OLE Objekt" ;
+ Text [ swedish ] = "OLE-objekt" ;
+ Text [ danish ] = "OLE-objekt" ;
+ Text [ italian ] = "Oggetto OLE" ;
+ Text [ spanish ] = "Objeto OLE" ;
+ Text [ french ] = "Objet OLE" ;
+ Text [ dutch ] = "OLE-object" ;
+ Text [ portuguese ] = "Objecto OLE" ;
+ Text[ chinese_simplified ] = "OLE ¶ÔÏó";
+ Text[ russian ] = "Îáúåêò OLE";
+ Text[ polish ] = "Obiekt OLE";
+ Text[ japanese ] = "OLE µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "OLE ª«¥ó";
+ Text[ arabic ] = "ßÇÆä OLE";
+ Text[ dutch ] = "OLE-object";
+ Text[ chinese_simplified ] = "OLE ¶ÔÏó";
+ Text[ greek ] = "Áíôéêåßìåíï OLE";
+ Text[ korean ] = "OLE °³Ã¼";
+ Text[ turkish ] = "OLE nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_FRAME
+{
+ Text = "Rahmen" ;
+ Text [ ENGLISH ] = "Frame" ;
+ Text [ english_us ] = "Frame" ;
+ Text [ portuguese_brazilian ] = "Rahmen" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ french ] = "Cadre" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Òåêñòîâîå ïîëå";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ dutch ] = "Kader";
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Çerçeve";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_TABLE
+{
+ Text = "Tabelle" ;
+ Text [ ENGLISH ] = "Table" ;
+ Text [ english_us ] = "Table" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "Tableau" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "ðÌÞÙ";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ dutch ] = "Tabel";
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_TABLE_ROW
+{
+ Text = "Tabellenzeile" ;
+ Text [ ENGLISH ] = "Tablerow" ;
+ Text [ english_us ] = "Table row" ;
+ Text [ portuguese_brazilian ] = "Tabellenzeile" ;
+ Text [ swedish ] = "Tabellrad" ;
+ Text [ danish ] = "Tabelrække" ;
+ Text [ italian ] = "Riga" ;
+ Text [ spanish ] = "Fila de la tabla" ;
+ Text [ french ] = "Ligne de table" ;
+ Text [ dutch ] = "Tabelrij" ;
+ Text [ portuguese ] = "Linha de tabela" ;
+ Text[ chinese_simplified ] = "¹¤×÷±íµ¥Ôª¸ñ";
+ Text[ russian ] = "Ñòðîêà òàáëèöû";
+ Text[ polish ] = "Wiersz tabeli";
+ Text[ japanese ] = "•\\‚Ìs";
+ Text[ chinese_traditional ] = "¤u§@ªíÀx¦s®æ";
+ Text[ arabic ] = "ÕÝ ÌÏæá";
+ Text[ dutch ] = "Tabelrij";
+ Text[ chinese_simplified ] = "¹¤×÷±íµ¥Ôª¸ñ";
+ Text[ greek ] = "ÃñáììÞ ðßíáêá";
+ Text[ korean ] = "Ç¥ Çà";
+ Text[ turkish ] = "Tablo satýrý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_TABLE_CELL
+{
+ Text = "Tabellenzelle" ;
+ Text [ ENGLISH ] = "Tablecell" ;
+ Text [ english_us ] = "Table cell" ;
+ Text [ portuguese_brazilian ] = "Tabellenzelle" ;
+ Text [ swedish ] = "Tabellcell" ;
+ Text [ danish ] = "Tabelcelle" ;
+ Text [ italian ] = "Cella" ;
+ Text [ spanish ] = "Celda de la tabla" ;
+ Text [ french ] = "Cellule de table" ;
+ Text [ dutch ] = "Tabelcel" ;
+ Text [ portuguese ] = "Célula de tabela" ;
+ Text[ chinese_simplified ] = "¹¤×÷±íµ¥Ôª¸ñ";
+ Text[ russian ] = "ß÷åéêà òàáëèöû";
+ Text[ polish ] = "Komórka tabeli";
+ Text[ japanese ] = "ðÌÞق̾Ù";
+ Text[ chinese_traditional ] = "¤u§@ªíÀx¦s®æ";
+ Text[ arabic ] = "ÎáíÉ ÌÏæá";
+ Text[ dutch ] = "Tabelcel";
+ Text[ chinese_simplified ] = "¹¤×÷±íµ¥Ôª¸ñ";
+ Text[ greek ] = "Êåëß ðßíáêá";
+ Text[ korean ] = "Ç¥ ¼¿";
+ Text[ turkish ] = "Tablo hücresi";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_PAGE
+{
+ Text = "Seite" ;
+ Text [ ENGLISH ] = "Page" ;
+ Text [ english_us ] = "Page" ;
+ Text [ portuguese_brazilian ] = "Seite" ;
+ Text [ swedish ] = "Sida" ;
+ Text [ danish ] = "Side" ;
+ Text [ italian ] = "Pagina" ;
+ Text [ spanish ] = "Página" ;
+ Text [ french ] = "Page" ;
+ Text [ dutch ] = "Pagina" ;
+ Text [ portuguese ] = "Página" ;
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ";
+ Text[ chinese_traditional ] = "­¶";
+ Text[ arabic ] = "ÕÝÍÉ";
+ Text[ dutch ] = "Pagina";
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_HEADER
+{
+ Text = "Kopfzeile" ;
+ Text [ ENGLISH ] = "Header" ;
+ Text [ english_us ] = "Header" ;
+ Text [ portuguese_brazilian ] = "Kopfzeile" ;
+ Text [ swedish ] = "Sidhuvud" ;
+ Text [ danish ] = "Sidehoved" ;
+ Text [ italian ] = "Riga d'intestazione" ;
+ Text [ spanish ] = "Encabezamiento" ;
+ Text [ french ] = "En-tête" ;
+ Text [ dutch ] = "Koptekst" ;
+ Text [ portuguese ] = "Cabeçalho" ;
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë";
+ Text[ polish ] = "Nag³ówek";
+ Text[ japanese ] = "ͯÀÞ";
+ Text[ chinese_traditional ] = "­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ";
+ Text[ dutch ] = "Koptekst";
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ greek ] = "Êåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Üstbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_SWBG_FOOTER
+{
+ Text = "Fußzeile" ;
+ Text [ ENGLISH ] = "Footer" ;
+ Text [ english_us ] = "Footer" ;
+ Text [ portuguese_brazilian ] = "Fußzeile" ;
+ Text [ swedish ] = "Sidfot" ;
+ Text [ danish ] = "Sidefod" ;
+ Text [ italian ] = "Piè di pagina" ;
+ Text [ spanish ] = "Pie de página" ;
+ Text [ french ] = "Pied de page" ;
+ Text [ dutch ] = "Voettekst" ;
+ Text [ portuguese ] = "Rodapé" ;
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë";
+ Text[ polish ] = "Stopka";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "­¶§À";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ";
+ Text[ dutch ] = "Voettekst";
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ greek ] = "ÕðïóÝëéäï";
+ Text[ korean ] = "¹Ù´Ú±Û";
+ Text[ turkish ] = "Altbilgi";
+ Text[ language_user1 ] = " ";
+};
+ //Ende: Strings fuer Gallery/Hintergrund
+
diff --git a/sw/source/ui/shells/slotadd.cxx b/sw/source/ui/shells/slotadd.cxx
new file mode 100644
index 000000000000..196bf43055cb
--- /dev/null
+++ b/sw/source/ui/shells/slotadd.cxx
@@ -0,0 +1,423 @@
+/*************************************************************************
+ *
+ * $RCSfile: slotadd.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+#pragma hdrstop
+
+#include "hintids.hxx"
+#include "uiitems.hxx"
+#include "uiparam.hxx"
+#include "cmdid.h"
+
+#ifndef _AEITEM_HXX //autogen
+#include <svtools/aeitem.hxx>
+#endif
+#ifndef _SFXRECTITEM_HXX //autogen
+#include <svtools/rectitem.hxx>
+#endif
+#ifndef _SFX_OBJITEM_HXX //autogen
+#include <sfx2/objitem.hxx>
+#endif
+#ifndef _SFX_DBCOLL_HXX //autogen
+#include <offmgr/dbcoll.hxx>
+#endif
+#ifndef _SVX_RULRITEM_HXX //autogen
+#include <svx/rulritem.hxx>
+#endif
+#ifndef _IDETEMP_HXX //autogen
+#include <basctl/idetemp.hxx>
+#endif
+#ifndef _SVX_ZOOMITEM_HXX //autogen
+#include <svx/zoomitem.hxx>
+#endif
+#ifndef _SVX_HLNKITEM_HXX //autogen
+#include <svx/hlnkitem.hxx>
+#endif
+#ifndef _SFXPTITEM_HXX //autogen
+#include <svtools/ptitem.hxx>
+#endif
+#ifndef _SVX_PAGEITEM_HXX //autogen
+#include <svx/pageitem.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFX_TPLPITEM_HXX //autogen
+#include <sfx2/tplpitem.hxx>
+#endif
+#ifndef _SVX_WRLMITEM_HXX //autogen
+#include <svx/wrlmitem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SVX_OPAQITEM_HXX //autogen
+#include <svx/opaqitem.hxx>
+#endif
+#ifndef _SVX_TSTPITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SVX_AKRNITEM_HXX //autogen
+#include <svx/akrnitem.hxx>
+#endif
+#ifndef _SVX_KEEPITEM_HXX //autogen
+#include <svx/keepitem.hxx>
+#endif
+#ifndef _SVX_KERNITEM_HXX //autogen
+#include <svx/kernitem.hxx>
+#endif
+#ifndef _SVX_SPLTITEM_HXX //autogen
+#include <svx/spltitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_WGHTITEM_HXX //autogen
+#include <svx/wghtitem.hxx>
+#endif
+#ifndef _SVX_SHADITEM_HXX //autogen
+#include <svx/shaditem.hxx>
+#endif
+#ifndef _SVX_PBINITEM_HXX //autogen
+#include <svx/pbinitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_PRNTITEM_HXX //autogen
+#include <svx/prntitem.hxx>
+#endif
+#ifndef _SVX_ORPHITEM_HXX //autogen
+#include <svx/orphitem.hxx>
+#endif
+#ifndef _SVX_WIDWITEM_HXX //autogen
+#include <svx/widwitem.hxx>
+#endif
+#ifndef _SVX_BOLNITEM_HXX //autogen
+#include <svx/bolnitem.hxx>
+#endif
+#ifndef _SVX_PMDLITEM_HXX //autogen
+#include <svx/pmdlitem.hxx>
+#endif
+#ifndef _SVX_CMAPITEM_HXX //autogen
+#include <svx/cmapitem.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_BRKITEM_HXX //autogen
+#include <svx/brkitem.hxx>
+#endif
+#ifndef _SVX_HYZNITEM_HXX //autogen
+#include <svx/hyznitem.hxx>
+#endif
+#ifndef _SVX_ESCPITEM_HXX //autogen
+#include <svx/escpitem.hxx>
+#endif
+#ifndef _SVX_LSPCITEM_HXX //autogen
+#include <svx/lspcitem.hxx>
+#endif
+#ifndef _SVX_ADJITEM_HXX //autogen
+#include <svx/adjitem.hxx>
+#endif
+#ifndef _SVX_CRSDITEM_HXX //autogen
+#include <svx/crsditem.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_SHDDITEM_HXX //autogen
+#include <svx/shdditem.hxx>
+#endif
+#ifndef _SVX_UDLNITEM_HXX //autogen
+#include <svx/udlnitem.hxx>
+#endif
+#ifndef _SVX_POSTITEM_HXX //autogen
+#include <svx/postitem.hxx>
+#endif
+#ifndef _SVX_FHGTITEM_HXX //autogen
+#include <svx/fhgtitem.hxx>
+#endif
+#ifndef _SVX_CNTRITEM_HXX //autogen
+#include <svx/cntritem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX__XGRADIENT_HXX //autogen
+#include <svx/xgrad.hxx>
+#endif
+#ifndef _SVX_XLNSTIT_HXX //autogen
+#include <svx/xlnstit.hxx>
+#endif
+#ifndef _SVX_XLNEDIT_HXX //autogen
+#include <svx/xlnedit.hxx>
+#endif
+#ifndef SVX_XFILLIT0_HXX //autogen
+#include <svx/xfillit0.hxx>
+#endif
+#ifndef _SVX_XFLCLIT_HXX //autogen
+#include <svx/xflclit.hxx>
+#endif
+#ifndef _SVX_XFLGRIT_HXX //autogen
+#include <svx/xflgrit.hxx>
+#endif
+#ifndef _SVX_XFLHTIT_HXX //autogen
+#include <svx/xflhtit.hxx>
+#endif
+#ifndef _SVX_XBTMPIT_HXX //autogen
+#include <svx/xbtmpit.hxx>
+#endif
+#ifndef _SVX_XLINEIT0_HXX //autogen
+#include <svx/xlineit0.hxx>
+#endif
+#ifndef _SVX_XLNWTIT_HXX //autogen
+#include <svx/xlnwtit.hxx>
+#endif
+#ifndef _SVX_XLNDSIT_HXX //autogen
+#include <svx/xlndsit.hxx>
+#endif
+#ifndef _SVX_XLNCLIT_HXX //autogen
+#include <svx/xlnclit.hxx>
+#endif
+#ifndef _SVX_TEXTIT0_HXX //autogen
+#include <svx/xtextit0.hxx>
+#endif
+#ifndef _SVX_XFTADIT_HXX //autogen
+#include <svx/xftadit.hxx>
+#endif
+#ifndef _SVX_XFTDIIT_HXX //autogen
+#include <svx/xftdiit.hxx>
+#endif
+#ifndef _SVX_XFTSTIT_HXX //autogen
+#include <svx/xftstit.hxx>
+#endif
+#ifndef _SVX_XFTMRIT_HXX //autogen
+#include <svx/xftmrit.hxx>
+#endif
+#ifndef _SVX_XFTOUIT_HXX //autogen
+#include <svx/xftouit.hxx>
+#endif
+#ifndef _SVX_XFTSHIT_HXX //autogen
+#include <svx/xftshit.hxx>
+#endif
+#ifndef _SVX_XFTSHCLIT_HXX //autogen
+#include <svx/xftshcit.hxx>
+#endif
+#ifndef _SVX_XFTSHXY_HXX //autogen
+#include <svx/xftshxy.hxx>
+#endif
+#ifndef _SVX_XFTSFIT_HXX //autogen
+#include <svx/xftsfit.hxx>
+#endif
+
+
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _PARATR_HXX //autogen
+#include <paratr.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTSRND_HXX //autogen
+#include <fmtsrnd.hxx>
+#endif
+#include "frmatr.hxx"
+#include "cfgitems.hxx"
+#include "grfatr.hxx"
+
+
+#ifndef PROFILE
+// Code zum Initialisieren von Statics im eigenen Code-Segment
+#pragma code_seg( "SWSTATICS" )
+#endif
+
+#define SwShadowItem SvxShadowItem
+#define SwPageSizeItem SvxSizeItem
+#define SwGraphicSizeItem SvxSizeItem
+#define SvxDrawToolItem SfxEnumItem
+#define SvxDrawAlignItem SfxEnumItem
+#define SvxDrawBezierItem SfxEnumItem
+#define SwPageLRSpaceItem SvxLRSpaceItem
+#define SwPageULSpaceItem SvxULSpaceItem
+
+#define SFX_TYPEMAP
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+#ifndef PROFILE
+#pragma code_seg()
+#endif
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.36 2000/09/18 16:06:05 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.35 2000/09/04 11:44:07 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.34 2000/08/02 08:04:34 jp
+ changes for graphic attributes
+
+ Revision 1.33 2000/07/31 19:25:39 jp
+ new attributes for CJK/CTL and graphic
+
+ Revision 1.32 1999/09/24 14:38:32 os
+ hlnkitem.hxx now in SVX
+
+ Revision 1.31 1998/04/23 10:30:04 OS
+ PageLeft/Right/Top/BottomMargin #49761#
+
+
+ Rev 1.30 23 Apr 1998 12:30:04 OS
+ PageLeft/Right/Top/BottomMargin #49761#
+
+ Rev 1.29 29 Nov 1997 15:52:54 MA
+ includes
+
+ Rev 1.28 24 Nov 1997 09:47:06 MA
+ includes
+
+ Rev 1.27 03 Nov 1997 13:55:42 MA
+ precomp entfernt
+
+ Rev 1.26 15 Aug 1997 11:48:38 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.25 11 Aug 1997 10:06:46 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.24 05 Aug 1997 16:29:08 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.23 11 Apr 1997 10:34:48 TRI
+ includes
+
+ Rev 1.22 07 Apr 1997 16:45:24 OM
+ HyperlinkItem recorden
+
+ Rev 1.21 28 Feb 1997 12:47:12 MH
+ Segmentierug mit WorkingSetTuner nun moeglich
+
+ Rev 1.20 18 Feb 1997 16:56:40 OM
+ dbcoll.hxx eingetragen
+
+ Rev 1.19 11 Dec 1996 20:12:26 NF
+ SvxDrawBezierItem dazu...
+
+ Rev 1.18 19 Sep 1996 14:07:24 JP
+ eigenes Segment fuer statische Objecte
+
+ Rev 1.17 28 Aug 1996 15:55:04 OS
+ includes
+
+ Rev 1.16 15 Aug 1996 18:17:16 OS
+ URL als Attribut - auch fuer die API
+
+ Rev 1.15 26 Mar 1996 10:07:22 OS
+ neu: SvxGraphicSizeItem-dummy
+
+ Rev 1.14 25 Mar 1996 13:35:36 OS
+ dummy SwPageSizeItem definiert
+
+ Rev 1.13 21 Mar 1996 11:41:56 MA
+ Umstellung SV311
+
+ Rev 1.12 07 Mar 1996 08:08:54 OS
+ jetzt auch mit PCH
+
+ Rev 1.11 26 Jan 1996 11:20:40 OS
+ +include sfxshobj.hxx
+
+ Rev 1.10 16 Jan 1996 16:26:56 OS
+ neu: SwShadowItem(nur ueberdefiniertes SvxShadowItem)
+
+ Rev 1.9 08 Jan 1996 15:14:08 OS
+ +include frmatr.hxx
+
+ Rev 1.8 22 Dec 1995 15:09:20 OS
+ +include adritem.hxx
+
+ Rev 1.7 07 Dec 1995 18:25:56 OM
+ Define fuer Enum-Slot
+
+ Rev 1.6 04 Dec 1995 16:09:40 OS
+ includes geaendert
+
+ -------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/tabsh.cxx b/sw/source/ui/shells/tabsh.cxx
new file mode 100644
index 000000000000..66b2eb5d033f
--- /dev/null
+++ b/sw/source/ui/shells/tabsh.cxx
@@ -0,0 +1,1575 @@
+/*************************************************************************
+ *
+ * $RCSfile: tabsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _ZFORLIST_HXX
+#define _ZFORLIST_DECLARE_TABLE
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SVX_RULRITEM_HXX //autogen
+#include <svx/rulritem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_SHADITEM_HXX //autogen
+#include <svx/shaditem.hxx>
+#endif
+#ifndef _SVX_SPLTITEM_HXX //autogen
+#include <svx/spltitem.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_KEEPITEM_HXX //autogen
+#include <svx/keepitem.hxx>
+#endif
+#ifndef _SVX_BOLNITEM_HXX //autogen
+#include <svx/bolnitem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_NUMINF_HXX //autogen
+#include <svx/numinf.hxx>
+#endif
+#ifndef _ZFORMAT_HXX //autogen
+#include <svtools/zformat.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+
+
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _FMTTSPLT_HXX //autogen
+#include <fmtlsplt.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _INPUTWIN_HXX
+#include <inputwin.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _TABSH_HXX
+#include <tabsh.hxx>
+#endif
+#ifndef _TABLEDLG_HXX
+#include <tabledlg.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _TAUTOFMT_HXX
+#include <tautofmt.hxx>
+#endif
+#ifndef _CELLATR_HXX
+#include <cellatr.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _ROWHT_HXX
+#include <rowht.hxx>
+#endif
+#ifndef _SPLIT_HXX
+#include <split.hxx>
+#endif
+#ifndef _INSRC_HXX
+#include <insrc.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _SWTABLE_HXX
+#include <swtable.hxx>
+#endif
+#ifndef _TBLNUMFM_HXX
+#include <tblnumfm.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SPLITTBL_HXX
+#include <splittbl.hxx>
+#endif
+#ifndef _MERGETBL_HXX
+#include <mergetbl.hxx>
+#endif
+#ifndef _TBLSEL_HXX
+#include <tblsel.hxx>
+#endif
+
+#ifndef _POPUP_HRC
+#include <popup.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _TABLE_HRC
+#include <table.hrc>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+
+#define SwTableShell
+#ifndef _ITEMDEF_HXX
+#include <itemdef.hxx>
+#endif
+#ifndef _SWSLOTS_HXX
+#include <swslots.hxx>
+#endif
+
+//-----------------------------------------------------------------------------
+BOOL lcl_IsNumeric(const String& rStr)
+{
+ for(xub_StrLen i = 0; i < rStr.Len(); i++)
+ {
+ sal_Unicode c = rStr.GetChar(i);
+ if((c < '0') || (c > '9'))
+ return FALSE;
+ }
+ return TRUE;
+
+}
+
+SFX_IMPL_INTERFACE(SwTableShell, SwBaseShell, SW_RES(STR_SHELLNAME_TABLE))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TAB_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TABLE_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_TABLE));
+}
+
+
+TYPEINIT1(SwTableShell,SwBaseShell)
+
+/************************************************************************/
+
+
+const USHORT __FAR_DATA aUITableAttrRange[] =
+{
+ FN_PARAM_TABLE_NAME, FN_PARAM_TABLE_NAME,
+ FN_PARAM_TABLE_HEADLINE, FN_PARAM_TABLE_HEADLINE,
+ FN_PARAM_TABLE_SPACE, FN_PARAM_TABLE_SPACE,
+ FN_TABLE_REP, FN_TABLE_REP,
+ SID_RULER_BORDERS, SID_RULER_BORDERS,
+ RES_LR_SPACE, RES_UL_SPACE,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_SHADOW,
+ RES_BOX, RES_SHADOW,
+ RES_BACKGROUND, RES_BACKGROUND,
+ SID_BACKGRND_DESTINATION, SID_BACKGRND_DESTINATION,
+ SID_HTML_MODE, SID_HTML_MODE,
+ SID_ATTR_BRUSH_ROW, SID_ATTR_BRUSH_TABLE,
+ RES_PAGEDESC, RES_BREAK,
+ RES_KEEP, RES_KEEP,
+ RES_LAYOUT_SPLIT, RES_LAYOUT_SPLIT,
+ FN_TABLE_SET_VERT_ALIGN, FN_TABLE_SET_VERT_ALIGN,
+ 0
+};
+
+
+
+
+void lcl_SetAttr( SwWrtShell &rSh, const SfxPoolItem &rItem )
+{
+ SfxItemSet aSet( rSh.GetView().GetPool(), rItem.Which(), rItem.Which(), 0);
+ aSet.Put( rItem );
+ rSh.SetTblAttr( aSet );
+}
+
+/************************************************************************/
+
+
+SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh )
+{
+ SwFrmFmt *pFmt = rSh.GetTableFmt();
+ SwTabCols aCols;
+ rSh.GetTabCols( aCols );
+
+ //Ersteinmal die einfachen Attribute besorgen.
+ rSet.Put( SfxStringItem( FN_PARAM_TABLE_NAME, pFmt->GetName()));
+ rSet.Put( SfxBoolItem( FN_PARAM_TABLE_HEADLINE, rSh.IsHeadlineRepeat()) );
+ rSet.Put( pFmt->GetShadow() );
+ rSet.Put(SfxUInt16Item(FN_TABLE_SET_VERT_ALIGN, rSh.GetBoxAlign()));
+ SvxULSpaceItem aULSpace( pFmt->GetULSpace() );
+ rSet.Put( aULSpace );
+
+ USHORT nBackgroundDestination = rSh.GetViewOptions()->GetTblDest();
+ rSet.Put(SwBackgroundDestinationItem(SID_BACKGRND_DESTINATION, nBackgroundDestination ));
+ SvxBrushItem aBrush( RES_BACKGROUND );
+// rSh.GetBoxBackground(aBrush);
+// rSet.Put( aBrush );
+ rSh.GetRowBackground(aBrush);
+ rSet.Put( aBrush, SID_ATTR_BRUSH_ROW );
+ rSh.GetTabBackground(aBrush);
+ rSet.Put( aBrush, SID_ATTR_BRUSH_TABLE );
+ FASTBOOL bTableSel = rSh.IsTableMode();
+ if(!bTableSel)
+ {
+ rSh.StartAllAction();
+ rSh.Push();
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_TABLE_SELECT_ALL, FALSE );
+ }
+ SvxBoxInfoItem aBoxInfo;
+
+ // Tabellenvariante, wenn mehrere Tabellenzellen selektiert
+ rSh.GetCrsr(); //Damit GetCrsrCnt() auch das Richtige liefert
+ aBoxInfo.SetTable (rSh.IsTableMode() && rSh.GetCrsrCnt() > 1 ||
+ !bTableSel);
+ // Abstandsfeld immer anzeigen
+ aBoxInfo.SetDist ((BOOL) TRUE);
+ // Minimalgroesse in Tabellen und Absaetzen setzen
+ aBoxInfo.SetMinDist( !bTableSel || rSh.IsTableMode() ||
+ rSh.GetSelectionType() &
+ (SwWrtShell::SEL_TXT | SwWrtShell::SEL_TBL));
+ // Default-Abstand immer setzen
+ aBoxInfo.SetDefDist (MIN_BORDER_DIST);
+ // Einzelne Linien koennen nur in Tabellen DontCare-Status haben
+ aBoxInfo.SetValid( VALID_DISABLE, !bTableSel || !rSh.IsTableMode() );
+
+ rSet.Put(aBoxInfo);
+ rSh.GetTabBorders( rSet );
+
+ if(!bTableSel)
+ {
+ rSh.ClearMark();
+ rSh.Pop(FALSE);
+ rSh.EndAllAction();
+ }
+
+ SwTabCols aTabCols;
+ rSh.GetTabCols( aTabCols );
+ SvxColumnItem aColItem;
+
+
+ // Pointer wird nach der Dialogausfuehrung geloescht
+ SwTableRep* pRep = new SwTableRep( aTabCols, rSh.IsTblComplex());
+ pRep->SetSpace(aCols.GetRightMax());
+
+ USHORT nPercent = 0;
+ long nWidth = ::GetTableWidth(pFmt, aCols, &nPercent, &rSh );
+ // Die Tabellenbreite ist fuer relative Angaben nicht korrekt
+ if(nPercent)
+ nWidth = pRep->GetSpace() * nPercent / 100;
+ USHORT nAlign = pFmt->GetHoriOrient().GetHoriOrient();
+ pRep->SetAlign(nAlign);
+ SvxLRSpaceItem aLRSpace( pFmt->GetLRSpace() );
+ SwTwips nLeft = aLRSpace.GetLeft();
+ SwTwips nRight = aLRSpace.GetRight();
+ SwTwips nDiff = pRep->GetSpace() - nRight - nLeft - nWidth;
+ if(nAlign != HORI_FULL && Abs(nDiff) > 2)
+ {
+ SwTwips nLR = pRep->GetSpace() - nWidth;
+ switch ( nAlign )
+ {
+ case HORI_CENTER: nLeft = nRight = nLR / 2;
+ break;
+ case HORI_LEFT: nRight = nLR; nLeft = 0;
+ break;
+ case HORI_RIGHT: nLeft = nLR, nRight = 0;
+ break;
+ case HORI_LEFT_AND_WIDTH:
+ nRight = nLR - nLeft;
+ break;
+ case HORI_NONE:
+ if(!nPercent)
+ nWidth = pRep->GetSpace() - nLeft - nRight;
+ break;
+ }
+ }
+ pRep->SetLeftSpace(nLeft);
+ pRep->SetRightSpace(nRight);
+
+ pRep->SetWidth(nWidth);
+ pRep->SetWidthPercent(nPercent);
+ // sind einzelne Zeilen/Zellen selektiert, wird die Spaltenbearbeitung veraendert
+ pRep->SetLineSelected(bTableSel && ! rSh.HasWholeTabSelection());
+ rSet.Put(SwPtrItem(FN_TABLE_REP, pRep));
+ return pRep;
+}
+
+/************************************************************************/
+
+
+void lcl_ItemSetToTableParam( const SfxItemSet& rSet,
+ SwWrtShell &rSh )
+{
+ rSh.StartAllAction();
+ rSh.StartUndo( UNDO_TABLE_ATTR );
+ const SfxPoolItem* pItem = 0;
+
+ SwViewOption aUsrPref( *rSh.GetViewOptions() );
+ USHORT nBackgroundDestination = aUsrPref.GetTblDest();
+ if(SFX_ITEM_SET == rSet.GetItemState(SID_BACKGRND_DESTINATION, FALSE, &pItem))
+ {
+ nBackgroundDestination = ((SfxUInt16Item*)pItem)->GetValue();
+ aUsrPref.SetTblDest((BYTE)nBackgroundDestination);
+ SW_MOD()->ApplyUsrPref(aUsrPref, &rSh.GetView());
+ }
+ FASTBOOL bBorder = ( SFX_ITEM_SET == rSet.GetItemState( RES_BOX ) ||
+ SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_BORDER_INNER ) );
+ pItem = 0;
+ BOOL bBackground = SFX_ITEM_SET == rSet.GetItemState( RES_BACKGROUND, FALSE, &pItem );
+ const SfxPoolItem* pRowItem = 0, *pTableItem = 0;
+ bBackground |= SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_BRUSH_ROW, FALSE, &pRowItem );
+ bBackground |= SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_BRUSH_TABLE, FALSE, &pTableItem );
+ if( bBackground || bBorder)
+ {
+ /*
+ Die Umrandung wird auf die vorliegende Selektion angewendet
+ Liegt keine Selektion vor, wird die Tabelle vollstaendig selektiert.
+ Der Hintergrund wird immer auf den aktuellen Zustand angewendet.
+ */
+
+ FASTBOOL bTableSel = rSh.IsTableMode();
+ rSh.StartAllAction();
+
+ if(bBackground)
+ {
+ if(pItem)
+ rSh.SetBoxBackground( *(const SvxBrushItem*)pItem );
+ if(pRowItem)
+ {
+ SvxBrushItem aBrush(*(const SvxBrushItem*)pRowItem);
+ aBrush.SetWhich(RES_BACKGROUND);
+ rSh.SetRowBackground(aBrush);
+ }
+ if(pTableItem)
+ {
+ SvxBrushItem aBrush(*(const SvxBrushItem*)pTableItem);
+ aBrush.SetWhich(RES_BACKGROUND);
+ rSh.SetTabBackground( aBrush );
+ }
+ }
+
+ if(bBorder)
+ {
+ rSh.Push();
+ if(!bTableSel)
+ {
+ rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_TABLE_SELECT_ALL );
+ }
+ rSh.SetTabBorders( rSet );
+
+ if(!bTableSel)
+ {
+ rSh.ClearMark();
+ }
+ rSh.Pop(FALSE);
+ }
+ rSh.EndAllAction();
+ }
+
+ SwTabCols aTabCols;
+ BOOL bTabCols = FALSE;
+ BOOL bSingleLine = FALSE;
+ SwTableRep* pRep = 0;
+ SwFrmFmt *pFmt = rSh.GetTableFmt();
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_FRMATR_BEGIN, RES_FRMATR_END-1 );
+ if(SFX_ITEM_SET == rSet.GetItemState( FN_TABLE_REP, FALSE, &pItem ))
+ {
+ pRep = (SwTableRep*)((const SwPtrItem*)pItem)->GetValue();
+
+ const SwTwips nWidth = pRep->GetWidth();
+ if ( HORI_FULL == (SwHoriOrient)pRep->GetAlign() )
+ {
+ SwFmtHoriOrient aAttr( pFmt->GetHoriOrient() );
+ aAttr.SetHoriOrient( HORI_FULL );
+ aSet.Put( aAttr );
+ }
+ else
+ {
+ SwFmtFrmSize aSz( ATT_VAR_SIZE, nWidth );
+ if(pRep->GetWidthPercent())
+ {
+ aSz.SetWidthPercent( (BYTE)pRep->GetWidthPercent() );
+ }
+ aSet.Put(aSz);
+ }
+
+ SvxLRSpaceItem aLRSpace( RES_LR_SPACE );
+ aLRSpace.SetLeft(pRep->GetLeftSpace());
+ aLRSpace.SetRight(pRep->GetRightSpace());
+ aSet.Put( aLRSpace );
+
+ SwHoriOrient eOrient = (SwHoriOrient)pRep->GetAlign();
+ SwFmtHoriOrient aAttr( 0, eOrient );
+ aSet.Put( aAttr );
+ // Damit beim recording die Ausrichtung nicht durch die Abstaende ueberschrieben
+ // wird, darf das Item nur bei manueller Ausrichtung aufgez. werden
+ if(eOrient != HORI_NONE)
+ ((SfxItemSet&)rSet).ClearItem( SID_ATTR_LRSPACE );
+
+
+ if(pRep->HasColsChanged())
+ {
+ bTabCols = TRUE;
+ }
+ }
+
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_TABLE_HEADLINE, FALSE, &pItem))
+ rSh.SetHeadlineRepeat( ((SfxBoolItem*)pItem)->GetValue() );
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_TABLE_SET_VERT_ALIGN, FALSE, &pItem))
+ rSh.SetBoxAlign(((SfxUInt16Item*)(pItem))->GetValue());
+
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_TABLE_NAME, FALSE, &pItem ))
+ rSh.SetTableName( *pFmt, ((const SfxStringItem*)pItem)->GetValue() );
+
+ // kopiere die ausgesuchten Attribute in den ItemSet
+ static USHORT __READONLY_DATA aIds[] =
+ {
+ RES_PAGEDESC, RES_BREAK,
+ RES_KEEP, RES_LAYOUT_SPLIT,
+ RES_UL_SPACE, RES_SHADOW,
+ 0
+ };
+ for( const USHORT* pIds = aIds; *pIds; ++pIds )
+ if( SFX_ITEM_SET == rSet.GetItemState( *pIds, FALSE, &pItem))
+ aSet.Put( *pItem );
+
+ if( aSet.Count() )
+ rSh.SetTblAttr( aSet );
+
+ if(bTabCols)
+ {
+ rSh.GetTabCols( aTabCols );
+ bSingleLine = pRep->FillTabCols( aTabCols );
+ rSh.SetTabCols( aTabCols, bSingleLine );
+ }
+
+ rSh.EndUndo( UNDO_TABLE_ATTR );
+ rSh.EndAllAction();
+}
+
+/************************************************************************/
+
+
+void lcl_TabGetMaxLineWidth(const SvxBorderLine* pBorderLine, SvxBorderLine& rBorderLine)
+{
+ if(pBorderLine->GetInWidth() > rBorderLine.GetInWidth())
+ rBorderLine.SetInWidth(pBorderLine->GetInWidth());
+
+ if(pBorderLine->GetOutWidth() > rBorderLine.GetOutWidth())
+ rBorderLine.SetOutWidth(pBorderLine->GetOutWidth());
+
+ if(pBorderLine->GetDistance() > rBorderLine.GetDistance())
+ rBorderLine.SetDistance(pBorderLine->GetDistance());
+
+ rBorderLine.SetColor(pBorderLine->GetColor());
+}
+
+
+void SwTableShell::Execute(SfxRequest &rReq)
+{
+
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ SwWrtShell &rSh = GetShell();
+
+ //Erstmal die Slots, die keinen FrmMgr benoetigen.
+ BOOL bMore = FALSE;
+ const SfxPoolItem* pItem = 0;
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem);
+ switch ( nSlot )
+ {
+ case SID_ATTR_BORDER:
+ {
+/* BOOL bPopCrsr = FALSE;
+ if ( !rReq.IsAPI() )
+ {
+ //Keine Tabellenselektion -> Aenderung wird auf die gesamte
+ //Tabelle.
+ if ( !rSh.IsTableMode() )
+ {
+ rSh.StartAction();
+ bPopCrsr = TRUE;
+ rSh.Push();
+ rSh.EnterStdMode();
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+ rSh.SttSelect();
+ rSh.MoveTable( fnTableCurr, fnTableEnd );
+ rSh.EndSelect();
+ }
+ }*/
+ if(!pArgs)
+ break;
+ //Items erzeugen, weil wir sowieso nacharbeiten muessen
+ SvxBoxItem aBox;
+ SfxItemSet aCoreSet( GetPool(),
+ RES_BOX, RES_BOX,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0);
+ SvxBoxInfoItem aCoreInfo;
+ aCoreSet.Put(aCoreInfo);
+ rSh.GetTabBorders( aCoreSet );
+ const SvxBoxItem& rCoreBox = (const SvxBoxItem&)
+ aCoreSet.Get(RES_BOX);
+ const SfxPoolItem *pItem = 0;
+ if ( pArgs->GetItemState(RES_BOX, TRUE, &pItem) == SFX_ITEM_SET )
+ {
+ aBox = *(SvxBoxItem*)pItem;
+ if ( !rReq.IsAPI() )
+ aBox.SetDistance( Max(rCoreBox.GetDistance(),USHORT(55)) );
+ else if ( aBox.GetDistance() < MIN_BORDER_DIST )
+ aBox.SetDistance( Max(rCoreBox.GetDistance(),(USHORT)MIN_BORDER_DIST) );
+ }
+ else
+ {ASSERT( !this, "Wo ist das Box-Item?" )}
+
+ SvxBoxInfoItem aInfo;
+ if (pArgs->GetItemState(SID_ATTR_BORDER_INNER, TRUE, &pItem) == SFX_ITEM_SET)
+ aInfo = *(SvxBoxInfoItem*)pItem;
+ aInfo.SetTable( TRUE );
+ aInfo.SetValid( VALID_DISABLE, FALSE );
+
+
+// Die Attribute aller Linien werden gelesen und das staerkste gewinnt
+ const SvxBorderLine* pBorderLine;
+ SvxBorderLine aBorderLine;
+ if ((pBorderLine = rCoreBox.GetTop()) != NULL)
+ lcl_TabGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = rCoreBox.GetBottom()) != NULL)
+ lcl_TabGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = rCoreBox.GetLeft()) != NULL)
+ lcl_TabGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = rCoreBox.GetRight()) != NULL)
+ lcl_TabGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = aCoreInfo.GetHori()) != NULL)
+ lcl_TabGetMaxLineWidth(pBorderLine, aBorderLine);
+ if ((pBorderLine = aCoreInfo.GetVert()) != NULL)
+ lcl_TabGetMaxLineWidth(pBorderLine, aBorderLine);
+
+ if(aBorderLine.GetOutWidth() == 0)
+ {
+ aBorderLine.SetInWidth(0);
+ aBorderLine.SetOutWidth(DEF_LINE_WIDTH_0);
+ }
+
+ BOOL bLine = FALSE;
+ if ( (pBorderLine = aBox.GetTop()) != NULL)
+ aBox.SetLine(&aBorderLine, BOX_LINE_TOP), bLine |= TRUE;
+ if ((pBorderLine = aBox.GetBottom()) != NULL)
+ aBox.SetLine(&aBorderLine, BOX_LINE_BOTTOM), bLine |= TRUE;
+ if ((pBorderLine = aBox.GetLeft()) != NULL)
+ aBox.SetLine(&aBorderLine, BOX_LINE_LEFT), bLine |= TRUE;
+ if ((pBorderLine = aBox.GetRight()) != NULL)
+ aBox.SetLine(&aBorderLine, BOX_LINE_RIGHT), bLine |= TRUE;
+ if ((pBorderLine = aInfo.GetHori()) != NULL)
+ aInfo.SetLine(&aBorderLine, BOXINFO_LINE_HORI), bLine |= TRUE;
+ if ((pBorderLine = aInfo.GetVert()) != NULL)
+ aInfo.SetLine(&aBorderLine, BOXINFO_LINE_VERT), bLine |= TRUE;
+
+// if ( bPopCrsr && !bLine )
+// aBox.SetDistance( 0 );
+
+ aCoreSet.Put( aBox );
+ aCoreSet.Put( aInfo );
+ rSh.SetTabBorders( aCoreSet );
+
+/* if ( bPopCrsr )
+ {
+ rSh.KillPams();
+ rSh.Pop(FALSE);
+ rSh.EndAction();
+ }*/
+ }
+ break;
+ case SID_ATTR_BRUSH:
+ if(pItem)
+ rSh.SetBoxBackground( *(SvxBrushItem*)pItem );
+ break;
+ case FN_INSERT_TABLE:
+ case FN_FORMAT_TABLE_DLG:
+ {
+ SfxItemSet aCoreSet( GetPool(), aUITableAttrRange);
+
+ SwTableRep* pTblRep = ::lcl_TableParamToItemSet( aCoreSet, rSh );
+ SwTableTabDlg* pDlg = new SwTableTabDlg( GetView().GetWindow(),
+ GetPool(), &aCoreSet, &rSh);
+ aCoreSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(GetView().GetDocShell())));
+ rSh.GetTblAttr(aCoreSet);
+ // GetTblAttr buegelt den Background ueber!
+ SvxBrushItem aBrush( RES_BACKGROUND );
+ rSh.GetBoxBackground(aBrush);
+ aCoreSet.Put( aBrush );
+
+ if ( pDlg->Execute() == RET_OK )
+ {
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ ::lcl_ItemSetToTableParam( *pOutSet, rSh );
+ }
+ delete pDlg;
+ delete pTblRep;
+ SfxBindings& rBindings = GetView().GetViewFrame()->GetBindings();
+ rBindings.Update(SID_RULER_BORDERS);
+ rBindings.Update(SID_ATTR_TABSTOP);
+ }
+ break;
+ case FN_NUM_FORMAT_TABLE_DLG:
+ {
+ SwView* pView = GetActiveView();
+ if(pView)
+ {
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
+ SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, eMetric));
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+ SfxItemSet aCoreSet( GetPool(),
+ SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE,
+ SID_ATTR_NUMBERFORMAT_INFO, SID_ATTR_NUMBERFORMAT_INFO,
+ 0 );
+
+ SfxItemSet aBoxSet( *aCoreSet.GetPool(),
+ RES_BOXATR_FORMAT, RES_BOXATR_FORMAT,
+ RES_BOXATR_VALUE, RES_BOXATR_VALUE,
+ 0 );
+ rSh.GetTblBoxFormulaAttrs( aBoxSet );
+
+ SfxItemState eState = aBoxSet.GetItemState(RES_BOXATR_FORMAT);
+ if(eState == SFX_ITEM_DEFAULT)
+ {
+ aCoreSet.Put( SfxUInt32Item( SID_ATTR_NUMBERFORMAT_VALUE,
+ pFormatter->GetFormatIndex(NF_TEXT, LANGUAGE_SYSTEM)));
+ }
+ else
+ aCoreSet.Put( SfxUInt32Item( SID_ATTR_NUMBERFORMAT_VALUE,
+ ((SwTblBoxNumFormat&)aBoxSet.Get(
+ RES_BOXATR_FORMAT )).GetValue() ));
+
+ aCoreSet.Put( SvxNumberInfoItem( pFormatter,
+ ((SwTblBoxValue&)aBoxSet.Get(
+ RES_BOXATR_VALUE)).GetValue(),
+ SID_ATTR_NUMBERFORMAT_INFO ));
+
+ SwNumFmtDlg* pDlg = new SwNumFmtDlg(GetView().GetWindow(), aCoreSet);
+
+ if (RET_OK == pDlg->Execute())
+ {
+ const SfxPoolItem* pItem = GetView().GetDocShell()->
+ GetItem( SID_ATTR_NUMBERFORMAT_INFO );
+
+ if( pItem && 0 != ((SvxNumberInfoItem*)pItem)->GetDelCount() )
+ {
+ const ULONG* pDelArr = ((SvxNumberInfoItem*)
+ pItem)->GetDelArray();
+
+ for ( USHORT i = 0; i < ((SvxNumberInfoItem*)pItem)->GetDelCount(); i++ )
+ ((SvxNumberInfoItem*)pItem)->
+ GetNumberFormatter()->DeleteEntry( pDelArr[i] );
+ }
+
+ if( SFX_ITEM_SET == pDlg->GetOutputItemSet()->GetItemState(
+ SID_ATTR_NUMBERFORMAT_VALUE, FALSE, &pItem ))
+ {
+ SfxItemSet aBoxSet( *aCoreSet.GetPool(),
+ RES_BOXATR_FORMAT, RES_BOXATR_FORMAT );
+ aBoxSet.Put( SwTblBoxNumFormat(
+ ((SfxUInt32Item*)pItem)->GetValue() ));
+ rSh.SetTblBoxFormulaAttrs( aBoxSet );
+
+ }
+ }
+ delete pDlg;
+ }
+ }
+ break;
+ case FN_CALC_TABLE:
+ rSh.UpdateTable();
+ break;
+ case FN_TABLE_OPTIMAL_HEIGHT:
+ {
+ const SwFmtFrmSize aSz;
+ rSh.SetRowHeight( aSz );
+ }
+ break;
+ case FN_TABLE_DELETE_COL:
+ if ( rSh.DeleteCol() && rSh.HasSelection() )
+ rSh.EnterStdMode();
+ break;
+ case FN_END_TABLE:
+ rSh.MoveTable( fnTableCurr, fnTableEnd );
+ break;
+ case FN_START_TABLE:
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+ break;
+
+ case FN_TABLE_DELETE_ROW:
+ if ( rSh.DeleteRow() && rSh.HasSelection() )
+ rSh.EnterStdMode();
+ break;
+ case FN_TABLE_MERGE_CELLS:
+ if ( rSh.IsTableMode() )
+ switch ( rSh.MergeTab() )
+ {
+ case TBLMERGE_OK:
+ case TBLMERGE_NOSELECTION: break;
+ case TBLMERGE_TOOCOMPLEX:
+ {
+ InfoBox aInfoBox( GetView().GetWindow(),
+ SW_RES( MSG_ERR_TABLE_MERGE ) );
+ aInfoBox.Execute();
+ break;
+ }
+ default: ASSERT( !this, "unbekannter Returnwert MergeTab.");
+ }
+ break;
+ case FN_TABLE_ADJUST_CELLS:
+ if ( rSh.IsAdjustCellWidthAllowed() )
+ rSh.AdjustCellWidth();
+ break;
+ case FN_TABLE_BALANCE_CELLS:
+ if ( rSh.IsAdjustCellWidthAllowed(TRUE) )
+ rSh.AdjustCellWidth(TRUE);
+ break;
+ case FN_TABLE_BALANCE_ROWS:
+ if ( rSh.BalanceRowHeight(TRUE) )
+ rSh.BalanceRowHeight(FALSE);
+ break;
+ case FN_TABLE_SELECT_ALL:
+ rSh.EnterStdMode();
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+ rSh.SttSelect();
+ rSh.MoveTable( fnTableCurr, fnTableEnd );
+ rSh.EndSelect();
+ break;
+ case FN_TABLE_SELECT_COL:
+ rSh.EnterStdMode();
+ rSh.SelectTableCol();
+ break;
+ case FN_TABLE_SELECT_ROW:
+ rSh.EnterStdMode();
+ rSh.SelectTableRow();
+ break;
+ case FN_TABLE_SET_READ_ONLY_CELLS:
+ rSh.ProtectCells();
+ rSh.ResetSelect( 0, FALSE );
+ break;
+ case FN_TABLE_UNSET_READ_ONLY_CELLS:
+ rSh.UnProtectCells();
+ break;
+ case SID_AUTOFORMAT:
+ {
+ SwAutoFormatDlg* pDlg = new SwAutoFormatDlg(
+ &GetView().GetViewFrame()->GetWindow(), &rSh );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_TABLE_SET_ROW_HEIGHT:
+ {
+ SwTableHeightDlg *pDlg = new SwTableHeightDlg(
+ GetView().GetWindow(), rSh );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_NUMBER_BULLETS:
+ case FN_NUM_BULLET_ON:
+ ASSERT( !this, "Funktion darf zur Zeit nicht gerufen werden." );
+ break;
+
+ case FN_TABLE_INSERT_COL:
+ case FN_TABLE_INSERT_ROW:
+ {
+ BOOL bColumn = rReq.GetSlot() == FN_TABLE_INSERT_COL;
+ USHORT nCount = 0;
+ BOOL bAfter = TRUE;
+ if (pItem)
+ {
+ nCount = ((const SfxInt16Item* )pItem)->GetValue();
+ if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_INSERT_AFTER, TRUE, &pItem))
+ bAfter = ((const SfxBoolItem* )pItem)->GetValue();
+ }
+ else if( !rReq.IsAPI() )
+ ++nCount;
+
+ if( nCount )
+ {
+ if( bColumn )
+ rSh.InsertCol( nCount, bAfter );
+ else if ( !rSh.IsInRepeatedHeadline() )
+ rSh.InsertRow( nCount, bAfter );
+ break;
+ }
+
+ nSlot = bColumn ? FN_TABLE_INSERT_COL_DLG : FN_TABLE_INSERT_ROW_DLG;
+ }
+ // kein break; bei Count = 0 kommt der Dialog
+ case FN_TABLE_INSERT_COL_DLG:
+ case FN_TABLE_INSERT_ROW_DLG:
+ {
+ if ( FN_TABLE_INSERT_ROW_DLG != nSlot || !rSh.IsInRepeatedHeadline())
+ {
+ SwInsRowColDlg *pDlg = new SwInsRowColDlg( GetView(),
+ FN_TABLE_INSERT_COL_DLG == nSlot );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ }
+ break;
+ case FN_TABLE_SPLIT_CELLS:
+ {
+ SwSplitTableDlg *pDlg = new SwSplitTableDlg( GetView().GetWindow(), rSh );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+
+ case FN_TABLE_SPLIT_TABLE:
+ {
+ SwSplitTblDlg *pDlg = new SwSplitTblDlg( GetView().GetWindow(), rSh );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+
+ case FN_TABLE_MERGE_TABLE:
+ {
+ BOOL bPrev = rSh.CanMergeTable( TRUE );
+ BOOL bNext = rSh.CanMergeTable( FALSE );
+
+ if( bPrev && bNext )
+ {
+ // Dialog: welche denn?
+ SwMergeTblDlg* pDlg = new SwMergeTblDlg(
+ GetView().GetWindow(), bPrev );
+ if( RET_OK != pDlg->Execute() )
+ bPrev = bNext = FALSE;
+ delete pDlg;
+ }
+
+ if( bPrev || bNext )
+ rSh.MergeTable( bPrev );
+ }
+ break;
+
+ case FN_TABLE_MODE_FIX :
+ case FN_TABLE_MODE_FIX_PROP :
+ case FN_TABLE_MODE_VARIABLE :
+ {
+ rSh.SetTblChgMode( ( FN_TABLE_MODE_FIX == nSlot ? TBLFIX_CHGABS
+ : FN_TABLE_MODE_FIX_PROP == nSlot
+ ? TBLFIX_CHGPROP
+ : TBLVAR_CHGABS ) );
+
+ SfxBindings& rBind = GetView().GetViewFrame()->GetBindings();
+ static USHORT __READONLY_DATA aInva[] =
+ { FN_TABLE_MODE_FIX,
+ FN_TABLE_MODE_FIX_PROP,
+ FN_TABLE_MODE_VARIABLE,
+ 0
+ };
+ rBind.Invalidate( aInva );
+ }
+ break;
+ case FN_TABLE_AUTOSUM:
+ {
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ pVFrame->GetDispatcher()->Execute(FN_EDIT_FORMULA, SFX_CALLMODE_SYNCHRON);
+ const USHORT nId = SwInputChild::GetChildWindowId();
+ SwInputChild* pChildWin = (SwInputChild*)pVFrame->
+ GetChildWindow( nId );
+ String sSum;
+ GetShell().GetAutoSum(sSum);
+ if( pChildWin )
+ pChildWin->SetFormula( sSum );
+
+ }
+ break;
+ default:
+ bMore = TRUE;
+ }
+
+ if ( !bMore )
+ {
+ return;
+ }
+ else
+ bMore = FALSE;
+ //Jetzt die Slots, die direkt auf dem TableFmt arbeiten.
+ SwFrmFmt *pFmt = rSh.GetTableFmt();
+ switch ( nSlot )
+ {
+ case SID_ATTR_ULSPACE:
+ {
+ if(pItem)
+ {
+ SvxULSpaceItem aULSpace( *(const SvxULSpaceItem*)pItem );
+ aULSpace.SetWhich( RES_UL_SPACE );
+ ::lcl_SetAttr( rSh, aULSpace );
+ }
+ }
+ break;
+
+ case SID_ATTR_LRSPACE:
+ {
+ if(pItem)
+ {
+ SfxItemSet aSet( GetPool(), RES_LR_SPACE, RES_LR_SPACE,
+ RES_HORI_ORIENT, RES_HORI_ORIENT, 0 );
+ SvxLRSpaceItem aLRSpace( *(const SvxLRSpaceItem*)pItem );
+ aLRSpace.SetWhich( RES_LR_SPACE );
+ aSet.Put( aLRSpace );
+ SwFmtHoriOrient aHori( pFmt->GetHoriOrient() );
+ aHori.SetHoriOrient( HORI_NONE );
+ aSet.Put( aLRSpace );
+ rSh.SetTblAttr( aSet );
+ }
+ }
+ break;
+// der letzte case-Zweig der noch einen TabellenManager braucht!!
+ case FN_TABLE_SET_COL_WIDTH:
+ {
+ SwTableFUNC aMgr( &rSh, FALSE);
+ aMgr.ColWidthDlg(GetView().GetWindow());
+ }
+ break;
+ case FN_TABLE_VERT_NONE:
+ case FN_TABLE_VERT_CENTER:
+ case FN_TABLE_VERT_BOTTOM:
+ {
+ USHORT nAlign = nSlot == FN_TABLE_VERT_NONE ?
+ VERT_NONE :
+ nSlot == FN_TABLE_VERT_CENTER ?
+ VERT_CENTER : VERT_BOTTOM;
+ rSh.SetBoxAlign(nAlign);
+ }
+ break;
+
+ case SID_ATTR_PARA_SPLIT:
+ if ( pItem )
+ {
+ SwFmtLayoutSplit aSplit( ((const SvxFmtSplitItem*)pItem)->GetValue());
+ SfxItemSet aSet(GetPool(), RES_LAYOUT_SPLIT, RES_LAYOUT_SPLIT, 0 );
+ aSet.Put(aSplit);
+ rSh.SetTblAttr(aSet);
+ }
+ break;
+
+ case SID_ATTR_PARA_KEEP:
+ if ( pItem )
+ {
+ SvxFmtKeepItem aKeep( *(const SvxFmtKeepItem*)pItem );
+ aKeep.SetWhich( RES_KEEP );
+ SfxItemSet aSet(GetPool(), RES_KEEP, RES_KEEP, 0 );
+ aSet.Put(aKeep);
+ rSh.SetTblAttr(aSet);
+ }
+ break;
+
+ default:
+ ASSERT( !this, "falscher Dispatcher" );
+ return;
+ }
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTableShell::GetState(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter( rSet );
+ SwWrtShell &rSh = GetShell();
+ SwFrmFmt *pFmt = rSh.GetTableFmt();
+ USHORT nSlot = aIter.FirstWhich();
+ while ( nSlot )
+ {
+ switch ( nSlot )
+ {
+ case FN_TABLE_MERGE_CELLS:
+ if ( !rSh.IsTableMode() )
+ rSet.DisableItem(FN_TABLE_MERGE_CELLS);
+ break;
+ case FN_TABLE_ADJUST_CELLS:
+ if ( !rSh.IsAdjustCellWidthAllowed() )
+ rSet.DisableItem(FN_TABLE_ADJUST_CELLS);
+ break;
+
+ case FN_TABLE_BALANCE_CELLS:
+ if ( !rSh.IsAdjustCellWidthAllowed(TRUE) )
+ rSet.DisableItem(FN_TABLE_BALANCE_CELLS);
+ break;
+
+ case FN_TABLE_BALANCE_ROWS:
+ if ( !rSh.BalanceRowHeight(TRUE) )
+ rSet.DisableItem(FN_TABLE_BALANCE_ROWS);
+ break;
+
+ case SID_INSERT_DIAGRAM:
+ if ( !SFX_APP()->HasFeature( SFX_FEATURE_SMATH ) ||
+ rSh.IsTblComplexForChart() )
+ rSet.DisableItem(nSlot);
+ break;
+
+ case FN_INSERT_TABLE:
+ // Irgendeinen Wert "putten", damit Controller enabled bleibt.
+ // Statt "Insert:Table" erscheint dann "Format:Table".
+ rSet.Put(SfxUInt16Item(nSlot, 1));
+ break;
+
+ case FN_TABLE_OPTIMAL_HEIGHT:
+ {
+ //Disablen wenn bereits auto-Hoehe eingestellt ist.
+ SwFmtFrmSize *pSz;
+ rSh.GetRowHeight( pSz );
+ if ( pSz )
+ {
+ if ( ATT_VAR_SIZE == pSz->GetSizeType() )
+ rSet.DisableItem( nSlot );
+ delete pSz;
+ }
+ }
+ break;
+ case FN_TABLE_INSERT_ROW:
+ case FN_TABLE_INSERT_ROW_DLG:
+ {
+ if ( rSh.IsInRepeatedHeadline() )
+ rSet.DisableItem( nSlot );
+ }
+ break;
+ case RES_LR_SPACE:
+ rSet.Put(pFmt->GetLRSpace());
+ break;
+ case RES_UL_SPACE:
+ rSet.Put(pFmt->GetULSpace());
+ break;
+ case FN_TABLE_VERT_NONE:
+ case FN_TABLE_VERT_CENTER:
+ case FN_TABLE_VERT_BOTTOM:
+ {
+ USHORT nAlign = rSh.GetBoxAlign();
+ BOOL bSet = nSlot == FN_TABLE_VERT_NONE && nAlign == VERT_NONE||
+ nSlot == FN_TABLE_VERT_CENTER && nAlign == VERT_CENTER ||
+ nSlot == FN_TABLE_VERT_BOTTOM && nAlign == VERT_BOTTOM;
+ rSet.Put(SfxBoolItem(nSlot, bSet));
+ }
+ break;
+
+ case FN_TABLE_MODE_FIX :
+ case FN_TABLE_MODE_FIX_PROP :
+ case FN_TABLE_MODE_VARIABLE :
+ {
+ USHORT nMode = rSh.GetTblChgMode();
+ BOOL bSet = nSlot == FN_TABLE_MODE_FIX && nMode == TBLFIX_CHGABS ||
+ nSlot == FN_TABLE_MODE_FIX_PROP && nMode == TBLFIX_CHGPROP ||
+ nSlot == FN_TABLE_MODE_VARIABLE && nMode == TBLVAR_CHGABS;
+ rSet.Put(SfxBoolItem(nSlot, bSet));
+ }
+ break;
+
+ case SID_ATTR_PARA_SPLIT:
+ rSet.Put( pFmt->GetKeep() );
+ break;
+
+ case SID_ATTR_PARA_KEEP:
+ rSet.Put( pFmt->GetLayoutSplit() );
+ break;
+ case FN_TABLE_SPLIT_TABLE:
+ {
+ if ( rSh.IsInHeadline() )
+ rSet.DisableItem( nSlot );
+ }
+ break;
+ case FN_TABLE_MERGE_TABLE:
+ {
+ BOOL bAsk;
+ if( !rSh.CanMergeTable( TRUE, &bAsk ))
+ rSet.DisableItem( nSlot );
+ }
+ break;
+
+ case FN_TABLE_DELETE_ROW:
+ {
+ SwSelBoxes aBoxes;
+ ::GetTblSel( rSh, aBoxes, TBLSEARCH_ROW );
+ if( ::HasProtectedCells( aBoxes ))
+ rSet.DisableItem( nSlot );
+ }
+ break;
+ case FN_TABLE_DELETE_COL:
+ {
+ SwSelBoxes aBoxes;
+ ::GetTblSel( rSh, aBoxes, TBLSEARCH_COL );
+ if( ::HasProtectedCells( aBoxes ))
+ rSet.DisableItem( nSlot );
+ }
+ break;
+ }
+ nSlot = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwTableShell::SwTableShell(SwView &rView) :
+ SwBaseShell(rView)
+{
+ SetName(String::CreateFromAscii("Table"));
+ SetHelpId(SW_TABSHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTableShell::GetFrmBorderState(SfxItemSet &rSet)
+{
+ SfxItemSet aCoreSet( GetPool(),
+ RES_BOX, RES_BOX,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0 );
+ SvxBoxInfoItem aBoxInfo;
+ aCoreSet.Put( aBoxInfo );
+ GetShell().GetTabBorders( aCoreSet );
+ rSet.Put( aCoreSet );
+ rSet.Put(SfxUInt16Item(SID_ATTR_BORDER, FALSE)); // Rahmencontroller: letzte Zeile ausklappen
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTableShell::ExecTableStyle(SfxRequest& rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ if(pArgs)
+ switch ( rReq.GetSlot() )
+ {
+ case SID_FRAME_LINESTYLE:
+ case SID_FRAME_LINECOLOR:
+ {
+/* Tabellenselektion ist abgeschafft
+ BOOL bPopCrsr = FALSE;
+ if ( !rReq.IsAPI() )
+ {
+ //Keine Tabellenselektion -> Aenderung wird auf die gesamte
+ //Tabelle.
+ if ( !rSh.IsTableMode() )
+ {
+ bPopCrsr = TRUE;
+ rSh.Push();
+ rSh.StartAction();
+ rSh.EnterStdMode();
+ rSh.MoveTable( fnTableCurr, fnTableStart );
+ rSh.SttSelect();
+ rSh.MoveTable( fnTableCurr, fnTableEnd );
+ rSh.EndSelect();
+ }
+ }*/
+ if ( rReq.GetSlot() == SID_FRAME_LINESTYLE )
+ {
+ const SvxLineItem &rLineItem = (const SvxLineItem&)pArgs->
+ Get( SID_FRAME_LINESTYLE );
+ const SvxBorderLine* pBorderLine = rLineItem.GetLine();
+ rSh.SetTabLineStyle( 0, TRUE, pBorderLine);
+ }
+ else
+ {
+ const SvxColorItem &rNewColorItem = (const SvxColorItem&)pArgs->
+ Get( SID_FRAME_LINECOLOR );
+ rSh.SetTabLineStyle( &rNewColorItem.GetValue() );
+ }
+/* if ( bPopCrsr )
+ {
+ rSh.KillPams();
+ rSh.Pop(FALSE);
+ rSh.EndAction();
+ }*/
+ break;
+ }
+ }
+}
+
+
+void SwTableShell::GetLineStyleState(SfxItemSet &rSet)
+{
+ SfxItemSet aCoreSet( GetPool(),
+ RES_BOX, RES_BOX,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0);
+ SvxBoxInfoItem aCoreInfo;
+ aCoreSet.Put(aCoreInfo);
+ GetShell().GetTabBorders( aCoreSet );
+
+ const SvxBoxItem& rBoxItem = (const SvxBoxItem&)aCoreSet.Get( RES_BOX );
+ const SvxBorderLine* pLine = rBoxItem.GetTop();
+
+ rSet.Put( SvxColorItem( pLine ? pLine->GetColor() : Color(), SID_FRAME_LINECOLOR ) );
+ SvxLineItem aLine( SID_FRAME_LINESTYLE );
+ aLine.SetLine(pLine);
+ rSet.Put( aLine );
+}
+
+void SwTableShell::ExecNumberFormat(SfxRequest& rReq)
+{
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ SwWrtShell &rSh = GetShell();
+
+ //Erstmal die Slots, die keinen FrmMgr benoetigen.
+ const SfxPoolItem* pItem = 0;
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem);
+
+ // Sprache immer von Cursorposition besorgen
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_LANGUAGE,
+ RES_CHRATR_LANGUAGE );
+ rSh.GetAttr( aSet );
+ LanguageType eLang = ((const SvxLanguageItem&)aSet.Get(
+ RES_CHRATR_LANGUAGE )).GetLanguage();
+ SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
+ ULONG nNumberFormat = NUMBERFORMAT_ENTRY_NOT_FOUND;
+ USHORT nFmtType = 0, nOffset = 0;
+
+ switch ( nSlot )
+ {
+ case FN_NUMBER_FORMAT:
+ if( pItem )
+ {
+ // Index fuer String bestimmen
+ String aCode( ((const SfxStringItem*)pItem)->GetValue() );
+ nNumberFormat = pFormatter->GetEntryKey( aCode, eLang );
+ if( NUMBERFORMAT_ENTRY_NOT_FOUND == nNumberFormat )
+ {
+ // neu eintragen
+ xub_StrLen nErrPos;
+ short nType;
+ if( !pFormatter->PutEntry( aCode, nErrPos, nType,
+ nNumberFormat, eLang ))
+ nNumberFormat = NUMBERFORMAT_ENTRY_NOT_FOUND;
+ }
+ }
+ break;
+ case FN_NUMBER_STANDARD: nFmtType = NUMBERFORMAT_NUMBER; break;
+ case FN_NUMBER_SCIENTIFIC: nFmtType = NUMBERFORMAT_SCIENTIFIC; break;
+ case FN_NUMBER_DATE: nFmtType = NUMBERFORMAT_DATE; break;
+ case FN_NUMBER_TIME: nFmtType = NUMBERFORMAT_TIME; break;
+ case FN_NUMBER_CURRENCY: nFmtType = NUMBERFORMAT_CURRENCY; break;
+ case FN_NUMBER_PERCENT: nFmtType = NUMBERFORMAT_PERCENT; break;
+
+ case FN_NUMBER_TWODEC: // #.##0,00
+ nFmtType = NUMBERFORMAT_NUMBER;
+ nOffset = NF_NUMBER_1000DEC2;
+ break;
+
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+
+ if( nFmtType )
+ nNumberFormat = pFormatter->GetStandardFormat( nFmtType, eLang ) + nOffset;
+
+ if( NUMBERFORMAT_ENTRY_NOT_FOUND != nNumberFormat )
+ {
+ SfxItemSet aBoxSet( *aSet.GetPool(), RES_BOXATR_FORMAT, RES_BOXATR_FORMAT );
+ aBoxSet.Put( SwTblBoxNumFormat( nNumberFormat ));
+ rSh.SetTblBoxFormulaAttrs( aBoxSet );
+ }
+
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.246 2000/09/18 16:06:05 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.245 2000/09/08 08:12:52 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.244 2000/09/07 15:59:30 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.243 2000/08/25 09:02:38 os
+ negative margins enabled
+
+ Revision 1.242 2000/07/03 20:02:16 jp
+ Bug #70403#: dont delete protected cells
+
+ Revision 1.241 2000/05/26 07:21:32 os
+ old SW Basic API Slots removed
+
+ Revision 1.240 2000/05/18 08:37:25 os
+ lcl_IsNumeric
+
+ Revision 1.239 2000/05/16 14:32:51 jp
+ Changes for Unicode
+
+ Revision 1.238 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.237 2000/04/20 12:51:52 os
+ GetName() returns String&
+
+ Revision 1.236 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.235 2000/02/11 14:57:39 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.234 2000/02/03 15:10:42 os
+ #72601# record deleting of rows or column prior to execution
+
+ Revision 1.233 1999/08/23 07:49:02 OS
+ #61218# correct handling of left_and_width oriented tables
+
+
+ Rev 1.232 23 Aug 1999 09:49:02 OS
+ #61218# correct handling of left_and_width oriented tables
+
+ Rev 1.231 21 Jul 1999 13:29:58 JP
+ WhichId-Ranges of SfxItemSets: EndId is inclusive
+
+ Rev 1.230 09 Jun 1999 19:33:58 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.229 11 May 1999 21:51:40 JP
+ Task #66127#: ueberfluessigen Code entfernt
+
+ Rev 1.228 05 May 1999 11:23:18 OS
+ #63790# Tabellen-Update nur bei Bedarf rufen
+
+ Rev 1.227 28 Apr 1999 22:41:34 JP
+ Bug #65545#: lcl_TableParamToItemSet - umgebene spaltige Bereiche beachten
+
+ Rev 1.226 18 Mar 1999 14:40:48 OS
+ #61169# #61489# Masseinheiten fuer Text u. HTML am Module setzen, nicht an der App
+
+ Rev 1.225 22 Feb 1999 11:50:32 JP
+ fuer Bug #61545#: Code optimiert
+
+ Rev 1.224 17 Feb 1999 21:14:20 JP
+ Task #61764#: neu: Tabellen zusammenfassen
+
+ Rev 1.223 27 Nov 1998 14:52:54 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.222 05 Oct 1998 15:36:02 OM
+ Vernuenftiges Standardformat verwenden
+
+ Rev 1.221 15 Sep 1998 11:20:36 JP
+ Bug #56201#: GoNextCell - per Flag das anhaengen von Lines steuern
+
+ Rev 1.220 08 Sep 1998 17:03:00 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.219 30 Jul 1998 10:58:18 OS
+ Tabellenbreit ergibt sich fuer HORI-NONE aus verfuegbarer Breite - Raender #54030#
+
+ Rev 1.218 20 Jul 1998 10:44:52 MA
+ #53013# Nach Anweisung abgeklemmt
+
+ Rev 1.217 26 Jun 1998 17:36:06 OS
+ SwBGDestItem mit Which #51751#
+
+ Rev 1.216 18 Jun 1998 18:18:46 OS
+ SwBackgroundDestinationItem
+
+ Rev 1.215 02 Jun 1998 10:53:16 JP
+ aUITableAttrRange sollte ein const Array sein
+
+ Rev 1.214 29 May 1998 19:08:26 JP
+ SS vom SwTableReq geaendert
+
+ Rev 1.213 12 May 1998 23:44:08 JP
+ neu: InserTable/TextToTable mit optionalen AutoFormat
+
+ Rev 1.212 28 Apr 1998 09:16:18 OS
+ GetTableWidth() verschoben
+
+ Rev 1.211 18 Mar 1998 19:44:20 MA
+ State fuer Split
+
+ Rev 1.210 17 Mar 1998 16:20:42 OS
+ Tabelle auftrennen
+
+ Rev 1.209 17 Mar 1998 14:12:06 OS
+ Border-Slot auch ohne Argumente ueberleben #48169#
+
+ Rev 1.208 16 Mar 1998 23:21:04 JP
+ SplitTable: zusaetzlich einen Modus angeben - Headline kopieren/Attr. Kopieren/Border korrigieren
+
+ Rev 1.207 02 Mar 1998 14:19:34 OS
+ Zahlenformat statt Default auf Text einstellen#46574#
+
+ Rev 1.206 25 Feb 1998 12:53:52 MA
+ new: SplitTable
+
+ Rev 1.205 29 Nov 1997 15:53:00 MA
+ includes
+
+ Rev 1.204 24 Nov 1997 09:47:06 MA
+ includes
+
+ Rev 1.203 11 Nov 1997 10:49:08 OS
+ Parameter fuer Split und ColumnWidth richtig pruefen
+
+ Rev 1.202 03 Nov 1997 13:55:48 MA
+ precomp entfernt
+
+ Rev 1.201 01 Sep 1997 13:23:08 OS
+ DLL-Umstellung
+
+ Rev 1.200 15 Aug 1997 11:48:50 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.199 12 Aug 1997 14:43:10 MH
+ chg: header
+
+ Rev 1.198 11 Aug 1997 15:42:10 JP
+ Bugfix #42478#: ueber die DocShell die geloeschten Formate besorgen
+
+ Rev 1.198 11 Aug 1997 15:41:44 JP
+ Bugfix #42478#: ueber die DocShell die geloeschten Formate besorgen
+
+ Rev 1.197 11 Aug 1997 08:48:54 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.196 08 Aug 1997 17:28:52 OM
+ Headerfile-Umstellung
+
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/textdrw.cxx b/sw/source/ui/shells/textdrw.cxx
new file mode 100644
index 000000000000..7ad81a10c958
--- /dev/null
+++ b/sw/source/ui/shells/textdrw.cxx
@@ -0,0 +1,278 @@
+/*************************************************************************
+ *
+ * $RCSfile: textdrw.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SVX_FMGLOB_HXX
+#include <svx/fmglob.hxx>
+#endif
+#ifndef _SVDOUNO_HXX //autogen
+#include <svx/svdouno.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FORM_FORMBUTTONTYPE_HPP_
+#include <com/sun/star/form/FormButtonType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _TEXTSH_HXX
+#include <textsh.hxx>
+#endif
+
+#ifndef _POOLFMT_HRC
+#include <poolfmt.hrc>
+#endif
+
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+using namespace ::com::sun::star;
+using namespace ::rtl;
+/*---------------------------------------------------------------------------
+ Beschreibung:
+ ----------------------------------------------------------------------------*/
+
+void SwTextShell::InsertURLButton(const String& rURL, const String& rTarget, const String& rTxt)
+{
+ SwWrtShell& rSh = GetShell();
+
+ if (!rSh.HasDrawView())
+ rSh.MakeDrawView();
+ SdrView *pSdrView = rSh.GetDrawView();
+
+ // OBJ_FM_BUTTON
+ pSdrView->SetCurrentObj(OBJ_FM_BUTTON);
+ pSdrView->SetEditMode(sal_False);
+
+ Point aStartPos(rSh.GetCharRect().Pos() + Point(0, 1));
+
+ rSh.StartAction();
+ rSh.StartUndo( UIUNDO_INSERT_URLBTN );
+ if (rSh.BeginCreate(OBJ_FM_BUTTON, FmFormInventor, aStartPos))
+ {
+ pSdrView->SetOrtho(sal_False);
+ Size aSz(GetView().GetEditWin().PixelToLogic(Size(140, 20)));
+ Point aEndPos(aSz.Width(), aSz.Height());
+
+ rSh.MoveCreate(aStartPos + aEndPos);
+ rSh.EndCreate(SDRCREATE_FORCEEND);
+
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ if (rMarkList.GetMark(0))
+ {
+ SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, rMarkList.GetMark(0)->GetObj());
+ uno::Reference< awt::XControlModel > xControlModel = pUnoCtrl->GetUnoControlModel();
+
+ ASSERT( xControlModel.is(), "UNO-Control ohne Model" );
+ if( !xControlModel.is() )
+ return;
+
+ uno::Reference< beans::XPropertySet > xPropSet(xControlModel, uno::UNO_QUERY);
+
+
+ uno::Any aTmp;
+
+ aTmp <<= OUString(rTxt);
+ xPropSet->setPropertyValue( C2U("Label"), aTmp );
+
+ aTmp <<= OUString(INetURLObject::RelToAbs(rURL));
+ xPropSet->setPropertyValue( C2U("TargetURL"), aTmp );
+
+ if( rTarget.Len() )
+ {
+ aTmp <<= OUString(rTarget);
+ xPropSet->setPropertyValue( C2U("TargetFrame"), aTmp );
+ }
+
+
+ form::FormButtonType eButtonType = form::FormButtonType_URL;
+ aTmp.setValue( &eButtonType, ::getCppuType((const form::FormButtonType*)0));
+ xPropSet->setPropertyValue( C2U("ButtonType"), aTmp );
+ }
+
+ if (rSh.IsObjSelected())
+ {
+// rSh.ChgAnchor(FLY_AT_CNTNT);
+ rSh.UnSelectFrm();
+ }
+ }
+ rSh.EndUndo( UIUNDO_INSERT_URLBTN );
+ rSh.EndAction();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.36 2000/09/18 16:06:05 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.35 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.34 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.33 2000/03/23 07:49:14 os
+ UNO III
+
+ Revision 1.32 2000/02/11 14:57:44 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.31 1999/11/19 16:40:24 os
+ modules renamed
+
+ Revision 1.30 1999/01/26 13:48:26 OS
+ #56371# TF_ONE51
+
+
+ Rev 1.29 26 Jan 1999 14:48:26 OS
+ #56371# TF_ONE51
+
+ Rev 1.28 21 Jan 1999 23:59:00 JP
+ Bug #61062#: InsertURL mit eigener UndoId
+
+ Rev 1.27 07 Jul 1998 14:03:54 OM
+ #51853# util::URL-Button wiederbelebt
+
+ Rev 1.26 06 Jul 1998 14:18:46 OM
+ #51853# util::URL-Button einfuegen
+
+ Rev 1.25 09 Jun 1998 15:35:58 OM
+ VC-Controls entfernt
+
+ Rev 1.24 29 Nov 1997 15:52:54 MA
+ includes
+
+ Rev 1.23 24 Nov 1997 09:47:08 MA
+ includes
+
+ Rev 1.22 03 Nov 1997 13:55:46 MA
+ precomp entfernt
+
+ Rev 1.21 05 Sep 1997 12:08:16 MH
+ chg: header
+
+ Rev 1.20 29 Jul 1997 16:00:16 TJ
+ include VCURLButton
+
+ Rev 1.19 04 Apr 1997 16:41:46 HJS
+ includes
+
+ Rev 1.18 08 Nov 1996 11:59:22 HJS
+ include w.g. positivdefine
+
+ Rev 1.17 28 Aug 1996 15:55:04 OS
+ includes
+
+ Rev 1.16 15 Aug 1996 13:44:24 JP
+ svdraw.hxx entfernt
+
+ Rev 1.15 11 Jul 1996 12:15:44 OM
+ #29283# Buttons zeichengebunden einfuegen
+
+ Rev 1.14 26 Jun 1996 15:21:00 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.13 25 Jun 1996 22:07:12 JP
+ SmartRelToAbs: Flag fuer CutMark hat jetzt inverse Bedeutung
+
+ Rev 1.12 18 Jun 1996 12:29:36 JP
+ SmartRelToAbs: text::Bookmark soll beibehalten werden
+
+ Rev 1.11 13 Jun 1996 15:55:36 MA
+ splitt si.hxx
+
+ Rev 1.10 12 Jun 1996 15:09:18 OM
+ Target am util::URL-Button setzen
+
+ Rev 1.9 12 Jun 1996 14:56:48 OM
+ Target aus Hyperlinkleiste uebernehmen
+
+ Rev 1.8 31 May 1996 11:17:14 NF
+ CLOOKS
+
+ Rev 1.7 11 Apr 1996 17:22:40 JP
+ Umstellung - RelToAbs/AbsToRel
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/textfld.cxx b/sw/source/ui/shells/textfld.cxx
new file mode 100644
index 000000000000..06e8e8cce811
--- /dev/null
+++ b/sw/source/ui/shells/textfld.cxx
@@ -0,0 +1,1175 @@
+/*************************************************************************
+ *
+ * $RCSfile: textfld.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx" //_immer_ vor den solar-Items
+#include "uiparam.hxx"
+
+#ifndef _SVX_POSTATTR_HXX //autogen
+#include <svx/postattr.hxx>
+#endif
+#ifndef _SVX_HLNKITEM_HXX //autogen
+#include <svx/hlnkitem.hxx>
+#endif
+#ifndef _SVXLINKMGR_HXX
+#include <svx/linkmgr.hxx>
+#endif
+#ifndef _LINKDLG_HXX //autogen
+#include <so3/linkdlg.hxx>
+#endif
+#ifndef _SVX_POSTDLG_HXX //autogen
+#include <svx/postdlg.hxx>
+#endif
+#ifndef _SFXITEMPOOL_HXX //autogen
+#include <svtools/itempool.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX //autogen
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX //autogen
+#include <sfx2/inimgr.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _SVX_ADRITEM_HXX //autogen
+#include <svx/adritem.hxx>
+#endif
+#ifndef _LINKDLG_HXX //autogen
+#include <so3/linkdlg.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+
+
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _FLDWRAP_HXX //autogen
+#include <fldwrap.hxx>
+#endif
+#include "redline.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "basesh.hxx"
+#include "wrtsh.hxx"
+#include "finder.hxx"
+#include "flddat.hxx"
+#include "javaedit.hxx"
+#include "numrule.hxx"
+#include "textsh.hxx"
+#include "docufld.hxx"
+#include "usrfld.hxx"
+#include "ddefld.hxx"
+#include "expfld.hxx"
+#include "fldmgr.hxx"
+#include "fldedt.hxx"
+//#include "addrdlg.hxx"
+#include "shells.hrc"
+
+
+extern BOOL bNoInterrupt; // in mainwn.cxx
+
+String& lcl_AppendRedlineStr( String& rStr, USHORT nRedlId )
+{
+ USHORT nResId = 0;
+ switch( nRedlId )
+ {
+ case REDLINE_INSERT: nResId = STR_REDLINE_INSERTED; break;
+ case REDLINE_DELETE: nResId = STR_REDLINE_DELETED; break;
+ case REDLINE_FORMAT: nResId = STR_REDLINE_FORMATED; break;
+ case REDLINE_TABLE: nResId = STR_REDLINE_TABLECHG; break;
+ case REDLINE_FMTCOLL: nResId = STR_REDLINE_FMTCOLLSET; break;
+ }
+ if( nResId )
+ rStr += SW_RESSTR( nResId );
+ return rStr;
+}
+
+// STATIC DATA -----------------------------------------------------------
+
+void SwTextShell::ExecField(SfxRequest &rReq)
+{
+ SwWrtShell& rSh = GetShell();
+ OfficeApplication* pOffApp = OFF_APP();
+ const SfxPoolItem* pItem = 0;
+
+ USHORT nSlot = rReq.GetSlot();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ if(pArgs)
+ pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem);
+
+ Window *pMDI = &GetView().GetViewFrame()->GetWindow();
+ BOOL bMore = FALSE;
+ USHORT nInsertType = 0;
+ USHORT nInsertSubType = 0;
+ USHORT nInsertFormat = 0;
+
+ switch(nSlot)
+ {
+ case FN_EDIT_FIELD:
+ {
+ SwField* pFld = rSh.GetCurFld();
+ if( pFld )
+ {
+ switch ( pFld->GetTypeId() )
+ {
+ case TYP_DDEFLD:
+ {
+#if !defined(DDE_AVAILABLE)
+ return;
+#endif
+ SvBaseLinksDialog aDlg( pMDI,
+ &rSh.GetLinkManager() );
+ aDlg.SetActLink( ((SwDDEFieldType*)pFld->GetTyp())->
+ GetBaseLink() );
+ aDlg.Execute();
+ break;
+ }
+ default:
+ {
+ SwFldEditDlg *pDlg = new SwFldEditDlg(GetView());
+ // SetCareWin geht nicht, da Feld nicht selektiert wird
+ // rSh.SetCareWin(pDlg);
+ pDlg->Execute();
+ delete pDlg;
+ //rSh.SetCareWin(NULL);
+ }
+ }
+ }
+ break;
+ }
+ case FN_EXECUTE_MACROFIELD:
+ {
+ SwField* pFld = rSh.GetCurFld();
+ if(pFld && pFld->GetTyp()->Which() == RES_MACROFLD)
+ {
+
+ const String& rMacro = ((SwMacroField*)pFld)->GetMacro();
+ USHORT nPos = rMacro.Search('.', 0);
+ if(nPos != STRING_NOTFOUND)
+ {
+ SvxMacro aMacro( rMacro.Copy(nPos + 1), rMacro.Copy(0,nPos), STARBASIC );
+ rSh.ExecMacro(aMacro);
+ }
+ }
+ }
+ break;
+
+ case FN_GOTO_NEXT_INPUTFLD:
+ case FN_GOTO_PREV_INPUTFLD:
+ {
+ BOOL bRet = FALSE;
+ SwFieldType* pFld = rSh.GetFldType( 0, RES_INPUTFLD );
+ if( pFld && rSh.MoveFldType( pFld,
+ FN_GOTO_NEXT_INPUTFLD == nSlot ))
+ {
+ rSh.ClearMark();
+ rSh.StartInputFldDlg( rSh.GetCurFld(), FALSE );
+ bRet = TRUE;
+ }
+
+ rReq.SetReturnValue( SfxBoolItem( nSlot, bRet ));
+ }
+ break;
+
+ default:
+ bMore = TRUE;
+ }
+ if(bMore)
+ {
+ // hier kommen die Slots mit FldMgr
+ SwFldMgr aFldMgr(GetShellPtr());
+ switch(nSlot)
+ {
+ case FN_INSERT_FIELD_CTRL:
+ case FN_INSERT_FIELD:
+ {
+ BOOL bRes = FALSE;
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ pVFrame->ToggleChildWindow(FN_INSERT_FIELD);
+ bRes = pVFrame->GetChildWindow( nSlot ) != 0;
+ Invalidate(rReq.GetSlot());
+ Invalidate(FN_INSERT_FIELD_CTRL);
+ rReq.SetReturnValue(SfxBoolItem( nSlot, bRes ));
+ }
+ break;
+
+ case FN_INSERT_REF_FIELD:
+ {
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if (!pVFrame->HasChildWindow(FN_INSERT_FIELD))
+ pVFrame->ToggleChildWindow(FN_INSERT_FIELD); // Dialog anzeigen
+
+ // Flddlg auf neue TabPage umschalten
+ USHORT nId = SwFldDlgWrapper::GetChildWindowId();
+ SwFldDlgWrapper *pWrp = (SwFldDlgWrapper*)pVFrame->GetChildWindow(nId);
+ if (pWrp)
+ pWrp->ShowPage();
+ }
+ break;
+
+
+ case FN_POSTIT:
+ {
+ pPostItFldMgr = new SwFldMgr;
+ SwPostItField* pPostIt = (SwPostItField*)pPostItFldMgr->GetCurFld();
+ BOOL bNew = !(pPostIt && pPostIt->GetTyp()->Which() == RES_POSTITFLD);
+ BOOL bTravel = FALSE;
+ BOOL bNext, bPrev;
+
+ SfxItemSet aSet(GetPool(), SvxPostItDialog::GetRanges());
+
+ if(!bNew)
+ {
+ aSet.Put(SvxPostItTextItem(pPostIt->GetPar2().ConvertLineEnd(), SID_ATTR_POSTIT_TEXT));
+ aSet.Put(SvxPostItAuthorItem(pPostIt->GetPar1(), SID_ATTR_POSTIT_AUTHOR));
+ aSet.Put(SvxPostItDateItem(
+ Application::GetAppInternational().
+ GetDate(pPostIt->GetDate()),
+ SID_ATTR_POSTIT_DATE));
+
+ // Traveling nur bei mehr als einem Feld
+ rSh.StartAction();
+
+ bNext = pPostItFldMgr->GoNext();
+ if( bNext )
+ pPostItFldMgr->GoPrev();
+
+ if( 0 != ( bPrev = pPostItFldMgr->GoPrev() ) )
+ pPostItFldMgr->GoNext();
+ bTravel |= bNext|bPrev;
+
+ rSh.EndAction();
+ }
+ else
+ {
+ SvxAddressItem aAdr( pPathFinder->GetAddress() );
+ aSet.Put(SvxPostItTextItem(aEmptyStr, SID_ATTR_POSTIT_TEXT));
+ aSet.Put(SvxPostItAuthorItem(aAdr.GetShortName(), SID_ATTR_POSTIT_AUTHOR));
+ aSet.Put(SvxPostItDateItem(
+ Application::GetAppInternational().
+ GetDate(Date()), SID_ATTR_POSTIT_DATE));
+ }
+
+ SvxPostItDialog *pDlg = new SvxPostItDialog( pMDI, aSet, bTravel);
+ pDlg->SetReadonlyPostIt(rSh.IsReadOnlyAvailable() && rSh.HasReadonlySel());
+
+ if (bTravel)
+ {
+ pDlg->EnableTravel(bNext, bPrev);
+ pDlg->SetPrevHdl(LINK(this, SwTextShell, PostItPrevHdl));
+ pDlg->SetNextHdl(LINK(this, SwTextShell, PostItNextHdl));
+ }
+
+ if (bNew)
+ pDlg->SetText(SW_RESSTR(STR_NOTIZ_INSERT));
+
+ bNoInterrupt = TRUE;
+ if ( pDlg->Execute() == RET_OK )
+ {
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ String sMsg(((const SvxPostItTextItem&)pOutSet->Get(SID_ATTR_POSTIT_TEXT)).GetValue());
+ String sAuthor(((const SvxPostItAuthorItem&)pOutSet->Get(SID_ATTR_POSTIT_AUTHOR)).GetValue());
+
+ if(bNew)
+ // neues PostIt anlegen
+ pPostItFldMgr->InsertFld(TYP_POSTITFLD, 0, sAuthor, sMsg, 0);
+ else
+ // altes PostIt updaten
+ pPostItFldMgr->UpdateCurFld(0, sAuthor, sMsg);
+ }
+
+ delete pDlg;
+ delete pPostItFldMgr;
+ bNoInterrupt = FALSE;
+ GetView().AttrChangedNotify(GetShellPtr());
+ }
+ break;
+
+ case FN_REDLINE_COMMENT:
+ {
+ BOOL bNew = TRUE;
+ String sComment;
+ const SwRedline *pRedline = rSh.GetCurrRedline();
+
+ if (pRedline)
+ {
+ sComment = pRedline->GetComment();
+
+
+ BOOL bTravel = FALSE;
+
+ SfxItemSet aSet(GetPool(), SvxPostItDialog::GetRanges());
+ const International& rIntl = Application::GetAppInternational();
+
+ aSet.Put(SvxPostItTextItem(sComment.ConvertLineEnd(), SID_ATTR_POSTIT_TEXT));
+ aSet.Put(SvxPostItAuthorItem(pRedline->GetAuthorString(), SID_ATTR_POSTIT_AUTHOR));
+
+ const DateTime &rDT = pRedline->GetRedlineData().GetTimeStamp();
+
+ String sDate(rIntl.GetDate( rDT ));
+ (sDate += ' ' ) += rIntl.GetTime( rDT, FALSE, FALSE );
+
+ aSet.Put(SvxPostItDateItem(sDate, SID_ATTR_POSTIT_DATE));
+
+ // Traveling nur bei mehr als einem Feld
+ rSh.StartAction();
+
+ rSh.Push();
+ const SwRedline *pActRed = rSh.SelPrevRedline();
+
+ if (pActRed == pRedline)
+ { // Neuer Cursor steht am Anfang des Current Redlines
+ rSh.Pop(); // Alten Cursor wegwerfen
+ rSh.Push();
+ pActRed = rSh.SelPrevRedline();
+ }
+
+ BOOL bPrev = pActRed != 0;
+ rSh.Pop(FALSE);
+ rSh.EndAction();
+
+ rSh.ClearMark();
+ rSh.SelNextRedline(); // Aktueller Redline wird selektiert
+
+ rSh.StartAction();
+ rSh.Push();
+ pActRed = rSh.SelNextRedline();
+ BOOL bNext = pActRed != 0;
+ rSh.Pop(FALSE); // Cursorpos restaurieren
+
+ if( rSh.IsCrsrPtAtEnd() )
+ rSh.SwapPam();
+
+ rSh.EndAction();
+
+ bTravel |= bNext|bPrev;
+
+ SvxPostItDialog *pDlg = new SvxPostItDialog( pMDI, aSet, bTravel, TRUE);
+ pDlg->HideAuthor();
+
+ String sTitle(SW_RES(STR_REDLINE_COMMENT));
+ ::lcl_AppendRedlineStr( sTitle, pRedline->GetType() );
+
+ pDlg->SetText(sTitle);
+
+ if (bTravel)
+ {
+ pDlg->EnableTravel(bNext, bPrev);
+ pDlg->SetPrevHdl(LINK(this, SwTextShell, RedlinePrevHdl));
+ pDlg->SetNextHdl(LINK(this, SwTextShell, RedlineNextHdl));
+ }
+
+ rSh.SetCareWin(pDlg);
+ bNoInterrupt = TRUE;
+
+ if ( pDlg->Execute() == RET_OK )
+ {
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ String sMsg(((const SvxPostItTextItem&)pOutSet->Get(SID_ATTR_POSTIT_TEXT)).GetValue());
+
+ // Kommentar einfuegen bzw aendern
+ rSh.SetRedlineComment(sMsg);
+ }
+
+ delete pDlg;
+ rSh.SetCareWin(NULL);
+ bNoInterrupt = FALSE;
+ rSh.ClearMark();
+ GetView().AttrChangedNotify(GetShellPtr());
+ }
+ }
+ break;
+
+ case FN_JAVAEDIT:
+ {
+ SwJavaEditDialog *pDlg = new SwJavaEditDialog( pMDI, &rSh);
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+
+ case FN_INSERT_FLD_DATE :
+ nInsertType = TYP_DATEFLD;
+ goto FIELD_INSERT;
+ case FN_INSERT_FLD_TIME :
+ nInsertType = TYP_TIMEFLD;
+ goto FIELD_INSERT;
+ case FN_INSERT_FLD_PGNUMBER:
+ nInsertType = TYP_PAGENUMBERFLD;
+ nInsertFormat = SVX_NUM_PAGEDESC; // wie Seitenvorlage
+ goto FIELD_INSERT;
+ case FN_INSERT_FLD_PGCOUNT :
+ nInsertType = TYP_DOCSTATFLD;
+ nInsertSubType = 0;
+ nInsertFormat = SVX_NUM_PAGEDESC;
+ goto FIELD_INSERT;
+ case FN_INSERT_FLD_TOPIC :
+ nInsertType = TYP_DOCINFOFLD;
+ nInsertSubType = DI_THEMA;
+ goto FIELD_INSERT;
+ case FN_INSERT_FLD_TITLE :
+ nInsertType = TYP_DOCINFOFLD;
+ nInsertSubType = DI_TITEL;
+ goto FIELD_INSERT;
+ case FN_INSERT_FLD_AUTHOR :
+ nInsertType = TYP_AUTHORFLD;
+
+FIELD_INSERT:
+ aFldMgr.InsertFld(nInsertType, nInsertSubType,
+ aEmptyStr, aEmptyStr, nInsertFormat);
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+ }
+}
+
+
+void SwTextShell::StateField( SfxItemSet &rSet )
+{
+ SwWrtShell& rSh = GetShell();
+ SfxWhichIter aIter( rSet );
+ const SwField* pField = 0;
+ int bGetField = FALSE;
+ USHORT nWhich = aIter.FirstWhich();
+
+ while (nWhich)
+ {
+ switch (nWhich)
+ {
+ case FN_EDIT_FIELD:
+ {
+ if( rSh.HasSelection() )
+ rSet.DisableItem(nWhich);
+ else
+ {
+ if( !bGetField )
+ {
+ pField = rSh.GetCurFld();
+ bGetField = TRUE;
+ }
+
+ USHORT nTempWhich = pField ? pField->GetTyp()->Which() : USHRT_MAX;
+ if( USHRT_MAX == nTempWhich ||
+ RES_POSTITFLD == nTempWhich ||
+ RES_SCRIPTFLD == nTempWhich ||
+ RES_AUTHORITY == nTempWhich )
+ rSet.DisableItem( nWhich );
+ }
+ }
+ break;
+ case FN_EXECUTE_MACROFIELD:
+ {
+ if(!bGetField)
+ {
+ pField = rSh.GetCurFld();
+ bGetField = TRUE;
+ }
+ if(!pField || pField->GetTyp()->Which() != RES_MACROFLD)
+ rSet.DisableItem(nWhich);
+ }
+ break;
+
+ case FN_INSERT_FIELD:
+ {
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if (pVFrame->KnowsChildWindow(FN_INSERT_FIELD))
+ rSet.Put(SfxBoolItem( FN_INSERT_FIELD, pVFrame->HasChildWindow(nWhich)));
+ else
+ rSet.DisableItem(FN_INSERT_FIELD);
+ }
+ break;
+ case FN_INSERT_REF_FIELD:
+ {
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if (!pVFrame->KnowsChildWindow(FN_INSERT_FIELD))
+ rSet.DisableItem(FN_INSERT_REF_FIELD);
+ }
+ break;
+ case FN_INSERT_FIELD_CTRL:
+ rSet.Put(SfxBoolItem( nWhich, GetView().GetViewFrame()->HasChildWindow(FN_INSERT_FIELD)));
+ break;
+ case FN_REDLINE_COMMENT:
+ if (!rSh.GetCurrRedline())
+ rSet.DisableItem(nWhich);
+ break;
+ case FN_POSTIT :
+ case FN_JAVAEDIT :
+ BOOL bCurField = FALSE;
+ SwField* pField = rSh.GetCurFld();
+ if(nWhich == FN_POSTIT)
+ bCurField = pField && pField->GetTyp()->Which() == RES_POSTITFLD;
+ else
+ bCurField = pField && pField->GetTyp()->Which() == RES_SCRIPTFLD;
+
+ if(!bCurField && rSh.IsReadOnlyAvailable() && rSh.HasReadonlySel() )
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*---------------------------------------------------------------------------
+ Beschreibung:
+ ----------------------------------------------------------------------------*/
+
+
+void SwTextShell::InsertHyperlink(const SvxHyperlinkItem& rHlnkItem)
+{
+ const String& rName = rHlnkItem.GetName();
+ const String& rURL = rHlnkItem.GetURL();
+ const String& rTarget = rHlnkItem.GetTargetFrame();
+ USHORT nType = (USHORT)rHlnkItem.GetInsertMode();
+ const SvxMacroTableDtor* pMacroTbl = rHlnkItem.GetMacroTbl();
+
+ SwWrtShell& rSh = GetShell();
+
+ if( rSh.GetSelectionType() & SwWrtShell::SEL_TXT )
+ {
+ switch (nType)
+ {
+ case HLINK_DEFAULT:
+ case HLINK_FIELD:
+ {
+ rSh.StartAction();
+ BOOL bSel = rSh.HasSelection();
+ SfxItemSet aSet(GetPool(), RES_TXTATR_INETFMT, RES_TXTATR_INETFMT);
+ rSh.GetAttr( aSet );
+
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == aSet.GetItemState(RES_TXTATR_INETFMT, FALSE, &pItem))
+ {
+ const SwFmtINetFmt* pINetFmt = (const SwFmtINetFmt*)pItem;
+
+ // Links selektieren
+ rSh.SwCrsrShell::SelectTxtAttr(RES_TXTATR_INETFMT);
+ }
+ SwFmtINetFmt aINetFmt( rURL, rTarget );
+ aINetFmt.SetName(rHlnkItem.GetIntName());
+ if(pMacroTbl)
+ {
+ SvxMacro *pMacro = pMacroTbl->Get( SFX_EVENT_MOUSEOVER_OBJECT );
+ if( pMacro )
+ aINetFmt.SetMacro(SFX_EVENT_MOUSEOVER_OBJECT, *pMacro);
+ pMacro = pMacroTbl->Get( SFX_EVENT_MOUSECLICK_OBJECT );
+ if( pMacro )
+ aINetFmt.SetMacro(SFX_EVENT_MOUSECLICK_OBJECT, *pMacro);
+ pMacro = pMacroTbl->Get( SFX_EVENT_MOUSEOUT_OBJECT );
+ if( pMacro )
+ aINetFmt.SetMacro(SFX_EVENT_MOUSEOUT_OBJECT, *pMacro);
+ }
+ rSh.InsertURL( aINetFmt, rName, TRUE );
+ rSh.EndAction();
+ }
+ break;
+
+ case HLINK_BUTTON:
+ InsertURLButton( rURL, rTarget, rName );
+ rSh.EnterStdMode();
+ break;
+ }
+ }
+}
+
+/*---------------------------------------------------------------------------
+ Beschreibung:
+ ----------------------------------------------------------------------------*/
+
+
+void SwTextShell::InsertDBFld(const String& sFldName)
+{
+ SwFldMgr aFldMgr(GetShellPtr());
+
+ aFldMgr.InsertFld(TYP_DBFLD, 0, sFldName, aEmptyStr, 0, FALSE, TRUE);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling zwishen PostIts
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwTextShell, PostItNextHdl, Button *, pBtn )
+{
+ SvxPostItDialog *pDlg = (SvxPostItDialog*)pBtn;
+
+ if( pDlg->IsOkEnabled() )
+ pPostItFldMgr->UpdateCurFld( 0,
+ SFX_INIMANAGER()->Get(SFX_KEY_USER_ID),
+ pDlg->GetNote() );
+ pPostItFldMgr->GoNext();
+ SwPostItField* pPostIt = (SwPostItField*)pPostItFldMgr->GetCurFld();
+ pDlg->SetNote(pPostIt->GetPar2().ConvertLineEnd());
+ pDlg->ShowLastAuthor(pPostIt->GetPar1(), Application::GetAppInternational().GetDate(pPostIt->GetDate()));
+
+ // Traveling nur bei mehr als einem Feld
+ SwWrtShell* pSh = GetShellPtr();
+ pDlg->SetReadonlyPostIt(pSh->IsReadOnlyAvailable() && pSh->HasReadonlySel());
+ pSh->StartAction();
+
+ BOOL bEnable = FALSE;
+ if( pPostItFldMgr->GoNext() )
+ {
+ bEnable = TRUE;
+ pPostItFldMgr->GoPrev();
+ }
+ pDlg->EnableTravel(bEnable, TRUE);
+
+ pSh->EndAction();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwTextShell, PostItPrevHdl, Button *, pBtn )
+{
+ SvxPostItDialog *pDlg = (SvxPostItDialog*)pBtn;
+
+ if( pDlg->IsOkEnabled() )
+ pPostItFldMgr->UpdateCurFld( 0,
+ SFX_INIMANAGER()->Get(SFX_KEY_USER_ID),
+ pDlg->GetNote() );
+ pPostItFldMgr->GoPrev();
+ SwPostItField* pPostIt = (SwPostItField*)pPostItFldMgr->GetCurFld();
+ pDlg->SetNote(pPostIt->GetPar2().ConvertLineEnd());
+ pDlg->ShowLastAuthor(pPostIt->GetPar1(), Application::GetAppInternational().GetDate(pPostIt->GetDate()));
+
+ // Traveling nur bei mehr als einem Feld
+ SwWrtShell* pSh = GetShellPtr();
+ pDlg->SetReadonlyPostIt(pSh->IsReadOnlyAvailable() && pSh->HasReadonlySel());
+ pSh->StartAction();
+
+ BOOL bEnable = FALSE;
+ if( pPostItFldMgr->GoPrev() )
+ {
+ bEnable = TRUE;
+ pPostItFldMgr->GoNext();
+ }
+ pDlg->EnableTravel(TRUE, bEnable);
+
+ pSh->EndAction();
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Traveling zwischen Redlines
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwTextShell, RedlineNextHdl, Button *, pBtn )
+{
+ SwWrtShell* pSh = GetShellPtr();
+ SvxPostItDialog *pDlg = (SvxPostItDialog*)pBtn;
+
+ // Kommentar einfuegen bzw aendern
+ pSh->SetRedlineComment(pDlg->GetNote());
+
+ const SwRedline *pRedline = pSh->GetCurrRedline();
+
+ BOOL bNew = TRUE;
+ String sComment;
+
+ if (pRedline)
+ {
+ // Traveling nur bei mehr als einem Feld
+ if( !pSh->IsCrsrPtAtEnd() )
+ pSh->SwapPam(); // Cursor hinter den Redline stellen
+
+ pSh->Push();
+ const SwRedline *pActRed = pSh->SelNextRedline();
+ pSh->Pop(pActRed != 0);
+
+ BOOL bEnable = FALSE;
+
+ if (pActRed)
+ {
+ pSh->StartAction();
+ pSh->Push();
+ bEnable = pSh->SelNextRedline() != 0;
+ pSh->Pop(FALSE);
+ pSh->EndAction();
+ }
+
+ pDlg->EnableTravel(bEnable, TRUE);
+
+ if( pSh->IsCrsrPtAtEnd() )
+ pSh->SwapPam();
+
+ pRedline = pSh->GetCurrRedline();
+ sComment = pRedline->GetComment();
+
+ const International& rIntl = Application::GetAppInternational();
+
+ const DateTime &rDT = pRedline->GetRedlineData().GetTimeStamp();
+
+ String sDate(rIntl.GetDate( rDT ));
+ (sDate += ' ' ) += rIntl.GetTime( rDT, FALSE, FALSE );
+
+ pDlg->SetNote(sComment.ConvertLineEnd());
+ pDlg->ShowLastAuthor(pRedline->GetAuthorString(), sDate);
+
+ String sTitle(SW_RES(STR_REDLINE_COMMENT));
+ ::lcl_AppendRedlineStr( sTitle, pRedline->GetType() );
+
+ pDlg->SetText(sTitle);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwTextShell, RedlinePrevHdl, Button *, pBtn )
+{
+ SwWrtShell* pSh = GetShellPtr();
+ SvxPostItDialog *pDlg = (SvxPostItDialog*)pBtn;
+
+ // Kommentar einfuegen bzw aendern
+ pSh->SetRedlineComment(pDlg->GetNote());
+
+ const SwRedline *pRedline = pSh->GetCurrRedline();
+
+ BOOL bNew = TRUE;
+ String sComment;
+
+ if (pRedline)
+ {
+ // Traveling nur bei mehr als einem Feld
+ pSh->Push();
+ const SwRedline *pActRed = pSh->SelPrevRedline();
+ pSh->Pop(pActRed != 0);
+
+ BOOL bEnable = FALSE;
+
+ if (pActRed)
+ {
+ pSh->StartAction();
+ pSh->Push();
+ bEnable = pSh->SelPrevRedline() != 0;
+ pSh->Pop(FALSE);
+ pSh->EndAction();
+ }
+
+ pDlg->EnableTravel(TRUE, bEnable);
+
+ pRedline = pSh->GetCurrRedline();
+ sComment = pRedline->GetComment();
+
+ const International& rIntl = Application::GetAppInternational();
+
+ const DateTime &rDT = pRedline->GetRedlineData().GetTimeStamp();
+
+ String sDate(rIntl.GetDate( rDT ));
+ (sDate += ' ' ) += rIntl.GetTime( rDT, FALSE, FALSE );
+
+ pDlg->SetNote(sComment.ConvertLineEnd());
+ pDlg->ShowLastAuthor(pRedline->GetAuthorString(), sDate);
+
+ String sTitle(SW_RES(STR_REDLINE_COMMENT));
+ ::lcl_AppendRedlineStr( sTitle, pRedline->GetType() );
+
+ pDlg->SetText(sTitle);
+ }
+
+ return 0;
+}
+
+// -----------------------------------------------------------------------
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.117 2000/09/18 16:06:05 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.116 2000/09/08 08:12:52 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.115 2000/06/30 08:52:04 os
+ #76541# string assertions removed
+
+ Revision 1.114 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.113 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.112 2000/04/11 11:32:34 os
+ #74939# select inserted URLs
+
+ Revision 1.111 2000/02/25 09:26:37 hr
+ #73447#: removed temporary
+
+ Revision 1.110 2000/02/11 14:58:18 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.109 2000/01/20 10:59:55 os
+ #72115# set name of inserted hyperlink
+
+ Revision 1.108 2000/01/18 12:10:40 pw
+ #71932# Use SFX_EVENT_-constants to get a macro from a macrotable
+
+ Revision 1.107 1999/10/27 06:37:49 os
+ HyperLink dialog interface, events
+
+ Revision 1.106 1999/10/20 16:33:19 jp
+ Bug #69239#: return correct state of FN_EDIT_FIELD
+
+ Revision 1.105 1999/09/24 14:38:32 os
+ hlnkitem.hxx now in SVX
+
+ Revision 1.104 1999/09/15 14:15:43 os
+ AuthorityField(-Type), RES_AUTHORITY
+
+ Revision 1.103 1999/07/16 14:04:08 JP
+ Bug #67677#: PostIdNext-/-PrevHdl - if OkButton is enabled the field can changed
+
+
+ Rev 1.102 16 Jul 1999 16:04:08 JP
+ Bug #67677#: PostIdNext-/-PrevHdl - if OkButton is enabled the field can changed
+
+ Rev 1.101 10 Jun 1999 13:16:36 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.100 10 May 1999 13:50:12 OS
+ #64780# Notizen in gesch. Bereichen
+
+ Rev 1.99 19 Apr 1999 13:42:20 OS
+ #63005# Notizen und Scripts in gesch. Bereichen
+
+ Rev 1.98 17 Nov 1998 10:58:32 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.97 21 Oct 1998 16:19:32 OM
+ #58157# Querverweise einfuegen
+
+ Rev 1.96 09 Oct 1998 17:06:04 JP
+ Bug #57741#: neue ResourceIds, optimiert
+
+ Rev 1.95 17 Jul 1998 17:26:14 OM
+ #52865# Neue HelpIDs fuer Redline-bearbeiten Dlg
+
+ Rev 1.94 14 Jul 1998 14:19:10 OM
+ #52859# Autor-Button nicht anzeigen
+
+ Rev 1.93 09 Jul 1998 09:53:22 JP
+ EmptyStr benutzen
+
+ Rev 1.92 13 Jun 1998 16:08:48 OS
+ FN_INSERT_FIELD_CONTROL ruft auch Feldbefehl-Dialog
+
+ Rev 1.91 19 May 1998 12:45:50 OM
+ SvxMacro-Umstellung
+
+ Rev 1.90 24 Mar 1998 13:43:34 JP
+ neu: Redline fuer harte Attributierung
+
+ Rev 1.89 18 Mar 1998 18:20:10 OM
+ Redlines schneller selektieren
+
+ Rev 1.88 18 Mar 1998 18:06:26 OM
+ Redlines schneller selektieren
+
+ Rev 1.87 28 Feb 1998 15:13:54 OM
+ Accept / reject changes
+
+ Rev 1.86 26 Feb 1998 11:10:02 OM
+ Redlining-Travelling anzeigen
+
+ Rev 1.85 25 Feb 1998 16:49:46 OM
+ Fixe Author- und ExtUser-Felder
+
+ Rev 1.84 12 Feb 1998 13:22:48 OM
+ Traveling zwischen Redline-Objekten
+
+ Rev 1.83 10 Feb 1998 17:08:58 OM
+ Redlining kommentieren
+
+ Rev 1.82 27 Jan 1998 22:42:18 JP
+ GetNumDepend durch GetDepends ersetzt
+
+ Rev 1.81 23 Jan 1998 16:07:14 MA
+ includes
+
+ Rev 1.80 13 Jan 1998 16:57:54 OM
+ #46549# Notiz einfuegen
+
+ Rev 1.79 12 Jan 1998 17:09:32 OM
+ Zu TYP_SETREFFLD per Basic springen
+
+ Rev 1.78 19 Dec 1997 18:25:34 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.77 10 Dec 1997 10:08:28 OM
+ Alten Feldbefehl-Dlg entfernt
+
+ Rev 1.76 05 Dec 1997 13:16:56 OM
+ #45750# DDE-Field Delimiter fuer Basic wandeln
+
+ Rev 1.75 04 Dec 1997 08:31:50 OS
+ NextFieldByType: SubType fuer SETFLD nicht setzen #45912#
+
+ Rev 1.74 29 Nov 1997 15:52:12 MA
+ includes
+
+ Rev 1.73 24 Nov 1997 09:47:08 MA
+ includes
+
+ Rev 1.72 10 Nov 1997 15:40:04 OS
+ MoveFldType mit SubType #45425#
+
+ Rev 1.71 03 Nov 1997 13:55:48 MA
+ precomp entfernt
+
+ Rev 1.70 28 Oct 1997 15:07:16 OM
+ Neuer Feldbefehl-Dialog angefangen
+
+ Rev 1.69 20 Oct 1997 15:41:24 OS
+ GotoNext/PrevInputField: Selektion aufheben #44846#
+
+ Rev 1.68 24 Sep 1997 15:20:30 OM
+ Feldumstellung
+
+ Rev 1.67 03 Sep 1997 16:02:10 OS
+ include
+
+ Rev 1.66 01 Sep 1997 13:23:58 OS
+ DLL-Umstellung
+
+ Rev 1.65 15 Aug 1997 11:48:38 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.64 08 Aug 1997 17:28:48 OM
+ Headerfile-Umstellung
+
+ Rev 1.63 12 Jul 1997 12:11:02 OS
+ FN_JAVAEDIT: Parameter fuer URL und ScriptType nachgetragen
+
+ Rev 1.62 10 Jul 1997 16:07:22 OM
+ Aufgeraeumt
+
+ Rev 1.61 26 Jun 1997 09:43:40 OM
+ Basic: Datenbank in Feldbefehlen ersetzen
+
+ Rev 1.60 25 Jun 1997 15:42:26 OS
+ CurField(Sub)Type: DATE und TIME mappen #40967#
+
+ Rev 1.59 21 Jun 1997 14:52:24 OS
+ neu: FieldPrompt
+
+ Rev 1.58 20 Jun 1997 15:17:38 OS
+ GetShell()s reduziert
+
+ Rev 1.57 18 Jun 1997 18:09:38 OM
+ Adressfeld: Focus je nach Typ im Dialog setzen
+
+ Rev 1.56 12 Jun 1997 15:34:08 JP
+ Feld-Slots aus der TextShell in die BaseShell verschoben
+
+ Rev 1.55 09 Jun 1997 11:39:46 JP
+ fuer TYP_SETREFFLD gibt es keinen FeldTypen
+
+ Rev 1.54 04 Jun 1997 14:08:06 OM
+ #40431# Scriptfeld: Felbefehle bearbeiten disablen
+
+ Rev 1.53 27 May 1997 13:36:24 OS
+ neu: CurFieldType, CurFieldSubType
+
+ Rev 1.52 12 May 1997 16:09:26 OM
+ #39823# GPF bei blaettern zwischen Notizen behoben
+
+ Rev 1.51 23 Apr 1997 15:15:44 OS
+ FieldType anlegen
+
+ Rev 1.50 08 Apr 1997 10:52:22 OM
+ Fehlende Includes
+
+ Rev 1.49 07 Apr 1997 16:45:24 OM
+ HyperlinkItem recorden
+
+ Rev 1.48 18 Mar 1997 15:31:16 OM
+ Segmentiert
+
+ Rev 1.47 18 Mar 1997 15:30:56 OM
+ Datenbanktrenner wandeln
+
+ Rev 1.46 23 Feb 1997 15:05:20 OS
+ SetUserFieldValue liefert BOOL
+
+ Rev 1.45 21 Feb 1997 16:08:38 OM
+ Eingefuegten Hyperlink aufzeichnen
+
+ Rev 1.44 13 Feb 1997 17:38:22 OM
+ Script-Dlg
+
+ Rev 1.43 11 Feb 1997 16:52:24 OM
+ Eingabefeld ueber Basic ohne Dialog einfuegen
+
+ Rev 1.42 05 Feb 1997 12:39:32 OM
+ Feldbefehl Seitennummer auf Standardvorlage defaulten
+
+ Rev 1.41 09 Dec 1996 14:43:16 OM
+ SwPostItDlg durch SvxPostItDlg ersetzt
+
+ Rev 1.40 06 Nov 1996 07:10:16 OS
+ FN_GET_FIELD_VALUE optimiert
+
+ Rev 1.39 01 Oct 1996 16:54:02 OM
+ Hyperlinks editieren
+
+ Rev 1.38 26 Sep 1996 14:40:28 OM
+ Datenbankfelder ueber Basic einfuegen
+
+ Rev 1.37 24 Sep 1996 16:42:32 OS
+ neue Slots fuer FieldTypes
+
+ Rev 1.36 24 Sep 1996 13:49:58 OM
+ Neuer Datenbanktrenner
+
+ Rev 1.35 20 Sep 1996 12:01:42 OS
+ Formate fuer Seitennummer/Seitenzahl-Felder korrigiert
+
+ Rev 1.34 19 Sep 1996 16:08:34 OS
+ neue Slots zum direkten Feldeinfuegen
+
+ Rev 1.33 19 Sep 1996 10:58:56 OM
+ neue Parameter fuer GetDatabaseFieldValue
+
+ Rev 1.32 02 Sep 1996 18:43:08 JP
+ INetFeld entfernt
+
+ Rev 1.31 30 Aug 1996 12:41:24 OS
+ InputFldDlg mit Next-Button
+
+ Rev 1.30 28 Aug 1996 15:54:56 OS
+ includes
+
+ Rev 1.29 23 Aug 1996 14:49:20 OM
+ Neue Segs
+
+ Rev 1.28 23 Aug 1996 14:48:00 OM
+ Datenbank: Drag&Drop
+
+ Rev 1.27 21 Aug 1996 13:09:24 OS
+ FldMgr mit Shell anlegen -> richtige view benutzen
+
+ Rev 1.26 20 Aug 1996 17:23:00 JP
+ InsertURL: Shell wieder in StdMode schalten
+
+ Rev 1.25 20 Aug 1996 15:39:10 JP
+ InsertURL: statt FeldManager direkt an die Shell gehen
+
+ Rev 1.24 24 Jun 1996 18:29:14 HJS
+ includes
+
+ Rev 1.23 12 Jun 1996 15:16:30 OM
+ Optimiert
+
+ Rev 1.22 12 Jun 1996 14:56:50 OM
+ Target aus Hyperlinkleiste uebernehmen
+
+ Rev 1.21 04 Jun 1996 18:43:46 JP
+ neu: ab CursorPosition Next/Prev-InputField suchen und Dialog hochziehem
+
+ Rev 1.20 31 May 1996 15:27:08 OM
+ Ueberfluessigen Include entfernt
+
+ Rev 1.19 28 May 1996 15:23:38 OM
+ Neue Basic-Cmds fuer Datenbanken
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/textglos.cxx b/sw/source/ui/shells/textglos.cxx
new file mode 100644
index 000000000000..e85c9efb4804
--- /dev/null
+++ b/sw/source/ui/shells/textglos.cxx
@@ -0,0 +1,209 @@
+/*************************************************************************
+ *
+ * $RCSfile: textglos.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+
+#include "errhdl.hxx"
+#include "view.hxx"
+#include "initui.hxx"
+#include "cmdid.h"
+#include "textsh.hxx"
+#include "initui.hxx"
+#include "glossary.hxx"
+#include "gloshdl.hxx"
+#include "glosdoc.hxx"
+#include "gloslst.hxx"
+
+// STATIC DATA -----------------------------------------------------------
+
+void SwTextShell::ExecGlossary(SfxRequest &rReq)
+{
+ USHORT nSlot = rReq.GetSlot();
+ ::GetGlossaries()->UpdateGlosPath(!rReq.IsAPI() ||
+ FN_GLOSSARY_DLG == nSlot );
+ SwGlossaryHdl* pGlosHdl = GetView().GetGlosHdl();
+ // SwGlossaryList updaten?
+ BOOL bUpdateList = FALSE;
+
+ switch( nSlot )
+ {
+ case FN_GLOSSARY_DLG:
+ pGlosHdl->GlossaryDlg();
+ bUpdateList = TRUE;
+ break;
+ case FN_EXPAND_GLOSSARY:
+ {
+ BOOL bReturn;
+ bReturn = pGlosHdl->ExpandGlossary( TRUE );
+ rReq.SetReturnValue( SfxBoolItem( nSlot, bReturn ) );
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+ if(bUpdateList)
+ {
+ SwGlossaryList* pList = ::GetGlossaryList();
+ if(pList->IsActive())
+ pList->Update();
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.24 2000/09/18 16:06:06 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.23 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.22 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.21 2000/02/10 10:37:03 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.20 1997/11/24 08:47:08 MA
+ includes
+
+
+ Rev 1.19 24 Nov 1997 09:47:08 MA
+ includes
+
+ Rev 1.18 03 Nov 1997 13:55:46 MA
+ precomp entfernt
+
+ Rev 1.17 20 Aug 1997 15:24:28 OS
+ GetGlossaryGroupName: Pfad-Extension an Position Null nicht ausgeben #42968#
+
+ Rev 1.16 19 Aug 1997 10:39:04 OS
+ ExpandGlossary darf per API keine MessageBoxen erzeugen #42903#
+
+ Rev 1.15 07 Apr 1997 17:42:26 MH
+ chg: header
+
+ Rev 1.14 14 Mar 1997 14:38:18 OS
+ neu: CreateGlossaryGroup
+
+ Rev 1.13 27 Sep 1996 12:51:52 OS
+ Updates fuer die GlossaryList
+
+ Rev 1.12 21 Sep 1996 15:57:32 OS
+ InsertGlossary returnt BOOL
+
+ Rev 1.11 30 Aug 1996 12:41:02 OS
+ UpdateGlosPath kann Blockliste aktualisieren
+
+ Rev 1.10 28 Aug 1996 15:54:48 OS
+ includes
+
+ Rev 1.9 29 Jul 1996 12:12:18 OS
+ vor jeder Textblock-Operation den GlossaryPath updaten
+
+ Rev 1.8 17 Jul 1996 07:48:52 OS
+ neu: GetGlossaryShortName
+
+ Rev 1.7 22 May 1996 15:33:06 OS
+ InsertGlossary: akt. Gruppe auch am pGlosHdl setzen
+
+ Rev 1.6 30 Apr 1996 08:04:00 OS
+ auch im RenameGlossary darf die aktuelle Gruppe nicht am gloshdl eingestell werden, Bug#27350#
+
+ Rev 1.5 13 Mar 1996 16:25:48 OS
+ neu: RenameGlossary
+
+ Rev 1.4 10 Mar 1996 15:46:34 OS
+ neue Slots fuer Autotext: Gruppenanzahl und Elemente erfragen
+
+ Rev 1.3 17 Feb 1996 12:36:00 OS
+ neu: Textbausteine und -gruppen loeschen, Bug #25606#, NewGlossary legt jetzt auch Bereiche neu an, Bug #25576#
+
+ Rev 1.2 26 Jan 1996 11:00:16 OS
+ akt. Gruppe fuer Textbausteine nur am GlossaryDlg und nicht am GlossaryHdl setzen, Bug #24473#
+
+ Rev 1.1 30 Nov 1995 15:26:28 OS
+ +pragma
+
+ Rev 1.0 30 Nov 1995 12:37:28 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/textidx.cxx b/sw/source/ui/shells/textidx.cxx
new file mode 100644
index 000000000000..ddbb82a1e0e0
--- /dev/null
+++ b/sw/source/ui/shells/textidx.cxx
@@ -0,0 +1,437 @@
+/*************************************************************************
+ *
+ * $RCSfile: textidx.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <hintids.hxx>
+#include <uiparam.hxx>
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+
+#include "viewopt.hxx"
+#include "cmdid.h"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "swundo.hxx" // fuer Undo-Ids
+#include "textsh.hxx"
+#include "idx.hxx"
+#include "idxmrk.hxx"
+#include "multmrk.hxx"
+#include "usridx.hxx"
+#include "cnttab.hxx"
+#include "toxmgr.hxx"
+
+// STATIC DATA -----------------------------------------------------------
+
+void SwTextShell::ExecIdx(SfxRequest &rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem = 0;
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState(nSlot, FALSE, &pItem );
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ Window *pMDI = &pVFrame->GetWindow();
+
+ switch( nSlot )
+ {
+ case FN_EDIT_AUTH_ENTRY_DLG :
+ {
+ SwAuthMarkModalDlg* pDlg = new SwAuthMarkModalDlg(pMDI, GetShell());
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_INSERT_AUTH_ENTRY_DLG:
+ {
+ // no BASIC support
+ pVFrame->ToggleChildWindow(FN_INSERT_AUTH_ENTRY_DLG);
+
+ SwInsertAuthMarkWrapper *pAuthMrk = (SwInsertAuthMarkWrapper*)
+ pVFrame->GetChildWindow(FN_INSERT_AUTH_ENTRY_DLG);
+
+ Invalidate(rReq.GetSlot());
+ }
+ break;
+ case FN_INSERT_IDX_ENTRY_DLG:
+ {
+ pVFrame->ToggleChildWindow(FN_INSERT_IDX_ENTRY_DLG);
+ Invalidate(rReq.GetSlot());
+ }
+ break;
+ case FN_EDIT_IDX_ENTRY_DLG:
+ {
+ SwTOXMgr aMgr(GetShellPtr());
+ USHORT nRet = RET_OK;
+ if(aMgr.GetTOXMarkCount() > 1)
+ { // Mehrere Marken, welche solls denn sein ?
+ //
+ SwMultiTOXMarkDlg* pMultDlg = new SwMultiTOXMarkDlg(pMDI, aMgr);
+ nRet = pMultDlg->Execute();
+ delete pMultDlg;
+ }
+ if( nRet == RET_OK)
+ {
+ SwIndexMarkModalDlg* pDlg = new SwIndexMarkModalDlg(pMDI, GetShell());
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ }
+ case FN_IDX_MARK_TO_IDX:
+ {
+ GetShell().GotoTOXMarkBase();
+ break;
+ }
+ case FN_INSERT_MULTI_TOX:
+ {
+ SfxItemSet aSet(GetPool(),
+ RES_COL, RES_COL,
+ RES_BACKGROUND, RES_BACKGROUND,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ RES_LR_SPACE, RES_LR_SPACE,
+ FN_PARAM_TOX_TYPE, FN_PARAM_TOX_TYPE,
+ 0 );
+ SwWrtShell& rSh = GetShell();
+ SwRect aRect;
+ rSh.CalcBoundRect(aRect, FLY_IN_CNTNT);
+
+ long nWidth = aRect.Width();
+ aSet.Put(SwFmtFrmSize(ATT_VAR_SIZE, nWidth));
+ // Hoehe=Breite fuer konsistentere Vorschau (analog zu Bereich bearbeiten)
+ aSet.Put(SvxSizeItem(SID_ATTR_PAGE_SIZE, Size(nWidth, nWidth)));
+ const SwTOXBase* pCurTOX = rSh.GetCurTOX();
+ if(pCurTOX)
+ {
+ const SfxItemSet* pSet = pCurTOX->GetAttrSet();
+ if(pSet)
+ aSet.Put(*pSet);
+ }
+
+ SwMultiTOXTabDialog* pDlg = new SwMultiTOXTabDialog(pMDI, aSet, rSh, pCurTOX);
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_REMOVE_CUR_TOX:
+ {
+ SwWrtShell& rSh = GetShell();
+ const SwTOXBase* pBase = rSh.GetCurTOX();
+ DBG_ASSERT(pBase, "no TOXBase to remove")
+ if( pBase )
+ rSh.DeleteTOX(*pBase, TRUE);
+ }
+ break;
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+
+void SwTextShell::GetIdxState(SfxItemSet &rSet)
+{
+ SwWrtShell& rSh = GetShell();
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ SwInsertIdxMarkWrapper *pIdxMrk = (SwInsertIdxMarkWrapper*)
+ pVFrame->GetChildWindow(FN_INSERT_IDX_ENTRY_DLG);
+
+ SfxChildWindow* pAuthMark = pVFrame->GetChildWindow(FN_INSERT_AUTH_ENTRY_DLG);
+
+ const BOOL bHtmlMode = 0 != ::GetHtmlMode( GetView().GetDocShell() );
+ const SwTOXBase* pBase = 0;
+ if( bHtmlMode || 0 != ( pBase = rSh.GetCurTOX()) )
+ {
+ USHORT nBase = 0;
+ if( pBase )
+ {
+ if(pBase->IsTOXBaseInReadonly())
+ {
+ rSet.DisableItem( FN_INSERT_MULTI_TOX );
+ }
+ }
+
+ rSet.DisableItem( FN_EDIT_IDX_ENTRY_DLG );
+ rSet.DisableItem( FN_EDIT_AUTH_ENTRY_DLG );
+
+ if(!pIdxMrk)
+ rSet.DisableItem( FN_INSERT_IDX_ENTRY_DLG );
+ else
+ rSet.Put(SfxBoolItem(FN_INSERT_IDX_ENTRY_DLG, TRUE));
+
+ if(!pAuthMark)
+ rSet.DisableItem( FN_INSERT_AUTH_ENTRY_DLG );
+ else
+ rSet.Put(SfxBoolItem(FN_INSERT_AUTH_ENTRY_DLG, TRUE));
+
+ }
+ else //if( SFX_ITEM_UNKNOWN != rSet.GetItemState( FN_EDIT_IDX_ENTRY_DLG ))
+ {
+
+ BOOL bEnableEdit = TRUE;
+ BOOL bInReadonly = rSh.HasReadonlySel();
+ if( rSh.HasSelection() || bInReadonly)
+ bEnableEdit = FALSE;
+ else
+ {
+ SwTOXMarks aArr;
+ rSh.GetCurTOXMarks( aArr );
+ if( !aArr.Count())
+ bEnableEdit = FALSE;
+ }
+
+ if(!bEnableEdit)
+ rSet.DisableItem( FN_EDIT_IDX_ENTRY_DLG );
+
+ if(bInReadonly)
+ {
+ rSet.DisableItem(FN_INSERT_IDX_ENTRY_DLG);
+ rSet.DisableItem( FN_INSERT_MULTI_TOX );
+ }
+ else
+ rSet.Put(SfxBoolItem(FN_INSERT_IDX_ENTRY_DLG,
+ 0 != pIdxMrk));
+
+
+ SwField* pField = rSh.GetCurFld();
+
+ if(bInReadonly)
+ rSet.DisableItem(FN_INSERT_AUTH_ENTRY_DLG);
+ else
+ rSet.Put(SfxBoolItem(FN_INSERT_AUTH_ENTRY_DLG, 0 != pAuthMark));
+
+ if( bInReadonly || !pField ||
+ pField->GetTyp()->Which() != RES_AUTHORITY)
+ rSet.DisableItem(FN_EDIT_AUTH_ENTRY_DLG);
+ rSet.DisableItem(FN_REMOVE_CUR_TOX);
+ }
+}
+
+// -----------------------------------------------------------------------
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.42 2000/09/18 16:06:06 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.41 2000/09/08 08:12:52 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.40 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.39 2000/02/11 14:57:51 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.38 2000/01/17 13:33:00 os
+ #70703# apply to all similar texts: search options case sensitive and word only
+
+ Revision 1.37 1999/12/10 15:17:04 os
+ #70711# readonly check for index entries now in GetIdxState
+
+ Revision 1.36 1999/10/15 11:44:08 os
+ new: FN_REMOVE_TOX
+
+ Revision 1.35 1999/10/06 12:15:01 os
+ edit tox entry dialogs now modal
+
+ Revision 1.34 1999/09/15 13:57:53 os
+ dialog for authorities
+
+ Revision 1.33 1999/09/08 12:43:18 os
+ GetIdxState corrected
+
+ Revision 1.32 1999/09/07 13:55:52 os
+ Insert/EditIndexEntry as FloatingWindow
+
+ Revision 1.31 1999/08/25 13:27:20 OS
+ extended indexes: remove old code
+
+
+ Rev 1.30 25 Aug 1999 15:27:20 OS
+ extended indexes: remove old code
+
+ Rev 1.29 23 Aug 1999 09:51:52 OS
+ extended indexes: InsertTOXMark simplified
+
+ Rev 1.28 17 Aug 1999 13:59:02 OS
+ extended indexes: get/set section attributes
+
+ Rev 1.27 30 Jul 1999 13:14:36 OS
+ indexes: check readonly in status method
+
+ Rev 1.26 07 Jul 1999 08:13:46 OS
+ extended indexes: SwTOXMgr interface changed
+
+ Rev 1.25 02 Jul 1999 11:07:50 OS
+ extended indexes: smaller interface SwTOXMgr
+
+ Rev 1.24 21 Jun 1999 10:00:52 OS
+ extended indexes
+
+ Rev 1.23 29 Mar 1999 14:37:24 OS
+ #63929# Range fuer ItemSet festlegen
+
+ Rev 1.22 29 Mar 1999 12:19:30 OS
+ #63929# neuer Verzeichnisdialog vollstaendig
+
+ Rev 1.21 26 Mar 1999 11:38:26 OS
+ #63929# Neuer Verzeichnisdialog
+
+ Rev 1.20 20 Jan 1999 11:35:58 OS
+ #60881# Verzeichniseintraege mehrfach einf?gen
+
+ Rev 1.19 24 Nov 1997 09:47:10 MA
+ includes
+
+ Rev 1.18 03 Nov 1997 13:55:44 MA
+ precomp entfernt
+
+ Rev 1.17 05 Sep 1997 13:36:00 OS
+ pBase initialisieren, Rahmenslektion schliesst TextShell aus
+
+ Rev 1.16 28 Aug 1997 19:48:02 JP
+ GetIdxState: optimiert, im Verzeichnis InsertEntry abklemmen
+
+ Rev 1.15 23 Jul 1997 21:28:56 HJS
+ includes
+
+ Rev 1.14 07 Jul 1997 09:39:34 OS
+ fuer Userverzeichnisse aus Vorlagen muss immer ein Strin uebergeben werden
+
+ Rev 1.13 03 Jul 1997 09:16:42 JP
+ FN_INSERT_CNTNTIDX_ENTRY: Level auf 1 defaulten
+
+ Rev 1.12 16 Jun 1997 12:02:26 OS
+ Verzeichnisfunktionen und -dialoge ohne Record-Flag
+
+ Rev 1.11 07 Apr 1997 17:44:46 MH
+ chg: header
+
+ Rev 1.10 27 Jan 1997 16:30:36 OS
+ HtmlMode entfernt
+
+ Rev 1.9 11 Dec 1996 10:50:56 MA
+ Warnings
+
+ Rev 1.8 23 Nov 1996 13:24:46 OS
+ im HtmlMode Verzeichnis einfuegen disabled
+
+ Rev 1.7 24 Oct 1996 20:59:38 JP
+ State: bei Selektion darf kein VerzeichnisEintrag bearbeitet werden
+
+ Rev 1.6 09 Sep 1996 21:16:28 MH
+ Umstellungen wg. internal Compiler Errors
+
+ Rev 1.5 28 Aug 1996 15:54:52 OS
+ includes
+
+ Rev 1.4 07 Jun 1996 09:12:44 OS
+ CreateForm fuer Inhaltsverzeichnis abgesichert Bug #28429#
+
+ Rev 1.3 03 Jun 1996 10:18:06 OS
+ vohandene Verzeichnisse beim Einfuegen updaten (Basic) Bug #28233#
+
+ Rev 1.2 22 Mar 1996 15:29:32 TRI
+ sfxiiter.hxx included
+
+ Rev 1.1 30 Nov 1995 15:09:58 OM
+ Segs
+
+ Rev 1.0 30 Nov 1995 14:26:00 OM
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx
new file mode 100644
index 000000000000..1e06a1478da7
--- /dev/null
+++ b/sw/source/ui/shells/textsh.cxx
@@ -0,0 +1,1043 @@
+/*************************************************************************
+ *
+ * $RCSfile: textsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _SW_FRMVALID_HXX
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+
+#ifndef __RSC //autogen
+#include <tools/errinf.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _PLUGIN_HXX //autogen wg. SvPlugInObject
+#include <so3/plugin.hxx>
+#endif
+#ifndef _SFXPTITEM_HXX //autogen
+#include <svtools/ptitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXMSG_HXX //autogen
+#include <sfx2/msg.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX //autogen
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SVX_HLNKITEM_HXX //autogen
+#include <svx/hlnkitem.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_CHARMAP_HXX //autogen
+#include <svx/charmap.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef __SBX_SBXVARIABLE_HXX //autogen
+#include <svtools/sbxvar.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_OPAQITEM_HXX //autogen
+#include <svx/opaqitem.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_ADJITEM_HXX //autogen
+#include <svx/adjitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _MySVXACORR_HXX
+#include <svx/svxacorr.hxx>
+#endif
+#ifndef _FILTER_HXX //autogen
+#include <svtools/filter.hxx>
+#endif
+#ifndef SMDLL_HXX
+#include <starmath/smdll0.hxx>
+#endif
+#ifndef _SCHDLL0_HXX
+#include <sch/schdll0.hxx>
+#endif
+#ifndef _SCH_DLL_HXX
+#include <sch/schdll.hxx>
+#endif
+#ifndef _SCH_MEMCHRT_HXX
+#include <sch/memchrt.hxx>
+#endif
+#ifndef _SIMDLL_HXX
+#include <sim2/simdll0.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_PFILEDLG_HXX //autogen wg. SvxPluginFileDlg
+#include <svx/pfiledlg.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _FMTSRND_HXX //autogen
+#include <fmtsrnd.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _TEXTSH_HXX
+#include <textsh.hxx>
+#endif
+#ifndef _INSTABLE_HXX
+#include <instable.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-IDs
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _FRMDLG_HXX
+#include <frmdlg.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _SWTABLE_HXX
+#include <swtable.hxx>
+#endif
+#ifndef _TBLAFMT_HXX
+#include <tblafmt.hxx>
+#endif
+#ifndef _INSRULE_HXX
+#include <insrule.hxx>
+#endif
+#ifndef _CAPTION_HXX
+#include <caption.hxx>
+#endif
+#ifndef _IDXMRK_HXX
+#include <idxmrk.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _POPUP_HRC
+#include <popup.hrc>
+#endif
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#ifndef _COLUMN_HXX
+#include <column.hxx>
+#endif
+
+#define SwTextShell
+#define Paragraph
+#define HyphenZone
+#define TextFont
+#define DropCap
+#ifndef _ITEMDEF_HXX
+#include <itemdef.hxx>
+#endif
+#ifndef _SWSLOTS_HXX
+#include <swslots.hxx>
+#endif
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SFX_IMPL_INTERFACE(SwTextShell, SwBaseShell, SW_RES(STR_SHELLNAME_TEXT))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TEXT_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TEXT_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_TEXT));
+ SFX_CHILDWINDOW_REGISTRATION(FN_EDIT_FORMULA);
+ SFX_CHILDWINDOW_REGISTRATION(SID_INSERT_DIAGRAM);
+ SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_FIELD);
+ SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_IDX_ENTRY_DLG);
+ SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_AUTH_ENTRY_DLG);
+}
+
+
+
+TYPEINIT1(SwTextShell,SwBaseShell)
+
+
+
+void SwTextShell::ExecInsert(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+
+ ASSERT( !rSh.IsObjSelected() && !rSh.IsFrmSelected(),
+ "Falsche Shell auf dem Dispatcher" );
+
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem = 0;
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState(nSlot, FALSE, &pItem );
+
+ switch( nSlot )
+ {
+ case FN_INSERT_SOFT_HYPHEN:
+ if( CHAR_SOFTHYPHEN != rSh.SwCrsrShell::GetChar( TRUE, 0 ) &&
+ CHAR_SOFTHYPHEN != rSh.SwCrsrShell::GetChar( TRUE, -1 ))
+ rSh.Insert( String( CHAR_SOFTHYPHEN ) );
+ break;
+
+ case FN_INSERT_HARDHYPHEN:
+ case FN_INSERT_HARD_SPACE:
+ {
+ sal_Unicode cIns = FN_INSERT_HARD_SPACE == nSlot ? CHAR_HARDBLANK
+ : CHAR_HARDHYPHEN;
+
+ SvxAutoCorrect* pACorr = OFF_APP()->GetAutoCorrConfig()->GetAutoCorrect();
+ if( pACorr && pACorr->IsAutoCorrFlag( CptlSttSntnc | CptlSttWrd |
+ ChgFractionSymbol | ChgOrdinalNumber |
+ ChgToEnEmDash | SetINetAttr | Autocorrect ))
+ rSh.AutoCorrect( *pACorr, cIns );
+ else
+ rSh.Insert( String( cIns ) );
+ }
+ break;
+
+ case FN_INSERT_BREAK:
+ rSh.SplitNode();
+ break;
+ case FN_INSERT_PAGEBREAK:
+ rSh.InsertPageBreak();
+ break;
+ case FN_INSERT_LINEBREAK:
+ rSh.InsertLineBreak();
+ break;
+ case FN_INSERT_COLUMN_BREAK:
+ rSh.InsertColumnBreak();
+ break;
+ case SID_HYPERLINK_SETLINK:
+ if (pItem)
+ InsertHyperlink(*((const SvxHyperlinkItem *)pItem));
+ break;
+ case SID_INSERT_SOUND:
+ case SID_INSERT_VIDEO:
+ {
+ SvxPluginFileDlg aDlg( &GetView().GetViewFrame()->GetWindow(), nSlot );
+
+ if ( RET_OK == aDlg.Execute() )
+ {
+ // URL ermitteln
+ String aStrURL( aDlg.GetPath() );
+ aStrURL = URIHelper::SmartRelToAbs( aStrURL );
+
+ INetURLObject* pURL = new INetURLObject();
+ pURL->SetSmartProtocol( INET_PROT_FILE );
+
+ if ( pURL->SetURL( aStrURL, INetURLObject::WAS_ENCODED ) )
+ {
+ SvFactory * pFactory = SvFactory::GetDefaultPlugInFactory();
+ SvStorageRef aStor = new SvStorage( aEmptyStr, STREAM_STD_READWRITE );
+ SvPlugInObjectRef xObj = &pFactory->CreateAndInit( *pFactory, aStor );
+ xObj->SetPlugInMode( (USHORT)PLUGIN_EMBEDED );
+ xObj->SetURL( *pURL );
+ SvPlugInObject* pObj = &xObj;
+ SvInPlaceObjectRef *pxIns = new SvInPlaceObjectRef(pObj);
+ rSh.Insert( pxIns, 0, TRUE, nSlot);
+ }
+ }
+ }
+ break;
+ case SID_INSERT_OBJECT:
+ case SID_INSERT_PLUGIN:
+ case SID_INSERT_APPLET:
+ case SID_INSERT_FLOATINGFRAME:
+ rSh.Insert( (SvInPlaceObjectRef*)0, 0, TRUE, nSlot);
+ break;
+
+ case SID_INSERT_DIAGRAM:
+ {
+ if ( !SFX_APP()->HasFeature( SFX_FEATURE_SCHART ) )
+ break;
+ if(!rReq.IsAPI())
+ {
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ pVFrame->ToggleChildWindow( SID_INSERT_DIAGRAM );
+ }
+ else
+ {
+ const SwFrmFmt* pTFmt = rSh.GetTableFmt();
+ if( pTFmt && !rSh.IsTblComplexForChart() )
+ {
+ SchMemChart* pData = 0;
+ rSh.UpdateChartData( pTFmt->GetName(), pData );
+
+ SwTableFUNC( &rSh, FALSE ).InsertChart( *pData );
+ rSh.LaunchOLEObj();
+
+ delete pData;
+ }
+ else
+ {
+ rSh.Insert( 0, SCH_MOD()->pSchChartDocShellFactory );
+ }
+ SvInPlaceObjectRef xOLE = rSh.GetOLEObj();
+ if(pItem && xOLE.Is())
+ {
+ Size aSize(((SvxSizeItem*)pItem)->GetSize());
+ aSize = OutputDevice::LogicToLogic
+ ( aSize, MapMode( MAP_TWIP ), MapMode( MAP_100TH_MM ) );
+
+ if(aSize.Width() > MINLAY&& aSize.Height()> MINLAY)
+ {
+ Rectangle aRect = xOLE->GetVisArea();
+ aRect.SetSize(aSize);
+ xOLE->SetVisArea( aRect );
+ }
+ }
+ }
+ }
+ break;
+
+ case FN_INSERT_SIM:
+ {
+ rSh.Insert( 0, SIM_MOD()->pSimDrawDocShellFactory );
+ }
+ break;
+
+ case FN_INSERT_SMA:
+ {
+ rSh.Insert( 0, SM_MOD()->pSmDocShellFactory );
+ }
+ break;
+
+ case FN_INSERT_TABLE:
+ if( !rSh.GetTableFmt() && !(rSh.GetFrmType(0,TRUE) & FRMTYPE_FOOTNOTE))
+ {
+ SwView &rView = GetView(); // Da GetView() nach Shellwechsel nicht mehr geht
+ BOOL bHTMLMode = 0 != (::GetHtmlMode(rView.GetDocShell())&HTMLMODE_ON);
+ BOOL bCallEndUndo = FALSE;
+
+ if( !pArgs && rSh.IsSelection() && !rSh.IsInClickToEdit() )
+ {
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ USHORT nInsTblFlags = pModOpt->GetInsTblFlags(bHTMLMode);
+
+ rSh.StartUndo(UNDO_INSTABLE);
+ bCallEndUndo = TRUE;
+
+ BOOL bInserted = rSh.TextToTable('\t', HORI_FULL, nInsTblFlags);
+ rSh.EnterStdMode();
+ if (bInserted)
+ rView.AutoCaption(TABLE_CAP);
+ }
+ else
+ {
+ USHORT nCols = 0;
+ USHORT nRows = 0;
+ USHORT nInsTblFlags = ALL_TBL_INS_ATTR;
+ String aTableName;
+ SwTableAutoFmt* pTAFmt = 0;
+
+ if( pArgs && pArgs->Count() >= 2 )
+ {
+ nCols = ((SfxUInt16Item &)pArgs->Get(SID_ATTR_TABLE_COLUMN)).GetValue();
+ nRows = ((SfxUInt16Item &)pArgs->Get(SID_ATTR_TABLE_ROW)).GetValue();
+
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ nInsTblFlags = pModOpt->GetInsTblFlags(bHTMLMode);
+ }
+
+ if( !nCols || !nRows )
+ {
+ SwInsTableDlg *pDlg = new SwInsTableDlg(rView);
+ if( RET_OK == pDlg->Execute() )
+ {
+ pDlg->GetValues( aTableName, nRows, nCols, nInsTblFlags, pTAFmt );
+ }
+ delete pDlg;
+ }
+
+ if( nCols && nRows )
+ {
+ rSh.StartUndo(UNDO_INSTABLE);
+ bCallEndUndo = TRUE;
+
+ rSh.StartAllAction();
+ if( rSh.HasSelection() )
+ rSh.DelRight();
+
+ rSh.InsertTable( nRows, nCols, HORI_FULL, nInsTblFlags, pTAFmt );
+ rSh.MoveTable( fnTablePrev, fnTableStart );
+
+ if( aTableName.Len() && !rSh.GetTblStyle( aTableName ) )
+ rSh.GetTableFmt()->SetName( aTableName );
+
+ rSh.EndAllAction();
+ rView.AutoCaption(TABLE_CAP);
+ }
+ delete pTAFmt;
+ }
+ if( bCallEndUndo )
+ rSh.EndUndo(UNDO_INSTABLE); // wegen moegl. Shellwechsel
+ }
+ break;
+
+ case FN_INSERT_FRAME_INTERACT_NOCOL:
+ case FN_INSERT_FRAME_INTERACT:
+ {
+ USHORT nCols = 1;
+ if(FN_INSERT_FRAME_INTERACT_NOCOL != nSlot &&
+ pArgs &&pArgs->GetItemState(SID_ATTR_COLUMNS, FALSE, &pItem) == SFX_ITEM_SET)
+ nCols = ((SfxUInt16Item *)pItem)->GetValue();
+ GetView().InsFrmMode(nCols);
+ }
+ break;
+ case FN_INSERT_FRAME:
+ {
+ const int nSel = rSh.GetSelectionType();
+
+ BOOL bSingleCol = FALSE;
+ if( 0!= PTR_CAST(SwWebDocShell, GetView().GetDocShell()) )
+ {
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ USHORT nExport = pHtmlOpt->GetExportMode();
+ if( HTML_CFG_MSIE == nExport ||
+ HTML_CFG_HTML32 == nExport ||
+ HTML_CFG_MSIE_40 == nExport ||
+ HTML_CFG_HTML32 == nExport )
+ {
+ bSingleCol = TRUE;
+ }
+
+ }
+ // Rahmen neu anlegen
+ SwFlyFrmAttrMgr aMgr( TRUE, GetShellPtr(), FRMMGR_TYPE_TEXT );
+ static USHORT __READONLY_DATA aFrmAttrRange[] =
+ {
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ FN_GET_PRINT_AREA, FN_GET_PRINT_AREA,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ FN_SET_FRM_NAME, FN_SET_FRM_NAME,
+ SID_HTML_MODE, SID_HTML_MODE,
+ 0
+ };
+
+ SfxItemSet aSet(GetPool(), aFrmAttrRange );
+ aSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(GetView().GetDocShell())));
+ const SwRect &rPg = GetShell().GetAnyCurRect(RECT_PAGE);
+ SwFmtFrmSize aFrmSize(ATT_VAR_SIZE, rPg.Width(), rPg.Height());
+ aFrmSize.SetWhich(GetPool().GetWhich(SID_ATTR_PAGE_SIZE));
+ aSet.Put(aFrmSize);
+
+ const SwRect &rPr = GetShell().GetAnyCurRect(RECT_PAGE_PRT);
+ SwFmtFrmSize aPrtSize(ATT_VAR_SIZE, rPr.Width(), rPr.Height());
+ aPrtSize.SetWhich(GetPool().GetWhich(FN_GET_PRINT_AREA));
+ aSet.Put(aPrtSize);
+
+ aSet.Put(aMgr.GetAttrSet());
+ aSet.SetParent( aMgr.GetAttrSet().GetParent() );
+
+ // Minimalgroesse in Spalten l”schen
+ SvxBoxInfoItem aBoxInfo((SvxBoxInfoItem &)aSet.Get(SID_ATTR_BORDER_INNER));
+ aBoxInfo.SetMinDist(FALSE);
+ aSet.Put(aBoxInfo);
+
+ SwFrmDlg* pDlg = new SwFrmDlg(GetView().GetViewFrame(), &GetView().GetViewFrame()->GetWindow(), aSet, TRUE);
+
+ if(pDlg->Execute() && pDlg->GetOutputItemSet())
+ {
+ GetShell().StartAllAction();
+ GetShell().StartUndo(UNDO_INSERT);
+
+ const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
+ aMgr.SetAttrSet(*pOutSet);
+
+ // beim ClickToEditFeld erst die Selektion loeschen
+ if( GetShell().IsInClickToEdit() )
+ GetShell().DelRight();
+
+ aMgr.InsertFlyFrm();
+
+
+ GetView().AutoCaption(FRAME_CAP);
+ GetShell().EndUndo(UNDO_INSERT);
+ GetShell().EndAllAction();
+ }
+
+ DELETEZ(pDlg);
+ break;
+ }
+ case FN_INSERT_HRULER:
+ {
+ String sPath;
+ BOOL bSimpleLine = FALSE;
+ BOOL bRet = FALSE;
+ Window* pParent = GetView().GetWindow();
+ SwInsertGrfRulerDlg* pDlg = new SwInsertGrfRulerDlg(
+ pParent ,
+ GetView().GetDocShell());
+ // MessageBox fuer fehlende Grafiken
+ if(!pDlg->HasImages())
+ InfoBox( pParent, SW_RES(MSG_NO_RULER)).Execute();
+ if(RET_OK == pDlg->Execute())
+ {
+ sPath = pDlg->GetGraphicName();
+ bSimpleLine = pDlg->IsSimpleLine();
+ }
+ delete pDlg;
+ rSh.StartAllAction();
+ rSh.StartUndo(UIUNDO_INSERT_RULER);
+ if(bSimpleLine)
+ {
+ if(!(rSh.IsSttOfPara() && rSh.IsEndOfPara())) // kein leerer Absatz?
+ rSh.SplitNode( FALSE, FALSE ); // dann Platz schaffen
+ rSh.SplitNode( FALSE, FALSE );
+ rSh.Left();
+ rSh.SetTxtFmtColl( rSh.GetTxtCollFromPool( RES_POOLCOLL_HTML_HR ));
+ rSh.Right();
+ bRet = TRUE;
+ }
+ else if(sPath.Len())
+ {
+ if (!pFrmMgr)
+ pFrmMgr = new SwFlyFrmAttrMgr( TRUE, &rSh, FRMMGR_TYPE_GRF );
+ // am FrmMgr muessen die richtigen Parameter eingestellt werden
+
+ pFrmMgr->SetAnchor(FLY_IN_CNTNT);
+
+ rSh.SplitNode( FALSE, FALSE );
+ rSh.SplitNode( FALSE, FALSE );
+ rSh.Left();
+ rSh.SetAttr(SvxAdjustItem(SVX_ADJUST_CENTER,RES_PARATR_ADJUST ));
+ if(GRFILTER_OK == InsertGraphic(sPath, aEmptyStr, TRUE, 0, 0 ))
+ bRet = TRUE;
+ rSh.EnterStdMode();
+ rSh.Right();
+ DELETEZ(pFrmMgr);
+ }
+ rSh.EndAllAction();
+ rSh.EndUndo(UIUNDO_INSERT_RULER);
+ rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
+ }
+ break;
+ case FN_FORMAT_COLUMN :
+ {
+ SwColumnDlg* pColDlg = new SwColumnDlg(GetView().GetWindow(), rSh);
+ pColDlg->Execute();
+ delete pColDlg;
+ }
+ break;
+
+ case FN_SECTION_APPENDNODE:
+ rReq.SetReturnValue( SfxBoolItem( nSlot, rSh.AppendNodeInSection() ));
+ break;
+
+ default:
+ ASSERT( !this, "falscher Dispatcher" );
+ return;
+ }
+}
+
+
+
+void SwTextShell::StateInsert( SfxItemSet &rSet )
+{
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ SfxWhichIter aIter( rSet );
+ SwWrtShell &rSh = GetShell();
+ USHORT nWhich = aIter.FirstWhich();
+ while ( nWhich )
+ {
+ switch ( nWhich )
+ {
+ case SID_INSERT_SOUND:
+ case SID_INSERT_VIDEO:
+ if ( GetShell().IsSelFrmMode() ||
+ !SvxPluginFileDlg::IsAvailable( nWhich ) ||
+ SFX_CREATE_MODE_EMBEDDED == GetView().GetDocShell()->GetCreateMode() )
+ {
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ case SID_INSERT_DIAGRAM:
+ if( !SFX_APP()->HasFeature( SFX_FEATURE_SCHART ) )
+ {
+ rSet.DisableItem( nWhich );
+ break;
+ }
+
+ case FN_INSERT_SIM:
+ if( FN_INSERT_SIM == nWhich &&
+ !SFX_APP()->HasFeature( SFX_FEATURE_SIMAGE ) )
+ {
+ rSet.DisableItem( nWhich );
+ break;
+ }
+
+ case FN_INSERT_SMA:
+ if( FN_INSERT_SMA == nWhich &&
+ !SFX_APP()->HasFeature( SFX_FEATURE_SMATH ) )
+ {
+ rSet.DisableItem( nWhich );
+ break;
+ }
+
+ case SID_INSERT_FLOATINGFRAME:
+ case SID_INSERT_OBJECT:
+ case SID_INSERT_PLUGIN:
+ case SID_INSERT_APPLET:
+ {
+ SfxObjectCreateMode eMode =
+ GetView().GetDocShell()->GetCreateMode();
+
+ if(
+#ifndef SOLAR_JAVA
+ nWhich == SID_INSERT_APPLET ||
+#endif
+ eMode == SFX_CREATE_MODE_EMBEDDED ||
+ (nWhich == SID_INSERT_DIAGRAM && rSh.IsCrsrInTbl() &&
+ rSh.IsTblComplexForChart() &&
+ !GetView().GetViewFrame()->GetChildWindow(
+ SID_INSERT_DIAGRAM)) )
+ rSet.DisableItem( nWhich );
+ else if( GetShell().IsSelFrmMode())
+ rSet.DisableItem( nWhich );
+ else if(SID_INSERT_FLOATINGFRAME == nWhich && nHtmlMode&HTMLMODE_ON)
+ {
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ USHORT nExport = pHtmlOpt->GetExportMode();
+ if(HTML_CFG_MSIE_40 != nExport && HTML_CFG_WRITER != nExport )
+ rSet.DisableItem(nWhich);
+ }
+ }
+ break;
+ case FN_INSERT_FRAME_INTERACT_NOCOL :
+ case FN_INSERT_FRAME_INTERACT:
+ {
+ if ( GetShell().IsSelFrmMode() ||
+ (0 != (nHtmlMode & HTMLMODE_ON) && 0 == (nHtmlMode & HTMLMODE_SOME_ABS_POS)))
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case SID_HYPERLINK_GETLINK:
+ {
+ SfxItemSet aSet(GetPool(), RES_TXTATR_INETFMT, RES_TXTATR_INETFMT);
+ rSh.GetAttr( aSet );
+
+ SvxHyperlinkItem aHLinkItem;
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == aSet.GetItemState(RES_TXTATR_INETFMT, FALSE, &pItem))
+ {
+ const SwFmtINetFmt* pINetFmt = (const SwFmtINetFmt*)pItem;
+ aHLinkItem.SetURL(pINetFmt->GetValue());
+ aHLinkItem.SetTargetFrame(pINetFmt->GetTargetFrame());
+ aHLinkItem.SetIntName(pINetFmt->GetName());
+ const SvxMacro *pMacro = pINetFmt->GetMacro( SFX_EVENT_MOUSEOVER_OBJECT );
+ if( pMacro )
+ aHLinkItem.SetMacro(HYPERDLG_EVENT_MOUSEOVER_OBJECT, *pMacro);
+
+ pMacro = pINetFmt->GetMacro( SFX_EVENT_MOUSECLICK_OBJECT );
+ if( pMacro )
+ aHLinkItem.SetMacro(HYPERDLG_EVENT_MOUSECLICK_OBJECT, *pMacro);
+
+ pMacro = pINetFmt->GetMacro( SFX_EVENT_MOUSEOUT_OBJECT );
+ if( pMacro )
+ aHLinkItem.SetMacro(HYPERDLG_EVENT_MOUSEOUT_OBJECT, *pMacro);
+
+ // Text des Links besorgen
+ rSh.StartAction();
+ rSh.CreateCrsr();
+ rSh.SwCrsrShell::SelectTxtAttr(RES_TXTATR_INETFMT,TRUE);
+ String sLinkName = rSh.GetSelTxt();
+ aHLinkItem.SetName(sLinkName);
+ aHLinkItem.SetInsertMode(HLINK_FIELD);
+ rSh.DestroyCrsr();
+ rSh.EndAction();
+ }
+ else
+ {
+ String sReturn = rSh.GetSelTxt();
+ sReturn.Erase(255);
+ sReturn.EraseTrailingChars();
+ aHLinkItem.SetName(sReturn);
+ }
+
+ aHLinkItem.SetInsertMode((SvxLinkInsertMode)(aHLinkItem.GetInsertMode() |
+ ((nHtmlMode & HTMLMODE_ON) != 0 ? HLINK_HTMLMODE : 0)));
+ aHLinkItem.SetMacroEvents ( HYPERDLG_EVENT_MOUSEOVER_OBJECT|
+ HYPERDLG_EVENT_MOUSECLICK_OBJECT | HYPERDLG_EVENT_MOUSEOUT_OBJECT );
+
+ rSet.Put(aHLinkItem);
+ }
+ break;
+
+ case FN_INSERT_FRAME:
+ if(rSh.IsSelFrmMode())
+ {
+ const int nSel = rSh.GetSelectionType();
+ if( (SwWrtShell::SEL_GRF | SwWrtShell::SEL_OLE ) & nSel )
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case FN_INSERT_HRULER :
+ if(rSh.IsReadOnlyAvailable() && rSh.HasReadonlySel() )
+ rSet.DisableItem(nWhich);
+ break;
+
+ case FN_SECTION_APPENDNODE:
+ if( !rSh.CanInsertNodeAtEndOfSection() )
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTextShell::ExecDelete(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ switch( rReq.GetSlot() )
+ {
+ case FN_DELETE_SENT:
+ if( rSh.IsTableMode() )
+ {
+ rSh.DeleteRow();
+ rSh.EnterStdMode();
+ }
+ else
+ rSh.DelToEndOfSentence();
+ break;
+ case FN_DELETE_BACK_SENT:
+ rSh.DelToStartOfSentence();
+ break;
+ case FN_DELETE_WORD:
+ rSh.DelNxtWord();
+ break;
+ case FN_DELETE_BACK_WORD:
+ rSh.DelPrvWord();
+ break;
+ case FN_DELETE_LINE:
+ rSh.DelToEndOfLine();
+ break;
+ case FN_DELETE_BACK_LINE:
+ rSh.DelToStartOfLine();
+ break;
+ case FN_DELETE_PARA:
+ rSh.DelToEndOfPara();
+ break;
+ case FN_DELETE_BACK_PARA:
+ rSh.DelToStartOfPara();
+ break;
+ case FN_DELETE_WHOLE_LINE:
+ rSh.DelLine();
+ break;
+ default:
+ ASSERT(!this, "falscher Dispatcher");
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwTextShell::SwTextShell(SwView &rView) :
+ SwBaseShell(rView), pPostItFldMgr( 0 ), pInsGrfSetPtr( 0 )
+{
+ SetName(String::CreateFromAscii("Text"));
+ SetHelpId(SW_TEXTSHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwTextShell::~SwTextShell()
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTextShell::InsertSymbol(const String& rChars, const String& rFontName)
+{
+ SwWrtShell &rSh = GetShell();
+ String aChars( rChars );
+
+ SfxItemSet aSet( GetPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
+ rSh.GetAttr( aSet );
+ SvxFontItem aFont( (SvxFontItem &) aSet.Get( RES_CHRATR_FONT ));
+ Font aNewFont(rFontName, Size(1,1)); // Size nur wg. CTOR
+
+ if( !rChars.Len() )
+ {
+ // Eingestellten Font als Default
+ SvxCharacterMap* pDlg = new SvxCharacterMap(&GetView().GetViewFrame()->GetWindow(), FALSE);
+
+ Font aDlgFont( pDlg->GetCharFont() );
+ SwViewOption aOpt(*GetShell().GetViewOptions());
+ String sSymbolFont = aOpt.GetSymbolFont();
+ if(!rFontName.Len() && sSymbolFont.Len())
+ aDlgFont.SetName(sSymbolFont);
+ else
+ aDlgFont.SetName( aFont.GetFamilyName() );
+
+ pDlg->SetCharFont( aDlgFont );
+
+ if( RET_OK == pDlg->Execute() )
+ {
+ aChars = pDlg->GetCharacters();
+ aNewFont = pDlg->GetCharFont();
+ aOpt.SetSymbolFont(aNewFont.GetName());
+ SW_MOD()->ApplyUsrPref(aOpt, &GetView());
+ }
+ delete pDlg;
+ }
+
+ if( aChars.Len() )
+ {
+ rSh.StartAllAction();
+
+ // Selektierten Inhalt loeschen
+ rSh.StartUndo( UNDO_INSERT );
+ if ( rSh.HasSelection() )
+ {
+ rSh.DelRight();
+ aSet.ClearItem();
+ rSh.GetAttr( aSet );
+ aFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
+ }
+
+ // Zeichen einfuegen
+ rSh.Insert( aChars );
+
+ // Muss der Font geaendert werden
+ if( aNewFont.GetName() != aFont.GetFamilyName() )
+ {
+ SvxFontItem aNewFontItem( aFont );
+ aNewFontItem.GetFamilyName() = aNewFont.GetName();
+ aNewFontItem.GetFamily() = aNewFont.GetFamily();
+ aNewFontItem.GetPitch() = aNewFont.GetPitch();
+ aNewFontItem.GetCharSet() = aNewFont.GetCharSet();
+ aSet.Put(aNewFontItem);
+
+ rSh.SetMark();
+ rSh.ExtendSelection( FALSE, aChars.Len() );
+ rSh.SetAttr( aSet, SETATTR_DONTEXPAND | SETATTR_NOFORMATATTR );
+ if( !rSh.IsCrsrPtAtEnd() )
+ rSh.SwapPam();
+ rSh.ClearMark();
+ rSh.UpdateAttr();
+ }
+
+ rSh.EndAllAction();
+ rSh.EndUndo( UNDO_INSERT );
+ }
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.356 2000/09/18 16:06:06 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.355 2000/09/08 08:12:52 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.354 2000/08/17 11:40:16 jp
+ remove the SW graphicmanager
+
+ Revision 1.353 2000/08/07 20:40:21 jp
+ ExectInsert: don't insert a softhyphen behind/befor another sofhyphen
+
+ Revision 1.352 2000/08/04 10:54:23 jp
+ Soft-/HardHyphens & HardBlanks changed from attribute to unicode character; remove unused methods
+
+ Revision 1.351 2000/07/26 16:27:20 jp
+ Bug #77158#: remove the unused code
+
+ Revision 1.350 2000/07/07 13:24:57 jp
+ must changes VCL
+
+ Revision 1.349 2000/06/27 17:43:21 jp
+ Bug #76332#: internal SplitNode don't insert a new node before a table
+
+ Revision 1.348 2000/06/26 13:17:56 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.347 2000/06/20 14:49:23 os
+ #70060# less occurences of columns in HTML
+
+ Revision 1.346 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.345 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.344 2000/05/09 14:41:35 os
+ BASIC interface partially removed
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
new file mode 100644
index 000000000000..167dd4a2ea4c
--- /dev/null
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -0,0 +1,1154 @@
+/*************************************************************************
+ *
+ * $RCSfile: textsh1.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+
+#ifndef _SFXSTRITEM_HXX
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_OBJITEM_HXX //autogen
+#include <sfx2/objitem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_COLRITEM_HXX //autogen
+#include <svx/colritem.hxx>
+#endif
+#ifndef _SVX_TSTPITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _MySVXACORR_HXX //autogen
+#include <svx/svxacorr.hxx>
+#endif
+
+
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+#ifndef _TEXTSH_HXX
+#include <textsh.hxx>
+#endif
+#ifndef _BOOKMARK_HXX
+#include <bookmark.hxx>
+#endif
+#ifndef _BOOKMRK_HXX
+#include <bookmrk.hxx>
+#endif
+#ifndef _BREAK_HXX
+#include <break.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+#ifndef _DOCSTAT_HXX
+#include <docstat.hxx>
+#endif
+#ifndef _INSFNOTE_HXX
+#include <insfnote.hxx>
+#endif
+#ifndef _OUTLINE_HXX
+#include <outline.hxx>
+#endif
+#ifndef _SRTDLG_HXX
+#include <srtdlg.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-IDs
+#endif
+#ifndef _AUTOFDLG_HXX
+#include <autofdlg.hxx>
+#endif
+#ifndef _REFFLD_HXX
+#include <reffld.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _INPUTWIN_HXX
+#include <inputwin.hxx>
+#endif
+#ifndef _PARDLG_HXX
+#include <pardlg.hxx>
+#endif
+#ifndef _CHRDLG_HXX
+#include <chrdlg.hxx>
+#endif
+#ifndef _DOCFNOTE_HXX
+#include <docfnote.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _CELLATR_HXX
+#include <cellatr.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _REDLNDLG_HXX
+#include <redlndlg.hxx>
+#endif
+#ifndef _REDLENUM_HXX
+#include <redlenum.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _APP_HRC
+#include <app.hrc>
+#endif
+#ifndef _WEB_HRC
+#include <web.hrc>
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+short lcl_AskRedlineMode(Window *pWin)
+{
+ MessBox aQBox( pWin, 0,
+ String( SW_RES( STR_REDLINE_TITLE ) ),
+ String( SW_RES( STR_REDLINE_MSG ) ) );
+ aQBox.SetImage( QueryBox::GetStandardImage() );
+ USHORT nBtnFlags = BUTTONDIALOG_DEFBUTTON |
+ BUTTONDIALOG_OKBUTTON |
+ BUTTONDIALOG_FOCUSBUTTON;
+
+ aQBox.AddButton(String(SW_RES(STR_REDLINE_ACCEPT_ALL)), RET_OK, nBtnFlags);
+ aQBox.GetPushButton( RET_OK )->SetHelpId(HID_AUTOFORMAT_ACCEPT);
+ aQBox.AddButton(String(SW_RES(STR_REDLINE_REJECT_ALL)), RET_CANCEL, BUTTONDIALOG_CANCELBUTTON);
+ aQBox.GetPushButton( RET_CANCEL )->SetHelpId(HID_AUTOFORMAT_REJECT );
+ aQBox.AddButton(String(SW_RES(STR_REDLINE_EDIT)), 2, 0);
+ aQBox.GetPushButton( 2 )->SetHelpId(HID_AUTOFORMAT_EDIT_CHG);
+ aQBox.SetButtonHelpText( RET_OK, aEmptyStr );
+
+ return aQBox.Execute();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwTextShell::Execute(SfxRequest &rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ SwWrtShell& rWrtSh = GetShell();
+ const SfxPoolItem* pItem = 0;
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem);
+ switch( nSlot )
+ {
+ case FN_INSERT_SYMBOL:
+ InsertSymbol(aEmptyStr,aEmptyStr);
+ break;
+ case FN_INSERT_FOOTNOTE:
+ case FN_INSERT_ENDNOTE:
+ rWrtSh.InsertFootnote(aEmptyStr, nSlot == FN_INSERT_ENDNOTE);
+ break;
+ case FN_INSERT_FOOTNOTE_DLG:
+ {
+ SwInsFootNoteDlg *pDlg = new SwInsFootNoteDlg(
+ GetView().GetWindow(), rWrtSh, FALSE);
+ pDlg->SetHelpId(nSlot);
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_FORMAT_FOOTNOTE_DLG:
+ {
+ SwFootNoteOptionDlg *pDlg = new SwFootNoteOptionDlg(GetView().GetWindow(), rWrtSh);
+ pDlg->Execute();
+ delete pDlg;
+ break;
+ }
+ case SID_INSERT_GRAPHIC:
+ if (!pItem)
+ {
+ rReq.SetReturnValue(SfxBoolItem(nSlot, InsertGraphicDlg()));
+ }
+ else
+ {
+ String rName = aEmptyStr;
+ BOOL bLink = FALSE;
+
+ rName = ((const SfxStringItem *)pItem)->GetValue();
+
+ String rFilter = aEmptyStr;
+ if ( SFX_ITEM_SET ==
+ pArgs->GetItemState(FN_PARAM_FILTER, TRUE, &pItem) )
+ rFilter = ((const SfxStringItem *)pItem)->GetValue();
+
+ if ( SFX_ITEM_SET ==
+ pArgs->GetItemState(FN_PARAM_1, TRUE, &pItem) )
+ bLink = ((const SfxBoolItem *)pItem)->GetValue();
+
+ if ( !rName.Len() )
+ rReq.SetReturnValue(SfxBoolItem(nSlot, InsertGraphicDlg()));
+ else
+ rReq.SetReturnValue(SfxBoolItem(nSlot, InsertGraphic( rName, rFilter, bLink )));
+ }
+ break;
+ case SID_INSERTDOC:
+ if (!pItem)
+ rReq.SetReturnValue(SfxBoolItem(nSlot, GetView().InsertDoc(nSlot, aEmptyStr, aEmptyStr) != -1));
+ else
+ {
+ String aFile = aEmptyStr;
+ String aFilter = aEmptyStr;
+ aFile = ((const SfxStringItem *)pItem)->GetValue();
+ if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_1, TRUE, &pItem ))
+ aFilter = ((const SfxStringItem *)pItem)->GetValue();
+
+ rReq.SetReturnValue(SfxBoolItem(nSlot, GetView().InsertDoc( nSlot, aFile, aFilter ) != -1));
+ }
+ break;
+ case FN_FORMAT_RESET:
+ rWrtSh.ResetAttr();
+ break;
+ case FN_INSERT_BREAK_DLG:
+ {
+ SwBreakDlg *pDlg = new SwBreakDlg(GetView().GetWindow(), rWrtSh);
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_INSERT_BOOKMARK:
+ {
+ SwInsertBookmarkDlg *pDlg = new SwInsertBookmarkDlg(
+ GetView().GetWindow(), rWrtSh );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_AUTOFORMAT_REDLINE_APPLY:
+ {
+ SvxSwAutoFmtFlags aFlags(OFF_APP()->GetAutoCorrect()->GetSwFlags());
+ // das muss fuer die Nachbearbeitung immer FALSE sein
+ aFlags.bAFmtByInput = FALSE;
+ aFlags.bWithRedlining = TRUE;
+ rWrtSh.AutoFormat( &aFlags );
+ aFlags.bWithRedlining = FALSE;
+
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ if (pVFrame->HasChildWindow(FN_REDLINE_ACCEPT))
+ pVFrame->ToggleChildWindow(FN_REDLINE_ACCEPT);
+
+ SwModalRedlineAcceptDlg aDlg(&GetView().GetEditWin());
+
+ switch (lcl_AskRedlineMode(&GetView().GetEditWin()))
+ {
+ case RET_OK:
+ aDlg.AcceptAll(TRUE);
+ break;
+
+ case RET_CANCEL:
+ aDlg.AcceptAll(FALSE);
+ break;
+
+ case 2:
+ aDlg.Execute();
+ break;
+ }
+ }
+ break;
+
+ case FN_AUTOFORMAT_APPLY:
+ {
+ SvxSwAutoFmtFlags aFlags(OFF_APP()->GetAutoCorrect()->GetSwFlags());
+ // das muss fuer die Nachbearbeitung immer FALSE sein
+ aFlags.bAFmtByInput = FALSE;
+ rWrtSh.AutoFormat( &aFlags );
+ }
+ break;
+ case FN_AUTOFORMAT_AUTO:
+ {
+ OfaAutoCorrCfg* pACfg = OFF_APP()->GetAutoCorrConfig();
+ BOOL bSet = pItem ? ((const SfxBoolItem*)pItem)->GetValue()
+ : !pACfg->IsAutoFmtByInput();
+ if( bSet != pACfg->IsAutoFmtByInput() )
+ pACfg->SetAutoFmtByInput( bSet );
+ }
+ break;
+ case FN_AUTO_CORRECT:
+ {
+ // erstmal auf Blank defaulten
+ sal_Unicode cChar = ' ';
+ rWrtSh.AutoCorrect( *OFF_APP()->GetAutoCorrect(), cChar );
+ }
+ break;
+
+ case FN_SORTING_DLG:
+ {
+ SwSortDlg *pDlg = new SwSortDlg(GetView().GetWindow(), rWrtSh );
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_NUMBERING_OUTLINE_DLG:
+ {
+ SfxItemSet aTmp(GetPool(), FN_PARAM_1, FN_PARAM_1);
+ SwOutlineTabDialog* pDlg = new SwOutlineTabDialog(GetView().GetWindow(), &aTmp, rWrtSh);
+ pDlg->Execute();
+ delete pDlg;
+ }
+ break;
+ case FN_CALCULATE:
+ {
+ SwDataExchangeRef aRef( new SwDataExchange( rWrtSh ) );
+ aRef->CalculateAndCopy();
+ }
+ break;
+ case FN_GOTO_REFERENCE:
+ {
+ SwField *pFld = rWrtSh.GetCurFld();
+ if(pFld && pFld->GetTypeId() == TYP_GETREFFLD)
+ {
+ rWrtSh.StartAllAction();
+ rWrtSh.SwCrsrShell::GotoRefMark( ((SwGetRefField*)pFld)->GetSetRefName(),
+ ((SwGetRefField*)pFld)->GetSubType(),
+ ((SwGetRefField*)pFld)->GetSeqNo() );
+ rWrtSh.EndAllAction();
+ }
+ }
+ break;
+ case FN_EDIT_FORMULA:
+ {
+ rWrtSh.EndAllTblBoxEdit();
+ SfxViewFrame* pVFrame = GetView().GetViewFrame();
+ const USHORT nId = SwInputChild::GetChildWindowId();
+ pVFrame->ToggleChildWindow( nId );
+ if( !pVFrame->HasChildWindow( nId ) )
+ pVFrame->GetBindings().InvalidateAll( TRUE );
+ }
+
+ break;
+ case FN_TABLE_UNSET_READ_ONLY:
+ {
+ rWrtSh.UnProtectTbls();
+ }
+ break;
+ case FN_EDIT_HYPERLINK:
+ GetView().GetViewFrame()->ToggleChildWindow(SID_HYPERLINK_DIALOG);
+ break;
+ case FN_INSERT_HYPERLINK:
+ case SID_CHAR_DLG:
+ {
+ SwView* pView = GetActiveView();
+ if(pView)
+ {
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
+ SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, eMetric));
+ SfxItemSet aCoreSet( GetPool(),
+ RES_CHRATR_BEGIN, RES_CHRATR_END-1,
+ RES_TXTATR_INETFMT, RES_TXTATR_INETFMT,
+ RES_BACKGROUND, RES_BACKGROUND,
+ FN_PARAM_SELECTION, FN_PARAM_SELECTION,
+ SID_HTML_MODE, SID_HTML_MODE,
+ 0 );
+ rWrtSh.GetAttr( aCoreSet );
+ BOOL bSel = rWrtSh.HasSelection();
+ BOOL bSelectionPutted = FALSE;
+ if(bSel || rWrtSh.IsInWord())
+ {
+ if(!bSel)
+ {
+ rWrtSh.StartAction();
+ rWrtSh.Push();
+ if(!rWrtSh.SelectTxtAttr( RES_TXTATR_INETFMT ))
+ rWrtSh.SelWrd();
+ }
+ aCoreSet.Put(SfxStringItem(FN_PARAM_SELECTION, rWrtSh.GetSelTxt()));
+ bSelectionPutted = TRUE;
+ if(!bSel)
+ {
+ rWrtSh.Pop(FALSE);
+ rWrtSh.EndAction();
+ }
+ }
+
+ // Das CHRATR_BACKGROUND-Attribut wird fuer den Dialog in
+ // ein RES_BACKGROUND verwandelt und wieder zurueck ...
+ const SfxPoolItem *pTmpBrush;
+ if( SFX_ITEM_SET == aCoreSet.GetItemState( RES_CHRATR_BACKGROUND,
+ TRUE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_BACKGROUND );
+ aCoreSet.Put( aTmpBrush );
+ }
+
+ aCoreSet.Put(SfxUInt16Item(SID_HTML_MODE,
+ ::GetHtmlMode(GetView().GetDocShell())));
+ SwCharDlg* pDlg = new SwCharDlg(GetView().GetWindow(), GetView(), aCoreSet);
+ if(FN_INSERT_HYPERLINK == nSlot)
+ pDlg->SetCurPageId(TP_CHAR_URL);
+ if (RET_OK == pDlg->Execute())
+ {
+ SfxItemSet aTmpSet( *pDlg->GetOutputItemSet() );
+ if( SFX_ITEM_SET == aTmpSet.GetItemState( RES_BACKGROUND,
+ FALSE, &pTmpBrush ) )
+ {
+ SvxBrushItem aTmpBrush( *((SvxBrushItem*)pTmpBrush) );
+ aTmpBrush.SetWhich( RES_CHRATR_BACKGROUND );
+ aTmpSet.Put( aTmpBrush );
+ }
+ aTmpSet.ClearItem( RES_BACKGROUND );
+
+ const SfxPoolItem* pItem;
+ BOOL bInsert = FALSE;
+
+ // aus ungeklaerter Ursache ist das alte Item wieder im Set
+ if(!bSelectionPutted && SFX_ITEM_SET == aTmpSet.GetItemState(FN_PARAM_SELECTION, FALSE, &pItem))
+ {
+ String sInsert = ((const SfxStringItem*)pItem)->GetValue();
+ bInsert = sInsert.Len() != 0;
+ if(bInsert)
+ {
+ rWrtSh.StartAction();
+ rWrtSh.Insert( sInsert );
+ rWrtSh.SetMark();
+ rWrtSh.ExtendSelection(FALSE, sInsert.Len());
+ }
+ }
+ SwTxtFmtColl* pColl = rWrtSh.GetCurTxtFmtColl();
+ if(bSel &&
+ rWrtSh.IsSelFullPara() &&
+ pColl && pColl->IsAutoUpdateFmt())
+ {
+ rWrtSh.AutoUpdatePara(pColl, aTmpSet);
+ }
+ else
+ rWrtSh.SetAttr( aTmpSet );
+ if(bInsert)
+ {
+ rWrtSh.SwapPam();
+ rWrtSh.ClearMark();
+ rWrtSh.DontExpandFmt();
+ rWrtSh.EndAction();
+ }
+ }
+ delete pDlg;
+ }
+ }
+ break;
+ case SID_PARA_DLG:
+ {
+ //Damit aus dem Basic keine Dialoge fuer Hintergrund-Views aufgerufen werden:
+ SwView* pView = GetActiveView();
+ if(pView)
+ {
+ FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
+ SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, eMetric));
+ SfxItemSet aCoreSet( GetPool(),
+ RES_PARATR_BEGIN, RES_PARATR_END - 1,
+ RES_FRMATR_BEGIN, RES_FRMATR_END - 1,
+ SID_ATTR_TABSTOP_POS, SID_ATTR_TABSTOP_POS,
+ SID_ATTR_TABSTOP_DEFAULTS, SID_ATTR_TABSTOP_DEFAULTS,
+ SID_ATTR_TABSTOP_OFFSET, SID_ATTR_TABSTOP_OFFSET,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
+ SID_ATTR_PARA_PAGENUM, SID_ATTR_PARA_PAGENUM,
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_PARAM_1, FN_PARAM_1,
+ FN_NUMBER_NEWSTART, FN_NUMBER_NEWSTART_AT,
+ 0);
+ rWrtSh.GetAttr( aCoreSet );
+ aCoreSet.Put(SfxUInt16Item(SID_HTML_MODE,
+ ::GetHtmlMode(GetView().GetDocShell())));
+
+ // Tabulatoren, DefaultTabs ins ItemSet Stecken
+ const SvxTabStopItem& rDefTabs = (const SvxTabStopItem&)
+ GetPool().GetDefaultItem(RES_PARATR_TABSTOP);
+
+ USHORT nDefDist = ::GetTabDist( rDefTabs );
+ SfxUInt16Item aDefDistItem( SID_ATTR_TABSTOP_DEFAULTS, nDefDist );
+ aCoreSet.Put( aDefDistItem );
+
+ // Aktueller Tab
+ SfxUInt16Item aTabPos( SID_ATTR_TABSTOP_POS, 0 );
+ aCoreSet.Put( aTabPos );
+
+ // linker Rand als Offset
+ const long nOff = ((SvxLRSpaceItem&)aCoreSet.Get( RES_LR_SPACE )).
+ GetTxtLeft();
+ SfxInt32Item aOff( SID_ATTR_TABSTOP_OFFSET, nOff );
+ aCoreSet.Put( aOff );
+
+
+ // BoxInfo setzen
+ ::PrepareBoxInfo( aCoreSet, rWrtSh );
+
+ //aktuelles Seitenformat
+ ::SwToSfxPageDescAttr( aCoreSet );
+
+ UINT16 nDefPage = 0;
+ if( pItem )
+ nDefPage = ((SfxUInt16Item *)pItem)->GetValue();
+
+ // Numerierungseigenschaften
+ if(rWrtSh.GetCurNumRule())
+ {
+ aCoreSet.Put(SfxBoolItem(FN_NUMBER_NEWSTART,
+ USHRT_MAX != rWrtSh.IsNodeNumStart()));
+ aCoreSet.Put(SfxUInt16Item(FN_NUMBER_NEWSTART_AT,
+ rWrtSh.IsNodeNumStart()));
+ }
+ SwParaDlg *pDlg = new SwParaDlg( GetView().GetWindow(),
+ GetView(), aCoreSet, DLG_STD,
+ NULL, FALSE, nDefPage );
+
+ if ( pDlg->Execute() == RET_OK )
+ {
+ // Defaults evtl umsetzen
+ SfxItemSet* pSet = (SfxItemSet*)pDlg->GetOutputItemSet();
+ USHORT nNewDist;
+ if( SFX_ITEM_SET == pSet->GetItemState( SID_ATTR_TABSTOP_DEFAULTS,
+ FALSE, &pItem ) &&
+ nDefDist != (nNewDist = ((SfxUInt16Item*)pItem)->GetValue()) )
+ {
+ SvxTabStopItem aDefTabs( 0, 0 );
+ MakeDefTabs( nNewDist, aDefTabs );
+ rWrtSh.SetDefault( aDefTabs );
+ pSet->ClearItem( SID_ATTR_TABSTOP_DEFAULTS );
+ }
+
+ ::SfxToSwPageDescAttr( rWrtSh, *pSet );
+
+ if( pSet->Count() )
+ {
+ rWrtSh.StartAction();
+ rWrtSh.StartUndo( UNDO_START );
+ if ( SFX_ITEM_SET == pSet->GetItemState(FN_PARAM_1,FALSE,&pItem) )
+ {
+ if ( ((SfxStringItem*)pItem)->GetValue().Len() )
+ rWrtSh.ReplaceDropTxt(((SfxStringItem*)pItem)->GetValue());
+ }
+ rWrtSh.SetAttr( *pSet );
+ rWrtSh.EndUndo( UNDO_END );
+ rWrtSh.EndAction();
+ SwTxtFmtColl* pColl = rWrtSh.GetCurTxtFmtColl();
+ if(pColl && pColl->IsAutoUpdateFmt())
+ {
+ rWrtSh.AutoUpdatePara(pColl, *pSet);
+ }
+ }
+ if(SFX_ITEM_SET == pSet->GetItemState(FN_NUMBER_NEWSTART))
+ {
+ BOOL bStart = ((SfxBoolItem&)pSet->Get(FN_NUMBER_NEWSTART_AT)).GetValue();
+ // das zweite Item muss immer drin sein!
+ USHORT nNumStart = ((SfxUInt16Item&)pSet->Get(FN_NUMBER_NEWSTART_AT)).GetValue();
+ if(!bStart)
+ nNumStart = USHRT_MAX;
+ rWrtSh.SetNodeNumStart(nNumStart);
+ }
+ }
+ delete pDlg;
+ }
+ }
+ break;
+ case FN_SELECT_PARA:
+ {
+ if(!rWrtSh.IsSttOfPara())
+ rWrtSh.SttPara(FALSE);
+ else
+ rWrtSh.EnterStdMode();
+ rWrtSh.EndPara(TRUE);
+ }
+ break;
+
+ case SID_DEC_INDENT:
+ case SID_INC_INDENT:
+ rWrtSh.MoveLeftMargin( SID_INC_INDENT == nSlot,
+ rReq.GetModifier() != KEY_MOD1 );
+ break;
+ case FN_DEC_INDENT_OFFSET:
+ case FN_INC_INDENT_OFFSET:
+ rWrtSh.MoveLeftMargin( FN_INC_INDENT_OFFSET == nSlot,
+ rReq.GetModifier() == KEY_MOD1 );
+ break;
+
+ case SID_ATTR_CHAR_COLOR2:
+ {
+ if(pItem)
+ {
+ Color aSet = ((const SvxColorItem*)pItem)->GetValue();
+ SwView& rView = GetView();
+ SwEditWin& rEditWin = rView.GetEditWin();
+ rEditWin.SetTextColor(aSet);
+ SwApplyTemplate* pApply = rEditWin.GetApplyTemplate();
+ SvxColorItem aItem(aSet, RES_CHRATR_COLOR);
+
+ // besteht eine Selektion, wird sie gleich gefaerbt
+ if(!pApply && rWrtSh.HasSelection())
+ {
+ SvxColorItem aItem(aSet, RES_CHRATR_COLOR);
+ rWrtSh.SetAttr(aItem);
+ }
+ else if(!pApply || pApply->nColor != SID_ATTR_CHAR_COLOR_EXT)
+ {
+ rView.GetViewFrame()->GetDispatcher()->Execute(SID_ATTR_CHAR_COLOR_EXT);
+ }
+
+/* OS 22.02.97 18:40 Das alte Verhalten ist unerwuenscht
+ SwEditWin& rEdtWin = GetView().GetEditWin();
+
+ SwApplyTemplate* pApply = rEdtWin.GetApplyTemplate();
+ SvxColorItem aItem(aSet, RES_CHRATR_COLOR);
+
+ if(!pApply || pApply->nColor != SID_ATTR_CHAR_COLOR_EXT)
+ {
+ GetShell().SetAttr(aItem);
+ }
+*/
+ }
+ }
+ break;
+ case SID_ATTR_CHAR_COLOR_BACKGROUND:
+ {
+ SwView& rView = GetView();
+ SwEditWin& rEdtWin = rView.GetEditWin();
+ SwApplyTemplate* pApply = rEdtWin.GetApplyTemplate();
+ rEdtWin.SetTextBackColorTransparent(0 == pItem);
+ Color aSet;
+ if(pItem)
+ {
+ aSet = ((const SvxColorItem*)pItem)->GetValue();
+ rEdtWin.SetTextBackColor(aSet);
+ }
+ if(!pApply && (rWrtSh.HasSelection() || rReq.IsAPI()))
+ {
+ SvxBrushItem aBrushItem(RES_CHRATR_BACKGROUND);
+ if(pItem)
+ aBrushItem.SetColor(aSet);
+ else
+ aBrushItem.SetColor(Color(COL_TRANSPARENT));
+ rWrtSh.SetAttr( aBrushItem );
+ }
+ else if(!pApply || pApply->nColor != SID_ATTR_CHAR_COLOR_BACKGROUND_EXT)
+ {
+ rView.GetViewFrame()->GetDispatcher()->Execute(SID_ATTR_CHAR_COLOR_BACKGROUND_EXT);
+ }
+/* OS 22.02.97 18:40 Das alte Verhalten ist unerwuenscht
+ if(!pApply || pApply->nColor != SID_ATTR_CHAR_COLOR_BACKGROUND_EXT)
+ {
+ Brush aBrush(pItem ? BRUSH_SOLID : BRUSH_NULL);
+ if(pItem)
+ aBrush.SetColor( aSet );
+ GetShell().SetAttr( SvxBrushItem(aBrush, RES_CHRATR_BACKGROUND) );
+ }
+*/
+ }
+ break;
+ case SID_ATTR_CHAR_COLOR_BACKGROUND_EXT:
+ case SID_ATTR_CHAR_COLOR_EXT:
+ {
+ SwEditWin& rEdtWin = GetView().GetEditWin();
+ SwApplyTemplate* pApply = rEdtWin.GetApplyTemplate();
+ SwApplyTemplate aTempl;
+ BOOL bSelection = rWrtSh.HasSelection();
+ if(bSelection)
+ {
+
+ if(nSlot == SID_ATTR_CHAR_COLOR_BACKGROUND_EXT)
+ {
+ rWrtSh.SetAttr( SvxBrushItem(
+ rEdtWin.GetTextBackColor(), RES_CHRATR_BACKGROUND) );
+ }
+ else
+ rWrtSh.SetAttr( SvxColorItem( rEdtWin.GetTextColor(),
+ RES_CHRATR_COLOR) );
+ }
+ else
+ {
+ if(!pApply || pApply->nColor != nSlot)
+ aTempl.nColor = nSlot;
+ rEdtWin.SetApplyTemplate(aTempl);
+ }
+ }
+ break;
+
+ case FN_NUM_BULLET_MOVEDOWN:
+ if (!rWrtSh.IsAddMode())
+ rWrtSh.MoveParagraph(1);
+ break;
+
+ case FN_NUM_BULLET_MOVEUP:
+ if (!rWrtSh.IsAddMode())
+ rWrtSh.MoveParagraph(-1);
+ break;
+
+ case SID_HYPERLINK_DIALOG:
+ {
+ SfxRequest aReq(SID_HYPERLINK_DIALOG, SFX_CALLMODE_SLOT, SFX_APP()->GetPool());
+ GetView().GetViewFrame()->ExecuteSlot( aReq);
+ }
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwTextShell::GetState( SfxItemSet &rSet )
+{
+ SwWrtShell &rSh = GetShell();
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ while ( nWhich )
+ {
+ switch ( nWhich )
+ {
+ case FN_NUM_NUMBERING_ON:
+ case FN_NUM_BULLET_ON:
+ if ( rSh.IsTableMode() )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_NUMBER_BULLETS:
+ if ( rSh.IsTableMode() )
+ rSet.DisableItem(nWhich);
+ break;
+
+ case FN_EDIT_FORMULA:
+ case FN_INSERT_SYMBOL:
+ {
+ const int nType = rSh.GetSelectionType();
+ if (!(nType & SwWrtShell::SEL_TXT) &&
+ !(nType & SwWrtShell::SEL_TBL) &&
+ !(nType & SwWrtShell::SEL_NUM))
+ rSet.DisableItem(nWhich);
+ }
+ break;
+
+ case FN_INSERT_ENDNOTE:
+ case FN_INSERT_FOOTNOTE:
+ case FN_INSERT_FOOTNOTE_DLG:
+ {
+ const USHORT nNoType = FRMTYPE_FLY_ANY | FRMTYPE_HEADER |
+ FRMTYPE_FOOTER | FRMTYPE_FOOTNOTE;
+ if ( (rSh.GetFrmType(0,TRUE) & nNoType) )
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case FN_INSERT_TABLE:
+ if ( rSh.GetTableFmt() ||
+ (rSh.GetFrmType(0,TRUE) & FRMTYPE_FOOTNOTE) )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_CALCULATE:
+ if ( !rSh.IsSelection() )
+ rSet.DisableItem(nWhich);
+ break;
+ case FN_GOTO_REFERENCE:
+ {
+ SwField *pFld = rSh.GetCurFld();
+ if ( !pFld || (pFld && pFld->GetTypeId() != TYP_GETREFFLD) )
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case FN_AUTOFORMAT_AUTO:
+ {
+ rSet.Put( SfxBoolItem( nWhich, OFF_APP()->
+ GetAutoCorrConfig()->IsAutoFmtByInput() ));
+ }
+ break;
+ case FN_GLOSSARY_DLG:
+ {
+ rSet.Put(SfxBoolItem(nWhich), TRUE);
+ }
+ break;
+
+ case SID_DEC_INDENT:
+ case SID_INC_INDENT:
+ {
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ nHtmlMode &= HTMLMODE_ON|HTMLMODE_SOME_STYLES;
+ if( (nHtmlMode == HTMLMODE_ON) || !rSh.IsMoveLeftMargin(
+ SID_INC_INDENT == nWhich, TRUE ))
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ case FN_DEC_INDENT_OFFSET:
+ case FN_INC_INDENT_OFFSET:
+ {
+ USHORT nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
+ nHtmlMode &= HTMLMODE_ON|HTMLMODE_SOME_STYLES;
+ if( (nHtmlMode == HTMLMODE_ON) ||
+ !rSh.IsMoveLeftMargin( FN_INC_INDENT_OFFSET == nWhich,
+ FALSE ))
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ case SID_ATTR_CHAR_COLOR2:
+ {
+ rSet.Put(SvxColorItem(GetView().GetEditWin().GetTextColor(), SID_ATTR_CHAR_COLOR2));
+ }
+ break;
+ case SID_ATTR_CHAR_COLOR_BACKGROUND:
+ {
+ if(GetView().GetEditWin().IsTextBackColorTransparent())
+ rSet.Put(SvxColorItem(Color(COL_LIGHTGRAY), SID_ATTR_CHAR_COLOR_BACKGROUND));
+ else
+ rSet.Put(SvxColorItem(GetView().GetEditWin().GetTextBackColor(), SID_ATTR_CHAR_COLOR_BACKGROUND));
+ }
+ break;
+ case SID_ATTR_CHAR_COLOR_BACKGROUND_EXT:
+ case SID_ATTR_CHAR_COLOR_EXT:
+ {
+ SwEditWin& rEdtWin = GetView().GetEditWin();
+ SwApplyTemplate* pApply = rEdtWin.GetApplyTemplate();
+ rSet.Put(SfxBoolItem(nWhich, pApply && pApply->nColor == nWhich));
+ }
+ break;
+ case FN_INSERT_BOOKMARK:
+ if( rSh.IsTableMode() )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_INSERT_PAGEHEADER:
+ case FN_INSERT_PAGEFOOTER:
+ {
+#ifndef CHECK_MENU
+ rSet.Put( SfxObjectItem( nWhich, GetView().GetDocShell() ));
+#else
+ // Seitenvorlagen besorgen
+ BOOL bFound = FALSE;
+ USHORT n, nCnt = rSh.GetPageDescCnt();
+ for( n = 0; n < nCnt; ++n )
+ {
+ const SwPageDesc& rDesc = rSh.GetPageDesc( n );
+ if( FN_INSERT_PAGEHEADER == nWhich
+ ? !rDesc.GetMaster().GetHeader().IsActive()
+ : !rDesc.GetMaster().GetFooter().IsActive() )
+ {
+ bFound = TRUE;
+ break;
+ }
+ }
+
+ if( bFound )
+ rSet.Put( SfxObjectItem( nWhich, GetView().GetDocShell() ));
+ else
+ rSet.DisableItem( nWhich );
+#endif
+ }
+ break;
+ case FN_SORTING_DLG:
+ if(!rSh.HasSelection())
+ rSet.DisableItem( nWhich );
+ break;
+ case SID_HYPERLINK_DIALOG:
+ if(!GetView().GetViewFrame()->HasChildWindow(SID_HYPERLINK_DIALOG) && rSh.HasReadonlySel())
+ rSet.DisableItem(SID_HYPERLINK_DIALOG);
+ break;
+ case FN_EDIT_HYPERLINK:
+ {
+ SfxItemSet aSet(GetPool(),
+ RES_TXTATR_INETFMT,
+ RES_TXTATR_INETFMT);
+ rSh.GetAttr(aSet);
+ if(SFX_ITEM_SET > aSet.GetItemState( RES_TXTATR_INETFMT, TRUE ) || rSh.HasReadonlySel())
+ {
+ rSet.DisableItem(FN_EDIT_HYPERLINK);
+ }
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.171 2000/09/18 16:06:06 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.170 2000/09/12 14:11:19 os
+ SfxApplication::ChildWindowExecute removed
+
+ Revision 1.169 2000/09/11 06:52:45 os
+ Get/Set/Has/ToggleChildWindow SfxApplication -> SfxViewFrame
+
+ Revision 1.168 2000/09/08 08:12:52 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.167 2000/09/07 15:59:30 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.166 2000/08/31 11:32:07 jp
+ add missing include
+
+ Revision 1.165 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.164 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.163 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.162 2000/04/04 15:11:48 os
+ #74685# hyperlink button only disabled in readonly sections
+
+ Revision 1.161 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.160 2000/02/11 14:57:58 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.159 2000/01/12 16:43:04 os
+ #71278# edit hyperlink: use the new dialog
+
+ Revision 1.158 2000/01/03 08:38:28 os
+ #71278# edit hyperlink slot
+
+ Revision 1.157 1999/07/08 13:58:46 MA
+ Use internal object to toggle wait cursor
+
+
+ Rev 1.156 08 Jul 1999 15:58:46 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.155 15 Apr 1999 14:02:44 OS
+ #64801# keine Endnoten in Rahmen
+
+ Rev 1.154 23 Mar 1999 18:28:12 JP
+ Bug #63449#: vorm Formeledit alle Zellveraenderungen pruefen
+
+ Rev 1.153 18 Mar 1999 14:41:18 OS
+ #61169# #61489# Masseinheiten fuer Text u. HTML am Module setzen, nicht an der App
+
+ Rev 1.152 05 Feb 1999 17:05:48 OS
+ #61547# InsertEndnoteDirect
+
+ Rev 1.151 15 Jan 1999 15:45:30 JP
+ Bug #60203#: MoveLeftMargin - optional um Betrag verschieben
+
+ Rev 1.150 13 Jan 1999 14:54:02 TJ
+ include
+
+ Rev 1.149 13 Jan 1999 08:14:18 OS
+ #60380# HelpIds fuer AutoFormat - QueryBox
+
+ Rev 1.148 27 Nov 1998 14:55:38 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.147 06 Nov 1998 16:34:50 OS
+ #58450# Fussnoten auch im HTML
+
+ Rev 1.146 21 Oct 1998 10:56:54 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.145 20 Oct 1998 17:52:46 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.144 20 Oct 1998 11:39:34 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.143 30 Sep 1998 14:05:26 OS
+ #52654# C40_Insert
+
+ Rev 1.142 30 Sep 1998 10:28:56 OS
+ #52654# Sortable und SortDescriptor eingebaut, auf- und absteigend fuer jeden Schluessel
+
+ Rev 1.141 08 Sep 1998 17:03:02 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.140 09 Jul 1998 14:04:12 OS
+ Kapitelnumerierung jetzt TabDialog
+
+ Rev 1.139 26 May 1998 15:34:00 JP
+ neu: Kopf-/Fusszeilen per Menu ein-/ausschalten
+
+ Rev 1.138 13 May 1998 14:58:10 OM
+ Autokorrektur/Autoformat umgestaltet und zusammengefasst
+
+ Rev 1.137 08 May 1998 17:02:48 OM
+ AutoFormat-Optionen an Ofa und Svx verschoben
+
+ Rev 1.136 07 May 1998 12:58:40 OM
+ AutoFormat-Optionen Umstellung
+
+ Rev 1.135 12 Mar 1998 13:08:00 OS
+ Numerierungsbutton nicht mehr gecheckt und nicht disabled
+
+ Rev 1.134 04 Mar 1998 14:16:26 OM
+ Dokument Merge/Compare
+
+ Rev 1.133 05 Feb 1998 14:46:26 OS
+ Numerierungsstart nur bei gesetzer Numerierung putten
+
+ Rev 1.132 02 Feb 1998 09:12:52 OS
+ neue Num-Tabpage
+
+ Rev 1.131 12 Dec 1997 13:57:36 OS
+ neuer Bookmark-Typ
+
+ Rev 1.130 03 Dec 1997 17:02:34 OS
+ Numerierungsumbau
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/textsh2.cxx b/sw/source/ui/shells/textsh2.cxx
new file mode 100644
index 000000000000..8e869ff3481b
--- /dev/null
+++ b/sw/source/ui/shells/textsh2.cxx
@@ -0,0 +1,777 @@
+/*************************************************************************
+ *
+ * $RCSfile: textsh2.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#if STLPORT_VERSION>=321
+#include <cstdarg>
+#endif
+
+#include <svtools/svmedit.hxx>
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXEVENT_HXX //autogen
+#include <sfx2/event.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifdef REPLACE_OFADBMGR
+#ifndef _SFXITEMSET_HXX
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX
+#include <sfx2/request.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
+#include <com/sun/star/container/XNameAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBCX_XCOLUMNSSUPPLIER_HPP_
+#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
+#include <com/sun/star/sdb/XQueriesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XDATABASEACCESS_HPP_
+#include <com/sun/star/sdb/XDatabaseAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+
+#else
+
+#endif //REPLACE_OFADBMGR
+
+#include "dbmgr.hxx"
+
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "swevent.hxx"
+#include "shells.hrc"
+#include "mailmrge.hxx"
+#include "textsh.hxx"
+#include "dbinsdlg.hxx"
+
+#ifdef REPLACE_OFADBMGR
+using namespace rtl;
+using namespace com::sun::star;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::container;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::sdb;
+using namespace com::sun::star::sdbc;
+using namespace com::sun::star::sdbcx;
+using namespace com::sun::star::beans;
+
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+#endif
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+#define DB_DD_DELIM 0x0b
+
+#ifdef DEBUG
+// the addressbook doesn't support the new api yet (593)
+#ifdef REPLACE_OFADBMGR
+void lcl_ReplaceDataSource(String& sDBName, String& sTblName, String& sStatmnt)
+{
+ Reference<XNameAccess> xDBContext;
+ Reference< XMultiServiceFactory > xMgr( ::utl::getProcessServiceFactory() );
+ if( xMgr.is() )
+ {
+ Reference<XInterface> xInstance = xMgr->createInstance( C2U( "com.sun.star.sdb.DatabaseContext" ));
+ xDBContext = Reference<XNameAccess>(xInstance, UNO_QUERY) ;
+ }
+ DBG_ASSERT(xDBContext.is(), "com.sun.star.sdb.DataBaseContext: service not available")
+ if(!xDBContext.is())
+ return;
+ Sequence<OUString> aDBNames = xDBContext->getElementNames();
+ const OUString* pDBNames = aDBNames.getConstArray();
+ long nCount = aDBNames.getLength();
+ DBG_ASSERT(nCount, "no data source available")
+ if(!nCount)
+ return;
+ sDBName = pDBNames[0];
+
+ Any aDBSource = xDBContext->getByName(sDBName);
+ Reference<XDataSource>* pxSource = (Reference<XDataSource>*)aDBSource.getValue();
+
+ Reference<sdbc::XConnection> xConnection;
+ try
+ {
+ OUString sDummy;
+ xConnection = (*pxSource)->getConnection(sDummy, sDummy);
+ }
+ catch(...) {}
+ DBG_ASSERT(xConnection.is(), "no connection found")
+ if (xConnection.is())
+ {
+ Reference<XTablesSupplier> xTSupplier = Reference<XTablesSupplier>(xConnection, UNO_QUERY);
+ DBG_ASSERT(xTSupplier.is(), "no tables found")
+ if(xTSupplier.is())
+ {
+ Reference<XNameAccess> xTbls = xTSupplier->getTables();
+ Sequence<OUString> aTblNames = xTbls->getElementNames();
+ long nCount = aTblNames.getLength();
+ DBG_ASSERT(nCount, "no table found")
+ const OUString* pTblNames = aTblNames.getConstArray();
+ sTblName = pTblNames[2];
+ sStatmnt = String::CreateFromAscii("select * from ");
+ String sQuote = xConnection->getMetaData()->getIdentifierQuoteString();
+ sStatmnt += sQuote;
+ sStatmnt += sTblName;
+ sStatmnt += sQuote;
+ }
+ }
+}
+#endif // REPLACE_OFADBMGR
+#endif // DEBUG
+
+inline void AddSelList( List& rLst, long nRow )
+{
+ rLst.Insert( (void*)nRow , LIST_APPEND );
+}
+
+void lcl_QRY_UPDATE( const SfxItemSet *pArgs, SwNewDBMgr *pNewDBMgr,
+ SwWrtShell &rSh, USHORT nSlot )
+{
+ DBG_ASSERT( pArgs, "arguments expected" );
+ if (pArgs)
+ {
+ SbaSelectionListRef pSelectionList;
+
+ const SfxStringItem &rDBNameItem = (const SfxStringItem&) pArgs->Get(SID_ATTR_SBA_DATABASE);
+ const SfxStringItem &rTableNameItem = (const SfxStringItem&) pArgs->Get(SID_ATTR_SBA_DBOBJ_NAME);
+ const SfxStringItem &rStatementItem = (const SfxStringItem&) pArgs->Get(SID_ATTR_SBA_STATEMENT);
+ DBG_ASSERT( rStatementItem.ISA(SfxStringItem), "invalid argument type" );
+
+ const SbaSelectionItem &rSelectionItem = (const SbaSelectionItem&) pArgs->Get(SID_ATTR_SBA_SELECTION);
+ pSelectionList = rSelectionItem.GetSelectionList();
+
+
+ String sDBName(rDBNameItem.GetValue());
+ String sTableName(rTableNameItem.GetValue());
+ String sStatement(rStatementItem.GetValue());
+
+#ifdef DEBUG
+// the addressbook doesn't support the new api yet (593)
+#ifdef REPLACE_OFADBMGR
+ lcl_ReplaceDataSource(sDBName, sTableName, sStatement);
+#endif
+#endif // DEBUG
+
+#ifdef REPLACE_OFADBMGR
+#else
+ if(sTableName.Len())
+ {
+ sDBName += DB_DELIM;
+ sDBName += rTableNameItem.GetValue();
+ }
+#endif
+ pNewDBMgr->SetMergeType( DBMGR_MERGE );
+#ifdef REPLACE_OFADBMGR
+ pNewDBMgr->Merge(DBMGR_MERGE, &rSh,
+ sStatement, pSelectionList, sDBName, sTableName);
+#else
+ pNewDBMgr->Merge(DBMGR_MERGE, &rSh,
+ sStatement, pSelectionList, sDBName);
+#endif
+ }
+}
+
+/* ---------------------------------------------------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwBaseShell::ExecDB(SfxRequest &rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ SwNewDBMgr* pNewDBMgr = GetShell().GetNewDBMgr();
+ USHORT nSlot = rReq.GetSlot();
+
+ switch (nSlot)
+ {
+ case SID_SBA_BRW_MERGE:
+ {
+ String sDBName;
+ String sTableName;
+ String sStatement;
+ SbaSelectionListRef xSelectionList;
+ if (pArgs)
+ {
+ const SfxStringItem &rDBNameItem = (const SfxStringItem&) pArgs->Get(SID_ATTR_SBA_DATABASE);
+ sDBName = rDBNameItem.GetValue();
+ const SfxStringItem &rTableNameItem = (const SfxStringItem&) pArgs->Get(SID_ATTR_SBA_DBOBJ_NAME);
+ sTableName = rTableNameItem.GetValue();
+ sStatement = ((const SfxStringItem&) pArgs->Get(SID_ATTR_SBA_STATEMENT)).GetValue();
+ const SbaSelectionItem &rSelectionItem = (const SbaSelectionItem&) pArgs->Get(SID_ATTR_SBA_SELECTION);
+ xSelectionList = rSelectionItem.GetSelectionList();
+ }
+#ifdef REPLACE_OFADBMGR
+#ifdef DEBUG
+ {
+ sDBName = C2S("Nordwind");
+ sTableName = C2S("Artikel");
+ sStatement = C2S("select * from Artikel");
+ }
+#endif //DEBUG
+#endif //REPLACE_OFADBMGR
+#ifdef REPLACE_OFADBMGR
+#else
+ else
+ break;
+#endif
+ if ( !xSelectionList.Is() )
+ xSelectionList = new SbaSelectionList;
+
+#ifdef REPLACE_OFADBMGR
+#else
+ if (sTableName.Len())
+ {
+ sDBName += DB_DELIM;
+ sDBName += sTableName;
+ }
+#endif
+
+ SwMailMergeDlg* pDlg = new SwMailMergeDlg(
+ NULL, GetShellPtr(),
+ sDBName,
+#ifdef REPLACE_OFADBMGR
+ sTableName,
+#endif
+ sStatement, xSelectionList );
+
+ if (pDlg->Execute() == RET_OK)
+ {
+ pNewDBMgr->SetMergeType( pDlg->GetMergeType() );
+
+ OFF_APP()->NotifyEvent(SfxEventHint(SW_EVENT_MAIL_MERGE, GetView().GetViewFrame()->GetObjectShell()));
+
+#ifdef REPLACE_OFADBMGR
+ pNewDBMgr->Merge(pNewDBMgr->GetMergeType(),
+ GetShellPtr(), sStatement,
+ xSelectionList,
+ sDBName,
+ sTableName);
+#else
+ pNewDBMgr->Merge(pNewDBMgr->GetMergeType(),
+ GetShellPtr(), sStatement,
+ xSelectionList, sDBName);
+#endif
+ delete(pDlg);
+ }
+ }
+ break;
+
+ case SID_SBA_BRW_UPDATE:
+ lcl_QRY_UPDATE( pArgs, pNewDBMgr, GetShell(), nSlot );
+ break;
+
+ case SID_SBA_BRW_INSERT:
+ DBG_ASSERT( pArgs, "arguments expected" );
+ if( pArgs )
+ {
+ String sDBName = ((SfxStringItem&)pArgs->Get(
+ SID_ATTR_SBA_DATABASE)).GetValue();
+ String sTblName = ((SfxStringItem&)pArgs->Get(
+ SID_ATTR_SBA_DBOBJ_NAME)).GetValue();
+ String sStatmnt = ((SfxStringItem&)pArgs->Get(
+ SID_ATTR_SBA_STATEMENT)).GetValue();
+ SbaSelectionListRef xSelectionList( ((SbaSelectionItem&)
+ pArgs->Get(SID_ATTR_SBA_SELECTION)).GetSelectionList());
+
+#ifdef DEBUG
+// the addressbook doesn't support the new api yet (593)
+#ifdef REPLACE_OFADBMGR
+ lcl_ReplaceDataSource(sDBName, sTblName, sStatmnt);
+#endif
+#endif // DEBUG
+
+ String* pDataStr = new String( sDBName );
+ ((((((*pDataStr) += char(DB_DD_DELIM) )
+ += sTblName ) += char(DB_DD_DELIM) )
+ += '0' ) += char(DB_DD_DELIM) ) // Flag fuer Tabelle oder Query - unused!
+ += sStatmnt;
+
+ if( xSelectionList.Is() )
+ for( ULONG n = 0, nEnd = xSelectionList->Count();
+ n < nEnd; ++n )
+ ((*pDataStr) += char(DB_DD_DELIM) )
+ += String::CreateFromInt32(
+ (long)xSelectionList->GetObject( n ));
+
+ SwBaseShell::InsertDBTextHdl( this, pDataStr );
+ // der String wird im InsertDBTextHdl geloescht !!
+ }
+ break;
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+
+
+void SwTextShell::ExecDB(SfxRequest &rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ SwNewDBMgr* pNewDBMgr = GetShell().GetNewDBMgr();
+ USHORT nSlot = rReq.GetSlot();
+
+ switch (nSlot)
+ {
+ case FN_QRY_INSERT:
+ {
+ String* pNew = new String( ((const SfxStringItem&)pArgs->
+ Get(nSlot)).GetValue() );
+ Application::PostUserEvent( STATIC_LINK( this, SwBaseShell,
+ InsertDBTextHdl ), pNew );
+ // der String wird im InsertDBTextHdl geloescht !!
+ }
+ break;
+
+ case FN_QRY_MERGE_FIELD:
+ {
+ String sSbaData = ((const SfxStringItem&)pArgs->Get(nSlot)).GetValue();
+ String sDBName = sSbaData.GetToken(0, DB_DD_DELIM);
+#ifdef REPLACE_OFADBMGR
+ String sTableName(sSbaData.GetToken(1, DB_DD_DELIM));
+#else
+ sDBName += DB_DELIM;
+ sDBName += sSbaData.GetToken(1, DB_DD_DELIM);
+#endif
+ BOOL bTable = sSbaData.GetToken(2, DB_DD_DELIM) == C2S("1");
+ String sStatement = sSbaData.GetToken(3, DB_DD_DELIM);
+
+ SbaSelectionListRef pSelectionList;
+ pSelectionList.Clear();
+ pSelectionList = new SbaSelectionList;
+ USHORT nCount = sSbaData.GetTokenCount(DB_DD_DELIM);
+
+ for( USHORT i = 4; i < nCount; i++ )
+ AddSelList( *pSelectionList,
+ sSbaData.GetToken( i, DB_DD_DELIM).ToInt32() );
+
+ pNewDBMgr->SetMergeType( DBMGR_MERGE );
+#ifdef REPLACE_OFADBMGR
+ pNewDBMgr->Merge(DBMGR_MERGE,
+ GetShellPtr(), sStatement,
+ pSelectionList, sDBName, sTableName);
+#else
+ pNewDBMgr->Merge(DBMGR_MERGE,
+ GetShellPtr(), sStatement,
+ pSelectionList, sDBName);
+#endif
+ }
+ break;
+
+ case FN_QRY_INSERT_FIELD:
+ {
+ String sSbaData = ((const SfxStringItem&)pArgs->Get(FN_QRY_INSERT_FIELD)).GetValue();
+
+ String sDBName = sSbaData.GetToken(0, DB_DD_DELIM);
+ sDBName += DB_DELIM;
+ sDBName += sSbaData.GetToken(1, DB_DD_DELIM);
+ sDBName += DB_DELIM;
+ BOOL bTable = sSbaData.GetToken(2, DB_DD_DELIM) == C2S("1");
+ sDBName += sSbaData.GetToken(3, DB_DD_DELIM); // Column name
+
+ InsertDBFld(sDBName);
+ }
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+IMPL_STATIC_LINK( SwBaseShell, InsertDBTextHdl, String*, pString )
+{
+ if( pString )
+ {
+
+#ifdef REPLACE_OFADBMGR
+ USHORT nTokenPos = 0;
+ String sSourceName( pString->GetToken( 0, DB_DD_DELIM, nTokenPos ));
+ String sTblQryName( pString->GetToken( 0, DB_DD_DELIM, nTokenPos ));
+ String sStatmnt( pString->GetToken( 1, DB_DD_DELIM, nTokenPos ));
+
+ Reference<XDataSource> xSource;
+ Reference< sdbc::XConnection> xConnection = SwNewDBMgr::GetConnection(sSourceName, xSource);
+ Reference< XColumnsSupplier> xColSupp;
+ if(xConnection.is())
+ xColSupp = SwNewDBMgr::GetColumnSupplier(xConnection,
+ sTblQryName,
+ SW_DB_SELECT_UNKNOWN);
+
+ if( xColSupp.is() )
+ {
+ SwInsDBData aDBData;
+ aDBData.sDataBaseName = sSourceName;
+ aDBData.sDataTableName = sTblQryName;
+ aDBData.sStatement = sStatmnt;
+ SwInsertDBColAutoPilot *pDlg = new SwInsertDBColAutoPilot(
+ pThis->GetView(),
+ xSource,
+ xColSupp,
+ aDBData );
+ if( RET_OK == pDlg->Execute() )
+ {
+ SbaSelectionList aSelectionList;
+ while( nTokenPos < pString->Len() )
+ AddSelList( aSelectionList,
+ pString->GetToken( 0, DB_DD_DELIM, nTokenPos ).ToInt32() );
+ pDlg->DataToDoc( &aSelectionList , xSource, xConnection);
+ }
+// else
+// rSh.ChgDBName( sOldDBName );
+ delete pDlg;
+ }
+// else
+// rSh.ChgDBName( sOldDBName );
+#else
+ USHORT nTokenPos = 0;
+ String sDBName( pString->GetToken( 0, DB_DD_DELIM, nTokenPos ));
+ ( sDBName += DB_DELIM ) +=
+ pString->GetToken( 0, DB_DD_DELIM, nTokenPos );
+ String sStatmnt( pString->GetToken( 1, DB_DD_DELIM, nTokenPos ));
+
+ SbaSelectionList aSelectionList;
+ while( nTokenPos < pString->Len() )
+ AddSelList( aSelectionList,
+ pString->GetToken( 0, DB_DD_DELIM, nTokenPos ).ToInt32() );
+
+ SwWrtShell& rSh = pThis->GetShell();
+ SwNewDBMgr* pNewDBMgr = rSh.GetNewDBMgr();
+ String sOldDBName( rSh.GetDBName() );
+ ( sDBName += ';' ) += sStatmnt;
+ rSh.ChgDBName( sDBName );
+
+ if( pNewDBMgr->OpenDB( DBMGR_STD, rSh.GetDBDesc() ) )
+ {
+ pNewDBMgr->ChangeStatement( DBMGR_STD, sStatmnt );
+
+ SwInsertDBColAutoPilot *pDlg = new SwInsertDBColAutoPilot(
+ pThis->GetView() );
+ if( pDlg->HasValidDB() && RET_OK == pDlg->Execute() )
+ {
+ // dann jetzt ueber den DBManager die Selektierten
+ // Daten ins Dokument einfuegen.
+ pDlg->DataToDoc( &aSelectionList );
+ }
+ else
+ rSh.ChgDBName( sOldDBName );
+ delete pDlg;
+ pNewDBMgr->CloseAll();
+ }
+ else
+ rSh.ChgDBName( sOldDBName );
+#endif
+ }
+
+ delete pString;
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.115 2000/09/18 16:06:06 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.114 2000/07/18 12:50:09 os
+ replace ofadbmgr
+
+ Revision 1.113 2000/07/07 15:25:43 os
+ replace ofadbmgr
+
+ Revision 1.112 2000/07/06 07:59:11 os
+ replace ofadbmgr
+
+ Revision 1.111 2000/07/05 08:22:09 os
+ Replace ofadbmgr
+
+ Revision 1.110 2000/06/07 13:18:20 os
+ using UCB
+
+ Revision 1.109 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.108 2000/05/23 19:29:09 jp
+ Bugfixes for Unicode
+
+ Revision 1.107 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.106 2000/04/18 14:58:24 os
+ UNICODE
+
+ Revision 1.105 2000/02/11 14:58:04 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.104 2000/01/06 07:32:58 os
+ #71436# mail merge dialog: execute via status method disposed
+
+ Revision 1.103 1999/11/11 15:00:55 hr
+ #65293#: STLPORT 3.2.1
+
+ Revision 1.102 1999/09/29 07:00:54 mh
+ chg: header
+
+ Revision 1.101 1999/03/01 15:22:38 MA
+ #62490# Altlast entfernt (Drucken und Briefumschlaege/Etiketten und Datenbank)
+
+
+ Rev 1.100 01 Mar 1999 16:22:38 MA
+ #62490# Altlast entfernt (Drucken und Briefumschlaege/Etiketten und Datenbank)
+
+ Rev 1.99 26 Feb 1999 16:08:42 MA
+ #62490# Rest vom Drucken Etiketten entfernt
+
+ Rev 1.98 12 Oct 1998 10:16:12 OM
+ #57790# Dialog nicht mehr AppModal
+
+ Rev 1.97 28 May 1998 17:09:54 JP
+ Auch beim Droppen von Datensaetzen als Text den neuen DBInsertDialog starten
+
+ Rev 1.96 20 May 1998 21:32:32 JP
+ InsertDBCols als Text: rufe den neuen Autopiloten
+
+ Rev 1.95 09 Dec 1997 12:31:08 OM
+ #45200# Serienbrief: Speichern-Monitor
+
+ Rev 1.94 02 Dec 1997 19:38:24 MA
+ #45900#, SelectionList muss fuer Dialog existieren
+
+ Rev 1.93 24 Nov 1997 09:46:52 MA
+ includes
+
+ Rev 1.92 18 Nov 1997 14:45:22 OM
+ Sba-Umstellung 372
+
+ Rev 1.91 03 Nov 1997 13:55:42 MA
+ precomp entfernt
+
+ Rev 1.90 08 Sep 1997 11:12:38 OM
+ #43152# SingleJob-Parameter fuer DataUpdatePrint
+
+ Rev 1.89 02 Sep 1997 14:58:36 OM
+ Neue Parameter fuer DataUpdatePrint
+
+ Rev 1.88 02 Sep 1997 09:58:00 OM
+ SDB-Headeranpassung
+
+ Rev 1.87 01 Sep 1997 13:23:56 OS
+ DLL-Umstellung
+
+ Rev 1.86 06 Aug 1997 14:37:02 TRI
+ VCL: includes
+
+ Rev 1.85 11 Jul 1997 14:46:36 OM
+ #41525# Nur durch SQL-Statement eingeschraenkte Datensaetze verwenden
+
+ Rev 1.84 09 Jun 1997 17:23:16 OM
+ Serienbriefe als Dateien speichern
+
+ Rev 1.83 29 Apr 1997 16:19:48 OM
+ Druckdialog bei Aufruf aus Basic unterdruecken
+
+ Rev 1.82 07 Apr 1997 17:45:56 MH
+ chg: header
+
+ Rev 1.81 09 Mar 1997 15:51:36 OM
+ Basic abgesichert
+
+ Rev 1.80 24 Feb 1997 16:54:02 OS
+ Item mit Tabellenname auswerten
+
+ Rev 1.79 13 Feb 1997 22:59:16 MA
+ Datenbankfunktionalitaet wieder hergestellt
+
+ Rev 1.78 12 Feb 1997 16:57:48 OM
+ Datenbankslots ueber Baseshell rufen
+
+ Rev 1.77 12 Feb 1997 10:40:46 OM
+ Endlosschleife behoben
+
+ Rev 1.76 12 Feb 1997 09:22:44 OM
+ DD-Trenner korrigiert
+
+ Rev 1.75 09 Feb 1997 15:09:34 OM
+ Anderer Trenner bei DB Drag u. Drop
+
+ Rev 1.74 07 Feb 1997 17:20:36 OM
+ Datenbankumstellung Drag u. Drop
+
+ Rev 1.73 16 Dec 1996 10:59:02 OM
+ Drucken aus DB-Browser angefangen
+
+ Rev 1.72 11 Dec 1996 10:50:56 MA
+ Warnings
+
+ Rev 1.71 01 Dec 1996 19:30:28 sdo
+ GCC-Parser
+
+ Rev 1.70 12 Nov 1996 16:50:58 MA
+ richtige Versionen gemerged
+
+ Rev 1.68 08 Nov 1996 17:40:14 OM
+ DB-Mode fuer Serienbriefe und Etiketten zum Teil wiederbelebt
+
+ Rev 1.67 24 Oct 1996 13:36:40 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.66 25 Sep 1996 14:12:10 OM
+ Neue Datenbanktrenner
+
+ Rev 1.65 19 Sep 1996 14:32:52 OM
+ Datenbank Basicanbindung
+
+ Rev 1.64 18 Sep 1996 10:44:58 OM
+ Serienbriefe wieder angebunden
+
+ Rev 1.63 13 Sep 1996 15:47:16 OM
+ Serienbrief
+
+ Rev 1.62 06 Sep 1996 12:31:42 OM
+ Statusmethode fuer DB-Slot
+
+ Rev 1.61 28 Aug 1996 15:54:58 OS
+ includes
+
+ Rev 1.60 23 Aug 1996 15:51:56 OM
+ Datenbank: Drag&Drop
+
+ Rev 1.59 23 Aug 1996 14:48:00 OM
+ Datenbank: Drag&Drop
+
+ Rev 1.58 21 Aug 1996 14:51:52 OM
+ Datenbank Drag&Drop
+
+ Rev 1.57 07 Aug 1996 16:24:24 OM
+ Datenbankumstellung
+
+ Rev 1.56 19 Jul 1996 16:10:14 OM
+ SBA-Umstellung
+
+ Rev 1.55 17 Jul 1996 13:47:40 OM
+ Datenbankumstellung 327
+
+ Rev 1.54 02 Jul 1996 16:36:20 OM
+ #28615# Makroausfuehrung auch bei Serienbriefdruck
+
+ Rev 1.53 04 Jun 1996 14:11:22 OM
+ Serienbrief Mailing
+
+ Rev 1.52 06 May 1996 17:39:34 OM
+ Mehrere Datenbanken pro Dokument
+
+ Rev 1.51 30 Apr 1996 09:24:34 OM
+ Mehrere Datenbanken pro Dok
+
+------------------------------------------------------------------------*/
+
+
+
+
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx
new file mode 100644
index 000000000000..827db9725fbe
--- /dev/null
+++ b/sw/source/ui/shells/txtattr.cxx
@@ -0,0 +1,875 @@
+/*************************************************************************
+ *
+ * $RCSfile: txtattr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_FHGTITEM_HXX //autogen
+#include <svx/fhgtitem.hxx>
+#endif
+#ifndef _SVX_ADJITEM_HXX //autogen
+#include <svx/adjitem.hxx>
+#endif
+#ifndef _SVX_LSPCITEM_HXX //autogen
+#include <svx/lspcitem.hxx>
+#endif
+#ifndef _SVX_UDLNITEM_HXX //autogen
+#include <svx/udlnitem.hxx>
+#endif
+#ifndef _SVX_ESCPITEM_HXX //autogen
+#include <svx/escpitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+
+
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#include "cmdid.h"
+#include "docsh.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "viewopt.hxx"
+#include "uitool.hxx"
+#include "uiitems.hxx"
+#include "textsh.hxx"
+#include "drpcps.hxx"
+#include "num.hxx"
+#include "swundo.hxx"
+#include "fmtcol.hxx"
+
+#include "globals.h"
+#include "shells.hrc"
+
+const SwTwips lFontInc = 2 * 20; // ==> PointToTwips(2)
+const SwTwips lFontMaxSz = 72 * 20; // ==> PointToTwips(72)
+
+
+
+
+
+void SwTextShell::ExecCharAttr(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ int eState = STATE_TOGGLE;
+ USHORT nWhich = rReq.GetSlot();
+
+ if(pArgs )
+ {
+ const SfxPoolItem* pItem;
+ pArgs->GetItemState(nWhich, FALSE, &pItem);
+ eState = ((const SfxBoolItem &) pArgs->
+ Get( nWhich )).GetValue() ? STATE_ON : STATE_OFF;
+ }
+
+
+ SfxItemSet aSet( GetPool(), RES_CHRATR_BEGIN, RES_CHRATR_END-1 );
+ if (STATE_TOGGLE == eState)
+ rSh.GetAttr( aSet );
+
+ switch ( nWhich )
+ {
+ case FN_SET_SUB_SCRIPT:
+ case FN_SET_SUPER_SCRIPT:
+ {
+ SvxEscapement eEscape;
+ switch (eState)
+ {
+ case STATE_TOGGLE:
+ {
+ short nTmpEsc = ((const SvxEscapementItem&)
+ aSet.Get( RES_CHRATR_ESCAPEMENT )).GetEsc();
+ eEscape = nWhich == FN_SET_SUPER_SCRIPT ?
+ SVX_ESCAPEMENT_SUPERSCRIPT:
+ SVX_ESCAPEMENT_SUBSCRIPT;
+ if( nWhich == FN_SET_SUB_SCRIPT && nTmpEsc < 0 ||
+ nWhich == FN_SET_SUPER_SCRIPT && nTmpEsc > 0 )
+ eEscape = SVX_ESCAPEMENT_OFF;
+
+ SfxBindings& rBind = GetView().GetViewFrame()->GetBindings();
+ if( nWhich == FN_SET_SUB_SCRIPT )
+ rBind.SetState( SfxBoolItem( FN_SET_SUPER_SCRIPT,
+ FALSE ) );
+ else
+ rBind.SetState( SfxBoolItem( FN_SET_SUB_SCRIPT,
+ FALSE ) );
+
+ }
+ break;
+ case STATE_ON:
+ eEscape = nWhich == FN_SET_SUPER_SCRIPT ?
+ SVX_ESCAPEMENT_SUPERSCRIPT:
+ SVX_ESCAPEMENT_SUBSCRIPT;
+ break;
+ case STATE_OFF:
+ eEscape = SVX_ESCAPEMENT_OFF;
+ break;
+ }
+ SvxEscapementItem aEscape( eEscape );
+ if(eEscape == SVX_ESCAPEMENT_SUPERSCRIPT)
+ aEscape.GetEsc() = DFLT_ESC_AUTO_SUPER;
+ else if(eEscape == SVX_ESCAPEMENT_SUBSCRIPT)
+ aEscape.GetEsc() = DFLT_ESC_AUTO_SUB;
+ if(eState != STATE_OFF )
+ {
+ if(eEscape == FN_SET_SUPER_SCRIPT)
+ aEscape.GetEsc() *= -1;
+ }
+ rSh.SetAttr( aEscape );
+ }
+ break;
+
+ case FN_UPDATE_STYLE_BY_EXAMPLE:
+ rSh.QuickUpdateStyle();
+ break;
+ case FN_UNDERLINE_DOUBLE:
+ {
+ FontUnderline eUnderline = ((const SvxUnderlineItem&)
+ aSet.Get(RES_CHRATR_UNDERLINE)).GetUnderline();
+ switch( eState )
+ {
+ case STATE_TOGGLE:
+ eUnderline = eUnderline == UNDERLINE_DOUBLE ?
+ UNDERLINE_NONE :
+ UNDERLINE_DOUBLE;
+ break;
+ case STATE_ON:
+ eUnderline = UNDERLINE_DOUBLE;
+ break;
+ case STATE_OFF:
+ eUnderline = UNDERLINE_NONE;
+ break;
+ }
+ rSh.SetAttr(SvxUnderlineItem(eUnderline));
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+}
+
+
+
+void SwTextShell::ExecCharButtonAttr(SfxRequest &rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ if (pArgs)
+ {
+ SwWrtShell& rWrtSh = GetShell();
+ SwTxtFmtColl* pColl = rWrtSh.GetCurTxtFmtColl();
+ if(rWrtSh.HasSelection() &&
+ rWrtSh.IsSelFullPara() &&
+ pColl && pColl->IsAutoUpdateFmt())
+ {
+ rWrtSh.AutoUpdatePara(pColl, *pArgs);
+ }
+ else
+ rWrtSh.SetAttr(*pArgs);
+
+ }
+}
+
+
+
+void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq)
+{
+ int nSlot = rReq.GetSlot();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ BOOL bArgs = pArgs != 0 && pArgs->Count() > 0;
+ int bGrow = FALSE;
+ SwWrtShell& rWrtSh = GetShell();
+ SwTxtFmtColl* pColl = 0;
+ // nur gesetzt, wenn gesamter Absatz selektiert ist und AutoUpdateFmt gesetzt ist
+ if(rWrtSh.HasSelection() &&
+ rWrtSh.IsSelFullPara())
+ {
+ pColl = rWrtSh.GetCurTxtFmtColl();
+ if(pColl && !pColl->IsAutoUpdateFmt())
+ pColl = 0;
+ }
+ USHORT nWhich = GetPool().GetWhich(nSlot);
+ switch ( nSlot )
+ {
+ case FN_TXTATR_INET:
+ // Sonderbehandlung der PoolId des SwFmtInetFmt
+ if(bArgs)
+ {
+ const SfxPoolItem& rItem = pArgs->Get(nWhich );
+
+ SwFmtINetFmt aINetFmt((const SwFmtINetFmt&)rItem);
+ if( USHRT_MAX == aINetFmt.GetVisitedFmtId() )
+ {
+ aINetFmt.SetVisitedFmtId(
+ rWrtSh.GetPoolId( aINetFmt.GetVisitedFmt(), GET_POOLID_CHRFMT));
+ }
+ if( USHRT_MAX == aINetFmt.GetINetFmtId() )
+ {
+ aINetFmt.SetINetFmtId(
+ rWrtSh.GetPoolId( aINetFmt.GetINetFmt(), GET_POOLID_CHRFMT));
+ }
+
+
+ if ( pColl )
+ pColl->SetAttr( aINetFmt );
+ else rWrtSh.SetAttr( aINetFmt );
+ }
+ break;
+ case SID_ATTR_CHAR_WORDLINEMODE:
+ case SID_ATTR_CHAR_CASEMAP:
+ case SID_ATTR_CHAR_LANGUAGE:
+ case SID_ATTR_CHAR_KERNING:
+ if( bArgs )
+ {
+ const SfxPoolItem& rItem = pArgs->Get(nWhich );
+ if ( pColl ) pColl->SetAttr( rItem );
+ else rWrtSh.SetAttr( rItem );
+ }
+ break;
+ case FN_GROW_FONT_SIZE:
+ bGrow = TRUE;
+ // kein break !!
+ case FN_SHRINK_FONT_SIZE:
+ {
+ SfxItemSet aSet( GetPool(), RES_CHRATR_FONTSIZE, RES_CHRATR_FONTSIZE);
+ rWrtSh.GetAttr( aSet );
+ SvxFontHeightItem aSize( (const SvxFontHeightItem&)
+ aSet.Get(RES_CHRATR_FONTSIZE) );
+
+ SwTwips lSize = (SwTwips) aSize.GetHeight();
+
+ if (bGrow)
+ {
+ if( lSize == lFontMaxSz )
+ break; // das wars, hoeher gehts nicht
+ if( ( lSize += lFontInc ) > lFontMaxSz )
+ lSize = lFontMaxSz;
+ }
+ else
+ {
+ if( 4 == lSize )
+ break;
+ if( ( lSize -= lFontInc ) < 4 )
+ lSize = 4;
+ }
+ aSize.SetHeight( lSize );
+ aSet.Put( aSize );
+ if (pColl) pColl->SetAttr(aSet);
+ else rWrtSh.SetAttr( aSet );
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+}
+
+
+
+#ifdef CFRONT
+
+void lcl_SetAdjust(SvxAdjust eAdjst, SfxItemSet& rSet)
+{
+ rSet.Put(SvxAdjustItem(eAdjst,RES_PARATR_ADJUST ));
+}
+
+
+
+void lcl_SetLineSpace(BYTE ePropL,SfxItemSet& rSet)
+{
+ SvxLineSpacingItem aLineSpacing(ePropL, RES_PARATR_LINESPACING );
+ aLineSpacing.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO;
+ if( 100 == ePropL )
+ aLineSpacing.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF;
+ else
+ aLineSpacing.SetPropLineSpace(ePropL);
+ rSet.Put( aLineSpacing );
+}
+
+
+
+void SwTextShell::ExecParaAttr(SfxRequest &rReq)
+{
+ // gleiche beide Attribute holen, ist nicht teuerer !!
+ SfxItemSet aSet( GetPool(), RES_PARATR_LINESPACING, RES_PARATR_ADJUST );
+
+ switch (rReq.GetSlot())
+ {
+ case FN_SET_LEFT_PARA: lcl_SetAdjust(ADJLEFT,aSet); break;
+ case FN_SET_RIGHT_PARA: lcl_SetAdjust(ADJRIGHT,aSet); break;
+ case FN_SET_CENTER_PARA: lcl_SetAdjust(ADJCENTER,aSet); break;
+ case SID_ATTR_PARA_ADJUST_BLOCK:lcl_SetAdjust(ADJBLOCK,aSet); break;
+
+ case FN_SET_LINE_SPACE_1: lcl_SetLineSpace(100,aSet); break;
+ case FN_SET_LINE_SPACE_15: lcl_SetLineSpace(150,aSet); break;
+ case FN_SET_LINE_SPACE_2: lcl_SetLineSpace(200,aSet); break;
+
+ default:
+ DBG_ERROR("SwTextShell::ExecParaAttr falscher Dispatcher");
+ return;
+ }
+ SwWrtShell& rWrtSh = GetShell();
+ SwTxtFmtColl* pColl = rWrtSh.GetCurTxtFmtColl();
+ if(pColl && pColl->IsAutoUpdateFmt())
+ {
+ rWrtSh.AutoUpdatePara(pColl, *pSet);
+ }
+ else
+ rWrtSh.SetAttr( aSet );
+}
+
+#else
+
+
+
+void SwTextShell::ExecParaAttr(SfxRequest &rReq)
+{
+ SvxAdjust eAdjst;
+ BYTE ePropL;
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ // gleich beide Attribute holen, ist nicht teuerer !!
+ SfxItemSet aSet( GetPool(), RES_PARATR_LINESPACING, RES_PARATR_ADJUST );
+
+ USHORT nSlot = rReq.GetSlot();
+ switch (nSlot)
+ {
+ case SID_ATTR_PARA_ADJUST:
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState( RES_PARATR_ADJUST) )
+ {
+ eAdjst = ((const SvxAdjustItem&)pArgs->Get(
+ RES_PARATR_ADJUST)).GetAdjust();
+ goto SET_ADJUST;
+ }
+ break;
+ case SID_ATTR_PARA_ADJUST_LEFT: eAdjst = SVX_ADJUST_LEFT; goto SET_ADJUST;
+ case SID_ATTR_PARA_ADJUST_RIGHT: eAdjst = SVX_ADJUST_RIGHT; goto SET_ADJUST;
+ case SID_ATTR_PARA_ADJUST_CENTER: eAdjst = SVX_ADJUST_CENTER; goto SET_ADJUST;
+ case SID_ATTR_PARA_ADJUST_BLOCK: eAdjst = SVX_ADJUST_BLOCK; goto SET_ADJUST;
+SET_ADJUST:
+ {
+ aSet.Put(SvxAdjustItem(eAdjst,RES_PARATR_ADJUST ));
+ }
+ break;
+
+ case SID_ATTR_PARA_LINESPACE:
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState( GetPool().GetWhich(nSlot) ))
+ {
+ SvxLineSpacingItem aLineSpace = (const SvxLineSpacingItem&)pArgs->Get(
+ GetPool().GetWhich(nSlot));
+ aSet.Put( aLineSpace );
+ }
+ break;
+ case SID_ATTR_PARA_LINESPACE_10: ePropL = 100; goto SET_LINESPACE;
+ case SID_ATTR_PARA_LINESPACE_15: ePropL = 150; goto SET_LINESPACE;
+ case SID_ATTR_PARA_LINESPACE_20: ePropL = 200; goto SET_LINESPACE;
+
+SET_LINESPACE:
+ {
+
+ SvxLineSpacingItem aLineSpacing(ePropL, RES_PARATR_LINESPACING );
+ aLineSpacing.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO;
+ if( 100 == ePropL )
+ aLineSpacing.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF;
+ else
+ aLineSpacing.SetPropLineSpace(ePropL);
+ aSet.Put( aLineSpacing );
+ }
+ break;
+
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+ SwWrtShell& rWrtSh = GetShell();
+ SwTxtFmtColl* pColl = rWrtSh.GetCurTxtFmtColl();
+ if(pColl && pColl->IsAutoUpdateFmt())
+ {
+ rWrtSh.AutoUpdatePara(pColl, aSet);
+ }
+ else
+ rWrtSh.SetAttr( aSet );
+}
+
+#endif
+
+
+
+void SwTextShell::ExecParaAttrArgs(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ const SfxPoolItem *pItem = 0;
+
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState(GetPool().GetWhich(nSlot), FALSE, &pItem);
+ switch ( nSlot )
+ {
+ case FN_FORMAT_DROPCAPS:
+ {
+ if(pItem)
+ rSh.SetAttr(*pItem);
+ else
+ {
+ SfxItemSet aSet(GetPool(), RES_PARATR_DROP, RES_PARATR_DROP,
+ HINT_END, HINT_END);
+ rSh.GetAttr(aSet);
+ SwDropCapsDlg *pDlg = new SwDropCapsDlg(GetView().GetWindow(), aSet);
+ if (pDlg->Execute() == RET_OK)
+ {
+ rSh.StartAction();
+ rSh.StartUndo( UNDO_START );
+ if ( SFX_ITEM_SET == aSet.GetItemState(HINT_END,FALSE,&pItem) )
+ {
+ if ( ((SfxStringItem*)pItem)->GetValue().Len() )
+ rSh.ReplaceDropTxt(((SfxStringItem*)pItem)->GetValue());
+ }
+ rSh.SetAttr(*pDlg->GetOutputItemSet());
+ rSh.StartUndo( UNDO_END );
+ rSh.EndAction();
+ }
+ delete pDlg;
+ }
+ }
+ break;
+ case SID_ATTR_PARA_PAGEBREAK:
+ if(pItem)
+ {
+ rSh.SetAttr( *pItem );
+ }
+ break;
+ case SID_ATTR_PARA_MODEL:
+ {
+ if(pItem)
+ {
+ SfxItemSet aCoreSet( GetPool(),
+ RES_PAGEDESC, RES_PAGEDESC,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_MODEL, 0);
+ aCoreSet.Put(*pItem);
+ SfxToSwPageDescAttr( rSh, aCoreSet);
+ rSh.SetAttr(aCoreSet);
+ }
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+}
+
+
+
+void SwTextShell::GetAttrState(SfxItemSet &rSet)
+{
+ SwWrtShell &rSh = GetShell();
+ SfxItemPool& rPool = GetPool();
+ SfxItemSet aCoreSet(rPool, aTxtFmtCollSetRange);
+ rSh.GetAttr(aCoreSet); // *alle* Textattribute von der Core erfragen
+
+ SfxWhichIter aIter(rSet);
+ register USHORT nSlot = aIter.FirstWhich();
+ register int bFlag;
+ SfxBoolItem aFlagItem;
+ const SfxPoolItem* pItem = 0;
+ int eAdjust = -1; // Illegaler Wert, um DONTCARE zu erkennen
+ SfxItemState eState = aCoreSet.GetItemState(RES_PARATR_ADJUST, FALSE, &pItem);
+
+ if( SFX_ITEM_DEFAULT == eState )
+ pItem = &rPool.GetDefaultItem(RES_PARATR_ADJUST);
+ if( SFX_ITEM_DEFAULT <= eState )
+ eAdjust = (int)(( SvxAdjustItem* ) pItem)->GetAdjust();
+
+ short nEsc = 0;
+ eState = aCoreSet.GetItemState(RES_CHRATR_ESCAPEMENT, FALSE, &pItem);
+ if( SFX_ITEM_DEFAULT == eState )
+ pItem = &rPool.GetDefaultItem(RES_CHRATR_ESCAPEMENT);
+ if( eState >= SFX_ITEM_DEFAULT )
+ nEsc = ((SvxEscapementItem* )pItem)->GetEsc();
+
+ USHORT nLineSpace = 0;
+ eState = aCoreSet.GetItemState(RES_PARATR_LINESPACING, FALSE, &pItem);
+ if( SFX_ITEM_DEFAULT == eState )
+ pItem = &rPool.GetDefaultItem(RES_PARATR_LINESPACING);
+ if( SFX_ITEM_DEFAULT <= eState &&
+ ((SvxLineSpacingItem* )pItem)->GetLineSpaceRule() == SVX_LINE_SPACE_AUTO )
+ {
+ if(SVX_INTER_LINE_SPACE_OFF ==
+ ((SvxLineSpacingItem* )pItem)->GetInterLineSpaceRule())
+ nLineSpace = 100;
+ else
+ nLineSpace = ((SvxLineSpacingItem* )pItem)->GetPropLineSpace();
+ }
+
+ while (nSlot)
+ {
+ switch(nSlot)
+ {
+ case FN_SET_SUPER_SCRIPT:
+ bFlag = 0 < nEsc;
+ break;
+ case FN_SET_SUB_SCRIPT:
+ bFlag = 0 > nEsc;
+ break;
+ case SID_ATTR_PARA_ADJUST_LEFT:
+ if (eAdjust == -1)
+ {
+ rSet.InvalidateItem( nSlot );
+ nSlot = 0;
+ }
+ else
+ bFlag = SVX_ADJUST_LEFT == eAdjust;
+ break;
+ case SID_ATTR_PARA_ADJUST_RIGHT:
+ if (eAdjust == -1)
+ {
+ rSet.InvalidateItem( nSlot );
+ nSlot = 0;
+ }
+ else
+ bFlag = SVX_ADJUST_RIGHT == eAdjust;
+ break;
+ case SID_ATTR_PARA_ADJUST_CENTER:
+ if (eAdjust == -1)
+ {
+ rSet.InvalidateItem( nSlot );
+ nSlot = 0;
+ }
+ else
+ bFlag = SVX_ADJUST_CENTER == eAdjust;
+ break;
+ case SID_ATTR_PARA_ADJUST_BLOCK:
+ {
+ if (eAdjust == -1)
+ {
+ rSet.InvalidateItem( nSlot );
+ nSlot = 0;
+ }
+ else
+ {
+ bFlag = SVX_ADJUST_BLOCK == eAdjust;
+ USHORT nHtmlMode = GetHtmlMode(rSh.GetView().GetDocShell());
+ if((nHtmlMode & HTMLMODE_ON) && !(nHtmlMode & (HTMLMODE_FULL_STYLES|HTMLMODE_FIRSTLINE) ))
+ {
+ rSet.DisableItem( nSlot );
+ nSlot = 0;
+ }
+ }
+ }
+ break;
+ case SID_ATTR_PARA_LINESPACE_10:
+ bFlag = nLineSpace == 100;
+ break;
+ case SID_ATTR_PARA_LINESPACE_15:
+ bFlag = nLineSpace == 150;
+ break;
+ case SID_ATTR_PARA_LINESPACE_20:
+ bFlag = nLineSpace == 200;
+ break;
+ case FN_GROW_FONT_SIZE:
+ case FN_SHRINK_FONT_SIZE:
+ {
+ SfxItemState eState = aCoreSet.GetItemState( RES_CHRATR_FONTSIZE );
+ if( eState == SFX_ITEM_DONTCARE )
+ rSet.DisableItem( nSlot );
+ nSlot = 0;
+ }
+ break;
+ case FN_UNDERLINE_DOUBLE:
+ {
+ eState = aCoreSet.GetItemState(RES_CHRATR_UNDERLINE);
+ if( eState >= SFX_ITEM_DEFAULT )
+ {
+ FontUnderline eUnderline = ((const SvxUnderlineItem&)
+ aCoreSet.Get(RES_CHRATR_UNDERLINE)).GetUnderline();
+ rSet.Put(SfxBoolItem(nSlot, eUnderline == UNDERLINE_DOUBLE));
+ }
+ else
+ rSet.InvalidateItem(nSlot);
+ nSlot = 0;
+ }
+ break;
+ case SID_ATTR_PARA_ADJUST:
+ if (eAdjust == -1)
+ rSet.InvalidateItem( nSlot );
+ else
+ rSet.Put(SvxAdjustItem((SvxAdjust)eAdjust, SID_ATTR_PARA_ADJUST ));
+ nSlot = 0;
+ break;
+ case SID_ATTR_CHAR_CASEMAP:
+ case SID_ATTR_CHAR_LANGUAGE:
+ case SID_ATTR_CHAR_KERNING:
+ case SID_ATTR_PARA_HYPHENZONE:
+ case SID_ATTR_PARA_KEEP:
+ case SID_ATTR_PARA_WIDOWS:
+ case SID_ATTR_PARA_ORPHANS:
+ case RES_PARATR_DROP:
+ {
+#ifdef DEBUG
+ const SfxPoolItem& rItem = aCoreSet.Get(GetPool().GetWhich(nSlot), TRUE);
+ rSet.Put(rItem);
+#else
+ rSet.Put(aCoreSet.Get( GetPool().GetWhich(nSlot), TRUE));
+#endif
+ nSlot = 0;
+ }
+ break;
+ case SID_ATTR_PARA_MODEL:
+ {
+ SfxItemSet aTemp(GetPool(),
+ RES_PAGEDESC,RES_PAGEDESC,
+ SID_ATTR_PARA_MODEL,SID_ATTR_PARA_MODEL,
+ 0L);
+ aTemp.Put(aCoreSet);
+ ::SwToSfxPageDescAttr(aTemp);
+ rSet.Put(aTemp.Get(SID_ATTR_PARA_MODEL));
+ nSlot = 0;
+ }
+ break;
+ case RES_TXTATR_INETFMT:
+ {
+ SfxItemSet aSet(GetPool(), RES_TXTATR_INETFMT, RES_TXTATR_INETFMT);
+ rSh.GetAttr(aSet);
+#ifdef DEBUG
+ const SfxPoolItem& rItem = aSet.Get(RES_TXTATR_INETFMT, TRUE);
+ rSet.Put(rItem);
+#else
+ rSet.Put(aSet.Get( RES_TXTATR_INETFMT, TRUE));
+#endif
+ nSlot = 0;
+ }
+ break;
+ default:
+ // Nichts tun
+ nSlot = 0;
+ break;
+
+ }
+ if( nSlot )
+ {
+ aFlagItem.SetWhich( nSlot );
+ aFlagItem.SetValue( bFlag );
+ rSet.Put( aFlagItem );
+ }
+ nSlot = aIter.NextWhich();
+ }
+
+ rSet.Put(aCoreSet,FALSE);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.122 2000/09/18 16:06:07 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.121 2000/09/07 15:59:30 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.120 2000/08/31 11:32:12 jp
+ add missing include
+
+ Revision 1.119 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.118 2000/05/10 11:53:02 os
+ Basic API removed
+
+ Revision 1.117 2000/02/11 14:58:08 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.116 1999/01/04 13:29:16 OS
+ #60575# Shrink/GrowFontSize: keinen falschen Status liefern
+
+
+ Rev 1.115 04 Jan 1999 14:29:16 OS
+ #60575# Shrink/GrowFontSize: keinen falschen Status liefern
+
+ Rev 1.114 29 Nov 1997 15:54:02 MA
+ includes
+
+ Rev 1.113 24 Nov 1997 09:47:40 MA
+ includes
+
+ Rev 1.112 03 Nov 1997 13:55:52 MA
+ precomp entfernt
+
+ Rev 1.111 22 Oct 1997 12:31:56 OS
+ StateMethod fuer SID_ATTR_PARA_MODEL #44910#
+
+ Rev 1.110 04 Sep 1997 17:12:04 MA
+ includes
+
+ Rev 1.109 15 Aug 1997 11:48:40 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.108 11 Aug 1997 10:06:46 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.107 25 Jun 1997 13:49:50 OS
+ Ids des SwFmtINetFmt korrigieren #40977#
+
+ Rev 1.106 17 Jun 1997 16:11:58 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.105 28 May 1997 15:06:32 OM
+ #40067# DontCare-State fuer Absatzausrichtung beruecksichtigen
+
+ Rev 1.104 24 Mar 1997 15:51:22 OS
+ Blocksatzerweiterung fuer Html
+
+ Rev 1.103 10 Mar 1997 12:01:20 NF
+ OS2-Anpassung ...
+
+ Rev 1.102 07 Mar 1997 08:09:38 OS
+ AutoUpdate fuer Vorlagen: harte Attribute loeschen
+
+ Rev 1.101 06 Mar 1997 16:46:30 OS
+ AutoUpdate fuer Absatz- und Rahmenvorlagen
+
+ Rev 1.100 05 Mar 1997 21:00:24 HJS
+ muss 357
+
+ Rev 1.99 19 Feb 1997 19:10:14 MA
+ fix: DropCap, Text per Item
+
+ Rev 1.98 27 Jan 1997 16:30:38 OS
+ HtmlMode entfernt
+
+ Rev 1.97 16 Dec 1996 19:10:38 HJS
+ includes
+
+ Rev 1.96 14 Dec 1996 14:48:46 OS
+ kein Blocksatz im HTML-Mode
+
+ Rev 1.95 22 Nov 1996 16:24:46 NF
+ zwei identische case-bl”cke in einer switch-anweisung -> doppelten entfernt..
+
+ Rev 1.94 22 Nov 1996 14:53:34 OS
+ FN_SET_JUSTIFY_PARA -> SID_ATTR_PARA_ADJUST_BLOCK
+
+ Rev 1.93 14 Nov 1996 19:17:56 OS
+ Umstellung SlotIds
+
+ Rev 1.92 24 Sep 1996 06:58:14 OS
+ Hoch-/Tiefstellung auf automatisch
+
+ Rev 1.91 09 Sep 1996 15:11:10 OS
+ SID_APPLY_TEMPLATE mit WrtShell
+
+ Rev 1.90 28 Aug 1996 15:55:16 OS
+ includes
+
+ Rev 1.89 15 Aug 1996 18:17:16 OS
+ URL als Attribut - auch fuer die API
+
+ Rev 1.88 26 Jun 1996 15:20:54 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.87 25 Jun 1996 19:52:10 HJS
+ includes
+
+ Rev 1.86 22 Mar 1996 15:34:38 TRI
+ sfxiiter.hxx included
+
+ Rev 1.85 21 Mar 1996 11:58:26 MA
+ Umstellung SV311
+
+ Rev 1.84 20 Feb 1996 17:02:56 JP
+ Umbau SfxItemPool -> SwAttrPool
+
+ Rev 1.83 15 Feb 1996 18:04:58 OS
+ UnderlineDouble und Sub/Superscript arbeiten mit BoolItems
+
+ Rev 1.82 19 Jan 1996 14:39:54 OS
+ Cast fuer SvxLanguageItem nicht noetig
+
+ Rev 1.81 20 Dec 1995 15:50:26 OS
+ Status fuer Dropcaps gerichtet
+
+ Rev 1.80 14 Dec 1995 17:25:52 OS
+ Standard-Adjust auf LEFT
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/txtcrsr.cxx b/sw/source/ui/shells/txtcrsr.cxx
new file mode 100644
index 000000000000..3bf250f41b50
--- /dev/null
+++ b/sw/source/ui/shells/txtcrsr.cxx
@@ -0,0 +1,412 @@
+/*************************************************************************
+ *
+ * $RCSfile: txtcrsr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef __SBX_SBXVARIABLE_HXX //autogen
+#include <svtools/sbxvar.hxx>
+#endif
+#ifndef _ARGS_HXX //autogen
+#include <svtools/args.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "cmdid.h"
+#include "wrtsh.hxx"
+#include "globals.hrc"
+#include "textsh.hxx"
+#include "num.hxx"
+#include "bookmrk.hxx"
+#include "edtwin.hxx"
+#include "globals.h"
+
+
+
+
+
+void SwTextShell::ExecBasicMove(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ GetView().GetEditWin().FlushInBuffer( &rSh );
+
+ USHORT nSlot = rReq.GetSlot();
+ switch(nSlot)
+ {
+ case FN_CHAR_LEFT_SEL:
+ case FN_CHAR_LEFT: rSh.Left ( FN_CHAR_LEFT_SEL == nSlot, 1 ); break;
+ case FN_CHAR_RIGHT_SEL:
+ case FN_CHAR_RIGHT: rSh.Right( FN_CHAR_RIGHT_SEL == nSlot, 1 ); break;
+ case FN_LINE_UP_SEL:
+ case FN_LINE_UP: rSh.Up ( FN_LINE_UP_SEL == nSlot, 1 ); break;
+ case FN_LINE_DOWN_SEL:
+ case FN_LINE_DOWN: rSh.Down ( FN_LINE_DOWN_SEL == nSlot, 1 ); break;
+ default: ASSERT(FALSE, falscher Dispatcher); return;
+ }
+}
+
+void SwTextShell::ExecMove(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ GetView().GetEditWin().FlushInBuffer( &rSh );
+
+ USHORT nSlot = rReq.GetSlot();
+ BOOL bRet = FALSE;
+ switch ( nSlot )
+ {
+ case FN_START_OF_LINE_SEL:
+ case FN_START_OF_LINE: bRet = rSh.LeftMargin ( FN_START_OF_LINE_SEL == nSlot );
+ break;
+
+ case FN_END_OF_LINE_SEL:
+ case FN_END_OF_LINE: bRet = rSh.RightMargin( FN_END_OF_LINE_SEL == nSlot );
+ break;
+
+ case FN_START_OF_DOCUMENT_SEL:
+ case FN_START_OF_DOCUMENT: bRet = rSh.SttDoc ( FN_START_OF_DOCUMENT_SEL == nSlot);
+ break;
+
+ case FN_END_OF_DOCUMENT_SEL:
+ case FN_END_OF_DOCUMENT: bRet = rSh.EndDoc( FN_END_OF_DOCUMENT_SEL == nSlot );
+ break;
+
+ case FN_SELECT_WORD: rSh.SelNearestWrd(); break;
+
+ case SID_SELECTALL: rSh.SelAll(); break;
+ default: ASSERT(FALSE, falscher Dispatcher); return;
+ }
+}
+
+void SwTextShell::ExecMovePage(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ GetView().GetEditWin().FlushInBuffer( &rSh );
+
+ USHORT nSlot = rReq.GetSlot();
+ switch( nSlot )
+ {
+ case FN_START_OF_NEXT_PAGE_SEL :
+ case FN_START_OF_NEXT_PAGE: rSh.SttNxtPg( FN_START_OF_NEXT_PAGE_SEL == nSlot ); break;
+
+ case FN_END_OF_NEXT_PAGE_SEL:
+ case FN_END_OF_NEXT_PAGE: rSh.EndNxtPg( FN_END_OF_NEXT_PAGE_SEL == nSlot ); break;
+
+ case FN_START_OF_PREV_PAGE_SEL:
+ case FN_START_OF_PREV_PAGE: rSh.SttPrvPg( FN_START_OF_PREV_PAGE_SEL == nSlot ); break;
+
+ case FN_END_OF_PREV_PAGE_SEL:
+ case FN_END_OF_PREV_PAGE: rSh.EndPrvPg( FN_END_OF_PREV_PAGE_SEL == nSlot ); break;
+
+ case FN_START_OF_PAGE_SEL:
+ case FN_START_OF_PAGE: rSh.SttPg ( FN_START_OF_PAGE_SEL == nSlot ); break;
+
+ case FN_END_OF_PAGE_SEL:
+ case FN_END_OF_PAGE: rSh.EndPg ( FN_END_OF_PAGE_SEL == nSlot ); break;
+ default: ASSERT(FALSE, falscher Dispatcher); return;
+ }
+}
+
+
+void SwTextShell::ExecMoveCol(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ switch ( rReq.GetSlot() )
+ {
+ case FN_START_OF_COLUMN: rSh.StartOfColumn ( FALSE ); break;
+ case FN_END_OF_COLUMN: rSh.EndOfColumn ( FALSE ); break;
+ case FN_START_OF_NEXT_COLUMN: rSh.StartOfNextColumn( FALSE ) ; break;
+ case FN_END_OF_NEXT_COLUMN: rSh.EndOfNextColumn ( FALSE ); break;
+ case FN_START_OF_PREV_COLUMN: rSh.StartOfPrevColumn( FALSE ); break;
+ case FN_END_OF_PREV_COLUMN: rSh.EndOfPrevColumn ( FALSE ); break;
+ default: ASSERT(FALSE, falscher Dispatcher); return;
+ }
+}
+
+void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ GetView().GetEditWin().FlushInBuffer( GetShellPtr() );
+
+ USHORT nSlot = rReq.GetSlot();
+ BOOL bRet = FALSE;
+ switch ( nSlot )
+ {
+ case FN_NEXT_WORD_SEL:
+ case FN_NEXT_WORD: bRet = rSh.NxtWrd( FN_NEXT_WORD_SEL == nSlot );
+ break;
+
+ case FN_START_OF_PARA_SEL:
+ case FN_START_OF_PARA: bRet = rSh.SttPara( FN_START_OF_PARA_SEL == nSlot );
+ break;
+
+ case FN_END_OF_PARA_SEL:
+ case FN_END_OF_PARA: bRet = rSh.EndPara( FN_END_OF_PARA_SEL == nSlot );
+ break;
+
+ case FN_PREV_WORD_SEL:
+ case FN_PREV_WORD: bRet = rSh.PrvWrd( FN_PREV_WORD_SEL == nSlot );
+ break;
+
+ case FN_NEXT_SENT_SEL:
+ case FN_NEXT_SENT: bRet = rSh.FwdSentence( FN_NEXT_SENT_SEL == nSlot );
+ break;
+
+ case FN_PREV_SENT_SEL:
+ case FN_PREV_SENT: bRet = rSh.BwdSentence( FN_PREV_SENT_SEL == nSlot );
+ break;
+
+ case FN_NEXT_PARA: bRet = rSh.FwdPara ( FALSE );
+ break;
+
+ case FN_PREV_PARA: bRet = rSh.BwdPara ( FALSE );
+ break;
+ default: ASSERT(FALSE, falscher Dispatcher); return;
+ }
+}
+
+void SwTextShell::ExecMoveMisc(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetShell();
+ USHORT nSlot = rReq.GetSlot();
+ BOOL bSetRetVal = TRUE, bRet = TRUE;
+ switch ( nSlot )
+ {
+ case FN_CNTNT_TO_NEXT_FRAME:
+ bRet = rSh.GotoFlyTxt();
+ break;
+ case FN_NEXT_FOOTNOTE:
+ rSh.MoveCrsr();
+ bRet = rSh.GotoNextFtnAnchor();
+ break;
+ case FN_PREV_FOOTNOTE:
+ rSh.MoveCrsr();
+ bRet = rSh.GotoPrevFtnAnchor();
+ break;
+ case FN_TO_HEADER:
+ rSh.MoveCrsr();
+ if ( FRMTYPE_HEADER & rSh.GetFrmType(0,FALSE) )
+ rSh.SttPg();
+ else
+ rSh.GotoHeaderTxt();
+ bSetRetVal = FALSE;
+ break;
+ case FN_TO_FOOTER:
+ rSh.MoveCrsr();
+ if ( FRMTYPE_FOOTER & rSh.GetFrmType(0,FALSE) )
+ rSh.EndPg();
+ else
+ rSh.GotoFooterTxt();
+ bSetRetVal = FALSE;
+ break;
+ case FN_FOOTNOTE_TO_ANCHOR:
+ rSh.MoveCrsr();
+ if ( FRMTYPE_FOOTNOTE & rSh.GetFrmType(0,FALSE) )
+ rSh.GotoFtnAnchor();
+ else
+ rSh.GotoFtnTxt();
+ bSetRetVal = FALSE;
+ break;
+ case FN_PREV_TABLE:
+ bRet = rSh.MoveTable( fnTablePrev, fnTableStart);
+ break;
+ case FN_NEXT_TABLE:
+ bRet = rSh.MoveTable(fnTableNext, fnTableStart);
+ break;
+ case FN_GOTO_NEXT_REGION :
+ bRet = rSh.MoveRegion(fnRegionNext, fnRegionStart);
+ break;
+ case FN_GOTO_PREV_REGION :
+ bRet = rSh.MoveRegion(fnRegionPrev, fnRegionStart);
+ break;
+
+ case FN_NEXT_TOXMARK:
+ bRet = rSh.GotoNxtPrvTOXMark( TRUE );
+ break;
+ case FN_PREV_TOXMARK:
+ bRet = rSh.GotoNxtPrvTOXMark( FALSE );
+ break;
+ case FN_NEXT_TBLFML:
+ bRet = rSh.GotoNxtPrvTblFormula( TRUE, FALSE );
+ break;
+ case FN_PREV_TBLFML:
+ bRet = rSh.GotoNxtPrvTblFormula( FALSE, FALSE );
+ break;
+ case FN_NEXT_TBLFML_ERR:
+ bRet = rSh.GotoNxtPrvTblFormula( TRUE, TRUE );
+ break;
+ case FN_PREV_TBLFML_ERR:
+ bRet = rSh.GotoNxtPrvTblFormula( FALSE, TRUE );
+ break;
+
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+
+ if( bSetRetVal )
+ rReq.SetReturnValue(SfxBoolItem( nSlot, bRet ));
+
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.47 2000/09/18 16:06:07 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.46 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.45 2000/05/09 14:41:35 os
+ BASIC interface partially removed
+
+ Revision 1.44 1999/04/26 11:06:12 KZ
+ #include <svtools/args.hxx> eingefuegt
+
+
+ Rev 1.43 26 Apr 1999 13:06:12 KZ
+ #include <svtools/args.hxx> eingefuegt
+
+ Rev 1.42 14 Jan 1999 15:50:26 JP
+ Bug #60794#: Fehlererkennung beim Tabellenrechnen und anspringen von Formeln
+
+ Rev 1.41 27 Nov 1998 14:56:08 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.40 17 Aug 1998 16:09:12 OS
+ GPF nach Shellwechsel waehrend Recording #55041#
+
+ Rev 1.39 12 Feb 1998 20:12:44 JP
+ Left-/RightMargin: zus. Flag fuer BasicCall
+
+ Rev 1.38 24 Nov 1997 09:47:54 MA
+ includes
+
+ Rev 1.37 03 Nov 1997 13:55:54 MA
+ precomp entfernt
+
+ Rev 1.36 04 Sep 1997 17:12:04 MA
+ includes
+
+ Rev 1.35 07 Apr 1997 17:48:12 MH
+ chg: header
+
+ Rev 1.34 06 Mar 1997 12:28:12 JP
+ Left/Right/Up/Down: bei API-Calls in ReadOnly Docs normale verhalten
+
+ Rev 1.33 23 Feb 1997 22:27:04 OS
+ diverse Move-Slots mit BOOL - return
+
+ Rev 1.32 20 Feb 1997 17:17:38 OS
+ JumpToPrev/NextRegion
+
+ Rev 1.31 07 Feb 1997 14:06:06 OS
+ GoLeft/Right/Up/Down ueber for-Schleife aufrufen #35596#
+
+ Rev 1.30 29 Aug 1996 11:40:04 OS
+ Next/PrevFootnote liefern BOOL
+
+ Rev 1.29 28 Aug 1996 15:54:56 OS
+ includes
+
+ Rev 1.28 13 Feb 1996 09:51:28 OS
+ JumpToPrev/NextTable/Frame erhalten return type BOOL
+
+ Rev 1.27 24 Jan 1996 15:18:36 OS
+ Selection-Param ist Bool und nicht Int16, Bug #23549#
+
+ Rev 1.26 24 Nov 1995 16:59:36 OM
+ PCH->PRECOMPILED
+
+ Rev 1.25 23 Nov 1995 19:52:02 OS
+ +FN_SELECT_ALL fuer PM2, +Next/PrevPara
+
+ Rev 1.24 10 Nov 1995 15:29:44 OS
+ GotoVariable/Region an die Baseshell
+
+ Rev 1.23 09 Nov 1995 17:59:54 OS
+ neue Slots fuer Grosskunden
+
+ Rev 1.22 23 Oct 1995 17:33:36 OS
+ *_SEL auf * umgeappt
+
+ Rev 1.21 22 Sep 1995 16:58:18 OS
+ Schoenheitskorrektur: GetArgs() fuellt immer pArgs!
+
+ Rev 1.20 18 Sep 1995 14:04:38 OS
+ geht wieder mit PCH
+
+ Rev 1.19 04 Sep 1995 14:13:08 HJS
+ add: #include <sbx.hxx>
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/shells/txtnum.cxx b/sw/source/ui/shells/txtnum.cxx
new file mode 100644
index 000000000000..7c22e289ab7b
--- /dev/null
+++ b/sw/source/ui/shells/txtnum.cxx
@@ -0,0 +1,439 @@
+/*************************************************************************
+ *
+ * $RCSfile: txtnum.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <hintids.hxx>
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_NUMITEM_HXX //autogen
+#include <svx/numitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen wg. SvxBrushItem
+#include <svx/brshitem.hxx>
+#endif
+
+#include "cmdid.h"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "viewopt.hxx"
+#include "wdocsh.hxx"
+#include "textsh.hxx"
+#include "uiitems.hxx"
+#include "num.hxx"
+
+void SwTextShell::ExecEnterNum(SfxRequest &rReq)
+{
+ //wg. Aufzeichnung schon vor dem evtl. Shellwechsel
+ switch(rReq.GetSlot())
+ {
+ case FN_NUM_NUMBERING_ON:
+ {
+ if(!GetShell().GetCurNumRule())
+ GetShell().NumOn();
+ else
+ GetShell().DelNumRules();
+ }
+ break;
+ case FN_NUMBER_BULLETS:
+ {
+ // per default TRUE, damit die Schleife im Dialog richtig arbeitet!
+ BOOL bHasChild = TRUE;
+ SfxItemSet aSet(GetPool(),
+ SID_HTML_MODE, SID_HTML_MODE,
+ SID_ATTR_NUMBERING_RULE, SID_PARAM_CUR_NUM_LEVEL,
+ 0 );
+ SwDocShell* pDocSh = GetView().GetDocShell();
+ BOOL bHtml = 0 != PTR_CAST(SwWebDocShell, pDocSh);
+ const SwNumRule* pCurRule = GetShell().GetCurNumRule();
+ if( pCurRule )
+ {
+ SvxNumRule aRule = pCurRule->MakeSvxNumRule();
+
+ //convert type of linked bitmaps from SVX_NUM_BITMAP to (SVX_NUM_BITMAP|LINK_TOKEN)
+ for(USHORT i = 0; i < aRule.GetLevelCount(); i++)
+ {
+ SvxNumberFormat aFmt(aRule.GetLevel(i));
+ if(SVX_NUM_BITMAP == aFmt.GetNumType())
+ {
+ const SvxBrushItem* pBrush = aFmt.GetBrush();
+ const String* pLinkStr;
+ if(pBrush &&
+ 0 != (pLinkStr = pBrush->GetGraphicLink()) &&
+ pLinkStr->Len())
+ aFmt.SetNumType(SvxExtNumType(SVX_NUM_BITMAP|LINK_TOKEN));
+ aRule.SetLevel(i, aFmt, aRule.Get(i) != 0);
+ }
+ }
+ if(bHtml)
+ aRule.SetFeatureFlag(NUM_ENABLE_EMBEDDED_BMP, FALSE);
+
+ aSet.Put(SvxNumBulletItem(aRule));
+ USHORT nLevel = GetShell().GetNumLevel( &bHasChild ) & ~NO_NUMLEVEL;
+ if( nLevel < MAXLEVEL )
+ {
+ nLevel = 1<<nLevel;
+ aSet.Put( SfxUInt16Item( SID_PARAM_CUR_NUM_LEVEL, nLevel ));
+ }
+ }
+ else
+ {
+ SwNumRule aRule( GetShell().GetUniqueNumRuleName() );
+ SvxNumRule aSvxRule = aRule.MakeSvxNumRule();
+ if(bHtml)
+ {
+ for( BYTE n = 1; n < MAXLEVEL; ++n )
+ {
+ SvxNumberFormat aFmt( aSvxRule.GetLevel( n ) );
+ // 1/2" fuer HTML
+ aFmt.SetLSpace(720);
+ aFmt.SetAbsLSpace(n * 720);
+ aSvxRule.SetLevel( n, aFmt, FALSE );
+ }
+ aSvxRule.SetFeatureFlag(NUM_ENABLE_EMBEDDED_BMP, FALSE);
+ }
+ aSet.Put(SvxNumBulletItem(aSvxRule));
+ }
+
+ aSet.Put( SfxBoolItem( SID_PARAM_CHILD_LEVELS, bHasChild ));
+ aSet.Put( SfxBoolItem( SID_PARAM_NUM_PRESET,FALSE ));
+
+ // vor dem Dialog wird der HtmlMode an der DocShell versenkt
+ pDocSh->PutItem(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(pDocSh)));
+
+ SwSvxNumBulletTabDialog* pDlg = new SwSvxNumBulletTabDialog(
+ GetView().GetWindow(), &aSet, GetShell() );
+
+ USHORT nRet = pDlg->Execute();
+ if(RET_OK == nRet )
+ {
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pDlg->GetOutputItemSet()->GetItemState(
+ SID_ATTR_NUMBERING_RULE, FALSE, &pItem ))
+ {
+ SvxNumRule* pSetRule = ((SvxNumBulletItem*)pItem)->GetNumRule();
+ pSetRule->UnLinkGraphics();
+ SwNumRule aSetRule( pCurRule
+ ? pCurRule->GetName()
+ : GetShell().GetUniqueNumRuleName());
+ aSetRule.SetSvxRule( *pSetRule, GetShell().GetDoc());
+ aSetRule.SetAutoRule( TRUE );
+ GetShell().SetCurNumRule( aSetRule );
+ }
+ // wenn der Dialog mit OK verlassen wurde, aber nichts ausgewaehlt
+ // wurde dann muss die Numerierung zumindest eingeschaltet werden,
+ // wenn sie das noch nicht ist
+ else if( !pCurRule &&
+ SFX_ITEM_SET == aSet.GetItemState(
+ SID_ATTR_NUMBERING_RULE, FALSE, &pItem ))
+ {
+ SvxNumRule* pSetRule = ((SvxNumBulletItem*)pItem)->GetNumRule();
+ SwNumRule aSetRule(GetShell().GetUniqueNumRuleName());
+ aSetRule.SetSvxRule(*pSetRule, GetShell().GetDoc());
+ aSetRule.SetAutoRule( TRUE );
+ GetShell().SetCurNumRule( aSetRule );
+ }
+ }
+ else if(RET_USER == nRet)
+ GetShell().DelNumRules();
+
+ delete pDlg;
+/*
+#else
+ SfxItemSet aSet(GetPool(),
+ SID_HTML_MODE, SID_HTML_MODE,
+ FN_PARAM_ACT_NUMBER, FN_PARAM_ACT_NUMBER,
+ FN_PARAM_CHILD_LEVELS, FN_PARAM_CHILD_LEVELS,
+ FN_PARAM_NUM_PRESET, FN_PARAM_NUM_PRESET,
+ FN_PARAM_ACT_NUMLEVEL, FN_PARAM_ACT_NUMLEVEL,
+ 0 );
+
+ // per default TRUE, damit die Schleife im num.cxx richtig arbeitet!
+ BOOL bHasChild = TRUE;
+ const SwNumRule* pCurRule = GetShell().GetCurNumRule();
+ if( pCurRule )
+ {
+ aSet.Put( SwUINumRuleItem( *pCurRule ));
+ USHORT nLevel = GetShell().GetNumLevel( &bHasChild ) & ~NO_NUMLEVEL;
+ if( nLevel < MAXLEVEL )
+ {
+ nLevel = 1<<nLevel;
+ aSet.Put( SfxUInt16Item( FN_PARAM_ACT_NUMLEVEL, nLevel ));
+ }
+ }
+ else
+ {
+ SwNumRule aRule( GetShell().GetUniqueNumRuleName() );
+ SwDocShell* pDocSh = GetView().GetDocShell();
+ BOOL bHtml = 0 != PTR_CAST(SwWebDocShell, pDocSh);
+ for( BYTE n = 0; n < MAXLEVEL; ++n )
+ {
+ SwNumFmt aFmt( aRule.Get( n ) );
+ if(bHtml && n)
+ {
+ // 1/2" fuer HTML
+ aFmt.SetLSpace(720);
+ aFmt.SetAbsLSpace(n * 720);
+ }
+ aRule.Set( n, aFmt );
+ }
+ aSet.Put( SwUINumRuleItem( aRule ));
+ }
+
+ aSet.Put( SfxBoolItem( FN_PARAM_CHILD_LEVELS, bHasChild ));
+ aSet.Put( SfxBoolItem( FN_PARAM_NUM_PRESET,FALSE ));
+
+ SwNumBulletTabDialog* pDlg = new SwNumBulletTabDialog(
+ GetView().GetWindow(), &aSet, GetShell() );
+
+ if(RET_OK == pDlg->Execute() )
+ {
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pDlg->GetOutputItemSet()->GetItemState(
+ FN_PARAM_ACT_NUMBER, FALSE, &pItem ))
+ {
+ SwNumRule* pSetRule = ((SwUINumRuleItem*)pItem)->GetNumRule();
+ pSetRule->SetAutoRule( TRUE );
+ GetShell().SetCurNumRule( *pSetRule );
+ }
+ else
+ GetShell().DelNumRules();
+ }
+
+ delete pDlg;
+#endif
+*/
+ }
+ break;
+ case FN_NUM_BULLET_ON:
+ {
+ if ( !GetShell().GetCurNumRule() )
+ GetShell().BulletOn();
+ else
+ GetShell().DelNumRules();
+
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher Dispatcher);
+ return;
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.45 2000/09/18 16:06:07 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.44 2000/05/30 12:35:15 os
+ #74997# fill SvxNumRule with invalid levels
+
+ Revision 1.43 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.42 2000/02/11 14:58:14 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.41 1999/08/19 14:25:46 OS
+ #67374# embedded graphics in numberings
+
+
+ Rev 1.40 19 Aug 1999 16:25:46 OS
+ #67374# embedded graphics in numberings
+
+ Rev 1.39 04 Jun 1999 13:50:58 OS
+ #64956# keine vollst. Numerierungen im HTML
+
+ Rev 1.38 15 Mar 1999 23:28:54 JP
+ Task #63049#: Numerierung mit rel. Einzuegen
+
+ Rev 1.37 06 Jan 1999 15:53:08 OS
+ #58263# Numerierung bei OK ohne Aenderungen mindestens einschalten
+
+ Rev 1.36 02 Dec 1998 09:38:54 OS
+ #58263# Entfernen-Button fuer Numerierungen
+
+ Rev 1.35 17 Nov 1998 10:59:00 OS
+ #58263# Numerierungs-Tabseiten aus dem Svx
+
+ Rev 1.34 10 Nov 1998 15:24:38 OS
+ #59238# neue Defaults fuer HTML-Numerierung
+
+ Rev 1.33 06 Nov 1998 14:42:12 OS
+ #57903# NumOff kann weg
+
+ Rev 1.32 03 Nov 1998 07:26:16 OS
+ #58263# Numerierungsdialog in den Svx
+
+ Rev 1.31 17 Aug 1998 16:09:10 OS
+ GPF nach Shellwechsel waehrend Recording #55041#
+
+ Rev 1.30 18 May 1998 12:13:46 OS
+ Multiselektion im Numerierungsdialog
+
+ Rev 1.29 24 Mar 1998 13:46:44 JP
+ SwUINumRule: CTORen mit Name oder NumRule, nicht mehr mit NumRulePointer
+
+ Rev 1.28 12 Mar 1998 13:08:08 OS
+ Numerierungsbutton nicht mehr gecheckt und nicht disabled
+
+ Rev 1.27 18 Feb 1998 19:58:44 JP
+ wenn ueber den Dialog kommt, ist es immer eine AutoRule
+
+ Rev 1.26 08 Dec 1997 16:08:06 OS
+ benannte Numerierungen entfernt
+
+ Rev 1.25 03 Dec 1997 17:31:38 OS
+ Numerierung und Bullets ueber Button nur noch einschalten
+
+ Rev 1.24 24 Nov 1997 09:47:56 MA
+ includes
+
+ Rev 1.23 17 Nov 1997 10:21:08 JP
+ Umstellung Numerierung
+
+ Rev 1.22 03 Nov 1997 13:55:44 MA
+ precomp entfernt
+
+ Rev 1.21 06 Aug 1997 11:07:54 MH
+ chg: header
+
+ Rev 1.20 26 Jun 1997 16:15:46 OS
+ Numerierung per Controller anwenden
+
+ Rev 1.19 05 Jun 1997 13:11:52 OS
+ Num./Aufzaehlungsbuttons koennen Numerierung auch ausschalten
+
+ Rev 1.18 30 May 1997 13:52:04 OS
+ Preset fuer Numerierungsdialog
+
+ Rev 1.17 07 Apr 1997 17:48:34 MH
+ chg: header
+
+ Rev 1.16 22 Feb 1997 20:52:26 OS
+ ohne Numerierung muss bHasChild auf TRUE gesetzt werden, sonst kommt der Dialog durcheinander
+
+ Rev 1.15 20 Feb 1997 17:19:04 OS
+ Numerierung: Flag fuer benutzte Ebenen auswerten
+
+ Rev 1.14 18 Feb 1997 08:54:12 OS
+ Numerierungsdialog: auch den Return-Wert des ModalDialogs auswerten
+
+ Rev 1.13 11 Feb 1997 11:53:32 OS
+ ItemSet vor dem Dialog fuellen
+
+ Rev 1.12 08 Feb 1997 18:00:34 OS
+ NumRule loeschen, wenn kein Item kommt, aber RET_OK
+
+ Rev 1.11 08 Feb 1997 16:01:54 OS
+ Online-Layout->Print-Layout
+
+ Rev 1.10 10 Oct 1996 13:18:26 OS
+ ItemState immer pruefen
+
+ Rev 1.9 28 Aug 1996 15:55:18 OS
+ includes
+
+ Rev 1.8 24 Nov 1995 16:59:32 OM
+ PCH->PRECOMPILED
+
+ Rev 1.7 28 Aug 1995 19:11:16 MA
+ Renovierung: IDL, Shells, Textshell-Doktrin aufgegeben
+
+ Rev 1.6 24 Aug 1995 14:33:38 MA
+ swstddlg -> svxstandarddialog
+
+ Rev 1.5 17 Feb 1995 14:20:56 MS
+ Umstellung SwView
+
+ Rev 1.4 18 Jan 1995 13:47:58 MS
+ Precomp Hd
+
+ Rev 1.3 18 Jan 1995 13:43:26 MS
+ Precomp Hd
+
+ Rev 1.2 25 Oct 1994 18:46:30 ER
+ add: PCH
+
+ Rev 1.1 06 Oct 1994 10:52:12 VB
+ Segmentierung
+
+ Rev 1.0 15 Sep 1994 15:54:16 VB
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/table/chartins.cxx b/sw/source/ui/table/chartins.cxx
new file mode 100644
index 000000000000..b8ea2b0ea03b
--- /dev/null
+++ b/sw/source/ui/table/chartins.cxx
@@ -0,0 +1,609 @@
+/*************************************************************************
+ *
+ * $RCSfile: chartins.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _CHARTINS_CXX
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SCHDLL0_HXX
+#include <sch/schdll0.hxx>
+#endif
+#ifndef _SCH_DLL_HXX //autogen
+#include <sch/schdll.hxx>
+#endif
+#ifndef _SCH_MEMCHRT_HXX
+#include <sch/memchrt.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _CHARTINS_HXX
+#include <chartins.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _SWTABLE_HXX
+#include <swtable.hxx>
+#endif
+#ifndef _TBLSEL_HXX
+#include <tblsel.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _CHARTINS_HRC
+#include <chartins.hrc>
+#endif
+
+
+
+
+SFX_IMPL_MODELESSDIALOG( SwInsertChartChild, SID_INSERT_DIAGRAM )
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: AutoPilot fuer StarChart
+------------------------------------------------------------------------*/
+
+
+SwInsertChartDlg::SwInsertChartDlg( SfxBindings* pBindings,
+ SfxChildWindow* pChild,
+ Window *pParent,
+ SwWrtShell* pSh ) :
+ SfxModelessDialog( pBindings, pChild, pParent, SW_RES(DLG_INSERT_CHART) ),
+ aTextFt (this, SW_RES(FT_TEXT )),
+ aRangeEd (this, SW_RES(ED_RANGE )),
+ aRangeFt (this, SW_RES(FT_RANGE )),
+ aFinish (this, SW_RES(BT_FINISH )),
+ aHelp (this, SW_RES(BT_HELP )),
+ aCancel (this, SW_RES(BT_CANCEL )),
+ aHLine (this, SW_RES(FT_HORZLINE )),
+ aPrev (this, SW_RES(BT_PREV )),
+ aNext (this, SW_RES(BT_NEXT )),
+ aFirstRow (this, SW_RES(CB_FIRST_ROW)),
+ aFirstCol (this, SW_RES(CB_FIRST_COL)),
+ aGroup1 (this, SW_RES(GB_1 )),
+ pChartDlg(0),
+ pWrtShell(pSh),
+ pInItemSet(0),
+ pOutItemSet(0),
+ pChartData(0),
+ bUpdateChartData(TRUE),
+ bChartInserted(FALSE)
+{
+ FreeResource();
+ pSh->Push();
+
+ aRangeEd. SetModifyHdl(LINK(this, SwInsertChartDlg, ModifyHdl));
+ aNext. SetClickHdl(LINK(this, SwInsertChartDlg, NextHdl));
+ aFinish. SetClickHdl(LINK(this, SwInsertChartDlg, FinishHdl));
+ aCancel. SetClickHdl(LINK(this, SwInsertChartDlg, CloseHdl));
+ aFirstRow. SetClickHdl(LINK(this, SwInsertChartDlg, ClickHdl));
+ aFirstCol. SetClickHdl(LINK(this, SwInsertChartDlg, ClickHdl));
+
+ if( pWrtShell->IsCrsrInTbl() )
+ {
+ SwFrmFmt* pTblFmt = pWrtShell->GetTableFmt();
+ aAktTableName = pTblFmt->GetName();
+ if( !pWrtShell->IsTableMode() )
+ {
+ pWrtShell->GetView().GetViewFrame()->GetDispatcher()->
+ Execute(FN_TABLE_SELECT_ALL, SFX_CALLMODE_SYNCHRON);
+ }
+
+ pWrtShell->UpdateChartData( aAktTableName, pChartData );
+
+ String sText( String::CreateFromAscii("<.>") );
+ sText.Insert( pWrtShell->GetBoxNms(), 2);
+ sText.Insert( aAktTableName, 1 );
+ if(sText.GetTokenCount(':') == 2)
+ aRangeEd.SetText(sText);
+
+ ModifyHdl( &aRangeEd );
+ }
+ pInItemSet = new SfxItemSet( pWrtShell->GetAttrPool(),
+ CHATTR_START, CHATTR_END, 0 );
+ pOutItemSet = new SfxItemSet( pWrtShell->GetAttrPool(),
+ CHATTR_START, CHATTR_END, 0 );
+ SFX_APP()->LockDispatcher(TRUE);
+ pWrtShell->SelTblCells( LINK( this, SwInsertChartDlg,
+ SelTblCellsNotify) );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+__EXPORT SwInsertChartDlg::~SwInsertChartDlg()
+{
+ SfxApplication* pSfxApp = SFX_APP();
+ if(pSfxApp->IsDispatcherLocked())
+ pSfxApp->LockDispatcher(FALSE);
+ pWrtShell->EndSelTblCells();
+ pWrtShell->Pop(bChartInserted);
+ delete pInItemSet;
+ delete pOutItemSet;
+ delete pChartDlg;
+ delete pChartData;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+BOOL SwInsertChartDlg::Close()
+{
+ SFX_APP()->LockDispatcher(FALSE);
+ return SfxModelessDialog::Close();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+//OS: WNTMSCI4 optimiert sonst SetPosPixel und Hide weg!
+#pragma optimize("",off)
+
+
+IMPL_LINK( SwInsertChartDlg, NextHdl, Button *, pBtn )
+{
+
+ if ( bUpdateChartData )
+ UpdateData();
+
+ if(!pChartDlg)
+ {
+ pChartDlg = SchDLL::CreateAutoPilotDlg( this, pChartData,
+ *pInItemSet, *pOutItemSet, TRUE);
+ }
+ else if(bUpdateChartData)
+ {
+ SchDLL::ChangeChartData(pChartDlg,
+ pChartData);
+ }
+ bUpdateChartData = FALSE;
+ pChartDlg->SetPosPixel(GetPosPixel());
+ SfxViewFrame* pVFrame = pWrtShell->GetView().GetViewFrame();
+ pVFrame->ShowChildWindow(SID_INSERT_DIAGRAM, FALSE);
+ USHORT nResult = pChartDlg->Execute();
+ switch( nResult )
+ {
+ case RET_OK:
+ FinishHdl( &aFinish );
+ break;
+ case RET_CANCEL:
+ SetPosPixel(pChartDlg->GetPosPixel());
+ Close();
+ break;
+ default:
+ SetPosPixel(pChartDlg->GetPosPixel());
+ pVFrame->ShowChildWindow(SID_INSERT_DIAGRAM, TRUE);
+ break;
+ }
+ return 0;
+}
+
+#pragma optimize("",on)
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwInsertChartDlg, FinishHdl, Button *, EMPTYARG )
+{
+ pWrtShell->GotoTable(aAktTableName);
+ pWrtShell->GetView().GetViewFrame()->ToTop();
+ SwWrtShell* pShell = pWrtShell; // Member auf den Stack wg. Close()
+ SfxItemSet* pOutSet = pOutItemSet;
+ pOutItemSet = 0;
+ bChartInserted = TRUE;
+ BOOL bCrsrInTbl = pShell->IsCrsrInTbl() != 0;
+ BOOL bTblCplx = pShell->IsTblComplexForChart();
+ if( bCrsrInTbl && !bTblCplx && bUpdateChartData )
+ UpdateData();
+ SchMemChart *pChData = pChartData; // Member auf den Stack wg. Close() -> aber erst nach UpdateData()
+ pChartData = 0;
+
+ Close();
+
+ if( bCrsrInTbl && !bTblCplx )
+ {
+ SwTableFUNC( pShell, FALSE ).InsertChart( *pChData, pOutSet );
+ }
+ else
+ {
+ pShell->Insert( 0, SCH_MOD()->pSchChartDocShellFactory, FALSE );
+ }
+ delete pOutSet;
+ delete pChData;
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwInsertChartDlg, ClickHdl, CheckBox *, EMPTYARG )
+{
+ bUpdateChartData = TRUE;
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler fuer die Tabellenselektion
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertChartDlg, SelTblCellsNotify, SwWrtShell *, pCaller )
+{
+ SwFrmFmt* pTblFmt = pCaller->GetTableFmt();
+ SwTable* pTbl = 0;
+ if(pTblFmt)
+ {
+ SwClientIter aIter(*pTblFmt);
+ pTbl = (SwTable*)aIter.First(TYPE(SwTable));
+ DBG_ASSERT(pTbl, "keine Tabelle gefunden")
+ }
+ if( pTbl && !pCaller->IsTblComplexForChart() )
+ {
+ String sCommand = String::CreateFromAscii("<.>");
+ sCommand.Insert(pCaller->GetBoxNms(),2);
+ aAktTableName = pTblFmt->GetName();
+ sCommand.Insert(pTblFmt->GetName(), 1);
+ aRangeEd.SetText(sCommand);
+ }
+ else
+ {
+ aRangeEd.SetText(aEmptyStr);
+ }
+ ModifyHdl( &aRangeEd );
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertChartDlg, CloseHdl, Button*, EMPTYARG )
+{
+ Close();
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler fuer Edit
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwInsertChartDlg, ModifyHdl, Edit*, pEdit )
+{
+// hier muss getestet werden, ob mit dem aktuellen Eintrag eine
+// gueltige Selektion einer Tabelle aufgebaut werden kann
+
+ BOOL bCorrect = FALSE;
+ BOOL bFinish = FALSE;
+ BOOL bChkFirstRow = TRUE, bChkFirstCol = TRUE;
+
+ String sContent = pEdit->GetText();
+ if( !sContent.Len() )
+ {
+ bCorrect = pWrtShell->IsCrsrInTbl() != 0;
+ aAktTableName = sContent;
+ bFinish = TRUE;
+ }
+ else if( sContent.GetChar( 0 ) == '<' &&
+ sContent.GetTokenCount(':') == 2 &&
+ sContent.GetChar( sContent.Len() - 1 ) == '>')
+ {
+ USHORT nFndPos = sContent.Search( '.' );
+ String aTable( sContent.Copy( 1, nFndPos - 1 ));
+ SwFrmFmt* pFmt = pWrtShell->GetTableFmt();
+ if( ( pFmt && pFmt->GetName() == aTable ) ||
+ pWrtShell->GotoTable( aTable ) )
+ {
+ aAktTableName = aTable;
+
+ sContent.Erase( 0, nFndPos + 1 );
+ sContent.Erase( sContent.Len() - 1 );
+
+ SwTable* pTable = SwTable::FindTable( pWrtShell->GetTableFmt() );
+ SwChartLines aLines;
+ if( !pTable->IsTblComplexForChart( sContent, &aLines ))
+ {
+ bChkFirstCol = 1 < aLines[ 0 ]->Count();
+ bChkFirstRow = 1 < aLines.Count();
+
+ bFinish = bCorrect = TRUE;
+ }
+ }
+ }
+
+ aNext.Enable( bCorrect );
+ aFinish.Enable( bFinish );
+
+ if( bChkFirstRow != aFirstRow.IsEnabled() )
+ {
+ if( bChkFirstRow )
+ aFirstRow.Check( aFirstRow.GetSavedValue() );
+ else
+ {
+ aFirstRow.SaveValue();
+ aFirstRow.Check( FALSE );
+ }
+
+ aFirstRow.Enable( bChkFirstRow );
+ }
+
+ if( bChkFirstCol != aFirstCol.IsEnabled() )
+ {
+ if( bChkFirstCol )
+ aFirstCol.Check( aFirstCol.GetSavedValue() );
+ else
+ {
+ aFirstCol.SaveValue();
+ aFirstCol.Check( FALSE );
+ }
+
+ aFirstCol.Enable( bChkFirstCol );
+ }
+
+ bUpdateChartData = TRUE;
+ return 0;
+}
+
+
+void SwInsertChartDlg::UpdateData()
+{
+ if( !pChartData )
+ pWrtShell->UpdateChartData( aAktTableName, pChartData );
+
+ if( pChartData )
+ {
+ String aData = aFirstRow.IsChecked() ? '1' : '0';
+ aData += aFirstCol.IsChecked() ? '1': '0';
+ pChartData->SomeData2() = aData;
+ aData = aRangeEd.GetText();
+ aData.Erase(1, aAktTableName.Len() +1 );
+ pChartData->SomeData1() = aData;
+ pWrtShell->UpdateChartData( aAktTableName, pChartData );
+ }
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+
+SwInsertChartChild::SwInsertChartChild(Window* pParent,
+ USHORT nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo ) :
+ SfxChildWindow( pParent, nId )
+{
+
+ SwView *pView = ::GetActiveView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+
+ pWindow = new SwInsertChartDlg( pBindings, this, pParent, &rSh );
+ pWindow->SetPosPixel(pInfo->aPos);
+ pWindow->Show();
+
+}
+
+
+void __EXPORT AutoEdit::KeyInput( const KeyEvent& rEvt )
+{
+ USHORT nCode = rEvt.GetKeyCode().GetCode();
+ if( nCode != KEY_SPACE )
+ Edit::KeyInput( rEvt );
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.50 2000/09/18 16:06:07 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.49 2000/09/11 06:52:45 os
+ Get/Set/Has/ToggleChildWindow SfxApplication -> SfxViewFrame
+
+ Revision 1.48 2000/09/07 15:59:31 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.47 2000/04/26 14:59:03 os
+ GetName() returns const String&
+
+ Revision 1.46 2000/04/19 11:22:11 os
+ UNICODE
+
+ Revision 1.45 2000/03/09 21:54:45 jp
+ Changes: SchMemChart in new headerfile
+
+ Revision 1.44 2000/02/11 14:58:21 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.43 1999/02/09 13:31:16 JP
+ Task #61632#: Charts auch in complexen Tabellen zulassen
+
+
+ Rev 1.42 09 Feb 1999 14:31:16 JP
+ Task #61632#: Charts auch in complexen Tabellen zulassen
+
+ Rev 1.41 29 Oct 1998 11:35:34 JP
+ Bug #58509#: im ModifyHdl die FirstRow/-Col Buttons ggfs. disablen
+
+ Rev 1.40 28 Oct 1998 19:34:34 JP
+ Bug #58509#: Button FirstRow/-Col ggfs. disablen
+
+ Rev 1.39 16 Mar 1998 13:55:08 MA
+ #48288# ohne Data leben
+
+ Rev 1.38 29 Nov 1997 14:28:12 MA
+ includes
+
+ Rev 1.37 24 Nov 1997 15:52:20 MA
+ includes
+
+ Rev 1.36 09 Sep 1997 11:39:16 OS
+ define fuer .hxx
+
+ Rev 1.35 01 Sep 1997 13:17:26 OS
+ DLL-Umstellung
+
+ Rev 1.34 08 Aug 1997 17:37:36 OM
+ Headerfile-Umstellung
+
+ Rev 1.33 09 Jul 1997 17:39:18 HJS
+ includes
+
+ Rev 1.32 08 Apr 1997 10:32:30 MA
+ includes
+
+ Rev 1.31 07 Apr 1997 16:54:14 OS
+ FinishHdl: pChartData erst nach UpdateData umkopieren
+
+ Rev 1.30 24 Nov 1996 14:59:48 WP
+ SvGlobalNames beseitigt
+
+ Rev 1.29 11 Nov 1996 11:20:06 MA
+ ResMgr
+
+ Rev 1.28 05 Nov 1996 13:48:20 OS
+ im FinishHdl wird der ViewFrame 'getoppt'
+
+ Rev 1.27 24 Oct 1996 14:17:12 JP
+ AutoEdit:KeyInput aus AutoCorr.cxx hierher verschoben
+
+ Rev 1.26 24 Oct 1996 13:36:42 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.25 02 Oct 1996 19:06:08 MA
+ Umstellung Enable/Disable
+
+ Rev 1.24 28 Aug 1996 14:33:14 OS
+ includes
+
+ Rev 1.23 23 Aug 1996 14:37:14 OS
+ FinishHdl: nach dem Close keine Member benutzen
+
+ Rev 1.22 22 Aug 1996 12:40:44 OS
+ Close im FinishHdl vor dem Einfuegen des Charts rufen
+
+ Rev 1.21 20 Aug 1996 11:34:00 OS
+ Dialog nicht mit Show/Hide, sondern mit ShowChildWindow anzeigen/verstecken
+
+ Rev 1.20 29 Jul 1996 13:07:04 OS
+ doch wieder mit Close()
+
+ Rev 1.19 25 Jul 1996 15:36:12 OS
+ kein Close()
+
+ Rev 1.18 26 Jun 1996 15:25:20 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.17 11 Jun 1996 13:42:32 OS
+ alten Cursor nur zurueckholen, wenn Chart nicht eingefuegt wurde
+
+ Rev 1.16 10 Jun 1996 20:40:10 MA
+ fix: IsTblComplexForChart
+
+ Rev 1.15 06 Jun 1996 15:53:18 OS
+ keine Tabellenselektion in komplexen Tabellen
+
+ Rev 1.14 30 Apr 1996 16:29:44 MA
+ fix: ggf. ein Update beim Fertigstellen
+
+------------------------------------------------------------------------*/
+
+
+
+
diff --git a/sw/source/ui/table/chartins.hrc b/sw/source/ui/table/chartins.hrc
new file mode 100644
index 000000000000..f83c07c31b77
--- /dev/null
+++ b/sw/source/ui/table/chartins.hrc
@@ -0,0 +1,81 @@
+/*************************************************************************
+ *
+ * $RCSfile: chartins.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _CHARTINS_HRC
+#define _CHARTINS_HRC
+
+#include "rcid.hrc"
+#include "table.hrc"
+
+#define ED_RANGE 1
+#define FT_RANGE 2
+#define BT_NEXT 3
+#define BT_FINISH 4
+#define BT_HELP 5
+#define BT_CANCEL 6
+#define CB_FIRST_ROW 7
+#define CB_FIRST_COL 8
+#define BT_PREV 9
+#define FT_HORZLINE 10
+#define FT_TEXT 11
+#define GB_1 12
+
+#endif
diff --git a/sw/source/ui/table/chartins.src b/sw/source/ui/table/chartins.src
new file mode 100644
index 000000000000..da4ee97c44df
--- /dev/null
+++ b/sw/source/ui/table/chartins.src
@@ -0,0 +1,349 @@
+/*************************************************************************
+ *
+ * $RCSfile: chartins.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+/* StarView ressource file */
+
+#include "chartins.hrc"
+#include "helpid.h"
+ModelessDialog DLG_INSERT_CHART
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 297 , 169 ) ;
+ Moveable = TRUE ;
+ HelpID = HID_INSERT_CHART ;
+ Hide = TRUE ;
+ Text = "Autoformat Diagramm (1-4)" ;
+ Text [ ENGLISH ] = "Autoformat Chart (1-4)" ;
+ Text [ ENGLISH_US ] = "AutoFormat Chart (1-4)" ;
+ FixedText FT_TEXT
+ {
+ Pos = MAP_APPFONT ( 6 , 6 ) ;
+ Size = MAP_APPFONT ( 285 , 49 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Falls die markierten Zellen nicht die gewünschten Daten enthalten, markieren Sie jetzt den Bereich.\n\nBeziehen Sie die Zellen mit Spalten- bzw. Zeilenbezeichnern mit ein, wenn Sie diese in Ihrer Grafik dargestellt haben möchten : Falls die markierten Zellen nicht die gew³nschten Daten enthalten, markieren Sie jetzt den Bereich.\n\nBeziehen Sie die Zellen mit Spalten- bzw. Zeilenbezeichnern mit ein, wenn Sie diese in Ihrer Grafik dargestellt haben m÷chten */
+ Text = "Falls die markierten Zellen nicht die gewünschten Daten enthalten, markieren Sie jetzt den Bereich.\n\nBeziehen Sie die Zellen mit Spalten- bzw. Zeilenbezeichnern mit ein, wenn Sie diese in Ihrer Grafik dargestellt haben möchten" ;
+ Text [ ENGLISH ] =
+ "If the marked area does not represent the desired data, mark your data now.\nInclude the cells containing the column- and row identifier in case you want them to be included in your chart." ;
+ Text [ ENGLISH_US ] = "If the marked cells do not represent the desired data, mark the area now.\nInclude the cells containing the column and row labels if you want them to be included in your chart." ;
+ WordBreak = TRUE ;
+ Text [ italian ] = "Se le celle evidenziate non contengono i dati voluti, selezionate l'area.\n\nIncludete le celle contenenti i titoli delle colonne e delle righe se volete che compaiano nel diagramma." ;
+ Text [ spanish ] = "En caso de que las celdas marcadas no contengan los datos deseados, marque ahora el área.\n\nIncluya las celdas con los nombres de las columnas y filas si desea que estas aparezcan en su gráfico." ;
+ Text [ french ] = "Si les cellules marquées ne contiennent pas les données souhaitées, sélectionnez à présent la plage. \n\nIncluez les cellules avec les intitulés de colonnes et de lignes pour les faire figurer dans le diagramme." ;
+ Text [ dutch ] = "Als de gemarkeerde cellen niet de gewenste gegevens bevatten markeert u nu het bereik.\n\nMarkeer eveneens de cellen met de kolom- resp. rijlabels als u deze in uw afbeelding wilt weergeven." ;
+ Text [ swedish ] = "Om de markerade cellerna inte innehåller de önskade data, markera då området nu.\n\nTa med de celler som innehåller kolumn- och radöverskrifter om dessa skall visas i grafiken." ;
+ Text [ danish ] = "Hvis de markerede celler ikke indeholder de ønskede data, marker det ønskede område nu.\n\nInkluder cellerne med kolonne- hhv.rækkeetiketter, hvis de skal vises i din grafik." ;
+ Text [ portuguese_brazilian ] = "Falls die markierten Zellen nicht die gewünschten Daten enthalten, markieren Sie jetzt den Bereich.\n\nBeziehen Sie die Zellen mit Spalten- bzw. Zeilenbezeichnern mit ein, wenn Sie diese in Ihrer Grafik dargestellt haben möchten" ;
+ Text [ portuguese ] = "Se as células marcadas não incluírem os dados desejados, marque-os agora.\n\nInclua as células contendo os títulos das colunas e linhas se desejar vê-las representadas no seu gráfico." ;
+ Text[ chinese_simplified ] = "Èç¹ûÑ¡Öеĵ¥Ôª¸ñûÓÐÊý¾Ý£¬ÄÇôÇëÄúÑ¡ÔñÇøÓò¡£\n\nÄú¿ÉÒÔҲѡÖÐÁбêÌâºÍÐбêÌ⣬Èç´ËÕâЩ×ÊÁÏÒ²»á±»ÏÔʾÔÚͼ±íÄÚ¡£";
+ Text[ russian ] = "Åñëè îòìå÷åííûå ÿ÷åéêè íå ñîäåðæàò æåëàåìûõ äàííûõ, âûäåëèòå ñåé÷àñ ýòó îáëàñòü.\n\nÂêëþ÷èòå òàêæå ÿ÷åéêè ñ ïîìåòêàìè ñòîëáöîâ èëè ñòðîê, åñëè Âû õîòèòå èõ ïðåäñòàâèòü íà Âàøåì ðèñóíêå.";
+ Text[ polish ] = "Jeœli zaznaczone komórki nie zawieraj¹ potrzebnych danych, zaznacz teraz ten obszar ponownie.\n\nZaznacz równie¿ komórki z etykietami wierszy lub kolumn , jeœli maj¹ one zostaæ przedstawione w twojej grafice.";
+ Text[ japanese ] = "•K—v‚ÈÃÞ°À‚ªŠÜ‚Ü‚ê‚Ä‚¢‚é¾Ù‚ª‚Ü‚¾‘I‘ð‚³‚ê‚Ä‚¢‚È‚¢ê‡‚ÍA¡‚»‚͈̔͂ð‘I‘ð‚µ‚Ä‰º‚³‚¢B\n\n¸Þ×Ì‚É€–Ú–¼‚ð•\\Ž¦‚·‚邽‚ß‚É‚ÍAs‚Æ—ñ‚Ì€–Ú—“‚ðŠÜ‚ß‚½¾Ù”͈͂ð“ü—Í‚µ‚ĉº‚³‚¢B";
+ Text[ chinese_traditional ] = "¦pªG¿ï¨úªºÀx¦s®æ¨S¦³¸ê®Æ¡M´N½Ð±z¿ï¾Ü°Ï°ì¡C\n\n±z¥i¥H¿ï¤¤¦C¼ÐÃD©M¦æ¼ÐÃD¡A³o¼Ë¡A¹Ïªí¤]·|Åã¥Ü¥X³o¨Ç¸ê®Æ¡C";
+ Text[ arabic ] = "ÅÐÇ ßÇäÊ ÇáÎáÇíÇ ÇáãÍÏÏÉ áÇ ÊÍÊæí Úáì ÇáÈíÇäÇÊ ÇáãØáæÈÉ¡ Þã ÈÊÍÏíÏ ÇáäØÇÞ\n\nÈãÇ Ýí Ðáß ÇáÎáÇíÇ¡ ÇáÊí ÊÍÊæí Úáì ÚäÇæíä ÕÝæÝ Ãæ ÃÚãÏÉ¡ æÐáß ÅÐÇ ßäÊ ÊÑíÏ ÙåæÑåÇ Ýí ÑÓãÊß.";
+ Text[ dutch ] = "Als de gemarkeerde cellen niet de gewenste gegevens bevatten markeert u nu het bereik.\n\nMarkeer eveneens de cellen met de kolom- resp. rijlabels als u deze in uw afbeelding wilt weergeven.";
+ Text[ chinese_simplified ] = "Èç¹ûÑ¡Öеĵ¥Ôª¸ñûÓÐÊý¾Ý£¬ÄÇôÇëÄúÑ¡ÔñÇøÓò¡£\n\nÄú¿ÉÒÔҲѡÖÐÁбêÌâºÍÐбêÌ⣬Èç´ËÕâЩ×ÊÁÏÒ²»á±»ÏÔʾÔÚͼ±íÄÚ¡£";
+ Text[ greek ] = "Áí ôá åðéëåãìÝíá êåëéÜ äåí ðåñéÝ÷ïõí ôá äåäïìÝíá ðïõ åðéèõìåßôå, åðéëÝîôå ôçí ðåñéï÷Þ ôþñá. Áí èÝëåôå\n\níá åìöáíéóôïýí óôï ãñáöéêü óáò êáé ïé åðéãñáöÝò óôçëþí êáé ãñáììþí, ôüôå åðéëÝîôå êáé áõôÜ ôá äåäïìÝíá.";
+ Text[ korean ] = "¼±ÅÃÇ¥½ÃµÈ ¼¿ÀÌ ¿øÇÏ´Â µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÏ°í ÀÖÁö ¾ÊÀ» °æ¿ì, Áö±Ý ¿µ¿ªÀ» Ç¥½ÃÇϽʽÿÀ. \n\n¿­ ³»Áö Çà ¶óº§À» Áö´Ñ ¼¿µéÀ» ±×·¡ÇÈ¿¡ ³ªÅ¸³»°í ½ÍÀ¸¸é ÀÌ ¼¿µéÀ» ÇÔ²² Æ÷ÇÔ½ÃÅ°½Ê½Ã¿À.";
+ Text[ turkish ] = "Seçilen hücreler, istenen verileri içermiyorsa aralýðý þimdi seçin.\n\nGrafikte görünmelerini istiyorsanýz, sütun ya da satýr baþlýklarýný içeren hücreleri de seçin";
+ };
+ FixedText FT_RANGE
+ {
+ Pos = MAP_APPFONT ( 12 , 69 ) ;
+ Size = MAP_APPFONT ( 38 , 10 ) ;
+ Text = "~Bereich" ;
+ Text [ ENGLISH ] = "~Area" ;
+ Text [ ENGLISH_US ] = "~Area" ;
+ Text [ italian ] = "Area" ;
+ Text [ spanish ] = "~Área" ;
+ Text [ french ] = "C~atégorie" ;
+ Text [ dutch ] = "~Bereik" ;
+ Text [ swedish ] = "~Område" ;
+ Text [ danish ] = "Område" ;
+ Text [ portuguese_brazilian ] = "~Bereich" ;
+ Text [ portuguese ] = "~Área" ;
+ Text[ chinese_simplified ] = "ÇøÓò(~A)";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "”͈Í(~A)";
+ Text[ chinese_traditional ] = "°Ï°ì(~A)";
+ Text[ arabic ] = "ÇáäØÇÞ";
+ Text[ dutch ] = "~Bereik";
+ Text[ chinese_simplified ] = "ÇøÓò(~A)";
+ Text[ greek ] = "Ðåñéï÷Þ";
+ Text[ korean ] = "¿µ¿ª(~A)";
+ Text[ turkish ] = "~Aralýk";
+ };
+ Edit ED_RANGE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 56 , 68 ) ;
+ Size = MAP_APPFONT ( 229 , 12 ) ;
+ };
+ CheckBox CB_FIRST_ROW
+ {
+ Pos = MAP_APPFONT ( 12 , 86 ) ;
+ Size = MAP_APPFONT ( 150 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "Erste ~Zeile als Beschriftung" ;
+ Text [ ENGLISH ] = "First ~row as label" ;
+ Text [ ENGLISH_US ] = "~First row as caption" ;
+ Check = TRUE ;
+ Text [ italian ] = "Prima riga come dicitura" ;
+ Text [ spanish ] = "Primera ~fila como etiqueta" ;
+ Text [ french ] = "Première ~ligne comme étiquette" ;
+ Text [ dutch ] = "Eerste ~rij als kop" ;
+ Text [ swedish ] = "Första ~raden som etikett" ;
+ Text [ danish ] = "Første række som etiket" ;
+ Text [ portuguese_brazilian ] = "Erste ~Reihe als Beschriftung" ;
+ Text [ portuguese ] = "Primeira ~linha como etiqueta" ;
+ Text[ chinese_simplified ] = "µÚÒ»ÐÐ×÷Ϊ±êÌâ(~R)";
+ Text[ russian ] = "Ïåðâàÿ ñòðîêà êàê íàçâàíèå";
+ Text[ polish ] = "Pierwszy wiersz jako etykieta";
+ Text[ japanese ] = "Œ©o‚µ‚Æ‚µ‚Ä‚Ìʼn‚Ìs(~Rj";
+ Text[ chinese_traditional ] = "²Ä¤@¦æ§@¬°¼ÐÃD(~R)";
+ Text[ arabic ] = "ÇáÕÝ ÇáÃæá ßÚäæÇä";
+ Text[ dutch ] = "Eerste ~rij als kop";
+ Text[ chinese_simplified ] = "µÚÒ»ÐÐ×÷Ϊ±êÌâ(~R)";
+ Text[ greek ] = "Ðñþôç ãñáììÞ ùò åðéãñáöÞ";
+ Text[ korean ] = "ù¹ø° ÇàÀ» ĸ¼ÇÀ¸·Î(~F)";
+ Text[ turkish ] = "Baþlýklar ~birinci satýrda";
+ };
+ CheckBox CB_FIRST_COL
+ {
+ Pos = MAP_APPFONT ( 12 , 102 ) ;
+ Size = MAP_APPFONT ( 150 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "Erste ~Spalte als Beschriftung" ;
+ Text [ ENGLISH ] = "First ~column as label" ;
+ Text [ ENGLISH_US ] = "First ~column as caption" ;
+ Check = TRUE ;
+ Text [ italian ] = "Prima colonna come dicitura" ;
+ Text [ spanish ] = "Primera c~olumna como etiqueta" ;
+ Text [ french ] = "Première ~colonne comme étiquette" ;
+ Text [ dutch ] = "Eerste ~kolom als kop" ;
+ Text [ swedish ] = "Första kolumnen ~som etikett" ;
+ Text [ danish ] = "Første kolonne som etiket" ;
+ Text [ portuguese_brazilian ] = "Erste ~Spalte als Beschriftung" ;
+ Text [ portuguese ] = "Primeira ~coluna como etiqueta" ;
+ Text[ chinese_simplified ] = "µÚÒ»ÁÐ×÷Ϊ±êÌâ(~C)";
+ Text[ russian ] = "Ïåðâûé ñòîëáåö êàê íàçâàíèå";
+ Text[ polish ] = "Pierwsza kolumna jako etykieta";
+ Text[ japanese ] = "Œ©o‚µ‚Æ‚µ‚Ä‚Ìʼn‚Ì—ñ(~C)";
+ Text[ chinese_traditional ] = "²Ä¤@Äæ·í§@¼ÐÃD(~C)";
+ Text[ arabic ] = "ÇáÚãæÏ ÇáÃæá ßÚäæÇä";
+ Text[ dutch ] = "Eerste ~kolom als kop";
+ Text[ chinese_simplified ] = "µÚÒ»ÁÐ×÷Ϊ±êÌâ(~C)";
+ Text[ greek ] = "Ðñþôç óôÞëç ùò åðéãñáöÞ";
+ Text[ korean ] = "ù¹ø° ¿­À» ĸ¼ÇÀ¸·Î(~C)";
+ Text[ turkish ] = "Baþlýklar ~birinci sütunda";
+ };
+ GroupBox GB_1
+ {
+ Pos = MAP_APPFONT ( 6 , 56 ) ;
+ Size = MAP_APPFONT ( 285 , 65 ) ;
+ Text = "Auswahl" ;
+ Text [ English ] = "Selection" ;
+ Text [ english_us ] = "Selection" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ spanish ] = "Selección" ;
+ Text [ french ] = "Sélection" ;
+ Text [ dutch ] = "Selectie" ;
+ Text [ swedish ] = "Urval" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ portuguese_brazilian ] = "Auswahl" ;
+ Text [ portuguese ] = "Selecção" ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ";
+ Text[ russian ] = "Âûáîð";
+ Text[ polish ] = "Wybór";
+ Text[ japanese ] = "‘I‘ð";
+ Text[ chinese_traditional ] = "¿ï¾Ü";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ dutch ] = "Selectie";
+ Text[ chinese_simplified ] = "Ñ¡Ôñ";
+ Text[ greek ] = "ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ";
+ Text[ turkish ] = "Seçim";
+ };
+ FixedText FT_HORZLINE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 137 ) ;
+ Size = MAP_APPFONT ( 284 , 2 ) ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 6 , 151 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 60 , 151 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton BT_PREV
+ {
+ Pos = MAP_APPFONT ( 130 , 151 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ // ### ACHTUNG: Neuer Text in Resource? << ~Zurück : << Zurück
+ /* ### ACHTUNG: Neuer Text in Resource? << ~Zurück : << ~Zur³ck */
+ Text = "<< Z~urück" ;
+ Text [ ENGLISH ] = "<< Back" ;
+ TabStop = TRUE ;
+ Disable = TRUE ;
+ Text [ dutch ] = "<< Vor~ige" ;
+ Text [ english_us ] = "<< ~Back" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ spanish ] = "<< ~Regresar" ;
+ Text [ french ] = "<< ~Précédent" ;
+ Text [ swedish ] = "<< ~Tillbaka" ;
+ Text [ danish ] = "<< Tilbage" ;
+ Text [ portuguese ] = "<< ~Anterior" ;
+ Text [ portuguese_brazilian ] = "<< ~Zurück" ;
+ Text[ chinese_simplified ] = "<< ·µ»Ø(~B)";
+ Text[ russian ] = "<< Íàçàä";
+ Text[ polish ] = "<< Wstecz";
+ Text[ japanese ] = "<<–ß‚é(~B)";
+ Text[ chinese_traditional ] = "<< ªð¦^(~B)";
+ Text[ arabic ] = ">> ÇáÓÇÈÞ";
+ Text[ dutch ] = "<< Vor~ige";
+ Text[ chinese_simplified ] = "<< ·µ»Ø(~B)";
+ Text[ greek ] = "<< Ðßóù";
+ Text[ korean ] = "<<µÚ·Î(~B)";
+ Text[ turkish ] = "<< G~eri";
+ };
+ PushButton BT_NEXT
+ {
+ Pos = MAP_APPFONT ( 185 , 151 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Weiter >>" ;
+ Text [ ENGLISH ] = "Continue >>" ;
+ Disable = TRUE ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "~Volgende >>" ;
+ Text [ english_us ] = "~Next >>" ;
+ Text [ italian ] = "~Avanti >>" ;
+ Text [ spanish ] = "~Siguiente >>" ;
+ Text [ french ] = "~Suivant >>" ;
+ Text [ swedish ] = "~Nästa >>" ;
+ Text [ danish ] = "Næste >>" ;
+ Text [ portuguese ] = "~Continuar >>" ;
+ Text [ portuguese_brazilian ] = "~Weiter >>" ;
+ Text[ chinese_simplified ] = "¼ÌÐø(~N)>>";
+ Text[ russian ] = "Äàëåå >>";
+ Text[ polish ] = "Dalej >>";
+ Text[ japanese ] = "ŽŸ‚Ö >>(~N)";
+ Text[ chinese_traditional ] = "Ä~Äò(~N)";
+ Text[ arabic ] = "ÇáÊÇáí <<";
+ Text[ dutch ] = "~Volgende >>";
+ Text[ chinese_simplified ] = "¼ÌÐø(~N)>>";
+ Text[ greek ] = "Åðüìåíï >>";
+ Text[ korean ] = "´ÙÀ½ >>(~N)";
+ Text[ turkish ] = "~Ýleri >>";
+ };
+ PushButton BT_FINISH
+ {
+ Pos = MAP_APPFONT ( 240 , 151 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "~Fertig stellen" ;
+ Text [ ENGLISH ] = "Finish >>" ;
+ Text [ dutch ] = "~Voltooien" ;
+ Text [ english_us ] = "Cre~ate" ;
+ Text [ italian ] = "~Crea" ;
+ Text [ spanish ] = "~Crear" ;
+ Text [ french ] = "~Créer" ;
+ Text [ swedish ] = "~Färdigställ" ;
+ Text [ danish ] = "Udfør" ;
+ Text [ portuguese ] = "~Criar" ;
+ Text [ portuguese_brazilian ] = "~Fertigstellen" ;
+ Text[ chinese_simplified ] = "Íê³É(~A)";
+ Text[ russian ] = "Ãîòîâî";
+ Text[ polish ] = "Utwórz";
+ Text[ japanese ] = "Š®—¹(~A)";
+ Text[ chinese_traditional ] = "§¹¦¨(~A)";
+ Text[ arabic ] = "ÅäÔÇÁ";
+ Text[ dutch ] = "~Voltooien";
+ Text[ chinese_simplified ] = "Íê³É(~A)";
+ Text[ greek ] = "Äçìéïõñãßá";
+ Text[ korean ] = "¸¸µé±â(~A)";
+ Text[ turkish ] = "~Oluþtur";
+ };
+ Text [ italian ] = "Formattazione automatica diagramma (1-4)" ;
+ Text [ spanish ] = "AutoFormato diagrama (1-4)" ;
+ Text [ french ] = "AutoFormat de diagramme (1-4)" ;
+ Text [ dutch ] = "AutoOpmaak diagram (1-4)" ;
+ Text [ swedish ] = "AutoFormat Diagram (1-4)" ;
+ Text [ danish ] = "AutoFormat diagram (1-4)" ;
+ Text [ portuguese_brazilian ] = "Autoformat Diagramm (1-4)" ;
+ Text [ portuguese ] = "AutoFormato gráfico (1-4)" ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽͼ±í(1-4)";
+ Text[ russian ] = "Àâòîôîðìàò äèàãðàììû (1-4)";
+ Text[ polish ] = "Autoformatowanie wykresu (1-4)";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä ¸Þ×Ì(1-4)";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡¹Ïªí(1-4)";
+ Text[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí áÑÓã ÈíÇäí (1Ü4)";
+ Text[ dutch ] = "AutoOpmaak diagram (1-4)";
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽͼ±í(1-4)";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç äéáãñÜììáôïò (1-4)";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä Â÷Æ® (1-4)";
+ Text[ turkish ] = "Otomatik þema formatlama (1-4)";
+};
diff --git a/sw/source/ui/table/colwd.cxx b/sw/source/ui/table/colwd.cxx
new file mode 100644
index 000000000000..ba5cb6c0556f
--- /dev/null
+++ b/sw/source/ui/table/colwd.cxx
@@ -0,0 +1,209 @@
+/*************************************************************************
+ *
+ * $RCSfile: colwd.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SVX_DLGUTIL_HXX //autogen
+#include <svx/dlgutil.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "colwd.hxx"
+#include "tablemgr.hxx"
+
+#include "colwd.hrc"
+#include "table.hrc"
+
+
+IMPL_LINK_INLINE_START( SwTableWidthDlg, LoseFocusHdl, Edit *, EMPTYARG )
+{
+ USHORT nId = (USHORT)aColEdit.GetValue()-1;
+ const SwTwips lWidth = rFnc.GetColWidth(nId);
+ aWidthEdit.SetValue(aWidthEdit.Normalize(lWidth), FUNIT_TWIP);
+ aWidthEdit.SetMax(aWidthEdit.Normalize(rFnc.GetMaxColWidth(nId)), FUNIT_TWIP);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwTableWidthDlg, LoseFocusHdl, Edit *, EMPTYARG )
+
+
+
+SwTableWidthDlg::SwTableWidthDlg(Window *pParent, SwTableFUNC &rTableFnc ) :
+
+ SvxStandardDialog( pParent, SW_RES(DLG_COL_WIDTH) ),
+
+ aColFT(this, SW_RES(FT_COL)),
+ aColEdit(this, SW_RES(ED_COL)),
+ aWidthFT(this, SW_RES(FT_WIDTH)),
+ aWidthEdit(this, SW_RES(ED_WIDTH)),
+ aWidthFrm(this, SW_RES(GB_WIDTH)),
+ aOKBtn(this, SW_RES(BT_OK)),
+ aCancelBtn(this, SW_RES(BT_CANCEL)),
+ aHelpBtn(this, SW_RES(BT_HELP)),
+ rFnc(rTableFnc)
+{
+ FreeResource();
+ ::SetFieldUnit(aWidthEdit, OFF_APP()->GetOptions().GetMetric());
+ aColEdit.SetValue( rFnc.GetCurColNum() +1 );
+ aWidthEdit.SetMin(aWidthEdit.Normalize(MINLAY), FUNIT_TWIP);
+ if(!aWidthEdit.GetMin())
+ aWidthEdit.SetMin(1);
+
+ if(rFnc.GetColCount() == 0)
+ aWidthEdit.SetMin(aWidthEdit.Normalize(rFnc.GetColWidth(0)), FUNIT_TWIP);
+ aColEdit.SetMax(rFnc.GetColCount() +1 );
+ aColEdit.SetModifyHdl(LINK(this,SwTableWidthDlg, LoseFocusHdl));
+ LoseFocusHdl();
+}
+
+
+
+void SwTableWidthDlg::Apply()
+{
+ rFnc.InitTabCols();
+ rFnc.SetColWidth( aColEdit.GetValue()-1,
+ aWidthEdit.Denormalize(aWidthEdit.GetValue(FUNIT_TWIP)));
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.40 2000/09/18 16:06:07 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.39 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.38 1998/05/13 14:00:46 OS
+ HelpButton
+
+
+ Rev 1.37 13 May 1998 16:00:46 OS
+ HelpButton
+
+ Rev 1.36 24 Nov 1997 15:52:22 MA
+ includes
+
+ Rev 1.35 03 Nov 1997 13:56:50 MA
+ precomp entfernt
+
+ Rev 1.34 11 Dec 1996 20:58:14 MH
+ includes
+
+ Rev 1.33 11 Dec 1996 08:43:16 OS
+ Minimalwert nie NULL, Einheit richtig einstellen
+
+ Rev 1.32 11 Nov 1996 11:19:56 MA
+ ResMgr
+
+ Rev 1.31 05 Sep 1996 08:19:30 OS
+ richtige Min/Max-Einstellungen fuer einspaltige Tabellen
+
+ Rev 1.30 28 Aug 1996 14:33:16 OS
+ includes
+
+ Rev 1.29 26 Jun 1996 15:25:20 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.28 06 Jun 1996 14:55:42 OS
+ MINLAY als Minimum fuer Breite setzen
+
+ Rev 1.27 22 Mar 1996 14:16:30 HJS
+ umstellung 311
+
+ Rev 1.26 07 Feb 1996 08:11:40 OS
+ INLINE-LoseFocusHdl muss vor erster Benutzung definiert werden
+
+ Rev 1.25 06 Feb 1996 15:21:22 JP
+ Link Umstellung 305
+
+ Rev 1.24 24 Nov 1995 16:58:58 OM
+ PCH->PRECOMPILED
+
+ Rev 1.23 10 Nov 1995 15:26:44 OS
+ Execute mit 0L abschliessen
+
+ Rev 1.22 08 Nov 1995 13:34:38 OS
+ Change => Set
+
+ Rev 1.21 05 Nov 1995 16:49:08 OS
+ Dtor ueberfluessig, -RecordFlag, Aktion ueber Dispatcher
+
+ Rev 1.20 13 Sep 1995 17:09:44 OS
+ Recording ausgeweitet
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/table/colwd.hrc b/sw/source/ui/table/colwd.hrc
new file mode 100644
index 000000000000..950e861e779b
--- /dev/null
+++ b/sw/source/ui/table/colwd.hrc
@@ -0,0 +1,70 @@
+/*************************************************************************
+ *
+ * $RCSfile: colwd.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define FT_COL 1
+#define ED_COL 2
+#define FT_WIDTH 3
+#define ED_WIDTH 4
+#define GB_WIDTH 5
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+
diff --git a/sw/source/ui/table/colwd.src b/sw/source/ui/table/colwd.src
new file mode 100644
index 000000000000..2cc9279f2fd8
--- /dev/null
+++ b/sw/source/ui/table/colwd.src
@@ -0,0 +1,232 @@
+/*************************************************************************
+ *
+ * $RCSfile: colwd.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "colwd.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ // #define DLG_COL_WIDTH 256
+ModalDialog DLG_COL_WIDTH
+{
+ HelpID = FN_TABLE_SET_COL_WIDTH ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 149 , 60 ) ;
+ Text = "Spaltenbreite" ;
+ Text [ ENGLISH ] = "Column width" ;
+ Text [ norwegian ] = "Bredde på kolonne " ;
+ Text [ italian ] = "Larghezza colonna" ;
+ Text [ portuguese_brazilian ] = "Largura da coluna" ;
+ Text [ portuguese ] = "Largura da coluna" ;
+ Text [ finnish ] = "Sarakeleveys" ;
+ Text [ danish ] = "Kolonnebredde" ;
+ Text [ french ] = "Largeur de colonne" ;
+ Text [ swedish ] = "Kolumnbredd" ;
+ Text [ dutch ] = "Kolombreedte" ;
+ Text [ spanish ] = "Ancho de columna" ;
+ Text [ english_us ] = "Column Width" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 94 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 94 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 94 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_WIDTH
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 22 , 8 ) ;
+ Text = "~Breite" ;
+ Text [ ENGLISH ] = "~Width" ;
+ Text [ norwegian ] = "~Bredde" ;
+ Text [ italian ] = "~Largh." ;
+ Text [ portuguese_brazilian ] = "~Largura" ;
+ Text [ portuguese ] = "~Largura" ;
+ Text [ finnish ] = "~Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "~Largeur" ;
+ Text [ swedish ] = "~Bredd" ;
+ Text [ dutch ] = "B~reedte" ;
+ Text [ spanish ] = "A~ncho" ;
+ Text [ english_us ] = "~Width" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "¿í(~W)";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "•(~W)";
+ Text[ chinese_traditional ] = "¼e(~W)";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ(~W)";
+ Text[ turkish ] = "~Geniþlik";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_WIDTH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 41 , 30 ) ;
+ Size = MAP_APPFONT ( 38 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 50 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ SpinSize = 10 ;
+ Value = 10 ;
+ Unit = FUNIT_CM ;
+ First = 100 ;
+ Last = 9999 ;
+ };
+ GroupBox GB_WIDTH
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 81 , 50 ) ;
+ Text = "Breite" ;
+ Text [ ENGLISH ] = "Width" ;
+ Text [ norwegian ] = "Bredde " ;
+ Text [ italian ] = "Larghezza" ;
+ Text [ portuguese_brazilian ] = "Largura" ;
+ Text [ portuguese ] = "Largura" ;
+ Text [ finnish ] = "Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "Largeur" ;
+ Text [ swedish ] = "Bredd" ;
+ Text [ dutch ] = "Breedte" ;
+ Text [ spanish ] = "Ancho" ;
+ Text [ english_us ] = "Width" ;
+ Text[ chinese_simplified ] = "¿í";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "•";
+ Text[ chinese_traditional ] = "¼e";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ";
+ Text[ turkish ] = "Geniþlik";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_COL
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 29 , 8 ) ;
+ Text = "~Spalte" ;
+ Text [ ENGLISH ] = "~Column" ;
+ Text [ norwegian ] = "~Kolonne" ;
+ Text [ italian ] = "Colonna" ;
+ Text [ portuguese_brazilian ] = "~Coluna" ;
+ Text [ portuguese ] = "~Coluna" ;
+ Text [ finnish ] = "~Palsta" ;
+ Text [ danish ] = "Kolonne" ;
+ Text [ french ] = "~Colonne" ;
+ Text [ swedish ] = "~Kolumn" ;
+ Text [ dutch ] = "~Kolom" ;
+ Text [ spanish ] = "Colu~mna" ;
+ Text [ english_us ] = "~Column" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "À¸(~C)";
+ Text[ russian ] = "Êîëîíêà";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ(~C)";
+ Text[ chinese_traditional ] = "Äæ(~C)";
+ Text[ arabic ] = "ÇáÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­(~C)";
+ Text[ turkish ] = "~Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_COL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 41 , 14 ) ;
+ Size = MAP_APPFONT ( 38 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Repeat = TRUE ;
+ };
+ Text[ chinese_simplified ] = "À¸¿í";
+ Text[ russian ] = "Øèðèíà êîëîíêè";
+ Text[ polish ] = "SzerokoϾ kolumny";
+ Text[ japanese ] = "—ñ•";
+ Text[ chinese_traditional ] = "Äæ¼e";
+ Text[ arabic ] = "ÚÑÖ ÇáÃÚãÏÉ";
+ Text[ greek ] = "ÐëÜôïò óôÞëçò";
+ Text[ korean ] = "¿­ ³Êºñ";
+ Text[ turkish ] = "Sütun geniþliði";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/convert.cxx b/sw/source/ui/table/convert.cxx
new file mode 100644
index 000000000000..f0c2e798a902
--- /dev/null
+++ b/sw/source/ui/table/convert.cxx
@@ -0,0 +1,331 @@
+/*************************************************************************
+ *
+ * $RCSfile: convert.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#include "swmodule.hxx"
+#include "cmdid.h"
+#include "convert.hxx"
+#include "tablemgr.hxx"
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "tautofmt.hxx"
+#include "tblafmt.hxx"
+
+#include "table.hrc"
+#include "convert.hrc"
+
+
+void SwConvertTableDlg::GetValues( char& rDelim,
+ USHORT& rInsTblFlags,
+ SwTableAutoFmt *& prTAFmt )
+{
+ if( aTabBtn.IsChecked() )
+ rDelim = aKeepColumn.IsChecked() ? 0x09 : 0x0b;
+ else if( aSemiBtn.IsChecked() )
+ rDelim = ';';
+ else if( aOtherBtn.IsChecked() && aOtherEd.GetText().Len() )
+ rDelim = aOtherEd.GetText().GetChar( 0 );
+ else
+ rDelim = cParaDelim;
+
+ rInsTblFlags = 0;
+ if (aBorderCB.IsChecked())
+ rInsTblFlags |= DEFAULT_BORDER;
+ if (aHeaderCB.IsChecked())
+ rInsTblFlags |= HEADLINE;
+ if (aRepeatHeaderCB.IsEnabled() && aRepeatHeaderCB.IsChecked())
+ rInsTblFlags |= REPEAT;
+ if (!aDontSplitCB.IsChecked())
+ rInsTblFlags |= SPLIT_LAYOUT;
+
+ if( pTAutoFmt )
+ prTAFmt = new SwTableAutoFmt( *pTAutoFmt );
+}
+
+
+SwConvertTableDlg::SwConvertTableDlg( SwView& rView )
+
+ : SfxModalDialog( &rView.GetViewFrame()->GetWindow(), SW_RES(DLG_CONV_TEXT_TABLE)),
+
+ aTabBtn (this, SW_RES(CB_TAB)),
+ aSemiBtn (this, SW_RES(CB_SEMI)),
+ aParaBtn (this, SW_RES(CB_PARA)),
+ aDelimFrm (this, SW_RES(GB_DELIM)),
+ aOtherBtn (this, SW_RES(RB_OTHER)),
+ aOtherEd (this, SW_RES(ED_OTHER)),
+ aKeepColumn (this, SW_RES(CB_KEEPCOLUMN)),
+ aHeaderCB (this, SW_RES(CB_HEADER)),
+ aRepeatHeaderCB (this, SW_RES(CB_REPEAT_HEADER)),
+ aDontSplitCB (this, SW_RES(CB_DONT_SPLIT)),
+ aBorderCB (this, SW_RES(CB_BORDER)),
+ aOptionsGB (this, SW_RES(GB_OPTIONS)),
+
+ aOkBtn(this,SW_RES(BT_OK)),
+ aCancelBtn(this,SW_RES(BT_CANCEL)),
+ aHelpBtn(this, SW_RES(BT_HELP)),
+ aAutoFmtBtn(this,SW_RES(BT_AUTOFORMAT)),
+
+ pTAutoFmt( 0 ),
+ pShell( &rView.GetWrtShell() ),
+ sConvertTextTable(SW_RES(STR_CONVERT_TEXT_TABLE))
+{
+ FreeResource();
+ if( 0 == pShell->GetTableFmt() )
+ {
+ SetText( sConvertTextTable );
+ aAutoFmtBtn.SetClickHdl(LINK(this, SwConvertTableDlg, AutoFmtHdl));
+ aAutoFmtBtn.Show();
+ aKeepColumn.Show();
+ aKeepColumn.Enable( aTabBtn.IsChecked() );
+ aKeepColumn.Check( !aTabBtn.IsChecked() );
+ }
+ else
+ {
+ aKeepColumn.Check( TRUE );
+ //Einfuege-Optionen verstecken
+ aHeaderCB .Show(FALSE);
+ aRepeatHeaderCB .Show(FALSE);
+ aDontSplitCB .Show(FALSE);
+ aBorderCB .Show(FALSE);
+ aOptionsGB .Show(FALSE);
+
+ //Groesse anpassen
+ Size aSize(GetSizePixel());
+ aSize.Height() = aDelimFrm.GetSizePixel().Height() + 2 * aDelimFrm.GetPosPixel().Y();
+ SetOutputSizePixel(aSize);
+ }
+ aKeepColumn.SaveValue();
+
+ Link aLk( LINK(this, SwConvertTableDlg, BtnHdl) );
+ aTabBtn.SetClickHdl( aLk );
+ aSemiBtn.SetClickHdl( aLk );
+ aParaBtn.SetClickHdl( aLk );
+ aOtherBtn.SetClickHdl(aLk );
+ aOtherEd.Enable( aOtherBtn.IsChecked() );
+
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+
+ BOOL bHTMLMode = 0 != (::GetHtmlMode(rView.GetDocShell())&HTMLMODE_ON);
+ USHORT nInsTblFlags = pModOpt->GetInsTblFlags(bHTMLMode);
+
+ aHeaderCB.Check(nInsTblFlags & HEADLINE);
+ aRepeatHeaderCB.Check(nInsTblFlags & REPEAT);
+ aDontSplitCB.Check(!(nInsTblFlags & SPLIT_LAYOUT));
+ aBorderCB.Check(nInsTblFlags & DEFAULT_BORDER);
+
+ aHeaderCB.SetClickHdl(LINK(this, SwConvertTableDlg, CheckBoxHdl));
+ CheckBoxHdl();
+}
+
+SwConvertTableDlg:: ~SwConvertTableDlg()
+{
+ delete pTAutoFmt;
+}
+
+IMPL_LINK( SwConvertTableDlg, AutoFmtHdl, PushButton*, pButton )
+{
+ SwAutoFormatDlg aDlg( pButton, pShell, FALSE, pTAutoFmt );
+ if( RET_OK == aDlg.Execute())
+ aDlg.FillAutoFmtOfIndex( pTAutoFmt );
+ return 0;
+}
+
+IMPL_LINK( SwConvertTableDlg, BtnHdl, Button*, pButton )
+{
+ if( pButton == &aTabBtn )
+ aKeepColumn.SetState( aKeepColumn.GetSavedValue() );
+ else
+ {
+ if( aKeepColumn.IsEnabled() )
+ aKeepColumn.SaveValue();
+ aKeepColumn.Check( TRUE );
+ }
+ aKeepColumn.Enable( aTabBtn.IsChecked() );
+ aOtherEd.Enable( aOtherBtn.IsChecked() );
+ return 0;
+}
+
+/*********************************************************************/
+/* */
+/*********************************************************************/
+
+IMPL_LINK(SwConvertTableDlg, CheckBoxHdl, CheckBox*, EMPTYARG)
+{
+ aRepeatHeaderCB.Enable(aHeaderCB.IsChecked());
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.39 2000/09/18 16:06:07 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.38 2000/02/11 14:58:29 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.37 1999/05/03 09:03:16 OS
+ #65612# Einfuegeoptionen nur in einer Richtung anzeigen
+
+
+ Rev 1.36 03 May 1999 11:03:16 OS
+ #65612# Einfuegeoptionen nur in einer Richtung anzeigen
+
+ Rev 1.35 17 Feb 1999 08:39:46 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+ Rev 1.34 02 Dec 1998 15:29:58 OM
+ #59770# Tabellenueberschrift nur auf erster Seite
+
+ Rev 1.33 30 Nov 1998 17:33:40 OM
+ #59770# Tabellenoptionen: Ueberschrift nur auf erster Seite
+
+ Rev 1.32 11 Nov 1998 16:51:58 OM
+ #58158# Einfuegeoptionen fuer Tabellen
+
+ Rev 1.31 09 Jul 1998 22:44:00 JP
+ Bug #52543#: SaveState am KeepButton im CTOR immer rufen
+
+ Rev 1.30 22 Jun 1998 12:54:30 JP
+ Bug #51412#: CTOR TabelleToText - KeepButton checken
+
+ Rev 1.29 15 Jun 1998 20:33:16 JP
+ TextToTable: KommaBtn gegen AndereBtn und -Edit ausgetauscht, OptionCheckBox fuer TabBtnt
+
+ Rev 1.28 29 May 1998 18:55:32 JP
+ SS vom TableAutoFormatDialog hat sich geaendert
+
+ Rev 1.27 13 May 1998 16:00:50 OS
+ HelpButton
+
+ Rev 1.26 12 May 1998 23:42:42 JP
+ neu: InserTable/TextToTable mit optionalen AutoFormat
+
+ Rev 1.25 24 Nov 1997 15:52:22 MA
+ includes
+
+ Rev 1.24 03 Nov 1997 13:56:52 MA
+ precomp entfernt
+
+ Rev 1.23 11 Nov 1996 11:20:02 MA
+ ResMgr
+
+ Rev 1.22 28 Aug 1996 14:33:14 OS
+ includes
+
+ Rev 1.21 26 Jun 1996 15:25:34 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.20 22 Mar 1996 14:16:30 HJS
+ umstellung 311
+
+ Rev 1.19 24 Nov 1995 16:58:56 OM
+ PCH->PRECOMPILED
+
+ Rev 1.18 10 Nov 1995 15:26:44 OS
+ Execute mit 0L abschliessen
+
+ Rev 1.17 07 Nov 1995 07:27:04 OS
+ include tablemgr muss bleiben
+
+ Rev 1.16 06 Nov 1995 17:14:14 OS
+ ConvertDlg ohne TableMgr und RecordFlag
+
+ Rev 1.15 30 Aug 1995 14:02:32 MA
+ fix: sexport'iert
+
+ Rev 1.14 24 Aug 1995 14:33:32 MA
+ swstddlg -> svxstandarddialog
+
+ Rev 1.13 25 Oct 1994 18:52:30 ER
+ add: PCH
+
+ Rev 1.12 26 Feb 1994 02:37:52 ER
+ virt. dtor mit export
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/table/convert.hrc b/sw/source/ui/table/convert.hrc
new file mode 100644
index 000000000000..5bc494667987
--- /dev/null
+++ b/sw/source/ui/table/convert.hrc
@@ -0,0 +1,79 @@
+/*************************************************************************
+ *
+ * $RCSfile: convert.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define CB_TAB 1
+#define CB_SEMI 3
+#define CB_PARA 4
+#define GB_DELIM 5
+#define RB_OTHER 6
+#define ED_OTHER 7
+#define CB_KEEPCOLUMN 8
+#define STR_CONVERT_TEXT_TABLE 9
+#define CB_HEADER 13
+#define CB_REPEAT_HEADER 14
+#define CB_DONT_SPLIT 15
+#define CB_BORDER 16
+#define GB_OPTIONS 17
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_AUTOFORMAT 102
+#define BT_HELP 103
+
diff --git a/sw/source/ui/table/convert.src b/sw/source/ui/table/convert.src
new file mode 100644
index 000000000000..8f1dcaa637f5
--- /dev/null
+++ b/sw/source/ui/table/convert.src
@@ -0,0 +1,485 @@
+/*************************************************************************
+ *
+ * $RCSfile: convert.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "convert.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_CONV_TEXT_TABLE
+{
+ HelpID = FN_CONVERT_TEXT_TABLE ;
+ OUTPUTSIZE = TRUE ;
+ Size = MAP_APPFONT ( 193 , 144 ) ;
+ TEXT = "Tabelle in Text umwandeln" ;
+ TEXT [ ENGLISH ] = "Convert table to text" ;
+ TEXT [ norwegian ] = "Omdann tabell til tekst" ;
+ TEXT [ italian ] = "Converti tabella in testo" ;
+ TEXT [ portuguese_brazilian ] = "Converter tabela em texto" ;
+ TEXT [ portuguese ] = "Converter tabela em texto" ;
+ TEXT [ finnish ] = "Muunna taulukko tekstiksi" ;
+ TEXT [ danish ] = "Konverter tabel til tekst" ;
+ TEXT [ french ] = "Convertir tableau en texte" ;
+ TEXT [ swedish ] = "Omvandla tabell till text" ;
+ TEXT [ dutch ] = "Tabel naar tekst converteren" ;
+ TEXT [ spanish ] = "Convertir tabla en texto" ;
+ TEXT [ english_us ] = "Convert Table to Text" ;
+ MOVEABLE = TRUE ;
+ SVLOOK = TRUE ;
+ RadioButton CB_TAB
+ {
+ Pos = MAP_APPFONT ( 12 , 17 ) ;
+ Size = MAP_APPFONT ( 55 , 10 ) ;
+ TEXT = "~Tabulator" ;
+ TEXT [ ENGLISH ] = "~Tab" ;
+ TEXT [ norwegian ] = "~Tab" ;
+ TEXT [ italian ] = "~Tabulazione" ;
+ TEXT [ portuguese_brazilian ] = "~Tabulação" ;
+ TEXT [ portuguese ] = "~Tabulações" ;
+ TEXT [ finnish ] = "~Sarkain" ;
+ TEXT [ danish ] = "Tabulator" ;
+ TEXT [ french ] = "~Tabulation" ;
+ TEXT [ swedish ] = "~Tabulator" ;
+ TEXT [ dutch ] = "~Tab" ;
+ TEXT [ spanish ] = "Tabu~lación" ;
+ TEXT [ english_us ] = "~Tabs" ;
+ TABSTOP = TRUE ;
+ Group = TRUE ;
+ Check = TRUE ;
+ TEXT[ chinese_simplified ] = "ÖƱí·û(~T)";
+ TEXT[ russian ] = "Òàáóëÿòîð";
+ TEXT[ polish ] = "Tabulator";
+ TEXT[ japanese ] = "ÀÌÞ(~T)";
+ TEXT[ chinese_traditional ] = "»sªí²Å(~T)";
+ TEXT[ arabic ] = "ÚáÇãÉ ÌÏæáÉ";
+ TEXT[ greek ] = "Ó~ôçëïèÝôçò";
+ TEXT[ korean ] = "ÅÇ(~T)";
+ TEXT[ turkish ] = "~Sekme";
+ TEXT[ language_user1 ] = " ";
+ };
+ RadioButton CB_SEMI
+ {
+ Pos = MAP_APPFONT ( 70 , 17 ) ;
+ Size = MAP_APPFONT ( 55 , 10 ) ;
+ TEXT = "~Semikolon" ;
+ TEXT [ ENGLISH ] = "~Semicolon" ;
+ TEXT [ norwegian ] = "~Semikolon" ;
+ TEXT [ italian ] = "~Punto e virgola" ;
+ TEXT [ portuguese_brazilian ] = "~Ponto e vírgula" ;
+ TEXT [ portuguese ] = "Ponto e vír~gula" ;
+ TEXT [ finnish ] = "~Puolipiste" ;
+ TEXT [ danish ] = "Semikolon" ;
+ TEXT [ french ] = "~Point virgule" ;
+ TEXT [ swedish ] = "~Semikolon" ;
+ TEXT [ dutch ] = "~Puntkomma" ;
+ TEXT [ spanish ] = "Punto y co~ma" ;
+ TEXT [ english_us ] = "~Semicolons" ;
+ TABSTOP = TRUE ;
+ TEXT[ chinese_simplified ] = "·ÖºÅ(~S)";
+ TEXT[ russian ] = "Òî÷êà ñ çàïÿòîé";
+ TEXT[ polish ] = "Œrednik";
+ TEXT[ japanese ] = "¾ÐºÛÝ(~S)";
+ TEXT[ chinese_traditional ] = "¤À¸¹(~S)";
+ TEXT[ arabic ] = "ÇáÝÇÕáÉ ÇáãäÞæØÉ";
+ TEXT[ greek ] = "¢íù ôå~ëåßá";
+ TEXT[ korean ] = "¼¼¹ÌÄÝ·Ð(~S)";
+ TEXT[ turkish ] = "N~oktalý virgül";
+ TEXT[ language_user1 ] = " ";
+ };
+ RadioButton CB_PARA
+ {
+ Pos = MAP_APPFONT ( 12 , 33 ) ;
+ Size = MAP_APPFONT ( 55 , 10 ) ;
+ TEXT = "~Absatz" ;
+ TEXT [ ENGLISH ] = "~Paragraph" ;
+ TEXT [ norwegian ] = "~Paragraf" ;
+ TEXT [ italian ] = "~Paragrafo" ;
+ TEXT [ portuguese_brazilian ] = "~Parágrafo" ;
+ TEXT [ portuguese ] = "~Parágrafo" ;
+ TEXT [ finnish ] = "~Kappale" ;
+ TEXT [ danish ] = "Afsnit" ;
+ TEXT [ french ] = "~Paragraphe" ;
+ TEXT [ swedish ] = "Styc~ke" ;
+ TEXT [ dutch ] = "~Alinea" ;
+ TEXT [ spanish ] = "~Párrafo" ;
+ TEXT [ english_us ] = "~Paragraph" ;
+ TABSTOP = TRUE ;
+ TEXT[ chinese_simplified ] = "¶ÎÂä(~P)";
+ TEXT[ russian ] = "Àáçàö";
+ TEXT[ polish ] = "Akapit";
+ TEXT[ japanese ] = "’i—Ž(~P)";
+ TEXT[ chinese_traditional ] = "¬q¸¨(~P)";
+ TEXT[ arabic ] = "ÇáÝÞÑÉ";
+ TEXT[ greek ] = "Ð~áñÜãñáöïò";
+ TEXT[ korean ] = "´Ü¶ô(~P)";
+ TEXT[ turkish ] = "~Paragraf";
+ TEXT[ language_user1 ] = " ";
+ };
+ RadioButton RB_OTHER
+ {
+ Pos = MAP_APPFONT ( 70 , 33 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ TEXT = "An~dere: " ;
+ TEXT [ ENGLISH ] = "~Other: " ;
+ Text [ portuguese ] = "~Outros: " ;
+ Text [ english_us ] = "~Other: " ;
+ Text [ portuguese_brazilian ] = "An~dere: " ;
+ Text [ swedish ] = "An~dra: " ;
+ Text [ danish ] = "Andre: " ;
+ Text [ italian ] = "~Altri: " ;
+ Text [ spanish ] = "~Otros: " ;
+ Text [ french ] = "~Autre(s):[_]" ;
+ Text [ dutch ] = "An~dere: " ;
+ Text[ chinese_simplified ] = "ÆäËû(~O)";
+ Text[ russian ] = "Äðóãèå: ";
+ Text[ polish ] = "Inne: ";
+ Text[ japanese ] = "‚»‚Ì‘¼(~O)";
+ Text[ chinese_traditional ] = "¨ä¥L(~O)";
+ Text[ arabic ] = "ÛíÑ Ðáß: ";
+ Text[ greek ] = "¢ëëá: ";
+ Text[ korean ] = "±âŸ (~O)";
+ Text[ turkish ] = "Di~ðer: ";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_OTHER
+ {
+ Border = TRUE ;
+ Left = TRUE ;
+ Pos = MAP_APPFONT ( 113 , 32 ) ;
+ Size = MAP_APPFONT ( 9 , 12 ) ;
+ Text = "," ;
+ MaxTextLength = 1 ;
+ };
+ CheckBox CB_KEEPCOLUMN
+ {
+ Pos = MAP_APPFONT ( 12 , 49 ) ;
+ Size = MAP_APPFONT ( 110 , 10 ) ;
+ Text = "Gleiche ~Breite aller Spalten" ;
+ TEXT [ ENGLISH ] = "Equal width for all columns" ;
+ Hide = TRUE ;
+ Text [ english_us ] = "Equal width for all columns" ;
+ Text [ portuguese_brazilian ] = "gleiche Breite aller Spalten" ;
+ Text [ swedish ] = "Samma bredd på alla kolumner" ;
+ Text [ danish ] = "Alle kolonner samme bredde" ;
+ Text [ italian ] = "~Larghezza uguale per tutte le colonne" ;
+ Text [ spanish ] = "Mismo an~cho para todas las columnas" ;
+ Text [ french ] = "~Largeur identique pour toutes les colonnes" ;
+ Text [ dutch ] = "~Alle kolommen dezelfde breedte" ;
+ Text [ portuguese ] = "~Largura igual para todas as colunas" ;
+ Text[ chinese_simplified ] = "ËùÓÐÁеĿí¶ÈÏàͬ";
+ Text[ russian ] = "Îäèíàêîâàÿ øèðèíà âñåõ êîëîíîê";
+ Text[ polish ] = "~Jednakowa szerokoϾ wszystk. kolumn";
+ Text[ japanese ] = "‚·‚ׂĂ̗ñ•‚𓯂¶‚É";
+ Text[ chinese_traditional ] = "©Ò¦³Äæ¼e«×¬Û¦P";
+ Text[ arabic ] = "äÝÓ ÇáÚÑÖ áßá ÇáÃÚãÏÉ";
+ Text[ greek ] = "ºäéï ~ðëÜôïò ãéá üëåò ôéò óôÞëåò";
+ Text[ korean ] = "¸ðµç ¿­ ³Êºñ °°°Ô";
+ Text[ turkish ] = "Tüm sütunlar a~yný geniþlikte";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_DELIM
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 125 , 62 ) ;
+ TEXT = "Trennzeichen im Text" ;
+ TEXT [ ENGLISH ] = "Delimiter" ;
+ TEXT [ norwegian ] = "Skilletegn" ;
+ TEXT [ italian ] = "Separatore nel testo" ;
+ TEXT [ portuguese_brazilian ] = "Delimitador" ;
+ TEXT [ portuguese ] = "Separador" ;
+ TEXT [ finnish ] = "Erotin" ;
+ TEXT [ danish ] = "Separatorer i tekst" ;
+ TEXT [ french ] = "Séparateur" ;
+ TEXT [ swedish ] = "Skiljetecken i text" ;
+ TEXT [ dutch ] = "Scheidingsteken in tekst" ;
+ TEXT [ spanish ] = "Delimitador en texto" ;
+ TEXT [ english_us ] = "Separate text at" ;
+ Group = TRUE ;
+ TEXT[ chinese_simplified ] = "ÕýÎÄÄڵķָô·û";
+ TEXT[ russian ] = "Ðàçäåëèòåëü òåêñòà";
+ TEXT[ polish ] = "Separator w tekœcie";
+ TEXT[ japanese ] = "÷½Ä“à‚Ì‹æØ‚è‹L†";
+ TEXT[ chinese_traditional ] = "¤º¤åªº¤À¹j²Å";
+ TEXT[ arabic ] = "ÚáÇãÇÊ ÇáÝÕá Ýí ÇáäÕ";
+ TEXT[ greek ] = "Åíùôéêü ìÝóá óôï êåßìåíï";
+ TEXT[ korean ] = "ÅؽºÆ® ±¸ºÐ ±âÈ£";
+ TEXT[ turkish ] = "Metin ayýrma iþareti";
+ TEXT[ language_user1 ] = " ";
+ };
+ CheckBox CB_HEADER
+ {
+ Pos = MAP_APPFONT ( 12 , 84 ) ;
+ Size = MAP_APPFONT ( 113 , 10 ) ;
+ Text = "Übe~rschrift" ;
+ Text [ ENGLISH ] = "Header" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Intestazione";
+ Text[ portuguese_brazilian ] = "Header";
+ Text[ portuguese ] = "~Título";
+ Text[ danish ] = "Overskrift";
+ Text[ french ] = "T~itre";
+ Text[ swedish ] = "Öve~rskrift";
+ Text[ dutch ] = "~Kop";
+ Text[ spanish ] = "~Encabezado";
+ Text[ english_us ] = "Header";
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "Œ©o‚µ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Åðéêå~öáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Baþ~lýk";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_REPEAT_HEADER
+ {
+ Pos = MAP_APPFONT ( 22 , 97 ) ;
+ Size = MAP_APPFONT ( 103 , 10 ) ;
+ Text = "Auf jeder Seite ~wiederholen" ;
+ Text [ ENGLISH ] = "Repeat on every page" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Ripeti su ogni pagina";
+ Text[ portuguese_brazilian ] = "Repeat Header";
+ Text[ portuguese ] = "~Repetir em todas as páginas";
+ Text[ danish ] = "Gentag på hver side";
+ Text[ french ] = "~Répéter sur chaque page";
+ Text[ swedish ] = "~Upprepa på varje sida";
+ Text[ dutch ] = "Op iedere pagina ~herhalen";
+ Text[ spanish ] = "~Repetir en cada página";
+ Text[ english_us ] = "~Repeat header";
+ Text[ chinese_simplified ] = "ÔÚÿҳÉÏÖظ´ÏÔʾ";
+ Text[ russian ] = "Ïîâòîð íà êàæäîé ñòðàíèöå";
+ Text[ polish ] = "Powtórz na ~ka¿dej stronie";
+ Text[ japanese ] = "ŠeÍß°¼Þ‚ÉŒJ‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "¦b¨C­¶¤W­«½ÆÅã¥Ü";
+ Text[ arabic ] = "ÊßÑÇÑ Ýí ßá ÕÝÍÉ";
+ Text[ greek ] = "Åì~öÜíéóç óå êÜèå óåëßäá";
+ Text[ korean ] = "¸Ó¸®±Û ¹Ýº¹(~R)";
+ Text[ turkish ] = "Ýlk satýrý her sayfada yi~nele";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_DONT_SPLIT
+ {
+ Pos = MAP_APPFONT ( 12 , 110 ) ;
+ Size = MAP_APPFONT ( 113 , 10 ) ;
+ Text = "Tabelle ~nicht trennen" ;
+ Text [ ENGLISH ] = "Don't split table" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Non separare la tabella";
+ Text[ portuguese_brazilian ] = "Don't split table";
+ Text[ portuguese ] = "Não ~dividir tabela";
+ Text[ danish ] = "Opdel tabel ikke";
+ Text[ french ] = "Pas de c~oupure de tableau";
+ Text[ swedish ] = "Dela i~nte tabell";
+ Text[ dutch ] = "Tabel niet ~splitsen";
+ Text[ spanish ] = "~No dividir tabla";
+ Text[ english_us ] = "Don't split table";
+ Text[ chinese_simplified ] = "²»·Ö¸ô±í¸ñ";
+ Text[ russian ] = "Íå ðàçáèâàòü òàáëèöó";
+ Text[ polish ] = "Nie dziel tabeli";
+ Text[ japanese ] = "•\\‚𕪊„‚µ‚È‚¢";
+ Text[ chinese_traditional ] = "¤£¤À¶}ªí®æ";
+ Text[ arabic ] = "ÚÏã ÝÕá ÇáÌÏæá";
+ Text[ greek ] = "¼÷é äéáßñåóç ôïõ ðß~íáêá";
+ Text[ korean ] = "Ç¥¸¦ ÂÉ°³Áö ¸¶½Ê½Ã¿À.";
+ Text[ turkish ] = "Tabloyu tek sayfaya ~sýðdýr";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_BORDER
+ {
+ Pos = MAP_APPFONT ( 12 , 123 ) ;
+ Size = MAP_APPFONT ( 93 , 10 ) ;
+ Text = "~Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Bordo";
+ Text[ portuguese_brazilian ] = "Border";
+ Text[ portuguese ] = "~Contornos";
+ Text[ danish ] = "Ramme";
+ Text[ french ] = "~Bordure";
+ Text[ swedish ] = "Inra~mning";
+ Text[ dutch ] = "~Omranding";
+ Text[ spanish ] = "~Borde";
+ Text[ english_us ] = "Border";
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñá~ììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "~Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_OPTIONS
+ {
+ Pos = MAP_APPFONT ( 6 , 71 ) ;
+ Size = MAP_APPFONT ( 125 , 69 ) ;
+ Text = "Optionen" ;
+ Text [ English ] = "Options" ;
+ Text[ italian ] = "Opzioni";
+ Text[ portuguese_brazilian ] = "Options";
+ Text[ portuguese ] = "Opções";
+ Text[ danish ] = "Indstillinger";
+ Text[ french ] = "Options";
+ Text[ swedish ] = "Alternativ";
+ Text[ dutch ] = "Opties";
+ Text[ spanish ] = "Opciones";
+ Text[ english_us ] = "Options";
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÇáÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_CONVERT_TEXT_TABLE
+ {
+ TEXT = "Text in Tabelle umwandeln" ;
+ TEXT [ ENGLISH ] = "Convert text to table" ;
+ TEXT [ norwegian ] = "Omdann tekst til tabell" ;
+ TEXT [ italian ] = "Converti testo in tabella" ;
+ TEXT [ portuguese_brazilian ] = "Converter texto em tabela" ;
+ TEXT [ portuguese ] = "Converter texto em tabela" ;
+ TEXT [ finnish ] = "Muunna teksti taulukoksi" ;
+ TEXT [ danish ] = "Konverter tekst til tabel" ;
+ TEXT [ french ] = "Convertir texte en tableau" ;
+ TEXT [ swedish ] = "Omvandla text till tabell" ;
+ TEXT [ dutch ] = "Tekst naar tabel converteren" ;
+ TEXT [ spanish ] = "Convertir texto en tabla" ;
+ TEXT [ english_us ] = "Convert Text to Table" ;
+ TEXT[ chinese_simplified ] = "ÎÄ×Öת»»³É±í¸ñ";
+ TEXT[ russian ] = "Ïðåîáðàçîâàòü òåêñò â òàáëèöó";
+ TEXT[ polish ] = "Konwertuj tekst na tabelê";
+ TEXT[ japanese ] = "•¶Žš—ñ‚ð•\\‚É‚·‚é";
+ TEXT[ chinese_traditional ] = "¤å¦rÂà´«¦¨ªí®æ";
+ TEXT[ arabic ] = "ÊÍæíá ÇáäÕ Åáì ÌÏæá";
+ TEXT[ greek ] = "ÌåôáôñïðÞ êåéìÝíïõ óå ðßíáêá";
+ TEXT[ korean ] = "ÅؽºÆ®¸¦ Ç¥·Î Àüȯ";
+ TEXT[ turkish ] = "Metni tabloya dönüþtür";
+ TEXT[ language_user1 ] = " ";
+ };
+ OkButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 137 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TABSTOP = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 137 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TABSTOP = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 137 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TABSTOP = TRUE ;
+ };
+ PushButton BT_AUTOFORMAT
+ {
+ Pos = MAP_APPFONT ( 137 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Hide = TRUE ;
+ Text = "Auto~format..." ;
+ Text [ ENGLISH ] = "Autoformat..." ;
+ Text [ norwegian ] = "Autoformat..." ;
+ Text [ italian ] = "~Formattazione automatica..." ;
+ Text [ portuguese_brazilian ] = "Formatação Automática..." ;
+ Text [ portuguese ] = "Auto~Formato..." ;
+ Text [ finnish ] = "Automaattimuoto..." ;
+ Text [ danish ] = "AutoFormat..." ;
+ Text [ french ] = "AutoFormat..." ;
+ Text [ swedish ] = "AutoFormat..." ;
+ Text [ dutch ] = "Auto~Opmaak..." ;
+ Text [ spanish ] = "Auto~Formato..." ;
+ Text [ english_us ] = "Auto~Format..." ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ(~F)...";
+ Text[ russian ] = "Àâòîôîðìàò...";
+ Text[ polish ] = "Autoformat...";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä(~F)...";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡(~F)...";
+ Text[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí...";
+ Text[ greek ] = "ÁõôïÌïñ~öÞ...";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä(~F)...";
+ Text[ turkish ] = "Otomatik ~formatlama...";
+ Text[ language_user1 ] = " ";
+ };
+ TEXT[ chinese_simplified ] = "ת»»±í¸ñ³ÉÎÄ×Ö";
+ TEXT[ russian ] = "Ïðåîáðàçîâàòü òàáëèöó â òåêñò";
+ TEXT[ polish ] = "Konwertuj tabelê na tekst";
+ TEXT[ japanese ] = "•\\‚𕶑‚É‚·‚é";
+ TEXT[ chinese_traditional ] = "Âà´«ªí®æ¦¨¤å¦r";
+ TEXT[ arabic ] = "ÊÍæíá ÇáÌÏæá Åáì äÕ";
+ TEXT[ greek ] = "ÌåôáôñïðÞ ðßíáêá óå êåßìåíï";
+ TEXT[ korean ] = "Ç¥¸¦ ÅؽºÆ®·Î º¯È¯";
+ TEXT[ turkish ] = "Tabloyu metne dönüþtür";
+ TEXT[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/insrc.cxx b/sw/source/ui/table/insrc.cxx
new file mode 100644
index 000000000000..d661797cad59
--- /dev/null
+++ b/sw/source/ui/table/insrc.cxx
@@ -0,0 +1,203 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "swtypes.hxx"
+#include "insrc.hxx"
+#include "view.hxx"
+#include "table.hrc"
+#include "insrc.hrc"
+
+
+
+
+void SwInsRowColDlg::Apply()
+{
+ USHORT nSlot = bColumn ? FN_TABLE_INSERT_COL : FN_TABLE_INSERT_ROW;
+ SfxUInt16Item aCount( nSlot, aCountEdit.GetValue() );
+ SfxBoolItem aAfter( FN_PARAM_INSERT_AFTER, aAfterBtn.IsChecked() );
+ rView.GetViewFrame()->GetDispatcher()->Execute( nSlot,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aCount, &aAfter, 0L);
+}
+
+
+
+SwInsRowColDlg::SwInsRowColDlg(SwView& rVw, BOOL bCol )
+ : SvxStandardDialog( rVw.GetWindow(), SW_RES(DLG_INS_ROW_COL) ),
+ aCount( this, SW_RES( FT_COUNT ) ),
+ aCountEdit( this, SW_RES( ED_COUNT ) ),
+ aInsGrp( this, SW_RES( GB_INS ) ),
+ aBeforeBtn( this, SW_RES( CB_POS_BEFORE ) ),
+ aAfterBtn( this, SW_RES( CB_POS_AFTER ) ),
+ aPosGrp( this, SW_RES( GB_POS ) ),
+ aRow(SW_RES(STR_ROW)),
+ aCol(SW_RES(STR_COL)),
+ aOKBtn( this, SW_RES( BT_OK ) ),
+ aCancelBtn( this, SW_RES( BT_CANCEL ) ),
+ aHelpBtn( this, SW_RES( BT_HELP ) ),
+ rView(rVw),
+ bColumn( bCol )
+{
+ FreeResource();
+ String aTmp( GetText() );
+ if( bColumn )
+ {
+ aTmp += aCol;
+ SetHelpId( FN_TABLE_INSERT_COL_DLG );
+ }
+ else
+ {
+ aTmp += aRow;
+ SetHelpId( FN_TABLE_INSERT_ROW_DLG );
+ }
+ SetText( aTmp );
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.30 2000/09/18 16:06:08 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.29 2000/09/07 15:59:31 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.28 1998/05/13 14:00:48 OS
+ HelpButton
+
+
+ Rev 1.27 13 May 1998 16:00:48 OS
+ HelpButton
+
+ Rev 1.26 24 Nov 1997 15:52:22 MA
+ includes
+
+ Rev 1.25 03 Nov 1997 13:56:52 MA
+ precomp entfernt
+
+ Rev 1.24 14 Nov 1996 15:43:44 TRI
+ includes
+
+ Rev 1.23 11 Nov 1996 11:20:10 MA
+ ResMgr
+
+ Rev 1.22 04 Sep 1996 11:16:52 JP
+ TableManager wird nicht mehr benoetigt
+
+ Rev 1.21 28 Aug 1996 14:33:14 OS
+ includes
+
+ Rev 1.20 26 Jun 1996 15:25:20 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.19 22 Mar 1996 14:16:32 HJS
+ umstellung 311
+
+ Rev 1.18 24 Nov 1995 16:58:58 OM
+ PCH->PRECOMPILED
+
+ Rev 1.17 10 Nov 1995 15:26:16 OS
+ Execute mit 0L abschliessen
+
+ Rev 1.16 05 Nov 1995 16:49:32 OS
+ Dtor ueberfluessig, -RecordFlag, Aktion ueber Dispatcher
+
+ Rev 1.15 13 Sep 1995 17:10:04 OS
+ Recording ausgeweitet
+
+ Rev 1.14 30 Aug 1995 14:02:52 MA
+ fix: sexport'iert
+
+ Rev 1.13 21 Aug 1995 09:34:28 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.12 25 Oct 1994 18:52:28 ER
+ add: PCH
+
+ Rev 1.11 20 Apr 1994 15:34:20 MA
+ operator Optimierung.
+
+------------------------------------------------------------------------*/
+
+
+
+
diff --git a/sw/source/ui/table/insrc.hrc b/sw/source/ui/table/insrc.hrc
new file mode 100644
index 000000000000..a11b42dfddad
--- /dev/null
+++ b/sw/source/ui/table/insrc.hrc
@@ -0,0 +1,74 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrc.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define FT_COUNT 1
+#define ED_COUNT 2
+#define GB_INS 3
+
+#define CB_POS_BEFORE 10
+#define CB_POS_AFTER 11
+#define GB_POS 12
+
+#define STR_ROW 20
+#define STR_COL 21
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
diff --git a/sw/source/ui/table/insrc.src b/sw/source/ui/table/insrc.src
new file mode 100644
index 000000000000..4bbb7060495c
--- /dev/null
+++ b/sw/source/ui/table/insrc.src
@@ -0,0 +1,305 @@
+/*************************************************************************
+ *
+ * $RCSfile: insrc.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "insrc.hrc"
+#include "helpid.h"
+ // #define DLG_INS_ROW_COL 256
+ModalDialog DLG_INS_ROW_COL
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 131 , 84 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einfügen : Einf³gen */
+ Text = "Einfügen" ;
+ Text [ ENGLISH ] = "Insert" ;
+ Text [ norwegian ] = "Sett inn" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Inserir" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text [ finnish ] = "Lisää" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ french ] = "Insérer" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ english_us ] = "Insert" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 75 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 75 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 75 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ RadioButton CB_POS_BEFORE
+ {
+ Pos = MAP_APPFONT ( 12 , 49 ) ;
+ Size = MAP_APPFONT ( 33 , 10 ) ;
+ Text = "da~vor" ;
+ Text [ ENGLISH ] = "~before" ;
+ Text [ norwegian ] = "~før" ;
+ Text [ italian ] = "Davanti" ;
+ Text [ portuguese_brazilian ] = "~antes" ;
+ Text [ portuguese ] = "à ~frente" ;
+ Text [ finnish ] = "~edelle" ;
+ Text [ danish ] = "foran" ;
+ Text [ french ] = "A~vant" ;
+ Text [ swedish ] = "~framför" ;
+ Text [ dutch ] = "~ervoor" ;
+ Text [ spanish ] = "De~lante" ;
+ Text [ english_us ] = "~Before" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~B)";
+ Text[ russian ] = "ïåðåä";
+ Text[ polish ] = "prze~d";
+ Text[ japanese ] = "‘O‚Å(~B)";
+ Text[ chinese_traditional ] = "¤§«e(~B)";
+ Text[ arabic ] = "ÞÈá";
+ Text[ greek ] = "Ðñéí áðü";
+ Text[ korean ] = "ÀÌÀü(~B)";
+ Text[ turkish ] = "ön~üne";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton CB_POS_AFTER
+ {
+ Pos = MAP_APPFONT ( 12 , 62 ) ;
+ Size = MAP_APPFONT ( 39 , 10 ) ;
+ Text = "da~hinter" ;
+ Text [ ENGLISH ] = "~behind" ;
+ Text [ norwegian ] = "~bak" ;
+ Text [ italian ] = "~Dietro" ;
+ Text [ portuguese_brazilian ] = "~atrás" ;
+ Text [ portuguese ] = "~atrás" ;
+ Text [ finnish ] = "~jälkeen" ;
+ Text [ danish ] = "efter" ;
+ Text [ french ] = "~Après" ;
+ Text [ swedish ] = "~bakom" ;
+ Text [ dutch ] = "e~rachter" ;
+ Text [ spanish ] = "de~trás" ;
+ Text [ english_us ] = "A~fter" ;
+ TabStop = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "Ö®ºó(~F)";
+ Text[ russian ] = "ïîñëå";
+ Text[ polish ] = "za";
+ Text[ japanese ] = "Œã‚Å(~F)";
+ Text[ chinese_traditional ] = "¤§«á(~F)";
+ Text[ arabic ] = "ÈÚÏ";
+ Text[ greek ] = "ìåôÜ áðü";
+ Text[ korean ] = "ÀÌÈÄ(~F)";
+ Text[ turkish ] = "ar~kasýna";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_COUNT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 39 , 14 ) ;
+ Size = MAP_APPFONT ( 24 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 5 ;
+ };
+ GroupBox GB_INS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 63 , 32 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einfügen : Einf³gen */
+ Text = "Einfügen" ;
+ Text [ ENGLISH ] = "Insert" ;
+ Text [ norwegian ] = "Sett inn" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Inserir" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text [ finnish ] = "Lisää" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ french ] = "Insérer" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ english_us ] = "Insert" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_POS
+ {
+ Pos = MAP_APPFONT ( 6 , 38 ) ;
+ Size = MAP_APPFONT ( 63 , 40 ) ;
+ Text = "Position" ;
+ };
+ FixedText FT_COUNT
+ {
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 24 , 8 ) ;
+ Text = "~Anzahl" ;
+ Text [ ENGLISH ] = "~Amount" ;
+ Text [ norwegian ] = "~Beløp" ;
+ Text [ italian ] = "Numero" ;
+ Text [ portuguese_brazilian ] = "~Quantidade" ;
+ Text [ portuguese ] = "~Quantidade" ;
+ Text [ finnish ] = "~Määrä" ;
+ Text [ danish ] = "Antal" ;
+ Text [ french ] = "~Nombre" ;
+ Text [ swedish ] = "~Antal" ;
+ Text [ dutch ] = "~Aantal" ;
+ Text [ spanish ] = "~Cantidad" ;
+ Text [ english_us ] = "~Amount" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÊýÄ¿(~A)";
+ Text[ russian ] = "×èñëî";
+ Text[ polish ] = "Liczba";
+ Text[ japanese ] = "‘”(~A)";
+ Text[ chinese_traditional ] = "¼Æ¥Ø(~A)";
+ Text[ arabic ] = "ÇáÚÏÏ";
+ Text[ greek ] = "~Áñéèìüò";
+ Text[ korean ] = "¾ç(~A)";
+ Text[ turkish ] = "~Adet";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_ROW
+ {
+ Text = " Zeilen" ;
+ Text [ ENGLISH ] = " rows" ;
+ Text [ norwegian ] = " rader" ;
+ Text [ italian ] = "righe" ;
+ Text [ portuguese_brazilian ] = "fileiras" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text [ finnish ] = " rivejä" ;
+ Text [ danish ] = "rækker" ;
+ Text [ french ] = "~Lignes" ;
+ Text [ swedish ] = "rader" ;
+ Text [ dutch ] = "Rijen" ;
+ Text [ spanish ] = "Filas" ;
+ Text [ english_us ] = "Rows" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÕÝæÝ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_COL
+ {
+ Text = " Spalten" ;
+ Text [ ENGLISH ] = " columns" ;
+ Text [ norwegian ] = " kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = " sarakkeita" ;
+ Text [ danish ] = "kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "—ñ";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâèòü";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx
new file mode 100644
index 000000000000..84c4cc3a1e17
--- /dev/null
+++ b/sw/source/ui/table/instable.cxx
@@ -0,0 +1,308 @@
+/*************************************************************************
+ *
+ * $RCSfile: instable.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "itabenum.hxx"
+#include "instable.hxx"
+#include "tautofmt.hxx"
+#include "tblafmt.hxx"
+#include "modcfg.hxx"
+#include "swmodule.hxx"
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+
+#include "table.hrc"
+#include "instable.hrc"
+
+#define ROW_COL_PROD 16384
+
+void SwInsTableDlg::GetValues( String& rName, USHORT& rRow, USHORT& rCol,
+ USHORT& rInsTblFlags,
+ SwTableAutoFmt *& prTAFmt )
+{
+ rName = aNameEdit.GetText();
+ rRow = (USHORT)aRowEdit.GetValue();
+ rCol = (USHORT)aColEdit.GetValue();
+
+ rInsTblFlags = 0;
+ if (aBorderCB.IsChecked())
+ rInsTblFlags |= DEFAULT_BORDER;
+ if (aHeaderCB.IsChecked())
+ rInsTblFlags |= HEADLINE;
+ if (aRepeatHeaderCB.IsEnabled() && aRepeatHeaderCB.IsChecked())
+ rInsTblFlags |= REPEAT;
+ if (!aDontSplitCB.IsChecked())
+ rInsTblFlags |= SPLIT_LAYOUT;
+ if( pTAutoFmt )
+ prTAFmt = new SwTableAutoFmt( *pTAutoFmt );
+}
+
+// CTOR / DTOR -----------------------------------------------------------
+
+
+SwInsTableDlg::SwInsTableDlg( SwView& rView )
+ : SfxModalDialog( rView.GetWindow(), SW_RES(DLG_INSERT_TABLE) ),
+ aNameEdit (this, SW_RES(ED_NAME)),
+ aNameFrm (this, SW_RES(GB_NAME)),
+ aColLbl (this, SW_RES(FT_COL)),
+ aColEdit (this, SW_RES(ED_COL)),
+ aRowLbl (this, SW_RES(FT_ROW)),
+ aRowEdit (this, SW_RES(ED_ROW)),
+ aFrm (this, SW_RES(GB_TABLE)),
+ aHeaderCB (this, SW_RES(CB_HEADER)),
+ aRepeatHeaderCB (this, SW_RES(CB_REPEAT_HEADER)),
+ aDontSplitCB (this, SW_RES(CB_DONT_SPLIT)),
+ aBorderCB (this, SW_RES(CB_BORDER)),
+ aOptionsGB (this, SW_RES(GB_OPTIONS)),
+ aOkBtn (this, SW_RES(BT_OK)),
+ aCancelBtn (this, SW_RES(BT_CANCEL)),
+ aHelpBtn (this, SW_RES(BT_HELP)),
+ aAutoFmtBtn (this, SW_RES(BT_AUTOFORMAT)),
+ pTAutoFmt( 0 ),
+ pShell(&rView.GetWrtShell())
+{
+ FreeResource();
+ aNameEdit.SetText(pShell->GetUniqueTblName());
+ aNameEdit.SetModifyHdl(LINK(this, SwInsTableDlg, ModifyName));
+ aColEdit.SetModifyHdl(LINK(this, SwInsTableDlg, ModifyRowCol));
+ aRowEdit.SetModifyHdl(LINK(this, SwInsTableDlg, ModifyRowCol));
+
+ aRowEdit.SetMax(ROW_COL_PROD/aColEdit.GetValue());
+ aColEdit.SetMax(ROW_COL_PROD/aRowEdit.GetValue());
+ aAutoFmtBtn.SetClickHdl(LINK(this, SwInsTableDlg, AutoFmtHdl));
+
+ BOOL bHTMLMode = 0 != (::GetHtmlMode(rView.GetDocShell())&HTMLMODE_ON);
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+
+ USHORT nInsTblFlags = pModOpt->GetInsTblFlags(bHTMLMode);
+
+ aHeaderCB.Check(nInsTblFlags & HEADLINE);
+ aRepeatHeaderCB.Check(nInsTblFlags & REPEAT);
+ aDontSplitCB.Check(!(nInsTblFlags & SPLIT_LAYOUT));
+ aBorderCB.Check(nInsTblFlags & DEFAULT_BORDER);
+
+ aHeaderCB.SetClickHdl(LINK(this, SwInsTableDlg, CheckBoxHdl));
+ CheckBoxHdl();
+}
+
+SwInsTableDlg::~SwInsTableDlg()
+{
+ delete pTAutoFmt;
+}
+
+IMPL_LINK_INLINE_START( SwInsTableDlg, ModifyName, Edit *, pEdit )
+{
+ String sTblName = pEdit->GetText();
+ if(sTblName.Search(' ') != STRING_NOTFOUND)
+ {
+ sTblName.EraseAllChars( );
+ pEdit->SetText(sTblName);
+ }
+
+ aOkBtn.Enable(pShell->GetTblStyle( sTblName ) == 0);
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwInsTableDlg, ModifyName, Edit *, EMPTYARG )
+
+/*-----------------15.04.98 11:36-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwInsTableDlg, ModifyRowCol, NumericField *, pField )
+{
+ if(pField == &aColEdit)
+ {
+ long nCol = aColEdit.GetValue();
+ aRowEdit.SetMax(ROW_COL_PROD/nCol);
+ }
+ else
+ {
+ long nRow = aRowEdit.GetValue();
+ aColEdit.SetMax(ROW_COL_PROD/nRow);
+ }
+ return 0;
+}
+
+IMPL_LINK( SwInsTableDlg, AutoFmtHdl, PushButton*, pButton )
+{
+ SwAutoFormatDlg aDlg( pButton, pShell, FALSE, pTAutoFmt );
+ if( RET_OK == aDlg.Execute())
+ aDlg.FillAutoFmtOfIndex( pTAutoFmt );
+ return 0;
+}
+
+/*********************************************************************/
+/* */
+/*********************************************************************/
+
+IMPL_LINK(SwInsTableDlg, CheckBoxHdl, CheckBox*, EMPTYARG)
+{
+ aRepeatHeaderCB.Enable(aHeaderCB.IsChecked());
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.49 2000/09/18 16:06:08 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.48 2000/02/11 14:58:35 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.47 1999/02/17 07:39:44 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+
+ Rev 1.46 17 Feb 1999 08:39:44 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+ Rev 1.45 02 Dec 1998 15:29:26 OM
+ #59770# Tabellenueberschrift nur auf erster Seite
+
+ Rev 1.44 30 Nov 1998 17:33:40 OM
+ #59770# Tabellenoptionen: Ueberschrift nur auf erster Seite
+
+ Rev 1.43 11 Nov 1998 16:51:58 OM
+ #58158# Einfuegeoptionen fuer Tabellen
+
+ Rev 1.42 29 May 1998 18:55:32 JP
+ SS vom TableAutoFormatDialog hat sich geaendert
+
+ Rev 1.41 28 May 1998 11:48:08 OS
+ Leerzeichen auch aus dem Clipboard abfangen #50497#
+
+ Rev 1.40 12 May 1998 23:42:44 JP
+ neu: InserTable/TextToTable mit optionalen AutoFormat
+
+ Rev 1.39 24 Apr 1998 17:25:26 OS
+ Min/Max schon initial setzen
+
+ Rev 1.38 15 Apr 1998 14:30:44 OS
+ Zeilen/Spaltenzahl nur noch durch max. Zellenzahl begrenzt #49479#
+
+ Rev 1.37 24 Nov 1997 15:52:22 MA
+ includes
+
+ Rev 1.36 03 Nov 1997 13:56:50 MA
+ precomp entfernt
+
+ Rev 1.35 06 Aug 1997 14:43:50 TRI
+ VCL: GetpApp() statt pApp
+
+ Rev 1.34 11 Nov 1996 11:20:14 MA
+ ResMgr
+
+ Rev 1.33 02 Oct 1996 19:06:06 MA
+ Umstellung Enable/Disable
+
+ Rev 1.32 28 Aug 1996 14:33:16 OS
+ includes
+
+ Rev 1.31 26 Jun 1996 15:25:20 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.30 22 Mar 1996 14:16:32 HJS
+ umstellung 311
+
+ Rev 1.29 06 Feb 1996 15:21:22 JP
+ Link Umstellung 305
+
+ Rev 1.28 24 Nov 1995 16:58:58 OM
+ PCH->PRECOMPILED
+
+ Rev 1.27 10 Nov 1995 15:26:46 OS
+ Execute mit 0L abschliessen
+
+ Rev 1.26 08 Nov 1995 13:34:40 OS
+ Change => Set
+
+ Rev 1.25 08 Nov 1995 07:12:18 OS
+ Klammern verschoben
+
+ Rev 1.24 07 Nov 1995 18:08:40 OS
+ InsertTable ohne Manager, ausf. ueber Slot
+
+ Rev 1.23 18 Oct 1995 10:12:54 OM
+ Helpbutton fuer >Tabelle einfuegen<
+
+ Rev 1.22 13 Sep 1995 17:09:44 OS
+ Recording ausgeweitet
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/table/instable.hrc b/sw/source/ui/table/instable.hrc
new file mode 100644
index 000000000000..ead7f91dbbe2
--- /dev/null
+++ b/sw/source/ui/table/instable.hrc
@@ -0,0 +1,78 @@
+/*************************************************************************
+ *
+ * $RCSfile: instable.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:47 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define FT_COL 1
+#define FT_ROW 2
+#define ED_COL 4
+#define ED_ROW 5
+#define GB_TABLE 10
+#define ED_NAME 11
+#define GB_NAME 12
+#define CB_HEADER 13
+#define CB_REPEAT_HEADER 14
+#define CB_DONT_SPLIT 15
+#define CB_BORDER 16
+#define GB_OPTIONS 17
+
+#define BT_OK 20
+#define BT_CANCEL 21
+#define BT_HELP 22
+#define BT_AUTOFORMAT 23
diff --git a/sw/source/ui/table/instable.src b/sw/source/ui/table/instable.src
new file mode 100644
index 000000000000..3730294374d2
--- /dev/null
+++ b/sw/source/ui/table/instable.src
@@ -0,0 +1,430 @@
+/*************************************************************************
+ *
+ * $RCSfile: instable.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "instable.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ // #define DLG_INSERT_TABLE 256
+ModalDialog DLG_INSERT_TABLE
+{
+ HelpID = FN_INSERT_TABLE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 110 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Tabelle einfügen : Tabelle einf³gen */
+ Text = "Tabelle einfügen" ;
+ Text [ ENGLISH ] = "Insert table" ;
+ Text [ norwegian ] = "Insert table" ;
+ Text [ italian ] = "Inserisci tabella" ;
+ Text [ portuguese_brazilian ] = "Insere uma tabela" ;
+ Text [ portuguese ] = "Inserir tabela" ;
+ Text [ finnish ] = "Lisää taulukon" ;
+ Text [ danish ] = "Indsæt tabel" ;
+ Text [ french ] = "Insérer un tableau" ;
+ Text [ swedish ] = "Infoga tabell" ;
+ Text [ dutch ] = "Tabel invoegen" ;
+ Text [ spanish ] = "Insertar tabla" ;
+ Text [ english_us ] = "Insert Table" ;
+ Moveable = TRUE ;
+ Edit ED_NAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 179, 12 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_NAME
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 191, 30 ) ;
+ Text = "Name" ;
+ Text[ENGLISH] = "Name" ;
+ Text[ italian ] = "Nome";
+ Text[ portuguese_brazilian ] = "Name";
+ Text[ portuguese ] = "Nome";
+ Text[ danish ] = "Navn";
+ Text[ french ] = "Nom";
+ Text[ swedish ] = "Namn";
+ Text[ dutch ] = "Naam";
+ Text[ spanish ] = "Nombre";
+ Text[ english_us ] = "Name";
+ Text[ chinese_simplified ] = "Ãû³Æ";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O";
+ Text[ chinese_traditional ] = "¦WºÙ";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§";
+ Text[ turkish ] = "Ad";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_COL
+ {
+ Pos = MAP_APPFONT ( 11 , 49 ) ;
+ Size = MAP_APPFONT ( 39 , 10 ) ;
+ Text = "~Spalten" ;
+ Text [ ENGLISH ] = "~Columns" ;
+ Text [ norwegian ] = "~Columns" ;
+ Text [ italian ] = "~Colonne" ;
+ Text [ portuguese_brazilian ] = "~Colunas" ;
+ Text [ portuguese ] = "~Colunas" ;
+ Text [ finnish ] = "~Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "~Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "~Kolommen" ;
+ Text [ spanish ] = "~Columnas" ;
+ Text [ english_us ] = "~Columns" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "À¸(~C)";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "‰¡(~C)";
+ Text[ chinese_traditional ] = "Äæ(~C)";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­(~C)";
+ Text[ turkish ] = "~Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_COL
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 53 , 47 ) ;
+ Size = MAP_APPFONT ( 28 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Value = 5 ;
+ First = 1 ;
+ Last = 99 ;
+ };
+ FixedText FT_ROW
+ {
+ Pos = MAP_APPFONT ( 11 , 69 ) ;
+ Size = MAP_APPFONT ( 39 , 10 ) ;
+ Text = "~Zeilen" ;
+ Text [ ENGLISH ] = "~Rows" ;
+ Text [ norwegian ] = "~Rows" ;
+ Text [ italian ] = "~Righe" ;
+ Text [ portuguese_brazilian ] = "Filei~ras" ;
+ Text [ portuguese ] = "~Linhas" ;
+ Text [ finnish ] = "~Rivit" ;
+ Text [ danish ] = "Rækker" ;
+ Text [ french ] = "~Lignes" ;
+ Text [ swedish ] = "~Rader" ;
+ Text [ dutch ] = "~Rijen" ;
+ Text [ spanish ] = "~Filas" ;
+ Text [ english_us ] = "~Rows" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÐÐ(~R)";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "c(~Rj";
+ Text[ chinese_traditional ] = "¦æ(~R)";
+ Text[ arabic ] = "ÕÝæÝ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà(~R)";
+ Text[ turkish ] = "Sa~týr";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_ROW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 53 , 67 ) ;
+ Size = MAP_APPFONT ( 28 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 99 ;
+ Value = 2 ;
+ First = 1 ;
+ Last = 99 ;
+ };
+ GroupBox GB_TABLE
+ {
+ Pos = MAP_APPFONT ( 6 , 36 ) ;
+ Size = MAP_APPFONT ( 81 , 68 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Größe : Gr÷˜e */
+ Text = "Größe" ;
+ Text [ ENGLISH ] = "Size" ;
+ Text [ norwegian ] = "Størrelse" ;
+ Text [ italian ] = "Dimensione" ;
+ Text [ portuguese_brazilian ] = "Tamanho" ;
+ Text [ portuguese ] = "Tamanho" ;
+ Text [ finnish ] = "Koko" ;
+ Text [ danish ] = "Størrelse" ;
+ Text [ french ] = "Taille" ;
+ Text [ swedish ] = "Storlek" ;
+ Text [ dutch ] = "Grootte" ;
+ Text [ spanish ] = "Tamaño" ;
+ Text [ english_us ] = "Size" ;
+ Text[ chinese_simplified ] = "´óС";
+ Text[ russian ] = "Ðàçìåð";
+ Text[ polish ] = "Rozmiar";
+ Text[ japanese ] = "»²½Þ";
+ Text[ chinese_traditional ] = "¤j¤p";
+ Text[ arabic ] = "ÇáÍÌã";
+ Text[ greek ] = "ÌÝãåèïò";
+ Text[ korean ] = "Å©±â";
+ Text[ turkish ] = "Boyut";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HEADER
+ {
+ Pos = MAP_APPFONT ( 99 , 49 ) ;
+ Size = MAP_APPFONT ( 93 , 10 ) ;
+ Text = "Übe~rschrift" ;
+ Text [ ENGLISH ] = "Header" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Intestazione";
+ Text[ portuguese_brazilian ] = "Header";
+ Text[ portuguese ] = "~Título";
+ Text[ danish ] = "Overskrift";
+ Text[ french ] = "T~itre";
+ Text[ swedish ] = "~Överskrift";
+ Text[ dutch ] = "~Kop";
+ Text[ spanish ] = "~Encabezado";
+ Text[ english_us ] = "Header";
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "Œ©o‚µ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Åðéêåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_REPEAT_HEADER
+ {
+ Pos = MAP_APPFONT ( 109 , 62 ) ;
+ Size = MAP_APPFONT ( 83 , 10 ) ;
+ Text = "Auf jeder Seite ~wiederholen" ;
+ Text [ ENGLISH ] = "Repeat on every page" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Ripeti su ogni pagina";
+ Text[ portuguese_brazilian ] = "Repeat Header";
+ Text[ portuguese ] = "Repetir em to~das as páginas";
+ Text[ danish ] = "Gentag på hver side";
+ Text[ french ] = "R~épéter sur chaque page";
+ Text[ swedish ] = "~Upprepa på varje sida";
+ Text[ dutch ] = "Op iedere pagina ~herhalen";
+ Text[ spanish ] = "~Repetir en cada página";
+ Text[ english_us ] = "Re~peat header";
+ Text[ chinese_simplified ] = "ÔÚÿҳÉÏÖظ´ÏÔʾ";
+ Text[ russian ] = "Ïîâòîð íà êàæäîé ñòðàíèöå";
+ Text[ polish ] = "Powtórz na ~ka¿dej stronie";
+ Text[ japanese ] = "ŠeÍß°¼Þ‚ÉŒJ‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "¦b¨C­¶¤W­«½ÆÅã¥Ü";
+ Text[ arabic ] = "ÊßÑÇÑ Ýí ßá ÕÝÍÉ";
+ Text[ greek ] = "ÅðáíÜëç~øç óå êÜèå óåëßäá";
+ Text[ korean ] = "¸Ó¸®±Û ¹Ýº¹(~P)";
+ Text[ turkish ] = "Ýlk satýrý her sayfada yi~nele";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_DONT_SPLIT
+ {
+ Pos = MAP_APPFONT ( 99 , 75 ) ;
+ Size = MAP_APPFONT ( 93 , 10 ) ;
+ Text = "Tabelle ~nicht trennen" ;
+ Text [ ENGLISH ] = "Don't split table" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Non separare la tabella";
+ Text[ portuguese_brazilian ] = "Don't split table";
+ Text[ portuguese ] = "Não ~dividir tabela";
+ Text[ danish ] = "Opdel tabel ikke";
+ Text[ french ] = "Pas de c~oupure de tableau";
+ Text[ swedish ] = "Dela i~nte tabell";
+ Text[ dutch ] = "Tabel niet ~splitsen";
+ Text[ spanish ] = "~No dividir tabla";
+ Text[ english_us ] = "Don't split table";
+ Text[ chinese_simplified ] = "²»·Ö¸ô±í¸ñ";
+ Text[ russian ] = "Íå ðàçáèâàòü òàáëèöó";
+ Text[ polish ] = "Nie dziel tabeli";
+ Text[ japanese ] = "•\\‚𕪊„‚µ‚È‚¢";
+ Text[ chinese_traditional ] = "¤£¤À¶}ªí®æ";
+ Text[ arabic ] = "ÚÏã ÝÕá ÇáÌÏæá";
+ Text[ greek ] = "Íá ìç äéáéñåèåß ï ðßíáêáò";
+ Text[ korean ] = "Ç¥¸¦ ÂÉ°³Áö ¸¶½Ê½Ã¿À.";
+ Text[ turkish ] = "Tabloyu tek sayfaya ~sýðdýr";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_BORDER
+ {
+ Pos = MAP_APPFONT ( 99 , 88 ) ;
+ Size = MAP_APPFONT ( 93 , 10 ) ;
+ Text = "~Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ TabStop = TRUE ;
+ Text[ italian ] = "Bordo";
+ Text[ portuguese_brazilian ] = "Border";
+ Text[ portuguese ] = "~Contornos";
+ Text[ danish ] = "Ramme";
+ Text[ french ] = "~Bordure";
+ Text[ swedish ] = "Inra~mning";
+ Text[ dutch ] = "~Omranding";
+ Text[ spanish ] = "~Borde";
+ Text[ english_us ] = "Border";
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±";
+ Text[ turkish ] = "~Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_OPTIONS
+ {
+ Pos = MAP_APPFONT ( 93 , 36 ) ;
+ Size = MAP_APPFONT ( 105 , 68 ) ;
+ Text = "Optionen" ;
+ Text [ English ] = "Options" ;
+ Text[ italian ] = "Opzioni";
+ Text[ portuguese_brazilian ] = "Options";
+ Text[ portuguese ] = "Opções";
+ Text[ danish ] = "Indstillinger";
+ Text[ french ] = "Options";
+ Text[ swedish ] = "Alternativ";
+ Text[ dutch ] = "Opties";
+ Text[ spanish ] = "Opciones";
+ Text[ english_us ] = "Options";
+ Text[ chinese_simplified ] = "Ñ¡Ïî";
+ Text[ russian ] = "Ïàðàìåòðû";
+ Text[ polish ] = "Opcje";
+ Text[ japanese ] = "µÌß¼®Ý";
+ Text[ chinese_traditional ] = "¿ï¶µ";
+ Text[ arabic ] = "ÎíÇÑÇÊ";
+ Text[ greek ] = "ÅðéëïãÝò";
+ Text[ korean ] = "¿É¼Ç";
+ Text[ turkish ] = "Seçenekler";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 204 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 204 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 204 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton BT_AUTOFORMAT
+ {
+ Pos = MAP_APPFONT ( 204 , 60 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "~Autoformat..." ;
+ Text [ ENGLISH ] = "Autoformat..." ;
+ Text [ norwegian ] = "Autoformat..." ;
+ Text [ italian ] = "~Formatt. auto..." ;
+ Text [ portuguese_brazilian ] = "Formatação Automática..." ;
+ Text [ portuguese ] = "~AutoFormato..." ;
+ Text [ finnish ] = "Automaattimuoto..." ;
+ Text [ danish ] = "AutoFormat..." ;
+ Text [ french ] = "~AutoFormat..." ;
+ Text [ swedish ] = "AutoFormat..." ;
+ Text [ dutch ] = "~AutoOpmaak..." ;
+ Text [ spanish ] = "Auto~Formato..." ;
+ Text [ english_us ] = "Auto~Format..." ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ(~F)...";
+ Text[ russian ] = "Àâòîôîðìàò...";
+ Text[ polish ] = "Autoformat...";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä(~F)...";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡(~F)...";
+ Text[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí...";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç...";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä(~F)...";
+ Text[ turkish ] = "~Otom. formatlama...";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "²åÈë±í¸ñ";
+ Text[ russian ] = "Âñòàâèòü òàáëèöó";
+ Text[ polish ] = "Wstaw tabelê";
+ Text[ japanese ] = "•\\‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤Jªí®æ";
+ Text[ arabic ] = "ÅÏÑÇÌ ÌÏæá";
+ Text[ greek ] = "ÅéóáãùãÞ ðßíáêá";
+ Text[ korean ] = "»ðÀÔ Ç¥";
+ Text[ turkish ] = "Tablo ekle";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/makefile.mk b/sw/source/ui/table/makefile.mk
new file mode 100644
index 000000000000..97e050040ad2
--- /dev/null
+++ b/sw/source/ui/table/makefile.mk
@@ -0,0 +1,127 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=table
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ colwd.cxx \
+ convert.cxx \
+ chartins.cxx \
+ insrc.cxx \
+ instable.cxx \
+ mergetbl.cxx \
+ rowht.cxx \
+ split.cxx \
+ splittbl.cxx \
+ tabledlg.cxx \
+ tablemgr.cxx \
+ tautofmt.cxx
+
+SRCFILES = \
+ colwd.src \
+ convert.src \
+ chartins.src \
+ insrc.src \
+ instable.src \
+ mergetbl.src \
+ rowht.src \
+ split.src \
+ splittbl.src \
+ table.src \
+ tabledlg.src \
+ tautofmt.src
+
+SLOFILES = \
+ $(SLO)$/colwd.obj \
+ $(SLO)$/convert.obj \
+ $(SLO)$/chartins.obj \
+ $(SLO)$/insrc.obj \
+ $(SLO)$/instable.obj \
+ $(SLO)$/mergetbl.obj \
+ $(SLO)$/rowht.obj \
+ $(SLO)$/split.obj \
+ $(SLO)$/splittbl.obj \
+ $(SLO)$/tabledlg.obj \
+ $(SLO)$/tablemgr.obj \
+ $(SLO)$/tautofmt.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/table/mergetbl.cxx b/sw/source/ui/table/mergetbl.cxx
new file mode 100644
index 000000000000..b84a3a767939
--- /dev/null
+++ b/sw/source/ui/table/mergetbl.cxx
@@ -0,0 +1,119 @@
+/*************************************************************************
+ *
+ * $RCSfile: mergetbl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _MERGETBL_HXX
+#include <mergetbl.hxx>
+#endif
+#ifndef _MERGETBL_HRC
+#include <mergetbl.hrc>
+#endif
+#ifndef _TABLE_HRC
+#include <table.hrc>
+#endif
+
+
+SwMergeTblDlg::SwMergeTblDlg( Window *pParent, BOOL& rWithPrev )
+ : SvxStandardDialog(pParent, SW_RES(DLG_MERGE_TABLE)),
+ aOKPB( this, ResId(PB_OK )),
+ aCancelPB( this, ResId(PB_CANCEL )),
+ aHelpPB( this, ResId(PB_HELP )),
+ aMergeGB( this, ResId(GB_MERGE )),
+ aMergePrevRB( this, ResId(RB_MERGE_PREV)),
+ aMergeNextRB( this, ResId(RB_MERGE_NEXT)),
+ rMergePrev( rWithPrev )
+{
+ FreeResource();
+ aMergePrevRB.Check();
+}
+
+void SwMergeTblDlg::Apply()
+{
+ rMergePrev = aMergePrevRB.IsChecked();
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.3 2000/09/18 16:06:08 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.2 1999/02/18 08:43:26 JP
+ Task #61764#: neu: Tabellen zusammenfassen
+
+
+ Rev 1.1 18 Feb 1999 09:43:26 JP
+ Task #61764#: neu: Tabellen zusammenfassen
+
+ Rev 1.0 17 Feb 1999 21:12:06 JP
+ Task #61764#: neu: Tabellen zusammenfassen
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/table/mergetbl.hrc b/sw/source/ui/table/mergetbl.hrc
new file mode 100644
index 000000000000..34376e06b450
--- /dev/null
+++ b/sw/source/ui/table/mergetbl.hrc
@@ -0,0 +1,66 @@
+/*************************************************************************
+ *
+ * $RCSfile: mergetbl.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define PB_OK 1
+#define PB_CANCEL 2
+#define PB_HELP 3
+#define GB_MERGE 4
+#define RB_MERGE_PREV 5
+#define RB_MERGE_NEXT 6
diff --git a/sw/source/ui/table/mergetbl.src b/sw/source/ui/table/mergetbl.src
new file mode 100644
index 000000000000..9c12d5639691
--- /dev/null
+++ b/sw/source/ui/table/mergetbl.src
@@ -0,0 +1,193 @@
+/*************************************************************************
+ *
+ * $RCSfile: mergetbl.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "mergetbl.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_MERGE_TABLE
+{
+ HelpID = FN_TABLE_MERGE_TABLE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 207 , 57 ) ;
+ Text = "Tabellen verbinden" ;
+ Text [ ENGLISH ] = "Join tables" ;
+ Moveable = TRUE ;
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 151 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 151 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 151 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_MERGE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 139 , 51 ) ;
+ Text = "Modus" ;
+ Text [ ENGLISH ] = "Mode" ;
+ Text [ english_us ] = "Mode" ;
+ Text [ portuguese_brazilian ] = "Modus" ;
+ Text [ swedish ] = "Läge" ;
+ Text [ danish ] = "Modus" ;
+ Text [ italian ] = "Modo" ;
+ Text [ spanish ] = "Modo" ;
+ Text [ french ] = "Mode" ;
+ Text [ dutch ] = "Modus" ;
+ Text [ portuguese ] = "Modo" ;
+ Text[ chinese_simplified ] = "ģʽ";
+ Text[ russian ] = "Ðåæèì";
+ Text[ polish ] = "Tryb";
+ Text[ japanese ] = "Ó°ÄÞ";
+ Text[ chinese_traditional ] = "¼Ò¦¡";
+ Text[ arabic ] = "ÇáÃÓáæÈ";
+ Text[ greek ] = "ÊáôÜóôáóç ëåéôïõñãßáò";
+ Text[ korean ] = "¸ðµå";
+ Text[ turkish ] = "Kip";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_MERGE_PREV
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 130 , 10 ) ;
+ Text = "mit der ~vorherigen Tabelle verbinden" ;
+ Text [ ENGLISH ] = "Join with ~previous table" ;
+ Check = TRUE ;
+ TabStop = TRUE ;
+ Text[ english_us ] = "Join with ~previous table";
+ Text[ portuguese ] = "Unir à tabela ~anterior";
+ Text[ russian ] = "Îáúåäèíèòü ñ ïðåäûäóùåé òàáëèöåé";
+ Text[ dutch ] = "met de ~vorige tabel verbinden";
+ Text[ french ] = "Fusionner avec le tableau ~précédent";
+ Text[ spanish ] = "unir con la tabla ~anterior";
+ Text[ italian ] = "Unisci alla tabella precedente";
+ Text[ danish ] = "flet med forrige tabel";
+ Text[ swedish ] = "förbind med den ~föregående tabellen";
+ Text[ polish ] = "Sprzêgaj z poprzedni¹ tabel¹";
+ Text[ portuguese_brazilian ] = "Join with ~previous table";
+ Text[ japanese ] = "‘O‚Ì•\\‚ÆŒ‹‡(~P)";
+ Text[ chinese_simplified ] = "ºÍÉÏÒ»¸ö±í¸ñºÏ²¢(~P)";
+ Text[ chinese_traditional ] = "©M¤W¤@­Óªí®æ¦X¦}(~P)";
+ Text[ arabic ] = "ÇáÑÈØ ãÚ ÇáÌÏæá ÇáÓÇÈÞ";
+ Text[ greek ] = "Ýíùóç ìå ðñïçãïýìåíï ðßíáêá";
+ Text[ korean ] = "ÀÌÀü Ç¥¿Í ÇÔ²²(~P)";
+ Text[ turkish ] = "~Önceki tablo ile birleþtir";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_MERGE_NEXT
+ {
+ Pos = MAP_APPFONT ( 12 , 30 ) ;
+ Size = MAP_APPFONT ( 130 , 10 ) ;
+ Text = "mit der ~nachfolgenden Tabelle verbinden" ;
+ Text [ ENGLISH ] = "Join with ~next table" ;
+ Text[ english_us ] = "Join with ~next table";
+ Text[ portuguese ] = "Unir à tabela ~seguinte";
+ Text[ russian ] = "Îáúåäèíèòü ñî ñëåäóþùåé òàáëèöåé";
+ Text[ dutch ] = "Met de v~olgende tabel verbinden";
+ Text[ french ] = "Fusionner avec le tableau ~suivant";
+ Text[ spanish ] = "unir con la tabla ~siguiente";
+ Text[ italian ] = "Unisci alla tabella successiva";
+ Text[ danish ] = "flet med efterfølgende tabel";
+ Text[ swedish ] = "förbind med den ~efterföljande tabellen";
+ Text[ polish ] = "Sprzêgaj z nastêpn¹ tabel¹";
+ Text[ portuguese_brazilian ] = "Join with ~next table";
+ Text[ japanese ] = "ŽŸ‚Ì•\\‚ÆŒ‹‡(~N)";
+ Text[ chinese_simplified ] = "ºÍÏÂÒ»¸ö±í¸ñºÏ²¢(~N)";
+ Text[ chinese_traditional ] = "©M¤U¤@­Óªí®æ¦X¦}(~N)";
+ Text[ arabic ] = "ÇáÑÈØ ãÚ ÇáÌÏæá ÇáÊÇáí";
+ Text[ greek ] = "Ýíùóç ìå åðüìåíï ðßíáêá";
+ Text[ korean ] = "´ÙÀ½ Ç¥¿Í ÇÔ²²(~N)";
+ Text[ turkish ] = "S~onraki tablo ile birleþtir";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ english_us ] = "Join tables";
+ Text[ portuguese ] = "Unir tabelas";
+ Text[ russian ] = "Îáúåäèíèòü òàáëèöû";
+ Text[ dutch ] = "Tabellen verbinden";
+ Text[ french ] = "Fusion de tableaux";
+ Text[ spanish ] = "unir tablas";
+ Text[ italian ] = "Unisci tabelle";
+ Text[ danish ] = "Flet tabeller";
+ Text[ swedish ] = "Förbind tabeller";
+ Text[ polish ] = "Sprzêgaj tabele";
+ Text[ portuguese_brazilian ] = "Join tables";
+ Text[ japanese ] = "•\\‚ÌŒ‹‡";
+ Text[ chinese_simplified ] = "Á¬½Ó±í¸ñ";
+ Text[ chinese_traditional ] = "³sµ²ªí®æ";
+ Text[ arabic ] = "æÕá ÇáÌÏÇæá";
+ Text[ greek ] = "¸íùóç ðéíÜêùí";
+ Text[ korean ] = "Ç¥ ¿¬°á";
+ Text[ turkish ] = "Tablolarý birleþtir";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/rowht.cxx b/sw/source/ui/table/rowht.cxx
new file mode 100644
index 000000000000..e447c11256ba
--- /dev/null
+++ b/sw/source/ui/table/rowht.cxx
@@ -0,0 +1,228 @@
+/*************************************************************************
+ *
+ * $RCSfile: rowht.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_DLGUTIL_HXX //autogen
+#include <svx/dlgutil.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+
+
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#include "cmdid.h"
+#include "swtypes.hxx"
+#include "rowht.hxx"
+#include "wrtsh.hxx"
+#include "frmatr.hxx"
+
+#include "rowht.hrc"
+#include "table.hrc"
+
+
+
+
+void SwTableHeightDlg::Apply()
+{
+ SwTwips nHeight = aHeightEdit.Denormalize(aHeightEdit.GetValue(FUNIT_TWIP));
+ SwFmtFrmSize aSz(ATT_FIX_SIZE, 0, nHeight);
+
+ SwFrmSize eFrmSize = (SwFrmSize) aAutoHeightCB.IsChecked() ?
+ ATT_MIN_SIZE : ATT_FIX_SIZE;
+ if(eFrmSize != aSz.GetSizeType())
+ {
+ aSz.SetSizeType(eFrmSize);
+ }
+ rSh.SetRowHeight( aSz );
+}
+
+// CTOR / DTOR -----------------------------------------------------------
+
+
+SwTableHeightDlg::SwTableHeightDlg( Window *pParent, SwWrtShell &rS ) :
+
+ SvxStandardDialog(pParent, SW_RES(DLG_ROW_HEIGHT)),
+
+ aHeightEdit(this, SW_RES(ED_HEIGHT)),
+ aAutoHeightCB(this, SW_RES(CB_AUTOHEIGHT)),
+ aHeightFrm(this, SW_RES(GB_HEIGHT)),
+ aOKBtn(this, SW_RES(BT_OK)),
+ aCancelBtn(this, SW_RES(BT_CANCEL)),
+ aHelpBtn( this, SW_RES( BT_HELP ) ),
+ rSh( rS )
+{
+ FreeResource();
+ ::SetFieldUnit(aHeightEdit, OFF_APP()->GetOptions().GetMetric());
+ aHeightEdit.SetMin(MINLAY, FUNIT_TWIP);
+ if(!aHeightEdit.GetMin())
+ aHeightEdit.SetMin(1);
+ SwFmtFrmSize *pSz;
+ rSh.GetRowHeight( pSz );
+ if ( pSz )
+ {
+ long nHeight = pSz->GetHeight();
+ aAutoHeightCB.Check(pSz->GetSizeType() != ATT_FIX_SIZE);
+ aHeightEdit.SetValue(aHeightEdit.Normalize(nHeight), FUNIT_TWIP);
+
+ delete pSz;
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.38 2000/09/18 16:06:08 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.37 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.36 1998/05/15 05:27:00 OS
+ HelpButton
+
+
+ Rev 1.35 15 May 1998 07:27:00 OS
+ HelpButton
+
+ Rev 1.34 24 Nov 1997 15:52:22 MA
+ includes
+
+ Rev 1.33 03 Nov 1997 13:56:50 MA
+ precomp entfernt
+
+ Rev 1.32 15 Aug 1997 12:18:22 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.31 08 Jan 1997 10:34:48 OS
+ falschen default entfernt
+
+ Rev 1.30 17 Dec 1996 16:59:52 OS
+ per Default MM50 als Normhoehe
+
+ Rev 1.29 11 Dec 1996 20:58:14 MH
+ includes
+
+ Rev 1.28 11 Dec 1996 08:43:16 OS
+ Minimalwert nie NULL, Einheit richtig einstellen
+
+ Rev 1.27 26 Nov 1996 19:45:10 OS
+ minimale Zellenhoehe jetzt MINLAY
+
+ Rev 1.26 11 Nov 1996 11:20:18 MA
+ ResMgr
+
+ Rev 1.25 28 Aug 1996 14:33:12 OS
+ includes
+
+ Rev 1.24 26 Jun 1996 15:25:22 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.23 26 Jun 1996 10:59:48 OM
+ Autohoehe fuer Tabellenzeile
+
+ Rev 1.22 25 Jun 1996 18:13:34 OM
+ Autohoehe fuer Tabellenzeile
+
+ Rev 1.21 20 Jun 1996 13:57:38 MA
+ chg: RowHeight jetzt mit minimalgroesse
+
+ Rev 1.20 24 Nov 1995 16:58:58 OM
+ PCH->PRECOMPILED
+
+ Rev 1.19 10 Nov 1995 15:26:16 OS
+ Execute mit 0L abschliessen
+
+ Rev 1.18 05 Nov 1995 16:48:32 OS
+ Dtor ueberfluessig, -RecordFlag, Aktion ueber Dispatcher
+
+ Rev 1.17 13 Sep 1995 17:09:42 OS
+ Recording ausgeweitet
+
+ Rev 1.16 30 Aug 1995 14:04:24 MA
+ fix: sexport'iert
+
+ Rev 1.15 21 Aug 1995 09:34:04 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/table/rowht.hrc b/sw/source/ui/table/rowht.hrc
new file mode 100644
index 000000000000..77f5306896e0
--- /dev/null
+++ b/sw/source/ui/table/rowht.hrc
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: rowht.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define ED_HEIGHT 1
+#define CB_AUTOHEIGHT 2
+#define GB_HEIGHT 3
+
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_HELP 102
+
diff --git a/sw/source/ui/table/rowht.src b/sw/source/ui/table/rowht.src
new file mode 100644
index 000000000000..dd9aacf9c66e
--- /dev/null
+++ b/sw/source/ui/table/rowht.src
@@ -0,0 +1,186 @@
+/*************************************************************************
+ *
+ * $RCSfile: rowht.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "rowht.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_ROW_HEIGHT
+{
+ HelpID = FN_TABLE_SET_ROW_HEIGHT ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 157 , 60 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Zeilenhöhe : Zellenhöhe */
+ Text = "Zeilenhöhe" ;
+ Text [ ENGLISH ] = "Row height" ;
+ Text [ norwegian ] = "Cellehøyde" ;
+ Text [ italian ] = "Altezza riga" ;
+ Text [ portuguese_brazilian ] = "Altura da célula" ;
+ Text [ portuguese ] = "Altura da linha" ;
+ Text [ finnish ] = "Solun korkeus" ;
+ Text [ danish ] = "Rækkehøjde" ;
+ Text [ french ] = "Hauteur de ligne" ;
+ Text [ swedish ] = "Radhöjd" ;
+ Text [ dutch ] = "Rijlhoogte" ;
+ Text [ spanish ] = "Altura de fila" ;
+ Text [ english_us ] = "Row Height" ;
+ Moveable = TRUE ;
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 101 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 101 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 101 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ MetricField ED_HEIGHT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 16 ) ;
+ Size = MAP_APPFONT ( 38 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 5 ;
+ Maximum = 990 ;
+ DecimalDigits = 1 ;
+ Value = 10 ;
+ Unit = FUNIT_CM ;
+ First = 100 ;
+ Last = 9999 ;
+ };
+ CheckBox CB_AUTOHEIGHT
+ {
+ Pos = MAP_APPFONT ( 12 , 31 ) ;
+ Size = MAP_APPFONT ( 80 , 12 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~dynamisch anpassen : auto. H~öhe */
+ Text = "~dynamisch anpassen" ;
+ Text [ ENGLISH ] = "~dynamic adjustment" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Fit to size" ;
+ Text [ swedish ] = "anpassa ~dynamiskt" ;
+ Text [ danish ] = "tilpas dynamisk" ;
+ Text [ italian ] = "Altezza autom~atica" ;
+ Text [ spanish ] = "~ajuste dinámico" ;
+ Text [ french ] = "adaptation ~dynamique" ;
+ Text [ dutch ] = "~dynamisch aanpassen" ;
+ Text [ portuguese_brazilian ] = "~dynamisch anpassen" ;
+ Text [ portuguese ] = "Ajuste ~dinâmico" ;
+ Text[ chinese_simplified ] = "×Ô¶¯µ÷Õû(~F)";
+ Text[ russian ] = "Ïîäáîð ðàçìåðà";
+ Text[ polish ] = "Dostosuj dynamicznie";
+ Text[ japanese ] = "Ž©“®’²®(~F)";
+ Text[ chinese_traditional ] = "¦Û°Ê½Õ¾ã(~F)";
+ Text[ arabic ] = "ÊÎÕíÕ ÏíäÇãíßí";
+ Text[ greek ] = "ÄõíáìéêÞ ðñïóáñìïãÞ";
+ Text[ korean ] = "Å©±â¿¡ ¸ÂÃã(~F)";
+ Text[ turkish ] = "i~çerik boyuna uydur";
+ };
+ GroupBox GB_HEIGHT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 89 , 51 ) ;
+ Text = "Höhe" ;
+ Text [ ENGLISH ] = "Height" ;
+ Text [ norwegian ] = "Høyde " ;
+ Text [ italian ] = "Altezza" ;
+ Text [ portuguese_brazilian ] = "Altura" ;
+ Text [ portuguese ] = "Altura" ;
+ Text [ finnish ] = "Korkeus" ;
+ Text [ danish ] = "Højde" ;
+ Text [ french ] = "Hauteur" ;
+ Text [ swedish ] = "Höjd" ;
+ Text [ dutch ] = "Hoogte" ;
+ Text [ spanish ] = "Altura" ;
+ Text [ english_us ] = "Height" ;
+ Text[ chinese_simplified ] = "¸ß";
+ Text[ russian ] = "Âûñîòà";
+ Text[ polish ] = "Wys.";
+ Text[ japanese ] = "‚‚³";
+ Text[ chinese_traditional ] = "°ª";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ";
+ Text[ greek ] = "¾øïò";
+ Text[ korean ] = "³ôÀÌ";
+ Text[ turkish ] = "Yükseklik";
+ };
+ Text[ chinese_simplified ] = "Ðиß";
+ Text[ russian ] = "Âûñîòà ñòðîêè";
+ Text[ polish ] = "WysokoϾ wierszy";
+ Text[ japanese ] = "s‚Ì‚‚³";
+ Text[ chinese_traditional ] = "¦æ°ª";
+ Text[ arabic ] = "ÇÑÊÝÇÚ ÇáÕÝ";
+ Text[ greek ] = "¾øïò ãñáììÞò";
+ Text[ korean ] = "Çà ³ôÀÌ";
+ Text[ turkish ] = "Satýr yüksekliði";
+};
diff --git a/sw/source/ui/table/splittbl.cxx b/sw/source/ui/table/splittbl.cxx
new file mode 100644
index 000000000000..276347e0810a
--- /dev/null
+++ b/sw/source/ui/table/splittbl.cxx
@@ -0,0 +1,136 @@
+/*************************************************************************
+ *
+ * $RCSfile: splittbl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _SPLITTBL_HXX
+#include <splittbl.hxx>
+#endif
+#include <splittbl.hrc>
+#include <table.hrc>
+#ifndef _TBLENUM_HXX
+#include <tblenum.hxx>
+#endif
+/*-----------------17.03.98 10:56-------------------
+
+--------------------------------------------------*/
+SwSplitTblDlg::SwSplitTblDlg( Window *pParent, SwWrtShell &rSh ) :
+ SvxStandardDialog(pParent, SW_RES(DLG_SPLIT_TABLE)),
+ aOKPB( this, ResId(PB_OK )),
+ aCancelPB( this, ResId(PB_CANCEL )),
+ aHelpPB( this, ResId(PB_HELP )),
+ aSplitGB( this, ResId(GB_SPLIT )),
+ aCntntCopyRB( this, ResId(RB_CNTNT )),
+ aBoxAttrCopyWithParaRB( this, ResId(RB_BOX_PARA )),
+ aBoxAttrCopyNoParaRB( this, ResId(RB_BOX_NOPARA)),
+ aBorderCopyRB( this, ResId(RB_BORDER )),
+ rShell(rSh)
+{
+ FreeResource();
+ aCntntCopyRB.Check();
+}
+
+/*-----------------17.03.98 10:56-------------------
+
+--------------------------------------------------*/
+void SwSplitTblDlg::Apply()
+{
+ USHORT nSplit = HEADLINE_CNTNTCOPY;
+ if(aBoxAttrCopyWithParaRB.IsChecked())
+ nSplit = HEADLINE_BOXATRCOLLCOPY;
+ if(aBoxAttrCopyNoParaRB.IsChecked())
+ nSplit = HEADLINE_BOXATTRCOPY;
+ else if(aBorderCopyRB.IsChecked())
+ nSplit = HEADLINE_BORDERCOPY;
+
+ rShell.SplitTable( nSplit );
+
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.4 2000/09/18 16:06:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.3 1998/03/20 12:39:40 OS
+ verdrehter enum
+
+
+ Rev 1.2 20 Mar 1998 13:39:40 OS
+ verdrehter enum
+
+ Rev 1.1 19 Mar 1998 11:15:38 OS
+ Neuer Parameter: mit Vorlage
+
+ Rev 1.0 17 Mar 1998 16:16:52 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/table/splittbl.hrc b/sw/source/ui/table/splittbl.hrc
new file mode 100644
index 000000000000..be5c9d2410ca
--- /dev/null
+++ b/sw/source/ui/table/splittbl.hrc
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: splittbl.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define PB_OK 1
+#define PB_CANCEL 2
+#define PB_HELP 3
+#define GB_SPLIT 4
+#define RB_CNTNT 5
+#define RB_BOX_NOPARA 6
+#define RB_BOX_PARA 7
+#define RB_BORDER 8
diff --git a/sw/source/ui/table/splittbl.src b/sw/source/ui/table/splittbl.src
new file mode 100644
index 000000000000..f8c4263c889f
--- /dev/null
+++ b/sw/source/ui/table/splittbl.src
@@ -0,0 +1,245 @@
+/*************************************************************************
+ *
+ * $RCSfile: splittbl.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "splittbl.hrc"
+#include "cmdid.h"
+#include "helpid.h"
+ModalDialog DLG_SPLIT_TABLE
+{
+ HelpID = FN_TABLE_SPLIT_TABLE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 207 , 76 ) ;
+ Text = "Tabelle auftrennen" ;
+ Text [ ENGLISH ] = "Split table" ;
+ Moveable = TRUE ;
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 151 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 151 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 151 , 40 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_SPLIT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 139 , 70 ) ;
+ Text = "Modus" ;
+ Text [ ENGLISH ] = "Mode" ;
+ Text [ english_us ] = "Mode" ;
+ Text [ portuguese_brazilian ] = "Modus" ;
+ Text [ swedish ] = "Läge" ;
+ Text [ danish ] = "Modus" ;
+ Text [ italian ] = "Modo" ;
+ Text [ spanish ] = "Modo" ;
+ Text [ french ] = "Mode" ;
+ Text [ dutch ] = "Modus" ;
+ Text [ portuguese ] = "Modo" ;
+ Text[ chinese_simplified ] = "ģʽ";
+ Text[ russian ] = "Ðåæèì";
+ Text[ polish ] = "Tryb";
+ Text[ japanese ] = "Ó°ÄÞ";
+ Text[ chinese_traditional ] = "¼Ò¦¡";
+ Text[ arabic ] = "ÇáæÖÚ";
+ Text[ greek ] = "ÊáôÜóôáóç ëåéôïõñãßáò";
+ Text[ korean ] = "¸ðµå";
+ Text[ turkish ] = "Kip";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_CNTNT
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 130 , 10 ) ;
+ Text = "~Überschrift kopieren" ;
+ Text [ ENGLISH ] = "~Copy Heading" ;
+ Check = TRUE ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "~Copiar título" ;
+ Text [ english_us ] = "~Copy heading" ;
+ Text [ portuguese_brazilian ] = "~Überschrift kopieren" ;
+ Text [ swedish ] = "Kopiera ~överskrift" ;
+ Text [ danish ] = "Kopier overskrift" ;
+ Text [ italian ] = "~Copia intestazione" ;
+ Text [ spanish ] = "~Copiar encabezado" ;
+ Text [ french ] = "~Copier titre" ;
+ Text [ dutch ] = "~Kop kopiëren" ;
+ Text[ chinese_simplified ] = "¸´ÖƱêÌâ(~C)";
+ Text[ russian ] = "Êîïèðîâàòü çàãîëîâîê";
+ Text[ polish ] = "Kopiuj tytu³";
+ Text[ japanese ] = "Œ©o‚µ‚̺Ëß°(~C)";
+ Text[ chinese_traditional ] = "½Æ»s¼ÐÃD(~C)";
+ Text[ arabic ] = "äÓÎ ÇáÚäæÇä";
+ Text[ greek ] = "ÁíôéãñáöÞ åðéêåöáëßäáò";
+ Text[ korean ] = "Á¦¸ñ º¹»ç(~C)";
+ Text[ turkish ] = "B~aþlýðý kopyala";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_BOX_PARA
+ {
+ Pos = MAP_APPFONT ( 12 , 30 ) ;
+ Size = MAP_APPFONT ( 130 , 10 ) ;
+ Text = "~Eigene Überschrift, mit Vorlage" ;
+ Text [ ENGLISH ] = "New heading ~with style" ;
+ Text [ portuguese ] = "Título ~personalizado (com modelo)" ;
+ Text [ english_us ] = "C~ustom heading (apply Style)" ;
+ Text [ portuguese_brazilian ] = "~Eigene Überschrift, mit Vorlage" ;
+ Text [ swedish ] = "~Egen överskrift, med mall" ;
+ Text [ danish ] = "Egen overskrift, med typografi" ;
+ Text [ italian ] = "~Propria intestazione con modello" ;
+ Text [ spanish ] = "~Encabezado propio, con estilos" ;
+ Text [ french ] = "Titre personnalisé, avec ~style" ;
+ Text [ dutch ] = "~Eigen kop, met opmaakprofiel" ;
+ Text[ chinese_simplified ] = "×Ô¶¨±êÌ⣬´øÑùʽ(~S)";
+ Text[ russian ] = "Çàãîëîâîê ïîëüçîâàòåëÿ ñ øàáëîíîì";
+ Text[ polish ] = "Tytu³ u¿ytkownika, z szablonem";
+ Text[ japanese ] = "½À²Ù•t‚«Õ°»Þ°’è‹`‚ÌŒ©o‚µ(~S)";
+ Text[ chinese_traditional ] = "¦Û­q¼ÐÃD¡A±a¼Ë¦¡(~S)";
+ Text[ arabic ] = "ÚäæÇä ÎÇÕ (ÊØÈíÞ ÇáäãØ)";
+ Text[ greek ] = "ÐñïóáñìïóìÝíç åðéêåöáëßäá (ìå óôõë)";
+ Text[ korean ] = "»ç¿ëÀÚ Á¦¸ñ (À¯Çü Àû¿ë)(~U)";
+ Text[ turkish ] = "~Özel baþlýk (biçim uygula)";
+ Text[ language_user1 ] = "All \"Vorlagen\" /Styles are written with a capital S.10.5.00EM";
+ };
+ RadioButton RB_BOX_NOPARA
+ {
+ Pos = MAP_APPFONT ( 12 , 45 ) ;
+ Size = MAP_APPFONT ( 130 , 10 ) ;
+ Text = "E~igene Überschrift" ;
+ Text [ ENGLISH ] = "~New heading" ;
+ Text [ portuguese ] = "Título ~personalizado" ;
+ Text [ english_us ] = "Cu~stom heading" ;
+ Text [ portuguese_brazilian ] = "E~igene Überschrift" ;
+ Text [ swedish ] = "E~gen överskrift" ;
+ Text [ danish ] = "Egen overskrift" ;
+ Text [ italian ] = "Propria ~intestazione" ;
+ Text [ spanish ] = "Encabezado ~propio" ;
+ Text [ french ] = "Titre ~personnalisé" ;
+ Text [ dutch ] = "E~igen kop" ;
+ Text[ chinese_simplified ] = "×Ô¶¨±êÌâ(~H)";
+ Text[ russian ] = "Çàãîëîâîê ïîëüçîâàòåëÿ";
+ Text[ polish ] = "Tytu³ u¿ytkownika";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚ÌŒ©o‚µ(~H)";
+ Text[ chinese_traditional ] = "¦Û­q¼ÐÃD(~H)";
+ Text[ arabic ] = "ÚäæÇä ÎÇÕ";
+ Text[ greek ] = "ÐñïóáñìïóìÝíç åðéêåöáëßäá";
+ Text[ korean ] = "»ç¿ëÀÚ Á¦¸ñ(~S)";
+ Text[ turkish ] = "Ö~zel baþlýk";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_BORDER
+ {
+ Pos = MAP_APPFONT ( 12 , 60 ) ;
+ Size = MAP_APPFONT ( 130 , 10 ) ;
+ Text = "~Keine Überschrift" ;
+ Text [ ENGLISH ] = "N~o heading" ;
+ Text [ portuguese ] = "~Sem título" ;
+ Text [ english_us ] = "~No heading" ;
+ Text [ portuguese_brazilian ] = "~Keine Überschrift" ;
+ Text [ swedish ] = "~Ingen överskrift" ;
+ Text [ danish ] = "Ingen overskrift" ;
+ Text [ italian ] = "~Senza intestazione" ;
+ Text [ spanish ] = "~Sin encabezado" ;
+ Text [ french ] = "~Pas de titre" ;
+ Text [ dutch ] = "~Geen kop" ;
+ Text[ chinese_simplified ] = "ÎÞ±êÌâ(~N)";
+ Text[ russian ] = "Áåç çàãîëîâêà";
+ Text[ polish ] = "Bez tytu³u";
+ Text[ japanese ] = "Œ©o‚µ‚È‚µ(~N)";
+ Text[ chinese_traditional ] = "µL¼ÐÃD(~N)";
+ Text[ arabic ] = "ÈÏæä ÚäæÇä";
+ Text[ greek ] = "×ùñßò åðéêåöáëßäá";
+ Text[ korean ] = "Á¦¸ñÀÌ ¾øÀ½(~N)";
+ Text[ turkish ] = "~Baþlýk yok";
+ Text[ language_user1 ] = " ";
+ };
+ Text [ english_us ] = "Split Table" ;
+ Text [ portuguese_brazilian ] = "Tabelle auftrennen" ;
+ Text [ swedish ] = "Dela tabell" ;
+ Text [ danish ] = "Opdel tabel" ;
+ Text [ italian ] = "Dividi tabella" ;
+ Text [ spanish ] = "Dividir tabla" ;
+ Text [ french ] = "Scinder le tableau" ;
+ Text [ dutch ] = "Tabel splitsen" ;
+ Text [ portuguese ] = "Dividir tabela" ;
+ Text[ chinese_simplified ] = "·Ö¸ô±í¸ñ";
+ Text[ russian ] = "Ðàçáèòü òàáëèöó";
+ Text[ polish ] = "Rozdziel tabelê";
+ Text[ japanese ] = "•\\‚Ì•ªŠ„";
+ Text[ chinese_traditional ] = "¤À¶}Àx¦s®æ";
+ Text[ arabic ] = "ÝÕá ÇáÌÏæá";
+ Text[ greek ] = "Äéáßñåóç ðßíáêá";
+ Text[ korean ] = "Ç¥ ³ª´©±â";
+ Text[ turkish ] = "Tabloyu böl";
+ Text[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/table.src b/sw/source/ui/table/table.src
new file mode 100644
index 000000000000..e9911f4c4d8a
--- /dev/null
+++ b/sw/source/ui/table/table.src
@@ -0,0 +1,87 @@
+/*************************************************************************
+ *
+ * $RCSfile: table.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+InfoBox MSG_ERR_TABLE_MERGE
+{
+ MESSAGE = "Selektierte Zellen der Tabelle sind zu komplex zum Verbinden." ;
+ MESSAGE [ English ] = "Selected table cells are too complex to merge." ;
+ MESSAGE [ norwegian ] = "Valgte tabellceller er for komplekse til å flette" ;
+ MESSAGE [ italian ] = "Le celle della tabella selezionata sono troppo complesse per l'unione" ;
+ MESSAGE [ portuguese_brazilian ] = "Células selecionadas da tabela sao muito complexas para a intercalação." ;
+ MESSAGE [ portuguese ] = "As células seleccionadas da tabela são muito complexas para a intercalação." ;
+ MESSAGE [ finnish ] = "Valitut taulukon solut ovat liian monimutkaiset yhdistettäviksi." ;
+ MESSAGE [ danish ] = "De markerede tabelceller er for komplekse til fletning." ;
+ MESSAGE [ french ] = "Cellules du tableau sélectionnées trop complexes pour être fusionnées." ;
+ MESSAGE [ swedish ] = "Markerade tabellceller är för komplexa för sammanfogning." ;
+ MESSAGE [ dutch ] = "De geselecteerde tabelcellen zijn te complex voor samenvoeging." ;
+ MESSAGE [ spanish ] = "Las celdas seleccionadas de la tabla son demasiado complejas para enlazarlas." ;
+ MESSAGE [ english_us ] = "Selected table cells are too complex to merge." ;
+ MESSAGE[ chinese_simplified ] = "ËùÑ¡ÔñµÄ±í¸ñµ¥Ôª¸ñÌ«×ۺ϶øÎÞ·¨ºÏ²¢¡£";
+ MESSAGE[ russian ] = "Âûäåëåííûå ÿ÷åéêè òàáëèöû ñëèøêîì ñëîæíûå äëÿ èõ îáúåäèíåíèÿ .";
+ MESSAGE[ polish ] = "Zaznaczone komórki tabeli s¹ zbyt komplekowe, aby je sprzêgaæ.";
+ MESSAGE[ japanese ] = "‘I‘ð‚³‚ê‚½•\\‚̾قÍAŒ‹‡‚·‚é‚É‚Í•¡ŽG‰ß‚¬‚Ü‚·B";
+ MESSAGE[ chinese_traditional ] = "©Ò¿ï¾Üªºªí®æÀx¦s®æ¤Óºî¦X¦ÓµLªk¦X¨Ö¡C";
+ MESSAGE[ arabic ] = "ÎáÇíÇ ÇáÌÏæá ÇáãÍÏÏÉ ãÚÞÏÉ áÏÑÌÉ íÓÊÍíá ãÚåÇ ÇáÑÈØ.";
+ MESSAGE[ greek ] = "Ôá åðéëåãìÝíá êåëéÜ ôïõ ðßíáêá åßíáé õðåñâïëéêÜ ðåñßðëïêá ãéá íá ãßíåé ç óýíäåóç.";
+ MESSAGE[ korean ] = "¼±ÅÃµÈ Ç¥ ¼¿ÀÌ ÇÕº´Çϱ⿡ ³Ê¹« º¹ÀâÇÕ´Ï´Ù.";
+ MESSAGE[ turkish ] = "Seçilen tablo hücreleri birleþtirilmek için fazla karmaþýk.";
+};
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
new file mode 100644
index 000000000000..bf4d9526393f
--- /dev/null
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -0,0 +1,2321 @@
+/*************************************************************************
+ *
+ * $RCSfile: tabledlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SVX_BORDER_HXX //autogen
+#include <svx/border.hxx>
+#endif
+#ifndef _SVX_BACKGRND_HXX //autogen
+#include <svx/backgrnd.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _SVX_KEEPITEM_HXX //autogen
+#include <svx/keepitem.hxx>
+#endif
+#ifndef _SVX_BRKITEM_HXX //autogen
+#include <svx/brkitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+
+
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _FMTPDSC_HXX //autogen
+#include <fmtpdsc.hxx>
+#endif
+#ifndef _FMTTSPLT_HXX //autogen
+#include <fmtlsplt.hxx>
+#endif
+#ifndef _OFA_HTMLCFG_HXX //autogen
+#include <offmgr/htmlcfg.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _TABLEDLG_HXX
+#include <tabledlg.hxx>
+#endif
+#ifndef _TABLEPG_HXX
+#include <tablepg.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _TABLEDLG_HRC
+#include <tabledlg.hrc>
+#endif
+#ifndef _TABLE_HRC
+#include <table.hrc>
+#endif
+
+
+#ifdef DEBUG_TBLDLG
+void DbgTblRep(SwTableRep* pRep)
+{
+ DBG_ERROR(String(pRep->GetColCount()))
+ DBG_ERROR(String(pRep->GetAllColCount()))
+ SwTwips nSum = 0;
+ for(USHORT i = 0; i < pRep->GetAllColCount(); i++)
+ {
+ String sMsg(i);
+ sMsg += pRep->GetColumns()[i].bVisible ? " v " : " h ";
+ sMsg += pRep->GetColumns()[i].nWidth;
+ nSum +=pRep->GetColumns()[i].nWidth;
+ DBG_ERROR(sMsg)
+ }
+ String sMsg("Spaltensumme: ");
+ sMsg += nSum;
+ sMsg += " Tblbreite: ";
+ sMsg += pRep->GetWidth();
+ DBG_ERROR(sMsg)
+ sMsg = "Gesamt/Links/Rechts: ";
+ sMsg += pRep->GetSpace();
+ sMsg += '/';
+ sMsg += pRep->GetLeftSpace();
+ sMsg += '/';
+ sMsg += pRep->GetRightSpace();
+ DBG_ERROR(sMsg)
+ sMsg = "Align: ";
+ sMsg += pRep->GetAlign();
+ DBG_ERROR(sMsg)
+
+};
+
+void DbgTColumn(TColumn* pTColumn, USHORT nCount)
+{
+ for(USHORT i = 0; i < nCount; i++)
+ {
+ String sMsg(i);
+ sMsg += pTColumn[i].bVisible ? " v " : " h ";
+ sMsg += pTColumn[i].nWidth;
+ DBG_ERROR(sMsg)
+ }
+}
+#endif
+
+
+#ifdef DEBUG_TBLDLG
+#define DEBUG_TBLDLG_TABLEREP(pRep) DbgTblRep(pRep)
+#define DEBUG_TBLDLG_TCOLUMN(pTColumn, nCount) DbgTColumn(pTColumn, nCount)
+#else
+#define DEBUG_TBLDLG_TABLEREP
+#define DEBUG_TBLDLG_TCOLUMN
+#endif
+
+SwFormatTablePage::SwFormatTablePage( Window* pParent, const SfxItemSet& rSet ) :
+ SfxTabPage(pParent, SW_RES( TP_FORMAT_TABLE ), rSet ),
+ aNameFT(this, SW_RES( FT_NAME )),
+ aNameED(this, SW_RES( ED_NAME )),
+ aWidthFT(this, SW_RES( FT_WIDTH )),
+ aWidthMF(this, SW_RES( ED_WIDTH )),
+ aRelWidthCB(this, SW_RES( CB_REL_WIDTH )),
+ aLeftFT(this, SW_RES( FT_LEFT_DIST )),
+ aLeftMF(this, SW_RES( ED_LEFT_DIST )),
+ aRightFT(this, SW_RES( FT_RIGHT_DIST )),
+ aRightMF(this, SW_RES( ED_RIGHT_DIST )),
+ aTopFT (this, SW_RES( FT_TOP_DIST )),
+ aTopMF(this, SW_RES( ED_TOP_DIST )),
+ aBottomFT(this, SW_RES( FT_BOTTOM_DIST )),
+ aBottomMF(this, SW_RES( ED_BOTTOM_DIST )),
+ aDistGB(this, SW_RES( GB_DIST )),
+ aOptionsGB(this, SW_RES( GB_OPTIONS )),
+ aFullBtn(this, SW_RES( RB_FULL )),
+ aFreeBtn(this, SW_RES( RB_FREE )),
+ aLeftBtn(this, SW_RES( RB_LEFT )),
+ aFromLeftBtn(this, SW_RES( RB_FROM_LEFT )),
+ aRightBtn(this, SW_RES( RB_RIGHT )),
+ aCenterBtn(this, SW_RES( RB_CENTER )),
+ aPosFrm(this, SW_RES( GB_POS )),
+ pTblData(0),
+ nSaveWidth(0),
+ nMinTableWidth(MINLAY),
+ bModified(FALSE),
+ bFull(0)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ Init();
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwFormatTablePage::Init()
+{
+ aLeftMF.MetricField::SetMin(-999999);
+ aRightMF.MetricField::SetMin(-999999);
+
+ // handler
+ Link aLk = LINK( this, SwFormatTablePage, AutoClickHdl );
+ aFullBtn.SetClickHdl( aLk );
+ aFreeBtn.SetClickHdl( aLk );
+ aLeftBtn.SetClickHdl( aLk );
+ aFromLeftBtn.SetClickHdl( aLk );
+ aRightBtn.SetClickHdl( aLk );
+ aCenterBtn.SetClickHdl( aLk );
+
+ aLk = LINK( this, SwFormatTablePage, UpHdl );
+ aTopMF.SetUpHdl( aLk );
+ aBottomMF.SetUpHdl( aLk );
+ aRightMF.SetUpHdl( aLk );
+ aLeftMF.SetUpHdl( aLk );
+ aWidthMF.SetUpHdl( aLk );
+
+ aLk = LINK( this, SwFormatTablePage, DownHdl );
+ aTopMF.SetDownHdl( aLk );
+ aBottomMF.SetDownHdl( aLk );
+ aRightMF.SetDownHdl( aLk );
+ aLeftMF.SetDownHdl( aLk );
+ aWidthMF.SetDownHdl( aLk );
+
+ aLk = LINK( this, SwFormatTablePage, LoseFocusHdl );
+ aTopMF.SetLoseFocusHdl( aLk );
+ aBottomMF.SetLoseFocusHdl( aLk );
+ aRightMF.SetLoseFocusHdl( aLk );
+ aLeftMF.SetLoseFocusHdl( aLk );
+ aWidthMF.SetLoseFocusHdl( aLk );
+
+ aRightMF.SetModifyHdl(LINK(this, SwFormatTablePage, RightModifyHdl));
+ aRelWidthCB.SetClickHdl(LINK( this, SwFormatTablePage, RelWidthClickHdl ));
+}
+
+/*------------------------------------------------------------------------*/
+
+IMPL_LINK( SwFormatTablePage, RelWidthClickHdl, CheckBox *, pBtn )
+{
+ DBG_ASSERT(pTblData, "Tabellendaten nicht da?")
+ BOOL bIsChecked = pBtn->IsChecked();
+ long nLeft = aLeftMF.Denormalize(aLeftMF.GetValue(FUNIT_TWIP ));
+ long nRight = aRightMF.Denormalize(aRightMF.GetValue(FUNIT_TWIP ));
+ aWidthMF.ShowPercent(bIsChecked);
+ aLeftMF.ShowPercent(bIsChecked);
+ aRightMF.ShowPercent(bIsChecked);
+
+ if (bIsChecked)
+ {
+ aWidthMF.SetRefValue(pTblData->GetSpace());
+ aLeftMF.SetRefValue(pTblData->GetSpace());
+ aRightMF.SetRefValue(pTblData->GetSpace());
+ aLeftMF.MetricField::SetMin(0); // wird vom Percentfield ueberschrieben
+ aRightMF.MetricField::SetMin(0);// -""-
+ aLeftMF.SetValue(aLeftMF.Normalize( nLeft ), FUNIT_TWIP );
+ aRightMF.SetValue(aRightMF.Normalize( nRight ), FUNIT_TWIP );
+ }
+ else
+ ModifyHdl(&aLeftMF); // Werte wieder korrigieren
+
+ if(aFreeBtn.IsChecked())
+ {
+ BOOL bEnable = !pBtn->IsChecked();
+ aRightMF.Enable(bEnable);
+ aRightFT.Enable(bEnable);
+ }
+ bModified = TRUE;
+
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK( SwFormatTablePage, AutoClickHdl, CheckBox *, pBox )
+{
+ BOOL bRestore = TRUE,
+ bLeftEnable = FALSE,
+ bRightEnable= FALSE,
+ bWidthEnable= FALSE,
+ bOthers = TRUE;
+ if( (RadioButton *) pBox == &aFullBtn )
+ {
+ aLeftMF.SetValue(0);
+ aRightMF.SetValue(0);
+ nSaveWidth = aWidthMF.Denormalize(aWidthMF.GetValue(FUNIT_TWIP ));
+ aWidthMF.SetValue(aWidthMF.Normalize( pTblData->GetSpace() ), FUNIT_TWIP );
+ aLeftMF.SetText( aEmptyStr );
+ aRightMF.SetText( aEmptyStr );
+ bFull = TRUE;
+ bRestore = FALSE;
+ }
+ else if( (RadioButton *) pBox == &aLeftBtn )
+ {
+ bRightEnable = bWidthEnable = TRUE;
+ aLeftMF.SetText( aEmptyStr );
+ aLeftMF.SetValue(0);
+ }
+ else if( (RadioButton *) pBox == &aFromLeftBtn )
+ {
+ bLeftEnable = bWidthEnable = TRUE;
+ aRightMF.SetText( aEmptyStr );
+ aRightMF.SetValue(0);
+ }
+ else if( (RadioButton *) pBox == &aRightBtn )
+ {
+ bLeftEnable = bWidthEnable = TRUE;
+ aRightMF.SetValue(0);
+ aRightMF.SetText( aEmptyStr );
+ }
+ else if( ( RadioButton * ) pBox == &aCenterBtn )
+ {
+ bLeftEnable = bWidthEnable = TRUE;
+ aRightMF.SetText( aEmptyStr );
+ }
+ else if( ( RadioButton * ) pBox == &aFreeBtn )
+ {
+ RightModifyHdl(&aRightMF);
+ bLeftEnable = TRUE;
+ bWidthEnable = TRUE;
+ bOthers = FALSE;
+ }
+ aLeftMF.Enable(bLeftEnable);
+ aLeftFT.Enable(bLeftEnable);
+ aWidthMF.Enable(bWidthEnable);
+ aWidthFT.Enable(bWidthEnable);
+ if ( bOthers )
+ {
+ aRightMF.Enable(bRightEnable);
+ aRightFT.Enable(bRightEnable);
+ aRelWidthCB.Enable(bWidthEnable);
+ }
+
+ if(bFull && bRestore)
+ {
+ // nachdem auf autom. geschaltet wurde, wurde die Breite gemerkt,
+ // um sie beim Zurueckschalten restaurieren zu koennen
+ bFull = FALSE;
+ aWidthMF.SetValue(aWidthMF.Normalize( nSaveWidth ), FUNIT_TWIP );
+ }
+ ModifyHdl(&aWidthMF);
+ bModified = TRUE;
+ return 0;
+}
+
+/*----------------------------------------------------------------------*/
+IMPL_LINK( SwFormatTablePage, RightModifyHdl, MetricField *, pFld )
+{
+ if(aFreeBtn.IsChecked())
+ {
+ BOOL bEnable = aRightMF.GetValue() == 0;
+// aWidthMF.Enable(bEnable);
+ aRelWidthCB.Enable(bEnable);
+// aWidthFT.Enable(bEnable);
+ if ( !bEnable )
+ {
+ aRelWidthCB.Check(FALSE);
+ RelWidthClickHdl(&aRelWidthCB);
+ }
+ bEnable = aRelWidthCB.IsChecked();
+ aRightMF.Enable(!bEnable);
+ aRightFT.Enable(!bEnable);
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwFormatTablePage, UpHdl, MetricField *, pEdit )
+{
+ ModifyHdl( pEdit );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFormatTablePage, UpHdl, MetricField *, pEdit )
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwFormatTablePage, DownHdl, MetricField *, pEdit )
+{
+ ModifyHdl( pEdit );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFormatTablePage, DownHdl, MetricField *, pEdit )
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwFormatTablePage, LoseFocusHdl, MetricField *, pEdit )
+{
+ ModifyHdl( pEdit );
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwFormatTablePage, LoseFocusHdl, MetricField *, pEdit )
+
+void SwFormatTablePage::ModifyHdl( Edit* pEdit )
+{
+
+ SwTwips nCurWidth = aWidthMF.Denormalize( aWidthMF.GetValue( FUNIT_TWIP ));
+ SwTwips nPrevWidth = nCurWidth;
+ SwTwips nRight = aRightMF.Denormalize( aRightMF.GetValue( FUNIT_TWIP ));
+ SwTwips nLeft = aLeftMF.Denormalize( aLeftMF.GetValue( FUNIT_TWIP ));
+ SwTwips nDiff;
+
+ if( pEdit == &aWidthMF )
+ {
+ if( nCurWidth < MINLAY )
+ nCurWidth = MINLAY;
+ nDiff = nRight + nLeft + nCurWidth - pTblData->GetSpace() ;
+ //rechtsbuendig nur linken Rand veraendern
+ if(aRightBtn.IsChecked())
+ nLeft -= nDiff;
+ //linksbuendig nur rechten Rand veraendern
+ else if(aLeftBtn.IsChecked())
+ nRight -= nDiff;
+ //linker Rand und Breite erlaubt - erst rechts - dann links
+ else if(aFromLeftBtn.IsChecked())
+ {
+ if( nRight >= nDiff )
+ nRight -= nDiff;
+ else
+ {
+ nDiff -= nRight;
+ nRight = 0;
+ if(nLeft >= nDiff)
+ nLeft -= nDiff;
+ else
+ {
+ nRight += nLeft - nDiff;
+ nLeft = 0;
+ nCurWidth = pTblData->GetSpace();
+ }
+
+ }
+ }
+ //zentriert beide Seiten gleichmaessig veraendern
+ else if(aCenterBtn.IsChecked())
+ {
+ if((nLeft != nRight))
+ {
+ nDiff += nLeft + nRight;
+ nLeft = nDiff/2;
+ nRight = nDiff/2;
+ }
+ else
+ {
+ nLeft -= nDiff/2;
+ nRight -= nDiff/2;
+ }
+ }
+ //freie Ausrichtung: beide Raender verkleinern
+ else if(aFreeBtn.IsChecked())
+ {
+ nLeft -= nDiff/2;
+ nRight -= nDiff/2;
+ }
+ }
+ if( pEdit == &aRightMF )
+ {
+
+ if( nRight + nLeft > pTblData->GetSpace() - MINLAY )
+ nRight = pTblData->GetSpace() -nLeft - MINLAY;
+
+ nCurWidth = pTblData->GetSpace() - nLeft - nRight;
+ }
+ if( pEdit == &aLeftMF )
+ {
+ if(!aFromLeftBtn.IsChecked())
+ {
+ BOOL bCenter = aCenterBtn.IsChecked();
+ if( bCenter )
+ nRight = nLeft;
+ if(nRight + nLeft > pTblData->GetSpace() - MINLAY )
+ {
+ nLeft = bCenter ? (pTblData->GetSpace() - MINLAY) /2 :
+ (pTblData->GetSpace() - MINLAY) - nRight;
+ nRight = bCenter ? (pTblData->GetSpace() - MINLAY) /2 : nRight;
+ }
+ nCurWidth = pTblData->GetSpace() - nLeft - nRight;
+ }
+ else
+ {
+ //hier wird bei Aenderung an der linken Seite zuerst der
+ //rechte Rand veraendert, dann die Breite
+ nDiff = nRight + nLeft + nCurWidth - pTblData->GetSpace() ;
+
+ nRight -= nDiff;
+ nCurWidth = pTblData->GetSpace() - nLeft - nRight;
+ }
+ }
+ if (nCurWidth != nPrevWidth )
+ aWidthMF.SetValue( aWidthMF.Normalize( nCurWidth ), FUNIT_TWIP );
+ aRightMF.SetValue( aRightMF.Normalize( nRight ), FUNIT_TWIP );
+ aLeftMF.SetValue( aLeftMF.Normalize( nLeft ), FUNIT_TWIP );
+ bModified = TRUE;
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+SfxTabPage* SwFormatTablePage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwFormatTablePage( pParent, rAttrSet );
+}
+
+/*------------------------------------------------------------------------
+-------------------------------------------------------------------------*/
+BOOL SwFormatTablePage::FillItemSet( SfxItemSet& rCoreSet )
+{
+ // Testen, ob eins der Control noch den Focus hat
+ if(aWidthMF.HasFocus())
+ ModifyHdl(&aWidthMF);
+ else if(aLeftMF.HasFocus())
+ ModifyHdl(&aLeftMF);
+ else if(aRightMF.HasFocus())
+ ModifyHdl(&aRightMF);
+ else if(aTopMF.HasFocus())
+ ModifyHdl(&aTopMF);
+ else if(aBottomMF.HasFocus())
+ ModifyHdl(&aBottomMF);
+
+ if(bModified)
+ {
+ if( aBottomMF.GetText() != aBottomMF.GetSavedValue() ||
+ aTopMF.GetText() != aTopMF.GetSavedValue() )
+ {
+ SvxULSpaceItem aULSpace(RES_UL_SPACE);
+ aULSpace.SetUpper( (USHORT) aTopMF.Denormalize(
+ aTopMF.GetValue( FUNIT_TWIP )));
+ aULSpace.SetLower( (USHORT) aBottomMF.Denormalize(
+ aBottomMF.GetValue( FUNIT_TWIP )));
+ rCoreSet.Put(aULSpace);
+ }
+
+ }
+ if(aNameED.GetText() != aNameED.GetSavedValue())
+ {
+ rCoreSet.Put(SfxStringItem( FN_PARAM_TABLE_NAME, aNameED.GetText()));
+ bModified = TRUE;
+ }
+ return bModified;
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwFormatTablePage::Reset( const SfxItemSet& )
+{
+ const SfxItemSet& rSet = GetItemSet();
+ const SfxPoolItem* pItem;
+
+ BOOL bHtmlMode = FALSE;
+ if(SFX_ITEM_SET == rSet.GetItemState( SID_HTML_MODE, FALSE,&pItem )
+ && ((const SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON)
+ {
+ aNameED .Disable();
+ aTopFT .Hide();
+ aTopMF .Hide();
+ aBottomFT.Hide();
+ aBottomMF.Hide();
+ aFreeBtn.Enable(FALSE);
+ bHtmlMode = TRUE;
+ }
+ FieldUnit aMetric = ::GetDfltMetric(bHtmlMode);
+ SetMetric( aWidthMF, aMetric );
+ SetMetric( aRightMF, aMetric );
+ SetMetric( aLeftMF, aMetric );
+ SetMetric( aTopMF, aMetric );
+ SetMetric( aBottomMF, aMetric );
+
+ //Name
+ if(SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_TABLE_NAME, FALSE, &pItem ))
+ {
+ aNameED.SetText(((const SfxStringItem*)pItem)->GetValue());
+ aNameED.SaveValue();
+ }
+
+ if(SFX_ITEM_SET == rSet.GetItemState( FN_TABLE_REP, FALSE, &pItem ))
+ {
+ pTblData = (SwTableRep*)((const SwPtrItem*) pItem)->GetValue();
+ nMinTableWidth = pTblData->GetColCount() * MINLAY;
+
+ if(pTblData->GetWidthPercent())
+ {
+ aRelWidthCB.Check(TRUE);
+ RelWidthClickHdl(&aRelWidthCB);
+ aWidthMF.SetValue(pTblData->GetWidthPercent(), FUNIT_CUSTOM);
+
+ aWidthMF.SaveValue();
+ nSaveWidth = aWidthMF.GetValue(FUNIT_CUSTOM);
+ }
+ else
+ {
+ aWidthMF.SetValue(aWidthMF.Normalize(
+ pTblData->GetWidth()), FUNIT_TWIP);
+ aWidthMF.SaveValue();
+ nSaveWidth = pTblData->GetWidth();
+ nMinTableWidth = min(nSaveWidth, nMinTableWidth);
+ }
+
+ aWidthMF.SetRefValue(pTblData->GetSpace());
+ aWidthMF.SetLast(aWidthMF.Normalize( pTblData->GetSpace() ));
+ aLeftMF.SetLast(aLeftMF.Normalize( pTblData->GetSpace() ));
+ aRightMF.SetLast(aRightMF.Normalize( pTblData->GetSpace() ));
+
+ aLeftMF.SetValue(aLeftMF.Normalize(
+ pTblData->GetLeftSpace()), FUNIT_TWIP);
+ aRightMF.SetValue(aRightMF.Normalize(
+ pTblData->GetRightSpace()), FUNIT_TWIP);
+ aLeftMF.SaveValue();
+ aRightMF.SaveValue();
+
+ nOldAlign = pTblData->GetAlign();
+
+ BOOL bSetRight = FALSE, bRightEnable = FALSE,
+ bSetLeft = FALSE, bLeftEnable = FALSE;
+ switch( nOldAlign )
+ {
+ case HORI_NONE:
+ aFreeBtn.Check();
+ if(aRelWidthCB.IsChecked())
+ bSetRight = TRUE;
+ break;
+ case HORI_FULL:
+ {
+ bSetRight = bSetLeft = TRUE;
+ aFullBtn.Check();
+ aRightMF.SetText( aEmptyStr );
+ aLeftMF.SetText( aEmptyStr );
+ aWidthMF.Enable(FALSE);
+ aRelWidthCB.Enable(FALSE);
+ aWidthFT.Enable(FALSE);
+ }
+ break;
+ case HORI_LEFT:
+ {
+ bSetLeft = TRUE;
+ aLeftBtn.Check();
+ aLeftMF.SetText( aEmptyStr );
+ }
+ break;
+ case HORI_LEFT_AND_WIDTH :
+ {
+ bSetRight = TRUE;
+ aFromLeftBtn.Check();
+ aRightMF.SetText( aEmptyStr );
+ }
+ break;
+ case HORI_RIGHT:
+ {
+ bSetRight = TRUE;
+ aRightBtn.Check();
+ aRightMF.SetText( aEmptyStr );
+ }
+ break;
+ case HORI_CENTER:
+ {
+ bSetRight = TRUE;
+ aCenterBtn.Check();
+ aRightMF.SetText( aEmptyStr );
+ }
+ break;
+ }
+ if ( bSetRight )
+ {
+ aRightMF.Enable(bRightEnable);
+ aRightFT.Enable(bRightEnable);
+ }
+ if ( bSetLeft )
+ {
+ aLeftMF.Enable(bLeftEnable);
+ aLeftFT.Enable(bLeftEnable);
+ }
+
+ }
+
+ //Raender
+ if(SFX_ITEM_SET == rSet.GetItemState( RES_UL_SPACE, FALSE,&pItem ))
+ {
+ aTopMF.SetValue(aTopMF.Normalize(
+ ((const SvxULSpaceItem*)pItem)->GetUpper()), FUNIT_TWIP);
+ aBottomMF.SetValue(aBottomMF.Normalize(
+ ((const SvxULSpaceItem*)pItem)->GetLower()), FUNIT_TWIP);
+ aTopMF.SaveValue();
+ aBottomMF.SaveValue();
+ }
+
+ aWidthMF.SetMax( 2*aWidthMF.Normalize( pTblData->GetSpace() ), FUNIT_TWIP );
+ aRightMF.SetMax( aRightMF.Normalize( pTblData->GetSpace() ), FUNIT_TWIP );
+ aLeftMF.SetMax( aLeftMF.Normalize( pTblData->GetSpace() ), FUNIT_TWIP );
+ aWidthMF.SetMin( aWidthMF.Normalize( nMinTableWidth ), FUNIT_TWIP );
+
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwFormatTablePage::ActivatePage( const SfxItemSet& rSet )
+{
+ DBG_ASSERT(pTblData, "Tabellendaten nicht da?")
+ if(SFX_ITEM_SET == rSet.GetItemState( FN_TABLE_REP ))
+ {
+ SwTwips nCurWidth = HORI_FULL != pTblData->GetAlign() ?
+ pTblData->GetWidth() :
+ pTblData->GetSpace();
+ if(pTblData->GetWidthPercent() == 0 &&
+ nCurWidth != aWidthMF.Denormalize(aWidthMF.GetValue(FUNIT_TWIP )))
+ {
+ aWidthMF.SetValue(aWidthMF.Normalize(
+ nCurWidth), FUNIT_TWIP);
+ aWidthMF.SaveValue();
+ nSaveWidth = nCurWidth;
+ aLeftMF.SetValue(aLeftMF.Normalize(
+ pTblData->GetLeftSpace()), FUNIT_TWIP);
+ aLeftMF.SaveValue();
+ aRightMF.SetValue(aRightMF.Normalize(
+ pTblData->GetRightSpace()), FUNIT_TWIP);
+ aRightMF.SaveValue();
+ }
+ }
+
+}
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+int SwFormatTablePage::DeactivatePage( SfxItemSet* pSet )
+{
+ // os: VCL sorgt nicht dafuer, dass das aktive Control im
+ // dialog bei OK den focus verliert
+ aNameED.GrabFocus();
+ // Test des Tabellennamens auf Leerzeichen
+ String sTblName = aNameED.GetText();
+ if(sTblName.Search(' ') != STRING_NOTFOUND)
+ {
+ InfoBox(this, SW_RES(MSG_WRONG_TABLENAME)).Execute();
+ aNameED.GrabFocus();
+ return KEEP_PAGE;
+ }
+ if(pSet)
+ {
+ FillItemSet(*pSet);
+ if(bModified)
+ {
+ SwTwips lLeft = aLeftMF.Denormalize( aLeftMF.GetValue( FUNIT_TWIP ));
+ SwTwips lRight = aRightMF.Denormalize( aRightMF.GetValue( FUNIT_TWIP ));
+
+
+ if( aLeftMF.GetText() != aLeftMF.GetSavedValue() ||
+ aRightMF.GetText() != aRightMF.GetSavedValue() )
+ {
+ pTblData->SetWidthChanged();
+ pTblData->SetLeftSpace( lLeft);
+ pTblData->SetRightSpace( lRight);
+ }
+
+ SwTwips lWidth;
+ if (aRelWidthCB.IsChecked() && aRelWidthCB.IsEnabled())
+ {
+ lWidth = pTblData->GetSpace() - lRight - lLeft;
+ USHORT nPercentWidth = (USHORT)aWidthMF.GetValue(FUNIT_CUSTOM);
+ if(pTblData->GetWidthPercent() != nPercentWidth)
+ {
+ pTblData->SetWidthPercent(nPercentWidth);
+ pTblData->SetWidthChanged();
+ }
+ }
+ else
+ {
+ pTblData->SetWidthPercent(0);
+ lWidth = aWidthMF.Denormalize(aWidthMF.GetValue( FUNIT_TWIP ));
+ }
+ pTblData->SetWidth(lWidth);
+
+ SwTwips nColSum = 0;
+ for(USHORT i = 0; i < pTblData->GetColCount(); i++)
+ {
+ nColSum += pTblData->GetColumns()[i].nWidth;
+ }
+ if(nColSum != pTblData->GetWidth())
+ {
+ SwTwips nMinWidth = min(MINLAY, pTblData->GetWidth() / pTblData->GetColCount() - 1);
+ SwTwips nDiff = nColSum - pTblData->GetWidth();
+ while ( Abs(nDiff) > pTblData->GetColCount() + 1 )
+ {
+ SwTwips nSub = nDiff / pTblData->GetColCount();
+ for( i = 0; i < pTblData->GetColCount(); i++)
+ {
+ if(pTblData->GetColumns()[i].nWidth - nMinWidth > nSub)
+ {
+ pTblData->GetColumns()[i].nWidth -= nSub;
+ nDiff -= nSub;
+ }
+ else
+ {
+ nDiff -= pTblData->GetColumns()[i].nWidth - nMinWidth;
+ pTblData->GetColumns()[i].nWidth = nMinWidth;
+ }
+
+ }
+ }
+ }
+
+ int nAlign = 0;
+ if(aRightBtn.IsChecked())
+ nAlign = HORI_RIGHT;
+ else if(aLeftBtn.IsChecked())
+ nAlign = HORI_LEFT;
+ else if(aFromLeftBtn.IsChecked())
+ nAlign = HORI_LEFT_AND_WIDTH;
+ else if(aCenterBtn.IsChecked())
+ nAlign = HORI_CENTER;
+ else if(aFreeBtn.IsChecked())
+ nAlign = HORI_NONE;
+ else if(aFullBtn.IsChecked())
+ {
+ nAlign = HORI_FULL;
+ lWidth = lAutoWidth;
+ }
+ if(nAlign != pTblData->GetAlign())
+ {
+ pTblData->SetWidthChanged();
+ pTblData->SetAlign(nAlign);
+ }
+
+
+ // if( HORI_CENTER && lWidth != (SwTwips)aWidthMF.GetSavedValue())
+ if(pTblData->GetWidth() != lWidth )
+ {
+ pTblData->SetWidthChanged();
+ pTblData->SetWidth(
+ nAlign == HORI_FULL ? pTblData->GetSpace() : lWidth );
+ }
+ if(pTblData->HasWidthChanged())
+ pSet->Put(SwPtrItem(FN_TABLE_REP, pTblData));
+ }
+DEBUG_TBLDLG_TABLEREP(pTblData);
+ }
+ return TRUE;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Seite Spaltenkonfiguration
+------------------------------------------------------------------------*/
+SwTableColumnPage::SwTableColumnPage( Window* pParent,
+ const SfxItemSet& rSet ) :
+ SfxTabPage(pParent, SW_RES( TP_TABLE_COLUMN ), rSet ),
+ aModifyTableCB(this, SW_RES(CB_MOD_TBL)),
+ aProportionalCB(this, SW_RES(CB_PROP)),
+ aInverseCB(this, SW_RES(CB_INV)),
+ aSpaceFT(this, SW_RES(FT_SPACE)),
+ aSpaceED(this, SW_RES(ED_SPACE)),
+ aFT1(this, SW_RES(COL_FT_1)),
+ aMF1(this, SW_RES(COL_MF_1)),
+ aFT2(this, SW_RES(COL_FT_2)),
+ aMF2(this, SW_RES(COL_MF_2)),
+ aFT3(this, SW_RES(COL_FT_3)),
+ aMF3(this, SW_RES(COL_MF_3)),
+ aFT4(this, SW_RES(COL_FT_4)),
+ aMF4(this, SW_RES(COL_MF_4)),
+ aFT5(this, SW_RES(COL_FT_5)),
+ aMF5(this, SW_RES(COL_MF_5)),
+ aFT6(this, SW_RES(COL_FT_6)),
+ aMF6(this, SW_RES(COL_MF_6)),
+ aColGB(this, SW_RES(COL_GB_LAYOUT)),
+ aUpBtn(this, SW_RES(COL_BTN_UP)),
+ aDownBtn(this, SW_RES(COL_BTN_DOWN)),
+ nNoOfCols( 0 ),
+ nNoOfVisibleCols( 0 ),
+ nMinWidth( MINLAY ),
+ bModified(FALSE),
+ bModifyTbl(FALSE),
+ bPercentMode(FALSE),
+ nTableWidth(0)
+{
+ FreeResource();
+ SetExchangeSupport();
+
+ pFieldArr[0] = &aMF1;
+ pFieldArr[1] = &aMF2;
+ pFieldArr[2] = &aMF3;
+ pFieldArr[3] = &aMF4;
+ pFieldArr[4] = &aMF5;
+ pFieldArr[5] = &aMF6;
+
+ pTextArr[0] = &aFT1;
+ pTextArr[1] = &aFT2;
+ pTextArr[2] = &aFT3;
+ pTextArr[3] = &aFT4;
+ pTextArr[4] = &aFT5;
+ pTextArr[5] = &aFT6;
+
+ aInverseCB.Hide();
+ const SfxPoolItem* pItem;
+ Init((SFX_ITEM_SET == rSet.GetItemState( SID_HTML_MODE, FALSE,&pItem )
+ && ((const SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON));
+
+};
+/*------------------------------------------------------------------------
+ Beschreibung: Seite Spaltenkonfiguration
+------------------------------------------------------------------------*/
+ SwTableColumnPage::~SwTableColumnPage()
+{
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+SfxTabPage* SwTableColumnPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwTableColumnPage( pParent, rAttrSet );
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableColumnPage::Reset( const SfxItemSet& )
+{
+ const SfxItemSet& rSet = GetItemSet();
+
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_SET == rSet.GetItemState( FN_TABLE_REP, FALSE, &pItem ))
+ {
+ pTblData = (SwTableRep*)((const SwPtrItem*) pItem)->GetValue();
+ nNoOfVisibleCols = pTblData->GetColCount();
+ nNoOfCols = pTblData->GetAllColCount();
+ nTableWidth = pTblData->GetAlign() != HORI_FULL &&
+ pTblData->GetAlign() != HORI_LEFT_AND_WIDTH?
+ pTblData->GetWidth() : pTblData->GetSpace();
+
+ for( USHORT i = 0; i < nNoOfCols; i++ )
+ {
+ if( pTblData->GetColumns()[i].nWidth < nMinWidth )
+ nMinWidth = pTblData->GetColumns()[i].nWidth;
+ }
+ long nMinTwips = pFieldArr[0]->Normalize( nMinWidth );
+ long nMaxTwips = pFieldArr[0]->Normalize( nTableWidth );
+ for( i = 0; (i < MET_FIELDS) && (i < nNoOfVisibleCols); i++ )
+ {
+ pFieldArr[i]->SetValue( pFieldArr[i]->Normalize(
+ GetVisibleWidth(i) ), FUNIT_TWIP );
+ pFieldArr[i]->SetMin( nMinTwips , FUNIT_TWIP );
+ pFieldArr[i]->SetMax( nMaxTwips , FUNIT_TWIP );
+ pFieldArr[i]->Enable();
+ pTextArr[i]->Enable();
+ }
+
+ if( nNoOfVisibleCols > MET_FIELDS )
+ aUpBtn.Enable();
+ i = nNoOfVisibleCols;
+ while( i < MET_FIELDS )
+ {
+ pFieldArr[i]->SetText( aEmptyStr );
+ pTextArr[i]->Hide();
+ i++;
+ }
+ }
+ ActivatePage(rSet);
+
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableColumnPage::Init(BOOL bWeb)
+{
+ FieldUnit aMetric = ::GetDfltMetric(bWeb);
+ Link aLkUp = LINK( this, SwTableColumnPage, UpHdl );
+ Link aLkDown = LINK( this, SwTableColumnPage, DownHdl );
+ Link aLkLF = LINK( this, SwTableColumnPage, LoseFocusHdl );
+ for( USHORT i = 0; i < MET_FIELDS; i++ )
+ {
+ aValueTbl[i] = i;
+ SetMetric(*pFieldArr[i], aMetric);
+ pFieldArr[i]->SetUpHdl( aLkUp );
+ pFieldArr[i]->SetDownHdl( aLkDown );
+ pFieldArr[i]->SetLoseFocusHdl( aLkLF );
+
+ }
+ SetMetric(aSpaceED, aMetric);
+
+ Link aLk = LINK( this, SwTableColumnPage, AutoClickHdl );
+ aUpBtn.SetClickHdl( aLk );
+ aDownBtn.SetClickHdl( aLk );
+
+ aLk = LINK( this, SwTableColumnPage, ModeHdl );
+ aModifyTableCB .SetClickHdl( aLk );
+ aProportionalCB.SetClickHdl( aLk );
+ aInverseCB .SetClickHdl( aLk );
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK( SwTableColumnPage, AutoClickHdl, CheckBox *, pBox )
+{
+ //Anzeigefenster verschieben
+ if(pBox == (CheckBox *)&aDownBtn)
+ {
+ if(aValueTbl[0] > 0)
+ {
+ for( USHORT i=0; i < MET_FIELDS; i++ )
+ aValueTbl[i] -= 1;
+ }
+ }
+ if(pBox == (CheckBox *)&aUpBtn)
+ {
+ if( aValueTbl[ MET_FIELDS -1 ] < nNoOfVisibleCols -1 )
+ {
+ for(USHORT i=0;i < MET_FIELDS;i++)
+ aValueTbl[i] += 1;
+ }
+ }
+ for( USHORT i = 0; (i < nNoOfVisibleCols ) && ( i < MET_FIELDS); i++ )
+ {
+ String sEntry('~');
+ sEntry += String::CreateFromInt32( aValueTbl[i] + 1 );
+ pTextArr[i]->SetText( sEntry );
+ }
+
+ aDownBtn.Enable(aValueTbl[0] > 0);
+ aUpBtn.Enable(aValueTbl[ MET_FIELDS -1 ] < nNoOfVisibleCols -1 );
+ UpdateCols(0);
+ return 0;
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwTableColumnPage, UpHdl, PercentField *, pEdit )
+{
+ bModified = TRUE;
+ ModifyHdl( pEdit );
+ return 0;
+};
+IMPL_LINK_INLINE_END( SwTableColumnPage, UpHdl, PercentField *, pEdit )
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwTableColumnPage, DownHdl, PercentField *, pEdit )
+{
+ bModified = TRUE;
+ ModifyHdl( pEdit );
+ return 0;
+};
+IMPL_LINK_INLINE_END( SwTableColumnPage, DownHdl, PercentField *, pEdit )
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK_INLINE_START( SwTableColumnPage, LoseFocusHdl, PercentField *, pEdit )
+{
+ if(pEdit->IsModified())
+ {
+ bModified = TRUE;
+ ModifyHdl( pEdit );
+ }
+ return 0;
+};
+IMPL_LINK_INLINE_END( SwTableColumnPage, LoseFocusHdl, PercentField *, pEdit )
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+IMPL_LINK( SwTableColumnPage, ModeHdl, CheckBox*, pBox )
+{
+ BOOL bCheck = pBox->IsChecked();
+ if(pBox == &aProportionalCB)
+ {
+ if(bCheck)
+ aModifyTableCB.Check();
+ aModifyTableCB.Enable(!bCheck && bModifyTbl);
+ aInverseCB.Enable(!bCheck);
+ }
+ else if(pBox == &aInverseCB)
+ {
+ if(bCheck)
+ aModifyTableCB.Check(FALSE);
+ aModifyTableCB.Enable(!bCheck && bModifyTbl);
+ aProportionalCB.Enable(!bCheck);
+ }
+ else
+ aInverseCB.Enable(!bCheck);
+
+ return 0;
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+BOOL SwTableColumnPage::FillItemSet( SfxItemSet& rSet )
+{
+ for( USHORT i = 0; i < MET_FIELDS; i++ )
+ {
+ if(pFieldArr[i]->HasFocus())
+ {
+ LoseFocusHdl(pFieldArr[i]);
+ break;
+ }
+ }
+
+ if(bModified)
+ {
+ pTblData->SetColsChanged();
+ }
+ return bModified;
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableColumnPage::ModifyHdl( PercentField* pEdit )
+{
+ USHORT nAktPos;
+ for( USHORT i = 0; i < MET_FIELDS; i++)
+ if(pEdit == pFieldArr[i])
+ break;
+
+ SetVisibleWidth(aValueTbl[i], pEdit->Denormalize( pEdit->GetValue( FUNIT_TWIP ) ));
+ nAktPos = aValueTbl[i];
+
+ UpdateCols( nAktPos );
+};
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableColumnPage::UpdateCols( USHORT nAktPos )
+{
+ SwTwips nSum = 0;
+
+ for(USHORT i = 0; i < nNoOfCols; i++ )
+ {
+ nSum += (pTblData->GetColumns())[i].nWidth;
+ }
+ SwTwips nDiff = nSum - nTableWidth;
+
+ BOOL bModifyTbl = aModifyTableCB.IsChecked();
+ BOOL bProp = aProportionalCB.IsChecked();
+ BOOL bInverse = aInverseCB .IsChecked();
+
+ if(!bModifyTbl && !bProp &&!bInverse)
+ {
+// Tabellenbreite bleibt, Differenz wird mit der/den
+// naechsten Zellen ausgeglichen
+ while( nDiff )
+ {
+ if( ++nAktPos == nNoOfVisibleCols)
+ nAktPos = 0;
+ if( nDiff < 0 )
+ {
+ SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff);
+ nDiff = 0;
+ }
+ else if( GetVisibleWidth(nAktPos) >= nDiff + nMinWidth )
+ {
+ SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff);
+ nDiff = 0;
+ }
+ if( nDiff > 0 && GetVisibleWidth(nAktPos) > nMinWidth )
+ {
+ if( nDiff >= (GetVisibleWidth(nAktPos) - nMinWidth) )
+ {
+ nDiff -= (GetVisibleWidth(nAktPos) - nMinWidth);
+ SetVisibleWidth(nAktPos, nMinWidth);
+ }
+ else
+ {
+ nDiff = 0;
+ SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff);
+ }
+ DBG_ASSERT(nDiff >= 0, "nDiff < 0 kann hier nicht sein!")
+ }
+ }
+ }
+ else if(bModifyTbl && !bProp &&!bInverse)
+ {
+// Differenz wird ueber die Tabellenbreite ausgeglichen,
+// andere Spalten bleiben unveraendert
+ DBG_ASSERT(nDiff <= pTblData->GetSpace() - nTableWidth, "Maximum falsch eingestellt" )
+ SwTwips nActSpace = pTblData->GetSpace() - nTableWidth;
+ if(nDiff > nActSpace)
+ {
+ nTableWidth = pTblData->GetSpace();
+ SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nActSpace );
+ }
+ else
+ {
+ nTableWidth += nDiff;
+ }
+ }
+ else if(bModifyTbl & bProp)
+ {
+// Alle Spalten werden proportional mitveraendert, die Tabellenbreite wird
+// entsprechend angepasst
+ DBG_ASSERT(nDiff * nNoOfVisibleCols <= pTblData->GetSpace() - nTableWidth, "Maximum falsch eingestellt" )
+ long nAdd = nDiff;
+ if(nDiff * nNoOfVisibleCols > pTblData->GetSpace() - nTableWidth)
+ {
+ nAdd = (pTblData->GetSpace() - nTableWidth) / nNoOfVisibleCols;
+ SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nAdd );
+ nDiff = nAdd;
+ }
+ if(nAdd)
+ for(USHORT i = 0; i < nNoOfVisibleCols; i++ )
+ {
+ if(i == nAktPos)
+ continue;
+ SwTwips nVisWidth;
+ if((nVisWidth = GetVisibleWidth(i)) + nDiff < MINLAY)
+ {
+ nAdd += nVisWidth - MINLAY;
+ SetVisibleWidth(i, MINLAY);
+ }
+ else
+ {
+ SetVisibleWidth(i, nVisWidth + nDiff);
+ nAdd += nDiff;
+ }
+
+ }
+ nTableWidth += nAdd;
+
+ }
+ else
+ {
+// Die Differenz wird gleichmaessig auf alle anderen Spalten aufgeteilt
+// die Tabellenbreite bleibt konstant
+/*
+ SwTwips nDiffn = nDiff/(nNoOfVisibleCols - 1);
+ if(nDiff < 0 && (nNoOfVisibleCols - 1) * nDiffn != nDiff)
+ nDiffn-- ;
+ USHORT nStart = nAktPos++;
+ if(nAktPos == nNoOfVisibleCols)
+ nStart = 0;
+ for(USHORT i = 0; i < nNoOfVisibleCols; i++ )
+ {
+ if((nVisWidth = GetVisibleWidth(i)) + nDiff < MINLAY)
+ {
+ nAdd += nVisWidth - MINLAY;
+ SetVisibleWidth(i, MINLAY);
+ }
+ }
+*/
+
+ }
+
+DEBUG_TBLDLG_TABLEREP(pTblData);
+
+ if(!bPercentMode)
+ aSpaceED.SetValue(aSpaceED.Normalize( pTblData->GetSpace() - nTableWidth) , FUNIT_TWIP);
+
+ for( i = 0; ( i < nNoOfVisibleCols ) && ( i < MET_FIELDS ); i++)
+ {
+ pFieldArr[i]->SetValue(pFieldArr[i]->Normalize(
+ GetVisibleWidth(aValueTbl[i]) ), FUNIT_TWIP);
+ pFieldArr[i]->ClearModifyFlag();
+ }
+
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableColumnPage::ActivatePage( const SfxItemSet& rSet )
+{
+ bPercentMode = pTblData->GetWidthPercent() != 0;
+ for( USHORT i = 0; (i < MET_FIELDS) && (i < nNoOfVisibleCols); i++ )
+ {
+ pFieldArr[i]->SetRefValue(pTblData->GetWidth());
+ pFieldArr[i]->ShowPercent( bPercentMode );
+ }
+
+ USHORT nTblAlign = pTblData->GetAlign();
+ if((HORI_FULL != nTblAlign && nTableWidth != pTblData->GetWidth()) ||
+ (HORI_FULL == nTblAlign && nTableWidth != pTblData->GetSpace()))
+ {
+ nTableWidth = HORI_FULL == nTblAlign ?
+ pTblData->GetSpace() :
+ pTblData->GetWidth();
+ UpdateCols(0);
+ }
+ bModifyTbl = TRUE;
+ if(pTblData->GetWidthPercent() ||
+ HORI_FULL == nTblAlign ||
+ pTblData->IsLineSelected() )
+ bModifyTbl = FALSE;
+ if(bPercentMode)
+ {
+ aInverseCB .Enable(FALSE);
+ aModifyTableCB .Check(FALSE);
+ aProportionalCB .Check(FALSE);
+ aInverseCB .Check(FALSE);
+ }
+ else if( !bModifyTbl )
+ {
+ aProportionalCB.Check(FALSE);
+ aModifyTableCB.Check(FALSE);
+ }
+ aSpaceFT.Enable(!bPercentMode);
+ aSpaceED.Enable(!bPercentMode);
+ aModifyTableCB.Enable( !bPercentMode && bModifyTbl );
+ aProportionalCB.Enable(!bPercentMode && bModifyTbl );
+
+/* if(pTblData->IsLineSelected() && pTblData->IsComplex())
+ {
+
+ }*/
+ aSpaceED.SetValue(aSpaceED.Normalize(
+ pTblData->GetSpace() - nTableWidth) , FUNIT_TWIP);
+
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+int SwTableColumnPage::DeactivatePage( SfxItemSet* pSet )
+{
+ if(pSet)
+ {
+ FillItemSet(*pSet);
+ if(HORI_FULL != pTblData->GetAlign() && pTblData->GetWidth() != nTableWidth)
+ {
+ pTblData->SetWidth(nTableWidth);
+ SwTwips nDiff = pTblData->GetSpace() - pTblData->GetWidth() -
+ pTblData->GetLeftSpace() - pTblData->GetRightSpace();
+ switch( pTblData->GetAlign() )
+ {
+ case HORI_RIGHT:
+ pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff);
+ break;
+ case HORI_LEFT:
+ pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff);
+ break;
+ case HORI_NONE:
+ {
+ SwTwips nDiff2 = nDiff/2;
+ if( nDiff > 0 ||
+ (-nDiff2 < pTblData->GetRightSpace() && - nDiff2 < pTblData->GetLeftSpace()))
+ {
+ pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff2);
+ pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff2);
+ }
+ else
+ {
+ if(pTblData->GetRightSpace() > pTblData->GetLeftSpace())
+ {
+ pTblData->SetLeftSpace(0);
+ pTblData->SetRightSpace(pTblData->GetSpace() - pTblData->GetWidth());
+ }
+ else
+ {
+ pTblData->SetRightSpace(0);
+ pTblData->SetLeftSpace(pTblData->GetSpace() - pTblData->GetWidth());
+ }
+ }
+ }
+ break;
+ case HORI_CENTER:
+ pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff/2);
+ pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff/2);
+ break;
+ case HORI_LEFT_AND_WIDTH :
+ if(nDiff > pTblData->GetRightSpace())
+ {
+ pTblData->SetLeftSpace(pTblData->GetSpace() - pTblData->GetWidth());
+ }
+ pTblData->SetRightSpace(
+ pTblData->GetSpace() - pTblData->GetWidth() - pTblData->GetLeftSpace());
+ break;
+ }
+ pTblData->SetWidthChanged();
+ }
+DEBUG_TBLDLG_TABLEREP(pTblData);
+ pSet->Put(SwPtrItem( FN_TABLE_REP, pTblData ));
+ }
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+SwTwips SwTableColumnPage::GetVisibleWidth(USHORT nPos)
+{
+ USHORT i=0;
+
+ while( nPos )
+ {
+ if(pTblData->GetColumns()[i].bVisible && nPos)
+ nPos--;
+ i++;
+ }
+ SwTwips nReturn = pTblData->GetColumns()[i].nWidth;
+ DBG_ASSERT(i < nNoOfCols, "Array index out of range")
+ while(!pTblData->GetColumns()[i].bVisible && (i + 1) < nNoOfCols)
+ nReturn += pTblData->GetColumns()[++i].nWidth;
+
+// return (*ppTableColumns)[i].nWidth;
+ return nReturn;
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableColumnPage::SetVisibleWidth(USHORT nPos, SwTwips nNewWidth)
+{
+ USHORT i=0;
+ while( nPos )
+ {
+ if(pTblData->GetColumns()[i].bVisible && nPos)
+ nPos--;
+ i++;
+ }
+ DBG_ASSERT(i < nNoOfCols, "Array index out of range")
+ pTblData->GetColumns()[i].nWidth = nNewWidth;
+ while(!pTblData->GetColumns()[i].bVisible && (i + 1) < nNoOfCols)
+ pTblData->GetColumns()[++i].nWidth = 0;
+
+}
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+SwTableTabDlg::SwTableTabDlg(Window* pParent, SfxItemPool& ,
+ const SfxItemSet* pItemSet, SwWrtShell* pSh ) :
+ SfxTabDialog(pParent, SW_RES(DLG_FORMAT_TABLE), pItemSet,0),
+ pShell(pSh)
+{
+ FreeResource();
+ nHtmlMode = ::GetHtmlMode(pSh->GetView().GetDocShell());
+ AddTabPage(TP_FORMAT_TABLE, &SwFormatTablePage::Create, 0 );
+ AddTabPage(TP_TABLE_TEXTFLOW, &SwTextFlowPage::Create, 0 );
+ AddTabPage(TP_TABLE_COLUMN, &SwTableColumnPage::Create, 0 );
+ AddTabPage(TP_BACKGROUND, SvxBackgroundTabPage::Create, 0);
+ AddTabPage(TP_BORDER, SvxBorderTabPage::Create, 0);
+}
+
+
+/*------------------------------------------------------------------------
+------------------------------------------------------------------------*/
+void SwTableTabDlg::PageCreated(USHORT nId, SfxTabPage& rPage)
+{
+ if( TP_BACKGROUND == nId )
+ {
+ //ShowTblControl() zuerst rufen, wegen HTMLMode
+ ((SvxBackgroundTabPage&)rPage).ShowTblControl();
+ if(!( nHtmlMode & HTMLMODE_ON ) ||
+ nHtmlMode & HTMLMODE_SOME_STYLES)
+ ((SvxBackgroundTabPage&)rPage).ShowSelector();
+
+ }
+ else if(TP_BORDER == nId)
+ {
+ ((SvxBorderTabPage&)rPage).SetSWMode(SW_BORDER_MODE_TABLE);
+ }
+ else if(TP_TABLE_TEXTFLOW == nId)
+ {
+ ((SwTextFlowPage&)rPage).SetShell(pShell);
+ const USHORT eType = pShell->GetFrmType(0,TRUE);
+ if( !(FRMTYPE_BODY & eType) )
+ ((SwTextFlowPage&)rPage).DisablePageBreak();
+ }
+}
+
+/*-----------------20.08.96 09.43-------------------
+--------------------------------------------------*/
+SwTableRep::SwTableRep( const SwTabCols& rTabCol, BOOL bCplx )
+ : nTblWidth(0),
+ nSpace(0),
+ nLeftSpace(0),
+ nRightSpace(0),
+ nAlign(0),
+ nWidthPercent(0),
+ bLineSelected(FALSE),
+ bComplex(bCplx),
+ bWidthChanged(FALSE),
+ bColsChanged(FALSE)
+{
+ nAllCols = nColCount = rTabCol.Count();
+ pTColumns = new TColumn[ nColCount + 1 ];
+ SwTwips nStart = 0,
+ nEnd;
+ for( USHORT i = 0; i < nAllCols; ++i )
+ {
+ nEnd = rTabCol[ i ] - rTabCol.GetLeft();
+ pTColumns[ i ].nWidth = nEnd - nStart;
+ pTColumns[ i ].bVisible = !rTabCol.IsHidden(i);
+ if(!pTColumns[ i ].bVisible)
+ nColCount --;
+ nStart = nEnd;
+ }
+ pTColumns[ nAllCols ].nWidth = rTabCol.GetRight() - rTabCol.GetLeft() - nStart;
+ pTColumns[ nAllCols ].bVisible = TRUE;
+ nColCount++;
+ nAllCols++;
+}
+
+/*-----------------20.08.96 09.43-------------------
+--------------------------------------------------*/
+SwTableRep::~SwTableRep()
+{
+ delete pTColumns;
+}
+
+/*-----------------20.08.96 13.33-------------------
+--------------------------------------------------*/
+BOOL SwTableRep::FillTabCols( SwTabCols& rTabCols ) const
+{
+ USHORT nOldLeft = rTabCols.GetLeft();
+ USHORT nOldRight = rTabCols.GetRight();
+
+ BOOL bSingleLine = FALSE;
+ for ( USHORT i = 0; i < rTabCols.Count(); ++i )
+ if(!pTColumns[i].bVisible)
+ {
+ bSingleLine = TRUE;
+ break;
+ }
+
+DEBUG_TBLDLG_TCOLUMN(pTColumns, nAllCols);
+
+ SwTwips nPos = 0;
+ SwTwips nLeft = GetLeftSpace();
+ rTabCols.SetLeft((USHORT)nLeft);
+ if(bSingleLine)
+ {
+ // die unsichtbaren Trenner werden aus den alten TabCols genommen
+ // die sichtbaren kommen aus pTColumns
+ TColumn* pOldTColumns = new TColumn[nAllCols + 1];
+ SwTwips nStart = 0,
+ nEnd;
+ for(USHORT i = 0; i < nAllCols - 1; i++)
+ {
+ nEnd = rTabCols[i] - rTabCols.GetLeft();
+ pOldTColumns[i].nWidth = nEnd - nStart;
+ pOldTColumns[i].bVisible = !rTabCols.IsHidden(i);
+ nStart = nEnd;
+ }
+ pOldTColumns[nAllCols - 1].nWidth = rTabCols.GetRight() - rTabCols.GetLeft() - nStart;
+ pOldTColumns[nAllCols - 1].bVisible = TRUE;
+
+DEBUG_TBLDLG_TCOLUMN(pOldTColumns, nAllCols);
+
+ USHORT nOldPos = 0;
+ USHORT nNewPos = 0;
+ SwTwips nOld = 0;
+ SwTwips nNew = 0;
+ BOOL bOld = FALSE;
+ BOOL bFirst = TRUE;
+ i = 0;
+
+ while ( i < nAllCols -1 )
+ {
+ while((bFirst || bOld ) && nOldPos < nAllCols )
+ {
+ nOld += pOldTColumns[nOldPos].nWidth;
+ nOldPos++;
+ if(!pOldTColumns[nOldPos - 1].bVisible)
+ break;
+ }
+ while((bFirst || !bOld ) && nNewPos < nAllCols )
+ {
+ nNew += pTColumns[nNewPos].nWidth;
+ nNewPos++;
+ if(pOldTColumns[nNewPos - 1].bVisible)
+ break;
+ }
+ bFirst = FALSE;
+ // sie muessen sortiert eingefuegt werden
+ bOld = nOld < nNew;
+ nPos = USHORT(bOld ? nOld : nNew);
+ rTabCols[i] = nPos + nLeft;
+ rTabCols.SetHidden( i, bOld );
+ i++;
+ }
+ rTabCols.SetRight(nLeft + nTblWidth);
+
+ delete pOldTColumns;
+ }
+ else
+ {
+ for ( i = 0; i < nAllCols - 1; ++i )
+ {
+ nPos += pTColumns[i].nWidth;
+ rTabCols[i] = nPos + rTabCols.GetLeft();
+ rTabCols.SetHidden( i, !pTColumns[i].bVisible );
+ rTabCols.SetRight(nLeft + pTColumns[nAllCols - 1].nWidth + nPos);
+ }
+ }
+
+// Rundungsfehler abfangen
+ if(Abs((long)nOldLeft - (long)rTabCols.GetLeft()) < 3)
+ rTabCols.SetLeft(nOldLeft);
+
+ if(Abs((long)nOldRight - (long)rTabCols.GetRight()) < 3)
+ rTabCols.SetRight(nOldRight);
+
+ if(rTabCols.GetRight() > rTabCols.GetRightMax())
+ rTabCols.SetRight(rTabCols.GetRightMax());
+ return bSingleLine;
+}
+
+
+
+
+/*-----------------12.12.96 12.22-------------------
+--------------------------------------------------*/
+SwTextFlowPage::SwTextFlowPage( Window* pParent,
+ const SfxItemSet& rSet ) :
+ SfxTabPage(pParent, SW_RES( TP_TABLE_TEXTFLOW ), rSet ),
+ aFlowGB (this, SW_RES(GB_FLOW )),
+ aPgBrkCB (this, SW_RES(CB_PAGEBREAK )),
+ aPgBrkRB (this, SW_RES(RB_BREAKPAGE )),
+ aColBrkRB (this, SW_RES(RB_BREAKCOLUMN )),
+ aPgBrkBeforeRB (this, SW_RES(RB_PAGEBREAKBEFORE)),
+ aPgBrkAfterRB (this, SW_RES(RB_PAGEBREAKAFTER )),
+ aPageCollCB (this, SW_RES(CB_PAGECOLL )),
+ aPageCollLB (this, SW_RES(LB_PAGECOLL )),
+ aPageNoFT (this, SW_RES(FT_PAGENUM )),
+ aPageNoNF (this, SW_RES(NF_PAGENUM )),
+ aKeepCB (this, SW_RES(CB_KEEP )),
+ aSplitCB (this, SW_RES(CB_SPLIT )),
+ aHeadLineCB (this, SW_RES(CB_HEADLINE )),
+ aVertOrientGB (this, SW_RES(GB_VERT_ORIENT )),
+ aTopRB (this, SW_RES(RB_VERT_TOP )),
+ aCenterRB (this, SW_RES(RB_VERT_CENTER )),
+ aBottomRB (this, SW_RES(RB_VERT_BOTTOM )),
+ pShell(0),
+ bPageBreak(TRUE),
+ bHtmlMode(FALSE)
+{
+ FreeResource();
+
+ aPgBrkCB.SetClickHdl(LINK(this, SwTextFlowPage, PageBreakHdl_Impl));
+ aPgBrkBeforeRB.SetClickHdl(
+ LINK( this, SwTextFlowPage, PageBreakPosHdl_Impl ) );
+ aPgBrkAfterRB.SetClickHdl(
+ LINK( this, SwTextFlowPage, PageBreakPosHdl_Impl ) );
+ aPageCollCB.SetClickHdl(
+ LINK( this, SwTextFlowPage, ApplyCollClickHdl_Impl ) );
+ aColBrkRB.SetClickHdl(
+ LINK( this, SwTextFlowPage, PageBreakTypeHdl_Impl ) );
+ aPgBrkRB.SetClickHdl(
+ LINK( this, SwTextFlowPage, PageBreakTypeHdl_Impl ) );
+
+#ifndef SW_FILEFORMAT_40
+ const SfxPoolItem *pItem;
+ if(SFX_ITEM_SET == rSet.GetItemState( SID_HTML_MODE, FALSE,&pItem )
+ && ((const SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON)
+#endif
+ {
+ aKeepCB.Hide();
+ aSplitCB.Hide();
+ }
+}
+
+/*-----------------12.12.96 12.22-------------------
+--------------------------------------------------*/
+ SwTextFlowPage::~SwTextFlowPage()
+{
+}
+
+/*-----------------12.12.96 12.22-------------------
+--------------------------------------------------*/
+SfxTabPage* SwTextFlowPage::Create( Window* pParent,
+ const SfxItemSet& rAttrSet)
+{
+ return new SwTextFlowPage(pParent, rAttrSet);
+}
+
+/*-----------------12.12.96 12.22-------------------
+--------------------------------------------------*/
+BOOL SwTextFlowPage::FillItemSet( SfxItemSet& rSet )
+{
+ BOOL bModified = FALSE;
+
+ //Ueberschrift wiederholen
+ if(aHeadLineCB.IsChecked() != aHeadLineCB.GetSavedValue())
+ {
+ bModified |= 0 != rSet.Put( SfxBoolItem(FN_PARAM_TABLE_HEADLINE,
+ aHeadLineCB.IsChecked()));
+ }
+ if(aKeepCB.IsChecked() != aKeepCB.GetSavedValue())
+ bModified |= 0 != rSet.Put( SvxFmtKeepItem( aKeepCB.IsChecked()));
+
+ if(aSplitCB.IsChecked() != aSplitCB.GetSavedValue())
+ bModified |= 0 != rSet.Put( SwFmtLayoutSplit( !aSplitCB.IsChecked()));
+
+ const SvxFmtBreakItem* pBreak = (const SvxFmtBreakItem*)GetOldItem( rSet, RES_BREAK );
+ const SwFmtPageDesc* pDesc = (const SwFmtPageDesc*) GetOldItem( rSet, RES_PAGEDESC );
+
+
+ BOOL bState = aPageCollCB.IsChecked();
+
+ //Wenn Seitenvorlage, dann kein Break
+ BOOL bPageItemPut = FALSE;
+ if ( bState != aPageCollCB.GetSavedValue() ||
+ ( bState &&
+ aPageCollLB.GetSelectEntryPos() != aPageCollLB.GetSavedValue() )
+ || aPageNoNF.IsEnabled() && aPageNoNF.IsValueModified())
+ {
+ String sPage;
+
+ if ( bState )
+ {
+ sPage = aPageCollLB.GetSelectEntry();
+ }
+ USHORT nPgNum = aPageNoNF.GetValue();
+ if ( !pDesc || !pDesc->GetPageDesc() ||
+ ( pDesc->GetPageDesc() && ((pDesc->GetPageDesc()->GetName() != sPage) ||
+ aPageNoNF.GetSavedValue() != (String)nPgNum)))
+ {
+ SwFmtPageDesc aFmt( pShell->FindPageDescByName( sPage, TRUE ) );
+ aFmt.SetNumOffset(bState ? nPgNum : 0);
+ bModified |= 0 != rSet.Put( aFmt );
+ bPageItemPut = bState;
+ }
+ }
+ BOOL bIsChecked = aPgBrkCB.IsChecked();
+ if ( !bPageItemPut &&
+ ( bState != aPageCollCB.GetSavedValue() ||
+ bIsChecked != aPgBrkCB.GetSavedValue() ||
+ aPgBrkBeforeRB.IsChecked() != aPgBrkBeforeRB.GetSavedValue() ||
+ aPgBrkRB.IsChecked() != aPgBrkRB.GetSavedValue() ))
+ {
+ SvxFmtBreakItem aBreak(
+ (const SvxFmtBreakItem&)GetItemSet().Get( RES_BREAK ) );
+
+ if(bIsChecked)
+ {
+ BOOL bBefore = aPgBrkBeforeRB.IsChecked();
+
+ if ( aPgBrkRB.IsChecked() )
+ {
+ if ( bBefore )
+ aBreak.SetValue( SVX_BREAK_PAGE_BEFORE );
+ else
+ aBreak.SetValue( SVX_BREAK_PAGE_AFTER );
+ }
+ else
+ {
+ if ( bBefore )
+ aBreak.SetValue( SVX_BREAK_COLUMN_BEFORE );
+ else
+ aBreak.SetValue( SVX_BREAK_COLUMN_AFTER );
+ }
+ }
+ else
+ {
+ aBreak.SetValue( SVX_BREAK_NONE );
+ }
+
+ if ( !pBreak || !( *(const SvxFmtBreakItem*)pBreak == aBreak ) )
+ {
+ bModified |= 0 != rSet.Put( aBreak );
+ }
+ }
+
+ USHORT nOrient = USHRT_MAX;
+ if(aTopRB.IsChecked() && !aTopRB.GetSavedValue())
+ nOrient = VERT_NONE;
+ else if( aCenterRB.IsChecked() && !aCenterRB.GetSavedValue() )
+ nOrient = VERT_CENTER;
+ else if( aBottomRB.IsChecked() && !aBottomRB.GetSavedValue() )
+ nOrient = VERT_BOTTOM;
+ if(nOrient != USHRT_MAX)
+ bModified |= 0 != rSet.Put(SfxUInt16Item(FN_TABLE_SET_VERT_ALIGN, nOrient));
+
+ return bModified;
+
+}
+
+/*-----------------12.12.96 12.22-------------------
+--------------------------------------------------*/
+void SwTextFlowPage::Reset( const SfxItemSet& rSet )
+{
+ const SfxPoolItem* pItem;
+ OfaHtmlOptions* pHtmlOpt = OFF_APP()->GetHtmlOptions();
+ BOOL bFlowAllowed = !bHtmlMode || pHtmlOpt->IsPrintLayoutExtension();
+ if(bFlowAllowed)
+ {
+ // Einfuegen der vorhandenen Seitenvorlagen in die Listbox
+ const USHORT nCount = pShell->GetPageDescCnt();
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ const SwPageDesc &rPageDesc = pShell->GetPageDesc(i);
+ aPageCollLB.InsertEntry(rPageDesc.GetName());
+ }
+
+ for(i = RES_POOLPAGE_BEGIN; i <= RES_POOLPAGE_REGISTER; ++i)
+ {
+ String aFmtName; GetDocPoolNm( i, aFmtName );
+ if( LISTBOX_ENTRY_NOTFOUND == aPageCollLB.GetEntryPos( aFmtName ))
+ aPageCollLB.InsertEntry( aFmtName );
+ }
+
+ if(SFX_ITEM_SET == rSet.GetItemState( RES_KEEP, FALSE, &pItem ))
+ {
+ aKeepCB.Check( ((const SvxFmtKeepItem*)pItem)->GetValue() );
+ aKeepCB.SaveValue();
+ }
+ if(SFX_ITEM_SET == rSet.GetItemState( RES_LAYOUT_SPLIT, FALSE, &pItem ))
+ {
+ aSplitCB.Check( !((const SwFmtLayoutSplit*)pItem)->GetValue() );
+ aSplitCB.SaveValue();
+ }
+
+ if(bPageBreak)
+ {
+ if(SFX_ITEM_SET == rSet.GetItemState( RES_PAGEDESC, FALSE, &pItem ))
+ {
+ String sPageDesc;
+ const SwPageDesc* pDesc = ((const SwFmtPageDesc*)pItem)->GetPageDesc();
+ aPageNoNF.SetValue(((const SwFmtPageDesc*)pItem)->GetNumOffset());
+ if(pDesc)
+ sPageDesc = pDesc->GetName();
+ if ( sPageDesc.Len() &&
+ aPageCollLB.GetEntryPos( sPageDesc ) != LISTBOX_ENTRY_NOTFOUND )
+ {
+ aPageCollLB.SelectEntry( sPageDesc );
+ aPageCollCB.Check();
+
+ aPgBrkCB.Enable();
+ aPgBrkRB.Enable();
+ aColBrkRB.Enable();
+ aPgBrkBeforeRB.Enable();
+ aPgBrkAfterRB.Enable();
+ aPageCollCB.Enable();
+ aPgBrkCB.Check();
+
+ aPgBrkCB.Check( TRUE );
+ aColBrkRB.Check( FALSE );
+ aPgBrkBeforeRB.Check( TRUE );
+ aPgBrkAfterRB.Check( FALSE );
+ }
+ else
+ {
+ aPageCollLB.SetNoSelection();
+ aPageCollCB.Check(FALSE);
+ }
+ }
+
+ if(SFX_ITEM_SET == rSet.GetItemState( RES_BREAK, FALSE, &pItem ))
+ {
+ const SvxFmtBreakItem* pPageBreak = (const SvxFmtBreakItem*)pItem;
+ SvxBreak eBreak = (SvxBreak)pPageBreak->GetValue();
+
+ if ( eBreak != SVX_BREAK_NONE )
+ {
+ aPgBrkCB.Check();
+ aPageCollCB.Enable(FALSE);
+ aPageCollLB.Enable(FALSE);
+ aPageNoNF.Enable(FALSE);
+ }
+ switch ( eBreak )
+ {
+ case SVX_BREAK_PAGE_BEFORE:
+ aPgBrkRB.Check( TRUE );
+ aColBrkRB.Check( FALSE );
+ aPgBrkBeforeRB.Check( TRUE );
+ aPgBrkAfterRB.Check( FALSE );
+ break;
+ case SVX_BREAK_PAGE_AFTER:
+ aPgBrkRB.Check( TRUE );
+ aColBrkRB.Check( FALSE );
+ aPgBrkBeforeRB.Check( FALSE );
+ aPgBrkAfterRB.Check( TRUE );
+ break;
+ case SVX_BREAK_COLUMN_BEFORE:
+ aPgBrkRB.Check( FALSE );
+ aColBrkRB.Check( TRUE );
+ aPgBrkBeforeRB.Check( TRUE );
+ aPgBrkAfterRB.Check( FALSE );
+ break;
+ case SVX_BREAK_COLUMN_AFTER:
+ aPgBrkRB.Check( FALSE );
+ aColBrkRB.Check( TRUE );
+ aPgBrkBeforeRB.Check( FALSE );
+ aPgBrkAfterRB.Check( TRUE );
+ break;
+ }
+
+ }
+ if ( aPgBrkBeforeRB.IsChecked() )
+ PageBreakPosHdl_Impl( &aPgBrkBeforeRB );
+ else if ( aPgBrkAfterRB.IsChecked() )
+ PageBreakPosHdl_Impl( &aPgBrkAfterRB );
+ PageBreakHdl_Impl( &aPgBrkCB );
+ }
+ }
+ else
+ {
+ aPgBrkRB.Enable(FALSE);
+ aColBrkRB.Enable(FALSE);
+ aPgBrkBeforeRB.Enable(FALSE);
+ aPgBrkAfterRB.Enable(FALSE);
+ aKeepCB .Enable(FALSE);
+ aSplitCB.Enable(FALSE);
+ aPgBrkCB.Enable(FALSE);
+ aPageCollCB.Enable(FALSE);
+ aPageCollLB.Enable(FALSE);
+ }
+
+ if(SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_TABLE_HEADLINE, FALSE, &pItem ))
+ {
+ aHeadLineCB.Check( ((const SfxBoolItem*)pItem)->GetValue() );
+ aHeadLineCB.SaveValue();
+ }
+ if ( rSet.GetItemState(FN_TABLE_SET_VERT_ALIGN) > SFX_ITEM_AVAILABLE )
+ {
+ USHORT nVert = ((const SfxUInt16Item&)rSet.Get(FN_TABLE_SET_VERT_ALIGN)).GetValue();
+ switch(nVert)
+ {
+ case VERT_NONE: aTopRB.Check(); break;
+ case VERT_CENTER: aCenterRB.Check(); break;
+ case VERT_BOTTOM: aBottomRB.Check(); break;
+ }
+ }
+
+ aPageCollCB.SaveValue();
+ aPageCollLB.SaveValue();
+ aPgBrkCB.SaveValue();
+ aPgBrkRB.SaveValue();
+ aColBrkRB.SaveValue();
+ aPgBrkBeforeRB.SaveValue();
+ aPgBrkAfterRB.SaveValue();
+ aPageNoNF.SaveValue();
+ aTopRB.SaveValue();
+ aCenterRB.SaveValue();
+ aBottomRB.SaveValue();
+}
+/*-----------------16.04.98 14:48-------------------
+
+--------------------------------------------------*/
+
+void SwTextFlowPage::SetShell(SwWrtShell* pSh)
+{
+ pShell = pSh;
+ bHtmlMode = 0 != (::GetHtmlMode(pShell->GetView().GetDocShell()) & HTMLMODE_ON);
+ if(bHtmlMode)
+ {
+ aPageNoNF.Enable(FALSE);
+ aPageNoFT.Enable(FALSE);
+ }
+}
+
+/*-----------------12.12.96 16.18-------------------
+--------------------------------------------------*/
+IMPL_LINK( SwTextFlowPage, PageBreakHdl_Impl, CheckBox*, EMPTYARG )
+{
+ if( aPgBrkCB.IsChecked() )
+ {
+ aPgBrkRB. Enable();
+ aColBrkRB. Enable();
+ aPgBrkBeforeRB. Enable();
+ aPgBrkAfterRB. Enable();
+
+ if ( aPgBrkRB.IsChecked() && aPgBrkBeforeRB.IsChecked() )
+ {
+ aPageCollCB.Enable();
+
+ BOOL bEnable = aPageCollCB.IsChecked() &&
+ aPageCollLB.GetEntryCount();
+ aPageCollLB.Enable(bEnable);
+ if(!bHtmlMode)
+ aPageNoNF.Enable(bEnable);
+ }
+ }
+ else
+ {
+ aPageCollCB.Check( FALSE );
+ aPageCollCB.Enable(FALSE);
+ aPageCollLB.Enable(FALSE);
+ aPageNoNF.Enable(FALSE);
+ aPgBrkRB. Enable(FALSE);
+ aColBrkRB. Enable(FALSE);
+ aPgBrkBeforeRB. Enable(FALSE);
+ aPgBrkAfterRB. Enable(FALSE);
+ }
+ return 0;
+}
+
+/*-----------------12.12.96 16.18-------------------
+--------------------------------------------------*/
+IMPL_LINK( SwTextFlowPage, ApplyCollClickHdl_Impl, CheckBox*, EMPTYARG )
+{
+ BOOL bEnable = FALSE;
+ if ( aPageCollCB.IsChecked() &&
+ aPageCollLB.GetEntryCount() )
+ {
+ bEnable = TRUE;
+ aPageCollLB.SelectEntryPos( 0 );
+ }
+ else
+ {
+ aPageCollLB.SetNoSelection();
+ }
+ aPageCollLB.Enable(bEnable);
+ if(!bHtmlMode)
+ aPageNoNF.Enable(bEnable);
+ return 0;
+}
+
+/*-----------------12.12.96 16.18-------------------
+--------------------------------------------------*/
+IMPL_LINK( SwTextFlowPage, PageBreakPosHdl_Impl, RadioButton*, pBtn )
+{
+ if ( aPgBrkCB.IsChecked() )
+ {
+ if ( pBtn == &aPgBrkBeforeRB )
+ {
+ aPageCollCB.Enable();
+
+ BOOL bEnable = aPageCollCB.IsChecked() &&
+ aPageCollLB.GetEntryCount();
+
+ aPageCollLB.Enable(bEnable);
+ if(!bHtmlMode)
+ aPageNoNF.Enable(bEnable);
+ }
+ else if ( pBtn == &aPgBrkAfterRB )
+ {
+ aPageCollCB .Check( FALSE );
+ aPageCollCB .Enable(FALSE);
+ aPageCollLB .Enable(FALSE);
+ aPageNoNF .Enable(FALSE);
+ }
+ }
+ return 0;
+}
+
+/*-----------------12.12.96 16.18-------------------
+--------------------------------------------------*/
+IMPL_LINK( SwTextFlowPage, PageBreakTypeHdl_Impl, RadioButton*, pBtn )
+{
+ if ( pBtn == &aColBrkRB || aPgBrkAfterRB.IsChecked() )
+ {
+ aPageCollCB .Check(FALSE);
+ aPageCollCB .Enable(FALSE);
+ aPageCollLB .Enable(FALSE);
+ aPageNoNF .Enable(FALSE);
+ }
+ else if ( aPgBrkBeforeRB.IsChecked() )
+ PageBreakPosHdl_Impl( &aPgBrkBeforeRB );
+ return 0;
+}
+
+/*-----------------30.05.97 07:37-------------------
+
+--------------------------------------------------*/
+void SwTextFlowPage::DisablePageBreak()
+{
+ bPageBreak = FALSE;
+ aPgBrkCB .Disable();
+ aPgBrkRB .Disable();
+ aColBrkRB .Disable();
+ aPgBrkBeforeRB .Disable();
+ aPgBrkAfterRB .Disable();
+ aPageCollCB .Disable();
+ aPageCollLB .Disable();
+ aPageNoFT .Disable();
+ aPageNoNF .Disable();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.169 2000/09/18 16:06:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.168 2000/08/24 15:21:38 os
+ tables with negative LRSpace
+
+ Revision 1.167 2000/07/27 21:16:28 jp
+ opt: get template names direct from the doc and don't load it from the resource
+
+ Revision 1.166 2000/06/16 09:51:28 os
+ #73123# disable manual table alignment in HTML
+
+ Revision 1.165 2000/05/26 07:21:33 os
+ old SW Basic API Slots removed
+
+ Revision 1.164 2000/05/23 19:31:24 jp
+ Bugfixes for Unicode
+
+ Revision 1.163 2000/04/19 11:22:11 os
+ UNICODE
+
+ Revision 1.162 1999/08/23 07:48:32 OS
+ #61218# correct handling of left_and_width oriented tables
+
+
+ Rev 1.161 23 Aug 1999 09:48:32 OS
+ #61218# correct handling of left_and_width oriented tables
+
+ Rev 1.160 28 May 1999 10:28:32 OS
+ #54824# HoriOrientation_LEFT_AND_WIDTH fuer von links ausgerichtete Tabellen
+
+ Rev 1.159 08 Feb 1999 14:56:32 OS
+ #61545# Break-Attribut nur noch bei fehlendem oder leeren PageDesc mitschicken
+
+ Rev 1.158 08 Feb 1999 10:23:22 JP
+ Task #61467#/#61014#: neu FindPageDescByName
+
+ Rev 1.157 04 Jan 1999 14:15:00 OS
+ #60366# Umbruch-Buttons in HTML-Docs ebenfalls disablen
+
+ Rev 1.156 27 Nov 1998 14:56:48 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.155 27 Nov 1998 14:02:44 MH
+ add: header
+
+ Rev 1.154 08 Sep 1998 17:04:00 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.153 29 May 1998 19:08:00 JP
+ SS vom SwTableReq geaendert
+
+ Rev 1.152 28 Apr 1998 09:10:12 OS
+ Background: ShowSelector mit HTML-Beruecksichtigung #49862#
+
+ Rev 1.151 21 Apr 1998 08:44:36 OS
+ TableNameEdit verschoben
+
+ Rev 1.150 17 Apr 1998 16:30:50 OS
+ Printing extensions fuer HTML
+
+ Rev 1.149 16 Apr 1998 15:57:28 OS
+ Printing extensions fuer HTML
+
+ Rev 1.148 02 Mar 1998 09:15:52 OS
+ Minimalbreite spaltenabhaengig, Fokushilfe fuer Edit#47641##47658#
+
+ Rev 1.147 29 Nov 1997 14:28:10 MA
+ includes
+
+ Rev 1.146 24 Nov 1997 15:52:22 MA
+ includes
+
+ Rev 1.145 19 Nov 1997 16:54:54 OS
+ Hintergrund: zuerst ShowTblCtrl rufen #45654#
+
+ Rev 1.144 03 Nov 1997 13:56:50 MA
+ precomp entfernt
+
+ Rev 1.143 30 Oct 1997 11:19:20 AMA
+ Chg: Kein AutoFlag mehr an Break bzw. PageDesc-Attributen
+
+ Rev 1.142 30 Sep 1997 16:51:36 TJ
+ include
+
+ Rev 1.141 25 Aug 1997 14:26:28 OS
+ Leerzeichen im Tabellennamen vor dem Verlassen der Page ueberpruefen #42643#
+
+ Rev 1.140 15 Aug 1997 12:18:20 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.139 11 Aug 1997 10:12:42 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.138 03 Jul 1997 12:53:40 OS
+ SwSwMode jetzt mit BYTE #41255#
+
+ Rev 1.137 18 Jun 1997 17:27:42 OS
+ Breite im TableRep nie auf IVALID_TWIP setzen #40808#
+
+ Rev 1.136 11 Jun 1997 10:54:40 OS
+ Behandlung relativer Tabellen berichtigt; restore nach automatisch funktioniert jetzt #40590#
+
+ Rev 1.135 03 Jun 1997 16:39:58 MA
+ chg: neue Tabellenfeatures hiden
+
+ Rev 1.134 30 May 1997 08:44:50 OS
+ kein Umbruch ausserbalb des Bodies #40306#
+
+ Rev 1.133 14 Apr 1997 19:15:58 MA
+ eigendes Headerfile fuer die Pages
+
+ Rev 1.132 11 Apr 1997 15:55:26 MA
+ chg: kein Keep und split fuer Web
+
+ Rev 1.131 11 Apr 1997 13:36:26 MA
+ split richtig
+
+ Rev 1.130 11 Apr 1997 13:07:08 MA
+ new: Layout-Split
+
+ Rev 1.129 10 Apr 1997 18:26:48 MA
+ Keep besser (?), Keep fuer Tables
+
+ Rev 1.128 13 Mar 1997 11:37:52 OS
+ enable/disble fuer manuell/zentriert berichtigt
+
+ Rev 1.127 10 Mar 1997 16:20:48 OS
+ Right an den TabCols darf niemals groesser als RightMax sein
+
+ Rev 1.126 20 Feb 1997 17:49:36 OS
+ Abstand oben/unten nicht im HTML
+
+ Rev 1.125 13 Feb 1997 13:49:44 OS
+ Tabellen im HTML auch manuell
+
+ Rev 1.124 12 Feb 1997 14:28:38 OS
+ wird der Umbruch abgeschaltet, muss auch der Offeset auf NULL gesetzt werden
+
+ Rev 1.123 10 Feb 1997 16:36:02 OS
+ autom. Ausrichtung: rechter Rand darf nicht eingestellt werden
+
+ Rev 1.122 05 Feb 1997 10:04:22 OS
+ keine Leerzeichen und Punkte im Tabellennamen; FillItemSet aus DeactivatePage aufrufen
+
+ Rev 1.121 03 Feb 1997 12:12:44 OS
+ Im HtmlMode kein Name und keine manuelle Ausrichtung
+
+ Rev 1.120 30 Jan 1997 15:33:00 OS
+ ...PARA_PAGENUM ueberfluessig
+
+ Rev 1.119 22 Jan 1997 11:38:16 MA
+ Umstellung Put
+
+ Rev 1.118 08 Jan 1997 11:57:30 OS
+ Umbruch-CheckBox nicht setzen fuer SVX_BREAK_NONE
+
+ Rev 1.117 20 Dec 1996 12:13:48 OS
+ vertikale Ausrichtung jetzt mit FN_TABLE_SET_VERT_ALIGN
+
+ Rev 1.116 19 Dec 1996 12:00:42 OS
+ V-Alignment auswerten
+
+ Rev 1.115 18 Dec 1996 14:58:40 OS
+ Vorbereitung BoxAlign
+
+ Rev 1.114 16 Dec 1996 16:23:22 OS
+ versteckte Trenner an der alten Position wieder einsortieren
+
+ Rev 1.113 13 Dec 1996 15:48:38 HJS
+ header name
+
+ Rev 1.112 13 Dec 1996 08:34:14 OS
+ vorlaeufig vollstaendig
+
+ Rev 1.111 12 Dec 1996 16:58:12 OS
+ Textfluss fuer Tabelle
+
+ Rev 1.110 10 Dec 1996 18:23:32 OS
+ FillTabCols: rechten Rand aus der Summe der Spalten und dem linken Rand ermitteln #34303#
+
+ Rev 1.109 04 Dec 1996 16:04:44 OS
+ rechter Rand darf auch wieder fuer die manuelle Einstellung benutzt werden
+
+ Rev 1.108 02 Dec 1996 10:35:24 OS
+ erst SetRefValue, dann ShowPercent
+
+ Rev 1.107 30 Nov 1996 11:24:18 OS
+ Rel. Breite: Raender werden mitgesetzt
+
+ Rev 1.106 11 Nov 1996 11:20:32 MA
+ ResMgr
+
+ Rev 1.105 05 Nov 1996 07:01:28 OS
+ bModified auf TRUE setzen
+
+ Rev 1.104 04 Nov 1996 12:00:10 OS
+ kein Handler fuer HeadlineRepeat
+
+ Rev 1.103 16 Oct 1996 16:25:22 OS
+ letzte Probleme mit autom. Breite behoben
+
+ Rev 1.102 14 Oct 1996 14:01:40 OS
+ keine Breitenaenderung in der Spalten-Page fuer automatische Ausrichtung
+
+ Rev 1.101 14 Oct 1996 13:52:48 OS
+ bei automatischer Ausrichtung muss TableSpace statt TableWidth benutzt werden
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/table/tabledlg.hrc b/sw/source/ui/table/tabledlg.hrc
new file mode 100644
index 000000000000..c498c3a97401
--- /dev/null
+++ b/sw/source/ui/table/tabledlg.hrc
@@ -0,0 +1,137 @@
+/*************************************************************************
+ *
+ * $RCSfile: tabledlg.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "globals.hrc"
+
+#define ED_WIDTH 1
+#define GB_WIDTH 3
+#define CB_REL_WIDTH 4
+#define RB_LEFT 10
+#define RB_RIGHT 11
+#define RB_CENTER 12
+#define RB_FREE 13
+#define RB_FULL 14
+#define GB_POS 15
+#define ED_LEFT_DIST 51
+#define ED_RIGHT_DIST 52
+#define FT_RIGHT_DIST 53
+#define FT_LEFT_DIST 54
+#define FT_TOP_DIST 20
+#define ED_TOP_DIST 21
+#define FT_BOTTOM_DIST 22
+#define ED_BOTTOM_DIST 23
+#define GB_DIST 24
+#define FT_WIDTH 25
+#define FT_SCOL 30
+#define DLB_SCOL 31
+#define FT_POS 32
+#define DLB_SPOS 33
+#define FT_SSZ 34
+#define ED_SSZ 36
+#define GB_SHADE 37
+#define CB_HEADLINE 40
+#define GB_HEADLINE 41
+#define BT_OK 100
+#define BT_CANCEL 101
+#define BT_MORE 102
+#define ED_NAME 103
+#define FT_NAME 104
+#define GB_OPTIONS 105
+#define GB_NAME 106
+#define COL_FT_1 107
+#define COL_MF_1 108
+#define COL_FT_2 109
+#define COL_MF_2 110
+#define COL_FT_3 111
+#define COL_MF_3 112
+#define COL_FT_4 113
+#define COL_MF_4 114
+#define COL_FT_5 115
+#define COL_MF_5 116
+#define COL_FT_6 117
+#define COL_MF_6 118
+#define COL_GB_LAYOUT 119
+#define COL_BTN_UP 120
+#define COL_BTN_DOWN 121
+#define CB_MOD_TBL 122
+#define CB_PROP 123
+#define CB_INV 124
+#define FT_SPACE 125
+#define ED_SPACE 126
+
+#define GB_FLOW 130
+#define CB_PAGEBREAK 131
+#define RB_BREAKPAGE 132
+#define RB_BREAKCOLUMN 133
+#define RB_PAGEBREAKBEFORE 134
+#define RB_PAGEBREAKAFTER 135
+#define CB_PAGECOLL 136
+#define LB_PAGECOLL 137
+#define FT_PAGENUM 138
+#define NF_PAGENUM 139
+#define CB_KEEP 144
+#define CB_SPLIT 145
+
+#define GB_VERT_ORIENT 140
+#define RB_VERT_TOP 141
+#define RB_VERT_CENTER 142
+#define RB_VERT_BOTTOM 143
+
+#define RB_FROM_LEFT 144
diff --git a/sw/source/ui/table/tabledlg.src b/sw/source/ui/table/tabledlg.src
new file mode 100644
index 000000000000..5f2d396d1752
--- /dev/null
+++ b/sw/source/ui/table/tabledlg.src
@@ -0,0 +1,1600 @@
+/*************************************************************************
+ *
+ * $RCSfile: tabledlg.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "table.hrc"
+#include "tabledlg.hrc"
+#include "helpid.h"
+#define TEXT_TEXTFLOW \
+ Text = "Textfluss" ; \
+ Text [ English ] = "Text Flow" ; \
+ Text [ norwegian ] = "Utvidelse av avsnitt" ; \
+ Text [ italian ] = "Flusso di testo" ; \
+ Text [ portuguese_brazilian ] = "Extens es de Parágrafo" ; \
+ Text [ portuguese ] = "Fluxo de texto" ; \
+ Text [ finnish ] = "Tekstin rivitys" ; \
+ Text [ danish ] = "Tekstretning" ; \
+ Text [ french ] = "Enchaînements" ; \
+ Text [ swedish ] = "Textflöde" ; \
+ Text [ dutch ] = "Tekstverloop" ; \
+ Text [ spanish ] = "Flujo del texto" ; \
+ Text [ english_us ] = "Text Flow" ; \
+ Text[ chinese_simplified ] = "»»ÐкͷÖÒ³"; \
+ Text[ russian ] = "Ïîëîæåíèå íà ñòðàíèöå"; \
+ Text[ polish ] = "Tekst"; \
+ Text[ japanese ] = "‘ÌÙ"; \
+ Text[ chinese_traditional ] = "´«¦æ©M¤À­¶"; \
+ Text[ arabic ] = "ÇäÓíÇÈ ÇáäÕ"; \
+ Text[ greek ] = "ÑïÞ êåéìÝíïõ"; \
+ Text[ korean ] = "ÅؽºÆ® È帧"; \
+ Text[ turkish ] = "Metin akýþý"; \
+ Text[ language_user1 ] = " ";
+
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabDialog DLG_FORMAT_TABLE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Tabellenformat" ;
+ Text [ ENGLISH ] = "Table format" ;
+ Text [ norwegian ] = "Tabellformat" ;
+ Text [ italian ] = "Formato tabella" ;
+ Text [ portuguese_brazilian ] = "Formato de tabela" ;
+ Text [ portuguese ] = "Formato da tabela" ;
+ Text [ finnish ] = "Taulukon muoto" ;
+ Text [ danish ] = "Tabelformat" ;
+ Text [ french ] = "Format de tableau" ;
+ Text [ swedish ] = "Tabellformat" ;
+ Text [ dutch ] = "Tabelopmaak" ;
+ Text [ spanish ] = "Formato de tabla" ;
+ Text [ english_us ] = "Table Format" ;
+ Moveable = TRUE ;
+ TabControl 1
+ {
+ SVLook = TRUE ;
+ PageList =
+ {
+ PageItem
+ {
+ Identifier = TP_FORMAT_TABLE ;
+ Text = "Tabelle" ;
+ Text [ ENGLISH ] = "Table" ;
+ Text [ norwegian ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ portuguese_brazilian ] = "Tabela" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ finnish ] = "Taulukko" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ french ] = "Tableau" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ english_us ] = "Table" ;
+ PageResID = TP_FORMAT_TABLE ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÇáÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_TABLE_TEXTFLOW ;
+ TEXT_TEXTFLOW
+ };
+ PageItem
+ {
+ Identifier = TP_TABLE_COLUMN ;
+ Text = "Spalten" ;
+ Text [ ENGLISH ] = "Columns" ;
+ Text [ norwegian ] = "Kolonner" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ portuguese_brazilian ] = "Colunas" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ finnish ] = "Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ english_us ] = "Columns" ;
+ PageResID = TP_TABLE_COLUMN ;
+ Text[ chinese_simplified ] = "À¸";
+ Text[ russian ] = "Ñòîëáöû";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "—ñ";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BORDER ;
+ Text = "Umrandung" ;
+ Text [ ENGLISH ] = "Border" ;
+ Text [ norwegian ] = "Border" ;
+ Text [ italian ] = "Bordo" ;
+ Text [ portuguese_brazilian ] = "Borda" ;
+ Text [ portuguese ] = "Contornos" ;
+ Text [ finnish ] = "Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "Bordure" ;
+ Text [ swedish ] = "Inramning" ;
+ Text [ dutch ] = "Omranding" ;
+ Text [ spanish ] = "Borde" ;
+ Text [ english_us ] = "Borders" ;
+ PageResID = TP_BORDER ;
+ Text[ chinese_simplified ] = "±ß¿ò";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g";
+ Text[ chinese_traditional ] = "Ãä®Ø";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "Å׵θ®";
+ Text[ turkish ] = "Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ PageItem
+ {
+ Identifier = TP_BACKGROUND ;
+ Text = "Hintergrund" ;
+ Text [ ENGLISH ] = "Background" ;
+ Text [ norwegian ] = "Background" ;
+ Text [ italian ] = "Sfondo" ;
+ Text [ portuguese_brazilian ] = "Fundo" ;
+ Text [ portuguese ] = "Plano de fundo" ;
+ Text [ finnish ] = "Tausta" ;
+ Text [ danish ] = "Baggrund" ;
+ Text [ french ] = "Arrière-plan" ;
+ Text [ swedish ] = "Bakgrund" ;
+ Text [ dutch ] = "Achtergrond" ;
+ Text [ spanish ] = "Fondo" ;
+ Text [ english_us ] = "Background" ;
+ PageResID = TP_BACKGROUND ;
+ Text[ chinese_simplified ] = "±³¾°";
+ Text[ russian ] = "Ôîí";
+ Text[ polish ] = "T³o";
+ Text[ japanese ] = "”wŒi";
+ Text[ chinese_traditional ] = "­I´º";
+ Text[ arabic ] = "ÇáÎáÝíÉ";
+ Text[ greek ] = "Öüíôï";
+ Text[ korean ] = "¹è°æ";
+ Text[ turkish ] = "Artalan";
+ Text[ language_user1 ] = " ";
+ };
+ };
+ };
+ Text[ chinese_simplified ] = "±í¸ñ¸ñʽ";
+ Text[ russian ] = "Ôîðìàò òàáëèöû";
+ Text[ polish ] = "Format tabeli";
+ Text[ japanese ] = "•\\‚Ì‘Ž®";
+ Text[ chinese_traditional ] = "ªí®æ®æ¦¡";
+ Text[ arabic ] = "ÊäÓíÞ ÇáÌÏæá";
+ Text[ greek ] = "ÌïñöÞ ðßíáêá";
+ Text[ korean ] = "Ç¥ ¼­½Ä";
+ Text[ turkish ] = "Tablo formatý";
+ Text[ language_user1 ] = " ";
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabPage TP_FORMAT_TABLE
+{
+ HelpID = HID_FORMAT_TABLE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE;
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 22 , 10 ) ;
+ Text = "~Name" ;
+ Text [ English ] = "~Name" ;
+ Text [ italian ] = "~Nome" ;
+ Text [ portuguese ] = "~Nome" ;
+ Text [ danish ] = "Navn" ;
+ Text [ french ] = "~Nom" ;
+ Text [ swedish ] = "~Namn" ;
+ Text [ dutch ] = "~Naam" ;
+ Text [ spanish ] = "~Nombre" ;
+ Text [ english_us ] = "~Name" ;
+ Text [ portuguese_brazilian ] = "~Name" ;
+ Text[ chinese_simplified ] = "Ãû³Æ(~N)";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O(~N)";
+ Text[ chinese_traditional ] = "¦WºÙ(~N)";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§(~N)";
+ Text[ turkish ] = "~Ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_NAME
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 58 , 14 ) ;
+ Size = MAP_APPFONT ( 79 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_WIDTH
+ {
+ Pos = MAP_APPFONT ( 12 , 33 ) ;
+ Size = MAP_APPFONT ( 22 , 10 ) ;
+ Text = "Br~eite" ;
+ Text [ ENGLISH ] = "W~idth" ;
+ Text [ norwegian ] = "B~redde" ;
+ Text [ italian ] = "L~argh." ;
+ Text [ portuguese_brazilian ] = "L~argura" ;
+ Text [ portuguese ] = "L~argura" ;
+ Text [ finnish ] = "~Leveys" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ french ] = "~Largeur" ;
+ Text [ swedish ] = "Br~edd" ;
+ Text [ dutch ] = "~Breedte" ;
+ Text [ spanish ] = "A~ncho" ;
+ Text [ english_us ] = "W~idth" ;
+ Text[ chinese_simplified ] = "¿í(~I)";
+ Text[ russian ] = "Øèðèíà";
+ Text[ polish ] = "Szer.";
+ Text[ japanese ] = "•(~I)";
+ Text[ chinese_traditional ] = "¼e(~I)";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÐëÜôïò";
+ Text[ korean ] = "³Êºñ(~I)";
+ Text[ turkish ] = "G~eniþlik";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_WIDTH
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 58 , 32 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Value = 0 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 9999 ;
+ SpinSize = 5 ;
+ };
+ CheckBox CB_REL_WIDTH
+ {
+ Pos = MAP_APPFONT ( 101 , 34 ) ;
+ Size = MAP_APPFONT ( 35 , 10 ) ;
+ Text = "Relati~v" ;
+ Text [ ENGLISH ] = "Relati~ve" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Relati~ve" ;
+ Text [ italian ] = "Relati~vo" ;
+ Text [ spanish ] = "Relati~vo" ;
+ Text [ french ] = "Relati~f" ;
+ Text [ dutch ] = "Relatie~f" ;
+ Text [ swedish ] = "Relati~v" ;
+ Text [ danish ] = "Relativ" ;
+ Text [ portuguese_brazilian ] = "Relati~v" ;
+ Text [ portuguese ] = "Relat~ivo" ;
+ Text[ chinese_simplified ] = "숦﵀(~V)";
+ Text[ russian ] = "Îòíîñèò.";
+ Text[ polish ] = "Wz~glêdny";
+ Text[ japanese ] = "Êß°¾ÝÄ•\\Ž¦(~V)";
+ Text[ chinese_traditional ] = "¬Û¹ïªº(~V)";
+ Text[ arabic ] = "äÓÈí";
+ Text[ greek ] = "Ó÷åôéêÜ";
+ Text[ korean ] = "ºñ·Ê(~V)";
+ Text[ turkish ] = "Göreceli";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_OPTIONS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 184 , 73 ) ;
+ Text = "Eigenschaften" ;
+ Text [ ENGLISH ] = "Options" ;
+ Text [ norwegian ] = "Options" ;
+ Text [ italian ] = "Opzioni" ;
+ Text [ portuguese_brazilian ] = "Opções" ;
+ Text [ portuguese ] = "Propriedades" ;
+ Text [ finnish ] = "Määritykset" ;
+ Text [ danish ] = "Egenskaber" ;
+ Text [ french ] = "Options" ;
+ Text [ swedish ] = "Egenskaper" ;
+ Text [ dutch ] = "Eigenschappen" ;
+ Text [ spanish ] = "Propiedades" ;
+ Text [ english_us ] = "Properties" ;
+ Text[ chinese_simplified ] = "ÊôÐÔ";
+ Text[ russian ] = "Ñâîéñòâà";
+ Text[ polish ] = "W³aœciwoœci";
+ Text[ japanese ] = "ÌßÛÊßè";
+ Text[ chinese_traditional ] = "ÄÝ©Ê";
+ Text[ arabic ] = "ÎÕÇÆÕ";
+ Text[ greek ] = "Éäéüôçôåò";
+ Text[ korean ] = "Ư¼º";
+ Text[ turkish ] = "Özellikler";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FULL
+ {
+ Pos = MAP_APPFONT ( 199 , 15 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "~Automatisch" ;
+ Text [ ENGLISH ] = "~Automatic" ;
+ Text [ italian ] = "~Automatico" ;
+ Text [ finnish ] = "~Automaattinen" ;
+ Text [ swedish ] = "~Automatiskt" ;
+ Text [ dutch ] = "~Automatisch" ;
+ Text [ english_us ] = "A~utomatic" ;
+ Text [ spanish ] = "Au~tomática" ;
+ Text [ french ] = "~Automatique" ;
+ Text [ danish ] = "Automatisk" ;
+ Text [ portuguese_brazilian ] = "~Automatisch" ;
+ Text [ portuguese ] = "~Automático" ;
+ Text[ chinese_simplified ] = "×Ô¶¯(~A)";
+ Text[ russian ] = "Àâòîìàòè÷åñêè";
+ Text[ polish ] = "Automatycznie";
+ Text[ japanese ] = "Ž©“®(~A)";
+ Text[ chinese_traditional ] = "¦Û°Ê(~A)";
+ Text[ arabic ] = "ÊáÞÇÆí";
+ Text[ greek ] = "Áõôüìáôá";
+ Text[ korean ] = "ÀÚµ¿(~U)";
+ Text[ turkish ] = "Otomatik";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_LEFT
+ {
+ Pos = MAP_APPFONT ( 199 , 29 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Links" ;
+ Text [ ENGLISH ] = "~Left" ;
+ Text [ norwegian ] = "~Left" ;
+ Text [ italian ] = "~Sinistra" ;
+ Text [ portuguese_brazilian ] = "~Esquerda" ;
+ Text [ portuguese ] = "~Esquerda" ;
+ Text [ finnish ] = "~Vasemmalle" ;
+ Text [ danish ] = "Venstre" ;
+ Text [ french ] = "~À gauche" ;
+ Text [ swedish ] = "Vän~ster" ;
+ Text [ dutch ] = "~Links" ;
+ Text [ spanish ] = "~Izquierda" ;
+ Text [ english_us ] = "~Left" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "×ó(~L)";
+ Text[ russian ] = "Ñëåâà";
+ Text[ polish ] = "Z lew~ej";
+ Text[ japanese ] = "¶(~L)";
+ Text[ chinese_traditional ] = "¥ª(~L)";
+ Text[ arabic ] = "íÓÇÑ";
+ Text[ greek ] = "ÁñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ(~L)";
+ Text[ turkish ] = "S~ola";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FROM_LEFT
+ {
+ Pos = MAP_APPFONT ( 199 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "Von l~inks" ;
+ Text [ ENGLISH ] = "~From left" ;
+ TabStop = TRUE ;
+ Text[ english_us ] = "~From left";
+ Text[ portuguese ] = "~Esquerda";
+ Text[ russian ] = "Ñëåâà";
+ Text[ greek ] = "Aðü áñéóôåñÜ";
+ Text[ dutch ] = "~Van links";
+ Text[ french ] = "De ~gauche";
+ Text[ spanish ] = "De iz~quierda";
+ Text[ italian ] = "~Da sinistra";
+ Text[ danish ] = "Fra venstre";
+ Text[ swedish ] = "Från vänster";
+ Text[ polish ] = "Od lewej";
+ Text[ portuguese_brazilian ] = "~From left";
+ Text[ japanese ] = "¶‚©‚ç(~F)";
+ Text[ korean ] = "¿ÞÂÊÀ¸·ÎºÎÅÍ(~F)";
+ Text[ chinese_simplified ] = "´Ó×ó(~F)";
+ Text[ chinese_traditional ] = "±q¥ª(~F)";
+ Text[ arabic ] = "ãä ÇáíÓÇÑ";
+ Text[ turkish ] = "S~oldan";
+ };
+ RadioButton RB_RIGHT
+ {
+ Pos = MAP_APPFONT ( 199 , 57 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Rechts" ;
+ Text [ ENGLISH ] = "~Right" ;
+ Text [ norwegian ] = "~Right" ;
+ Text [ italian ] = "~Destra" ;
+ Text [ portuguese_brazilian ] = "~Direita" ;
+ Text [ portuguese ] = "~Direita" ;
+ Text [ finnish ] = "~Oikealle" ;
+ Text [ danish ] = "Højre" ;
+ Text [ french ] = "~À droite" ;
+ Text [ swedish ] = "Höge~r" ;
+ Text [ dutch ] = "~Rechts" ;
+ Text [ spanish ] = "~Derecha" ;
+ Text [ english_us ] = "R~ight" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ÓÒ(~R)";
+ Text[ russian ] = "Ñïðàâà";
+ Text[ polish ] = "Z p~rawej";
+ Text[ japanese ] = "‰E(~R)";
+ Text[ chinese_traditional ] = "¥k(~R)";
+ Text[ arabic ] = "íãíä";
+ Text[ greek ] = "ÄåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ(~I)";
+ Text[ turkish ] = "Sa~ða";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_CENTER
+ {
+ Pos = MAP_APPFONT ( 199 , 71 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "Zen~triert" ;
+ Text [ ENGLISH ] = "~Centered" ;
+ Text [ norwegian ] = "~Centered" ;
+ Text [ italian ] = "~Centrato" ;
+ Text [ portuguese_brazilian ] = "~Centralizado" ;
+ Text [ portuguese ] = "~Centrado" ;
+ Text [ finnish ] = "~Keski" ;
+ Text [ danish ] = "Centreret" ;
+ Text [ french ] = "~Centré" ;
+ Text [ swedish ] = "Centrerat" ;
+ Text [ dutch ] = "~Centreren" ;
+ Text [ spanish ] = "~Centrado" ;
+ Text [ english_us ] = "~Center" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "¾ÓÖÐ(~C)";
+ Text[ russian ] = "Ïî öåíòðó";
+ Text[ polish ] = "Wyœrodkowany";
+ Text[ japanese ] = "’†‰›‘µ‚¦(~C)";
+ Text[ chinese_traditional ] = "¸m¤¤(~C)";
+ Text[ arabic ] = "ÊæÓíØ";
+ Text[ greek ] = "ÊåíôñáñéóìÝíá";
+ Text[ korean ] = "°¡¿îµ¥(~C)";
+ Text[ turkish ] = "~Ortala";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_FREE
+ {
+ Pos = MAP_APPFONT ( 199 , 85 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Text = "~Manuell" ;
+ Text [ ENGLISH ] = "~Manual" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Manual" ;
+ Text [ italian ] = "~Manuale" ;
+ Text [ spanish ] = "~Manual" ;
+ Text [ french ] = "~Manuel" ;
+ Text [ dutch ] = "~Handmatig" ;
+ Text [ swedish ] = "~Manuellt" ;
+ Text [ danish ] = "Manuel" ;
+ Text [ portuguese_brazilian ] = "~Manuell" ;
+ Text [ portuguese ] = "~Manual" ;
+ Text[ chinese_simplified ] = "ÊÖ¹¤(~M)";
+ Text[ russian ] = "Âðó÷íóþ";
+ Text[ polish ] = "Rê~cznie";
+ Text[ japanese ] = "”CˆÓŽw’è(~M)";
+ Text[ chinese_traditional ] = "¤â¤u(~M)";
+ Text[ arabic ] = "íÏæí";
+ Text[ greek ] = "×åéñïêßíçôá";
+ Text[ korean ] = "¼öµ¿(~M)";
+ Text[ turkish ] = "~Manüel";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_POS
+ {
+ Pos = MAP_APPFONT ( 193 , 3 ) ;
+ Size = MAP_APPFONT ( 61 , 129 ) ;
+ Text = "Ausrichtung" ;
+ Text [ ENGLISH ] = "Position" ;
+ Text [ norwegian ] = "Posisjon" ;
+ Text [ italian ] = "Allineamento" ;
+ Text [ portuguese_brazilian ] = "Posição" ;
+ Text [ portuguese ] = "Alinhamento" ;
+ Text [ finnish ] = "Sijainti" ;
+ Text [ danish ] = "Justering" ;
+ Text [ french ] = "Alignement" ;
+ Text [ swedish ] = "Justering" ;
+ Text [ dutch ] = "Uitlijning" ;
+ Text [ spanish ] = "Alineación" ;
+ Text [ english_us ] = "Alignment" ;
+ Text[ chinese_simplified ] = "¶ÔÆë";
+ Text[ russian ] = "Âûðàâíèâàíèå";
+ Text[ polish ] = "Wyrównanie";
+ Text[ japanese ] = "”z’u";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¹ï»ô";
+ Text[ arabic ] = "ãÍÇÐÇÉ";
+ Text[ greek ] = "Óôïß÷éóç";
+ Text[ korean ] = "¸ÂÃã";
+ Text[ turkish ] = "Hizalama";
+ };
+ GroupBox GB_DIST
+ {
+ Pos = MAP_APPFONT ( 6 , 82 ) ;
+ Size = MAP_APPFONT ( 184 , 50 ) ;
+ Text = "Abstände" ;
+ Text [ ENGLISH ] = "Distance" ;
+ Text [ norwegian ] = "Avstand" ;
+ Text [ italian ] = "Distanze" ;
+ Text [ portuguese_brazilian ] = "Distância" ;
+ Text [ portuguese ] = "Espaçamento" ;
+ Text [ finnish ] = "Etäisyys" ;
+ Text [ danish ] = "Afstand" ;
+ Text [ french ] = "Écarts" ;
+ Text [ swedish ] = "Avstånd" ;
+ Text [ dutch ] = "Afstanden" ;
+ Text [ spanish ] = "Espacios" ;
+ Text [ english_us ] = "Spacing" ;
+ Text[ chinese_simplified ] = "¼ä¸ô";
+ Text[ russian ] = "Èíòåðâàëû";
+ Text[ polish ] = "Odstêpy";
+ Text[ japanese ] = "ŠÔŠu";
+ Text[ chinese_traditional ] = "¶¡¹j";
+ Text[ arabic ] = "ÇáÊÈÇÚÏ";
+ Text[ greek ] = "AðïóôÜóåéò";
+ Text[ korean ] = "°£°Ý";
+ Text[ turkish ] = "Aralýk";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_TOP_DIST
+ {
+ Pos = MAP_APPFONT ( 102 , 94 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Nach ~oben" ;
+ Text [ ENGLISH ] = "To t~op" ;
+ Text [ norwegian ] = "Til t~oppen" ;
+ Text [ italian ] = "Verso l'~alto" ;
+ Text [ portuguese_brazilian ] = "Para o t~opo" ;
+ Text [ portuguese ] = "Para ~cima" ;
+ Text [ finnish ] = "~Ylös" ;
+ Text [ danish ] = "Foroven" ;
+ Text [ french ] = "Vers le ~haut" ;
+ Text [ swedish ] = "Upp" ;
+ Text [ dutch ] = "Naar bo~ven" ;
+ Text [ spanish ] = "Hacia ~arriba" ;
+ Text [ english_us ] = "~Above" ;
+ Text[ chinese_simplified ] = "ÏòÉÏ(~A)";
+ Text[ russian ] = "Ââåðõ";
+ Text[ polish ] = "Do góry";
+ Text[ japanese ] = "ã(~A)";
+ Text[ chinese_traditional ] = "¦V¤W(~A)";
+ Text[ arabic ] = "Åáì ÃÚáì";
+ Text[ greek ] = "Ðñ~ïò ôá ðÜíù";
+ Text[ korean ] = "À§¿¡(~A)";
+ Text[ turkish ] = "Ön~ce";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_TOP_DIST
+ {
+ Pos = MAP_APPFONT ( 145 , 93 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 9999 ;
+ SpinSize = 5 ;
+ };
+ FixedText FT_BOTTOM_DIST
+ {
+ Pos = MAP_APPFONT ( 102 , 112 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Nach ~unten" ;
+ Text [ ENGLISH ] = "To ~bottom" ;
+ Text [ norwegian ] = "Til ~bunn" ;
+ Text [ italian ] = "In basso" ;
+ Text [ portuguese_brazilian ] = "Para a ~base" ;
+ Text [ portuguese ] = "Para ~baixo" ;
+ Text [ finnish ] = "~Alhaalta" ;
+ Text [ danish ] = "Forneden" ;
+ Text [ french ] = "Vers le ~bas" ;
+ Text [ swedish ] = "Ner" ;
+ Text [ dutch ] = "Naar ~beneden" ;
+ Text [ spanish ] = "Hacia a~bajo" ;
+ Text [ english_us ] = "~Below" ;
+ Text[ chinese_simplified ] = "ÏòÏÂ(~B)";
+ Text[ russian ] = "Âíèç";
+ Text[ polish ] = "Na dó³";
+ Text[ japanese ] = "‰º(~B)";
+ Text[ chinese_traditional ] = "¦V¤U(~B)";
+ Text[ arabic ] = "Åáì ÃÓÝá";
+ Text[ greek ] = "Ðñïò ôá êÜôù";
+ Text[ korean ] = "¾Æ·¡(~B)";
+ Text[ turkish ] = "So~nra";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_BOTTOM_DIST
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 145 , 111 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 1000 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 9999 ;
+ SpinSize = 5 ;
+ };
+ FixedText FT_LEFT_DIST
+ {
+ Pos = MAP_APPFONT ( 12 , 94 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Nach lin~ks" ;
+ Text [ ENGLISH ] = "To lef~t" ;
+ Text [ norwegian ] = "Til venstr~e" ;
+ Text [ italian ] = "a sinis~tra" ;
+ Text [ portuguese_brazilian ] = "Para a esqueda" ;
+ Text [ portuguese ] = "À esqueda" ;
+ Text [ finnish ] = "~Vasemmalle" ;
+ Text [ danish ] = "Til venstre" ;
+ Text [ french ] = "À ga~uche" ;
+ Text [ swedish ] = "Till väns~ter" ;
+ Text [ dutch ] = "~Naar links" ;
+ Text [ spanish ] = "Hacia la i~zda." ;
+ Text [ english_us ] = "Lef~t" ;
+ Text[ chinese_simplified ] = "Ïò×ó(~T)";
+ Text[ russian ] = "Âëåâî";
+ Text[ polish ] = "Na lewo";
+ Text[ japanese ] = "¶(~T)";
+ Text[ chinese_traditional ] = "¦V¥ª(~T)";
+ Text[ arabic ] = "Åáì ÇáíÓÇÑ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "Ðñïò ôá áñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ(~T)";
+ Text[ turkish ] = "S~ola";
+ };
+ MetricField ED_LEFT_DIST
+ {
+ Pos = MAP_APPFONT ( 58 , 93 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = -9999 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 9999 ;
+ SpinSize = 5 ;
+ };
+ FixedText FT_RIGHT_DIST
+ {
+ Pos = MAP_APPFONT ( 12 , 112 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "Nach recht~s" ;
+ Text [ ENGLISH ] = "To ri~ght" ;
+ Text [ norwegian ] = "Til høy~re" ;
+ Text [ italian ] = "a de~stra" ;
+ Text [ portuguese_brazilian ] = "Para a direita" ;
+ Text [ portuguese ] = "À direita" ;
+ Text [ finnish ] = "~Oikealle" ;
+ Text [ danish ] = "Til højre" ;
+ Text [ french ] = "À dr~oite" ;
+ Text [ swedish ] = "Till hö~ger" ;
+ Text [ dutch ] = "Naar recht~s" ;
+ Text [ spanish ] = "Hacia la d~cha." ;
+ Text [ english_us ] = "Ri~ght" ;
+ Text[ chinese_simplified ] = "ÏòÓÒ(~G)";
+ Text[ russian ] = "Âïðàâî";
+ Text[ polish ] = "Na prawo";
+ Text[ japanese ] = "‰E(~G)";
+ Text[ chinese_traditional ] = "¦V¥k(~G)";
+ Text[ arabic ] = "Åáì Çáíãíä";
+ Text[ greek ] = "Ðñïò ôá äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ(~G)";
+ Text[ turkish ] = "Sa~ða";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_RIGHT_DIST
+ {
+ Pos = MAP_APPFONT ( 58 , 111 ) ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = -9999 ;
+ Maximum = 9999 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 0 ;
+ Last = 9999 ;
+ SpinSize = 5 ;
+ };
+};
+/**************************************************************************/
+/* */
+/* */
+/* */
+/**************************************************************************/
+TabPage TP_TABLE_COLUMN
+{
+ HelpID = HID_TABLE_COLUMN ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ Hide = TRUE;
+ FixedText FT_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 40 , 10 ) ;
+ Text = "~Name" ;
+ };
+ CheckBox CB_MOD_TBL
+ {
+ Pos = MAP_APPFONT ( 12 , 12 ) ;
+ Size = MAP_APPFONT ( 180 , 12 ) ;
+ Text = "Tabellenbreite anpassen" ;
+ Text [ ENGLISH ] = "" ;
+ TabStop = TRUE ;
+ Text [ italian ] = "Adatta larghezza tabella" ;
+ Text [ spanish ] = "Ajustar al ancho de la tabla" ;
+ Text [ french ] = "Adapter largeur de tableau" ;
+ Text [ dutch ] = "Tabelbreedte aanpassen" ;
+ Text [ english_us ] = "Fit to table width" ;
+ Text [ swedish ] = "~Anpassa tabelbredd" ;
+ Text [ danish ] = "Tilpas tabelbredde" ;
+ Text [ portuguese_brazilian ] = "Tabellenbreite anpassen" ;
+ Text [ portuguese ] = "Ajustar largura da tabela" ;
+ Text[ chinese_simplified ] = "µ÷Õû±í¸ñ¿í¶È";
+ Text[ russian ] = "Âûðîâíÿòü øèðèíó òàáëèöû";
+ Text[ polish ] = "Dostosuj szerokoϾ tabeli";
+ Text[ japanese ] = "•\\‚Ì•‚Ö‚Ìì—p‚ð”F‚ß‚é";
+ Text[ chinese_traditional ] = "½Õ¾ãªí®æ¼e«×";
+ Text[ arabic ] = "ãáÇÁãÉ áÚÑÖ ÇáÌÏæá";
+ Text[ greek ] = "ÐñïóáñìïãÞ ðëÜôïõò ðßíáêá";
+ Text[ korean ] = "Ç¥ ³Êºñ¿¡ ¸ÂÃã";
+ Text[ turkish ] = "Tablo geniþliðine göre ayarla";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PROP
+ {
+ Pos = MAP_APPFONT ( 12 , 25 ) ;
+ Size = MAP_APPFONT ( 180 , 12 ) ;
+ Text = "Spalten gleichmäßig ändern" ;
+ Text [ ENGLISH ] = "Adjust columns equally" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "Adjust columns proportionally" ;
+ Text [ portuguese_brazilian ] = "Spalten proportional ändern" ;
+ Text [ swedish ] = "Ändra kolumner proportionellt" ;
+ Text [ danish ] = "Modificer kolonner jævnt" ;
+ Text [ italian ] = "Modifica colonne proporzionalmente" ;
+ Text [ spanish ] = "Modificar columnas proporcionalmente" ;
+ Text [ french ] = "Modifier les colonnes de manière proport." ;
+ Text [ dutch ] = "Kolommen gelijkmatig wijzigen" ;
+ Text [ portuguese ] = "Ajustar colunas proporcionalmente" ;
+ Text[ chinese_simplified ] = "¶Ô³ÆµØµ÷ÕûÁпí";
+ Text[ russian ] = "Èçìåíèòü ðàâíîìåðíî ñòîëáöû";
+ Text[ polish ] = "Z~modyfikuj równomiernie kolumny";
+ Text[ japanese ] = "‹Ï“™—ñ•";
+ Text[ chinese_traditional ] = "¹ïºÙ½Õ¾ãÄæ¼e";
+ Text[ arabic ] = "ÊÛííÑ ÇáÃÚãÏÉ ÈÔßá ãÊßÇÝÆ";
+ Text[ greek ] = "ÁëëáãÞ óôçëþí áíÜëïãá";
+ Text[ korean ] = "±ÕÇüÀÖ°Ô ¿­ Á¶Àý";
+ Text[ turkish ] = "Sütunlarý orantýlý deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_INV
+ {
+ Pos = MAP_APPFONT ( 12 , 38 ) ;
+ Size = MAP_APPFONT ( 180 , 12 ) ;
+ Text = "Spalten umgekehrt proportional ändern" ;
+ Text [ ENGLISH ] = "" ;
+ TabStop = TRUE ;
+ Text [ dutch ] = "Kolommen omgekeerd proportioneel wijzigen" ;
+ Text [ italian ] = "Modifica colonne in modo inversamente proporzionale" ;
+ Text [ spanish ] = "Modificar columnas proporcionalmente inversas" ;
+ Text [ french ] = "Modifier les colonnes de manière inversement proportionnelle" ;
+ Text [ english_us ] = "Reverse columns proportionally" ;
+ Text [ swedish ] = "Ändra kolumnerna omvänt proportionellt" ;
+ Text [ danish ] = "Modificer kolonner omvendt proportional" ;
+ Text [ portuguese ] = "Alterar colunas em proporção inversa" ;
+ Text [ portuguese_brazilian ] = "Spalten umgekehrt proportional ändern" ;
+ Text[ chinese_simplified ] = "·´Ïà¸ü¸ÄÁпí";
+ Text[ russian ] = "Èçìåíèòü êîëîíêè îáðàòíî ïðîïîðöèîíàëüíî";
+ Text[ polish ] = "Zmieñ kolumny odwrotnie proporcjonalnie";
+ Text[ japanese ] = "—ñ‚𔽔ä—á‚É•ÏX";
+ Text[ chinese_traditional ] = "¤Ï¬ÛÅܧóÄæ¼e";
+ Text[ arabic ] = "ÚßÓ ÇáÊÛííÑ ÇáÊäÇÓÈí ááÃÚãÏÉ";
+ Text[ greek ] = "ÁëëáãÞ óôçëþí áíôéóôñüöùò áíÜëïãá";
+ Text[ korean ] = "¿­¿¡ ¹Ýºñ·Ê·Î";
+ Text[ turkish ] = "Sütunlarý ters orantýlý deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_SPACE
+ {
+ Pos = MAP_APPFONT ( 12 , 53 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "Noch verfügbarer Platz" ;
+ Text [ English ] = "Available space" ;
+ Text [ english_us ] = "Remaining space" ;
+ Text [ italian ] = "Spazio ancora disponibile" ;
+ Text [ spanish ] = "Espacio disponible" ;
+ Text [ french ] = "Espace disponible" ;
+ Text [ dutch ] = "Nog beschikbare ruimte" ;
+ Text [ swedish ] = "Återstående plats" ;
+ Text [ danish ] = "Plads til rådighed" ;
+ Text [ portuguese ] = "Espaço restante" ;
+ Text [ portuguese_brazilian ] = "Noch verfügbarer Platz" ;
+ Text[ chinese_simplified ] = "»¹ÓÐÏÖ´æ¿ÉÓÿռä";
+ Text[ russian ] = "Îñòàòîê ìåñòà";
+ Text[ polish ] = "Miejsce do dyspozycji";
+ Text[ japanese ] = "Žc‚è‚̽Íß°½";
+ Text[ chinese_traditional ] = "ÁÙ¦³²{¦s¥i¥ÎªÅ¶¡";
+ Text[ arabic ] = "ÇáãÓÇÍÉ ÇáãÊÈÞíÉ";
+ Text[ greek ] = "Õðïëåéðüìåíïò ÷þñïò";
+ Text[ korean ] = "³ª¸ÓÁö °£°Ý";
+ Text[ turkish ] = "Kalan boþluk";
+ Text[ language_user1 ] = " ";
+ };
+ MetricField ED_SPACE
+ {
+ ReadOnly = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 95 , 51 ) ;
+ Size = MAP_APPFONT ( 30 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ ImageButton COL_BTN_DOWN
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 95 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_ARROW_LEFT ;
+ };
+ ImageButton COL_BTN_UP
+ {
+ Disable = TRUE ;
+ Pos = MAP_APPFONT ( 234 , 95 ) ;
+ Size = MAP_APPFONT ( 10 , 10 ) ;
+ TabStop = TRUE ;
+ SYMBOL = IMAGEBUTTON_ARROW_RIGHT ;
+ };
+ FixedText COL_FT_1
+ {
+ Pos = MAP_APPFONT ( 30 , 95 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~1" ;
+ Left = TRUE ;
+ Center = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField COL_MF_1
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 13 , 111 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ FixedText COL_FT_2
+ {
+ Pos = MAP_APPFONT ( 68 , 95 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~2" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField COL_MF_2
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 52 , 111 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ FixedText COL_FT_3
+ {
+ Pos = MAP_APPFONT ( 107 , 95 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~3" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField COL_MF_3
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 91 , 111 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ FixedText COL_FT_4
+ {
+ Pos = MAP_APPFONT ( 146 , 95 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~4" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField COL_MF_4
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 130 , 111 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ FixedText COL_FT_5
+ {
+ Pos = MAP_APPFONT ( 185 , 95 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~5" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField COL_MF_5
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 169 , 111 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ FixedText COL_FT_6
+ {
+ Pos = MAP_APPFONT ( 224 , 95 ) ;
+ Size = MAP_APPFONT ( 9 , 8 ) ;
+ Text = "~6" ;
+ Left = TRUE ;
+ Right = TRUE ;
+ };
+ MetricField COL_MF_6
+ {
+ Disable = TRUE ;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 208 , 111 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 5600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ GroupBox COL_GB_LAYOUT
+ {
+ Pos = MAP_APPFONT ( 6 , 80 ) ;
+ Size = MAP_APPFONT ( 240 , 49 ) ;
+ Text = "Spaltenbreite" ;
+ Text [ ENGLISH ] = "Column width" ;
+ Text [ norwegian ] = "Bredde på kolonne " ;
+ Text [ italian ] = "Larghezza colonna" ;
+ Text [ portuguese_brazilian ] = "Largura da coluna" ;
+ Text [ portuguese ] = "Largura da coluna" ;
+ Text [ finnish ] = "Sarakeleveys" ;
+ Text [ danish ] = "Kolonnebredde" ;
+ Text [ french ] = "Largeur de colonne" ;
+ Text [ swedish ] = "Kolumnbredd" ;
+ Text [ dutch ] = "Kolombreedte" ;
+ Text [ spanish ] = "Ancho de columna" ;
+ Text [ english_us ] = "Column width" ;
+ Text[ chinese_simplified ] = "À¸¿í";
+ Text[ russian ] = "Øèðèíà ñòîëáöîâ";
+ Text[ polish ] = "Szer. kolumny";
+ Text[ japanese ] = "—ñ‚Ì•";
+ Text[ chinese_traditional ] = "Äæ¼e";
+ Text[ arabic ] = "ÚÑÖ ÇáÃÚãÏÉ";
+ Text[ greek ] = "ÐëÜôïò óôÞëçò";
+ Text[ korean ] = "¿­ ³Êºñ";
+ Text[ turkish ] = "Sütun geniþliði";
+ Text[ language_user1 ] = " ";
+ };
+};
+/**************************************************************************/
+/* */
+/* Textfluss */
+/* */
+/**************************************************************************/
+TabPage TP_TABLE_TEXTFLOW
+{
+ HelpId = HID_TABLE_TEXTFLOW ;
+ Size = MAP_APPFONT ( 260 , 135 ) ;
+ TEXT_TEXTFLOW
+ Hide = TRUE;
+ GroupBox GB_FLOW
+ {
+ Pos = MAP_APPFONT ( 3 , 6 ) ;
+ Size = MAP_APPFONT ( 251 , 64 ) ;
+ TEXT_TEXTFLOW
+ };
+ CheckBox CB_PAGEBREAK
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 12 , 17 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "~Umbruch" ;
+ Text [ ENGLISH ] = "~Break" ;
+ Text [ norwegian ] = "~Skift" ;
+ Text [ italian ] = "I~nterruzione" ;
+ Text [ portuguese_brazilian ] = "~Interrupção" ;
+ Text [ portuguese ] = "~Quebra" ;
+ Text [ finnish ] = "~Vaihto" ;
+ Text [ danish ] = "Skift" ;
+ Text [ french ] = "~Saut" ;
+ Text [ swedish ] = "~Brytning" ;
+ Text [ dutch ] = "~Eindemarkering" ;
+ Text [ spanish ] = "~Salto" ;
+ Text [ english_us ] = "~Break" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "»»Ò³(~B)";
+ Text[ russian ] = "Ðàçðûâ";
+ Text[ polish ] = "Po~dzia³";
+ Text[ japanese ] = "‹æØ‚è(~B)";
+ Text[ chinese_traditional ] = "´«­¶(~B)";
+ Text[ arabic ] = "ÝÇÕá";
+ Text[ greek ] = "ÁëëáãÞ";
+ Text[ korean ] = "ÆäÀÌÁö ¹Ù²Ù±â(~B)";
+ Text[ turkish ] = "Kesme";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_BREAKPAGE
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 105 , 16 ) ;
+ Size = MAP_APPFONT ( 33 , 10 ) ;
+ Text = "~Seite" ;
+ Text [ ENGLISH ] = "~Page" ;
+ Text [ norwegian ] = "~Page" ;
+ Text [ italian ] = "~Pagina" ;
+ Text [ portuguese_brazilian ] = "~Página" ;
+ Text [ portuguese ] = "~Página" ;
+ Text [ finnish ] = "~Sivu" ;
+ Text [ danish ] = "Side" ;
+ Text [ french ] = "~Page" ;
+ Text [ swedish ] = "~Sida" ;
+ Text [ dutch ] = "~Pagina" ;
+ Text [ spanish ] = "~Página" ;
+ Text [ english_us ] = "~Page" ;
+ Group = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "Ò³(~P)";
+ Text[ russian ] = "Ñòðàíèöà";
+ Text[ polish ] = "Strona";
+ Text[ japanese ] = "Íß°¼Þ(~P)";
+ Text[ chinese_traditional ] = "­¶(~P)";
+ Text[ arabic ] = "ÕÝÍÉ";
+ Text[ greek ] = "Óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö(~P)";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_BREAKCOLUMN
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 141 , 16 ) ;
+ Size = MAP_APPFONT ( 33 , 10 ) ;
+ // ### ACHTUNG: Neuer Text in Resource? S~palte : ~Spalte
+ Text = "S~palte" ;
+ Text [ ENGLISH ] = "~Column" ;
+ Text [ norwegian ] = "~Kolonne" ;
+ Text [ italian ] = "~Colonna" ;
+ Text [ portuguese_brazilian ] = "~Coluna" ;
+ Text [ portuguese ] = "~Coluna" ;
+ Text [ finnish ] = "~Palsta" ;
+ Text [ danish ] = "Kolonne" ;
+ Text [ french ] = "~Colonne" ;
+ Text [ swedish ] = "~Kolumn" ;
+ Text [ dutch ] = "~Kolom" ;
+ Text [ spanish ] = "~Columna" ;
+ Text [ english_us ] = "Col~umn" ;
+ Text[ chinese_simplified ] = "À¸(~M)";
+ Text[ russian ] = "Ñòîëáåö";
+ Text[ polish ] = "Kolumna";
+ Text[ japanese ] = "—ñ(~M)";
+ Text[ chinese_traditional ] = "Äæ(~M)";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç";
+ Text[ korean ] = "¿­(~U)";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_PAGEBREAKBEFORE
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 176 , 16 ) ;
+ Size = MAP_APPFONT ( 33 , 10 ) ;
+ Text = "~davor" ;
+ Text [ ENGLISH ] = "be~fore" ;
+ Text [ norwegian ] = "f~ør" ;
+ Text [ italian ] = "~Prima" ;
+ Text [ portuguese_brazilian ] = "an~tes" ;
+ Text [ portuguese ] = "an~tes" ;
+ Text [ finnish ] = "~ennen" ;
+ Text [ danish ] = "Før" ;
+ Text [ french ] = "A~vant" ;
+ Text [ swedish ] = "F~öre" ;
+ Text [ dutch ] = "er~voor" ;
+ Text [ spanish ] = "delan~te" ;
+ Text [ english_us ] = "Be~fore" ;
+ Group = TRUE ;
+ Check = TRUE ;
+ Text[ chinese_simplified ] = "֮ǰ(~F)";
+ Text[ russian ] = "ïåðåä";
+ Text[ polish ] = "przed";
+ Text[ japanese ] = "‘O(~F)";
+ Text[ chinese_traditional ] = "¤§«e(~F)";
+ Text[ arabic ] = "ÞÈá";
+ Text[ greek ] = "Ðñéí áðü";
+ Text[ korean ] = "Àü¿¡(~F)";
+ Text[ turkish ] = "Ön~ce";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_PAGEBREAKAFTER
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 211 , 16 ) ;
+ Size = MAP_APPFONT ( 37 , 10 ) ;
+ Text = "da~nach" ;
+ Text [ ENGLISH ] = "aft~er" ;
+ Text [ norwegian ] = "ett~er" ;
+ Text [ italian ] = "D~opo" ;
+ Text [ portuguese_brazilian ] = "dep~ois" ;
+ Text [ portuguese ] = "Dep~ois" ;
+ Text [ finnish ] = "~jälkeen" ;
+ Text [ danish ] = "Efter" ;
+ Text [ french ] = "A~près" ;
+ Text [ swedish ] = "Eft~er" ;
+ Text [ dutch ] = "er~achter" ;
+ Text [ spanish ] = "~detrás" ;
+ Text [ english_us ] = "~After" ;
+ Text[ chinese_simplified ] = "Ö®ºó(~E)";
+ Text[ russian ] = "ïîñëå";
+ Text[ polish ] = "p~otem";
+ Text[ japanese ] = "΋(~E)";
+ Text[ chinese_traditional ] = "¤§«á(~E)";
+ Text[ arabic ] = "ÈÚÏ";
+ Text[ greek ] = "ìåôÜ áðü";
+ Text[ korean ] = "ÈÄ¿¡(~A)";
+ Text[ turkish ] = "Son~ra";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_PAGECOLL
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 12 , 30 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "mit Seitenvor~lage" ;
+ Text [ ENGLISH ] = "With temp~late" ;
+ Text [ norwegian ] = "Med m~al" ;
+ Text [ italian ] = "Con mo~dello di pagina" ;
+ Text [ portuguese_brazilian ] = "Com mode~lo" ;
+ Text [ portuguese ] = "Com es~tilo de página" ;
+ Text [ finnish ] = "Käytä ~mallia" ;
+ Text [ danish ] = "Med sidetypografi" ;
+ Text [ french ] = "Avec le style de page" ;
+ Text [ swedish ] = "med sid~formatmall" ;
+ Text [ dutch ] = "~Met pagina-opmaakprofiel" ;
+ Text [ spanish ] = "C~on estilo de página" ;
+ Text [ english_us ] = "With Page St~yle" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ Text[ chinese_simplified ] = "´øÒ³ÃæÑùʽ(~Y)";
+ Text[ russian ] = "Ñî ñòèëåì ñòðàíèöû";
+ Text[ polish ] = "Ze style~m strony";
+ Text[ japanese ] = "Íß°¼Þ½À²Ù•t‚«(~Y)";
+ Text[ chinese_traditional ] = "±a­¶­±¼Ë¦¡(~Y)";
+ Text[ arabic ] = "ÈäãØ ÕÝÍÉ";
+ Text[ greek ] = "ìå ðñüôõðï óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö À¯Çü°ú(~Y)";
+ Text[ turkish ] = "Sayfa düzeni ile";
+ Text[ language_user1 ] = "All \"Vorlagen\" /Styles are written with a capital S.10.5.00EM";
+ };
+ ListBox LB_PAGECOLL
+ {
+ // Disable = TRUE;
+ Pos = MAP_APPFONT ( 105 , 28 ) ;
+ Size = MAP_APPFONT ( 61 , 50 ) ;
+ TabStop = TRUE ;
+ DropDown = TRUE ;
+ };
+ FixedText FT_PAGENUM
+ {
+ Pos = MAP_APPFONT ( 171 , 30 ) ;
+ Size = MAP_APPFONT ( 47 , 10 ) ;
+ Text = "Se~itennummer" ;
+ Text [ ENGLISH ] = "Page number" ;
+ Text [ english_us ] = "Page ~number" ;
+ Text [ swedish ] = "S~idnummer" ;
+ Text [ danish ] = "Sidetal" ;
+ Text [ italian ] = "Numero di pag~ina" ;
+ Text [ spanish ] = "Nú~mero de página" ;
+ Text [ french ] = "Numér~o de page" ;
+ Text [ dutch ] = "Pa~ginanummer" ;
+ Text [ portuguese_brazilian ] = "Se~itennummer" ;
+ Text [ portuguese ] = "~Número de página" ;
+ Text[ chinese_simplified ] = "Ò³Âë(~N)";
+ Text[ russian ] = "Íîìåð ñòðàíèöû";
+ Text[ polish ] = "Numer strony";
+ Text[ japanese ] = "Íß°¼Þ”Ô†(~N)";
+ Text[ chinese_traditional ] = "­¶¼Æ(~N)";
+ Text[ arabic ] = "ÑÞã ÇáÕÝÍÉ";
+ Text[ greek ] = "Áñéèìüò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¹øÈ£(~N)";
+ Text[ turkish ] = "Sayfa ~numaralarý";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField NF_PAGENUM
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 223 , 28 ) ;
+ Size = MAP_APPFONT ( 26 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ Value = 0 ;
+ First = 0 ;
+ Last = 9999 ;
+ };
+ CheckBox CB_SPLIT
+ {
+ Pos = MAP_APPFONT ( 12 , 43 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Tabelle nicht ~trennen" ;
+ Text [ ENGLISH ] = "dont split" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~Do not split table" ;
+ Text [ portuguese_brazilian ] = "Tabelle nicht ~trennen" ;
+ Text [ swedish ] = "Dela inte ~tabell" ;
+ Text [ danish ] = "Odel tabel ikke" ;
+ Text [ italian ] = "Non separare la tabella" ;
+ Text [ spanish ] = "~No dividir tabla" ;
+ Text [ french ] = "Ne pas ~séparer tableau" ;
+ Text [ dutch ] = "~Tabel niet splitsen" ;
+ Text [ portuguese ] = "~Não separar tabela" ;
+ Text[ chinese_simplified ] = "²»·Ö¸ô±í¸ñ";
+ Text[ russian ] = "Íå ðàçáèâàòü òàáëèöó";
+ Text[ polish ] = "Nie dziel ta~beli";
+ Text[ japanese ] = "•\\‚𕪊„‚µ‚È‚¢";
+ Text[ chinese_traditional ] = "¤£¤À¶}ªí®æ";
+ Text[ arabic ] = "ÚÏã ÝÕá ÇáÌÏæá";
+ Text[ greek ] = "Íá ìç äéáéñåèåß ï ðßíáêáò";
+ Text[ korean ] = "Ç¥¸¦ ³ª´©Áö ¸¶½Ê½Ã¿À.";
+ Text[ turkish ] = "Tabloyu ayýrma";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_KEEP
+ {
+ Pos = MAP_APPFONT ( 105 , 43 ) ;
+ Size = MAP_APPFONT ( 140 , 10 ) ;
+ Text = "Mit folgendem Absatz ~zusammenhalten" ;
+ Text [ ENGLISH ] = "~keep with next" ;
+ TabStop = TRUE ;
+ Text [ english_us ] = "~keep with next paragraph" ;
+ Text [ portuguese_brazilian ] = "Mit folgendem Absatz ~zusammenhalten" ;
+ Text [ swedish ] = "Håll ~ihop med följande stycke" ;
+ Text [ danish ] = "Hold sammen med næste afsnit" ;
+ Text [ italian ] = "Non separare dal paragrafo seguente." ;
+ Text [ spanish ] = "Mantener ~junto al párrafo siguiente" ;
+ Text [ french ] = "~Ne pas séparer du paragraphe suivant" ;
+ Text [ dutch ] = "~Met de volgende alinea samenvoegen" ;
+ Text [ portuguese ] = "Jun~tar ao parágrafo seguinte" ;
+ Text[ chinese_simplified ] = "ºÍÏÂÒ»¶ÎÂä±£³ÖÁ¬½Ó(~K)";
+ Text[ russian ] = "Âìåñòå ñî ñëåäóþùèì àáçàöåì";
+ Text[ polish ] = "Akapit razem z nastêpnym";
+ Text[ japanese ] = "ŽŸ‚Ì’i—Ž‚ÆÚ‡(~K)";
+ Text[ chinese_traditional ] = "©M¤U¤@¬q¸¨«O«ù³sµ²(~K)";
+ Text[ arabic ] = "ÊÑÇÈØ ÇáÝÞÑÇÊ";
+ Text[ greek ] = "ÄéáôÞñçóç ìå åðüìåíç ðáñÜãñáöï";
+ Text[ korean ] = "´ÙÀ½ ´Ü¶ôÀ» °°Àº ÆäÀÌÁö¿¡(~K)";
+ Text[ turkish ] = "Alttaki paragraf ile birlikte tut";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox CB_HEADLINE
+ {
+ Pos = MAP_APPFONT ( 12 , 55 ) ;
+ Size = MAP_APPFONT ( 106 , 10 ) ;
+ Text = "Überschrift ~wiederholen" ;
+ Text [ ENGLISH ] = "R~epeat Headline" ;
+ Text [ norwegian ] = "G~jenta Overskrift" ;
+ Text [ italian ] = "R~ipeti riga intestazione" ;
+ Text [ portuguese_brazilian ] = "R~epetir Título" ;
+ Text [ portuguese ] = "R~epetir título" ;
+ Text [ finnish ] = "~Toista otsikko" ;
+ Text [ danish ] = "Gentag overskrift" ;
+ Text [ french ] = "R~épéter le titre" ;
+ Text [ swedish ] = "U~pprepa överskrift" ;
+ Text [ dutch ] = "Kop ~herhalen" ;
+ Text [ spanish ] = "Repet~ir encabezado" ;
+ Text [ english_us ] = "R~epeat heading" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "Öظ´±êÌâ(~E)";
+ Text[ russian ] = "Ïîâòîðèòü çàãîëîâîê";
+ Text[ polish ] = "Powtórz tytu³";
+ Text[ japanese ] = "Œ©o‚µ‚ÌŒJ‚è•Ô‚µ(~E)";
+ Text[ chinese_traditional ] = "­«½Æ¼ÐÃD(~E)";
+ Text[ arabic ] = "ÊßÑÇÑ ÇáÚäæÇä";
+ Text[ greek ] = "ÅðáíÜëçøç åðéêåöáëßäáò";
+ Text[ korean ] = "¸Ó¸®±Û ¹Ýº¹(~E)";
+ Text[ turkish ] = "Baþlýðý yinele";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_VERT_ORIENT
+ {
+ Pos = MAP_APPFONT ( 3 , 76 ) ;
+ Size = MAP_APPFONT ( 251 , 52 ) ;
+ Text = "Vertikale Ausrichtung" ;
+ Text [ ENGLISH ] = "Vertical Alignment" ;
+ Text [ english_us ] = "Vertical alignment" ;
+ Text [ swedish ] = "Vertikal justering" ;
+ Text [ danish ] = "Lodret justering" ;
+ Text [ italian ] = "Allineamento verticale" ;
+ Text [ spanish ] = "Alineación vertical" ;
+ Text [ french ] = "Alignement vertical" ;
+ Text [ dutch ] = "Verticale uitlijning" ;
+ Text [ portuguese_brazilian ] = "Vertikale Ausrichtung" ;
+ Text [ portuguese ] = "Alinhamento vertical" ;
+ Text[ chinese_simplified ] = "´¹Ö±·½Ïò¶ÔÆë";
+ Text[ russian ] = "Âûðàâíèâàíèå ïî âåðòèêàëè";
+ Text[ polish ] = "Pionowe wyrównanie";
+ Text[ japanese ] = "cˆÊ’u";
+ Text[ chinese_traditional ] = "««ª½¹ï»ô";
+ Text[ arabic ] = "ãÍÇÐÇÉ ÑÃÓíÉ";
+ Text[ greek ] = "Êáôáêüñõöç óôïß÷éóç";
+ Text[ korean ] = "¼öÁ÷ ¸ÂÃã";
+ Text[ turkish ] = "Dikey hizalama";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_VERT_TOP
+ {
+ Pos = MAP_APPFONT ( 12 , 86 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Oben" ;
+ Text [ ENGLISH ] = "Top" ;
+ Text [ english_us ] = "Top" ;
+ Text [ swedish ] = "Överst" ;
+ Text [ danish ] = "Top" ;
+ Text [ italian ] = "Alto" ;
+ Text [ spanish ] = "Arriba" ;
+ Text [ french ] = "En haut" ;
+ Text [ dutch ] = "Boven" ;
+ Text [ portuguese_brazilian ] = "Oben" ;
+ Text [ portuguese ] = "Em cima" ;
+ Text[ chinese_simplified ] = "ÉÏ";
+ Text[ russian ] = "Ââåðõó";
+ Text[ polish ] = "Na g~órze";
+ Text[ japanese ] = "ã";
+ Text[ chinese_traditional ] = "¤W";
+ Text[ arabic ] = "ÃÚáì";
+ Text[ greek ] = "ÐÜíù";
+ Text[ korean ] = "¸ÇÀ§";
+ Text[ turkish ] = "Orta";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_VERT_CENTER
+ {
+ Pos = MAP_APPFONT ( 12 , 98 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Mitte" ;
+ Text [ ENGLISH ] = "Middle" ;
+ Text [ english_us ] = "~Centered" ;
+ Text [ swedish ] = "Mitten" ;
+ Text [ danish ] = "Centreret" ;
+ Text [ italian ] = "Centro" ;
+ Text [ spanish ] = "Centro" ;
+ Text [ french ] = "Milieu" ;
+ Text [ dutch ] = "Midden" ;
+ Text [ portuguese_brazilian ] = "Mitte" ;
+ Text [ portuguese ] = "Centro" ;
+ Text[ chinese_simplified ] = "ÖÐ";
+ Text[ russian ] = "Â ñåðåäèíå";
+ Text[ polish ] = "Œrodek";
+ Text[ japanese ] = "’†S";
+ Text[ chinese_traditional ] = "¤¤";
+ Text[ arabic ] = "ÇáæÓØ";
+ Text[ greek ] = "ÊÝíôñï";
+ Text[ korean ] = "°¡¿îµ¥(~C)";
+ Text[ turkish ] = "Aþaðý";
+ Text[ language_user1 ] = " ";
+ };
+ RadioButton RB_VERT_BOTTOM
+ {
+ Pos = MAP_APPFONT ( 12 , 110 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Unten" ;
+ Text [ ENGLISH ] = "Bottom" ;
+ Text [ english_us ] = "Bottom" ;
+ Text [ swedish ] = "Underst" ;
+ Text [ danish ] = "Nederst" ;
+ Text [ italian ] = "Basso" ;
+ Text [ spanish ] = "Abajo" ;
+ Text [ french ] = "En bas" ;
+ Text [ dutch ] = "Beneden" ;
+ Text [ portuguese_brazilian ] = "Unten" ;
+ Text [ portuguese ] = "Em baixo" ;
+ Text[ chinese_simplified ] = "ÏÂ";
+ Text[ russian ] = "Âíèçó";
+ Text[ polish ] = "W dole";
+ Text[ japanese ] = "‰º";
+ Text[ chinese_traditional ] = "¤U";
+ Text[ arabic ] = "ÃÓÝá";
+ Text[ greek ] = "ÊÜôù";
+ Text[ korean ] = "¹Ù´Ú";
+ Text[ turkish ] = "Yukarý";
+ Text[ language_user1 ] = " ";
+ };
+};
+InfoBox MSG_WRONG_TABLENAME
+{
+ MESSAGE = "Der Name der Tabelle darf keine Leerzeichen enthalten." ;
+ MESSAGE [ English ] = "The name of the table must not contain spaces." ;
+ Message [ english_us ] = "The name of the table must not contain spaces." ;
+ Message [ portuguese_brazilian ] = "Der Name der Tabelle darf keine Leerzeichen enthalten." ;
+ Message [ swedish ] = "Namnet på tabellen får inte innehålla några blanksteg." ;
+ Message [ danish ] = "Et tabelnavn må ikke indeholde mellemrum." ;
+ Message [ italian ] = "Il nome della tabella non può contenere spazi." ;
+ Message [ spanish ] = "El nombre de la tabla no debe contener espacios." ;
+ Message [ french ] = "Le nom du tableau ne peut pas contenir d'espaces." ;
+ Message [ dutch ] = "In de naam van de tabel mogen geen spaties voorkomen." ;
+ Message [ portuguese ] = "O nome da tabela não pode ter espaços vazios" ;
+ Message[ chinese_simplified ] = "±í¸ñÃû³Æ²»Äܺ¬Óпոñ×Ö·û¡£";
+ Message[ russian ] = "Èìÿ òàáëèöû íå äîëæíî ñîäåðæàòü ïðîáåëîâ.";
+ Message[ polish ] = "Nazwa tabeli nie mo¿e zawieraæ spacji.";
+ Message[ japanese ] = "•\\–¼‚ɽÍß°½‚Í“ü‚ê‚ç‚ê‚Ü‚¹‚ñ";
+ Message[ chinese_traditional ] = "ªí®æ¦WºÙ¤£¯à§t¦³ªÅ®æ¦r¤¸¡C";
+ Message[ arabic ] = "íÌÈ ÃáÇ íÍÊæí ÇÓã ÇáÌÏæá Úáì ÃÍÑÝ ãÓÇÝÉ.";
+ Message[ greek ] = "Ôï üíïìá ôïõ ðßíáêá äåí åðéôñÝðåôáé íá ðåñéÝ÷åé êåíÜ";
+ Message[ korean ] = "Ç¥ À̸§¿¡´Â °ø¹éÀÌ ÀÖÀ¸¸é ¾ÈµË´Ï´Ù.";
+ Message[ turkish ] = "Tablo adýnda boþluk bulunmamalýdýr.";
+ Message[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/table/tablemgr.cxx b/sw/source/ui/table/tablemgr.cxx
new file mode 100644
index 000000000000..7e27dee39c20
--- /dev/null
+++ b/sw/source/ui/table/tablemgr.cxx
@@ -0,0 +1,441 @@
+/*************************************************************************
+ *
+ * $RCSfile: tablemgr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVSTOR_HXX //autogen
+#include <so3/svstor.hxx>
+#endif
+#ifndef _IPOBJ_HXX //autogen
+#include <so3/ipobj.hxx>
+#endif
+#ifndef _SCHDLL0_HXX
+#include <sch/schdll0.hxx>
+#endif
+#ifndef _SCH_DLL_HXX
+#include <sch/schdll.hxx>
+#endif
+#ifndef _SCH_MEMCHRT_HXX
+#include <sch/memchrt.hxx>
+#endif
+
+
+#include "errhdl.hxx"
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "frmatr.hxx"
+#include "view.hxx"
+#include "basesh.hxx"
+#include "swundo.hxx"
+#include "tablemgr.hxx"
+#include "frmfmt.hxx"
+#include "instable.hxx"
+#include "colwd.hxx"
+#include "swerror.h"
+#include "table.hrc"
+
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Zeilenhoehe einstellen (Dialog)
+------------------------------------------------------------------------*/
+
+
+void SwTableFUNC::ColWidthDlg( Window *pParent )
+{
+ InitTabCols();
+ SwTableWidthDlg *pDlg = new SwTableWidthDlg( pParent, *this );
+ pDlg->Execute();
+ delete pDlg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Breite ermitteln
+ --------------------------------------------------------------------*/
+
+
+SwTwips SwTableFUNC::GetColWidth(USHORT nNum) const
+{
+ SwTwips nWidth = 0;
+
+ if( aCols.Count() > 0 )
+ {
+ if(aCols.Count() == GetColCount())
+ {
+ nWidth = (SwTwips)((nNum == aCols.Count()) ?
+ aCols.GetRight() - aCols[nNum-1] :
+ nNum == 0 ? aCols[nNum] - aCols.GetLeft() :
+ aCols[nNum] - aCols[nNum-1]);
+ }
+ else
+ {
+ SwTwips nRValid = nNum < GetColCount() ?
+ aCols[(USHORT)GetRightSeparator((int)nNum)]:
+ aCols.GetRight();
+ SwTwips nLValid = nNum ?
+ aCols[(USHORT)GetRightSeparator((int)nNum - 1)]:
+ aCols.GetLeft();
+ nWidth = nRValid - nLValid;
+ }
+ }
+ else
+ nWidth = aCols.GetRight();
+
+ return nWidth;
+}
+
+
+
+SwTwips SwTableFUNC::GetMaxColWidth( USHORT nNum ) const
+{
+ ASSERT(nNum <= aCols.Count(), "Index out of Area");
+
+ if ( GetColCount() > 0 )
+ {
+ // Die max. Breite ergibt sich aus der eigenen Breite und
+ // der Breite der Nachbarzellen um je MINLAY verringert
+ SwTwips nMax = nNum == 0 ?
+ GetColWidth(1) - MINLAY :
+ nNum == GetColCount() ?
+ GetColWidth( nNum-1 ) - MINLAY :
+ GetColWidth(nNum - 1) + GetColWidth( nNum + 1 ) - 2 * MINLAY;
+
+ return nMax + GetColWidth(nNum) ;
+ }
+ else
+ return GetColWidth(nNum);
+}
+
+
+
+void SwTableFUNC::SetColWidth(USHORT nNum, SwTwips nNewWidth )
+{
+ // aktuelle Breite setzen
+ // alle folgenden Verschieben
+ BOOL bCurrentOnly = FALSE;
+ SwTwips nWidth = 0;
+
+ if ( aCols.Count() > 0 )
+ {
+ if(aCols.Count() != GetColCount())
+ bCurrentOnly = TRUE;
+ nWidth = GetColWidth(nNum);
+
+ int nDiff = (int)(nNewWidth - nWidth);
+ if( !nNum )
+ aCols[GetRightSeparator(0)] += nDiff;
+ else if( nNum < GetColCount() )
+ {
+ if(nDiff < GetColWidth(nNum + 1) - MINLAY)
+ aCols[GetRightSeparator(nNum)] += nDiff;
+ else
+ {
+ int nDiffLeft = nDiff - (int)GetColWidth(nNum + 1) + (int)MINLAY;
+ aCols[GetRightSeparator(nNum)] += (nDiff - nDiffLeft);
+ aCols[GetRightSeparator(nNum - 1)] -= nDiffLeft;
+ }
+ }
+ else
+ aCols[GetRightSeparator(nNum-1)] -= nDiff;
+ }
+ else
+ aCols.SetRight( Min( nNewWidth, aCols.GetRightMax()) );
+
+ pSh->StartAllAction();
+ pSh->SetTabCols( aCols, bCurrentOnly );
+ pSh->EndAllAction();
+}
+
+
+
+void SwTableFUNC::InitTabCols()
+{
+ ASSERT(pSh, keine Shell);
+
+ if( pFmt && pSh)
+ pSh->GetTabCols( aCols );
+}
+
+
+
+SwTableFUNC::SwTableFUNC(SwWrtShell *pShell, BOOL bCopyFmt)
+ : pFmt(pShell->GetTableFmt()),
+ pSh(pShell),
+ bCopy(bCopyFmt)
+{
+ // gfs. das Format fuer die Bearbeitung kopieren
+ if( pFmt && bCopy )
+ pFmt = new SwFrmFmt( *pFmt );
+}
+
+
+
+SwTableFUNC::~SwTableFUNC()
+{
+ if(bCopy)
+ delete pFmt;
+}
+
+//Sonst GPF mit W95,MSVC40, non product
+#pragma optimize("",off)
+
+
+
+void SwTableFUNC::InsertChart( SchMemChart& rData, const SfxItemSet *pSet )
+{
+ pSh->StartAllAction();
+ pSh->StartUndo( UIUNDO_INSERT_CHART );
+
+ String aName( pSh->GetTableFmt()->GetName() );
+
+ //Vor die Tabelle gehen und einen Node einfuegen.
+ pSh->MoveTable( fnTableCurr, fnTableStart );
+ pSh->Up();
+ if ( pSh->IsCrsrInTbl() )
+ {
+ if ( aName != pSh->GetTableFmt()->GetName() )
+ pSh->Down(); //Zwei Tabellen direkt uebereinander.
+ }
+ pSh->SplitNode();
+
+ //Jetzt das CharObject einfuegen.
+ //Wer das nicht versteht ist selber schuld ;-)
+ SvStorageRef aStor = new SvStorage( aEmptyStr );
+ SvInPlaceObjectRef aIPObj;
+#ifndef SO3
+ aIPObj = &SvInPlaceObject::ClassFactory()->CreateAndInit( *SCH_MOD()->pSchChartDocShellFactory, aStor );
+#else
+ aIPObj = &((SvFactory*)SvInPlaceObject::ClassFactory())->CreateAndInit( *SCH_MOD()->pSchChartDocShellFactory, aStor );
+#endif
+ if ( aIPObj.Is() )
+ {
+ pSh->InsertOle( aIPObj );
+
+ //Den Namen der Table am OleNode setzen
+ pSh->SetChartName( aName );
+
+ //Und die Daten in's Objekt uebertragen.
+ if( pSet )
+ SchDLL::Update( aIPObj, &rData, *pSet );
+ else
+ SchDLL::Update( aIPObj, &rData );
+ }
+ pSh->EndUndo( UIUNDO_INSERT_CHART );
+ pSh->EndAllAction();
+}
+
+#pragma optimize("",on)
+
+
+
+void SwTableFUNC::UpdateChart()
+{
+ //Update der Felder in der Tabelle vom User ausgeloesst, alle
+ //Charts zu der Tabelle werden auf den neuesten Stand gebracht.
+ SwFrmFmt *pFmt = pSh->GetTableFmt();
+ if ( pFmt && pSh->HasOLEObj( pFmt->GetName() ) )
+ {
+ pSh->StartAllAction();
+ pSh->UpdateCharts( pFmt->GetName() );
+ pSh->EndAllAction();
+ }
+}
+
+
+
+USHORT SwTableFUNC::GetCurColNum() const
+{
+ int nPos = pSh->GetCurTabColNum();
+ int nCount = 0;
+ for(int i = 0; i < nPos; i++ )
+ if(aCols.IsHidden(i))
+ nCount ++;
+ return nPos - nCount;
+}
+
+
+
+
+USHORT SwTableFUNC::GetColCount() const
+{
+ USHORT nCount = 0;
+ for(int i=0; i < (int)aCols.Count(); i++ )
+ if(aCols.IsHidden(i))
+ nCount ++;
+ return aCols.Count() - nCount;
+}
+
+
+
+int SwTableFUNC::GetRightSeparator(int nNum) const
+{
+ DBG_ASSERT( nNum < (int)GetColCount() ,"Index out of range")
+ int i = 0;
+ while( nNum >= 0 )
+ {
+ if( !aCols.IsHidden(i) )
+ nNum--;
+ i++;
+ }
+ return i - 1;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.120 2000/09/18 16:06:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.119 2000/08/29 14:01:23 ama
+ New: Negative margins
+
+ Revision 1.118 2000/04/26 14:59:03 os
+ GetName() returns const String&
+
+ Revision 1.117 2000/03/09 21:54:38 jp
+ Changes: SchMemChart in new headerfile
+
+ Revision 1.116 2000/02/11 14:58:54 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.115 1999/02/09 13:31:14 JP
+ Task #61632#: Charts auch in complexen Tabellen zulassen
+
+
+ Rev 1.114 09 Feb 1999 14:31:14 JP
+ Task #61632#: Charts auch in complexen Tabellen zulassen
+
+ Rev 1.113 29 Nov 1997 14:28:10 MA
+ includes
+
+ Rev 1.112 24 Nov 1997 15:52:24 MA
+ includes
+
+ Rev 1.111 03 Nov 1997 13:56:50 MA
+ precomp entfernt
+
+ Rev 1.110 06 Aug 1997 14:48:50 TRI
+ VCL: Anpassungen
+
+ Rev 1.109 04 Apr 1997 08:38:36 MA
+ include vergessen
+
+ Rev 1.108 03 Apr 1997 09:14:08 MA
+ undo fuer insertchart
+
+ Rev 1.107 01 Apr 1997 18:00:58 MA
+ #37054# Chart immer vor Tabelle
+
+ Rev 1.106 04 Mar 1997 09:13:46 MA
+ #37054# InsertChart, richtiger Anker bei zwei Tabellen uebereinander
+
+ Rev 1.105 24 Nov 1996 14:59:48 WP
+ SvGlobalNames beseitigt
+
+ Rev 1.104 24 Oct 1996 13:33:04 TRI
+ sostor.hxx included
+
+ Rev 1.103 05 Sep 1996 08:19:22 OS
+ richtige Min/Max-Einstellungen fuer einspaltige Tabellen
+
+ Rev 1.102 04 Sep 1996 11:15:12 JP
+ Split/InsertCol/Row-Dialoge und Methoden entfernt -> direkt an der Shell rufen
+
+ Rev 1.101 28 Aug 1996 14:33:20 OS
+ includes
+
+ Rev 1.100 06 Jun 1996 14:54:54 OS
+ MM50 ->MINLAY
+
+ Rev 1.99 18 Apr 1996 11:38:54 OM
+ Unbenutzte Fkt entfernt
+
+ Rev 1.98 26 Mar 1996 15:10:20 MA
+ fix: richtige Chart-SS, optimierung abgeschaltet
+
+ Rev 1.97 07 Mar 1996 15:03:18 HJS
+ del: memchart.hxx
+
+ Rev 1.96 28 Feb 1996 16:47:06 MA
+ chg: InsertChart mit ItemSet
+
+ Rev 1.95 27 Feb 1996 19:19:52 MA
+ chg: SS Chart geaendert
+
+ Rev 1.94 27 Feb 1996 17:11:38 MA
+ chg: Chart jetzt per Data-SS
+
+ Rev 1.93 09 Jan 1996 19:55:24 JP
+ InsertChart: TabellenName weitergeben; ueberfluessige Methoden entfernt
+
+ Rev 1.92 14 Dec 1995 23:01:28 JP
+ Filter Umstellung: ErrorHandling und Read/Write-Parameter
+
+ Rev 1.91 24 Nov 1995 16:58:58 OM
+ PCH->PRECOMPILED
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/table/tablepg.hxx b/sw/source/ui/table/tablepg.hxx
new file mode 100644
index 000000000000..9274a9c54f21
--- /dev/null
+++ b/sw/source/ui/table/tablepg.hxx
@@ -0,0 +1,263 @@
+/*************************************************************************
+ *
+ * $RCSfile: tablepg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SWTABLEPG_HXX
+#define _SWTABLEPG_HXX
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _IMAGEBTN_HXX //autogen
+#include <vcl/imagebtn.hxx>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _ACTCTRL_HXX
+#include <actctrl.hxx>
+#endif
+#include "prcntfld.hxx"
+#include "swtypes.hxx"
+
+class SwTabCols;
+class SwWrtShell;
+class SwTableRep;
+
+struct TColumn
+{
+ SwTwips nWidth;
+ BOOL bVisible;
+};
+
+class SwFormatTablePage : public SfxTabPage
+{
+ GroupBox aOptionsGB;
+ FixedText aNameFT;
+ TableNameEdit aNameED;
+ FixedText aWidthFT;
+ PercentField aWidthMF;
+ CheckBox aRelWidthCB;
+
+ GroupBox aPosFrm;
+ RadioButton aFullBtn;
+ RadioButton aLeftBtn;
+ RadioButton aFromLeftBtn;
+ RadioButton aRightBtn;
+ RadioButton aCenterBtn;
+ RadioButton aFreeBtn;
+
+ GroupBox aDistGB;
+ FixedText aLeftFT;
+ PercentField aLeftMF;
+ FixedText aRightFT;
+ PercentField aRightMF;
+ FixedText aTopFT;
+ MetricField aTopMF;
+ FixedText aBottomFT;
+ MetricField aBottomMF;
+
+ SwTableRep* pTblData;
+ SwTwips nSaveWidth;
+ SwTwips nMinTableWidth;
+ USHORT nOldAlign;
+ BOOL bModified;
+ BOOL bFull:1;
+
+ void Init();
+ void ModifyHdl( Edit* pEdit );
+
+ DECL_LINK( AutoClickHdl, CheckBox * );
+ DECL_LINK( RelWidthClickHdl, CheckBox * );
+ DECL_LINK( RightModifyHdl, MetricField * );
+ DECL_LINK( UpHdl, MetricField * );
+ DECL_LINK( DownHdl, MetricField * );
+ DECL_LINK( LoseFocusHdl, MetricField * );
+
+public:
+ SwFormatTablePage( Window* pParent, const SfxItemSet& rSet );
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet);
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+ virtual void ActivatePage( const SfxItemSet& rSet );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+};
+
+/*-------------------------------------------------------
+ TabPage Format/Tabelle/Spalten
+--------------------------------------------------------- */
+#define MET_FIELDS 6 //Anzahl der verwendeten MetricFields
+
+class SwTableColumnPage : public SfxTabPage
+{
+ CheckBox aModifyTableCB;
+ CheckBox aProportionalCB;
+ CheckBox aInverseCB;
+ FixedText aSpaceFT;
+ MetricField aSpaceED;
+
+ ImageButton aUpBtn;
+ FixedText aFT1;
+ PercentField aMF1;
+ FixedText aFT2;
+ PercentField aMF2;
+ FixedText aFT3;
+ PercentField aMF3;
+ FixedText aFT4;
+ PercentField aMF4;
+ FixedText aFT5;
+ PercentField aMF5;
+ FixedText aFT6;
+ PercentField aMF6;
+ ImageButton aDownBtn;
+ GroupBox aColGB;
+
+ SwTableRep* pTblData;
+ PercentField* pFieldArr[MET_FIELDS];
+ FixedText* pTextArr[MET_FIELDS];
+ SwTwips nTableWidth;
+ SwTwips nMinWidth;
+ USHORT nNoOfCols;
+ USHORT nNoOfVisibleCols;
+ //Breite merken, wenn auf autom. Ausrichtung gestellt wird
+ USHORT aValueTbl[MET_FIELDS];//primaere Zuordnung der MetricFields
+ BOOL bModified:1;
+ BOOL bModifyTbl:1;
+ BOOL bPercentMode:1;
+
+ void Init(BOOL bWeb);
+ DECL_LINK( AutoClickHdl, CheckBox * );
+ void ModifyHdl( PercentField* pEdit );
+ DECL_LINK( UpHdl, PercentField * );
+ DECL_LINK( DownHdl, PercentField * );
+ DECL_LINK( LoseFocusHdl, PercentField * );
+ DECL_LINK( ModeHdl, CheckBox * );
+ void UpdateCols( USHORT nAktPos );
+ SwTwips GetVisibleWidth(USHORT nPos);
+ void SetVisibleWidth(USHORT nPos, SwTwips nNewWidth);
+public:
+ SwTableColumnPage( Window* pParent, const SfxItemSet& rSet );
+ ~SwTableColumnPage();
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet);
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+ virtual void ActivatePage( const SfxItemSet& rSet );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+
+};
+
+/*-----------------12.12.96 11.48-------------------
+ Textfluá
+--------------------------------------------------*/
+class SwTextFlowPage : public SfxTabPage
+{
+ GroupBox aFlowGB;
+ CheckBox aPgBrkCB;
+ RadioButton aPgBrkRB;
+ RadioButton aColBrkRB;
+ RadioButton aPgBrkBeforeRB;
+ RadioButton aPgBrkAfterRB;
+ CheckBox aPageCollCB;
+ ListBox aPageCollLB;
+ FixedText aPageNoFT;
+ NumericField aPageNoNF;
+ CheckBox aKeepCB;
+ CheckBox aSplitCB;
+ CheckBox aHeadLineCB;
+
+ GroupBox aVertOrientGB;
+ RadioButton aTopRB;
+ RadioButton aCenterRB;
+ RadioButton aBottomRB;
+
+ SwWrtShell* pShell;
+
+ BOOL bPageBreak;
+ BOOL bHtmlMode;
+
+
+ DECL_LINK( PageBreakHdl_Impl, CheckBox* );
+ DECL_LINK( ApplyCollClickHdl_Impl, CheckBox* );
+ DECL_LINK( PageBreakPosHdl_Impl, RadioButton* );
+ DECL_LINK( PageBreakTypeHdl_Impl, RadioButton* );
+
+
+ SwTextFlowPage( Window* pParent, const SfxItemSet& rSet );
+ ~SwTextFlowPage();
+
+public:
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet);
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ void SetShell(SwWrtShell* pSh);
+
+ void DisablePageBreak();
+};
+
+#endif
diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx
new file mode 100644
index 000000000000..08814d439c38
--- /dev/null
+++ b/sw/source/ui/table/tautofmt.cxx
@@ -0,0 +1,1888 @@
+/*************************************************************************
+ *
+ * $RCSfile: tautofmt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _ZFORLIST_HXX //autogen
+#include <svtools/zforlist.hxx>
+#endif
+#ifndef _SV_SYSTEM_HXX //autogen
+#include <vcl/system.hxx>
+#endif
+
+
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#include "swtypes.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "tblafmt.hxx"
+#include "tautofmt.hxx"
+#include "shellres.hxx"
+#include "tautofmt.hrc"
+
+#define FRAME_OFFSET 4
+
+//========================================================================
+
+class AutoFmtPreview : public Window
+{
+public:
+ AutoFmtPreview( Window* pParent, const ResId& rRes );
+ ~AutoFmtPreview();
+
+ void NotifyChange( const SwTableAutoFmt& rNewData );
+
+protected:
+ virtual void Paint( const Rectangle& rRect );
+
+private:
+ SwTableAutoFmt aCurData;
+ VirtualDevice aVD;
+ BOOL bFitWidth;
+ static BYTE aFmtMap[25]; // Zuordnung: Zelle->Format
+ Rectangle aCellArray[25]; // Position und Groesse der Zellen
+ SvxBoxItem* aLinePtrArray[49]; // LinienAttribute
+ Size aPrvSize;
+ const USHORT nLabelColWidth;
+ const USHORT nDataColWidth1;
+ const USHORT nDataColWidth2;
+ const USHORT nRowHeight;
+ const String aStrJan;
+ const String aStrFeb;
+ const String aStrMar;
+ const String aStrNorth;
+ const String aStrMid;
+ const String aStrSouth;
+ const String aStrSum;
+ SvNumberFormatter* pNumFmt;
+ //-------------------------------------------
+ void Init ();
+ void DoPaint ( const Rectangle& rRect );
+ void CalcCellArray ( BOOL bFitWidth );
+ void CalcLineMap ();
+ void PaintCells ();
+ void DrawBackground ( BYTE nIndex );
+ void DrawFrame ( BYTE nIndex );
+ void DrawString ( BYTE nIndex );
+ void MakeFont ( BYTE nIndex, Font& rFont );
+ String MakeNumberString( String cellString, BOOL bAddDec );
+ void DrawFrameLine ( const SvxBorderLine& rLineD,
+ Point from,
+ Point to,
+ BOOL bHorizontal,
+ const SvxBorderLine& rLineLT,
+ const SvxBorderLine& rLineL,
+ const SvxBorderLine& rLineLB,
+ const SvxBorderLine& rLineRT,
+ const SvxBorderLine& rLineR,
+ const SvxBorderLine& rLineRB );
+ void CheckPriority ( USHORT nCurLine,
+ AutoFmtLine eLine,
+ SvxBorderLine& rLine );
+ void GetLines ( BYTE nIndex, AutoFmtLine eLine,
+ SvxBorderLine& rLineD,
+ SvxBorderLine& rLineLT,
+ SvxBorderLine& rLineL,
+ SvxBorderLine& rLineLB,
+ SvxBorderLine& rLineRT,
+ SvxBorderLine& rLineR,
+ SvxBorderLine& rLineRB );
+};
+
+//========================================================================
+
+struct SwLineStruct
+{
+ short nLeft; //Breite der linken Linie
+ short nMiddle;//Breite des Zwischenraums
+ short nRight; //Breite der rechten Linie
+};
+
+void lcl_SwLinkLine( const SwLineStruct& dLine,
+ const SwLineStruct& ltLine,
+ const SwLineStruct& lLine,
+ const SwLineStruct& lbLine,
+ const SwLineStruct& rtLine,
+ const SwLineStruct& rLine,
+ const SwLineStruct& rbLine,
+ short* dxArr);
+
+//SC-Produkt!
+BOOL lcl_HasPriority( const SvxBorderLine* pThis,
+ const SvxBorderLine* pOther );
+
+//------------------------------------------------------------------------
+
+class SwStringInputDlg : public ModalDialog
+{
+public:
+ SwStringInputDlg( Window* pParent,
+ const String& rTitle,
+ const String& rEditTitle,
+ const String& rDefault );
+ ~SwStringInputDlg();
+
+ void GetInputString( String& rString ) const;
+
+private:
+ Edit aEdInput; // Edit erhaelt so den Focus
+ FixedText aFtEditTitle;
+ OKButton aBtnOk;
+ CancelButton aBtnCancel;
+};
+
+
+BYTE AutoFmtPreview::aFmtMap[] = { 0, 1, 2, 1, 3, // Zuordnung:
+ 4, 5, 6, 5, 7, // Zelle->Format
+ 8, 9, 10, 9, 11,
+ 4, 5, 6, 5, 7,
+ 12, 13, 14, 13, 15 };
+
+
+
+
+SwStringInputDlg::SwStringInputDlg( Window* pParent,
+ const String& rTitle,
+ const String& rEditTitle,
+ const String& rDefault ) :
+ ModalDialog ( pParent, SW_RES( DLG_SWDLG_STRINPUT ) ),
+ //
+ aEdInput ( this, SW_RES( ED_INPUT ) ),
+ aBtnOk ( this, SW_RES( BTN_OK ) ),
+ aBtnCancel ( this, SW_RES( BTN_CANCEL ) ),
+ aFtEditTitle ( this, SW_RES( FT_LABEL ) )
+{
+ SetText( rTitle );
+ aFtEditTitle.SetText( rEditTitle );
+ aEdInput.SetText( rDefault );
+ //-------------
+ FreeResource();
+}
+
+//------------------------------------------------------------------------
+
+void SwStringInputDlg::GetInputString( String& rString ) const
+{
+ rString = aEdInput.GetText();
+}
+
+
+__EXPORT SwStringInputDlg::~SwStringInputDlg()
+{
+}
+
+//========================================================================
+// AutoFormat-Dialog:
+
+
+SwAutoFormatDlg::SwAutoFormatDlg( Window* pParent, SwWrtShell* pWrtShell,
+ BOOL bSetAutoFormat, const SwTableAutoFmt* pSelFmt )
+ : SfxModalDialog( pParent, SW_RES( DLG_AUTOFMT_TABLE ) ),
+ //
+ aFtFormat ( this, SW_RES( FT_FORMAT ) ),
+ aLbFormat ( this, SW_RES( LB_FORMAT ) ),
+ aGbPreview ( this, SW_RES( GB_PREVIEW ) ),
+ pWndPreview ( new AutoFmtPreview( this, SW_RES( WND_PREVIEW ) ) ),
+ aBtnNumFormat ( this, SW_RES( BTN_NUMFORMAT ) ),
+ aBtnBorder ( this, SW_RES( BTN_BORDER ) ),
+ aBtnFont ( this, SW_RES( BTN_FONT ) ),
+ aBtnPattern ( this, SW_RES( BTN_PATTERN ) ),
+ aBtnAlignment ( this, SW_RES( BTN_ALIGNMENT ) ),
+ aGbFormat ( this, SW_RES( GB_FORMAT ) ),
+ aBtnOk ( this, SW_RES( BTN_OK ) ),
+ aBtnCancel ( this, SW_RES( BTN_CANCEL ) ),
+ aBtnHelp ( this, SW_RES( BTN_HELP ) ),
+ aBtnAdd ( this, SW_RES( BTN_ADD ) ),
+ aBtnRemove ( this, SW_RES( BTN_REMOVE ) ),
+ aBtnMore ( this, SW_RES( BTN_MORE ) ),
+ aBtnRename ( this, SW_RES( BTN_RENAME ) ),
+ aStrTitle ( SW_RES( STR_ADD_TITLE ) ),
+ aStrLabel ( SW_RES( STR_ADD_LABEL ) ),
+ aStrClose ( SW_RES( STR_BTN_CLOSE ) ),
+ aStrDelTitle ( SW_RES( STR_DEL_TITLE ) ),
+ aStrDelMsg ( SW_RES( STR_DEL_MSG ) ),
+ aStrRenameTitle ( SW_RES( STR_RENAME_TITLE ) ),
+ aStrInvalidFmt ( SW_RES( STR_INVALID_AFNAME )),
+ //
+ nIndex ( 0 ),
+ nDfltStylePos ( 0 ),
+ bCoreDataChanged( FALSE ),
+ bSetAutoFmt ( bSetAutoFormat ),
+ pShell ( pWrtShell )
+{
+ pTableTbl = new SwTableAutoFmtTbl;
+ pTableTbl->Load();
+
+ Init( pSelFmt );
+ //------------- >
+ FreeResource();
+}
+
+//------------------------------------------------------------------------
+
+
+__EXPORT SwAutoFormatDlg::~SwAutoFormatDlg()
+{
+ delete pWndPreview;
+
+ if( bCoreDataChanged )
+ pTableTbl->Save();
+ delete pTableTbl;
+}
+
+//------------------------------------------------------------------------
+
+
+void SwAutoFormatDlg::Init( const SwTableAutoFmt* pSelFmt )
+{
+ Link aLk( LINK( this, SwAutoFormatDlg, CheckHdl ) );
+ aBtnBorder.SetClickHdl( aLk );
+ aBtnFont.SetClickHdl( aLk );
+ aBtnPattern.SetClickHdl( aLk );
+ aBtnAlignment.SetClickHdl( aLk );
+ aBtnNumFormat.SetClickHdl( aLk );
+
+ aBtnAdd.SetClickHdl ( LINK( this, SwAutoFormatDlg, AddHdl ) );
+ aBtnRemove.SetClickHdl ( LINK( this, SwAutoFormatDlg, RemoveHdl ) );
+ aBtnRename.SetClickHdl ( LINK( this, SwAutoFormatDlg, RenameHdl ) );
+ aBtnOk.SetClickHdl ( LINK( this, SwAutoFormatDlg, OkHdl ) );
+ aLbFormat.SetSelectHdl( LINK( this, SwAutoFormatDlg, SelFmtHdl ) );
+
+ aBtnMore.AddWindow( &aBtnNumFormat );
+ aBtnMore.AddWindow( &aBtnBorder );
+ aBtnMore.AddWindow( &aBtnFont );
+ aBtnMore.AddWindow( &aBtnPattern );
+ aBtnMore.AddWindow( &aBtnAlignment );
+ aBtnMore.AddWindow( &aGbFormat );
+ aBtnMore.AddWindow( &aBtnRename );
+
+ aBtnAdd.Enable( bSetAutoFmt );
+
+ nIndex = 0;
+ if( !bSetAutoFmt )
+ {
+ // dann muss die Liste um den Eintrag <Keins> erweitert werden.
+ aLbFormat.InsertEntry( ViewShell::GetShellRes()->aStrNone );
+ nDfltStylePos = 1;
+ nIndex = 255;
+ }
+
+ for( BYTE i = 0, nCount = (BYTE)pTableTbl->Count(); i < nCount; i++ )
+ {
+ SwTableAutoFmt* pFmt = (*pTableTbl)[ i ];
+ aLbFormat.InsertEntry( pFmt->GetName() );
+ if( pSelFmt && pFmt->GetName() == pSelFmt->GetName() )
+ nIndex = i;
+ }
+
+ aLbFormat.SelectEntryPos( 255 != nIndex ? (nDfltStylePos + nIndex) : 0 );
+ SelFmtHdl( 0 );
+}
+
+//------------------------------------------------------------------------
+
+
+void SwAutoFormatDlg::UpdateChecks( const SwTableAutoFmt& rFmt, BOOL bEnable )
+{
+ aBtnNumFormat.Enable( bEnable );
+ aBtnNumFormat.Check( rFmt.IsValueFormat() );
+
+ aBtnBorder.Enable( bEnable );
+ aBtnBorder.Check( rFmt.IsFrame() );
+
+ aBtnFont.Enable( bEnable );
+ aBtnFont.Check( rFmt.IsFont() );
+
+ aBtnPattern.Enable( bEnable );
+ aBtnPattern.Check( rFmt.IsBackground() );
+
+ aBtnAlignment.Enable( bEnable );
+ aBtnAlignment.Check( rFmt.IsJustify() );
+}
+
+void SwAutoFormatDlg::FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const
+{
+ if( 255 != nIndex )
+ {
+ if( rToFill )
+ *rToFill = *(*pTableTbl)[ nIndex ];
+ else
+ rToFill = new SwTableAutoFmt( *(*pTableTbl)[ nIndex ] );
+ }
+ else if( rToFill )
+ delete rToFill, rToFill = 0;
+}
+
+
+/*------------------------------------------------------------------------
+ Handler:
+ ---------*/
+
+
+IMPL_LINK( SwAutoFormatDlg, CheckHdl, Button *, pBtn )
+{
+ SwTableAutoFmtPtr pData = (*pTableTbl)[nIndex];
+ BOOL bCheck = ((CheckBox*)pBtn)->IsChecked(), bDataChgd = TRUE;
+
+ if( pBtn == &aBtnNumFormat )
+ pData->SetValueFormat( bCheck );
+ else if ( pBtn == &aBtnBorder )
+ pData->SetFrame( bCheck );
+ else if ( pBtn == &aBtnFont )
+ pData->SetFont( bCheck );
+ else if ( pBtn == &aBtnPattern )
+ pData->SetBackground( bCheck );
+ else if ( pBtn == &aBtnAlignment )
+ pData->SetJustify( bCheck );
+// else if ( pBtn == &aBtnAdjust )
+// pData->SetIncludeWidthHeight( bCheck );
+ else
+ bDataChgd = FALSE;
+
+ if( bDataChgd )
+ {
+ if( !bCoreDataChanged )
+ {
+ aBtnCancel.SetText( aStrClose );
+ bCoreDataChanged = TRUE;
+ }
+
+ pWndPreview->NotifyChange( *pData );
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwAutoFormatDlg, AddHdl, void *, EMPTYARG )
+{
+ BOOL bOk = FALSE, bFmtInserted = FALSE;
+ while( !bOk )
+ {
+ SwStringInputDlg* pDlg = new SwStringInputDlg( this,
+ aStrTitle,
+ aStrLabel,
+ aEmptyStr );
+ if( RET_OK == pDlg->Execute() )
+ {
+ String aFormatName;
+ pDlg->GetInputString( aFormatName );
+
+ if( aFormatName.Len() > 0 )
+ {
+ for( USHORT n = 0; n < pTableTbl->Count(); ++n )
+ if( (*pTableTbl)[n]->GetName() == aFormatName )
+ break;
+
+ if( n >= pTableTbl->Count() )
+ {
+ // Format mit dem Namen noch nicht vorhanden, also
+ // aufnehmen
+ SwTableAutoFmtPtr pNewData = new
+ SwTableAutoFmt( aFormatName );
+ pShell->GetTableAutoFmt( *pNewData );
+
+ // Sortiert einfuegen!!
+ for( n = 1; n < pTableTbl->Count(); ++n )
+ if( (*pTableTbl)[ n ]->GetName() > aFormatName )
+ break;
+
+ pTableTbl->Insert( pNewData, n );
+ aLbFormat.InsertEntry( aFormatName, nDfltStylePos + n );
+ aLbFormat.SelectEntryPos( nDfltStylePos + n );
+ bFmtInserted = TRUE;
+ aBtnAdd.Enable( FALSE );
+ if ( !bCoreDataChanged )
+ {
+ aBtnCancel.SetText( aStrClose );
+ bCoreDataChanged = TRUE;
+ }
+
+ SelFmtHdl( 0 );
+ bOk = TRUE;
+ }
+ }
+
+ if( !bFmtInserted )
+ {
+ bOk = RET_CANCEL == ErrorBox( this,
+ WinBits( WB_OK_CANCEL | WB_DEF_OK),
+ aStrInvalidFmt
+ ).Execute();
+ }
+ }
+ else
+ bOk = TRUE;
+ delete pDlg;
+ }
+ return 0;
+}
+
+//------------------------------------------------------------------------
+
+IMPL_LINK( SwAutoFormatDlg, RemoveHdl, void *, EMPTYARG )
+{
+ String aMessage = aStrDelMsg ;
+ aMessage.AppendAscii("\n\n");
+ aMessage += aLbFormat.GetSelectEntry() ;
+ aMessage += '\n';
+
+ MessBox* pBox = new MessBox( this, WinBits( WB_OK_CANCEL ),
+ aStrDelTitle, aMessage);
+
+ if ( pBox->Execute() == RET_OK )
+ {
+ aLbFormat.RemoveEntry( nDfltStylePos + nIndex );
+ aLbFormat.SelectEntryPos( nDfltStylePos + nIndex-1 );
+
+ pTableTbl->DeleteAndDestroy( nIndex );
+ nIndex--;
+
+ if( !nIndex )
+ {
+ aBtnRemove.Enable(FALSE);
+ aBtnRename.Enable(FALSE);
+ }
+
+ if( !bCoreDataChanged )
+ {
+ aBtnCancel.SetText( aStrClose );
+ bCoreDataChanged = TRUE;
+ }
+ }
+ delete pBox;
+
+ SelFmtHdl( 0 );
+
+ return 0;
+}
+
+IMPL_LINK( SwAutoFormatDlg, RenameHdl, void *, EMPTYARG )
+{
+ BOOL bOk = FALSE;
+ while( !bOk )
+ {
+ SwStringInputDlg* pDlg = new SwStringInputDlg( this,
+ aStrRenameTitle, aLbFormat.GetSelectEntry(),
+ aEmptyStr );
+ if( pDlg->Execute() == RET_OK )
+ {
+ BOOL bFmtRenamed = FALSE;
+ String aFormatName;
+ pDlg->GetInputString( aFormatName );
+
+ if ( aFormatName.Len() > 0 )
+ {
+ for( USHORT n = 0; n < pTableTbl->Count(); ++n )
+ if ((*pTableTbl)[n]->GetName() == aFormatName)
+ break;
+
+ if( n >= pTableTbl->Count() )
+ {
+ // Format mit dem Namen noch nicht vorhanden, also
+ // umbenennen
+
+ aLbFormat.RemoveEntry( nDfltStylePos + nIndex );
+ SwTableAutoFmtPtr p = (*pTableTbl)[ nIndex ];
+ pTableTbl->Remove( nIndex );
+
+ p->SetName( aFormatName );
+
+ // Sortiert einfuegen!!
+ for( n = 1; n < pTableTbl->Count(); ++n )
+ if( (*pTableTbl)[ n ]->GetName() > aFormatName )
+ break;
+
+ pTableTbl->Insert( p, n );
+ aLbFormat.InsertEntry( aFormatName, nDfltStylePos + n );
+ aLbFormat.SelectEntryPos( nDfltStylePos + n );
+
+ if ( !bCoreDataChanged )
+ {
+ aBtnCancel.SetText( aStrClose );
+ bCoreDataChanged = TRUE;
+ }
+
+ SelFmtHdl( 0 );
+ bOk = TRUE;
+ bFmtRenamed = TRUE;
+ }
+ }
+
+ if( !bFmtRenamed )
+ {
+ bOk = RET_CANCEL == ErrorBox( this,
+ WinBits( WB_OK_CANCEL | WB_DEF_OK),
+ aStrInvalidFmt
+ ).Execute();
+ }
+ }
+ else
+ bOk = TRUE;
+ delete pDlg;
+ }
+ return 0;
+}
+
+//------------------------------------------------------------------------
+
+IMPL_LINK( SwAutoFormatDlg, SelFmtHdl, void *, EMPTYARG )
+{
+ BOOL bBtnEnable = FALSE;
+ BYTE nSelPos = (BYTE) aLbFormat.GetSelectEntryPos(), nOldIdx = nIndex;
+ if( nSelPos >= nDfltStylePos )
+ {
+ nIndex = nSelPos - nDfltStylePos;
+ pWndPreview->NotifyChange( *(*pTableTbl)[nIndex] );
+ bBtnEnable = 0 != nIndex;
+ UpdateChecks( *(*pTableTbl)[nIndex], TRUE );
+ }
+ else
+ {
+ nIndex = 255;
+
+ SwTableAutoFmt aTmp( ViewShell::GetShellRes()->aStrNone );
+ aTmp.SetFont( FALSE );
+ aTmp.SetJustify( FALSE );
+ aTmp.SetFrame( FALSE );
+ aTmp.SetBackground( FALSE );
+ aTmp.SetValueFormat( FALSE );
+ aTmp.SetWidthHeight( FALSE );
+
+ if( nOldIdx != nIndex )
+ pWndPreview->NotifyChange( aTmp );
+ UpdateChecks( aTmp, FALSE );
+ }
+
+ aBtnRemove.Enable( bBtnEnable );
+ aBtnRename.Enable( bBtnEnable );
+
+ return 0;
+}
+//------------------------------------------------------------------------
+
+IMPL_LINK_INLINE_START( SwAutoFormatDlg, OkHdl, Button *, EMPTYARG )
+{
+ if( bSetAutoFmt )
+ pShell->SetTableAutoFmt( *(*pTableTbl)[ nIndex ] );
+ EndDialog( RET_OK );
+ return TRUE;
+}
+IMPL_LINK_INLINE_END( SwAutoFormatDlg, OkHdl, Button *, EMPTYARG )
+
+//========================================================================
+// AutoFmtPreview
+
+//------------------------------------------------------------------------
+
+AutoFmtPreview::AutoFmtPreview( Window* pParent, const ResId& rRes ) :
+ Window ( pParent, rRes ),
+ aVD ( *this ),
+ aCurData ( aEmptyStr ),
+ bFitWidth ( FALSE ),
+ aStrJan ( SW_RES( STR_JAN ) ),
+ aStrFeb ( SW_RES( STR_FEB ) ),
+ aStrMar ( SW_RES( STR_MAR ) ),
+ aStrNorth ( SW_RES( STR_NORTH ) ),
+ aStrMid ( SW_RES( STR_MID ) ),
+ aStrSouth ( SW_RES( STR_SOUTH ) ),
+ aStrSum ( SW_RES( STR_SUM ) ),
+ aPrvSize ( GetSizePixel().Width() - 6,
+ GetSizePixel().Height() - 30 ),
+ nLabelColWidth ( (USHORT)(((aPrvSize.Width()-4)/4)-12) ),
+ nDataColWidth1 ( (USHORT)(((aPrvSize.Width()-4)-(nLabelColWidth*2)) / 3) ),
+ nDataColWidth2 ( (USHORT)(((aPrvSize.Width()-4)-(nLabelColWidth*2)) / 4) ),
+ nRowHeight ( (USHORT)((aPrvSize.Height()-4) / 5) ),
+ pNumFmt ( new SvNumberFormatter( LANGUAGE_SYSTEM ) )
+{
+ Init();
+}
+
+//------------------------------------------------------------------------
+
+__EXPORT AutoFmtPreview::~AutoFmtPreview()
+{
+ for ( USHORT i=0; i<=35; i++ )
+ {
+ delete aLinePtrArray[i];
+ }
+ delete pNumFmt;
+}
+
+//------------------------------------------------------------------------
+
+void lcl_AssignLine( SvxBorderLine& dest,
+ const SvxBorderLine* src )
+{
+ if( src )
+ {
+ dest.SetColor( src->GetColor() );
+ dest.SetOutWidth( src->GetOutWidth() );
+ dest.SetInWidth( src->GetInWidth() );
+ dest.SetDistance( src->GetDistance() );
+ }
+ else
+ {
+ dest.SetColor( Color( COL_WHITE ) );
+ dest.SetOutWidth ( 0 );
+ dest.SetInWidth ( 0 );
+ dest.SetDistance ( 0 );
+ }
+}
+
+//------------------------------------------------------------------------
+
+void lcl_GetLineStruct( SwLineStruct& rLine,
+ const SvxBorderLine& rBoxLine )
+{
+ if ( rBoxLine.GetOutWidth() > 0 )
+ {
+ rLine.nLeft = rBoxLine.GetOutWidth();
+ rLine.nMiddle = rBoxLine.GetDistance();
+ rLine.nRight = rBoxLine.GetInWidth();
+
+ /* Linienstaerke auf dick/duenn abbilden:
+ *
+ * (in TWIPS, 1pt = 20 TWIPS = duenn)
+ * alles was <=0 ist -> (0,0,0)
+ * alles was <=20 ist -> (1,0,0)/(1,1,1)
+ * alles andere -> (3,0,0)/(2,1,2)
+ */
+
+ if ( rLine.nMiddle == 0 ) // einfache Linie?
+ {
+ rLine.nRight = 0; // sicher ist sicher
+
+ if ( rLine.nLeft <= 20 )
+ {
+ rLine.nLeft = 1;
+ }
+ else if ( rLine.nLeft > 20 )
+ {
+ rLine.nLeft = 3;
+ }
+ }
+ else // doppelte Linie
+ {
+ rLine.nMiddle = 1;
+ if ( rLine.nLeft <= 20 )
+ {
+ rLine.nLeft = rLine.nRight = 1;
+ }
+ else if ( rLine.nLeft > 20 )
+ {
+ rLine.nLeft = rLine.nRight = 2;
+ }
+ }
+ }
+ else
+ {
+ rLine.nLeft = 0;
+ rLine.nMiddle = 0;
+ rLine.nRight = 0;
+ }
+}
+
+//------------------------------------------------------------------------
+
+void AutoFmtPreview::CheckPriority( USHORT nCurLine,
+ AutoFmtLine eLine,
+ SvxBorderLine& rLine )
+{
+
+ const SvxBorderLine* pDrawLine;
+ USHORT nOther = 0;
+
+ switch ( eLine )
+ {
+ case TOP_LINE:
+ {
+ lcl_AssignLine( rLine, aLinePtrArray[nCurLine]->GetTop() );
+ nOther = nCurLine-7;
+ pDrawLine = aLinePtrArray[nOther]->GetBottom();
+
+ if ( lcl_HasPriority( pDrawLine, &rLine ) )
+ lcl_AssignLine( rLine, pDrawLine );
+ }
+ break;
+
+ case BOTTOM_LINE:
+ {
+ lcl_AssignLine( rLine, aLinePtrArray[nCurLine]->GetBottom() );
+ nOther = nCurLine+7;
+ pDrawLine = aLinePtrArray[nOther]->GetTop();
+
+ if ( lcl_HasPriority( pDrawLine, &rLine ) )
+ lcl_AssignLine( rLine, pDrawLine );
+ }
+ break;
+
+ case LEFT_LINE:
+ {
+ lcl_AssignLine( rLine, aLinePtrArray[nCurLine]->GetLeft() );
+ nOther = nCurLine-1;
+ pDrawLine = aLinePtrArray[nOther]->GetRight();
+
+ if ( lcl_HasPriority( pDrawLine, &rLine ) )
+ lcl_AssignLine( rLine, pDrawLine );
+ }
+ break;
+
+ case RIGHT_LINE:
+ {
+ lcl_AssignLine( rLine, aLinePtrArray[nCurLine]->GetRight() );
+ nOther = nCurLine+1;
+ pDrawLine = aLinePtrArray[nOther]->GetLeft();
+
+ if ( lcl_HasPriority( pDrawLine, &rLine ) )
+ lcl_AssignLine( rLine, pDrawLine );
+ }
+ break;
+ }
+
+}
+
+//------------------------------------------------------------------------
+
+void AutoFmtPreview::GetLines( BYTE nIndex, AutoFmtLine eLine,
+ SvxBorderLine& rLineD,
+ SvxBorderLine& rLineLT,
+ SvxBorderLine& rLineL,
+ SvxBorderLine& rLineLB,
+ SvxBorderLine& rLineRT,
+ SvxBorderLine& rLineR,
+ SvxBorderLine& rLineRB )
+{
+ {
+ SvxBorderLine aNullLine;
+
+ lcl_AssignLine( rLineD, &aNullLine);
+ lcl_AssignLine( rLineLT, &aNullLine);
+ lcl_AssignLine( rLineL, &aNullLine);
+ lcl_AssignLine( rLineLB, &aNullLine);
+ lcl_AssignLine( rLineRT, &aNullLine);
+ lcl_AssignLine( rLineR, &aNullLine);
+ lcl_AssignLine( rLineRB, &aNullLine);
+ }
+
+ USHORT nCurLine = nIndex + 8 + ((nIndex/5)*2);
+ USHORT nOther = 0;
+
+ switch ( eLine )
+ {
+ case TOP_LINE:
+ {
+ // obere Linien werden nur in der
+ // ersten Zeile gemalt:
+ if ( (nIndex >= 0) && (nIndex <= 4) )
+ {
+ // links
+ CheckPriority( nCurLine, eLine, rLineD );
+ nOther = nCurLine-7;
+ CheckPriority( nOther, LEFT_LINE, rLineLT );
+ nOther = nCurLine-1;
+ CheckPriority( nOther, TOP_LINE, rLineL );
+ CheckPriority( nCurLine, LEFT_LINE, rLineLB );
+ // rechts
+ nOther = nCurLine-7;
+ CheckPriority( nOther, RIGHT_LINE, rLineRT );
+ nOther = nCurLine+1;
+ CheckPriority( nOther, TOP_LINE, rLineR );
+ CheckPriority( nCurLine, RIGHT_LINE, rLineRB );
+ }
+ }
+ break;
+
+ case BOTTOM_LINE:
+ {
+ // links
+ CheckPriority( nCurLine, eLine, rLineD );
+ CheckPriority( nCurLine, LEFT_LINE, rLineLT );
+ nOther = nCurLine-1;
+ CheckPriority( nOther, BOTTOM_LINE, rLineL );
+ nOther = nCurLine+7;
+ CheckPriority( nOther, LEFT_LINE, rLineLB );
+ // rechts
+ CheckPriority( nCurLine, RIGHT_LINE, rLineRT );
+ nOther = nCurLine+1;
+ CheckPriority( nOther, BOTTOM_LINE, rLineR );
+ nOther = nCurLine+7;
+ CheckPriority( nOther, RIGHT_LINE, rLineRB );
+ }
+ break;
+
+ case LEFT_LINE:
+ {
+ // linke Linien werden nur in der
+ // ersten Spalte gemalt:
+ if ( (nIndex%5) == 0 )
+ {
+ // oben
+ CheckPriority( nCurLine, eLine, rLineD );
+ CheckPriority( nCurLine, TOP_LINE, rLineLT );
+ nOther = nCurLine-7;
+ CheckPriority( nOther, LEFT_LINE, rLineL );
+ nOther = nCurLine-1;
+ CheckPriority( nOther, TOP_LINE, rLineLB );
+ // unten
+ CheckPriority( nCurLine, BOTTOM_LINE, rLineRT );
+ nOther = nCurLine+7;
+ CheckPriority( nOther, LEFT_LINE, rLineR );
+ nOther = nCurLine-1;
+ CheckPriority( nOther, BOTTOM_LINE, rLineRB );
+ }
+ }
+ break;
+
+ case RIGHT_LINE:
+ {
+ // oben
+ CheckPriority( nCurLine, eLine, rLineD );
+ nOther = nCurLine+1;
+ CheckPriority( nOther, TOP_LINE, rLineLT );
+ nOther = nCurLine-7;
+ CheckPriority( nOther, RIGHT_LINE, rLineL );
+ CheckPriority( nCurLine, TOP_LINE, rLineLB );
+ // unten
+ nOther = nCurLine+1;
+ CheckPriority( nOther, BOTTOM_LINE, rLineRT );
+ nOther = nCurLine+7;
+ CheckPriority( nOther, RIGHT_LINE, rLineR );
+ CheckPriority( nCurLine, BOTTOM_LINE, rLineRB );
+ }
+ break;
+ }
+}
+
+//------------------------------------------------------------------------
+
+void AutoFmtPreview::DrawFrameLine( const SvxBorderLine& rLineD,
+ Point from,
+ Point to,
+ BOOL bHorizontal,
+ const SvxBorderLine& rLineLT,
+ const SvxBorderLine& rLineL,
+ const SvxBorderLine& rLineLB,
+ const SvxBorderLine& rLineRT,
+ const SvxBorderLine& rLineR,
+ const SvxBorderLine& rLineRB )
+{
+ SwLineStruct dLine;
+ SwLineStruct ltLine;
+ SwLineStruct lLine;
+ SwLineStruct lbLine;
+ SwLineStruct rtLine;
+ SwLineStruct rLine;
+ SwLineStruct rbLine;
+ short dxArr[4];
+
+ lcl_GetLineStruct( dLine, rLineD );
+ lcl_GetLineStruct( ltLine, rLineLT );
+ lcl_GetLineStruct( lLine, rLineL );
+ lcl_GetLineStruct( lbLine, rLineLB );
+ lcl_GetLineStruct( rtLine, rLineRT );
+ lcl_GetLineStruct( rLine, rLineR );
+ lcl_GetLineStruct( rbLine, rLineRB );
+
+ if ( dLine.nLeft > 0 )
+ {
+ Color oldColor = aVD.GetLineColor();
+ aVD.SetLineColor( Color(COL_TRANSPARENT) );
+ Color oldFillColor = aVD.GetFillColor();
+ aVD.SetFillColor( rLineD.GetColor() );
+ USHORT nHeight = dLine.nLeft + dLine.nMiddle + dLine.nRight;
+ Point from2 = from;
+ Point to2 = to;
+
+ lcl_SwLinkLine( dLine,
+ ltLine, lLine, lbLine,
+ rtLine, rLine, rbLine,
+ dxArr );
+
+ if ( bHorizontal )
+ {
+ from.Y() -= nHeight/2;
+ to.Y() -= nHeight/2;
+ to.Y() += (dLine.nLeft-1);
+
+ from.X() += dxArr[0];
+ to.X() += dxArr[2];
+
+ aVD.DrawRect( Rectangle( from, to ) );
+
+ // noch eine zweite Linie zu malen?
+ if ( dLine.nRight != 0 )
+ {
+ from2.Y() -= nHeight/2;
+ from2.Y() += dLine.nLeft+dLine.nMiddle;
+ to2.Y() -= nHeight/2;
+ to2.Y() += dLine.nMiddle+dLine.nLeft;
+ to2.Y() += (dLine.nRight-1);
+
+ from2.X() += dxArr[1];
+ to2.X() += dxArr[3];
+
+ aVD.DrawRect( Rectangle( from2, to2 ) );
+ }
+ }
+ else
+ {
+ from.X() += nHeight/2;
+ from.X() -= (dLine.nLeft-1);
+ to.X() += nHeight/2;
+
+ from.Y() += dxArr[0];
+ to.Y() += dxArr[2];
+
+ aVD.DrawRect( Rectangle( from, to ) );
+
+ // noch eine zweite Linie zu malen?
+ if ( dLine.nRight != 0 )
+ {
+ from2.X() -= nHeight/2;
+ to2.X() -= nHeight/2;
+ to2.X() += (dLine.nRight-1);
+
+ from2.Y() += dxArr[1];
+ to2.Y() += dxArr[3];
+
+ aVD.DrawRect( Rectangle( from2, to2 ) );
+ }
+ }
+ aVD.SetFillColor( oldFillColor );
+ aVD.SetLineColor( oldColor );
+ }
+}
+
+//------------------------------------------------------------------------
+
+void AutoFmtPreview::DrawFrame( BYTE nIndex )
+{
+ //----------------------
+ // Malen des Zellrahmens
+ //----------------------
+
+ SvxBorderLine aLineD;
+ SvxBorderLine aLineLT;
+ SvxBorderLine aLineL;
+ SvxBorderLine aLineLB;
+ SvxBorderLine aLineRT;
+ SvxBorderLine aLineR;
+ SvxBorderLine aLineRB;
+ Rectangle& cellRect = aCellArray[nIndex];
+
+ //---------
+ // TopLine ---------------------------------------------
+ //---------
+ GetLines( nIndex, TOP_LINE, aLineD,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ DrawFrameLine( aLineD,
+ cellRect.TopLeft(), cellRect.TopRight(), TRUE,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ //------------
+ // BottomLine ------------------------------------------
+ //------------
+ GetLines( nIndex, BOTTOM_LINE, aLineD,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ DrawFrameLine( aLineD,
+ cellRect.BottomLeft(), cellRect.BottomRight(), TRUE,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ //----------
+ // LeftLine --------------------------------------------
+ //----------
+ GetLines( nIndex, LEFT_LINE, aLineD,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ DrawFrameLine( aLineD,
+ cellRect.TopLeft(), cellRect.BottomLeft(), FALSE,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ //-----------
+ // RightLine -------------------------------------------
+ //-----------
+ GetLines( nIndex, RIGHT_LINE, aLineD,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+
+ DrawFrameLine( aLineD,
+ cellRect.TopRight(), cellRect.BottomRight(), FALSE,
+ aLineLT, aLineL, aLineLB,
+ aLineRT, aLineR, aLineRB );
+}
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::MakeFont( BYTE nIndex, Font& rFont )
+{
+ const SwBoxAutoFmt& rBoxFmt = aCurData.GetBoxFmt( nIndex );
+
+ rFont = GetFont();
+
+ const SvxFontItem& rFontItem = rBoxFmt.GetFont();
+ rFont.SetFamily ( rFontItem.GetFamily() );
+ rFont.SetName ( rFontItem.GetFamilyName() );
+ rFont.SetStyleName ( rFontItem.GetStyleName() );
+ rFont.SetCharSet ( rFontItem.GetCharSet() );
+ rFont.SetPitch ( rFontItem.GetPitch() );
+ rFont.SetWeight ( (FontWeight)rBoxFmt.GetWeight().GetValue() );
+ rFont.SetUnderline ( (FontUnderline)rBoxFmt.GetUnderline().GetValue() );
+ rFont.SetStrikeout ( (FontStrikeout)rBoxFmt.GetCrossedOut().GetValue() );
+ rFont.SetItalic ( (FontItalic)rBoxFmt.GetPosture().GetValue() );
+ rFont.SetOutline ( rBoxFmt.GetContour().GetValue() );
+ rFont.SetShadow ( rBoxFmt.GetShadowed().GetValue() );
+ rFont.SetColor ( rBoxFmt.GetColor().GetValue() );
+
+ rFont.SetSize ( Size( rFont.GetSize().Width(), 10 ) );
+ rFont.SetTransparent ( TRUE );
+}
+
+//------------------------------------------------------------------------
+
+void AutoFmtPreview::DrawString( BYTE nIndex )
+{
+ //------------------------
+ // Ausgabe des Zelltextes:
+ //------------------------
+ ULONG nNum;
+ double nVal;
+ String cellString;
+ switch( nIndex )
+ {
+ case 1: cellString = aStrJan; break;
+ case 2: cellString = aStrFeb; break;
+ case 3: cellString = aStrMar; break;
+ case 5: cellString = aStrNorth; break;
+ case 10: cellString = aStrMid; break;
+ case 15: cellString = aStrSouth; break;
+ case 4:
+ case 20: cellString = aStrSum; break;
+
+ case 6:
+ case 8:
+ case 16:
+ case 18: nVal = nIndex;
+ nNum = 5;
+ goto MAKENUMSTR;
+ case 17:
+ case 7: nVal = nIndex;
+ nNum = 6;
+ goto MAKENUMSTR;
+ case 11:
+ case 12:
+ case 13: nVal = nIndex;
+ nNum = 12 == nIndex ? 10 : 9;
+ goto MAKENUMSTR;
+
+ case 9: nVal = 21; nNum = 7; goto MAKENUMSTR;
+ case 14: nVal = 36; nNum = 11; goto MAKENUMSTR;
+ case 19: nVal = 51; nNum = 7; goto MAKENUMSTR;
+ case 21: nVal = 33; nNum = 13; goto MAKENUMSTR;
+ case 22: nVal = 36; nNum = 14; goto MAKENUMSTR;
+ case 23: nVal = 39; nNum = 13; goto MAKENUMSTR;
+ case 24: nVal = 108; nNum = 15; goto MAKENUMSTR;
+MAKENUMSTR:
+ if( aCurData.IsValueFormat() )
+ {
+ String sFmt; LanguageType eLng, eSys;
+ aCurData.GetBoxFmt( (BYTE)nNum ).GetValueFormat( sFmt, eLng, eSys );
+
+ ULONG nKey = 0;
+ if ( eLng == LANGUAGE_SYSTEM && eSys != ::GetSystemLanguage() )
+ {
+ // #53381# wenn System beim Speichern etwas anderes war,
+ // muss konvertiert werden (geht nur mit eingebauten Formaten)
+ ULONG nOrig = pNumFmt->GetEntryKey( sFmt, eSys );
+ if ( nOrig != NUMBERFORMAT_ENTRY_NOT_FOUND )
+ nKey = pNumFmt->GetFormatForLanguageIfBuiltIn( nOrig, ::GetSystemLanguage() );
+ }
+ else // sonst einfach suchen oder anlegen
+ {
+ nKey = pNumFmt->GetEntryKey( sFmt, eLng );
+ if( NUMBERFORMAT_ENTRY_NOT_FOUND == nKey )
+ {
+ xub_StrLen nCheckPos;
+ short nType;
+ pNumFmt->PutEntry( sFmt, nCheckPos, nType, nKey, eLng );
+ }
+ }
+ Color* pDummy;
+ pNumFmt->GetOutputString( nVal, nKey, cellString, &pDummy );
+ }
+ else
+ cellString = (USHORT)nVal;
+ break;
+
+ }
+
+ if( cellString.Len() )
+ {
+ Font oldFont;
+ Size aStrSize;
+ BYTE nFmtIndex = (BYTE) aFmtMap[nIndex];
+ Rectangle& cellRect = aCellArray[nIndex];
+ Point aPos = aCellArray[nIndex].TopLeft();
+ USHORT nRightX = 0;
+// BOOL bJustify = aCurData.IsJustify();
+// ScHorJustifyAttr aHorJustifyItem;
+// CellHorJustify eJustification;
+
+ Size theMaxStrSize( cellRect.GetWidth() - FRAME_OFFSET,
+ cellRect.GetHeight() - FRAME_OFFSET );
+ if( aCurData.IsFont() )
+ {
+ Font aFont;
+ MakeFont( nFmtIndex, aFont );
+ oldFont = aVD.GetFont();
+ aVD.SetFont( aFont );
+ }
+ aStrSize = Size(aVD.GetTextWidth( cellString ), aVD.GetTextHeight());
+
+ if( aCurData.IsFont() &&
+ theMaxStrSize.Height() < aStrSize.Height() )
+ {
+ // wenn der String in diesem Font nicht
+ // in die Zelle passt, wird wieder der
+ // Standard-Font genommen:
+ aVD.SetFont( oldFont );
+ aStrSize = Size(aVD.GetTextWidth( cellString ), aVD.GetTextHeight());
+ }
+
+ while( theMaxStrSize.Width() <= aStrSize.Width() &&
+ cellString.Len() > 1 )
+ {
+// if( eJustification == SVX_HOR_JUSTIFY_RIGHT )
+// cellString.Erase( 0, 1 );
+// else
+ cellString.Erase( cellString.Len() - 1 );
+ aStrSize = Size(aVD.GetTextWidth( cellString ), aVD.GetTextHeight());
+ }
+
+ nRightX = (USHORT)( cellRect.GetWidth()
+ - aStrSize.Width()
+ - FRAME_OFFSET );
+ //-------------
+ // Ausrichtung:
+ //-------------
+ /* if ( bJustify )
+ {
+ aCurData.GetHorJustify( nFmtIndex, aHorJustifyItem );
+ eJustification = (CellHorJustify)aHorJustifyItem.GetValue();
+ }
+ else
+ {
+ eJustification = SC_HOR_JUSTIFY_STANDARD;
+ }*/
+
+ //-----------------------------
+ // vertikal (immer zentrieren):
+ //-----------------------------
+ aPos.Y() += (nRowHeight - (USHORT)aStrSize.Height()) / 2;
+
+ //-----------
+ // horizontal
+ //-----------
+/* if ( eJustification != SC_HOR_JUSTIFY_STANDARD )*/
+ if (aCurData.IsJustify())
+ {
+ USHORT nHorPos = (USHORT)
+ ((cellRect.GetWidth()-aStrSize.Width())/2);
+ const SvxAdjustItem& rAdj = aCurData.GetBoxFmt(nFmtIndex).GetAdjust();
+ switch ( rAdj.GetAdjust() )
+ {
+ case SVX_ADJUST_LEFT:
+ aPos.X() += FRAME_OFFSET;
+ break;
+ case SVX_ADJUST_RIGHT:
+ aPos.X() += nRightX;
+ break;
+ default:
+ aPos.X() += nHorPos;
+ break;
+ }
+ }
+ else
+ {
+ //---------------------
+ // Standardausrichtung:
+ //---------------------
+ if ( ((nIndex%5) == 0) || (nIndex == 4) )
+ {
+ // Text-Label links oder Summe linksbuendig
+ aPos.X() += FRAME_OFFSET;
+ }
+ else
+ {
+ // Zahlen/Datum rechtsbuendig
+ aPos.X() += nRightX;
+ }
+ }
+
+ //-------------------------------
+ aVD.DrawText( aPos, cellString );
+ //-------------------------------
+
+ if ( aCurData.IsFont() )
+ aVD.SetFont( oldFont );
+ }
+}
+
+#undef FRAME_OFFSET
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::DrawBackground( BYTE nIndex )
+{
+ SvxBrushItem aBrushItem( aCurData.GetBoxFmt( aFmtMap[nIndex])
+ .GetBackground() );
+ Color oldColor = aVD.GetLineColor();
+ aVD.SetLineColor( Color(COL_TRANSPARENT) );
+ Color oldFillColor = aVD.GetFillColor();
+ aVD.SetFillColor( aBrushItem.GetColor() );
+ //-----------------------
+ aVD.DrawRect( aCellArray[nIndex] );
+ //-----------------------
+ aVD.SetLineColor( oldColor );
+ aVD.SetFillColor( oldFillColor );
+}
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::PaintCells()
+{
+ BYTE i = 0;
+
+ //---------------
+ // 1. Hintergrund
+ //---------------
+ if ( aCurData.IsBackground() )
+ {
+ for ( i=0; i<=24; i++ )
+ {
+ DrawBackground( i );
+ }
+ }
+
+ //----------
+ // 2. Rahmen
+ //----------
+ if ( aCurData.IsFrame() )
+ {
+ for ( i=0; i<=24; i++ )
+ {
+ DrawFrame( i );
+ }
+ }
+
+ //---------
+ // 3. Werte
+ //---------
+ for ( i = 0; i<=24; i++ )
+ {
+ DrawString( i );
+ }
+}
+
+//------------------------------------------------------------------------
+
+
+void __EXPORT AutoFmtPreview::Init()
+{
+ SvxBoxItem aEmptyBoxItem;
+
+ aEmptyBoxItem.SetLine ( NULL, BOX_LINE_TOP );
+ aEmptyBoxItem.SetLine ( NULL, BOX_LINE_BOTTOM );
+ aEmptyBoxItem.SetLine ( NULL, BOX_LINE_LEFT );
+ aEmptyBoxItem.SetLine ( NULL, BOX_LINE_RIGHT );
+ aEmptyBoxItem.SetDistance( 0 );
+
+ //------------------------
+ // Linienattribut-Feld mit
+ // Null-BoxItems fuellen
+ //------------------------
+ for ( USHORT i=0; i<=48; i++ )
+ {
+ aLinePtrArray[i] = new SvxBoxItem( aEmptyBoxItem );
+ }
+
+ CalcCellArray( FALSE );
+ CalcLineMap();
+
+}
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::CalcCellArray( BOOL bFitWidth )
+{
+ // Initialisieren des Zellfeldes (5x5 Zellen).
+ // Rectangles enthalten Position und Groesse einer Zelle.
+ // abhaengig, ob Zellbreite an Format angepasst werden soll (bFitWidth)
+ USHORT nRow;
+ USHORT nDataColWidth = (bFitWidth) ? nDataColWidth2 : nDataColWidth1;
+
+ for ( nRow=0; nRow<=4; nRow++ )
+ {
+ Point topLeftPos ( 2, (nRowHeight * nRow) + 2 );
+ Size rectSize ( 0, nRowHeight );
+ USHORT nCell;
+ USHORT nFirst = nRow*5;
+ USHORT nLast = nFirst+4;
+
+ for ( nCell=nFirst; nCell<=nLast; nCell++ )
+ {
+ //--------------------
+ // Position berechnen:
+ //--------------------
+ if ( nCell == 0 )
+ {
+ // erste Zelle benoetigt keine Sonderbehandlung
+ }
+ else if ( (nCell <= 4) && (nCell != 0) )
+ {
+ // Zelle aus der ersten Zeile
+ topLeftPos = aCellArray[nCell-1].TopRight();
+ }
+ else
+ {
+ topLeftPos = aCellArray[nCell-5].BottomLeft();
+ }
+
+ //-------------------
+ // Groesse berechnen:
+ //-------------------
+ if ( (nCell == nFirst) || (nCell == nLast) )
+ rectSize.Width() = nLabelColWidth;
+ else
+ rectSize.Width() = nDataColWidth;
+
+ aCellArray[nCell] = Rectangle( topLeftPos, rectSize );
+ }
+ }
+ aPrvSize.Width() = aCellArray[24].BottomRight().X() + 3;
+ aPrvSize.Height() = aCellArray[24].BottomRight().Y() + 3;
+
+}
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::CalcLineMap()
+{
+ //----------------------------------------------------
+ // Initialisieren des Linenattributfeldes (7x7 Zellen)
+ // Ein Eintrag dieses Feldes enthaelt einen Verweis
+ // auf die Linienattribute des zugehoerigen Feldes.
+ // Dieses Feld "umschliesst" das Zellfeld mit einer
+ // Reihe "leerer" Zellen.
+ //----------------------------------------------------
+
+ SvxBoxItem aFrameItem;
+ BYTE nRow;
+
+ for ( nRow=0; nRow<=4; nRow++ )
+ {
+ USHORT nLine;
+ BYTE nCell;
+ BYTE nFirst = (nRow * 5);
+ BYTE nLast = nFirst+4;
+
+ for ( nCell=nFirst; nCell<=nLast; nCell++ )
+ {
+ nLine = nCell + 8 + ((nCell/5)*2);
+ aFrameItem = aCurData.GetBoxFmt( aFmtMap[nCell]).GetBox();
+ *(aLinePtrArray[nLine]) = aFrameItem;
+ }
+ }
+}
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::NotifyChange( const SwTableAutoFmt& rNewData )
+{
+ aCurData = rNewData;
+ bFitWidth = aCurData.IsJustify();//TRUE; //???
+ CalcCellArray( bFitWidth );
+ CalcLineMap();
+ DoPaint( Rectangle( Point(0,0), GetSizePixel() ) );
+}
+
+//------------------------------------------------------------------------
+
+
+void AutoFmtPreview::DoPaint( const Rectangle& rRect )
+{
+ Bitmap thePreview;
+ Point aCenterPos;
+ Size theWndSize = GetSizePixel();
+ Size thePrevSize;
+ Color oldColor;
+ Font aFont;
+
+ aFont = aVD.GetFont();
+ aFont.SetTransparent( TRUE );
+
+ aVD.SetFont ( aFont );
+ aVD.SetLineColor ( Color(COL_TRANSPARENT));
+ aVD.SetFillColor ( Color( COL_WHITE ) );
+ aVD.SetOutputSizePixel ( aPrvSize );
+
+ //--------------------------------
+ // Zellen auf virtual Device malen
+ // und Ergebnis sichern
+ //--------------------------------
+ PaintCells();
+ thePreview = aVD.GetBitmap( Point(0,0), aPrvSize );
+
+ //--------------------------------------
+ // Rahmen malen und Vorschau zentrieren:
+ // (virtual Device fuer Fensterausgabe)
+ //--------------------------------------
+ aVD.SetOutputSizePixel( theWndSize );
+ oldColor = aVD.GetLineColor();
+ aVD.SetLineColor( Color( COL_BLACK ) );
+ aVD.DrawRect( Rectangle( Point(0,0), theWndSize ) );
+ SetLineColor( oldColor );
+ aCenterPos = Point( (theWndSize.Width() - aPrvSize.Width() ) / 2,
+ (theWndSize.Height() - aPrvSize.Height()) / 2 );
+ aVD.DrawBitmap( aCenterPos, thePreview );
+
+ //----------------------------
+ // Ausgabe im Vorschaufenster:
+ //----------------------------
+ DrawBitmap( Point(0,0), aVD.GetBitmap( Point(0,0), theWndSize ) );
+
+}
+
+//------------------------------------------------------------------------
+
+void __EXPORT AutoFmtPreview::Paint( const Rectangle& rRect )
+{
+ DoPaint( rRect );
+}
+//------------------------------------------------------------------------
+
+
+BOOL lcl_HasPriority( const SvxBorderLine* pThis,
+ const SvxBorderLine* pOther )
+{
+
+ if (!pThis)
+ return FALSE;
+ if (!pOther)
+ return TRUE;
+
+ USHORT nThisSize = pThis->GetOutWidth() + pThis->GetDistance() + pThis->GetInWidth();
+ USHORT nOtherSize = pOther->GetOutWidth() + pOther->GetDistance() + pOther->GetInWidth();
+
+ if (nThisSize > nOtherSize)
+ return TRUE;
+ else if (nThisSize < nOtherSize)
+ return FALSE;
+ else
+ {
+ if ( pOther->GetInWidth() && !pThis->GetInWidth() )
+ return TRUE;
+ else if ( pThis->GetInWidth() && !pOther->GetInWidth() )
+ return FALSE;
+ else
+ {
+ return TRUE; //! ???
+ }
+ }
+}
+
+void lcl_SwLinkLine(const SwLineStruct& dLine,
+ const SwLineStruct& ltLine,
+ const SwLineStruct& lLine,
+ const SwLineStruct& lbLine,
+ const SwLineStruct& rtLine,
+ const SwLineStruct& rLine,
+ const SwLineStruct& rbLine,
+ short* dxArr)
+{
+ short nDx;
+ short nDxDx;
+ short nltW = ltLine.nLeft + ltLine.nMiddle + ltLine.nRight;
+ short nlbW = lbLine.nLeft + lbLine.nMiddle + lbLine.nRight;
+ short nrtW = rtLine.nLeft + rtLine.nMiddle + rtLine.nRight;
+ short nrbW = rbLine.nLeft + rbLine.nMiddle + rbLine.nRight;
+ if (dLine.nRight == 0) // einfache Linie
+ {
+ dxArr[1] = 0;
+ dxArr[3] = 0;
+
+ // Linker Teil
+ if ((lLine.nLeft != 0) && (lLine.nRight == 0)) // links einfache Linie
+ dxArr[0] = 0;
+ else
+ {
+ nDx = Max(nltW, nlbW) / 2;
+ nDxDx = (Max(nltW, nlbW) + 1) % 2;
+ if ((nDx == 0) || (ltLine.nRight == 0) || (lbLine.nRight == 0))
+ {
+ if (lLine.nLeft == 0)
+ dxArr[0] = nDxDx - nDx;
+ else
+ dxArr[0] = nDxDx + nDx;
+ }
+ else
+ dxArr[0] = nDxDx + nDx;
+ }
+
+ // Rechter Teil
+ if ((rLine.nLeft != 0) && (rLine.nRight == 0)) // rechts keine Linie
+ dxArr[2] = 0;
+ else
+ {
+ nDx = Max(nrtW, nrbW) / 2;
+ if ((nDx == 0) || (rtLine.nRight == 0) || (rbLine.nRight == 0))
+ {
+ if (rLine.nLeft == 0)
+ dxArr[2] = nDx;
+ else
+ dxArr[2] = -nDx;
+ }
+ else
+ dxArr[2] = -nDx;
+ }
+ }
+ else
+ {
+ // Linker oberer Teil
+ if ((nltW == 0) || (ltLine.nRight == 0)) // Links oben keine oder einfache Linie
+ {
+ nDx = (nlbW + 1) / 2;
+ nDxDx = (nlbW + 1) % 2;
+ if (nDx == 0)
+ dxArr[0] = nDxDx + nDx;
+ else
+ dxArr[0] = nDxDx - (nlbW / 2) + ltLine.nLeft;
+ }
+ else
+ {
+ nDx = (nltW + 1) / 2;
+ nDxDx = (nltW + 1) % 2;
+ if (nDx == 0)
+ dxArr[0] = nDxDx - nDx;
+ else
+ dxArr[0] = nDxDx + nDx - ltLine.nRight;
+ }
+ // Linker unterer Teil
+ if ((nlbW == 0) || (lbLine.nRight == 0)) // Links unten keine oder einfache Linie
+ {
+ nDx = (nltW + 1) / 2;
+ nDxDx = (nltW + 1) % 2;
+ if (nDx == 0)
+ dxArr[1] = nDxDx + nDx;
+ else
+ dxArr[1] = nDxDx - (nltW / 2) + lbLine.nLeft;
+ }
+ else
+ {
+ nDx = (nlbW + 1) / 2;
+ nDxDx = (nlbW + 1) % 2;
+ if (nDx == 0)
+ dxArr[1] = nDxDx - nDx;
+ else
+ dxArr[1] = nDxDx + nDx - lbLine.nRight;
+ }
+
+ // Rechter oberer Teil
+ if ((nrtW == 0) || (rtLine.nRight == 0)) // Rechts oben keine oder einfache Linie
+ {
+ nDx = (nrbW + 1) / 2;
+ if (nDx == 0)
+ dxArr[2] = -nDx;
+ else
+ dxArr[2] = (nrbW / 2) - rtLine.nLeft;
+ }
+ else
+ {
+ nDx = (nrtW + 1) / 2;
+ if (nDx == 0)
+ dxArr[2] = nDx;
+ else
+ dxArr[2] = -nDx + rtLine.nLeft;
+ }
+ // Rechter unterer Teil
+ if ((nrbW == 0) || (rbLine.nRight == 0)) // Rechts unten keine oder einfache Linie
+ {
+ nDx = (nrtW + 1) / 2;
+ if (nDx == 0)
+ dxArr[3] = -nDx;
+ else
+ dxArr[3] = (nrtW / 2) - rbLine.nLeft;
+ }
+ else
+ {
+ nDx = (nrbW + 1) / 2;
+ if (nDx == 0)
+ dxArr[3] = nDx;
+ else
+ dxArr[3] = -nDx + rbLine.nLeft;
+ }
+ }
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.46 2000/09/18 16:06:09 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.45 2000/06/08 09:48:50 os
+ using UCB
+
+ Revision 1.44 2000/05/16 17:31:14 jp
+ Changes for Unicode
+
+ Revision 1.43 2000/05/16 14:32:29 jp
+ Changes for Unicode
+
+ Revision 1.42 2000/04/19 11:22:12 os
+ UNICODE
+
+ Revision 1.41 2000/03/03 15:17:03 os
+ StarView remainders removed
+
+ Revision 1.40 2000/02/11 14:59:03 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.39 1998/09/29 08:15:38 NN
+ #53381# wenn noetig, Zahlformat in Sprache konvertieren
+
+
+ Rev 1.38 29 Sep 1998 10:15:38 NN
+ #53381# wenn noetig, Zahlformat in Sprache konvertieren
+
+ Rev 1.37 07 Jul 1998 13:20:36 JP
+ Bug #52273#: Anzeige des Nummernformates berichtigt
+
+ Rev 1.36 02 Jun 1998 10:37:40 JP
+ TabellenAutoFormat: Load/Save ohne Stream - erzeugen diesen selbst
+
+ Rev 1.35 29 May 1998 19:07:08 JP
+ aufgeraeumnt
+
+ Rev 1.34 14 May 1998 15:15:44 JP
+ neu: Numberformat vom Boxen unterstuetzen
+
+ Rev 1.33 12 May 1998 23:42:46 JP
+ neu: InserTable/TextToTable mit optionalen AutoFormat
+
+ Rev 1.32 29 Apr 1998 07:59:08 OS
+ sAutoTblFmtName allg. verfuegbar
+
+ Rev 1.31 24 Nov 1997 15:52:20 MA
+ includes
+
+ Rev 1.30 12 Sep 1997 10:40:16 OS
+ ITEMID_* definiert
+
+ Rev 1.29 05 Sep 1997 12:20:02 MH
+ chg: header
+
+ Rev 1.28 01 Sep 1997 13:17:26 OS
+ DLL-Umstellung
+
+ Rev 1.27 23 May 1997 10:10:02 OS
+ Ableitung von SfxModalDialog
+
+ Rev 1.26 02 May 1997 20:28:36 NF
+ includes...
+
+ Rev 1.25 23 Apr 1997 14:29:18 OS
+ ResId const
+
+ Rev 1.24 17 Apr 1997 23:22:06 JP
+ Umbenennen von AutoFormaten
+
+ Rev 1.23 14 Feb 1997 11:54:58 JP
+ Bug #35729#: sortiert einfuegen
+
+ Rev 1.22 09 Feb 1997 19:00:52 JP
+ Bug #35729#, #35740#: Formate sortiert, Ueberschreibmeldung
+
+ Rev 1.21 11 Nov 1996 11:20:40 MA
+ ResMgr
+
+ Rev 1.20 02 Oct 1996 19:06:06 MA
+ Umstellung Enable/Disable
+
+ Rev 1.19 23 Sep 1996 18:44:50 mk
+ includes fuer Unix raus
+
+ Rev 1.18 21 Mar 1996 14:08:18 OM
+ Umstellung 311
+
+ Rev 1.17 06 Feb 1996 15:21:28 JP
+ Link Umstellung 305
+
+ Rev 1.16 01 Dec 1995 12:30:02 sv
+ SwTableAutoFmt* -> SwTableAutoFmtPtr
+
+ Rev 1.15 24 Nov 1995 16:59:00 OM
+ PCH->PRECOMPILED
+
+ Rev 1.14 13 Nov 1995 10:59:22 OM
+ static entfernt
+
+ Rev 1.13 08 Nov 1995 13:34:36 OS
+ Change => Set
+
+ Rev 1.12 31 Oct 1995 18:41:20 OM
+ GetActive... entfernt
+
+ Rev 1.11 21 Aug 1995 08:56:16 mk
+ hintids.hxx und svxitems.hxx fuer UNX wieder included (MDA)
+
+ Rev 1.10 09 Aug 1995 21:57:10 ER
+ ! static data _vor_ seg_eofglobals
+
+ Rev 1.9 24 Jul 1995 11:21:00 JP
+ aufgeraeumt, CTOR/DTOR: Autoformattabelle ist nicht mehr static, sondern wird geladen und ggfs. gespeichert
+
+ Rev 1.8 20 Jul 1995 19:40:36 JP
+ Autoformatdatei umbenannt und wird jetzt im Config-Verzeichnis erwartet
+
+ Rev 1.7 27 Apr 1995 10:07:54 OS
+ Reihenfolge im Ctor
+
+ Rev 1.6 20 Apr 1995 17:02:22 OS
+ Delete-Message
+
+ Rev 1.5 19 Apr 1995 18:07:38 OS
+ BugFix Delete-Box
+
+ Rev 1.4 06 Mar 1995 06:05:28 JP
+ neu: mit Laden und Speichern
+
+ Rev 1.3 06 Mar 1995 05:00:18 JP
+ jetzt auch mit Umrandung
+
+ Rev 1.2 06 Mar 1995 04:08:30 JP
+ Optimierung
+
+ Rev 1.1 06 Mar 1995 00:54:48 OS
+ funktioniert fast
+
+ Rev 1.0 05 Mar 1995 19:34:02 OS
+ Initial revision.
+
+ Rev 1.2 04 Mar 1995 23:29:36 ER
+ add: hintids, svxitems
+
+ Rev 1.1 04 Mar 1995 20:52:58 OS
+ ein wenig weniger Kommentar
+
+ Rev 1.0 04 Mar 1995 15:00:08 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/source/ui/table/tautofmt.hrc b/sw/source/ui/table/tautofmt.hrc
new file mode 100644
index 000000000000..5c1f7d54d81c
--- /dev/null
+++ b/sw/source/ui/table/tautofmt.hrc
@@ -0,0 +1,113 @@
+/*************************************************************************
+ *
+ * $RCSfile: tautofmt.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef SW_TAUTOFMT_HRC
+#define SW_TAUTOFMT_HRC
+
+#include "table.hrc"
+// allgemein
+#define BTN_OK 100
+#define BTN_CANCEL 102
+#define BTN_HELP 103
+#define BTN_MORE 104
+#define BTN_ADD 105
+#define BTN_REMOVE 106
+#define BTN_RENAME 107
+#define FT_LABEL 110
+#define GB_FRAME 111
+#define STR_BTN_CLOSE 200
+
+// Autoformat
+#define LB_FORMAT 1
+#define FT_FORMAT 9
+#define GB_PREVIEW 10
+#define WND_PREVIEW 19
+#define BTN_NUMFORMAT 20
+#define BTN_BORDER 21
+#define BTN_FONT 23
+#define BTN_PATTERN 24
+#define BTN_ALIGNMENT 25
+//#define BTN_ADJUST 26
+#define GB_FORMAT 29
+#define STR_ADD_TITLE 100
+#define STR_ADD_LABEL 101
+#define STR_DEL_TITLE 102
+#define STR_DEL_MSG 103
+#define STR_INVALID_AFNAME 104
+#define STR_RENAME_TITLE 105
+ // Autoformat-Preview:
+#define STR_JAN 121
+#define STR_FEB 122
+#define STR_MAR 123
+#define STR_NORTH 124
+#define STR_MID 125
+#define STR_SOUTH 126
+#define STR_SUM 127
+
+// Gruppierung setzen/aufheben:
+#define BTN_GROUP_COLS 1
+#define BTN_GROUP_ROWS 3
+#define STR_GROUP 1
+#define STR_UNGROUP 2
+
+
+#define ED_INPUT 1
+
+#endif
diff --git a/sw/source/ui/table/tautofmt.src b/sw/source/ui/table/tautofmt.src
new file mode 100644
index 000000000000..9fad4591e6b6
--- /dev/null
+++ b/sw/source/ui/table/tautofmt.src
@@ -0,0 +1,875 @@
+/*************************************************************************
+ *
+ * $RCSfile: tautofmt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "tautofmt.hrc"
+#include "helpid.h"
+ModalDialog DLG_AUTOFMT_TABLE
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ HelpID = HID_AUTOFMT_TABLE ;
+ Size = MAP_APPFONT ( 312 , 120 ) ;
+ Text = "Autoformat" ;
+ Text [ ENGLISH ] = "Autoformat" ;
+ Text [ norwegian ] = "Autoformat" ;
+ Text [ italian ] = "Formattazione automatica" ;
+ Text [ portuguese_brazilian ] = "Formatação Automática" ;
+ Text [ portuguese ] = "AutoFormato" ;
+ Text [ finnish ] = "Automaattimuoto" ;
+ Text [ danish ] = "AutoFormat" ;
+ Text [ french ] = "AutoFormat" ;
+ Text [ swedish ] = "AutoFormat" ;
+ Text [ dutch ] = "AutoOpmaak" ;
+ Text [ spanish ] = "AutoFormato" ;
+ Text [ english_us ] = "AutoFormat" ;
+ Moveable = TRUE ;
+ FixedText FT_FORMAT
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Format" ;
+ Text [ ENGLISH ] = "~Format" ;
+ Text [ norwegian ] = "~Format" ;
+ Text [ italian ] = "Formato" ;
+ Text [ portuguese_brazilian ] = "~Formato" ;
+ Text [ portuguese ] = "Fo~rmatar" ;
+ Text [ finnish ] = "~Muoto" ;
+ Text [ danish ] = "~Format" ;
+ Text [ french ] = "Forma~t" ;
+ Text [ swedish ] = "Cell~format" ;
+ Text [ dutch ] = "~Formaat" ;
+ Text [ spanish ] = "~Formato" ;
+ Text [ english_us ] = "F~ormat" ;
+ Text[ chinese_simplified ] = "¸ñʽ(~O)";
+ Text[ russian ] = "Ôîð~ìàò";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "‘Ž®(~O)";
+ Text[ chinese_traditional ] = "®æ¦¡(~O)";
+ Text[ arabic ] = "ÊäÓíÞ";
+ Text[ greek ] = "Ìïñ~öÞ";
+ Text[ korean ] = "¼­½Ä(~O)";
+ Text[ turkish ] = "~Format";
+ Text[ language_user1 ] = " ";
+ };
+ ListBox LB_FORMAT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 16 ) ;
+ Size = MAP_APPFONT ( 65 , 98 ) ;
+ TabStop = TRUE ;
+ };
+ Window WND_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 83 , 23 ) ;
+ Size = MAP_APPFONT ( 161 , 86 ) ;
+ };
+ GroupBox GB_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 77 , 12 ) ;
+ Size = MAP_APPFONT ( 172 , 102 ) ;
+ Text = "Vorschau" ;
+ Text [ ENGLISH ] = "Preview" ;
+ Text [ norwegian ] = "Preview" ;
+ Text [ italian ] = "Anteprima" ;
+ Text [ portuguese_brazilian ] = "Examinar" ;
+ Text [ portuguese ] = "Previsualizar" ;
+ Text [ finnish ] = "Esikatselu" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ french ] = "Aperçu" ;
+ Text [ swedish ] = "Förhandsvisning" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ spanish ] = "Previsualización" ;
+ Text [ english_us ] = "Preview" ;
+ Text[ chinese_simplified ] = "Ô¤ÊÓ";
+ Text[ russian ] = "Ïðîñìîòð";
+ Text[ polish ] = "Podgl¹d";
+ Text[ japanese ] = "ÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "¹wÄý";
+ Text[ arabic ] = "ÇáãÚÇíäÉ";
+ Text[ greek ] = "Ðñïåðéóêüðçóç";
+ Text[ korean ] = "¹Ì¸®º¸±â";
+ Text[ turkish ] = "Önizleme";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox BTN_NUMFORMAT
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 131 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Zahlenf~ormat" ;
+ Text [ ENGLISH ] = "~Numberformat" ;
+ Text [ norwegian ] = "~Numberformat" ;
+ Text [ italian ] = "Formato ~numero" ;
+ Text [ portuguese_brazilian ] = "~Formatodonúmero" ;
+ Text [ portuguese ] = "~Formato dos números" ;
+ Text [ finnish ] = "~Numeromuoto" ;
+ Text [ danish ] = "Talformat" ;
+ Text [ french ] = "~Format numérique" ;
+ Text [ swedish ] = "Talf~ormat" ;
+ Text [ dutch ] = "~Getalnotatie" ;
+ Text [ spanish ] = "Formato nu~mérico" ;
+ Text [ english_us ] = "~Number format" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "Êý×Ö¸ñʽ(~N)";
+ Text[ russian ] = "×èñëîâîé ôîðìàò";
+ Text[ polish ] = "Format liczb";
+ Text[ japanese ] = "”‚Ì‘Ž®(~N)";
+ Text[ chinese_traditional ] = "¼Æ¦r®æ¦¡(~N)";
+ Text[ arabic ] = "ÊäÓíÞ ÇáÃÑÞÇã";
+ Text[ greek ] = "ÌïñöÞ áñéèìþí";
+ Text[ korean ] = "¹øÈ£ ¼­½Ä(~N)";
+ Text[ turkish ] = "Sayý f~ormatý";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox BTN_BORDER
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 12 , 147 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Umrandung" ;
+ Text [ ENGLISH ] = "~Border" ;
+ Text [ norwegian ] = "~Border" ;
+ Text [ italian ] = "~Bordo" ;
+ Text [ portuguese_brazilian ] = "~Borda" ;
+ Text [ portuguese ] = "~Contornos" ;
+ Text [ finnish ] = "~Reunaviiva" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ french ] = "~Bordure" ;
+ Text [ swedish ] = "~Inramning" ;
+ Text [ dutch ] = "~Omranding" ;
+ Text [ spanish ] = "~Borde" ;
+ Text [ english_us ] = "~Borders" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "±ß¿ò(~B)";
+ Text[ russian ] = "Îáðàìëåíèå";
+ Text[ polish ] = "Obramowanie";
+ Text[ japanese ] = "ŠO˜g(~B)";
+ Text[ chinese_traditional ] = "Ãä®Ø(~B)";
+ Text[ arabic ] = "ÇáÍÏæÏ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "¿Ü°û¼±(~B)";
+ Text[ turkish ] = "~Kenarlýk";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox BTN_FONT
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 85 , 131 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "Schriftar~t" ;
+ Text [ ENGLISH ] = "F~ont" ;
+ Text [ norwegian ] = "F~ont" ;
+ Text [ italian ] = "~Tipo di carattere" ;
+ Text [ portuguese_brazilian ] = "F~onte" ;
+ Text [ portuguese ] = "~Tipo de letra" ;
+ Text [ finnish ] = "~Fontti" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "~Police" ;
+ Text [ swedish ] = "~Teckensnitt" ;
+ Text [ dutch ] = "~Lettertype" ;
+ Text [ spanish ] = "Fuen~te" ;
+ Text [ english_us ] = "F~ont" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "×ÖÌå(~O)";
+ Text[ russian ] = "Øðèôò";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "Ì«ÝÄ‚ÌŽí—Þ(~F)";
+ Text[ chinese_traditional ] = "¦r«¬(~F)";
+ Text[ arabic ] = "äæÚ ÇáÎØ";
+ Text[ greek ] = "ÃñáììáôïóåéñÜ";
+ Text[ korean ] = "±Û²Ã(~O)";
+ Text[ turkish ] = "Yazýti~pi";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox BTN_PATTERN
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 85 , 147 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Muster" ;
+ Text [ ENGLISH ] = "~Pattern" ;
+ Text [ norwegian ] = "~Pattern" ;
+ Text [ italian ] = "~Modello" ;
+ Text [ portuguese_brazilian ] = "~Estampa" ;
+ Text [ portuguese ] = "~Padrão" ;
+ Text [ finnish ] = "~Kuvio" ;
+ Text [ danish ] = "Mønster" ;
+ Text [ french ] = "~Motif" ;
+ Text [ swedish ] = "~Mönster" ;
+ Text [ dutch ] = "~Patroon" ;
+ Text [ spanish ] = "Mo~delo" ;
+ Text [ english_us ] = "~Pattern" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ͼ°¸(~P)";
+ Text[ russian ] = "Îáðàçåö";
+ Text[ polish ] = "De~señ";
+ Text[ japanese ] = "ÊßÀ°Ý(~P)";
+ Text[ chinese_traditional ] = "¹Ï®×(~P)";
+ Text[ arabic ] = "äãæÐÌ";
+ Text[ greek ] = "Ìïôßâï";
+ Text[ korean ] = "¹«´Ì(~P)";
+ Text[ turkish ] = "~Desen";
+ Text[ language_user1 ] = " ";
+ };
+ CheckBox BTN_ALIGNMENT
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 150 , 131 ) ;
+ Size = MAP_APPFONT ( 60 , 10 ) ;
+ Text = "~Ausrichtung" ;
+ Text [ ENGLISH ] = "Orien~tation" ;
+ Text [ norwegian ] = "Orien~tation" ;
+ Text [ italian ] = "~Allineamento" ;
+ Text [ portuguese_brazilian ] = "Orien~tação" ;
+ Text [ portuguese ] = "~Alinhamento" ;
+ Text [ finnish ] = "S~uunta" ;
+ Text [ danish ] = "Justering" ;
+ Text [ french ] = "~Alignement" ;
+ Text [ swedish ] = "~Justering" ;
+ Text [ dutch ] = "~Uitlijning" ;
+ Text [ spanish ] = "Orienta~ción" ;
+ Text [ english_us ] = "Alignmen~t" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "¶ÔÆë(~A)";
+ Text[ russian ] = "Âûðàâíèâàíèå";
+ Text[ polish ] = "Wyrównanie";
+ Text[ japanese ] = "”z’u(~A)";
+ Text[ chinese_traditional ] = "¹ï»ô(~A)";
+ Text[ arabic ] = "ÇáãÍÇÐÇÉ";
+ Text[ greek ] = "~Óôïß÷éóç";
+ Text[ korean ] = "¸ÂÃã(~T)";
+ Text[ turkish ] = "~Hizalama";
+ Text[ language_user1 ] = " ";
+ };
+ GroupBox GB_FORMAT
+ {
+ Hide = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 120 ) ;
+ Size = MAP_APPFONT ( 243 , 43 ) ;
+ Text = "Formatierung" ;
+ Text [ ENGLISH ] = "For~mats" ;
+ Text [ norwegian ] = "For~mats" ;
+ Text [ italian ] = "Formattazione" ;
+ Text [ portuguese_brazilian ] = "Formatos" ;
+ Text [ portuguese ] = "Formatar" ;
+ Text [ finnish ] = "Mu~odot" ;
+ Text [ danish ] = "Formatering" ;
+ Text [ french ] = "Mise en page" ;
+ Text [ swedish ] = "Formatering" ;
+ Text [ dutch ] = "Opmaak" ;
+ Text [ spanish ] = "Formato" ;
+ Text [ english_us ] = "Formatting" ;
+ Text[ chinese_simplified ] = "¸ñʽ»¯";
+ Text[ russian ] = "Ôîðìàòèðîâàíèå";
+ Text[ polish ] = "Formatowanie";
+ Text[ japanese ] = "‘Ž®Ý’è";
+ Text[ chinese_traditional ] = "®æ¦¡¤Æ";
+ Text[ arabic ] = "ÊäÓíÞ";
+ Text[ greek ] = "Ìïñöïðïßçóç";
+ Text[ korean ] = "¼­½Ä";
+ Text[ turkish ] = "Formatlama";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton BTN_OK
+ {
+ Pos = MAP_APPFONT ( 255 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 255 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ MoreButton BTN_MORE
+ {
+ Pos = MAP_APPFONT ( 255 , 101 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Zusätze" ;
+ Text [ ENGLISH ] = "~More" ;
+ Text [ norwegian ] = "~Mer" ;
+ Text [ italian ] = "E~xtra" ;
+ Text [ portuguese_brazilian ] = "~Mais" ;
+ Text [ portuguese ] = "~Opções" ;
+ Text [ finnish ] = "~Enemmän" ;
+ Text [ danish ] = "Flere" ;
+ Text [ french ] = "~Options" ;
+ Text [ swedish ] = "~Fler" ;
+ Text [ dutch ] = "~Overige" ;
+ Text [ spanish ] = "~Opciones" ;
+ Text [ english_us ] = "~More" ;
+ TabStop = TRUE ;
+ MapUnit = MAP_APPFONT ;
+ Delta = 48 ;
+ Text[ chinese_simplified ] = "ÆäËû(~M)";
+ Text[ russian ] = "Áîëüøå";
+ Text[ polish ] = "Dod~atki";
+ Text[ japanese ] = "µÌß¼®Ý(~M)";
+ Text[ chinese_traditional ] = "¨ä¥L(~M)";
+ Text[ arabic ] = "ÅÖÇÝÇÊ";
+ Text[ greek ] = "Ðñüóèåôá";
+ Text[ korean ] = "µ¡ºÙÀÓ(~M)";
+ Text[ turkish ] = "Ay~rýntýlar";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton BTN_ADD
+ {
+ Pos = MAP_APPFONT ( 255 , 64 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "Hi~nzufügen" ;
+ Text [ ENGLISH ] = "~Add" ;
+ Text [ norwegian ] = "Leg~g til" ;
+ Text [ italian ] = "~Aggiungi" ;
+ Text [ portuguese_brazilian ] = "~Acrescentar" ;
+ Text [ portuguese ] = "~Adicionar" ;
+ Text [ finnish ] = "~Lisää" ;
+ Text [ danish ] = "Tilføj" ;
+ Text [ french ] = "~Ajouter" ;
+ Text [ swedish ] = "Lä~gg till" ;
+ Text [ dutch ] = "~Toevoegen" ;
+ Text [ spanish ] = "~Añadir" ;
+ Text [ english_us ] = "~Add" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "²åÈë(~A)";
+ Text[ russian ] = "Äîáàâèòü";
+ Text[ polish ] = "~Dodaj";
+ Text[ japanese ] = "‘}“ü(~A)";
+ Text[ chinese_traditional ] = "¥[¤J(~A)";
+ Text[ arabic ] = "ÅÖÇÝÉ";
+ Text[ greek ] = "ÐñïóèÞêç";
+ Text[ korean ] = "Ãß°¡(~A)";
+ Text[ turkish ] = "~Ekle";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton BTN_REMOVE
+ {
+ Pos = MAP_APPFONT ( 255 , 81 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "~Löschen" ;
+ Text [ ENGLISH ] = "Remo~ve" ;
+ Text [ norwegian ] = "Remo~ve" ;
+ Text [ italian ] = "~Elimina" ;
+ Text [ portuguese_brazilian ] = "Remo~ver" ;
+ Text [ portuguese ] = "E~liminar" ;
+ Text [ finnish ] = "~Poista" ;
+ Text [ danish ] = "Slet" ;
+ Text [ french ] = "~Supprimer" ;
+ Text [ swedish ] = "~Radera" ;
+ Text [ dutch ] = "~Wissen" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ english_us ] = "~Delete" ;
+ TabStop = TRUE ;
+ Text[ chinese_simplified ] = "ɾ³ý(~D)";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ(~D)";
+ Text[ chinese_traditional ] = "§R°£(~D)";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦(~D)";
+ Text[ turkish ] = "~Sil";
+ Text[ language_user1 ] = " ";
+ };
+ PushButton BTN_RENAME
+ {
+ Pos = MAP_APPFONT ( 255 , 123 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text = "Um~benennen" ;
+ Text [ ENGLISH ] = "Ren~ame" ;
+ TabStop = TRUE ;
+ Text [ portuguese ] = "Mudar ~nome" ;
+ Text [ english_us ] = "~Rename" ;
+ Text [ portuguese_brazilian ] = "Um~benennen" ;
+ Text [ swedish ] = "B~yt namn" ;
+ Text [ danish ] = "Omdøb" ;
+ Text [ italian ] = "~Rinomina" ;
+ Text [ spanish ] = "Cambiar ~nombre" ;
+ Text [ french ] = "Re~nommer" ;
+ Text [ dutch ] = "~Naam wijzigen" ;
+ Text[ chinese_simplified ] = "ÖØÃüÃû(~A)";
+ Text[ russian ] = "Ïåðåèìåíîâàòü";
+ Text[ polish ] = "Zmieñ nazwê";
+ Text[ japanese ] = "–¼‘O‚Ì•ÏX(~A)";
+ Text[ chinese_traditional ] = "­«·s©R¦W(~A)";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÓãíÉ";
+ Text[ greek ] = "Ìåôïíïìáóßá";
+ Text[ korean ] = "À̸§ ¹Ù²Ù±â(~R)";
+ Text[ turkish ] = "Yeniden~adlandýr";
+ Text[ language_user1 ] = " ";
+ };
+ HelpButton BTN_HELP
+ {
+ Pos = MAP_APPFONT ( 255 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ String STR_ADD_TITLE
+ {
+ Text = "Autoformat hinzufügen" ;
+ Text [ ENGLISH ] = "Add Autoformat" ;
+ Text [ norwegian ] = "Add Autoformat" ;
+ Text [ italian ] = "Aggiungi formattazione automatica" ;
+ Text [ portuguese_brazilian ] = "Acrescentar Formato automático" ;
+ Text [ portuguese ] = "Adicionar AutoFormato" ;
+ Text [ finnish ] = "Lisää automaattimuoto" ;
+ Text [ danish ] = "Tilføj AutoFormat" ;
+ Text [ french ] = "Ajouter AutoFormat" ;
+ Text [ swedish ] = "Lägg till AutoFormat" ;
+ Text [ dutch ] = "AutoOpmaak toepassen" ;
+ Text [ spanish ] = "Añadir AutoFormato" ;
+ Text [ english_us ] = "Add AutoFormat" ;
+ Text[ chinese_simplified ] = "ÐÂÔö×Ô¶¯¸ñʽ";
+ Text[ russian ] = "Âñòàâèòü àâòîôîðìàò";
+ Text[ polish ] = "Dodaj autoformatowanie";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä‚̒ljÁ";
+ Text[ chinese_traditional ] = "·s¼W¦Û°Ê®æ¦¡";
+ Text[ arabic ] = "ÅÖÇÝÉ ÇáÊäÓíÞ ÇáÊáÞÇÆí";
+ Text[ greek ] = "ÐñïóèÞêç ÁõôïÌïñöïðïßçóçò";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä Ãß°¡";
+ Text[ turkish ] = "Otomatik formatý ekle";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_ADD_LABEL
+ {
+ Text = "Name" ;
+ Text [ ENGLISH ] = "Name" ;
+ Text [ norwegian ] = "Navn" ;
+ Text [ italian ] = "Nome" ;
+ Text [ portuguese_brazilian ] = "Nomear" ;
+ Text [ portuguese ] = "Nome" ;
+ Text [ finnish ] = "Nimi" ;
+ Text [ danish ] = "Navn" ;
+ Text [ french ] = "Nom" ;
+ Text [ swedish ] = "Namn" ;
+ Text [ dutch ] = "Naam" ;
+ Text [ spanish ] = "Nombre" ;
+ Text [ english_us ] = "Name" ;
+ Text[ chinese_simplified ] = "Ãû³Æ";
+ Text[ russian ] = "Èìÿ";
+ Text[ polish ] = "Nazwa";
+ Text[ japanese ] = "–¼‘O";
+ Text[ chinese_traditional ] = "¦WºÙ";
+ Text[ arabic ] = "ÇáÇÓã";
+ Text[ greek ] = "¼íïìá";
+ Text[ korean ] = "À̸§";
+ Text[ turkish ] = "Ad";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_DEL_TITLE
+ {
+ Text = "Autoformat löschen" ;
+ Text [ ENGLISH ] = "Delete Autoformat" ;
+ Text [ norwegian ] = "Delete Autoformat" ;
+ Text [ italian ] = "Cancella formattazione automatica" ;
+ Text [ portuguese_brazilian ] = "Apagar Formato Automático" ;
+ Text [ portuguese ] = "Eliminar AutoFormato" ;
+ Text [ finnish ] = "Poista automaattimuoto" ;
+ Text [ danish ] = "Slet AutoFormat" ;
+ Text [ french ] = "Supprimer l'AutoFormat" ;
+ Text [ swedish ] = "Radera AutoFormat" ;
+ Text [ dutch ] = "AutoOpmaak wissen" ;
+ Text [ spanish ] = "Eliminar AutoFormato" ;
+ Text [ english_us ] = "Delete AutoFormat" ;
+ Text[ chinese_simplified ] = "ɾ³ý×Ô¶¯¸ñʽ";
+ Text[ russian ] = "Óäàëèòü àâòîôîðìàò";
+ Text[ polish ] = "Usuñ autoformatowanie";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä‚Ìíœ";
+ Text[ chinese_traditional ] = "§R°£¦Û°Ê®æ¦¡";
+ Text[ arabic ] = "ÍÐÝ ÇáÊäÓíÞ ÇáÊáÞÇÆí";
+ Text[ greek ] = "ÄéáãñáöÞ ÁõôïÌïñöïðïßçóçò";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä »èÁ¦";
+ Text[ turkish ] = "Otomatik formatý sil";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_DEL_MSG
+ {
+ Text = "Folgendes Autoformat wird gelöscht:" ;
+ Text [ ENGLISH ] = "This autoformat will be deleted:" ;
+ Text [ norwegian ] = "Dette Autoformat vil bli slettet:" ;
+ Text [ italian ] = "Questa formattazione automatica verrà cancellata:" ;
+ Text [ portuguese_brazilian ] = "Esta formatação Automática ser apagada:" ;
+ Text [ portuguese ] = "Será eliminado o seguinte AutoFormato:" ;
+ Text [ finnish ] = "Poistettava automaattimuoto:" ;
+ Text [ danish ] = "Følgende AutoFormat slettes:" ;
+ Text [ french ] = "L'AutoFormat suivant va être supprimé :" ;
+ Text [ swedish ] = "Följande AutoFormat raderas:" ;
+ Text [ dutch ] = "Het volgende AutoOpmaak-item wordt gewist." ;
+ Text [ spanish ] = "El siguiente AutoFormato se eliminará:" ;
+ Text [ english_us ] = "The following AutoFormat entry will be deleted:" ;
+ Text[ chinese_simplified ] = "ɾ³ýÒÔϵÄ×Ô¶¯¸ñʽ£º";
+ Text[ russian ] = "Ñëåäóþùèé àâòîôîðìàò áóäåò óäàëåí:";
+ Text[ polish ] = "Nastêpuj¹ce autoformatowanie bêdzie usuniête:";
+ Text[ japanese ] = "ˆÈ‰º‚̵°ÄÌ«°Ï¯Ä‚Í휂³‚ê‚Ü‚·:";
+ Text[ chinese_traditional ] = "§R°£¥H¤Uªº¦Û°Ê®æ¦¡¡G";
+ Text[ arabic ] = "ÓæÝ íÊã ÍÐÝ ÇáÊäÓíÞ ÇáÊáÞÇÆí ÇáÊÇáí:";
+ Text[ greek ] = "Ç åîÞò Áõôïìïñöïðïßçóç èá äéáãñáöåß:";
+ Text[ korean ] = "´ÙÀ½ÀÇ ÀÚµ¿ ¼­½Ä Ç׸ñÀº»èÁ¦µÉ °ÍÀÔ´Ï´Ù :";
+ Text[ turkish ] = "Aþaðýdaki otomatik format silinecek:";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_RENAME_TITLE
+ {
+ Text = "Autoformat umbenennen" ;
+ Text [ ENGLISH ] = "Rename Autoformat" ;
+ Text [ english_us ] = "Rename AutoFormat" ;
+ Text [ portuguese ] = "Mudar nome do AutoFormato" ;
+ Text [ portuguese_brazilian ] = "Autoformat umbenennen" ;
+ Text [ swedish ] = "Byt namn på AutoFormat" ;
+ Text [ danish ] = "Omdøb AutoFormat" ;
+ Text [ italian ] = "Rinomina formattazione automatica" ;
+ Text [ spanish ] = "Cambiar nombre del AutoFormato" ;
+ Text [ french ] = "Renommer l'AutoFormat" ;
+ Text [ dutch ] = "AutoOpmaak nieuwe naam geven" ;
+ Text[ chinese_simplified ] = "ÖØÃüÃû×Ô¶¯¸ñʽ";
+ Text[ russian ] = "Ïåðåèìåíîâàòü àâòîôîðìàò";
+ Text[ polish ] = "Zmieñ nazwê autoformatowania";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä‚Ì–¼‘O‚Ì•ÏX";
+ Text[ chinese_traditional ] = "­«·s©R¦W¦Û°Ê®æ¦¡";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÓãíÉ ÇáÊäÓíÞ ÇáÊáÞÇÆí";
+ Text[ greek ] = "Ìåôïíïìáóßá ÁõôïÌïñöïðïßçóç";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä À̸§ ¹Ù²Ù±â";
+ Text[ turkish ] = "Otomatik formatý yeniden adlandýr";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_BTN_CLOSE
+ {
+ Text = "~Schließen" ;
+ Text [ ENGLISH ] = "~Close" ;
+ Text [ norwegian ] = "~Lukk" ;
+ Text [ italian ] = "Chiudi" ;
+ Text [ portuguese_brazilian ] = "~Fechar" ;
+ Text [ portuguese ] = "~Fechar" ;
+ Text [ finnish ] = "~Sulje" ;
+ Text [ danish ] = "Luk" ;
+ Text [ french ] = "~Fermer" ;
+ Text [ swedish ] = "~Stäng" ;
+ Text [ dutch ] = "~Sluiten" ;
+ Text [ spanish ] = "~Cerrar" ;
+ Text [ english_us ] = "~Close" ;
+ Text[ chinese_simplified ] = "¹Ø±Õ(~C)";
+ Text[ russian ] = "Çàêðûòü";
+ Text[ polish ] = "Zamknij";
+ Text[ japanese ] = "•Â‚¶‚é(~C)";
+ Text[ chinese_traditional ] = "Ãö³¬(~C)";
+ Text[ arabic ] = "ÅÛáÇÞ";
+ Text[ greek ] = "Êëåßóéìï";
+ Text[ korean ] = "´Ý±â(~C)";
+ Text[ turkish ] = "~Kapat";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_JAN
+ {
+ Text = "Jan" ;
+ Text [ ENGLISH ] = "Jan" ;
+ Text [ norwegian ] = "Jan" ;
+ Text [ italian ] = "gen" ;
+ Text [ portuguese_brazilian ] = "Jan" ;
+ Text [ portuguese ] = "Jan" ;
+ Text [ finnish ] = "Tam" ;
+ Text [ danish ] = "Jan" ;
+ Text [ french ] = "Janv." ;
+ Text [ swedish ] = "Jan" ;
+ Text [ dutch ] = "Jan" ;
+ Text [ spanish ] = "Ene" ;
+ Text [ english_us ] = "Jan" ;
+ Text[ chinese_simplified ] = "Ò»ÔÂ";
+ Text[ russian ] = "ßíâ";
+ Text[ polish ] = "Styczeñ";
+ Text[ japanese ] = "1ŒŽ";
+ Text[ chinese_traditional ] = "¤@¤ë";
+ Text[ arabic ] = "íäÇíÑ";
+ Text[ greek ] = "Éáí";
+ Text[ korean ] = "1¿ù";
+ Text[ turkish ] = "Ock";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_FEB
+ {
+ Text = "Feb" ;
+ Text [ ENGLISH ] = "Feb" ;
+ Text [ norwegian ] = "Feb" ;
+ Text [ italian ] = "feb" ;
+ Text [ portuguese_brazilian ] = "Fev" ;
+ Text [ portuguese ] = "Fev" ;
+ Text [ finnish ] = "Hel" ;
+ Text [ danish ] = "Feb" ;
+ Text [ french ] = "Févr." ;
+ Text [ swedish ] = "Feb" ;
+ Text [ dutch ] = "Feb" ;
+ Text [ spanish ] = "Feb" ;
+ Text [ english_us ] = "Feb" ;
+ Text[ chinese_simplified ] = "¶þÔÂ";
+ Text[ russian ] = "Ôåâ";
+ Text[ polish ] = "Luty";
+ Text[ japanese ] = "2ŒŽ";
+ Text[ chinese_traditional ] = "¤G¤ë";
+ Text[ arabic ] = "ÝÈÑÇíÑ";
+ Text[ greek ] = "Öåâ";
+ Text[ korean ] = "2¿ù";
+ Text[ turkish ] = "Þub";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_MAR
+ {
+ Text = "Mär" ;
+ Text [ ENGLISH ] = "Mar" ;
+ Text [ norwegian ] = "Mar" ;
+ Text [ italian ] = "mar" ;
+ Text [ portuguese_brazilian ] = "Mar" ;
+ Text [ portuguese ] = "Mar" ;
+ Text [ finnish ] = "Maa" ;
+ Text [ danish ] = "Mar" ;
+ Text [ french ] = "Mars" ;
+ Text [ swedish ] = "Mar" ;
+ Text [ dutch ] = "Mrt" ;
+ Text [ spanish ] = "Mar" ;
+ Text [ english_us ] = "Mar" ;
+ Text[ chinese_simplified ] = "ÈýÔÂ";
+ Text[ russian ] = "Ìàð";
+ Text[ polish ] = "Marzec";
+ Text[ japanese ] = "3ŒŽ";
+ Text[ chinese_traditional ] = "¤T¤ë";
+ Text[ arabic ] = "ãÇÑÓ";
+ Text[ greek ] = "Máñ";
+ Text[ korean ] = "3¿ù";
+ Text[ turkish ] = "Mar";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_NORTH
+ {
+ Text = "Nord" ;
+ Text [ ENGLISH ] = "North" ;
+ Text [ norwegian ] = "North" ;
+ Text [ italian ] = "nord" ;
+ Text [ portuguese_brazilian ] = "Norte" ;
+ Text [ portuguese ] = "Norte" ;
+ Text [ finnish ] = "Pohjoinen" ;
+ Text [ danish ] = "Nord" ;
+ Text [ french ] = "Nord" ;
+ Text [ swedish ] = "Norr" ;
+ Text [ dutch ] = "Noorden" ;
+ Text [ spanish ] = "Norte" ;
+ Text [ english_us ] = "North" ;
+ Text[ chinese_simplified ] = "±±";
+ Text[ russian ] = "Ñåâåð";
+ Text[ polish ] = "Pó³noc";
+ Text[ japanese ] = "–k";
+ Text[ chinese_traditional ] = "¥_";
+ Text[ arabic ] = "ÇáÔãÇá";
+ Text[ greek ] = "ÂïññÜò";
+ Text[ korean ] = "ºÏÂÊ";
+ Text[ turkish ] = "Kuzey";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_MID
+ {
+ Text = "Mitte" ;
+ Text [ ENGLISH ] = "Mid" ;
+ Text [ norwegian ] = "Mid" ;
+ Text [ italian ] = "centro" ;
+ Text [ portuguese_brazilian ] = "Centro" ;
+ Text [ portuguese ] = "Centro" ;
+ Text [ finnish ] = "Keski" ;
+ Text [ danish ] = "Midte" ;
+ Text [ french ] = "Milieu" ;
+ Text [ swedish ] = "Mitten" ;
+ Text [ dutch ] = "Midden" ;
+ Text [ spanish ] = "Centro" ;
+ Text [ english_us ] = "Mid" ;
+ Text[ chinese_simplified ] = "ÖÐ";
+ Text[ russian ] = "Ñåðåäèíà";
+ Text[ polish ] = "Œrodek";
+ Text[ japanese ] = "’†‰›";
+ Text[ chinese_traditional ] = "¤¤";
+ Text[ arabic ] = "ÇáæÓØ";
+ Text[ greek ] = "ÊÝíôñï";
+ Text[ korean ] = "°¡¿îµ¥";
+ Text[ turkish ] = "Orta";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_SOUTH
+ {
+ Text = "Süd" ;
+ Text [ ENGLISH ] = "South" ;
+ Text [ norwegian ] = "South" ;
+ Text [ italian ] = "Sud" ;
+ Text [ portuguese_brazilian ] = "Sul" ;
+ Text [ portuguese ] = "Sul" ;
+ Text [ finnish ] = "Etelä" ;
+ Text [ danish ] = "Syd" ;
+ Text [ french ] = "Sud" ;
+ Text [ swedish ] = "Söder" ;
+ Text [ dutch ] = "Zuiden" ;
+ Text [ spanish ] = "Sur" ;
+ Text [ english_us ] = "South" ;
+ Text[ chinese_simplified ] = "ÄÏ";
+ Text[ russian ] = "Þã";
+ Text[ polish ] = "Po³udnie";
+ Text[ japanese ] = "“ì";
+ Text[ chinese_traditional ] = "«n";
+ Text[ arabic ] = "ÇáÌäæÈ";
+ Text[ greek ] = "Íüôïò";
+ Text[ korean ] = "³²ÂÊ";
+ Text[ turkish ] = "Güney";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_SUM
+ {
+ Text = "Summe" ;
+ Text [ ENGLISH ] = "Sum" ;
+ Text [ norwegian ] = "Sum" ;
+ Text [ italian ] = "somma" ;
+ Text [ portuguese_brazilian ] = "Soma" ;
+ Text [ portuguese ] = "Soma" ;
+ Text [ finnish ] = "Summa" ;
+ Text [ danish ] = "Sum" ;
+ Text [ french ] = "Somme" ;
+ Text [ swedish ] = "Summa" ;
+ Text [ dutch ] = "Totaal" ;
+ Text [ spanish ] = "Suma" ;
+ Text [ english_us ] = "Sum" ;
+ Text[ chinese_simplified ] = "×ܼÆ";
+ Text[ russian ] = "Ñóììà";
+ Text[ polish ] = "Suma";
+ Text[ japanese ] = "‡Œv";
+ Text[ chinese_traditional ] = "¤p­p";
+ Text[ arabic ] = "ÇáãÌãæÚ";
+ Text[ greek ] = "¢èñïéóìá";
+ Text[ korean ] = "ÇÕ°è";
+ Text[ turkish ] = "Toplam";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_INVALID_AFNAME
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Sie haben einen ungültigen Namen angegeben.\nDas AutoFormat konnte nicht angelegt werden.\nWählen Sie einen anderen Namen. : Sie haben einen ungültigen Namen angegeben.\nDas Autoformat konnte nicht angelegt werden.\nWählen Sie einen anderen Namen. */
+ /* ### ACHTUNG: Neuer Text in Resource? Sie haben einen ungültigen Namen angegeben.\nDas AutoFormat konnte nicht angelegt werden.\nWählen Sie einen anderen Namen. : Sie haben einen ungültigen Namen angegeben.\nDas Autoformat konnte nicht angelegt werden.\nWählen Sie einen anderen Namen. */
+ Text = "Sie haben einen ungültigen Namen angegeben.\nDas AutoFormat konnte nicht angelegt werden.\nWählen Sie einen anderen Namen." ;
+ Text [ ENGLISH ] = "You entered an invalid name.\nThe desired AutoFormat could not be createdTry again using a different name." ;
+ Text [ norwegian ] = "You entered an invalid name.\nThe desired AutoFormat could not be createdTry again using a different name." ;
+ Text [ italian ] = "Nome specificato non valido.\nImpossibile creare la Formattazione automatica desiderata.\nScegliete un altro nome." ;
+ Text [ portuguese_brazilian ] = "You entered an invalid name.\nThe desired AutoFormat could not be createdTry again using a different name." ;
+ Text [ portuguese ] = "Indicou um nome incorrecto.\nO AutoFormato desejado não pode ser criado.\nTente de novo usando um nome diferente." ;
+ Text [ finnish ] = "You entered an invalid name.\nThe desired AutoFormat could not be createdTry again using a different name." ;
+ Text [ danish ] = "Du har indtastet et ugyldigt navn.\nDet var ikke muligt at oprette AutoFormatet.\nVælg venligst et andet navn." ;
+ Text [ french ] = "Vous avez saisi un nom incorrect.\nL'AutoFormat n'a pas ou être éffectué.\nVeuillez indiquer un nom correct." ;
+ Text [ swedish ] = "Du har angett ett ogiltigt namn.\nAutoFormatet kunde inte skapas.\nVälj ett annat namn." ;
+ Text [ dutch ] = "U heeft een ongeldige naam vermeld.\nDe gewenste AutoOpmaak kon niet worden uitgevoerd.\nKies een andere naam." ;
+ Text [ spanish ] = "Ha indicado un nombre no válido, \npor lo que no se pudo crear el AutoFormato.\nSeleccione otro nombre." ;
+ Text [ ENGLISH_US ] = "You have entered an invalid name.\nThe desired AutoFormat could not be created. \nTry again using a different name." ;
+ Text[ chinese_simplified ] = "Äú¸ø¶¨ÁËÒ»¸öÎÞЧµÄÃû³Æ¡£\nÒò´ËÎÞ·¨½¨Á¢×Ô¶¯¸ñʽ¡£\nÇëÄúÊäÈëÒ»¸öÓÐЧÃû³Æ¡£";
+ Text[ russian ] = "Âû ïðèñâîèëè íåïðàâèëüíîå èìÿ.\nÀâòîôîðìàò ñîçäàòü íåâîçìîæíî.\nÂûáåðèòå äðóãîå èìÿ.";
+ Text[ polish ] = "Podana zosta³a nieprawid³owa nazwa.\nNie mo¿na by³o utworzyæ autoformatowania.\nWybierz inn¹ nazwê.";
+ Text[ japanese ] = "•s“KØ‚È–¼‘O‚ª“ü—Í‚³‚ê‚Ü‚µ‚½B\n‚±‚̵°ÄÌ«°Ï¯Ä‚Å‚Íì¬o—ˆ‚Ü‚¹‚ñB\n•Ê‚Ì–¼‘O‚ð‘I‘ð‚µ‚Ä‰º‚³‚¢B";
+ Text[ chinese_traditional ] = "±z¿é¤J¤F¤@­ÓµL®Äªº¦WºÙ¡C\nµLªk«Ø¥ß¦Û°Ê®æ¦¡¡C\n½Ð¿é¤J¤@­Ó¦³®Ä¦WºÙ¡C";
+ Text[ arabic ] = "áÞÏ ÞãÊ ÈÅÏÎÇá ÇÓã ÛíÑ ÕÇáÍ.\náåÐÇ ÊÚÐÑ ÅäÔÇÁ ÇáÊäÓíÞ ÇáÊáÞÇÆí.\nÇáÑÌÇÁ ÇÎÊíÇÑ ÇÓã ÃÎÑ.";
+ Text[ greek ] = "¸÷åôå åéóÜãåé Ýíá ìç Ýãêõñï üíïìá.\nÇ ÁõôïÌïñöïðïßçóç äåí Þôáí äõíáôüí íá äçìéïõñãçèåß.\nÅðéëÝîôå Ýíá Üëëï üíïìá.";
+ Text[ korean ] = "À¯È¿ÇÏÁö ¾ÊÀº À̸§À» ÀÔ·ÂÇß½À´Ï´Ù.\n¿ä±¸µÈ ÀÚµ¿ ¼­½ÄÀº¸¸µé¾î Áú ¼ö¾ø½À´Ï´Ù. \n´Ù¸¥ À̸§À¸·Î ´Ù½Ã ½ÃµµÇϽʽÿÀ..";
+ Text[ turkish ] = "Geçersiz bir ad girdiniz.\nOtomatik format oluþturulamadý.\nBaþka bir ad seçiniz.";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ Text[ russian ] = "Àâòîôîðìàò";
+ Text[ polish ] = "Autoformatowanie";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡";
+ Text[ arabic ] = "ÇáÊäÓíÞ ÇáÊáÞÇÆí";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä";
+ Text[ turkish ] = "Otomatik format";
+ Text[ language_user1 ] = " ";
+};
+ModalDialog DLG_SWDLG_STRINPUT
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 172 , 63 ) ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ HelpID = HID_SWDLG_STRINPUT ;
+ Edit ED_INPUT
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6 , 24 ) ;
+ Size = MAP_APPFONT ( 104 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ FixedText FT_LABEL
+ {
+ Pos = MAP_APPFONT ( 6 , 13 ) ;
+ Size = MAP_APPFONT ( 90 , 10 ) ;
+ Text = "Label" ;
+ };
+ OKButton BTN_OK
+ {
+ Pos = MAP_APPFONT ( 116 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BTN_CANCEL
+ {
+ Pos = MAP_APPFONT ( 116 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+};
diff --git a/sw/source/ui/uiview/makefile.mk b/sw/source/ui/uiview/makefile.mk
new file mode 100644
index 000000000000..2884ba89508e
--- /dev/null
+++ b/sw/source/ui/uiview/makefile.mk
@@ -0,0 +1,117 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=uiview
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+SRCFILES = \
+ view.src \
+ pview.src
+
+SLOFILES = \
+ $(SLO)$/view0.obj \
+ $(SLO)$/view.obj \
+ $(SLO)$/view1.obj \
+ $(SLO)$/view2.obj \
+ $(SLO)$/viewcoll.obj \
+ $(SLO)$/viewdlg2.obj \
+ $(SLO)$/viewdlg.obj \
+ $(SLO)$/viewdraw.obj \
+ $(SLO)$/viewling.obj \
+ $(SLO)$/viewmdi.obj \
+ $(SLO)$/pview.obj \
+ $(SLO)$/viewport.obj \
+ $(SLO)$/viewstat.obj \
+ $(SLO)$/viewtab.obj \
+ $(SLO)$/viewprt.obj \
+ $(SLO)$/viewsrch.obj \
+ $(SLO)$/scroll.obj \
+ $(SLO)$/swcli.obj \
+ $(SLO)$/srcview.obj \
+ $(SLO)$/uivwimp.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/srcview.obj \
+ $(SLO)$/uivwimp.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
+$(SRS)$/uiview.srs: $(SOLARINCDIR)$/svx$/globlmn.hrc
+
diff --git a/sw/source/ui/uiview/pview.cxx b/sw/source/ui/uiview/pview.cxx
new file mode 100644
index 000000000000..a67872868891
--- /dev/null
+++ b/sw/source/ui/uiview/pview.cxx
@@ -0,0 +1,2322 @@
+/*************************************************************************
+ *
+ * $RCSfile: pview.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _SV_TIMER_HXX //autogen
+#include <vcl/timer.hxx>
+#endif
+
+
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFX_TOPFRM_HXX
+#include <sfx2/topfrm.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVX_STDDLG_HXX //autogen
+#include <svx/stddlg.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_PAPERINF_HXX //autogen
+#include <svx/paperinf.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+#ifndef _SV_PRINTDLG_HXX_ //autogen
+#include <svtools/printdlg.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _VCL_CMDEVT_HXX //autogen
+#include <vcl/cmdevt.hxx>
+#endif
+
+
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _SWGLOBDOCSH_HXX //autogen
+#include <globdoc.hxx>
+#endif
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _PVPRTDAT_HXX
+#include <pvprtdat.hxx>
+#endif
+#include "helpid.h"
+#include "swmodule.hxx"
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+#include "wrtsh.hxx"
+#include "docsh.hxx"
+#include "cmdid.h"
+#include "viewopt.hxx"
+#include "globals.hrc"
+#include "doc.hxx"
+#include "pview.hxx"
+#include "view.hxx"
+#include "textsh.hxx"
+#include "scroll.hxx"
+#include "swprtopt.hxx"
+#include "docstat.hxx"
+#include "usrpref.hxx"
+#include "popup.hrc"
+#include "pview.hrc"
+#include "viewfunc.hxx"
+
+#ifndef _SVX_DLGUTIL_HXX //autogen
+#include <svx/dlgutil.hxx>
+#endif
+
+#define SwPagePreView
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+
+SFX_IMPL_VIEWFACTORY(SwPagePreView, SW_RES(STR_NONAME))
+{
+ SFX_VIEW_REGISTRATION(SwDocShell);
+ SFX_VIEW_REGISTRATION(SwWebDocShell);
+ SFX_VIEW_REGISTRATION(SwGlobalDocShell);
+}
+
+SFX_IMPL_INTERFACE(SwPagePreView, SfxViewShell, SW_RES(RID_PVIEW_TOOLBOX))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_PPREVIEW_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|
+ SFX_VISIBILITY_CLIENT|SFX_VISIBILITY_FULLSCREEN|
+ SFX_VISIBILITY_READONLYDOC,
+ SW_RES(RID_PVIEW_TOOLBOX));
+}
+
+
+TYPEINIT1(SwPagePreView,SfxViewShell)
+
+#define SWVIEWFLAGS ( SFX_VIEW_MAXIMIZE_FIRST|SFX_VIEW_OPTIMIZE_EACH| \
+ SFX_VIEW_CAN_PRINT|SFX_VIEW_HAS_PRINTOPTIONS )
+
+/* */
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+// erstmal der Zoom-Dialog
+
+class SwPreViewZoomDlg : public SvxStandardDialog
+{
+ FixedText aRowLbl;
+ NumericField aRowEdit;
+ FixedText aColLbl;
+ NumericField aColEdit;
+
+ GroupBox aFrm;
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ virtual void Apply();
+
+public:
+ SwPreViewZoomDlg( SwPagePreViewWin& rParent );
+ ~SwPreViewZoomDlg();
+};
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwPreViewZoomDlg::SwPreViewZoomDlg( SwPagePreViewWin& rParent ) :
+ SvxStandardDialog( &rParent, SW_RES(DLG_PAGEPREVIEW_ZOOM) ),
+ aColLbl(this,SW_RES(FT_COL)),
+ aColEdit(this,SW_RES(ED_COL)),
+ aRowLbl(this,SW_RES(FT_ROW)),
+ aRowEdit(this,SW_RES(ED_ROW)),
+ aFrm(this,SW_RES(GB_PREVIEW)),
+ aOkBtn(this,SW_RES(BT_OK)),
+ aCancelBtn(this,SW_RES(BT_CANCEL)),
+ aHelpBtn(this,SW_RES(BT_HELP))
+{
+ FreeResource();
+
+ aRowEdit.SetValue( rParent.GetRow() );
+ aColEdit.SetValue( rParent.GetCol() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+ SwPreViewZoomDlg::~SwPreViewZoomDlg() {}
+
+
+void SwPreViewZoomDlg::Apply()
+{
+ ((SwPagePreViewWin*)GetParent())->CalcWish(
+ BYTE(aRowEdit.GetValue()),
+ BYTE(aColEdit.GetValue()) );
+}
+
+/* */
+/* -----------------20.08.98 15:25-------------------
+ * Vorschau fuer den Seitendruck
+ * --------------------------------------------------*/
+struct PrintSettingsStruct;
+class PrtPrvWindow : public Window
+{
+ const PrintSettingsStruct& rSettings;
+
+ virtual void Paint(const Rectangle&);
+public :
+ PrtPrvWindow(Window* pParent, const ResId& rResId, const PrintSettingsStruct& rSett) :
+ Window(pParent, rResId), rSettings(rSett){}
+};
+/*--------------------------------------------------------------------
+ Beschreibung: Optionen fuer das Drucken der Preview
+ --------------------------------------------------------------------*/
+struct PrintSettingsStruct
+{
+ Size aPageMaxSize; // groesste Seite
+ Size aPrtSize; // Papiergroesse
+ Size aPrvPrtSize; // Groesse innerhalb der LRTB-Raender
+ Size aGridSize; // Groesse fuer jede Seite, enthaelt je
+ // die Haelfte von H- und V-Distance
+
+ long nLeft;
+ long nRight;
+ long nTop;
+ long nBottom;
+ long nHori;
+ long nVert;
+
+ USHORT nRows;
+ USHORT nCols;
+
+ BOOL bPrinterLandscape; // Ausrichtung
+};
+
+class SwPreviewPrintOptionsDialog : public SvxStandardDialog
+{
+ GroupBox aRowColGB;
+ FixedText aRowsFT;
+ NumericField aRowsNF;
+ FixedText aColsFT;
+ NumericField aColsNF;
+
+ GroupBox aMarginGB;
+ FixedText aLSpaceFT;
+ MetricField aLSpaceMF;
+ FixedText aRSpaceFT;
+ MetricField aRSpaceMF;
+ FixedText aTSpaceFT;
+ MetricField aTSpaceMF;
+ FixedText aBSpaceFT;
+ MetricField aBSpaceMF;
+ GroupBox aDistanceGB;
+ FixedText aHSpaceFT;
+ MetricField aHSpaceMF;
+ FixedText aVSpaceFT;
+ MetricField aVSpaceMF;
+
+ RadioButton aLandscapeRB;
+ RadioButton aPortraitRB;
+ GroupBox aOrientationGB;
+
+ GroupBox aPreviewGB;
+ PrtPrvWindow aPreviewWin;
+
+ OKButton aOkBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ PushButton aStandardPB;
+
+ SwPagePreView& rPreView;
+ PrintSettingsStruct aSettings;
+/* Size aPageMaxSize;
+ Size aPrtSize;
+
+ BOOL bOrientation;
+*/
+ BOOL bStandard;
+
+ virtual void Apply();
+ void FillControls(SwPagePreViewPrtData& rData);
+
+ DECL_LINK( ModifyHdl, Edit* );
+ DECL_LINK( StandardHdl, PushButton* );
+
+public:
+ SwPreviewPrintOptionsDialog(SwPagePreViewWin& rParent, SwPagePreView& rView);
+ ~SwPreviewPrintOptionsDialog();
+};
+
+/* -----------------19.08.98 13:35-------------------
+ *
+ * --------------------------------------------------*/
+SwPreviewPrintOptionsDialog::SwPreviewPrintOptionsDialog( SwPagePreViewWin& rParent, SwPagePreView& rView ) :
+ SvxStandardDialog( &rParent, SW_RES(DLG_PAGEPREVIEW_PRINTOPTIONS) ),
+ aRowColGB(this,SW_RES( GB_ROWCOL)),
+ aRowsFT(this,SW_RES( FT_ROWS)),
+ aRowsNF(this,SW_RES( NF_ROWS)),
+ aColsFT(this,SW_RES( FT_COLS)),
+ aColsNF(this,SW_RES( NF_COLS)),
+ aMarginGB(this,SW_RES( GB_MARGINS)),
+ aLSpaceFT(this,SW_RES( FT_LMARGIN)),
+ aLSpaceMF(this,SW_RES( MF_LMARGIN)),
+ aRSpaceFT(this,SW_RES( FT_RMARGIN)),
+ aRSpaceMF(this,SW_RES( MF_RMARGIN)),
+ aTSpaceFT(this,SW_RES( FT_TMARGIN)),
+ aTSpaceMF(this,SW_RES( MF_TMARGIN)),
+ aBSpaceFT(this,SW_RES( FT_BMARGIN)),
+ aBSpaceMF(this,SW_RES( MF_BMARGIN)),
+ aDistanceGB(this,SW_RES(GB_DISTANCE)),
+ aHSpaceFT(this,SW_RES( FT_HMARGIN)),
+ aHSpaceMF(this,SW_RES( MF_HMARGIN)),
+ aVSpaceFT(this,SW_RES( FT_VMARGIN)),
+ aVSpaceMF(this,SW_RES( MF_VMARGIN)),
+ aOrientationGB(this,SW_RES( GB_ORIENTATION)),
+ aLandscapeRB(this,SW_RES( RB_LANDSCAPE)),
+ aPortraitRB(this,SW_RES( RB_PORTRAIT)),
+ aPreviewGB(this,SW_RES( GB_PREVIEW)),
+ aPreviewWin(this,SW_RES( WIN_PREVIEW), aSettings),
+ aOkBtn(this,SW_RES(BT_OK)),
+ aCancelBtn(this,SW_RES(BT_CANCEL)),
+ aHelpBtn(this,SW_RES(BT_HELP)),
+ aStandardPB(this,SW_RES(PB_STANDARD)),
+ rPreView(rView),
+ bStandard(TRUE)
+{
+ FreeResource();
+ ViewShell& rViewSh = rPreView.GetViewShell();
+ aSettings.aPageMaxSize = rViewSh.GetPagePreViewPrtMaxSize();
+ SfxPrinter* pPrinter = rViewSh.GetPrt( TRUE );
+ aSettings.aPrtSize = pPrinter->GetPaperSize();
+ aSettings.bPrinterLandscape = pPrinter->GetOrientation() == ORIENTATION_LANDSCAPE;
+
+
+ SwDocShell* pDocShell = rPreView.GetDocShell();
+ const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+ FieldUnit eFieldUnit = pModOpt->GetMetric(0 != PTR_CAST(SwWebDocShell, pDocShell));
+ ::SetFieldUnit( aLSpaceMF, eFieldUnit );
+ ::SetFieldUnit( aRSpaceMF, eFieldUnit );
+ ::SetFieldUnit( aTSpaceMF, eFieldUnit );
+ ::SetFieldUnit( aBSpaceMF, eFieldUnit );
+ ::SetFieldUnit( aHSpaceMF, eFieldUnit );
+ ::SetFieldUnit( aVSpaceMF, eFieldUnit );
+
+ SwDoc* pDoc = pDocShell->GetDoc();
+ SwPagePreViewPrtData aData;
+ if(pDoc->GetPreViewPrtData())
+ {
+ aData = *pDoc->GetPreViewPrtData();
+ bStandard = FALSE;
+ }
+ else
+ {
+ // Orientation der PreviewData an den Drucker anpassen
+ aData.SetLandscape(aSettings.bPrinterLandscape);
+ }
+ FillControls(aData);
+
+ aLSpaceMF.SaveValue();
+ aRSpaceMF.SaveValue();
+ aTSpaceMF.SaveValue();
+ aBSpaceMF.SaveValue();
+ aHSpaceMF.SaveValue();
+ aVSpaceMF.SaveValue();
+ aRowsNF.SaveValue();
+ aColsNF.SaveValue();
+ aLandscapeRB.SaveValue();
+ aPortraitRB.SaveValue();
+
+ aStandardPB.SetClickHdl(LINK(this, SwPreviewPrintOptionsDialog, StandardHdl));
+ Link aLk = LINK(this, SwPreviewPrintOptionsDialog, ModifyHdl);
+ aLSpaceMF.SetUpHdl(aLk);
+ aRSpaceMF.SetUpHdl(aLk);
+ aTSpaceMF.SetUpHdl(aLk);
+ aBSpaceMF.SetUpHdl(aLk);
+ aHSpaceMF.SetUpHdl(aLk);
+ aVSpaceMF.SetUpHdl(aLk);
+ aRowsNF.SetUpHdl(aLk);
+ aColsNF.SetUpHdl(aLk);
+ aLSpaceMF.SetDownHdl(aLk);
+ aRSpaceMF.SetDownHdl(aLk);
+ aTSpaceMF.SetDownHdl(aLk);
+ aBSpaceMF.SetDownHdl(aLk);
+ aHSpaceMF.SetDownHdl(aLk);
+ aVSpaceMF.SetDownHdl(aLk);
+ aRowsNF.SetDownHdl(aLk);
+ aColsNF.SetDownHdl(aLk);
+ aLSpaceMF.SetLoseFocusHdl(aLk);
+ aRSpaceMF.SetLoseFocusHdl(aLk);
+ aTSpaceMF.SetLoseFocusHdl(aLk);
+ aBSpaceMF.SetLoseFocusHdl(aLk);
+ aHSpaceMF.SetLoseFocusHdl(aLk);
+ aVSpaceMF.SetLoseFocusHdl(aLk);
+ aRowsNF.SetLoseFocusHdl(aLk);
+ aColsNF.SetLoseFocusHdl(aLk);
+ aLandscapeRB.SetClickHdl(aLk);
+ aPortraitRB.SetClickHdl(aLk);
+
+ ModifyHdl(0);
+ if(bStandard)
+ StandardHdl(&aStandardPB);
+}
+
+
+/* -----------------19.08.98 13:36-------------------
+ *
+ * --------------------------------------------------*/
+SwPreviewPrintOptionsDialog::~SwPreviewPrintOptionsDialog()
+{
+}
+/* -----------------12.11.98 11:32-------------------
+ *
+ * --------------------------------------------------*/
+void SwPreviewPrintOptionsDialog::FillControls(SwPagePreViewPrtData& rData)
+{
+ aLSpaceMF.SetValue(aLSpaceMF.Normalize(rData.GetLeftSpace() ), FUNIT_TWIP);
+ aRSpaceMF.SetValue(aRSpaceMF.Normalize(rData.GetRightSpace() ), FUNIT_TWIP);
+ aTSpaceMF.SetValue(aTSpaceMF.Normalize(rData.GetTopSpace() ), FUNIT_TWIP);
+ aBSpaceMF.SetValue(aBSpaceMF.Normalize(rData.GetBottomSpace()), FUNIT_TWIP);
+ aHSpaceMF.SetValue(aHSpaceMF.Normalize(rData.GetHorzSpace() ), FUNIT_TWIP);
+ aVSpaceMF.SetValue(aVSpaceMF.Normalize(rData.GetVertSpace() ), FUNIT_TWIP);
+ aRowsNF.SetValue(rData.GetRow());
+ aColsNF.SetValue(rData.GetCol());
+ aSettings.bPrinterLandscape ? aLandscapeRB.Check() : aPortraitRB.Check();
+ // wenn Drucker und Einstellungen nicht uebereinstimmen, dann Seiten tauschen
+ if( rData.GetLandscape() != aSettings.bPrinterLandscape )
+ {
+ Size aTmp(aSettings.aPrtSize.Height(), aSettings.aPrtSize.Width());
+ aSettings.aPrtSize = aTmp;
+ aSettings.bPrinterLandscape = !aSettings.bPrinterLandscape;
+ // nochmal setzen, denn auch wenn nur die Default-Orientierung dem Drucker
+ // angepasst wurde, sollen die Einstellungen gespeichert werden
+ aSettings.bPrinterLandscape ? aLandscapeRB.Check() : aPortraitRB.Check();
+ }
+ aLandscapeRB.SaveValue();
+ aPortraitRB.SaveValue();
+
+ aSettings.nLeft = rData.GetLeftSpace() ;
+ aSettings.nRight = rData.GetRightSpace() ;
+ aSettings.nTop = rData.GetTopSpace() ;
+ aSettings.nBottom = rData.GetBottomSpace();
+ aSettings.nHori = rData.GetHorzSpace() ;
+ aSettings.nVert = rData.GetVertSpace() ;
+ aSettings.nRows = rData.GetRow() ;
+ aSettings.nCols = rData.GetCol() ;
+ aSettings.aPrvPrtSize = aSettings.aPrtSize ;
+}
+
+/* -----------------19.08.98 14:31-------------------
+ *
+ * --------------------------------------------------*/
+void SwPreviewPrintOptionsDialog::Apply()
+{
+
+ SwDoc* pDoc = rPreView.GetDocShell()->GetDoc();
+ if(bStandard)
+ pDoc->SetPreViewPrtData(0);
+ else if( aLSpaceMF.GetSavedValue() != aLSpaceMF.GetText() ||
+ aRSpaceMF.GetSavedValue() != aRSpaceMF.GetText() ||
+ aTSpaceMF.GetSavedValue() != aTSpaceMF.GetText() ||
+ aBSpaceMF.GetSavedValue() != aBSpaceMF.GetText() ||
+ aHSpaceMF.GetSavedValue() != aHSpaceMF.GetText() ||
+ aVSpaceMF.GetSavedValue() != aVSpaceMF.GetText() ||
+ aRowsNF.GetSavedValue() != aRowsNF.GetText() ||
+ aColsNF.GetSavedValue() != aColsNF.GetText() ||
+ aLandscapeRB.GetSavedValue() != aLandscapeRB.IsChecked() ||
+ aPortraitRB.GetSavedValue() != aPortraitRB.IsChecked() )
+ {
+ SwPagePreViewPrtData aData;
+ if(pDoc->GetPreViewPrtData())
+ aData = *pDoc->GetPreViewPrtData();
+ aData.SetLeftSpace(aLSpaceMF.Denormalize(aLSpaceMF.GetValue(FUNIT_TWIP)));
+ aData.SetRightSpace(aRSpaceMF.Denormalize(aRSpaceMF.GetValue(FUNIT_TWIP)));
+ aData.SetTopSpace(aTSpaceMF.Denormalize(aTSpaceMF.GetValue(FUNIT_TWIP)));
+ aData.SetBottomSpace(aBSpaceMF.Denormalize(aBSpaceMF.GetValue(FUNIT_TWIP)));
+
+ aData.SetHorzSpace(aHSpaceMF.Denormalize(aHSpaceMF.GetValue(FUNIT_TWIP)));
+ aData.SetVertSpace(aVSpaceMF.Denormalize(aVSpaceMF.GetValue(FUNIT_TWIP)));
+ aData.SetRow(aRowsNF.GetValue());
+ aData.SetCol(aColsNF.GetValue());
+ aData.SetLandscape(aLandscapeRB.IsChecked());
+
+ ViewShell& rViewSh = rPreView.GetViewShell();
+ SfxPrinter* pPrinter = rViewSh.GetPrt( TRUE );
+ if((pPrinter->GetOrientation() == ORIENTATION_LANDSCAPE)
+ != aData.GetLandscape())
+ pPrinter->SetOrientation(aData.GetLandscape() ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);
+
+
+ pDoc->SetPreViewPrtData(&aData);
+
+ }
+}
+/* -----------------20.08.98 08:48-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwPreviewPrintOptionsDialog, ModifyHdl, Edit*, pEdit )
+{
+ if(bStandard && pEdit)
+ {
+ aLSpaceMF.SetUserValue(aLSpaceMF.GetValue());
+ aRSpaceMF.SetUserValue(aRSpaceMF.GetValue());
+ aTSpaceMF.SetUserValue(aTSpaceMF.GetValue());
+ aBSpaceMF.SetUserValue(aBSpaceMF.GetValue());
+ aHSpaceMF.SetUserValue(aHSpaceMF.GetValue());
+ aVSpaceMF.SetUserValue(aVSpaceMF.GetValue());
+ aRowsNF. SetUserValue(aRowsNF .GetValue());
+ aColsNF. SetUserValue(aColsNF .GetValue());
+
+ bStandard = FALSE;
+ }
+ BOOL bOrientChanged = aSettings.bPrinterLandscape != aLandscapeRB.IsChecked();;
+ if(pEdit == &aLSpaceMF)
+ aSettings.nLeft = aLSpaceMF.Denormalize(aLSpaceMF.GetValue(FUNIT_TWIP));
+ else if(pEdit == &aRSpaceMF)
+ aSettings.nRight = aRSpaceMF.Denormalize(aRSpaceMF.GetValue(FUNIT_TWIP));
+ else if(pEdit == &aTSpaceMF)
+ aSettings.nTop = aTSpaceMF.Denormalize(aTSpaceMF.GetValue(FUNIT_TWIP));
+ else if(pEdit == &aBSpaceMF)
+ aSettings.nBottom = aBSpaceMF.Denormalize(aBSpaceMF.GetValue(FUNIT_TWIP));
+ else if(pEdit == &aHSpaceMF)
+ aSettings.nHori = aHSpaceMF.Denormalize(aHSpaceMF.GetValue(FUNIT_TWIP));
+ else if(pEdit == &aVSpaceMF)
+ aSettings.nVert = aVSpaceMF.Denormalize(aVSpaceMF.GetValue(FUNIT_TWIP));
+ else if(pEdit == &aRowsNF)
+ aSettings.nRows = aRowsNF.GetValue();
+ else if(pEdit == &aColsNF)
+ aSettings.nCols = aColsNF.GetValue();
+ else if(pEdit == (Edit*)&aLandscapeRB)
+ aSettings.bPrinterLandscape = aLandscapeRB.IsChecked();
+ else if(pEdit == (Edit*)&aPortraitRB)
+ aSettings.bPrinterLandscape = aLandscapeRB.IsChecked();
+
+ if(bOrientChanged)
+ {
+ Size aTmp(aSettings.aPrtSize.Height(), aSettings.aPrtSize.Width());
+ aSettings.aPrtSize = aTmp;
+ }
+
+
+ aSettings.aPrvPrtSize = Size(aSettings.aPrtSize.Width() - aSettings.nRight - aSettings.nLeft,
+ aSettings.aPrtSize.Height() - aSettings.nTop - aSettings.nBottom);
+ aSettings.aGridSize = Size(aSettings.aPrvPrtSize.Width() / aSettings.nCols,
+ aSettings.aPrvPrtSize.Height() / aSettings.nRows );
+ // was fehlt noch: Orientation auswerten, minimalrand ausrechnen, Beispiel fuettern
+
+
+ //am Ende Maximalwerte setzen
+ long n20Percent = aSettings.aPrtSize.Width() / 5;
+ aLSpaceMF.SetMax(aLSpaceMF.Normalize(aSettings.aPrtSize.Width() - aSettings.nRight - n20Percent), FUNIT_TWIP);
+ aRSpaceMF.SetMax(aRSpaceMF.Normalize(aSettings.aPrtSize.Width() - aSettings.nLeft - n20Percent), FUNIT_TWIP);
+ n20Percent = aSettings.aPrtSize.Height() / 5;
+ aTSpaceMF.SetMax(aTSpaceMF.Normalize(aSettings.aPrtSize.Height() - aSettings.nBottom - n20Percent), FUNIT_TWIP);
+ aBSpaceMF.SetMax(aBSpaceMF.Normalize(aSettings.aPrtSize.Height() - aSettings.nTop - n20Percent), FUNIT_TWIP);
+
+ long n80Percent = aSettings.aPrvPrtSize.Width() * 4 / 5;
+ aHSpaceMF.SetMax(aHSpaceMF.Normalize(n80Percent / aSettings.nRows), FUNIT_TWIP);
+ n80Percent = aSettings.aPrvPrtSize.Height()* 4 / 5;
+ aVSpaceMF.SetMax(aVSpaceMF.Normalize(n80Percent / aSettings.nCols), FUNIT_TWIP);
+ aHSpaceMF.Enable(aSettings.nCols > 1);
+ aVSpaceMF.Enable(aSettings.nRows > 1);
+ aRowsNF.SetMin(1);// nur damit auch nach Standard wieder der Inhalt angezeigt wird
+ aColsNF.SetMin(1);
+
+
+ aPreviewWin.Invalidate();
+ return 0;
+}
+/* -----------------28.08.98 14:59-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwPreviewPrintOptionsDialog, StandardHdl, PushButton*, EMPTYARG )
+{
+ SetUpdateMode(TRUE);
+ SwPagePreViewPrtData aData;
+ FillControls(aData);
+ bStandard = TRUE;
+ aLSpaceMF.SetText(aEmptyStr);
+ aRSpaceMF.SetText(aEmptyStr);
+ aTSpaceMF.SetText(aEmptyStr);
+ aBSpaceMF.SetText(aEmptyStr);
+ aHSpaceMF.SetText(aEmptyStr);
+ aVSpaceMF.SetText(aEmptyStr);
+ aRowsNF.SetText(aEmptyStr);
+ aColsNF.SetText(aEmptyStr);
+ aPreviewWin.Invalidate();
+ SetUpdateMode(FALSE);
+ return 0;
+}
+/* -----------------20.08.98 15:28-------------------
+ * Preview anzeigen
+ * --------------------------------------------------*/
+void PrtPrvWindow::Paint(const Rectangle&)
+{
+/*
+ struct PrintSettingsStruct
+{
+ Size aPageMaxSize; // groesste Seite
+ Size aPrtSize; // Papiergroesse
+ Size aPrvPrtSize; // Groesse innerhalb der LRTB-Raender
+ Size aGridSize; // Groesse fuer jede Seite, enthaelt je
+ // die Haelfte von H- und V-Distance
+
+ long nLeft;
+ long nRight;
+ long nTop;
+ long nBottom;
+ long nHori;
+ long nVert;
+
+ USHORT nRows;
+ USHORT nCols;
+
+ BOOL bOrientation; // Ausrichtung
+};
+
+ * */
+// Size aWinSize(GetOutputSizePixel());
+// //MapMode aMode(GetMapMode());
+// MapMode aMode(MAP_TWIP, Point(0,0), Fraction(1,10 ), Fraction( 1,10 ));
+// SetMapMode(aMode);
+// Size aWinLogSize(GetOutputSize());
+
+ Size aWinSize(GetOutputSizePixel());
+ long nWidth = rSettings.aPrtSize.Width();
+ long nHeight = rSettings.aPrtSize.Height();
+ BOOL bHoriValid = (aWinSize.Width() * 100 / aWinSize.Height()) <
+ (rSettings.aPrtSize.Width() * 100/ rSettings.aPrtSize.Height());
+ Fraction aXScale( aWinSize.Width(),
+ max( nWidth , 1 ) );
+ Fraction aYScale( aWinSize.Height(), max( nHeight, 1 ) );
+ MapMode aMapMode( GetMapMode() );
+ aMapMode.SetScaleX( bHoriValid ? aXScale : aYScale);
+ aMapMode.SetScaleY( bHoriValid ? aXScale : aYScale);
+ SetMapMode( aMapMode );
+
+ aWinSize = GetOutputSize();
+
+ Point aOffset(0,0);
+ if(bHoriValid)
+ aOffset.Y() = (aWinSize.Height() - rSettings.aPrtSize.Height()) / 2;
+ else
+ aOffset.X() = (aWinSize.Width() - rSettings.aPrtSize.Width()) / 2;;
+
+ //der weisse Seitenhintergrund
+ Rectangle aRect(aOffset, rSettings.aPrtSize);
+ SetFillColor( Color( COL_WHITE ) );
+ SetLineColor(Color( COL_BLACK ) );
+ DrawRect(aRect);
+
+ Point aTL(aOffset);
+ aTL.X() += rSettings.nLeft;
+ aTL.Y() += rSettings.nTop;
+
+ Size aPrvPageSize((rSettings.aPrvPrtSize.Width() - (rSettings.nCols - 1) * rSettings.nHori) / rSettings.nCols,
+ (rSettings.aPrvPrtSize.Height() - (rSettings.nRows - 1) * rSettings.nVert) / rSettings.nRows);
+ // jetzt muss noch das unterschiedliche Groessenverhaeltnis berechnet werden, um es an
+ // der richtigen Seite abzuziehen.
+ //...
+ long nSourceScale = rSettings.aPageMaxSize.Width() * 100 / rSettings.aPageMaxSize.Height();
+ long nDestScale = aPrvPageSize.Width() * 100 / aPrvPageSize.Height() ;
+ if(nSourceScale > nDestScale) // die Seite ist relativ breiter als das vorhandene Rechteck
+ {
+ aPrvPageSize.Height() = aPrvPageSize.Width() * 100 / nSourceScale;
+ }
+ else
+ {
+ aPrvPageSize.Width() = aPrvPageSize.Height() * nSourceScale / 100;
+ }
+
+ SetFillColor( Color( COL_GRAY ) );
+ aRect = Rectangle(aTL, aPrvPageSize);
+ for(USHORT i = 0; i < rSettings.nRows; i++)
+ {
+ for(USHORT j = 0; j < rSettings.nCols; j++)
+ {
+ DrawRect(aRect);
+ aRect.Move(aPrvPageSize.Width() + rSettings.nHori, 0);
+ }
+
+ aRect.Move( 0, aPrvPageSize.Height() + rSettings.nVert);
+ aRect.SetPos(Point(aTL.X(), aRect.TopLeft().Y()));
+ }
+ //rSettings;
+}
+
+/* */
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+// alles fuers SwPagePreViewWin
+
+
+SwPagePreViewWin::SwPagePreViewWin( Window *pParent, SwPagePreView& rPView )
+ : Window( pParent, WinBits( WB_CLIPCHILDREN) ),
+ pViewShell( 0 ),
+ rView( rPView )
+{
+ SetHelpId(HID_PAGEPREVIEW);
+ SetFillColor( GetBackground().GetColor() );
+ SetLineColor( GetBackground().GetColor());
+ SetMapMode( MapMode(MAP_TWIP) );
+
+ const SwMasterUsrPref *pUsrPref = SW_MOD()->GetUsrPref(FALSE);
+ nRow = pUsrPref->GetPagePrevRow(); // 1 Zeile
+ nCol = pUsrPref->GetPagePrevCol(); // 1 Spalte
+ nVirtPage = nSttPage = USHRT_MAX;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwPagePreViewWin::~SwPagePreViewWin()
+{
+ if( pViewShell )
+ delete pViewShell;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreViewWin::Paint( const Rectangle& rRect )
+{
+ if( !pViewShell || !pViewShell->GetLayout() )
+ return;
+
+ USHORT nRowCol = ( nRow << 8 ) + nCol;
+ if( USHRT_MAX == nSttPage ) // wurde noch nie berechnet ? (Init-Phase!)
+ {
+ // das ist die Size, auf die ich mich immer beziehe
+ if( !aWinSize.Height() || !aWinSize.Width() )
+ aWinSize = GetOutputSizePixel();
+
+ Rectangle aRect( LogicToPixel( rRect ));
+ nSttPage = pViewShell->CalcPreViewPage( aWinSize, nRowCol,
+ 0, aPgSize, nVirtPage );
+ pViewShell->PreViewPage( PixelToLogic( aRect ), nRowCol, nSttPage,
+ aPgSize );
+ nRow = BYTE( nRowCol >> 8 );
+ nCol = BYTE( nRowCol & 0xff );
+ SetPagePreview(nRow, nCol);
+ aScale = GetMapMode().GetScaleX();
+ }
+ else
+ {
+ MapMode aMM( GetMapMode() );
+ aMM.SetScaleX( aScale );
+ aMM.SetScaleY( aScale );
+ SetMapMode( aMM );
+ pViewShell->PreViewPage( rRect, nRowCol, nSttPage, aPgSize );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreViewWin::CalcWish( BYTE nNewRow, BYTE nNewCol )
+{
+ if( !pViewShell || !pViewShell->GetLayout() )
+ return;
+
+ USHORT nOldCol = nCol;
+ USHORT nRowCol = ( nNewRow << 8 ) + nNewCol; // Zeilen / Spalten
+ USHORT nPages = nNewRow * nNewCol,
+ nLastSttPg = rView.GetPageCount()+1 > nPages
+ ? rView.GetPageCount()+1 - nPages : 0;
+ if( nSttPage > nLastSttPg )
+ nSttPage = nLastSttPg;
+
+ nSttPage = pViewShell->CalcPreViewPage( aWinSize, nRowCol, nSttPage,
+ aPgSize, nVirtPage );
+ nRow = BYTE( nRowCol >> 8 );
+ nCol = BYTE( nRowCol & 0xff );
+ SetPagePreview(nRow, nCol);
+ aScale = GetMapMode().GetScaleX();
+
+ // falls an der Spaltigkeit gedreht wurde, so muss der Sonderfall
+ // Einspaltig beachtet und ggfs. der Scrollbar korrigiert werden
+ if( (1 == nOldCol) ^ (1 == nCol) )
+ rView.VScrollDocSzChg();
+
+ // Sortierung muss eingehalten werden!!
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_ZOOM,
+ FN_START_OF_DOCUMENT, FN_END_OF_DOCUMENT, FN_PAGEUP, FN_PAGEDOWN,
+ FN_SHOW_TWO_PAGES, FN_SHOW_FOUR_PAGES,
+ 0
+ };
+#ifndef PRODUCT
+ {
+ const USHORT* pPtr = aInval + 1;
+ do {
+ ASSERT( *(pPtr - 1) < *pPtr, "falsche Sortierung!" );
+ } while( *++pPtr );
+ }
+#endif
+ SfxBindings& rBindings = rView.GetViewFrame()->GetBindings();
+ rBindings.Invalidate( aInval );
+ rBindings.Update( FN_SHOW_TWO_PAGES );
+ rBindings.Update( FN_SHOW_FOUR_PAGES );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+int SwPagePreViewWin::MovePage( int eMoveMode )
+{
+ // soviele Seiten hoch
+ USHORT nPages = nRow * nCol;
+ USHORT nNewSttPage = nSttPage;
+ USHORT nPageCount = rView.GetPageCount() + 1;
+ USHORT nDefSttPg = GetDefSttPage();
+ USHORT nLastSttPg = nPageCount > nPages ? nPageCount - nPages : nDefSttPg;
+
+ switch( eMoveMode )
+ {
+ case MV_PAGE_UP: nNewSttPage = nSttPage > nPages
+ ? nSttPage - nPages : nDefSttPg;
+ break;
+ case MV_PAGE_DOWN: nNewSttPage = nSttPage + nPages;
+ if( nNewSttPage > nLastSttPg )
+ nNewSttPage = nLastSttPg;
+ break;
+ case MV_DOC_STT: nNewSttPage = nDefSttPg;
+ break;
+ case MV_DOC_END: nNewSttPage = nLastSttPg;
+ break;
+ default:
+
+ if( nNewSttPage > nLastSttPg )
+ nNewSttPage = nLastSttPg;
+ break;
+ }
+
+ Size aSave( aPgSize );
+ USHORT nRowCol = ( nRow << 8 ) + nCol; // Zeilen / DoppelSeiten
+ nNewSttPage = pViewShell->CalcPreViewPage( aWinSize, nRowCol,
+ nNewSttPage, aPgSize, nVirtPage );
+ if( nNewSttPage == nSttPage && aPgSize == aSave )
+ return FALSE;
+
+ nRow = BYTE( nRowCol >> 8 );
+ nCol = BYTE( nRowCol & 0xff );
+ SetPagePreview(nRow, nCol);
+ nSttPage = nNewSttPage;
+ aScale = GetMapMode().GetScaleX();
+
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ FN_START_OF_DOCUMENT, FN_END_OF_DOCUMENT, FN_PAGEUP, FN_PAGEDOWN, 0
+ };
+#ifndef PRODUCT
+ {
+ const USHORT* pPtr = aInval + 1;
+ do {
+ ASSERT( *(pPtr - 1) < *pPtr, "falsche Sortierung!" );
+ } while( *++pPtr );
+ }
+#endif
+
+ SfxBindings& rBindings = rView.GetViewFrame()->GetBindings();
+ rBindings.Invalidate( aInval );
+// rBindings.Update( FN_SHOW_TWO_PAGES );
+// rBindings.Update( FN_SHOW_FOUR_PAGES );
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreViewWin::SetWinSize( const Size& rNewSize )
+{
+ // die Size wollen wir aber immer in Pixel-Einheiten haben
+ aWinSize = LogicToPixel( rNewSize );
+ USHORT nRowCol = ( nRow << 8 ) + nCol; // Zeilen / DoppelSeiten
+
+ if( USHRT_MAX == nSttPage )
+ nSttPage = GetDefSttPage();
+ nSttPage = pViewShell->CalcPreViewPage( aWinSize, nRowCol,
+ nSttPage, aPgSize,
+ nVirtPage );
+ nRow = BYTE( nRowCol >> 8 );
+ nCol = BYTE( nRowCol & 0xff );
+ SetPagePreview(nRow, nCol);
+ aScale = GetMapMode().GetScaleX();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreViewWin::GetStatusStr( String& rStr, USHORT nPageCnt ) const
+{
+ // Logische Seite gegebenenfalls davor haengen
+ USHORT nStt = nSttPage > 1 ? nSttPage : 1;
+ if( nVirtPage && nVirtPage != nStt )
+ {
+ rStr += String::CreateFromInt32( nVirtPage );
+ rStr += ' ';
+ }
+ rStr += String::CreateFromInt32( nStt );
+ rStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" / "));
+ rStr += String::CreateFromInt32( nPageCnt );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreViewWin::KeyInput( const KeyEvent &rKEvt )
+{
+ //Defaultbehandlung Keyboard
+ if( !rView.KeyInput( rKEvt ) )
+ Window::KeyInput( rKEvt );
+}
+
+/******************************************************************************
+ * Beschreibung:
+ ******************************************************************************/
+
+void SwPagePreViewWin::Command( const CommandEvent& rCEvt )
+{
+ BOOL bCallBase = TRUE;
+ switch( rCEvt.GetCommand() )
+ {
+ case COMMAND_CONTEXTMENU:
+ rView.GetViewFrame()->GetDispatcher()->ExecutePopup();
+ bCallBase = FALSE;
+ break;
+
+ case COMMAND_WHEEL:
+ case COMMAND_STARTAUTOSCROLL:
+ case COMMAND_AUTOSCROLL:
+ bCallBase = !rView.HandleWheelCommands( rCEvt );
+ break;
+
+ default: ASSERT( !this, "unknown command." );
+ }
+
+ if( bCallBase )
+ Window::Command( rCEvt );
+}
+
+void SwPagePreViewWin::MouseButtonDown( const MouseEvent& rMEvt )
+{
+ if( MOUSE_LEFT == ( rMEvt.GetModifier() + rMEvt.GetButtons() ) &&
+ 2 == rMEvt.GetClicks() )
+ {
+ Point aDocPos( PixelToLogic( rMEvt.GetPosPixel() ) );
+
+ // was habe wir denn hier getroffen??
+ USHORT nRowCol = ( nRow << 8 ) + nCol; // Zeilen / DoppelSeiten
+ BOOL bDocPos = pViewShell->IsPreViewDocPos( aDocPos, nRowCol,
+ nSttPage, aPgSize );
+
+ if( bDocPos ) // dann kann man ja umschalten
+ {
+ String sNewCrsrPos( String::CreateFromInt32( aDocPos.X() ));
+ ((( sNewCrsrPos += ';' )
+ += String::CreateFromInt32( aDocPos.Y() )) )
+ += ';';
+ rView.SetNewCrsrPos( sNewCrsrPos );
+
+ SfxViewFrame *pTmpFrm = rView.GetViewFrame();
+ pTmpFrm->GetBindings().Execute( SID_VIEWSHELL0, NULL, 0,
+ SFX_CALLMODE_ASYNCHRON );
+ }
+ }
+}
+
+/******************************************************************************
+ * Beschreibung: Userprefs bzw Viewoptions setzen
+ ******************************************************************************/
+
+
+void SwPagePreViewWin::SetPagePreview( BYTE nRow, BYTE nCol )
+{
+ SwMasterUsrPref *pOpt = (SwMasterUsrPref *)SW_MOD()->GetUsrPref(FALSE);
+
+ if (nRow != pOpt->GetPagePrevRow() || nCol != pOpt->GetPagePrevCol())
+ {
+ pOpt->SetPagePrevRow( nRow );
+ pOpt->SetPagePrevCol( nCol );
+ pOpt->SetModified();
+ pOpt->SetDefault( FALSE );
+
+ //VScrollbar updaten!
+ if( rView.StatVScrollbar() )
+ rView.VScrollViewSzChg();
+ }
+}
+
+void SwPagePreViewWin::DataChanged( const DataChangedEvent& )
+{
+ rView.InvalidateBorder(); //Scrollbarbreiten
+ rView.GetDocShell()->UpdateFontList(); //Fontwechsel
+ if ( pViewShell->GetWin() )
+ pViewShell->GetWin()->Invalidate();
+}
+
+
+/* */
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+// dann mal alles fuer die SwPagePreView
+
+
+void SwPagePreView::Execute( SfxRequest &rReq )
+{
+ int eMvMode;
+ BYTE nRow = 1;
+ BOOL bRetVal = FALSE, bRefresh = TRUE;
+
+ USHORT nSttPage = aViewWin.GetSttPage(),
+ nPages = aViewWin.GetRow() * aViewWin.GetCol(),
+ nLineSz = 1 < nPages ? nPages / 2 : 1,
+ nLastSttPg = nPageCount+1 > nPages ? nPageCount+1 - nPages : 0,
+ nDefSttPg = aViewWin.GetDefSttPage();
+
+ switch(rReq.GetSlot())
+ {
+ case FN_REFRESH_VIEW:
+ case FN_STAT_PAGE:
+ case FN_STAT_ZOOM:
+ break;
+
+ case FN_SHOW_FOUR_PAGES:
+ nRow = 2;
+ // keine break;
+
+ case FN_SHOW_TWO_PAGES:
+ aViewWin.CalcWish( nRow, 2 );
+ break;
+
+ case FN_PREVIEW_ZOOM:
+ case SID_ATTR_ZOOM:
+ {
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ if( pArgs && pArgs->Count() >= 2 )
+ {
+
+ USHORT nCols = ((SfxUInt16Item &)pArgs->Get(SID_ATTR_TABLE_COLUMN)).GetValue();
+ USHORT nRows = ((SfxUInt16Item &)pArgs->Get(SID_ATTR_TABLE_ROW)).GetValue();
+ aViewWin.CalcWish( nRows, nCols );
+ }
+ else
+ SwPreViewZoomDlg( aViewWin ).Execute();
+ }
+ break;
+
+ case FN_CHAR_LEFT:
+ if( nDefSttPg == nSttPage-- )
+ {
+ bRefresh = FALSE;
+ break;
+ }
+ aViewWin.SetSttPage( nSttPage );
+ eMvMode = SwPagePreViewWin::MV_CALC; goto MOVEPAGE;
+
+ case FN_CHAR_RIGHT:
+ if( //aViewWin.GetRow() * aViewWin.GetCol() >= nPageCount ||
+ nLastSttPg == nSttPage++ )
+ {
+ bRefresh = FALSE;
+ break;
+ }
+ aViewWin.SetSttPage( nSttPage );
+ eMvMode = SwPagePreViewWin::MV_CALC; goto MOVEPAGE;
+
+ case FN_LINE_UP:
+ case FN_LINE_DOWN:
+//??? if( !nSttPage && 1 < nLineSz )
+// --nLineSz;
+
+ if( FN_LINE_UP == rReq.GetSlot() )
+ {
+ if( nSttPage > nLineSz )
+ nSttPage -= nLineSz;
+ else
+ nSttPage = nDefSttPg;
+ }
+ else
+ {
+ if( nSttPage + nLineSz <= nLastSttPg )
+ nSttPage += nLineSz;
+ else
+ nSttPage = nLastSttPg;
+ }
+
+ if( nSttPage == aViewWin.GetSttPage() )
+ {
+ // keine Aenderung
+ bRefresh = FALSE;
+ break;
+ }
+
+ aViewWin.SetSttPage( nSttPage );
+ eMvMode = SwPagePreViewWin::MV_CALC; goto MOVEPAGE;
+
+ case FN_PAGEUP:
+ eMvMode = SwPagePreViewWin::MV_PAGE_UP; goto MOVEPAGE;
+ case FN_PAGEDOWN:
+ eMvMode = SwPagePreViewWin::MV_PAGE_DOWN; goto MOVEPAGE;
+
+ case FN_START_OF_DOCUMENT:
+ eMvMode = SwPagePreViewWin::MV_DOC_STT; bRetVal = TRUE; goto MOVEPAGE;
+ case FN_END_OF_DOCUMENT:
+ eMvMode = SwPagePreViewWin::MV_DOC_END; bRetVal = TRUE; goto MOVEPAGE;
+MOVEPAGE:
+ {
+ int nRet = ChgPage( eMvMode, TRUE );
+ // return value fuer Basic
+ if(bRetVal)
+ rReq.SetReturnValue(SfxBoolItem(rReq.GetSlot(), nRet == 0));
+
+ bRefresh = 0 != nRet;
+ }
+ break;
+
+ case FN_PRINT_PAGEPREVIEW:
+ {
+ const SwPagePreViewPrtData* pPPVPD = aViewWin.GetViewShell()->GetDoc()->GetPreViewPrtData();
+ // die Sache mit der Orientation
+ if(pPPVPD)
+ {
+ SfxPrinter* pPrinter = GetPrinter();
+ if((pPrinter->GetOrientation() == ORIENTATION_LANDSCAPE)
+ != pPPVPD->GetLandscape())
+ pPrinter->SetOrientation(pPPVPD->GetLandscape() ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);
+ }
+ ::SetAppPrintOptions( aViewWin.GetViewShell(), FALSE );
+ bNormalPrint = FALSE;
+ USHORT nPrtSlot = SID_PRINTDOC;
+ rReq.SetSlot( nPrtSlot );
+ SfxViewShell::ExecuteSlot( rReq, SfxViewShell::GetInterface() );
+ rReq.SetSlot( FN_PRINT_PAGEPREVIEW );
+ return;
+ }
+ case FN_PREVIEW_PRINT_OPTIONS :
+ {
+ SwPreviewPrintOptionsDialog aDlg(aViewWin, *this);
+ aDlg.Execute();
+ }
+ break;
+ case SID_PRINTDOCDIRECT:
+ case SID_PRINTDOC:
+ ::SetAppPrintOptions( aViewWin.GetViewShell(), FALSE );
+ bNormalPrint = TRUE;
+ SfxViewShell::ExecuteSlot( rReq, SfxViewShell::GetInterface() );
+ return;
+ case SID_PRINTPREVIEW:
+ // print preview is now always in the same frame as the tab view
+ // -> always switch this frame back to normal view
+ // (ScTabViewShell ctor reads stored view data)
+ GetViewFrame()->GetBindings().Execute( SID_VIEWSHELL0, NULL, 0,
+ SFX_CALLMODE_ASYNCHRON );
+ break;
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+
+ if( bRefresh )
+ aViewWin.Invalidate();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::GetState( SfxItemSet& rSet )
+{
+ SfxWhichIter aIter(rSet);
+ BYTE nRow = 1;
+ USHORT nWhich = aIter.FirstWhich();
+ ASSERT(nWhich, leeres Set);
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case FN_START_OF_DOCUMENT:
+ case FN_PAGEUP:
+ if( aViewWin.GetSttPage() == aViewWin.GetDefSttPage() )
+ rSet.DisableItem(nWhich);
+ break;
+
+ case FN_PAGEDOWN:
+ case FN_END_OF_DOCUMENT:
+ {
+ USHORT nNextPg = ( aViewWin.GetRow() * aViewWin.GetCol() ) +
+ aViewWin.GetSttPage() - 1;
+
+ if( nNextPg >= nPageCount )
+ rSet.DisableItem( nWhich );
+ }
+ break;
+
+ case FN_STAT_PAGE:
+ {
+ String aStr( sPageStr );
+ aViewWin.GetStatusStr( aStr, nPageCount );
+ rSet.Put( SfxStringItem( nWhich, aStr) );
+ }
+ break;
+
+ case SID_ATTR_ZOOM:
+ case FN_STAT_ZOOM:
+ {
+ String aStr( String::CreateFromInt32( aViewWin.GetRow() ) );
+ (aStr += 'x') += String::CreateFromInt32( aViewWin.GetCol() );
+ rSet.Put( SfxStringItem( nWhich, aStr) );
+ }
+ break;
+
+ case FN_SHOW_FOUR_PAGES:
+ nRow = 2;
+ // kein break;
+
+ case FN_SHOW_TWO_PAGES:
+ if( 2 == aViewWin.GetCol() && nRow == aViewWin.GetRow() )
+ rSet.DisableItem( nWhich );
+ break;
+
+ case FN_PRINT_PAGEPREVIEW:
+ // hat den gleichen Status wie das normale Drucken
+ {
+ const SfxPoolItem* pItem;
+ SfxItemSet aSet( *rSet.GetPool(), SID_PRINTDOC, SID_PRINTDOC );
+ GetSlotState( SID_PRINTDOC, SfxViewShell::GetInterface(), &aSet );
+ if( SFX_ITEM_SET == aSet.GetItemState( SID_PRINTDOC,
+ FALSE, &pItem ))
+ {
+ ((SfxPoolItem*)pItem)->SetWhich( FN_PRINT_PAGEPREVIEW );
+ rSet.Put( *pItem );
+ }
+ }
+ break;
+
+ case SID_PRINTPREVIEW:
+ rSet.Put( SfxBoolItem( nWhich, TRUE ) );
+ break;
+
+ case SID_PRINTDOC:
+ case SID_PRINTDOCDIRECT:
+ GetSlotState( nWhich, SfxViewShell::GetInterface(), &rSet );
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::StateUndo(SfxItemSet& rSet)
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+
+ while (nWhich)
+ {
+ rSet.DisableItem(nWhich);
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::Init(const SwViewOption * pPrefs)
+{
+ if ( GetViewShell().HasDrawView() )
+ GetViewShell().GetDrawView()->SetAnimationEnabled( FALSE );
+
+ bNormalPrint = TRUE;
+
+ // Die DocSize erfragen und verarbeiten. Ueber die Handler konnte
+ // die Shell nicht gefunden werden, weil die Shell innerhalb CTOR-Phase
+ // nicht in der SFX-Verwaltung bekannt ist.
+
+ if( !pPrefs )
+ pPrefs = SW_MOD()->GetUsrPref(FALSE);
+
+ // die Felder aktualisieren
+ // ACHTUNG: hochcasten auf die EditShell, um die SS zu nutzen.
+ // In den Methoden wird auf die akt. Shell abgefragt!
+ SwEditShell* pESh = (SwEditShell*)&GetViewShell();
+ BOOL bIsModified = pESh->IsModified();
+
+
+ SwViewOption aOpt( *pPrefs );
+ aOpt.SetTab( FALSE );
+ aOpt.SetBlank( FALSE );
+ aOpt.SetHardBlank( FALSE );
+ aOpt.SetParagraph( FALSE );
+ aOpt.SetLineBreak( FALSE );
+ aOpt.SetPageBreak( FALSE );
+ aOpt.SetColumnBreak( FALSE );
+ aOpt.SetSoftHyph( FALSE );
+ aOpt.SetTox( FALSE );
+ aOpt.SetRef( FALSE );
+ aOpt.SetFldName( FALSE );
+ aOpt.SetField( FALSE );
+ aOpt.SetFootNote( FALSE );
+ aOpt.SetPostIts( FALSE );
+ aOpt.SetHidden( FALSE );
+ aOpt.SetSubsLines( FALSE );
+ aOpt.SetViewVLin( FALSE );
+ aOpt.SetViewTabwin( FALSE );
+ aOpt.SetGraphic( TRUE );
+ aOpt.SetTable( TRUE );
+ aOpt.SetSubsTable( FALSE );
+ aOpt.SetSnap( FALSE );
+ aOpt.SetGridVisible( FALSE );
+ aOpt.SetHideSpell( TRUE );
+ aOpt.SetIndexBackground( FALSE );
+ aOpt.SetSectionBounds( FALSE );
+ GetViewShell().ApplyViewOptions( aOpt );
+
+ if( pESh->GetDoc()->IsBrowseMode() )
+ {
+ pESh->GetDoc()->SetBrowseMode( FALSE );
+ pESh->CheckBrowseView( TRUE );
+ }
+
+ pESh->GetPrt( TRUE );
+
+ GetViewShell().CalcLayout();
+ DocSzChgd( GetViewShell().GetDocSize() );
+
+ if( !bIsModified )
+ pESh->ResetModified();
+
+ if(pPrefs->IsViewVScrollBar())
+ CreateVScrollbar();
+ if(pPrefs->IsViewHScrollBar())
+ CreateHScrollbar();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwPagePreView::SwPagePreView(SfxViewFrame *pFrame, SfxViewShell* pOldSh):
+ SfxViewShell( pFrame, SWVIEWFLAGS ),
+ aViewWin( &pFrame->GetWindow(), *this ),
+ pHScrollbar(0),
+ pVScrollbar(0),
+ pPageUpBtn(0),
+ pPageDownBtn(0),
+ pScrollFill(0),
+ sPageStr( SW_RES(STR_PAGE) ),
+ nPageCount( 0 )
+{
+ SetName(String::CreateFromAscii("PageView" ));
+ SetWindow( &aViewWin );
+ SetHelpId(SW_PAGEPREVIEW);
+
+ SfxObjectShell* pObjShell = pFrame->GetObjectShell();
+ if ( !pOldSh )
+ {
+ //Gibt es schon eine Sicht auf das Dokument?
+ SfxViewFrame *pF = SfxViewFrame::GetFirst( pObjShell );
+ if ( pF == pFrame )
+ pF = SfxViewFrame::GetNext( *pF, pObjShell );
+ if ( pF )
+ pOldSh = pF->GetViewShell();
+ }
+
+ ViewShell *pVS, *pNew;
+
+ if( pOldSh && pOldSh->IsA( TYPE( SwPagePreView ) ) )
+ pVS = &((SwPagePreView*)pOldSh)->GetViewShell();
+ else
+ {
+ if( pOldSh && pOldSh->IsA( TYPE( SwView ) ) )
+ {
+ pVS = ((SwView*)pOldSh)->GetWrtShellPtr();
+ // save the current ViewData of the previous SwView
+ pOldSh->WriteUserData( sSwViewData, FALSE );
+ }
+ else
+ pVS = GetDocShell()->GetWrtShell();
+ if( pVS )
+ {
+ // setze die akt. Seite als die erste
+ USHORT nPhysPg, nVirtPg;
+ ((SwCrsrShell*)pVS)->GetPageNum( nPhysPg, nVirtPg, /*FALSE*/TRUE, FALSE );
+ if( 1 != aViewWin.GetCol() && 1 == nPhysPg )
+ --nPhysPg;
+ aViewWin.SetSttPage( nPhysPg );
+ }
+ }
+
+ if( pVS )
+ pNew = new ViewShell( pVS, &aViewWin, 0, VSHELLFLAG_ISPREVIEW );
+ else
+ {
+ SwDoc* pDoc = ((SwDocShell*)pFrame->GetObjectShell())->GetDoc();
+ pNew = new ViewShell( pDoc, ::GetSpellChecker(), ::GetHyphenator(),
+ &aViewWin, 0, 0, VSHELLFLAG_ISPREVIEW );
+ }
+
+ aViewWin.SetViewShell( pNew );
+ pNew->SetSfxViewShell( this );
+ Init();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+ SwPagePreView::~SwPagePreView()
+{
+ SetWindow( 0 );
+
+ delete pScrollFill;
+ delete pHScrollbar;
+ delete pVScrollbar;
+ delete pPageUpBtn;
+ delete pPageDownBtn;
+
+/* SfxObjectShell* pDocSh = GetDocShell();
+ TypeId aType = TYPE( SfxTopViewFrame );
+
+ for( SfxViewFrame *pFrame = SfxViewFrame::GetFirst( pDocSh, aType );
+ pFrame; pFrame = SfxViewFrame::GetNext( *pFrame, pDocSh, aType ) )
+ if( pFrame != GetViewFrame() )
+ {
+ // es gibt noch eine weitere Sicht auf unser Dokument, also
+ // aktiviere dieses
+ pFrame->GetFrame()->Appear();
+ break;
+ }
+*/}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwDocShell* SwPagePreView::GetDocShell()
+{
+ return PTR_CAST(SwDocShell, GetViewFrame()->GetObjectShell());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+int SwPagePreView::_CreateScrollbar( int bHori )
+{
+ Window *pMDI = &GetViewFrame()->GetWindow();
+ SwScrollbar** ppScrollbar = bHori ? &pHScrollbar : &pVScrollbar;
+
+ ASSERT( !*ppScrollbar, "vorher abpruefen!" )
+
+ if( !bHori )
+ {
+
+ pPageUpBtn = new ImageButton(pMDI, SW_RES( BTN_PAGEUP ) );
+ pPageUpBtn->SetHelpId(FN_PAGEUP);
+ pPageDownBtn = new ImageButton(pMDI, SW_RES( BTN_PAGEDOWN ) );
+ pPageDownBtn->SetHelpId(FN_PAGEDOWN);
+ Link aLk( LINK( this, SwPagePreView, BtnPage ) );
+ pPageUpBtn->SetClickHdl( aLk );
+ pPageDownBtn->SetClickHdl( aLk );
+ pPageUpBtn->Show();
+ pPageDownBtn->Show();
+ }
+
+ // wenn beide Scrollbar eingeschaltet werden, dann auch die ScrollbarBox
+ // anlegen
+ if( !pScrollFill && (bHori ? pVScrollbar : pHScrollbar) )
+ {
+ pScrollFill = new ScrollBarBox( pMDI, GetDocShell()->IsInFrame()
+ ? 0 : WB_SIZEABLE );
+ pScrollFill->Show();
+ }
+
+ *ppScrollbar = new SwScrollbar( pMDI, bHori );
+
+ if( !bHori )
+ {
+ VScrollDocSzChg();
+ (*ppScrollbar)->EnableDrag( TRUE );
+ (*ppScrollbar)->SetEndScrollHdl( LINK( this, SwPagePreView, EndScrollHdl ));
+ }
+ else
+ {
+ (*ppScrollbar)->SetRangeMax( 0 );
+ (*ppScrollbar)->SetThumbPos( 0 );
+ (*ppScrollbar)->SetLineSize( 0 );
+ (*ppScrollbar)->SetPageSize( 0 );
+ }
+
+
+ (*ppScrollbar)->SetScrollHdl( LINK( this, SwPagePreView, ScrollHdl ));
+
+ InvalidateBorder();
+ (*ppScrollbar)->Show();
+ return 1;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+int SwPagePreView::_KillScrollbar( int bHori )
+{
+ SwScrollbar** ppScrBar;
+ if( bHori )
+ {
+ if( 0 == *( ppScrBar = &pHScrollbar ) )
+ return 1;
+ }
+ else
+ {
+ if( 0 == *( ppScrBar = &pVScrollbar ) )
+ return 1;
+ DELETEZ(pPageUpBtn);
+ DELETEZ(pPageDownBtn);
+ }
+
+ DELETEZ( *ppScrBar );
+
+ // wird einer der Scrollbar ausgeschaltet, muss auch die ScrollbarBox
+ // entfernt werden
+ if( pScrollFill )
+ DELETEZ( pScrollFill );
+
+ InvalidateBorder();
+ return 1;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+/*
+ * Button-Handler
+ */
+IMPL_LINK_INLINE_START( SwPagePreView, BtnPage, Button *, pButton )
+{
+ int eMvMode = pButton == pPageUpBtn
+ ? SwPagePreViewWin::MV_PAGE_UP
+ : SwPagePreViewWin::MV_PAGE_DOWN;
+ if( ChgPage( eMvMode ) )
+ aViewWin.Invalidate();
+ return 0;
+}
+IMPL_LINK_INLINE_END( SwPagePreView, BtnPage, Button *, pButton )
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+int SwPagePreView::ChgPage( int eMvMode, int bUpdateScrollbar )
+{
+ Rectangle aPixVisArea( aViewWin.LogicToPixel( aVisArea ) );
+ int bChg = aViewWin.MovePage( eMvMode ) ||
+ eMvMode == SwPagePreViewWin::MV_CALC;
+ aVisArea = aViewWin.PixelToLogic( aPixVisArea );
+
+ if( bChg )
+ {
+ // Statusleiste updaten
+ String aStr( sPageStr );
+ aViewWin.GetStatusStr( aStr, nPageCount );
+ SfxBindings& rBindings = GetViewFrame()->GetBindings();
+
+ if( bUpdateScrollbar )
+ {
+ if( pVScrollbar )
+ VScrollViewSzChg();
+
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ FN_START_OF_DOCUMENT, FN_END_OF_DOCUMENT,
+ FN_PAGEUP, FN_PAGEDOWN, 0
+ };
+ rBindings.Invalidate( aInval );
+ }
+ rBindings.SetState( SfxStringItem( FN_STAT_PAGE, aStr ) );
+ }
+ return bChg;
+}
+
+
+/* */
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+// ab hier alles aus der SwView uebernommen
+
+
+void SwPagePreView::CalcAndSetBorderPixel( SvBorder &rToFill, FASTBOOL bInner )
+{
+// const long nAdd = bInner ? 0 : ScrollBar::GetWindowOverlapPixel();
+ const StyleSettings &rSet = aViewWin.GetSettings().GetStyleSettings();
+ const long nTmp = rSet.GetScrollBarSize();// - nAdd;
+ if ( pVScrollbar )
+ rToFill.Right() = nTmp;
+ if ( pHScrollbar )
+ rToFill.Bottom() = nTmp;
+ SetBorderPixel( rToFill );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::InnerResizePixel( const Point &rOfst, const Size &rSize )
+{
+ SvBorder aBorder;
+ CalcAndSetBorderPixel( aBorder, TRUE );
+ Rectangle aRect( rOfst, rSize );
+ aRect += aBorder;
+ ViewResizePixel( aViewWin, aRect.TopLeft(), aRect.GetSize(),
+ aViewWin.GetOutputSizePixel(),
+ TRUE,
+ pVScrollbar, pHScrollbar, pPageUpBtn, pPageDownBtn, 0,
+ pScrollFill );
+
+ //EditWin niemals einstellen!
+ //VisArea niemals einstellen!
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::OuterResizePixel( const Point &rOfst, const Size &rSize )
+{
+ SvBorder aBorder;
+ CalcAndSetBorderPixel( aBorder, FALSE );
+ ViewResizePixel( aViewWin, rOfst, rSize, aViewWin.GetOutputSizePixel(),
+ FALSE, pVScrollbar,
+ pHScrollbar, pPageUpBtn, pPageDownBtn, 0, pScrollFill );
+
+ //EditWin niemals einstellen!
+
+ Size aTmpSize( aViewWin.GetOutputSizePixel() );
+ Point aBottomRight( aViewWin.PixelToLogic( Point( aTmpSize.Width(), aTmpSize.Height() ) ) );
+ SetVisArea( Rectangle( Point(), aBottomRight ) );
+
+ //Aufruf der DocSzChgd-Methode der Scrollbars ist noetig, da vom maximalen
+ //Scrollrange immer die halbe Hoehe der VisArea abgezogen wird.
+ if ( pVScrollbar )
+ VScrollDocSzChg();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::SetVisArea( const Rectangle &rRect, BOOL bUpdateScrollbar )
+{
+ const Point aTopLeft(AlignToPixel(rRect.TopLeft()));
+ const Point aBottomRight(AlignToPixel(rRect.BottomRight()));
+ Rectangle aLR(aTopLeft,aBottomRight);
+
+ if(aLR == aVisArea)
+ return;
+ // keine negative Position, keine neg. Groesse
+
+ if(aLR.Top() < 0)
+ {
+ aLR.Bottom() += Abs(aLR.Top());
+ aLR.Top() = 0;
+ }
+
+ if(aLR.Left() < 0)
+ {
+ aLR.Right() += Abs(aLR.Left());
+ aLR.Left() = 0;
+ }
+ if(aLR.Right() < 0) aLR.Right() = 0;
+ if(aLR.Bottom() < 0) aLR.Bottom() = 0;
+ if(aLR == aVisArea ||
+ // JP 29.10.97: Bug 45173 - Leeres Rechteck nicht beachten
+ ( 0 == aLR.Bottom() - aLR.Top() && 0 == aLR.Right() - aLR.Left() ) )
+ return;
+
+ if( aLR.Left() > aLR.Right() || aLR.Top() > aLR.Bottom() )
+ return;
+
+ //Bevor die Daten veraendert werden ggf. ein Update rufen. Dadurch wird
+ //sichergestellt, daá anliegende Paints korrekt in Dokumentkoordinaten
+ //umgerechnet werden.
+ //Vorsichtshalber tun wir das nur wenn an der Shell eine Action laeuft,
+ //denn dann wir nicht wirklich gepaintet sondern die Rechtecke werden
+ //lediglich (in Dokumentkoordinaten) vorgemerkt.
+ if( GetViewShell().ActionPend() )
+ aViewWin.Update();
+
+ // setze am View-Win die aktuelle Size
+ aVisArea = aLR;
+ aViewWin.SetWinSize( aLR.GetSize() );
+ ChgPage( SwPagePreViewWin::MV_CALC, bUpdateScrollbar );
+
+ aViewWin.Invalidate();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwPagePreView, ScrollHdl, SwScrollbar *, pScrollbar )
+{
+ if( !pScrollbar->IsHoriScroll() &&
+ pScrollbar->GetType() == SCROLL_DRAG && Help::IsQuickHelpEnabled())
+ {
+ // wieviele Seiten scrollen ??
+ String sStateStr(sPageStr);
+ USHORT nThmbPos = (USHORT)pScrollbar->GetThumbPos();
+ if( 1 == aViewWin.GetCol() || !nThmbPos )
+ ++nThmbPos;
+ sStateStr += String::CreateFromInt32( nThmbPos );
+ Point aPos = pScrollbar->GetParent()->OutputToScreenPixel(
+ pScrollbar->GetPosPixel());
+ aPos.Y() = pScrollbar->OutputToScreenPixel(pScrollbar->GetPointerPosPixel()).Y();
+ Size aSize = pScrollbar->GetSizePixel();
+ Rectangle aRect;
+ aRect.Left() = aPos.X() -8;
+ aRect.Right() = aRect.Left();
+ aRect.Top() = aPos.Y();
+ aRect.Bottom() = aRect.Top();
+
+ Help::ShowQuickHelp(pScrollbar, aRect, sStateStr,
+ QUICKHELP_RIGHT|QUICKHELP_VCENTER);
+
+ }
+ else
+ EndScrollHdl( pScrollbar );
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwPagePreView, EndScrollHdl, SwScrollbar *, pScrollbar )
+{
+ if( !pScrollbar->IsHoriScroll() ) // nur Vertikal auswerten
+ {
+ if(Help::IsQuickHelpEnabled())
+ Help::ShowQuickHelp(pScrollbar, Rectangle(), aEmptyStr, 0);
+ // wieviele Seiten scrollen ??
+ USHORT nThmbPos = pScrollbar->GetThumbPos();
+ if( 1 == aViewWin.GetCol() )
+ ++nThmbPos;
+ if( nThmbPos != aViewWin.GetSttPage() )
+ {
+ aViewWin.SetSttPage( nThmbPos );
+ ChgPage( SwPagePreViewWin::MV_CALC, FALSE );
+
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ FN_START_OF_DOCUMENT, FN_END_OF_DOCUMENT, FN_PAGEUP, FN_PAGEDOWN, 0
+ };
+#ifndef PRODUCT
+ {
+ const USHORT* pPtr = aInval + 1;
+ do {
+ ASSERT( *(pPtr - 1) < *pPtr, "falsche Sortierung!" );
+ } while( *++pPtr );
+ }
+#endif
+
+ SfxBindings& rBindings = GetViewFrame()->GetBindings();
+ rBindings.Invalidate( aInval );
+ aViewWin.Invalidate();
+ }
+ }
+ return 0;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+Point SwPagePreView::AlignToPixel(const Point &rPt) const
+{
+ return aViewWin.PixelToLogic( aViewWin.LogicToPixel( rPt ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::DocSzChgd( const Size &rSz )
+{
+ if( aDocSz == rSz )
+ return;
+
+ aDocSz = rSz;
+
+ // die neue Anzahl von Seiten bestimmen
+ USHORT nNewCnt = GetViewShell().GetNumPages();
+ if( nNewCnt == nPageCount )
+ return;
+
+ // dann eine neue Startseite berechnen
+ nPageCount = nNewCnt;
+ if( aVisArea.GetWidth() )
+ {
+ ChgPage( SwPagePreViewWin::MV_CALC, TRUE );
+
+ if( pVScrollbar )
+ VScrollDocSzChg();
+
+ aViewWin.Invalidate();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::VScrollViewSzChg()
+{
+ USHORT nVisPage = aViewWin.GetRow() * aViewWin.GetCol(),
+ nLineSz = 1 < nVisPage ? nVisPage / 2 : 1,
+ nSttPg = aViewWin.GetSttPage();
+
+ if( nSttPg && 1 == aViewWin.GetCol() )
+ --nSttPg;
+
+ pVScrollbar->SetVisibleSize( nVisPage );
+ pVScrollbar->SetThumbPos( nSttPg );
+
+ pVScrollbar->SetLineSize( nLineSz );
+ pVScrollbar->SetPageSize( nVisPage );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreView::VScrollDocSzChg()
+{
+ if( pVScrollbar )
+ {
+ USHORT nPgCnt = nPageCount;
+ if( 1 < aViewWin.GetCol() )
+ ++nPgCnt; /* die 0. Seite! */
+ pVScrollbar->SetRangeMax( nPgCnt );
+ VScrollViewSzChg();
+ }
+}
+
+
+/* */
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+// alles zum Thema Drucken
+
+USHORT SwPagePreView::Print( SfxProgress &rProgress, PrintDialog *pDlg )
+{
+ SwWait aWait( *GetDocShell(), TRUE );
+
+ USHORT nRowCol = ( aViewWin.GetRow() << 8 ) +
+ aViewWin.GetCol(); // Zeilen / DoppelSeiten
+
+ ViewShell* pSh = aViewWin.GetViewShell();
+
+ {
+ // die Felder aktualisieren
+ // ACHTUNG: hochcasten auf die EditShell, um die SS zu nutzen.
+ // In den Methoden wird auf die akt. Shell abgefragt!
+ SwEditShell* pESh = (SwEditShell*)pSh;
+ SwDocStat aDocStat;
+ BOOL bIsModified = pESh->IsModified();
+
+ pESh->StartAllAction();
+ pESh->UpdateDocStat( aDocStat );
+ pSh->UpdateFlds();
+ pESh->EndAllAction();
+
+ if( !bIsModified )
+ pESh->ResetModified();
+ }
+
+ // Druckauftrag starten
+ SfxObjectShell *pObjShell = GetViewFrame()->GetObjectShell();
+ SwPrtOptions aOpts( pObjShell->GetTitle(0) );
+
+ BOOL bPrtPros;
+ ::MakeOptions( pDlg, aOpts, &bPrtPros, FALSE, GetPrinter() );
+
+ if( bNormalPrint )
+ {
+ if( bPrtPros )
+ pSh->PrintProspect( aOpts, rProgress );
+ else
+ pSh->Prt( aOpts, rProgress );
+ }
+ else
+ {
+ const SwPagePreViewPrtData* pPPVPD = pSh->GetDoc()->GetPreViewPrtData();
+ if( pPPVPD && pPPVPD->GetCol() && pPPVPD->GetRow() )
+ {
+ // Zeilen / Seiten
+ nRowCol = ( pPPVPD->GetRow() << 8 ) + pPPVPD->GetCol();
+ }
+ else
+ pPPVPD = 0;
+ pSh->PrintPreViewPage( aOpts, nRowCol, rProgress, pPPVPD );
+ }
+
+ return 0; // OK
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SfxPrinter* SwPagePreView::GetPrinter( BOOL bCreate )
+{
+ return aViewWin.GetViewShell()->GetPrt( bCreate );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+USHORT SwPagePreView::SetPrinter( SfxPrinter *pNew, USHORT nDiffFlags )
+{
+ ViewShell &rSh = GetViewShell();
+ SwEditShell &rESh = (SwEditShell&)rSh; //Buh...
+ if( ( SFX_PRINTER_PRINTER | SFX_PRINTER_JOBSETUP ) & nDiffFlags )
+ {
+ rSh.SetPrt( pNew );
+ if( nDiffFlags & SFX_PRINTER_PRINTER )
+ rESh.SetModified();
+ }
+ if ( ( nDiffFlags & SFX_PRINTER_OPTIONS ) == SFX_PRINTER_OPTIONS )
+ ::SetPrinter( pNew, FALSE );
+
+ const BOOL bChgOri = nDiffFlags & SFX_PRINTER_CHG_ORIENTATION ? TRUE : FALSE;
+ const BOOL bChgSize= nDiffFlags & SFX_PRINTER_CHG_SIZE ? TRUE : FALSE;
+ if ( bChgOri || bChgSize )
+ {
+ rESh.StartAllAction();
+ if ( bChgOri )
+ rSh.ChgAllPageOrientation( USHORT(pNew->GetOrientation()) );
+ if ( bChgSize )
+ {
+ Size aSz( SvxPaperInfo::GetPaperSize( pNew ) );
+ rSh.ChgAllPageSize( aSz );
+ }
+ if( !bNormalPrint )
+ aViewWin.CalcWish( aViewWin.GetRow(), aViewWin.GetCol() );
+ rESh.SetModified();
+ rESh.EndAllAction();
+
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_LONG_ULSPACE, SID_ATTR_LONG_LRSPACE,
+ SID_RULER_BORDERS, SID_RULER_PAGE_POS, 0
+ };
+#ifndef PRODUCT
+ {
+ const USHORT* pPtr = aInval + 1;
+ do {
+ ASSERT( *(pPtr - 1) < *pPtr, "falsche Sortierung!" );
+ } while( *++pPtr );
+ }
+#endif
+
+ GetViewFrame()->GetBindings().Invalidate(aInval);
+ }
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SfxTabPage* SwPagePreView::CreatePrintOptionsPage( Window *pParent,
+ const SfxItemSet &rOptions )
+{
+ return ::CreatePrintOptionsPage( pParent, rOptions, !bNormalPrint );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+PrintDialog* SwPagePreView::CreatePrintDialog( Window *pParent )
+{
+ PrintDialog *pDlg = ::CreatePrintDialog( pParent, 1, 0 );
+ pDlg->DisableRange( PRINTDIALOG_SELECTION );
+ return pDlg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+Size SwPagePreView::GetOptimalSizePixel() const
+{
+ //JP 09.06.99: was wird hier errechnet ?????
+/* ALT:
+ SfxApplicationWindow* pWin = SFX_APPWINDOW ;
+ Rectangle aRect = pWin->GetClientAreaPixel();
+*/
+ Window& rWin = GetViewFrame()->GetWindow();
+ Rectangle aRect( Point(0, 0), rWin.GetOutputSizePixel() );
+ Size aMaxSize( aRect.GetWidth(), aRect.GetHeight() );
+ Size aInSize = rWin.GetOutputSizePixel();
+ Size aOutSize = rWin.GetSizePixel();
+ USHORT nXBorder = USHORT(aOutSize.Width() - aInSize.Width());
+ USHORT nYBorder = USHORT(aOutSize.Height() - aInSize.Height());
+ aMaxSize.Width() -= nXBorder;
+ //'auf Verdacht' etwas vom Border abziehen (Menue)
+ nYBorder -= (nYBorder - nXBorder) / 2;
+ aMaxSize.Height() -= nYBorder;
+ //mit der max. moeglichen Outputsize guenstigstes Verhaeltnis ausrechnen
+ aViewWin.GetOptimalSize(aMaxSize);
+ // Border wieder dazuzaehlen
+ aMaxSize.Height() += nYBorder;
+ aMaxSize.Width() += nXBorder;
+ return aMaxSize;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwPagePreViewWin::GetOptimalSize( Size& rSize ) const
+{
+ USHORT nRowCol = ( nRow << 8 ) + nCol;
+
+ Size aPageSize;
+ USHORT nVirtPage;
+ pViewShell->CalcPreViewPage( rSize, nRowCol,
+ nSttPage, aPageSize,
+ nVirtPage );
+
+ if(aPageSize.Width() && aPageSize.Height())
+ {
+ long nXRel = (long )aPageSize.Width() * nCol + (( nCol + 1) * 142);
+ nXRel /= rSize.Width();
+ long nYRel = aPageSize.Height() * nRow + (( nRow + 1) * 142);
+ nYRel /= rSize.Height();
+ //n?Rel geben das Verhaeltnis von benoetigten Pixeln zu
+ //vorhandenen Pixeln wieder
+ //Danach wird in der Richtung abgeschnitten, in der mehr Platz ist
+ if(nXRel < nYRel )
+ {
+ rSize.Width() *= nXRel;
+ rSize.Width() /= nYRel;
+ }
+ else
+ {
+ rSize.Height() *= nYRel;
+ rSize.Height() /= nXRel;
+ }
+ }
+}
+
+
+void SwPagePreViewWin::RepaintCoreRect( const SwRect& rRect )
+{
+ USHORT nRowCol = ( nRow << 8 ) + nCol;
+ pViewShell->RepaintCoreRect( rRect, nRowCol, nSttPage, aPgSize );
+}
+
+BOOL SwPagePreView::HandleWheelCommands( const CommandEvent& rCEvt )
+{
+ BOOL bOk = FALSE;
+ const CommandWheelData* pWData = rCEvt.GetWheelData();
+ if( pWData && COMMAND_WHEEL_ZOOM == pWData->GetMode() )
+ {
+ BYTE nRow = aViewWin.GetRow(), nCol = aViewWin.GetCol();
+ if( 0L > pWData->GetDelta() )
+ {
+ if( PVIEW_MIN_ROW < nRow ) --nRow;
+ if( PVIEW_MIN_COL < nCol ) --nCol;
+ }
+ else
+ {
+ if( PVIEW_MAX_ROW > nRow ) ++nRow;
+ if( PVIEW_MAX_COL > nCol ) ++nCol;
+ }
+ aViewWin.CalcWish( nRow, nCol );
+ aViewWin.Invalidate();
+ bOk = TRUE;
+ }
+ else
+ bOk = aViewWin.HandleScrollCommand( rCEvt, 0,
+ pVScrollbar && pVScrollbar->IsVisible(TRUE) ? pVScrollbar : 0 );
+ return bOk;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.201 2000/09/18 16:06:10 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.200 2000/09/07 15:59:32 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.199 2000/08/14 17:25:29 jp
+ Task #77422#: PrintPreView in the same window
+
+ Revision 1.198 2000/08/07 11:48:15 jp
+ PagePreView replace the current view
+
+ Revision 1.197 2000/06/19 11:33:51 os
+ #73648# display all values after <standard> has been reset
+
+ Revision 1.196 2000/05/26 07:21:34 os
+ old SW Basic API Slots removed
+
+ Revision 1.195 2000/05/23 19:42:35 jp
+ Bugfixes for Unicode
+
+ Revision 1.194 2000/05/11 12:41:59 tl
+ if[n]def ONE_LINGU entfernt
+
+ Revision 1.193 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.192 2000/04/18 15:02:50 os
+ UNICODE
+
+ Revision 1.191 2000/03/23 16:17:01 os
+ #74433# dont show section boundaries in print preview
+
+ Revision 1.190 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.189 2000/02/11 14:59:07 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.188 2000/01/04 15:40:55 os
+ #71433# no index background in preview
+
+ Revision 1.187 1999/12/14 14:32:01 jp
+ Bug #69595#: print can create single Jobs
+
+ Revision 1.186 1999/10/25 19:42:26 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.185 1999/09/10 13:19:10 os
+ Chg: resource types removed
+
+ Revision 1.184 1999/08/31 08:40:12 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.183 31 Aug 1999 10:40:12 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.182 08 Jul 1999 18:45:16 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.181 10 Jun 1999 10:52:32 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.180 09 Jun 1999 19:33:28 JP
+ have to change: no cast from GetpApp to SfxApp/OffApp, SfxShell only subclass of SfxApp
+
+ Rev 1.179 11 May 1999 08:41:40 OS
+ #65779# SaveValue nach hinten verschoben
+
+ Rev 1.178 08 Apr 1999 10:59:12 OS
+ #61864# Controls jetzt auch initial leer, wenn noch nichts gesetzt ist
+
+ Rev 1.177 10 Mar 1999 12:02:54 MA
+ #52642# Fontwechsel im DataChanged
+
+ Rev 1.176 02 Mar 1999 16:03:28 AMA
+ Fix #62568#: Invalidierungen so sparsam wie moeglich, so gruendlich wie noetig
+
+ Rev 1.175 01 Mar 1999 13:54:40 JP
+ #62496# VScrollbar IMMER pruefen
+
+ Rev 1.174 26 Feb 1999 15:07:28 OS
+ #62496# VScrollbar IMMER pruefen
+
+ Rev 1.173 12 Nov 1998 12:24:26 OS
+ #59297# Einstellungen bei Standard zuruecksetzen
+
+ Rev 1.172 29 Oct 1998 11:52:40 OM
+ #58593# Selektion nur anbieten, wenn auch vorhanden
+
+ Rev 1.171 15 Oct 1998 13:39:20 OS
+ #57602# printPages mit optionen
+
+ Rev 1.170 29 Sep 1998 14:35:44 OS
+ #57281#, #57264# Zoom der Preview mit Controller, Preview-Close ueber eigenen Slot
+
+*************************************************************************/
+
diff --git a/sw/source/ui/uiview/pview.hrc b/sw/source/ui/uiview/pview.hrc
new file mode 100644
index 000000000000..417177c09dfb
--- /dev/null
+++ b/sw/source/ui/uiview/pview.hrc
@@ -0,0 +1,108 @@
+/*************************************************************************
+ *
+ * $RCSfile: pview.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "view.hrc"
+
+#define FT_COL 1
+#define FT_ROW 2
+#define ED_COL 4
+#define ED_ROW 5
+#define GB_PREVIEW 10
+
+#define BT_OK 20
+#define BT_CANCEL 21
+#define BT_HELP 22
+
+// Grenzwerte fuers Zooming (werden auch im piew.cxx benutzt!)
+#define PVIEW_MIN_ROW 1
+#define PVIEW_MAX_ROW 10
+#define PVIEW_MIN_COL 1
+#define PVIEW_MAX_COL 20
+
+//Dialog Druckoptionen
+#define GB_ROWCOL 1
+#define FT_ROWS 2
+#define NF_ROWS 3
+#define FT_COLS 4
+#define NF_COLS 5
+#define GB_MARGINS 6
+#define GB_DISTANCE 7
+#define GB_ORIENTATION 8
+
+#define GB_PREVIEW 10
+#define WIN_PREVIEW 11
+
+
+#define FT_LMARGIN 12
+#define MF_LMARGIN 13
+#define FT_RMARGIN 14
+#define MF_RMARGIN 15
+#define FT_TMARGIN 16
+#define MF_TMARGIN 17
+#define FT_BMARGIN 18
+#define MF_BMARGIN 19
+#define FT_HMARGIN 20
+#define MF_HMARGIN 21
+#define FT_VMARGIN 22
+#define MF_VMARGIN 23
+#define PB_STANDARD 24
+
+#define RB_LANDSCAPE 24
+#define RB_PORTRAIT 25
diff --git a/sw/source/ui/uiview/pview.src b/sw/source/ui/uiview/pview.src
new file mode 100644
index 000000000000..e7a1a810f057
--- /dev/null
+++ b/sw/source/ui/uiview/pview.src
@@ -0,0 +1,988 @@
+/*************************************************************************
+ *
+ * $RCSfile: pview.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include <svx/svxids.hrc>
+#include "pview.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+ModalDialog DLG_PAGEPREVIEW_PRINTOPTIONS
+{
+ HelpID = HID_DLG_PRV_PRT_OPTIONS ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Moveable = TRUE ;
+ Size = MAP_APPFONT ( 312 , 131 ) ;
+ Text = "Druckoptionen" ;
+ Text [ ENGLISH ] = "Print options" ;
+ GroupBox GB_ROWCOL
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 150 , 26 ) ;
+ Text = "Aufteilung" ;
+ Text [ English ] = "Aufteilung" ;
+
+ TEXT[ italian ] = "Distribuzione";
+ TEXT[ portuguese_brazilian ] = "Aufteilung";
+ TEXT[ portuguese ] = "Distribuição";
+ TEXT[ danish ] = "Opdeling";
+ TEXT[ french ] = "Répartition";
+ TEXT[ swedish ] = "Uppdelning";
+ TEXT[ dutch ] = "Verdeling";
+ TEXT[ spanish ] = "Distribución";
+ TEXT[ english_us ] = "Distribution";
+ TEXT[ chinese_simplified ] = "·Ö²¼";
+ TEXT[ russian ] = "Ðàñïðåäåëåíèå";
+ TEXT[ polish ] = "Rozdzielanie";
+ TEXT[ japanese ] = "•ªŠ„";
+ TEXT[ chinese_traditional ] = "¤À¥¬";
+ TEXT[ arabic ] = "ÇáÊÞÓíã";
+ TEXT[ dutch ] = "Verdeling";
+ TEXT[ chinese_simplified ] = "·Ö²¼";
+ TEXT[ greek ] = "ÊáôáíïìÞ";
+ TEXT[ korean ] = "¹èÆ÷";
+ TEXT[ turkish ] = "Daðýlým";
+ TEXT[ language_user1 ] = " ";
+ };
+ FixedText FT_ROWS
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Zeilen" ;
+ Text [ ENGLISH ] = "~Rows" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "~Righe";
+ TEXT[ portuguese_brazilian ] = "~Zeilen";
+ TEXT[ portuguese ] = "~Linhas";
+ TEXT[ danish ] = "Rækker";
+ TEXT[ french ] = "~Lignes";
+ TEXT[ swedish ] = "~Rader";
+ TEXT[ dutch ] = "~Rijen";
+ TEXT[ spanish ] = "~Filas";
+ TEXT[ english_us ] = "~Rows";
+ TEXT[ chinese_simplified ] = "ÐÐ(~R)";
+ TEXT[ russian ] = "Ñòðîêè";
+ TEXT[ polish ] = "Wiersze";
+ TEXT[ japanese ] = "c(~R)";
+ TEXT[ chinese_traditional ] = "¦æ(~R)";
+ TEXT[ arabic ] = "ÕÝæÝ";
+ TEXT[ dutch ] = "~Rijen";
+ TEXT[ chinese_simplified ] = "ÐÐ(~R)";
+ TEXT[ greek ] = "ÃñáììÝò";
+ TEXT[ korean ] = "Çà(~R)";
+ TEXT[ turkish ] = "Sa~týr";
+ TEXT[ language_user1 ] = " ";
+ };
+ NumericField NF_ROWS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 45 , 14 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = PVIEW_MIN_ROW ;
+ Maximum = PVIEW_MAX_ROW ;
+ Value = 1 ;
+ First = PVIEW_MIN_COL ;
+ Last = PVIEW_MAX_COL ;
+ };
+ FixedText FT_COLS
+ {
+ Pos = MAP_APPFONT ( 84 , 15 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Spalten" ;
+ Text [ ENGLISH ] = "~Spalten" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "~Colonne";
+ TEXT[ portuguese_brazilian ] = "~Spalten";
+ TEXT[ portuguese ] = "~Colunas";
+ TEXT[ danish ] = "Kolonner";
+ TEXT[ french ] = "C~olonnes";
+ TEXT[ swedish ] = "Kolumner";
+ TEXT[ dutch ] = "~Kolommen";
+ TEXT[ spanish ] = "~Columnas";
+ TEXT[ english_us ] = "~Columns";
+ TEXT[ chinese_simplified ] = "À¸(~C)";
+ TEXT[ russian ] = "Êîëîíêè";
+ TEXT[ polish ] = "Kolumny";
+ TEXT[ japanese ] = "‰¡(~C)";
+ TEXT[ chinese_traditional ] = "Äæ(~C)";
+ TEXT[ arabic ] = "ÃÚãÏÉ";
+ TEXT[ dutch ] = "~Kolommen";
+ TEXT[ chinese_simplified ] = "À¸(~C)";
+ TEXT[ greek ] = "ÓôÞëåò";
+ TEXT[ korean ] = "¿­(~C)";
+ TEXT[ turkish ] = "~Sütun";
+ TEXT[ language_user1 ] = " ";
+ };
+ NumericField NF_COLS
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 117 , 14 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = PVIEW_MIN_COL ;
+ Maximum = PVIEW_MAX_COL ;
+ Value = 1 ;
+ First = PVIEW_MIN_COL ;
+ Last = PVIEW_MAX_COL ;
+ };
+ GroupBox GB_MARGINS
+ {
+ Pos = MAP_APPFONT ( 6 , 32 ) ;
+ Size = MAP_APPFONT ( 150 , 41 ) ;
+ Text = "Ränder" ;
+ Text [ English ] = "Margins" ;
+
+ TEXT[ italian ] = "Margini";
+ TEXT[ portuguese_brazilian ] = "Ränder";
+ TEXT[ portuguese ] = "Margens";
+ TEXT[ danish ] = "Margener";
+ TEXT[ french ] = "Marges";
+ TEXT[ swedish ] = "Marginaler";
+ TEXT[ dutch ] = "Marges";
+ TEXT[ spanish ] = "Márgenes";
+ TEXT[ english_us ] = "Borders";
+ TEXT[ chinese_simplified ] = "±ß¾à";
+ TEXT[ russian ] = "Ïîëÿ";
+ TEXT[ polish ] = "Marginesy";
+ TEXT[ japanese ] = "—]”’";
+ TEXT[ chinese_traditional ] = "̊ƒ";
+ TEXT[ arabic ] = "ÇáåæÇãÔ";
+ TEXT[ dutch ] = "Marges";
+ TEXT[ chinese_simplified ] = "±ß¾à";
+ TEXT[ greek ] = "Ðåñéèþñéá";
+ TEXT[ korean ] = "¿Ü°û¼±";
+ TEXT[ turkish ] = "Kenarlar";
+ TEXT[ language_user1 ] = " ";
+ };
+ FixedText FT_LMARGIN
+ {
+ Pos = MAP_APPFONT ( 12 , 44 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Links" ;
+ Text [ ENGLISH ] = "~Left" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "A ~sinistra";
+ TEXT[ portuguese_brazilian ] = "~Links";
+ TEXT[ portuguese ] = "~Esquerda";
+ TEXT[ danish ] = "Venstre";
+ TEXT[ french ] = "~À gauche";
+ TEXT[ swedish ] = "~Vänster";
+ TEXT[ dutch ] = "~Links";
+ TEXT[ spanish ] = "~Izquierda";
+ TEXT[ english_us ] = "~Left";
+ TEXT[ chinese_simplified ] = "×ó(~L)";
+ TEXT[ russian ] = "Ñëåâà";
+ TEXT[ polish ] = "Z lewej";
+ TEXT[ japanese ] = "¶(~L)";
+ TEXT[ chinese_traditional ] = "¥ª(~L)";
+ TEXT[ arabic ] = "íÓÇÑ";
+ TEXT[ dutch ] = "~Links";
+ TEXT[ chinese_simplified ] = "×ó(~L)";
+ TEXT[ greek ] = "ÁñéóôåñÜ";
+ TEXT[ korean ] = "¿ÞÂÊ(~L)";
+ TEXT[ turkish ] = "S~ol";
+ TEXT[ language_user1 ] = " ";
+ };
+ MetricField MF_LMARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 45 , 43 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ First = 0 ;
+ Last = 2000 ;
+ };
+ FixedText FT_RMARGIN
+ {
+ Pos = MAP_APPFONT ( 84 , 44 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Rechts" ;
+ Text [ ENGLISH ] = "~Right" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "A ~destra";
+ TEXT[ portuguese_brazilian ] = "~Rechts";
+ TEXT[ portuguese ] = "~Direita";
+ TEXT[ danish ] = "Højre";
+ TEXT[ french ] = "~À droite";
+ TEXT[ swedish ] = "~Höger";
+ TEXT[ dutch ] = "R~echts";
+ TEXT[ spanish ] = "~Derecha";
+ TEXT[ english_us ] = "~Right";
+ TEXT[ chinese_simplified ] = "ÓÒ(~R)";
+ TEXT[ russian ] = "Ñïðàâà";
+ TEXT[ polish ] = "Z prawej";
+ TEXT[ japanese ] = "‰E(~R)";
+ TEXT[ chinese_traditional ] = "¥k(~R)";
+ TEXT[ arabic ] = "íãíä";
+ TEXT[ dutch ] = "R~echts";
+ TEXT[ chinese_simplified ] = "ÓÒ(~R)";
+ TEXT[ greek ] = "ÄåîéÜ";
+ TEXT[ korean ] = "¿À¸¥ÂÊ(~R)";
+ TEXT[ turkish ] = "Sa~ð";
+ TEXT[ language_user1 ] = " ";
+ };
+ MetricField MF_RMARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 117 , 43 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ First = 0 ;
+ Last = 2000 ;
+ };
+ FixedText FT_TMARGIN
+ {
+ Pos = MAP_APPFONT ( 12 , 59 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Oben" ;
+ Text [ ENGLISH ] = "~Top" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "~In alto";
+ TEXT[ portuguese_brazilian ] = "~Oben";
+ TEXT[ portuguese ] = "~Topo";
+ TEXT[ danish ] = "Foroven";
+ TEXT[ french ] = "~Sup.";
+ TEXT[ swedish ] = "~Uppåt";
+ TEXT[ dutch ] = "~Boven";
+ TEXT[ spanish ] = "A~rriba";
+ TEXT[ english_us ] = "~Top";
+ TEXT[ chinese_simplified ] = "ÉÏ(~T)";
+ TEXT[ russian ] = "Ñâåðõó";
+ TEXT[ polish ] = "W górze";
+ TEXT[ japanese ] = "ã(~T)";
+ TEXT[ chinese_traditional ] = "¤W(~T)";
+ TEXT[ arabic ] = "ÃÚáì";
+ TEXT[ dutch ] = "~Boven";
+ TEXT[ chinese_simplified ] = "ÉÏ(~T)";
+ TEXT[ greek ] = "ÐÜíù";
+ TEXT[ korean ] = "ˤ(~T)";
+ TEXT[ turkish ] = "~Üst";
+ TEXT[ language_user1 ] = " ";
+ };
+ MetricField MF_TMARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 45 , 58 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ First = 0 ;
+ Last = 2000 ;
+ };
+ FixedText FT_BMARGIN
+ {
+ Pos = MAP_APPFONT ( 84 , 59 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "~Unten" ;
+ Text [ ENGLISH ] = "~Bottom" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "~In basso";
+ TEXT[ portuguese_brazilian ] = "~Unten";
+ TEXT[ portuguese ] = "~Inferior";
+ TEXT[ danish ] = "Forneden";
+ TEXT[ french ] = "~Inf.";
+ TEXT[ swedish ] = "~Nedåt";
+ TEXT[ dutch ] = "~Onder";
+ TEXT[ spanish ] = "A~bajo";
+ TEXT[ english_us ] = "~Bottom";
+ TEXT[ chinese_simplified ] = "ÏÂ(~B)";
+ TEXT[ russian ] = "Ñíèçó";
+ TEXT[ polish ] = "W dole";
+ TEXT[ japanese ] = "‰º(~B)";
+ TEXT[ chinese_traditional ] = "¤U(~B)";
+ TEXT[ arabic ] = "ÃÓÝá";
+ TEXT[ dutch ] = "~Onder";
+ TEXT[ chinese_simplified ] = "ÏÂ(~B)";
+ TEXT[ greek ] = "ÊÜôù";
+ TEXT[ korean ] = "¾Æ·¡(~B)";
+ TEXT[ turkish ] = "~Alt";
+ TEXT[ language_user1 ] = " ";
+ };
+ MetricField MF_BMARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 117 , 58 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ First = 0 ;
+ Last = 2000 ;
+ };
+ GroupBox GB_DISTANCE
+ {
+ Pos = MAP_APPFONT ( 6 , 76 ) ;
+ Size = MAP_APPFONT ( 150 , 26 ) ;
+ Text = "Abstand" ;
+ Text [ English ] = "Distance" ;
+
+ TEXT[ italian ] = "Distanza";
+ TEXT[ portuguese_brazilian ] = "Abstand";
+ TEXT[ portuguese ] = "Espaçamento";
+ TEXT[ danish ] = "Afstand";
+ TEXT[ french ] = "Écart";
+ TEXT[ swedish ] = "Avstånd";
+ TEXT[ dutch ] = "Afstand";
+ TEXT[ spanish ] = "Espacio";
+ TEXT[ english_us ] = "Spacing";
+ TEXT[ chinese_simplified ] = "¼ä¸ô";
+ TEXT[ russian ] = "Ðàññòîÿíèå";
+ TEXT[ polish ] = "Odstêp";
+ TEXT[ japanese ] = "ŠÔŠu";
+ TEXT[ chinese_traditional ] = "¶¡¹j";
+ TEXT[ arabic ] = "ÇáÊÈÇÚÏ";
+ TEXT[ dutch ] = "Afstand";
+ TEXT[ chinese_simplified ] = "¼ä¸ô";
+ TEXT[ greek ] = "Áðüóôáóç";
+ TEXT[ korean ] = "°£°Ý";
+ TEXT[ turkish ] = "Aralýk";
+ TEXT[ language_user1 ] = " ";
+ };
+ FixedText FT_HMARGIN
+ {
+ Pos = MAP_APPFONT ( 12 , 88 ) ;
+ Size = MAP_APPFONT ( 30 , 10 ) ;
+ Text = "H~orizontal" ;
+ Text [ ENGLISH ] = "H~orizontal" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "~Orizzontale";
+ TEXT[ portuguese_brazilian ] = "H~orizontal";
+ TEXT[ portuguese ] = "Espaçamento ~horizontal";
+ TEXT[ danish ] = "Vandret";
+ TEXT[ french ] = "~Horizontal";
+ TEXT[ swedish ] = "H~orisontell";
+ TEXT[ dutch ] = "~Horizontaal";
+ TEXT[ spanish ] = "~Horizontal";
+ TEXT[ english_us ] = "~Horizontal";
+ TEXT[ chinese_simplified ] = "ºáÏò(~H)";
+ TEXT[ russian ] = "Ãîðèçîíòàëüíî";
+ TEXT[ polish ] = "Poziomo";
+ TEXT[ japanese ] = "‰¡(~H)";
+ TEXT[ chinese_traditional ] = "¾î¦V(~H)";
+ TEXT[ arabic ] = "ÃÝÞí";
+ TEXT[ dutch ] = "~Horizontaal";
+ TEXT[ chinese_simplified ] = "ºáÏò(~H)";
+ TEXT[ greek ] = "Ïñéæüíôéá";
+ TEXT[ korean ] = "¼öÆò(~H)";
+ TEXT[ turkish ] = "~Yatay";
+ TEXT[ language_user1 ] = " ";
+ };
+
+ MetricField MF_HMARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 45 , 87 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ First = 0 ;
+ Last = 2000 ;
+ };
+ FixedText FT_VMARGIN
+ {
+ Pos = MAP_APPFONT ( 84 , 88 ) ;
+ Size = MAP_APPFONT ( 36 , 10 ) ;
+ Text = "~Vertikal" ;
+ Text [ ENGLISH ] = "~Vertical" ;
+ Left = TRUE ;
+ TEXT[ italian ] = "~Verticale";
+ TEXT[ portuguese_brazilian ] = "~Vertikal";
+ TEXT[ portuguese ] = "~Vertical";
+ TEXT[ danish ] = "Lodret";
+ TEXT[ french ] = "~Vertical";
+ TEXT[ swedish ] = "~Vertikalt";
+ TEXT[ dutch ] = "~Verticaal";
+ TEXT[ spanish ] = "~Vertical";
+ TEXT[ english_us ] = "~Vertically";
+ TEXT[ chinese_simplified ] = "×ÝÏò(~V)";
+ TEXT[ russian ] = "Âåðòèêàëüíî";
+ TEXT[ polish ] = "Pionowo";
+ TEXT[ japanese ] = "c(~V)";
+ TEXT[ chinese_traditional ] = "Áa¦V(~V)";
+ TEXT[ arabic ] = "ÑÃÓí";
+ TEXT[ dutch ] = "~Verticaal";
+ TEXT[ chinese_simplified ] = "×ÝÏò(~V)";
+ TEXT[ greek ] = "Êáôáêüñõöá";
+ TEXT[ korean ] = "¼öÁ÷(~V)";
+ TEXT[ turkish ] = "~Dikey";
+ TEXT[ language_user1 ] = " ";
+ };
+
+ MetricField MF_VMARGIN
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 117 , 87 ) ;
+ Size = MAP_APPFONT ( 36 , 12 ) ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ SpinSize = 10 ;
+ Minimum = 0 ;
+ Maximum = 9999 ;
+ First = 0 ;
+ Last = 2000 ;
+ };
+ GroupBox GB_ORIENTATION
+ {
+ Pos = MAP_APPFONT ( 6 , 102 ) ;
+ Size = MAP_APPFONT ( 150 , 26 ) ;
+ Text = "Format" ;
+ Text [ English ] = "Format" ;
+ TEXT[ italian ] = "Formato";
+ TEXT[ portuguese_brazilian ] = "Format";
+ TEXT[ portuguese ] = "Formato";
+ TEXT[ danish ] = "Format";
+ TEXT[ french ] = "Format";
+ TEXT[ swedish ] = "Format";
+ TEXT[ dutch ] = "Notatie";
+ TEXT[ spanish ] = "Formato";
+ TEXT[ english_us ] = "Format";
+ TEXT[ chinese_simplified ] = "¸ñʽ";
+ TEXT[ russian ] = "Ôîðìàò";
+ TEXT[ polish ] = "Format";
+ TEXT[ japanese ] = "‘Ž®";
+ TEXT[ chinese_traditional ] = "®æ¦¡";
+ TEXT[ arabic ] = "ÇáÊäÓíÞ";
+ TEXT[ dutch ] = "Notatie";
+ TEXT[ chinese_simplified ] = "¸ñʽ";
+ TEXT[ greek ] = "ÌïñöÞ";
+ TEXT[ korean ] = "¼­½Ä";
+ TEXT[ turkish ] = "Format";
+ TEXT[ language_user1 ] = " ";
+ };
+ RadioButton RB_LANDSCAPE
+ {
+ Pos = MAP_APPFONT ( 12 , 113 ) ;
+ Size = MAP_APPFONT ( 60 , 12 ) ;
+ Text = "~Querformat" ;
+ Text [ ENGLISH ] = "~Landscape" ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ TEXT[ italian ] = "Orizzontale";
+ TEXT[ portuguese_brazilian ] = "~Querformat";
+ TEXT[ portuguese ] = "Formato ~horizontal";
+ TEXT[ danish ] = "Liggende";
+ TEXT[ french ] = "~Paysage";
+ TEXT[ swedish ] = "~Liggande";
+ TEXT[ dutch ] = "~Liggend";
+ TEXT[ spanish ] = "~Horizontal";
+ TEXT[ english_us ] = "~Landscape";
+ TEXT[ chinese_simplified ] = "ºáÏò(~L)";
+ TEXT[ russian ] = "Àëüáîìíûé ôîðìàò";
+ TEXT[ polish ] = "Format poziomy";
+ TEXT[ japanese ] = "‰¡(~L)";
+ TEXT[ chinese_traditional ] = "¾î¦V(~L)";
+ TEXT[ arabic ] = "ÈÇáÚÑÖ";
+ TEXT[ dutch ] = "~Liggend";
+ TEXT[ chinese_simplified ] = "ºáÏò(~L)";
+ TEXT[ greek ] = "Ïñéæïíôßùò";
+ TEXT[ korean ] = "°¡·Î(~L)";
+ TEXT[ turkish ] = "Ya~tay";
+ TEXT[ language_user1 ] = " ";
+ };
+ RadioButton RB_PORTRAIT
+ {
+ Pos = MAP_APPFONT ( 84 , 113 ) ;
+ Size = MAP_APPFONT ( 60 , 12 ) ;
+ Text = "Ho~chformat" ;
+ Text [ ENGLISH ] = "~Portrait" ;
+ TEXT[ italian ] = "Verticale";
+ TEXT[ portuguese_brazilian ] = "Ho~chformat";
+ TEXT[ portuguese ] = "Formato ~vertical";
+ TEXT[ danish ] = "Stående";
+ TEXT[ french ] = "P~ortrait";
+ TEXT[ swedish ] = "S~tående";
+ TEXT[ dutch ] = "~Staand";
+ TEXT[ spanish ] = "~Vertical";
+ TEXT[ english_us ] = "P~ortrait";
+ TEXT[ chinese_simplified ] = "×ÝÏò(~O)";
+ TEXT[ russian ] = "Êíèæíûé ôîðìàò";
+ TEXT[ polish ] = "Format pionowy";
+ TEXT[ japanese ] = "c(~O)";
+ TEXT[ chinese_traditional ] = "Áa¦V(~O)";
+ TEXT[ arabic ] = "ÈÇáØæá";
+ TEXT[ dutch ] = "~Staand";
+ TEXT[ chinese_simplified ] = "×ÝÏò(~O)";
+ TEXT[ greek ] = "Êáôáêüñõöá";
+ TEXT[ korean ] = "¼¼·Î(~O)";
+ TEXT[ turkish ] = "Di~key";
+ TEXT[ language_user1 ] = " ";
+ };
+ GroupBox GB_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 159 , 3 ) ;
+ Size = MAP_APPFONT ( 96 , 125 ) ;
+ Text = "Vorschau" ;
+ Text [ English ] = "Preview" ;
+ TEXT[ italian ] = "Anteprima";
+ TEXT[ portuguese_brazilian ] = "Vorschau";
+ TEXT[ portuguese ] = "Previsualizar";
+ TEXT[ danish ] = "Eksempel";
+ TEXT[ french ] = "Aperçu";
+ TEXT[ swedish ] = "Förhandsvisning";
+ TEXT[ dutch ] = "Voorbeeld";
+ TEXT[ spanish ] = "Previsualización";
+ TEXT[ english_us ] = "Preview";
+ TEXT[ chinese_simplified ] = "Ô¤ÊÓ";
+ TEXT[ russian ] = "Ïðîñìîòð";
+ TEXT[ polish ] = "Podgl¹d";
+ TEXT[ japanese ] = "ÌßÚËÞ­°";
+ TEXT[ chinese_traditional ] = "¹wÄý";
+ TEXT[ arabic ] = "ãÚÇíäÉ";
+ TEXT[ dutch ] = "Voorbeeld";
+ TEXT[ chinese_simplified ] = "Ô¤ÊÓ";
+ TEXT[ greek ] = "Ðñïåðéóêüðçóç";
+ TEXT[ korean ] = "¹Ì¸®º¸±â";
+ TEXT[ turkish ] = "Önizleme";
+ TEXT[ language_user1 ] = " ";
+ };
+ Window WIN_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 162 , 12 ) ;
+ Size = MAP_APPFONT ( 90 , 113 ) ;
+ };
+
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 258 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 258 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 258 , 49 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton PB_STANDARD
+ {
+ Pos = MAP_APPFONT ( 258 , 66 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Text = "Standar~d" ;
+ Text [ English ] = "Standar~d" ;
+ TEXT[ italian ] = "Standar~d";
+ TEXT[ portuguese_brazilian ] = "Standar~d";
+ TEXT[ portuguese ] = "~Padrão";
+ TEXT[ danish ] = "Standar~d";
+ TEXT[ french ] = "Par ~défaut";
+ TEXT[ swedish ] = "Standar~d";
+ TEXT[ dutch ] = "Standaar~d";
+ TEXT[ spanish ] = "~Predeterminado";
+ TEXT[ english_us ] = "~Default";
+ TEXT[ chinese_simplified ] = "ĬÈÏ(~D)";
+ TEXT[ russian ] = "Ñòàíäàðò";
+ TEXT[ polish ] = "Domyœlnie";
+ TEXT[ japanese ] = "•W€(~D)";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "Àq»{(~D)";
+ TEXT[ arabic ] = "ÇÝÊÑÇÖí";
+ TEXT[ dutch ] = "Standaar~d";
+ TEXT[ chinese_simplified ] = "ĬÈÏ(~D)";
+ TEXT[ greek ] = "ÐñïåðéëïãÞ";
+ TEXT[ korean ] = "±âº»°ª(~D)";
+ TEXT[ turkish ] = "Standar~t";
+ };
+ TEXT[ italian ] = "Opzioni di stampa";
+ TEXT[ portuguese_brazilian ] = "Druckoptionen";
+ TEXT[ portuguese ] = "Opções de impressão";
+ TEXT[ danish ] = "Udskriftsindstillinger";
+ TEXT[ french ] = "Options d'impression";
+ TEXT[ swedish ] = "Utskriftsalternativ";
+ TEXT[ dutch ] = "Afdrukopties";
+ TEXT[ spanish ] = "Opciones de impresión";
+ TEXT[ english_us ] = "Print Options";
+ TEXT[ chinese_simplified ] = "´òÓ¡Ñ¡Ïî";
+ TEXT[ russian ] = "Ïàðàìåòðû ïå÷àòè";
+ TEXT[ polish ] = "Opcje wydruku";
+ TEXT[ japanese ] = "ˆóüµÌß¼®Ý";
+ TEXT[ chinese_traditional ] = "¦C¦L¿ï¶µ";
+ TEXT[ arabic ] = "ÎíÇÑÇÊ ÇáØÈÇÚÉ";
+ TEXT[ dutch ] = "Afdrukopties";
+ TEXT[ chinese_simplified ] = "´òÓ¡Ñ¡Ïî";
+ TEXT[ greek ] = "ÅðéëïãÝò åêôýðùóçò";
+ TEXT[ korean ] = "Àμ⠿ɼÇ";
+ TEXT[ turkish ] = "Yazdýrma seçenekleri";
+ TEXT[ language_user1 ] = " ";
+};
+ModalDialog DLG_PAGEPREVIEW_ZOOM
+{
+ HelpID = HID_PPREV_ZOOM ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 141 , 69 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Maßstab : Ma˜stab */
+ Text = "Maßstab" ;
+ Text [ ENGLISH ] = "Zoom" ;
+ Text [ norwegian ] = "Zoom" ;
+ Text [ italian ] = "Zoom" ;
+ Text [ portuguese_brazilian ] = "Zoom" ;
+ Text [ portuguese ] = "Zoom" ;
+ Text [ finnish ] = "Zoomaus" ;
+ Text [ danish ] = "Målestok" ;
+ Text [ french ] = "Zoom" ;
+ Text [ swedish ] = "Skala" ;
+ Text [ dutch ] = "Maatstaf" ;
+ Text [ spanish ] = "Escala" ;
+ Text [ english_us ] = "Zoom" ;
+ Moveable = TRUE ;
+ FixedText FT_COL
+ {
+ Pos = MAP_APPFONT ( 12 , 34 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "~Spalten" ;
+ Text [ ENGLISH ] = "~Columns" ;
+ Text [ norwegian ] = "~Columns" ;
+ Text [ italian ] = "~Colonne" ;
+ Text [ portuguese_brazilian ] = "~Colunas" ;
+ Text [ portuguese ] = "~Colunas" ;
+ Text [ finnish ] = "~Sarakkeet" ;
+ Text [ danish ] = "Kolonner" ;
+ Text [ french ] = "~Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ dutch ] = "~Kolommen" ;
+ Text [ spanish ] = "~Columnas" ;
+ Text [ english_us ] = "~Columns" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "À¸(~C)";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "‰¡(~C)";
+ Text[ chinese_traditional ] = "Äæ(~C)";
+ Text[ arabic ] = "ÃÚãÏÉ";
+ Text[ dutch ] = "~Kolommen";
+ Text[ chinese_simplified ] = "À¸(~C)";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­(~C)";
+ Text[ turkish ] = "~Sütun";
+ Text[ language_user1 ] = " ";
+ };
+ FixedText FT_ROW
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 27 , 10 ) ;
+ Text = "~Zeilen" ;
+ Text [ ENGLISH ] = "~Rows" ;
+ Text [ norwegian ] = "~Rows" ;
+ Text [ italian ] = "~Righe" ;
+ Text [ portuguese_brazilian ] = "Filei~ras" ;
+ Text [ portuguese ] = "~Linhas" ;
+ Text [ finnish ] = "~Rivit" ;
+ Text [ danish ] = "Rækker" ;
+ Text [ french ] = "~Lignes" ;
+ Text [ swedish ] = "~Rader" ;
+ Text [ dutch ] = "~Rijen" ;
+ Text [ spanish ] = "~Filas" ;
+ Text [ english_us ] = "~Rows" ;
+ Left = TRUE ;
+ Text[ chinese_simplified ] = "ÐÐ(~R)";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "c(~R)";
+ Text[ chinese_traditional ] = "¦æ(~R)";
+ Text[ arabic ] = "ÕÝæÝ";
+ Text[ dutch ] = "~Rijen";
+ Text[ chinese_simplified ] = "ÐÐ(~R)";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà(~R)";
+ Text[ turkish ] = "S~atýr";
+ Text[ language_user1 ] = " ";
+ };
+ NumericField ED_COL
+ {
+ Border = TRUE ;
+ Size = MAP_APPFONT ( 28 , 12 ) ;
+ Pos = MAP_APPFONT ( 48 , 34 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = PVIEW_MIN_COL ;
+ Maximum = PVIEW_MAX_COL ;
+ Value = 1 ;
+ First = PVIEW_MIN_COL ;
+ Last = PVIEW_MAX_COL ;
+ };
+ NumericField ED_ROW
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 48 , 13 ) ;
+ Size = MAP_APPFONT ( 28 , 12 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = PVIEW_MIN_ROW ;
+ Maximum = PVIEW_MAX_ROW ;
+ Value = 1 ;
+ First = PVIEW_MIN_ROW ;
+ Last = PVIEW_MAX_ROW ;
+ };
+ OKButton BT_OK
+ {
+ Pos = MAP_APPFONT ( 88 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton BT_CANCEL
+ {
+ Pos = MAP_APPFONT ( 88 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton BT_HELP
+ {
+ Pos = MAP_APPFONT ( 88 , 49 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ GroupBox GB_PREVIEW
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 76 , 50 ) ;
+ Text = "Ansicht" ;
+ Text [ English ] = "View" ;
+ Text [ norwegian ] = "View" ;
+ Text [ italian ] = "Vista" ;
+ Text [ portuguese_brazilian ] = "Ver" ;
+ Text [ portuguese ] = "Ver" ;
+ Text [ finnish ] = "Näytä" ;
+ Text [ danish ] = "Vis" ;
+ Text [ french ] = "Affichage" ;
+ Text [ swedish ] = "Visa" ;
+ Text [ dutch ] = "Beeld" ;
+ Text [ spanish ] = "Ver" ;
+ Text [ english_us ] = "View" ;
+ Text[ chinese_simplified ] = "ÊÓͼ";
+ Text[ russian ] = "Âèä";
+ Text[ polish ] = "Widok";
+ Text[ japanese ] = "•\\Ž¦";
+ Text[ chinese_traditional ] = "À˵ø";
+ Text[ arabic ] = "ØÑíÞÉ ÇáÚÑÖ";
+ Text[ dutch ] = "Beeld";
+ Text[ chinese_simplified ] = "ÊÓͼ";
+ Text[ greek ] = "ÐñïâïëÞ";
+ Text[ korean ] = "º¸±â";
+ Text[ turkish ] = "Görünüm";
+ Text[ language_user1 ] = " ";
+ };
+ Text[ chinese_simplified ] = "¿Ì¶È";
+ Text[ russian ] = "Ìàñøòàá";
+ Text[ polish ] = "Skala";
+ Text[ japanese ] = "½Þ°Ñ";
+ Text[ chinese_traditional ] = "Åã¥Ü¤ñ¨Ò";
+ Text[ arabic ] = "ÊßÈíÑ æÊÕÛíÑ";
+ Text[ dutch ] = "Maatstaf";
+ Text[ chinese_simplified ] = "¿Ì¶È";
+ Text[ greek ] = "Êëßìáêá";
+ Text[ korean ] = "È®´ë/Ãà¼Ò";
+ Text[ turkish ] = "Yakýnlaþtýr";
+ Text[ language_user1 ] = " ";
+};
+String RID_PVIEW_TOOLBOX
+{
+ Text = "Seitenansicht" ;
+ Text [ English ] = "Page preview" ;
+ Text [ dutch ] = "Afdrukvoorbeeld" ;
+ Text [ english_us ] = "Page Preview" ;
+ Text [ italian ] = "Anteprima stampa" ;
+ Text [ spanish ] = "Vista preliminar" ;
+ Text [ french ] = "Aperçu" ;
+ Text [ swedish ] = "Förhandsgranskning" ;
+ Text [ danish ] = "Vis udskrift" ;
+ Text [ portuguese ] = "Ver página" ;
+ Text [ portuguese_brazilian ] = "Seitenansicht" ;
+ Text[ chinese_simplified ] = "Ò³ÃæÊÓͼ";
+ Text[ russian ] = "Ïðåäâàðèòåëüíûé ïðîñìîòð";
+ Text[ polish ] = "Podgl¹d wydruku";
+ Text[ japanese ] = "ˆóüÌßÚËÞ­°";
+ Text[ chinese_traditional ] = "­¶­±À˵ø";
+ Text[ arabic ] = "ãÚÇíäÉ ÇáÕÝÍÉ";
+ Text[ dutch ] = "Afdrukvoorbeeld";
+ Text[ chinese_simplified ] = "Ò³ÃæÊÓͼ";
+ Text[ greek ] = "Ðñïåðéóêüðçóç åêôýðùóçò";
+ Text[ korean ] = "Àμ⠹̸®º¸±â";
+ Text[ turkish ] = "Sayfa önizleme";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_PVIEW_TOOLBOX
+{
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ HelpID = HID_PVIEW_TOOLBOX ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_PAGEUP ;
+ HelpID = FN_PAGEUP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_PAGEDOWN ;
+ HelpID = FN_PAGEDOWN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_START_OF_DOCUMENT ;
+ HelpID = FN_START_OF_DOCUMENT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_END_OF_DOCUMENT ;
+ HelpID = FN_END_OF_DOCUMENT ;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ Identifier = FN_SHOW_TWO_PAGES ;
+ HelpID = FN_SHOW_TWO_PAGES ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SHOW_FOUR_PAGES ;
+ HelpID = FN_SHOW_FOUR_PAGES ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_PREVIEW_ZOOM;
+ HelpID = HID_PREVIEW_ZOOM ;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ Identifier = SID_WIN_FULLSCREEN ;
+ HelpID = SID_WIN_FULLSCREEN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_PRINT_PAGEPREVIEW ;
+ HelpID = FN_PRINT_PAGEPREVIEW ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_PREVIEW_PRINT_OPTIONS ;
+ HelpID = FN_PREVIEW_PRINT_OPTIONS ;
+ };
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ Identifier = SID_PRINTPREVIEW;
+ HelpID = SID_PRINTPREVIEW;
+ };
+ };
+ Scroll = TRUE ;
+};
diff --git a/sw/source/ui/uiview/scroll.cxx b/sw/source/ui/uiview/scroll.cxx
new file mode 100644
index 000000000000..864a191e1ee6
--- /dev/null
+++ b/sw/source/ui/uiview/scroll.cxx
@@ -0,0 +1,287 @@
+/*************************************************************************
+ *
+ * $RCSfile: scroll.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "swtypes.hxx"
+#include "swrect.hxx"
+#include "scroll.hxx"
+
+
+SwScrollbar::SwScrollbar( Window *pWin, int bHoriz ) :
+ ScrollBar( pWin,
+ WinBits( WB_3DLOOK | WB_HIDE | ( bHoriz ? WB_HSCROLL : WB_VSCROLL) ) ),
+ bHori( bHoriz ),
+ bAuto( FALSE ),
+ bThumbEnabled( TRUE ),
+ bVisible(FALSE),
+ bSizeSet(FALSE)
+{
+}
+
+
+ SwScrollbar::~SwScrollbar() {}
+
+/*------------------------------------------------------------------------
+ Beschreibung: wird nach einer Aenderung der Dokumentgroesse gerufen, um den
+ Range des Scrollbars neu einzustellen.
+------------------------------------------------------------------------*/
+
+
+void SwScrollbar::DocSzChgd( const Size &rSize )
+{
+ aDocSz = rSize;
+ SetRange( Range( 0, bHori ? rSize.Width() : rSize.Height()) );
+ const ULONG nVisSize = GetVisibleSize();
+ SetLineSize( nVisSize * 10 / 100 );
+ SetPageSize( nVisSize * 77 / 100 );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: wird nach einer Veraenderung des sichtbaren Ausschnittes
+ gerufen.
+------------------------------------------------------------------------*/
+
+
+void SwScrollbar::ViewPortChgd( const Rectangle &rRect )
+{
+ long nThumb, nVisible;
+ if( bHori )
+ {
+ nThumb = rRect.Left();
+ nVisible = rRect.GetWidth();
+ }
+ else
+ {
+ nThumb = rRect.Top();
+ nVisible = rRect.GetHeight();
+ }
+
+ SetVisibleSize( nVisible );
+ DocSzChgd(aDocSz);
+ if ( bThumbEnabled )
+ SetThumbPos( nThumb );
+ long nVis = GetVisibleSize();
+ long nLen = GetRange().Len();
+ if(bAuto)
+ AutoShow();
+}
+
+void SwScrollbar::EnableThumbPos( BOOL bEnable, const SwRect &rVisArea )
+{
+ bThumbEnabled = bEnable;
+ if ( bEnable )
+ {
+ long nThumb = bHori ? rVisArea.Left() : rVisArea.Top();
+ SetThumbPos( nThumb );
+ }
+}
+
+/*-----------------10/21/97 02:48pm-----------------
+
+--------------------------------------------------*/
+void SwScrollbar::Show( BOOL bSet )
+{
+ bVisible = bSet;
+ if( (!bSet || bSizeSet) && IsUpdateMode() )
+ ScrollBar::Show(bSet);
+}
+
+/*-----------------10/21/97 03:23pm-----------------
+
+--------------------------------------------------*/
+void SwScrollbar::SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
+{
+ ScrollBar::SetPosSizePixel(rNewPos, rNewSize);
+ bSizeSet = TRUE;
+ if(bVisible)
+ Show();
+
+}
+
+/*-----------------10/21/97 04:47pm-----------------
+
+--------------------------------------------------*/
+void SwScrollbar::SetUpdateMode( BOOL bUpdate )
+{
+ ScrollBar::SetUpdateMode( bUpdate );
+ if(bUpdate &&
+ bVisible != ScrollBar::IsVisible())
+ Show(bVisible);
+}
+/*-----------------14.04.98 11:38-------------------
+
+--------------------------------------------------*/
+void SwScrollbar::SetAuto(BOOL bSet)
+{
+ if(bAuto != bSet)
+ {
+ bAuto = bSet;
+
+ // automatisch versteckt - dann anzeigen
+ if(!bAuto && bVisible && !ScrollBar::IsVisible())
+ Show(TRUE);
+ else if(bAuto)
+ AutoShow(); // oder automatisch verstecken
+ }
+}
+/*-----------------14.04.98 11:43-------------------
+
+--------------------------------------------------*/
+void SwScrollbar::AutoShow()
+{
+ long nVis = GetVisibleSize();
+ long nLen = GetRange().Len();
+ {
+ if( nVis >= nLen - 1)
+ {
+ if(bVisible)
+ Hide();
+ }
+ else if ( !ScrollBar::IsVisible() &&
+ (!bHori || nVis) ) //Optimierung fuer Browser.
+ //Horizontaler Scrollbar per
+ //default aus.
+ {
+ Show();
+ }
+ }
+}
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.63 2000/09/18 16:06:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.62 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.61 1999/03/03 11:52:18 MA
+ #62722# horizontaler Scrollbar bei Auto per default aus
+
+
+ Rev 1.60 03 Mar 1999 12:52:18 MA
+ #62722# horizontaler Scrollbar bei Auto per default aus
+
+ Rev 1.59 14 Apr 1998 12:10:08 OS
+ autom. Scrollbars: SetAuto() muss Sichtbarkeit ueberpruefen #49061#
+
+ Rev 1.58 21 Nov 1997 15:00:12 MA
+ includes
+
+ Rev 1.57 12 Nov 1997 17:09:14 MBA
+ SP3:
+
+ Rev 1.56 03 Nov 1997 13:58:30 MA
+ precomp entfernt
+
+ Rev 1.55 22 Oct 1997 08:12:42 OS
+ eigener UpdateMode zur Verhinderung des Flackerns #43684#
+
+ Rev 1.54 10 Sep 1997 10:12:34 OS
+ Scrollbars mit WB_HIDE erzeugen 43684
+
+ Rev 1.53 17 Jul 1997 16:58:44 HJS
+ includes
+
+ Rev 1.52 16 Jul 1997 18:52:34 MA
+ new: ThumbPos kann disabled werden
+
+ Rev 1.51 29 Jul 1996 15:47:22 MA
+ includes
+
+ Rev 1.50 23 May 1996 17:18:20 OS
+ automatische Scrollbars in Frame-Docs
+
+ Rev 1.49 06 May 1996 17:01:16 MA
+ chg: Scrollbars fuer browse und ole richtig
+
+ Rev 1.48 14 Mar 1996 17:10:48 MA
+ fix#26338#, richtige Reihenfolge der Einstellungen; Opts
+
+ Rev 1.47 03 Mar 1996 18:16:04 MA
+ opt: unuetzer Member vom Scrollbar
+
+ Rev 1.46 29 Nov 1995 12:12:56 OM
+ Scrollbars reaktiviert
+
+ Rev 1.45 27 Nov 1995 21:21:04 JP
+ ueberfluessige Methoden entfernt, optimiert
+
+ Rev 1.44 24 Nov 1995 16:57:54 OM
+ PCH->PRECOMPILED
+
+ Rev 1.43 08 Nov 1995 13:07:40 OS
+ Change => Set
+
+ Rev 1.42 30 Oct 1995 12:06:04 MA
+ chg: Get/Set Page/LineSize entfernt
+
+ Rev 1.41 19 Feb 1995 15:35:58 JP
+ CTOR: setze bHori richtig
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/uiview/srcview.cxx b/sw/source/ui/uiview/srcview.cxx
new file mode 100644
index 000000000000..2c50afbe7de5
--- /dev/null
+++ b/sw/source/ui/uiview/srcview.cxx
@@ -0,0 +1,1345 @@
+/*************************************************************************
+ *
+ * $RCSfile: srcview.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+
+#ifndef _TOOLS_TEMPFILE_HXX
+#include <tools/tempfile.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SV_PRINT_HXX //autogen
+#include <vcl/print.hxx>
+#endif
+#ifndef _SV_CLIP_HXX //autogen
+#include <vcl/clip.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SV_METRIC_HXX //autogen
+#include <vcl/metric.hxx>
+#endif
+#ifndef _CTRLTOOL_HXX //autogen
+#include <svtools/ctrltool.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _UNDO_HXX //autogen
+#include <svtools/undo.hxx>
+#endif
+#ifndef _TXTCMP_HXX //autogen
+#include <svtools/txtcmp.hxx>
+#endif
+#ifndef _EXTATTR_HXX //autogen
+#include <svtools/extattr.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _IODLG_HXX //autogen
+#include <sfx2/iodlg.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_PRNMON_HXX //autogen
+#include <sfx2/prnmon.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SVX_FHGTITEM_HXX //autogen
+#include <svx/fhgtitem.hxx>
+#endif
+#ifndef _SVX_SRCHDLG_HXX //autogen
+#include <svx/srchdlg.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SVX_FONTITEM_HXX //autogen
+#include <svx/fontitem.hxx>
+#endif
+#ifndef _SVX_FLSTITEM_HXX //autogen
+#include <svx/flstitem.hxx>
+#endif
+#ifndef _RTL_TENCINFO_H
+#include <rtl/tencinfo.h>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _SRCVIEW_HXX
+#include <srcview.hxx>
+#endif
+#ifndef _SRCVCFG_HXX
+#include <srcvcfg.hxx>
+#endif
+#ifndef _VIEWFUNC_HXX
+#include <viewfunc.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _ITEMDEF_HXX
+#include <itemdef.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _DATAEX_HXX
+#include <dataex.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h> // FN_ ...
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _POPUP_HRC
+#include <popup.hrc>
+#endif
+#ifndef _WEB_HRC
+#include <web.hrc>
+#endif
+#ifndef _VIEW_HRC
+#include <view.hrc>
+#endif
+
+
+#define SwSrcView
+#define SearchSettings
+#define _ExecSearch Execute
+#define _StateSearch GetState
+#include <svx/svxslots.hxx>
+#include "swslots.hxx"
+
+using namespace com::sun::star;
+using namespace com::sun::star::uno;
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+#define SWSRCVIEWFLAGS ( SFX_VIEW_MAXIMIZE_FIRST| \
+ SFX_VIEW_OBJECTSIZE_EMBEDDED| \
+ SFX_VIEW_CAN_PRINT|\
+ SFX_VIEW_NO_NEWWINDOW )
+
+#define SRC_SEARCHOPTIONS (0xFFFF & ~(SEARCH_OPTIONS_FORMAT|SEARCH_OPTIONS_FAMILIES|SEARCH_OPTIONS_SEARCH_ALL))
+
+// Druckraender -> wie Basic - Ide
+#define LMARGPRN 1700
+#define RMARGPRN 900
+#define TMARGPRN 2000
+#define BMARGPRN 1000
+#define BORDERPRN 300
+
+
+
+SFX_IMPL_VIEWFACTORY(SwSrcView, SW_RES(STR_NONAME))
+{
+ SFX_VIEW_REGISTRATION(SwWebDocShell);
+}
+
+
+SFX_IMPL_INTERFACE( SwSrcView, SfxViewShell, SW_RES(0) )
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_SRCVIEW_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_SRCVIEW_TOOLBOX));
+ SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_TOOLS|
+ SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
+ SW_RES(RID_WEBTOOLS_TOOLBOX) );
+ SFX_CHILDWINDOW_REGISTRATION(SvxSearchDialogWrapper::GetChildWindowId());
+}
+
+TYPEINIT1(SwSrcView, SfxViewShell)
+
+/*-----------------18.11.96 08.05-------------------
+
+--------------------------------------------------*/
+
+
+void lcl_PrintHeader( Printer* pPrinter, USHORT nPages, USHORT nCurPage, const String& rTitle )
+{
+ short nLeftMargin = LMARGPRN;
+ Size aSz = pPrinter->GetOutputSize();
+ short nBorder = BORDERPRN;
+
+ Color aOldFillColor( pPrinter->GetFillColor() );
+ Font aOldFont( pPrinter->GetFont() );
+
+ pPrinter->SetFillColor( Color(COL_TRANSPARENT) );
+
+ Font aFont( aOldFont );
+ aFont.SetWeight( WEIGHT_BOLD );
+ aFont.SetAlign( ALIGN_BOTTOM );
+ pPrinter->SetFont( aFont );
+
+ long nFontHeight = pPrinter->GetTextHeight();
+
+ // 1.Border => Strich, 2+3 Border = Freiraum.
+ long nYTop = TMARGPRN-3*nBorder-nFontHeight;
+
+ long nXLeft = nLeftMargin-nBorder;
+ long nXRight = aSz.Width()-RMARGPRN+nBorder;
+
+ pPrinter->DrawRect( Rectangle(
+ Point( nXLeft, nYTop ),
+ Size( nXRight-nXLeft, aSz.Height() - nYTop - BMARGPRN + nBorder ) ) );
+
+
+ long nY = TMARGPRN-2*nBorder;
+ Point aPos( nLeftMargin, nY );
+ pPrinter->DrawText( aPos, rTitle );
+ if ( nPages != 1 )
+ {
+ aFont.SetWeight( WEIGHT_NORMAL );
+ pPrinter->SetFont( aFont );
+ String aPageStr( C2S(" [") );
+ aPageStr += String( SW_RES( STR_PAGE ) );
+ aPageStr += ' ';
+ aPageStr += String::CreateFromInt32( nCurPage );
+ aPageStr += ']';
+ aPos.X() += pPrinter->GetTextWidth( rTitle );
+ pPrinter->DrawText( aPos, aPageStr );
+ }
+
+
+ nY = TMARGPRN-nBorder;
+
+ pPrinter->DrawLine( Point( nXLeft, nY ), Point( nXRight, nY ) );
+
+ pPrinter->SetFont( aOldFont );
+ pPrinter->SetFillColor( aOldFillColor );
+}
+
+/*-----------------18.11.96 08.21-------------------
+
+--------------------------------------------------*/
+
+void lcl_ConvertTabsToSpaces( String& rLine )
+{
+ if ( rLine.Len() )
+ {
+ USHORT nPos = 0;
+ USHORT nMax = rLine.Len();
+ while ( nPos < nMax )
+ {
+ if ( rLine.GetChar(nPos) == '\t' )
+ {
+ // Nicht 4 Blanks, sondern an 4er TabPos:
+ String aBlanker;
+ aBlanker.Fill( ( 4 - ( nPos % 4 ) ), ' ' );
+ rLine.Erase( nPos, 1 );
+ rLine.Insert( aBlanker, nPos );
+ nMax = rLine.Len();
+ }
+ nPos++; // Nicht optimal, falls Tab, aber auch nicht verkehrt...
+ }
+ }
+}
+
+/*-----------------18.11.96 12.12-------------------
+
+--------------------------------------------------*/
+
+void lcl_SetFont(SwSrcView* pView, const String& rStyle)
+{
+ const SvxFontListItem* pFontListItem = (const SvxFontListItem* )pView->GetDocShell()->GetItem( SID_ATTR_CHAR_FONTLIST );
+ const FontList* pList = pFontListItem->GetFontList();
+
+ FontInfo aInfo = pList->Get(rStyle,WEIGHT_NORMAL, ITALIC_NONE);
+
+ SwSrcEditWindow& rEditWin = pView->GetEditWin();
+ const Font& rFont = rEditWin.GetTextEngine()->GetFont();
+ Font aFont(aInfo);
+ aFont.SetSize(rFont.GetSize());
+ rEditWin.GetTextEngine()->SetFont( aFont );
+ rEditWin.GetOutWin()->SetFont(aFont);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwSrcView::SwSrcView(SfxViewFrame* pFrame, const SwSrcView&) :
+ SfxViewShell( pFrame, SWSRCVIEWFLAGS ),
+ aEditWin( &pFrame->GetWindow(), this ),
+ pSearchItem(0),
+ pSrcViewConfig(0),
+ bSourceSaved(FALSE)
+{
+ Init();
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwSrcView::SwSrcView(SfxViewFrame* pFrame, SfxViewShell*) :
+ SfxViewShell( pFrame, SWSRCVIEWFLAGS ),
+ aEditWin( &pFrame->GetWindow(), this ),
+ pSearchItem(0),
+ bSourceSaved(FALSE)
+{
+ Init();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwSrcView::~SwSrcView()
+{
+ SwDocShell* pDocShell = GetDocShell();
+ DBG_ASSERT(PTR_CAST(SwWebDocShell, pDocShell), "Wieso keine WebDocShell?")
+ TextEngine* pTextEngine = aEditWin.GetTextEngine();
+ const TextSelection& rSel = aEditWin.GetTextView()->GetSelection();
+ ((SwWebDocShell*)pDocShell)->SetSourcePara(rSel.GetStart().GetPara());
+
+
+ SfxDocumentInfo& rDocInfo = pDocShell->GetDocInfo();
+ pDocShell->SetAutoLoad(rDocInfo.GetReloadURL(),
+ rDocInfo.GetReloadDelay(),
+ rDocInfo.IsReloadEnabled() );
+// EndListening(*GetViewFrame());
+ EndListening(*pDocShell);
+ delete pSearchItem;
+}
+
+/*-----------------24.04.97 10:37-------------------
+
+--------------------------------------------------*/
+void SwSrcView::SaveContentTo(SfxMedium& rMed)
+{
+ aEditWin.Write( *rMed.GetInStream());//, EE_FORMAT_TEXT);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwSrcView::Init()
+{
+ SetHelpId(SW_SRC_VIEWSHELL);
+ SetName(C2S("Source"));
+ SetWindow( &aEditWin );
+ pSrcViewConfig = SW_MOD()->GetSourceViewConfig();
+ if(!pSrcViewConfig->IsDefault())
+ {
+ lcl_SetFont( this, pSrcViewConfig->GetFontName());
+
+ TextViewOutWin* pOutWin = aEditWin.GetOutWin();
+ Font aFont(aEditWin.GetTextEngine()->GetFont());
+ Size aSize(aFont.GetSize());
+ aSize.Height() = pSrcViewConfig->GetFontHeight();
+ aFont.SetSize(pOutWin->LogicToPixel(aSize, MAP_TWIP));
+ aEditWin.GetTextEngine()->SetFont(aFont);
+ pOutWin->SetFont(aFont);
+ }
+ SwDocShell* pDocShell = GetDocShell();
+ // wird das Doc noch geladen, dann muss die DocShell das Load
+ // anwerfen, wenn das Laden abgeschlossen ist
+ if(!pDocShell->IsLoading())
+ Load(pDocShell);
+ else
+ {
+ aEditWin.SetReadonly(TRUE);
+ }
+
+// StartListening(*GetViewFrame());
+ StartListening(*pDocShell);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwDocShell* SwSrcView::GetDocShell()
+{
+ SfxObjectShell* pObjShell = GetViewFrame()->GetObjectShell();
+ return PTR_CAST(SwDocShell, pObjShell);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwSrcView::SaveContent(const String& rTmpFile)
+{
+ SfxMedium aMedium( rTmpFile, STREAM_WRITE, TRUE);
+ const sal_Char *pCharSet =
+ rtl_getBestMimeCharsetFromTextEncoding( gsl_getSystemTextEncoding() );
+ rtl_TextEncoding eDestEnc = rtl_getTextEncodingFromMimeCharset( pCharSet );
+ SvStream* pOutStream = aMedium.GetOutStream();
+ pOutStream->SetStreamCharSet( eDestEnc );
+ aEditWin.Write(*pOutStream);//, EE_FORMAT_TEXT);
+ aMedium.Commit();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void __EXPORT SwSrcView::Execute(SfxRequest& rReq)
+{
+ USHORT nSlot = rReq.GetSlot();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ TextView* pTextView = aEditWin.GetTextView();
+ switch( nSlot )
+ {
+ case SID_ATTR_CHAR_FONT:
+ {
+ const SvxFontItem& rFontItem = (const SvxFontItem&)pArgs->Get(RES_CHRATR_FONT);
+ String sStyle = rFontItem.GetFamilyName();
+ lcl_SetFont( this, sStyle );
+ pSrcViewConfig->SetFontName(sStyle);
+ }
+ break;
+ case SID_ATTR_CHAR_FONTHEIGHT:
+ {
+ TextViewOutWin* pOutWin = aEditWin.GetOutWin();
+
+ const SvxFontHeightItem& rFontHeight = (const SvxFontHeightItem&)pArgs->Get(RES_CHRATR_FONTSIZE);
+ Font aFont(aEditWin.GetTextEngine()->GetFont());
+ Size aSize(aFont.GetSize());
+ aSize.Height() = rFontHeight.GetHeight();
+ aFont.SetSize(pOutWin->LogicToPixel(aSize, MAP_TWIP));
+ aEditWin.GetTextEngine()->SetFont(aFont);
+ pSrcViewConfig->SetFontHeight(USHORT(rFontHeight.GetHeight()));
+ }
+ break;
+ case SID_SAVEASDOC:
+ {
+ Window* pParent = &GetViewFrame()->GetWindow();
+ SfxFileDialog* pFileDlg = new SfxFileDialog(pParent, WB_SAVEAS|WB_3DLOOK);
+ pFileDlg->DisableSaveLastDirectory();
+ pFileDlg->SetHelpId(HID_FILEDLG_SRCVIEW);
+ String sHtml(C2S("HTML"));
+ pFileDlg->AddFilter( sHtml, C2S("*.html;*.htm") );
+ pFileDlg->SetCurFilter( sHtml );
+ pFileDlg->SetPath( SFX_INIMANAGER()->Get( SFX_KEY_WORK_PATH ) );
+ if( RET_OK == pFileDlg->Execute())
+ {
+ String aFileName = pFileDlg->GetPath();
+
+ INetURLObject aURL( aFileName );
+ if ( INET_PROT_FILE == aURL.GetProtocol() )
+ {
+ SvFileStream aCpy( aURL.PathToFileName(), STREAM_WRITE| STREAM_TRUNC );
+ aEditWin.Write(aCpy);//, EE_FORMAT_TEXT);
+
+ SvEaMgr *pMgr = new SvEaMgr(aCpy);
+ SwDocShell* pDocSh = GetDocShell();
+ SfxObjectFactory& rFac = pDocSh->GetFactory();
+ const SfxFilter* pFilter = 0;
+ for( USHORT i = 0; i < rFac.GetFilterCount(); i++ )
+ {
+ const SfxFilter* pFlt = rFac.GetFilter( i );
+ if( pFlt && pFlt->GetFilterName() == sHtml )
+ {
+ pFilter = pFlt;
+ break;
+ }
+ }
+ if(pFilter)
+ {
+ String aBuffer;
+
+ pMgr->SetComment(pDocSh->GetDocInfo().GetComment());
+#ifdef OS2
+ if ( pFilter->GetDocIconId() )
+ {
+ ResId aResId(pFilter->GetDocIconId(),
+ rFac.GetMenuBarId()->GetResMgr());
+ pMgr->SetIcon(aResId);
+ }
+#endif
+ pMgr->SetFileType(pFilter->GetTypeName().GetToken( 0, ';' ));
+ if ( SvEaMgr::GetAppCreator(aBuffer) )
+ pMgr->SetCreator(aBuffer);
+
+ delete pMgr;
+
+ }
+ aCpy.Close();
+ }
+ else
+ {
+ SfxMedium aMedium( aFileName, STREAM_WRITE | STREAM_SHARE_DENYNONE,
+ FALSE, FALSE );
+ {
+ SvFileStream aCpy( aMedium.GetPhysicalName(), STREAM_WRITE| STREAM_TRUNC );
+ aEditWin.Write(aCpy);//, EE_FORMAT_TEXT);
+ }
+ aMedium.Close();
+ aMedium.Commit();
+ }
+ }
+ delete pFileDlg;
+ }
+ break;
+ case SID_SAVEDOC:
+ {
+ SwDocShell* pDocShell = GetDocShell();
+ SfxMedium* pMed = 0;
+ if(pDocShell->HasName())
+ pMed = pDocShell->GetMedium();
+ else
+ {
+ SfxBoolItem* pItem = (SfxBoolItem*)pDocShell->ExecuteSlot(rReq, pDocShell->GetInterface());
+ if(pItem && pItem->GetValue())
+ pMed = pDocShell->GetMedium();
+ }
+ if(pMed)
+ {
+ SvStream* pInStream = pMed->GetInStream();
+ pInStream->Seek(0);
+ pInStream->SetStreamSize(0);
+ aEditWin.Write( *pInStream );
+ pMed->Commit();
+ pDocShell->GetDoc()->ResetModified();
+ SourceSaved();
+ aEditWin.ClearModifyFlag();
+ }
+ }
+ break;
+ case FID_SEARCH_NOW:
+ {
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ USHORT nWhich = pArgs->GetWhichByPos( 0 );
+ DBG_ASSERT( nWhich, "Wich fuer SearchItem ?" );
+ const SfxPoolItem& rItem = pArgs->Get( nWhich );
+ SetSearchItem( (const SvxSearchItem&)rItem);
+ StartSearchAndReplace( (const SvxSearchItem&)rItem, FALSE, rReq.IsAPI() );
+ if(aEditWin.IsModified())
+ GetDocShell()->GetDoc()->SetModified();
+ }
+ break;
+ case SID_PRINTDOC:
+ case SID_PRINTDOCDIRECT:
+ {
+ SfxViewShell::ExecuteSlot( rReq, SfxViewShell::GetInterface() );
+ }
+ break;
+ case SID_UNDO:
+ pTextView->Undo();
+ break;
+ case SID_REDO:
+ pTextView->Redo();
+ break;
+ case SID_REPEAT:
+ break;
+ case SID_CUT:
+ pTextView->Cut();
+ break;
+ case SID_COPY:
+ pTextView->Copy();
+ break;
+ case SID_PASTE:
+ pTextView->Paste();
+ break;
+ case SID_SELECTALL:
+ pTextView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
+ break;
+ }
+ aEditWin.Invalidate();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void __EXPORT SwSrcView::GetState(SfxItemSet& rSet)
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+ TextView* pTextView = aEditWin.GetTextView();
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_SAVEASDOC:
+ rSet.Put(SfxStringItem(nWhich, String(SW_RES(STR_SAVEAS_SRC))));
+ break;
+ case SID_SAVEDOC:
+ {
+ SwDocShell* pDocShell = GetDocShell();
+ if(!pDocShell->IsModified())
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case SID_PRINTDOC:
+ case SID_PRINTDOCDIRECT:
+ break;
+ case SID_TABLE_CELL:
+ {
+ String aPos( SW_RES(STR_SRCVIEW_ROW) );
+ TextSelection aSel = pTextView->GetSelection();
+ aPos += String::CreateFromInt32( aSel.GetEnd().GetPara()+1 );
+ aPos +=C2S(" : ");
+ aPos += String(SW_RES(STR_SRCVIEW_COL));
+ aPos += String::CreateFromInt32( aSel.GetEnd().GetIndex()+1 );
+ SfxStringItem aItem( nWhich, aPos );
+ rSet.Put( aItem );
+ }
+ break;
+ case RES_CHRATR_FONT:
+ {
+ Font aFont = aEditWin.GetTextEngine()->GetFont();
+ rSet.Put(SvxFontItem(
+ aFont.GetFamily(),
+ aFont.GetName(),
+ aFont.GetStyleName()));
+ }
+ break;
+ case RES_CHRATR_FONTSIZE:
+ {
+ TextViewOutWin* pOutWin = aEditWin.GetOutWin();
+ SvxFontHeightItem aFontHeight;
+ Size aTemp(aEditWin.GetTextEngine()->GetFont().GetSize());
+ aTemp = pOutWin->PixelToLogic(aTemp, MAP_TWIP);
+ aFontHeight.SetHeight(aTemp.Height());
+ aFontHeight.SetWhich(RES_CHRATR_FONTSIZE);
+ rSet.Put(aFontHeight);
+ }
+ break;
+ case SID_SEARCH_OPTIONS:
+ {
+ USHORT nOpt = SRC_SEARCHOPTIONS;
+ if(GetDocShell()->IsReadOnly())
+ nOpt &= ~(SEARCH_OPTIONS_REPLACE|SEARCH_OPTIONS_REPLACE_ALL);
+
+ rSet.Put( SfxUInt16Item( SID_SEARCH_OPTIONS, nOpt) );
+ }
+ break;
+ case SID_SEARCH_ITEM:
+ {
+ String sSelected;
+ if ( !pTextView->HasSelection() )
+ {
+ const TextSelection& rSel = pTextView->GetSelection();
+ sSelected = aEditWin.GetTextEngine()->GetWord( rSel.GetStart());
+ }
+ else
+ {
+ sSelected = pTextView->GetSelected();
+ }
+ SvxSearchItem * pSrchItem = GetSearchItem();
+ pSrchItem->SetSearchString( sSelected );
+ rSet.Put( *pSrchItem );
+ }
+ break;
+ case SID_UNDO:
+ case SID_REDO:
+ {
+ SfxUndoManager& rMgr = pTextView->GetTextEngine()->GetUndoManager();
+ USHORT nCount = 0;
+ if(nWhich == SID_UNDO)
+ {
+ nCount = rMgr.GetUndoActionCount();
+ if(nCount)
+ {
+ String aStr(ResId( STR_UNDO, SFX_APP()->GetSfxResManager() ));;
+ aStr += rMgr.GetUndoActionComment(--nCount);
+ rSet.Put(SfxStringItem(nWhich, aStr));
+ }
+ else
+ rSet.DisableItem(nWhich);
+ }
+ else
+ {
+ nCount = rMgr.GetRedoActionCount();
+ if(nCount)
+ {
+ String aStr(ResId( STR_REDO, SFX_APP()->GetSfxResManager() ));;
+ aStr += rMgr.GetRedoActionComment(--nCount);
+ rSet.Put(SfxStringItem(nWhich,aStr));
+ }
+ else
+ rSet.DisableItem(nWhich);
+ }
+ }
+ break;
+ case SID_REPEAT:
+ rSet.DisableItem(nWhich);
+ break;
+ case SID_CUT:
+ case SID_COPY:
+ if(!pTextView->HasSelection())
+ rSet.DisableItem(nWhich);
+ break;
+ case SID_PASTE:
+ {
+ SvDataObjectRef xObj;
+ if ( Clipboard::GetFormatCount() )
+ {
+ SwModule* pMod = SW_MOD();
+ if ( pMod->pClipboard )
+ xObj = pMod->pClipboard ;
+ else
+ xObj = SvDataObject::PasteClipboard();
+ }
+ if(!xObj.Is())
+ rSet.DisableItem(nWhich);
+ }
+ break;
+
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SvxSearchItem* SwSrcView::GetSearchItem()
+{
+ if(!pSearchItem)
+ {
+ pSearchItem = new SvxSearchItem(SID_SEARCH_ITEM);
+ }
+ return pSearchItem;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwSrcView::SetSearchItem( const SvxSearchItem& rItem )
+{
+ delete pSearchItem;
+ pSearchItem = (SvxSearchItem*)rItem.Clone();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+USHORT SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem,
+ BOOL bFromStart,
+ BOOL bApi,
+ BOOL bRecursive)
+{
+ ExtTextView* pTextView = aEditWin.GetTextView();
+ TextSelection aSel;
+ BOOL bForward = !rSearchItem.GetBackward();
+ BOOL bAtStart = pTextView->GetSelection() == TextSelection( TextPaM( 0x0, 0x0 ), TextPaM( 0x0, 0x0 ) );
+ if ( bFromStart )
+ {
+ aSel = pTextView->GetSelection();
+ if ( !rSearchItem.GetBackward() )
+ pTextView->SetSelection( TextSelection( TextPaM( 0x0, 0x0 ), TextPaM( 0x0, 0x0 ) ) );
+ else
+ pTextView->SetSelection( TextSelection( TextPaM( 0xFFFFFFFF, 0xFFFF ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
+ }
+
+ SearchParam aSearchParam( rSearchItem.GetSearchString(),
+ SearchParam::SRCH_NORMAL, rSearchItem.GetExact(),
+ rSearchItem.GetWordOnly(), rSearchItem.GetSelection() );
+ if ( rSearchItem.GetRegExp() )
+ aSearchParam.SetSrchType( SearchParam::SRCH_REGEXP );
+ else if ( rSearchItem.IsLevenshtein() )
+ {
+ aSearchParam.SetSrchType( SearchParam::SRCH_LEVDIST );
+ aSearchParam.SetSrchRelaxed( rSearchItem.IsLEVRelaxed() ? TRUE : FALSE );
+ aSearchParam.SetLEVOther( rSearchItem.GetLEVOther() );
+ aSearchParam.SetLEVShorter( rSearchItem.GetLEVShorter() );
+ aSearchParam.SetLEVLonger( rSearchItem.GetLEVLonger() );
+ }
+ USHORT nFound = 0;
+ if ( ( rSearchItem.GetCommand() == SVX_SEARCHCMD_FIND ) ||
+ ( rSearchItem.GetCommand() == SVX_SEARCHCMD_FIND_ALL ) )
+ {
+ nFound = pTextView->Search( aSearchParam, bForward );
+ }
+ else if ( ( rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE ) ||
+ ( rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE_ALL ) )
+ {
+ aSearchParam.SetReplaceStr( rSearchItem.GetReplaceString() );
+ BOOL bAll = rSearchItem.GetCommand() == SVX_SEARCHCMD_REPLACE_ALL;
+ nFound = pTextView->Replace( aSearchParam, bAll, bForward );
+ }
+ if(!nFound)
+ {
+ BOOL bNotFoundMessage = FALSE;
+ if(!bRecursive)
+ {
+ if(!bFromStart)
+ {
+ bNotFoundMessage = bAtStart;
+ }
+ else
+ {
+ bNotFoundMessage = TRUE;
+ pTextView->SetSelection( aSel );
+ }
+ }
+ else if(bAtStart)
+ {
+ bNotFoundMessage = TRUE;
+ }
+
+
+ if(!bApi)
+ if(bNotFoundMessage)
+ {
+ InfoBox( 0, SW_RES(MSG_NOT_FOUND)).Execute();
+ }
+ else if(!bRecursive && RET_YES ==
+ QueryBox(0, SW_RES( bForward ? MSG_SEARCH_END
+ : MSG_SEARCH_START)).Execute())
+ {
+ if ( bForward )
+ pTextView->SetSelection( TextSelection( TextPaM( 0x0, 0x0 ), TextPaM( 0x0, 0x0 ) ) );
+ else
+ pTextView->SetSelection( TextSelection( TextPaM( 0xFFFFFFFF, 0xFFFF ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
+ StartSearchAndReplace(rSearchItem, FALSE, FALSE, TRUE);
+ }
+ }
+ return nFound;
+}
+
+/*-----------------02.07.97 09:29-------------------
+
+--------------------------------------------------*/
+USHORT __EXPORT SwSrcView::SetPrinter(SfxPrinter* pNew, USHORT nDiffFlags )
+{
+ SwDocShell* pDocSh = GetDocShell();
+ if ( (SFX_PRINTER_JOBSETUP | SFX_PRINTER_PRINTER) & nDiffFlags )
+ {
+ pDocSh->GetDoc()->SetPrt( pNew );
+ if ( nDiffFlags & SFX_PRINTER_PRINTER )
+ pDocSh->SetModified();
+ }
+ if ( nDiffFlags & SFX_PRINTER_OPTIONS )
+ ::SetPrinter( pNew, TRUE );
+
+ const BOOL bChgOri = nDiffFlags & SFX_PRINTER_CHG_ORIENTATION ? TRUE : FALSE;
+ const BOOL bChgSize= nDiffFlags & SFX_PRINTER_CHG_SIZE ? TRUE : FALSE;
+ if ( bChgOri || bChgSize )
+ {
+ pDocSh->SetModified();
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ErrCode SwSrcView::DoPrint( SfxPrinter *pPrinter, PrintDialog *pDlg,
+ BOOL bSilent )
+{
+ SfxPrintProgress *pProgress = new SfxPrintProgress( this, !bSilent );
+ SfxPrinter *pDocPrinter = GetPrinter(TRUE);
+ if ( !pPrinter )
+ pPrinter = pDocPrinter;
+ else if ( pDocPrinter != pPrinter )
+ {
+ pProgress->RestoreOnEndPrint( pDocPrinter->Clone() );
+ SetPrinter( pPrinter, SFX_PRINTER_PRINTER );
+ }
+ pProgress->SetWaitMode(FALSE);
+
+ // Drucker starten
+ PreparePrint( pDlg );
+ SfxObjectShell *pObjShell = GetViewFrame()->GetObjectShell();
+
+ SfxViewShell::Print(*pProgress, pDlg); //???
+
+ MapMode eOldMapMode( pPrinter->GetMapMode() );
+ Font aOldFont( pPrinter->Printer::GetFont() );
+
+ TextEngine* pTextEngine = aEditWin.GetTextEngine();
+ pPrinter->SetMapMode(MAP_100TH_MM);
+ Font aFont(aEditWin.GetOutWin()->GetFont());
+ Size aSize(aFont.GetSize());
+ aSize = aEditWin.GetOutWin()->PixelToLogic(aSize, MAP_100TH_MM);
+ aFont.SetSize(aSize);
+ aFont.SetColor(COL_BLACK);
+ pPrinter->SetFont( aFont );
+
+ String aTitle( GetViewFrame()->GetWindow().GetText() );
+
+ USHORT nLineHeight = (USHORT) pPrinter->GetTextHeight(); // etwas mehr.
+ USHORT nParaSpace = 10;
+
+ Size aPaperSz = pPrinter->GetOutputSize();
+ aPaperSz.Width() -= (LMARGPRN+RMARGPRN);
+ aPaperSz.Height() -= (TMARGPRN+BMARGPRN);
+
+ // nLinepPage stimmt nicht, wenn Zeilen umgebrochen werden muessen...
+ USHORT nLinespPage = (USHORT) (aPaperSz.Height()/nLineHeight);
+ USHORT nCharspLine = (USHORT) (aPaperSz.Width() / pPrinter->GetTextWidth( 'X' ));
+ USHORT nParas = pTextEngine->GetParagraphCount();
+
+ USHORT nPages = (USHORT) (nParas/nLinespPage+1 );
+ USHORT nCurPage = 1;
+
+ BOOL bStartJob = pPrinter->StartJob( aTitle );
+ if( bStartJob )
+ {
+ pPrinter->StartPage();
+ // Header drucken...
+ lcl_PrintHeader( pPrinter, nPages, nCurPage, aTitle );
+ Point aPos( LMARGPRN, TMARGPRN );
+ for ( USHORT nPara = 0; nPara < nParas; nPara++ )
+ {
+ String aLine( pTextEngine->GetText( nPara ) );
+ lcl_ConvertTabsToSpaces( aLine );
+ USHORT nLines = aLine.Len()/nCharspLine+1;
+ for ( USHORT nLine = 0; nLine < nLines; nLine++ )
+ {
+ String aTmpLine( aLine, nLine*nCharspLine, nCharspLine );
+ aPos.Y() += nLineHeight;
+ if ( aPos.Y() > ( aPaperSz.Height()+TMARGPRN ) )
+ {
+ nCurPage++;
+ pPrinter->EndPage();
+ pPrinter->StartPage();
+ lcl_PrintHeader( pPrinter, nPages, nCurPage, aTitle );
+ aPos = Point( LMARGPRN, TMARGPRN+nLineHeight );
+ }
+ pPrinter->DrawText( aPos, aTmpLine );
+ }
+ aPos.Y() += nParaSpace;
+ }
+ pPrinter->EndPage();
+ }
+
+ pPrinter->SetFont( aOldFont );
+ pPrinter->SetMapMode( eOldMapMode );
+
+ if ( !bStartJob )
+ {
+ // Printer konnte nicht gestartet werden
+ delete pProgress;
+ return ERRCODE_IO_ABORT;
+ }
+
+ pProgress->Stop();
+ pProgress->DeleteOnEndPrint();
+ pPrinter->EndJob();
+ return pPrinter->GetError();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SfxPrinter* __EXPORT SwSrcView::GetPrinter( BOOL bCreate )
+{
+ return GetDocShell()->GetDoc()->GetPrt( bCreate );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void __EXPORT SwSrcView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ if ( rHint.ISA(SfxSimpleHint) &&
+ (((SfxSimpleHint&) rHint).GetId() == SFX_HINT_MODECHANGED) ||
+ (((SfxSimpleHint&) rHint).GetId() == SFX_HINT_TITLECHANGED &&
+ !GetDocShell()->IsReadOnly() && aEditWin.IsReadonly()))
+ {
+ // Broadcast kommt nur einmal!
+ const SwDocShell* pDocSh = GetDocShell();
+ const BOOL bReadonly = pDocSh->IsReadOnly();
+ aEditWin.SetReadonly(bReadonly);
+ }
+ SfxViewShell::Notify(rBC, rHint);
+}
+
+/*-----------------19.04.97 10:19-------------------
+
+--------------------------------------------------*/
+void SwSrcView::Load(SwDocShell* pDocShell)
+{
+ const sal_Char *pCharSet =
+ rtl_getBestMimeCharsetFromTextEncoding( gsl_getSystemTextEncoding() );
+ rtl_TextEncoding eDestEnc = rtl_getTextEncodingFromMimeCharset( pCharSet );
+ aEditWin.SetReadonly(pDocShell->IsReadOnly());
+ SfxMedium* pMedium = pDocShell->GetMedium();
+
+ const SfxFilter* pFilter = pMedium->GetFilter();
+ BOOL bHtml = pFilter && C2S("HTML") == pFilter->GetFilterName();
+ BOOL bDocModified = pDocShell->IsModified();
+ if(bHtml && !bDocModified && pDocShell->HasName())
+ {
+ SvStream* pStream = pMedium->GetInStream();
+ if(pStream && 0 == pStream->GetError() )
+ {
+ pStream->SetStreamCharSet( eDestEnc );
+ pStream->Seek(0);
+
+ aEditWin.Read(*pStream);//, EE_FORMAT_TEXT);
+ }
+ else
+ {
+ Window *pWindow = &GetViewFrame()->GetWindow();
+ InfoBox(pWindow, SW_RES(MSG_ERR_SRCSTREAM)).Execute();
+ }
+ }
+ else
+ {
+ TempFile aTempFile;
+ aTempFile.EnableKillingFile();
+ String sFileURL = aTempFile.GetName();
+ BOOL bIsRemote = pMedium->IsRemote();
+ SfxOptions& rOpt = SFX_APP()->GetOptions();
+ String sBaseURL = INetURLObject::GetBaseURL();
+
+ if( rOpt.IsSaveRelINet() && bIsRemote ||
+ rOpt.IsSaveRelFSys() && !bIsRemote)
+ INetURLObject::SetBaseURL( pMedium->GetName() );
+ else
+ INetURLObject::SetBaseURL( aEmptyStr );
+
+ {
+ SfxMedium aMedium( sFileURL,STREAM_READWRITE, TRUE );
+ SwWriter aWriter( aMedium, *pDocShell->GetDoc() );
+ WriterRef xWriter;
+ ::GetHTMLWriter(aEmptyStr, xWriter);
+ String sWriteName = pDocShell->HasName() ?
+ pMedium->GetName() :
+ (const String&) sFileURL;
+ ULONG nRes = aWriter.Write(xWriter, &sWriteName);
+ if(nRes)
+ {
+ ErrorHandler::HandleError(ErrCode(nRes));
+ aEditWin.SetReadonly(TRUE);
+ }
+ SvStream* pInStream = aMedium.GetInStream();
+ pInStream->Seek(0);
+ pInStream->SetStreamCharSet( eDestEnc );
+
+ INetURLObject::SetBaseURL(sBaseURL);
+
+ aEditWin.Read(*pInStream);//, EE_FORMAT_TEXT);
+ }
+ }
+ aEditWin.ClearModifyFlag();
+
+ if(bDocModified)
+ pDocShell->SetModified();// das Flag wird zwischendurch zurueckgesetzt
+ // AutoLoad abschalten
+ pDocShell->SetAutoLoad(INetURLObject(), 0, FALSE);
+ DBG_ASSERT(PTR_CAST(SwWebDocShell, pDocShell), "Wieso keine WebDocShell?")
+ USHORT nLine = ((SwWebDocShell*)pDocShell)->GetSourcePara();
+ aEditWin.SetStartLine(nLine);
+ aEditWin.GetTextEngine()->ResetUndo();
+ aEditWin.GetOutWin()->GrabFocus();
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.109 2000/09/18 16:06:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.108 2000/09/14 10:37:04 os
+ SfxMedium::CloseIn/OutStream removed
+
+ Revision 1.107 2000/08/30 16:13:02 os
+ #78341# save document before switching to source view
+
+ Revision 1.106 2000/06/22 11:20:25 os
+ use TempFile instead of GetTmpFileName()
+
+ Revision 1.105 2000/06/09 08:10:41 os
+ using tools/tempfile
+
+ Revision 1.104 2000/06/08 09:44:58 os
+ ContentBroker not in SwModule
+
+ Revision 1.103 2000/06/07 13:28:12 os
+ using UCB
+
+ Revision 1.102 2000/05/26 07:21:34 os
+ old SW Basic API Slots removed
+
+ Revision 1.101 2000/05/23 19:42:42 jp
+ Bugfixes for Unicode
+
+ Revision 1.100 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.99 2000/05/09 14:43:13 os
+ BASIC interface partially removed
+
+ Revision 1.98 2000/05/04 11:11:26 os
+ #75552# set correct charset in source view
+
+ Revision 1.97 2000/04/18 15:02:50 os
+ UNICODE
+
+ Revision 1.96 2000/03/14 13:43:43 jp
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.95 2000/03/03 15:48:01 pl
+ #73771# workaround for c50 intel compiler
+
+ Revision 1.94 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.93 2000/02/11 14:59:12 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.92 2000/01/24 12:43:16 os
+ #72153# call SfxFileDialog::DisableSaveLastDirectory
+
+ Revision 1.91 1999/10/21 17:49:09 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.90 1999/08/17 07:17:54 OS
+ #67248# DocShell::SetModified after replace
+
+
+ Rev 1.89 17 Aug 1999 09:17:54 OS
+ #67248# DocShell::SetModified after replace
+
+ Rev 1.88 20 May 1999 08:15:22 OS
+ #62641# Fehlermeldung auch beim Umschalten in die SourceView
+
+ Rev 1.87 04 May 1999 14:59:06 JP
+ FilterExportklasse Writer von SvRef abgeleitet, damit sie immer zerstoert wird
+
+ Rev 1.86 31 Mar 1999 06:42:58 OS
+ #64111# Font fuers drucken auf schwarz setzen
+
+ Rev 1.85 18 Mar 1999 14:55:02 OS
+ #57911# Listener am Doc statt am ViewFrame
+
+ Rev 1.84 25 Nov 1998 12:42:06 OS
+ #59826# temp. Datei in der DocShell loeschen
+
+ Rev 1.83 24 Nov 1998 08:55:58 OS
+ #58996# bSourceSaved-Flag initialisieren
+
+ Rev 1.82 05 Nov 1998 10:07:56 OS
+ #58996# Stream nach dem Speichern zuruecksetzen, Flag fuers speichern
+
+ Rev 1.81 03 Nov 1998 11:28:00 OS
+ #58680# nach SID_SAVEDOC ClearModifyFlag an der TextView rufen
+
+ Rev 1.80 08 Sep 1998 17:57:30 OS
+ #56083# .html fuer sourceview default
+
+ Rev 1.79 08 Sep 1998 16:55:42 MI
+ #55602# DocInfo vor Ausdruck setzen und ggf. hinterher resetten (ErrorCode bei Abort)
+
+ Rev 1.78 02 Sep 1998 14:12:18 OM
+ #45378# HelpIDs fuer Dateidialoge
+
+ Rev 1.77 12 Aug 1998 18:47:20 HR
+ #54781#: GCC braucht Temporary
+
+ Rev 1.76 17 Jul 1998 09:53:42 OS
+ Stream vor dem Schreiben auf Null setzen #53143#
+
+ Rev 1.75 11 Jul 1998 15:28:04 OS
+ HTML-Quelltext ins Medium der DocShell speichern #52379#
+
+ Rev 1.74 07 Jul 1998 14:26:38 AMA
+ Chg: DoPrint uebernimmt das Drucken
+
+ Rev 1.73 03 Jul 1998 15:04:20 AMA
+ Chg: DoPrint uebernimmt das Drucken
+
+ Rev 1.72 29 Jun 1998 12:56:06 OS
+ SW_MOD statt GetActiveModule
+
+ Rev 1.71 29 Jun 1998 09:40:08 OS
+ htm/html-Extension fuer SaveAs #48933#
+
+ Rev 1.70 29 May 1998 08:28:46 OS
+ Undo/Redo-Texte, Repeat disabled #50652##50653#
+
+ Rev 1.69 15 May 1998 18:40:46 HJS
+ syntax os2
+
+ Rev 1.68 24 Apr 1998 16:53:04 OS
+ Fonts aus der Docshell-Fontlist holen #49431#
+
+ Rev 1.67 01 Apr 1998 11:58:04 OS
+ Font mit aktueller Groesse setzen #49122#
+
+ Rev 1.66 12 Mar 1998 13:01:08 OS
+ SID_NEWWINDOW nicht mehr ueberladen
+
+ Rev 1.65 17 Dec 1997 16:52:36 ER
+ cast fuer IRIX
+
+ Rev 1.64 29 Nov 1997 16:48:36 MA
+ includes
+
+ Rev 1.63 27 Nov 1997 09:02:48 OS
+ jetzt auch mit SID_PRINTDOC #45786#
+
+ Rev 1.62 21 Nov 1997 15:00:28 MA
+ includes
+
+ Rev 1.61 03 Nov 1997 13:58:28 MA
+ precomp entfernt
+
+ Rev 1.60 31 Oct 1997 10:45:54 OS
+ Undo stimmt jetzt #44501#
+
+ Rev 1.59 24 Oct 1997 15:21:36 OS
+ ReloadFromHtml nur noch rufen, wenn das Doc im SourceMode veraendert wurde #44971#
+
+ Rev 1.58 09 Oct 1997 12:16:06 OS
+ Undo/Redo richtig enablen, beim Start zuruecksetzen #44501#
+
+ Rev 1.57 06 Sep 1997 10:59:04 OS
+ Suchen liefert Meldungen #43197#
+
+ Rev 1.56 01 Sep 1997 13:13:52 OS
+ DLL-Umstellung
+
+ Rev 1.55 11 Aug 1997 10:27:24 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.54 08 Aug 1997 17:26:08 OM
+ Headerfile-Umstellung
+
+ Rev 1.53 07 Aug 1997 19:59:54 HJS
+ includes
+
+ Rev 1.52 05 Aug 1997 16:36:38 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.51 31 Jul 1997 14:59:42 MH
+ chg: header
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/swcli.cxx b/sw/source/ui/uiview/swcli.cxx
new file mode 100644
index 000000000000..5d029c2a396d
--- /dev/null
+++ b/sw/source/ui/uiview/swcli.cxx
@@ -0,0 +1,308 @@
+/*************************************************************************
+ *
+ * $RCSfile: swcli.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:48 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _IPENV_HXX //autogen
+#include <so3/ipenv.hxx>
+#endif
+#ifndef _EMBOBJ_HXX //autogen
+#include <so3/embobj.hxx>
+#endif
+#ifndef _IPOBJ_HXX //autogen
+#include <so3/ipobj.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "swtypes.hxx"
+#include "view.hxx"
+#include "edtwin.hxx"
+#include "swcli.hxx"
+
+
+SwOleClient::SwOleClient( SwView *pView, SwEditWin *pWin ) :
+ SfxInPlaceClient( pView, pWin ), bInDoVerb( FALSE )
+{
+}
+
+
+void SwOleClient::RequestObjAreaPixel( const Rectangle & rObjRect )
+{
+ if ( !GetEnv() )
+ return;
+
+ //Der Server moechte die Clientgrosse verandern.
+ //Wir stecken die Wunschgroesse in die Core. Die Attribute des Rahmens
+ //werden auf den Wunschwert eingestellt. Dieser Wert wird also auch an
+ //den InPlaceClient weitergegeben.
+ //Die Core aktzeptiert bzw. formatiert die eingestellten Werte nicht
+ //zwangslaeufig. Wenn der Ole-Frm formatiert wurde wird das CalcAndSetScale()
+ //der WrtShell gerufen. Dort wird ggf. die Scalierung des SwOleClient
+ //eingestellt.
+
+ SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell();
+ Window *pWin = rSh.GetWin();
+
+ SvContainerEnvironment *pEnv = GetEnv();
+ SvInPlaceEnvironment * pIPEnv = pEnv->GetIPEnv();
+ ASSERT( pIPEnv, "RequestObjAreaPixel, Environment not found" );
+
+ SvInPlaceObject * pIPObj = pIPEnv->GetIPObj();
+ // Falls der Server nicht mit dem Maástab des Containers syncronisiert
+ // ist, wird durch das Setzen und Abfragen der VisArea die Server
+ // Einstellung ermittelt.
+ // Niemals Koordinatentransformationen mit dem Rectangle vornehmen!!!
+ Rectangle aLogRect( pEnv->PixelObjVisAreaToLogic( rObjRect ) );
+ if ( pEnv->GetObjAreaPixel().GetSize() != rObjRect.GetSize() )
+ // sichtbaren Ausschnitt setzen und abfragen
+ aLogRect = pIPObj->SetGetVisArea( aLogRect );
+
+ Size aBla( aLogRect.GetSize() );
+ aBla.Width() = Fraction( aBla.Width() ) * GetEnv()->GetScaleWidth();
+ aBla.Height()= Fraction( aBla.Height() ) * GetEnv()->GetScaleHeight();
+ aLogRect.SetSize( aBla );
+
+ const MapMode aTmp( pIPObj->GetMapUnit() );
+ aLogRect.SetSize( pWin->LogicToLogic( aLogRect.GetSize(), aTmp, MAP_TWIP ) );
+
+ //#52207# Hat sich die Position wirklich geaendert (Umrechnungsfehler vermeiden)?
+ if ( GetClientData()->GetObjAreaPixel().TopLeft() != rObjRect.TopLeft() )
+ aLogRect.SetPos ( pWin->PixelToLogic( rObjRect.TopLeft()));
+ else
+ aLogRect.SetPos( Point( LONG_MIN, LONG_MIN ) );
+
+ rSh.StartAllAction();
+ rSh.RequestObjectResize( SwRect( aLogRect ), GetIPObj());
+ rSh.EndAllAction();
+
+
+ SwRect aFrm( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, 0, GetIPObj() )),
+ aPrt( rSh.GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, 0, GetIPObj() ));
+ Size aSz ( aPrt.SSize() );
+ Point aPos( aPrt.Pos() + aFrm.Pos() );
+ aSz = pWin->LogicToPixel( aSz );
+ aPos = pWin->LogicToPixel( aPos);
+
+ Rectangle aPixRect( aPos, aSz );
+ SfxInPlaceClient::RequestObjAreaPixel( aPixRect );
+
+ if ( !aFrm.IsOver( rSh.VisArea() ) )
+ rSh.MakeVisible( aFrm );
+}
+
+
+void SwOleClient::ViewChanged( USHORT nAspect )
+{
+ SfxInPlaceClient::ViewChanged( nAspect );
+ if ( !GetEnv() || bInDoVerb )
+ return;
+
+ const Rectangle aOldArea( GetEnv()->GetObjArea() );
+ SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell();
+ Window *pWin = rSh.GetWin();
+
+ //Einstellen der Groesse des Objektes in der Core. Die Scalierung muss
+ //beruecksichtigt werden. Rueckwirkung auf das Objekt werden von
+ //CalcAndSetScale() der WrtShell beruecksichtig, wenn die Groesse/Pos des
+ //Rahmens in der Core sich veraendert.
+ SvEmbeddedObject *pObj = GetEmbedObj();
+ Size aVisSize( pObj->GetVisArea().GetSize() );
+
+ // Bug 24833: solange keine vernuenftige Size vom Object kommt,
+ // kann nichts skaliert werden
+ if( !aVisSize.Width() || !aVisSize.Height() )
+ return;
+
+ aVisSize.Width() = Fraction( aVisSize.Width() ) * GetEnv()->GetScaleWidth();
+ aVisSize.Height()= Fraction( aVisSize.Height() ) * GetEnv()->GetScaleHeight();
+ const MapMode aMyMap ( MAP_TWIP );
+ const MapMode aObjMap( pObj->GetMapUnit() );
+ aVisSize = OutputDevice::LogicToLogic( aVisSize, aObjMap, aMyMap );
+
+ SwRect aRect( Point( LONG_MIN, LONG_MIN ), aVisSize );
+ rSh.LockView( TRUE ); //Scrollen im EndAction verhindern
+ rSh.StartAllAction();
+ rSh.RequestObjectResize( aRect, GetIPObj() );
+ rSh.EndAllAction();
+ rSh.LockView( FALSE );
+}
+
+
+void SwOleClient::MakeVisible()
+{
+ SfxInPlaceClient::MakeVisible();
+
+ const SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell();
+ SvEmbeddedObject *pObj = GetEmbedObj();
+ rSh.MakeObjVisible( pObj );
+}
+
+
+void SwOleClient::MakeViewData()
+{
+ SfxInPlaceClient::MakeViewData();
+
+ SvClientData *pCD = GetClientData();
+ if ( pCD )
+ {
+ SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell();
+ SvEmbeddedObjectRef xObj = GetEmbedObj();
+ rSh.CalcAndSetScale( xObj );
+ }
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.28 2000/09/18 16:06:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.27 2000/02/11 14:59:15 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.26 1999/05/11 19:50:16 JP
+ Task #66127#: Methoden rund ums Lineal verbessert und Schnittstellen veraendert/erweitert
+
+
+ Rev 1.25 11 May 1999 21:50:16 JP
+ Task #66127#: Methoden rund ums Lineal verbessert und Schnittstellen veraendert/erweitert
+
+ Rev 1.24 18 Dec 1998 17:56:52 JP
+ Bug #60270#: im SwOleClient Flag fuers abklemmen der ViewChgMsg beim Aktivieren
+
+ Rev 1.23 06 Jul 1998 15:19:08 MA
+ #52207# Pixelfehler vermeiden
+
+ Rev 1.22 21 Nov 1997 15:00:28 MA
+ includes
+
+ Rev 1.21 12 Nov 1997 12:31:08 TJ
+ includes vertauscht wegen internal compiler error!
+
+ Rev 1.20 03 Nov 1997 13:58:30 MA
+ precomp entfernt
+
+ Rev 1.19 04 Sep 1997 17:14:42 MA
+ includes
+
+ Rev 1.18 26 Nov 1996 17:35:02 MA
+ Entschlackt
+
+ Rev 1.17 29 Jul 1996 15:47:14 MA
+ includes
+
+ Rev 1.16 19 Apr 1996 14:04:10 HJS
+ const entfernt
+
+ Rev 1.15 18 Apr 1996 12:58:18 MA
+ Umstellung 313
+
+ Rev 1.14 18 Apr 1996 12:05:08 MA
+ Umstellung 313
+
+ Rev 1.13 18 Apr 1996 11:53:28 MA
+ new: MakeVisible
+
+ Rev 1.12 27 Mar 1996 12:27:30 MA
+ fix: Request..(), ggf. MakeVisible rufen
+
+ Rev 1.11 05 Mar 1996 15:51:04 MA
+ chg: ein paar SS mit IPObj
+
+ Rev 1.10 01 Feb 1996 19:11:30 JP
+ Bug #24833#: Ohne VisSize den Rahmen nicht anzeigen
+
+ Rev 1.9 19 Jan 1996 08:17:02 MA
+ chg: EqualSize entfernt
+
+ Rev 1.8 18 Jan 1996 13:20:30 MA
+ Umstellung OLE
+
+ Rev 1.7 09 Jan 1996 12:42:02 MA
+ fix: ViewChanged, View locken damit nicht gescrollt wird.
+
+ Rev 1.6 24 Nov 1995 16:58:02 OM
+ PCH->PRECOMPILED
+
+ Rev 1.5 13 Nov 1995 10:59:48 OM
+ static entfernt
+
+ Rev 1.4 20 Sep 1995 13:20:26 JP
+ RequestObjectAreaPixel: teil auskommentiert
+
+ Rev 1.3 14 Sep 1995 16:28:04 ER
+ add: soipenv.hxx
+
+ Rev 1.2 01 Sep 1995 16:11:14 SWG
+ Umstellung 255
+
+ Rev 1.1 14 Jul 1995 15:27:24 MA
+ fix: SEXPORT's nachgeruestet.
+
+ Rev 1.0 14 Jul 1995 11:57:52 MA
+ new: auf eigenen OleClient umgestellt
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/uivwimp.cxx b/sw/source/ui/uiview/uivwimp.cxx
new file mode 100644
index 000000000000..7d76a6ffa2c2
--- /dev/null
+++ b/sw/source/ui/uiview/uivwimp.cxx
@@ -0,0 +1,310 @@
+/*************************************************************************
+ *
+ * $RCSfile: uivwimp.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <cmdid.h>
+#include "globals.hrc"
+
+#ifndef _UIVWIMP_HXX
+#include <uivwimp.hxx>
+#endif
+#ifndef _SWWVIEW_HXX //autogen
+#include <wview.hxx>
+#endif
+
+#ifndef _UNOTXVW_HXX
+#include <unotxvw.hxx>
+#endif
+
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SV_WRKWIN_HXX
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include "swmodule.hxx"
+#endif
+#include <view.hrc>
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_SCANNER_XSCANNERMANAGER_HPP_
+#include <com/sun/star/scanner/XScannerManager.hpp>
+#endif
+#ifndef _SFX_BINDINGS_HXX
+#include <sfx2/bindings.hxx>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::scanner;
+using namespace ::com::sun::star::lang;
+/* -----------------02.06.98 15:31-------------------
+ *
+ * --------------------------------------------------*/
+SwView_Impl::SwView_Impl(SwView* pShell) :
+ pView(pShell),
+ pxXTextView(new uno::Reference<view::XSelectionSupplier>),
+ eShellMode(SEL_TEXT)
+{
+ *pxXTextView = new SwXTextView(pView);
+}
+
+/*-----------------13.12.97 09:51-------------------
+
+--------------------------------------------------*/
+SwView_Impl::~SwView_Impl()
+{
+ view::XSelectionSupplier* pTextView = pxXTextView->get();
+ ((SwXTextView*)pTextView)->Invalidate();
+ delete pxXTextView;
+ if(xScanEvtLstnr.is())
+ pScanEvtLstnr->ParentDestroyed();
+}
+/* -----------------------------29.05.00 08:29--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwScannerEventListener::~SwScannerEventListener()
+{
+}
+/* -----------------------------29.05.00 08:29--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SAL_CALL SwScannerEventListener::disposing( const EventObject& rEventObject )
+{
+ if( m_pParent )
+ m_pParent->ScannerEventHdl( rEventObject );
+}
+
+/*-----------------13.12.97 09:54-------------------
+
+--------------------------------------------------*/
+void SwView_Impl::SetShellMode(ShellModes eSet)
+{
+ eShellMode = eSet;
+}
+/*-----------------13.12.97 09:59-------------------
+
+--------------------------------------------------*/
+view::XSelectionSupplier* SwView_Impl::GetUNOObject()
+{
+ return pxXTextView->get();
+}
+/* -----------------02.06.98 15:29-------------------
+ *
+ * --------------------------------------------------*/
+SwXTextView* SwView_Impl::GetUNOObject_Impl()
+{
+ view::XSelectionSupplier* pTextView = pxXTextView->get();
+ return ((SwXTextView*)pTextView);
+}
+/* -----------------------------29.05.00 09:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwView_Impl::ExcuteScan(USHORT nSlot)
+{
+ switch(nSlot)
+ {
+ case SID_TWAIN_SELECT:
+ {
+ BOOL bDone = FALSE;
+ Reference< XScannerManager > xScanMgr = SW_MOD()->GetScannerManager();
+
+ if( xScanMgr.is() )
+ {
+//JP 26.06.00: the appwindow doen't exist
+// Application::GetAppWindow()->EnableInput( FALSE );
+
+ try
+ {
+ const Sequence< ScannerContext >
+ aContexts( xScanMgr->getAvailableScanners() );
+
+ if( aContexts.getLength() )
+ {
+ ScannerContext aContext( aContexts.getConstArray()[ 0 ] );
+ bDone = xScanMgr->configureScanner( aContext );
+ }
+ }
+ catch(...)
+ {
+ }
+
+//JP 26.06.00: the appwindow doen't exist
+// Application::GetAppWindow()->EnableInput( TRUE );
+ }
+ if( !bDone )
+ InfoBox( 0, SW_RES(MSG_SCAN_NOSOURCE) ).Execute();
+ }
+ break;
+
+ case SID_TWAIN_TRANSFER:
+ {
+ BOOL bDone = FALSE;
+
+ Reference< XScannerManager > xScanMgr = SW_MOD()->GetScannerManager();
+ if( xScanMgr.is() )
+ {
+ SwScannerEventListener& rListener = GetScannerEventListener();
+//JP 26.06.00: the appwindow doen't exist
+// Application::GetAppWindow()->EnableInput( FALSE );
+ try
+ {
+ const Sequence< scanner::ScannerContext >aContexts( xScanMgr->getAvailableScanners() );
+ if( aContexts.getLength() )
+ {
+ Reference< XEventListener > xLstner = &rListener;
+ xScanMgr->startScan( aContexts.getConstArray()[ 0 ], xLstner );
+ bDone = TRUE;
+ }
+ }
+ catch(...)
+ {
+ }
+ }
+
+ if( !bDone )
+ {
+//JP 26.06.00: the appwindow doen't exist
+// Application::GetAppWindow()->EnableInput( TRUE );
+ InfoBox( 0, SW_RES(MSG_SCAN_NOSOURCE) ).Execute();
+ }
+ else
+ {
+ SfxBindings& rBind = pView->GetViewFrame()->GetBindings();
+ rBind.Invalidate( SID_TWAIN_SELECT );
+ rBind.Invalidate( SID_TWAIN_TRANSFER );
+ }
+ }
+ break;
+ }
+}
+
+/* -----------------------------29.05.00 08:26--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwScannerEventListener& SwView_Impl::GetScannerEventListener()
+{
+ if(!xScanEvtLstnr.is())
+ xScanEvtLstnr = pScanEvtLstnr = new SwScannerEventListener(pView);
+ return *pScanEvtLstnr;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.14 2000/09/18 16:06:11 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.13 2000/09/07 15:59:32 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.12 2000/06/26 10:44:13 jp
+ must change: GetAppWindow->GetDefaultDevice
+
+ Revision 1.11 2000/05/29 08:03:23 os
+ new scanner interface
+
+ Revision 1.10 2000/05/09 14:43:13 os
+ BASIC interface partially removed
+
+ Revision 1.9 2000/03/23 07:50:24 os
+ UNO III
+
+ Revision 1.8 1999/01/27 08:58:26 OS
+ #56371# TF_ONE51
+
+
+ Rev 1.7 27 Jan 1999 09:58:26 OS
+ #56371# TF_ONE51
+
+ Rev 1.6 30 Sep 1998 11:37:50 OS
+ #52654# ueberfluessigen Aufruf entfernt
+
+ Rev 1.5 02 Jun 1998 15:51:16 OS
+ TF_STARONE raus; Ctor nicht mehr inline
+
+ Rev 1.4 03 Apr 1998 14:38:28 OS
+ UnoObject fuer die View reaktiviert
+
+ Rev 1.3 04 Feb 1998 17:28:44 OS
+ Starone raus
+
+ Rev 1.2 29 Jan 1998 09:21:06 OS
+ TF_STARONE
+
+ Rev 1.1 19 Jan 1998 14:59:14 OS
+ UNO-Aenderungen
+
+ Rev 1.0 16 Dec 1997 11:58:48 OS
+ Impl-Pointer fuer UNO
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx
new file mode 100644
index 000000000000..3271fc03c6e2
--- /dev/null
+++ b/sw/source/ui/uiview/view.cxx
@@ -0,0 +1,1743 @@
+/*************************************************************************
+ *
+ * $RCSfile: view.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <string> // HACK: prevent conflict between STLPORT and Workshop headers
+
+#include <stdlib.h>
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SV_GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _VCL_INPUTCTX_HXX //autogen
+#include <vcl/inputctx.hxx>
+#endif
+#ifndef _SBX_SBXOBJECT_HXX //autogen
+#include <svtools/sbxobj.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_SAVEOPT_HXX //autogen
+#include <sfx2/saveopt.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _OFA_OSPLCFG_HXX
+#include <offmgr/osplcfg.hxx>
+#endif
+
+#ifndef _SVX_FMSHELL_HXX //autogen
+#include <svx/fmshell.hxx>
+#endif
+#ifndef _UNOTXVW_HXX
+#include <unotxvw.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWHINTS_HXX
+#include <swhints.hxx>
+#endif
+
+#ifndef _SWMODULE_HXX //autogen
+#include <swmodule.hxx>
+#endif
+#ifndef SW_INPUTWIN_HXX //autogen
+#include <inputwin.hxx>
+#endif
+#ifndef _CHARTINS_HXX //autogen
+#include <chartins.hxx>
+#endif
+#ifndef _UIVWIMP_HXX
+#include <uivwimp.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _TEXTSH_HXX
+#include <textsh.hxx>
+#endif
+#ifndef _LISTSH_HXX
+#include <listsh.hxx>
+#endif
+#ifndef _TABSH_HXX
+#include <tabsh.hxx>
+#endif
+#ifndef _GRFSH_HXX
+#include <grfsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FRMSH_HXX
+#include <frmsh.hxx>
+#endif
+#ifndef _OLESH_HXX
+#include <olesh.hxx>
+#endif
+#ifndef _DRAWSH_HXX
+#include <drawsh.hxx>
+#endif
+#ifndef _DRAWBASE_HXX
+#include <drawbase.hxx>
+#endif
+#ifndef _DRFORMSH_HXX
+#include <drformsh.hxx>
+#endif
+#ifndef _DRWTXTSH_HXX
+#include <drwtxtsh.hxx>
+#endif
+#ifndef _BEZIERSH_HXX
+#include <beziersh.hxx>
+#endif
+#ifndef _GLOBDOC_HXX
+#include <globdoc.hxx>
+#endif
+#ifndef _SCROLL_HXX
+#include <scroll.hxx>
+#endif
+#ifndef _GLOBDOC_HXX
+#include <globdoc.hxx>
+#endif
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+#ifndef _GLOSHDL_HXX
+#include <gloshdl.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _SRCVIEW_HXX
+#include <srcview.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _WORKCTRL_HXX
+#include <workctrl.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _BARCFG_HXX
+#include <barcfg.hxx>
+#endif
+#ifndef _DOC_HXX //autogen
+#include <doc.hxx>
+#endif
+#ifndef _PVIEW_HXX
+#include <pview.hxx>
+#endif
+
+#ifndef _VIEW_HRC
+#include <view.hrc>
+#endif
+#ifndef _GLOBDOC_HRC
+#include <globdoc.hrc>
+#endif
+#ifndef _FRMUI_HRC
+#include <frmui.hrc>
+#endif
+
+
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_SCANNER_SCANNERCONTEXT_HPP_
+#include <com/sun/star/scanner/ScannerContext.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SCANNER_XSCANNERMANAGER_HPP_
+#include <com/sun/star/scanner/XScannerManager.hpp>
+#endif
+#ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
+#include <toolkit/unohlp.hxx>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::scanner;
+using namespace ::rtl;
+#define C2U(cChar) OUString::createFromAscii(cChar)
+#define C2S(cChar) String::CreateFromAscii(cChar)
+
+extern sal_Bool bNoInterrupt; // in mainwn.cxx
+
+#define SWVIEWFLAGS ( SFX_VIEW_MAXIMIZE_FIRST| \
+ SFX_VIEW_OBJECTSIZE_EMBEDDED| \
+ SFX_VIEW_CAN_PRINT| \
+ SFX_VIEW_HAS_PRINTOPTIONS)
+
+//MA 06. Nov. 95: Each raus in Absprache mit MI wg. Bug 21523
+// SFX_VIEW_OPTIMIZE_EACH|
+
+/*--------------------------------------------------------------------
+ Beschreibung: Statics
+ --------------------------------------------------------------------*/
+
+int bDocSzUpdated = 1;
+
+SvxSearchItem* SwView::pSrchItem = 0;
+
+sal_uInt16 SwView::nInsertCtrlState = FN_INSERT_TABLE;
+sal_uInt16 SwView::nWebInsertCtrlState = FN_INSERT_TABLE;
+sal_uInt16 SwView::nInsertObjectCtrlState = SID_INSERT_DIAGRAM;
+
+sal_Bool SwView::bExtra = sal_False;
+sal_Bool SwView::bFound = sal_False;
+sal_Bool SwView::bJustOpened = sal_False;
+
+
+SvxSearchDialog* SwView::pSrchDlg = 0;
+SearchAttrItemList* SwView::pSrchList = 0;
+SearchAttrItemList* SwView::pReplList = 0;
+
+DBG_NAME(viewhdl);
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+inline SfxDispatcher &SwView::GetDispatcher()
+{
+ return *GetViewFrame()->GetDispatcher();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwView::ImpSetVerb( int nSelType )
+{
+ sal_Bool bResetVerbs = bVerbsActive;
+ if ( !GetDocShell()->GetProtocol().IsInPlaceActive() &&
+ (SwWrtShell::SEL_OLE|SwWrtShell::SEL_GRF) & nSelType )
+ {
+ if ( !pWrtShell->IsSelObjProtected(FLYPROTECT_CONTENT) )
+ {
+ if ( nSelType & SwWrtShell::SEL_OLE )
+ {
+ SvInPlaceObjectRef xRef = GetWrtShell().GetOLEObj();
+ SetVerbs( &xRef->GetVerbList() );
+ bVerbsActive = sal_True;
+ bResetVerbs = sal_False;
+ }
+ if ( nSelType & SwWrtShell::SEL_GRF &&
+
+ SFX_APP()->HasFeature( SFX_FEATURE_SIMAGE ) )
+ {
+ SvVerb aVerb( 0, SW_RESSTR( STR_VERB_FOR_GRF ));
+ SvVerbList aLst;
+ aLst.Append( aVerb );
+ SetVerbs( &aLst );
+ bVerbsActive = sal_True;
+ bResetVerbs = sal_False;
+ }
+ }
+ }
+ if ( bResetVerbs )
+ {
+ SetVerbs( 0 );
+ bVerbsActive = sal_False;
+ }
+}
+
+
+void SwView::SelectShell()
+{
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//
+// Achtung: SelectShell fuer die WebView mitpflegen
+//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+
+ // Entscheidung, ob UpdateTable gerufen werden muss
+ sal_Bool bUpdateTable = sal_False;
+ const SwFrmFmt* pCurTableFmt = pWrtShell->GetTableFmt();
+ if(pCurTableFmt && pCurTableFmt != pLastTableFormat)
+ {
+ bUpdateTable = sal_True; // kann erst spaeter ausgefuehrt werden
+ }
+ pLastTableFormat = pCurTableFmt;
+
+ //SEL_TBL und SEL_TBL_CELLS koennen verodert sein!
+ int nNewSelectionType = (pWrtShell->GetSelectionType()
+ & ~SwWrtShell::SEL_TBL_CELLS);
+
+ if ( nNewSelectionType == nSelectionType )
+ {
+ GetViewFrame()->GetBindings().InvalidateAll( sal_False );
+ if ( nSelectionType & SwWrtShell::SEL_OLE ||
+ nSelectionType & SwWrtShell::SEL_GRF )
+ //Fuer Grafiken und OLE kann sich natuerlich das Verb aendern!
+ ImpSetVerb( nNewSelectionType );
+ }
+ else
+ {
+
+ SfxDispatcher &rDispatcher = GetDispatcher();
+ SwToolbarConfigItem *pBarCfg = SW_MOD()->GetToolbarConfig();
+
+ // DELETEZ(pxSelectionObj); //Selektionsobjekt loeschen
+ if ( pShell )
+ {
+ rDispatcher.Flush(); // alle gecachten Shells wirklich loeschen
+
+ //Zur alten Selektion merken welche Toolbar sichtbar war
+ sal_uInt16 nId = rDispatcher.GetObjectBarId( SFX_OBJECTBAR_OBJECT );
+ if ( nId )
+ pBarCfg->SetTopToolbar( nSelectionType, nId );
+
+ SfxShell *pSfxShell;
+ sal_uInt16 i;
+ for ( i = 0; sal_True; ++i )
+ {
+ pSfxShell = rDispatcher.GetShell( i );
+ if ( !(pSfxShell->ISA( SwBaseShell ) ||
+ pSfxShell->ISA( SwDrawTextShell )) )
+ break;
+ }
+ pSfxShell = rDispatcher.GetShell( --i );
+ ASSERT( pSfxShell, "My Shell ist lost in space" );
+ rDispatcher.Pop( *pSfxShell, SFX_SHELL_POP_UNTIL | SFX_SHELL_POP_DELETE);
+ }
+
+ FASTBOOL bInitFormShell = sal_False;
+ if (!pFormShell)
+ {
+ bInitFormShell = sal_True;
+ pFormShell = new FmFormShell( this );
+ rDispatcher.Push( *pFormShell );
+
+ StartListening(*pFormShell);
+ }
+
+ FASTBOOL bSetExtInpCntxt = sal_False;
+ nSelectionType = nNewSelectionType;
+ ShellModes eShellMode;
+
+ if ( nSelectionType & SwWrtShell::SEL_OLE )
+ {
+ eShellMode = SEL_OBJECT;
+ pShell = new SwOleShell( *this );
+ rDispatcher.Push( *pShell );
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_FRM
+ || nSelectionType & SwWrtShell::SEL_GRF)
+ {
+ eShellMode = SEL_FRAME;
+ pShell = new SwFrameShell( *this );
+ rDispatcher.Push( *pShell );
+ if(nSelectionType & SwWrtShell::SEL_GRF )
+ {
+ eShellMode = SEL_GRAPHIC;
+ pShell = new SwGrfShell( *this );
+ rDispatcher.Push( *pShell );
+ }
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_DRW )
+ {
+ eShellMode = SEL_DRAW;
+ pShell = new SwDrawShell( *this );
+
+ rDispatcher.Push( *pShell );
+ if ( nSelectionType & SwWrtShell::SEL_BEZ )
+ {
+ eShellMode = SEL_BEZIER;
+ pShell = new SwBezierShell( *this );
+ rDispatcher.Push( *pShell );
+ }
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_DRW_FORM )
+ {
+ eShellMode = SEL_DRAW_FORM;
+ pShell = new SwDrawFormShell( *this );
+
+ rDispatcher.Push( *pShell );
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_DRW_TXT )
+ {
+ eShellMode = SEL_DRAWTEXT;
+ rDispatcher.Push( *(new SwBaseShell( *this )) );
+ pShell = new SwDrawTextShell( *this );
+ rDispatcher.Push( *pShell );
+ }
+ else
+ {
+ bSetExtInpCntxt = sal_True;
+ eShellMode = SEL_TEXT;
+ sal_uInt32 nHelpId = 0;
+ if ( nSelectionType & SwWrtShell::SEL_NUM )
+ {
+ eShellMode = SEL_LIST_TEXT;
+ pShell = new SwListShell( *this );
+ nHelpId = pShell->GetHelpId();
+ rDispatcher.Push( *pShell );
+ }
+ pShell = new SwTextShell(*this);
+ if(nHelpId)
+ pShell->SetHelpId(nHelpId);
+ rDispatcher.Push( *pShell );
+ if ( nSelectionType & SwWrtShell::SEL_TBL )
+ {
+ eShellMode = eShellMode == SEL_LIST_TEXT ? SEL_TABLE_LIST_TEXT
+ : SEL_TABLE_TEXT;
+ pShell = new SwTableShell( *this );
+ rDispatcher.Push( *pShell );
+ }
+ }
+ pViewImpl->SetShellMode(eShellMode);
+ ImpSetVerb( nSelectionType );
+
+ if( !GetDocShell()->IsReadOnly() )
+ {
+ if( bSetExtInpCntxt && GetWrtShell().HasReadonlySel() )
+ bSetExtInpCntxt = sal_False;
+
+ InputContext aCntxt( GetEditWin().GetInputContext() );
+ aCntxt.SetOptions( bSetExtInpCntxt
+ ? (aCntxt.GetOptions() |
+ ( INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT ))
+ : (aCntxt.GetOptions() & ~
+ ( INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT )) );
+ GetEditWin().SetInputContext( aCntxt );
+ }
+
+ //Zur neuen Selektion die Toolbar aktivieren, die auch beim letzten Mal
+ //aktiviert war
+ //Vorher muss ein Flush() sein, betrifft aber lt. MBA nicht das UI und ist
+ //kein Performance-Problem
+ rDispatcher.Flush();
+ sal_uInt16 nId = pBarCfg->GetTopToolbar( nSelectionType );
+ if ( USHRT_MAX != nId )
+ rDispatcher.ShowObjectBar( nId );
+
+ Point aPnt = GetEditWin().OutputToScreenPixel(GetEditWin().GetPointerPosPixel());
+ aPnt = GetEditWin().PixelToLogic(aPnt);
+ GetEditWin().UpdatePointer(aPnt);
+
+ if ( bInitFormShell && GetWrtShell().GetDrawView() )
+ pFormShell->SetView(PTR_CAST(FmFormView, GetWrtShell().GetDrawView()));
+
+ }
+ //Guenstiger Zeitpunkt fuer die Kommunikation mit OLE-Objekten?
+ if ( GetDocShell()->GetDoc()->IsOLEPrtNotifyPending() )
+ GetDocShell()->GetDoc()->PrtOLENotify( sal_False );
+
+ //jetzt das Tabellen-Update
+ if(bUpdateTable)
+ pWrtShell->UpdateTable();
+}
+
+//Zusammenspiel: AttrChangedNotify() und TimeoutHdl.
+//Falls noch Actions offen sind keine Aktualisierung, da der
+//Cursor auf der Core-Seite im Wald stehen kann.
+//Da wir aber keine Stati mehr liefern koennen und wollen locken wir
+//stattdessen den Dispatcher.
+
+
+
+int
+#if defined( WNT )
+ __cdecl
+#endif
+#if defined( ICC )
+ _Optlink
+#endif
+ lcl_CmpIds( const void *pFirst, const void *pSecond)
+{
+ return (*(sal_uInt16*)pFirst) - (*(sal_uInt16*)pSecond);
+}
+
+
+
+IMPL_LINK( SwView, AttrChangedNotify, SwWrtShell *, EMPTYARG )
+{
+ if ( GetEditWin().IsChainMode() )
+ GetEditWin().SetChainMode( sal_False );
+
+ //Opt: Nicht wenn PaintLocked. Beim Unlock wird dafuer nocheinmal ein
+ //Notify ausgeloest.
+ if( !pWrtShell->IsPaintLocked() && !bNoInterrupt &&
+ GetDocShell()->IsReadOnly() )
+ _CheckReadonlyState();
+
+ // JP 19.01.99: Cursor in Readonly Bereichen
+ if( !pWrtShell->IsPaintLocked() && !bNoInterrupt )
+ _CheckReadonlySelection();
+
+ if( !bAttrChgNotified )
+ {
+ if ( pWrtShell->BasicActionPend() || bNoInterrupt ||
+ GetDispatcher().IsLocked() || //do not confuse the SFX
+ GetViewFrame()->GetBindings().IsInUpdate() )//do not confuse the SFX
+ {
+ bAttrChgNotified = sal_True;
+ aTimer.Start();
+
+ const SfxPoolItem *pItem;
+ if ( SFX_ITEM_SET != GetObjectShell()->GetMedium()->GetItemSet()->
+ GetItemState( SID_HIDDEN, sal_False, &pItem ) ||
+ !((SfxBoolItem*)pItem)->GetValue() )
+ {
+ GetViewFrame()->GetBindings().ENTERREGISTRATIONS();
+ bAttrChgNotifiedWithRegistrations = sal_True;
+ }
+ }
+ else
+ SelectShell();
+ }
+ GetViewImpl()->GetUNOObject_Impl()->NotifySelChanged();
+ return 0;
+}
+
+
+
+IMPL_LINK( SwView, TimeoutHdl, Timer *, EMPTYARG )
+{
+ DBG_PROFSTART(viewhdl);
+
+ if( pWrtShell->BasicActionPend() || bNoInterrupt )
+ {
+ aTimer.Start();
+ DBG_PROFSTOP(viewhdl);
+ return 0;
+ }
+
+ if ( bAttrChgNotifiedWithRegistrations )
+ {
+ GetViewFrame()->GetBindings().LEAVEREGISTRATIONS();
+ bAttrChgNotifiedWithRegistrations = sal_False;
+ }
+
+ _CheckReadonlyState();
+ _CheckReadonlySelection();
+
+ SelectShell();
+ bAttrChgNotified = sal_False;
+
+ DBG_PROFSTOP(viewhdl);
+ return 0;
+}
+
+void SwView::_CheckReadonlyState()
+{
+ SfxDispatcher &rDis = GetDispatcher();
+ //Um erkennen zu koennen ob bereits disabled ist!
+ SfxItemState eStateRO, eStateProtAll;
+ const SfxPoolItem *pItem;
+ // JP 29.04.97: von einem nur uns bekannten Slot den Status abfragen.
+ // Ansonsten kennen andere den Slot; wie z.B. die BasidIde
+ eStateRO = rDis.QueryState( FN_INSERT_BOOKMARK, pItem );
+ eStateProtAll = rDis.QueryState( FN_EDIT_REGION, pItem );
+ sal_Bool bChgd = sal_False;
+
+ if ( !pWrtShell->IsCrsrReadonly() )
+ {
+ static sal_uInt16 aROIds[] =
+ {
+ SID_DELETE, FN_BACKSPACE, FN_SHIFT_BACKSPACE,
+ SID_UNDO,
+ SID_REDO, SID_REPEAT, SID_PASTE,
+ FN_PASTESPECIAL, SID_SBA_BRW_INSERT,
+ SID_BACKGROUND_COLOR, FN_INSERT_BOOKMARK,
+ FN_INSERT_SYMBOL, FN_INSERT_SOFT_HYPHEN,
+ FN_INSERT_HARDHYPHEN, FN_INSERT_HARD_SPACE, FN_INSERT_BREAK,
+ FN_INSERT_LINEBREAK, FN_INSERT_COLUMN_BREAK, FN_INSERT_BREAK_DLG,
+ FN_DELETE_SENT, FN_DELETE_BACK_SENT, FN_DELETE_WORD,
+ FN_DELETE_BACK_WORD, FN_DELETE_LINE, FN_DELETE_BACK_LINE,
+ FN_DELETE_PARA, FN_DELETE_BACK_PARA, FN_DELETE_WHOLE_LINE,
+ FN_CALCULATE, FN_FORMAT_RESET,
+ FN_POSTIT, FN_JAVAEDIT, SID_ATTR_PARA_ADJUST_LEFT,
+ SID_ATTR_PARA_ADJUST_RIGHT, SID_ATTR_PARA_ADJUST_CENTER,SID_ATTR_PARA_ADJUST_BLOCK,
+ SID_ATTR_PARA_LINESPACE_10, SID_ATTR_PARA_LINESPACE_15, SID_ATTR_PARA_LINESPACE_20,
+ SID_ATTR_CHAR_FONT, SID_ATTR_CHAR_FONTHEIGHT, SID_ATTR_CHAR_COLOR_BACKGROUND,
+ SID_ATTR_CHAR_COLOR_BACKGROUND_EXT, SID_ATTR_CHAR_COLOR_EXT,
+ SID_ATTR_CHAR_COLOR, SID_ATTR_CHAR_WEIGHT, SID_ATTR_CHAR_POSTURE,
+ SID_ATTR_CHAR_UNDERLINE, SID_ATTR_FLASH, SID_ATTR_CHAR_STRIKEOUT,
+ FN_UNDERLINE_DOUBLE, SID_ATTR_CHAR_CONTOUR, SID_ATTR_CHAR_SHADOWED,
+ SID_ATTR_CHAR_AUTOKERN, SID_ATTR_CHAR_ESCAPEMENT, FN_SET_SUPER_SCRIPT,
+ FN_SET_SUB_SCRIPT, SID_ATTR_CHAR_CASEMAP, SID_ATTR_CHAR_LANGUAGE,
+ SID_ATTR_CHAR_KERNING, SID_CHAR_DLG, SID_ATTR_CHAR_WORDLINEMODE,
+ FN_GROW_FONT_SIZE, FN_SHRINK_FONT_SIZE, FN_TXTATR_INET,
+ FN_FORMAT_DROPCAPS, SID_ATTR_PARA_ADJUST, SID_ATTR_PARA_LINESPACE,
+ SID_ATTR_PARA_SPLIT, SID_ATTR_PARA_KEEP, SID_ATTR_PARA_WIDOWS,
+ SID_ATTR_PARA_ORPHANS,
+ SID_ATTR_PARA_MODEL, SID_PARA_DLG,
+ FN_SELECT_PARA, SID_DEC_INDENT,
+ SID_INC_INDENT
+ };
+ static sal_Bool bFirst = sal_True;
+ if ( bFirst )
+ {
+ qsort( (void*)aROIds, sizeof(aROIds)/sizeof(sal_uInt16), sizeof(sal_uInt16), lcl_CmpIds );
+ bFirst = sal_False;
+ }
+ if ( SFX_ITEM_DISABLED == eStateRO )
+ {
+ rDis.SetSlotFilter( sal_Bool(2), sizeof(aROIds)/sizeof(sal_uInt16), aROIds );
+ bChgd = sal_True;
+ }
+ }
+ else if( pWrtShell->IsAllProtect() )
+ {
+ if ( SFX_ITEM_DISABLED == eStateProtAll )
+ {
+ static sal_uInt16 aAllProtIds[] = { SID_SAVEDOC, FN_EDIT_REGION };
+ static sal_Bool bAllProtFirst = sal_True;
+ if ( bAllProtFirst )
+ {
+ qsort( (void*)aAllProtIds, sizeof(aAllProtIds)/sizeof(sal_uInt16), sizeof(sal_uInt16), lcl_CmpIds );
+ bAllProtFirst = sal_False;
+ }
+ rDis.SetSlotFilter( sal_Bool(2),
+ sizeof(aAllProtIds)/sizeof(sal_uInt16),
+ aAllProtIds );
+ bChgd = sal_True;
+ }
+ }
+ else if ( SFX_ITEM_DISABLED != eStateRO ||
+ SFX_ITEM_DISABLED != eStateProtAll )
+ {
+ bChgd = sal_True;
+ rDis.SetSlotFilter();
+ }
+ if ( bChgd )
+ GetViewFrame()->GetBindings().InvalidateAll(sal_True);
+}
+
+void SwView::_CheckReadonlySelection()
+{
+ sal_uInt32 nDisableFlags = 0;
+ SfxDispatcher &rDis = GetDispatcher();
+
+ if( pWrtShell->HasReadonlySel() &&
+ ( !pWrtShell->GetDrawView() ||
+ !pWrtShell->GetDrawView()->GetMarkList().GetMarkCount() ))
+ nDisableFlags |= SW_DISABLE_ON_PROTECTED_CURSOR;
+
+ if( (SW_DISABLE_ON_PROTECTED_CURSOR & nDisableFlags ) !=
+ (SW_DISABLE_ON_PROTECTED_CURSOR & rDis.GetDisableFlags() ) )
+ {
+ // zusaetzlich am Window den InputContext umsetzen, damit in
+ // japanischen / chinesischen Versionen die externe Eingabe
+ // ab-/angeschaltet wird. Das aber nur wenn auch die richtige
+ // Shell auf dem Stack steht.
+ switch( pViewImpl->GetShellMode() )
+ {
+ case SEL_TEXT:
+ case SEL_LIST_TEXT:
+ case SEL_TABLE_TEXT:
+ case SEL_TABLE_LIST_TEXT:
+ {
+//JP 22.01.99: temporaere Loesung!!! Sollte bei jeder Cursorbewegung
+// den Font von der akt. Einfuegeposition setzen, also ausserhalb
+// dieses if's. Aber TH wertet den Font zur Zeit nicht aus und
+// das besorgen erscheint mir hier zu teuer zu sein.
+// Ausserdem haben wir keinen Font, sondern nur Attribute aus denen
+// die Textformatierung dann den richtigen Font zusammen baut.
+
+ InputContext aCntxt( GetEditWin().GetInputContext() );
+ aCntxt.SetOptions( SW_DISABLE_ON_PROTECTED_CURSOR & nDisableFlags
+ ? (aCntxt.GetOptions() & ~
+ ( INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT ))
+ : (aCntxt.GetOptions() |
+ ( INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT )) );
+ GetEditWin().SetInputContext( aCntxt );
+ }
+ break;
+ }
+
+ }
+
+ if( nDisableFlags != rDis.GetDisableFlags() )
+ {
+ rDis.SetDisableFlags( nDisableFlags );
+ GetViewFrame()->GetBindings().InvalidateAll( sal_True );
+ }
+}
+
+
+SwView::SwView( SfxViewFrame *pFrame, SfxViewShell* pOldSh )
+ : SfxViewShell( pFrame, SWVIEWFLAGS ),
+ aPageStr( SW_RES( STR_PAGE )),
+ pEditWin( new SwEditWin( &pFrame->GetWindow(), *this ) ),
+ pShell(0),
+ pWrtShell(0),
+ pFormShell(0),
+ pHScrollbar(0),
+ pVScrollbar(0),
+ pScrollFill(0),
+ pHLineal( new SvxRuler(&GetViewFrame()->GetWindow(), pEditWin,
+ SVXRULER_SUPPORT_TABS |
+ SVXRULER_SUPPORT_PARAGRAPH_MARGINS |
+ SVXRULER_SUPPORT_BORDERS |
+ SVXRULER_SUPPORT_NEGATIVE_MARGINS,
+ GetViewFrame()->GetBindings(),
+ WB_STDRULER | WB_EXTRAFIELD | WB_3DLOOK | WB_BORDER)),
+ pVLineal(0),
+ pTogglePageBtn(0),
+ pPageUpBtn(0),
+ pPageDownBtn(0),
+ pNaviBtn(0),
+ pGlosHdl(0),
+ pDrawActual(0),
+ pLastTableFormat(0),
+ nDrawSfxId( USHRT_MAX ),
+ nFormSfxId( USHRT_MAX ),
+ nSelectionType( INT_MAX )
+{
+ bCenterCrsr = bTopCrsr = bAllwaysShowSel = bTabColFromDoc =
+ bSetTabColFromDoc = bAttrChgNotified = bAttrChgNotifiedWithRegistrations =
+ bVerbsActive = bIsApi = bDrawRotate = bInOuterResizePixel = sal_False;
+
+ bShowAtResize = bDrawSelMode = bDocSzUpdated = sal_True;
+
+ pViewImpl = new SwView_Impl(this);
+ SetName(C2S("View"));
+ SetWindow( pEditWin );
+
+ aTimer.SetTimeout( 120 );
+
+ SwDocShell* pDocSh = PTR_CAST( SwDocShell, pFrame->GetObjectShell() );
+ ASSERT( pDocSh, "View ohne DocShell." );
+ SwWebDocShell* pWebDShell = PTR_CAST( SwWebDocShell, pDocSh );
+
+ SwViewOption aUsrPref( *SW_MOD()->GetUsrPref( 0 != pWebDShell ));
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+ sal_Bool bVal;
+
+ bVal = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_AUTO)).getValue() : sal_False;
+ aUsrPref.SetOnlineSpell( bVal );
+ bVal = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_HIDE)).getValue() : sal_False;
+ aUsrPref.SetHideSpell( bVal );
+
+ if( !pOldSh )
+ {
+ //Gibt es schon eine Sicht auf das Dokument?
+ SfxViewFrame *pF = SfxViewFrame::GetFirst( pDocSh );
+ if( pF == pFrame )
+ pF = SfxViewFrame::GetNext( *pF, pDocSh );
+ if( pF )
+ pOldSh = pF->GetViewShell();
+ }
+ else if( pOldSh->IsA( TYPE( SwPagePreView ) ) )
+ {
+ sSwViewData = ((SwPagePreView*)pOldSh)->GetPrevSwViewData();
+ sNewCrsrPos = ((SwPagePreView*)pOldSh)->GetNewCrsrPos();
+ }
+
+ if(PTR_CAST( SwView, pOldSh))
+ {
+ pWrtShell = new SwWrtShell(((SwView*)pOldSh)->pWrtShell, pEditWin, *this);
+//MA: Das kann doch nur zu einem GPF fuehren!
+// nSelectionType = ((SwView*)pOldSh)->nSelectionType;
+ }
+ else
+ {
+ SwDoc *pDoc = ((SwDocShell*)pDocSh)->GetDoc();
+
+ if( PTR_CAST(SwSrcView, pOldSh) || pWebDShell )
+ pDoc->SetBrowseMode( sal_True );
+
+ //Fuer den BrowseMode wollen wir keinen Factor uebernehmen.
+ if( pDoc->IsBrowseMode() && aUsrPref.GetZoomType() != SVX_ZOOM_PERCENT )
+ {
+ aUsrPref.SetZoomType( SVX_ZOOM_PERCENT );
+ aUsrPref.SetZoom( 100 );
+ }
+ pWrtShell = new SwWrtShell( pDoc, ::GetSpellChecker(), ::GetHyphenator(),
+ pEditWin, *this,
+ 0, &aUsrPref);
+ }
+
+ // JP 05.02.99: Bug 61495 - damit unter anderem das HLineal im
+ // ReadonlyFall nicht angezeigt wird
+ aUsrPref.SetReadonly( pWrtShell->GetViewOptions()->IsReadonly() );
+
+ //Kein Margin fuer OLE!
+ Size aBrwsBorder;
+ if( SFX_CREATE_MODE_EMBEDDED != pDocSh->GetCreateMode() )
+ aBrwsBorder = GetMargin();
+
+ if( pFrame->GetFrameType() & SFXFRAME_INTERNAL )
+ pWrtShell->SetFrameView( aBrwsBorder );
+ else
+ pWrtShell->SetBrowseBorder( aBrwsBorder );
+
+ // Im CTOR duerfen keine Shell wechsel erfolgen, die muessen ueber
+ // den Timer "zwischen gespeichert" werden. Sonst raeumt der SFX
+ // sie wieder vom Stack!
+ sal_Bool bOld = bNoInterrupt;
+ bNoInterrupt = sal_True;
+
+ pHLineal->SetActive( sal_True );
+
+ SfxViewFrame* pViewFrame = GetViewFrame();
+ if( pViewFrame->GetFrame()->GetParentFrame())
+ {
+ aUsrPref.SetViewTabwin(sal_False);
+ aUsrPref.SetViewVLin(sal_False);
+ }
+
+ StartListening( *pViewFrame );
+ StartListening( *pDocSh );
+
+ // Vom HLineal den ZOOM-Faktor einstellen
+ pHLineal->SetZoom( Fraction( aUsrPref.GetZoom(), 100 ) );
+ pHLineal->SetDoubleClickHdl(LINK( this, SwView, ExecRulerClick ));
+ FieldUnit eMetric = ::GetDfltMetric( 0 != pWebDShell );
+ if( FUNIT_MM == eMetric )
+ eMetric = FUNIT_CM;
+ pHLineal->SetUnit( eMetric );
+
+ // DocShell setzen
+ pDocSh->SetView( this );
+ SW_MOD()->SetView( this );
+
+ // Die DocSize erfragen und verarbeiten. Ueber die Handler konnte
+ // die Shell nicht gefunden werden, weil die Shell innerhalb CTOR-Phase
+ // nicht in der SFX-Verwaltung bekannt ist.
+ DocSzChgd( pWrtShell->GetDocSize() );
+
+ // AttrChangedNotify Link setzen
+ pWrtShell->SetChgLnk(LINK(this, SwView, AttrChangedNotify));
+
+ if( pDocSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED &&
+ !((SvEmbeddedObject *)pDocSh)->GetVisArea().IsEmpty() )
+ SetVisArea( ((SvEmbeddedObject *)pDocSh)->GetVisArea(),sal_False);
+
+ SwEditShell::SetUndoActionCount( SFX_APP()->GetOptions().GetUndoCount() );
+ pWrtShell->DoUndo( 0 != SwEditShell::GetUndoActionCount() );
+
+ const FASTBOOL bBrowse = pWrtShell->GetDoc()->IsBrowseMode();
+ SetNewWindowAllowed(!bBrowse);
+
+ if( aUsrPref.IsViewVScrollBar() )
+ CreateVScrollbar();
+ if( aUsrPref.IsViewHScrollBar() || bBrowse )
+ CreateHScrollbar();
+ if( aUsrPref.IsViewTabwin() )
+ CreateTab();
+ if( aUsrPref.IsViewVLin() )
+ CreateVLineal();
+
+ pWrtShell->SetUIOptions( aUsrPref );
+ pWrtShell->SetReadOnlyAvailable( aUsrPref.IsCursorInProtectedArea() );
+
+ if( UseObjectSize() )
+ {
+ //Damit der Sfx _rechtzeitig weiss_, wie gross die ::com::sun::star::sheet::Border sind.
+ SvBorder aTmp;
+ CalcAndSetBorderPixel( aTmp, sal_True );
+ }
+
+ if( pWrtShell->GetDoc()->IsUpdateExpFld() )
+ {
+ SET_CURR_SHELL( pWrtShell );
+ pWrtShell->StartAction();
+ pWrtShell->CalcLayout();
+ pWrtShell->GetDoc()->UpdateFlds();
+ pWrtShell->EndAction();
+ pWrtShell->GetDoc()->SetUpdateExpFldStat( sal_False );
+ }
+
+ // ggfs. alle Verzeichnisse updaten:
+ if( pWrtShell->GetDoc()->IsUpdateTOX() )
+ {
+ SfxRequest aSfxRequest( FN_UPDATE_TOX, SFX_CALLMODE_SLOT, GetPool() );
+ Execute( aSfxRequest );
+ pWrtShell->GetDoc()->SetUpdateTOX( sal_False ); // wieder zurueck setzen
+ pWrtShell->SwCrsrShell::SttDoc();
+ }
+
+ // kein ResetModified, wenn es schone eine View auf dieses Doc gibt
+ SfxViewFrame* pVFrame = GetViewFrame();
+ SfxViewFrame* pFirst = SfxViewFrame::GetFirst(pDocSh);
+ // zur Zeit(360) wird die View erst nach dem Ctor eingetragen
+ // der folgende Ausdruck funktioniert auch, wenn sich das aendert
+ //JP 27.07.98: wenn per Undo nicht mehr die Modifizierung aufhebar ist,
+ // so setze das Modified NICHT zurueck.
+ if( !pWrtShell->GetDoc()->IsUndoNoResetModified() &&
+ (!pFirst || pFirst == pVFrame ) )
+ pWrtShell->ResetModified();
+
+ bNoInterrupt = bOld;
+
+ // wird ein GlobalDoc neu angelegt, soll auch der Navigator erzeugt werden
+ if( pDocSh->IsA(SwGlobalDocShell::StaticType()) &&
+ !pVFrame->GetChildWindow( SID_NAVIGATOR ))
+ {
+ SfxBoolItem aNavi(SID_NAVIGATOR, sal_True);
+ GetDispatcher().Execute(SID_NAVIGATOR, SFX_CALLMODE_ASYNCHRON, &aNavi, 0L);
+ }
+
+
+ uno::Reference< awt::XWindow > aTmpRef;
+ pFrame->GetFrame()->GetFrameInterface()->setComponent( aTmpRef,
+ pViewImpl->GetUNOObject_Impl());
+
+ aTimer.Stop();
+ aTimer.SetTimeoutHdl(LINK(this, SwView, TimeoutHdl));
+ bAttrChgNotified = bAttrChgNotifiedWithRegistrations = sal_False;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwView::~SwView()
+{
+ pEditWin->Hide(); // damit kein Paint Aerger machen kann!
+ // An der SwDocShell den Pointer auf die View ruecksetzen
+ SwDocShell* pDocSh = GetDocShell();
+ if( pDocSh && pDocSh->GetView() == this )
+ pDocSh->SetView( 0 );
+ if ( SW_MOD()->GetView() == this )
+ SW_MOD()->SetView( 0 );
+
+ if( aTimer.IsActive() && bAttrChgNotifiedWithRegistrations )
+ GetViewFrame()->GetBindings().LEAVEREGISTRATIONS();
+
+ SetWindow( 0 );
+
+ EndListening(*GetViewFrame());
+ EndListening(*GetDocShell());
+ delete pScrollFill;
+ delete pWrtShell;
+ pWrtShell = 0; // Auf 0 setzen, damit folgende DToren nicht drauf zugreifen
+ pShell = 0;
+ delete pHScrollbar;
+ delete pVScrollbar;
+ delete pHLineal;
+ delete pVLineal;
+ delete pTogglePageBtn;
+ delete pPageUpBtn;
+ delete pNaviBtn;
+ delete pPageDownBtn;
+ delete pGlosHdl;
+ delete pViewImpl;
+ delete pEditWin;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: DocShell rausgrabbeln ueber das FrameWindow
+ --------------------------------------------------------------------*/
+
+
+SwDocShell* SwView::GetDocShell()
+{
+ return PTR_CAST(SwDocShell, GetViewFrame()->GetObjectShell());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: CursorPos merken
+ --------------------------------------------------------------------*/
+
+
+void SwView::WriteUserData( String &rUserData, sal_Bool bBrowse )
+{
+ //Das Browse-Flag wird vom Sfx durchgereicht, wenn Dokumente gebrowsed
+ //werden (nicht zu verwechseln mit dem BrowseMode).
+ //Die dann gespeicherten Daten sind nicht persistent!!
+
+ const SwRect& rRect = pWrtShell->GetCharRect();
+ const Rectangle& rVis = GetVisArea();
+
+ rUserData = String::CreateFromInt32( rRect.Left() );
+ rUserData += ';';
+ rUserData += String::CreateFromInt32( rRect.Top() );
+ rUserData += ';';
+ rUserData += String::CreateFromInt32( pWrtShell->GetViewOptions()->GetZoom() );
+ rUserData += ';';
+ rUserData += String::CreateFromInt32( rVis.Left() );
+ rUserData += ';';
+ rUserData += String::CreateFromInt32( rVis.Top() );
+ rUserData += ';';
+ rUserData += String::CreateFromInt32( bBrowse ? LONG_MIN : rVis.Right());
+ rUserData += ';';
+ rUserData += String::CreateFromInt32( bBrowse ? LONG_MIN : rVis.Bottom());
+ rUserData += ';';
+ rUserData += String::CreateFromInt32(
+ (sal_uInt16)pWrtShell->GetViewOptions()->GetZoomType());//eZoom;
+ rUserData += ';';
+ rUserData += FRMTYPE_NONE == pWrtShell->GetSelFrmType() ? '0' : '1';
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: CursorPos setzen
+ --------------------------------------------------------------------*/
+
+
+void SwView::ReadUserData( const String &rUserData, sal_Bool bBrowse )
+{
+ if ( rUserData.GetTokenCount() > 1 &&
+ //Fuer Dokumente ohne Layout nur im OnlineLayout oder beim
+ //Forward/Backward
+ (!pWrtShell->IsNewLayout() || pWrtShell->IsBrowseMode() || bBrowse) )
+ {
+ SET_CURR_SHELL(pWrtShell);
+
+ sal_uInt16 nPos = 0;
+
+ // Nein, es ist *keine* gute Idee GetToken gleich im Point-Konstr.
+ // aufzurufen, denn welcher Parameter wird zuerst ausgewertet?
+ long nX = rUserData.GetToken( 0, ';', nPos ).ToInt32(),
+ nY = rUserData.GetToken( 0, ';', nPos ).ToInt32();
+ Point aCrsrPos( nX, nY );
+
+ sal_uInt16 nZoomFactor = rUserData.GetToken(0, ';', nPos ).ToInt32();
+
+ long nLeft = rUserData.GetToken(0, ';', nPos ).ToInt32(),
+ nTop = rUserData.GetToken(0, ';', nPos ).ToInt32(),
+ nRight = rUserData.GetToken(0, ';', nPos ).ToInt32(),
+ nBottom= rUserData.GetToken(0, ';', nPos ).ToInt32();
+
+ const long nAdd = pWrtShell->IsBrowseMode() ? DOCUMENTBORDER : DOCUMENTBORDER*2;
+ if ( nBottom <= (pWrtShell->GetDocSize().Height()+nAdd) )
+ {
+ pWrtShell->EnableSmooth( sal_False );
+
+ const Rectangle aVis( nLeft, nTop, nRight, nBottom );
+
+ sal_uInt16 nOff = 0;
+ SvxZoomType eZoom;
+ if( !pWrtShell->GetDoc()->IsBrowseMode() )
+ eZoom = (SvxZoomType) (sal_uInt16)rUserData.GetToken(nOff, ';', nPos ).ToInt32();
+ else
+ {
+ eZoom = SVX_ZOOM_PERCENT;
+ ++nOff;
+ }
+
+ sal_Bool bSelectObj = (0 != rUserData.GetToken( nOff, ';', nPos ).ToInt32())
+ && pWrtShell->IsObjSelectable( aCrsrPos );
+
+ pWrtShell->SwCrsrShell::SetCrsr( aCrsrPos, !bSelectObj );
+ if( bSelectObj )
+ {
+ pWrtShell->SelectObj( aCrsrPos );
+ pWrtShell->EnterSelFrmMode( &aCrsrPos );
+ }
+
+ SelectShell();
+
+ pWrtShell->StartAction();
+ const SwViewOption* pVOpt = pWrtShell->GetViewOptions();
+ if( pVOpt->GetZoom() != nZoomFactor || pVOpt->GetZoomType() != eZoom )
+ SetZoom( eZoom, nZoomFactor);
+ if ( bBrowse )
+ SetVisArea( aVis.TopLeft() );
+ else
+ SetVisArea( aVis );
+
+ pWrtShell->LockView( sal_True );
+ pWrtShell->EndAction();
+ pWrtShell->LockView( sal_False );
+ pWrtShell->EnableSmooth( sal_True );
+ }
+ }
+}
+
+void SwView::UIDeactivate( SvInPlaceObject* )
+{
+ GetEditWin().OleToGrf();
+}
+
+
+
+void SwView::ShowCursor( FASTBOOL bOn )
+{
+ if ( bOn )
+ pWrtShell->ShowCrsrs( sal_True );
+ else
+ pWrtShell->HideCrsrs();
+}
+
+
+
+ErrCode SwView::DoVerb( long nVerb )
+{
+ if ( !GetDocShell()->GetProtocol().IsInPlaceActive() )
+ {
+ SwWrtShell &rSh = GetWrtShell();
+ const int nSel = rSh.GetSelectionType();
+ if ( nSel & SwWrtShell::SEL_OLE )
+ rSh.LaunchOLEObj( nVerb );
+ else if ( nSel & SwWrtShell::SEL_GRF && nVerb == 0 )
+ GetDispatcher().Execute( SID_SIM_START );
+ }
+ return ERRCODE_NONE;
+}
+
+/*-----------------17.02.98 13:33-------------------
+ nur sal_True fuer eine Textselektion zurueck geben
+--------------------------------------------------*/
+sal_Bool SwView::HasSelection( sal_Bool bText ) const
+{
+ return bText ? GetWrtShell().SwCrsrShell::HasSelection()
+ : GetWrtShell().HasSelection();
+}
+
+/*-----------------09/16/97 09:50am-----------------
+
+--------------------------------------------------*/
+
+String SwView::GetSelectionText( sal_Bool bComplete )
+{
+ return GetSelectionTextParam( bComplete, sal_True );
+}
+
+/*-----------------09/16/97 09:50am-----------------
+
+--------------------------------------------------*/
+String SwView::GetSelectionTextParam( sal_Bool bComplete,
+ sal_Bool bEraseTrail,
+ sal_Bool bExtendedDelimiter )
+{
+ String sReturn;
+
+ if (bComplete && !GetWrtShell().HasSelection())
+ {
+ const char sDelimiter[] = " \t\n\r";
+ const char sExtDelimiter[] = " \t\n\r.,:;()<>{}";
+ WordSelection::SetWordDelimiter(bExtendedDelimiter ?
+ sExtDelimiter : sDelimiter);
+ GetWrtShell().SelWrd();
+ WordSelection::ResetWordDelimiter();
+ }
+
+ GetWrtShell().GetSelectedText(sReturn);
+ if(bEraseTrail)
+ sReturn.EraseTrailingChars();
+ return sReturn;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwGlossaryHdl* SwView::GetGlosHdl()
+{
+ if(!pGlosHdl)
+ pGlosHdl = new SwGlossaryHdl(GetViewFrame(), pWrtShell);
+ return pGlosHdl;
+}
+
+/*-----------------05.09.96 15.50-------------------
+
+--------------------------------------------------*/
+
+
+
+void SwView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ FASTBOOL bCallBase = sal_True;
+ if ( rHint.ISA(SfxSimpleHint) )
+ {
+ sal_uInt32 nId = ((SfxSimpleHint&)rHint).GetId();
+ switch ( nId )
+ {
+ case SFX_HINT_MODECHANGED:
+ {
+ // Modalmodus-Umschaltung?
+ sal_Bool bModal = GetDocShell()->IsInModalMode();
+ if(pHLineal)
+ pHLineal->SetActive( !bModal );
+ if(pVLineal)
+ pVLineal->SetActive( !bModal );
+ }
+
+ /* kein break hier */
+
+ case SFX_HINT_TITLECHANGED:
+ if ( GetDocShell()->IsReadOnly() != GetWrtShell().GetViewOptions()->IsReadonly() )
+ {
+ SwWrtShell &rSh = GetWrtShell();
+ rSh.SetReadonlyOption( GetDocShell()->IsReadOnly() );
+
+ if ( rSh.GetViewOptions()->IsViewVLin() )
+ CreateVLineal();
+ else
+ KillVLineal();
+ if ( rSh.GetViewOptions()->IsViewTabwin() )
+ CreateTab();
+ else
+ KillTab();
+ SfxBoolItem aItem( SID_FM_DESIGN_MODE, !GetDocShell()->IsReadOnly());
+ GetDispatcher().Execute( SID_FM_DESIGN_MODE, SFX_CALLMODE_ASYNCHRON,
+ &aItem, 0L );
+ }
+ break;
+
+ case SW_BROADCAST_DRAWVIEWS_CREATED:
+ {
+ bCallBase = sal_False;
+ if ( GetFormShell() )
+ {
+ GetFormShell()->SetView(
+ PTR_CAST(FmFormView, GetWrtShell().GetDrawView()) );
+ SfxBoolItem aItem( SID_FM_DESIGN_MODE, !GetDocShell()->IsReadOnly());
+ GetDispatcher().Execute( SID_FM_DESIGN_MODE, SFX_CALLMODE_ASYNCHRON,
+ &aItem, 0L );
+ }
+ }
+ break;
+ }
+ }
+ else if(rHint.ISA(FmDesignModeChangedHint))
+ {
+ sal_Bool bDesignMode = ((FmDesignModeChangedHint&)rHint).GetDesignMode();
+ if (!bDesignMode && GetDrawFuncPtr())
+ {
+ GetDrawFuncPtr()->Deactivate();
+ SetDrawFuncPtr(NULL);
+ LeaveDrawCreate();
+ AttrChangedNotify(pWrtShell);
+ }
+ }
+
+ if ( bCallBase )
+ SfxViewShell::Notify(rBC, rHint);
+}
+
+/*-----------------02.12.96 12:36-------------------
+
+--------------------------------------------------*/
+#if defined WIN || defined WNT || defined UNX
+
+void SwView::ScannerEventHdl( const EventObject& rEventObject )
+{
+ Reference< XScannerManager > xScanMgr = SW_MOD()->GetScannerManager();
+ if( xScanMgr.is() )
+ {
+ const ScannerContext aContext( xScanMgr->getAvailableScanners().getConstArray()[ 0 ] );
+ const ScanError eError = xScanMgr->getError( aContext );
+
+ if( ScanError_ScanErrorNone == eError )
+ {
+ const uno::Reference< awt::XBitmap > xBitmap( xScanMgr->getBitmap( aContext ) );
+
+ if( xBitmap.is() )
+ {
+ const BitmapEx aScanBmp( VCLUnoHelper::GetBitmap( xBitmap ) );
+
+ if( !!aScanBmp )
+ {
+ Graphic aGrf(aScanBmp);
+ pWrtShell->Insert( aEmptyStr, aEmptyStr, aGrf );
+ }
+ }
+ }
+ }
+ SfxBindings& rBind = GetViewFrame()->GetBindings();
+ rBind.Invalidate( SID_TWAIN_SELECT );
+ rBind.Invalidate( SID_TWAIN_TRANSFER );
+//JP 26.06.00: the appwindow doen't exist
+// Application::GetAppWindow()->EnableInput( TRUE );
+}
+#endif
+
+/*-----------------04.03.97 15:07-------------------
+
+--------------------------------------------------*/
+
+
+void SwView::StopShellTimer()
+{
+ if(aTimer.IsActive())
+ {
+ aTimer.Stop();
+ if ( bAttrChgNotifiedWithRegistrations )
+ {
+ GetViewFrame()->GetBindings().LEAVEREGISTRATIONS();
+ bAttrChgNotifiedWithRegistrations = sal_False;
+ }
+ SelectShell();
+ bAttrChgNotified = sal_False;
+ }
+}
+
+/*-----------------15.12.97 10:15-------------------
+
+--------------------------------------------------*/
+void SwView::PrepareGetSelection()
+{
+ if(!pShell)
+ SelectShell();
+}
+
+/*-----------------09/03/97 04:12pm-----------------
+
+--------------------------------------------------*/
+sal_uInt16 SwView::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing )
+{
+ SfxViewFrame* pVFrame = GetViewFrame();
+ SfxApplication* pSfxApp = SFX_APP();
+ pVFrame->SetChildWindow( SwInputChild::GetChildWindowId(), sal_False );
+ if(pSfxApp->IsDispatcherLocked())
+ pSfxApp->LockDispatcher(sal_False);
+ pVFrame->SetChildWindow( SwInsertChartChild::GetChildWindowId(), sal_False );
+
+ sal_uInt16 nRet;
+ if ( pFormShell &&
+ sal_True != (nRet = pFormShell->PrepareClose( bUI, bForBrowsing )) )
+
+ {
+ return nRet;
+ }
+ return SfxViewShell::PrepareClose( bUI, bForBrowsing );
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.448 2000/09/18 16:06:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.447 2000/09/08 08:12:53 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.446 2000/09/07 15:59:32 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.445 2000/09/07 08:23:47 os
+ #77494# use dispatcher from the ViewFrame
+
+ Revision 1.444 2000/08/29 14:00:43 ama
+ New: Negative margins
+
+ Revision 1.443 2000/08/15 14:09:39 jp
+ Task #77422#: PrintPreView in the same window
+
+ Revision 1.442 2000/08/15 14:08:15 jp
+ Task #77422#: PrintPreView in the same window
+
+ Revision 1.441 2000/08/14 17:25:37 jp
+ Task #77422#: PrintPreView in the same window
+
+ Revision 1.440 2000/08/08 13:48:14 os
+ #77423# separate graphic shell
+
+ Revision 1.439 2000/07/24 10:10:28 jp
+ Bug #76909#: AttrChg-Timer can only be started after leaving the SwView CTOR
+
+ Revision 1.438 2000/06/26 10:44:09 jp
+ must change: GetAppWindow->GetDefaultDevice
+
+ Revision 1.437 2000/05/30 10:42:17 os
+ unused slots removed
+
+ Revision 1.436 2000/05/29 08:03:23 os
+ new scanner interface
+
+ Revision 1.435 2000/05/26 07:21:34 os
+ old SW Basic API Slots removed
+
+ Revision 1.434 2000/05/24 13:13:57 hr
+ conflict between STLPORT and Workshop header
+
+ Revision 1.433 2000/05/23 19:42:30 jp
+ Bugfixes for Unicode
+
+ Revision 1.432 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.431 2000/04/18 15:02:50 os
+ UNICODE
+
+ Revision 1.430 2000/03/23 07:50:25 os
+ UNO III
+
+ Revision 1.429 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.428 2000/02/11 14:59:19 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.427 1999/12/10 13:09:42 tl
+ #70383# SvxGetLinguPropertySet => ::GetLinguPropertySet
+
+ Revision 1.426 1999/11/30 10:04:42 jp
+ Bug #69906#: CTOR - update fields before any TOX
+
+ Revision 1.425 1999/11/24 18:35:58 tl
+ check for Service availability
+
+ Revision 1.424 1999/11/19 16:40:24 os
+ modules renamed
+
+ Revision 1.423 1999/11/17 14:28:15 jp
+ HasSelection: if text-flag set, then returns only true when the textcursor has an selection
+
+ Revision 1.422 1999/10/25 19:43:19 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.421 1999/10/20 10:56:16 jp
+ Bug #67821#: CTOR - SynChildWindow handeld by HasUIFeature
+
+ Revision 1.420 1999/10/06 12:21:13 os
+ #68902# correct detection of FrameSet
+
+ Revision 1.419 1999/09/10 13:19:10 os
+ Chg: resource types removed
+
+ Revision 1.418 1999/09/10 09:36:31 jp
+ Bug #68559#: AttrChangeNotify - if have to start the timer, then check in TimeoutHdl the readony state
+
+ Revision 1.417 1999/08/31 08:40:20 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.416 31 Aug 1999 10:40:20 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.415 04 Aug 1999 10:19:38 JP
+ have to change: FmFormShell becomes the SfxViewShell
+
+ Rev 1.414 15 Jul 1999 13:04:42 MA
+ #67402# no invalidation while the dispatcher IsInUpdate()
+
+ Rev 1.413 08 Jul 1999 17:36:44 JP
+ Bug #67527#: AttrChangedNotify - if interrupt flag is set, then dont check readonly selection
+
+ Rev 1.412 07 Jul 1999 15:09:28 MA
+ use bindings from own view frame
+
+ Rev 1.411 07 Jul 1999 12:30:58 MA
+ #67331# restart Timer if dispatcher is locked
+
+ Rev 1.410 07 Jul 1999 08:52:42 OS
+ #67471# NotifySelChanged in AttrChangedNotify
+
+ Rev 1.409 22 Jun 1999 17:37:32 JP
+ Bug #43028#: disableflag for edit in mailbody
+
+ Rev 1.408 21 Jun 1999 15:24:58 JP
+ Interface changes: Twain
+
+ Rev 1.407 10 Jun 1999 12:06:26 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.406 05 May 1999 11:23:24 OS
+ #63790# Tabellen-Update nur bei Bedarf rufen
+
+ Rev 1.405 21 Apr 1999 09:32:26 MA
+ #63638# API-Change prepareclose
+
+ Rev 1.404 22 Mar 1999 09:10:14 OS
+ #63704# PrepareClose: Auf FormShell achten
+
+ Rev 1.403 16 Mar 1999 08:58:26 MA
+ #59840# ReadUserData, NewLayout nicht fuer forward/backward auswerten
+
+ Rev 1.402 08 Mar 1999 13:38:36 MA
+ #62792# OLE-Printer-Benachrichtigung vervollstaendigt
+
+ Rev 1.401 05 Feb 1999 17:33:00 JP
+ Bug #61491#: AttrChgNotify: pruefen, ob ueberhaupt eine DrawView existiert
+
+ Rev 1.400 05 Feb 1999 13:33:34 JP
+ Bug #61495#: CTOR: an den UserPref das ReadonlyFlag setzen
+ Bug #61491#: AttrChgNotify: kein Readonly bei Rahmen-/Object-Selektion
+
+ Rev 1.399 02 Feb 1999 13:18:56 JP
+ Bug #61335#: Schnistelle zu SwView geaendert/aufgeraeumt
+
+ Rev 1.398 27 Jan 1999 09:58:26 OS
+ #56371# TF_ONE51
+
+ Rev 1.397 26 Jan 1999 15:33:42 OS
+ #58677# Cursor in Readonly-Bereichen
+
+ Rev 1.396 22 Jan 1999 16:55:40 JP
+ Bug Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.395 19 Jan 1999 22:56:56 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.394 17 Dec 1998 19:18:28 JP
+ Task #59490# ExtTextInput fuer japan./chine. Version
+
+ Rev 1.393 02 Dec 1998 14:13:06 MA
+ #59988# ReadUserData, OnlineLayout auch ohne Layout
+
+ Rev 1.392 09 Nov 1998 14:06:54 JP
+ #58860# warum alles immer nur halb
+
+ Rev 1.391 03 Nov 1998 19:53:00 MA
+ #58860# nicht immer enterregistrations rufen
+
+ Rev 1.390 02 Nov 1998 15:49:32 JP
+ Task #57724#: ggfs. PrepareClose an der FormShell rufen.
+
+ Rev 1.389 21 Oct 1998 10:56:14 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.388 20 Oct 1998 11:40:24 OM
+ #57586# Redlining nach Autoformat
+
+ Rev 1.387 01 Oct 1998 17:48:56 MA
+ #57380# Kein Layout, keine Userdaten
+
+ Rev 1.386 01 Oct 1998 15:59:50 OM
+ #52654# SelectionChangeListener
+
+ Rev 1.385 08 Sep 1998 17:05:10 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.384 04 Sep 1998 17:06:38 MA
+ #55396# Auch bei browse ignorieren weil bei jedem Laden gesetzt
+
+ Rev 1.383 03 Sep 1998 11:44:44 MA
+ #55396# scheinbar unsinnige VisArea im ReadUserData ignorieren
+
+ Rev 1.382 31 Aug 1998 17:48:34 OM
+ #55613# Selektion drucken
+
+ Rev 1.381 31 Aug 1998 11:19:40 OS
+ #55750# OnlineSpelling immer aus der OFA uebernehmen
+
+ Rev 1.380 20 Aug 1998 17:25:16 MH
+ chg: twain.hxx
+
+ Rev 1.379 27 Jul 1998 16:55:42 JP
+ Bug #45529#: LoadStyles muss ggfs. das Zuruecksetzen des ModifiedFlags verhindern
+
+ Rev 1.378 20 Jul 1998 10:45:14 MA
+ #53013# Nach Anweisung abgeklemmt
+
+ Rev 1.377 17 Jul 1998 16:19:30 OM
+ #51862# Im AktivenMode keine ::com::sun::star::form::Forms einfuegen
+
+ Rev 1.376 14 Jul 1998 10:43:36 OM
+ #52748# Twain-Menueeintrag
+
+ Rev 1.375 06 Jul 1998 13:32:10 MH
+ chg: setComponent
+
+ Rev 1.374 30 Jun 1998 13:00:08 MA
+ das war wohl grad etwas zu gruendlich
+
+ Rev 1.372 09 Jun 1998 15:32:22 OM
+ VC-Controls entfernt
+
+ Rev 1.371 02 Jun 1998 15:49:32 OS
+ setController() am FrameInterface rufen
+
+ Rev 1.370 02 Apr 1998 17:30:58 OM
+ FrameProtect: Abfrage umgestellt
+
+ Rev 1.369 02 Apr 1998 10:07:00 MA
+ new: ToolbarCfg
+
+ Rev 1.368 20 Mar 1998 13:23:56 MA
+ OleVis2Page durch BrowseMode ersetzt
+
+ Rev 1.367 18 Mar 1998 12:28:50 MA
+ #Wichtig fuer ::com::sun::star::form::Forms# FormShell nach dem Push initialisieren
+
+ Rev 1.366 16 Mar 1998 12:03:18 MA
+ Verbindung FormShell->DrawView immer herstellen
+
+ Rev 1.365 15 Mar 1998 15:14:06 OM
+ Synchron-Button
+
+ Rev 1.364 13 Mar 1998 15:20:54 OS
+ Lineale nach dem Umschalten in den Readonly-Mode #48190#
+
+ Rev 1.363 12 Mar 1998 12:59:04 OS
+ SID_NEWWINDOW nicht mehr ueberladen
+
+ Rev 1.362 11 Mar 1998 17:01:52 OM
+ DB-FormShell
+
+ Rev 1.361 10 Mar 1998 14:17:46 OM
+ Konstruktionsmodul fuer ::com::sun::star::form::Forms
+
+ Rev 1.360 26 Feb 1998 09:53:56 OS
+ HasSelection : const
+
+ Rev 1.359 19 Feb 1998 17:21:48 OS
+ HasSelection
+
+ Rev 1.358 11 Feb 1998 10:33:46 MA
+ #47035# und CopyCtor entfernt
+
+ Rev 1.357 22 Jan 1998 17:48:54 OS
+ SID_BACKGROUND_PATTERN entsorgt
+
+ Rev 1.356 07 Jan 1998 13:36:24 OS
+ Lineale nach MODECHANGED-Hint aktivieren/deaktivieren #46023#, EditWin im Dtor zuerst hiden#46436#
+
+ Rev 1.355 06 Jan 1998 17:56:38 OS
+ _Impl immer anlegen #46360#
+
+ Rev 1.354 06 Jan 1998 07:28:38 OS
+ getrennter Status fuer Insert-Controller #46322#
+
+ Rev 1.353 16 Dec 1997 12:00:24 OS
+ Impl-Pointer fuer UNO
+
+ Rev 1.352 29 Nov 1997 16:49:54 MA
+ includes
+
+ Rev 1.351 28 Nov 1997 11:27:12 TJ
+ include
+
+ Rev 1.350 21 Nov 1997 15:00:12 MA
+ includes
+
+ Rev 1.349 05 Nov 1997 11:52:10 MA
+ chain
+
+ Rev 1.348 31 Oct 1997 11:36:10 OS
+ GetSelectionTextParam auch mit erweiterten Delimitern #45212#
+
+ Rev 1.347 22 Sep 1997 13:11:10 MA
+ #44052# bInOuterResizePixel ist jetzt Member
+
+ Rev 1.346 18 Sep 1997 14:01:12 OS
+ Pointer::GetPosPixel fuer VCL ersetzt
+
+ Rev 1.345 16 Sep 1997 10:25:04 OS
+ neu: GetSelectionTextParam #43766#
+
+ Rev 1.344 09 Sep 1997 13:34:04 OS
+ include
+
+ Rev 1.343 09 Sep 1997 11:35:32 OS
+ header
+
+ Rev 1.342 04 Sep 1997 17:14:38 MA
+ includes
+
+ Rev 1.341 03 Sep 1997 16:28:20 OS
+ im PrepareClose die Rechenleiste und den ChartDialog schliessen
+
+ Rev 1.340 02 Sep 1997 15:04:02 JP
+ AttChgdNotify: SID_SaveDoc bei ReadOnlyUI freigeschaltet
+
+ Rev 1.339 02 Sep 1997 11:18:28 JP
+ temp. Erweiterung fuers Speichern bei ReadOnlyUI
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/uiview/view.hrc b/sw/source/ui/uiview/view.hrc
new file mode 100644
index 000000000000..d15d3878bf6f
--- /dev/null
+++ b/sw/source/ui/uiview/view.hrc
@@ -0,0 +1,125 @@
+/*************************************************************************
+ *
+ * $RCSfile: view.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _VIEW_HRC
+#define _VIEW_HRC
+
+#include "rcid.hrc"
+
+// BTN -------------------------------------------------------------------
+
+#define BTN_PAGEDOWN (RC_VIEW_BEGIN)
+#define BTN_PAGEUP (RC_VIEW_BEGIN + 1)
+
+// STR -------------------------------------------------------------------
+
+#define STR_NOGLOS1 (RC_VIEW_BEGIN + 1)
+#define STR_NOGLOS2 (RC_VIEW_BEGIN + 2)
+#define STR_NUM_LEVEL (RC_VIEW_BEGIN + 3)
+
+#define STR_ERROR_NOLANG (RC_VIEW_BEGIN + 6)
+#define STR_VERB_FOR_GRF (RC_VIEW_BEGIN + 7)
+
+#define STR_EDIT_FOOTNOTE (RC_VIEW_BEGIN + 14)
+
+//#define RID_PVIEW_TOOLBOX (RC_VIEW_BEGIN + 15)
+#define MSG_NOT_FOUND (RC_VIEW_BEGIN + 16)
+#define MSG_SEARCH_START (RC_VIEW_BEGIN + 17)
+#define MSG_SEARCH_END (RC_VIEW_BEGIN + 18)
+#define MSG_INDEX_OVERFLOW (RC_VIEW_BEGIN + 19)
+#define STR_NB_REPLACED (RC_VIEW_BEGIN + 20)
+#define MSG_SCAN_NOSOURCE (RC_VIEW_BEGIN + 21)
+
+#define STR_SRCVIEW_ROW (RC_VIEW_BEGIN + 22)
+#define STR_SRCVIEW_COL (RC_VIEW_BEGIN + 23)
+#define STR_SAVEAS_SRC (RC_VIEW_BEGIN + 24)
+
+#define MSG_NO_MERGE_ENTRY (RC_VIEW_BEGIN + 25)
+
+#define STR_PRINT_TITLE (RC_VIEW_BEGIN + 26)
+#define STR_PRINT_MSG (RC_VIEW_BEGIN + 27)
+#define STR_PRINT_ALL (RC_VIEW_BEGIN + 28)
+#define STR_PRINT_SELECTION (RC_VIEW_BEGIN + 29)
+#define STR_READONLY_SEL (RC_VIEW_BEGIN + 30)
+
+#define RID_PVIEW_TOOLBOX (RC_VIEW_BEGIN + 31)
+// MSG -------------------------------------------------------------------
+
+#define MSG_ERR_INSERT_GLOS (RC_VIEW_BEGIN)
+
+#define MSG_ERR_NO_FAX (RC_VIEW_BEGIN + 5)
+#define MSG_ERR_SRCSTREAM (RC_VIEW_BEGIN + 6)
+
+// DLG -------------------------------------------------------------------
+
+#define DLG_SPECIAL_FORCED (RC_VIEW_BEGIN)
+#define DLG_PAGEPREVIEW_ZOOM (RC_VIEW_BEGIN + 1)
+#define DLG_PAGEPREVIEW_PRINTOPTIONS (RC_VIEW_BEGIN + 2)
+
+// Ueberlaufpruefung -----------------------------------------------------
+
+#define VIEW_ACT_END STR_EDIT_FOOTNOTE
+
+#if VIEW_ACT_END > RC_VIEW_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
+
diff --git a/sw/source/ui/uiview/view.src b/sw/source/ui/uiview/view.src
new file mode 100644
index 000000000000..f06e50f1a585
--- /dev/null
+++ b/sw/source/ui/uiview/view.src
@@ -0,0 +1,1166 @@
+/*************************************************************************
+ *
+ * $RCSfile: view.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include <svx/svxids.hrc>
+#include <svx/globlmn.hrc>
+#include "view.hrc"
+#include "shells.hrc"
+#include "globals.hrc"
+#include "popup.hrc"
+#include "helpid.h"
+#include "cmdid.h"
+ImageButton BTN_PAGEUP
+{
+ SVLOOK = TRUE ;
+ HIDE = TRUE ;
+ RectStyle = TRUE ;
+ SmallStyle = TRUE ;
+ SYMBOL = IMAGEBUTTON_PAGEUP ;
+};
+ImageButton BTN_PAGEDOWN
+{
+ SVLOOK = TRUE ;
+ HIDE = TRUE ;
+ RectStyle = TRUE ;
+ SmallStyle = TRUE ;
+ SYMBOL = IMAGEBUTTON_PAGEDOWN ;
+};
+QueryBox DLG_WRAP
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_YES ;
+ MESSAGE = "Überprüfung am Anfang des Dokumentes fortsetzen?" ;
+ MESSAGE [ English ] = "Do you want to continue checking at the start of the document?" ;
+ MESSAGE [ norwegian ] = "Do you want to continue checking at the start of the document?" ;
+ MESSAGE [ italian ] = "Continuare a controllare dall'inizio del documento?" ;
+ MESSAGE [ portuguese_brazilian ] = "Deseja continuar a verificação no início do documento?" ;
+ MESSAGE [ portuguese ] = "Deseja continuar com a verificação no início do documento?" ;
+ MESSAGE [ finnish ] = "Jatketaanko tarkistamista asiakirjan alusta?" ;
+ MESSAGE [ danish ] = "Vil du fortsætte kontrollen fra dokumentets start?" ;
+ MESSAGE [ french ] = "Voulez-vous continuer la vérification depuis le début du document?" ;
+ MESSAGE [ swedish ] = "Vill Du fortsätta kontrollen i början på dokumentetet?" ;
+ MESSAGE [ dutch ] = "Wilt u dat de spellingcontrole wordt voortgezet bij het begin van het document?" ;
+ MESSAGE [ spanish ] = "¿Desea continuar la revisión desde el comienzo del documento?" ;
+ MESSAGE [ english_us ] = "Do you want to continue checking at the beginning of the document?" ;
+ MESSAGE[ chinese_simplified ] = "´ÓÎļþ¿ª¶Ë¼ÌÐø¼ì²é£¿";
+ MESSAGE[ russian ] = "Ïðîäîëæèòü ïðîâåðêó äîêóìåíòà ñ íà÷àëà?";
+ MESSAGE[ polish ] = "Kontynuowaæ sprawdzanie na pocz¹tku dokumentu?";
+ MESSAGE[ japanese ] = "•¶‘‚ÌŽn‚ß‚ÌÁª¯¸‚𑱂¯‚Ü‚·‚©H";
+ MESSAGE[ chinese_traditional ] = "±qÀɮ׶}ºÝÄ~Äò·j´M¡S";
+ MESSAGE[ arabic ] = "ýýåá ÊÑíÏ ãÊÇÈÚÉ ÇáÊÏÞíÞ ÚäÏ ÈÏÇíÉ ÇáãÓÊäÏ¿";
+ MESSAGE[ greek ] = "ÈÝëåôå íá óõíå÷éóôåß ï Ýëåã÷ïò áðü ôçí áñ÷Þ ôïõ åããñÜöïõ;";
+ MESSAGE[ korean ] = "¹®¼­ÀÇ ½ÃÀۺκп¡¼­ °Ë»ç¸¦ °è¼ÓÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "Belgenin baþýndan denetime devam etmek istiyor musunuz?";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox DLG_BODY
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Wollen Sie den Haupttext prüfen?" ;
+ MESSAGE [ English ] = "Do you want to check the Bodytext?" ;
+ MESSAGE [ norwegian ] = "Do you want to check the Bodytext?" ;
+ MESSAGE [ italian ] = "Controllare il testo principale?" ;
+ MESSAGE [ portuguese_brazilian ] = "Deseja verificar o corpo do documento?" ;
+ MESSAGE [ portuguese ] = "Deseja verificar o texto principal?" ;
+ MESSAGE [ finnish ] = "Haluatko tarkistaa runkotekstin?" ;
+ MESSAGE [ danish ] = "Vil du kontrollere brødteksten?" ;
+ MESSAGE [ french ] = "Voulez-vous vérifier le texte principal?" ;
+ MESSAGE [ swedish ] = "Vill Du kontrollera huvudtexten?" ;
+ MESSAGE [ dutch ] = "Wilt u de hoofdtekst controleren?" ;
+ MESSAGE [ spanish ] = "¿Desea verificar el texto principal?" ;
+ MESSAGE [ english_us ] = "Do you want to check the main text?" ;
+ MESSAGE[ chinese_simplified ] = "ÄúÒª¼ì²éÕýÎÄÂð£¿";
+ MESSAGE[ russian ] = "Âû õîòèòå ïðîâåðèòü ãëàâíûé òåêñò?";
+ MESSAGE[ polish ] = "Czy chcesz sprawdzaæ tekst g³ówny?";
+ MESSAGE[ japanese ] = "Ò²Ý Ã·½Ä‚ðÁª¯¸‚µ‚Ü‚·‚©?";
+ MESSAGE[ chinese_traditional ] = "±z­nÀˬd¤º¤å¡S";
+ MESSAGE[ arabic ] = "åá ÊÑíÏ ÇáÊÏÞíÞ Ýí ÇáäÕ ÇáÑÆíÓí¿";
+ MESSAGE[ greek ] = "ÈÝëåôå íá ãßíåé Ýëåã÷ïò ôïõ êýñéïõ êåéìÝíïõ;";
+ MESSAGE[ korean ] = "ÁÖ ÅؽºÆ®¸¦ °Ë»çÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "Ana metni denetlemek istiyor musunuz?";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox DLG_PRT_FIELDNAME
+{
+ BUTTONS = WB_YES_NO_CANCEL ;
+ DEFBUTTON = WB_DEF_CANCEL ;
+ MESSAGE = "Option Feldname anzeigen ist aktiviert.\nWollen Sie das Dokument mit Feldnamen drucken?" ;
+ MESSAGE [ English ] = "Option Show fieldname is checked.\nDo you want to print the document with fieldnames?" ;
+ MESSAGE [ norwegian ] = "Option Show fieldname is checked.\nDo you want to print the document with fieldnames?" ;
+ MESSAGE [ italian ] = "L'opzione Mostra nome campo è attivata.\nDesiderate stampare il documento con i nomi dei campi?" ;
+ MESSAGE [ portuguese_brazilian ] = "Option Show fieldname is checked.\nDo you want to print the document with fieldnames?" ;
+ MESSAGE [ portuguese ] = "A opção 'Mostrar nome do campo' está activada.\nImprimir o documento com os nomes do campo?" ;
+ MESSAGE [ french ] = "L'option Afficher le nom de champ est activée.\nVoulez-vous imprimer le document avec le nom de champ ?" ;
+ MESSAGE [ dutch ] = "Optie Veldnaam weergeven is actief.\nWilt u het document met de veldnaam afdrukken?" ;
+ MESSAGE [ spanish ] = "La opción nombre de campo está activada. \n¿Desea imprimir el archivo con nombres de campo?" ;
+ MESSAGE [ danish ] = "Vis feltnavn er aktiveret\nVil du udskrive dokumentet med feltnavn?" ;
+ MESSAGE [ swedish ] = "Alternativet Visa fältnamn är aktiverat.\nVill Du skriva ut dokumentet med fältnamnet?" ;
+ MESSAGE [ finnish ] = "Option Show fieldname is checked.\nDo you want to print the document with fieldnames?" ;
+ MESSAGE [ english_us ] = "Show field commands option is checked.\nDo you want to print the document with field names?" ;
+ MESSAGE[ chinese_simplified ] = "×Ö¶ÎÃû³ÆÑ¡Ï´¦ÓÚ¼¤»î״̬¡£\nÄúÒªÁ¬Í¬×Ö¶ÎÃû³ÆÒ»Æð´òÓ¡Õâ¸öÎļþÂð£¿";
+ MESSAGE[ russian ] = "Ïàðàìåòð 'Ïîêàçàòü èìÿ ïîëÿ' îòìå÷åí.\nÂû õîòèòå íàïå÷àòàòü äîêóìåíò ñ èìåíàìè ïîëÿ?";
+ MESSAGE[ polish ] = "Opcja Poka¿ nazwê pola jest uaktywiona.\nCzy chcesz wydrukowaæ ten dokument z nazw¹ pola?";
+ MESSAGE[ japanese ] = "̨°ÙÄÞ–¼‚̵Ìß¼®Ý‚ª•\\Ž¦‚³‚ê‚Ä‚¢‚Ü‚·B\n̨°ÙÄÞ–¼•t‚«‚Ì•¶‘‚ðˆóü‚µ‚Ü‚·‚©H";
+ MESSAGE[ chinese_traditional ] = "Äæ¦ì¦WºÙ¿ï¶µÁÙ³B©ó¿E¬¡ª¬ºA¡C\n±z­n³s¦PÄæ¦ì¦WºÙ¤@°_¦C¦L³o­ÓÀɮסS";
+ MESSAGE[ arabic ] = "ÇáÎíÇÑ \"ÅÙåÇÑ ÇÓã ÇáÍÞá\" äÔØ.\nåá ÊÑíÏ ØÈÇÚÉ ÇáãÓÊäÏ ÈÃÓãÇÁ ÇáÍÞæá¿";
+ MESSAGE[ greek ] = "Ç åðéëïãÞ üíïìá ðåäßïõ åßíáé åíåñãïðïéçìÝíç.\nÈÝëåôå íá åêôõðùèåß ôï Ýããñáöï ìáæß ìå ôá ïíüìáôá ôùí ðåäßùí;";
+ MESSAGE[ korean ] = "ÇÊµå º¸±â ¸í·É ¿É¼ÇÀÌ Ã¼Å©µÇ¾î ÀÖ½À´Ï´Ù.\nÇʵå À̸§°ú ÇÔ²² ¹®¼­¸¦ ÀμâÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "\"Alan adýný görüntüle\" seçeneði etkin.\nBelgeyi alan adlarýyla yazdýrmak istiyor musunuz?";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox DLG_SPECIAL
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Sonderbereiche prüfen?" ;
+ MESSAGE [ English ] = "Do you want check the special regions?" ;
+ MESSAGE [ norwegian ] = "Do you want check the special regions?" ;
+ MESSAGE [ italian ] = "Controllare le aree speciali?" ;
+ MESSAGE [ portuguese_brazilian ] = "Deseja verificar Regiões especiais?" ;
+ MESSAGE [ portuguese ] = "Deseja verificar as regiões especiais?" ;
+ MESSAGE [ finnish ] = "Haluatko tarkistaa erikoisalueet?" ;
+ MESSAGE [ danish ] = "Vil du kontrollere særområderne?" ;
+ MESSAGE [ french ] = "Voulez-vous vérifier les zones spéciales?" ;
+ MESSAGE [ swedish ] = "Vill Du kontrollera specialområdena?" ;
+ MESSAGE [ dutch ] = "Wilt u de speciale bereiken controleren?" ;
+ MESSAGE [ spanish ] = "¿Desea verificar las áreas especiales?" ;
+ MESSAGE [ english_us ] = "Do you want check the special regions?" ;
+ MESSAGE[ chinese_simplified ] = "ÄúÒª¼ì²éÌØÊâÇøÓòÂð£¿";
+ MESSAGE[ russian ] = "Ïðîâåðèòü ñïåöèàëüíûå îáëàñòè?";
+ MESSAGE[ polish ] = "Sprawdzaæ obszary specjalne?";
+ MESSAGE[ japanese ] = "“Á•Ê’nˆæ‚ðÁª¯¸‚µ‚Ü‚·‚©?";
+ MESSAGE[ chinese_traditional ] = "±z­nÀˬd¯S®í°Ï°ì¡S";
+ MESSAGE[ arabic ] = "åá ÊÑíÏ ÇáÊÏÞíÞ Ýí ÇáãäÇØÞ ÇáÎÇÕÉ¿";
+ MESSAGE[ greek ] = "Íá ãßíåé Ýëåã÷ïò ôùí åéäéêþí ðåñéï÷þí;";
+ MESSAGE[ korean ] = "ƯÁ¤ÇÑ ¿µ¿ªÀ» °Ë»çÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "Özel bölümler denetlensin mi?";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox DLG_THESAURUS
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Dieses Wort sollten Sie vermeiden! Thesaurus starten?" ;
+ MESSAGE [ English ] = "Please avoid this word! Start thesaurus?" ;
+ MESSAGE [ norwegian ] = "Please avoid this word! Start thesaurus?" ;
+ MESSAGE [ italian ] = "Tale temine andrebbe evitato. Avviare il dizionario dei sinonimi?" ;
+ MESSAGE [ portuguese_brazilian ] = "Por favor evite esta palavra!Iniciar thesaurus?" ;
+ MESSAGE [ portuguese ] = "Evite esta palavra! Iniciar o dicionário de sinónimos?" ;
+ MESSAGE [ finnish ] = "Vältä tätä sanaa! Käytetäänkö synonyymisanastoa?" ;
+ MESSAGE [ danish ] = "Undgå venligst dette ord! Vil du bruge synonymordbogen?" ;
+ MESSAGE [ french ] = "Il vaudrait mieux éviter d'employer ce mot ! Souhaitez-vous consulter le dictionnaire des synonymes ?" ;
+ MESSAGE [ swedish ] = "Undvik detta ord! Starta synonymordlista?" ;
+ MESSAGE [ dutch ] = "Dit woord niet gebruiken! Thesaurus starten?" ;
+ MESSAGE [ spanish ] = "¡Debería evitar esta palabra! ¿Iniciar búsqueda de sinónimos?" ;
+ MESSAGE [ english_us ] = "This word appears in the list of words you want to avoid! Start thesaurus?" ;
+ MESSAGE[ chinese_simplified ] = "ÄúÓ¦¸Ã±ÜÃâʹÓÃÕâ¸ö×Ö£¡ÄúÒªÆô¶¯´ÊµäÂð£¿";
+ MESSAGE[ russian ] = "Óïîòðåáëåíèå ýòîãî ñëîâà âû äîëæíû èçáåãàòü! Çàïóñòèòü òåçàóðóñ?";
+ MESSAGE[ polish ] = "Unikaj tego s³owa! W³¹czyæ Tezaurus?";
+ MESSAGE[ japanese ] = "‚±‚ê‚Í”ð‚¯‚é‚ׂ«Œ¾—t‚Å‚·B—Þ‹`ŒêŽ«“T‚ð‹N“®‚µ‚Ü‚·‚©H";
+ MESSAGE[ chinese_traditional ] = "±zÀ³¸ÓÁקK¨Ï¥Î³o­Ó¦r¡T±z­n±Ò°Êµü¨å¶Ü¡S";
+ MESSAGE[ arabic ] = "íÌÈ Úáíß ÊÌäÈ åÐå ÇáßáãÉ! åá ÊÑíÏ ÈÏÁ ÊÔÛíá ÞÇãæÓ ÇáãÑÇÏÝÇÊ¿";
+ MESSAGE[ greek ] = "Áðïöýãåôå áõôÞ ôç ëÝîç! Íá áíïßîåé ï èçóáõñüò ëÝîåùí;";
+ MESSAGE[ korean ] = "À̴ܾî´Â »ç¿ëÇÏÁö ¾ÊÀ» ´Ü¾î Ç׸ñ¿¡ ÀÖ´Â ´Ü¾î ÀÔ´Ï´Ù ! µ¿ÀÇ¾î »çÀüÀ» ½ÃÀÛÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "Bu sözcük kullanmak istemediðiniz söcükler arasýnda! Eþ anlamlýlar sözlüðüne baþvurmak ister misiniz?";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox DLG_SPECIAL_FORCED
+{
+ BUTTONS = WB_YES_NO ;
+ DEFBUTTON = WB_DEF_NO ;
+ MESSAGE = "Sonderbereichprüfung ist ausgeschaltet, Trotzdem prüfen?" ;
+ MESSAGE [ English ] = "Check in Special regions is turned off, Proof anyway?" ;
+ MESSAGE [ norwegian ] = "Check in Special regions is turned off, Proof anyway?" ;
+ MESSAGE [ italian ] = "Il controllo delle aree speciali non è attivo, controllare lo stesso?" ;
+ MESSAGE [ portuguese_brazilian ] = "Verificação de Regiões especiais está desativada, Verificar assim mesmo?" ;
+ MESSAGE [ portuguese ] = "A verificação de zonas especiais está desactivada, mesmo assim prosseguir?" ;
+ MESSAGE [ finnish ] = "Erikoisalueiden tarkistus ei ole käytössä. Korjausluetaanko silti?" ;
+ MESSAGE [ danish ] = "Stavekontrol af særområder er slået fra, skal der kontrolleres alligevel?" ;
+ MESSAGE [ french ] = "La vérification dans les zones spéciales est désactivée. Vérifier tout de même ?" ;
+ MESSAGE [ swedish ] = "Kontroll av specialområden är avstängd. Korrekturläs ändå?" ;
+ MESSAGE [ dutch ] = "De functie 'Speciale bereiken controleren' is uitgeschakeld. Controle toch uitvoeren?" ;
+ MESSAGE [ spanish ] = "La verificación de las áreas especiales está desactivada, ¿Desea de todas maneras verificar?" ;
+ MESSAGE [ english_us ] = "Check special regions is deactivated. Check anyway?" ;
+ MESSAGE[ chinese_simplified ] = "ÌØÊâÇøÓòµÄ¼ì²éÒѾ­±»Ê§»î£¬Äú»¹ÊÇÒªÖ´ÐÐÕâÏî¼ì²é£¿";
+ MESSAGE[ russian ] = "Ïðîâåðêà ñïåöèàëüíûõ îáëàñòåé îòêëþ÷åíà, Âñå ðàâíî ïðîâåðèòü?";
+ MESSAGE[ polish ] = "Sprawdzanie obszarów specjalnych jest wy³¹czone, mimo to sprawdzaæ?";
+ MESSAGE[ japanese ] = "“Á•Ê’nˆæ‚ÍÁª¯¸o—ˆ‚Ü‚¹‚ñ‚Å‚µ‚½B‚»‚ê‚Å‚àÁª¯¸‚µ‚Ü‚·‚©HS";
+ MESSAGE[ chinese_traditional ] = "¯S®í°Ï°ìªºÀˬd¤w¸g³Q¥¢¬¡¡M±zÁÙ¬O­n°õ¦æ³o­Ó©R¥O¡S";
+ MESSAGE[ arabic ] = "ÊÏÞíÞ ÇáãäÇØÞ ÇáÎÇÕÉ ÛíÑ äÔØ. åá ÊÑíÏ ÇáÊÏÞíÞ ÈÇáÑÛã ãä Ðáß¿";
+ MESSAGE[ greek ] = "Ç åðéëïãÞ \"¸ëåã÷ïò åéäéêþí ðåñéï÷þí\" åßíáé áðåíåñãïðïéçìÝíç.ÈÝëåôå íá åëåã÷èïýí êáé áõôÝò;";
+ MESSAGE[ korean ] = "ƯÁ¤ÇÑ ¿µ¿ªÀÇ °Ë»ç°¡ ÁßÁöµÇ¾ú½À´Ï´Ù. °Ë»ç¸¦ ÇϽðڽÀ´Ï±î?";
+ MESSAGE[ turkish ] = "Özel bölüm denetimi etkin deðil. Yine de denetlensin mi?";
+ MESSAGE[ language_user1 ] = " ";
+};
+QueryBox MSG_SEARCH_END
+{
+ Buttons = WB_YES_NO ;
+ DefButton = WB_DEF_YES ;
+ Message = "StarOffice Writer hat bis zum Ende des Dokumentes gesucht. Möchten Sie die Suche am Dokumentanfang fortsetzen?" ;
+ Message [ ENGLISH ] = "StarOffice Writer has searched to the end of the document. Do you want to continue at the beginning?" ;
+ Message [ norwegian ] = "StarOffice Writer har søkt til slutten av dokumentet. Vil du fortsette fra begynnelsen?" ;
+ Message [ italian ] = "StarOffice Writer ha cercato fino alla fine del documento. Volete continuare dall'inizio del documento?" ;
+ Message [ portuguese_brazilian ] = "O StarOffice Writer buscou até o final do documento. Deseja continuar do início?" ;
+ Message [ portuguese ] = "O StarOffice Writer procurou até ao fim do documento. Deseja continuar a procura no início do documento?" ;
+ Message [ finnish ] = "StarOffice Writer on etsinyt asiakirjan loppuun asti.Jatketaanko alusta?" ;
+ Message [ danish ] = "StarOffice Writer har søgt til slutningen af dokumentet. Vil du fortsætte søgningen fra dokumentets begyndelse?" ;
+ Message [ french ] = "StarOffice Writer a atteint la fin du document. Souhaitez-vous reprendre la recherche au début du document ?" ;
+ Message [ swedish ] = "StarOffice Writer har sökt till slutet av dokument. Vill Du fortsätta sökningen i början av dokumentet?" ;
+ Message [ dutch ] = "StarOffice Writer heeft tot aan het einde van het document gezocht. Wilt u doorgaan met zoeken vanaf het begin?" ;
+ Message [ spanish ] = "StarOffice Writer ha buscado hasta el final del documento. ¿Desea continuar la búsqueda desde el principio?" ;
+ Message [ english_us ] = "StarOffice Writer has searched to the end of the document. Do you want to continue at the beginning?" ;
+ Message[ chinese_simplified ] = "StarOffice Writer ÒѾ­ËÑÑ°ÖÁÎĵµµÄβ¶Ë¡£Òª¼ÌÐø´ÓÎĵµÊ׶˿ªÊ¼ËÑÑ°£¿";
+ Message[ russian ] = "StarOffice Writer îñóùåñòâèë ïîèñê äî êîíöà äîêóìåíòà. Âû õîòèòå ïðîäîëæèòü ïîèñê ñ íà÷àëà äîêóìåíòà?";
+ Message[ polish ] = "StarOffice Writer szuka³ do koñca dokumentu. Czy chcesz kontynuowaæ wyszukiwanie na pocz¹tku dokumentu?";
+ Message[ japanese ] = "StarOffice Writer ‚Í•¶‘––‚Ü‚ÅŒŸõ‚µ‚Ü‚µ‚½B•¶‘‚ÌŽn‚ß‚É–ß‚Á‚Ä‘±s‚µ‚Ü‚·‚©H";
+ Message[ chinese_traditional ] = "StarOffice Writer ¤w¸g·j´M¦Ü¤å¥óªº§ÀºÝ¡C­nÄ~Äò·j´M¦Ü¤å¥ó­ººÝ¡H";
+ Message[ arabic ] = "ÞÇã StarOffice Writer ÈÇáÈÍË ÍÊì äåÇíÉ ÇáãÓÊäÏ. åá ÊÑíÏ ãÊÇÈÚÉ ÇáÈÍË ÚäÏ ÈÏÇíÉ ÇáãÓÊäÏ¿";
+ Message[ greek ] = "Ôï StarOffice Writer ïëïêëÞñùóå ôçí áíáæÞôçóç ùò ôï ôÝëïò ôïõ åããñÜöïõ. ÈÝëåôå íá óõíå÷éóôåß ç áíáæÞôçóç áðü ôçí áñ÷Þ ôïõ åããñÜöïõ;";
+ Message[ korean ] = "StarOffice Writer°¡ ¹®¼­ÀÇ ³¡±îÁö °Ë»öÇß½À´Ï´Ù. ¹®¼­ÀÇ Ã³À½ ºÎÅÍ °è¼ÓÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "StarOffice Writer belgenin sonuna kadar aramayý tamamladý. Belgenin baþýndan aramaya devam etmek istiyor musunuz?";
+ Message[ language_user1 ] = " ";
+};
+QueryBox MSG_SEARCH_START
+{
+ Buttons = WB_YES_NO ;
+ DefButton = WB_DEF_YES ;
+ Message = "StarOffice Writer hat bis zum Anfang des Dokumentes gesucht. Möchten Sie die Suche am Dokumentende fortsetzen?" ;
+ Message [ ENGLISH ] = "StarOffice Writer has searched to the beginning of the document. Do you want to continue at the end?" ;
+ Message [ norwegian ] = "StarOffice Writer har søkt til begynnelsen av dokumentet. Vil du fortsette fra slutten?" ;
+ Message [ italian ] = "StarOffice Writer ha cercato fino all'inizio del documento. Volete continuare dalla fine del documento?" ;
+ Message [ portuguese_brazilian ] = "O StarOffice Writer buscou até o início do documento. Deseja continuar no final?" ;
+ Message [ portuguese ] = "O StarOffice Writer procurou até ao início do documento. Deseja continuar a procura no fim do documento?" ;
+ Message [ finnish ] = "StarOffice Writer on etsinyt asiakirjan alkuun asti.Jatketaanko lopusta?" ;
+ Message [ danish ] = "StarOffice Writer har søgt til begyndelsen af dokumentet. Vil du fortsætte søgningen fra dokumentets slutning?" ;
+ Message [ french ] = "StarOffice Writer a atteint le début du document. Souhaitez-vous reprendre la recherche à la fin du document ?" ;
+ Message [ swedish ] = "StarOffice Writer har sökt till början av dokumentet. Vill Du fortsätta sökningen i slutet av dokumentet?" ;
+ Message [ dutch ] = "StarOffice Writer heeft tot aan het begin van het document gezocht. Wilt u doorgaan met zoeken vanaf het einde?" ;
+ Message [ spanish ] = "StarOffice Writer ha buscado hasta el principio del documento. ¿Desea continuar desde el final?" ;
+ Message [ english_us ] = "StarOffice Writer has searched to the beginning of the document. Do you want to continue at the end?" ;
+ Message[ chinese_simplified ] = "StarOffice Writer ÒѾ­ËÑÑ°ÖÁÎĵµµÄÊ׶ˡ£Òª¼ÌÐø´ÓÎļþβ¶Ë¿ªÊ¼ËÑÑ°£¿";
+ Message[ russian ] = "StarOffice Writer îñóùåñòâèë ïîèñê äî íà÷àëà äîêóìåíòà. Âû õîòèòå ïðîäîëæèòü ïîèñê â êîíöå äîêóìåíòà?";
+ Message[ polish ] = "StarOffice Writer szuka³ do pocz¹tku dokumentu. Czy chcesz kontynuowaæ wyszukiwanie na koñcu dokumentu?";
+ Message[ japanese ] = "StarOffice Writer ‚Í•¶‘‚ÌŽn‚ß‚Ü‚ÅŒŸõ‚µ‚Ü‚µ‚½B•¶‘––‚É–ß‚Á‚ÄŒŸõ‚𑱂¯‚Ü‚·‚©H";
+ Message[ chinese_traditional ] = "StarOffice Writer ¤w¸g·j´M¦Ü¤å¥óªº­ººÝ¡C­nÄ~Äò·j´M¤å¥ó¦Ü§ÀºÝ¡S";
+ Message[ arabic ] = "ÞÇã StarOffice Writer ÈÇáÈÍË ÍÊì ÈÏÇíÉ ÇáãÓÊäÏ. åá ÊÑíÏ ãÊÇÈÚÉ ÇáÈÍË ÚäÏ äåÇíÉ ÇáãÓÊäÏ¿";
+ Message[ greek ] = "Ôï StarOffice Writer ïëïêëÞñùóå ôçí áíáæÞôçóç ùò ôçí áñ÷Þ ôïõ åããñÜöïõ. ÈÝëåôå íá óõíå÷éóôåß ç áíáæÞôçóç áðü ôï ôÝëïò ôïõ åããñÜöïõ;";
+ Message[ korean ] = "StarOffice Writer°¡ ¹®¼­ÀǽÃÀۺκÐÀ» °Ë»öÇß½À´Ï´Ù. ¹®¼­ÀÇ ³¡±îÁö °è¼ÓÇϽðڽÀ´Ï±î?";
+ Message[ turkish ] = "StarOffice Writer belgenin baþýna kadar aramayý tamamladý. Belgenin sonundan aramaya devam etmek istiyor musunuz?";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_NO_MERGE_ENTRY
+{
+ MESSAGE = "Es konnte nichts zusammengeführt werden." ;
+ MESSAGE [ English ] = "Could not merge document." ;
+ Message [ english_us ] = "Could not merge documents." ;
+ Message [ portuguese_brazilian ] = "Es konnte nichts zusammengeführt werden." ;
+ Message [ swedish ] = "Inget kunde sammanföras." ;
+ Message [ danish ] = "Fletning kunne ikke gennemføres." ;
+ Message [ italian ] = "Non è stato possibile unire alcunché." ;
+ Message [ spanish ] = "No se pudieron fusionar los documentos." ;
+ Message [ french ] = "Impossible de fusionner les documents." ;
+ Message [ dutch ] = "Er was geen merge van documenten mogelijk." ;
+ Message [ portuguese ] = "Foi impossível intercalar os documentos." ;
+ Message[ chinese_simplified ] = "ÎÞ·¨ºÏ²¢Îĵµ¡£";
+ Message[ russian ] = "Îáúåäèíèòü ÷òî-ëèáî íå óäàåòñÿ.";
+ Message[ polish ] = "Nie mo¿na by³o scaliæ dokumentów.";
+ Message[ japanese ] = "‚È‚É‚àŒ‹‡‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚½B";
+ Message[ chinese_traditional ] = "µLªk¦X¨Ö¤å¥ó¡C";
+ Message[ arabic ] = ".áã íãßä ÏãÌ ÃíÉ ãÓÊäÏÇÊ";
+ Message[ greek ] = "Ç óõã÷þíåõóç äåí Þôáí äõíáôÞ.";
+ Message[ korean ] = "¹®¼­ º´ÇÕÀÌ ¾È¾ú½À´Ï´Ù.";
+ Message[ turkish ] = "Belgeler birleþtirilemedi.";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_ERR_INSERT_GLOS
+{
+ MESSAGE = "AutoText konnte nicht angelegt werden." ;
+ MESSAGE [ English ] = "Could not insert AutoText." ;
+ MESSAGE [ norwegian ] = "Could not insert AutoText." ;
+ MESSAGE [ italian ] = "Impossibile creare voce di glossario." ;
+ MESSAGE [ portuguese_brazilian ] = "Não pude inserir Texto Automático." ;
+ MESSAGE [ portuguese ] = "Impossível inserir o AutoTexto." ;
+ MESSAGE [ finnish ] = "Automaattitekstiä ei voi lisätä." ;
+ MESSAGE [ danish ] = "AutoTekst kunne ikke indsættes." ;
+ MESSAGE [ french ] = "Impossible de créer l'AutoTexte." ;
+ MESSAGE [ swedish ] = "AutoText kunde inte skapas." ;
+ MESSAGE [ dutch ] = "AutoTekst kon niet worden toegepast." ;
+ MESSAGE [ spanish ] = "No se pudo crear el AutoTexto." ;
+ MESSAGE [ english_us ] = "AutoText could not be created." ;
+ MESSAGE[ chinese_simplified ] = "ÎÞ·¨½¨Á¢×Ô¶¯Í¼Îļ¯¡£";
+ MESSAGE[ russian ] = "Ñîçäàòü àâòîòåêñò íåâîçìîæíî.";
+ MESSAGE[ polish ] = "Autotekst nie móg³ zostaæ utworzony.";
+ MESSAGE[ japanese ] = "“ü—ÍŽx‰‡‚Ì쬂ªo—ˆ‚Ü‚¹‚ñ‚Å‚µ‚½B";
+ MESSAGE[ chinese_traditional ] = "µLªk«Ø¥ß¦Û°Ê¹Ï¤å¶°¡C";
+ MESSAGE[ arabic ] = ".ÊÚÐÑ ÅÖÇÝÉ ÇáäÕ ÇáÊáÞÇÆí";
+ MESSAGE[ greek ] = "Äåí Þôáí äõíáôüí íá ðñïóôåèåß ôï ÁõôïÊåßìåíï.";
+ MESSAGE[ korean ] = "ÀÚµ¿ ÅؽºÆ®¸¦ »ðÀÔÇÒ ¼ö ¾ø½À´Ï´Ù.";
+ MESSAGE[ turkish ] = "Otomatik metin yaratýlamadý.";
+ MESSAGE[ language_user1 ] = " ";
+};
+InfoBox MSG_ERR_SRCSTREAM
+{
+ MESSAGE = "Der Quelltext kann nicht geladen werden." ;
+ MESSAGE [ English ] = "The source cannot be loaded." ;
+ Message [ english_us ] = "The source cannot be loaded." ;
+ Message [ portuguese_brazilian ] = "Der Quelltext kann nicht geladen werden." ;
+ Message [ swedish ] = "Källtexten kan inte laddas." ;
+ Message [ danish ] = "Kildeteksten kan ikke indlæses." ;
+ Message [ italian ] = "Non è possibile caricare il testo sorgente." ;
+ Message [ spanish ] = "No es posible cargar el texto fuente." ;
+ Message [ french ] = "Le texte source ne peut pas être chargé." ;
+ Message [ dutch ] = "De brontekst kan niet worden geladen." ;
+ Message [ portuguese ] = "É impossível carregar o texto-fonte." ;
+ Message[ chinese_simplified ] = "ÎÞ·¨×°ÔØÔ´Îı¾¡£";
+ Message[ russian ] = "Çàãðóçêà èñõîäíîãî òåêñòà íåâîçìîæíà.";
+ Message[ polish ] = "Nie mo¿na by³o za³adowaæ tekstu Ÿród³owego.";
+ Message[ japanese ] = "¿°½‚ðÛ°ÄÞo—ˆ‚Ü‚¹‚ñB";
+ Message[ chinese_traditional ] = "µLªk¸Ë¸ü­ì©lÀÉ¡C";
+ Message[ arabic ] = ".áÇ íãßä ÊÍãíá äÕ ÇáãÕÏÑ";
+ Message[ greek ] = "Äåí åßíáé äõíáôüí íá öïñôùèåß ôï êÝéìåíï ðñïÝëåõóçò.";
+ Message[ korean ] = "¼Ò½º°¡ ·ÎµåµÉ ¼ö ¾ø½À´Ï´Ù.";
+ Message[ turkish ] = "Kaynak kod yüklenemiyor.";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_ERR_NO_FAX
+{
+ MESSAGE = "Kein Fax-Drucker unter Extras/Optionen/Drucken eingestellt." ;
+ MESSAGE [ English ] = "No fax printer at Settings/Options/Printer configured." ;
+ Message [ dutch ] = "Geen faxprinter geconfigureerd onder: Extra/Opties/Afdrukken." ;
+ Message [ english_us ] = "No fax printer has been set under Tools/Options/Printing." ;
+ Message [ italian ] = "Nessuna stampante-fax installata in Strumenti/Opzioni/Stampa." ;
+ Message [ spanish ] = "En Herramientas/Opciones/Imprimir no se ha configurado ninguna impresora fax." ;
+ Message [ french ] = "Aucune imprimante (fax) n'a été paramétrée sous Outils/Options/Imprimer" ;
+ Message [ swedish ] = "Ingen faxskrivare inställd under Verktyg/Alternativ/Skriva ut." ;
+ Message [ danish ] = "Der er ingen faxprinter indstillet under Funktioner/Indstillinger/Udskriv." ;
+ Message [ portuguese_brazilian ] = "Kein Fax-Drucker unter Extras/Optionen/Drucken eingestellt." ;
+ Message [ portuguese ] = "Não foi configurada nenhuma impressora para fax em Ferramentas/Opções/Imprimir." ;
+ Message[ chinese_simplified ] = "ÔÚ¹¤¾ß/Ñ¡Ïî/´òÓ¡»ú´¦Ã»ÓÐÉ趨´«Õæ´òÓ¡»ú¡£";
+ Message[ russian ] = " Ñåðâèñ/Ïàðàìåòðû/Ïå÷àòü ôàêñ-ïðèíòåð íå óñòàíîâëåí.";
+ Message[ polish ] = "Brak ustawienia dla faksu i drukarki pod has³em Narzêdzia/Opcje/Drukuj.";
+ Message[ japanese ] = "̧¯¸½—pÌßØÝÀ‚Í°Ù/µÌß¼®Ý/ˆóü‚Éݒ肳‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ Message[ chinese_traditional ] = "¦b¤u¨ã/¿ï¶µ/¾÷¦Lªí¾÷³B¨S¦³³]©w¦C¦L¶Ç¯uªºÅX°Ê³n¥ó¡C";
+ Message[ arabic ] = "áíÓÊ åäÇß ÅÚÏÇÏÇÊ ØÇÈÚÉ ÝÇßÓ ÊÍÊ \"ÃÏæÇÊ/ÎíÇÑÇÊ/ØÈÇÚÉ\".";
+ Message[ greek ] = "Äåí Ý÷åé ïñéóôåß åêôõðùôÞò ãéá fax óôï êáôÜëïãï Åñãáëåßá/ÅðéëïãÝò/Åêôýðùóç.";
+ Message[ korean ] = "µµ±¸/¿É¼Ç/Àμ⠿¡ Æѽº ÇÁ¸°ÅÍ°¡ ±¸¼ºµÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Message[ turkish ] = "Araçlar/Seçenekler/Yazdýrma altýnda faks konfigürasyonu yapýlmadý.";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_NOT_FOUND
+{
+ Message = "Suchbegriff nicht gefunden." ;
+ Message [ ENGLISH ] = "Search pattern not found." ;
+ Message [ norwegian ] = "Søkekriterier ikke funnet." ;
+ Message [ italian ] = "Termine non trovato" ;
+ Message [ portuguese_brazilian ] = "Padrao de busca não encontrado." ;
+ Message [ portuguese ] = "Impossível encontrar expressão procurada." ;
+ Message [ finnish ] = "Hakumallia ei löydy." ;
+ Message [ danish ] = "Søgningen gav intet resultat." ;
+ Message [ french ] = "Élément recherché introuvable." ;
+ Message [ swedish ] = "Sökord hittades inte." ;
+ Message [ dutch ] = "Zoekbegrip niet gevonden." ;
+ Message [ spanish ] = "No se encontró la expresión buscada." ;
+ Message [ english_us ] = "Search key not found." ;
+ Message[ chinese_simplified ] = "ûÓÐÕÒµ½ËùÒªËÑÑ°µÄ¶ÔÏó¡£";
+ Message[ russian ] = "Ñëîâî íå íàéäåíî.";
+ Message[ polish ] = "Szukane has³o nie zosta³o znalezione.";
+ Message[ japanese ] = "ŒŸõ€–Ú‚ªŒ©‚‚©‚è‚Ü‚¹‚ñ";
+ Message[ chinese_traditional ] = "¨S¦³§ä¨ì©Ò­n·j´Mªºª«¥ó¡C";
+ Message[ arabic ] = "ÊÚÐÑ ÇáÚËæÑ Úáì ÇáÈíÇäÇÊ ÇáÊí ÊÈÍË ÚäåÇ.";
+ Message[ greek ] = "Äåí âñÝèçêáí ôá äåäïìÝíá ðïõ áíáæçôÜôå.";
+ Message[ korean ] = "°Ë»öÅ°°¡ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ Message[ turkish ] = "Arama terimi bulunamadý.";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_INDEX_OVERFLOW
+{
+ Message = " gefunden." ;
+ Message [ ENGLISH ] = "Search pattern not found." ;
+ Message [ norwegian ] = "Søkekriterier ikke funnet." ;
+ Message [ italian ] = "Termine non trovato" ;
+ Message [ portuguese_brazilian ] = "Padrao de busca não encontrado." ;
+ Message [ portuguese ] = "localizado." ;
+ Message [ finnish ] = "Hakumallia ei löydy." ;
+ Message [ danish ] = "fundet." ;
+ Message [ french ] = "trouvé(e/s)." ;
+ Message [ swedish ] = "funnet." ;
+ Message [ dutch ] = "gevonden." ;
+ Message [ spanish ] = "encontrado." ;
+ Message [ english_us ] = "found." ;
+ Message[ chinese_simplified ] = "ÕÒµ½¡£";
+ Message[ russian ] = "íàéäåí.";
+ Message[ polish ] = "znaleziono.";
+ Message[ japanese ] = "Œ©‚‚©‚è‚Ü‚µ‚½B";
+ Message[ chinese_traditional ] = "§ä¨ì¡C";
+ Message[ arabic ] = ".æÌöÏ ";
+ Message[ greek ] = "âñÝèçêå.";
+ Message[ korean ] = "¹ß°ß.";
+ Message[ turkish ] = "bulundu.";
+ Message[ language_user1 ] = " ";
+};
+InfoBox MSG_SCAN_NOSOURCE
+{
+ Message = "Quelle nicht gesetzt." ;
+ Message [ ENGLISH ] = "Source not set." ;
+ Message [ english_us ] = "Source not specified." ;
+ Message [ swedish ] = "Källa ej specificerad." ;
+ Message [ danish ] = "Kilden er ikke specifiseret." ;
+ Message [ italian ] = "Sorgente non specificata." ;
+ Message [ spanish ] = "No se especificó la fuente." ;
+ Message [ french ] = "Source non configurée." ;
+ Message [ dutch ] = "Bron niet aangegeven." ;
+ Message [ portuguese_brazilian ] = "Quelle nicht gesetzt." ;
+ Message [ portuguese ] = "Fonte não especificada." ;
+ Message[ chinese_simplified ] = "ûÓÐÖ¸¶¨Ô´¡£";
+ Message[ russian ] = "Èñòî÷íèê íå óêàçàí";
+ Message[ polish ] = "Nie okreœlono Ÿród³a.";
+ Message[ japanese ] = "¿°½‚ª’è‹`‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ Message[ chinese_traditional ] = "¨S¦³©w¸q¨Ó·½¡C";
+ Message[ arabic ] = ".áã íÊã ÊÍÏíÏ ÇáãÕÏÑ";
+ Message[ greek ] = "Äåí ïñßóôçêå ç ðñïÝëåõóç.";
+ Message[ korean ] = "¼Ò¼ö°¡ ÁöÁ¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.";
+ Message[ turkish ] = "Kaynak belirlenmedi.";
+ Message[ language_user1 ] = " ";
+};
+String STR_NOGLOS1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Kürzel ' : AutoText zum Kürzel '' */
+ /* ### ACHTUNG: Neuer Text in Resource? AutoText zum Kürzel ' : AutoText zum Kürzel '' */
+ TEXT = "AutoText zum Kürzel '" ;
+ TEXT [ English ] = "AutoText for Short Name '" ;
+ TEXT [ norwegian ] = "AutoText for Short Name '" ;
+ TEXT [ italian ] = "Testo automatico per la sigla '" ;
+ TEXT [ portuguese_brazilian ] = "Texto Automático para Abreviação" ;
+ TEXT [ portuguese ] = "AutoTexto para abreviatura '" ;
+ TEXT [ finnish ] = "Automaattitekstiä lyhenteelle '" ;
+ TEXT [ danish ] = "AutoTekst til genvej '" ;
+ TEXT [ french ] = "AutoTexte pour raccourci ' " ;
+ TEXT [ swedish ] = "Genväg AutoText '" ;
+ TEXT [ dutch ] = "AutoTekst voor afkortingen '" ;
+ TEXT [ spanish ] = "AutoTexto para la abreviatura '" ;
+ TEXT [ english_us ] = "AutoText for Shortcut '" ;
+ TEXT[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯Ëõд '";
+ TEXT[ russian ] = "Àâòîòåêñò ê ñîêðàùåíèþ '";
+ TEXT[ polish ] = "Autotekst do skrótu '";
+ TEXT[ japanese ] = "“ü—ÍŽx‰‡€–ڂ̼®°Ä¶¯Ä";
+ TEXT[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°ÁY¼g '";
+ TEXT[ arabic ] = "äÕ ÇáÊáÞÇÆí ááÇÎÊÕÇÑ '";
+ TEXT[ greek ] = "Ôï ÁõôïÊåßìåíï ãéá ôç óõíôüìåõóç '";
+ TEXT[ korean ] = "ÀÚµ¿ ÅؽºÆ® ¹Ù·Î°¡±â '";
+ TEXT[ turkish ] = "Otomatik metin kýsaltmasý '";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NOGLOS2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ /* ### ACHTUNG: Neuer Text in Resource? ' nicht gefunden. : '' nicht gefunden. */
+ TEXT = "' nicht gefunden." ;
+ TEXT [ English ] = "' not found." ;
+ TEXT [ norwegian ] = "' not found." ;
+ TEXT [ italian ] = "' non trovato." ;
+ TEXT [ portuguese_brazilian ] = "' não encontrado." ;
+ TEXT [ portuguese ] = "' não encontrado." ;
+ TEXT [ finnish ] = "' ei löydy." ;
+ TEXT [ danish ] = "'blev ikke fundet." ;
+ TEXT [ french ] = "' est introuvable." ;
+ TEXT [ swedish ] = "' hittades inte." ;
+ TEXT [ dutch ] = "' niet gevonden." ;
+ TEXT [ spanish ] = "' no se encontró." ;
+ TEXT [ english_us ] = "' not found." ;
+ TEXT[ chinese_simplified ] = "' ûÓб»ÕÒµ½¡£";
+ TEXT[ russian ] = "' íåíàéäåí.";
+ TEXT[ polish ] = "' nie znaleziono.";
+ TEXT[ japanese ] = "Œ©‚‚©‚è‚Ü‚¹‚ñ‚Å‚µ‚½B";
+ TEXT[ chinese_traditional ] = "' ¨S¦³³Q§ä¨ì¡C";
+ TEXT[ arabic ] = "áã íõÚËÑ Úáíå '";
+ TEXT[ greek ] = "' äåí âñÝèçêå.";
+ TEXT[ korean ] = "' ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.";
+ TEXT[ turkish ] = "' bulunamadý.";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NUM_LEVEL
+{
+ TEXT = "Ebene " ;
+ TEXT [ English ] = "Level " ;
+ Text [ dutch ] = "Niveau " ;
+ Text [ english_us ] = "Level " ;
+ Text [ italian ] = "Livello " ;
+ Text [ spanish ] = "Nivel " ;
+ Text [ french ] = "Niveau " ;
+ Text [ swedish ] = "Nivå " ;
+ Text [ danish ] = "Niveau " ;
+ Text [ portuguese_brazilian ] = "Ebene " ;
+ Text [ portuguese ] = "Nível " ;
+ Text[ chinese_simplified ] = "¼¶ ";
+ Text[ russian ] = "Óðîâåíü ";
+ Text[ polish ] = "Poziom ";
+ Text[ japanese ] = "ÚÍÞÙ ";
+ Text[ chinese_traditional ] = "¯Å ";
+ Text[ arabic ] = "ÇáãÓÊæì";
+ Text[ greek ] = "Åðßðåäï ";
+ Text[ korean ] = "¼öÁØ ";
+ Text[ turkish ] = "Düzey ";
+ Text[ language_user1 ] = " ";
+};
+String STR_ERROR_NOLANG
+{
+ TEXT = "Im geprüften Bereich ist keine Sprache eingestellt." ;
+ TEXT [ English ] = "No language choosed in checked region." ;
+ TEXT [ norwegian ] = "Språk ikke valgt i kontrollert område." ;
+ TEXT [ italian ] = "Nell'area verificata non è stata impostata nessuna lingua." ;
+ TEXT [ portuguese_brazilian ] = "No language choosed in checked region." ;
+ TEXT [ portuguese ] = "Na secção verificada não existe nenhuma língua definida." ;
+ TEXT [ finnish ] = "No language choosed in checked region." ;
+ TEXT [ danish ] = "Der er ikke angivet et sprog i det kontrollerede område." ;
+ TEXT [ french ] = "Aucune langue choisie pour région définie." ;
+ TEXT [ swedish ] = "Inget språk inställt i det stavningskontrollerade området." ;
+ TEXT [ dutch ] = "In gecontroleerd bereik geen taal vastgelegd." ;
+ TEXT [ spanish ] = "No se ha seleccionado ningún idioma en el área revisada." ;
+ TEXT [ english_us ] = "No language is selected in the proofed section." ;
+ TEXT[ chinese_simplified ] = "ÔÚ¼ì²éµÄÇøÓòÄÚûÓÐÑ¡¶¨ÈκÎÓïÑÔ¡£";
+ TEXT[ russian ] = "Â ïðîâåðåííîé ñåêöèè ÿçûê íå óñòàíîâëåí.";
+ TEXT[ polish ] = "W sprawdzanym obszarze nie ustawiono jêzyka.";
+ TEXT[ japanese ] = "Áª¯¸‚µ‚½—̈æ‚É‚ÍŒ¾Œê‚ªÝ’肳‚ê‚Ä‚¢‚Ü‚¹‚ñB";
+ TEXT[ chinese_traditional ] = "¦bÀˬdªº°Ï°ì¤º¨S¦³¿ï©w¥ô¦ó»y¨¥¡C";
+ TEXT[ arabic ] = ".áã íÊã ÊÍÏíÏ ÃíÉ áÛÉ Ýí ÇáäØÇÞ ÇáãÏÞÞ Ýíå";
+ TEXT[ greek ] = "Äåí ïñßóôçêå ãëþóóá ãéá ôçí åëåã÷üìåíç ðåñéï÷Þ.";
+ TEXT[ korean ] = "°ËÁõµÈ ±¸¿ª¿¡¼­ ¼±ÅÃµÈ ¾ð¾î°¡ ¾ø½À´Ï´Ù.";
+ TEXT[ turkish ] = "Denetlenen bölümde dil seçilmedi.";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_EDIT_FOOTNOTE
+{
+ TEXT = "Fußnote bearbeiten" ;
+ TEXT [ ENGLISH ] = "Edit footnote" ;
+ TEXT [ norwegian ] = "Redigerer fotnote" ;
+ TEXT [ italian ] = "Modifica nota a piè pagina" ;
+ TEXT [ portuguese_brazilian ] = "Editar nota de rodapé" ;
+ TEXT [ portuguese ] = "Editar nota de rodapé" ;
+ TEXT [ finnish ] = "Muokkaa alaviitettä" ;
+ TEXT [ danish ] = "Rediger fodnote" ;
+ TEXT [ french ] = "Modifier note de bas de page" ;
+ TEXT [ swedish ] = "Redigera fotnot" ;
+ TEXT [ dutch ] = "Voetnoot bewerken" ;
+ TEXT [ spanish ] = "Editar nota al pie" ;
+ TEXT [ english_us ] = "Edit Footnote" ;
+ TEXT[ chinese_simplified ] = "±à¼­×¢½Å";
+ TEXT[ russian ] = "Ïðàâêà ñíîñîê";
+ TEXT[ polish ] = "Edytuj przypis dolny";
+ TEXT[ japanese ] = "‹r’‚Ì•ÒW";
+ TEXT[ chinese_traditional ] = "½s¿èµù¸}";
+ TEXT[ arabic ] = "ÊÍÑíÑ ÍÇÔíÉ ÓÝáíÉ";
+ TEXT[ greek ] = "Åðåîåñãáóßá õðïóçìåßùóçò";
+ TEXT[ korean ] = "°¢ÁÖ ÆíÁý";
+ TEXT[ turkish ] = "Dipnotu düzenle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_VERB_FOR_GRF
+{
+ TEXT = "Bearbeiten" ;
+ TEXT [ ENGLISH ] = "Edit" ;
+ Text [ dutch ] = "Bewerken" ;
+ Text [ english_us ] = "Edit" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ french ] = "Modifier" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ portuguese_brazilian ] = "Bearbeiten" ;
+ Text [ portuguese ] = "Editar" ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "Edytuj";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ greek ] = "Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ Text[ language_user1 ] = " ";
+};
+String STR_NB_REPLACED
+{
+ Text = "Suchbegriff XXmal ersetzt." ;
+ Text [ ENGLISH ] = "Search pattern replaced XX times." ;
+ Text [ norwegian ] = "Søkekriterier erstattet XX ganger." ;
+ Text [ italian ] = "Testo sostituito XX volte" ;
+ Text [ portuguese_brazilian ] = "Padrao de busca substituído XX vezes." ;
+ Text [ portuguese ] = "Expressão procurada substituída XX vezes." ;
+ Text [ finnish ] = "Hakumalli on korvattu XX kertaa." ;
+ Text [ danish ] = "Søgeord erstattet XX gange." ;
+ Text [ french ] = "L'élément recherché a été remplacé XX fois." ;
+ Text [ swedish ] = "Sökord ersatt XX gånger." ;
+ Text [ dutch ] = "Het gezochte item is XX keer vervangen." ;
+ Text [ spanish ] = "La expresión buscada ha sido reemplazada XX veces." ;
+ Text [ english_us ] = "Search key replaced XX times." ;
+ Text[ chinese_simplified ] = "ËÑÑ°ÄÚÈݱ» XX ´Î¸üÌæ¡£";
+ Text[ russian ] = "Èñêîìîå ñëîâî çàìåíåíî XXðàç.";
+ Text[ polish ] = "Szukane has³o zosta³o XX razy zast¹pione.";
+ Text[ japanese ] = "ŒŸõ€–Ú‚ðXX“x’u‚«Š·‚¦‚Ü‚µ‚½";
+ Text[ chinese_traditional ] = "·j´M¤º®e³Q XX ¦¸¥N´À¡C";
+ Text[ arabic ] = "Êã ÇÓÊÈÏÇá ÈíÇäÇÊ ÇáÈÍË ××× ãÑÉ.";
+ Text[ greek ] = "Æçôïýìåíï óôïé÷åßï áíôéêáôáóôÜèçêå XX öïñÝò.";
+ Text[ korean ] = "°Ë»ö ´Ü¾î°¡ XX¹è·Î ´ëüµÊ.";
+ Text[ turkish ] = "Arama terimi XX kez deðiþtirildi.";
+ Text[ language_user1 ] = " ";
+};
+String RID_TOOLS_TOOLBOX
+{
+ Text = "Werkzeugleiste" ;
+ Text [ English ] = "Toolbar" ;
+ Text [ english_us ] = "Main Toolbar" ;
+ Text [ italian ] = "Barra degli strumenti" ;
+ Text [ spanish ] = "Barra de herramientas" ;
+ Text [ french ] = "Barre d'instruments" ;
+ Text [ dutch ] = "Werktuigbalk" ;
+ Text [ swedish ] = "Verktygslist" ;
+ Text [ danish ] = "Værktøjslinje" ;
+ Text [ portuguese ] = "Barra de ferramentas" ;
+ Text [ portuguese_brazilian ] = "Werkzeugleiste" ;
+ Text[ chinese_simplified ] = "Ö÷¹¤¾ßÀ¸";
+ Text[ russian ] = "Ïàíåëü èíñòðóìåíòîâ";
+ Text[ polish ] = "Pasek narzêdziowy";
+ Text[ japanese ] = "•W€Â°ÙÊÞ°";
+ Text[ chinese_traditional ] = "¥D¤u¨ã¦C";
+ Text[ arabic ] = "ÔÑíØ ÇáÃÏæÇÊ";
+ Text[ greek ] = "ÃñáììÞ åñãáëåßùí";
+ Text[ korean ] = "ÁÖ µµ±¸ ¸ðÀ½";
+ Text[ turkish ] = "Ana araç çubuðu";
+ Text[ language_user1 ] = " ";
+};
+String RID_SRCVIEW_TOOLBOX
+{
+ Text = "Quelltext" ;
+ Text [ English ] = "Source" ;
+ Text [ dutch ] = "Brontekst" ;
+ Text [ english_us ] = "Source" ;
+ Text [ italian ] = "Testo sorgente" ;
+ Text [ spanish ] = "Texto fuente" ;
+ Text [ french ] = "Texte source" ;
+ Text [ swedish ] = "Källtext" ;
+ Text [ danish ] = "Kildetekst" ;
+ Text [ portuguese ] = "Texto-fonte" ;
+ Text [ portuguese_brazilian ] = "Quelltext" ;
+ Text[ chinese_simplified ] = "Ô´Îı¾";
+ Text[ russian ] = "Èñõîäíûé òåêñò";
+ Text[ polish ] = "Tekst Ÿród³owy";
+ Text[ japanese ] = "¿°½";
+ Text[ chinese_traditional ] = "­ì©lÀÉ";
+ Text[ arabic ] = "äÕ ÇáãÕÏÑ";
+ Text[ greek ] = "Êåßìåíï ðñïÝëåõóçò";
+ Text[ korean ] = "¼Ò½º";
+ Text[ turkish ] = "Kaynak kod";
+ Text[ language_user1 ] = " ";
+};
+String STR_SRCVIEW_ROW
+{
+ Text = "Zeile " ;
+ Text [ English ] = "Row " ;
+ Text [ norwegian ] = "Rad " ;
+ Text [ italian ] = "Riga " ;
+ Text [ portuguese_brazilian ] = "Fileira " ;
+ Text [ portuguese ] = "Linha " ;
+ Text [ finnish ] = "Rivi " ;
+ Text [ danish ] = "Række " ;
+ Text [ french ] = "Ligne " ;
+ Text [ swedish ] = "Rad " ;
+ Text [ dutch ] = "Rij " ;
+ Text [ spanish ] = "Fila " ;
+ Text [ english_us ] = "Row " ;
+ Text[ chinese_simplified ] = "ÐÐ ";
+ Text[ russian ] = "Ñòðîêà ";
+ Text[ polish ] = "Wiersz ";
+ Text[ japanese ] = "s ";
+ Text[ chinese_traditional ] = "¦æ ";
+ Text[ arabic ] = "ÕÝ";
+ Text[ greek ] = "ÃñáììÞ ";
+ Text[ korean ] = "Çà ";
+ Text[ turkish ] = "Satýr ";
+ Text[ language_user1 ] = " ";
+};
+String STR_SRCVIEW_COL
+{
+ Text = "Spalte " ;
+ Text [ English ] = "Column " ;
+ Text [ norwegian ] = "Kolonne " ;
+ Text [ italian ] = "Colonna " ;
+ Text [ portuguese_brazilian ] = "Coluna " ;
+ Text [ portuguese ] = "Coluna " ;
+ Text [ finnish ] = "Palsta " ;
+ Text [ danish ] = "Kolonne " ;
+ Text [ french ] = "Colonne " ;
+ Text [ swedish ] = "Kolumn " ;
+ Text [ dutch ] = "Kolom " ;
+ Text [ spanish ] = "Columna " ;
+ Text [ english_us ] = "Column " ;
+ Text[ chinese_simplified ] = "ÁÐ ";
+ Text[ russian ] = "Êîëîíêà ";
+ Text[ polish ] = "Kolumna ";
+ Text[ japanese ] = "—ñ ";
+ Text[ chinese_traditional ] = "Äæ ";
+ Text[ arabic ] = "ÚãæÏ";
+ Text[ greek ] = "ÓôÞëç ";
+ Text[ korean ] = "¿­ ";
+ Text[ turkish ] = "Sütun ";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRINT_TITLE
+{
+ Text = "Drucken der Selektion" ;
+ Text [ English ] = "Printing of selection" ;
+ Text[ italian ] = "Stampa la selezione";
+ Text[ portuguese_brazilian ] = "Drucken der Selektion";
+ Text[ portuguese ] = "A imprimir selecção";
+ Text[ danish ] = "Udskriv det markerede";
+ Text[ french ] = "Imprimer la sélection";
+ Text[ swedish ] = "Skriv ut markeringen";
+ Text[ dutch ] = "Afdrukken van de selectie";
+ Text[ spanish ] = "Imprimir la selección";
+ Text[ english_us ] = "Printing selection";
+ Text[ chinese_simplified ] = "´òÓ¡Ñ¡ÖеIJ¿·Ö";
+ Text[ russian ] = "Ïå÷àòü âûäåëåííîãî ôðàãìåíòà";
+ Text[ polish ] = "Drukowanie wybranych elementów";
+ Text[ japanese ] = "‘I‘ð”͈͂̈óü";
+ Text[ chinese_traditional ] = "¦C¦L¿ï¨ú³¡¥÷";
+ Text[ arabic ] = "ØÈÇÚÉ ÇáÊÍÏíÏ";
+ Text[ greek ] = "Åêôýðùóç åðéëïãÞò";
+ Text[ korean ] = "¼±Åà Àμâ";
+ Text[ turkish ] = "Seçimi yazdýr";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRINT_MSG
+{
+ Text = "Wollen Sie die Selektion oder das gesamte Dokument drucken?" ;
+ Text [ English ] = "Print selection or whole document?" ;
+ Text[ italian ] = "Volete stampare la selezione o l'intero documento?";
+ Text[ portuguese_brazilian ] = "Wollen Sie die Selektion oder das gesamte Dokument drucken?";
+ Text[ portuguese ] = "Deseja imprimir a selecção ou o documento inteiro?";
+ Text[ danish ] = "Vil du udskrive det markerede eller hele dokumentet?";
+ Text[ french ] = "Souhaitez vous imprimer uniquement la sélection ou bien le document entier ?";
+ Text[ swedish ] = "Vill Du skriva ut det markerade eller hela dokumentet?";
+ Text[ dutch ] = "Wilt u de selectie of het hele document afdrukken?";
+ Text[ spanish ] = "¿Desea imprimir solo la selección o todo el documento?";
+ Text[ english_us ] = "Do you wish to print the selection or the entire document?";
+ Text[ chinese_simplified ] = "ÄúÒª´òÓ¡Ñ¡ÔñµÄ²¿·Ö»¹ÊÇÒª´òÓ¡Õû¸öÎĵµ£¿";
+ Text[ russian ] = "Âû õîòèòå íàïå÷àòàòü âåñü äîêóìåíò èëè òîëüêî âûäåëåíèå?";
+ Text[ polish ] = "Czy chcesz wydrukowaæ selekcjê czy te¿ ca³y dokument?";
+ Text[ japanese ] = "‘I‘ð”͈͂©•¶‘‘S‘Ì‚Ì‚Ç‚¿‚ç‚ðˆóü‚µ‚Ü‚·‚©H";
+ Text[ chinese_traditional ] = "±z­n¦C¦L¿ï¨úªº³¡¥÷ÁÙ¬O­n¦C¦L¾ã­Ó¤å¥ó¡S";
+ Text[ arabic ] = "åá ÊÑíÏ ØÈÇÚÉ ÇáÊÍÏíÏ Ãã ÇáãÓÊäÏ ÈÃßãáå¿";
+ Text[ greek ] = "ÈÝëåôå íá åêôõðþóåôå ôçí åðéëåãìÝíç ðåñéï÷Þ Þ ïëüêëçñï ôï Ýããñáöï;";
+ Text[ korean ] = "¼±ÅÃµÈ ¹®¼­³ª Àüü ¹®¼­¸¦ ÀμâÇϽðڽÀ´Ï±î?";
+ Text[ turkish ] = "Seçimi ya da tüm belgeyi yazdýrmak istiyor musunuz?";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRINT_ALL
+{
+ Text = "~Alles" ;
+ Text [ English ] = "All" ;
+ Text[ italian ] = "~Tutto";
+ Text[ portuguese_brazilian ] = "Alles";
+ Text[ portuguese ] = "~Tudo";
+ Text[ danish ] = "Alt";
+ Text[ french ] = "~Tout";
+ Text[ swedish ] = "Allt";
+ Text[ dutch ] = "~Alles";
+ Text[ spanish ] = "~Todo";
+ Text[ english_us ] = "All";
+ Text[ chinese_simplified ] = "È«²¿";
+ Text[ russian ] = "Âñå";
+ Text[ polish ] = "Wszystko";
+ Text[ japanese ] = "‚·‚ׂÄ";
+ Text[ chinese_traditional ] = "¥þ³¡";
+ Text[ arabic ] = "Çáßá";
+ Text[ greek ] = "¼ëá";
+ Text[ korean ] = "Àüü";
+ Text[ turkish ] = "Tümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_PRINT_SELECTION
+{
+ Text = "~Selektion" ;
+ Text [ English ] = "Selection" ;
+ Text[ italian ] = "~Selezione";
+ Text[ portuguese_brazilian ] = "Selektion";
+ Text[ portuguese ] = "~Selecção";
+ Text[ danish ] = "Markering";
+ Text[ french ] = "~Sélection";
+ Text[ swedish ] = "Markering";
+ Text[ dutch ] = "~Selectie";
+ Text[ spanish ] = "Sele~cción";
+ Text[ english_us ] = "Selection";
+ Text[ chinese_simplified ] = "Ñ¡ÖÐ";
+ Text[ russian ] = "Âûäåëåíèå";
+ Text[ polish ] = "Selekcja";
+ Text[ japanese ] = "‘I‘ð”͈Í";
+ Text[ chinese_traditional ] = "¿ï¨ú";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ";
+ Text[ turkish ] = "Seçim";
+ Text[ language_user1 ] = " ";
+};
+String STR_READONLY_SEL
+{
+ TEXT = "schreibgeschützt" ;
+ TEXT [ English ] = "readonly" ;
+ TEXT[ english_us ] = "read only";
+ TEXT[ portuguese ] = "só leitura";
+ TEXT[ russian ] = "òîëüêî äëÿ ÷òåíèÿ";
+ TEXT[ dutch ] = "schrijfbeveiligd";
+ TEXT[ french ] = "en lecture seule";
+ TEXT[ spanish ] = "solo lectura";
+ TEXT[ italian ] = "a sola lettura";
+ TEXT[ danish ] = "skrivebeskyttet";
+ TEXT[ swedish ] = "skrivskyddad";
+ TEXT[ polish ] = "Tylko do odczytu";
+ TEXT[ portuguese_brazilian ] = "readonly";
+ TEXT[ japanese ] = "“Ç‚ÝŽæ‚èê—p";
+ TEXT[ chinese_simplified ] = "·À¸²Ð´";
+ TEXT[ chinese_traditional ] = "°ßŪ";
+ TEXT[ arabic ] = "ááÞÑÇÁÉ ÝÞØ";
+ TEXT[ greek ] = "ìüíï ãéá áíÜãíùóç";
+ TEXT[ korean ] = "Àбâ Àü¿ë";
+ TEXT[ turkish ] = "Salt okunur";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SAVEAS_SRC
+{
+ Text = "Q~uelltext exportieren..." ;
+ Text [ English ] = "Export source as..." ;
+ Text [ portuguese_brazilian ] = "Q~uelltext exportieren..." ;
+ Text [ swedish ] = "Exportera källtext..." ;
+ Text [ danish ] = "Eksporter kildetekst..." ;
+ Text [ italian ] = "~Esporta testo sorgente..." ;
+ Text [ spanish ] = "~Exportar texto fuente..." ;
+ Text [ french ] = "E~xport du texte source..." ;
+ Text [ dutch ] = "~Brontekst exporteren..." ;
+ Text [ portuguese ] = "Exportar texto-~fonte..." ;
+ Text [ english_us ] = "~Export source..." ;
+ Text[ chinese_simplified ] = "Êä³öÔ´Îı¾(~E)...";
+ Text[ russian ] = "Ýêñïîðò èñõîäíîãî òåêñòà...";
+ Text[ polish ] = "Eksportuj tekst Ÿród³owy...";
+ Text[ japanese ] = "¿°½Ã·½Ä‚𴸽Îß°Ä‚·‚é(~E)...";
+ Text[ chinese_traditional ] = "¿é¥X­ì©lÀÉ(~E)...";
+ Text[ arabic ] = "ÊÕÏíÑ äÕ ÇáãÕÏÑ...";
+ Text[ greek ] = "ÅîáãùãÞ êåéìÝíïõ ðñïÝëåõóçò...";
+ Text[ korean ] = "¼Ò½º º¸³»±â(~E)...";
+ Text[ turkish ] = "Kaynak kodu dýþa aktar...";
+ Text[ language_user1 ] = " ";
+};
+String MN_SRCVIEW_POPUPMENU
+{
+ Text = "HTML - Quelltext" ;
+ Text [ English ] = "HTML source" ;
+ Text [ portuguese ] = "Texto-fonte HTML" ;
+ Text [ english_us ] = "HTML source" ;
+ Text [ portuguese_brazilian ] = "HTML - Quelltext" ;
+ Text [ swedish ] = "HTML - Källtext" ;
+ Text [ danish ] = "HTML-kildetekst" ;
+ Text [ italian ] = "Testo sorgente HTML" ;
+ Text [ spanish ] = "Texto fuente HTML" ;
+ Text [ french ] = "Texte source HTML" ;
+ Text [ dutch ] = "HTML - brontekst" ;
+ Text[ chinese_simplified ] = "HTML Ô´Îı¾";
+ Text[ russian ] = "Èñõîäíûé òåêñò â ôîðìàòå HTML";
+ Text[ polish ] = "Tekst Ÿród³owy HTML";
+ Text[ japanese ] = "HTML¿°½";
+ Text[ chinese_traditional ] = "HTML ­ì©lÀÉ";
+ Text[ arabic ] = "äÕ ãÕÏÑ HTML";
+ Text[ greek ] = "Áñ÷åßï ðñïÝëåõóçò HTML";
+ Text[ korean ] = "HTML ¼Ò½º";
+ Text[ turkish ] = "HTML kaynak kodu";
+ Text[ language_user1 ] = " ";
+};
+
+ToolBox RID_TOOLS_TOOLBOX
+{
+ HelpID = HID_TOOLS_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Scroll = TRUE ;
+ Align = BOXALIGN_LEFT ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_CTRL ;
+ HelpID = HID_INSERT_CTRL ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_FIELD_CTRL ;
+ HelpID = HID_INSERT_FIELD_CTRL ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_OBJ_CTRL ;
+ HelpID = HID_INSERT_OBJ_CTRL ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_INSERT_DRAW
+ };
+ ToolBoxItem
+ {
+ ITEM_FORM_CONFIG
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_GLOSSARY_DLG ;
+ HelpID = FN_GLOSSARY_DLG ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_CAPTION;
+ HelpID = FN_INSERT_CAPTION ;
+ Hide = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_IDX_ENTRY_DLG;
+ HelpId = FN_INSERT_IDX_ENTRY_DLG;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_REF_FIELD;
+ HelpID = FN_INSERT_REF_FIELD ;
+ Hide = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SHADOWCURSOR ;
+ HelpID = FN_SHADOWCURSOR ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SPELLING_DLG ;
+ HelpID = FN_SPELLING_DLG ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_AUTOSPELL_CHECK
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_HYPHENATE_OPT_DLG;
+ HelpID = FN_HYPHENATE_OPT_DLG;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_THESAURUS_DLG;
+ HelpID = FN_THESAURUS_DLG;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SEARCH_DLG ;
+ HelpID = SID_SEARCH_DLG ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_HYPERLINK_INSERT ;
+ HelpID = SID_HYPERLINK_INSERT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_ZOOM;
+ HelpID = SID_ATTR_ZOOM ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_VIEW_META_CHARS ;
+ HelpID = FN_VIEW_META_CHARS ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_VIEW_FIELDNAME ;
+ HelpID = FN_VIEW_FIELDNAME ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_VIEW_GRAPHIC ;
+ HelpID = FN_VIEW_GRAPHIC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BROWSER_MODE ;
+ HelpID = SID_BROWSER_MODE ;
+ };
+ };
+};
+Toolbox RID_SRCVIEW_TOOLBOX
+{
+ HelpID = HID_SRCVIEW_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Scroll = TRUE ;
+ Align = BOXALIGN_TOP ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_CHAR_FONT ;
+ HelpID = SID_ATTR_CHAR_FONT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_CHAR_FONTHEIGHT ;
+ HelpID = SID_ATTR_CHAR_FONTHEIGHT ;
+ };
+ };
+};
+Menu MN_SRCVIEW_POPUPMENU
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONT
+ };
+ MenuItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT
+ };
+ MenuItem
+ {
+ Separator = TRUE ;
+ };
+ MenuItem
+ {
+ Identifier = SID_SOURCEVIEW ;
+ HelpID = HID_SOURCEVIEW ;
+ Text = "HTML-Quelltext" ;
+ Text [ ENGLISH ] = "HTML source" ;
+ Text [ dutch ] = "HTML-brontekst" ;
+ Text [ english_us ] = "HTML Source" ;
+ Text [ italian ] = "Testo sorgente HTML" ;
+ Text [ spanish ] = "Texto fuente HTML" ;
+ Text [ french ] = "Texte source HTML" ;
+ Text [ swedish ] = "HTML-källtext" ;
+ Text [ danish ] = "HTML-kildetekst" ;
+ Text [ portuguese ] = "Fonte HTML" ;
+ Text [ portuguese_brazilian ] = "HTML-Quelltext" ;
+ Text[ chinese_simplified ] = "HTML Ô´Îı¾";
+ Text[ russian ] = "Èñõîäíûé òåêñò â ôîðìàòå HTML";
+ Text[ polish ] = "Tekst Ÿród³owy HTML";
+ Text[ japanese ] = "HTML¿°½";
+ Text[ chinese_traditional ] = "HTML ­ì©lÀÉ";
+ Text[ arabic ] = "äÕ ãÕÏÑ HTML";
+ Text[ greek ] = "Êåßìåíï ðñïÝëåõóçò HTML";
+ Text[ korean ] = "HTML ¼Ò½º";
+ Text[ turkish ] = "HTML kaynak kodu";
+ Text[ language_user1 ] = " ";
+ };
+ };
+};
+
diff --git a/sw/source/ui/uiview/view0.cxx b/sw/source/ui/uiview/view0.cxx
new file mode 100644
index 000000000000..37968263b0c7
--- /dev/null
+++ b/sw/source/ui/uiview/view0.cxx
@@ -0,0 +1,270 @@
+/*************************************************************************
+ *
+ * $RCSfile: view0.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SVX_SRCHDLG_HXX //autogen
+#include <svx/srchdlg.hxx>
+#endif
+#ifndef _IDETEMP_HXX
+#include <basctl/idetemp.hxx>
+#endif
+#ifndef _SFX_TEMPLDLG_HXX //autogen
+#include <sfx2/templdlg.hxx>
+#endif
+#ifndef _UIVWIMP_HXX
+#include <uivwimp.hxx>
+#endif
+
+#ifndef _NAVIPI_HXX //autogen
+#include <navipi.hxx>
+#endif
+#include "view.hxx"
+#include "basesh.hxx"
+#include "docsh.hxx"
+#include "globals.hrc"
+#include "cmdid.h" // FN_ ...
+#include "globdoc.hxx"
+#include "wview.hxx"
+#include "shells.hrc"
+
+#define OLEObjects
+#define SwView
+#define SearchAttributes
+#define ReplaceAttributes
+#define SearchSettings
+#define _ExecSearch ExecSearch
+#define _StateSearch StateSearch
+#define Frames
+#define Graphics
+#define Tables
+#define Controls
+#define GlobalContents
+#define Text
+#define Frame
+#define Graphic
+#define Object
+#define Draw
+#define TextDrawText
+#define TextInTable
+#define ListInText
+#define ListInTable
+#define WebTextInTable
+#define WebListInText
+#define WebListInTable
+#define TextPage
+#include "itemdef.hxx"
+#include <svx/svxslots.hxx>
+#include "swslots.hxx"
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+SFX_IMPL_VIEWFACTORY(SwView, SW_RES(STR_NONAME))
+{
+ SFX_VIEW_REGISTRATION(SwDocShell);
+ SFX_VIEW_REGISTRATION(SwGlobalDocShell);
+}
+
+SFX_IMPL_INTERFACE( SwView, SfxViewShell, SW_RES(RID_TOOLS_TOOLBOX) )
+{
+ SFX_CHILDWINDOW_CONTEXT_REGISTRATION(SID_NAVIGATOR);
+ SFX_CHILDWINDOW_REGISTRATION(SfxTemplateDialogWrapper::GetChildWindowId());
+ SFX_CHILDWINDOW_REGISTRATION(SvxSearchDialogWrapper::GetChildWindowId());
+ SFX_CHILDWINDOW_REGISTRATION(FN_REDLINE_ACCEPT);
+ SFX_CHILDWINDOW_REGISTRATION(SID_HYPERLINK_DIALOG);
+ SFX_FEATURED_CHILDWINDOW_REGISTRATION(FN_SYNC_LABELS, 1);
+ SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_TOOLS|
+ SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
+ SW_RES(RID_TOOLS_TOOLBOX) );
+}
+
+TYPEINIT1(SwView,SfxViewShell)
+
+/*-----------------13.12.97 11:06-------------------
+
+--------------------------------------------------*/
+ShellModes SwView::GetShellMode()
+{
+ return pViewImpl->GetShellMode();
+}
+
+/*-----------------13.12.97 11:28-------------------
+
+--------------------------------------------------*/
+view::XSelectionSupplier* SwView::GetUNOObject()
+{
+ return pViewImpl->GetUNOObject();
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.72 2000/09/18 16:06:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.71 2000/09/04 11:44:56 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.70 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.69 2000/05/09 14:43:13 os
+ BASIC interface partially removed
+
+ Revision 1.68 2000/04/18 15:02:50 os
+ UNICODE
+
+ Revision 1.67 2000/03/23 07:50:25 os
+ UNO III
+
+ Revision 1.66 2000/02/09 08:07:01 os
+ #72165# hyperlink dialog moved again
+
+ Revision 1.65 1999/09/07 13:56:53 os
+ Insert/EditIndexEntry as FloatingWindow
+
+ Revision 1.64 1999/01/27 08:58:32 OS
+ #56371# TF_ONE51
+
+
+ Rev 1.63 27 Jan 1999 09:58:32 OS
+ #56371# TF_ONE51
+
+ Rev 1.62 15 Jul 1998 12:52:42 OS
+ Navigator an der SwView registrieren #34794#
+
+ Rev 1.61 09 Jun 1998 15:32:20 OM
+ VC-Controls entfernt
+
+ Rev 1.60 02 Jun 1998 15:49:54 OS
+ TF_STARONE raus; GetUNOSelectionObject gestrichen
+
+ Rev 1.59 03 Apr 1998 14:38:18 OS
+ UnoObject fuer die View reaktiviert
+
+ Rev 1.58 16 Mar 1998 16:18:04 OM
+ Aktualisieren-Button kontextsensitiv
+
+ Rev 1.57 15 Mar 1998 15:14:08 OM
+ Synchron-Button
+
+ Rev 1.56 27 Feb 1998 18:25:14 OM
+ Redline-Browser
+
+ Rev 1.55 29 Jan 1998 09:21:06 OS
+ TF_STARONE
+
+ Rev 1.54 16 Dec 1997 12:00:24 OS
+ Impl-Pointer fuer UNO
+
+ Rev 1.53 29 Nov 1997 16:49:14 MA
+ includes
+
+ Rev 1.52 21 Nov 1997 15:00:12 MA
+ includes
+
+ Rev 1.51 03 Nov 1997 13:58:28 MA
+ precomp entfernt
+
+ Rev 1.50 09 Sep 1997 11:33:08 OS
+ TextPage heisst nur Page #43650#
+
+ Rev 1.49 08 Sep 1997 10:52:36 OS
+ DBG_ERROR -> DBG_ASSERT
+
+ Rev 1.48 08 Sep 1997 07:43:38 OS
+ TextTables nur ClassName
+
+ Rev 1.47 04 Sep 1997 18:10:56 MBA
+ GetSelectionObject erzeugt richtiges Objekt auch bei WebView
+
+ Rev 1.46 04 Sep 1997 08:25:24 OS
+ Tables heisst jetzt TextTables, kein GPF wg. fehlender TLB-Angaben
+
+ Rev 1.45 03 Sep 1997 10:52:26 MBA
+ OLEObjects in SVX
+
+ Rev 1.44 29 Aug 1997 12:21:34 MH
+ chg: SfxTypeLib_Impl
+
+ Rev 1.43 05 Aug 1997 16:36:38 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.42 07 Jul 1997 09:35:10 OS
+ Collection fuer GlobalDoc
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uiview/view1.cxx b/sw/source/ui/uiview/view1.cxx
new file mode 100644
index 000000000000..db15ba1bfb83
--- /dev/null
+++ b/sw/source/ui/uiview/view1.cxx
@@ -0,0 +1,272 @@
+/*************************************************************************
+ *
+ * $RCSfile: view1.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVDPAGV_HXX //autogen
+#include <svx/svdpagv.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+#ifndef _IDXMRK_HXX
+#include <idxmrk.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _GLOBDOC_HXX
+#include <globdoc.hxx>
+#endif
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+#ifndef _FLDWRAP_HXX
+#include <fldwrap.hxx>
+#endif
+#ifndef _REDLNDLG_HXX
+#include <redlndlg.hxx>
+#endif
+#ifndef _DPAGE_HXX
+#include <dpage.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+
+extern int bDocSzUpdated;
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwView::Activate(BOOL bMDIActivate)
+{
+ // aktuelle View anmelden an der DocShell
+ // die View bleibt solange an der DocShell
+ // aktiv bis Sie zerstoert wird oder durch Activate eine
+ // neue gesetzt wird
+ SwDocShell* pDocSh = GetDocShell();
+ if(pDocSh)
+ pDocSh->SetView(this);
+ SwModule* pSwMod = SW_MOD();
+ pSwMod->SetView(this);
+
+ // Dokumentgroesse hat sich geaendert
+ if(!bDocSzUpdated)
+ DocSzChgd(aDocSz);
+
+ pHLineal->SetActive( TRUE );
+ if(pVLineal)
+ pVLineal->SetActive( TRUE );
+
+ if ( bMDIActivate )
+ {
+ pWrtShell->ShGetFcs(FALSE); // Selektionen sichtbar
+
+ if( sSwViewData.Len() )
+ {
+ ReadUserData( sSwViewData, FALSE );
+ if( sNewCrsrPos.Len() )
+ {
+ long nX = sNewCrsrPos.GetToken( 0, ';' ).ToInt32(),
+ nY = sNewCrsrPos.GetToken( 1, ';' ).ToInt32();
+ pWrtShell->SwCrsrShell::SetCrsr( Point( nX, nY ), FALSE );
+ sNewCrsrPos.Erase();
+ }
+ sSwViewData.Erase();
+ }
+
+ AttrChangedNotify(pWrtShell);
+
+ // Flddlg ggf neu initialisieren (z.B. fuer TYP_SETVAR)
+ USHORT nId = SwFldDlgWrapper::GetChildWindowId();
+ SfxViewFrame* pVFrame = GetViewFrame();
+ SwFldDlgWrapper *pWrp = (SwFldDlgWrapper*)pVFrame->GetChildWindow(nId);
+ if (pWrp)
+ pWrp->ReInitDlg(GetDocShell());
+
+ // RedlineDlg ggf neu initialisieren
+ nId = SwRedlineAcceptChild::GetChildWindowId();
+ SwRedlineAcceptChild *pRed = (SwRedlineAcceptChild*)pVFrame->GetChildWindow(nId);
+ if (pRed)
+ pRed->ReInitDlg(GetDocShell());
+
+ // reinit IdxMarkDlg
+ nId = SwInsertIdxMarkWrapper::GetChildWindowId();
+ SwInsertIdxMarkWrapper *pIdxMrk = (SwInsertIdxMarkWrapper*)pVFrame->GetChildWindow(nId);
+ if (pIdxMrk)
+ pIdxMrk->ReInitDlg(*pWrtShell);
+
+ // reinit AuthMarkDlg
+ nId = SwInsertAuthMarkWrapper::GetChildWindowId();
+ SwInsertAuthMarkWrapper *pAuthMrk = (SwInsertAuthMarkWrapper*)pVFrame->
+ GetChildWindow(nId);
+ if (pAuthMrk)
+ pAuthMrk->ReInitDlg(*pWrtShell);
+ }
+ else
+ //Wenigstens das Notify rufen (vorsichtshalber wegen der SlotFilter
+ AttrChangedNotify(pWrtShell);
+
+ SfxViewShell::Activate(bMDIActivate);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void SwView::Deactivate(BOOL bMDIActivate)
+{
+ extern BOOL bFlushCharBuffer ;
+ // Befinden sich noch Zeichen im Input Buffer?
+ if( bFlushCharBuffer )
+ GetEditWin().FlushInBuffer( pWrtShell );
+
+ if( bMDIActivate )
+ {
+ pWrtShell->ShLooseFcs(); // Selektionen unsichtbar
+
+ pHLineal->SetActive( FALSE );
+ if(pVLineal)
+ pVLineal->SetActive( FALSE );
+ }
+ SfxViewShell::Deactivate(bMDIActivate);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwView::MarginChanged()
+{
+ GetWrtShell().SetBrowseBorder( GetMargin() );
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.79 2000/09/18 16:06:12 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.78 2000/09/08 08:12:53 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.77 2000/08/15 14:08:20 jp
+ Task #77422#: PrintPreView in the same window
+
+ Revision 1.76 1999/09/15 14:13:05 os
+ dialog for authorities
+
+ Revision 1.75 1999/09/07 13:56:53 os
+ Insert/EditIndexEntry as FloatingWindow
+
+ Revision 1.74 1999/01/25 12:49:14 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+
+ Rev 1.73 25 Jan 1999 13:49:14 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.72 19 Jun 1998 08:54:14 OS
+ VC-Sbx-Reste auch noch raus
+
+ Rev 1.71 19 Jun 1998 07:58:34 MH
+ GetSBxForm entfallen (OS)
+
+ Rev 1.70 09 Jun 1998 15:32:52 OM
+ VC-Controls entfernt
+
+ Rev 1.69 31 Mar 1998 15:31:52 OS
+ SetReadonlyUI von IsAllProtect abhaengig #49077#
+
+ Rev 1.68 27 Mar 1998 14:15:16 OM
+ ChildWindows im Modified-Hdl updaten
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
new file mode 100644
index 000000000000..8942eb61d2f9
--- /dev/null
+++ b/sw/source/ui/uiview/view2.cxx
@@ -0,0 +1,1587 @@
+/*************************************************************************
+ *
+ * $RCSfile: view2.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _APP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _LINKDLG_HXX //autogen
+#include <so3/linkdlg.hxx>
+#endif
+#ifndef _TXTCMP_HXX //autogen
+#include <svtools/txtcmp.hxx>
+#endif
+#ifndef _SVX_ZOOM_HXX //autogen
+#include <svx/zoom.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_TSPTITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SFXEVENT_HXX //autogen
+#include <sfx2/event.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX //autogen
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_TOPFRM_HXX
+#include <sfx2/topfrm.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXPTITEM_HXX //autogen
+#include <svtools/ptitem.hxx>
+#endif
+#ifndef _SVXLINKMGR_HXX
+#include <svx/linkmgr.hxx>
+#endif
+#ifndef __RSC //autogen
+#include <tools/errinf.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#ifndef _REDLNDLG_HXX
+#include <redlndlg.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _UIVWIMP_HXX
+#include <uivwimp.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _FMTINFMT_HXX
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _REDLENUM_HXX
+#include <redlenum.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _DRAWBASE_HXX
+#include <drawbase.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _LINENUM_HXX
+#include <linenum.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _USRPREF_HXX
+#include <usrpref.hxx>
+#endif
+#ifndef _BOOKMRK_HXX
+#include <bookmrk.hxx>
+#endif
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+#ifndef _TOX_HXX
+#include <tox.hxx>
+#endif
+#ifndef _WORKCTRL_HXX
+#include <workctrl.hxx>
+#endif
+#ifndef _SCROLL_HXX
+#include <scroll.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _TEXTSH_HXX
+#include <textsh.hxx>
+#endif
+#ifndef _TABSH_HXX
+#include <tabsh.hxx>
+#endif
+#ifndef _LISTSH_HXX
+#include <listsh.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _SWSWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _SHELLS_HRC
+#include <shells.hrc>
+#endif
+#ifndef _WEB_HRC
+#include <web.hrc>
+#endif
+#ifndef _VIEW_HRC
+#include <view.hrc>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+
+//Damit die Seitenanzeige in der Statusleiste nicht unnoetig erfolgt.
+static String sLstPg;
+static USHORT nPageCnt = 0;
+const char __FAR_DATA sStatusDelim[] = " : ";
+
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::scanner;
+
+/*---------------------------------------------------------------------------
+ Beschreibung: String fuer die Seitenanzeige in der Statusbar basteln.
+ ----------------------------------------------------------------------------*/
+
+String SwView::GetPageStr( USHORT nPg, USHORT nLogPg,
+ const String& rDisplay )
+{
+ String aStr( aPageStr );
+ if( rDisplay.Len() )
+ aStr += rDisplay;
+ else
+ aStr += String::CreateFromInt32(nLogPg);
+
+ if( nLogPg && nLogPg != nPg )
+ {
+ aStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" "));
+ aStr += String::CreateFromInt32(nPg);
+ }
+ aStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" / "));
+ aStr += String::CreateFromInt32( GetWrtShell().GetPageCnt() );
+
+ return aStr;
+}
+
+void __EXPORT SwView::Execute(SfxRequest &rReq)
+{
+ USHORT nSlot = rReq.GetSlot();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ switch( nSlot )
+ {
+ case SID_CREATE_SW_DRAWVIEW:
+ pWrtShell->GetDoc()->MakeDrawModel();
+ break;
+
+ case FN_LINE_NUMBERING_DLG:
+ {
+ SwLineNumberingDlg *pDlg = new SwLineNumberingDlg(this);
+ pDlg->Execute();
+ delete pDlg;
+ break;
+ }
+ case FN_EDIT_LINK_DLG:
+ EditLinkDlg();
+ break;
+ case FN_REFRESH_VIEW:
+ GetEditWin().Invalidate();
+ break;
+ case FN_PAGEUP:
+ case FN_PAGEUP_SEL:
+ {
+ Rectangle aVis( GetVisArea() );
+ PageUpCrsr(FN_PAGEUP_SEL == nSlot);
+ rReq.SetReturnValue(SfxBoolItem(nSlot,
+ aVis != GetVisArea()));
+ }
+ break;
+ case FN_PAGEDOWN_SEL:
+ case FN_PAGEDOWN:
+ {
+ Rectangle aVis( GetVisArea() );
+ PageDownCrsr(FN_PAGEDOWN_SEL == nSlot);
+ rReq.SetReturnValue(SfxBoolItem(nSlot,
+ aVis != GetVisArea()));
+ }
+ break;
+ case FN_REDLINE_ON:
+ {
+ if (SFX_ITEM_SET == pArgs->GetItemState(nSlot, FALSE, &pItem))
+ {
+ USHORT nOn = ((const SfxBoolItem*)pItem)->GetValue() ? REDLINE_ON : 0;
+ USHORT nMode = pWrtShell->GetRedlineMode();
+ pWrtShell->SetRedlineMode( (nMode & ~REDLINE_ON) | nOn);
+ }
+ }
+ break;
+ case FN_REDLINE_SHOW:
+
+ if (SFX_ITEM_SET == pArgs->GetItemState(nSlot, FALSE, &pItem))
+ {
+ USHORT nMode = ( ~(REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE)
+ & pWrtShell->GetRedlineMode() ) | REDLINE_SHOW_INSERT;
+ if( ((const SfxBoolItem*)pItem)->GetValue() )
+ nMode |= REDLINE_SHOW_DELETE;
+
+ pWrtShell->SetRedlineMode( nMode );
+ }
+ break;
+ case FN_REDLINE_ACCEPT:
+ GetViewFrame()->ToggleChildWindow(FN_REDLINE_ACCEPT);
+ break;
+
+ case SID_DOCUMENT_COMPARE:
+ case SID_DOCUMENT_MERGE:
+ {
+ String sFileName, sFilterName;
+ INT16 nVersion = 0;
+
+ if( pArgs )
+ {
+ if( SFX_ITEM_SET == pArgs->GetItemState( SID_FILE_NAME, FALSE, &pItem ))
+ sFileName = ((const SfxStringItem*)pItem)->GetValue();
+
+ if( SFX_ITEM_SET == pArgs->GetItemState( SID_FILTER_NAME, FALSE, &pItem ))
+ sFilterName = ((const SfxStringItem*)pItem)->GetValue();
+
+ if( SFX_ITEM_SET == pArgs->GetItemState( SID_VERSION, FALSE, &pItem ))
+ nVersion = ((const SfxInt16Item *)pItem)->GetValue();
+ }
+
+ long nFound = InsertDoc( nSlot, sFileName, sFilterName, nVersion );
+ rReq.SetReturnValue( SfxInt32Item( nSlot, nFound ));
+
+ if (nFound > 0) // Redline-Browser anzeigen
+ {
+ SfxViewFrame* pVFrame = GetViewFrame();
+ pVFrame->ShowChildWindow(FN_REDLINE_ACCEPT);
+
+ // RedlineDlg neu initialisieren
+ USHORT nId = SwRedlineAcceptChild::GetChildWindowId();
+ SwRedlineAcceptChild *pRed = (SwRedlineAcceptChild*)
+ pVFrame->GetChildWindow(nId);
+ if (pRed)
+ pRed->ReInitDlg(GetDocShell());
+ }
+ }
+ break;
+ case FN_SYNC_LABELS:
+ GetViewFrame()->ShowChildWindow(FN_SYNC_LABELS, TRUE);
+ break;
+ case FN_ESCAPE:
+ if ( pWrtShell->HasDrawView() && pWrtShell->GetDrawView()->IsDragObj() )
+ {
+ pWrtShell->BreakDrag();
+ pWrtShell->EnterSelFrmMode();
+ }
+ else if ( pWrtShell->IsDrawCreate() )
+ {
+ GetDrawFuncPtr()->BreakCreate();
+ AttrChangedNotify(pWrtShell); // ggf Shellwechsel...
+ }
+ else if ( pWrtShell->HasSelection() || IsDrawMode() )
+ {
+ LeaveDrawCreate();
+ pWrtShell->EnterStdMode();
+ AttrChangedNotify(pWrtShell); // ggf Shellwechsel...
+ }
+ else if ( GetEditWin().GetApplyTemplate() )
+ GetEditWin().SetApplyTemplate(SwApplyTemplate());
+ else if( ((SfxObjectShell*)GetDocShell())->GetInPlaceObject() &&
+ ((SfxObjectShell*)GetDocShell())->GetInPlaceObject()->GetIPClient() )
+ {
+ ErrCode nErr = GetDocShell()->DoInPlaceActivate( FALSE );
+ if ( nErr )
+ ErrorHandler::HandleError( nErr );
+ }
+ else if ( GetEditWin().IsChainMode() )
+ GetEditWin().SetChainMode( FALSE );
+//JP 10.06.99: warten auf SLOT von MBA
+// else if(Application::GetAppWindow()->IsFullScreenView())
+// GetViewFrame()->GetDispatcher()->Execute(SID_WIN_FULLSCREEN);
+ break;
+ case SID_ATTR_BORDER_INNER:
+ case SID_ATTR_BORDER_OUTER:
+ case SID_ATTR_BORDER_SHADOW:
+ if(pArgs)
+ pWrtShell->SetAttr(*pArgs);
+ break;
+
+ case SID_ATTR_PAGE:
+ case SID_ATTR_PAGE_SIZE:
+ case SID_ATTR_PAGE_MAXSIZE:
+ case SID_ATTR_PAGE_PAPERBIN:
+ case SID_ATTR_PAGE_EXT1:
+ case FN_PARAM_FTN_INFO:
+ {
+ if(pArgs)
+ {
+ const USHORT nCurIdx = pWrtShell->GetCurPageDesc();
+ SwPageDesc aPageDesc( pWrtShell->GetPageDesc( nCurIdx ) );
+ ::ItemSetToPageDesc( *pArgs, aPageDesc,
+ pWrtShell );
+ // Den Descriptor der Core veraendern.
+ pWrtShell->ChgPageDesc( nCurIdx, aPageDesc );
+ }
+ }
+ break;
+ case FN_NAVIGATION_PI_GOTO_PAGE:
+ {
+ SfxViewFrame* pVFrame = GetViewFrame();
+ SfxChildWindow* pCh = pVFrame->GetChildWindow( SID_NAVIGATOR );
+ if(!pCh)
+ {
+ pVFrame->ToggleChildWindow( SID_NAVIGATOR );
+ pCh = pVFrame->GetChildWindow( SID_NAVIGATOR );
+
+ }
+ ((SwNavigationPI*) pCh->GetContextWindow(SW_MOD()))->GotoPage();
+ }
+ break;
+ case FN_EDIT_CURRENT_TOX:
+ {
+ GetViewFrame()->GetDispatcher()->Execute(
+ FN_INSERT_MULTI_TOX, SFX_CALLMODE_ASYNCHRON);
+ }
+ break;
+ case FN_UPDATE_CUR_TOX:
+ {
+ const SwTOXBase* pBase = pWrtShell->GetCurTOX();
+ if(pBase)
+ {
+ pWrtShell->StartAction();
+ if(TOX_INDEX == pBase->GetType())
+ pWrtShell->ApplyAutoMark();
+ pWrtShell->UpdateTableOf( *pBase );
+ pWrtShell->EndAction();
+ }
+ }
+ break;
+ case FN_UPDATE_TOX:
+ {
+ pWrtShell->StartAction();
+ pWrtShell->EnterStdMode();
+ FASTBOOL bOldCrsrInReadOnly = pWrtShell->IsReadOnlyAvailable();
+ pWrtShell->SetReadOnlyAvailable( TRUE );
+
+ for( USHORT i = 0; i < 2; ++i )
+ {
+ USHORT nCount = pWrtShell->GetTOXCount();
+ if( 1 == nCount )
+ ++i;
+
+ while( pWrtShell->GotoPrevTOXBase() )
+ ; // aufs erste Verzeichnis springen
+
+ // falls wir nicht mehr in einem stehen, dann zum naechsten
+ // springen.
+ const SwTOXBase* pBase = pWrtShell->GetCurTOX();
+ if( !pBase )
+ {
+ pWrtShell->GotoNextTOXBase();
+ pBase = pWrtShell->GetCurTOX();
+ }
+
+ BOOL bAutoMarkApplied = FALSE;
+ while( pBase )
+ {
+ if(TOX_INDEX == pBase->GetType() && !bAutoMarkApplied)
+ {
+ pWrtShell->ApplyAutoMark();
+ bAutoMarkApplied = TRUE;
+ }
+ // JP 15.07.96: das pBase wird nur fuer die Schnittstelle
+ // benoetigt. Muss mal umgetstellt werden!!!
+ pWrtShell->UpdateTableOf( *pBase );
+
+ if( pWrtShell->GotoNextTOXBase() )
+ pBase = pWrtShell->GetCurTOX();
+ else
+ pBase = 0;
+ }
+ }
+ pWrtShell->SetReadOnlyAvailable( bOldCrsrInReadOnly );
+ pWrtShell->EndAction();
+ }
+ break;
+ case SID_ATTR_BRUSH:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(RES_BACKGROUND, FALSE, &pItem))
+ {
+ const USHORT nCurIdx = pWrtShell->GetCurPageDesc();
+ SwPageDesc aDesc( pWrtShell->GetPageDesc( nCurIdx ));
+ SwFrmFmt& rMaster = aDesc.GetMaster();
+ rMaster.SetAttr(*pItem);
+ pWrtShell->ChgPageDesc( nCurIdx, aDesc);
+ }
+ }
+ break;
+ case SID_CLEARHISTORY:
+ {
+ pWrtShell->DelAllUndoObj();
+ }
+ break;
+ case SID_UNDO:
+ {
+ pShell->ExecuteSlot(rReq);
+ }
+ break;
+ case FN_INSERT_CTRL:
+ case FN_INSERT_OBJ_CTRL:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(nSlot, FALSE, &pItem))
+ {
+ USHORT nValue = ((SfxUInt16Item*)pItem)->GetValue();
+ switch ( nSlot )
+ {
+ case FN_INSERT_CTRL:
+ {
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ if(bWeb)
+ SwView::nWebInsertCtrlState = nValue;
+ else
+ SwView::nInsertCtrlState = nValue;
+ }
+ break;
+ case FN_INSERT_OBJ_CTRL: SwView::nInsertObjectCtrlState = nValue ;break;
+ }
+
+ }
+ GetViewFrame()->GetBindings().Invalidate( nSlot );
+ }
+ break;
+#if defined WIN || defined WNT || defined UNX
+ case SID_TWAIN_SELECT:
+ case SID_TWAIN_TRANSFER:
+ GetViewImpl()->ExcuteScan(nSlot);
+ break;
+#endif
+
+ case SID_ATTR_DEFTABSTOP:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(SID_ATTR_DEFTABSTOP, FALSE, &pItem))
+ {
+ SvxTabStopItem aDefTabs( 0, 0 );
+ USHORT nTab = ((const SfxUInt16Item*)pItem)->GetValue();
+ MakeDefTabs( nTab, aDefTabs );
+ pWrtShell->SetDefault( aDefTabs );
+ }
+ }
+ break;
+ case SID_ATTR_LANGUAGE:
+ {
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(SID_ATTR_LANGUAGE, FALSE, &pItem))
+ {
+ SvxLanguageItem aLang(((SvxLanguageItem*)pItem)->GetLanguage(), RES_CHRATR_LANGUAGE);
+ pWrtShell->SetDefault( aLang );
+ }
+ }
+ break;
+ case FN_INSERT_HEADER:
+ pWrtShell->SetHeadInBrowse(!pWrtShell->IsHeadInBrowse());
+ break;
+ case FN_INSERT_FOOTER:
+ pWrtShell->SetFootInBrowse(!pWrtShell->IsFootInBrowse());
+ break;
+ case FN_SCROLL_NEXT_PREV:
+ if(pArgs && pArgs->GetItemState(FN_SCROLL_NEXT_PREV, FALSE, &pItem))
+ {
+ // hier sollen nur die Handler der PageUp/DownButtons gerufen werden
+ BOOL bNext = ((const SfxBoolItem*)pItem)->GetValue();
+ MoveNavigation(bNext);
+ }
+ break;
+ case SID_JUMPTOMARK:
+ if( pArgs && SFX_ITEM_SET == pArgs->GetItemState(SID_JUMPTOMARK, FALSE, &pItem))
+ JumpToSwMark( (( const SfxStringItem*)pItem)->GetValue() );
+ break;
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: SeitenNr-Feld invalidieren
+ --------------------------------------------------------------------*/
+
+void SwView::UpdatePageNums(USHORT nPhyNum, USHORT nVirtNum, const String& rPgStr)
+{
+ String sTemp(GetPageStr( nPhyNum, nVirtNum, rPgStr ));
+ if ( sLstPg != sTemp )
+ {
+ sLstPg = sTemp;
+ const SfxStringItem aTmp( FN_STAT_PAGE,
+ sLstPg);
+ SfxBindings &rBnd = GetViewFrame()->GetBindings();
+ rBnd.SetState( aTmp );
+ rBnd.Update( FN_STAT_PAGE );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Status der Stauszeile
+ --------------------------------------------------------------------*/
+
+
+void SwView::StateStatusLine(SfxItemSet &rSet)
+{
+ SwWrtShell& rShell = GetWrtShell();
+
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+ ASSERT( nWhich, "leeres Set");
+
+ while( nWhich )
+ {
+ switch( nWhich )
+ {
+ case FN_STAT_PAGE:
+/*
+//JP 07.01.00: is a nice feature - show the selektion of DrawObjects
+ if( rShell.IsObjSelected()
+//??? || rShell.IsFrmSelected()
+ )
+ {
+ String sDisplay( rShell.GetDrawView()->GetMarkList().
+ GetMarkDescription() );
+ rSet.Put( SfxStringItem( FN_STAT_PAGE, sDisplay ));
+ }
+ else
+*/ {
+ // Anzahl der Seiten, log. SeitenNr. SeitenNr ermitteln
+ USHORT nPage, nLogPage;
+ String sDisplay;
+ rShell.GetPageNumber( -1, rShell.IsCrsrVisible(), nPage, nLogPage, sDisplay );
+ rSet.Put( SfxStringItem( FN_STAT_PAGE,
+ GetPageStr( nPage, nLogPage, sDisplay) ));
+
+ USHORT nCnt = GetWrtShell().GetPageCnt();
+ if (nPageCnt != nCnt) // Basic benachrichtigen
+ {
+ nPageCnt = nCnt;
+ SFX_APP()->NotifyEvent(SfxEventHint(SW_EVENT_PAGE_COUNT, GetViewFrame()->GetObjectShell()), FALSE);
+ }
+ }
+ break;
+ case FN_STAT_TEMPLATE:
+ {
+ rSet.Put(SfxStringItem( FN_STAT_TEMPLATE,
+ rShell.GetCurPageStyle(FALSE)));
+
+ }
+ break;
+ case SID_ATTR_ZOOM:
+ {
+ if ( GetDocShell()->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED )
+ {
+ const SwViewOption* pVOpt = rShell.GetViewOptions();
+ SvxZoomType eZoom = (SvxZoomType) pVOpt->GetZoomType();
+ SvxZoomItem aZoom(eZoom,
+ pVOpt->GetZoom());
+ if(pWrtShell->IsBrowseMode())
+ {
+ aZoom.SetValueSet(
+ SVX_ZOOM_ENABLE_50|
+ SVX_ZOOM_ENABLE_75|
+ SVX_ZOOM_ENABLE_100|
+ SVX_ZOOM_ENABLE_150|
+ SVX_ZOOM_ENABLE_200);
+ }
+ rSet.Put( aZoom );
+ }
+ else
+ rSet.DisableItem( SID_ATTR_ZOOM );
+ }
+ break;
+ case SID_ATTR_POSITION:
+ case SID_ATTR_SIZE:
+ {
+ if( !rShell.IsFrmSelected() && !rShell.IsObjSelected() )
+ SwBaseShell::_SetFrmMode( FLY_DRAG_END );
+ else
+ {
+ USHORT nFrameMode = SwBaseShell::GetFrmMode();
+ if ( nFrameMode == FLY_DRAG_START || nFrameMode == FLY_DRAG )
+ {
+ if ( nWhich == SID_ATTR_POSITION )
+ rSet.Put( SfxPointItem( SID_ATTR_POSITION,
+ rShell.GetAnchorObjDiff()));
+ else
+ rSet.Put( SvxSizeItem( SID_ATTR_SIZE,
+ rShell.GetObjSize()));
+ }
+ }
+ }
+ break;
+ case SID_TABLE_CELL:
+
+ if( rShell.IsFrmSelected() || rShell.IsObjSelected() )
+ {
+ rSet.Put( SvxSizeItem( SID_TABLE_CELL, rShell.GetObjSize()));
+ }
+ else
+ {
+ String sStr;
+ if( rShell.IsCrsrInTbl() )
+ sStr = rShell.GetBoxNms();
+ else
+ {
+ const SwSection* pCurrSect = rShell.GetCurrSection();
+ if( pCurrSect )
+ {
+ switch( pCurrSect->GetType() )
+ {
+ case TOX_HEADER_SECTION:
+ case TOX_CONTENT_SECTION:
+ {
+ const SwTOXBase* pTOX = pWrtShell->GetCurTOX();
+ if( pTOX )
+ sStr = pTOX->GetTOXName();
+ else
+ {
+ ASSERT( !this,
+ "was ist das fuer ein Verzeichnis?" );
+ sStr = pCurrSect->GetName();
+ }
+ }
+ break;
+ default:
+ sStr = pCurrSect->GetName();
+ break;
+ }
+ }
+ }
+ const SwNumRule* pNumRule = rShell.GetCurNumRule();
+ if (pNumRule) // Cursor in Numerierung
+ {
+ BYTE nNumLevel = rShell.GetNumLevel();
+ if( NO_NUM > nNumLevel && MAXLEVEL >
+ ( nNumLevel = GetRealLevel( nNumLevel )) )
+ {
+ if( sStr.Len() )
+ sStr.AppendAscii(sStatusDelim);
+ sStr += SW_RESSTR(STR_NUM_LEVEL);
+ sStr += String::CreateFromInt32( nNumLevel + 1 );
+ if(!pNumRule->IsAutoRule())
+ {
+ SfxItemSet aSet(GetPool(),
+ RES_PARATR_NUMRULE, RES_PARATR_NUMRULE);
+ rShell.GetAttr(aSet);
+ const SfxPoolItem* pItem;
+ if(SFX_ITEM_AVAILABLE <=
+ aSet.GetItemState(RES_PARATR_NUMRULE, TRUE, &pItem))
+ {
+ const String& rNumStyle =
+ ((const SfxStringItem*)pItem)->GetValue();
+ if(rNumStyle.Len())
+ {
+ sStr.AppendAscii(sStatusDelim);
+ sStr += rNumStyle;
+ }
+ }
+ }
+ }
+ }
+
+ if( rShell.HasReadonlySel() )
+ {
+ if( sStr.Len() )
+ sStr.InsertAscii( sStatusDelim, 0 );
+ sStr.Insert( SW_RESSTR( STR_READONLY_SEL ), 0 );
+ }
+ if( sStr.Len() )
+ rSet.Put( SfxStringItem( SID_TABLE_CELL, sStr ));
+ }
+ break;
+ case FN_STAT_SELMODE:
+ {
+ if(rShell.IsStdMode())
+ rSet.Put(SfxUInt16Item(FN_STAT_SELMODE, 0));
+ else if(rShell.IsAddMode())
+ rSet.Put(SfxUInt16Item(FN_STAT_SELMODE, 2));
+ else
+ rSet.Put(SfxUInt16Item(FN_STAT_SELMODE, 1));
+ break;
+ }
+ case SID_ATTR_INSERT:
+ if( rShell.IsRedlineOn() )
+ rSet.DisableItem( nWhich );
+ else
+ {
+ rSet.Put(SfxBoolItem(SID_ATTR_INSERT,rShell.IsInsMode()));
+ }
+ break;
+ case FN_STAT_HYPERLINKS:
+ {
+ rSet.Put(SfxBoolItem(FN_STAT_HYPERLINKS,
+ pWrtShell->GetViewOptions()->IsExecHyperlinks()));
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Execute fuer die Stauszeile
+ --------------------------------------------------------------------*/
+
+
+void SwView::ExecuteStatusLine(SfxRequest &rReq)
+{
+ SwWrtShell &rSh = GetWrtShell();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ BOOL bUp = FALSE;
+ USHORT nWhich = rReq.GetSlot();
+ switch( nWhich )
+ {
+ case FN_STAT_PAGE:
+ {
+ GetViewFrame()->GetDispatcher()->Execute( SID_NAVIGATOR,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD );
+ }
+ break;
+
+ case FN_STAT_BOOKMARK:
+ if ( pArgs )
+ {
+ if (SFX_ITEM_SET == pArgs->GetItemState( nWhich, TRUE, &pItem))
+ {
+ USHORT nDest;
+ nDest = ((const SfxUInt16Item *)pItem)->GetValue();
+ rSh.EnterStdMode();
+ rSh.GotoBookmark( nDest );
+ }
+ }
+ break;
+
+ case FN_STAT_TEMPLATE:
+ {
+ GetViewFrame()->GetDispatcher()->Execute(FN_FORMAT_PAGE_DLG,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD );
+ }
+ break;
+ case SID_ATTR_ZOOM:
+ {
+ if ( GetDocShell()->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED )
+ {
+ const SfxItemSet *pSet = 0;
+ SvxZoomDialog *pDlg = 0;
+ if ( pArgs )
+ pSet = pArgs;
+ else if ( GetDocShell()->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED )
+ {
+ SfxItemSet aCoreSet(pShell->GetPool(), SID_ATTR_ZOOM, SID_ATTR_ZOOM);
+ SvxZoomItem aZoom( (SvxZoomType)rSh.GetViewOptions()->GetZoomType(),
+ rSh.GetViewOptions()->GetZoom() );
+
+ if(rSh.IsBrowseMode())
+ {
+ aZoom.SetValueSet(
+ SVX_ZOOM_ENABLE_50|
+ SVX_ZOOM_ENABLE_75|
+ SVX_ZOOM_ENABLE_100|
+ SVX_ZOOM_ENABLE_150|
+ SVX_ZOOM_ENABLE_200);
+ }
+ aCoreSet.Put( aZoom );
+
+ pDlg = new SvxZoomDialog( &GetViewFrame()->GetWindow(), aCoreSet );
+ pDlg->SetLimits( MINZOOM, MAXZOOM );
+
+ if( pDlg->Execute() != RET_CANCEL )
+ pSet = pDlg->GetOutputItemSet();
+ }
+
+ if ( pSet && SFX_ITEM_SET == pSet->GetItemState(SID_ATTR_ZOOM, TRUE, &pItem))
+ {
+ enum SvxZoomType eType = ((const SvxZoomItem *)pItem)->GetType();
+ SetZoom( eType, ((const SvxZoomItem *)pItem)->GetValue() );
+ }
+ delete pDlg;
+ bUp = TRUE;
+ }
+ }
+ break;
+
+ case SID_ATTR_SIZE:
+ {
+ ULONG nId = FN_INSERT_FIELD;
+ if( rSh.IsCrsrInTbl() )
+ nId = FN_FORMAT_TABLE_DLG;
+ else if( rSh.GetCurTOX() )
+ nId = FN_INSERT_MULTI_TOX;
+ else if( rSh.GetCurrSection() )
+ nId = FN_EDIT_REGION;
+ else
+ {
+ const SwNumRule* pNumRule = rSh.GetCurNumRule();
+ if( pNumRule ) // Cursor in Numerierung
+ {
+ if( pNumRule->IsAutoRule() )
+ nId = FN_NUMBER_BULLETS;
+ else
+ {
+ // Dialog vom Gestalter starten ;-)
+ nId = 0;
+ }
+ }
+ else if( rSh.IsFrmSelected() )
+ nId = FN_FORMAT_FRAME_DLG;
+ else if( rSh.IsObjSelected() )
+ nId = SID_ATTR_TRANSFORM;
+ }
+ if( nId )
+ GetViewFrame()->GetDispatcher()->Execute( nId, SFX_CALLMODE_SYNCHRON |
+ SFX_CALLMODE_RECORD );
+ }
+ break;
+
+ case FN_STAT_SELMODE:
+ {
+ if ( pArgs )
+ {
+ if (SFX_ITEM_SET == pArgs->GetItemState( nWhich, TRUE, &pItem))
+ {
+ switch ( ((const SfxUInt16Item *)pItem)->GetValue() )
+ {
+ case 0: rSh.EnterStdMode(); break;
+ case 1: rSh.EnterExtMode(); break;
+ case 2: rSh.EnterAddMode(); break;
+ }
+ }
+ }
+ else
+ {
+
+ if( !rSh.IsAddMode() && !rSh.IsExtMode() )
+ rSh.ToggleExtMode();
+ else if ( rSh.IsExtMode() )
+ {
+ rSh.ToggleExtMode();
+ rSh.ToggleAddMode();
+ }
+ else if ( rSh.IsAddMode() )
+ rSh.ToggleAddMode();
+ }
+ bUp = TRUE;
+ break;
+ }
+ case FN_SET_ADD_MODE:
+ rSh.ToggleAddMode();
+ nWhich = FN_STAT_SELMODE;
+ bUp = TRUE;
+ break;
+ case FN_SET_EXT_MODE:
+ rSh.ToggleExtMode();
+ nWhich = FN_STAT_SELMODE;
+ bUp = TRUE;
+ break;
+ case SID_ATTR_INSERT:
+ rSh.ToggleInsMode();
+ bUp = TRUE;
+ break;
+
+ case FN_STAT_HYPERLINKS:
+ {
+ SwViewOption aOpt( *rSh.GetViewOptions() );
+ BOOL bIs = aOpt.IsExecHyperlinks();
+ BOOL bSet;
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(nWhich, FALSE, &pItem))
+ bSet = ((const SfxBoolItem*)pItem)->GetValue();
+ else
+ bSet = !bIs;
+ if(bIs != bSet)
+ {
+ aOpt.SetExecHyperlinks(bSet);
+ SW_MOD()->ApplyUsrPref(aOpt, this);
+ bUp = TRUE;
+ }
+ }
+ break;
+ }
+ if ( bUp )
+ {
+ SfxBindings &rBnd = GetViewFrame()->GetBindings();
+ rBnd.Invalidate(nWhich);
+ rBnd.Update(nWhich);
+ }
+}
+
+
+
+
+void SwView::InsFrmMode(USHORT nCols)
+{
+ if ( pWrtShell->HasWholeTabSelection() )
+ {
+ SwFlyFrmAttrMgr aMgr( TRUE, pWrtShell, FRMMGR_TYPE_TEXT );
+
+ const SwFrmFmt &rPageFmt =
+ pWrtShell->GetPageDesc(pWrtShell->GetCurPageDesc()).GetMaster();
+ SwTwips lWidth = rPageFmt.GetFrmSize().GetWidth();
+ const SvxLRSpaceItem &rLR = rPageFmt.GetLRSpace();
+ lWidth -= rLR.GetLeft() + rLR.GetRight();
+ aMgr.SetSize(Size(lWidth, aMgr.GetSize().Height()));
+ if(nCols > 1)
+ {
+ SwFmtCol aCol;
+ aCol.Init( nCols, aCol.GetGutterWidth(), aCol.GetWishWidth() );
+ aMgr.SetCol( aCol );
+ }
+ aMgr.InsertFlyFrm();
+ }
+ else
+ GetEditWin().InsFrm(nCols);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Links bearbeiten
+ --------------------------------------------------------------------*/
+
+void SwView::EditLinkDlg()
+{
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ SvBaseLinksDialog aSvBaseLinksDialog( &GetViewFrame()->GetWindow(), &GetWrtShell().GetLinkManager()
+#if SUPD>355
+,bWeb
+#endif
+ );
+ aSvBaseLinksDialog.Execute();
+/*
+ SwLinkDlg* pDlg = new SwLinkDlg(GetFrameWindow());
+ pDlg->SetShell(&GetWrtShell());
+ pDlg->Execute();
+
+ DELETEZ(pDlg);
+*/
+}
+
+BOOL SwView::JumpToSwMark( const String& rMark )
+{
+ BOOL bRet = FALSE;
+ if( rMark.Len() )
+ {
+ // wir wollen den Bookmark aber am oberen Rand haben
+ BOOL bSaveCC = IsCrsrAtCenter();
+ BOOL bSaveCT = IsCrsrAtTop();
+ SetCrsrAtTop( TRUE );
+
+ //JP 27.04.98: Bug 49786
+ // Damit in FrameSet auch gescrollt werden kann, muss die
+ // entsprechende Shell auch das Focus-Flag gesetzt haben!
+ BOOL bHasShFocus = pWrtShell->HasShFcs();
+ if( !bHasShFocus )
+ pWrtShell->ShGetFcs( FALSE );
+
+ const SwFmtINetFmt* pINet;
+ String sCmp, sMark( INetURLObject::decode( rMark, INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ));
+
+ xub_StrLen nLastPos, nPos = sMark.Search( cMarkSeperator );
+ if( STRING_NOTFOUND != nPos )
+ while( STRING_NOTFOUND != ( nLastPos =
+ sMark.Search( cMarkSeperator, nPos + 1 )) )
+ nPos = nLastPos;
+
+ if( STRING_NOTFOUND != nPos &&
+ ( sCmp = sMark.Copy( nPos + 1 ) ).EraseAllChars().Len() )
+ {
+ String sName( sMark.Copy( 0, nPos ) );
+ sCmp.ToLowerAscii();
+ FlyCntType eFlyType = FLYCNTTYPE_ALL;
+
+ if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToRegion ) )
+ {
+ pWrtShell->EnterStdMode();
+ bRet = pWrtShell->GotoRegion( sName );
+ }
+ else if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToOutline ) )
+ {
+ pWrtShell->EnterStdMode();
+ bRet = pWrtShell->GotoOutline( sName );
+ }
+ else if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToFrame ) )
+ eFlyType = FLYCNTTYPE_FRM;
+ else if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToGraphic ) )
+ eFlyType = FLYCNTTYPE_GRF;
+ else if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToOLE ) )
+ eFlyType = FLYCNTTYPE_OLE;
+ else if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToTable ) )
+ {
+ pWrtShell->EnterStdMode();
+ bRet = pWrtShell->GotoTable( sName );
+ }
+ else if( COMPARE_EQUAL == sCmp.CompareToAscii( pMarkToText ) )
+ {
+ // Normale Textsuche
+ pWrtShell->EnterStdMode();
+ SearchParam aParam( sName, SearchParam::SRCH_NORMAL,
+ TRUE, FALSE, FALSE );
+
+ if( pWrtShell->SearchPattern( aParam, DOCPOS_START, DOCPOS_END ))
+ {
+ pWrtShell->EnterStdMode(); // Selektion wieder aufheben
+ bRet = TRUE;
+ }
+ }
+ else if( USHRT_MAX != ( nPos = pWrtShell->FindBookmark( sMark ) ))
+ pWrtShell->GotoBookmark( nPos, FALSE, TRUE ), bRet = TRUE;
+ else if( 0 != ( pINet = pWrtShell->FindINetAttr( sMark ) ))
+ bRet = pWrtShell->GotoINetAttr( *pINet->GetTxtINetFmt() );
+
+ // fuer alle Arten von Flys
+ if( FLYCNTTYPE_ALL != eFlyType && pWrtShell->GotoFly( sName, eFlyType ))
+ {
+ bRet = TRUE;
+ if( FLYCNTTYPE_FRM == eFlyType )
+ {
+ // TextFrames: Cursor in den Frame setzen
+ pWrtShell->UnSelectFrm();
+ pWrtShell->LeaveSelFrmMode();
+ }
+ else
+ {
+ pWrtShell->HideCrsr();
+ pWrtShell->EnterSelFrmMode();
+ }
+ }
+ }
+ else if( USHRT_MAX != ( nPos = pWrtShell->FindBookmark( sMark ) ))
+ pWrtShell->GotoBookmark( nPos, FALSE, TRUE ), bRet = TRUE;
+ else if( 0 != ( pINet = pWrtShell->FindINetAttr( sMark ) ))
+ bRet = pWrtShell->GotoINetAttr( *pINet->GetTxtINetFmt() );
+
+ // ViewStatus wieder zurueck setzen
+ SetCrsrAtTop( bSaveCT, bSaveCC );
+
+ if( !bHasShFocus )
+ pWrtShell->ShLooseFcs();
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Links bearbeiten
+ --------------------------------------------------------------------*/
+
+long SwView::InsertDoc( USHORT nSlotId, const String& rFileName,
+ const String& rFilterName, INT16 nVersion )
+{
+ BOOL bInsert = FALSE, bCompare = FALSE, bMerge = FALSE;
+ long nFound = 0;
+
+ switch( nSlotId )
+ {
+ case SID_DOCUMENT_MERGE: bMerge = TRUE; break;
+ case SID_DOCUMENT_COMPARE: bCompare = TRUE; break;
+ case SID_INSERTDOC: bInsert = TRUE; break;
+
+ default:
+ ASSERT( !this, "Unbekannte SlotId!" );
+ bInsert = TRUE;
+ nSlotId = SID_INSERTDOC;
+ break;
+ }
+
+ SfxMedium* pMed = 0;
+ SwDocShell* pDocSh = GetDocShell();
+ if( rFileName.Len() )
+ {
+ const SfxFilter* pFilter = 0;
+
+ SfxObjectFactory& rFact = pDocSh->GetFactory();
+ const USHORT nCount = rFact.GetFilterCount();
+ for( USHORT i = 0; i < nCount; i++ )
+ {
+ const SfxFilter* pFlt = rFact.GetFilter( i );
+ if( pFlt->GetName() == rFilterName ||
+ pFlt->GetFilterName() == rFilterName )
+ {
+ pFilter = pFlt;
+ break;
+ }
+ }
+ if ( !pFilter )
+ {
+ pMed = new SfxMedium(rFileName, STREAM_READ, TRUE, TRUE, 0, 0 );
+ SfxFilterMatcher aMatcher( rFact.GetFilterContainer() );
+ ErrCode nErr = aMatcher.GuessFilter( *pMed, &pFilter, FALSE );
+ if ( nErr )
+ DELETEZ(pMed);
+ else
+ pMed->SetFilter( pFilter );
+ }
+ else
+ pMed = new SfxMedium(rFileName, STREAM_READ, TRUE, TRUE, pFilter, 0);
+ }
+ else
+ {
+ pMed = SFX_APP()->InsertDocumentDialog(0, pDocSh->GetFactory());
+ }
+ if( !pMed )
+ return -1;
+
+ if( bInsert )
+ {
+ SfxObjectShellRef aRef( pDocSh );
+
+ pDocSh->RegisterTransfer( *pMed );
+ pMed->DownLoad(); // ggfs. den DownLoad anstossen
+ if( aRef.Is() && 1 < aRef->GetRefCount() ) // noch gueltige Ref?
+ {
+ SwReader* pRdr;
+ Reader *pRead = pDocSh->StartConvertFrom( *pMed, &pRdr, pWrtShell );
+ if( pRead )
+ {
+ String sTmpBaseURL( INetURLObject::GetBaseURL() );
+ INetURLObject::SetBaseURL( pMed->GetName() );
+
+ ULONG nErrno;
+ { //Scope for SwWait-Object, to be able to execute slots
+ //outside this scope.
+ SwWait aWait( *GetDocShell(), TRUE );
+ pWrtShell->StartAllAction();
+ if ( pWrtShell->HasSelection() )
+ pWrtShell->DelRight(); // Selektionen loeschen
+ nErrno = pRdr->Read( *pRead ); // und Dokument einfuegen
+ delete pRdr;
+
+ INetURLObject::SetBaseURL( sTmpBaseURL );
+ }
+
+ // ggfs. alle Verzeichnisse updaten:
+ if( pWrtShell->IsUpdateTOX() )
+ {
+ SfxRequest aReq( FN_UPDATE_TOX, SFX_CALLMODE_SLOT, GetPool() );
+ Execute( aReq );
+ pWrtShell->SetUpdateTOX( FALSE ); // wieder zurueck setzen
+ }
+
+ pWrtShell->EndAllAction();
+ if( nErrno )
+ {
+ ErrorHandler::HandleError( nErrno );
+ nFound = IsError( nErrno ) ? -1 : 0;
+ }
+ else
+ nFound = 0;
+ }
+ }
+ }
+ else
+ {
+ SfxObjectShellRef xDocSh;
+
+extern int lcl_FindDocShell( SfxObjectShellRef& xDocSh,
+ const String& rFileName, const String& rPasswd,
+ String& rFilter, INT16 nVersion,
+ SwDocShell* pDestSh );
+
+ String sFltNm;
+ int nRet = lcl_FindDocShell( xDocSh, pMed->GetName(), aEmptyStr,
+ sFltNm, nVersion, pDocSh );
+ if( nRet )
+ {
+ SwWait aWait( *GetDocShell(), TRUE );
+ pWrtShell->StartAllAction();
+
+ pWrtShell->EnterStdMode(); // Selektionen loeschen
+
+ if( bCompare )
+ nFound = pWrtShell->CompareDoc( *((SwDocShell*)&xDocSh)->GetDoc() );
+ else
+ nFound = pWrtShell->MergeDoc( *((SwDocShell*)&xDocSh)->GetDoc() );
+
+ pWrtShell->EndAllAction();
+
+ if (!bCompare && !nFound)
+ {
+ Window* pWindow = &GetEditWin();
+ InfoBox(pWindow, SW_RES(MSG_NO_MERGE_ENTRY)).Execute();
+ }
+ }
+ if( 2 == nRet && xDocSh.Is() )
+ xDocSh->DoClose();
+ }
+
+ delete pMed;
+ return nFound;
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.197 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.196 2000/09/08 08:12:54 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.195 2000/09/07 15:59:32 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.194 2000/08/17 13:47:26 jp
+ JumpToMark: handle decoded URLs
+
+ Revision 1.193 2000/07/07 13:25:05 jp
+ must changes VCL
+
+ Revision 1.192 2000/05/29 08:03:23 os
+ new scanner interface
+
+ Revision 1.191 2000/05/26 07:21:34 os
+ old SW Basic API Slots removed
+
+ Revision 1.190 2000/05/19 11:01:38 jp
+ Changes for Unicode
+
+ Revision 1.189 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.188 2000/04/18 15:02:51 os
+ UNICODE
+
+ Revision 1.187 2000/03/30 13:20:30 jp
+ Bug #74614#: StateStatusline - take the real numLevel
+
+ Revision 1.186 2000/03/14 13:45:51 jp
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.185 2000/02/21 12:11:45 os
+ #73248# Recording of FN_EDIT_CUR_INDEX corrected
+
+ Revision 1.184 2000/02/11 14:59:23 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.183 2000/02/02 17:00:58 jp
+ Task #72579#: interface of SwReader is changed
+
+ Revision 1.182 2000/01/07 18:15:50 jp
+ Bug #71654#: StateStatusLine - set at frame- or object selection the pos and size
+
+ Revision 1.181 1999/12/23 14:18:06 jp
+ Bug #71286#: UpdateAllTOX - cursor must jump into readonly sections
+
+ Revision 1.180 1999/10/18 11:15:56 jp
+ SID_TABLE_CELL: if Frame or SdrObject selected, then dont return a string
+
+ Revision 1.179 1999/10/18 09:41:51 jp
+ ExecuteStatusLine: SID_ATTR_POS is dependent on content
+
+ Revision 1.178 1999/10/15 15:58:00 jp
+ StateStatusLine: if in tox then show the name
+
+ Revision 1.177 1999/09/29 07:07:50 mh
+ chg: header
+
+ Revision 1.176 1999/08/26 13:48:46 OS
+ apply AutoMark file at TOX update
+
+
+ Rev 1.175 26 Aug 1999 15:48:46 OS
+ apply AutoMark file at TOX update
+
+ Rev 1.174 25 Aug 1999 15:26:22 OS
+ extended indexes: remove old code
+
+ Rev 1.173 08 Jul 1999 18:45:22 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.172 10 Jun 1999 10:52:32 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.171 09 Jun 1999 13:19:38 OS
+ #66578# new slot: FN_EDIT_CURENT_TOX
+
+ Rev 1.170 27 May 1999 13:05:52 OS
+ Einf?gen/Bearbeiten von Spalten ueberarbeitet
+
+ Rev 1.169 23 Apr 1999 13:50:10 MA
+ include fuer Update
+
+ Rev 1.168 21 Apr 1999 16:12:44 MA
+ #65085# irgendwann sollte auch das verschieben mal abgebrochen werden.
+
+ Rev 1.167 16 Mar 1999 15:25:26 JP
+ Bug #59840#: JumpToMark - bei Bookmarks keine Selection
+
+ Rev 1.166 22 Jan 1999 16:55:50 JP
+ Bug Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.165 18 Nov 1998 12:57:52 OM
+ #58385# DrawView ueber Slot anziehen
+
+ Rev 1.164 26 Oct 1998 17:29:10 JP
+ Bug #54342#: Section merkt sich das Passwort der Datei
+
+ Rev 1.163 18 Sep 1998 11:39:58 OS
+ #52654# PageUp/Down return ueber VisArea ermitteln
+
+ Rev 1.162 18 Sep 1998 09:40:40 OS
+ 52654# XScreenCursor - FN_PAGEUP/DOWN mit Bool-return
+
+ Rev 1.161 12 Aug 1998 18:22:16 HR
+ #54781#: GCC braucht Temporary
+
+ Rev 1.160 25 Jul 1998 11:57:02 OS
+ Status der Abreisscontroller sofort invalidieren #51812#
+
+ Rev 1.159 14 Jul 1998 10:43:42 OM
+ #52748# Twain-Menueeintrag
+
+ Rev 1.158 01 Jul 1998 12:54:52 JP
+ InsertDoc: Flag bQuiet mit int nVersion ersetzt, FN_DOCUMENT-Ids entfernt, werden vom SFX geliefert
+
+ Rev 1.157 28 Jun 1998 12:48:48 MA
+ Mail_Scrollbody
+
+ Rev 1.156 09 Jun 1998 15:32:20 OM
+ VC-Controls entfernt
+
+ Rev 1.155 27 Apr 1998 10:59:46 JP
+ Bug #49786#: FocusFlag hinausreichen
+
+ Rev 1.154 07 Apr 1998 15:58:50 OM
+ #49333# Page-Event asynchron callen
+
+ Rev 1.153 27 Mar 1998 14:15:18 OM
+ ChildWindows im Modified-Hdl updaten
+
+ Rev 1.152 15 Mar 1998 15:14:10 OM
+ Synchron-Button
+
+ Rev 1.151 12 Mar 1998 13:00:38 OS
+ SID_NEWWINDOW nicht mehr ueberladen
+
+ Rev 1.150 04 Mar 1998 14:14:02 OM
+ Dokument Merge/Compare
+
+ Rev 1.149 27 Feb 1998 18:25:16 OM
+ Redline-Browser
+
+ Rev 1.148 26 Feb 1998 11:52:56 OM
+ Redline accept/reject
+
+ Rev 1.147 24 Feb 1998 15:29:10 JP
+ Search..: SWPOSDOC entfernt, auf enums umgestellt
+
+ Rev 1.146 19 Feb 1998 17:37:50 JP
+ compiler error
+
+ Rev 1.145 19 Feb 1998 09:35:06 JP
+ RedlineMode darf nur im InsertMode einschaltbar sein
+
+ Rev 1.144 18 Feb 1998 18:57:26 OM
+ Zeilennumerierung
+
+ Rev 1.143 18 Feb 1998 15:02:44 JP
+ Status erfragen/setzen fuer Redlines anzeigen korrigiert
+
+ Rev 1.142 12 Feb 1998 16:47:22 OM
+ Basic-Event fuer Seitenzahlaenderung
+
+ Rev 1.141 11 Feb 1998 10:45:58 OS
+ IsFullScreenMode gegen IsFullScreeView getsauscht, ChainMode vor Fullscreen #47232#
+
+ Rev 1.140 03 Feb 1998 15:28:22 OM
+ Redlining
+
+ Rev 1.139 23 Jan 1998 16:04:16 MA
+ includes
+
+ Rev 1.138 23 Jan 1998 15:23:38 MA
+ include
+
+ Rev 1.137 19 Jan 1998 11:48:34 MBA
+ MDIFrame durch TopViewFrame ersetzt
+
+ Rev 1.136 06 Jan 1998 07:28:40 OS
+ getrennter Status fuer Insert-Controller #46322#
+
+ Rev 1.135 04 Dec 1997 17:01:18 OS
+ Numerierungsvorlage in der Statuszeile anzeigen
+
+ Rev 1.134 29 Nov 1997 16:48:08 MA
+ includes
+
+ Rev 1.133 28 Nov 1997 11:32:12 TJ
+ include
+
+ Rev 1.132 21 Nov 1997 15:00:16 MA
+ includes
+
+ Rev 1.131 17 Nov 1997 10:21:24 JP
+ Umstellung Numerierung
+
+ Rev 1.130 05 Nov 1997 11:52:08 MA
+ chain
+
+ Rev 1.129 03 Nov 1997 13:58:32 MA
+ precomp entfernt
+
+ Rev 1.128 07 Oct 1997 15:16:12 AMA
+ Fix #44419#: Neuformatierung wird in ViewShell::ApplyViewOptions ausgeloest
+
+ Rev 1.127 25 Sep 1997 15:20:34 OS
+ nicht BtnPage, sondern MoveNavigation aufrufen! #44223#
+
+ Rev 1.126 17 Sep 1997 12:35:08 JP
+ neu: JumpToSwMark - ist der Code aus dem JUMPTOMARK
+
+ Rev 1.125 04 Sep 1997 17:14:46 MA
+ includes
+
+ Rev 1.124 01 Sep 1997 13:25:54 OS
+ DLL-Umstellung
+
+ Rev 1.123 15 Aug 1997 11:47:58 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.122 11 Aug 1997 10:21:16 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.121 31 Jul 1997 14:59:48 MH
+ chg: header
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/viewcoll.cxx b/sw/source/ui/uiview/viewcoll.cxx
new file mode 100644
index 000000000000..cff8ff78f56d
--- /dev/null
+++ b/sw/source/ui/uiview/viewcoll.cxx
@@ -0,0 +1,249 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewcoll.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "cmdid.h"
+#include "uiitems.hxx"
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+
+#ifndef _SV_WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _RSCSFX_HXX //autogen
+#include <rsc/rscsfx.hxx>
+#endif
+
+
+#include "errhdl.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "basesh.hxx"
+
+
+void SwView::ExecColl(SfxRequest &rReq)
+{
+ Window *pMDI = &GetViewFrame()->GetWindow();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem = 0;
+ USHORT nWhich = rReq.GetSlot();
+ switch( nWhich )
+ {
+ case FN_SET_PAGE:
+ {
+ DBG_ASSERT(!this, "Not implemented")
+ }
+ break;
+ case FN_SET_PAGE_STYLE:
+ {
+ if( pArgs )
+ {
+ if (pArgs &&
+ SFX_ITEM_SET == pArgs->GetItemState( nWhich , TRUE, &pItem ))
+ {
+ if( ((SfxStringItem*)pItem)->GetValue() !=
+ GetWrtShell().GetCurPageStyle(FALSE) )
+ {
+ SfxStringItem aName(SID_STYLE_APPLY,
+ ((SfxStringItem*)pItem)->GetValue());
+ SfxUInt16Item aFamItem( SID_STYLE_FAMILY,
+ SFX_STYLE_FAMILY_PAGE);
+ SwPtrItem aShell(FN_PARAM_WRTSHELL, GetWrtShellPtr());
+ SfxRequest aReq(SID_STYLE_APPLY, 0, GetPool());
+ aReq.AppendItem(aName);
+ aReq.AppendItem(aFamItem);
+ aReq.AppendItem(aShell);
+ GetCurShell()->ExecuteSlot(aReq);
+ }
+ }
+ }
+ else
+ {
+ SfxRequest aReq(FN_FORMAT_PAGE_DLG, 0, GetPool());
+ GetCurShell()->ExecuteSlot(aReq);
+ }
+ }
+ break;
+ default:
+ ASSERT(FALSE, falscher CommandProcessor fuer Dispatch);
+ return;
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.31 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.30 2000/05/26 07:21:34 os
+ old SW Basic API Slots removed
+
+ Revision 1.29 2000/02/11 14:59:31 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.28 1998/09/21 11:59:34 MH
+ chg: header wg. internal comp.error
+
+
+ Rev 1.27 21 Sep 1998 13:59:34 MH
+ chg: header wg. internal comp.error
+
+ Rev 1.26 29 Nov 1997 16:49:26 MA
+ includes
+
+ Rev 1.25 21 Nov 1997 15:00:16 MA
+ includes
+
+ Rev 1.24 03 Nov 1997 13:58:30 MA
+ precomp entfernt
+
+ Rev 1.23 07 Apr 1997 18:59:58 MH
+ chg: header
+
+ Rev 1.22 05 Mar 1997 20:36:16 NF
+ Neuer Constructor f?r SfxRequest
+
+ Rev 1.21 04 Dec 1996 23:07:10 MH
+ del: stdchr.hxx
+
+ Rev 1.20 14 Nov 1996 19:19:08 OS
+ Umstellung SlotIds
+
+ Rev 1.19 09 Sep 1996 18:57:22 MH
+ add: include basesh.hxx
+
+ Rev 1.18 09 Sep 1996 15:11:26 OS
+ SID_APPLY_TEMPLATE mit WrtShell
+
+ Rev 1.17 04 Sep 1996 08:02:24 OS
+ Format/Grundschriften entfernt
+
+ Rev 1.16 29 Jul 1996 15:47:22 MA
+ includes
+
+ Rev 1.15 26 Jun 1996 15:01:58 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.14 30 Nov 1995 15:16:06 OS
+ div. Slots verschoben
+
+ Rev 1.13 24 Nov 1995 16:58:00 OM
+ PCH->PRECOMPILED
+
+ Rev 1.12 09 Nov 1995 17:57:38 OS
+ Id fuer FormatPage/CharDlg auf SID_ umgestellt
+
+ Rev 1.11 31 Oct 1995 18:42:44 OM
+ GetFrameWindow entfernt
+
+ Rev 1.10 22 Aug 1995 08:07:34 MA
+ svxitems-header entfernt
+
+ Rev 1.9 14 Jul 1995 17:49:02 OS
+ neue Seitenvorlage auf Differenz testen
+
+ Rev 1.8 30 Jun 1995 07:58:34 OS
+ const und nicht const
+
+ Rev 1.7 29 Jun 1995 11:12:16 OS
+ Page/Para/Char-Style aus Macro setzen
+
+ Rev 1.6 19 Jun 1995 16:34:52 OS
+ -FN_STYLE_SHEET_FRAME_DLG
+
+ Rev 1.5 14 Feb 1995 16:51:24 PK
+ fn_set_standard_fonts
+
+ Rev 1.4 18 Jan 1995 13:23:00 MS
+ Precompiled hd
+
+ Rev 1.3 05 Dec 1994 16:57:40 MS
+ Anpassung Tabdlg
+
+ Rev 1.2 25 Oct 1994 19:07:26 ER
+ add: PCH
+
+ Rev 1.1 25 Oct 1994 12:15:12 MS
+ SwStdCharDlg entfernt
+
+ Rev 1.0 22 Sep 1994 18:37:52 VB
+ Weiteres
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/viewdlg.cxx b/sw/source/ui/uiview/viewdlg.cxx
new file mode 100644
index 000000000000..610c14cf874b
--- /dev/null
+++ b/sw/source/ui/uiview/viewdlg.cxx
@@ -0,0 +1,198 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewdlg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _SVX_TSPTITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "basesh.hxx"
+#include "viewopt.hxx"
+#include "uitool.hxx"
+#include "cmdid.h"
+#include "docstdlg.hxx"
+#include "pagedesc.hxx"
+
+
+void SwView::ExecDlg(SfxRequest &rReq)
+{
+ Window *pMDI = &GetViewFrame()->GetWindow();
+ ModalDialog *pDialog = 0;
+ //Damit aus dem Basic keine Dialoge fuer Hintergrund-Views aufgerufen werden:
+ const SfxPoolItem* pItem = 0;
+ const SfxItemSet* pArgs = rReq.GetArgs();
+
+ USHORT nSlot = rReq.GetSlot();
+ if(pArgs)
+ pArgs->GetItemState( GetPool().GetWhich(nSlot), FALSE, &pItem );
+
+ switch ( nSlot )
+ {
+ case FN_CHANGE_PAGENUM:
+ {
+ if ( pItem )
+ {
+ USHORT nValue = ((SfxUInt16Item *)pItem)->GetValue();
+ USHORT nOldValue = pWrtShell->GetPageOffset();
+ USHORT nPage, nLogPage;
+ pWrtShell->GetPageNum( nPage, nLogPage,
+ pWrtShell->IsCrsrVisible(), FALSE);
+
+ if(nValue != nOldValue || nValue != nLogPage)
+ {
+ if(!nOldValue)
+ pWrtShell->SetNewPageOffset( nValue );
+ else
+ pWrtShell->SetPageOffset( nValue );
+ }
+ }
+ }
+ break;
+
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+
+ if( pDialog )
+ {
+ pDialog->Execute();
+ delete pDialog;
+ }
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.123 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.122 2000/05/26 07:21:34 os
+ old SW Basic API Slots removed
+
+ Revision 1.121 2000/04/18 15:02:51 os
+ UNICODE
+
+ Revision 1.120 1998/01/28 15:02:52 OM
+ #45138# Seitennummern-Dlg entfernt
+
+
+ Rev 1.119 28 Jan 1998 16:02:52 OM
+ #45138# Seitennummern-Dlg entfernt
+
+ Rev 1.118 21 Nov 1997 15:00:18 MA
+ includes
+
+ Rev 1.117 03 Nov 1997 13:58:30 MA
+ precomp entfernt
+
+ Rev 1.116 01 Sep 1997 13:14:12 OS
+ DLL-Umstellung
+
+ Rev 1.115 15 Aug 1997 11:48:02 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.114 11 Aug 1997 10:20:24 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.113 08 Aug 1997 17:26:16 OM
+ Headerfile-Umstellung
+
+ Rev 1.112 08 Aug 1997 14:48:30 HJS
+ includes
+
+ Rev 1.111 10 Apr 1997 15:30:20 OS
+ CHANGE_PAGENUM: nicht nur Offset vergleichen, sondern auch log. Seitennummer
+
+ Rev 1.110 07 Apr 1997 18:57:40 MH
+ chg: header
+
+ Rev 1.109 11 Dec 1996 10:58:18 MA
+ Warnings
+
+ Rev 1.108 29 Jul 1996 15:47:20 MA
+ includes
+
+ Rev 1.107 14 Dec 1995 17:25:04 OS
+ -ExecDocStatDlg
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uiview/viewdlg2.cxx b/sw/source/ui/uiview/viewdlg2.cxx
new file mode 100644
index 000000000000..b986e894351c
--- /dev/null
+++ b/sw/source/ui/uiview/viewdlg2.cxx
@@ -0,0 +1,403 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewdlg2.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX //autogen
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#ifndef _FLDMGR_HXX //autogen
+#include <fldmgr.hxx>
+#endif
+#ifndef _EXPFLD_HXX //autogen
+#include <expfld.hxx>
+#endif
+
+#ifndef _MODOPT_HXX //autogen
+#include <modcfg.hxx>
+#endif
+
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wview.hxx"
+#include "wrtsh.hxx"
+#include "cmdid.h"
+#include "cption.hxx"
+#include "caption.hxx"
+#include "insfnote.hxx"
+#include "poolfmt.hxx"
+#include "edtwin.hxx"
+
+#include "view.hrc"
+
+extern String* pOldGrfCat;
+extern String* pOldTabCat;
+extern String* pOldFrmCat;
+extern String* pOldDrwCat;
+
+/* -----------------06.11.98 13:45-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwView::ExecDlgExt(SfxRequest &rReq)
+{
+ Window *pMDI = &GetViewFrame()->GetWindow();
+ ModalDialog *pDialog = 0;
+ const SfxItemSet* pOutSet = 0;
+
+ switch ( rReq.GetSlot() )
+ {
+ case FN_INSERT_CAPTION:
+ {
+ pDialog = new SwCaptionDialog( pMDI, *this );
+ break;
+ }
+ case FN_EDIT_FOOTNOTE:
+ {
+ pDialog = new SwInsFootNoteDlg( pMDI, *pWrtShell, TRUE );
+ pDialog->SetHelpId(FN_EDIT_FOOTNOTE);
+ pDialog->SetText( SW_RESSTR(STR_EDIT_FOOTNOTE) );
+ break;
+ }
+ }
+ if ( pDialog )
+ {
+ pDialog->Execute();
+ delete pDialog;
+ }
+}
+
+/* -----------------06.11.98 14:53-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwView::AutoCaption(const USHORT nType, const SvGlobalName *pOleId)
+{
+ SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
+
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ if (pModOpt->IsInsWithCaption(bWeb))
+ {
+ const InsCaptionOpt *pOpt = pModOpt->GetCapOption(bWeb, (SwCapObjType)nType, pOleId);
+ if (pOpt && pOpt->UseCaption() == TRUE)
+ InsertCaption(pOpt);
+ }
+}
+
+/* -----------------06.11.98 12:58-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwView::InsertCaption(const InsCaptionOpt *pOpt)
+{
+ if (!pOpt)
+ return;
+
+ const String &rName = pOpt->GetCategory();
+
+ // Existiert Pool-Vorlage gleichen Namens?
+ SwWrtShell &rSh = GetWrtShell();
+ USHORT nPoolId = rSh.GetPoolId(rName, GET_POOLID_TXTCOLL);
+ if( USHRT_MAX != nPoolId )
+ rSh.GetTxtCollFromPool(nPoolId);
+ // Pool-Vorlage existiert nicht: Existiert sie am Dokument?
+ else if( !rSh.GetParaStyle(rName) )
+ {
+ // Sie existiert auch nicht am Dokument: erzeugen
+ SwTxtFmtColl* pDerivedFrom = rSh.GetTxtCollFromPool(RES_POOLCOLL_LABEL);
+ rSh.MakeTxtFmtColl(rName, pDerivedFrom);
+ }
+
+ USHORT eType = (SwWrtShell::SelectionType)rSh.GetSelectionType();
+ if (eType & SwWrtShell::SEL_OLE)
+ eType = SwWrtShell::SEL_GRF;
+
+ // SwLabelType
+ const USHORT eT = eType & SwWrtShell::SEL_TBL ? LTYPE_TABLE :
+ eType & SwWrtShell::SEL_FRM ? LTYPE_FLY :
+ eType == SwWrtShell::SEL_TXT ? LTYPE_FLY :
+ eType & SwWrtShell::SEL_DRW ? LTYPE_DRAW :
+ LTYPE_OBJECT;
+
+ SwFldMgr aMgr(&rSh);
+ SwSetExpFieldType* pFldType =
+ (SwSetExpFieldType*)aMgr.GetFldType(RES_SETEXPFLD, rName);
+ if (!pFldType)
+ {
+ // Neuen Feldtypen erzeugen
+ SwSetExpFieldType aSwSetExpFieldType(rSh.GetDoc(), rName, GSE_SEQ);
+ aMgr.InsertFldType(aSwSetExpFieldType);
+ pFldType = (SwSetExpFieldType*)aMgr.GetFldType(RES_SETEXPFLD, rName);
+ }
+
+ if (!pOpt->IgnoreSeqOpts())
+ {
+ if (pFldType)
+ {
+ pFldType->SetDelimiter(pOpt->GetSeparator());
+ pFldType->SetOutlineLvl(pOpt->GetLevel());
+ }
+ }
+
+ USHORT nID = 0;
+ SwFieldType* pType = 0;
+ const USHORT nCount = aMgr.GetFldTypeCount();
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ pType = aMgr.GetFldType(USHRT_MAX, i);
+ String aTmpName( pType->GetName() );
+ if (aTmpName == rName && pType->Which() == RES_SETEXPFLD)
+ {
+ nID = i;
+ break;
+ }
+ }
+ rSh.StartAllAction();
+
+ GetWrtShell().InsertLabel( (SwLabelType)eT,
+ pOpt->GetCaption(),
+ !pOpt->GetPos(),
+ nID,
+ pOpt->CopyAttributes() );
+ // Nummernformat setzen
+ ((SwSetExpFieldType*)pType)->SetSeqFormat(pOpt->GetNumType());
+
+ rSh.UpdateExpFlds( TRUE );
+
+ rSh.EndAllAction();
+
+ if ( rSh.IsFrmSelected() )
+ {
+ GetEditWin().StopInsFrm();
+ rSh.EnterSelFrmMode();
+ }
+
+ // Kategorie merken
+ String** ppStr = 0;
+ if (eType & SwWrtShell::SEL_GRF)
+ ppStr = &pOldGrfCat;
+ else if( eType & SwWrtShell::SEL_TBL)
+ ppStr = &pOldTabCat;
+ else if( eType & SwWrtShell::SEL_FRM)
+ ppStr = &pOldFrmCat;
+ else if( eType == SwWrtShell::SEL_TXT)
+ ppStr = &pOldFrmCat;
+ else if( eType & SwWrtShell::SEL_DRW)
+ ppStr = &pOldDrwCat;
+
+ if( ppStr )
+ {
+ if( !*ppStr )
+ *ppStr = new String( rName );
+ else
+ **ppStr = rName;
+ }
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.56 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.55 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.54 1999/06/09 08:44:54 OS
+ #66732# Insert caption: copy border and shadow optionally
+
+
+ Rev 1.53 09 Jun 1999 10:44:54 OS
+ #66732# Insert caption: copy border and shadow optionally
+
+ Rev 1.52 17 Feb 1999 08:40:28 OS
+ #58158# Einfuegen TabPage auch in HTML-Docs
+
+ Rev 1.51 25 Jan 1999 14:10:32 HR
+ include editwin.hxx
+
+ Rev 1.50 21 Jan 1999 18:53:36 MA
+ #60697# die bloeden Stati pflegen
+
+ Rev 1.49 10 Dec 1998 09:47:16 MIB
+ #60060#: Beschriftungen fuer Zeichen-Objekte
+
+ Rev 1.48 06 Nov 1998 17:05:58 OM
+ #58158# Automatische Beschriftung
+
+ Rev 1.47 21 Nov 1997 15:00:18 MA
+ includes
+
+ Rev 1.46 03 Nov 1997 13:58:28 MA
+ precomp entfernt
+
+ Rev 1.45 07 Apr 1997 19:00:26 MH
+ chg: header
+
+ Rev 1.44 11 Nov 1996 11:10:50 MA
+ ResMgr
+
+ Rev 1.43 29 Jul 1996 15:47:16 MA
+ includes
+
+ Rev 1.42 23 Feb 1996 17:04:58 OM
+ OpenINetDlg entfernt
+
+ Rev 1.41 20 Feb 1996 10:08:20 OM
+ Methode fuer Internet-Open-Dlg
+
+ Rev 1.40 30 Nov 1995 15:16:04 OS
+ div. Slots verschoben
+
+ Rev 1.39 24 Nov 1995 16:58:00 OM
+ PCH->PRECOMPILED
+
+ Rev 1.38 08 Nov 1995 13:07:44 OS
+ Change => Set
+
+ Rev 1.37 06 Nov 1995 17:20:04 OS
+ kleinere Optimierung
+
+ Rev 1.36 31 Oct 1995 18:42:46 OM
+ GetFrameWindow entfernt
+
+ Rev 1.35 30 Oct 1995 18:51:18 OS
+ FN_POSTIT ueber Slot einfuegen
+
+ Rev 1.34 18 Sep 1995 18:30:08 OM
+ HelpIDs
+
+ Rev 1.33 24 Aug 1995 14:31:54 MA
+ swstddlg -> svxstandarddialog
+
+ Rev 1.32 21 Aug 1995 09:26:36 MA
+ chg: swstddlg -> svxstandarddialog, Optimierungen
+
+ Rev 1.31 23 Jun 1995 07:26:34 OS
+ FALSe gibt's nicht
+
+ Rev 1.30 22 Jun 1995 20:03:46 MA
+ fix/opt: FrmMgr mit Shell erzeugen.
+
+ Rev 1.29 09 Jun 1995 14:25:34 OM
+ Alten DB-Manager entfernt
+
+ Rev 1.28 05 Apr 1995 19:06:34 OS
+ Fix fuer Tabellen-und Rahmenhintergrund Bug 10891
+
+ Rev 1.27 04 Apr 1995 14:09:56 MA
+ Optimiert, includes gespart.
+
+ Rev 1.26 03 Apr 1995 19:41:52 OS
+ Titel fuer Edit-Footnote Fix 11252
+
+ Rev 1.25 28 Mar 1995 19:39:54 OM
+ Aufgeteilt auf viewdlg2 und 4
+
+ Rev 1.24 24 Mar 1995 20:17:22 PK
+ pkbla ist out
+
+ Rev 1.23 04 Mar 1995 14:08:04 MA
+ fix: GPF Umrandung fuer Tabelle.
+
+ Rev 1.22 02 Mar 1995 18:49:34 PK
+ pkbla-geraffel wieder uebersetzbar
+
+ Rev 1.21 01 Mar 1995 11:08:48 MA
+ weg: Sw-BoxItem, neu: KeepItem.
+
+ Rev 1.20 16 Feb 1995 19:33:58 PK
+ swborderdlg: einsatz von swflyfrmattrmgr
+
+ Rev 1.19 08 Feb 1995 18:39:38 PK
+ bla-geraffel mit #ifdef pkbla
+
+ Rev 1.18 08 Feb 1995 10:21:44 SWG
+ blaout kommentiert.
+
+ Rev 1.17 08 Feb 1995 10:18:18 SWG
+ blaout kommentiert.
+
+ Rev 1.16 07 Feb 1995 19:34:38 PK
+ umrandungen, bla-geraffel
+
+ Rev 1.14 26 Jan 1995 16:58:44 PK
+ gebrauch von get- und settabborders
+
+ Rev 1.13 24 Jan 1995 13:29:06 PK
+ Map entfernt
+
+ Rev 1.12 18 Jan 1995 13:22:58 MS
+ Precompiled hd
+
+ Rev 1.11 13 Jan 1995 12:17:06 MS
+ Aufteilung DBMgr
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uiview/viewdraw.cxx b/sw/source/ui/uiview/viewdraw.cxx
new file mode 100644
index 000000000000..71dc4cb13c33
--- /dev/null
+++ b/sw/source/ui/uiview/viewdraw.cxx
@@ -0,0 +1,809 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewdraw.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _AEITEM_HXX //autogen
+#include <svtools/aeitem.hxx>
+#endif
+#ifndef _SFXITEMPOOL_HXX //autogen
+#include <svtools/itempool.hxx>
+#endif
+#ifndef _SVDOBJ_HXX //autogen
+#include <svx/svdobj.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDPAGE_HXX //autogen
+#include <svx/svdpage.hxx>
+#endif
+#ifndef _OUTLINER_HXX //autogen
+#include <svx/outliner.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+
+
+#ifndef _EEITEM_HXX //autogen
+#include <svx/eeitem.hxx>
+#endif
+#ifndef _SVDOTEXT_HXX //autogen
+#include <svx/svdotext.hxx>
+#endif
+#ifndef _SVDETC_HXX
+#include <svx/svdetc.hxx>
+#endif
+#ifndef _EDITSTAT_HXX //autogen
+#include <svx/editstat.hxx>
+#endif
+#ifndef _IDETEMP_HXX
+#include <basctl/idetemp.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SVX_FMGLOB_HXX //autogen
+#include <svx/fmglob.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVDOUTL_HXX
+#include <svx/svdoutl.hxx>
+#endif
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "viewopt.hxx"
+#include "cmdid.h"
+#include "drawsh.hxx"
+#include "drwbassh.hxx"
+#include "beziersh.hxx"
+#include "conrect.hxx"
+#include "conctrl.hxx"
+#include "conpoly.hxx"
+#include "conarc.hxx"
+#include "conform.hxx"
+#include "dselect.hxx"
+#include "edtwin.hxx"
+
+using namespace ::com::sun::star;
+/*--------------------------------------------------------------------
+ Beschreibung: Drawing-Ids ausfuehren
+ --------------------------------------------------------------------*/
+
+
+
+void SwView::ExecDraw(SfxRequest& rReq)
+{
+ const SfxItemSet *pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem;
+ const SfxAllEnumItem* pEItem = 0;
+ SdrView *pSdrView = pWrtShell->GetDrawView();
+ sal_Bool bDeselect = sal_False;
+
+ sal_uInt16 nSlotId = rReq.GetSlot();
+ if(pArgs && SFX_ITEM_SET == pArgs->GetItemState(GetPool().GetWhich(nSlotId), sal_False, &pItem))
+ {
+ pEItem = (const SfxAllEnumItem*)pItem;
+ }
+
+ if (nSlotId == SID_INSERT_DRAW && pEItem)
+ {
+ static sal_uInt16 __READONLY_DATA aSlotTable[] =
+ {
+ SID_OBJECT_SELECT,
+ SID_DRAW_LINE,
+ SID_DRAW_RECT,
+ SID_DRAW_ELLIPSE,
+ SID_DRAW_POLYGON_NOFILL,
+ SID_DRAW_BEZIER_NOFILL,
+ SID_DRAW_FREELINE_NOFILL,
+ SID_DRAW_ARC,
+ SID_DRAW_PIE,
+ SID_DRAW_CIRCLECUT,
+ SID_DRAW_TEXT,
+ SID_DRAW_TEXT_MARQUEE,
+ SID_DRAW_CAPTION
+ };
+
+ nSlotId = aSlotTable[pEItem->GetValue()];
+ }
+
+ if (nSlotId == SID_OBJECT_SELECT && nFormSfxId == nSlotId)
+ {
+ bDeselect = sal_True;
+ }
+ else if (nSlotId == SID_FM_CREATE_CONTROL)
+ {
+ SFX_REQUEST_ARG( rReq, pIdentifierItem, SfxUInt16Item, SID_FM_CONTROL_IDENTIFIER, sal_False );
+ if( pIdentifierItem )
+ {
+ sal_uInt16 nNewId = pIdentifierItem->GetValue();
+ if (nNewId == nFormSfxId)
+ {
+ bDeselect = sal_True;
+ GetViewFrame()->GetDispatcher()->Execute(SID_FM_LEAVE_CREATE); // Button soll rauspoppen
+ }
+ }
+ }
+
+ if (nSlotId == nDrawSfxId || bDeselect)
+ {
+ if (GetDrawFuncPtr())
+ {
+ GetDrawFuncPtr()->Deactivate();
+ SetDrawFuncPtr(NULL);
+ }
+
+ if (pWrtShell->IsObjSelected() && !pWrtShell->IsSelFrmMode())
+ pWrtShell->EnterSelFrmMode(NULL);
+ LeaveDrawCreate();
+
+ GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+
+ AttrChangedNotify(pWrtShell);
+ return;
+ }
+
+ LeaveDrawCreate();
+
+ if (pWrtShell->IsFrmSelected())
+ pWrtShell->EnterStdMode(); // wegen Bug #45639
+
+ SwDrawBase* pFuncPtr = NULL;
+
+ switch (nSlotId)
+ {
+ case SID_OBJECT_SELECT:
+ case SID_DRAW_SELECT:
+ pFuncPtr = new DrawSelection(pWrtShell, pEditWin, this);
+ nDrawSfxId = nFormSfxId = SID_OBJECT_SELECT;
+ break;
+
+ case SID_DRAW_LINE:
+ case SID_DRAW_RECT:
+ case SID_DRAW_ELLIPSE:
+ case SID_DRAW_TEXT:
+ case SID_DRAW_TEXT_MARQUEE:
+ case SID_DRAW_CAPTION:
+ pFuncPtr = new ConstRectangle(pWrtShell, pEditWin, this);
+ nDrawSfxId = nSlotId;
+ break;
+
+ case SID_DRAW_POLYGON_NOFILL:
+ case SID_DRAW_BEZIER_NOFILL:
+ case SID_DRAW_FREELINE_NOFILL:
+ pFuncPtr = new ConstPolygon(pWrtShell, pEditWin, this);
+ nDrawSfxId = nSlotId;
+ break;
+
+ case SID_DRAW_ARC:
+ case SID_DRAW_PIE:
+ case SID_DRAW_CIRCLECUT:
+ pFuncPtr = new ConstArc(pWrtShell, pEditWin, this);
+ nDrawSfxId = nSlotId;
+ break;
+
+ case SID_FM_CREATE_CONTROL:
+ {
+ SFX_REQUEST_ARG( rReq, pIdentifierItem, SfxUInt16Item, SID_FM_CONTROL_IDENTIFIER, sal_False );
+ if( pIdentifierItem )
+ nSlotId = pIdentifierItem->GetValue();
+ pFuncPtr = new ConstFormControl(pWrtShell, pEditWin, this);
+ nFormSfxId = nSlotId;
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ static sal_uInt16 __READONLY_DATA aInval[] =
+ {
+ // Slot-Ids muessen beim Aufruf von Invalidate sortiert sein!
+ SID_ATTRIBUTES_AREA,
+ SID_INSERT_DRAW,
+ 0
+ };
+ GetViewFrame()->GetBindings().Invalidate(aInval);
+
+ if (pFuncPtr)
+ {
+ if (GetDrawFuncPtr())
+ {
+ GetDrawFuncPtr()->Deactivate();
+ SetDrawFuncPtr(NULL);
+ }
+
+ SetDrawFuncPtr(pFuncPtr);
+ AttrChangedNotify(pWrtShell);
+
+ pFuncPtr->Activate(nSlotId);
+ NoRotate();
+ }
+ else
+ {
+ if (pWrtShell->IsObjSelected() && !pWrtShell->IsSelFrmMode())
+ pWrtShell->EnterSelFrmMode(NULL);
+ }
+
+ if (pSdrView && pSdrView->IsTextEdit())
+ pSdrView->EndTextEdit( sal_True );
+
+ AttrChangedNotify(pWrtShell);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Drawing beenden
+ --------------------------------------------------------------------*/
+
+
+
+void SwView::ExitDraw()
+{
+ NoRotate();
+
+ if (pShell && !pShell->ISA(SwDrawBaseShell) && !pShell->ISA(SwBezierShell))
+ {
+ SdrView *pSdrView = pWrtShell->GetDrawView();
+
+ if (pSdrView && pSdrView->IsGroupEntered())
+ {
+ pSdrView->LeaveOneGroup();
+ pSdrView->UnmarkAll();
+ GetViewFrame()->GetBindings().Invalidate(SID_ENTER_GROUP);
+ }
+
+ if (GetDrawFuncPtr())
+ {
+ if (pWrtShell->IsSelFrmMode())
+ pWrtShell->LeaveSelFrmMode();
+ GetDrawFuncPtr()->Deactivate();
+
+ SetDrawFuncPtr(NULL);
+ LeaveDrawCreate();
+
+ GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
+ }
+ GetEditWin().SetPointer(Pointer(POINTER_TEXT));
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Rotate-Mode abschalten
+ --------------------------------------------------------------------*/
+
+
+
+void SwView::NoRotate()
+{
+ if (IsDrawRotate())
+ {
+ pWrtShell->SetDragMode(SDRDRAG_MOVE);
+ FlipDrawRotate();
+
+ const SfxBoolItem aTmp( SID_OBJECT_ROTATE, sal_False );
+ GetViewFrame()->GetBindings().SetState( aTmp );
+ }
+}
+
+/******************************************************************************
+ * Beschreibung: DrawTextEditMode einschalten
+ ******************************************************************************/
+
+
+
+sal_Bool SwView::EnterDrawTextMode(const Point& aDocPos)
+{
+ SdrObject* pObj;
+ SdrPageView* pPV;
+ SwWrtShell *pSh = &GetWrtShell();
+ SdrView *pSdrView = pSh->GetDrawView();
+ ASSERT( pSdrView, "EnterDrawTextMode without DrawView?" );
+
+ sal_Bool bReturn = sal_False;
+
+ sal_uInt16 nOld = pSdrView->GetHitTolerancePixel();
+ pSdrView->SetHitTolerancePixel( 2 );
+
+ if( pSdrView->IsMarkedHit( aDocPos ) &&
+ !pSdrView->HitHandle( aDocPos, *pSh->GetOut() ) && IsTextTool() &&
+ pSdrView->PickObj( aDocPos, pObj, pPV, SDRSEARCH_PICKTEXTEDIT ) &&
+ pObj->ISA( SdrTextObj ) &&
+ !pWrtShell->IsSelObjProtected(FLYPROTECT_CONTENT))
+ bReturn = BeginTextEdit(pObj, pPV, pEditWin, sal_True);
+
+ pSdrView->SetHitTolerancePixel( nOld );
+
+ return bReturn;
+}
+
+/******************************************************************************
+ * Beschreibung: DrawTextEditMode einschalten
+ ******************************************************************************/
+
+
+
+sal_Bool SwView::BeginTextEdit(SdrObject* pObj, SdrPageView* pPV, Window* pWin, sal_Bool bIsNewObj)
+{
+ SwWrtShell *pSh = &GetWrtShell();
+ SdrView *pSdrView = pSh->GetDrawView();
+ SdrOutliner* pOutliner = ::SdrMakeOutliner(0, pSdrView->GetModel());
+ uno::Reference< linguistic::XSpellChecker1 > xSpell( ::GetSpellChecker() );
+ if (pOutliner)
+ {
+ SwWrtShell *pSh = &GetWrtShell();
+ pOutliner->SetRefDevice(pSh->GetPrt());
+ pOutliner->SetSpeller(xSpell);
+ pOutliner->SetHyphenator( ::GetHyphenator() );
+ pSh->SetCalcFieldValueHdl(pOutliner);
+
+ sal_uInt32 nCntrl = pOutliner->GetControlWord();
+ nCntrl |= EE_CNTRL_ALLOWBIGOBJS;
+ nCntrl |= EE_CNTRL_URLSFXEXECUTE;
+
+ const SwViewOption *pOpt = pSh->GetViewOptions();
+
+ if (pOpt->IsField())
+ nCntrl |= EE_CNTRL_MARKFIELDS;
+ else
+ nCntrl &= ~EE_CNTRL_MARKFIELDS;
+
+ if (pOpt->IsHideSpell())
+ nCntrl |= EE_CNTRL_NOREDLINES;
+ else
+ nCntrl &= ~EE_CNTRL_NOREDLINES;
+
+ if (pOpt->IsOnlineSpell())
+ nCntrl |= EE_CNTRL_ONLINESPELLING;
+ else
+ nCntrl &= ~EE_CNTRL_ONLINESPELLING;
+
+ pOutliner->SetControlWord(nCntrl);
+ const SfxPoolItem& rItem = pSh->GetDoc()->GetDefault(RES_CHRATR_LANGUAGE);
+ pOutliner->SetDefaultLanguage(((const SvxLanguageItem&)rItem).GetLanguage());
+ }
+ sal_Bool bRet = pSdrView->BegTextEdit( pObj, pPV, pWin, bIsNewObj, pOutliner);
+
+ return bRet;
+}
+
+/******************************************************************************
+ * Beschreibung: Ist ein DrawTextObjekt selektiert?
+ ******************************************************************************/
+
+
+
+sal_Bool SwView::IsTextTool() const
+{
+ sal_uInt16 nId;
+ sal_uInt32 nInvent;
+ SdrView *pSdrView = GetWrtShell().GetDrawView();
+ ASSERT( pSdrView, "IsTextTool without DrawView?" );
+
+ if (pSdrView->IsCreateMode())
+ pSdrView->SetCreateMode(sal_False);
+
+ pSdrView->TakeCurrentObj(nId,nInvent);
+ return (nInvent==SdrInventor);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SdrView* SwView::GetDrawView() const
+{
+ return GetWrtShell().GetDrawView();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+sal_Bool SwView::IsBezierEditMode()
+{
+ return (!IsDrawSelMode() && GetWrtShell().GetDrawView()->HasMarkablePoints());
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwView::IsFormMode() const
+{
+ if (GetDrawFuncPtr() && GetDrawFuncPtr()->IsCreateObj())
+ {
+ if (GetDrawFuncPtr()->IsInsertForm())
+ return sal_True;
+ else
+ return sal_False;
+ }
+
+ return AreOnlyFormsSelected();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwView::SetDrawFuncPtr(SwDrawBase* pFuncPtr)
+{
+ if (pDrawActual)
+ delete pDrawActual;
+ pDrawActual = pFuncPtr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwView::SetSelDrawSlot()
+{
+ nDrawSfxId = SID_OBJECT_SELECT;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwView::AreOnlyFormsSelected() const
+{
+ if ( GetWrtShell().IsFrmSelected() )
+ return sal_False;
+
+ sal_Bool bForm = sal_True;
+
+ SdrView* pSdrView = GetWrtShell().GetDrawView();
+
+ const SdrMarkList& rMarkList = pSdrView->GetMarkList();
+ sal_uInt32 nCount = rMarkList.GetMarkCount();
+
+ if (nCount)
+ {
+ for (sal_uInt32 i = 0; i < nCount; i++)
+ {
+ // Sind ausser Controls noch normale Draw-Objekte selektiert?
+ SdrObject *pSdrObj = rMarkList.GetMark(i)->GetObj();
+
+ if (!HasOnlyObj(pSdrObj, FmFormInventor))
+ {
+ bForm = sal_False;
+ break;
+ }
+ }
+ }
+ else
+ bForm = sal_False;
+
+ return bForm;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwView::HasDrwObj(SdrObject *pSdrObj) const
+{
+ sal_Bool bRet = sal_False;
+
+ if (pSdrObj->IsGroupObject())
+ {
+ SdrObjList* pList = pSdrObj->GetSubList();
+ sal_uInt32 nCnt = pList->GetObjCount();
+
+ for (sal_uInt32 i = 0; i < nCnt; i++)
+ if ((bRet = HasDrwObj(pList->GetObj(i))) == sal_True)
+ break;
+ }
+ else if (SdrInventor == pSdrObj->GetObjInventor() || pSdrObj->Is3DObj())
+ return sal_True;
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwView::HasOnlyObj(SdrObject *pSdrObj, sal_uInt32 eObjInventor) const
+{
+ sal_Bool bRet = sal_False;
+
+ if (pSdrObj->IsGroupObject())
+ {
+ SdrObjList* pList = pSdrObj->GetSubList();
+ sal_uInt32 nCnt = pList->GetObjCount();
+
+ for (sal_uInt32 i = 0; i < nCnt; i++)
+ if ((bRet = HasOnlyObj(pList->GetObj(i), eObjInventor)) == sal_False)
+ break;
+ }
+ else if (eObjInventor == pSdrObj->GetObjInventor())
+ return sal_True;
+
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+sal_Bool SwView::ExecDrwTxtSpellPopup(const Point& rPt)
+{
+ sal_Bool bRet = sal_False;
+ SdrView *pSdrView = pWrtShell->GetDrawView();
+ OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
+ Point aPos( GetEditWin().LogicToPixel( rPt ) );
+
+ if (pOLV->IsWrongSpelledWordAtPos( aPos ))
+ {
+ bRet = sal_True;
+ pOLV->ExecuteSpellPopup( aPos );
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+sal_Bool SwView::IsDrawTextHyphenate()
+{
+ SdrView *pSdrView = pWrtShell->GetDrawView();
+ sal_Bool bHyphenate = sal_False;
+
+ SfxItemSet aNewAttr( pSdrView->GetModel()->GetItemPool(),
+ EE_PARA_HYPHENATE, EE_PARA_HYPHENATE );
+ if( pSdrView->GetAttributes( aNewAttr ) &&
+ aNewAttr.GetItemState( EE_PARA_HYPHENATE ) >= SFX_ITEM_AVAILABLE )
+ bHyphenate = ((const SfxBoolItem&)aNewAttr.Get( EE_PARA_HYPHENATE )).
+ GetValue();
+
+ return bHyphenate;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+void SwView::HyphenateDrawText()
+{
+ SdrView *pSdrView = pWrtShell->GetDrawView();
+ sal_Bool bHyphenate = IsDrawTextHyphenate();
+
+ SfxItemSet aSet( GetPool(), EE_PARA_HYPHENATE, EE_PARA_HYPHENATE );
+ aSet.Put( SfxBoolItem( EE_PARA_HYPHENATE, !bHyphenate ) );
+ pSdrView->SetAttributes( aSet );
+ GetViewFrame()->GetBindings().Invalidate(FN_HYPHENATE_OPT_DLG);
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.111 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.110 2000/09/07 15:59:33 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.109 2000/09/04 11:45:19 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.108 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.107 2000/05/11 12:44:32 tl
+ if[n]def ONE_LINGU entfernt
+
+ Revision 1.106 2000/03/23 08:43:33 os
+ UNO III
+
+ Revision 1.105 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.104 2000/02/16 21:00:40 tl
+ #72219# Locale Umstellung
+
+ Revision 1.103 2000/02/09 13:36:38 os
+ #72716# Set Outliner language earlier
+
+ Revision 1.102 2000/01/18 16:54:02 os
+ #71416# #71428# online spelling and hyphenation in drawing objects
+
+ Revision 1.101 2000/01/18 11:19:15 os
+ #72016# LeaveOneGroup selects the group after leaving - call UnmarkAll
+
+ Revision 1.100 1999/11/19 16:40:24 os
+ modules renamed
+
+ Revision 1.99 1999/10/25 19:13:57 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.98 1999/08/31 08:40:04 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.97 31 Aug 1999 10:40:04 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.96 04 Aug 1999 11:03:04 JP
+ have to change: Outliner -> SdrOutlines
+
+ Rev 1.95 21 Jun 1999 15:47:54 JP
+ Interface changes: SdrView::GetAttributes
+
+ Rev 1.94 18 Nov 1998 15:06:44 OM
+ #59280# FormController Create Modes verlassen
+
+ Rev 1.93 06 Jul 1998 16:09:26 OM
+ #52065# Gruppe verlassen bei Beendigung der DrawShell
+
+ Rev 1.92 12 Jun 1998 13:34:46 OM
+ Wieder SID_OBJECT_SELECT statt SID_DRAW_SELECT
+
+ Rev 1.91 09 Jun 1998 15:32:26 OM
+ VC-Controls entfernt
+
+ Rev 1.90 15 Apr 1998 15:33:20 OM
+ #49467 Objekte innerhalb von geschuetzten Rahmen duerfen nicht veraendert werden
+
+ Rev 1.89 08 Apr 1998 12:25:50 OM
+ #45639 Bei selektiertem Rahmen keine Drawshell melden
+
+ Rev 1.88 12 Mar 1998 10:04:16 OM
+ Forms korrekt erkennen
+
+ Rev 1.87 11 Mar 1998 17:38:32 OM
+ DB-FormShell
+
+ Rev 1.86 11 Mar 1998 17:01:54 OM
+ DB-FormShell
+
+ Rev 1.85 10 Mar 1998 14:17:58 OM
+ Konstruktionsmodul fuer Forms
+
+ Rev 1.84 29 Nov 1997 16:48:32 MA
+ includes
+
+ Rev 1.83 21 Nov 1997 15:00:18 MA
+ includes
+
+ Rev 1.82 03 Nov 1997 13:58:32 MA
+ precomp entfernt
+
+ Rev 1.81 04 Sep 1997 17:14:42 MA
+ includes
+
+ Rev 1.80 15 Aug 1997 15:27:32 OM
+ Draw- und Controlslots Bereichsumstellung
+
+ Rev 1.79 15 Aug 1997 14:45:36 OM
+ Draw- und Controlslots Bereichsumstellung
+
+ Rev 1.78 13 Aug 1997 12:18:36 OM
+ #42383# Selektion von Punkten im Konstruktionsmode
+
+ Rev 1.77 12 Aug 1997 13:32:40 OM
+ GPF beim Beenden gefixt
+
+ Rev 1.76 23 Jul 1997 21:42:32 HJS
+ includes
+
+ Rev 1.75 09 Jul 1997 18:31:56 MA
+ ein paar SS const
+
+ Rev 1.74 08 Jul 1997 12:07:42 OM
+ Draw-Selektionsmodi aufgeraeumt
+
+ Rev 1.73 25 Jun 1997 13:35:28 OM
+ #40966# DrawBaseShell-Ptr wieder eingefuehrt
+
+ Rev 1.72 17 Jun 1997 15:45:28 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/uiview/viewfunc.hxx b/sw/source/ui/uiview/viewfunc.hxx
new file mode 100644
index 000000000000..e706fbb57d78
--- /dev/null
+++ b/sw/source/ui/uiview/viewfunc.hxx
@@ -0,0 +1,107 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewfunc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _VIEWFUNC_HXX
+#define _VIEWFUNC_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+class ImageButton;
+class Point;
+class PrintDialog;
+class SfxItemSet;
+class SfxPrinter;
+class SfxTabPage;
+class Size;
+class SvxRuler;
+class SwPrtOptions;
+class SwScrollbar;
+class ViewShell;
+class Window;
+class SwWrtShell;
+
+// folgende Funktionen stehen im viewprt.cxx
+void MakeOptions( PrintDialog*, SwPrtOptions&, BOOL* pFlag, BOOL bWeb, SfxPrinter* pPrt = 0 );
+PrintDialog* CreatePrintDialog( Window* , USHORT, SwWrtShell* );
+void SetPrinter( SfxPrinter*, BOOL bWeb );
+SfxTabPage* CreatePrintOptionsPage( Window*, const SfxItemSet& );
+void SetAppPrintOptions( ViewShell* pSh, BOOL bWeb );
+
+// folgende Funktionen stehen im viewport.cxx
+void ViewResizePixel( const Window &rRef,
+ const Point &rOfst,
+ const Size &rSize,
+ const Size &rEditSz,
+ const BOOL bInner,
+ SwScrollbar* pVScrollbar,
+ SwScrollbar* pHScrollbar,
+ ImageButton* pPageUpBtn,
+ ImageButton* pPageDownBtn,
+ ImageButton* pNaviBtn,
+ Window* pScrollBarBox,
+ SvxRuler* pVLineal = 0,
+ SvxRuler* pHLineal = 0,
+ BOOL bIgnoreVisibility = FALSE,
+ BOOL bWebView = FALSE );
+
+
+#endif
diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx
new file mode 100644
index 000000000000..caf2a45622b0
--- /dev/null
+++ b/sw/source/ui/uiview/viewling.cxx
@@ -0,0 +1,841 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewling.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+#include "uiparam.hxx" // fuer ITEMID_SPELLCHECK (muss _vor_ sfxdlg.hxx!)
+
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_LINGUISTIC_XTHESAURUS_HPP_
+#include <com/sun/star/linguistic/XThesaurus.hpp>
+#endif
+#ifndef _LINGU_LNGPROPS_HHX_
+#include <lingu/lngprops.hxx>
+#endif
+#ifndef _OFF_APP_HXX
+#include <offmgr/app.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+
+
+#ifndef _SVX_THESDLG_HXX //autogen
+#include <svx/thesdlg.hxx>
+#endif
+#ifndef _INTN_HXX //autogen
+#include <tools/intn.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef NOOLDSV //autogen
+#include <vcl/system.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _EHDL_HXX //autogen
+#include <svtools/ehdl.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_DLGUTIL_HXX
+#include <svx/dlgutil.hxx>
+#endif
+#ifndef _SVX_DIALMGR_HXX //autogen
+#include <svx/dialmgr.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVXERR_HXX
+#include <svx/svxerr.hxx>
+#endif
+
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#include "initui.hxx" // fuer SpellPointer
+#include "finder.hxx" // Pathes fuer Lingu
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "basesh.hxx"
+#include "docsh.hxx" // CheckSpellChanges
+#include "viewopt.hxx" // Viewoptions
+#include "swundo.hxx" // fuer Undo-Ids
+#include "cmdid.h"
+#include "globals.hrc"
+#include "comcore.hrc" // STR_MULT_INTERACT_SPELL_WARN
+#include "splwrp.hxx" // "
+#include "hyp.hxx" // Trennung
+#include "olmenu.hxx" // PopupMenu fuer OnlineSpelling
+#include "pam.hxx" // Spelling: Multiselektion
+#include "edtwin.hxx"
+
+#include "view.hrc"
+
+using namespace ::com::sun::star;
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+/*--------------------------------------------------------------------
+ Beschreibung: Lingu-Dispatcher
+ --------------------------------------------------------------------*/
+
+
+void SwView::ExecLingu(SfxRequest &rReq)
+{
+ switch(rReq.GetSlot())
+ {
+ case FN_THESAURUS_DLG:
+ StartThesaurus();
+ break;
+ case FN_SPELLING_DLG:
+ SpellDocument( NULL, sal_False );
+ break;
+ case FN_ADD_UNKNOWN:
+ {
+ SpellDocument( NULL, sal_True );
+ }
+ break;
+ case FN_HYPHENATE_OPT_DLG:
+ HyphenateDocument();
+ break;
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: SpellCheck starten
+ --------------------------------------------------------------------*/
+
+
+void SwView::SpellDocument( const String* pStr, sal_Bool bAllRight )
+{
+ // do not spell if interactive spelling is active elsewhere
+ if (GetWrtShell().HasSpellIter())
+ {
+ MessBox( 0, WB_OK, String( SW_RES( STR_SPELL_TITLE ) ),
+ String( SW_RES( STR_MULT_INTERACT_SPELL_WARN ) ) ).Execute();
+ return;
+ }
+
+ SfxErrorContext aContext( ERRCTX_SVX_LINGU_SPELLING, aEmptyStr, pEditWin,
+ RID_SVXERRCTX, DIALOG_MGR() );
+
+ uno::Reference< linguistic::XSpellChecker1 > xSpell = ::GetSpellChecker();
+ if(!xSpell.is())
+ { // keine Arme keine Kekse
+ ErrorHandler::HandleError( ERRCODE_SVX_LINGU_LINGUNOTEXISTS );
+ return;
+ }
+ SpellKontext(sal_True);
+
+ SwViewOption* pVOpt = (SwViewOption*)pWrtShell->GetViewOptions();
+ sal_Bool bOldIdle = pVOpt->IsIdle();
+ pVOpt->SetIdle( sal_False );
+
+ sal_Bool bOldIns = pWrtShell->IsInsMode();
+ pWrtShell->SetInsMode( sal_True );
+
+ // den eigentlichen Inhalt pruefen
+ _SpellDocument( pStr, bAllRight );
+
+ pWrtShell->SetInsMode( bOldIns );
+
+ SpellKontext(sal_False);
+
+ // Ignorieren und ersetzen nur fuer einen Durchgang
+ // im Zuge des OnlineSpellings wollen wir die IgnoreList beibehalten
+ if (SvxGetChangeAllList().is())
+ SvxGetChangeAllList()->clear();
+ SvxSaveDictionaries( SvxGetDictionaryList() );
+
+ pVOpt->SetIdle( bOldIdle );
+ //SW_MOD()->CheckSpellChanges( sal_False, );
+
+ // SpellCache loeschen, Speicher freigeben.
+ // wg. Absturz in W95 verzichten wir auf die Freigabe...
+// pSpell->FlushAllLanguages();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Interne SpellFunktion
+ --------------------------------------------------------------------*/
+
+
+void SwView::_SpellDocument( const String* pStr, sal_Bool bAllRight )
+{
+ sal_Bool bSelection = ((SwCrsrShell*)pWrtShell)->HasSelection() ||
+ pWrtShell->GetCrsr() != pWrtShell->GetCrsr()->GetNext();
+
+ uno::Reference< linguistic::XSpellChecker1 > xSpell = ::GetSpellChecker();
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+ sal_Bool bIsWrapReverse = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_WRAP_REVERSE) ).getValue() : sal_False;
+ sal_Bool bIsSpellSpecial = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_SPELL_SPECIAL) ).getValue() : sal_True;
+
+ sal_Bool bStart = bSelection || ( bIsWrapReverse ?
+ pWrtShell->IsEndOfDoc() : pWrtShell->IsStartOfDoc() );
+ sal_Bool bOther = !bSelection && !(pWrtShell->GetFrmType(0,sal_True) & FRMTYPE_BODY);
+
+ if( bOther && !bIsSpellSpecial )
+ // kein Sonderbereich eingeschaltet
+ {
+ // Ich will auch in Sonderbereichen trennen
+ QueryBox aBox( &GetEditWin(), SW_RES( DLG_SPECIAL_FORCED ) );
+ if( aBox.Execute() == RET_YES && xProp.is())
+ {
+ sal_Bool bTrue = sal_True;
+ uno::Any aTmp(&bTrue, ::getBooleanCppuType());
+ xProp->setPropertyValue( C2U(UPN_IS_SPELL_SPECIAL), aTmp );
+ }
+ else
+ return; // Nein Es wird nicht gespellt
+ }
+ if( bAllRight )
+ {
+// nothing to be
+// pSpell->SetAllRight( bAllRight );
+// pSpell->NewDic( pStr ? *pStr : (const String&) aEmptyStr, LANGUAGE_NOLANGUAGE, sal_False );
+ }
+ {
+ SvxDicListChgClamp aClamp( SvxGetDictionaryList() );
+ SwSpellWrapper aWrap( this, xSpell, bStart, bAllRight,
+ bOther, bSelection );
+ aWrap.SpellDocument();
+ }
+// pSpell->SetAllRight( sal_False );
+
+}
+
+
+void SwView::SpellStart( SvxSpellArea eWhich, sal_Bool bStartDone, sal_Bool bEndDone )
+{
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+ sal_Bool bIsWrapReverse = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_WRAP_REVERSE) ).getValue() : sal_False;
+
+ SwDocPositions eStart = DOCPOS_START;
+ SwDocPositions eEnde = DOCPOS_END;
+ SwDocPositions eCurr = DOCPOS_CURR;
+ switch ( eWhich )
+ {
+ case SVX_SPELL_BODY:
+ if( bIsWrapReverse )
+ eCurr = DOCPOS_END;
+ else
+ eCurr = DOCPOS_START;
+ break;
+ case SVX_SPELL_BODY_END:
+ if( bIsWrapReverse )
+ {
+ if( bStartDone )
+ eStart = DOCPOS_CURR;
+ eCurr = DOCPOS_END;
+ }
+ else if( bStartDone )
+ eCurr = DOCPOS_START;
+ break;
+ case SVX_SPELL_BODY_START:
+ if( !bIsWrapReverse )
+ {
+ if( bEndDone )
+ eEnde = DOCPOS_CURR;
+ eCurr = DOCPOS_START;
+ }
+ else if( bEndDone )
+ eCurr = DOCPOS_END;
+ break;
+ case SVX_SPELL_OTHER:
+ if( bIsWrapReverse )
+ {
+ eStart = DOCPOS_OTHERSTART;
+ eEnde = DOCPOS_OTHEREND;
+ eCurr = DOCPOS_OTHEREND;
+ }
+ else
+ {
+ eStart = DOCPOS_OTHERSTART;
+ eEnde = DOCPOS_OTHEREND;
+ eCurr = DOCPOS_OTHERSTART;
+ }
+ break;
+ default:
+ ASSERT( !this, "SpellStart with unknown Area" );
+ }
+ pWrtShell->SpellStart( eStart, eEnde, eCurr );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Fehlermeldung beim Spelling
+ --------------------------------------------------------------------*/
+
+
+// Der uebergebene Pointer nLang ist selbst der Wert
+IMPL_LINK( SwView, SpellError, void *, nLang )
+{
+#ifdef DEBUG
+ sal_Bool bFocus = GetEditWin().HasFocus();
+#endif
+ sal_uInt16 nPend = 0;
+
+ if ( pWrtShell->ActionPend() )
+ {
+ pWrtShell->Push();
+ pWrtShell->ClearMark();
+ do
+ {
+ pWrtShell->EndAction();
+ ++nPend;
+ }
+ while( pWrtShell->ActionPend() );
+ }
+ LanguageType eLang = (LanguageType)(sal_uInt32)nLang;
+ String aErr(::GetLanguageString( eLang ) );
+
+ SwEditWin &rEditWin = GetEditWin();
+#ifdef DEBUG
+ bFocus = rEditWin.HasFocus();
+#endif
+ sal_uInt16 nWaitCnt = 0;
+ while( rEditWin.IsWait() )
+ {
+ rEditWin.LeaveWait();
+ ++nWaitCnt;
+ }
+ if ( LANGUAGE_NONE == eLang )
+ ErrorHandler::HandleError( ERRCODE_SVX_LINGU_NOLANGUAGE );
+ else
+ ErrorHandler::HandleError( *new StringErrorInfo( ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS, aErr ) );
+
+ while( nWaitCnt )
+ {
+ rEditWin.EnterWait();
+ --nWaitCnt;
+ }
+#ifdef DEBUG
+ bFocus = GetEditWin().HasFocus();
+#endif
+
+ if ( nPend )
+ {
+ while( nPend-- )
+ pWrtShell->StartAction();
+ pWrtShell->Combine();
+ }
+#ifdef DEBUG
+ if( !bFocus )
+ GetEditWin().GrabFocus();
+#endif
+
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Spelling beenden und Cursor wiederherstellen
+ --------------------------------------------------------------------*/
+
+
+void SwView::SpellEnd()
+{
+ pWrtShell->SpellEnd();
+ if( pWrtShell->IsExtMode() )
+ pWrtShell->SetMark();
+}
+
+
+void SwView::HyphStart( SvxSpellArea eWhich )
+{
+ switch ( eWhich )
+ {
+ case SVX_SPELL_BODY:
+ pWrtShell->HyphStart( DOCPOS_START, DOCPOS_END );
+ break;
+ case SVX_SPELL_BODY_END:
+ pWrtShell->HyphStart( DOCPOS_CURR, DOCPOS_END );
+ break;
+ case SVX_SPELL_BODY_START:
+ pWrtShell->HyphStart( DOCPOS_START, DOCPOS_CURR );
+ break;
+ case SVX_SPELL_OTHER:
+ pWrtShell->HyphStart( DOCPOS_OTHERSTART, DOCPOS_OTHEREND );
+ break;
+ default:
+ ASSERT( !this, "HyphStart with unknown Area" );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Interaktive Trennung
+ --------------------------------------------------------------------*/
+
+
+void SwView::HyphenateDocument()
+{
+ // do not hyphenate if interactive hyphenationg is active elsewhere
+ if (GetWrtShell().HasHyphIter())
+ {
+ MessBox( 0, WB_OK, String( SW_RES( STR_HYPH_TITLE ) ),
+ String( SW_RES( STR_MULT_INTERACT_HYPH_WARN ) ) ).Execute();
+ return;
+ }
+
+ SfxErrorContext aContext( ERRCTX_SVX_LINGU_HYPHENATION, aEmptyStr, pEditWin,
+ RID_SVXERRCTX, DIALOG_MGR() );
+
+ uno::Reference< linguistic::XHyphenator > xHyph( ::GetHyphenator() );
+ if (!xHyph.is())
+ {
+ ErrorHandler::HandleError( ERRCODE_SVX_LINGU_LINGUNOTEXISTS );
+ return;
+ }
+
+ if (pWrtShell->GetSelectionType() & (SwWrtShell::SEL_DRW_TXT|SwWrtShell::SEL_DRW))
+ {
+ // Silbentrennung in einem Draw-Objekt
+ HyphenateDrawText();
+ }
+ else
+ {
+ SwViewOption* pVOpt = (SwViewOption*)pWrtShell->GetViewOptions();
+ sal_Bool bOldIdle = pVOpt->IsIdle();
+ pVOpt->SetIdle( sal_False );
+
+ uno::Reference< beans::XPropertySet > xProp( ::GetLinguPropertySet() );
+
+
+ pWrtShell->StartUndo(UNDO_INSATTR); // spaeter gueltig
+
+ sal_Bool bHyphSpecial = xProp.is() ?
+ *(sal_Bool*)xProp->getPropertyValue( C2U(UPN_IS_HYPH_SPECIAL) ).getValue() : sal_False;
+ sal_Bool bSelection = ((SwCrsrShell*)pWrtShell)->HasSelection() ||
+ pWrtShell->GetCrsr() != pWrtShell->GetCrsr()->GetNext();
+ sal_Bool bOther = pWrtShell->HasOtherCnt() && bHyphSpecial && !bSelection;
+ sal_Bool bStart = bSelection || ( !bOther && pWrtShell->IsStartOfDoc() );
+ sal_Bool bStop = sal_False;
+ if( !bOther && !(pWrtShell->GetFrmType(0,sal_True) & FRMTYPE_BODY) && !bSelection )
+ // kein Sonderbereich eingeschaltet
+ {
+ // Ich will auch in Sonderbereichen trennen
+ QueryBox aBox( &GetEditWin(), SW_RES( DLG_SPECIAL_FORCED ) );
+ if( aBox.Execute() == RET_YES )
+ {
+ bOther = sal_True;
+ if (xProp.is())
+ {
+ sal_Bool bTrue = sal_True;
+ uno::Any aTmp(&bTrue, ::getBooleanCppuType());
+ xProp->setPropertyValue( C2U(UPN_IS_HYPH_SPECIAL), aTmp );
+ }
+ }
+ else
+ bStop = sal_True; // Nein Es wird nicht getrennt
+ }
+
+ if( !bStop )
+ {
+ SwHyphWrapper aWrap( this, xHyph, bStart, bOther, bSelection );
+ aWrap.SpellDocument();
+ pWrtShell->EndUndo(UNDO_INSATTR);
+ }
+ pVOpt->SetIdle( bOldIdle );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Thesaurus starten
+ --------------------------------------------------------------------*/
+
+
+void SwView::StartThesaurus()
+{
+ if( pWrtShell->GetCrsr() != pWrtShell->GetCrsr()->GetNext() )
+ return;
+ sal_Bool bSelection = ((SwCrsrShell*)pWrtShell)->HasSelection();
+ if( bSelection && !pWrtShell->IsSelOnePara() )
+ return;
+
+ SfxErrorContext aContext( ERRCTX_SVX_LINGU_THESAURUS, aEmptyStr, pEditWin,
+ RID_SVXERRCTX, DIALOG_MGR() );
+
+ // Sprache rausholen
+ //
+ SfxItemSet aSet(pShell->GetPool(), RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE);
+ pWrtShell->GetAttr(aSet);
+
+ const SvxLanguageItem& rLang = (const SvxLanguageItem&)aSet.Get(
+ RES_CHRATR_LANGUAGE );
+ LanguageType eLang = rLang.GetLanguage();
+ if ( ( eLang == LANGUAGE_SYSTEM ) &&
+ ( ((eLang=GetpApp()->GetAppInternational().GetLanguage())==LANGUAGE_SYSTEM )
+ && ( ( eLang=::GetSystemLanguage() ) == LANGUAGE_SYSTEM ) ) )
+ eLang = LANGUAGE_DONTKNOW;
+
+ if ( eLang == LANGUAGE_DONTKNOW || eLang == LANGUAGE_NONE )
+ {
+ SpellError( (void *) LANGUAGE_NONE );
+ return;
+ }
+
+ SwViewOption* pVOpt = (SwViewOption*)pWrtShell->GetViewOptions();
+ sal_Bool bOldIdle = pVOpt->IsIdle();
+ pVOpt->SetIdle( sal_False );
+
+#ifdef TL_NEVER
+//!!! hier muß noch was getan werden... (Umsetzung der Funktionalitaet)
+ // ErrorLink setzen, alten merken
+ Link aOldLnk = pSpell->ChgErrorLink(LINK(this, SwView, SpellError));
+#endif
+
+
+ // get initial LookUp text
+ String aTmp = bSelection ?
+ pWrtShell->GetSelTxt() : pWrtShell->GetCurWord();
+
+ uno::Reference< linguistic::XThesaurus > xThes( OFF_APP()->GetThesaurus() );
+ SvxThesaurusDialog *pDlg = NULL;
+
+ if ( !xThes.is() || !xThes->hasLocale( SvxCreateLocale( eLang ) ) )
+ {
+ SpellError( (void *) eLang );
+ }
+ else
+ {
+ // create dialog
+ { //Scope for SwWait-Object
+ SwWait aWait( *GetDocShell(), sal_True );
+ pDlg = new SvxThesaurusDialog( &GetEditWin(),
+ xThes, aTmp, eLang );
+ }
+
+ {
+ // Hier wird der Thesaurus-Dialog im Applikationsfenster zentriert,
+ // und zwar oberhalb oder unterhalb der Cursorposition, je nachdem,
+ // wo mehr Platz ist.
+
+ // Current Word:
+ SwRect aRect( pWrtShell->GetCharRect() );
+ Point aTopPos = aRect.Pos();
+ Point aBtmPos( aTopPos.X(), aRect.Bottom() );
+ aTopPos = GetEditWin().LogicToPixel( aTopPos );
+ aTopPos = GetEditWin().OutputToScreenPixel( aTopPos );
+ aBtmPos = GetEditWin().LogicToPixel( aBtmPos );
+ aBtmPos = GetEditWin().OutputToScreenPixel( aBtmPos );
+ // ::frame::Desktop:
+ Rectangle aRct = GetEditWin().GetDesktopRectPixel();
+ Point aWinTop( aRct.TopLeft() );
+ Point aWinBtm( aRct.BottomRight() );
+ if ( aTopPos.Y() - aWinTop.Y() > aWinBtm.Y() - aBtmPos.Y() )
+ aWinBtm.Y() = aTopPos.Y();
+ else
+ aWinTop.Y() = aBtmPos.Y();
+
+ Size aSz = pDlg->GetSizePixel();
+ if ( aWinBtm.Y() - aWinTop.Y() > aSz.Height() )
+ {
+ aWinTop.X() = ( aWinTop.X() + aWinBtm.X() - aSz.Width() ) / 2;
+ aWinTop.Y() = ( aWinTop.Y() + aWinBtm.Y() - aSz.Height() ) / 2;
+ pDlg->SetPosPixel( aWinTop );
+ }
+ }
+
+ if ( pDlg->Execute()== RET_OK )
+ {
+ sal_Bool bOldIns = pWrtShell->IsInsMode();
+ pWrtShell->SetInsMode( sal_True );
+
+ pWrtShell->StartAllAction();
+ pWrtShell->StartUndo(UNDO_DELETE);
+
+ if( !bSelection )
+ {
+ if(!pWrtShell->IsInWrd() && !pWrtShell->IsEndWrd() &&
+ !pWrtShell->IsSttWrd())
+ pWrtShell->PrvWrd();
+
+ if(pWrtShell->IsEndWrd())
+ pWrtShell->Left();
+
+ pWrtShell->SelWrd();
+ }
+#ifdef TL_NEVER
+ String aTmp(pThes->GetPreStripped());
+ aTmp += pDlg->GetWord();
+ aTmp += pThes->GetPostStripped();
+
+ pWrtShell->Insert(aTmp);
+#endif
+ pWrtShell->Insert( pDlg->GetWord() );
+
+ pWrtShell->EndUndo(UNDO_DELETE);
+ pWrtShell->EndAllAction();
+
+ pWrtShell->SetInsMode( bOldIns );
+
+ }
+ }
+
+ delete pDlg;
+
+#ifdef TL_NEVER
+ pSpell->ChgErrorLink( aOldLnk );
+#endif
+ pVOpt->SetIdle( bOldIdle );
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Online-Vorschlaege anbieten
+ *--------------------------------------------------------------------*/
+
+
+sal_Bool SwView::ExecSpellPopup(const Point& rPt)
+{
+ sal_Bool bRet = sal_False;
+ const SwViewOption* pVOpt = pWrtShell->GetViewOptions();
+ if( pVOpt->IsOnlineSpell() &&
+ !pVOpt->IsHideSpell() &&
+ !pWrtShell->IsSelection())
+ {
+ if (pWrtShell->GetSelectionType() & SwWrtShell::SEL_DRW_TXT)
+ bRet = ExecDrwTxtSpellPopup(rPt);
+ else if (!pWrtShell->IsSelFrmMode())
+ {
+ const sal_Bool bOldViewLock = pWrtShell->IsViewLocked();
+ pWrtShell->LockView( sal_True );
+ pWrtShell->Push();
+ uno::Reference< linguistic::XSpellAlternatives > xAlt( pWrtShell->GetCorrection(&rPt) );
+ if ( xAlt.is() )
+ {
+ bRet = sal_True;
+ pWrtShell->SttSelect();
+ SwSpellPopup aPopup( pWrtShell, xAlt );
+ aPopup.Execute(
+ pEditWin,
+ rPt);
+ }
+
+ pWrtShell->Pop( sal_False );
+ pWrtShell->LockView( bOldViewLock );
+ }
+ }
+ return bRet;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.135 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.134 2000/08/11 12:41:54 tl
+ #73640# no double interactive spelling/hyphenation, just show warning message
+
+ Revision 1.133 2000/07/04 15:19:51 tl
+ XHyphenator1 => XHyphenator
+
+ Revision 1.132 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.131 2000/03/30 13:02:17 os
+ include
+
+ Revision 1.130 2000/03/23 07:50:25 os
+ UNO III
+
+ Revision 1.129 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.128 2000/02/16 21:01:05 tl
+ #72219# Locale Umstellung
+
+ Revision 1.127 2000/02/11 14:59:35 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.126 2000/02/07 13:28:12 tl
+ #72445# bAllRight passed as argument to spell-wrapper
+
+ Revision 1.125 2000/01/11 10:37:42 tl
+ #70735# CheckSpellChanges called from SW_MOD for ONE_LINGU; used SvxDicListChgClamp
+
+ Revision 1.124 1999/12/10 13:09:48 tl
+ #70383# SvxGetLinguPropertySet => ::GetLinguPropertySet
+
+ Revision 1.123 1999/11/24 18:37:41 tl
+ check for Service availability
+
+ Revision 1.122 1999/11/19 16:40:24 os
+ modules renamed
+
+ Revision 1.121 1999/11/16 14:40:58 hr
+ #65293#: syntax
+
+ Revision 1.120 1999/11/10 11:10:56 tl
+ Ongoing ONE_LINGU implementation
+
+ Revision 1.119 1999/10/25 19:44:24 tl
+ ongoing ONE_LINGU implementation
+
+ Revision 1.118 1999/10/12 16:05:24 mh
+ chg: include
+
+ Revision 1.117 1999/08/31 08:40:00 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+
+ Rev 1.116 31 Aug 1999 10:40:00 TL
+ #if[n]def ONE_LINGU inserted (for transition of lingu to StarOne)
+
+ Rev 1.115 24 Aug 1999 14:55:20 TL
+ Lingu StarOne interface selectable with define ONE_LINGU
+
+ Rev 1.114 20 Aug 1999 16:08:42 TL
+ Switched to StarOne Thesaurus interface
+
+ Rev 1.113 08 Jul 1999 18:45:24 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.112 26 May 1999 14:45:24 HJS
+ fuer os2 umgebaut
+
+ Rev 1.111 11 May 1999 14:14:14 AMA
+ Fix #65174#: Thesaurus-Fehlermeldung, wenn keine Sprache eingstellt ist.
+
+ Rev 1.110 10 May 1999 14:16:32 AMA
+ Fix #65176#: Bei der Lingu-Fehlermeldung keine Sanduhr anzeigen
+
+ Rev 1.109 27 Nov 1998 14:58:04 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.108 25 Aug 1998 14:01:42 OM
+ #55404# Linguistik-Popup auf bei DrawText-Objekten aufrufen
+
+ Rev 1.107 24 Feb 1998 15:29:08 JP
+ Search..: SWPOSDOC entfernt, auf enums umgestellt
+
+ Rev 1.106 17 Dec 1997 16:28:42 ER
+ cast fuer IRIX
+
+ Rev 1.105 03 Dec 1997 17:10:34 AMA
+ Fix: Paintprobleme durch Actionklammerung bei automatischer Trennung
+
+ Rev 1.104 29 Nov 1997 16:48:38 MA
+ includes
+
+ Rev 1.103 21 Nov 1997 15:00:20 MA
+ includes
+
+ Rev 1.102 27 Oct 1997 12:01:14 AMA
+ Fix #44941#: Thesaurus bei prueft und ersetzt Selektionen genau.
+
+ Rev 1.101 13 Oct 1997 19:10:08 JP
+ pNext vom Ring wurde privat; zugriff ueber GetNext()
+
+ Rev 1.100 30 Sep 1997 16:53:50 TJ
+ include
+
+ Rev 1.99 12 Sep 1997 10:36:10 OS
+ ITEMID_* definiert
+
+ Rev 1.98 11 Sep 1997 12:18:18 AMA
+ Fix #43379# hier unnoetig, denn SpellArgs werden jetzt richtig initialisiert
+
+ Rev 1.97 04 Sep 1997 17:14:46 MA
+ includes
+
+ Rev 1.96 02 Sep 1997 14:38:06 AMA
+ Fix #43379#: Spezialbereiche nur pruefen, wenn sie angezeigt werden.
+
+ Rev 1.95 29 Aug 1997 16:00:36 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.94 15 Aug 1997 11:48:00 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.93 11 Aug 1997 10:17:52 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.92 08 Aug 1997 17:26:14 OM
+ Headerfile-Umstellung
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx
new file mode 100644
index 000000000000..bc8a9467adde
--- /dev/null
+++ b/sw/source/ui/uiview/viewmdi.cxx
@@ -0,0 +1,890 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewmdi.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <string> // HACK: prevent conflict between STLPORT and Workshop headers
+
+#include "hintids.hxx"
+#include "uiparam.hxx"
+
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+
+
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "viewopt.hxx"
+#include "frmatr.hxx"
+#include "globals.hrc"
+#include "docsh.hxx"
+#include "uitool.hxx"
+#include "cmdid.h"
+#include "edtwin.hxx"
+#include "pagedesc.hxx"
+#include "bookmrk.hxx"
+#include "fldbas.hxx"
+#include "workctrl.hxx"
+#include "usrpref.hxx"
+#include "scroll.hxx"
+#include "wview.hxx"
+#include "view.hrc"
+#include "ribbar.hrc"
+#include "helpid.h"
+
+USHORT SwView::nMoveType = NID_PGE;
+BYTE SwView::nActMark = 0;
+
+#define VIEW_IMAGECOLOR COL_LIGHTBLUE
+
+void SwView::SetZoom( SvxZoomType eZoomType, short nFactor, BOOL bViewOnly )
+{
+ _SetZoom( GetEditWin().GetOutputSizePixel(), eZoomType, nFactor, bViewOnly );
+}
+
+void SwView::_SetZoom( const Size &rEditSize, SvxZoomType eZoomType,
+ short nFactor, BOOL bViewOnly )
+{
+ pWrtShell->LockPaint();
+ {
+ ACT_KONTEXT(pWrtShell);
+
+ long nFac = nFactor;
+
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ SwMasterUsrPref *pUsrPref = (SwMasterUsrPref*)SW_MOD()->GetUsrPref(bWeb);
+
+ const SwPageDesc &rDesc = pWrtShell->GetPageDesc(
+ pWrtShell->GetCurPageDesc() );
+ const SvxLRSpaceItem &rLRSpace = rDesc.GetMaster().GetLRSpace();
+ const SwViewOption *pOpt = pWrtShell->GetViewOptions();
+ long lLeftMargin;
+
+ if( eZoomType != SVX_ZOOM_PERCENT )
+ {
+ const long nOf = DOCUMENTBORDER * 2L;
+ Size aPageSize( pWrtShell->GetAnyCurRect(RECT_PAGE_CALC).SSize() );
+
+ if( PD_MIRROR == rDesc.GetUseOn() ) // gespiegelte Seiten
+ {
+ const SvxLRSpaceItem &rLeftLRSpace = rDesc.GetLeft().GetLRSpace();
+ aPageSize.Width() +=
+ Abs( long(rLeftLRSpace.GetLeft()) - long(rLRSpace.GetLeft()) );
+ }
+ if( SVX_ZOOM_OPTIMAL == eZoomType )
+ {
+ aPageSize.Width() -=
+ ( rLRSpace.GetLeft() + rLRSpace.GetRight() + nLeftOfst * 2 );
+ }
+ else
+ {
+ aPageSize.Width() += nOf;
+ aPageSize.Height() += nOf;
+ }
+ lLeftMargin = SVX_ZOOM_PAGEWIDTH != eZoomType ?
+ long(rLRSpace.GetLeft()) + DOCUMENTBORDER + nLeftOfst : 0L;
+
+ const MapMode aTmpMap( MAP_TWIP );
+ const Size aWindowSize( GetEditWin().PixelToLogic( rEditSize, aTmpMap ) );
+ nFac = aWindowSize.Width() * 100 / aPageSize.Width();
+ if( SVX_ZOOM_WHOLEPAGE == eZoomType )
+ {
+ long nVisPercent = aWindowSize.Height() * 100 / aPageSize.Height();
+ nFac = Min( nFac, nVisPercent );
+ }
+ }
+ else
+ lLeftMargin = long(rLRSpace.GetLeft()) + DOCUMENTBORDER;
+
+ nFac = Max( long( MINZOOM ), nFac );
+
+ SwViewOption aOpt( *pOpt );
+ SwDocShell* pDocShell = GetDocShell();
+ if ( pDocShell->GetProtocol().IsEmbed() ||
+ pDocShell->GetCreateMode() == SFX_CREATE_MODE_STANDARD )
+ {
+ //MasterUsrPrefs updaten UND DANACH die ViewOptions der aktuellen
+ //View updaten.
+ if ( !bViewOnly &&
+ (USHORT(nFac) != pUsrPref->GetZoom() ||
+ BYTE (eZoomType) != pUsrPref->GetZoomType()) )
+ {
+ pUsrPref->SetZoom ( USHORT(nFac) );
+ pUsrPref->SetZoomType( BYTE( eZoomType ) );
+ SW_MOD()->ApplyUsrPref( *pUsrPref, 0 );
+ pUsrPref->SetDefault ( FALSE );
+ }
+ if ( pOpt->GetZoom() != (USHORT) nFac )
+ {
+ aOpt.SetZoom ( USHORT(nFac) );
+ aOpt.SetReadonly(pOpt->IsReadonly());
+ pWrtShell->ApplyViewOptions( aOpt );
+ }
+ if ( eZoomType != SVX_ZOOM_PERCENT )
+ {
+ Point aPos;
+ if ( eZoomType == SVX_ZOOM_WHOLEPAGE )
+ aPos.Y() = pWrtShell->GetAnyCurRect(RECT_PAGE).Top() - DOCUMENTBORDER;
+ else
+ {
+ //sicherstellen, dass sich der Cursor im sichtbaren
+ //Bereich befindet, damit nur 1x gescrollt wird
+ aPos.X() = lLeftMargin;
+ const SwRect &rCharRect = pWrtShell->GetCharRect();
+ if ( rCharRect.Top() > GetVisArea().Bottom() ||
+ rCharRect.Bottom() < aPos.Y() )
+ aPos.Y() = rCharRect.Top() - rCharRect.Height();
+ else
+ aPos.Y() = GetVisArea().Top();
+ }
+ SetVisArea( aPos );
+ }
+ // OS: Notloesung - in CalcVisArea wird u.U. wieder SetZoom gerufen und
+ // dann werden falsche Werte eingestellt
+ ((SwViewOption*)pWrtShell->GetViewOptions())->SetZoomType((BYTE)eZoomType);
+ CalcVisArea( rEditSize ); //fuer das Neuberechnen des sichtbaren Bereiches
+ }
+ else if ( USHORT(nFac) != pOpt->GetZoom() )
+ {
+ aOpt.SetZoom ( USHORT(nFac) );
+ pWrtShell->ApplyViewOptions( aOpt );
+ }
+
+ const Fraction aFrac( nFac, 100 );
+ if ( pVLineal )
+ {
+ pVLineal->SetZoom( aFrac );
+ pVLineal->ForceUpdate();
+ }
+ if ( pHLineal )
+ {
+ pHLineal->SetZoom( aFrac );
+ pHLineal->ForceUpdate();
+ }
+ ((SwViewOption*)pWrtShell->GetViewOptions())->SetZoomType((BYTE)eZoomType);
+ }
+ pWrtShell->UnlockPaint();
+// eZoom = eZoomType;
+}
+
+/*
+ * Scrollbar - Handler
+ */
+
+int SwView::_CreateScrollbar( int bHori )
+{
+ Window *pMDI = &GetViewFrame()->GetWindow();
+ SwScrollbar** ppScrollbar = bHori ? &pHScrollbar : &pVScrollbar;
+
+ ASSERT( !*ppScrollbar, "vorher abpruefen!" )
+
+ if( !bHori )
+ CreatePageButtons( !bShowAtResize );
+
+ // wenn beide Scrollbar eingeschaltet werden, dann auch die ScrollbarBox
+ // anlegen
+ if( !pScrollFill && (bHori ? pVScrollbar : pHScrollbar) )
+ {
+ pScrollFill = new ScrollBarBox( pMDI, GetDocShell()->IsInFrame()
+ ? 0 : WB_SIZEABLE );
+ if ( !bShowAtResize )
+ pScrollFill->Show();
+ }
+
+ *ppScrollbar = new SwScrollbar( pMDI, bHori );
+ UpdateScrollbars();
+ if(bHori)
+ (*ppScrollbar)->SetScrollHdl( LINK( this, SwView, EndScrollHdl ));
+ else
+ (*ppScrollbar)->SetScrollHdl( LINK( this, SwView, ScrollHdl ));
+ (*ppScrollbar)->SetEndScrollHdl( LINK( this, SwView, EndScrollHdl ));
+
+ (*ppScrollbar)->EnableDrag( TRUE );
+ (*ppScrollbar)->SetAuto( pWrtShell->IsBrowseMode() &&
+ !GetDocShell()->GetProtocol().IsInPlaceActive() );
+
+ InvalidateBorder();
+
+ // Scrollbar muss nochmals getestet werden, da im InvalidateBorder u.U. der
+ // Scrollbar wieder geloescht wurde
+ if ( !bShowAtResize && (*ppScrollbar))
+ (*ppScrollbar)->Show();
+
+ return 1;
+}
+
+void SwView::CreatePageButtons(BOOL bShow)
+{
+ Window *pMDI = &GetViewFrame()->GetWindow();
+ pPageUpBtn = new SwHlpImageButton(pMDI, SW_RES( BTN_PAGEUP ), TRUE );
+ pPageUpBtn->SetHelpId(HID_SCRL_PAGEUP);
+ pPageDownBtn = new SwHlpImageButton(pMDI, SW_RES( BTN_PAGEDOWN ), FALSE );
+ pPageDownBtn->SetHelpId(HID_SCRL_PAGEDOWN);
+ pNaviBtn = new SwNaviImageButton(pMDI);
+ pNaviBtn->SetHelpId(HID_SCRL_NAVI);
+ Link aLk( LINK( this, SwView, BtnPage ) );
+ pPageUpBtn->SetClickHdl( aLk );
+ pPageDownBtn->SetClickHdl( aLk );
+ if(nMoveType != NID_PGE)
+ {
+ Color aColor(VIEW_IMAGECOLOR);
+ SetImageButtonColor(aColor);
+ }
+
+ if(bShow)
+ {
+ pPageUpBtn->Show();
+ pPageDownBtn->Show();
+ pNaviBtn->Show();
+ }
+};
+
+int SwView::_KillScrollbar( int bHori )
+{
+ SwScrollbar** ppScrBar;
+ if( bHori )
+ {
+ if( 0 == *( ppScrBar = &pHScrollbar ) )
+ return 1;
+ }
+ else
+ {
+ if( 0 == *( ppScrBar = &pVScrollbar ) )
+ return 1;
+ DELETEZ(pNaviBtn);
+ DELETEZ(pPageUpBtn);
+ DELETEZ(pPageDownBtn);
+ }
+ DELETEZ( *ppScrBar );
+
+ // wird einer der Scrollbar ausgeschaltet, muss auch die ScrollbarBox
+ // entfernt werden
+ if( pScrollFill )
+ DELETEZ( pScrollFill );
+
+ InvalidateBorder();
+ return 1;
+}
+
+/*
+ * Button-Handler
+ */
+IMPL_LINK( SwView, BtnPage, Button *, pButton )
+{
+ MoveNavigation(pButton == pPageDownBtn);
+ return 0;
+}
+/*-----------------20.06.97 10:46-------------------
+
+--------------------------------------------------*/
+void SwView::MoveNavigation(BOOL bNext)
+{
+ SwWrtShell& rSh = GetWrtShell();
+ switch( nMoveType )
+ {
+ case NID_PGE:
+ bNext ? PhyPageDown() : PhyPageUp();
+ break;
+ case NID_TBL :
+ rSh.EnterStdMode();
+ if(bNext)
+ rSh.MoveTable(fnTableNext, fnTableStart);
+ else
+ rSh.MoveTable(fnTablePrev, fnTableStart);
+ break;
+ case NID_FRM :
+ case NID_GRF:
+ case NID_OLE:
+ {
+ FlyCntType eType = FLYCNTTYPE_FRM;
+ if(nMoveType == NID_GRF)
+ eType = FLYCNTTYPE_GRF;
+ else if(nMoveType == NID_OLE)
+ eType = FLYCNTTYPE_OLE;
+ BOOL bSuccess = bNext ?
+ rSh.GotoNextFly(eType) :
+ rSh.GotoPrevFly(eType);
+ if(bSuccess)
+ {
+ rSh.HideCrsr();
+ rSh.EnterSelFrmMode();
+ }
+ }
+ break;
+ case NID_DRW :
+ case NID_CTRL:
+ rSh.GotoObj(bNext,
+ nMoveType == NID_DRW ?
+ DRAW_SIMPLE :
+ DRAW_CONTROL);
+ break;
+ case NID_REG :
+ rSh.EnterStdMode();
+ if(bNext)
+ rSh.MoveRegion(fnRegionNext, fnRegionStart);
+ else
+ rSh.MoveRegion(fnRegionPrev, fnRegionStart);
+
+ break;
+ case NID_BKM :
+ rSh.EnterStdMode();
+ GetViewFrame()->GetDispatcher()->Execute(bNext ?
+ FN_NEXT_BOOKMARK :
+ FN_PREV_BOOKMARK);
+ break;
+ case NID_OUTL:
+ rSh.EnterStdMode();
+ bNext ? rSh.GotoNextOutline() : rSh.GotoPrevOutline();
+ break;
+ case NID_SEL :
+ bNext ? rSh.GoNextCrsr() : rSh.GoPrevCrsr();
+ break;
+ case NID_FTN:
+ rSh.EnterStdMode();
+ bNext ?
+ rSh.GotoNextFtnAnchor() :
+ rSh.GotoPrevFtnAnchor();
+ break;
+ case NID_MARK:
+ {
+ // Selektionen aufheben
+ rSh.MoveCrsr();
+ rSh.EnterStdMode();
+ const USHORT nBookCnt = rSh.GetBookmarkCnt();
+ USHORT nMarkCount = 0;
+ USHORT nRealIdx[MAX_MARKS];
+ for( USHORT nCount = 0; nCount < nBookCnt; ++nCount )
+ {
+ if( rSh.GetBookmark( nCount ).IsMark() )
+ {
+ nRealIdx[nMarkCount] = nCount;
+ ++nMarkCount;
+ }
+ }
+ if (nMarkCount)
+ {
+ if(!bNext)
+ {
+ if (nActMark > 1)
+ --nActMark;
+ else
+ nActMark = nMarkCount;
+ }
+ else
+ {
+ ++nActMark;
+ if (nActMark > MAX_MARKS || nActMark > nMarkCount)
+ nActMark = 1;
+ }
+
+ rSh.GotoBookmark( nRealIdx[nActMark - 1] );
+ }
+ }
+ break;
+ case NID_POSTIT:
+ {
+
+ SwFieldType* pFldType = rSh.GetFldType(0, RES_POSTITFLD);
+ rSh.MoveFldType( pFldType, bNext );
+ }
+ break;
+ case NID_SRCH_REP:
+ if(pSrchItem)
+ {
+ BOOL bBackward = pSrchItem->GetBackward();
+ if(rSh.HasSelection() && !bNext == rSh.IsCrsrPtAtEnd())
+ rSh.SwapPam();
+ pSrchItem->SetBackward(!bNext);
+ SfxRequest aReq(FN_REPEAT_SEARCH, SFX_CALLMODE_SLOT, GetPool());
+ ExecSearch(aReq);
+ pSrchItem->SetBackward(bBackward);
+ }
+ break;
+ case NID_INDEX_ENTRY:
+ rSh.GotoNxtPrvTOXMark(bNext);
+ break;
+
+ case NID_TABLE_FORMULA:
+ rSh.GotoNxtPrvTblFormula( bNext );
+ break;
+
+ case NID_TABLE_FORMULA_ERROR:
+ rSh.GotoNxtPrvTblFormula( bNext, TRUE );
+ break;
+ }
+ pEditWin->GrabFocus();
+}
+
+/*************************************************************************
+|*
+|* SwView::CreateTab()
+|*
+|* Beschreibung
+|* Ersterstellung VB 29.05.91
+|* Letzte Aenderung OS 09.05.96
+|*
+*************************************************************************/
+
+int SwView::_CreateTab()
+{
+ ASSERT( !StatTab(), "vorher abpruefen!" )
+
+ pHLineal->SetActive(GetFrame() && IsActive());
+
+ pHLineal->Show();
+ InvalidateBorder();
+ return 1;
+}
+
+/*************************************************************************
+|*
+|* SwView::KillTab()
+|*
+|* Beschreibung
+|* Ersterstellung VB 29.05.91
+|* Letzte Aenderung OS 09.05.96
+|*
+*************************************************************************/
+
+int SwView::_KillTab()
+{
+ ASSERT( StatTab(), "vorher abpruefen!" )
+
+ pHLineal->Hide();
+// DELETEZ(pHLineal);
+ InvalidateBorder();
+ return 1;
+}
+
+void SwView::ChangeTabMetric( FieldUnit eUnit )
+{
+ if ( pHLineal )
+ {
+ if(eUnit == FUNIT_MM)
+ eUnit = FUNIT_CM;
+ if(pHLineal->GetUnit() != eUnit )
+ {
+ pHLineal->SetUnit( eUnit );
+ pHLineal->Invalidate();
+ }
+ }
+}
+
+void SwView::ChangeVLinealMetric( FieldUnit eUnit )
+{
+ if ( pVLineal )
+ {
+ if(eUnit == FUNIT_MM)
+ eUnit = FUNIT_CM;
+ if(pVLineal->GetUnit() != eUnit)
+ {
+ pVLineal->SetUnit( eUnit );
+ pVLineal->Invalidate();
+ }
+ }
+}
+
+/*************************************************************************
+|*
+|* SwView::CreateVLineal()
+|*
+|* Beschreibung
+|* Ersterstellung VB 29.05.91
+|* Letzte Aenderung VB 19.05.92
+|*
+*************************************************************************/
+
+int SwView::_CreateVLineal()
+{
+ ASSERT( !StatVLineal(), "vorher abpruefen!" )
+
+ Window *pMDI = &GetViewFrame()->GetWindow();
+
+ pVLineal = new SvxRuler(pMDI, pEditWin,
+ 0,
+ GetViewFrame()->GetBindings(),
+ WB_VSCROLL | WB_3DLOOK | WB_BORDER );
+ if( pVLineal && pHLineal )
+ pHLineal->SetBorderPos( pVLineal->GetSizePixel().Width()-1 );
+
+ pVLineal->SetActive(GetFrame() && IsActive());
+ const SwViewOption* pOpt = pWrtShell->GetViewOptions();
+ pVLineal->SetZoom(Fraction(pOpt->GetZoom(), 100));
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ FieldUnit eMetric = ::GetDfltMetric(bWeb);
+ if(eMetric == FUNIT_MM)
+ eMetric = FUNIT_CM;
+ pVLineal->SetUnit(eMetric);
+
+ InvalidateBorder();
+ if ( !bShowAtResize )
+ pVLineal->Show();
+ return 1;
+}
+
+/*************************************************************************
+|*
+|* SwView::KillVLineal()
+|*
+|* Beschreibung
+|* Ersterstellung VB 29.05.91
+|* Letzte Aenderung VB 29.05.91
+|*
+*************************************************************************/
+
+int SwView::_KillVLineal()
+{
+ ASSERT( StatVLineal(), "vorher abpruefen!" )
+
+ pVLineal->Hide();
+
+ if ( pHLineal )
+ pHLineal->SetBorderPos( 0 );
+
+ DELETEZ(pVLineal);
+ InvalidateBorder();
+ return 1;
+}
+/*************************************************************************
+|*
+|* SwView::ExecRulerClick()
+|*
+|* Beschreibung
+|* Ersterstellung OS 15.06.95
+|* Letzte Aenderung
+|*
+*************************************************************************/
+
+IMPL_LINK( SwView, ExecRulerClick, Ruler *, pRuler )
+{
+ USHORT nDefPage = 0;
+ switch( pRuler->GetClickType() )
+ {
+ case RULER_TYPE_DONTKNOW:
+ case RULER_TYPE_OUTSIDE:
+ case RULER_TYPE_INDENT:
+ case RULER_TYPE_MARGIN1:
+ case RULER_TYPE_MARGIN2:
+ nDefPage = TP_PARA_STD;
+ break;
+ default:
+ nDefPage = TP_TABULATOR;
+
+ }
+
+ SfxUInt16Item aDefPage(SID_PARA_DLG, nDefPage);
+ GetViewFrame()->GetDispatcher()->Execute( SID_PARA_DLG,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aDefPage, 0L );
+ return 0;
+}
+
+
+/*-----------------20.02.97 09:11-------------------
+
+--------------------------------------------------*/
+
+USHORT SwView::GetMoveType()
+{
+ return nMoveType;
+}
+/*-----------------20.02.97 09:11-------------------
+
+--------------------------------------------------*/
+
+void SwView::SetMoveType(USHORT nSet)
+{
+ BOOL bLastPage = nMoveType == NID_PGE;
+ nMoveType = nSet;
+ BOOL bNewPage = nMoveType == NID_PGE;
+ if(bNewPage != bLastPage)
+ {
+ Color aColor(bNewPage ? COL_BLACK : VIEW_IMAGECOLOR);
+ const TypeId aTypeId = TYPE(SwView);
+ SwView* pView = (SwView*)SfxViewShell::GetFirst(&aTypeId);
+ while( pView )
+ {
+ pView->SetImageButtonColor(aColor);
+ pView = (SwView*)SfxViewShell::GetNext(*pView, &aTypeId);
+ }
+ }
+}
+
+/*-----------------20.06.97 11:18-------------------
+
+--------------------------------------------------*/
+void SwView::SetActMark(BYTE nSet)
+{
+ nActMark = nSet;
+}
+
+/*-----------------15.03.97 10:53-------------------
+
+--------------------------------------------------*/
+
+void SwView::SetImageButtonColor(Color& rColor)
+{
+ if(pPageUpBtn)
+ {
+ pPageUpBtn->SetControlForeground(rColor);
+ pPageDownBtn->SetControlForeground(rColor);
+ }
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.126 2000/09/18 16:06:13 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.125 2000/09/07 15:59:33 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.124 2000/05/24 13:13:57 hr
+ conflict between STLPORT and Workshop header
+
+ Revision 1.123 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.122 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.121 1999/07/20 07:44:28 OS
+ #67585# ZoomValue/ZoomType :SetZoom changed
+
+
+ Rev 1.120 20 Jul 1999 09:44:28 OS
+ #67585# ZoomValue/ZoomType :SetZoom changed
+
+ Rev 1.119 14 Jan 1999 14:19:54 JP
+ Bug #60794#: Fehlererkennung beim Tabellenrechnen und anspringen von Formeln
+
+ Rev 1.118 03 Dec 1998 10:26:18 OS
+ #59441# Verzeichniseintrag in der Navigation
+
+ Rev 1.117 22 Sep 1998 11:36:28 MA
+ #56856# Kontext besser
+
+ Rev 1.116 22 Sep 1998 11:28:16 MA
+ #56856# Paint locken fuer Anderung vom Zoom
+
+ Rev 1.115 08 Sep 1998 17:05:12 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.114 14 Jun 1998 16:13:52 MA
+ chg: Navi-Tool auch fuer Browse-View
+
+ Rev 1.113 20 Mar 1998 13:23:54 MA
+ OleVis2Page durch BrowseMode ersetzt
+
+ Rev 1.112 24 Feb 1998 18:06:38 OS
+ includes, SwapPam
+
+ Rev 1.111 24 Feb 1998 12:02:02 OS
+ Navigationstool erweitert
+
+ Rev 1.110 07 Feb 1998 10:39:36 OS
+ GrabFocus nach Navigations-Move #47160#
+
+ Rev 1.109 21 Nov 1997 15:00:20 MA
+ includes
+
+ Rev 1.108 03 Nov 1997 13:58:30 MA
+ precomp entfernt
+
+ Rev 1.107 04 Sep 1997 17:14:42 MA
+ includes
+
+ Rev 1.106 01 Sep 1997 13:13:50 OS
+ DLL-Umstellung
+
+ Rev 1.105 23 Aug 1997 10:12:02 OS
+ Zoom ganze Seite: Factor nicht zusaetzlich mit den ViewOpt-Einstellungen multiplizieren #43052#
+
+ Rev 1.104 12 Aug 1997 15:57:26 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.103 08 Aug 1997 17:25:56 OM
+ Headerfile-Umstellung
+
+ Rev 1.102 07 Aug 1997 14:58:56 OM
+ Headerfile-Umstellung
+
+ Rev 1.101 16 Jul 1997 17:25:54 AMA
+ Fix: Rundungsfehler minimieren durch PixelToLogic mit 100%-MapMode
+
+ Rev 1.100 20 Jun 1997 13:55:36 OS
+ neu: MoveNavigation
+
+ Rev 1.99 09 Jun 1997 14:28:06 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.98 08 Apr 1997 10:22:46 MA
+ includes
+
+ Rev 1.97 24 Mar 1997 15:57:54 OS
+ SetZoomType vor CalcVisArea
+
+ Rev 1.96 15 Mar 1997 11:27:24 OS
+ PageUp/Down-Buttons faerben
+
+ Rev 1.95 04 Mar 1997 19:11:42 OS
+ Spruenge im Text: zunaechst EnterStdMode
+
+ Rev 1.94 22 Feb 1997 20:15:48 OS
+ eigenes Image fuer Button
+
+ Rev 1.93 21 Feb 1997 17:03:00 OS
+ ImageButtons veraendert; Handler erweitert
+
+ Rev 1.92 20 Feb 1997 16:46:16 OS
+ Navigation funktioniert
+
+ Rev 1.91 19 Feb 1997 16:55:54 OS
+ dritter Button/Navigation
+
+ Rev 1.90 05 Feb 1997 08:29:14 MA
+ chg: unn?tzes label entfernt
+
+ Rev 1.89 30 Jan 1997 11:03:10 OS
+ UsrPrefs verdoppelt
+
+ Rev 1.88 11 Dec 1996 08:42:18 OS
+ ClickType am Ruler auswerten -> gfs. Einzuege-TabPage statt Tabulator
+
+ Rev 1.87 10 Dec 1996 19:07:06 MA
+ VertScrollbar
+
+ Rev 1.86 11 Nov 1996 11:10:52 MA
+ ResMgr
+
+ Rev 1.85 14 Oct 1996 09:02:02 OS
+ Readonly an den ViewOptions vor ApplyViewOptions einstellen
+
+ Rev 1.84 07 Oct 1996 09:58:08 OS
+ Aktivierung der Lineale im _Create abhaengig von der Aktivierung der View
+
+ Rev 1.83 23 Sep 1996 15:37:34 MA
+ fix: Zoomtype und Browser
+
+ Rev 1.82 12 Sep 1996 17:00:32 OS
+ GetAnyCurRect() ersetzt GetCur*Rect
+
+ Rev 1.81 28 Aug 1996 14:19:18 JP
+ ScrollBarBox: im FrameSet-Doc nicht das Sizeable-Flag setzen
+
+ Rev 1.80 14 Aug 1996 15:15:30 OS
+ SetAuto fuer BrowseMode nicht nur fuer HScrollbar
+
+ Rev 1.79 29 Jul 1996 15:47:14 MA
+ includes
+
+ Rev 1.78 12 Jul 1996 14:44:22 OS
+ vert. Scrollbar geht auch im BrowseMode zum ScrollHdl
+
+ Rev 1.77 05 Jul 1996 14:55:38 OS
+ Anzeige der akt. Seitennummer w„hrend des Scrollens in der nicht-Browse-View
+
+ Rev 1.76 26 Jun 1996 15:02:04 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.75 19 Jun 1996 12:30:04 OM
+ Umstellung auf 323
+
+ Rev 1.74 10 Jun 1996 17:55:50 MA
+ Breite+HScroll fuer Browser
+
+ Rev 1.73 31 May 1996 07:52:04 OS
+ _CreateScrollbar: nach InvalidateBorder Pointer nochmal testen
+
+ Rev 1.72 24 May 1996 09:20:20 OS
+ neu: CreatePageButtons
+
+ Rev 1.71 09 May 1996 15:18:58 OS
+ HLineal ist immer existent und wird nur noch versteckt
+
+ Rev 1.70 06 May 1996 17:00:36 MA
+ chg: Scrollbars fuer browse und ole richtig
+
+ Rev 1.69 24 Apr 1996 15:02:12 OS
+ Umstellung UsrPref/ViewOption
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx
new file mode 100644
index 000000000000..6a091614e638
--- /dev/null
+++ b/sw/source/ui/uiview/viewport.cxx
@@ -0,0 +1,1508 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewport.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SV_HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+#ifndef _SVX_PAPERINF_HXX //autogen
+#include <svx/paperinf.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXSTBMGR_HXX //autogen
+#include <sfx2/stbmgr.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "swmodule.hxx"
+#include "viewopt.hxx"
+#include "frmatr.hxx"
+#include "docsh.hxx"
+#include "cmdid.h"
+#include "edtwin.hxx"
+#include "scroll.hxx"
+#include "wview.hxx"
+#include "usrpref.hxx"
+#include "pagedesc.hxx"
+#include "workctrl.hxx"
+
+//Das SetVisArea der DocShell darf nicht vom InnerResizePixel gerufen werden.
+//Unsere Einstellungen muessen aber stattfinden.
+static BOOL bProtectDocShellVisArea = FALSE;
+
+static USHORT nPgNum = 0;
+
+inline BOOL SwView::IsDocumentBorder()
+{
+ return GetDocShell()->GetProtocol().IsInPlaceActive() ||
+ GetDocShell()->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ||
+ pWrtShell->IsBrowseMode();
+}
+
+inline long GetLeftMargin( SwView &rView )
+{
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, &rView);
+ SvxZoomType eType = (SvxZoomType)SW_MOD()->GetUsrPref(bWeb)->GetZoomType();
+ long lRet = rView.GetWrtShell().GetAnyCurRect(RECT_PAGE_PRT).Left();
+ return eType == SVX_ZOOM_PERCENT ? lRet + DOCUMENTBORDER :
+ eType == SVX_ZOOM_PAGEWIDTH ? 0 :
+ lRet + DOCUMENTBORDER + nLeftOfst;
+}
+
+//-------------------------------------------------------------------------
+
+void lcl_GetPos(SwView* pView,
+ Point& rPos,
+ SwScrollbar* pScrollbar,
+ FASTBOOL bBorder)
+{
+ SwWrtShell &rSh = pView->GetWrtShell();
+ const Size aDocSz( rSh.GetDocSize() );
+
+ const long lBorder = bBorder ? DOCUMENTBORDER : DOCUMENTBORDER * 2;
+ BOOL bHori = pScrollbar->IsHoriScroll();
+
+ const long lPos = pScrollbar->GetThumbPos() + (bBorder ? DOCUMENTBORDER : 0);
+ long Point:: *pPt = bHori ? &Point::nA : &Point::nB;
+ long Size:: *pSz = bHori ? &Size::nA : &Size::nB;
+
+ long lDelta = lPos - rSh.VisArea().Pos().*pPt;
+ const long lSize = aDocSz.*pSz + lBorder;
+ // Bug 11693: sollte rechts oder unten zuviel Wiese sein, dann muss
+ // diese von der VisArea herausgerechnet werden!
+ long nTmp = pView->GetVisArea().Right()+lDelta;
+ if ( bHori && nTmp > lSize )
+ lDelta -= nTmp - lSize;
+ nTmp = pView->GetVisArea().Bottom()+lDelta;
+ if ( !bHori && nTmp > lSize )
+ lDelta -= nTmp - lSize;
+
+ rPos.*pPt += lDelta;
+ if ( bBorder && rPos.*pPt < DOCUMENTBORDER )
+ rPos.*pPt = DOCUMENTBORDER;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Nullpunkt Lineal setzen
+ --------------------------------------------------------------------*/
+
+void SwView::InvalidateRulerPos()
+{
+ static USHORT __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_PARA_LRSPACE, SID_RULER_BORDERS, SID_RULER_PAGE_POS,
+ SID_RULER_LR_MIN_MAX, SID_ATTR_LONG_ULSPACE, SID_ATTR_LONG_LRSPACE,
+ FN_STAT_PAGE, 0
+ };
+
+ GetViewFrame()->GetBindings().Invalidate(aInval);
+
+ DBG_ASSERT(pHLineal, "warum ist das Lineal nicht da?")
+ pHLineal->ForceUpdate();
+ if( pVLineal )
+ pVLineal->ForceUpdate();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: begrenzt das Scrollen soweit, dass jeweils nur einen
+ viertel Bildschirm bis vor das Ende des Dokumentes
+ gescrollt werden kann.
+ --------------------------------------------------------------------*/
+
+long SwView::SetHScrollMax( long lMax )
+{
+ const long lBorder = IsDocumentBorder() ? DOCUMENTBORDER : DOCUMENTBORDER * 2;
+ const long lSize = GetDocSz().Width() + lBorder - aVisArea.GetWidth();
+
+ // bei negativen Werten ist das Dokument vollstaendig sichtbar;
+ // in diesem Fall kein Scrollen
+ return Max( Min( lMax, lSize ), 0L );
+}
+
+
+long SwView::SetVScrollMax( long lMax )
+{
+ const long lBorder = IsDocumentBorder() ? DOCUMENTBORDER : DOCUMENTBORDER * 2;
+ long lSize = GetDocSz().Height() + lBorder - aVisArea.GetHeight();
+ return Max( Min( lMax, lSize), 0L ); // siehe horz.
+}
+
+
+Point SwView::AlignToPixel(const Point &rPt) const
+{
+ return GetEditWin().PixelToLogic( GetEditWin().LogicToPixel( rPt ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Dokumentgroesse hat sich geaendert
+ --------------------------------------------------------------------*/
+
+void SwView::DocSzChgd(const Size &rSz)
+{
+
+extern int bDocSzUpdated;
+
+ aDocSz = rSz;
+
+ if( !pWrtShell || aVisArea.IsEmpty() ) // keine Shell -> keine Aenderung
+ {
+ bDocSzUpdated = FALSE;
+ return;
+ }
+
+ //Wenn Text geloescht worden ist, kann es sein, dass die VisArea hinter
+ //den sichtbaren Bereich verweist
+ Rectangle aNewVisArea( aVisArea );
+ BOOL bModified = FALSE;
+ const SwTwips lGreenOffset = IsDocumentBorder() ? DOCUMENTBORDER : DOCUMENTBORDER * 2;
+ SwTwips lTmp = aDocSz.Width() + lGreenOffset;
+ if ( aNewVisArea.Right() >= lTmp )
+ {
+ lTmp = aNewVisArea.Right() - lTmp;
+ aNewVisArea.Right() -= lTmp;
+ aNewVisArea.Left() -= lTmp;
+ bModified = TRUE;
+ }
+ lTmp = aDocSz.Height() + lGreenOffset;
+ if ( aNewVisArea.Bottom() >= lTmp )
+ {
+ lTmp = aNewVisArea.Bottom() - lTmp;
+ aNewVisArea.Bottom() -= lTmp;
+ aNewVisArea.Top() -= lTmp;
+ bModified = TRUE;
+ }
+
+ if ( bModified )
+ SetVisArea( aNewVisArea, FALSE );
+
+// FASTBOOL bHResize = pHScrollbar && pHScrollbar->IsAuto() && pHScrollbar->IsVisible();
+// FASTBOOL bVResize = pVScrollbar && pVScrollbar->IsAuto() && pVScrollbar->IsVisible();
+ if ( UpdateScrollbars() && !bInOuterResizePixel )//&&
+// ((bHResize != (pHScrollbar && pHScrollbar->IsAuto() && pHScrollbar->IsVisible())) ||
+// (bVResize != (pVScrollbar && pVScrollbar->IsAuto() && pVScrollbar->IsVisible()))) )
+ {
+ OuterResizePixel( Point(),
+ GetViewFrame()->GetWindow().GetOutputSizePixel() );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Visarea neu setzen
+ --------------------------------------------------------------------*/
+
+void SwView::SetVisArea( const Rectangle &rRect, BOOL bUpdateScrollbar )
+{
+ const Size aOldSz( aVisArea.GetSize() );
+
+ const Point aTopLeft( AlignToPixel( rRect.TopLeft() ));
+ const Point aBottomRight( AlignToPixel( rRect.BottomRight() ));
+ Rectangle aLR( aTopLeft, aBottomRight );
+
+ if( aLR == aVisArea )
+ return;
+
+ const SwTwips lMin = IsDocumentBorder() ? DOCUMENTBORDER : 0;
+
+ // keine negative Position, keine neg. Groesse
+ if( aLR.Top() < lMin )
+ {
+ aLR.Bottom() += lMin - aLR.Top();
+ aLR.Top() = lMin;
+ }
+ if( aLR.Left() < lMin )
+ {
+ aLR.Right() += lMin - aLR.Left();
+ aLR.Left() = lMin;
+ }
+ if( aLR.Right() < 0 )
+ aLR.Right() = 0;
+ if( aLR.Bottom() < 0 )
+ aLR.Bottom() = 0;
+
+ if( aLR == aVisArea )
+ return;
+
+ const Size aSize( aLR.GetSize() );
+ if( aSize.Width() < 0 || aSize.Height() < 0 )
+ return;
+
+ //Bevor die Daten veraendert werden ggf. ein Update rufen. Dadurch wird
+ //sichergestellt, daá anliegende Paints korrekt in Dokumentkoordinaten
+ //umgerechnet werden.
+ //Vorsichtshalber tun wir das nur wenn an der Shell eine Action laeuft,
+ //denn dann wir nicht wirklich gepaintet sondern die Rechtecke werden
+ //lediglich (in Dokumentkoordinaten) vorgemerkt.
+ if ( pWrtShell && pWrtShell->ActionPend() )
+ pWrtShell->GetWin()->Update();
+
+ aVisArea = aLR;
+
+ const FASTBOOL bOuterResize = bUpdateScrollbar && UpdateScrollbars() && !bInOuterResizePixel;
+
+ if ( pWrtShell )
+ {
+ pWrtShell->VisPortChgd( aVisArea );
+ if ( aOldSz != pWrtShell->VisArea().SSize() &&
+ ( Abs(aOldSz.Width() - pWrtShell->VisArea().Width()) > 2 ||
+ Abs(aOldSz.Height() - pWrtShell->VisArea().Height()) > 2 ) )
+ pWrtShell->CheckBrowseView( FALSE );
+ }
+
+ if ( !bProtectDocShellVisArea )
+ {
+ //Wenn die Groesse der VisArea unveraendert ist, reichen wir die
+ //Groesse der VisArea vom InternalObject weiter. Damit soll der
+ //Transport von Fehlern vermieden werden.
+ Rectangle aVis( aVisArea );
+ if ( aVis.GetSize() == aOldSz )
+ aVis.SetSize(
+ GetDocShell()->SfxInPlaceObject::GetVisArea().GetSize() );
+
+ //Bei embedded immer mit Modify...
+ if ( GetDocShell()->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
+ GetDocShell()->SfxInPlaceObject::SetVisArea( aVis );
+ else
+ GetDocShell()->SvEmbeddedObject::SetVisArea( aVis );
+ }
+
+ SfxViewShell::VisAreaChanged( aVisArea );
+
+ InvalidateRulerPos();
+
+ SwEditWin::ClearTip();
+
+ if ( bOuterResize )
+ OuterResizePixel( Point(),
+ GetViewFrame()->GetWindow().GetOutputSizePixel() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Pos VisArea setzen
+ --------------------------------------------------------------------*/
+
+void SwView::SetVisArea( const Point &rPt, BOOL bUpdateScrollbar )
+{
+ //einmal alignen, damit Brushes korrekt angesetzt werden.
+ //MA 31. May. 96: Das geht in der BrowseView schief, weil evlt.
+ //nicht das ganze Dokument sichtbar wird. Da der Inhalt in Frames
+ //passgenau ist, kann nicht aligned werden (bessere Idee?!?!)
+ //MA 29. Oct. 96 (fix: Bild.de, 200%) ganz ohne Alignment geht es nicht
+ //mal sehen wie weit wir mit der halben BrushSize kommen.
+ //TODO: why BRUSH_SIZE?
+ Point aPt( rPt );
+// const long nTmp = GetWrtShell().IsFrameView() ? BRUSH_SIZE/2 : BRUSH_SIZE;
+ const long nTmp = GetWrtShell().IsFrameView() ? 4 : 8;
+ aPt = GetEditWin().LogicToPixel( aPt );
+ aPt.X() -= aPt.X() % nTmp;
+ aPt.Y() -= aPt.Y() % nTmp;
+ aPt = GetEditWin().PixelToLogic( aPt );
+
+ if ( aPt == aVisArea.TopLeft() )
+ return;
+
+ const long lXDiff = aVisArea.Left() - aPt.X();
+ const long lYDiff = aVisArea.Top() - aPt.Y();
+ SetVisArea( Rectangle( aPt,
+ Point( aVisArea.Right() - lXDiff, aVisArea.Bottom() - lYDiff ) ),
+ bUpdateScrollbar);
+}
+
+
+void SwView::CheckVisArea()
+{
+ if ( pHScrollbar )
+ pHScrollbar->SetAuto( pWrtShell->IsBrowseMode() &&
+ !GetDocShell()->GetProtocol().IsInPlaceActive() );
+ if ( IsDocumentBorder() )
+ {
+ if ( aVisArea.Left() != DOCUMENTBORDER ||
+ aVisArea.Top() != DOCUMENTBORDER )
+ {
+ Rectangle aNewVisArea( aVisArea );
+ aNewVisArea.Move( DOCUMENTBORDER - aVisArea.Left(),
+ DOCUMENTBORDER - aVisArea.Top() );
+ SetVisArea( aNewVisArea, TRUE );
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Sichtbaren Bereich berechnen
+
+ OUT Point *pPt: neue Position des sichtbaren
+ Bereiches
+ IN Rectangle &rRect: Rechteck, das sich innerhalb des neuen
+ sichtbaren Bereiches befinden soll
+ USHORT nRange optional exakte Angabe des Bereiches,
+ um den ggfs. gescrollt werden soll
+ --------------------------------------------------------------------*/
+
+void SwView::CalcPt( Point *pPt, const Rectangle &rRect,
+ USHORT nRangeX, USHORT nRangeY)
+{
+
+ const SwTwips lMin = IsDocumentBorder() ? DOCUMENTBORDER : 0;
+
+ long nYScroll = GetYScroll();
+ long nDesHeight = rRect.GetHeight();
+ long nCurHeight = aVisArea.GetHeight();
+ nYScroll = Min(nYScroll, nCurHeight - nDesHeight); // wird es knapp, dann nicht zuviel scrollen
+ if(nDesHeight > nCurHeight) // die Hoehe reicht nicht aus, dann interessiert nYScroll nicht mehr
+ {
+ pPt->Y() = rRect.Top();
+ pPt->Y() = Max( lMin, pPt->Y() );
+ }
+ else if ( rRect.Top() < aVisArea.Top() ) //Verschiebung nach oben
+ {
+ pPt->Y() = rRect.Top() - (nRangeY != USHRT_MAX ? nRangeY : nYScroll);
+ pPt->Y() = Max( lMin, pPt->Y() );
+ }
+ else if( rRect.Bottom() > aVisArea.Bottom() ) //Verschiebung nach unten
+ {
+ pPt->Y() = rRect.Bottom() -
+ (aVisArea.GetHeight()) + ( nRangeY != USHRT_MAX ?
+ nRangeY : nYScroll );
+ pPt->Y() = SetVScrollMax( pPt->Y() );
+ }
+ long nXScroll = GetXScroll();
+ if ( rRect.Right() > aVisArea.Right() ) //Verschiebung nach rechts
+ {
+ pPt->X() = rRect.Right() -
+ (aVisArea.GetWidth()) +
+ (nRangeX != USHRT_MAX ? nRangeX : nXScroll);
+ pPt->X() = SetHScrollMax( pPt->X() );
+ }
+ else if ( rRect.Left() < aVisArea.Left() ) //Verschiebung nach links
+ {
+ pPt->X() = rRect.Left() -
+ (nRangeX != USHRT_MAX ? nRangeX : nXScroll);
+ pPt->X() = Max( ::GetLeftMargin( *this ) + nLeftOfst, pPt->X() );
+ pPt->X() = Min( rRect.Left() - nScrollX, pPt->X() );
+ pPt->X() = Max( 0L, pPt->X() );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Scrolling
+ --------------------------------------------------------------------*/
+
+BOOL SwView::IsScroll( const Rectangle &rRect ) const
+{
+ return bCenterCrsr || bTopCrsr || !aVisArea.IsInside(rRect);
+}
+
+
+void SwView::Scroll( const Rectangle &rRect, USHORT nRangeX, USHORT nRangeY )
+{
+ if ( aVisArea.IsEmpty() )
+ return;
+
+ Rectangle aOldVisArea( aVisArea );
+ long nDiffY = 0;
+
+ Window* pCareWn = GetWrtShell().GetCareWin();
+ if ( pCareWn )
+ {
+ Rectangle aDlgRect( GetEditWin().PixelToLogic(
+ GetEditWin().ScreenToOutputPixel( pCareWn->GetPosPixel() ) ),
+ GetEditWin().PixelToLogic( pCareWn->GetSizePixel() ) );
+ // Nur, wenn der Dialog nicht rechts oder links der VisArea liegt:
+ if ( aDlgRect.Left() < aVisArea.Right() &&
+ aDlgRect.Right() > aVisArea.Left() )
+ {
+ // Falls wir nicht zentriert werden sollen, in der VisArea liegen
+ // und nicht vom Dialog ueberdeckt werden ...
+ if ( !bCenterCrsr && aOldVisArea.IsInside( rRect )
+ && ( rRect.Left() > aDlgRect.Right()
+ || rRect.Right() < aDlgRect.Left()
+ || rRect.Top() > aDlgRect.Bottom()
+ || rRect.Bottom() < aDlgRect.Top() ) )
+ return;
+
+ // Ist oberhalb oder unterhalb der Dialogs mehr Platz?
+ long nTopDiff = aDlgRect.Top() - aVisArea.Top();
+ long nBottomDiff = aVisArea.Bottom() - aDlgRect.Bottom();
+ if ( nTopDiff < nBottomDiff )
+ {
+ if ( nBottomDiff > 0 ) // Ist unterhalb ueberhaupt Platz?
+ { // dann verschieben wir die Oberkante und merken uns dies
+ nDiffY = aDlgRect.Bottom() - aVisArea.Top();
+ aVisArea.Top() += nDiffY;
+ }
+ }
+ else
+ {
+ if ( nTopDiff > 0 ) // Ist oberhalb ueberhaupt Platz?
+ aVisArea.Bottom() = aDlgRect.Top(); // Unterkante aendern
+ }
+ }
+ }
+
+ //s.o. !IsScroll()
+ if( !(bCenterCrsr || bTopCrsr) && aVisArea.IsInside( rRect ) )
+ {
+ aVisArea = aOldVisArea;
+ return;
+ }
+ //falls das Rechteck groesser als der sichtbare Bereich -->
+ //obere linke Ecke
+ Size aSize( rRect.GetSize() );
+ const Size aVisSize( aVisArea.GetSize() );
+ if( !aVisArea.IsEmpty() && (
+ aSize.Width() + GetXScroll() > aVisSize.Width() ||
+ aSize.Height()+ GetYScroll() > aVisSize.Height() ))
+ {
+ Point aPt( aVisArea.TopLeft() );
+ aSize.Width() = Min( aSize.Width(), aVisSize.Width() );
+ aSize.Height()= Min( aSize.Height(),aVisSize.Height());
+
+ CalcPt( &aPt, Rectangle( rRect.TopLeft(), aSize ),
+ (aVisSize.Width() - aSize.Width()) / 2,
+ (aVisSize.Height()- aSize.Height())/ 2 );
+
+ if( bTopCrsr )
+ {
+ long nBorder = IsDocumentBorder() ? DOCUMENTBORDER : 0;
+ aPt.Y() = Min( Max( nBorder, rRect.Top() ),
+ aDocSz.Height() + nBorder -
+ aVisArea.GetHeight() );
+ }
+ aPt.Y() -= nDiffY;
+ aVisArea = aOldVisArea;
+ SetVisArea( aPt );
+ return;
+ }
+ if( !bCenterCrsr )
+ {
+ Point aPt( aVisArea.TopLeft() );
+ CalcPt( &aPt, rRect, nRangeX, nRangeY );
+
+ if( bTopCrsr )
+ {
+ long nBorder = IsDocumentBorder() ? DOCUMENTBORDER : 0;
+ aPt.Y() = Min( Max( nBorder, rRect.Top() ),
+ aDocSz.Height() + nBorder -
+ aVisArea.GetHeight() );
+ }
+
+ aPt.Y() -= nDiffY;
+ aVisArea = aOldVisArea;
+ SetVisArea( aPt );
+ return;
+ }
+
+ //Cursor zentrieren
+ Point aPnt( aVisArea.TopLeft() );
+ // ... in Y-Richtung auf jeden Fall
+ aPnt.Y() += ( rRect.Top() + rRect.Bottom()
+ - aVisArea.Top() - aVisArea.Bottom() ) / 2 - nDiffY;
+ // ... in X-Richtung nur, wenn das Rechteck rechts oder links aus der
+ // VisArea hinausragt.
+ if ( rRect.Right() > aVisArea.Right() || rRect.Left() < aVisArea.Left() )
+ {
+ aPnt.X() += ( rRect.Left() + rRect.Right()
+ - aVisArea.Left() - aVisArea.Right() ) / 2;
+ aPnt.X() = SetHScrollMax( aPnt.X() );
+ const SwTwips lMin = IsDocumentBorder() ? DOCUMENTBORDER : 0;
+ aPnt.X() = Max( (GetLeftMargin( *this ) - lMin) + nLeftOfst, aPnt.X() );
+ }
+ aVisArea = aOldVisArea;
+ if( pCareWn )
+ { // Wenn wir nur einem Dialog ausweichen wollen, wollen wir nicht ueber
+ // das Ende des Dokument hinausgehen.
+ aPnt.Y() = SetVScrollMax( aPnt.Y() );
+ }
+ SetVisArea( aPnt );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Seitenweises Scrollen
+ Liefern den Wert, um den bei PageUp / -Down gescrollt werden soll
+ --------------------------------------------------------------------*/
+
+BOOL SwView::GetPageScrollUpOffset( SwTwips &rOff ) const
+{
+ if ( !aVisArea.Top() || !aVisArea.GetHeight() )
+ return FALSE;
+ rOff = -(aVisArea.GetHeight() - (GetYScroll() / 2));
+ //nicht vor den Dokumentanfang scrollen
+ rOff = aVisArea.Top() - rOff < 0 ? rOff - aVisArea.Top() : rOff;
+ return TRUE;
+}
+
+
+BOOL SwView::GetPageScrollDownOffset( SwTwips &rOff ) const
+{
+ if ( !aVisArea.GetHeight() ||
+ (aVisArea.GetHeight() > aDocSz.Height()) )
+ return FALSE;
+ rOff = aVisArea.GetHeight() - (GetYScroll() / 2);
+ //nicht hinter das Dokumentende scrollen
+ if ( aVisArea.Top() + rOff > aDocSz.Height() )
+ rOff = aDocSz.Height() - aVisArea.Bottom();
+ return rOff > 0;
+}
+
+// Seitenweises Blaettern
+
+long SwView::PageUp()
+{
+ if (!aVisArea.GetHeight())
+ return 0;
+
+ Point aPos(aVisArea.TopLeft());
+ aPos.Y() -= aVisArea.GetHeight() - (GetYScroll() / 2);
+ aPos.Y() = Max(0L, aPos.Y());
+ SetVisArea( aPos );
+ return 1;
+}
+
+
+long SwView::PageDown()
+{
+ if ( !aVisArea.GetHeight() )
+ return 0;
+ Point aPos( aVisArea.TopLeft() );
+ aPos.Y() += aVisArea.GetHeight() - (GetYScroll() / 2);
+ aPos.Y() = SetVScrollMax( aPos.Y() );
+ SetVisArea( aPos );
+ return 1;
+}
+
+
+long SwView::PhyPageUp()
+{
+ //aktuell sichtbare Seite erfragen, nicht formatieren
+ USHORT nActPage = pWrtShell->GetNextPrevPageNum( FALSE );
+
+ if( USHRT_MAX != nActPage )
+ {
+ const Point aPt( aVisArea.Left(),
+ pWrtShell->GetPagePos( nActPage ).Y() );
+ Point aAlPt( AlignToPixel( aPt ) );
+ // falls ein Unterschied besteht, wurde abgeschnitten --> dann
+ // einen Pixel addieren, damit kein Rest der Vorgaengerseite
+ // sichtbar ist
+ if( aPt.Y() != aAlPt.Y() )
+ aAlPt.Y() += GetEditWin().PixelToLogic( Size( 0, 1 ) ).Height();
+ SetVisArea( aAlPt );
+ }
+ return 1;
+}
+
+
+long SwView::PhyPageDown()
+{
+ //aktuell sichtbare Seite erfragen, nicht formatieren
+ USHORT nActPage = pWrtShell->GetNextPrevPageNum( TRUE );
+ // falls die letzte Dokumentseite sichtbar ist, nichts tun
+ if( USHRT_MAX != nActPage )
+ {
+ const Point aPt( aVisArea.Left(),
+ pWrtShell->GetPagePos( nActPage ).Y() );
+ Point aAlPt( AlignToPixel( aPt ) );
+ // falls ein Unterschied besteht, wurde abgeschnitten --> dann
+ // einen Pixel addieren, damit kein Rest der Vorgaengerseite sichtbar ist
+ if( aPt.Y() != aAlPt.Y() )
+ aAlPt.Y() += GetEditWin().PixelToLogic( Size( 0, 1 ) ).Height();
+ SetVisArea( aAlPt );
+ }
+ return 1;
+}
+
+
+long SwView::PageUpCrsr( BOOL bSelect )
+{
+ if ( !bSelect )
+ {
+ const USHORT eType = pWrtShell->GetFrmType(0,TRUE);
+ if ( eType & FRMTYPE_FOOTNOTE )
+ {
+ pWrtShell->MoveCrsr();
+ pWrtShell->GotoFtnAnchor();
+ pWrtShell->Right();
+ return 1;
+ }
+ }
+
+ SwTwips lOff = 0;
+ if ( GetPageScrollUpOffset( lOff ) &&
+ (pWrtShell->IsCrsrReadonly() ||
+ !pWrtShell->PageCrsr( lOff, bSelect )) &&
+ PageUp() )
+ {
+ pWrtShell->ResetCursorStack();
+ return TRUE;
+ }
+ return FALSE;
+}
+
+
+long SwView::PageDownCrsr(BOOL bSelect)
+{
+ SwTwips lOff = 0;
+ if ( GetPageScrollDownOffset( lOff ) &&
+ (pWrtShell->IsCrsrReadonly() ||
+ !pWrtShell->PageCrsr( lOff, bSelect )) &&
+ PageDown() )
+ {
+ pWrtShell->ResetCursorStack();
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Handler der Scrollbars
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwView, ScrollHdl, SwScrollbar *, pScrollbar )
+{
+ if ( GetWrtShell().ActionPend() )
+ return 0;
+
+ if ( pScrollbar->GetType() == SCROLL_DRAG )
+ pWrtShell->EnableSmooth( FALSE );
+
+ if(!pWrtShell->IsBrowseMode() &&
+ pScrollbar->GetType() == SCROLL_DRAG)
+ {
+ //Hier wieder auskommentieren wenn das mitscrollen nicht gewuenscht ist.
+ // JP 21.07.00: the end scrollhandler invalidate the FN_STAT_PAGE,
+ // so we dont must do it agin.
+ EndScrollHdl(pScrollbar);
+
+ Point aPos( aVisArea.TopLeft() );
+ lcl_GetPos(this, aPos, pScrollbar, IsDocumentBorder());
+
+ USHORT nPhNum = 1;
+ USHORT nVirtNum = 1;
+
+ String sDisplay;
+ if(pWrtShell->GetPageNumber( aPos.Y(), FALSE, nPhNum, nVirtNum, sDisplay ))
+ {
+ // JP 21.07.00: the end scrollhandler invalidate the FN_STAT_PAGE,
+ // so we dont must do it agin.
+// if(!GetDocShell()->GetProtocol().IsInPlaceActive())
+// S F X_BINDINGS().Update(FN_STAT_PAGE);
+
+ //QuickHelp:
+ USHORT nPageCnt = pWrtShell->GetPageCnt();
+ if( nPageCnt > 1 && Help::IsQuickHelpEnabled() )
+ {
+ if( !nPgNum || nPgNum != nPhNum )
+ {
+ Rectangle aRect;
+ aRect.Left() = pScrollbar->GetParent()->OutputToScreenPixel(
+ pScrollbar->GetPosPixel() ).X() -8;
+ aRect.Top() = pScrollbar->OutputToScreenPixel(
+ pScrollbar->GetPointerPosPixel() ).Y();
+ aRect.Right() = aRect.Left();
+ aRect.Bottom() = aRect.Top();
+
+ String sPageStr( GetPageStr( nPhNum, nVirtNum, sDisplay ));
+ SwContentAtPos aCnt( SwContentAtPos::SW_OUTLINE );
+ pWrtShell->GetContentAtPos( aPos, aCnt );
+ if( aCnt.sStr.Len() )
+ {
+ sPageStr += String::CreateFromAscii(
+ RTL_CONSTASCII_STRINGPARAM( " - " ));
+ sPageStr.Insert( aCnt.sStr, 0, 80 );
+ sPageStr.SearchAndReplaceAll( '\t', ' ' );
+ }
+
+ Help::ShowQuickHelp( pScrollbar, aRect, sPageStr,
+ QUICKHELP_RIGHT|QUICKHELP_VCENTER);
+ }
+ nPgNum = nPhNum;
+ }
+ }
+ }
+ else
+ EndScrollHdl(pScrollbar);
+
+ if ( pScrollbar->GetType() == SCROLL_DRAG )
+ pWrtShell->EnableSmooth( TRUE );
+
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Handler der Scrollbars
+------------------------------------------------------------------------*/
+
+IMPL_LINK( SwView, EndScrollHdl, SwScrollbar *, pScrollbar )
+{
+ if ( !GetWrtShell().ActionPend() )
+ {
+ if(nPgNum)
+ {
+ nPgNum = 0;
+ Help::ShowQuickHelp(pScrollbar, Rectangle(), aEmptyStr, 0);
+ }
+ Point aPos( aVisArea.TopLeft() );
+ FASTBOOL bBorder = IsDocumentBorder();
+ lcl_GetPos(this, aPos, pScrollbar, bBorder);
+ if ( bBorder && aPos == aVisArea.TopLeft() )
+ UpdateScrollbars();
+ else
+ SetVisArea( aPos, FALSE );
+
+ GetViewFrame()->GetBindings().Update(FN_STAT_PAGE);
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+
+ berechnet die Groesse von aVisArea abhaengig von der Groesse
+ des EditWin auf dem Schirm.
+
+ --------------------------------------------------------------------*/
+
+void SwView::CalcVisArea( const Size &rOutPixel )
+{
+ Point aTopLeft;
+ Rectangle aRect( aTopLeft, rOutPixel );
+ aTopLeft = GetEditWin().PixelToLogic( aTopLeft );
+ Point aBottomRight( GetEditWin().PixelToLogic( aRect.BottomRight() ) );
+
+ aRect.Left() = aTopLeft.X();
+ aRect.Top() = aTopLeft.Y();
+ aRect.Right() = aBottomRight.X();
+ aRect.Bottom() = aBottomRight.Y();
+
+ //Die Verschiebungen nach rechts und/oder unten koennen jetzt falsch
+ //sein (z.B. Zoom aendern, Viewgroesse aendern.
+ const long lBorder = IsDocumentBorder() ? DOCUMENTBORDER : DOCUMENTBORDER*2;
+ if ( aRect.Left() )
+ {
+ const long lWidth = GetWrtShell().GetDocSize().Width() + lBorder;
+ if ( aRect.Right() > lWidth )
+ {
+ long lDelta = aRect.Right() - lWidth;
+ aRect.Left() -= lDelta;
+ aRect.Right() -= lDelta;
+ }
+ }
+ if ( aRect.Top() )
+ {
+ const long lHeight = GetWrtShell().GetDocSize().Height() + lBorder;
+ if ( aRect.Bottom() > lHeight )
+ {
+ long lDelta = aRect.Bottom() - lHeight;
+ aRect.Top() -= lDelta;
+ aRect.Bottom() -= lDelta;
+ }
+ }
+ SetVisArea( aRect );
+ GetViewFrame()->GetBindings().Invalidate( SID_ATTR_ZOOM );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Bedienelemente neu anordnen
+ --------------------------------------------------------------------*/
+
+
+void SwView::CalcAndSetBorderPixel( SvBorder &rToFill, FASTBOOL bInner )
+{
+ if ( pVLineal )
+ rToFill.Left() = pVLineal->GetSizePixel().Width();
+
+ DBG_ASSERT(pHLineal, "warum ist das Lineal nicht da?")
+ if ( pHLineal->IsVisible() )
+ rToFill.Top() = pHLineal->GetSizePixel().Height();
+
+ const StyleSettings &rSet = GetEditWin().GetSettings().GetStyleSettings();
+ const long nTmp = rSet.GetScrollBarSize();
+ if ( pVScrollbar && (pVScrollbar->IsVisible() || !pVScrollbar->IsAuto()) )
+ rToFill.Right() = nTmp;
+
+ if ( pHScrollbar && (pHScrollbar->IsVisible() || !pHScrollbar->IsAuto()) )
+ rToFill.Bottom() = nTmp;
+
+ SetBorderPixel( rToFill );
+}
+
+
+void ViewResizePixel( const Window &rRef,
+ const Point &rOfst,
+ const Size &rSize,
+ const Size &rEditSz,
+ const BOOL bInner,
+ SwScrollbar* pVScrollbar,
+ SwScrollbar* pHScrollbar,
+ ImageButton* pPageUpBtn,
+ ImageButton* pPageDownBtn,
+ ImageButton* pNaviBtn,
+ Window* pScrollBarBox,
+ SvxRuler* pVLineal,
+ SvxRuler* pHLineal,
+ BOOL bIgnoreVisibility,
+ BOOL bWebView )
+{
+// ViewResizePixel wird auch von der PreView benutzt!!!
+
+ const BOOL bHLineal = pHLineal && pHLineal->IsVisible();
+ const long nHLinSzHeight = bHLineal ?
+ pHLineal->GetSizePixel().Height() : 0;
+ const long nVLinSzWidth = pVLineal ?
+ pVLineal->GetSizePixel().Width() : 0;
+ long nHBSzHeight2= pHScrollbar && (pHScrollbar->IsVisible() || !pHScrollbar->IsAuto()) ?
+ rRef.GetSettings().GetStyleSettings().GetScrollBarSize() : 0;
+ long nHBSzHeight = pHScrollbar && (bIgnoreVisibility || pHScrollbar->IsVisible()) ?
+ nHBSzHeight2:0;
+ long nVBSzWidth = pVScrollbar && (pVScrollbar->IsVisible() || !pVScrollbar->IsAuto()) ? rRef.GetSettings().GetStyleSettings().GetScrollBarSize() : 0;
+
+ // Lineale anordnen
+ if ( pVLineal )
+ {
+ Point aPos( rOfst.X(), rOfst.Y()+nHLinSzHeight );
+ Size aSize( nVLinSzWidth, rEditSz.Height() );
+ pVLineal->SetPosSizePixel( aPos, aSize );
+ }
+// Lineal braucht ein Resize, sonst funktioniert es nicht im unischtbaren Zustand
+// if ( bHLineal )
+ if ( pHLineal ) //MA: In der Seitenansicht gibt es das Lineal nicht!
+ {
+ Size aSize( rSize.Width(), nHLinSzHeight );
+ if ( nVBSzWidth )
+ aSize.Width() -= nVBSzWidth;
+ if(!aSize.Height())
+ aSize.Height() = pHLineal->GetSizePixel().Height();
+ pHLineal->SetPosSizePixel( rOfst, aSize );
+// #46802 VCL ruft an unsichtbaren Fenstern kein Resize
+// fuer das Lineal ist das aber keine gute Idee
+ if(!pHLineal->IsVisible())
+ pHLineal->Resize();
+ }
+
+ // Scrollbars und SizeBox anordnen
+ Point aScrollFillPos;
+ if ( pHScrollbar && (pHScrollbar->IsVisible() || !pHScrollbar->IsAuto()) )
+ {
+ Point aPos( rOfst.X(),
+ rOfst.Y()+rSize.Height()-nHBSzHeight );
+ Size aSize( rSize.Width(), nHBSzHeight2 );
+ if ( nVBSzWidth )
+ aSize.Width() -= nVBSzWidth;
+ pHScrollbar->SetPosSizePixel( aPos, aSize );
+ aScrollFillPos.Y() = aPos.Y();
+ }
+ if ( pVScrollbar && (pVScrollbar->IsVisible()|| !pVScrollbar->IsAuto()))
+ {
+ Point aPos( rOfst.X()+rSize.Width()-nVBSzWidth,
+ rOfst.Y() );
+ Size aSize( nVBSzWidth, rSize.Height() );
+ Size aImgSz( nVBSzWidth, nVBSzWidth );
+
+ //#55949# wenn der Platz fuer Scrollbar und Page-Buttons zu klein wird, dann
+ // werden die Buttons versteckt
+ USHORT nCnt = pNaviBtn ? 3 : 2;
+ long nSubSize = (aImgSz.Width() * nCnt );
+ //
+ BOOL bHidePageButtons = aSize.Height() < ((bWebView ? 3 : 2) * nSubSize);
+ if(!bHidePageButtons)
+ aSize.Height() -= nSubSize;
+ else
+ aImgSz.Width() = 0; // kein Hide, weil das im Update Scrollbar missverstanden wird
+
+ if ( nHBSzHeight )
+ aSize.Height() -= nHBSzHeight;
+ pVScrollbar->SetPosSizePixel( aPos, aSize );
+
+ aPos.Y() += aSize.Height();
+ pPageUpBtn->SetPosSizePixel( aPos, aImgSz );
+ if(pNaviBtn)
+ {
+ aPos.Y() += aImgSz.Height();
+ pNaviBtn->SetPosSizePixel(aPos, aImgSz);
+ }
+
+ aPos.Y() += aImgSz.Height();
+ pPageDownBtn->SetPosSizePixel( aPos, aImgSz );
+
+
+ if( pHScrollbar )
+ {
+ aScrollFillPos.X() = aPos.X();
+ pScrollBarBox->SetPosSizePixel( aScrollFillPos,
+ Size( nHBSzHeight, nVBSzWidth) );
+ }
+ }
+}
+
+
+void SwView::ShowAtResize()
+{
+ const FASTBOOL bBrowse = pWrtShell->IsBrowseMode();
+ bShowAtResize = FALSE;
+ if ( pVLineal )
+ pVLineal->Show();
+ DBG_ASSERT(pHLineal, "warum ist das Lineal nicht da?")
+ if ( pWrtShell->GetViewOptions()->IsViewTabwin() )
+ pHLineal->Show();
+ if ( pHScrollbar && (!bBrowse ||
+ GetDocShell()->GetProtocol().IsInPlaceActive()) )
+ pHScrollbar->Show();
+ if ( pVScrollbar )
+ {
+ pVScrollbar->Show();
+ if(pPageUpBtn)
+ {
+ pPageUpBtn->Show();
+ pPageDownBtn->Show();
+ }
+ if(pNaviBtn)
+ pNaviBtn->Show();
+ if ( !bBrowse && pScrollFill )
+ pScrollFill->Show();
+ }
+}
+
+
+void __EXPORT SwView::InnerResizePixel( const Point &rOfst, const Size &rSize )
+{
+ SvBorder aBorder;
+ CalcAndSetBorderPixel( aBorder, TRUE );
+ Size aSz( rSize );
+ aSz.Height() += aBorder.Top() + aBorder.Bottom();
+ aSz.Width() += aBorder.Left() + aBorder.Right();
+ Size aEditSz( GetEditWin().GetOutputSizePixel() );
+ const BOOL bBrowse = pWrtShell->IsBrowseMode();
+ ViewResizePixel( GetEditWin(), rOfst, aSz, aEditSz, TRUE, pVScrollbar,
+ pHScrollbar, pPageUpBtn, pPageDownBtn,
+ pNaviBtn,
+ pScrollFill, pVLineal, pHLineal,
+ (!bBrowse || GetDocShell()->GetProtocol().IsInPlaceActive()),
+ 0 != PTR_CAST(SwWebView, this));
+ if ( bShowAtResize )
+ ShowAtResize();
+
+ if( pHLineal->IsVisible() || pVLineal )
+ {
+ const Fraction& rFrac = GetEditWin().GetMapMode().GetScaleX();
+ USHORT nZoom = USHORT(rFrac.GetNumerator() * 100L / rFrac.GetDenominator());
+
+ const Fraction aFrac( nZoom, 100 );
+ if ( pVLineal )
+ pVLineal->SetZoom( aFrac );
+ DBG_ASSERT(pHLineal, "warum ist das Lineal nicht da?")
+ if ( pHLineal->IsVisible() )
+ pHLineal->SetZoom( aFrac );
+ InvalidateRulerPos(); //Inhalt invalidieren.
+ }
+ //CursorStack zuruecksetzen, da die Cursorpositionen fuer PageUp/-Down
+ //nicht mehr zum aktuell sichtbaren Bereich passen
+ pWrtShell->ResetCursorStack();
+
+ //EditWin niemals einstellen!
+
+ //VisArea einstellen, aber dort nicht das SetVisArea der DocShell rufen!
+ bProtectDocShellVisArea = TRUE;
+ CalcVisArea( aEditSz );
+ bProtectDocShellVisArea = FALSE;
+}
+
+
+void __EXPORT SwView::OuterResizePixel( const Point &rOfst, const Size &rSize )
+{
+ if ( bInOuterResizePixel )
+ return;
+ bInOuterResizePixel = TRUE;
+
+// feststellen, ob Scrollbars angezeigt werden duerfen
+ FASTBOOL bBrowse = pWrtShell->IsBrowseMode();
+ FASTBOOL bShowH,
+ bShowV,
+ bAuto = FALSE,
+ bHAuto= bBrowse;
+ switch ( GetScrollingMode() )
+ {
+ case SCROLLING_DEFAULT:
+ {
+ const SwViewOption *pVOpt = pWrtShell->GetViewOptions();
+ if ( !pVOpt->IsReadonly() || pVOpt->IsStarOneSetting() )
+ {
+ bShowH = pVOpt->IsViewHScrollBar();
+ bShowV = pVOpt->IsViewVScrollBar();
+ break;
+ }
+ }
+ /* kein break hier */
+ case SCROLLING_AUTO:
+ bAuto = bHAuto = TRUE;
+ bShowH = bShowV = TRUE;
+ break;
+ case SCROLLING_YES:
+ bShowH = bShowV = TRUE;
+ break;
+ case SCROLLING_NO:
+ bShowH = bShowV = bHAuto = FALSE;
+ break;
+ }
+
+ if ( bShowH != StatHScrollbar() )
+ bShowH ? CreateHScrollbar() : KillHScrollbar();
+ if ( pHScrollbar )
+ {
+ pHScrollbar->SetUpdateMode(FALSE);
+ pHScrollbar->SetAuto( bHAuto );
+ }
+ if(bShowV != StatVScrollbar())
+ bShowV ? CreateVScrollbar() : KillVScrollbar();
+ if(pVScrollbar)
+ {
+ pVScrollbar->SetUpdateMode(FALSE);
+ pVScrollbar->SetAuto(bAuto);
+ }
+
+ SET_CURR_SHELL( pWrtShell );
+ FASTBOOL bRepeat = FALSE;
+ long nCnt = 0;
+ pWrtShell->LockPaint();
+ do
+ { ++nCnt;
+ const FASTBOOL bScroll1 = pVScrollbar ? pVScrollbar->IsVisible() : FALSE;
+ const FASTBOOL bScroll2 = pHScrollbar ? pHScrollbar->IsVisible() : FALSE;
+ SvBorder aBorder;
+ CalcAndSetBorderPixel( aBorder, FALSE );
+ const Size aEditSz( GetEditWin().GetOutputSizePixel() );
+ ViewResizePixel( GetEditWin(), rOfst, rSize, aEditSz, FALSE, pVScrollbar,
+ pHScrollbar, pPageUpBtn, pPageDownBtn,
+ pNaviBtn,
+ pScrollFill, pVLineal, pHLineal, !bBrowse,
+ 0 != PTR_CAST(SwWebView, this) );
+ if ( bShowAtResize )
+ ShowAtResize();
+
+ if( pHLineal->IsVisible() || pVLineal )
+ InvalidateRulerPos(); //Inhalt invalidieren.
+
+ //CursorStack zuruecksetzen, da die Cursorpositionen fuer PageUp/-Down
+ //nicht mehr zum aktuell sichtbaren Bereich passen
+ pWrtShell->ResetCursorStack();
+
+ //EditWin niemals einstellen!
+
+ //Die VisArea muss aber natuerlich eingestellt werden.
+ //jetzt ist auch der richtige Zeitpunkt den Zoom neu zu berechnen wenn
+ //es kein einfacher Faktor ist.
+ if ( aEditSz.Width() > 0 && aEditSz.Height() > 0 )
+ {
+ pWrtShell->StartAction();
+ CalcVisArea( aEditSz );
+
+ //Damit auch beim outplace editing die Seitenbreite sofort
+ //angepasst wird.
+ if ( GetDocShell()->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
+ GetDocShell()->SetVisArea(
+ GetDocShell()->SfxInPlaceObject::GetVisArea() );
+ if ( pWrtShell->GetViewOptions()->GetZoomType() != SVX_ZOOM_PERCENT &&
+ !pWrtShell->IsBrowseMode() )
+ _SetZoom( aEditSz, (SvxZoomType)pWrtShell->GetViewOptions()->GetZoomType() );
+ pWrtShell->EndAction();
+
+ bRepeat = bScroll1 != (pVScrollbar ? pVScrollbar->IsVisible() : FALSE);
+ if ( !bRepeat )
+ bRepeat = bScroll2 != (pHScrollbar ? pHScrollbar->IsVisible() : FALSE);
+ }
+ else
+ bRepeat = FALSE;
+
+ //Nicht endlosschleifen. Moeglichst dann stoppen wenn die
+ //(Auto-)Scrollbars sichtbar sind.
+ if ( bRepeat && nCnt > 10 ||
+ (nCnt > 3 && bHAuto && bAuto &&
+ (pVScrollbar ? pVScrollbar->IsVisible() == bAuto : TRUE) &&
+ (pHScrollbar ? pHScrollbar->IsVisible() == bHAuto : TRUE)) )
+ {
+ bRepeat = FALSE;
+ }
+
+ }while ( bRepeat );
+
+ if ( pHScrollbar )
+ pHScrollbar->SetUpdateMode(TRUE);
+
+ if(pVScrollbar)
+ {
+ pVScrollbar->SetUpdateMode(TRUE);
+ BOOL bShowButtons = pVScrollbar->IsVisible(TRUE);
+ if(pPageUpBtn && pPageUpBtn->IsVisible() != bShowButtons)
+ {
+ pPageUpBtn->Show(bShowButtons);
+ if(pPageDownBtn)
+ pPageDownBtn->Show(bShowButtons);
+ if(pNaviBtn)
+ pNaviBtn->Show(bShowButtons);
+ }
+ }
+
+ pWrtShell->UnlockPaint();
+ bInOuterResizePixel = FALSE;
+}
+
+
+void __EXPORT SwView::SetZoomFactor( const Fraction &rX, const Fraction &rY )
+{
+ const Fraction &rFrac = rX < rY ? rX : rY;
+ SetZoom( SVX_ZOOM_PERCENT, (short) long(rFrac * Fraction( 100, 1 )) );
+
+ //Um Rundungsfehler zu minimieren lassen wir von der Basisklasse ggf.
+ //auch die krummen Werte einstellen
+ SfxViewShell::SetZoomFactor( rX, rY );
+}
+
+
+Size __EXPORT SwView::GetOptimalSizePixel() const
+{
+ Size aPgSize;
+ if ( pWrtShell->IsBrowseMode() )
+ {
+ aPgSize.Height() = lA4Height;
+ aPgSize.Width() = lA4Width;
+ }
+ else
+ {
+ const SwPageDesc &rDesc = pWrtShell->GetPageDesc(
+ pWrtShell->GetCurPageDesc() );
+ const SvxLRSpaceItem &rLRSpace = rDesc.GetMaster().GetLRSpace();
+ aPgSize = GetWrtShell().GetAnyCurRect(RECT_PAGE).SSize();
+ if( PD_MIRROR == rDesc.GetUseOn() )
+ {
+ const SvxLRSpaceItem &rLeftLRSpace = rDesc.GetLeft().GetLRSpace();
+ aPgSize.Width() +=
+ Abs( long(rLeftLRSpace.GetLeft()) - long(rLRSpace.GetLeft()) );
+ }
+ aPgSize.Width() += DOCUMENTBORDER * 2;
+ }
+ return GetEditWin().LogicToPixel( aPgSize );
+}
+
+
+BOOL SwView::UpdateScrollbars()
+{
+ BOOL bRet = FALSE;
+ if ( !aVisArea.IsEmpty() && (pHScrollbar || pVScrollbar) )
+ {
+ const FASTBOOL bBorder = IsDocumentBorder();
+ Rectangle aTmpRect( aVisArea );
+ if ( bBorder )
+ {
+ Point aPt( DOCUMENTBORDER, DOCUMENTBORDER );
+ aPt = AlignToPixel( aPt );
+ aTmpRect.Move( -aPt.X(), -aPt.Y() );
+ }
+
+ Size aTmpSz( aDocSz );
+ const long lOfst = bBorder ? 0 : DOCUMENTBORDER * 2L;
+ aTmpSz.Width() += lOfst; aTmpSz.Height() += lOfst;
+
+ if ( pVScrollbar )
+ {
+ const BOOL bVis = pVScrollbar->IsVisible();
+ pVScrollbar->DocSzChgd( aTmpSz );
+ pVScrollbar->ViewPortChgd( aTmpRect );
+
+ BOOL bShowButtons = pVScrollbar->IsVisible(TRUE);
+ if(pPageUpBtn && pPageUpBtn->IsVisible() != bShowButtons)
+ {
+ pPageUpBtn->Show(bShowButtons);
+ if(pPageDownBtn)
+ pPageDownBtn->Show(bShowButtons);
+ if(pNaviBtn)
+ pNaviBtn->Show(bShowButtons);
+ }
+
+ if ( !bVis && !bShowAtResize && !pVScrollbar->IsAuto() )
+ pVScrollbar->Show();
+ if ( bVis != pVScrollbar->IsVisible() )
+ bRet = TRUE;
+ }
+ if ( pHScrollbar )
+ {
+ const BOOL bVis = pHScrollbar->IsVisible();
+ pHScrollbar->DocSzChgd( aTmpSz );
+ pHScrollbar->ViewPortChgd( aTmpRect );
+ if ( !bVis && !bShowAtResize && !pHScrollbar->IsAuto() )
+ pHScrollbar->Show();
+ if ( bVis != pHScrollbar->IsVisible() )
+ bRet = TRUE;
+ }
+ if ( pScrollFill )
+ {
+ if ( pHScrollbar && pVScrollbar &&
+ pHScrollbar->IsVisible() && pVScrollbar->IsVisible() )
+ {
+ pScrollFill->Show();
+ }
+ else
+ pScrollFill->Hide();
+ }
+ }
+ return bRet;
+}
+
+
+void __EXPORT SwView::Move()
+{
+ if ( GetWrtShell().IsInSelect() )
+ GetWrtShell().EndSelect(); //#32427#
+ SfxViewShell::Move();
+}
+
+BOOL SwView::HandleWheelCommands( const CommandEvent& rCEvt )
+{
+ BOOL bOk = FALSE;
+ const CommandWheelData* pWData = rCEvt.GetWheelData();
+ if( pWData && COMMAND_WHEEL_ZOOM == pWData->GetMode() )
+ {
+ USHORT nFact = pWrtShell->GetViewOptions()->GetZoom();
+ if( 0L > pWData->GetDelta() )
+ nFact = Max( 20, nFact - 10 );
+ else
+ nFact = Min( 600, nFact + 10 );
+
+ SetZoom( SVX_ZOOM_PERCENT, nFact );
+ bOk = TRUE;
+ }
+ else
+ bOk = pEditWin->HandleScrollCommand( rCEvt,
+ pHScrollbar && pHScrollbar->IsVisible(TRUE) ? pHScrollbar : 0,
+ pVScrollbar && pVScrollbar->IsVisible(TRUE) ? pVScrollbar : 0 );
+ return bOk;
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.254 2000/09/18 16:06:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.253 2000/09/07 15:59:33 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.252 2000/07/21 10:15:43 jp
+ Must changes for SFX
+
+ Revision 1.251 2000/04/18 15:02:51 os
+ UNICODE
+
+ Revision 1.250 2000/03/03 15:17:04 os
+ StarView remainders removed
+
+ Revision 1.249 2000/02/11 14:59:40 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.248 1999/07/13 06:48:04 OS
+ #67584# Scrollbar settings via StarOne
+
+
+ Rev 1.247 13 Jul 1999 08:48:04 OS
+ #67584# Scrollbar settings via StarOne
+
+ Rev 1.246 27 May 1999 11:26:20 AMA
+ Fix #64863#: Nicht ueber das Dokumentende hinausscrollen, nu aber wirklich
+
+ Rev 1.245 11 May 1999 09:26:22 AMA
+ Fix #64863#: Nicht ueber das Dokumentende hinausscrollen
+
+ Rev 1.244 03 Mar 1999 12:52:56 MA
+ #62722# UpdateScrollbars macht ohne VisArea keinen Sinn
+
+ Rev 1.243 02 Mar 1999 16:04:20 AMA
+ Fix #62568#: Invalidierungen so sparsam wie moeglich, so gruendlich wie noetig
+
+ Rev 1.242 27 Nov 1998 14:58:36 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.241 04 Sep 1998 12:31:12 OS
+ #55949# Verstecken der PageButtons noch veredelt
+
+ Rev 1.240 03 Sep 1998 13:17:00 OS
+ #55949# Buttons unter dem VScrollbar verstecken, wenn nicht genug Platz ist
+
+ Rev 1.239 20 Aug 1998 13:39:50 MA
+ #55307# Scrollbars muessen nicht existieren
+
+ Rev 1.238 27 Jul 1998 16:52:00 JP
+ Bug #54031#: WheelData richtig auswerten
+
+ Rev 1.237 19 Jul 1998 17:57:10 JP
+ Task #49835#: Radmausunterstuetzung
+
+ Rev 1.236 13 Jul 1998 17:16:06 OS
+ Scrollbar-Buttons muessen an zwei Positionen auf Sichtbarkeit geprueft werden #52527#
+
+ Rev 1.235 03 Jul 1998 16:57:16 OS
+ PageButtons an das AutoHide des VScrollbars anpassen
+
+ Rev 1.234 24 Jun 1998 18:43:54 MA
+ DataChanged fuer ScrollBar und Retouche, Retouche ganz umgestellt
+
+ Rev 1.233 24 Jun 1998 07:29:54 OS
+ CreatePageButtons nicht mehrfach rufen #51535#
+
+ Rev 1.232 14 Jun 1998 16:13:52 MA
+ chg: Navi-Tool auch fuer Browse-View
+
+ Rev 1.231 06 May 1998 17:09:54 MA
+ #50098# Scrolloffset beruecksichtigen
+
+ Rev 1.230 27 Apr 1998 17:17:18 JP
+ statt GetSize().GetHeight/-Width direkt GetHeight/Width am Rectangle rufen
+
+ Rev 1.229 17 Apr 1998 17:22:28 OS
+ keine Tabulatoren in der QuickHelp #49563#
+
+ Rev 1.228 14 Apr 1998 12:08:46 OS
+ autom. Scrollbars: Scrollbar immer erzeugen #49061#
+
+ Rev 1.227 09 Apr 1998 08:08:02 OS
+ CalcPt: Scroll bei Bedarf verkleinern 49364#
+
+ Rev 1.226 20 Mar 1998 13:23:54 MA
+ OleVis2Page durch BrowseMode ersetzt
+
+ Rev 1.225 06 Mar 1998 18:57:54 JP
+ Bug #47878#: den richtigen Point heruntergeben
+
+ Rev 1.224 27 Feb 1998 17:04:50 MA
+ Outline in Tiphilfe
+
+ Rev 1.223 27 Feb 1998 17:01:46 MA
+ Outline in Tiphilfe
+
+ Rev 1.222 29 Jan 1998 10:25:12 OS
+ das VCL-Lineal braucht ein eigenes Resize wenn es nicht sichtbar ist. #46802#
+
+ Rev 1.221 05 Dec 1997 14:14:32 OS
+ Scrollbar nicht mehr MAC-abhaengig
+
+ Rev 1.220 04 Dec 1997 15:27:38 MA
+ #45726# Rect auch im Seitenrand sichtbar machen
+
+ Rev 1.219 29 Nov 1997 16:49:56 MA
+ includes
+
+ Rev 1.218 28 Nov 1997 11:33:54 TJ
+ include
+
+ Rev 1.217 21 Nov 1997 15:00:22 MA
+ includes
+
+ Rev 1.216 03 Nov 1997 13:58:32 MA
+ precomp entfernt
+
+ Rev 1.215 22 Oct 1997 08:24:08 OS
+ eigener UpdateMode zur Verhinderung des Flackerns #43684#
+
+ Rev 1.214 09 Oct 1997 16:16:38 MA
+ alte Methoden aufgeraeumt
+
+ Rev 1.213 22 Sep 1997 13:11:12 MA
+ #44052# bInOuterResizePixel ist jetzt Member
+
+ Rev 1.212 18 Sep 1997 14:01:10 OS
+ Pointer::GetPosPixel fuer VCL ersetzt
+
+ Rev 1.211 09 Sep 1997 11:35:00 OS
+ bStarting gibt's nicht mehr
+
+ Rev 1.210 04 Sep 1997 17:14:40 MA
+ includes
+
+ Rev 1.209 01 Sep 1997 13:13:48 OS
+ DLL-Umstellung
+
+ Rev 1.208 12 Aug 1997 15:57:22 OS
+ frmitems/textitem/paraitem aufgeteilt
+
+ Rev 1.207 08 Aug 1997 17:25:52 OM
+ Headerfile-Umstellung
+
+ Rev 1.206 07 Aug 1997 14:58:26 OM
+ Headerfile-Umstellung
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uiview/viewprt.cxx b/sw/source/ui/uiview/viewprt.cxx
new file mode 100644
index 000000000000..a18929fb7884
--- /dev/null
+++ b/sw/source/ui/uiview/viewprt.cxx
@@ -0,0 +1,770 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewprt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#if STLPORT_VERSION>=321
+#include <cstdarg>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX
+#include <sfx2/request.hxx>
+#endif
+
+
+#ifndef _SFXFLAGITEM_HXX //autogen
+#include <svtools/flagitem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef NOOLDSV //autogen
+#include <vcl/system.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_PRINTDLG_HXX_ //autogen
+#include <svtools/printdlg.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+#ifndef _SFX_PRNMON_HXX //autogen
+#include <sfx2/prnmon.hxx>
+#endif
+#ifndef _SVX_PAPERINF_HXX //autogen
+#include <svx/paperinf.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _OFA_MISCCFG_HXX //autogen
+#include <sfx2/misccfg.hxx>
+#endif
+#ifndef _SVX_PRTQRY_HXX
+#include <svx/prtqry.hxx>
+#endif
+
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _PRTOPT_HXX
+#include <prtopt.hxx>
+#endif
+#ifndef _SWPRTOPT_HXX
+#include <swprtopt.hxx>
+#endif
+#ifndef _OPTPAGE_HXX
+#include <optpage.hxx>
+#endif
+#ifndef _CFGITEMS_HXX
+#include <cfgitems.hxx>
+#endif
+#ifndef _DBMGR_HXX
+#include <dbmgr.hxx>
+#endif
+#ifndef _DOCSTAT_HXX
+#include <docstat.hxx>
+#endif
+#ifndef _VIEWFUNC_HXX
+#include <viewfunc.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _VIEW_HRC
+#include <view.hrc>
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Drucker an Sfx uebergeben
+ --------------------------------------------------------------------*/
+
+
+SfxPrinter* __EXPORT SwView::GetPrinter( BOOL bCreate )
+{
+ SfxPrinter *pOld = GetWrtShell().GetPrt( FALSE );
+ SfxPrinter *pPrt = GetWrtShell().GetPrt( bCreate );
+ if ( pOld != pPrt )
+ {
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ ::SetAppPrintOptions( &GetWrtShell(), bWeb );
+ }
+ return pPrt;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Druckerwechsel weitermelden
+ --------------------------------------------------------------------*/
+
+void SetPrinter( SfxPrinter* pNew, BOOL bWeb )
+{
+ SwPrintOptions* pOpt = SW_MOD()->GetPrtOptions(bWeb);
+ if( !pOpt)
+ return;
+
+ // Applikationseigene Druckoptionen aus SfxPrinter auslesen
+ const SfxItemSet& rSet = pNew->GetOptions();
+
+ const SwAddPrinterItem* pAddPrinterAttr;
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_ADDPRINTER, FALSE,
+ (const SfxPoolItem**)&pAddPrinterAttr ) )
+ {
+// Wir lassen die Druckoptionen so, wie sie sind.
+// pAddPrinterAttr->SetPrintOptions( pOpt );
+ if( pAddPrinterAttr->GetFax().Len() )
+ pOpt->SetFaxName(pAddPrinterAttr->GetFax());
+ }
+}
+
+
+USHORT __EXPORT SwView::SetPrinter(SfxPrinter* pNew, USHORT nDiffFlags )
+{
+ SwWrtShell &rSh = GetWrtShell();
+ if ( (SFX_PRINTER_JOBSETUP | SFX_PRINTER_PRINTER) & nDiffFlags )
+ {
+ rSh.SetPrt( pNew );
+ if ( nDiffFlags & SFX_PRINTER_PRINTER )
+ rSh.SetModified();
+ }
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ if ( nDiffFlags & SFX_PRINTER_OPTIONS )
+ ::SetPrinter( pNew, bWeb );
+
+ const BOOL bChgOri = nDiffFlags & SFX_PRINTER_CHG_ORIENTATION ? TRUE : FALSE;
+ const BOOL bChgSize= nDiffFlags & SFX_PRINTER_CHG_SIZE ? TRUE : FALSE;
+ if ( bChgOri || bChgSize )
+ {
+ rSh.StartAllAction();
+ if ( bChgOri )
+ rSh.ChgAllPageOrientation( USHORT(pNew->GetOrientation()) );
+ if ( bChgSize )
+ {
+ Size aSz( SvxPaperInfo::GetPaperSize( pNew ) );
+ rSh.ChgAllPageSize( aSz );
+ }
+ rSh.SetModified();
+ rSh.EndAllAction();
+ InvalidateRulerPos();
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Drucken
+ --------------------------------------------------------------------*/
+
+void MakeOptions( PrintDialog* pDlg, SwPrtOptions& rOpts, BOOL* pPrtProspect,
+ BOOL bWeb, SfxPrinter* pPrt )
+{
+ const SwAddPrinterItem* pAddPrinterAttr;
+ if( pPrt && SFX_ITEM_SET == pPrt->GetOptions().GetItemState(
+ FN_PARAM_ADDPRINTER, FALSE, (const SfxPoolItem**)&pAddPrinterAttr ))
+ {
+ rOpts.bPrintGraph = pAddPrinterAttr->IsPrintGraphic ();
+ rOpts.bPrintTable = pAddPrinterAttr->IsPrintTable ();
+ rOpts.bPrintDraw = pAddPrinterAttr->IsPrintDraw ();
+ rOpts.bPrintControl = pAddPrinterAttr->IsPrintControl ();
+ rOpts.bPrintLeftPage = pAddPrinterAttr->IsPrintLeftPage ();
+ rOpts.bPrintRightPage = pAddPrinterAttr->IsPrintRightPage();
+ rOpts.bPrintReverse = pAddPrinterAttr->IsPrintReverse ();
+ rOpts.bPaperFromSetup = pAddPrinterAttr->IsPaperFromSetup();
+ rOpts.bPrintPageBackground = pAddPrinterAttr->IsPrintPageBackground();
+ rOpts.bPrintBlackFont = pAddPrinterAttr->IsPrintBlackFont();
+ rOpts.bSinglePrtJobs = pAddPrinterAttr->IsPrintSingleJobs();
+ rOpts.nPrintPostIts = pAddPrinterAttr->GetPrintPostIts ();
+
+ if( pPrtProspect )
+ *pPrtProspect = pAddPrinterAttr->IsPrintProspect();
+ }
+ else
+ {
+ SwPrintOptions* pOpts = SW_MOD()->GetPrtOptions(bWeb);
+
+ rOpts.bPrintGraph = pOpts->IsPrintGraphic ();
+ rOpts.bPrintTable = pOpts->IsPrintTable ();
+ rOpts.bPrintDraw = pOpts->IsPrintDraw ();
+ rOpts.bPrintControl = pOpts->IsPrintControl ();
+ rOpts.bPrintLeftPage = pOpts->IsPrintLeftPage ();
+ rOpts.bPrintRightPage = pOpts->IsPrintRightPage();
+ rOpts.bPrintReverse = pOpts->IsPrintReverse ();
+ rOpts.bPaperFromSetup = pOpts->IsPaperFromSetup();
+ rOpts.bPrintPageBackground = pOpts->IsPrintPageBackground();
+ rOpts.bPrintBlackFont = pOpts->IsPrintBlackFont();
+ rOpts.bSinglePrtJobs = pOpts->IsPrintSingleJobs();
+ rOpts.nPrintPostIts = pOpts->GetPrintPostIts ();
+
+ if( pPrtProspect )
+ *pPrtProspect = pOpts->IsPrintProspect();
+ }
+ rOpts.aMulti.SetTotalRange( Range( 0, RANGE_MAX ) );
+ rOpts.aMulti.SelectAll( FALSE );
+ rOpts.nCopyCount = 1;
+ rOpts.bCollate = FALSE;
+ rOpts.bPrintSelection = FALSE;
+ rOpts.bJobStartet = FALSE;
+
+ if ( pDlg )
+ {
+ rOpts.nCopyCount = pDlg->GetCopyCount();
+ rOpts.bCollate = pDlg->IsCollateChecked();
+ if ( pDlg->GetCheckedRange() == PRINTDIALOG_SELECTION )
+ {
+ rOpts.aMulti.SelectAll();
+ rOpts.bPrintSelection = TRUE;
+ }
+ else if ( PRINTDIALOG_ALL == pDlg->GetCheckedRange() )
+ rOpts.aMulti.SelectAll();
+ else
+ {
+ rOpts.aMulti = MultiSelection( pDlg->GetRangeText() );
+ rOpts.aMulti.SetTotalRange( Range( 0, RANGE_MAX ) );
+ }
+ }
+ else
+ rOpts.aMulti.SelectAll();
+ rOpts.aMulti.Select( 0, FALSE );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ErrCode SwView::DoPrint( SfxPrinter *pPrinter, PrintDialog *pDlg,
+ BOOL bSilent )
+{
+ // First test
+ SwWrtShell* pSh = &GetWrtShell();
+ SwNewDBMgr* pMgr = pSh->GetNewDBMgr();
+
+ int bPrintSelection = -1;
+ if( DBMGR_MERGE_MAILMERGE != pMgr->GetMergeType() && !pDlg && !bSilent
+ && !bIsApi && ( pSh->IsSelection() || pSh->IsFrmSelected() ||
+ pSh->IsObjSelected() ) )
+ {
+ short nBtn = SvxPrtQryBox(&GetEditWin()).Execute();
+ if( RET_CANCEL == nBtn )
+ return ERRCODE_IO_ABORT;
+
+ if( RET_OK == nBtn )
+ bPrintSelection = 1;
+ else
+ bPrintSelection = 0;
+ }
+
+
+// Der PrintProgress stellt Handler am Printer der ViewShell ein.
+// Das kann natuerlich erste nach dem evtl. Umschalten des Druckers korrekt
+// funktionieren. #55210#
+// SfxPrintProgress *pProgress = new SfxPrintProgress( this, !bSilent );
+ SfxPrintProgress *pProgress = 0;
+ SfxPrinter *pDocPrinter = GetPrinter(TRUE);
+ if ( !pPrinter )
+ pPrinter = pDocPrinter;
+ else if ( pDocPrinter != pPrinter )
+ {
+ //Da der Doc-Drucker beim SetPrinter geloescht wird,
+ // muss man ihn vorher clonen
+ SfxPrinter* pClone = pDocPrinter->Clone();
+ SetPrinter( pPrinter, SFX_PRINTER_PRINTER );
+ pProgress = new SfxPrintProgress( this, !bSilent );
+ pProgress->RestoreOnEndPrint( pClone );
+ }
+ if(!pProgress)
+ pProgress = new SfxPrintProgress( this, !bSilent );
+ pProgress->SetWaitMode(FALSE);
+
+ // Drucker starten
+ PreparePrint( pDlg );
+ SfxObjectShell *pObjShell = GetViewFrame()->GetObjectShell();
+ SwPrtOptions aOpts( pObjShell->GetTitle(0) );
+ BOOL bStartJob;
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ if( pMgr->GetMergeType() == DBMGR_MERGE_MAILMERGE )
+ {
+ ::MakeOptions( pDlg, aOpts, 0, bWeb, GetPrinter() );
+#ifdef REPLACE_OFADBMGR
+ bStartJob = pMgr->MergePrint( *this, aOpts, *pProgress );
+#else
+ bStartJob = pMgr->MergePrint( *this, aOpts, *pProgress );
+#endif
+ }
+ else
+ {
+ //BrowseView abschalten und die View gegen alle Paints locken.
+ FASTBOOL bBrowse = pSh->IsBrowseMode();
+ SfxAllItemSet aSet( SFX_APP()->GetPool() );
+ SfxBoolItem aBrowse( SID_BROWSER_MODE, FALSE );
+ if ( bBrowse )
+ {
+ if ( pSh->GetWin() )
+ pSh->GetWin()->Update();
+ pSh->LockPaint();
+ pSh->LockView( TRUE );
+ aSet.Put( aBrowse, aBrowse.Which() );
+ SfxRequest aReq( SID_BROWSER_MODE, 0, aSet );
+ GetDocShell()->Execute( aReq );
+ }
+
+ // die Felder aktualisieren
+ BOOL bIsModified = pSh->IsModified();
+ pSh->StartAllAction();
+ SwDocStat aDocStat;
+ pSh->UpdateDocStat( aDocStat );
+ pSh->EndAllTblBoxEdit();
+ pSh->ViewShell::UpdateFlds(TRUE);
+ if( pSh->IsCrsrInTbl() )
+ {
+ pSh->ClearTblBoxCntnt();
+ pSh->SaveTblBoxCntnt();
+ }
+ pSh->EndAllAction();
+
+ if( !bIsModified )
+ pSh->ResetModified();
+
+ BOOL bPrtPros;
+ ::MakeOptions( pDlg, aOpts, &bPrtPros, bWeb, GetPrinter() );
+ if( -1 != bPrintSelection )
+ aOpts.bPrintSelection = 0 != bPrintSelection;
+
+ SfxViewShell::Print(*pProgress);
+ if( bPrtPros )
+ {
+ bStartJob = pPrinter->StartJob( aOpts.GetJobName() );
+ if( bStartJob )
+ pSh->PrintProspect( aOpts, *pProgress );
+ }
+ else
+ bStartJob = pSh->Prt( aOpts, *pProgress );
+
+ if ( bBrowse )
+ {
+ aBrowse.SetValue( TRUE );
+ aSet.Put( aBrowse, aBrowse.Which() );
+ SfxRequest aReq( SID_BROWSER_MODE, 0, aSet );
+ GetDocShell()->Execute( aReq );
+ pSh->LockView( FALSE );
+ pSh->UnlockPaint();
+ }
+ }
+
+ bIsApi = FALSE;
+ if ( !bStartJob )
+ {
+ // Printer konnte nicht gestartet werden
+ delete pProgress;
+ return ERRCODE_IO_ABORT;
+ }
+
+ pProgress->Stop();
+ pProgress->DeleteOnEndPrint();
+ pPrinter->EndJob();
+ return pPrinter->GetError();
+}
+
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: TabPage fuer applikationsspezifische Druckoptionen
+ --------------------------------------------------------------------*/
+
+SfxTabPage* __EXPORT SwView::CreatePrintOptionsPage(Window* pParent,
+ const SfxItemSet& rSet)
+{
+ return ::CreatePrintOptionsPage( pParent, rSet, FALSE );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Druckerdialog
+ --------------------------------------------------------------------*/
+
+PrintDialog* CreatePrintDialog( Window* pParent, USHORT nPg, SwWrtShell* pSh )
+{
+ PrintDialog *pDlg =
+ new PrintDialog( pParent );
+// pDlg->ChangeFirstPage( 1 );
+
+ if ( !nPg )
+ nPg = 1;
+// pDlg->ChangeLastPage( nPg );
+// pDlg->ChangeMaxPage( 9999 );
+ pDlg->EnableRange( PRINTDIALOG_FROMTO );
+
+ if (pSh && (pSh->IsSelection() || pSh->IsFrmSelected() || pSh->IsObjSelected()))
+ pDlg->EnableRange( PRINTDIALOG_SELECTION );
+
+ pDlg->SetRangeText( String::CreateFromInt32(nPg) );
+ pDlg->EnableRange( PRINTDIALOG_RANGE );
+ pDlg->EnableCollate();
+ return pDlg;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+PrintDialog* __EXPORT SwView::CreatePrintDialog( Window* pParent )
+{
+ // AMA: Hier sollte vielleicht die virtuelle Seitennummer angezeigt werden,
+ // aber nur, wenn das Drucken virtuelle Seitennummern und nicht wie
+ // bisher (auch beim SWG 2.0) physikalische beachtet werden.
+ return ::CreatePrintDialog( pParent, GetWrtShell().GetPhyPageNum(), &GetWrtShell() );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Print-Dispatcher
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwView::ExecutePrint(SfxRequest& rReq)
+{
+ BOOL bWeb = 0 != PTR_CAST(SwWebView, this);
+ ::SetAppPrintOptions( &GetWrtShell(), bWeb );
+ switch (rReq.GetSlot())
+ {
+ case FN_FAX:
+ {
+ SwPrintOptions* pOpt = SW_MOD()->GetPrtOptions(bWeb);
+ String sFaxName(pOpt->GetFaxName());
+ if (sFaxName.Len())
+ {
+ SfxStringItem aPrinterName(SID_PRINTER_NAME, sFaxName);
+ SfxBoolItem aSilent( SID_SILENT, TRUE );
+ GetViewFrame()->GetDispatcher()->Execute( SID_PRINTDOC,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aPrinterName, &aSilent, 0L );
+ }
+ else
+ {
+ InfoBox aInfoBox(&GetEditWin(), SW_RES(MSG_ERR_NO_FAX));
+ aInfoBox.Execute();
+ SfxUInt16Item aDefPage(SID_SW_EDITOPTIONS, TP_OPTPRINT_PAGE);
+ GetViewFrame()->GetDispatcher()->Execute(SID_SW_EDITOPTIONS,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD,
+ &aDefPage, 0L );
+ }
+ }
+ break;
+ case SID_PRINTDOC:
+ case SID_PRINTDOCDIRECT:
+ {
+ SwWrtShell* pSh = &GetWrtShell();
+ SwViewOption* pOrgViewOption = 0;
+ if (pSh->GetViewOptions()->IsFldName() && pSh->IsAnyFieldInDoc())
+ {
+ QueryBox aBox( &GetEditWin(), SW_RES( DLG_PRT_FIELDNAME ) );
+ USHORT nRet = aBox.Execute();
+ if( RET_CANCEL == nRet)
+ return;
+ // disable field commands
+ if( RET_NO == nRet )
+ {
+ pOrgViewOption = new SwViewOption(*pSh->GetViewOptions());
+ pOrgViewOption->SetFldName(FALSE);
+ SW_MOD()->ApplyUsrPref(*pOrgViewOption, this, VIEWOPT_DEST_VIEW_ONLY );
+ }
+ }
+ bIsApi = rReq.IsAPI();
+ SfxViewShell::ExecuteSlot( rReq, SfxViewShell::GetInterface() );
+ if(pOrgViewOption)
+ {
+ pOrgViewOption->SetFldName(TRUE);
+ SW_MOD()->ApplyUsrPref(*pOrgViewOption, this, VIEWOPT_DEST_VIEW_ONLY );
+ delete pOrgViewOption;
+ }
+ return;
+ }
+ default:
+ ASSERT(!this, falscher Dispatcher);
+ return;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Page Drucker/Zusaetze erzeugen fuer SwView und
+ SwPagePreview
+ --------------------------------------------------------------------*/
+
+SfxTabPage* CreatePrintOptionsPage( Window *pParent,
+ const SfxItemSet &rOptions, BOOL bPreview )
+{
+ SwAddPrinterTabPage* pPage = ( SwAddPrinterTabPage* )
+ SwAddPrinterTabPage::Create(pParent, rOptions);
+ pPage->SetPreview(bPreview);
+
+ SvStringsDtor aFaxList;
+ const USHORT nCount = Printer::GetQueueCount();
+ pPage->Reset(rOptions);
+ for (USHORT i = 0; i < nCount; ++i)
+ {
+ String* pString = new String( Printer::GetQueueInfo( i ).GetPrinterName() );
+ aFaxList.Insert(pString, 0);
+ }
+ pPage->SetFax( aFaxList );
+ return pPage;
+}
+
+
+void SetAppPrintOptions( ViewShell* pSh, BOOL bWeb )
+{
+ SwPrintOptions* pOpt = SW_MOD()->GetPrtOptions(bWeb);
+ if( pSh && pSh->GetPrt() && pOpt)
+ {
+ // Applikationseigene Druckoptionen in SfxPrinter schiessen
+ SwAddPrinterItem aAddPrinterItem (FN_PARAM_ADDPRINTER, pOpt);
+ SfxItemSet aSet( pSh->GetAttrPool(),
+ FN_PARAM_ADDPRINTER, FN_PARAM_ADDPRINTER,
+ SID_HTML_MODE, SID_HTML_MODE,
+ SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
+ SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
+ 0 );
+
+ OfaMiscCfg* pMisc = SFX_APP()->GetMiscConfig();
+
+ if(bWeb)
+ aSet.Put(SfxUInt16Item(SID_HTML_MODE,
+ ::GetHtmlMode(((SwWrtShell*)pSh)->GetView().GetDocShell())));
+ aSet.Put(SfxBoolItem(SID_PRINTER_NOTFOUND_WARN,
+ pMisc->IsNotFoundWarning() ));
+ aSet.Put(aAddPrinterItem);
+ aSet.Put( SfxFlagItem( SID_PRINTER_CHANGESTODOC,
+ (pMisc->IsPaperSizeWarning() ? SFX_PRINTER_CHG_SIZE : 0) |
+ (pMisc->IsPaperBinWarning() ? SFX_PRINTER_CHG_ORIENTATION : 0 )));
+
+ pSh->GetPrt()->SetOptions( aSet );
+ }
+
+}
+
+/*--------------------------------------------------------------------
+
+$Log: not supported by cvs2svn $
+Revision 1.143 2000/09/18 16:06:14 willem.vandorp
+OpenOffice header added.
+
+Revision 1.142 2000/09/07 15:59:33 os
+change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+Revision 1.141 2000/09/07 08:24:35 os
+FaxName now in SwPrintOptions
+
+Revision 1.140 2000/08/10 07:36:58 os
+#77466# CreateFromInt32
+
+Revision 1.139 2000/07/18 12:50:09 os
+replace ofadbmgr
+
+Revision 1.138 2000/07/10 07:02:56 os
+replace ofadbmgr
+
+Revision 1.137 2000/07/07 15:25:44 os
+replace ofadbmgr
+
+Revision 1.136 2000/05/26 07:21:35 os
+old SW Basic API Slots removed
+
+Revision 1.135 2000/03/03 15:17:04 os
+StarView remainders removed
+
+Revision 1.134 2000/02/11 14:59:27 hr
+#70473# changes for unicode ( patched by automated patchtool )
+
+Revision 1.133 2000/02/01 14:11:31 os
+#72527# print selection query box
+
+Revision 1.132 1999/12/14 14:32:05 jp
+Bug #69595#: print can create single Jobs
+
+Revision 1.131 1999/11/11 15:09:57 hr
+#65293#: STLPORT 3.2.1
+
+Revision 1.130 1999/09/10 08:35:03 os
+restore ViewOption after printing
+
+Revision 1.129 1999/09/09 07:13:27 os
+Query changed: printing documents with field commands
+
+Revision 1.128 1999/08/11 14:12:24 JP
+Bug #68171#: DoPrint - donst change selektionflag if not execute the Sel.Dlg
+
+
+ Rev 1.127 11 Aug 1999 16:12:24 JP
+ Bug #68171#: DoPrint - donst change selektionflag if not execute the Sel.Dlg
+
+ Rev 1.126 09 Jul 1999 13:54:30 JP
+ Bug #67535#: DoPrint - PrintSelection Dialog before any action started
+
+ Rev 1.125 01 Mar 1999 16:22:16 MA
+ #62490# Altlast entfernt (Drucken und Briefumschlaege/Etiketten und Datenbank)
+
+ Rev 1.124 04 Feb 1999 11:22:16 ER
+ #61415# OfaMiscCfg nach SFX verschoben
+
+ Rev 1.123 13 Jan 1999 11:53:12 JP
+ Bug #60794#: Fehlererkennung beim Tabellenrechnen
+
+ Rev 1.122 29 Oct 1998 11:52:44 OM
+ #58593# Selektion nur anbieten, wenn auch vorhanden
+
+ Rev 1.121 19 Oct 1998 11:34:48 OM
+ #58017# Falschen Hilfetext entfernt
+
+ Rev 1.120 29 Sep 1998 16:58:30 OM
+ #57214# Fokus von Controls nicht als Selektion interpretieren
+
+ Rev 1.119 08 Sep 1998 09:59:24 MI
+ #55602# DocInfo vor Ausdruck setzen und ggf. hinterher resetten (ErrorCode bei Abort)
+
+ Rev 1.118 31 Aug 1998 17:48:56 OM
+ #55613# Selektion drucken
+
+ Rev 1.117 25 Aug 1998 08:25:28 OS
+ SfxPrintProgress ermittelt den aktuellen Drucker der ViewShell -> fuer Fax spaeter erzeugen #55210#
+
+ Rev 1.116 13 Jul 1998 14:42:30 TJ
+ include
+
+ Rev 1.115 13 Jul 1998 08:48:42 OS
+ Dialog-Parent richtig setzen #51814#
+
+ Rev 1.114 07 Jul 1998 14:25:54 AMA
+ Chg: DoPrint uebernimmt das Drucken
+
+ Rev 1.113 03 Jul 1998 15:04:32 AMA
+ Chg: DoPrint uebernimmt das Drucken
+
+ Rev 1.112 24 Jun 1998 16:17:42 OM
+ #51575# Printoptionen auch in Seitenvorschau beachten
+
+ Rev 1.111 21 Nov 1997 15:00:26 MA
+ includes
+
+ Rev 1.110 02 Oct 1997 16:29:14 TJ
+ include
+
+ Rev 1.109 30 Sep 1997 16:57:50 TJ
+ include
+
+ Rev 1.108 03 Sep 1997 15:55:34 OS
+ DLL-Umbau
+
+ Rev 1.107 02 Sep 1997 09:56:28 OM
+ SDB-Headeranpassung
+
+ Rev 1.106 08 Aug 1997 17:26:22 OM
+ Headerfile-Umstellung
+
+ Rev 1.105 21 Jul 1997 17:16:20 AMA
+ Fix #38434#: Das FontListen-Update wird jetzt von SetPrt angestossen
+
+ Rev 1.104 11 Jul 1997 14:47:00 OM
+ #41525# Nur durch SQL-Statement eingeschraenkte Datensaetze verwenden
+
+ Rev 1.103 08 Jul 1997 14:06:12 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.102 13 Jun 1997 12:11:30 MA
+ #40665# sid_broiwse ist an der DocShell
+
+ Rev 1.101 11 Jun 1997 09:18:22 OS
+ FN_CONFIG_DLG ->SID_SW_EDITOPTIONS fuer Fax #40584#
+
+ Rev 1.100 09 Jun 1997 14:27:58 MA
+ chg: Browse-Flag nur noch am Doc
+
+*/
+
diff --git a/sw/source/ui/uiview/viewsrch.cxx b/sw/source/ui/uiview/viewsrch.cxx
new file mode 100644
index 000000000000..c8bab2b4e17f
--- /dev/null
+++ b/sw/source/ui/uiview/viewsrch.cxx
@@ -0,0 +1,940 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewsrch.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <string> // HACK: prevent conflict between STLPORT and Workshop headers
+
+#include "hintids.hxx"
+#include "uiparam.hxx"
+
+
+#ifndef _SVX_PAGEITEM_HXX //autogen
+#include <svx/pageitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _TXTCMP_HXX //autogen
+#include <svtools/txtcmp.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXITEMPOOL_HXX //autogen
+#include <svtools/itempool.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_SRCHDLG_HXX //autogen
+#include <svx/srchdlg.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_WRKWIN_HXX //autogen
+#include <vcl/wrkwin.hxx>
+#endif
+
+#ifndef _SWWAIT_HXX
+#include <swwait.hxx>
+#endif
+#include "workctrl.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "swundo.hxx" // fuer Undo-Ids
+#include "uitool.hxx"
+#include "cmdid.h"
+#include "docsh.hxx"
+
+#include "view.hrc"
+
+#define SRCH_ATTR_OFF 0
+#define SRCH_ATTR_ON 1
+#define SRCH_ATTR_SET 2
+
+/*--------------------------------------------------------------------
+ Beschreibung: Search Parameter
+ --------------------------------------------------------------------*/
+
+struct SwSearchOptions
+{
+ SwDocPositions eStart, eEnd;
+ BOOL bDontWrap;
+
+ SwSearchOptions( SwWrtShell* pSh, BOOL bBackward );
+};
+
+
+inline Window* GetParentWindow( SvxSearchDialog* pSrchDlg )
+{
+ Window* pWin;
+ if( pSrchDlg && pSrchDlg->IsVisible() )
+ pWin = pSrchDlg;
+ else
+ pWin = 0;
+ return pWin;
+}
+
+
+/*-----------------12.04.97 13:04-------------------
+
+--------------------------------------------------*/
+
+
+void __EXPORT SwView::ExecSearch(SfxRequest& rReq, BOOL bNoMessage)
+{
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ const SfxPoolItem* pItem = 0;
+ BOOL bApi = rReq.IsAPI()|bNoMessage;
+ BOOL bSrchList = TRUE;
+
+ USHORT nSlot = rReq.GetSlot();
+ if (nSlot == FN_REPEAT_SEARCH && !pSrchItem)
+ {
+ if(bApi)
+ {
+ rReq.SetReturnValue(SfxBoolItem(nSlot, FALSE));
+ nSlot = 0;
+ }
+ }
+ switch (nSlot)
+ {
+ // erstmal Nichts tun
+ case SID_SEARCH_ITEM:
+ {
+ delete pSrchItem;
+ pSrchItem = (SvxSearchItem*) pArgs->Get(SID_SEARCH_ITEM).Clone();
+ }
+ break;
+
+ case FID_SEARCH_ON:
+ bJustOpened = TRUE;
+ GetViewFrame()->GetBindings().Invalidate(SID_SEARCH_ITEM);
+ break;
+
+ case FID_SEARCH_OFF:
+ if(pArgs)
+ {
+ // Dialog abmelden
+ delete pSrchItem;
+ pSrchItem = (SvxSearchItem*) pArgs->Get(SID_SEARCH_ITEM).Clone();
+
+ const USHORT nId = SvxSearchDialogWrapper::GetChildWindowId();
+ SvxSearchDialogWrapper *pWrp = (SvxSearchDialogWrapper*)GetViewFrame()->GetChildWindow(nId);
+
+ DELETEZ( pSrchList );
+ DELETEZ( pReplList );
+
+ if ( pWrp )
+ {
+ pSrchDlg = (SvxSearchDialog*)(pWrp->GetWindow());
+ // die Search / Replace -Items merken wir uns
+ const SearchAttrItemList* pList = pSrchDlg->GetSearchItemList();
+ if( pList && pList->Count() )
+ pSrchList = new SearchAttrItemList( *pList );
+
+ if( 0 != (pList = pSrchDlg->GetReplaceItemList() ) &&
+ pList->Count() )
+ pReplList = new SearchAttrItemList( *pList );
+ }
+ }
+ break;
+
+ case FN_REPEAT_SEARCH:
+ case FID_SEARCH_NOW:
+ {
+ if(FID_SEARCH_NOW == nSlot && !rReq.IsAPI())
+ SwView::SetMoveType(NID_SRCH_REP);
+ const USHORT nId = SvxSearchDialogWrapper::GetChildWindowId();
+ SvxSearchDialogWrapper *pWrp = (SvxSearchDialogWrapper*)GetViewFrame()->GetChildWindow(nId);
+ if ( pWrp )
+ {
+ pSrchDlg = (SvxSearchDialog*)(pWrp->GetWindow());
+ }
+ else
+ pSrchDlg = 0;
+ }
+
+ if (pSrchDlg)
+ {
+ DELETEZ( pSrchList );
+ DELETEZ( pReplList );
+
+ const SearchAttrItemList* pList = pSrchDlg->GetSearchItemList();
+ if( pList && pList->Count() )
+ pSrchList = new SearchAttrItemList( *pList );
+
+ if( 0 != (pList = pSrchDlg->GetReplaceItemList() ) &&
+ pList->Count() )
+ pReplList = new SearchAttrItemList( *pList );
+ }
+
+ if (nSlot == FN_REPEAT_SEARCH)
+ {
+ ASSERT(pSrchItem, "Search-Item fehlt");
+ }
+ else
+ {
+ // SearchItem aus Request besorgen
+ ASSERT(pArgs, "Args fehlen");
+ delete pSrchItem;
+ pSrchItem = (SvxSearchItem*) pArgs->Get(SID_SEARCH_ITEM).Clone();
+ }
+
+ switch (pSrchItem->GetCommand())
+ {
+ case SVX_SEARCHCMD_FIND:
+ {
+ BOOL bRet = SearchAndWrap(bApi);
+ if( bRet )
+ Scroll(pWrtShell->GetCharRect().SVRect());
+ rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
+ }
+ break;
+ case SVX_SEARCHCMD_FIND_ALL:
+ {
+ BOOL bRet = SearchAll();
+ if( !bRet )
+ {
+ if( !bApi )
+ {
+ Window* pParentWindow = GetParentWindow( pSrchDlg );
+ InfoBox( pParentWindow, SW_RES(MSG_NOT_FOUND)).Execute();
+ }
+ bFound = FALSE;
+ }
+ rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
+ }
+ break;
+ case SVX_SEARCHCMD_REPLACE:
+ pWrtShell->StartAllAction();
+ {
+
+ // 1) Selektion ersetzen (nicht. wenn nur Attribute ersetzt
+ // werden sollen)
+//JP 27.04.95: warum ?
+// was ist, wenn man das gefundene nur attributieren will??
+
+ USHORT nCmd = SVX_SEARCHCMD_FIND;
+ if( pSrchItem->GetReplaceString().Len() ||
+ !pReplList )
+ {
+ // Verhindern, dass - falls der Suchstring im
+ // Ersetzungsstring enthalten ist - der ersetzte String
+ // noch einmal gefunden wird.
+
+ BOOL bBack = pSrchItem->GetBackward();
+ if (bBack)
+ pWrtShell->Push();
+ Replace();
+ if (bBack)
+ {
+ pWrtShell->Pop();
+ pWrtShell->SwapPam();
+ }
+ }
+ else if( pReplList )
+ nCmd = SVX_SEARCHCMD_REPLACE;
+
+ // 2) Weiter suchen (ohne zu ersetzen!)
+
+ USHORT nOldCmd = pSrchItem->GetCommand();
+ pSrchItem->SetCommand( nCmd );
+ BOOL bRet = SearchAndWrap(bApi);
+ if( bRet )
+ Scroll( pWrtShell->GetCharRect().SVRect());
+ pSrchItem->SetCommand( nOldCmd );
+ rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
+ }
+ pWrtShell->EndAllAction();
+ break;
+
+ case SVX_SEARCHCMD_REPLACE_ALL:
+ {
+ SwSearchOptions aOpts( pWrtShell, pSrchItem->GetBackward() );
+
+
+ if( !pSrchItem->GetSelection() )
+ {
+ // bestehende Selektionen aufheben,
+ // wenn nicht in selektierten Bereichen gesucht werden soll
+ (pWrtShell->*pWrtShell->fnKillSel)(0, FALSE);
+ if( DOCPOS_START == aOpts.eEnd )
+ pWrtShell->EndDoc();
+ else
+ pWrtShell->SttDoc();
+ }
+
+ bExtra = FALSE;
+ ULONG nFound;
+
+ { //Scope for SwWait-Object
+ SwWait aWait( *GetDocShell(), TRUE );
+ pWrtShell->StartAllAction();
+ nFound = FUNC_Search( aOpts );
+ pWrtShell->EndAllAction();
+ }
+ rReq.SetReturnValue(SfxBoolItem(nSlot, nFound != 0));
+ if( !nFound )
+ {
+ if( !bApi )
+ {
+ Window* pParentWindow = GetParentWindow( pSrchDlg );
+ InfoBox( pParentWindow, SW_RES(MSG_NOT_FOUND)).Execute();
+ }
+ bFound = FALSE;
+ return;
+ }
+
+ if( !bApi )
+ {
+ String aText( SW_RES( STR_NB_REPLACED ) );
+ const xub_StrLen nPos = aText.Search( String::CreateFromAscii("XX") );
+ aText.Erase( nPos, 2 );
+ aText.Insert( String::CreateFromInt32( nFound ), nPos );
+ Window* pParentWindow = GetParentWindow( pSrchDlg );
+ InfoBox( pParentWindow, aText ).Execute();
+ }
+ }
+ break;
+ }
+ break;
+ case FID_SEARCH_SEARCHSET:
+ case FID_SEARCH_REPLACESET:
+ {
+ static USHORT __READONLY_DATA aSearchAttrRange[] =
+ {
+ RES_CHRATR_CASEMAP, RES_CHRATR_CASEMAP,
+ RES_CHRATR_COLOR, RES_CHRATR_POSTURE,
+ RES_CHRATR_SHADOWED, RES_CHRATR_WORDLINEMODE,
+ RES_CHRATR_BACKGROUND, RES_CHRATR_BACKGROUND,
+ RES_PARATR_LINESPACING, RES_PARATR_HYPHENZONE,
+ RES_LR_SPACE, RES_UL_SPACE,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
+ 0
+ };
+
+ SfxItemSet aSet( pWrtShell->GetAttrPool(), aSearchAttrRange );
+ USHORT nWhich = SID_SEARCH_SEARCHSET;
+
+ if ( FID_SEARCH_REPLACESET == nSlot )
+ {
+ nWhich = SID_SEARCH_REPLACESET;
+
+ if ( pReplList )
+ {
+ pReplList->Get( aSet );
+ DELETEZ( pReplList );
+ }
+ }
+ else if ( pSrchList )
+ {
+ pSrchList->Get( aSet );
+ DELETEZ( pSrchList );
+ }
+ rReq.SetReturnValue( SvxSetItem( nWhich, aSet ) );
+ }
+ break;
+ default:
+#ifndef PRODUCT
+ if(nSlot)
+ {
+ ByteString sStr( "nSlot: " );
+ sStr += ByteString::CreateFromInt32( nSlot );
+ sStr += " falscher Dispatcher (viewsrch.cxx)";
+ DBG_ERROR( sStr.GetBuffer() );
+ }
+#endif
+ return;
+ }
+}
+
+
+BOOL SwView::SearchAndWrap(BOOL bApi)
+{
+ SwSearchOptions aOpts( pWrtShell, pSrchItem->GetBackward() );
+
+ // Startposition der Suche fuer WrapAround merken
+ // Start- / EndAction wegen vielleicht bestehender Selektionen
+ // aus 'Suche alle'
+ pWrtShell->StartAllAction();
+ pWrtShell->Push();
+ // falls in selektierten Bereichen gesucht werden soll, duerfen sie
+ // nicht aufgehoben werden
+ if (!pSrchItem->GetSelection())
+ (pWrtShell->*pWrtShell->fnKillSel)(0, FALSE);
+
+ SwWait *pWait = new SwWait( *GetDocShell(), TRUE );
+ if( FUNC_Search( aOpts ) )
+ {
+ bFound = TRUE;
+ if(pWrtShell->IsSelFrmMode())
+ {
+ pWrtShell->UnSelectFrm();
+ pWrtShell->LeaveSelFrmMode();
+ }
+ pWrtShell->Pop();
+ pWrtShell->EndAllAction();
+ delete pWait;
+ return TRUE;
+ }
+ delete pWait, pWait = 0;
+
+ // Suchen in den Sonderbereichen, wenn keine
+ // Suche in Selektionen vorliegt. Bei Suche in Selektionen
+ // wird ohnehin in diesen Sonderbereichen gesucht
+ BOOL bHasSrchInOther = bExtra;
+ if (!pSrchItem->GetSelection() && !bExtra )
+ {
+ bExtra = TRUE;
+ if( FUNC_Search( aOpts ) )
+ {
+ bFound = TRUE;
+ pWrtShell->Pop();
+ pWrtShell->EndAllAction();
+ return TRUE;
+ }
+ bExtra = FALSE;
+ }
+ else
+ bExtra = !bExtra;
+
+ const USHORT nId = SvxSearchDialogWrapper::GetChildWindowId();
+ SvxSearchDialogWrapper *pWrp = (SvxSearchDialogWrapper*)GetViewFrame()->GetChildWindow(nId);
+ pSrchDlg = pWrp ? (SvxSearchDialog*)(pWrp->GetWindow()) : 0;
+
+ // falls Startposition am Dokumentende / -anfang
+ if (aOpts.bDontWrap)
+ {
+ pWrtShell->EndAllAction();
+ if( !bApi )
+ {
+ Window* pParentWindow = GetParentWindow( pSrchDlg );
+ InfoBox( pParentWindow, SW_RES(MSG_NOT_FOUND)).Execute();
+ }
+ bFound = FALSE;
+ pWrtShell->Pop();
+ return FALSE;
+ }
+ pWrtShell->EndAllAction();
+ // noch mal mit WrapAround versuchen?
+
+ if( bApi || RET_NO == QueryBox( GetParentWindow( pSrchDlg ),
+ SW_RES( DOCPOS_START == aOpts.eEnd
+ ? MSG_SEARCH_START
+ : MSG_SEARCH_END )
+ ).Execute() )
+ {
+ bFound = FALSE;
+ pWrtShell->Pop();
+ return FALSE;
+ }
+ pWrtShell->StartAllAction();
+ pWrtShell->Pop(FALSE);
+ pWait = new SwWait( *GetDocShell(), TRUE );
+
+ BOOL bSrchBkwrd = DOCPOS_START == aOpts.eEnd;
+
+ aOpts.eEnd = bSrchBkwrd ? DOCPOS_START : DOCPOS_END;
+ aOpts.eStart = bSrchBkwrd ? DOCPOS_END : DOCPOS_START;
+
+ if (bHasSrchInOther)
+ {
+ pWrtShell->ClearMark();
+ if (bSrchBkwrd)
+ pWrtShell->EndDoc();
+ else
+ pWrtShell->SttDoc();
+ }
+
+ bFound = 0 != FUNC_Search( aOpts );
+ pWrtShell->EndAllAction();
+ delete pWait;
+ if ( bFound )
+ return bFound;
+ if(!bApi)
+ {
+ Window* pParentWindow = GetParentWindow( pSrchDlg );
+ InfoBox( pParentWindow, SW_RES(MSG_NOT_FOUND)).Execute();
+ }
+ return bFound = FALSE;
+}
+
+
+BOOL SwView::SearchAll(USHORT* pFound)
+{
+ SwWait aWait( *GetDocShell(), TRUE );
+ pWrtShell->StartAllAction();
+
+ SwSearchOptions aOpts( pWrtShell, pSrchItem->GetBackward() );
+
+ if (!pSrchItem->GetSelection())
+ {
+ // bestehende Selektionen aufheben,
+ // wenn nicht in selektierten Bereichen gesucht werden soll
+ (pWrtShell->*pWrtShell->fnKillSel)(0, FALSE);
+
+ if( DOCPOS_START == aOpts.eEnd )
+ pWrtShell->EndDoc();
+ else
+ pWrtShell->SttDoc();
+ }
+ bExtra = FALSE;
+ USHORT nFound = FUNC_Search( aOpts );
+ if(pFound)
+ *pFound = nFound;
+ bFound = 0 != nFound;
+
+ pWrtShell->EndAllAction();
+ return bFound;
+}
+
+
+void SwView::Replace()
+{
+ SwWait aWait( *GetDocShell(), TRUE );
+
+ pWrtShell->StartAllAction();
+ pWrtShell->StartUndo(UIUNDO_REPLACE);
+
+ if( pSrchItem->GetPattern() ) // Vorlagen?
+ pWrtShell->SetTxtFmtColl( pWrtShell->GetParaStyle(
+ pSrchItem->GetReplaceString(),
+ SwWrtShell::GETSTYLE_CREATESOME ));
+ else
+ {
+ pWrtShell->SwEditShell::Replace( pSrchItem->GetReplaceString(),
+ pSrchItem->GetRegExp());
+
+ if( pReplList && pReplList->Count() && pWrtShell->HasSelection() )
+ {
+ SfxItemSet aReplSet( pWrtShell->GetAttrPool(),
+ aTxtFmtCollSetRange );
+ if( pReplList->Get( aReplSet ).Count() )
+ {
+ ::SfxToSwPageDescAttr( *pWrtShell, aReplSet );
+ pWrtShell->SwEditShell::SetAttr( aReplSet );
+ }
+ }
+ }
+ pWrtShell->EndUndo(UIUNDO_REPLACE);
+ pWrtShell->EndAllAction();
+}
+
+
+
+SwSearchOptions::SwSearchOptions( SwWrtShell* pSh, BOOL bBackward )
+{
+ eStart = DOCPOS_CURR;
+ if( bBackward )
+ {
+ eEnd = DOCPOS_START;
+ bDontWrap = pSh->IsEndOfDoc();
+ }
+ else
+ {
+ eEnd = DOCPOS_END;
+ bDontWrap = pSh->IsStartOfDoc();
+ }
+}
+
+
+ULONG SwView::FUNC_Search( const SwSearchOptions& rOptions )
+{
+ BOOL bDoReplace = pSrchItem->GetCommand() == SVX_SEARCHCMD_REPLACE ||
+ pSrchItem->GetCommand() == SVX_SEARCHCMD_REPLACE_ALL;
+
+ int eRanges = pSrchItem->GetSelection() ?
+ FND_IN_SEL : bExtra ? FND_IN_OTHER : FND_IN_BODY;
+ if (pSrchItem->GetCommand() == SVX_SEARCHCMD_FIND_ALL ||
+ pSrchItem->GetCommand() == SVX_SEARCHCMD_REPLACE_ALL)
+ eRanges |= FND_IN_SELALL;
+
+ pWrtShell->SttSelect();
+
+ static USHORT __READONLY_DATA aSearchAttrRange[] = {
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ RES_CHRATR_BEGIN, RES_CHRATR_END-1,
+ RES_PARATR_BEGIN, RES_PARATR_END-1,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
+ 0 };
+
+ SfxItemSet aSrchSet( pWrtShell->GetAttrPool(), aSearchAttrRange);
+ if( pSrchList && pSrchList->Count() )
+ {
+ pSrchList->Get( aSrchSet );
+
+ /* -- Seitenumbruch mit Seitenvorlage */
+ ::SfxToSwPageDescAttr( *pWrtShell, aSrchSet );
+ }
+
+ SfxItemSet* pReplSet = 0;
+ if( bDoReplace && pReplList && pReplList->Count() )
+ {
+ pReplSet = new SfxItemSet( pWrtShell->GetAttrPool(),
+ aSearchAttrRange );
+ pReplList->Get( *pReplSet );
+
+ /* -- Seitenumbruch mit Seitenvorlage */
+ ::SfxToSwPageDescAttr( *pWrtShell, *pReplSet );
+
+ if( !pReplSet->Count() ) // schade, die Attribute
+ DELETEZ( pReplSet ); // kennen wir nicht
+ }
+
+ ULONG nFound;
+ if( aSrchSet.Count() || ( pReplSet && pReplSet->Count() ))
+ {
+ // Suche nach Attributen
+ SearchParam aPar( pSrchItem->GetSearchString() );
+ if( aPar.GetSrchStr().Len() )
+ {
+ if( bDoReplace )
+ aPar.SetReplaceStr( pSrchItem->GetReplaceString() );
+ aPar.SetSrchType( pSrchItem->GetRegExp()
+ ? SearchParam::SRCH_REGEXP :
+ pSrchItem->IsLevenshtein() ?
+ SearchParam::SRCH_LEVDIST :
+ SearchParam::SRCH_NORMAL );
+ aPar.SetCaseSensitive( pSrchItem->GetExact() );
+ aPar.SetSrchInSelection( pSrchItem->GetSelection() );
+ aPar.SetSrchWordOnly( pSrchItem->GetWordOnly() );
+
+ aPar.SetSrchRelaxed( pSrchItem->IsLEVRelaxed() );
+ aPar.SetLEVOther( pSrchItem->GetLEVOther());
+ aPar.SetLEVShorter( pSrchItem->GetLEVShorter());
+ aPar.SetLEVLonger( pSrchItem->GetLEVLonger());
+ }
+
+ nFound = pWrtShell->SearchAttr(
+ aSrchSet,
+ !pSrchItem->GetPattern(),
+ rOptions.eStart,
+ rOptions.eEnd,
+ FindRanges(eRanges),
+ pSrchItem->GetSearchString().Len() ? &aPar : 0,
+ pReplSet );
+ }
+ else if( pSrchItem->GetPattern() )
+ {
+ // Suchen (und ersetzen) von Vorlagen
+ nFound = pWrtShell->SearchTempl( pSrchItem->GetSearchString(),
+ rOptions.eStart,
+ rOptions.eEnd,
+ FindRanges(eRanges),
+ bDoReplace ? &pSrchItem->GetReplaceString() : 0 );
+ }
+ else
+ {
+ // Normale Suche
+
+ SearchParam aParam( pSrchItem->GetSearchString(),
+ pSrchItem->GetRegExp()
+ ? SearchParam::SRCH_REGEXP :
+ pSrchItem->IsLevenshtein() ?
+ SearchParam::SRCH_LEVDIST :
+ SearchParam::SRCH_NORMAL,
+ pSrchItem->GetExact(),
+ pSrchItem->GetWordOnly(),
+ pSrchItem->GetSelection() );
+ aParam.SetSrchRelaxed( pSrchItem->IsLEVRelaxed() );
+ aParam.SetLEVOther( pSrchItem->GetLEVOther());
+ aParam.SetLEVShorter( pSrchItem->GetLEVShorter());
+ aParam.SetLEVLonger( pSrchItem->GetLEVLonger());
+
+ if (bDoReplace)
+ aParam.SetReplaceStr(pSrchItem->GetReplaceString());
+
+ nFound = pWrtShell->SearchPattern(aParam,
+ rOptions.eStart,
+ rOptions.eEnd,
+ FindRanges(eRanges),
+ bDoReplace );
+ }
+ pWrtShell->EndSelect();
+ return nFound;
+}
+
+
+Dialog* SwView::GetSearchDialog()
+{
+ const USHORT nId = SvxSearchDialogWrapper::GetChildWindowId();
+ SvxSearchDialogWrapper *pWrp = (SvxSearchDialogWrapper*)SfxViewFrame::Current()->GetChildWindow(nId);
+ if ( pWrp )
+ pSrchDlg = (SvxSearchDialog*)(pWrp->GetWindow());
+ else
+ pSrchDlg = 0;
+ return pSrchDlg;
+}
+
+
+void SwView::StateSearch(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter(rSet);
+ USHORT nWhich = aIter.FirstWhich();
+ SearchAttrItemList* pSrchRepList = pSrchList;
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_SEARCH_OPTIONS:
+ {
+ UINT16 nOpt = 0xFFFF;
+ if( GetDocShell()->IsReadOnly() )
+ nOpt &= ~( SEARCH_OPTIONS_REPLACE |
+ SEARCH_OPTIONS_REPLACE_ALL );
+ rSet.Put( SfxUInt16Item( SID_SEARCH_OPTIONS, nOpt));
+ }
+ break;
+ case SID_SEARCH_ITEM:
+ {
+ if ( !pSrchItem )
+ {
+ pSrchItem = new SvxSearchItem( SID_SEARCH_ITEM );
+ pSrchItem->SetFamily(SFX_STYLE_FAMILY_PARA);
+ pSrchItem->SetSearchString( pWrtShell->GetSelTxt() );
+ }
+
+ if( bJustOpened && pWrtShell->IsSelection() )
+ {
+ String aTxt;
+ if( 1 == pWrtShell->GetCrsrCnt() &&
+ ( aTxt = pWrtShell->SwCrsrShell::GetSelTxt() ).Len() )
+ {
+ pSrchItem->SetSearchString( aTxt );
+ pSrchItem->SetSelection( FALSE );
+ }
+ else
+ pSrchItem->SetSelection( TRUE );
+ }
+
+ bJustOpened = FALSE;
+ rSet.Put( *pSrchItem );
+ }
+ break;
+
+/* case SID_SEARCH_REPLACESET:
+ case SID_SEARCH_SEARCHSET:
+ {
+ static USHORT __READONLY_DATA aSearchAttrRange[] =
+ {
+ RES_CHRATR_CASEMAP, RES_CHRATR_POSTURE,
+ RES_CHRATR_SHADOWED, RES_CHRATR_WORDLINEMODE,
+ RES_PARATR_LINESPACING, RES_PARATR_HYPHENZONE,
+ RES_LR_SPACE, RES_UL_SPACE,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
+ 0
+ };
+
+ SfxItemSet aSet(pWrtShell->GetAttrPool(), aSearchAttrRange );
+ if( SID_SEARCH_REPLACESET==nWhich )
+ {
+ if( pReplList )
+ {
+ pReplList->Get( aSet );
+ DELETEZ( pReplList );
+ }
+ }
+ else if( pSrchList )
+ {
+ pSrchList->Get( aSet );
+ DELETEZ( pSrchList );
+ }
+ rSet.Put( SvxSetItem( nWhich, aSet ));
+ }
+ break;
+*/
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.57 2000/09/18 16:06:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.56 2000/09/08 08:12:54 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.55 2000/09/07 16:05:57 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.54 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.53 2000/05/24 13:13:59 hr
+ conflict between STLPORT and Workshop header
+
+ Revision 1.52 2000/05/23 19:42:38 jp
+ Bugfixes for Unicode
+
+ Revision 1.51 2000/05/23 07:59:19 jp
+ Changes for Unicode
+
+ Revision 1.50 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.49 2000/04/18 15:02:51 os
+ UNICODE
+
+ Revision 1.48 2000/03/08 17:23:27 os
+ GetAppWindow() - misuse as parent window eliminated
+
+ Revision 1.47 2000/02/15 18:44:18 jp
+ Bug #73058#: dont search charsetcolor-item
+
+ Revision 1.46 2000/02/11 14:59:44 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.45 1999/07/08 16:45:18 MA
+ Use internal object to toggle wait cursor
+
+
+ Rev 1.44 08 Jul 1999 18:45:18 MA
+ Use internal object to toggle wait cursor
+
+ Rev 1.43 25 Jan 1999 13:49:16 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.42 20 Oct 1998 11:58:54 OS
+ #58161# Zeichenhintergrund suchen
+
+ Rev 1.41 20 Aug 1998 07:41:54 OS
+ Rahmenselektion aufheben, wenn Text gefunden wurde #55310#
+
+ Rev 1.40 12 Aug 1998 18:46:10 HR
+ #54781#: GCC braucht Temporary
+
+ Rev 1.39 25 Jun 1998 10:19:28 OS
+ SearchAll liefert Count zurueck #51651#
+
+ Rev 1.38 24 Feb 1998 18:06:02 OS
+ Navigationstype bei FID_SEARCH_NOW setzen
+
+ Rev 1.37 24 Feb 1998 15:29:08 JP
+ Search..: SWPOSDOC entfernt, auf enums umgestellt
+
+ Rev 1.36 29 Nov 1997 16:48:34 MA
+ includes
+
+ Rev 1.35 21 Nov 1997 15:00:26 MA
+ includes
+
+ Rev 1.34 30 Sep 1997 16:58:52 TJ
+ include
+
+ Rev 1.33 29 Aug 1997 16:40:28 OS
+ Suchmethoden fuer Basic returnen immer etwas #43261#, DLL-Umstellung
+
+ Rev 1.32 07 Aug 1997 16:53:12 OS
+ auch ReplaceAll returnt BOOL #42418#
+
+ Rev 1.31 05 Aug 1997 16:36:36 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.30 31 Jul 1997 14:59:44 MH
+ chg: header
+
+ Rev 1.29 30 Jul 1997 19:05:48 HJS
+ includes
+
+ Rev 1.28 23 Jul 1997 21:42:34 HJS
+ includes
+
+ Rev 1.27 12 Jul 1997 09:49:46 OS
+ keine Dialog fuer RepeatSearch aus der API mit nichtgesetzten SearchItem
+
+ Rev 1.26 11 Jul 1997 13:51:48 OS
+ Search, Replace und SearchAll returnen BOOL
+
+ Rev 1.25 30 Jun 1997 18:55:06 JP
+ Attributiert suchen: Attrset - Bereich erweitert
+
+ Rev 1.24 24 Jun 1997 10:15:02 OS
+ LR und ULSpace ohne _PARA_ #40922#
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/viewstat.cxx b/sw/source/ui/uiview/viewstat.cxx
new file mode 100644
index 000000000000..8b53bf80526a
--- /dev/null
+++ b/sw/source/ui/uiview/viewstat.cxx
@@ -0,0 +1,606 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewstat.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_LINGUISTIC_XTHESAURUS_HPP_
+#include <com/sun/star/linguistic/XThesaurus.hpp>
+#endif
+
+#ifndef _AEITEM_HXX //autogen
+#include <svtools/aeitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+//#ifndef _TWAIN_HXX //autogen
+//#include <svtools/twain.hxx>
+//#endif
+#ifndef _SFX_OBJITEM_HXX //autogen
+#include <sfx2/objitem.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SVXLINKMGR_HXX
+#include <svx/linkmgr.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_BRSHITEM_HXX //autogen
+#include <svx/brshitem.hxx>
+#endif
+#ifndef _SVX_HTMLMODE_HXX //autogen
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _UNO_LINGU_HXX
+#include <svx/unolingu.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include "swmodule.hxx"
+#endif
+
+
+#ifndef _REDLENUM_HXX
+#include <redlenum.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _TABLEMGR_HXX
+#include <tablemgr.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _SWGLOBDOCSH_HXX //autogen
+#include <globdoc.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+
+using namespace ::com::sun::star;
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwView::GetState(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter(rSet);
+ sal_uInt16 nWhich = aIter.FirstWhich();
+ sal_uInt16 eFrmType = FRMTYPE_NONE;
+ int bGetFrmType = sal_False;
+ sal_Bool bWeb = 0 != PTR_CAST(SwWebView, this);
+
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case FN_EDIT_LINK_DLG:
+ if( !pWrtShell->GetLinkManager().GetLinks().Count() )
+ rSet.DisableItem(nWhich);
+ else if( pWrtShell->IsSelFrmMode() &&
+ pWrtShell->IsSelObjProtected(FLYPROTECT_CONTENT))
+ rSet.DisableItem(nWhich);
+ break;
+
+ case FN_INSERT_CAPTION:
+ {
+ // Captions gibt's fuer Grafiken, OLE-Objekte, Rahmen und Tabellen
+ if( !bGetFrmType )
+ eFrmType = pWrtShell->GetFrmType(0,sal_True), bGetFrmType = sal_True;
+ if (! ( ((eFrmType & FRMTYPE_FLY_ANY) && nSelectionType != SwWrtShell::SEL_DRW_TXT)||
+ nSelectionType & SwWrtShell::SEL_TBL ||
+ nSelectionType & SwWrtShell::SEL_DRW) )
+ rSet.DisableItem(nWhich);
+ else if( pWrtShell->IsTableMode() )
+ rSet.DisableItem(nWhich);
+ }
+ break;
+
+ case FN_EDIT_FOOTNOTE:
+ {
+ if( !pWrtShell->GetCurFtn() )
+ rSet.DisableItem(nWhich);
+ }
+ break;
+
+ case FN_CHANGE_PAGENUM:
+ {
+ sal_uInt16 nType = pWrtShell->GetFrmType(0,sal_True);
+ if( ( FRMTYPE_FLY_ANY | FRMTYPE_HEADER | FRMTYPE_FOOTER |
+ FRMTYPE_FOOTNOTE | FRMTYPE_DRAWOBJ ) & nType )
+ rSet.DisableItem(nWhich);
+ else
+ rSet.Put(SfxUInt16Item(nWhich, pWrtShell->GetPageOffset()));
+ }
+ break;
+ case SID_PRINTDOC:
+ case SID_PRINTDOCDIRECT:
+ GetSlotState( nWhich, SfxViewShell::GetInterface(), &rSet );
+ break;
+ case SID_ATTR_PAGE:
+ case SID_ATTR_PAGE_SIZE:
+ case SID_ATTR_PAGE_PAPERBIN:
+ case RES_PAPER_BIN:
+ case FN_PARAM_FTN_INFO:
+ {
+ const sal_uInt16 nCurIdx = pWrtShell->GetCurPageDesc();
+ const SwPageDesc& rDesc = pWrtShell->GetPageDesc( nCurIdx );
+ ::PageDescToItemSet( rDesc, rSet);
+ }
+ break;
+ case RES_BACKGROUND:
+ case SID_ATTR_BRUSH:
+ {
+ const sal_uInt16 nCurIdx = pWrtShell->GetCurPageDesc();
+ const SwPageDesc& rDesc = pWrtShell->GetPageDesc( nCurIdx );
+ const SwFrmFmt& rMaster = rDesc.GetMaster();
+ const SvxBrushItem& rBrush = (const SvxBrushItem&)
+ rMaster.GetAttr(RES_BACKGROUND, sal_True);
+ rSet.Put(rBrush);
+ }
+ break;
+ case SID_CLEARHISTORY:
+ {
+ rSet.Put(SfxBoolItem(nWhich, pWrtShell->GetUndoIds() != 0));
+ }
+ break;
+ case SID_UNDO:
+ {
+ //JP 21.07.98: Bug 53429 - die muss noch nicht vorhanden sein
+ // also lasse sie mal anlegen:
+ if( !pShell )
+ SelectShell();
+
+ const SfxPoolItem* pState = pShell->GetSlotState(SID_UNDO);
+ if(pState)
+ rSet.Put(*pState);
+ else
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case FN_INSERT_CTRL:
+ rSet.Put(SfxUInt16Item(nWhich,
+ bWeb ? SwView::nWebInsertCtrlState : SwView::nInsertCtrlState));
+ break;
+ case FN_INSERT_OBJ_CTRL:
+ if(bWeb)
+ rSet.DisableItem(nWhich);
+ else
+ rSet.Put(SfxUInt16Item(nWhich, SwView::nInsertObjectCtrlState));
+ break;
+ case FN_UPDATE_TOX:
+ if(!pWrtShell->GetTOXCount())
+ rSet.DisableItem(nWhich);
+ break;
+ case FN_EDIT_CURRENT_TOX:
+ case FN_UPDATE_CUR_TOX:
+ if(!pWrtShell->GetCurTOX())
+ rSet.DisableItem(nWhich);
+ break;
+ case SID_TWAIN_SELECT:
+ case SID_TWAIN_TRANSFER:
+#if defined WIN || defined WNT || defined UNX
+ {
+ if(!SW_MOD()->GetScannerManager().is())
+ rSet.DisableItem(nWhich);
+ }
+#endif
+ break;
+ case RES_PARATR_TABSTOP:
+ case SID_ATTR_DEFTABSTOP:
+ {
+ const SvxTabStopItem& rDefTabs =
+ (const SvxTabStopItem&)pWrtShell->
+ GetDefault(RES_PARATR_TABSTOP);
+ rSet.Put( SfxUInt16Item( nWhich,
+ (sal_uInt16)::GetTabDist(rDefTabs)));
+ }
+ break;
+ case SID_ATTR_LANGUAGE:
+ {
+ rSet.Put((const SvxLanguageItem&)
+ pWrtShell->GetDefault(RES_CHRATR_LANGUAGE), SID_ATTR_LANGUAGE);
+ }
+ break;
+ case FN_INSERT_FOOTER:
+ case FN_INSERT_HEADER:
+ if(!pWrtShell->IsBrowseMode())
+ rSet.DisableItem(nWhich);
+ else
+ rSet.Put(SfxBoolItem(nWhich,
+ nWhich == FN_INSERT_HEADER ?
+ pWrtShell->IsHeadInBrowse() :
+ pWrtShell->IsFootInBrowse()));
+ break;
+ case FN_HYPHENATE_OPT_DLG:
+ {
+ sal_Bool bCheck = sal_False;
+
+ if (pWrtShell->GetSelectionType() & (SwWrtShell::SEL_DRW_TXT|SwWrtShell::SEL_DRW))
+ bCheck = IsDrawTextHyphenate();
+ rSet.Put(SfxBoolItem(nWhich, bCheck));
+ }
+ break;
+ case FN_REDLINE_ON:
+ if( pWrtShell->IsInsMode() )
+ {
+ rSet.Put( SfxBoolItem( nWhich,
+ (pWrtShell->GetRedlineMode() & REDLINE_ON) != 0));
+ }
+ else
+ rSet.DisableItem( nWhich );
+ break;
+ case FN_REDLINE_SHOW:
+ {
+ sal_uInt16 nMask = REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE;
+ rSet.Put( SfxBoolItem( nWhich,
+ (pWrtShell->GetRedlineMode() & nMask) == nMask ));
+ }
+ break;
+ case FN_REDLINE_ACCEPT:
+ {
+ SfxViewFrame* pVFrame = GetViewFrame();
+ if (pVFrame->KnowsChildWindow(nWhich))
+ rSet.Put(SfxBoolItem( nWhich, pVFrame->HasChildWindow(nWhich)));
+ else
+ rSet.DisableItem(nWhich);
+ }
+ break;
+ case FN_THESAURUS_DLG:
+ {
+ SwWrtShell &rSh = GetWrtShell();
+ if (2 <= rSh.GetCrsrCnt()) // multi selection?
+ rSet.DisableItem(nWhich);
+ else
+ {
+ SfxItemPool &rPool = GetPool();
+ SfxItemSet aCoreSet(rPool, RES_CHRATR_LANGUAGE,
+ RES_CHRATR_LANGUAGE);
+ rSh.GetAttr(aCoreSet);
+
+ const SfxPoolItem* pItem = 0;
+ SfxItemState eState = aCoreSet.GetItemState(
+ RES_CHRATR_LANGUAGE, sal_False, &pItem);
+
+ LanguageType nLang = LANGUAGE_NONE;
+ if( SFX_ITEM_DEFAULT == eState ) // provide default if not found
+ pItem = &rPool.GetDefaultItem(RES_CHRATR_LANGUAGE);
+ if( eState >= SFX_ITEM_DEFAULT )
+ nLang = ((SvxLanguageItem* )pItem)->GetLanguage();
+
+ // disable "Thesaurus" (menu entry and key shortcut) if the
+ // language is not supported (by default it is enabled)
+ uno::Reference< linguistic::XThesaurus > xThes( ::GetThesaurus() );
+ if (!xThes.is() || nLang == LANGUAGE_NONE ||
+ !xThes->hasLocale( SvxCreateLocale( nLang ) ))
+ rSet.DisableItem(nWhich);
+ }
+ }
+ break;
+ case SID_MAIL_SCROLLBODY_PAGEDOWN:
+ {
+ long nBottom = pWrtShell->GetDocSize().Height() + DOCUMENTBORDER;
+ long nAct = GetVisArea().Bottom();
+ rSet.Put(SfxBoolItem(SID_MAIL_SCROLLBODY_PAGEDOWN, nAct < nBottom ));
+ }
+ break;
+
+ case SID_DOCUMENT_COMPARE:
+ case SID_DOCUMENT_MERGE:
+ if( GetDocShell()->IsA( SwGlobalDocShell::StaticType() ) ||
+ pWrtShell->IsAnySectionInDoc( sal_True, sal_True, sal_True ))
+ rSet.DisableItem(nWhich);
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwView::GetDrawState(SfxItemSet &rSet)
+{
+ SfxWhichIter aIter(rSet);
+ sal_Bool bWeb = 0 != PTR_CAST(SwWebView, this);
+
+ sal_uInt16 nWhich = aIter.FirstWhich();
+ while(nWhich)
+ {
+ switch(nWhich)
+ {
+ case SID_INSERT_DRAW:
+ {
+ if(bWeb)
+ rSet.DisableItem(nWhich);
+ else
+ {
+ SfxAllEnumItem aEnum(SID_INSERT_DRAW, nDrawSfxId);
+ rSet.Put(aEnum);
+ }
+ }
+ break;
+
+ case SID_SHOW_HIDDEN:
+ case SID_SHOW_FORMS:
+ rSet.DisableItem( nWhich );
+ // rSet.Put( SfxBoolItem(nWhich,sal_True ));
+ break;
+
+ case SID_DRAW_TEXT_MARQUEE:
+ if (::GetHtmlMode(GetDocShell()) & HTMLMODE_SOME_STYLES)
+ rSet.Put( SfxBoolItem(nWhich, nDrawSfxId == nWhich));
+ else
+ rSet.DisableItem(nWhich);
+ break;
+ case SID_OBJECT_SELECT:
+ rSet.Put( SfxBoolItem(nWhich, nDrawSfxId == nWhich || nFormSfxId == nWhich));
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+sal_Bool SwView::HasUIFeature( sal_uInt32 nFeature )
+{
+ return pWrtShell->IsLabelDoc();
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.147 2000/09/18 16:06:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.146 2000/09/08 08:12:54 os
+ Change: Set/Toggle/Has/Knows/Show/GetChildWindow
+
+ Revision 1.145 2000/08/18 14:46:23 tl
+ #74855# disable Thesaurus for multiselections
+
+ Revision 1.144 2000/05/29 08:03:23 os
+ new scanner interface
+
+ Revision 1.143 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.142 2000/05/15 16:47:34 jp
+ Changes for Unicode
+
+ Revision 1.141 2000/05/09 14:43:13 os
+ BASIC interface partially removed
+
+ Revision 1.140 2000/04/18 15:02:51 os
+ UNICODE
+
+ Revision 1.139 2000/03/23 07:50:25 os
+ UNO III
+
+ Revision 1.138 2000/02/16 21:01:21 tl
+ #72219# Locale Umstellung
+
+ Revision 1.137 2000/02/15 14:17:26 os
+ #72904# INSERT_CAPTION: not allowed in draw text edit
+
+ Revision 1.136 2000/02/11 14:59:48 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.135 2000/01/21 13:29:46 tl
+ #70503# disbale Thesaurus slot if language is not support
+
+ Revision 1.134 2000/01/17 14:40:36 os
+ #71979# IsAnySectionInDoc: check indexes
+
+ Revision 1.133 1999/06/09 11:19:40 OS
+ #66578# new slot: FN_EDIT_CURENT_TOX
+
+
+ Rev 1.132 09 Jun 1999 13:19:40 OS
+ #66578# new slot: FN_EDIT_CURENT_TOX
+
+ Rev 1.131 09 Mar 1999 12:55:50 OS
+ #61809# Kein Scanning im RemoteServer
+
+ Rev 1.130 28 Jan 1999 18:16:32 JP
+ Bug #59688#: kein vergleichen/zusammenfassen wenn das Doc geschuetzte/versteckte Breiche enthaelt
+
+ Rev 1.129 27 Jan 1999 13:39:54 JP
+ Bug #59688#: bei GlobalDokumenten gibts kein vergeleichen oder zusammenfuehren
+
+ Rev 1.128 10 Dec 1998 09:47:16 MIB
+ #60060#: Beschriftungen fuer Zeichen-Objekte
+
+ Rev 1.127 27 Nov 1998 15:01:10 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.126 18 Nov 1998 15:06:42 OM
+ #59280# FormController Create Modes verlassen
+
+ Rev 1.125 21 Jul 1998 20:48:44 JP
+ Bug #53429# GetState mit SID_UNDO - die Shell kann auch noch 0 sein, also anlegen
+
+ Rev 1.124 14 Jul 1998 10:43:46 OM
+ #52748# Twain-Menueeintrag
+
+ Rev 1.123 11 Jul 1998 12:28:16 MA
+ chg: State fuer scrollbody
+
+ Rev 1.122 09 Jun 1998 15:32:20 OM
+ VC-Controls entfernt
+
+ Rev 1.121 01 Apr 1998 17:31:48 OM
+ #31111 Rahmen in protecteten Rahmen sind auch geschuetzt
+
+ Rev 1.120 16 Mar 1998 16:18:04 OM
+ Aktualisieren-Button kontextsensitiv
+
+ Rev 1.119 15 Mar 1998 15:14:14 OM
+ Synchron-Button
+
+ Rev 1.118 12 Mar 1998 12:55:22 OS
+ SID_NEWWINDOW nicht mehr ueberladen
+
+ Rev 1.117 03 Mar 1998 16:39:02 OM
+ ofa includen
+
+ Rev 1.116 03 Mar 1998 10:43:12 OM
+ Redline-Browser
+
+ Rev 1.115 19 Feb 1998 09:35:08 JP
+ RedlineMode darf nur im InsertMode einschaltbar sein
+
+ Rev 1.114 18 Feb 1998 15:02:44 JP
+ Status erfragen/setzen fuer Redlines anzeigen korrigiert
+
+ Rev 1.113 03 Feb 1998 15:28:22 OM
+ Redlining
+
+ Rev 1.112 23 Jan 1998 16:04:16 MA
+ includes
+
+ Rev 1.111 06 Jan 1998 07:28:40 OS
+ getrennter Status fuer Insert-Controller #46322#
+
+ Rev 1.110 16 Dec 1997 12:00:26 OS
+ Impl-Pointer fuer UNO
+
+ Rev 1.109 29 Nov 1997 16:49:26 MA
+ includes
+
+ Rev 1.108 28 Nov 1997 11:35:50 TJ
+ include
+
+ Rev 1.107 21 Nov 1997 15:00:24 MA
+ includes
+
+ Rev 1.106 03 Nov 1997 13:58:28 MA
+ precomp entfernt
+
+ Rev 1.105 01 Sep 1997 13:13:56 OS
+ DLL-Umstellung
+
+ Rev 1.104 15 Aug 1997 11:48:02 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.103 11 Aug 1997 10:29:42 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.102 31 Jul 1997 14:59:46 MH
+ chg: header
+
+ Rev 1.101 09 Jun 1997 14:27:56 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.100 05 Jun 1997 09:33:40 OS
+ FN_INSERT_HEADER/FOOTER im Druck-Layout disablen #40441#
+
+ Rev 1.99 20 Mar 1997 19:15:20 OS
+ Objekt einfuegen und Draw einfuegen im Web disabled
+
+ Rev 1.98 11 Mar 1997 16:11:38 OS
+ FN_TOOLBOX_SWITCH weg
+
+ Rev 1.97 24 Feb 1997 16:53:56 OM
+ Silbentrennung in Draw-Objekten
+
+ Rev 1.96 23 Feb 1997 22:17:56 OM
+ Feld-Controller an Textshell verschoben
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/uiview/viewtab.cxx b/sw/source/ui/uiview/viewtab.cxx
new file mode 100644
index 000000000000..fb84d56bef31
--- /dev/null
+++ b/sw/source/ui/uiview/viewtab.cxx
@@ -0,0 +1,1974 @@
+/*************************************************************************
+ *
+ * $RCSfile: viewtab.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+
+#pragma hdrstop
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+
+#include <hintids.hxx>
+#include "uiparam.hxx"
+#include "uitool.hxx"
+
+#ifndef _SVX_RULRITEM_HXX //autogen
+#include <svx/rulritem.hxx>
+#endif
+#ifndef _SVX_TSPTITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFX_WHITER_HXX //autogen
+#include <svtools/whiter.hxx>
+#endif
+#ifndef _SVX_RULER_HXX //autogen
+#include <svx/ruler.hxx>
+#endif
+#ifndef _SVX_PROTITEM_HXX //autogen
+#include <svx/protitem.hxx>
+#endif
+#ifndef _SFXRECTITEM_HXX //autogen
+#include <svtools/rectitem.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX
+#include <sfx2/bindings.hxx>
+#endif
+
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTHDFT_HXX //autogen
+#include <fmthdft.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "basesh.hxx"
+#include "cmdid.h"
+#include "viewopt.hxx"
+#include "tabcol.hxx"
+#include "frmfmt.hxx" // FrameFormat
+#include "pagedesc.hxx" // Aktuelles Seitenformat
+#include "wview.hxx"
+#include "fmtcol.hxx"
+#include "section.hxx"
+
+/*--------------------------------------------------------------------
+ Beschreibung: Debug-Methode
+ --------------------------------------------------------------------*/
+#ifdef DEBUGLIN
+
+
+static void DebugTabCols(const SwTabCols &rCols)
+{
+ String aTmp("TabCols LeftMin ");
+ aTmp += rCols.GetLeftMin() / 56;
+ aTmp += "Left: ";
+ aTmp += rCols.GetLeft() / 56;
+ aTmp += "Right: ";
+ aTmp += rCols.GetRight() / 56;
+ aTmp += "RightMax: ";
+ aTmp += rCols.GetRightMax() / 56;
+ aTmp += ": ";
+ const USHORT nCount = rCols.Count();
+ for(USHORT i = 0; i < nCount; ++i) {
+ aTmp += rCols[i] / 56;
+ aTmp += ' ';
+ }
+ InfoBox(0, aTmp).Execute();
+}
+
+
+
+static void DebugColItems(SvxColumnItem& rColItem)
+{
+ String aTmp("Aktuell: ");
+ aTmp += rColItem.GetActColumn();
+ aTmp += " ColLeft: ";
+ aTmp += String(rColItem.GetLeft() / 56);
+ aTmp += " ColRight: ";
+ aTmp += String(rColItem.GetRight() / 56);
+ for(USHORT i = 0; i < rColItem.Count(); ++i) {
+ aTmp += " Start: ";
+ aTmp += String(rColItem[i].nStart/56);
+ aTmp += " End: ";
+ aTmp += String(rColItem[i].nEnd/56);
+ }
+
+ InfoBox(0, aTmp).Execute();
+}
+
+
+static void DebugLRSpace(const SvxLongLRSpaceItem& rLRSpace)
+{
+ String aTmp("Left: ");
+ aTmp += rLRSpace.GetLeft() / 56;
+ aTmp += " Right: ";
+ aTmp += rLRSpace.GetRight() / 56;
+ InfoBox(0, aTmp).Execute();
+}
+
+
+
+static void DebugULSpace(const SvxLongULSpaceItem& rULSpace)
+{
+ String aTmp("Upper: ");
+ aTmp += rULSpace.GetUpper() / 56;
+ aTmp += " Lower: ";
+ aTmp += rULSpace.GetLower() / 56;
+
+ InfoBox(0, aTmp).Execute();
+}
+
+
+
+static void DebugTabStops(const SvxTabStopItem& rTabs)
+{
+ String aTmp("Tabs: ");
+
+ // Def Tabs loeschen
+ for(USHORT i = 0; i < rTabs.Count(); ++i)
+ {
+ aTmp += String(rTabs[i].GetTabPos() / 56);
+ aTmp += " : ";
+ }
+ InfoBox(0, aTmp).Execute();
+}
+
+
+
+static void DebugParaMargin(const SvxLRSpaceItem& rLRSpace)
+{
+ String aTmp("ParaLeft: ");
+ aTmp += rLRSpace.GetTxtLeft() / 56;
+ aTmp += " ParaRight: ";
+ aTmp += rLRSpace.GetRight() / 56;
+ aTmp += " FLI: ";
+ aTmp += rLRSpace.GetTxtFirstLineOfst() / 56;
+ InfoBox(0, aTmp).Execute();
+}
+#define DEBUGTABCOLS( bla ) DebugTabCols( bla )
+#define DEBUGCOLITEMS( bla ) DebugColItems ( bla )
+#define DEBUGLRSPACE( bla ) DebugLRSpace ( bla )
+#define DEBUGULSPACE( bla ) DebugULSpace ( bla )
+#define DEBUGTABSTOPS( bla ) DebugTabStops ( bla )
+#define DEBUGPARAMARGIN( bla ) DebugParaMargin ( bla )
+#else
+#define DEBUGTABCOLS
+#define DEBUGCOLITEMS
+#define DEBUGLRSPACE
+#define DEBUGULSPACE
+#define DEBUGTABSTOPS
+#define DEBUGPARAMARGIN
+#endif
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Columns eintueten
+ --------------------------------------------------------------------*/
+
+
+void lcl_FillSvxColumn(const SwFmtCol& rCol,
+ USHORT nTotalWidth,
+ SvxColumnItem& rColItem,
+ long nDistance)
+{
+ const SwColumns& rCols = rCol.GetColumns();
+
+ USHORT nWidth = 0;
+
+ for ( USHORT i = 0; i < rCols.Count(); ++i )
+ {
+ SwColumn* pCol = rCols[i];
+ const USHORT nStart = USHORT(pCol->GetLeft() + nWidth + nDistance);
+ nWidth += rCol.CalcColWidth(i, nTotalWidth);
+ const USHORT nEnd = USHORT(nWidth - pCol->GetRight() + nDistance);
+
+ SvxColumnDescription aColDesc(nStart, nEnd, TRUE);
+ rColItem.Append(aColDesc);
+ }
+
+ // ?? gleichverteilte Spalten
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: ColumnItem in ColumnInfo ueberfuehren
+ --------------------------------------------------------------------*/
+
+
+void lcl_ConvertToCols(const SvxColumnItem& rColItem,
+ USHORT nTotalWidth,
+ SwFmtCol& rCols)
+{
+ ASSERT( rCols.GetNumCols() == rColItem.Count(), "Column count mismatch" );
+
+ USHORT nLeft = 0;
+ SwTwips nSumAll= 0; // Summiere alle Spalten und Raender auf
+
+ SwColumns& rArr = rCols.GetColumns();
+
+ // Tabcols der Reihe nach
+ for( USHORT i=0; i < rColItem.Count()-1; ++i )
+ {
+ DBG_ASSERT(rColItem[i+1].nStart >= rColItem[i].nEnd,"\201berlappende Spalten" );
+ USHORT nStart = rColItem[i+1].nStart;
+ USHORT nEnd = rColItem[i].nEnd;
+ if(nStart < nEnd)
+ nStart = nEnd;
+ const USHORT nDiff = nStart - nEnd;
+ const USHORT nRight = nDiff / 2;
+
+ USHORT nWidth = rColItem[i].nEnd - rColItem[i].nStart;
+ nWidth += nLeft + nRight;
+
+ SwColumn* pCol = rArr[i];
+ pCol->SetWishWidth( USHORT(long(rCols.GetWishWidth()) * long(nWidth) /
+ long(nTotalWidth) ));
+ pCol->SetLeft( nLeft );
+ pCol->SetRight( nRight );
+ nSumAll += pCol->GetWishWidth();
+
+ nLeft = nRight;
+ }
+ rArr[rColItem.Count()-1]->SetLeft( nLeft );
+
+ //Die Differenz aus der Gesamtwunschbreite und der Summe der bisher berechneten
+ // Spalten und Raender sollte die Breite der letzten Spalte ergeben.
+ rArr[rColItem.Count()-1]->SetWishWidth( rCols.GetWishWidth() - (USHORT)nSumAll );
+
+ rCols.SetOrtho(FALSE, 0, 0 );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Tabs loeschen
+ --------------------------------------------------------------------*/
+
+
+void lcl_EraseDefTabs(SvxTabStopItem& rTabStops)
+{
+ // Def Tabs loeschen
+ for ( USHORT i = 0; i < rTabStops.Count(); )
+ {
+ // Hier auch den DefTab auf Null rausschmeissen
+ if ( SVX_TAB_ADJUST_DEFAULT == rTabStops[i].GetAdjustment() ||
+ rTabStops[i].GetTabPos() == 0 )
+ {
+ rTabStops.Remove(i);
+ continue;
+ }
+ ++i;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Seitenrand umdrehen
+ --------------------------------------------------------------------*/
+
+
+void SwView::SwapPageMargin(const SwPageDesc& rDesc, SvxLRSpaceItem& rLRSpace)
+{
+ USHORT nPhyPage, nVirPage;
+ GetWrtShell().GetPageNum( nPhyPage, nVirPage );
+
+ if ( rDesc.GetUseOn() == PD_MIRROR && (nPhyPage % 2) == 0 )
+ {
+ USHORT nTmp = rLRSpace.GetRight();
+ rLRSpace.SetRight( rLRSpace.GetLeft() );
+ rLRSpace.SetLeft( nTmp );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Wenn der Rahmenrand verschoben wird, sollen die
+ Spaltentrenner an der gleichen absoluten Position bleiben
+ --------------------------------------------------------------------*/
+
+
+void lcl_Scale(long& nVal, long nScale)
+{
+ nVal *= nScale;
+ nVal >>= 8;
+}
+
+void ResizeFrameCols(SwFmtCol& rCol,
+ long nOldWidth,
+ long nNewWidth,
+ long nLeftDelta )
+{
+ SwColumns& rArr = rCol.GetColumns();
+ long nWishSum = (long)rCol.GetWishWidth();
+ long nWishDiff = (nWishSum * 100/nOldWidth * nNewWidth) / 100 - nWishSum;
+ long nNewWishWidth = nWishSum + nWishDiff;
+ if(nNewWishWidth > 0xffffl)
+ {
+ // wenn die Wunschbreite zu gross wird, dann muessen alle Werte passend skaliert werden
+ long nScale = (0xffffl << 8)/ nNewWishWidth;
+ for(USHORT i = 0; i < rArr.Count(); i++)
+ {
+ SwColumn* pCol = rArr.GetObject(i);
+ long nVal = pCol->GetWishWidth();
+ lcl_Scale(nVal, nScale);
+ pCol->SetWishWidth((USHORT) nVal);
+ nVal = pCol->GetLeft();
+ lcl_Scale(nVal, nScale);
+ pCol->SetLeft((USHORT) nVal);
+ nVal = pCol->GetRight();
+ lcl_Scale(nVal, nScale);
+ pCol->SetRight((USHORT) nVal);
+ }
+ lcl_Scale(nNewWishWidth, nScale);
+ lcl_Scale(nWishDiff, nScale);
+ }
+ rCol.SetWishWidth( (USHORT) (nNewWishWidth) );
+
+ if( nLeftDelta >= 2 || nLeftDelta <= -2)
+ rArr[0]->SetWishWidth(rArr[0]->GetWishWidth() + (USHORT)nWishDiff);
+ else
+ rArr[rArr.Count()-1]->SetWishWidth(rArr[rArr.Count()-1]->GetWishWidth() + (USHORT)nWishDiff);
+
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Hier werden alle Aenderungen der Tableiste
+ wieder in das Modell geschossen
+ --------------------------------------------------------------------*/
+
+
+void SwView::ExecTabWin( SfxRequest& rReq )
+{
+ SwWrtShell &rSh = GetWrtShell();
+ const USHORT nFrmType = rSh.IsObjSelected() ?
+ FRMTYPE_DRAWOBJ :
+ rSh.GetFrmType(0,TRUE);
+ const BOOL bFrmSelection = rSh.IsFrmSelected();
+ BOOL bBrowse = rSh.IsBrowseMode();
+
+
+ const USHORT nSlot = rReq.GetSlot();
+ const USHORT nDescId = rSh.GetCurPageDesc();
+ const SwPageDesc& rDesc = rSh.GetPageDesc( nDescId );
+
+ const SwFmtHeader& rHeaderFmt = rDesc.GetMaster().GetHeader();
+ SwFrmFmt *pHeaderFmt = (SwFrmFmt*)rHeaderFmt.GetHeaderFmt();
+
+ const SwFmtFooter& rFooterFmt = rDesc.GetMaster().GetFooter();
+ SwFrmFmt *pFooterFmt = (SwFrmFmt*)rFooterFmt.GetFooterFmt();
+
+ const SwFmtFrmSize &rFrmSize = rDesc.GetMaster().GetFrmSize();
+ const SwRect& rPrtRect = rSh.GetAnyCurRect(RECT_PAGE);
+ const long nPageWidth = bBrowse ?
+ rPrtRect.Width() :
+ rFrmSize.GetWidth();
+ const long nPageHeight = bBrowse ?
+ rPrtRect.Height() :
+ rFrmSize.GetHeight();
+ const SfxItemSet* pArgs = rReq.GetArgs();
+ // RULER_BORDERS wird sicherheitshalber nicht recorded
+ // da gibt es Aerger im Sfx
+ const SfxPoolItem* pItem;
+
+ BOOL bUnlockView = FALSE;
+ rSh.StartAllAction();
+
+ switch ( nSlot )
+ {
+ case RES_LR_SPACE:
+ case SID_ATTR_LRSPACE:
+ {
+ if(SFX_ITEM_SET == pArgs->GetItemState(RES_LR_SPACE, FALSE, &pItem))
+ {
+ const SvxLRSpaceItem* pLR = (const SvxLRSpaceItem*)pItem;
+
+ SvxLongLRSpaceItem aLongLR((long)pLR->GetLeft(),
+ (long)pLR->GetRight(),
+ SID_ATTR_LONG_LRSPACE);
+ SfxRequest aReq(SID_ATTR_LONG_LRSPACE, SFX_CALLMODE_SLOT, GetPool());
+ aReq.AppendItem(aLongLR);
+ ExecTabWin( aReq );
+ }
+ }
+ break;
+ case SID_ATTR_LONG_LRSPACE:
+ {
+ SvxLongLRSpaceItem aLongLR( (const SvxLongLRSpaceItem&)rReq.GetArgs()->
+ Get( SID_ATTR_LONG_LRSPACE ) );
+ SvxLRSpaceItem aLR;
+ DEBUGLRSPACE(aLongLR);
+ BOOL bSect = 0 != (nFrmType & FRMTYPE_COLSECT);
+ BOOL bTableColumns = 0 != rSh.GetTableFmt();
+ if(bSect && (bTableColumns || nFrmType & FRMTYPE_COLUMN))
+ {
+ SwRect aLastRect = rSh.GetAnyCurRect(RECT_SECTION);
+ long nOldLeft = (long)(aLastRect.Left() - DOCUMENTBORDER);
+ long nOldRight = (long)(nPageWidth + DOCUMENTBORDER - aLastRect.Right());
+ //welche Seite wurde veraendert? Rundungsfehler vermeiden
+ BOOL bLeftChanged = Abs(nOldLeft - aLongLR.GetLeft()) > Abs(nOldRight - aLongLR.GetRight());
+ const SwFrmFmt* pFmt = 0;
+ if(bTableColumns)
+ {
+ SwTabCols aTabCols;
+ rSh.GetTabCols(aTabCols);
+ //fuer die erste bzw. letzte Spalte wird der Tabellenrand veraendert, sonst
+ //die Spaltentrenner
+ USHORT nCurColNo = rSh.GetCurTabColNum();
+ USHORT nColCount = aTabCols.Count() + 1;
+
+ if(0 == nCurColNo && bLeftChanged)
+ {
+ //die erste
+ long nNewColPos = aLongLR.GetLeft();
+ if(nNewColPos >= aTabCols.GetLeftMin())
+ aTabCols.SetLeft((USHORT)nNewColPos - aTabCols.GetLeftMin()+ DOCUMENTBORDER);
+
+ }
+ else if(nColCount - 1 == nCurColNo && !bLeftChanged)
+ {
+ //die letzte
+ long nNewColPos = aLongLR.GetRight();
+ nNewColPos = nPageWidth - nNewColPos + DOCUMENTBORDER - aTabCols.GetLeftMin();
+ if(nNewColPos <= aTabCols.GetRightMax())
+ aTabCols.SetRight((USHORT)nNewColPos);
+ }
+ else
+ {
+ //mittendrin
+ long nLeftBorder;
+ long nRightBorder;
+ if(bLeftChanged)
+ {
+ nLeftBorder = nCurColNo - 1 ? aTabCols[nCurColNo - 2] : aTabCols.GetLeft();
+ nRightBorder = nCurColNo < nColCount - 1 ? aTabCols[nCurColNo] : aTabCols.GetRight();
+ }
+ else
+ {
+ nLeftBorder = nCurColNo ? aTabCols[nCurColNo - 1] : aTabCols.GetLeft();
+ nRightBorder = nCurColNo + 1 < nColCount ? aTabCols[nCurColNo + 1] : aTabCols.GetRight();
+ }
+
+ long nNewColPos = bLeftChanged ? aLongLR.GetLeft() : aLongLR.GetRight();
+ //hier muss noch die Border-Distance der Zelle eingerechnet werden
+ if(bLeftChanged)
+ nNewColPos = nNewColPos + DOCUMENTBORDER - aTabCols.GetLeftMin();
+ else
+ nNewColPos = nPageWidth - nNewColPos + DOCUMENTBORDER - aTabCols.GetLeftMin();
+
+
+ if(nNewColPos < nLeftBorder + MINLAY)
+ nNewColPos = nLeftBorder + MINLAY;
+ else if(nNewColPos > nRightBorder - MINLAY)
+ nNewColPos = nRightBorder - MINLAY;
+ aTabCols[nCurColNo - (bLeftChanged ? 1 : 0)] = (USHORT)nNewColPos;
+ }
+ rSh.SetTabCols(aTabCols, FALSE);
+ }
+ else if(0 != (pFmt = rSh.GetFlyFrmFmt()))
+ {
+ SwFmtCol aCol = pFmt->GetCol();
+ SwColumns& aCols = aCol.GetColumns();
+// const SwRect &rSizeRect = rSh.GetAnyCurRect(RECT_FLY_PRT_EMBEDDED);
+ const SwRect aFlyRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED);
+ const long lWidth = aFlyRect.Width();
+ USHORT nCurFrameCol = rSh.GetCurOutColNum() - 1;
+ USHORT nColCount = aCols.Count();
+ SfxItemSet aSet( GetPool(), RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_HORI_ORIENT, RES_HORI_ORIENT,
+ RES_COL, RES_COL, 0 );
+
+ if((0 == nCurFrameCol && bLeftChanged) ||
+ (nColCount - 1 == nCurFrameCol && !bLeftChanged))
+ {
+ //in LRSpace umsetzen
+ long nDeltaX = bLeftChanged ?
+ DOCUMENTBORDER + aLongLR.GetLeft() - aFlyRect.Left()
+ : 0 ;
+ SwFmtHoriOrient aHoriOrient( pFmt->GetHoriOrient() );
+ aHoriOrient.SetHoriOrient( HORI_NONE );
+ aHoriOrient.SetPos( aHoriOrient.GetPos() + nDeltaX );
+
+ SwFmtFrmSize aSize( pFmt->GetFrmSize() );
+ long nOldWidth = (long) aSize.GetWidth();
+
+ long nWidthDiff = nOldLeft - aLongLR.GetLeft() +
+ nOldRight - aLongLR.GetRight();
+ long nNewWidth = nOldWidth + nWidthDiff;
+ if(aSize.GetWidthPercent())
+ {
+ SwRect aRect;
+ rSh.CalcBoundRect(aRect, FLY_IN_CNTNT);
+ long nPrtWidth = aRect.Width();
+ aSize.SetWidthPercent(BYTE((
+ nNewWidth) * 100 /nPrtWidth));
+ }
+ else
+ aSize.SetWidth( nNewWidth );
+
+ ::ResizeFrameCols(aCol, nOldWidth, (long)aSize.GetWidth(), nDeltaX );
+ aSet.Put( aSize );
+ aSet.Put( aHoriOrient );
+
+ }
+ else //Spalten veraendert
+ {
+ long nLeftBorder = 0;
+ long nRightBorder = lWidth;
+ long nOldColPos = 0;
+ long nNewColPos = bLeftChanged ? aLongLR.GetLeft() : aLongLR.GetRight();
+ if(!bLeftChanged)
+ nNewColPos = nPageWidth - nNewColPos;
+
+ //mittendrin
+ long nWidth = 0;
+ for ( USHORT i = 0; i < aCols.Count(); ++i )
+ {
+ SwColumn* pCol = aCols[i];
+ nWidth += aCol.CalcColWidth(i, lWidth);
+ if( i == (bLeftChanged ? nCurFrameCol - 1 : nCurFrameCol))
+ nOldColPos = nWidth;
+ if( i == (bLeftChanged ? nCurFrameCol - 2 : nCurFrameCol - 1))
+ nLeftBorder = nWidth;
+ if(i == (bLeftChanged ? nCurFrameCol : nCurFrameCol + 1))
+ nRightBorder = nWidth;
+ }
+ nNewColPos -= aFlyRect.Left();
+ nNewColPos += DOCUMENTBORDER;
+ if(nNewColPos < nLeftBorder + MINLAY)
+ nNewColPos = nLeftBorder + MINLAY;
+ else if(nNewColPos > nRightBorder - MINLAY)
+ nNewColPos = nRightBorder - MINLAY;
+
+
+ // in WishWidth umrechnen:
+ nNewColPos = nNewColPos * long(aCol.GetWishWidth()) / lWidth;
+ nOldColPos = nOldColPos * long(aCol.GetWishWidth()) / lWidth;
+ long nDiff = nNewColPos - nOldColPos;
+
+ SwColumn* pCol = aCols[bLeftChanged ? nCurFrameCol : nCurFrameCol + 1];
+ pCol->SetWishWidth(long(pCol->GetWishWidth()) - nDiff );
+ //den Nachbarn in umgekehrter Weise veraendern
+ pCol = aCols[bLeftChanged ? nCurFrameCol - 1 : nCurFrameCol ];
+ pCol->SetWishWidth(long(pCol->GetWishWidth()) + nDiff );
+ }
+ aSet.Put( aCol );
+ rSh.StartAction();
+ rSh.Push();
+ rSh.SetFlyFrmAttr( aSet );
+ //die Rahmenselektion wieder aufheben
+ if(!bFrmSelection && rSh.IsFrmSelected())
+ {
+ rSh.UnSelectFrm();
+ rSh.LeaveSelFrmMode();
+ }
+ rSh.Pop();
+ rSh.EndAction();
+
+ }
+ else
+ {
+ //Seitenspalten
+ USHORT nCurCol = rSh.GetCurOutColNum();
+ nCurCol--;
+ const SwFrmFmt& rMaster = rDesc.GetMaster();
+ SwFmtCol aCol(rMaster.GetCol());
+ SwColumns& aCols = aCol.GetColumns();
+ //SvxColumnItem aColItem(nCurCol);
+ const SwRect aPageRect = rSh.GetAnyCurRect(RECT_PAGE_PRT);
+ const long lWidth = aPageRect.Width();
+ USHORT nColCount = aCols.Count();
+ SfxItemSet aSet( GetPool(), RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_HORI_ORIENT, RES_HORI_ORIENT,
+ RES_COL, RES_COL, 0 );
+
+ if((0 == nCurCol && bLeftChanged) ||
+ (nColCount - 1 == nCurCol && !bLeftChanged))
+ {
+ // Seitenraender einstellen
+ SvxLRSpaceItem aLR;
+ aLR.SetLeft ((aPageRect.Left()/* - DOCUMENTBORDER*/));
+ aLR.SetRight((nPageWidth + /*DOCUMENTBORDER*/ - aPageRect.Right()));
+ if(bLeftChanged)
+ aLR.SetLeft((USHORT)aLongLR.GetLeft());
+ else
+ aLR.SetRight((USHORT)aLongLR.GetRight());
+ SwapPageMargin( rDesc, aLR );
+ SwPageDesc aDesc( rDesc );
+ aDesc.GetMaster().SetAttr( aLR );
+ rSh.ChgPageDesc( nDescId, aDesc );
+ }
+ else //Spalten veraendert ?
+ {
+ long nLeftBorder = 0;
+ long nRightBorder = nPageWidth;
+ long nOldColPos = 0;
+ long nNewColPos = bLeftChanged ? aLongLR.GetLeft() : aLongLR.GetRight();
+ if(!bLeftChanged)
+ nNewColPos = nPageWidth - nNewColPos;
+
+ //mittendrin
+ long nWidth = 0;
+ for ( USHORT i = 0; i < aCols.Count(); ++i )
+ {
+ SwColumn* pCol = aCols[i];
+ nWidth += aCol.CalcColWidth(i, lWidth);
+ if( i == (bLeftChanged ? nCurCol - 1 : nCurCol))
+ nOldColPos = nWidth;
+ if( i == (bLeftChanged ? nCurCol - 2 : nCurCol - 1))
+ nLeftBorder = nWidth;
+ if(i == (bLeftChanged ? nCurCol : nCurCol + 1))
+ nRightBorder = nWidth;
+ }
+ nNewColPos -= aPageRect.Left();
+// nNewColPos += DOCUMENTBORDER;
+ if(nNewColPos < nLeftBorder + MINLAY)
+ nNewColPos = nLeftBorder + MINLAY;
+ else if(nNewColPos > nRightBorder - MINLAY)
+ nNewColPos = nRightBorder - MINLAY;
+
+
+ // in WishWidth umrechnen:
+ nNewColPos = nNewColPos * long(aCol.GetWishWidth()) / lWidth;
+ nOldColPos = nOldColPos * long(aCol.GetWishWidth()) / lWidth;
+ long nDiff = nNewColPos - nOldColPos;
+
+ SwColumn* pCol = aCols[bLeftChanged ? nCurCol : nCurCol + 1];
+ pCol->SetWishWidth(long(pCol->GetWishWidth()) - nDiff );
+ //den Nachbarn in umgekehrter Weise veraendern
+ pCol = aCols[bLeftChanged ? nCurCol - 1 : nCurCol ];
+ pCol->SetWishWidth(long(pCol->GetWishWidth()) + nDiff );
+ }
+ SwPageDesc aDesc( rDesc );
+ aDesc.GetMaster().SetAttr( aCol );
+ rSh.ChgPageDesc( rSh.GetCurPageDesc(), aDesc );
+
+
+/* aSet.Put( aCol );
+// rSh.StartAction();
+// rSh.Push();
+// rSh.SetFlyFrmAttr( aSet );*/
+ }
+ }
+ else if ( bFrmSelection || nFrmType & FRMTYPE_FLY_ANY )
+ {
+ SwFrmFmt* pFmt = ((SwFrmFmt*)rSh.GetFlyFrmFmt());
+ const SwRect &rRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED);
+ long nDeltaX = DOCUMENTBORDER + aLongLR.GetLeft() -
+ rRect.Left();
+ SwFmtHoriOrient aHoriOrient( pFmt->GetHoriOrient() );
+ aHoriOrient.SetHoriOrient( HORI_NONE );
+ aHoriOrient.SetPos( aHoriOrient.GetPos() + nDeltaX );
+
+ SwFmtFrmSize aSize( pFmt->GetFrmSize() );
+ long nOldWidth = (long) aSize.GetWidth();
+
+ if(aSize.GetWidthPercent())
+ {
+ SwRect aRect;
+ rSh.CalcBoundRect(aRect, FLY_IN_CNTNT);
+ long nPrtWidth = aRect.Width();
+ aSize.SetWidthPercent(BYTE((nPageWidth - aLongLR.GetLeft() - aLongLR.GetRight()) * 100 /nPrtWidth));
+ }
+ else
+ aSize.SetWidth( nPageWidth -
+ (aLongLR.GetLeft() + aLongLR.GetRight()));
+
+ SfxItemSet aSet( GetPool(), RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_HORI_ORIENT, RES_HORI_ORIENT,
+ RES_COL, RES_COL, 0 );
+
+ if( nFrmType & FRMTYPE_COLUMN )
+ {
+ SwFmtCol aCol(pFmt->GetCol());
+
+ ::ResizeFrameCols(aCol, nOldWidth, (long)aSize.GetWidth(), nDeltaX );
+ aSet.Put(aCol);
+ }
+
+ aSet.Put( aSize );
+ aSet.Put( aHoriOrient );
+
+ rSh.StartAction();
+ rSh.Push();
+ rSh.SetFlyFrmAttr( aSet );
+ //die Rahmenselektion wieder aufheben
+ if(!bFrmSelection && rSh.IsFrmSelected())
+ {
+ rSh.UnSelectFrm();
+ rSh.LeaveSelFrmMode();
+ }
+ rSh.Pop();
+ rSh.EndAction();
+ }
+ else if ( nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER ))
+ {
+ // Seitenraender rausrechnen
+ USHORT nOld = rDesc.GetMaster().GetLRSpace().GetLeft();
+ aLongLR.SetLeft( nOld > (USHORT)aLongLR.GetLeft() ? 0 : aLongLR.GetLeft() - nOld );
+
+ nOld = rDesc.GetMaster().GetLRSpace().GetRight();
+ aLongLR.SetRight( nOld > (USHORT)aLongLR.GetRight() ? 0 : aLongLR.GetRight() - nOld );
+ aLR.SetLeft((USHORT)aLongLR.GetLeft());
+ aLR.SetRight((USHORT)aLongLR.GetRight());
+
+ if ( nFrmType & FRMTYPE_HEADER )
+ pHeaderFmt->SetAttr( aLR );
+ else
+ pFooterFmt->SetAttr( aLR );
+ }
+ else if( nFrmType == FRMTYPE_DRAWOBJ)
+ {
+ SwRect aRect( rSh.GetObjRect() );
+ aRect.Left( aLongLR.GetLeft() + DOCUMENTBORDER );
+ aRect.Right( nPageWidth + DOCUMENTBORDER - aLongLR.GetRight());
+ rSh.SetObjRect( aRect );
+ }
+ else
+ { // Seitenraender einstellen
+ aLR.SetLeft((USHORT)aLongLR.GetLeft());
+ aLR.SetRight((USHORT)aLongLR.GetRight());
+ SwapPageMargin( rDesc, aLR );
+ SwPageDesc aDesc( rDesc );
+ aDesc.GetMaster().SetAttr( aLR );
+ rSh.ChgPageDesc( nDescId, aDesc );
+ }
+ }
+ break;
+ case RES_UL_SPACE:
+ case SID_ATTR_ULSPACE:
+ {
+ if(SFX_ITEM_SET == pArgs->GetItemState(RES_UL_SPACE, FALSE, &pItem))
+ {
+ const SvxULSpaceItem* pUL = (const SvxULSpaceItem*)pItem;
+
+ SvxLongULSpaceItem aLongUL((long)pUL->GetUpper(), (long)pUL->GetLower(),
+ SID_ATTR_LONG_ULSPACE);
+ SfxRequest aReq(SID_ATTR_LONG_ULSPACE, SFX_CALLMODE_SLOT, GetPool());
+ aReq.AppendItem(aLongUL);
+ ExecTabWin( aReq );
+ }
+ }
+ break;
+ case SID_ATTR_LONG_ULSPACE:
+ {
+ SvxLongULSpaceItem aLongULSpace( (const SvxLongULSpaceItem&)rReq.GetArgs()->
+ Get( SID_ATTR_LONG_ULSPACE ));
+ DEBUGULSPACE(aLongULSpace);
+
+ if( bFrmSelection || nFrmType & FRMTYPE_FLY_ANY )
+ {
+ SwFrmFmt* pFmt = ((SwFrmFmt*)rSh.GetFlyFrmFmt());
+
+ const SwRect &rRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED);
+ const long nDeltaY = DOCUMENTBORDER + aLongULSpace.GetUpper() -
+ rRect.Top();
+ const long nHeight = nPageHeight -
+ (aLongULSpace.GetUpper() + aLongULSpace.GetLower());
+
+ SwFmtVertOrient aVertOrient(pFmt->GetVertOrient());
+ aVertOrient.SetVertOrient(VERT_NONE);
+ aVertOrient.SetPos(aVertOrient.GetPos() + nDeltaY );
+
+ SwFmtFrmSize aSize(pFmt->GetFrmSize());
+ if(aSize.GetHeightPercent())
+ {
+ SwRect aRect;
+ rSh.CalcBoundRect(aRect, FLY_IN_CNTNT);
+ long nPrtHeight = aRect.Height();
+ aSize.SetHeightPercent(BYTE(nHeight * 100 /nPrtHeight));
+ }
+ else
+ aSize.SetHeight(nHeight );
+
+ SfxItemSet aSet( GetPool(), RES_FRM_SIZE, RES_FRM_SIZE,
+ RES_VERT_ORIENT, RES_VERT_ORIENT, 0 );
+ aSet.Put( aSize );
+ aSet.Put( aVertOrient );
+ rSh.SetFlyFrmAttr( aSet );
+ }
+ else if( nFrmType == FRMTYPE_DRAWOBJ )
+ {
+ SwRect aRect( rSh.GetObjRect() );
+ const SwRect &rPageRect = rSh.GetAnyCurRect(RECT_PAGE);
+ aRect.Top( aLongULSpace.GetUpper() + rPageRect.Top() );
+ aRect.Bottom( rPageRect.Bottom() - aLongULSpace.GetLower() );
+ rSh.SetObjRect( aRect ) ;
+ }
+ else
+ { SwPageDesc aDesc( rDesc );
+
+ if ( nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER ))
+ {
+
+ const BOOL bHead = nFrmType & FRMTYPE_HEADER ? TRUE : FALSE;
+ SvxULSpaceItem aUL( rDesc.GetMaster().GetULSpace() );
+ if ( bHead )
+ aUL.SetUpper( (USHORT)aLongULSpace.GetUpper() );
+ else
+ aUL.SetLower( (USHORT)aLongULSpace.GetLower() );
+ aDesc.GetMaster().SetAttr( aUL );
+
+ SwFmtFrmSize aSz( bHead ? pHeaderFmt->GetFrmSize() :
+ pFooterFmt->GetFrmSize() );
+ aSz.SetSizeType( ATT_FIX_SIZE );
+ aSz.SetHeight(nPageHeight - aLongULSpace.GetLower() -
+ aLongULSpace.GetUpper() );
+ if ( bHead )
+ pHeaderFmt->SetAttr( aSz );
+ else
+ pFooterFmt->SetAttr( aSz );
+ }
+ else
+ {
+ SvxULSpaceItem aUL;
+ aUL.SetUpper((USHORT)aLongULSpace.GetUpper());
+ aUL.SetLower((USHORT)aLongULSpace.GetLower());
+ aDesc.GetMaster().SetAttr(aUL);
+ }
+
+ rSh.ChgPageDesc( nDescId, aDesc );
+ }
+ }
+ break;
+ case SID_ATTR_TABSTOP:
+ {
+ SvxTabStopItem aTabStops( (const SvxTabStopItem&)rReq.GetArgs()->
+ Get( RES_PARATR_TABSTOP ));
+ DEBUGTABSTOPS(aTabStops);
+ const SvxTabStopItem& rDefTabs =
+ (const SvxTabStopItem&)rSh.GetDefault(RES_PARATR_TABSTOP);
+
+ // Default-Tab an Pos 0
+ SfxItemSet aSet( GetPool(), RES_LR_SPACE, RES_LR_SPACE );
+ rSh.GetAttr( aSet );
+ const SvxLRSpaceItem& rLR = (const SvxLRSpaceItem&)aSet.Get(RES_LR_SPACE);
+
+ if ( rLR.GetTxtFirstLineOfst() < 0 )
+ {
+ SvxTabStop aSwTabStop( 0, SVX_TAB_ADJUST_DEFAULT );
+ aTabStops.Insert( aSwTabStop );
+ }
+
+ // auffuellen mit Default-Tabs
+ USHORT nDef = ::GetTabDist( rDefTabs );
+ ::MakeDefTabs( nDef, aTabStops );
+
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if( pColl && pColl->IsAutoUpdateFmt() )
+ {
+ SfxItemSet aSet(GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP);
+ aSet.Put(aTabStops);
+ rSh.AutoUpdatePara( pColl, aSet);
+ }
+ else
+ rSh.SetAttr( aTabStops );
+ break;
+ }
+ case SID_ATTR_PARA_LRSPACE:
+ {
+ SvxLRSpaceItem aParaMargin((const SvxLRSpaceItem&)rReq.
+ GetArgs()->Get(SID_ATTR_PARA_LRSPACE));
+
+ if(nFrmType & FRMTYPE_FLY_ANY)
+ {
+// os: Wegen #42444# wird hier der Umrandungsabstand eingefuegt
+ SfxItemSet aCoreSet( GetPool(),
+ RES_BOX, RES_BOX,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0 );
+ SvxBoxInfoItem aBoxInfo;
+ aCoreSet.Put( aBoxInfo );
+ rSh.GetFlyFrmAttr( aCoreSet );
+ const SvxBoxItem& rBox = (const SvxBoxItem&)aCoreSet.Get(RES_BOX);
+ USHORT nDist = (USHORT)rBox.GetDistance();
+ aParaMargin.SetRight(Max((long)(aParaMargin.GetRight() - nDist), (long)0));
+ if(aParaMargin.GetLeft() < nDist)
+ nDist = aParaMargin.GetLeft();
+ aParaMargin.SetTxtLeft(aParaMargin.GetTxtLeft() - nDist);
+ }
+ DEBUGPARAMARGIN(aParaMargin);
+
+ aParaMargin.SetWhich( RES_LR_SPACE );
+ SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl();
+ if( pColl && pColl->IsAutoUpdateFmt() )
+ {
+ SfxItemSet aSet(GetPool(), RES_LR_SPACE, RES_LR_SPACE);
+ aSet.Put(aParaMargin);
+ rSh.AutoUpdatePara( pColl, aSet);
+ }
+ else
+ rSh.SetAttr( aParaMargin );
+
+ if ( aParaMargin.GetTxtFirstLineOfst() < 0 )
+ {
+ SfxItemSet aSet( GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP );
+
+ rSh.GetAttr( aSet );
+ const SvxTabStopItem& rTabStops = (const SvxTabStopItem&)aSet.Get(RES_PARATR_TABSTOP);
+
+ // Haben wir einen Tab an Stelle Null
+ for ( USHORT i = 0; i < rTabStops.Count(); ++i )
+ if ( rTabStops[i].GetTabPos() == 0 )
+ break;
+
+ if ( i >= rTabStops.Count() )
+ {
+ // Kein DefTab
+ SvxTabStopItem aTabStops;
+ aTabStops = rTabStops;
+
+ ::lcl_EraseDefTabs(aTabStops);
+
+ SvxTabStop aSwTabStop( 0, SVX_TAB_ADJUST_DEFAULT );
+ aTabStops.Insert(aSwTabStop);
+
+ const SvxTabStopItem& rDefTabs =
+ (const SvxTabStopItem&)rSh.GetDefault(RES_PARATR_TABSTOP);
+ USHORT nDef = ::GetTabDist(rDefTabs);
+ ::MakeDefTabs( nDef, aTabStops );
+
+ if( pColl && pColl->IsAutoUpdateFmt())
+ {
+ SfxItemSet aSet(GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP);
+ aSet.Put(aTabStops);
+ rSh.AutoUpdatePara( pColl, aSet);
+ }
+ else
+ rSh.SetAttr( aTabStops );
+ }
+ }
+ }
+ break;
+ case SID_RULER_BORDERS:
+ {
+ SvxColumnItem aColItem((const SvxColumnItem&)rReq.
+ GetArgs()->Get(SID_RULER_BORDERS));
+
+ BOOL bSect = 0 != (nFrmType & FRMTYPE_COLSECT);
+ if( bSetTabColFromDoc || !bSect && rSh.GetTableFmt() )
+ {
+ ASSERT(aColItem.Count(), "ColDesc ist leer!!");
+
+ const BOOL bSingleLine = ((const SfxBoolItem&)rReq.
+ GetArgs()->Get(SID_RULER_ACT_LINE_ONLY)).GetValue();
+
+ DEBUGCOLITEMS(aColItem);
+ SwTabCols aTabCols;
+ if ( bSetTabColFromDoc )
+ rSh.GetMouseTabCols( aTabCols, aTabColFromDocPos );
+ else
+ rSh.GetTabCols(aTabCols);
+ DEBUGTABCOLS(aTabCols);
+
+ // linker Tabellenrand
+ long nBorder = long(aColItem.GetLeft()) -
+ (long(aTabCols.GetLeftMin()) - DOCUMENTBORDER);
+ aTabCols.SetLeft( nBorder );
+
+ nBorder = nPageWidth - aTabCols.GetLeftMin() +
+ DOCUMENTBORDER - aColItem.GetRight();
+
+ aTabCols.SetRight( nBorder );
+
+ // Tabcols der Reihe nach
+ // Die letzte Col wird durch den Rand definiert
+ for ( USHORT i = 0; i < aColItem.Count()-1; ++i )
+ {
+ const SvxColumnDescription& rCol = aColItem[i];
+ aTabCols[i] = rCol.nEnd + aTabCols.GetLeft();
+ aTabCols.SetHidden( i, !rCol.bVisible );
+ }
+ DEBUGTABCOLS(aTabCols);
+
+ if ( bSetTabColFromDoc )
+ {
+ if( !rSh.IsViewLocked() )
+ {
+ bUnlockView = TRUE;
+ rSh.LockView( TRUE );
+ }
+ rSh.SetMouseTabCols( aTabCols, bSingleLine,
+ aTabColFromDocPos );
+ }
+ else
+ rSh.SetTabCols(aTabCols, bSingleLine);
+
+ }
+ else
+ {
+ if ( bFrmSelection || nFrmType & FRMTYPE_FLY_ANY || bSect)
+ {
+ SwSectionFmt *pSectFmt = 0;
+ SfxItemSet aSet( GetPool(), RES_COL, RES_COL );
+ if(bSect)
+ {
+ const SwSection *pSect = rSh.GetAnySection();
+ ASSERT( pSect, "Welcher Bereich?");
+ pSectFmt = pSect->GetFmt();
+ }
+ else
+ {
+ rSh.GetFlyFrmAttr( aSet );
+ }
+ SwFmtCol aCols(
+ bSect ?
+ pSectFmt->GetCol() :
+ (const SwFmtCol&)aSet.Get( RES_COL, FALSE ));
+
+ const long lWidth = rSh.GetAnyCurRect(bSect ? RECT_SECTION : RECT_FLY_PRT_EMBEDDED).Width();
+ ::lcl_ConvertToCols( aColItem, USHORT(lWidth), aCols );
+ DEBUGCOLITEMS(aColItem);
+ aSet.Put( aCols );
+ if(bSect)
+ rSh.SetSectionAttr( aSet, pSectFmt );
+ else
+ {
+ rSh.StartAction();
+ rSh.Push();
+ rSh.SetFlyFrmAttr( aSet );
+ //die Rahmenselektion wieder aufheben
+ if(!bFrmSelection && rSh.IsFrmSelected())
+ {
+ rSh.UnSelectFrm();
+ rSh.LeaveSelFrmMode();
+ }
+ rSh.Pop();
+ rSh.EndAction();
+ }
+ }
+ else
+ {
+ SwFmtCol aCols( rDesc.GetMaster().GetCol() );
+ ::lcl_ConvertToCols( aColItem,
+ USHORT(rSh.GetAnyCurRect(RECT_PAGE_PRT).Width()),
+ aCols );
+ DEBUGCOLITEMS(aColItem);
+ SwPageDesc aDesc( rDesc );
+ aDesc.GetMaster().SetAttr( aCols );
+ rSh.ChgPageDesc( rSh.GetCurPageDesc(), aDesc );
+ }
+ }
+ break;
+ }
+ default:
+ ASSERT( !this, "Falsche SlotId");
+ }
+ rSh.EndAllAction();
+
+ if( bUnlockView )
+ rSh.LockView( FALSE );
+
+ bSetTabColFromDoc = bTabColFromDoc = FALSE;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Hier wird der Status der Tableiste ermittelt
+ sprich alle relevanten Attribute an der CursorPos
+ werden der Tableiste uebermittelt
+ --------------------------------------------------------------------*/
+
+
+void SwView::StateTabWin(SfxItemSet& rSet)
+{
+ SwWrtShell &rSh = GetWrtShell();
+
+ const Point* pPt = IsTabColFromDoc() ? &aTabColFromDocPos : 0;
+ const USHORT nFrmType = rSh.IsObjSelected()
+ ? FRMTYPE_DRAWOBJ
+ : rSh.GetFrmType( pPt, TRUE );
+
+ const BOOL bFrmSelection = rSh.IsFrmSelected();
+
+ BOOL bBrowse = rSh.IsBrowseMode();
+ WinBits nStyle = pHLineal->GetStyle();
+ if(!(nStyle&WB_EXTRAFIELD) != bBrowse)
+ {
+ if(bBrowse)
+ nStyle &= ~WB_EXTRAFIELD;
+ else
+ nStyle |= WB_EXTRAFIELD;
+ pHLineal->SetStyle(nStyle);
+ }
+
+ // PageOffset/Begrenzer
+ const SwRect& rPageRect = rSh.GetAnyCurRect( RECT_PAGE, pPt );
+ const SwRect& rPagePrtRect = rSh.GetAnyCurRect( RECT_PAGE_PRT, pPt );
+ const long nPageWidth = rPageRect.Width();
+ const long nPageHeight = rPageRect.Height();
+
+ const SwPageDesc& rDesc = rSh.GetPageDesc( rSh.GetCurPageDesc() );
+ SvxLRSpaceItem aPageLRSpace( rDesc.GetMaster().GetLRSpace() );
+ SwapPageMargin( rDesc, aPageLRSpace );
+
+ SfxItemSet aCoreSet( GetPool(), RES_PARATR_TABSTOP, RES_PARATR_TABSTOP,
+ RES_LR_SPACE, RES_UL_SPACE, 0 );
+ rSh.GetAttr( aCoreSet );
+ USHORT nSelectionType = rSh.GetSelectionType();
+
+ SfxWhichIter aIter( rSet );
+ USHORT nWhich = aIter.FirstWhich();
+
+ while ( nWhich )
+ {
+ switch ( nWhich )
+ {
+ case RES_LR_SPACE:
+ case SID_ATTR_LRSPACE:
+ case SID_ATTR_LONG_LRSPACE:
+ {
+ SvxLongLRSpaceItem aLongLR( (long)aPageLRSpace.GetLeft(),
+ (long)aPageLRSpace.GetRight(),
+ SID_ATTR_LONG_LRSPACE);
+ if(bBrowse)
+ {
+ aLongLR.SetLeft(rPagePrtRect.Left());
+ aLongLR.SetRight(nPageWidth - rPagePrtRect.Right());
+ }
+ if ( ( nFrmType & FRMTYPE_HEADER || nFrmType & FRMTYPE_FOOTER ) &&
+ !(nFrmType & FRMTYPE_COLSECT) )
+ {
+ SwFrmFmt *pFmt = (SwFrmFmt*) (nFrmType & FRMTYPE_HEADER ?
+ rDesc.GetMaster().GetHeader().GetHeaderFmt() :
+ rDesc.GetMaster().GetFooter().GetFooterFmt());
+ SwRect aRect( rSh.GetAnyCurRect( RECT_HEADERFOOTER, pPt));
+ aRect.Pos() -= rSh.GetAnyCurRect( RECT_PAGE, pPt ).Pos();
+ const SvxLRSpaceItem& aLR = pFmt->GetLRSpace();
+ aLongLR.SetLeft ( (long)aLR.GetLeft() + (long)aRect.Left() );
+ aLongLR.SetRight( (nPageWidth -
+ (long)aRect.Right() + (long)aLR.GetRight()));
+ }
+ else
+ {
+ SwRect aRect;
+ if( !bFrmSelection && (nFrmType & FRMTYPE_COLSECT) )
+ aRect = rSh.GetAnyCurRect(RECT_SECTION, pPt);
+ else if ( bFrmSelection || nFrmType & FRMTYPE_FLY_ANY )
+ aRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED, pPt);
+ else if( nFrmType & FRMTYPE_DRAWOBJ)
+ aRect = rSh.GetObjRect();
+ if( aRect.Width() )
+ {
+ aLongLR.SetLeft ((long)(aRect.Left() - DOCUMENTBORDER));
+ aLongLR.SetRight((long)(nPageWidth + DOCUMENTBORDER - aRect.Right()));
+ }
+ }
+ if( nWhich == SID_ATTR_LONG_LRSPACE )
+ rSet.Put( aLongLR );
+ else
+ {
+ SvxLRSpaceItem aLR((USHORT)aLongLR.GetLeft(),
+ (USHORT)aLongLR.GetRight(),
+ nWhich);
+ rSet.Put(aLR);
+ }
+ DEBUGLRSPACE(aLongLR);
+ break;
+ }
+ case SID_ATTR_LONG_ULSPACE:
+ case SID_ATTR_ULSPACE:
+ case RES_UL_SPACE:
+ {
+ // Rand Seite Oben Unten
+ SvxULSpaceItem aUL( rDesc.GetMaster().GetULSpace() );
+ SvxLongULSpaceItem aLongUL( (long)aUL.GetUpper(),
+ (long)aUL.GetLower(),
+ SID_ATTR_LONG_ULSPACE);
+
+ if ( bFrmSelection || nFrmType & FRMTYPE_FLY_ANY )
+ {
+ // Dokumentkoordinaten Frame auf Seitenkoordinaten umbrechen
+ const SwRect &rRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED, pPt);
+ aLongUL.SetUpper((USHORT)(rRect.Top() - rPageRect.Top() ));
+ aLongUL.SetLower((USHORT)(rPageRect.Bottom() - rRect.Bottom() ));
+ }
+ else if ( nFrmType & FRMTYPE_HEADER || nFrmType & FRMTYPE_FOOTER )
+ {
+ SwRect aRect( rSh.GetAnyCurRect( RECT_HEADERFOOTER, pPt));
+ aRect.Pos() -= rSh.GetAnyCurRect( RECT_PAGE, pPt ).Pos();
+ aLongUL.SetUpper( (USHORT)aRect.Top() );
+ aLongUL.SetLower( (USHORT)(nPageHeight - aRect.Bottom()) );
+ }
+ else if( nFrmType & FRMTYPE_DRAWOBJ)
+ {
+ const SwRect &rRect = rSh.GetObjRect();
+ aLongUL.SetUpper((rRect.Top() - rPageRect.Top()));
+ aLongUL.SetLower((rPageRect.Bottom() - rRect.Bottom()));
+ }
+ else if(bBrowse)
+ {
+ aLongUL.SetUpper(rPagePrtRect.Top());
+ aLongUL.SetLower(nPageHeight - rPagePrtRect.Bottom());
+ }
+ if( nWhich == SID_ATTR_LONG_ULSPACE )
+ rSet.Put( aLongUL );
+ else
+ {
+ SvxULSpaceItem aUL((USHORT)aLongUL.GetUpper(),
+ (USHORT)aLongUL.GetLower(),
+ nWhich);
+ rSet.Put(aUL);
+ }
+ DEBUGULSPACE(aLongUL);
+ break;
+ }
+ case RES_PARATR_TABSTOP:
+ {
+ if ( ISA( SwWebView ) ||
+ IsTabColFromDoc() ||
+ ( nSelectionType & SwWrtShell::SEL_GRF) ||
+ (nSelectionType & SwWrtShell::SEL_FRM) ||
+ (nSelectionType & SwWrtShell::SEL_OLE) ||
+ SFX_ITEM_AVAILABLE > aCoreSet.GetItemState(RES_LR_SPACE)
+ )
+ rSet.DisableItem( RES_PARATR_TABSTOP );
+ else
+ { SvxTabStopItem aTabStops((const SvxTabStopItem&)
+ aCoreSet.Get( RES_PARATR_TABSTOP ));
+
+ const SvxTabStopItem& rDefTabs = (const SvxTabStopItem&)
+ rSh.GetDefault(RES_PARATR_TABSTOP);
+
+ DBG_ASSERT(pHLineal, "warum ist das Lineal nicht da?")
+ pHLineal->SetDefTabDist( ::GetTabDist(rDefTabs) );
+ ::lcl_EraseDefTabs(aTabStops);
+ DEBUGTABSTOPS(aTabStops);
+ rSet.Put(aTabStops);
+ }
+ break;
+ }
+ case SID_ATTR_PARA_LRSPACE:
+ {
+ if ( nSelectionType & SwWrtShell::SEL_GRF ||
+ nSelectionType & SwWrtShell::SEL_FRM ||
+ nSelectionType & SwWrtShell::SEL_OLE ||
+ nFrmType == FRMTYPE_DRAWOBJ )
+ rSet.DisableItem(SID_ATTR_PARA_LRSPACE);
+ else
+ {
+ SvxLRSpaceItem aLR;
+ if ( !IsTabColFromDoc() )
+ aLR = (const SvxLRSpaceItem&)aCoreSet.Get(RES_LR_SPACE);
+ DEBUGPARAMARGIN(aLR);
+ aLR.SetWhich(SID_ATTR_PARA_LRSPACE);
+ if(nFrmType & FRMTYPE_FLY_ANY)
+ {
+// os: Wegen #42444# wird hier der Umrandungsabstand eingefuegt
+ USHORT nDist;
+ if( IsTabColFromDoc() )
+ {
+ const SwRect& rPrtRect = rSh.GetAnyCurRect(
+ RECT_FLY_PRT_EMBEDDED, pPt );
+ nDist = rPrtRect.Left();
+ }
+ else
+ {
+ SfxItemSet aCoreSet( GetPool(),
+ RES_BOX, RES_BOX,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0 );
+ SvxBoxInfoItem aBoxInfo;
+ aCoreSet.Put( aBoxInfo );
+ rSh.GetFlyFrmAttr( aCoreSet );
+ const SvxBoxItem& rBox = (const SvxBoxItem&)aCoreSet.Get(RES_BOX);
+ nDist = (USHORT)rBox.GetDistance();
+ }
+ aLR.SetRight(aLR.GetRight() + nDist);
+ aLR.SetTxtLeft(aLR.GetTxtLeft() + nDist);
+ }
+ rSet.Put(aLR);
+ }
+ break;
+ }
+ case SID_RULER_BORDERS:
+ {
+ if ( IsTabColFromDoc() ||
+ ( rSh.GetTableFmt() && !bFrmSelection &&
+ !(nFrmType & FRMTYPE_COLSECT ) ) )
+ {
+ SwTabCols aTabCols;
+ USHORT nNum;
+ if ( 0 != ( bSetTabColFromDoc = IsTabColFromDoc() ) )
+ {
+ rSh.GetMouseTabCols( aTabCols, aTabColFromDocPos );
+ nNum = rSh.GetCurMouseTabColNum( aTabColFromDocPos );
+ }
+ else
+ {
+ rSh.GetTabCols( aTabCols );
+ nNum = rSh.GetCurTabColNum();
+ }
+
+ ASSERT(nNum <= aTabCols.Count(), "TabCol not found");
+ int nLft = aTabCols.GetLeftMin() -
+ USHORT(DOCUMENTBORDER) +
+ aTabCols.GetLeft();
+
+ int nRgt = (USHORT)nPageWidth -
+ (aTabCols.GetLeftMin() +
+ aTabCols.GetRight() -
+ USHORT(DOCUMENTBORDER) );
+
+ const USHORT nL = nLft > 0 ? nLft : 0;
+ const USHORT nR = nRgt > 0 ? nRgt : 0;
+
+ SvxColumnItem aColItem(nNum, nL, nR);
+
+ USHORT nStart = 0,
+ nEnd;
+
+ for ( USHORT i = 0; i < aTabCols.Count(); ++i )
+ {
+ nEnd = aTabCols[i] - aTabCols.GetLeft();
+ SvxColumnDescription aColDesc( nStart, nEnd,
+ !aTabCols.IsHidden(i) );
+ aColItem.Append(aColDesc);
+ nStart = nEnd;
+ }
+ SvxColumnDescription aColDesc(nStart,
+ aTabCols.GetRight() - aTabCols.GetLeft(), TRUE);
+ aColItem.Append(aColDesc);
+ rSet.Put(aColItem);
+ DEBUGCOLITEMS(aColItem);
+ }
+ else if ( bFrmSelection || nFrmType & ( FRMTYPE_COLUMN | FRMTYPE_COLSECT ) )
+ {
+ // Aus Rahmen oder Seite ?
+ USHORT nNum = 0;
+ if(bFrmSelection)
+ {
+ const SwFrmFmt* pFmt = rSh.GetFlyFrmFmt();
+ if(pFmt)
+ nNum = pFmt->GetCol().GetNumCols();
+ }
+ else
+ nNum = rSh.GetCurColNum();
+
+ if(
+ //eigentlich sollte FRMTYPE_COLSECT nicht enthalten sein, wenn der Rahmen selektiert ist!
+ !bFrmSelection &&
+ nFrmType & FRMTYPE_COLSECT )
+ {
+ const SwSection *pSect = rSh.GetAnySection();
+ ASSERT( pSect, "Welcher Bereich?");
+ if( pSect )
+ {
+ SwSectionFmt *pFmt = pSect->GetFmt();
+ const SwFmtCol& rCol = pFmt->GetCol();
+ SvxColumnItem aColItem(--nNum);
+ const SwRect &rRect = rSh.GetAnyCurRect(RECT_SECTION, pPt);
+
+ ::lcl_FillSvxColumn(rCol, USHORT(rRect.Width()), aColItem, 0);
+
+ aColItem.SetLeft ((USHORT)(rRect.Left() - DOCUMENTBORDER ));
+ aColItem.SetRight((USHORT)(nPageWidth - rRect.Right() -
+ DOCUMENTBORDER ));
+
+ aColItem.SetOrtho(aColItem.CalcOrtho());
+
+ rSet.Put(aColItem);
+ DEBUGCOLITEMS(aColItem);
+ }
+ }
+ else if( bFrmSelection || nFrmType & FRMTYPE_FLY_ANY )
+ {
+ // Spalten in Rahmen
+ if ( nNum )
+ {
+ nNum--;
+ const SwFrmFmt* pFmt = rSh.GetFlyFrmFmt() ;
+
+ const SwFmtCol& rCol = pFmt->GetCol();
+ SvxColumnItem aColItem(nNum);
+ const SwRect &rSizeRect = rSh.GetAnyCurRect(RECT_FLY_PRT_EMBEDDED, pPt);
+
+ const long lWidth = rSizeRect.Width();
+ const SwRect &rRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED, pPt);
+ long nDist2 = (rRect.Width() - lWidth) /2;
+ ::lcl_FillSvxColumn(rCol, USHORT(lWidth), aColItem, nDist2);
+
+ SfxItemSet aFrameSet(GetPool(), RES_LR_SPACE, RES_LR_SPACE);
+ rSh.GetFlyFrmAttr( aFrameSet );
+
+ aColItem.SetLeft ((USHORT)(rRect.Left() - DOCUMENTBORDER ));
+ aColItem.SetRight((USHORT)(nPageWidth - rRect.Right() -
+ DOCUMENTBORDER ));
+
+ aColItem.SetOrtho(aColItem.CalcOrtho());
+
+ rSet.Put(aColItem);
+ DEBUGCOLITEMS(aColItem);
+ }
+ else
+ rSet.DisableItem(SID_RULER_BORDERS);
+ }
+ else
+ { // Spalten auf der Seite
+ nNum--;
+ const SwFrmFmt& rMaster = rDesc.GetMaster();
+ SwFmtCol aCol(rMaster.GetCol());
+ SvxColumnItem aColItem(nNum);
+ const long lWidth = rSh.GetAnyCurRect(RECT_PAGE_PRT, pPt).Width();
+ const SvxBoxItem& rBox = (const SvxBoxItem&)rMaster.GetAttr(RES_BOX);
+ long nDist = rBox.GetDistance();
+ ::lcl_FillSvxColumn(aCol, USHORT(lWidth), aColItem, nDist);
+
+ if(bBrowse)
+ {
+ aColItem.SetLeft((USHORT)rPagePrtRect.Left());
+ aColItem.SetRight(USHORT(nPageWidth - rPagePrtRect.Right()));
+ }
+ else
+ {
+ aColItem.SetLeft (aPageLRSpace.GetLeft());
+ aColItem.SetRight(aPageLRSpace.GetRight());
+ }
+ aColItem.SetOrtho(aColItem.CalcOrtho());
+
+ rSet.Put(aColItem);
+ DEBUGCOLITEMS(aColItem);
+ }
+ }
+ else
+ rSet.DisableItem(SID_RULER_BORDERS);
+ break;
+ }
+ case SID_RULER_PAGE_POS:
+ {
+ SvxPagePosSizeItem aPagePosSize(
+ Point( DOCUMENTBORDER , rPageRect.Top()) ,
+ nPageWidth, nPageHeight);
+ rSet.Put(aPagePosSize);
+ break;
+ }
+ case SID_RULER_LR_MIN_MAX:
+ {
+ Rectangle aRectangle;
+ if( ( nFrmType & FRMTYPE_COLSECT ) && !IsTabColFromDoc() &&
+ ( nFrmType & ( FRMTYPE_TABLE|FRMTYPE_COLUMN ) ) )
+ {
+ if( nFrmType & FRMTYPE_TABLE )
+ {
+ const USHORT nNum = rSh.GetCurTabColNum();
+ SwTabCols aTabCols;
+ rSh.GetTabCols( aTabCols );
+
+ int nLft = aTabCols.GetLeftMin() -
+ USHORT(DOCUMENTBORDER) +
+ aTabCols.GetLeft();
+
+ int nRgt = (USHORT)nPageWidth -
+ (aTabCols.GetLeftMin() +
+ aTabCols.GetRight() -
+ USHORT(DOCUMENTBORDER) );
+
+ const USHORT nL = nLft > 0 ? nLft : 0;
+ const USHORT nR = nRgt > 0 ? nRgt : 0;
+
+ aRectangle.Left() = nL;
+ if(nNum > 1)
+ aRectangle.Left() += aTabCols[nNum - 2];
+ if(nNum)
+ aRectangle.Left() += MINLAY;
+ if(aTabCols.Count() <= nNum + 1 )
+ aRectangle.Right() = nR;
+ else
+ aRectangle.Right() = nPageWidth - (nL + aTabCols[nNum + 1]);
+
+ if(nNum < aTabCols.Count())
+ aRectangle.Right() += MINLAY;
+ }
+ else
+ {
+ const SwFrmFmt* pFmt = rSh.GetFlyFrmFmt();
+ const SwFmtCol* pCols = pFmt ? &pFmt->GetCol():
+ &rDesc.GetMaster().GetCol();
+ const SwColumns& rCols = pCols->GetColumns();
+ USHORT nNum = rSh.GetCurOutColNum();
+ USHORT nCount = Min(USHORT(nNum + 1), rCols.Count());
+ const SwRect aRect( rSh.GetAnyCurRect( pFmt
+ ? RECT_FLY_PRT_EMBEDDED
+ : RECT_PAGE_PRT, pPt ));
+ const SwRect aAbsRect( rSh.GetAnyCurRect( pFmt
+ ? RECT_FLY_EMBEDDED
+ : RECT_PAGE, pPt ));
+
+ //die Breite im Rahmen bzw. innerhalbe der Seitenraender
+ const USHORT nTotalWidth = (USHORT)aRect.Width();
+ //die gesamte Rahmenbreite - die Differenz ist der doppelte Abstand zum Rand
+ const USHORT nOuterWidth = (USHORT)aAbsRect.Width();
+ int nWidth = 0,
+ nStart = 0,
+ nEnd = 0;
+ aRectangle.Left() = 0;
+ for ( int i = 0; i < nCount; ++i )
+ {
+ SwColumn* pCol = rCols[i];
+ nStart = pCol->GetLeft() + nWidth;
+ if(i == nNum - 2)
+ aRectangle.Left() = nStart;
+ nWidth += pCols->CalcColWidth( i, nTotalWidth );
+ nEnd = nWidth - pCol->GetRight();
+ }
+ aRectangle.Right() = nPageWidth - nEnd;
+ aRectangle.Left() -= DOCUMENTBORDER;
+ aRectangle.Right() += DOCUMENTBORDER;
+ if(nNum > 1)
+ {
+ aRectangle.Left() += MINLAY;
+ aRectangle.Left() += aRect.Left();
+ }
+ if(pFmt) //Bereich in Rahmen - hier darf man bis zum Rand
+ aRectangle.Left() = aRectangle.Right() = 0;
+ else
+ {
+ // das Rechteck an die richtige absolute Position verschieben
+ aRectangle.Left() += aAbsRect.Left();
+ aRectangle.Right() -= aAbsRect.Left();
+ // Abstand zur Umrandung mit einbeziehen
+ aRectangle.Right() -= (nOuterWidth - nTotalWidth) / 2;
+ }
+
+ if(nNum < rCols.Count())
+ {
+ aRectangle.Right() += MINLAY;
+ }
+ else
+ // rechts ist jetzt nur noch der Seitenrand
+ aRectangle.Right() = 0;
+
+
+ }
+ }
+ else if ( ((nFrmType & FRMTYPE_TABLE) || IsTabColFromDoc()) &&
+ !bFrmSelection )
+ {
+ BOOL bColumn;
+ if ( IsTabColFromDoc() )
+ bColumn = rSh.GetCurMouseColNum( aTabColFromDocPos ) != 0;
+ else
+ bColumn = (nFrmType & (FRMTYPE_COLUMN|FRMTYPE_FLY_ANY|
+ FRMTYPE_COLSECTOUTTAB)) ?
+ TRUE : FALSE;
+ if ( !bColumn )
+ {
+ if( nFrmType & FRMTYPE_FLY_ANY && IsTabColFromDoc() )
+ {
+ SwRect aRect( rSh.GetAnyCurRect(
+ RECT_FLY_PRT_EMBEDDED, pPt ) );
+ aRect.Pos() += rSh.GetAnyCurRect( RECT_FLY_EMBEDDED,
+ pPt ).Pos();
+
+ aRectangle.Left() = aRect.Left() - DOCUMENTBORDER;
+ aRectangle.Right() = nPageWidth - ( aRect.Right()
+ - DOCUMENTBORDER );
+ }
+ else if( bBrowse )
+ {
+ aRectangle.Left() = rPagePrtRect.Left();
+ aRectangle.Right() = nPageWidth - rPagePrtRect.Right();
+ }
+ else
+ {
+ aRectangle.Left() = aPageLRSpace.GetLeft();
+ aRectangle.Right() = aPageLRSpace.GetRight();
+ }
+ }
+ else
+ { //hier nur fuer Tabelle in mehrspaltigen Seiten und Rahmen
+ BOOL bSectOutTbl = (nFrmType & FRMTYPE_TABLE) ? TRUE : FALSE;
+ BOOL bFrame = (nFrmType & FRMTYPE_FLY_ANY) ? TRUE : FALSE;
+ BOOL bColSct = (nFrmType & ( bSectOutTbl
+ ? FRMTYPE_COLSECTOUTTAB
+ : FRMTYPE_COLSECT )
+ ) ? TRUE : FALSE;
+ //Damit man auch mit der Mouse ziehen kann,
+ //ohne in der Tabelle zu stehen
+ CurRectType eRecType = RECT_PAGE_PRT;
+ int nNum = IsTabColFromDoc() ?
+ rSh.GetCurMouseColNum( aTabColFromDocPos ):
+ rSh.GetCurOutColNum();
+ const SwFrmFmt* pFmt = NULL;
+ if( bColSct )
+ {
+ eRecType = bSectOutTbl ? RECT_OUTTABSECTION
+ : RECT_SECTION;
+ const SwSection *pSect = rSh.GetAnySection( bSectOutTbl );
+ ASSERT( pSect, "Welcher Bereich?");
+ pFmt = pSect->GetFmt();
+ }
+ else if( bFrame )
+ {
+ pFmt = rSh.GetFlyFrmFmt();
+ eRecType = RECT_FLY_PRT_EMBEDDED;
+ }
+
+ const SwFmtCol* pCols = pFmt ? &pFmt->GetCol():
+ &rDesc.GetMaster().GetCol();
+ const SwColumns& rCols = pCols->GetColumns();
+ const USHORT nBorder = pFmt ? pFmt->GetBox().GetDistance() :
+ rDesc.GetMaster().GetBox().GetDistance();
+
+ /* RECT_FLY_PRT_EMBEDDED returns the relative position to
+ RECT_FLY_EMBEDDED
+ the absolute position must be added here
+ */
+ SwRect aRect( rSh.GetAnyCurRect( eRecType, pPt ) );
+ if(RECT_FLY_PRT_EMBEDDED == eRecType)
+ aRect.Pos() += rSh.GetAnyCurRect( RECT_FLY_EMBEDDED,
+ pPt ).Pos();
+
+ const USHORT nTotalWidth = (USHORT)aRect.Width();
+ //nStart und nEnd initialisieren fuer nNum == 0
+ int nWidth = 0,
+ nStart = 0,
+ nEnd = nTotalWidth;
+
+ if( nNum > rCols.Count() )
+ {
+ ASSERT( !this, "es wird auf dem falschen FmtCol gearbeitet!" );
+ nNum = rCols.Count();
+ }
+
+ for( int i = 0; i < nNum; ++i )
+ {
+ SwColumn* pCol = rCols[i];
+ nStart = pCol->GetLeft() + nWidth;
+ nWidth += pCols->CalcColWidth( i, nTotalWidth );
+ nEnd = nWidth - pCol->GetRight();
+ }
+ if( bFrame | bColSct )
+ {
+ aRectangle.Left() = aRect.Left()
+ - DOCUMENTBORDER + nStart;
+ aRectangle.Right() = nPageWidth
+ - aRectangle.Left()
+ - nEnd + nStart;
+ }
+ else if(!bBrowse)
+ {
+ aRectangle.Left() = aPageLRSpace.GetLeft() + nStart;
+ aRectangle.Right() = nPageWidth - nEnd - aPageLRSpace.GetLeft();
+ }
+ else
+ {
+ long nLeft = rPagePrtRect.Left();
+ aRectangle.Left() = nStart + nLeft;
+ aRectangle.Right() = nPageWidth - nEnd - nLeft;
+ }
+ if(!bFrame)
+ {
+ aRectangle.Left() += nBorder;
+ aRectangle.Right() -= nBorder;
+ }
+ }
+ }
+ else if ( nFrmType & ( FRMTYPE_HEADER | FRMTYPE_FOOTER ))
+ {
+ aRectangle.Left() = aPageLRSpace.GetLeft();
+ aRectangle.Right() = aPageLRSpace.GetRight();
+ }
+ else
+ aRectangle.Left() = aRectangle.Right() = 0;
+
+ SfxRectangleItem aLR( SID_RULER_LR_MIN_MAX , aRectangle);
+ rSet.Put(aLR);
+ }
+ break;
+ case SID_RULER_PROTECT:
+ {
+ if(bFrmSelection)
+ {
+ BYTE nProtect = pWrtShell->IsSelObjProtected((FlyProtectType)(FLYPROTECT_SIZE|FLYPROTECT_POS|FLYPROTECT_CONTENT));
+
+ SvxProtectItem aProt(SID_RULER_PROTECT);
+ aProt.SetCntntProtect((nProtect & FLYPROTECT_CONTENT) != 0);
+ aProt.SetSizeProtect ((nProtect & FLYPROTECT_SIZE) != 0);
+ aProt.SetPosProtect ((nProtect & FLYPROTECT_POS) != 0);
+ rSet.Put(aProt);
+ }
+ else
+ {
+ SvxProtectItem aProtect(SID_RULER_PROTECT);
+ if(bBrowse && !(nFrmType & (FRMTYPE_DRAWOBJ|FRMTYPE_COLUMN)) && !rSh.GetTableFmt())
+ {
+ aProtect.SetSizeProtect(TRUE);
+ aProtect.SetPosProtect(TRUE);
+ }
+ rSet.Put(aProtect);
+ }
+ }
+ break;
+ }
+ nWhich = aIter.NextWhich();
+ }
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.130 2000/09/18 16:06:14 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.129 2000/09/07 15:59:33 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.128 2000/08/29 13:59:32 ama
+ New: Negative margins
+
+ Revision 1.127 2000/08/23 12:49:45 kz
+ function Max (long, long)
+
+ Revision 1.126 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.125 2000/05/10 11:53:20 os
+ Basic API removed
+
+ Revision 1.124 2000/04/18 15:02:51 os
+ UNICODE
+
+ Revision 1.123 2000/01/17 13:32:55 jp
+ Bug #70616#: StateTabWin - if IsTabColFromDoc-Flag set then get/set info only over layoutpos
+
+ Revision 1.122 1999/11/23 14:56:37 os
+ #69106# LR_MIN_MAX in frames corrected
+
+ Revision 1.121 1999/06/21 07:20:54 OS
+ #66284##66928# correct display of frames with columns
+
+
+ Rev 1.120 21 Jun 1999 09:20:54 OS
+ #66284##66928# correct display of frames with columns
+
+ Rev 1.119 04 Jun 1999 09:29:22 OS
+ #66284# Rahmen nach Attributanwendung deselektieren
+
+ Rev 1.118 04 Jun 1999 09:00:04 OS
+ #66436# spaltige Bereiche auf spaltigen Seiten funktionieren jetzt auch
+
+ Rev 1.117 17 May 1999 13:06:14 OS
+ auch einspaltige Rahmen zeigen keine Spalten an
+
+ Rev 1.116 11 May 1999 21:51:06 JP
+ Task #66127#: Methoden rund ums Lineal verbessert und Schnittstellen veraendert/erweitert
+
+ Rev 1.115 28 Apr 1999 22:38:36 JP
+ Bug #65544#: StateTabWin: bei Tabellen in Bereichen mit den richtigen Werten arbeiten
+
+ Rev 1.114 23 Apr 1999 15:15:36 AMA
+ Fix #65252#: Nichtspaltige Bereiche in Tabellen in spaltigen Bereichen
+
+ Rev 1.113 20 Apr 1999 14:08:26 OS
+ #64974# Probleme mit spaltigen Bereichen beoben
+
+ Rev 1.112 06 Apr 1999 16:29:32 OS
+ #60062# spaltige Bereiche auch in Tabellen und spaltigen Rahmen fast richtig
+
+ Rev 1.111 10 Dec 1998 15:17:06 AMA
+ Fix #57749#: Fussnoten innerhalb von spaltigen Bereichen
+
+ Rev 1.110 03 Dec 1998 09:19:20 OS
+ #60062# LR_MIN_MAX fuer spaltige Bereiche sollte jetzt richtig sein
+
+ Rev 1.109 27 Nov 1998 14:57:32 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.108 18 Sep 1998 16:55:54 OS
+ #56584# WishWidth ueber USHRT_MAX verhindern
+
+ Rev 1.107 20 Aug 1998 13:30:46 OS
+ GetFrmType reicht fuer verkettete Rahmen nicht aus -> IsFrmSelected benutzen
+ Keine Absatzattribute fuer sel. Rahmen anzeigen #55277#,#55257#
+
+ Rev 1.106 01 Apr 1998 17:31:48 OM
+ #31111 Rahmen in protecteten Rahmen sind auch geschuetzt
+
+ Rev 1.105 04 Mar 1998 10:01:14 MH
+ chg: wg. internal Compilererrror
+
+ Rev 1.104 07 Feb 1998 10:38:12 OS
+ Set/GetStyle am Lineal fuer BrowseMode-Umschaltung #41371#
+
+ Rev 1.103 21 Nov 1997 15:00:24 MA
+ includes
+
+ Rev 1.102 15 Sep 1997 11:49:12 OS
+ zusaetzlicher Kommentar
+
+ Rev 1.101 15 Sep 1997 11:29:30 OS
+ Slotumleitung nicht ueber Dispatcher #43754#
+
+ Rev 1.100 12 Sep 1997 10:36:08 OS
+ ITEMID_* definiert
+
+ Rev 1.99 10 Sep 1997 16:55:32 OS
+ Rahmen: Absatzeinzuege innerhalb der Umrandung #42444#
+
+ Rev 1.98 15 Aug 1997 11:47:58 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.97 11 Aug 1997 10:28:32 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.96 07 Aug 1997 14:58:58 OM
+ Headerfile-Umstellung
+
+ Rev 1.95 06 Aug 1997 10:27:54 OS
+ Seitenraender richtig tauschen #42452#
+
+ Rev 1.94 30 Jul 1997 19:05:50 HJS
+ includes
+
+ Rev 1.93 29 Jul 1997 14:22:40 AMA
+ Fix #42203#: GPF durch nicht zurueckgesetztes bSetTabCol...
+
+ Rev 1.92 09 Jul 1997 12:54:30 OS
+ MinMaxItem im BrowseMode mit richtigen Raendern fuellen #41484#
+
+ Rev 1.91 17 Jun 1997 15:44:30 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.90 09 Jun 1997 14:28:10 MA
+ chg: Browse-Flag nur noch am Doc
+
+ Rev 1.89 07 Apr 1997 19:06:32 MH
+ chg: header
+
+ Rev 1.88 12 Mar 1997 16:42:38 OS
+ AutoUpdate von Vorlagen: Absatzeinzuege, Tabulatoren
+
+ Rev 1.87 14 Feb 1997 09:13:42 JP
+ Bug #36135#: ExceTabWin - bei SetMouseTabCols die View locken
+
+ Rev 1.86 13 Feb 1997 12:06:14 MA
+ chg: Keine Tabulatoren im Lineal fuer Web
+
+ Rev 1.85 04 Feb 1997 08:14:32 OS
+ relative Rahmen richtig setzen
+
+ Rev 1.84 08 Jan 1997 10:55:00 OS
+ include fuer DEBUGLIN
+
+ Rev 1.83 28 Nov 1996 14:58:18 OS
+ keine Tabulatoren bei uneindeutigen Absatzeinzuegen
+
+ Rev 1.82 26 Nov 1996 16:55:20 OS
+ MinMax fuer Tabellen im BrowseMode korrigiert
+
+ Rev 1.81 21 Nov 1996 11:52:52 OS
+ Abstaende beruecksichtigen
+
+ Rev 1.80 04 Nov 1996 13:30:36 OS
+ UL-Spaces an Rahmen fuer das VLineal beruecksichtigen
+
+ Rev 1.79 24 Oct 1996 09:32:46 OS
+ Klammern vergessen...
+
+ Rev 1.78 21 Oct 1996 19:06:48 OS
+ ProtectItem vollstaendig senden; Exec-Methoden in der BrowseView stimmen jetzt
+
+ Rev 1.77 18 Oct 1996 08:57:42 OS
+ spaltige Rahmen und seiten wieder richtig anzeigen, ProtectItem fuer die Seitenraender mitschicken
+
+ Rev 1.76 25 Sep 1996 10:56:52 PL
+ Falsches Makro
+
+ Rev 1.75 24 Sep 1996 16:44:04 OS
+ letzter Bug in BrowseView
+
+ Rev 1.74 23 Sep 1996 19:38:32 HJS
+ add: viewopt.hxx
+
+ Rev 1.73 23 Sep 1996 15:36:32 MA
+ ViewWin vernichtet
+
+ Rev 1.72 23 Sep 1996 12:13:32 OS
+ richtige Raender in der BrowseView
+
+ Rev 1.71 12 Sep 1996 17:00:34 OS
+ GetAnyCurRect() ersetzt GetCur*Rect
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/uno/dlelstnr.cxx b/sw/source/ui/uno/dlelstnr.cxx
new file mode 100644
index 000000000000..9d5c95261995
--- /dev/null
+++ b/sw/source/ui/uno/dlelstnr.cxx
@@ -0,0 +1,164 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlelstnr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _COM_SUN_STAR_LINGUISTIC_DICTIONARYLISTEVENTFLAGS_HPP_
+#include <com/sun/star/linguistic/DictionaryListEventFlags.hpp>
+#endif
+
+#ifndef _VOS_MUTEX_HXX_
+#include <vos/mutex.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SHL_HXX
+#include <tools/shl.hxx>
+#endif
+
+#ifndef _DLELSTNR_HXX_
+#include "dlelstnr.hxx"
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::linguistic;
+
+/* -----------------------------17.03.00 09:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwDicListEvtListener::SwDicListEvtListener(
+ const Reference< XDictionaryList > &rxDicList )
+{
+ xDicList = rxDicList;
+ if (xDicList.is())
+ {
+ xDicList->addDictionaryListEventListener( this, sal_False );
+ }
+}
+/* -----------------------------17.03.00 09:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwDicListEvtListener::~SwDicListEvtListener()
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+
+ if (xDicList.is())
+ {
+ xDicList->removeDictionaryListEventListener( this );
+ }
+}
+
+/* -----------------------------17.03.00 09:06--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwDicListEvtListener::processDictionaryListEvent(
+ const DictionaryListEvent& aDicListEvent)
+ throw( ::com::sun::star::uno::RuntimeException )
+{
+ vos::OGuard aGuard(Application::GetSolarMutex());
+
+ sal_Int16 nEvt = aDicListEvent.nCondensedEvent;
+
+ sal_Bool bIsSpellWrong = ( nEvt & DictionaryListEventFlags::ADD_POS_ENTRY )
+ || ( nEvt & DictionaryListEventFlags::DEL_NEG_ENTRY )
+ || ( nEvt & DictionaryListEventFlags::ACTIVATE_POS_DIC )
+ || ( nEvt & DictionaryListEventFlags::DEACTIVATE_NEG_DIC );
+ sal_Bool bIsSpellAll = ( nEvt & DictionaryListEventFlags::ADD_NEG_ENTRY )
+ || ( nEvt & DictionaryListEventFlags::DEL_POS_ENTRY )
+ || ( nEvt & DictionaryListEventFlags::ACTIVATE_NEG_DIC )
+ || ( nEvt & DictionaryListEventFlags::DEACTIVATE_POS_DIC );
+ SW_MOD()->CheckSpellChanges( sal_False, bIsSpellWrong, bIsSpellAll );
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.6 2000/09/18 16:06:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.5 2000/05/11 12:51:32 tl
+ if[n]def ONE_LINGU entfernt, namespace's verwendet
+
+ Revision 1.4 2000/03/21 15:39:43 os
+ UNOIII
+
+ Revision 1.3 2000/02/11 15:00:05 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.2 2000/01/11 19:38:42 tl
+ #70735# evaluate DictionaryListEvents
+
+ Revision 1.1 2000/01/11 10:49:11 tl
+ #70735# initial revision
+
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uno/makefile.mk b/sw/source/ui/uno/makefile.mk
new file mode 100644
index 000000000000..e4fce756c9c6
--- /dev/null
+++ b/sw/source/ui/uno/makefile.mk
@@ -0,0 +1,109 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=unoidl
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..$/ui_1st$/ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+
+CXXFILES = \
+ unotxdoc.cxx \
+ unoatxt.cxx \
+ unomod.cxx \
+ unotxvw.cxx \
+ dlelstnr.cxx
+
+
+SLOFILES = \
+ $(SLO)$/unotxdoc.obj\
+ $(SLO)$/unoatxt.obj \
+ $(SLO)$/unomod.obj \
+ $(SLO)$/unotxvw.obj \
+ $(SLO)$/dlelstnr.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/dlelstnr.obj \
+ $(SLO)$/unotxdoc.obj \
+ $(SLO)$/unoatxt.obj \
+ $(SLO)$/unomod.obj \
+ $(SLO)$/unotxvw.obj
+
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx
new file mode 100644
index 000000000000..7b81694f2038
--- /dev/null
+++ b/sw/source/ui/uno/unoatxt.cxx
@@ -0,0 +1,1292 @@
+/*************************************************************************
+ *
+ * $RCSfile: unoatxt.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <swtypes.hxx>
+#ifndef _GLOSDOC_HXX //autogen
+#include <glosdoc.hxx>
+#endif
+
+#ifndef _SHELLIO_HXX //autogen
+#include <shellio.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include "initui.hxx"
+#endif
+#ifndef _GLOSLST_HXX
+#include <gloslst.hxx>
+#endif
+#ifndef _UNOATXT_HXX
+#include <unoatxt.hxx>
+#endif
+#ifndef _UNOMAP_HXX
+#include <unomap.hxx>
+#endif
+#ifndef _UNOOBJ_HXX
+#include <unoobj.hxx>
+#endif
+#ifndef _VOS_MUTEX_HXX_ //autogen
+#include <vos/mutex.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _DOC_HXX //autogen
+#include <doc.hxx>
+#endif
+#ifndef _TOOLS_DEBUG_HXX
+#include <tools/debug.hxx>
+#endif
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _OFAACCFG_HXX //autogen
+#include <offmgr/ofaaccfg.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _UNOCRSR_HXX //autogen
+#include <unocrsr.hxx>
+#endif
+#ifndef _BOOKMRK_HXX //autogen
+#include <bookmrk.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX
+#include <unoprnms.hxx>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PropertyAttribute_HPP_
+#include <com/sun/star/beans/PropertyAttribute.hpp>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::rtl;
+
+
+#define PROPERTY_NONE 0
+
+
+/* -----------------16.06.98 09:15-------------------
+ *
+ * --------------------------------------------------*/
+String lcl_FindGroupName(SwGlossaries* pGlossaries, const OUString& GroupName)
+{
+ sal_uInt16 nCount = pGlossaries->GetGroupCnt();
+ //wenn der Gruppenname intern erzeugt wurde, dann steht auch hier der Pfad drin
+ String sGroup(GroupName);
+ String sGroupName(sGroup.GetToken(0, GLOS_DELIM));
+ String sPath = sGroup.GetToken(1, GLOS_DELIM);
+ sal_Bool bPathLen = sPath.Len() > 0;
+ for ( sal_uInt16 i = 0; i < nCount; i++ )
+ {
+ String sGrpName = pGlossaries->GetGroupName(i);
+ if(bPathLen ? sGroup == sGrpName : sGroupName == sGrpName.GetToken(0, GLOS_DELIM))
+ {
+ return sGrpName;
+ }
+ }
+ return aEmptyStr;
+}
+
+/******************************************************************
+ *
+ ******************************************************************/
+/* -----------------30.03.99 14:31-------------------
+ *
+ * --------------------------------------------------*/
+Reference< uno::XInterface> SAL_CALL SwXAutoTextContainer_CreateInstance(const Reference< lang::XMultiServiceFactory>& )
+{
+ static Reference< uno::XInterface > xAText = (cppu::OWeakObject*)new SwXAutoTextContainer();;
+ return xAText;
+}
+
+/*-- 21.12.98 12:42:16---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXAutoTextContainer::SwXAutoTextContainer()
+{
+ pGlossaries = ::GetGlossaries();
+
+}
+/*-- 21.12.98 12:42:17---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXAutoTextContainer::~SwXAutoTextContainer()
+{
+
+}
+/*-- 21.12.98 12:42:17---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Int32 SwXAutoTextContainer::getCount(void) throw( uno::RuntimeException )
+{
+ return pGlossaries->GetGroupCnt();
+}
+/*-- 21.12.98 12:42:18---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXAutoTextContainer::getByIndex(sal_Int32 nIndex)
+ throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ uno::Any aRet;
+ sal_uInt16 nCount = pGlossaries->GetGroupCnt();
+ if ( nIndex >= 0 && nIndex <= nCount )
+ aRet = getByName(pGlossaries->GetGroupName(nIndex));
+ else
+ throw lang::IndexOutOfBoundsException();
+ return aRet;
+}
+/*-- 21.12.98 12:42:18---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Type SwXAutoTextContainer::getElementType(void) throw( uno::RuntimeException )
+{
+ return ::getCppuType((const Reference<text::XAutoTextGroup>*)0);
+
+}
+/*-- 21.12.98 12:42:18---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXAutoTextContainer::hasElements(void) throw( uno::RuntimeException )
+{
+ //zumindest Standard sollte es immer geben!
+ return sal_True;
+}
+/*-- 21.12.98 12:42:18---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXAutoTextContainer::getByName(const OUString& GroupName)
+ throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ uno::Any aRet;
+ XAutoTextGroupPtrArr &rGlosGroupArr = pGlossaries->GetUnoGroupArray();
+ //zunaechst den Namen mit Pfad-Extension finden
+ String sGroupName = lcl_FindGroupName(pGlossaries, GroupName);
+
+ if(sGroupName.Len())
+ {
+ Reference< text::XAutoTextGroup > aRef;
+ for ( sal_uInt16 i = 0; i < rGlosGroupArr.Count(); i++ )
+ {
+ Reference< text::XAutoTextGroup > * pxGroup = rGlosGroupArr.GetObject(i);
+ Reference< lang::XUnoTunnel > xGroupTunnel(*pxGroup, uno::UNO_QUERY);
+
+ SwXAutoTextGroup* pSwGroup = 0;
+ if(xGroupTunnel.is())
+ {
+ pSwGroup = (SwXAutoTextGroup*)xGroupTunnel->getSomething(SwXAutoTextGroup::getUnoTunnelId());
+ }
+ if(pSwGroup && GroupName == pSwGroup->getName())
+ { // Die Gruppe gibt es schon
+ aRef = *pxGroup;
+ break;
+ }
+ }
+ if ( !aRef.is() )
+ {
+ Reference< text::XAutoTextGroup > * pxGroup = new Reference< text::XAutoTextGroup > ;
+ *pxGroup = new SwXAutoTextGroup(sGroupName, pGlossaries/*pGlosGroup*/);
+ aRef = *pxGroup;
+ rGlosGroupArr.Insert(pxGroup, rGlosGroupArr.Count());
+ }
+ aRet.setValue(&aRef, ::getCppuType((const Reference< text::XAutoTextGroup >*)0));
+ }
+ else
+ throw container::NoSuchElementException();
+ return aRet;
+}
+/*-- 21.12.98 12:42:19---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Sequence< OUString > SwXAutoTextContainer::getElementNames(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_uInt16 nCount = pGlossaries->GetGroupCnt();
+
+ uno::Sequence< OUString > aGroupNames(nCount);
+ OUString *pArr = aGroupNames.getArray();
+
+ for ( sal_uInt16 i = 0; i < nCount; i++ )
+ {
+ // Die Namen werden ohne Pfad-Extension weitergegeben
+ String sGroupName(pGlossaries->GetGroupName(i));
+ pArr[i] = sGroupName.GetToken(0, GLOS_DELIM);
+ }
+ return aGroupNames;
+}
+/*-- 21.12.98 12:42:19---------------------------------------------------
+ findet Gruppennamen mit und ohne Pfadindex
+ -----------------------------------------------------------------------*/
+sal_Bool SwXAutoTextContainer::hasByName(const OUString& Name)
+ throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ String sGroupName = lcl_FindGroupName(pGlossaries, Name);
+ if(sGroupName.Len())
+ return sal_True;
+ return sal_False;
+}
+/*-- 21.12.98 12:42:19---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XAutoTextGroup > SwXAutoTextContainer::insertNewByName(const OUString& aGroupName)
+ throw( lang::IllegalArgumentException, container::ElementExistException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(hasByName(aGroupName))
+ throw container::ElementExistException();
+ String sGroup(aGroupName);
+ if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
+ {
+ sGroup += GLOS_DELIM;
+ sGroup += UniString::CreateFromInt32(0);
+ }
+ pGlossaries->NewGroupDoc(sGroup, sGroup.GetToken(0, GLOS_DELIM));
+ Reference< text::XAutoTextGroup > aRet = new SwXAutoTextGroup(sGroup, pGlossaries);
+ return aRet;
+}
+/*-- 21.12.98 12:42:19---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextContainer::removeByName(const OUString& aGroupName)
+ throw( container::NoSuchElementException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ //zunaechst den Namen mit Pfad-Extension finden
+ String sGroupName = lcl_FindGroupName(pGlossaries, aGroupName);
+ if(!sGroupName.Len())
+ throw container::NoSuchElementException();
+ pGlossaries->DelGroupDoc(sGroupName);
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXAutoTextContainer::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXAutoTextContainer");
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXAutoTextContainer::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.AutoTextContainer") == rServiceName;
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXAutoTextContainer::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.AutoTextContainer");
+ return aRet;
+}
+/******************************************************************
+ *
+ ******************************************************************/
+/* -----------------------------10.03.00 18:02--------------------------------
+
+ ---------------------------------------------------------------------------*/
+const uno::Sequence< sal_Int8 > & SwXAutoTextGroup::getUnoTunnelId()
+{
+ static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId();
+ return aSeq;
+}
+/* -----------------------------10.03.00 18:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Int64 SAL_CALL SwXAutoTextGroup::getSomething( const uno::Sequence< sal_Int8 >& rId )
+ throw(uno::RuntimeException)
+{
+ if( rId.getLength() == 16
+ && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(),
+ rId.getConstArray(), 16 ) )
+ {
+ return (sal_Int64)this;
+ }
+ return 0;
+}
+
+/*-- 21.12.98 12:42:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXAutoTextGroup::SwXAutoTextGroup(const OUString& rName,
+ SwGlossaries* pGlos) :
+ aPropSet(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_AUTO_TEXT_GROUP)),
+ sName(rName),
+ sGroupName(rName),
+ pGlossaries(pGlos)
+{
+}
+/*-- 21.12.98 12:42:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXAutoTextGroup::~SwXAutoTextGroup()
+{
+}
+/*-- 21.12.98 12:42:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+/*-- 21.12.98 12:42:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Sequence< OUString > SwXAutoTextGroup::getTitles(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_uInt16 nCount = 0;
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ nCount = pGlosGroup->GetCount();
+ else
+ throw uno::RuntimeException();
+
+ uno::Sequence< OUString > aEntryTitles(nCount);
+ OUString *pArr = aEntryTitles.getArray();
+
+ for ( sal_uInt16 i = 0; i < nCount; i++ )
+ pArr[i] = pGlosGroup->GetLongName(i);
+ delete pGlosGroup;
+ return aEntryTitles;
+}
+/*-- 21.12.98 12:42:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::renameByName(const OUString& aElementName,
+ const OUString& aNewElementName, const OUString& aNewElementTitle)
+ throw( lang::IllegalArgumentException, container::ElementExistException, io::IOException,
+ uno::RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ // throw exception only if the programmatic name is to be changed into an existing name
+ if(aNewElementName != aElementName && hasByName(aNewElementName))
+ throw container::ElementExistException();
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ {
+ sal_uInt16 nIdx = pGlosGroup->GetIndex( aElementName);
+ if(USHRT_MAX == nIdx)
+ throw lang::IllegalArgumentException();
+ String aNewShort( aNewElementName);
+ String aNewName( aNewElementTitle);
+ sal_uInt16 nOldLongIdx = pGlosGroup->GetLongIndex( aNewShort );
+ sal_uInt16 nOldIdx = pGlosGroup->GetIndex( aNewName );
+
+ if( nIdx != USHRT_MAX &&
+ (nOldLongIdx == USHRT_MAX || nOldLongIdx == nIdx )&&
+ (nOldIdx == USHRT_MAX || nOldIdx == nIdx ))
+ {
+ pGlosGroup->Rename( nIdx, &aNewShort, &aNewName );
+ if(pGlosGroup->GetError() != 0)
+ throw io::IOException();
+ }
+ delete pGlosGroup;
+ }
+ else
+ throw uno::RuntimeException();
+}
+/* -----------------04.05.99 11:57-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool lcl_CopySelToDoc( SwDoc* pInsDoc, SwXTextCursor* pxCursor, SwXTextRange* pxRange )
+{
+ ASSERT( pInsDoc, "kein Ins.Dokument" );
+
+ SwNodes& rNds = pInsDoc->GetNodes();
+
+ SwNodeIndex aIdx( rNds.GetEndOfContent(), -1 );
+ SwCntntNode * pNd = aIdx.GetNode().GetCntntNode();
+ SwPosition aPos( aIdx, SwIndex( pNd, pNd->Len() ));
+
+ sal_Bool bRet = sal_False;
+ pInsDoc->LockExpFlds();
+ {
+ if(pxCursor)
+ {
+ SwUnoCrsr* pUnoCrsr = pxCursor->GetCrsr();
+ bRet |= pUnoCrsr->GetDoc()->Copy( *pUnoCrsr, aPos );
+ }
+ else
+ {
+ SwBookmark* pBkm = pxRange->GetBookmark();
+ if(pBkm->GetOtherPos())
+ {
+ SwPaM aTmp(*pBkm->GetOtherPos(), pBkm->GetPos());
+ bRet |= pxRange->GetDoc()->Copy(aTmp, aPos);
+ }
+ }
+ }
+
+ pInsDoc->UnlockExpFlds();
+ if( !pInsDoc->IsExpFldsLocked() )
+ pInsDoc->UpdateExpFlds();
+
+ return bRet;
+}
+/*-- 21.12.98 12:42:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const OUString& aName,
+ const OUString& aTitle, const Reference< text::XTextRange > & xTextRange)
+ throw( container::ElementExistException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(hasByName(aName))
+ throw container::ElementExistException();
+ if(!xTextRange.is())
+ throw uno::RuntimeException();
+
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ String sShortName(aName);
+ String sLongName(aTitle);
+ if(pGlosGroup)
+ {
+ if( pGlosGroup->IsOld() )
+ {
+ if( pGlosGroup->ConvertToNew() )
+ {
+ throw uno::RuntimeException();
+ return Reference< text::XAutoTextEntry > ();
+ }
+ }
+ Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
+ SwXTextRange* pxRange = 0;
+ SwXTextCursor* pxCursor = 0;
+ if(xRangeTunnel.is())
+ {
+ pxRange = (SwXTextRange*)xRangeTunnel->getSomething(
+ SwXTextRange::getUnoTunnelId());
+ pxCursor = (SwXTextCursor*)xRangeTunnel->getSomething(
+ SwXTextCursor::getUnoTunnelId());
+ }
+
+ String sOnlyTxt;
+ String* pOnlyTxt = 0;
+ sal_Bool bNoAttr = !pxCursor && !pxRange;
+ if(bNoAttr)
+ {
+ sOnlyTxt = UniString(xTextRange->getString());
+ pOnlyTxt = &sOnlyTxt;
+ }
+
+ const OfaAutoCorrCfg* pCfg = OFF_APP()->GetAutoCorrConfig();
+
+ SwDoc* pGDoc = pGlosGroup->GetDoc();
+
+ // Bis es eine Option dafuer gibt, base util::URL loeschen
+ const String aOldURL( INetURLObject::GetBaseURL() );
+ if(pCfg->IsSaveRelFile())
+ {
+ INetURLObject::SetBaseURL( URIHelper::SmartRelToAbs(pGlosGroup->GetFileName()));
+ }
+ else
+ INetURLObject::SetBaseURL( aEmptyStr );
+
+ sal_uInt16 nRet;
+ if( pOnlyTxt )
+ nRet = pGlosGroup->PutText( sShortName, sLongName, *pOnlyTxt );
+ else
+ {
+ pGlosGroup->ClearDoc();
+ if( pGlosGroup->BeginPutDoc( sShortName, sLongName ) )
+ {
+ pGDoc->SetRedlineMode_intern( REDLINE_DELETE_REDLINES );
+ lcl_CopySelToDoc( pGDoc, pxCursor, pxRange );
+ pGDoc->SetRedlineMode_intern( 0 );
+ nRet = pGlosGroup->PutDoc();
+ }
+ else
+ nRet = (sal_uInt16) -1;
+ }
+
+ INetURLObject::SetBaseURL( aOldURL );
+
+ if(nRet == (sal_uInt16) -1 )
+ {
+ throw uno::RuntimeException();
+ }
+ pGlossaries->PutGroupDoc( pGlosGroup );
+ }
+ Reference< text::XAutoTextEntry > xRet = new SwXAutoTextEntry(pGlossaries, sGroupName, sShortName);
+ return xRet;
+}
+/*-- 21.12.98 12:42:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::removeByName(const OUString& aEntryName) throw( container::NoSuchElementException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ {
+ sal_uInt16 nIdx = pGlosGroup->GetIndex(aEntryName);
+ if ( nIdx != USHRT_MAX )
+ pGlosGroup->Delete(nIdx);
+ delete pGlosGroup;
+ }
+ else
+ throw container::NoSuchElementException();
+}
+/*-- 21.12.98 12:42:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+OUString SwXAutoTextGroup::getName(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ return sName;
+}
+/*-- 21.12.98 12:42:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::setName(const OUString& rName) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ String sNewGroup(rName);
+ if(!pGlossaries || sName == rName)
+ throw uno::RuntimeException();
+ if(STRING_NOTFOUND == sNewGroup.Search(GLOS_DELIM))
+ {
+ sNewGroup += GLOS_DELIM;
+ sNewGroup += UniString::CreateFromInt32(0);
+ }
+ //the name must be saved, the group may be invalidated while in RenameGroupDoc()
+ SwGlossaries* pTempGlossaries = pGlossaries;
+
+ String sGroupName(sName);
+ String sTitle(pGlossaries->GetGroupTitle(sGroupName));
+ if(!pGlossaries->RenameGroupDoc(sGroupName, sNewGroup, sTitle))
+ throw uno::RuntimeException();
+ else
+ {
+ sName = rName;
+ sGroupName = sNewGroup;
+ pGlossaries = pTempGlossaries;
+ }
+}
+/*-- 21.12.98 12:42:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Int32 SwXAutoTextGroup::getCount(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ int nCount = 0;
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ nCount = pGlosGroup->GetCount();
+ else
+ throw uno::RuntimeException();
+ delete pGlosGroup;
+ return nCount;
+}
+/*-- 21.12.98 12:42:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXAutoTextGroup::getByIndex(sal_Int32 nIndex)
+ throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ uno::Any aRet;
+ sal_uInt16 nCount = 0;
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ nCount = pGlosGroup->GetCount();
+ else
+ throw uno::RuntimeException();
+ if(nCount > nIndex)
+ aRet = getByName(pGlosGroup->GetShortName((sal_uInt16) nIndex));
+ else
+ throw lang::IndexOutOfBoundsException();
+ delete pGlosGroup;
+ return aRet;
+}
+/*-- 21.12.98 12:42:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Type SwXAutoTextGroup::getElementType(void) throw( uno::RuntimeException )
+{
+ return ::getCppuType((Reference<text::XAutoTextEntry>*)0);
+
+}
+/*-- 21.12.98 12:42:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXAutoTextGroup::hasElements(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ sal_uInt16 nCount = 0;
+ if(pGlosGroup)
+ nCount = pGlosGroup->GetCount();
+ else
+ throw uno::RuntimeException();
+ return nCount > 0;
+
+}
+/*-- 21.12.98 12:42:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXAutoTextGroup::getByName(const OUString& Name)
+ throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ uno::Any aRet;
+ //standard must be created
+ sal_Bool bCreate = sGroupName == SwGlossaries::GetDefName();
+ SwTextBlocks* pGlosGroup = pGlossaries ?
+ pGlossaries->GetGroupDoc(sGroupName, bCreate) : 0;
+ if(pGlosGroup)
+ {
+ sal_uInt16 nIdx = pGlosGroup->GetIndex(Name);
+ if( nIdx != USHRT_MAX )
+ {
+ Reference< text::XAutoTextEntry > xRef;
+ SwGlossaries* pGlossaries = ::GetGlossaries();
+ XAutoTextEntryPtrArr& rArr = pGlossaries->GetUnoEntryArray();
+ for(sal_uInt16 i = 0; i < rArr.Count(); i++)
+ {
+ Reference< uno::XInterface > * pxEntry = rArr.GetObject(i);
+ Reference< lang::XUnoTunnel > xEntryTunnel(*pxEntry, uno::UNO_QUERY);
+ SwXAutoTextEntry* pEntry = 0;
+ if(xEntryTunnel.is())
+ {
+ pEntry = (SwXAutoTextEntry*)xEntryTunnel->getSomething(SwXAutoTextEntry::getUnoTunnelId());
+ }
+ if(pEntry &&
+ COMPARE_EQUAL == pEntry->GetGroupName().CompareTo(String(sName)) &&
+ COMPARE_EQUAL == pEntry->GetEntryName().CompareTo(String(Name)))
+ {
+ xRef = pEntry;
+ break;
+ }
+ }
+ if(!xRef.is())
+ xRef = new SwXAutoTextEntry(pGlossaries, sName, Name);
+ aRet.setValue(&xRef, ::getCppuType((Reference< text::XAutoTextEntry>*)0));
+ }
+ delete pGlosGroup;
+ }
+ else
+ throw uno::RuntimeException();
+ return aRet;
+}
+/*-- 21.12.98 12:42:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Sequence< OUString > SwXAutoTextGroup::getElementNames(void)
+ throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_uInt16 nCount = 0;
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ nCount = pGlosGroup->GetCount();
+ else
+ throw uno::RuntimeException();
+
+ uno::Sequence< OUString > aEntryNames(nCount);
+ OUString *pArr = aEntryNames.getArray();
+
+ for ( sal_uInt16 i = 0; i < nCount; i++ )
+ pArr[i] = pGlosGroup->GetShortName(i);
+ delete pGlosGroup;
+ return aEntryNames;
+}
+/*-- 21.12.98 12:42:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXAutoTextGroup::hasByName(const OUString& rName)
+ throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ sal_uInt16 nCount = 0;
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(pGlosGroup)
+ nCount = pGlosGroup->GetCount();
+ else
+ throw uno::RuntimeException();
+
+ for( sal_uInt16 i = 0; i < nCount; i++ )
+ {
+ String sCompare(pGlosGroup->GetShortName(i));
+ if(COMPARE_EQUAL == sCompare.CompareIgnoreCaseToAscii(String(rName)))
+ {
+ bRet = sal_True;
+ break;
+ }
+ }
+ delete pGlosGroup;
+ return bRet;
+}
+
+/*-- 09.02.00 15:33:30---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< beans::XPropertySetInfo > SwXAutoTextGroup::getPropertySetInfo(void)
+ throw( uno::RuntimeException )
+{
+ static Reference< beans::XPropertySetInfo > xRet = aPropSet.getPropertySetInfo();
+ return xRet;
+}
+/*-- 09.02.00 15:33:31---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::setPropertyValue(
+ const OUString& rPropertyName, const uno::Any& aValue)
+ throw( beans::UnknownPropertyException, beans::PropertyVetoException,
+ lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ const SfxItemPropertyMap* pMap = SfxItemPropertyMap::GetByName(
+ aPropSet.getPropertyMap(), rPropertyName);
+
+ if(!pMap)
+ throw beans::UnknownPropertyException();
+
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(!pGlosGroup)
+ throw uno::RuntimeException();
+ switch(pMap->nWID)
+ {
+ case WID_GROUP_TITLE:
+ {
+ if(aValue.getValueType() != ::getCppuType((OUString*)0))
+ throw lang::IllegalArgumentException();
+ String sNewTitle = *(OUString*)aValue.getValue();
+ sal_Bool bChanged = sNewTitle != pGlosGroup->GetName();
+ pGlosGroup->SetName(sNewTitle);
+ if(bChanged && HasGlossaryList())
+ GetGlossaryList()->ClearGroups();
+ }
+ break;
+ }
+ delete pGlosGroup;
+}
+/*-- 09.02.00 15:33:31---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXAutoTextGroup::getPropertyValue(const OUString& rPropertyName)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ const SfxItemPropertyMap* pMap = SfxItemPropertyMap::GetByName(
+ aPropSet.getPropertyMap(), rPropertyName);
+
+ if(!pMap)
+ throw beans::UnknownPropertyException();
+ SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(sGroupName, sal_False) : 0;
+ if(!pGlosGroup)
+ throw uno::RuntimeException();
+
+ uno::Any aAny;
+ switch(pMap->nWID)
+ {
+ case WID_GROUP_PATH:
+ aAny <<= OUString(pGlosGroup->GetFileName());
+ break;
+ case WID_GROUP_TITLE:
+ aAny <<= OUString(pGlosGroup->GetName());
+ break;
+ }
+ delete pGlosGroup;
+ return aAny;
+}
+/*-- 09.02.00 15:33:31---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::addPropertyChangeListener(
+ const OUString& PropertyName, const Reference< beans::XPropertyChangeListener > & aListener)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+}
+/*-- 09.02.00 15:33:31---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::removePropertyChangeListener(
+ const OUString& PropertyName, const Reference< beans::XPropertyChangeListener > & aListener)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+}
+/*-- 09.02.00 15:33:32---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::addVetoableChangeListener(
+ const OUString& PropertyName, const Reference< beans::XVetoableChangeListener > & aListener)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+}
+/*-- 09.02.00 15:33:32---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::removeVetoableChangeListener(
+ const OUString& PropertyName, const Reference< beans::XVetoableChangeListener > & aListener)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+}
+/*-- 21.12.98 12:42:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextGroup::Invalidate()
+{
+ pGlossaries = 0;
+ sName = aEmptyStr;
+ sGroupName = aEmptyStr;
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXAutoTextGroup::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXAutoTextGroup");
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXAutoTextGroup::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.AutoTextGroup") == rServiceName;
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXAutoTextGroup::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.AutoTextGroup");
+ return aRet;
+}
+/******************************************************************
+ *
+ ******************************************************************/
+/* -----------------------------10.03.00 18:02--------------------------------
+
+ ---------------------------------------------------------------------------*/
+const uno::Sequence< sal_Int8 > & SwXAutoTextEntry::getUnoTunnelId()
+{
+ static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId();
+ return aSeq;
+}
+/* -----------------------------10.03.00 18:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Int64 SAL_CALL SwXAutoTextEntry::getSomething( const uno::Sequence< sal_Int8 >& rId )
+ throw(uno::RuntimeException)
+{
+ if( rId.getLength() == 16
+ && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(),
+ rId.getConstArray(), 16 ) )
+ {
+ return (sal_Int64)this;
+ }
+ return 0;
+}
+/*-- 21.12.98 12:42:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXAutoTextEntry::SwXAutoTextEntry(SwGlossaries* pGlss, const String& rGroupName,
+ const String& rEntryName) :
+ pGlossaries(pGlss),
+ sGroupName(rGroupName),
+ sEntryName(rEntryName)
+{
+
+}
+/*-- 21.12.98 12:42:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXAutoTextEntry::~SwXAutoTextEntry()
+{
+
+}
+/*-- 21.12.98 12:42:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+/*-- 21.12.98 12:42:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextCursor > SwXAutoTextEntry::createTextCursor(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+ return Reference< text::XTextCursor > ();
+}
+/*-- 21.12.98 12:42:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextCursor > SwXAutoTextEntry::createTextCursorByRange(
+ const Reference< text::XTextRange > & aTextPosition) throw( uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+ return Reference< text::XTextCursor > ();
+}
+/*-- 21.12.98 12:42:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextEntry::insertString(const Reference< text::XTextRange > & xRange, const OUString& aString, sal_Bool bAbsorb) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+/*-- 21.12.98 12:42:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextEntry::insertControlCharacter(const Reference< text::XTextRange > & xRange,
+ sal_Int16 nControlCharacter, sal_Bool bAbsorb)
+ throw( lang::IllegalArgumentException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+/*-- 21.12.98 12:42:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextEntry::insertTextContent(
+ const Reference< text::XTextRange > & xRange,
+ const Reference< text::XTextContent > & xContent, sal_Bool bAbsorb)
+ throw( lang::IllegalArgumentException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+/*-- 21.12.98 12:42:34---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextEntry::removeTextContent(
+ const Reference< text::XTextContent > & xContent)
+ throw( container::NoSuchElementException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+/*-- 21.12.98 12:42:35---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XText > SwXAutoTextEntry::getText(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< text::XText > xRet = (text::XText*)this;
+ return xRet;
+}
+/*-- 21.12.98 12:42:35---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextRange > SwXAutoTextEntry::getStart(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+ return Reference< text::XTextRange > ();
+}
+/*-- 21.12.98 12:42:36---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextRange > SwXAutoTextEntry::getEnd(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+ return Reference< text::XTextRange > ();
+}
+/*-- 21.12.98 12:42:36---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+OUString SwXAutoTextEntry::getString(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+ return OUString();
+}
+/*-- 21.12.98 12:42:36---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXAutoTextEntry::setString(const OUString& aString) throw( uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/* -----------------15.07.99 10:11-------------------
+
+ --------------------------------------------------*/
+void SwXAutoTextEntry::applyTo(const Reference< text::XTextRange > & xTextRange)throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+
+ Reference<lang::XUnoTunnel> xRangeTunnel( xTextRange, uno::UNO_QUERY);
+ SwXTextRange* pRange = 0;
+ SwXTextCursor* pCursor = 0;
+ if(xRangeTunnel.is())
+ {
+ pRange = (SwXTextRange*)xRangeTunnel->getSomething(
+ SwXTextRange::getUnoTunnelId());
+ pCursor = (SwXTextCursor*)xRangeTunnel->getSomething(
+ SwXTextCursor::getUnoTunnelId());
+ }
+
+ SwDoc* pDoc = 0;
+ if(pRange && pRange->GetBookmark())
+ pDoc = pRange->GetDoc();
+ else if(pCursor && pCursor->GetCrsr())
+ pDoc = pCursor->GetDoc();
+ if(!pDoc)
+ throw uno::RuntimeException();
+ SwPaM* pInsertPaM = 0;
+ if(pRange)
+ {
+ SwBookmark* pBkm = pRange->GetBookmark();
+ if(pBkm->GetOtherPos())
+ pInsertPaM = new SwPaM(*pBkm->GetOtherPos(), pBkm->GetPos());
+ else
+ pInsertPaM = new SwPaM(pBkm->GetPos());
+ }
+ else
+ {
+ SwUnoCrsr* pCrsr = pCursor->GetCrsr();
+ if(pCrsr->HasMark())
+ pInsertPaM = new SwPaM(*pCrsr->GetPoint(), *pCrsr->GetMark());
+ else
+ pInsertPaM = new SwPaM(*pCrsr->GetPoint());
+ }
+
+ SwTextBlocks* pBlock = pGlossaries->GetGroupDoc(sGroupName);
+ sal_Bool bResult = pBlock &&
+ pDoc->InsertGlossary( *pBlock, sEntryName, *pInsertPaM);
+ delete pInsertPaM;
+
+ if(!bResult)
+ throw uno::RuntimeException();
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXAutoTextEntry::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXAutoTextEntry");
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXAutoTextEntry::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.AutoTextEntry") == rServiceName;
+}
+/* -----------------------------06.04.00 11:11--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXAutoTextEntry::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.AutoTextEntry");
+ return aRet;
+}
+
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.45 2000/09/18 16:06:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.44 2000/08/18 08:00:55 os
+ #77770# missing mutex
+
+ Revision 1.43 2000/08/09 12:58:48 os
+ #76891# short names are always upper case
+
+ Revision 1.42 2000/06/26 13:05:51 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.41 2000/05/31 12:02:10 os
+ SAL_CALL
+
+ Revision 1.40 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.39 2000/04/11 08:04:59 os
+ UNICODE
+
+ Revision 1.38 2000/03/27 10:36:31 os
+ UNO III
+
+ Revision 1.37 2000/03/21 15:39:44 os
+ UNOIII
+
+ Revision 1.36 2000/02/14 14:31:34 os
+ #70473# Unicode
+
+ Revision 1.35 2000/02/10 10:35:22 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.34 2000/01/28 15:24:05 os
+ #72213# Chg: text::XSimpleText;
+
+ Revision 1.33 1999/11/19 16:38:02 os
+ modules renamed
+
+ Revision 1.32 1999/10/18 08:16:13 os
+ #67409# save glossaries ptr while renaming the group
+
+ Revision 1.31 1999/10/05 09:45:09 os
+ #67454# last forgotten path indicators added
+
+ Revision 1.30 1999/09/10 13:19:05 os
+ Chg: resource types removed
+
+ Revision 1.29 1999/07/28 14:21:14 OS
+ #67828# applyTo changed
+
+
+ Rev 1.28 28 Jul 1999 16:21:14 OS
+ #67828# applyTo changed
+
+ Rev 1.27 23 Jul 1999 13:21:18 OS
+ #67828# applyTo implemented ;unused methods removed
+
+ Rev 1.26 23 Jul 1999 10:19:06 OS
+ #67828# applyTo implemented ;unused methods removed
+
+ Rev 1.25 20 Jul 1999 08:58:24 OS
+ #67409# SwXAutoTextGroup::setName; #67115# SwXAutoTextGroup::renameByName
+
+ Rev 1.24 19 Jul 1999 09:01:06 OS
+ new method: aplyTo()
+
+ Rev 1.23 04 May 1999 13:41:46 OS
+ #65330# insertNewByName funktioniert
+
+ Rev 1.22 04 May 1999 10:18:16 OS
+ #65328# container::XElementAccess fuer text::XAutoTextGroup
+
+ Rev 1.21 22 Apr 1999 16:09:04 OS
+ #65194# throw -> throw
+
+ Rev 1.20 22 Apr 1999 15:28:52 OS
+ #65124# not implemented - nur noch DBG_WARNING
+
+ Rev 1.19 30 Mar 1999 15:28:12 OS
+ #63930# Services am ProcessServiceManager anmelden
+
+ Rev 1.18 15 Mar 1999 14:38:24 OS
+ #62845# Makro fuer ServiceInfo jetzt auch fuer OS/2
+
+ Rev 1.17 12 Mar 1999 09:57:04 OS
+ #62845# lang::XServiceInfo impl.
+
+ Rev 1.16 09 Mar 1999 12:38:38 OS
+ #62008# Solar-Mutex
+
+ Rev 1.15 08 Mar 1999 07:43:00 MH
+ update 515
+
+ Rev 1.14 23 Feb 1999 16:14:20 OS
+ #62281# Pfadangabe muss in die text::AutoTextGroup uebernommen werden
+
+ Rev 1.13 08 Feb 1999 15:02:06 OS
+ #56371# richtiger Gruppenzugriff
+
+ Rev 1.12 28 Jan 1999 16:27:48 OS
+ #56371# keine Objekte fuer DEBUG anlegen
+
+ Rev 1.11 27 Jan 1999 12:06:08 OS
+ #56371# TF_ONE51
+
+ Rev 1.10 21 Dec 1998 16:20:04 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.9 10 Dec 1998 15:54:04 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.8 01 Sep 1998 08:24:08 OS
+ #55849# Signaturen per UNO ermitteln - SwTextBlocks immer neu anlegen
+
+ Rev 1.7 23 Jul 1998 17:18:08 OS
+ text::AutoTextGroup liefert jetzt text::XAutoTextEntry #52654#
+
+ Rev 1.6 10 Jul 1998 18:09:38 OS
+ PropertySetInfo und IdlClass static
+
+ Rev 1.5 21 Jun 1998 16:24:30 MH
+ Syntax OS/2
+
+ Rev 1.4 18 Jun 1998 08:13:22 OS
+ SwXAutoTextEntry
+
+ Rev 1.3 17 Jun 1998 09:55:56 OS
+ removeXXXByName
+
+ Rev 1.2 16 Jun 1998 16:48:28 OS
+ interface verbessert
+
+ Rev 1.1 04 Jun 1998 09:40:44 OS
+ getIdlClasses
+
+
+ Rev 1.0 27 May 1998 17:07:36 OM
+ Initial revision.
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uno/unomod.cxx b/sw/source/ui/uno/unomod.cxx
new file mode 100644
index 000000000000..930087ad3967
--- /dev/null
+++ b/sw/source/ui/uno/unomod.cxx
@@ -0,0 +1,781 @@
+/*************************************************************************
+ *
+ * $RCSfile: unomod.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <swtypes.hxx>
+#ifndef _TOOLS_DEBUG_HXX //autogen
+#include <tools/debug.hxx>
+#endif
+#ifndef _UNOMOD_HXX
+#include <unomod.hxx>
+#endif
+#ifndef _UNOOBJ_HXX
+#include <unoobj.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX
+#include <unoprnms.hxx>
+#endif
+#ifndef _UNOMAP_HXX
+#include <unomap.hxx>
+#endif
+#ifndef _SFX_ITEMPROP_HXX //autogen
+#include <svtools/itemprop.hxx>
+#endif
+#ifndef _PRTOPT_HXX //autogen
+#include <prtopt.hxx>
+#endif
+#ifndef _SHL_HXX
+#include <tools/shl.hxx>
+#endif
+#ifndef _SWMODULE_HXX //autogen
+#include <swmodule.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _SWDOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEWOPT_HXX //autogen
+#include <viewopt.hxx>
+#endif
+#ifndef _VOS_MUTEX_HXX_ //autogen
+#include <vos/mutex.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_NOTEPRINTMODE_HPP_
+#include <com/sun/star/text/NotePrintMode.hpp>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::rtl;
+
+/******************************************************************
+ * SwXModule
+ ******************************************************************/
+/* -----------------30.03.99 15:10-------------------
+ *
+ * --------------------------------------------------*/
+Reference< uno::XInterface > SAL_CALL SwXModule_CreateInstance(const Reference< lang::XMultiServiceFactory > & )
+{
+ static Reference< uno::XInterface > xModule = (cppu::OWeakObject*)new SwXModule();;
+ return xModule;
+}
+/*-- 17.12.98 12:19:01---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXModule::SwXModule() :
+ pxViewSettings(0),
+ pxPrintSettings(0)
+{
+}
+/*-- 17.12.98 12:19:02---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXModule::~SwXModule()
+{
+ delete pxViewSettings;
+ delete pxPrintSettings;
+}
+/*-- 17.12.98 12:19:03---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< beans::XPropertySet > SwXModule::getViewSettings(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!pxViewSettings)
+ {
+ ((SwXModule*)this)->pxViewSettings = new Reference< beans::XPropertySet > ;
+ DBG_ERROR("Web oder Text?")
+ *pxViewSettings = new SwXViewSettings(sal_False, 0);
+ }
+ return *pxViewSettings;
+}
+/*-- 17.12.98 12:19:03---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< beans::XPropertySet > SwXModule::getPrintSettings(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!pxPrintSettings)
+ {
+ ((SwXModule*)this)->pxPrintSettings = new Reference< beans::XPropertySet > ;
+ DBG_ERROR("Web oder Text?")
+ *pxPrintSettings = new SwXPrintSettings(sal_False);
+ }
+ return *pxPrintSettings;
+}
+/* -----------------------------06.04.00 10:59--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXModule::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXModule");
+}
+/* -----------------------------06.04.00 10:59--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXModule::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.Module") == rServiceName;
+}
+/* -----------------------------06.04.00 10:59--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXModule::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.Module");
+ return aRet;
+}
+
+/******************************************************************
+ * SwXPrintSettings
+ ******************************************************************/
+
+/*-- 17.12.98 12:54:04---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXPrintSettings::SwXPrintSettings(sal_Bool bWebView) :
+ _pMap(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_PRINT_SETTINGS)),
+ bWeb(bWebView)
+{
+
+}
+/*-- 17.12.98 12:54:05---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXPrintSettings::~SwXPrintSettings()
+{
+
+}
+/*-- 17.12.98 12:54:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< beans::XPropertySetInfo > SwXPrintSettings::getPropertySetInfo(void)
+ throw( uno::RuntimeException )
+{
+ static Reference< beans::XPropertySetInfo > aRef = new SfxItemPropertySetInfo(_pMap);
+ return aRef;
+}
+/*-- 17.12.98 12:54:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXPrintSettings::setPropertyValue(const OUString& rPropertyName,
+ const uno::Any& aValue)
+ throw( beans::UnknownPropertyException, beans::PropertyVetoException,
+ lang::IllegalArgumentException, lang::WrappedTargetException,
+ uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bVal = sal_False;
+
+ if(COMPARE_EQUAL != rPropertyName.compareToAscii(UNO_NAME_PRINT_ANNOTATION_MODE))
+ bVal = *(sal_Bool*)aValue.getValue();
+
+ SwPrintOptions* pPrtOpt = SW_MOD()->GetPrtOptions(bWeb);
+ const SfxItemPropertyMap* pCur = SfxItemPropertyMap::GetByName(_pMap, rPropertyName);
+ if(pCur)
+ switch( pCur->nWID )
+ {
+ case WID_PRTSET_LEFT_PAGES : pPrtOpt->SetPrintLeftPage(bVal); break;
+ case WID_PRTSET_RIGHT_PAGES : pPrtOpt->SetPrintRightPage(bVal); break;
+ case WID_PRTSET_REVERSED : pPrtOpt->SetPrintReverse(bVal); break;
+ case WID_PRTSET_PROSPECT : pPrtOpt->SetPrintProspect(bVal); break;
+ case WID_PRTSET_GRAPHICS : pPrtOpt->SetPrintGraphic(bVal); break;
+ case WID_PRTSET_TABLES : pPrtOpt->SetPrintTable(bVal); break;
+ case WID_PRTSET_DRAWINGS : pPrtOpt->SetPrintDraw(bVal); break;
+ case WID_PRTSET_CONTROLS : pPrtOpt->SetPrintControl(bVal); break;
+ case WID_PRTSET_PAGE_BACKGROUND: pPrtOpt->SetPrintPageBackground(bVal); break;
+ case WID_PRTSET_BLACK_FONTS : pPrtOpt->SetPrintBlackFont(bVal); break;
+ case WID_PRTSET_ANNOTATION_MODE:
+ {
+ sal_Int16 nVal;
+ aValue >>= nVal;
+ if(nVal <= text::NotePrintMode_PAGE_END)
+ pPrtOpt->SetPrintPostIts(nVal);
+ else
+ throw lang::IllegalArgumentException();
+ }
+ break;
+ default: DBG_ERROR("Diese Id gibt's nicht!");
+ }
+ else
+ throw beans::UnknownPropertyException();
+}
+/*-- 17.12.98 12:54:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXPrintSettings::getPropertyValue(const OUString& rPropertyName)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ uno::Any aRet;
+ SwPrintOptions* pPrtOpt = SW_MOD()->GetPrtOptions(bWeb);
+ const SfxItemPropertyMap* pCur = SfxItemPropertyMap::GetByName(_pMap, rPropertyName);
+ if(pCur)
+ {
+ sal_Bool bBool = TRUE;
+ sal_Bool bBoolVal;
+ switch( pCur->nWID )
+ {
+ case WID_PRTSET_LEFT_PAGES : bBoolVal = pPrtOpt->IsPrintLeftPage(); break;
+ case WID_PRTSET_RIGHT_PAGES : bBoolVal = pPrtOpt->IsPrintRightPage(); break;
+ case WID_PRTSET_REVERSED : bBoolVal = pPrtOpt->IsPrintReverse(); break;
+ case WID_PRTSET_PROSPECT : bBoolVal = bBoolVal = pPrtOpt->IsPrintProspect(); break;
+ case WID_PRTSET_GRAPHICS : bBoolVal = pPrtOpt->IsPrintGraphic(); break;
+ case WID_PRTSET_TABLES : bBoolVal = pPrtOpt->IsPrintTable(); break;
+ case WID_PRTSET_DRAWINGS : bBoolVal = pPrtOpt->IsPrintDraw(); break;
+ case WID_PRTSET_CONTROLS : bBoolVal = pPrtOpt->IsPrintControl(); break;
+ case WID_PRTSET_PAGE_BACKGROUND: bBoolVal = pPrtOpt->IsPrintPageBackground(); break;
+ case WID_PRTSET_BLACK_FONTS : bBoolVal = pPrtOpt->IsPrintBlackFont(); break;
+ case WID_PRTSET_ANNOTATION_MODE: bBool = FALSE; aRet <<= (sal_Int16)pPrtOpt->GetPrintPostIts(); break;
+ default: DBG_ERROR("Diese Id gibt's nicht!");
+ }
+ if(bBool)
+ aRet.setValue(&bBoolVal, ::getBooleanCppuType());
+ }
+ else
+ throw beans::UnknownPropertyException();
+ return aRet;
+}
+/*-- 17.12.98 12:54:07---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXPrintSettings::addPropertyChangeListener(const OUString& PropertyName, const Reference< beans::XPropertyChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 17.12.98 12:54:07---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXPrintSettings::removePropertyChangeListener(const OUString& PropertyName, const Reference< beans::XPropertyChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 17.12.98 12:54:07---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXPrintSettings::addVetoableChangeListener(const OUString& PropertyName, const Reference< beans::XVetoableChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 17.12.98 12:54:07---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXPrintSettings::removeVetoableChangeListener(const OUString& PropertyName, const Reference< beans::XVetoableChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/* -----------------------------06.04.00 11:02--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXPrintSettings::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXPrintSettings");
+}
+/* -----------------------------06.04.00 11:02--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXPrintSettings::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.PrintSettings") == rServiceName;
+}
+/* -----------------------------06.04.00 11:02--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXPrintSettings::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.PrintSettings");
+ return aRet;
+}
+
+
+/******************************************************************
+ *
+ ******************************************************************/
+/*-- 18.12.98 11:01:10---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXViewSettings::SwXViewSettings(sal_Bool bWebView, SwView* pVw) :
+ _pMap(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_VIEW_SETTINGS)),
+ pView(pVw),
+ bWeb(bWebView),
+ bObjectValid(sal_True)
+{
+
+}
+/*-- 18.12.98 11:01:10---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXViewSettings::~SwXViewSettings()
+{
+
+}
+/*-- 18.12.98 11:01:11---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< beans::XPropertySetInfo > SwXViewSettings::getPropertySetInfo(void) throw( uno::RuntimeException )
+{
+ static Reference< beans::XPropertySetInfo > aRef = new SfxItemPropertySetInfo(_pMap);
+ return aRef;
+}
+/*-- 18.12.98 11:01:12---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXViewSettings::setPropertyValue(const OUString& rPropertyName,
+ const uno::Any& aValue)
+ throw( beans::UnknownPropertyException, beans::PropertyVetoException,
+ lang::IllegalArgumentException, lang::WrappedTargetException,
+ uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bApply = sal_True;
+ sal_Bool bApplyZoom = sal_False;
+
+ const SwViewOption* pVOpt = 0;
+ if(pView)
+ {
+ if(!IsValid())
+ return;
+ pVOpt = pView->GetWrtShell().GetViewOptions();
+ }
+ else
+ {
+ pVOpt = SW_MOD()->GetViewOption(bWeb);
+ }
+ SwViewOption aVOpt(*pVOpt);
+ const SfxItemPropertyMap* pCur = SfxItemPropertyMap::GetByName(
+ _pMap, rPropertyName);
+ if(pCur)
+ {
+ sal_Bool bVal = WID_VIEWSET_ZOOM != pCur->nWID ?
+ *(sal_Bool*)aValue.getValue() : sal_False;
+ // the API flag should not be set to the application's view settings
+ if(pView)
+ aVOpt.SetStarOneSetting(sal_True);
+ switch( pCur->nWID )
+ {
+ case WID_VIEWSET_HRULER : aVOpt.SetViewTabwin(bVal); break;
+ case WID_VIEWSET_VRULER : aVOpt.SetViewVLin(bVal);break;
+ case WID_VIEWSET_HSCROLL: aVOpt.SetViewHScrollBar(bVal);break;
+ case WID_VIEWSET_VSCROLL: aVOpt.SetViewVScrollBar(bVal);break;
+ case WID_VIEWSET_GRAPHICS : aVOpt.SetGraphic(bVal);break;
+ case WID_VIEWSET_TABLES : aVOpt.SetTable(bVal); break;
+ case WID_VIEWSET_DRAWINGS : aVOpt.SetDraw(bVal); break;
+ case WID_VIEWSET_FIELD_COMMANDS : aVOpt.SetFldName(bVal); break;
+ case WID_VIEWSET_ANNOTATIONS : aVOpt.SetPostIts(bVal); break;
+ case WID_VIEWSET_INDEX_MARK_BACKGROUND : aVOpt.SetTox(bVal); break;
+ case WID_VIEWSET_FOOTNOTE_BACKGROUND : aVOpt.SetFootNote(bVal); break;
+ case WID_VIEWSET_TEXT_FIELD_BACKGROUND : aVOpt.SetField(bVal); break;
+ case WID_VIEWSET_PARA_BREAKS : aVOpt.SetParagraph(bVal); break;
+ case WID_VIEWSET_SOFT_HYPHENS : aVOpt.SetSoftHyph(bVal); break;
+ case WID_VIEWSET_SPACES : aVOpt.SetBlank(bVal); break;
+ case WID_VIEWSET_PROTECTED_SPACES : aVOpt.SetHardBlank(bVal); break;
+ case WID_VIEWSET_TABSTOPS : aVOpt.SetTab(bVal); break;
+ case WID_VIEWSET_BREAKS : aVOpt.SetLineBreak(bVal); break;
+ case WID_VIEWSET_HIDDEN_TEXT : aVOpt.SetHidden(bVal); break;
+ case WID_VIEWSET_HIDDEN_PARAGRAPHS : aVOpt.SetShowHiddenPara(bVal); break;
+ case WID_VIEWSET_TABLE_BOUNDARIES : aVOpt.SetSubsTable(bVal); break;
+ case WID_VIEWSET_TEXT_BOUNDARIES : aVOpt.SetSubsLines(bVal); break;
+ case WID_VIEWSET_SMOOTH_SCROLLING : aVOpt.SetSmoothScroll(bVal); break;
+ case WID_VIEWSET_SOLID_MARK_HANDLES : aVOpt.SetSolidMarkHdl(bVal); break;
+ case WID_VIEWSET_ZOOM :
+ {
+ sal_Int16 nZoom = *(sal_Int16*)aValue.getValue();
+ if(nZoom > 1000 || nZoom < 5)
+ throw lang::IllegalArgumentException();
+ aVOpt.SetZoom((sal_uInt16)nZoom);
+ bApplyZoom = sal_True;
+ }
+ break;
+ case WID_VIEWSET_ZOOM_TYPE:
+ {
+ sal_Int16 nZoom = *(sal_Int16*)aValue.getValue();
+ SvxZoomType eZoom = (SvxZoomType)USHRT_MAX;
+ switch(nZoom)
+ {
+ case /*DocumentZoomType_OPTIMAL */0:
+ eZoom = SVX_ZOOM_OPTIMAL;
+ break;
+ case /*DocumentZoomType_PAGE_WIDTH */ 1:
+ eZoom = SVX_ZOOM_PAGEWIDTH;
+ break;
+ case /*DocumentZoomType_ENTIRE_PAGE */ 2:
+ eZoom = SVX_ZOOM_WHOLEPAGE;
+ break;
+ case /*DocumentZoomType_BY_VALUE */ 3:
+ eZoom = SVX_ZOOM_PERCENT;
+ break;
+ }
+ if(eZoom < USHRT_MAX)
+ {
+ aVOpt.SetZoomType( eZoom );
+ bApplyZoom = sal_True;
+ }
+ }
+ break;
+ case WID_VIEWSET_ONLINE_LAYOUT :
+ {
+ bApply = sal_False;
+ if(pView)
+ pView->GetDocShell()->ToggleBrowserMode(bVal, pView );
+ }
+ break;
+ default:
+ bApply = sal_False;
+ DBG_ERROR("Diese Id gibt's nicht!")
+ }
+ }
+ else
+ throw beans::UnknownPropertyException();
+ if(bApplyZoom && pView)
+ {
+ pView->SetZoom( (SvxZoomType)aVOpt.GetZoomType(), aVOpt.GetZoom(), sal_True );
+ }
+ else if(bApply)
+ SW_MOD()->ApplyUsrPref(aVOpt, pView, pView ? VIEWOPT_DEST_VIEW_ONLY : bWeb ? VIEWOPT_DEST_WEB : VIEWOPT_DEST_TEXT );
+
+}
+/*-- 18.12.98 11:01:12---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXViewSettings::getPropertyValue(const OUString& rPropertyName)
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ uno::Any aRet;
+ const SwViewOption* pVOpt = 0;
+ if(pView)
+ {
+ if(!IsValid())
+ return uno::Any();
+ pVOpt = pView->GetWrtShell().GetViewOptions();
+ }
+ else
+ pVOpt = SW_MOD()->GetViewOption(bWeb);
+ const SfxItemPropertyMap* pCur = SfxItemPropertyMap::GetByName(_pMap, rPropertyName);
+ if(pCur)
+ {
+ sal_Bool bBool = TRUE;
+ sal_Bool bBoolVal;
+ switch( pCur->nWID )
+ {
+ case WID_VIEWSET_HRULER : bBoolVal = pVOpt->IsViewTabwin(); break;
+ case WID_VIEWSET_VRULER : bBoolVal = pVOpt->IsViewVLin();break;
+ case WID_VIEWSET_HSCROLL: bBoolVal = pVOpt->IsViewHScrollBar();break;
+ case WID_VIEWSET_VSCROLL: bBoolVal = pVOpt->IsViewVScrollBar();break;
+ case WID_VIEWSET_GRAPHICS : bBoolVal = pVOpt->IsGraphic();break;
+ case WID_VIEWSET_TABLES : bBoolVal = pVOpt->IsTable(); break;
+ case WID_VIEWSET_DRAWINGS : bBoolVal = pVOpt->IsDraw(); break;
+ case WID_VIEWSET_FIELD_COMMANDS : bBoolVal = pVOpt->IsFldName(); break;
+ case WID_VIEWSET_ANNOTATIONS : bBoolVal = pVOpt->IsPostIts(); break;
+ case WID_VIEWSET_INDEX_MARK_BACKGROUND : bBoolVal = pVOpt->IsTox(); break;
+ case WID_VIEWSET_FOOTNOTE_BACKGROUND : bBoolVal = pVOpt->IsFootNote(); break;
+ case WID_VIEWSET_TEXT_FIELD_BACKGROUND : bBoolVal = pVOpt->IsField(); break;
+ case WID_VIEWSET_PARA_BREAKS : bBoolVal = pVOpt->IsParagraph(sal_True); break;
+ case WID_VIEWSET_SOFT_HYPHENS : bBoolVal = pVOpt->IsSoftHyph(); break;
+ case WID_VIEWSET_SPACES : bBoolVal = pVOpt->IsBlank(sal_True); break;
+ case WID_VIEWSET_PROTECTED_SPACES : bBoolVal = pVOpt->IsHardBlank(); break;
+ case WID_VIEWSET_TABSTOPS : bBoolVal = pVOpt->IsTab(sal_True); break;
+ case WID_VIEWSET_BREAKS : bBoolVal = pVOpt->IsLineBreak(sal_True); break;
+ case WID_VIEWSET_HIDDEN_TEXT : bBoolVal = pVOpt->IsHidden(); break;
+ case WID_VIEWSET_HIDDEN_PARAGRAPHS : bBoolVal = pVOpt->IsShowHiddenPara(); break;
+ case WID_VIEWSET_TABLE_BOUNDARIES : bBoolVal = pVOpt->IsSubsTable(); break;
+ case WID_VIEWSET_TEXT_BOUNDARIES : bBoolVal = pVOpt->IsSubsLines(); break;
+ case WID_VIEWSET_SMOOTH_SCROLLING : bBoolVal = pVOpt->IsSmoothScroll(); break;
+ case WID_VIEWSET_SOLID_MARK_HANDLES : bBoolVal = pVOpt->IsSolidMarkHdl(); break;
+ case WID_VIEWSET_ZOOM :
+ bBool = FALSE;
+ aRet <<= (sal_Int16)pVOpt->GetZoom();
+ break;
+ case WID_VIEWSET_ZOOM_TYPE:
+ {
+ bBool = FALSE;
+ sal_Int16 nRet;
+ switch(pVOpt->GetZoomType())
+ {
+ case SVX_ZOOM_OPTIMAL:
+ nRet = /*DocumentZoomType_OPTIMAL*/ 0;
+ break;
+ case SVX_ZOOM_PAGEWIDTH:
+ nRet = /*DocumentZoomType_PAGE_WIDTH */1;
+ break;
+ case SVX_ZOOM_WHOLEPAGE:
+ nRet = /*DocumentZoomType_ENTIRE_PAGE */ 2;
+ break;
+ case SVX_ZOOM_PERCENT:
+ nRet = /*DocumentZoomType_BY_VALUE */ 3;
+ break;
+ }
+ aRet <<= nRet;
+ }
+ break;
+ case WID_VIEWSET_ONLINE_LAYOUT:
+ if(pView)
+ bBoolVal = pView->GetWrtShell().GetDoc()->IsBrowseMode();
+ break;
+ default: DBG_ERROR("Diese Id gibt's nicht!");
+ }
+ if(bBool)
+ aRet.setValue(&bBoolVal, ::getBooleanCppuType());
+ }
+ else
+ throw beans::UnknownPropertyException();
+
+ return aRet;
+}
+/*-- 18.12.98 11:01:12---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXViewSettings::addPropertyChangeListener(const OUString& PropertyName, const Reference< beans::XPropertyChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 18.12.98 11:01:13---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXViewSettings::removePropertyChangeListener(const OUString& PropertyName, const Reference< beans::XPropertyChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 18.12.98 11:01:13---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXViewSettings::addVetoableChangeListener(const OUString& PropertyName, const Reference< beans::XVetoableChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 18.12.98 11:01:14---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXViewSettings::removeVetoableChangeListener(const OUString& PropertyName, const Reference< beans::XVetoableChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+OUString SwXViewSettings::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXViewSettings");
+}
+BOOL SwXViewSettings::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.ViewSettings") == rServiceName;
+}
+Sequence< OUString > SwXViewSettings::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.ViewSettings");
+ return aRet;
+}
+
+/******************************************************************
+ *
+ ******************************************************************/
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.40 2000/09/18 16:06:15 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.39 2000/05/31 12:02:13 os
+ SAL_CALL
+
+ Revision 1.38 2000/04/11 08:05:00 os
+ UNICODE
+
+ Revision 1.37 2000/04/05 10:03:10 os
+ #67584# scroll bar settings in read-only documents corrected
+
+ Revision 1.36 2000/03/27 10:36:31 os
+ UNO III
+
+ Revision 1.35 2000/03/21 15:39:44 os
+ UNOIII
+
+ Revision 1.34 2000/02/11 14:59:53 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.33 1999/12/16 14:18:17 hjs
+ includes
+
+ Revision 1.32 1999/12/14 16:11:33 os
+ #70234# Set Browser Mode via API
+
+ Revision 1.31 1999/11/22 10:37:38 os
+ missing headers added
+
+ Revision 1.30 1999/11/19 16:38:03 os
+ modules renamed
+
+ Revision 1.29 1999/07/20 07:48:06 OS
+ #67585# ZoomValue/ZoomType :SetZoom changed
+
+
+ Rev 1.28 20 Jul 1999 09:48:06 OS
+ #67585# ZoomValue/ZoomType :SetZoom changed
+
+ Rev 1.27 20 Jul 1999 09:04:56 OS
+ #67585# ZoomType/ZoomValue
+
+ Rev 1.26 13 Jul 1999 08:50:56 OS
+ #67584# Scrollbar settings via StarOne; #67585# Zoom-Property
+
+ Rev 1.25 22 Apr 1999 16:09:04 OS
+ #65194# throw -> throw
+
+ Rev 1.24 22 Apr 1999 15:28:52 OS
+ #65124# not implemented - nur noch DBG_WARNING
+
+ Rev 1.23 30 Mar 1999 15:28:12 OS
+ #63930# Services am ProcessServiceManager anmelden
+
+ Rev 1.22 15 Mar 1999 14:38:24 OS
+ #62845# Makro fuer ServiceInfo jetzt auch fuer OS/2
+
+ Rev 1.21 12 Mar 1999 09:57:04 OS
+ #62845# lang::XServiceInfo impl.
+
+ Rev 1.20 09 Mar 1999 12:38:34 OS
+ #62008# Solar-Mutex
+
+ Rev 1.19 05 Mar 1999 14:27:26 OS
+ #62874# Schreibfehler
+
+ Rev 1.18 04 Mar 1999 15:04:12 OS
+ #62191# UINT nicht mehr verwenden
+
+ Rev 1.17 23 Feb 1999 16:19:56 OS
+ #62281# UsrPrefs per UNO nur auf aktuelle sdbcx::View anwenden
+
+ Rev 1.16 28 Jan 1999 16:27:50 OS
+ #56371# keine Objekte fuer DEBUG anlegen
+
+ Rev 1.15 27 Jan 1999 12:06:06 OS
+ #56371# TF_ONE51
+
+ Rev 1.14 18 Dec 1998 11:40:32 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.13 10 Dec 1998 15:54:04 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.12 23 Nov 1998 17:37:22 JP
+ Bug #59754#: TerminateHdl wird nicht mehr fuers Clipboard benoetigt
+
+ Rev 1.11 04 Nov 1998 10:24:56 OS
+ #58315# im disposing beim frame::XDesktop abmelden
+
+ Rev 1.10 01 Oct 1998 11:40:24 HR
+ Typo beseitigt
+
+ Rev 1.9 24 Sep 1998 13:33:14 OS
+ #52654# #56685# frame::XTerminateListener fuer die Anmeldung an der Application
+
+ Rev 1.8 10 Jul 1998 18:10:04 OS
+ PropertySetInfo und IdlClass static
+
+ Rev 1.7 17 Jun 1998 11:40:12 MH
+ tmp fuer ICC
+
+ Rev 1.6 04 Jun 1998 09:40:30 OS
+// automatisch auskommentiert - [getIdlClass(es) or queryInterface] - Bitte XTypeProvider benutzen!
+// getIdlClasses
+
+
+ Rev 1.5 14 May 1998 17:49:52 OS
+ div. Namensaenderungen
+
+ Rev 1.4 09 Apr 1998 15:10:34 OS
+ Uno-Umstellung
+
+ Rev 1.3 08 Apr 1998 12:51:08 OS
+ text::ViewSettings auch fuer die TextView
+
+ Rev 1.2 16 Mar 1998 12:38:54 OS
+ ; im default
+
+ Rev 1.1 16 Mar 1998 10:31:08 OS
+ sdbcx::View- und PrintSettings vervollstaendigt
+
+ Rev 1.0 15 Mar 1998 15:22:24 OS
+ Initial revision.
+
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
new file mode 100644
index 000000000000..2069a0a58dfc
--- /dev/null
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -0,0 +1,2818 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotxdoc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <cmdid.h>
+#include <swtypes.hxx>
+
+#ifndef _SV_IMAGE_HXX
+#include <vcl/image.hxx>
+#endif
+#ifndef _SV_VIRDEV_HXX
+#include <vcl/virdev.hxx>
+#endif
+#ifndef _TOOLKIT_UNOHLP_HXX
+#include <toolkit/helper/vclunohelper.hxx>
+#endif
+#ifndef _DOC_HXX //autogen
+#include <doc.hxx>
+#endif
+#ifndef _SWWDOCSH_HXX //autogen
+#include <wdocsh.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen
+#include <view.hxx>
+#endif
+#ifndef _VIEWSH_HXX //autogen
+#include <viewsh.hxx>
+#endif
+#ifndef _PVPRTDAT_HXX
+#include <pvprtdat.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _UNOTXDOC_HXX //autogen
+#include <unotxdoc.hxx>
+#endif
+#ifndef _NUMUNO_HXX
+#include <svtools/numuno.hxx>
+#endif
+#ifndef _UNOOBJ_HXX
+#include <unoobj.hxx>
+#endif
+#ifndef _UNOSETT_HXX
+#include <unosett.hxx>
+#endif
+#ifndef _UNOCOLL_HXX
+#include <unocoll.hxx>
+#endif
+#ifndef _UNOSRCH_HXX
+#include <unosrch.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX
+#include <unoprnms.hxx>
+#endif
+#ifndef _UNOSTYLE_HXX
+#include <unostyle.hxx>
+#endif
+#ifndef _UNODRAW_HXX
+#include <unodraw.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _PAGEDESC_HXX //autogen
+#include <pagedesc.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX //autogen
+#include <unoprnms.hxx>
+#endif
+#ifndef _UNOOBJ_HXX //autogen
+#include <unoobj.hxx>
+#endif
+#ifndef _TXTCMP_HXX //autogen
+#include <svtools/txtcmp.hxx>
+#endif
+#ifndef _UNOCRSR_HXX //autogen
+#include <unocrsr.hxx>
+#endif
+#ifndef _UNOFIELD_HXX
+#include <unofield.hxx>
+#endif
+#ifndef _UNOIDX_HXX
+#include <unoidx.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _COM_SUN_STAR_LANG_SERVICENOTREGISTEREDEXCEPTION_HPP_
+#include <com/sun/star/lang/ServiceNotRegisteredException.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATSSUPPLIER_HPP_
+#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PropertyAttribute_HPP_
+#include <com/sun/star/beans/PropertyAttribute.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_
+#include <com/sun/star/view/XSelectionSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_LOCALE_HPP_
+#include <com/sun/star/lang/Locale.hpp>
+#endif
+
+#ifndef _SVX_UNOMID_HXX
+#include <svx/unomid.hxx>
+#endif
+#ifndef _VOS_MUTEX_HXX_ //autogen
+#include <vos/mutex.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _DOCSTAT_HXX //autogen wg. SwDocStat
+#include <docstat.hxx>
+#endif
+#ifndef _MODOPT_HXX //
+#include <modcfg.hxx>
+ #endif
+#ifndef _NDTXT_HXX
+#include <ndtxt.hxx>
+#endif
+#include <utlui.hrc>
+#include "swcont.hxx"
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::beans;
+using namespace ::com::sun::star::lang;
+using namespace ::rtl;
+
+/******************************************************************************
+ *
+ ******************************************************************************/
+SwTxtFmtColl *lcl_GetParaStyle(const String& rCollName, SwDoc* pDoc)
+{
+ SwTxtFmtColl* pColl = pDoc->FindTxtFmtCollByName( rCollName );
+ if( !pColl )
+ {
+ sal_uInt16 nId = pDoc->GetPoolId( rCollName, GET_POOLID_TXTCOLL );
+ if( USHRT_MAX != nId )
+ pColl = pDoc->GetTxtCollFromPool( nId );
+ }
+ return pColl;
+}
+/* -----------------------------10.03.00 18:02--------------------------------
+
+ ---------------------------------------------------------------------------*/
+const Sequence< sal_Int8 > & SwXTextDocument::getUnoTunnelId()
+{
+ static Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId();
+ return aSeq;
+}
+/* -----------------------------10.03.00 18:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Int64 SAL_CALL SwXTextDocument::getSomething( const Sequence< sal_Int8 >& rId )
+ throw(RuntimeException)
+{
+ if( rId.getLength() == 16
+ && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(),
+ rId.getConstArray(), 16 ) )
+ {
+ return (sal_Int64)this;
+ }
+ return 0;
+}
+/* -----------------------------16.03.00 14:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Any SAL_CALL SwXTextDocument::queryInterface( const uno::Type& rType ) throw(RuntimeException)
+{
+ Any aRet = SwXTextDocumentBaseClass::queryInterface(rType);
+ if(aRet.getValueType() == getVoidCppuType())
+ aRet = SfxBaseModel::queryInterface(rType);
+ if(aRet.getValueType() == getVoidCppuType() &&
+ rType == ::getCppuType((Reference<lang::XMultiServiceFactory>*)0))
+ {
+ Reference<lang::XMultiServiceFactory> xTmp = this;
+ aRet <<= xTmp;
+ }
+ if(aRet.getValueType() == getVoidCppuType())
+ {
+ if(!xNumFmtAgg.is())
+ GetNumberFormatter();
+ if(xNumFmtAgg.is())
+ aRet = xNumFmtAgg->queryAggregation(rType);
+ }
+ return aRet;
+}
+/* -----------------------------16.03.00 14:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SAL_CALL SwXTextDocument::acquire()throw()
+{
+ SfxBaseModel::acquire();
+}
+/* -----------------------------16.03.00 14:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SAL_CALL SwXTextDocument::release()throw()
+{
+ SfxBaseModel::release();
+}
+/* -----------------------------16.03.00 14:12--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< uno::Type > SAL_CALL SwXTextDocument::getTypes() throw(RuntimeException)
+{
+ Sequence< uno::Type > aBaseTypes = SfxBaseModel::getTypes();
+ Sequence< uno::Type > aTextTypes = SwXTextDocumentBaseClass::getTypes();
+
+ Sequence< uno::Type > aNumTypes;
+ if(!xNumFmtAgg.is())
+ GetNumberFormatter();
+ if(xNumFmtAgg.is())
+ {
+ const uno::Type& rProvType = ::getCppuType((Reference<XTypeProvider>*) 0);
+ Any aNumProv = xNumFmtAgg->queryAggregation(rProvType);
+ if(aNumProv.getValueType() == rProvType)
+ {
+ Reference<XTypeProvider> xNumProv =
+ *(Reference<XTypeProvider>*)aNumProv.getValue();
+ aNumTypes = xNumProv->getTypes();
+ }
+ }
+ long nIndex = aBaseTypes.getLength();
+ // don't forget the ::com::sun::star::lang::XMultiServiceFactory
+ aBaseTypes.realloc(aBaseTypes.getLength() + aTextTypes.getLength() + aNumTypes.getLength() + 1);
+ uno::Type* pBaseTypes = aBaseTypes.getArray();
+ const uno::Type* pTextTypes = aTextTypes.getConstArray();
+ long nPos;
+ for(nPos = 0; nPos < aTextTypes.getLength(); nPos++)
+ {
+ pBaseTypes[nIndex++] = pTextTypes[nPos];
+ }
+ const uno::Type* pNumTypes = aNumTypes.getConstArray();
+ for(nPos = 0; nPos < aNumTypes.getLength(); nPos++)
+ {
+ pBaseTypes[nIndex++] = pNumTypes[nPos];
+ }
+ pBaseTypes[nIndex++] = ::getCppuType((Reference<lang::XMultiServiceFactory>*)0);
+ return aBaseTypes;
+}
+/*-- 18.12.98 11:52:59---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXTextDocument::SwXTextDocument(SwDocShell* pShell) :
+ SfxBaseModel(pShell),
+ aPropSet(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_TEXT_DOCUMENT)),
+ pDocShell(pShell),
+ bObjectValid(pShell != 0),
+ pxXTextTables(0),
+ pxXTextFrames(0),
+ pxXGraphicObjects(0),
+ pxXEmbeddedObjects(0),
+ pxXTextSections(0),
+ pxXBookmarks(0),
+ pxXTextFieldTypes(0),
+ pxXTextFieldMasters(0),
+ pxXFootnotes(0),
+ pxXEndnotes(0),
+ pxXFootnoteSettings(0),
+ pxXEndnoteSettings(0),
+ pxXDocumentIndexes(0),
+ pxXStyleFamilies(0),
+ pxXChapterNumbering(0),
+ pxXLineNumberingProperties(0),
+ pDrawPage(0),
+ pxXDrawPage(0),
+ pxXReferenceMarks(0),
+ pxLinkTargetSupplier(0)
+// pxXRedlines(0)
+{
+}
+/*-- 18.12.98 11:53:00---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXTextDocument::~SwXTextDocument()
+{
+ InitNewDoc();
+ if(xNumFmtAgg.is())
+ {
+ Reference< XInterface > x0;
+ xNumFmtAgg->setDelegator(x0);
+ xNumFmtAgg = 0;
+ }
+ if(pxLinkTargetSupplier)
+ {
+ container::XNameAccess* pAccess = (*pxLinkTargetSupplier).get();
+ ((SwXLinkTargetSupplier*)pAccess)->Invalidate();
+ delete pAccess;
+ }
+}
+/*-- 18.12.98 11:55:08---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+/* -----------------18.12.98 12:49-------------------
+ *
+ * --------------------------------------------------*/
+void SwXTextDocument::GetNumberFormatter()
+{
+ if(IsValid())
+ {
+ if(!xNumFmtAgg.is())
+ {
+ {
+ SvNumberFormatsSupplierObj* pNumFmt = new SvNumberFormatsSupplierObj(
+ pDocShell->GetDoc()->GetNumberFormatter( sal_True ));
+ Reference< util::XNumberFormatsSupplier > xTmp = pNumFmt;
+ xNumFmtAgg = Reference< XAggregation >(xTmp, UNO_QUERY);
+ }
+ if(xNumFmtAgg.is())
+ xNumFmtAgg->setDelegator((cppu::OWeakObject*)(SwXTextDocumentBaseClass*)this);
+ }
+ else
+ {
+ const uno::Type& rTunnelType = ::getCppuType((Reference< XUnoTunnel > *)0);
+ Any aNumTunnel = xNumFmtAgg->queryAggregation(rTunnelType);
+ SvNumberFormatsSupplierObj* pNumFmt = 0;
+ if(aNumTunnel.getValueType() == rTunnelType)
+ {
+ Reference< XUnoTunnel > xNumTunnel = *(Reference< XUnoTunnel >*)
+ aNumTunnel.getValue();
+ pNumFmt = (SvNumberFormatsSupplierObj*)
+ xNumTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId());
+
+ }
+ DBG_ASSERT(pNumFmt, "No number formatter available");
+ if(!pNumFmt->GetNumberFormatter())
+ pNumFmt->SetNumberFormatter(pDocShell->GetDoc()->GetNumberFormatter( sal_True ));
+ }
+ }
+}
+/*-- 18.12.98 11:55:11---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XText > SwXTextDocument::getText(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!xBodyText.is())
+ {
+ pBodyText = new SwXBodyText(pDocShell->GetDoc());
+ xBodyText = pBodyText;
+ }
+ return xBodyText;
+}
+/*-- 18.12.98 11:55:11---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::reformat(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+}
+/*-- 18.12.98 11:55:16---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::lockControllers(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(IsValid())
+ {
+ UnoActionContext* pContext = new UnoActionContext(pDocShell->GetDoc());
+ aActionArr.Insert(pContext, 0);
+ }
+ else
+ throw RuntimeException();
+}
+/*-- 18.12.98 11:55:16---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::unlockControllers(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(aActionArr.Count())
+ {
+ UnoActionContext* pContext = aActionArr.GetObject(0);
+ aActionArr.Remove(0);
+ delete pContext;
+ }
+ else
+ throw RuntimeException();
+}
+/*-- 18.12.98 11:55:17---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextDocument::hasControllersLocked(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ return aActionArr.Count() > 0;
+}
+/*-- 18.12.98 13:12:23---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< frame::XController > SwXTextDocument::getCurrentController(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ return SfxBaseModel::getCurrentController();
+}
+/*-- 18.12.98 13:12:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::setCurrentController(const Reference< frame::XController > & xController)
+ throw( container::NoSuchElementException, RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SfxBaseModel::setCurrentController(xController);
+}
+/* -----------------27.01.99 11:48-------------------
+ *
+ * --------------------------------------------------*/
+Reference< XInterface > SwXTextDocument::getCurrentSelection() throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< XInterface > xRef;
+ if(IsValid())
+ {
+
+ const TypeId aTypeId = TYPE(SwView);
+ SwView* pView = (SwView*)SfxViewShell::GetFirst(&aTypeId);
+ while(pView && pView->GetObjectShell() != pDocShell)
+ {
+ pView = (SwView*)SfxViewShell::GetNext(*pView, &aTypeId);
+ }
+ if(pView)
+ {
+ Any aRef = pView->GetUNOObject()->getSelection();
+ xRef = *(Reference< XInterface > *)aRef.getValue();
+ }
+ }
+ return xRef;
+}
+
+/*-- 18.12.98 13:12:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextDocument::attachResource(const OUString& aURL, const Sequence< beans::PropertyValue >& aArgs)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ return SfxBaseModel::attachResource(aURL, aArgs);
+}
+/*-- 18.12.98 13:12:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+OUString SwXTextDocument::getURL(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ return SfxBaseModel::getURL();
+}
+/*-- 18.12.98 13:12:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< beans::PropertyValue > SwXTextDocument::getArgs(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ return SfxBaseModel::getArgs();
+}
+/*-- 18.12.98 13:12:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::connectController(const Reference< frame::XController > & xController) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SfxBaseModel::connectController(xController);
+}
+/*-- 18.12.98 13:12:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::disconnectController(const Reference< frame::XController > & xController) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SfxBaseModel::disconnectController(xController);
+}
+/*-- 18.12.98 13:12:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::dispose(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SfxBaseModel::dispose();
+}
+/*-- 18.12.98 13:12:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::addEventListener(const Reference< XEventListener > & aListener) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SfxBaseModel::addEventListener(aListener);
+}
+/*-- 18.12.98 13:12:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::removeEventListener(const Reference< XEventListener > & aListener) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SfxBaseModel::removeEventListener(aListener);
+}
+
+/*-- 18.12.98 11:55:19---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< PropertyValues > SwXTextDocument::getLineNumberingRules(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+ return Sequence< PropertyValues >();
+ /* eigenartiges interface, muesste ein PropertySet returnen und get...Settings heissen
+ if(IsValid())
+ {
+ if(!pxXLineNumberingProperties)
+ {
+ ((SwXTextDocument*)this)->pxXLineNumberingProperties =
+ new Reference< XLineNumberingProperties > ;
+ (*pxXLineNumberingProperties) = new SwXLineNumberingProperties(pDocShell->GetDoc());
+ }
+ }
+ else
+ throw RuntimeException();
+ return *pxXLineNumberingProperties;*/
+
+}
+/*-- 18.12.98 11:55:20---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::setLineNumberingRules(
+ const Sequence< PropertyValues >& aRules)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+/*-- 18.12.98 11:55:20---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XIndexReplace > SwXTextDocument::getChapterNumberingRules(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXChapterNumbering)
+ {
+ pxXChapterNumbering = new Reference< container::XIndexReplace > ;
+ *pxXChapterNumbering = new SwXChapterNumbering(*pDocShell);
+ }
+ return *pxXChapterNumbering;
+}
+/*-- 18.12.98 11:55:21---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XIndexAccess > SwXTextDocument::getFootnotes(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXFootnotes)
+ {
+ ((SwXTextDocument*)this)->pxXFootnotes = new Reference< container::XIndexAccess > ;
+ *pxXFootnotes = new SwXFootnotes(sal_False, pDocShell->GetDoc());
+ }
+ return *pxXFootnotes;
+}
+/*-- 18.12.98 11:55:21---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XPropertySet > SAL_CALL
+ SwXTextDocument::getFootnoteSettings(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXFootnoteSettings)
+ {
+ ((SwXTextDocument*)this)->pxXFootnoteSettings = new Reference< XPropertySet > ;
+ *pxXFootnoteSettings = new SwXFootnoteProperties(pDocShell->GetDoc());
+ }
+ return *pxXFootnoteSettings;
+}
+/*-- 18.12.98 11:55:21---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XIndexAccess > SwXTextDocument::getEndnotes(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXEndnotes)
+ {
+ ((SwXTextDocument*)this)->pxXEndnotes = new Reference< container::XIndexAccess > ;
+ *pxXEndnotes = new SwXFootnotes(sal_True, pDocShell->GetDoc());
+ }
+ return *pxXEndnotes;
+}
+/*-- 18.12.98 11:55:22---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XPropertySet > SwXTextDocument::getEndnoteSettings(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXEndnoteSettings)
+ {
+ ((SwXTextDocument*)this)->pxXEndnoteSettings = new Reference< XPropertySet > ;
+ *pxXEndnoteSettings = new SwXEndnoteProperties(pDocShell->GetDoc());
+ }
+ return *pxXEndnoteSettings;
+}
+/*-- 18.12.98 11:55:22---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< util::XReplaceDescriptor > SwXTextDocument::createReplaceDescriptor(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< util::XReplaceDescriptor > xRet = new SwXTextSearch;
+ return xRet;
+}
+/* -----------------26.02.99 15:52-------------------
+ *
+ * --------------------------------------------------*/
+SwUnoCrsr* SwXTextDocument::CreateCursorForSearch(Reference< text::XTextCursor > & xCrsr)
+{
+ getText();
+ text::XText* pText = xBodyText.get();
+ SwXBodyText* pBText = (SwXBodyText*)pText;
+ xCrsr = pBText->CreateTextCursor(sal_True);
+
+ Reference<XUnoTunnel> xRangeTunnel( xCrsr, UNO_QUERY);
+ SwXTextCursor* pxUnoCrsr = 0;
+ if(xRangeTunnel.is())
+ {
+ pxUnoCrsr = (SwXTextCursor*)xRangeTunnel->getSomething(
+ SwXTextCursor::getUnoTunnelId());
+ }
+
+ sal_uInt32 nResult = 0;
+ SwUnoCrsr* pUnoCrsr = pxUnoCrsr->GetCrsr();
+ pUnoCrsr->SetRemainInSection(sal_False);
+ return pUnoCrsr;
+}
+
+/*-- 18.12.98 11:55:22---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Int32 SwXTextDocument::replaceAll(const Reference< util::XSearchDescriptor > & xDesc)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< XUnoTunnel > xDescTunnel(xDesc, UNO_QUERY);
+ if(!IsValid() || !xDescTunnel.is() || !xDescTunnel->getSomething(SwXTextSearch::getUnoTunnelId()))
+ throw RuntimeException();
+
+ Reference< text::XTextCursor > xCrsr;
+ SwUnoCrsr* pUnoCrsr = CreateCursorForSearch(xCrsr);
+
+ const SwXTextSearch* pSearch = (const SwXTextSearch*)
+ xDescTunnel->getSomething(SwXTextSearch::getUnoTunnelId());
+
+ SearchParam aSrchParam(pSearch->sSearchText);
+ aSrchParam.SetReplaceStr(pSearch->sReplaceText);
+ sal_Bool bBackward = sal_False;
+ int eRanges(FND_IN_BODY|FND_IN_SELALL);
+//bInSel: 1; // wie geht das?
+ //TODO: pSearch->bStyles!
+ aSrchParam.SetCaseSensitive(pSearch->bCase);
+
+// inSelection??
+// aSrchParam.SetSrchInSelection(TypeConversion::toBOOL(aVal));
+ aSrchParam.SetSrchWordOnly(pSearch->bWord);
+ aSrchParam.SetSrchRelaxed(pSearch->bLevRelax);
+ aSrchParam.SetLEVOther(pSearch->nLevExchange);
+ aSrchParam.SetLEVShorter(pSearch->nLevRemove);
+ aSrchParam.SetLEVLonger(pSearch->nLevAdd);
+ if(pSearch->bExpr)
+ aSrchParam.SetSrchType(SearchParam::SRCH_REGEXP);
+ // similarity setzt sich gegen RegExp durch!
+ if(pSearch->bSimilarity)
+ aSrchParam.SetSrchType(SearchParam::SRCH_LEVDIST);
+ SwDocPositions eStart = pSearch->bBack ? DOCPOS_END : DOCPOS_START;
+ SwDocPositions eEnd = pSearch->bBack ? DOCPOS_START : DOCPOS_END;
+
+ // Suche soll ueberall stattfinden
+ pUnoCrsr->SetRemainInSection(sal_False);
+ sal_uInt32 nResult;
+ //try attribute search first
+ if(pSearch->HasSearchAttributes()||pSearch->HasReplaceAttributes())
+ {
+ SfxItemSet aSearch(pDocShell->GetDoc()->GetAttrPool(),
+ RES_CHRATR_BEGIN, RES_CHRATR_END-1,
+ RES_PARATR_BEGIN, RES_PARATR_END-1,
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ 0);
+ SfxItemSet aReplace(pDocShell->GetDoc()->GetAttrPool(),
+ RES_CHRATR_BEGIN, RES_CHRATR_END-1,
+ RES_PARATR_BEGIN, RES_PARATR_END-1,
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ 0);
+ pSearch->FillSearchItemSet(aSearch);
+ pSearch->FillReplaceItemSet(aReplace);
+ nResult = (sal_Int32)pUnoCrsr->Find( aSearch, !pSearch->bStyles,
+ eStart, eEnd,
+ (FindRanges)eRanges,
+ pSearch->sSearchText.Len() ? &aSrchParam : 0,
+ &aReplace );
+ }
+ else if(pSearch->bStyles)
+ {
+ SwTxtFmtColl *pSearchColl = lcl_GetParaStyle(pSearch->sSearchText, pUnoCrsr->GetDoc());
+ SwTxtFmtColl *pReplaceColl = lcl_GetParaStyle(pSearch->sReplaceText, pUnoCrsr->GetDoc());;
+
+ nResult = pUnoCrsr->Find( *pSearchColl,
+ eStart, eEnd,
+ (FindRanges)eRanges, pReplaceColl );
+
+ }
+ else
+ {
+ nResult = pUnoCrsr->Find( aSrchParam,
+ eStart, eEnd,
+ (FindRanges)eRanges,
+//int bReplace =
+ sal_True );
+ }
+ return (sal_Int32)nResult;
+
+}
+/*-- 18.12.98 11:55:22---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< util::XSearchDescriptor > SwXTextDocument::createSearchDescriptor(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< util::XSearchDescriptor > xRet = new SwXTextSearch;
+ return xRet;
+
+}
+/* -----------------26.02.99 16:08-------------------
+ * wird fuer findAll/First/Next verwendet
+ * --------------------------------------------------*/
+SwUnoCrsr* SwXTextDocument::FindAny(const Reference< util::XSearchDescriptor > & xDesc,
+ Reference< text::XTextCursor > & xCrsr, sal_Bool bAll,
+ sal_Int32& nResult,
+ Reference< XInterface > xLastResult)
+{
+ Reference< XUnoTunnel > xDescTunnel(xDesc, UNO_QUERY);
+ if(!IsValid() || !xDescTunnel.is() || !xDescTunnel->getSomething(SwXTextSearch::getUnoTunnelId()))
+ return 0;
+
+ SwUnoCrsr* pUnoCrsr = CreateCursorForSearch(xCrsr);
+ const SwXTextSearch* pSearch = (const SwXTextSearch*)
+ xDescTunnel->getSomething(SwXTextSearch::getUnoTunnelId());
+
+ sal_Bool bParentInExtra = sal_False;
+ if(xLastResult.is())
+ {
+ Reference<XUnoTunnel> xCursorTunnel( xLastResult, UNO_QUERY);
+ SwXTextCursor* pPosCrsr = 0;
+ if(xCursorTunnel.is())
+ {
+ pPosCrsr = (SwXTextCursor*)xCursorTunnel->getSomething(
+ SwXTextCursor::getUnoTunnelId());
+ }
+ SwUnoCrsr* pCrsr = pPosCrsr ? pPosCrsr->GetCrsr() : 0;
+ if(pCrsr)
+ {
+ *pUnoCrsr->GetPoint() = *pCrsr->End();
+ pUnoCrsr->DeleteMark();
+ }
+ else
+ {
+ SwXTextRange* pRange = 0;
+ if(xCursorTunnel.is())
+ {
+ pRange = (SwXTextRange*)xCursorTunnel->getSomething(
+ SwXTextRange::getUnoTunnelId());
+ }
+ if(!pRange)
+ return 0;
+ pRange->GetPositions(*pUnoCrsr);
+ if(pUnoCrsr->HasMark())
+ {
+ if(*pUnoCrsr->GetPoint() < *pUnoCrsr->GetMark())
+ pUnoCrsr->Exchange();
+ pUnoCrsr->DeleteMark();
+ }
+ }
+ const SwNode* pRangeNode = pUnoCrsr->GetNode();
+ const SwStartNode* pTmp = pRangeNode->FindStartNode();
+
+ while(pTmp->IsSectionNode())
+ {
+ pTmp = pTmp->FindStartNode();
+ }
+ bParentInExtra = SwNormalStartNode != pTmp->GetStartNodeType();
+ }
+
+ SearchParam aSrchParam(pSearch->sSearchText);
+ sal_Bool bBackward = sal_False;
+/*
+ * folgende Kombinationen sind erlaubt:
+ * - suche einen im Body: -> FND_IN_BODY
+ * - suche alle im Body: -> FND_IN_BODYONLY | FND_IN_SELALL
+ * - suche in Selectionen: einen / alle -> FND_IN_SEL [ | FND_IN_SELALL ]
+ * - suche im nicht Body: einen / alle -> FND_IN_OTHER [ | FND_IN_SELALL ]
+ * - suche ueberall alle: -> FND_IN_SELALL
+ */
+ int eRanges(FND_IN_BODY);
+ if(bParentInExtra)
+ eRanges = FND_IN_OTHER;
+//bInSel: 1; // wie geht das?
+ aSrchParam.SetCaseSensitive(pSearch->bCase);
+
+ if(bAll) //immer - ueberall?
+ eRanges = FND_IN_SELALL;
+// inSelection??
+// aSrchParam.SetSrchInSelection(TypeConversion::toBOOL(aVal));
+ aSrchParam.SetSrchWordOnly(pSearch->bWord);
+ aSrchParam.SetSrchRelaxed(pSearch->bLevRelax);
+ aSrchParam.SetLEVOther(pSearch->nLevExchange);
+ aSrchParam.SetLEVShorter(pSearch->nLevRemove);
+ aSrchParam.SetLEVLonger(pSearch->nLevAdd);
+ if(pSearch->bExpr)
+ aSrchParam.SetSrchType(SearchParam::SRCH_REGEXP);
+ // similarity setzt sich gegen RegExp durch!
+ if(pSearch->bSimilarity)
+ aSrchParam.SetSrchType(SearchParam::SRCH_LEVDIST);
+ SwDocPositions eStart = !bAll ? DOCPOS_CURR : pSearch->bBack ? DOCPOS_END : DOCPOS_START;
+ SwDocPositions eEnd = pSearch->bBack ? DOCPOS_START : DOCPOS_END;
+
+ nResult = 0;
+ sal_uInt16 nSearchProc = 0;
+ while(nSearchProc < 2)
+ {
+ //try attribute search first
+ if(pSearch->HasSearchAttributes())
+ {
+ SfxItemSet aSearch(pDocShell->GetDoc()->GetAttrPool(),
+ RES_CHRATR_BEGIN, RES_CHRATR_END-1,
+ RES_PARATR_BEGIN, RES_PARATR_END-1,
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ RES_TXTATR_INETFMT, RES_TXTATR_INETFMT,
+ 0);
+ pSearch->FillSearchItemSet(aSearch);
+ nResult = (sal_Int32)pUnoCrsr->Find( aSearch, !pSearch->bStyles,
+ eStart, eEnd,
+ (FindRanges)eRanges,
+ pSearch->sSearchText.Len() ? &aSrchParam : 0,
+ 0 );
+ }
+ else if(pSearch->bStyles)
+ {
+ SwTxtFmtColl *pSearchColl = lcl_GetParaStyle(pSearch->sSearchText, pUnoCrsr->GetDoc());
+ //pSearch->sReplaceText
+ SwTxtFmtColl *pReplaceColl = 0;
+
+ nResult = (sal_Int32)pUnoCrsr->Find( *pSearchColl,
+ eStart, eEnd,
+ (FindRanges)eRanges, pReplaceColl );
+ }
+ else
+ {
+ nResult = (sal_Int32)pUnoCrsr->Find( aSrchParam,
+ eStart, eEnd,
+ (FindRanges)eRanges,
+ /*int bReplace =*/sal_False );
+ }
+ nSearchProc++;
+ if(nResult || (eRanges&(FND_IN_SELALL|FND_IN_OTHER)))
+ break;
+ //second step - find in other
+ eRanges = FND_IN_OTHER;
+ }
+ return pUnoCrsr;
+}
+/*-- 18.12.98 11:55:23---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XIndexAccess >
+ SwXTextDocument::findAll(const Reference< util::XSearchDescriptor > & xDesc)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< XInterface > xTmp;
+ sal_Int32 nResult = 0;
+ Reference< text::XTextCursor > xCrsr;
+ SwUnoCrsr* pResultCrsr = FindAny(xDesc, xCrsr, sal_True, nResult, xTmp);
+ if(!pResultCrsr)
+ throw RuntimeException();
+ Reference< container::XIndexAccess > xRet;
+ if(nResult)
+ xRet = new SwXTextRanges(pResultCrsr);
+ else
+ xRet = new SwXTextRanges();
+ return xRet;
+}
+/*-- 18.12.98 11:55:23---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XInterface > SwXTextDocument::findFirst(const Reference< util::XSearchDescriptor > & xDesc)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< XInterface > xTmp;
+ sal_Int32 nResult = 0;
+ Reference< text::XTextCursor > xCrsr;
+ SwUnoCrsr* pResultCrsr = FindAny(xDesc, xCrsr, sal_False, nResult, xTmp);
+ if(!pResultCrsr)
+ throw RuntimeException();
+ Reference< XInterface > xRet;
+ if(nResult)
+ {
+ Reference< text::XTextRange > xTempRange = CreateTextRangeFromPosition(
+ pDocShell->GetDoc(),
+ *pResultCrsr->GetPoint(),
+ pResultCrsr->GetMark());
+ xRet = *new SwXTextCursor(xTempRange->getText(), pResultCrsr);
+ }
+ return xRet;
+}
+/*-- 18.12.98 11:55:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XInterface > SwXTextDocument::findNext(const Reference< XInterface > & xStartAt,
+ const Reference< util::XSearchDescriptor > & xDesc)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< XInterface > xTmp;
+ sal_Int32 nResult = 0;
+ Reference< text::XTextCursor > xCrsr;
+ if(!xStartAt.is())
+ throw RuntimeException();
+ SwUnoCrsr* pResultCrsr = FindAny(xDesc, xCrsr, sal_False, nResult, xStartAt);
+ if(!pResultCrsr)
+ throw RuntimeException();
+ Reference< XInterface > xRet;
+ if(nResult)
+ {
+ Reference< text::XTextRange > xTempRange = CreateTextRangeFromPosition(
+ pDocShell->GetDoc(),
+ *pResultCrsr->GetPoint(),
+ pResultCrsr->GetMark());
+
+ xRet = *new SwXTextCursor(xTempRange->getText(), pResultCrsr);
+ }
+ return xRet;
+}
+/*-- 18.12.98 11:55:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< beans::PropertyValue > SwXTextDocument::getPagePrintSettings(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Sequence< beans::PropertyValue > aSeq(9);
+ if(IsValid())
+ {
+ beans::PropertyValue* pArray = aSeq.getArray();
+ SwPagePreViewPrtData aData;
+ const SwPagePreViewPrtData* pData = pDocShell->GetDoc()->GetPreViewPrtData();
+ if(pData)
+ aData = *pData;
+ Any aVal;
+ aVal <<= (sal_Int16)aData.GetRow();
+ pArray[0] = beans::PropertyValue(C2U("PageRows"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int16)aData.GetCol();
+ pArray[1] = beans::PropertyValue(C2U("PageColumns"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int32)TWIP_TO_MM100(aData.GetLeftSpace());
+ pArray[2] = beans::PropertyValue(C2U("LeftMargin"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int32)TWIP_TO_MM100(aData.GetRightSpace());
+ pArray[3] = beans::PropertyValue(C2U("RightMargin"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int32)TWIP_TO_MM100(aData.GetTopSpace());
+ pArray[4] = beans::PropertyValue(C2U("TopMargin"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int32)TWIP_TO_MM100(aData.GetBottomSpace());
+ pArray[5] = beans::PropertyValue(C2U("BottomMargin"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int32)TWIP_TO_MM100(aData.GetHorzSpace());
+ pArray[6] = beans::PropertyValue(C2U("HoriMargin"), -1, aVal, PropertyState_DIRECT_VALUE);
+ aVal <<= (sal_Int32)TWIP_TO_MM100(aData.GetVertSpace());
+ pArray[7] = beans::PropertyValue(C2U("VertMargin"), -1, aVal, PropertyState_DIRECT_VALUE);
+ BOOL bTemp = aData.GetLandscape();
+ aVal.setValue(&bTemp, ::getCppuBooleanType());
+ pArray[8] = beans::PropertyValue(C2U("IsLandscape"), -1, aVal, PropertyState_DIRECT_VALUE);
+ }
+ else
+ throw RuntimeException();
+ return aSeq;
+}
+/* -----------------24.02.99 10:57-------------------
+ *
+ * --------------------------------------------------*/
+sal_uInt32 lcl_Any_To_ULONG(const Any& rValue, sal_Bool& bException)
+{
+ bException = sal_False;
+ TypeClass eType = rValue.getValueType().getTypeClass();
+
+ sal_uInt32 nRet = 0;
+ if( eType == TypeClass_LONG )
+ {
+ sal_Int32 nVal;
+ rValue >>= nVal;
+ if(nVal >=0 )
+ nRet = (sal_uInt32)nVal;
+ }
+ else if( eType == TypeClass_UNSIGNED_SHORT )
+ {
+ sal_uInt16 nVal;
+ rValue >>= nVal;
+ nRet = nVal;
+ }
+ else if( eType == TypeClass_SHORT )
+ {
+ sal_Int16 nVal;
+ rValue >>= nVal;
+ if(nVal >=0)
+ nRet = (sal_uInt32)nVal;
+ }
+ else if( eType == TypeClass_BYTE )
+ {
+ BYTE nVal;
+ rValue >>= nVal;
+ nRet = nVal;
+ }
+ else if( eType == TypeClass_UNSIGNED_LONG )
+ rValue >>= nRet;
+ else
+ bException = sal_True;
+
+ return nRet;
+}
+/*-- 18.12.98 11:55:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::setPagePrintSettings(const Sequence< beans::PropertyValue >& aSettings)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(IsValid())
+ {
+ SwPagePreViewPrtData aData;
+ //falls nur einige Properties kommen, dann die akt. Einstellungen benutzen
+ const SwPagePreViewPrtData* pData = pDocShell->GetDoc()->GetPreViewPrtData();
+ if(pData)
+ aData = *pData;
+ const beans::PropertyValue* pProperties = aSettings.getConstArray();
+ int nCount = aSettings.getLength();
+ for(int i = 0; i < nCount; i++)
+ {
+ String sName = pProperties[i].Name;
+ const Any& rVal = pProperties[i].Value;
+ sal_Bool bException;
+ sal_uInt32 nVal = lcl_Any_To_ULONG(rVal, bException);
+ if( COMPARE_EQUAL == sName.CompareToAscii("PageRows" ) )
+ {
+ if(!nVal)
+ throw RuntimeException();
+ aData.SetRow(nVal);
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("PageColumns"))
+ {
+ if(!nVal)
+ throw RuntimeException();
+ aData.SetCol(nVal);
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("LeftMargin"))
+ {
+ aData.SetLeftSpace(MM100_TO_TWIP(nVal));
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("RightMargin"))
+ {
+ aData.SetRightSpace(MM100_TO_TWIP(nVal));
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("TopMargin"))
+ {
+ aData.SetTopSpace(MM100_TO_TWIP(nVal));
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("BottomMargin"))
+ {
+ aData.SetBottomSpace(MM100_TO_TWIP(nVal));
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("HoriMargin"))
+ {
+ aData.SetHorzSpace(MM100_TO_TWIP(nVal));
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("VertMargin"))
+ {
+ aData.SetVertSpace(MM100_TO_TWIP(nVal));
+ }
+ else if(COMPARE_EQUAL == sName.CompareToAscii("IsLandscape"))
+ {
+ bException = (::getBooleanCppuType() != rVal.getValueType());
+ aData.SetLandscape(*(sal_Bool*)rVal.getValue());
+ }
+ else
+ bException = sal_True;
+ if(bException)
+ throw RuntimeException();
+ }
+ pDocShell->GetDoc()->SetPreViewPrtData(&aData);
+ }
+ else
+ throw RuntimeException();
+}
+/*-- 18.12.98 11:55:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::printPages(const Sequence< beans::PropertyValue >& xOptions)
+ throw( IllegalArgumentException, RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(IsValid())
+ {
+ SfxViewFrame* pFrame = SFX_APP()->CreateViewFrame( *pDocShell, 7, sal_True );
+ SfxRequest aReq(FN_PRINT_PAGEPREVIEW, SFX_CALLMODE_SYNCHRON,
+ pDocShell->GetDoc()->GetAttrPool());
+ aReq.AppendItem(SfxBoolItem(FN_PRINT_PAGEPREVIEW, sal_True));
+
+ OUString sFileName(C2U( UNO_NAME_FILE_NAME ));
+ OUString sCopyCount(C2U(UNO_NAME_COPY_COUNT ));
+ OUString sCollate(C2U( UNO_NAME_COLLATE ));
+ OUString sSort(C2U( UNO_NAME_SORT ));
+ OUString sPages(C2U( UNO_NAME_PAGES ));
+
+ for ( int n = 0; n < xOptions.getLength(); ++n )
+ {
+ // get Property-Value from options
+ const beans::PropertyValue &rProp = xOptions.getConstArray()[n];
+ Any aValue( rProp.Value );
+
+ // FileName-Property?
+ if ( rProp.Name == sFileName )
+ {
+ if ( rProp.Value.getValueType() == ::getCppuType((const OUString*)0))
+ aReq.AppendItem(SfxStringItem( SID_FILE_NAME, *(const OUString*)rProp.Value.getValue()));
+ else if ( rProp.Value.getValueType() != ::getVoidCppuType() )
+ throw IllegalArgumentException();
+ }
+
+ // CopyCount-Property
+ else if ( rProp.Name == sCopyCount )
+ {
+ sal_Int32 nCopies;
+ aValue >>= nCopies;
+ aReq.AppendItem(SfxInt16Item( SID_PRINT_COPIES, nCopies ) );
+ }
+
+ // Collate-Property
+ else if ( rProp.Name == sCollate )
+ {
+ if ( rProp.Value.getValueType() == ::getBooleanCppuType())
+
+ aReq.AppendItem(SfxBoolItem( SID_PRINT_COLLATE, *(sal_Bool*)rProp.Value.getValue() ) );
+ else
+ throw IllegalArgumentException();
+ }
+
+ // Sort-Property
+ else if ( rProp.Name == sSort )
+ {
+ if ( rProp.Value.getValueType() == ::getBooleanCppuType() )
+ aReq.AppendItem(SfxBoolItem( SID_PRINT_SORT, *(sal_Bool*)rProp.Value.getValue() ) );
+ else
+ throw IllegalArgumentException();
+ }
+
+ // Pages-Property
+ else if ( rProp.Name == sPages )
+ {
+ if ( rProp.Value.getValueType() == ::getCppuType((const OUString*)0) )
+ aReq.AppendItem( SfxStringItem( SID_PRINT_PAGES, *(OUString*)rProp.Value.getValue() ) );
+ else
+ throw IllegalArgumentException();
+ }
+ }
+
+
+ pFrame->GetViewShell()->ExecuteSlot(aReq);
+ // Frame schliessen
+ pFrame->DoClose();
+
+ }
+ else
+ throw RuntimeException();
+}
+/*-- 18.12.98 11:55:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getReferenceMarks(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXReferenceMarks)
+ {
+ ((SwXTextDocument*)this)->pxXReferenceMarks = new Reference< container::XNameAccess > ;
+ *pxXReferenceMarks = new SwXReferenceMarks(pDocShell->GetDoc());
+ }
+ return *pxXReferenceMarks;
+}
+/* -----------------21.12.98 10:20-------------------
+ *
+ * --------------------------------------------------*/
+Reference< container::XEnumerationAccess > SwXTextDocument::getTextFields(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXTextFieldTypes)
+ {
+ ((SwXTextDocument*)this)->pxXTextFieldTypes = new Reference< container::XEnumerationAccess > ;
+ *pxXTextFieldTypes = new SwXTextFieldTypes(pDocShell->GetDoc());
+ }
+ return *pxXTextFieldTypes;
+}
+/*-- 21.12.98 10:21:12---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getTextFieldMasters(void)
+ throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXTextFieldMasters)
+ {
+ ((SwXTextDocument*)this)->pxXTextFieldMasters = new Reference< container::XNameAccess > ;
+ *pxXTextFieldMasters = new SwXTextFieldMasters(pDocShell->GetDoc());
+ }
+ return *pxXTextFieldMasters;
+}
+/*-- 21.12.98 10:21:12---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getEmbeddedObjects(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXEmbeddedObjects)
+ {
+ ((SwXTextDocument*)this)->pxXEmbeddedObjects = new Reference< container::XNameAccess > ;
+ *pxXEmbeddedObjects = new SwXTextEmbeddedObjects(pDocShell->GetDoc());
+ }
+ return *pxXEmbeddedObjects;
+}
+/*-- 21.12.98 10:21:13---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getBookmarks(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXBookmarks)
+ {
+ ((SwXTextDocument*)this)->pxXBookmarks = new Reference< container::XNameAccess > ;
+ *pxXBookmarks = new SwXBookmarks(pDocShell->GetDoc());
+ }
+ return *pxXBookmarks;
+}
+/*-- 21.12.98 10:21:13---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getTextSections(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXTextSections)
+ {
+ ((SwXTextDocument*)this)->pxXTextSections = new Reference< container::XNameAccess > ;
+ *pxXTextSections = new SwXTextSections(pDocShell->GetDoc());
+ }
+ return *pxXTextSections;
+}
+/*-- 21.12.98 10:21:13---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getTextTables(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXTextTables)
+ {
+ ((SwXTextDocument*)this)->pxXTextTables = new Reference< container::XNameAccess > ;
+ *pxXTextTables = new SwXTextTables(pDocShell->GetDoc());
+ }
+ return *pxXTextTables;
+}
+/*-- 21.12.98 10:21:13---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getGraphicObjects(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXGraphicObjects)
+ {
+ ((SwXTextDocument*)this)->pxXGraphicObjects = new Reference< container::XNameAccess > ;
+ *pxXGraphicObjects = new SwXTextGraphicObjects(pDocShell->GetDoc());
+ }
+ return *pxXGraphicObjects;
+}
+/*-- 21.12.98 10:21:14---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getTextFrames(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXTextFrames)
+ {
+ ((SwXTextDocument*)this)->pxXTextFrames = new Reference< container::XNameAccess > ;
+ *pxXTextFrames = new SwXTextFrames(pDocShell->GetDoc());
+ }
+ return *pxXTextFrames;
+}
+/* -----------------21.12.98 10:56-------------------
+ *
+ * --------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getStyleFamilies(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXStyleFamilies)
+ {
+ ((SwXTextDocument*)this)->pxXStyleFamilies = new Reference< container::XNameAccess > ;
+ *pxXStyleFamilies = new SwXStyleFamilies(*pDocShell);
+ }
+ return *pxXStyleFamilies;
+}
+/*-- 22.01.99 10:18:03---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< drawing::XDrawPage > SwXTextDocument::getDrawPage(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXDrawPage)
+ {
+ ((SwXTextDocument*)this)->pxXDrawPage = new Reference< drawing::XDrawPage > ;
+ ((SwXTextDocument*)this)->pDrawPage = new SwXDrawPage(pDocShell->GetDoc());
+ Reference< drawing::XShapes > xTmp = pDrawPage;
+ *pxXDrawPage = Reference< drawing::XDrawPage>(xTmp, UNO_QUERY);
+ }
+ return *pxXDrawPage;
+}
+/* -----------------07.04.99 10:11-------------------
+ *
+ * --------------------------------------------------*/
+SwXDrawPage* SwXTextDocument::GetDrawPage()
+{
+ if(!IsValid())
+ return 0;
+ if(!pDrawPage)
+ getDrawPage();
+ return pDrawPage;
+}
+/*-- 18.12.98 11:55:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::Invalidate()
+{
+ bObjectValid = sal_False;
+ if(xNumFmtAgg.is())
+ {
+ const uno::Type& rTunnelType = ::getCppuType((Reference< XUnoTunnel > *)0);
+ Any aNumTunnel = xNumFmtAgg->queryAggregation(rTunnelType);
+ SvNumberFormatsSupplierObj* pNumFmt = 0;
+ if(aNumTunnel.getValueType() == rTunnelType)
+ {
+ Reference< XUnoTunnel > xNumTunnel = *(Reference< XUnoTunnel >*)
+ aNumTunnel.getValue();
+ pNumFmt = (SvNumberFormatsSupplierObj*)
+ xNumTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId());
+
+ }
+ DBG_ASSERT(pNumFmt, "No number formatter available");
+ pNumFmt->SetNumberFormatter(0);
+ }
+ InitNewDoc();
+ pDocShell = 0;
+}
+/* -----------------------------13.07.00 15:59--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwXTextDocument::Reactivate(SwDocShell* pNewDocShell)
+{
+ if(pDocShell && pDocShell != pNewDocShell)
+ Invalidate();
+ pDocShell = pNewDocShell;
+ bObjectValid = TRUE;
+}
+/*-- 18.12.98 11:55:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::InitNewDoc()
+{
+ // zunaechst alle Collections invalidieren, dann Referenzen loeschen und Null setzen
+ if(pxXTextTables)
+ {
+ container::XNameAccess* pTbls = pxXTextTables->get();
+ ((SwXTextTables*)pTbls)->Invalidate();
+ delete pxXTextTables;
+ pxXTextTables = 0;
+ }
+
+ if(pxXTextFrames)
+ {
+ container::XNameAccess* pFrms = pxXTextFrames->get();
+ ((SwXTextFrames*)pFrms)->Invalidate();
+ delete pxXTextFrames;
+ pxXTextFrames = 0;
+ }
+
+ if(pxXGraphicObjects)
+ {
+ container::XNameAccess* pFrms = pxXGraphicObjects->get();
+ ((SwXTextGraphicObjects*)pFrms)->Invalidate();
+ delete pxXGraphicObjects;
+ pxXGraphicObjects = 0;
+ }
+
+ if(pxXEmbeddedObjects)
+ {
+ container::XNameAccess* pOLE = pxXEmbeddedObjects->get();
+ ((SwXTextEmbeddedObjects*)pOLE)->Invalidate();
+ delete pxXEmbeddedObjects;
+ pxXEmbeddedObjects = 0;
+ }
+
+ if(xBodyText.is())
+ {
+ xBodyText = 0;
+ pBodyText = 0;
+ }
+
+ if(xNumFmtAgg.is())
+ {
+ const uno::Type& rTunnelType = ::getCppuType((Reference< XUnoTunnel > *)0);
+ Any aNumTunnel = xNumFmtAgg->queryAggregation(rTunnelType);
+ SvNumberFormatsSupplierObj* pNumFmt = 0;
+ if(aNumTunnel.getValueType() == rTunnelType)
+ {
+ Reference< XUnoTunnel > xNumTunnel = *(Reference< XUnoTunnel >*)
+ aNumTunnel.getValue();
+ pNumFmt = (SvNumberFormatsSupplierObj*)
+ xNumTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId());
+
+ }
+ DBG_ASSERT(pNumFmt, "No number formatter available");
+ pNumFmt->SetNumberFormatter(0);
+ }
+
+ if(pxXTextFieldTypes)
+ {
+ container::XEnumerationAccess* pT = pxXTextFieldTypes->get();
+ ((SwXTextFieldTypes*)pT)->Invalidate();
+ delete pxXTextFieldTypes;
+ pxXTextFieldTypes = 0;
+ }
+
+ if(pxXTextFieldMasters)
+ {
+ container::XNameAccess* pT = pxXTextFieldMasters->get();
+ ((SwXTextFieldMasters*)pT)->Invalidate();
+ delete pxXTextFieldMasters;
+ pxXTextFieldMasters = 0;
+ }
+
+ if(pxXTextSections)
+ {
+ container::XNameAccess* pSect = pxXTextSections->get();
+ ((SwXTextSections*)pSect)->Invalidate();
+ delete pxXTextSections;
+ pxXTextSections = 0;
+ }
+
+ if(pxXDrawPage)
+ {
+ drawing::XDrawPage* pxPage = pxXDrawPage->get();
+ pDrawPage->Invalidate();
+ delete pxXDrawPage;
+ pxXDrawPage = 0;
+ }
+
+ if(pxXFootnotes)
+ {
+ container::XIndexAccess* pFtn = pxXFootnotes->get();
+ ((SwXFootnotes*)pFtn)->Invalidate();
+ delete pxXFootnotes;
+ pxXFootnotes = 0;
+ }
+
+ if(pxXEndnotes)
+ {
+ container::XIndexAccess* pFtn = pxXEndnotes->get();
+ ((SwXFootnotes*)pFtn)->Invalidate();
+ delete pxXEndnotes;
+ pxXEndnotes = 0;
+ }
+
+ if(pxXDocumentIndexes)
+ {
+ container::XIndexAccess* pIdxs = pxXDocumentIndexes->get();
+ ((SwXDocumentIndexes*)pIdxs)->Invalidate();
+ delete pxXDocumentIndexes;
+ pxXDocumentIndexes = 0;
+ }
+
+ if(pxXStyleFamilies)
+ {
+ container::XNameAccess* pStyles = pxXStyleFamilies->get();
+ ((SwXStyleFamilies*)pStyles)->Invalidate();
+ delete pxXStyleFamilies;
+ pxXStyleFamilies = 0;
+ }
+
+ if(pxXBookmarks)
+ {
+ container::XNameAccess* pBm = pxXBookmarks->get();
+ ((SwXBookmarks*)pBm)->Invalidate();
+ delete pxXBookmarks;
+ pxXBookmarks = 0;
+ }
+
+ if(pxXChapterNumbering)
+ {
+ container::XIndexReplace* pCh = pxXChapterNumbering->get();
+ ((SwXChapterNumbering*)pCh)->Invalidate();
+ delete pxXChapterNumbering;
+ pxXChapterNumbering = 0;
+ }
+
+ if(pxXFootnoteSettings)
+ {
+ XPropertySet* pFntSet = pxXFootnoteSettings->get();
+ ((SwXFootnoteProperties*)pFntSet)->Invalidate();
+ delete pxXFootnoteSettings;
+ pxXFootnoteSettings = 0;
+ }
+
+ if(pxXEndnoteSettings)
+ {
+ XPropertySet* pEndSet = pxXEndnoteSettings->get();
+ ((SwXEndnoteProperties*)pEndSet)->Invalidate();
+ delete pxXEndnoteSettings;
+ pxXEndnoteSettings = 0;
+ }
+
+ if(pxXLineNumberingProperties)
+ {
+ XPropertySet* pLine = pxXLineNumberingProperties->get();
+ ((SwXLineNumberingProperties*)pLine)->Invalidate();
+ delete pxXLineNumberingProperties;
+ pxXLineNumberingProperties = 0;
+ }
+/*
+ delete pxXTextOutlines;
+ pxXTextOutlines = 0;
+ sal_uInt16 nArrCount = aActionArr.Count();
+ while( nArrCount )
+ {
+ UnoActionContext* pContext = aActionArr.GetObject(--nArrCount);
+ pContext->InvalidateDocument();
+ aActionArr.Remove(nArrCount);
+ delete pContext;
+ }
+*/
+ if(pxXReferenceMarks)
+ {
+ container::XNameAccess* pMarks = pxXReferenceMarks->get();
+ ((SwXReferenceMarks*)pMarks)->Invalidate();
+ delete pxXReferenceMarks;
+ pxXReferenceMarks = 0;
+ }
+/*
+ if(pxXRedlines)
+ {
+ XRedlines* pMarks = *pxXRedlines;
+ ((SwXRedlines*)pMarks)->Invalidate();
+ delete pxXRedlines;
+ pxXRedlines = 0;
+ }
+
+
+*/
+}
+
+/*-- 11.03.99 11:51:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServiceName)
+ throw( Exception, RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ Reference< XInterface > xRet;
+ sal_uInt16 nType = SwXServiceProvider::GetProviderType(rServiceName);
+ if(nType != SW_SERVICE_INVALID)
+ {
+ xRet = SwXServiceProvider::MakeInstance(nType, pDocShell->GetDoc());
+ }
+ else
+ {
+ sal_uInt16 nTokenCount = rServiceName.getTokenCount('.');
+ if(nTokenCount >= 4 &&
+ rServiceName.getToken( 0, '.' ) == C2U("com") &&
+ rServiceName.getToken( 1, '.' ) == C2U("sun") &&
+ rServiceName.getToken( 2, '.' ) == C2U("star"))
+ {
+ OUString sCategory = rServiceName.getToken( 3, '.' );
+ sal_Bool bShape = sCategory == C2U("drawing");
+ if( bShape || sCategory == C2U("form"))
+ {
+ //hier den Draw - Service suchen
+ Reference< XInterface > xTmp = SvxFmMSFactory::createInstance(rServiceName);
+ if(bShape)
+ xRet = *new SwXShape( xTmp );
+ else
+ xRet = xTmp;
+ }
+ }
+ else
+ throw ServiceNotRegisteredException();
+ }
+ return xRet;
+}
+/*-- 11.03.99 11:51:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XInterface > SwXTextDocument::createInstanceWithArguments(
+ const OUString& ServiceSpecifier,
+ const Sequence< Any >& Arguments)
+ throw( Exception, RuntimeException )
+{
+ Reference< XInterface > xInt = createInstance(ServiceSpecifier);
+ //die Any-Sequence dient zur Initialisierung von Objekten, die auf
+ //Parameter zwingend angewiesen sind - bis jetzt haben wir das nicht
+ return xInt;
+}
+/*-- 11.03.99 11:51:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< OUString > SwXTextDocument::getAvailableServiceNames(void)
+ throw( RuntimeException )
+{
+ Sequence< OUString > aRet = SvxFmMSFactory::getAvailableServiceNames();
+ Sequence< OUString > aOwn = SwXServiceProvider::GetAllServiceNames();
+ return SvxFmMSFactory::concatServiceNames(aRet, aOwn);
+
+}
+/* -----------------18.03.99 11:36-------------------
+ *
+ * --------------------------------------------------*/
+OUString SwXTextDocument::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXTextDocument");
+}
+/* -----------------18.03.99 11:32-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwXTextDocument::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ sal_Bool bRet = sal_False;
+ if(rServiceName.equals(C2U("com.sun.star.text.TextDocument")))
+ bRet = sal_True;
+ else
+ {
+ Sequence< OUString > aNames = SvxFmMSFactory::getAvailableServiceNames();
+ OUString* pArray = aNames.getArray();
+ for(int i = 0; i < aNames.getLength(); i++)
+ if(pArray[i] == rServiceName)
+ {
+ bRet = sal_True;
+ break;
+ }
+ }
+ return bRet;
+}
+/* -----------------18.03.99 11:32-------------------
+ *
+ * --------------------------------------------------*/
+Sequence< OUString > SwXTextDocument::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet = SvxFmMSFactory::getAvailableServiceNames();
+ aRet.realloc(aRet.getLength() + 1);
+ OUString* pArray = aRet.getArray();
+ pArray[aRet.getLength() - 1] = C2U("com.sun.star.text.TextDocument");
+ return aRet;
+}
+/* -----------------05.05.99 12:10-------------------
+ *
+ * --------------------------------------------------*/
+Reference< container::XIndexAccess > SwXTextDocument::getDocumentIndexes(void) throw( RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ if(!pxXDocumentIndexes)
+ {
+ ((SwXTextDocument*)this)->pxXDocumentIndexes = new Reference< container::XIndexAccess > ;
+ *pxXDocumentIndexes = new SwXDocumentIndexes(pDocShell->GetDoc());
+ }
+ return *pxXDocumentIndexes;
+}
+
+/*-- 10.05.99 13:58:58---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XPropertySetInfo > SwXTextDocument::getPropertySetInfo(void) throw( RuntimeException )
+{
+ static Reference< XPropertySetInfo > xRet = aPropSet.getPropertySetInfo();
+ return xRet;
+}
+/*-- 10.05.99 13:58:58---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::setPropertyValue(const OUString& rPropertyName,
+ const Any& aValue)
+ throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException,
+ WrappedTargetException, RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ const SfxItemPropertyMap* pMap = SfxItemPropertyMap::GetByName(
+ aPropSet.getPropertyMap(), rPropertyName);
+
+ if(!pMap)
+ throw UnknownPropertyException();
+ switch(pMap->nWID)
+ {
+ case WID_DOC_CHAR_COUNT :
+ case WID_DOC_PARA_COUNT :
+ case WID_DOC_WORD_COUNT :
+ throw RuntimeException();
+ break;
+ case WID_DOC_WORD_SEPARATOR :
+ {
+ OUString sDelim;
+ aValue >>= sDelim;
+ SW_MOD()->GetModuleConfig()->SetWordDelimiter(sDelim);
+ }
+ break;
+ case WID_DOC_CHANGES_RECORD:
+ case WID_DOC_CHANGES_SHOW:
+ {
+ sal_Bool bSet = *(sal_Bool*)aValue.getValue();
+ sal_uInt16 eMode = pDocShell->GetDoc()->GetRedlineMode();
+ if(WID_DOC_CHANGES_SHOW == pMap->nWID)
+ {
+ eMode &= ~(REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE);
+ eMode |= REDLINE_SHOW_INSERT;
+ if( bSet )
+ eMode |= REDLINE_SHOW_DELETE;
+ }
+ else if(WID_DOC_CHANGES_RECORD == pMap->nWID)
+ {
+ eMode = bSet ? eMode|REDLINE_ON : eMode&~REDLINE_ON;
+ }
+ pDocShell->GetDoc()->SetRedlineMode( eMode );
+ }
+ break;
+ case WID_DOC_AUTO_MARK_URL :
+ {
+ OUString sURL;
+ aValue >>= sURL;
+ pDocShell->GetDoc()->SetTOIAutoMarkURL(sURL);
+ }
+ break;
+ default:
+ {
+ const SfxPoolItem& rItem = pDocShell->GetDoc()->GetDefault(pMap->nWID);
+ SfxPoolItem* pNewItem = rItem.Clone();
+ pNewItem->PutValue(aValue, pMap->nMemberId);
+ pDocShell->GetDoc()->SetDefault(*pNewItem);
+ delete pNewItem;
+ }
+ }
+}
+/*-- 10.05.99 13:58:59---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(!IsValid())
+ throw RuntimeException();
+ const SfxItemPropertyMap* pMap = SfxItemPropertyMap::GetByName(
+ aPropSet.getPropertyMap(), rPropertyName);
+
+ if(!pMap)
+ throw UnknownPropertyException();
+ Any aAny;
+ switch(pMap->nWID)
+ {
+ case WID_DOC_CHAR_COUNT :
+ case WID_DOC_PARA_COUNT :
+ case WID_DOC_WORD_COUNT :
+ {
+ SwDocStat aStat(pDocShell->GetDoc()->GetDocStat());
+ if(aStat.bModified)
+ pDocShell->GetDoc()->UpdateDocStat( aStat, 1 );
+ sal_Int32 nValue;
+ switch(pMap->nWID)
+ {
+ case WID_DOC_CHAR_COUNT :nValue = aStat.nChar;break;
+ case WID_DOC_PARA_COUNT :nValue = aStat.nPara;break;
+ case WID_DOC_WORD_COUNT :nValue = aStat.nWord;break;
+ }
+ aAny <<= nValue;
+ }
+ break;
+ case WID_DOC_WORD_SEPARATOR :
+ {
+ aAny <<= OUString(SW_MOD()->GetDocStatWordDelim());
+ }
+ break;
+ case WID_DOC_CHANGES_RECORD:
+ case WID_DOC_CHANGES_SHOW:
+ {
+ sal_uInt16 eMode = pDocShell->GetDoc()->GetRedlineMode();
+ sal_Bool bSet = sal_False;
+ if(WID_DOC_CHANGES_SHOW == pMap->nWID)
+ {
+ sal_uInt16 nMask = REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE;
+ bSet = (eMode & nMask) == nMask;
+ }
+ else if(WID_DOC_CHANGES_RECORD == pMap->nWID)
+ {
+ bSet = (eMode& REDLINE_ON) != 0;
+ }
+ aAny.setValue(&bSet, ::getBooleanCppuType());
+ }
+ break;
+ case WID_DOC_AUTO_MARK_URL :
+ aAny <<= OUString(pDocShell->GetDoc()->GetTOIAutoMarkURL());
+ break;
+ default:
+ {
+ const SfxPoolItem& rItem = pDocShell->GetDoc()->GetDefault(pMap->nWID);
+ rItem.QueryValue(aAny, pMap->nMemberId);
+ }
+
+ }
+ return aAny;
+}
+/*-- 10.05.99 13:58:59---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::addPropertyChangeListener(const OUString& PropertyName,
+ const Reference< XPropertyChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 10.05.99 13:58:59---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::removePropertyChangeListener(const OUString& PropertyName,
+ const Reference< XPropertyChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 10.05.99 13:59:00---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::addVetoableChangeListener(const OUString& PropertyName,
+ const Reference< XVetoableChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 10.05.99 13:59:00---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::removeVetoableChangeListener(const OUString& PropertyName,
+ const Reference< XVetoableChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/* -----------------25.10.99 10:42-------------------
+
+ --------------------------------------------------*/
+Reference< container::XNameAccess > SwXTextDocument::getLinks(void) throw( RuntimeException )
+{
+ if(!pxLinkTargetSupplier)
+ {
+ ((SwXTextDocument*)this)->pxLinkTargetSupplier = new Reference< container::XNameAccess > ;
+ (*pxLinkTargetSupplier) = new SwXLinkTargetSupplier(*(SwXTextDocument*)this);
+ }
+ return (*pxLinkTargetSupplier);
+}
+
+/*-- 21.02.00 08:41:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::refresh(void) throw( RuntimeException )
+{
+ if(!IsValid())
+ throw RuntimeException();
+ SwWrtShell *pWrtShell = pDocShell->GetWrtShell();
+ if(pWrtShell)
+ pWrtShell->CalcLayout();
+}
+/*-- 21.02.00 08:41:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::addRefreshListener(const Reference< util::XRefreshListener > & l)
+ throw( RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/*-- 21.02.00 08:41:07---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextDocument::removeRefreshListener(const Reference< util::XRefreshListener > & l)
+ throw( RuntimeException )
+{
+ DBG_WARNING("not implemented")
+}
+/* -----------------------------20.06.00 09:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void * SAL_CALL SwXTextDocument::operator new( size_t t) throw()
+{
+ return SwXTextDocumentBaseClass::operator new(t);
+}
+/* -----------------------------20.06.00 09:54--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SAL_CALL SwXTextDocument::operator delete( void * p) throw()
+{
+ SwXTextDocumentBaseClass::operator delete(p);
+}
+/* -----------------25.10.99 11:06-------------------
+
+ --------------------------------------------------*/
+SwXLinkTargetSupplier::SwXLinkTargetSupplier(SwXTextDocument& rxDoc) :
+ pxDoc(&rxDoc)
+{
+ sTables = String(SW_RES(STR_CONTENT_TYPE_TABLE));
+ sFrames = String(SW_RES(STR_CONTENT_TYPE_FRAME));
+ sGraphics = String(SW_RES(STR_CONTENT_TYPE_GRAPHIC));
+ sOLEs = String(SW_RES(STR_CONTENT_TYPE_OLE));
+ sSections = String(SW_RES(STR_CONTENT_TYPE_REGION));
+ sOutlines = String(SW_RES(STR_CONTENT_TYPE_OUTLINE));
+ sBookmarks = String(SW_RES(STR_CONTENT_TYPE_BOOKMARK));
+}
+/* -----------------25.10.99 11:11-------------------
+
+ --------------------------------------------------*/
+SwXLinkTargetSupplier::~SwXLinkTargetSupplier()
+{
+}
+
+/*-- 25.10.99 11:12:45---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXLinkTargetSupplier::getByName(const OUString& rName)
+ throw( container::NoSuchElementException, WrappedTargetException, RuntimeException )
+{
+ Any aRet;
+ if(!pxDoc)
+ throw RuntimeException();
+ String sToCompare(rName);
+ String sSuffix('|');
+ if(sToCompare == sTables)
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToTable);
+
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ pxDoc->getTextTables(), sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference<XPropertySet>*)0));
+ }
+ else if(sToCompare == sFrames)
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToFrame);
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ pxDoc->getTextFrames(), sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference< XPropertySet>*)0));
+ }
+ else if(sToCompare == sSections)
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToRegion);
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ pxDoc->getTextSections(), sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference< XPropertySet>*)0));
+ }
+/* else if(sToCompare == )
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToText);
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ pxDoc->, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((const XPropertySet*)0));
+ }*/
+ else if(sToCompare == sGraphics)
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToGraphic);
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ pxDoc->getGraphicObjects(), sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference< XPropertySet>*)0));
+ }
+ else if(sToCompare == sOLEs)
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToOLE);
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ pxDoc->getEmbeddedObjects(), sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference< XPropertySet>*)0));
+ }
+ else if(sToCompare == sOutlines)
+ {
+ sSuffix += UniString::CreateFromAscii(pMarkToOutline);
+ Reference< container::XNameAccess > xTbls = new SwXLinkNameAccessWrapper(
+ *pxDoc, sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xTbls, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference< XPropertySet>*)0));
+ }
+ else if(sToCompare == sBookmarks)
+ {
+ sSuffix.Erase();
+ Reference< container::XNameAccess > xBkms = new SwXLinkNameAccessWrapper(
+ pxDoc->getBookmarks(), sToCompare, sSuffix );
+ Reference< XPropertySet > xRet(xBkms, UNO_QUERY);
+ aRet.setValue(&xRet, ::getCppuType((Reference< XPropertySet>*)0));
+ }
+ else
+ throw container::NoSuchElementException();
+ return aRet;
+}
+/*-- 25.10.99 11:12:46---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< OUString > SwXLinkTargetSupplier::getElementNames(void)
+ throw( RuntimeException )
+{
+ Sequence< OUString > aRet(7);
+ OUString* pNames = aRet.getArray();
+ pNames[0] = sTables;
+ pNames[1] = sFrames ;
+ pNames[2] = sGraphics;
+ pNames[3] = sOLEs ;
+ pNames[4] = sSections;
+ pNames[5] = sOutlines;
+ pNames[6] = sBookmarks;
+ return aRet;
+}
+/*-- 25.10.99 11:12:46---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXLinkTargetSupplier::hasByName(const OUString& rName)
+ throw( RuntimeException )
+{
+ String sToCompare(rName);
+ if( sToCompare == sTables ||
+ sToCompare == sFrames ||
+ sToCompare == sGraphics||
+ sToCompare == sOLEs ||
+ sToCompare == sSections ||
+ sToCompare == sOutlines ||
+ sToCompare == sBookmarks )
+ return sal_True;
+ return sal_False;
+}
+/*-- 25.10.99 11:12:47---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Type SwXLinkTargetSupplier::getElementType(void)
+ throw( RuntimeException )
+{
+ return ::getCppuType((Reference< XPropertySet>*)0);
+
+}
+/*-- 25.10.99 11:12:47---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXLinkTargetSupplier::hasElements(void) throw( RuntimeException )
+{
+ return 0 != pxDoc;
+}
+/*-- 25.10.99 11:12:47---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+OUString SwXLinkTargetSupplier::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXLinkTargetSupplier");
+}
+/*-- 25.10.99 11:12:48---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXLinkTargetSupplier::supportsService(const OUString& rServiceName)
+ throw( RuntimeException )
+{
+ return (rServiceName == C2U("com.sun.star.document.LinkTargets"));
+}
+/*-- 25.10.99 11:12:48---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< OUString > SwXLinkTargetSupplier::getSupportedServiceNames(void)
+ throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pNames = aRet.getArray();
+ pNames[0] = C2U("com.sun.star.document.LinkTargets");
+ return aRet;
+}
+
+/*-- 26.10.99 09:16:23---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXLinkNameAccessWrapper::SwXLinkNameAccessWrapper(
+ Reference< container::XNameAccess > xAccess, const String& rLinkDisplayName, String sSuffix ) :
+ aPropSet(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_LINK_TARGET)),
+ sLinkDisplayName(rLinkDisplayName),
+ xRealAccess(xAccess),
+ sLinkSuffix(sSuffix),
+ pxDoc(0)
+{
+}
+/* -----------------26.10.99 14:17-------------------
+
+ --------------------------------------------------*/
+SwXLinkNameAccessWrapper::SwXLinkNameAccessWrapper(SwXTextDocument& rxDoc,
+ const String& rLinkDisplayName, String sSuffix) :
+ sLinkSuffix(sSuffix),
+ sLinkDisplayName(rLinkDisplayName),
+ aPropSet(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_LINK_TARGET)),
+ pxDoc(&rxDoc),
+ xDoc(&rxDoc)
+{
+}
+/*-- 26.10.99 09:16:23---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXLinkNameAccessWrapper::~SwXLinkNameAccessWrapper()
+{
+}
+/*-- 26.10.99 09:16:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXLinkNameAccessWrapper::getByName(const OUString& rName)
+ throw( container::NoSuchElementException, WrappedTargetException, RuntimeException )
+{
+ Any aRet;
+ sal_Bool bFound = sal_False;
+ //cut link extension and call the real NameAccess
+ String sParam = rName;
+ String sSuffix(sLinkSuffix);
+ if(sParam.Len() > sSuffix.Len() )
+ {
+ String sCmp = sParam.Copy(sParam.Len() - sSuffix.Len(),
+ sSuffix.Len());
+ if(sCmp == sSuffix)
+ {
+ if(pxDoc)
+ {
+ sParam = sParam.Copy(0, sParam.Len() - sSuffix.Len());
+ if(!pxDoc->GetDocShell())
+ throw RuntimeException();
+ SwDoc* pDoc = pxDoc->GetDocShell()->GetDoc();
+ sal_uInt16 nOutlineCount = pDoc->GetNodes().GetOutLineNds().Count();
+
+ for (sal_uInt16 i = 0; i < nOutlineCount && !bFound; ++i)
+ {
+ const SwNodes& rNds = pDoc->GetNodes();
+ if(sParam ==
+ rNds.GetOutLineNds()[ i ]->GetTxtNode()->GetExpandTxt( 0, STRING_LEN, sal_True ))
+ {
+ Reference< XPropertySet > xOutline = new SwXOutlineTarget(sParam);
+ aRet.setValue(&xOutline, ::getCppuType((Reference<XPropertySet>*)0));
+ bFound = sal_True;
+ }
+ }
+ }
+ else
+ {
+ aRet = xRealAccess->getByName(sParam.Copy(0, sParam.Len() - sSuffix.Len()));
+ Reference< XInterface > * pxInt = (Reference< XInterface > *)aRet.getValue();
+ if(!pxInt)
+ throw RuntimeException();
+ Reference< XPropertySet > xProp((*pxInt), UNO_QUERY);
+ aRet.setValue(&xProp, ::getCppuType((Reference<XPropertySet>*)0));
+ bFound = sal_True;
+ }
+ }
+ }
+ if(!bFound)
+ throw container::NoSuchElementException();
+ return aRet;
+}
+/*-- 26.10.99 09:16:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< OUString > SwXLinkNameAccessWrapper::getElementNames(void)
+ throw( RuntimeException )
+{
+ Sequence< OUString > aRet;
+ if(pxDoc)
+ {
+ if(!pxDoc->GetDocShell())
+ throw RuntimeException();
+
+ SwDoc* pDoc = pxDoc->GetDocShell()->GetDoc();
+ sal_uInt16 nOutlineCount = pDoc->GetNodes().GetOutLineNds().Count();
+ aRet.realloc(nOutlineCount);
+ OUString* pResArr = aRet.getArray();
+ String sSuffix('|');
+ sSuffix += UniString::CreateFromAscii(pMarkToOutline);
+ for (sal_uInt16 i = 0; i < nOutlineCount; ++i)
+ {
+ const SwNodes& rNds = pDoc->GetNodes();
+ String sEntry(
+ rNds.GetOutLineNds()[ i ]->GetTxtNode()->GetExpandTxt( 0, STRING_LEN, sal_True ));
+ sEntry += sSuffix;
+ pResArr[i] = sEntry;
+ }
+ }
+ else
+ {
+ Sequence< OUString > aOrg = xRealAccess->getElementNames();
+ const OUString* pOrgArr = aOrg.getConstArray();
+ aRet.realloc(aOrg.getLength());
+ OUString* pResArr = aRet.getArray();
+ for(long i = 0; i < aOrg.getLength(); i++)
+ {
+ pResArr[i] = pOrgArr[i] + sLinkSuffix;
+ }
+ }
+ return aRet;
+}
+/*-- 26.10.99 09:16:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXLinkNameAccessWrapper::hasByName(const OUString& rName)
+ throw( RuntimeException )
+{
+ sal_Bool bRet = sal_False;
+ String sParam(rName);
+ if(sParam.Len() > sLinkSuffix.Len() )
+ {
+ String sCmp = sParam.Copy(sParam.Len() - sLinkSuffix.Len(),
+ sLinkSuffix.Len());
+ if(sCmp == sLinkSuffix)
+ {
+ sParam = sParam.Copy(0, sParam.Len() - sLinkSuffix.Len());
+ if(pxDoc)
+ {
+ if(!pxDoc->GetDocShell())
+ throw RuntimeException();
+ SwDoc* pDoc = pxDoc->GetDocShell()->GetDoc();
+ sal_uInt16 nOutlineCount = pDoc->GetNodes().GetOutLineNds().Count();
+
+ for (sal_uInt16 i = 0; i < nOutlineCount && !bRet; ++i)
+ {
+ const SwNodes& rNds = pDoc->GetNodes();
+ if(sParam ==
+ rNds.GetOutLineNds()[ i ]->GetTxtNode()->GetExpandTxt( 0, STRING_LEN, sal_True ))
+ {
+ bRet = sal_True;
+ }
+ }
+ }
+ else
+ {
+ bRet = xRealAccess->hasByName(sParam);
+ }
+ }
+ }
+ return bRet;
+}
+/*-- 26.10.99 09:16:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Type SwXLinkNameAccessWrapper::getElementType(void)
+ throw( RuntimeException )
+{
+ return ::getCppuType((Reference<XPropertySet>*)0);
+}
+/*-- 26.10.99 09:16:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXLinkNameAccessWrapper::hasElements(void) throw( RuntimeException )
+{
+ sal_Bool bRet = sal_False;
+ if(pxDoc)
+ {
+ DBG_ERROR("not implemented")
+ }
+ else
+ {
+ bRet = xRealAccess->hasElements();
+ }
+ return bRet;
+}
+/*-- 26.10.99 09:16:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XPropertySetInfo > SwXLinkNameAccessWrapper::getPropertySetInfo(void)
+ throw( RuntimeException )
+{
+ static Reference< XPropertySetInfo > xRet = aPropSet.getPropertySetInfo();
+ return xRet;
+}
+/*-- 26.10.99 09:16:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXLinkNameAccessWrapper::setPropertyValue(
+ const OUString& PropertyName, const Any& aValue)
+ throw( UnknownPropertyException,
+ PropertyVetoException,
+ IllegalArgumentException,
+ WrappedTargetException,
+ RuntimeException)
+{
+ throw UnknownPropertyException();
+}
+/* -----------------------------08.12.99 11:10--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Any lcl_GetDisplayBitmap(String sLinkSuffix)
+{
+ Any aRet;
+ if(sLinkSuffix.Len())
+ sLinkSuffix.Erase(0, 1);
+ sal_uInt16 nImgId = USHRT_MAX;
+
+ if(COMPARE_EQUAL == sLinkSuffix.CompareToAscii(pMarkToOutline))
+ nImgId = CONTENT_TYPE_OUTLINE;
+ else if(COMPARE_EQUAL == sLinkSuffix.CompareToAscii(pMarkToTable))
+ nImgId = CONTENT_TYPE_TABLE;
+ else if(COMPARE_EQUAL == sLinkSuffix.CompareToAscii(pMarkToFrame))
+ nImgId = CONTENT_TYPE_FRAME;
+ else if(COMPARE_EQUAL == sLinkSuffix.CompareToAscii(pMarkToGraphic))
+ nImgId = CONTENT_TYPE_GRAPHIC;
+// else if(== sLinkSuffix)
+// nImgId = CONTENT_TYPE_BOOKMARK;
+ else if(COMPARE_EQUAL == sLinkSuffix.CompareToAscii(pMarkToRegion))
+ nImgId = CONTENT_TYPE_REGION;
+ else if(COMPARE_EQUAL == sLinkSuffix.CompareToAscii(pMarkToOLE))
+ nImgId = CONTENT_TYPE_OLE;
+ else if(!sLinkSuffix.Len())
+ nImgId = CONTENT_TYPE_BOOKMARK;
+ if(USHRT_MAX != nImgId)
+ {
+ nImgId += 20000;
+ ImageList aEntryImages( SW_RES(IMG_NAVI_ENTRYBMP) );
+ const Image& rImage = aEntryImages.GetImage( nImgId );
+ Size aSize = rImage.GetSizePixel();
+
+ VirtualDevice aVDev;
+ aVDev.SetOutputSizePixel( aSize );
+ aVDev.DrawImage( Point(0,0), rImage );
+ Bitmap aBitmap = aVDev.GetBitmap( Point(0,0), aSize );
+
+ Reference<awt::XBitmap> xBmp = VCLUnoHelper::CreateBitmap( aBitmap );
+ aRet.setValue( &xBmp, ::getCppuType((Reference<awt::XBitmap>*)0) );
+ }
+ return aRet;
+}
+/*-- 26.10.99 09:16:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXLinkNameAccessWrapper::getPropertyValue(const OUString& rPropertyName)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ Any aRet;
+ if(rPropertyName == C2U(UNO_LINK_DISPLAY_NAME))
+ {
+ aRet <<= OUString(sLinkDisplayName);
+ }
+ else if(C2U(UNO_LINK_DISPLAY_BITMAP) == rPropertyName)
+ {
+ aRet = lcl_GetDisplayBitmap(sLinkSuffix);
+ }
+ else
+ throw UnknownPropertyException();
+ return aRet;
+}
+/*-- 26.10.99 09:16:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXLinkNameAccessWrapper::addPropertyChangeListener(
+ const OUString& PropertyName, const Reference< XPropertyChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{}
+/*-- 26.10.99 09:16:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXLinkNameAccessWrapper::removePropertyChangeListener(
+ const OUString& PropertyName, const Reference< XPropertyChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{}
+/*-- 26.10.99 09:16:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXLinkNameAccessWrapper::addVetoableChangeListener(
+ const OUString& PropertyName, const Reference< XVetoableChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{}
+/*-- 26.10.99 09:16:29---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXLinkNameAccessWrapper::removeVetoableChangeListener(
+ const OUString& PropertyName, const Reference< XVetoableChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{}
+/*-- 26.10.99 09:16:32---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< container::XNameAccess > SwXLinkNameAccessWrapper::getLinks(void)
+ throw( RuntimeException )
+{
+ return (SwXLinkNameAccessWrapper*)this;
+}
+
+/*-- 26.10.99 09:21:48---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+OUString SwXLinkNameAccessWrapper::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXLinkNameAccessWrapper");
+}
+/*-- 26.10.99 09:21:48---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXLinkNameAccessWrapper::supportsService(const OUString& rServiceName)
+ throw( RuntimeException )
+{
+ return (rServiceName == C2U("com.sun.star.document.LinkTargets"));
+}
+/*-- 26.10.99 09:21:48---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< OUString > SwXLinkNameAccessWrapper::getSupportedServiceNames(void)
+ throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pNames = aRet.getArray();
+ pNames[0] = C2U("com.sun.star.document.LinkTargets");
+ return aRet;
+}
+/* -----------------26.10.99 15:50-------------------
+
+ --------------------------------------------------*/
+SwXOutlineTarget::SwXOutlineTarget(const String& rOutlineText) :
+ aPropSet(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_LINK_TARGET)),
+ sOutlineText(rOutlineText)
+{
+}
+/*-- 26.10.99 15:51:45---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXOutlineTarget::~SwXOutlineTarget()
+{
+}
+/*-- 26.10.99 15:51:46---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XPropertySetInfo > SwXOutlineTarget::getPropertySetInfo(void) throw( RuntimeException )
+{
+ static Reference< XPropertySetInfo > xRet = aPropSet.getPropertySetInfo();
+ return xRet;
+}
+/*-- 26.10.99 15:51:46---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXOutlineTarget::setPropertyValue(
+ const OUString& PropertyName, const Any& aValue)
+ throw( UnknownPropertyException, PropertyVetoException,
+ IllegalArgumentException, WrappedTargetException, RuntimeException)
+{
+ throw UnknownPropertyException();
+}
+/*-- 26.10.99 15:51:46---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXOutlineTarget::getPropertyValue(const OUString& rPropertyName)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+ Any aRet;
+ if(COMPARE_EQUAL == rPropertyName.compareToAscii(UNO_LINK_DISPLAY_NAME))
+ aRet <<= OUString(sOutlineText);
+ else
+ throw UnknownPropertyException();
+ return aRet;
+}
+/*-- 26.10.99 15:51:46---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXOutlineTarget::addPropertyChangeListener(
+ const OUString& PropertyName, const Reference< XPropertyChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+}
+/*-- 26.10.99 15:51:47---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXOutlineTarget::removePropertyChangeListener(
+ const OUString& PropertyName, const Reference< XPropertyChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+}
+/*-- 26.10.99 15:51:47---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXOutlineTarget::addVetoableChangeListener(
+ const OUString& PropertyName, const Reference< XVetoableChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+}
+/*-- 26.10.99 15:51:47---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXOutlineTarget::removeVetoableChangeListener(
+ const OUString& PropertyName, const Reference< XVetoableChangeListener > & aListener)
+ throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
+{
+}
+/* -----------------03.05.99 12:28-------------------
+ *
+ * --------------------------------------------------*/
+OUString SwXOutlineTarget::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXOutlineTarget");
+}
+/* -----------------03.05.99 12:28-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool SwXOutlineTarget::supportsService(const OUString& ServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.document.LinkTarget") == ServiceName;
+}
+/* -----------------03.05.99 12:28-------------------
+ *
+ * --------------------------------------------------*/
+Sequence< OUString > SwXOutlineTarget::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence < OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.document.LinkTarget");
+
+ return aRet;
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.147 2000/09/18 16:06:16 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.146 2000/07/13 14:01:14 os
+ set flag in reactivate
+
+ Revision 1.145 2000/07/13 12:37:08 os
+ new: SwXTextDocument::reactivate()
+
+ Revision 1.144 2000/07/10 12:32:18 os
+ chg: acquire/release don't throw exceptions
+
+ Revision 1.143 2000/06/29 13:44:35 os
+ getTypes: add XMultiServiceFactory
+
+ Revision 1.142 2000/06/22 16:22:13 os
+ #76361# getTypes corrected
+
+ Revision 1.141 2000/06/20 08:06:00 os
+ operator new/delete
+
+ Revision 1.140 2000/06/16 13:48:13 os
+ UNO3 errors removed
+
+ Revision 1.139 2000/05/18 11:09:17 os
+ UpdateDocStat: call optimized
+
+ Revision 1.138 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.137 2000/04/11 08:05:00 os
+ UNICODE
+
+ Revision 1.136 2000/03/31 06:05:50 os
+ UNO III: toolkit includes
+
+ Revision 1.135 2000/03/27 10:36:31 os
+ UNO III
+
+ Revision 1.134 2000/03/21 15:39:44 os
+ UNOIII
+
+ Revision 1.133 2000/03/13 14:31:57 os
+ #73853# #73852# CharLocale instead of CharLanguage
+
+ Revision 1.132 2000/02/21 07:54:39 os
+ #73237# util::XRefreshable implemented
+
+ Revision 1.131 2000/02/14 14:25:35 os
+ #70473# Unicode
+
+ Revision 1.130 2000/02/11 13:46:39 os
+ #72210# SvxLanguageItem supports Locale
+
+ Revision 1.129 2000/02/02 13:43:10 os
+ #69861# Chg: XPropertyState; #72424# Chg: beans::PropertyValue
+
+ Revision 1.128 2000/01/05 10:28:49 os
+ #71466# Search: set cursor to the real start of document body
+
+ Revision 1.127 1999/12/08 12:01:45 os
+ #70284# show Bitmaps in hyperlink insert dialog
+
+ Revision 1.126 1999/12/01 15:33:44 os
+ #70173# enable search for hyperlink attribute
+
+ Revision 1.125 1999/12/01 14:22:40 os
+ #70174# search corrected
+
+ Revision 1.124 1999/11/25 15:37:50 os
+ headers corrected
+
+ Revision 1.123 1999/11/22 10:37:38 os
+ missing headers added
+
+ Revision 1.122 1999/11/19 16:38:03 os
+ modules renamed
+
+ Revision 1.121 1999/11/03 10:25:32 os
+ U2S!
+
+ Revision 1.120 1999/11/02 11:05:18 os
+ hyperlink interface completed
+
+ Revision 1.119 1999/10/29 11:34:18 os
+ support util::XModifiable
+
+ Revision 1.118 1999/10/26 14:33:34 os
+ LinkTargetSupplier
+
+ Revision 1.117 1999/10/15 10:58:40 os
+ Chg: XCntent- container::XChild
+
+ Revision 1.116 1999/09/14 13:45:34 os
+ Redlining properties
+
+ Revision 1.115 1999/09/14 13:35:06 os
+ Redlining properties; AutoMarkURL;
+
+ Revision 1.114 1999/08/26 09:44:30 HR
+ select/getSelection corrected
+
+
+ Rev 1.113 26 Aug 1999 11:44:30 HR
+ select/getSelection corrected
+
+ Rev 1.112 26 Aug 1999 11:29:54 OS
+ getSelection/select with Any
+
+ Rev 1.111 18 Aug 1999 10:52:22 OS
+ #67026# util::XModifiable now supported
+
+ Rev 1.110 21 Jul 1999 13:30:24 JP
+ WhichId-Ranges of SfxItemSets: EndId is inclusive
+
+ Rev 1.109 20 Jul 1999 09:00:50 OS
+ #67613# findNext: accept SwXTextRange
+
+ Rev 1.108 07 Jul 1999 08:14:10 OS
+ property map sorted
+
+ Rev 1.107 24 Jun 1999 12:01:48 OS
+ #66843# document statistic properties
+
+ Rev 1.106 24 Jun 1999 09:20:06 OS
+ #67048# util::XPropertyReplace implemented
+
+ Rev 1.105 26 May 1999 08:01:54 OS
+ #66180# Suche nach Styles
+
+ Rev 1.104 10 May 1999 15:12:28 OS
+ #66000# XPropertySet am Doc fuer util::Language
+
+ Rev 1.103 07 May 1999 14:25:20 KZ
+ numfrm -> numbform geaendert
+
+ Rev 1.102 05 May 1999 14:07:06 OS
+ #64655# DocumentIndexes wiederbelebt
+
+ Rev 1.101 04 May 1999 10:54:40 OS
+ #65415# getCurrentSelection
+
+ Rev 1.100 22 Apr 1999 16:09:04 OS
+ #65194# throw -> throw
+
+ Rev 1.99 22 Apr 1999 15:28:52 OS
+ #65124# not implemented - nur noch DBG_WARNING
+
+ Rev 1.98 07 Apr 1999 12:36:10 OS
+ #62304# NumberFormatter erst im Dtor deaggregieren
+
+ Rev 1.97 07 Apr 1999 11:27:28 OS
+ #62304# neues NumberFormatter - Object
+
+ Rev 1.96 07 Apr 1999 10:26:30 OS
+ #60348# richtiges Shape liefern
+
+ Rev 1.95 25 Mar 1999 14:55:22 OS
+ #62541# Exceptions fuer falsche Parameter bei setPagePrintSettings
+
+ Rev 1.94 18 Mar 1999 12:35:50 OS
+ #62984# neue Ableitung vom Svx
+
+ Rev 1.93 15 Mar 1999 14:38:24 OS
+ #62845# Makro fuer ServiceInfo jetzt auch fuer OS/2
+
+ Rev 1.92 15 Mar 1999 11:35:40 OS
+ #63370# Direktzugriff statt cast
+
+ Rev 1.91 12 Mar 1999 09:57:04 OS
+ #62845# XServiceInfo impl.
+
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
new file mode 100644
index 000000000000..510512dcb0c0
--- /dev/null
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -0,0 +1,1925 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotxvw.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "viscrs.hxx"
+#include <sfx2/frame.hxx>
+#include <cmdid.h>
+#include <hintids.hxx>
+#ifndef _SWDOCSH_HXX //autogen
+#include <docsh.hxx>
+#endif
+#ifndef _SWDOC_HXX //autogen
+#include <doc.hxx>
+#endif
+#ifndef _UNOTXVW_HXX
+#include <unotxvw.hxx>
+#endif
+#ifndef _UNOMAP_HXX
+#include <unomap.hxx>
+#endif
+#ifndef _SWVIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _UNOMOD_HXX
+#include <unomod.hxx>
+#endif
+#ifndef _UNOFRAME_HXX
+#include <unoframe.hxx>
+#endif
+#ifndef _UNOOBJ_HXX
+#include <unoobj.hxx>
+#endif
+#ifndef _UNOCRSR_HXX
+#include <unocrsr.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen
+#include <wrtsh.hxx>
+#endif
+#ifndef _UNOTBL_HXX
+#include <unotbl.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVDPAGE_HXX //autogen
+#include <svx/svdpage.hxx>
+#endif
+#ifndef _SVDOUNO_HXX //autogen
+#include <svx/svdouno.hxx>
+#endif
+#ifndef _SVDOGRP_HXX //autogen
+#include <svx/svdogrp.hxx>
+#endif
+#ifndef _PAGEDESC_HXX //autogen
+#include <pagedesc.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SVX_ULSPITEM_HXX //autogen
+#include <svx/ulspitem.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXREQUEST_HXX //autogen
+#include <sfx2/request.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _VOS_MUTEX_HXX_ //autogen
+#include <vos/mutex.hxx>
+#endif
+#ifndef _BOOKMRK_HXX //autogen
+#include <bookmrk.hxx>
+#endif
+#ifndef _UNOTXDOC_HXX //autogen
+#include <unotxdoc.hxx>
+#endif
+#ifndef _UNODRAW_HXX //autogen
+#include <unodraw.hxx>
+#endif
+#ifndef _SVX_UNOSHGRP_HXX //autogen
+#include <svx/unoshcol.hxx>
+#endif
+#ifndef _SVX_UNOSHAPE_HXX //autogen wg. SvxShape
+#include <svx/unoshape.hxx>
+#endif
+#ifndef _SVDPAGV_HXX //autogen wg. SdrPageView
+#include <svx/svdpagv.hxx>
+#endif
+#include <swerror.h>
+#ifndef _CACHESTR_HXX
+#include <tools/cachestr.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _NDTXT_HXX
+#include <ndtxt.hxx>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::beans;
+using namespace ::com::sun::star::text;
+using namespace rtl;
+
+SV_IMPL_PTRARR( SelectionChangeListenerArr, XSelectionChangeListenerPtr );
+
+/* -----------------22.05.98 12:20-------------------
+ *
+ * --------------------------------------------------*/
+SwPaM* lcl_createPamCopy(const SwPaM& rPam)
+{
+ SwPaM* pRet = new SwPaM(*rPam.GetPoint());
+ if(rPam.HasMark())
+ {
+ pRet->SetMark();
+ *pRet->GetMark() = *rPam.GetMark();
+ }
+ if(rPam.GetNext() != (const Ring*)&rPam)
+ {
+ SwPaM *_pStartCrsr = (SwPaM *)rPam.GetNext();
+ do
+ {
+ //neuen PaM erzeugen
+ SwPaM* pPaM = new SwPaM(*_pStartCrsr);
+ //und in den Ring einfuegen
+ pPaM->MoveTo(pRet);
+
+ } while( (_pStartCrsr=(SwPaM *)_pStartCrsr->GetNext()) != rPam.GetNext() );
+ }
+ return pRet;
+}
+/* -----------------04.11.98 15:32-------------------
+ *
+ * --------------------------------------------------*/
+sal_Bool lcl_FindObjInGroup(uno::Reference< awt::XControl > & xRet, SdrObjGroup* pGroup, const Reference< awt::XControlModel > & xModel, Window* pWin)
+{
+ SdrObjList* pList = pGroup->GetSubList();
+ sal_uInt32 nCount = pList->GetObjCount();
+ for( sal_uInt32 i=0; i< nCount; i++ )
+ {
+ SdrObject* pObj = pList->GetObj(i);
+ SdrUnoObj *pFormObj = PTR_CAST( SdrUnoObj, pObj );
+ SdrObjGroup* pGroup;
+ if( pFormObj )
+ {
+ Reference< awt::XControlModel > xCM = pFormObj->GetUnoControlModel();
+ if( xCM.is() && xModel == xCM )
+ {
+ xRet = pFormObj->GetUnoControl( pWin );
+ break;
+ }
+ }
+ else if(0 != (pGroup = PTR_CAST( SdrObjGroup, pObj )))
+ {
+ if(lcl_FindObjInGroup(xRet, pGroup, xModel, pWin))
+ break;
+ }
+ }
+ return xRet.is();
+}
+
+/******************************************************************
+ * SwXTextView
+ ******************************************************************/
+/*-- 17.12.98 09:34:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXTextView::SwXTextView(SwView* pSwView) :
+ SfxBaseController(pSwView),
+ pView(pSwView),
+ pxViewSettings(0),
+ pxTextViewCursor(0)
+{
+
+}
+/*-- 17.12.98 09:34:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXTextView::~SwXTextView()
+{
+ if(pxViewSettings)
+ {
+ beans::XPropertySet* pSettings = pxViewSettings->get();
+ ((SwXViewSettings*)pSettings)->Invalidate();
+ delete pxViewSettings;
+ }
+ if(pxTextViewCursor)
+ {
+ text::XTextViewCursor* pCrsr = pxTextViewCursor->get();
+ ((SwXTextViewCursor*)pCrsr)->Invalidate();
+ delete pxTextViewCursor;
+ }
+}
+/* -----------------------------18.05.00 10:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< uno::Type > SAL_CALL SwXTextView::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
+{
+// uno::Sequence< uno::Type > aViewTypes = SwXTextViewBaseClass::getTypes();
+ uno::Sequence< uno::Type > aBaseTypes = SfxBaseController::getTypes();
+
+ long nIndex = aBaseTypes.getLength();
+ aBaseTypes.realloc(
+ aBaseTypes.getLength() + 5 );
+
+ uno::Type* pBaseTypes = aBaseTypes.getArray();
+ pBaseTypes[nIndex++] = ::getCppuType((Reference<view::XSelectionSupplier >*)0);
+ pBaseTypes[nIndex++] = ::getCppuType((Reference<lang::XServiceInfo >*)0);
+ pBaseTypes[nIndex++] = ::getCppuType((Reference<view::XControlAccess >*)0);
+ pBaseTypes[nIndex++] = ::getCppuType((Reference<text::XTextViewCursorSupplier>*)0);
+ pBaseTypes[nIndex++] = ::getCppuType((Reference<view::XViewSettingsSupplier >*)0);
+ return aBaseTypes;
+}
+/* -----------------------------18.05.00 10:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< sal_Int8 > SAL_CALL SwXTextView::getImplementationId( ) throw(::com::sun::star::uno::RuntimeException)
+{
+ static uno::Sequence< sal_Int8 > aId( 16 );
+ static BOOL bInit = FALSE;
+ if(!bInit)
+ rtl_createUuid( (sal_uInt8 *)aId.getArray(), 0, sal_True );
+ return aId;
+}
+/* -----------------------------18.05.00 10:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SAL_CALL SwXTextView::acquire( )throw()
+{
+ SfxBaseController::acquire();
+}
+/* -----------------------------18.05.00 10:18--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SAL_CALL SwXTextView::release( )throw()
+{
+ SfxBaseController::release();
+}
+/* -----------------------------18.05.00 10:23--------------------------------
+
+ ---------------------------------------------------------------------------*/
+uno::Any SAL_CALL SwXTextView::queryInterface( const uno::Type& aType )
+ throw (RuntimeException)
+{
+ uno::Any aRet;
+ if(aType == ::getCppuType((Reference<view::XSelectionSupplier >*)0))
+ {
+ Reference<view::XSelectionSupplier> xRet = this;
+ aRet.setValue(&xRet, aType);
+ }
+ else if(aType == ::getCppuType((Reference<lang::XServiceInfo >*)0))
+ {
+ Reference<lang::XServiceInfo> xRet = this;
+ aRet.setValue(&xRet, aType);
+ }
+ else if(aType == ::getCppuType((Reference<view::XControlAccess >*)0))
+ {
+ Reference<view::XControlAccess> xRet = this;
+ aRet.setValue(&xRet, aType);
+ }
+ else if(aType == ::getCppuType((Reference<text::XTextViewCursorSupplier>*)0))
+ {
+ Reference<text::XTextViewCursorSupplier> xRet = this;
+ aRet.setValue(&xRet, aType);
+ }
+ else if(aType == ::getCppuType((Reference<view::XViewSettingsSupplier >*)0))
+ {
+ Reference<view::XViewSettingsSupplier> xRet = this;
+ aRet.setValue(&xRet, aType);
+ }
+ else
+ aRet = SfxBaseController::queryInterface(aType);
+ return aRet;
+}
+/*-- 17.12.98 09:34:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextView::select(const uno::Any& aInterface) throw( lang::IllegalArgumentException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(GetView() && aInterface.getValueType().getTypeClass() == uno::TypeClass_INTERFACE)
+ {
+ Reference< uno::XInterface > xInterface = *(Reference< uno::XInterface > *)aInterface.getValue();
+ SwWrtShell& rSh = GetView()->GetWrtShell();
+ SwDoc* pDoc = GetView()->GetDocShell()->GetDoc();
+ Reference< lang::XUnoTunnel > xIfcTunnel(xInterface, uno::UNO_QUERY);
+ Reference< text::XTextCursor > xCrsr(xInterface, uno::UNO_QUERY);
+ Reference< container::XIndexAccess > xPosN(xInterface, uno::UNO_QUERY);
+ Reference< text::XTextRange > xPos(xInterface, uno::UNO_QUERY);
+
+ SwPaM * pPam = 0;
+ SwXTextRanges* pPosN = 0;
+ if(xCrsr.is())
+ {
+ //
+ SwXTextCursor* pCursor =
+ xIfcTunnel.is() ?
+ (SwXTextCursor*)xIfcTunnel->getSomething(SwXTextCursor::getUnoTunnelId())
+ : 0;
+
+ if(pCursor && pCursor->GetDoc() == GetView()->GetDocShell()->GetDoc())
+ pPam = lcl_createPamCopy(*((SwXTextCursor*)pCursor)->GetPaM());
+
+ }
+ else if(xPosN.is() &&
+ xIfcTunnel.is() &&
+ 0 != (pPosN = (SwXTextRanges*)xIfcTunnel->getSomething(SwXTextRanges::getUnoTunnelId())))
+ {
+ const SwUnoCrsr* pUnoCrsr = pPosN->GetCursor();
+ if(pUnoCrsr)
+ {
+ pPam = lcl_createPamCopy(*pUnoCrsr);
+ }
+ }
+ else if(xPos.is())
+ {
+ SwUnoInternalPaM aPam(*pDoc);
+ if(SwXTextRange::XTextRangeToSwPaM(aPam, xPos))
+ {
+ pPam = lcl_createPamCopy(aPam);
+ }
+ }
+ if(pPam)
+ {
+ rSh.EnterStdMode();
+ rSh.SetSelection(*pPam);
+ delete pPam;
+ return sal_True;
+ }
+ Reference< uno::XInterface > xFrm(xInterface, uno::UNO_QUERY);;
+
+ if(xFrm.is())
+ {
+ //
+ SwXFrame* pFrame = (SwXFrame*)
+ xIfcTunnel->getSomething(SwXFrame::getUnoTunnelId());
+
+ SwFrmFmt* pFrmFmt = pFrame ? pFrame->GetFrmFmt() : 0;
+ if(pFrmFmt && pFrmFmt->GetDoc() == pDoc)
+ {
+ sal_Bool bSuccess = rSh.GotoFly( pFrmFmt->GetName(), pFrame->GetFlyCntType());
+ if (bSuccess)
+ {
+ rSh.HideCrsr();
+ rSh.EnterSelFrmMode();
+ }
+ }
+ return sal_True;
+ }
+
+ Reference< text::XTextTable > xTbl(xInterface, uno::UNO_QUERY);;
+
+ if(xTbl.is())
+ {
+ SwXTextTable* pTable = (SwXTextTable*)
+ xIfcTunnel->getSomething(SwXTextTable::getUnoTunnelId());
+
+ SwFrmFmt* pTblFrmFmt = pTable ? ((SwXTextTable*)pTable)->GetFrmFmt() : 0;
+ if(pTblFrmFmt &&pTblFrmFmt->GetDoc() == pDoc)
+ {
+ rSh.EnterStdMode();
+ rSh.GotoTable(pTblFrmFmt->GetName());
+ }
+ return sal_True;
+ }
+
+ Reference< text::XTextContent > xBkm(xInterface, uno::UNO_QUERY);;
+
+ if(xBkm.is())
+ {
+ SwXBookmark* pBkm = (SwXBookmark*)
+ xIfcTunnel->getSomething(SwXBookmark::getUnoTunnelId());
+ if(pBkm && pBkm->GetDoc() == pDoc)
+ {
+
+ sal_uInt16 nFndPos = rSh.FindBookmark(pBkm->getName());
+
+ if( USHRT_MAX != nFndPos )
+ {
+ rSh.EnterStdMode();
+ rSh.GotoBookmark( nFndPos );
+ }
+ return sal_True;
+ }
+ }
+ // IndexMark, sdbcx::Index, TextField, Draw, Section, text::Footnote, text::Paragraph
+ //
+
+ Reference< drawing::XShapes > xShapeColl( xInterface, uno::UNO_QUERY );
+ Reference< beans::XPropertySet > xTmpProp(xInterface, uno::UNO_QUERY);
+ SwXShape* pSwXShape = (SwXShape*)
+ xIfcTunnel->getSomething(SwXShape::getUnoTunnelId());
+ SvxShape* pSvxShape = 0;
+ if(pSwXShape)
+ {
+ Reference< uno::XAggregation > xAgg = pSwXShape->GetAggregationInterface();
+ if(xAgg.is())
+ {
+ pSvxShape = (SvxShape*)xIfcTunnel->getSomething(SvxShape::getUnoTunnelId());
+ }
+ }
+
+ if ( pSvxShape || xShapeColl.is() ) // Drawing drawing::Layer
+ {
+ SdrView* pDrawView = rSh.GetDrawView();
+ if (pDrawView)
+ {
+ pDrawView->EndTextEdit();
+ pDrawView->UnmarkAll();
+
+ if (pSvxShape) // einzelnes Shape
+ {
+ SdrObject *pObj = pSvxShape->GetSdrObject();
+ if (pObj)
+ {
+// lcl_ShowObject( *pViewSh, *pDrawView, pObj );
+ SdrPageView* pPV = pDrawView->GetPageViewPvNum(0);
+ if ( pPV && pObj->GetPage() == pPV->GetPage() )
+ {
+ pDrawView->MarkObj( pObj, pPV );
+ }
+ }
+ }
+ else // Shape Collection
+ {
+ SdrPageView* pPV = NULL;
+ long nCount = xShapeColl->getCount();
+ for ( long i = 0; i < nCount; i++ )
+ {
+ Reference< drawing::XShape > xShapeInt;
+ uno::Any aAny = xShapeColl->getByIndex(i);
+ if ( aAny.getValueType() == ::getCppuType((Reference<drawing::XShape>*)0))
+ xShapeInt = *((Reference< drawing::XShape > *) aAny.getValue());
+ if (xShapeInt.is())
+ {
+ Reference< lang::XUnoTunnel> xShapeTunnel(xShapeInt, uno::UNO_QUERY);
+
+ SvxShape* pShape = xShapeTunnel.is() ?
+ (SvxShape*)xShapeTunnel->getSomething(SvxShape::getUnoTunnelId()) : 0;
+
+ if (pShape)
+ {
+ SdrObject *pObj = pShape->GetSdrObject();
+ if (pObj)
+ {
+ if (!pPV) // erstes Objekt
+ {
+// lcl_ShowObject( *pViewSh, *pDrawView, pObj );
+ pPV = pDrawView->GetPageViewPvNum(0);
+ }
+ if ( pPV && pObj->GetPage() == pPV->GetPage() )
+ {
+ pDrawView->MarkObj( pObj, pPV );
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return sal_False;
+
+}
+/*-- 17.12.98 09:34:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+uno::Any SwXTextView::getSelection(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< uno::XInterface > aRef;
+ SwView* pView = ((SwXTextView*)this)->GetView();
+ if(pView)
+ {
+ // ein interface aus der aktuellen Selektion erzeugen
+ SwWrtShell& rSh = pView->GetWrtShell();
+ ShellModes eSelMode = pView->GetShellMode();
+ switch(eSelMode)
+ {
+ case SEL_TABLE_TEXT :
+ {
+ if(rSh.GetTableCrsr())
+ {
+ DBG_ASSERT(rSh.GetTableFmt(), "kein Tabellenformat?");
+ Reference< text::XTextTableCursor > xCrsr = new SwXTextTableCursor(*rSh.GetTableFmt(),
+ rSh.GetTableCrsr());
+ aRef = Reference< uno::XInterface > (xCrsr, uno::UNO_QUERY);;
+ break;
+ }
+
+ }
+ // ohne Tabellenselektion wird der Text geliefert
+ //break;
+ case SEL_LIST_TEXT :
+ case SEL_TABLE_LIST_TEXT:
+ case SEL_TEXT :
+ {
+ Reference< container::XIndexAccess > xPos = new SwXTextRanges(rSh.GetCrsr());
+ aRef = Reference< uno::XInterface >(xPos, uno::UNO_QUERY);
+ }
+ break;
+ case SEL_FRAME :
+ case SEL_GRAPHIC :
+ case SEL_OBJECT :
+ {
+ //Get FlyFrameFormat; fuer UI Macro Anbindung an Flys
+ const SwFrmFmt* pFmt = rSh.GetFlyFrmFmt();
+ SwXFrame* pxFrame = (SwXFrame*)SwClientIter((SwFrmFmt&)*pFmt).
+ First(TYPE(SwXFrame));
+
+ if(pxFrame) //das einzige gemeinsame interface fuer alle Frames
+ {
+ aRef = Reference< uno::XInterface >((cppu::OWeakObject*)pxFrame, uno::UNO_QUERY);
+ }
+ else
+ {
+ if(SEL_FRAME == eSelMode)
+ {
+ Reference< text::XTextFrame > xFrm = new SwXTextFrame((SwFrmFmt&)*pFmt);
+ aRef = Reference< uno::XInterface >(xFrm, uno::UNO_QUERY);
+ }
+ else if(SEL_GRAPHIC == eSelMode)
+ {
+ Reference< text::XTextContent > xFrm = new SwXTextGraphicObject((SwFrmFmt&)*pFmt);
+ aRef = xFrm;
+ }
+ else
+ {
+ Reference< text::XTextContent > xFrm = new SwXTextEmbeddedObject((SwFrmFmt&)*pFmt);
+ aRef = xFrm;
+ }
+ }
+ }
+ break;
+ case SEL_DRAW :
+ case SEL_DRAW_CTRL :
+ case SEL_DRAW_FORM :
+ case SEL_DRAWTEXT :
+ case SEL_BEZIER :
+ {
+ Reference< drawing::XDrawPageSupplier > xPageSupp;
+ Reference< frame::XModel > xModel = pView->GetDocShell()->GetBaseModel();
+ Reference< lang::XUnoTunnel > xModelTunnel(xModel, uno::UNO_QUERY);
+ SwXTextDocument* pTextDoc = (SwXTextDocument*)xModelTunnel->
+ getSomething(SwXTextDocument::getUnoTunnelId());
+
+ SwFmDrawPage* pSvxDrawPage = pTextDoc->GetDrawPage()->GetSvxPage();
+ Reference< drawing::XShapes > xShCol = new SvxShapeCollection();
+
+ const SdrMarkList& rMarkList = rSh.GetDrawView()->GetMarkList();
+ for(sal_uInt16 i = 0; i < rMarkList.GetMarkCount(); i++)
+ {
+ SdrObject* pObj = rMarkList.GetMark(i)->GetObj();
+ Reference< uno::XInterface > xInt = pSvxDrawPage->GetInterface( pObj );
+ Reference< drawing::XShape > xShape(xInt, uno::UNO_QUERY);;
+ xShCol->add(xShape);
+ }
+ aRef = Reference< uno::XInterface >(xShCol, uno::UNO_QUERY);
+ }
+ break;
+ }
+ }
+ uno::Any aRet(&aRef, ::getCppuType((Reference<uno::XInterface>*)0));
+ return aRet;
+}
+/*-- 17.12.98 09:34:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextView::addSelectionChangeListener(
+ const Reference< view::XSelectionChangeListener > & rxListener)
+ throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+
+ Reference< view::XSelectionChangeListener > * pInsert = new Reference< view::XSelectionChangeListener > ;
+ *pInsert = rxListener;
+ aSelChangedListeners.Insert(pInsert, aSelChangedListeners.Count());
+}
+/*-- 17.12.98 09:34:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextView::removeSelectionChangeListener(
+ const Reference< view::XSelectionChangeListener > & rxListener)
+ throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRemoved = sal_False;
+ view::XSelectionChangeListener* pLeft = rxListener.get();
+ for(sal_uInt16 i = 0; i < aSelChangedListeners.Count(); i++)
+ {
+ Reference< view::XSelectionChangeListener > * pElem = aSelChangedListeners.GetObject(i);
+ view::XSelectionChangeListener* pRight = pElem->get();
+ if(pLeft == pRight)
+ {
+ aSelChangedListeners.Remove(i);
+ bRemoved = sal_True;
+ delete pElem;
+ }
+ }
+ if(!bRemoved)
+ throw uno::RuntimeException();
+}
+/*-- 17.12.98 09:34:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< awt::XControl > SwXTextView::getControl(const Reference< awt::XControlModel > & xModel)
+ throw( container::NoSuchElementException, uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< awt::XControl > xRet;
+
+ ViewShell *pVSh = 0;
+ SwView* pView = ((SwXTextView*)this)->GetView();
+ if(pView)
+ {
+ SdrModel* pModel = pView->GetDocShell()->GetDoc()->GetDrawModel();
+ if(pModel)
+ {
+ SdrPage* pPage = pModel->GetPage( 0 );
+ Window *pWin = pView->GetWrtShell().GetWin();
+ sal_uInt32 nCount = pPage->GetObjCount();
+ for( sal_uInt32 i=0; i< nCount; i++ )
+ {
+ SdrObject* pObj = pPage->GetObj(i);
+ SdrUnoObj *pFormObj = PTR_CAST( SdrUnoObj, pObj );
+ SdrObjGroup* pGroup;
+ if( pFormObj )
+ {
+ Reference< awt::XControlModel > xCM = pFormObj->GetUnoControlModel();
+ if( xCM.is() && xModel == xCM )
+ {
+ xRet = pFormObj->GetUnoControl( pWin );
+ break;
+ }
+ }
+ else if(0 != (pGroup = PTR_CAST( SdrObjGroup, pObj )))
+ {
+ if(lcl_FindObjInGroup(xRet, pGroup, xModel, pWin))
+ break;
+ }
+ }
+ }
+ }
+ return xRet;
+}
+/*-- 17.12.98 09:34:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextViewCursor > SwXTextView::getViewCursor(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SwView* pView = ((SwXTextView*)this)->GetView();
+ if(pView)
+ {
+ if(!pxTextViewCursor)
+ {
+ ((SwXTextView*)this)->pxTextViewCursor = new Reference< text::XTextViewCursor > ;
+ *pxTextViewCursor = new SwXTextViewCursor(pView);
+ }
+ return *pxTextViewCursor;
+ }
+ else
+ throw uno::RuntimeException();
+ return Reference< text::XTextViewCursor > ();
+}
+/*-- 17.12.98 09:34:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< beans::XPropertySet > SwXTextView::getViewSettings(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ {
+ if(!pxViewSettings)
+ {
+ ((SwXTextView*)this)->pxViewSettings = new Reference< beans::XPropertySet > ;
+ *pxViewSettings = new SwXViewSettings(sal_False, pView);
+ }
+ }
+ else
+ throw uno::RuntimeException();
+ return *pxViewSettings;
+}
+
+/*-- 17.12.98 09:34:29---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextView::NotifySelChanged()
+{
+ Reference< uno::XInterface > xInt = (cppu::OWeakObject*)(SfxBaseController*)this;
+
+ lang::EventObject aEvent(xInt);
+
+ sal_uInt16 nCount = aSelChangedListeners.Count();
+ for ( sal_uInt16 i = nCount; i--; )
+ {
+ Reference< view::XSelectionChangeListener > *pObj = aSelChangedListeners[i];
+ (*pObj)->selectionChanged(aEvent);
+ }
+}
+/* -----------------------------06.04.00 11:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXTextView::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXTextView");
+}
+/* -----------------------------06.04.00 11:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXTextView::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.TextView") == rServiceName;
+}
+/* -----------------------------06.04.00 11:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXTextView::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.TextView");
+ return aRet;
+}
+
+/******************************************************************
+ * SwXTextViewCursor
+ ******************************************************************/
+/*-- 17.12.98 09:36:23---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXTextViewCursor::SwXTextViewCursor(SwView* pVw) :
+ pView(pVw),
+ aPropSet(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_TEXT_CURSOR))
+{
+
+}
+/*-- 17.12.98 09:36:24---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwXTextViewCursor::~SwXTextViewCursor()
+{
+}
+/*-- 17.12.98 09:36:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::isVisible(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+ return sal_True;
+}
+/*-- 17.12.98 09:36:25---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::setVisible(sal_Bool bVisible) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+/*-- 17.12.98 09:36:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+awt::Point SwXTextViewCursor::getPosition(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ awt::Point aRet;
+ if(pView)
+ {
+ const SwWrtShell& rSh = pView->GetWrtShell();
+ const SvxULSpaceItem& rUL = rSh.GetPageDesc( rSh.GetCurPageDesc()
+ ).GetMaster().GetULSpace();
+ SwRect aCharRect(rSh.GetCharRect());
+ long nY = aCharRect.Top() -
+ (rUL.GetUpper() + DOCUMENTBORDER);
+ aRet.Y = TWIP_TO_MM100(nY);
+ const SvxLRSpaceItem& rLR = rSh.GetPageDesc( rSh.GetCurPageDesc()
+ ).GetMaster().GetLRSpace();
+ long nX = aCharRect.Left() -
+ (rLR.GetLeft() + DOCUMENTBORDER);
+ aRet.X = TWIP_TO_MM100(nX);
+ }
+ else
+ throw uno::RuntimeException();
+ return aRet;
+}
+/*-- 17.12.98 09:36:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::collapseToStart(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ if(rSh.HasSelection())
+ {
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ if(*pShellCrsr->GetPoint() > *pShellCrsr->GetMark())
+ pShellCrsr->Exchange();
+ pShellCrsr->DeleteMark();
+ rSh.EnterStdMode();
+ rSh.SetSelection(*pShellCrsr);
+ }
+ }
+ else
+ throw uno::RuntimeException();
+}
+/*-- 17.12.98 09:36:26---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::collapseToEnd(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ if(rSh.HasSelection())
+ {
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ if(*pShellCrsr->GetPoint() < *pShellCrsr->GetMark())
+ pShellCrsr->Exchange();
+ pShellCrsr->DeleteMark();
+ rSh.EnterStdMode();
+ rSh.SetSelection(*pShellCrsr);
+ }
+ }
+ else
+ throw uno::RuntimeException();
+}
+/*-- 17.12.98 09:36:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::isCollapsed(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ const SwWrtShell& rSh = pView->GetWrtShell();
+ bRet = rSh.HasSelection();
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+
+}
+/*-- 17.12.98 09:36:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ for( sal_uInt16 i = 0; i < nCount; i++ )
+ bRet = pView->GetWrtShell().Left( bExpand, 1, sal_True );
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:27---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::goRight(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ for( sal_uInt16 i = 0; i < nCount; i++ )
+ bRet = pView->GetWrtShell().Right( bExpand, 1, sal_True );
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+
+}
+/* -----------------08.03.99 11:18-------------------
+ *
+ * --------------------------------------------------*/
+void SwXTextViewCursor::gotoRange(const Reference< text::XTextRange > & xRange, sal_Bool bExpand) throw(::com::sun::star::uno::RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView && xRange.is())
+ {
+ ShellModes eSelMode = pView->GetShellMode();
+ // ein interface aus der aktuellen Selektion erzeugen
+ SwWrtShell& rSh = pView->GetWrtShell();
+ rSh.EnterStdMode();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwPaM aOwnPaM(*pShellCrsr->GetPoint());
+ if(pShellCrsr->HasMark())
+ {
+ aOwnPaM.SetMark();
+ *aOwnPaM.GetMark() = *pShellCrsr->GetMark();
+ }
+
+ Reference<lang::XUnoTunnel> xRangeTunnel( xRange, uno::UNO_QUERY);
+ SwXTextRange* pRange = 0;
+ SwXTextCursor* pCursor = 0;
+ if(xRangeTunnel.is())
+ {
+ pRange = (SwXTextRange*)xRangeTunnel->getSomething(
+ SwXTextRange::getUnoTunnelId());
+ pCursor = (SwXTextCursor*)xRangeTunnel->getSomething(
+ SwXTextCursor::getUnoTunnelId());
+ }
+
+ const sal_uInt16 nFrmType = rSh.GetFrmType(0,sal_True);
+
+ SwStartNodeType eSearchNodeType = SwNormalStartNode;
+ if(nFrmType & FRMTYPE_FLY_ANY)
+ eSearchNodeType = SwFlyStartNode;
+ else if(nFrmType &FRMTYPE_HEADER)
+ eSearchNodeType = SwHeaderStartNode;
+ else if(nFrmType & FRMTYPE_FOOTER)
+ eSearchNodeType = SwFooterStartNode;
+ else if(nFrmType & FRMTYPE_TABLE)
+ eSearchNodeType = SwTableBoxStartNode;
+ else if(nFrmType & FRMTYPE_FOOTNOTE)
+ eSearchNodeType = SwFootnoteStartNode;
+
+ const SwStartNode* pOwnStartNode = aOwnPaM.GetNode()->
+ FindSttNodeByType(eSearchNodeType);
+
+ const SwNode* pSrcNode = 0;
+ if(pCursor && pCursor->GetCrsr())
+ {
+ pSrcNode = pCursor->GetCrsr()->GetNode();
+ }
+ else if(pRange && pRange->GetBookmark())
+ {
+ SwBookmark* pBkm = pRange->GetBookmark();
+ pSrcNode = &pBkm->GetPos().nNode.GetNode();
+ }
+ const SwStartNode* pTmp = pSrcNode ? pSrcNode->FindSttNodeByType(eSearchNodeType) : 0;
+
+ //SectionNodes ueberspringen
+ while(pTmp && pTmp->IsSectionNode())
+ {
+ pTmp = pTmp->FindStartNode();
+ }
+ //ohne Expand darf mit dem ViewCursor ueberall hingesprungen werden
+ //mit Expand nur in der gleichen Umgebung
+ if(bExpand &&
+ (pOwnStartNode != pTmp ||
+ (eSelMode != SEL_LIST_TEXT &&
+ eSelMode != SEL_TABLE_LIST_TEXT &&
+ eSelMode != SEL_TEXT)))
+ throw uno::RuntimeException();
+
+ //jetzt muss die Selektion erweitert werden
+ if(bExpand)
+ {
+ // der Cursor soll alles einschliessen, was bisher von ihm und dem uebergebenen
+ // Range eingeschlossen wurde
+ SwPosition aOwnLeft(*aOwnPaM.GetPoint());
+ SwPosition aOwnRight(aOwnPaM.HasMark() ? *aOwnPaM.GetMark() : aOwnLeft);
+ if(aOwnRight < aOwnLeft)
+ {
+ SwPosition aTmp = aOwnLeft;
+ aOwnLeft = aOwnRight;
+ aOwnRight = aTmp;
+ }
+ SwPosition* pParamLeft;
+ SwPosition* pParamRight;
+ if(pCursor)
+ {
+ const SwUnoCrsr* pTmp = pCursor->GetCrsr();
+ pParamLeft = new SwPosition(*pTmp->GetPoint());
+ pParamRight = new SwPosition(pTmp->HasMark() ? *pTmp->GetMark() : *pParamLeft);
+ }
+ else
+ {
+ SwBookmark* pBkm = pRange->GetBookmark();
+ pParamLeft = new SwPosition(pBkm->GetPos());
+ pParamRight = new SwPosition(pBkm->GetOtherPos() ? *pBkm->GetOtherPos() : *pParamLeft);
+ }
+ if(*pParamRight < *pParamLeft)
+ {
+ SwPosition* pTmp = pParamLeft;
+ pParamLeft = pParamRight;
+ pParamRight = pTmp;
+ }
+ // jetzt sind vier SwPositions da, zwei davon werden gebraucht, also welche?
+ if(aOwnRight < *pParamRight)
+ *aOwnPaM.GetPoint() = aOwnRight;
+ else
+ *aOwnPaM.GetPoint() = *pParamRight;
+ aOwnPaM.SetMark();
+ if(aOwnLeft < *pParamLeft)
+ *aOwnPaM.GetMark() = *pParamLeft;
+ else
+ *aOwnPaM.GetMark() = aOwnLeft;
+
+ delete pParamLeft;
+ delete pParamRight;
+ }
+ else
+ {
+ //der Cursor soll dem uebergebenen Range entsprechen
+ if(pCursor)
+ {
+ const SwUnoCrsr* pTmp = pCursor->GetCrsr();
+ *aOwnPaM.GetPoint() = *pTmp->GetPoint();
+ if(pTmp->HasMark())
+ {
+ aOwnPaM.SetMark();
+ *aOwnPaM.GetMark() = *pTmp->GetMark();
+ }
+ else
+ aOwnPaM.DeleteMark();
+ }
+ else
+ {
+ SwBookmark* pBkm = pRange->GetBookmark();
+ *aOwnPaM.GetPoint() = pBkm->GetPos();
+ if(pBkm->GetOtherPos())
+ {
+ aOwnPaM.SetMark();
+ *aOwnPaM.GetMark() = *pBkm->GetOtherPos();
+ }
+ else
+ aOwnPaM.DeleteMark();
+ }
+ }
+ rSh.SetSelection(aOwnPaM);
+ }
+ else
+ throw uno::RuntimeException();
+
+}
+/*-- 17.12.98 09:36:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::gotoStart(sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ pView->GetWrtShell().SttDoc( bExpand );
+ else
+ throw uno::RuntimeException();
+}
+/*-- 17.12.98 09:36:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::gotoEnd(sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ pView->GetWrtShell().EndDoc( bExpand );
+ else
+ throw uno::RuntimeException();
+}
+/*-- 17.12.98 09:36:28---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToFirstPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ bRet = pView->GetWrtShell().SttDoc();
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:29---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToLastPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ bRet = rSh.EndDoc();
+ rSh.SttPg();
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:30---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToPage(sal_Int16 nPage) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ bRet = pView->GetWrtShell().GotoPage(nPage);
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:30---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToNextPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ pView->GetWrtShell().SttNxtPg();
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:31---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToPreviousPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ bRet = pView->GetWrtShell().EndPrvPg();
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:32---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToEndOfPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ bRet = pView->GetWrtShell().EndPg();
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:32---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::jumpToStartOfPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ bRet = pView->GetWrtShell().SttPg();
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/* -----------------04.10.99 14:21-------------------
+
+ --------------------------------------------------*/
+sal_Int16 SwXTextViewCursor::getPage(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ short nRet = 0;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ sal_uInt16 nPage, nLogPage;
+ rSh.GetPageNum( nPage, nLogPage,
+ rSh.IsCrsrVisible(), sal_False);
+ nRet = (short)nPage;
+ }
+ else
+ throw uno::RuntimeException();
+ return nRet;
+}
+/*-- 17.12.98 09:36:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::screenDown(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ SfxRequest aReq(FN_PAGEDOWN, SFX_CALLMODE_SLOT, pView->GetPool());
+ pView->Execute(aReq);
+ const SfxPoolItem* pRet = aReq.GetReturnValue();
+ bRet = pRet && ((const SfxBoolItem*)pRet)->GetValue();
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 09:36:33---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::screenUp(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ SfxRequest aReq(FN_PAGEUP, SFX_CALLMODE_SLOT, pView->GetPool());
+ pView->Execute(aReq);
+ const SfxPoolItem* pRet = aReq.GetReturnValue();
+ bRet = pRet && ((const SfxBoolItem*)pRet)->GetValue();
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 17.12.98 11:59:05---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XText > SwXTextViewCursor::getText(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< text::XText > xRet;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwDoc* pDoc = pView->GetDocShell()->GetDoc();
+ Reference< text::XTextRange > xRg = ::CreateTextRangeFromPosition(pDoc,
+ *pShellCrsr->Start(), 0);
+ xRet = xRg->getText();
+ }
+ else
+ throw uno::RuntimeException();
+ return xRet;
+}
+/*-- 17.12.98 11:59:05---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextRange > SwXTextViewCursor::getStart(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< text::XTextRange > xRet;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwDoc* pDoc = pView->GetDocShell()->GetDoc();
+ xRet = ::CreateTextRangeFromPosition(pDoc,
+ *pShellCrsr->Start(), 0);
+ }
+ else
+ throw uno::RuntimeException();
+ return xRet;
+}
+/*-- 17.12.98 11:59:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< text::XTextRange > SwXTextViewCursor::getEnd(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Reference< text::XTextRange > xRet;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwDoc* pDoc = pView->GetDocShell()->GetDoc();
+ xRet = ::CreateTextRangeFromPosition(pDoc,
+ *pShellCrsr->End(), 0);
+ }
+ else
+ throw uno::RuntimeException();
+ return xRet;
+}
+/* -----------------12.10.99 09:03-------------------
+
+ --------------------------------------------------*/
+OUString SwXTextViewCursor::getString(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ OUString uRet;
+ if(pView)
+ {
+ ShellModes eSelMode = pView->GetShellMode();
+ switch(eSelMode)
+
+ case SEL_LIST_TEXT :
+ case SEL_TABLE_LIST_TEXT:
+ case SEL_TEXT :
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwXTextCursor::getTextFromPam(*pShellCrsr, uRet);
+ }
+ }
+ return uRet;
+}
+/*-- 17.12.98 11:59:06---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::setString(const OUString& aString) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ DBG_WARNING("not implemented")
+}
+
+/*-- 29.06.00 17:33:38---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Reference< XPropertySetInfo > SwXTextViewCursor::getPropertySetInfo( ) throw(RuntimeException)
+{
+ static Reference< XPropertySetInfo > xRef = aPropSet.getPropertySetInfo();
+ return xRef;
+}
+/*-- 29.06.00 17:33:39---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::setPropertyValue( const OUString& rPropertyName, const Any& aValue )
+ throw(UnknownPropertyException, PropertyVetoException,
+ IllegalArgumentException, WrappedTargetException, RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwXTextCursor::SetPropertyValue(*pShellCrsr, aPropSet, rPropertyName, aValue );
+ }
+ else
+ throw RuntimeException();
+}
+/*-- 29.06.00 17:33:39---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXTextViewCursor::getPropertyValue( const OUString& rPropertyName )
+ throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Any aRet;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ aRet = SwXTextCursor::GetPropertyValue( *pShellCrsr, aPropSet, rPropertyName);
+ }
+ else
+ throw RuntimeException();
+ return aRet;
+}
+/*-- 29.06.00 17:33:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::addPropertyChangeListener(
+ const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener )
+ throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+{
+}
+/*-- 29.06.00 17:33:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::removePropertyChangeListener(
+ const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener )
+ throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+{
+}
+/*-- 29.06.00 17:33:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::addVetoableChangeListener(
+ const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener )
+ throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+{
+}
+/*-- 29.06.00 17:33:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+{
+}
+/*-- 29.06.00 17:33:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+PropertyState SwXTextViewCursor::getPropertyState( const OUString& rPropertyName ) throw(UnknownPropertyException, RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ PropertyState eState;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ eState = SwXTextCursor::GetPropertyState( *pShellCrsr, aPropSet, rPropertyName);
+ }
+ else
+ throw RuntimeException();
+ return eState;
+}
+/*-- 29.06.00 17:33:42---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Sequence< PropertyState > SwXTextViewCursor::getPropertyStates(
+ const Sequence< OUString >& rPropertyNames ) throw(UnknownPropertyException, RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ Sequence< PropertyState > aRet;
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ aRet = SwXTextCursor::GetPropertyStates(*pShellCrsr, aPropSet, rPropertyNames);
+ }
+ return aRet;
+}
+/*-- 29.06.00 17:33:42---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::setPropertyToDefault( const OUString& rPropertyName )
+ throw(UnknownPropertyException, RuntimeException)
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ SwXTextCursor::SetPropertyToDefault( *pShellCrsr, aPropSet, rPropertyName);
+ }
+}
+/*-- 29.06.00 17:33:43---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+Any SwXTextViewCursor::getPropertyDefault( const OUString& rPropertyName )
+ throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+{
+ Any aRet;
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ {
+ SwWrtShell& rSh = pView->GetWrtShell();
+ SwPaM* pShellCrsr = rSh.GetCrsr();
+ aRet = SwXTextCursor::GetPropertyDefault( *pShellCrsr, aPropSet, rPropertyName);
+ }
+ return aRet;
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.76 2000/09/18 16:06:16 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.75 2000/09/07 15:59:34 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.74 2000/07/10 12:32:19 os
+ chg: acquire/release don't throw exceptions
+
+ Revision 1.73 2000/06/29 16:45:50 os
+ #75928# XTextViewCursor implements XPropertySet/XPropertyState
+
+ Revision 1.72 2000/06/27 07:57:29 obo
+ #65293#
+
+ Revision 1.71 2000/05/24 13:36:13 hr
+ exception specifications
+
+ Revision 1.70 2000/05/23 07:39:15 os
+ SwXTextView : inheritance changed
+
+ Revision 1.69 2000/05/18 08:35:56 os
+ XInterface - mothods
+
+ Revision 1.68 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.67 2000/05/10 11:55:31 os
+ Basic API removed
+
+ Revision 1.66 2000/04/26 15:00:45 os
+ GetName() returns const String&
+
+ Revision 1.65 2000/04/11 08:05:00 os
+ UNICODE
+
+ Revision 1.64 2000/03/27 10:36:31 os
+ UNO III
+
+ Revision 1.63 2000/03/21 15:39:44 os
+ UNOIII
+
+ Revision 1.62 2000/02/11 14:59:57 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.61 2000/01/03 12:16:26 os
+ #71284# ::select: query for SwXShape-base class before calling getImplementation()
+
+
+ Revision 1.60 1999/11/25 15:37:50 os
+ headers corrected
+
+ Revision 1.59 1999/11/19 16:38:03 os
+ modules renamed
+
+ Revision 1.58 1999/11/03 14:39:20 os
+ getString:: convert to UNICODE
+
+ Revision 1.57 1999/10/12 07:24:19 os
+ #69115# API parameter in GotoLeftRight/LRMargin; getText/getStart+End/collapse
+
+ Revision 1.56 1999/10/05 10:22:04 os
+ new method: getPage
+
+ Revision 1.55 1999/09/28 09:12:43 os
+ #67167# view::XLineCursor, view::XViewCursor inherited
+
+ Revision 1.54 1999/09/07 05:59:43 os
+ #67887# frame::XDispatchProvider
+
+ Revision 1.53 1999/08/31 09:32:00 OS
+ #68459# ::select: correct conversion from uno::Any
+
+
+ Rev 1.52 31 Aug 1999 11:32:00 OS
+ #68459# ::select: correct conversion from uno::Any
+
+ Rev 1.51 26 Aug 1999 11:44:10 HR
+ select/getSelection corrected
+
+ Rev 1.50 25 Aug 1999 16:47:32 OS
+ getSelection/select with uno::Any
+
+ Rev 1.49 16 Aug 1999 17:21:14 OS
+ #65953# select(): shapes implemented
+=======
+/*-- 28.09.99 08:31:19---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ for( sal_uInt16 i = 0; i < nCount; i++ )
+ bRet = pView->GetWrtShell().Down( bExpand, 1, sal_True );
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 28.09.99 08:31:20---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ for( sal_uInt16 i = 0; i < nCount; i++ )
+ bRet = pView->GetWrtShell().Up( bExpand, 1, sal_True );
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 28.09.99 08:31:20---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::isAtStartOfLine(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ bRet = pView->GetWrtShell().IsAtLeftMargin();
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 28.09.99 08:31:21---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+sal_Bool SwXTextViewCursor::isAtEndOfLine(void) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ sal_Bool bRet = sal_False;
+ if(pView)
+ {
+ bRet = pView->GetWrtShell().IsAtRightMargin(sal_True);
+ }
+ else
+ throw uno::RuntimeException();
+ return bRet;
+}
+/*-- 28.09.99 08:31:21---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::gotoEndOfLine(sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ pView->GetWrtShell().RightMargin(bExpand, sal_True);
+ else
+ throw uno::RuntimeException();
+}
+/*-- 28.09.99 08:31:22---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwXTextViewCursor::gotoStartOfLine(sal_Bool bExpand) throw( uno::RuntimeException )
+{
+ ::vos::OGuard aGuard(Application::GetSolarMutex());
+ if(pView)
+ pView->GetWrtShell().LeftMargin(bExpand, sal_True);
+ else
+ throw uno::RuntimeException();
+}
+/* -----------------------------06.04.00 11:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+OUString SwXTextViewCursor::getImplementationName(void) throw( RuntimeException )
+{
+ return C2U("SwXTextViewCursor");
+}
+/* -----------------------------06.04.00 11:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+BOOL SwXTextViewCursor::supportsService(const OUString& rServiceName) throw( RuntimeException )
+{
+ return C2U("com.sun.star.text.TextViewCursor") == rServiceName;
+}
+/* -----------------------------06.04.00 11:07--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence< OUString > SwXTextViewCursor::getSupportedServiceNames(void) throw( RuntimeException )
+{
+ Sequence< OUString > aRet(1);
+ OUString* pArray = aRet.getArray();
+ pArray[0] = C2U("com.sun.star.text.TextViewCursor");
+ return aRet;
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.76 2000/09/18 16:06:16 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.75 2000/09/07 15:59:34 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.74 2000/07/10 12:32:19 os
+ chg: acquire/release don't throw exceptions
+
+ Revision 1.73 2000/06/29 16:45:50 os
+ #75928# XTextViewCursor implements XPropertySet/XPropertyState
+
+ Revision 1.72 2000/06/27 07:57:29 obo
+ #65293#
+
+ Revision 1.71 2000/05/24 13:36:13 hr
+ exception specifications
+
+ Revision 1.70 2000/05/23 07:39:15 os
+ SwXTextView : inheritance changed
+
+ Revision 1.69 2000/05/18 08:35:56 os
+ XInterface - mothods
+
+ Revision 1.68 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.67 2000/05/10 11:55:31 os
+ Basic API removed
+
+ Revision 1.66 2000/04/26 15:00:45 os
+ GetName() returns const String&
+
+ Revision 1.65 2000/04/11 08:05:00 os
+ UNICODE
+
+ Revision 1.64 2000/03/27 10:36:31 os
+ UNO III
+
+ Revision 1.63 2000/03/21 15:39:44 os
+ UNOIII
+
+ Revision 1.62 2000/02/11 14:59:57 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.61 2000/01/03 12:16:26 os
+ #71284# ::select: query for SwXShape-base class before calling getImplementation()
+
+
+ Revision 1.60 1999/11/25 15:37:50 os
+ headers corrected
+
+ Revision 1.59 1999/11/19 16:38:03 os
+ modules renamed
+
+ Revision 1.58 1999/11/03 14:39:20 os
+ getString:: convert to UNICODE
+
+ Revision 1.57 1999/10/12 07:24:19 os
+ #69115# API parameter in GotoLeftRight/LRMargin; getText/getStart+End/collapse
+
+ Revision 1.56 1999/10/05 10:22:04 os
+ new method: getPage
+
+ Revision 1.55 1999/09/28 09:12:43 os
+ #67167# view::XLineCursor, view::XViewCursor inherited
+
+
+ Rev 1.48 13 Jul 1999 09:34:00 OS
+ getPosition etwas optimiert
+
+ Rev 1.47 07 Jul 1999 08:52:10 OS
+ #67471# view::XSelectionChangeListener now supported
+
+ Rev 1.46 22 Apr 1999 16:09:06 OS
+ #65194# throw -> throw
+
+ Rev 1.45 22 Apr 1999 15:28:52 OS
+ #65124# not implemented - nur noch DBG_WARNING
+
+ Rev 1.44 07 Apr 1999 10:26:32 OS
+ #60348# richtiges Shape liefern
+
+ Rev 1.43 15 Mar 1999 14:38:26 OS
+ #62845# Makro fuer ServiceInfo jetzt auch fuer OS/2
+
+ Rev 1.42 12 Mar 1999 09:57:24 OS
+ #62845# lang::XServiceInfo impl.
+
+ Rev 1.41 10 Mar 1999 16:19:38 OS
+ #63127# Controller-Methoden von der Basisklasse
+
+ Rev 1.40 09 Mar 1999 12:38:08 OS
+ #62393# gotoRange verbessert, #62008# Solar-Mutex
+
+ Rev 1.39 08 Mar 1999 07:43:02 MH
+ update 515
+
+ Rev 1.38 05 Mar 1999 08:51:46 OS
+ #62191# INT statt UINT
+
+ Rev 1.37 10 Feb 1999 16:15:26 OS
+// automatisch auskommentiert - [getIdlClass(es) or queryInterface] - Bitte XTypeProvider benutzen!
+// #52654# lang::XComponent im queryInterface
+
+
+ Rev 1.36 28 Jan 1999 16:27:50 OS
+ #56371# keine Objekte fuer DEBUG anlegen
+
+ Rev 1.35 27 Jan 1999 12:06:08 OS
+ #56371# TF_ONE51
+
+ Rev 1.34 27 Jan 1999 09:59:16 OS
+ #56371# TF_ONE51
+
+ Rev 1.33 17 Dec 1998 12:09:10 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.32 10 Dec 1998 15:54:04 OS
+ #56371# TF_ONE51 Zwischenstand
+
+ Rev 1.31 11 Nov 1998 10:58:06 AWO
+ Include fehlte
+
+ Rev 1.30 09 Nov 1998 14:44:10 OS
+ #58785# getSelection an der XTextView vollstaendig
+
+ Rev 1.29 04 Nov 1998 15:55:26 OS
+ #58289# getControl geht auch in Gruppen
+
+ Rev 1.28 05 Oct 1998 17:32:22 HR
+ UIK() Makro
+
+ Rev 1.27 01 Oct 1998 15:58:14 OM
+ #52654# SelectionChangeListener
+
+ Rev 1.26 01 Oct 1998 11:40:54 HR
+ Typo beseitigt
+
+ Rev 1.25 18 Sep 1998 11:40:56 OS
+ #56651# GotoBookmark optimiert
+
+ Rev 1.24 18 Sep 1998 09:31:34 OS
+ 52654# view::XScreenCursor
+
+ Rev 1.23 17 Sep 1998 15:53:38 OS
+ #52654# text::TextViewCursor(-Supplier)
+
+ Rev 1.22 07 Sep 1998 09:07:06 OS
+ #54862# add/removeSelectionChangeListener
+
+ Rev 1.21 10 Jul 1998 18:09:40 OS
+ PropertySetInfo und IdlClass static
+
+ Rev 1.20 08 Jul 1998 10:00:00 TJ
+ include
+
+ Rev 1.19 03 Jul 1998 07:22:40 OS
+ Ableitung von view::XControlAccess
+
+ Rev 1.18 18 Jun 1998 13:23:34 OS
+ include-Umstellung 396c
+
+ Rev 1.17 18 Jun 1998 09:23:14 OS
+ Ableitung von SfxOfficeDocController
+
+ Rev 1.16 11 Jun 1998 11:06:40 TJ
+ getActualViewData -> getViewData
+
+ Rev 1.15 11 Jun 1998 08:15:48 OS
+ Code-Kopie war nix#
+
+ Rev 1.14 04 Jun 1998 09:40:28 OS
+// automatisch auskommentiert - [getIdlClass(es) or queryInterface] - Bitte XTypeProvider benutzen!
+// getIdlClasses
+
+
+ Rev 1.13 02 Jun 1998 16:18:10 OS
+ 391-Anpassung
+
+ Rev 1.12 02 Jun 1998 15:50:34 OS
+ SwXTextView von frame::XController abgeleitet
+
+ Rev 1.11 26 May 1998 12:33:12 OS
+ SetSelection fuer Cursor
+
+ Rev 1.10 22 May 1998 15:15:24 OS
+ get/setSelection erweitert
+
+ Rev 1.9 14 May 1998 17:50:08 OS
+ div. Namensaenderungen
+
+ Rev 1.8 09 Apr 1998 15:10:34 OS
+ Uno-Umstellung
+
+ Rev 1.7 08 Apr 1998 12:52:24 OS
+ text::ViewSettings auch fuer die TextView; select fuer Frames u. text::Bookmarks
+
+ Rev 1.6 03 Apr 1998 14:37:52 OS
+ wieder aktiviert
+
+ Rev 1.5 30 Jan 1998 15:10:46 OS
+ wieder uebersetzbar
+
+ Rev 1.4 19 Jan 1998 14:58:04 OS
+ wieder uebersetzbar
+
+ Rev 1.3 08 Jan 1998 12:56:48 OS
+ UsrUik -> uno::Uik
+
+ Rev 1.2 19 Dec 1997 18:04:56 OS
+ Jahressicherung
+
+ Rev 1.1 17 Dec 1997 16:19:48 OS
+ Tabellenanfang
+
+ Rev 1.0 16 Dec 1997 11:52:34 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/utlui/attrdesc.cxx b/sw/source/ui/utlui/attrdesc.cxx
new file mode 100644
index 000000000000..730857ffc304
--- /dev/null
+++ b/sw/source/ui/utlui/attrdesc.cxx
@@ -0,0 +1,1367 @@
+/*************************************************************************
+ *
+ * $RCSfile: attrdesc.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXITEMITER_HXX //autogen
+#include <svtools/itemiter.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX //autogen wg. Application
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _SVX_ITEMTYPE_HXX
+#include <svx/itemtype.hxx>
+#endif
+
+#ifndef _GRFMGR_HXX
+#include <goodies/grfmgr.hxx>
+#endif
+
+#ifndef _FMTANCHR_HXX //autogen
+#include <fmtanchr.hxx>
+#endif
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _FCHRFMT_HXX //autogen
+#include <fchrfmt.hxx>
+#endif
+#ifndef _FMTSRND_HXX //autogen
+#include <fmtsrnd.hxx>
+#endif
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _FMTTSPLT_HXX //autogen
+#include <fmtlsplt.hxx>
+#endif
+#ifndef _FMTPDSC_HXX //autogen
+#include <fmtpdsc.hxx>
+#endif
+#ifndef _FMTCLDS_HXX //autogen
+#include <fmtclds.hxx>
+#endif
+#ifndef _FMTEIRO_HXX //autogen
+#include <fmteiro.hxx>
+#endif
+#ifndef _FMTURL_HXX //autogen
+#include <fmturl.hxx>
+#endif
+#ifndef _FMTHDFT_HXX //autogen
+#include <fmthdft.hxx>
+#endif
+#ifndef _FMTCNCT_HXX //autogen
+#include <fmtcnct.hxx>
+#endif
+#ifndef _FMTLINE_HXX
+#include <fmtline.hxx>
+#endif
+#ifndef _SWATRSET_HXX
+#include <swatrset.hxx>
+#endif
+#ifndef _PARATR_HXX
+#include <paratr.hxx>
+#endif
+#ifndef _GRFATR_HXX
+#include <grfatr.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _CHARFMT_HXX
+#include <charfmt.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _TOX_HXX
+#include <tox.hxx>
+#endif
+#ifndef _ATTRDESC_HRC
+#include <attrdesc.hrc>
+#endif
+#ifndef _FMTFTNTX_HXX //autogen
+#include <fmtftntx.hxx>
+#endif
+
+
+TYPEINIT2(SwFmtCharFmt,SfxPoolItem,SwClient);
+
+// erfrage die Attribut-Beschreibung
+void SwAttrSet::GetPresentation(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText ) const
+{
+static sal_Char __READONLY_DATA sKomma[] = ", ";
+
+ rText.Erase();
+ String aStr;
+ if( Count() )
+ {
+ SfxItemIter aIter( *this );
+ const International& rInt = Application::GetAppInternational();
+ while( TRUE )
+ {
+#if SUPD>546
+ aIter.GetCurItem()->GetPresentation( ePres, eCoreMetric,
+ ePresMetric, aStr,
+ &rInt );
+#else
+ aIter.GetCurItem()->GetPresentation( ePres, eCoreMetric,
+ ePresMetric, aStr );
+#endif
+ if( rText.Len() && aStr.Len() )
+ rText += String::CreateFromAscii(sKomma);
+ rText += aStr;
+ if( aIter.IsAtEnd() )
+ break;
+ aIter.NextItem();
+ }
+ }
+}
+
+
+void SwPageDesc::GetPresentation(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText ) const
+{
+ rText = GetName();
+}
+
+
+// ATT_CHARFMT *********************************************
+
+
+SfxItemPresentation SwFmtCharFmt::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ const SwCharFmt *pCharFmt = GetCharFmt();
+ if ( pCharFmt )
+ {
+ String aStr;
+ rText = SW_RESSTR(STR_CHARFMT );
+ pCharFmt->GetPresentation( ePres, eCoreUnit, ePresUnit, aStr );
+ rText += '(';
+ rText += aStr;
+ rText += ')';
+ }
+ else
+ rText = SW_RESSTR( STR_NO_CHARFMT );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+// ATT_INETFMT *********************************************
+
+
+SfxItemPresentation SwFmtINetFmt::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ rText = GetValue();
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+/*************************************************************************
+|* class SwFmtDrop
+*************************************************************************/
+
+
+SfxItemPresentation SwFmtDrop::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ rText.Erase();
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if ( GetLines() > 1 )
+ {
+ if ( GetChars() > 1 )
+ {
+ rText = String::CreateFromInt32( GetChars() );
+ rText += ' ';
+ }
+ rText += SW_RESSTR( STR_DROP_OVER );
+ rText += ' ';
+ rText += String::CreateFromInt32( GetLines() );
+ rText += ' ';
+ rText += SW_RESSTR( STR_DROP_LINES );
+ }
+ else
+ rText = SW_RESSTR( STR_NO_DROP_LINES );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+/*************************************************************************
+|* class SwRegisterItem
+*************************************************************************/
+
+
+SfxItemPresentation SwRegisterItem::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ XubString& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ return SFX_ITEM_PRESENTATION_NONE;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nId = GetValue() ? STR_REGISTER_ON : STR_REGISTER_OFF;
+ rText = SW_RESSTR( nId );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+/*************************************************************************
+|* class SwNumRuleItem
+*************************************************************************/
+
+
+SfxItemPresentation SwNumRuleItem::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ XubString& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ return SFX_ITEM_PRESENTATION_NONE;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if( GetValue().Len() )
+ (((rText = SW_RESSTR( STR_NUMRULE_ON )) +=
+ '(' ) += GetValue() ) += ')';
+ else
+ rText = SW_RESSTR( STR_NUMRULE_OFF );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+/******************************************************************************
+ * Frame-Attribute:
+ ******************************************************************************/
+
+
+SfxItemPresentation SwFmtFrmSize::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ {
+ rText.Erase();
+ break;
+ }
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ rText = SW_RESSTR( STR_FRM_WIDTH );
+ rText += ' ';
+ if ( GetWidthPercent() )
+ {
+ rText += String::CreateFromInt32(GetWidthPercent());
+ rText += '%';
+ }
+ else
+ {
+ rText += ::GetMetricText( GetWidth(), eCoreUnit, ePresUnit );
+ rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ }
+ if ( ATT_VAR_SIZE != GetSizeType() )
+ {
+ rText += ',';
+ rText += ' ';
+ const USHORT nId = ATT_FIX_SIZE == eFrmSize ?
+ STR_FRM_FIXEDHEIGHT : STR_FRM_MINHEIGHT;
+ rText += SW_RESSTR( nId );
+ rText += ' ';
+ if ( GetHeightPercent() )
+ {
+ rText += String::CreateFromInt32(GetHeightPercent());
+ rText += '%';
+ }
+ else
+ {
+ rText += ::GetMetricText( GetHeight(), eCoreUnit, ePresUnit );
+ rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ }
+ }
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+//Kopfzeile, fuer Seitenformate
+//Client von FrmFmt das den Header beschreibt.
+
+
+SfxItemPresentation SwFmtHeader::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ const USHORT nId = GetHeaderFmt() ? STR_HEADER : STR_NO_HEADER;
+ rText = SW_RESSTR( nId );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+//Fusszeile, fuer Seitenformate
+//Client von FrmFmt das den Footer beschreibt.
+
+
+SfxItemPresentation SwFmtFooter::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ const USHORT nId = GetFooterFmt() ? STR_FOOTER : STR_NO_FOOTER;
+ rText = SW_RESSTR( nId );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+SfxItemPresentation SwFmtSurround::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nId = 0;
+ switch ( (SwSurround)GetValue() )
+ {
+ case SURROUND_NONE:
+ nId = STR_SURROUND_NONE;
+ break;
+ case SURROUND_THROUGHT:
+ nId = STR_SURROUND_THROUGHT;
+ break;
+ case SURROUND_PARALLEL:
+ nId = STR_SURROUND_PARALLEL;
+ break;
+ case SURROUND_IDEAL:
+ nId = STR_SURROUND_IDEAL;
+ break;
+ case SURROUND_LEFT:
+ nId = STR_SURROUND_LEFT;
+ break;
+ case SURROUND_RIGHT:
+ nId = STR_SURROUND_RIGHT;
+ break;
+ }
+ if ( nId )
+ rText = SW_RESSTR( nId );
+
+ if ( IsAnchorOnly() )
+ {
+ rText += ' ';
+ rText += SW_RESSTR( STR_SURROUND_ANCHORONLY );
+ }
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+//VertOrientation, wie und woran orientiert --
+// sich der FlyFrm in der Vertikalen -----------
+
+
+SfxItemPresentation SwFmtVertOrient::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nId = 0;
+ switch ( GetVertOrient() )
+ {
+ case VERT_NONE:
+ {
+ rText += SW_RESSTR( STR_POS_Y );
+ rText += ' ';
+ rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit );
+ rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ }
+ break;
+ case VERT_TOP:
+ nId = STR_VERT_TOP;
+ break;
+ case VERT_CENTER:
+ nId = STR_VERT_CENTER;
+ break;
+ case VERT_BOTTOM:
+ nId = STR_VERT_BOTTOM;
+ break;
+ case VERT_LINE_TOP:
+ nId = STR_LINE_TOP;
+ break;
+ case VERT_LINE_CENTER:
+ nId = STR_LINE_CENTER;
+ break;
+ case VERT_LINE_BOTTOM:
+ nId = STR_LINE_BOTTOM;
+ break;
+ }
+ if ( nId )
+ rText += SW_RESSTR( nId );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+//HoriOrientation, wie und woran orientiert --
+// sich der FlyFrm in der Hoizontalen ----------
+
+
+SfxItemPresentation SwFmtHoriOrient::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nId = 0;
+ switch ( GetHoriOrient() )
+ {
+ case HORI_NONE:
+ {
+ rText += SW_RESSTR( STR_POS_X );
+ rText += ' ';
+ rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit );
+ rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ }
+ break;
+ case HORI_RIGHT:
+ nId = STR_HORI_RIGHT;
+ break;
+ case HORI_CENTER:
+ nId = STR_HORI_CENTER;
+ break;
+ case HORI_LEFT:
+ nId = STR_HORI_LEFT;
+ break;
+ case HORI_INSIDE:
+ nId = STR_HORI_INSIDE;
+ break;
+ case HORI_OUTSIDE:
+ nId = STR_HORI_OUTSIDE;
+ break;
+ case HORI_FULL:
+ nId = STR_HORI_FULL;
+ break;
+ }
+ if ( nId )
+ rText += SW_RESSTR( nId );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+//FlyAnchor, Anker des Freifliegenden Rahmen ----
+
+
+SfxItemPresentation SwFmtAnchor::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nId = 0;
+ switch ( GetAnchorId() )
+ {
+ case FLY_AT_CNTNT: //Absatzgebundener Rahmen
+ nId = STR_FLY_AT_CNTNT;
+ break;
+ case FLY_IN_CNTNT: //Zeichengebundener Rahmen
+ nId = STR_FLY_IN_CNTNT;
+ break;
+ case FLY_PAGE: //Seitengebundener Rahmen
+ nId = STR_FLY_PAGE;
+ break;
+ }
+ if ( nId )
+ rText += SW_RESSTR( nId );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+SfxItemPresentation SwFmtPageDesc::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ const SwPageDesc *pPageDesc = GetPageDesc();
+ if ( pPageDesc )
+ rText = pPageDesc->GetName();
+ else
+ rText = SW_RESSTR( STR_NO_PAGEDESC );
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+//Der ColumnDescriptor --------------------------
+
+
+SfxItemPresentation SwFmtCol::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nCnt = GetNumCols();
+ if ( nCnt > 1 )
+ {
+ rText = String::CreateFromInt32(nCnt);
+ rText += ' ';
+ rText += SW_RESSTR( STR_COLUMNS );
+ if ( COLADJ_NONE != GetLineAdj() )
+ {
+ USHORT nWdth = USHORT(GetLineWidth());
+ rText += ' ';
+ rText += SW_RESSTR( STR_LINE_WIDTH );
+ rText += ' ';
+ rText += ::GetMetricText( nWdth, eCoreUnit,
+ SFX_MAPUNIT_POINT );
+ }
+ }
+ else
+ rText.Erase();
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+//URL's und Maps
+
+
+SfxItemPresentation SwFmtURL::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ rText.Erase();
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if ( pMap )
+ rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM("Client-Map"));
+ if ( sURL.Len() )
+ {
+ if ( pMap )
+ rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" - "));
+ rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM("URL: "));
+ rText += sURL;
+ if ( bIsServerMap )
+ rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" (Server-Map)"));
+ }
+ if ( sTargetFrameName.Len() )
+ {
+ rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(", Target: "));
+ rText += sTargetFrameName;
+ }
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+//SwFmtEditInReadonly
+
+
+SfxItemPresentation SwFmtEditInReadonly::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ rText.Erase();
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if ( GetValue() )
+ rText = SW_RESSTR(STR_EDIT_IN_READONLY);
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+SfxItemPresentation SwFmtLayoutSplit::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ return SFX_ITEM_PRESENTATION_NONE;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if ( GetValue() )
+ rText = SW_RESSTR(STR_LAYOUT_SPLIT);
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+SfxItemPresentation SwFmtFtnEndAtTxtEnd::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ break;
+
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ switch( GetValue() )
+ {
+ case FTNEND_ATPGORDOCEND:
+// rText = SW_RESSTR( STR_LAYOUT_FTN );
+ break;
+
+ case FTNEND_ATTXTEND:
+ break;
+
+ case FTNEND_ATTXTEND_OWNNUMSEQ:
+ {
+// String sPrefix;
+// String sSuffix;
+// SwNumType aFmt;
+// USHORT nOffset;
+// rText +=
+ }
+ break;
+ }
+ }
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwFmtChain::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ return SFX_ITEM_PRESENTATION_NONE;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if ( GetPrev() || GetNext() )
+ {
+ rText = SW_RESSTR(STR_CONNECT1);
+ if ( GetPrev() )
+ {
+ rText += GetPrev()->GetName();
+ if ( GetNext() )
+ rText += SW_RESSTR(STR_CONNECT2);
+ }
+ if ( GetNext() )
+ rText += GetNext()->GetName();
+ }
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+SfxItemPresentation SwFmtLineNumber::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ return SFX_ITEM_PRESENTATION_NONE;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ if ( IsCount() )
+ rText += SW_RESSTR(STR_LINECOUNT);
+ else
+ rText += SW_RESSTR(STR_DONTLINECOUNT);
+ if ( GetStartValue() )
+ {
+ rText += ' ';
+ rText += SW_RESSTR(STR_LINCOUNT_START);
+ rText += String::CreateFromInt32(GetStartValue());
+ }
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+// ---------------------- Grafik-Attribute --------------------------
+
+SfxItemPresentation SwMirrorGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String& rText, const International* pIntl ) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nId;
+ switch( GetValue() )
+ {
+ case RES_DONT_MIRROR_GRF: nId = STR_NO_MIRROR; break;
+ case RES_MIRROR_GRF_VERT: nId = STR_VERT_MIRROR; break;
+ case RES_MIRROR_GRF_HOR: nId = STR_HORI_MIRROR; break;
+ case RES_MIRROR_GRF_BOTH: nId = STR_BOTH_MIRROR; break;
+ default: nId = 0; break;
+ }
+ if ( nId )
+ {
+ rText = SW_RESSTR( nId );
+ if (bGrfToggle)
+ rText += SW_RESSTR( STR_MIRROR_TOGGLE );
+ }
+ }
+ break;
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+
+SfxItemPresentation SwRotationGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ rText = SW_RESSTR( STR_ROTATION );
+ else if( rText.Len() )
+ rText.Erase();
+ ( rText += UniString::CreateFromInt32( GetValue() )) += '°';
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwLuminanceGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ rText = SW_RESSTR( STR_LUMINANCE );
+ else if( rText.Len() )
+ rText.Erase();
+ ( rText += UniString::CreateFromInt32( GetValue() )) += '%';
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwContrastGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ rText = SW_RESSTR( STR_CONTRAST );
+ else if( rText.Len() )
+ rText.Erase();
+ ( rText += UniString::CreateFromInt32( GetValue() )) += '%';
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwChannelGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ {
+ USHORT nId;
+ switch ( Which() )
+ {
+ case RES_GRFATR_CHANNELR: nId = STR_CHANNELR; break;
+ case RES_GRFATR_CHANNELG: nId = STR_CHANNELG; break;
+ case RES_GRFATR_CHANNELB: nId = STR_CHANNELB; break;
+ default: nId = 0; break;
+ }
+ if( nId )
+ rText = SW_RESSTR( nId );
+ else if( rText.Len() )
+ rText.Erase();
+ }
+ else if( rText.Len() )
+ rText.Erase();
+ ( rText += UniString::CreateFromInt32( GetValue() )) += '%';
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwGammaGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ rText = SW_RESSTR( STR_GAMMA );
+ else if( rText.Len() )
+ rText.Erase();
+ ( rText += UniString::CreateFromDouble( GetValue() )) += '%';
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwInvertGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ rText.Erase();
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ {
+ USHORT nId = 0 != GetValue() ? STR_INVERT : STR_INVERT_NOT;
+ rText = SW_RESSTR( nId );
+ }
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwTransparencyGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ rText = SW_RESSTR( STR_TRANSPARENCY );
+ else if( rText.Len() )
+ rText.Erase();
+ ( rText += UniString::CreateFromInt32( GetValue() )) += '%';
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ rText.Erase();
+ break;
+ }
+ return ePres;
+}
+
+SfxItemPresentation SwDrawModeGrf::GetPresentation(
+ SfxItemPresentation ePres, SfxMapUnit eCoreUnit, SfxMapUnit ePresUnit,
+ String &rText, const International* pIntl) const
+{
+ rText.Erase();
+ switch( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
+ {
+ USHORT nId;
+ switch ( GetValue() )
+ {
+
+ case GRAPHICDRAWMODE_GREYS: nId = STR_DRAWMODE_GREY; break;
+ case GRAPHICDRAWMODE_MONO: nId = STR_DRAWMODE_BLACKWHITE; break;
+ case GRAPHICDRAWMODE_WATERMARK: nId = STR_DRAWMODE_WATERMARK; break;
+ default: nId = STR_DRAWMODE_STD; break;
+ }
+ (rText = SW_RESSTR( STR_DRAWMODE ) ) += SW_RESSTR( nId );
+ }
+ break;
+
+ default:
+ ePres = SFX_ITEM_PRESENTATION_NONE;
+ break;
+ }
+ return ePres;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.48 2000/09/18 16:06:16 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.47 2000/08/25 12:31:48 jp
+ Graphic Crop-Attribut exported to SVX
+
+ Revision 1.46 2000/08/02 09:23:10 jp
+ GetPresentation for the graphic attributes
+
+ Revision 1.45 2000/07/31 19:25:51 jp
+ new attributes for CJK/CTL and graphic
+
+ Revision 1.44 2000/05/23 19:54:12 jp
+ Bugfixes for Unicode
+
+ Revision 1.43 2000/05/23 15:34:11 jp
+ Bugfixes for Unicode
+
+ Revision 1.42 2000/04/26 15:03:20 os
+ GetName() returns const String&
+
+ Revision 1.41 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.40 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.39 2000/02/11 15:00:14 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.38 1999/11/08 17:48:15 jp
+ new attribut: Foot-/Endnote at section end
+
+ Revision 1.37 1999/09/01 08:41:58 OS
+ #66082# GetPresentation: new Parameter
+
+
+ Rev 1.36 01 Sep 1999 10:41:58 OS
+ #66082# GetPresentation: new Parameter
+
+ Rev 1.35 19 Mar 1999 13:40:00 OS
+ #63701# unbenutztes Break-Attribut aus den Sections entfernt
+
+ Rev 1.34 04 Feb 1998 14:09:44 MA
+ new: SwFmtLineNumber
+
+ Rev 1.33 20 Jan 1998 15:14:16 OM
+ Grafiken auf geraden Seiten spiegeln
+
+ Rev 1.32 15 Dec 1997 16:26:06 AMA
+ New: SwSectItem: Soll der uebergeordnete Bereich aufgebrochen werden?
+
+ Rev 1.31 29 Nov 1997 15:08:58 MA
+ includes
+
+ Rev 1.30 21 Nov 1997 12:08:58 MA
+ includes
+
+ Rev 1.29 20 Nov 1997 12:13:36 AMA
+ Opt. SwSurround: GoldCut jetzt als Enum; nicht implementierte Enums entfernt
+
+ Rev 1.28 03 Nov 1997 13:59:28 MA
+ precomp entfernt
+
+ Rev 1.27 31 Oct 1997 14:41:20 MA
+ Chain
+
+ Rev 1.26 28 Oct 1997 13:56:58 MA
+ Connect-Attribut
+
+ Rev 1.25 23 Oct 1997 12:00:30 JP
+ Numerierung aufs Attribut/Format-Konzept umstellen
+
+ Rev 1.24 15 Aug 1997 12:16:06 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.23 11 Apr 1997 13:06:34 MA
+ new: Layout-Split
+
+ Rev 1.22 18 Feb 1997 13:36:16 MA
+ new: Rahmen in Readonly editierbar
+
+ Rev 1.21 11 Nov 1996 10:54:16 MA
+ ResMgr
+
+ Rev 1.20 29 Oct 1996 18:33:12 HJS
+ includes
+
+ Rev 1.19 01 Oct 1996 16:51:28 MA
+ chg: Map und URL gleichzeitig
+
+ Rev 1.18 11 Sep 1996 16:51:36 MA
+ new: Umlauf nur Anker
+
+ Rev 1.17 28 Aug 1996 15:42:34 OS
+ includes
+
+ Rev 1.16 02 Aug 1996 14:57:28 AMA
+ New: INet-Felder werden zu attributiertem Text.
+
+ Rev 1.15 23 Jul 1996 11:02:50 AMA
+ Opt: SwRegisterItem statt Svx..Item
+
+ Rev 1.14 23 Jul 1996 10:49:58 AMA
+ Opt: SwRegisterItem statt Svx..Item
+
+ Rev 1.13 22 Jul 1996 12:53:50 MA
+ new: SwFmtURL
+
+ Rev 1.12 18 Jun 1996 16:59:30 OS
+ ui_pch includen
+
+ Rev 1.11 14 Jun 1996 14:31:04 MA
+ chg: neue Version Prozentangaben
+
+ Rev 1.10 12 Jun 1996 16:05:12 MA
+ new: percent fuer framesize
+
+ Rev 1.9 13 Apr 1996 15:34:12 MA
+ chg: Neue Ausrichtung fuer Zeichengebunde Rahmen
+
+ Rev 1.8 22 Mar 1996 15:18:36 HJS
+ umstellung 311
+
+ Rev 1.7 24 Nov 1995 16:57:24 OM
+ PCH->PRECOMPILED
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/utlui/attrdesc.hrc b/sw/source/ui/utlui/attrdesc.hrc
new file mode 100644
index 000000000000..0434b225e6bd
--- /dev/null
+++ b/sw/source/ui/utlui/attrdesc.hrc
@@ -0,0 +1,149 @@
+/*************************************************************************
+ *
+ * $RCSfile: attrdesc.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _ATTRDESC_HRC
+#define _ATTRDESC_HRC
+
+#include "rcid.hrc"
+
+#define STR_DROP_OVER (RC_ATTR_BEGIN + 1)
+#define STR_DROP_LINES (RC_ATTR_BEGIN + 2)
+#define STR_NO_DROP_LINES (RC_ATTR_BEGIN + 3)
+#define STR_NO_PAGEDESC (RC_ATTR_BEGIN + 4)
+#define STR_NO_MIRROR (RC_ATTR_BEGIN + 5)
+#define STR_VERT_MIRROR (RC_ATTR_BEGIN + 6)
+#define STR_HORI_MIRROR (RC_ATTR_BEGIN + 7)
+#define STR_BOTH_MIRROR (RC_ATTR_BEGIN + 8)
+#define STR_CHARFMT (RC_ATTR_BEGIN + 9)
+#define STR_NO_CHARFMT (RC_ATTR_BEGIN + 10)
+#define STR_FOOTER (RC_ATTR_BEGIN + 11)
+#define STR_NO_FOOTER (RC_ATTR_BEGIN + 12)
+#define STR_HEADER (RC_ATTR_BEGIN + 13)
+#define STR_NO_HEADER (RC_ATTR_BEGIN + 14)
+#define STR_SURROUND_NONE (RC_ATTR_BEGIN + 15)
+#define STR_SURROUND_THROUGHT (RC_ATTR_BEGIN + 16)
+#define STR_SURROUND_PARALLEL (RC_ATTR_BEGIN + 17)
+#define STR_SURROUND_COLUMN (RC_ATTR_BEGIN + 18)
+#define STR_SURROUND_LEFT (RC_ATTR_BEGIN + 19)
+#define STR_SURROUND_RIGHT (RC_ATTR_BEGIN + 20)
+#define STR_SURROUND_INSIDE (RC_ATTR_BEGIN + 21)
+#define STR_SURROUND_OUTSIDE (RC_ATTR_BEGIN + 22)
+#define STR_FRM_WIDTH (RC_ATTR_BEGIN + 23)
+#define STR_FRM_FIXEDHEIGHT (RC_ATTR_BEGIN + 24)
+#define STR_FRM_MINHEIGHT (RC_ATTR_BEGIN + 25)
+#define STR_FLY_AT_CNTNT (RC_ATTR_BEGIN + 26)
+#define STR_FLY_IN_CNTNT (RC_ATTR_BEGIN + 27)
+#define STR_FLY_PAGE (RC_ATTR_BEGIN + 28)
+#define STR_POS_X (RC_ATTR_BEGIN + 29)
+#define STR_POS_Y (RC_ATTR_BEGIN + 30)
+#define STR_VERT_TOP (RC_ATTR_BEGIN + 31)
+#define STR_VERT_CENTER (RC_ATTR_BEGIN + 32)
+#define STR_VERT_BOTTOM (RC_ATTR_BEGIN + 33)
+#define STR_HORI_RIGHT (RC_ATTR_BEGIN + 34)
+#define STR_HORI_CENTER (RC_ATTR_BEGIN + 35)
+#define STR_HORI_LEFT (RC_ATTR_BEGIN + 36)
+#define STR_HORI_INSIDE (RC_ATTR_BEGIN + 37)
+#define STR_HORI_OUTSIDE (RC_ATTR_BEGIN + 38)
+#define STR_HORI_FULL (RC_ATTR_BEGIN + 39)
+#define STR_COLUMNS (RC_ATTR_BEGIN + 40)
+#define STR_LINE_WIDTH (RC_ATTR_BEGIN + 41)
+#define STR_MAX_FTN_HEIGHT (RC_ATTR_BEGIN + 42)
+#define STR_SURROUND_IDEAL (RC_ATTR_BEGIN + 43)
+#define STR_LINE_TOP (RC_ATTR_BEGIN + 44)
+#define STR_LINE_CENTER (RC_ATTR_BEGIN + 45)
+#define STR_LINE_BOTTOM (RC_ATTR_BEGIN + 46)
+#define STR_REGISTER_ON (RC_ATTR_BEGIN + 47)
+#define STR_REGISTER_OFF (RC_ATTR_BEGIN + 48)
+#define STR_SURROUND_ANCHORONLY (RC_ATTR_BEGIN + 49)
+#define STR_EDIT_IN_READONLY (RC_ATTR_BEGIN + 50)
+#define STR_LAYOUT_SPLIT (RC_ATTR_BEGIN + 51)
+#define STR_NUMRULE_ON (RC_ATTR_BEGIN + 52)
+#define STR_NUMRULE_OFF (RC_ATTR_BEGIN + 53)
+#define STR_CONNECT1 (RC_ATTR_BEGIN + 54)
+#define STR_CONNECT2 (RC_ATTR_BEGIN + 55)
+#define STR_MIRROR_TOGGLE (RC_ATTR_BEGIN + 56)
+#define STR_LINECOUNT (RC_ATTR_BEGIN + 57)
+#define STR_DONTLINECOUNT (RC_ATTR_BEGIN + 58)
+#define STR_LINCOUNT_START (RC_ATTR_BEGIN + 59)
+
+#define STR_LUMINANCE (RC_ATTR_BEGIN + 60)
+#define STR_CHANNELR (RC_ATTR_BEGIN + 61)
+#define STR_CHANNELG (RC_ATTR_BEGIN + 62)
+#define STR_CHANNELB (RC_ATTR_BEGIN + 63)
+#define STR_CONTRAST (RC_ATTR_BEGIN + 64)
+#define STR_GAMMA (RC_ATTR_BEGIN + 65)
+#define STR_TRANSPARENCY (RC_ATTR_BEGIN + 66)
+#define STR_INVERT (RC_ATTR_BEGIN + 67)
+#define STR_INVERT_NOT (RC_ATTR_BEGIN + 68)
+#define STR_DRAWMODE (RC_ATTR_BEGIN + 69)
+#define STR_DRAWMODE_STD (RC_ATTR_BEGIN + 70)
+#define STR_DRAWMODE_GREY (RC_ATTR_BEGIN + 71)
+#define STR_DRAWMODE_BLACKWHITE (RC_ATTR_BEGIN + 72)
+#define STR_DRAWMODE_WATERMARK (RC_ATTR_BEGIN + 73)
+#define STR_ROTATION (RC_ATTR_BEGIN + 74)
+
+#define ATTR_ACT_END STR_DRAWMODE_WATERMARK
+
+#if ATTR_ACT_END > RC_ATTR_END
+#error Resource-Id Ueberlauf in #file, #line
+#endif
+
+#endif
diff --git a/sw/source/ui/utlui/attrdesc.src b/sw/source/ui/utlui/attrdesc.src
new file mode 100644
index 000000000000..20d30785507d
--- /dev/null
+++ b/sw/source/ui/utlui/attrdesc.src
@@ -0,0 +1,1953 @@
+/*************************************************************************
+ *
+ * $RCSfile: attrdesc.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "attrdesc.hrc"
+/*---------------------------------------------------------------------
+ Strings fuer textuelle Attribute
+ ---------------------------------------------------------------------*/
+String STR_DROP_OVER
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Initialen über : Initialen ³ber */
+ TEXT = "Initialen über" ;
+ TEXT [ English ] = "dropcaps about" ;
+ Text [ english_us ] = "Drop Caps over" ;
+ Text [ italian ] = "Capolettera su" ;
+ Text [ spanish ] = "Líneas para iniciales" ;
+ Text [ french ] = "Lettrines sur" ;
+ Text [ dutch ] = "Initialen over" ;
+ Text [ swedish ] = "Anfangsbokstäver över" ;
+ Text [ danish ] = "initialer på" ;
+ Text [ portuguese ] = "Iniciais sobre" ;
+ Text [ portuguese_brazilian ] = "Initialen über" ;
+ Text[ chinese_simplified ] = "´óд×Öĸ£¬¸ß¶ÈµÈÓÚ";
+ Text[ russian ] = "Èíèöèàëû íàä";
+ Text[ polish ] = "Inicja³y nad";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß";
+ Text[ chinese_traditional ] = "¤j¼g¦r¥À¡A°ª«×µ¥©ó";
+ Text[ arabic ] = "ÃÍÑÝ ÇÓÊåáÇáíÉ ÝæÞ";
+ Text[ dutch ] = "Initialen over";
+ Text[ chinese_simplified ] = "´óд×Öĸ£¬¸ß¶ÈµÈÓÚ";
+ Text[ greek ] = "Êåöáëáßá ðÜíù";
+ Text[ korean ] = "´Ü¶ôÀÇ Ã¹¹®ÀÚ Àå½Ä À§Ä¡";
+ Text[ turkish ] = "Baþharfi/leri büyüt";
+ Text[ language_user1 ] = " ";
+};
+String STR_DROP_LINES
+{
+ TEXT = "Zeilen" ;
+ TEXT [ English ] = "lines" ;
+ Text [ english_us ] = "rows" ;
+ Text [ italian ] = "Righe" ;
+ Text [ spanish ] = "Filas" ;
+ Text [ french ] = "lignes" ;
+ Text [ dutch ] = "Regels" ;
+ Text [ swedish ] = "Rader" ;
+ Text [ danish ] = "rækker" ;
+ Text [ portuguese ] = "Linhas" ;
+ Text [ portuguese_brazilian ] = "Zeilen" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêè";
+ Text[ polish ] = "Wiersze";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÇáÕÝæÝ";
+ Text[ dutch ] = "Regels";
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ greek ] = "ÃñáììÝò";
+ Text[ korean ] = "Çà";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_DROP_LINES
+{
+ TEXT = "keine Initialen" ;
+ TEXT [ English ] = "no dropcaps" ;
+ Text [ dutch ] = "geen initialen" ;
+ Text [ english_us ] = "No Drop Caps" ;
+ Text [ italian ] = "senza capolettera" ;
+ Text [ spanish ] = "Sin iniciales" ;
+ Text [ french ] = "Pas de lettrine" ;
+ Text [ swedish ] = "inga anfangsbokstäver" ;
+ Text [ danish ] = "ingen initialer" ;
+ Text [ portuguese ] = "Sem iniciais" ;
+ Text [ portuguese_brazilian ] = "keine Initialen" ;
+ Text[ chinese_simplified ] = "×ÖÊײ»´óд";
+ Text[ russian ] = "Áåç èíèöèàëîâ";
+ Text[ polish ] = "Bez inicja³ów";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß‚È‚µ";
+ Text[ chinese_traditional ] = "¦r­º¤£¤j¼g";
+ Text[ arabic ] = "ÈÏæä ÃÍÑÝ ÇÓÊåáÇáíÉ";
+ Text[ dutch ] = "geen initialen";
+ Text[ chinese_simplified ] = "×ÖÊײ»´óд";
+ Text[ greek ] = "÷ùñßò êåöáëáßá";
+ Text[ korean ] = "´Ü¶ô ù¹®ÀÚ Àå½Ä ¾øÀ½";
+ Text[ turkish ] = "Baþharf yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_PAGEDESC
+{
+ TEXT = "kein Seitenumbruch" ;
+ TEXT [ English ] = "no page break" ;
+ Text [ dutch ] = "geen pagina-einde" ;
+ Text [ english_us ] = "No page break" ;
+ Text [ italian ] = "Senza interruzione di pagina" ;
+ Text [ spanish ] = "sin salto de página" ;
+ Text [ french ] = "Aucun saut de page" ;
+ Text [ swedish ] = "ingen sidbrytning" ;
+ Text [ danish ] = "ingen sideskift" ;
+ Text [ portuguese ] = "Sem quebra de página" ;
+ Text [ portuguese_brazilian ] = "kein Seitenumbruch" ;
+ Text[ chinese_simplified ] = "²»»»Ò³";
+ Text[ russian ] = "áåç ðàçðûâà ñòðàíèö";
+ Text[ polish ] = "Bez ³amania strony";
+ Text[ japanese ] = "‰üÍß°¼Þ‚È‚µ";
+ Text[ chinese_traditional ] = "¤£´«­¶";
+ Text[ arabic ] = "ÈÏæä ÝæÇÕá ÕÝÍÇÊ";
+ Text[ dutch ] = "geen pagina-einde";
+ Text[ chinese_simplified ] = "²»»»Ò³";
+ Text[ greek ] = "íá ìçí ãßíåé áëëáãÞ óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ³ª´©±â°¡ ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Sayfa sonu yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_MIRROR
+{
+ TEXT = "nicht Spiegeln" ;
+ TEXT [ English ] = "no mirror" ;
+ Text [ dutch ] = "niet spiegelen" ;
+ Text [ english_us ] = "Don't mirror" ;
+ Text [ italian ] = "Non rispecchiare" ;
+ Text [ spanish ] = "No reflejar" ;
+ Text [ french ] = "Ne pas refléter" ;
+ Text [ swedish ] = "inte spegla" ;
+ Text [ danish ] = "spejlvend ikke" ;
+ Text [ portuguese ] = "Não reflectir" ;
+ Text [ portuguese_brazilian ] = "nicht Spiegeln" ;
+ Text[ chinese_simplified ] = "²»·´Ó³";
+ Text[ russian ] = "íå îòîáðàæàòü";
+ Text[ polish ] = "Nie przerzucaj";
+ Text[ japanese ] = "”½“]‚µ‚È‚¢";
+ Text[ chinese_traditional ] = "¤£¤Ï¬M";
+ Text[ arabic ] = "ÚÏã ÇáÇäÚßÇÓ";
+ Text[ dutch ] = "niet spiegelen";
+ Text[ chinese_simplified ] = "²»·´Ó³";
+ Text[ greek ] = "Íá ìçí ãßíåé áíôáíÜêëáóç";
+ Text[ korean ] = "´ëĪ ¾ÈÇÔ";
+ Text[ turkish ] = "Yansýtma";
+ Text[ language_user1 ] = " ";
+};
+String STR_VERT_MIRROR
+{
+ TEXT = "vertikal Spiegeln" ;
+ TEXT [ English ] = "mirror vertically" ;
+ Text [ dutch ] = "verticaal spiegelen" ;
+ Text [ english_us ] = "Flip vertical" ;
+ Text [ italian ] = "Rispecchia verticalmente" ;
+ Text [ spanish ] = "Reflejar vertical" ;
+ Text [ french ] = "Refléter verticalement" ;
+ Text [ swedish ] = "spegla vertikalt" ;
+ Text [ danish ] = "spejlvend lodret" ;
+ Text [ portuguese ] = "Reflectir na vertical" ;
+ Text [ portuguese_brazilian ] = "vertikal Spiegeln" ;
+ Text[ chinese_simplified ] = "´¹Ö±·½Ïò·´Ó³";
+ Text[ russian ] = "Îòîáðàçèòü ïî âåðòèêàëè";
+ Text[ polish ] = "Przerzuæ w pionie";
+ Text[ japanese ] = "¶‰E”½“]";
+ Text[ chinese_traditional ] = "««ª½¤Ï¬M";
+ Text[ arabic ] = "ÇäÚßÇÓ ÑÃÓí";
+ Text[ dutch ] = "verticaal spiegelen";
+ Text[ chinese_simplified ] = "´¹Ö±·½Ïò·´Ó³";
+ Text[ greek ] = "ïñéæüíôéá áíáóôñïöÞ";
+ Text[ korean ] = "¼öÁ÷ ´ëĪ";
+ Text[ turkish ] = "Dikey yansýt";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_MIRROR
+{
+ TEXT = "horizontal Spiegeln" ;
+ TEXT [ English ] = "mirror horizontally" ;
+ Text [ dutch ] = "horizontaal spiegelen" ;
+ Text [ english_us ] = "Flip horizontal" ;
+ Text [ italian ] = "Rispecchia orizzontalmente" ;
+ Text [ spanish ] = "Reflejar horizontal" ;
+ Text [ french ] = "Refléter horizontalement" ;
+ Text [ swedish ] = "Spegla horisontellt" ;
+ Text [ danish ] = "spejlvend vandret" ;
+ Text [ portuguese ] = "Reflectir na horizontal" ;
+ Text [ portuguese_brazilian ] = "horizontal Spiegeln" ;
+ Text[ chinese_simplified ] = "ˮƽ·½Ïò·´Ó³";
+ Text[ russian ] = "Îòîáðàçèòü ïî âåðòèêàëè";
+ Text[ polish ] = "Przerzuæ w poziomie";
+ Text[ japanese ] = "㉺”½“]";
+ Text[ chinese_traditional ] = "¤ô¥­¤Ï¬M";
+ Text[ arabic ] = "ÇäÚßÇÓ ÃÝÞí";
+ Text[ dutch ] = "horizontaal spiegelen";
+ Text[ chinese_simplified ] = "ˮƽ·½Ïò·´Ó³";
+ Text[ greek ] = "ïñéæüíôéá áíáóôñïöÞ";
+ Text[ korean ] = "¼öÆò ´ëĪ";
+ Text[ turkish ] = "Yatay yansýt";
+ Text[ language_user1 ] = " ";
+};
+String STR_BOTH_MIRROR
+{
+ TEXT = "vert. und horizontal Spiegeln" ;
+ TEXT [ English ] = "mirror vert. and horizontally" ;
+ Text [ english_us ] = "Horizontal and Vertical Flip" ;
+ Text [ italian ] = "Rispecchiare orizzontalmente e verticalmente" ;
+ Text [ spanish ] = "Reflejar vertical y horizontalmente" ;
+ Text [ french ] = "Refléter verticalement et horizontalement" ;
+ Text [ dutch ] = "Hoizontaal en verticaal spiegelen" ;
+ Text [ swedish ] = "spegla vert. och hori." ;
+ Text [ danish ] = "spejlvend lodret og vandret" ;
+ Text [ portuguese_brazilian ] = "vert. und horizontal Spiegeln" ;
+ Text [ portuguese ] = "Reflectir na vertical e na horizontal" ;
+ Text[ chinese_simplified ] = "´¹Ö±ºÍˮƽ·½Ïò·´Ó³";
+ Text[ russian ] = "Îòîáðàçèòü ïî âåðòèêàëè è ãîðèçîíòàëè";
+ Text[ polish ] = "Przerzuæ w pionie i w poziomie";
+ Text[ japanese ] = "㉺‚ƶ‰E‚É”½“]";
+ Text[ chinese_traditional ] = "««ª½©M¤ô¥­¤Ï¬M";
+ Text[ arabic ] = "ÇäÚßÇÓ ÑÃÓí æÃÝÞí";
+ Text[ dutch ] = "Hoizontaal en verticaal spiegelen";
+ Text[ chinese_simplified ] = "´¹Ö±ºÍˮƽ·½Ïò·´Ó³";
+ Text[ greek ] = "ïñéæüíôéá êáé êáôáêüñõöç áíáóôñïöÞ";
+ Text[ korean ] = "¼öÆò°ú ¼öÁ÷ ´ëĪ";
+ Text[ turkish ] = "Dikey ve yatay yansýt";
+ Text[ language_user1 ] = " ";
+};
+String STR_MIRROR_TOGGLE
+{
+ TEXT = " + auf geraden Seiten horizontal Spiegeln" ;
+ TEXT [ English ] = " + mirror horizontal on even page numbers" ;
+ Text [ portuguese ] = " + reflectir horizontalmente nas páginas pares" ;
+ Text [ english_us ] = "+ mirror horizontal on even pages" ;
+ Text [ portuguese_brazilian ] = "+ auf geraden Seiten horizontal Spiegeln" ;
+ Text [ swedish ] = "+ spegelvänd horisontellt på jämna sidor" ;
+ Text [ danish ] = "+ spejlvend på lige sider" ;
+ Text [ italian ] = "+ rispecchia orizzontalmente sulle pagine pari" ;
+ Text [ spanish ] = "+ reflejar horizontalmente en las páginas pares" ;
+ Text [ french ] = "+ refléter horizontalement sur les pages paires" ;
+ Text [ dutch ] = "+ op even pagina's horizontaal spiegelen" ;
+ Text[ chinese_simplified ] = "+ ˮƽ·½Ïò·´Ó³µ½Å¼ÊýÒ³Ãæ";
+ Text[ russian ] = "+Îòîáðàçèòü ïî ãîðèçîíòàëè íà ÷åòíûõ ñòðàíèöàõ";
+ Text[ polish ] = "+ przerzuæ w poziomie na stronach parzystych";
+ Text[ japanese ] = "+ ‹ô”Íß°¼Þ‚É㉺”½“]";
+ Text[ chinese_traditional ] = "+ ¤ô¥­¤Ï¬M¨ì°¸¼Æ­¶­±";
+ Text[ arabic ] = "+ ÇäÚßÇÓ ÃÝÞí Úáì ÇáÕÝÍÇÊ ÇáÒæÌíÉ";
+ Text[ dutch ] = "+ op even pagina's horizontaal spiegelen";
+ Text[ chinese_simplified ] = "+ ˮƽ·½Ïò·´Ó³µ½Å¼ÊýÒ³Ãæ";
+ Text[ greek ] = "+ ïñéæüíôéá áíôáíÜêëáóç óå ìïíÝò óåëßäåò";
+ Text[ korean ] = "+ Á÷¸é¿¡¼­ ¼öÆòÀ¸·Î ´ëĪ";
+ Text[ turkish ] = "+ çift numaralý sayfalarda yatay yansýt";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHARFMT
+{
+ TEXT = "Zeichenvorlage" ;
+ TEXT [ English ] = "Character Style" ;
+ Text [ english_us ] = "Character Style" ;
+ Text [ italian ] = "Modello di carattere" ;
+ Text [ spanish ] = "Estilo de caracteres" ;
+ Text [ french ] = "Style de caractères" ;
+ Text [ dutch ] = "Tekenopmaakprofiel" ;
+ Text [ swedish ] = "Teckenformatmall" ;
+ Text [ danish ] = "tegntypografi" ;
+ Text [ portuguese ] = "Estilos de caracteres" ;
+ Text [ portuguese_brazilian ] = "Zeichenvorlage" ;
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ russian ] = "Ñòèëü çíàêîâ";
+ Text[ polish ] = "Styl znaku";
+ Text[ japanese ] = "•¶Žš½À²Ù";
+ Text[ chinese_traditional ] = "¤å¦r¼Ë¦¡";
+ Text[ arabic ] = "äãØ ÇáÃÍÑÝ";
+ Text[ dutch ] = "Tekenopmaakprofiel";
+ Text[ chinese_simplified ] = "×Ö·ûÑùʽ";
+ Text[ greek ] = "Óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯Çü";
+ Text[ turkish ] = "Karakter biçimi";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_CHARFMT
+{
+ TEXT = "keine Zeichenvorlage" ;
+ TEXT [ English ] = "no Character Style" ;
+ Text [ english_us ] = "No Character Style" ;
+ Text [ italian ] = "Senza modello di carattere" ;
+ Text [ spanish ] = "El estilo de carácter no existe" ;
+ Text [ french ] = "Pas de style de caractère" ;
+ Text [ dutch ] = "geen opmaakprofiel" ;
+ Text [ swedish ] = "ingen teckenformatmall" ;
+ Text [ danish ] = "ingen tegntypografi" ;
+ Text [ portuguese ] = "Estilo de caracteres inexistente" ;
+ Text [ portuguese_brazilian ] = "keine Zeichenvorlage" ;
+ Text[ chinese_simplified ] = "ÎÞÎÄ×ÖÑùʽ";
+ Text[ russian ] = "Áåç ñòèëÿ çíàêîâ";
+ Text[ polish ] = "Brak stylu znaków";
+ Text[ japanese ] = "•¶Žš½À²Ù‚È‚µ";
+ Text[ chinese_traditional ] = "µL¤å¦r¼Ë¦¡";
+ Text[ arabic ] = "ÈÏæä äãØ ÃÍÑÝ";
+ Text[ dutch ] = "geen opmaakprofiel";
+ Text[ chinese_simplified ] = "ÎÞÎÄ×ÖÑùʽ";
+ Text[ greek ] = "÷ùñßò óôõë ÷áñáêôÞñùí";
+ Text[ korean ] = "¹®ÀÚ À¯ÇüÀÌ ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Karakter biçimi yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_FOOTER
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußzeile : Fu˜zeile */
+ TEXT = "Fußzeile" ;
+ TEXT [ English ] = "footer" ;
+ Text [ dutch ] = "voettekst" ;
+ Text [ english_us ] = "Footer" ;
+ Text [ italian ] = "Piè di pagina" ;
+ Text [ spanish ] = "Pie de página" ;
+ Text [ french ] = "Pied de page" ;
+ Text [ swedish ] = "Sidfot" ;
+ Text [ danish ] = "sidefod" ;
+ Text [ portuguese ] = "Rodapé" ;
+ Text [ portuguese_brazilian ] = "Fußzeile" ;
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë";
+ Text[ polish ] = "Stopka";
+ Text[ japanese ] = "̯À";
+ Text[ chinese_traditional ] = "­¶§À";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ";
+ Text[ dutch ] = "voettekst";
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ greek ] = "ÕðïóÝëéäï";
+ Text[ korean ] = "¹Ù´Ú±Û";
+ Text[ turkish ] = "Altbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_FOOTER
+{
+ /* ### ACHTUNG: Neuer Text in Resource? keine Fußzeile : keine Fu˜zeile */
+ TEXT = "keine Fußzeile" ;
+ TEXT [ English ] = "no footer" ;
+ Text [ english_us ] = "No footer" ;
+ Text [ italian ] = "Senza piè di pagina" ;
+ Text [ spanish ] = "Sin pie de página" ;
+ Text [ french ] = "Pas de pied de page" ;
+ Text [ dutch ] = "geen voettekst" ;
+ Text [ swedish ] = "ingen sidfot" ;
+ Text [ danish ] = "ingen sidefod" ;
+ Text [ portuguese ] = "Sem rodapé" ;
+ Text [ portuguese_brazilian ] = "keine Fußzeile" ;
+ Text[ chinese_simplified ] = "ÎÞÒ³½Å";
+ Text[ russian ] = "áåç íèæíåãî êîëîíòèòóëà";
+ Text[ polish ] = "Bez stopki";
+ Text[ japanese ] = "̯À‚È‚µ";
+ Text[ chinese_traditional ] = "µL­¶§À";
+ Text[ arabic ] = "ÈÏæä ÊÐííá ÇáÕÝÍÉ";
+ Text[ dutch ] = "geen voettekst";
+ Text[ chinese_simplified ] = "ÎÞÒ³½Å";
+ Text[ greek ] = "÷ùñßò õðïóÝëéäï";
+ Text[ korean ] = "¹Ù´Ú±ÛÀÌ ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Altbilgi yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_HEADER
+{
+ TEXT = "Kopfzeile" ;
+ TEXT [ English ] = "header" ;
+ Text [ dutch ] = "koptekst" ;
+ Text [ english_us ] = "Header" ;
+ Text [ italian ] = "Riga d'intestazione" ;
+ Text [ spanish ] = "Encabezamiento" ;
+ Text [ french ] = "En-tête" ;
+ Text [ swedish ] = "Sidhuvud" ;
+ Text [ danish ] = "sidehoved" ;
+ Text [ portuguese ] = "Cabeçalho" ;
+ Text [ portuguese_brazilian ] = "Kopfzeile" ;
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë";
+ Text[ polish ] = "Nag³ówek";
+ Text[ japanese ] = "ͯÀÞ";
+ Text[ chinese_traditional ] = "­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ";
+ Text[ dutch ] = "koptekst";
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ greek ] = "Êåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Üstbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_NO_HEADER
+{
+ TEXT = "keine Kopfzeile" ;
+ TEXT [ English ] = "no header" ;
+ Text [ english_us ] = "No header" ;
+ Text [ italian ] = "Senza intestazione" ;
+ Text [ spanish ] = "Sin encabezamiento" ;
+ Text [ french ] = "Aucun en-tête" ;
+ Text [ dutch ] = "geen koptekst" ;
+ Text [ swedish ] = "inget sidhuvud" ;
+ Text [ danish ] = "intet sidehoved" ;
+ Text [ portuguese ] = "Sem cabeçalho" ;
+ Text [ portuguese_brazilian ] = "keine Kopfzeile" ;
+ Text[ chinese_simplified ] = "ÎÞҳü";
+ Text[ russian ] = "áåç âåðõíåãî êîëîíòèòóëà";
+ Text[ polish ] = "Bez nag³ówka";
+ Text[ japanese ] = "ͯÀÞ‚È‚µ";
+ Text[ chinese_traditional ] = "µL­¶­º";
+ Text[ arabic ] = "ÈÏæä ÑÃÓ ÇáÕÝÍÉ";
+ Text[ dutch ] = "geen koptekst";
+ Text[ chinese_simplified ] = "ÎÞҳü";
+ Text[ greek ] = "÷ùñßò êåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±ÛÀÌ ¾ø½À´Ï´Ù.";
+ Text[ turkish ] = "Üstbilgi yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_IDEAL
+{
+ TEXT = "idealer Umlauf" ;
+ TEXT [ English ] = "ideal surround" ;
+ Text [ english_us ] = "Optimal wrap" ;
+ Text [ italian ] = "Scorrimento ideale" ;
+ Text [ spanish ] = "Ajuste ideal" ;
+ Text [ french ] = "Adaptation idéale" ;
+ Text [ dutch ] = "ideale omloop" ;
+ Text [ swedish ] = "Optimal textanpassning" ;
+ Text [ danish ] = "optimal ombrydning" ;
+ Text [ portuguese ] = "Ajuste ideal" ;
+ Text [ portuguese_brazilian ] = "idealer Umlauf" ;
+ Text[ chinese_simplified ] = "×î¼ÑÎÄ×Ö»·ÈÆ";
+ Text[ russian ] = "îïòèìàëüíîå îáòåêàíèå";
+ Text[ polish ] = "Obieg idealny";
+ Text[ japanese ] = "Å“K‚ÈÜ‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "³ÌÓì¤å¦rÀô¶";
+ Text[ arabic ] = "ÇáÇáÊÝÇÝ ÇáÃãËá";
+ Text[ dutch ] = "ideale omloop";
+ Text[ chinese_simplified ] = "×î¼ÑÎÄ×Ö»·ÈÆ";
+ Text[ greek ] = "âÝëôéóôç áíáäßðëùóç";
+ Text[ korean ] = "ÃÖÀû ¼øȯ";
+ Text[ turkish ] = "Optimum metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_NONE
+{
+ TEXT = "kein Umlauf" ;
+ TEXT [ English ] = "no surround" ;
+ Text [ english_us ] = "No wrap" ;
+ Text [ italian ] = "Separato" ;
+ Text [ spanish ] = "Sin ajuste" ;
+ Text [ french ] = "Pas d'adaptation" ;
+ Text [ dutch ] = "geen omloop" ;
+ Text [ swedish ] = "Ingen textanpassning" ;
+ Text [ danish ] = "ingen ombrydning" ;
+ Text [ portuguese ] = "Sem ajuste" ;
+ Text [ portuguese_brazilian ] = "kein Umlauf" ;
+ Text[ chinese_simplified ] = "²»»·ÈÆ";
+ Text[ russian ] = "áåç îáòåêàíèÿ";
+ Text[ polish ] = "Brak obiegu";
+ Text[ japanese ] = "㉺܂è•Ô‚µ";
+ Text[ chinese_traditional ] = "¤£Àô¶";
+ Text[ arabic ] = "ÈÏæä ÇáÊÝÇÝ";
+ Text[ dutch ] = "geen omloop";
+ Text[ chinese_simplified ] = "²»»·ÈÆ";
+ Text[ greek ] = "×ùñßò áíáäßðëùóç";
+ Text[ korean ] = "¼øȯ ¾øÀ½";
+ Text[ turkish ] = "Metin daðýlýmý yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_THROUGHT
+{
+ TEXT = "Durchlauf" ;
+ TEXT [ English ] = "wrap through" ;
+ Text [ english_us ] = "Through" ;
+ Text [ italian ] = "Attraverso" ;
+ Text [ spanish ] = "Continuo" ;
+ Text [ french ] = "À travers" ;
+ Text [ dutch ] = "doorloop" ;
+ Text [ swedish ] = "Textgenomflöde" ;
+ Text [ danish ] = "gennemgående" ;
+ Text [ portuguese ] = "Através do objecto" ;
+ Text [ portuguese_brazilian ] = "Durchlauf" ;
+ Text[ chinese_simplified ] = "¹á´©";
+ Text[ russian ] = "Ñêâîçíîå îáòåêàíèå";
+ Text[ polish ] = "Przep³yw tekstu";
+ Text[ japanese ] = "Ü‚è•Ô‚µ‚È‚µ";
+ Text[ chinese_traditional ] = "¤£Àô¶";
+ Text[ arabic ] = "ÚÈÑ";
+ Text[ dutch ] = "doorloop";
+ Text[ chinese_simplified ] = "¹á´©";
+ Text[ greek ] = "Äéá ìÝóïõ";
+ Text[ korean ] = "Àüü µ¹¸²";
+ Text[ turkish ] = "Metin arkasýna gönder";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_PARALLEL
+{
+ TEXT = "paralleler Umlauf" ;
+ TEXT [ English ] = "surround parallel" ;
+ Text [ dutch ] = "omloop parallel" ;
+ Text [ english_us ] = "Parallel wrap" ;
+ Text [ italian ] = "Scorrimento parallelo" ;
+ Text [ spanish ] = "Ajuste paralelo" ;
+ Text [ french ] = "Adaptation parallèle" ;
+ Text [ swedish ] = "Parallell textanpassning" ;
+ Text [ danish ] = "parallel ombrydning" ;
+ Text [ portuguese ] = "Ajuste paralelo" ;
+ Text [ portuguese_brazilian ] = "paralleler Umlauf" ;
+ Text[ chinese_simplified ] = "ƽÐл·ÈÆ";
+ Text[ russian ] = "ïàðàëëåëüíîå îáòåêàíèå";
+ Text[ polish ] = "Obieg równoleg³y";
+ Text[ japanese ] = "㉺܂è•Ô‚µ";
+ Text[ chinese_traditional ] = "¥­¦æÀô¶";
+ Text[ arabic ] = "ÇáÊÝÇÝ ãÊæÇÒí";
+ Text[ dutch ] = "omloop parallel";
+ Text[ chinese_simplified ] = "ƽÐл·ÈÆ";
+ Text[ greek ] = "ðáñÜëëçëç áíáäßðëùóç";
+ Text[ korean ] = "ÆòÇà ¼øȯ";
+ Text[ turkish ] = "Paralel metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_COLUMN
+{
+ TEXT = "spaltiger Umlauf" ;
+ TEXT [ English ] = "surround" ;
+ Text [ dutch ] = "omloop kolom" ;
+ Text [ english_us ] = "Column Wrap" ;
+ Text [ italian ] = "Scorrimento a colonne" ;
+ Text [ spanish ] = "Ajuste en columnas" ;
+ Text [ french ] = "Adaptation en colonnes" ;
+ Text [ swedish ] = "Kolumnanpassning" ;
+ Text [ danish ] = "ombryd kolonne" ;
+ Text [ portuguese ] = "Ajustar colunas" ;
+ Text [ portuguese_brazilian ] = "spaltiger Umlauf" ;
+ Text[ chinese_simplified ] = "ÁÐÄÚÎÄ×Ö»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå ââèäå êîëîíîê";
+ Text[ polish ] = "Obieg kolumnowy";
+ Text[ japanese ] = "—ñ‚ÌÜ‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "¦C¤º¤å¦rÀô¶";
+ Text[ arabic ] = "ÇáÊÝÇÝ ÇáÃÚãÏÉ";
+ Text[ dutch ] = "omloop kolom";
+ Text[ chinese_simplified ] = "ÁÐÄÚÎÄ×Ö»·ÈÆ";
+ Text[ greek ] = "Áíáäßðëùóç óôÞëçò";
+ Text[ korean ] = "¿­ ¼øȯ";
+ Text[ turkish ] = "-";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_LEFT
+{
+ TEXT = "linker Umlauf" ;
+ TEXT [ English ] = "surround left" ;
+ Text [ english_us ] = "Left wrap" ;
+ Text [ italian ] = "Scorrimento a sinistra" ;
+ Text [ spanish ] = "Ajuste a la izquierda" ;
+ Text [ french ] = "Adaptation à gauche" ;
+ Text [ dutch ] = "omloop linkerkant" ;
+ Text [ swedish ] = "Textanpassning vänster" ;
+ Text [ danish ] = "venstre ombrydning" ;
+ Text [ portuguese ] = "Ajuste esquerdo" ;
+ Text [ portuguese_brazilian ] = "linker Umlauf" ;
+ Text[ chinese_simplified ] = "×ó»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå ñëåâà";
+ Text[ polish ] = "Obieg z lewej";
+ Text[ japanese ] = "¶‚ÌÜ‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "¥ªÀô¶";
+ Text[ arabic ] = "ÇáÊÝÇÝ ÃíÓÑ";
+ Text[ dutch ] = "omloop linkerkant";
+ Text[ chinese_simplified ] = "×ó»·ÈÆ";
+ Text[ greek ] = "áíáäßðëùóç áñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊÀ¸·Î ¼øȯ";
+ Text[ turkish ] = "Sol metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_RIGHT
+{
+ TEXT = "rechter Umlauf" ;
+ TEXT [ English ] = "surround right" ;
+ Text [ english_us ] = "Right wrap" ;
+ Text [ italian ] = "Scorrimento a destra" ;
+ Text [ spanish ] = "Ajuste a la derecha" ;
+ Text [ french ] = "Adaptation à droite" ;
+ Text [ dutch ] = "omloop rechterkant" ;
+ Text [ swedish ] = "Textanpassning höger" ;
+ Text [ danish ] = "højre ombrydning" ;
+ Text [ portuguese ] = "Ajuste direito" ;
+ Text [ portuguese_brazilian ] = "rechter Umlauf" ;
+ Text[ chinese_simplified ] = "ÓÒ»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå ñïðàâà";
+ Text[ polish ] = "Obieg z prawej";
+ Text[ japanese ] = "‰E‚ÌÜ‚è•Ô‚µ";
+ Text[ chinese_traditional ] = "¥kÀô¶";
+ Text[ arabic ] = "ÇáÊÝÇÝ Ãíãä";
+ Text[ dutch ] = "omloop rechterkant";
+ Text[ chinese_simplified ] = "ÓÒ»·ÈÆ";
+ Text[ greek ] = "áíáäßðëùóç äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊÀ¸·Î ¼øȯ";
+ Text[ turkish ] = "Sað metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_INSIDE
+{
+ TEXT = "Umlauf innen" ;
+ TEXT [ English ] = "surround inside" ;
+ Text [ dutch ] = "omloop binnenkant" ;
+ Text [ english_us ] = "Inner wrap" ;
+ Text [ italian ] = "Scorrimento interno" ;
+ Text [ spanish ] = "Ajuste interno" ;
+ Text [ french ] = "Adaptation intérieure" ;
+ Text [ swedish ] = "Anpassning innanför" ;
+ Text [ danish ] = "indre ombrydning" ;
+ Text [ portuguese ] = "Ajuste interior" ;
+ Text [ portuguese_brazilian ] = "Umlauf innen" ;
+ Text[ chinese_simplified ] = "ÄÚ²¿»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå âíóòðè";
+ Text[ polish ] = "Obieg wewnêtrzny";
+ Text[ japanese ] = "Ü‚è•Ô‚µ “à";
+ Text[ chinese_traditional ] = "¤º³¡Àô¶";
+ Text[ arabic ] = "ÇáÊÝÇÝ ÏÇÎáí";
+ Text[ dutch ] = "omloop binnenkant";
+ Text[ chinese_simplified ] = "ÄÚ²¿»·ÈÆ";
+ Text[ greek ] = "Áíáäßðëùóç - åóùôåñéêÜ";
+ Text[ korean ] = "³»ºÎ ¼øȯ";
+ Text[ turkish ] = "Ýç metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_OUTSIDE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Umlauf außen : Umlauf au˜en */
+ TEXT = "Umlauf außen" ;
+ TEXT [ English ] = "surround outside" ;
+ Text [ english_us ] = "Outer wrap" ;
+ Text [ italian ] = "Scorrimento esterno" ;
+ Text [ spanish ] = "Ajuste externo" ;
+ Text [ french ] = "Adaptation extérieure" ;
+ Text [ dutch ] = "omloop buitenkant" ;
+ Text [ swedish ] = "Anpassning utanför" ;
+ Text [ danish ] = "ydre ombrydning" ;
+ Text [ portuguese ] = "Ajuste exterior" ;
+ Text [ portuguese_brazilian ] = "Umlauf außen" ;
+ Text[ chinese_simplified ] = "Íâ»·ÈÆ";
+ Text[ russian ] = "Îáòåêàíèå ñíàðóæè";
+ Text[ polish ] = "Obieg zewnêtrzny";
+ Text[ japanese ] = "Ü‚è•Ô‚µ ŠO";
+ Text[ chinese_traditional ] = "¥~Àô¶";
+ Text[ arabic ] = "ÇáÊÝÇÝ ÎÇÑÌí";
+ Text[ dutch ] = "omloop buitenkant";
+ Text[ chinese_simplified ] = "Íâ»·ÈÆ";
+ Text[ greek ] = "Áíáäßðëùóç - åîùôåñéêÜ";
+ Text[ korean ] = "¿ÜºÎ ¼øȯ";
+ Text[ turkish ] = "Dýþ metin daðýlýmý";
+ Text[ language_user1 ] = " ";
+};
+String STR_SURROUND_ANCHORONLY
+{
+ TEXT = "(nur Anker)" ;
+ TEXT [ English ] = "(Anchor only)" ;
+ Text [ dutch ] = "(alleen anker)" ;
+ Text [ english_us ] = "(Anchor only)" ;
+ Text [ italian ] = "(solo ancoraggio)" ;
+ Text [ spanish ] = "(solo ancla)" ;
+ Text [ french ] = "(ancre seule)" ;
+ Text [ swedish ] = "(endast ankare)" ;
+ Text [ danish ] = "(kun anker)" ;
+ Text [ portuguese ] = "(só âncora)" ;
+ Text [ portuguese_brazilian ] = "(nur Anker)" ;
+ Text[ chinese_simplified ] = "(Ö»ÊDZê¼Ç)";
+ Text[ russian ] = "(òîëüêî ïðèâÿçêà)";
+ Text[ polish ] = "(tylko kotwica)";
+ Text[ japanese ] = "(±Ý¶°‚Ì‚Ý)";
+ Text[ chinese_traditional ] = "(¥u¬O¼Ð¸¹)";
+ Text[ arabic ] = "(ÇáãÑÓÇÉ ÝÞØ)";
+ Text[ dutch ] = "(alleen anker)";
+ Text[ chinese_simplified ] = "(Ö»ÊDZê¼Ç)";
+ Text[ greek ] = "(ìüíï áãêýñùóç)";
+ Text[ korean ] = "(°íÁ¤ ±âÁØ ¸¸)";
+ Text[ turkish ] = "(yalnýzca sabitleyici)";
+ Text[ language_user1 ] = " ";
+};
+String STR_FRM_WIDTH
+{
+ TEXT = "Breite:" ;
+ TEXT [ English ] = "width:" ;
+ Text [ dutch ] = "breedte:" ;
+ Text [ english_us ] = "Width:" ;
+ Text [ italian ] = "Larghezza:" ;
+ Text [ spanish ] = "Ancho:" ;
+ Text [ french ] = "Largeur :" ;
+ Text [ swedish ] = "Bredd:" ;
+ Text [ danish ] = "bredde:" ;
+ Text [ portuguese ] = "Largura:" ;
+ Text [ portuguese_brazilian ] = "Breite:" ;
+ Text[ chinese_simplified ] = "¿í£º";
+ Text[ russian ] = "Øèðèíà:";
+ Text[ polish ] = "SzerokoϾ:";
+ Text[ japanese ] = "•:";
+ Text[ chinese_traditional ] = "¼e¡G";
+ Text[ arabic ] = "ÇáÚÑÖ:";
+ Text[ dutch ] = "breedte:";
+ Text[ chinese_simplified ] = "¿í£º";
+ Text[ greek ] = "ÐëÜôïò:";
+ Text[ korean ] = "³Êºñ:";
+ Text[ turkish ] = "Geniþlik:";
+ Text[ language_user1 ] = " ";
+};
+String STR_FRM_FIXEDHEIGHT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? feste Höhe: : feste H÷he: */
+ TEXT = "feste Höhe:" ;
+ TEXT [ English ] = "fixed height:" ;
+ Text [ dutch ] = "vaste hoogte:" ;
+ Text [ english_us ] = "Fixed height:" ;
+ Text [ italian ] = "altezza fissa:" ;
+ Text [ spanish ] = "Altura fija:" ;
+ Text [ french ] = "Hauteur fixe :" ;
+ Text [ swedish ] = "fast höjd:" ;
+ Text [ danish ] = "fast højde:" ;
+ Text [ portuguese ] = "Altura fixa:" ;
+ Text [ portuguese_brazilian ] = "feste Höhe:" ;
+ Text[ chinese_simplified ] = "¹Ì¶¨¸ß¶È£º";
+ Text[ russian ] = "ôèêñèðîâàííàÿ âûñîòà:";
+ Text[ polish ] = "Sta³a wysokoœæ:";
+ Text[ japanese ] = "‹K’è‚Ì‚‚³:";
+ Text[ chinese_traditional ] = "©T©w°ª«×¡G";
+ Text[ arabic ] = "ÇÑÊÝÇÚ ËÇÈÊ:";
+ Text[ dutch ] = "vaste hoogte:";
+ Text[ chinese_simplified ] = "¹Ì¶¨¸ß¶È£º";
+ Text[ greek ] = "Óôáèåñü ýøïò:";
+ Text[ korean ] = "°íÁ¤µÈ ³ôÀÌ:";
+ Text[ turkish ] = "Sabit yükseklik:";
+ Text[ language_user1 ] = " ";
+};
+String STR_FRM_MINHEIGHT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? min. Höhe: : min. H÷he: */
+ TEXT = "min. Höhe:" ;
+ TEXT [ English ] = "min. height:" ;
+ Text [ english_us ] = "Min. height:" ;
+ Text [ italian ] = "altezza min:" ;
+ Text [ spanish ] = "Altura mínima:" ;
+ Text [ french ] = "Hauteur min. :" ;
+ Text [ dutch ] = "min. hoogte:" ;
+ Text [ swedish ] = "min. höjd:" ;
+ Text [ danish ] = "min. højde:" ;
+ Text [ portuguese ] = "Altura min.:" ;
+ Text [ portuguese_brazilian ] = "min. Höhe:" ;
+ Text[ chinese_simplified ] = "×îС¸ß¶È£º";
+ Text[ russian ] = "ìèí. âûñîòà:";
+ Text[ polish ] = "Min. wysokoϾ:";
+ Text[ japanese ] = "Å’á‚Ì‚‚³:";
+ Text[ chinese_traditional ] = "³Ì¤p°ª«×¡G";
+ Text[ arabic ] = "ÇáÇÑÊÝÇÚ ÇáÃÏäì:";
+ Text[ dutch ] = "min. hoogte:";
+ Text[ chinese_simplified ] = "×îС¸ß¶È£º";
+ Text[ greek ] = "Åëá÷. ýøïò:";
+ Text[ korean ] = "ÃÖ¼Ò ³ôÀÌ:";
+ Text[ turkish ] = "Asg.yükseklik:";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_AT_CNTNT
+{
+ TEXT = "absatzgebunden" ;
+ TEXT [ English ] = "at paragraph" ;
+ Text [ dutch ] = "alinea-gebonden" ;
+ Text [ english_us ] = "to paragraph" ;
+ Text [ italian ] = "al paragrafo" ;
+ Text [ spanish ] = "según párrafo" ;
+ Text [ french ] = "lié au paragraphe" ;
+ Text [ swedish ] = "bunden till stycke" ;
+ Text [ danish ] = "bundet til afsnit" ;
+ Text [ portuguese ] = "ligado ao parágrafo" ;
+ Text [ portuguese_brazilian ] = "absatzgebunden" ;
+ Text[ chinese_simplified ] = "ºÍ¶ÎÂäÁ¬ÔÚÒ»Æð";
+ Text[ russian ] = "ïðèâÿçêà ê àáçàöó";
+ Text[ polish ] = "zwi¹zany z akapitem";
+ Text[ japanese ] = "’i—Ž‚ÉŒ‹‡";
+ Text[ chinese_traditional ] = "©M¬q¸¨³s¦b¤@°_";
+ Text[ arabic ] = "ãÑÊÈØ ÈÇáÝÞÑÉ";
+ Text[ dutch ] = "alinea-gebonden";
+ Text[ chinese_simplified ] = "ºÍ¶ÎÂäÁ¬ÔÚÒ»Æð";
+ Text[ greek ] = "ðñïò ðáñÜãñáöï";
+ Text[ korean ] = "´Ü¶ô¿¡";
+ Text[ turkish ] = "Paragrafa baðlý";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_IN_CNTNT
+{
+ TEXT = "zeichengebunden" ;
+ TEXT [ English ] = "at character" ;
+ Text [ english_us ] = "to character" ;
+ Text [ italian ] = "al carattere" ;
+ Text [ spanish ] = "según carácter" ;
+ Text [ french ] = "au caractère" ;
+ Text [ dutch ] = "schriftteken-gebonden" ;
+ Text [ swedish ] = "bunden till tecken" ;
+ Text [ danish ] = "bundet til tegn" ;
+ Text [ portuguese ] = "conforme carácter" ;
+ Text [ portuguese_brazilian ] = "zeichengebunden" ;
+ Text[ chinese_simplified ] = "ºÍÎÄ×ÖÁ¬ÔÚÒ»Æð";
+ Text[ russian ] = "ïðèâÿçêà ê çíàêó";
+ Text[ polish ] = "zwi¹zany ze znakiem";
+ Text[ japanese ] = "•¶Žš‚ÉŒ‹‡";
+ Text[ chinese_traditional ] = "©M¤å¦r³s¦b¤@°_";
+ Text[ arabic ] = "ãÑÊÈØ ÈÇáÃÍÑÝ";
+ Text[ dutch ] = "schriftteken-gebonden";
+ Text[ chinese_simplified ] = "ºÍÎÄ×ÖÁ¬ÔÚÒ»Æð";
+ Text[ greek ] = "ðñïò ÷áñáêôÞñá";
+ Text[ korean ] = "¹®ÀÚ¿¡";
+ Text[ turkish ] = "Karaktere baðlý";
+ Text[ language_user1 ] = " ";
+};
+String STR_FLY_PAGE
+{
+ TEXT = "seitengebunden" ;
+ TEXT [ English ] = "at page" ;
+ Text [ english_us ] = "to page" ;
+ Text [ italian ] = "alla pagina" ;
+ Text [ spanish ] = "a la página" ;
+ Text [ french ] = "à la page" ;
+ Text [ dutch ] = "pagina-gebonden" ;
+ Text [ swedish ] = "bunden till sida" ;
+ Text [ danish ] = "bundet til side" ;
+ Text [ portuguese ] = "conforme página" ;
+ Text [ portuguese_brazilian ] = "seitengebunden" ;
+ Text[ chinese_simplified ] = "ºÍÒ³Á¬ÔÚÒ»Æð";
+ Text[ russian ] = "ïðèâÿçêà ê ñòðàíèöå";
+ Text[ polish ] = "zwi¹zany ze stron¹";
+ Text[ japanese ] = "Íß°¼Þ‚ÉŒ‹‡";
+ Text[ chinese_traditional ] = "©M­¶³s¦b¤@°_";
+ Text[ arabic ] = "ãÑÊÈØ ÈÇáÕÝÍÉ";
+ Text[ dutch ] = "pagina-gebonden";
+ Text[ chinese_simplified ] = "ºÍÒ³Á¬ÔÚÒ»Æð";
+ Text[ greek ] = "ðñïò óåëßäá";
+ Text[ korean ] = "ÆäÀÌÁö¿¡";
+ Text[ turkish ] = "Sayfaya baðlý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POS_X
+{
+ TEXT = "X-Koord.:" ;
+ TEXT [ English ] = "X-Pos.:" ;
+ Text [ english_us ] = "X Coordinate:" ;
+ Text [ italian ] = "Coord. X:" ;
+ Text [ spanish ] = "Coord. X:" ;
+ Text [ french ] = "Coord. X :" ;
+ Text [ dutch ] = "X-coörd.:" ;
+ Text [ swedish ] = "X-Koord.:" ;
+ Text [ danish ] = "X-koord.:" ;
+ Text [ portuguese ] = "Coordenada X:" ;
+ Text [ portuguese_brazilian ] = "X-Koord.:" ;
+ Text[ chinese_simplified ] = "X-×ø±ê£º";
+ Text[ russian ] = "X-Êîîðäèíàòà.:";
+ Text[ polish ] = "Oœ X.:";
+ Text[ japanese ] = "XÀ•W:";
+ Text[ chinese_traditional ] = "X-§¤¼Ð¡G";
+ Text[ arabic ] = "ÇáÅÍÏÇËí ÇáÓíäí:";
+ Text[ dutch ] = "X-coörd.:";
+ Text[ chinese_simplified ] = "X-×ø±ê£º";
+ Text[ greek ] = "ÓõíôåôáãìÝíç X:";
+ Text[ korean ] = "X ÁÂÇ¥:";
+ Text[ turkish ] = "X koord.:";
+ Text[ language_user1 ] = " ";
+};
+String STR_POS_Y
+{
+ TEXT = "Y-Koord.:" ;
+ TEXT [ English ] = "Y-Pos.:" ;
+ Text [ english_us ] = "Y Coordinate:" ;
+ Text [ italian ] = "Coord. Y:" ;
+ Text [ spanish ] = "Coord. Y:" ;
+ Text [ french ] = "Coord. Y :" ;
+ Text [ dutch ] = "Y-coörd.:" ;
+ Text [ swedish ] = "Y-Koord.:" ;
+ Text [ danish ] = "Y-koord.:" ;
+ Text [ portuguese ] = "Coordenada Y:" ;
+ Text [ portuguese_brazilian ] = "Y-Koord.:" ;
+ Text[ chinese_simplified ] = "Y-×ø±ê£º";
+ Text[ russian ] = "Y-Êîîðäèíàòà.:";
+ Text[ polish ] = "Oœ Y.:";
+ Text[ japanese ] = "YÀ•W:";
+ Text[ chinese_traditional ] = "Y-§¤¼Ð¡G";
+ Text[ arabic ] = "ÇáÅÍÏÇËí ÇáÕÇÏí:";
+ Text[ dutch ] = "Y-coörd.:";
+ Text[ chinese_simplified ] = "Y-×ø±ê£º";
+ Text[ greek ] = "ÓõíôåôáãìÝíç Y:";
+ Text[ korean ] = "Y ÁÂÇ¥:";
+ Text[ turkish ] = "Y koord.:";
+ Text[ language_user1 ] = " ";
+};
+String STR_VERT_TOP
+{
+ TEXT = "oben" ;
+ TEXT [ English ] = "at top" ;
+ Text [ dutch ] = "boven" ;
+ Text [ english_us ] = "at top" ;
+ Text [ italian ] = "in alto" ;
+ Text [ spanish ] = "arriba" ;
+ Text [ french ] = "en haut" ;
+ Text [ swedish ] = "överst" ;
+ Text [ danish ] = "foroven" ;
+ Text [ portuguese ] = "em cima" ;
+ Text [ portuguese_brazilian ] = "oben" ;
+ Text[ chinese_simplified ] = "ÉÏ";
+ Text[ russian ] = "ñâåðõó";
+ Text[ polish ] = "na górze";
+ Text[ japanese ] = "ã";
+ Text[ chinese_traditional ] = "¤W";
+ Text[ arabic ] = "ÃÚáì";
+ Text[ dutch ] = "boven";
+ Text[ chinese_simplified ] = "ÉÏ";
+ Text[ greek ] = "ðÜíù";
+ Text[ korean ] = "À§¿¡";
+ Text[ turkish ] = "üstte";
+ Text[ language_user1 ] = " ";
+};
+String STR_VERT_CENTER
+{
+ TEXT = "vertikal zentriert" ;
+ TEXT [ English ] = "centered vertically" ;
+ Text [ dutch ] = "verticaal gecentreerd" ;
+ Text [ english_us ] = "Centered vertically" ;
+ Text [ italian ] = "centrato verticalmente" ;
+ Text [ spanish ] = "centrado vertical" ;
+ Text [ french ] = "Centré verticalement" ;
+ Text [ swedish ] = "vertikalt centrerad" ;
+ Text [ danish ] = "lodret centreret" ;
+ Text [ portuguese ] = "centrado na vertical" ;
+ Text [ portuguese_brazilian ] = "vertikal zentriert" ;
+ Text[ chinese_simplified ] = "´¹Ö±¾ÓÖÐ";
+ Text[ russian ] = "âåðòèêàëüíî ïî öåíòðó";
+ Text[ polish ] = "Wyœrodkuj pionowo";
+ Text[ japanese ] = "‚’¼‚É’†‰›‘µ‚¦";
+ Text[ chinese_traditional ] = "««ª½¸m¤¤";
+ Text[ arabic ] = "ÊæÓíØ ÚãæÏí";
+ Text[ dutch ] = "verticaal gecentreerd";
+ Text[ chinese_simplified ] = "´¹Ö±¾ÓÖÐ";
+ Text[ greek ] = "êáôáêüñõöá êåíôñáñéóìÝíá";
+ Text[ korean ] = "¼öÁ÷À¸·Î °¡¿îµ¥";
+ Text[ turkish ] = "Dikey ortala";
+ Text[ language_user1 ] = " ";
+};
+String STR_VERT_BOTTOM
+{
+ TEXT = "unten" ;
+ TEXT [ English ] = "at bottom" ;
+ Text [ dutch ] = "onder" ;
+ Text [ english_us ] = "at bottom" ;
+ Text [ italian ] = "in basso" ;
+ Text [ spanish ] = "abajo" ;
+ Text [ french ] = "en bas" ;
+ Text [ swedish ] = "nederst" ;
+ Text [ danish ] = "forneden" ;
+ Text [ portuguese ] = "em baixo" ;
+ Text [ portuguese_brazilian ] = "unten" ;
+ Text[ chinese_simplified ] = "ÏÂ";
+ Text[ russian ] = "ñíèçó";
+ Text[ polish ] = "na dole";
+ Text[ japanese ] = "‰º";
+ Text[ chinese_traditional ] = "¤U";
+ Text[ arabic ] = "ÃÓÝá";
+ Text[ dutch ] = "onder";
+ Text[ chinese_simplified ] = "ÏÂ";
+ Text[ greek ] = "êÜôù";
+ Text[ korean ] = "¾Æ·¡¿¡";
+ Text[ turkish ] = "altta";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_TOP
+{
+ TEXT = "Zeile oben" ;
+ TEXT [ English ] = "line at top" ;
+ Text [ dutch ] = "bovenste regel" ;
+ Text [ english_us ] = "Top of line" ;
+ Text [ italian ] = "Riga in alto" ;
+ Text [ spanish ] = "Línea superior" ;
+ Text [ french ] = "Ligne supérieure" ;
+ Text [ swedish ] = "Översta raden" ;
+ Text [ danish ] = "række øverst" ;
+ Text [ portuguese ] = "Linha superior" ;
+ Text [ portuguese_brazilian ] = "Zeile oben" ;
+ Text[ chinese_simplified ] = "ÐÐÏòÉÏ";
+ Text[ russian ] = "Ñòðîêà ñâåðõó";
+ Text[ polish ] = "Wiersz na górze";
+ Text[ japanese ] = "ü‚Ìã";
+ Text[ chinese_traditional ] = "¦æ¦V¤W";
+ Text[ arabic ] = "ÃÚáì ÇáÓØÑ";
+ Text[ dutch ] = "bovenste regel";
+ Text[ chinese_simplified ] = "ÐÐÏòÉÏ";
+ Text[ greek ] = "ÃñáììÞ ðÜíù";
+ Text[ korean ] = "¼± À§";
+ Text[ turkish ] = "Satýr üstü";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_CENTER
+{
+ TEXT = "vertikal zur Zeile zentriert" ;
+ TEXT [ English ] = "line centered vertically" ;
+ Text [ dutch ] = "verticaal op de regel gecentreerd" ;
+ Text [ english_us ] = "Line centered" ;
+ Text [ italian ] = "centrato verticalmente alla riga" ;
+ Text [ spanish ] = "Centrado verticalmente a la línea" ;
+ Text [ french ] = "Centré sur la ligne à la verticale" ;
+ Text [ swedish ] = "centrerad vertikalt till rad" ;
+ Text [ danish ] = "lodret til række centreret" ;
+ Text [ portuguese ] = "Centrado sobre a linha na vertical" ;
+ Text [ portuguese_brazilian ] = "vertikal zur Zeile zentriert" ;
+ Text[ chinese_simplified ] = "ºÍÐд¹Ö±¾ÓÖÐ";
+ Text[ russian ] = "Âåðòèêàëüíîå öåíòðèðîâàíèå ïî îòíîøåíèþ ê ñòðîêå";
+ Text[ polish ] = "Wyœrodkowany pionowo do wiersza";
+ Text[ japanese ] = "¾Ù‚É‚’¼‚É’†‰›‘µ‚¦";
+ Text[ chinese_traditional ] = "©M¦æ««ª½¸m¤¤";
+ Text[ arabic ] = "ãäÊÕÝ ÇáÓØÑ";
+ Text[ dutch ] = "verticaal op de regel gecentreerd";
+ Text[ chinese_simplified ] = "ºÍÐд¹Ö±¾ÓÖÐ";
+ Text[ greek ] = "êáôáêüñõöá êåíôñáñéóìÝíá ùò ðñïò ôç ãñáììÞ";
+ Text[ korean ] = "ÁÙ°ú ¼öÁ÷¹æÇâ °¡¿îµ¥";
+ Text[ turkish ] = "Satýra göre dikey ortala";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_BOTTOM
+{
+ TEXT = "Zeile unten" ;
+ TEXT [ English ] = "line at bottom" ;
+ Text [ dutch ] = "onderste regel" ;
+ Text [ english_us ] = "Bottom of line" ;
+ Text [ italian ] = "Riga in basso" ;
+ Text [ spanish ] = "Línea inferior" ;
+ Text [ french ] = "Ligne inférieure" ;
+ Text [ swedish ] = "Nedersta raden" ;
+ Text [ danish ] = "række nederst" ;
+ Text [ portuguese ] = "Linha inferior" ;
+ Text [ portuguese_brazilian ] = "Zeile unten" ;
+ Text[ chinese_simplified ] = "ÐÐÏòÏÂ";
+ Text[ russian ] = "Ñòðîêà ñíèçó";
+ Text[ polish ] = "Wiersz na dole";
+ Text[ japanese ] = "ü‚̉º";
+ Text[ chinese_traditional ] = "¦æ¦V¤U";
+ Text[ arabic ] = "ÃÓÝá ÇáÓØÑ";
+ Text[ dutch ] = "onderste regel";
+ Text[ chinese_simplified ] = "ÐÐÏòÏÂ";
+ Text[ greek ] = "ÃñáììÞ êÜôù";
+ Text[ korean ] = "¼± ¾Æ·¡";
+ Text[ turkish ] = "Satýr altý";
+ Text[ language_user1 ] = " ";
+};
+String STR_REGISTER_ON
+{
+ TEXT = "Registerhaltigkeit" ;
+ TEXT [ English ] = "register" ;
+ Text [ english_us ] = "Register-true" ;
+ Text [ italian ] = "Conformità registro" ;
+ Text [ spanish ] = "Conformidad registro" ;
+ Text [ french ] = "Contrôle de repérage" ;
+ Text [ dutch ] = "registeren" ;
+ Text [ swedish ] = "Register" ;
+ Text [ danish ] = "hold register" ;
+ Text [ portuguese ] = "Registo" ;
+ Text [ portuguese_brazilian ] = "Registerhaltigkeit" ;
+ Text[ chinese_simplified ] = "Õý·´Ò³µÄÐоàÏàµÈ";
+ Text[ russian ] = "Ïðèâîäêà";
+ Text[ polish ] = "Jedn. wys. wierszy";
+ Text[ japanese ] = "ˆóüŒ©“–‚ð‡‚킹‚é";
+ Text[ chinese_traditional ] = "¥¿¤Ï­¶ªº¦æ¶Z¬Ûµ¥";
+ Text[ arabic ] = "ÇáÇäÊÙÇã";
+ Text[ dutch ] = "registeren";
+ Text[ chinese_simplified ] = "Õý·´Ò³µÄÐоàÏàµÈ";
+ Text[ greek ] = "Åðéâåâáßùóç åããñáöÞò";
+ Text[ korean ] = "µî·Ï À¯È¿¼º";
+ Text[ turkish ] = "Eþit satýr yüksekliði";
+ Text[ language_user1 ] = " ";
+};
+String STR_REGISTER_OFF
+{
+ TEXT = "keine Registerhaltigkeit" ;
+ TEXT [ English ] = "no register" ;
+ Text [ dutch ] = "niet registeren" ;
+ Text [ english_us ] = "Not register-true" ;
+ Text [ italian ] = "Senza conformità registro" ;
+ Text [ spanish ] = "Sin conformidad registro" ;
+ Text [ french ] = "Pas de contrôle de repérage" ;
+ Text [ swedish ] = "inget register" ;
+ Text [ danish ] = "hold ikke register" ;
+ Text [ portuguese ] = "Sem correspondência registo" ;
+ Text [ portuguese_brazilian ] = "keine Registerhaltigkeit" ;
+ Text[ chinese_simplified ] = "Õý·´Ò³µÄÐо಻ÏàµÈ";
+ Text[ russian ] = "Áåç ïðèâîäêè";
+ Text[ polish ] = "Bez jednakowej wysokoœci wierszy przy wydruku na przedniej i odwrotnej stronie";
+ Text[ japanese ] = "ˆóüŒ©“–‚ð‡‚킹‚È‚¢";
+ Text[ chinese_traditional ] = "¥¿¤Ï­¶ªº¦æ¶Z¤£¬Ûµ¥";
+ Text[ arabic ] = "ÈÏæä ÇäÊÙÇã";
+ Text[ dutch ] = "niet registeren";
+ Text[ chinese_simplified ] = "Õý·´Ò³µÄÐо಻ÏàµÈ";
+ Text[ greek ] = "×ùñßò åðéâåâáßùóç åããñáöÞò";
+ Text[ korean ] = "µî·ÏµÇ¾î ÀÖÁö ¾ÊÀ½";
+ Text[ turkish ] = "Eþit satýr yüksekliði mevcut deðil";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_RIGHT
+{
+ TEXT = "rechts" ;
+ TEXT [ English ] = "at the right" ;
+ Text [ dutch ] = "rechts" ;
+ Text [ english_us ] = "at the right" ;
+ Text [ italian ] = "Destra" ;
+ Text [ spanish ] = "derecha" ;
+ Text [ french ] = "À droite" ;
+ Text [ swedish ] = "höger" ;
+ Text [ danish ] = "højre" ;
+ Text [ portuguese ] = "à direita" ;
+ Text [ portuguese_brazilian ] = "rechts" ;
+ Text[ chinese_simplified ] = "ÓÒ";
+ Text[ russian ] = "ñïðàâà";
+ Text[ polish ] = "Z prawej";
+ Text[ japanese ] = "‰E";
+ Text[ chinese_traditional ] = "¥k";
+ Text[ arabic ] = "Úáì Çáíãíä";
+ Text[ dutch ] = "rechts";
+ Text[ chinese_simplified ] = "ÓÒ";
+ Text[ greek ] = "äåîéÜ";
+ Text[ korean ] = "¿À¸¥ÂÊ¿¡";
+ Text[ turkish ] = "sað";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_CENTER
+{
+ TEXT = "horizontal zentriert" ;
+ TEXT [ English ] = "centered horizontally" ;
+ Text [ dutch ] = "horizontaal gecentreerd" ;
+ Text [ english_us ] = "Centered horizontally" ;
+ Text [ italian ] = "Centrato orizzontalmente" ;
+ Text [ spanish ] = "Centrado horizontal" ;
+ Text [ french ] = "Centré horizontalement" ;
+ Text [ swedish ] = "Horisontellt centrerad" ;
+ Text [ danish ] = "vandret centreret" ;
+ Text [ portuguese ] = "Centrado na horizontal" ;
+ Text [ portuguese_brazilian ] = "horizontal zentriert" ;
+ Text[ chinese_simplified ] = "ˮƽ¾ÓÖÐ";
+ Text[ russian ] = "ãîðèçîíòàëüíî ïî öåíòðó";
+ Text[ polish ] = "Wyœrodkuj poziomo";
+ Text[ japanese ] = "…•½‚É’†‰›‘µ‚¦";
+ Text[ chinese_traditional ] = "¤ô¥­¸m¤¤";
+ Text[ arabic ] = "ÊæÓíØ ÃÝÞí";
+ Text[ dutch ] = "horizontaal gecentreerd";
+ Text[ chinese_simplified ] = "ˮƽ¾ÓÖÐ";
+ Text[ greek ] = "ïñéæïíôßùò êåíôñáñéóìÝíá";
+ Text[ korean ] = "¼öÆòÀ¸·Î °¡¿îµ¥";
+ Text[ turkish ] = "Yatay ortala";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_LEFT
+{
+ TEXT = "links" ;
+ TEXT [ English ] = "at the left" ;
+ Text [ english_us ] = "at the left" ;
+ Text [ italian ] = "sinistra" ;
+ Text [ spanish ] = "Izquierda" ;
+ Text [ french ] = "À gauche" ;
+ Text [ dutch ] = "links" ;
+ Text [ swedish ] = "vänster" ;
+ Text [ danish ] = "venstre" ;
+ Text [ portuguese ] = "à esquerda" ;
+ Text [ portuguese_brazilian ] = "links" ;
+ Text[ chinese_simplified ] = "×ó";
+ Text[ russian ] = "ñëåâà";
+ Text[ polish ] = "Z lewej";
+ Text[ japanese ] = "¶";
+ Text[ chinese_traditional ] = "¥ª";
+ Text[ arabic ] = "Úáì ÇáíÓÇÑ";
+ Text[ dutch ] = "links";
+ Text[ chinese_simplified ] = "×ó";
+ Text[ greek ] = "áñéóôåñÜ";
+ Text[ korean ] = "¿ÞÂÊ¿¡";
+ Text[ turkish ] = "sol";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_INSIDE
+{
+ TEXT = "innen" ;
+ TEXT [ English ] = "inside" ;
+ Text [ dutch ] = "binnen" ;
+ Text [ english_us ] = "inside" ;
+ Text [ italian ] = "all'interno" ;
+ Text [ spanish ] = "interior" ;
+ Text [ french ] = "à l'intérieur" ;
+ Text [ swedish ] = "innanför" ;
+ Text [ danish ] = "inderside" ;
+ Text [ portuguese ] = "dentro" ;
+ Text [ portuguese_brazilian ] = "innen" ;
+ Text[ chinese_simplified ] = "ÄÚ";
+ Text[ russian ] = "âíóòðè";
+ Text[ polish ] = "Wewn¹trz";
+ Text[ japanese ] = "“à‘¤";
+ Text[ chinese_traditional ] = "¤º";
+ Text[ arabic ] = "ÏÇÎá";
+ Text[ dutch ] = "binnen";
+ Text[ chinese_simplified ] = "ÄÚ";
+ Text[ greek ] = "åóùôåñéêÜ";
+ Text[ korean ] = "³»ºÎ";
+ Text[ turkish ] = "iç";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_OUTSIDE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? außen : au˜en */
+ TEXT = "außen" ;
+ TEXT [ English ] = "outside" ;
+ Text [ english_us ] = "outside" ;
+ Text [ italian ] = "fuori" ;
+ Text [ spanish ] = "exterior" ;
+ Text [ french ] = "à l'extérieur" ;
+ Text [ dutch ] = "buiten" ;
+ Text [ swedish ] = "utanför" ;
+ Text [ danish ] = "yderside" ;
+ Text [ portuguese ] = "fora" ;
+ Text [ portuguese_brazilian ] = "außen" ;
+ Text[ chinese_simplified ] = "Íâ";
+ Text[ russian ] = "ñíàðóæè";
+ Text[ polish ] = "Na zewn¹trz";
+ Text[ japanese ] = "ŠO‘¤";
+ Text[ chinese_traditional ] = "¥~";
+ Text[ arabic ] = "ÎÇÑÌ";
+ Text[ dutch ] = "buiten";
+ Text[ chinese_simplified ] = "Íâ";
+ Text[ greek ] = "åîùôåñéêÜ";
+ Text[ korean ] = "¿ÜºÎ";
+ Text[ turkish ] = "dýþ";
+ Text[ language_user1 ] = " ";
+};
+String STR_HORI_FULL
+{
+ TEXT = "volle Breite" ;
+ TEXT [ English ] = "full width" ;
+ Text [ dutch ] = "volle breedte" ;
+ Text [ english_us ] = "Full width" ;
+ Text [ italian ] = "a tutta larghezza" ;
+ Text [ spanish ] = "Ancho total" ;
+ Text [ french ] = "Sur toute la largeur" ;
+ Text [ swedish ] = "full bredd" ;
+ Text [ danish ] = "hele bredden" ;
+ Text [ portuguese ] = "Largura completa" ;
+ Text [ portuguese_brazilian ] = "volle Breite" ;
+ Text[ chinese_simplified ] = "Õû¸ö¿í¶È";
+ Text[ russian ] = "ïîëíàÿ øèðèíà";
+ Text[ polish ] = "Ca³a szerokoœæ";
+ Text[ japanese ] = "Å‘å•";
+ Text[ chinese_traditional ] = "¾ã­Ó¼e«×";
+ Text[ arabic ] = "ÇáÚÑÖ ßáå";
+ Text[ dutch ] = "volle breedte";
+ Text[ chinese_simplified ] = "Õû¸ö¿í¶È";
+ Text[ greek ] = "ïëüêëçñï ðëÜôïò";
+ Text[ korean ] = "ÀüÀÚ";
+ Text[ turkish ] = "Tam geniþlik";
+ Text[ language_user1 ] = " ";
+};
+String STR_COLUMNS
+{
+ TEXT = "Spalten" ;
+ TEXT [ English ] = "columns" ;
+ Text [ dutch ] = "Kolommen" ;
+ Text [ english_us ] = "Columns" ;
+ Text [ italian ] = "Colonne" ;
+ Text [ spanish ] = "Columnas" ;
+ Text [ french ] = "Colonnes" ;
+ Text [ swedish ] = "Kolumner" ;
+ Text [ danish ] = "kolonner" ;
+ Text [ portuguese ] = "Colunas" ;
+ Text [ portuguese_brazilian ] = "Spalten" ;
+ Text[ chinese_simplified ] = "ÁÐ";
+ Text[ russian ] = "Êîëîíêè";
+ Text[ polish ] = "Kolumny";
+ Text[ japanese ] = "’i‘g‚Ý";
+ Text[ chinese_traditional ] = "Äæ";
+ Text[ arabic ] = "ÇáÃÚãÏÉ";
+ Text[ dutch ] = "Kolommen";
+ Text[ chinese_simplified ] = "ÁÐ";
+ Text[ greek ] = "ÓôÞëåò";
+ Text[ korean ] = "¿­";
+ Text[ turkish ] = "Sütun";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINE_WIDTH
+{
+ TEXT = "Trennlinienbreite:" ;
+ TEXT [ English ] = "limiter width:" ;
+ Text [ english_us ] = "Separator Width:" ;
+ Text [ italian ] = "Spessore linea di sepazione" ;
+ Text [ spanish ] = "Ancho de la línea de separación:" ;
+ Text [ french ] = "Largeur du trait de séparation :" ;
+ Text [ dutch ] = "breedte scheidingslijn:" ;
+ Text [ swedish ] = "Skiljelinjens bredd:" ;
+ Text [ danish ] = "Separatorbredde:" ;
+ Text [ portuguese ] = "Largura do separador:" ;
+ Text [ portuguese_brazilian ] = "Trennlinienbreite:" ;
+ Text[ chinese_simplified ] = "·Ö¸ôÏß´Ö£º";
+ Text[ russian ] = "Øèðèíà ðàçäåëèòåëüíîé ëèíèè:";
+ Text[ polish ] = "SzerokoϾ separatora:";
+ Text[ japanese ] = "‹æØ‚èü‚Ì•:";
+ Text[ chinese_traditional ] = "¤À¹j½u²Ê¡G";
+ Text[ arabic ] = "ÚÑÖ ÇáÎØ ÇáÝÇÕá:";
+ Text[ dutch ] = "breedte scheidingslijn:";
+ Text[ chinese_simplified ] = "·Ö¸ôÏß´Ö£º";
+ Text[ greek ] = "ÐëÜôïò äéá÷ùñéóôéêÞò ãñáììÞò:";
+ Text[ korean ] = "±¸ºÐÀÚ ³Êºñ:";
+ Text[ turkish ] = "Ayýrma çizgisi geniþliði:";
+ Text[ language_user1 ] = " ";
+};
+String STR_MAX_FTN_HEIGHT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? max. Fußnotenbereich: : max. Fu˜notenbereich: */
+ TEXT = "max. Fußnotenbereich:" ;
+ TEXT [ English ] = "max. footnotes area:" ;
+ Text [ english_us ] = "Max. footnote area:" ;
+ Text [ italian ] = "Area massima piè pagina:" ;
+ Text [ spanish ] = "Área máx. de la nota al pie:" ;
+ Text [ french ] = "Pied de page max. :" ;
+ Text [ dutch ] = "max. voetnotenbereik:" ;
+ Text [ swedish ] = "max. fotnotsområde:" ;
+ Text [ danish ] = "maks. fodnoteområde:" ;
+ Text [ portuguese ] = "Área máx. de rodapé:" ;
+ Text [ portuguese_brazilian ] = "max. Fußnotenbereich:" ;
+ Text[ chinese_simplified ] = "×î´óµÄ×¢½Å·¶Î§£º";
+ Text[ russian ] = "Ìàêñ. îáëàñòü ñíîñîê:";
+ Text[ polish ] = "Maksymalny obszar przypisów dolnych:";
+ Text[ japanese ] = "Å‘å‚Ì‹r’”͈Í";
+ Text[ chinese_traditional ] = "³Ì¤jªºµù¸}­S³ò¡G";
+ Text[ arabic ] = "ÇáÍÏ ÇáÃÞÕì áäØÇÞ ÇáÍÇÔíÉ ÇáÓÝáíÉ:";
+ Text[ dutch ] = "max. voetnotenbereik:";
+ Text[ chinese_simplified ] = "×î´óµÄ×¢½Å·¶Î§£º";
+ Text[ greek ] = "ÌÝãéóôç ðåñéï÷Þ õðïóçìåßùóçò:";
+ Text[ korean ] = "ÃÖ´ë °¢ÁÖ ¿µ¿ª:";
+ Text[ turkish ] = "azm. dipnot alaný:";
+ Text[ language_user1 ] = " ";
+};
+String STR_EDIT_IN_READONLY
+{
+ /* ### ACHTUNG: Neuer Text in Resource? editierbar im schreibgeschütztem Dokument : editierbar im Schreibeschütztem Dokument */
+ /* ### ACHTUNG: Neuer Text in Resource? editierbar im schreibgeschütztem Dokument : editierbar im Schreibeschütztem Dokument */
+ /* ### ACHTUNG: Neuer Text in Resource? editierbar im schreibgeschütztem Dokument : editierbar im Schreibeschütztem Dokument */
+ /* ### ACHTUNG: Neuer Text in Resource? editierbar im schreibgeschütztem Dokument : editierbar im Schreibeschütztem Dokument */
+ /* ### ACHTUNG: Neuer Text in Resource? editierbar im schreibgeschütztem Dokument : editierbar im Schreibeschütztem Dokument */
+ /* ### ACHTUNG: Neuer Text in Resource? editierbar im schreibgeschütztem Dokument : editierbar im schreibgesch³tztem Dokument */
+ TEXT = "editierbar im schreibgeschütztem Dokument" ;
+ TEXT [ English ] = "edit in readonly Document" ;
+ Text [ portuguese ] = "Editável em documento só de leitura." ;
+ Text [ english_us ] = "Editable in read only document" ;
+ Text [ portuguese_brazilian ] = "editierbar im Schreibeschütztem Dokument" ;
+ Text [ swedish ] = "Redigerbar i skrivskyddat dokument" ;
+ Text [ danish ] = "redigerbar i skrivebeskyttet dokument" ;
+ Text [ italian ] = "modificabile nel documento a sola lettura" ;
+ Text [ spanish ] = "Se puede editar en documentos de solo lectura" ;
+ Text [ french ] = "À éditer dans le document en mode Lecture seule" ;
+ Text [ dutch ] = "editeerbaar in schrijfbeveiligd document" ;
+ Text[ chinese_simplified ] = "Äܹ»±à¼­Êܱ£»¤µÄÎĵµ";
+ Text[ russian ] = "Âîçìîæíîñòü ïðàâêè òîëüêî â çàùèùåííîì îò çàïèñè äîêóìåíòå";
+ Text[ polish ] = "Mo¿liwy do edycji tylko w dokumencie do odczytu";
+ Text[ japanese ] = "‘‚«ž‚ݕی앶‘‚É•ÒW‰Â”\\";
+ Text[ chinese_traditional ] = "¯à°÷½s¿è¨ü«OÅ@ªº¤å¥ó";
+ Text[ arabic ] = "ÞÇÈá ááÊÍÑíÑ Ýí ãÓÊäÏ ááÞÑÇÁÉ ÝÞØ";
+ Text[ dutch ] = "editeerbaar in schrijfbeveiligd document";
+ Text[ chinese_simplified ] = "Äܹ»±à¼­Êܱ£»¤µÄÎĵµ";
+ Text[ greek ] = "äõíáôüôçôá åðåîåñãáóßáò óå Ýããñáöï 'ìüíï ãéá áíÜãíùóç'";
+ Text[ korean ] = "¾²±â º¸È£µÈ ¹®¼­¿¡ ÆíÁý °¡´É";
+ Text[ turkish ] = "Salt okunur belgede düzenlenebilir";
+ Text[ language_user1 ] = " ";
+};
+String STR_LAYOUT_SPLIT
+{
+ TEXT = "Trennen" ;
+ TEXT [ English ] = "splitable" ;
+ Text [ portuguese ] = "Separar" ;
+ Text [ english_us ] = "Split" ;
+ Text [ portuguese_brazilian ] = "Trennen" ;
+ Text [ swedish ] = "Dela" ;
+ Text [ danish ] = "opdel" ;
+ Text [ italian ] = "Separa" ;
+ Text [ spanish ] = "Dividir" ;
+ Text [ french ] = "Scinder" ;
+ Text [ dutch ] = "splitsen" ;
+ Text[ chinese_simplified ] = "·Ö¸ô";
+ Text[ russian ] = "Ðàçäåëèòü";
+ Text[ polish ] = "Podziel";
+ Text[ japanese ] = "•ªŠ„";
+ Text[ chinese_traditional ] = "¤À¶}";
+ Text[ arabic ] = "ÊÞÓíã";
+ Text[ dutch ] = "splitsen";
+ Text[ chinese_simplified ] = "·Ö¸ô";
+ Text[ greek ] = "ÄéÜóðáóç";
+ Text[ korean ] = "³ª´©±â";
+ Text[ turkish ] = "Böl";
+ Text[ language_user1 ] = " ";
+};
+String STR_NUMRULE_ON
+{
+ Text = "Nummerierung" ;
+ Text [ English ] = "Numbering" ;
+ Text [ portuguese ] = "Numeração" ;
+ Text [ english_us ] = "Numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung" ;
+ Text [ swedish ] = "Numrering" ;
+ Text [ danish ] = "nummerering" ;
+ Text [ italian ] = "Numerazione" ;
+ Text [ spanish ] = "Numeración" ;
+ Text [ french ] = "Numérotation" ;
+ Text [ dutch ] = "Nummering" ;
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ russian ] = "Íóìåðàöèÿ";
+ Text[ polish ] = "Numeracja";
+ Text[ japanese ] = "”Ô†•t‚¯";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÊÑÞíã";
+ Text[ dutch ] = "Nummering";
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ greek ] = "Áñßèìçóç";
+ Text[ korean ] = "¹øÈ£ ¸Å±â±â";
+ Text[ turkish ] = "Numaralama";
+ Text[ language_user1 ] = " ";
+};
+String STR_NUMRULE_OFF
+{
+ Text = "keine Nummerierung" ;
+ Text [ English ] = "no numbering" ;
+ Text [ portuguese ] = "sem numeração" ;
+ Text [ english_us ] = "no numbering" ;
+ Text [ portuguese_brazilian ] = "keine Numerierung" ;
+ Text [ swedish ] = "ingen numrering" ;
+ Text [ danish ] = "ingen nummerering" ;
+ Text [ italian ] = "Nessuna numerazione" ;
+ Text [ spanish ] = "Sin numeración" ;
+ Text [ french ] = "pas de numérotation" ;
+ Text [ dutch ] = "geen nummering" ;
+ Text[ chinese_simplified ] = "ÎÞ±àºÅ";
+ Text[ russian ] = "áåç íóìåðàöèè";
+ Text[ polish ] = "Bez numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯‚È‚µ";
+ Text[ chinese_traditional ] = "¤£½s¸¹";
+ Text[ arabic ] = "ÈÏæä ÊÑÞíã";
+ Text[ dutch ] = "geen nummering";
+ Text[ chinese_simplified ] = "ÎÞ±àºÅ";
+ Text[ greek ] = "÷ùñßò áñßèìçóç";
+ Text[ korean ] = "¹øÈ£¸Å±â±â ¾øÀ½";
+ Text[ turkish ] = "Numaralama yok";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONNECT1
+{
+ TEXT = "Verbunden mit " ;
+ TEXT [ English ] = "connected to " ;
+ Text [ portuguese ] = "ligado com " ;
+ Text [ english_us ] = "linked to " ;
+ Text [ portuguese_brazilian ] = "Verbunden mit " ;
+ Text [ swedish ] = "Förbunden med " ;
+ Text [ danish ] = "forbundet med " ;
+ Text [ italian ] = "Collegato con " ;
+ Text [ spanish ] = "Vinculado a " ;
+ Text [ french ] = "Lié à[_] " ;
+ Text [ dutch ] = "Verbonden met " ;
+ Text[ chinese_simplified ] = "Á¬½Óµ½ ";
+ Text[ russian ] = "Ñâÿçàòü ñ ";
+ Text[ polish ] = "Po³¹czony z ";
+ Text[ japanese ] = "Œ‹‡æ ";
+ Text[ chinese_traditional ] = "³sµ²¨ì ";
+ Text[ arabic ] = "ãÑÊÈØ ãÚ ";
+ Text[ dutch ] = "Verbonden met ";
+ Text[ chinese_simplified ] = "Á¬½Óµ½ ";
+ Text[ greek ] = "ÓõíäåäåìÝíï ìå ";
+ Text[ korean ] = "¿¬°á ";
+ Text[ turkish ] = "Baðlanýlan ";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONNECT2
+{
+ TEXT = " und " ;
+ TEXT [ English ] = " and " ;
+ Text [ portuguese ] = "e " ;
+ Text [ english_us ] = "and " ;
+ Text [ portuguese_brazilian ] = "und " ;
+ Text [ swedish ] = "och " ;
+ Text [ danish ] = "og " ;
+ Text [ italian ] = "e " ;
+ Text [ spanish ] = "y " ;
+ Text [ french ] = "et " ;
+ Text [ dutch ] = "en " ;
+ Text[ chinese_simplified ] = "ºÍ ";
+ Text[ russian ] = "è ";
+ Text[ polish ] = "i ";
+ Text[ japanese ] = "‚¨‚æ‚Ñ ";
+ Text[ chinese_traditional ] = "©M ";
+ Text[ arabic ] = "æ ";
+ Text[ dutch ] = "en ";
+ Text[ chinese_simplified ] = "ºÍ ";
+ Text[ greek ] = "êáé ";
+ Text[ korean ] = "¿Í ";
+ Text[ turkish ] = "ve ";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINECOUNT
+{
+ TEXT = "Zeilen zählen" ;
+ TEXT [ English ] = "count lines" ;
+ Text [ portuguese ] = "Contar linhas" ;
+ Text [ english_us ] = "Count lines" ;
+ Text [ portuguese_brazilian ] = "Zeilen zählen" ;
+ Text [ swedish ] = "räkna rader" ;
+ Text [ danish ] = "tæl linjer" ;
+ Text [ italian ] = "Conta le righe" ;
+ Text [ spanish ] = "Contar líneas" ;
+ Text [ french ] = "Compter les lignes" ;
+ Text [ dutch ] = "regels tellen" ;
+ Text[ chinese_simplified ] = "ÐмÆÊý";
+ Text[ russian ] = "Ïîäñ÷åò ñòðîê";
+ Text[ polish ] = "Policz wiersze";
+ Text[ japanese ] = "s‚𔂦‚é";
+ Text[ chinese_traditional ] = "¦æ­p¼Æ";
+ Text[ arabic ] = "ÚÏ ÇáÃÓØÑ";
+ Text[ dutch ] = "regels tellen";
+ Text[ chinese_simplified ] = "ÐмÆÊý";
+ Text[ greek ] = "ÊáôáìÝôñçóç ãñáììþí";
+ Text[ korean ] = "¼± Ä«¿îÆ®";
+ Text[ turkish ] = "Satýr say";
+ Text[ language_user1 ] = " ";
+};
+String STR_DONTLINECOUNT
+{
+ TEXT = "Zeilen nicht zählen" ;
+ TEXT [ English ] = "dont count lines" ;
+ Text [ portuguese ] = "não contar linhas" ;
+ Text [ english_us ] = "don't count lines" ;
+ Text [ portuguese_brazilian ] = "Zeilen nicht zählen" ;
+ Text [ swedish ] = "räkna inte rader" ;
+ Text [ danish ] = "tæl linjer ikke" ;
+ Text [ italian ] = "Non contare le righe" ;
+ Text [ spanish ] = "No contar las líneas" ;
+ Text [ french ] = "Ne pas compter les lignes" ;
+ Text [ dutch ] = "Regels niet tellen" ;
+ Text[ chinese_simplified ] = "²»¼ÆÊýÐÐ";
+ Text[ russian ] = "Ñòðîêè íå ñ÷èòàòü";
+ Text[ polish ] = "Nie liczyæ wierszy";
+ Text[ japanese ] = "s‚𔂦‚È‚¢";
+ Text[ chinese_traditional ] = "¤£­p¼Æ¦æ";
+ Text[ arabic ] = "ÚÏã ÚÏ ÇáÃÓØÑ";
+ Text[ dutch ] = "Regels niet tellen";
+ Text[ chinese_simplified ] = "²»¼ÆÊýÐÐ";
+ Text[ greek ] = "¼÷é êáôáìÝôñçóç ãñáììþí";
+ Text[ korean ] = "¼± Ä«¿îÆ®¸¦ ÇÏÁö ¾ÊÀ½";
+ Text[ turkish ] = "Satýrlarý sayma";
+ Text[ language_user1 ] = " ";
+};
+String STR_LINCOUNT_START
+{
+ TEXT = "Zeilenzähler starten mit: " ;
+ TEXT [ English ] = "restart linecount with: " ;
+ Text [ portuguese ] = "Iniciar contagem de linhas com: " ;
+ Text [ english_us ] = "restart line count with: " ;
+ Text [ portuguese_brazilian ] = "Zeilenzähler starten mit: " ;
+ Text [ swedish ] = "Starta radräknaren med " ;
+ Text [ danish ] = "begynd linjeoptælling med " ;
+ Text [ italian ] = "Iniziare a contare le righe con: " ;
+ Text [ spanish ] = "Iniciar recuento de líneas con: " ;
+ Text [ french ] = "Commencer le compte des lignes à :[_]" ;
+ Text [ dutch ] = "regels telllen starten bij: " ;
+ Text[ chinese_simplified ] = "¼ÆÊýÐдӣº ";
+ Text[ russian ] = "Íà÷àòü ïîäñ÷åò ñòðîê ñ: ";
+ Text[ polish ] = "Rozpocznij liczenie wierszy od: ";
+ Text[ japanese ] = "s”‚¦‚ÌŠJŽn: ";
+ Text[ chinese_traditional ] = "­p¼Æ¦æ±q¡G ";
+ Text[ arabic ] = "ÈÏÁ ÊÑÞíã ÇáÃÓØÑ ÈÜ: ";
+ Text[ dutch ] = "regels telllen starten bij: ";
+ Text[ chinese_simplified ] = "¼ÆÊýÐдӣº ";
+ Text[ greek ] = "Åêêßíçóç êáôáìÝôñçóçò ãñáììþí áðü: ";
+ Text[ korean ] = "ÁÙ¼¼±â ½ÃÀÛ À§Ä¡: ";
+ Text[ turkish ] = "Satýr sayma baþlangýcý: ";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_LUMINANCE
+{
+ Text = "Helligkeit: ";
+ Text[ english ] = "Luminance: ";
+ Text[ english_us ] = "Brightness: ";
+ Text[ portuguese ] = "Luminance: ";
+ Text[ russian ] = "Luminance: ";
+ Text[ greek ] = "Luminance: ";
+ Text[ dutch ] = "Luminance: ";
+ Text[ french ] = "Luminosité : ";
+ Text[ spanish ] = "Luminance: ";
+ Text[ italian ] = "Luminance: ";
+ Text[ danish ] = "Lysstyrke: ";
+ Text[ swedish ] = "Luminance: ";
+ Text[ polish ] = "Luminance: ";
+ Text[ portuguese_brazilian ] = "Luminance: ";
+ Text[ japanese ] = "–¾“x: ";
+ Text[ korean ] = "Luminance: ";
+ Text[ chinese_simplified ] = "ÁÁ¶È£º ";
+ Text[ chinese_traditional ] = "«G«×¡G ";
+ Text[ turkish ] = "Luminance: ";
+ Text[ arabic ] = "Luminance: ";
+};
+
+String STR_CHANNELR
+{
+ Text = "Rotanteil: ";
+ Text[ english ] = "Red portion: ";
+ Text[ english_us ] = "Red: ";
+ Text[ portuguese ] = "Red portion: ";
+ Text[ russian ] = "Red portion: ";
+ Text[ greek ] = "Red portion: ";
+ Text[ dutch ] = "Red portion: ";
+ Text[ french ] = "Proportion de rouge : ";
+ Text[ spanish ] = "Red portion: ";
+ Text[ italian ] = "Red portion: ";
+ Text[ danish ] = "Rød-andel: ";
+ Text[ swedish ] = "Red portion: ";
+ Text[ polish ] = "Red portion: ";
+ Text[ portuguese_brazilian ] = "Red portion: ";
+ Text[ japanese ] = "ÔF‚ÌŠ„‡: ";
+ Text[ korean ] = "Red portion: ";
+ Text[ chinese_simplified ] = "ºìÉ«±ÈÀý£º ";
+ Text[ chinese_traditional ] = "¬õ¦â¤ñ¨Ò¡G ";
+ Text[ turkish ] = "Red portion: ";
+ Text[ arabic ] = "Red portion: ";
+};
+
+String STR_CHANNELG
+{
+ Text = "Grünanteil: ";
+ Text[ english ] = "Green portion: ";
+ Text[ english_us ] = "Green: ";
+ Text[ portuguese ] = "Green portion: ";
+ Text[ russian ] = "Green portion: ";
+ Text[ greek ] = "Green portion: ";
+ Text[ dutch ] = "Green portion: ";
+ Text[ french ] = "Proportion de vert : ";
+ Text[ spanish ] = "Green portion: ";
+ Text[ italian ] = "Green portion: ";
+ Text[ danish ] = "Grøn-andel: ";
+ Text[ swedish ] = "Green portion: ";
+ Text[ polish ] = "Green portion: ";
+ Text[ portuguese_brazilian ] = "Green portion: ";
+ Text[ japanese ] = "—ÎF‚ÌŠ„‡: ";
+ Text[ korean ] = "Green portion: ";
+ Text[ chinese_simplified ] = "ÂÌÉ«±ÈÀý£º ";
+ Text[ chinese_traditional ] = "ºñ¦â¤ñ¨Ò¡G ";
+ Text[ turkish ] = "Green portion: ";
+ Text[ arabic ] = "Green portion: ";
+};
+
+String STR_CHANNELB
+{
+ Text = "Blauanteil: ";
+ Text[ english ] = "Blue portion: ";
+ Text[ english_us ] = "Blue: ";
+ Text[ portuguese ] = "Blue portion: ";
+ Text[ russian ] = "Blue portion: ";
+ Text[ greek ] = "Blue portion: ";
+ Text[ dutch ] = "Blue portion: ";
+ Text[ french ] = "Proportion de bleu : ";
+ Text[ spanish ] = "Blue portion: ";
+ Text[ italian ] = "Blue portion: ";
+ Text[ danish ] = "Blå-andel: ";
+ Text[ swedish ] = "Blue portion: ";
+ Text[ polish ] = "Blue portion: ";
+ Text[ portuguese_brazilian ] = "Blue portion: ";
+ Text[ japanese ] = "ÂF‚ÌŠ„‡: ";
+ Text[ korean ] = "Blue portion: ";
+ Text[ chinese_simplified ] = "À¶É«±ÈÀý£º ";
+ Text[ chinese_traditional ] = "ÂŦâ¤ñ¨Ò¡G ";
+ Text[ turkish ] = "Blue portion: ";
+ Text[ arabic ] = "Blue portion: ";
+};
+
+String STR_CONTRAST
+{
+ Text = "Kontrast: ";
+ Text[ english ] = "Contrast: ";
+ Text[ english_us ] = "Contrast: ";
+ Text[ portuguese ] = "Contrast: ";
+ Text[ russian ] = "Contrast: ";
+ Text[ greek ] = "Contrast: ";
+ Text[ dutch ] = "Contrast: ";
+ Text[ french ] = "Contraste : ";
+ Text[ spanish ] = "Contrast: ";
+ Text[ italian ] = "Contrast: ";
+ Text[ danish ] = "Kontrast: ";
+ Text[ swedish ] = "Contrast: ";
+ Text[ polish ] = "Contrast: ";
+ Text[ portuguese_brazilian ] = "Contrast: ";
+ Text[ japanese ] = "ºÝÄ×½Ä: ";
+ Text[ korean ] = "Contrast: ";
+ Text[ chinese_simplified ] = "¶Ô±È¶È£º ";
+ Text[ chinese_traditional ] = "¹ï¤ñ«×¡G ";
+ Text[ turkish ] = "Contrast: ";
+ Text[ arabic ] = "Contrast: ";
+};
+
+String STR_GAMMA
+{
+ Text = "Gamma: ";
+ Text[ english ] = "Gamma: ";
+ Text[ english_us ] = "Gamma: ";
+ Text[ portuguese ] = "Gamma: ";
+ Text[ russian ] = "Gamma: ";
+ Text[ greek ] = "Gamma: ";
+ Text[ dutch ] = "Gamma: ";
+ Text[ french ] = "Gamma : ";
+ Text[ spanish ] = "Gamma: ";
+ Text[ italian ] = "Gamma: ";
+ Text[ danish ] = "Gamma: ";
+ Text[ swedish ] = "Gamma: ";
+ Text[ polish ] = "Gamma: ";
+ Text[ portuguese_brazilian ] = "Gamma: ";
+ Text[ japanese ] = "¶ÞÝÏ: ";
+ Text[ korean ] = "Gamma: ";
+ Text[ chinese_simplified ] = "»ÒɫϵÊý£º ";
+ Text[ chinese_traditional ] = "¦Ç¦â¨t¼Æ¡G ";
+ Text[ turkish ] = "Gamma: ";
+ Text[ arabic ] = "Gamma: ";
+};
+
+String STR_TRANSPARENCY
+{
+ Text = "Transparenz: ";
+ Text[ english ] = "Transparency: ";
+ Text[ english_us ] = "Transparency: ";
+ Text[ portuguese ] = "Transparency: ";
+ Text[ russian ] = "Transparency: ";
+ Text[ greek ] = "Transparency: ";
+ Text[ dutch ] = "Transparency: ";
+ Text[ french ] = "Transparence: ";
+ Text[ spanish ] = "Transparency: ";
+ Text[ italian ] = "Transparency: ";
+ Text[ danish ] = "Transparens: ";
+ Text[ swedish ] = "Transparency: ";
+ Text[ polish ] = "Transparency: ";
+ Text[ portuguese_brazilian ] = "Transparency: ";
+ Text[ japanese ] = "“§‰ß«: ";
+ Text[ korean ] = "Transparency: ";
+ Text[ chinese_simplified ] = "͸Ã÷¶È£º ";
+ Text[ chinese_traditional ] = "³z©ú«×¡G ";
+ Text[ turkish ] = "Transparency: ";
+ Text[ arabic ] = "Transparency: ";
+};
+
+String STR_INVERT
+{
+ Text = "Invertieren";
+ Text[ english ] = "Invert";
+};
+String STR_INVERT_NOT
+{
+ Text = "nicht invertieren";
+ Text[ english ] = "not invert";
+ Text[ english_us ] = "do not invert";
+ Text[ portuguese ] = "not invert";
+ Text[ russian ] = "not invert";
+ Text[ greek ] = "not invert";
+ Text[ dutch ] = "not invert";
+ Text[ french ] = "ne pas invertir";
+ Text[ spanish ] = "not invert";
+ Text[ italian ] = "not invert";
+ Text[ danish ] = "ikke invertere";
+ Text[ swedish ] = "not invert";
+ Text[ polish ] = "not invert";
+ Text[ portuguese_brazilian ] = "not invert";
+ Text[ japanese ] = "‹t“]‚È‚µ";
+ Text[ korean ] = "not invert";
+ Text[ chinese_simplified ] = "²»×ª»»»¥²¹É«";
+ Text[ chinese_traditional ] = "¤£Âà´«¤¬¸É¦â";
+ Text[ turkish ] = "not invert";
+ Text[ arabic ] = "not invert";
+};
+
+String STR_DRAWMODE
+{
+ Text = "Grafikmodus: ";
+ Text[ english ] = "Graphics mode: ";
+ Text[ english_us ] = "Graphics mode: ";
+ Text[ portuguese ] = "Graphics mode: ";
+ Text[ russian ] = "Graphics mode: ";
+ Text[ greek ] = "Graphics mode: ";
+ Text[ dutch ] = "Graphics mode: ";
+ Text[ french ] = "Mode Graphique : ";
+ Text[ spanish ] = "Graphics mode: ";
+ Text[ italian ] = "Graphics mode: ";
+ Text[ danish ] = "Billedmodus: ";
+ Text[ swedish ] = "Graphics mode: ";
+ Text[ polish ] = "Graphics mode: ";
+ Text[ portuguese_brazilian ] = "Graphics mode: ";
+ Text[ japanese ] = "¸Þ×̨¯¸Ó°ÄÞ: ";
+ Text[ korean ] = "Graphics mode: ";
+ Text[ chinese_simplified ] = "ͼÐÎģʽ£º ";
+ Text[ chinese_traditional ] = "¹Ï§Î¼Ò¦¡¡G ";
+ Text[ turkish ] = "Graphics mode: ";
+ Text[ arabic ] = "Graphics mode: ";
+};
+
+String STR_DRAWMODE_STD
+{
+ Text = "Standard";
+ Text[ english ] = "Standard";
+ Text[ english_us ] = "Standard";
+ Text[ portuguese ] = "Standard";
+ Text[ russian ] = "Standard";
+ Text[ greek ] = "Standard";
+ Text[ dutch ] = "Standard";
+ Text[ french ] = "Standard";
+ Text[ spanish ] = "Standard";
+ Text[ italian ] = "Standard";
+ Text[ danish ] = "Standard";
+ Text[ swedish ] = "Standard";
+ Text[ polish ] = "Standard";
+ Text[ portuguese_brazilian ] = "Standard";
+ Text[ japanese ] = "•W€";
+ Text[ korean ] = "Standard";
+ Text[ chinese_simplified ] = "±ê×¼";
+ Text[ chinese_traditional ] = "¼Ð­ã";
+ Text[ turkish ] = "Standard";
+ Text[ arabic ] = "Standard";
+};
+String STR_DRAWMODE_GREY
+{
+ Text = "Graustufen";
+ Text[ english ] = "Greys";
+ Text[ english_us ] = "Grayscales";
+ Text[ portuguese ] = "Greys";
+ Text[ russian ] = "Greys";
+ Text[ greek ] = "Greys";
+ Text[ dutch ] = "Greys";
+ Text[ french ] = "Niveaux de gris";
+ Text[ spanish ] = "Greys";
+ Text[ italian ] = "Greys";
+ Text[ danish ] = "Gråtoner";
+ Text[ swedish ] = "Greys";
+ Text[ polish ] = "Greys";
+ Text[ portuguese_brazilian ] = "Greys";
+ Text[ japanese ] = "¸ÞÚ°½¹°Ù";
+ Text[ korean ] = "Greys";
+ Text[ chinese_simplified ] = "»Ò¶È";
+ Text[ chinese_traditional ] = "¦Ç¶¥";
+ Text[ turkish ] = "Greys";
+ Text[ arabic ] = "Greys";
+};
+String STR_DRAWMODE_BLACKWHITE
+{
+ Text = "Schwarz/Weiß";
+ Text[ english ] = "Black/White";
+ Text[ english_us ] = "Black & White";
+ Text[ portuguese ] = "Black/White";
+ Text[ russian ] = "Black/White";
+ Text[ greek ] = "Black/White";
+ Text[ dutch ] = "Black/White";
+ Text[ french ] = "Noir/Blanc";
+ Text[ spanish ] = "Black/White";
+ Text[ italian ] = "Black/White";
+ Text[ danish ] = "Sort-hvid";
+ Text[ swedish ] = "Black/White";
+ Text[ polish ] = "Black/White";
+ Text[ portuguese_brazilian ] = "Black/White";
+ Text[ japanese ] = "”’•";
+ Text[ korean ] = "Black/White";
+ Text[ chinese_simplified ] = "ºÚ°×";
+ Text[ chinese_traditional ] = "¶Â¥Õ";
+ Text[ turkish ] = "Black/White";
+ Text[ arabic ] = "Black/White";
+};
+String STR_DRAWMODE_WATERMARK
+{
+ Text = "Wasserzeichen";
+ Text[ english ] = "Watermark";
+ Text[ english_us ] = "Watermark";
+ Text[ portuguese ] = "Watermark";
+ Text[ russian ] = "Watermark";
+ Text[ greek ] = "Watermark";
+ Text[ dutch ] = "Watermark";
+ Text[ french ] = "Filigrane";
+ Text[ spanish ] = "Watermark";
+ Text[ italian ] = "Watermark";
+ Text[ danish ] = "Vandmærke";
+ Text[ swedish ] = "Watermark";
+ Text[ polish ] = "Watermark";
+ Text[ portuguese_brazilian ] = "Watermark";
+ Text[ japanese ] = "“§‚©‚µ";
+ Text[ korean ] = "Watermark";
+ Text[ chinese_simplified ] = "ˮӡ";
+ Text[ chinese_traditional ] = "¤ô¦L";
+ Text[ turkish ] = "Watermark";
+ Text[ arabic ] = "Watermark";
+};
+String STR_ROTATION
+{
+ Text = "Drehung";
+ Text[ english ] = "Rotation";
+ Text[ english_us ] = "Rotation";
+ Text[ portuguese ] = "Rotation";
+ Text[ russian ] = "Rotation";
+ Text[ greek ] = "Rotation";
+ Text[ dutch ] = "Rotation";
+ Text[ french ] = "Rotation";
+ Text[ spanish ] = "Rotation";
+ Text[ italian ] = "Rotation";
+ Text[ danish ] = "Rotation";
+ Text[ swedish ] = "Rotation";
+ Text[ polish ] = "Rotation";
+ Text[ portuguese_brazilian ] = "Rotation";
+ Text[ japanese ] = "‰ñ“]";
+ Text[ korean ] = "Rotation";
+ Text[ chinese_simplified ] = "Ðýת";
+ Text[ chinese_traditional ] = "±ÛÂà";
+ Text[ turkish ] = "Rotation";
+ Text[ arabic ] = "Rotation";
+};
+
+
diff --git a/sw/source/ui/utlui/bookctrl.cxx b/sw/source/ui/utlui/bookctrl.cxx
new file mode 100644
index 000000000000..ad2d1da9ac04
--- /dev/null
+++ b/sw/source/ui/utlui/bookctrl.cxx
@@ -0,0 +1,291 @@
+/*************************************************************************
+ *
+ * $RCSfile: bookctrl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_USHORTS
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _EVENT_HXX //autogen
+#include <vcl/event.hxx>
+#endif
+#ifndef _STATUS_HXX //autogen
+#include <vcl/status.hxx>
+#endif
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "errhdl.hxx"
+#include "swmodule.hxx"
+#include "wrtsh.hxx"
+#include "bookmrk.hxx"
+#include "bookctrl.hxx"
+
+
+SFX_IMPL_STATUSBAR_CONTROL( SwBookmarkControl, SfxStringItem );
+
+// class BookmarkPopup_Impl --------------------------------------------------
+
+class BookmarkPopup_Impl : public PopupMenu
+{
+public:
+ BookmarkPopup_Impl();
+
+ USHORT GetCurId() const { return nCurId; }
+
+private:
+ USHORT nCurId;
+
+ virtual void Select();
+};
+
+// -----------------------------------------------------------------------
+
+BookmarkPopup_Impl::BookmarkPopup_Impl() :
+ PopupMenu(),
+ nCurId(USHRT_MAX)
+{
+}
+
+// -----------------------------------------------------------------------
+
+void BookmarkPopup_Impl::Select()
+{
+ nCurId = GetCurItemId();
+}
+
+// class SvxZoomStatusBarControl ------------------------------------------
+
+SwBookmarkControl::SwBookmarkControl( USHORT nId,
+ StatusBar& rStb,
+ SfxBindings& rBind ) :
+ SfxStatusBarControl( nId, rStb, rBind )
+{
+}
+
+// -----------------------------------------------------------------------
+
+SwBookmarkControl::~SwBookmarkControl()
+{
+}
+
+// -----------------------------------------------------------------------
+
+void SwBookmarkControl::StateChanged( const SfxPoolItem* pState )
+{
+ SfxItemState eState = GetItemState(pState);
+
+ if( eState != SFX_ITEM_AVAILABLE || pState->ISA( SfxVoidItem ) )
+ GetStatusBar().SetItemText( GetId(), String() );
+ else if ( pState->ISA( SfxStringItem ) )
+ {
+ sPageNumber = ((SfxStringItem*)pState)->GetValue();
+ GetStatusBar().SetItemText( GetId(), sPageNumber );
+ }
+}
+
+// -----------------------------------------------------------------------
+
+void SwBookmarkControl::Paint( const UserDrawEvent& )
+{
+ GetStatusBar().SetItemText( GetId(), sPageNumber );
+}
+
+// -----------------------------------------------------------------------
+
+void SwBookmarkControl::Command( const CommandEvent& rCEvt )
+{
+ if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU &&
+ GetStatusBar().GetItemText( GetId() ).Len() )
+ {
+ CaptureMouse();
+ BookmarkPopup_Impl aPop;
+ SwWrtShell* pWrtShell = ::GetActiveWrtShell();
+ USHORT nBookCnt;
+ if( pWrtShell && 0 != ( nBookCnt = pWrtShell->GetBookmarkCnt() ) )
+ {
+ SvUShorts aBookArr;
+ for( USHORT nCount = 0; nCount < nBookCnt; ++nCount )
+ {
+ SwBookmark& rBkmk = pWrtShell->GetBookmark( nCount );
+ if( rBkmk.IsBookMark() )
+ {
+ aBookArr.Insert( nCount, aBookArr.Count() );
+ aPop.InsertItem( aBookArr.Count(), rBkmk.GetName() );
+ }
+ }
+ aPop.Execute( &GetStatusBar(), rCEvt.GetMousePosPixel());
+ USHORT nId = aPop.GetCurId();
+ if( nId != USHRT_MAX)
+ {
+ SfxUInt16Item aBookmark( FN_STAT_BOOKMARK, aBookArr[nId-1] );
+ SfxViewFrame::Current()->GetDispatcher()->Execute( FN_STAT_BOOKMARK,
+ SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD,
+ &aBookmark, 0L );
+ }
+ }
+ ReleaseMouse();
+ }
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.30 2000/09/18 16:06:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.29 2000/09/07 15:59:34 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.28 2000/02/11 15:00:22 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.27 1998/03/10 14:35:06 OS
+ Textmarkenindex wieder selbst feststellen #47718#
+
+
+ Rev 1.26 10 Mar 1998 15:35:06 OS
+ Textmarkenindex wieder selbst feststellen #47718#
+
+ Rev 1.25 23 Feb 1998 07:20:24 OS
+ GetBookmark/ Cnt mit Bookmark-Flag
+
+ Rev 1.24 21 Nov 1997 12:10:14 MA
+ includes
+
+ Rev 1.23 03 Nov 1997 13:59:22 MA
+ precomp entfernt
+
+ Rev 1.22 29 Aug 1997 15:57:30 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.21 29 Aug 1997 13:36:12 OS
+ DLL-Umbau
+
+ Rev 1.20 08 Aug 1997 17:25:24 OM
+ Headerfile-Umstellung
+
+ Rev 1.19 09 Jul 1997 17:45:30 HJS
+ includes
+
+ Rev 1.18 14 Jan 1997 09:37:30 TRI
+ includes
+
+ Rev 1.17 23 Oct 1996 13:49:32 JP
+ SVMEM -> SVSTDARR Umstellung
+
+ Rev 1.16 28 Aug 1996 15:42:46 OS
+ includes
+
+ Rev 1.15 24 Jul 1996 13:49:56 OS
+ PCH nachgeruestet
+
+ Rev 1.14 26 Jun 1996 15:04:02 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.13 01 Feb 1996 19:07:02 JP
+ BookmarkControl::Command: ans PopUp die Pos im Bookmark-Array uebergeben, nicht die laufende!
+
+ Rev 1.12 17 Nov 1995 12:47:52 MA
+ Segmentierung
+
+ Rev 1.11 13 Nov 1995 20:46:10 JP
+ Ptrarr gegen SvUShortArr ausgetauscht
+
+ Rev 1.10 07 Nov 1995 18:04:16 MA
+ opt/fix/chg: statics und segs
+
+ Rev 1.9 17 Oct 1995 20:54:14 JP
+ IsMark oder IsBookmark am Bookmark benutzen
+
+ Rev 1.8 06 Oct 1995 00:20:14 HJS
+ pState => eState
+
+ Rev 1.7 05 Oct 1995 18:41:12 OM
+ StateChanged umgestellt
+
+ Rev 1.6 09 Aug 1995 19:15:18 OS
+ Umstellung auf CommandHdl
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/utlui/condedit.cxx b/sw/source/ui/utlui/condedit.cxx
new file mode 100644
index 000000000000..e050dbc6aade
--- /dev/null
+++ b/sw/source/ui/utlui/condedit.cxx
@@ -0,0 +1,179 @@
+/*************************************************************************
+ *
+ * $RCSfile: condedit.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:49 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+// include ---------------------------------------------------------------
+
+#pragma hdrstop
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SV_EVENT_HXX //autogen
+#include <vcl/event.hxx>
+#endif
+#ifndef _SV_DRAG_HXX //autogen
+#include <vcl/drag.hxx>
+#endif
+#ifndef _SOT_FORMATS_HXX //autogen
+#include <sot/formats.hxx>
+#endif
+
+#ifndef _CONDEDIT_HXX
+#include <condedit.hxx>
+#endif
+
+#define DB_DD_DELIM 0x0b
+
+// STATIC DATA -----------------------------------------------------------
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ConditionEdit::ConditionEdit( Window* pParent, const ResId& rResId ) :
+ Edit( pParent, rResId ),
+ bBrackets(TRUE)
+{
+ EnableDrop();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Drop moeglich, bzw Format bekannt?
+ --------------------------------------------------------------------*/
+
+BOOL ConditionEdit::QueryDrop( DropEvent& rDEvt )
+{
+ rDEvt.SetAction(DROP_COPY);
+
+ if (DragServer::HasFormat(0, SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE ))
+ {
+ BOOL bString = FALSE;
+
+ for (USHORT nItem = 0; nItem < DragServer::GetItemCount(); nItem++)
+ {
+ if (DragServer::HasFormat(nItem, FORMAT_STRING))
+ {
+ bString = TRUE;
+ break;
+ }
+ }
+ if (!bString) // String reinpacken, um DD-Cursor zu erhalten
+ {
+ if (DragServer::HasFormat(0, SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE))
+ {
+ USHORT nLen = (USHORT)DragServer::GetDataLen(0, SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE) - 1;
+ DBG_ASSERT(!(nLen%2), "not a UniString")
+ String sTxt;
+ sal_Unicode *pTxt = sTxt.AllocBuffer(nLen / 2);
+
+ DragServer::PasteData(0, pTxt, nLen, SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE);
+
+ String sDBName;
+ if (bBrackets)
+ sDBName += '[';
+ sDBName += sTxt.GetToken(0, DB_DD_DELIM);
+ sDBName += '.';
+ sDBName += sTxt.GetToken(1, DB_DD_DELIM);
+ sDBName += '.';
+ sDBName += sTxt.GetToken(3, DB_DD_DELIM); // ColumnName
+ if (bBrackets)
+ sDBName += ']';
+ DragServer::CopyString(sDBName);
+ }
+ }
+ }
+
+ return Edit::QueryDrop( rDEvt );
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.7 2000/09/18 16:06:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.6 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.5 2000/02/11 15:00:29 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.4 1998/11/17 21:18:48 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+
+ Rev 1.3 17 Nov 1998 22:18:48 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+ Rev 1.2 18 May 1998 14:53:24 OM
+ #50001 Keine eckigen Klammern in DB-Condition-Fields
+
+ Rev 1.1 12 Mar 1998 16:32:42 OM
+ Datenbanknamen in eckigen Klammern bei Drop
+
+ Rev 1.0 19 Nov 1997 16:21:42 OM
+ Initial revision.
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx
new file mode 100644
index 000000000000..aad5df03f940
--- /dev/null
+++ b/sw/source/ui/utlui/content.cxx
@@ -0,0 +1,3223 @@
+/*************************************************************************
+ *
+ * $RCSfile: content.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _DRAG_HXX //autogen
+#include <vcl/drag.hxx>
+#endif
+#ifndef _URLBMK_HXX //autogen
+#include <svtools/urlbmk.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _CLIP_HXX //autogen
+#include <vcl/clip.hxx>
+#endif
+#ifndef _HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+#ifndef _SOT_FORMATS_HXX //autogen
+#include <sot/formats.hxx>
+#endif
+#ifndef _SV_SOUND_HXX //autogen
+#include <vcl/sound.hxx>
+#endif
+
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _TXTINET_HXX //autogen
+#include <txtinet.hxx>
+#endif
+#ifndef _FMTFLD_HXX //autogen
+#include <fmtfld.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _CONTENT_HXX
+#include <content.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _TXTATR_HXX
+#include <txtatr.hxx>
+#endif
+#ifndef _BOOKMRK_HXX
+#include <bookmrk.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx>
+#endif
+#ifndef _TOX_HXX
+#include <tox.hxx>
+#endif
+#define NAVIPI_CXX
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+#ifndef _NAVICONT_HXX
+#include <navicont.hxx>
+#endif
+#ifndef _NAVICFG_HXX
+#include <navicfg.hxx>
+#endif
+#ifndef _SWCONT_HXX
+#include <swcont.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _UNOTOOLS_HXX
+#include <unotools.hxx>
+#endif
+#ifndef _HINTS_HXX
+#include <hints.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _NAVIPI_HRC
+#include <navipi.hrc>
+#endif
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _MISC_HRC
+#include <misc.hrc>
+#endif
+#ifndef _COMCORE_HRC
+#include <comcore.hrc>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTSECTIONSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextSectionsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTGRAPHICOBJECTSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTTABLESSUPPLIER_HPP_
+#include <com/sun/star/text/XTextTablesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XDOCUMENTINDEXESSUPPLIER_HPP_
+#include <com/sun/star/text/XDocumentIndexesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XBOOKMARKSSUPPLIER_HPP_
+#include <com/sun/star/text/XBookmarksSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTEMBEDDEDOBJECTSSUPPLIER_HPP_
+#include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTFRAMESSUPPLIER_HPP_
+#include <com/sun/star/text/XTextFramesSupplier.hpp>
+#endif
+
+
+#define CTYPE_CNT 0
+#define CTYPE_CTT 1
+
+using namespace ::com::sun::star;
+
+#define CP2S(cChar) UniString::CreateFromAscii(cChar)
+#define C2S(cChar) UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(cChar))
+
+#define NAVI_BOOKMARK_DELIM (sal_Unicode)1
+
+
+/***************************************************************************
+
+***************************************************************************/
+
+typedef SwContent* SwContentPtr;
+SV_DECL_PTRARR_SORT_DEL( SwContentArr, SwContentPtr, 0,4)
+SV_IMPL_OP_PTRARR_SORT(SwContentArr, SwContentPtr)
+
+sal_Bool SwContentTree::bIsInDrag = sal_False;
+
+
+/***************************************************************************
+ Beschreibung: Hilfsmethoden
+***************************************************************************/
+
+
+sal_Bool lcl_IsContent(SvLBoxEntry* pEntry)
+{
+ return ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CNT;
+}
+
+
+sal_Bool lcl_IsContentType(SvLBoxEntry* pEntry)
+{
+ return ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CTT;
+}
+
+
+sal_Bool lcl_FindShell(SwWrtShell* pShell)
+{
+ sal_Bool bFound = sal_False;
+ SwView *pView = SwModule::GetFirstView();
+ while (pView)
+ {
+ if(pShell == &pView->GetWrtShell())
+ {
+ bFound = sal_True;
+ break;
+ }
+ pView = SwModule::GetNextView(pView);
+ }
+ return bFound;
+}
+
+/***************************************************************************
+ Beschreibung: Inhalt, enthaelt Namen und Verweis auf den Inhalstyp
+***************************************************************************/
+
+
+SwContent::SwContent(const SwContentType* pCnt, const String& rName, long nYPos) :
+ pParent(pCnt),
+ sContentName(rName),
+ SwTypeNumber(CTYPE_CNT),
+ nYPosition(nYPos),
+ bInvisible(sal_False)
+{
+}
+
+
+sal_uInt8 SwTypeNumber::GetTypeId()
+{
+ return nTypeId;
+}
+
+SwTypeNumber::~SwTypeNumber()
+{
+}
+
+sal_Bool SwContent::IsProtect() const
+{
+ return sal_False;
+}
+
+sal_Bool SwPostItContent::IsProtect() const
+{
+ return pFld->IsProtect();
+}
+
+sal_Bool SwURLFieldContent::IsProtect() const
+{
+ return pINetAttr->IsProtect();
+}
+
+SwGraphicContent::~SwGraphicContent()
+{
+}
+SwTOXBaseContent::~SwTOXBaseContent()
+{
+}
+
+/***************************************************************************
+ Beschreibung: Inhaltstyp, kennt seine Inhalte und die WrtShell
+***************************************************************************/
+
+
+SwContentType::SwContentType(SwWrtShell* pShell, sal_uInt16 nType, sal_uInt8 nLevel) :
+ SwTypeNumber(CTYPE_CTT),
+ pWrtShell(pShell),
+ nContentType(nType),
+ nOutlineLevel(nLevel),
+ bDataValid(sal_False),
+ bMemberFilled(sal_False),
+ sContentTypeName(SW_RES(STR_CONTENT_TYPE_FIRST + nType)),
+ sSingleContentTypeName(SW_RES(STR_CONTENT_TYPE_SINGLE_FIRST + nType)),
+ pMember(0),
+ bEdit(sal_False),
+ bDelete(sal_True),
+ nMemberCount(0)
+{
+ Init();
+}
+
+/***************************************************************************
+ Beschreibung: Initialisierung
+***************************************************************************/
+
+
+void SwContentType::Init(sal_Bool* pbInvalidateWindow)
+{
+ // wenn sich der MemberCount aendert ...
+ sal_uInt16 nOldMemberCount = nMemberCount;
+ nMemberCount = 0;
+ switch(nContentType)
+ {
+ case CONTENT_TYPE_OUTLINE :
+ {
+ sTypeToken = CP2S(pMarkToOutline);
+ sal_uInt16 nOutlineCount = nMemberCount = pWrtShell->GetOutlineCnt();
+ if(nOutlineLevel < MAXLEVEL)
+ {
+ for(sal_uInt16 j = 0; j < nOutlineCount; j++)
+ {
+ if(pWrtShell->GetOutlineLevel(j) > nOutlineLevel )
+ nMemberCount --;
+ }
+ }
+ bDelete = sal_False;
+ }
+ break;
+
+ case CONTENT_TYPE_TABLE :
+ sTypeToken = CP2S(pMarkToTable);
+ nMemberCount = pWrtShell->GetTblFrmFmtCount(sal_True);
+ bEdit = sal_True;
+ break;
+
+ case CONTENT_TYPE_FRAME :
+ case CONTENT_TYPE_GRAPHIC :
+ case CONTENT_TYPE_OLE :
+ {
+ FlyCntType eType = FLYCNTTYPE_FRM;
+ sTypeToken = CP2S(pMarkToFrame);
+ if(nContentType == CONTENT_TYPE_OLE)
+ {
+ eType = FLYCNTTYPE_OLE;
+ sTypeToken = CP2S(pMarkToOLE);
+ }
+ else if(nContentType == CONTENT_TYPE_GRAPHIC)
+ {
+ eType = FLYCNTTYPE_GRF;
+ sTypeToken = CP2S(pMarkToGraphic);
+ }
+ nMemberCount = pWrtShell->GetFlyCount(eType);
+ bEdit = sal_True;
+ }
+ break;
+ case CONTENT_TYPE_BOOKMARK :
+ {
+ sal_uInt16 nCount = nMemberCount = pWrtShell->GetBookmarkCnt(sal_True);
+ sTypeToken = aEmptyStr;
+ bEdit = sal_True;
+ }
+ break;
+ case CONTENT_TYPE_REGION :
+ {
+ SwContentArr* pOldMember = 0;
+ sal_uInt16 nOldRegionCount = 0;
+ sal_Bool bInvalidate = sal_False;
+ if(!pMember)
+ pMember = new SwContentArr;
+ else if(pMember->Count())
+ {
+ pOldMember = pMember;
+ nOldRegionCount = pOldMember->Count();
+ pMember = new SwContentArr;
+ }
+ const Point aNullPt;
+ nMemberCount = pWrtShell->GetSectionFmtCount();
+ for(sal_uInt16 i = 0; i < nMemberCount; i++)
+ {
+ const SwSectionFmt* pFmt;
+ SectionType eTmpType;
+ if( (pFmt = &pWrtShell->GetSectionFmt(i))->IsInNodesArr() &&
+ (eTmpType = pFmt->GetSection()->GetType()) != TOX_CONTENT_SECTION
+ && TOX_HEADER_SECTION != eTmpType )
+ {
+ const String& rSectionName = pFmt->GetSection()->GetName();
+ sal_uInt16 nLevel = 0;
+ SwSectionFmt* pParentFmt = pFmt->GetParent();
+ while(pParentFmt)
+ {
+ nLevel++;
+ pParentFmt = pParentFmt->GetParent();
+ }
+
+ SwContent* pCnt = new SwRegionContent(this, rSectionName,
+ nLevel,
+ pFmt->FindLayoutRect( sal_False, &aNullPt ).Top());
+
+ SwPtrMsgPoolItem aAskItem( RES_CONTENT_VISIBLE, 0 );
+ if( !pFmt->GetInfo( aAskItem ) &&
+ !aAskItem.pObject ) // not visible
+ pCnt->SetInvisible();
+ pMember->Insert(pCnt);//, pMember->Count());
+
+ sal_uInt16 nPos = pMember->Count() - 1;
+ if(nOldRegionCount > nPos &&
+ (pOldMember->GetObject(nPos))->IsInvisible()
+ != pCnt->IsInvisible())
+ bInvalidate = sal_True;
+ }
+ }
+ nMemberCount = pMember->Count();
+ sTypeToken = CP2S(pMarkToRegion);
+ bEdit = sal_True;
+ bDelete = sal_False;
+ if(pOldMember)
+ {
+ pOldMember->DeleteAndDestroy(0, pOldMember->Count());
+ delete pOldMember;
+ if(pbInvalidateWindow && bInvalidate)
+ *pbInvalidateWindow = sal_True;
+ }
+ }
+ break;
+ case CONTENT_TYPE_INDEX:
+ {
+ nMemberCount = pWrtShell->GetTOXCount();
+ bEdit = sal_True;
+ bDelete = sal_False;
+ }
+ break;
+ case CONTENT_TYPE_REFERENCE:
+ {
+ nMemberCount = pWrtShell->GetRefMarks( 0 );
+ bDelete = sal_False;
+ }
+ break;
+ case CONTENT_TYPE_URLFIELD:
+ {
+ nMemberCount = 0;
+ if(!pMember)
+ pMember = new SwContentArr;
+ else if(pMember->Count())
+ pMember->DeleteAndDestroy(0, pMember->Count());
+
+ SwGetINetAttrs aArr;
+ nMemberCount = pWrtShell->GetINetAttrs( aArr );
+ for( sal_uInt16 n = 0; n < nMemberCount; ++n )
+ {
+ SwGetINetAttr* p = aArr[ n ];
+ SwURLFieldContent* pCnt = new SwURLFieldContent(
+ this,
+ p->sText,
+ INetURLObject::decode(
+ p->rINetAttr.GetINetFmt().GetValue(),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ),
+ &p->rINetAttr,
+ n );
+ pMember->Insert( pCnt );//, n );
+ }
+ bEdit = sal_True;
+ nOldMemberCount = nMemberCount;
+ bDelete = sal_False;
+ }
+ break;
+ case CONTENT_TYPE_POSTIT:
+ {
+ nMemberCount = 0;
+ if(!pMember)
+ pMember = new SwContentArr;
+ else if(pMember->Count())
+ pMember->DeleteAndDestroy(0, pMember->Count());
+ SwFieldType* pType = pWrtShell->GetFldType(
+ RES_POSTITFLD, aEmptyStr);
+ SwClientIter aIter( *pType );
+ SwClient * pFirst = aIter.GoStart();
+ while(pFirst)
+ {
+ if(((SwFmtFld*)pFirst)->GetTxtFld() &&
+ ((SwFmtFld*)pFirst)->IsFldInDoc())
+ {
+ SwField* pField = (SwField*)((SwFmtFld*)pFirst)
+ ->GetFld();
+
+ String sEntry = pField->GetPar2();
+ RemoveNewline(sEntry);
+ SwPostItContent* pCnt = new SwPostItContent(
+ this,
+ sEntry, // hier steht der Text
+ (const SwFmtFld*)pFirst,
+ nMemberCount);
+ pMember->Insert(pCnt);//, nMemberCount);
+ nMemberCount++;
+ }
+ pFirst = aIter++;
+ }
+ sTypeToken = aEmptyStr;
+ bEdit = sal_True;
+ nOldMemberCount = nMemberCount;
+ }
+ break;
+ case CONTENT_TYPE_DRAWOBJECT:
+ sTypeToken = aEmptyStr;
+ break;
+ }
+ // ... dann koennen die Daten auch nicht mehr gueltig sein
+ // abgesehen von denen, die schon korrigiert wurden, dann ist
+ // nOldMemberCount doch nicht so old
+ if( nOldMemberCount != nMemberCount )
+ bDataValid = sal_False;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+SwContentType::~SwContentType()
+{
+ delete pMember;
+}
+
+/***************************************************************************
+ Beschreibung: Inhalt liefern, dazu gfs. die Liste fuellen
+***************************************************************************/
+
+
+const SwContent* SwContentType::GetMember(sal_uInt16 nIndex)
+{
+ if(!bDataValid || !pMember)
+ {
+ FillMemberList();
+ }
+ if(nIndex < pMember->Count())
+ return pMember->GetObject(nIndex);
+ else
+ return 0;
+
+}
+
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentType::Invalidate()
+{
+ bDataValid = sal_False;
+}
+
+/***************************************************************************
+ Beschreibung: Liste der Inhalte fuellen
+***************************************************************************/
+
+
+void SwContentType::FillMemberList(sal_Bool* pbLevelOrVisibiblityChanged)
+{
+ SwContentArr* pOldMember = 0;
+ int nOldMemberCount = -1;
+ SwPtrMsgPoolItem aAskItem( RES_CONTENT_VISIBLE, 0 );
+ if(pMember && pbLevelOrVisibiblityChanged)
+ {
+ pOldMember = pMember;
+ nOldMemberCount = pOldMember->Count();
+ pMember = new SwContentArr;
+ *pbLevelOrVisibiblityChanged = sal_False;
+ }
+ else if(!pMember)
+ pMember = new SwContentArr;
+ else if(pMember->Count())
+ pMember->DeleteAndDestroy(0, pMember->Count());
+ switch(nContentType)
+ {
+ case CONTENT_TYPE_OUTLINE :
+ {
+ sal_uInt16 nOutlineCount = nMemberCount = pWrtShell->GetOutlineCnt();
+
+ sal_uInt16 nPos = 0;
+ for (sal_uInt16 i = 0; i < nOutlineCount; ++i)
+ {
+ const sal_Int8 nLevel = (sal_Int8)pWrtShell->GetOutlineLevel(i);
+ if(nLevel >= nOutlineLevel )
+ nMemberCount--;
+ else
+ {
+ String aEntry(pWrtShell->GetOutlineText(i));
+ aEntry.EraseLeadingChars();
+ SwNavigationPI::CleanEntry( aEntry );
+ SwOutlineContent* pCnt = new SwOutlineContent(this, aEntry, i, nLevel,
+ pWrtShell->IsOutlineMovable( i ), nPos );
+ pMember->Insert(pCnt);//, nPos);
+ // bei gleicher Anzahl und vorhandenem pOldMember wird die
+ // alte mit der neuen OutlinePos verglichen
+ // cast fuer Win16
+ if(nOldMemberCount > (int)nPos &&
+ ((SwOutlineContent*)pOldMember->GetObject(nPos))->GetOutlineLevel() != nLevel)
+ *pbLevelOrVisibiblityChanged = sal_True;
+
+ nPos++;
+ }
+ }
+
+ }
+ break;
+
+ case CONTENT_TYPE_TABLE :
+ {
+ DBG_ASSERT(nMemberCount ==
+ pWrtShell->GetTblFrmFmtCount(sal_True),
+ "MemberCount differiert")
+ Point aNullPt;
+ nMemberCount = pWrtShell->GetTblFrmFmtCount(sal_True);
+ for(sal_uInt16 i = 0; i < nMemberCount; i++)
+ {
+ const SwFrmFmt& rTblFmt = pWrtShell->GetTblFrmFmt(i, sal_True);
+ String sTblName( rTblFmt.GetName() );
+
+ SwContent* pCnt = new SwContent(this, sTblName,
+ rTblFmt.FindLayoutRect(sal_False, &aNullPt).Top() );
+ if( !rTblFmt.GetInfo( aAskItem ) &&
+ !aAskItem.pObject ) // not visible
+ pCnt->SetInvisible();
+
+ pMember->Insert(pCnt);//, i);
+
+ if(nOldMemberCount > (int)i &&
+ (pOldMember->GetObject(i))->IsInvisible() != pCnt->IsInvisible())
+ *pbLevelOrVisibiblityChanged = sal_True;
+ }
+ }
+ break;
+ case CONTENT_TYPE_OLE :
+ case CONTENT_TYPE_FRAME :
+ case CONTENT_TYPE_GRAPHIC :
+ {
+ FlyCntType eType = FLYCNTTYPE_FRM;
+ if(nContentType == CONTENT_TYPE_OLE)
+ eType = FLYCNTTYPE_OLE;
+ else if(nContentType == CONTENT_TYPE_GRAPHIC)
+ eType = FLYCNTTYPE_GRF;
+ DBG_ASSERT(nMemberCount == pWrtShell->GetFlyCount(eType),
+ "MemberCount differiert");
+ Point aNullPt;
+ nMemberCount = pWrtShell->GetFlyCount(eType);
+ for(sal_uInt16 i = 0; i < nMemberCount; i++)
+ {
+ const SwFrmFmt* pFrmFmt = pWrtShell->GetFlyNum(i,eType);
+ String sFrmName = pFrmFmt->GetName();
+
+ SwContent* pCnt;
+ if(CONTENT_TYPE_GRAPHIC == nContentType)
+ {
+ String sLink;
+ pWrtShell->GetGrfNms( &sLink, 0, (SwFlyFrmFmt*) pFrmFmt);
+ pCnt = new SwGraphicContent(this, sFrmName,
+ INetURLObject::decode( sLink, INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ),
+ pFrmFmt->FindLayoutRect(sal_False, &aNullPt).Top());
+ }
+ else
+ {
+ pCnt = new SwContent(this, sFrmName,
+ pFrmFmt->FindLayoutRect(sal_False, &aNullPt).Top() );
+ }
+ if( !pFrmFmt->GetInfo( aAskItem ) &&
+ !aAskItem.pObject ) // not visible
+ pCnt->SetInvisible();
+ pMember->Insert(pCnt);//, i);
+ if(nOldMemberCount > (int)i &&
+ (pOldMember->GetObject(i))->IsInvisible() != pCnt->IsInvisible())
+ *pbLevelOrVisibiblityChanged = sal_True;
+ }
+ }
+ break;
+ case CONTENT_TYPE_BOOKMARK :
+ {
+ nMemberCount = pWrtShell->GetBookmarkCnt(sal_True);
+ for(sal_uInt16 i = 0; i < nMemberCount; i++)
+ {
+ SwBookmark& rBkmk = pWrtShell->GetBookmark( i, sal_True );
+ const String& rBkmName = rBkmk.GetName();
+ //nYPos von 0 -> ::com::sun::star::text::Bookmarks werden nach Alphabet sortiert
+ SwContent* pCnt = new SwContent(this, rBkmName, 0);
+ pMember->Insert(pCnt);//, pMember->Count());
+ }
+ }
+ break;
+ case CONTENT_TYPE_REGION :
+ {
+ const Point aNullPt;
+ nMemberCount = pWrtShell->GetSectionFmtCount();
+ for(sal_uInt16 i = 0; i < nMemberCount; i++)
+ {
+ const SwSectionFmt* pFmt;
+ SectionType eTmpType;
+ if( (pFmt = &pWrtShell->GetSectionFmt(i))->IsInNodesArr() &&
+ (eTmpType = pFmt->GetSection()->GetType()) != TOX_CONTENT_SECTION
+ && TOX_HEADER_SECTION != eTmpType )
+ {
+ String sSectionName = pFmt->GetSection()->GetName();
+
+ sal_uInt16 nLevel = 0;
+ SwSectionFmt* pParentFmt = pFmt->GetParent();
+ while(pParentFmt)
+ {
+ nLevel++;
+ pParentFmt = pParentFmt->GetParent();
+ }
+
+ SwContent* pCnt = new SwRegionContent(this, sSectionName,
+ nLevel,
+ pFmt->FindLayoutRect( sal_False, &aNullPt ).Top());
+ if( !pFmt->GetInfo( aAskItem ) &&
+ !aAskItem.pObject ) // not visible
+ pCnt->SetInvisible();
+ pMember->Insert(pCnt);//, pMember->Count());
+
+ sal_uInt16 nPos = pMember->Count() - 1;
+ if(nOldMemberCount > nPos &&
+ (pOldMember->GetObject(nPos))->IsInvisible()
+ != pCnt->IsInvisible())
+ *pbLevelOrVisibiblityChanged = sal_True;
+ }
+ }
+ nMemberCount = pMember->Count();
+ }
+ break;
+ case CONTENT_TYPE_REFERENCE:
+ {
+ SvStringsDtor aRefMarks;
+ nMemberCount = pWrtShell->GetRefMarks( &aRefMarks );
+
+ for(sal_uInt16 i=0; i<nMemberCount; i++)
+ {
+ //Referenzen nach Alphabet sortiert
+ SwContent* pCnt = new SwContent(
+ this, *aRefMarks.GetObject(i), 0);
+ pMember->Insert(pCnt);//, i);
+ }
+ }
+ break;
+ case CONTENT_TYPE_URLFIELD:
+ {
+ SwGetINetAttrs aArr;
+ nMemberCount = pWrtShell->GetINetAttrs( aArr );
+ for( sal_uInt16 n = 0; n < nMemberCount; ++n )
+ {
+ SwGetINetAttr* p = aArr[ n ];
+ SwURLFieldContent* pCnt = new SwURLFieldContent(
+ this,
+ p->sText,
+ INetURLObject::decode(
+ p->rINetAttr.GetINetFmt().GetValue(),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_WITH_CHARSET,
+ RTL_TEXTENCODING_UTF8 ),
+ &p->rINetAttr,
+ n );
+ pMember->Insert( pCnt );//, n );
+ }
+ }
+ break;
+ case CONTENT_TYPE_INDEX:
+ {
+
+ sal_uInt16 nCount = nMemberCount = pWrtShell->GetTOXCount();
+ for ( sal_uInt16 nTox = 0; nTox < nCount; nTox++ )
+ {
+ const SwTOXBase* pBase = pWrtShell->GetTOX( nTox );
+ String sTOXNm( pBase->GetTOXName() );
+
+ SwContent* pCnt = new SwTOXBaseContent(
+ this, sTOXNm, nTox, *pBase);
+
+ if( !pBase->GetInfo( aAskItem ) &&
+ !aAskItem.pObject ) // not visible
+ pCnt->SetInvisible();
+
+ pMember->Insert( pCnt );//, nTox );
+ sal_uInt16 nPos = pMember->Count() - 1;
+ if(nOldMemberCount > nPos &&
+ (pOldMember->GetObject(nPos))->IsInvisible()
+ != pCnt->IsInvisible())
+ *pbLevelOrVisibiblityChanged = sal_True;
+ }
+ }
+ break;
+ case CONTENT_TYPE_POSTIT:
+ {
+ nMemberCount = 0;
+ if(!pMember)
+ pMember = new SwContentArr;
+ else if(pMember->Count())
+ pMember->DeleteAndDestroy(0, pMember->Count());
+ SwFieldType* pType = pWrtShell->GetFldType(
+ RES_POSTITFLD, aEmptyStr);
+ SwClientIter aIter( *pType );
+ SwClient * pFirst = aIter.GoStart();
+ while(pFirst)
+ {
+ if(((SwFmtFld*)pFirst)->GetTxtFld() &&
+ ((SwFmtFld*)pFirst)->IsFldInDoc())
+ {
+ SwField* pField = (SwField*)((SwFmtFld*)pFirst)
+ ->GetFld();
+ String sEntry = pField->GetPar2();
+ RemoveNewline(sEntry);
+ SwPostItContent* pCnt = new SwPostItContent(
+ this,
+ sEntry, // hier steht der Text
+ (const SwFmtFld*)pFirst,
+ nMemberCount);
+ pMember->Insert(pCnt);//, nMemberCount);
+ nMemberCount++;
+ }
+ pFirst = aIter++;
+ }
+ }
+ break;
+ case CONTENT_TYPE_DRAWOBJECT:
+ break;
+ }
+ bDataValid = sal_True;
+ if(pOldMember)
+ pOldMember->DeleteAndDestroy(0, pOldMember->Count());
+
+}
+
+/***************************************************************************
+ Beschreibung: TreeListBox fuer Inhaltsanzeige
+***************************************************************************/
+
+
+SwContentTree::SwContentTree(Window* pParent, const ResId& rResId) :
+ SvTreeListBox( pParent, rResId ),
+ pHiddenShell(0),
+ pActiveShell(0),
+ pConfig(SW_MOD()->GetNavigationConfig()),
+ sSpace(C2S(" ")),
+ sRemoveIdx(SW_RES(ST_REMOVE_INDEX)),
+ sUpdateIdx(SW_RES(ST_UPDATE)),
+ sRename(SW_RES(ST_RENAME)),
+ sReadonlyIdx(SW_RES(ST_READONLY_IDX)),
+ sUnprotTbl(SW_RES(ST_REMOVE_TBL_PROTECTION)),
+ sInvisible(SW_RES(ST_INVISIBLE)),
+ nActiveBlock(0),
+ nHiddenBlock(0),
+ nOutlineLevel(MAXLEVEL),
+ nRootType(USHRT_MAX),
+ nLastSelType(USHRT_MAX),
+ bIsActive(sal_True),
+ bIsConstant(sal_False),
+ bIsHidden(sal_False),
+ bIsInternalDrag(sal_False),
+ bDocChgdInDragging(sal_False),
+ bIsRoot(sal_False),
+ bIsIdleClear(sal_False),
+ bIsLastReadOnly(sal_False),
+ bIsOutlineMoveable(sal_True),
+ bViewHasChanged(sal_False),
+ bIsImageListInitialized(sal_False)
+{
+ SetHelpId(HID_NAVIGATOR_TREELIST);
+
+ Bitmap aRootClosed (SW_RES(BMP_ROOT_CLOSED));
+ Bitmap aRootOpened (SW_RES(BMP_ROOT_OPENED));
+ SetNodeBitmaps( aRootClosed, aRootOpened );
+ SetDoubleClickHdl(LINK(this, SwContentTree, ContentDoubleClickHdl));
+ SetDragDropMode(SV_DRAGDROP_APP_COPY);
+ for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
+ {
+ aActiveContentArr[i] = 0;
+ aHiddenContentArr[i] = 0;
+ }
+ for( i = 0; i < CONTEXT_COUNT; i++ )
+ {
+ aContextStrings[i] = SW_RESSTR(i+ST_CONTEXT_FIRST);
+ }
+ nActiveBlock = pConfig->GetActiveBlock();
+ aUpdTimer.SetTimeoutHdl(LINK(this, SwContentTree, TimerUpdate));
+ aUpdTimer.SetTimeout(1000);
+ Clear();
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+SwContentTree::~SwContentTree()
+{
+ Clear(); // vorher gfs. Inhaltstypen loeschen
+ bIsInDrag = sal_False;
+}
+
+/***************************************************************************
+ Beschreibung: Drop wird im Navigator ausgefuehrt
+***************************************************************************/
+
+
+sal_Bool SwContentTree::Drop( const DropEvent& rEvt)
+{
+ if(bIsRoot)
+ {
+ return SvTreeListBox::Drop(rEvt);
+ }
+ else
+ return bIsInDrag ? sal_False : GetParentWindow()->Drop(rEvt);
+}
+
+/***************************************************************************
+ Beschreibung: QueryDrop wird im Navigator ausgefuehrt
+***************************************************************************/
+
+
+sal_Bool SwContentTree::QueryDrop( DropEvent& rEvt)
+{
+ if(bIsRoot)
+ {
+ return bIsOutlineMoveable && SvTreeListBox::QueryDrop(rEvt);
+ }
+ else
+ return bIsInDrag ? sal_False : GetParentWindow()->QueryDrop(rEvt);
+}
+
+/***************************************************************************
+ Beschreibung: Handler fuer Dragging und ContextMenu
+***************************************************************************/
+
+
+void SwContentTree::Command( const CommandEvent& rCEvt )
+{
+ sal_Bool bParent = sal_False;
+ switch( rCEvt.GetCommand() )
+ {
+ case COMMAND_STARTDRAG:
+ {
+ if(!bIsRoot || nRootType != CONTENT_TYPE_OUTLINE)
+ {
+ ReleaseMouse();
+ StartExecuteDrag();
+ }
+ else
+ bParent = sal_True;
+ }
+ break;
+ case COMMAND_CONTEXTMENU:
+ {
+ PopupMenu aPop;
+ PopupMenu aSubPop1;
+ PopupMenu aSubPop2;
+ PopupMenu aSubPop3;
+ PopupMenu aSubPop4; // Bearbeiten
+
+ for(sal_uInt16 i = 1; i <= MAXLEVEL; i++ )
+ {
+ aSubPop1.InsertItem( i + 100, String::CreateFromInt32(i));
+ }
+ aSubPop1.CheckItem(100 + nOutlineLevel);
+ for(i=0; i < 3; i++ )
+ {
+ aSubPop2.InsertItem( i + 201, aContextStrings[
+ ST_HYPERLINK - ST_CONTEXT_FIRST + i]);
+ }
+ aSubPop2.CheckItem( 201 +
+ GetParentWindow()->GetRegionDropMode());
+ //Liste der offenen Dateien einfuegen
+ sal_uInt16 nId = 301;
+ const SwView* pActiveView = ::GetActiveView();
+ SwView *pView = SwModule::GetFirstView();
+ while (pView)
+ {
+ String sInsert = pView->GetDocShell()->GetTitle();
+ if(pView == pActiveView)
+ {
+ sInsert += '(';
+ sInsert += aContextStrings[ ST_ACTIVE - ST_CONTEXT_FIRST];
+ sInsert += ')';
+ }
+ aSubPop3.InsertItem(nId, sInsert);
+ if(bIsConstant && pActiveShell == &pView->GetWrtShell())
+ aSubPop3.CheckItem(nId);
+ pView = SwModule::GetNextView(pView);
+ nId++;
+ }
+ aSubPop3.InsertItem(nId++, aContextStrings[ST_ACTIVE_VIEW - ST_CONTEXT_FIRST]);
+ if(pHiddenShell)
+ {
+ String sHiddenEntry = pHiddenShell->GetView().GetDocShell()->GetTitle();
+ sHiddenEntry += C2S(" ( ");
+ sHiddenEntry += aContextStrings[ ST_HIDDEN - ST_CONTEXT_FIRST];
+ sHiddenEntry += C2S(" )");
+ aSubPop3.InsertItem(nId, sHiddenEntry);
+ }
+
+ if(bIsActive)
+ aSubPop3.CheckItem( --nId );
+ else if(bIsHidden)
+ aSubPop3.CheckItem( nId );
+
+ aPop.InsertItem( 1, aContextStrings[
+ ST_OUTLINE_LEVEL - ST_CONTEXT_FIRST]);
+ aPop.InsertItem(2, aContextStrings[ST_DRAGMODE - ST_CONTEXT_FIRST]);
+ aPop.InsertItem(3, aContextStrings[ST_DISPLAY - ST_CONTEXT_FIRST]);
+ Link aSelLk = LINK(this, SwContentTree, PopupHdl );
+ //jetzt noch bearbeiten
+ SvLBoxEntry* pEntry;
+ //Bearbeiten nur, wenn die angezeigten Inhalte aus der aktiven View kommen
+ if((bIsActive || pActiveShell == pActiveView->GetWrtShellPtr())
+ && 0 != (pEntry = FirstSelected()) && lcl_IsContent(pEntry))
+ {
+ const SwContentType* pContType = ((SwContent*)pEntry->GetUserData())->GetParent();
+ const sal_uInt16 nContentType = pContType->GetType();
+ sal_Bool bReadonly = pActiveShell->GetView().GetDocShell()->IsReadOnly();
+ sal_Bool bEditable = pContType->IsEditable();
+ sal_Bool bDeletable = pContType->IsDeletable();
+ sal_Bool bRenamable = bEditable && !bReadonly &&
+ (CONTENT_TYPE_TABLE == nContentType ||
+ CONTENT_TYPE_FRAME == nContentType ||
+ CONTENT_TYPE_GRAPHIC == nContentType ||
+ CONTENT_TYPE_OLE == nContentType ||
+ CONTENT_TYPE_BOOKMARK == nContentType ||
+ CONTENT_TYPE_REGION == nContentType||
+ CONTENT_TYPE_INDEX == nContentType);
+
+ if(!bReadonly && (bEditable || bDeletable))
+ {
+ sal_Bool bSubPop4 = sal_False;
+ if(CONTENT_TYPE_INDEX == nContentType)
+ {
+ bSubPop4 = sal_True;
+ aSubPop4.InsertItem(401, sRemoveIdx);
+ aSubPop4.InsertItem(402, sUpdateIdx);
+ aSubPop4.InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
+ aSubPop4.InsertItem(405, sReadonlyIdx);
+
+ const SwTOXBase* pBase = ((SwTOXBaseContent*)pEntry->GetUserData())->GetTOXBase();
+ aSubPop4.CheckItem( 405, pActiveShell->IsTOXBaseReadonly(*pBase));
+ aSubPop4.InsertItem(501, aContextStrings[ST_DELETE_ENTRY - ST_CONTEXT_FIRST]);
+ }
+ else if(CONTENT_TYPE_TABLE == nContentType && !bReadonly)
+ {
+ bSubPop4 = sal_True;
+ aSubPop4.InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
+ aSubPop4.InsertItem(404, sUnprotTbl);
+ sal_Bool bFull = sal_False;
+ String sTblName = ((SwContent*)pEntry->GetUserData())->GetName();
+ sal_Bool bProt =pActiveShell->HasTblAnyProtection( &sTblName, &bFull );
+ aSubPop4.EnableItem(403, !bFull );
+ aSubPop4.EnableItem(404, bProt );
+ aSubPop4.InsertItem(501, aContextStrings[ST_DELETE_ENTRY - ST_CONTEXT_FIRST]);
+ }
+ else if(!((SwContent*)pEntry->GetUserData())->IsProtect())
+ {
+ if(bEditable && bDeletable)
+ {
+ aSubPop4.InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
+ aSubPop4.InsertItem(501, aContextStrings[ST_DELETE_ENTRY - ST_CONTEXT_FIRST]);
+ bSubPop4 = sal_True;
+ }
+ else if(bEditable)
+ aPop.InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
+ else if(bDeletable)
+ aPop.InsertItem(501, aContextStrings[ST_DELETE_ENTRY - ST_CONTEXT_FIRST]);
+ }
+ //Rename object
+ if(bRenamable)
+ {
+ if(bSubPop4)
+ aSubPop4.InsertItem(502, sRename);
+ else
+ aPop.InsertItem(502, sRename);
+ }
+
+ if(bSubPop4)
+ {
+ aPop.InsertItem(4, pContType->GetSingleName());
+ aPop.SetPopupMenu(4, &aSubPop4);
+ aSubPop4.SetSelectHdl(aSelLk);
+ }
+ }
+ }
+
+
+ aPop.SetPopupMenu( 1, &aSubPop1 );
+ aPop.SetPopupMenu( 2, &aSubPop2 );
+ aPop.SetPopupMenu( 3, &aSubPop3 );
+ aPop.SetSelectHdl(aSelLk);
+ aSubPop1.SetSelectHdl(aSelLk);
+ aSubPop2.SetSelectHdl(aSelLk);
+ aSubPop3.SetSelectHdl(aSelLk);
+
+ aPop.Execute( this, rCEvt.GetMousePosPixel() );
+ }
+ break;
+ default: bParent = sal_True;
+ }
+ if(bParent)
+ SvTreeListBox::Command(rCEvt);
+}
+
+/***************************************************************************
+ Beschreibung: Einrueckung fuer outlines (und sections)
+***************************************************************************/
+
+
+long SwContentTree::GetTabPos( SvLBoxEntry* pEntry, SvLBoxTab* pTab)
+{
+ sal_uInt16 nLevel = 0;
+ if(lcl_IsContent(pEntry))
+ {
+ nLevel++;
+ SwContent* pCnt = (SwContent *) pEntry->GetUserData();
+ const SwContentType* pParent;
+ if(pCnt && 0 != (pParent = pCnt->GetParent()))
+ {
+ if(pParent->GetType() == CONTENT_TYPE_OUTLINE)
+ nLevel += ((SwOutlineContent*)pCnt)->GetOutlineLevel();
+ else if(pParent->GetType() == CONTENT_TYPE_REGION)
+ nLevel += ((SwRegionContent*)pCnt)->GetRegionLevel();
+ }
+ }
+ sal_uInt16 nBasis = bIsRoot ? 0 : 5;
+ return nLevel * 10 + nBasis + pTab->GetPos(); //empirisch ermittelt
+}
+
+/***************************************************************************
+ Beschreibung: Inhalte werden erst auf Anforderung in die Box eingefuegt
+***************************************************************************/
+
+
+void SwContentTree::RequestingChilds( SvLBoxEntry* pParent )
+{
+ // ist es ein Inhaltstyp?
+ if(lcl_IsContentType(pParent))
+ {
+ if(!pParent->HasChilds())
+ {
+ DBG_ASSERT(pParent->GetUserData(), "keine UserData?")
+ SwContentType* pCntType = (SwContentType*)pParent->GetUserData();
+
+ sal_uInt16 nCount = pCntType->GetMemberCount();
+ for(sal_uInt16 i = 0; i < nCount; i++)
+ {
+ const SwContent* pCnt = pCntType->GetMember(i);
+ if(pCnt)
+ {
+ String sEntry = pCnt->GetName();
+ if(!sEntry.Len())
+ sEntry = sSpace;
+ SvLBoxEntry* pChild = InsertEntry(sEntry, pParent,
+ sal_False, LIST_APPEND, (void*)pCnt);
+ }
+
+ }
+ }
+ }
+}
+/***************************************************************************
+ Beschreibung: Expand - Zustand fuer Inhaltstypen merken
+***************************************************************************/
+
+
+sal_Bool SwContentTree::Expand( SvLBoxEntry* pParent )
+{
+ if(!bIsRoot)
+ {
+ if(lcl_IsContentType(pParent))
+ {
+ SwContentType* pCntType = (SwContentType*)pParent->GetUserData();
+ sal_uInt16 nOr = 1 << pCntType->GetType(); //linear -> Bitposition
+ if(bIsActive || bIsConstant)
+ {
+ nActiveBlock |= nOr;
+ pConfig->SetActiveBlock(nActiveBlock);
+ }
+ else
+ nHiddenBlock |= nOr;
+ }
+ }
+ return SvTreeListBox::Expand(pParent);
+}
+/***************************************************************************
+ Beschreibung: Collapse - Zustand fuer Inhaltstypen merken
+***************************************************************************/
+
+
+sal_Bool SwContentTree::Collapse( SvLBoxEntry* pParent )
+{
+ sal_Bool bRet;
+ if(!bIsRoot)
+ {
+ if(lcl_IsContentType(pParent))
+ {
+ SwContentType* pCntType = (SwContentType*)pParent->GetUserData();
+ sal_uInt16 nAnd = 1 << pCntType->GetType();
+ nAnd = ~nAnd;
+ if(bIsActive || bIsConstant)
+ {
+ nActiveBlock &= nAnd;
+ pConfig->SetActiveBlock(nActiveBlock);
+ }
+ else
+ nHiddenBlock &= nAnd;
+ }
+ bRet = SvTreeListBox::Collapse(pParent);
+ }
+ else
+ bRet = sal_False;
+ return bRet;
+}
+
+
+/***************************************************************************
+ Beschreibung: Auch auf Doppelclick wird zunaechst nur aufgeklappt
+***************************************************************************/
+
+
+IMPL_LINK( SwContentTree, ContentDoubleClickHdl, SwContentTree *, EMPTYARG )
+{
+ SvLBoxEntry* pEntry = GetCurEntry();
+ // ist es ein Inhaltstyp?
+ DBG_ASSERT(pEntry, "kein aktueller Eintrag!")
+ if(pEntry)
+ {
+ if(lcl_IsContentType(pEntry))
+ RequestingChilds(pEntry);
+ else if(bIsActive || bIsConstant)
+ {
+ if(bIsConstant)
+ {
+ pActiveShell->GetView().GetViewFrame()->GetWindow().ToTop();
+ }
+ //Inhaltstyp anspringen:
+ SwContent* pCnt = (SwContent*)pEntry->GetUserData();
+ DBG_ASSERT( pCnt, "keine UserData")
+ GotoContent(pCnt);
+ if(pCnt->GetParent()->GetType() == CONTENT_TYPE_FRAME)
+ pActiveShell->EnterStdMode();
+ }
+ }
+ return 0;
+}
+
+/***************************************************************************
+ Beschreibung: Anzeigen der Datei
+***************************************************************************/
+
+
+void SwContentTree::Display( sal_Bool bActive )
+{
+ if(!bIsImageListInitialized)
+ {
+ aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
+ bIsImageListInitialized = sal_True;
+ }
+ // erst den selektierten Eintrag auslesen, um ihn spaeter evtl. wieder
+ // zu selektieren -> die UserDaten sind hier nicht mehr gueltig!
+ SvLBoxEntry* pOldSelEntry = FirstSelected();
+ String sEntryName; // Name des Eintrags
+ sal_uInt16 nEntryRelPos = 0; // rel. Pos zu seinem Parent
+ if(pOldSelEntry)
+ {
+ sEntryName = GetEntryText(pOldSelEntry);
+ if(GetParent(pOldSelEntry))
+ {
+ nEntryRelPos = (sal_uInt16)(GetModel()->GetAbsPos(pOldSelEntry) - GetModel()->GetAbsPos(GetParent(pOldSelEntry)));
+ }
+ }
+ Clear();
+ SetUpdateMode( sal_False );
+ if(bActive && !bIsConstant && !bIsActive)
+ bIsActive = bActive;
+ bIsHidden = !bActive;
+ SwWrtShell* pShell = GetWrtShell();
+ sal_Bool bReadOnly = pShell ? pShell->GetView().GetDocShell()->IsReadOnly() : sal_True;
+ if(bReadOnly != bIsLastReadOnly)
+ {
+ bIsLastReadOnly = bReadOnly;
+ sal_Bool bDisable = pShell == 0 || bReadOnly;
+ SwNavigationPI* pNavi = GetParentWindow();
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_UP , !bDisable);
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_DOWN, !bDisable);
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_LEFT, !bDisable);
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_RIGHT, !bDisable);
+ pNavi->aContentToolBox.EnableItem(FN_SELECT_SET_AUTO_BOOKMARK, !bDisable);
+ }
+ if(pShell)
+ {
+ SvLBoxEntry* pSelEntry = 0;
+ if(nRootType == USHRT_MAX)
+ {
+ for(sal_uInt16 nCntType = CONTENT_TYPE_OUTLINE;
+ nCntType <= CONTENT_TYPE_POSTIT; nCntType++ )
+ {
+ SwContentType** ppContentT = bActive ?
+ &aActiveContentArr[nCntType] :
+ &aHiddenContentArr[nCntType];
+ if(!*ppContentT)
+ (*ppContentT) = new SwContentType(pShell, nCntType, nOutlineLevel );
+
+
+ String sEntry = (*ppContentT)->GetName();
+ SvLBoxEntry* pEntry;
+ const Image& rImage = aEntryImages.GetImage(SID_SW_START + nCntType);
+ sal_Bool bChOnDemand = 0 != (*ppContentT)->GetMemberCount();
+ pEntry = InsertEntry(sEntry, rImage, rImage,
+ 0, bChOnDemand, LIST_APPEND, (*ppContentT));
+ if(nCntType == nLastSelType)
+ pSelEntry = pEntry;
+ sal_uInt16 nExpandOptions = bIsActive || bIsConstant ?
+ nActiveBlock :
+ nHiddenBlock;
+ if(nExpandOptions & (1 << nCntType))
+ {
+ Expand(pEntry);
+ if(nEntryRelPos && nCntType == nLastSelType)
+ {
+ // jetzt vielleicht noch ein Child selektieren
+ SvLBoxEntry* pChild = pEntry;
+ SvLBoxEntry* pTemp = 0;
+ sal_uInt16 nPos = 1;
+ while(0 != (pChild = Next(pChild)))
+ {
+ // der alte Text wird leicht bevorzugt
+ if(sEntryName == GetEntryText(pChild) ||
+ nPos == nEntryRelPos )
+ {
+ pSelEntry = pChild;
+ break;
+ }
+ pTemp = pChild;
+ nPos++;
+ }
+ if(!pSelEntry || lcl_IsContentType(pSelEntry))
+ pSelEntry = pTemp;
+ }
+
+ }
+ }
+ if(pSelEntry)
+ {
+ MakeVisible(pSelEntry);
+ Select(pSelEntry);
+ }
+ }
+ else
+ {
+ SwContentType** ppRootContentT = bActive ?
+ &aActiveContentArr[nRootType] :
+ &aHiddenContentArr[nRootType];
+ if(!(*ppRootContentT))
+ (*ppRootContentT) = new SwContentType(pShell, nRootType, nOutlineLevel );
+ const Image& rImage = aEntryImages.GetImage(20000 + nRootType);
+ SvLBoxEntry* pParent = InsertEntry(
+ (*ppRootContentT)->GetName(), rImage, rImage,
+ 0, sal_False, LIST_APPEND, *ppRootContentT);
+ SvLBoxEntry* pEntry;
+ for(sal_uInt16 i = 0; i < (*ppRootContentT)->GetMemberCount(); i++ )
+ {
+ const SwContent* pCnt = (*ppRootContentT)->GetMember(i);
+ if(pCnt)
+ {
+ String sEntry = pCnt->GetName();
+ if(!sEntry.Len())
+ sEntry = sSpace;
+ pEntry = InsertEntry( sEntry, pParent,
+ sal_False, LIST_APPEND, (void*)pCnt);
+ }
+ }
+ Expand(pParent);
+ if( nRootType == CONTENT_TYPE_OUTLINE && bIsActive )
+ {
+ //feststellen, wo der Cursor steht
+ const sal_uInt16 nActPos = pShell->GetOutlinePos(MAXLEVEL);
+ SvLBoxEntry* pEntry = First();
+
+ while( 0 != (pEntry = Next(pEntry)) )
+ {
+ if(((SwOutlineContent*)pEntry->GetUserData())->GetPos() == nActPos)
+ {
+ MakeVisible(pEntry);
+ Select(pEntry);
+ }
+ }
+
+ }
+ else
+ {
+ // jetzt vielleicht noch ein Child selektieren
+ SvLBoxEntry* pChild = pParent;
+ SvLBoxEntry* pTemp = 0;
+ sal_uInt16 nPos = 1;
+ while(0 != (pChild = Next(pChild)))
+ {
+ // der alte Text wird leicht bevorzugt
+ if(sEntryName == GetEntryText(pChild) ||
+ nPos == nEntryRelPos )
+ {
+ pSelEntry = pChild;
+ break;
+ }
+ pTemp = pChild;
+ nPos++;
+ }
+ if(!pSelEntry)
+ pSelEntry = pTemp;
+ if(pSelEntry)
+ {
+ MakeVisible(pSelEntry);
+ Select(pSelEntry);
+ }
+ }
+ }
+ }
+ SetUpdateMode( sal_True );
+
+}
+
+/***************************************************************************
+ Beschreibung: Im Clear muessen auch die ContentTypes geloescht werden
+***************************************************************************/
+
+
+void SwContentTree::Clear()
+{
+ SetUpdateMode(sal_False);
+ SvTreeListBox::Clear();
+ SetUpdateMode(sal_True);
+}
+
+/***************************************************************************
+ Beschreibung: Inhalt eintueten und abschicken
+***************************************************************************/
+
+
+void SwContentTree::StartExecuteDrag()
+{
+ DragServer::Clear();
+ nDragMode = DRAG_MOVEABLE|DRAG_COPYABLE|DRAG_LINKABLE;
+ if(!FillDragServer(nDragMode))
+ return;
+
+ Application::PostUserEvent( STATIC_LINK( this, SwContentTree, ExecDragHdl ) );
+
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+sal_Bool SwContentTree::FillDragServer(sal_uInt16& nDragMode)
+{
+ SwWrtShell* pWrtShell = GetWrtShell();
+ DBG_ASSERT(pWrtShell, "keine Shell!")
+ SvLBoxEntry* pEntry = GetCurEntry();
+ if(!pEntry || lcl_IsContentType(pEntry) || !pWrtShell)
+ return sal_False;
+ String sEntry;
+ SwContent* pCnt = ((SwContent*)pEntry->GetUserData());
+
+ sal_uInt16 nActType = pCnt->GetParent()->GetType();
+ String sUrl;
+ sal_Bool bOutline = sal_False;
+ String sOutlineText;
+ switch( nActType )
+ {
+ case CONTENT_TYPE_OUTLINE:
+ {
+ sal_uInt16 nPos = ((SwOutlineContent*)pCnt)->GetPos();
+ DBG_ASSERT(nPos < pWrtShell->GetOutlineCnt(),
+ "outlinecnt veraendert")
+ const SwNumRule* pOutlRule = pWrtShell->GetOutlineNumRule();
+ const SwNodeNum* pNum = pWrtShell->GetOutlineNum(nPos);
+ if( pNum && pOutlRule && MAXLEVEL >= pNum->GetLevel())
+ for(sal_Int8 nLevel = 0; nLevel <= pNum->GetLevel(); nLevel++)
+ {
+ sal_uInt16 nVal = pNum->GetLevelVal()[nLevel];
+ nVal ++;
+ nVal -= pOutlRule->Get(nLevel).GetStartValue();
+ sEntry += String::CreateFromInt32( nVal );
+ sEntry += '.';
+ }
+ sEntry += pWrtShell->GetOutlineText(nPos, sal_False);
+ sOutlineText = pWrtShell->GetOutlineText(nPos, sal_True);
+ bIsOutlineMoveable = ((SwOutlineContent*)pCnt)->IsMoveable();
+ bOutline = sal_True;
+ }
+ break;
+ case CONTENT_TYPE_POSTIT:
+ case CONTENT_TYPE_INDEX:
+ case CONTENT_TYPE_REFERENCE :
+ // koennen weder als URL noch als Bereich eingefuegt werden
+ break;
+ case CONTENT_TYPE_URLFIELD:
+ sUrl = ((SwURLFieldContent*)pCnt)->GetURL();
+ // kein break;
+ case CONTENT_TYPE_OLE:
+ case CONTENT_TYPE_GRAPHIC:
+ if(GetParentWindow()->GetRegionDropMode() != REGION_MODE_NONE)
+ break;
+ else
+ nDragMode &= ~(DRAG_LINKABLE|DRAG_MOVEABLE);
+ default:
+ sEntry = GetEntryText(pEntry);
+ }
+
+ sal_Bool bRet = sal_False;
+ if(sEntry.Len())
+ {
+ const SwDocShell* pDocShell = pWrtShell->GetView().GetDocShell();
+ if(!sUrl.Len())
+ {
+ if(pDocShell->HasName())
+ {
+ SfxMedium* pMedium = pDocShell->GetMedium();
+ sUrl = pMedium->GetURLObject().GetURLNoMark();
+ // nur, wenn primaer ein Link eingefuegt werden soll
+ bRet = sal_True;
+ }
+ else if( nActType == CONTENT_TYPE_REGION ||
+ nActType == CONTENT_TYPE_BOOKMARK )
+ {
+ // fuer Bereich und Textmarken ist ein Link auch ohne
+ // Dateiname ins eigene Dokument erlaubt
+ bRet = sal_True;
+ }
+ else if(bIsConstant &&
+ ( !::GetActiveView() ||
+ pActiveShell != ::GetActiveView()->GetWrtShellPtr()))
+ {
+ // Urls von inaktiven Views ohne Dateinamen koennen auch nicht
+ // gedraggt werden
+ bRet = sal_False;
+ }
+ else
+ {
+ bRet = GetParentWindow()->GetRegionDropMode() == REGION_MODE_NONE;
+ nDragMode = DRAG_MOVEABLE;
+ }
+
+ const String& rToken = pCnt->GetParent()->GetTypeToken();
+ sUrl += '#';
+ sUrl += sEntry;
+ if(rToken.Len())
+ {
+ sUrl += cMarkSeperator;
+ sUrl += rToken;
+ }
+ }
+ else
+ bRet = sal_True;
+ if(bRet)
+ {
+ DragServer::NewItem();
+ //fuer Outlines muss in die Description der Ueberschrifttext mit der echten Nummer
+ if(bOutline)
+ sEntry = sOutlineText;
+ {
+ NaviContentBookmark aBmk( sUrl, sEntry,
+ GetParentWindow()->GetRegionDropMode(),
+ pDocShell);
+ aBmk.CopyDragServer();
+ }
+
+ // fuer fremde DocShells muss eine INetBookmark
+ // dazugeliefert werden
+ if(pDocShell->HasName())
+ {
+ INetBookmark aBmk( sUrl, sEntry );
+ aBmk.CopyDragServer();
+ }
+ }
+ }
+ return bRet;
+}
+/***************************************************************************
+ Beschreibung: Umschalten der Anzeige auf Root
+***************************************************************************/
+
+
+sal_Bool SwContentTree::ToggleToRoot()
+{
+ if(!bIsRoot)
+ {
+ SvLBoxEntry* pEntry = GetCurEntry();
+ const SwContentType* pCntType;
+ if(pEntry)
+ {
+ if(lcl_IsContentType(pEntry))
+ pCntType = (SwContentType*)pEntry->GetUserData();
+ else
+ pCntType = ((SwContent*)pEntry->GetUserData())->GetParent();
+ nRootType = pCntType->GetType();
+ bIsRoot = sal_True;
+ Display(bIsActive || bIsConstant);
+ }
+ }
+ else
+ {
+ nRootType = USHRT_MAX;
+ bIsRoot = sal_False;
+ FindActiveTypeAndRemoveUserData();
+ Display(bIsActive || bIsConstant);
+ }
+ pConfig->SetRootType( nRootType );
+ GetParentWindow()->aContentToolBox.CheckItem(FN_SHOW_ROOT, bIsRoot);
+ return bIsRoot;
+}
+
+/***************************************************************************
+ Beschreibung: Angezeigten Inhalt auf Gueltigkeit pruefen
+***************************************************************************/
+
+
+sal_Bool SwContentTree::HasContentChanged()
+{
+/*
+ -Parallel durch das lokale Array und die Treelistbox laufen.
+ -Sind die Eintraege nicht expandiert, werden sie nur im Array verworfen
+ und der Contenttype wird als UserData neu gesetzt.
+ - ist der Root-Modus aktiv, wird nur dieser aktualisiert,
+ fuer die nicht angezeigten Inhaltstypen gilt:
+ die Memberliste wird geloescht und der Membercount aktualisiert
+ Wenn Inhalte ueberprueft werden, werden gleichzeitig die vorhanden
+ Memberlisten aufgefuellt. Sobald ein Unterschied auftritt wird nur noch
+ gefuellt und nicht mehr ueberprueft. Abschliessend wird die Box neu gefuellt.
+
+*/
+
+ sal_Bool bRepaint = sal_False;
+ sal_Bool bInvalidate = sal_False;
+
+ if(!bIsActive && ! bIsConstant)
+ {
+ for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
+ {
+ if(aActiveContentArr[i])
+ aActiveContentArr[i]->Invalidate();
+ }
+ }
+ else if(bIsRoot)
+ {
+ sal_Bool bOutline = sal_False;
+ SvLBoxEntry* pEntry = First();
+ if(!pEntry)
+ bRepaint = sal_True;
+ else
+ {
+ sal_uInt16 nType = ((SwContentType*)pEntry->GetUserData())->GetType();
+ bOutline = nRootType == CONTENT_TYPE_OUTLINE;
+ SwContentType* pArrType = aActiveContentArr[nType];
+ if(!pArrType)
+ bRepaint = sal_True;
+ else
+ {
+ sal_uInt16 nSelLevel = USHRT_MAX;
+
+ SvLBoxEntry* pFirstSel;
+ if(bOutline &&
+ 0 != ( pFirstSel = FirstSelected()) &&
+ lcl_IsContent(pFirstSel))
+ {
+ nSelLevel = ((SwOutlineContent*)pFirstSel->GetUserData())->GetOutlineLevel();
+ SwWrtShell* pSh = GetWrtShell();
+ sal_uInt16 nOutlinePos = pSh->GetOutlinePos(MAXLEVEL);
+ bRepaint |= nOutlinePos != USHRT_MAX && pSh->GetOutlineLevel(nOutlinePos) != nSelLevel;
+ }
+
+ pArrType->Init(&bInvalidate);
+ pArrType->FillMemberList();
+ pEntry->SetUserData((void*)pArrType);
+ if(!bRepaint)
+ {
+ if(GetChildCount(pEntry) != pArrType->GetMemberCount())
+ bRepaint = sal_True;
+ else
+ {
+ sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry);
+ for(sal_uInt16 j = 0; j < nChildCount; j++)
+ {
+ pEntry = Next(pEntry);
+ const SwContent* pCnt = pArrType->GetMember(j);
+ pEntry->SetUserData((void*)pCnt);
+ String sEntryText = GetEntryText(pEntry);
+ if( sEntryText != pCnt->GetName() &&
+ !(sEntryText == sSpace && !pCnt->GetName().Len()))
+ bRepaint = sal_True;
+ }
+ }
+ }
+ }
+ }
+ if( !bRepaint && bOutline )
+ {
+ //feststellen, wo der Cursor steht
+ const sal_uInt16 nActPos = GetWrtShell()->GetOutlinePos(MAXLEVEL);
+ SvLBoxEntry* pEntry = First();
+
+ while( 0 != (pEntry = Next(pEntry)) )
+ {
+ if(((SwOutlineContent*)pEntry->GetUserData())->GetPos() == nActPos)
+ {
+ if(FirstSelected() != pEntry)
+ {
+ Select(pEntry);
+ MakeVisible(pEntry);
+ }
+ }
+ }
+
+ }
+
+ }
+ else
+ {
+ SvLBoxEntry* pEntry = First();
+ while ( pEntry )
+ {
+ sal_Bool bNext = sal_True; // mindestens ein Next muss sein
+ SwContentType* pTreeType = (SwContentType*)pEntry->GetUserData();
+ sal_uInt16 nType = pTreeType->GetType();
+ sal_uInt16 nTreeCount = pTreeType->GetMemberCount();
+ SwContentType* pArrType = aActiveContentArr[nType];
+ if(!pArrType)
+ bRepaint = sal_True;
+ else
+ {
+ pArrType->Init(&bInvalidate);
+ pEntry->SetUserData((void*)pArrType);
+ if(IsExpanded(pEntry))
+ {
+ sal_Bool bLevelOrVisibiblityChanged = sal_False;
+ // bLevelOrVisibiblityChanged is set if outlines have changed their level
+ // or if the visibility of objects (frames, sections, tables) has changed
+ // i.e. in header/footer
+ pArrType->FillMemberList(&bLevelOrVisibiblityChanged);
+ if(bLevelOrVisibiblityChanged)
+ bInvalidate = sal_True;
+ sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry);
+ if(bLevelOrVisibiblityChanged)
+ bInvalidate = sal_True;
+
+ if(nChildCount != pArrType->GetMemberCount())
+ bRepaint = sal_True;
+ else
+ {
+ for(sal_uInt16 j = 0; j < nChildCount; j++)
+ {
+ pEntry = Next(pEntry);
+ bNext = sal_False;
+ const SwContent* pCnt = pArrType->GetMember(j);
+ pEntry->SetUserData((void*)pCnt);
+ String sEntryText = GetEntryText(pEntry);
+ if( sEntryText != pCnt->GetName() &&
+ !(sEntryText == sSpace && !pCnt->GetName().Len()))
+ bRepaint = sal_True;
+ }
+ }
+
+ }
+ else if(pEntry->HasChilds())
+ {
+ //war der Eintrag einmal aufgeklappt, dann muessen auch
+ // die unsichtbaren Eintraege geprueft werden.
+ // zumindest muessen die Userdaten aktualisiert werden
+ sal_Bool bLevelOrVisibiblityChanged = sal_False;
+ // bLevelOrVisibiblityChanged is set if outlines have changed their level
+ // or if the visibility of objects (frames, sections, tables) has changed
+ // i.e. in header/footer
+ pArrType->FillMemberList(&bLevelOrVisibiblityChanged);
+ sal_Bool bRemoveChildren = sal_False;
+ sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry);
+ if( nChildCount != pArrType->GetMemberCount() )
+ {
+ bRemoveChildren = sal_True;
+ }
+ else
+ {
+ SvLBoxEntry* pChild = FirstChild(pEntry);
+ for(sal_uInt16 j = 0; j < nChildCount; j++)
+ {
+ const SwContent* pCnt = pArrType->GetMember(j);
+ pChild->SetUserData((void*)pCnt);
+ String sEntryText = GetEntryText(pChild);
+ if( sEntryText != pCnt->GetName() &&
+ !(sEntryText == sSpace && !pCnt->GetName().Len()))
+ bRemoveChildren = sal_True;
+ pChild = Next(pChild);
+ }
+ }
+ if(bRemoveChildren)
+ {
+ SvLBoxEntry* pChild = FirstChild(pEntry);
+ SvLBoxEntry* pRemove = pChild;
+ for(sal_uInt16 j = 0; j < nChildCount; j++)
+ {
+ pChild = Next(pRemove);
+ GetModel()->Remove(pRemove);
+ pRemove = pChild;
+ }
+ }
+ if(!nChildCount)
+ {
+ pEntry->EnableChildsOnDemand(sal_False);
+ InvalidateEntry(pEntry);
+ }
+
+ }
+ else if((nTreeCount != 0)
+ != (pArrType->GetMemberCount()!=0))
+ {
+ bRepaint = sal_True;
+ }
+ }
+ //hier muss noch der naechste Root-Entry gefunden werden
+ while( pEntry && (bNext || GetParent(pEntry ) ))
+ {
+ pEntry = Next(pEntry);
+ bNext = sal_False;
+ }
+ }
+ }
+ if(!bRepaint && bInvalidate)
+ Invalidate();
+ return bRepaint;
+}
+
+/***************************************************************************
+ Beschreibung: Bevor alle Daten geloescht werden, soll noch der letzte
+ * aktive Eintrag festgestellt werden. Dann werden die
+ * UserData geloescht
+***************************************************************************/
+void SwContentTree::FindActiveTypeAndRemoveUserData()
+{
+ SvLBoxEntry* pEntry = FirstSelected();
+ if(pEntry)
+ {
+ // wird Clear ueber TimerUpdate gerufen, kann nur fuer die Root
+ // die Gueltigkeit der UserData garantiert werden
+ SvLBoxEntry* pParent;
+ while(0 != (pParent = GetParent(pEntry)))
+ pEntry = pParent;
+ if(pEntry->GetUserData() && lcl_IsContentType(pEntry))
+ nLastSelType = ((SwContentType*)pEntry->GetUserData())->GetType();
+ }
+// else
+// nLastSelType = USHRT_MAX;
+ pEntry = First();
+ while(pEntry)
+ {
+ pEntry->SetUserData(0);
+ pEntry = Next(pEntry);
+ }
+}
+
+/***************************************************************************
+ Beschreibung: Nachdem ein File auf den Navigator gedroppt wurde,
+ wird die neue Shell gesetzt
+***************************************************************************/
+
+
+void SwContentTree::SetHiddenShell(SwWrtShell* pSh)
+{
+ pHiddenShell = pSh;
+ bIsHidden = sal_True;
+ bIsActive = bIsConstant = sal_False;
+ FindActiveTypeAndRemoveUserData();
+ for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
+ {
+ DELETEZ(aHiddenContentArr[i]);
+ }
+ Display(bIsActive);
+
+ GetParentWindow()->UpdateListBox();
+}
+/***************************************************************************
+ Beschreibung: Dokumentwechsel - neue Shell setzen
+***************************************************************************/
+
+
+void SwContentTree::SetActiveShell(SwWrtShell* pSh)
+{
+ if(bIsInternalDrag)
+ bDocChgdInDragging = sal_True;
+ sal_Bool bClear = pActiveShell != pSh;
+ if(bIsActive && bClear)
+ {
+ pActiveShell = pSh;
+ FindActiveTypeAndRemoveUserData();
+ Clear();
+ }
+ else if(bIsConstant)
+ {
+ if(!lcl_FindShell(pActiveShell))
+ {
+ pActiveShell = pSh;
+ bIsActive = sal_True;
+ bIsConstant = sal_False;
+ bClear = sal_True;
+ }
+ }
+ // nur wenn es die aktive View ist, wird das Array geloescht und
+ // die Anzeige neu gefuellt
+ if(bIsActive && bClear)
+ {
+ FindActiveTypeAndRemoveUserData();
+ for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
+ {
+ DELETEZ(aActiveContentArr[i]);
+ }
+ Display(sal_True);
+ }
+}
+
+/***************************************************************************
+ Beschreibung: Eine offene View als aktiv festlegen
+***************************************************************************/
+
+
+void SwContentTree::SetConstantShell(SwWrtShell* pSh)
+{
+ pActiveShell = pSh;
+ bIsActive = sal_False;
+ bIsConstant = sal_True;
+ FindActiveTypeAndRemoveUserData();
+ for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
+ {
+ DELETEZ(aActiveContentArr[i]);
+ }
+ Display(sal_True);
+}
+/***************************************************************************
+ Beschreibung: Kommandos des Navigators ausfuehren
+***************************************************************************/
+
+
+void SwContentTree::ExecCommand(sal_uInt16 nCmd, sal_Bool bModifier)
+{
+ sal_Bool nMove = sal_False;
+ switch( nCmd )
+ {
+ case FN_ITEM_DOWN:
+ case FN_ITEM_UP: nMove = sal_True;
+ case FN_ITEM_LEFT:
+ case FN_ITEM_RIGHT:
+ if( !GetWrtShell()->GetView().GetDocShell()->IsReadOnly() &&
+ (bIsActive ||
+ (bIsConstant && pActiveShell == ::GetActiveView()->GetWrtShellPtr())))
+ {
+ SwWrtShell* pShell = GetWrtShell();
+ sal_Int8 nActOutlineLevel = nOutlineLevel;
+ sal_uInt16 nActPos = pShell->GetOutlinePos(nActOutlineLevel);
+ SvLBoxEntry* pFirstEntry = FirstSelected();
+ if (pFirstEntry && lcl_IsContent(pFirstEntry))
+ {
+ if(bIsRoot && nRootType == CONTENT_TYPE_OUTLINE ||
+ ((SwContent*)pFirstEntry->GetUserData())->GetParent()->GetType()
+ == CONTENT_TYPE_OUTLINE)
+ nActPos = ((SwOutlineContent*)pFirstEntry->GetUserData())->GetPos();
+ }
+ if ( nActPos < USHRT_MAX &&
+ ( !nMove || pShell->IsOutlineMovable( nActPos )) )
+ {
+ pShell->StartAllAction();
+ pShell->GotoOutline( nActPos); // Falls Textselektion != BoxSelektion
+ pShell->Push();
+ pShell->MakeOutlineSel( nActPos, nActPos,
+ bModifier);
+ if( nMove )
+ {
+ short nDir = nCmd == FN_ITEM_UP ? -1 : 1;
+ if( !bModifier && (nDir == -1 && nActPos > 0 ||
+ nDir == 1 && nActPos < GetEntryCount() - 2 ) )
+ {
+ pShell->MoveOutlinePara( nDir );
+ //Cursor wieder an die aktuelle Position setzen
+ pShell->GotoOutline( nActPos + nDir);
+ }
+ else if(bModifier)
+ {
+ sal_uInt16 nActEndPos = nActPos;
+ SvLBoxEntry* pEntry = pFirstEntry;
+ sal_uInt16 nActLevel = ((SwOutlineContent*)
+ pFirstEntry->GetUserData())->GetOutlineLevel();
+ pEntry = Next(pEntry);
+ while( pEntry && CONTENT_TYPE_OUTLINE ==
+ ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() )
+ {
+ if(nActLevel >= ((SwOutlineContent*)
+ pEntry->GetUserData())->GetOutlineLevel())
+ break;
+ pEntry = Next(pEntry);
+ nActEndPos++;
+ }
+ sal_uInt16 nDest;
+ if(nDir == 1)
+ {
+ //Wenn der letzte Eintrag bewegt werden soll
+ //ist Schluss
+ if(pEntry && CONTENT_TYPE_OUTLINE ==
+ ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId())
+ {
+ // pEntry zeigt jetzt auf den
+ // dem letzten sel. Eintrag folgenden E.
+ nDest = nActEndPos;
+ nDest++;
+ //hier muss der uebernaechste Eintrag
+ //gefunden werden. Die Selektion muss davor eingefuegt
+ //werden
+ while(pEntry )
+ {
+ pEntry = Next(pEntry);
+ // nDest++ darf nur ausgefuehrt werden,
+ // wenn pEntry != 0
+ if(pEntry && nDest++ &&
+ ( nActLevel >= ((SwOutlineContent*)pEntry->GetUserData())->GetOutlineLevel()||
+ CONTENT_TYPE_OUTLINE != ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId()))
+ {
+ nDest--;
+ break;
+ }
+ }
+ nDir = nDest - nActEndPos;
+ //wenn kein Eintrag gefunden wurde, der der Bedingung
+ //fuer das zuvor Einfuegen entspricht, muss etwas weniger
+ //geschoben werden
+ }
+ else
+ nDir = 0;
+ }
+ else
+ {
+ nDest = nActPos;
+ pEntry = pFirstEntry;
+ while(pEntry && nDest )
+ {
+ nDest--;
+ pEntry = Prev(pEntry);
+ if(pEntry &&
+ (nActLevel >= ((SwOutlineContent*)pEntry->GetUserData())->GetOutlineLevel()||
+ CONTENT_TYPE_OUTLINE !=
+ ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId()))
+ {
+ break;
+ }
+ }
+ nDir = nDest - nActPos;
+ }
+ if(nDir)
+ {
+ pShell->MoveOutlinePara( nDir );
+ //Cursor wieder an die aktuelle Position setzen
+ pShell->GotoOutline( nActPos + nDir);
+ }
+ }
+ }
+ else
+ {
+ if( pShell->IsProtectedOutlinePara() )
+ Sound::Beep(); //konnte nicht umgestuft werden
+ else
+ pShell->OutlineUpDown( nCmd == FN_ITEM_LEFT ? -1 : 1 );
+ }
+
+ pShell->ClearMark();
+ pShell->Pop(sal_False); //Cursor steht jetzt wieder an der akt. Ueberschrift
+ pShell->EndAllAction();
+ if(aActiveContentArr[CONTENT_TYPE_OUTLINE])
+ aActiveContentArr[CONTENT_TYPE_OUTLINE]->Invalidate();
+ Display(sal_True);
+ if(!bIsRoot)
+ {
+ const sal_uInt16 nActPos = pShell->GetOutlinePos(MAXLEVEL);
+ SvLBoxEntry* pEntry = First();
+
+ while( 0 != (pEntry = Next(pEntry)) && lcl_IsContent(pEntry))
+ {
+ if(((SwOutlineContent*)pEntry->GetUserData())->GetPos() == nActPos)
+ {
+ Select(pEntry);
+ MakeVisible(pEntry);
+ }
+ }
+ }
+ }
+ else
+ Sound::Beep(); //konnte nicht verschoben werden
+ }
+ }
+}
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentTree::Show()
+{
+ aUpdTimer.Start();
+ SvTreeListBox::Show();
+}
+
+/***************************************************************************
+ Beschreibung: zusammengefaltet wird nicht geidlet
+***************************************************************************/
+
+
+void SwContentTree::Hide()
+{
+ aUpdTimer.Stop();
+ SvTreeListBox::Hide();
+}
+
+/***************************************************************************
+ Beschreibung: Kein Idle mit Focus oder waehrend des Dragging
+***************************************************************************/
+
+
+IMPL_LINK( SwContentTree, TimerUpdate, Timer*, EMPTYARG)
+{
+ // kein Update waehrend D&D
+ // Viewabfrage, da der Navigator zu spaet abgeraeumt wird
+ SwView* pView = ::GetActiveView();
+ if( (!HasFocus() || bViewHasChanged) &&
+ !bIsInDrag && !bIsInternalDrag && pView &&
+ pView->GetWrtShellPtr() && !pView->GetWrtShellPtr()->ActionPend() )
+ {
+ bViewHasChanged = sal_False;
+ bIsIdleClear = sal_False;
+ SwWrtShell* pActShell = pView->GetWrtShellPtr();
+ if( bIsConstant && !lcl_FindShell( pActiveShell ) )
+ {
+ SetActiveShell(pActShell);
+ GetParentWindow()->UpdateListBox();
+ }
+
+ if(bIsActive && pActShell != GetWrtShell())
+ SetActiveShell(pActShell);
+ else if( (bIsActive || (bIsConstant && pActShell == GetWrtShell())) &&
+ HasContentChanged())
+ {
+ FindActiveTypeAndRemoveUserData();
+ Display(sal_True);
+ }
+ }
+ else if(!pView && bIsActive && !bIsIdleClear)
+ {
+ if(pActiveShell)
+ SetActiveShell(0);
+ Clear();
+ bIsIdleClear = sal_True;
+ }
+ return 0;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+DragDropMode SwContentTree::NotifyBeginDrag( SvLBoxEntry* pEntry )
+{
+ DragDropMode eMode = (DragDropMode)0;
+ if(bIsActive && nRootType == CONTENT_TYPE_OUTLINE &&
+ GetModel()->GetAbsPos( pEntry ) > 0
+ && !GetWrtShell()->GetView().GetDocShell()->IsReadOnly())
+ eMode = GetDragDropMode();
+ else if(!bIsActive && GetWrtShell()->GetView().GetDocShell()->HasName())
+ eMode = SV_DRAGDROP_APP_COPY;
+
+ sal_uInt16 nDrgMode;
+ FillDragServer(nDrgMode);
+ bDocChgdInDragging = sal_False;
+ return eMode;
+}
+
+
+/***************************************************************************
+ Beschreibung : Nach dem Drag wird der aktuelle Absatz m i t
+ Childs verschoben
+***************************************************************************/
+
+
+sal_Bool SwContentTree::NotifyMoving( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry, SvLBoxEntry*& , sal_uInt32& )
+{
+ if(!bDocChgdInDragging)
+ {
+ sal_uInt16 nTargetPos = 0;
+ sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos();
+ if(!lcl_IsContent(pTarget))
+ nTargetPos = USHRT_MAX;
+ else
+ nTargetPos = (( SwOutlineContent* )pTarget->GetUserData())->GetPos();
+ if( MAXLEVEL > nOutlineLevel && // werden nicht alle Ebenen angezeigt
+ nTargetPos != USHRT_MAX)
+ {
+ SvLBoxEntry* pNext = Next(pTarget);
+ if(pNext)
+ nTargetPos = (( SwOutlineContent* )pNext->GetUserData())->GetPos() -1;
+ else
+ nTargetPos = GetWrtShell()->GetOutlineCnt() - 1;
+
+ }
+
+ DBG_ASSERT( pEntry &&
+ lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" )
+ GetParentWindow()->MoveOutline( nSourcePos,
+ nTargetPos,
+ sal_True);
+
+ aActiveContentArr[CONTENT_TYPE_OUTLINE]->Invalidate();
+ Display(sal_True);
+ }
+ //TreeListBox wird aus dem Dokument neu geladen
+ return sal_False;
+}
+/***************************************************************************
+ Beschreibung : Nach dem Drag wird der aktuelle Absatz o h n e
+ Childs verschoben
+***************************************************************************/
+
+
+sal_Bool SwContentTree::NotifyCopying( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry, SvLBoxEntry*& , sal_uInt32& )
+{
+ if(!bDocChgdInDragging)
+ {
+ sal_uInt16 nTargetPos = 0;
+ sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos();
+ if(!lcl_IsContent(pTarget))
+ nTargetPos = USHRT_MAX;
+ else
+ nTargetPos = (( SwOutlineContent* )pTarget->GetUserData())->GetPos();
+
+ if( MAXLEVEL > nOutlineLevel && // werden nicht alle Ebenen angezeigt
+ nTargetPos != USHRT_MAX)
+ {
+ SvLBoxEntry* pNext = Next(pTarget);
+ if(pNext)
+ nTargetPos = (( SwOutlineContent* )pNext->GetUserData())->GetPos() - 1;
+ else
+ nTargetPos = GetWrtShell()->GetOutlineCnt() - 1;
+
+ }
+
+
+ DBG_ASSERT( pEntry &&
+ lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" )
+ GetParentWindow()->MoveOutline( nSourcePos, nTargetPos, sal_False);
+
+ //TreeListBox wird aus dem Dokument neu geladen
+ aActiveContentArr[CONTENT_TYPE_OUTLINE]->Invalidate();
+ Display(sal_True);
+ }
+ return sal_False;
+}
+/***************************************************************************
+ Beschreibung: Kein Drop vor den ersten Eintrag - es ist ein SwContentType
+***************************************************************************/
+
+
+sal_Bool SwContentTree::NotifyQueryDrop( SvLBoxEntry* pEntry)
+{
+ return pEntry != 0;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentTree::BeginDrag( const Point& rPt)
+{
+ bIsInternalDrag = sal_True;
+ SvTreeListBox::BeginDrag(rPt);
+}
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentTree::EndDrag()
+{
+ bIsInternalDrag = sal_False;
+ SvTreeListBox::EndDrag();
+}
+/***************************************************************************
+ Beschreibung: Wird ein Ctrl+DoubleClick in einen freien Bereich ausgefuehrt,
+ * dann soll die Basisfunktion des Controls gerufen werden
+***************************************************************************/
+void SwContentTree::MouseButtonDown( const MouseEvent& rMEvt )
+{
+ Point aPos( rMEvt.GetPosPixel());
+ SvLBoxEntry* pEntry = GetEntry( aPos, sal_True );
+ if( !pEntry && rMEvt.IsLeft() && rMEvt.IsMod1() && (rMEvt.GetClicks() % 2) == 0)
+ Control::MouseButtonDown( rMEvt );
+ else
+ SvTreeListBox::MouseButtonDown( rMEvt );
+}
+
+/***************************************************************************
+ Beschreibung: sofort aktualisieren
+***************************************************************************/
+
+
+void SwContentTree::GetFocus()
+{
+ SwView* pActView = ::GetActiveView();
+ if(pActView)
+ {
+ SwWrtShell* pActShell = pActView->GetWrtShellPtr();
+ if(bIsConstant && !lcl_FindShell(pActiveShell))
+ {
+ SetActiveShell(pActShell);
+ }
+
+ if(bIsActive && pActShell != GetWrtShell())
+ SetActiveShell(pActShell);
+ else if( (bIsActive || (bIsConstant && pActShell == GetWrtShell())) &&
+ HasContentChanged())
+ {
+ Display(sal_True);
+ }
+ }
+ else if(bIsActive)
+ Clear();
+ SvTreeListBox::GetFocus();
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentTree::KeyInput(const KeyEvent& rEvent)
+{
+ const KeyCode aCode = rEvent.GetKeyCode();
+ if(aCode.GetCode() == KEY_RETURN)
+ {
+ SvLBoxEntry* pEntry = FirstSelected();
+ if ( pEntry )
+ {
+ switch(aCode.GetModifier())
+ {
+ case KEY_MOD2:
+ // Boxen umschalten
+ GetParentWindow()->ToggleTree();
+ break;
+ case KEY_MOD1:
+ // RootModus umschalten
+ ToggleToRoot();
+ break;
+ case 0:
+ if(lcl_IsContentType(pEntry))
+ {
+ IsExpanded(pEntry) ?
+ Collapse(pEntry) :
+ Expand(pEntry);
+ }
+ else
+ ContentDoubleClickHdl(0);
+ break;
+ }
+ }
+ }
+ else if(aCode.GetCode() == KEY_DELETE && 0 == aCode.GetModifier())
+ {
+ SvLBoxEntry* pEntry = FirstSelected();
+ if(pEntry &&
+ lcl_IsContent(pEntry) &&
+ ((SwContent*)pEntry->GetUserData())->GetParent()->IsDeletable() &&
+ !pActiveShell->GetView().GetDocShell()->IsReadOnly())
+ {
+ EditEntry(pEntry, EDIT_MODE_DELETE);
+ GrabFocus();
+ }
+ }
+ else
+ SvTreeListBox::KeyInput(rEvent);
+
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentTree::RequestHelp( const HelpEvent& rHEvt )
+{
+ if( rHEvt.GetMode() & HELPMODE_QUICK )
+ {
+ Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
+ SvLBoxEntry* pEntry = GetEntry( aPos );
+ if( pEntry )
+ {
+ sal_uInt16 nType;
+ sal_Bool bBalloon = sal_False;
+ sal_Bool bContent = sal_False;
+ void* pUserData = pEntry->GetUserData();
+ if(lcl_IsContentType(pEntry))
+ nType = ((SwContentType*)pUserData)->GetType();
+ else
+ {
+ nType = ((SwContent*)pUserData)->GetParent()->GetType();
+ bContent = sal_True;
+ }
+ String sEntry;
+ sal_Bool bRet = sal_False;
+ if(bContent)
+ {
+ switch( nType )
+ {
+ case CONTENT_TYPE_URLFIELD:
+ sEntry = ((SwURLFieldContent*)pUserData)->GetURL();
+ bRet = sal_True;
+ break;
+
+ case CONTENT_TYPE_POSTIT:
+ sEntry = ((SwPostItContent*)pUserData)->GetName();
+ bRet = sal_True;
+ if(Help::IsBalloonHelpEnabled())
+ bBalloon = sal_True;
+ break;
+ case CONTENT_TYPE_OUTLINE:
+ sEntry = ((SwOutlineContent*)pUserData)->GetName();
+ bRet = sal_True;
+ break;
+ case CONTENT_TYPE_GRAPHIC:
+ sEntry = ((SwGraphicContent*)pUserData)->GetLink();
+#ifdef DEBUG
+ sEntry += ' ';
+ sEntry += String::CreateFromInt32(
+ ((SwGraphicContent*)pUserData)->GetYPos());
+#endif
+ bRet = sal_True;
+ break;
+#ifdef DEBUG
+ case CONTENT_TYPE_TABLE:
+ case CONTENT_TYPE_FRAME:
+ sEntry = String::CreateFromInt32(
+ ((SwContent*)pUserData)->GetYPos() );
+ bRet = sal_True;
+ break;
+#endif
+ }
+ if(((SwContent*)pUserData)->IsInvisible())
+ {
+ if(sEntry.Len())
+ sEntry += C2S(", ");
+ sEntry += sInvisible;
+ bRet = sal_True;
+ }
+ }
+ else
+ {
+ sal_uInt16 nMemberCount = ((SwContentType*)pUserData)->GetMemberCount();
+ sEntry = String::CreateFromInt32(nMemberCount);
+ sEntry += ' ';
+ sEntry += nMemberCount == 1
+ ? ((SwContentType*)pUserData)->GetSingleName()
+ : ((SwContentType*)pUserData)->GetName();
+ bRet = sal_True;
+ }
+ if(bRet)
+ {
+ SvLBoxTab* pTab;
+ SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
+ if( pItem && SV_ITEM_ID_LBOXSTRING == pItem->IsA())
+ {
+ aPos = GetEntryPos( pEntry );
+
+ aPos.X() = GetTabPos( pEntry, pTab );
+ Size aSize( pItem->GetSize( this, pEntry ) );
+
+ if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
+ aSize.Width() = GetSizePixel().Width() - aPos.X();
+
+ aPos = OutputToScreenPixel(aPos);
+ Rectangle aItemRect( aPos, aSize );
+ if(bBalloon)
+ {
+ aPos.X() += aSize.Width();
+ Help::ShowBalloon( this, aPos, aItemRect, sEntry );
+ }
+ else
+ Help::ShowQuickHelp( this, aItemRect, sEntry,
+ QUICKHELP_LEFT|QUICKHELP_VCENTER );
+ }
+ }
+ else
+ Help::ShowQuickHelp( this, Rectangle(), aEmptyStr, 0 );
+ }
+ }
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+IMPL_LINK(SwContentTree, PopupHdl, Menu*, pMenu)
+{
+ sal_uInt16 nId = pMenu->GetCurItemId();
+ SvLBoxEntry* pFirst = FirstSelected();
+ switch( nId )
+ {
+ //Outlinelevel
+ case 101:
+ case 102:
+ case 103:
+ case 104:
+ case 105:
+ case 106:
+ case 107:
+ case 108:
+ case 109:
+ case 110:
+ nId -= 100;
+ if(nOutlineLevel != nId )
+ SetOutlineLevel((sal_Int8)nId);
+ break;
+ case 201:
+ case 202:
+ case 203:
+ GetParentWindow()->SetRegionDropMode(nId - 201);
+ break;
+ case 401:
+ case 402:
+ EditEntry(pFirst, nId == 401 ? EDIT_MODE_RMV_IDX : EDIT_MODE_UPD_IDX);
+ break;
+ // Eintrag bearbeiten
+ case 403:
+ EditEntry(pFirst);
+ break;
+ case 404:
+ EditEntry(pFirst, EDIT_UNPROTECT_TABLE);
+ break;
+ case 405 :
+ {
+ const SwTOXBase* pBase = ((SwTOXBaseContent*)pFirst->GetUserData())
+ ->GetTOXBase();
+ pActiveShell->SetTOXBaseReadonly(*pBase, !pMenu->IsItemChecked(nId));
+ }
+ break;
+ case 4:
+ break;
+ case 501:
+ EditEntry(pFirst, EDIT_MODE_DELETE);
+ break;
+ case 502 :
+ EditEntry(pFirst, EDIT_MODE_RENAME);
+ break;
+ //Anzeige
+ default: // nId > 300
+ if(nId > 300 && nId < 400)
+ {
+ nId -= 300;
+ SwView *pView = SwModule::GetFirstView();
+ while (pView)
+ {
+ nId --;
+ if(nId == 0)
+ {
+ SetConstantShell(&pView->GetWrtShell());
+ break;
+ }
+ pView = SwModule::GetNextView(pView);
+ }
+ if(nId)
+ {
+ bViewHasChanged = bIsActive = nId==1;
+ bIsConstant = sal_False;
+ Display(nId == 1);
+ }
+ }
+ }
+ GetParentWindow()->UpdateListBox();
+ return sal_True;
+}
+
+/***************************************************************************
+ Beschreibung:
+***************************************************************************/
+
+
+void SwContentTree::SetOutlineLevel(sal_uInt8 nSet)
+{
+ nOutlineLevel = nSet;
+ pConfig->SetOutlineLevel( nOutlineLevel );
+ SwContentType** ppContentT = bIsActive ?
+ &aActiveContentArr[CONTENT_TYPE_OUTLINE] :
+ &aHiddenContentArr[CONTENT_TYPE_OUTLINE];
+ if(*ppContentT)
+ {
+ (*ppContentT)->SetOutlineLevel(nOutlineLevel);
+ (*ppContentT)->Init();
+ }
+ Display(bIsActive);
+}
+
+/***************************************************************************
+ Beschreibung: Moduswechsel: gedropptes Doc anzeigen
+***************************************************************************/
+
+
+void SwContentTree::ShowHiddenShell()
+{
+ if(pHiddenShell)
+ {
+ bIsConstant = sal_False;
+ bIsActive = sal_False;
+ Display(sal_False);
+ }
+}
+
+/***************************************************************************
+ Beschreibung: Moduswechsel: aktive Sicht anzeigen
+***************************************************************************/
+
+
+void SwContentTree::ShowActualView()
+{
+ bIsActive = sal_True;
+ bIsConstant = sal_False;
+ Display(sal_True);
+ GetParentWindow()->UpdateListBox();
+}
+
+/*-----------------20.11.96 13.34-------------------
+ Beschreibung: Hier sollen die Buttons zum Verschieben von
+ Outlines en-/disabled werden
+--------------------------------------------------*/
+
+sal_Bool SwContentTree::Select( SvLBoxEntry* pEntry, sal_Bool bSelect )
+{
+ if(!pEntry)
+ return sal_False;
+ sal_Bool bEnable = sal_False;
+ SvLBoxEntry* pParentEntry = GetParent(pEntry);
+ if(!bIsLastReadOnly && (!IsVisible() ||
+ (bIsRoot && nRootType == CONTENT_TYPE_OUTLINE && pParentEntry ||
+ lcl_IsContent(pEntry) && ((SwContentType*)pParentEntry->GetUserData())->GetType() == CONTENT_TYPE_OUTLINE)))
+ bEnable = sal_True;
+ SwNavigationPI* pNavi = GetParentWindow();
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_UP , bEnable);
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_DOWN, bEnable);
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_LEFT, bEnable);
+ pNavi->aContentToolBox.EnableItem(FN_ITEM_RIGHT,bEnable);
+
+ return SvTreeListBox::Select(pEntry, bSelect);
+}
+
+/*-----------------27.11.96 12.56-------------------
+
+--------------------------------------------------*/
+
+void SwContentTree::SetRootType(sal_uInt16 nType)
+{
+ nRootType = nType;
+ bIsRoot = sal_True;
+ pConfig->SetRootType( nRootType );
+}
+
+/*-----------------10.01.97 12.19-------------------
+
+--------------------------------------------------*/
+
+void SwContentType::RemoveNewline(String& rEntry)
+{
+ sal_Unicode* pStr = rEntry.GetBufferAccess();
+ for(xub_StrLen i = rEntry.Len(); i; --i, ++pStr )
+ {
+ if( *pStr == 10 || *pStr == 13 )
+ *pStr = 0x20;
+ }
+}
+
+/*-----------------14.01.97 16.38-------------------
+
+--------------------------------------------------*/
+
+void SwContentTree::EditEntry(SvLBoxEntry* pEntry, sal_uInt8 nMode)
+{
+ SwContent* pCnt = (SwContent*)pEntry->GetUserData();
+ GotoContent(pCnt);
+ sal_uInt16 nType = pCnt->GetParent()->GetType();
+ sal_uInt16 nSlot = 0;
+
+ uno::Reference< container::XNameAccess > xNameAccess, xSecond, xThird;
+ switch(nType)
+ {
+ case CONTENT_TYPE_TABLE :
+ if(nMode == EDIT_UNPROTECT_TABLE)
+ {
+ pActiveShell->GetView().GetDocShell()->
+ GetDoc()->UnProtectCells( pCnt->GetName());
+ }
+ else if(nMode == EDIT_MODE_DELETE)
+ {
+ pActiveShell->StartAction();
+ pActiveShell->StartUndo();
+ pActiveShell->GetView().GetViewFrame()->GetDispatcher()->Execute(FN_TABLE_SELECT_ALL);
+ pActiveShell->DeleteRow();
+ pActiveShell->EndUndo();
+ pActiveShell->EndAction();
+ }
+ else if(nMode == EDIT_MODE_RENAME)
+ {
+ uno::Reference< frame::XModel > xModel = pActiveShell->GetView().GetDocShell()->GetBaseModel();
+ uno::Reference< text::XTextTablesSupplier > xTables(xModel, uno::UNO_QUERY);
+ xNameAccess = xTables->getTextTables();
+ }
+ else
+ nSlot = FN_FORMAT_TABLE_DLG;
+ break;
+
+ case CONTENT_TYPE_GRAPHIC :
+ if(nMode == EDIT_MODE_DELETE)
+ {
+ pActiveShell->DelRight();
+ }
+ else if(nMode == EDIT_MODE_RENAME)
+ {
+ uno::Reference< frame::XModel > xModel = pActiveShell->GetView().GetDocShell()->GetBaseModel();
+ uno::Reference< text::XTextGraphicObjectsSupplier > xGraphics(xModel, uno::UNO_QUERY);
+ xNameAccess = xGraphics->getGraphicObjects();
+ uno::Reference< text::XTextFramesSupplier > xFrms(xModel, uno::UNO_QUERY);
+ xSecond = xFrms->getTextFrames();
+ uno::Reference< text::XTextEmbeddedObjectsSupplier > xObjs(xModel, uno::UNO_QUERY);
+ xThird = xObjs->getEmbeddedObjects();
+ }
+ else
+ nSlot = FN_FORMAT_GRAFIC_DLG;
+ break;
+
+ case CONTENT_TYPE_FRAME :
+ case CONTENT_TYPE_OLE :
+ if(nMode == EDIT_MODE_DELETE)
+ {
+ pActiveShell->DelRight();
+ }
+ else if(nMode == EDIT_MODE_RENAME)
+ {
+ uno::Reference< frame::XModel > xModel = pActiveShell->GetView().GetDocShell()->GetBaseModel();
+ uno::Reference< text::XTextFramesSupplier > xFrms(xModel, uno::UNO_QUERY);
+ uno::Reference< text::XTextEmbeddedObjectsSupplier > xObjs(xModel, uno::UNO_QUERY);
+ if(CONTENT_TYPE_FRAME == nType)
+ {
+ xNameAccess = xFrms->getTextFrames();
+ xSecond = xObjs->getEmbeddedObjects();
+ }
+ else
+ {
+ xNameAccess = xObjs->getEmbeddedObjects();
+ xSecond = xFrms->getTextFrames();
+ }
+ uno::Reference< text::XTextGraphicObjectsSupplier > xGraphics(xModel, uno::UNO_QUERY);
+ xThird = xGraphics->getGraphicObjects();
+ }
+ else
+ nSlot = FN_FORMAT_FRAME_DLG;
+ break;
+ case CONTENT_TYPE_BOOKMARK :
+ if(nMode == EDIT_MODE_DELETE)
+ {
+ pActiveShell->DelBookmark( pCnt->GetName() );
+ }
+ else if(nMode == EDIT_MODE_RENAME)
+ {
+ uno::Reference< frame::XModel > xModel = pActiveShell->GetView().GetDocShell()->GetBaseModel();
+ uno::Reference< text::XBookmarksSupplier > xBkms(xModel, uno::UNO_QUERY);
+ xNameAccess = xBkms->getBookmarks();
+ }
+ else
+ nSlot = FN_INSERT_BOOKMARK;
+ break;
+
+ case CONTENT_TYPE_REGION :
+ if(nMode == EDIT_MODE_RENAME)
+ {
+ uno::Reference< frame::XModel > xModel = pActiveShell->GetView().GetDocShell()->GetBaseModel();
+ uno::Reference< text::XTextSectionsSupplier > xSects(xModel, uno::UNO_QUERY);
+ xNameAccess = xSects->getTextSections();
+ }
+ else
+ nSlot = FN_EDIT_REGION;
+ break;
+
+ case CONTENT_TYPE_URLFIELD:
+ nSlot = FN_EDIT_HYPERLINK;
+ break;
+ case CONTENT_TYPE_REFERENCE:
+ nSlot = FN_EDIT_FIELD;
+ break;
+
+ case CONTENT_TYPE_POSTIT:
+ if(nMode == EDIT_MODE_DELETE)
+ {
+ pActiveShell->DelRight();
+ }
+ else
+ nSlot = FN_POSTIT;
+ break;
+ case CONTENT_TYPE_INDEX:
+ {
+ const SwTOXBase* pBase = ((SwTOXBaseContent*)pCnt)->GetTOXBase();
+ switch(nMode)
+ {
+ case EDIT_MODE_EDIT:
+ if(pBase)
+ nSlot = FN_INSERT_MULTI_TOX;
+ break;
+ case EDIT_MODE_UPD_IDX:
+ nSlot = FN_UPDATE_CUR_TOX;
+ break;
+ case EDIT_MODE_RMV_IDX:
+ case EDIT_MODE_DELETE:
+ {
+ if( pBase )
+ pActiveShell->DeleteTOX(*pBase, EDIT_MODE_DELETE == nMode);
+ }
+ break;
+ case EDIT_MODE_RENAME:
+ {
+ uno::Reference< frame::XModel > xModel = pActiveShell->GetView().GetDocShell()->GetBaseModel();
+ uno::Reference< text::XDocumentIndexesSupplier > xIndexes(xModel, uno::UNO_QUERY);
+ xNameAccess = uno::Reference< container::XNameAccess >(xIndexes, uno::UNO_QUERY);
+ }
+ break;
+ }
+ }
+ break;
+
+ }
+ if(nSlot)
+ pActiveShell->GetView().GetViewFrame()->
+ GetDispatcher()->Execute(nSlot, SFX_CALLMODE_ASYNCHRON);
+ else if(xNameAccess.is())
+ {
+ uno::Any aObj = xNameAccess->getByName(pCnt->GetName());
+ uno::Reference< uno::XInterface > xTmp = *(uno::Reference< uno::XInterface > *)aObj.getValue();
+ uno::Reference< container::XNamed > xNamed(xTmp, uno::UNO_QUERY);
+ SwRenameXNamedDlg aDlg(this, xNamed, xNameAccess);
+ if(xSecond.is())
+ aDlg.SetAlternativeAccess( xSecond, xThird);
+
+ String sForbiddenChars;
+ if(CONTENT_TYPE_BOOKMARK == nType)
+ {
+ sForbiddenChars = C2S("/\\@:*?\";,.# ");
+ }
+ else if(CONTENT_TYPE_TABLE == nType)
+ {
+ sForbiddenChars = C2S(" .<>");
+ }
+ aDlg.SetForbiddenChars(sForbiddenChars);
+ aDlg.Execute();
+ }
+}
+
+/*-----------------14.01.97 16.53-------------------
+
+--------------------------------------------------*/
+
+void SwContentTree::GotoContent(SwContent* pCnt)
+{
+ pActiveShell->EnterStdMode();
+
+ sal_Bool bSel = sal_False;
+ sal_uInt16 nJumpType = pCnt->GetParent()->GetType();
+ switch(nJumpType)
+ {
+ case CONTENT_TYPE_OUTLINE :
+ {
+ pActiveShell->GotoOutline(((SwOutlineContent*)pCnt)->GetPos());
+ }
+ break;
+ case CONTENT_TYPE_TABLE :
+ {
+ pActiveShell->GotoTable(pCnt->GetName());
+ }
+ break;
+ case CONTENT_TYPE_FRAME :
+ case CONTENT_TYPE_GRAPHIC :
+ case CONTENT_TYPE_OLE :
+ {
+ if(pActiveShell->GotoFly(pCnt->GetName()))
+ bSel = sal_True;
+ }
+ break;
+ case CONTENT_TYPE_BOOKMARK :
+ {
+ pActiveShell->GotoBookmark(pCnt->GetName());
+ }
+ break;
+ case CONTENT_TYPE_REGION :
+ {
+ pActiveShell->GotoRegion(pCnt->GetName());
+ }
+ break;
+ case CONTENT_TYPE_URLFIELD:
+ {
+ if(pActiveShell->GotoINetAttr(
+ *((SwURLFieldContent*)pCnt)->GetINetAttr() ))
+ {
+ pActiveShell->Right(sal_True, 1, sal_False);
+ pActiveShell->SwCrsrShell::SelectTxtAttr( RES_TXTATR_INETFMT, sal_True );
+ }
+
+ }
+ break;
+ case CONTENT_TYPE_REFERENCE:
+ {
+ pActiveShell->GotoRefMark(pCnt->GetName());
+ }
+ break;
+ case CONTENT_TYPE_INDEX:
+ {
+ if (!pActiveShell->GotoNextTOXBase(&pCnt->GetName()))
+ pActiveShell->GotoPrevTOXBase(&pCnt->GetName());
+ }
+ break;
+ case CONTENT_TYPE_POSTIT:
+ pActiveShell->GotoFld(*((SwPostItContent*)pCnt)->GetPostIt());
+ break;
+ case CONTENT_TYPE_DRAWOBJECT:
+ DBG_ERROR("unsupported format")
+ break;
+ }
+ if(bSel)
+ {
+ pActiveShell->HideCrsr();
+ pActiveShell->EnterSelFrmMode();
+ }
+ SwView& rView = pActiveShell->GetView();
+ rView.StopShellTimer();
+ rView.GetEditWin().GrabFocus();
+}
+/*-----------------06.02.97 19.14-------------------
+ Jetzt nochtdie passende ::com::sun::star::text::Bookmark
+--------------------------------------------------*/
+
+NaviContentBookmark::NaviContentBookmark()
+ : nDefDrag( REGION_MODE_NONE ), nDocSh(0)
+{
+}
+
+/*-----------------06.02.97 20.12-------------------
+
+--------------------------------------------------*/
+
+NaviContentBookmark::NaviContentBookmark( const String &rUrl,
+ const String& rDesc,
+ sal_uInt16 nDragType,
+ const SwDocShell* pDocSh ) :
+ aUrl( rUrl ),
+ aDescr(rDesc),
+ nDefDrag( nDragType ),
+ nDocSh((long)pDocSh)
+{
+}
+
+/*-----------------06.02.97 19.17-------------------
+
+--------------------------------------------------*/
+
+
+sal_Bool NaviContentBookmark::DragServerHasFormat( sal_uInt16 nItem,
+ const SwDocShell* pDocSh )
+{
+ sal_Bool bRet = sal_False;
+ if(DragServer::HasFormat( nItem, SOT_FORMATSTR_ID_SONLK ))
+ {
+ long nDocSh = (long) pDocSh;
+ NaviContentBookmark aTemp;
+ aTemp.PasteDragServer(nItem);
+ // steht vor dem # ein Dateiname?
+ sal_uInt16 nFound = aTemp.GetURL().Search('#');
+ // entweder die Quelle hatte einen Namen oder Quelle und Ziel sind gleich
+ if(nFound != STRING_NOTFOUND &&
+ (nFound > 0 ||
+ nDocSh == aTemp.GetDocShell() ))
+ bRet = sal_True;
+ }
+ return bRet;
+}
+
+/*-----------------06.02.97 19.17-------------------
+
+--------------------------------------------------*/
+
+sal_Bool NaviContentBookmark::CopyDragServer() const
+{
+ String aString( aUrl );
+ aString += NAVI_BOOKMARK_DELIM;
+ aString += aDescr;
+ aString += NAVI_BOOKMARK_DELIM;
+ aString += String::CreateFromInt32( nDefDrag );
+ aString += NAVI_BOOKMARK_DELIM;
+ aString += String::CreateFromInt32( nDocSh );
+
+ return DragServer::CopyData( aString.GetBuffer(), (aString.Len() + 1) *2,
+ SOT_FORMATSTR_ID_SONLK );
+}
+/*-----------------06.02.97 19.16-------------------
+
+--------------------------------------------------*/
+
+sal_Bool NaviContentBookmark::PasteDragServer( sal_uInt16 nItem )
+{
+ sal_Bool bRet = sal_False;
+ if( DragServer::HasFormat( nItem, SOT_FORMATSTR_ID_SONLK ) )
+ {
+ sal_uInt32 nLen = DragServer::GetDataLen( nItem, SOT_FORMATSTR_ID_SONLK );
+ String aString;
+ DragServer::PasteData( nItem, aString.AllocBuffer(
+ nLen / 2 ), nLen, SOT_FORMATSTR_ID_SONLK );
+
+ xub_StrLen nStrFndPos = 0;
+ aUrl = aString.GetToken(0, NAVI_BOOKMARK_DELIM, nStrFndPos );
+ aDescr = aString.GetToken(0, NAVI_BOOKMARK_DELIM, nStrFndPos );
+ nDefDrag = aString.GetToken(0, NAVI_BOOKMARK_DELIM,
+ nStrFndPos ).ToInt32();
+ nDocSh = aString.GetToken(0, NAVI_BOOKMARK_DELIM,
+ nStrFndPos ).ToInt32();
+ bRet = sal_True;
+ }
+ return bRet;
+}
+
+/*-----------------06.02.97 20.43-------------------
+
+--------------------------------------------------*/
+
+sal_Bool NaviContentBookmark::Paste( SotDataObject& rObj, sal_uInt32 nFormat )
+{
+ sal_Bool bRet = sal_False;
+
+ SvData aData( nFormat, MEDIUM_ALL );
+ if( rObj.GetData( &aData ) )
+ {
+ void *pData;
+ aData.GetData( &pData, TRANSFER_REFERENCE );
+
+ if( nFormat == SOT_FORMATSTR_ID_SONLK )
+ {
+ String aString((sal_Unicode*)pData);
+ xub_StrLen nStrFndPos = 0;
+ aUrl = aString.GetToken(0, NAVI_BOOKMARK_DELIM, nStrFndPos );
+ aDescr = aString.GetToken(0, NAVI_BOOKMARK_DELIM, nStrFndPos );
+ nDefDrag = aString.GetToken(0, NAVI_BOOKMARK_DELIM,
+ nStrFndPos ).ToInt32();
+ nDocSh = aString.GetToken(0, NAVI_BOOKMARK_DELIM,
+ nStrFndPos ).ToInt32();
+ bRet = sal_True;
+ }
+ }
+ return bRet;
+
+}
+
+/*-----------------07.02.97 08.23-------------------
+
+--------------------------------------------------*/
+
+sal_uInt32 NaviContentBookmark::HasFormat( SotDataObject& rObj )
+{
+ return rObj.GetTypeList().Get( SOT_FORMATSTR_ID_SONLK )
+ ? SOT_FORMATSTR_ID_SONLK : 0;
+}
+
+/*-----------------20.02.97 15.37-------------------
+
+--------------------------------------------------*/
+IMPL_STATIC_LINK(SwContentTree, ExecDragHdl, SwContentTree*, EMPTYARG)
+{
+ SwContentTree::SetInDrag(sal_True);
+ DropAction eDropAction = pThis->ExecuteDrag(Pointer(POINTER_MOVEDATA), Pointer(POINTER_COPYDATA), POINTER_LINKDATA, pThis->nDragMode );
+ SwContentTree::SetInDrag(sal_False);
+ return 0;
+}
+/* -----------------------------09.12.99 13:50--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwContentLBoxString : public SvLBoxString
+{
+public:
+ SwContentLBoxString( SvLBoxEntry* pEntry, sal_uInt16 nFlags,
+ const String& rStr ) : SvLBoxString(pEntry,nFlags,rStr) {}
+
+ virtual void Paint( const Point& rPos, SvLBox& rDev, sal_uInt16 nFlags,
+ SvLBoxEntry* pEntry);
+};
+
+/* -----------------------------09.12.99 13:49--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwContentTree::InitEntry(SvLBoxEntry* pEntry,
+ const XubString& rStr ,const Image& rImg1,const Image& rImg2)
+{
+ sal_uInt16 nColToHilite = 1; //0==Bitmap;1=="Spalte1";2=="Spalte2"
+ SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2 );
+ SvLBoxString* pCol = (SvLBoxString*)pEntry->GetItem( nColToHilite );
+ SwContentLBoxString* pStr = new SwContentLBoxString( pEntry, 0, pCol->GetText() );
+ pEntry->ReplaceItem( pStr, nColToHilite );
+}
+/* -----------------------------09.12.99 13:49--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwContentLBoxString::Paint( const Point& rPos, SvLBox& rDev, sal_uInt16 nFlags,
+ SvLBoxEntry* pEntry )
+{
+ if(lcl_IsContent(pEntry) &&
+ ((SwContent *)pEntry->GetUserData())->IsInvisible())
+ {
+ //* pCont = (SwContent*)pEntry->GetUserData();
+ Font aOldFont( rDev.GetFont());
+ Font aFont(aOldFont);
+ Color aCol( COL_LIGHTGRAY );
+ aFont.SetColor( aCol );
+ rDev.SetFont( aFont );
+ rDev.DrawText( rPos, GetText() );
+ rDev.SetFont( aOldFont );
+ }
+ else
+ SvLBoxString::Paint( rPos, rDev, nFlags, pEntry);
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.161 2000/09/18 16:06:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.160 2000/09/08 15:11:58 os
+ use configuration service
+
+ Revision 1.159 2000/09/07 15:59:34 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.158 2000/08/17 13:46:34 jp
+ UI with decode URL; integer -> string bugs fixed
+
+ Revision 1.157 2000/07/20 13:17:38 jp
+ change old txtatr-character to the two new characters
+
+ Revision 1.156 2000/07/03 08:54:55 jp
+ must changes for VCL
+
+ Revision 1.155 2000/06/30 10:25:49 os
+ #63367# keep selected position in root mode, too
+
+ Revision 1.154 2000/06/06 09:11:51 os
+ 76056# CreateFromInt32
+
+ Revision 1.153 2000/05/23 19:54:16 jp
+ Bugfixes for Unicode
+
+ Revision 1.152 2000/04/26 15:03:20 os
+ GetName() returns const String&
+
+ Revision 1.151 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.150 2000/03/23 07:51:10 os
+ UNO III
+
+ Revision 1.149 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.148 2000/02/22 16:56:35 jp
+ Bug #73303#: new IsProtectedOutlinePara
+
+ Revision 1.147 2000/02/11 15:00:33 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.146 2000/02/01 12:41:04 os
+ #72443# visibility of section must be checked in SwContentType::Init
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
new file mode 100644
index 000000000000..fa2bb61cfc1a
--- /dev/null
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -0,0 +1,1678 @@
+/*************************************************************************
+ *
+ * $RCSfile: glbltree.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include <so3/iface.hxx>
+#ifndef _SVSTDARR_HXX
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX //autogen
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SVXLINKMGR_HXX
+#include <svx/linkmgr.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _HELP_HXX //autogen
+#include <vcl/help.hxx>
+#endif
+#ifndef _FILELIST_HXX //autogen
+#include <so3/filelist.hxx>
+#endif
+#ifndef _DRAG_HXX //autogen
+#include <vcl/drag.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _URLBMK_HXX //autogen
+#include <svtools/urlbmk.hxx>
+#endif
+#ifndef _FILTER_HXX //autogen
+#include <svtools/filter.hxx>
+#endif
+
+
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _CONTENT_HXX
+#include <content.hxx>
+#endif
+#ifndef _EDGLBLDC_HXX
+#include <edglbldc.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _TOX_HXX
+#include <tox.hxx>
+#endif
+#ifndef _CNTTAB_HXX
+#include <cnttab.hxx>
+#endif
+#define NAVIPI_CXX
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+#ifndef _NAVICONT_HXX
+#include <navicont.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _NAVIPI_HRC
+#include <navipi.hrc>
+#endif
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _COMCORE_HRC
+#include <comcore.hrc>
+#endif
+
+
+// Kontextmenue fuer GlobalTree
+#define CTX_INSERT_ANY_INDEX 10
+//#define CTX_INSERT_CNTIDX 11
+//#define CTX_INSERT_USRIDX 12
+#define CTX_INSERT_FILE 11
+#define CTX_INSERT_NEW_FILE 12
+#define CTX_INSERT_TEXT 13
+
+#define CTX_UPDATE_SEL 20
+#define CTX_UPDATE_INDEX 21
+#define CTX_UPDATE_LINK 22
+#define CTX_UPDATE_ALL 23
+
+#define CTX_UPDATE 1
+#define CTX_INSERT 2
+#define CTX_EDIT 3
+#define CTX_DELETE 4
+
+#define GLOBAL_UPDATE_TIMEOUT 2000
+
+// Flags fuer PopupMenu-enable/disable
+#define ENABLE_INSERT_IDX 0x0001
+#define ENABLE_INSERT_FILE 0x0002
+#define ENABLE_INSERT_TEXT 0x0004
+#define ENABLE_EDIT 0x0008
+#define ENABLE_DELETE 0x0010
+#define ENABLE_UPDATE 0x0020
+#define ENABLE_UPDATE_SEL 0x0040
+
+// TabPos nach links schieben
+#define GLBL_TABPOS_SUB 5
+
+const SfxObjectShell* SwGlobalTree::pShowShell = 0;
+static const USHORT __FAR_DATA aHelpForMenu[] =
+{
+ 0, //
+ HID_GLBLTREE_UPDATE, //CTX_UPDATE
+ HID_GLBLTREE_INSERT, //CTX_INSERT
+ HID_GLBLTREE_EDIT, //CTX_EDIT
+ HID_GLBLTREE_DEL, //CTX_DELETE
+ 0, //
+ 0, //
+ 0, //
+ 0, //
+ 0, //
+ HID_GLBLTREE_INS_IDX, //CTX_INSERT_ANY_INDEX
+ HID_GLBLTREE_INS_FILE, //CTX_INSERT_FILE
+ HID_GLBLTREE_INS_NEW_FILE, //CTX_INSERT_NEW_FILE
+ HID_GLBLTREE_INS_TEXT, //CTX_INSERT_TEXT
+ 0, //
+ 0, //
+ 0, //
+ 0, //
+ 0, //
+ 0, //
+ HID_GLBLTREE_UPD_SEL, //CTX_UPDATE_SEL
+ HID_GLBLTREE_UPD_IDX, //CTX_UPDATE_INDEX
+ HID_GLBLTREE_UPD_LINK, //CTX_UPDATE_LINK
+ HID_GLBLTREEUPD_ALL //CTX_UPDATE_ALL
+};
+
+/************************************************************************/
+/* */
+/************************************************************************/
+/* -----------------------------24.08.00 12:04--------------------------------
+
+ ---------------------------------------------------------------------------*/
+class SwGlobalFrameListener_Impl : public SfxListener
+{
+ BOOL bValid;
+public:
+ SwGlobalFrameListener_Impl(SfxViewFrame& rFrame) :
+ bValid(TRUE)
+ {
+ StartListening(rFrame);
+ }
+
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+
+ BOOL IsValid() const {return bValid;}
+};
+/* -----------------------------24.08.00 12:05--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwGlobalFrameListener_Impl::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ if( rHint.ISA(SfxSimpleHint) &&
+ (((SfxSimpleHint&) rHint).GetId() == SFX_HINT_DYING))
+ bValid = FALSE;
+}
+
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+SwGlobalTree::SwGlobalTree(Window* pParent, const ResId& rResId) :
+ SvTreeListBox(pParent, rResId),
+ pSwGlblDocContents(0),
+ pEmphasisEntry(0),
+ pDDSource(0),
+ pActiveShell(0),
+ bIsInternalDrag(FALSE),
+ bLastEntryEmphasis(FALSE),
+ bIsImageListInitialized(FALSE)
+{
+ SetDragDropMode(SV_DRAGDROP_APP_COPY |
+ SV_DRAGDROP_CTRL_MOVE |
+ SV_DRAGDROP_ENABLE_TOP );
+
+ aUpdateTimer.SetTimeout(GLOBAL_UPDATE_TIMEOUT);
+ aUpdateTimer.SetTimeoutHdl(LINK(this, SwGlobalTree, Timeout));
+ aUpdateTimer.Start();
+ for(USHORT i = 0; i < GLOBAL_CONTEXT_COUNT; i++)
+ {
+ aContextStrings[i] = SW_RESSTR(i+ ST_GLOBAL_CONTEXT_FIRST);
+ }
+ SetHelpId(HID_NAVIGATOR_GLOB_TREELIST);
+ SelectHdl();
+ SetDoubleClickHdl(LINK(this, SwGlobalTree, DoubleClickHdl));
+}
+
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+SwGlobalTree::~SwGlobalTree()
+{
+ delete pSwGlblDocContents;
+}
+
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+BOOL SwGlobalTree::Drop( const DropEvent& rEvt)
+{
+ BOOL bRet = FALSE;
+ SvLBoxEntry* pLast = (SvLBoxEntry*)LastVisible();
+ if(pEmphasisEntry)
+ {
+ ImplShowTargetEmphasis( Prev(pEmphasisEntry), FALSE );
+ pEmphasisEntry = 0;
+ }
+ else if(bLastEntryEmphasis && pLast)
+ {
+ ImplShowTargetEmphasis( pLast, FALSE);
+ }
+
+
+ SvLBoxEntry* pDropEntry = bLastEntryEmphasis ? 0 : GetEntry(rEvt.GetPosPixel());
+ if(bIsInternalDrag)
+ {
+ SvLBoxEntry* pDummy = 0;
+ ULONG nInsertionPos = LIST_APPEND;
+ NotifyMoving(pDropEntry, pDDSource, pDummy, nInsertionPos);
+ }
+ else
+ {
+ const USHORT nCount = DragServer::GetItemCount();
+ for ( USHORT i = 0; i < nCount; ++i )
+ {
+ String sFileName;
+ const SwGlblDocContent* pCnt = pDropEntry ?
+ (const SwGlblDocContent*)pDropEntry->GetUserData() :
+ 0;
+ if(DragServer::HasFormat(i, FORMAT_FILE_LIST))
+ {
+ bRet = TRUE;
+ SwGlblDocContents* pTempContents = new SwGlblDocContents;
+ int nAbsContPos = pDropEntry ?
+ (int) GetModel()->GetAbsPos(pDropEntry):
+ - 1;
+ USHORT nEntryCount = (USHORT)GetEntryCount();
+
+ // SvData basteln
+ SvData aData( FORMAT_FILE_LIST );
+ SvDataObjectRef xDataObj = SvDataObject::PasteDragServer( rEvt );
+ xDataObj->GetData( &aData );
+
+ // Daten holen
+ FileList aFileList;
+ FileList* pFileList = &aFileList;
+ aData.GetData( (SvDataCopyStream**)&pFileList, pFileList->Type() );
+ for ( USHORT n = (USHORT)aFileList.Count(); n--; )
+ {
+ sFileName = aFileList.GetFile(n);
+ InsertRegion(pCnt, &sFileName);
+ // nach dem Einfuegen muss die Liste der Contents neu
+ // geholt werden, um nicht auf einem alten Content zu
+ // arbeiten
+ if(n)
+ {
+ pActiveShell->GetGlobalDocContent(*pTempContents);
+ // wenn das file erfolgreich eingefuegt wurde,
+ // dann muss auch der naechste Content geholt werden
+ if(nEntryCount < pTempContents->Count())
+ {
+ nEntryCount++;
+ nAbsContPos++;
+ pCnt = pTempContents->GetObject(nAbsContPos);
+ }
+ }
+ }
+ delete pTempContents;
+ break;
+ }
+ else
+ {
+ String sFileName(SwNavigationPI::CreateDropFileName(i));
+ if(sFileName.Len())
+ {
+ InsertRegion(pCnt, &sFileName);
+ bRet = TRUE;
+ }
+ }
+ }
+ }
+ bLastEntryEmphasis = FALSE;
+ return bRet;
+
+}
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+BOOL SwGlobalTree::QueryDrop( DropEvent& rEvt)
+{
+ BOOL bRet = TRUE;
+ //initiate scrolling
+ GetDropTarget(rEvt.GetPosPixel());
+ SvLBoxEntry* pLast = (SvLBoxEntry*)LastVisible();
+ if(rEvt.IsLeaveWindow())
+ {
+ if(pEmphasisEntry)
+ {
+ ImplShowTargetEmphasis( Prev(pEmphasisEntry), FALSE );
+ pEmphasisEntry = 0;
+ }
+ else if(bLastEntryEmphasis && pLast)
+ {
+ ImplShowTargetEmphasis( pLast, FALSE);
+ }
+ bLastEntryEmphasis = FALSE;
+ }
+ else
+ {
+ SvLBoxEntry* pDropEntry = GetEntry(rEvt.GetPosPixel());
+ if(bIsInternalDrag)
+ {
+ bRet = pDDSource != pDropEntry;
+ }
+ else
+ {
+ if (DragServer::HasFormat(0, FORMAT_FILE))
+ {
+ String aFileName = DragServer::PasteFile(0);
+ GraphicDescriptor aDesc(aFileName);
+ if (aDesc.Detect()) // keine Grafiken annehmen
+ bRet = FALSE;
+ else
+ bRet = TRUE;
+ }
+ else if ( DragServer::HasFormat(0, FORMAT_FILE_LIST) ||
+ INetBookmark::DragServerHasFormat( 0 ) )
+ {
+ bRet = TRUE;
+ }
+ else
+ bRet = FALSE;
+ rEvt.SetAction(DROP_LINK);
+ }
+ if(pEmphasisEntry && pEmphasisEntry != pDropEntry)
+ ImplShowTargetEmphasis( Prev(pEmphasisEntry), FALSE );
+ else if(pLast && bLastEntryEmphasis && pDropEntry)
+ {
+ ImplShowTargetEmphasis( pLast, FALSE);
+ bLastEntryEmphasis = FALSE;
+ }
+ if(pDropEntry)
+ ImplShowTargetEmphasis( Prev(pDropEntry), bRet );
+ else if(pLast)
+ {
+ ImplShowTargetEmphasis( pLast, bRet );
+ bLastEntryEmphasis = TRUE;
+ }
+ pEmphasisEntry = pDropEntry;
+ }
+ return bRet;
+}
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::Command( const CommandEvent& rCEvt )
+{
+ BOOL bParent = FALSE;
+ switch( rCEvt.GetCommand() )
+ {
+ case COMMAND_CONTEXTMENU:
+ {
+ if(!pActiveShell ||
+ !pActiveShell->GetView().GetDocShell()->IsReadOnly())
+ {
+ USHORT nEnableFlags = GetEnableFlags();
+ PopupMenu aPop;
+ PopupMenu aSubPop1;
+ PopupMenu aSubPop2;
+
+ for (USHORT i = CTX_UPDATE_SEL; i <= CTX_UPDATE_ALL; i++)
+ {
+ aSubPop2.InsertItem( i, aContextStrings[ST_UPDATE_SEL - ST_GLOBAL_CONTEXT_FIRST - CTX_UPDATE_SEL+ i] );
+ aSubPop2.SetHelpId(i, aHelpForMenu[i]);
+ }
+ aSubPop2.EnableItem(CTX_UPDATE_SEL, nEnableFlags&ENABLE_UPDATE_SEL);
+ aSubPop2.SetSelectHdl(LINK(this, SwGlobalTree, PopupHdl));
+
+ aSubPop1.InsertItem(CTX_INSERT_ANY_INDEX, aContextStrings[ST_INDEX - ST_GLOBAL_CONTEXT_FIRST]);
+ aSubPop1.SetHelpId(CTX_INSERT_ANY_INDEX, aHelpForMenu[CTX_INSERT_ANY_INDEX]);
+ aSubPop1.InsertItem(CTX_INSERT_FILE, aContextStrings[ST_FILE - ST_GLOBAL_CONTEXT_FIRST]);
+ aSubPop1.SetHelpId(CTX_INSERT_FILE, aHelpForMenu[CTX_INSERT_FILE]);
+ aSubPop1.InsertItem(CTX_INSERT_NEW_FILE, aContextStrings[ST_NEW_FILE - ST_GLOBAL_CONTEXT_FIRST]);
+ aSubPop1.SetHelpId(CTX_INSERT_NEW_FILE, aHelpForMenu[CTX_INSERT_NEW_FILE]);
+ aSubPop1.InsertItem(CTX_INSERT_TEXT, aContextStrings[ST_TEXT - ST_GLOBAL_CONTEXT_FIRST]);
+ aSubPop1.SetHelpId(CTX_INSERT_TEXT, aHelpForMenu[CTX_INSERT_TEXT]);
+
+
+ aPop.InsertItem(CTX_UPDATE, aContextStrings[ST_UPDATE - ST_GLOBAL_CONTEXT_FIRST]);
+ aPop.SetHelpId(CTX_UPDATE, aHelpForMenu[CTX_UPDATE]);
+ aPop.InsertItem(CTX_EDIT, aContextStrings[ST_EDIT_CONTENT - ST_GLOBAL_CONTEXT_FIRST]);
+ aPop.SetHelpId(CTX_EDIT, aHelpForMenu[CTX_EDIT]);
+ aPop.InsertItem(CTX_INSERT, aContextStrings[ST_INSERT - ST_GLOBAL_CONTEXT_FIRST]);
+ aPop.SetHelpId(CTX_INSERT, aHelpForMenu[CTX_INSERT]);
+ aPop.InsertSeparator() ;
+ aPop.InsertItem(CTX_DELETE, aContextStrings[ST_DELETE - ST_GLOBAL_CONTEXT_FIRST]);
+ aPop.SetHelpId(CTX_DELETE, aHelpForMenu[CTX_DELETE]);
+
+ //evtl. disablen
+ aSubPop1.EnableItem(CTX_INSERT_ANY_INDEX, nEnableFlags&ENABLE_INSERT_IDX );
+ aSubPop1.EnableItem(CTX_INSERT_TEXT, nEnableFlags&ENABLE_INSERT_TEXT);
+ aSubPop1.EnableItem(CTX_INSERT_FILE, nEnableFlags&ENABLE_INSERT_FILE);
+ aSubPop1.EnableItem(CTX_INSERT_NEW_FILE, nEnableFlags&ENABLE_INSERT_FILE);
+
+ aPop.EnableItem(CTX_UPDATE, nEnableFlags&ENABLE_UPDATE);
+ aPop.EnableItem(CTX_INSERT, nEnableFlags&ENABLE_INSERT_IDX);
+ aPop.EnableItem(CTX_EDIT, nEnableFlags&ENABLE_EDIT);
+ aPop.EnableItem(CTX_DELETE, nEnableFlags&ENABLE_DELETE);
+
+
+ aPop.SetPopupMenu( CTX_INSERT, &aSubPop1 );
+ aPop.SetPopupMenu( CTX_UPDATE, &aSubPop2 );
+ Link aLk = LINK(this, SwGlobalTree, PopupHdl );
+ aPop.SetSelectHdl(aLk);
+ aSubPop1.SetSelectHdl(aLk);
+ aSubPop2.SetSelectHdl(aLk);
+
+ aPop.Execute( this, rCEvt.GetMousePosPixel());
+ }
+ }
+ break;
+ default: bParent = TRUE;
+ }
+ if(bParent)
+ SvTreeListBox::Command(rCEvt);
+}
+/*-----------------16.06.97 10:41-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::TbxMenuHdl(USHORT nTbxId, ToolBox* pBox)
+{
+ USHORT nEnableFlags = GetEnableFlags();
+ if(FN_GLOBAL_OPEN == nTbxId)
+ {
+ PopupMenu *pMenu = new PopupMenu;
+ for (USHORT i = CTX_INSERT_ANY_INDEX; i <= CTX_INSERT_TEXT; i++)
+ {
+ pMenu->InsertItem( i, aContextStrings[ST_INDEX - ST_GLOBAL_CONTEXT_FIRST - CTX_INSERT_ANY_INDEX + i] );
+ pMenu->SetHelpId(i, aHelpForMenu[i] );
+ }
+ pMenu->EnableItem(CTX_INSERT_ANY_INDEX, nEnableFlags&ENABLE_INSERT_IDX );
+// pMenu->EnableItem(CTX_INSERT_CNTIDX, nEnableFlags&ENABLE_INSERT_IDX );
+// pMenu->EnableItem(CTX_INSERT_USRIDX, nEnableFlags&ENABLE_INSERT_IDX );
+ pMenu->EnableItem(CTX_INSERT_TEXT, nEnableFlags&ENABLE_INSERT_TEXT);
+ pMenu->EnableItem(CTX_INSERT_FILE, nEnableFlags&ENABLE_INSERT_FILE);
+ pMenu->EnableItem(CTX_INSERT_NEW_FILE, nEnableFlags&ENABLE_INSERT_FILE);
+ pMenu->SetSelectHdl(LINK(this, SwGlobalTree, PopupHdl));
+ pMenu->Execute( pBox, pBox->GetItemRect(nTbxId).BottomLeft());
+ delete pMenu;
+ pBox->EndSelection();
+ pBox->Invalidate();
+ }
+ else if(FN_GLOBAL_UPDATE == nTbxId)
+ {
+ PopupMenu *pMenu = new PopupMenu;
+ for (USHORT i = CTX_UPDATE_SEL; i <= CTX_UPDATE_ALL; i++)
+ {
+ pMenu->InsertItem( i, aContextStrings[ST_UPDATE_SEL - ST_GLOBAL_CONTEXT_FIRST - CTX_UPDATE_SEL+ i] );
+ pMenu->SetHelpId(i, aHelpForMenu[i] );
+ }
+ pMenu->EnableItem(CTX_UPDATE_SEL, nEnableFlags&ENABLE_UPDATE_SEL);
+ pMenu->SetSelectHdl(LINK(this, SwGlobalTree, PopupHdl));
+ pMenu->Execute( pBox, pBox->GetItemRect(nTbxId).BottomLeft());
+ delete pMenu;
+ pBox->EndSelection();
+ pBox->Invalidate();
+ }
+}
+/*-----------------16.06.97 11:02-------------------
+
+--------------------------------------------------*/
+USHORT SwGlobalTree::GetEnableFlags() const
+{
+ SvLBoxEntry* pEntry = FirstSelected();
+ USHORT nSelCount = (USHORT)GetSelectionCount();
+ USHORT nEntryCount = (USHORT)GetEntryCount();
+ SvLBoxEntry* pPrevEntry = pEntry ? Prev(pEntry) : 0;
+
+ USHORT nRet = 0;
+ if(nSelCount == 1 || !nEntryCount)
+ nRet |= ENABLE_INSERT_IDX|ENABLE_INSERT_FILE;
+ if(nSelCount == 1)
+ {
+ nRet |= ENABLE_EDIT;
+ if( ((SwGlblDocContent*)pEntry->GetUserData())->GetType() != GLBLDOC_UNKNOWN &&
+ (!pPrevEntry || ((SwGlblDocContent*)pPrevEntry->GetUserData())->GetType() != GLBLDOC_UNKNOWN))
+ nRet |= ENABLE_INSERT_TEXT;
+ }
+ else if(!nEntryCount)
+ {
+ nRet |= ENABLE_INSERT_TEXT;
+ }
+ if(nEntryCount)
+ nRet |= ENABLE_UPDATE|ENABLE_DELETE;
+ if(nSelCount)
+ nRet |= ENABLE_UPDATE_SEL;
+ return nRet;
+}
+
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::RequestHelp( const HelpEvent& rHEvt )
+{
+ BOOL bParent = TRUE;
+ Update(TRUE);
+ Display(TRUE);
+ if( rHEvt.GetMode() & HELPMODE_QUICK )
+ {
+ Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
+ SvLBoxEntry* pEntry = GetEntry( aPos );
+ const SwGlblDocContent* pCont = pEntry ?
+ (const SwGlblDocContent*)pEntry->GetUserData() : 0;
+ if( pCont && GLBLDOC_SECTION == pCont->GetType())
+ {
+ bParent = FALSE;
+ SvLBoxTab* pTab;
+ SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab );
+ if(pItem && SV_ITEM_ID_LBOXSTRING == pItem->IsA())
+ {
+ const SwSection* pSect = pCont->GetSection();
+ String sEntry = pSect->GetLinkFileName().GetToken(0, cTokenSeperator);
+ if(!pSect->IsConnectFlag())
+ sEntry.Insert(aContextStrings[ST_BROKEN_LINK - ST_GLOBAL_CONTEXT_FIRST], 0 );
+ Point aPos = GetEntryPos( pEntry );
+
+ aPos.X() = GetTabPos( pEntry, pTab );
+ Size aSize( pItem->GetSize( this, pEntry ) );
+
+ if((aPos.X() + aSize.Width()) > GetSizePixel().Width())
+ aSize.Width() = GetSizePixel().Width() - aPos.X();
+
+ aPos = OutputToScreenPixel(aPos);
+ Rectangle aItemRect( aPos, aSize );
+ if(Help::IsBalloonHelpEnabled())
+ {
+ aPos.X() += aSize.Width();
+ Help::ShowBalloon( this, aPos, aItemRect, sEntry );
+ }
+ else
+ Help::ShowQuickHelp( this, aItemRect, sEntry,
+ QUICKHELP_LEFT|QUICKHELP_VCENTER );
+ }
+ }
+ }
+
+ if(bParent)
+ SvTreeListBox::RequestHelp(rHEvt);
+}
+/*-----------------16.06.97 16:15-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::SelectHdl()
+{
+
+ USHORT nSelCount = (USHORT)GetSelectionCount();
+ SvLBoxEntry* pSel = FirstSelected();
+ USHORT nAbsPos = pSel ? (USHORT)GetModel()->GetAbsPos(pSel) : 0;
+ SwNavigationPI* pNavi = GetParentWindow();
+ BOOL bReadonly = !pActiveShell ||
+ pActiveShell->GetView().GetDocShell()->IsReadOnly();
+ pNavi->aGlobalToolBox.EnableItem(FN_GLOBAL_EDIT, nSelCount == 1 && !bReadonly);
+ pNavi->aGlobalToolBox.EnableItem(FN_GLOBAL_OPEN, nSelCount <= 1 && !bReadonly);
+ pNavi->aGlobalToolBox.EnableItem(FN_GLOBAL_UPDATE, GetEntryCount() > 0 && !bReadonly);
+ pNavi->aGlobalToolBox.EnableItem(FN_ITEM_UP,
+ nSelCount == 1 && nAbsPos && !bReadonly);
+ pNavi->aGlobalToolBox.EnableItem(FN_ITEM_DOWN,
+ nSelCount == 1 && nAbsPos < ((USHORT)GetEntryCount()) - 1 && !bReadonly);
+
+}
+/*-----------------16.06.97 16:15-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::DeselectHdl()
+{
+ SelectHdl();
+}
+
+/*-----------------17.06.97 13:11-------------------
+
+--------------------------------------------------*/
+DragDropMode SwGlobalTree::NotifyBeginDrag( SvLBoxEntry* pEntry)
+{
+ pDDSource = pEntry;
+ return SV_DRAGDROP_CTRL_MOVE;
+}
+
+/*-----------------21.06.97 12:44-------------------
+
+--------------------------------------------------*/
+long SwGlobalTree::GetTabPos( SvLBoxEntry*, SvLBoxTab* pTab)
+{
+ return pTab->GetPos() - GLBL_TABPOS_SUB;
+}
+
+/*-----------------12.06.97 09:38-------------------
+
+--------------------------------------------------*/
+BOOL SwGlobalTree::NotifyMoving( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pSource,
+ SvLBoxEntry*&,
+ ULONG&
+ )
+{
+ SvTreeList* pModel = GetModel();
+ USHORT nSource = (USHORT) pModel->GetAbsPos(pSource);
+ USHORT nDest = pTarget ? (USHORT) pModel->GetAbsPos(pTarget) : pSwGlblDocContents->Count();
+
+ if( pActiveShell->MoveGlobalDocContent(
+ *pSwGlblDocContents, nSource, nSource + 1, nDest ) &&
+ Update())
+ Display();
+ return FALSE;
+}
+/*-----------------12.06.97 09:39-------------------
+
+--------------------------------------------------*/
+BOOL SwGlobalTree::NotifyCopying( SvLBoxEntry* pTarget,
+ SvLBoxEntry* pEntry,
+ SvLBoxEntry*& rpNewParent,
+ ULONG& rNewChildPos
+ )
+{
+ return FALSE;
+}
+/*-----------------12.06.97 09:39-------------------
+
+--------------------------------------------------*/
+BOOL SwGlobalTree::NotifyQueryDrop( SvLBoxEntry* pEntry)
+{
+ return pEntry != 0;
+}
+/*-----------------12.06.97 09:39-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::BeginDrag( const Point& rPt)
+{
+ bIsInternalDrag = TRUE;
+ if(GetSelectionCount() == 1)
+ SvTreeListBox::BeginDrag(rPt);
+}
+/*-----------------12.06.97 09:39-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::EndDrag()
+{
+ bIsInternalDrag = FALSE;
+}
+
+/***************************************************************************
+ Beschreibung: Wird ein Ctrl+DoubleClick in einen freien Bereich ausgefuehrt,
+ * dann soll die Basisfunktion des Controls gerufen werden
+***************************************************************************/
+void SwGlobalTree::MouseButtonDown( const MouseEvent& rMEvt )
+{
+ Point aPos( rMEvt.GetPosPixel());
+ SvLBoxEntry* pEntry = GetEntry( aPos, TRUE );
+ if( !pEntry && rMEvt.IsLeft() && rMEvt.IsMod1() && (rMEvt.GetClicks() % 2) == 0)
+ Control::MouseButtonDown( rMEvt );
+ else
+ SvTreeListBox::MouseButtonDown( rMEvt );
+}
+
+/*-----------------12.06.97 13:08-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::GetFocus()
+{
+ if(Update())
+ Display();
+ SvTreeListBox::GetFocus();
+}
+
+/*-----------------12.06.97 12:34-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::KeyInput(const KeyEvent& rKEvt)
+{
+ const KeyCode aCode = rKEvt.GetKeyCode();
+ if(aCode.GetCode() == KEY_RETURN)
+ {
+ switch(aCode.GetModifier())
+ {
+ case KEY_MOD2:
+ // Boxen umschalten
+ GetParentWindow()->ToggleTree();
+ break;
+ }
+ }
+ else
+ SvTreeListBox::KeyInput(rKEvt);
+}
+
+/*-----------------17.06.97 11:59-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::Clear()
+{
+ pEmphasisEntry = 0;
+ SvTreeListBox::Clear();
+}
+/*-----------------12.06.97 12:38-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::Display(BOOL bOnlyUpdateUserData)
+{
+ if(!bIsImageListInitialized)
+ {
+ aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
+ bIsImageListInitialized = TRUE;
+ }
+ USHORT nCount = pSwGlblDocContents->Count();
+ if(bOnlyUpdateUserData && GetEntryCount() == pSwGlblDocContents->Count())
+ {
+ SvLBoxEntry* pEntry = First();
+ for( USHORT i = 0; i < nCount; i++)
+ {
+ SwGlblDocContentPtr pCont = pSwGlblDocContents->GetObject(i);
+ pEntry->SetUserData(pCont);
+ pEntry = Next(pEntry);
+ }
+ }
+ else
+ {
+ SetUpdateMode( FALSE );
+ SvLBoxEntry* pOldSelEntry = FirstSelected();
+ String sEntryName; // Name des Eintrags
+ USHORT nSelPos = USHRT_MAX;
+ if(pOldSelEntry)
+ {
+ sEntryName = GetEntryText(pOldSelEntry);
+ nSelPos = (USHORT)GetModel()->GetAbsPos(pOldSelEntry);
+ }
+ Clear();
+ if(!pSwGlblDocContents)
+ Update();
+
+ SvLBoxEntry* pSelEntry = 0;
+ for( USHORT i = 0; i < nCount; i++)
+ {
+ SwGlblDocContentPtr pCont = pSwGlblDocContents->GetObject(i);
+ String sEntry;
+ Image aImage;
+ switch( pCont->GetType() )
+ {
+ case GLBLDOC_UNKNOWN:
+ {
+ sEntry = aContextStrings[ST_TEXT - ST_GLOBAL_CONTEXT_FIRST];
+ aImage = aEntryImages.GetImage(SID_SW_START + GLOBAL_CONTENT_TEXT);
+ }
+ break;
+ case GLBLDOC_TOXBASE:
+ {
+ const SwTOXBase* pBase = pCont->GetTOX();
+ sEntry = pBase->GetTitle();
+ aImage = aEntryImages.GetImage(SID_SW_START + CONTENT_TYPE_INDEX);
+ }
+ break;
+ case GLBLDOC_SECTION:
+ {
+ const SwSection* pSect = pCont->GetSection();
+ sEntry = pSect->GetName();
+ aImage = aEntryImages.GetImage(SID_SW_START + CONTENT_TYPE_REGION);
+ }
+ break;
+ }
+ SvLBoxEntry* pEntry = InsertEntry(sEntry, aImage, aImage,
+ 0, FALSE, LIST_APPEND, pCont);
+ if(sEntry == sEntryName)
+ {
+ pSelEntry = pEntry;
+ }
+ }
+ if(pSelEntry)
+ {
+ Select(pSelEntry);
+ }
+ else if(nSelPos != USHRT_MAX && nSelPos < nCount)
+ {
+ Select(GetEntry(nSelPos));
+ }
+ else if(nCount)
+ Select(First());
+ else
+ SelectHdl();
+ SetUpdateMode( TRUE );
+ }
+}
+
+/*-----------------13.06.97 10:32-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::InsertRegion( const SwGlblDocContent* pCont,
+ const String* pFileName )
+{
+ String sFileName;
+ SwView *pView = ::GetActiveView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ String sFilePassword;
+ if(!pFileName)
+ {
+ String sFilterName;
+ if( GetFileFilterNameDlg( *this, sFileName, &sFilePassword, &sFilterName ))
+ {
+ sFileName += cTokenSeperator;
+ sFileName += sFilterName;
+ sFileName += cTokenSeperator;
+ }
+ }
+ else if(pFileName->Len())
+ {
+ sFileName = URIHelper::SmartRelToAbs( *pFileName );
+ }
+
+ if(sFileName.Len())
+ {
+ INetURLObject aFileUrl(sFileName);
+ String sSectionName(aFileUrl.GetLastName().GetToken(0, cTokenSeperator));
+ USHORT nSectCount = rSh.GetSectionFmtCount();
+ String sTempSectionName(sSectionName);
+ USHORT nAddNumber = 0;
+ USHORT nCount = 0;
+ // evtl : und Index anhaengen, wenn der Bereichsname schon vergeben ist
+ while(nCount < nSectCount)
+ {
+ const SwSectionFmt& rFmt = rSh.GetSectionFmt(nCount);
+ if( rFmt.GetSection()->GetName() == sTempSectionName &&
+ rFmt.IsInNodesArr())
+ {
+ nCount = 0;
+ nAddNumber++;
+ sTempSectionName = sSectionName;
+ sTempSectionName += ':';
+ sTempSectionName += String::CreateFromInt32( nAddNumber );
+ }
+ else
+ nCount++;
+ }
+ if(nAddNumber)
+ sSectionName = sTempSectionName;
+
+ SwSection aSection(CONTENT_SECTION, sSectionName);
+ aSection.SetProtect(TRUE);
+ aSection.SetHidden(FALSE);
+
+ aSection.SetLinkFileName(sFileName);
+ aSection.SetType( FILE_LINK_SECTION);
+ aSection.SetLinkFilePassWd( sFilePassword );
+
+ if(pCont)
+ rSh.InsertGlobalDocContent( *pCont, aSection );
+ else
+ {
+ SvLBoxEntry* pLast = (SvLBoxEntry*)LastVisible();
+ rSh.StartAction();
+ rSh.InsertGlobalDocContent( *(SwGlblDocContent*)pLast->GetUserData(),
+ aSection );
+ Update();
+ USHORT nEntryCount = (USHORT)GetEntryCount();
+ if( rSh.MoveGlobalDocContent(
+ *pSwGlblDocContents, nEntryCount, nEntryCount + 1, nEntryCount - 1) &&
+ Update())
+ rSh.EndAction();
+ Display();
+
+ }
+ }
+}
+
+/*-----------------18.06.97 12:42-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::EditContent(const SwGlblDocContent* pCont )
+{
+ USHORT nSlot = 0;
+ switch( pCont->GetType() )
+ {
+ case GLBLDOC_UNKNOWN:
+ pActiveShell->GetView().GetEditWin().GrabFocus();
+ break;
+ case GLBLDOC_TOXBASE:
+ {
+ const SwTOXBase* pBase = pCont->GetTOX();
+ if(pBase)
+ nSlot = FN_INSERT_MULTI_TOX;
+ }
+ break;
+ case GLBLDOC_SECTION:
+ {
+ OpenDoc(pCont);
+
+ nSlot = 0;
+ pCont = 0;
+ }
+ break;
+ }
+ if(pCont)
+ GotoContent(pCont);
+ if(nSlot)
+ {
+ pActiveShell->GetView().GetViewFrame()->GetDispatcher()->Execute(nSlot);
+ if(Update())
+ Display();
+ }
+}
+
+/*-----------------13.06.97 14:22-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlobalTree, PopupHdl, Menu* , pMenu)
+{
+ USHORT nId = pMenu->GetCurItemId();
+ SvLBoxEntry* pEntry = FirstSelected();
+ SwGlblDocContent* pCont = pEntry ? (SwGlblDocContent*)pEntry->GetUserData() : 0;
+ // wird waehrend des Dialogs ein RequestHelp gerufen,
+ // dann geht der Content verloren. Deshalb wird hier eine
+ // Kopie angelegt, in der nur die DocPos richtig gesetzt ist.
+ SwGlblDocContent* pContCopy = 0;
+ if(pCont)
+ pContCopy = new SwGlblDocContent(pCont->GetDocPos());
+ SfxDispatcher& rDispatch = *pActiveShell->GetView().GetViewFrame()->GetDispatcher();
+ USHORT nSlot = 0;;
+ switch( nId )
+ {
+ case CTX_UPDATE_SEL:
+ {
+ // zwei Durchlaeufe: zuerst die Bereiche, dann die Verzeichnisse
+ // aktualisieren
+ SvLBoxEntry* pEntry = FirstSelected();
+ while( pEntry )
+ {
+ SwGlblDocContent* pCont = (SwGlblDocContent*)pEntry->GetUserData();
+ if(GLBLDOC_SECTION == pCont->GetType() &&
+ pCont->GetSection()->IsConnected())
+ {
+ ((SwSection*)pCont->GetSection())->UpdateNow();
+ }
+
+ pEntry = NextSelected(pEntry);
+ }
+ pEntry = FirstSelected();
+ while( pEntry )
+ {
+ SwGlblDocContent* pCont = (SwGlblDocContent*)pEntry->GetUserData();
+ if(GLBLDOC_TOXBASE == pCont->GetType())
+ pActiveShell->UpdateTableOf(*pCont->GetTOX());
+ pEntry = NextSelected(pEntry);
+ }
+
+ }
+ break;
+ case CTX_UPDATE_INDEX:
+ {
+ nSlot = FN_UPDATE_TOX;
+ }
+ break;
+ case CTX_UPDATE_LINK:
+ case CTX_UPDATE_ALL:
+ {
+ pActiveShell->GetLinkManager().UpdateAllLinks(TRUE);
+ if(CTX_UPDATE_ALL == nId)
+ nSlot = FN_UPDATE_TOX;
+ pCont = 0;
+ }
+ break;
+ case CTX_EDIT:
+ {
+ DBG_ASSERT(pCont, "Edit ohne Entry ? " )
+ EditContent(pCont);
+ }
+ break;
+ case CTX_DELETE:
+ {
+ // sind mehrere Eintraege selektiert, dann muss nach jedem delete
+ // das Array neu gefuellt werden. Damit man sich nichts merken muss,
+ // beginnt das Loeschen am Ende
+ SvLBoxEntry* pEntry = LastSelected();
+ SwGlblDocContents* pTempContents = 0;
+ pActiveShell->StartAction();
+ while(pEntry)
+ {
+ pActiveShell->DeleteGlobalDocContent(
+ pTempContents ? *pTempContents : *pSwGlblDocContents,
+ (USHORT)GetModel()->GetAbsPos(pEntry));
+ pEntry = PrevSelected(pEntry);
+ if(pEntry)
+ {
+ pTempContents = new SwGlblDocContents;
+ pActiveShell->GetGlobalDocContent(*pTempContents);
+ }
+ }
+ delete pTempContents;
+ pActiveShell->EndAction();
+ pCont = 0;
+ }
+ break;
+ case CTX_INSERT_ANY_INDEX:
+// case CTX_INSERT_CNTIDX:
+// case CTX_INSERT_USRIDX:
+ {
+ if(pContCopy)
+ {
+ SfxItemSet aSet(pActiveShell->GetView().GetPool(),
+ RES_COL, RES_COL,
+ RES_BACKGROUND, RES_BACKGROUND,
+ RES_FRM_SIZE, RES_FRM_SIZE,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ RES_LR_SPACE, RES_LR_SPACE,
+ FN_PARAM_TOX_TYPE, FN_PARAM_TOX_TYPE,
+ 0);
+
+ SwMultiTOXTabDialog* pDlg = new SwMultiTOXTabDialog(this, aSet,
+ *pActiveShell,
+ 0,
+ USHRT_MAX,
+ TRUE);
+
+ if(RET_OK == pDlg->Execute())
+ {
+ SwTOXDescription& rDesc = pDlg->GetTOXDescription(
+ pDlg->GetCurrentTOXType());
+ SwForm* pForm = pDlg->GetForm(pDlg->GetCurrentTOXType());
+ SwTOXMgr aMgr(pActiveShell);
+ SwTOXBase* pToInsert = 0;
+ if(aMgr.UpdateOrInsertTOX(rDesc, &pToInsert, pDlg->GetOutputItemSet()))
+ pActiveShell->InsertGlobalDocContent( *pContCopy, *pToInsert );
+ }
+ pCont = 0;
+ delete pDlg;
+ }
+ }
+ break;
+ case CTX_INSERT_FILE:
+ {
+ InsertRegion(pContCopy);
+ pCont = 0;
+ }
+ break;
+ case CTX_INSERT_NEW_FILE:
+ {
+ SfxViewFrame* pGlobFrm = pActiveShell->GetView().GetViewFrame();
+ SwGlobalFrameListener_Impl aFrmListener(*pGlobFrm);
+
+ USHORT nEntryPos = pEntry ? GetModel()->GetAbsPos(pEntry) : USHRT_MAX;
+ // neues Dok anlegen
+ SfxStringItem aFactory(SID_NEWDOCDIRECT,
+ SwDocShell::Factory().GetFilterContainer()->GetName());
+
+ const SfxFrameItem* pItem = (SfxFrameItem*)
+ rDispatch.Execute(SID_NEWDOCDIRECT,
+ SFX_CALLMODE_SYNCHRON, &aFactory, 0L);
+
+ // sichern unter
+ SfxFrame* pFrm = pItem ? pItem->GetFrame() : 0;
+ SfxViewFrame* pFrame = pFrm ? pFrm->GetCurrentViewFrame() : 0;
+ if( pFrame )
+ {
+ const SfxBoolItem* pBool = (const SfxBoolItem*)
+ pFrame->GetDispatcher()->Execute(
+ SID_SAVEASDOC, SFX_CALLMODE_SYNCHRON );
+ SfxObjectShell& rObj = *pFrame->GetObjectShell();
+ const SfxMedium* pMedium = rObj.GetMedium();
+ String sNewFile(pMedium->GetURLObject().GetMainURL());
+ // Bereich mit dem Dok-Namen einfgen
+ // eigenes Dok in den Vordergrund
+
+ if(aFrmListener.IsValid())
+ {
+ pGlobFrm->ToTop();
+ // durch das Update sind die Eintraege invalid
+ if(nEntryPos != USHRT_MAX)
+ {
+ Update();
+ Display();
+ Select(GetModel()->GetEntryAtAbsPos(nEntryPos));
+ pEntry = FirstSelected();
+ pCont = pEntry ? (SwGlblDocContent*)pEntry->GetUserData() : 0;
+ }
+ else
+ {
+ pEntry = 0;
+ pCont = 0;
+ }
+ if(pBool->GetValue())
+ {
+ InsertRegion(pCont, &sNewFile);
+ pFrame->ToTop();
+ }
+ else
+ pFrame->GetDispatcher()->Execute(SID_CLOSEWIN,
+ SFX_CALLMODE_SYNCHRON);
+ }
+ else
+ {
+ pFrame->ToTop();
+ return TRUE;
+ }
+ }
+ }
+ break;
+ case CTX_INSERT_TEXT:
+ {
+ if(pCont)
+ pActiveShell->InsertGlobalDocContent(*pCont);
+ else
+ {
+ pActiveShell->SplitNode(); // leeres Dokument
+ pActiveShell->Up();
+ }
+ pActiveShell->GetView().GetEditWin().GrabFocus();
+ }
+ break;
+ case CTX_UPDATE:
+ pCont = 0;
+ break;
+ default:;
+ // hier passiert nichts
+ }
+ if(pCont)
+ GotoContent(pCont);
+ if(nSlot)
+ rDispatch.Execute(nSlot);
+ if(Update())
+ Display();
+ delete pContCopy;
+ return TRUE;
+}
+
+/*-----------------16.06.97 07:57-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlobalTree, Timeout, Timer*, EMPTYARG )
+{
+ if(!HasFocus()&&Update())
+ Display();
+ return 0;
+}
+
+/*-----------------13.06.97 16:56-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::GotoContent(const SwGlblDocContent* pCont)
+{
+ pActiveShell->EnterStdMode();
+
+ switch( pCont->GetType() )
+ {
+ case GLBLDOC_UNKNOWN:
+ pActiveShell->GotoGlobalDocContent(*pCont);
+ break;
+ case GLBLDOC_TOXBASE:
+ {
+ String sName = pCont->GetTOX()->GetTOXName();
+ if (!pActiveShell->GotoNextTOXBase(&sName))
+ pActiveShell->GotoPrevTOXBase(&sName);
+ }
+ break;
+ case GLBLDOC_SECTION:
+ break;
+ }
+
+}
+/*-----------------16.06.97 07:42-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::Show()
+{
+ aUpdateTimer.Start();
+ SvTreeListBox::Show();
+}
+/*-----------------16.06.97 07:42-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::Hide()
+{
+ aUpdateTimer.Stop();
+ SvTreeListBox::Hide();
+}
+/*-----------------18.06.97 10:02-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::ExecCommand(USHORT nCmd)
+{
+ SvLBoxEntry* pEntry = FirstSelected();
+ DBG_ASSERT(pEntry, "gleich knalltïs")
+ if(FN_GLOBAL_EDIT == nCmd)
+ {
+ const SwGlblDocContent* pCont = (const SwGlblDocContent*)
+ pEntry->GetUserData();
+ EditContent(pCont);
+ }
+ else
+ {
+ if(GetSelectionCount() == 1)
+ {
+ BOOL bMove = FALSE;
+ USHORT nSource = (USHORT)GetModel()->GetAbsPos(pEntry);
+ USHORT nDest = nSource;
+ switch(nCmd)
+ {
+ case FN_ITEM_DOWN:
+ {
+ USHORT nEntryCount = (USHORT)GetEntryCount();
+ bMove = nEntryCount > nSource + 1;
+ nDest+= 2;
+ }
+ break;
+ case FN_ITEM_UP:
+ {
+ if(nSource)
+ bMove = 0 != nSource;
+ nDest--;
+ }
+ break;
+ }
+ if( bMove && pActiveShell->MoveGlobalDocContent(
+ *pSwGlblDocContents, nSource, nSource + 1, nDest ) &&
+ Update())
+ Display();
+ }
+ }
+}
+
+/*-----------------16.06.97 07:43-------------------
+
+--------------------------------------------------*/
+BOOL SwGlobalTree::Update(BOOL bHard)
+{
+ SwView* pActView = ::GetActiveView();
+ BOOL bRet = FALSE;
+ if(pActView)
+ {
+ const SwWrtShell* pOldShell = pActiveShell;
+ pActiveShell = pActView->GetWrtShellPtr();
+ if(pActiveShell != pOldShell)
+ bRet = TRUE;
+ if(!pSwGlblDocContents)
+ {
+ pSwGlblDocContents = new SwGlblDocContents;
+ bRet = TRUE;
+ pActiveShell->GetGlobalDocContent(*pSwGlblDocContents);
+ }
+ else
+ {
+ BOOL bCopy = FALSE;
+ SwGlblDocContents* pTempContents = new SwGlblDocContents;
+ pActiveShell->GetGlobalDocContent(*pTempContents);
+ if(pTempContents->Count() != pSwGlblDocContents->Count() ||
+ pTempContents->Count() != GetEntryCount())
+ {
+ bRet = TRUE;
+ bCopy = TRUE;
+ }
+ else
+ {
+ for(USHORT i = 0; i < pTempContents->Count() && !bCopy; i++)
+ {
+ SwGlblDocContent* pLeft = pTempContents->GetObject(i);
+ SwGlblDocContent* pRight = pSwGlblDocContents->GetObject(i);
+ GlobalDocContentType eType = pLeft->GetType();
+ SvLBoxEntry* pEntry = GetEntry(i);
+ String sTemp = GetEntryText(pEntry);
+ if(eType != pRight->GetType() ||
+ eType == GLBLDOC_SECTION &&
+ pLeft->GetSection()->GetName() != sTemp ||
+ eType == GLBLDOC_TOXBASE && pLeft->GetTOX()->GetTitle() != sTemp)
+ bCopy = bRet = TRUE;
+ }
+ }
+ if(bCopy || bHard)
+ {
+ pSwGlblDocContents->DeleteAndDestroy(0, pSwGlblDocContents->Count());
+ for(USHORT i = 0; i < pTempContents->Count(); i++)
+ {
+ pSwGlblDocContents->Insert(pTempContents->GetObject(i));
+ }
+ for(i = pTempContents->Count(); i; i--)
+ pTempContents->Remove(i - 1);
+
+ }
+ delete pTempContents;
+ }
+
+ }
+ else
+ {
+ Clear();
+ if(pSwGlblDocContents)
+ pSwGlblDocContents->DeleteAndDestroy(0, pSwGlblDocContents->Count());
+ }
+ // hier muss noch eine Veraenderungspruefung rein!
+ return bRet;
+}
+
+/*-----------------25.06.97 16:20-------------------
+
+--------------------------------------------------*/
+void SwGlobalTree::OpenDoc(const SwGlblDocContent* pCont)
+{
+ String sFileName(pCont->GetSection()->GetLinkFileName().GetToken(0, cTokenSeperator));
+ BOOL bFound = FALSE;
+ const SfxObjectShell* pCurr = SfxObjectShell::GetFirst();
+ while( !bFound && pCurr )
+ {
+ if(pCurr->GetMedium() &&
+ pCurr->GetMedium()->GetURLObject().GetMainURL() == sFileName)
+ {
+ bFound = TRUE;
+ SwGlobalTree::SetShowShell(pCurr);
+ Application::PostUserEvent( STATIC_LINK(
+ this, SwGlobalTree, ShowFrameHdl ) );
+ pCurr = 0;
+ }
+ else
+ pCurr = SfxObjectShell::GetNext(*pCurr);
+ }
+ if(!bFound)
+ {
+ SfxStringItem aURL(SID_FILE_NAME,
+ sFileName);
+ SfxBoolItem aReadOnly(SID_DOC_READONLY, FALSE);
+ SfxStringItem aReferer(SID_REFERER, pActiveShell->GetView().GetDocShell()->GetTitle());
+ pActiveShell->GetView().GetViewFrame()->GetDispatcher()->
+ Execute(SID_OPENDOC, SFX_CALLMODE_ASYNCHRON,
+ &aURL, &aReadOnly, &aReferer, 0);
+ }
+}
+
+/*-----------------25.06.97 16:08-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwGlobalTree, DoubleClickHdl, SwGlobalTree *, EMPTYARG )
+{
+ SvLBoxEntry* pEntry = GetCurEntry();
+ SwGlblDocContent* pCont = (SwGlblDocContent*)pEntry->GetUserData();
+ if(pCont->GetType() == GLBLDOC_SECTION)
+ OpenDoc(pCont);
+ else
+ {
+ GotoContent(pCont);
+ pActiveShell->GetView().GetEditWin().GrabFocus();
+ }
+ return 0;
+}
+
+/*-----------------07.10.97 08:09-------------------
+
+--------------------------------------------------*/
+IMPL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, SwGlobalTree*, EMPTYARG)
+{
+ if(SwGlobalTree::GetShowShell())
+ SfxViewFrame::GetFirst(SwGlobalTree::GetShowShell())->ToTop();
+ SwGlobalTree::SetShowShell(0);
+ return 0;
+}
+/* -----------------04.11.98 10:43-------------------
+ *
+ * --------------------------------------------------*/
+void SwGlobalTree::InitEntry(SvLBoxEntry* pEntry,
+ const XubString& rStr ,const Image& rImg1,const Image& rImg2)
+{
+ USHORT nColToHilite = 1; //0==Bitmap;1=="Spalte1";2=="Spalte2"
+ SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2 );
+ SvLBoxString* pCol = (SvLBoxString*)pEntry->GetItem( nColToHilite );
+ SwLBoxString* pStr = new SwLBoxString( pEntry, 0, pCol->GetText() );
+ pEntry->ReplaceItem( pStr, nColToHilite );
+}
+/* -----------------04.11.98 10:39-------------------
+ *
+ * --------------------------------------------------*/
+
+void SwLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
+ SvLBoxEntry* pEntry )
+{
+ SwGlblDocContent* pCont = (SwGlblDocContent*)pEntry->GetUserData();
+ const SwSection* pSect;
+ if(pCont->GetType() == GLBLDOC_SECTION &&
+ !(pSect = pCont->GetSection())->IsConnectFlag() )
+ {
+ Font aOldFont( rDev.GetFont());
+ Font aFont(aOldFont);
+ Color aCol( COL_LIGHTRED );
+ aFont.SetColor( aCol );
+ rDev.SetFont( aFont );
+ rDev.DrawText( rPos, GetText() );
+ rDev.SetFont( aOldFont );
+ }
+ else
+ SvLBoxString::Paint( rPos, rDev, nFlags, pEntry);
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.57 2000/09/18 16:06:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.56 2000/09/07 15:59:35 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.55 2000/09/06 09:57:09 os
+ #78501# force scrolling in QueryDrop
+
+ Revision 1.54 2000/08/24 10:42:23 os
+ #78054# survive closing of master document while SaveAs dialog is active
+
+ Revision 1.53 2000/07/03 08:54:59 jp
+ must changes for VCL
+
+ Revision 1.52 2000/06/26 13:12:59 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.51 2000/05/23 19:54:20 jp
+ Bugfixes for Unicode
+
+ Revision 1.50 2000/03/23 14:59:30 os
+ #74356# goto index: use name - not title
+
+ Revision 1.49 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.48 2000/02/29 11:05:46 os
+ #73599# PullDownMenu: Ids/HelpIds corrected
+
+ Revision 1.47 2000/02/15 10:33:10 os
+ #72902# diable navigator in readonly documents
+
+ Revision 1.46 2000/02/11 15:00:36 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.45 2000/02/07 14:39:11 os
+ #72747# insert index into global documents
+
+ Revision 1.44 1999/12/09 12:29:12 os
+ #70284# show Bitmaps in hyperlink insert dialog# content.cxx glbltree.cxx navipi.hrc navipi.src
+
+ Revision 1.43 1999/09/10 08:36:15 os
+ GetTOXDescription with TOXTypes param
+
+ Revision 1.42 1999/08/25 13:24:42 OS
+ use SwMultiTOXTabDialog
+
+
+ Rev 1.41 25 Aug 1999 15:24:42 OS
+ use SwMultiTOXTabDialog
+
+ Rev 1.40 20 May 1999 11:02:24 OS
+ Ctrl-DoubleClick an Control weiterleiten - Docking
+
+ Rev 1.39 21 Apr 1999 09:42:58 OS
+ #65050# GPF im Update ohne View behoben
+
+ Rev 1.38 29 Mar 1999 12:23:38 OS
+ #63929# neuer Verzeichnisdialog vollstaendig
+
+ Rev 1.37 12 Nov 1998 15:07:26 JP
+ Bug #54342#: auch bei GlobalDocs das Filepasswort an die Section uebertragen
+
+ Rev 1.36 12 Nov 1998 14:27:20 OS
+ #59271# Referer mitschicken
+
+ Rev 1.35 04 Nov 1998 13:22:18 OS
+ #58673# Existenzanzeige der Teildokumente farbig
+
+ Rev 1.34 03 Nov 1998 14:39:22 OS
+ #58673# Existenzanzeige fuer Global-Teildokumente
+
+ Rev 1.33 02 Jul 1998 16:57:08 OM
+ #46638# Keine Grafiken auf Navigator droppen
+
+ Rev 1.32 29 Jun 1998 17:52:42 TJ
+ include
+
+ Rev 1.31 31 Mar 1998 15:30:44 OS
+ SetReadonlyUI von IsAllProtect abhaengig #49077#
+
+ Rev 1.30 13 Feb 1998 14:16:36 JP
+ statt selbst den InserDocDialog zu rufen, die neue Funktion GetFileFilterNameDlg rufen
+
+ Rev 1.29 23 Jan 1998 16:05:48 MA
+ includes
+
+ Rev 1.28 16 Jan 1998 14:18:46 OS
+ #46660# Text im QueryDrop ablehnen; #46636# nach Doppelclick Focus ins Doc
+
+ Rev 1.27 16 Jan 1998 11:03:06 OS
+ #46637# per DnD auch am Ende einfuegen
+ #46631# HTML nicht-readonly oeffnen
+
+ Rev 1.26 19 Dec 1997 09:06:50 OS
+ Change: UsrData im InsertEntry uebergben
+
+ Rev 1.25 21 Nov 1997 12:10:14 MA
+ includes
+
+ Rev 1.24 03 Nov 1997 13:59:24 MA
+ precomp entfernt
+
+ Rev 1.23 07 Oct 1997 08:36:32 OS
+ asynchrones Anzeigen der Dokumente, damit auch nicht-SW-Docs 'verknuepft' werden koennen #44346#
+
+ Rev 1.22 04 Sep 1997 17:15:56 MA
+ includes
+
+ Rev 1.21 29 Aug 1997 15:57:32 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.20 29 Aug 1997 14:00:26 OS
+ DLL-Umbau
+
+ Rev 1.19 15 Aug 1997 12:16:06 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.18 08 Aug 1997 17:25:30 OM
+ Headerfile-Umstellung
+
+ Rev 1.17 23 Jul 1997 21:44:58 HJS
+ includes
+
+ Rev 1.16 18 Jul 1997 17:28:26 OS
+ Display fuer Update der UserData
+
+ Rev 1.15 18 Jul 1997 16:33:40 OS
+ hartes Update im RequestHelp #41845#
+
+ Rev 1.14 16 Jul 1997 14:12:34 OS
+ neues Dok: da kommt ein FrameItem, kein ViewFrameItem #41726#
+
+ Rev 1.13 15 Jul 1997 16:47:06 OS
+ HeplIds fuer PopUps
+
+ Rev 1.12 09 Jul 1997 17:45:30 HJS
+ includes
+
+ Rev 1.11 03 Jul 1997 16:25:20 OS
+ Update: nicht mit alten Sections, sondern mit ListBox-Inhalten vergleichen
+
+ Rev 1.10 02 Jul 1997 14:11:54 OS
+ InsertRegion: Token fuer Bereichsnamen herausfiltern
+
+ Rev 1.9 01 Jul 1997 09:43:44 OS
+ mind. den ersten Eintrag selektieren
+
+ Rev 1.8 27 Jun 1997 08:15:50 OS
+ SV-Defizit umpopoelt: nur die erste FileList ist echt
+
+ Rev 1.7 25 Jun 1997 20:35:38 HJS
+ includes
+
+ Rev 1.6 25 Jun 1997 16:37:18 OS
+ per Doppelclick Textposition anspringen bzw. gelinktes Doc laden
+
+ Rev 1.5 25 Jun 1997 08:59:38 OS
+ Neue Datei fuer Globaldokument
+
+ Rev 1.4 22 Jun 1997 15:36:32 OS
+ Drop von File-Listen
+
+ Rev 1.3 21 Jun 1997 14:12:22 OS
+ Bereiche mit Dateinamen versehen, RequsestHelp entsprechend impl.
+
+ Rev 1.2 19 Jun 1997 17:35:58 OS
+ Reste Globaldokumente
+
+ Rev 1.1 19 Jun 1997 11:04:58 OS
+ Update impl.
+
+ Rev 1.0 18 Jun 1997 13:07:18 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/utlui/gloslst.cxx b/sw/source/ui/utlui/gloslst.cxx
new file mode 100644
index 000000000000..6cc3200e9cd2
--- /dev/null
+++ b/sw/source/ui/utlui/gloslst.cxx
@@ -0,0 +1,758 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloslst.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#define _SVSTDARR_STRINGSDTOR
+#define _SVSTDARR_STRINGSISORTDTOR
+#define _SVSTDARR_STRINGS
+#include <svtools/svstdarr.hxx>
+
+#ifndef _SV_DIALOG_HXX //autogen
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SV_BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _SFX_INIMGR_HXX
+#include <sfx2/inimgr.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _GLOSLST_HXX
+#include <gloslst.hxx>
+#endif
+
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _GLOSLST_HRC
+#include <gloslst.hrc>
+#endif
+
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UCB_XCOMMANDENVIRONMENT_HPP_
+#include <com/sun/star/ucb/XCommandEnvironment.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_DATETIME_HPP_
+#include <com/sun/star/util/DateTime.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XRESULTSET_HPP_
+#include <com/sun/star/sdbc/XResultSet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XROW_HPP_
+#include <com/sun/star/sdbc/XRow.hpp>
+#endif
+
+#ifdef DEBUG
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSETINFO_HPP_
+#include <com/sun/star/beans/XPropertySetInfo.hpp>
+#endif
+#endif
+
+#ifndef _UCBHELPER_CONTENT_HXX
+#include <ucbhelper/content.hxx>
+#endif
+
+#ifndef _SHL_HXX
+#include <tools/shl.hxx>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::util;
+using namespace ::com::sun::star::ucb;
+using namespace ::rtl;
+
+#define STRING_DELIM (char)0x0A
+#define GLOS_TIMEOUT 30000 // alle 30 s updaten
+#define FIND_MAX_GLOS 20
+
+
+struct TripleString
+{
+ String sGroup;
+ String sBlock;
+ String sShort;
+};
+
+typedef TripleString* TripleStringPtr;
+SV_DECL_PTRARR_DEL( TripleStrings, TripleStringPtr, 0, 4 )
+SV_IMPL_PTRARR( TripleStrings, TripleStringPtr )
+
+class SwGlossDecideDlg : public ModalDialog
+{
+ OKButton aOk;
+ CancelButton aCancel;
+ HelpButton aHelp;
+ ListBox aListLB;
+ GroupBox aGroup;
+
+ DECL_LINK(DoubleClickHdl, ListBox*);
+ DECL_LINK(SelectHdl, ListBox*);
+
+ public:
+ SwGlossDecideDlg(Window* pParent);
+ ListBox& GetListBox() {return aListLB;}
+};
+
+/*-----------------21.01.97 13.25-------------------
+
+--------------------------------------------------*/
+
+SwGlossDecideDlg::SwGlossDecideDlg(Window* pParent) :
+ ModalDialog(pParent, SW_RES(DLG_GLOSSARY_DECIDE_DLG)),
+ aOk(this, ResId(PB_OK)),
+ aCancel(this, ResId(PB_CANCEL)),
+ aHelp(this, ResId(PB_HELP)),
+ aListLB(this, ResId(LB_LIST)),
+ aGroup(this, ResId(GB_GLOSS))
+{
+ FreeResource();
+ aListLB.SetDoubleClickHdl(LINK(this, SwGlossDecideDlg, DoubleClickHdl));
+ aListLB.SetSelectHdl(LINK(this, SwGlossDecideDlg, SelectHdl));
+}
+
+/*-----------------21.01.97 13.25-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK(SwGlossDecideDlg, DoubleClickHdl, ListBox*, EMPTYARG)
+{
+ EndDialog(RET_OK);
+ return 0;
+}
+/*-----------------21.01.97 13.29-------------------
+
+--------------------------------------------------*/
+
+IMPL_LINK(SwGlossDecideDlg, SelectHdl, ListBox*, EMPTYARG)
+{
+ aOk.Enable(LISTBOX_ENTRY_NOTFOUND != aListLB.GetSelectEntryPos());
+ return 0;
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+SwGlossaryList::SwGlossaryList() :
+ bFilled(FALSE),
+ sPath( SFX_INIMANAGER()->Get( SFX_KEY_GLOSSARY_PATH ) )
+{
+ SetTimeout(GLOS_TIMEOUT);
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+SwGlossaryList::~SwGlossaryList()
+{
+ ClearGroups();
+}
+
+/********************************************************************
+ * Wenn der GroupName bereits bekannt ist, dann wird nur
+ * rShortName gefuellt, sonst wird rGroupName ebenfals gesetzt und
+ * bei Bedarf nach der richtigen Gruppe gefragt
+********************************************************************/
+
+
+BOOL SwGlossaryList::GetShortName(const String& rLongName,
+ String& rShortName, String& rGroupName )
+{
+ if(!bFilled)
+ Update();
+
+ TripleStrings aTripleStrings;
+
+ USHORT nCount = aGroupArr.Count();
+ USHORT nFound = 0;
+ for(USHORT i = 0; i < nCount; i++ )
+ {
+ AutoTextGroup* pGroup = aGroupArr.GetObject(i);
+ if(!rGroupName.Len() || rGroupName == pGroup->sName)
+ for(USHORT j = 0; j < pGroup->nCount; j++)
+ {
+ String sLong = pGroup->sLongNames.GetToken(j, STRING_DELIM);
+ if((rLongName == sLong))
+ {
+ TripleString* pTriple = new TripleString;
+ pTriple->sGroup = pGroup->sName;
+ pTriple->sBlock = sLong;
+ pTriple->sShort = pGroup->sShortNames.GetToken(j, STRING_DELIM);
+ aTripleStrings.Insert(pTriple, nFound++);
+ }
+ }
+ }
+
+ BOOL bRet = FALSE;
+ nCount = aTripleStrings.Count();
+ if(1 == nCount )
+ {
+ TripleString* pTriple = aTripleStrings[0];
+ rShortName = pTriple->sShort;
+ rGroupName = pTriple->sGroup;
+ bRet = TRUE;
+ }
+ else if(1 < nCount)
+ {
+ SwGlossDecideDlg aDlg(0);
+ String sTitle = aDlg.GetText();
+ sTitle += aTripleStrings[0]->sBlock;
+ aDlg.SetText(sTitle);
+
+ ListBox& rLB = aDlg.GetListBox();
+ for(USHORT i = 0; i < nCount; i++ )
+ rLB.InsertEntry(aTripleStrings[i]->sGroup.GetToken(0, GLOS_DELIM));
+
+ rLB.SelectEntryPos(0);
+ if(RET_OK == aDlg.Execute() &&
+ LISTBOX_ENTRY_NOTFOUND != rLB.GetSelectEntryPos())
+ {
+ TripleString* pTriple = aTripleStrings[rLB.GetSelectEntryPos()];
+ rShortName = pTriple->sShort;
+ rGroupName = pTriple->sGroup;
+ bRet = TRUE;
+ }
+ else
+ bRet = FALSE;
+ }
+ return bRet;
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+USHORT SwGlossaryList::GetGroupCount()
+{
+ if(!bFilled)
+ Update();
+ return aGroupArr.Count();
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+String SwGlossaryList::GetGroupName(USHORT nPos, BOOL bNoPath, String* pTitle)
+{
+ DBG_ASSERT(aGroupArr.Count() > nPos, "Gruppe nicht vorhanden")
+ String sRet(aEmptyStr);
+ if(nPos < aGroupArr.Count())
+ {
+ AutoTextGroup* pGroup = aGroupArr.GetObject(nPos);
+ sRet = pGroup->sName;
+ if(bNoPath)
+ sRet = sRet.GetToken(0, GLOS_DELIM);
+ if(pTitle)
+ *pTitle = pGroup->sTitle;
+ }
+ return sRet;
+
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+USHORT SwGlossaryList::GetBlockCount(USHORT nGroup)
+{
+ DBG_ASSERT(aGroupArr.Count() > nGroup, "Gruppe nicht vorhanden")
+ if(nGroup < aGroupArr.Count())
+ {
+ AutoTextGroup* pGroup = aGroupArr.GetObject(nGroup);
+ return pGroup->nCount;
+ }
+ return 0;
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+String SwGlossaryList::GetBlockName(USHORT nGroup, USHORT nBlock, String& rShortName)
+{
+ DBG_ASSERT(aGroupArr.Count() > nGroup, "Gruppe nicht vorhanden")
+ if(nGroup < aGroupArr.Count())
+ {
+ AutoTextGroup* pGroup = aGroupArr.GetObject(nGroup);
+ rShortName = pGroup->sShortNames.GetToken(nBlock, STRING_DELIM);
+ return pGroup->sLongNames.GetToken(nBlock, STRING_DELIM);
+ }
+ return aEmptyStr;
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+void SwGlossaryList::Update()
+{
+ if(!IsActive())
+ Start();
+ String sTemp( SFX_INIMANAGER()->Get( SFX_KEY_GLOSSARY_PATH ) );
+ if(sTemp != sPath)
+ {
+ sPath = sTemp;
+ bFilled = FALSE;
+ ClearGroups();
+ }
+ SwGlossaries* pGlossaries = ::GetGlossaries();
+ const SvStrings* pPathArr = pGlossaries->GetPathArray();
+ if(!bFilled)
+ {
+ USHORT nGroupCount = pGlossaries->GetGroupCnt();
+ for(USHORT i = 0; i < nGroupCount; i++)
+ {
+ String sGrpName = pGlossaries->GetGroupName(i);
+ USHORT nPath = sGrpName.GetToken(1, GLOS_DELIM).ToInt32();
+ if(nPath < pPathArr->Count())
+ {
+ AutoTextGroup* pGroup = new AutoTextGroup;
+ pGroup->sName = sGrpName;
+
+ FillGroup(pGroup, pGlossaries);
+ String sName = *(*pPathArr)[nPath];
+ sName += INET_PATH_TOKEN;
+ sName += pGroup->sName.GetToken(0, GLOS_DELIM);
+ sName += String::CreateFromAscii(pGlosExt);
+
+ uno::Reference< XCommandEnvironment > xCmdEnv;
+ ::ucb::Content aTestContent(
+#if SUPD<591
+ SW_MOD()->GetContentBroker(),
+#endif
+ sName,
+ xCmdEnv);
+
+#ifdef DEBUG
+ Reference< beans::XPropertySetInfo > xInfo = aTestContent. getProperties();
+ Sequence< beans::Property > aSeq = xInfo->getProperties( );
+ const beans::Property* pProps = aSeq.getConstArray();
+ OUString sMsg;
+ for(int nProp = 0; nProp < aSeq.getLength(); nProp++)
+ {
+ sMsg += pProps[nProp].Name;
+ sMsg += OUString::createFromAscii(" ");
+ }
+
+#endif
+
+ try
+ {
+ uno::Any aAny = aTestContent.getPropertyValue( OUString::createFromAscii("DateModified") );
+ if(aAny.hasValue())
+ {
+ const util::DateTime* pDT = (util::DateTime*)aAny.getValue();
+ pGroup->aDateModified = ::DateTime(
+ ::Date(pDT->Day, pDT->Month, pDT->Year),
+ ::Time(pDT->Hours, pDT->Minutes, pDT->Seconds, pDT->HundredthSeconds));
+ }
+ }
+ catch(...)
+ {
+ }
+
+ aGroupArr.Insert(pGroup, i);
+ }
+ }
+ bFilled = TRUE;
+ }
+ else
+ {
+ for(USHORT nPath = 0; nPath < pPathArr->Count(); nPath++)
+ {
+ try
+ {
+ ::ucb::Content aCnt(
+ #if SUPD<591
+ SW_MOD()->GetContentBroker(),
+ #endif
+ *(*pPathArr)[nPath], uno::Reference< XCommandEnvironment >());
+ Reference< sdbc::XResultSet > xResultSet;
+ Sequence< OUString > aProps(2);
+ OUString* pProps = aProps.getArray();
+ pProps[ 0 ] = OUString::createFromAscii( "Title" );
+ pProps[ 1 ] = OUString::createFromAscii( "DateModified" );
+ try
+ {
+ xResultSet = aCnt.createCursor( aProps, ::ucb::INCLUDE_DOCUMENTS_ONLY );
+ }
+ catch ( Exception )
+ {
+ DBG_ERRORFILE( "create cursor failed!" );
+ }
+
+ if ( xResultSet.is() )
+ {
+ SvStringsDtor aFoundGroupNames;
+ Reference< sdbc::XRow > xRow( xResultSet, UNO_QUERY );
+ try
+ {
+ if ( xResultSet->first() )
+ {
+ do
+ {
+ String sTitle = xRow->getString( 1 );
+ xub_StrLen nFound = sTitle.SearchAscii( pGlosExt );
+ if( sTitle.Len() - 4 == nFound )
+ {
+ util::DateTime aStamp = xRow->getTimestamp(2);
+ ::DateTime aDateTime = ::DateTime(
+ ::Date(aStamp.Day, aStamp.Month, aStamp.Year ),
+ ::Time(aStamp.Hours, aStamp.Minutes, aStamp.Seconds, aStamp.HundredthSeconds ) );
+ String sName = sTitle.Erase(sTitle.Len() - 4, 4);
+ aFoundGroupNames.Insert(new String(sName), aFoundGroupNames.Count());
+ sName += GLOS_DELIM;
+ sName += String::CreateFromInt32( nPath );
+ AutoTextGroup* pFound = FindGroup(sName);
+ if(!pFound)
+ {
+ pFound = new AutoTextGroup;
+ pFound->sName = sName;
+ FillGroup(pFound, pGlossaries);
+ pFound->aDateModified = aDateTime;
+
+ aGroupArr.Insert(pFound, aGroupArr.Count());
+ }
+ else if(pFound->aDateModified < aDateTime)
+ {
+ FillGroup(pFound, pGlossaries);
+ pFound->aDateModified = aDateTime;
+ }
+ }
+ }
+ while ( xResultSet->next() );
+ }
+ }
+ catch ( ... )
+ {
+ DBG_ERRORFILE( "Exception caught!" );
+ }
+ USHORT nArrCount = aGroupArr.Count();
+ for( USHORT i = nArrCount; i; --i)
+ {
+ // evtl. geloeschte Gruppen entfernen
+ AutoTextGroup* pGroup = aGroupArr.GetObject(i - 1);
+ USHORT nGroupPath = pGroup->sName.GetToken(1, GLOS_DELIM).ToInt32();
+ // nur die Gruppen werden geprueft, die fuer den
+ // aktuellen Teilpfad registriert sind
+ if(nGroupPath == nPath)
+ {
+ BOOL bFound = FALSE;
+ String sCompareGroup = pGroup->sName.GetToken(0, GLOS_DELIM);
+ for( USHORT j = 0; j < aFoundGroupNames.Count() && !bFound; ++j)
+ {
+ bFound = sCompareGroup == *aFoundGroupNames[j];
+ }
+ if(!bFound)
+ {
+ aGroupArr.Remove(i - 1);
+ delete pGroup;
+ }
+ }
+ }
+ }
+ }
+ catch(...){}
+ }
+ }
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+void __EXPORT SwGlossaryList::Timeout()
+{
+ // nur, wenn eine SwView den Fokus hat, wird automatisch upgedated
+ if(::GetActiveView())
+ Update();
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+AutoTextGroup* SwGlossaryList::FindGroup(const String& rGroupName)
+{
+ for(USHORT i = 0; i < aGroupArr.Count(); i++)
+ {
+ AutoTextGroup* pRet = aGroupArr.GetObject(i);
+ if(pRet->sName == rGroupName)
+ return pRet;
+ }
+ return 0;
+}
+
+/********************************************************************
+
+********************************************************************/
+
+
+void SwGlossaryList::FillGroup(AutoTextGroup* pGroup, SwGlossaries* pGlossaries)
+{
+ SwTextBlocks* pBlock = pGlossaries->GetGroupDoc(pGroup->sName);
+ pGroup->nCount = pBlock ? pBlock->GetCount() : 0;
+ pGroup->sLongNames = pGroup->sShortNames = aEmptyStr;
+ if(pBlock)
+ pGroup->sTitle = pBlock->GetName();
+
+ for(USHORT j = 0; j < pGroup->nCount; j++)
+ {
+ pGroup->sLongNames += pBlock->GetLongName(j);
+ pGroup->sLongNames += STRING_DELIM;
+ pGroup->sShortNames += pBlock->GetShortName(j);
+ pGroup->sShortNames += STRING_DELIM;
+ }
+ pGlossaries->PutGroupDoc(pBlock);
+}
+
+/********************************************************************
+ Alle (nicht mehr als FIND_MAX_GLOS) gefunden Bausteine mit
+ passendem Anfang zurueckgeben
+********************************************************************/
+
+BOOL SwGlossaryList::HasLongName(const String& rBegin, SvStringsISortDtor* pLongNames )
+{
+ if(!bFilled)
+ Update();
+ USHORT nFound = 0;
+ USHORT nCount = aGroupArr.Count();
+ USHORT nBeginLen = rBegin.Len();
+ const International& rInt = Application::GetAppInternational();
+ for(USHORT i = 0; i < nCount; i++ )
+ {
+ AutoTextGroup* pGroup = aGroupArr.GetObject(i);
+ for(USHORT j = 0; j < pGroup->nCount; j++)
+ {
+ String sBlock = pGroup->sLongNames.GetToken(j, STRING_DELIM);
+ if(rInt.CompareEqual(sBlock.Copy(0, nBeginLen), rBegin, INTN_COMPARE_IGNORECASE) &&
+ nBeginLen + 1 < sBlock.Len())
+ {
+ String* pBlock = new String(sBlock);
+ pLongNames->Insert(pBlock);
+ nFound++;
+ if(FIND_MAX_GLOS == nFound)
+ break;
+ }
+ }
+ }
+ return nFound > 0;
+}
+
+/********************************************************************
+
+********************************************************************/
+void SwGlossaryList::ClearGroups()
+{
+ USHORT nCount = aGroupArr.Count();
+ for( USHORT i = 0; i < nCount; ++i )
+ delete aGroupArr.GetObject( i );
+
+ aGroupArr.Remove( 0, nCount );
+ bFilled = FALSE;
+}
+
+/*************************************************************************
+
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/utlui/gloslst.cxx,v 1.1.1.1 2000-09-18 17:14:50 hr Exp $
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.29 2000/09/18 16:06:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.28 2000/06/13 09:57:49 os
+ using UCB
+
+ Revision 1.27 2000/06/08 09:45:45 os
+ ContentBroker not in SwModule
+
+ Revision 1.26 2000/06/07 13:29:51 os
+ using UCB
+
+ Revision 1.25 2000/05/23 19:54:24 jp
+ Bugfixes for Unicode
+
+ Revision 1.24 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.23 2000/02/14 14:24:35 os
+ #70473# Unicode
+
+ Revision 1.22 2000/02/10 10:35:23 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.21 1999/10/21 17:45:07 jp
+ have to change - SearchFile with SfxIniManager, dont use SwFinder for this
+
+ Revision 1.20 1999/09/20 09:59:08 os
+ local resources separated
+
+ Revision 1.19 1999/02/09 09:48:02 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+
+ Rev 1.18 09 Feb 1999 10:48:02 OS
+ #61205# AutoText-Gruppen koennen beliebige Namen erhalten
+
+ Rev 1.17 18 Aug 1998 17:28:04 OS
+ GetShortName sollte auf bekannte Gruppe richtig reagieren #55219#
+
+ Rev 1.16 18 Mar 1998 17:47:40 OS
+ kein GPF, wenn alle Glossary-Pfade ungueltig sind
+
+ Rev 1.15 21 Nov 1997 12:10:14 MA
+ includes
+
+ Rev 1.14 03 Nov 1997 13:59:24 MA
+ precomp entfernt
+
+ Rev 1.13 01 Sep 1997 13:11:44 OS
+ DLL-Umstellung
+
+ Rev 1.12 30 Jul 1997 14:49:30 OM
+ #41989# Autotextbereiche korrekt anzeigen
+
+ Rev 1.11 09 Jul 1997 17:45:30 HJS
+ includes
+
+ Rev 1.10 17 Jun 1997 10:15:22 OS
+ Update fuer mehrere AutoText-Pfade angepasst
+
+ Rev 1.9 10 Jun 1997 14:26:12 OS
+ AutoText aus mehreren Verzeichnissen
+
+ Rev 1.8 30 Jan 1997 09:15:08 MA
+ unbenutztes entfernt
+
+ Rev 1.7 21 Jan 1997 15:00:30 OS
+ Autotext-Auswahl-Dialog verfeinert
+
+ Rev 1.6 21 Jan 1997 09:39:26 OS
+ Gruppenname zurueckgeben
+
+ Rev 1.5 20 Jan 1997 16:58:50 OS
+ Entscheidungsdialog fuer AutoComplete
+
+ Rev 1.4 01 Nov 1996 04:44:36 MH
+ add: includes
+
+ Rev 1.3 01 Oct 1996 09:00:16 JP
+ DTOR korrigiert
+
+ Rev 1.2 27 Sep 1996 16:33:22 HJS
+ include
+
+ Rev 1.1 27 Sep 1996 12:55:20 OS
+ nach Kuerzeln suchen
+
+ Rev 1.0 26 Sep 1996 16:55:54 OS
+ Initial revision.
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/utlui/gloslst.hrc b/sw/source/ui/utlui/gloslst.hrc
new file mode 100644
index 000000000000..fdc65b75eaa3
--- /dev/null
+++ b/sw/source/ui/utlui/gloslst.hrc
@@ -0,0 +1,72 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloslst.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _INITUI_HRC
+#define _INITUI_HRC
+
+#define GB_GLOSS 1
+#define PB_OK 2
+#define PB_HELP 3
+#define PB_CANCEL 4
+#define LB_LIST 5
+
+#endif
+
diff --git a/sw/source/ui/utlui/gloslst.src b/sw/source/ui/utlui/gloslst.src
new file mode 100644
index 000000000000..0c8d269d875b
--- /dev/null
+++ b/sw/source/ui/utlui/gloslst.src
@@ -0,0 +1,153 @@
+/*************************************************************************
+ *
+ * $RCSfile: gloslst.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "utlui.hrc"
+#include "helpid.h"
+#include "gloslst.hrc"
+
+ModalDialog DLG_GLOSSARY_DECIDE_DLG
+{
+ HelpID = HID_DLG_GLOSS_DECIDE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 161 , 67 ) ;
+ /* ### ACHTUNG: Neuer Text in Resource? Textbaustein auswählen: : Textbaustein auswõhlen: */
+ Text = "Textbaustein auswählen: " ;
+ Text [ ENGLISH ] = "Select glossary: " ;
+ Moveable = TRUE ;
+ GroupBox GB_GLOSS
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 93 , 58 ) ;
+ Text = "AutoText - Gruppe" ;
+ Text [ ENGLISH ] = "Glossary group" ;
+ Text [ english_us ] = "AutoText - Group" ;
+ Text [ portuguese_brazilian ] = "AutoText - Gruppe" ;
+ Text [ swedish ] = "AutoText - grupp" ;
+ Text [ danish ] = "AutoTekst - gruppe" ;
+ Text [ italian ] = "Testo automatico - Gruppo" ;
+ Text [ spanish ] = "Grupo AutoTexto" ;
+ Text [ french ] = "AutoTexte - Groupe" ;
+ Text [ dutch ] = "AutoTekst-groep" ;
+ Text [ portuguese ] = "AutoTexto - Grupo" ;
+ Text[ chinese_simplified ] = "×Ô¶¯Í¼Îļ¯Ð¡×é";
+ Text[ russian ] = "Àâòîòåêñò - Ãðóïïà";
+ Text[ polish ] = "Autotekst - Grupa";
+ Text[ japanese ] = "“ü—ÍŽx‰‡ ¸ÞÙ°Ìß";
+ Text[ chinese_traditional ] = "¦Û°Ê¹Ï¤å¶°¤p²Õ";
+ Text[ arabic ] = "ãÌãæÚÉ äÕ ÊáÞÇÆí";
+ Text[ greek ] = "ÏìÜäá ÁõôïÊåéìÝíïõ";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ® ±×·ì";
+ Text[ turkish ] = "Otomatik metin - Grup";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 105 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 105 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 105 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ ListBox LB_LIST
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 81 , 40 ) ;
+ TabStop = TRUE ;
+ Border = TRUE ;
+ };
+ Text [ english_us ] = "Select AutoText: " ;
+ Text [ portuguese_brazilian ] = "Textbaustein auswählen: " ;
+ Text [ swedish ] = "Välj ut textblock: " ;
+ Text [ danish ] = "Vælg tekstelementer: " ;
+ Text [ italian ] = "Seleziona modulo di testo: " ;
+ Text [ spanish ] = "Seleccionar módulo de texto: " ;
+ Text [ french ] = "Sélection du module de texte : " ;
+ Text [ dutch ] = "Tekstbouwsteen selecteren: " ;
+ Text [ portuguese ] = "Seleccionar módulo de texto: " ;
+ Text[ chinese_simplified ] = "Ñ¡Ôñ´ÊÌõ£º ";
+ Text[ russian ] = "Âûáðàòü àâòîòåêñò: ";
+ Text[ polish ] = "Zaznacz blok tekstu: ";
+ Text[ japanese ] = "÷½ÄÌÞÛ¯¸‚Ì‘I‘ð: ";
+ Text[ chinese_traditional ] = "¿ï¾Ü¦Û°Ê¹Ï¤å¶°¡G ";
+ Text[ arabic ] = "ÇÎÊíÇÑ ÚäÕÑ ÇáäÕ: ";
+ Text[ greek ] = "ÅðéëïãÞ ôìÞìáôïò êåéìÝíïõ: ";
+ Text[ korean ] = "ÀÚµ¿ ÅؽºÆ® ¼±ÅÃ: ";
+ Text[ turkish ] = "Metin bileþeni seç: ";
+ Text[ language_user1 ] = " ";
+};
+
+
diff --git a/sw/source/ui/utlui/initui.cxx b/sw/source/ui/utlui/initui.cxx
new file mode 100644
index 000000000000..5357961dfc2b
--- /dev/null
+++ b/sw/source/ui/utlui/initui.cxx
@@ -0,0 +1,440 @@
+/*************************************************************************
+ *
+ * $RCSfile: initui.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _VIEWSH_HXX
+#include <viewsh.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _SHELLRES_HXX
+#include <shellres.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx>
+#endif
+#ifndef _GLOSDOC_HXX
+#include <glosdoc.hxx>
+#endif
+#ifndef _GLOSLST_HXX
+#include <gloslst.hxx>
+#endif
+
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _INITUI_HRC
+#include <initui.hrc>
+#endif
+#ifndef _COMCORE_HRC
+#include <comcore.hrc>
+#endif
+#ifndef _AUTHFLD_HXX
+#include <authfld.hxx>
+#endif
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+/*--------------------------------------------------------------------
+ Beschreibung: globale Pointer
+ --------------------------------------------------------------------*/
+
+SwGlossaries* pGlossaries = 0;
+
+// Liefert alle benoetigten Pfade. Wird durch UI initialisiert
+SwPathFinder* pPathFinder = 0;
+SwGlossaryList* pGlossaryList = 0;
+
+String* pOldGrfCat = 0;
+String* pOldTabCat = 0;
+String* pOldFrmCat = 0;
+String* pOldDrwCat = 0;
+String* pCurrGlosGroup = 0;
+
+SvStringsDtor* pDBNameList = 0;
+
+SvStringsDtor* pAuthFieldNameList = 0;
+SvStringsDtor* pAuthFieldTypeList = 0;
+
+/*--------------------------------------------------------------------
+ Beschreibung: UI beenden
+ --------------------------------------------------------------------*/
+
+void _FinitUI()
+{
+ delete ViewShell::GetShellRes();
+ ViewShell::SetShellRes( 0 );
+
+ SwEditWin::_FinitStaticData();
+
+ DELETEZ(pPathFinder);
+ DELETEZ(pGlossaries);
+
+ delete SwFieldType::pFldNames;
+
+ delete pOldGrfCat;
+ delete pOldTabCat;
+ delete pOldFrmCat;
+ delete pOldDrwCat;
+ delete pCurrGlosGroup;
+ delete pDBNameList;
+ delete pGlossaryList;
+ delete pAuthFieldNameList;
+ delete pAuthFieldTypeList;
+
+
+}
+/*--------------------------------------------------------------------
+ Beschreibung: Initialisierung
+ --------------------------------------------------------------------*/
+
+
+void _InitUI()
+{
+ pPathFinder = new SwPathFinder;
+ // ShellResource gibt der CORE die Moeglichkeit mit Resourcen zu arbeiten
+ ViewShell::SetShellRes( new ShellResource );
+ pDBNameList = new SvStringsDtor( 5, 5 );
+ SwEditWin::_InitStaticData();
+}
+
+
+ShellResource::ShellResource()
+ : Resource( SW_RES(RID_SW_SHELLRES) ),
+ aPostItPage( SW_RES( STR_POSTIT_PAGE ) ),
+ aPostItAuthor( SW_RES( STR_POSTIT_AUTHOR ) ),
+ aPostItLine( SW_RES( STR_POSTIT_LINE ) ),
+ aCalc_Syntax( SW_RES( STR_CALC_SYNTAX ) ),
+ aCalc_ZeroDiv( SW_RES( STR_CALC_ZERODIV ) ),
+ aCalc_Brack( SW_RES( STR_CALC_BRACK ) ),
+ aCalc_Pow( SW_RES( STR_CALC_POW ) ),
+ aCalc_VarNFnd( SW_RES( STR_CALC_VARNFND ) ),
+ aCalc_Overflow( SW_RES( STR_CALC_OVERFLOW ) ),
+ aCalc_WrongTime( SW_RES( STR_CALC_WRONGTIME ) ),
+ aCalc_Default( SW_RES( STR_CALC_DEFAULT ) ),
+ aCalc_Error( SW_RES( STR_CALC_ERROR ) ),
+ aGetRefFld_Up( SW_RES( STR_GETREFFLD_UP ) ),
+ aGetRefFld_Down( SW_RES( STR_GETREFFLD_DOWN ) ),
+ aStrAllPageHeadFoot( SW_RES( STR_ALLPAGE_HEADFOOT ) ),
+ aStrNone( SW_RES( STR_TEMPLATE_NONE )),
+ aFixedStr( SW_RES( STR_FIELD_FIXED )),
+ aTOXIndexName( SW_RES(STR_TOI)),
+ aTOXUserName( SW_RES(STR_TOU)),
+ aTOXContentName( SW_RES(STR_TOC)),
+ aTOXIllustrationsName( SW_RES(STR_TOX_ILL)),
+ aTOXObjectsName( SW_RES(STR_TOX_OBJ)),
+ aTOXTablesName( SW_RES(STR_TOX_TBL)),
+ aTOXAuthoritiesName( SW_RES(STR_TOX_AUTH)),
+ pAutoFmtNameLst( 0 )
+{
+ const USHORT nCount = FLD_DOCINFO_END - FLD_DOCINFO_BEGIN;
+
+ for(USHORT i = 0; i < nCount; ++i)
+ {
+ String* pNew = new SW_RESSTR(FLD_DOCINFO_BEGIN + i);
+ aDocInfoLst.Insert(pNew, aDocInfoLst.Count());
+ }
+
+ FreeResource();
+}
+
+ShellResource::~ShellResource()
+{
+ if( pAutoFmtNameLst )
+ delete pAutoFmtNameLst, pAutoFmtNameLst = 0;
+}
+
+SwGlossaries* GetGlossaries()
+{
+ if (!pGlossaries)
+ pGlossaries = new SwGlossaries;
+ return (pGlossaries);
+}
+
+BOOL HasGlossaryList()
+{
+ return pGlossaryList != 0;
+}
+
+SwGlossaryList* GetGlossaryList()
+{
+ if(!pGlossaryList)
+ pGlossaryList = new SwGlossaryList();
+
+ return pGlossaryList;
+}
+
+struct ImpAutoFmtNameListLoader : public Resource
+{
+ ImpAutoFmtNameListLoader( SvStringsDtor& rLst );
+};
+
+void ShellResource::_GetAutoFmtNameLst() const
+{
+ SvStringsDtor** ppLst = (SvStringsDtor**)&pAutoFmtNameLst;
+ *ppLst = new SvStringsDtor( STR_AUTOFMTREDL_END );
+ ImpAutoFmtNameListLoader aTmp( **ppLst );
+}
+
+ImpAutoFmtNameListLoader::ImpAutoFmtNameListLoader( SvStringsDtor& rLst )
+ : Resource( ResId(RID_SHELLRES_AUTOFMTSTRS, pSwResMgr) )
+{
+ for( USHORT n = 0; n < STR_AUTOFMTREDL_END; ++n )
+ {
+ String* p = new String( ResId( n + 1, pSwResMgr) );
+ if(STR_AUTOFMTREDL_TYPO == n)
+ {
+ const International& rInt = Application::GetAppInternational();
+#ifdef WNT
+ //fuer Windows Sonderbehandlung, da MS hier ein paar Zeichen im Dialogfont vergessen hat
+ p->SearchAndReplace(C2S("%1"), C2S(",,"));
+ p->SearchAndReplace(C2S("%2"), C2S("''"));
+#else
+ //unter richtigen Betriebssystemen funktioniert es auch so
+ p->SearchAndReplace(C2S("%1"), rInt.GetDoubleQuotationMarkStartChar());
+ p->SearchAndReplace(C2S("%2"), rInt.GetDoubleQuotationMarkEndChar());
+#endif
+ }
+ rLst.Insert( p, n );
+ }
+ FreeResource();
+}
+/* -----------------16.09.99 12:28-------------------
+
+ --------------------------------------------------*/
+const String& SwAuthorityFieldType::GetAuthFieldName(ToxAuthorityField eType)
+{
+ if(!pAuthFieldNameList)
+ {
+ pAuthFieldNameList = new SvStringsDtor(AUTH_FIELD_END, 1);
+ for(USHORT i = 0; i < AUTH_FIELD_END; i++)
+ {
+ String* pTmp = new String(SW_RES(STR_AUTH_FIELD_START + i));
+ //remove short cuts
+ pTmp->EraseAllChars('~');
+ pAuthFieldNameList->Insert(pTmp, pAuthFieldNameList->Count());
+ }
+ }
+ return *pAuthFieldNameList->GetObject(eType);
+}
+/* -----------------16.09.99 12:29-------------------
+
+ --------------------------------------------------*/
+const String& SwAuthorityFieldType::GetAuthTypeName(ToxAuthorityType eType)
+{
+ if(!pAuthFieldTypeList)
+ {
+ pAuthFieldTypeList = new SvStringsDtor(AUTH_TYPE_END, 1);
+ for(USHORT i = 0; i < AUTH_TYPE_END; i++)
+ pAuthFieldTypeList->Insert(
+ new String(SW_RES(STR_AUTH_TYPE_START + i)),
+ pAuthFieldTypeList->Count());
+ }
+ return *pAuthFieldTypeList->GetObject(eType);
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.112 2000/09/18 16:06:17 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.111 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.110 2000/02/14 14:23:29 os
+ #70473# Unicode
+
+ Revision 1.109 2000/02/10 10:35:22 os
+ #70359# titles added to AutoText groups
+
+ Revision 1.108 1999/10/06 12:24:13 os
+ index corrected
+
+ Revision 1.107 1999/10/05 10:40:03 os
+ index corrected
+
+ Revision 1.106 1999/09/22 12:48:10 aw
+ changes for IAO-Handle handling in SW (AW)
+
+ Revision 1.105 1999/09/20 09:58:34 os
+ local resources separated; Authority defines
+
+ Revision 1.104 1999/09/15 14:10:32 os
+ language improvements
+
+ Revision 1.103 1999/07/07 06:15:48 OS
+ extended indexes: Index names in ShellRes
+
+
+ Rev 1.102 07 Jul 1999 08:15:48 OS
+ extended indexes: Index names in ShellRes
+
+ Rev 1.101 10 Jun 1999 13:14:52 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.100 28 May 1999 14:09:04 OS
+ #54839# Plattformstrings raus
+
+ Rev 1.99 09 Mar 1999 18:27:42 JP
+ Task #61405#: AutoCompletion von Woertern
+
+ Rev 1.98 05 Mar 1999 14:33:02 JP
+ Bug #62868#: beim Anzeigen der Feldnamen opt. das Fix mit ausgeben
+
+ Rev 1.97 12 Jan 1999 21:14:32 JP
+ Bug #60794#: Fehlererkennung beim Tabellenrechnen
+
+ Rev 1.96 10 Dec 1998 09:47:56 MIB
+ #60060#: Beschriftungen fuer Zeichen-Objekte
+
+ Rev 1.95 06 Oct 1998 09:47:22 JP
+ Task #57586#: ShellRes um die AutoFmt-RedlineNameListe erweitert
+
+ Rev 1.94 16 Jul 1998 16:40:46 JP
+ STR_NONE ->STR_TEMPLATE_NONE fuer den MacCompiler
+
+ Rev 1.93 26 Jun 1998 17:12:52 AMA
+ Chg: Notizen werden mit Zeilenangabe gedruckt
+
+ Rev 1.92 29 May 1998 18:56:32 JP
+ neuer String in den ShellResourcen
+
+ Rev 1.91 26 May 1998 15:31:36 JP
+ neuen String aufgenommen: Alle
+
+ Rev 1.90 21 Nov 1997 12:10:12 MA
+ includes
+
+ Rev 1.89 03 Nov 1997 13:59:24 MA
+ precomp entfernt
+
+ Rev 1.88 20 Jan 1997 17:04:30 JP
+ ShowTip Umbau
+
+ Rev 1.87 11 Nov 1996 10:54:12 MA
+ ResMgr
+
+ Rev 1.86 06 Nov 1996 16:55:10 OS
+ include
+
+ Rev 1.85 06 Nov 1996 16:39:06 OS
+ SpellCheck in der OFA
+
+ Rev 1.84 31 Oct 1996 14:51:50 JP
+ neue Resource fuer GetRefFelder
+
+ Rev 1.83 26 Sep 1996 16:57:24 OS
+ neu: SwGlossaryList
+
+ Rev 1.82 19 Sep 1996 10:34:56 JP
+ neu: pDBNameList fuers Basic
+
+ Rev 1.81 28 Aug 1996 15:42:32 OS
+ includes
+
+ Rev 1.80 16 Aug 1996 11:28:26 OM
+ Dokinfo aufgegliedert
+
+ Rev 1.79 12 Aug 1996 16:33:34 OM
+ Namen der Def Datenbank in SwTypes verschoben
+
+ Rev 1.78 25 Jul 1996 16:42:52 OM
+ Datenbankname am Dok auch mit Tabelle initialisieren
+
+ Rev 1.77 20 Dec 1995 17:21:22 OM
+ Address->FAR_DATA
+
+ Rev 1.76 05 Dec 1995 19:02:00 JP
+ static aActGroup nur noch ein Pointer (wird von InitUi gepflegt!)
+
+ Rev 1.75 28 Nov 1995 21:18:20 JP
+ UiSystem-Klasse aufgehoben, in initui/swtype aufgeteilt
+
+ Rev 1.74 28 Nov 1995 13:39:54 JP
+ Aufgeraeumt - alte externs entfernt, SwShellRes ueber Resource laden
+
+ Rev 1.73 27 Nov 1995 21:16:56 JP
+ static Strings aus caption.cxx hierher als Pointer verschoben
+
+ Rev 1.72 24 Nov 1995 16:57:22 OM
+ PCH->PRECOMPILED
+
+ Rev 1.71 13 Nov 1995 12:21:32 JP
+ static Namen von Grafik/OLE/Tabelle setzen fuer Verzeichnisse entfernt
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/utlui/initui.hrc b/sw/source/ui/utlui/initui.hrc
new file mode 100644
index 000000000000..eda73a8a1e7b
--- /dev/null
+++ b/sw/source/ui/utlui/initui.hrc
@@ -0,0 +1,94 @@
+/*************************************************************************
+ *
+ * $RCSfile: initui.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef _INITUI_HRC
+#define _INITUI_HRC
+
+#define BMP_FRAME_ANCHOR 1
+#define BMP_FRAME_DRAG_ANCHOR 2
+
+// lokale Resourcen fuer die Shells:
+#define STR_POSTIT_PAGE 1
+#define STR_POSTIT_AUTHOR 2
+#define STR_CALC_SYNTAX 3
+#define STR_CALC_ZERODIV 4
+#define STR_CALC_BRACK 5
+#define STR_CALC_POW 6
+#define STR_CALC_VARNFND 7
+#define STR_CALC_OVERFLOW 8
+#define STR_CALC_WRONGTIME 9
+#define STR_CALC_DEFAULT 10
+#define STR_CALC_ERROR 11
+#define STR_GETREFFLD_UP 12
+#define STR_GETREFFLD_DOWN 13
+#define STR_ALLPAGE_HEADFOOT 14
+#define STR_TEMPLATE_NONE 15
+#define STR_POSTIT_LINE 16
+#define STR_FIELD_FIXED 17
+#define STR_TOI 18
+#define STR_TOU 19
+#define STR_TOC 20
+#define STR_TOX_ILL 21
+#define STR_TOX_OBJ 22
+#define STR_TOX_TBL 23
+#define STR_TOX_AUTH 24
+#endif
+
diff --git a/sw/source/ui/utlui/initui.src b/sw/source/ui/utlui/initui.src
new file mode 100644
index 000000000000..bfc9e654e268
--- /dev/null
+++ b/sw/source/ui/utlui/initui.src
@@ -0,0 +1,2303 @@
+/*************************************************************************
+ *
+ * $RCSfile: initui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "utlui.hrc"
+#include "helpid.h"
+#include "initui.hrc"
+
+/*---------------------------------------------------------------------
+ Fehler Calculator
+ ---------------------------------------------------------------------*/
+Resource RID_SW_SHELLRES
+{
+ String STR_POSTIT_PAGE
+ {
+ TEXT = "Seite" ;
+ TEXT [ ENGLISH ] = "Page" ;
+ TEXT [ norwegian ] = "Page" ;
+ TEXT [ italian ] = "Pagina" ;
+ TEXT [ portuguese_brazilian ] = "Página" ;
+ TEXT [ portuguese ] = "Página" ;
+ TEXT [ finnish ] = "Sivu" ;
+ TEXT [ danish ] = "Side" ;
+ TEXT [ french ] = "Page" ;
+ TEXT [ swedish ] = "Sida" ;
+ TEXT [ dutch ] = "Pagina" ;
+ TEXT [ spanish ] = "Página" ;
+ TEXT [ english_us ] = "Page" ;
+ TEXT[ chinese_simplified ] = "Ò³";
+ TEXT[ russian ] = "Ñòðàíèöà";
+ TEXT[ polish ] = "Strona";
+ TEXT[ japanese ] = "Íß°¼Þ";
+ TEXT[ chinese_traditional ] = "­¶";
+ TEXT[ arabic ] = "ÇáÕÝÍÉ";
+ TEXT[ greek ] = "Óåëßäá";
+ TEXT[ korean ] = "ÆäÀÌÁö";
+ TEXT[ turkish ] = "Sayfa";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_POSTIT_LINE
+ {
+ TEXT = "Zeile" ;
+ TEXT [ ENGLISH ] = "Line" ;
+ Text [ portuguese ] = "Linha" ;
+ Text [ english_us ] = "Line" ;
+ Text [ portuguese_brazilian ] = "Zeile" ;
+ Text [ swedish ] = "Rad" ;
+ Text [ danish ] = "Række" ;
+ Text [ italian ] = "Riga" ;
+ Text [ spanish ] = "Línea" ;
+ Text [ french ] = "Ligne" ;
+ Text [ dutch ] = "Regel" ;
+ Text[ chinese_simplified ] = "ÐÐ";
+ Text[ russian ] = "Ñòðîêà";
+ Text[ polish ] = "Wiersz";
+ Text[ japanese ] = "s";
+ Text[ chinese_traditional ] = "¦æ";
+ Text[ arabic ] = "ÇáÓØÑ";
+ Text[ greek ] = "ÃñáììÞ";
+ Text[ korean ] = "¼±";
+ Text[ turkish ] = "Satýr";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_POSTIT_AUTHOR
+ {
+ TEXT = "Autor" ;
+ TEXT [ ENGLISH ] = "Author" ;
+ TEXT [ norwegian ] = "Forfatter" ;
+ TEXT [ italian ] = "Autore" ;
+ TEXT [ portuguese_brazilian ] = "Autor" ;
+ TEXT [ portuguese ] = "Autor" ;
+ TEXT [ finnish ] = "Tekijä" ;
+ TEXT [ danish ] = "Forfatter" ;
+ TEXT [ french ] = "Auteur" ;
+ TEXT [ swedish ] = "Författare" ;
+ TEXT [ dutch ] = "Auteur" ;
+ TEXT [ spanish ] = "Autor" ;
+ TEXT [ english_us ] = "Author" ;
+ TEXT[ chinese_simplified ] = "×÷Õß";
+ TEXT[ russian ] = "Àâòîð";
+ TEXT[ polish ] = "Autor";
+ TEXT[ japanese ] = "쬎Ò";
+ TEXT[ chinese_traditional ] = "§@ªÌ";
+ TEXT[ arabic ] = "ÇáãÄáÝ";
+ TEXT[ greek ] = "ÓõíôÜêôçò";
+ TEXT[ korean ] = "ÀÛ¼ºÀÎ";
+ TEXT[ turkish ] = "Yazan";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_SYNTAX
+ {
+ TEXT [ English ] = "** Syntax error **" ;
+ TEXT [ norwegian ] = "** Syntaksfeil **" ;
+ TEXT [ italian ] = "** Errore di sintassi **" ;
+ TEXT [ portuguese_brazilian ] = "** Erro de sintaxe **" ;
+ TEXT [ portuguese ] = "** Erro de sintaxe **" ;
+ TEXT [ finnish ] = "** Muotovirhe **" ;
+ TEXT [ danish ] = "** Syntaksfejl **" ;
+ TEXT [ french ] = "** Erreur de syntaxe **" ;
+ TEXT [ swedish ] = "** Syntaxfel **" ;
+ TEXT [ dutch ] = "** Syntactische fout **" ;
+ TEXT [ spanish ] = "** Error de sintaxis **" ;
+ TEXT [ english_us ] = "** Syntax Error **" ;
+ TEXT = "** Syntax Fehler **" ;
+ TEXT[ chinese_simplified ] = "** Óï·¨´íÎó **";
+ TEXT[ russian ] = "** Ñèíòàêñè÷åñêàÿ îøèáêà **";
+ TEXT[ polish ] = "** B³¹d w sk³adni **";
+ TEXT[ japanese ] = "**¼ÝÀ¯¸½´×°**";
+ TEXT[ chinese_traditional ] = "** »yªk¿ù»~ **";
+ TEXT[ arabic ] = "** ÎØà Ýí ÈäÇÁ ÇáÌãáÉ **";
+ TEXT[ greek ] = "** Óõíôáêôéêü ëÜèïò **";
+ TEXT[ korean ] = "** ±¸¹® ¿À·ù **";
+ TEXT[ turkish ] = "** Söz dizimi hatasý **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_ZERODIV
+ {
+ TEXT [ English ] = "** Divide by zero **" ;
+ TEXT [ norwegian ] = "** Del på null **" ;
+ TEXT [ italian ] = "** Divisione per zero **" ;
+ TEXT [ portuguese_brazilian ] = "** Dividir por zero **" ;
+ TEXT [ portuguese ] = "** Dividir por zero **" ;
+ TEXT [ finnish ] = "** Jako nollalla **" ;
+ TEXT [ danish ] = "** Division med nul **" ;
+ TEXT [ french ] = "** Division par zéro **" ;
+ TEXT [ swedish ] = "** Division med noll **" ;
+ TEXT [ dutch ] = "Divideren door nul" ;
+ TEXT [ spanish ] = "** Dividir por cero **" ;
+ TEXT [ english_us ] = "** Division by zero **" ;
+ TEXT = "** Division durch Null **" ;
+ TEXT[ chinese_simplified ] = "** ³ýÓÚÁã **";
+ TEXT[ russian ] = "** Äåëåíèå íà íóëü **";
+ TEXT[ polish ] = "** Dzielenie przez zero **";
+ TEXT[ japanese ] = "**¾ÞÛ‚ÅŠ„‚é**";
+ TEXT[ chinese_traditional ] = "** °£¤_¹s **";
+ TEXT[ arabic ] = "** ÞÓãÉ Úáì ÕÝÑ **";
+ TEXT[ greek ] = "** Äéáßñåóç ìå ôï 0 **";
+ TEXT[ korean ] = "** 0À¸·Î ³ª´¸ **";
+ TEXT[ turkish ] = "** Sýfýr ile bölme **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_BRACK
+ {
+ TEXT [ English ] = "** Mistakable brackets **" ;
+ TEXT [ norwegian ] = "+++** Mistakable brackets **" ;
+ TEXT [ italian ] = "** Parentesi errate **" ;
+ TEXT [ portuguese_brazilian ] = "** Colchetes errôneos **" ;
+ TEXT [ portuguese ] = "** Parênteses errados **" ;
+ TEXT [ finnish ] = "** Virheelliset sulkeet **" ;
+ TEXT [ danish ] = "** Forkert brug af parenteser **" ;
+ TEXT [ french ] = "** Erreur de parenthèses **" ;
+ TEXT [ swedish ] = "** Felaktig användning av parenteser **" ;
+ TEXT [ dutch ] = "** Foutief gebruik van haakjes **" ;
+ TEXT [ spanish ] = "** Error de paréntesis **" ;
+ TEXT [ english_us ] = "** Wrong use of brackets **" ;
+ TEXT = "** Fehlerhafte Klammerung **" ;
+ TEXT[ chinese_simplified ] = "** ´íÎóµÄÀ¨ºÅ **";
+ TEXT[ russian ] = "** Íåïðàâèëüíîå ïðèìåíåíèå ñêîáîê **";
+ TEXT[ polish ] = "** Nieprawid³owo u¿yte nawiasy **";
+ TEXT[ japanese ] = "**ŒëŽg—p‚Ì‚©‚Á‚±**";
+ TEXT[ chinese_traditional ] = "** ¿ù»~ªº¬A¸¹ **";
+ TEXT[ arabic ] = "** ÇÓÊÎÏÇã ÇáÃÞæÇÓ ÈÔßá ÎÇØÆ **";
+ TEXT[ greek ] = "** ËÜèïò ÷ñÞóç ðáñåíèÝóåùí **";
+ TEXT[ korean ] = "**À߸øµÈ °ýÈ£ÀÇ »ç¿ë **";
+ TEXT[ turkish ] = "** Hatalý ayraç kullanýmý **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_POW
+ {
+ TEXT [ English ] = "** Square function overflow **" ;
+ TEXT [ norwegian ] = "+++** Square function overflow **" ;
+ TEXT [ italian ] = "** Overflow nella funzione quadrato **" ;
+ TEXT [ portuguese_brazilian ] = "** Transbordo de função quadrática **" ;
+ TEXT [ portuguese ] = "** Transbordo da função quadrática **" ;
+ TEXT [ finnish ] = "** Neliöjuurifunktion ylivuoto **" ;
+ TEXT [ danish ] = "** Overløb i kvadratfunktion **" ;
+ TEXT [ french ] = "** Dépassement de capacité de la fonction carré**" ;
+ TEXT [ swedish ] = "** Spill i kvadratfunktion **" ;
+ TEXT [ dutch ] = "** Overflow in kwadraatfunctie **" ;
+ TEXT [ spanish ] = "** Desbordamiento en función al cuadrado **" ;
+ TEXT [ english_us ] = "** Square function overflow **" ;
+ /* ### ACHTUNG: Neuer Text in Resource? ** Überlauf in Quadratfunktion ** : ** šberlauf in Quadratfunktion ** */
+ TEXT = "** Überlauf in Quadratfunktion **" ;
+ TEXT[ chinese_simplified ] = "** ƽ·½º¯ÊýµÄÒçÖµ **";
+ TEXT[ russian ] = "** Ïåðåïîëíåíèå â ôóíêöèè êâàäðàòà **";
+ TEXT[ polish ] = "** Przepe³nienie w funkcji kwadratowej **";
+ TEXT[ japanese ] = "**ŽlŠpŒ`‹@”\\‚̵°ÊÞ°ÌÛ°**";
+ TEXT[ chinese_traditional ] = "** ®Ú¨ç¼Æ·¸­È **";
+ TEXT[ arabic ] = "** ÝÇÆÖ Ýí ÇáÏÇáÉ ÇáÊÑÈíÚíÉ **";
+ TEXT[ greek ] = "** Õðåñ÷åßëéóç óôç ëåéôïõñãßá ôåôñáãþíïõ **";
+ TEXT[ korean ] = "**Á¦°ö ÇÔ¼ö ¿À¹öÇ÷οì **";
+ TEXT[ turkish ] = "** Kare fonksiyonu taþmasý **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_VARNFND
+ {
+ TEXT [ English ] = "** Variable not found **" ;
+ TEXT [ norwegian ] = "** Variabel ikke funnet **" ;
+ TEXT [ italian ] = "** Variabile non trovata **" ;
+ TEXT [ portuguese_brazilian ] = "** Variável não encontrada **" ;
+ TEXT [ portuguese ] = "** Variável não encontrada **" ;
+ TEXT [ finnish ] = "** Muuttujaa ei löydy **" ;
+ TEXT [ danish ] = "** Variabel blev ikke fundet **" ;
+ TEXT [ french ] = "** Variable introuvable **" ;
+ TEXT [ swedish ] = "** Variabel hittades inte **" ;
+ TEXT [ dutch ] = "** Variabele niet gevonden **" ;
+ TEXT [ spanish ] = "** No se ha encontrado la variable **" ;
+ TEXT [ english_us ] = "** Variable not found **" ;
+ TEXT = "** Variable wurde nicht gefunden **" ;
+ TEXT[ chinese_simplified ] = "** ûÓÐÕÒµ½±äÁ¿ **";
+ TEXT[ russian ] = "** Ïåðåìåííàÿ íå íàéäåíà **";
+ TEXT[ polish ] = "** Zmiennej nie znaleziono **";
+ TEXT[ japanese ] = "**•Ï”‚ªŒ©‚‚©‚è‚Ü‚¹‚ñ**";
+ TEXT[ chinese_traditional ] = "** ¨S¦³§ä¨ìÅÜ¼Æ **";
+ TEXT[ arabic ] = "** ÊÚÐÑ ÇáÚËæÑ Úáì ÇáãÊÛíÑÉ **";
+ TEXT[ greek ] = "** Äåí âñÝèçêå ç ìåôáâëçôÞ **";
+ TEXT[ korean ] = "**º¯¼ö°¡ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù. **";
+ TEXT[ turkish ] = "** Deðiþken bulunamadý **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_OVERFLOW
+ {
+ TEXT [ English ] = "** Overflow **" ;
+ TEXT [ norwegian ] = "** Overflow **" ;
+ TEXT [ italian ] = "** Overflow **" ;
+ TEXT [ portuguese_brazilian ] = "** Transbordo **" ;
+ TEXT [ portuguese ] = "** Transbordo **" ;
+ TEXT [ finnish ] = "** Ylivuoto **" ;
+ TEXT [ danish ] = "** Overløb **" ;
+ TEXT [ french ] = "** Dépassement de capacité **" ;
+ TEXT [ swedish ] = "** Spill **" ;
+ TEXT [ dutch ] = "** Overflow **" ;
+ TEXT [ spanish ] = "** Desbordamiento **" ;
+ TEXT [ english_us ] = "** Overflow **" ;
+ /* ### ACHTUNG: Neuer Text in Resource? ** Überlauf ** : ** šberlauf ** */
+ TEXT = "** Überlauf **" ;
+ TEXT[ chinese_simplified ] = "** ÒçÖµ **";
+ TEXT[ russian ] = "** Ïåðåïîëíåíèå **";
+ TEXT[ polish ] = "** Przepe³nienie **";
+ TEXT[ japanese ] = "**µ°ÊÞ°ÌÛ°**";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "** ·¸­È **";
+ TEXT[ arabic ] = "** ÝÇÆÖ **";
+ TEXT[ greek ] = "** Õðåñ÷åßëéóç **";
+ TEXT[ korean ] = "** ¿À¹ö Ç÷οì **";
+ TEXT[ turkish ] = "** Taþma **";
+ };
+ String STR_CALC_WRONGTIME
+ {
+ TEXT [ English ] = "** Wrong timeformat **" ;
+ TEXT [ norwegian ] = "** Feil tidsformat **" ;
+ TEXT [ italian ] = "** Formato orario errato **" ;
+ TEXT [ portuguese_brazilian ] = "** Formato de tempo errado**" ;
+ TEXT [ portuguese ] = "** Formato de tempo errado**" ;
+ TEXT [ finnish ] = "** Väärä aikamuoto **" ;
+ TEXT [ danish ] = "** Forkert tidsformat **" ;
+ TEXT [ french ] = "** Format d'heure erroné **" ;
+ TEXT [ swedish ] = "** Fel tidsformat **" ;
+ TEXT [ dutch ] = "** Foutief tijdformaat **" ;
+ TEXT [ spanish ] = "** Formato de hora erróneo **" ;
+ TEXT [ english_us ] = "** Wrong time format **" ;
+ TEXT = "** Falsches Zeitformat **" ;
+ TEXT[ chinese_simplified ] = "** ´íÎóµÄʱ¼ä¸ñʽ **";
+ TEXT[ russian ] = "** Íåïðàâèëüíûé ôîðìàò âðåìåíè **";
+ TEXT[ polish ] = "** Nieprawid³owy format czasu **";
+ TEXT[ japanese ] = "**³‚µ‚­‚È‚¢ŽžŠÔ‚Ì‘Ž®**";
+ TEXT[ chinese_traditional ] = "** ¿ù»~®É¶¡®æ¦¡ **";
+ TEXT[ arabic ] = "** ÊäÓíÞ æÞÊ ÎÇØÆ **";
+ TEXT[ greek ] = "** ËÜèïò ìïñöÞ ÷ñüíïõ **";
+ TEXT[ korean ] = "**À߸øµÈ ½Ã°£ ¼­½Ä **";
+ TEXT[ turkish ] = "** Yanlýþ zaman formatý **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_DEFAULT
+ {
+ TEXT [ English ] = "** Error **" ;
+ TEXT [ norwegian ] = "** Feil **" ;
+ TEXT [ italian ] = "** Errore **" ;
+ TEXT [ portuguese_brazilian ] = "** Erro **" ;
+ TEXT [ portuguese ] = "** Erro **" ;
+ TEXT [ finnish ] = "** Virhe **" ;
+ TEXT [ danish ] = "** Fejl **" ;
+ TEXT [ french ] = "** Erreur **" ;
+ TEXT [ swedish ] = "** Fel **" ;
+ TEXT [ dutch ] = "** Fout **" ;
+ TEXT [ spanish ] = "** Error **" ;
+ TEXT [ english_us ] = "** Error **" ;
+ TEXT = "** Fehler **" ;
+ TEXT[ chinese_simplified ] = "**´íÎó **";
+ TEXT[ russian ] = "** Îøèáêà **";
+ TEXT[ polish ] = "** B³¹d **";
+ TEXT[ japanese ] = "**´×°**";
+ TEXT[ chinese_traditional ] = "**¿ù»~ **";
+ TEXT[ arabic ] = "** ÎØÃ **";
+ TEXT[ greek ] = "** ÓöÜëìá **";
+ TEXT[ korean ] = "**¿À·ù **";
+ TEXT[ turkish ] = "** Hata **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_CALC_ERROR
+ {
+ TEXT = "** Fehlerhafter Ausdruck **" ;
+ TEXT [ English ] = "** Error in expression **" ;
+ TEXT [ norwegian ] = "** Error in expression **" ;
+ TEXT [ italian ] = "** Errore nell'espressione **" ;
+ TEXT [ portuguese_brazilian ] = "** Erro na expressão **" ;
+ TEXT [ portuguese ] = "** Expressão errada **" ;
+ TEXT [ finnish ] = "** Virhe lausekkeessa **" ;
+ TEXT [ danish ] = "** Fejlagtigt udtryk **" ;
+ TEXT [ french ] = "** Expression erronée **" ;
+ TEXT [ swedish ] = "** Felaktigt uttryck **" ;
+ TEXT [ dutch ] = "** Foutieve uitdrukking **" ;
+ TEXT [ spanish ] = "** Expresión errónea **" ;
+ TEXT [ english_us ] = "** Expression is faulty **" ;
+ TEXT[ chinese_simplified ] = "** ´íÎóµÄ±í´ïʽ **";
+ TEXT[ russian ] = "** Îøèáêè â âûðàæåíèè **";
+ TEXT[ polish ] = "** Nieprawid³owe wyra¿enie **";
+ TEXT[ japanese ] = "**ŠÔˆá‚Á‚½•\\Œ»**";
+ TEXT[ chinese_traditional ] = "** ¿ù»~ªºªí¹F¦¡ **";
+ TEXT[ arabic ] = "** ÊÚÈíÑ ÎÇØÆ **";
+ TEXT[ greek ] = "** ÅóöáëìÝíç Ýêöñáóç **";
+ TEXT[ korean ] = "**½ÄÀÌ À߸øµÇ¾ú½À´Ï´Ù **";
+ TEXT[ turkish ] = "** Yanlýþ ifade **";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_GETREFFLD_UP
+ {
+ TEXT = "oben" ;
+ TEXT [ English ] = "above" ;
+ Text [ dutch ] = "boven" ;
+ Text [ english_us ] = "above" ;
+ Text [ italian ] = "Sopra" ;
+ Text [ spanish ] = "arriba" ;
+ Text [ french ] = "en haut" ;
+ Text [ swedish ] = "över" ;
+ Text [ danish ] = "foroven" ;
+ Text [ portuguese ] = "acima" ;
+ Text [ portuguese_brazilian ] = "oben" ;
+ Text[ chinese_simplified ] = "ÉÏ";
+ Text[ russian ] = "ââåðõó";
+ Text[ polish ] = "w górze";
+ Text[ japanese ] = "ã";
+ Text[ chinese_traditional ] = "¤W";
+ Text[ arabic ] = "ÃÚáì";
+ Text[ greek ] = "ðÜíù";
+ Text[ korean ] = "À§¿¡";
+ Text[ turkish ] = "üst";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_GETREFFLD_DOWN
+ {
+ TEXT = "unten" ;
+ TEXT [ English ] = "below" ;
+ Text [ dutch ] = "beneden" ;
+ Text [ english_us ] = "below" ;
+ Text [ italian ] = "Sotto" ;
+ Text [ spanish ] = "abajo" ;
+ Text [ french ] = "en bas" ;
+ Text [ swedish ] = "under" ;
+ Text [ danish ] = "forneden" ;
+ Text [ portuguese ] = "abaixo" ;
+ Text [ portuguese_brazilian ] = "unten" ;
+ Text[ chinese_simplified ] = "ÏÂ";
+ Text[ russian ] = "âíèçó";
+ Text[ polish ] = "w dole";
+ Text[ japanese ] = "‰º";
+ Text[ chinese_traditional ] = "¤U";
+ Text[ arabic ] = "ÃÓÝá";
+ Text[ greek ] = "êÜôù";
+ Text[ korean ] = "¾Æ·¡";
+ Text[ turkish ] = "alt";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_ALLPAGE_HEADFOOT
+ {
+ TEXT = "Alle" ;
+ TEXT [ English ] = "All" ;
+ Text [ english_us ] = "All" ;
+ Text [ italian ] = "Tutti" ;
+ Text [ spanish ] = "Todos" ;
+ Text [ french ] = "Tous" ;
+ Text [ dutch ] = "alle" ;
+ Text [ swedish ] = "Alla" ;
+ Text [ danish ] = "Alle" ;
+ Text [ portuguese ] = "Todos" ;
+ Text [ portuguese_brazilian ] = "Alle" ;
+ Text[ chinese_simplified ] = "È«²¿";
+ Text[ russian ] = "Âñå";
+ Text[ polish ] = "Wszystkie";
+ Text[ japanese ] = "‚·‚ׂÄ";
+ Text[ chinese_traditional ] = "¥þ³¡";
+ Text[ arabic ] = "Çáßá";
+ Text[ greek ] = "¼ëá";
+ Text[ korean ] = "Àüü";
+ Text[ turkish ] = "Tümü";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_TEMPLATE_NONE
+ {
+ Text = "keine" ;
+ Text [ ENGLISH ] = "none" ;
+ Text [ dutch ] = "geen" ;
+ Text [ english_us ] = "None" ;
+ Text [ swedish ] = "ingen" ;
+ Text [ danish ] = "Ingen" ;
+ Text [ italian ] = "Senza" ;
+ Text [ spanish ] = "Ninguno" ;
+ Text [ french ] = "Aucun(e)" ;
+ Text [ portuguese_brazilian ] = "keine" ;
+ Text [ portuguese ] = "Nenhum" ;
+ Text[ chinese_simplified ] = "ÎÞ";
+ Text[ russian ] = "áåç";
+ Text[ polish ] = "brak";
+ Text[ japanese ] = "‚È‚µ";
+ Text[ chinese_traditional ] = "µL";
+ Text[ arabic ] = "ÈÏæä";
+ Text[ greek ] = "êáíÝíá";
+ Text[ korean ] = "¾øÀ½";
+ Text[ turkish ] = "yok";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_FIELD_FIXED
+ {
+ TEXT = "(fix)" ;
+ TEXT [ English ] = "(fix)" ;
+ TEXT [ norwegian ] = "(fix)" ;
+ TEXT [ italian ] = "(fissa)" ;
+ TEXT [ portuguese_brazilian ] = "(fix)" ;
+ TEXT [ portuguese ] = "(fixa)" ;
+ TEXT [ finnish ] = "(vakio)" ;
+ TEXT [ danish ] = "(fast)" ;
+ TEXT [ french ] = "(fixe)" ;
+ TEXT [ swedish ] = "(fix)" ;
+ TEXT [ dutch ] = "(vast)" ;
+ TEXT [ spanish ] = "(fija)" ;
+ TEXT [ english_us ] = "(fixed)" ;
+ TEXT[ chinese_simplified ] = "(¹Ì¶¨)";
+ TEXT[ russian ] = "(ôèêñ.)";
+ TEXT[ polish ] = "(sta³y)";
+ TEXT[ japanese ] = "(•ÏX•s‰Â)";
+ TEXT[ chinese_traditional ] = "(©T©w)";
+ TEXT[ arabic ] = "(ËÇÈÊ)";
+ TEXT[ greek ] = "(óôáèåñÜ)";
+ TEXT[ korean ] = "(°íÁ¤µÊ)";
+ TEXT[ turkish ] = "(sabit)";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_TOI
+ {
+ TEXT = "Stichwortverzeichnis" ;
+ TEXT [ English ] = "Index" ;
+ TEXT [ norwegian ] = "Stikkordregister" ;
+ TEXT [ italian ] = "Indice analitico" ;
+ TEXT [ portuguese_brazilian ] = "Índice" ;
+ TEXT [ portuguese ] = "Índice remissivo" ;
+ TEXT [ finnish ] = "Hakemisto" ;
+ TEXT [ danish ] = "Stikordsregister" ;
+ TEXT [ french ] = "Index lexical" ;
+ TEXT [ swedish ] = "Sakregister" ;
+ TEXT [ dutch ] = "Index" ;
+ TEXT [ spanish ] = "Índice alfabético" ;
+ TEXT [ english_us ] = "Alphabetical Index" ;
+ TEXT[ chinese_simplified ] = "Ë÷Òý";
+ TEXT[ russian ] = "Ïðåäìåòíûé óêàçàòåëü";
+ TEXT[ polish ] = "Zestaw hase³";
+ TEXT[ japanese ] = "õˆø";
+ TEXT[ chinese_traditional ] = "¯Á¤Þ¥Ø¿ý";
+ TEXT[ arabic ] = "ÝåÑÓ ÃÈÌÏí";
+ TEXT[ greek ] = "ÅõñåôÞñéï ëÝîåùí";
+ TEXT[ korean ] = "¾ËÆĺª¼øÀÇ »öÀÎ";
+ TEXT[ turkish ] = "Alfabetik dizin";
+ TEXT[ language_user1 ] = " ";
+ };
+
+ String STR_TOU
+ {
+ TEXT = "Benutzerdefiniert" ;
+ TEXT [ English ] = "User-defined" ;
+ TEXT [ norwegian ] = "Brukerdefinert tabell for" ;
+ TEXT [ italian ] = "Indice personalizzato" ;
+ TEXT [ portuguese_brazilian ] = "Tabela definida pelo usuário de" ;
+ TEXT [ portuguese ] = "Personalizado" ;
+ TEXT [ finnish ] = "Käyttäjän määrittämä taulukko: " ;
+ TEXT [ danish ] = "Brugerdefineret" ;
+ TEXT [ french ] = "Index personnalisé" ;
+ TEXT [ swedish ] = "Användardefinierad" ;
+ TEXT [ dutch ] = "Gebruikersindex" ;
+ TEXT [ spanish ] = "Índice del usuario" ;
+ TEXT [ english_us ] = "User-Defined" ;
+ TEXT[ chinese_simplified ] = "ʹÓÃÕß×Ô¶¨";
+ TEXT[ russian ] = "Çàäàíî ïîëüçîâàòåëåì";
+ TEXT[ polish ] = "Zdefiniowany przez u¿ytkownika";
+ TEXT[ japanese ] = "Õ°»Þ°’è‹`";
+ TEXT[ chinese_traditional ] = "¦Û­q";
+ TEXT[ arabic ] = "ãõÚÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã";
+ TEXT[ greek ] = "ÏñéóìÝíï áðü ÷ñÞóôç";
+ TEXT[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ »öÀÎ";
+ TEXT[ turkish ] = "Kullanýcý tanýmlý";
+ TEXT[ language_user1 ] = " ";
+ };
+
+ String STR_TOC
+ {
+ TEXT = "Inhaltsverzeichnis" ;
+ TEXT [ English ] = "Table of contents" ;
+ TEXT [ norwegian ] = "Innholdsfortegnelse" ;
+ TEXT [ italian ] = "Indice generale" ;
+ TEXT [ portuguese_brazilian ] = "Tabela de conteúdos" ;
+ TEXT [ portuguese ] = "Índice geral" ;
+ TEXT [ finnish ] = "Sisällysluettelo" ;
+ TEXT [ danish ] = "Indholdsfortegnelse" ;
+ TEXT [ french ] = "Table des matières" ;
+ TEXT [ swedish ] = "Innehållsförteckning" ;
+ TEXT [ dutch ] = "Inhoudsopgave" ;
+ TEXT [ spanish ] = "Índice de contenido" ;
+ TEXT [ english_us ] = "Table of Contents" ;
+ TEXT[ chinese_simplified ] = "ÄÚÈÝĿ¼";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ russian ] = "Îãëàâëåíèå";
+ TEXT[ polish ] = "Spis treœci";
+ TEXT[ japanese ] = "–ÚŽŸ";
+ TEXT[ chinese_traditional ] = "¤º®e¥Ø¿ý";
+ TEXT[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ";
+ TEXT[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí";
+ TEXT[ korean ] = "³»¿ë Ç¥";
+ TEXT[ turkish ] = "Ýçindekiler dizini";
+ };
+
+ String STR_TOX_AUTH
+ {
+ TEXT = "Literaturverzeichnis" ;
+ TEXT [ English ] = "Table of authorities" ;
+ TEXT[ english_us ] = "Bibliography";
+ TEXT[ portuguese ] = "Bibliografia";
+ TEXT[ russian ] = "Ñïèñîê ëèòåðàòóðû";
+ TEXT[ greek ] = "Âéâëéïãñáößá";
+ TEXT[ dutch ] = "Literatuurlijst";
+ TEXT[ french ] = "Bibliographie";
+ TEXT[ spanish ] = "Bibliografía";
+ TEXT[ italian ] = "Bibliografia";
+ TEXT[ danish ] = "Litteraturliste";
+ TEXT[ swedish ] = "Litteraturförteckning";
+ TEXT[ polish ] = "Spis literatury";
+ TEXT[ portuguese_brazilian ] = "Table of authorities";
+ TEXT[ japanese ] = "ŽQl•¶Œ£•\\";
+ TEXT[ korean ] = "Âü°í¹®Çå";
+ TEXT[ chinese_simplified ] = "ÎÄÏ×Ŀ¼";
+ TEXT[ chinese_traditional ] = "¤åÄm¥Ø¿ý";
+ TEXT[ arabic ] = "ÝåÑÓ ÇáãÑÇÌÚ";
+ TEXT[ turkish ] = "Kaynakça dizini";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_TOX_TBL
+ {
+ TEXT = "Tabellenverzeichnis" ;
+ TEXT [ English ] = "Table of tables" ;
+ TEXT[ english_us ] = "Index of Tables";
+ TEXT[ portuguese ] = "Índice de tabelas";
+ TEXT[ russian ] = "Ñïèñîê òàáëèö";
+ TEXT[ greek ] = "ÅõñåôÞñéï ðéíÜêùí";
+ TEXT[ dutch ] = "Tabellenregister";
+ TEXT[ french ] = "Index des tables";
+ TEXT[ spanish ] = "Índice de tablas";
+ TEXT[ italian ] = "Indice delle tabelle";
+ TEXT[ danish ] = "Tabeloversigt";
+ TEXT[ swedish ] = "Tabellförteckning";
+ TEXT[ polish ] = "Spis tabel";
+ TEXT[ portuguese_brazilian ] = "Table of tables";
+ TEXT[ japanese ] = "•\\‚Ìõˆø";
+ TEXT[ korean ] = "Ç¥ »öÀÎ";
+ TEXT[ chinese_simplified ] = "±í¸ñĿ¼";
+ TEXT[ chinese_traditional ] = "ªí®æ¥Ø¿ý";
+ TEXT[ arabic ] = "ÝåÑÓ ÇáÌÏÇæá";
+ TEXT[ turkish ] = "Tablo dizini";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_TOX_OBJ
+ {
+ TEXT = "Objektverzeichnis" ;
+ TEXT [ English ] = "Table of objects" ;
+ TEXT[ english_us ] = "Table of Objects";
+ TEXT[ portuguese ] = "Índice de objectos";
+ TEXT[ russian ] = "Ñïèñîê îáúåêòîâ";
+ TEXT[ greek ] = "ÊáôÜëïãïò áíôéêåéìÝíùí";
+ TEXT[ dutch ] = "Objectenregister";
+ TEXT[ french ] = "Index des objets";
+ TEXT[ spanish ] = "Índice de objetos";
+ TEXT[ italian ] = "Indice degli oggetti";
+ TEXT[ danish ] = "Objektindeks";
+ TEXT[ swedish ] = "Objektförteckning";
+ TEXT[ polish ] = "Spis obiektów";
+ TEXT[ portuguese_brazilian ] = "Table of objects";
+ TEXT[ japanese ] = "µÌÞ¼Þª¸Ä‚Ìõˆø";
+ TEXT[ korean ] = "°³Ã¼ »öÀÎ";
+ TEXT[ chinese_simplified ] = "¶ÔÏóĿ¼";
+ TEXT[ chinese_traditional ] = "ª«¥ó¥Ø¿ý";
+ TEXT[ arabic ] = "ÝåÑÓ ÇáßÇÆäÇÊ";
+ TEXT[ turkish ] = "Nesne dizini";
+ TEXT[ language_user1 ] = " ";
+ };
+ String STR_TOX_ILL
+ {
+ TEXT = "Abbildungsverzeichnis" ;
+ TEXT [ English ] = "Table of illustrations" ;
+ TEXT[ english_us ] = "Illustration Index";
+ TEXT[ portuguese ] = "Índice de ilustrações";
+ TEXT[ russian ] = "Ñïèñîê ðèñóíêîâ";
+ TEXT[ greek ] = "ÊáôÜëïãïò åéêüíùí";
+ TEXT[ dutch ] = "Afbeeldingenregister";
+ TEXT[ french ] = "Index des illustrations";
+ TEXT[ spanish ] = "Índice de ilustraciones";
+ TEXT[ italian ] = "Indice delle illustrazioni";
+ TEXT[ danish ] = "Figuroversigt";
+ TEXT[ swedish ] = "Illustrationsförteckning";
+ TEXT[ polish ] = "Spis ilustracji";
+ TEXT[ portuguese_brazilian ] = "Table of illustrations";
+ TEXT[ japanese ] = "}‚Ìõˆø";
+ TEXT[ korean ] = "»ðÈ­ »öÀÎ";
+ TEXT[ chinese_simplified ] = "²åͼĿ¼";
+ TEXT[ chinese_traditional ] = "´¡¹Ï¥Ø¿ý";
+ TEXT[ arabic ] = "ÝåÑÓ ÇáÕæÑ ÇáÅíÖÇÍíÉ";
+ TEXT[ turkish ] = "Resim dizini";
+ TEXT[ language_user1 ] = " ";
+ };
+
+
+ // SubType DocInfo
+ //
+ String FLD_DOCINFO_TITEL
+ {
+ TEXT = "Titel" ;
+ TEXT [ English ] = "Title" ;
+ TEXT [ norwegian ] = "Tittel" ;
+ TEXT [ italian ] = "Titolo" ;
+ TEXT [ portuguese_brazilian ] = "Título" ;
+ TEXT [ portuguese ] = "Capitulo" ;
+ TEXT [ finnish ] = "Otsikko" ;
+ TEXT [ danish ] = "Titel" ;
+ TEXT [ french ] = "Titre" ;
+ TEXT [ swedish ] = "Rubrik" ;
+ TEXT [ dutch ] = "Titel" ;
+ TEXT [ spanish ] = "Título" ;
+ TEXT [ english_us ] = "Title" ;
+ TEXT[ chinese_simplified ] = "±êÌâ";
+ TEXT[ russian ] = "Çàãëàâèå";
+ TEXT[ polish ] = "Tytu³";
+ TEXT[ japanese ] = "À²ÄÙ";
+ TEXT[ chinese_traditional ] = "¼ÐÃD";
+ TEXT[ arabic ] = "ÇáÚäæÇä";
+ TEXT[ greek ] = "Ôßôëïò";
+ TEXT[ korean ] = "Á¦¸ñ";
+ TEXT[ turkish ] = "Baþlýk";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_THEMA
+ {
+ TEXT = "Thema" ;
+ TEXT [ English ] = "Subject" ;
+ TEXT [ norwegian ] = "Emne" ;
+ TEXT [ italian ] = "Argomento" ;
+ TEXT [ portuguese_brazilian ] = "Assunto" ;
+ TEXT [ portuguese ] = "Assunto" ;
+ TEXT [ finnish ] = "Aihe" ;
+ TEXT [ danish ] = "Emne" ;
+ TEXT [ french ] = "Sujet" ;
+ TEXT [ swedish ] = "Tema" ;
+ TEXT [ dutch ] = "Onderwerp" ;
+ TEXT [ spanish ] = "Tema" ;
+ TEXT [ english_us ] = "Subject" ;
+ TEXT[ chinese_simplified ] = "Ö÷Ìâ";
+ TEXT[ russian ] = "Òåìà";
+ TEXT[ polish ] = "Temat";
+ TEXT[ japanese ] = "ðÏ";
+ TEXT[ chinese_traditional ] = "¥DÃD";
+ TEXT[ arabic ] = "ÇáãæÖæÚ";
+ TEXT[ greek ] = "ÈÝìá";
+ TEXT[ korean ] = "ÁÖÁ¦";
+ TEXT[ turkish ] = "Konu";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_KEYS
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Schlüsselwörter : Schl³sselw÷rter */
+ TEXT = "Schlüsselwörter" ;
+ TEXT [ English ] = "Keywords" ;
+ TEXT [ norwegian ] = "Nøkkelord" ;
+ TEXT [ italian ] = "Parole chiave" ;
+ TEXT [ portuguese_brazilian ] = "Palavras-chave" ;
+ TEXT [ portuguese ] = "Palavras-chave" ;
+ TEXT [ finnish ] = "Avainsanat" ;
+ TEXT [ danish ] = "Nøgleord" ;
+ TEXT [ french ] = "Mots-clés" ;
+ TEXT [ swedish ] = "Nyckelord" ;
+ TEXT [ dutch ] = "Sleutelwoorden" ;
+ TEXT [ spanish ] = "Palabras clave" ;
+ TEXT [ english_us ] = "Keywords" ;
+ TEXT[ chinese_simplified ] = "¹Ø¼ü×Ö";
+ TEXT[ russian ] = "Êëþ÷åâûå ñëîâà";
+ TEXT[ polish ] = "S³owa kluczowe";
+ TEXT[ japanese ] = "·°Ü°ÄÞ";
+ TEXT[ chinese_traditional ] = "ÃöÁä¦r";
+ TEXT[ arabic ] = "ÇáßáãÇÊ ÇáÃÓÇÓíÉ";
+ TEXT[ greek ] = "ËÝîåéò êëåéäéÜ";
+ TEXT[ korean ] = "Å° ¿öµå";
+ TEXT[ turkish ] = "Anahtar sözcük";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_COMMENT
+ {
+ TEXT = "Beschreibung" ;
+ TEXT [ English ] = "Description" ;
+ TEXT [ norwegian ] = "Beskrivelse" ;
+ TEXT [ italian ] = "Descrizione" ;
+ TEXT [ portuguese_brazilian ] = "Descrição" ;
+ TEXT [ portuguese ] = "Descrição" ;
+ TEXT [ finnish ] = "Kuvaus" ;
+ TEXT [ danish ] = "Beskrivelse" ;
+ TEXT [ french ] = "Description" ;
+ TEXT [ swedish ] = "Beskrivning" ;
+ TEXT [ dutch ] = "Beschrijving" ;
+ TEXT [ spanish ] = "Descripción" ;
+ TEXT [ english_us ] = "Description" ;
+ TEXT[ chinese_simplified ] = "˵Ã÷";
+ TEXT[ russian ] = "Îïèñàíèå";
+ TEXT[ polish ] = "Opis";
+ TEXT[ japanese ] = "ºÒÝÄ";
+ TEXT[ chinese_traditional ] = "´y­z";
+ TEXT[ arabic ] = "ÇáæÕÝ";
+ TEXT[ greek ] = "ÐåñéãñáöÞ";
+ TEXT[ korean ] = "¼³¸í";
+ TEXT[ turkish ] = "Taným";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_INFO1
+ {
+ TEXT = "Info 0" ;
+ TEXT [ English ] = "Info 0" ;
+ TEXT [ norwegian ] = "Info 0" ;
+ TEXT [ italian ] = "Info 0" ;
+ TEXT [ portuguese_brazilian ] = "Informação 0" ;
+ TEXT [ portuguese ] = "Informação 0" ;
+ TEXT [ finnish ] = "Tieto 0" ;
+ TEXT [ danish ] = "Info 0" ;
+ TEXT [ french ] = "Info 0" ;
+ TEXT [ swedish ] = "Info 0" ;
+ TEXT [ dutch ] = "Info 0" ;
+ TEXT [ spanish ] = "Info 0" ;
+ TEXT [ english_us ] = "Info 0" ;
+ TEXT[ chinese_simplified ] = "ÐÅÏ¢ 0";
+ TEXT[ russian ] = "Èíôî 0";
+ TEXT[ polish ] = "Informacja 0";
+ TEXT[ japanese ] = "î•ñ 0";
+ TEXT[ chinese_traditional ] = "¸ê°T 0";
+ TEXT[ arabic ] = "ãÚáæãÉ 0";
+ TEXT[ greek ] = "Ðëçñïöïñßåò 0";
+ TEXT[ korean ] = "Á¤º¸ 0";
+ TEXT[ turkish ] = "Bilgi 0";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_INFO2
+ {
+ TEXT = "Info 1" ;
+ TEXT [ English ] = "Info 1" ;
+ TEXT [ norwegian ] = "Info 1" ;
+ TEXT [ italian ] = "Info 1" ;
+ TEXT [ portuguese_brazilian ] = "Informação 1" ;
+ TEXT [ portuguese ] = "Informação 1" ;
+ TEXT [ finnish ] = "Tieto 1" ;
+ TEXT [ danish ] = "Info 1" ;
+ TEXT [ french ] = "Info 1" ;
+ TEXT [ swedish ] = "Info 1" ;
+ TEXT [ dutch ] = "Info 1" ;
+ TEXT [ spanish ] = "Info 1" ;
+ TEXT [ english_us ] = "Info 1" ;
+ TEXT[ chinese_simplified ] = "ÐÅÏ¢ 1";
+ TEXT[ russian ] = "Èíôî 1";
+ TEXT[ polish ] = "Informacja 1";
+ TEXT[ japanese ] = "î•ñ 1";
+ TEXT[ chinese_traditional ] = "¸ê°T 1";
+ TEXT[ arabic ] = "ãÚáæãÉ 1";
+ TEXT[ greek ] = "Ðëçñïöïñßåò 1";
+ TEXT[ korean ] = "Á¤º¸ 1";
+ TEXT[ turkish ] = "Bilgi 1";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_INFO3
+ {
+ TEXT = "Info 2" ;
+ TEXT [ English ] = "Info 2" ;
+ TEXT [ norwegian ] = "Info 2" ;
+ TEXT [ italian ] = "Info 2" ;
+ TEXT [ portuguese_brazilian ] = "Informação 2" ;
+ TEXT [ portuguese ] = "Informação 2" ;
+ TEXT [ finnish ] = "Tieto 2" ;
+ TEXT [ danish ] = "Info 2" ;
+ TEXT [ french ] = "Info 2" ;
+ TEXT [ swedish ] = "Info 2" ;
+ TEXT [ dutch ] = "Info 2" ;
+ TEXT [ spanish ] = "Info 2" ;
+ TEXT [ english_us ] = "Info 2" ;
+ TEXT[ chinese_simplified ] = "ÐÅÏ¢ 2";
+ TEXT[ russian ] = "Èíôî 2";
+ TEXT[ polish ] = "Informacja 2";
+ TEXT[ japanese ] = "î•ñ 2";
+ TEXT[ chinese_traditional ] = "¸ê°T 2";
+ TEXT[ arabic ] = "ãÚáæãÉ 2";
+ TEXT[ greek ] = "Ðëçñïöïñßåò 2";
+ TEXT[ korean ] = "Á¤º¸ 2";
+ TEXT[ turkish ] = "Bilgi 2";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_INFO4
+ {
+ TEXT = "Info 3" ;
+ TEXT [ English ] = "Info 3" ;
+ TEXT [ norwegian ] = "Info 3" ;
+ TEXT [ italian ] = "Info 3" ;
+ TEXT [ portuguese_brazilian ] = "Informação 3" ;
+ TEXT [ portuguese ] = "Informação 3" ;
+ TEXT [ finnish ] = "Tieto 3" ;
+ TEXT [ danish ] = "Info 3" ;
+ TEXT [ french ] = "Info 3" ;
+ TEXT [ swedish ] = "Info 3" ;
+ TEXT [ dutch ] = "Info 3" ;
+ TEXT [ spanish ] = "Info 3" ;
+ TEXT [ english_us ] = "Info 3" ;
+ TEXT[ chinese_simplified ] = "ÐÅÏ¢ 3";
+ TEXT[ russian ] = "Èíôî 3";
+ TEXT[ polish ] = "Informacja 3";
+ TEXT[ japanese ] = "î•ñ 3";
+ TEXT[ chinese_traditional ] = "¸ê°T 3";
+ TEXT[ arabic ] = "ãÚáæãÉ 3";
+ TEXT[ greek ] = "Ðëçñïöïñßåò 3";
+ TEXT[ korean ] = "Á¤º¸ 3";
+ TEXT[ turkish ] = "Bilgi 3";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_CREATE
+ {
+ TEXT = "Erzeugung" ;
+ TEXT [ English ] = "Created" ;
+ TEXT [ norwegian ] = "Laget" ;
+ TEXT [ italian ] = "Creato" ;
+ TEXT [ portuguese_brazilian ] = "Criado" ;
+ TEXT [ portuguese ] = "Criado" ;
+ TEXT [ finnish ] = "Luotu" ;
+ TEXT [ danish ] = "Oprettet" ;
+ TEXT [ french ] = "Création" ;
+ TEXT [ swedish ] = "Skapad" ;
+ TEXT [ dutch ] = "Gemaakt" ;
+ TEXT [ spanish ] = "Creación" ;
+ TEXT [ english_us ] = "Created" ;
+ TEXT[ chinese_simplified ] = "½¨Á¢";
+ TEXT[ russian ] = "Ñîçäàíèå";
+ TEXT[ polish ] = "Utworzenie";
+ TEXT[ japanese ] = "ì¬";
+ TEXT[ chinese_traditional ] = "¥Í¦¨";
+ TEXT[ arabic ] = "ÅäÔÇÁ";
+ TEXT[ greek ] = "Äçìéïõñãßá";
+ TEXT[ korean ] = "¸¸µé¾îÁ³½À´Ï´Ù.";
+ TEXT[ turkish ] = "Oluþturma";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_CHANGE
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Änderung : Žnderung */
+ TEXT = "Änderung" ;
+ TEXT [ English ] = "Changed" ;
+ TEXT [ norwegian ] = "Endret" ;
+ TEXT [ italian ] = "Modifica" ;
+ TEXT [ portuguese_brazilian ] = "Modificado" ;
+ TEXT [ portuguese ] = "Alteração" ;
+ TEXT [ finnish ] = "Muokattu" ;
+ TEXT [ danish ] = "Ændring" ;
+ TEXT [ french ] = "Modification" ;
+ TEXT [ swedish ] = "Ändring" ;
+ TEXT [ dutch ] = "Wijziging" ;
+ TEXT [ spanish ] = "Modificación" ;
+ TEXT [ english_us ] = "Modified" ;
+ TEXT[ chinese_simplified ] = "¸ü¸Ä";
+ TEXT[ russian ] = "Èçìåíåíèå";
+ TEXT[ polish ] = "Modyfikacja";
+ TEXT[ japanese ] = "•ÏX";
+ TEXT[ chinese_traditional ] = "Åܧó";
+ TEXT[ arabic ] = "ÊÚÏíá";
+ TEXT[ greek ] = "ÁëëáãÞ";
+ TEXT[ korean ] = "¼öÁ¤µÊ";
+ TEXT[ turkish ] = "Deðiþtirme";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_PRINT
+ {
+ TEXT = "Letzter Druck" ;
+ TEXT [ English ] = "Printed" ;
+ TEXT [ norwegian ] = "Skrevet ut" ;
+ TEXT [ italian ] = "Ultima stampa" ;
+ TEXT [ portuguese_brazilian ] = "Impresso" ;
+ TEXT [ portuguese ] = "Última impressão" ;
+ TEXT [ finnish ] = "Tulostettu" ;
+ TEXT [ danish ] = "Sidste udskrift" ;
+ TEXT [ french ] = "Dernière impression" ;
+ TEXT [ swedish ] = "Senaste utskrift" ;
+ TEXT [ dutch ] = "Laatste afdruk" ;
+ TEXT [ spanish ] = "Última impresión" ;
+ TEXT [ english_us ] = "Last printed" ;
+ TEXT[ chinese_simplified ] = "ÉÏÒ»´Î´òÓ¡";
+ TEXT[ russian ] = "Ïîñëåäíÿÿ ðàñïå÷àòêà";
+ TEXT[ polish ] = "Ostatni wydruk";
+ TEXT[ japanese ] = "ÅŒã‚É‚µ‚½ˆóü";
+ TEXT[ chinese_traditional ] = "¤W¤@¦¸¦C¦L";
+ TEXT[ arabic ] = "ÇáØÈÇÚÉ ÇáÃÎíÑÉ";
+ TEXT[ greek ] = "Ôåëåõôáßá åêôýðùóç";
+ TEXT[ korean ] = "¸¶Áö¸· Àμâ";
+ TEXT[ turkish ] = "Son yazdýrma";
+ TEXT[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_DOCNO
+ {
+ TEXT = "Dokumentnummer" ;
+ TEXT [ English ] = "Document number" ;
+ Text [ dutch ] = "Documentnummer" ;
+ Text [ english_us ] = "Document number" ;
+ Text [ italian ] = "Numero di documento" ;
+ Text [ spanish ] = "Número del documento" ;
+ Text [ french ] = "Numéro du document" ;
+ Text [ swedish ] = "Dokumentnummer" ;
+ Text [ danish ] = "Dokumentnummer" ;
+ Text [ portuguese ] = "Número do documento" ;
+ Text [ portuguese_brazilian ] = "Dokumentnummer" ;
+ Text[ chinese_simplified ] = "ÎĵµºÅÂë";
+ Text[ russian ] = "Íîìåð äîêóìåíòà";
+ Text[ polish ] = "Numer dokumentu";
+ Text[ japanese ] = "ÄÞ·­ÒÝĔԆ";
+ Text[ chinese_traditional ] = "¤å¥ó¸¹½X";
+ Text[ arabic ] = "ÑÞã ÇáãÓÊäÏ";
+ Text[ greek ] = "Áñéèìüò åããñÜöïõ";
+ Text[ korean ] = "¹®¼­ ¹øÈ£";
+ Text[ turkish ] = "Belge numarasý";
+ Text[ language_user1 ] = " ";
+ };
+ String FLD_DOCINFO_EDIT
+ {
+ TEXT = "Bearbeitungszeit" ;
+ TEXT [ English ] = "Edit time" ;
+ Text [ english_us ] = "Editing time" ;
+ Text [ italian ] = "Tempo di modifica" ;
+ Text [ spanish ] = "Tiempo de edición" ;
+ Text [ french ] = "Durée d'édition" ;
+ Text [ dutch ] = "Bewerkingstijd" ;
+ Text [ swedish ] = "Redigeringstid" ;
+ Text [ danish ] = "Redigeringstid" ;
+ Text [ portuguese ] = "Tempo de edição" ;
+ Text [ portuguese_brazilian ] = "Bearbeitungszeit" ;
+ Text[ chinese_simplified ] = "±à¼­Ê±¼ä";
+ Text[ russian ] = "Âðåìÿ îáðàáîòêè";
+ Text[ polish ] = "Czas edycji";
+ Text[ japanese ] = "•ÒWŽžŠÔ";
+ Text[ chinese_traditional ] = "½s¿è®É¶¡";
+ Text[ arabic ] = "æÞÊ ÇáÊÍÑíÑ";
+ Text[ greek ] = "×ñüíïò åðåîåñãáóßáò";
+ Text[ korean ] = "ÆíÁý ½Ã°£";
+ Text[ turkish ] = "Düzenleme süresi";
+ Text[ language_user1 ] = " ";
+ };
+ BITMAP BMP_FRAME_ANCHOR { FILE = "anchor.bmp" ; };
+ BITMAP BMP_FRAME_DRAG_ANCHOR { FILE = "danchor.bmp" ; };
+};
+
+String STR_AUTH_TYPE_ARTICLE
+{
+ Text = "Zeitschriftenartikel" ;
+ Text [ ENGLISH ] = "Article" ;
+ Text[ english_us ] = "Magazine Article";
+ Text[ portuguese ] = "Artigo de revista";
+ Text[ russian ] = "Ñòàòüÿ èç ãàçåòû/æóðíàëà";
+ Text[ greek ] = "¢ñèñï ðåñéïäéêïý";
+ Text[ dutch ] = "Krantenartikel";
+ Text[ french ] = "Article (revue)";
+ Text[ spanish ] = "Artículo de revista";
+ Text[ italian ] = "Articolo di rivista";
+ Text[ danish ] = "Tidsskriftsartikel";
+ Text[ swedish ] = "Tidskriftsartikel";
+ Text[ polish ] = "Artyku³ czasopisma";
+ Text[ portuguese_brazilian ] = "Article";
+ Text[ japanese ] = "ŽGŽ‹LŽ–";
+ Text[ korean ] = "ÀâÁö ±â»ç";
+ Text[ chinese_simplified ] = "ÔÓÖ¾ÎÄÕÂ";
+ Text[ chinese_traditional ] = "Âø§Ó¤å³¹";
+ Text[ arabic ] = "ãÞÇáÉ ãÌáÉ";
+ Text[ turkish ] = "Dergi makalesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_BOOK
+{
+ Text = "Buch" ;
+ Text [ ENGLISH ] = "Book" ;
+ Text[ english_us ] = "Book";
+ Text[ portuguese ] = "Livro";
+ Text[ russian ] = "Êíèãà";
+ Text[ greek ] = "Âéâëßï";
+ Text[ dutch ] = "Boek";
+ Text[ french ] = "Livre";
+ Text[ spanish ] = "Libro";
+ Text[ italian ] = "Libro";
+ Text[ danish ] = "Bog";
+ Text[ swedish ] = "Bok";
+ Text[ polish ] = "Ksi¹¿ka";
+ Text[ portuguese_brazilian ] = "Book";
+ Text[ japanese ] = "–{";
+ Text[ korean ] = "Ã¥";
+ Text[ chinese_simplified ] = "Êé¼®";
+ Text[ chinese_traditional ] = "®ÑÄy";
+ Text[ arabic ] = "ßÊÇÈ";
+ Text[ turkish ] = "Kitap";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_BOOKLET
+{
+ Text = "Broschüre" ;
+ Text [ ENGLISH ] = "Booklet" ;
+ Text[ english_us ] = "Brochures";
+ Text[ portuguese ] = "Brochura";
+ Text[ russian ] = "Áðîøþðà";
+ Text[ greek ] = "Ìðñïóïýñá";
+ Text[ dutch ] = "Brochure";
+ Text[ french ] = "Brochure";
+ Text[ spanish ] = "Folleto";
+ Text[ italian ] = "Dépliant";
+ Text[ danish ] = "Brochure";
+ Text[ swedish ] = "Broschyr";
+ Text[ polish ] = "Broszura";
+ Text[ portuguese_brazilian ] = "Booklet";
+ Text[ japanese ] = "ÊßÝÌÚ¯Ä";
+ Text[ korean ] = "ÆÊÇ÷¿";
+ Text[ chinese_simplified ] = "С²á×Ó";
+ Text[ chinese_traditional ] = "¤p¤â¥U";
+ Text[ arabic ] = "ßõÊíÈ";
+ Text[ turkish ] = "Broþür";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_CONFERENCE
+{
+ Text = "Konferenzbericht" ;
+ Text [ ENGLISH ] = "Conference report" ;
+ Text[ english_us ] = "Conference proceedings";
+ Text[ portuguese ] = "Relatório de conferência";
+ Text[ russian ] = "Ïðîòîêîë ñîâåùàíèÿ";
+ Text[ greek ] = "ÁíáöïñÜ óýóêåøçò";
+ Text[ dutch ] = "Conferentierapport";
+ Text[ french ] = "Rapport de conférence";
+ Text[ spanish ] = "Informe de conferencia";
+ Text[ italian ] = "Rapporto sulla conferenza";
+ Text[ danish ] = "Konferencerapport";
+ Text[ swedish ] = "Konferensrapport";
+ Text[ polish ] = "Sprawozdanie z konferencji";
+ Text[ portuguese_brazilian ] = "Conference report";
+ Text[ japanese ] = "‰ï‹c•ñ";
+ Text[ korean ] = "ȸÀÇ ÀýÂ÷";
+ Text[ chinese_simplified ] = "ÌÖÂۻᱨ¸æ";
+ Text[ chinese_traditional ] = "·|½Í³ø§i";
+ Text[ arabic ] = "ÊÞÑíÑ Úä ãÄÊãÑ";
+ Text[ turkish ] = "Toplantý raporu";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_INBOOK
+{
+ Text = "Buchauszug" ;
+ Text [ ENGLISH ] = "Book extract" ;
+ Text[ english_us ] = "Book excerpt";
+ Text[ portuguese ] = "Extracto de livro";
+ Text[ russian ] = "Âûïèñêà èç êíèãè";
+ Text[ greek ] = "Áðüóðáóìá âéâëßïõ";
+ Text[ dutch ] = "Boekuittreksel";
+ Text[ french ] = "Extrait de livre";
+ Text[ spanish ] = "Extracto de libro";
+ Text[ italian ] = "Brano";
+ Text[ danish ] = "Boguddrag";
+ Text[ swedish ] = "Bokutdrag";
+ Text[ polish ] = "Wyci¹g z ksi¹¿ki";
+ Text[ portuguese_brazilian ] = "Book extract";
+ Text[ japanese ] = "´–{";
+ Text[ korean ] = "¹ßÃé";
+ Text[ chinese_simplified ] = "Ê鼮ժ¼ÎÄ";
+ Text[ chinese_traditional ] = "®ÑÄyªº¤Þ¥Î¤å";
+ Text[ arabic ] = "ãÞÊÈÓÇÊ ãä ßÊÇÈ";
+ Text[ turkish ] = "Kitap bölümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_INCOLLECTION
+{
+ Text = "Buchauszug mit Titel" ;
+ Text [ ENGLISH ] = "Book extract with title" ;
+ Text[ english_us ] = "Book excerpt with title";
+ Text[ portuguese ] = "Extracto do livro com título";
+ Text[ russian ] = "Âûïèñêà èç êíèãè ñ íàçâàíèåì";
+ Text[ greek ] = "Áðüóðáóìá âéâëßïõ ìå ôßôëï";
+ Text[ dutch ] = "Boekuittreksel met titel";
+ Text[ french ] = "Extrait de livre avec titre";
+ Text[ spanish ] = "Extracto de libro con título";
+ Text[ italian ] = "Brano con titolo";
+ Text[ danish ] = "Boguddrag med titel";
+ Text[ swedish ] = "Bokutdrag med titel";
+ Text[ polish ] = "Wyci¹g z ksi¹¿ki z tytu³em";
+ Text[ portuguese_brazilian ] = "Book extract with title";
+ Text[ japanese ] = "À²ÄÙ•t‚«‚Ì´–{";
+ Text[ korean ] = "Á¦¸ñÀÌ Àִ å¹ßÃé";
+ Text[ chinese_simplified ] = "×¢Ã÷±êÌâµÄÊ鼮ժ¼ÎÄ";
+ Text[ chinese_traditional ] = "ª`©ú¼ÐÃDªº®ÑÄy¤Þ¥Î¤å";
+ Text[ arabic ] = "ãÞÊÈÓÇÊ ãä ßÊÇÈ ÐÇÊ ÚäæÇä";
+ Text[ turkish ] = "Baþlýklý kitap bölümü";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_INPROCEEDINGS
+{
+ Text = "Tagungsbericht" ;
+ Text [ ENGLISH ] = "Proceedings report" ;
+ Text[ english_us ] = "Conference proceedings";
+ Text[ portuguese ] = "Relatório sobre reunião";
+ Text[ russian ] = "Îò÷åò çàñåäàíèÿ";
+ Text[ greek ] = "Ðñùôüêïëëï óõíåäñßáóçò";
+ Text[ dutch ] = "Notulen van vergadering";
+ Text[ french ] = "Rapport de congrès";
+ Text[ spanish ] = "Informe de reunión";
+ Text[ italian ] = "Rapporto sulla conferenza";
+ Text[ danish ] = "Kongresberetning";
+ Text[ swedish ] = "Konferensrapport";
+ Text[ polish ] = "Sprawozdanie z obrady";
+ Text[ portuguese_brazilian ] = "Proceedings report";
+ Text[ japanese ] = "‰ï•ñ";
+ Text[ korean ] = "ȸÀÇ ÀýÂ÷";
+ Text[ chinese_simplified ] = "»áÒ鱨¸æ";
+ Text[ chinese_traditional ] = "·|ij³ø§i";
+ Text[ arabic ] = "ÈÑæÊæßæá ÇÌÊãÇÚ";
+ Text[ turkish ] = "Konferans raporu";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_JOURNAL
+{
+ Text = "Zeitschrift" ;
+ Text [ ENGLISH ] = "Journal" ;
+ Text[ english_us ] = "Magazine";
+ Text[ portuguese ] = "Revista";
+ Text[ russian ] = "Æóðíàë";
+ Text[ greek ] = "Ðåñéïäéêü";
+ Text[ dutch ] = "Tijdschrift";
+ Text[ french ] = "Revue";
+ Text[ spanish ] = "Revista";
+ Text[ italian ] = "Rivista";
+ Text[ danish ] = "Tidsskrift";
+ Text[ swedish ] = "Tidskrift";
+ Text[ polish ] = "Czasopismo";
+ Text[ portuguese_brazilian ] = "Journal";
+ Text[ japanese ] = "ŽGŽ";
+ Text[ korean ] = "ÀâÁö";
+ Text[ chinese_simplified ] = "ÔÓÖ¾";
+ Text[ chinese_traditional ] = "Âø§Ó";
+ Text[ arabic ] = "ãÌáÉ";
+ Text[ turkish ] = "Dergi";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_MANUAL
+{
+ Text = "Techn. Dokumentation" ;
+ Text [ ENGLISH ] = "Manual" ;
+ Text[ english_us ] = "Techn. documentation";
+ Text[ portuguese ] = "Documentação técn.";
+ Text[ russian ] = "Òåõíè÷åñêàÿ äîêóìåíòàöèÿ";
+ Text[ greek ] = "Ôå÷íéêü åã÷åéñßäéï";
+ Text[ dutch ] = "Technische documentatie";
+ Text[ french ] = "Documentation technique";
+ Text[ spanish ] = "Manual";
+ Text[ italian ] = "Documentazione tecnica";
+ Text[ danish ] = "Teknisk dokumentation";
+ Text[ swedish ] = "Teknisk dokumentation";
+ Text[ polish ] = "Dokumentacja techn.";
+ Text[ portuguese_brazilian ] = "Manual";
+ Text[ japanese ] = "ÏÆ­±Ù";
+ Text[ korean ] = "±â¼ú ¹®¼­";
+ Text[ chinese_simplified ] = "¼¼ÊõÎÄÏ×";
+ Text[ chinese_traditional ] = "§Þ³N¤åÄm";
+ Text[ arabic ] = "Ïáíá ÇÓÊÎÏÇã";
+ Text[ turkish ] = "Teknik dokümantasyon";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_MASTERSTHESIS
+{
+ Text = "Diplomarbeit" ;
+ Text [ ENGLISH ] = "Masters thesis" ;
+ Text[ english_us ] = "Thesis";
+ Text[ portuguese ] = "Tese de licenciatura";
+ Text[ russian ] = "Äèïëîìíàÿ ðàáîòà";
+ Text[ greek ] = "ÄéðëùìáôéêÞ åñãáóßá";
+ Text[ dutch ] = "Scriptie";
+ Text[ french ] = "Mémoire";
+ Text[ spanish ] = "Diplomatura";
+ Text[ italian ] = "Tesi di laurea";
+ Text[ danish ] = "Eksamensopgave";
+ Text[ swedish ] = "Examensarbete";
+ Text[ polish ] = "Praca dyplomowa";
+ Text[ portuguese_brazilian ] = "Masters thesis";
+ Text[ japanese ] = "‘²‹Æ˜_•¶";
+ Text[ korean ] = "ÇÐÀ§³í¹®";
+ Text[ chinese_simplified ] = "´óѧ±ÏÒµÂÛÎÄ";
+ Text[ chinese_traditional ] = "²z¤u¬ì¤j¾Ç²¦·~½×¤å";
+ Text[ arabic ] = "ÑÓÇáÉ ãÇÌÓÊíÑ";
+ Text[ turkish ] = "Tez";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_MISC
+{
+ Text = "Verschiedenes" ;
+ Text [ ENGLISH ] = "Miscellaneous" ;
+ Text[ english_us ] = "Miscellaneous";
+ Text[ portuguese ] = "Miscelânea";
+ Text[ russian ] = "Ïðî÷åå";
+ Text[ greek ] = "ÄéÜöïñá";
+ Text[ dutch ] = "Diverse";
+ Text[ french ] = "Divers";
+ Text[ spanish ] = "Diversos";
+ Text[ italian ] = "Varie";
+ Text[ danish ] = "Forskelligt";
+ Text[ swedish ] = "Diverse";
+ Text[ polish ] = "Ró¿ne";
+ Text[ portuguese_brazilian ] = "Miscellaneous";
+ Text[ japanese ] = "”õl";
+ Text[ korean ] = "¿©·¯°¡Áö";
+ Text[ chinese_simplified ] = "ÆäËü";
+ Text[ chinese_traditional ] = "¨ä¥L";
+ Text[ arabic ] = "ãäæÚÇÊ";
+ Text[ turkish ] = "Muhtelif";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_PHDTHESIS
+{
+ Text = "Dissertation" ;
+ Text [ ENGLISH ] = "PhD thesis" ;
+ Text[ english_us ] = "Dissertation";
+ Text[ portuguese ] = "Tese de doutoramento";
+ Text[ russian ] = "Äèññåðòàöèÿ";
+ Text[ greek ] = "ÄéáôñéâÞ";
+ Text[ dutch ] = "Dissertatie";
+ Text[ french ] = "Thèse de doctorat";
+ Text[ spanish ] = "Tesis doctoral";
+ Text[ italian ] = "Dottorato di ricerca";
+ Text[ danish ] = "Doktorafhandling";
+ Text[ swedish ] = "Doktorsavhandling";
+ Text[ polish ] = "Praca doktorska";
+ Text[ portuguese_brazilian ] = "PhD thesis";
+ Text[ japanese ] = "”ŽŽm˜_•¶";
+ Text[ korean ] = "¹Ú»ç ÇÐÀ§ ³í¹®";
+ Text[ chinese_simplified ] = "²©Ê¿ÂÛÎÄ";
+ Text[ chinese_traditional ] = "³Õ¤h½×¤å";
+ Text[ arabic ] = "ÑÓÇáÉ ÏßÊæÑÇå";
+ Text[ turkish ] = "Doktora çalýþmasý";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_PROCEEDINGS
+{
+ Text = "Tagungsbericht" ;
+ Text [ ENGLISH ] = "Proceedings" ;
+ Text[ english_us ] = "Conference proceedings";
+ Text[ portuguese ] = "Relatório sobre reunião";
+ Text[ russian ] = "Ïðîòîêîë ñîâåùàíèÿ";
+ Text[ greek ] = "Ðñùôüêïëëï óõíåäñßáóçò";
+ Text[ dutch ] = "Notulen";
+ Text[ french ] = "Rapport de congrès";
+ Text[ spanish ] = "Informe de reunión";
+ Text[ italian ] = "Rapporto sulla conferenza";
+ Text[ danish ] = "Kongresberetning";
+ Text[ swedish ] = "Konferensrapport";
+ Text[ polish ] = "Sprawozdanie z obrady";
+ Text[ portuguese_brazilian ] = "Proceedings";
+ Text[ japanese ] = "‰ï•ñ";
+ Text[ korean ] = "ȸÀÇ ÀýÂ÷";
+ Text[ chinese_simplified ] = "»áÒ鱨¸æ";
+ Text[ chinese_traditional ] = "·|ij³ø§i";
+ Text[ arabic ] = "ÈÑæÊæßæá ÇÌÊãÇÚ";
+ Text[ turkish ] = "Konferans raporu";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_TECHREPORT
+{
+ Text = "Forschungsbericht" ;
+ Text [ ENGLISH ] = "Technical report" ;
+ Text[ english_us ] = "Research report";
+ Text[ portuguese ] = "Relatório de investigação";
+ Text[ russian ] = "Íàó÷íûé îò÷åò";
+ Text[ greek ] = "ÅðéóôçìïíéêÞ Ýñåõíá";
+ Text[ dutch ] = "Onderzoeksrapport";
+ Text[ french ] = "Rapport de recherche";
+ Text[ spanish ] = "Informe de investigación";
+ Text[ italian ] = "Rapporto di ricerca";
+ Text[ danish ] = "Forskningsrapport";
+ Text[ swedish ] = "Forskningsrapport";
+ Text[ polish ] = "Sprawozdanie naukowe";
+ Text[ portuguese_brazilian ] = "Technical report";
+ Text[ japanese ] = "Œ¤‹†•ñ";
+ Text[ korean ] = "¿¬±¸ º¸°í¼­";
+ Text[ chinese_simplified ] = "¿ÆÑб¨¸æ";
+ Text[ chinese_traditional ] = "¬ì¬ã³ø§i";
+ Text[ arabic ] = "ÊÞÑíÑ Úä ÚãáíÉ ÇáÈÍË";
+ Text[ turkish ] = "Araþtýrma raporu";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_UNPUBLISHED
+{
+ Text = "Unveröffentlicht" ;
+ Text [ ENGLISH ] = "Unpublished" ;
+ Text[ english_us ] = "Unpublished";
+ Text[ portuguese ] = "Inédito";
+ Text[ russian ] = "Íåîïóáëèêîâàíî";
+ Text[ greek ] = "Áäçìïóßåõôá";
+ Text[ dutch ] = "Niet gepubliceerd";
+ Text[ french ] = "Non publié";
+ Text[ spanish ] = "Inédito";
+ Text[ italian ] = "Non pubblicato";
+ Text[ danish ] = "Ikke offentliggjort";
+ Text[ swedish ] = "Opublicerad";
+ Text[ polish ] = "Nieopublikowany";
+ Text[ portuguese_brazilian ] = "Unpublished";
+ Text[ japanese ] = "–¢”­•\\";
+ Text[ korean ] = "ÃâÆǵÇÁö ¾ÊÀº";
+ Text[ chinese_simplified ] = "δ·¢±íµÄ";
+ Text[ chinese_traditional ] = "©|¥¼µoªí";
+ Text[ arabic ] = "áã íõäÔÑ ÈÚÏ";
+ Text[ turkish ] = "Yayýmlanmamýþ";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_EMAIL
+{
+ Text = "e-Mail" ;
+ Text [ ENGLISH ] = "eMail" ;
+ Text[ english_us ] = "e-mail";
+ Text[ portuguese ] = "e-mail";
+ Text[ russian ] = "Ýë.ïî÷òà";
+ Text[ greek ] = "e-Mail";
+ Text[ dutch ] = "e-mail";
+ Text[ french ] = "E-mail";
+ Text[ spanish ] = "E-mail";
+ Text[ italian ] = "eMail";
+ Text[ danish ] = "E-mail";
+ Text[ swedish ] = "e-post";
+ Text[ polish ] = "e-mail";
+ Text[ portuguese_brazilian ] = "eMail";
+ Text[ japanese ] = "EÒ°Ù";
+ Text[ korean ] = "ÀüÀÚ¿ìÆí";
+ Text[ chinese_simplified ] = "µç×ÓÓʼþ";
+ Text[ chinese_traditional ] = "¹q¤l¶l¥ó";
+ Text[ arabic ] = "ÈÑíÏ ÅáßÊÑæäí";
+ Text[ turkish ] = "e-posta";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_WWW
+{
+ Text = "WWW-Dokument" ;
+ Text [ ENGLISH ] = "WWW document" ;
+ Text[ english_us ] = "WWW document";
+ Text[ portuguese ] = "Documento WWW";
+ Text[ russian ] = "Äîêóìåíò WWW";
+ Text[ greek ] = "¸ããñáöï WWW";
+ Text[ dutch ] = "WWW document";
+ Text[ french ] = "Document WWW";
+ Text[ spanish ] = "Documento WWW";
+ Text[ italian ] = "Documento Web";
+ Text[ danish ] = "WWW-dokument";
+ Text[ swedish ] = "WWW-dokument";
+ Text[ polish ] = "Dokument WWW";
+ Text[ portuguese_brazilian ] = "WWW document";
+ Text[ japanese ] = "WWWÄÞ·­ÒÝÄ";
+ Text[ korean ] = "WWW ¹®¼­";
+ Text[ chinese_simplified ] = "WWW Îĵµ";
+ Text[ chinese_traditional ] = "WWW ¤å¥ó";
+ Text[ arabic ] = "ãÓÊäÏ æíÈ";
+ Text[ turkish ] = "WWW belgesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_CUSTOM1
+{
+ Text = "Benutzertyp1" ;
+ Text [ ENGLISH ] = "Custom1" ;
+ Text[ english_us ] = "User-defined1";
+ Text[ portuguese ] = "Utilizador1";
+ Text[ russian ] = "Òèï ïîëüçîâàòàëÿ1";
+ Text[ greek ] = "Ôýðïò ÷ñÞóôç1";
+ Text[ dutch ] = "Gebruikerstype1";
+ Text[ french ] = "Type d'utilisateur1";
+ Text[ spanish ] = "Usuario1";
+ Text[ italian ] = "Tipo1";
+ Text[ danish ] = "Brugerdefineret type1";
+ Text[ swedish ] = "Användartyp1";
+ Text[ polish ] = "U¿ytkownik1";
+ Text[ portuguese_brazilian ] = "Custom1";
+ Text[ japanese ] = "Õ°»Þ°À²Ìß 1";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ1";
+ Text[ chinese_simplified ] = "Óû§1";
+ Text[ chinese_traditional ] = "¦Û­qÃþ«¬ 1";
+ Text[ arabic ] = "ãõÚÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã1";
+ Text[ turkish ] = "Kullanýcý tipi1";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_CUSTOM2
+{
+ Text = "Benutzertyp2" ;
+ Text [ ENGLISH ] = "Custom2" ;
+ Text[ english_us ] = "User-defined2";
+ Text[ portuguese ] = "Utilizador2";
+ Text[ russian ] = "Òèï ïîëüçîâàòåëÿ2";
+ Text[ greek ] = "Ôýðïò ÷ñÞóôç2";
+ Text[ dutch ] = "Gebruikerstype2";
+ Text[ french ] = "Type d'utilisateur2";
+ Text[ spanish ] = "Usuario2";
+ Text[ italian ] = "Tipo2";
+ Text[ danish ] = "Brugerdefineret type2";
+ Text[ swedish ] = "Användartyp2";
+ Text[ polish ] = "U¿ytkownik2";
+ Text[ portuguese_brazilian ] = "Custom2";
+ Text[ japanese ] = "Õ°»Þ°À²Ìß2";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ2";
+ Text[ chinese_simplified ] = "Óû§2";
+ Text[ chinese_traditional ] = "¦Û­qÃþ«¬ 2";
+ Text[ arabic ] = "ãõÚÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã2";
+ Text[ turkish ] = "Kullanýcý tipi2";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_CUSTOM3
+{
+ Text = "Benutzertyp3" ;
+ Text [ ENGLISH ] = "Custom3" ;
+ Text[ english_us ] = "User-defined3";
+ Text[ portuguese ] = "Utilizador3";
+ Text[ russian ] = "Òèï ïîëüçîâàòåëÿ3";
+ Text[ greek ] = "Ôýðïò ÷ñÞóôç3";
+ Text[ dutch ] = "Gebruikerstype3";
+ Text[ french ] = "Type d'utilisateur3";
+ Text[ spanish ] = "Usuario3";
+ Text[ italian ] = "Tipo3";
+ Text[ danish ] = "Brugerdefineret type3";
+ Text[ swedish ] = "Användartyp3";
+ Text[ polish ] = "U¿ytkownik3";
+ Text[ portuguese_brazilian ] = "Custom3";
+ Text[ japanese ] = "Õ°»Þ°À²Ìß3";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ3";
+ Text[ chinese_simplified ] = "Óû§3";
+ Text[ chinese_traditional ] = "¦Û­qÃþ«¬ 3";
+ Text[ arabic ] = "ãõÚÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã3";
+ Text[ turkish ] = "Kullanýcý tipi3";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_CUSTOM4
+{
+ Text = "Benutzertyp4" ;
+ Text [ ENGLISH ] = "Custom4" ;
+ Text[ english_us ] = "User-defined4";
+ Text[ portuguese ] = "Utilizador4";
+ Text[ russian ] = "Òèï ïîëüçîâàòåëÿ4";
+ Text[ greek ] = "Ôýðïò ÷ñÞóôç4";
+ Text[ dutch ] = "Gebruikerstype4";
+ Text[ french ] = "Type d'utilisateur4";
+ Text[ spanish ] = "Usuario4";
+ Text[ italian ] = "Tipo4";
+ Text[ danish ] = "Brugerdefineret type4";
+ Text[ swedish ] = "Användartyp4";
+ Text[ polish ] = "U¿ytkownik4";
+ Text[ portuguese_brazilian ] = "Custom4";
+ Text[ japanese ] = "Õ°»Þ°À²Ìß4";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ4";
+ Text[ chinese_simplified ] = "Óû§4";
+ Text[ chinese_traditional ] = "¦Û­qÃþ«¬ 4";
+ Text[ arabic ] = "ãõÚÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã4";
+ Text[ turkish ] = "Kullanýcý tipi4";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_TYPE_CUSTOM5
+{
+ Text = "Benutzertyp5" ;
+ Text [ ENGLISH ] = "Custom5" ;
+ Text[ english_us ] = "User-defined5";
+ Text[ portuguese ] = "Utilizador5";
+ Text[ russian ] = "Òèï ïîëüçîâàòåëÿ5";
+ Text[ greek ] = "Ôýðïò ÷ñÞóôç5";
+ Text[ dutch ] = "Gebruikerstype5";
+ Text[ french ] = "Type d'utilisateur5";
+ Text[ spanish ] = "Usuario5";
+ Text[ italian ] = "Tipo5";
+ Text[ danish ] = "Brugerdefineret type5";
+ Text[ swedish ] = "Användartyp5";
+ Text[ polish ] = "U¿ytkownik5";
+ Text[ portuguese_brazilian ] = "Custom5";
+ Text[ japanese ] = "Õ°»Þ°À²Ìß5";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ5";
+ Text[ chinese_simplified ] = "Óû§5";
+ Text[ chinese_traditional ] = "¦Û­qÃþ«¬ 5";
+ Text[ arabic ] = "ãõÚÑøóÝ ãä ÞÈá ÇáãÓÊÎÏã5";
+ Text[ turkish ] = "Kullanýcý tipi5";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_AUTH_FIELD_IDENTIFIER
+{
+ Text = "~Kurzbezeichnung" ;
+ Text [ ENGLISH ] = "Identifier" ;
+ Text[ english_us ] = "Short name";
+ Text[ portuguese ] = "~Abreviatura";
+ Text[ russian ] = "Ñîêðàùåíèå";
+ Text[ greek ] = "~Óõíôïìïãñáößá";
+ Text[ dutch ] = "~Beknopte aanduiding";
+ Text[ french ] = "~Abrégé";
+ Text[ spanish ] = "~Abreviatura";
+ Text[ italian ] = "Abbreviazione";
+ Text[ danish ] = "Kort betegnelse";
+ Text[ swedish ] = "~Kort beteckning";
+ Text[ polish ] = "Skrót";
+ Text[ portuguese_brazilian ] = "Identifier";
+ Text[ japanese ] = "—ªÌ";
+ Text[ korean ] = "ªÀº À̸§";
+ Text[ chinese_simplified ] = "¼ò³Æ";
+ Text[ chinese_traditional ] = "²µu´y­z¤å";
+ Text[ arabic ] = "ÇÓã ãÎÊÕÑ";
+ Text[ turkish ] = "~Kýsa ad";
+};
+String STR_AUTH_FIELD_AUTHORITY_TYPE
+{
+ Text = "~Typ" ;
+ Text [ ENGLISH ] = "Type" ;
+ Text[ english_us ] = "Type";
+ Text[ portuguese ] = "~Tipo";
+ Text[ russian ] = "Òèï";
+ Text[ greek ] = "~Ôýðïò";
+ Text[ dutch ] = "~Type";
+ Text[ french ] = "~Type";
+ Text[ spanish ] = "~Tipo";
+ Text[ italian ] = "~Tipo";
+ Text[ danish ] = "Type";
+ Text[ swedish ] = "Typ";
+ Text[ polish ] = "Typ";
+ Text[ portuguese_brazilian ] = "Type";
+ Text[ japanese ] = "À²Ìß";
+ Text[ korean ] = "ÇüÅÂ";
+ Text[ chinese_simplified ] = "ÀàÐÍ";
+ Text[ chinese_traditional ] = "Ãþ«¬";
+ Text[ arabic ] = "ÇáäæÚ";
+ Text[ turkish ] = "~Tip";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_ADDRESS
+{
+ Text = "~Verlagsadresse" ;
+ Text [ ENGLISH ] = "Publisher address" ;
+ Text[ english_us ] = "Publisher address";
+ Text[ portuguese ] = "~Endereço da editora";
+ Text[ russian ] = "Àäðåñ èçäàòåëüñòâà";
+ Text[ greek ] = "Äéåýèõíóç åêäüôç";
+ Text[ dutch ] = "~Adres uitgeverij";
+ Text[ french ] = "Adresse de l'édition";
+ Text[ spanish ] = "~Dirección editorial";
+ Text[ italian ] = "Indirizzo editore";
+ Text[ danish ] = "Forlagsadresse";
+ Text[ swedish ] = "Förlagsadress";
+ Text[ polish ] = "Adres wydawnictwa";
+ Text[ portuguese_brazilian ] = "Publisher address";
+ Text[ japanese ] = "o”ŎЂÌZŠ";
+ Text[ korean ] = "ÃâÆÇ»ç ÁÖ¼Ò";
+ Text[ chinese_simplified ] = "³ö°æÉçµØÖ·";
+ Text[ chinese_traditional ] = "¥Xª©ªÀ¦a§}";
+ Text[ arabic ] = "ÚäæÇä ÏÇÑ ÇáäÔÑ";
+ Text[ turkish ] = "~Yayýnevi adresi";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_ANNOTE
+{
+ Text = "~Anmerkung" ;
+ Text [ ENGLISH ] = "Annotation" ;
+ Text[ english_us ] = "Notes";
+ Text[ portuguese ] = "A~notações";
+ Text[ russian ] = "Êîììåíòàðèé";
+ Text[ greek ] = "ÐáñáôÞñçóç";
+ Text[ dutch ] = "~Commentaar";
+ Text[ french ] = "~Commentaire";
+ Text[ spanish ] = "~Notas";
+ Text[ italian ] = "~Annotazione";
+ Text[ danish ] = "Anmærkning";
+ Text[ swedish ] = "Anmärkning";
+ Text[ polish ] = "Adnotacja";
+ Text[ portuguese_brazilian ] = "Annotation";
+ Text[ japanese ] = "ºÒÝÄ(~M)";
+ Text[ korean ] = "¸Þ¸ð(~M)";
+ Text[ chinese_simplified ] = "˵Ã÷(~M)";
+ Text[ chinese_traditional ] = "µû»y(~M)";
+ Text[ arabic ] = "ãáÇÍÙÉ";
+ Text[ turkish ] = "~Not";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_AUTHOR
+{
+ Text = "A~utor(en)" ;
+ Text [ ENGLISH ] = "Author(s)" ;
+ Text[ english_us ] = "Author(s)";
+ Text[ portuguese ] = "~Autor(es)";
+ Text[ russian ] = "Àâòîð(û)";
+ Text[ greek ] = "ÓõããñáöÝáò(-åéò)";
+ Text[ dutch ] = "A~uteur(s)";
+ Text[ french ] = "A~uteur(s)";
+ Text[ spanish ] = "A~utor(es)";
+ Text[ italian ] = "A~utore/i";
+ Text[ danish ] = "Forfatter(e)";
+ Text[ swedish ] = "Författare";
+ Text[ polish ] = "Autor(zy)";
+ Text[ portuguese_brazilian ] = "Author(s)";
+ Text[ japanese ] = "’˜ŽÒ";
+ Text[ korean ] = "ÀÛ¼ºÀÎ(µé)";
+ Text[ chinese_simplified ] = "×÷Õß";
+ Text[ chinese_traditional ] = "§@ªÌ";
+ Text[ arabic ] = "ÇáãÄáÝ (ÇáãÄáÝæä)";
+ Text[ turkish ] = "Ya~zan(lar)";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_BOOKTITLE
+{
+ Text = "Bu~chtitel" ;
+ Text [ ENGLISH ] = "Book title" ;
+ Text[ english_us ] = "Book title";
+ Text[ portuguese ] = "Títu~lo do livro";
+ Text[ russian ] = "Íàçâàíèå êíèãè";
+ Text[ greek ] = "Ôßôëïò âéâëßïõ";
+ Text[ dutch ] = "Boe~ktitel";
+ Text[ french ] = "Titre de ~livre";
+ Text[ spanish ] = "Título del li~bro";
+ Text[ italian ] = "Titolo del libro";
+ Text[ danish ] = "Bogtitel";
+ Text[ swedish ] = "Boktitel";
+ Text[ polish ] = "Tytu³ ksi¹¿ki";
+ Text[ portuguese_brazilian ] = "Book title";
+ Text[ japanese ] = "‘–¼";
+ Text[ korean ] = "Ã¥ Á¦¸ñ";
+ Text[ chinese_simplified ] = "Êé¼®Ãû³Æ";
+ Text[ chinese_traditional ] = "®Ñ¦W";
+ Text[ arabic ] = "ÚäæÇä ÇáßÊÇÈ";
+ Text[ turkish ] = "Kitap ~adý";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_CHAPTER
+{
+ Text = "Ka~pitel" ;
+ Text [ ENGLISH ] = "Chapter" ;
+ Text[ english_us ] = "Chapter";
+ Text[ portuguese ] = "Ca~pítulo";
+ Text[ russian ] = "Ãëàâà";
+ Text[ greek ] = "ÊåöÜëáéï";
+ Text[ dutch ] = "Hoo~fdstuk";
+ Text[ french ] = "~Chapitre";
+ Text[ spanish ] = "Capít~ulo";
+ Text[ italian ] = "Ca~pitolo";
+ Text[ danish ] = "Kapitel";
+ Text[ swedish ] = "Kapitel";
+ Text[ polish ] = "Rozdzia³";
+ Text[ portuguese_brazilian ] = "Chapter";
+ Text[ japanese ] = "Í";
+ Text[ korean ] = "Àå";
+ Text[ chinese_simplified ] = "ÕÂ";
+ Text[ chinese_traditional ] = "³¹¸`";
+ Text[ arabic ] = "ÇáÝÕá";
+ Text[ turkish ] = "B~ölüm";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_EDITION
+{
+ Text = "Aus~gabe" ;
+ Text [ ENGLISH ] = "Edition" ;
+ Text[ english_us ] = "Edition";
+ Text[ portuguese ] = "Ed~ição";
+ Text[ russian ] = "Èçäàíèå";
+ Text[ greek ] = "Åîá~ãùãÞ";
+ Text[ dutch ] = "~Editie";
+ Text[ french ] = "É~dition";
+ Text[ spanish ] = "Edi~ción";
+ Text[ italian ] = "Edizione";
+ Text[ danish ] = "Udgave";
+ Text[ swedish ] = "Utgåva";
+ Text[ polish ] = "Wydanie";
+ Text[ portuguese_brazilian ] = "Edition";
+ Text[ japanese ] = "Ӂ";
+ Text[ korean ] = "ÆÇ";
+ Text[ chinese_simplified ] = "°æ±¾";
+ Text[ chinese_traditional ] = "¥Xª©";
+ Text[ arabic ] = "ÇáØÈÚÉ";
+ Text[ turkish ] = "Basý~m";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_EDITOR
+{
+ Text = "Herausge~ber" ;
+ Text [ ENGLISH ] = "Editor" ;
+ Text[ english_us ] = "Editor";
+ Text[ portuguese ] = "~Editor";
+ Text[ russian ] = "Ðåäàêòîð";
+ Text[ greek ] = "Åê~äüôçò";
+ Text[ dutch ] = "~Uitgever";
+ Text[ french ] = "Éditeur";
+ Text[ spanish ] = "~Editor";
+ Text[ italian ] = "Editore";
+ Text[ danish ] = "Udgiver";
+ Text[ swedish ] = "Utgivare";
+ Text[ polish ] = "Wydawca";
+ Text[ portuguese_brazilian ] = "Editor";
+ Text[ japanese ] = "”­sŽÒ";
+ Text[ korean ] = "ÆíÁýÀÚ";
+ Text[ chinese_simplified ] = "³ö°æÕß";
+ Text[ chinese_traditional ] = "¥Xª©ªÌ";
+ Text[ arabic ] = "ÇáäÇÔÑ";
+ Text[ turkish ] = "Yayým~cý";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_HOWPUBLISHED
+{
+ Text = "Au~sgabeart" ;
+ Text [ ENGLISH ] = "How published" ;
+ Text[ english_us ] = "Publication type";
+ Text[ portuguese ] = "~Tipo de edição";
+ Text[ russian ] = "Òèï èçäàíèÿ";
+ Text[ greek ] = "Ôýðï~ò Ýêäïóçò";
+ Text[ dutch ] = "Wijze van ~publiceren";
+ Text[ french ] = "~Type de publication";
+ Text[ spanish ] = "Tip~o de edición";
+ Text[ italian ] = "Tipo di edizione";
+ Text[ danish ] = "Udgivelsestype";
+ Text[ swedish ] = "Utgivningstyp";
+ Text[ polish ] = "Rodzaj edycji";
+ Text[ portuguese_brazilian ] = "How published";
+ Text[ japanese ] = "¶ÊÞ°À²Ìß";
+ Text[ korean ] = "ÃâÆÇ ÇüÅÂ";
+ Text[ chinese_simplified ] = "³ö°æ·½Ê½";
+ Text[ chinese_traditional ] = "¥Xª©Ãþ«¬";
+ Text[ arabic ] = "ØÑíÞÉ ÇáØÈÇÚÉ";
+ Text[ turkish ] = "Yayým ~türü";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_INSTITUTION
+{
+ Text = "~Institution" ;
+ Text [ ENGLISH ] = "Institution" ;
+ Text[ english_us ] = "Institution";
+ Text[ portuguese ] = "~Instituição";
+ Text[ russian ] = "Ðåäàêöèÿ";
+ Text[ greek ] = "ºäñõìá";
+ Text[ dutch ] = "~Instelling";
+ Text[ french ] = "~Institution";
+ Text[ spanish ] = "Institu~ción";
+ Text[ italian ] = "~Istituzione";
+ Text[ danish ] = "Institution";
+ Text[ swedish ] = "Institution";
+ Text[ polish ] = "Instytucja";
+ Text[ portuguese_brazilian ] = "Institution";
+ Text[ japanese ] = "‹@ŠÖ";
+ Text[ korean ] = "±³À°±â°ü";
+ Text[ chinese_simplified ] = "»ú¹¹";
+ Text[ chinese_traditional ] = "µ²ÌÛ";
+ Text[ arabic ] = "ÇáåíÆÉ";
+ Text[ turkish ] = "K~urum";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_JOURNAL
+{
+ Text = "~Zeitschrift" ;
+ Text [ ENGLISH ] = "Journal" ;
+ Text[ english_us ] = "Magazine";
+ Text[ portuguese ] = "~Revista";
+ Text[ russian ] = "Æóðíàë";
+ Text[ greek ] = "Ðåñéïäéêü";
+ Text[ dutch ] = "~Tijdschrift";
+ Text[ french ] = "~Revue";
+ Text[ spanish ] = "~Revista";
+ Text[ italian ] = "Rivista";
+ Text[ danish ] = "Tidsskrift";
+ Text[ swedish ] = "Tidskrift";
+ Text[ polish ] = "Czasopismo";
+ Text[ portuguese_brazilian ] = "Journal";
+ Text[ japanese ] = "ŽGŽ";
+ Text[ korean ] = "ÀâÁö";
+ Text[ chinese_simplified ] = "ÔÓÖ¾";
+ Text[ chinese_traditional ] = "Âø§Ó";
+ Text[ arabic ] = "ãÌáÉ";
+ Text[ turkish ] = "De~rgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_MONTH
+{
+ Text = "~Monat" ;
+ Text [ ENGLISH ] = "Month" ;
+ Text[ english_us ] = "Month";
+ Text[ portuguese ] = "~Mês";
+ Text[ russian ] = "Ìåñÿö";
+ Text[ greek ] = "ÌÞíáò";
+ Text[ dutch ] = "~Maand";
+ Text[ french ] = "~Mois";
+ Text[ spanish ] = "~Mes";
+ Text[ italian ] = "~Mese";
+ Text[ danish ] = "Måned";
+ Text[ swedish ] = "Månad";
+ Text[ polish ] = "Miesi¹c";
+ Text[ portuguese_brazilian ] = "Month";
+ Text[ japanese ] = "ŒŽ";
+ Text[ korean ] = "¿ù";
+ Text[ chinese_simplified ] = "ÔÂ";
+ Text[ chinese_traditional ] = "¤ë";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "~Ay";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_NOTE
+{
+ Text = "~Notiz" ;
+ Text [ ENGLISH ] = "Note" ;
+ Text[ english_us ] = "Not~e";
+ Text[ portuguese ] = "~Anotação";
+ Text[ russian ] = "Ïðèìå÷àíèå";
+ Text[ greek ] = "Óçìåßùóç";
+ Text[ dutch ] = "~Notitie";
+ Text[ french ] = "~Note";
+ Text[ spanish ] = "~Nota";
+ Text[ italian ] = "~Nota";
+ Text[ danish ] = "Note";
+ Text[ swedish ] = "Not";
+ Text[ polish ] = "Notatka";
+ Text[ portuguese_brazilian ] = "Note";
+ Text[ japanese ] = "ÒÓ(~E)";
+ Text[ korean ] = "¸Þ¸ð(~E)";
+ Text[ chinese_simplified ] = "±¸×¢(~E)";
+ Text[ chinese_traditional ] = "³Æª`(~E)";
+ Text[ arabic ] = "ãáÇÍÙÉ";
+ Text[ turkish ] = "~Not";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_NUMBER
+{
+ Text = "Numme~r" ;
+ Text [ ENGLISH ] = "Number" ;
+ Text[ english_us ] = "Number";
+ Text[ portuguese ] = "~Número";
+ Text[ russian ] = "Íîìåð";
+ Text[ greek ] = "Áñéèìüò";
+ Text[ dutch ] = "Numme~r";
+ Text[ french ] = "N~uméro";
+ Text[ spanish ] = "Nú~mero";
+ Text[ italian ] = "Nume~ro";
+ Text[ danish ] = "Nummer";
+ Text[ swedish ] = "Nummer";
+ Text[ polish ] = "Numer";
+ Text[ portuguese_brazilian ] = "Number";
+ Text[ japanese ] = "”Ô†";
+ Text[ korean ] = "¹øÈ£";
+ Text[ chinese_simplified ] = "񅧏";
+ Text[ chinese_traditional ] = "½s¸¹";
+ Text[ arabic ] = "ÇáÑÞã";
+ Text[ turkish ] = "Numa~ra";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_ORGANIZATIONS
+{
+ Text = "~Organisation" ;
+ Text [ ENGLISH ] = "Organization" ;
+ Text[ english_us ] = "Organization";
+ Text[ portuguese ] = "~Organização";
+ Text[ russian ] = "Îðãàíèçàöèÿ";
+ Text[ greek ] = "~Ïñãáíéóìüò";
+ Text[ dutch ] = "~Organisatie";
+ Text[ french ] = "~Organisation";
+ Text[ spanish ] = "~Organización";
+ Text[ italian ] = "~Organizzazione";
+ Text[ danish ] = "Organisation";
+ Text[ swedish ] = "Organisation";
+ Text[ polish ] = "Organizacja";
+ Text[ portuguese_brazilian ] = "Organization";
+ Text[ japanese ] = "‘gD’c‘Ì";
+ Text[ korean ] = "±â±¸";
+ Text[ chinese_simplified ] = "×éÖ¯";
+ Text[ chinese_traditional ] = "ÉóÌÛ";
+ Text[ arabic ] = "ãäÙãÉ";
+ Text[ turkish ] = "~Organizasyon";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_PAGES
+{
+ Text = "Seiten" ;
+ Text [ ENGLISH ] = "Pages" ;
+ Text[ english_us ] = "Pages";
+ Text[ portuguese ] = "Páginas";
+ Text[ russian ] = "Êîëè÷åñòâî ñòðàíèö";
+ Text[ greek ] = "Óåëßäåò";
+ Text[ dutch ] = "Pagina's";
+ Text[ french ] = "Pages";
+ Text[ spanish ] = "Páginas";
+ Text[ italian ] = "Pagine";
+ Text[ danish ] = "Sider";
+ Text[ swedish ] = "Sidor";
+ Text[ polish ] = "Strony";
+ Text[ portuguese_brazilian ] = "Pages";
+ Text[ japanese ] = "Íß°¼Þ";
+ Text[ korean ] = "ÆäÀÌÁö";
+ Text[ chinese_simplified ] = "Ò³";
+ Text[ chinese_traditional ] = "­¶­±";
+ Text[ arabic ] = "ÕÝÍÇÊ";
+ Text[ turkish ] = "Sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_PUBLISHER
+{
+ Text = "Ver~lag" ;
+ Text [ ENGLISH ] = "Publisher" ;
+ Text[ english_us ] = "Publishers";
+ Text[ portuguese ] = "E~ditora";
+ Text[ russian ] = "Èçäàòåëüñòâî";
+ Text[ greek ] = "Åêäïôéêüò ïßêïò";
+ Text[ dutch ] = "~Uitgeverij";
+ Text[ french ] = "É~dition";
+ Text[ spanish ] = "~Editorial";
+ Text[ italian ] = "Casa editrice";
+ Text[ danish ] = "Forlag";
+ Text[ swedish ] = "Förlag";
+ Text[ polish ] = "Wydawnictwo";
+ Text[ portuguese_brazilian ] = "Publisher";
+ Text[ japanese ] = "o”ÅŽÐ";
+ Text[ korean ] = "ÃâÆÇ»ç";
+ Text[ chinese_simplified ] = "³ö°æÉç";
+ Text[ chinese_traditional ] = "¥Xª©ªÀ";
+ Text[ arabic ] = "ÏÇÑ ÇáäÔÑ";
+ Text[ turkish ] = "Yayýnev~i";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_SCHOOL
+{
+ Text = "Hochschule/Universit~ät" ;
+ Text [ ENGLISH ] = "University" ;
+ Text[ english_us ] = "University";
+ Text[ portuguese ] = "Escola superior/Uni~versidade";
+ Text[ russian ] = "ÂÓÇ";
+ Text[ greek ] = "Ô.Å.É/Á.Å.É.";
+ Text[ dutch ] = "Hogeschool/~Universiteit";
+ Text[ french ] = "École supérieure/Université";
+ Text[ spanish ] = "Colegio/~Universidad";
+ Text[ italian ] = "Università";
+ Text[ danish ] = "Universitet/læreanstalt";
+ Text[ swedish ] = "Högskola/universitet";
+ Text[ polish ] = "Szko³a wy¿sza/Uniwersytet";
+ Text[ portuguese_brazilian ] = "University";
+ Text[ japanese ] = "‘åŠw";
+ Text[ korean ] = "´ëÇÐ";
+ Text[ chinese_simplified ] = "´óѧ";
+ Text[ chinese_traditional ] = "°ª±M°|®Õ";
+ Text[ arabic ] = "ÌÇãÚÉ";
+ Text[ turkish ] = "Üniversite";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_SERIES
+{
+ Text = "Name ~der Serie" ;
+ Text [ ENGLISH ] = "Series name" ;
+ Text[ english_us ] = "Series name";
+ Text[ portuguese ] = "Nome da ~série";
+ Text[ russian ] = "Íàçâàíèå ñåðèè";
+ Text[ greek ] = "¼íïìá óåéñÜò";
+ Text[ dutch ] = "Naam van de ~serie";
+ Text[ french ] = "Nom de la série";
+ Text[ spanish ] = "No~mbre de la serie";
+ Text[ italian ] = "Nome ~della serie";
+ Text[ danish ] = "Seriens navn";
+ Text[ swedish ] = "Namn på serie";
+ Text[ polish ] = "Nazwa serii";
+ Text[ portuguese_brazilian ] = "Series name";
+ Text[ japanese ] = "¼Ø°½Þ–¼";
+ Text[ korean ] = "½Ã¸®Áî À̸§";
+ Text[ chinese_simplified ] = "ϵÁÐÃû³Æ";
+ Text[ chinese_traditional ] = "¨t¦C¦W";
+ Text[ arabic ] = "ÇÓã ÇáÓáÓáÉ";
+ Text[ turkish ] = "Seri ~adý";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_TITLE
+{
+ Text = "Tit~el" ;
+ Text [ ENGLISH ] = "Title" ;
+ Text[ english_us ] = "Title";
+ Text[ portuguese ] = "Títu~lo";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ greek ] = "Ôßôëïò";
+ Text[ dutch ] = "Tit~el";
+ Text[ french ] = "Titre";
+ Text[ spanish ] = "Tít~ulo";
+ Text[ italian ] = "Titolo";
+ Text[ danish ] = "Titel";
+ Text[ swedish ] = "Titel";
+ Text[ polish ] = "Tytu³";
+ Text[ portuguese_brazilian ] = "Title";
+ Text[ japanese ] = "À²ÄÙ";
+ Text[ korean ] = "Á¦¸ñ";
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ turkish ] = "A~d";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_TYPE
+{
+ Text = "Art des Berichts" ;
+ Text [ ENGLISH ] = "Type of proceedings" ;
+ Text[ english_us ] = "Report type";
+ Text[ portuguese ] = "Tipo de relatório";
+ Text[ russian ] = "Òèï îò÷åòà";
+ Text[ greek ] = "Ôýðïò Ýêèåóçò";
+ Text[ dutch ] = "Soort bericht";
+ Text[ french ] = "Type de rapport";
+ Text[ spanish ] = "Tipo de informe";
+ Text[ italian ] = "Tipo di relazione";
+ Text[ danish ] = "Rapporttype";
+ Text[ swedish ] = "Typ av rapport";
+ Text[ polish ] = "Rodzaj raportu";
+ Text[ portuguese_brazilian ] = "Type of proceedings";
+ Text[ japanese ] = "•ñ‚ÌŽí—Þ";
+ Text[ korean ] = "º¸°í¼­ ÇüÅÂ";
+ Text[ chinese_simplified ] = "±¨¸æÀàÐÍ";
+ Text[ chinese_traditional ] = "³ø§iÃþ«¬";
+ Text[ arabic ] = "äæÚ ÇáÊÞÑíÑ";
+ Text[ turkish ] = "Rapor türü";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_VOLUME
+{
+ Text = "Nummer des Bandes" ;
+ Text [ ENGLISH ] = "Volume" ;
+ Text[ english_us ] = "Volume number";
+ Text[ portuguese ] = "Volume";
+ Text[ russian ] = "Íîìåð òîìà";
+ Text[ greek ] = "Áñéèìüò ôüìïõ";
+ Text[ dutch ] = "Deel nummer";
+ Text[ french ] = "No. de volume";
+ Text[ spanish ] = "Número de tomo";
+ Text[ italian ] = "Numero del volume";
+ Text[ danish ] = "Bind";
+ Text[ swedish ] = "Nummer på band";
+ Text[ polish ] = "Numer tomu";
+ Text[ portuguese_brazilian ] = "Volume";
+ Text[ japanese ] = "Šª”";
+ Text[ korean ] = "±Ç ¹øÈ£";
+ Text[ chinese_simplified ] = "²áµÄ±àºÅ";
+ Text[ chinese_traditional ] = "¥U¼Æ";
+ Text[ arabic ] = "ÑÞã ÇáãÌáÏ";
+ Text[ turkish ] = "Cilt sayýsý";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_YEAR
+{
+ Text = "Erscheinungs~jahr" ;
+ Text [ ENGLISH ] = "Year" ;
+ Text[ english_us ] = "Year of publication";
+ Text[ portuguese ] = "~Ano de publicação";
+ Text[ russian ] = "Ãîä èçäàíèÿ";
+ Text[ greek ] = "¸ôïò Ýêäïóçò";
+ Text[ dutch ] = "Verschijnings~jaar";
+ Text[ french ] = "Année de parution";
+ Text[ spanish ] = "Año de publi~cación";
+ Text[ italian ] = "Anno di pubblicazione";
+ Text[ danish ] = "Udgivelsesår";
+ Text[ swedish ] = "Utgivningsår";
+ Text[ polish ] = "Rok wydania";
+ Text[ portuguese_brazilian ] = "Year";
+ Text[ japanese ] = "o”Å”N";
+ Text[ korean ] = "ÃâÆdz⵵";
+ Text[ chinese_simplified ] = "³ö°æÄê·Ý";
+ Text[ chinese_traditional ] = "¥Xª©¦~¥÷";
+ Text[ arabic ] = "ÓäÉ ÇáÅÕÏÇÑ";
+ Text[ turkish ] = "Yayým yýlý";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_URL
+{
+ Text = "URL" ;
+ Text [ ENGLISH ] = "URL" ;
+ Text[ english_us ] = "URL";
+ Text[ portuguese ] = "URL";
+ Text[ russian ] = "URL";
+ Text[ greek ] = "URL";
+ Text[ dutch ] = "URL";
+ Text[ french ] = "URL";
+ Text[ spanish ] = "URL";
+ Text[ italian ] = "URL";
+ Text[ danish ] = "URL";
+ Text[ swedish ] = "URL";
+ Text[ polish ] = "URL";
+ Text[ portuguese_brazilian ] = "URL";
+ Text[ japanese ] = "URL";
+ Text[ korean ] = "URL";
+ Text[ chinese_simplified ] = "URL";
+ Text[ chinese_traditional ] = "URL";
+ Text[ arabic ] = "URL";
+ Text[ turkish ] = "URL";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_CUSTOM1
+{
+ Text = "Benutzerfeld~1" ;
+ Text [ ENGLISH ] = "Custom1" ;
+ Text[ english_us ] = "User-defined~1";
+ Text[ portuguese ] = "Campo de utilizador~1";
+ Text[ russian ] = "Ïîëå ïîëüçîâàòåëÿ1";
+ Text[ greek ] = "Ðåäßï ÷ñÞóôç~1";
+ Text[ dutch ] = "Gebruikersveld~1";
+ Text[ french ] = "Champ d'utilisateur~1";
+ Text[ spanish ] = "Campo de usuario~1";
+ Text[ italian ] = "Campo1";
+ Text[ danish ] = "Brugerdefineret ~1";
+ Text[ swedish ] = "Användarfält1";
+ Text[ polish ] = "Pole u¿ytkownika~1";
+ Text[ portuguese_brazilian ] = "Custom1";
+ Text[ japanese ] = "Õ°»Þ°Ì¨°ÙÄÞ1";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ1";
+ Text[ chinese_simplified ] = "Óû§À¸1";
+ Text[ chinese_traditional ] = "¦Û­qÄæ¦ì 1";
+ Text[ arabic ] = "ÍÞá ÇáãÓÊÎÏã 1";
+ Text[ turkish ] = "Kullanýcý alaný~1";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_CUSTOM2
+{
+ Text = "Benutzerfeld~2" ;
+ Text [ ENGLISH ] = "Custom2" ;
+ Text[ english_us ] = "User-defined~2";
+ Text[ portuguese ] = "Campo de utilizador~2";
+ Text[ russian ] = "Ïîëå ïîëüçîâàòåëÿ2";
+ Text[ greek ] = "Ðåäßï ÷ñÞóôç~2";
+ Text[ dutch ] = "Gebruikersveld~2";
+ Text[ french ] = "Champ d'utilisateur~2";
+ Text[ spanish ] = "Campo de usuario~2";
+ Text[ italian ] = "Campo2";
+ Text[ danish ] = "Brugerdefineret ~2";
+ Text[ swedish ] = "Användarfält2";
+ Text[ polish ] = "Pole u¿ytkownika~2";
+ Text[ portuguese_brazilian ] = "Custom2";
+ Text[ japanese ] = "Õ°»Þ°Ì¨°ÙÄÞ2";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ2";
+ Text[ chinese_simplified ] = "Óû§À¸2";
+ Text[ chinese_traditional ] = "¦Û­qÄæ¦ì 2";
+ Text[ arabic ] = "ÍÞá ÇáãÓÊÎÏã2";
+ Text[ turkish ] = "Kullanýcý alaný~2";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_CUSTOM3
+{
+ Text = "Benutzerfeld~3" ;
+ Text [ ENGLISH ] = "Custom3" ;
+ Text[ english_us ] = "User-defined~3";
+ Text[ portuguese ] = "Campo de utilizador~3";
+ Text[ russian ] = "Ïîëå ïîëüçîâàòåëÿ3";
+ Text[ greek ] = "Ðåäßï ÷ñÞóôç~3";
+ Text[ dutch ] = "Gebruikersveld~3";
+ Text[ french ] = "Champ d'utilisateur~3";
+ Text[ spanish ] = "Campo de usuario~3";
+ Text[ italian ] = "Campo3";
+ Text[ danish ] = "Brugerdefineret ~3";
+ Text[ swedish ] = "Användarfält3";
+ Text[ polish ] = "Pole u¿ytkownika~3";
+ Text[ portuguese_brazilian ] = "Custom3";
+ Text[ japanese ] = "Õ°»Þ°Ì¨°ÙÄÞ3";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ3";
+ Text[ chinese_simplified ] = "Óû§À¸3";
+ Text[ chinese_traditional ] = "¦Û­qÄæ¦ì 3";
+ Text[ arabic ] = "ÍÞá ÇáãÓÊÎÏã3";
+ Text[ turkish ] = "Kullanýcý alaný~3";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_CUSTOM4
+{
+ Text = "Benutzerfeld~4" ;
+ Text [ ENGLISH ] = "Custom4" ;
+ Text[ english_us ] = "User-defined~4";
+ Text[ portuguese ] = "Campo de utilizador~4";
+ Text[ russian ] = "Ïîëå ïîëüçîâàòåëÿ4";
+ Text[ greek ] = "Ðåäßï ÷ñÞóôç~4";
+ Text[ dutch ] = "Gebruikersveld~4";
+ Text[ french ] = "Champ d'utilisateur~4";
+ Text[ spanish ] = "Campo de usuario~4";
+ Text[ italian ] = "Campo4";
+ Text[ danish ] = "Brugerdefineret ~4";
+ Text[ swedish ] = "Användarfält4";
+ Text[ polish ] = "Pole u¿ytkownika~4";
+ Text[ portuguese_brazilian ] = "Custom4";
+ Text[ japanese ] = "Õ°»Þ°Ì¨°ÙÄÞ4";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ4";
+ Text[ chinese_simplified ] = "Óû§À¸4";
+ Text[ chinese_traditional ] = "¦Û­qÄæ¦ì 4";
+ Text[ arabic ] = "ÍÞá ÇáãÓÊÎÏã4";
+ Text[ turkish ] = "Kullanýcý alaný~4";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_CUSTOM5
+{
+ Text = "Benutzerfeld~5" ;
+ Text [ ENGLISH ] = "Custom5" ;
+ Text[ english_us ] = "User-defined~5";
+ Text[ portuguese ] = "Campo de utilizador~5";
+ Text[ russian ] = "Ïîëå ïîëüçîâàòåëÿ5";
+ Text[ greek ] = "Ðåäßï ÷ñÞóôç~5";
+ Text[ dutch ] = "Gebruikersveld~5";
+ Text[ french ] = "Champ d'utilisateur~5";
+ Text[ spanish ] = "Campo de usuario~5";
+ Text[ italian ] = "Campo5";
+ Text[ danish ] = "Brugerdefineret ~5";
+ Text[ swedish ] = "Användarfält5";
+ Text[ polish ] = "Pole u¿ytkownika~5";
+ Text[ portuguese_brazilian ] = "Custom5";
+ Text[ japanese ] = "Õ°»Þ°Ì¨°ÙÄÞ5";
+ Text[ korean ] = "»ç¿ëÀÚ Á¤ÀÇ5";
+ Text[ chinese_simplified ] = "Óû§À¸5";
+ Text[ chinese_traditional ] = "¦Û­qÄæ¦ì 5";
+ Text[ arabic ] = "ÍÞá ÇáãÓÊÎÏã5";
+ Text[ turkish ] = "Kullanýcý alaný~5";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTH_FIELD_ISBN
+{
+ Text = "ISBN" ;
+ Text [ ENGLISH ] = "ISBN" ;
+ Text[ english_us ] = "ISBN";
+ Text[ portuguese ] = "ISBN";
+ Text[ russian ] = "ISBN";
+ Text[ greek ] = "ISBN";
+ Text[ dutch ] = "ISBN";
+ Text[ french ] = "ISBN";
+ Text[ spanish ] = "ISBN";
+ Text[ italian ] = "ISBN";
+ Text[ danish ] = "ISBN";
+ Text[ swedish ] = "ISBN";
+ Text[ polish ] = "ISBN";
+ Text[ portuguese_brazilian ] = "ISBN";
+ Text[ japanese ] = "ISBN";
+ Text[ korean ] = "ISBN";
+ Text[ chinese_simplified ] = "ISBN";
+ Text[ chinese_traditional ] = "ISBN";
+ Text[ arabic ] = "ISBN";
+ Text[ turkish ] = "ISBN";
+ Text[ language_user1 ] = " ";
+};
+
+
+
+
+
diff --git a/sw/source/ui/utlui/makefile.mk b/sw/source/ui/utlui/makefile.mk
new file mode 100644
index 000000000000..2017055274e5
--- /dev/null
+++ b/sw/source/ui/utlui/makefile.mk
@@ -0,0 +1,146 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=utlui
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# future: DEMO\finder.obj
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+IMGLST_SRS=$(SRS)$/utlui.srs
+BMP_IN=$(PRJ)$/win/imglst
+
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ bookctrl.cxx \
+ condedit.cxx \
+ content.cxx \
+ finder.cxx \
+ gloslst.cxx \
+ glbltree.cxx \
+ initui.cxx \
+ navipi.cxx \
+ navicfg.cxx \
+ numfmtlb.cxx \
+ prcntfld.cxx \
+ tmplctrl.cxx \
+ uitool.cxx \
+ uiitems.cxx \
+ attrdesc.cxx \
+ swstbctl.cxx \
+ shdwcrsr.cxx \
+ unotools.cxx \
+ zoomctrl.cxx
+
+SRCFILES = \
+ initui.src \
+ gloslst.src \
+ navipi.src \
+ poolfmt.src \
+ attrdesc.src \
+ unotools.src \
+ utlui.src
+
+SLOFILES = \
+ $(SLO)$/bookctrl.obj \
+ $(SLO)$/condedit.obj \
+ $(SLO)$/content.obj \
+ $(SLO)$/finder.obj \
+ $(SLO)$/gloslst.obj \
+ $(SLO)$/glbltree.obj \
+ $(SLO)$/initui.obj \
+ $(SLO)$/navipi.obj \
+ $(SLO)$/navicfg.obj \
+ $(SLO)$/numfmtlb.obj \
+ $(SLO)$/prcntfld.obj \
+ $(SLO)$/tmplctrl.obj \
+ $(SLO)$/uitool.obj \
+ $(SLO)$/uiitems.obj \
+ $(SLO)$/attrdesc.obj \
+ $(SLO)$/swstbctl.obj \
+ $(SLO)$/shdwcrsr.obj \
+ $(SLO)$/unotools.obj \
+ $(SLO)$/zoomctrl.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/unotools.obj\
+ $(SLO)$/gloslst.obj \
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/utlui/navicfg.cxx b/sw/source/ui/utlui/navicfg.cxx
new file mode 100644
index 000000000000..fdc9a0eed865
--- /dev/null
+++ b/sw/source/ui/utlui/navicfg.cxx
@@ -0,0 +1,189 @@
+/*************************************************************************
+ *
+ * $RCSfile: navicfg.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx> // fuer Pathfinder
+#endif
+#ifndef _NAVICFG_HXX
+#include <navicfg.hxx>
+#endif
+#ifndef _SWCONT_HXX
+#include <swcont.hxx>
+#endif
+
+#ifndef _TOOLS_DEBUG_HXX
+#include <tools/debug.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UNO_ANY_HXX_
+#include <com/sun/star/uno/Any.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
+#include <com/sun/star/uno/Sequence.hxx>
+#endif
+
+using namespace utl;
+using namespace rtl;
+using namespace com::sun::star::uno;
+
+#define C2U(cChar) OUString::createFromAscii(cChar)
+
+/* -----------------------------08.09.00 16:30--------------------------------
+
+ ---------------------------------------------------------------------------*/
+Sequence<OUString> SwNavigationConfig::GetPropertyNames()
+{
+ static const char* aPropNames[] =
+ {
+ "RootType", //0
+ "SelectedPosition", //1
+ "OutlineLevel", //2
+ "InsertMode", //3
+ "ActiveBlock", //4
+ "ShowListBox", //5
+ "GlobalDocMode" //6
+ };
+ const int nCount = 7;
+ Sequence<OUString> aNames(nCount);
+ OUString* pNames = aNames.getArray();
+ for(int i = 0; i < nCount; i++)
+ {
+ pNames[i] = OUString::createFromAscii(aPropNames[i]);
+ }
+ return aNames;
+}
+/*-----------------13.11.96 11.03-------------------
+
+--------------------------------------------------*/
+
+SwNavigationConfig::SwNavigationConfig() :
+ utl::ConfigItem(C2U("Office.Writer/Navigator")),
+ bIsGlobalActive(TRUE),
+ bIsSmall(FALSE),
+ nRootType(0xffff),
+ nSelectedPos(0),
+ nOutlineLevel(MAXLEVEL),
+ nRegionMode(REGION_MODE_NONE),
+ nActiveBlock(0)
+{
+ Sequence<OUString> aNames = GetPropertyNames();
+ Sequence<Any> aValues = GetProperties(aNames);
+// EnableNotification(aNames);
+ const Any* pValues = aValues.getConstArray();
+ DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed")
+ if(aValues.getLength() == aNames.getLength())
+ {
+ for(int nProp = 0; nProp < aNames.getLength(); nProp++)
+ {
+ DBG_ASSERT(pValues[nProp].hasValue(), "property value missing")
+ if(pValues[nProp].hasValue())
+ {
+ switch(nProp)
+ {
+ case 0: pValues[nProp] >>= nRootType; break;
+ case 1: pValues[nProp] >>= nSelectedPos; break;
+ case 2: pValues[nProp] >>= nOutlineLevel; break;
+ case 3: pValues[nProp] >>= nRegionMode; break;
+ case 4: pValues[nProp] >>= nActiveBlock; break;
+ case 5: bIsSmall = *(sal_Bool*)pValues[nProp].getValue(); break;
+ case 6: bIsGlobalActive = *(sal_Bool*)pValues[nProp].getValue(); break;
+ }
+ }
+ }
+ }
+}
+/* -----------------------------08.09.00 16:35--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwNavigationConfig::~SwNavigationConfig()
+{}
+/* -----------------------------08.09.00 16:35--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwNavigationConfig::Commit()
+{
+ Sequence<OUString> aNames = GetPropertyNames();
+ OUString* pNames = aNames.getArray();
+ Sequence<Any> aValues(aNames.getLength());
+ Any* pValues = aValues.getArray();
+ const Type& rType = ::getBooleanCppuType();
+
+ for(int nProp = 0; nProp < aNames.getLength(); nProp++)
+ {
+ switch(nProp)
+ {
+ case 0: pValues[nProp] <<= nRootType; break;
+ case 1: pValues[nProp] <<= nSelectedPos; break;
+ case 2: pValues[nProp] <<= nOutlineLevel; break;
+ case 3: pValues[nProp] <<= nRegionMode; break;
+ case 4: pValues[nProp] <<= nActiveBlock; break;
+ case 5: pValues[nProp].setValue(&bIsSmall, rType); break;
+ case 6: pValues[nProp].setValue(&bIsGlobalActive, rType); break;
+ }
+ }
+ PutProperties(aNames, aValues);
+}
+
diff --git a/sw/source/ui/utlui/navipi.cxx b/sw/source/ui/utlui/navipi.cxx
new file mode 100644
index 000000000000..f8dd3763762a
--- /dev/null
+++ b/sw/source/ui/utlui/navipi.cxx
@@ -0,0 +1,1814 @@
+/*************************************************************************
+ *
+ * $RCSfile: navipi.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+
+#pragma hdrstop
+
+#define NAVIPI_CXX
+
+#include <string> // HACK: prevent conflict between STLPORT and Workshop headers
+
+#ifndef _LIST_HXX //autogen
+#include <tools/list.hxx>
+#endif
+#ifndef _SV_DRAG_HXX //autogen
+#include <vcl/drag.hxx>
+#endif
+#ifndef _SV_SYSTEM_HXX
+#include <vcl/system.hxx>
+#endif
+#ifndef _URLBMK_HXX //autogen
+#include <svtools/urlbmk.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _FILTER_HXX //autogen
+#include <svtools/filter.hxx>
+#endif
+#ifndef _SOT_FORMATS_HXX
+#include <sot/formats.hxx>
+#endif
+#ifndef _SFXEVENT_HXX //autogen
+#include <sfx2/event.hxx>
+#endif
+#ifndef _SFXIMGMGR_HXX //autogen
+#include <sfx2/imgmgr.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXDOCKWIN_HXX //autogen
+#include <sfx2/dockwin.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx> // fuer Pathfinder
+#endif
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _NAVICFG_HXX
+#include <navicfg.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _ACTCTRL_HXX
+#include <actctrl.hxx>
+#endif
+#ifndef _BOOKMRK_HXX
+#include <bookmrk.hxx>
+#endif
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+#ifndef _CONTENT_HXX
+#include <content.hxx>
+#endif
+#ifndef _WORKCTRL_HXX
+#include <workctrl.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _CFGID_H
+#include <cfgid.h>
+#endif
+#ifndef _HELPID_H
+#include <helpid.h>
+#endif
+#ifndef _RIBBAR_HRC
+#include <ribbar.hrc>
+#endif
+#ifndef _NAVIPI_HRC
+#include <navipi.hrc>
+#endif
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _CFGSTR_HRC
+#include <cfgstr.hrc>
+#endif
+
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+static const sal_Unicode cPrefix = '_';
+
+#define PAGE_CHANGE_TIMEOUT 1000 //Timeout fuer Seitenwechsel
+
+#define JUMP_TYPE_TBL 0
+#define JUMP_TYPE_FRM 1
+#define JUMP_TYPE_GRF 2
+#define JUMP_TYPE_REG 3
+#define JUMP_TYPE_BKM 4
+
+// Version fuer Konfiguration
+
+#define NAVI_VERSION0 0
+#define NAVI_VERSION1 1
+#define NAVI_VERSION2 2 // bIsGlobalActive
+
+#define NAVI_CONFIG_VERSION NAVI_VERSION2
+
+SFX_IMPL_CHILDWINDOW_CONTEXT( SwNavigationChild, SID_NAVIGATOR, SwView )
+
+/*------------------------------------------------------------------------
+ Bechreibung: Steuerzeichen aus dem Outline-Entry filtern
+------------------------------------------------------------------------*/
+
+void SwNavigationPI::CleanEntry( String& rEntry )
+{
+ USHORT i = rEntry.Len();
+ if( i )
+ for( sal_Unicode* pStr = rEntry.GetBufferAccess(); i; --i, ++pStr )
+ if( *pStr == 10 || *pStr == 9 )
+ *pStr = 0x20;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Ausfuehrung der Drag-Operation
+ mit und ohne Childs
+------------------------------------------------------------------------*/
+
+void SwNavigationPI::MoveOutline(USHORT nSource, USHORT nTarget,
+ BOOL bWithChilds)
+{
+ SwView *pView = ::GetActiveView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ if(nTarget < nSource || nTarget == USHRT_MAX)
+ nTarget ++;
+ if ( rSh.IsOutlineMovable( nSource ))
+ {
+
+ short nMove = nTarget-nSource; //( nDir<0 ) ? 1 : 0 ;
+ rSh.GotoOutline(nSource);
+ if (bWithChilds)
+ rSh.MakeOutlineSel(nSource, nSource, TRUE);
+ // Die selektierten Children zaehlen bei der Bewegung vorwaerts nicht mit
+ USHORT nLastOutlinePos = rSh.GetOutlinePos(MAXLEVEL);
+ if(bWithChilds && nMove > 1 &&
+ nLastOutlinePos < nTarget)
+ {
+ if(!rSh.IsCrsrPtAtEnd())
+ rSh.SwapPam();
+ nMove -= nLastOutlinePos - nSource;
+ }
+ if(!bWithChilds || nMove < 1 || nLastOutlinePos < nTarget )
+ rSh.MoveOutlinePara( nMove );
+ rSh.ClearMark();
+ rSh.GotoOutline( nSource + nMove);
+ FillBox();
+ }
+
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Erzeugen des automatischen Namens des unbenannten Merkers
+------------------------------------------------------------------------*/
+
+inline String &MakeAutoName(String &rToChange, USHORT i)
+{
+ rToChange = cPrefix;
+ rToChange += String::CreateFromInt32( i );
+ return rToChange;
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Nach Goto einen Status Rahmenselektion aufheben
+------------------------------------------------------------------------*/
+
+
+void lcl_UnSelectFrm(SwWrtShell *pSh)
+{
+ if (pSh->IsFrmSelected())
+ {
+ pSh->UnSelectFrm();
+ pSh->LeaveSelFrmMode();
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Select der Documentanzeige
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwNavigationPI, DocListBoxSelectHdl, ListBox *, pBox )
+{
+ int nEntryIdx = pBox->GetSelectEntryPos();
+ SwView *pView ;
+ pView = SwModule::GetFirstView();
+ while (nEntryIdx-- && pView)
+ {
+ pView = SwModule::GetNextView(pView);
+ }
+ if(!pView)
+ {
+ nEntryIdx == 0 ?
+ aContentTree.ShowHiddenShell():
+ aContentTree.ShowActualView();
+
+
+ }
+ else
+ {
+ aContentTree.SetConstantShell(pView->GetWrtShellPtr());
+ }
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Select der Typenlistbox
+------------------------------------------------------------------------*/
+/*
+
+IMPL_LINK( SwNavigationPI, TypeListBoxSelectHdl, ListBox *, pBox )
+{
+ USHORT nEntryIdx = pBox->GetSelectEntryPos();
+ USHORT nCount = pBox->GetEntryCount();
+ if(nEntryIdx == nCount - 1)
+ {
+ if(!bPageCtrlsVisible)
+ {
+ bPageCtrlsVisible = TRUE;
+ aContentToolBox.ShowItem( FN_PAGENUMBER );
+ aContentToolBox.HideItem( FN_UP );
+ aContentToolBox.HideItem( FN_DOWN );
+ }
+ }
+ else
+ {
+ if(bPageCtrlsVisible)
+ {
+ aContentToolBox.HideItem( FN_PAGENUMBER );
+ aContentToolBox.ShowItem( FN_UP );
+ aContentToolBox.ShowItem( FN_DOWN );
+ bPageCtrlsVisible = FALSE;
+ }
+ }
+
+ pConfig->SetSelectedPos( nEntryIdx );
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Fuellen der ListBox fuer Outline Sicht oder Dokumente
+ Der PI wird auf volle Groesse gesetzt
+------------------------------------------------------------------------*/
+
+
+void SwNavigationPI::FillBox()
+{
+ if(pContentWrtShell)
+ {
+ aContentTree.SetHiddenShell( pContentWrtShell );
+ aContentTree.Display( FALSE );
+ }
+ else
+ {
+ SwView *pView = ::GetActiveView();
+ if(!pView)
+ {
+ aContentTree.SetActiveShell(0);
+ }
+ else if( pView != pActContView)
+ {
+ SwWrtShell* pWrtShell = pView->GetWrtShellPtr();
+ aContentTree.SetActiveShell(pWrtShell);
+ }
+ else
+ aContentTree.Display( TRUE );
+ pActContView = pView;
+ }
+}
+
+
+void SwNavigationPI::UsePage(SwWrtShell *pSh)
+{
+ if (!pSh)
+ {
+ SwView *pView = ::GetActiveView();
+ pSh = pView ? &pView->GetWrtShell() : 0;
+ GetPageEdit().SetValue(1);
+ }
+ if (pSh)
+ {
+ const USHORT nPageCnt = pSh->GetPageCnt();
+ USHORT nPhyPage, nVirPage;
+ pSh->GetPageNum(nPhyPage, nVirPage);
+
+ GetPageEdit().SetMax(nPageCnt);
+ GetPageEdit().SetLast(nPageCnt);
+ GetPageEdit().SetValue(nPhyPage);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: SelectHandler der Toolboxen
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox )
+{
+ const USHORT nId = pBox->GetCurItemId();
+ SwView *pView = ::GetActiveView();
+ if (!pView)
+ return 1;
+ SwWrtShell &rSh = pView->GetWrtShell();
+ //MouseModifier fuer Outline-Move besorgen
+
+ //Standard: Unterebenen werden mitgenommen
+ // mit Ctrl Unterebenen nicht mitnehmen
+ BOOL bOutlineWithChilds = ( KEY_MOD1 != pBox->GetModifier());
+ int nFuncId = 0;
+ switch (nId)
+ {
+ case FN_UP:
+ case FN_DOWN:
+ pView->MoveNavigation(FN_DOWN == nId);
+ break;
+ case FN_SHOW_ROOT:
+ {
+ aContentTree.ToggleToRoot();
+ }
+ break;
+ case FN_SHOW_CONTENT_BOX:
+ case FN_SELECT_CONTENT:
+ if(pContextWin->GetFloatingWindow())
+ {
+ if(_IsZoomedIn() )
+ {
+ _ZoomOut();
+ }
+ else
+ {
+ _ZoomIn();
+ }
+ }
+ return TRUE;
+ //break;
+ // Funktionen, die eine direkte Aktion ausloesen
+
+ case FN_SELECT_FOOTER:
+ {
+ rSh.MoveCrsr();
+ const USHORT eType = rSh.GetFrmType(0,FALSE);
+ if (eType & FRMTYPE_FOOTER)
+ {
+ if (rSh.EndPg())
+ nFuncId = FN_END_OF_PAGE;
+ }
+ else if (rSh.GotoFooterTxt())
+ nFuncId = FN_TO_FOOTER;
+ }
+ break;
+ case FN_SELECT_HEADER:
+ {
+ rSh.MoveCrsr();
+ const USHORT eType = rSh.GetFrmType(0,FALSE);
+ if (eType & FRMTYPE_HEADER)
+ {
+ if (rSh.SttPg())
+ nFuncId = FN_START_OF_PAGE;
+ }
+ else if (rSh.GotoHeaderTxt())
+ nFuncId = FN_TO_HEADER;
+ }
+ break;
+ case FN_SELECT_FOOTNOTE:
+ {
+ rSh.MoveCrsr();
+ const USHORT eFrmType = rSh.GetFrmType(0,FALSE);
+ // aus Fussnote zum Anker springen
+ if (eFrmType & FRMTYPE_FOOTNOTE)
+ {
+ if (rSh.GotoFtnAnchor())
+ nFuncId = FN_FOOTNOTE_TO_ANCHOR;
+ }
+ // andernfalls zuerst zum Fussnotentext springen; geht
+ // dies nicht, zur naechten Fussnote; geht auch dies
+ // nicht, zur vorhergehenden Fussnote
+ else
+ {
+ if (rSh.GotoFtnTxt())
+ nFuncId = FN_FOOTNOTE_TO_ANCHOR;
+ else if (rSh.GotoNextFtnAnchor())
+ nFuncId = FN_NEXT_FOOTNOTE;
+ else if (rSh.GotoPrevFtnAnchor())
+ nFuncId = FN_PREV_FOOTNOTE;
+ }
+ }
+ break;
+
+ case FN_SELECT_SET_AUTO_BOOKMARK:
+ MakeMark();
+ break;
+ case FN_ITEM_DOWN:
+ case FN_ITEM_UP:
+ case FN_ITEM_LEFT:
+ case FN_ITEM_RIGHT:
+ case FN_GLOBAL_EDIT:
+ {
+ if(IsGlobalMode())
+ aGlobalTree.ExecCommand(nId);
+ else
+ aContentTree.ExecCommand(nId, bOutlineWithChilds);
+ }
+ break;
+ case FN_GLOBAL_SWITCH:
+ {
+ ToggleTree();
+ pConfig->SetGlobalActive(IsGlobalMode());
+ }
+ break;
+ case FN_GLOBAL_SAVE_CONTENT:
+ {
+ BOOL bSave = rSh.IsGlblDocSaveLinks();
+ rSh.SetGlblDocSaveLinks( !bSave );
+ pBox->CheckItem(FN_GLOBAL_SAVE_CONTENT, !bSave );
+ }
+ break;
+ case FN_CREATE_NAVIGATION:
+ {
+ }
+ break;
+ }
+
+ if (nFuncId)
+ {
+ lcl_UnSelectFrm(&rSh);
+ }
+ pView->GetEditWin().GrabFocus();
+ return TRUE;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: ClickHandler der Toolboxen
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwNavigationPI, ToolBoxClickHdl, ToolBox *, pBox )
+{
+ const USHORT nId = pBox->GetCurItemId();
+ switch (nId)
+ {
+ case FN_DROP_REGION:
+ {
+ PopupMenu *pMenu = new PopupMenu;
+ for (USHORT i = 0; i <= REGION_MODE_EMBEDDED; i++)
+ {
+ pMenu->InsertItem( i + 1, aContextArr[i] );
+ pMenu->SetHelpId(i + 1, HID_NAVI_DRAG_HYP + i);
+ /*HID_NAVI_DRAG_HYP
+ HID_NAVI_DRAG_LINK
+ HID_NAVI_DRAG_COPY */
+ }
+ pMenu->CheckItem( nRegionMode + 1 );
+ pMenu->SetSelectHdl(LINK(this, SwNavigationPI, MenuSelectHdl));
+ pMenu->Execute( pBox,
+ pBox->GetItemRect(FN_DROP_REGION).BottomLeft());
+ pBox->EndSelection();
+ delete pMenu;
+ pBox->Invalidate();
+ }
+ break;
+ case FN_OUTLINE_LEVEL:
+ {
+ PopupMenu *pMenu = new PopupMenu;
+ for (USHORT i = 101; i <= 100 + MAXLEVEL; i++)
+ {
+ pMenu->InsertItem( i, String::CreateFromInt32(i - 100) );
+ pMenu->SetHelpId( i, HID_NAVI_OUTLINES );
+ }
+ pMenu->CheckItem( aContentTree.GetOutlineLevel() + 100 );
+ pMenu->SetSelectHdl(LINK(this, SwNavigationPI, MenuSelectHdl));
+ pMenu->Execute( pBox,
+ pBox->GetItemRect(FN_OUTLINE_LEVEL).BottomLeft());
+ delete pMenu;
+ pBox->EndSelection();
+ pBox->Invalidate();
+ }
+ break;
+ case FN_GLOBAL_UPDATE:
+ case FN_GLOBAL_OPEN:
+ {
+ aGlobalTree.TbxMenuHdl(nId, pBox);
+ }
+ break;
+ }
+
+ return TRUE;
+}
+/*-----------------19.06.97 09:09-------------------
+
+--------------------------------------------------*/
+void __EXPORT SwNavHelpToolBox::MouseButtonDown(const MouseEvent &rEvt)
+{
+ if(rEvt.GetButtons() == MOUSE_LEFT &&
+ FN_CREATE_NAVIGATION == GetItemId(rEvt.GetPosPixel()))
+ {
+ SfxBindings& rBind = SfxViewFrame::Current()->GetBindings();
+ rBind.ENTERREGISTRATIONS();
+ SwScrollNaviPopup* pPopup = new
+ SwScrollNaviPopup(FN_SCROLL_NAVIGATION,
+ SW_RES(RID_SCROLL_NAVIGATION_WIN),
+ rBind);
+ rBind.LEAVEREGISTRATIONS();
+
+ Rectangle aRect = GetItemRect(FN_CREATE_NAVIGATION);
+ aRect.SetPos(OutputToScreenPixel(aRect.TopLeft()));
+ pPopup->StartPopupMode(aRect, FLOATWIN_POPUPMODE_RIGHT|FLOATWIN_POPUPMODE_ALLOWTEAROFF);
+ }
+ else
+ SwHelpToolBox::MouseButtonDown(rEvt);
+}
+
+/*-----------------19.06.97 10:12-------------------
+
+--------------------------------------------------*/
+void __EXPORT SwNavHelpToolBox::RequestHelp( const HelpEvent& rHEvt )
+{
+ USHORT nItemId = GetItemId(ScreenToOutputPixel(rHEvt.GetMousePosPixel()));
+ if( FN_UP == nItemId || FN_DOWN == nItemId )
+ {
+ SetItemText(nItemId, SwScrollNaviPopup::GetQuickHelpText((FN_DOWN == nItemId)));
+ }
+ SwHelpToolBox::RequestHelp(rHEvt);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Action-Handler Edit; wechselt auf die Seite, wenn
+ nicht Gliederungssicht angeschaltet ist.
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwNavigationPI, EditAction, NumEditAction *, pEdit )
+{
+ SwView *pView = ::GetActiveView();
+ if (pView)
+ {
+ if(aPageChgTimer.IsActive())
+ aPageChgTimer.Stop();
+ pView->GetWrtShell().GotoPage((USHORT)pEdit->GetValue());
+ pView->GetEditWin().GrabFocus();
+ pView->GetViewFrame()->GetBindings().Invalidate(FN_STAT_PAGE);
+ }
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Falls die Seite eingestellt werden kann, wird hier
+ das Maximum gesetzt.
+------------------------------------------------------------------------*/
+
+
+IMPL_LINK( SwNavigationPI, EditGetFocus, NumEditAction *, pEdit )
+{
+ SwView *pView = ::GetActiveView();
+ if (!pView)
+ return 0;
+ SwWrtShell &rSh = pView->GetWrtShell();
+
+ const USHORT nPageCnt = rSh.GetPageCnt();
+ pEdit->SetMax(nPageCnt);
+ pEdit->SetLast(nPageCnt);
+ return 0;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL __EXPORT SwNavigationPI::Close()
+{
+ SFX_APP()->GetBindings().Invalidate(SID_NAVIGATOR);
+ GetActiveView()->GetViewFrame()->GetDispatcher()->Execute(SID_NAVIGATOR);
+ return TRUE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Setzen einer automatischen Marke
+------------------------------------------------------------------------*/
+
+
+void SwNavigationPI::MakeMark()
+{
+ SwView *pView = ::GetActiveView();
+ if (!pView)
+ return;
+ SwWrtShell &rSh = pView->GetWrtShell();
+
+ const USHORT nBookCnt = rSh.GetBookmarkCnt();
+ USHORT nMarkCount = 0;
+ USHORT nFirstFound = MAX_MARKS;
+ for (USHORT nCount = 0; nCount < nBookCnt; ++nCount)
+ {
+ SwBookmark& rBkmk = rSh.GetBookmark( nCount );
+ if( rBkmk.IsMark() )
+ {
+ String aBookmark( rBkmk.GetName() );
+ aBookmark.Erase(0, 1);
+ nFirstFound = Min(nFirstFound, (USHORT)aBookmark.ToInt32());
+ ++nMarkCount;
+ }
+ }
+ // maximale Anzahl Bookmarks vergeben
+ if (nAutoMarkIdx == MAX_MARKS)
+ nAutoMarkIdx = 1;
+ // erster freier neu vergeben
+ else if (nFirstFound != MAX_MARKS)
+ nAutoMarkIdx = Max(USHORT(1), USHORT(nFirstFound - 1));
+ else
+ ++nAutoMarkIdx;
+
+ String aMark;
+ MakeAutoName(aMark,nAutoMarkIdx);
+ if (nMarkCount >= MAX_MARKS)
+ rSh.DelBookmark( aMark );
+ rSh.SetBookmark(KeyCode(), aMark, aEmptyStr, MARK);
+ SwView::SetActMark( nAutoMarkIdx );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwNavigationPI::GotoPage()
+{
+ if ( pContextWin->GetFloatingWindow() && pContextWin->GetFloatingWindow()->IsRollUp())
+ _ZoomIn();
+ if(IsGlobalMode())
+ ToggleTree();
+ UsePage(0);
+ GetPageEdit().GrabFocus();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwNavigationPI::_ZoomOut()
+{
+ if (_IsZoomedIn())
+ {
+ FloatingWindow* pFloat = pContextWin->GetFloatingWindow();
+ bIsZoomedIn = FALSE;
+ Size aSz(GetOutputSizePixel());
+ aSz.Height() = nZoomOut;
+ Size aMinOutSizePixel = ((SfxDockingWindow*)GetParent())->GetMinOutputSizePixel();
+ ((SfxDockingWindow*)GetParent())->SetMinOutputSizePixel(Size(
+ aMinOutSizePixel.Width(),nZoomOutInit));
+ pFloat->SetOutputSizePixel(aSz);
+ FillBox();
+ if(IsGlobalMode())
+ {
+ aGlobalTree.Show();
+ }
+ else
+ {
+ aContentTree.Show();
+ aDocListBox.Show();
+ }
+ SvLBoxEntry* pFirst = aContentTree.FirstSelected();
+ if(pFirst)
+ aContentTree.Select(pFirst, TRUE); // toolbox enablen
+ pConfig->SetSmall( FALSE );
+ aContentToolBox.CheckItem(FN_SHOW_CONTENT_BOX);
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwNavigationPI::_ZoomIn()
+{
+ FloatingWindow* pFloat = pContextWin->GetFloatingWindow();
+ if (pFloat &&
+ (!_IsZoomedIn() || ( pContextWin->GetFloatingWindow()->IsRollUp())))
+ {
+ aContentTree.Hide();
+ aDocListBox.Hide();
+ aGlobalTree.Hide();
+ bIsZoomedIn = TRUE;
+ Size aSz(GetOutputSizePixel());
+ if( aSz.Height() > nZoomIn )
+ nZoomOut = ( short ) aSz.Height();
+
+ aSz.Height() = nZoomIn;
+ Size aMinOutSizePixel = ((SfxDockingWindow*)GetParent())->GetMinOutputSizePixel();
+ ((SfxDockingWindow*)GetParent())->SetMinOutputSizePixel(Size(
+ aMinOutSizePixel.Width(), aSz.Height()));
+ pFloat->SetOutputSizePixel(aSz);
+ SvLBoxEntry* pFirst = aContentTree.FirstSelected();
+ if(pFirst)
+ aContentTree.Select(pFirst, TRUE); // toolbox enablen
+ pConfig->SetSmall( TRUE );
+ aContentToolBox.CheckItem(FN_SHOW_CONTENT_BOX, FALSE);
+ }
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void __EXPORT SwNavigationPI::Resize()
+{
+ Window* pParent = GetParent();
+ FloatingWindow* pFloat = ((DockingWindow*)pParent)->GetFloatingWindow();
+ Size aNewSize;
+ if( !_IsZoomedIn() )
+ {
+ if( pFloat)
+ {
+ aNewSize = pFloat->GetOutputSizePixel();
+ }
+ else
+ {
+ aNewSize = pParent->GetOutputSizePixel();
+ }
+ const Point aPos = aContentTree.GetPosPixel();
+ Point aLBPos = aDocListBox.GetPosPixel();
+ long nDist = aPos.X();
+ aNewSize.Height() -= (aPos.Y() + aPos.X() + nDocLBIniHeight + nDist);
+ aNewSize.Width() -= 2 * nDist;
+ aLBPos.Y() = aPos.Y() + aNewSize.Height() + nDist;
+ aDocListBox.Show(!aGlobalTree.IsVisible() && aLBPos.Y() > aPos.Y() );
+
+ Size aDocLBSz = aDocListBox.GetSizePixel();
+ aDocLBSz.Width() = aNewSize.Width();
+ if(aNewSize.Height() < 0)
+ aDocLBSz.Height() = 0;
+ else
+ aDocLBSz.Height() = nDocLBIniHeight;
+ aContentTree.SetSizePixel(aNewSize);
+ // GlobalTree faengt weiter oben an und reicht bis ganz unten
+ aNewSize.Height() += (nDist + nDocLBIniHeight + aPos.Y() - aGlobalTree.GetPosPixel().Y());
+ aGlobalTree.SetSizePixel(aNewSize);
+ aDocListBox.SetPosSizePixel( aLBPos.X(), aLBPos.Y(),
+ aDocLBSz.Width(), aDocLBSz.Height(),
+ WINDOW_POSSIZE_X|WINDOW_POSSIZE_Y|WINDOW_POSSIZE_WIDTH);
+
+ }
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwNavigationPI::SwNavigationPI( SfxBindings* pBindings,
+ SfxChildWindowContext* pCw,
+ Window* pParent) :
+
+ Window( pParent, SW_RES(DLG_NAVIGATION_PI)),
+ SfxControllerItem( SID_DOCFULLNAME, *pBindings ),
+ aContentTree(this, SW_RES(TL_CONTENT)),
+ aGlobalTree(this, SW_RES(TL_GLOBAL)),
+ aContentToolBox(this, SW_RES(TB_CONTENT)),
+ aGlobalToolBox(this, SW_RES(TB_GLOBAL)),
+ aContentImageList(SW_RES(IL_CONTENT)),
+ aDocListBox(this, SW_RES(LB_DOCS)),
+ nActMark(0),
+ nAutoMarkIdx(0),
+ rBindings(*pBindings),
+ bSmallMode(FALSE),
+ bIsZoomedIn(FALSE),
+ bPageCtrlsVisible(FALSE),
+ bGlobalMode(FALSE),
+ nRegionMode(REGION_MODE_NONE),
+ pxObjectShell(0),
+ pContentView(0),
+ pContentWrtShell(0),
+ pActContView(0),
+ pContextWin(pCw),
+ nWishWidth(0),
+ pConfig(SW_MOD()->GetNavigationConfig())
+{
+ for(USHORT k = 0; k < aContentToolBox.GetItemCount(); k++)
+ aContentToolBox.SetItemImage(aContentToolBox.GetItemId(k),
+ aContentImageList.GetImage(aContentToolBox.GetItemId(k)));
+
+ for( k = 0; k < aGlobalToolBox.GetItemCount(); k++)
+ aGlobalToolBox.SetItemImage(aGlobalToolBox.GetItemId(k),
+ aContentImageList.GetImage(aGlobalToolBox.GetItemId(k)));
+
+ aContentToolBox.SetHelpId(HID_NAVIGATOR_TOOLBOX );
+ aGlobalToolBox.SetHelpId(HID_NAVIGATOR_GLOBAL_TOOLBOX);
+ aDocListBox.SetHelpId(HID_NAVIGATOR_LISTBOX );
+
+ nDocLBIniHeight = aDocListBox.GetSizePixel().Height();
+ nZoomOutInit = nZoomOut = Resource::ReadShortRes();
+
+ //NumericField in die Toolbox einfuegen
+ NumEditAction* pEdit = new NumEditAction(
+ &aContentToolBox, SW_RES(NF_PAGE ));
+ pEdit->SetActionHdl(LINK(this, SwNavigationPI, EditAction));
+ pEdit->SetGetFocusHdl(LINK(this, SwNavigationPI, EditGetFocus));
+ pEdit->SetModifyHdl(LINK(this, SwNavigationPI, PageEditModifyHdl));
+
+ bPageCtrlsVisible = TRUE;
+
+// Rectangle aFirstRect = aContentToolBox.GetItemRect(FN_SHOW_ROOT);
+// USHORT nWidth = 2 * (USHORT)aFirstRect.Left();
+ //doppelte Separatoren sind nicht erlaubt, also muss
+ //die passende Groesse anders ermittelt werden
+ Rectangle aFirstRect = aContentToolBox.GetItemRect(FN_DROP_REGION);
+ Rectangle aSecondRect = aContentToolBox.GetItemRect(FN_ITEM_DOWN);
+ USHORT nWidth = USHORT(aSecondRect.Left() - aFirstRect.Left());
+
+ Size aItemWinSize( nWidth, aFirstRect.Bottom() - aFirstRect.Top() );
+ pEdit->SetSizePixel(aItemWinSize);
+ aContentToolBox.InsertWindow( FN_PAGENUMBER, pEdit, 0, 5);
+ //aContentToolBox.InsertSeparator(4);
+ aContentToolBox.SetHelpId(FN_PAGENUMBER, HID_NAVI_TBX16);
+ aContentToolBox.ShowItem( FN_PAGENUMBER );
+
+ for( USHORT i = 0; i <= REGION_MODE_EMBEDDED; i++ )
+ {
+ aContextArr[i] = SW_RESSTR(ST_HYPERLINK + i);
+ aStatusArr[i] = SW_RESSTR(ST_STATUS_FIRST + i);
+ }
+ aStatusArr[3] = SW_RESSTR(ST_ACTIVE_VIEW);
+ FreeResource();
+
+
+ const Size& rOutSize = GetOutputSizePixel();
+
+ nZoomIn = (short)rOutSize.Height();
+ Point aBoxPos = aContentTree.GetPosPixel();
+
+ //Der linke und rechte Rand um die Toolboxen soll gleich sein
+ nWishWidth = aContentToolBox.CalcWindowSizePixel().Width();
+ nWishWidth += 2 * aContentToolBox.GetPosPixel().X();
+
+// Navi um Border vergroessern
+// FloatingWindow* pFloat = ((DockingWindow*)pParent)->GetFloatingWindow();
+// if(pFloat)
+ ((SfxDockingWindow*)pParent)->SetMinOutputSizePixel(Size(nWishWidth, nZoomOutInit));
+ SetOutputSizePixel( Size( nWishWidth, nZoomOutInit));
+
+ aContentTree.SetWindowBits( WB_HASBUTTONS|WB_HASBUTTONSATROOT|
+ WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE );
+
+ aContentTree.SetSpaceBetweenEntries(0);
+ aContentTree.SetSelectionMode( SINGLE_SELECTION );
+ aContentTree.SetDragDropMode( SV_DRAGDROP_CTRL_MOVE |
+ SV_DRAGDROP_CTRL_COPY |
+ SV_DRAGDROP_ENABLE_TOP );
+ aContentTree.EnableAsyncDrag(TRUE);
+ aContentTree.Show();
+ aContentToolBox.CheckItem(FN_SHOW_CONTENT_BOX, TRUE);
+
+// TreeListBox fuer Globaldokument
+ aGlobalTree.SetSelectionMode( MULTIPLE_SELECTION );
+ aGlobalTree.SetWindowBits( WB_HASBUTTONS|WB_HASBUTTONSATROOT|
+ WB_CLIPCHILDREN|WB_HSCROLL );
+ Size aGlblSize(aGlobalToolBox.CalcWindowSizePixel());
+ aGlobalToolBox.SetSizePixel(aGlblSize);
+
+// Handler
+
+ Link aLk = LINK(this, SwNavigationPI, ToolBoxSelectHdl);
+ aContentToolBox.SetSelectHdl( aLk );
+ aGlobalToolBox.SetSelectHdl( aLk );
+ aDocListBox.SetSelectHdl(LINK(this, SwNavigationPI,
+ DocListBoxSelectHdl));
+ aContentToolBox.SetClickHdl( LINK(this, SwNavigationPI, ToolBoxClickHdl) );
+ aGlobalToolBox.SetClickHdl( LINK(this, SwNavigationPI, ToolBoxClickHdl) );
+ aGlobalToolBox.CheckItem(FN_GLOBAL_SWITCH, TRUE);
+
+#ifndef MAC
+ Font aFont(aContentTree.GetFont());
+ aFont.SetWeight(WEIGHT_NORMAL);
+ aContentTree.SetFont(aFont);
+ aGlobalTree.SetFont(aFont);
+ GetPageEdit().SetFont(aFont);
+
+#endif
+#if defined( WIN ) || defined( WNT )
+ Font aSwiss = System::GetStandardFont( STDFONT_SWISS );
+ aContentTree.SetFont(aSwiss);
+ aGlobalTree.SetFont(aSwiss);
+#endif
+ StartListening(*SFX_APP());
+ SfxImageManager* pImgMan = SFX_APP()->GetImageManager();
+ pImgMan->RegisterToolBox(&aContentToolBox, SFX_TOOLBOX_CHANGEOUTSTYLE);
+ pImgMan->RegisterToolBox(&aGlobalToolBox, SFX_TOOLBOX_CHANGEOUTSTYLE);
+ if(IsGlobalDoc())
+ {
+ SwView *pActView = ::GetActiveView();
+ aGlobalToolBox.CheckItem(FN_GLOBAL_SAVE_CONTENT,
+ pActView->GetWrtShellPtr()->IsGlblDocSaveLinks());
+ if(pConfig->IsGlobalActive())
+ ToggleTree();
+ else
+ Application::PostUserEvent( LINK( this, SwNavigationPI, ReadOnlyHdl ) );
+ }
+ UsePage(0);
+ aPageChgTimer.SetTimeoutHdl(LINK(this, SwNavigationPI, ChangePageHdl));
+ aPageChgTimer.SetTimeout(PAGE_CHANGE_TIMEOUT);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+__EXPORT SwNavigationPI::~SwNavigationPI()
+{
+ if(IsGlobalDoc() && !IsGlobalMode())
+ {
+ SwView *pView = ::GetActiveView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ if( !rSh.IsAllProtect() )
+ pView->GetDocShell()->SetReadOnlyUI(FALSE);
+ }
+
+ EndListening(*SFX_APP());
+ SfxImageManager* pImgMan = SFX_APP()->GetImageManager();
+ pImgMan->ReleaseToolBox(&aContentToolBox);
+ pImgMan->ReleaseToolBox(&aGlobalToolBox);
+ delete aContentToolBox.GetItemWindow(FN_PAGENUMBER);
+ delete aContentToolBox.GetItemWindow(FN_CONTENT_LB);
+ if(pxObjectShell)
+ {
+ if(pxObjectShell->Is())
+ (*pxObjectShell)->DoClose();
+ delete pxObjectShell;
+ }
+
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void __EXPORT SwNavigationPI::StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState )
+{
+ if(nSID == SID_DOCFULLNAME)
+ {
+ SwView *pActView = ::GetActiveView();
+ if(pActView)
+ {
+ SwWrtShell* pWrtShell = pActView->GetWrtShellPtr();
+ aContentTree.SetActiveShell(pWrtShell);
+ BOOL bGlobal = IsGlobalDoc();
+ aContentToolBox.EnableItem(FN_GLOBAL_SWITCH, bGlobal);
+ if(!bGlobal && IsGlobalMode() ||
+ !IsGlobalMode() && pConfig->IsGlobalActive())
+ {
+ ToggleTree();
+ }
+ if(bGlobal)
+ {
+ aGlobalToolBox.CheckItem(FN_GLOBAL_SAVE_CONTENT, pWrtShell->IsGlblDocSaveLinks());
+ }
+ }
+ else
+ {
+ aContentTree.SetActiveShell(0);
+ }
+ UpdateListBox();
+ }
+}
+
+/*------------------------------------------------------------------------
+ Bechreibung: NumericField aus der Toolbox holen
+------------------------------------------------------------------------*/
+
+NumEditAction& SwNavigationPI::GetPageEdit()
+{
+ return *(NumEditAction*)aContentToolBox.GetItemWindow(FN_PAGENUMBER);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+/*
+
+ListBox& SwNavigationPI::GetTypeSelBox()
+{
+ DBG_ASSERT(aContentToolBox.GetItemWindow(FN_CONTENT_LB),
+ "ItemWindow nicht vorhanden")
+ return *(ListBox*)aContentToolBox.GetItemWindow(FN_CONTENT_LB);
+
+}*/
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SfxChildAlignment __EXPORT SwNavigationPI::CheckAlignment
+ (
+ SfxChildAlignment eActAlign,
+ SfxChildAlignment eAlign
+ )
+{
+SfxChildAlignment eRetAlign;
+
+ if(_IsZoomedIn())
+ eRetAlign = SFX_ALIGN_NOALIGNMENT;
+ else
+ switch (eAlign)
+ {
+ case SFX_ALIGN_BOTTOM:
+ case SFX_ALIGN_LOWESTBOTTOM:
+ case SFX_ALIGN_HIGHESTBOTTOM:
+ eRetAlign = eActAlign;
+ break;
+
+ case SFX_ALIGN_TOP:
+ case SFX_ALIGN_HIGHESTTOP:
+ case SFX_ALIGN_LOWESTTOP:
+ case SFX_ALIGN_LEFT:
+ case SFX_ALIGN_RIGHT:
+ case SFX_ALIGN_FIRSTLEFT:
+ case SFX_ALIGN_LASTLEFT:
+ case SFX_ALIGN_FIRSTRIGHT:
+ case SFX_ALIGN_LASTRIGHT:
+ eRetAlign = eAlign;
+ break;
+
+ default:
+ eRetAlign = eAlign;
+ break;
+ }
+ return eRetAlign;
+
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL SwNavigationPI::IsInDrag() const
+{
+ return aContentTree.IsInternalDrag() || aContentTree.IsInDrag();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Benachrichtigung bei geaenderter DocInfo
+ --------------------------------------------------------------------*/
+
+void __EXPORT SwNavigationPI::Notify( SfxBroadcaster&, const SfxHint& rHint )
+{
+ if(rHint.ISA(SfxEventHint))
+ {
+ if( pxObjectShell &&
+ ((SfxEventHint&) rHint).GetEventId() == SFX_EVENT_CLOSEAPP)
+ {
+ DELETEZ(pxObjectShell);
+ }
+ else if(((SfxEventHint&) rHint).GetEventId() == SFX_EVENT_OPENDOC)
+ {
+
+ SwView *pActView = ::GetActiveView();
+ if(pActView)
+ {
+ SwWrtShell* pWrtShell = pActView->GetWrtShellPtr();
+ aContentTree.SetActiveShell(pWrtShell);
+ if(aGlobalTree.IsVisible())
+ {
+ if(aGlobalTree.Update())
+ aGlobalTree.Display();
+ else
+ // wenn kein Update notwendig, dann zumindest painten
+ // wg. der roten Eintraege fuer broken links
+ aGlobalTree.Invalidate();
+ }
+ }
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( SwNavigationPI, MenuSelectHdl, Menu *, pMenu )
+{
+ USHORT nMenuId = pMenu->GetCurItemId();
+ if(nMenuId != USHRT_MAX)
+ {
+ if(nMenuId < 100)
+ SetRegionDropMode( --nMenuId);
+ else
+ aContentTree.SetOutlineLevel(nMenuId - 100);
+ }
+ return 0;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void SwNavigationPI::UpdateListBox()
+{
+ aDocListBox.SetUpdateMode(FALSE);
+ aDocListBox.Clear();
+ SwView *pActView = ::GetActiveView();
+ BOOL bDisable = pActView == 0;
+ SwView *pView = SwModule::GetFirstView();
+ USHORT nCount = 0;
+ USHORT nAct = 0;
+ USHORT nConstPos = 0;
+ const SwView* pConstView = aContentTree.IsConstantView() &&
+ aContentTree.GetActiveWrtShell() ?
+ &aContentTree.GetActiveWrtShell()->GetView():
+ 0;
+ while (pView)
+ {
+ String sEntry = pView->GetDocShell()->GetTitle();
+ sEntry += C2S(" (");
+ if (pView == pActView)
+ {
+ nAct = nCount;
+ sEntry += aStatusArr[ST_ACTIVE - ST_STATUS_FIRST];
+ }
+ else
+ sEntry += aStatusArr[ST_INACTIVE - ST_STATUS_FIRST];
+ sEntry += ')';
+ aDocListBox.InsertEntry(sEntry);
+
+
+ if (pConstView && pView == pConstView)
+ nConstPos = nCount;
+
+ pView = SwModule::GetNextView(pView);
+ nCount++;
+ }
+ aDocListBox.InsertEntry(aStatusArr[3]); //"Aktives Fenster"
+ nCount++;
+
+ if(aContentTree.GetHiddenWrtShell())
+ {
+ String sEntry = aContentTree.GetHiddenWrtShell()->GetView().
+ GetDocShell()->GetTitle();
+ sEntry += C2S(" (");
+ sEntry += aStatusArr[ST_HIDDEN - ST_STATUS_FIRST];
+ sEntry += ')';
+ aDocListBox.InsertEntry(sEntry);
+ bDisable = FALSE;
+ }
+ if(aContentTree.IsActiveView())
+ {
+ //entweder den Namen des akt. Docs oder "Aktives Dokument"
+ USHORT nTmp = pActView ? nAct : --nCount;
+ aDocListBox.SelectEntryPos( nTmp );
+ }
+ else if(aContentTree.IsHiddenView())
+ {
+ aDocListBox.SelectEntryPos(nCount);
+ }
+ else
+ aDocListBox.SelectEntryPos(nConstPos);
+
+ aDocListBox.Enable( !bDisable );
+ aDocListBox.SetUpdateMode(TRUE);
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+SwNavigationChild::SwNavigationChild( Window* pParent,
+ USHORT nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo ) :
+ SfxChildWindowContext( nId )
+{
+ SwNavigationPI* pNavi = new SwNavigationPI( pBindings, this, pParent );
+ SetWindow( pNavi );
+ SfxViewFrame::Current()->GetBindings().Invalidate(SID_NAVIGATOR);
+ String sExtra = pInfo->aExtraString;
+
+ SwNavigationConfig* pNaviConfig = SW_MOD()->GetNavigationConfig();
+
+ USHORT nRootType = pNaviConfig->GetRootType();
+ if( nRootType < CONTENT_TYPE_MAX )
+ {
+ pNavi->aContentTree.SetRootType(nRootType);
+ pNavi->aContentToolBox.CheckItem(FN_SHOW_ROOT, TRUE);
+ }
+ pNavi->aContentTree.SetOutlineLevel(pNaviConfig->GetOutlineLevel());
+ pNavi->SetRegionDropMode(pNaviConfig->GetRegionMode());
+
+
+ if(GetFloatingWindow() && pNaviConfig->IsSmall())
+ {
+ pNavi->_ZoomIn();
+ }
+
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL __EXPORT SwNavigationPI::Drop( const DropEvent& )
+{
+ if(!aContentTree.IsInDrag())
+ {
+ String aFileName;
+
+ const USHORT nCount = DragServer::GetItemCount();
+
+ for ( USHORT i = 0; i < nCount; ++i )
+ {
+ aFileName = SwNavigationPI::CreateDropFileName(i);
+
+ if(aFileName.Len() &&
+ STRING_NOTFOUND == aFileName.Search('#')
+ && (!sContentFileName.Len() || sContentFileName != aFileName ))
+ {
+ aFileName.EraseTrailingChars(char(0));
+ sContentFileName = aFileName;
+ if(pxObjectShell)
+ {
+ aContentTree.SetHiddenShell( 0 );
+ (*pxObjectShell)->DoClose();
+ DELETEZ( pxObjectShell);
+ }
+ SfxStringItem aFileItem(SID_FILE_NAME, aFileName);
+ String sOptions = C2S("HRC");
+ SfxStringItem aOptionsItem(SID_OPTIONS,sOptions);
+ SfxLinkItem aLink(SID_DONELINK, LINK(this, SwNavigationPI, DoneLink));
+ GetActiveView()->GetViewFrame()->GetDispatcher()->Execute(
+ SID_OPENDOC, SFX_CALLMODE_ASYNCHRON,
+ &aFileItem, &aOptionsItem, &aLink, 0L);
+ }
+ }
+ }
+ return TRUE;
+}
+
+/*-----------------16.06.97 15:05-------------------
+
+--------------------------------------------------*/
+String SwNavigationPI::CreateDropFileName( USHORT nItem )
+{
+ INetBookmark aBkmk( aEmptyStr, aEmptyStr );
+ String aFileName;
+
+ if( aBkmk.PasteDragServer( nItem ) )
+ aFileName = aBkmk.GetURL();
+ else if(DragServer::HasFormat( nItem, FORMAT_FILE))
+ aFileName = DragServer::PasteFile( nItem );
+ else if( DragServer::HasFormat( nItem, SOT_FORMATSTR_ID_FILENAME ))
+ {
+ ULONG nLen = DragServer::GetDataLen( nItem, SOT_FORMATSTR_ID_FILENAME );
+ DragServer::PasteData( nItem, aFileName.AllocBuffer( nLen/2 ),
+ nLen, SOT_FORMATSTR_ID_FILENAME );
+
+ }
+ return aFileName;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+IMPL_LINK(SwNavigationPI, DoneLink, SfxPoolItem *, pItem)
+{
+ const SfxViewFrameItem* pFrameItem = PTR_CAST(SfxViewFrameItem, pItem );
+ if( pFrameItem )
+ {
+ SfxViewFrame* pFrame = pFrameItem->GetFrame();
+ if(pFrame)
+ {
+ aContentTree.Clear();
+ pContentView = PTR_CAST(SwView, pFrame->GetViewShell());
+ DBG_ASSERT(pContentView, "keine SwView")
+ if(pContentView)
+ pContentWrtShell = pContentView->GetWrtShellPtr();
+ else
+ pContentWrtShell = 0;
+ pxObjectShell = new SfxObjectShellLock(pFrame->GetObjectShell());
+ FillBox();
+ aContentTree.Update();
+ }
+ }
+ return 0;
+}
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL __EXPORT SwNavigationPI::QueryDrop( DropEvent& rEvt )
+{
+ rEvt.SetAction(DROP_COPY);
+ if (!aContentTree.IsInDrag())
+ {
+ const SotDataObject& rData = *rEvt.GetData();
+ const SvDataTypeList& rTypeLst = rData.GetTypeList();
+
+ if( rTypeLst.Get( FORMAT_FILE ) )
+ {
+ String aFileName;
+ SvData aData( FORMAT_FILE, MEDIUM_ALL );
+ if( aData.GetData( aFileName ) )
+ {
+ GraphicDescriptor aDesc( aFileName );
+ if( aDesc.Detect() ) // keine Grafiken annehmen
+ return FALSE;
+ return TRUE;
+ }
+ return FALSE;
+ }
+
+ if( rTypeLst.Get( FORMAT_STRING ) || INetBookmark::HasFormat( rData ))
+ return TRUE;
+ }
+
+ return FALSE;
+}
+/*-----------------27.11.96 13.00-------------------
+
+--------------------------------------------------*/
+
+void SwNavigationPI::SetRegionDropMode(USHORT nNewMode)
+{
+ nRegionMode = nNewMode;
+ pConfig->SetRegionMode( nRegionMode );
+
+ USHORT nId = FN_DROP_REGION;
+ if(nRegionMode == REGION_MODE_LINK)
+ nId = FN_DROP_REGION_LINK;
+ else if(nRegionMode == REGION_MODE_EMBEDDED)
+ nId = FN_DROP_REGION_COPY;
+
+ aContentToolBox.SetItemImage(FN_DROP_REGION,
+ aContentImageList.GetImage(nId));
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL __EXPORT SwNavigationChild::Drop( const DropEvent& rEvt)
+{
+ return GetWindow()->Drop(rEvt);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+BOOL __EXPORT SwNavigationChild::QueryDrop( DropEvent& rEvt)
+{
+ return GetWindow()->QueryDrop(rEvt);
+}
+
+
+/*-----------------12.06.97 09:47-------------------
+
+--------------------------------------------------*/
+
+BOOL SwNavigationPI::ToggleTree()
+{
+ BOOL bRet = TRUE;
+ BOOL bGlobalDoc = IsGlobalDoc();
+ if(!IsGlobalMode() && bGlobalDoc)
+ {
+ SetUpdateMode(FALSE);
+ if(_IsZoomedIn())
+ _ZoomOut();
+ aGlobalTree.Show();
+ aGlobalToolBox.Show();
+ aContentTree.Hide();
+ aContentToolBox.Hide();
+ aDocListBox.Hide();
+ SetGlobalMode(TRUE);
+ SetUpdateMode(TRUE);
+ }
+ else
+ {
+ aGlobalTree.Hide();
+ aGlobalToolBox.Hide();
+ if(!_IsZoomedIn())
+ {
+ aContentTree.Show();
+ aContentToolBox.Show();
+ aDocListBox.Show();
+ }
+ bRet = FALSE;
+ SetGlobalMode(FALSE);
+ }
+ if(bGlobalDoc)
+ {
+ Application::PostUserEvent( LINK( this, SwNavigationPI, ReadOnlyHdl ) );
+ }
+ return bRet;
+}
+
+/*-----------------13.06.97 09:42-------------------
+
+--------------------------------------------------*/
+BOOL SwNavigationPI::IsGlobalDoc() const
+{
+ BOOL bRet = FALSE;
+ SwView *pView = ::GetActiveView();
+ if(pView)
+ {
+ SwWrtShell &rSh = pView->GetWrtShell();
+ bRet = rSh.IsGlobalDoc();
+ }
+ return bRet;
+}
+/*-----------------19.06.97 08:21-------------------
+
+--------------------------------------------------*/
+IMPL_LINK( SwNavigationPI, ReadOnlyHdl, void *, EMPTYARG )
+{
+/*
+JP 25.01.99: die Umschaltung auf UI-Readonly wird nicht mehr benoetigt, weil
+ der Cursor jetzt in Readonly-Inhalt gesetzt werden kann.
+
+ if(IsGlobalMode())
+ {
+ SwView *pView = ::GetActiveView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ if( !rSh.IsAllProtect() )
+ pView->GetDocShell()->SetReadOnlyUI(FALSE);
+ }
+ else
+ {
+ SwView *pView = ::GetActiveView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ if( !rSh.IsReadOnlyAvailable() )
+ {
+// SfxObjectShell* pObjShell = SfxObjectShell::Current();
+// pObjShell->SetReadOnlyUI();
+ pView->GetDocShell()->SetReadOnlyUI( TRUE );
+ }
+ }
+*/
+ return 0;
+}
+/* -----------------26.10.98 08:10-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwNavigationPI, ChangePageHdl, Timer*, EMPTYARG )
+{
+ EditAction(&GetPageEdit());
+ GetPageEdit().GrabFocus();
+ return 0;
+}
+/* -----------------26.10.98 08:14-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK( SwNavigationPI, PageEditModifyHdl, Edit*, EMPTYARG )
+{
+ if(aPageChgTimer.IsActive())
+ aPageChgTimer.Stop();
+ aPageChgTimer.Start();
+ return 0;
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.231 2000/09/18 16:06:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.230 2000/09/08 15:11:58 os
+ use configuration service
+
+ Revision 1.229 2000/09/07 15:03:22 os
+ SFX_BINDINGS removed
+ #78618# CreateFromInt32
+
+ Revision 1.228 2000/07/03 08:55:03 jp
+ must changes for VCL
+
+ Revision 1.227 2000/05/24 13:48:35 hr
+ conflict between STLPORT and Workshop header
+
+ Revision 1.226 2000/05/23 19:54:27 jp
+ Bugfixes for Unicode
+
+ Revision 1.225 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.224 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.223 2000/02/11 15:00:45 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.222 1999/10/25 07:26:56 os
+ #69021# prevent showing of controls if ZoomedIn
+
+ Revision 1.221 1999/09/10 08:36:52 os
+ Chg: ExtraData in resources
+
+ Revision 1.220 1999/06/09 11:29:42 JP
+ have to change: SvxINetBookmark -> INetBookmark
+
+
+ Rev 1.219 09 Jun 1999 13:29:42 JP
+ have to change: SvxINetBookmark -> INetBookmark
+
+ Rev 1.218 19 Apr 1999 17:14:48 JP
+ Bug #64992#: ClearEntry mit Leerstring verhindern
+
+ Rev 1.217 01 Apr 1999 11:14:08 OS
+ #64267# breiteres NumericField statt doppelter Separatoren
+
+ Rev 1.216 25 Jan 1999 13:50:10 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.215 20 Jan 1999 17:09:18 AWO
+ #59398# FormatIds
+
+ Rev 1.214 11 Jan 1999 14:37:54 OS
+ #58637# nach Reload im Global-Dok mind. neu painten
+
+ Rev 1.213 05 Jan 1999 07:56:20 OS
+ #60618# Global-Toolbox auch am ImageManager registrieren
+
+ Rev 1.212 27 Nov 1998 14:59:04 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.211 03 Nov 1998 12:24:34 OS
+ 58830# Enter/LeaveRegistrations
+
+ Rev 1.210 26 Oct 1998 10:00:00 OS
+ #58390# Seitenfeld springt Seite mit Zeitverzoegerung an
+
+ Rev 1.209 17 Aug 1998 16:11:22 OS
+ fuer die Doc-ListBox docshell-Title benutzen #54551#
+
+ Rev 1.208 29 Jul 1998 12:18:58 OS
+ FORCE_MAKE_VISIBLE benutzen - #53787#
+
+ Rev 1.207 15 Jul 1998 12:53:06 OS
+ Navigator an der SwView registrieren #34794#
+
+ Rev 1.206 10 Jul 1998 14:03:10 MH
+ internal comp.err
+
+ Rev 1.205 02 Jul 1998 16:57:06 OM
+ #46638# Keine Grafiken auf Navigator droppen
+
+ Rev 1.204 24 Apr 1998 17:21:30 OS
+ ListBox-Hoehe nicht setzen #49766#
+
+ Rev 1.203 31 Mar 1998 15:31:10 OS
+ SetReadonlyUI von IsAllProtect abhaengig #49077#
+
+ Rev 1.202 17 Mar 1998 17:32:02 OS
+ Separator neben dem NumericField #47922#
+
+ Rev 1.201 12 Mar 1998 07:51:24 OS
+ Toolbox umsortiert #47922#
+
+ Rev 1.200 05 Feb 1998 07:47:40 OS
+ DocListBox im Globaldoc immer hiden #46777#
+
+ Rev 1.199 04 Feb 1998 14:28:04 OS
+ DocListbox verstecken, wenn sie zu weit oben liegt #46777#
+
+ Rev 1.198 12 Dec 1997 13:58:04 OS
+ neuer Bookmark-Typ
+
+ Rev 1.197 05 Dec 1997 16:51:44 OS
+ Numerierungsumbau
+
+ Rev 1.196 28 Nov 1997 14:00:22 OS
+ Status fuer SHOW_CONTENT_BOX im _ZoomIn/_ZoomOut setzen #45580#
+
+ Rev 1.195 21 Nov 1997 12:10:16 MA
+ includes
+
+ Rev 1.194 03 Nov 1997 13:59:28 MA
+ precomp entfernt
+
+ Rev 1.193 04 Sep 1997 17:15:58 MA
+ includes
+
+ Rev 1.192 29 Aug 1997 15:39:00 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.191 17 Jul 1997 15:23:54 OS
+ nach Reload durch Notfy die TreeListBoxen aktualisieren #41775#
+
+ Rev 1.190 15 Jul 1997 11:31:00 OS
+ Ids fuer Navigator PullDown-Menues
+
+ Rev 1.189 08 Jul 1997 14:13:32 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.188 03 Jul 1997 16:26:10 OS
+ ToggleTree: _ZoomOut gfs. zuerst rufen
+
+ Rev 1.187 23 Jun 1997 18:46:26 HJS
+ includes
+
+ Rev 1.186 21 Jun 1997 14:15:36 OS
+ typ. Anf.zeichen werden nicht mehr gebraucht, Font an den TreeListBoxen auf STDFONT_SWISS
+
+ Rev 1.185 20 Jun 1997 13:54:58 OS
+ Move ueber View-Methode
+
+ Rev 1.184 19 Jun 1997 17:36:40 OS
+ Reste Globaldokumente
+
+ Rev 1.183 19 Jun 1997 11:02:50 OS
+ ReadOnly-Handling, Toolbox: RequestHelp und MousebuttonDown
+
+ Rev 1.182 18 Jun 1997 13:20:52 OS
+ Segmentierung raus
+
+ Rev 1.181 18 Jun 1997 13:08:38 OS
+ Globaldokument: Eintraege verschieben, _ZoomIn/Out angepasst
+
+ Rev 1.180 17 Jun 1997 10:17:22 OS
+ Globaldokument Teil 4 - Drag and Drop
+
+ Rev 1.179 16 Jun 1997 12:01:22 OS
+ Globaldokument Teil 3
+
+ Rev 1.178 14 Jun 1997 08:50:00 OS
+ Globaldokument Teil 2
+
+ Rev 1.177 13 Jun 1997 07:36:06 OS
+ Erweiterung fuer Globaldokument
+
+ Rev 1.176 28 May 1997 11:58:14 OS
+ Expand/Collapse-Zustand merken
+
+ Rev 1.175 13 May 1997 11:48:38 OS
+ Vorwaertsbew. mit Children per Drag and Drop: selektierte Eintreage abziehen #39885#
+
+ Rev 1.174 16 Apr 1997 11:50:58 OS
+ EnableAsyncDrag() an der TreeListBox
+
+ Rev 1.173 14 Apr 1997 16:28:16 OS
+ HelpId fuer InhaltstypenListBox
+
+ Rev 1.172 08 Apr 1997 10:28:34 MA
+ includes
+
+ Rev 1.171 27 Mar 1997 11:59:52 OS
+ Get7SetMinOutputSizePixel am SfxDockingWindow
+
+ Rev 1.170 20 Feb 1997 17:02:08 OS
+ GotoRegion impl., Frame und Grafik getrennt
+
+ Rev 1.169 11 Feb 1997 14:21:48 OS
+ DropMode mit variablen Images
+
+ Rev 1.168 31 Jan 1997 13:35:44 OS
+ HelpIds fuer Navigator-Toolbox und -Listbox
+
+ Rev 1.167 10 Jan 1997 14:18:54 OS
+ ConfigItem jetzt richtig
+
+ Rev 1.166 27 Nov 1996 16:32:46 OS
+ ConfigItem mitpflegen
+
+ Rev 1.165 20 Nov 1996 16:20:58 OS
+ Verschieben von Ueberschriften nur, wenn sie selektiert sind
+
+ Rev 1.164 14 Nov 1996 19:01:38 OS
+ jetzt auch wieder als PCH
+
+ Rev 1.163 13 Nov 1996 14:30:52 OS
+ neues ConfigItem: SwNavigationConfig
+
+ Rev 1.162 12 Nov 1996 18:17:16 OS
+ Resizing: Wunschbreite merken
+
+ Rev 1.161 12 Nov 1996 17:10:18 OS
+ Resizing, _ZoomIn/Out funktionieren wieder
+
+ Rev 1.160 11 Nov 1996 10:54:12 MA
+ ResMgr
+
+ Rev 1.159 05 Nov 1996 16:55:34 OS
+ Resize auch wieder im gedockten Zustand
+
+ Rev 1.158 05 Nov 1996 15:27:16 OS
+ Umstellung auf ChildWindowContext
+
+ Rev 1.157 24 Oct 1996 13:36:44 JP
+ String Umstellung: [] -> GetChar()
+
+ Rev 1.156 02 Oct 1996 08:08:00 MA
+ Umstellung Enable/Disable
+
+ Rev 1.155 28 Aug 1996 15:42:34 OS
+ includes
+
+ Rev 1.154 27 Jul 1996 15:33:34 OS
+ UpdateListBox auch ohne akt. View aufrufen
+
+ Rev 1.153 22 Jul 1996 15:06:56 OS
+ zusammengefaltete Groesse...
+
+ Rev 1.152 12 Jul 1996 13:23:30 OS
+ Konfiguration sichern
+
+ Rev 1.151 09 Jul 1996 17:40:18 OS
+ Resize: Listbox auf Null verkleinern, wenn sie nicht unter die Toolbox passt
+
+ Rev 1.150 04 Jul 1996 16:15:02 OS
+ richtige Anzeige der Listbox auch ohne aktive SwView
+
+ Rev 1.149 03 Jul 1996 14:24:42 OS
+ Listboxanzeige umgebaut, feste Viewanzeige moeglich
+
+ Rev 1.148 01 Jul 1996 16:00:26 OS
+ komplette Kontextmenues, Outlinetiefe einstellbar
+
+ Rev 1.147 28 Jun 1996 15:20:38 OS
+ drei Modi fuer D&D, Kontextmenue
+
+ Rev 1.146 26 Jun 1996 16:08:44 OS
+ Dispatcher::Execute angepasst, ::GotoPage aktiviert wieder das Seitenzahlfeld
+
+ Rev 1.145 26 Jun 1996 14:29:10 OS
+ Sprungfunktionen vervollstaendigt, Tastatursteuerung
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/utlui/navipi.hrc b/sw/source/ui/utlui/navipi.hrc
new file mode 100644
index 000000000000..9f68682da4bd
--- /dev/null
+++ b/sw/source/ui/utlui/navipi.hrc
@@ -0,0 +1,128 @@
+/*************************************************************************
+ *
+ * $RCSfile: navipi.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define TB_1 1
+#define TB_2 2
+#define TB_3 3
+#define TB_4 4
+#define BT_UP 5
+#define BT_DOWN 6
+#define IL_CONTENT 7
+
+#define FT_PAGE 10
+#define ED_PAGE 11
+
+#define LB_SELECT 22
+#define TL_SELECT 23
+
+#define TB_PAGE_TEXT 41
+#define TB_PAGE_COUNT 42
+
+#define TB_CONTENT 50
+#define TL_CONTENT 51
+
+#define LB_DOCS 53
+#define NF_PAGE 54
+#define TL_GLOBAL 55
+#define TB_GLOBAL 56
+
+//-------------------------------------------------------------------
+// Strings fuer Kontextmenue des ContentTree
+#define ST_CONTEXT_FIRST 60
+#define ST_OUTLINE_LEVEL ST_CONTEXT_FIRST
+#define ST_DRAGMODE (ST_CONTEXT_FIRST + 1)
+#define ST_HYPERLINK (ST_CONTEXT_FIRST + 2)
+#define ST_LINK_REGION (ST_CONTEXT_FIRST + 3)
+#define ST_COPY_REGION (ST_CONTEXT_FIRST + 4)
+#define ST_DISPLAY (ST_CONTEXT_FIRST + 5)
+#define ST_ACTIVE_VIEW (ST_CONTEXT_FIRST + 6)
+
+#define ST_STATUS_FIRST 67
+#define ST_HIDDEN (ST_STATUS_FIRST )
+#define ST_ACTIVE (ST_STATUS_FIRST + 1)
+#define ST_INACTIVE (ST_STATUS_FIRST + 2)
+#define ST_MISC 70
+#define ST_EDIT_ENTRY ST_MISC
+#define ST_DELETE_ENTRY (ST_MISC + 1)
+
+#define ST_GLOBAL_CONTEXT_FIRST (ST_DELETE_ENTRY + 1)
+#define ST_UPDATE (ST_GLOBAL_CONTEXT_FIRST )
+#define ST_EDIT_CONTENT (ST_GLOBAL_CONTEXT_FIRST + 1)
+#define ST_INSERT (ST_GLOBAL_CONTEXT_FIRST + 2)
+#define ST_INDEX (ST_GLOBAL_CONTEXT_FIRST + 3)
+//#define ST_CNTIDX (ST_GLOBAL_CONTEXT_FIRST + 4)
+//#define ST_USRIDX (ST_GLOBAL_CONTEXT_FIRST + 5)
+#define ST_FILE (ST_GLOBAL_CONTEXT_FIRST + 4)
+#define ST_NEW_FILE (ST_GLOBAL_CONTEXT_FIRST + 5)
+#define ST_TEXT (ST_GLOBAL_CONTEXT_FIRST + 6)
+#define ST_DELETE (ST_GLOBAL_CONTEXT_FIRST + 7)
+#define ST_UPDATE_SEL (ST_GLOBAL_CONTEXT_FIRST + 8)
+#define ST_UPDATE_INDEX (ST_GLOBAL_CONTEXT_FIRST + 9)
+#define ST_UPDATE_LINK (ST_GLOBAL_CONTEXT_FIRST +10)
+#define ST_UPDATE_ALL (ST_GLOBAL_CONTEXT_FIRST +11)
+#define ST_BROKEN_LINK (ST_GLOBAL_CONTEXT_FIRST +12)
+
+#define ST_REMOVE_INDEX (ST_GLOBAL_CONTEXT_FIRST +30)
+#define ST_REMOVE_TBL_PROTECTION (ST_GLOBAL_CONTEXT_FIRST +31)
+#define ST_RENAME (ST_GLOBAL_CONTEXT_FIRST +32)
+#define ST_READONLY_IDX (ST_GLOBAL_CONTEXT_FIRST +33)
+#define ST_INVISIBLE (ST_GLOBAL_CONTEXT_FIRST +34)
+
+
diff --git a/sw/source/ui/utlui/navipi.src b/sw/source/ui/utlui/navipi.src
new file mode 100644
index 000000000000..26f755c2558c
--- /dev/null
+++ b/sw/source/ui/utlui/navipi.src
@@ -0,0 +1,1615 @@
+/*************************************************************************
+ *
+ * $RCSfile: navipi.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "cmdid.h"
+#include "utlui.hrc"
+#include "navipi.hrc"
+#include "helpid.h"
+#define IMAGE_STDBTN_COLOR Color { Red = 0xC000; Green = 0xC000; Blue = 0xC000; }
+Window DLG_NAVIGATION_PI
+{
+ HelpID = HID_NAVIGATION_PI ;
+ OutputSize = TRUE ;
+ DialogControl = TRUE ;
+ SVLook = TRUE ;
+ // Size = MAP_PIXEL( 235, 195 );
+ // ZoomInOutputSize = MAP_PIXEL(235, 56);
+ Size = MAP_PIXEL ( 282 , 59 ) ;
+ // Closeable = TRUE ;
+ // Zoomable = TRUE ;
+ // Moveable = TRUE ;
+ // ZoomIn = FALSE;
+ Hide = TRUE ;
+ // HideWhenDeactivate = TRUE ;
+ // Sizeable = TRUE ;
+ // EnableResizing = TRUE ;
+ // Dockable = TRUE ;
+ // Sizeable = TRUE ;
+ Text = "Navigator" ;
+ Text [ English ] = "Navigator" ;
+ Text [ norwegian ] = "Navigator" ;
+ Text [ italian ] = "Navigatore" ;
+ Text [ portuguese_brazilian ] = "Navegador" ;
+ Text [ portuguese ] = "Navegador" ;
+ Text [ finnish ] = "Navigaattori" ;
+ Text [ danish ] = "Navigator" ;
+ Text [ french ] = "Navigateur" ;
+ Text [ swedish ] = "Navigator" ;
+ Text [ dutch ] = "Navigator" ;
+ Text [ spanish ] = "Navegador" ;
+ Text [ english_us ] = "Navigator" ;
+ ExtraData =
+ {
+ 198;
+ };
+ /************************************************************************************
+ Toolbox ab 323 x
+************************************************************************************/
+ ImageList IL_CONTENT
+ {
+ ImageBitmap = Bitmap { File = "scnacon.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ IdList =
+ {
+ FN_UP ; // sc20186.bmp
+ FN_DOWN ; // sc20175.bmp
+ FN_SELECT_HEADER ; // sc20179.bmp
+ FN_SELECT_FOOTER ; // sc20177.bmp
+ FN_SELECT_FOOTNOTE ; // sc20182.bmp
+ FN_SHOW_CONTENT_BOX ; // 20233.bmp
+ FN_SHOW_ROOT ; // 20234.bmp
+ FN_ITEM_UP ; // sc20174.bmp
+ FN_ITEM_DOWN ; // sc20171.bmp
+ FN_ITEM_LEFT ; // sc20172.bmp
+ FN_ITEM_RIGHT ; // sc20173.bmp
+ FN_DROP_REGION ; // sc20235.bmp
+ FN_OUTLINE_LEVEL ; // sc20236.bmp
+ FN_SELECT_SET_AUTO_BOOKMARK ; // sc20183.bmp
+ FN_DROP_REGION_LINK ; // 20238
+ FN_DROP_REGION_COPY ; // 20239
+ FN_GLOBAL_SWITCH ; //20244
+ FN_GLOBAL_EDIT ; //20245
+ FN_GLOBAL_UPDATE ; //20246
+ FN_GLOBAL_OPEN ; //20247
+ FN_GLOBAL_SAVE_CONTENT ; //20248
+ FN_CREATE_NAVIGATION ; //20249
+ };
+ IdCount = { 21 ; };
+ };
+ Toolbox TB_CONTENT
+ {
+ Pos = MAP_PIXEL ( 5 , 5 ) ;
+ Size = MAP_PIXEL ( 300 , 47 ) ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_GLOBAL_SWITCH ;
+ HelpID = HID_NAVI_TBX17 ;
+ Text = "Umschalten" ;
+ Text [ English ] = "Switch" ;
+ Text [ english_us ] = "Toggle" ;
+ Text [ portuguese_brazilian ] = "Umschalten" ;
+ Text [ swedish ] = "Växla" ;
+ Text [ danish ] = "Skift" ;
+ Text [ italian ] = "Commuta" ;
+ Text [ spanish ] = "Conmutar" ;
+ Text [ french ] = "Basculer" ;
+ Text [ dutch ] = "Omschakelen" ;
+ Text [ portuguese ] = "Comutar" ;
+ Text[ chinese_simplified ] = "Çл»";
+ Text[ russian ] = "Ïåðåêëþ÷èòü";
+ Text[ polish ] = "Prze³¹cz";
+ Text[ japanese ] = "Ø‚è‘Ö‚¦";
+ Text[ chinese_traditional ] = "Âà´«";
+ Text[ arabic ] = "ÇáÊÈÏíá";
+ Text[ greek ] = "ÅíáëëáãÞ";
+ Text[ korean ] = "Åä±Û";
+ Text[ turkish ] = "Deðiþtir";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_CREATE_NAVIGATION ;
+ HelpID = HID_NAVI_TBX24 ;
+ Text = "Navigation" ;
+ Text [ English ] = "Navigation" ;
+ Text [ english_us ] = "Navigation" ;
+ Text [ portuguese_brazilian ] = "Navigation" ;
+ Text [ swedish ] = "Navigation" ;
+ Text [ danish ] = "Navigation" ;
+ Text [ italian ] = "Navigazione" ;
+ Text [ spanish ] = "Navegación" ;
+ Text [ french ] = "Navigation" ;
+ Text [ dutch ] = "Navigatie" ;
+ Text [ portuguese ] = "Navegação" ;
+ Text[ chinese_simplified ] = "ä¯ÀÀ";
+ Text[ russian ] = "Íàâèãàöèÿ";
+ Text[ polish ] = "Nawigacja";
+ Text[ japanese ] = "ÅËÞ¹Þ°¼®Ý";
+ Text[ chinese_traditional ] = "ÂsÄý";
+ Text[ arabic ] = "ÇáãáÇÍÉ";
+ Text[ greek ] = "Ìåôáêßíçóç";
+ Text[ korean ] = "³×ºñ°ÔÀ̼Ç";
+ Text[ turkish ] = "Dolaþma";
+ };
+ /* ToolBoxItem
+ {
+ Identifier = FN_CONTENT_LB ;
+ HelpID = HID_NAVI_TBX1 ;
+ Text = "Inhaltstyp" ;
+ Text [ English ] = "Content type" ;
+ // Listbox mit Inhaltsauswahl
+ Text [ dutch ] = "Inhoudstype" ;
+ Text [ english_us ] = "Content Type" ;
+ Text [ italian ] = "Tipo di contenuto" ;
+ Text [ spanish ] = "Tipo de contenido" ;
+ Text [ french ] = "Type de contenu" ;
+ Text [ swedish ] = "Innehållstyp" ;
+ Text [ danish ] = "Indholdstype" ;
+ Text [ portuguese_brazilian ] = "Inhaltstyp" ;
+ Text [ portuguese ] = "Tipo de conteúdo" ;
+ };*/
+ ToolBoxItem
+ {
+ Identifier = FN_UP ;
+ // ItemBitmap = Bitmap { File = "navup.bmp"; };
+ HelpID = HID_NAVI_TBX2 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Rückwärts : R³ckwõrts */
+ Text = "Rückwärts" ;
+ Text [ English ] = "Backward" ;
+ Text [ norwegian ] = "Bakover" ;
+ Text [ italian ] = "Indietro" ;
+ Text [ portuguese_brazilian ] = "Para trás" ;
+ Text [ portuguese ] = "Anterior" ;
+ Text [ finnish ] = "Taaaksepäin" ;
+ Text [ danish ] = "Tilbage" ;
+ Text [ french ] = "Précédent" ;
+ Text [ swedish ] = "Bakåt" ;
+ Text [ dutch ] = "Achteruit" ;
+ Text [ spanish ] = "Retroceder" ;
+ Text [ english_us ] = "Back" ;
+ Text[ chinese_simplified ] = "·µ»Ø";
+ Text[ russian ] = "Íàçàä";
+ Text[ polish ] = "Wstecz";
+ Text[ japanese ] = "–ß‚é";
+ Text[ chinese_traditional ] = "ªð¦^";
+ Text[ arabic ] = "Åáì ÇáÎáÝ";
+ Text[ greek ] = "Ðßóù";
+ Text[ korean ] = "µÚ·Î";
+ Text[ turkish ] = "Geri";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_DOWN ;
+ // ItemBitmap = Bitmap { File = "navdn.bmp"; };
+ HelpID = HID_NAVI_TBX3 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Vorwärts : Vorwõrts */
+ Text = "Vorwärts" ;
+ Text [ English ] = "Forward" ;
+ Text [ norwegian ] = "Fram" ;
+ Text [ italian ] = "Avanti" ;
+ Text [ portuguese_brazilian ] = "Para Frente" ;
+ Text [ portuguese ] = "Seguinte" ;
+ Text [ finnish ] = "Seuraava" ;
+ Text [ danish ] = "Fremad" ;
+ Text [ french ] = "Suivant" ;
+ Text [ swedish ] = "Framåt" ;
+ Text [ dutch ] = "Voorwaarts" ;
+ Text [ spanish ] = "Avanzar" ;
+ Text [ english_us ] = "Forward" ;
+ Text[ chinese_simplified ] = "ÏòÇ°";
+ Text[ russian ] = "Âïåðåä";
+ Text[ polish ] = "Do przodu";
+ Text[ japanese ] = "i‚Þ";
+ Text[ chinese_traditional ] = "¦V«e";
+ Text[ arabic ] = "Åáì ÇáÃãÇã";
+ Text[ greek ] = "Åìðñüò";
+ Text[ korean ] = "¾ÕÀ¸·Î";
+ Text[ turkish ] = "Ýleri";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_DROP_REGION ;
+ HelpID = HID_NAVI_TBX4 ;
+ Text = "Dragmodus" ;
+ Text [ English ] = "Drag Mode" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Modus für Drag & Drop auswählen : Modus f³r Drag & Drop auswõhlen */
+ DropDown = TRUE ;
+ Text [ english_us ] = "Drag Mode" ;
+ Text [ italian ] = "Modo drag" ;
+ Text [ spanish ] = "Modo Arrastrar" ;
+ Text [ french ] = "Mode Glisser" ;
+ Text [ dutch ] = "Modus Slepen" ;
+ Text [ swedish ] = "Draläge" ;
+ Text [ danish ] = "Trækmodus" ;
+ Text [ portuguese_brazilian ] = "Dragmodus" ;
+ Text [ portuguese ] = "Modo Arrastar" ;
+ Text[ chinese_simplified ] = "Í϶¯Ä£Ê½";
+ Text[ russian ] = "Ðåæèì ïåðåòàñêèâàíèÿ";
+ Text[ polish ] = "Tryb przeci¹gania";
+ Text[ japanese ] = "ÄÞׯ¸ÞÓ°ÄÞ";
+ Text[ chinese_traditional ] = "©ì¦²¼Ò¦¡";
+ Text[ arabic ] = "ØÑíÞÉ ÇáÓÍÈ";
+ Text[ greek ] = "ÊáôÜóôáóç óõñìïý";
+ Text[ korean ] = "µå·¡±× ¸ðµå";
+ Text[ turkish ] = "Sürükleme kipi";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_ITEM_UP ;
+ // ItemBitmap = Bitmap { File = "navchup.bmp"; };
+ HelpID = HID_NAVI_TBX5 ;
+ Text = "Kapitel hoch" ;
+ Text [ English ] = "Chapter up" ;
+ Text [ norwegian ] = "Kapittel opp" ;
+ Text [ italian ] = "Capitolo superiore" ;
+ Text [ portuguese_brazilian ] = "Capítulo acima" ;
+ Text [ portuguese ] = "Subir um capítulo" ;
+ Text [ finnish ] = "Edellinen luku" ;
+ Text [ danish ] = "Kapitel op" ;
+ Text [ french ] = "Chapitre vers le haut" ;
+ Text [ swedish ] = "Kapitel uppåt" ;
+ Text [ dutch ] = "Hoofdstuk hoger" ;
+ Text [ spanish ] = "Un capítulo hacia arriba" ;
+ Text [ english_us ] = "Promote Chapter" ;
+ //HelpText[english_us-wrong] = "Move chapter down";//"Move chapter up"
+ Text[ chinese_simplified ] = "ÕÂÉý¼¶";
+ Text[ russian ] = "Ãëàâà ñâåðõó";
+ Text[ polish ] = "Rozdzia³ do góry";
+ Text[ japanese ] = "Í‚ÌÚÍÞÙ‚ðã‚°‚é";
+ Text[ chinese_traditional ] = "³¹¤É¯Å";
+ Text[ arabic ] = "ÝÕá áÃÚáì";
+ Text[ greek ] = "Ðñïâéâáóìüò êåöáëáßïõ";
+ Text[ korean ] = "Àå ½Â°Ý";
+ Text[ turkish ] = "Bölümü yukarý al";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_ITEM_DOWN ;
+ // ItemBitmap = Bitmap { File = "navchdn.bmp"; };
+ HelpID = HID_NAVI_TBX6 ;
+ Text = "Kapitel hinunter" ;
+ Text [ English ] = "Chapter down" ;
+ Text [ norwegian ] = "Kapittel ned" ;
+ Text [ italian ] = "Capitolo inferiore" ;
+ Text [ portuguese_brazilian ] = "Capítulo abaixo" ;
+ Text [ portuguese ] = "Descer um capítulo" ;
+ Text [ finnish ] = "Seuraava luku" ;
+ Text [ danish ] = "Kapitel ned" ;
+ Text [ french ] = "Chapitre vers le bas" ;
+ Text [ swedish ] = "Kapitel nedåt" ;
+ Text [ dutch ] = "Hoofdstuk lager" ;
+ Text [ spanish ] = "Un capítulo hacia abajo" ;
+ Text [ english_us ] = "Demote Chapter" ;
+ Text[ chinese_simplified ] = "Õ½µ¼¶";
+ Text[ russian ] = "Ãëàâà ñíèçó";
+ Text[ polish ] = "Rozdzia³ w dó³";
+ Text[ japanese ] = "Í‚ÌÚÍÞÙ‚ð‰º‚°‚é";
+ Text[ chinese_traditional ] = "³¹­°¯Å";
+ Text[ arabic ] = "ÝÕá áÃÓÝá";
+ Text[ greek ] = "Õðïâéâáóìüò êåöáëáßïõ";
+ Text[ korean ] = "Àå ³·Ãß±â";
+ Text[ turkish ] = "Bölümü aþaðý çek";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SHOW_CONTENT_BOX ;
+ HelpID = HID_NAVI_TBX7 ;
+ Text = "Auswahlbox an-/ausschalten" ;
+ Text [ English ] = "Toggle Listbox" ;
+ Text [ english_us ] = "List Box On/Off" ;
+ Text [ italian ] = "Mostra/nascondi la casella di selezione" ;
+ Text [ spanish ] = "Mostrar/ocultar cuadro de selección" ;
+ Text [ french ] = "Afficher/masquer la boîte de sélection" ;
+ Text [ dutch ] = "Keuzebox in-/uitschakelen" ;
+ Text [ swedish ] = "Urvalsbox på/av" ;
+ Text [ danish ] = "Vis/skjul liste" ;
+ Text [ portuguese_brazilian ] = "Auswahlbox an-/ausschalten" ;
+ Text [ portuguese ] = "Act./Desactivar caixa de selecção" ;
+ Text[ chinese_simplified ] = "ÏÔʾ/ÒþÈëÁбí¿ò";
+ Text[ russian ] = "Âêë./âûêë. îêíî ñïèñêà";
+ Text[ polish ] = "W³¹cz/Wy³¹cz pole listy";
+ Text[ japanese ] = "ؽÄÎÞ¯¸½ µÝ/µÌ";
+ Text[ chinese_traditional ] = "Åã¥Ü/Áô¤J²M³æ¤è¶ô";
+ Text[ arabic ] = "ÅÙåÇÑ/ÅÎÝÇÁ ÕäÏæÞ ÇáÇÎÊíÇÑ";
+ Text[ greek ] = "Ðëáßóéï åðéëïãÞò Íáé/¼÷é";
+ Text[ korean ] = "¸®½ºÆ® ¹Ú½º ½ÃÀÛ/Á¾·á";
+ Text[ turkish ] = "Liste kutusu açýk/kapalý";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SHOW_ROOT ;
+ HelpID = HID_NAVI_TBX8 ;
+ Text = "Inhaltsansicht umschalten" ;
+ Text [ English ] = "Toggle content view" ;
+ Text [ english_us ] = "Content View" ;
+ Text [ italian ] = "Commuta la vista del contenuto" ;
+ Text [ spanish ] = "Conmutar visualización del contenido" ;
+ Text [ french ] = "Basculer l'affichage du contenu" ;
+ Text [ dutch ] = "Inhoudsopgave in-/uitschakelen" ;
+ Text [ swedish ] = "Växla innehållsvisning" ;
+ Text [ danish ] = "Skift til/fra indholdsvisning" ;
+ Text [ portuguese_brazilian ] = "Inhaltsansicht umschalten" ;
+ Text [ portuguese ] = "Comutar vista do conteúdo" ;
+ Text[ chinese_simplified ] = "Çл»ÄÚÈÝÊÓͼ";
+ Text[ russian ] = "Ïåðåêëþ÷èòü âèä ñîäåðæàíèÿ";
+ Text[ polish ] = "Prze³¹cz widok treœci";
+ Text[ japanese ] = "“à—e‚ÌËÞ­°‚ð؂芷‚¦";
+ Text[ chinese_traditional ] = "¤Á´«¤º®eÀ˵ø";
+ Text[ arabic ] = "ÊÈÏíá ØÑíÞÉ ÚÑÖ ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "ÐñïâïëÞ ðåñéå÷ïìÝíùí Íáé/¼÷é";
+ Text[ korean ] = "³»¿ë º¸±â";
+ Text[ turkish ] = "Ýçerik görünümü";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SELECT_SET_AUTO_BOOKMARK ;
+ HelpID = HID_NAVI_TBX9 ;
+ // ItemBitmap = Bitmap { File = "navstmp.bmp"; };
+ Text = "Merker setzen" ;
+ Text [ English ] = "Set Bookmarks" ;
+ Text [ norwegian ] = "Sett inn Bokmerker" ;
+ Text [ italian ] = "Imposta contrassegno" ;
+ Text [ portuguese_brazilian ] = "Definir Marcas" ;
+ Text [ portuguese ] = "Definir marca" ;
+ Text [ finnish ] = "Aseta kirjanmerkit" ;
+ Text [ danish ] = "Sæt påmindelse" ;
+ Text [ french ] = "Définir un pense-bête" ;
+ Text [ swedish ] = "Sätt temporärt bokmärke" ;
+ Text [ dutch ] = "Merktekens plaatsen" ;
+ Text [ spanish ] = "Insertar marca" ;
+ Text [ english_us ] = "Set Reminder" ;
+ Text[ chinese_simplified ] = "ÉèÖñê¼Ç";
+ Text[ russian ] = "Óñòàíîâèòü ïîìåòêó";
+ Text[ polish ] = "OsadŸ znaczniki";
+ Text[ japanese ] = "Šo‚¦Ž~‚ß‚ð•t‚¯‚é";
+ Text[ chinese_traditional ] = "³]©w´£¿ô";
+ Text[ arabic ] = "æÖÚ ÚáÇãÉ ÊÐßíÑ";
+ Text[ greek ] = "Ïñéóìüò õðåíèýìéóçò";
+ Text[ korean ] = "¹Ì¸®¾Ë¸² ¼³Á¤";
+ Text[ turkish ] = "Anýmsatýcý yerleþtir";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SELECT_HEADER ;
+ // ItemBitmap = Bitmap { File = "navhead.bmp"; };
+ HelpID = HID_NAVI_TBX10 ;
+ Text = "Kopfzeile" ;
+ Text [ English ] = "Header" ;
+ Text [ norwegian ] = "Header" ;
+ Text [ italian ] = "Intestazione" ;
+ Text [ portuguese_brazilian ] = "Cabeçalho" ;
+ Text [ portuguese ] = "Cabeçalho" ;
+ Text [ finnish ] = "Yläteksti" ;
+ Text [ danish ] = "Sidehoved" ;
+ Text [ french ] = "En-tête " ;
+ Text [ swedish ] = "Sidhuvud" ;
+ Text [ dutch ] = "Koptekst" ;
+ Text [ spanish ] = "Encabezamiento" ;
+ Text [ english_us ] = "Header" ;
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë";
+ Text[ polish ] = "Nag³ówek";
+ Text[ japanese ] = "ͯÀÞ";
+ Text[ chinese_traditional ] = "­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ";
+ Text[ greek ] = "Êåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Üstbilgi";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SELECT_FOOTER ;
+ // ItemBitmap = Bitmap { File = "navfoot.bmp"; };
+ HelpID = HID_NAVI_TBX11 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Fußzeile : Fu˜zeile */
+ Text = "Fußzeile" ;
+ Text [ English ] = "Footer" ;
+ Text [ norwegian ] = "Footer" ;
+ Text [ italian ] = "Piè di pagina" ;
+ Text [ portuguese_brazilian ] = "Rodapé" ;
+ Text [ portuguese ] = "Rodapé" ;
+ Text [ finnish ] = "Alateksti" ;
+ Text [ danish ] = "Sidefod" ;
+ Text [ french ] = "Pied de page" ;
+ Text [ swedish ] = "Sidfot" ;
+ Text [ dutch ] = "Voettekst" ;
+ Text [ spanish ] = "Pie de página" ;
+ Text [ english_us ] = "Footer" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Springen zur Fußzeile : Springen zur Fu˜zeile */
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë";
+ Text[ polish ] = "Stopka";
+ Text[ japanese ] = "̯À";
+ Text[ chinese_traditional ] = "­¶§À";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ";
+ Text[ greek ] = "ÕðïóÝëéäï";
+ Text[ korean ] = "¹Ù´Ú±Û";
+ Text[ turkish ] = "Altbilgi";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SELECT_FOOTNOTE ;
+ // ItemBitmap = Bitmap { File = "navnote.bmp"; };
+ HelpID = HID_NAVI_TBX12 ;
+ Text = "Anker<->Text" ;
+ Text [ English ] = "Anchor<->Text" ;
+ Text [ norwegian ] = "Anker<->Tekst" ;
+ Text [ italian ] = "Ancoraggio<->Testo" ;
+ Text [ portuguese_brazilian ] = "Âncora<->Texto" ;
+ Text [ portuguese ] = "Âncora<->Texto" ;
+ Text [ finnish ] = "Ankkuri<->Teksti" ;
+ Text [ danish ] = "Anker<->Tekst" ;
+ Text [ french ] = "Ancre <-> texte" ;
+ Text [ swedish ] = "Ankare<->Text" ;
+ Text [ dutch ] = "Anker<->Tekst" ;
+ Text [ spanish ] = "Ancla <->Texto" ;
+ Text [ english_us ] = "Anchor<->Text" ;
+ /* ### ACHTUNG: Neuer Text in Resource? Springen zwischen Fußnotenankern und dem Fußnotentext : Springen zwischen Fu˜notenankern und dem Fu˜notentext */
+ Text[ chinese_simplified ] = "±ê¼Ç<->ÕýÎÄ";
+ Text[ russian ] = "Ïðèâÿçêà<->Òåêñò";
+ Text[ polish ] = "Kotwica<->Tekst";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "¼Ð¸¹<->¤º¤å";
+ Text[ arabic ] = "ãÑÓÇÉ<->äÕ";
+ Text[ greek ] = "Áãêýñùóç<->Êåßìåíï";
+ Text[ korean ] = "°íÁ¤<->ÅؽºÆ®";
+ Text[ turkish ] = "Sabitleyici<->Metin";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_OUTLINE_LEVEL ;
+ HelpID = HID_NAVI_TBX13 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Angezeigte Überschriftenebenen : Angezeigte šberschriftenebenen */
+ Text = "Angezeigte Überschriftenebenen" ;
+ Text [ English ] = "Number of outline level" ;
+ DropDown = TRUE ;
+ Text [ dutch ] = "Weergegeven kopregelniveaus" ;
+ Text [ english_us ] = "Heading Levels Shown" ;
+ Text [ italian ] = "Livelli di intestazioni visualizzati" ;
+ Text [ spanish ] = "Niveles de encabezados mostrados" ;
+ Text [ french ] = "Niveaux de titres affichés" ;
+ Text [ swedish ] = "Visade överskriftsnivåer" ;
+ Text [ danish ] = "Viste overskriftsniveauer" ;
+ Text [ portuguese_brazilian ] = "Angezeigte Überschriftenebenen" ;
+ Text [ portuguese ] = "Níveis de títulos mostrados" ;
+ Text[ chinese_simplified ] = "ÏÔʾµÄ´ó¸Ù¼¶";
+ Text[ russian ] = "Ïîêàçàííûå óðîâíè ñòðóêòóðû";
+ Text[ polish ] = "Wyœwietlone poziomy konspektu";
+ Text[ japanese ] = "±³Ä×²Ý ÚÍÞÙ";
+ Text[ chinese_traditional ] = "Åã¥Üªº¤jºõ¯Å";
+ Text[ arabic ] = "ãÓÊæíÇÊ ÇáÚäÇæíä ÇáÙÇåÑÉ";
+ Text[ greek ] = "Åìöáíéæüìåíá åðßðåäá åðéêåöáëßäùí";
+ Text[ korean ] = "¿Ü°û¼± ¼öÁØ";
+ Text[ turkish ] = "Görüntülenen baþlýk düzeyleri";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_ITEM_LEFT ;
+ HelpID = HID_NAVI_TBX14 ;
+ // ItemBitmap = Bitmap { File = "navchlf.bmp"; };
+ Text = "Ebene hoch" ;
+ Text [ English ] = "Increase Level" ;
+ Text [ norwegian ] = "+++Increase Level" ;
+ Text [ italian ] = "Livello superiore" ;
+ Text [ portuguese_brazilian ] = "Aumentar Nível" ;
+ Text [ portuguese ] = "Subir um nível" ;
+ Text [ finnish ] = "Korota tasoa" ;
+ Text [ danish ] = "Niveau op" ;
+ Text [ french ] = "Hausser d'un niveau" ;
+ Text [ swedish ] = "Höj nivån" ;
+ Text [ dutch ] = "Hoger niveau" ;
+ Text [ spanish ] = "Subir un nivel" ;
+ Text [ english_us ] = "Promote Level" ;
+ Text[ chinese_simplified ] = "Éý¼¶";
+ Text[ russian ] = "Íà îäèí óðîâåíü ââåðõ";
+ Text[ polish ] = "Podnieœ poziom";
+ Text[ japanese ] = "ÚÍÞÙ‚ðã‚°‚é";
+ Text[ chinese_traditional ] = "¤É¯Å";
+ Text[ arabic ] = "ãÓÊæì áÃÚáì";
+ Text[ greek ] = "Ðñïâéâáóìüò åðéðÝäïõ";
+ Text[ korean ] = "¼öÁØ ¿Ã¸®±â";
+ Text[ turkish ] = "Düzeyi yukarý al";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_ITEM_RIGHT ;
+ // ItemBitmap = Bitmap { File = "navchrg.bmp"; };
+ HelpID = HID_NAVI_TBX15 ;
+ Text = "Ebene senken" ;
+ Text [ English ] = "Decrease Level" ;
+ Text [ norwegian ] = "+++Decrease Level" ;
+ Text [ italian ] = "Livello inferiore" ;
+ Text [ portuguese_brazilian ] = "Diminuir Nível" ;
+ Text [ portuguese ] = "Descer um nível" ;
+ Text [ finnish ] = "Laske tasoa" ;
+ Text [ danish ] = "Niveau ned" ;
+ Text [ french ] = "Abaisser d'un niveau" ;
+ Text [ swedish ] = "Sänk nivån" ;
+ Text [ dutch ] = "Lager niveau" ;
+ Text [ spanish ] = "Bajar un nivel" ;
+ Text [ english_us ] = "Demote Level" ;
+ Text[ chinese_simplified ] = "½µ¼¶";
+ Text[ russian ] = "Íà îäèí óðîâåíü âíèç";
+ Text[ polish ] = "Obni¿ poziom";
+ Text[ japanese ] = "ÚÍÞÙ‚ð‰º‚°‚é";
+ Text[ chinese_traditional ] = "­°¯Å";
+ Text[ arabic ] = "ãÓÊæì áÃÓÝá";
+ Text[ greek ] = "Õðïâéâáóìüò åðéðÝäïõ";
+ Text[ korean ] = "¼öÁØ ³·Ãß±â";
+ Text[ turkish ] = "Düzeyi aþaðý çek";
+ };
+ };
+ };
+ ToolBox TB_GLOBAL
+ {
+ Pos = MAP_PIXEL ( 5 , 5 ) ;
+ Size = MAP_PIXEL ( 300 , 47 ) ;
+ LineCount = 1 ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_GLOBAL_SWITCH ;
+ HelpID = HID_NAVI_TBX17 ;
+ Text = "Umschalten" ;
+ Text [ English ] = "Switch" ;
+ Text [ english_us ] = "Toggle" ;
+ Text [ portuguese_brazilian ] = "Umschalten" ;
+ Text [ swedish ] = "Växla" ;
+ Text [ danish ] = "Skift" ;
+ Text [ italian ] = "Commuta" ;
+ Text [ spanish ] = "Conmutar" ;
+ Text [ french ] = "Basculer" ;
+ Text [ dutch ] = "Omschakelen" ;
+ Text [ portuguese ] = "Comutar" ;
+ Text[ chinese_simplified ] = "Çл»";
+ Text[ russian ] = "Ïåðåêëþ÷èòü";
+ Text[ polish ] = "Prze³¹cz";
+ Text[ japanese ] = "Ø‚è‘Ö‚¦";
+ Text[ chinese_traditional ] = "Âà´«";
+ Text[ arabic ] = "ÇáÊÈÏíá";
+ Text[ greek ] = "ÅíáëëáãÞ";
+ Text[ korean ] = "Åä±Û";
+ Text[ turkish ] = "Toggle";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_GLOBAL_EDIT ;
+ HelpID = HID_NAVI_TBX18 ;
+ Text = "Bearbeiten" ;
+ Text [ English ] = "Edit" ;
+ Text [ english_us ] = "Edit" ;
+ Text [ portuguese_brazilian ] = "Bearbeiten" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ french ] = "Éditer" ;
+ Text [ dutch ] = "Bewerken" ;
+ Text [ portuguese ] = "Editar" ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "Edytuj";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ greek ] = "Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_GLOBAL_UPDATE ;
+ HelpID = HID_NAVI_TBX19 ;
+ Text = "Aktualisieren" ;
+ Text [ English ] = "Update" ;
+ Text [ english_us ] = "Update" ;
+ Text [ portuguese_brazilian ] = "Aktualisieren" ;
+ Text [ swedish ] = "Uppdatera" ;
+ Text [ danish ] = "Opdater" ;
+ Text [ italian ] = "Aggiorna" ;
+ Text [ spanish ] = "Actualizar" ;
+ Text [ french ] = "Actualiser" ;
+ Text [ dutch ] = "Actualiseren" ;
+ Text [ portuguese ] = "Actualizar" ;
+ Text[ chinese_simplified ] = "¸üÐÂ";
+ Text[ russian ] = "Îáíîâèòü";
+ Text[ polish ] = "Aktualizuj";
+ Text[ japanese ] = "XV‚·‚é";
+ Text[ chinese_traditional ] = "§ó·s";
+ Text[ arabic ] = "ÊÍÏíË";
+ Text[ greek ] = "ÅíçìÝñùóç";
+ Text[ korean ] = "¾÷ µ¥ÀÌÆ®";
+ Text[ turkish ] = "Güncelle";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_GLOBAL_OPEN ;
+ HelpID = HID_NAVI_TBX20 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einfügen : Einf³gen */
+ Text = "Einfügen" ;
+ Text [ English ] = "Insert" ;
+ Text [ english_us ] = "Insert" ;
+ Text [ portuguese_brazilian ] = "Einfügen" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ danish ] = "Sæt ind" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ french ] = "Insertion" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâêà";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_GLOBAL_SAVE_CONTENT ;
+ HelpID = HID_NAVI_TBX21 ;
+ Text = "Inhalte mitspeichern" ;
+ Text [ English ] = "Save content" ;
+ Text [ english_us ] = "Save Contents as well" ;
+ Text [ portuguese_brazilian ] = "Inhalte mitspeichern" ;
+ Text [ swedish ] = "Spara med innehåll" ;
+ Text [ danish ] = "Gem med indhold" ;
+ Text [ italian ] = "Salva anche i contenuti" ;
+ Text [ spanish ] = "Guardar contenidos" ;
+ Text [ french ] = "Enregistrer le contenu" ;
+ Text [ dutch ] = "Inhoud opslaan" ;
+ Text [ portuguese ] = "Guardar também conteúdos" ;
+ Text[ russian ] = "Ñîõðàíèòü ñîäåðæèìîå";
+ Text[ polish ] = "Zapisz zawartoϾ";
+ Text[ japanese ] = "“à—e‚ð•Û‘¶‚·‚é";
+ Text[ chinese_simplified ] = "´æÅÌÄÚÈÝ";
+ Text[ chinese_traditional ] = "Àx¦s¤º®e";
+ Text[ arabic ] = "ÍÝÙ ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "ÁðïèÞêåõóç êáé ôùí ðåñéå÷ïìÝíùí";
+ Text[ korean ] = "³»¿ë ÀúÀå";
+ Text[ turkish ] = "Ýçeriði de kaydet";
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_ITEM_UP ;
+ HelpID = HID_NAVI_TBX22 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Nach oben verschieben : Nach unten verschieben */
+ Text = "Nach oben verschieben" ;
+ Text [ English ] = "Move up" ;
+ Text [ english_us ] = "Move Up" ;
+ Text [ portuguese_brazilian ] = "Nach unten verschieben" ;
+ Text [ swedish ] = "Flytta uppåt" ;
+ Text [ danish ] = "Flyt opad" ;
+ Text [ italian ] = "Sposta verso l'alto" ;
+ Text [ spanish ] = "Desplazar hacia arriba" ;
+ Text [ french ] = "Déplacer vers le haut" ;
+ Text [ dutch ] = "Naar boven verplaatsen" ;
+ Text [ portuguese ] = "Mover para cima" ;
+ Text[ chinese_simplified ] = "ÏòÉÏÒƶ¯";
+ Text[ russian ] = "Ïåðåìåñòèòü ââåðõ";
+ Text[ polish ] = "Przenieœ w górê";
+ Text[ japanese ] = "ã•û‚ÖˆÚ“®";
+ Text[ chinese_traditional ] = "¦V¤W²¾°Ê";
+ Text[ arabic ] = "ÅÒÇÍÉ Åáì ÃÚáì";
+ Text[ greek ] = "ÌåôáöïñÜ ðñïò ôá ðÜíù";
+ Text[ korean ] = "À§·Î À̵¿";
+ Text[ turkish ] = "Yukarý taþý";
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_ITEM_DOWN ;
+ HelpID = HID_NAVI_TBX23 ;
+ /* ### ACHTUNG: Neuer Text in Resource? Nach unten verschieben : Nach oben verschieben */
+ Text = "Nach unten verschieben" ;
+ Text [ English ] = "Move down" ;
+ Text [ english_us ] = "Move Down" ;
+ Text [ portuguese_brazilian ] = "Nach oben verschieben" ;
+ Text [ swedish ] = "Flytta nedåt" ;
+ Text [ danish ] = "Flyt nedad" ;
+ Text [ italian ] = "Sposta verso il basso" ;
+ Text [ spanish ] = "Desplazar hacia abajo" ;
+ Text [ french ] = "Déplacer vers le bas" ;
+ Text [ dutch ] = "Naar beneden verplaatsen" ;
+ Text [ portuguese ] = "Mover para baixo" ;
+ Text[ chinese_simplified ] = "ÏòÏÂÒƶ¯";
+ Text[ russian ] = "Ïåðåìåñòèòü âíèç";
+ Text[ polish ] = "Przenieœ w dó³";
+ Text[ japanese ] = "‰º•û‚ÖˆÚ“®";
+ Text[ chinese_traditional ] = "¦V¤U²¾°Ê";
+ Text[ arabic ] = "ÅÒÇÍÉ Åáì ÃÓÝá";
+ Text[ greek ] = "ÌåôáöïñÜ ðñïò ôá êÜôù";
+ Text[ korean ] = "¾Æ·¡·Î À̵¿";
+ Text[ turkish ] = "Aþaðý taþý";
+ };
+ };
+ };
+ /* TreeListBox */
+ Control TL_CONTENT
+ {
+ HelpID = HID_NAVI_CONTENT ;
+ Border = TRUE ;
+ Pos = MAP_PIXEL ( 5 , 62 ) ;
+ Size = MAP_PIXEL ( 274 , 112 ) ;
+ TabStop = TRUE ;
+ ClipChildren = TRUE ;
+ Hide = TRUE ;
+ };
+ Control TL_GLOBAL
+ {
+ HelpID = HID_NAVI_GLOBAL ;
+ Border = TRUE ;
+ Pos = MAP_PIXEL ( 5 , 34 ) ;
+ Size = MAP_PIXEL ( 274 , 112 ) ;
+ TabStop = TRUE ;
+ ClipChildren = TRUE ;
+ Hide = TRUE ;
+ };
+ ListBox LB_DOCS
+ {
+ Border = TRUE ;
+ Pos = MAP_PIXEL ( 5 , 115 ) ;
+ Size = MAP_APPFONT ( 150 , 50 ) ;
+ DropDown = TRUE ;
+ };
+ NumericField NF_PAGE
+ {
+ Border = TRUE ;
+ Pos = MAP_PIXEL ( 50 , 29 ) ;
+ Size = MAP_PIXEL ( 44 , 20 ) ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ First = 1 ;
+ // Outline als Default
+ Maximum = 5 ;
+ Last = 5 ;
+ Value = 5 ;
+ };
+ String ST_OUTLINE_LEVEL
+ {
+ Text = "Gliederungsebenen" ;
+ Text [ English ] = "Outline level" ;
+ Text [ dutch ] = "Overzichtsniveaus" ;
+ Text [ english_us ] = "Outline Level" ;
+ Text [ italian ] = "Livelli di struttura" ;
+ Text [ spanish ] = "Niveles del esquema" ;
+ Text [ french ] = "Niveaux de plan" ;
+ Text [ swedish ] = "Dispositionsnivåer" ;
+ Text [ danish ] = "Dispositionsniveauer" ;
+ Text [ portuguese_brazilian ] = "Gliederungsebenen" ;
+ Text [ portuguese ] = "Níveis de esquema" ;
+ Text[ chinese_simplified ] = "´ó¸Ù¼¶";
+ Text[ russian ] = "Óðîâíè ñòðóêòóðû";
+ Text[ polish ] = "Poziomy konspektu";
+ Text[ japanese ] = "±³Ä×²Ý ÚÍÞÙ";
+ Text[ chinese_traditional ] = "¤jºõ¯Å";
+ Text[ arabic ] = "ãÓÊæíÇÊ ÇáÊÞÓíã";
+ Text[ greek ] = "Åðßðåäá äéÜñèñùóçò";
+ Text[ korean ] = "¿Ü°û¼± ¼öÁØ";
+ Text[ turkish ] = "Anahat düzeyleri";
+ };
+ String ST_DRAGMODE
+ {
+ Text = "Dragmodus" ;
+ Text [ English ] = "Drag mode" ;
+ Text [ dutch ] = "Dragmodus" ;
+ Text [ english_us ] = "Drag Mode" ;
+ Text [ italian ] = "Modo trascina" ;
+ Text [ spanish ] = "Modo Arrastrar" ;
+ Text [ french ] = "Mode Glisser" ;
+ Text [ swedish ] = "Draläge" ;
+ Text [ danish ] = "Trækmodus" ;
+ Text [ portuguese_brazilian ] = "Dragmodus" ;
+ Text [ portuguese ] = "Modo Arrastar" ;
+ Text[ chinese_simplified ] = "Í϶¯Ä£Ê½";
+ Text[ russian ] = "Ðåæèì ïåðåòàñêèâàíèÿ";
+ Text[ polish ] = "Tryb przeci¹gania";
+ Text[ japanese ] = "ÄÞׯ¸Þ Ó°ÄÞ";
+ Text[ chinese_traditional ] = "©ì¦²¼Ò¦¡";
+ Text[ arabic ] = "ØÑíÞÉ ÇáÓÍÈ";
+ Text[ greek ] = "ÊáôÜóôáóç óõñìïý";
+ Text[ korean ] = "µå·¡±× ¸ðµå";
+ Text[ turkish ] = "Sürükleme kipi";
+ };
+ String ST_HYPERLINK
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Als Hyperlink einfügen : Als Hyperlink einf³gen */
+ Text = "Als Hyperlink einfügen" ;
+ Text [ English ] = "Insert as hyperlink" ;
+ Text [ english_us ] = "Insert as Hyperlink" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text [ swedish ] = "Infoga som hyperlänk" ;
+ Text [ danish ] = "Indsæt som hyperlink" ;
+ Text [ italian ] = "Inserisci come hyperlink" ;
+ Text [ spanish ] = "Insertar como hiperenlace" ;
+ Text [ french ] = "Insérer comme hyperlien" ;
+ Text [ dutch ] = "Als Hyperlink invoegen" ;
+ Text [ portuguese ] = "Inserir como hiperligação" ;
+ Text[ chinese_simplified ] = "µ±×÷³¬Á´½Ó²åÈë";
+ Text[ russian ] = "Âñòàâèòü êàê ãèïåðññûëêó";
+ Text[ polish ] = "Wstaw jako hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ‚Æ‚µ‚Ä‘}“ü";
+ Text[ chinese_traditional ] = "·í§@¶W³sµ²´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ ßÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "ÐñïóèÞêç ùò õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©·Î »ðÀÔ";
+ Text[ turkish ] = "Hyperlink olarak ekle";
+ };
+ String ST_LINK_REGION
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Als Verknüpfung einfügen : Als Verkn³pfung einf³gen */
+ Text = "Als Verknüpfung einfügen" ;
+ Text [ English ] = "Insert as link" ;
+ Text [ english_us ] = "Insert as Link" ;
+ Text [ portuguese_brazilian ] = "Verknüpfung" ;
+ Text [ swedish ] = "Infoga som länk" ;
+ Text [ danish ] = "Indsæt som kæde" ;
+ Text [ italian ] = "Inserisci come collegamento" ;
+ Text [ spanish ] = "Insertar como vínculo" ;
+ Text [ french ] = "Insérer comme lien" ;
+ Text [ dutch ] = "Als koppeling invoegen" ;
+ Text [ portuguese ] = "Inserir como ligação" ;
+ Text[ chinese_simplified ] = "µ±×÷Á´½Ó²åÈë";
+ Text[ russian ] = "Âñòàâèòü êàê ññûëêó";
+ Text[ polish ] = "Wstaw jako ³¹cze";
+ Text[ japanese ] = "Øݸ‚Æ‚µ‚Ä‘}“ü";
+ Text[ chinese_traditional ] = "·í§@³sµ²´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ ßÇÑÊÈÇØ";
+ Text[ greek ] = "ÐñïóèÞêç ùò óýíäåóç";
+ Text[ korean ] = "¿¬°á·Î »ðÀÔ";
+ Text[ turkish ] = "Baðlantý olarak ekle";
+ };
+ String ST_COPY_REGION
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Als Kopie einfügen : Als Kopie einf³gen */
+ Text = "Als Kopie einfügen" ;
+ Text [ English ] = "Insert as copy" ;
+ Text [ english_us ] = "Insert as Copy" ;
+ Text [ portuguese_brazilian ] = "Kopie" ;
+ Text [ swedish ] = "Infoga som kopia" ;
+ Text [ danish ] = "Indsæt som kopi" ;
+ Text [ italian ] = "Inserisci come copia" ;
+ Text [ spanish ] = "Insertar como copia" ;
+ Text [ french ] = "Insérer comme copie" ;
+ Text [ dutch ] = "Als kopie invoegen" ;
+ Text [ portuguese ] = "Inserir com cópia" ;
+ Text[ chinese_simplified ] = "µ±×÷¸´¼þ²åÈë";
+ Text[ russian ] = "Âñòàâèòü êàê êîïèþ";
+ Text[ polish ] = "Wstaw jako kopiê";
+ Text[ japanese ] = "ºËß°‚Æ‚µ‚Ä‘}“ü";
+ Text[ chinese_traditional ] = "·í§@´_¥ó´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ ßäÓÎÉ";
+ Text[ greek ] = "ÐñïóèÞêç ùò áíôßãñáöï";
+ Text[ korean ] = "º¹»ç·Î »ðÀÔ";
+ Text[ turkish ] = "Kopya olarak ekle";
+ };
+ String ST_DISPLAY
+ {
+ Text = "Anzeige" ;
+ Text [ English ] = "Display" ;
+ Text [ english_us ] = "Display" ;
+ Text [ italian ] = "Visualizzazione" ;
+ Text [ spanish ] = "Visualización" ;
+ Text [ french ] = "Affichage" ;
+ Text [ dutch ] = "Weergave" ;
+ Text [ swedish ] = "Visa" ;
+ Text [ danish ] = "Visning" ;
+ Text [ portuguese_brazilian ] = "Anzeige" ;
+ Text [ portuguese ] = "Mostrar" ;
+ Text[ chinese_simplified ] = "ÏÔʾ";
+ Text[ russian ] = "Ïîêàçàòü";
+ Text[ polish ] = "Wyœwietlenie";
+ Text[ japanese ] = "•\\Ž¦";
+ Text[ chinese_traditional ] = "Åã¥Ü";
+ Text[ arabic ] = "ÇáÚÑÖ";
+ Text[ greek ] = "ÅìöÜíéóç";
+ Text[ korean ] = "Ç¥½Ã";
+ Text[ turkish ] = "Görüntü";
+ };
+ String ST_ACTIVE_VIEW
+ {
+ Text = "Aktives Fenster" ;
+ Text [ English ] = "Active Window" ;
+ Text [ dutch ] = "Actief venster" ;
+ Text [ english_us ] = "Active Window" ;
+ Text [ italian ] = "Finestra attiva" ;
+ Text [ spanish ] = "Ventana activa" ;
+ Text [ french ] = "Fenêtre active" ;
+ Text [ swedish ] = "Aktivt fönster" ;
+ Text [ danish ] = "Aktivt vindue" ;
+ Text [ portuguese_brazilian ] = "Aktives Fenster" ;
+ Text [ portuguese ] = "Janela activa" ;
+ Text[ chinese_simplified ] = "µ±Ç°µÄÊÓ´°";
+ Text[ russian ] = "Àêòèâíîå îêíî";
+ Text[ polish ] = "Aktywne okno";
+ Text[ japanese ] = "±¸Ã¨Ìނȳ¨ÝÄÞ³";
+ Text[ language_user1 ] = "èë? Îòêðûòîå - - - èëè: Îòêðûòîå - èëè: Îòêðûòîå";
+ Text[ chinese_traditional ] = "·í«eªºµøµ¡";
+ Text[ arabic ] = "ÇáäÇÝÐÉ ÇáäÔØÉ";
+ Text[ greek ] = "Åíåñãü ðáñÜèõñï";
+ Text[ korean ] = "È°¼º â";
+ Text[ turkish ] = "Etkin pencere";
+ };
+ String ST_HIDDEN
+ {
+ Text = "versteckt" ;
+ Text [ English ] = "hidden" ;
+ Text [ english_us ] = "hidden" ;
+ Text [ italian ] = "nascosto" ;
+ Text [ spanish ] = "oculto" ;
+ Text [ french ] = "caché" ;
+ Text [ dutch ] = "verborgen" ;
+ Text [ swedish ] = "gömd" ;
+ Text [ danish ] = "skjult" ;
+ Text [ portuguese_brazilian ] = "versteckt" ;
+ Text [ portuguese ] = "oculto" ;
+ Text[ chinese_simplified ] = "ÒþÈë";
+ Text[ russian ] = "ñêðûòûé";
+ Text[ polish ] = "ukryty";
+ Text[ japanese ] = "‰B‚µ";
+ Text[ chinese_traditional ] = "Áô¤J";
+ Text[ arabic ] = "ãÎÝí";
+ Text[ greek ] = "êñõöü";
+ Text[ korean ] = "¼û±â±â";
+ Text[ turkish ] = "gizli";
+ };
+ String ST_ACTIVE
+ {
+ Text = "aktiv" ;
+ Text [ English ] = "active" ;
+ Text [ dutch ] = "actief" ;
+ Text [ english_us ] = "active" ;
+ Text [ italian ] = "attivo" ;
+ Text [ spanish ] = "activo" ;
+ Text [ french ] = "actif" ;
+ Text [ swedish ] = "aktiv" ;
+ Text [ danish ] = "aktiv" ;
+ Text [ portuguese_brazilian ] = "aktiv" ;
+ Text [ portuguese ] = "activo" ;
+ Text[ chinese_simplified ] = "¼¤»îµÄ";
+ Text[ russian ] = "àêòèâíûé";
+ Text[ polish ] = "aktywny";
+ Text[ japanese ] = "±¸Ã¨ÌÞ";
+ Text[ chinese_traditional ] = "¿E¬¡ªº";
+ Text[ arabic ] = "äÔØ";
+ Text[ greek ] = "åíåñãü";
+ Text[ korean ] = "È°¼º";
+ Text[ turkish ] = "etkin";
+ };
+ String ST_INACTIVE
+ {
+ Text = "inaktiv" ;
+ Text [ English ] = "inactive" ;
+ Text [ english_us ] = "inactive" ;
+ Text [ italian ] = "inattivo" ;
+ Text [ spanish ] = "inactivo" ;
+ Text [ french ] = "inactif" ;
+ Text [ dutch ] = "inactief" ;
+ Text [ swedish ] = "inaktiv" ;
+ Text [ danish ] = "inaktiv" ;
+ Text [ portuguese_brazilian ] = "inaktiv" ;
+ Text [ portuguese ] = "inactivo" ;
+ Text[ chinese_simplified ] = "ʧ»îµÄ";
+ Text[ russian ] = "íåàêòèâíûé";
+ Text[ polish ] = "nieaktywny";
+ Text[ japanese ] = "±¸Ã¨ÌÞ‚Å‚È‚¢";
+ Text[ chinese_traditional ] = "¥¢¬¡ªº";
+ Text[ arabic ] = "ÛíÑ äÔØ";
+ Text[ greek ] = "ìç åíåñãü";
+ Text[ korean ] = "ºñ È°¼º";
+ Text[ turkish ] = "etkin deðil";
+ };
+ String ST_EDIT_ENTRY
+ {
+ Text = "~Bearbeiten..." ;
+ Text [ English ] = "~Edit..." ;
+ Text [ english_us ] = "Edit..." ;
+ Text [ swedish ] = "Redigera..." ;
+ Text [ danish ] = "Rediger..." ;
+ Text [ italian ] = "~Modifica..." ;
+ Text [ spanish ] = "Edi~tar..." ;
+ Text [ french ] = "~Modifier..." ;
+ Text [ dutch ] = "~Bewerken..." ;
+ Text [ portuguese_brazilian ] = "Bearbeiten..." ;
+ Text [ portuguese ] = "~Editar..." ;
+ Text[ chinese_simplified ] = "±à¼­...";
+ Text[ russian ] = "Ïðàâêà...";
+ Text[ polish ] = "Edytuj...";
+ Text[ japanese ] = "•ÒW...";
+ Text[ chinese_traditional ] = "½s¿è...";
+ Text[ arabic ] = "ÊÍÑíÑ...";
+ Text[ greek ] = "Åðåîåñãáóßá...";
+ Text[ korean ] = "ÆíÁý...";
+ Text[ turkish ] = "~Düzenle...";
+ };
+ String ST_UPDATE
+ {
+ Text = "~Aktualisieren" ;
+ Text [ English ] = "Update" ;
+ Text [ dutch ] = "~Actualiseren" ;
+ Text [ english_us ] = "~Update" ;
+ Text [ italian ] = "~Aggiorna" ;
+ Text [ spanish ] = "Actuali~zar" ;
+ Text [ french ] = "~Actualiser" ;
+ Text [ swedish ] = "Uppd~atera" ;
+ Text [ danish ] = "Opdater" ;
+ Text [ portuguese ] = "~Actualizar" ;
+ Text [ portuguese_brazilian ] = "Aktualisieren" ;
+ Text[ chinese_simplified ] = "¸üÐÂ(~U)";
+ Text[ russian ] = "Îáíîâèòü";
+ Text[ polish ] = "Aktualizuj";
+ Text[ japanese ] = "XV(~U)";
+ Text[ chinese_traditional ] = "§ó·s(~U)";
+ Text[ arabic ] = "ÊÍÏíË";
+ Text[ greek ] = "~ÅíçìÝñùóç";
+ Text[ korean ] = "¾÷ µ¥ÀÌÆ®(~U)";
+ Text[ turkish ] = "~Güncelle";
+ };
+ String ST_EDIT_CONTENT
+ {
+ Text = "Bearbeiten" ;
+ Text [ English ] = "Edit" ;
+ Text [ english_us ] = "Edit" ;
+ Text [ swedish ] = "Redigera" ;
+ Text [ danish ] = "Rediger" ;
+ Text [ italian ] = "Modifica" ;
+ Text [ spanish ] = "Editar" ;
+ Text [ french ] = "Edition" ;
+ Text [ dutch ] = "Bewerken" ;
+ Text [ portuguese_brazilian ] = "Bearbeiten" ;
+ Text [ portuguese ] = "Editar" ;
+ Text[ chinese_simplified ] = "±à¼­";
+ Text[ russian ] = "Ïðàâêà";
+ Text[ polish ] = "Edytuj";
+ Text[ japanese ] = "•ÒW";
+ Text[ chinese_traditional ] = "½s¿è";
+ Text[ arabic ] = "ÊÍÑíÑ";
+ Text[ greek ] = "Åðåîåñãáóßá";
+ Text[ korean ] = "ÆíÁý";
+ Text[ turkish ] = "Düzenle";
+ };
+ String ST_INSERT
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Einfügen : Einf³gen */
+ Text = "Einfügen" ;
+ Text [ English ] = "Insert" ;
+ Text [ norwegian ] = "Sette inn" ;
+ Text [ italian ] = "Inserisci" ;
+ Text [ portuguese_brazilian ] = "Inserir" ;
+ Text [ portuguese ] = "Inserir" ;
+ Text [ finnish ] = "Lisää" ;
+ Text [ danish ] = "Indsæt" ;
+ Text [ french ] = "Insérer" ;
+ Text [ swedish ] = "Infoga" ;
+ Text [ dutch ] = "Invoegen" ;
+ Text [ spanish ] = "Insertar" ;
+ Text [ english_us ] = "Insert" ;
+ Text[ chinese_simplified ] = "²åÈë";
+ Text[ russian ] = "Âñòàâêà";
+ Text[ polish ] = "Wstaw";
+ Text[ japanese ] = "‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J";
+ Text[ arabic ] = "ÅÏÑÇÌ";
+ Text[ greek ] = "ÅéóáãùãÞ";
+ Text[ korean ] = "»ðÀÔ";
+ Text[ turkish ] = "Ekle";
+ };
+ String ST_INDEX
+ {
+ Text = "~Verzeichnis" ;
+ Text [ English ] = "Inde~x" ;
+ Text[ english_us ] = "~Index";
+ Text[ portuguese ] = "~Índice";
+ Text[ russian ] = "Óêàçàòåëü";
+ Text[ greek ] = "Å~õñåôÞñéï";
+ Text[ dutch ] = "~Index";
+ Text[ french ] = "~Index";
+ Text[ spanish ] = "Í~ndice";
+ Text[ italian ] = "Indice";
+ Text[ danish ] = "Indeks";
+ Text[ swedish ] = "~Förteckning";
+ Text[ polish ] = "Indeks";
+ Text[ portuguese_brazilian ] = "Ín~ice";
+ Text[ japanese ] = "õˆø(~I)";
+ Text[ korean ] = "»öÀÎ(~I)";
+ Text[ chinese_simplified ] = "Ŀ¼(~I)";
+ Text[ chinese_traditional ] = "¯Á¤Þ(~I)";
+ Text[ arabic ] = "ÝåÑÓ";
+ Text[ turkish ] = "~Dizin";
+ };
+ String ST_FILE
+ {
+ Text = "Datei" ;
+ Text [ English ] = "File" ;
+ Text [ english_us ] = "File" ;
+ Text [ portuguese_brazilian ] = "Datei" ;
+ Text [ swedish ] = "Fil" ;
+ Text [ danish ] = "Fil" ;
+ Text [ italian ] = "File" ;
+ Text [ spanish ] = "Archivo" ;
+ Text [ french ] = "Fichier" ;
+ Text [ dutch ] = "Bestand" ;
+ Text [ portuguese ] = "Ficheiro" ;
+ Text[ chinese_simplified ] = "Îļþ";
+ Text[ russian ] = "Ôàéë";
+ Text[ polish ] = "Plik";
+ Text[ japanese ] = "̧²Ù";
+ Text[ chinese_traditional ] = "ÀÉ®×";
+ Text[ arabic ] = "ÇáãáÝ";
+ Text[ greek ] = "Áñ÷åßï";
+ Text[ korean ] = "ÆÄÀÏ";
+ Text[ turkish ] = "Dosya";
+ };
+ String ST_NEW_FILE
+ {
+ Text = "Neues Dokument" ;
+ Text [ English ] = "New document" ;
+ Text [ english_us ] = "New Document" ;
+ Text [ portuguese_brazilian ] = "Neues Dokument" ;
+ Text [ swedish ] = "Nytt dokument" ;
+ Text [ danish ] = "Nyt dokument" ;
+ Text [ italian ] = "Nuovo documento" ;
+ Text [ spanish ] = "Nuevo documento" ;
+ Text [ french ] = "Nouveau document" ;
+ Text [ dutch ] = "Nieuw document" ;
+ Text [ portuguese ] = "Novo documento" ;
+ Text[ chinese_simplified ] = "н¨Îĵµ";
+ Text[ russian ] = "Íîâûé äîêóìåíò";
+ Text[ polish ] = "Nowy dokument";
+ Text[ japanese ] = "V‚µ‚¢ÄÞ·­ÒÝÄ";
+ Text[ chinese_traditional ] = "¶}±Ò·sÀÉ";
+ Text[ arabic ] = "ãÓÊäÏ ÌÏíÏ";
+ Text[ greek ] = "Äçìéïõñãßá åããñÜöïõ";
+ Text[ korean ] = "»õ ¹®¼­";
+ Text[ turkish ] = "Yeni belge";
+ };
+ String ST_TEXT
+ {
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ english_us ] = "Text" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text[ chinese_simplified ] = "Îı¾";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤å¦r";
+ Text[ arabic ] = "ÇáäÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ };
+ String ST_DELETE
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Löschen : L÷schen */
+ Text = "Löschen" ;
+ Text [ English ] = "Delete" ;
+ Text [ norwegian ] = "Slett" ;
+ Text [ italian ] = "Elimina" ;
+ Text [ portuguese_brazilian ] = "Apagar" ;
+ Text [ portuguese ] = "Eliminar" ;
+ Text [ finnish ] = "Poista" ;
+ Text [ danish ] = "Slet" ;
+ Text [ french ] = "Supprimer" ;
+ Text [ swedish ] = "Radera" ;
+ Text [ dutch ] = "Wissen" ;
+ Text [ spanish ] = "Eliminar" ;
+ Text [ english_us ] = "Delete" ;
+ Text[ chinese_simplified ] = "ɾ³ý";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ";
+ Text[ chinese_traditional ] = "§R°£";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦";
+ Text[ turkish ] = "Sil";
+ };
+ String ST_DELETE_ENTRY
+ {
+ Text = "~Löschen" ;
+ Text [ English ] = "~Delete" ;
+ Text [ norwegian ] = "Slett" ;
+ Text [ italian ] = "Elimina" ;
+ Text [ portuguese_brazilian ] = "Apagar" ;
+ Text [ portuguese ] = "E~liminar" ;
+ Text [ finnish ] = "Poista" ;
+ Text [ danish ] = "Slet" ;
+ Text [ french ] = "~Supprimer" ;
+ Text [ swedish ] = "~Radera" ;
+ Text [ dutch ] = "Wis~sen" ;
+ Text [ spanish ] = "~Eliminar" ;
+ Text [ english_us ] = "~Delete" ;
+ Text[ chinese_simplified ] = "ɾ³ý(~D)";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ";
+ Text[ japanese ] = "íœ(~D)";
+ Text[ chinese_traditional ] = "§R°£(~D)";
+ Text[ arabic ] = "ÍÐÝ";
+ Text[ greek ] = "ÄéáãñáöÞ";
+ Text[ korean ] = "»èÁ¦(~D)";
+ Text[ turkish ] = "~Sil";
+ };
+ String ST_UPDATE_SEL
+ {
+ Text = "Selektion" ;
+ Text [ English ] = "Selection" ;
+ Text [ english_us ] = "Selection" ;
+ Text [ portuguese_brazilian ] = "Selektion" ;
+ Text [ swedish ] = "Markering" ;
+ Text [ danish ] = "Udvalg" ;
+ Text [ italian ] = "Selezione" ;
+ Text [ spanish ] = "Selección" ;
+ Text [ french ] = "Sélection" ;
+ Text [ dutch ] = "Selectie" ;
+ Text [ portuguese ] = "Selecção" ;
+ Text[ chinese_simplified ] = "Ñ¡ÖÐ";
+ Text[ russian ] = "Âûäåëåíèå";
+ Text[ polish ] = "Selekcja";
+ Text[ japanese ] = "‘I‘ð”͈Í";
+ Text[ chinese_traditional ] = "¿ï¤¤";
+ Text[ arabic ] = "ÇáÊÍÏíÏ";
+ Text[ greek ] = "ÅðéëïãÞ";
+ Text[ korean ] = "¼±ÅÃ";
+ Text[ turkish ] = "Seçim";
+ };
+ String ST_UPDATE_INDEX
+ {
+ Text = "Verzeichnisse" ;
+ Text [ English ] = "Indexes" ;
+ Text [ english_us ] = "Indexes" ;
+ Text [ portuguese_brazilian ] = "Verzeichnisse" ;
+ Text [ swedish ] = "Förteckningar" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ italian ] = "Indici" ;
+ Text [ spanish ] = "Índices" ;
+ Text [ french ] = "Index" ;
+ Text [ dutch ] = "Indices" ;
+ Text [ portuguese ] = "Índices" ;
+ Text[ chinese_simplified ] = "Ë÷Òý";
+ Text[ russian ] = "Óêàçàòåëè";
+ Text[ polish ] = "Indeksy";
+ Text[ japanese ] = "–ÚŽŸ‚Æõˆø";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÝåÇÑÓ";
+ Text[ greek ] = "ÅõñåôÞñéá";
+ Text[ korean ] = "»öÀÎ";
+ Text[ turkish ] = "Dizin";
+ };
+ String ST_UPDATE_LINK
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Verknüpfungen : Verkn³pfungen */
+ Text = "Verknüpfungen" ;
+ Text [ English ] = "Links" ;
+ Text [ english_us ] = "Links" ;
+ Text [ portuguese_brazilian ] = "Verknüpfungen" ;
+ Text [ swedish ] = "Länkar" ;
+ Text [ danish ] = "Kæder" ;
+ Text [ italian ] = "Collegamenti" ;
+ Text [ spanish ] = "Vínculos" ;
+ Text [ french ] = "Liens" ;
+ Text [ dutch ] = "Koppelingen" ;
+ Text [ portuguese ] = "Ligações" ;
+ Text[ chinese_simplified ] = "Á´½Ó";
+ Text[ russian ] = "Ññûëêè";
+ Text[ polish ] = "£¹cza";
+ Text[ japanese ] = "Øݸ";
+ Text[ chinese_traditional ] = "±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØÇÊ";
+ Text[ greek ] = "ÓõíäÝóåéò";
+ Text[ korean ] = "¿¬°á";
+ Text[ turkish ] = "Baðlantý";
+ };
+ String ST_UPDATE_ALL
+ {
+ Text = "Alles" ;
+ Text [ English ] = "All" ;
+ Text [ english_us ] = "All" ;
+ Text [ portuguese_brazilian ] = "Alles" ;
+ Text [ swedish ] = "Allt" ;
+ Text [ danish ] = "Alt" ;
+ Text [ italian ] = "Tutto" ;
+ Text [ spanish ] = "Todo" ;
+ Text [ french ] = "Tout" ;
+ Text [ dutch ] = "Alles" ;
+ Text [ portuguese ] = "Tudo" ;
+ Text[ chinese_simplified ] = "È«²¿";
+ Text[ russian ] = "Âñå";
+ Text[ polish ] = "Wszystko";
+ Text[ japanese ] = "‚·‚ׂÄ";
+ Text[ chinese_traditional ] = "¥þ³¡";
+ Text[ arabic ] = "Çáßá";
+ Text[ greek ] = "¼ëá";
+ Text[ korean ] = "Àüü";
+ Text[ turkish ] = "Tümü";
+ };
+ String ST_REMOVE_INDEX
+ {
+ Text = "~Verzeichnis aufheben" ;
+ Text [ English ] = "Dismiss index" ;
+ Text [ english_us ] = "~Remove Index" ;
+ Text [ portuguese_brazilian ] = "Verzeichnis aufheben" ;
+ Text [ swedish ] = "Upphä~v förteckning" ;
+ Text [ danish ] = "Ophæv indeks" ;
+ Text [ italian ] = "Rimuovi indice" ;
+ Text [ spanish ] = "Eliminar dire~ctorio" ;
+ Text [ french ] = "~Supprimer l'index" ;
+ Text [ dutch ] = "~Index opheffen" ;
+ Text [ portuguese ] = "~Remover índice" ;
+ Text[ chinese_simplified ] = "ɾ³ýĿ¼(~R)";
+ Text[ russian ] = "Óáðàòü óêàçàòåëü";
+ Text[ polish ] = "Usuñ indeks";
+ Text[ japanese ] = "õˆø‚̉ðœ(~R)";
+ Text[ chinese_traditional ] = "¨ú®ø¥Ø¿ý(~R)";
+ Text[ arabic ] = "ÅÒÇáÉ ÇáÝåÑÓ";
+ Text[ greek ] = "ÊáôÜñãçóç åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ »èÁ¦(~R)";
+ Text[ turkish ] = "D~izini kaldýr";
+ };
+ String ST_REMOVE_TBL_PROTECTION
+ {
+ Text = "Schutz ~aufheben" ;
+ Text [ English ] = "~Unprotect" ;
+ Text [ norwegian ] = "~Ubeskytte" ;
+ Text [ italian ] = "Disattiva~ protezione" ;
+ Text [ portuguese_brazilian ] = "~Desproteger" ;
+ Text [ portuguese ] = "D~esproteger" ;
+ Text [ finnish ] = "~Unprotect" ;
+ Text [ danish ] = "Ophæv beskyttelse" ;
+ Text [ french ] = "Enlever la protection" ;
+ Text [ swedish ] = "~Upphäv skydd" ;
+ Text [ dutch ] = "Beveiliging ~opheffen" ;
+ Text [ spanish ] = "~Desproteger" ;
+ Text [ english_us ] = "~Unprotect" ;
+ Text[ chinese_simplified ] = "È¡Ïû±£»¤(~U)";
+ Text[ russian ] = "Ñíÿòü çàùèòó";
+ Text[ polish ] = "Usuñ ochronê";
+ Text[ japanese ] = "•ÛŒì‚̉ðœ(~U)";
+ Text[ chinese_traditional ] = "¨ú®ø«OÅ@(~U)";
+ Text[ arabic ] = "ÅáÛÇÁ ÇáÍãÇíÉ";
+ Text[ greek ] = "¢ñóç ðñïóôáóßáò";
+ Text[ korean ] = "º¸È£ ÇØÁ¦(~U)";
+ Text[ turkish ] = "Korumayý ~kaldýr";
+ };
+ String ST_INVISIBLE
+ {
+ Text = "versteckt";
+ Text[English] = "hidden";
+ Text[ english_us ] = "hidden";
+ Text[ portuguese ] = "oculto";
+ Text[ russian ] = "ñïðÿòàí";
+ Text[ greek ] = "êñõöÜ";
+ Text[ dutch ] = "verborgen";
+ Text[ french ] = "caché";
+ Text[ spanish ] = "oculto";
+ Text[ italian ] = "Nascosto";
+ Text[ danish ] = "skjult";
+ Text[ swedish ] = "gömd";
+ Text[ polish ] = "schowany";
+ Text[ portuguese_brazilian ] = "hidden";
+ Text[ japanese ] = "‰B‚µ";
+ Text[ korean ] = "¼û±â±â";
+ Text[ chinese_simplified ] = "ÒþÈëµÄ";
+ Text[ chinese_traditional ] = "Áô¤J";
+ Text[ arabic ] = "ãÎÝí";
+ Text[ turkish ] = "gizli";
+ };
+ String ST_BROKEN_LINK
+ {
+ Text = "Datei nicht gefunden: ";
+ Text[English] = "File not found: ";
+ Text[ italian ] = "File non trovato: ";
+ Text[ portuguese_brazilian ] = "File not found: ";
+ Text[ portuguese ] = "Ficheiro não encontrado: ";
+ Text[ danish ] = "Fil blev ikke fundet: ";
+ Text[ french ] = "Fichier introuvable : ";
+ Text[ swedish ] = "Filen har ej hittats: ";
+ Text[ dutch ] = "Bestand niet gevonden: ";
+ Text[ spanish ] = "Archivo no encontrado: ";
+ Text[ english_us ] = "File not found: ";
+ Text[ chinese_simplified ] = "ûÓÐÕÒµ½Îļþ£º ";
+ Text[ russian ] = "Ôàéë íå íàéäåí: ";
+ Text[ polish ] = "Pliku nie znaleziono: ";
+ Text[ japanese ] = "̧²Ù‚ªŒ©‚‚©‚è‚Ü‚¹‚ñ: ";
+ Text[ chinese_traditional ] = "¨S¦³§ä¨ìÀɮסG ";
+ Text[ arabic ] = "ÊÚÐÑ ÇáÚËæÑ Úáì ÇáãáÝ: ";
+ Text[ greek ] = "Äåí âñÝèçêå ôï áñ÷åßï: ";
+ Text[ korean ] = "ÆÄÀÏÀÌ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù: ";
+ Text[ turkish ] = "Dosya bulunamadý: ";
+ };
+ String ST_RENAME
+ {
+ Text = "~Umbenennen";
+ Text[English] = "Rename";
+ Text[ english_us ] = "~Rename";
+ Text[ portuguese ] = "~Mudar nome";
+ Text[ russian ] = "Ïåðåèìåíîâàòü";
+ Text[ greek ] = "Ìåôïíïìáóßá";
+ Text[ dutch ] = "~Naam wijzigen";
+ Text[ french ] = "~Renommer";
+ Text[ spanish ] = "Ca~mbiar nombre";
+ Text[ italian ] = "Rinomina";
+ Text[ danish ] = "Omdøb";
+ Text[ swedish ] = "~Byt namn";
+ Text[ polish ] = "Zmieñ nazwê";
+ Text[ portuguese_brazilian ] = "Rename";
+ Text[ japanese ] = "–¼‘O‚Ì•ÏX(~R)";
+ Text[ korean ] = "À̸§ ¹Ù²Ù±â(~R)";
+ Text[ chinese_simplified ] = "ÖØÃüÃû(~R)";
+ Text[ chinese_traditional ] = "­«·s©R¦W(~R)";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÓãíÉ";
+ Text[ turkish ] = "~Yeniden adlandýr";
+ };
+ String ST_READONLY_IDX
+ {
+ Text = "~Schreibgeschützt";
+ Text[English] = "Readonly";
+ Text[ english_us ] = "Read ~only";
+ Text[ portuguese ] = "Só ~leitura";
+ Text[ russian ] = "Òîëüêî äëÿ ÷òåíèÿ";
+ Text[ greek ] = "Müíï ãéá áíÜãíùóç";
+ Text[ dutch ] = "~Schrijfbeveiligd";
+ Text[ french ] = "en ~lecture seule";
+ Text[ spanish ] = "Solo le~ctura";
+ Text[ italian ] = "A sola lettura";
+ Text[ danish ] = "Skrivebeskyttet";
+ Text[ swedish ] = "~Skrivskyddad";
+ Text[ polish ] = "Tylko do odczytu";
+ Text[ portuguese_brazilian ] = "Readonly";
+ Text[ japanese ] = "“Ç‚ÝŽæ‚èê—p(~O)";
+ Text[ korean ] = "ÀбâÀü¿ë(~O)";
+ Text[ chinese_simplified ] = "·À¸²Ð´(~O)";
+ Text[ chinese_traditional ] = "¨¾Âмg(~O)";
+ Text[ arabic ] = "ááÞÑÇÁÉ ÝÞØ";
+ Text[ turkish ] = "Sa~lt okunur";
+ };
+ Text[ chinese_simplified ] = "ÖúÊÖ";
+ Text[ russian ] = "Íàâèãàòîð";
+ Text[ polish ] = "Nawigator";
+ Text[ japanese ] = "ÅËÞ¹Þ°À";
+ Text[ chinese_traditional ] = "§U¤â";
+ Text[ arabic ] = "ÇáäÇÝíÌíÊæÑ";
+ Text[ greek ] = "Navigator";
+ Text[ korean ] = "³×ºñ°ÔÀÌÅÍ";
+ Text[ turkish ] = "Navigatör";
+};
+ImageList IMG_NAVI_ENTRYBMP
+{
+ ImageBitmap = Bitmap { File = "nccntnt.bmp" ; };
+ MaskColor = IMAGE_STDBTN_COLOR ;
+ IdList =
+ {
+ 20000 ;
+ 20001 ;
+ 20002 ;
+ 20003 ;
+ 20004 ;
+ 20005 ;
+ 20006 ;
+ 20007 ;
+ 20008 ;
+ 20009 ;
+ 20010 ;
+ 20102 ;
+ };
+ IdCount = { 12 ; };
+};
+
diff --git a/sw/source/ui/utlui/numfmtlb.cxx b/sw/source/ui/utlui/numfmtlb.cxx
new file mode 100644
index 000000000000..1184dd2410fd
--- /dev/null
+++ b/sw/source/ui/utlui/numfmtlb.cxx
@@ -0,0 +1,688 @@
+/*************************************************************************
+ *
+ * $RCSfile: numfmtlb.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _LANG_HXX //autogen
+#include <tools/lang.hxx>
+#endif
+#ifndef _ZFORMAT_HXX //autogen
+#define _ZFORLIST_DECLARE_TABLE
+#include <svtools/zformat.hxx>
+#endif
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SVX_NUMINF_HXX //autogen
+#define ITEMID_NUMBERINFO SID_ATTR_NUMBERFORMAT_INFO
+#include <svx/numinf.hxx>
+#endif
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef _SVX_LANGITEM_HXX //autogen
+#include <svx/langitem.hxx>
+#endif
+#ifndef _SVX_NUMFMT_HXX //autogen
+#include <svx/numfmt.hxx>
+#endif
+#ifndef _SV_SYSTEM_HXX //autogen
+#include <vcl/system.hxx>
+#endif
+
+#include "tblnumfm.hxx"
+#include "docsh.hxx"
+#include "swtypes.hxx"
+#include "swmodule.hxx"
+#include "view.hxx"
+#include "wrtsh.hxx"
+
+#include "utlui.hrc"
+#include "numfmtlb.hxx"
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+// STATIC DATA -----------------------------------------------------------
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ nFormatType: Formate dieses Typs anzeigen
+ nDefFmt: Dieses Format selektieren und ggf vorher
+ einfuegen
+ --------------------------------------------------------------------*/
+
+NumFormatListBox::NumFormatListBox( Window* pWin, const ResId& rResId,
+ short nFormatType, ULONG nDefFmt,
+ BOOL bUsrFmts ) :
+ ListBox ( pWin, rResId ),
+ nCurrFormatType (-1),
+ nStdEntry (0),
+ bOneArea (FALSE),
+ nDefFormat (nDefFmt),
+ pVw (0),
+ pOwnFormatter (0)
+{
+ Init(nFormatType, bUsrFmts);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+NumFormatListBox::NumFormatListBox( Window* pWin, SwView* pView,
+ const ResId& rResId, short nFormatType,
+ ULONG nDefFmt, BOOL bUsrFmts ) :
+ ListBox ( pWin, rResId ),
+ nCurrFormatType (-1),
+ nStdEntry (0),
+ bOneArea (FALSE),
+ nDefFormat (nDefFmt),
+ pVw (pView),
+ pOwnFormatter (0)
+{
+ Init(nFormatType, bUsrFmts);
+}
+
+/* -----------------15.06.98 11:29-------------------
+ *
+ * --------------------------------------------------*/
+
+void NumFormatListBox::Init(short nFormatType, BOOL bUsrFmts)
+{
+ SwView *pView = GetView();
+
+ if (pView)
+ {
+ SwWrtShell &rSh = pView->GetWrtShell();
+ SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_LANGUAGE, RES_CHRATR_LANGUAGE);
+ rSh.GetAttr(aSet);
+ eCurLanguage = ((const SvxLanguageItem&)aSet.Get( RES_CHRATR_LANGUAGE ) ).GetLanguage();
+ }
+ else
+ eCurLanguage = Application::GetAppInternational().GetLanguage();
+
+ if (bUsrFmts == FALSE)
+ pOwnFormatter = new SvNumberFormatter(eCurLanguage);
+
+ SetFormatType(nFormatType);
+ SetDefFormat(nDefFormat);
+
+ SetSelectHdl(LINK(this, NumFormatListBox, SelectHdl));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+NumFormatListBox::~NumFormatListBox()
+{
+ if (pOwnFormatter)
+ delete pOwnFormatter;
+}
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwView* NumFormatListBox::GetView()
+{
+ if( pVw )
+ return pVw;
+ return ::GetActiveView();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void NumFormatListBox::SetFormatType(const short nFormatType)
+{
+ if (nCurrFormatType == -1 ||
+ (nCurrFormatType & nFormatType) == 0) // Es gibt Mischformate, wie z.B. DateTime
+ {
+ SvNumberFormatter* pFormatter;
+
+ if( pOwnFormatter )
+ pFormatter = pOwnFormatter;
+ else
+ {
+ SwView *pView = GetView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ pFormatter = rSh.GetNumberFormatter();
+ }
+
+ Clear(); // Alle Eintraege in der Listbox entfernen
+
+ NfIndexTableOffset eOffsetStart = NF_NUMBER_START;
+ NfIndexTableOffset eOffsetEnd = NF_NUMBER_START;
+
+ switch( nFormatType )
+ {
+ case NUMBERFORMAT_NUMBER:
+ eOffsetStart=NF_NUMBER_START;
+ eOffsetEnd=NF_NUMBER_END;
+ break;
+
+ case NUMBERFORMAT_PERCENT:
+ eOffsetStart=NF_PERCENT_START;
+ eOffsetEnd=NF_PERCENT_END;
+ break;
+
+ case NUMBERFORMAT_CURRENCY:
+ eOffsetStart=NF_CURRENCY_START;
+ eOffsetEnd=NF_CURRENCY_END;
+ break;
+
+ case NUMBERFORMAT_DATETIME:
+ eOffsetStart=NF_DATE_START;
+ eOffsetEnd=NF_TIME_END;
+ break;
+
+ case NUMBERFORMAT_DATE:
+ eOffsetStart=NF_DATE_START;
+ eOffsetEnd=NF_DATE_END;
+ break;
+
+ case NUMBERFORMAT_TIME:
+ eOffsetStart=NF_TIME_START;
+ eOffsetEnd=NF_TIME_END;
+ break;
+
+ case NUMBERFORMAT_SCIENTIFIC:
+ eOffsetStart=NF_SCIENTIFIC_START;
+ eOffsetEnd=NF_SCIENTIFIC_END;
+ break;
+
+ case NUMBERFORMAT_FRACTION:
+ eOffsetStart=NF_FRACTION_START;
+ eOffsetEnd=NF_FRACTION_END;
+ break;
+
+ case NUMBERFORMAT_LOGICAL:
+ eOffsetStart=NF_BOOLEAN;
+ eOffsetEnd=NF_BOOLEAN;
+ break;
+
+ case NUMBERFORMAT_TEXT:
+ eOffsetStart=NF_TEXT;
+ eOffsetEnd=NF_TEXT;
+ break;
+
+ case NUMBERFORMAT_ALL:
+ eOffsetStart=NF_NUMERIC_START;
+ eOffsetEnd = NfIndexTableOffset( NF_INDEX_TABLE_ENTRIES - 1 );
+ break;
+
+ default:
+ DBG_ERROR("what a format?");
+ break;
+ }
+
+ const SvNumberformat* pFmt;
+ USHORT nPos, i = 0;
+ ULONG nFormat;
+ Color* pCol;
+ double fVal = GetDefValue( pFormatter, nFormatType );
+ String sValue;
+
+ ULONG nSysNumFmt = pFormatter->GetFormatIndex(
+ NF_NUMBER_SYSTEM, eCurLanguage );
+ ULONG nSysShortDateFmt = pFormatter->GetFormatIndex(
+ NF_DATE_SYSTEM_SHORT, eCurLanguage );
+ ULONG nSysLongDateFmt = pFormatter->GetFormatIndex(
+ NF_DATE_SYSTEM_LONG, eCurLanguage );
+
+ for( long nIndex = eOffsetStart; nIndex <= eOffsetEnd; ++nIndex )
+ {
+ nFormat = pFormatter->GetFormatIndex(
+ (NfIndexTableOffset)nIndex, eCurLanguage );
+ pFmt = pFormatter->GetEntry( nFormat );
+
+ if( nFormat == pFormatter->GetFormatIndex( NF_NUMBER_STANDARD,
+ eCurLanguage )
+ || ((SvNumberformat*)pFmt)->GetOutputString( fVal, sValue, &pCol )
+ || nFormatType == NUMBERFORMAT_UNDEFINED )
+ sValue = pFmt->GetFormatstring();
+ else if( nFormatType == NUMBERFORMAT_TEXT )
+ {
+ String sTxt(C2S("\"ABC\""));
+ pFormatter->GetOutputString( sTxt, nFormat, sValue, &pCol);
+ }
+
+ if (nFormat != nSysNumFmt &&
+ nFormat != nSysShortDateFmt &&
+ nFormat != nSysLongDateFmt)
+ {
+ nPos = InsertEntry( sValue );
+ SetEntryData( nPos, (void*)nFormat );
+
+ if( nFormat == pFormatter->GetStandardFormat(
+ nFormatType, eCurLanguage ) )
+ nStdEntry = i;
+ ++i;
+ }
+ }
+
+ if (!pOwnFormatter)
+ {
+ nPos = InsertEntry(SW_RESSTR( STR_DEFINE_NUMBERFORMAT ));
+ SetEntryData( nPos, NULL );
+ }
+
+ SelectEntryPos( nStdEntry );
+
+ nCurrFormatType = nFormatType;
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void NumFormatListBox::SetDefFormat(const ULONG nDefFmt)
+{
+ if (nDefFmt == ULONG_MAX)
+ {
+ nDefFormat = nDefFmt;
+ return;
+ }
+
+ if (!nDefFmt)
+ SelectEntryPos(nStdEntry);
+ else
+ {
+ SvNumberFormatter* pFormatter;
+
+ if (pOwnFormatter)
+ pFormatter = pOwnFormatter;
+ else
+ {
+ SwView *pView = GetView();
+ SwWrtShell &rSh = pView->GetWrtShell();
+ pFormatter = rSh.GetNumberFormatter();
+ }
+
+ short nType = pFormatter->GetType(nDefFmt);
+
+ SetFormatType(nType);
+
+ ULONG nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefFmt, eCurLanguage);
+
+ for (USHORT i = 0; i < GetEntryCount(); i++)
+ {
+ if (nFormat == (ULONG)GetEntryData(i))
+ {
+ SelectEntryPos(i);
+ nStdEntry = i;
+ nDefFormat = GetFormat();
+ return;
+ }
+ }
+
+ // Kein Eintrag gefunden:
+ double fValue = GetDefValue(pFormatter, nType);
+ String sValue;
+ Color* pCol = 0;
+
+ if (nType == NUMBERFORMAT_TEXT)
+ {
+ String sTxt(C2S("\"ABC\""));
+ pFormatter->GetOutputString(sTxt, nDefFmt, sValue, &pCol);
+ }
+ else
+ pFormatter->GetOutputString(fValue, nDefFmt, sValue, &pCol);
+
+ USHORT nPos = 0;
+ while ((ULONG)GetEntryData(nPos) == ULONG_MAX)
+ nPos++;
+
+//
+ ULONG nSysNumFmt = pFormatter->GetFormatIndex( NF_NUMBER_SYSTEM, eCurLanguage);
+ ULONG nSysShortDateFmt = pFormatter->GetFormatIndex( NF_DATE_SYSTEM_SHORT, eCurLanguage);
+ ULONG nSysLongDateFmt = pFormatter->GetFormatIndex( NF_DATE_SYSTEM_LONG, eCurLanguage);
+ BOOL bSysLang = FALSE;
+ if(::GetSystemLanguage() == eCurLanguage)
+ bSysLang = TRUE;
+ ULONG nNumFormatForLanguage = pFormatter->GetFormatForLanguageIfBuiltIn(nSysNumFmt, LANGUAGE_SYSTEM );
+ ULONG nShortDateFormatForLanguage = pFormatter->GetFormatForLanguageIfBuiltIn(nSysShortDateFmt, LANGUAGE_SYSTEM );
+ ULONG nLongDateFormatForLanguage = pFormatter->GetFormatForLanguageIfBuiltIn(nSysLongDateFmt, LANGUAGE_SYSTEM );
+
+ if(nDefFmt == nSysNumFmt||
+ nDefFmt == nSysShortDateFmt||
+ nDefFmt == nSysLongDateFmt||
+ bSysLang && (nDefFmt == nNumFormatForLanguage ||
+ nDefFmt == nShortDateFormatForLanguage ||
+ nDefFmt == nLongDateFormatForLanguage ))
+ sValue += String(SW_RES(RID_STR_SYSTEM));
+
+ nPos = InsertEntry(sValue, nPos); // Als ersten numerischen Eintrag einfuegen
+ SetEntryData(nPos, (void*)nDefFmt);
+ SelectEntryPos(nPos);
+ }
+ nDefFormat = GetFormat();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+ULONG NumFormatListBox::GetFormat() const
+{
+ USHORT nPos = GetSelectEntryPos();
+
+ return (ULONG)GetEntryData(nPos);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+const String& NumFormatListBox::GetFormatStr() const
+{
+ return aEmptyStr;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
+{
+ USHORT nPos = pBox->GetSelectEntryPos();
+ String sDefine(SW_RES( STR_DEFINE_NUMBERFORMAT ));
+ SwView *pView = GetView();
+
+ if (pView && nPos == pBox->GetEntryCount() - 1 && pBox->GetEntry(nPos) == sDefine)
+ {
+ SvNumberFormatter* pFormatter;
+
+ SwWrtShell &rSh = pView->GetWrtShell();
+ pFormatter = rSh.GetNumberFormatter();
+
+ SfxItemSet aCoreSet( rSh.GetAttrPool(),
+ SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE,
+ SID_ATTR_NUMBERFORMAT_INFO, SID_ATTR_NUMBERFORMAT_INFO,
+ SID_ATTR_NUMBERFORMAT_ONE_AREA, SID_ATTR_NUMBERFORMAT_ONE_AREA,
+ SID_ATTR_NUMBERFORMAT_NOLANGUAGE, SID_ATTR_NUMBERFORMAT_NOLANGUAGE,
+ 0 );
+
+
+ double fValue = GetDefValue(pFormatter, nCurrFormatType);
+
+ ULONG nFormat = pFormatter->GetStandardFormat(nCurrFormatType, eCurLanguage);
+ SfxUInt32Item aVal(SID_ATTR_NUMBERFORMAT_VALUE, nFormat);
+ aCoreSet.Put(aVal);
+
+ SvxNumberInfoItem aNumInf(pFormatter, fValue, SID_ATTR_NUMBERFORMAT_INFO);
+ aCoreSet.Put(aNumInf);
+
+ if ((nCurrFormatType & NUMBERFORMAT_DATE) || (nCurrFormatType & NUMBERFORMAT_TIME))
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ONE_AREA, bOneArea));
+
+ // Keine Sprachauswahl im Dialog, da Sprache im Textattribut enthalten ist
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_NOLANGUAGE, TRUE));
+
+ SwNumFmtDlg* pDlg = new SwNumFmtDlg(this, aCoreSet);
+
+ if (RET_OK == pDlg->Execute())
+ {
+ const SfxPoolItem* pItem = pView->GetDocShell()->
+ GetItem( SID_ATTR_NUMBERFORMAT_INFO );
+
+ if( pItem && 0 != ((SvxNumberInfoItem*)pItem)->GetDelCount() )
+ {
+ const ULONG* pDelArr = ((SvxNumberInfoItem*)pItem)->GetDelArray();
+
+ for ( USHORT i = 0; i < ((SvxNumberInfoItem*)pItem)->GetDelCount(); i++ )
+ pFormatter->DeleteEntry( pDelArr[i] );
+ }
+
+ if( SFX_ITEM_SET == pDlg->GetOutputItemSet()->GetItemState(
+ SID_ATTR_NUMBERFORMAT_VALUE, FALSE, &pItem ))
+ {
+ SetDefFormat(((SfxUInt32Item*)pItem)->GetValue());
+ }
+ }
+ else
+ SetDefFormat(nFormat);
+
+ delete pDlg;
+ }
+ return 0;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+double NumFormatListBox::GetDefValue(SvNumberFormatter* pFormatter, const short nFormatType) const
+{
+ double fDefValue = 0.0;
+
+ switch (nFormatType)
+ {
+ case NUMBERFORMAT_DATE:
+ case NUMBERFORMAT_DATE|NUMBERFORMAT_TIME:
+ fDefValue = SVX_NUMVAL_DATE;
+ break;
+
+ case NUMBERFORMAT_TIME:
+ fDefValue = SVX_NUMVAL_TIME;
+ break;
+/* {
+ String sValue("31.8.1997 16:57:34");
+ ULONG nFormat = pFormatter->GetStandardFormat(nFormatType, LANGUAGE_GERMAN);
+ pFormatter->IsNumberFormat( sValue, nFormat, fDefValue );
+ }
+ break;*/
+
+ case NUMBERFORMAT_TEXT:
+ case NUMBERFORMAT_UNDEFINED:
+ case NUMBERFORMAT_ENTRY_NOT_FOUND:
+ fDefValue = 0;
+ break;
+
+ case NUMBERFORMAT_CURRENCY:
+ fDefValue = SVX_NUMVAL_CURRENCY;
+ break;
+
+ case NUMBERFORMAT_PERCENT:
+ fDefValue = SVX_NUMVAL_PERCENT;
+ break;
+
+ case NUMBERFORMAT_LOGICAL:
+ fDefValue = SVX_NUMVAL_BOOLEAN;
+ break;
+
+ default:
+ fDefValue = SVX_NUMVAL_STANDARD;
+ break;
+ }
+
+ return fDefValue;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void NumFormatListBox::Clear()
+{
+ ListBox::Clear();
+ nCurrFormatType = -1;
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.31 2000/09/18 16:06:18 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.30 2000/04/18 15:14:08 os
+ UNICODE
+
+ Revision 1.29 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.28 2000/02/25 09:53:39 hr
+ #73447#: removed temporary
+
+ Revision 1.27 2000/02/11 15:00:49 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.26 1999/06/28 12:54:58 JP
+ Bug #67242#: SetFormatType - use eCurLanguage
+
+
+ Rev 1.25 28 Jun 1999 14:54:58 JP
+ Bug #67242#: SetFormatType - use eCurLanguage
+
+ Rev 1.24 28 Jun 1999 13:57:44 JP
+ Bug #67247#: SetFormatType - support of FormatTypeAll
+
+ Rev 1.23 18 Jun 1999 15:28:02 OS
+ #60657# Manual sorted number formats
+
+ Rev 1.22 10 Jun 1999 13:14:52 JP
+ have to change: no AppWin from SfxApp
+
+ Rev 1.21 10 Feb 1999 14:13:02 OS
+ #52055# Systemformate koennen auch unter 0x5000 liegen
+
+ Rev 1.20 21 Jan 1999 11:07:18 OS
+ #52055# [System] an Systemformat anhaengen
+
+ Rev 1.19 15 Jun 1998 12:27:56 OM
+ #51009# Numberformatter-Listbox ViewPtr reinreichen
+
+ Rev 1.18 20 May 1998 14:24:02 OM
+ Kombinierte DateTime-Formate verarbeiten
+
+ Rev 1.17 19 May 1998 14:24:30 OM
+ #47310 Definierte Standardwerte und keine Sprachauswahl
+
+ Rev 1.16 11 Feb 1998 16:30:32 OM
+ Textdarstellung fuer Felder
+
+ Rev 1.15 13 Jan 1998 15:03:10 OM
+ Formula-Field wieder unterstuetzt
+
+ Rev 1.14 12 Jan 1998 12:57:12 OM
+ Alle Sprachen anzeigen
+
+ Rev 1.13 12 Jan 1998 12:42:16 OM
+ Alle Sprachen anzeigen
+
+ Rev 1.12 09 Jan 1998 10:07:26 OM
+ Sprache organisieren
+
+ Rev 1.11 08 Jan 1998 17:49:00 OM
+ Neue Datumsfelder einfuegen
+
+ Rev 1.10 06 Jan 1998 18:14:12 OM
+ Felbefehl-Dlg
+
+ Rev 1.9 19 Dec 1997 18:23:54 OM
+ Feldbefehl-bearbeiten Dlg
+
+ Rev 1.8 16 Dec 1997 17:04:50 OM
+ Feldbefehle bearbeiten
+
+ Rev 1.7 11 Dec 1997 17:01:26 OM
+ Feldumstellung
+
+ Rev 1.6 29 Nov 1997 15:08:58 MA
+ includes
+
+ Rev 1.5 21 Nov 1997 17:19:04 OM
+ Feldbefehl-Umstellung: DocInfo
+
+ Rev 1.4 21 Nov 1997 12:10:16 MA
+ includes
+
+ Rev 1.3 20 Nov 1997 17:02:34 OM
+ Neuer Felddialog
+
+ Rev 1.2 10 Nov 1997 15:29:04 OM
+ Zahlenformat-Listbox
+
+ Rev 1.1 07 Nov 1997 16:56:08 OM
+ NumberFormat-Listbox
+
+ Rev 1.0 07 Nov 1997 16:37:08 OM
+ Initial revision.
+
+*************************************************************************/
diff --git a/sw/source/ui/utlui/poolfmt.src b/sw/source/ui/utlui/poolfmt.src
new file mode 100644
index 000000000000..b1be4e12a119
--- /dev/null
+++ b/sw/source/ui/utlui/poolfmt.src
@@ -0,0 +1,4956 @@
+/*************************************************************************
+ *
+ * $RCSfile: poolfmt.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "poolfmt.hrc"
+
+ // -----------------
+ // Format-Namen
+ // -----------------
+String STR_POOLCHR_FOOTNOTE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußnotenzeichen : Fu˜notenzeichen */
+ Text = "Fußnotenzeichen" ;
+ Text [ English ] = "Footnote" ;
+ Text [ english_us ] = "Footnote Symbol" ;
+ Text [ italian ] = "Carattere note a piè pagina" ;
+ Text [ spanish ] = "Símbolo de nota al pie" ;
+ Text [ french ] = "Symbole de note de bas de page" ;
+ Text [ dutch ] = "Voetnootteken" ;
+ Text [ swedish ] = "Fotnotstecken" ;
+ Text [ danish ] = "Fodnotetegn" ;
+ Text [ portuguese ] = "Símbolo de nota de rodapé" ;
+ Text [ portuguese_brazilian ] = "Fußnotenzeichen" ;
+ Text[ chinese_simplified ] = "×¢½Å·û";
+ Text[ russian ] = "Çíàê ñíîñêè";
+ Text[ polish ] = "Symbol przypisów doln.";
+ Text[ japanese ] = "‹r’‹L†";
+ Text[ chinese_traditional ] = "µù¸}²Å";
+ Text[ arabic ] = "ÑãÒ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ greek ] = "Óýìâïëï õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ ±âÈ£";
+ Text[ turkish ] = "Dipnot karakterleri";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_PAGENO
+{
+ Text = "Seitenzahl" ;
+ Text [ English ] = "Page number" ;
+ Text [ dutch ] = "Paginanummer" ;
+ Text [ english_us ] = "Page Number" ;
+ Text [ italian ] = "Numero di pagina" ;
+ Text [ spanish ] = "Número de página" ;
+ Text [ french ] = "Numéro de page" ;
+ Text [ swedish ] = "Sidnummer" ;
+ Text [ danish ] = "Sidetal" ;
+ Text [ portuguese ] = "Número de páginas" ;
+ Text [ portuguese_brazilian ] = "Seitenzahl" ;
+ Text[ chinese_simplified ] = "Ò³Âë";
+ Text[ russian ] = "Íîìåð ñòðàíèöû";
+ Text[ polish ] = "IloϾ stron";
+ Text[ japanese ] = "Íß°¼Þ”Ô†";
+ Text[ chinese_traditional ] = "­¶­±¸¹½X";
+ Text[ arabic ] = "ÑÞã ÇáÕÝÍÉ";
+ Text[ greek ] = "Áñéèìüò óåëßäáò";
+ Text[ korean ] = "ÆäÀÌÁö ¹øÈ£";
+ Text[ turkish ] = "Sayfa sayýsý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_LABEL
+{
+ Text = "Beschriftungszeichen" ;
+ Text [ English ] = "Label" ;
+ Text [ dutch ] = "Bijschrifttekens" ;
+ Text [ english_us ] = "Caption characters" ;
+ Text [ italian ] = "Carattere per dicitura" ;
+ Text [ spanish ] = "Caracteres de etiqueta" ;
+ Text [ french ] = "Caractères de la légende" ;
+ Text [ swedish ] = "Bildtexttecken" ;
+ Text [ danish ] = "Billedteksttegn" ;
+ Text [ portuguese ] = "Caracteres para etiqueta" ;
+ Text [ portuguese_brazilian ] = "Beschriftungszeichen" ;
+ Text[ chinese_simplified ] = "±êÇ©ÎÄ";
+ Text[ russian ] = "Òåêñò íàçâàíèÿ";
+ Text[ polish ] = "Tekst etykiety";
+ Text[ japanese ] = "Œ©o‚µ•¶Žš";
+ Text[ chinese_traditional ] = "¼ÐÅÒ¤å";
+ Text[ arabic ] = "ÃÍÑÝ ÇáÊÓãíÉ ÇáÊæÖíÍíÉ";
+ Text[ greek ] = "×áñáêôÞñåò åðéãñáöÞò";
+ Text[ korean ] = "ĸ¼Ç ¹®ÀÚ";
+ Text[ turkish ] = "Etiket karakterleri";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_DROPCAPS
+{
+ Text = "Initialenzeichen" ;
+ Text [ English ] = "Drop caps" ;
+ Text [ english_us ] = "Drop Caps" ;
+ Text [ italian ] = "Carattere capolettera" ;
+ Text [ spanish ] = "Iniciales" ;
+ Text [ french ] = "Autre caractère" ;
+ Text [ dutch ] = "Initialen" ;
+ Text [ swedish ] = "Anfangstecken" ;
+ Text [ danish ] = "Initialtegn" ;
+ Text [ portuguese ] = "Iniciais" ;
+ Text [ portuguese_brazilian ] = "Initialenzeichen" ;
+ Text[ chinese_simplified ] = "×ÖÊ×´óд";
+ Text[ russian ] = "Èíèöèàëû";
+ Text[ polish ] = "Inicja³y";
+ Text[ japanese ] = "ÄÞÛ¯Ìß·¬¯Ìß";
+ Text[ chinese_traditional ] = "¦r­º¤j¼g";
+ Text[ arabic ] = "ÇáÃÍÑÝ ÇáÇÓÊåáÇáíÉ";
+ Text[ greek ] = "Êåöáëáßá ãñÜììáôá";
+ Text[ korean ] = "´Ü¶ôÀÇ Ã¹¹®ÀÚ Àå½Ä";
+ Text[ turkish ] = "Baþharfler";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_NUM_LEVEL
+{
+ Text = "Nummerierungszeichen" ;
+ Text [ English ] = "Numbering" ;
+ Text [ english_us ] = "Numbering Symbols" ;
+ Text [ italian ] = "Carattere di numerazione" ;
+ Text [ spanish ] = "Carácter de numeración" ;
+ Text [ french ] = "Caractères de numérotation" ;
+ Text [ dutch ] = "Nummeringsteken" ;
+ Text [ swedish ] = "Numreringstecken" ;
+ Text [ danish ] = "Nummereringstegn" ;
+ Text [ portuguese ] = "Caracteres de numeração" ;
+ Text [ portuguese_brazilian ] = "Numerierungszeichen" ;
+ Text[ chinese_simplified ] = "±àºÅ·ûºÅ";
+ Text[ russian ] = "Çíàê íóìåðàöèè";
+ Text[ polish ] = "Znaki numeracji";
+ Text[ japanese ] = "”Ô†•t‚¯‹L†";
+ Text[ chinese_traditional ] = "½s¸¹²Å¸¹";
+ Text[ arabic ] = "ÚáÇãÇÊ ÊÑÞíã";
+ Text[ greek ] = "×áñáêôÞñåò áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ±âÈ£";
+ Text[ turkish ] = "Numaralama karakterleri";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_BUL_LEVEL
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählungszeichen : Aufzõhlungszeichen */
+ Text = "Aufzählungszeichen" ;
+ Text [ English ] = "Bullet" ;
+ Text [ english_us ] = "Bullet Symbols" ;
+ Text [ italian ] = "Carattere per numerazione" ;
+ Text [ spanish ] = "Viñetas" ;
+ Text [ french ] = "Puces" ;
+ Text [ dutch ] = "Opsommingstekens" ;
+ Text [ swedish ] = "Uppräkningstecken" ;
+ Text [ danish ] = "Punkttegn" ;
+ Text [ portuguese_brazilian ] = "Aufzählungszeichen" ;
+ Text [ portuguese ] = "Marcas e números" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ";
+ Text[ russian ] = "Ñèìâîëû ìàðêåðà";
+ Text[ polish ] = "Symbol wypunktowania";
+ Text[ japanese ] = "‰Óð‘‚«‹L†‚Æ’i—Ž”Ô†";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹";
+ Text[ arabic ] = "ÚáÇãÇÊ ÇáÊÚÏÇÏ";
+ Text[ greek ] = "Óýìâïëá áñßèìçóçò";
+ Text[ korean ] = "±Û¸Ó¸® ±âÈ£";
+ Text[ turkish ] = "Madde iþaretleri";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_INET_NORMAL
+{
+ Text = "Internet Link" ;
+ Text [ English ] = "Internet link" ;
+ Text [ english_us ] = "Internet link" ;
+ Text [ italian ] = "Link Internet" ;
+ Text [ spanish ] = "Vínculo Internet" ;
+ Text [ french ] = "Lien Internet" ;
+ Text [ dutch ] = "Internet Link" ;
+ Text [ swedish ] = "Internetlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese ] = "Link Internet" ;
+ Text [ portuguese_brazilian ] = "Internet Link" ;
+ Text[ chinese_simplified ] = "¹ú¼Ê»¥ÁªÍøÁ´½Ó";
+ Text[ russian ] = "Ññûëêà Èíòåðíåòà";
+ Text[ polish ] = "£¹cze internetowe";
+ Text[ japanese ] = "²ÝÀ°È¯Ä Øݸ";
+ Text[ chinese_traditional ] = "Internet ±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÅäÊÑäÊ";
+ Text[ greek ] = "Óýíäåóç ôïõ Internet";
+ Text[ korean ] = "ÀÎÅÍ³Ý ¿¬°á";
+ Text[ turkish ] = "Internet baðlantýsý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_INET_VISIT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Besuchter Internet Link : besuchter Internet Link */
+ /* ### ACHTUNG: Neuer Text in Resource? Besuchter Internet Link : besuchter Internet Link */
+ Text = "Besuchter Internet Link" ;
+ Text [ English ] = "Visit internet link" ;
+ Text [ english_us ] = "Visited Internet Link" ;
+ Text [ italian ] = "Link Internet visitato" ;
+ Text [ spanish ] = "Página Internet visitada" ;
+ Text [ french ] = "Lien Internet visité" ;
+ Text [ dutch ] = "Bezochte Internet Link" ;
+ Text [ swedish ] = "Använd Internetlänk" ;
+ Text [ danish ] = "Besøgt hyperlink" ;
+ Text [ portuguese ] = "Link Internet visitado" ;
+ Text [ portuguese_brazilian ] = "Besuchter Internet Link" ;
+ Text[ chinese_simplified ] = "·ÃÎʹýµÄ¹ú¼Ê»¥ÁªÍøÁ´½Ó";
+ Text[ russian ] = "Ïîñåùåííàÿ ññûëêà Èíòåðíåòà";
+ Text[ polish ] = "Odwiedzone ³¹cze internetowe";
+ Text[ japanese ] = "–K‚ꂽ²ÝÀ°È¯Ä Øݸ";
+ Text[ chinese_traditional ] = "³X°Ý¹Lªº Internet ±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÇáÅäÊÑäÊ ÇáÐí Êã ÒíÇÑÊå";
+ Text[ greek ] = "Óýíäåóç Internet ðïõ åðéóêåöèÞêáôå";
+ Text[ korean ] = "¹æ¹®ÇÑ ÀÎÅÍ³Ý ¸µÅ©";
+ Text[ turkish ] = "Kullanýlmýþ Internet baðlantýsý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_JUMPEDIT
+{
+ Text = "Platzhalter" ;
+ Text [ English ] = "Place marker" ;
+ Text [ english_us ] = "Placeholder" ;
+ Text [ italian ] = "Segnaposto" ;
+ Text [ spanish ] = "Comodín" ;
+ Text [ french ] = "Substituant" ;
+ Text [ dutch ] = "Plaatsvervanger" ;
+ Text [ swedish ] = "Platshållare" ;
+ Text [ danish ] = "Pladsholdere" ;
+ Text [ portuguese ] = "Marcador de posição" ;
+ Text [ portuguese_brazilian ] = "Platzhalter" ;
+ Text[ chinese_simplified ] = "ͨÅä·û";
+ Text[ russian ] = "Ìåòêà-çàïîëíèòåëü";
+ Text[ polish ] = "Znak-wype³niacz";
+ Text[ japanese ] = "ܲÙÄÞ¶°ÄÞ";
+ Text[ chinese_traditional ] = "³q°t²Å";
+ Text[ arabic ] = "ÚäÕÑ äÇÆÈ";
+ Text[ greek ] = "Óýìâïëï êñÜôçóçò èÝóçò";
+ Text[ korean ] = "°³Ã¼Æ²";
+ Text[ turkish ] = "Genel arama karakteri";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_TOXJUMP
+{
+ Text = "Verzeichnissprung" ;
+ Text [ English ] = "Register jump" ;
+ Text [ dutch ] = "Indexsprong" ;
+ Text [ english_us ] = "Index Link" ;
+ Text [ swedish ] = "Förteckningslänk" ;
+ Text [ danish ] = "Indeksspring" ;
+ Text [ italian ] = "Salto a indice" ;
+ Text [ spanish ] = "Salto de índice" ;
+ Text [ french ] = "Saut d'index" ;
+ Text [ portuguese ] = "Salto ao índice" ;
+ Text [ portuguese_brazilian ] = "Verzeichnissprung" ;
+ Text[ chinese_simplified ] = "Ë÷ÒýÁ´½Ó";
+ Text[ russian ] = "Ññûëêà óêàçàòåëÿ";
+ Text[ polish ] = "Skok w indeksie";
+ Text[ japanese ] = "õˆø¼Þ¬ÝÌß";
+ Text[ chinese_traditional ] = "¥Ø¿ý±¶®|";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÝåÑÓ";
+ Text[ greek ] = "Óýíäåóç åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ ¿¬°á";
+ Text[ turkish ] = "Dizin baðlantýsý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_ENDNOTE
+{
+ Text = "Endnotenzeichen" ;
+ Text [ English ] = "Endnote Symbol" ;
+ Text [ english_us ] = "Endnote Symbol" ;
+ Text [ portuguese ] = "Símbolo de nota final" ;
+ Text [ portuguese_brazilian ] = "Endnotenzeichen" ;
+ Text [ swedish ] = "Slutnotstecken" ;
+ Text [ danish ] = "Slutnotetegn" ;
+ Text [ italian ] = "Carattere nota di chiusura" ;
+ Text [ spanish ] = "Símbolo de nota final" ;
+ Text [ french ] = "Caractère de note de fin" ;
+ Text [ dutch ] = "Eindnootteken" ;
+ Text[ chinese_simplified ] = "β±ê·û";
+ Text[ russian ] = "Çíàê êîíöåâîé ñíîñêè";
+ Text[ polish ] = "Symbol przypisów koñc.";
+ Text[ japanese ] = "•¶––‹r’‹L†";
+ Text[ chinese_traditional ] = "§À¼Ð²Å";
+ Text[ arabic ] = "ÑãÒ ÇáÊÚáíÞ ÇáÎÊÇãí";
+ Text[ greek ] = "Óýìâïëï óçìåßùóçò ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ ±âÈ£";
+ Text[ turkish ] = "Sonnot karakterleri";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_LINENUM
+{
+ Text = "Zeilennummerierung" ;
+ Text [ English ] = "Line numbering" ;
+ Text [ portuguese ] = "Numeração de linhas" ;
+ Text [ english_us ] = "Line numbering" ;
+ Text [ portuguese_brazilian ] = "Zeilennumerierung" ;
+ Text [ swedish ] = "Radnumrering" ;
+ Text [ danish ] = "Linjenummerering" ;
+ Text [ italian ] = "Numerazione righe" ;
+ Text [ spanish ] = "Numeración de líneas" ;
+ Text [ french ] = "Numérotation de lignes" ;
+ Text [ dutch ] = "Regelnummering" ;
+ Text[ chinese_simplified ] = "ÐбàºÅ";
+ Text[ russian ] = "Íóìåðàöèÿ ñòðîê";
+ Text[ polish ] = "Numeracja wierszy";
+ Text[ japanese ] = "s‚̔Ԇ•t‚¯";
+ Text[ chinese_traditional ] = "¦æ½s¸¹";
+ Text[ arabic ] = "ÊÑÞíã ÇáÃÓØÑ";
+ Text[ greek ] = "Áñßèìçóç ãñáììþí";
+ Text[ korean ] = "¼± ¹øÈ£";
+ Text[ turkish ] = "Satýr numaralamasý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_IDX_MAIN_ENTRY
+{
+ Text = "Stichwortverzeichnis Haupteintrag" ;
+ Text [ English ] = "Main index entry" ;
+ Text[ english_us ] = "Main index entry";
+ Text[ portuguese ] = "Entrada principal de índice remissivo";
+ Text[ russian ] = "Ïðåäìåòíûé óêàçàòåëü: îñíîâíîé ýëåìåíò";
+ Text[ greek ] = "Êýñéá åããñáöÞ åõñåôçñßïõ ëÝîåùí";
+ Text[ dutch ] = "Index hoofditem";
+ Text[ french ] = "Index lexical : entrée principale";
+ Text[ spanish ] = "Entrada principal índice alfabético";
+ Text[ italian ] = "Voce principale per indice analitico";
+ Text[ danish ] = "Stikordsregister hovedelement";
+ Text[ swedish ] = "Sakregister huvudpost";
+ Text[ polish ] = "Zestaw hase³ Wpis g³ówny";
+ Text[ portuguese_brazilian ] = "Main index entry";
+ Text[ japanese ] = "õˆø‚ÌŽå“ü—Í";
+ Text[ korean ] = "ÁÖ »öÀÎ Ç׸ñ";
+ Text[ chinese_simplified ] = "Ë÷ÒýÖ÷ÌõÄ¿";
+ Text[ chinese_traditional ] = "¯Á¤Þ¥D±ø¥Ø";
+ Text[ arabic ] = "ÅÏÎÇá ÑÆíÓí Ýí ÇáÝåÑÓ ÇáÃÈÌÏí";
+ Text[ turkish ] = "Alfabetik dizin ana giriþi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_FOOTNOTE_ANCHOR
+{
+ Text = "Fußnotenanker" ;
+ Text [ English ] = "Footnote anchor" ;
+ Text[ english_us ] = "Footnote anchor";
+ Text[ portuguese ] = "Âncora para nota de rodapé";
+ Text[ russian ] = "Ïðèâÿçêà ñíîñêè";
+ Text[ greek ] = "Áãêýñùóç õðïóçìåßùóçò";
+ Text[ dutch ] = "Voetnootanker";
+ Text[ french ] = "Appel de note de bas de page";
+ Text[ spanish ] = "Ancla de nota al pie";
+ Text[ italian ] = "Ancoraggio note a piè pagina";
+ Text[ danish ] = "Fodnoteanker";
+ Text[ swedish ] = "Fotnotsankare";
+ Text[ polish ] = "Zakotwiczenie przypisów doln.";
+ Text[ portuguese_brazilian ] = "Footnote anchor";
+ Text[ japanese ] = "‹r’±Ý¶°";
+ Text[ korean ] = "°¢ÁÖ °íÁ¤ ±âÁØ";
+ Text[ chinese_simplified ] = "×¢½Å±ê¼Ç";
+ Text[ chinese_traditional ] = "ª`¸}¼Ð¸¹";
+ Text[ arabic ] = "ãÑÓÇÉ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ turkish ] = "Dipnot sabitleyicisi";
+};
+String STR_POOLCHR_ENDNOTE_ANCHOR
+{
+ Text = "Endnotenanker" ;
+ Text [ English ] = "Endnote anchor" ;
+ Text[ english_us ] = "Endnote anchor";
+ Text[ portuguese ] = "Âncora de nota final";
+ Text[ russian ] = "Ïðèâÿçêà êîíöåâîé ñíîñêè";
+ Text[ greek ] = "Áãêýñùóç óçìåéþóåùí ôÝëïõò";
+ Text[ dutch ] = "Eindnootanker";
+ Text[ french ] = "Appel de note de fin";
+ Text[ spanish ] = "Ancla de nota al final";
+ Text[ italian ] = "Ancoraggio note di chiusura";
+ Text[ danish ] = "Slutnoteanker";
+ Text[ swedish ] = "Slutnotsankare";
+ Text[ polish ] = "Zakotwiczenie przypisów koñc.";
+ Text[ portuguese_brazilian ] = "Endnote anchor";
+ Text[ japanese ] = "•¶––‹r’±Ý¶°";
+ Text[ korean ] = "¹ÌÁÖ °íÁ¤ ±âÁØ";
+ Text[ chinese_simplified ] = "βע±ê¼Ç";
+ Text[ chinese_traditional ] = "§Àª`¼Ð¸¹";
+ Text[ arabic ] = "ãÑÓÇÉ ÇáÊÚáíÞ ÇáÎÊÇãí";
+ Text[ turkish ] = "Sonnot sabitleyicisi";
+};
+
+ // Zeichenvorlagen fuer HTML
+String STR_POOLCHR_HTML_EMPHASIS
+{
+ Text = "Betont" ;
+ Text [ English ] = "Emphasis" ;
+ Text [ dutch ] = "Geaccentueerd" ;
+ Text [ english_us ] = "Emphasis" ;
+ Text [ swedish ] = "Betonad" ;
+ Text [ danish ] = "Fremhævet" ;
+ Text [ italian ] = "Enfasi" ;
+ Text [ spanish ] = "Destacado" ;
+ Text [ french ] = "Accentuation" ;
+ Text [ portuguese ] = "Destaque" ;
+ Text [ portuguese_brazilian ] = "Betont" ;
+ Text[ chinese_simplified ] = "Ç¿µ÷";
+ Text[ russian ] = "Âûäåëåíèå";
+ Text[ polish ] = "Wyró¿niony";
+ Text[ japanese ] = "‹­’²";
+ Text[ chinese_traditional ] = "±j½Õ";
+ Text[ arabic ] = "ÅÈÑÇÒ";
+ Text[ greek ] = "Ôïíéóìüò";
+ Text[ korean ] = "°­Á¶";
+ Text[ turkish ] = "Vurgu";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_CITIATION
+{
+ Text = "Zitat" ;
+ Text [ English ] = "Citation" ;
+ Text [ dutch ] = "Citaat" ;
+ Text [ english_us ] = "Citation" ;
+ Text [ swedish ] = "Citat" ;
+ Text [ danish ] = "Citat" ;
+ Text [ italian ] = "Citazione" ;
+ Text [ spanish ] = "Cita" ;
+ Text [ french ] = "Citation" ;
+ Text [ portuguese ] = "Citação" ;
+ Text [ portuguese_brazilian ] = "Zitat" ;
+ Text[ chinese_simplified ] = "ÒýÓÃÎÄ";
+ Text[ russian ] = "Öèòàòà";
+ Text[ polish ] = "Cytat";
+ Text[ japanese ] = "ˆø—p";
+ Text[ chinese_traditional ] = "¤Þ¤å";
+ Text[ arabic ] = "ÇÓÊÔåÇÏ ÈÞæá";
+ Text[ greek ] = "Míçìüíåõóç";
+ Text[ korean ] = "Àοë";
+ Text[ turkish ] = "Alýntý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_STRONG
+{
+ Text = "Stark betont" ;
+ Text [ English ] = "Strong Emphasis" ;
+ Text [ dutch ] = "Sterk accent" ;
+ Text [ english_us ] = "Strong Emphasis" ;
+ Text [ swedish ] = "Starkt betonad" ;
+ Text [ danish ] = "Stærk fremhævet" ;
+ Text [ italian ] = "Enfasi forte" ;
+ Text [ spanish ] = "Muy destacado" ;
+ Text [ french ] = "Accentuation forte" ;
+ Text [ portuguese ] = "Destaque acentuado" ;
+ Text [ portuguese_brazilian ] = "Stark betont" ;
+ Text[ chinese_simplified ] = "Ç¿µ÷";
+ Text[ russian ] = "Âûäåëåíèå æèðíûì";
+ Text[ polish ] = "Mocno wyró¿niony";
+ Text[ japanese ] = "‹­‚¢‹­’²";
+ Text[ chinese_traditional ] = "±j½Õ";
+ Text[ arabic ] = "ÅÈÑÇÒ ÈæÖæÍ";
+ Text[ greek ] = "¸íôïíïò ôïíéóìüò";
+ Text[ korean ] = "°­ÇÑ °­Á¶";
+ Text[ turkish ] = "Kuvvetli vurgu";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_CODE
+{
+ Text = "Quelltext" ;
+ Text [ English ] = "Listing" ;
+ Text [ dutch ] = "Brontekst" ;
+ Text [ english_us ] = "Source Text" ;
+ Text [ swedish ] = "Källtext" ;
+ Text [ danish ] = "Kildetekst" ;
+ Text [ italian ] = "Testo sorgente" ;
+ Text [ spanish ] = "Texto fuente" ;
+ Text [ french ] = "Texte source" ;
+ Text [ portuguese ] = "Texto-fonte" ;
+ Text [ portuguese_brazilian ] = "Quelltext" ;
+ Text[ chinese_simplified ] = "Ô´Îı¾";
+ Text[ russian ] = "Èñõîäíûé òåêñò";
+ Text[ polish ] = "Tekst Ÿród³owy";
+ Text[ japanese ] = "¿°½";
+ Text[ chinese_traditional ] = "­ì©lÀÉ";
+ Text[ arabic ] = "äÕ ÇáãÕÏÑ";
+ Text[ greek ] = "Êåßìåíï ðñïÝëåõóçò";
+ Text[ korean ] = "¼Ò½º ÅؽºÆ®";
+ Text[ turkish ] = "Kaynak kodu";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_SAMPLE
+{
+ Text = "Beispiel" ;
+ Text [ English ] = "Example" ;
+ Text [ dutch ] = "Voorbeeld" ;
+ Text [ english_us ] = "Example" ;
+ Text [ swedish ] = "Exempel" ;
+ Text [ danish ] = "Eksempel" ;
+ Text [ italian ] = "Esempio" ;
+ Text [ spanish ] = "Ejemplo" ;
+ Text [ french ] = "Exemple" ;
+ Text [ portuguese ] = "Exemplo" ;
+ Text [ portuguese_brazilian ] = "Beispiel" ;
+ Text[ chinese_simplified ] = "Àý×Ó";
+ Text[ russian ] = "Ïðèìåð";
+ Text[ polish ] = "Przyk³ad";
+ Text[ japanese ] = "—á";
+ Text[ chinese_traditional ] = "¨Ò¤l";
+ Text[ arabic ] = "ãËÇá";
+ Text[ greek ] = "ÐáñÜäåéãìá";
+ Text[ korean ] = "¿¹";
+ Text[ turkish ] = "Örnek";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_KEYBOARD
+{
+ Text = "Benutzereingabe" ;
+ Text [ English ] = "User typed text" ;
+ Text [ dutch ] = "Gebruikergegevens" ;
+ Text [ english_us ] = "User Entry" ;
+ Text [ swedish ] = "Användarinmatning" ;
+ Text [ danish ] = "Brugerinput" ;
+ Text [ italian ] = "Digitazione dell'utente" ;
+ Text [ spanish ] = "Entrada del usuario" ;
+ Text [ french ] = "Saisie de l'utilisateur" ;
+ Text [ portuguese ] = "Entrada do utilizador" ;
+ Text [ portuguese_brazilian ] = "Benutzereingabe" ;
+ Text[ chinese_simplified ] = "Óû§ÊäÈë";
+ Text[ russian ] = "Ââîä ïîëüçîâàòåëÿ";
+ Text[ polish ] = "Wpis u¿ytkownika";
+ Text[ japanese ] = "Õ°»Þ°“ü—Í";
+ Text[ chinese_traditional ] = "¨Ï¥ÎªÌ¿é¤J";
+ Text[ arabic ] = "ÅÏÎÇá ÇáãÓÊÎÏã";
+ Text[ greek ] = "ÅéóáãùãÞ ÷ñÞóôç";
+ Text[ korean ] = "»ç¿ëÀÚ Ç׸ñ";
+ Text[ turkish ] = "Kullanýcý giriþi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_VARIABLE
+{
+ Text = "Variable" ;
+ Text [ English ] = "Variable" ;
+ Text [ dutch ] = "Variabele" ;
+ Text [ english_us ] = "Variable" ;
+ Text [ swedish ] = "Variabel" ;
+ Text [ danish ] = "Variabel" ;
+ Text [ italian ] = "Variabile" ;
+ Text [ spanish ] = "Variable" ;
+ Text [ french ] = "Variable" ;
+ Text [ portuguese ] = "Variável" ;
+ Text [ portuguese_brazilian ] = "Variable" ;
+ Text[ chinese_simplified ] = "¿É±ä";
+ Text[ russian ] = "Ïåðåìåííàÿ";
+ Text[ polish ] = "Zmienna";
+ Text[ japanese ] = "•Ï”";
+ Text[ chinese_traditional ] = "¥iÅÜ";
+ Text[ arabic ] = "ãÊÛíÑÉ";
+ Text[ greek ] = "ÌåôáâëçôÞ";
+ Text[ korean ] = "º¯¼ö";
+ Text[ turkish ] = "Deðiþken";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_DEFINSTANCE
+{
+ Text = "Definition" ;
+ Text [ English ] = "Definition" ;
+ Text [ dutch ] = "Definitie" ;
+ Text [ english_us ] = "Definition" ;
+ Text [ swedish ] = "Definition" ;
+ Text [ danish ] = "Definition" ;
+ Text [ italian ] = "Definizione" ;
+ Text [ spanish ] = "Definición" ;
+ Text [ french ] = "Définition" ;
+ Text [ portuguese ] = "Definição" ;
+ Text [ portuguese_brazilian ] = "Definition" ;
+ Text[ chinese_simplified ] = "¶¨Òå";
+ Text[ russian ] = "Îïðåäåëåíèå";
+ Text[ polish ] = "Definicja";
+ Text[ japanese ] = "’è‹`";
+ Text[ chinese_traditional ] = "©w¸q";
+ Text[ arabic ] = "ÊÚÑíÝ";
+ Text[ greek ] = "Ïñéóìüò";
+ Text[ korean ] = "Á¤ÀÇ";
+ Text[ turkish ] = "Taným";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCHR_HTML_TELETYPE
+{
+ Text = "Nicht-proportionaler Text" ;
+ Text [ English ] = "Teletype" ;
+ Text [ dutch ] = "Niet-proportionele tekst" ;
+ Text [ english_us ] = "Teletype" ;
+ Text [ swedish ] = "Icke-proportionell text" ;
+ Text [ danish ] = "Ikke-proportional tekst" ;
+ Text [ italian ] = "Testo non proporzionale" ;
+ Text [ spanish ] = "Texto no proporcional" ;
+ Text [ french ] = "Texte non proportionnel" ;
+ Text [ portuguese ] = "Texto não-proporcional" ;
+ Text [ portuguese_brazilian ] = "Nicht-proportionaler Text" ;
+ Text[ chinese_simplified ] = "·Ç³É±ÈÀýÎÄ×Ö";
+ Text[ russian ] = "Íåïðîïîðöèîíàëüíûé òåêñò";
+ Text[ polish ] = "Tekst nie proporcjonalny";
+ Text[ japanese ] = "•s‹Ï®‚È÷½Ä";
+ Text[ chinese_traditional ] = "«D¦¨¤ñ¨Ò¤å¦r";
+ Text[ arabic ] = "äÕ ÛíÑ ÊäÇÓÈí";
+ Text[ greek ] = "Ìç áñìïíéêü êåßìåíï";
+ Text[ korean ] = "ÅÚ·¹Å¸ÀÌÇÁ";
+ Text[ turkish ] = "Orantýsýz yazýtipi";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_POOLCHR_PRGM_FOOTNOTE
+{
+ Text = "Footnote Symbol" ;
+};
+String STR_POOLCHR_PRGM_PAGENO
+{
+ Text = "Page Number" ;
+};
+String STR_POOLCHR_PRGM_LABEL
+{
+ Text = "Caption characters" ;
+};
+String STR_POOLCHR_PRGM_DROPCAPS
+{
+ Text = "Drop Caps" ;
+};
+String STR_POOLCHR_PRGM_NUM_LEVEL
+{
+ Text = "Numbering Symbols" ;
+};
+String STR_POOLCHR_PRGM_BUL_LEVEL
+{
+ Text = "Bullet Symbols" ;
+};
+String STR_POOLCHR_PRGM_INET_NORMAL
+{
+ Text = "Internet link" ;
+};
+String STR_POOLCHR_PRGM_INET_VISIT
+{
+ Text = "Visited Internet Link" ;
+};
+String STR_POOLCHR_PRGM_JUMPEDIT
+{
+ Text = "Placeholder" ;
+};
+String STR_POOLCHR_PRGM_TOXJUMP
+{
+ Text = "Index Link" ;
+};
+String STR_POOLCHR_PRGM_ENDNOTE
+{
+ Text = "Endnote Symbol" ;
+};
+String STR_POOLCHR_PRGM_LINENUM
+{
+ Text = "Line numbering" ;
+};
+String STR_POOLCHR_PRGM_IDX_MAIN_ENTRY
+{
+ Text = "Main index entry";
+};
+String STR_POOLCHR_PRGM_FOOTNOTE_ANCHOR
+{
+ Text = "Footnote anchor";
+};
+String STR_POOLCHR_PRGM_ENDNOTE_ANCHOR
+{
+ Text = "Endnote anchor";
+};
+
+ // Zeichenvorlagen fuer HTML
+String STR_POOLCHR_PRGM_HTML_EMPHASIS
+{
+ Text = "Emphasis" ;
+};
+String STR_POOLCHR_PRGM_HTML_CITIATION
+{
+ Text = "Citation" ;
+};
+String STR_POOLCHR_PRGM_HTML_STRONG
+{
+ Text = "Strong Emphasis" ;
+};
+String STR_POOLCHR_PRGM_HTML_CODE
+{
+ Text = "Source Text" ;
+};
+String STR_POOLCHR_PRGM_HTML_SAMPLE
+{
+ Text = "Example" ;
+};
+String STR_POOLCHR_PRGM_HTML_KEYBOARD
+{
+ Text = "User Entry" ;
+};
+String STR_POOLCHR_PRGM_HTML_VARIABLE
+{
+ Text = "Variable" ;
+};
+String STR_POOLCHR_PRGM_HTML_DEFINSTANCE
+{
+ Text = "Definition" ;
+};
+String STR_POOLCHR_PRGM_HTML_TELETYPE
+{
+ Text = "Teletype" ;
+};
+// Rahmenvorlagen
+String STR_POOLFRM_FRAME
+{
+ Text = "Rahmen" ;
+ Text [ English ] = "Frame" ;
+ Text [ dutch ] = "Kader" ;
+ Text [ english_us ] = "Frame" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco" ;
+ Text [ french ] = "Cadre" ;
+ Text [ swedish ] = "Ram" ;
+ Text [ danish ] = "Ramme" ;
+ Text [ portuguese ] = "Moldura" ;
+ Text [ portuguese_brazilian ] = "Rahmen" ;
+ Text[ chinese_simplified ] = "¿ò";
+ Text[ russian ] = "Ðàìêà";
+ Text[ polish ] = "Ramka";
+ Text[ japanese ] = "˜g";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ";
+ Text[ greek ] = "Ðåñßãñáììá";
+ Text[ korean ] = "ÅؽºÆ® »óÀÚ";
+ Text[ turkish ] = "Çerçeve";
+};
+String STR_POOLFRM_GRAPHIC
+{
+ Text = "Grafik" ;
+ Text [ English ] = "Graphic" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ french ] = "Image" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ danish ] = "Grafik" ;
+ Text [ portuguese ] = "Gráfico" ;
+ Text [ portuguese_brazilian ] = "Grafik" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ãðàôèêà";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLFRM_OLE
+{
+ Text = "OLE" ;
+ Text [ English ] = "OLE" ;
+ Text [ dutch ] = "OLE" ;
+ Text [ english_us ] = "OLE" ;
+ Text [ italian ] = "OLE" ;
+ Text [ spanish ] = "OLE" ;
+ Text [ french ] = "OLE" ;
+ Text [ swedish ] = "OLE" ;
+ Text [ danish ] = "OLE" ;
+ Text [ portuguese ] = "OLE" ;
+ Text [ portuguese_brazilian ] = "OLE" ;
+ Text[ chinese_simplified ] = "OLE";
+ Text[ russian ] = "OLE";
+ Text[ polish ] = "OLE";
+ Text[ japanese ] = "OLE";
+ Text[ chinese_traditional ] = "OLE";
+ Text[ arabic ] = "OLE";
+ Text[ greek ] = "OLE";
+ Text[ korean ] = "OLE";
+ Text[ turkish ] = "OLE";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLFRM_FORMEL
+{
+ Text = "Formel" ;
+ Text [ English ] = "Expression" ;
+ Text [ dutch ] = "Formules" ;
+ Text [ english_us ] = "Formula" ;
+ Text [ italian ] = "Formula" ;
+ Text [ spanish ] = "Fórmula" ;
+ Text [ french ] = "Formule" ;
+ Text [ swedish ] = "Formel" ;
+ Text [ danish ] = "Formel" ;
+ Text [ portuguese ] = "Fórmula" ;
+ Text [ portuguese_brazilian ] = "Formel" ;
+ Text[ chinese_simplified ] = "¹«Ê½";
+ Text[ russian ] = "Ôîðìóëà";
+ Text[ polish ] = "Formu³a";
+ Text[ japanese ] = "”Ž®";
+ Text[ chinese_traditional ] = "¤½¦¡";
+ Text[ arabic ] = "ÕíÛÉ";
+ Text[ greek ] = "Ôýðïò";
+ Text[ korean ] = "¼ö½Ä";
+ Text[ turkish ] = "Formül";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLFRM_MARGINAL
+{
+ Text = "Marginalie" ;
+ Text [ English ] = "Marginalia" ;
+ Text [ english_us ] = "Marginalia" ;
+ Text [ italian ] = "Nota in margine" ;
+ Text [ spanish ] = "Nota al margen" ;
+ Text [ french ] = "Note en marge" ;
+ Text [ dutch ] = "Kanttekening" ;
+ Text [ swedish ] = "Marginalanteckning" ;
+ Text [ danish ] = "Randbemærkning" ;
+ Text [ portuguese ] = "Notas à margem" ;
+ Text [ portuguese_brazilian ] = "Marginalie" ;
+ Text[ chinese_simplified ] = "±ßÔµ";
+ Text[ russian ] = "Ìàðãèíàëèè";
+ Text[ polish ] = "Marginesy";
+ Text[ japanese ] = "–T’";
+ Text[ chinese_traditional ] = "Ãä½t";
+ Text[ arabic ] = "ãáÇÍÙÇÊ åÇãÔíÉ";
+ Text[ greek ] = "Óçìåéþóåéò óôï ðåñéèþñéï";
+ Text[ korean ] = "¿©¹é";
+ Text[ turkish ] = "Derkenar";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLFRM_WATERSIGN
+{
+ Text = "Wasserzeichen" ;
+ Text [ English ] = "Watermark" ;
+ Text [ dutch ] = "Watermerk" ;
+ Text [ english_us ] = "Watermark" ;
+ Text [ italian ] = "Filigrana" ;
+ Text [ spanish ] = "Marca de agua" ;
+ Text [ french ] = "Filigrane" ;
+ Text [ swedish ] = "Vattenmärke" ;
+ Text [ danish ] = "Vandmærke" ;
+ Text [ portuguese ] = "Marca de água" ;
+ Text [ portuguese_brazilian ] = "Wasserzeichen" ;
+ Text[ chinese_simplified ] = "ˮӡ";
+ Text[ russian ] = "Âîäÿíûå çíàêè";
+ Text[ polish ] = "Znaki wodne";
+ Text[ japanese ] = "“§‚©‚µ";
+ Text[ chinese_traditional ] = "¤ô¦L";
+ Text[ arabic ] = "ÚáÇãÉ ãÇÆíÉ";
+ Text[ greek ] = "Õäáôüóçìï";
+ Text[ korean ] = "¿öÅ͸¶Å©";
+ Text[ turkish ] = "Filigran";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLFRM_LABEL
+{
+ Text = "Etiketten" ;
+ Text [ English ] = "Labels" ;
+ Text [ norwegian ] = "Etiketter" ;
+ Text [ italian ] = "Etichette" ;
+ Text [ portuguese_brazilian ] = "Etiquetas" ;
+ Text [ portuguese ] = "Etiquetas" ;
+ Text [ finnish ] = "Tarrat" ;
+ Text [ danish ] = "Etiketter" ;
+ Text [ french ] = "Étiquettes" ;
+ Text [ swedish ] = "Etiketter" ;
+ Text [ dutch ] = "Etiketten" ;
+ Text [ spanish ] = "Etiquetas" ;
+ Text [ english_us ] = "Labels" ;
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ russian ] = "Íàêëåéêè";
+ Text[ polish ] = "Etykiety";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ chinese_traditional ] = "¶K¼Ð";
+ Text[ arabic ] = "ÈØÇÞÇÊ ÚäæäÉ";
+ Text[ greek ] = "ÅôéêÝôåò";
+ Text[ korean ] = "¶óº§";
+ Text[ turkish ] = "Etiket";
+ Text[ language_user1 ] = " ";
+};
+ String STR_POOLFRM_PRGM_FRAME
+{
+ Text = "Frame" ;
+};
+String STR_POOLFRM_PRGM_GRAPHIC
+{
+ Text = "Graphics" ;
+};
+String STR_POOLFRM_PRGM_OLE
+{
+ Text = "OLE" ;
+};
+String STR_POOLFRM_PRGM_FORMEL
+{
+ Text = "Formula" ;
+};
+String STR_POOLFRM_PRGM_MARGINAL
+{
+ Text = "Marginalia" ;
+};
+String STR_POOLFRM_PRGM_WATERSIGN
+{
+ Text = "Watermark" ;
+};
+String STR_POOLFRM_PRGM_LABEL
+{
+ Text = "Labels" ;
+};
+
+ // -----------------
+ // Vorlagen-Namen
+ // -----------------
+String STR_POOLCOLL_STANDARD
+{
+ Text = "Standard" ;
+ Text [ English ] = "Standard" ;
+ Text [ dutch ] = "Standaard" ;
+ Text [ english_us ] = "Standard" ;
+ Text [ italian ] = "Standard" ;
+ Text [ spanish ] = "Predeterminado" ;
+ Text [ french ] = "Standard" ;
+ Text [ swedish ] = "Standard" ;
+ Text [ danish ] = "Standard" ;
+ Text [ portuguese ] = "Padrão" ;
+ Text [ portuguese_brazilian ] = "Standard" ;
+ Text[ chinese_simplified ] = "±ê×¼";
+ Text[ russian ] = "Ñòàíäàðò";
+ Text[ polish ] = "Standard";
+ Text[ japanese ] = "•W€";
+ Text[ chinese_traditional ] = "¼Ð·Ç";
+ Text[ arabic ] = "ÞíÇÓí";
+ Text[ greek ] = "ÐñïåðéëïãÞ";
+ Text[ korean ] = "Ç¥ÁØ";
+ Text[ turkish ] = "Standart";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TEXT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Textkörper : Textk÷rper */
+ Text = "Textkörper" ;
+ Text [ English ] = "Text body" ;
+ Text [ english_us ] = "Text body" ;
+ Text [ italian ] = "Corpo testo" ;
+ Text [ spanish ] = "Cuerpo de texto" ;
+ Text [ french ] = "Corps de texte" ;
+ Text [ dutch ] = "Tekstblok" ;
+ Text [ swedish ] = "Brödtext" ;
+ Text [ danish ] = "Brødtekst" ;
+ Text [ portuguese ] = "Corpo do texto" ;
+ Text [ portuguese_brazilian ] = "Textkörper" ;
+ Text[ chinese_simplified ] = "ÕýÎÄ";
+ Text[ russian ] = "Îñíîâíîé òåêñò";
+ Text[ polish ] = "Obszar tekstu";
+ Text[ japanese ] = "–{•¶";
+ Text[ chinese_traditional ] = "¤º¤å";
+ Text[ arabic ] = "ÌÓã ÇáäÕ";
+ Text[ greek ] = "Óþìá êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® º»¹®";
+ Text[ turkish ] = "Metin gövdesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TEXT_IDENT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Textkörper Einzug : Textk÷rper Einzug */
+ Text = "Textkörper Einzug" ;
+ Text [ English ] = "Text body indent" ;
+ Text [ english_us ] = "First line indent" ;
+ Text [ italian ] = "Rientro del corpo testo" ;
+ Text [ spanish ] = "Sangría de primera línea" ;
+ Text [ french ] = "Alinéa" ;
+ Text [ dutch ] = "1e regel inspringen" ;
+ Text [ swedish ] = "Dra in första raden" ;
+ Text [ danish ] = "Første linjes indrykning" ;
+ Text [ portuguese ] = "Abrir parágrafo" ;
+ Text [ portuguese_brazilian ] = "Textkörper Einzug" ;
+ Text[ chinese_simplified ] = "ÕýÎÄËõ½ø";
+ Text[ russian ] = "Ïåðâàÿ ñòðîêà ñ îòñòóïîì";
+ Text[ polish ] = "Wciêcie obszaru tekstu";
+ Text[ japanese ] = "–{•¶²ÝÃÞÝÄ";
+ Text[ chinese_traditional ] = "¤º¤åÁY±Æ";
+ Text[ arabic ] = "ÅÒÇÍÉ ÌÓã ÇáäÕ";
+ Text[ greek ] = "Åóï÷Þ ðñþôçò ãñáììÞò";
+ Text[ korean ] = "ù¹ø° ÁÙ µé¿©¾²±â";
+ Text[ turkish ] = "Ýlk satýr girintisi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TEXT_NEGIDENT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Textkörper Einzug negativ : Textk÷rper Einzug negativ */
+ Text = "Textkörper Einzug negativ" ;
+ Text [ English ] = "Text body neg. indent" ;
+ Text [ english_us ] = "Hanging indent" ;
+ Text [ italian ] = "Rientro corpo del testo negativo" ;
+ Text [ spanish ] = "Sangría negativa de primera línea" ;
+ Text [ french ] = "Alinéa négatif" ;
+ Text [ dutch ] = "1e regel uitspringen" ;
+ Text [ swedish ] = "Negativt indrag av första raden" ;
+ Text [ danish ] = "Hængende indrykning" ;
+ Text [ portuguese ] = "Abrir parágrafo negativo" ;
+ Text [ portuguese_brazilian ] = "Textkörper Einzug negativ" ;
+ Text[ chinese_simplified ] = "ÕýÎÄ·´ÏòËõ½ø";
+ Text[ russian ] = "Îáðàòíûé îòñòóï";
+ Text[ polish ] = "Neg.wciêcie obszaru tekstu";
+ Text[ japanese ] = "–{•¶Ï²Å½²ÝÃÞÝÄ";
+ Text[ chinese_traditional ] = "¤º¤å¤Ï¦VÁY±Æ";
+ Text[ arabic ] = "ÅÒÇÍÉ ÌÓã äÕ ÓáÈíÉ";
+ Text[ greek ] = "ÁñíçôéêÞ åóï÷Þ óþìáôïò êåéìÝíïõ";
+ Text[ korean ] = "³»¾î¾²±â";
+ Text[ turkish ] = "Asýlý girinti";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TEXT_MOVE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Textkörper Einrückung : Textk÷rper Einr³ckung */
+ Text = "Textkörper Einrückung" ;
+ Text [ English ] = "Text body move in" ;
+ Text [ dutch ] = "Tekstblok inspringen" ;
+ Text [ english_us ] = "Text body indent" ;
+ Text [ italian ] = "Rientro corpo del testo" ;
+ Text [ spanish ] = "Cuerpo de texto con sangría" ;
+ Text [ french ] = "Retrait du corps de texte " ;
+ Text [ swedish ] = "Dra in hela stycket" ;
+ Text [ danish ] = "Brødtekst indrykning" ;
+ Text [ portuguese ] = "Avanço corpo do texto" ;
+ Text [ portuguese_brazilian ] = "Textkörper Einrückung" ;
+ Text[ chinese_simplified ] = "ÕýÎÄËõ½ø";
+ Text[ russian ] = "Îñíîâíîé òåêñò ñ îòñòóïîì";
+ Text[ polish ] = "Wysuniêcie obszaru tekstu";
+ Text[ japanese ] = "²ÝÃÞÝÄ";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¤º¤åÁY±Æ";
+ Text[ arabic ] = "ÅÒÇÍÉ ÌÓã ÇáäÕ (ÇáÓØÑ ÇáÃæá)";
+ Text[ greek ] = "Åóï÷Þ óþìáôïò êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® º»¹® µé¿©¾²±â";
+ Text[ turkish ] = "Metin gövdesi girintisi";
+};
+String STR_POOLCOLL_GREETING
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Grußformel : Gru˜formel */
+ Text = "Grußformel" ;
+ Text [ English ] = "Greetings" ;
+ Text [ dutch ] = "Aanhef" ;
+ Text [ english_us ] = "Salutation" ;
+ Text [ italian ] = "Formula di saluto" ;
+ Text [ spanish ] = "Fórmula de saludo" ;
+ Text [ french ] = "Formule finale" ;
+ Text [ swedish ] = "Hälsningsfras" ;
+ Text [ danish ] = "Sluthilsen" ;
+ Text [ portuguese ] = "Saudação" ;
+ Text [ portuguese_brazilian ] = "Grußformel" ;
+ Text[ chinese_simplified ] = "ÎʺòÓï";
+ Text[ russian ] = "Ïðèâåòñòâèå";
+ Text[ polish ] = "Pozdrowienie";
+ Text[ japanese ] = "ˆ¥ŽA•¶";
+ Text[ chinese_traditional ] = "°Ý­Ô»y";
+ Text[ arabic ] = "ÇáÊÍíÉ";
+ Text[ greek ] = "Ðñïóöþíçóç";
+ Text[ korean ] = "Àλ縻";
+ Text[ turkish ] = "Selamlama";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_SIGNATURE
+{
+ Text = "Unterschrift" ;
+ Text [ English ] = "Signature" ;
+ Text [ english_us ] = "Signature" ;
+ Text [ italian ] = "Firma" ;
+ Text [ spanish ] = "Firma" ;
+ Text [ french ] = "Signature" ;
+ Text [ dutch ] = "Ondergetekende" ;
+ Text [ swedish ] = "Signatur" ;
+ Text [ danish ] = "Underskrift" ;
+ Text [ portuguese ] = "Assinatura" ;
+ Text [ portuguese_brazilian ] = "Unterschrift" ;
+ Text[ chinese_simplified ] = "Ç©Ãû";
+ Text[ russian ] = "Ïîäïèñü";
+ Text[ polish ] = "Podpis";
+ Text[ japanese ] = "–¼";
+ Text[ chinese_traditional ] = "ñ¦W";
+ Text[ arabic ] = "ÇáÊæÞíÚ";
+ Text[ greek ] = "ÕðïãñáöÞ";
+ Text[ korean ] = "¼­¸í";
+ Text[ turkish ] = "Ýmza";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE_BASE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift : šberschrift */
+ Text = "Überschrift" ;
+ Text [ English ] = "Headline" ;
+ Text [ dutch ] = "Kop" ;
+ Text [ english_us ] = "Heading" ;
+ Text [ italian ] = "Intestazione" ;
+ Text [ spanish ] = "Encabezado" ;
+ Text [ french ] = "Titre" ;
+ Text [ swedish ] = "Överskrift" ;
+ Text [ danish ] = "Overskrift" ;
+ Text [ portuguese ] = "Título" ;
+ Text [ portuguese_brazilian ] = "Überschrift" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "Œ©o‚µ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Åðéêåöáëßäá";
+ Text[ korean ] = "Á¦¸ñ";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUMBUL_BASE
+{
+ Text = "Liste" ;
+ Text [ English ] = "List" ;
+ Text [ english_us ] = "List" ;
+ Text [ italian ] = "Elenco" ;
+ Text [ spanish ] = "Lista" ;
+ Text [ french ] = "Liste" ;
+ Text [ dutch ] = "Lijst" ;
+ Text [ swedish ] = "Lista" ;
+ Text [ danish ] = "Liste" ;
+ Text [ portuguese ] = "Lista" ;
+ Text [ portuguese_brazilian ] = "Liste" ;
+ Text[ chinese_simplified ] = "Áе¥";
+ Text[ russian ] = "Ñïèñîê";
+ Text[ polish ] = "Lista";
+ Text[ japanese ] = "ؽÄ";
+ Text[ chinese_traditional ] = "²M³æ";
+ Text[ arabic ] = "ÞÇÆãÉ";
+ Text[ greek ] = "Ëßóôá";
+ Text[ korean ] = "¸®½ºÆ®";
+ Text[ turkish ] = "Liste";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_REGISTER_BASE
+{
+ Text = "Verzeichnis" ;
+ Text [ English ] = "Register" ;
+ Text [ english_us ] = "Index" ;
+ Text [ italian ] = "Indice" ;
+ Text [ spanish ] = "Índice" ;
+ Text [ french ] = "Répertoire" ;
+ Text [ dutch ] = "Index" ;
+ Text [ swedish ] = "Förteckning" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ portuguese ] = "Índice" ;
+ Text [ portuguese_brazilian ] = "Verzeichnis" ;
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ russian ] = "Îãëàâëåíèå";
+ Text[ polish ] = "Indeks";
+ Text[ japanese ] = "õˆø";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÝåÑÓ";
+ Text[ greek ] = "ÅõñåôÞñéï";
+ Text[ korean ] = "»öÀÎ";
+ Text[ turkish ] = "Dizin";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_CONFRONTATION
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Gegenüberstellung : Gegen³berstellung */
+ Text = "Gegenüberstellung" ;
+ Text [ English ] = "Confrontation" ;
+ Text [ dutch ] = "Tegenoverstelling" ;
+ Text [ english_us ] = "List Indent" ;
+ Text [ italian ] = "Confronto" ;
+ Text [ spanish ] = "Confrontación" ;
+ Text [ french ] = "Confrontation" ;
+ Text [ swedish ] = "Indrag lista" ;
+ Text [ danish ] = "Opstillingsindrykning" ;
+ Text [ portuguese ] = "Confrontar" ;
+ Text [ portuguese_brazilian ] = "Gegenüberstellung" ;
+ Text[ chinese_simplified ] = "Ëõ½ø";
+ Text[ russian ] = "Îòñòóïû";
+ Text[ polish ] = "Konfrontacja";
+ Text[ japanese ] = "²ÝÃÞÝÄ";
+ Text[ chinese_traditional ] = "ÁY±Æ";
+ Text[ arabic ] = "ãæÇÌåÉ";
+ Text[ language_user1 ] = " ";
+ Text[ greek ] = "ÁíôéðáñáâïëÞ";
+ Text[ korean ] = "¸®½ºÆ® µé¿©½º±â";
+ Text[ turkish ] = "Karþýlaþtýrma";
+};
+String STR_POOLCOLL_MARGINAL
+{
+ Text = "Marginalie" ;
+ Text [ English ] = "Marginalia" ;
+ Text [ english_us ] = "Marginalia" ;
+ Text [ italian ] = "Nota in margine" ;
+ Text [ spanish ] = "Nota al margen" ;
+ Text [ french ] = "Note en marge" ;
+ Text [ dutch ] = "Kanttekening" ;
+ Text [ swedish ] = "Marginalanteckning" ;
+ Text [ danish ] = "Randbemærkning" ;
+ Text [ portuguese ] = "Notas à margem" ;
+ Text [ portuguese_brazilian ] = "Marginalie" ;
+ Text[ chinese_simplified ] = "ÅÔ×¢";
+ Text[ russian ] = "Ìàðãèíàëèè";
+ Text[ polish ] = "Marginesy";
+ Text[ japanese ] = "–T’";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "®Çª`";
+ Text[ arabic ] = "ãáÇÍÙÇÊ åÇãÔíÉ";
+ Text[ greek ] = "Óçìåéþóåéò óôï ðåñéèþñéï";
+ Text[ korean ] = "¿©¹é";
+ Text[ turkish ] = "Derkenar";
+};
+String STR_POOLCOLL_HEADLINE1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 1 : šberschrift 1 */
+ Text = "Überschrift 1" ;
+ Text [ English ] = "Headline 1" ;
+ Text [ dutch ] = "Kop 1" ;
+ Text [ english_us ] = "Heading 1" ;
+ Text [ italian ] = "Intestazione 1" ;
+ Text [ spanish ] = "Encabezado 1" ;
+ Text [ french ] = "Titre 1" ;
+ Text [ swedish ] = "Överskrift 1" ;
+ Text [ danish ] = "Overskrift 1" ;
+ Text [ portuguese ] = "Título 1" ;
+ Text [ portuguese_brazilian ] = "Überschrift 1" ;
+ Text[ chinese_simplified ] = "±êÌâ 1";
+ Text[ russian ] = "Çàãîëîâîê 1";
+ Text[ polish ] = "Tytu³ 1";
+ Text[ japanese ] = "Ωoⵠ1";
+ Text[ chinese_traditional ] = "¼ÐÃD 1";
+ Text[ arabic ] = "ÇáÚäæÇä 1";
+ Text[ greek ] = "Åðéêåöáëßäá 1";
+ Text[ korean ] = "Á¦¸ñ 1";
+ Text[ turkish ] = "Baþlýk 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 2 : šberschrift 2 */
+ Text = "Überschrift 2" ;
+ Text [ English ] = "Headline 2" ;
+ Text [ english_us ] = "Heading 2" ;
+ Text [ italian ] = "Intestazione 2" ;
+ Text [ spanish ] = "Encabezado 2" ;
+ Text [ french ] = "Titre 2" ;
+ Text [ dutch ] = "Kop 2" ;
+ Text [ swedish ] = "Överskrift 2" ;
+ Text [ danish ] = "Overskrift 2" ;
+ Text [ portuguese_brazilian ] = "Überschrift 2" ;
+ Text [ portuguese ] = "Título 2" ;
+ Text[ chinese_simplified ] = "±êÌâ 2";
+ Text[ russian ] = "Çàãîëîâîê 2";
+ Text[ polish ] = "Tytu³ 2";
+ Text[ japanese ] = "Ωoⵠ2";
+ Text[ chinese_traditional ] = "¼ÐÃD 2";
+ Text[ arabic ] = "ÇáÚäæÇä 2";
+ Text[ greek ] = "Åðéêåöáëßäá 2";
+ Text[ korean ] = "Á¦¸ñ 2";
+ Text[ turkish ] = "Baþlýk 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE3
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 3 : šberschrift 3 */
+ Text = "Überschrift 3" ;
+ Text [ English ] = "Headline 3" ;
+ Text [ english_us ] = "Heading 3" ;
+ Text [ italian ] = "Intestazione 3" ;
+ Text [ spanish ] = "Encabezado 3" ;
+ Text [ french ] = "Titre 3" ;
+ Text [ dutch ] = "Kop 3" ;
+ Text [ swedish ] = "Överskrift 3" ;
+ Text [ danish ] = "Overskrift 3" ;
+ Text [ portuguese_brazilian ] = "Überschrift 3" ;
+ Text [ portuguese ] = "Título 3" ;
+ Text[ chinese_simplified ] = "±êÌâ 3";
+ Text[ russian ] = "Çàãîëîâîê 3";
+ Text[ polish ] = "Tytu³ 3";
+ Text[ japanese ] = "Ωoⵠ3";
+ Text[ chinese_traditional ] = "¼ÐÃD 3";
+ Text[ arabic ] = "ÇáÚäæÇä 3";
+ Text[ greek ] = "Åðéêåöáëßäá 3";
+ Text[ korean ] = "Á¦¸ñ 3";
+ Text[ turkish ] = "Baþlýk 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE4
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 4 : šberschrift 4 */
+ Text = "Überschrift 4" ;
+ Text [ English ] = "Headline 4" ;
+ Text [ english_us ] = "Heading 4" ;
+ Text [ italian ] = "Intestazione 4" ;
+ Text [ spanish ] = "Encabezado 4" ;
+ Text [ french ] = "Titre 4" ;
+ Text [ dutch ] = "Kop 4" ;
+ Text [ swedish ] = "Överskrift 4" ;
+ Text [ danish ] = "Overskrift 4" ;
+ Text [ portuguese_brazilian ] = "Überschrift 4" ;
+ Text [ portuguese ] = "Título 4" ;
+ Text[ chinese_simplified ] = "±êÌâ 4";
+ Text[ russian ] = "Çàãîëîâîê 4";
+ Text[ polish ] = "Tytu³ 4";
+ Text[ japanese ] = "Ωoⵠ4";
+ Text[ chinese_traditional ] = "¼ÐÃD 4";
+ Text[ arabic ] = "ÇáÚäæÇä 4";
+ Text[ greek ] = "Åðéêåöáëßäá 4";
+ Text[ korean ] = "Á¦¸ñ 4";
+ Text[ turkish ] = "Baþlýk 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE5
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 5 : šberschrift 5 */
+ Text = "Überschrift 5" ;
+ Text [ English ] = "Headline 5" ;
+ Text [ english_us ] = "Heading 5" ;
+ Text [ italian ] = "Intestazione 5" ;
+ Text [ spanish ] = "Encabezado 5" ;
+ Text [ french ] = "Titre 5" ;
+ Text [ dutch ] = "Kop 5" ;
+ Text [ swedish ] = "Överskrift 5" ;
+ Text [ danish ] = "Overskrift 5" ;
+ Text [ portuguese_brazilian ] = "Überschrift 5" ;
+ Text [ portuguese ] = "Título 5" ;
+ Text[ chinese_simplified ] = "±êÌâ 5";
+ Text[ russian ] = "Çàãîëîâîê 5";
+ Text[ polish ] = "Tytu³ 5";
+ Text[ japanese ] = "Ωoⵠ5";
+ Text[ chinese_traditional ] = "¼ÐÃD 5";
+ Text[ arabic ] = "ÇáÚäæÇä 5";
+ Text[ greek ] = "Åðéêåöáëßäá 5";
+ Text[ korean ] = "Á¦¸ñ 5";
+ Text[ turkish ] = "Baþlýk 5";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE6
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 5 : šberschrift 5 */
+ Text = "Überschrift 6" ;
+ Text [ English ] = "Headline 6" ;
+ Text [ english_us ] = "Heading 6" ;
+ Text [ italian ] = "Intestazione 6" ;
+ Text [ spanish ] = "Encabezado 6" ;
+ Text [ french ] = "Titre 6" ;
+ Text [ dutch ] = "Kop 6" ;
+ Text [ swedish ] = "Överskrift 6" ;
+ Text [ danish ] = "Overskrift 6" ;
+ Text [ portuguese_brazilian ] = "Überschrift 6" ;
+ Text [ portuguese ] = "Título 6" ;
+ Text[ chinese_simplified ] = "±êÌâ 6";
+ Text[ russian ] = "Çàãîëîâîê 6";
+ Text[ polish ] = "Tytu³ 6";
+ Text[ japanese ] = "Ωoⵠ6";
+ Text[ chinese_traditional ] = "¼ÐÃD 6";
+ Text[ arabic ] = "ÇáÚäæÇä 6";
+ Text[ greek ] = "Åðéêåöáëßäá 6";
+ Text[ korean ] = "Á¦¸ñ 6";
+ Text[ turkish ] = "Baþlýk 6";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE7
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 7 : šberschrift 7 */
+ Text = "Überschrift 7" ;
+ Text [ English ] = "Headline 7" ;
+ Text [ english_us ] = "Heading 7" ;
+ Text [ italian ] = "Intestazione 7" ;
+ Text [ spanish ] = "Encabezado 7" ;
+ Text [ french ] = "Titre 7" ;
+ Text [ dutch ] = "Kop 7" ;
+ Text [ swedish ] = "Överskrift 7" ;
+ Text [ danish ] = "Overskrift 7" ;
+ Text [ portuguese_brazilian ] = "Überschrift 7" ;
+ Text [ portuguese ] = "Título 7" ;
+ Text[ chinese_simplified ] = "±êÌâ 7";
+ Text[ russian ] = "Çàãîëîâîê 7";
+ Text[ polish ] = "Tytu³ 7";
+ Text[ japanese ] = "Ωoⵠ7";
+ Text[ chinese_traditional ] = "¼ÐÃD 7";
+ Text[ arabic ] = "ÇáÚäæÇä 7";
+ Text[ greek ] = "Åðéêåöáëßäá 7";
+ Text[ korean ] = "Á¦¸ñ 7";
+ Text[ turkish ] = "Baþlýk 7";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE8
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 8 : šberschrift 8 */
+ Text = "Überschrift 8" ;
+ Text [ English ] = "Headline 8" ;
+ Text [ english_us ] = "Heading 8" ;
+ Text [ italian ] = "Intestazione 8" ;
+ Text [ spanish ] = "Encabezado 8" ;
+ Text [ french ] = "Titre 8" ;
+ Text [ dutch ] = "Kop 8" ;
+ Text [ swedish ] = "Överskrift 8" ;
+ Text [ danish ] = "Overskrift 8" ;
+ Text [ portuguese_brazilian ] = "Überschrift 8" ;
+ Text [ portuguese ] = "Título 8" ;
+ Text[ chinese_simplified ] = "±êÌâ 8";
+ Text[ russian ] = "Çàãîëîâîê 8";
+ Text[ polish ] = "Tytu³ 8";
+ Text[ japanese ] = "Ωoⵠ8";
+ Text[ chinese_traditional ] = "¼ÐÃD 8";
+ Text[ arabic ] = "ÇáÚäæÇä 8";
+ Text[ greek ] = "Åðéêåöáëßäá 8";
+ Text[ korean ] = "Á¦¸ñ 8";
+ Text[ turkish ] = "Baþlýk 8";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE9
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 9 : šberschrift 9 */
+ Text = "Überschrift 9" ;
+ Text [ English ] = "Headline 9" ;
+ Text [ english_us ] = "Heading 9" ;
+ Text [ italian ] = "Intestazione 9" ;
+ Text [ spanish ] = "Encabezado 9" ;
+ Text [ french ] = "Titre 9" ;
+ Text [ dutch ] = "Kop 9" ;
+ Text [ swedish ] = "Överskrift 9" ;
+ Text [ danish ] = "Overskrift 9" ;
+ Text [ portuguese_brazilian ] = "Überschrift 9" ;
+ Text [ portuguese ] = "Título 9" ;
+ Text[ chinese_simplified ] = "±êÌâ 9";
+ Text[ russian ] = "Çàãîëîâîê 9";
+ Text[ polish ] = "Tytu³ 9";
+ Text[ japanese ] = "Ωoⵠ9";
+ Text[ chinese_traditional ] = "¼ÐÃD 9";
+ Text[ arabic ] = "ÇáÚäæÇä 9";
+ Text[ greek ] = "Åðéêåöáëßäá 9";
+ Text[ korean ] = "Á¦¸ñ9";
+ Text[ turkish ] = "Baþlýk 9";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADLINE10
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift 10 : šberschrift 10 */
+ Text = "Überschrift 10" ;
+ Text [ English ] = "Headline 10" ;
+ Text [ english_us ] = "Heading 10" ;
+ Text [ italian ] = "Intestazione 10" ;
+ Text [ spanish ] = "Encabezado 10" ;
+ Text [ french ] = "Titre 10" ;
+ Text [ dutch ] = "Kop 10" ;
+ Text [ swedish ] = "Överskrift 10" ;
+ Text [ danish ] = "Overskrift 10" ;
+ Text [ portuguese_brazilian ] = "Überschrift 10" ;
+ Text [ portuguese ] = "Título 10" ;
+ Text[ chinese_simplified ] = "±êÌâ 10";
+ Text[ russian ] = "Çàãîëîâîê 10";
+ Text[ polish ] = "Tytu³ 10";
+ Text[ japanese ] = "Ωoⵠ10";
+ Text[ chinese_traditional ] = "¼ÐÃD 10";
+ Text[ arabic ] = "ÇáÚäæÇä 10";
+ Text[ greek ] = "Åðéêåöáëßäá 10";
+ Text[ korean ] = "Á¦¸ñ 10";
+ Text[ turkish ] = "Baþlýk 10";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL1S
+{
+ Text = "Nummerierung 1 Anfang" ;
+ Text [ English ] = "Numbering 1 start" ;
+ Text [ english_us ] = "Numbering 1 Start" ;
+ Text [ italian ] = "Numerazione 1 inizio" ;
+ Text [ spanish ] = "Numeración 1 inicio" ;
+ Text [ french ] = "Numérotation 1 début" ;
+ Text [ dutch ] = "Nummering 1 begin" ;
+ Text [ swedish ] = "Numrering 1 start" ;
+ Text [ danish ] = "Nummerering 1 start" ;
+ Text [ portuguese ] = "Numeração 1 Início" ;
+ Text [ portuguese_brazilian ] = "Numerierung 1 Anfang" ;
+ Text[ chinese_simplified ] = "±àºÅ 1 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî íóìåðàöèè 1";
+ Text[ polish ] = "Pocz¹tek numeracji 1";
+ Text[ japanese ] = "”Ô†•t‚¯ 1 Žn‚ß";
+ Text[ chinese_traditional ] = "½s¸¹ 1 ¶}ºÝ";
+ Text[ arabic ] = "ÇáÊÑÞíã 1 ÈÏÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 1 Áñ÷Þ";
+ Text[ korean ] = "¹øÈ£ 1 ½ÃÀÛ";
+ Text[ turkish ] = "Numaralama 1 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL1
+{
+ Text = "Nummerierung 1" ;
+ Text [ English ] = "Numbering 1" ;
+ Text [ dutch ] = "Nummering 1" ;
+ Text [ english_us ] = "Numbering 1" ;
+ Text [ italian ] = "Numerazione 1" ;
+ Text [ spanish ] = "Numeración 1" ;
+ Text [ french ] = "Numérotation 1" ;
+ Text [ swedish ] = "Numrering 1" ;
+ Text [ danish ] = "Nummerering 1" ;
+ Text [ portuguese ] = "Numeração 1" ;
+ Text [ portuguese_brazilian ] = "Numerierung 1" ;
+ Text[ chinese_simplified ] = "񅧏 1";
+ Text[ russian ] = "Íóìåðàöèÿ 1";
+ Text[ polish ] = "Numeracja 1";
+ Text[ japanese ] = "”Ô†•t‚¯ 1";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "½s¸¹ 1";
+ Text[ arabic ] = "ÇáÊÑÞíã 1";
+ Text[ greek ] = "Áñßèìçóç 1";
+ Text[ korean ] = "¹øÈ£1";
+ Text[ turkish ] = "Numaralama 1";
+};
+String STR_POOLCOLL_NUM_LEVEL1E
+{
+ Text = "Nummerierung 1 Ende" ;
+ Text [ English ] = "Numbering 1 end" ;
+ Text [ english_us ] = "Numbering 1 End" ;
+ Text [ italian ] = "Numerazione 1 fine" ;
+ Text [ spanish ] = "Numeración 1 fin" ;
+ Text [ french ] = "Numérotation 1 fin" ;
+ Text [ dutch ] = "Nummering 1 einde" ;
+ Text [ swedish ] = "Numrering 1 slut" ;
+ Text [ danish ] = "Nummerering 1 slut" ;
+ Text [ portuguese ] = "Numeração 1 Fim" ;
+ Text [ portuguese_brazilian ] = "Numerierung 1 Ende" ;
+ Text[ chinese_simplified ] = "±àºÅ 1 ½áβ";
+ Text[ russian ] = "Êîíåö íóìåðàöèè 1";
+ Text[ polish ] = "Koniec numeracji 1";
+ Text[ japanese ] = "”Ô†•t‚¯ 1 I‚è";
+ Text[ chinese_traditional ] = "½s¸¹ 1 µ²§À";
+ Text[ arabic ] = "ÇáÊÑÞíã 1 äåÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 1 ÔÝëïò";
+ Text[ korean ] = "¹øÈ£ 1 Á¾·á";
+ Text[ turkish ] = "Numaralama 1 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_NONUM1
+{
+ Text = "Nummerierung 1 Fortsetzung" ;
+ Text [ English ] = "Numbering 1 next" ;
+ Text [ english_us ] = "Numbering 1 Cont." ;
+ Text [ italian ] = "Numerazione 1 succ." ;
+ Text [ spanish ] = "Numeración 1 continuación" ;
+ Text [ french ] = "Numérotation 1 suite" ;
+ Text [ dutch ] = "Nummering 1 voortzetting" ;
+ Text [ swedish ] = "Numrering 1 fortsättning" ;
+ Text [ danish ] = "Nummerering 1 fortsættelse" ;
+ Text [ portuguese ] = "Numeração 1 Continuação" ;
+ Text [ portuguese_brazilian ] = "Numerierung 1 Fortsetzung" ;
+ Text[ chinese_simplified ] = "±àºÅ 1 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå íóìåðàöèè 1";
+ Text[ polish ] = "Kontynuacja numeracji 1";
+ Text[ japanese ] = "”Ô†•t‚¯ 1 ‘±‚«";
+ Text[ chinese_traditional ] = "½s¸¹ 1 Ä~Äò";
+ Text[ arabic ] = "ÇáÊÑÞíã 1 ãÊÇÈÚÉ";
+ Text[ greek ] = "Áñßèìçóç 1 ÓõíÝ÷åéá";
+ Text[ korean ] = "¹øÈ£ 1 °è¼Ó";
+ Text[ turkish ] = "Numaralama 1 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL2S
+{
+ Text = "Nummerierung 2 Anfang" ;
+ Text [ English ] = "Numbering 2 start" ;
+ Text [ dutch ] = "Nummering 2 begin" ;
+ Text [ english_us ] = "Numbering 2 Start" ;
+ Text [ italian ] = "Numerazione 2 inizio" ;
+ Text [ spanish ] = "Numeración 2 inicio" ;
+ Text [ french ] = "Numérotation 2 début" ;
+ Text [ swedish ] = "Numrering 2 start" ;
+ Text [ danish ] = "Nummerering 2 start" ;
+ Text [ portuguese ] = "Numeração 2 Início" ;
+ Text [ portuguese_brazilian ] = "Numerierung 2 Anfang" ;
+ Text[ chinese_simplified ] = "±àºÅ 2 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî íóìåðàöèè 2";
+ Text[ polish ] = "Pocz¹tek numeracji 2 ";
+ Text[ japanese ] = "”Ô†•t‚¯ 2 Žn‚ß";
+ Text[ chinese_traditional ] = "½s¸¹ 2 ¶}ºÝ";
+ Text[ arabic ] = "ÇáÊÑÞíã 2 ÈÏÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 2 Áñ÷Þ";
+ Text[ korean ] = "¹øÈ£ 2 ½ÃÀÛ";
+ Text[ turkish ] = "Numaralama 2 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL2
+{
+ Text = "Nummerierung 2" ;
+ Text [ English ] = "Numbering 2" ;
+ Text [ dutch ] = "Nummering 2" ;
+ Text [ english_us ] = "Numbering 2" ;
+ Text [ italian ] = "Numerazione 2" ;
+ Text [ spanish ] = "Numeración 2" ;
+ Text [ french ] = "Numérotation 2" ;
+ Text [ swedish ] = "Numrering 2" ;
+ Text [ danish ] = "Nummerering 2" ;
+ Text [ portuguese ] = "Numeração 2" ;
+ Text [ portuguese_brazilian ] = "Numerierung 2" ;
+ Text[ chinese_simplified ] = "񅧏 2";
+ Text[ russian ] = "Íóìåðàöèÿ 2";
+ Text[ polish ] = "Numeracja 2";
+ Text[ japanese ] = "”Ô†•t‚¯ 2";
+ Text[ chinese_traditional ] = "½s¸¹ 2";
+ Text[ arabic ] = "ÇáÊÑÞíã 2";
+ Text[ greek ] = "Áñßèìçóç 2";
+ Text[ korean ] = "¹øÈ£2";
+ Text[ turkish ] = "Numaralama 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL2E
+{
+ Text = "Nummerierung 2 Ende" ;
+ Text [ English ] = "Numbering 2 end" ;
+ Text [ english_us ] = "Numbering 2 End" ;
+ Text [ italian ] = "Numerazione 2 fine" ;
+ Text [ spanish ] = "Numeración 2 fin" ;
+ Text [ french ] = "Numérotation 2 fin" ;
+ Text [ dutch ] = "Nummering 2 einde" ;
+ Text [ swedish ] = "Numrering 2 slut" ;
+ Text [ danish ] = "Nummerering 2 slut" ;
+ Text [ portuguese ] = "Numeração 2 Fim" ;
+ Text [ portuguese_brazilian ] = "Numerierung 2 Ende" ;
+ Text[ chinese_simplified ] = "±àºÅ 2 ½áβ";
+ Text[ russian ] = "Êîíåö íóìåðàöèè 2";
+ Text[ polish ] = "Koniec numeracji 2 ";
+ Text[ japanese ] = "”Ô†•t‚¯ 2 I‚è";
+ Text[ chinese_traditional ] = "½s¸¹ 2 µ²§À";
+ Text[ arabic ] = "ÇáÊÑÞíã 2 äåÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 2 ÔÝëïò";
+ Text[ korean ] = "¹øÈ£ 2 Á¾·á";
+ Text[ turkish ] = "Numaralama 2 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_NONUM2
+{
+ Text = "Nummerierung 2 Fortsetzung" ;
+ Text [ English ] = "Numbering 2 next" ;
+ Text [ english_us ] = "Numbering 2 Cont." ;
+ Text [ italian ] = "Numerazione 2 succ." ;
+ Text [ spanish ] = "Numeración 2 continuación" ;
+ Text [ french ] = "Numérotation 2 suite" ;
+ Text [ dutch ] = "Nummering 2 voortzetting" ;
+ Text [ swedish ] = "Numrering 2 fortsättning" ;
+ Text [ danish ] = "Nummerering 2 fortsættelse" ;
+ Text [ portuguese ] = "Numeração 2 Continuação" ;
+ Text [ portuguese_brazilian ] = "Numerierung 2 Fortsetzung" ;
+ Text[ chinese_simplified ] = "±àºÅ 2 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå íóìåðàöèè 2";
+ Text[ polish ] = "Kontynuacja numeracji 2";
+ Text[ japanese ] = "”Ô†•t‚¯ 2 ‘±‚«";
+ Text[ chinese_traditional ] = "½s¸¹ 2 Ä~Äò";
+ Text[ arabic ] = "ÇáÊÑÞíã 2 ãÊÇÈÚÉ";
+ Text[ greek ] = "Áñßèìçóç 2 ÓõíÝ÷åéá";
+ Text[ korean ] = "¹øÈ£ 2 °è¼Ó";
+ Text[ turkish ] = "Numaralama 2 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL3S
+{
+ Text = "Nummerierung 3 Anfang" ;
+ Text [ English ] = "Numbering 3 start" ;
+ Text [ dutch ] = "Nummering 3 begin" ;
+ Text [ english_us ] = "Numbering 3 Start" ;
+ Text [ italian ] = "Numerazione 3 inizio" ;
+ Text [ spanish ] = "Numeración 3 inicio" ;
+ Text [ french ] = "Numérotation 3 début" ;
+ Text [ swedish ] = "Numrering 3 start" ;
+ Text [ danish ] = "Nummerering 3 start" ;
+ Text [ portuguese ] = "Numeração 3 Início" ;
+ Text [ portuguese_brazilian ] = "Numerierung 3 Anfang" ;
+ Text[ chinese_simplified ] = "±àºÅ 3 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî íóìåðàöèè 3";
+ Text[ polish ] = "Pocz¹tek numeracji 3 ";
+ Text[ japanese ] = "”Ô†•t‚¯ 3 Žn‚ß";
+ Text[ chinese_traditional ] = "½s¸¹ 3 ¶}ºÝ";
+ Text[ arabic ] = "ÇáÊÑÞíã 3 ÈÏÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 3 Áñ÷Þ";
+ Text[ korean ] = "¹øÈ£ 3 ½ÃÀÛ";
+ Text[ turkish ] = "Numaralama 3 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL3
+{
+ Text = "Nummerierung 3" ;
+ Text [ English ] = "Numbering 3" ;
+ Text [ dutch ] = "Nummering 3" ;
+ Text [ english_us ] = "Numbering 3" ;
+ Text [ italian ] = "Numerazione 3" ;
+ Text [ spanish ] = "Numeración 3" ;
+ Text [ french ] = "Numérotation 3" ;
+ Text [ swedish ] = "Numrering 3" ;
+ Text [ danish ] = "Nummerering 3" ;
+ Text [ portuguese ] = "Numeração 3" ;
+ Text [ portuguese_brazilian ] = "Numerierung 3" ;
+ Text[ chinese_simplified ] = "񅧏 3";
+ Text[ russian ] = "Íóìåðàöèÿ 3";
+ Text[ polish ] = "Numeracja 3";
+ Text[ japanese ] = "”Ô†•t‚¯ 3";
+ Text[ chinese_traditional ] = "½s¸¹ 3";
+ Text[ arabic ] = "ÇáÊÑÞíã 3";
+ Text[ greek ] = "Áñßèìçóç 3";
+ Text[ korean ] = "¹øÈ£ 3";
+ Text[ turkish ] = "Numaralama 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL3E
+{
+ Text = "Nummerierung 3 Ende" ;
+ Text [ English ] = "Numbering 3 end" ;
+ Text [ english_us ] = "Numbering 3 End" ;
+ Text [ italian ] = "Numerazione 3 fine" ;
+ Text [ spanish ] = "Numeración 3 fin" ;
+ Text [ french ] = "Numérotation 3 fin" ;
+ Text [ dutch ] = "Nummering 3 einde" ;
+ Text [ swedish ] = "Numrering 3 slut" ;
+ Text [ danish ] = "Nummerering 3 slut" ;
+ Text [ portuguese ] = "Numeração 3 Fim" ;
+ Text [ portuguese_brazilian ] = "Numerierung 3 Ende" ;
+ Text[ chinese_simplified ] = "±àºÅ 3 ½áβ";
+ Text[ russian ] = "Êîíåö íóìåðàöèè 3";
+ Text[ polish ] = "Koniec numeracji 3 ";
+ Text[ japanese ] = "”Ô†•t‚¯ 3 I‚è";
+ Text[ chinese_traditional ] = "½s¸¹ 3 µ²§À";
+ Text[ arabic ] = "ÇáÊÑÞíã 3 äåÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 3 ÔÝëïò";
+ Text[ korean ] = "¹øÈ£ 3 Á¾·á";
+ Text[ turkish ] = "Numaralama 3 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_NONUM3
+{
+ Text = "Nummerierung 3 Fortsetzung" ;
+ Text [ English ] = "Numbering 3 next" ;
+ Text [ english_us ] = "Numbering 3 Cont." ;
+ Text [ italian ] = "Numerazione 3 succ." ;
+ Text [ spanish ] = "Numeración 3 continuación" ;
+ Text [ french ] = "Numérotation 3 suite" ;
+ Text [ dutch ] = "Nummering 3 voortzetting" ;
+ Text [ swedish ] = "Numrering 3 fortsättning" ;
+ Text [ danish ] = "Nummerering 3 fortsættelse" ;
+ Text [ portuguese ] = "Numeração 3 Continuação" ;
+ Text [ portuguese_brazilian ] = "Numerierung 3 Fortsetzung" ;
+ Text[ chinese_simplified ] = "±àºÅ 3 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå íóìåðàöèè 3";
+ Text[ polish ] = "Kontynuacja numeracji 3";
+ Text[ japanese ] = "”Ô†•t‚¯ 3 ‘±‚«";
+ Text[ chinese_traditional ] = "½s¸¹ 3 Ä~Äò";
+ Text[ arabic ] = "ÇáÊÑÞíã 3 ãÊÇÈÚÉ";
+ Text[ greek ] = "Áñßèìçóç 3 ÓõíÝ÷åéá";
+ Text[ korean ] = "¹øÈ£ 3 °è¼Ó";
+ Text[ turkish ] = "Numaralama 3 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL4S
+{
+ Text = "Nummerierung 4 Anfang" ;
+ Text [ English ] = "Numbering 4 start" ;
+ Text [ dutch ] = "Nummering 4 begin" ;
+ Text [ english_us ] = "Numbering 4 Start" ;
+ Text [ italian ] = "Numerazione 4 inizio" ;
+ Text [ spanish ] = "Numeración 4 inicio" ;
+ Text [ french ] = "Numérotation 4 début" ;
+ Text [ swedish ] = "Numrering 4 start" ;
+ Text [ danish ] = "Nummerering 4 start" ;
+ Text [ portuguese ] = "Numeração 4 Início" ;
+ Text [ portuguese_brazilian ] = "Numerierung 4 Anfang" ;
+ Text[ chinese_simplified ] = "±àºÅ 4 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî íóìåðàöèè 4";
+ Text[ polish ] = "Pocz¹tek numeracji 4";
+ Text[ japanese ] = "”Ô†•t‚¯ 4 Žn‚ß";
+ Text[ chinese_traditional ] = "½s¸¹ 4 ¶}ºÝ";
+ Text[ arabic ] = "ÇáÊÑÞíã 4 ÈÏÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 4 Áñ÷Þ";
+ Text[ korean ] = "¹øÈ£ 4 ½ÃÀÛ";
+ Text[ turkish ] = "Numaralama 4 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL4
+{
+ Text = "Nummerierung 4" ;
+ Text [ English ] = "Numbering 4" ;
+ Text [ dutch ] = "Nummering 4" ;
+ Text [ english_us ] = "Numbering 4" ;
+ Text [ italian ] = "Numerazione 4" ;
+ Text [ spanish ] = "Numeración 4" ;
+ Text [ french ] = "Numérotation 4" ;
+ Text [ swedish ] = "Numrering 4" ;
+ Text [ danish ] = "Nummerering 4" ;
+ Text [ portuguese ] = "Numeração 4" ;
+ Text [ portuguese_brazilian ] = "Numerierung 4" ;
+ Text[ chinese_simplified ] = "񅧏 4";
+ Text[ russian ] = "Íóìåðàöèÿ 4";
+ Text[ polish ] = "Numeracja 4";
+ Text[ japanese ] = "”Ô†•t‚¯ 4";
+ Text[ chinese_traditional ] = "½s¸¹ 4";
+ Text[ arabic ] = "ÇáÊÑÞíã 4";
+ Text[ greek ] = "Áñßèìçóç 4";
+ Text[ korean ] = "¹øÈ£ 4";
+ Text[ turkish ] = "Numaralama 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL4E
+{
+ Text = "Nummerierung 4 Ende" ;
+ Text [ English ] = "Numbering 4 end" ;
+ Text [ english_us ] = "Numbering 4 End" ;
+ Text [ italian ] = "Numerazione 4 fine" ;
+ Text [ spanish ] = "Numeración 4 fin" ;
+ Text [ french ] = "Numérotation 4 fin" ;
+ Text [ dutch ] = "Nummering 4 einde" ;
+ Text [ swedish ] = "Numrering 4 slut" ;
+ Text [ danish ] = "Nummerering 4 slut" ;
+ Text [ portuguese ] = "Numeração 4 Fim" ;
+ Text [ portuguese_brazilian ] = "Numerierung 4 Ende" ;
+ Text[ chinese_simplified ] = "±àºÅ 4 ½áβ";
+ Text[ russian ] = "Êîíåö íóìåðàöèè 4";
+ Text[ polish ] = "Koniec numeracji 4";
+ Text[ japanese ] = "”Ô†•t‚¯ 4 I‚è";
+ Text[ chinese_traditional ] = "½s¸¹ 4 µ²§À";
+ Text[ arabic ] = "ÇáÊÑÞíã 4 äåÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 4 ÔÝëïò";
+ Text[ korean ] = "¹øÈ£ 4 Á¾·á";
+ Text[ turkish ] = "Numaralama 4 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_NONUM4
+{
+ Text = "Nummerierung 4 Fortsetzung" ;
+ Text [ English ] = "Numbering 4 next" ;
+ Text [ english_us ] = "Numbering 4 Cont." ;
+ Text [ italian ] = "Numerazione 4 succ." ;
+ Text [ spanish ] = "Numeración 4 continuación" ;
+ Text [ french ] = "Numérotation 4 suite" ;
+ Text [ dutch ] = "Nummering 4 voortzetting" ;
+ Text [ swedish ] = "Numrering 4 fortsättning" ;
+ Text [ danish ] = "Nummerering 4 fortsættelse" ;
+ Text [ portuguese ] = "Numeração 4 Continuação" ;
+ Text [ portuguese_brazilian ] = "Numerierung 4 Fortsetzung" ;
+ Text[ chinese_simplified ] = "±àºÅ 4 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå íóìåðàöèè 4";
+ Text[ polish ] = "Kontynuacja numeracji 4";
+ Text[ japanese ] = "”Ô†•t‚¯ 4 ‘±‚«";
+ Text[ chinese_traditional ] = "½s¸¹ 4 Ä~Äò";
+ Text[ arabic ] = "ÇáÊÑÞíã 4 ãÊÇÈÚÉ";
+ Text[ greek ] = "Áñßèìçóç 4 ÓõíÝ÷åéá";
+ Text[ korean ] = "¹øÈ£ 4 °è¼Ó";
+ Text[ turkish ] = "Numaralama 4 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL5S
+{
+ Text = "Nummerierung 5 Anfang" ;
+ Text [ English ] = "Numbering 5 start" ;
+ Text [ dutch ] = "Nummering 5 begin" ;
+ Text [ english_us ] = "Numbering 5 Start" ;
+ Text [ italian ] = "Numerazione 5 inizio" ;
+ Text [ spanish ] = "Numeración 5 inicio" ;
+ Text [ french ] = "Numérotation 5 début" ;
+ Text [ swedish ] = "Numrering 5 start" ;
+ Text [ danish ] = "Nummerering 5 start" ;
+ Text [ portuguese ] = "Numeração 5 Início" ;
+ Text [ portuguese_brazilian ] = "Numerierung 5 Anfang" ;
+ Text[ chinese_simplified ] = "±àºÅ 5 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî íóìåðàöèè 5";
+ Text[ polish ] = "Pocz¹tek numeracji 5";
+ Text[ japanese ] = "”Ô†•t‚¯ 5 Žn‚ß";
+ Text[ chinese_traditional ] = "½s¸¹ 5 ¶}ºÝ";
+ Text[ arabic ] = "ÇáÊÑÞíã 5 ÈÏÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 5 Áñ÷Þ";
+ Text[ korean ] = "¹øÈ£ 5 ½ÃÀÛ";
+ Text[ turkish ] = "Numaralama 5 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL5
+{
+ Text = "Nummerierung 5" ;
+ Text [ English ] = "Numbering 5" ;
+ Text [ dutch ] = "Nummering 5" ;
+ Text [ english_us ] = "Numbering 5" ;
+ Text [ italian ] = "Numerazione 5" ;
+ Text [ spanish ] = "Numeración 5" ;
+ Text [ french ] = "Numérotation 5" ;
+ Text [ swedish ] = "Numrering 5" ;
+ Text [ danish ] = "Nummerering 5" ;
+ Text [ portuguese ] = "Numeração 5" ;
+ Text [ portuguese_brazilian ] = "Numerierung 5" ;
+ Text[ chinese_simplified ] = "񅧏 5";
+ Text[ russian ] = "Íóìåðàöèÿ 5";
+ Text[ polish ] = "Numeracja 5";
+ Text[ japanese ] = "”Ô†•t‚¯ 5";
+ Text[ chinese_traditional ] = "½s¸¹ 5";
+ Text[ arabic ] = "ÇáÊÑÞíã 5";
+ Text[ greek ] = "Áñßèìçóç 5";
+ Text[ korean ] = "¹øÈ£ 5";
+ Text[ turkish ] = "Numaralama 5";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_LEVEL5E
+{
+ Text = "Nummerierung 5 Ende" ;
+ Text [ English ] = "Numbering 5 end" ;
+ Text [ english_us ] = "Numbering 5 End" ;
+ Text [ italian ] = "Numerazione 5 fine" ;
+ Text [ spanish ] = "Numeración 5 fin" ;
+ Text [ french ] = "Numérotation 5 fin" ;
+ Text [ dutch ] = "Nummering 5 einde" ;
+ Text [ swedish ] = "Numrering 5 slut" ;
+ Text [ danish ] = "Nummerering 5 slut" ;
+ Text [ portuguese ] = "Numeração 5 Fim" ;
+ Text [ portuguese_brazilian ] = "Numerierung 5 Ende" ;
+ Text[ chinese_simplified ] = "±àºÅ 5 ½áβ";
+ Text[ russian ] = "Êîíåö íóìåðàöèè 5";
+ Text[ polish ] = "Koniec numeracji 5";
+ Text[ japanese ] = "”Ô†•t‚¯ 5 I‚è";
+ Text[ chinese_traditional ] = "½s¸¹ 5 µ²§À";
+ Text[ arabic ] = "ÇáÊÑÞíã 5 äåÇíÉ";
+ Text[ greek ] = "Áñßèìçóç 5 ÔÝëïò";
+ Text[ korean ] = "¹øÈ£ 5 Á¾·á";
+ Text[ turkish ] = "Numaralama 5 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_NUM_NONUM5
+{
+ Text = "Nummerierung 5 Fortsetzung" ;
+ Text [ English ] = "Numbering 5 next" ;
+ Text [ english_us ] = "Numbering 5 Cont." ;
+ Text [ italian ] = "Numerazione 5 succ." ;
+ Text [ spanish ] = "Numeración 5 continuación" ;
+ Text [ french ] = "Numérotation 5 suite" ;
+ Text [ dutch ] = "Nummering 5 voortzetting" ;
+ Text [ swedish ] = "Numrering 5 fortsättning" ;
+ Text [ danish ] = "Nummerering 5 fortsættelse" ;
+ Text [ portuguese ] = "Numeração 5 Continuação" ;
+ Text [ portuguese_brazilian ] = "Numerierung 5 Fortsetzung" ;
+ Text[ chinese_simplified ] = "±àºÅ 5 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå íóìåðàöèè 5";
+ Text[ polish ] = "Kontynuacja numeracji 5";
+ Text[ japanese ] = "”Ô†•t‚¯ 5 ‘±‚«";
+ Text[ chinese_traditional ] = "½s¸¹ 5 Ä~Äò";
+ Text[ arabic ] = "ÇáÊÑÞíã 5 ãÊÇÈÚÉ";
+ Text[ greek ] = "Áñßèìçóç 5 ÓõíÝ÷åéá";
+ Text[ korean ] = "¹øÈ£ 5 °è¼Ó";
+ Text[ turkish ] = "Numaralama 5 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL1S
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 Anfang : Aufzõhlung 1 Anfang */
+ Text = "Aufzählung 1 Anfang" ;
+ Text [ English ] = "Bullet 1 start" ;
+ Text [ dutch ] = "Opsomming 1 begin" ;
+ Text [ english_us ] = "List 1 Start" ;
+ Text [ italian ] = "Elenco 1 inizio" ;
+ Text [ spanish ] = "Enumeración 1 inicio" ;
+ Text [ french ] = "Puce 1 début" ;
+ Text [ swedish ] = "Uppräkning 1 start" ;
+ Text [ danish ] = "Punktopstilling 1 start" ;
+ Text [ portuguese ] = "Marca 1 Início" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 1 Anfang" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 1 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî ñïèñêà 1";
+ Text[ polish ] = "Pocz¹tek listy 1";
+ Text[ japanese ] = "‰Óð‘‚« 1 Žn‚ß";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 1 ¶}ºÝ";
+ Text[ arabic ] = "ÊÚÏÇÏ 1 ÈÏÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 1 Áñ÷Þ";
+ Text[ korean ] = "¸®½ºÆ® 1 ½ÃÀÛ";
+ Text[ turkish ] = "Liste 1 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 : Aufzõhlung 1 */
+ Text = "Aufzählung 1" ;
+ Text [ English ] = "Bullet 1" ;
+ Text [ dutch ] = "Opsomming 1" ;
+ Text [ english_us ] = "List 1" ;
+ Text [ italian ] = "Elenco 1" ;
+ Text [ spanish ] = "Enumeración 1" ;
+ Text [ french ] = "Puce 1" ;
+ Text [ swedish ] = "Uppräkning 1" ;
+ Text [ danish ] = "Punktopstilling 1" ;
+ Text [ portuguese ] = "Marca 1" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 1" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 1";
+ Text[ russian ] = "Ñïèñîê 1";
+ Text[ polish ] = "Lista 1";
+ Text[ japanese ] = "‰Óð‘‚« 1";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 1";
+ Text[ arabic ] = "ÊÚÏÇÏ 1";
+ Text[ greek ] = "ÊáôÜëïãïò 1";
+ Text[ korean ] = "¸®½ºÆ® 1";
+ Text[ turkish ] = "Liste 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL1E
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 Ende : Aufzõhlung 1 Ende */
+ Text = "Aufzählung 1 Ende" ;
+ Text [ English ] = "Bullet 1 end" ;
+ Text [ english_us ] = "List 1 End" ;
+ Text [ italian ] = "Elenco 1 fine" ;
+ Text [ spanish ] = "Enumeración 1 fin" ;
+ Text [ french ] = "Puce 1 fin" ;
+ Text [ dutch ] = "Opsomming 1 einde" ;
+ Text [ swedish ] = "Uppräkning 1 slut" ;
+ Text [ danish ] = "Punktopstilling 1 slut" ;
+ Text [ portuguese ] = "Marca 1 Fim" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 1 Ende" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 1 ½áβ";
+ Text[ russian ] = "Êîíåö ñïèñêà 1";
+ Text[ polish ] = "Koniec listy 1";
+ Text[ japanese ] = "‰Óð‘‚« 1 I‚è";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 1 µ²§À";
+ Text[ arabic ] = "ÊÚÏÇÏ 1 äåÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 1 ÔÝëïò";
+ Text[ korean ] = "¸®½ºÆ® 1Á¾·á";
+ Text[ turkish ] = "Liste 1 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_NONUM1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 Fortsetzung : Aufzõhlung 1 Fortsetzung */
+ Text = "Aufzählung 1 Fortsetzung" ;
+ Text [ English ] = "Bullet 1 next" ;
+ Text [ english_us ] = "List 1 Cont." ;
+ Text [ italian ] = "Elenco 1 succ." ;
+ Text [ spanish ] = "Enumeración 1 continuación" ;
+ Text [ french ] = "Puce 1 suivante" ;
+ Text [ dutch ] = "Opsomming 1 voortzetting" ;
+ Text [ swedish ] = "Uppräkning 1 fortsättning" ;
+ Text [ danish ] = "Punktopstilling 1 fortsættelse" ;
+ Text [ portuguese ] = "Marca 1 Continuação" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 1 Fortsetzung" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 1 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå ñïèñêà 1";
+ Text[ polish ] = "Kontynuacja listy1";
+ Text[ japanese ] = "‰Óð‘‚« 1 ‘±‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 1 Ä~Äò";
+ Text[ arabic ] = "ÊÚÏÇÏ 1 ãæÇÕáÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 1 ÓõíÝ÷åéá";
+ Text[ korean ] = "¸®½ºÆ® 1 °è¼Ó";
+ Text[ turkish ] = "Liste 1 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL2S
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 2 Anfang : Aufzõhlung 2 Anfang */
+ Text = "Aufzählung 2 Anfang" ;
+ Text [ English ] = "Bullet 2 start" ;
+ Text [ dutch ] = "Opsomming 2 begin" ;
+ Text [ english_us ] = "List 2 Start" ;
+ Text [ italian ] = "Elenco 2 inizio" ;
+ Text [ spanish ] = "Enumeración 2 inicio" ;
+ Text [ french ] = "Puce 2 début" ;
+ Text [ swedish ] = "Uppräkning 2 start" ;
+ Text [ danish ] = "Punktopstilling 2 start" ;
+ Text [ portuguese ] = "Marca 2 Início" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 2 Anfang" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 2 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî ñïèñêà 2";
+ Text[ polish ] = "Pocz¹tek listy 2 ";
+ Text[ japanese ] = "‰Óð‘‚« 2 Žn‚ß";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 2 ¶}ºÝ";
+ Text[ arabic ] = "ÊÚÏÇÏ 2 ÈÏÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 2 Áñ÷Þ";
+ Text[ korean ] = "¸®½ºÆ® 2 ½ÃÀÛ";
+ Text[ turkish ] = "Liste 2 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 2 : Aufzõhlung 2 */
+ Text = "Aufzählung 2" ;
+ Text [ English ] = "Bullet 2" ;
+ Text [ dutch ] = "Opsomming 2" ;
+ Text [ english_us ] = "List 2" ;
+ Text [ italian ] = "Elenco 2" ;
+ Text [ spanish ] = "Enumeración 2" ;
+ Text [ french ] = "Puce 2" ;
+ Text [ swedish ] = "Uppräkning 2" ;
+ Text [ danish ] = "Punktopstilling 2" ;
+ Text [ portuguese ] = "Marca 2" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 2" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 2";
+ Text[ russian ] = "Ñïèñîê 2";
+ Text[ polish ] = "Lista 2";
+ Text[ japanese ] = "‰Óð‘‚« 2";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 2";
+ Text[ arabic ] = "ÊÚÏÇÏ 2";
+ Text[ greek ] = "ÊáôÜëïãïò 2";
+ Text[ korean ] = "¸®½ºÆ® 2";
+ Text[ turkish ] = "Liste 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL2E
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 2 Ende : Aufzõhlung 2 Ende */
+ Text = "Aufzählung 2 Ende" ;
+ Text [ English ] = "Bullet 2 end" ;
+ Text [ english_us ] = "List 2 End" ;
+ Text [ italian ] = "Elenco 2 fine" ;
+ Text [ spanish ] = "Enumeración 2 fin" ;
+ Text [ french ] = "Puce 2 fin" ;
+ Text [ dutch ] = "Opsomming 2 einde" ;
+ Text [ swedish ] = "Uppräkning 2 slut" ;
+ Text [ danish ] = "Punktopstilling 2 slut" ;
+ Text [ portuguese ] = "Marca 2 Fim" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 2 Ende" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 2 ½áβ";
+ Text[ russian ] = "êîíåö ñïèñêà 2";
+ Text[ polish ] = "Koniec listy 2 ";
+ Text[ japanese ] = "‰Óð‘‚« 2 I‚è";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 2 µ²§À";
+ Text[ arabic ] = "ÊÚÏÇÏ 2 äåÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 2 ÔÝëïò";
+ Text[ korean ] = "¸®½ºÆ® 2 Á¾·á";
+ Text[ turkish ] = "Liste 2 Son";
+};
+String STR_POOLCOLL_BUL_NONUM2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 2 Fortsetzung : Aufzõhlung 2 Fortsetzung */
+ Text = "Aufzählung 2 Fortsetzung" ;
+ Text [ English ] = "Bullet 2 next" ;
+ Text [ english_us ] = "List 2 Cont." ;
+ Text [ italian ] = "Elenco 2 succ." ;
+ Text [ spanish ] = "Enumeración 2 continuación" ;
+ Text [ french ] = "Puce 2 suivante" ;
+ Text [ dutch ] = "Opsomming 2 voortzetting" ;
+ Text [ swedish ] = "Uppräkning 2 fortsättning" ;
+ Text [ danish ] = "Punktopstilling 2 fortsættelse" ;
+ Text [ portuguese ] = "Marca 2 Continuação" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 2 Fortsetzung" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 2 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå ñïèñêà 2";
+ Text[ polish ] = "Kontynuacja listy 2";
+ Text[ japanese ] = "‰Óð‘‚« 2 ‘±‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 2 Ä~Äò";
+ Text[ arabic ] = "ÊÚÏÇÏ 2 ãæÇÕáÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 2 ÓõíÝ÷åéá";
+ Text[ korean ] = "¸®½ºÆ® 2 °è¼Ó";
+ Text[ turkish ] = "Liste 2 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL3S
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 3 Anfang : Aufzõhlung 3 Anfang */
+ Text = "Aufzählung 3 Anfang" ;
+ Text [ English ] = "Bullet 3 start" ;
+ Text [ dutch ] = "Opsomming 3 begin" ;
+ Text [ english_us ] = "List 3 Start" ;
+ Text [ italian ] = "Elenco 3 inizio" ;
+ Text [ spanish ] = "Enumeración 3 inicio" ;
+ Text [ french ] = "Puce 3 début" ;
+ Text [ swedish ] = "Uppräkning 3 start" ;
+ Text [ danish ] = "Punktopstilling 3 start" ;
+ Text [ portuguese ] = "Marca 3 Início" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 3 Anfang" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 3 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî ñïèñêà 3";
+ Text[ polish ] = "Pocz¹tek listy 3";
+ Text[ japanese ] = "‰Óð‘‚« 3 Žn‚ß";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 3 ¶}ºÝ";
+ Text[ arabic ] = "ÊÚÏÇÏ 3 ÈÏÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 3 Áñ÷Þ";
+ Text[ korean ] = "¸®½ºÆ® 3 ½ÃÀÛ";
+ Text[ turkish ] = "Liste 3 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL3
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 3 : Aufzõhlung 3 */
+ Text = "Aufzählung 3" ;
+ Text [ English ] = "Bullet 3" ;
+ Text [ dutch ] = "Opsomming 3" ;
+ Text [ english_us ] = "List 3" ;
+ Text [ italian ] = "Elenco 3" ;
+ Text [ spanish ] = "Enumeración 3" ;
+ Text [ french ] = "Puce 3" ;
+ Text [ swedish ] = "Uppräkning 3" ;
+ Text [ danish ] = "Punktopstilling 3" ;
+ Text [ portuguese ] = "Marca 3" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 3" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 3";
+ Text[ russian ] = "Ñïèñîê 3";
+ Text[ polish ] = "Lista 3";
+ Text[ japanese ] = "‰Óð‘‚« 3";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 3";
+ Text[ arabic ] = "ÊÚÏÇÏ 3";
+ Text[ greek ] = "ÊáôÜëïãïò 3";
+ Text[ korean ] = "¸®½ºÆ® 3";
+ Text[ turkish ] = "Liste 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL3E
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 3 Ende : Aufzõhlung 3 Ende */
+ Text = "Aufzählung 3 Ende" ;
+ Text [ English ] = "Bullet 3 end" ;
+ Text [ english_us ] = "List 3 End" ;
+ Text [ italian ] = "Elenco 3 fine" ;
+ Text [ spanish ] = "Enumeración 3 fin" ;
+ Text [ french ] = "Puce 3 fin" ;
+ Text [ dutch ] = "Opsomming 3 einde" ;
+ Text [ swedish ] = "Uppräkning 3 slut" ;
+ Text [ danish ] = "Punktopstilling 3 slut" ;
+ Text [ portuguese ] = "Marca 3 Fim" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 3 Ende" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 3 ½áβ";
+ Text[ russian ] = "Êîíåö ñïèñêà 3";
+ Text[ polish ] = "Koniec listy 3";
+ Text[ japanese ] = "‰Óð‘‚« 3 I‚è";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 3 µ²§À";
+ Text[ arabic ] = "ÊÚÏÇÏ 3 äåÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 3 ÔÝëïò";
+ Text[ korean ] = "¸®½ºÆ® 3 Á¾·á";
+ Text[ turkish ] = "Liste 3 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_NONUM3
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 3 Fortsetzung : Aufzõhlung 3 Fortsetzung */
+ Text = "Aufzählung 3 Fortsetzung" ;
+ Text [ English ] = "Bullet 3 next" ;
+ Text [ english_us ] = "List 3 Cont." ;
+ Text [ italian ] = "Elenco 3 succ." ;
+ Text [ spanish ] = "Enumeración 3 continuación" ;
+ Text [ french ] = "Puce 3 suivante" ;
+ Text [ dutch ] = "Opsomming 3 voortzetting" ;
+ Text [ swedish ] = "Uppräkning 3 fortsättning" ;
+ Text [ danish ] = "Punktopstilling 3 fortsættelse" ;
+ Text [ portuguese ] = "Marca 3 Continuação" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 3 Fortsetzung" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 3 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå ñïèñêà 3";
+ Text[ polish ] = "Kontynuacja listy 3";
+ Text[ japanese ] = "‰Óð‘‚« 3 ‘±‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 3 Ä~Äò";
+ Text[ arabic ] = "ÊÚÏÇÏ 3 ãæÇÕáÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 3 ÓõíÝ÷åéá";
+ Text[ korean ] = "¸®½ºÆ® 3 °è¼Ó";
+ Text[ turkish ] = "Liste 3 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL4S
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 4 Anfang : Aufzõhlung 4 Anfang */
+ Text = "Aufzählung 4 Anfang" ;
+ Text [ English ] = "Bullet 4 start" ;
+ Text [ dutch ] = "Opsomming 4 begin" ;
+ Text [ english_us ] = "List 4 Start" ;
+ Text [ italian ] = "Elenco 4 inizio" ;
+ Text [ spanish ] = "Enumeración 4 inicio" ;
+ Text [ french ] = "Puce 4 début" ;
+ Text [ swedish ] = "Uppräkning 4 start" ;
+ Text [ danish ] = "Punktopstilling 4 start" ;
+ Text [ portuguese ] = "Marca 4 Início" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 4 Anfang" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 4 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî ñïèñêà 4";
+ Text[ polish ] = "Pocz¹tek listy 4";
+ Text[ japanese ] = "‰Óð‘‚« 4 Žn‚ß";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 4 ¶}ºÝ";
+ Text[ arabic ] = "ÊÚÏÇÏ 4 ÈÏÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 4 Áñ÷Þ";
+ Text[ korean ] = "¸®½ºÆ® 4 ½ÃÀÛ";
+ Text[ turkish ] = "Liste 4 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL4
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 4 : Aufzõhlung 4 */
+ Text = "Aufzählung 4" ;
+ Text [ English ] = "Bullet 4" ;
+ Text [ dutch ] = "Opsomming 4" ;
+ Text [ english_us ] = "List 4" ;
+ Text [ italian ] = "Elenco 4" ;
+ Text [ spanish ] = "Enumeración 4" ;
+ Text [ french ] = "Puce 4" ;
+ Text [ swedish ] = "Uppräkning 4" ;
+ Text [ danish ] = "Punktopstilling 4" ;
+ Text [ portuguese ] = "Marca 4" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 4" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 4";
+ Text[ russian ] = "Ñïèñîê 4";
+ Text[ polish ] = "Lista 4";
+ Text[ japanese ] = "‰Óð‘‚« 4";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 4";
+ Text[ arabic ] = "ÊÚÏÇÏ 4";
+ Text[ greek ] = "ÊáôÜëïãïò 4";
+ Text[ korean ] = "¸®½ºÆ® 4";
+ Text[ turkish ] = "Liste 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL4E
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 4 Ende : Aufzõhlung 4 Ende */
+ Text = "Aufzählung 4 Ende" ;
+ Text [ English ] = "Bullet 4 end" ;
+ Text [ english_us ] = "List 4 End" ;
+ Text [ italian ] = "Elenco 4 fine" ;
+ Text [ spanish ] = "Enumeración 4 fin" ;
+ Text [ french ] = "Puce 4 fin" ;
+ Text [ dutch ] = "Opsomming 4 einde" ;
+ Text [ swedish ] = "Uppräkning 4 slut" ;
+ Text [ danish ] = "Punktopstilling 4 slut" ;
+ Text [ portuguese ] = "Marca 4 Fim" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 4 Ende" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 4 ½áβ";
+ Text[ russian ] = "Êîíåö ñïèñêà 4";
+ Text[ polish ] = "Koniec listy 4";
+ Text[ japanese ] = "‰Óð‘‚« 4 I‚è";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 4 µ²§À";
+ Text[ arabic ] = "ÊÚÏÇÏ 4 äåÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 4 ÔÝëïò";
+ Text[ korean ] = "¸®½ºÆ® 4 Á¾·á";
+ Text[ turkish ] = "Liste 4 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_NONUM4
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 4 Fortsetzung : Aufzõhlung 4 Fortsetzung */
+ Text = "Aufzählung 4 Fortsetzung" ;
+ Text [ English ] = "Bullet 4 next" ;
+ Text [ english_us ] = "List 4 Cont." ;
+ Text [ italian ] = "Elenco 4 succ." ;
+ Text [ spanish ] = "Enumeración 4 continuación" ;
+ Text [ french ] = "Puce 4 suivante" ;
+ Text [ dutch ] = "Opsomming 4 voortzetting" ;
+ Text [ swedish ] = "Uppräkning 4 fortsättning" ;
+ Text [ danish ] = "Punktopstilling 4 fortsættelse" ;
+ Text [ portuguese ] = "Marca 4 Continuação" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 4 Fortsetzung" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 4 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå ñïèñêà 4";
+ Text[ polish ] = "Kontynuacja listy 4";
+ Text[ japanese ] = "‰Óð‘‚« 4 ‘±‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 4 Ä~Äò";
+ Text[ arabic ] = "ÊÚÏÇÏ 4 ãæÇÕáÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 4 ÓõíÝ÷åéá";
+ Text[ korean ] = "¸®½ºÆ® 4 °è¼Ó";
+ Text[ turkish ] = "Liste 4 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL5S
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 5 Anfang : Aufzõhlung 5 Anfang */
+ Text = "Aufzählung 5 Anfang" ;
+ Text [ English ] = "Bullet 5 start" ;
+ Text [ dutch ] = "Opsomming 5 begin" ;
+ Text [ english_us ] = "List 5 Start" ;
+ Text [ italian ] = "Elenco 5 inizio" ;
+ Text [ spanish ] = "Enumeración 5 inicio" ;
+ Text [ french ] = "Puce 5 début" ;
+ Text [ swedish ] = "Uppräkning 5 start" ;
+ Text [ danish ] = "Punktopstilling 5 start" ;
+ Text [ portuguese ] = "Marca 5 Início" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 5 Anfang" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 5 ¿ª¶Ë";
+ Text[ russian ] = "Íà÷àëî ñïèñêà 5";
+ Text[ polish ] = "Pocz¹tek listy 5";
+ Text[ japanese ] = "‰Óð‘‚« 5 Žn‚ß";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 5 ¶}ºÝ";
+ Text[ arabic ] = "ÊÚÏÇÏ 5 ÈÏÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 5 Áñ÷Þ";
+ Text[ korean ] = "¸®½ºÆ® 5 ½ÃÀÛ";
+ Text[ turkish ] = "Liste 5 Baþlangýç";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL5
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 5 : Aufzõhlung 5 */
+ Text = "Aufzählung 5" ;
+ Text [ English ] = "Bullet 5" ;
+ Text [ dutch ] = "Opsomming 5" ;
+ Text [ english_us ] = "List 5" ;
+ Text [ italian ] = "Elenco 5" ;
+ Text [ spanish ] = "Enumeración 5" ;
+ Text [ french ] = "Puce 5" ;
+ Text [ swedish ] = "Uppräkning 5" ;
+ Text [ danish ] = "Punktopstilling 5" ;
+ Text [ portuguese ] = "Marca 5" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 5" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 5";
+ Text[ russian ] = "Ñïèñîê 5";
+ Text[ polish ] = "Lista 5";
+ Text[ japanese ] = "‰Óð‘‚« 5";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 5";
+ Text[ arabic ] = "ÊÚÏÇÏ 5";
+ Text[ greek ] = "ÊáôÜëïãïò 5";
+ Text[ korean ] = "¸®½ºÆ® 5";
+ Text[ turkish ] = "Liste 5";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_LEVEL5E
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 5 Ende : Aufzõhlung 5 Ende */
+ Text = "Aufzählung 5 Ende" ;
+ Text [ English ] = "Bullet 5 end" ;
+ Text [ english_us ] = "List 5 End" ;
+ Text [ italian ] = "Elenco 5 fine" ;
+ Text [ spanish ] = "Enumeración 5 fin" ;
+ Text [ french ] = "Puce 5 fin" ;
+ Text [ dutch ] = "Opsomming 5 einde" ;
+ Text [ swedish ] = "Uppräkning 5 slut" ;
+ Text [ danish ] = "Punktopstilling 5 slut" ;
+ Text [ portuguese ] = "Marca 5 Fim" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 5 Ende" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿·ûºÅ 5 ½áβ";
+ Text[ russian ] = "Êîíåö ñïèñêà 5";
+ Text[ polish ] = "Koniec listy 5";
+ Text[ japanese ] = "‰Óð‘‚« 5 I‚è";
+ Text[ chinese_traditional ] = "¶µ¥Ø²Å¸¹ 5 µ²§À";
+ Text[ arabic ] = "ÊÚÏÇÏ 5 äåÇíÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 5 ÔÝëïò";
+ Text[ korean ] = "¸®½ºÆ® 5 Á¾·á";
+ Text[ turkish ] = "Liste 5 Son";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_BUL_NONUM5
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 5 Fortsetzung : Aufzõhlung 5 Fortsetzung */
+ Text = "Aufzählung 5 Fortsetzung" ;
+ Text [ English ] = "Bullet 5 next" ;
+ Text [ english_us ] = "List 5 Cont." ;
+ Text [ italian ] = "Elenco 5 succ." ;
+ Text [ spanish ] = "Enumeración 5 continuación" ;
+ Text [ french ] = "Puce 5 suivante" ;
+ Text [ dutch ] = "Opsomming 5 voortzetting" ;
+ Text [ swedish ] = "Uppräkning 5 fortsättning" ;
+ Text [ danish ] = "Punktopstilling 5 fortsættelse" ;
+ Text [ portuguese ] = "Marca 5 Continuação" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 5 Fortsetzung" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 5 ¼ÌÐø";
+ Text[ russian ] = "Ïðîäîëæåíèå ñïèñêà 5";
+ Text[ polish ] = "Kontynuacja listy 5";
+ Text[ japanese ] = "‰Óð‘‚« 5 ‘±‚«";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 5 Ä~Äò";
+ Text[ arabic ] = "ÊÚÏÇÏ 5 ãæÇÕáÉ";
+ Text[ greek ] = "ÊáôÜëïãïò 5 ÓõíÝ÷åéá";
+ Text[ korean ] = "¸®½ºÆ® 5 °è¼Ó";
+ Text[ turkish ] = "Liste 5 Devam";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADER
+{
+ Text = "Kopfzeile" ;
+ Text [ English ] = "Header" ;
+ Text [ english_us ] = "Header" ;
+ Text [ italian ] = "Riga d'intestazione" ;
+ Text [ spanish ] = "Encabezamiento" ;
+ Text [ french ] = "En-tête" ;
+ Text [ dutch ] = "Koptekst" ;
+ Text [ swedish ] = "Sidhuvud" ;
+ Text [ danish ] = "Sidehoved" ;
+ Text [ portuguese ] = "Cabeçalho" ;
+ Text [ portuguese_brazilian ] = "Kopfzeile" ;
+ Text[ chinese_simplified ] = "ҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë";
+ Text[ polish ] = "Nag³ówek";
+ Text[ japanese ] = "ͯÀÞ";
+ Text[ chinese_traditional ] = "­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ";
+ Text[ greek ] = "Êåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Üstbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADERL
+{
+ Text = "Kopfzeile links" ;
+ Text [ English ] = "Header left" ;
+ Text [ english_us ] = "Header left" ;
+ Text [ italian ] = "Riga d'intestazione sinistra" ;
+ Text [ spanish ] = "Encabezamiento izquierdo" ;
+ Text [ french ] = "En-tête gauche" ;
+ Text [ dutch ] = "Koptekst links" ;
+ Text [ swedish ] = "Sidhuvud till vänster" ;
+ Text [ danish ] = "Sidehoved til venstre" ;
+ Text [ portuguese ] = "Cabeçalho à esquerda" ;
+ Text [ portuguese_brazilian ] = "Kopfzeile links" ;
+ Text[ chinese_simplified ] = "×óҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë ñëåâà";
+ Text[ polish ] = "Nag³ówek z lewej strony";
+ Text[ japanese ] = "ͯÀÞ¶";
+ Text[ chinese_traditional ] = "¥ª­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ Åáì ÇáíÓÇÑ";
+ Text[ greek ] = "Êåöáëßäåò áñéóôåñÜ";
+ Text[ korean ] = "¸Ó¸®±Û ¿ÞÂÊ";
+ Text[ turkish ] = "Sol üstbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HEADERR
+{
+ Text = "Kopfzeile rechts" ;
+ Text [ English ] = "Header right" ;
+ Text [ english_us ] = "Header right" ;
+ Text [ italian ] = "Riga d'intestazione destra" ;
+ Text [ spanish ] = "Encabezamiento derecho" ;
+ Text [ french ] = "En-tête droit" ;
+ Text [ dutch ] = "Koptekst rechts" ;
+ Text [ swedish ] = "Sidhuvud till höger" ;
+ Text [ danish ] = "Sidehoved til højre" ;
+ Text [ portuguese ] = "Cabeçalho à direita" ;
+ Text [ portuguese_brazilian ] = "Kopfzeile rechts" ;
+ Text[ chinese_simplified ] = "ÓÒҳü";
+ Text[ russian ] = "Âåðõíèé êîëîíòèòóë ñïðàâà";
+ Text[ polish ] = "Nag³ówek z prawej strony";
+ Text[ japanese ] = "ͯÀÞ‰E";
+ Text[ chinese_traditional ] = "¥k­¶­º";
+ Text[ arabic ] = "ÑÃÓ ÇáÕÝÍÉ Åáì Çáíãíä";
+ Text[ greek ] = "Êåöáëßäåò äåîéÜ";
+ Text[ korean ] = "¸Ó¸®±Û ¿À¸¥ÂÊ";
+ Text[ turkish ] = "Sað üstbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_FOOTER
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußzeile : Fu˜zeile */
+ Text = "Fußzeile" ;
+ Text [ English ] = "Footer" ;
+ Text [ dutch ] = "Voettekst" ;
+ Text [ english_us ] = "Footer" ;
+ Text [ italian ] = "Piè di pagina" ;
+ Text [ spanish ] = "Pie de página" ;
+ Text [ french ] = "Pied de page" ;
+ Text [ swedish ] = "Sidfot" ;
+ Text [ danish ] = "Sidefod" ;
+ Text [ portuguese ] = "Rodapé" ;
+ Text [ portuguese_brazilian ] = "Fußzeile" ;
+ Text[ chinese_simplified ] = "Ò³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë";
+ Text[ polish ] = "Stopka";
+ Text[ japanese ] = "̯À";
+ Text[ chinese_traditional ] = "­¶§À";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ";
+ Text[ greek ] = "ÕðïóÝëéäï";
+ Text[ korean ] = "¹Ù´Ú±Û";
+ Text[ turkish ] = "Altbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_FOOTERL
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußzeile links : Fu˜zeile links */
+ Text = "Fußzeile links" ;
+ Text [ English ] = "Footer left" ;
+ Text [ english_us ] = "Footer left" ;
+ Text [ italian ] = "Piè di pagina a sinistra" ;
+ Text [ spanish ] = "Pie de página izquierdo" ;
+ Text [ french ] = "Pied de page gauche" ;
+ Text [ dutch ] = "Voettekst links" ;
+ Text [ swedish ] = "Sidfot till vänster" ;
+ Text [ danish ] = "Sidefod til venstre" ;
+ Text [ portuguese ] = "Rodapé à esquerda" ;
+ Text [ portuguese_brazilian ] = "Fußzeile links" ;
+ Text[ chinese_simplified ] = "×óÒ³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë ñëåâà";
+ Text[ polish ] = "Stopka z lewej strony";
+ Text[ japanese ] = "̯À ¶";
+ Text[ chinese_traditional ] = "¥ª­¶§À";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ Åáì ÇáíÓÇÑ";
+ Text[ greek ] = "ÕðïóÝëéäï áñéóôåñÜ";
+ Text[ korean ] = "¹Ù´Ú±Û ¿ÞÂÊ";
+ Text[ turkish ] = "Sol altbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_FOOTERR
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußzeile rechts : Fu˜zeile rechts */
+ Text = "Fußzeile rechts" ;
+ Text [ English ] = "Footer right" ;
+ Text [ english_us ] = "Footer right" ;
+ Text [ italian ] = "Piè di pagina a destra" ;
+ Text [ spanish ] = "Pie de página derecho" ;
+ Text [ french ] = "Pied de page droit" ;
+ Text [ dutch ] = "Voettekst rechts" ;
+ Text [ swedish ] = "Sidfot till höger" ;
+ Text [ danish ] = "Sidefod til højre" ;
+ Text [ portuguese ] = "Rodapé à direita" ;
+ Text [ portuguese_brazilian ] = "Fußzeile rechts" ;
+ Text[ chinese_simplified ] = "ÓÒÒ³½Å";
+ Text[ russian ] = "Íèæíèé êîëîíòèòóë ñïðàâà";
+ Text[ polish ] = "Stopka z prawej strony";
+ Text[ japanese ] = "̯À ‰E";
+ Text[ chinese_traditional ] = "¥k­¶§À";
+ Text[ arabic ] = "ÊÐííá ÇáÕÝÍÉ Åáì Çáíãíä";
+ Text[ greek ] = "ÕðïóÝëéäï äåîéÜ";
+ Text[ korean ] = "¹Ù´Ú±Û ¿À¸¥ÂÊ";
+ Text[ turkish ] = "Sað altbilgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TABLE
+{
+ Text = "Tabellen Inhalt" ;
+ Text [ English ] = "Table body" ;
+ Text [ english_us ] = "Table Contents" ;
+ Text [ italian ] = "Contenuto tabella" ;
+ Text [ spanish ] = "Contenido de la tabla" ;
+ Text [ french ] = "Contenu de tableau" ;
+ Text [ dutch ] = "Inhoud tabel" ;
+ Text [ swedish ] = "Tabellinnehåll" ;
+ Text [ danish ] = "Tabelindhold" ;
+ Text [ portuguese ] = "Conteúdo de tabela" ;
+ Text [ portuguese_brazilian ] = "Tabellen Inhalt" ;
+ Text[ chinese_simplified ] = "±í¸ñÄÚÈÝ";
+ Text[ russian ] = "Ñîäåðæèìîå òàáëèöû";
+ Text[ polish ] = "ZawartoϾ tabeli";
+ Text[ japanese ] = "•\\‚Ì“à—e";
+ Text[ chinese_traditional ] = "ªí®æ¤º®e";
+ Text[ arabic ] = "ãÍÊæíÇÊ ÇáÌÏæá";
+ Text[ greek ] = "Ðåñéå÷üìåíá ðßíáêá";
+ Text[ korean ] = "Ç¥ ³»¿ë";
+ Text[ turkish ] = "Tablo içeriði";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TABLE_HDLN
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Tabellen Überschrift : Tabellen šberschrift */
+ Text = "Tabellen Überschrift" ;
+ Text [ English ] = "Table headline" ;
+ Text [ english_us ] = "Table Heading" ;
+ Text [ italian ] = "Intestazione tabella" ;
+ Text [ spanish ] = "Encabezado de la tabla" ;
+ Text [ french ] = "Titre de tableau" ;
+ Text [ dutch ] = "Tabelkop" ;
+ Text [ swedish ] = "Tabellöverskrift" ;
+ Text [ danish ] = "Tabeloverskrift" ;
+ Text [ portuguese ] = "Título de tabela" ;
+ Text [ portuguese_brazilian ] = "Tabellen Überschrift" ;
+ Text[ chinese_simplified ] = "±í¸ñ±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê òàáëèöû";
+ Text[ polish ] = "Tytu³ tabeli";
+ Text[ japanese ] = "•\\‚ÌŒ©o‚µ";
+ Text[ chinese_traditional ] = "ªí®æ¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÇáÌÏæá";
+ Text[ greek ] = "Åðéêåöáëßäá ðßíáêá";
+ Text[ korean ] = "Ç¥Á¦¸ñ";
+ Text[ turkish ] = "Tablo baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_FRAME
+{
+ Text = "Rahmeninhalt" ;
+ Text [ English ] = "Frame body" ;
+ Text [ dutch ] = "Inhoud kader" ;
+ Text [ english_us ] = "Frame contents" ;
+ Text [ italian ] = "Contenuto cornice" ;
+ Text [ spanish ] = "Contenido del marco" ;
+ Text [ french ] = "Contenu du cadre" ;
+ Text [ swedish ] = "Raminnehåll" ;
+ Text [ danish ] = "Rammeindhold" ;
+ Text [ portuguese ] = "Conteúdo da moldura" ;
+ Text [ portuguese_brazilian ] = "Rahmeninhalt" ;
+ Text[ chinese_simplified ] = "¿òÄÚÈÝ";
+ Text[ russian ] = "Ñîäåðæèìîå ðàìêè";
+ Text[ polish ] = "ZawartoϾ ramki";
+ Text[ japanese ] = "˜g‚Ì“à—e";
+ Text[ chinese_traditional ] = "°T®Ø¤º®e";
+ Text[ arabic ] = "ãÍÊæíÇÊ ÇáÅØÇÑ";
+ Text[ greek ] = "Ðåñéå÷üìåíá ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ ³»¿ë";
+ Text[ turkish ] = "Çerçeve içeriði";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_FOOTNOTE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Fußnote : Fu˜note */
+ Text = "Fußnote" ;
+ Text [ English ] = "Footnote" ;
+ Text [ dutch ] = "Voetnoot" ;
+ Text [ english_us ] = "Footnote" ;
+ Text [ italian ] = "Nota a piè pagina" ;
+ Text [ spanish ] = "Nota al pie" ;
+ Text [ french ] = "Note de bas de page" ;
+ Text [ swedish ] = "Fotnot" ;
+ Text [ danish ] = "Fodnote" ;
+ Text [ portuguese ] = "Nota de rodapé" ;
+ Text [ portuguese_brazilian ] = "Fußnote" ;
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ russian ] = "Ñíîñêà";
+ Text[ polish ] = "Stopka";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "µù¸}";
+ Text[ arabic ] = "ÍÇÔíÉ ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåßùóç";
+ Text[ korean ] = "°¢ÁÖ";
+ Text[ turkish ] = "Dipnot";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_ENDNOTE
+{
+ Text = "Endnote" ;
+ Text [ English ] = "Endnote" ;
+ Text [ portuguese ] = "Nota final" ;
+ Text [ english_us ] = "Endnote" ;
+ Text [ portuguese_brazilian ] = "Endnote" ;
+ Text [ swedish ] = "Slutnot" ;
+ Text [ danish ] = "Slutnote" ;
+ Text [ italian ] = "Nota di chiusura" ;
+ Text [ spanish ] = "Nota al final" ;
+ Text [ french ] = "Note de fin" ;
+ Text [ dutch ] = "Eindnoot" ;
+ Text[ chinese_simplified ] = "βע";
+ Text[ russian ] = "Êîíöåâàÿ ñíîñêà";
+ Text[ polish ] = "Przypis koñcowy";
+ Text[ japanese ] = "•¶––‹r’";
+ Text[ chinese_traditional ] = "§Àª`";
+ Text[ arabic ] = "ÊÚáíÞ ÎÊÇãí";
+ Text[ greek ] = "Óçìåßùóç ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ";
+ Text[ turkish ] = "Sonnot";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_LABEL
+{
+ Text = "Beschriftung" ;
+ Text [ English ] = "Label" ;
+ Text [ english_us ] = "Caption" ;
+ Text [ italian ] = "Dicitura" ;
+ Text [ spanish ] = "Etiqueta" ;
+ Text [ french ] = "Légende" ;
+ Text [ dutch ] = "Titel" ;
+ Text [ swedish ] = "Bildtext" ;
+ Text [ danish ] = "Billedtekst" ;
+ Text [ portuguese ] = "Legenda" ;
+ Text [ portuguese_brazilian ] = "Beschriftung" ;
+ Text[ chinese_simplified ] = "±êÇ©";
+ Text[ russian ] = "Íàäïèñü";
+ Text[ polish ] = "Opis";
+ Text[ japanese ] = "×ÍÞÙ";
+ Text[ chinese_traditional ] = "¼ÐÅÒ";
+ Text[ arabic ] = "ÊÓãíÉ ÊæÖíÍíÉ";
+ Text[ greek ] = "ÅðéãñáöÞ";
+ Text[ korean ] = "ĸ¼Ç";
+ Text[ turkish ] = "Etiket";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_LABEL_ABB
+{
+ Text = "Abbildung" ;
+ Text [ English ] = "Figure" ;
+ Text [ english_us ] = "Illustration" ;
+ Text [ italian ] = "Illustrazione" ;
+ Text [ spanish ] = "Ilustración" ;
+ Text [ french ] = "Illustration" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ swedish ] = "Illustration" ;
+ Text [ danish ] = "Illustration" ;
+ Text [ portuguese ] = "Ilustração" ;
+ Text [ portuguese_brazilian ] = "Abbildung" ;
+ Text[ chinese_simplified ] = "²åͼ";
+ Text[ russian ] = "Èëëþñòðàöèÿ";
+ Text[ polish ] = "Ilustracja";
+ Text[ japanese ] = "²×½Ä";
+ Text[ chinese_traditional ] = "´¡¹Ï";
+ Text[ arabic ] = "ÕæÑÉ ÅíÖÇÍíÉ";
+ Text[ greek ] = "Åéêüíá";
+ Text[ korean ] = "»ðÈ­";
+ Text[ turkish ] = "Resim";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_LABEL_TABLE
+{
+ Text = "Tabelle" ;
+ Text [ English ] = "Table" ;
+ Text [ english_us ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "Tableau" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÇáÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_LABEL_FRAME
+{
+ Text = "Text" ;
+ Text [ English ] = "Text" ;
+ Text [ dutch ] = "Tekst" ;
+ Text [ english_us ] = "Text" ;
+ Text [ italian ] = "Testo" ;
+ Text [ spanish ] = "Texto" ;
+ Text [ french ] = "Texte" ;
+ Text [ swedish ] = "Text" ;
+ Text [ danish ] = "Tekst" ;
+ Text [ portuguese ] = "Texto" ;
+ Text [ portuguese_brazilian ] = "Text" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö";
+ Text[ russian ] = "Òåêñò";
+ Text[ polish ] = "Tekst";
+ Text[ japanese ] = "÷½Ä";
+ Text[ chinese_traditional ] = "¤º¤å";
+ Text[ arabic ] = "ÇáäÕ";
+ Text[ greek ] = "Êåßìåíï";
+ Text[ korean ] = "ÅؽºÆ®";
+ Text[ turkish ] = "Metin";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_LABEL_DRAWING
+{
+ Text = "Zeichnung" ;
+ Text [ English ] = "Drawing" ;
+ Text[ italian ] = "Disegno";
+ Text[ portuguese_brazilian ] = "Drawing";
+ Text[ portuguese ] = "Desenho";
+ Text[ danish ] = "Tegning";
+ Text[ french ] = "Dessin";
+ Text[ swedish ] = "Teckning";
+ Text[ dutch ] = "Tekening";
+ Text[ spanish ] = "Dibujo";
+ Text[ english_us ] = "Drawing";
+ Text[ chinese_simplified ] = "»æͼ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Rysunek";
+ Text[ japanese ] = "}Œ`•`‰æ";
+ Text[ chinese_traditional ] = "ø¹Ï";
+ Text[ arabic ] = "ÑÓãÉ";
+ Text[ greek ] = "Ó÷Ýäéï";
+ Text[ korean ] = "±×¸®±â";
+ Text[ turkish ] = "Çizim";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_JAKETADRESS
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Empfänger : Empfõnger */
+ Text = "Empfänger" ;
+ Text [ English ] = "Address" ;
+ Text [ dutch ] = "Geadresseerde" ;
+ Text [ english_us ] = "Addressee" ;
+ Text [ italian ] = "Destinatario" ;
+ Text [ spanish ] = "Destinatario" ;
+ Text [ french ] = "Destinataire" ;
+ Text [ swedish ] = "Mottagare" ;
+ Text [ danish ] = "Modtager" ;
+ Text [ portuguese ] = "Destinatário" ;
+ Text [ portuguese_brazilian ] = "Empfänger" ;
+ Text[ chinese_simplified ] = "ÊÕ¼þÈË";
+ Text[ russian ] = "Ïîëó÷àòåëü";
+ Text[ polish ] = "Odbiorca";
+ Text[ japanese ] = "ŽóMŽÒ";
+ Text[ chinese_traditional ] = "¦¬¥óªÌ";
+ Text[ arabic ] = "ÇáãÓÊáã";
+ Text[ greek ] = "ÐáñáëÞðôçò";
+ Text[ korean ] = "¹Þ´Â »ç¶÷";
+ Text[ turkish ] = "Alýcý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_SENDADRESS
+{
+ Text = "Absender" ;
+ Text [ English ] = "Sender" ;
+ Text [ english_us ] = "Sender" ;
+ Text [ italian ] = "Mittente" ;
+ Text [ spanish ] = "Remitente" ;
+ Text [ french ] = "Expéditeur" ;
+ Text [ dutch ] = "Afzender" ;
+ Text [ swedish ] = "Avsändare" ;
+ Text [ danish ] = "Afsender" ;
+ Text [ portuguese ] = "Remetente" ;
+ Text [ portuguese_brazilian ] = "Absender" ;
+ Text[ chinese_simplified ] = "·¢¼þÈË";
+ Text[ russian ] = "Îòïðàâèòåëü";
+ Text[ polish ] = "Nadawca";
+ Text[ japanese ] = "·ol";
+ Text[ chinese_traditional ] = "±H¥óªÌ";
+ Text[ arabic ] = "ÇáãÑÓá";
+ Text[ greek ] = "ÁðïóôïëÝáò";
+ Text[ korean ] = "º¸³½ »ç¶÷";
+ Text[ turkish ] = "Gönderen";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_IDXH
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Stichwortverzeichnis Überschrift : Stichwortverzeichnis šberschrift */
+ Text = "Stichwortverzeichnis Überschrift" ;
+ Text [ English ] = "Headline TOX" ;
+ Text [ english_us ] = "Index Heading" ;
+ Text [ italian ] = "Intestazione indice analitico" ;
+ Text [ spanish ] = "Encabezado del índice alfabético" ;
+ Text [ french ] = "Index lexical : titre" ;
+ Text [ dutch ] = "Indexkop" ;
+ Text [ swedish ] = "Sakregisteröverskrift" ;
+ Text [ danish ] = "Stikordsregisteroverskrift" ;
+ Text [ portuguese ] = "Título do índice remissivo" ;
+ Text [ portuguese_brazilian ] = "Stichwortverzeichnis Überschrift" ;
+ Text[ chinese_simplified ] = "Ë÷Òý±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê óêàçàòåëÿ";
+ Text[ polish ] = "Tytu³ zestawu hase³";
+ Text[ japanese ] = "õˆø Œ©o‚µ";
+ Text[ chinese_traditional ] = "¯Á¤Þ¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÇáÝåÑÓ ÇáÃÈÌÏí";
+ Text[ greek ] = "Åðéêåöáëßäá åõñåôçñßïõ ëÝîåùí";
+ Text[ korean ] = "»öÀÎ Á¦¸ñ";
+ Text[ turkish ] = "Alfabetik dizin baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_IDX1
+{
+ Text = "Stichwortverzeichnis 1" ;
+ Text [ English ] = "Level 1 TOX" ;
+ Text [ dutch ] = "Trefwoordenlijst 1" ;
+ Text [ english_us ] = "Index 1" ;
+ Text [ italian ] = "Indice analitico 1" ;
+ Text [ spanish ] = "Índice afabético 1" ;
+ Text [ french ] = "Index lexical 1" ;
+ Text [ swedish ] = "Sakregister 1" ;
+ Text [ danish ] = "Stikordsregister 1" ;
+ Text [ portuguese ] = "Índice remissivo 1" ;
+ Text [ portuguese_brazilian ] = "Stichwortverzeichnis 1" ;
+ Text[ chinese_simplified ] = "Ë÷Òý 1";
+ Text[ russian ] = "Óêàçàòåëü 1";
+ Text[ polish ] = "Zestaw hase³ 1";
+ Text[ japanese ] = "õˆø 1";
+ Text[ chinese_traditional ] = "¯Á¤Þ 1";
+ Text[ arabic ] = "ÝåÑÓ ÃÈÍÏí 1";
+ Text[ greek ] = "ÅõñåôÞñéï ëÝîåùí 1";
+ Text[ korean ] = "»öÀÎ 1";
+ Text[ turkish ] = "Alfabetik dizin 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_IDX2
+{
+ Text = "Stichwortverzeichnis 2" ;
+ Text [ English ] = "Level 2 TOX" ;
+ Text [ english_us ] = "Index 2" ;
+ Text [ italian ] = "Indice analitico 2" ;
+ Text [ spanish ] = "Índice alfabético 2" ;
+ Text [ french ] = "Index lexical 2" ;
+ Text [ dutch ] = "Trefwoordenlijst 2" ;
+ Text [ swedish ] = "Sakregister 2" ;
+ Text [ danish ] = "Stikordsregister 2" ;
+ Text [ portuguese ] = "Índice remissivo 2" ;
+ Text [ portuguese_brazilian ] = "Stichwortverzeichnis 2" ;
+ Text[ chinese_simplified ] = "Ë÷Òý 2";
+ Text[ russian ] = "Óêàçàòåëü 2";
+ Text[ polish ] = "Zestaw hase³ 2";
+ Text[ japanese ] = "õˆø 2";
+ Text[ chinese_traditional ] = "¯Á¤Þ 2";
+ Text[ arabic ] = "ÝåÑÓ ÃÈÌÏí 2";
+ Text[ greek ] = "ÅõñåôÞñéï ëÝîåùí 2";
+ Text[ korean ] = "»öÀÎ 2";
+ Text[ turkish ] = "Alfabetik dizin 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_IDX3
+{
+ Text = "Stichwortverzeichnis 3" ;
+ Text [ English ] = "Level 3 TOX" ;
+ Text [ english_us ] = "Index 3" ;
+ Text [ italian ] = "Indice analitico 3" ;
+ Text [ spanish ] = "Índice alfabético 3" ;
+ Text [ french ] = "Index lexical 3" ;
+ Text [ dutch ] = "Trefwoordenlijst 3" ;
+ Text [ swedish ] = "Sakregister 3" ;
+ Text [ danish ] = "Stikordsregister 3" ;
+ Text [ portuguese ] = "Índice remissivo 3" ;
+ Text [ portuguese_brazilian ] = "Stichwortverzeichnis 3" ;
+ Text[ chinese_simplified ] = "Ë÷Òý 3";
+ Text[ russian ] = "Óêàçàòåëü 3";
+ Text[ polish ] = "Zestaw hase³ 3";
+ Text[ japanese ] = "õˆø 3";
+ Text[ chinese_traditional ] = "¯Á¤Þ 3";
+ Text[ arabic ] = "ÝåÑÓ ÃÈÌÏí 3";
+ Text[ greek ] = "ÅõñåôÞñéï ëÝîåùí 3";
+ Text[ korean ] = "»öÀÎ 3";
+ Text[ turkish ] = "Alfabetik dizin 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_IDXBREAK
+{
+ Text = "Stichwortverzeichnis Trenner" ;
+ Text [ English ] = "Break TOX" ;
+ Text [ english_us ] = "Index Separator" ;
+ Text [ italian ] = "Separatore indice analitico" ;
+ Text [ spanish ] = "Separador del índice alfabético" ;
+ Text [ french ] = "Index lexical : séparateur" ;
+ Text [ dutch ] = "Indexseparator" ;
+ Text [ swedish ] = "Sakregisteravskiljare" ;
+ Text [ danish ] = "Stikordsregister separator" ;
+ Text [ portuguese ] = "Separador de índice remissivo" ;
+ Text [ portuguese_brazilian ] = "Stichwortverzeichnis Trenner" ;
+ Text[ chinese_simplified ] = "Ë÷Òý·Ö¸ô·û";
+ Text[ russian ] = "Ðàçäåëèòåëü ïðåäìåòíîãî óêàçàòåëÿ";
+ Text[ polish ] = "Separator zestawu hase³";
+ Text[ japanese ] = "õˆø ¾ÊßÚ°À";
+ Text[ chinese_traditional ] = "¯Á¤Þ¤À¹j²Å";
+ Text[ arabic ] = "ÝÇÕá ÇáÝåÑÓ ÇáÃÈÌÏí";
+ Text[ greek ] = "Äéá÷ùñéóôéêü åõñåôçñßïõ ëÝîåùí";
+ Text[ korean ] = "»öÀÎ ±¸ºÐÀÚ";
+ Text[ turkish ] = "Alfabetik dizin ayýrma iþareti";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNTH
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Inhaltsverzeichnis Überschrift : Inhaltsverzeichnis šberschrift */
+ Text = "Inhaltsverzeichnis Überschrift" ;
+ Text [ English ] = "Headline TOC" ;
+ Text [ dutch ] = "Kop inhoudsopgave" ;
+ Text [ english_us ] = "Contents Heading" ;
+ Text [ italian ] = "Intestazione indice" ;
+ Text [ spanish ] = "Encabezado del índice" ;
+ Text [ french ] = "Titre de table des matières" ;
+ Text [ swedish ] = "Innehållsförteckning överskrift" ;
+ Text [ danish ] = "Indholdsfortegnelse overskrift" ;
+ Text [ portuguese ] = "Título do índice" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis Überschrift" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê îãëàâëåíèÿ";
+ Text[ polish ] = "Tytu³ spisu treœci";
+ Text[ japanese ] = "–ÚŽŸ Œ©o‚µ";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÝåÑÓ ÇáãÍÊæíÇÊ";
+ Text[ greek ] = "Åðéêåöáëßäá êáôáëüãïõ ðåñéå÷ïìÝíùí";
+ Text[ korean ] = "³»¿ë Á¦¸ñ";
+ Text[ turkish ] = "Ýçindekiler dizini baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT1
+{
+ Text = "Inhaltsverzeichnis 1" ;
+ Text [ English ] = "Level 1 TOC" ;
+ Text [ dutch ] = "Inhoudsopgave 1" ;
+ Text [ english_us ] = "Contents 1" ;
+ Text [ italian ] = "Indice 1" ;
+ Text [ spanish ] = "Índice 1" ;
+ Text [ french ] = "Table des matières niveau 1" ;
+ Text [ swedish ] = "Innehållsförteckning 1" ;
+ Text [ danish ] = "Indholdsfortegnelse 1" ;
+ Text [ portuguese ] = "Índice 1" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 1" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 1";
+ Text[ russian ] = "Îãëàâëåíèå 1";
+ Text[ polish ] = "Spis treœci 1";
+ Text[ japanese ] = "–ÚŽŸ 1";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 1";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 1";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 1";
+ Text[ korean ] = "³»¿ë 1";
+ Text[ turkish ] = "Ýçindekiler dizini 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT2
+{
+ Text = "Inhaltsverzeichnis 2" ;
+ Text [ English ] = "Level 2 TOC" ;
+ Text [ english_us ] = "Contents 2" ;
+ Text [ italian ] = "Indice 2" ;
+ Text [ spanish ] = "Índice 2" ;
+ Text [ french ] = "Table des matières niveau 2" ;
+ Text [ dutch ] = "Inhoudsopgave 2" ;
+ Text [ swedish ] = "Innehållsförteckning 2" ;
+ Text [ danish ] = "Indholdsfortegnelse 2" ;
+ Text [ portuguese ] = "Índice 2" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 2" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 2";
+ Text[ russian ] = "Îãëàâëåíèå 2";
+ Text[ polish ] = "Spis treœci 2";
+ Text[ japanese ] = "–ÚŽŸ 2";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 2";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 2";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 2";
+ Text[ korean ] = "³»¿ë 2";
+ Text[ turkish ] = "Ýçindekiler dizini 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT3
+{
+ Text = "Inhaltsverzeichnis 3" ;
+ Text [ English ] = "Level 3 TOC" ;
+ Text [ english_us ] = "Contents 3" ;
+ Text [ italian ] = "Indice 3" ;
+ Text [ spanish ] = "Índice 3" ;
+ Text [ french ] = "Table des matières niveau 3" ;
+ Text [ dutch ] = "Inhoudsopgave 3" ;
+ Text [ swedish ] = "Innehållsförteckning 3" ;
+ Text [ danish ] = "Indholdsfortegnelse 3" ;
+ Text [ portuguese ] = "Índice 3" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 3" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 3";
+ Text[ russian ] = "Îãëàâëåíèå 3";
+ Text[ polish ] = "Spis treœci 3";
+ Text[ japanese ] = "–ÚŽŸ 3";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 3";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 3";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 3";
+ Text[ korean ] = "³»¿ë 3";
+ Text[ turkish ] = "Ýçindekiler dizini 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT4
+{
+ Text = "Inhaltsverzeichnis 4" ;
+ Text [ English ] = "Level 4 TOC" ;
+ Text [ english_us ] = "Contents 4" ;
+ Text [ italian ] = "Indice 4" ;
+ Text [ spanish ] = "Índice 4" ;
+ Text [ french ] = "Table des matières niveau 4" ;
+ Text [ dutch ] = "Inhoudsopgave 4" ;
+ Text [ swedish ] = "Innehållsförteckning 4" ;
+ Text [ danish ] = "Indholdsfortegnelse 4" ;
+ Text [ portuguese ] = "Índice 4" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 4" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 4";
+ Text[ russian ] = "Îãëàâëåíèå 4";
+ Text[ polish ] = "Spis treœci 4";
+ Text[ japanese ] = "–ÚŽŸ 4";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 4";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 4";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 4";
+ Text[ korean ] = "³»¿ë 4";
+ Text[ turkish ] = "Ýçindekiler dizini 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT5
+{
+ Text = "Inhaltsverzeichnis 5" ;
+ Text [ English ] = "Level 5 TOC" ;
+ Text [ english_us ] = "Contents 5" ;
+ Text [ italian ] = "Indice 5" ;
+ Text [ spanish ] = "Índice 5" ;
+ Text [ french ] = "Table des matières niveau 5" ;
+ Text [ dutch ] = "Inhoudsopgave 5" ;
+ Text [ swedish ] = "Innehållsförteckning 5" ;
+ Text [ danish ] = "Indholdsfortegnelse 5" ;
+ Text [ portuguese ] = "Índice 5" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 5" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 5";
+ Text[ russian ] = "Îãëàâëåíèå 5";
+ Text[ polish ] = "Spis treœci 5";
+ Text[ japanese ] = "–ÚŽŸ 5";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 5";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 5";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 5";
+ Text[ korean ] = "³»¿ë 5";
+ Text[ turkish ] = "Ýçindekiler dizini 5";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT6
+{
+ Text = "Inhaltsverzeichnis 6" ;
+ Text [ English ] = "Level 6 TOC" ;
+ Text [ english_us ] = "Contents 6" ;
+ Text [ italian ] = "Indice 6" ;
+ Text [ spanish ] = "Índice 6" ;
+ Text [ french ] = "Table des matières niveau 6" ;
+ Text [ dutch ] = "Inhoudsopgave 6" ;
+ Text [ swedish ] = "Innehållsförteckning 6" ;
+ Text [ danish ] = "Indholdsfortegnelse 6" ;
+ Text [ portuguese ] = "Índice geral 6" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 6" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 6";
+ Text[ russian ] = "Îãëàâëåíèå 6";
+ Text[ polish ] = "Spis treœci 6";
+ Text[ japanese ] = "–ÚŽŸ 6";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 6";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 6";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 6";
+ Text[ korean ] = "³»¿ë 6";
+ Text[ turkish ] = "Ýçindekiler dizini 6";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT7
+{
+ Text = "Inhaltsverzeichnis 7" ;
+ Text [ English ] = "Level 7 TOC" ;
+ Text [ english_us ] = "Contents 7" ;
+ Text [ italian ] = "Indice 7" ;
+ Text [ spanish ] = "Índice 7" ;
+ Text [ french ] = "Table des matières niveau 7" ;
+ Text [ dutch ] = "Inhoudsopgave 7" ;
+ Text [ swedish ] = "Innehållsförteckning 7" ;
+ Text [ danish ] = "Indholdsfortegnelse 7" ;
+ Text [ portuguese ] = "Índice geral 7" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 7" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 7";
+ Text[ russian ] = "Îãëàâëåíèå 7";
+ Text[ polish ] = "Spis treœci 7";
+ Text[ japanese ] = "–ÚŽŸ 7";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 7";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 7";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 7";
+ Text[ korean ] = "³»¿ë 7";
+ Text[ turkish ] = "Ýçindekiler dizini 7";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT8
+{
+ Text = "Inhaltsverzeichnis 8" ;
+ Text [ English ] = "Level 8 TOC" ;
+ Text [ english_us ] = "Contents 8" ;
+ Text [ italian ] = "Indice 8" ;
+ Text [ spanish ] = "Índice 8" ;
+ Text [ french ] = "Table des matières niveau 8" ;
+ Text [ dutch ] = "Inhoudsopgave 8" ;
+ Text [ swedish ] = "Innehållsförteckning 8" ;
+ Text [ danish ] = "Indholdsfortegnelse 8" ;
+ Text [ portuguese ] = "Índice geral 8" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 8" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 8";
+ Text[ russian ] = "Îãëàâëåíèå 8";
+ Text[ polish ] = "Spis treœci 8";
+ Text[ japanese ] = "–ÚŽŸ 8";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 8";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 8";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 8";
+ Text[ korean ] = "³»¿ë 8";
+ Text[ turkish ] = "Ýçindekiler dizini 8";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT9
+{
+ Text = "Inhaltsverzeichnis 9" ;
+ Text [ English ] = "Level 9 TOC" ;
+ Text [ english_us ] = "Contents 9" ;
+ Text [ italian ] = "Indice 9" ;
+ Text [ spanish ] = "Índice 9" ;
+ Text [ french ] = "Table des matières niveau 9" ;
+ Text [ dutch ] = "Inhoudsopgave 9" ;
+ Text [ swedish ] = "Innehållsförteckning 9" ;
+ Text [ danish ] = "Indholdsfortegnelse 9" ;
+ Text [ portuguese ] = "Índice geral 9" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 9" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 9";
+ Text[ russian ] = "Îãëàâëåíèå 9";
+ Text[ polish ] = "Spis treœci 9";
+ Text[ japanese ] = "–ÚŽŸ 9";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 9";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 9";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 9";
+ Text[ korean ] = "³»¿ë 9";
+ Text[ turkish ] = "Ýçindekiler dizini 9";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_CNTNT10
+{
+ Text = "Inhaltsverzeichnis 10" ;
+ Text [ English ] = "Level 10 TOC" ;
+ Text [ english_us ] = "Contents 10" ;
+ Text [ italian ] = "Indice 10" ;
+ Text [ spanish ] = "Índicel 10" ;
+ Text [ french ] = "Table des matières niveau 10" ;
+ Text [ dutch ] = "Inhoudsopgave 10" ;
+ Text [ swedish ] = "Innehållsförteckning 10" ;
+ Text [ danish ] = "Indholdsfortegnelse 10" ;
+ Text [ portuguese ] = "Índice geral 10" ;
+ Text [ portuguese_brazilian ] = "Inhaltsverzeichnis 10" ;
+ Text[ chinese_simplified ] = "ÄÚÈÝĿ¼ 10";
+ Text[ russian ] = "Îãëàâëåíèå 10";
+ Text[ polish ] = "Spis treœci 10";
+ Text[ japanese ] = "–ÚŽŸ 10";
+ Text[ chinese_traditional ] = "¤º®e¥Ø¿ý 10";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÍÊæíÇÊ 10";
+ Text[ greek ] = "ÊáôÜëïãïò ðåñéå÷ïìÝíùí 10";
+ Text[ korean ] = "³»¿ë 10";
+ Text[ turkish ] = "Ýçindekiler dizini 10";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USERH
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Benutzerverzeichnis Überschrift : Benutzerverzeichnis šberschrift */
+ Text = "Benutzerverzeichnis Überschrift" ;
+ Text [ English ] = "Headline user TOX" ;
+ Text [ english_us ] = "User Index Heading" ;
+ Text [ italian ] = "Intestazione indice personalizzato" ;
+ Text [ spanish ] = "Encabezado del índice del usuario" ;
+ Text [ french ] = "Titre d'index personnalisé" ;
+ Text [ dutch ] = "Kopregel gebruikersindex" ;
+ Text [ swedish ] = "Användarförteckning överskrift" ;
+ Text [ danish ] = "Brugerindeks overskrift" ;
+ Text [ portuguese ] = "Título do índice do utilizador" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis Überschrift" ;
+ Text[ chinese_simplified ] = "Óû§Ë÷Òý±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê ïîëüçîâàòåëüñêîãî óêàçàòåëÿ";
+ Text[ polish ] = "Tytu³ indeksu u¿ytkownika";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø Œ©o‚µ";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÝåÑÓ ÇáãÓÊÎÏã";
+ Text[ greek ] = "Åðéêåöáëßäá åõñåôçñßïõ ÷ñçóôþí";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ Á¦¸ñ";
+ Text[ turkish ] = "Kullanýcý dizini baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER1
+{
+ Text = "Benutzerverzeichnis 1" ;
+ Text [ English ] = "Level 1 user TOX" ;
+ Text [ dutch ] = "Gebruikersindex 1" ;
+ Text [ english_us ] = "User Index 1" ;
+ Text [ italian ] = "Indice personalizzato 1" ;
+ Text [ spanish ] = "Índice del usuario 1" ;
+ Text [ french ] = "Index personnalisé 1" ;
+ Text [ swedish ] = "Användarförteckning 1" ;
+ Text [ danish ] = "Brugerindeks 1" ;
+ Text [ portuguese ] = "Índice do utilizador 1" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 1" ;
+ Text[ chinese_simplified ] = "Óû§Ë÷Òý 1";
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 1";
+ Text[ polish ] = "Indeks u¿ytkownika 1";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 1";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 1";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 1";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 1";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 1";
+ Text[ turkish ] = "Kullanýcý dizini 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER2
+{
+ Text = "Benutzerverzeichnis 2" ;
+ Text [ English ] = "Level 2 user TOX" ;
+ Text [ english_us ] = "User Index 2" ;
+ Text [ italian ] = "Indice personalizzato 2" ;
+ Text [ spanish ] = "Índice del usuario 2" ;
+ Text [ french ] = "Index personnalisé 2" ;
+ Text [ dutch ] = "Gebruikersindex 2" ;
+ Text [ swedish ] = "Användarförteckning 2" ;
+ Text [ danish ] = "Brugerindeks 2" ;
+ Text [ portuguese ] = "Índice do utilizador 2" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 2" ;
+ Text[ chinese_simplified ] = "Óû§Ë÷Òý 2";
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 2";
+ Text[ polish ] = "Indeks u¿ytkownika 2";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 2";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 2";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 2";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 2";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 2";
+ Text[ turkish ] = "Kullanýcý dizini 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER3
+{
+ Text = "Benutzerverzeichnis 3" ;
+ Text [ English ] = "Level 3 user TOX" ;
+ Text [ english_us ] = "User Index 3" ;
+ Text [ italian ] = "Indice personalizzato 3" ;
+ Text [ spanish ] = "Índice del usuario 3" ;
+ Text [ french ] = "Index personnalisé 3" ;
+ Text [ dutch ] = "Gebruikersindex 3" ;
+ Text [ swedish ] = "Användarförteckning 3" ;
+ Text [ danish ] = "Brugerindeks 3" ;
+ Text [ portuguese ] = "Índice do utilizador 3" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 3" ;
+ Text[ chinese_simplified ] = "Óû§Ë÷Òý 3";
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 3";
+ Text[ polish ] = "Indeks u¿ytkownika 3";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 3";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 3";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 3";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 3";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 3";
+ Text[ turkish ] = "Kullanýcý dizini 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER4
+{
+ Text = "Benutzerverzeichnis 4" ;
+ Text [ English ] = "Level 4 user TOX" ;
+ Text [ english_us ] = "User Index 4" ;
+ Text [ italian ] = "Indice personalizzato 4" ;
+ Text [ spanish ] = "Índice del usuario 4" ;
+ Text [ french ] = "Index personnalisé 4" ;
+ Text [ dutch ] = "Gebruikersindex 4" ;
+ Text [ swedish ] = "Användarförteckning 4" ;
+ Text [ danish ] = "Brugerindeks 4" ;
+ Text [ portuguese ] = "Índice do utilizador 4" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 4" ;
+ Text[ chinese_simplified ] = "Óû§Ë÷Òý 4";
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 4";
+ Text[ polish ] = "Indeks u¿ytkownika 4";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 4";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 4";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 4";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 4";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 4";
+ Text[ turkish ] = "Kullanýcý dizini 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER5
+{
+ Text = "Benutzerverzeichnis 5" ;
+ Text [ English ] = "Level 5 user TOX" ;
+ Text [ english_us ] = "User Index 5" ;
+ Text [ italian ] = "Indice personalizzato 5" ;
+ Text [ spanish ] = "Índice del usuario 5" ;
+ Text [ french ] = "Index personnalisé 5" ;
+ Text [ dutch ] = "Gebruikersindex 5" ;
+ Text [ swedish ] = "Användarförteckning 5" ;
+ Text [ danish ] = "Brugerindeks 5" ;
+ Text [ portuguese ] = "Índice do utilizador 5" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 5" ;
+ Text[ chinese_simplified ] = "Óû§Ë÷Òý 5";
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 5";
+ Text[ polish ] = "Indeks u¿ytkownika 5";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 5";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 5";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 5";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 5";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 5";
+ Text[ turkish ] = "Kullanýcý dizini 5";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER6
+{
+ Text = "Benutzerverzeichnis 6" ;
+ Text [ English ] = "Level 6 user TOX" ;
+ Text [ dutch ] = "Gebruikersindex 6" ;
+ Text [ english_us ] = "User Index 6" ;
+ Text [ italian ] = "Indice personalizzato 6" ;
+ Text [ spanish ] = "Índice del usuario 6" ;
+ Text [ french ] = "Index personnalisé 6" ;
+ Text [ swedish ] = "Användarförteckning 6" ;
+ Text [ danish ] = "Brugerindeks 6" ;
+ Text [ portuguese ] = "Índice personalizado 6" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 6" ;
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 6";
+ Text[ polish ] = "Indeks u¿ytkownika 6";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 6";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 6";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 6";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 6";
+ Text[ chinese_simplified ] = "Óû§Ä¿Â¼ 6";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 6";
+ Text[ turkish ] = "Kullanýcý dizini 6";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER7
+{
+ Text = "Benutzerverzeichnis 7" ;
+ Text [ English ] = "Level 7 user TOX" ;
+ Text [ english_us ] = "User Index 7" ;
+ Text [ italian ] = "Indice personalizzato 7" ;
+ Text [ spanish ] = "Índice del usuario 7" ;
+ Text [ french ] = "Index personnalisé 7" ;
+ Text [ dutch ] = "Gebruikersindex 7" ;
+ Text [ swedish ] = "Användarförteckning 7" ;
+ Text [ danish ] = "Brugerindeks 7" ;
+ Text [ portuguese ] = "Índice personalizado 7" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 7" ;
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 7";
+ Text[ polish ] = "Indeks u¿ytkownika 7";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 7";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 7";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 7";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 7";
+ Text[ chinese_simplified ] = "Óû§Ä¿Â¼ 7";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 7";
+ Text[ turkish ] = "Kullanýcý dizini 7";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER8
+{
+ Text = "Benutzerverzeichnis 8" ;
+ Text [ English ] = "Level 8 user TOX" ;
+ Text [ english_us ] = "User Index 8" ;
+ Text [ italian ] = "Indice personalizzato 8" ;
+ Text [ spanish ] = "Índice del usuario 8" ;
+ Text [ french ] = "Index personnalisé 8" ;
+ Text [ dutch ] = "Gebruikersindex 8" ;
+ Text [ swedish ] = "Användarförteckning 8" ;
+ Text [ danish ] = "Brugerindeks 8" ;
+ Text [ portuguese ] = "Índice personalizado 8" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 8" ;
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 8";
+ Text[ polish ] = "Indeks u¿ytkownika 8";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 8";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 8";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 8";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 8";
+ Text[ chinese_simplified ] = "Óû§Ä¿Â¼ 8";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 8";
+ Text[ turkish ] = "Kullanýcý dizini 8";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER9
+{
+ Text = "Benutzerverzeichnis 9" ;
+ Text [ English ] = "Level 9 user TOX" ;
+ Text [ english_us ] = "User Index 9" ;
+ Text [ italian ] = "Indice personalizzato 9" ;
+ Text [ spanish ] = "Índice del usuario 9" ;
+ Text [ french ] = "Index personnalisé 9" ;
+ Text [ dutch ] = "Gebruikersindex 9" ;
+ Text [ swedish ] = "Användarförteckning 9" ;
+ Text [ danish ] = "Brugerindeks 9" ;
+ Text [ portuguese ] = "Índice personalizado 9" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 9" ;
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 9";
+ Text[ polish ] = "Indeks u¿ytkownika 9";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 9";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 9";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 9";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 9";
+ Text[ chinese_simplified ] = "Óû§Ä¿Â¼ 9";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 9";
+ Text[ turkish ] = "Kullanýcý dizini 9";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_USER10
+{
+ Text = "Benutzerverzeichnis 10" ;
+ Text [ English ] = "Level 10 user TOX" ;
+ Text [ english_us ] = "User Index 10" ;
+ Text [ italian ] = "Indice personalizzato 10" ;
+ Text [ spanish ] = "Índice del usuario 10" ;
+ Text [ french ] = "Index personnalisé 10" ;
+ Text [ dutch ] = "Gebruikersindex 10" ;
+ Text [ swedish ] = "Användarförteckning 10" ;
+ Text [ danish ] = "Brugerindeks 10" ;
+ Text [ portuguese ] = "Índice personalizado 10" ;
+ Text [ portuguese_brazilian ] = "Benutzerverzeichnis 10" ;
+ Text[ russian ] = "Ïîëüçîâàòåëüñêèé óêàçàòåëü 10";
+ Text[ polish ] = "Indeks u¿ytkownika 10";
+ Text[ japanese ] = "Õ°»Þ°’è‹`‚Ìõˆø 10";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÓÊÎÏã 10";
+ Text[ greek ] = "ÅõñåôÞñéï ÷ñçóôþí 10";
+ Text[ korean ] = "»ç¿ëÀÚ »öÀÎ 10";
+ Text[ chinese_simplified ] = "Óû§Ä¿Â¼ 10";
+ Text[ chinese_traditional ] = "¦Û­q¥Ø¿ý 10";
+ Text[ turkish ] = "Kullanýcý dizini 10";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_ILLUSH
+{
+ Text = "Abbildungsverzeichnis Überschrift" ;
+ Text [ English ] = "Illustration index heading" ;
+ Text[ english_us ] = "Illustration Index Heading";
+ Text[ portuguese ] = "Título - Índice de ilustrações";
+ Text[ russian ] = "Ñïèñîê ðèñóíêîâ: çàãîëîâîê";
+ Text[ greek ] = "Åðéêåöáëßäá êáôáëüãïõ åéêüíùí";
+ Text[ dutch ] = "Opschrift afbeeldingenregister";
+ Text[ french ] = "Titre de l'index des illustrations";
+ Text[ spanish ] = "Encabezado Índice de ilustraciones";
+ Text[ italian ] = "Intestazione indice illustrazioni";
+ Text[ danish ] = "Figuroversigt overskrift";
+ Text[ swedish ] = "Illustrationsförteckning överskrift";
+ Text[ polish ] = "Indeks ilustracji Tytu³";
+ Text[ portuguese_brazilian ] = "Illustration index heading";
+ Text[ japanese ] = "²×½ÄõˆøŒ©o‚µ";
+ Text[ korean ] = "»ðÈ­ »öÀÎ Á¦¸ñ";
+ Text[ chinese_simplified ] = "²åͼĿ¼±êÌâ";
+ Text[ chinese_traditional ] = "´¡¹Ï¥Ø¿ý¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÝåÑÓ ÇáÕæÑ ÇáÅíÖÇÍíÉ";
+ Text[ turkish ] = "Resim dizini baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_ILLUS1
+{
+ Text = "Abbildungsverzeichnis 1" ;
+ Text [ English ] = "Illustration index 1" ;
+ Text[ english_us ] = "Illustration Index 1";
+ Text[ portuguese ] = "Índice de ilustrações 1";
+ Text[ russian ] = "Ñïèñîê ðèñóíêîâ 1";
+ Text[ greek ] = "ÊáôÜëïãïò åéêüíùí 1";
+ Text[ dutch ] = "Afbeeldingenregister 1";
+ Text[ french ] = "Index des illustrations 1";
+ Text[ spanish ] = "Índice de ilustraciones 1";
+ Text[ italian ] = "Indice delle illustrazioni 1";
+ Text[ danish ] = "Figuroversigt 1";
+ Text[ swedish ] = "Illustrationsförteckning 1";
+ Text[ polish ] = "Indeks ilustracji 1";
+ Text[ portuguese_brazilian ] = "Illustration index 1";
+ Text[ japanese ] = "²×½Äõˆø 1";
+ Text[ korean ] = "»ðÈ­ »öÀÎ 1";
+ Text[ chinese_simplified ] = "²åͼĿ¼ 1";
+ Text[ chinese_traditional ] = "´¡¹Ï¥Ø¿ý 1";
+ Text[ arabic ] = "ÝåÑÓ ÇáÕæÑ ÇáÅíÖÇÍíÉ 1";
+ Text[ turkish ] = "Resim dizini 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_OBJECTH
+{
+ Text = "Objektverzeichnis Überschrift";
+ Text [ English ] = "Object index heading" ;
+ Text[ english_us ] = "Object index heading";
+ Text[ portuguese ] = "Título - Índice de objectos";
+ Text[ russian ] = "Ñïèñîê îáúåêòîâ: çàãîëîâîê";
+ Text[ greek ] = "Åðéêåöáëßäá êáôáëüãïõ áíôéêåéìÝíùí";
+ Text[ dutch ] = "Opschrift objectenregister";
+ Text[ french ] = "Titre d'index d'objets";
+ Text[ spanish ] = "Encabezado índice de objetos";
+ Text[ italian ] = "Intestazione indice degli oggetti";
+ Text[ danish ] = "Objektindeks overskrift";
+ Text[ swedish ] = "Objektförteckning överskrift";
+ Text[ polish ] = "Indeks obiektów Tytu³";
+ Text[ portuguese_brazilian ] = "Object index heading";
+ Text[ japanese ] = "µÌÞ¼Þª¸ÄõˆøŒ©o‚µ";
+ Text[ korean ] = "°³Ã¼ »öÀÎ Á¦¸ñ";
+ Text[ chinese_simplified ] = "¶ÔÏóĿ¼±êÌâ";
+ Text[ chinese_traditional ] = "ª«¥ó¥Ø¿ý¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÝåÑÓ ÇáßÇÆäÇÊ";
+ Text[ turkish ] = "Nesne dizini baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_OBJECT1
+{
+ Text = "Objektverzeichnis 1" ;
+ Text [ English ] = "Object index 1" ;
+ Text[ english_us ] = "Object index 1";
+ Text[ portuguese ] = "Índice de objectos 1";
+ Text[ russian ] = "Ñïèñîê îáúåêòîâ 1";
+ Text[ greek ] = "ÊáôÜëïãïò áíôéêåéìÝíùí 1";
+ Text[ dutch ] = "Objectenregister 1";
+ Text[ french ] = "Index d'objet 1";
+ Text[ spanish ] = "Índice de objetos 1";
+ Text[ italian ] = "Indice degli oggetti 1";
+ Text[ danish ] = "Objektindeks 1";
+ Text[ swedish ] = "Objektförteckning 1";
+ Text[ polish ] = "Indeks obiektów 1";
+ Text[ portuguese_brazilian ] = "Object index 1";
+ Text[ japanese ] = "µÌÞ¼Þª¸Äõˆø 1";
+ Text[ korean ] = "°³Ã¼ »öÀÎ 1";
+ Text[ chinese_simplified ] = "¶ÔÏóĿ¼ 1";
+ Text[ chinese_traditional ] = "ª«¥ó¥Ø¿ý 1";
+ Text[ arabic ] = "ÝåÑÓ ÇáßÇÆäÇÊ 1";
+ Text[ turkish ] = "Nesne dizini 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_TABLESH
+{
+ Text = "Tabellenverzeichnis Überschrift" ;
+ Text [ English ] = "Table index heading" ;
+ Text[ english_us ] = "Table index heading";
+ Text[ portuguese ] = "Título - Índice de tabelas";
+ Text[ russian ] = "Ñïèñîê òàáëèö: çàãîëîâîê";
+ Text[ greek ] = "Åðéêåöáëßäá åõñåôÞñéï ðßíáêá";
+ Text[ dutch ] = "Opschrift tabellenregister";
+ Text[ french ] = "Titre d'index de tables";
+ Text[ spanish ] = "Encabezado índice de tablas";
+ Text[ italian ] = "Intestazione indice tabella";
+ Text[ danish ] = "Tabeloversigt overskrift";
+ Text[ swedish ] = "Tabellförteckning överskrift";
+ Text[ polish ] = "Indeks tabeli Tytu³";
+ Text[ portuguese_brazilian ] = "Table index heading";
+ Text[ japanese ] = "•\\õˆøŒ©o‚µ";
+ Text[ korean ] = "Ç¥»öÀÎ Á¦¸ñ";
+ Text[ chinese_simplified ] = "±í¸ñĿ¼±êÌâ";
+ Text[ chinese_traditional ] = "ªí®æ¥Ø¿ý¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÝåÑÓ ÇáÌÏæá";
+ Text[ turkish ] = "Tablo dizini baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_TABLES1
+{
+ Text = "Tabellenverzeichnis 1" ;
+ Text [ English ] = "Table index 1" ;
+ Text[ english_us ] = "Table index 1";
+ Text[ portuguese ] = "Índice de tabelas 1";
+ Text[ russian ] = "Ñïèñîê òàáëèö 1";
+ Text[ greek ] = "Ðåñéå÷üìåíá ðßíáêá 1";
+ Text[ dutch ] = "Tabellenregister 1";
+ Text[ french ] = "Index de tables 1";
+ Text[ spanish ] = "Índice de tablas 1";
+ Text[ italian ] = "Indice tabella 1";
+ Text[ danish ] = "Tabeloversigt 1";
+ Text[ swedish ] = "Tabellförteckning 1";
+ Text[ polish ] = "Indeks tabeli 1";
+ Text[ portuguese_brazilian ] = "Table index 1";
+ Text[ japanese ] = "•\\õˆø 1";
+ Text[ korean ] = "Ç¥ »öÀÎ 1";
+ Text[ chinese_simplified ] = "±í¸ñĿ¼ 1";
+ Text[ chinese_traditional ] = "ªí®æ¥Ø¿ý 1";
+ Text[ arabic ] = "ÝåÑÓ ÌÏæá 1";
+ Text[ turkish ] = "Tablo dizini 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_AUTHORITIESH
+{
+ Text = "Literaturverzeichnis Überschrift" ;
+ Text [ English ] = "Index of authorities heading" ;
+ Text[ english_us ] = "Bibliography Heading";
+ Text[ portuguese ] = "Título - Bibliografia";
+ Text[ russian ] = "Ñïèñîê ëèòåðàòóðû: çàãîëîâîê";
+ Text[ greek ] = "Åðéêåöáëßäá âéâëéïãñáößáò";
+ Text[ dutch ] = "Opschrift literatuurlijst";
+ Text[ french ] = "Titre de bibliographie";
+ Text[ spanish ] = "Encabezado Bibliografía";
+ Text[ italian ] = "Intestazione bibliografia";
+ Text[ danish ] = "Litteraturliste overskrift";
+ Text[ swedish ] = "Litteraturförteckning överskrift";
+ Text[ polish ] = "Spis literatury Tytu³";
+ Text[ portuguese_brazilian ] = "Index of authorities heading";
+ Text[ japanese ] = "ŽQl•¶Œ£•\\Œ©o‚µ";
+ Text[ korean ] = "Âü°í¹®Çå ¸Ó¸®±Û";
+ Text[ chinese_simplified ] = "ÎÄÏ×Ŀ¼±êÌâ";
+ Text[ chinese_traditional ] = "¤åÄm¥Ø¿ý¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÝåÑÓ ÇáãÑÇÌÚ";
+ Text[ turkish ] = "Kaynakça dizini baþlýðý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_TOX_AUTHORITIES1
+{
+ Text = "Literaturverzeichnis 1" ;
+ Text [ English ] = "Index of authorities 1" ;
+ Text[ english_us ] = "Bibliography 1";
+ Text[ portuguese ] = "Bibliografia 1";
+ Text[ russian ] = "Ñïèñîê ëèòåðàòóðû 1";
+ Text[ greek ] = "Âéâëéïãñáößá 1";
+ Text[ dutch ] = "Literatuurlijst 1";
+ Text[ french ] = "Bibliographie 1";
+ Text[ spanish ] = "Bibliografía 1";
+ Text[ italian ] = "Bibliografia 1";
+ Text[ danish ] = "Litteraturliste 1";
+ Text[ swedish ] = "Litteraturförteckning 1";
+ Text[ polish ] = "Spis literatury 1";
+ Text[ portuguese_brazilian ] = "Index of authorities 1";
+ Text[ japanese ] = "ŽQl•¶Œ£•\\ 1";
+ Text[ korean ] = "Âü°í¹®Çå 1";
+ Text[ chinese_simplified ] = "ÎÄÏ×Ŀ¼ 1";
+ Text[ chinese_traditional ] = "¤åÄm¥Ø¿ý 1";
+ Text[ arabic ] = "ÝåÑÓ ÇáãÑÇÌÚ 1";
+ Text[ turkish ] = "Kaynakça dizini 1";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_POOLCOLL_DOC_TITEL
+{
+ Text = "Titel" ;
+ Text [ English ] = "Title" ;
+ Text [ dutch ] = "Titel" ;
+ Text [ english_us ] = "Title" ;
+ Text [ italian ] = "Titolo" ;
+ Text [ spanish ] = "Título" ;
+ Text [ french ] = "Titre principal" ;
+ Text [ swedish ] = "Rubrik" ;
+ Text [ danish ] = "Titel" ;
+ Text [ portuguese ] = "Título principal" ;
+ Text [ portuguese_brazilian ] = "Titel" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "•\\‘è";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä";
+ Text[ greek ] = "Ôßôëïò";
+ Text[ korean ] = "Á¦¸ñ";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_DOC_SUBTITEL
+{
+ Text = "Untertitel" ;
+ Text [ English ] = "Subtitle" ;
+ Text [ dutch ] = "Subtitel" ;
+ Text [ english_us ] = "Subtitle" ;
+ Text [ italian ] = "Sottotitolo" ;
+ Text [ spanish ] = "Subtítulo" ;
+ Text [ french ] = "Sous-titre" ;
+ Text [ swedish ] = "Underrubrik" ;
+ Text [ danish ] = "Undertitel" ;
+ Text [ portuguese ] = "Subtítulo" ;
+ Text [ portuguese_brazilian ] = "Untertitel" ;
+ Text[ chinese_simplified ] = "·Ö±êÌâ";
+ Text[ russian ] = "Ïîäçàãîëîâîê";
+ Text[ polish ] = "Podtytu³";
+ Text[ japanese ] = "•›‘è";
+ Text[ chinese_traditional ] = "¤À¼ÐÃD";
+ Text[ arabic ] = "ÇáÚäæÇä ÇáÝÑÚí";
+ Text[ greek ] = "Õðüôéôëïò";
+ Text[ korean ] = "ºÎÁ¦";
+ Text[ turkish ] = "Alt baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HTML_BLOCKQUOTE
+{
+ Text = "Zitat" ;
+ Text [ English ] = "Citation" ;
+ Text [ dutch ] = "Citaat" ;
+ Text [ english_us ] = "Quotations" ;
+ Text [ swedish ] = "Citat" ;
+ Text [ danish ] = "Citat" ;
+ Text [ italian ] = "Citazione" ;
+ Text [ spanish ] = "Cita" ;
+ Text [ french ] = "Citation" ;
+ Text [ portuguese ] = "Citação" ;
+ Text [ portuguese_brazilian ] = "Zitat" ;
+ Text[ chinese_simplified ] = "ÒýÓÃÎÄ";
+ Text[ russian ] = "Öèòàòà";
+ Text[ polish ] = "Cytat";
+ Text[ japanese ] = "ˆø—p";
+ Text[ chinese_traditional ] = "¤Þ¤å";
+ Text[ arabic ] = "ÇÓÊÔåÇÏ ÈÞæá";
+ Text[ greek ] = "Míçìüíåõóç";
+ Text[ korean ] = "Àοë";
+ Text[ turkish ] = "Alýntý";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HTML_PRE
+{
+ Text = "Vorformatierter Text" ;
+ Text [ English ] = "Preformated Text" ;
+ Text [ dutch ] = "Reeds opgemaakte tekst" ;
+ Text [ english_us ] = "Preformatted Text" ;
+ Text [ swedish ] = "Förformaterad text" ;
+ Text [ danish ] = "Forudformateret tekst" ;
+ Text [ italian ] = "Testo preformattato" ;
+ Text [ spanish ] = "Texto preformateado" ;
+ Text [ french ] = "Texte préformaté" ;
+ Text [ portuguese ] = "Texto preformatado" ;
+ Text [ portuguese_brazilian ] = "Vorformatierter Text" ;
+ Text[ chinese_simplified ] = "Ô¤¸ñʽ»¯µÄÕýÎÄ";
+ Text[ russian ] = "Òåêñò â çàäàííîì ôîðìàòå";
+ Text[ polish ] = "Tekst niesformatowany";
+ Text[ japanese ] = "‘Ž®Ý’è‘O‚Ì÷½Ä";
+ Text[ chinese_traditional ] = "¹w®æ¦¡¤Æªº¤º¤å";
+ Text[ arabic ] = "äÕ ãäÓÞ ãÓÈÞÇð";
+ Text[ greek ] = "ÐñïìïñöïðïéçìÝíï êåßìåíï";
+ Text[ korean ] = "¼­½ÄÈ­µÈ ÅؽºÆ®";
+ Text[ turkish ] = "Önceden formatlanmýþ metin";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HTML_HR
+{
+ Text = "Horizontale Linie" ;
+ Text [ English ] = "Horizontal Line" ;
+ Text [ dutch ] = "Horizontale lijn" ;
+ Text [ english_us ] = "Horizontal Line" ;
+ Text [ swedish ] = "Horisontell linje" ;
+ Text [ danish ] = "Vandret linje" ;
+ Text [ italian ] = "Linea orizzontale" ;
+ Text [ spanish ] = "Línea horizontal" ;
+ Text [ french ] = "Ligne horizontale" ;
+ Text [ portuguese ] = "Linha horizontal" ;
+ Text [ portuguese_brazilian ] = "Horizontale Linie" ;
+ Text[ chinese_simplified ] = "ˮƽÏßÌõ";
+ Text[ russian ] = "Ãîðèçîíòàëüíàÿ ëèíèÿ";
+ Text[ polish ] = "Linia pozioma";
+ Text[ japanese ] = "‰¡ü";
+ Text[ chinese_traditional ] = "¤ô¥­½u±ø";
+ Text[ arabic ] = "ÎØ ÃÝÞí";
+ Text[ greek ] = "Ïñéæüíôéá ãñáììÞ";
+ Text[ korean ] = "¼öÆò ÁÙ";
+ Text[ turkish ] = "Yatay çizgi";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HTML_DD
+{
+ Text = "Listeninhalt" ;
+ Text [ English ] = "Definition Data" ;
+ Text [ dutch ] = "Lijstinhoud" ;
+ Text [ english_us ] = "List Contents" ;
+ Text [ swedish ] = "Listinnehåll" ;
+ Text [ danish ] = "Listeindhold" ;
+ Text [ italian ] = "Contenuto elenco" ;
+ Text [ spanish ] = "Contenido de lista" ;
+ Text [ french ] = "Contenu de liste" ;
+ Text [ portuguese ] = "Conteúdo da lista" ;
+ Text [ portuguese_brazilian ] = "Listeninhalt" ;
+ Text[ chinese_simplified ] = "ÁбíÄÚÈÝ";
+ Text[ russian ] = "Ñïèñîê ñîäåðæàíèÿ";
+ Text[ polish ] = "TreϾ listy";
+ Text[ japanese ] = "ؽĂ̓à—e";
+ Text[ chinese_traditional ] = "²M³æ¤º®e";
+ Text[ arabic ] = "ãÍÊæíÇÊ ÇáÞÇÆãÉ";
+ Text[ greek ] = "Ðåñéå÷üìåíï ëßóôáò";
+ Text[ korean ] = "¸®½ºÆ® ³»¿ë";
+ Text[ turkish ] = "Liste içeriði";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLCOLL_HTML_DT
+{
+ Text = "Listenkopf" ;
+ Text [ English ] = "Definition Term" ;
+ Text [ dutch ] = "Lijsttitel" ;
+ Text [ english_us ] = "List Heading" ;
+ Text [ swedish ] = "Listhuvud" ;
+ Text [ danish ] = "Listehoved" ;
+ Text [ italian ] = "Intestazione elenco" ;
+ Text [ spanish ] = "Encabezamiento de lista" ;
+ Text [ french ] = "En-tête de liste" ;
+ Text [ portuguese ] = "Cabeçalho da lista" ;
+ Text [ portuguese_brazilian ] = "Listenkopf" ;
+ Text[ chinese_simplified ] = "Áбí±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê ñïèñêà";
+ Text[ polish ] = "Nag³ówek listy";
+ Text[ japanese ] = "ؽĂ̌©o‚µ";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "²M³æ¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä ÇáÞÇÆãÉ";
+ Text[ greek ] = "Êåöáëßäá êáôáëüãïõ";
+ Text[ korean ] = "¸®½ºÆ® Á¦¸ñ";
+ Text[ turkish ] = "Liste baþlýðý";
+};
+//programmatic para style names
+String STR_POCO_PRGM_STANDARD
+{
+ Text = "Standard" ;
+};
+String STR_POCO_PRGM_TEXT
+{
+ Text = "Text body" ;
+};
+String STR_POCO_PRGM_TEXT_IDENT
+{
+ Text = "First line indent" ;
+};
+String STR_POCO_PRGM_TEXT_NEGIDENT
+{
+ Text = "Hanging indent" ;
+};
+String STR_POCO_PRGM_TEXT_MOVE
+{
+ Text = "Text body indent" ;
+};
+String STR_POCO_PRGM_GREETING
+{
+ Text = "Salutation" ;
+};
+String STR_POCO_PRGM_SIGNATURE
+{
+ Text = "Signature" ;
+};
+String STR_POCO_PRGM_HEADLINE_BASE
+{
+ Text = "Heading" ;
+};
+String STR_POCO_PRGM_NUMBUL_BASE
+{
+ Text = "List" ;
+};
+String STR_POCO_PRGM_REGISTER_BASE
+{
+ Text = "Index" ;
+};
+String STR_POCO_PRGM_CONFRONTATION
+{
+ Text = "List Indent" ;
+};
+String STR_POCO_PRGM_MARGINAL
+{
+ Text = "Marginalia" ;
+};
+String STR_POCO_PRGM_HEADLINE1
+{
+ Text = "Heading 1" ;
+};
+String STR_POCO_PRGM_HEADLINE2
+{
+ Text = "Heading 2" ;
+};
+String STR_POCO_PRGM_HEADLINE3
+{
+ Text = "Heading 3" ;
+};
+String STR_POCO_PRGM_HEADLINE4
+{
+ Text = "Heading 4" ;
+};
+String STR_POCO_PRGM_HEADLINE5
+{
+ Text = "Heading 5" ;
+};
+String STR_POCO_PRGM_HEADLINE6
+{
+ Text = "Heading 6" ;
+};
+String STR_POCO_PRGM_HEADLINE7
+{
+ Text = "Heading 7" ;
+};
+String STR_POCO_PRGM_HEADLINE8
+{
+ Text = "Heading 8" ;
+};
+String STR_POCO_PRGM_HEADLINE9
+{
+ Text = "Heading 9" ;
+};
+String STR_POCO_PRGM_HEADLINE10
+{
+ Text = "Heading 10" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL1S
+{
+ Text = "Numbering 1 Start" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL1
+{
+ Text = "Numbering 1" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL1E
+{
+ Text = "Numbering 1 End" ;
+};
+String STR_POCO_PRGM_NUM_NONUM1
+{
+ Text = "Numbering 1 Cont." ;
+};
+String STR_POCO_PRGM_NUM_LEVEL2S
+{
+ Text = "Numbering 2 Start" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL2
+{
+ Text = "Numbering 2" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL2E
+{
+ Text = "Numbering 2 End" ;
+};
+String STR_POCO_PRGM_NUM_NONUM2
+{
+ Text = "Numbering 2 Cont." ;
+};
+String STR_POCO_PRGM_NUM_LEVEL3S
+{
+ Text = "Numbering 3 Start" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL3
+{
+ Text = "Numbering 3" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL3E
+{
+ Text = "Numbering 3 End" ;
+};
+String STR_POCO_PRGM_NUM_NONUM3
+{
+ Text = "Numbering 3 Cont." ;
+};
+String STR_POCO_PRGM_NUM_LEVEL4S
+{
+ Text = "Numbering 4 Start" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL4
+{
+ Text = "Numbering 4" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL4E
+{
+ Text = "Numbering 4 End" ;
+};
+String STR_POCO_PRGM_NUM_NONUM4
+{
+ Text = "Numbering 4 Cont." ;
+};
+String STR_POCO_PRGM_NUM_LEVEL5S
+{
+ Text = "Numbering 5 Start" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL5
+{
+ Text = "Numbering 5" ;
+};
+String STR_POCO_PRGM_NUM_LEVEL5E
+{
+ Text = "Numbering 5 End" ;
+};
+String STR_POCO_PRGM_NUM_NONUM5
+{
+ Text = "Numbering 5 Cont." ;
+};
+String STR_POCO_PRGM_BUL_LEVEL1S
+{
+ Text = "List 1 Start" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL1
+{
+ Text = "List 1" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL1E
+{
+ Text = "List 1 End" ;
+};
+String STR_POCO_PRGM_BUL_NONUM1
+{
+ Text = "List 1 Cont." ;
+};
+String STR_POCO_PRGM_BUL_LEVEL2S
+{
+ Text = "List 2 Start" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL2
+{
+ Text = "List 2" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL2E
+{
+ Text = "List 2 End" ;
+};
+String STR_POCO_PRGM_BUL_NONUM2
+{
+ Text = "List 2 Cont." ;
+};
+String STR_POCO_PRGM_BUL_LEVEL3S
+{
+ Text = "List 3 Start" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL3
+{
+ Text = "List 3" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL3E
+{
+ Text = "List 3 End" ;
+};
+String STR_POCO_PRGM_BUL_NONUM3
+{
+ Text = "List 3 Cont." ;
+};
+String STR_POCO_PRGM_BUL_LEVEL4S
+{
+ Text = "List 4 Start" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL4
+{
+ Text = "List 4" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL4E
+{
+ Text = "List 4 End" ;
+};
+String STR_POCO_PRGM_BUL_NONUM4
+{
+ Text = "List 4 Cont." ;
+};
+String STR_POCO_PRGM_BUL_LEVEL5S
+{
+ Text = "List 5 Start" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL5
+{
+ Text = "List 5" ;
+};
+String STR_POCO_PRGM_BUL_LEVEL5E
+{
+ Text = "List 5 End" ;
+};
+String STR_POCO_PRGM_BUL_NONUM5
+{
+ Text = "List 5 Cont." ;
+};
+String STR_POCO_PRGM_HEADER
+{
+ Text = "Header" ;
+};
+String STR_POCO_PRGM_HEADERL
+{
+ Text = "Header left" ;
+};
+String STR_POCO_PRGM_HEADERR
+{
+ Text = "Header right" ;
+};
+String STR_POCO_PRGM_FOOTER
+{
+ Text = "Footer" ;
+};
+String STR_POCO_PRGM_FOOTERL
+{
+ Text = "Footer left" ;
+};
+String STR_POCO_PRGM_FOOTERR
+{
+ Text = "Footer right" ;
+};
+String STR_POCO_PRGM_TABLE
+{
+ Text = "Table Contents" ;
+};
+String STR_POCO_PRGM_TABLE_HDLN
+{
+ Text = "Table Heading" ;
+};
+String STR_POCO_PRGM_FRAME
+{
+ Text = "Frame contents" ;
+};
+String STR_POCO_PRGM_FOOTNOTE
+{
+ Text = "Footnote" ;
+};
+String STR_POCO_PRGM_ENDNOTE
+{
+ Text = "Endnote" ;
+};
+String STR_POCO_PRGM_LABEL
+{
+ Text = "Caption" ;
+};
+String STR_POCO_PRGM_LABEL_ABB
+{
+ Text = "Illustration" ;
+};
+String STR_POCO_PRGM_LABEL_TABLE
+{
+ Text = "Table" ;
+};
+String STR_POCO_PRGM_LABEL_FRAME
+{
+ Text = "Text" ;
+};
+String STR_POCO_PRGM_LABEL_DRAWING
+{
+ Text = "Drawing";
+};
+String STR_POCO_PRGM_JAKETADRESS
+{
+ Text = "Addressee" ;
+};
+String STR_POCO_PRGM_SENDADRESS
+{
+ Text = "Sender" ;
+};
+String STR_POCO_PRGM_TOX_IDXH
+{
+ Text = "Index Heading" ;
+};
+String STR_POCO_PRGM_TOX_IDX1
+{
+ Text = "Index 1" ;
+};
+String STR_POCO_PRGM_TOX_IDX2
+{
+ Text = "Index 2" ;
+};
+String STR_POCO_PRGM_TOX_IDX3
+{
+ Text = "Index 3" ;
+};
+String STR_POCO_PRGM_TOX_IDXBREAK
+{
+ Text = "Index Separator" ;
+};
+String STR_POCO_PRGM_TOX_CNTNTH
+{
+ Text = "Contents Heading" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT1
+{
+ Text = "Contents 1" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT2
+{
+ Text = "Contents 2" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT3
+{
+ Text = "Contents 3" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT4
+{
+ Text = "Contents 4" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT5
+{
+ Text = "Contents 5" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT6
+{
+ Text = "Contents 6" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT7
+{
+ Text = "Contents 7" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT8
+{
+ Text = "Contents 8" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT9
+{
+ Text = "Contents 9" ;
+};
+String STR_POCO_PRGM_TOX_CNTNT10
+{
+ Text = "Contents 10" ;
+};
+String STR_POCO_PRGM_TOX_USERH
+{
+ Text = "User Index Heading" ;
+};
+String STR_POCO_PRGM_TOX_USER1
+{
+ Text = "User Index 1" ;
+};
+String STR_POCO_PRGM_TOX_USER2
+{
+ Text = "User Index 2" ;
+};
+String STR_POCO_PRGM_TOX_USER3
+{
+ Text = "User Index 3" ;
+};
+String STR_POCO_PRGM_TOX_USER4
+{
+ Text = "User Index 4" ;
+};
+String STR_POCO_PRGM_TOX_USER5
+{
+ Text = "User Index 5" ;
+};
+String STR_POCO_PRGM_TOX_USER6
+{
+ Text = "User Index 6" ;
+};
+String STR_POCO_PRGM_TOX_USER7
+{
+ Text = "User Index 7" ;
+};
+String STR_POCO_PRGM_TOX_USER8
+{
+ Text = "User Index 8" ;
+};
+String STR_POCO_PRGM_TOX_USER9
+{
+ Text = "User Index 9" ;
+};
+String STR_POCO_PRGM_TOX_USER10
+{
+ Text = "User Index 10" ;
+};
+String STR_POCO_PRGM_TOX_ILLUSH
+{
+ Text = "Illustration Index Heading";
+};
+String STR_POCO_PRGM_TOX_ILLUS1
+{
+ Text = "Illustration Index 1";
+};
+String STR_POCO_PRGM_TOX_OBJECTH
+{
+ Text = "Object index heading";
+};
+String STR_POCO_PRGM_TOX_OBJECT1
+{
+ Text = "Object index 1";
+};
+String STR_POCO_PRGM_TOX_TABLESH
+{
+ Text = "Table index heading";
+};
+String STR_POCO_PRGM_TOX_TABLES1
+{
+ Text = "Table index 1";
+};
+String STR_POCO_PRGM_TOX_AUTHORITIESH
+{
+ Text = "Bibliography Heading";
+};
+String STR_POCO_PRGM_TOX_AUTHORITIES1
+{
+ Text = "Bibliography 1";
+};
+
+String STR_POCO_PRGM_DOC_TITEL
+{
+ Text = "Title" ;
+};
+String STR_POCO_PRGM_DOC_SUBTITEL
+{
+ Text = "Subtitle" ;
+};
+String STR_POCO_PRGM_HTML_BLOCKQUOTE
+{
+ Text = "Quotations" ;
+};
+String STR_POCO_PRGM_HTML_PRE
+{
+ Text = "Preformatted Text" ;
+};
+String STR_POCO_PRGM_HTML_HR
+{
+ Text = "Horizontal Line" ;
+};
+String STR_POCO_PRGM_HTML_DD
+{
+ Text = "List Contents" ;
+};
+String STR_POCO_PRGM_HTML_DT
+{
+ Text = "List Heading" ;
+};
+
+//page style names
+String STR_POOLPAGE_STANDARD
+{
+ Text = "Standard" ;
+ Text [ English ] = "Standard" ;
+ Text [ dutch ] = "Standaard" ;
+ Text [ english_us ] = "Standard" ;
+ Text [ italian ] = "Standard" ;
+ Text [ spanish ] = "Predeterminado" ;
+ Text [ french ] = "Standard" ;
+ Text [ swedish ] = "Standard" ;
+ Text [ danish ] = "Standard" ;
+ Text [ portuguese ] = "Padrão" ;
+ Text [ portuguese_brazilian ] = "Standard" ;
+ Text[ chinese_simplified ] = "±ê×¼";
+ Text[ russian ] = "Ñòàíäàðò";
+ Text[ polish ] = "Standard";
+ Text[ japanese ] = "•W€";
+ Text[ chinese_traditional ] = "¼Ð·Ç";
+ Text[ arabic ] = "ÞíÇÓí";
+ Text[ greek ] = "ÐñïåðéëïãÞ";
+ Text[ korean ] = "Ç¥ÁØ";
+ Text[ turkish ] = "Standart";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_FIRST
+{
+ Text = "Erste Seite" ;
+ Text [ English ] = "First page" ;
+ Text [ dutch ] = "Eerste pagina" ;
+ Text [ english_us ] = "First Page" ;
+ Text [ italian ] = "Prima pagina" ;
+ Text [ spanish ] = "Primera página" ;
+ Text [ french ] = "Première page" ;
+ Text [ swedish ] = "Första sidan" ;
+ Text [ danish ] = "Første side" ;
+ Text [ portuguese ] = "Primeira página" ;
+ Text [ portuguese_brazilian ] = "Erste Seite" ;
+ Text[ chinese_simplified ] = "Ê×Ò³";
+ Text[ russian ] = "Ïåðâàÿ ñòðàíèöà";
+ Text[ polish ] = "Pierwsza strona";
+ Text[ japanese ] = "ʼn‚ÌÍß°¼Þ";
+ Text[ chinese_traditional ] = "­º­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáÃæáì";
+ Text[ greek ] = "Ðñþôç óåëßäá";
+ Text[ korean ] = "ù¹ø° ÆäÀÌÁö";
+ Text[ turkish ] = "Ýlk sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_LEFT
+{
+ Text = "Linke Seite" ;
+ Text [ English ] = "Left page" ;
+ Text [ english_us ] = "Left Page" ;
+ Text [ italian ] = "Pagina sinistra" ;
+ Text [ spanish ] = "Página izquierda" ;
+ Text [ french ] = "Page gauche" ;
+ Text [ dutch ] = "Linkerpagina" ;
+ Text [ swedish ] = "Vänster sida" ;
+ Text [ danish ] = "Venstre side" ;
+ Text [ portuguese ] = "Página esquerda" ;
+ Text [ portuguese_brazilian ] = "Linke Seite" ;
+ Text[ chinese_simplified ] = "×óÒ³";
+ Text[ russian ] = "Ëåâàÿ ñòðàíèöà";
+ Text[ polish ] = "Strona nieparzysta";
+ Text[ japanese ] = "¶Íß°¼Þ";
+ Text[ chinese_traditional ] = "¥ª­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ ÇáíÓÑì";
+ Text[ greek ] = "ÁñéóôåñÞ óåëßäá";
+ Text[ korean ] = "¿ÞÂÊ ÆäÀÌÁö";
+ Text[ turkish ] = "Sol sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_RIGHT
+{
+ Text = "Rechte Seite" ;
+ Text [ English ] = "Right page" ;
+ Text [ english_us ] = "Right Page" ;
+ Text [ italian ] = "Pagina destra" ;
+ Text [ spanish ] = "Página derecha" ;
+ Text [ french ] = "Page droite" ;
+ Text [ dutch ] = "Rechterpagina" ;
+ Text [ swedish ] = "Höger sida" ;
+ Text [ danish ] = "Højre side" ;
+ Text [ portuguese ] = "Página direita" ;
+ Text [ portuguese_brazilian ] = "Rechte Seite" ;
+ Text[ chinese_simplified ] = "ÓÒÒ³";
+ Text[ russian ] = "Ïðàâàÿ ñòðàíèöà";
+ Text[ polish ] = "Strona parzysta";
+ Text[ japanese ] = "‰EÍß°¼Þ";
+ Text[ chinese_traditional ] = "¥k­¶";
+ Text[ arabic ] = "ÇáÕÝÍÉ Çáíãäì";
+ Text[ greek ] = "ÄåîéÜ óåëßäá";
+ Text[ korean ] = "¿À¸¥ÂÊ ÆäÀÌÁö";
+ Text[ turkish ] = "Sað sayfa";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_JAKET
+{
+ Text = "Umschlag" ;
+ Text [ English ] = "Envelope" ;
+ Text [ dutch ] = "Envelop" ;
+ Text [ english_us ] = "Envelope" ;
+ Text [ italian ] = "Busta" ;
+ Text [ spanish ] = "Sobre" ;
+ Text [ french ] = "Enveloppe" ;
+ Text [ swedish ] = "Kuvert" ;
+ Text [ danish ] = "Konvolut" ;
+ Text [ portuguese ] = "Envelope" ;
+ Text [ portuguese_brazilian ] = "Umschlag" ;
+ Text[ chinese_simplified ] = "ÐÅ·â";
+ Text[ russian ] = "Êîíâåðò";
+ Text[ polish ] = "Koperta";
+ Text[ japanese ] = "••“›";
+ Text[ chinese_traditional ] = "«H«Ê";
+ Text[ arabic ] = "ÙÑÝ";
+ Text[ greek ] = "ÖÜêåëïò";
+ Text[ korean ] = "ºÀÅõ";
+ Text[ turkish ] = "Zarf";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_REGISTER
+{
+ Text = "Verzeichnis" ;
+ Text [ English ] = "Register" ;
+ Text [ english_us ] = "Index" ;
+ Text [ italian ] = "Indice" ;
+ Text [ spanish ] = "Índice" ;
+ Text [ french ] = "Index" ;
+ Text [ dutch ] = "Index" ;
+ Text [ swedish ] = "Förteckning" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ portuguese ] = "Índice" ;
+ Text [ portuguese_brazilian ] = "Verzeichnis" ;
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ russian ] = "Îãëàâëåíèå";
+ Text[ polish ] = "Indeks";
+ Text[ japanese ] = "õˆø";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÝåÑÓ";
+ Text[ greek ] = "ÅõñåôÞñéï";
+ Text[ korean ] = "»öÀÎ";
+ Text[ turkish ] = "Dizin";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_HTML
+{
+ Text = "HTML" ;
+ Text [ English ] = "HTML" ;
+ Text [ dutch ] = "HTML" ;
+ Text [ english_us ] = "HTML" ;
+ Text [ italian ] = "HTML" ;
+ Text [ spanish ] = "HTML" ;
+ Text [ french ] = "HTML" ;
+ Text [ swedish ] = "HTML" ;
+ Text [ danish ] = "HTML" ;
+ Text [ portuguese ] = "HTML" ;
+ Text [ portuguese_brazilian ] = "HTML" ;
+ Text[ chinese_simplified ] = "HTML";
+ Text[ russian ] = "HTML";
+ Text[ polish ] = "HTML";
+ Text[ japanese ] = "HTML";
+ Text[ chinese_traditional ] = "HTML";
+ Text[ arabic ] = "HTML";
+ Text[ greek ] = "HTML";
+ Text[ korean ] = "HTML";
+ Text[ turkish ] = "HTML";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_FOOTNOTE
+{
+ Text = "Fußnote" ;
+ Text [ English ] = "Footnote" ;
+ Text [ portuguese ] = "Nota de rodapé" ;
+ Text [ english_us ] = "Footnote" ;
+ Text [ portuguese_brazilian ] = "Fußnote" ;
+ Text [ swedish ] = "Fotnot" ;
+ Text [ danish ] = "Fodnote" ;
+ Text [ italian ] = "Nota a piè pagina" ;
+ Text [ spanish ] = "Nota al pie" ;
+ Text [ french ] = "Note de bas de page" ;
+ Text [ dutch ] = "Voetnoot" ;
+ Text[ chinese_simplified ] = "×¢½Å";
+ Text[ russian ] = "Ñíîñêà";
+ Text[ polish ] = "Przypis dolny";
+ Text[ japanese ] = "‹r’";
+ Text[ chinese_traditional ] = "µù¸}";
+ Text[ arabic ] = "ÍÇÔíÉ ÓÝáíÉ";
+ Text[ greek ] = "Õðïóçìåßùóç";
+ Text[ korean ] = "°¢ÁÖ";
+ Text[ turkish ] = "Dipnot";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_ENDNOTE
+{
+ Text = "Endnote" ;
+ Text [ English ] = "Endnote" ;
+ Text [ portuguese ] = "Nota final" ;
+ Text [ english_us ] = "Endnote" ;
+ Text [ portuguese_brazilian ] = "Endnote" ;
+ Text [ swedish ] = "Slutnot" ;
+ Text [ danish ] = "Slutnote" ;
+ Text [ italian ] = "Nota di chiusura" ;
+ Text [ spanish ] = "Nota al final" ;
+ Text [ french ] = "Note de fin" ;
+ Text [ dutch ] = "Eindnoot" ;
+ Text[ chinese_simplified ] = "βע";
+ Text[ russian ] = "Êîíöåâàÿ ñíîñêà";
+ Text[ polish ] = "Przypis koñcowy";
+ Text[ japanese ] = "•¶––‹r’";
+ Text[ chinese_traditional ] = "§Àª`";
+ Text[ arabic ] = "ÊÚáíÞ ÎÊÇãí";
+ Text[ greek ] = "Óçìåßùóç ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ";
+ Text[ turkish ] = "Sonnot";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLPAGE_PRGM_STANDARD
+{
+ Text = "Standard" ;
+};
+String STR_POOLPAGE_PRGM_FIRST
+{
+ Text = "First Page" ;
+};
+String STR_POOLPAGE_PRGM_LEFT
+{
+ Text = "Left Page" ;
+};
+String STR_POOLPAGE_PRGM_RIGHT
+{
+ Text = "Right Page" ;
+};
+String STR_POOLPAGE_PRGM_JAKET
+{
+ Text = "Envelope" ;
+};
+String STR_POOLPAGE_PRGM_REGISTER
+{
+ Text = "Index" ;
+};
+String STR_POOLPAGE_PRGM_HTML
+{
+ Text = "HTML" ;
+};
+String STR_POOLPAGE_PRGM_FOOTNOTE
+{
+ Text = "Footnote" ;
+};
+String STR_POOLPAGE_PRGM_ENDNOTE
+{
+ Text = "Endnote" ;
+};
+/*
+ Numerierungs Regeln
+*/
+String STR_POOLNUMRULE_NUM1
+{
+ Text = "Nummerierung 1" ;
+ Text [ English ] = "Numbering 1" ;
+ Text [ dutch ] = "Nummering 1" ;
+ Text [ english_us ] = "Numbering 1" ;
+ Text [ italian ] = "Numerazione 1" ;
+ Text [ spanish ] = "Numeración 1" ;
+ Text [ french ] = "Numérotation 1" ;
+ Text [ swedish ] = "Numrering 1" ;
+ Text [ danish ] = "Nummerering 1" ;
+ Text [ portuguese ] = "Numeração 1" ;
+ Text [ portuguese_brazilian ] = "Numerierung 1" ;
+ Text[ chinese_simplified ] = "񅧏 1";
+ Text[ russian ] = "Íóìåðàöèÿ 1";
+ Text[ polish ] = "Numeracja 1";
+ Text[ japanese ] = "”Ô†•t‚¯ 1";
+ Text[ chinese_traditional ] = "½s¸¹ 1";
+ Text[ arabic ] = "ÇáÊÑÞíã 1";
+ Text[ greek ] = "Áñßèìçóç 1";
+ Text[ korean ] = "¹øÈ£ 1";
+ Text[ turkish ] = "Numaralama 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_NUM2
+{
+ Text = "Nummerierung 2" ;
+ Text [ English ] = "Numbering 2" ;
+ Text [ dutch ] = "Nummering 2" ;
+ Text [ english_us ] = "Numbering 2" ;
+ Text [ italian ] = "Numerazione 2" ;
+ Text [ spanish ] = "Numeración 2" ;
+ Text [ french ] = "Numérotation 2" ;
+ Text [ swedish ] = "Numrering 2" ;
+ Text [ danish ] = "Nummerering 2" ;
+ Text [ portuguese ] = "Numeração 2" ;
+ Text [ portuguese_brazilian ] = "Numerierung 2" ;
+ Text[ chinese_simplified ] = "񅧏 2";
+ Text[ russian ] = "Íóìåðàöèÿ 2";
+ Text[ polish ] = "Numeracja 2";
+ Text[ japanese ] = "”Ô†•t‚¯ 2";
+ Text[ chinese_traditional ] = "½s¸¹ 2";
+ Text[ arabic ] = "ÇáÊÑÞíã 2";
+ Text[ greek ] = "Áñßèìçóç 2";
+ Text[ korean ] = "¹øÈ£ 2";
+ Text[ turkish ] = "Numaralama 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_NUM3
+{
+ Text = "Nummerierung 3" ;
+ Text [ English ] = "Numbering 3" ;
+ Text [ dutch ] = "Nummering 3" ;
+ Text [ english_us ] = "Numbering 3" ;
+ Text [ italian ] = "Numerazione 3" ;
+ Text [ spanish ] = "Numeración 3" ;
+ Text [ french ] = "Numérotation 3" ;
+ Text [ swedish ] = "Numrering 3" ;
+ Text [ danish ] = "Nummerering 3" ;
+ Text [ portuguese ] = "Numeração 3" ;
+ Text [ portuguese_brazilian ] = "Numerierung 3" ;
+ Text[ chinese_simplified ] = "񅧏 3";
+ Text[ russian ] = "Íóìåðàöèÿ 3";
+ Text[ polish ] = "Numeracja 3";
+ Text[ japanese ] = "”Ô†•t‚¯ 3";
+ Text[ chinese_traditional ] = "½s¸¹ 3";
+ Text[ arabic ] = "ÇáÊÑÞíã 3";
+ Text[ greek ] = "Áñßèìçóç 3";
+ Text[ korean ] = "¹øÈ£ 3";
+ Text[ turkish ] = "Numaralama 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_NUM4
+{
+ Text = "Nummerierung 4" ;
+ Text [ English ] = "Numbering 4" ;
+ Text [ dutch ] = "Nummering 4" ;
+ Text [ english_us ] = "Numbering 4" ;
+ Text [ italian ] = "Numerazione 4" ;
+ Text [ spanish ] = "Numeración 4" ;
+ Text [ french ] = "Numérotation 4" ;
+ Text [ swedish ] = "Numrering 4" ;
+ Text [ danish ] = "Nummerering 4" ;
+ Text [ portuguese ] = "Numeração 4" ;
+ Text [ portuguese_brazilian ] = "Numerierung 4" ;
+ Text[ chinese_simplified ] = "񅧏 4";
+ Text[ russian ] = "Íóìåðàöèÿ 4";
+ Text[ polish ] = "Numeracja 4";
+ Text[ japanese ] = "”Ô†•t‚¯ 4";
+ Text[ chinese_traditional ] = "½s¸¹ 4";
+ Text[ arabic ] = "ÇáÊÑÞíã 4";
+ Text[ greek ] = "Áñßèìçóç 4";
+ Text[ korean ] = "¹øÈ£ 4";
+ Text[ turkish ] = "Numaralama 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_NUM5
+{
+ Text = "Nummerierung 5" ;
+ Text [ English ] = "Numbering 5" ;
+ Text [ dutch ] = "Nummering 5" ;
+ Text [ english_us ] = "Numbering 5" ;
+ Text [ italian ] = "Numerazione 5" ;
+ Text [ spanish ] = "Numeración 5" ;
+ Text [ french ] = "Numérotation 5" ;
+ Text [ swedish ] = "Numrering 5" ;
+ Text [ danish ] = "Nummerering 5" ;
+ Text [ portuguese ] = "Numeração 5" ;
+ Text [ portuguese_brazilian ] = "Numerierung 5" ;
+ Text[ chinese_simplified ] = "񅧏 5";
+ Text[ russian ] = "Íóìåðàöèÿ 5";
+ Text[ polish ] = "Numeracja 5";
+ Text[ japanese ] = "”Ô†•t‚¯ 5";
+ Text[ chinese_traditional ] = "½s¸¹ 5";
+ Text[ arabic ] = "ÇáÊÑÞíã 5";
+ Text[ greek ] = "Áñßèìçóç 5";
+ Text[ korean ] = "¹øÈ£ 5";
+ Text[ turkish ] = "Numaralama 5";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_BUL1
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 : Aufzõhlung 1 */
+ Text = "Aufzählung 1" ;
+ Text [ English ] = "Bullet 1" ;
+ Text [ dutch ] = "Opsomming 1" ;
+ Text [ english_us ] = "List 1" ;
+ Text [ italian ] = "Elenco 1" ;
+ Text [ spanish ] = "Enumeración 1" ;
+ Text [ french ] = "Puce 1" ;
+ Text [ swedish ] = "Uppräkning 1" ;
+ Text [ danish ] = "Punktopstilling 1" ;
+ Text [ portuguese ] = "Lista 1" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 1" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 1";
+ Text[ russian ] = "Ñïèñîê 1";
+ Text[ polish ] = "Lista 1";
+ Text[ japanese ] = "‰Óð‘‚« 1";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 1";
+ Text[ arabic ] = "ÊÚÏÇÏ 1";
+ Text[ greek ] = "ÊáôÜëïãïò 1";
+ Text[ korean ] = "¸®½ºÆ® 1";
+ Text[ turkish ] = "Liste 1";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_BUL2
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 : Aufzõhlung 1 */
+ Text = "Aufzählung 2" ;
+ Text [ English ] = "Bullet 2" ;
+ Text [ dutch ] = "Opsomming 2" ;
+ Text [ english_us ] = "List 2" ;
+ Text [ italian ] = "Elenco 2" ;
+ Text [ spanish ] = "Enumeración 2" ;
+ Text [ french ] = "Puce 2" ;
+ Text [ swedish ] = "Uppräkning 2" ;
+ Text [ danish ] = "Punktopstilling 2" ;
+ Text [ portuguese ] = "Lista 2" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 2" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 2";
+ Text[ russian ] = "Ñïèñîê 2";
+ Text[ polish ] = "Lista 2";
+ Text[ japanese ] = "‰Óð‘‚« 2";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 2";
+ Text[ arabic ] = "ÊÚÏÇÏ 2";
+ Text[ greek ] = "ÊáôÜëïãïò 2";
+ Text[ korean ] = "¸®½ºÆ® 2";
+ Text[ turkish ] = "Liste 2";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_BUL3
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 : Aufzõhlung 1 */
+ Text = "Aufzählung 3" ;
+ Text [ English ] = "Bullet 3" ;
+ Text [ dutch ] = "Opsomming 3" ;
+ Text [ english_us ] = "List 3" ;
+ Text [ italian ] = "Elenco 3" ;
+ Text [ spanish ] = "Enumeración 3" ;
+ Text [ french ] = "Puce 3" ;
+ Text [ swedish ] = "Uppräkning 3" ;
+ Text [ danish ] = "Punktopstilling 3" ;
+ Text [ portuguese ] = "Lista 3" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 3" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 3";
+ Text[ russian ] = "Ñïèñîê 3";
+ Text[ polish ] = "Lista 3";
+ Text[ japanese ] = "‰Óð‘‚« 3";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 3";
+ Text[ arabic ] = "ÊÚÏÇÏ 3";
+ Text[ greek ] = "ÊáôÜëïãïò 3";
+ Text[ korean ] = "¸®½ºÆ® 3";
+ Text[ turkish ] = "Liste 3";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_BUL4
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 1 : Aufzõhlung 4 */
+ Text = "Aufzählung 4" ;
+ Text [ English ] = "Bullet 4" ;
+ Text [ dutch ] = "Opsomming 4" ;
+ Text [ english_us ] = "List 4" ;
+ Text [ italian ] = "Elenco 4" ;
+ Text [ spanish ] = "Enumeración 4" ;
+ Text [ french ] = "Puce 4" ;
+ Text [ swedish ] = "Uppräkning 4" ;
+ Text [ danish ] = "Punktopstilling 4" ;
+ Text [ portuguese ] = "Lista 4" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 4" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 4";
+ Text[ russian ] = "Ñïèñîê 4";
+ Text[ polish ] = "Lista 4";
+ Text[ japanese ] = "‰Óð‘‚« 4";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 4";
+ Text[ arabic ] = "ÊÚÏÇÏ 4";
+ Text[ greek ] = "ÊáôÜëïãïò 4";
+ Text[ korean ] = "¸®½ºÆ® 4";
+ Text[ turkish ] = "Liste 4";
+ Text[ language_user1 ] = " ";
+};
+String STR_POOLNUMRULE_BUL5
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Aufzählung 5 : Aufzõhlung 5 */
+ Text = "Aufzählung 5" ;
+ Text [ English ] = "Bullet 5" ;
+ Text [ dutch ] = "Opsomming 5" ;
+ Text [ english_us ] = "List 5" ;
+ Text [ italian ] = "Elenco 5" ;
+ Text [ spanish ] = "Enumeración 5" ;
+ Text [ french ] = "Puce 5" ;
+ Text [ swedish ] = "Uppräkning 5" ;
+ Text [ danish ] = "Punktopstilling 5" ;
+ Text [ portuguese ] = "Lista 5" ;
+ Text [ portuguese_brazilian ] = "Aufzählung 51" ;
+ Text[ chinese_simplified ] = "ÏîÄ¿±àºÅ 5";
+ Text[ russian ] = "Ñïèñîê 5";
+ Text[ polish ] = "Lista 5";
+ Text[ japanese ] = "‰Óð‘‚« 5";
+ Text[ chinese_traditional ] = "¶µ¥Ø½s¸¹ 5";
+ Text[ arabic ] = "ÊÚÏÇÏ 5";
+ Text[ greek ] = "ÊáôÜëïãïò 5";
+ Text[ korean ] = "¸®½ºÆ® 5";
+ Text[ turkish ] = "Liste 5";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_POOLNUMRULE_PRGM_NUM1
+{
+ Text = "Numbering 1" ;
+};
+String STR_POOLNUMRULE_PRGM_NUM2
+{
+ Text = "Numbering 2" ;
+};
+String STR_POOLNUMRULE_PRGM_NUM3
+{
+ Text = "Numbering 3" ;
+};
+String STR_POOLNUMRULE_PRGM_NUM4
+{
+ Text = "Numbering 4" ;
+};
+String STR_POOLNUMRULE_PRGM_NUM5
+{
+ Text = "Numbering 5" ;
+};
+String STR_POOLNUMRULE_PRGM_BUL1
+{
+ Text = "List 1" ;
+};
+String STR_POOLNUMRULE_PRGM_BUL2
+{
+ Text = "List 2" ;
+};
+String STR_POOLNUMRULE_PRGM_BUL3
+{
+ Text = "List 3" ;
+};
+String STR_POOLNUMRULE_PRGM_BUL4
+{
+ Text = "List 4" ;
+};
+String STR_POOLNUMRULE_PRGM_BUL5
+{
+ Text = "List 5" ;
+};
+
diff --git a/sw/source/ui/utlui/prcntfld.cxx b/sw/source/ui/utlui/prcntfld.cxx
new file mode 100644
index 000000000000..9805bd348915
--- /dev/null
+++ b/sw/source/ui/utlui/prcntfld.cxx
@@ -0,0 +1,486 @@
+/*************************************************************************
+ *
+ * $RCSfile: prcntfld.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+// include ---------------------------------------------------------------
+
+#pragma hdrstop
+
+#include "prcntfld.hxx"
+
+// STATIC DATA -----------------------------------------------------------
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+PercentField::PercentField( Window* pWin, const ResId& rResId ) :
+ MetricField ( pWin, rResId ),
+
+ eOldUnit (FUNIT_NONE),
+ nOldMin (0),
+ nOldMax (0),
+ nLastPercent(-1L),
+ nLastValue (-1L)
+{
+
+ nOldSpinSize = GetSpinSize();
+ nRefValue = Denormalize(MetricField::GetMax(FUNIT_TWIP));
+ nOldDigits = GetDecimalDigits();
+ SetCustomUnitText('%');
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::SetRefValue(long nValue)
+{
+ long nRealValue = GetRealValue(eOldUnit);
+
+ nRefValue = nValue;
+
+ if (GetUnit() == FUNIT_CUSTOM)
+ SetValue(nRealValue, eOldUnit);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::ShowPercent(BOOL bPercent)
+{
+ if ((bPercent && GetUnit() == FUNIT_CUSTOM) ||
+ (!bPercent && GetUnit() != FUNIT_CUSTOM))
+ return;
+
+ long nOldValue;
+
+ if (bPercent)
+ {
+ long nAktWidth, nPercent;
+
+ nOldValue = GetValue();
+
+ eOldUnit = GetUnit();
+ nOldDigits = GetDecimalDigits();
+ nOldMin = GetMin();
+ nOldMax = GetMax();
+ nOldSpinSize = GetSpinSize();
+#ifndef VCL
+ nOldBaseValue = nBaseValue;
+#else
+ nOldBaseValue = GetBaseValue();
+#endif
+ SetUnit(FUNIT_CUSTOM);
+ SetDecimalDigits( 0 );
+
+ nAktWidth = ConvertValue(nOldMin, 0, nOldDigits, eOldUnit, FUNIT_TWIP);
+ // Um 0.5 Prozent aufrunden
+ nPercent = ((nAktWidth * 10) / nRefValue + 5) / 10;
+
+ MetricField::SetMin(Max(1L, nPercent));
+ MetricField::SetMax(100);
+ SetSpinSize(5);
+#ifndef VCL
+ nBaseValue = 0;
+#else
+ MetricField::SetBaseValue(0);
+#endif
+ if (nOldValue != nLastValue)
+ {
+ nAktWidth = ConvertValue(nOldValue, 0, nOldDigits, eOldUnit, FUNIT_TWIP);
+ nPercent = ((nAktWidth * 10) / nRefValue + 5) / 10;
+ MetricField::SetValue(nPercent);
+ nLastPercent = nPercent;
+ nLastValue = nOldValue;
+ }
+ else
+ MetricField::SetValue(nLastPercent);
+// SetValue(100, FUNIT_CUSTOM);
+ }
+ else
+ {
+ long nOldPercent = GetValue(FUNIT_CUSTOM);
+
+ nOldValue = Convert(GetValue(), GetUnit(), eOldUnit);
+
+ SetUnit(eOldUnit);
+ SetDecimalDigits(nOldDigits);
+ MetricField::SetMin(nOldMin);
+ MetricField::SetMax(nOldMax);
+ SetSpinSize(nOldSpinSize);
+#ifndef VCL
+ nBaseValue = nOldBaseValue;
+#else
+ MetricField::SetBaseValue(nOldBaseValue);
+#endif
+
+ if (nOldPercent != nLastPercent)
+ {
+ SetValue(nOldValue, eOldUnit);
+ nLastPercent = nOldPercent;
+ nLastValue = nOldValue;
+ }
+ else
+ SetValue(nLastValue, eOldUnit);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::SetValue(long nNewValue, FieldUnit eInUnit)
+{
+ if (GetUnit() != FUNIT_CUSTOM || eInUnit == FUNIT_CUSTOM)
+ MetricField::SetValue(Convert(nNewValue, eInUnit, GetUnit()));
+
+ else
+ {
+ // Ausgangswert ueberschreiben, nicht spaeter restaurieren
+ long nPercent, nAktWidth;
+ if(eInUnit == FUNIT_TWIP)
+ {
+ nAktWidth = ConvertValue(nNewValue, 0, nOldDigits, FUNIT_TWIP, FUNIT_TWIP);
+ }
+ else
+ {
+ long nValue = Convert(nNewValue, eInUnit, eOldUnit);
+ nAktWidth = ConvertValue(nValue, 0, nOldDigits, eOldUnit, FUNIT_TWIP);
+ }
+ nPercent = ((nAktWidth * 10) / nRefValue + 5) / 10;
+ MetricField::SetValue(nPercent);
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::SetUserValue( long nNewValue, FieldUnit eInUnit )
+{
+ if (GetUnit() != FUNIT_CUSTOM || eInUnit == FUNIT_CUSTOM)
+ MetricField::SetUserValue(Convert(nNewValue, eInUnit, GetUnit()),FUNIT_NONE);
+
+ else
+ {
+ // Ausgangswert ueberschreiben, nicht spaeter restaurieren
+ long nPercent, nAktWidth;
+ if(eInUnit == FUNIT_TWIP)
+ {
+ nAktWidth = ConvertValue(nNewValue, 0, nOldDigits, FUNIT_TWIP, FUNIT_TWIP);
+ }
+ else
+ {
+ long nValue = Convert(nNewValue, eInUnit, eOldUnit);
+ nAktWidth = ConvertValue(nValue, 0, nOldDigits, eOldUnit, FUNIT_TWIP);
+ }
+ nPercent = ((nAktWidth * 10) / nRefValue + 5) / 10;
+ MetricField::SetUserValue(nPercent,FUNIT_NONE);
+ }
+
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::SetBaseValue(long nNewValue, FieldUnit eInUnit)
+{
+ if (GetUnit() == FUNIT_CUSTOM)
+ nOldBaseValue = ConvertValue(nNewValue, 0, nOldDigits, eInUnit, eOldUnit);
+ else
+ MetricField::SetBaseValue(nNewValue, eInUnit);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long PercentField::GetValue( FieldUnit eOutUnit )
+{
+ return Convert(MetricField::GetValue(), GetUnit(), eOutUnit);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::SetMin(long nNewMin, FieldUnit eInUnit)
+{
+ if (GetUnit() != FUNIT_CUSTOM)
+ MetricField::SetMin(nNewMin, eInUnit);
+ else
+ {
+ if (eInUnit == FUNIT_NONE)
+ eInUnit = eOldUnit;
+ nOldMin = Convert(nNewMin, eInUnit, eOldUnit);
+
+ long nPercent = Convert(nNewMin, eInUnit, FUNIT_CUSTOM);
+ MetricField::SetMin(Max(1L, nPercent));
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+void PercentField::SetMax(long nNewMax, FieldUnit eInUnit)
+{
+ if (GetUnit() != FUNIT_CUSTOM)
+ MetricField::SetMax(nNewMax, eInUnit);
+ else
+ {
+ if (eInUnit == FUNIT_NONE)
+ eInUnit = eOldUnit;
+// SetRefValue(Convert(nNewMax, eInUnit, FUNIT_TWIP));
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long PercentField::Normalize(long nValue)
+{
+ if (GetUnit() != FUNIT_CUSTOM)
+ nValue = MetricField::Normalize(nValue);
+ else
+ nValue = nValue * ImpPower10(nOldDigits);
+
+ return nValue;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long PercentField::Denormalize(long nValue)
+{
+ if (GetUnit() != FUNIT_CUSTOM)
+ nValue = MetricField::Denormalize(nValue);
+ else
+ {
+ long nFactor = ImpPower10(nOldDigits);
+ nValue = ((nValue+(nFactor/2)) / nFactor);
+ }
+
+ return nValue;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+BOOL PercentField::IsValueModified()
+{
+ if (GetUnit() == FUNIT_CUSTOM)
+ return TRUE;
+ else
+ return MetricField::IsValueModified();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long PercentField::ImpPower10( USHORT n )
+{
+ USHORT i;
+ long nValue = 1;
+
+ for ( i=0; i < n; i++ )
+ nValue *= 10;
+
+ return nValue;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long PercentField::GetRealValue(FieldUnit eOutUnit)
+{
+ if (GetUnit() != FUNIT_CUSTOM)
+ return GetValue(eOutUnit);
+ else
+ return Convert(GetValue(), GetUnit(), eOutUnit);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+long PercentField::Convert(long nValue, FieldUnit eInUnit, FieldUnit eOutUnit)
+{
+ if (eInUnit == eOutUnit ||
+ (eInUnit == FUNIT_NONE && eOutUnit == GetUnit()) ||
+ (eOutUnit == FUNIT_NONE && eInUnit == GetUnit()))
+ return nValue;
+
+ if (eInUnit == FUNIT_CUSTOM)
+ {
+ // Umrechnen in Metrik
+ long nTwipValue = (nRefValue * nValue + 50) / 100;
+
+ if (eOutUnit == FUNIT_TWIP) // Nur wandeln, wenn unbedingt notwendig
+ return Normalize(nTwipValue);
+ else
+ return ConvertValue(Normalize(nTwipValue), 0, nOldDigits, FUNIT_TWIP, eOutUnit);
+ }
+
+ if (eOutUnit == FUNIT_CUSTOM)
+ {
+ // Umrechnen in Prozent
+ long nAktWidth;
+ nValue = Denormalize(nValue);
+
+ if (eInUnit == FUNIT_TWIP) // Nur wandeln, wenn unbedingt notwendig
+ nAktWidth = nValue;
+ else
+ nAktWidth = ConvertValue(nValue, 0, nOldDigits, eInUnit, FUNIT_TWIP);
+ // Um 0.5 Prozent runden
+ return ((nAktWidth * 1000) / nRefValue + 5) / 10;
+ }
+
+ return ConvertValue(nValue, 0, nOldDigits, eInUnit, eOutUnit);
+}
+
+/*************************************************************************
+
+ Source Code Control System - History
+
+ $Log: not supported by cvs2svn $
+ Revision 1.21 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.20 1997/11/07 15:38:34 OM
+ Aufgeraeumt
+
+
+ Rev 1.19 07 Nov 1997 16:38:34 OM
+ Aufgeraeumt
+
+ Rev 1.18 19 Sep 1997 11:06:54 OM
+ VCL: SetBaseValue an Basisklasse rufen!
+
+ Rev 1.17 06 Aug 1997 15:00:48 TRI
+ VCL: Anpassungen
+
+ Rev 1.16 04 Dec 1996 15:56:46 OS
+ SetValue stimmt wieder
+
+ Rev 1.15 02 Dec 1996 10:33:50 OS
+ im SetValue immer runden
+
+ Rev 1.14 28 Nov 1996 15:24:54 OM
+ #32021# Bei zu spaetem RefValue setzen: MetricField neu berechnen und anzeigen
+
+ Rev 1.13 07 Nov 1996 11:48:18 OM
+ Rundung verbessert
+
+ Rev 1.12 29 Oct 1996 17:21:02 OM
+ Rundung verbessert
+
+ Rev 1.11 11 Sep 1996 15:10:10 OM
+ SetMin korrigiert
+
+ Rev 1.10 10 Sep 1996 17:03:00 OM
+ Prozentfelder
+
+ Rev 1.9 09 Sep 1996 16:57:26 OM
+ Prozentuale Spalten
+
+ Rev 1.8 07 Sep 1996 13:47:38 OS
+ HACK fuer SetValue
+
+ Rev 1.7 17 Jul 1996 15:32:40 OM
+ Aufgeraeumt
+
+ Rev 1.6 17 Jul 1996 15:22:58 OM
+ Anfangswert in Prozent konvertieren
+
+ Rev 1.5 25 Jun 1996 17:11:50 OM
+ Relative Grafiken
+
+ Rev 1.4 20 Jun 1996 18:07:00 OM
+ Relative Rahmen
+
+ Rev 1.3 19 Jun 1996 17:46:02 OM
+ Relative Tabellenbreite
+
+ Rev 1.2 18 Jun 1996 16:27:54 OM
+ Neue Segs
+
+ Rev 1.1 18 Jun 1996 16:27:10 OM
+ Relative Tabellenbreite
+
+ Rev 1.0 17 Jun 1996 15:07:32 OM
+ Initial revision.
+
+ Rev 1.1 17 Jun 1996 15:03:54 OM
+ Neue Segs
+
+ Rev 1.0 17 Jun 1996 15:02:10 OM
+ Initial revision.
+
+*************************************************************************/
+
diff --git a/sw/source/ui/utlui/shdwcrsr.cxx b/sw/source/ui/utlui/shdwcrsr.cxx
new file mode 100644
index 000000000000..cb6104f3f519
--- /dev/null
+++ b/sw/source/ui/utlui/shdwcrsr.cxx
@@ -0,0 +1,196 @@
+/*************************************************************************
+ *
+ * $RCSfile: shdwcrsr.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SV_WINDOW_HXX //autogen
+#include <vcl/window.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "shdwcrsr.hxx"
+
+
+SwShadowCursor::~SwShadowCursor()
+{
+ if( USHRT_MAX != nOldMode )
+ DrawCrsr( aOldPt, nOldHeight, nOldMode );
+}
+
+void SwShadowCursor::SetPos( const Point& rPt, long nHeight, USHORT nMode )
+{
+ Point aPt( pWin->LogicToPixel( rPt ));
+ nHeight = pWin->LogicToPixel( Size( 0, nHeight )).Height();
+ if( aOldPt != aPt || nOldHeight != nHeight || nOldMode != nMode )
+ {
+ if( USHRT_MAX != nOldMode )
+ DrawCrsr( aOldPt, nOldHeight, nOldMode );
+
+ DrawCrsr( aPt, nHeight, nMode );
+ nOldMode = nMode;
+ nOldHeight = nHeight;
+ aOldPt = aPt;
+ }
+}
+
+void SwShadowCursor::DrawTri( const Point& rPt, long nHeight, BOOL bLeft )
+{
+ USHORT nLineDiff = ( nHeight / 2 );
+ USHORT nLineDiffHalf = nLineDiff / 2;
+
+ // Punkt oben
+ Point aPt1( (bLeft ? rPt.X() - 3 : rPt.X() + 3),
+ rPt.Y() + nLineDiffHalf );
+ // Punkt unten
+ Point aPt2( aPt1.X(), aPt1.Y() + nHeight - nLineDiff - 1 );
+ short nDiff = bLeft ? -1 : 1;
+ while( aPt1.Y() <= aPt2.Y() )
+ {
+ pWin->DrawLine( aPt1, aPt2 );
+ aPt1.Y()++, aPt2.Y()--;
+ aPt2.X() = aPt1.X() += nDiff;
+ }
+}
+
+void SwShadowCursor::DrawCrsr( const Point& rPt, long nHeight, USHORT nMode )
+{
+ nHeight = (((nHeight / 4)+1) * 4) + 1;
+
+ pWin->Push();
+
+ pWin->SetMapMode( MAP_PIXEL );
+ pWin->SetRasterOp( ROP_XOR );
+
+ pWin->SetLineColor( Color( aCol.GetColor() ^ COL_WHITE ) );
+
+ // 1. der Strich:
+ pWin->DrawLine( Point( rPt.X(), rPt.Y() + 1),
+ Point( rPt.X(), rPt.Y() - 2 + nHeight ));
+
+ // 2. das Dreieck
+ if( HORI_LEFT == nMode || HORI_CENTER == nMode ) // Pfeil nach rechts
+ DrawTri( rPt, nHeight, FALSE );
+ if( HORI_RIGHT == nMode || HORI_CENTER == nMode ) // Pfeil nach links
+ DrawTri( rPt, nHeight, TRUE );
+
+ pWin->Pop();
+}
+
+void SwShadowCursor::Paint()
+{
+ if( USHRT_MAX != nOldMode )
+ DrawCrsr( aOldPt, nOldHeight, nOldMode );
+}
+
+Rectangle SwShadowCursor::GetRect() const
+{
+ long nH = nOldHeight;
+ Point aPt( aOldPt );
+
+ nH = (((nH / 4)+1) * 4) + 1;
+ USHORT nWidth = nH / 4 + 3 + 1;
+
+ Size aSz( nWidth, nH );
+
+ if( HORI_RIGHT == nOldMode )
+ aPt.X() -= aSz.Width();
+ else if( HORI_CENTER == nOldMode )
+ {
+ aPt.X() -= aSz.Width();
+ aSz.Width() *= 2;
+ }
+
+ return pWin->PixelToLogic( Rectangle( aPt, aSz ) );
+}
+
+/*************************************************************************
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.5 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.4 2000/02/11 15:00:59 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.3 1999/09/20 10:45:53 os
+ Color changes
+
+ Revision 1.2 1997/11/03 15:10:26 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+
+ Rev 1.1 03 Nov 1997 16:10:26 JP
+ neu: Optionen/-Page/Basic-Schnittst. fuer ShadowCursor
+
+ Rev 1.0 24 Oct 1997 18:31:58 JP
+ Cursor fuers Einfuegen an beliebiger Position
+
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/utlui/tmplctrl.cxx b/sw/source/ui/utlui/tmplctrl.cxx
new file mode 100644
index 000000000000..7b1570bdf5ce
--- /dev/null
+++ b/sw/source/ui/utlui/tmplctrl.cxx
@@ -0,0 +1,306 @@
+/*************************************************************************
+ *
+ * $RCSfile: tmplctrl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+// include ---------------------------------------------------------------
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+#ifndef _MENU_HXX //autogen
+#include <vcl/menu.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _STATUS_HXX //autogen
+#include <vcl/status.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "swmodule.hxx"
+#include "cmdid.h"
+#include "docsh.hxx"
+#include "tmplctrl.hxx"
+
+
+// STATIC DATA -----------------------------------------------------------
+
+
+SFX_IMPL_STATUSBAR_CONTROL( SwTemplateControl, SfxStringItem );
+
+// class TemplatePopup_Impl --------------------------------------------------
+
+class TemplatePopup_Impl : public PopupMenu
+{
+public:
+ TemplatePopup_Impl();
+
+ USHORT GetCurId() const { return nCurId; }
+
+private:
+ USHORT nCurId;
+
+ virtual void Select();
+};
+
+// -----------------------------------------------------------------------
+
+TemplatePopup_Impl::TemplatePopup_Impl() :
+ PopupMenu(),
+ nCurId(USHRT_MAX)
+{
+}
+
+// -----------------------------------------------------------------------
+
+void TemplatePopup_Impl::Select()
+{
+ nCurId = GetCurItemId();
+}
+
+// class SvxZoomStatusBarControl ------------------------------------------
+
+SwTemplateControl::SwTemplateControl( USHORT nId,
+ StatusBar& rStb,
+ SfxBindings& rBind ) :
+ SfxStatusBarControl( nId, rStb, rBind )
+{
+}
+
+// -----------------------------------------------------------------------
+
+SwTemplateControl::~SwTemplateControl()
+{
+}
+
+// -----------------------------------------------------------------------
+
+void SwTemplateControl::StateChanged( const SfxPoolItem* pState )
+{
+ SfxItemState eState = GetItemState(pState);
+
+ if( eState != SFX_ITEM_AVAILABLE || pState->ISA( SfxVoidItem ) )
+ GetStatusBar().SetItemText( GetId(), String() );
+ else if ( pState->ISA( SfxStringItem ) )
+ {
+ sTemplate = ((SfxStringItem*)pState)->GetValue();
+ GetStatusBar().SetItemText( GetId(), sTemplate );
+ }
+}
+
+// -----------------------------------------------------------------------
+
+void SwTemplateControl::Paint( const UserDrawEvent& )
+{
+ GetStatusBar().SetItemText( GetId(), sTemplate );
+}
+
+// -----------------------------------------------------------------------
+
+void SwTemplateControl::Command( const CommandEvent& rCEvt )
+{
+ if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU &&
+ GetStatusBar().GetItemText( GetId() ).Len() )
+ {
+ CaptureMouse();
+ TemplatePopup_Impl aPop;
+ {
+ SwView* pView = ::GetActiveView();
+ SwWrtShell* pWrtShell;
+ if( pView && 0 != (pWrtShell = pView->GetWrtShellPtr()) &&
+ !pWrtShell->SwCrsrShell::HasSelection()&&
+ !pWrtShell->IsSelFrmMode() &&
+ !pWrtShell->IsObjSelected())
+ {
+ SfxStyleSheetBasePool* pPool = pView->GetDocShell()->
+ GetStyleSheetPool();
+ pPool->SetSearchMask(SFX_STYLE_FAMILY_PAGE, SFXSTYLEBIT_ALL);
+ if( pPool->Count() > 1 )
+ {
+ USHORT nCount = 0;
+ SfxStyleSheetBase* pStyle = pPool->First();
+ while( pStyle )
+ {
+ nCount++;
+ aPop.InsertItem( nCount, pStyle->GetName() );
+ pStyle = pPool->Next();
+ }
+
+ aPop.Execute( &GetStatusBar(), rCEvt.GetMousePosPixel());
+ USHORT nId = aPop.GetCurId();
+ if( nId != USHRT_MAX)
+ {
+ // sieht etwas umstaendlich aus, anders geht's aber nicht
+ pStyle = pPool->operator[]( nId - 1 );
+ SfxStringItem aStyle( FN_SET_PAGE_STYLE, pStyle->GetName() );
+ pWrtShell->GetView().GetViewFrame()->GetDispatcher()->Execute(
+ FN_SET_PAGE_STYLE,
+ SFX_CALLMODE_SLOT|SFX_CALLMODE_RECORD,
+ &aStyle, 0L );
+ }
+ }
+ }
+ }
+ ReleaseMouse();
+ }
+}
+
+/*************************************************************************
+
+
+ $Log: not supported by cvs2svn $
+ Revision 1.27 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.26 2000/09/07 15:59:35 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.25 2000/02/11 15:01:09 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.24 1998/11/11 15:16:02 OS
+ #59267# include
+
+
+ Rev 1.23 11 Nov 1998 16:16:02 OS
+ #59267# include
+
+ Rev 1.22 10 Nov 1998 15:14:20 OS
+ #59267# Vorlagenmenue nur ohne Selektion
+
+ Rev 1.21 03 Sep 1998 12:30:32 OS
+ #56005# Alle Seitenvorlagen in der Statuszeile anbieten
+
+ Rev 1.20 21 Nov 1997 12:10:14 MA
+ includes
+
+ Rev 1.19 03 Nov 1997 13:59:22 MA
+ precomp entfernt
+
+ Rev 1.18 29 Aug 1997 15:57:30 OS
+ PopupMenu::Execute mit Window* fuer VCL
+
+ Rev 1.17 29 Aug 1997 13:58:50 OS
+ DLL-Umbau
+
+ Rev 1.16 08 Aug 1997 17:25:18 OM
+ Headerfile-Umstellung
+
+ Rev 1.15 09 Jul 1997 17:45:32 HJS
+ includes
+
+ Rev 1.14 14 Jan 1997 09:39:00 TRI
+ includes wegen Internal Compiler Error
+
+ Rev 1.13 28 Aug 1996 15:42:38 OS
+ includes
+
+ Rev 1.12 26 Jun 1996 15:04:04 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+ Rev 1.11 22 Mar 1996 15:18:38 HJS
+ umstellung 311
+
+ Rev 1.10 24 Nov 1995 16:57:24 OM
+ PCH->PRECOMPILED
+
+ Rev 1.9 17 Nov 1995 15:16:22 MA
+ Segmentierung
+
+ Rev 1.8 07 Nov 1995 18:04:04 MA
+ opt/fix/chg: statics und segs
+
+ Rev 1.7 30 Oct 1995 18:46:50 OM
+ GetActiveView entfernt
+
+ Rev 1.6 06 Oct 1995 00:20:14 HJS
+ pState => eState
+
+ Rev 1.5 05 Oct 1995 18:41:14 OM
+ StateChanged umgestellt
+
+ Rev 1.4 09 Aug 1995 19:15:18 OS
+ Umstellung auf CommandHdl
+
+ Rev 1.3 20 Jul 1995 19:00:20 OS
+ kein Absturz ohne View
+
+ Rev 1.2 17 Jul 1995 15:19:58 ER
+ wie waer's mit exports?
+
+ Rev 1.1 17 Jul 1995 14:51:48 ER
+ wie waer's mit exports?
+
+ Rev 1.0 14 Jul 1995 18:17:30 OS
+ Initial revision.
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/utlui/uiitems.cxx b/sw/source/ui/utlui/uiitems.cxx
new file mode 100644
index 000000000000..1c132c1b548a
--- /dev/null
+++ b/sw/source/ui/utlui/uiitems.cxx
@@ -0,0 +1,370 @@
+/*************************************************************************
+ *
+ * $RCSfile: uiitems.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVX_ITEMTYPE_HXX
+#include <svx/itemtype.hxx>
+#endif
+#ifndef _UNOSETT_HXX
+#include <unosett.hxx>
+#endif
+
+#include "uiparam.hxx"
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "pagedesc.hxx"
+#include "uiitems.hxx"
+
+#include "utlui.hrc"
+#include "attrdesc.hrc"
+
+using namespace ::com::sun::star;
+
+// Breitenangaben der Fussnotenlinien, mit TabPage abstimmen
+static const USHORT __FAR_DATA nFtnLines[] = {
+ 0,
+ 10,
+ 50,
+ 80,
+ 100,
+ 150
+};
+
+#define FTN_LINE_STYLE_COUNT 5
+
+
+SwPageFtnInfoItem::SwPageFtnInfoItem( const USHORT nId, SwPageFtnInfo& rInfo) :
+ SfxPoolItem( nId ),
+ aFtnInfo(rInfo)
+{
+}
+
+
+SwPageFtnInfoItem::SwPageFtnInfoItem( const SwPageFtnInfoItem& rItem ) :
+ SfxPoolItem( rItem ),
+ aFtnInfo(rItem.GetPageFtnInfo())
+{
+}
+
+
+ SwPageFtnInfoItem::~SwPageFtnInfoItem()
+{
+}
+
+
+SfxPoolItem* SwPageFtnInfoItem::Clone( SfxItemPool *pPool ) const
+{
+ return new SwPageFtnInfoItem( *this );
+}
+
+
+int SwPageFtnInfoItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( Which() == rAttr.Which(), "keine gleichen Attribute" );
+ return ( aFtnInfo == ((SwPageFtnInfoItem&)rAttr).GetPageFtnInfo());
+}
+
+
+SfxItemPresentation SwPageFtnInfoItem::GetPresentation
+(
+ SfxItemPresentation ePres,
+ SfxMapUnit eCoreUnit,
+ SfxMapUnit ePresUnit,
+ String& rText,
+ const International* pIntl
+) const
+{
+ switch ( ePres )
+ {
+ case SFX_ITEM_PRESENTATION_NONE:
+ rText.Erase();
+ return SFX_ITEM_PRESENTATION_NONE;
+ case SFX_ITEM_PRESENTATION_NAMELESS:
+ case SFX_ITEM_PRESENTATION_COMPLETE:
+ {
+ USHORT nHght = (USHORT) GetPageFtnInfo().GetHeight();
+ if ( nHght )
+ {
+ rText = SW_RESSTR( STR_MAX_FTN_HEIGHT );
+ rText += ' ';
+ rText += ::GetMetricText( nHght, eCoreUnit, ePresUnit );
+ rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ }
+ return ePres;
+ }
+ }
+ return SFX_ITEM_PRESENTATION_NONE;
+}
+
+
+
+SwPtrItem::SwPtrItem( const USHORT nId, void* pPtr ) :
+ SfxPoolItem( nId ),
+ pMisc(pPtr)
+{
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Copy-Konstruktor
+ --------------------------------------------------------------------*/
+
+
+SwPtrItem::SwPtrItem( const SwPtrItem& rItem ) : SfxPoolItem( rItem )
+{
+ pMisc = rItem.pMisc;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Clonen
+ --------------------------------------------------------------------*/
+
+
+SfxPoolItem* SwPtrItem::Clone( SfxItemPool *pPool ) const
+{
+ return new SwPtrItem( *this );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+int SwPtrItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
+ const SwPtrItem& rItem = (SwPtrItem&)rAttr;
+ return ( pMisc == rItem.pMisc );
+}
+
+
+/*-----------------12.11.97 12:55-------------------------------
+ SwUINumRuleItem fuer die NumTabPages der FormatNumRule/Stylisten
+---------------------------------------------------------------*/
+SwUINumRuleItem::SwUINumRuleItem( const SwNumRule& rRul, const USHORT nId )
+ : SfxPoolItem( nId ), pRule( new SwNumRule( rRul ) )
+{
+}
+
+SwUINumRuleItem::SwUINumRuleItem( const String& rName, const USHORT nId )
+ : SfxPoolItem( nId ), pRule( new SwNumRule( rName ) )
+{
+}
+
+SwUINumRuleItem::SwUINumRuleItem( const SwUINumRuleItem& rItem )
+ : SfxPoolItem( rItem ),
+ pRule( new SwNumRule( *rItem.pRule ))
+{
+}
+
+ SwUINumRuleItem::~SwUINumRuleItem()
+{
+ delete pRule;
+}
+
+
+SfxPoolItem* SwUINumRuleItem::Clone( SfxItemPool *pPool ) const
+{
+ return new SwUINumRuleItem( *this );
+}
+
+int SwUINumRuleItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
+ return *pRule == *((SwUINumRuleItem&)rAttr).pRule;
+}
+
+BOOL SwUINumRuleItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
+{
+ uno::Reference< container::XIndexReplace >xRules = new SwXNumberingRules(*pRule);
+ rVal.setValue(&xRules, ::getCppuType((uno::Reference< container::XIndexReplace>*)0));
+ return TRUE;
+}
+BOOL SwUINumRuleItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
+{
+ if(rVal.getValueType() == ::getCppuType((uno::Reference< container::XIndexReplace >*)0) )
+ {
+ uno::Reference< container::XIndexReplace>* pxRulesRef = (uno::Reference< container::XIndexReplace>*)rVal.getValue();
+ uno::Reference< lang::XUnoTunnel > xTunnel(*pxRulesRef, uno::UNO_QUERY);
+ SwXNumberingRules* pSwXRules = xTunnel.is() ? (SwXNumberingRules*)
+ xTunnel->getSomething(SwXNumberingRules::getUnoTunnelId()) : 0;
+ if(pSwXRules)
+ {
+ *pRule = *pSwXRules->GetNumRule();
+ }
+ }
+ return TRUE;
+}
+/* -----------------17.06.98 17:43-------------------
+ *
+ * --------------------------------------------------*/
+SwBackgroundDestinationItem::SwBackgroundDestinationItem(USHORT nWhich, USHORT nValue) :
+ SfxUInt16Item(nWhich, nValue)
+{
+}
+/* -----------------17.06.98 17:44-------------------
+ *
+ * --------------------------------------------------*/
+SfxPoolItem* SwBackgroundDestinationItem::Clone( SfxItemPool *pPool ) const
+{
+ return new SwBackgroundDestinationItem(Which(), GetValue());
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.37 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.36 2000/05/26 16:55:03 os
+ includes removed
+
+ Revision 1.35 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.34 2000/03/23 07:55:38 os
+ UNO III
+
+ Revision 1.33 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.32 1999/09/01 08:41:58 OS
+ #66082# GetPresentation: new Parameter
+
+
+ Rev 1.31 01 Sep 1999 10:41:58 OS
+ #66082# GetPresentation: new Parameter
+
+ Rev 1.30 23 Feb 1999 10:22:36 OS
+ #61767# Kapitelnumerierung funktioniert wieder
+
+ Rev 1.29 27 Jan 1999 10:00:32 OS
+ #56371# TF_ONE51
+
+ Rev 1.28 26 Jun 1998 17:35:36 OS
+ SwBGDestItem mit Which #51751#
+
+ Rev 1.27 17 Jun 1998 18:19:06 OS
+ SwBackgroundDestinationItem
+
+ Rev 1.26 27 May 1998 13:40:12 OS
+ Put/QueryValue fuer SwUINumRuleItem
+
+ Rev 1.25 24 Mar 1998 13:46:28 JP
+ SwUINumRule: CTORen mit Name oder NumRule, nicht mehr mit NumRulePointer
+
+ Rev 1.24 29 Nov 1997 15:08:58 MA
+ includes
+
+ Rev 1.23 21 Nov 1997 12:10:18 MA
+ includes
+
+ Rev 1.22 17 Nov 1997 10:21:32 JP
+ Umstellung Numerierung
+
+ Rev 1.21 03 Nov 1997 13:59:22 MA
+ precomp entfernt
+
+ Rev 1.20 06 Sep 1997 10:58:32 OS
+ PenStyle der Fussnoten per Basic funktioniert #43272#
+
+ Rev 1.19 11 Nov 1996 10:54:14 MA
+ ResMgr
+
+ Rev 1.18 28 Aug 1996 15:42:40 OS
+ includes
+
+ Rev 1.17 20 Aug 1996 16:24:56 OS
+ SwPtrItem jetzt hier
+
+ Rev 1.16 25 Mar 1996 13:31:50 OS
+ Bugs im SwPageFtnInfoItem behoben
+
+ Rev 1.15 31 Jan 1996 09:43:46 OS
+ Masseinheit fuer SwPageFtnInfoItem
+
+ Rev 1.14 04 Dec 1995 16:05:52 OS
+ Set/FillVariable impl.
+
+ Rev 1.13 27 Nov 1995 18:55:14 OS
+ Umstellung 303a
+
+ Rev 1.12 24 Nov 1995 16:57:24 OM
+ PCH->PRECOMPILED
+
+ Rev 1.11 16 Nov 1995 18:30:36 OS
+ neu: Get/SetVariable, nicht impl.
+
+ Rev 1.10 08 Nov 1995 12:17:22 OS
+ Change => Set
+
+ Rev 1.9 11 Oct 1995 17:50:54 MA
+ fix: __EXPORT'iert
+
+ Rev 1.8 28 Sep 1995 08:05:46 OS
+ Typen fuer MSC richtig gecastet
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/utlui/uitool.cxx b/sw/source/ui/utlui/uitool.cxx
new file mode 100644
index 000000000000..50376626c3e9
--- /dev/null
+++ b/sw/source/ui/utlui/uitool.cxx
@@ -0,0 +1,1045 @@
+/*************************************************************************
+ *
+ * $RCSfile: uitool.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+
+
+#ifndef _SV_SVAPP_HXX //autogen
+#include <vcl/svapp.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_DOCFILT_HACK_HXX //autogen
+#include <sfx2/docfilt.hxx>
+#endif
+#ifndef _SVX_PMDLITEM_HXX //autogen
+#include <svx/pmdlitem.hxx>
+#endif
+#ifndef _SVX_TSTPITEM_HXX //autogen
+#include <svx/tstpitem.hxx>
+#endif
+#ifndef _SVX_BOXITEM_HXX //autogen
+#include <svx/boxitem.hxx>
+#endif
+#ifndef _SVX_SIZEITEM_HXX //autogen
+#include <svx/sizeitem.hxx>
+#endif
+#ifndef _SVX_PAGEITEM_HXX //autogen
+#include <svx/pageitem.hxx>
+#endif
+#ifndef _SVX_LRSPITEM_HXX //autogen
+#include <svx/lrspitem.hxx>
+#endif
+#ifndef _SFXSTYLE_HXX //autogen
+#include <svtools/style.hxx>
+#endif
+#ifndef _VCL_LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+
+#ifndef _FMTORNT_HXX //autogen
+#include <fmtornt.hxx>
+#endif
+#ifndef _TABCOL_HXX //autogen
+#include <tabcol.hxx>
+#endif
+
+#ifndef _FMTFSIZE_HXX //autogen
+#include <fmtfsize.hxx>
+#endif
+#ifndef _FMTHDFT_HXX //autogen
+#include <fmthdft.hxx>
+#endif
+#ifndef _FMTPDSC_HXX //autogen
+#include <fmtpdsc.hxx>
+#endif
+#ifndef _SWWVIEW_HXX //autogen
+#include <wview.hxx>
+#endif
+#ifndef _UIITEMS_HXX
+#include <uiitems.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _PARATR_HXX
+#include <paratr.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _MODCFG_HXX
+#include <modcfg.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+
+#ifndef _ERROR_H
+#include <error.h>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+#ifndef _UTLUI_HRC
+#include <utlui.hrc>
+#endif
+#ifndef _DOC_HXX //autogen wg. SwDoc
+#include <doc.hxx>
+#endif
+#ifndef _DOCARY_HXX
+#include <docary.hxx>
+#endif
+#ifndef _CHARFMT_HXX //autogen wg. SwCharFmt
+#include <charfmt.hxx>
+#endif
+
+// 50 cm 28350
+//
+#define MAXHEIGHT 28350
+#define MAXWIDTH 28350
+
+/*--------------------------------------------------------------------
+ Beschreibung: Allgemeine List von StringPointern
+ --------------------------------------------------------------------*/
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Metric umschalten
+ --------------------------------------------------------------------*/
+
+
+void SetMetric(MetricFormatter& rCtrl, FieldUnit eUnit)
+{
+ SwTwips nMin = rCtrl.GetMin(FUNIT_TWIP);
+ SwTwips nMax = rCtrl.GetMax(FUNIT_TWIP);
+
+ rCtrl.SetUnit(eUnit);
+
+ rCtrl.SetMin(nMin, FUNIT_TWIP);
+ rCtrl.SetMax(nMax, FUNIT_TWIP);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Boxinfo-Attribut setzen
+ --------------------------------------------------------------------*/
+
+
+void PrepareBoxInfo(SfxItemSet& rSet, const SwWrtShell& rSh)
+{
+ SvxBoxInfoItem aBoxInfo;
+ const SfxPoolItem *pBoxInfo;
+ if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_BORDER_INNER,
+ TRUE, &pBoxInfo))
+ aBoxInfo = *(SvxBoxInfoItem*)pBoxInfo;
+
+ // Tabellenvariante, wenn mehrere Tabellenzellen selektiert
+ rSh.GetCrsr(); //Damit GetCrsrCnt() auch das Richtige liefert
+ aBoxInfo.SetTable (rSh.IsTableMode() && rSh.GetCrsrCnt() > 1);
+ // Abstandsfeld immer anzeigen
+ aBoxInfo.SetDist ((BOOL) TRUE);
+ // Minimalgroesse in Tabellen und Absaetzen setzen
+ aBoxInfo.SetMinDist (rSh.IsTableMode() || rSh.GetSelectionType() & (SwWrtShell::SEL_TXT | SwWrtShell::SEL_TBL));
+ // Default-Abstand immer setzen
+ aBoxInfo.SetDefDist (MIN_BORDER_DIST);
+ // Einzelne Linien koennen nur in Tabellen DontCare-Status haben
+ aBoxInfo.SetValid(VALID_DISABLE, !rSh.IsTableMode());
+
+ rSet.Put(aBoxInfo);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Header Footer fuellen
+ --------------------------------------------------------------------*/
+
+
+void FillHdFt(SwFrmFmt* pFmt, const SfxItemSet& rSet)
+{
+ SwAttrSet aSet(pFmt->GetAttrSet());
+ aSet.Put(rSet);
+
+ const SvxSizeItem& rSize = (const SvxSizeItem&)rSet.Get(SID_ATTR_PAGE_SIZE);
+ const SfxBoolItem& rDynamic = (const SfxBoolItem&)rSet.Get(SID_ATTR_PAGE_DYNAMIC);
+
+ // Groesse umsetzen
+ //
+ SwFmtFrmSize aFrmSize(rDynamic.GetValue() ? ATT_MIN_SIZE : ATT_FIX_SIZE,
+ rSize.GetSize().Width(),
+ rSize.GetSize().Height());
+ aSet.Put(aFrmSize);
+ pFmt->SetAttr(aSet);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: PageDesc <-> in Sets wandeln und zurueck
+ --------------------------------------------------------------------*/
+
+
+void ItemSetToPageDesc(const SfxItemSet& rSet, SwPageDesc& rPageDesc,
+ SwWrtShell* pShell)
+{
+ SwFrmFmt& rMaster = rPageDesc.GetMaster();
+
+ // alle allgemeinen Rahmen-Attribute uebertragen
+ //
+ rMaster.SetAttr(rSet);
+
+ // PageData
+ //
+ if(rSet.GetItemState(SID_ATTR_PAGE) == SFX_ITEM_SET)
+ {
+ const SvxPageItem& rPageItem = (const SvxPageItem&)rSet.Get(SID_ATTR_PAGE);
+
+ USHORT nUse = (USHORT)rPageItem.GetPageUsage();
+ if(nUse & 0x04)
+ nUse |= 0x03;
+ if(nUse)
+ rPageDesc.SetUseOn( (UseOnPage) nUse );
+ rPageDesc.SetLandscape(rPageItem.IsLandscape());
+ SwNumType aNumType;
+ aNumType.eType = (SvxExtNumType)rPageItem.GetNumType();
+ rPageDesc.SetNumType(aNumType);
+ }
+ // Groesse
+ //
+ if(rSet.GetItemState(SID_ATTR_PAGE_SIZE) == SFX_ITEM_SET)
+ {
+ const SvxSizeItem& rSizeItem = (const SvxSizeItem&)rSet.Get(SID_ATTR_PAGE_SIZE);
+ SwFmtFrmSize aSize(ATT_FIX_SIZE);
+ aSize.SetSize(rSizeItem.GetSize());
+ rMaster.SetAttr(aSize);
+ }
+ // Kopzeilen-Attribute auswerten
+ //
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_PAGE_HEADERSET,
+ FALSE, &pItem ) )
+ {
+ const SfxItemSet& rHeaderSet = ((SvxSetItem*)pItem)->GetItemSet();
+ const SfxBoolItem& rHeaderOn = (const SfxBoolItem&)rHeaderSet.Get(SID_ATTR_PAGE_ON);
+
+ if(rHeaderOn.GetValue())
+ {
+ // Werte uebernehmen
+ if(!rMaster.GetHeader().IsActive())
+ rMaster.SetAttr(SwFmtHeader(TRUE));
+
+ // Das Headerformat rausholen und anpassen
+ //
+ SwFmtHeader aHeaderFmt(rMaster.GetHeader());
+ SwFrmFmt *pHeaderFmt = aHeaderFmt.GetHeaderFmt();
+ ASSERT(pHeaderFmt != 0, "kein HeaderFormat");
+
+ ::FillHdFt(pHeaderFmt, rHeaderSet);
+
+ rPageDesc.ChgHeaderShare(((const SfxBoolItem&)
+ rHeaderSet.Get(SID_ATTR_PAGE_SHARED)).GetValue());
+ }
+ else
+ { // Header ausschalten
+ //
+ if(rMaster.GetHeader().IsActive())
+ {
+ rMaster.SetAttr(SwFmtHeader(BOOL(FALSE)));
+ rPageDesc.ChgHeaderShare(FALSE);
+ }
+ }
+ }
+
+ // Fusszeilen-Attribute auswerten
+ //
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_PAGE_FOOTERSET,
+ FALSE, &pItem ) )
+ {
+ const SfxItemSet& rFooterSet = ((SvxSetItem*)pItem)->GetItemSet();
+ const SfxBoolItem& rFooterOn = (const SfxBoolItem&)rFooterSet.Get(SID_ATTR_PAGE_ON);
+
+ if(rFooterOn.GetValue())
+ {
+ // Werte uebernehmen
+ if(!rMaster.GetFooter().IsActive())
+ rMaster.SetAttr(SwFmtFooter(TRUE));
+
+ // Das Footerformat rausholen und anpassen
+ //
+ SwFmtFooter aFooterFmt(rMaster.GetFooter());
+ SwFrmFmt *pFooterFmt = aFooterFmt.GetFooterFmt();
+ ASSERT(pFooterFmt != 0, "kein FooterFormat");
+
+ ::FillHdFt(pFooterFmt, rFooterSet);
+
+ rPageDesc.ChgFooterShare(((const SfxBoolItem&)
+ rFooterSet.Get(SID_ATTR_PAGE_SHARED)).GetValue());
+ }
+ else
+ { // Footer ausschalten
+ //
+ if(rMaster.GetFooter().IsActive())
+ {
+ rMaster.SetAttr(SwFmtFooter(BOOL(FALSE)));
+ rPageDesc.ChgFooterShare(FALSE);
+ }
+ }
+ }
+
+ // Fussnoten
+ //
+ if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_FTN_INFO,
+ FALSE, &pItem ) )
+ rPageDesc.SetFtnInfo( ((SwPageFtnInfoItem*)pItem)->GetPageFtnInfo() );
+
+
+ //
+ // Columns
+ //
+
+ // Registerhaltigkeit
+
+ if(SFX_ITEM_SET == rSet.GetItemState(
+ SID_SWREGISTER_MODE, FALSE, &pItem))
+ {
+ BOOL bSet = ((const SfxBoolItem*)pItem)->GetValue();
+ if(!bSet)
+ rPageDesc.SetRegisterFmtColl(0);
+ else if(SFX_ITEM_SET == rSet.GetItemState(
+ SID_SWREGISTER_COLLECTION, FALSE, &pItem))
+ {
+ String sColl = ((const SfxStringItem*)pItem)->GetValue();
+ SwTxtFmtColl* pColl = pShell->GetParaStyle( sColl,
+ SwWrtShell::GETSTYLE_CREATEANY );
+ if(!rPageDesc.GetRegisterFmtColl())
+ {
+ SwRegisterItem aSet(TRUE);
+ pColl->SetAttr( aSet );
+ }
+ rPageDesc.SetRegisterFmtColl(pColl);
+ }
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet)
+{
+ const SwFrmFmt& rMaster = rPageDesc.GetMaster();
+
+ // Seitendaten
+ //
+ SvxPageItem aPageItem(SID_ATTR_PAGE);
+ aPageItem.SetDescName(rPageDesc.GetName());
+ aPageItem.SetPageUsage((SvxPageUsage)rPageDesc.GetUseOn());
+ aPageItem.SetLandscape(rPageDesc.GetLandscape());
+ aPageItem.SetNumType((SvxNumType)rPageDesc.GetNumType().eType);
+ rSet.Put(aPageItem);
+
+ // Groesse
+ SvxSizeItem aSizeItem(SID_ATTR_PAGE_SIZE, rMaster.GetFrmSize().GetSize());
+ rSet.Put(aSizeItem);
+
+ // Maximale Groesse
+ SvxSizeItem aMaxSizeItem(SID_ATTR_PAGE_MAXSIZE, Size(MAXWIDTH, MAXHEIGHT));
+ rSet.Put(aMaxSizeItem);
+
+ // Raender, Umrandung und das andere Zeug
+ //
+ rSet.Put(rMaster.GetAttrSet());
+
+ SvxBoxInfoItem aBoxInfo;
+ const SfxPoolItem *pBoxInfo;
+ if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_BORDER_INNER,
+ TRUE, &pBoxInfo) )
+ aBoxInfo = *(SvxBoxInfoItem*)pBoxInfo;
+
+ aBoxInfo.SetTable( FALSE );
+ // Abstandsfeld immer anzeigen
+ aBoxInfo.SetDist( TRUE);
+ // Minimalgroesse in Tabellen und Absaetzen setzen
+ aBoxInfo.SetMinDist( FALSE );
+ // Default-Abstand immer setzen
+ aBoxInfo.SetDefDist( MIN_BORDER_DIST );
+ // Einzelne Linien koennen nur in Tabellen DontCare-Status haben
+ aBoxInfo.SetValid( VALID_DISABLE );
+ rSet.Put( aBoxInfo );
+
+
+ SfxStringItem aFollow(SID_ATTR_PAGE_EXT1, aEmptyStr);
+ if(rPageDesc.GetFollow())
+ aFollow.SetValue(rPageDesc.GetFollow()->GetName());
+ rSet.Put(aFollow);
+
+ // Header
+ //
+ if(rMaster.GetHeader().IsActive())
+ {
+ const SwFmtHeader &rHeaderFmt = rMaster.GetHeader();
+ const SwFrmFmt *pHeaderFmt = rHeaderFmt.GetHeaderFmt();
+ ASSERT(pHeaderFmt != 0, kein HeaderFormat.);
+
+ // HeaderInfo, Raender, Hintergrund, Umrandung
+ //
+ SfxItemSet aHeaderSet( *rSet.GetPool(),
+ SID_ATTR_PAGE_ON, SID_ATTR_PAGE_SHARED,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ 0);
+
+ // dynamische oder feste Hoehe
+ //
+ SfxBoolItem aOn(SID_ATTR_PAGE_ON, TRUE);
+ aHeaderSet.Put(aOn);
+
+ const SwFmtFrmSize &rFrmSize = pHeaderFmt->GetFrmSize();
+ const SwFrmSize eSizeType = rFrmSize.GetSizeType();
+ SfxBoolItem aDynamic(SID_ATTR_PAGE_DYNAMIC, eSizeType != ATT_FIX_SIZE);
+ aHeaderSet.Put(aDynamic);
+
+ // Links gleich rechts
+ //
+ SfxBoolItem aShared(SID_ATTR_PAGE_SHARED, rPageDesc.IsHeaderShared());
+ aHeaderSet.Put(aShared);
+
+ // Groesse
+ SvxSizeItem aSize(SID_ATTR_PAGE_SIZE, Size(rFrmSize.GetSize()));
+ aHeaderSet.Put(aSize);
+
+ // Rahmen-Attribute umschaufeln
+ //
+ aHeaderSet.Put(pHeaderFmt->GetAttrSet());
+ aHeaderSet.Put( aBoxInfo );
+
+ // SetItem erzeugen
+ //
+ SvxSetItem aSetItem(SID_ATTR_PAGE_HEADERSET, aHeaderSet);
+ rSet.Put(aSetItem);
+ }
+
+ // Footer
+ if(rMaster.GetFooter().IsActive())
+ {
+ const SwFmtFooter &rFooterFmt = rMaster.GetFooter();
+ const SwFrmFmt *pFooterFmt = rFooterFmt.GetFooterFmt();
+ ASSERT(pFooterFmt != 0, kein FooterFormat.);
+
+ // FooterInfo, Raender, Hintergrund, Umrandung
+ //
+ SfxItemSet aFooterSet( *rSet.GetPool(),
+ SID_ATTR_PAGE_ON, SID_ATTR_PAGE_SHARED,
+ SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ RES_FRMATR_BEGIN, RES_FRMATR_END-1,
+ 0);
+
+ // dynamische oder feste Hoehe
+ //
+ SfxBoolItem aOn(SID_ATTR_PAGE_ON, TRUE);
+ aFooterSet.Put(aOn);
+
+ const SwFmtFrmSize &rFrmSize = pFooterFmt->GetFrmSize();
+ const SwFrmSize eSizeType = rFrmSize.GetSizeType();
+ SfxBoolItem aDynamic(SID_ATTR_PAGE_DYNAMIC, eSizeType != ATT_FIX_SIZE);
+ aFooterSet.Put(aDynamic);
+
+ // Links gleich rechts
+ //
+ SfxBoolItem aShared(SID_ATTR_PAGE_SHARED, rPageDesc.IsFooterShared());
+ aFooterSet.Put(aShared);
+
+ // Groesse
+ SvxSizeItem aSize(SID_ATTR_PAGE_SIZE, Size(rFrmSize.GetSize()));
+ aFooterSet.Put(aSize);
+
+ // Rahmen-Attribute umschaufeln
+ //
+ aFooterSet.Put(pFooterFmt->GetAttrSet());
+ aFooterSet.Put( aBoxInfo );
+
+ // SetItem erzeugen
+ //
+ SvxSetItem aSetItem(SID_ATTR_PAGE_FOOTERSET, aFooterSet);
+ rSet.Put(aSetItem);
+ }
+
+ // Fussnoten einbauen
+ //
+ SwPageFtnInfo& rInfo = (SwPageFtnInfo&)rPageDesc.GetFtnInfo();
+ SwPageFtnInfoItem aFtnItem(FN_PARAM_FTN_INFO, rInfo);
+ rSet.Put(aFtnItem);
+
+ // Registerhaltigkeit
+
+ const SwTxtFmtColl* pCol = rPageDesc.GetRegisterFmtColl();
+ SwRegisterItem aReg(pCol != 0);
+ aReg.SetWhich(SID_SWREGISTER_MODE);
+ rSet.Put(aReg);
+ if(pCol)
+ rSet.Put(SfxStringItem(SID_SWREGISTER_COLLECTION, pCol->GetName()));
+
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: DefaultTabs setzen
+ --------------------------------------------------------------------*/
+
+
+void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs)
+{
+ if( rTabs.Count() )
+ return;
+ {
+ SvxTabStop aSwTabStop( nDefDist, SVX_TAB_ADJUST_DEFAULT );
+ rTabs.Insert( aSwTabStop );
+ }
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Abstand zwischen zwei Tabs
+ --------------------------------------------------------------------*/
+
+
+USHORT GetTabDist(const SvxTabStopItem& rTabs)
+{
+ USHORT nDefDist;
+ if( rTabs.Count() )
+ nDefDist = (USHORT)( rTabs[0].GetTabPos() );
+ else
+ nDefDist = 1134; // 2cm
+ return nDefDist;
+}
+
+
+// erfrage ob im Set eine Sfx-PageDesc-Kombination vorliegt und returne diese
+void SfxToSwPageDescAttr( const SwWrtShell& rShell, SfxItemSet& rSet )
+{
+ const SfxPoolItem* pItem;
+ SwFmtPageDesc aPgDesc;
+
+ BOOL bChanged = FALSE;
+ // Seitennummer
+ if(SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_PARA_PAGENUM, FALSE, &pItem))
+ {
+ aPgDesc.SetNumOffset(((SfxUInt16Item*)pItem)->GetValue());
+ bChanged = TRUE;
+ }
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_PARA_MODEL, FALSE, &pItem ))
+ {
+ const String& rDescName = ((SvxPageModelItem*)pItem)->GetValue();
+ if( rDescName.Len() ) // kein Name -> PageDesc ausschalten!
+ {
+ // nur loeschen, wenn PageDesc eingschaltet wird!
+ rSet.ClearItem( RES_BREAK );
+ SwPageDesc* pDesc = ((SwWrtShell&)rShell).FindPageDescByName(
+ rDescName, TRUE );
+ if( pDesc )
+ pDesc->Add( &aPgDesc );
+ }
+ rSet.ClearItem( SID_ATTR_PARA_MODEL );
+ bChanged = TRUE;
+ }
+ else
+ {
+ SfxItemSet aCoreSet(rShell.GetView().GetPool(), RES_PAGEDESC, RES_PAGEDESC );
+ rShell.GetAttr( aCoreSet );
+ if(SFX_ITEM_SET == aCoreSet.GetItemState( RES_PAGEDESC, TRUE, &pItem ) )
+ {
+ if( ((SwFmtPageDesc*)pItem)->GetPageDesc() )
+ {
+ ((SwFmtPageDesc*)pItem)->GetPageDesc()->Add(&aPgDesc);
+ }
+ }
+ }
+
+
+ if(bChanged)
+ rSet.Put( aPgDesc );
+}
+
+
+// erfrage ob im Set eine Sfx-PageDesc-Kombination vorliegt und returne diese
+void SwToSfxPageDescAttr( SfxItemSet& rCoreSet )
+{
+ const SfxPoolItem* pItem = 0;
+ String aName;
+ USHORT nPageNum = 0;
+ BOOL bPut = TRUE;
+ switch( rCoreSet.GetItemState( RES_PAGEDESC, TRUE, &pItem ) )
+ {
+ case SFX_ITEM_SET:
+ {
+ if( ((SwFmtPageDesc*)pItem)->GetPageDesc() )
+ {
+ aName = ((SwFmtPageDesc*)pItem)->GetPageDesc()->GetName();
+ nPageNum = ((SwFmtPageDesc*)pItem)->GetNumOffset();
+ }
+ rCoreSet.ClearItem( RES_PAGEDESC );
+ // Seitennummer
+ }
+ break;
+
+ case SFX_ITEM_AVAILABLE:
+ break;
+
+ default:
+ bPut = FALSE;
+ }
+ SfxUInt16Item aPageNum( SID_ATTR_PARA_PAGENUM, nPageNum );
+ rCoreSet.Put( aPageNum );
+
+ if(bPut)
+ rCoreSet.Put( SvxPageModelItem( aName, TRUE, SID_ATTR_PARA_MODEL ) );
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Metric ermitteln
+ --------------------------------------------------------------------*/
+
+
+FieldUnit GetDfltMetric(BOOL bWeb)
+{
+ return SW_MOD()->GetModuleConfig()->GetMetric(bWeb);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Metric ermitteln
+ --------------------------------------------------------------------*/
+
+
+void SetDfltMetric( FieldUnit eMetric, BOOL bWeb )
+{
+ SwModuleOptions* pCfg = SW_MOD()->GetModuleConfig();
+ FieldUnit eOldMetric = pCfg->GetMetric(bWeb);
+ if(eOldMetric != eMetric)
+ pCfg->SetMetric(eMetric, bWeb);
+
+ SwView* pTmpView = SwModule::GetFirstView();
+
+ // fuer alle MDI-Fenster das Lineal umschalten
+ while(pTmpView)
+ {
+ if(bWeb == (0 != PTR_CAST(SwWebView, pTmpView)))
+ {
+ pTmpView->ChangeVLinealMetric(eMetric);
+ pTmpView->ChangeTabMetric(eMetric);
+ }
+
+ pTmpView = SwModule::GetNextView(pTmpView);
+ }
+}
+
+/*-----------------15.07.97 10:49-------------------
+
+--------------------------------------------------*/
+// Umwandlung: Sub(LibName.ModulName) -> LibName.ModulName.Sub
+String ConvertMacroFormat(const String& rInput )
+{
+ String sTemp(rInput);
+ USHORT nFound = sTemp.Search('(');
+ USHORT nTokenCount = sTemp.GetTokenCount('.');
+ String sMac(rInput);
+ if( STRING_NOTFOUND != nFound || nTokenCount < 2)
+ {
+ if(nTokenCount < 2)
+ nFound = sTemp.Len();
+ // anderes Format: "Macro(Bibliothek.Modul)"
+ sMac = sTemp.Copy(0, nFound);
+ sTemp.Erase(0, nFound);
+ if(sTemp.Len() > 2)
+ {
+ sMac.Insert('.', 0);
+ sMac.Insert(sTemp.Copy(1, sTemp.Len() - 2), 0);
+ }
+ }
+ return sMac;
+}
+
+
+BOOL GetFileFilterNameDlg( Window& rParent, String& rFileName,
+ String* pPassword, String* pFilterName,
+ SfxMedium** ppMedium )
+{
+ Window* pDefDlgParent = Application::GetDefDialogParent();
+ Application::SetDefDialogParent( &rParent );
+ SfxMedium* pMed = SFX_APP()->InsertDocumentDialog( 0, SwDocShell::Factory() );
+ if( pMed )
+ {
+ if( pFilterName )
+ *pFilterName = pMed->GetFilter()->GetFilterName();
+
+ rFileName = URIHelper::SmartRelToAbs( pMed->GetName() );
+ if( pPassword )
+ {
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pMed->GetItemSet()->GetItemState(
+ SID_PASSWORD, FALSE, &pItem ) )
+ *pPassword = ((SfxStringItem*)pItem)->GetValue();
+ }
+
+ if( ppMedium )
+ *ppMedium = pMed;
+ else
+ delete pMed; // das brauchen wir nicht mehr !
+ }
+ Application::SetDefDialogParent( pDefDlgParent );
+ return 0 != pMed;
+}
+
+/*-----------------09.04.98 16:58-------------------
+
+--------------------------------------------------*/
+USHORT InsertStringSorted(const String& rEntry, ListBox& rToFill, BOOL bHasOffset, const International& rInt)
+{
+ USHORT i = bHasOffset ? 1 : 0;
+ for(; i < rToFill.GetEntryCount(); i++)
+ {
+ String sTemp(rToFill.GetEntry(i));
+ if(COMPARE_GREATER == rInt.Compare(sTemp, rEntry))
+ break;
+ }
+ return rToFill.InsertEntry(rEntry, i);
+}
+void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, BOOL bSorted)
+{
+ BOOL bHasOffset = rToFill.GetEntryCount() > 0;
+ SfxStyleSheetBasePool* pPool = pDocSh->GetStyleSheetPool();
+ pPool->SetSearchMask(SFX_STYLE_FAMILY_CHAR, SFXSTYLEBIT_ALL);
+ SwDoc* pDoc = pDocSh->GetDoc();
+ const International& rInt = Application::GetAppInternational();
+ const SfxStyleSheetBase* pBase = pPool->First();
+ String sStandard; GetDocPoolNm( RES_POOLCOLL_STANDARD, sStandard );
+ while(pBase)
+ {
+ if(pBase->GetName() != sStandard)
+ {
+ USHORT nPos;
+ if(bSorted)
+ nPos = InsertStringSorted(pBase->GetName(), rToFill, bHasOffset, rInt);
+ else
+ nPos = rToFill.InsertEntry(pBase->GetName());
+ long nPoolId = pDoc->GetPoolId( pBase->GetName(), GET_POOLID_CHRFMT );
+ rToFill.SetEntryData( nPos, (void*) (nPoolId));
+ }
+ pBase = pPool->Next();
+ }
+ // non-pool styles
+ const SwCharFmts* pFmts = pDoc->GetCharFmts();
+ for(USHORT i = 0; i < pFmts->Count(); i++)
+ {
+ const SwCharFmt* pFmt = (*pFmts)[i];
+ if(pFmt->IsDefault())
+ continue;
+ const String& rName = pFmt->GetName();
+ if(rToFill.GetEntryPos(rName) == LISTBOX_ENTRY_NOTFOUND)
+ {
+ USHORT nPos;
+ if(bSorted)
+ nPos = InsertStringSorted(rName, rToFill, bHasOffset, rInt);
+ else
+ nPos = rToFill.InsertEntry(rName);
+ long nPoolId = USHRT_MAX;
+ rToFill.SetEntryData( nPos, (void*) (nPoolId));
+ }
+ }
+};
+
+/* -----------------27.04.98 08:26-------------------
+ *
+ * --------------------------------------------------*/
+SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, USHORT *pPercent,
+ SwWrtShell* pSh )
+{
+ //Die Breite zu besorgen ist etwas komplizierter.
+ SwTwips nWidth;
+ const SwHoriOrient eOri = pFmt->GetHoriOrient().GetHoriOrient();
+ switch(eOri)
+ {
+ case HORI_FULL: nWidth = rCols.GetRight(); break;
+ case HORI_LEFT_AND_WIDTH:
+ case HORI_LEFT:
+ case HORI_RIGHT:
+ case HORI_CENTER:
+ nWidth = pFmt->GetFrmSize().GetWidth();
+ break;
+ default:
+ {
+ if(pSh)
+ {
+ const SwFrmFmt *pFlyFmt;
+ if ( 0 == (pFlyFmt = pSh->GetFlyFrmFmt()) )
+ {
+ nWidth = pSh->GetAnyCurRect(RECT_PAGE_PRT).Width();
+ }
+ else
+ {
+ nWidth = pSh->GetAnyCurRect(RECT_FLY_PRT_EMBEDDED).Width();
+ }
+ }
+ else
+ {
+ DBG_ERROR("wo soll die Breite denn herkommen?")
+ }
+ const SvxLRSpaceItem& rLRSpace = pFmt->GetLRSpace();
+ nWidth -= (rLRSpace.GetRight() + rLRSpace.GetLeft());
+ }
+ }
+ if (pPercent)
+ *pPercent = pFmt->GetFrmSize().GetWidthPercent();
+ return nWidth;
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.124 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.123 2000/08/25 10:13:03 os
+ #77214# sorted insert into a ListBox
+
+ Revision 1.122 2000/07/26 16:33:54 jp
+ use the new function GetDocPoolNm to get the collectionames
+
+ Revision 1.121 2000/06/26 13:05:24 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.120 2000/06/19 12:10:36 os
+ #71623# FillCharStyleListBox: optional sorted insertion
+
+ Revision 1.119 2000/06/07 13:28:53 os
+ CutPath removed
+
+ Revision 1.118 2000/04/26 15:03:20 os
+ GetName() returns const String&
+
+ Revision 1.117 2000/04/18 15:14:09 os
+ UNICODE
+
+ Revision 1.116 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.115 2000/02/11 15:00:54 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.114 1999/12/17 12:35:29 os
+ #70529# dont't insert default char format
+
+ Revision 1.113 1999/08/23 07:48:54 OS
+ #61218# correct handling of left_and_width oriented tables
+
+
+ Rev 1.112 23 Aug 1999 09:48:54 OS
+ #61218# correct handling of left_and_width oriented tables
+
+ Rev 1.111 02 Jul 1999 16:23:18 OS
+ FillCharStyleListBox: SetPoolId as UserData
+
+ Rev 1.110 05 Feb 1999 17:45:48 JP
+ Task #61467#/#61014#: neu FindPageDescByName
+
+ Rev 1.109 17 Nov 1998 10:59:12 OS
+ #58263# NumType durch SvxExtNumType ersetzt
+
+ Rev 1.108 12 Nov 1998 15:07:28 JP
+ Bug #54342#: auch bei GlobalDocs das Filepasswort an die Section uebertragen
+
+ Rev 1.107 08 Sep 1998 17:05:48 OS
+ #56134# Metric fuer Text und HTML getrennt
+
+ Rev 1.106 28 Apr 1998 09:14:52 OS
+ GetTableWidth() verschoben
+
+ Rev 1.105 15 Apr 1998 14:32:12 OS
+ ::FillCharStyleListBox
+
+ Rev 1.104 17 Feb 1998 09:03:56 TJ
+ include
+
+ Rev 1.103 13 Feb 1998 14:17:12 JP
+ neu: globale Funktion zum rufen des InserDocDialog
+
+ Rev 1.102 29 Nov 1997 15:08:58 MA
+ includes
+
+ Rev 1.101 21 Nov 1997 12:10:16 MA
+ includes
+
+ Rev 1.100 03 Nov 1997 13:59:22 MA
+ precomp entfernt
+
+ Rev 1.99 30 Oct 1997 11:19:50 AMA
+ Chg: Kein AutoFlag mehr an Break bzw. PageDesc-Attributen
+
+ Rev 1.98 15 Aug 1997 12:16:08 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.97 11 Aug 1997 10:34:16 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.96 15 Jul 1997 11:33:04 OS
+ Konvertierung von Basic-Namen: Sub(Lib.Modul) ->Lib.Modul.Sub
+
+ Rev 1.95 08 Jul 1997 14:13:36 OS
+ ConfigItems von der App ans Module
+
+ Rev 1.94 03 Feb 1997 15:23:22 OS
+ wird der PageDesc-Name nicht mitgeliefert, muss er von der Shell kommen
+
+ Rev 1.93 30 Jan 1997 15:30:18 OS
+ PageOffset des PageDesc an der richtigen Stelle setzen
+
+ Rev 1.92 16 Jan 1997 10:28:56 OS
+ GetDfltMetric: Modulmetric besorgen
+
+ Rev 1.91 13 Jan 1997 16:53:02 OS
+ TabStop am Module; Dynamische Kopf-/Fusszeilenhoehe
+
+ Rev 1.90 03 Dec 1996 12:39:32 AMA
+ Opt: Parameter aufgeraeumt, denn PageDescToItem benutzt keinen Drucker mehr
+
+ Rev 1.89 24 Oct 1996 18:00:56 OS
+ svxid fuer Registerhaltigkeit
+
+ Rev 1.88 24 Oct 1996 16:55:22 JP
+ Optimierung: Find...ByName
+
+ Rev 1.87 28 Aug 1996 15:42:36 OS
+ includes
+
+ Rev 1.86 27 Jul 1996 10:54:00 OS
+ RegisterItem benutzen
+
+ Rev 1.85 24 Jul 1996 15:13:50 OS
+ gfs. Register an der Absatzvorlage einschalten
+
+ Rev 1.84 23 Jul 1996 16:07:48 OS
+ ItemSetToPageDesc mit SwWrtsh*, Registerhaltigkeit
+
+ Rev 1.83 25 Jun 1996 20:17:26 HJS
+ includes
+
+ Rev 1.82 06 Jun 1996 14:52:26 OS
+ ClearItem erst aufrufen, wenn die Referenz nicht mehr gebraucht wird bug#28346#
+
+ Rev 1.81 25 Mar 1996 16:22:36 AMA
+ Opt: Auffuellen mit DefTabStops nur noch beim Abspeichern notwendig.
+
+ Rev 1.80 21 Mar 1996 14:08:32 OM
+ Umstellung 311
+
+ Rev 1.79 18 Mar 1996 14:27:22 OS
+ GetNextView an der App arbeitet nicht mehr mit static
+
+ Rev 1.78 27 Feb 1996 12:13:04 OS
+ neu: Get/SetDfltMetric
+
+ Rev 1.77 04 Dec 1995 12:40:42 JP
+ PageDescToItemSet: const PageDesc uebergeben
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/utlui/unotools.cxx b/sw/source/ui/utlui/unotools.cxx
new file mode 100644
index 000000000000..20e172a49c30
--- /dev/null
+++ b/sw/source/ui/utlui/unotools.cxx
@@ -0,0 +1,700 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotools.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <swtypes.hxx>
+#include <globals.hrc>
+#include <misc.hrc>
+
+#include <utlui.hrc>
+#include <unotools.hrc>
+#ifndef _UNOTOOLS_HXX
+#include <unotools.hxx>
+#endif
+#ifndef _UNOPRNMS_HXX
+#include <unoprnms.hxx>
+#endif
+
+#ifndef _TOOLS_DEBUG_HXX //autogen
+#include <tools/debug.hxx>
+#endif
+
+#ifndef _SV_MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_TEXT_XTEXTVIEWCURSORSUPPLIER_HPP_
+#include <com/sun/star/text/XTextViewCursorSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XSCREENCURSOR_HPP_
+#include <com/sun/star/view/XScreenCursor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_DOCUMENTZOOMTYPE_HPP_
+#include <com/sun/star/view/DocumentZoomType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_STYLE_XSTYLEFAMILIESSUPPLIER_HPP_
+#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_STYLE_XSTYLE_HPP_
+#include <com/sun/star/style/XStyle.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XFRAME_HPP_
+#include <com/sun/star/frame/XFrame.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXT_HPP_
+#include <com/sun/star/text/XText.hpp>
+#endif
+#ifndef _COM_SUN_STAR_TEXT_XTEXTDOCUMENT_HPP_
+#include <com/sun/star/text/XTextDocument.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_POSSIZE_HPP_
+#include <com/sun/star/awt/PosSize.hpp>
+#endif
+#ifndef _COM_SUN_STAR_AWT_XWINDOW_HPP_
+#include <com/sun/star/awt/XWindow.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XVIEWSETTINGSSUPPLIER_HPP_
+#include <com/sun/star/view/XViewSettingsSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_
+#include <com/sun/star/container/XNameContainer.hpp>
+#endif
+#ifndef _UNOTOOLS_PROCESSFACTORY_HXX_
+#include <unotools/processfactory.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen wg. SfxDispatcher
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen wg. SfxStringItem
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen wg. SFX_APP
+#include <sfx2/app.hxx>
+#endif
+#include <shellio.hxx>
+#ifndef _SWDOCSH_HXX //autogen wg. SwDocShell
+#include <docsh.hxx>
+#endif
+#ifndef _SWVIEW_HXX //autogen wg. SwView
+#include <view.hxx>
+#endif
+#ifndef _WRTSH_HXX //autogen wg. SwWrtShell
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _UNOOBJ_HXX
+#include <unoobj.hxx>
+#endif
+#ifndef _UNOCRSR_HXX
+#include <unocrsr.hxx>
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+
+
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+/* -----------------09.06.99 14:39-------------------
+ *
+ * --------------------------------------------------*/
+SwRenameXNamedDlg::SwRenameXNamedDlg(Window* pWin, uno::Reference< container::XNamed > & xN, uno::Reference< container::XNameAccess > & xNA) :
+ ModalDialog(pWin, SW_RES(DLG_RENAME_XNAMED)),
+ xNamed(xN),
+ xNameAccess(xNA),
+ aNewNameFT(this, ResId(FT_NEW_NAME)),
+ aNewNameED(this, ResId(ED_NEW_NAME)),
+ aNameGB(this, ResId(GB_NAME)),
+ aOk(this, ResId(PB_OK)),
+ aCancel(this, ResId(PB_CANCEL)),
+ aHelp(this, ResId(PB_HELP))
+{
+ FreeResource();
+ sRemoveWarning = String(SW_RES(STR_REMOVE_WARNING));
+
+ String sTmp(GetText());
+ sTmp += String(xNamed->getName());
+ SetText(sTmp);
+
+ aOk.SetClickHdl(LINK(this, SwRenameXNamedDlg, OkHdl));
+ aNewNameED.SetModifyHdl(LINK(this, SwRenameXNamedDlg, ModifyHdl));
+ aOk.Enable(sal_False);
+}
+/* -----------------09.06.99 15:34-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK(SwRenameXNamedDlg, OkHdl, OKButton*, pOk)
+{
+ try
+ {
+ xNamed->setName(aNewNameED.GetText());
+ }
+ catch(uno::RuntimeException&)
+ {
+ DBG_ERROR("Name wurde nicht geaendert")
+ }
+ EndDialog(RET_OK);
+ return 0;
+}
+/* -----------------09.06.99 15:48-------------------
+ *
+ * --------------------------------------------------*/
+IMPL_LINK(SwRenameXNamedDlg, ModifyHdl, NoSpaceEdit*, pEdit)
+{
+ String sTmp(pEdit->GetText());
+
+ // prevent from pasting illegal characters
+ sal_uInt16 nLen = sTmp.Len();
+ String sMsg;
+ for(sal_uInt16 i = 0; i < pEdit->GetForbiddenChars().Len(); i++)
+ {
+ sal_uInt16 nTmpLen = sTmp.Len();
+ sTmp.EraseAllChars(pEdit->GetForbiddenChars().GetChar(i));
+ if(sTmp.Len() != nTmpLen)
+ sMsg += pEdit->GetForbiddenChars().GetChar(i);
+ }
+ if(sTmp.Len() != nLen)
+ {
+ pEdit->SetText(sTmp);
+ String sWarning(sRemoveWarning);
+ sWarning += sMsg;
+ InfoBox(this, sWarning).Execute();
+ }
+
+ aOk.Enable(sTmp.Len() && !xNameAccess->hasByName(sTmp)
+ && (!xSecondAccess.is() || !xSecondAccess->hasByName(sTmp))
+ && (!xThirdAccess.is() || !xThirdAccess->hasByName(sTmp))
+ );
+ return 0;
+}
+/************************************************************************
+
+************************************************************************/
+sal_Bool SwOneExampleFrame::bShowServiceNotAvailableMessage = sal_True;
+/* -----------------27.07.99 15:26-------------------
+
+ --------------------------------------------------*/
+SwOneExampleFrame::SwOneExampleFrame(Window& rWin,
+ sal_uInt32 nFlags,
+ const Link* pInitializedLink,
+ String* pURL) :
+ aTopWindow(rWin.GetParent(), 0, this),
+ pModuleView(SW_MOD()->GetView()),
+ rWindow(rWin),
+ aMenuRes(SW_RES(RES_FRMEX_MENU)),
+ nStyleFlags(nFlags),
+ bIsInitialized(sal_False),
+ bServiceAvailable(sal_False)
+{
+ aTopWindow.SetPaintTransparent(sal_True);
+ aTopWindow.SetPosSizePixel(rWin.GetPosPixel(), rWin.GetSizePixel());
+ aTopWindow.SetZOrder( &rWin, WINDOW_ZORDER_FIRST );
+ aTopWindow.Show();
+ if(pInitializedLink)
+ aInitializedLink = *pInitializedLink;
+
+ rWin.Enable(sal_False);
+ uno::Reference< lang::XMultiServiceFactory >
+ xMgr = utl::getProcessServiceFactory();
+ uno::Reference< uno::XInterface > xInst = xMgr->createInstance( C2U("com.sun.star.frame.FrameControl") );
+ _xControl = uno::Reference< awt::XControl >(xInst, uno::UNO_QUERY);
+ if(_xControl.is())
+ {
+ uno::Reference< awt::XWindowPeer > xParent( rWindow.GetComponentInterface() );
+
+ uno::Reference< awt::XToolkit > xToolkit( xMgr->createInstance( C2U("com.sun.star.awt.Toolkit") ), uno::UNO_QUERY );
+ if(xToolkit.is())
+ {
+ _xControl->createPeer( xToolkit, xParent );
+ uno::Reference< beans::XPropertySet > xPrSet(xInst, uno::UNO_QUERY);
+ uno::Any aURL;
+ //
+ // create new doc
+ String sTempURL = String::CreateFromAscii("private:factory/swriter");
+ if(pURL && pURL->Len())
+ sTempURL = *pURL;
+ aURL <<= OUString(sTempURL);
+
+ uno::Sequence<beans::PropertyValue> aSeq(3);
+ beans::PropertyValue* pValues = aSeq.getArray();
+ pValues[0].Name = C2U("ReadOnly");
+ BOOL bTrue = sal_True;
+ pValues[0].Value.setValue(&bTrue, ::getBooleanCppuType());
+ pValues[1].Name = C2U("OpenFlags");
+ pValues[1].Value <<= C2U("-RB");
+ pValues[2].Name = C2U("Referer");
+ pValues[2].Value <<= C2U("private:user");
+ uno::Any aArgs;
+ aArgs.setValue(&aSeq, ::getCppuType((uno::Sequence<beans::PropertyValue>*)0));
+
+ xPrSet->setPropertyValue( C2U("LoaderArguments"), aArgs );
+ //save and set readonly???
+
+ xPrSet->setPropertyValue(C2U("ComponentURL"), aURL);
+
+
+ uno::Reference< awt::XWindow > xWin( _xControl, uno::UNO_QUERY );
+ Size aWinSize(rWindow.GetOutputSizePixel());
+ xWin->setPosSize( 0, 0, aWinSize.Width(), aWinSize.Height(), awt::PosSize::SIZE );
+ xWin->setVisible( sal_True );
+
+ // the controller is asynchronously set
+ aLoadedTimer.SetTimeoutHdl(LINK(this, SwOneExampleFrame, TimeoutHdl));
+ aLoadedTimer.SetTimeout(500);
+ aLoadedTimer.Start();
+ bServiceAvailable = sal_True;
+ }
+ }
+}
+/* -----------------------------08.12.99 13:44--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwOneExampleFrame::CreateErrorMessage(Window* pParent)
+{
+ if(SwOneExampleFrame::bShowServiceNotAvailableMessage)
+ {
+ String sInfo(SW_RES(STR_SERVICE_UNAVAILABLE));
+ sInfo += String::CreateFromAscii("com.sun.star.frame.FrameControl");
+ InfoBox(pParent, sInfo).Execute();
+ SwOneExampleFrame::bShowServiceNotAvailableMessage = sal_False;
+ }
+}
+/* -----------------27.07.99 15:26-------------------
+
+ --------------------------------------------------*/
+SwOneExampleFrame::~SwOneExampleFrame()
+{
+ _xCursor = 0;
+ if(_xControl.is())
+ _xControl->dispose();
+ _xControl = 0;
+ _xModel = 0;
+ _xController = 0;
+}
+/* -----------------27.07.99 15:26-------------------
+
+ --------------------------------------------------*/
+IMPL_LINK( SwOneExampleFrame, TimeoutHdl, Timer*, pTimer )
+{
+ if(!_xControl.is())
+ return 0;
+ // now get the model
+ uno::Reference< beans::XPropertySet > xPrSet(_xControl, uno::UNO_QUERY);
+ uno::Any aFrame = xPrSet->getPropertyValue(C2U("Frame"));
+ uno::Reference< frame::XFrame > xFrm = *(uno::Reference< frame::XFrame > *)aFrame.getValue();
+ _xController = xFrm->getController();
+ if(_xController.is())
+ {
+ _xModel = _xController->getModel();
+ //now the ViewOptions should be set properly
+ uno::Reference< view::XViewSettingsSupplier > xSettings(_xController, uno::UNO_QUERY);
+ uno::Reference< beans::XPropertySet > xViewProps = xSettings->getViewSettings();
+ uno::Any aSet;
+ sal_Bool bTrue = sal_True;
+ sal_Bool bFalse = sal_False;
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_BREAKS ), aSet);
+ aSet.setValue(&bTrue, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_DRAWINGS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_FIELD_COMMANDS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_FOOTNOTE_BACKGROUND ), aSet);
+ aSet.setValue(&bTrue, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_GRAPHICS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_HIDDEN_PARAGRAPHS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_HIDDEN_TEXT ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_HORI_RULER ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_INDEX_MARK_BACKGROUND), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_PARA_BREAKS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_PROTECTED_SPACES ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_SOFT_HYPHENS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_SPACES ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_TABLE_BOUNDARIES ), aSet);
+ aSet.setValue(&bTrue, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_TABLES ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_TABSTOPS ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_TEXT_BOUNDARIES ), aSet);
+ aSet.setValue(&bTrue, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_TEXT_FIELD_BACKGROUND), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_VERT_RULER ), aSet);
+ sal_Bool bTemp = 0 !=(nStyleFlags&EX_SHOW_ONLINE_LAYOUT);
+ aSet.setValue(&bTemp, ::getBooleanCppuType());
+ xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_ONLINE_LAYOUT), aSet);
+
+ if(0 ==(nStyleFlags&EX_SHOW_ONLINE_LAYOUT))
+ {
+ uno::Any aZoom; aZoom <<= (sal_Int16)view::DocumentZoomType::PAGE_WIDTH;
+ xViewProps->setPropertyValue(C2U(UNO_NAME_ZOOM_TYPE), aZoom);
+ }
+ else
+ {
+ uno::Any aZoom;
+ aZoom <<= (sal_Int16)view::DocumentZoomType::BY_VALUE;
+ xViewProps->setPropertyValue(C2U(UNO_NAME_ZOOM_TYPE), aZoom);
+
+ sal_Int16 nZoomValue = 50;
+ if(EX_SHOW_BUSINESS_CARDS == nStyleFlags)
+ {
+ nZoomValue = 80;
+ }
+ aZoom <<= nZoomValue;
+ xViewProps->setPropertyValue(C2U(UNO_NAME_ZOOM_VALUE), aZoom);
+ }
+
+ uno::Reference< text::XTextDocument > xDoc(_xModel, uno::UNO_QUERY);
+ uno::Reference< text::XText > xText = xDoc->getText();
+ _xCursor = xText->createTextCursor();
+ uno::Reference< beans::XPropertySet > xCrsrProp(_xCursor, uno::UNO_QUERY);
+ uno::Any aPageStyle = xCrsrProp->getPropertyValue(C2U(UNO_NAME_PAGE_STYLE_NAME));
+ OUString sPageStyle;
+ aPageStyle >>= sPageStyle;
+ uno::Reference< style::XStyleFamiliesSupplier > xSSupp(xDoc, uno::UNO_QUERY);
+ uno::Reference< container::XNameAccess > xStyles = xSSupp->getStyleFamilies();
+ uno::Any aPFamily = xStyles->getByName(C2U("PageStyles"));
+ uno::Reference< container::XNameContainer > xPFamily = *(uno::Reference< container::XNameContainer > *)aPFamily.getValue();
+ if(sPageStyle.getLength())
+ {
+ uno::Any aPStyle = xPFamily->getByName(sPageStyle);
+ uno::Reference< style::XStyle > xPStyle = *(uno::Reference< style::XStyle > *)aPStyle.getValue();
+ uno::Reference< beans::XPropertySet > xPProp(xPStyle, uno::UNO_QUERY);
+ uno::Any aSize = xPProp->getPropertyValue(C2U(UNO_NAME_SIZE));
+ awt::Size aPSize = *(awt::Size*)aSize.getValue();
+ //TODO: set page width to card width
+ aPSize.Width = 10000;
+ aSize.setValue(&aPSize, ::getCppuType((awt::Size*)0));
+ xPProp->setPropertyValue(C2U(UNO_NAME_SIZE), aSize);
+ }
+ rWindow.Show();
+ // can only be done here - the SFX changes the ScrollBar values
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_HORI_SCROLL_BAR ), aSet);
+ aSet.setValue(&bFalse, ::getBooleanCppuType()); xViewProps->setPropertyValue(C2U(UNO_NAME_SHOW_VERT_SCROLL_BAR ), aSet);
+
+ bIsInitialized = sal_True;
+ if(aInitializedLink.IsSet())
+ {
+ rWindow.Enable(sal_False, sal_True);
+ //rWindow.Enable(sal_True, sal_False);
+ aInitializedLink.Call(this);
+ }
+ SW_MOD()->SetView(pModuleView);
+ }
+ else
+ pTimer->Start();
+ return 0;
+}
+/* -----------------------------27.12.99 09:59--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwOneExampleFrame::ExecUndo()
+{
+ if(_xCursor.is())
+ {
+ uno::Reference< lang::XUnoTunnel > xTunnel(_xCursor, uno::UNO_QUERY);
+ SwXTextCursor* pCrsr = xTunnel.is() ?
+ (SwXTextCursor*)xTunnel->getSomething(SwXTextCursor::getUnoTunnelId()) : 0;
+
+ if(pCrsr)
+ {
+ SwDoc* pDoc = pCrsr->GetCrsr()->GetDoc();
+ SwEditShell* pSh = pDoc->GetEditShell();
+ pSh->Undo();
+ pDoc->ResetAttr(*pCrsr->GetCrsr());
+ }
+ else
+ {
+ _xCursor->gotoStart(sal_False);
+ _xCursor->gotoEnd(sal_True);
+ _xCursor->setString(OUString());
+ }
+ }
+}
+/* -----------------------------15.12.99 11:09--------------------------------
+
+ ---------------------------------------------------------------------------*/
+static const sal_Int16 nZoomValues[] =
+{
+ 20,
+ 40,
+ 50,
+ 75,
+ 100
+};
+//---------------------------------------------------------------------------
+#define ITEM_UP 100
+#define ITEM_DOWN 200
+#define ITEM_ZOOM 300
+
+void SwOneExampleFrame::CreatePopup(const Point& rPt)
+{
+ PopupMenu aPop;
+ PopupMenu aSubPop1;
+ ResStringArray& rArr = aMenuRes.GetMenuArray();
+
+ aPop.InsertItem(ITEM_UP, rArr.GetString(rArr.FindIndex(ST_MENU_UP )));
+ aPop.InsertItem(ITEM_DOWN, rArr.GetString(rArr.FindIndex(ST_MENU_DOWN )));
+
+ Link aSelLk = LINK(this, SwOneExampleFrame, PopupHdl );
+ aPop.SetSelectHdl(aSelLk);
+ if(EX_SHOW_ONLINE_LAYOUT == nStyleFlags)
+ {
+ aPop.InsertItem(ITEM_ZOOM, rArr.GetString(rArr.FindIndex(ST_MENU_ZOOM )));
+
+ uno::Reference< view::XViewSettingsSupplier > xSettings(_xController, uno::UNO_QUERY);
+ uno::Reference< beans::XPropertySet > xViewProps = xSettings->getViewSettings();
+
+ uno::Any aZoom = xViewProps->getPropertyValue(C2U(UNO_NAME_ZOOM_VALUE));
+ sal_Int16 nZoom;
+ aZoom >>= nZoom;
+
+ for(sal_uInt16 i = 0; i < 5; i++ )
+ {
+ String sTemp;
+ sTemp = String::CreateFromInt32(nZoomValues[i]);
+ sTemp += String::CreateFromAscii(" %");
+ aSubPop1.InsertItem( ITEM_ZOOM + i + 1, sTemp);
+ if(nZoom == nZoomValues[i])
+ aSubPop1.CheckItem(ITEM_ZOOM + i + 1);
+ }
+ aPop.SetPopupMenu( ITEM_ZOOM, &aSubPop1 );
+ aSubPop1.SetSelectHdl(aSelLk);
+ }
+ aPop.Execute( &aTopWindow, rPt );
+
+}
+/* -----------------------------15.12.99 11:09--------------------------------
+
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SwOneExampleFrame, PopupHdl, Menu*, pMenu )
+{
+ sal_uInt16 nId = pMenu->GetCurItemId();
+ if( nId > ITEM_ZOOM && nId < ITEM_ZOOM + 100 )
+ {
+ sal_Int16 nZoom = nZoomValues[nId - ITEM_ZOOM - 1];
+ uno::Reference< view::XViewSettingsSupplier > xSettings(_xController, uno::UNO_QUERY);
+ uno::Reference< beans::XPropertySet > xViewProps = xSettings->getViewSettings();
+
+ uno::Any aZoom;
+ aZoom <<= nZoom;
+ xViewProps->setPropertyValue(C2U(UNO_NAME_ZOOM_VALUE), aZoom);
+ aZoom <<= (sal_Int16)view::DocumentZoomType::BY_VALUE;
+ xViewProps->setPropertyValue(C2U(UNO_NAME_ZOOM_TYPE), aZoom);
+ }
+ else if(ITEM_UP == nId || ITEM_DOWN == nId)
+ {
+ uno::Reference< text::XTextViewCursorSupplier > xCrsrSupp(_xController, uno::UNO_QUERY);
+ uno::Reference< view::XScreenCursor > xScrCrsr(xCrsrSupp->getViewCursor(), uno::UNO_QUERY);
+ if(ITEM_UP == nId)
+ xScrCrsr->screenUp();
+ else
+ xScrCrsr->screenDown();
+ }
+ return 0;
+};
+/* -----------------------------15.12.99 10:37--------------------------------
+
+ ---------------------------------------------------------------------------*/
+SwFrmCtrlWindow::SwFrmCtrlWindow(Window* pParent, WinBits nBits,
+ SwOneExampleFrame* pFrame) :
+ Window(pParent, nBits),
+ pExampleFrame(pFrame)
+{
+}
+/* -----------------------------15.12.99 09:57--------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwFrmCtrlWindow::Command( const CommandEvent& rCEvt )
+{
+ switch ( rCEvt.GetCommand() )
+ {
+ case COMMAND_CONTEXTMENU:
+ {
+ pExampleFrame->CreatePopup(rCEvt.GetMousePosPixel());
+ }
+ break;
+ case COMMAND_WHEEL:
+ case COMMAND_STARTAUTOSCROLL:
+ case COMMAND_AUTOSCROLL:
+ break;
+ default:;
+ }
+}
+/* -----------------------------15.12.99 12:57--------------------------------
+
+ ---------------------------------------------------------------------------*/
+MenuResource::MenuResource(const ResId& rResId) :
+ Resource(rResId),
+ aMenuArray(ResId(1))
+{
+ FreeResource();
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.34 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.33 2000/09/14 14:47:48 os
+ #78770# CreateFromInt32
+
+ Revision 1.32 2000/08/28 08:12:24 os
+ #78015# Referer
+
+ Revision 1.31 2000/07/20 15:05:48 kz
+ properties renamed
+
+ Revision 1.30 2000/07/03 08:55:07 jp
+ must changes for VCL
+
+ Revision 1.29 2000/06/07 13:19:19 os
+ using UCB
+
+ Revision 1.28 2000/05/19 13:03:45 os
+ check interface in dtor
+
+ Revision 1.27 2000/05/16 09:15:14 os
+ project usr removed
+
+ Revision 1.26 2000/04/18 15:14:09 os
+ UNICODE
+
+ Revision 1.25 2000/03/23 13:25:02 os
+ #74334# create sub-popup within the same block as the main popup
+
+ Revision 1.24 2000/03/23 07:51:11 os
+ UNO III
+
+ Revision 1.23 2000/03/06 15:47:51 os
+ #73802# preview improved
+
+ Revision 1.22 2000/03/03 15:17:05 os
+ StarView remainders removed
+
+ Revision 1.21 2000/02/11 15:01:13 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.20 2000/02/04 14:59:53 os
+ #72599# mark current zoom level
+
+ Revision 1.19 1999/12/29 07:52:04 os
+ #71262# set zoom type first
+
+ Revision 1.18 1999/12/27 10:46:07 os
+ #71262# Undo in SwOneExampleFrame
+
+ Revision 1.17 1999/12/17 14:50:57 os
+ #70986# SwView of Example resets Module's view pointer
+
+ Revision 1.16 1999/12/15 15:32:45 os
+ #70234# ExampleFrame: OnlineLayout, ContextMenu, disabled
+
+ Revision 1.15 1999/12/09 12:29:12 os
+ #70284# show Bitmaps in hyperlink insert dialog# content.cxx glbltree.cxx navipi.hrc navipi.src
+
+ Revision 1.14 1999/12/07 15:41:50 os
+ #70574# old service names removed
+
+ Revision 1.13 1999/11/29 15:53:21 os
+ #70181# call dispose in dtor
+
+ Revision 1.12 1999/11/25 15:47:10 os
+ headers corrected
+
+ Revision 1.11 1999/11/25 08:58:07 os
+ hori scrollbar enabled
+
+ Revision 1.10 1999/11/23 10:18:09 os
+ header corrected
+
+ Revision 1.9 1999/11/19 16:40:25 os
+ modules renamed
+
+ Revision 1.8 1999/11/10 14:58:55 os
+ vertical scrollbar on
+
+ Revision 1.7 1999/10/22 15:06:25 os
+ user factory URL
+
+ Revision 1.6 1999/10/01 12:02:27 os
+ set bIsInitialized before calling the link
+
+ Revision 1.5 1999/09/20 09:58:54 os
+ local resources separated
+
+ Revision 1.4 1999/07/28 11:07:38 OS
+ new: SwOneExampleFrame
+
+
+ Rev 1.3 28 Jul 1999 13:07:38 OS
+ new: SwOneExampleFrame
+
+ Rev 1.2 02 Jul 1999 11:10:08 OS
+ #63003# NameWarning also in StarOne rename dialog
+
+ Rev 1.1 25 Jun 1999 10:22:40 OS
+ #67190# Names must be unique forall frames
+
+ Rev 1.0 10 Jun 1999 09:51:46 OS
+ SwRenameXNamedDialog
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/utlui/unotools.hrc b/sw/source/ui/utlui/unotools.hrc
new file mode 100644
index 000000000000..d3a4a386065b
--- /dev/null
+++ b/sw/source/ui/utlui/unotools.hrc
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotools.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _UNOTOOLS_HRC
+#define _UNOTOOLS_HRC
+
+#define FT_NEW_NAME 1
+#define ED_NEW_NAME 2
+#define GB_NAME 3
+#define PB_OK 4
+#define PB_HELP 5
+#define PB_CANCEL 6
+
+#define ST_MENU_ZOOM 1
+#define ST_MENU_UP 2
+#define ST_MENU_DOWN 3
+
+#endif
diff --git a/sw/source/ui/utlui/unotools.src b/sw/source/ui/utlui/unotools.src
new file mode 100644
index 000000000000..6cf8bbc3272a
--- /dev/null
+++ b/sw/source/ui/utlui/unotools.src
@@ -0,0 +1,330 @@
+/*************************************************************************
+ *
+ * $RCSfile: unotools.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include <unotools.hrc>
+#include <utlui.hrc>
+#include <globals.hrc>
+#include <helpid.h>
+
+ModalDialog DLG_RENAME_XNAMED
+{
+ HelpID = HID_RENAME_XNAMED ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 180 , 60 ) ;
+ Text = "Objekt umbenennen: " ;
+ Text [ ENGLISH ] = "Rename object: " ;
+ Moveable = TRUE ;
+ FixedText FT_NEW_NAME
+ {
+ Pos = MAP_APPFONT ( 12 , 15 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text = "Neuer Name" ;
+ Text [ ENGLISH ] = "New name" ;
+ Text[ english_us ] = "New name";
+ Text[ portuguese ] = "Novo nome";
+ Text[ russian ] = "Ïðèñâîèòü èìÿ";
+ Text[ greek ] = "ÍÝï üíïìá";
+ Text[ dutch ] = "Nieuwe naam";
+ Text[ french ] = "Nouveau nom";
+ Text[ spanish ] = "Nuevo nombre";
+ Text[ italian ] = "Nome nuovo";
+ Text[ danish ] = "Nyt navn";
+ Text[ swedish ] = "Nytt namn";
+ Text[ polish ] = "Nowa nazwa";
+ Text[ portuguese_brazilian ] = "New name";
+ Text[ japanese ] = "V‚µ‚¢–¼‘O";
+ Text[ korean ] = "»õ À̸§";
+ Text[ chinese_simplified ] = "ÐÂÃû³Æ";
+ Text[ chinese_traditional ] = "·s¦WºÙ";
+ Text[ arabic ] = "ÇáÇÓã ÇáÌÏíÏ";
+ Text[ turkish ] = "Yeni ad";
+ Text[ language_user1 ] = " ";
+ };
+ Edit ED_NEW_NAME
+ {
+ Pos = MAP_APPFONT ( 65 , 13 ) ;
+ Size = MAP_APPFONT ( 50 , 12 ) ;
+ Border = TRUE;
+ };
+ GroupBox GB_NAME
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 115 , 54 ) ;
+ Text = "Name ändern";
+ Text [ ENGLISH ] = "Change name" ;
+ Text[ english_us ] = "Change name";
+ Text[ portuguese ] = "Mudar nome";
+ Text[ russian ] = "Èçìåíèòü èìÿ";
+ Text[ greek ] = "ÁëëáãÞ ïíüìáôïò";
+ Text[ dutch ] = "Naam wijzigen";
+ Text[ french ] = "Modifier le nom";
+ Text[ spanish ] = "Cambiar nombre";
+ Text[ italian ] = "Cambia nome";
+ Text[ danish ] = "Modificer navn";
+ Text[ swedish ] = "Ändra namn";
+ Text[ polish ] = "Zmieñ nazwê";
+ Text[ portuguese_brazilian ] = "Change name";
+ Text[ japanese ] = "–¼‘O‚Ì•ÏX";
+ Text[ korean ] = "À̸§ º¯°æ";
+ Text[ chinese_simplified ] = "¸ü¸ÄÃû³Æ";
+ Text[ chinese_traditional ] = "Åܧó¦WºÙ";
+ Text[ arabic ] = "ÊÚÏíá ÇáÇÓã";
+ Text[ turkish ] = "Adý deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 124 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 124 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 124 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ Group = TRUE ;
+ };
+ Text[ english_us ] = "Rename object: ";
+ Text[ portuguese ] = "Mudar nome do objecto: ";
+ Text[ russian ] = "Ïåðåèìåíîâàòü îáúåêò: ";
+ Text[ greek ] = "Ìåôïíïìáóßá áíôéêåéìÝíïõ: ";
+ Text[ dutch ] = "Objectnaam wijzigen: ";
+ Text[ french ] = "Renommer l'objet : ";
+ Text[ spanish ] = "Cambiar nombre de objeto: ";
+ Text[ italian ] = "Rinomina oggetto: ";
+ Text[ danish ] = "Omdøb objekt: ";
+ Text[ swedish ] = "Byt namn på objekt: ";
+ Text[ polish ] = "Zmieñ nazwê obiektu: ";
+ Text[ portuguese_brazilian ] = "Rename object: ";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä–¼‚Ì•ÏX: ";
+ Text[ korean ] = "°³Ã¼ À̸§ ¹Ù²Ù±â: ";
+ Text[ chinese_simplified ] = "ÖØÃüÃû¶ÔÏó£º ";
+ Text[ chinese_traditional ] = "­«·s©R¦Wª«¥ó¡G ";
+ Text[ arabic ] = "ÅÚÇÏÉ ÊÓãíÉ ÇáßÇÆä: ";
+ Text[ turkish ] = "Nesneyi yeniden adlandýr: ";
+ Text[ language_user1 ] = " ";
+};
+String STR_SERVICE_UNAVAILABLE
+{
+ Text = "Der folgende Service ist nicht verfügbar: " ;
+ Text [ English ] = "The following service is not available: " ;
+ Text[ english_us ] = "The following service is not available: ";
+ Text[ portuguese ] = "O seguinte serviço não está disponível: ";
+ Text[ russian ] = "Ñëåäóþùàÿ ñëóæáà íå äîñòóïíà: ";
+ Text[ greek ] = "Ç áêüëïõèç õðçñåóßá äåí åßíáé äéáèÝóéìç: ";
+ Text[ dutch ] = "De volgende service is niet beschikbaar: ";
+ Text[ french ] = "Le service suivant n'est pas disponible : ";
+ Text[ spanish ] = "El siguiente servicio no está disponible: ";
+ Text[ italian ] = "Il seguente servizio non è disponibile. ";
+ Text[ danish ] = "Følgende service er ikke tilgængelig: ";
+ Text[ swedish ] = "Följande service är inte tillgänglig: ";
+ Text[ polish ] = "Nastêpuj¹cy serwis jest niedostêpny: ";
+ Text[ portuguese_brazilian ] = "The following service is not available: ";
+ Text[ japanese ] = "ŽŸ‚Ì»°ËÞ½‚ÍŽg—p‚Å‚«‚Ü‚¹‚ñ: ";
+ Text[ korean ] = "´ÙÀ½ÀÇ ¼­ºñ½º´Â °¡´ÉÇÏÁö ¾Ê½À´Ï´Ù.: ";
+ Text[ chinese_simplified ] = "²»´æÔÚÏÂÁзþÎñ¹¦ÄÜ£º ";
+ Text[ chinese_traditional ] = "³o­ÓªA°È¥\\¯à¤£¦s¦b¡G ";
+ Text[ arabic ] = "ÇáÎÏãÉ ÇáÊÇáíÉ ÛíÑ ãÊæÝÑÉ: ";
+ Text[ turkish ] = "Aþaðýdaki hizmet kullanýlamýyor: ";
+ Text[ language_user1 ] = " ";
+};
+Resource RES_FRMEX_MENU
+{
+ StringArray 1
+ {
+ ItemList =
+ {
+ < "~Maßstab" ; ST_MENU_ZOOM; > ;
+ < "Nach ~oben" ; ST_MENU_UP; > ;
+ < "Nach ~unten" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [English]=
+ {
+ < "~Zoom" ; ST_MENU_ZOOM; > ;
+ < "Go up" ; ST_MENU_UP; > ;
+ < "Go down" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ language_user1 ] =
+ {
+ < " " ; ST_MENU_ZOOM; > ;
+ < "Nach ~oben" ; ST_MENU_UP; > ;
+ < "Nach ~unten" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ english_us ] =
+ {
+ < "~Zoom" ; ST_MENU_ZOOM; > ;
+ < "~Upwards" ; ST_MENU_UP; > ;
+ < "Do~wnwards" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ portuguese ] =
+ {
+ < "~Escala" ; ST_MENU_ZOOM; > ;
+ < "Para ~cima" ; ST_MENU_UP; > ;
+ < "Para ~baixo" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ russian ] =
+ {
+ < "~Ìàñøòàá" ; ST_MENU_ZOOM; > ;
+ < "Ââåðõ" ; ST_MENU_UP; > ;
+ < "Âíèç" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ greek ] =
+ {
+ < "Êëß~ìáêá" ; ST_MENU_ZOOM; > ;
+ < "Ðñ~ïò ôá ðÜíù" ; ST_MENU_UP; > ;
+ < "Ðñïò ôá êÜôù" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ dutch ] =
+ {
+ < "~Maatstaf" ; ST_MENU_ZOOM; > ;
+ < "Naar b~oven" ; ST_MENU_UP; > ;
+ < "Naar be~neden" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ french ] =
+ {
+ < "~Échelle" ; ST_MENU_ZOOM; > ;
+ < "Vers le ~haut" ; ST_MENU_UP; > ;
+ < "Vers le ~bas" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ spanish ] =
+ {
+ < "~Escala" ; ST_MENU_ZOOM; > ;
+ < "Hacia ~arriba" ; ST_MENU_UP; > ;
+ < "Hacia a~bajo" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ italian ] =
+ {
+ < "~Zoom" ; ST_MENU_ZOOM; > ;
+ < "In alt~o" ; ST_MENU_UP; > ;
+ < "In basso" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ danish ] =
+ {
+ < "~Målestok" ; ST_MENU_ZOOM; > ;
+ < "Opad" ; ST_MENU_UP; > ;
+ < "Nedad" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ swedish ] =
+ {
+ < "Skala" ; ST_MENU_ZOOM; > ;
+ < "Uppåt" ; ST_MENU_UP; > ;
+ < "Nedåt" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ polish ] =
+ {
+ < "~Skala" ; ST_MENU_ZOOM; > ;
+ < "Do góry" ; ST_MENU_UP; > ;
+ < "Na dó³" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ portuguese_brazilian ] =
+ {
+ < "~Maßstab" ; ST_MENU_ZOOM; > ;
+ < "Nach ~oben" ; ST_MENU_UP; > ;
+ < "Nach ~unten" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ japanese ] =
+ {
+ < "½Þ°Ñi~Zj" ; ST_MENU_ZOOM; > ;
+ < "ã‚Ö(~U)" ; ST_MENU_UP; > ;
+ < "‰º‚Ö(~W)" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ korean ] =
+ {
+ < "Ãà¼Ò/È®´ë(~Z)" ; ST_MENU_ZOOM; > ;
+ < "À§·Î(~U)" ; ST_MENU_UP; > ;
+ < "¾Æ·¡·Î(~W)" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ chinese_simplified ] =
+ {
+ < "±ÈÀý" ; ST_MENU_ZOOM; > ;
+ < "ÏòÉÏ" ; ST_MENU_UP; > ;
+ < "ÏòÏÂ" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ chinese_traditional ] =
+ {
+ < "Åã¥Ü¤ñ¨Ò" ; ST_MENU_ZOOM; > ;
+ < "¦V¤W" ; ST_MENU_UP; > ;
+ < "¦V¤U" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ arabic ] =
+ {
+ < "ÊßÈíÑ/ÊÕÛíÑ" ; ST_MENU_ZOOM; > ;
+ < "Åáì ÃÚáì" ; ST_MENU_UP; > ;
+ < "Åáì ÃÓÝá" ; ST_MENU_DOWN; > ;
+ };
+ ItemList [ turkish ] =
+ {
+ < "~Yakýnlaþtýr" ; ST_MENU_ZOOM; > ;
+ < "Y~ukarý" ; ST_MENU_UP; > ;
+ < "A~þaðý" ; ST_MENU_DOWN; > ;
+ };
+ };
+};
diff --git a/sw/source/ui/utlui/utlui.src b/sw/source/ui/utlui/utlui.src
new file mode 100644
index 000000000000..de8f23380a8c
--- /dev/null
+++ b/sw/source/ui/utlui/utlui.src
@@ -0,0 +1,1624 @@
+/*************************************************************************
+ *
+ * $RCSfile: utlui.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#include "globals.hrc"
+#include "utlui.hrc"
+#include "helpid.h"
+#include "comcore.hrc"
+
+
+Resource RID_SHELLRES_AUTOFMTSTRS
+{
+ String STR_AUTOFMTREDL_DEL_EMPTY_PARA+1
+ {
+ Text = "Leere Absätze entfernen" ;
+ Text [ English ] = "Remove empty paragraphs" ;
+ Text [ english_us ] = "Remove empty paragraphs" ;
+ Text [ swedish ] = "Ta bort tomma stycken" ;
+ Text [ danish ] = "Fjern tomme afsnit" ;
+ Text [ italian ] = "Elimina paragrafi vuoti" ;
+ Text [ spanish ] = "Eliminar párrafos vacíos" ;
+ Text [ french ] = "Supprimer les paragraphes vides" ;
+ Text [ dutch ] = "Lege alinea´s verwijderen" ;
+ Text [ portuguese_brazilian ] = "Leere Absätze entfernen" ;
+ Text [ portuguese ] = "Remover parágrafos vazios" ;
+ Text[ chinese_simplified ] = "ɾ³ý¿Õ°×¶ÎÂä";
+ Text[ russian ] = "Óäàëèòü ïóñòûå àáçàöû";
+ Text[ polish ] = "Usuñ puste akapity";
+ Text[ japanese ] = "‹ó‚Ì’i—Ž‚ðíœ";
+ Text[ chinese_traditional ] = "§R°£ªÅ¥Õ¬q¸¨";
+ Text[ arabic ] = "ÅÒÇáÉ ÇáÝÞÑÇÊ ÇáÝÇÑÛÉ";
+ Text[ greek ] = "ÄéáãñáöÞ êåíþí ðáñáãñÜöùí";
+ Text[ korean ] = "ºó ´Ü¶ô Á¦°Å";
+ Text[ turkish ] = "Boþ paragraflarý kaldýr";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_USE_REPLACE+1
+ {
+ Text = "Ersetzungstabelle anwenden" ;
+ Text [ English ] = "Apply replacement table" ;
+ Text [ english_us ] = "Use replacement table" ;
+ Text [ swedish ] = "Använd ersättningstabell" ;
+ Text [ danish ] = "Anvend erstatningstabel" ;
+ Text [ italian ] = "Applica tabella delle sostituzioni" ;
+ Text [ spanish ] = "Usar tabla de sustitución" ;
+ Text [ french ] = "Utiliser la table de remplacement" ;
+ Text [ dutch ] = "Vervangingstabel gebruiken" ;
+ Text [ portuguese_brazilian ] = "Ersetzungstabelle anwenden" ;
+ Text [ portuguese ] = "Aplicar tabela de substituição" ;
+ Text[ chinese_simplified ] = "ʹÓøüÌæ±í¸ñ";
+ Text[ russian ] = "Ïðèìåíèòü òàáëèöó çàìåí";
+ Text[ polish ] = "U¿yj tabeli zamian";
+ Text[ japanese ] = "’uŠ·Ã°ÌÞÙ‚ÌŽg—p";
+ Text[ chinese_traditional ] = "¨Ï¥Î¥N´Àªí";
+ Text[ arabic ] = "ÇÓÊÎÏÇã ÞÇÆãÉ ÇáÇÓÊÈÏÇá";
+ Text[ greek ] = "ÅöáñìïãÞ ðßíáêá áíôéêáôÜóôáóçò";
+ Text[ korean ] = "´ëü Ç¥ Àû¿ë";
+ Text[ turkish ] = "Deðiþtirme tablosunu kullan";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_CPTL_STT_WORD+1
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? ZWei Großbuchstaben am WOrtanfang korrigieren : ZWei Gro˜buchstaben am WOrtanfang korrigieren */
+ Text = "ZWei Großbuchstaben am WOrtanfang korrigieren" ;
+ Text [ ENGLISH ] = "REplace two Capital Letters at the WOrd beginning" ;
+ Text [ norwegian ] = "ERstatt to Store Bokstaver i begynnelsen av ORd" ;
+ Text [ italian ] = "COrreggi la doppia MAiuscola ad inizio PArola" ;
+ Text [ portuguese_brazilian ] = "SUbstituir duas Letras Maiosculas no in¡cio da Palavra" ;
+ Text [ portuguese ] = "COrrigir duas maiúsculas no INício da palavra" ;
+ Text [ finnish ] = "Korvaa kaksi ISoa kirjainta sanan alussa" ;
+ Text [ danish ] = "REt andet bogstav i ORd til lille" ;
+ Text [ french ] = "COrriger la 2e majuscule en DÉbut de mot" ;
+ Text [ swedish ] = "KOrrigera två versaler i BÖrjan av ordet" ;
+ Text [ dutch ] = "TWee hoofdletters aan WOordbegin corrigeren" ;
+ Text [ spanish ] = "Corregir DOs MAyúsculas a principio de PAlabra" ;
+ Text [ english_us ] = "Correct TWo INitial CApitals" ;
+ Text[ chinese_simplified ] = "¸üÕý×ÖÊ×Ë«ÖØ´óд×Öĸ";
+ Text[ russian ] = "Èñïðàâëÿòü ÄÂå ÏÐîïèñíûå áóêâû â íà÷àëå ñëîâà";
+ Text[ polish ] = "Poprawiaj DWa POcz¹tkowe WErsaliki";
+ Text[ japanese ] = "2•¶Žš–ڂ𬕶Žš‚É‚·‚é";
+ Text[ chinese_traditional ] = "®Õ¥¿¦r­ºÂù¤j¼g¦r¥À";
+ Text[ arabic ] = "ÊÕÍíÍ ÍÑÝíä ÇÓÊåáÇáííä Ýí ÈÏÇíÉ ÇáßáãÉ";
+ Text[ greek ] = "Äéüñèùóç ÄÕï êåöáëáßùí ãñáììÜôùí óôçí ÁÑ÷Þ ôçò ëÝîçò";
+ Text[ korean ] = "´Ü¾î óÀ½ÀÇ µÎ ´ë¹®ÀÚ ¼öÁ¤";
+ Text[ turkish ] = "SÖzcük baþýndaki ÝKi büyük harfi düzelt";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_CPTL_STT_SENT+1
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Jeden Satz mit einem Großbuchstaben beginnen : Jeden Satz mit einem Gro˜buchstaben beginnen */
+ Text = "Jeden Satz mit einem Großbuchstaben beginnen" ;
+ Text [ ENGLISH ] = "Start each Sentence with a Capital Letter" ;
+ Text [ norwegian ] = "Begynn hver Setning med Stor Bokstav" ;
+ Text [ italian ] = "Inizia ogni frase con la maiuscola" ;
+ Text [ portuguese_brazilian ] = "Iniciar cada Sentença com uma Letra Maioscula" ;
+ Text [ portuguese ] = "Iniciar todas as frases com uma letra maiúscula" ;
+ Text [ finnish ] = "Aloita jokainen virke isolla kirjaimella" ;
+ Text [ danish ] = "Første bogstav i sætninger med stort" ;
+ Text [ french ] = "Majuscule en début de phrase" ;
+ Text [ swedish ] = "Börja varje mening med en versal" ;
+ Text [ dutch ] = "Elke zin met een hoofdletter beginnen" ;
+ Text [ spanish ] = "Iniciar cada frase con una letra mayúscula" ;
+ Text [ english_us ] = "Capitalize first letter of sentences" ;
+ Text[ chinese_simplified ] = "ÿ¸ö¾äÊײÉÓôóд×Öĸ";
+ Text[ russian ] = "Íà÷èíàòü êàæäîå ïðåäëîæåíèå ñ ïðîïèñíîé áóêâû";
+ Text[ polish ] = "Pocz¹tek zdania z du¿ej litery";
+ Text[ japanese ] = "‚·‚ׂĂ̕¶‚ð‘啶Žš‚ÅŽn‚ß‚é";
+ Text[ chinese_traditional ] = "¨C­Ó¥y­º±Ä¥Î¤j¼g¦r¥À";
+ Text[ arabic ] = "ÈÏÁ ßá ÌãáÉ ÈÍÑÝ ÇÓÊåáÇáí";
+ Text[ greek ] = "Åêêßíçóç êÜèå ðñüôáóçò ìå êåöáëáßï ãñÜììá";
+ Text[ korean ] = "¸ðµç ¹®ÀåÀ» ´ë¹®ÀÚ·Î ½ÃÀÛ";
+ Text[ turkish ] = "Cümleleri büyük harf ile baþlat.";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_TYPO+1
+ {
+ Text = "\"Gerade\" Anführungszeichen durch %1typografische%2 ersetzen" ;
+ Text [ ENGLISH ] = "Replace \"Standard\" Quotes by %1typographical%2 Quotes" ;
+ Text [ norwegian ] = "Erstatt \"Standard\" +++Quotes med %1typografiske%2 +++Quotes" ;
+ Text [ italian ] = "Sostituisci virgolette \"Standard\" con virgolette %1tipografiche%2" ;
+ Text [ portuguese_brazilian ] = "Substituir Citaçäes\"Padrao\" por Citaçäes \\%1typogr ficoal\\%2" ;
+ Text [ portuguese ] = "Substituir aspas \"padrão\" por aspas %1tipográficas%2" ;
+ Text [ finnish ] = "Korvaa \"vakio\"lainausmerkit %1typografisilla%2" ;
+ Text [ danish ] = "Erstat \"lige\" anførselstegn med %1typografiske%2" ;
+ Text [ french ] = "Remplacer les guillemets \"standard\" par des guillemets %1typographiques%2" ;
+ Text [ swedish ] = "Ersätt \"raka\" citationstecken med %1typografiska%2 citationstecken" ;
+ Text [ dutch ] = "\"Rechte\" aanhalingstekens vervangen door %1 typografische%2" ;
+ Text [ spanish ] = "Reemplazar comillas \"rectas\" con comillas %1tipográficas%2" ;
+ Text [ english_us ] = "Replace \"standard\" quotes with %1custom%2 quotes" ;
+ Text[ chinese_simplified ] = "\"Ö±ÐÍ\"ÒýºÅÓÉ%1¸öÈËÒýºÅ%2 ´úÌæ";
+ Text[ russian ] = "Çàìåíÿòü \"ïðÿìûå\" êàâû÷êè %1òèïîãðàôñêèìè %2";
+ Text[ polish ] = "Zamieniaj cudzys³owy \"proste\" na %1 \"drukarskie\" %2";
+ Text[ japanese ] = "\"ºÝËß­°À—p\"¸«°Ã°¼®ÝÏ°¸‚ð%1ˆóü—p%2‚É’uŠ·";
+ Text[ chinese_traditional ] = "\"ª½«¬¤Þ¸¹\"¥Ñ%1­Ó¤H¤Þ¸¹%2 ´À¥N";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÚáÇãÇÊ ÊäÕíÕ \"ÚÇÏíÉ\" ÈÜÚáÇãÇÊ ÊäÕíÕ%1ØÈæÛÑÇÝíøÉ%2";
+ Text[ greek ] = "ÁíôéêáôÜóôáóç \"ßóùí\" åéóáãùãéêþí ìå %1ôõðïãñáöéêÜ%2";
+ Text[ korean ] = "\"Á÷¼±\" ÀοëºÎÈ£¸¦ %1Àμâü%2 ÀοëºÎÈ£·Î ¹Ù²Þ";
+ Text[ turkish ] = "\"Düz\" týrnak iþaretlerini %1tipografik iþaretler ile%2 deðiþtir";
+ };
+ String STR_AUTOFMTREDL_USER_STYLE+1
+ {
+ Text = "Benutzervorlagen ersetzen" ;
+ Text [ English ] = "Replace user styles" ;
+ Text [ dutch ] = "Eigen opmaakprofielen vervangen" ;
+ Text [ english_us ] = "Replace Custom Styles" ;
+ Text [ swedish ] = "Ersätt användardefinierade formatmallar" ;
+ Text [ danish ] = "Erstat brugertypografier" ;
+ Text [ italian ] = "Sostituisci modelli utente" ;
+ Text [ spanish ] = "Reemplazar estilos del usuario" ;
+ Text [ french ] = "Remplacer les styles personnalisés" ;
+ Text [ portuguese ] = "Substituir estilos personalizados" ;
+ Text [ portuguese_brazilian ] = "Benutzervorlagen ersetzen" ;
+ Text[ chinese_simplified ] = "¸üÌæÓû§Ñùʽ";
+ Text[ russian ] = "Çàìåíèòü ñòèëè ïîëüçîâàòåëÿ";
+ Text[ polish ] = "Zamieñ szablony u¿ytkownika";
+ Text[ japanese ] = "Õ°»Þ°Ý’è‚̽À²Ù‚É’u‚«Š·‚¦‚é";
+ Text[ language_user1 ] = " ";
+ Text[ chinese_traditional ] = "¥N´À¦Û­q¼Ë¦¡";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÇáÃäãÇØ ÇáãÎÕÕÉ";
+ Text[ greek ] = "ÁíôéêáôÜóôáóç ðñïóáñìïóìÝíùí ðñïôýðùí";
+ Text[ korean ] = "»ç¿ëÀÚ ¼­½ÄÆÄÀÏ ´ëü";
+ Text[ turkish ] = "Kullanýcý biçimini deðiþtir";
+ };
+ String STR_AUTOFMTREDL_BULLET+1
+ {
+ Text = "Bulletzeichen ersetzt" ;
+ Text [ ENGLISH ] = "Replace Bullets" ;
+ Text[ italian ] = "Punti sostituiti";
+ Text[ portuguese_brazilian ] = "Replace Bullets";
+ Text[ portuguese ] = "Marca substituída";
+ Text[ danish ] = "Erstat punkttegn";
+ Text[ french ] = "Remplacer les puces";
+ Text[ swedish ] = "Ersätt uppräkningstecken";
+ Text[ dutch ] = "Opsommingstekens vervangen";
+ Text[ spanish ] = "Viñeta reemplazada";
+ Text[ english_us ] = "Bullets replaced";
+ Text[ chinese_simplified ] = "¸üÌæÏîÄ¿±àºÅ";
+ Text[ language_user1 ] = " ";
+ Text[ russian ] = "Ìàðêåðû çàìåíåíû";
+ Text[ polish ] = "Zamienione znaki wypunktowania";
+ Text[ japanese ] = "‰Óð‘‚«‹L†‚É’uŠ·";
+ Text[ chinese_traditional ] = "¥N´À¶µ¥Ø½s¸¹";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÚáÇãÇÊ ÇáÊÚÏÇÏ";
+ Text[ greek ] = "Ç áíôéêáôÜóôáóç êïõêßäùí ïëïêëçñþèçêå";
+ Text[ korean ] = "±Û¸Ó¸®Ç¥ ´ëü";
+ Text[ turkish ] = "Sýralama iþareti deðiþtirildi";
+ };
+ String STR_AUTOFMTREDL_UNDER+1
+ {
+ Text = "Automatisch _unterstrichen_" ;
+ Text [ English ] = "Automatic _underline_" ;
+ Text[ italian ] = "_Sottolineato_ automatico";
+ Text[ portuguese_brazilian ] = "Automatic _underline_";
+ Text[ portuguese ] = "_sublinhado_automático";
+ Text[ danish ] = "Automatisk _understreget_";
+ Text[ french ] = "_Soulignage_ automatique";
+ Text[ swedish ] = "Automatiskt _understruket_";
+ Text[ dutch ] = "Automatisch _onderstrepen_";
+ Text[ spanish ] = "Subrayado_automático_";
+ Text[ english_us ] = "Automatic _underline_";
+ Text[ chinese_simplified ] = "×Ô¶¯_Ï»®Ïß_";
+ Text[ russian ] = "Àâòîìàòè÷åñêîå _ïîä÷åðêèâàíèå_";
+ Text[ polish ] = "Automatyczne _podkreœlenie_";
+ Text[ japanese ] = "Ž©“®_‰ºü_";
+ Text[ chinese_traditional ] = "¦Û°Ê_¤U¹º½u_";
+ Text[ arabic ] = "_ÎØ ÊÍÊí_ ÊáÞÇÆíÇð";
+ Text[ greek ] = "Áõôüìáôç _õðïãñÜììéóç_";
+ Text[ korean ] = "ÀÚµ¿ _¹ØÁÙ_";
+ Text[ turkish ] = "Altýný_otomatik_çiz_";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_BOLD+1
+ {
+ Text = "Automatisch *fett*" ;
+ Text [ English ] = "Automatic *bold*" ;
+ Text[ italian ] = "*Grassetto* automatico";
+ Text[ portuguese_brazilian ] = "Automatic *bold*";
+ Text[ portuguese ] = "*negrito* automático";
+ Text[ danish ] = "Automatisk *fed*";
+ Text[ french ] = "*Gras* automatique";
+ Text[ swedish ] = "Automatiskt *fet*";
+ Text[ dutch ] = "Automatisch *vet*";
+ Text[ spanish ] = "*Negrita* automático";
+ Text[ english_us ] = "Automatic *bold*";
+ Text[ chinese_simplified ] = "×Ô¶¯ *´ÖÌå*";
+ Text[ russian ] = "Àâòîìàòè÷åñêè *æèðíûé*";
+ Text[ polish ] = "Automatyczne *pogrubienie*";
+ Text[ japanese ] = "Ž©“® *‘¾Žš*";
+ Text[ chinese_traditional ] = "¦Û°Ê *²ÊÅé*";
+ Text[ arabic ] = "*ÚÑíÖ* ÊáÞÇÆíÇð";
+ Text[ greek ] = "ÁõôïìÜôùò *Ýíôïíá*";
+ Text[ korean ] = "ÀÚµ¿À¸·Î *ÁøÇÏ°Ô*";
+ Text[ turkish ] = "Otomatik *kalýn*";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_FRACTION+1
+ {
+ Text = "1/2 ... durch ½ ... ersetzen" ;
+ Text [ English ] = "Replace 1/2 ... with ½ ..." ;
+ Text [ english_us ] = "Replace 1/2 ... with ½ ..." ;
+ Text [ swedish ] = "Ersätt 1/2 ... med ½ ..." ;
+ Text [ danish ] = "Erstat 1/2 ...med ½ ..." ;
+ Text [ italian ] = "Sostituisci 1/2 ... con ½" ;
+ Text [ spanish ] = "Reemplazar 1/2 ... por ½ ..." ;
+ Text [ dutch ] = "1/2 ... vervangen door ½ ..." ;
+ Text [ portuguese_brazilian ] = "1/2 ... gegen ½ ... ersetzen" ;
+ Text [ french ] = "Remplacer 1/2 ... par ½ ..." ;
+ Text [ portuguese ] = "Substituir 1/2 ... por ½ ..." ;
+ Text[ chinese_simplified ] = "Óà ?... ¸üÌæ 1/2 ...";
+ Text[ russian ] = "Çàìåíÿòü 1/2 ... íà ñèìâîëû";
+ Text[ polish ] = "Zamieñ 1/2 ... na \" ... ";
+ Text[ japanese ] = "1/2 ... ‚ð ½ ... ‚É’u‚«Š·‚¦‚é";
+ Text[ chinese_traditional ] = "¥Î ?... ¥N´À 1/2 ...";
+ Text[ arabic ] = "ÇÓÊÈÏÇá 1/2 ... ÈÜ ½...";
+ Text[ greek ] = "ÁíôéêáôÜóôáóç 1/2 ... ìå ½ ...";
+ Text[ korean ] = "1/2 ...À» ?...·Î ´ëü";
+ Text[ turkish ] = "1/2 ... yazýldýðýnda ½ ... ile deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_DETECT_URL+1
+ {
+ Text = "URL erkennen" ;
+ Text [ English ] = "Detect URL" ;
+ Text [ english_us ] = "URL recognition" ;
+ Text [ italian ] = "Riconosci URL" ;
+ Text [ spanish ] = "Reconocer URL" ;
+ Text [ french ] = "Détecter les URLs" ;
+ Text [ dutch ] = "URL herkennen" ;
+ Text [ swedish ] = "Känn igen URL" ;
+ Text [ danish ] = "Identificer URL" ;
+ Text [ portuguese_brazilian ] = "URL erkennen" ;
+ Text [ portuguese ] = "Reconhecer URL" ;
+ Text[ chinese_simplified ] = "ʶ±ð URL";
+ Text[ russian ] = "Ðàñïîçíàâàòü URL";
+ Text[ polish ] = "Rozpoznanie URL";
+ Text[ japanese ] = "URL ”FŽ¯";
+ Text[ chinese_traditional ] = "ÃѧO URL";
+ Text[ arabic ] = "ÇáÊÚÑÝ Úáì URL";
+ Text[ greek ] = "Áíáãíþñéóç URL";
+ Text[ korean ] = "URL ÀνÄ";
+ Text[ turkish ] = "URL taný";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_DASH+1
+ {
+ Text = "Gedankenstriche ersetzen" ;
+ Text [ English ] = "Replace dashes" ;
+ Text [ english_us ] = "Replace dashes" ;
+ Text [ swedish ] = "Ersätt tankstreck" ;
+ Text [ danish ] = "Erstat tankestreger" ;
+ Text [ italian ] = "Sostituisci trattini" ;
+ Text [ spanish ] = "Reemplazar comillas" ;
+ Text [ french ] = "Remplacer les tirets" ;
+ Text [ dutch ] = "Streepjes vervangen" ;
+ Text [ portuguese_brazilian ] = "Gedankenstriche ersetzen" ;
+ Text [ portuguese ] = "Substituir hífens" ;
+ Text[ chinese_simplified ] = "¸üÌæÆÆÕÛºÅ";
+ Text[ russian ] = "Çàìåíèòü òèðå";
+ Text[ polish ] = "Zamieniaj myœlniki";
+ Text[ japanese ] = "ÀÞ¯¼­‚É’uŠ·";
+ Text[ chinese_traditional ] = "¥N´À¯}§é¸¹";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÇáÔõÑóØ";
+ Text[ greek ] = "ÁíôéêáôÜóôáóç ðáõëþí";
+ Text[ korean ] = "´ë½Ã ´ëü";
+ Text[ turkish ] = "Tireleri deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_ORDINAL+1
+ {
+ Text = "1st ... durch 1^st ... ersetzen" ;
+ Text [ English ] = "Replace 1st with 1^st" ;
+ Text [ english_us ] = "Replace 1st... with 1^st..." ;
+ Text [ italian ] = "Sostituisci 1o ... con 1° ..." ;
+ Text [ spanish ] = "Reemplazar 1st ... con 1^st ..." ;
+ Text [ french ] = "Remplacer 1er ... par 1^er ..." ;
+ Text [ dutch ] = "1st ... vervangen door 1^st ..." ;
+ Text [ swedish ] = "Ersätt engelska ordningstal (1st)... med 1^st..." ;
+ Text [ danish ] = "Erstat 1st ... med 1^st ..." ;
+ Text [ portuguese_brazilian ] = "1st ... gegen 1^st ... ersetzen" ;
+ Text [ portuguese ] = "Substituir 1o... por 1º..." ;
+ Text[ chinese_simplified ] = "Óà 1^st... ¸üÌæ 1st...";
+ Text[ russian ] = "Çàìåíèòü 1st ... íà 1^st ...";
+ Text[ polish ] = "Zamieñ 1st ... na 1^st ... ";
+ Text[ japanese ] = "1st ...‚ð 1^st ... ‚É’u‚«Š·‚¦‚é";
+ Text[ chinese_traditional ] = "¥Î 1^st... ¥N´À 1st...";
+ Text[ arabic ] = "ÇÓÊÈÏÇá 1st ... ÈÜ 1^st ...";
+ Text[ greek ] = "ÁíôéêáôÜóôáóç 1ï... ìå 1^ï...";
+ Text[ korean ] = "1st...À» 1^st...·Î ´ëü";
+ Text[ turkish ] = "1st ... yazýldýðýnda 1^st ... ile deðiþtir";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_RIGHT_MARGIN+1
+ {
+ Text = "Zusammenfassen von einzeiligen Absätzen" ;
+ Text [ ENGLISH ] = "Combine single line paragraphs" ;
+ Text[ italian ] = "Mantieni assieme i paragrafi ad una riga";
+ Text[ portuguese_brazilian ] = "Combine single line paragraphs";
+ Text[ portuguese ] = "Unir parágrafos de uma linha";
+ Text[ danish ] = "Kombiner enkeltlinjede afsnit";
+ Text[ french ] = "Fusionner les paragraphes à une seule ligne";
+ Text[ swedish ] = "Sammanfoga enradiga stycken";
+ Text[ dutch ] = "Eenregelige alinea's samenvoegen";
+ Text[ spanish ] = "Unir párrafos de una línea";
+ Text[ english_us ] = "Combine single line paragraphs";
+ Text[ chinese_simplified ] = "ºÏ²¢µ¥ÐжÎÂä";
+ Text[ russian ] = "Îáúåäèíåíèå îäíîñòðî÷íûõ àáçàöåâ";
+ Text[ polish ] = "Po³¹czenie akapitów jednowierszowych";
+ Text[ japanese ] = "1s’i—Ž‚ÌŒ‹‡";
+ Text[ chinese_traditional ] = "¦X¨Ö³æ¦æ¬q¸¨";
+ Text[ arabic ] = "ÏãÌ ÇáÝÞÑÇÊ ÃÍÇÏíÉ ÇáÃÓØÑ";
+ Text[ greek ] = "¸íùóç ìïíüãñáììùí ðáñáãñÜöùí";
+ Text[ korean ] = "ÇÑÁÙ ´Ü¶ô ÇÕÄ¡±â";
+ Text[ turkish ] = "Tek satýrlý paragraflarý birleþtir";
+ Text[ language_user1 ] = " ";
+ };
+
+ String STR_AUTOFMTREDL_SET_TMPL_TEXT +1
+ {
+ Text = "Setze Vorlage \"Textkörper\"" ;
+ Text [ English ] = "Set template \"Text body\"" ;
+ Text[ italian ] = "Imposta modello \"corpo del testo\"";
+ Text[ portuguese_brazilian ] = "Set template \"Text body\"";
+ Text[ portuguese ] = "Aplicar estilo \"Corpo do texto\"";
+ Text[ danish ] = "Anvend typografi \"Brødtekst\"";
+ Text[ french ] = "Appliquer le style \"Corps de texte\"";
+ Text[ swedish ] = "Använd formatmallen \"Brödtext\"";
+ Text[ dutch ] = "Sjabloon \"Tekstblok\" toepassen";
+ Text[ spanish ] = "Aplicar estilo \"Cuerpo de texto\"";
+ Text[ english_us ] = "Set \"Text body\" Style";
+ Text[ chinese_simplified ] = "É趨¡°ÕýÎÄ¡±Ñùʽ";
+ Text[ russian ] = "Óñòàíîâèòü ñòèëü \"Îñíîâíîé òåêñò\"";
+ Text[ polish ] = "U?yj szablonu \"Obszar tekstowy\"";
+ Text[ japanese ] = "\"–{•¶\"‚̽À²ÙÝ’è";
+ Text[ chinese_traditional ] = "³]©w¼Ë¦¡¡§¤º¤å¡¨";
+ Text[ arabic ] = "ÊÚííä ÇáäãØ \"ÌÓã ÇáäÕ\"";
+ Text[ greek ] = "Ïñéóìüò ðñïôýðïõ \"Óþìá êåéìÝíïõ\"";
+ Text[ korean ] = "\"º»¹®\" À¯Çü ¼³Á¤";
+ Text[ turkish ] = "\"Metin gövdesi\" biçimini uygula";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_SET_TMPL_INDENT +1
+ {
+ Text = "Setze Vorlage \"Textkörper Einzug\"" ;
+ Text [ English ] = "Set template \"Text body indent\"" ;
+ Text[ italian ] = "Imposta modello \"rientro corpo del testo\"";
+ Text[ portuguese_brazilian ] = "Set template \"Text body indent\"";
+ Text[ portuguese ] = "Aplicar estilo \"Abrir parágrafo\"";
+ Text[ danish ] = "Anvend typografi \"Første linjes indrykning\"";
+ Text[ french ] = "Appliquer le style \"Alinéa\"";
+ Text[ swedish ] = "Använd formatmallen \"Dra in första raden\"";
+ Text[ dutch ] = "Sjabloon \"1e regel inspringen\" toepassen";
+ Text[ spanish ] = "Aplicar estilo \"Sangría de primera línea\"";
+ Text[ english_us ] = "Set \"Text body indent\" Style";
+ Text[ chinese_simplified ] = "É趨¡°ÕýÎÄËõ½ø¡±Ñùʽ";
+ Text[ russian ] = "Óñòàíîâèòü ñòèëü \"Ïåðâàÿ ñòðîêà ñ îòñòóïîì\"";
+ Text[ polish ] = "U¿yj szablonu \"Wciêcie obszaru tekstowego\"";
+ Text[ japanese ] = "\"–{•¶²ÝÃÞÝÄ\"‚̽À²ÙÝ’è";
+ Text[ chinese_traditional ] = "³]©w¼Ë¦¡¡§¤º¤åÁY±Æ¡¨";
+ Text[ arabic ] = "ÊÚííä ÇáäãØ \"ÅÒÇÍÉ ÌÓã ÇáäÕ\"";
+ Text[ greek ] = "Ïñéóìüò ðñïôýðïõ \"Åóï÷Þ ðñþôçò ãñáììÞò\"";
+ Text[ korean ] = "\"º»¹® µé¿©¾²±â\" À¯Çü ¼³Á¤";
+ Text[ turkish ] = "\"Metin gövdesi - girinti\" biçimini uygula";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_SET_TMPL_NEG_INDENT +1
+ {
+ Text = "Setze Vorlage \"Textkörper Einzug negativ\"" ;
+ Text [ English ] = "Set template \"Text body neg. indent\"" ;
+ Text[ italian ] = "Imposta modello \"rientro corpo del testo negativo\"";
+ Text[ portuguese_brazilian ] = "Set template \"Text body neg. indent\"";
+ Text[ portuguese ] = "Aplicar estilo \"Abrir parágrafo negativo\"";
+ Text[ danish ] = "Anvend typografi \"Hængende indrykning\"";
+ Text[ french ] = "Appliquer le style \"Alinéa négatif\"";
+ Text[ swedish ] = "Använd formatmallen \"Negativt indrag av första raden\"";
+ Text[ dutch ] = "Sjabloon \"1e regel uitspringen\" toepassen";
+ Text[ spanish ] = "Aplicar estilo \"Sangría negativa de primera línea\"";
+ Text[ english_us ] = "Set \"Hanging indent\" Style";
+ Text[ chinese_simplified ] = "É趨¡°ÕýÎĸºÏòËõ½ø¡±Ñùʽ";
+ Text[ russian ] = "Óñòàíîâèòü ñòèëü \"Îáðàòíûé îòñòóï\"";
+ Text[ polish ] = "U¿yj szablonu \"Neg. wciêcie obszaru tekstu\"";
+ Text[ japanese ] = "\"–{•¶Ï²Å½²ÝÃÞÝÄ\"‚̽À²ÙÝ’è";
+ Text[ chinese_traditional ] = "³]©w¼Ë¦¡¡§¤º¤å­tÁY±Æ¡¨";
+ Text[ arabic ] = "ÊÚííä ÇáäãØ \"ÅÒÇÍÉ ÌÓã äÕ ÓáÈíÉ\"";
+ Text[ greek ] = "Ïñéóìüò ðñïôýðïõ \"ÁñíçôéêÞ åóï÷Þ óþìáôïò êåéìÝíïõ\"";
+ Text[ korean ] = "\"º»¹® ³»¾î¾²±â\" À¯Çü ¼³Á¤";
+ Text[ turkish ] = "\"Asýlý girinti\" biçimini uygula";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_SET_TMPL_TEXT_INDENT +1
+ {
+ Text = "Setze Vorlage \"Textkörper Einrückung\"" ;
+ Text [ English ] = "Set template \"Text body move in\"" ;
+ Text[ italian ] = "Imposta modello \"rientro corpo del testo\"";
+ Text[ portuguese_brazilian ] = "Set template \"Text body move in\"";
+ Text[ portuguese ] = "Aplicar estilo \"Avanço corpo do texto\"";
+ Text[ danish ] = "Anvend typografi \"Brødtekst indrykning\"";
+ Text[ french ] = "Appliquer le style \"Retrait de corps de texte\"";
+ Text[ swedish ] = "Använd formatmallen \"Dra in hela stycket\"";
+ Text[ dutch ] = "Sjabloon \"Tekstblok inspringen\" toepassen";
+ Text[ spanish ] = "Aplicar estilo \"Cuerpo de texto con sangría\"";
+ Text[ english_us ] = "Set \"Text body indent\" Style";
+ Text[ chinese_simplified ] = "É趨¡°ÕýÎÄËõ½ø¡±Ñùʽ";
+ Text[ russian ] = "Óñòàíîâèòü ñòèëü \"Îñíîâíîé òåêñò ñ îòñòóïîì\"";
+ Text[ polish ] = "U?yj szablonu \"Wysuniecie obszaru tekst.\"";
+ Text[ japanese ] = "\"–{•¶²ÝÃÞÝÄ\"‚̽À²ÙÝ’è";
+ Text[ chinese_traditional ] = "³]©w¼Ë¦¡¡§¤º¤åÁY±Æ¡¨";
+ Text[ arabic ] = "ÊÚííä ÇáäãØ \"ÅÒÇÍÉ ÌÓã ÇáäÕ (ÇáÓØÑ ÇáÃæá)\"";
+ Text[ greek ] = "Ïñéóìüò ðñïôýðïõ \"Åóï÷Þ óþìáôïò êåéìÝíïõ\"";
+ Text[ korean ] = "À¯Çü \"º»¹® µé¿©¾²±â\" ¼³Á¤";
+ Text[ turkish ] = "\"Metin gövdesi - satýrbaþý\" biçimini uygula";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_SET_TMPL_HEADLINE +1
+ {
+ Text = "Setze Vorlage \"Überschrift $(ARG1)\"" ;
+ Text [ English ] = "Set template \"Headline $(ARG1)\"" ;
+ Text[ italian ] = "Imposta modello \"intestazione $(ARG1)\"";
+ Text[ portuguese_brazilian ] = "Set template \"Headline $(ARG1)\"";
+ Text[ portuguese ] = "Aplicar estilo \"Título $(ARG1)\"";
+ Text[ danish ] = "Anvend typografi \"Overskrift $(ARG1)\"";
+ Text[ french ] = "Appliquer le style \"Titre $(ARG1)\"";
+ Text[ swedish ] = "Använd formatmallen \"Överskrift $(ARG1)\"";
+ Text[ dutch ] = "Sjabloon \"Kop $(ARG1)\" toepassen";
+ Text[ spanish ] = "Aplicar estilo \"Encabezado $(ARG1)\"";
+ Text[ english_us ] = "Set \"Heading $(ARG1)\" Style";
+ Text[ chinese_simplified ] = "É趨¡°±êÌâ $(ARG1)¡±Ñùʽ";
+ Text[ russian ] = "Óñòàíîâèòü ñòèëü \"Çàãîëîâîê $(ARG1)\"";
+ Text[ polish ] = "U¿yj szablonu \"Tytu³ $(ARG1)\"";
+ Text[ japanese ] = "\"Œ©o‚µ$(ARG1)\" ‚̽À²ÙÝ’è";
+ Text[ chinese_traditional ] = "³]©w¼Ë¦¡¡§¼ÐÃD $(ARG1)¡¨";
+ Text[ arabic ] = "ÊÚííä ÇáäãØ \"ÚäæÇä $(ARG1)\"";
+ Text[ greek ] = "Ïñéóìüò ðñïôýðïõ \"Åðéêåöáëßäá $(ARG1)\"";
+ Text[ korean ] = "À¯Çü \"¸Ó¸®±Û $(ARG1)\" ¼³Á¤";
+ Text[ turkish ] = "\"Baþlýk $(ARG1)\" biçimini uygula";
+ Text[ language_user1 ] = " ";
+ };
+ String STR_AUTOFMTREDL_SET_NUMBULET +1
+ {
+ Text = "Setze Vorlage \"Aufzählung\" oder \"Nummerierung\"" ;
+ Text [ English ] = "Set template \"Bullet\" or \"Numbering\"" ;
+ Text[ italian ] = "Imposta modello elenchi \"puntati\" o \"numerati\"";
+ Text[ portuguese_brazilian ] = "Set template \"Bullet\" or \"Numbering\"";
+ Text[ portuguese ] = "Aplicar estilo \"Marcas\" ou \"Numeração\"";
+ Text[ danish ] = "Anvend typografi \"Punktopstilling\" eller \"Nummerering\"";
+ Text[ french ] = "Appliquer le style \"Puces\" ou \"Numérotation\"";
+ Text[ swedish ] = "Använd formatmallen \"Uppräkning\" eller \"Numrering\"";
+ Text[ dutch ] = "Sjabloon \"Opsomming\" of \"Nummering\" toepassen";
+ Text[ spanish ] = "Aplicar estilo \"Viñetas\" o \"Numeración\"";
+ Text[ english_us ] = "Set \"Bullet\" or \"Numbering\" Style";
+ Text[ chinese_simplified ] = "É趨¡°ÏîÄ¿·ûºÅ¡±»ò¡°±àºÅ¡±Ñùʽ";
+ Text[ russian ] = "Óñòàíîâèòü ñòèëü \"Ñïèñîê\" èëè \"Íóìåðàöèÿ\"";
+ Text[ polish ] = "U¿yj szablonu \"Wypunktowanie\" lub \"Numerowanie\"";
+ Text[ japanese ] = "\"‰Óð‘‚«\" ‚Ü‚½‚Í \"”Ô†•t‚¯\"‚̽À²ÙÝ’è";
+ Text[ chinese_traditional ] = "³]©w¼Ë¦¡¡§¶µ¥Ø²Å¸¹¡¨©M¡§½s¸¹¡¨";
+ Text[ arabic ] = "ÊÚííä ÇáäãØ \"ÊÚÏÇÏ\" Ãæ \"ÊÑÞíã\"";
+ Text[ greek ] = "Ïñéóìüò óôõë \"Êïõêßäá\" Þ \"Áñßèìçóç\"";
+ Text[ korean ] = "À¯Çü \"±Û¸Ó¸®Ç¥\"³ª \"¹øÈ£ ¸Å±â±â\" ¼³Á¤";
+ Text[ turkish ] = "\"Madde\" ya da \"numaralama\" biçimini uygula";
+ Text[ language_user1 ] = " ";
+ };
+
+ String STR_AUTOFMTREDL_DEL_MORELINES +1
+ {
+ Text = "Zusammenfassen von Absätzen" ;
+ Text [ English ] = "Combine paragraphs" ;
+ Text[ italian ] = "Mantieni assieme i paragrafi";
+ Text[ portuguese_brazilian ] = "Combine paragraphs";
+ Text[ portuguese ] = "Unir parágrafos";
+ Text[ danish ] = "Kombiner afsnit";
+ Text[ french ] = "Fusionner des paragraphes";
+ Text[ swedish ] = "Sammanfoga stycken";
+ Text[ dutch ] = "Alinea's samenvoegen";
+ Text[ spanish ] = "Unir párrafos";
+ Text[ english_us ] = "Combine paragraphs";
+ Text[ chinese_simplified ] = "ºÏ²¢¶ÎÂä";
+ Text[ russian ] = "Îáúåäèíåíèå àáçàöåâ";
+ Text[ polish ] = "Po³¹czenie akapitów";
+ Text[ japanese ] = "’i—Ž‚ÌŒ‹‡";
+ Text[ chinese_traditional ] = "¦X¨Ö¬q¸¨";
+ Text[ arabic ] = "Öã ÇáÝÞÑÇÊ";
+ Text[ greek ] = "¸íùóç ðáñáãñÜöùí";
+ Text[ korean ] = "´Ü¶ô ÇÕÄ¡±â";
+ Text[ turkish ] = "Paragraflarý birleþtir";
+ Text[ language_user1 ] = " ";
+ };
+
+};
+
+/*---------------------------------------------------------------------
+ Diverses
+ ---------------------------------------------------------------------*/
+String STR_EVENT_OBJECT_SELECT
+{
+ TEXT = "Objekt anklicken" ;
+ TEXT [ English ] = "Object on click" ;
+ Text [ dutch ] = "Object selecteren" ;
+ Text [ english_us ] = "Click object" ;
+ Text [ italian ] = "Cliccate l'oggetto" ;
+ Text [ spanish ] = "Pulsar el objeto" ;
+ Text [ french ] = "Clic sur l'objet" ;
+ Text [ swedish ] = "Klicka på objekt" ;
+ Text [ danish ] = "Klik på objekt" ;
+ Text [ portuguese ] = "Seleccionar objecto" ;
+ Text [ portuguese_brazilian ] = "Objekt anklicken" ;
+ Text[ chinese_simplified ] = "°´»÷¶ÔÏó";
+ Text[ russian ] = "Âûáîð îáúåêòà";
+ Text[ polish ] = "Kliknij obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä‚ð¸Ø¯¸‚·‚é";
+ Text[ chinese_traditional ] = "¥Î·Æ¹««öÀ»ª«¥ó";
+ Text[ arabic ] = "ÇáäÞÑ ÝæÞ ÇáßÇÆä";
+ Text[ greek ] = "ÅðéëïãÞ áíôéêåéìÝíïõ";
+ Text[ korean ] = "°³Ã¼ ¼±ÅÃ";
+ Text[ turkish ] = "Nesneye týkla";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_START_INS_GLOSSARY
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Vor AutoText einfügen : Vor AutoText einf³gen */
+ TEXT = "Vor Einfügen des AutoTextes" ;
+ TEXT [ English ] = "Before insert AutoText" ;
+ TEXT[ english_us ] = "Before inserting AutoText";
+ TEXT[ portuguese ] = "Inserir antes de AutoTexto";
+ TEXT[ russian ] = "Ïåðåä âñòàâêîé àâòîòåêñòà";
+ TEXT[ greek ] = "Ðñéí áðü ôçí ðñïóèÞêç ôïõ ÁõôïÊåßìåíï";
+ TEXT[ dutch ] = "Voor het invoegen van AutoTekst";
+ TEXT[ french ] = "Avant insertion de l'AutoTexte";
+ TEXT[ spanish ] = "Antes de insertar el AutoTexto";
+ TEXT[ italian ] = "Prima d'inserire il testo automatico";
+ TEXT[ danish ] = "Inden input af AutoTekst";
+ TEXT[ swedish ] = "Innan AutoText infogas";
+ TEXT[ polish ] = "Wstaw przed autotekstem";
+ TEXT[ portuguese_brazilian ] = "Vor AutoText einfügen";
+ TEXT[ japanese ] = "“ü—ÍŽx‰‡‚ð‘}“ü‚·‚é‘O";
+ TEXT[ korean ] = "ÀÚµ¿ ÅؽºÆ® »ðÀÔ Àü¿¡";
+ TEXT[ chinese_simplified ] = "ÔÚ²åÈë×Ô¶¯Í¼Îļ¯Ö®Ç°";
+ TEXT[ chinese_traditional ] = "¦b´¡¤J¦Û°Ê¹Ï¤å¶°¤§«e";
+ TEXT[ arabic ] = "ÞÈá ÅÏÑÇÌ ÇáäÕ ÇáÊáÞÇÆí";
+ TEXT[ turkish ] = "Otomatik metin eklemeden önce";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_EVENT_END_INS_GLOSSARY
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Nach AutoText einfügen : Nach AutoText einf³gen */
+ TEXT = "Nach Einfügen des AutoTextes" ;
+ TEXT [ English ] = "After insert AutoText" ;
+ TEXT[ english_us ] = "After inserting AutoText";
+ TEXT[ portuguese ] = "Inserir após AutoTexto";
+ TEXT[ russian ] = "Ïîñëå âñòàâêè àâòîòåêñòà";
+ TEXT[ greek ] = "ÌåôÜ ôçí ðñïóèÞêç ôïõ ÁõôïÊåßìåíï";
+ TEXT[ dutch ] = "Na invoegen van AutoTekst";
+ TEXT[ french ] = "Après insertion de l'AutoTexte";
+ TEXT[ spanish ] = "Tras insertar el AutoTexto";
+ TEXT[ italian ] = "Dopo aver inserito il testo automatico";
+ TEXT[ danish ] = "Efter input af AutoTekst";
+ TEXT[ swedish ] = "Efter att AutoText infogats";
+ TEXT[ polish ] = "Wstaw za autotekstem";
+ TEXT[ portuguese_brazilian ] = "Nach AutoText einfügen";
+ TEXT[ japanese ] = "“ü—ÍŽx‰‡‚ð‘}“ü‚µ‚½Œã";
+ TEXT[ korean ] = "ÀÚµ¿ ÅؽºÆ® »ðÀÔ ÈÄ¿¡";
+ TEXT[ chinese_simplified ] = "ÔÚ²åÈë×Ô¶¯Í¼Îļ¯Ö®ºó";
+ TEXT[ chinese_traditional ] = "¦b¦Û°Ê¹Ï¤å¶°´¡¤J¤§«á";
+ TEXT[ arabic ] = "ÈÚÏ ÅÏÑÇÌ ÇáäÕ ÇáÊáÞÇÆí";
+ TEXT[ turkish ] = "Otomatik metin ekledikten sonra";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_EVENT_MOUSEOVER_OBJECT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Maus über Objekt : Maus ³ber Objekt */
+ TEXT = "Maus über Objekt" ;
+ TEXT [ English ] = "Mouse over Object" ;
+ Text [ english_us ] = "Mouse over object" ;
+ Text [ italian ] = "Mouse sull'oggetto" ;
+ Text [ spanish ] = "Ratón sobre objeto" ;
+ Text [ french ] = "Souris sur l'objet" ;
+ Text [ dutch ] = "Muis boven object" ;
+ Text [ swedish ] = "Mus över objekt" ;
+ Text [ danish ] = "Mus over objekt" ;
+ Text [ portuguese ] = "Rato sobre objecto" ;
+ Text [ portuguese_brazilian ] = "Maus über Objekt" ;
+ Text[ chinese_simplified ] = "ÖÃÊó±êÓÚ¶ÔÏóÖ®ÉÏ";
+ Text[ russian ] = "Ìûøü íàä îáúåêòîì";
+ Text[ polish ] = "Mysz nad obiektem";
+ Text[ japanese ] = "ϳ½‚ðµÌÞ¼Þª¸Äã‚Ɉړ®";
+ Text[ chinese_traditional ] = "¹«¼Ð¦bª«¥ó¤§¤W";
+ Text[ arabic ] = "ÇáãÇæÓ ÝæÞ ÇáßÇÆä";
+ Text[ greek ] = "Ðïíôßêé ðÜíù áðü áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼ À§¿¡ ¸¶¿ì½º";
+ Text[ turkish ] = "Fare oku nesne üzerinde";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_MOUSECLICK_OBJECT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Hyperlink auslösen : Hyperlink ausl÷sen */
+ TEXT = "Hyperlink auslösen" ;
+ TEXT [ English ] = "Trigger Hyperlink" ;
+ Text [ dutch ] = "Hyperlink uitvoeren" ;
+ Text [ english_us ] = "Trigger hyperlink" ;
+ Text [ italian ] = "Esegui hyperlink" ;
+ Text [ spanish ] = "Ejecutar hiperenlace" ;
+ Text [ french ] = "Déclencher l'hyperlien" ;
+ Text [ swedish ] = "Utför hyperlänk" ;
+ Text [ danish ] = "Udfør hyperlink" ;
+ Text [ portuguese ] = "Activar hiperligação" ;
+ Text [ portuguese_brazilian ] = "Hyperlink auslösen" ;
+ Text[ chinese_simplified ] = "Æô¶¯³¬Á´½Ó";
+ Text[ russian ] = "Âûïîëíèòü ãèïåðññûëêó";
+ Text[ polish ] = "Wykonaj hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ‚ÌŽÀs";
+ Text[ chinese_traditional ] = "°õ¦æ¶W³sµ²";
+ Text[ arabic ] = "ÊäÝíÐ ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "ÅöáñìïãÞ õðåñ-óýíäåóçò";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ© ¼öÇà";
+ Text[ turkish ] = "Hyperlink'i etkinleþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_MOUSEOUT_OBJECT
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Maus verläßt Objekt : Maus verlõ˜t Objekt */
+ TEXT = "Maus verlässt Objekt" ;
+ TEXT [ English ] = "Mouse leave Object" ;
+ Text [ dutch ] = "Muis verlaat object" ;
+ Text [ english_us ] = "Mouse leaves object" ;
+ Text [ swedish ] = "Mus lämnar objekt" ;
+ Text [ danish ] = "Mus forlader objekt" ;
+ Text [ italian ] = "Mouse abbandona l'oggetto" ;
+ Text [ spanish ] = "El ratón abandona el objeto" ;
+ Text [ french ] = "Souris quitte l'objet" ;
+ Text [ portuguese ] = "Rato abandona objecto" ;
+ Text [ portuguese_brazilian ] = "Maus verläßt Objekt" ;
+ Text[ chinese_simplified ] = "Êó±êÀ뿪¶ÔÏó";
+ Text[ russian ] = "Ìûøü ïîêèäàåò îáúåêò";
+ Text[ polish ] = "Mysz opuszcza obiekt";
+ Text[ japanese ] = "ϳ½‚ðµÌÞ¼Þª¸ÄŠO‚Ɉړ®";
+ Text[ chinese_traditional ] = "¹«¼ÐÂ÷¶}ª«¥ó";
+ Text[ arabic ] = "ÇÈÊÚÇÏ ÇáãÇæÓ Úä ÇáßÇÆä";
+ Text[ greek ] = "Ðïíôßêé áðïìáêñýíåôáé áðü áíôéêåßìåíï";
+ Text[ korean ] = "¸¶¿ì½º°¡ °³Ã¼¸¦ ¶°³²";
+ Text[ turkish ] = "Ýmleç nesneden ayrýlýyor";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_IMAGE_LOAD
+{
+ TEXT = "Grafik laden erfolgreich" ;
+ TEXT [ English ] = "Graphic load" ;
+ Text [ dutch ] = "Laden van afbeelding oké" ;
+ Text [ english_us ] = "Graphics load successful" ;
+ Text [ swedish ] = "Laddning av grafik lyckades" ;
+ Text [ danish ] = "Indlæsning af grafik fuldført" ;
+ Text [ italian ] = "Caricamento immagine riuscito" ;
+ Text [ spanish ] = "La carga de la imagen ha finalizado con éxito" ;
+ Text [ french ] = "Chargement de l'image terminé" ;
+ Text [ portuguese ] = "Carregar imagem concluído" ;
+ Text [ portuguese_brazilian ] = "Grafik laden erfolgreich" ;
+ Text[ chinese_simplified ] = "×°ÔØͼÐγɹ¦";
+ Text[ russian ] = "Çàãðóçêà ãðàôèêè óñïåøíà";
+ Text[ polish ] = "Pomyœlne za³adowanie grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì“Ç‚Ýž‚ÝŠ®—¹";
+ Text[ chinese_traditional ] = "¸Ë¸ü¹Ï¤ù¦¨¥\\";
+ Text[ arabic ] = "ÊÍãíá ÇáÕæÑÉ ÈäÌÇÍ";
+ Text[ greek ] = "Ç öüñôùóç ôùí ãñáöéêþí ðÝôõ÷å";
+ Text[ korean ] = "±×·¡ÇÈÀ» ¼º°øÀûÀ¸·Î ·ÎµåÇÔ";
+ Text[ turkish ] = "Grafik baþarýyla yüklendi";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_IMAGE_ABORT
+{
+ TEXT = "Grafik laden abgebrochen" ;
+ TEXT [ English ] = "Graphic load abord" ;
+ Text [ dutch ] = "Afbeelding laden afgebroken" ;
+ Text [ english_us ] = "Graphics load terminated" ;
+ Text [ swedish ] = "Laddning av grafik avbröts" ;
+ Text [ danish ] = "Indlæsning af grafik afbrudt" ;
+ Text [ italian ] = "Caricamento immagine interrotto" ;
+ Text [ spanish ] = "Interrumpida la carga de la imagen" ;
+ Text [ french ] = "Chargement de l'image interrompu" ;
+ Text [ portuguese ] = "Carregar imagem cancelado" ;
+ Text [ portuguese_brazilian ] = "Grafik laden abgebrochen" ;
+ Text[ chinese_simplified ] = "ÖжÏ×°ÔØͼÐÎ";
+ Text[ russian ] = "Çàãðóçêà ãðàôèêè ïðåðâàíà";
+ Text[ polish ] = "Przerwane ³adowanie grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì“Ç‚Ýž‚Ý’†Ž~";
+ Text[ chinese_traditional ] = "¤¤Â_¸Ë¸ü¹Ï¤ù";
+ Text[ arabic ] = "ÇäÞØÇÚ ÚãáíÉ ÊÍãíá ÇáÕæÑÉ";
+ Text[ greek ] = "ÄéáêïðÞ öüñôùóçò ãñáöéêïý";
+ Text[ korean ] = "±×·¡ÇÈ ·Îµå ÁߴܵÊ";
+ Text[ turkish ] = "Grafik yüklemesi kesildi";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_IMAGE_ERROR
+{
+ TEXT = "Grafik laden fehlerhaft" ;
+ TEXT [ English ] = "Graphic load error" ;
+ Text [ dutch ] = "Fout bij laden van afbeelding" ;
+ Text [ english_us ] = "Graphics load faulty" ;
+ Text [ swedish ] = "Fel vid laddning av grafik" ;
+ Text [ danish ] = "Indlæsning af grafik fejlagtig" ;
+ Text [ italian ] = "Caricamento immagine errato" ;
+ Text [ spanish ] = "Error al cargar la imagen" ;
+ Text [ french ] = "Erreur lors du chargement de l'image" ;
+ Text [ portuguese ] = "Erro ao carregar imagem" ;
+ Text [ portuguese_brazilian ] = "Grafik laden fehlerhaft" ;
+ Text[ chinese_simplified ] = "×°ÔصÄͼÐβ»ÍêÕû";
+ Text[ russian ] = "Íåïðàâèëüíàÿ çàãðóçêà ãðàôèêè";
+ Text[ polish ] = "B³¹d w ³adowaniu grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì“Ç‚Ýž‚Ý´×°";
+ Text[ chinese_traditional ] = "¸Ë¸ü¹Ï¤ù¤£§¹¾ã";
+ Text[ arabic ] = "ÎØà Ýí ÚãáíÉ ÊÍãíá ÇáÕæÑÉ";
+ Text[ greek ] = "ÓöÜëìá êáôÜ ôç öüñôùóç ãñáöéêïý";
+ Text[ korean ] = "±×·¡ÇÈ ·Îµå ¿À·ù";
+ Text[ turkish ] = "Grafik yüklemede hata";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_FRM_KEYINPUT_A
+{
+ TEXT = "Eingabe von Alphazeichen" ;
+ TEXT [ English ] = "Input of alpha chars" ;
+ Text [ portuguese ] = "Entrada de caracteres alfa" ;
+ Text [ english_us ] = "Input of alpha characters" ;
+ Text [ portuguese_brazilian ] = "Eingabe von Alphazeichen" ;
+ Text [ swedish ] = "Inmatning av alfatecken" ;
+ Text [ danish ] = "Input af alfategn" ;
+ Text [ italian ] = "Digitazione di caratteri alfa" ;
+ Text [ spanish ] = "Entrada de caracteres alfa" ;
+ Text [ french ] = "Saisie de caractères alphanumériques" ;
+ Text [ dutch ] = "Invoer van alfanumerieke tekens" ;
+ Text[ chinese_simplified ] = "ÊäÈëÏ£À°Óï×Öĸ°¢¶û·¨";
+ Text[ russian ] = "Ââîä çíàêîâ àëüôà";
+ Text[ polish ] = "Wprowadzenie znaku alfa";
+ Text[ japanese ] = "±Ù̧Íޯĕ¶Žš‚Ì“ü—Í";
+ Text[ chinese_traditional ] = "¿é¤J§Æþ»y²Ä¤@­Ó¦r¥À";
+ Text[ arabic ] = "ÅÏÎÇá ÃÍÑÝ ÃáÝÇ";
+ Text[ greek ] = "ÅéóáãùãÞ ÷áñáêôÞñùí áëöáâÞôïõ";
+ Text[ korean ] = "¾ËÆĺª ¹®ÀÚ ÀÔ·Â";
+ Text[ turkish ] = "Alfa karakter giriþi";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_FRM_KEYINPUT_NOA
+{
+ TEXT = "Eingabe von Nicht-Alphazeichen" ;
+ TEXT [ English ] = "Input of non alpha chars" ;
+ Text [ portuguese ] = "Entrada de caracteres não-alfa." ;
+ Text [ english_us ] = "Input of non-alpha characters" ;
+ Text [ swedish ] = "Inmatning av icke-alfatecken" ;
+ Text [ italian ] = "Digitazione di caratteri non alfanumerici" ;
+ Text [ spanish ] = "Entrada de caracteres no-alfa" ;
+ Text [ french ] = "Saisie de caractères non alphanumériques" ;
+ Text [ dutch ] = "Invoer van niet-alfanumerieke tekens" ;
+ Text [ portuguese_brazilian ] = "Eingabe von nicht Alphazeichen" ;
+ Text [ danish ] = "Input af ikke-alfategn" ;
+ Text[ chinese_simplified ] = "ÊäÈëµÄ²»ÊÇÏ£À°Óï×Öĸ°¢¶û·¨";
+ Text[ russian ] = "Ââîä çíàêîâ íåàëüôà";
+ Text[ polish ] = "Wprow. innych znaków (nie alfa)";
+ Text[ japanese ] = "±Ù̧ÍޯĂłȂ¢•¶Žš‚Ì“ü—Í";
+ Text[ chinese_traditional ] = "¿é¤Jªº¤£¬O§Æþ»y²Ä¤@­Ó¦r¥À";
+ Text[ arabic ] = "ÅÏÎÇá ÃÍÑÝ ÛíÑ ÃáÝÇ";
+ Text[ greek ] = "ÅéóáãùãÞ ìç-áëöáâçôéêþí ÷áñáêôÞñùí";
+ Text[ korean ] = "¾ËÆĺªÀÌ ¾Æ´Ñ ¹®ÀÚ ÀÔ·Â";
+ Text[ turkish ] = "Alfa olmayan karakter giriþi";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_FRM_RESIZE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Rahmengröße verändern : Rahmengr÷˜e verõndern */
+ TEXT = "Rahmengröße verändern" ;
+ TEXT [ English ] = "Resize Frane" ;
+ Text [ portuguese ] = "Redimensionar moldura" ;
+ Text [ english_us ] = "Resize frame" ;
+ Text [ portuguese_brazilian ] = "Rahmengröße verändern" ;
+ Text [ swedish ] = "Ändra ramstorlek" ;
+ Text [ danish ] = "Modificer rammestørrelse" ;
+ Text [ italian ] = "Cambia dimensione cornice" ;
+ Text [ spanish ] = "Modificar el tamaño del marco" ;
+ Text [ french ] = "Modifier la taille du cadre" ;
+ Text [ dutch ] = "Kadergrootte wijzigen" ;
+ Text[ chinese_simplified ] = "¸ü¸Ä¿òµÄ´óС";
+ Text[ russian ] = "Èçìåíèòü ðàçìåð ðàìêè";
+ Text[ polish ] = "Zmieñ rozmiar ramki";
+ Text[ japanese ] = "˜g‚Ì»²½Þ•ÏX";
+ Text[ chinese_traditional ] = "Åܧó®Ø¤j¤p";
+ Text[ arabic ] = "ÊÚÏíá ÍÌã ÇáÅØÇÑ";
+ Text[ greek ] = "ÁëëáãÞ ìåãÝèïõò ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ Å©±â º¯°æ";
+ Text[ turkish ] = "Çerçeve boyutunu deðiþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_EVENT_FRM_MOVE
+{
+ TEXT = "Rahmen verschieben" ;
+ TEXT [ English ] = "Move Frame" ;
+ Text [ portuguese ] = "Mover moldura" ;
+ Text [ english_us ] = "Move frame" ;
+ Text [ portuguese_brazilian ] = "Rahmen verschieben" ;
+ Text [ swedish ] = "Flytta ram" ;
+ Text [ danish ] = "Flyt ramme" ;
+ Text [ italian ] = "Sposta cornice" ;
+ Text [ spanish ] = "Desplazar marco" ;
+ Text [ french ] = "Déplacer le cadre" ;
+ Text [ dutch ] = "Kader verplaatsen" ;
+ Text[ chinese_simplified ] = "Òƶ¯¿ò";
+ Text[ russian ] = "Ïåðåìåñòèòü ðàìêó";
+ Text[ polish ] = "Przenieœ ramkê";
+ Text[ japanese ] = "˜g‚̈ړ®";
+ Text[ chinese_traditional ] = "²¾°Ê®Ø";
+ Text[ arabic ] = "ÅÒÇÍÉ ÇáÅØÇÑ";
+ Text[ greek ] = "Ìåôáêßíçóç ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ À̵¿";
+ Text[ turkish ] = "Çerçeveyi taþý";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_OUTLINE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschriften : šberschriften */
+ TEXT = "Überschriften" ;
+ TEXT [ English ] = "Outlines" ;
+ Text [ dutch ] = "Koppen" ;
+ Text [ english_us ] = "Headings" ;
+ Text [ italian ] = "Intestazioni" ;
+ Text [ spanish ] = "Encabezados" ;
+ Text [ french ] = "Titres" ;
+ Text [ swedish ] = "Överskrifter" ;
+ Text [ danish ] = "Overskrifter" ;
+ Text [ portuguese ] = "Títulos" ;
+ Text [ portuguese_brazilian ] = "Überschriften" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâêè";
+ Text[ polish ] = "Tytu³y";
+ Text[ japanese ] = "Œ©o‚µ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÚäÇæíä";
+ Text[ greek ] = "Åðéêåöáëßäåò";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_TABLE
+{
+ TEXT = "Tabellen" ;
+ TEXT [ English ] = "Tables" ;
+ Text [ english_us ] = "Tables" ;
+ Text [ italian ] = "Tabelle" ;
+ Text [ spanish ] = "Tablas" ;
+ Text [ french ] = "Tableaux" ;
+ Text [ dutch ] = "Tabellen" ;
+ Text [ swedish ] = "Tabeller" ;
+ Text [ danish ] = "Tabeller" ;
+ Text [ portuguese ] = "Tabelas" ;
+ Text [ portuguese_brazilian ] = "Tabellen" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöû";
+ Text[ polish ] = "Tabele";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏÇæá";
+ Text[ greek ] = "Ðßíáêåò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_FRAME
+{
+ TEXT = "Textrahmen" ;
+ TEXT [ English ] = "Frames" ;
+ Text [ dutch ] = "Tekstkader" ;
+ Text [ english_us ] = "Text frame" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco de texto" ;
+ Text [ french ] = "Cadres texte" ;
+ Text [ swedish ] = "Textram" ;
+ Text [ danish ] = "Tekstbokse" ;
+ Text [ portuguese ] = "Molduras de texto" ;
+ Text [ portuguese_brazilian ] = "Textrahmen" ;
+ Text[ chinese_simplified ] = "Îı¾¿ò";
+ Text[ russian ] = "Òåêñòîâàÿ ðàìêà";
+ Text[ polish ] = "Ramka tekstu";
+ Text[ japanese ] = "÷½Ä˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑÇÊ äÕ";
+ Text[ greek ] = "Ðëáßóéï êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Metin kutusu";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_GRAPHIC
+{
+ TEXT = "Grafiken" ;
+ TEXT [ English ] = "Graphics" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ italian ] = "Immagini" ;
+ Text [ spanish ] = "Imágenes" ;
+ Text [ french ] = "Images" ;
+ Text [ dutch ] = "Afbeeldingen" ;
+ Text [ swedish ] = "Grafiker" ;
+ Text [ danish ] = "Billeder" ;
+ Text [ portuguese ] = "Imagens" ;
+ Text [ portuguese_brazilian ] = "Grafiken" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíêè";
+ Text[ polish ] = "Grafiki";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑ";
+ Text[ greek ] = "ÃñáöéêÜ";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_OLE
+{
+ TEXT = "OLE-Objekte" ;
+ TEXT [ English ] = "OLE-Objects" ;
+ Text [ english_us ] = "OLE objects" ;
+ Text [ italian ] = "Oggetti OLE" ;
+ Text [ spanish ] = "Objetos OLE" ;
+ Text [ french ] = "Objets OLE" ;
+ Text [ dutch ] = "OLE-objecten" ;
+ Text [ swedish ] = "OLE-objekt" ;
+ Text [ danish ] = "OLE-objekter" ;
+ Text [ portuguese ] = "Objectos OLE" ;
+ Text [ portuguese_brazilian ] = "OLE-Objekte" ;
+ Text[ chinese_simplified ] = "OLE-¶ÔÏó";
+ Text[ russian ] = "Îáúåêòû OLE";
+ Text[ polish ] = "Obiekty OLE";
+ Text[ japanese ] = "OLE µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "OLE ª«¥ó";
+ Text[ arabic ] = "ßÇÆäÇÊ OLE";
+ Text[ greek ] = "Áíôéêåßìåíá OLE";
+ Text[ korean ] = "OLE °³Ã¼";
+ Text[ turkish ] = "OLE nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_BOOKMARK
+{
+ TEXT = "Textmarken" ;
+ TEXT [ English ] = "Bookmarks" ;
+ Text [ dutch ] = "Tekstmarkeringen" ;
+ Text [ english_us ] = "Bookmarks" ;
+ Text [ italian ] = "Segnalibri di testo" ;
+ Text [ spanish ] = "Marcas de texto" ;
+ Text [ french ] = "Repères de texte" ;
+ Text [ swedish ] = "Bokmärken" ;
+ Text [ danish ] = "Tekstmarkeringer" ;
+ Text [ portuguese ] = "Marcadores de texto" ;
+ Text [ portuguese_brazilian ] = "Textmarken" ;
+ Text[ chinese_simplified ] = "ÊéÇ©";
+ Text[ russian ] = "Çàêëàäêè";
+ Text[ polish ] = "Zak³adki";
+ Text[ japanese ] = "÷½ÄÏ°¸";
+ Text[ chinese_traditional ] = "¤º¤å¼ÐÅÒ";
+ Text[ arabic ] = "ÅÔÇÑÇÊ ãÑÌÚíÉ";
+ Text[ greek ] = "ÓçìÜíóåéò êåéìÝíïõ";
+ Text[ korean ] = "Ã¥°¥ÇÇ";
+ Text[ turkish ] = "Metin iþareti";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_REGION
+{
+ TEXT = "Bereiche" ;
+ TEXT [ English ] = "Regions" ;
+ Text [ english_us ] = "Sections" ;
+ Text [ italian ] = "Sezioni" ;
+ Text [ spanish ] = "Categorías" ;
+ Text [ french ] = "Sections" ;
+ Text [ dutch ] = "Bereiken" ;
+ Text [ swedish ] = "Kategorier" ;
+ Text [ danish ] = "Områder" ;
+ Text [ portuguese ] = "Categorias" ;
+ Text [ portuguese_brazilian ] = "Bereiche" ;
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ russian ] = "Îáëàñòè";
+ Text[ polish ] = "Obszary";
+ Text[ japanese ] = "”͈Í";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "äØÇÞÇÊ";
+ Text[ greek ] = "Êáôçãïñßåò";
+ Text[ korean ] = "±¸¿ª";
+ Text[ turkish ] = "Bölüm";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_URLFIELD
+{
+ TEXT = "Hyperlinks" ;
+ TEXT [ English ] = "Hyperlinks" ;
+ Text [ dutch ] = "Hyperlinks" ;
+ Text [ english_us ] = "Hyperlinks" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlaces" ;
+ Text [ french ] = "Hyperliens" ;
+ Text [ swedish ] = "Hyperlänkar" ;
+ Text [ danish ] = "Hyperlinks" ;
+ Text [ portuguese ] = "Hiperligações" ;
+ Text [ portuguese_brazilian ] = "Hyperlinks" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêè";
+ Text[ polish ] = "Hiper³¹cza";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØÇÊ ÊÔÚÈíÉ";
+ Text[ greek ] = "Õðåñ-óõíäÝóåéò";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_REFERENCE
+{
+ TEXT = "Referenzen" ;
+ TEXT [ English ] = "References" ;
+ Text [ dutch ] = "Verwijzingen" ;
+ Text [ english_us ] = "References" ;
+ Text [ italian ] = "Riferimenti" ;
+ Text [ spanish ] = "Referencias" ;
+ Text [ french ] = "Références" ;
+ Text [ swedish ] = "Referenser" ;
+ Text [ danish ] = "Referencer" ;
+ Text [ portuguese ] = "Referências" ;
+ Text [ portuguese_brazilian ] = "Referenzen" ;
+ Text[ chinese_simplified ] = "ÒýÓÃ";
+ Text[ russian ] = "Ññûëêè";
+ Text[ polish ] = "Odwo³ania";
+ Text[ japanese ] = "ŽQÆ";
+ Text[ chinese_traditional ] = "°Ñ·Ó";
+ Text[ arabic ] = "ãÑÇÌÚ";
+ Text[ greek ] = "ÁíáöïñÝò";
+ Text[ korean ] = "ÂüÁ¶";
+ Text[ turkish ] = "Referans";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_INDEX
+{
+ TEXT = "Verzeichnisse" ;
+ TEXT [ English ] = "Indexes" ;
+ Text [ dutch ] = "Indices" ;
+ Text [ english_us ] = "Indexes" ;
+ Text [ italian ] = "Indici" ;
+ Text [ spanish ] = "Índices" ;
+ Text [ french ] = "Index" ;
+ Text [ swedish ] = "Förteckningar" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ portuguese ] = "Indices" ;
+ Text [ portuguese_brazilian ] = "Verzeichnisse" ;
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ russian ] = "Óêàçàòåëè";
+ Text[ polish ] = "Indeksy";
+ Text[ japanese ] = "–ÚŽŸ‚Æõˆø";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÝåÇÑÓ";
+ Text[ greek ] = "ÅõñåôÞñéá";
+ Text[ korean ] = "»öÀÎ";
+ Text[ turkish ] = "Dizin";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_DRAWOBJECT
+{
+ TEXT = "Zeichenobjekte" ;
+ TEXT [ English ] = "Draw objects" ;
+ Text [ dutch ] = "Tekenobjecten" ;
+ Text [ english_us ] = "Draw objects" ;
+ Text [ italian ] = "Oggetti di disegno" ;
+ Text [ spanish ] = "Objetos de dibujo" ;
+ Text [ french ] = "Objets de dessin" ;
+ Text [ swedish ] = "Ritobjekt" ;
+ Text [ danish ] = "Tegneobjekter" ;
+ Text [ portuguese ] = "Objectos de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekte" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó";
+ Text[ russian ] = "Ãðàôè÷åñêèå îáúåêòû";
+ Text[ polish ] = "Obiekty rysunkowe";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó";
+ Text[ arabic ] = "ßÇÆäÇÊ ÑÓæãíÉ";
+ Text[ greek ] = "Áíôéêåßìåíá ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼";
+ Text[ turkish ] = "Çizim nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_POSTIT
+{
+ TEXT = "Notizen" ;
+ TEXT [ English ] = "Annotations" ;
+ Text [ dutch ] = "Aantekeningen" ;
+ Text [ english_us ] = "Notes" ;
+ Text [ swedish ] = "Anteckningar" ;
+ Text [ danish ] = "Noter" ;
+ Text [ italian ] = "Note" ;
+ Text [ spanish ] = "Notas" ;
+ Text [ french ] = "Notes" ;
+ Text [ portuguese ] = "Anotações" ;
+ Text [ portuguese_brazilian ] = "Notizen" ;
+ Text[ chinese_simplified ] = "±¸×¢";
+ Text[ russian ] = "Ïðèìå÷àíèÿ";
+ Text[ polish ] = "Notatki";
+ Text[ japanese ] = "ÒÓ’ ";
+ Text[ chinese_traditional ] = "³Æª`";
+ Text[ arabic ] = "ãáÇÍÙÇÊ";
+ Text[ greek ] = "Óçìåéþóåéò";
+ Text[ korean ] = "¸Þ¸ð";
+ Text[ turkish ] = "Not";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_OUTLINE
+{
+ /* ### ACHTUNG: Neuer Text in Resource? Überschrift : šberschrift */
+ TEXT = "Überschrift" ;
+ TEXT [ English ] = "Outline" ;
+ Text [ english_us ] = "Heading" ;
+ Text [ italian ] = "Intestazione" ;
+ Text [ spanish ] = "Encabezado" ;
+ Text [ french ] = "Titre" ;
+ Text [ dutch ] = "Kop" ;
+ Text [ swedish ] = "Överskrift" ;
+ Text [ danish ] = "Overskrift" ;
+ Text [ portuguese ] = "Título" ;
+ Text [ portuguese_brazilian ] = "Überschrift" ;
+ Text[ chinese_simplified ] = "±êÌâ";
+ Text[ russian ] = "Çàãîëîâîê";
+ Text[ polish ] = "Tytu³";
+ Text[ japanese ] = "Œ©o‚µ";
+ Text[ chinese_traditional ] = "¼ÐÃD";
+ Text[ arabic ] = "ÚäæÇä";
+ Text[ greek ] = "Åðéêåöáëßäá";
+ Text[ korean ] = "¸Ó¸®±Û";
+ Text[ turkish ] = "Baþlýk";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_TABLE
+{
+ TEXT = "Tabelle" ;
+ TEXT [ English ] = "Table" ;
+ Text [ english_us ] = "Table" ;
+ Text [ italian ] = "Tabella" ;
+ Text [ spanish ] = "Tabla" ;
+ Text [ french ] = "Tableau" ;
+ Text [ dutch ] = "Tabel" ;
+ Text [ swedish ] = "Tabell" ;
+ Text [ danish ] = "Tabel" ;
+ Text [ portuguese ] = "Tabela" ;
+ Text [ portuguese_brazilian ] = "Tabelle" ;
+ Text[ chinese_simplified ] = "±í¸ñ";
+ Text[ russian ] = "Òàáëèöà";
+ Text[ polish ] = "Tabela";
+ Text[ japanese ] = "•\\";
+ Text[ chinese_traditional ] = "ªí®æ";
+ Text[ arabic ] = "ÌÏæá";
+ Text[ greek ] = "Ðßíáêáò";
+ Text[ korean ] = "Ç¥";
+ Text[ turkish ] = "Tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_FRAME
+{
+ TEXT = "Textrahmen" ;
+ TEXT [ English ] = "Frame" ;
+ Text [ dutch ] = "Tekstkader" ;
+ Text [ english_us ] = "Text frame" ;
+ Text [ italian ] = "Cornice" ;
+ Text [ spanish ] = "Marco de texto" ;
+ Text [ french ] = "Cadre texte" ;
+ Text [ swedish ] = "Textram" ;
+ Text [ danish ] = "Tekstboks" ;
+ Text [ portuguese ] = "Moldura de texto" ;
+ Text [ portuguese_brazilian ] = "Textrahmen" ;
+ Text[ chinese_simplified ] = "Îı¾¿ò";
+ Text[ russian ] = "Òåêñòîâàÿ ðàìêà";
+ Text[ polish ] = "Ramka tekstu";
+ Text[ japanese ] = "÷½Ä˜g";
+ Text[ chinese_traditional ] = "¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÅØÇÑ äÕ";
+ Text[ greek ] = "Ðëáßóéï êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓ";
+ Text[ turkish ] = "Metin kutusu";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_GRAPHIC
+{
+ TEXT = "Grafik" ;
+ TEXT [ English ] = "Graphic" ;
+ Text [ english_us ] = "Graphics" ;
+ Text [ italian ] = "Immagine" ;
+ Text [ spanish ] = "Imagen" ;
+ Text [ french ] = "Image" ;
+ Text [ dutch ] = "Afbeelding" ;
+ Text [ swedish ] = "Grafik" ;
+ Text [ danish ] = "Billede" ;
+ Text [ portuguese ] = "Imagem" ;
+ Text [ portuguese_brazilian ] = "Grafik" ;
+ Text[ chinese_simplified ] = "ͼÐÎ";
+ Text[ russian ] = "Ðèñóíîê";
+ Text[ polish ] = "Grafika";
+ Text[ japanese ] = "¸Þ×̨¯¸";
+ Text[ chinese_traditional ] = "¹Ï¤ù";
+ Text[ arabic ] = "ÕæÑÉ";
+ Text[ greek ] = "Ãñáöéêü";
+ Text[ korean ] = "±×·¡ÇÈ";
+ Text[ turkish ] = "Grafik";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_OLE
+{
+ TEXT = "OLE-Objekt" ;
+ TEXT [ English ] = "OLE-Object" ;
+ Text [ english_us ] = "OLE object" ;
+ Text [ italian ] = "Oggetto OLE" ;
+ Text [ spanish ] = "Objeto OLE" ;
+ Text [ french ] = "Objet OLE" ;
+ Text [ dutch ] = "OLE-object" ;
+ Text [ swedish ] = "OLE-objekt" ;
+ Text [ danish ] = "OLE-objekt" ;
+ Text [ portuguese ] = "Objecto OLE" ;
+ Text [ portuguese_brazilian ] = "OLE-Objekt" ;
+ Text[ chinese_simplified ] = "OLE-¶ÔÏó";
+ Text[ russian ] = "Îáúåêò OLE";
+ Text[ polish ] = "Obiekt OLE";
+ Text[ japanese ] = "OLE µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "OLE ª«¥ó";
+ Text[ arabic ] = "ßÇÆä OLE";
+ Text[ greek ] = "Áíôéêåßìåíï OLE";
+ Text[ korean ] = "OLE °³Ã¼";
+ Text[ turkish ] = "OLE nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_BOOKMARK
+{
+ TEXT = "Textmarke" ;
+ TEXT [ English ] = "Bookmark" ;
+ Text [ dutch ] = "Tekstmarkering" ;
+ Text [ english_us ] = "Bookmark" ;
+ Text [ italian ] = "Segnalibro" ;
+ Text [ spanish ] = "Marca de texto" ;
+ Text [ french ] = "Repère de texte" ;
+ Text [ swedish ] = "Bokmärke" ;
+ Text [ danish ] = "Tekstmarkering" ;
+ Text [ portuguese ] = "Marcador de texto" ;
+ Text [ portuguese_brazilian ] = "Textmarke" ;
+ Text[ chinese_simplified ] = "ÊéÇ©";
+ Text[ russian ] = "Çàêëàäêà";
+ Text[ polish ] = "Zak³adka";
+ Text[ japanese ] = "÷½ÄÏ°¸";
+ Text[ chinese_traditional ] = "¤º¤å¼ÐÅÒ";
+ Text[ arabic ] = "ÅÔÇÑÉ ãÑÌÚíÉ";
+ Text[ greek ] = "ÓÞìáíóç êåéìÝíïõ";
+ Text[ korean ] = "Ã¥°¥ÇÇ";
+ Text[ turkish ] = "Metin iþareti";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_REGION
+{
+ TEXT = "Bereich" ;
+ TEXT [ English ] = "Region" ;
+ Text [ english_us ] = "Section" ;
+ Text [ italian ] = "Area" ;
+ Text [ spanish ] = "Area" ;
+ Text [ french ] = "Section" ;
+ Text [ dutch ] = "Bereik" ;
+ Text [ swedish ] = "Kategori" ;
+ Text [ danish ] = "Område" ;
+ Text [ portuguese ] = "Categoria" ;
+ Text [ portuguese_brazilian ] = "Bereich" ;
+ Text[ chinese_simplified ] = "ÇøÓò";
+ Text[ russian ] = "Îáëàñòü";
+ Text[ polish ] = "Obszar";
+ Text[ japanese ] = "”͈Í";
+ Text[ chinese_traditional ] = "°Ï°ì";
+ Text[ arabic ] = "äØÇÞ";
+ Text[ greek ] = "Åíüôçôá";
+ Text[ korean ] = "±¸¿ª";
+ Text[ turkish ] = "Bölüm";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_URLFIELD
+{
+ TEXT = "Hyperlink" ;
+ TEXT [ English ] = "Hyperlink" ;
+ Text [ dutch ] = "Hyperlink" ;
+ Text [ english_us ] = "Hyperlink" ;
+ Text [ italian ] = "Hyperlink" ;
+ Text [ spanish ] = "Hiperenlace" ;
+ Text [ french ] = "Hyperlien" ;
+ Text [ swedish ] = "Hyperlänk" ;
+ Text [ danish ] = "Hyperlink" ;
+ Text [ portuguese ] = "Hiperligação" ;
+ Text [ portuguese_brazilian ] = "Hyperlink" ;
+ Text[ chinese_simplified ] = "³¬Á´½Ó";
+ Text[ russian ] = "Ãèïåðññûëêà";
+ Text[ polish ] = "Hiper³¹cze";
+ Text[ japanese ] = "ʲÊß°Øݸ";
+ Text[ chinese_traditional ] = "¶W³sµ²";
+ Text[ arabic ] = "ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ greek ] = "Õðåñ-óýíäåóç";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ©";
+ Text[ turkish ] = "Hyperlink";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_REFERENCE
+{
+ TEXT = "Referenz" ;
+ TEXT [ English ] = "Reference" ;
+ Text [ dutch ] = "Verwijzing" ;
+ Text [ english_us ] = "Reference" ;
+ Text [ italian ] = "Riferimento" ;
+ Text [ spanish ] = "Referencia" ;
+ Text [ french ] = "Référence" ;
+ Text [ swedish ] = "Referens" ;
+ Text [ danish ] = "Reference" ;
+ Text [ portuguese ] = "Referência" ;
+ Text [ portuguese_brazilian ] = "Referenz" ;
+ Text[ chinese_simplified ] = "ÒýÓÃ";
+ Text[ russian ] = "Ññûëêà";
+ Text[ polish ] = "Odwo³anie";
+ Text[ japanese ] = "ŽQÆ";
+ Text[ chinese_traditional ] = "°Ñ·Ó";
+ Text[ arabic ] = "ãÑÌÚ";
+ Text[ greek ] = "ÁíáöïñÜ";
+ Text[ korean ] = "ÂüÁ¶";
+ Text[ turkish ] = "Referans";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_INDEX
+{
+ TEXT = "Verzeichnis" ;
+ TEXT [ English ] = "Index" ;
+ Text [ dutch ] = "Index" ;
+ Text [ english_us ] = "Index" ;
+ Text [ italian ] = "Indice" ;
+ Text [ spanish ] = "Índice" ;
+ Text [ french ] = "Index" ;
+ Text [ swedish ] = "Förteckning" ;
+ Text [ danish ] = "Indeks" ;
+ Text [ portuguese ] = "Índice" ;
+ Text [ portuguese_brazilian ] = "Verzeichniß" ;
+ Text[ chinese_simplified ] = "Ŀ¼";
+ Text[ russian ] = "Óêàçàòåëü";
+ Text[ polish ] = "Indeks";
+ Text[ japanese ] = "õˆø";
+ Text[ chinese_traditional ] = "¥Ø¿ý";
+ Text[ arabic ] = "ÝåÑÓ";
+ Text[ greek ] = "ÅõñåôÞñéï";
+ Text[ korean ] = "»öÀÎ";
+ Text[ turkish ] = "Dizin";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_POSTIT
+{
+ TEXT = "Notiz" ;
+ TEXT [ English ] = "Annotation" ;
+ Text [ dutch ] = "Aantekening" ;
+ Text [ english_us ] = "Note" ;
+ Text [ swedish ] = "Anteckning" ;
+ Text [ danish ] = "Note" ;
+ Text [ italian ] = "Nota" ;
+ Text [ spanish ] = "Nota" ;
+ Text [ french ] = "Note" ;
+ Text [ portuguese ] = "Anotação" ;
+ Text [ portuguese_brazilian ] = "Notiz" ;
+ Text[ chinese_simplified ] = "±¸×¢";
+ Text[ russian ] = "Ïðèìå÷àíèå";
+ Text[ polish ] = "Notatka";
+ Text[ japanese ] = "ÒÓ";
+ Text[ chinese_traditional ] = "³Æª`";
+ Text[ arabic ] = "ãáÇÍÙÉ";
+ Text[ greek ] = "Óçìåßùóç";
+ Text[ korean ] = "¸Þ¸ð";
+ Text[ turkish ] = "Not";
+ Text[ language_user1 ] = " ";
+};
+String STR_CONTENT_TYPE_SINGLE_DRAWOBJECT
+{
+ TEXT = "Zeichenobjekt" ;
+ TEXT [ English ] = "Draw object" ;
+ Text [ dutch ] = "Tekenobject" ;
+ Text [ english_us ] = "Draw object" ;
+ Text [ italian ] = "Oggetto di disegno" ;
+ Text [ spanish ] = "Objeto de dibujo" ;
+ Text [ french ] = "Objet de dessin" ;
+ Text [ swedish ] = "Ritobjekt" ;
+ Text [ danish ] = "Tegneobjekt" ;
+ Text [ portuguese ] = "Objecto de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekt" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó";
+ Text[ russian ] = "Ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Obiekt rysunkowy";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó";
+ Text[ arabic ] = "ßÇÆä ÑÓæãí";
+ Text[ greek ] = "Aíôéêåßìåíï ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼";
+ Text[ turkish ] = "Çizim nesnesi";
+ Text[ language_user1 ] = " ";
+};
+String STR_DEFINE_NUMBERFORMAT
+{
+ TEXT = "Weitere Formate..." ;
+ TEXT [ English ] = "Additional formats..." ;
+ Text [ portuguese ] = "Outros formatos..." ;
+ Text [ english_us ] = "Additional formats..." ;
+ Text [ portuguese_brazilian ] = "Weitere Formate..." ;
+ Text [ swedish ] = "Ytterligare format..." ;
+ Text [ danish ] = "Yderligere formater..." ;
+ Text [ italian ] = "Ulteriori formati..." ;
+ Text [ spanish ] = "Otros formatos..." ;
+ Text [ french ] = "Autres formats..." ;
+ Text [ dutch ] = "Andere formaten..." ;
+ Text[ chinese_simplified ] = "ÆäËüµÄ¸ñʽ...";
+ Text[ russian ] = "Äîïîëíèòåëüíûå ôîðìàòû...";
+ Text[ polish ] = "Dodatkowe formaty...";
+ Text[ japanese ] = "‚»‚Ì‘¼‚Ì‘Ž®...";
+ Text[ chinese_traditional ] = "¨ä¥¦®æ¦¡...";
+ Text[ arabic ] = "...ÊäÓíÞÇÊ ÅÖÇÝíÉ";
+ Text[ greek ] = "Åðéðñüóèåôåò ìïñöÝò...";
+ Text[ korean ] = "ºÎ°¡ÀûÀÎ ¼­½Ä...";
+ Text[ turkish ] = "Diðer formatlar...";
+ Text[ language_user1 ] = " ";
+};
+String RID_STR_SYSTEM
+{
+ Text = "[System]" ;
+ Text [ ENGLISH ] = " [System]" ;
+ Text[ english_us ] = "[System]";
+ Text[ portuguese ] = "[Sistema]";
+ Text[ russian ] = "[Èç ñèñòåìû]";
+ Text[ greek ] = "[Óýóôçìá]";
+ Text[ dutch ] = "[Systeem]";
+ Text[ french ] = "[Système]";
+ Text[ spanish ] = "[Sistema]";
+ Text[ italian ] = "[Sistema]";
+ Text[ danish ] = "[System]";
+ Text[ swedish ] = "[System]";
+ Text[ polish ] = "[System]";
+ Text[ portuguese_brazilian ] = "[System]";
+ Text[ japanese ] = "[¼½ÃÑ]";
+ Text[ korean ] = "[½Ã½ºÅÛ]";
+ Text[ chinese_simplified ] = "[ϵͳ]";
+ Text[ chinese_traditional ] = "[¨t²Î]";
+ Text[ arabic ] = "[äÙÇã]";
+ Text[ turkish ] = "[Sistem]";
+};
+String STR_MULT_INTERACT_SPELL_WARN
+{
+ Text = "Die Interaktive Rechschreibprüfung ist\nbereits in anderem Dokument aktiv" ;
+ Text [ ENGLISH ] = "The interactive spelling already active\in a different document" ;
+ Text[ english_us ] = "The interactive spellcheck is already active\\in a different document";
+ Text[ portuguese ] = "A verificação ortográfica interactiva já está\nactiva noutro documento";
+ Text[ russian ] = "Èíòåðàêòèâíàÿ ïðîâåðêà ïðàâîïèñàíèÿ\nóæå âêëþ÷åíà â äðóãîì äîêóìåíòå";
+ Text[ greek ] = "Ôï äéáëïãéêü ðñüãñáììá åëÝã÷ïõ ïñèïãñáößáò\n÷ñçóéìïðïéåßôáé áðü êÜðïéï Üëëï Ýããñáöï";
+ Text[ dutch ] = "De interactieve spellingcontrole is\nreeds actief in een ander document.";
+ Text[ french ] = "La vérification orthographique interactive est\nen cours d'utilisation dans un autre document.";
+ Text[ spanish ] = "La corrección ortográfica interactiva\nya está activada en otro documento";
+ Text[ italian ] = "Il controllo ortografico interattivo è\ngià stato attivato in un altro documento.";
+ Text[ danish ] = "Den interaktive stavekontrol er\nallerede aktiv i et andet dokument";
+ Text[ swedish ] = "Den interaktiva rättstavningskontrollen\när redan aktiv i ett annat dokument";
+ Text[ polish ] = "Interaktywne sprawdzanie pisowni\naktywne jest ju¿ w innym dokumencie.";
+ Text[ portuguese_brazilian ] = "The interactive spelling already active\\in a different document";
+ Text[ japanese ] = "²ÝÀ׸èÌÞ½ÍßÙÁª¯¸‚Í‚·‚Å‚É\n‚Ù‚©‚ÌÄÞ·­ÒÝĂű¸Ã¨ÌÞ‚É‚È‚Á‚Ä‚¢‚Ü‚·";
+ Text[ korean ] = "´ëÈ­Çü ¸ÂÃã¹ýÀº \nÀÌ¹Ì ´Ù¸¥ ¹®¼­¿¡¼­ È°¼º»óÅÂÀÔ´Ï´Ù.";
+ Text[ chinese_simplified ] = "½»»¥Ê½Õý×Ö·¨¼ì²é\nÒѾ­Ê¹ÓÃÔÚÒ»¸öÆäËüÎĵµÖÐ";
+ Text[ chinese_traditional ] = "¥t¤@­Ó¤å¥ó¤w¸g¨Ï¥Î¤¬°Ê¦¡¥¿¦rªk¥\\¯à";
+ Text[ arabic ] = "ÇáÊÏÞíÞ ÇáÅãáÇÆí ÇáÊÈÇÏáí\näÔØ ÈÇáÝÚá Ýí ãÓÊäÏ ÂÎÑ";
+ Text[ turkish ] = "Etkileþimli yazým denetimi\nþu an baþka bir belgede etkin";
+};
+String STR_MULT_INTERACT_HYPH_WARN
+{
+ Text = "Die Interaktive Silbentrennung ist\nbereits in anderem Dokument aktiv" ;
+ Text [ ENGLISH ] = "The interactive hyphenation already active\in a different document" ;
+ Text[ english_us ] = "The interactive hyphenation is already active\\in a different document";
+ Text[ portuguese ] = "A divisão silábica interactiva já está\nactiva noutro documento";
+ Text[ russian ] = "Èíòåðàêòèâíàÿ ðàññòàíîâêà ïåðåíîñîâ\nóæå âêëþ÷åíà â äðóãîì äîêóìåíòå";
+ Text[ greek ] = "Ôï äéáëïãéêü ðñüãñáììá óõëëáâéóìïý\n÷ñçóéìïðïéåßôáé áðü êÜðïéï Üëëï Ýããñáöï";
+ Text[ dutch ] = "De interactieve woordafbreking is\nreeds actief in een ander document";
+ Text[ french ] = "La coupure de mots interactive est\nen cours d'utilisation dans un autre document.";
+ Text[ spanish ] = "La separación silábica interactiva\nya está activa en otro documento";
+ Text[ italian ] = "La sillabazione interattiva è\ngià stata attivata in un altro documento.";
+ Text[ danish ] = "Den interaktive orddeling er\nallerede aktiv i et andet dokument";
+ Text[ swedish ] = "Den interaktiva avstavningen är\nredan aktiv i ett annat dokument";
+ Text[ polish ] = "Interaktywne dzielenie wyrazów na sylaby\naktywne jest ju¿ w innym dokumencie.";
+ Text[ portuguese_brazilian ] = "The interactive hyphenation already active\\in a different document";
+ Text[ japanese ] = "²ÝÀ׸èÌÞʲÌÈ°¼®Ý‚Í‚·‚Å‚É\n‚Ù‚©‚ÌÄÞ·­ÒÝĂű¸Ã¨ÌÞ‚É‚È‚Á‚Ä‚¢‚Ü‚·";
+ Text[ korean ] = "´ëÈ­Çü ÇÏÀÌÇ ³Ö±â´Â \nÀÌ¹Ì ´Ù¸¥ ¹®¼­¿¡¼­ È°¼º»óÅÂÀÔ´Ï´Ù.";
+ Text[ chinese_simplified ] = "½»»¥Ê½Á¬×Ö·û\nÒѾ­Ê¹ÓÃÔÚÒ»¸öÆäËüÎĵµÖÐ";
+ Text[ chinese_traditional ] = "¥t¤@­Ó¤å¥ó¤w¸g¨Ï¥Î¤¬°Ê¦¡³s¦r¸¹¥\\¯à";
+ Text[ arabic ] = "ÝÕá ÇáãÞÇØÚ ÇáÊÈÇÏáí\näÔØ ÈÇáÝÚá Ýí ãÓÊäÏ ÂÎÑ";
+ Text[ turkish ] = "Etkileþimli heceleme\nþu an baþka bir belgede etkin";
+};
+String STR_SPELL_TITLE
+{
+ Text = "Rechtschreibprüfung" ;
+ Text [ ENGLISH ] = "Spelling" ;
+ Text[ english_us ] = "Spellcheck";
+ Text[ portuguese ] = "Ortografia";
+ Text[ russian ] = "Ïðîâåðêà ïðàâîïèñàíèÿ";
+ Text[ greek ] = "¸ëåã÷ïò ïñèïãñáößáò";
+ Text[ dutch ] = "Spellingcontrole";
+ Text[ french ] = "Vérification orthographique";
+ Text[ spanish ] = "Corrección ortográfica";
+ Text[ italian ] = "Controllo ortografico";
+ Text[ danish ] = "Stavekontrol";
+ Text[ swedish ] = "Rättstavningskontroll";
+ Text[ polish ] = "Sprawdzanie pisowni";
+ Text[ portuguese_brazilian ] = "Spelling";
+ Text[ japanese ] = "½ÍßÙÁª¯¸";
+ Text[ korean ] = "¸ÂÃã¹ý °Ë»ç";
+ Text[ chinese_simplified ] = "Õý×Ö·¨¼ì²é";
+ Text[ chinese_traditional ] = "¥¿¦rªk";
+ Text[ arabic ] = "ÇáÊÏÞíÞ ÇáÅãáÇÆí";
+ Text[ turkish ] = "Yazým denetimi";
+};
+String STR_HYPH_TITLE
+{
+ Text = "Silbentrennung" ;
+ Text [ ENGLISH ] = "Hyphenation" ;
+ Text[ english_us ] = "Hyphenation";
+ Text[ portuguese ] = "Divisão silábica";
+ Text[ russian ] = "Ðàññòàíîâêà ïåðåíîñîâ";
+ Text[ greek ] = "Óõëëáâéóìüò";
+ Text[ dutch ] = "Woordafbreking";
+ Text[ french ] = "Coupure de mots";
+ Text[ spanish ] = "Separación silábica";
+ Text[ italian ] = "Sillabazione";
+ Text[ danish ] = "Orddeling";
+ Text[ swedish ] = "Avstavning";
+ Text[ polish ] = "Dzielenie wyrazów na sylaby";
+ Text[ portuguese_brazilian ] = "Hyphenation";
+ Text[ japanese ] = "ʲÌÈ°¼®Ý";
+ Text[ korean ] = "ÇÏÀÌÇ ³Ö±â";
+ Text[ chinese_simplified ] = "Á¬×Ö·û";
+ Text[ chinese_traditional ] = "³s¦r¸¹";
+ Text[ arabic ] = "ÝÕá ÇáãÞÇØÚ";
+ Text[ turkish ] = "Heceleme";
+};
+
diff --git a/sw/source/ui/utlui/zoomctrl.cxx b/sw/source/ui/utlui/zoomctrl.cxx
new file mode 100644
index 000000000000..de4022b44859
--- /dev/null
+++ b/sw/source/ui/utlui/zoomctrl.cxx
@@ -0,0 +1,175 @@
+/*************************************************************************
+ *
+ * $RCSfile: zoomctrl.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _STATUS_HXX //autogen
+#include <vcl/status.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SVX_ZOOMITEM_HXX //autogen
+#include <svx/zoomitem.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "zoomctrl.hxx"
+
+
+SFX_IMPL_STATUSBAR_CONTROL( SwZoomControl, SvxZoomItem );
+
+
+SwZoomControl::SwZoomControl( USHORT nId,
+ StatusBar& rStb,
+ SfxBindings& rBind ) :
+ SvxZoomStatusBarControl( nId, rStb, rBind )
+{
+}
+
+// -----------------------------------------------------------------------
+
+SwZoomControl::~SwZoomControl()
+{
+}
+
+// -----------------------------------------------------------------------
+
+void SwZoomControl::StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState )
+{
+ if(SFX_ITEM_AVAILABLE == eState && pState->ISA( SfxStringItem ))
+ {
+ sPreviewZoom = ((const SfxStringItem*)pState)->GetValue();
+ GetStatusBar().SetItemText( GetId(), sPreviewZoom );
+ }
+ else
+ {
+ sPreviewZoom = aEmptyStr;
+ SvxZoomStatusBarControl::StateChanged(nSID, eState, pState);
+ }
+}
+
+// -----------------------------------------------------------------------
+
+void SwZoomControl::Paint( const UserDrawEvent& rUsrEvt )
+{
+ if(!sPreviewZoom.Len())
+ SvxZoomStatusBarControl::Paint(rUsrEvt);
+ else
+ GetStatusBar().SetItemText( GetId(), sPreviewZoom );
+}
+
+// -----------------------------------------------------------------------
+
+void SwZoomControl::Command( const CommandEvent& rCEvt )
+{
+ if(!sPreviewZoom.Len())
+ SvxZoomStatusBarControl::Command(rCEvt);
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.9 2000/09/18 16:06:19 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.8 2000/02/11 15:01:17 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.7 1997/11/21 11:10:18 MA
+ includes
+
+
+ Rev 1.6 21 Nov 1997 12:10:18 MA
+ includes
+
+ Rev 1.5 03 Nov 1997 13:59:24 MA
+ precomp entfernt
+
+ Rev 1.4 05 Sep 1997 12:23:06 MH
+ chg: header
+
+ Rev 1.3 06 Aug 1997 11:13:02 MH
+ chg: header
+
+ Rev 1.2 18 Jun 1996 16:59:44 OS
+ ui_pch includen
+
+ Rev 1.1 20 Mar 1996 13:42:54 HJS
+ einmal segmentc.hxx reicht
+
+ Rev 1.0 14 Jan 1996 15:30:32 OS
+ Initial revision.
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/web/makefile.mk b/sw/source/ui/web/makefile.mk
new file mode 100644
index 000000000000..6d9c51df81a4
--- /dev/null
+++ b/sw/source/ui/web/makefile.mk
@@ -0,0 +1,113 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=web
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ wdrwbase.cxx \
+ wformsh.cxx \
+ wgrfsh.cxx \
+ wlistsh.cxx \
+ wolesh.cxx \
+ wtabsh.cxx \
+ wfrmsh.cxx \
+ wtextsh.cxx \
+ wdocsh.cxx \
+ wview.cxx
+
+SRCFILES = \
+ web.src \
+ webport.src
+
+SLOFILES = \
+ $(SLO)$/wdrwbase.obj \
+ $(SLO)$/wformsh.obj \
+ $(SLO)$/wgrfsh.obj \
+ $(SLO)$/wlistsh.obj \
+ $(SLO)$/wolesh.obj \
+ $(SLO)$/wtabsh.obj \
+ $(SLO)$/wfrmsh.obj \
+ $(SLO)$/wtextsh.obj \
+ $(SLO)$/wdocsh.obj \
+ $(SLO)$/wview.obj
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/web/wdocsh.cxx b/sw/source/ui/web/wdocsh.cxx
new file mode 100644
index 000000000000..5131747e57de
--- /dev/null
+++ b/sw/source/ui/web/wdocsh.cxx
@@ -0,0 +1,264 @@
+/*************************************************************************
+ *
+ * $RCSfile: wdocsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+
+#ifndef _SV_EXCHANGE_HXX //autogen
+#include <vcl/exchange.hxx>
+#endif
+
+#ifndef _SO_CLSIDS_HXX
+#include <so3/clsids.hxx>
+#endif
+
+#include "itemdef.hxx"
+
+#include "cmdid.h"
+#include "swtypes.hxx"
+
+#include "shellio.hxx"
+// nur wegen des Itemtypes
+#include "wdocsh.hxx"
+#include "web.hrc"
+
+#define SwWebDocShell
+#include "swslots.hxx"
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+SFX_IMPL_INTERFACE( SwWebDocShell, SfxObjectShell, SW_RES(0) )
+{
+ SwWebDocShell::Factory().RegisterHelpFile(C2S("swriter.svh"));
+ SwWebDocShell::Factory().RegisterHelpPIFile(C2S("swriter.svh"));
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Alle Filter registrieren
+ --------------------------------------------------------------------*/
+
+// 4.0: 0xf0caa840, 0x7821, 0x11d0, 0xa4, 0xa7, 0x0, 0xa0, 0x24, 0x9d, 0x57, 0xb1, Sw)
+// 5.0: 0xc20cf9d2, 0x85ae, 0x11d1, 0xaa, 0xb4, 0x0, 0x60, 0x97, 0xda, 0x56, 0x1a
+
+SFX_IMPL_OBJECTFACTORY_LOD(SwWebDocShell, SFXOBJECTSHELL_STD_NORMAL|SFXOBJECTSHELL_HASMENU, /*swriter4/web,*/ \
+ SvGlobalName(SO3_SWWEB_CLASSID), Sw)
+/*{
+ ::RegisterWebFilterInSfxFactory( (SfxObjectFactory&)Factory(), RC_WEB_ICON );
+} */
+
+
+TYPEINIT1(SwWebDocShell, SwDocShell);
+
+/*-----------------22.01.97 09.29-------------------
+
+--------------------------------------------------*/
+
+SwWebDocShell::SwWebDocShell(SfxObjectCreateMode eMode ) :
+ SwDocShell(eMode),
+ nSourcePara(0)
+{
+}
+
+/*-----------------22.01.97 09.29-------------------
+
+--------------------------------------------------*/
+
+__EXPORT SwWebDocShell::~SwWebDocShell()
+{
+}
+
+
+// Anforderung der pIo-Struktur fuer den Zugriff auf Substorages
+// und Streams
+/*-----------------22.01.97 09.29-------------------
+
+--------------------------------------------------*/
+
+void __EXPORT SwWebDocShell::FillRegInfo( SvEmbeddedRegistryInfo * pInfo)
+{
+ SfxInPlaceObject::FillRegInfo( pInfo );
+ pInfo->aObjName = C2S("StarWriterWebDocument");
+ pInfo->nMajorVers = 5;
+ pInfo->nMinorVers = 0;
+ pInfo->aHumanShortTypeName = SW_RESSTR(STR_HUMAN_SWWEBDOC_NAME);
+ pInfo->nIconResId =
+#ifdef REG_ICON_RESID_WWWW
+ REG_ICON_RESID_WWWW;
+#else
+ 7;
+#endif
+}
+
+
+void __EXPORT SwWebDocShell::FillClass( SvGlobalName * pClassName,
+ ULONG * pClipFormat,
+ String * pAppName,
+ String * pLongUserName,
+ String * pUserName,
+ long nVersion ) const
+{
+ SfxInPlaceObject::FillClass(pClassName, pClipFormat, pAppName, pLongUserName,
+ pUserName, nVersion);
+
+ if (nVersion == SOFFICE_FILEFORMAT_40)
+ {
+ *pClassName = SvGlobalName( SO3_SWWEB_CLASSID_40 );
+ *pClipFormat = SOT_FORMATSTR_ID_STARWRITERWEB_40;
+ *pAppName = C2S("StarWriter/Web 4.0");
+
+ *pLongUserName = SW_RESSTR(STR_WRITER_WEBDOC_FULLTYPE_40);
+ }
+ else if (nVersion == SOFFICE_FILEFORMAT_NOW)
+ {
+ *pLongUserName = SW_RESSTR(STR_WRITER_WEBDOC_FULLTYPE);
+ }
+ *pUserName = SW_RESSTR(STR_HUMAN_SWWEBDOC_NAME);
+}
+
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.22 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.21 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.20 2000/04/19 11:21:44 os
+ UNICODE
+
+ Revision 1.19 2000/02/11 15:01:21 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.18 1998/11/18 14:18:18 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+
+ Rev 1.17 18 Nov 1998 15:18:18 JP
+ Task #59398#: ClipboardFormatId Umstellungen
+
+ Rev 1.16 21 Apr 1998 11:56:28 TJ
+ include
+
+ Rev 1.15 17 Feb 1998 11:40:38 OS
+ HelpFile: Name gesetzt #47036#
+
+ Rev 1.14 14 Jan 1998 09:05:22 MIB
+ neu: GetSw4/5WebClipId
+
+ Rev 1.13 07 Jan 1998 18:39:38 MIB
+ 5.0 Fileformat
+
+ Rev 1.12 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.11 03 Sep 1997 10:50:06 MBA
+ swslots.hxx statt wswslots.hxx
+
+ Rev 1.10 01 Sep 1997 13:10:58 OS
+ DLL-Umstellung
+
+ Rev 1.9 05 Aug 1997 16:47:22 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.8 05 Aug 1997 16:41:48 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.7 02 Jul 1997 08:04:44 OS
+ Zeile in der SourceView merken
+
+ Rev 1.6 10 Feb 1997 15:02:30 MA
+ ueberfluessigen CTor entfernt
+
+ Rev 1.5 31 Jan 1997 08:53:32 MA
+ Parent fuer Interface ist nicht die SwDocShell
+
+ Rev 1.4 28 Jan 1997 08:45:34 MA
+ Syntax
+
+ Rev 1.3 27 Jan 1997 16:12:04 MA
+ Icon
+
+ Rev 1.2 27 Jan 1997 12:46:02 MA
+ Filter fuer web
+
+ Rev 1.1 24 Jan 1997 10:32:30 OS
+ FillRegInfo sollte sich nicht selbst aufrufen
+
+ Rev 1.0 23 Jan 1997 16:19:32 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/web/web.src b/sw/source/ui/web/web.src
new file mode 100644
index 000000000000..b356ce6be9e1
--- /dev/null
+++ b/sw/source/ui/web/web.src
@@ -0,0 +1,623 @@
+/*************************************************************************
+ *
+ * $RCSfile: web.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define MN_SW_WEB
+#ifndef _SVX_SVXIDS_HRC
+#include <svx/svxids.hrc>
+#endif
+#include "globals.hrc"
+#include "cmdid.h"
+#include "web.hrc"
+#include "swmn.hrc"
+#define ACC_SW_WEB
+#include "swacc.hrc"
+#include "toolbox.hrc"
+#include "helpid.h"
+ACC CFG_SWWEB_ACCEL
+{
+ ItemList =
+ {
+ ALL_ACCELS
+ FUNCTIONKEYS
+ };
+};
+String STR_HUMAN_SWWEBDOC_NAME
+{
+ Text = "HTML" ;
+ Text [ English ] = "HTML" ;
+ Text [ portuguese ] = "HTML" ;
+ Text [ english_us ] = "HTML" ;
+ Text [ portuguese_brazilian ] = "HTML" ;
+ Text [ swedish ] = "HTML" ;
+ Text [ danish ] = "HTML" ;
+ Text [ italian ] = "HTML" ;
+ Text [ spanish ] = "HTML" ;
+ Text [ french ] = "HTML" ;
+ Text [ dutch ] = "HTML" ;
+ Text[ chinese_simplified ] = "HTML";
+ Text[ russian ] = "HTML";
+ Text[ polish ] = "HTML";
+ Text[ japanese ] = "HTML";
+ Text[ chinese_traditional ] = "HTML";
+ Text[ arabic ] = "HTML";
+ Text[ dutch ] = "HTML";
+ Text[ chinese_simplified ] = "HTML";
+ Text[ greek ] = "HTML";
+ Text[ korean ] = "HTML";
+ Text[ turkish ] = "HTML";
+ Text[ language_user1 ] = " ";
+};
+String STR_WRITER_WEBDOC_FULLTYPE_40
+{
+ Text = "StarOffice 4.0 HTML" ;
+ Text [ English ] = "StarOffice 4.0 HTML" ;
+ Text [ english_us ] = "StarOffice 4.0 HTML" ;
+ Text [ portuguese_brazilian ] = "StarOffice 4.0 HTML" ;
+ Text [ swedish ] = "StarOffice 4.0 HTML" ;
+ Text [ danish ] = "StarOffice 4.0 HTML" ;
+ Text [ italian ] = "HTML StarOffice 4.0" ;
+ Text [ spanish ] = "HTML de StarOffice 4.0" ;
+ Text [ french ] = "HTML StarOffice 4.0" ;
+ Text [ dutch ] = "StarOffice 4.0 HTML" ;
+ Text [ portuguese ] = "HTML (StarOffice 4.0)" ;
+ Text[ chinese_simplified ] = "StarOffice 4.0 HTML";
+ Text[ russian ] = "StarOffice 4.0 HTML";
+ Text[ polish ] = "StarOffice 4.0 HTML";
+ Text[ japanese ] = "StarOffice 4.0 HTML";
+ Text[ chinese_traditional ] = "StarOffice 4.0 HTML";
+ Text[ arabic ] = "StarOffice 4.0 HTML";
+ Text[ dutch ] = "StarOffice 4.0 HTML";
+ Text[ chinese_simplified ] = "StarOffice 4.0 HTML";
+ Text[ greek ] = "StarOffice 4.0 HTML";
+ Text[ korean ] = "HTML (StarOffice 4.0)";
+ Text[ turkish ] = "StarOffice 4.0 HTML";
+ Text[ language_user1 ] = " ";
+};
+String STR_WRITER_WEBDOC_FULLTYPE
+{
+ Text = "StarOffice 5.0 HTML" ;
+ Text [ English ] = "StarOffice 5.0 HTML" ;
+ Text [ english_us ] = "StarOffice 5.0 HTML" ;
+ Text [ portuguese_brazilian ] = "StarOffice 5.0 HTML" ;
+ Text [ swedish ] = "StarOffice 5.0 HTML" ;
+ Text [ danish ] = "StarOffice 5.0 HTML" ;
+ Text [ italian ] = "HTML StarOffice 5.0" ;
+ Text [ spanish ] = "HTML de StarOffice 5.0" ;
+ Text [ french ] = "HTML StarOffice 5.0" ;
+ Text [ dutch ] = "StarOffice 5.0 HTML" ;
+ Text [ portuguese ] = "HTML (StarOffice 5.0)" ;
+ Text[ chinese_simplified ] = "StarOffice 5.0 HTML";
+ Text[ russian ] = "StarOffice 5.0 HTML";
+ Text[ polish ] = "StarOffice 5.0 HTML";
+ Text[ japanese ] = "StarOffice 5.0 HTML";
+ Text[ chinese_traditional ] = "StarOffice 5.0 HTML";
+ Text[ arabic ] = "StarOffice 5.0 HTML";
+ Text[ dutch ] = "StarOffice 5.0 HTML";
+ Text[ chinese_simplified ] = "StarOffice 5.0 HTML";
+ Text[ greek ] = "StarOffice 5.0 HTML";
+ Text[ korean ] = "HTML (StarOffice 5.0)";
+ Text[ turkish ] = "StarOffice 5.0 HTML";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_WEBTEXT
+{
+ Text = "Text/Web" ;
+ Text [ ENGLISH ] = "Text/Web" ;
+ Text [ dutch ] = "Tekst/Web" ;
+ Text [ english_us ] = "Text/Web" ;
+ Text [ italian ] = "Testo/Web" ;
+ Text [ spanish ] = "Texto/Web" ;
+ Text [ french ] = "Texte/Web" ;
+ Text [ swedish ] = "Text/Webb" ;
+ Text [ danish ] = "Tekst/Web" ;
+ Text [ portuguese_brazilian ] = "Text/Web" ;
+ Text [ portuguese ] = "Texto/Web" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö/ÍòάÍø";
+ Text[ russian ] = "Òåêñò/Web";
+ Text[ polish ] = "Tekst/Web";
+ Text[ japanese ] = "÷½Ä/Web";
+ Text[ chinese_traditional ] = "¤å¦r/Web";
+ Text[ arabic ] = "äÕ/æíÈ";
+ Text[ dutch ] = "Tekst/Web";
+ Text[ chinese_simplified ] = "ÎÄ×Ö/ÍòάÍø";
+ Text[ greek ] = "Êåßìåíï/Web";
+ Text[ korean ] = "ÅؽºÆ®/À¥";
+ Text[ turkish ] = "Metin/Web";
+ Text[ language_user1 ] = " ";
+};
+String STR_SHELLNAME_WEBFRAME
+{
+ Text = "Rahmen/Web" ;
+ Text [ ENGLISH ] = "Frame/Web" ;
+ Text [ dutch ] = "Kader/Web" ;
+ Text [ english_us ] = "Frame/Web" ;
+ Text [ italian ] = "Cornice/Web" ;
+ Text [ spanish ] = "Marco/Web" ;
+ Text [ french ] = "Cadre/Web" ;
+ Text [ swedish ] = "Ram/Webb" ;
+ Text [ danish ] = "Ramme/Web" ;
+ Text [ portuguese_brazilian ] = "Rahmen/Web" ;
+ Text [ portuguese ] = "Moldura/Web" ;
+ Text[ chinese_simplified ] = "¿ò/ÍòάÍø";
+ Text[ russian ] = "Êàäð/Web";
+ Text[ polish ] = "Ramka/Web";
+ Text[ japanese ] = "˜g/Web";
+ Text[ chinese_traditional ] = "°T®Ø/Web";
+ Text[ arabic ] = "ÅØÇÑ/æíÈ";
+ Text[ dutch ] = "Kader/Web";
+ Text[ chinese_simplified ] = "¿ò/ÍòάÍø";
+ Text[ greek ] = "Ðëáßóéï/Web";
+ Text[ korean ] = "ÇÁ·¹ÀÓ/À¥";
+ Text[ turkish ] = "Çerçeve/Web";
+ Text[ language_user1 ] = " ";
+};
+String RID_WEBTOOLS_TOOLBOX
+{
+ Text = "Werkzeugleiste/Web" ;
+ Text [ English ] = "Toolbar/Web" ;
+ Text [ english_us ] = "Main Toolbar/Web" ;
+ Text [ italian ] = "Barra degli strumenti/Web" ;
+ Text [ spanish ] = "Barra de herramientas/Web" ;
+ Text [ french ] = "Barre d'instruments/Web" ;
+ Text [ dutch ] = "Werktuigbalk/Web" ;
+ Text [ swedish ] = "Verktygslist/Webb" ;
+ Text [ danish ] = "Værktøjslinje/Web" ;
+ Text [ portuguese_brazilian ] = "Werkzeugleiste/Web" ;
+ Text [ portuguese ] = "Barra de ferramentas/Web" ;
+ Text[ chinese_simplified ] = "Ö÷¹¤¾ßÀ¸/ÍòάÍø";
+ Text[ russian ] = "Ïàíåëü èíñòðóìåíòîâ/Web";
+ Text[ polish ] = "Pasek narzêdziowy/Web";
+ Text[ japanese ] = "•W€Â°ÙÊÞ°/Web";
+ Text[ chinese_traditional ] = "¥D¤u¨ã¦C/Web";
+ Text[ arabic ] = "ÔÑíØ ÇáÃÏæÇÊ/æíÈ";
+ Text[ dutch ] = "Werktuigbalk/Web";
+ Text[ chinese_simplified ] = "Ö÷¹¤¾ßÀ¸/ÍòάÍø";
+ Text[ greek ] = "ÃñáììÞ åñãáëåéþí/Web";
+ Text[ korean ] = "ÁÖ µµ±¸ ¸ðÀ½/À¥";
+ Text[ turkish ] = "Ana araç çubuðu/Web";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_WEBTOOLS_TOOLBOX
+{
+ HelpID = HID_WEBTOOLS_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Scroll = TRUE ;
+ Hide = TRUE ;
+ Align = BOXALIGN_LEFT ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_CTRL ;
+ HelpID = HID_INSERT_CTRL ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_FIELD_CTRL ;
+ HelpID = HID_INSERT_FIELD_CTRL ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_HEADER ;
+ HelpID = FN_INSERT_HEADER ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_INSERT_FOOTER ;
+ HelpID = FN_INSERT_FOOTER ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DRAW_TEXT_MARQUEE ;
+ HelpID = SID_DRAW_TEXT_MARQUEE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_FM_CONFIG ;
+ HelpID = SID_FM_CONFIG;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_GLOSSARY_DLG ;
+ HelpID = FN_GLOSSARY_DLG ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_SPELLING_DLG ;
+ HelpID = FN_SPELLING_DLG ;
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_AUTOSPELL_CHECK
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_HYPHENATE_OPT_DLG;
+ HelpID = FN_HYPHENATE_OPT_DLG;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_THESAURUS_DLG;
+ HelpID = FN_THESAURUS_DLG;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SEARCH_DLG ;
+ HelpID = SID_SEARCH_DLG ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_HYPERLINK_INSERT ;
+ HelpID = SID_HYPERLINK_INSERT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_ZOOM;
+ HelpID = SID_ATTR_ZOOM ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_VIEW_META_CHARS ;
+ HelpID = FN_VIEW_META_CHARS ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_VIEW_GRAPHIC ;
+ HelpID = FN_VIEW_GRAPHIC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_PRINT_LAYOUT ;
+ HelpID = FN_PRINT_LAYOUT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SOURCEVIEW ;
+ HelpID = HID_SOURCEVIEW ;
+ };
+ };
+};
+/*************************************************************************
+ Textleiste
+*************************************************************************/
+String RID_WEBTEXT_TOOLBOX
+{
+ Text = "Textobjektleiste/Web" ;
+ Text [ English ] = "Text objectbar/Web" ;
+ Text [ dutch ] = "Tekstobjectbalk/Web" ;
+ Text [ english_us ] = "Text Object Bar/Web" ;
+ Text [ italian ] = "Barra degli oggetti di testo/Web" ;
+ Text [ spanish ] = "Barra de objetos de texto/Web" ;
+ Text [ french ] = "Barre d'objets de texte/web" ;
+ Text [ swedish ] = "Textobjektlist/Webb" ;
+ Text [ danish ] = "Tekstobjektlinje/Web" ;
+ Text [ portuguese ] = "Barra de objectos de texto/Web" ;
+ Text [ portuguese_brazilian ] = "Textobjektleiste/Web" ;
+ Text[ chinese_simplified ] = "ÎÄ×Ö¶ÔÏóÀ¸/ÍòάÍø";
+ Text[ russian ] = "Ïàíåëü îáúåêòîâ òåêñòà/Web";
+ Text[ polish ] = "Pasek obiektów tekstu/Web";
+ Text[ japanese ] = "÷½ÄµÌÞ¼Þª¸ÄÊÞ°/Web";
+ Text[ chinese_traditional ] = "¤å¦rª«¥ó¦C/Web";
+ Text[ arabic ] = "ÔÑíØ ßÇÆäÇÊ ÇáäÕ/æíÈ";
+ Text[ dutch ] = "Tekstobjectbalk/Web";
+ Text[ chinese_simplified ] = "ÎÄ×Ö¶ÔÏóÀ¸/ÍòάÍø";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí êåéìÝíïõ/Web";
+ Text[ korean ] = "ÅؽºÆ® °³Ã¼ ¸ðÀ½/À¥";
+ Text[ turkish ] = "Metin nesne çubuðu/Web";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_WEBTEXT_TOOLBOX
+{
+ HelpID = HID_WEBTEXT_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Hide = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ LineSpacing = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ ItemList =
+ {
+ MN_TEMPLATE
+ MN_FONT
+ MN_TEXT1(TRUE)
+ MN_TEXT_LINESPACE
+ MN_TEXT2
+ MN_TEXT_BACKGROUND
+ MN_TEXT_DIALOGS(TRUE)
+ };
+ Scroll = TRUE ;
+};
+String RID_WEBFRAME_TOOLBOX
+{
+ Text = "Rahmenobjektleiste/Web" ;
+ Text [ English ] = "Frame objectbar/Web" ;
+ Text [ norwegian ] = "Ramme/Web" ;
+ Text [ italian ] = "Barra degli oggetti per cornice/Web" ;
+ Text [ portuguese_brazilian ] = "Moldura/Web" ;
+ Text [ portuguese ] = "Barra de objectos de moldura/Web" ;
+ Text [ finnish ] = "Kehys/Web" ;
+ Text [ danish ] = "Rammeobjektlinje/Web" ;
+ Text [ french ] = "Barre d'objets de cadre/Web" ;
+ Text [ swedish ] = "Ramobjektlist/Webb" ;
+ Text [ dutch ] = "Kaderobjectbalk/Web" ;
+ Text [ spanish ] = "Barra de objetos de marco/Web" ;
+ Text [ english_us ] = "Frame Object Bar/Web" ;
+ Text[ chinese_simplified ] = "¿ò¶ÔÏóÀ¸/ÍòάÍø";
+ Text[ russian ] = "Ïàíåëü îáúåêòà êàäðà/Web";
+ Text[ polish ] = "Pasek obiektów ramki/Web";
+ Text[ japanese ] = "˜gµÌÞ¼Þª¸ÄÊÞ°/Web";
+ Text[ chinese_traditional ] = "°T®Øª«¥ó¦C/Web";
+ Text[ arabic ] = "ÔÑíØ ßÇÆä ÅØÇÑ/æíÈ";
+ Text[ dutch ] = "Kaderobjectbalk/Web";
+ Text[ chinese_simplified ] = "¿ò¶ÔÏóÀ¸/ÍòάÍø";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí ðëáéóßïõ/Web";
+ Text[ korean ] = "ÇÁ·¹ÀÓ °³Ã¼ ¸ðÀ½/À¥";
+ Text[ turkish ] = "Çerçeve nesne çubuðu/Web";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_WEBFRAME_TOOLBOX
+{
+ HelpID = HID_WEBFRAME_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Hide = TRUE ;
+ LineSpacing = TRUE ;
+ MenuStrings = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ ItemList =
+ {
+ MN_FRAME_WRAP_WEB
+ MN_FRAME1
+ MN_FRAME3
+ MN_LINESTYLE
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ MN_BACKGROUND_COLOR
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_ATTRIBUTES_FRAME
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_LAYER
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ };
+ };
+ Scroll = TRUE ;
+};
+String RID_WEBGRAPHIC_TOOLBOX
+{
+ Text = "Grafikobjektleiste/Web" ;
+ Text [ English ] = "Graphic objectbar/Web" ;
+ Text [ norwegian ] = "Graphic/Web" ;
+ Text [ italian ] = "Barra degli oggetti grafici/Web" ;
+ Text [ portuguese_brazilian ] = "Gr fico/Web" ;
+ Text [ portuguese ] = "Barra de objectos gráficos/Web" ;
+ Text [ finnish ] = "Kuva/Web" ;
+ Text [ danish ] = "Grafikobjektlinje/Web" ;
+ Text [ french ] = "Barre d'objets graphiques/Web" ;
+ Text [ swedish ] = "Grafikobjektlist/Webb" ;
+ Text [ dutch ] = "Objectbalk afbeeldingen/Web" ;
+ Text [ spanish ] = "Barra de objetos gráficos/Web" ;
+ Text [ english_us ] = "Graphics Object Bar/Web" ;
+ Text[ chinese_simplified ] = "ͼÐζÔÏóÀ¸/Web";
+ Text[ russian ] = "Ïàíåëü ãðàôè÷åñêèõ îáúåêòîâ/Web";
+ Text[ polish ] = "Pasek obiektów graficznych/Web";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸ÄÊÞ°/Web";
+ Text[ chinese_traditional ] = "¹Ï¤ùª«¥ó¦C/Web";
+ Text[ arabic ] = "ÔÑíØ ßÇÆä ÕæÑÉ/ æíÈ";
+ Text[ dutch ] = "Objectbalk afbeeldingen/Web";
+ Text[ chinese_simplified ] = "ͼÐζÔÏóÀ¸/Web";
+ Text[ greek ] = "ÃñáììÞ áíôéêåéìÝíùí ó÷åäéáóìïý/Web";
+ Text[ korean ] = "±×·¡ÇÈ °³Ã¼ ¸ðÀ½/À¥";
+ Text[ turkish ] = "Grafik nesne çubuðu/Web";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_WEBGRAPHIC_TOOLBOX
+{
+ HelpID = HID_WEBGRAPHIC_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ MenuStrings = TRUE ;
+ Customize = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ MN_FRAME_WRAP_WEB
+ MN_FRAME1
+ MN_FRAME3
+ MN_LINESTYLE
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_SIM_START
+ };
+ MN_ATTRIBUTES_GRAFIK
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_LAYER
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ DropDown = TRUE ;
+ };
+ };
+ Scroll = TRUE ;
+};
+String RID_WEBOLE_TOOLBOX
+{
+ Text = "Objekt" ;
+ Text [ English ] = "Object" ;
+ Text [ norwegian ] = "Object" ;
+ Text [ italian ] = "Oggetto" ;
+ Text [ portuguese_brazilian ] = "Objeto" ;
+ Text [ portuguese ] = "Objecto" ;
+ Text [ finnish ] = "Objekti" ;
+ Text [ danish ] = "Objekt" ;
+ Text [ french ] = "Objet" ;
+ Text [ swedish ] = "Objekt" ;
+ Text [ dutch ] = "Object" ;
+ Text [ spanish ] = "Objeto" ;
+ Text [ english_us ] = "Object" ;
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ russian ] = "Îáúåêò";
+ Text[ polish ] = "Obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ª«¥ó";
+ Text[ arabic ] = "ßÇÆä";
+ Text[ dutch ] = "Object";
+ Text[ chinese_simplified ] = "¶ÔÏó";
+ Text[ greek ] = "Áíôéêåßìåíï";
+ Text[ korean ] = "°³Ã¼";
+ Text[ turkish ] = "Nesne";
+ Text[ language_user1 ] = " ";
+};
+ToolBox RID_WEBOLE_TOOLBOX
+{
+ HelpID = HID_OLE_TOOLBOX ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ LineSpacing = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ Scroll = TRUE ;
+ ItemList =
+ {
+ MN_FRAME_WRAP_WEB
+ MN_FRAME1
+ MN_FRAME3
+ MN_LINESTYLE
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_ATTRIBUTES_OLE
+ ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+ MN_LAYER
+ ToolBoxItem
+ {
+ Identifier = FN_TOOL_ANKER ;
+ HelpID = FN_TOOL_ANKER ;
+ DropDown = TRUE ;
+ };
+ };
+};
+/*************************************************************************
+
+*************************************************************************/
diff --git a/sw/source/ui/web/wformsh.cxx b/sw/source/ui/web/wformsh.cxx
new file mode 100644
index 000000000000..93c0ec40aad0
--- /dev/null
+++ b/sw/source/ui/web/wformsh.cxx
@@ -0,0 +1,146 @@
+/*************************************************************************
+ *
+ * $RCSfile: wformsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "itemdef.hxx"
+
+#ifndef _SVX_SVXIDS_HRC
+#include <svx/svxids.hrc>
+#endif
+
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _GLOBNAME_HXX //autogen
+#include <tools/globname.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "wformsh.hxx"
+#include "globals.hrc"
+#include "web.hrc"
+#include "popup.hrc"
+#include "shells.hrc"
+
+#define SwWebDrawFormShell
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwWebDrawFormShell, SwDrawFormShell, SW_RES(0))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAWFORM_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_DRAWFORM_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_DRAWFORM));
+}
+
+TYPEINIT1(SwWebDrawFormShell, SwDrawFormShell)
+
+SwWebDrawFormShell::SwWebDrawFormShell(SwView& rVw) :
+ SwDrawFormShell(rVw)
+{
+}
+
+__EXPORT SwWebDrawFormShell::~SwWebDrawFormShell()
+{
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.4 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.3 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.2 1998/11/02 14:25:34 AWO
+ svxids.hrc wg. unbek. Defines includet
+
+
+ Rev 1.1 02 Nov 1998 15:25:34 AWO
+ svxids.hrc wg. unbek. Defines includet
+
+ Rev 1.0 08 Jun 1998 18:07:52 OM
+ Initial revision.
+
+ Rev 1.2 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.1 03 Nov 1997 14:00:14 MA
+ precomp entfernt
+
+ Rev 1.0 03 Sep 1997 14:50:16 MBA
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/web/wfrmsh.cxx b/sw/source/ui/web/wfrmsh.cxx
new file mode 100644
index 000000000000..f7926ae6dc6d
--- /dev/null
+++ b/sw/source/ui/web/wfrmsh.cxx
@@ -0,0 +1,170 @@
+/*************************************************************************
+ *
+ * $RCSfile: wfrmsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx> //***
+#endif
+
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "view.hxx"
+#include "wfrmsh.hxx"
+#include "globals.hrc"
+#include "popup.hrc"
+#include "shells.hrc"
+#include "web.hrc"
+
+
+// STATIC DATA -----------------------------------------------------------
+#define SwWebFrameShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SFX_IMPL_INTERFACE(SwWebFrameShell, SwFrameShell, SW_RES(STR_SHELLNAME_WEBFRAME))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_FRM_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBFRAME_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_FRAME));
+}
+
+
+
+TYPEINIT1(SwWebFrameShell, SwFrameShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwWebFrameShell::SwWebFrameShell(SwView &rView) :
+ SwFrameShell(rView)
+{
+ SetHelpId(SW_WEBFRAMESHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+SwWebFrameShell::~SwWebFrameShell()
+{
+}
+
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.8 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.7 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.6 1997/11/21 10:00:48 MA
+ includes
+
+
+ Rev 1.5 21 Nov 1997 11:00:48 MA
+ includes
+
+ Rev 1.4 03 Nov 1997 14:00:14 MA
+ precomp entfernt
+
+ Rev 1.3 03 Sep 1997 10:51:06 MBA
+ swslots.hxx statt wswslots.hxx
+
+ Rev 1.2 05 Aug 1997 16:41:48 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.1 31 Jul 1997 14:19:22 MH
+ chg: header
+
+ Rev 1.0 31 Jan 1997 13:31:56 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
+
+
diff --git a/sw/source/ui/web/wgrfsh.cxx b/sw/source/ui/web/wgrfsh.cxx
new file mode 100644
index 000000000000..f72e438b5c58
--- /dev/null
+++ b/sw/source/ui/web/wgrfsh.cxx
@@ -0,0 +1,147 @@
+/*************************************************************************
+ *
+ * $RCSfile: wgrfsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "itemdef.hxx"
+
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXAPP_HXX
+#include <sfx2/app.hxx>
+#endif
+
+#include "cmdid.h"
+#include "view.hxx"
+#include "wrtsh.hxx"
+#include "swmodule.hxx"
+#include "uitool.hxx"
+#include "docsh.hxx"
+#include "shells.hrc"
+#include "popup.hrc"
+#include "globals.hrc"
+#include "web.hrc"
+#include "wgrfsh.hxx"
+
+#define SwWebGrfShell
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwWebGrfShell, SwGrfShell, SW_RES(STR_SHELLNAME_GRAPHIC))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_GRF_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBGRAPHIC_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_GRAFIK));
+}
+
+TYPEINIT1(SwWebGrfShell,SwGrfShell)
+
+SwWebGrfShell::SwWebGrfShell(SwView &rView) :
+ SwGrfShell(rView)
+
+{
+ SetName(String::CreateFromAscii("Graphic"));
+ SetHelpId(SW_GRFSHELL);
+}
+
+SwWebGrfShell::~SwWebGrfShell()
+{
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.8 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.7 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.6 2000/04/26 15:06:50 os
+ include
+
+ Revision 1.5 2000/04/19 11:21:44 os
+ UNICODE
+
+ Revision 1.4 1998/11/05 12:10:36 OS
+ #59004# Kein Vorlagencontroller fuer Rahmen+Grafiken im HTML
+
+
+ Rev 1.3 05 Nov 1998 13:10:36 OS
+ #59004# Kein Vorlagencontroller fuer Rahmen+Grafiken im HTML
+
+ Rev 1.2 21 Nov 1997 10:55:12 MA
+ includes
+
+ Rev 1.1 03 Nov 1997 14:00:14 MA
+ precomp entfernt
+
+ Rev 1.0 03 Sep 1997 14:50:40 MBA
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/web/wlistsh.cxx b/sw/source/ui/web/wlistsh.cxx
new file mode 100644
index 000000000000..cc77cdbcce11
--- /dev/null
+++ b/sw/source/ui/web/wlistsh.cxx
@@ -0,0 +1,146 @@
+/*************************************************************************
+ *
+ * $RCSfile: wlistsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+#include "itemdef.hxx"
+
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _IMAPDLG_HXX_ //autogen
+#include <svx/imapdlg.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+
+#include "cmdid.h"
+#include "uiparam.hxx"
+#include "wrtsh.hxx"
+#include "swmodule.hxx"
+#include "globals.hrc"
+#include "shells.hrc"
+#include "uinums.hxx"
+#include "wlistsh.hxx"
+
+#define SwWebListShell
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwWebListShell, SwListShell, SW_RES(STR_SHELLNAME_LIST))
+{
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_NUM_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_LIST));
+}
+
+TYPEINIT1(SwWebListShell,SwListShell)
+
+SwWebListShell::SwWebListShell(SwView &rView) :
+ SwListShell(rView)
+{
+ SetName(String::CreateFromAscii("List"));
+ SetHelpId(SW_LISTSHELL);
+}
+
+__EXPORT SwWebListShell::~SwWebListShell()
+{
+}
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.7 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.6 2000/05/26 07:21:35 os
+ old SW Basic API Slots removed
+
+ Revision 1.5 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.4 2000/04/19 11:21:44 os
+ UNICODE
+
+ Revision 1.3 1997/11/21 10:33:20 MA
+ includes
+
+
+ Rev 1.2 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.1 03 Nov 1997 14:00:16 MA
+ precomp entfernt
+
+ Rev 1.0 03 Sep 1997 14:50:56 MBA
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/web/wolesh.cxx b/sw/source/ui/web/wolesh.cxx
new file mode 100644
index 000000000000..6df88fed4931
--- /dev/null
+++ b/sw/source/ui/web/wolesh.cxx
@@ -0,0 +1,183 @@
+/*************************************************************************
+ *
+ * $RCSfile: wolesh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "itemdef.hxx"
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "helpid.h"
+#include "globals.hrc"
+#include "web.hrc"
+#include "popup.hrc"
+#include "shells.hrc"
+#include "wolesh.hxx"
+#include "cmdid.h"
+
+#define SwWebOleShell
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwWebOleShell, SwOleShell, SW_RES(STR_SHELLNAME_OBJECT))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_OLE_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBOLE_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_OLE));
+}
+
+SwWebOleShell::SwWebOleShell(SwView &rView) :
+ SwOleShell(rView)
+
+{
+ SetName(String::CreateFromAscii("Object"));
+ SetHelpId(SW_OLESHELL);
+}
+
+__EXPORT SwWebOleShell::~SwWebOleShell()
+{
+}
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.8 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.7 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.6 2000/04/19 11:21:44 os
+ UNICODE
+
+ Revision 1.5 1999/01/04 14:02:18 OS
+ #59918# Kein Vorlagencontroller fuer Rahmen+Grafiken im HTML
+
+
+ Rev 1.4 04 Jan 1999 15:02:18 OS
+ #59918# Kein Vorlagencontroller fuer Rahmen+Grafiken im HTML
+
+ Rev 1.3 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.2 03 Nov 1997 14:00:16 MA
+ precomp entfernt
+
+ Rev 1.1 05 Sep 1997 12:36:00 MH
+ chg: header
+
+ Rev 1.0 03 Sep 1997 14:51:06 MBA
+ Initial revision.
+
+ Rev 1.21 01 Aug 1997 11:45:44 MH
+ chg: header
+
+ Rev 1.20 11 Nov 1996 13:37:34 MA
+ ResMgr
+
+ Rev 1.19 28 Aug 1996 15:55:14 OS
+ includes
+
+ Rev 1.18 13 Aug 1996 12:38:40 OS
+ neue Shellnamen im IDL-Interface
+
+ Rev 1.17 25 Jun 1996 19:51:50 HJS
+ includes
+
+ Rev 1.16 20 Mar 1996 12:41:14 HJS
+ funcdefs muessen unique sein!
+
+ Rev 1.15 06 Feb 1996 15:16:22 OS
+ neu: Activate/Deactivate fuer Objekte
+
+ Rev 1.14 26 Jan 1996 10:54:12 OS
+ neu: GetState - Ole-Objekt dem Basic herausreichen
+
+ Rev 1.13 03 Dec 1995 11:22:08 OS
+ +include itemdef.hxx
+
+ Rev 1.12 29 Nov 1995 13:47:54 OS
+ -slotadd.hxx
+
+ Rev 1.11 27 Nov 1995 19:40:06 OM
+ swslots->303a
+
+ Rev 1.10 24 Nov 1995 16:59:36 OM
+ PCH->PRECOMPILED
+
+ Rev 1.9 17 Nov 1995 13:03:40 MA
+ Segmentierung
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/web/wtabsh.cxx b/sw/source/ui/web/wtabsh.cxx
new file mode 100644
index 000000000000..b17c2f9b02e7
--- /dev/null
+++ b/sw/source/ui/web/wtabsh.cxx
@@ -0,0 +1,154 @@
+/*************************************************************************
+ *
+ * $RCSfile: wtabsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "uiparam.hxx"
+#include "hintids.hxx"
+
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _GLOBNAME_HXX //autogen
+#include <tools/globname.hxx>
+#endif
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX //autogen
+#include <svx/srchitem.hxx>
+#endif
+
+
+#include "cmdid.h"
+#include "globals.hrc"
+#include "uitool.hxx"
+#include "helpid.h"
+#include "popup.hrc"
+#include "shells.hrc"
+#include "table.hrc"
+#include "wrtsh.hxx"
+#include "wtabsh.hxx"
+
+#define SwWebTableShell
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+SFX_IMPL_INTERFACE(SwWebTableShell, SwTableShell, SW_RES(STR_SHELLNAME_TABLE))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TAB_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TABLE_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_TABLE));
+}
+
+TYPEINIT1(SwWebTableShell,SwTableShell)
+
+SwWebTableShell::SwWebTableShell(SwView &rView) :
+ SwTableShell(rView)
+{
+ GetShell().UpdateTable();
+ SetName(String::CreateFromAscii("Table"));
+ SetHelpId(SW_TABSHELL);
+}
+
+__EXPORT SwWebTableShell::~SwWebTableShell()
+{
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.8 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.7 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.6 2000/04/19 11:21:44 os
+ UNICODE
+
+ Revision 1.5 1997/11/21 10:33:20 MA
+ includes
+
+
+ Rev 1.4 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.3 13 Nov 1997 11:38:44 TRI
+ includes wegen Internal Compiler Error umgestellt
+
+ Rev 1.2 03 Nov 1997 14:00:16 MA
+ precomp entfernt
+
+ Rev 1.1 05 Sep 1997 12:36:00 MH
+ chg: header
+
+ Rev 1.0 03 Sep 1997 14:51:20 MBA
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
diff --git a/sw/source/ui/web/wtextsh.cxx b/sw/source/ui/web/wtextsh.cxx
new file mode 100644
index 000000000000..258a6c6765a7
--- /dev/null
+++ b/sw/source/ui/web/wtextsh.cxx
@@ -0,0 +1,207 @@
+/*************************************************************************
+ *
+ * $RCSfile: wtextsh.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "hintids.hxx"
+
+#ifndef _SFXOBJFACE_HXX //autogen
+#include <sfx2/objface.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx> //***
+#endif
+#ifndef __SBX_SBXVARIABLE_HXX //autogen
+#include <svtools/sbxvar.hxx>
+#endif
+#ifndef _SBASLTID_HRC //autogen
+#include <offmgr/sbasltid.hrc>
+#endif
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "view.hxx"
+#include "wtextsh.hxx"
+#include "basesh.hxx"
+#include "globals.hrc"
+#include "popup.hrc"
+#include "shells.hrc"
+#include "web.hrc"
+
+#define C2S(cChar) UniString::CreateFromAscii(cChar)
+
+// STATIC DATA -----------------------------------------------------------
+#define SwWebTextShell
+#define Paragraph
+#define HyphenZone
+#define TextFont
+#define DropCap
+#include "itemdef.hxx"
+#include "swslots.hxx"
+
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SFX_IMPL_INTERFACE(SwWebTextShell, SwBaseShell, SW_RES(STR_SHELLNAME_WEBTEXT))
+{
+ SFX_POPUPMENU_REGISTRATION(SW_RES(MN_WEB_TEXT_POPUPMENU));
+ SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBTEXT_TOOLBOX));
+ SFX_OBJECTMENU_REGISTRATION(SID_OBJECTMENU0, SW_RES(MN_OBJECTMENU_WEBTEXT));
+ SFX_CHILDWINDOW_REGISTRATION(FN_EDIT_FORMULA);
+ SFX_CHILDWINDOW_REGISTRATION(SID_INSERT_DIAGRAM);
+ SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_FIELD);
+}
+
+TYPEINIT1(SwWebTextShell, SwTextShell)
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+SwWebTextShell::SwWebTextShell(SwView &rView) :
+ SwTextShell(rView)
+{
+ SetHelpId(SW_WEBTEXTSHELL);
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+SwWebTextShell::~SwWebTextShell()
+{
+}
+
+
+/*------------------------------------------------------------------------
+
+ $Log: not supported by cvs2svn $
+ Revision 1.17 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.16 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.15 2000/05/09 14:43:32 os
+ BASIC interface partially removed
+
+ Revision 1.14 2000/04/19 11:21:44 os
+ UNICODE
+
+ Revision 1.13 2000/02/01 10:00:38 os
+ #72282# SwWebBaseShell removed
+
+ Revision 1.12 2000/02/01 09:50:54 os
+ #72282# SwWebBaseShell removed
+
+ Revision 1.11 2000/01/31 20:19:38 jp
+ Bug #72455#,#72456# Text-PopupMenue moved into swmn.hrc, Web-Textshell with own PopupMenu
+
+ Revision 1.10 2000/01/18 11:57:17 os
+ #71740# interface inheritance corrected
+
+ Revision 1.9 1997/11/21 10:33:20 MA
+ includes
+
+
+ Rev 1.8 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.7 03 Nov 1997 14:00:14 MA
+ precomp entfernt
+
+ Rev 1.6 03 Sep 1997 10:50:40 MBA
+ swslots.hxx statt wswslots.hxx
+
+ Rev 1.5 29 Aug 1997 12:05:54 MH
+ chg: header
+
+ Rev 1.4 05 Aug 1997 16:41:48 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.3 31 Jul 1997 14:19:20 MH
+ chg: header
+
+ Rev 1.2 28 Jan 1997 16:33:40 OS
+ Name der Shell geaendert
+
+ Rev 1.1 24 Jan 1997 14:55:54 OS
+ eigene TextToolBox
+
+ Rev 1.0 23 Jan 1997 16:18:08 OS
+ Initial revision.
+
+
+------------------------------------------------------------------------*/
+
diff --git a/sw/source/ui/web/wview.cxx b/sw/source/ui/web/wview.cxx
new file mode 100644
index 000000000000..a4c1639069c3
--- /dev/null
+++ b/sw/source/ui/web/wview.cxx
@@ -0,0 +1,523 @@
+/*************************************************************************
+ *
+ * $RCSfile: wview.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:51 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "itemdef.hxx"
+
+#ifndef _SVX_SRCHITEM_HXX
+#include <svx/srchitem.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _SFX_TEMPLDLG_HXX //autogen
+#include <sfx2/templdlg.hxx>
+#endif
+#ifndef _SVX_SRCHDLG_HXX //autogen
+#include <svx/srchdlg.hxx>
+#endif
+#ifndef _IDETEMP_HXX //autogen
+#include <basctl/idetemp.hxx>
+#endif
+#ifndef _SBX_SBXOBJECT_HXX //autogen
+#include <svtools/sbxobj.hxx>
+#endif
+#ifndef _UIVWIMP_HXX
+#include <uivwimp.hxx>
+#endif
+#ifndef _SVX_FMSHELL_HXX //autogen
+#include <svx/fmshell.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+
+
+#ifndef _SWMODULE_HXX //autogen
+#include <swmodule.hxx>
+#endif
+#ifndef _UNOTXVW_HXX //autogen
+#include <unotxvw.hxx>
+#endif
+#include "swtypes.hxx"
+#include "cmdid.h"
+#include "globals.hrc"
+#include "wrtsh.hxx"
+#include "edtwin.hxx"
+#include "wgrfsh.hxx"
+#include "wfrmsh.hxx"
+#include "wolesh.hxx"
+#include "wtabsh.hxx"
+#include "wlistsh.hxx"
+#include "wformsh.hxx"
+#include "wtextsh.hxx"
+#include "barcfg.hxx"
+#include "doc.hxx"
+
+// EIGENTLICH nicht moeglich !!
+#include "beziersh.hxx"
+#include "drawsh.hxx"
+#include "drwtxtsh.hxx"
+
+#include "wview.hxx"
+#include "wdocsh.hxx"
+#include "web.hrc"
+#include "shells.hrc"
+
+#define SwWebView
+#define SearchAttributes
+#define ReplaceAttributes
+#define SearchSettings
+#define _ExecSearch ExecSearch
+#define _StateSearch StateSearch
+#define Frames
+#define Graphics
+#define OLEObjects
+#define Controls
+#define Text
+#define Frame
+#define Graphic
+#define Object
+#define Draw
+#define DrawText
+#define TextInTable
+#define ListInText
+#define ListInTable
+#define Page
+#include <svx/svxslots.hxx>
+#include "swslots.hxx"
+
+
+SFX_IMPL_VIEWFACTORY(SwWebView, SW_RES(STR_NONAME))
+{
+ SFX_VIEW_REGISTRATION(SwWebDocShell);
+}
+
+
+SFX_IMPL_INTERFACE( SwWebView, SwView, SW_RES(RID_WEBTOOLS_TOOLBOX) )
+{
+ SFX_CHILDWINDOW_REGISTRATION(SfxTemplateDialogWrapper::GetChildWindowId());
+ SFX_CHILDWINDOW_REGISTRATION(SvxSearchDialogWrapper::GetChildWindowId());
+ SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_TOOLS|
+ SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
+ SW_RES(RID_WEBTOOLS_TOOLBOX) );
+}
+
+TYPEINIT1(SwWebView,SwView)
+
+/*-----------------22.01.97 14.27-------------------
+
+--------------------------------------------------*/
+
+
+SwWebView::SwWebView(SfxViewFrame* pFrame, SfxViewShell* pShell) :
+ SwView(pFrame, pShell)
+{
+}
+
+/*-----------------22.01.97 14.27-------------------
+
+--------------------------------------------------*/
+
+
+SwWebView::~SwWebView()
+{
+}
+
+/*-----------------23.01.97 09.01-------------------
+
+--------------------------------------------------*/
+
+
+void SwWebView::SelectShell()
+{
+ // Entscheidung, ob UpdateTable gerufen werden muss
+ BOOL bUpdateTable = FALSE;
+ const SwFrmFmt* pCurTableFmt = GetWrtShell().GetTableFmt();
+ if(pCurTableFmt && pCurTableFmt != GetLastTblFrmFmt())
+ {
+ bUpdateTable = TRUE; // kann erst spaeter ausgefuehrt werden
+ }
+ SetLastTblFrmFmt(pCurTableFmt);
+ //SEL_TBL und SEL_TBL_CELLS koennen verodert sein!
+ int nNewSelectionType = (GetWrtShell().GetSelectionType()
+ & ~SwWrtShell::SEL_TBL_CELLS);
+
+ int nSelectionType = GetSelectionType();
+ if ( nNewSelectionType == nSelectionType )
+ {
+ GetViewFrame()->GetBindings().InvalidateAll( FALSE );
+ if ( nSelectionType & SwWrtShell::SEL_OLE ||
+ nSelectionType & SwWrtShell::SEL_GRF )
+ //Fuer Grafiken und OLE kann sich natuerlich das Verb aendern!
+ ImpSetVerb( nNewSelectionType );
+ }
+ else
+ {
+
+ // DELETEZ(pxSelectionObj); //Selektionsobjekt loeschen
+ SfxDispatcher &rDispatcher = *GetViewFrame()->GetDispatcher();
+ SwToolbarConfigItem *pBarCfg = SW_MOD()->GetWebToolbarConfig();
+
+ if( GetCurShell() )
+ {
+ rDispatcher.Flush(); // alle gecachten Shells wirklich loeschen
+
+ //Zur alten Selektion merken welche Toolbar sichtbar war
+ USHORT nId = rDispatcher.GetObjectBarId( SFX_OBJECTBAR_OBJECT );
+ if ( nId )
+ pBarCfg->SetTopToolbar( nSelectionType, nId );
+
+ SfxShell *pSfxShell;
+ USHORT i;
+ for ( i = 0; TRUE; ++i )
+ {
+ pSfxShell = rDispatcher.GetShell( i );
+ if ( !(pSfxShell->ISA( SwBaseShell ) ||
+ pSfxShell->ISA( SwDrawTextShell )) )
+ break;
+ }
+ pSfxShell = rDispatcher.GetShell( --i );
+ ASSERT( pSfxShell, "My Shell ist lost in space" );
+ rDispatcher.Pop( *pSfxShell, SFX_SHELL_POP_UNTIL | SFX_SHELL_POP_DELETE);
+ }
+
+ FASTBOOL bInitFormShell = FALSE;
+ if( !GetFormShell() )
+ {
+ bInitFormShell = TRUE;
+ SetFormShell( new FmFormShell( this ) );
+ rDispatcher.Push( *GetFormShell() );
+ }
+
+ FASTBOOL bSetExtInpCntxt = FALSE;
+ nSelectionType = nNewSelectionType;
+ SetSelectionType( nSelectionType );
+ ShellModes eShellMode;
+
+ if ( nSelectionType & SwWrtShell::SEL_OLE )
+ {
+ eShellMode = SEL_OBJECT;
+ SetShell( new SwWebOleShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_FRM
+ || nSelectionType & SwWrtShell::SEL_GRF)
+ {
+ eShellMode = SEL_FRAME;
+ SetShell( new SwWebFrameShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ if(nSelectionType & SwWrtShell::SEL_GRF )
+ {
+ eShellMode = SEL_GRAPHIC;
+ SetShell( new SwWebGrfShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_FRM )
+ {
+ eShellMode = SEL_FRAME;
+ SetShell( new SwWebFrameShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_DRW )
+ {
+ eShellMode = SEL_DRAW;
+ SetShell( new SwDrawShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ if ( nSelectionType & SwWrtShell::SEL_BEZ )
+ {
+ eShellMode = SEL_BEZIER;
+ SetShell( new SwBezierShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_DRW_FORM )
+ {
+ eShellMode = SEL_DRAW_FORM;
+ SetShell( new SwWebDrawFormShell( *this ));
+
+ rDispatcher.Push( *GetCurShell() );
+ }
+ else if ( nSelectionType & SwWrtShell::SEL_DRW_TXT )
+ {
+ eShellMode = SEL_DRAWTEXT;
+ rDispatcher.Push( *(new SwBaseShell( *this )) );
+ SetShell( new SwDrawTextShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+ else
+ {
+ bSetExtInpCntxt = TRUE;
+ eShellMode = SEL_TEXT;
+ if ( nSelectionType & SwWrtShell::SEL_NUM )
+ {
+ eShellMode = SEL_LIST_TEXT;
+ SetShell( new SwWebListShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+ SetShell( new SwWebTextShell(*this));
+ rDispatcher.Push( *GetCurShell() );
+ if ( nSelectionType & SwWrtShell::SEL_TBL )
+ {
+ eShellMode = eShellMode == SEL_LIST_TEXT ? SEL_TABLE_LIST_TEXT
+ : SEL_TABLE_TEXT;
+ SetShell( new SwWebTableShell( *this ));
+ rDispatcher.Push( *GetCurShell() );
+ }
+ }
+ ImpSetVerb( nSelectionType );
+ GetViewImpl()->SetShellMode(eShellMode);
+
+ if( !GetDocShell()->IsReadOnly() )
+ {
+ if( bSetExtInpCntxt && GetWrtShell().HasReadonlySel() )
+ bSetExtInpCntxt = FALSE;
+
+ InputContext aCntxt( GetEditWin().GetInputContext() );
+ aCntxt.SetOptions( bSetExtInpCntxt
+ ? (aCntxt.GetOptions() |
+ ( INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT ))
+ : (aCntxt.GetOptions() & ~
+ ( INPUTCONTEXT_TEXT |
+ INPUTCONTEXT_EXTTEXTINPUT )) );
+ GetEditWin().SetInputContext( aCntxt );
+ }
+
+ //Zur neuen Selektion die Toolbar aktivieren, die auch beim letzten Mal
+ //aktiviert war
+ //Vorher muss ein Flush() sein, betrifft aber lt. MBA nicht das UI und ist
+ //kein Performance-Problem
+ rDispatcher.Flush();
+ USHORT nId = pBarCfg->GetTopToolbar( nSelectionType );
+ if ( USHRT_MAX != nId )
+ rDispatcher.ShowObjectBar( nId );
+
+ Point aPnt = GetEditWin().GetPointerPosPixel();
+ aPnt = GetEditWin().PixelToLogic(aPnt);
+ GetEditWin().UpdatePointer(aPnt);
+
+ if ( bInitFormShell && GetWrtShell().GetDrawView() )
+ GetFormShell()->SetView( PTR_CAST( FmFormView,
+ GetWrtShell().GetDrawView()));
+
+
+ }
+ GetViewImpl()->GetUNOObject_Impl()->NotifySelChanged();
+
+ //Guenstiger Zeitpunkt fuer die Kommunikation mit OLE-Objekten?
+ if ( GetDocShell()->GetDoc()->IsOLEPrtNotifyPending() )
+ GetDocShell()->GetDoc()->PrtOLENotify( FALSE );
+
+ //jetzt das Tabellen-Update
+ if(bUpdateTable)
+ GetWrtShell().UpdateTable();
+}
+
+/*------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.45 2000/09/18 16:06:20 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.44 2000/09/07 15:59:35 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.43 2000/09/04 11:46:58 tbe
+ basicide, isetbrw, si, vcdlged moved from svx to basctl
+
+ Revision 1.42 2000/08/08 13:47:37 os
+ #77423# separate graphic shell
+
+ Revision 1.41 2000/05/10 11:54:44 os
+ Basic API removed
+
+ Revision 1.40 1999/09/10 13:19:16 os
+ Chg: resource types removed
+
+ Revision 1.39 1999/08/05 17:25:16 JP
+ have to change: FmFormShell
+
+
+ Rev 1.38 05 Aug 1999 19:25:16 JP
+ have to change: FmFormShell
+
+ Rev 1.37 05 May 1999 11:23:30 OS
+ #63790# Tabellen-Update nur bei Bedarf rufen
+
+ Rev 1.36 08 Mar 1999 13:39:02 MA
+ #62792# OLE-Printer-Benachrichtigung vervollstaendigt
+
+ Rev 1.35 08 Feb 1999 12:51:58 OS
+ #61377# falsche DBG_ERRORs entsorgt
+
+ Rev 1.34 02 Feb 1999 13:16:28 JP
+ Bug #61335#: Schnistelle zu SwView geaendert
+
+ Rev 1.33 21 Oct 1998 11:40:00 OS
+ #58243# Objectbar aus der richtigen Konfiguration lesen
+
+ Rev 1.32 30 Jun 1998 13:02:08 MA
+ das war wohl grad etwas zu gruendlich
+
+ Rev 1.30 09 Jun 1998 15:33:32 OM
+ VC-Controls entfernt
+
+ Rev 1.29 08 Jun 1998 18:09:42 OM
+ Forms im HTML-Mode
+
+ Rev 1.28 12 May 1998 19:00:54 MA
+ schon mal Praeventiv die FormShell pushen
+
+ Rev 1.27 02 Apr 1998 10:07:18 MA
+ new: ToolbarCfg
+
+ Rev 1.26 11 Feb 1998 10:34:04 MA
+ #47035# und CopyCtor entfernt
+
+ Rev 1.25 16 Dec 1997 12:11:26 OS
+ Impl-Pointer fuer UNO
+
+ Rev 1.24 28 Nov 1997 14:46:38 MA
+ includes
+
+ Rev 1.23 21 Nov 1997 11:33:20 MA
+ includes
+
+ Rev 1.22 03 Nov 1997 14:00:14 MA
+ precomp entfernt
+
+ Rev 1.21 18 Sep 1997 14:02:04 OS
+ Pointer::GetPosPixel fuer VCL ersetzt
+
+ Rev 1.20 05 Sep 1997 12:36:00 MH
+ chg: header
+
+ Rev 1.19 03 Sep 1997 14:52:36 MBA
+ Neue WebShells
+
+ Rev 1.18 03 Sep 1997 10:51:30 MBA
+ swslots.hxx statt wswslots.hxx
+
+ Rev 1.17 05 Aug 1997 16:41:48 TJ
+ include svx/srchitem.hxx
+
+ Rev 1.16 08 Jul 1997 12:08:06 OM
+ Draw-Selektionsmodi aufgeraeumt
+
+ Rev 1.15 25 Jun 1997 13:35:52 OM
+ #40966# DrawBaseShell-Ptr wieder eingefuehrt
+
+ Rev 1.14 19 Jun 1997 16:39:24 MA
+ fix: reste vom DrawText-Umbau
+
+ Rev 1.13 18 Jun 1997 17:27:36 HJS
+ alte segmentierung raus
+
+ Rev 1.12 17 Jun 1997 15:43:12 MA
+ DrawTxtShell nicht von BaseShell ableiten + Opts
+
+ Rev 1.11 14 Apr 1997 16:18:00 OS
+ Search/ReplaceAttributes
+
+ Rev 1.10 10 Apr 1997 10:18:58 TRI
+ includes
+
+ Rev 1.9 09 Apr 1997 08:15:38 MA
+ includes
+
+ Rev 1.8 23 Feb 1997 15:06:26 OS
+ GetIcon ueberladen
+
+ Rev 1.7 03 Feb 1997 15:03:36 MA
+ chg: ListShell nach unten
+
+ Rev 1.6 31 Jan 1997 13:35:16 OS
+ neu: SwWebFrameShell
+
+ Rev 1.5 30 Jan 1997 11:07:24 OS
+ erweiterter View-Ctor
+
+ Rev 1.4 29 Jan 1997 12:52:18 OS
+ SelectShell: DrawCtrlShell nachgetragen
+
+ Rev 1.3 24 Jan 1997 14:54:28 OS
+ RID_WEBTOOLS_TOOLBOX
+
+ Rev 1.2 23 Jan 1997 17:37:24 OS
+ GetDispatcher nicht an der SwView aufrufen
+
+ Rev 1.1 23 Jan 1997 17:25:20 OS
+ Cast fuer SetDrawBaseShell
+
+ Rev 1.0 23 Jan 1997 16:17:26 OS
+ Initial revision.
+
+------------------------------------------------------------------------*/
+
+
+
diff --git a/sw/source/ui/wrtsh/delete.cxx b/sw/source/ui/wrtsh/delete.cxx
new file mode 100644
index 000000000000..c3cdd33f42c7
--- /dev/null
+++ b/sw/source/ui/wrtsh/delete.cxx
@@ -0,0 +1,504 @@
+/*************************************************************************
+ *
+ * $RCSfile: delete.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+
+
+inline void SwWrtShell::OpenMark()
+{
+ StartAllAction();
+ ResetCursorStack();
+ KillPams();
+ SetMark();
+}
+
+inline void SwWrtShell::CloseMark( BOOL bOkFlag )
+{
+ if( bOkFlag )
+ UpdateAttr();
+ else
+ SwapPam();
+
+ ClearMark();
+ EndAllAction();
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Zeile loeschen
+------------------------------------------------------------------------*/
+
+
+
+long SwWrtShell::DelLine()
+{
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ // alten Cursor merken
+ Push();
+ ClearMark();
+ SwCrsrShell::LeftMargin();
+ SetMark();
+ SwCrsrShell::RightMargin();
+//Warum soll hier noch ein Zeichen in der naechsten Zeile geloescht werden?
+// if(!IsEndOfPara())
+// SwCrsrShell::Right();
+ long nRet = Delete();
+ Pop(FALSE);
+ if( nRet )
+ UpdateAttr();
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelToStartOfLine()
+{
+ OpenMark();
+ SwCrsrShell::LeftMargin();
+ long nRet = Delete();
+ CloseMark( 0 != nRet );
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelToEndOfLine()
+{
+ OpenMark();
+ SwCrsrShell::RightMargin();
+ long nRet = Delete();
+ CloseMark( 0 != nRet );
+ return 1;
+}
+
+
+
+long SwWrtShell::DelLeft()
+{
+ // wenns denn ein Fly ist, wech damit
+ int nSelType = GetSelectionType();
+ const int nCmp = SEL_FRM | SEL_GRF | SEL_OLE | SEL_DRW;
+ if( nCmp & nSelType )
+ {
+ DelSelectedObj();
+ LeaveSelFrmMode();
+ UnSelectFrm();
+ nSelType = GetSelectionType();
+ if ( nCmp & nSelType )
+ {
+ EnterSelFrmMode();
+ GotoNextFly();
+ }
+ return 1L;
+ }
+
+ // wenn eine Selektion existiert, diese loeschen.
+ if ( IsSelection() )
+ {
+ //OS: wieder einmal Basic: ACT_KONTEXT muss vor
+ //EnterStdMode verlassen werden!
+ {
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ Delete();
+ UpdateAttr();
+ }
+ EnterStdMode();
+ return 1L;
+ }
+
+ // JP 29.06.95: nie eine davor stehende Tabelle loeschen.
+ BOOL bSwap = FALSE;
+ if( SwCrsrShell::IsSttPara() && !SwCrsrShell::IsCrsrInTbl() )
+ {
+ if( !SwCrsrShell::Left() )
+ return 0;
+ if( SwCrsrShell::IsCrsrInTbl() )
+ {
+ SwCrsrShell::Right();
+ return 0;
+ }
+ OpenMark();
+ SwCrsrShell::Right();
+ SwCrsrShell::SwapPam();
+ bSwap = TRUE;
+ }
+ else
+ {
+ OpenMark();
+ SwCrsrShell::Left();
+ }
+ long nRet = Delete();
+ if( !nRet && bSwap )
+ SwCrsrShell::SwapPam();
+ CloseMark( 0 != nRet );
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelRight(BOOL bDelFrm)
+{
+ // werden verodert, wenn Tabellenselektion vorliegt;
+ // wird hier auf SEL_TBL umgesetzt.
+ long nRet = 0;
+ int nSelection = GetSelectionType();
+ if(nSelection & SwWrtShell::SEL_TBL_CELLS)
+ nSelection = SwWrtShell::SEL_TBL;
+ if(nSelection & SwWrtShell::SEL_TXT)
+ nSelection = SwWrtShell::SEL_TXT;
+ switch( nSelection & ~(SEL_BEZ) )
+ {
+ case SEL_TXT:
+ case SEL_TBL:
+ case SEL_NUM:
+ // wenn eine Selektion existiert, diese loeschen.
+ if( IsSelection() )
+ {
+ //OS: wieder einmal Basic: ACT_KONTEXT muss vor
+ //EnterStdMode verlassen werden!
+ {
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ Delete();
+ UpdateAttr();
+ }
+ EnterStdMode();
+ nRet = 1L;
+ break;
+ }
+
+ if( SEL_TXT & nSelection && SwCrsrShell::IsSttPara() &&
+ SwCrsrShell::IsEndPara() && !IsCrsrInTbl() &&
+ SwCrsrShell::Right() )
+ {
+ BOOL bDelFull = 0 != IsCrsrInTbl();
+ SwCrsrShell::Left();
+
+ if( bDelFull )
+ {
+ DelFullPara();
+ UpdateAttr();
+ break;
+ }
+ }
+
+ OpenMark();
+ SwCrsrShell::Right();
+ nRet = Delete();
+ CloseMark( 0 != nRet );
+ break;
+
+ case SEL_FRM:
+ case SEL_GRF:
+ case SEL_OLE:
+ case SEL_DRW:
+ case SEL_DRW_TXT:
+ case SEL_DRW_FORM:
+ DelSelectedObj();
+ LeaveSelFrmMode();
+ UnSelectFrm();
+
+ if( IsFrmSelected() )
+ {
+ nSelection = GetSelectionType();
+ if ( SEL_FRM & nSelection || SEL_GRF & nSelection ||
+ SEL_OLE & nSelection || SEL_DRW & nSelection )
+ {
+ EnterSelFrmMode();
+ GotoNextFly();
+ }
+ }
+ nRet = 1;
+ break;
+ }
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelToEndOfPara()
+{
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ Push();
+ SetMark();
+ if( !MovePara(fnParaCurr,fnParaEnd))
+ {
+ Pop(FALSE);
+ return 0;
+ }
+ long nRet = Delete();
+ Pop(FALSE);
+ if( nRet )
+ UpdateAttr();
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelToStartOfPara()
+{
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ Push();
+ SetMark();
+ if( !MovePara(fnParaCurr,fnParaStart))
+ {
+ Pop(FALSE);
+ return 0;
+ }
+ long nRet = Delete();
+ Pop(FALSE);
+ if( nRet )
+ UpdateAttr();
+ return nRet;
+}
+/*
+ * alle Loeschoperationen sollten mit Find statt mit
+ * Nxt-/PrvDelim arbeiten, da letzteren mit Wrap Around arbeiten
+ * -- das ist wohl nicht gewuenscht.
+ */
+
+
+
+long SwWrtShell::DelToStartOfSentence()
+{
+ if(IsStartOfDoc())
+ return 0;
+ OpenMark();
+ long nRet = _BwdSentence() ? Delete() : 0;
+ CloseMark( 0 != nRet );
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelToEndOfSentence()
+{
+ if(IsEndOfDoc())
+ return 0;
+ OpenMark();
+ long nRet = _FwdSentence() ? Delete() : 0;
+ CloseMark( 0 != nRet );
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelNxtWord()
+{
+ if(IsEndOfDoc())
+ return 0;
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ EnterStdMode();
+ SetMark();
+ if(IsEndWrd())
+ _NxtWrd();
+ if(IsSttWrd() || IsEndPara())
+ _NxtWrd();
+ else
+ _EndWrd();
+
+ long nRet = Delete();
+ if( nRet )
+ UpdateAttr();
+ else
+ SwapPam();
+ ClearMark();
+ return nRet;
+}
+
+
+
+long SwWrtShell::DelPrvWord()
+{
+ if(IsStartOfDoc())
+ return 0;
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ EnterStdMode();
+ SetMark();
+ if( !IsSttWrd() || !_PrvWrd() )
+ {
+ if( IsEndWrd() )
+ {
+ if( _PrvWrd() )
+ {
+ // skip over all-1 spaces
+ short n = -1;
+ while( ' ' == GetChar( FALSE, n ))
+ --n;
+
+ if( ++n )
+ ExtendSelection( FALSE, -n );
+ }
+ }
+ else if( IsSttPara())
+ _PrvWrd();
+ else
+ _SttWrd();
+ }
+ long nRet = Delete();
+ if( nRet )
+ UpdateAttr();
+ else
+ SwapPam();
+ ClearMark();
+ return nRet;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.70 2000/09/18 16:06:26 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.69 2000/04/10 08:39:49 jp
+ Bug #74881#: DelPrvWord
+
+ Revision 1.68 1999/04/01 13:21:50 JP
+ Bug #64298#: DelRight - auch Controls usw. entfernen
+
+
+ Rev 1.67 01 Apr 1999 15:21:50 JP
+ Bug #64298#: DelRight - auch Controls usw. entfernen
+
+ Rev 1.66 05 Feb 1999 15:07:54 JP
+ Bug #61386#: DelRight unnoetigen Befehl entfernt
+
+ Rev 1.65 19 Jan 1999 22:53:46 JP
+ Task #58677#: Crsr in Readonly Bereichen zulassen
+
+ Rev 1.64 15 Jan 1999 15:43:28 JP
+ Bug #60917#: DelPrevWord korrigiert
+
+ Rev 1.63 09 Jun 1998 15:34:32 OM
+ VC-Controls entfernt
+
+ Rev 1.62 21 Apr 1998 17:36:28 OM
+ #49630 Keine Rahmenselektion nach Loeschung von Zeichenobjekten
+
+ Rev 1.61 24 Nov 1997 14:35:06 MA
+ includes
+
+ Rev 1.60 03 Nov 1997 14:02:54 MA
+ precomp entfernt
+
+ Rev 1.59 06 Mar 1997 09:22:58 OM
+ sel_drw_ctrl ergaenzt
+
+ Rev 1.58 05 Feb 1997 17:01:04 JP
+ Bug #35638#: DelRight in Zellen
+
+ Rev 1.57 03 Feb 1997 20:41:30 JP
+ DelRight: leeren TextNode vor Tabellen loeschen
+
+ Rev 1.56 22 Jan 1997 11:55:56 MA
+ opt: bSelection entfernt
+
+ Rev 1.55 29 Aug 1996 09:26:04 OS
+ includes
+
+ Rev 1.54 22 Jan 1996 16:28:50 OS
+ DelRight/Left: ACT_KONTEXT muss vor EnterStdMode enden wg. Shellumschaltung aus Basic Bug #24529#
+
+ Rev 1.53 24 Nov 1995 16:59:04 OM
+ PCH->PRECOMPILED
+
+ Rev 1.52 22 Sep 1995 11:45:48 JP
+ DelLeft: & und nicht | abfragen
+
+ Rev 1.51 10 Aug 1995 13:04:44 OS
+ DelLine: nur bis zum Zeilenende markieren und loeschen
+
+ Rev 1.50 05 Jul 1995 19:14:52 JP
+ Delete: mit Backspace keine Tabelle loeschen
+
+ Rev 1.49 29 Jun 1995 20:10:12 JP
+ DelLeft: keine Tabellen loeschen mit BACKSPACE
+
+ Rev 1.48 19 Jun 1995 09:53:44 MA
+ fix(13180): Del fuer Zeichenobjekte.
+
+ Rev 1.47 05 Apr 1995 19:47:38 OM
+ Bug in NumShell mit Delete gefixt
+
+ Rev 1.46 20 Dec 1994 11:53:44 MA
+ SS Drawing.
+
+ Rev 1.45 15 Dec 1994 20:32:04 SWG
+ *ARR* Ersetzungen, svmem, __far_data etc.
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/wrtsh/makefile.mk b/sw/source/ui/wrtsh/makefile.mk
new file mode 100644
index 000000000000..18ebddcd82ba
--- /dev/null
+++ b/sw/source/ui/wrtsh/makefile.mk
@@ -0,0 +1,111 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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 for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PRJNAME=sw
+TARGET=wrtsh
+
+AUTOSEG=true
+
+PROJECTPCH=ui_pch
+PDBTARGET=ui_pch
+PROJECTPCHSOURCE=..\ui_1st\ui_pch
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : $(PRJ)$/inc$/swpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/inc$/sw.mk
+
+# --- Files --------------------------------------------------------
+
+CXXFILES = \
+ move.cxx \
+ select.cxx \
+ wrtsh1.cxx \
+ wrtsh2.cxx \
+ wrtsh3.cxx \
+ wrtsh4.cxx \
+ delete.cxx \
+ wrtundo.cxx
+
+SRCFILES = \
+ wrtsh.src
+
+SLOFILES = \
+ $(SLO)$/move.obj \
+ $(SLO)$/select.obj \
+ $(SLO)$/wrtsh1.obj \
+ $(SLO)$/wrtsh2.obj \
+ $(SLO)$/wrtsh3.obj \
+ $(SLO)$/wrtsh4.obj \
+ $(SLO)$/delete.obj \
+ $(SLO)$/wrtundo.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/wrtsh1.obj \
+
+# --- Tagets -------------------------------------------------------
+
+.INCLUDE : target.mk
+
diff --git a/sw/source/ui/wrtsh/move.cxx b/sw/source/ui/wrtsh/move.cxx
new file mode 100644
index 000000000000..b84034fed9ee
--- /dev/null
+++ b/sw/source/ui/wrtsh/move.cxx
@@ -0,0 +1,823 @@
+/*************************************************************************
+ *
+ * $RCSfile: move.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+/* Immer:
+ - Zuruecksetzen des Cursorstacks
+ - Timer nachtriggern
+ - gfs. GCAttr
+
+ bei Selektion
+ - SttSelect()
+
+ sonst
+ - EndSelect()
+ */
+
+const long nReadOnlyScrollOfst = 10;
+
+class ShellMoveCrsr
+{
+ SwWrtShell* pSh;
+ BOOL bAct;
+public:
+ inline ShellMoveCrsr( SwWrtShell* pWrtSh, FASTBOOL bSel )
+ {
+ bAct = !pWrtSh->ActionPend() && (pWrtSh->GetFrmType(0,FALSE) & FRMTYPE_FLY_ANY);
+ ( pSh = pWrtSh )->MoveCrsr( BOOL(bSel) );
+ pWrtSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_HYPERLINK_GETLINK);
+ }
+ inline ~ShellMoveCrsr()
+ {
+ if( bAct )
+ {
+ //Die Action wird fuer das Scrollen in "einabsaetzigen" Rahmen mit
+ //fester Hoehe gebraucht.
+ pSh->StartAllAction();
+ pSh->EndAllAction();
+ }
+ }
+};
+
+void SwWrtShell::MoveCrsr( FASTBOOL bWithSelect )
+{
+ ResetCursorStack();
+ if ( IsGCAttr() )
+ {
+ GCAttr();
+ ClearGCAttr();
+ }
+ if ( bWithSelect )
+ SttSelect();
+ else
+ {
+ EndSelect();
+ (this->*fnKillSel)( 0, FALSE );
+ }
+}
+
+FASTBOOL SwWrtShell::SimpleMove( FNSimpleMove FnSimpleMove, FASTBOOL bSelect )
+{
+ FASTBOOL nRet;
+ if( bSelect )
+ {
+ SttCrsrMove();
+ MoveCrsr( TRUE );
+ nRet = (this->*FnSimpleMove)();
+ EndCrsrMove();
+ }
+ else if( 0 != ( nRet = (this->*FnSimpleMove)() ) )
+ MoveCrsr( FALSE );
+ return nRet;
+}
+
+
+FASTBOOL SwWrtShell::Left( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
+{
+ if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ {
+ Point aTmp( VisArea().Pos() );
+ aTmp.X() -= VisArea().Width() * nReadOnlyScrollOfst / 100;
+ rView.SetVisArea( aTmp );
+ return TRUE;
+ }
+ else
+ {
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::Left( nCount );
+ }
+}
+
+
+
+FASTBOOL SwWrtShell::Right( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
+{
+ if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ {
+ Point aTmp( VisArea().Pos() );
+ aTmp.X() += VisArea().Width() * nReadOnlyScrollOfst / 100;
+ aTmp.X() = rView.SetHScrollMax( aTmp.X() );
+ rView.SetVisArea( aTmp );
+ return TRUE;
+ }
+ else
+ {
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::Right( nCount );
+ }
+}
+
+
+
+FASTBOOL SwWrtShell::Up( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
+{
+ if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ {
+ Point aTmp( VisArea().Pos() );
+ aTmp.Y() -= VisArea().Height() * nReadOnlyScrollOfst / 100;
+ rView.SetVisArea( aTmp );
+ return TRUE;
+ }
+ else
+ {
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::Up( nCount );
+ }
+}
+
+
+
+FASTBOOL SwWrtShell::Down( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
+{
+ if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ {
+ Point aTmp( VisArea().Pos() );
+ aTmp.Y() += VisArea().Height() * nReadOnlyScrollOfst / 100;
+ aTmp.Y() = rView.SetVScrollMax( aTmp.Y() );
+ rView.SetVisArea( aTmp );
+ return TRUE;
+ }
+ else
+ {
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::Down( nCount );
+ }
+}
+
+
+
+FASTBOOL SwWrtShell::LeftMargin( FASTBOOL bSelect, FASTBOOL bBasicCall )
+{
+ if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ {
+ Point aTmp( VisArea().Pos() );
+ aTmp.X() = DOCUMENTBORDER;
+ rView.SetVisArea( aTmp );
+ return TRUE;
+ }
+ else
+ {
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::LeftMargin();
+ }
+}
+
+
+
+FASTBOOL SwWrtShell::RightMargin( FASTBOOL bSelect, FASTBOOL bBasicCall )
+{
+ if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ {
+ Point aTmp( VisArea().Pos() );
+ aTmp.X() = GetDocSize().Width() - VisArea().Width() + DOCUMENTBORDER;
+ if( DOCUMENTBORDER > aTmp.X() )
+ aTmp.X() = DOCUMENTBORDER;
+ rView.SetVisArea( aTmp );
+ return TRUE;
+ }
+ else
+ {
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::RightMargin(bBasicCall);
+ }
+}
+
+
+
+BOOL SwWrtShell::GoStart( BOOL bKeepArea, BOOL *pMoveTable,
+ BOOL bSelect, BOOL bDontMoveRegion )
+{
+ if ( IsCrsrInTbl() )
+ {
+ const BOOL bBoxSelection = HasBoxSelection();
+ if ( !bSelect )
+ EnterStdMode();
+ else
+ SttSelect();
+ // Tabellenzelle?
+ if ( !bBoxSelection && (MoveSection( fnSectionCurr, fnSectionStart)
+ || bDontMoveRegion))
+ {
+ if ( pMoveTable )
+ *pMoveTable = FALSE;
+ return TRUE;
+ }
+ if( MoveTable( fnTableCurr, fnTableStart ) || bDontMoveRegion )
+ {
+ if ( pMoveTable )
+ *pMoveTable = TRUE;
+ return TRUE;
+ }
+ else if( bBoxSelection && pMoveTable )
+ {
+ // JP 09.01.96: wir haben eine Boxselektion (oder leere Zelle)
+ // und wollen selektieren (pMoveTable wird im
+ // SelAll gesetzt). Dann darf die Tabelle nicht
+ // verlassen werden; sonst ist keine Selektion der
+ // gesamten Tabelle moeglich!
+ *pMoveTable = TRUE;
+ return TRUE;
+ }
+ }
+
+ if ( !bSelect )
+ EnterStdMode();
+ else
+ SttSelect();
+ const USHORT nFrmType = GetFrmType(0,FALSE);
+ if ( FRMTYPE_FLY_ANY & nFrmType )
+ {
+ if( MoveSection( fnSectionCurr, fnSectionStart ) )
+ return TRUE;
+ else if ( FRMTYPE_FLY_FREE & nFrmType || bDontMoveRegion )
+ return FALSE;
+ }
+ if(( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FOOTNOTE ) & nFrmType )
+ {
+ if ( MoveSection( fnSectionCurr, fnSectionStart ) )
+ return TRUE;
+ else if ( bKeepArea )
+ return TRUE;
+ }
+ // Bereiche ???
+ return SwCrsrShell::MoveRegion( fnRegionCurrAndSkip, fnRegionStart ) ||
+ SwCrsrShell::SttDoc();
+}
+
+
+
+BOOL SwWrtShell::GoEnd(BOOL bKeepArea, BOOL *pMoveTable)
+{
+ if ( pMoveTable && *pMoveTable )
+ return MoveTable( fnTableCurr, fnTableEnd );
+
+ if ( IsCrsrInTbl() )
+ {
+ if ( MoveSection( fnSectionCurr, fnSectionEnd ) ||
+ MoveTable( fnTableCurr, fnTableEnd ) )
+ return TRUE;
+ }
+ else
+ {
+ const USHORT nFrmType = GetFrmType(0,FALSE);
+ if ( FRMTYPE_FLY_ANY & nFrmType )
+ {
+ if ( MoveSection( fnSectionCurr, fnSectionEnd ) )
+ return TRUE;
+ else if ( FRMTYPE_FLY_FREE & nFrmType )
+ return FALSE;
+ }
+ if(( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FOOTNOTE ) & nFrmType )
+ {
+ if ( MoveSection( fnSectionCurr, fnSectionEnd) )
+ return TRUE;
+ else if ( bKeepArea )
+ return TRUE;
+ }
+ }
+ // Bereiche ???
+ return SwCrsrShell::MoveRegion( fnRegionCurrAndSkip, fnRegionEnd ) ||
+ SwCrsrShell::EndDoc();
+}
+
+
+
+FASTBOOL SwWrtShell::SttDoc( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return GoStart(FALSE, 0, bSelect );
+}
+
+
+
+FASTBOOL SwWrtShell::EndDoc( FASTBOOL bSelect)
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return GoEnd();
+}
+
+
+FASTBOOL SwWrtShell::SttNxtPg( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePage( fnPageNext, fnPageStart );
+}
+
+
+
+FASTBOOL SwWrtShell::SttPrvPg( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePage( fnPagePrev, fnPageStart );
+}
+
+
+
+FASTBOOL SwWrtShell::EndNxtPg( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePage( fnPageNext, fnPageEnd );
+}
+
+
+
+FASTBOOL SwWrtShell::EndPrvPg( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePage( fnPagePrev, fnPageEnd );
+}
+
+
+
+FASTBOOL SwWrtShell::SttPg( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePage( fnPageCurr, fnPageStart );
+}
+
+
+
+FASTBOOL SwWrtShell::EndPg( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePage( fnPageCurr, fnPageEnd );
+}
+
+
+
+FASTBOOL SwWrtShell::SttPara( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePara( fnParaCurr, fnParaStart );
+}
+
+
+
+FASTBOOL SwWrtShell::EndPara( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return MovePara(fnParaCurr,fnParaEnd);
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Spaltenweises Springen
+ Parameter: mit oder ohne SSelection
+ Return: Erfolg oder Misserfolg
+------------------------------------------------------------------------*/
+
+
+
+FASTBOOL SwWrtShell::StartOfColumn( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect);
+ return MoveColumn(fnColumnCurr, fnColumnStart);
+}
+
+
+
+FASTBOOL SwWrtShell::EndOfColumn( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect);
+ return MoveColumn(fnColumnCurr, fnColumnEnd);
+}
+
+
+
+FASTBOOL SwWrtShell::StartOfNextColumn( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect);
+ return MoveColumn( fnColumnNext, fnColumnStart);
+}
+
+
+
+FASTBOOL SwWrtShell::EndOfNextColumn( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect);
+ return MoveColumn(fnColumnNext, fnColumnEnd);
+}
+
+
+
+FASTBOOL SwWrtShell::StartOfPrevColumn( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect);
+ return MoveColumn(fnColumnPrev, fnColumnStart);
+}
+
+
+
+FASTBOOL SwWrtShell::EndOfPrevColumn( FASTBOOL bSelect )
+{
+ ShellMoveCrsr aTmp( this, bSelect);
+ return MoveColumn(fnColumnPrev, fnColumnEnd);
+}
+
+
+
+BOOL SwWrtShell::PushCrsr(SwTwips lOffset, BOOL bSelect)
+{
+ BOOL bDiff = FALSE;
+ SwRect aOldRect( GetCharRect() ), aTmpArea( VisArea() );
+
+ //bDestOnStack besagt, ob ich den Cursor nicht an die aktuelle Position
+ //setzen konnte, da in diesem Bereich kein Inhalt vorhanden ist.
+ if( !bDestOnStack )
+ {
+ Point aPt( aOldRect.Center() );
+
+ if( !IsCrsrVisible() )
+ // set CrsrPos to top-/bottom left pos. So the pagescroll is not
+ // be dependent on the current cursor, but on the visarea.
+ aPt.Y() = aTmpArea.Top() + aTmpArea.Height() / 2;
+
+ aPt.Y() += lOffset;
+ aDest = GetCntntPos(aPt,lOffset > 0);
+ aDest.X() = aPt.X();
+ bDestOnStack = TRUE;
+ }
+
+ //falls wir eine Rahmenselektion hatten, muss diese nach dem
+ //fnSetCrsr entfernt werden und damit wir da wieder hinkommen
+ //auf dem Stack gemerkt werden.
+ BOOL bIsFrmSel = FALSE;
+
+ BOOL bIsObjSel = FALSE;
+
+ //Zielposition liegt jetzt innerhalb des sichtbaren Bereiches -->
+ //Cursor an die Zielposition setzen; merken, dass keine Ziel-
+ //position mehr auf dem Stack steht.
+ //Der neue sichtbare Bereich wird zuvor ermittelt.
+ aTmpArea.Pos().Y() += lOffset;
+ if( aTmpArea.IsInside(aDest) )
+ {
+ if( bSelect )
+ SttSelect();
+ else
+ EndSelect();
+
+ bIsFrmSel = IsFrmSelected();
+ bIsObjSel = 0 != IsObjSelected();
+
+ // Rahmenselektion aufheben
+ if( bIsFrmSel || bIsObjSel )
+ {
+ UnSelectFrm();
+ LeaveSelFrmMode();
+ if ( bIsObjSel )
+ {
+ GetView().SetDrawFuncPtr( NULL );
+ GetView().LeaveDrawCreate();
+ }
+
+ CallChgLnk();
+ }
+
+ (this->*fnSetCrsr)( &aDest, TRUE );
+
+ bDiff = aOldRect != GetCharRect();
+
+ if( bIsFrmSel )
+ {
+// CallChgLnk();
+ // bei Frames immer nur die obere Ecke nehmen, damit dieser
+ // wieder selektiert werden kann
+ aOldRect.SSize( 5, 5 );
+ }
+
+ // Zuruecksetzen des Dest. SPoint Flags
+ bDestOnStack = FALSE;
+ }
+
+ // Position auf den Stack; bDiff besagt, ob ein Unterschied zwischen
+ // der alten und der neuen Cursorposition besteht.
+ pCrsrStack = new CrsrStack( bDiff, bIsFrmSel, aOldRect.Center(),
+ lOffset, pCrsrStack );
+ return !bDestOnStack && bDiff;
+}
+
+
+
+BOOL SwWrtShell::PopCrsr(BOOL bUpdate, BOOL bSelect)
+{
+ if( 0 == pCrsrStack)
+ return FALSE;
+
+ const BOOL bValidPos = pCrsrStack->bValidCurPos;
+ if( bUpdate && bValidPos )
+ {
+ // falls ein Vorgaenger auf dem Stack steht, dessen Flag fuer eine
+ // gueltige Position verwenden.
+ SwRect aTmpArea(VisArea());
+ aTmpArea.Pos().Y() -= pCrsrStack->lOffset;
+ if( aTmpArea.IsInside( pCrsrStack->aDocPos ) )
+ {
+ if( bSelect )
+ SttSelect();
+ else
+ EndSelect();
+
+ (this->*fnSetCrsr)(&pCrsrStack->aDocPos, !pCrsrStack->bIsFrmSel);
+ if( pCrsrStack->bIsFrmSel && IsObjSelectable(pCrsrStack->aDocPos))
+ {
+ HideCrsr();
+ SelectObj( pCrsrStack->aDocPos );
+ EnterSelFrmMode( &pCrsrStack->aDocPos );
+ }
+ }
+ // Falls eine Verschiebung zwischen dem sichtbaren Bereich
+ // und der gemerkten Cursorpositionen auftritt, werden
+ // alle gemerkten Positionen weggeschmissen
+ else
+ {
+ _ResetCursorStack();
+ return FALSE;
+ }
+ }
+ CrsrStack *pTmp = pCrsrStack;
+ pCrsrStack = pCrsrStack->pNext;
+ delete pTmp;
+ if( 0 == pCrsrStack )
+ {
+ ePageMove = MV_NO;
+ bDestOnStack = FALSE;
+ }
+ return bValidPos;
+}
+
+/*
+ * Zuruecksetzen aller gepushten Cursorpositionen; dieser werden nicht
+ * zur Anzeige gebracht ( --> Kein Start-/EndAction!!)
+ */
+
+
+
+void SwWrtShell::_ResetCursorStack()
+{
+ CrsrStack *pTmp = pCrsrStack;
+ while(pCrsrStack)
+ {
+ pTmp = pCrsrStack->pNext;
+ delete pCrsrStack;
+ pCrsrStack = pTmp;
+ }
+ ePageMove = MV_NO;
+ bDestOnStack = FALSE;
+}
+/**************
+
+ falls kein Stack existiert --> Selektionen aufheben
+ falls Stack && Richtungswechsel
+ --> Cursor poppen und return
+ sonst
+ --> Cursor pushen
+ Cursor umsetzen
+
+***************/
+
+
+
+BOOL SwWrtShell::PageCrsr(SwTwips lOffset, BOOL bSelect)
+{
+ // nichts tun, wenn ein Offset von 0 angegeben wurde
+ if(!lOffset) return FALSE;
+ // Diente mal dazu, eine Neuformatierung fuer das Layout
+ // zu erzwingen.
+ // Hat so nicht funktioniert, da der Cursor nicht gesetzt
+ // wurde, da dies innerhalb einer Start- / EndActionklammerung
+ // nicht geschieht.
+ // Da am Ende nur ViewShell::EndAction() gerufen wird,
+ // findet auch hier keine Aktualisierung der Anzeige
+ // der Cursorposition statt.
+ // Die CrsrShell- Actionklammerung kann nicht verwendet werden,
+ // da sie immer zu einer Anzeige des Cursors fuehrt, also auch,
+ // wenn nach dem Blaettern in einen Bereich ohne gueltige Position
+ // geblaettert wurde.
+ // ViewShell::StartAction();
+ PageMove eDir = lOffset > 0? MV_PAGE_DOWN: MV_PAGE_UP;
+ // Richtungswechsel und Stack vorhanden
+ if( eDir != ePageMove && ePageMove != MV_NO && PopCrsr( TRUE, bSelect ))
+ return TRUE;
+
+ const BOOL bRet = PushCrsr(lOffset, bSelect);
+ ePageMove = eDir;
+ return bRet;
+}
+
+
+
+BOOL SwWrtShell::GotoPage(USHORT nPage, BOOL bRecord)
+{
+ ShellMoveCrsr aTmp( this, FALSE);
+ if( SwCrsrShell::GotoPage(nPage) && bRecord)
+ {
+ if(IsSelFrmMode())
+ {
+ UnSelectFrm();
+ LeaveSelFrmMode();
+ }
+ return TRUE;
+ }
+ return FALSE;
+}
+
+
+
+FASTBOOL SwWrtShell::GotoBookmark( USHORT nPos, BOOL bSelect, BOOL bStart )
+{
+ ShellMoveCrsr aTmp( this, bSelect );
+ return SwCrsrShell::GotoBookmark( nPos, bStart );
+}
+
+
+
+FASTBOOL SwWrtShell::SelectTxtAttr( USHORT nWhich, const SwTxtAttr* pAttr )
+{
+ ShellMoveCrsr aTmp( this, TRUE );
+ return SwCrsrShell::SelectTxtAttr( nWhich, FALSE, pAttr );
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.100 2000/09/18 16:06:26 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.99 2000/09/07 15:59:35 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.98 2000/06/27 19:42:49 jp
+ Bug #70447#: select the current TOXMark if the EditDialog is open
+
+ Revision 1.97 1999/10/12 07:24:36 os
+ #69115# API parameter in GotoLeftRight/LRMargin
+
+ Revision 1.96 1999/10/06 12:58:10 jp
+ PushCrsr: if cursor not in visarea, thne use the visarea for new position
+
+ Revision 1.95 1998/11/27 13:59:32 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+
+ Rev 1.94 27 Nov 1998 14:59:32 AMA
+ Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
+
+ Rev 1.93 14 Jun 1998 13:46:24 MA
+ ein paar inlines mittels function pointer
+
+ Rev 1.92 04 May 1998 18:00:20 JP
+ Bug #49993#: IsSelOver darf nicht immer den Cursor verschieben; GotoBookmark mit ReturntWert
+
+ Rev 1.91 12 Feb 1998 20:12:22 JP
+ Left-/RightMargin: zus. Flag fuer BasicCall, im ReadOnlyCall an Anfang/Ende des Randes scrollen
+
+ Rev 1.90 24 Nov 1997 14:35:06 MA
+ includes
+
+ Rev 1.89 03 Nov 1997 14:02:54 MA
+ precomp entfernt
+
+ Rev 1.88 29 Jul 1997 09:24:26 OM
+ Hyperlink Statusmethode
+
+ Rev 1.87 12 Jun 1997 11:20:20 MA
+ chg: CursorTimer vorlaeufig entfernt
+
+ Rev 1.86 29 Apr 1997 16:30:56 AMA
+ New: Scrolling bei abgeschnittenen Absaetzen in Rahmen mit fester Hoehe.
+
+ Rev 1.85 06 Mar 1997 12:27:28 JP
+ Left/Right/Up/Down: bei API-Calls in ReadOnly Docs normale verhalten
+
+ Rev 1.84 18 Feb 1997 13:40:44 MA
+ new: Rahmen im Readonly editierbar
+
+ Rev 1.83 21 Nov 1996 16:48:52 AMA
+ Fix #33452#: Das GCAttr-Flag wandert von der WriterShell in die CrsrShell
+
+ Rev 1.82 30 Oct 1996 10:14:50 JP
+ Bug #32859#: PushCrsr - Rahmenselektin aufheben; PopCrsr: Rahmenselektion wieder erzeugen
+
+ Rev 1.81 01 Oct 1996 16:55:32 OM
+ Hyperlinks editieren
+
+ Rev 1.80 24 Sep 1996 12:33:38 MA
+ chg: Travelling fuer ReadOnly
+
+ Rev 1.79 29 Aug 1996 09:26:02 OS
+ includes
+
+ Rev 1.78 16 Aug 1996 10:26:08 OS
+ richtiges Verhalten bei SelAll
+
+ Rev 1.77 08 Aug 1996 15:51:50 JP
+ neu: SelectTextAttr - vom Attribut umspannten Bereich Selectieren
+
+ Rev 1.76 15 Jul 1996 16:31:54 OM
+ Bei Selektionsaenderung Slot invalidieren
+
+ Rev 1.75 10 May 1996 15:55:22 OS
+ GotoBookmark markiert jetzt immer bug #27690#
+
+ Rev 1.74 08 May 1996 12:58:44 OS
+ neu: GotoBookmark mit Select- und Start Flag
+
+ Rev 1.73 09 Jan 1996 09:46:58 JP
+ GoStart: an Dok-Anfang springen, wenn die 1. Box leer ist!
+
+ Rev 1.72 22 Dec 1995 20:17:38 JP
+ Bug 22611: Rahmenselecktion wird verlassen/wiederhergestellt - dadurch die richtigen Shells!
+
+ Rev 1.71 24 Nov 1995 16:59:08 OM
+ PCH->PRECOMPILED
+
+ Rev 1.70 23 Nov 1995 19:50:54 OS
+ +Fwd/BwdPara
+
+ Rev 1.69 30 Oct 1995 18:43:08 OS
+ Select-Param im EndPg auch auswerten
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/wrtsh/select.cxx b/sw/source/ui/wrtsh/select.cxx
new file mode 100644
index 000000000000..763068748765
--- /dev/null
+++ b/sw/source/ui/wrtsh/select.cxx
@@ -0,0 +1,1010 @@
+/*************************************************************************
+ *
+ * $RCSfile: select.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include <limits.h>
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _WORDSEL_HXX
+#include <svtools/wordsel.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _INITUI_HXX
+#include <initui.hxx>
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+
+#ifdef DEBUG
+#ifndef _PAM_HXX
+#include <pam.hxx>
+#endif
+#endif
+
+static long nStartDragX = 0, nStartDragY = 0;
+static BOOL bStartDrag = FALSE;
+
+BOOL SwWrtShell::SelNearestWrd()
+{
+ MV_KONTEXT(this);
+ if( !IsInWrd() && !IsEndWrd() && !IsSttWrd() )
+ PrvWrd();
+ if( IsEndWrd() )
+ Left();
+ return SelWrd();
+}
+
+
+
+BOOL SwWrtShell::SelWrd(const Point *pPt, BOOL )
+{
+ BOOL bRet;
+ {
+ MV_KONTEXT(this);
+ SttSelect();
+ bRet = SwCrsrShell::SelectWord( pPt );
+ }
+ EndSelect();
+ if( bRet )
+ {
+ bSelWrd = TRUE;
+ if(pPt)
+ aStart = *pPt;
+ }
+ return bRet;
+}
+
+/*
+BOOL SwWrtShell::SelSentence(const Point *pPt, BOOL )
+{
+ {
+ MV_KONTEXT(this);
+ ClearMark();
+ if(!_BwdSentence()) {
+ return FALSE;
+ }
+ SttSelect();
+ if(!_FwdSentence()) {
+ EndSelect();
+ return FALSE;
+ }
+ }
+ EndSelect();
+ return TRUE;
+}
+
+*/
+
+
+
+void SwWrtShell::SelLine(const Point *pPt, BOOL )
+{
+ {
+ MV_KONTEXT(this);
+ ClearMark();
+ SwCrsrShell::LeftMargin();
+ SttSelect();
+ SwCrsrShell::RightMargin();
+ }
+ EndSelect();
+ if(pPt)
+ aStart = *pPt;
+ bSelLn = TRUE;
+ bSelWrd = FALSE; // SelWord abschalten, sonst geht kein SelLine weiter
+}
+
+
+
+long SwWrtShell::SelAll()
+{
+ {
+ MV_KONTEXT(this);
+ BOOL bMoveTable = FALSE;
+ if( !HasWholeTabSelection() )
+ {
+ if ( IsSelection() && IsCrsrPtAtEnd() )
+ SwapPam();
+ Push();
+ BOOL bIsFullSel = !MoveSection( fnSectionCurr, fnSectionStart);
+ SwapPam();
+ bIsFullSel &= !MoveSection( fnSectionCurr, fnSectionEnd);
+ Pop(FALSE);
+ GoStart(TRUE, &bMoveTable, FALSE, !bIsFullSel);
+ }
+ else
+ {
+ EnterStdMode();
+ SwCrsrShell::SttDoc();
+ }
+ SttSelect();
+ GoEnd(TRUE, &bMoveTable);
+ }
+ EndSelect();
+ return 1;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Textsuche
+------------------------------------------------------------------------*/
+
+
+ULONG SwWrtShell::SearchPattern( const SearchParam& rParam,
+ SwDocPositions eStt, SwDocPositions eEnd,
+ FindRanges eFlags, int bReplace )
+{
+ // keine Erweiterung bestehender Selektionen
+ if(!(eFlags & FND_IN_SEL))
+ ClearMark();
+ return Find( rParam, eStt, eEnd, eFlags, bReplace );
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Suche nach Vorlagen
+------------------------------------------------------------------------*/
+
+
+
+ULONG SwWrtShell::SearchTempl( const String &rTempl,
+ SwDocPositions eStt, SwDocPositions eEnd,
+ FindRanges eFlags, const String* pReplTempl )
+{
+ // keine Erweiterung bestehender Selektionen
+ if(!(eFlags & FND_IN_SEL))
+ ClearMark();
+ SwTxtFmtColl *pColl = GetParaStyle(rTempl, SwWrtShell::GETSTYLE_CREATESOME);
+ SwTxtFmtColl *pReplaceColl = 0;
+ if( pReplTempl )
+ pReplaceColl = GetParaStyle(*pReplTempl, SwWrtShell::GETSTYLE_CREATESOME );
+
+ return Find(pColl? *pColl: GetDfltTxtFmtColl(),
+ eStt,eEnd,eFlags, pReplaceColl);
+}
+
+// Suche nach Attributen ----------------------------------------------------
+
+
+
+ULONG SwWrtShell::SearchAttr( const SfxItemSet& rFindSet, BOOL bNoColls,
+ SwDocPositions eStart, SwDocPositions eEnde,
+ FindRanges eFlags, const SearchParam* pParam,
+ const SfxItemSet* pReplaceSet )
+{
+ // Keine Erweiterung bestehender Selektionen
+ if (!(eFlags & FND_IN_SEL))
+ ClearMark();
+
+ // Suchen
+ return Find( rFindSet, bNoColls, eStart, eEnde, eFlags, pParam, pReplaceSet);
+}
+
+// ---------- Selektionsmodi ----------
+
+
+
+void SwWrtShell::PushMode()
+{
+ pModeStack = new ModeStack( pModeStack, bIns, bExtMode, bAddMode );
+}
+
+
+
+void SwWrtShell::PopMode()
+{
+ if ( 0 == pModeStack )
+ return;
+
+ if ( bExtMode && !pModeStack->bExt )
+ LeaveExtMode();
+ if ( bAddMode && !pModeStack->bAdd )
+ LeaveAddMode();
+ bIns = pModeStack->bIns;
+
+ ModeStack *pTmp = pModeStack->pNext;
+ delete pModeStack;
+ pModeStack = pTmp;
+}
+
+/*
+ * Zwei Methoden fuer das Cursorsetzen; die erste mappt auf die
+ * gleichnamige Methoden an der CursorShell, die zweite hebt
+ * zuerst alle Selektionen auf.
+ */
+
+
+
+long SwWrtShell::SetCrsr(const Point *pPt, BOOL bTextOnly)
+{
+ /*
+ * eine gfs. bestehende Selektion an der Position des
+ * Mausklicks aufheben
+ */
+ if(!IsInSelect() && ChgCurrPam(*pPt)) {
+ ClearMark();
+ }
+ return SwCrsrShell::SetCrsr(*pPt, bTextOnly);
+}
+
+
+long SwWrtShell::SetCrsrKillSel(const Point *pPt, BOOL bTextOnly )
+{
+ ACT_KONTEXT(this);
+ ResetSelect(pPt,FALSE);
+ return SwCrsrShell::SetCrsr(*pPt, bTextOnly);
+}
+
+
+
+void SwWrtShell::UnSelectFrm()
+{
+ // Rahmenselektion aufheben mit garantiert ungueltiger Position
+ Point aPt(LONG_MIN, LONG_MIN);
+ SelectObj(aPt);
+}
+
+/*
+ * Aufheben aller Selektionen
+ */
+
+
+
+long SwWrtShell::ResetSelect(const Point *,BOOL)
+{
+ if(IsSelFrmMode())
+ {
+ UnSelectFrm();
+ LeaveSelFrmMode();
+ }
+ else
+ {
+ /* ACT_KONTEXT() macht eine Action auf -
+ um im Basicablauf keine Probleme mit der
+ Shellumschaltung zu bekommen, darf
+ GetChgLnk().Call() erst nach
+ EndAction() gerufen werden.
+ */
+ {
+ ACT_KONTEXT(this);
+ bSelWrd = bSelLn = FALSE;
+ KillPams();
+ ClearMark();
+ fnKillSel = &SwWrtShell::Ignore;
+ fnSetCrsr = &SwWrtShell::SetCrsr;
+ }
+ /*
+ * nach dem Aufheben aller Selektionen koennte ein Update der
+ * Attr-Controls notwendig sein.
+ */
+ GetChgLnk().Call(this);
+ }
+ return 1;
+}
+
+
+
+/*
+ * tue nichts
+ */
+long SwWrtShell::Ignore(const Point *, BOOL ) {
+ return 1;
+}
+
+/*
+ * Start eines Selektionsvorganges.
+ */
+
+
+
+void SwWrtShell::SttSelect()
+{
+ if(bInSelect)
+ return;
+ if(!HasMark())
+ SetMark();
+ fnKillSel = &SwWrtShell::Ignore;
+ fnSetCrsr = &SwWrtShell::SetCrsr;
+ bInSelect = TRUE;
+}
+/*
+ * Ende eines Selektionsvorganges.
+ */
+
+
+
+void SwWrtShell::EndSelect()
+{
+ if(!bInSelect || bExtMode)
+ return;
+ bInSelect = FALSE;
+ (this->*fnLeaveSelect)(0,FALSE);
+ if(!bAddMode) {
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ fnKillSel = &SwWrtShell::ResetSelect;
+ }
+}
+/* Methode, um eine bestehende wortweise oder zeilenweise Selektion
+ * zu erweitern.
+ */
+
+inline BOOL operator<(const Point &rP1,const Point &rP2)
+{
+ return rP1.Y() < rP2.Y() || (rP1.Y() == rP2.Y() && rP1.X() < rP2.X());
+}
+
+
+
+long SwWrtShell::ExtSelWrd(const Point *pPt, BOOL )
+{
+ MV_KONTEXT(this);
+ if( IsTableMode() )
+ return 1;
+
+ // Bug 66823: actual crsr has in additional mode no selection?
+ // Then destroy the actual an go to prev, this will be expand
+ if( !HasMark() && GoPrevCrsr() )
+ {
+ BOOL bHasMark = HasMark(); // thats wrong!
+ GoNextCrsr();
+ if( bHasMark )
+ {
+ DestroyCrsr();
+ GoPrevCrsr();
+ }
+ }
+
+ // check the direction of the selection with the new point
+ BOOL bRet = FALSE, bMoveCrsr = TRUE, bToTop;
+ SwCrsrShell::SelectWord( &aStart ); // select the startword
+ SwCrsrShell::Push(); // save the cursor
+ SwCrsrShell::SetCrsr( *pPt ); // and check the direction
+
+ switch( SwCrsrShell::CompareCursor( StackMkCurrPt ))
+ {
+ case -1: bToTop = FALSE; break;
+ case 1: bToTop = TRUE; break;
+ default: bMoveCrsr = FALSE; break;
+ }
+
+ SwCrsrShell::Pop( FALSE ); // retore the saved cursor
+
+ if( bMoveCrsr )
+ {
+ // select to Top but cursor select to Bottom? or
+ // select to Bottom but cursor select to Top? --> swap the cursor
+ if( bToTop )
+ SwapPam();
+
+ SwCrsrShell::Push(); // save cur cursor
+ if( SwCrsrShell::SelectWord( pPt )) // select the current word
+ {
+ if( bToTop )
+ SwapPam();
+ Combine();
+ bRet = TRUE;
+ }
+ else
+ {
+ SwCrsrShell::Pop( FALSE );
+ if( bToTop )
+ SwapPam();
+ }
+ }
+ else
+ bRet = TRUE;
+ return bRet;
+}
+
+
+long SwWrtShell::ExtSelLn(const Point *pPt, BOOL )
+{
+ MV_KONTEXT(this);
+ SwCrsrShell::SetCrsr(*pPt);
+ if( IsTableMode() )
+ return 1;
+
+ // Bug 66823: actual crsr has in additional mode no selection?
+ // Then destroy the actual an go to prev, this will be expand
+ if( !HasMark() && GoPrevCrsr() )
+ {
+ BOOL bHasMark = HasMark(); // thats wrong!
+ GoNextCrsr();
+ if( bHasMark )
+ {
+ DestroyCrsr();
+ GoPrevCrsr();
+ }
+ }
+
+ // ggfs. den Mark der Selektion anpassen
+ BOOL bToTop = !IsCrsrPtAtEnd();
+ SwapPam();
+
+ // der "Mark" muss am Zeilenende/-anfang stehen
+ if( bToTop ? !IsAtRightMargin() : !IsAtLeftMargin() )
+ {
+ if( bToTop )
+ {
+ if( !IsEndPara() )
+ SwCrsrShell::Right();
+ SwCrsrShell::RightMargin();
+ }
+ else
+ SwCrsrShell::LeftMargin();
+ }
+ SwapPam();
+
+ return bToTop ? SwCrsrShell::LeftMargin() : SwCrsrShell::RightMargin();
+}
+
+
+/*
+ * zurueck in den Standard Mode: kein Mode, keine Selektionen.
+ */
+
+void SwWrtShell::EnterStdMode()
+{
+ if(bAddMode)
+ LeaveAddMode();
+ bExtMode = FALSE;
+ bInSelect = FALSE;
+ ResetSelect(0,FALSE);
+}
+
+/*
+ * Extended Mode
+ */
+
+
+
+void SwWrtShell::EnterExtMode()
+{
+ bExtMode = TRUE;
+ bAddMode = FALSE;
+ SttSelect();
+}
+
+
+
+void SwWrtShell::LeaveExtMode()
+{
+ bExtMode = FALSE;
+ EndSelect();
+}
+/*
+ * Ende einer Selektion; falls die Selektion leer ist,
+ * ClearMark().
+ */
+
+
+
+long SwWrtShell::SttLeaveSelect(const Point *, BOOL )
+{
+ if(SwCrsrShell::HasSelection() && !IsSelTblCells() && bClearMark) {
+ return 0;
+ }
+// if( IsSelTblCells() ) aSelTblLink.Call(this);
+ ClearMark();
+ return 1;
+}
+/*
+ * Verlassen des Selektionsmodus in Additional Mode
+ */
+
+
+
+long SwWrtShell::AddLeaveSelect(const Point *, BOOL )
+{
+ if(IsTableMode()) LeaveAddMode();
+ else if(SwCrsrShell::HasSelection())
+ CreateCrsr();
+ return 1;
+}
+/*
+ * Additional Mode
+ */
+
+
+
+void SwWrtShell::EnterAddMode()
+{
+ if(IsTableMode()) return;
+ fnLeaveSelect = &SwWrtShell::AddLeaveSelect;
+ fnKillSel = &SwWrtShell::Ignore;
+ fnSetCrsr = &SwWrtShell::SetCrsr;
+ bAddMode = TRUE;
+ bExtMode = FALSE;
+ if(SwCrsrShell::HasSelection())
+ CreateCrsr();
+}
+
+
+
+void SwWrtShell::LeaveAddMode()
+{
+ fnLeaveSelect = &SwWrtShell::SttLeaveSelect;
+ fnKillSel = &SwWrtShell::ResetSelect;
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ bAddMode = FALSE;
+}
+
+// Einfuegemodus
+
+
+
+void SwWrtShell::SetInsMode( BOOL bOn )
+{
+ bIns = bOn;
+ const SfxBoolItem aTmp( SID_ATTR_INSERT, bIns );
+ GetView().GetViewFrame()->GetBindings().SetState( aTmp );
+}
+
+/*
+ * Rahmen bearbeiten
+ */
+
+
+long SwWrtShell::BeginFrmDrag(const Point *pPt, BOOL)
+{
+ fnDrag = &SwFEShell::Drag;
+ if(bStartDrag)
+ {
+ Point aTmp( nStartDragX, nStartDragY );
+ SwFEShell::BeginDrag( &aTmp, FALSE );
+ }
+ else
+ SwFEShell::BeginDrag( pPt, FALSE );
+ return 1;
+}
+
+
+
+void SwWrtShell::EnterSelFrmMode(const Point *pPos)
+{
+ if(pPos)
+ {
+ nStartDragX = pPos->X();
+ nStartDragY = pPos->Y();
+ bStartDrag = TRUE;
+ }
+ bNoEdit = bLayoutMode = TRUE;
+ HideCrsr();
+
+ // gleicher Aufruf von BeginDrag an der SwFEShell
+ fnDrag = &SwWrtShell::BeginFrmDrag;
+ fnEndDrag = &SwWrtShell::UpdateLayoutFrm;
+ SwBaseShell::SetFrmMode( FLY_DRAG_START, this );
+}
+
+
+
+void SwWrtShell::LeaveSelFrmMode()
+{
+ fnDrag = &SwWrtShell::BeginDrag;
+ fnEndDrag = &SwWrtShell::EndDrag;
+ bLayoutMode = FALSE;
+ bStartDrag = FALSE;
+ Edit();
+ SwBaseShell::SetFrmMode( FLY_DRAG_END, this );
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Rahmengebundenes Macro ausfuehren
+------------------------------------------------------------------------*/
+
+
+
+IMPL_LINK( SwWrtShell, ExecFlyMac, void *, pFlyFmt )
+{
+ const SwFrmFmt *pFmt = pFlyFmt ? (SwFrmFmt*)pFlyFmt : GetFlyFrmFmt();
+ ASSERT(pFmt, kein FrameFormat.);
+ const SvxMacroItem &rFmtMac = pFmt->GetMacro();
+
+ if(rFmtMac.HasMacro(SW_EVENT_OBJECT_SELECT))
+ {
+ const SvxMacro &rMac = rFmtMac.GetMacro(SW_EVENT_OBJECT_SELECT);
+ if( IsFrmSelected() )
+ bLayoutMode = TRUE;
+ CallChgLnk();
+ ExecMacro( rMac );
+ }
+ return 0;
+}
+
+
+
+long SwWrtShell::UpdateLayoutFrm(const Point *pPt, BOOL )
+{
+ // voerst Dummy
+ SwFEShell::EndDrag( pPt, FALSE );
+ fnDrag = &SwWrtShell::BeginFrmDrag;
+ return 1;
+}
+
+/*
+ * Handler fuer das Togglen der Modi. Liefern alten Mode zurueck.
+ */
+
+
+
+long SwWrtShell::ToggleAddMode()
+{
+ bAddMode ? LeaveAddMode(): EnterAddMode();
+ return !bAddMode;
+}
+
+
+
+long SwWrtShell::ToggleExtMode()
+{
+ bExtMode ? LeaveExtMode() : EnterExtMode();
+ return !bExtMode;
+}
+/*
+ * Draggen im Standard Modus (Selektieren von Inhalt)
+ */
+
+
+
+long SwWrtShell::BeginDrag(const Point *pPt, BOOL )
+{
+ if(bSelWrd)
+ {
+ bInSelect = TRUE;
+ if( !IsCrsrPtAtEnd() )
+ SwapPam();
+
+ fnDrag = &SwWrtShell::ExtSelWrd;
+ fnSetCrsr = &SwWrtShell::Ignore;
+ }
+ else if(bSelLn)
+ {
+ bInSelect = TRUE;
+ fnDrag = &SwWrtShell::ExtSelLn;
+ fnSetCrsr = &SwWrtShell::Ignore;
+ }
+ else
+ {
+ fnDrag = &SwWrtShell::Drag;
+ SttSelect();
+ }
+
+ return 1;
+}
+
+
+
+long SwWrtShell::Drag(const Point *, BOOL )
+{
+ if( IsSelTblCells() )
+ aSelTblLink.Call(this);
+
+ return 1;
+}
+
+
+
+long SwWrtShell::EndDrag(const Point *pPt, BOOL )
+{
+ fnDrag = &SwWrtShell::BeginDrag;
+ if( IsExtSel() )
+ LeaveExtSel();
+
+ if( IsSelTblCells() )
+ aSelTblLink.Call(this);
+ EndSelect();
+ return 1;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Selektion einer Tabellenzeile / Spalte
+------------------------------------------------------------------------*/
+
+
+
+FASTBOOL SwWrtShell::SelectTableRow()
+{
+ if ( SelTblRow() )
+ {
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ fnKillSel = &SwWrtShell::ResetSelect;
+ return TRUE;
+ }
+ return FALSE;
+}
+
+
+
+FASTBOOL SwWrtShell::SelectTableCol()
+{
+ if ( SelTblCol() )
+ {
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ fnKillSel = &SwWrtShell::ResetSelect;
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Prueft, ob eine Wortselektion vorliegt.
+ Gemaess den Regeln fuer intelligentes Cut / Paste
+ werden umgebende Spaces rausgeschnitten.
+ Return: Liefert Art der Wortselektion zurueck.
+------------------------------------------------------------------------*/
+
+
+
+int SwWrtShell::IntelligentCut(int nSelection, BOOL bCut)
+{
+ // kein intelligentes Drag and Drop bei Mehrfachselektion
+ // es existieren mehrere Cursor, da ein zweiter bereits
+ // an die Zielposition gesetzt wurde
+ if( IsAddMode() || !(nSelection & SEL_TXT) )
+ return FALSE;
+
+ const sal_Unicode cFirst = GetChar(FALSE);
+ const sal_Unicode cLast = GetChar(TRUE, -1);
+ // wenn das erste und das letzte Zeichen kein Wortzeichen ist,
+ // ist kein Wort selektiert.
+ if( !WordSelection::IsNormalChar( cFirst ) ||
+ !WordSelection::IsNormalChar( cLast ) )
+ return NO_WORD;
+ const sal_Unicode cPrev = GetChar(FALSE, -1);
+ const sal_Unicode cNext = GetChar(TRUE);
+
+ int cWord = NO_WORD;
+ // ist ein Wort selektiert?
+ if(!cWord && cPrev && cNext &&
+ CH_TXTATR_BREAKWORD != cPrev && CH_TXTATR_INWORD != cPrev &&
+ CH_TXTATR_BREAKWORD != cNext && CH_TXTATR_INWORD != cNext &&
+ !WordSelection::IsNormalChar(cPrev) && !WordSelection::IsNormalChar(cNext))
+ cWord = WORD_NO_SPACE;
+ if(cWord == WORD_NO_SPACE && cPrev == ' ')
+ {
+ cWord = WORD_SPACE_BEFORE;
+ // Space davor loeschen
+ if(bCut)
+ {
+ Push();
+ if(IsCrsrPtAtEnd())
+ SwapPam();
+ ClearMark();
+ SetMark();
+ SwCrsrShell::Left();
+ SwFEShell::Delete();
+ Pop( FALSE );
+ }
+ }
+ else if(cWord == WORD_NO_SPACE && cNext == ' ')
+ {
+ cWord = WORD_SPACE_AFTER;
+ // Space dahinter loeschen
+ if(bCut) {
+ Push();
+ if(!IsCrsrPtAtEnd()) SwapPam();
+ ClearMark();
+ SetMark();
+ SwCrsrShell::Right();
+ SwFEShell::Delete();
+ Pop( FALSE );
+ }
+ }
+ return cWord;
+}
+/* fuer den Erhalt der Selektion wird nach SetMark() der Cursor
+ * nach links bewegt, damit er durch das Einfuegen von Text nicht
+ * verschoben wird. Da auf der CORE-Seite am aktuellen Cursor
+ * eine bestehende Selektion aufgehoben wird, wird der Cursor auf
+ * den Stack gepushed. Nach dem Verschieben werden sie wieder
+ * zusammengefasst. */
+
+
+
+#if 0
+long SwWrtShell::MoveText(const Point *pPt,BOOL)
+{
+ // ueber einer bestehenden Selektion kein D&D
+ if(ChgCurrPam(*pPt)) {
+ LeaveDDMode();
+ bTStart = bDD = FALSE;
+ return 0;
+ }
+ // Create-Crsr muss nicht immer sein !!
+ // im Add-Mode benutze den letzen, sonst erzeuge einen neuen
+ if(!IsAddMode()) SwCrsrShell::CreateCrsr();
+ SwCrsrShell::SetCrsr(*pPt);
+ // kein D&D auf andere Inhaltsformen als Text
+ const int nSelection = GetSelectionType();
+ if(SEL_TXT != GetCntType()) {
+ if(!IsAddMode()) {
+ SwCrsrShell::DestroyCrsr();
+ GoPrevCrsr();
+ }
+ LeaveDDMode();
+ bTStart = bDD = FALSE;
+ return 0;
+ }
+ // SSelection vor Start/ EndAction erfragen
+ StartUndo(UNDO_INSERT);
+ StartAllAction();
+ GoPrevCrsr();
+ const int cWord = IntelligentCut(nSelection);
+ GoNextCrsr();
+ const BOOL bInWrd = IsInWrd() || IsEndWrd();
+ const BOOL bSttWrd = IsSttWrd();
+ SwEditShell::Move();
+
+ // nach dem Move sind alle Crsr geloescht und eine SSelection
+ // umschliesst den verschobenen Bereich
+
+ if(bInWrd && ( cWord == WORD_SPACE_AFTER || cWord == WORD_SPACE_BEFORE)) {
+ if(!bSttWrd) SwapPam();
+ SwEditShell::Insert(' ');
+ if(!bSttWrd) SwapPam();
+ }
+ LeaveDDMode();
+ bTStart = bDD = FALSE;
+ EndAllAction();
+ EndUndo(UNDO_INSERT);
+ return 1;
+}
+#endif
+
+/*************************************************************************
+
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/wrtsh/select.cxx,v 1.1.1.1 2000-09-18 17:14:53 hr Exp $
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.173 2000/09/18 16:06:26 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.172 2000/09/07 15:59:36 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.171 2000/07/20 13:17:22 jp
+ change old txtatr-character to the two new characters
+
+ Revision 1.170 2000/07/03 17:45:46 jp
+ ExtSelWrd - use SelWord
+
+ Revision 1.169 2000/06/30 16:31:43 jp
+ new: SelectWord - use the new UNO Api to select one Word
+
+ Revision 1.168 2000/05/19 12:58:31 jp
+ use WordSelection class for check chars
+
+ Revision 1.167 2000/05/19 11:00:20 jp
+ Changes for Unicode
+
+ Revision 1.166 2000/03/14 13:37:25 jp
+ remove unused code
+
+ Revision 1.165 1999/06/11 08:28:04 JP
+ Bug #66823#: ExtSelWord/ExtSelLn - destroy current not expanded cursor
+
+
+ Rev 1.164 11 Jun 1999 10:28:04 JP
+ Bug #66823#: ExtSelWord/ExtSelLn - destroy current not expanded cursor
+
+ Rev 1.163 27 Apr 1999 15:29:18 JP
+ ExtSelWrd/-Ln: im TableMode nur den Cursor setzen
+
+ Rev 1.162 23 Mar 1999 14:13:22 JP
+ Bug #63817#: ExtSelWord/Line - Anfangsselektion beibehalten
+
+ Rev 1.161 25 Nov 1998 16:25:56 OS
+ #59467# EnterStdMode: Funktionspointer zuruecksetzen
+
+ Rev 1.160 24 Feb 1998 15:28:14 JP
+ Search..: SWPOSDOC entfernt, auf enums umgestellt
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/wrtsh/wrtsh.hrc b/sw/source/ui/wrtsh/wrtsh.hrc
new file mode 100644
index 000000000000..7c841b48ed8c
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtsh.hrc
@@ -0,0 +1,206 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _WRTSH_HRC
+#define _WRTSH_HRC
+
+#include "rcid.hrc"
+
+#define DLG_GOTO (RC_WRTSH_BEGIN + 1)
+
+
+#define STR_DDEERROR_APP1 (RC_WRTSH_BEGIN + 2)
+#define STR_DDEERROR_APP2 (RC_WRTSH_BEGIN + 3)
+#define STR_DDEERROR_DATA1 (RC_WRTSH_BEGIN + 4)
+#define STR_DDEERROR_DATA2 (RC_WRTSH_BEGIN + 5)
+#define STR_DDEERROR_LINK1 (RC_WRTSH_BEGIN + 6)
+#define STR_DDEERROR_LINK2 (RC_WRTSH_BEGIN + 7)
+
+
+// Undo
+#define UNDO_BASE (RC_WRTSH_BEGIN + 8)
+#define STR_CANT_UNDO (UNDO_BASE + 0)
+
+// im enun folgen hier START & END fuer die Klammerungen,
+
+// Id's fuer die Undo/Redo/Repeat faehigen "Funktionen"
+#define STR_DELETE_UNDO (UNDO_BASE + 3)
+#define STR_INSERT_UNDO (UNDO_BASE + 4)
+#define STR_OVR_UNDO (UNDO_BASE + 5)
+#define STR_SPLITNODE_UNDO (UNDO_BASE + 6)
+#define STR_INSATTR_UNDO (UNDO_BASE + 7)
+#define STR_SETFMTCOLL_UNDO (UNDO_BASE + 8)
+#define STR_RESET_ATTR_UNDO (UNDO_BASE + 9)
+#define STR_APPLY_ATTR_UNDO (UNDO_BASE +10)
+#define STR_INSERT_DOC_UNDO (UNDO_BASE +11)
+#define STR_COPY_UNDO (UNDO_BASE +12)
+#define STR_INSTABLE_UNDO (UNDO_BASE +13)
+#define STR_TABLETOTEXT_UNDO (UNDO_BASE +14)
+#define STR_TEXTTOTABLE_UNDO (UNDO_BASE +15)
+#define STR_SORT_TXT (UNDO_BASE +16)
+#define STR_INSERTFLY (UNDO_BASE +17)
+#define STR_TABLEHEADLINE (UNDO_BASE +18)
+#define STR_INSERTSECTION (UNDO_BASE +19)
+#define STR_OUTLINE_LR (UNDO_BASE +20)
+#define STR_OUTLINE_UD (UNDO_BASE +21)
+#define STR_INSNUM (UNDO_BASE +22)
+#define STR_NUMUPDOWN (UNDO_BASE +23)
+#define STR_MOVENUM (UNDO_BASE +24)
+#define STR_INSERTDRAW (UNDO_BASE +25)
+#define STR_NUMORNONUM (UNDO_BASE +26)
+#define STR_INC_LEFTMARGIN (UNDO_BASE +27)
+#define STR_DEC_LEFTMARGIN (UNDO_BASE +28)
+#define STR_INSERTLABEL (UNDO_BASE +29)
+#define STR_SETNUMRULESTART (UNDO_BASE +30)
+#define STR_CHANGEFTN (UNDO_BASE +31)
+#define STR_REDLINE (UNDO_BASE +32)
+#define STR_ACCEPT_REDLINE (UNDO_BASE +33)
+#define STR_REJECT_REDLINE (UNDO_BASE +34)
+#define STR_SPLIT_TABLE (UNDO_BASE +35)
+#define STR_DONTEXPAND (UNDO_BASE +36)
+#define STR_AUTOCORRECT (UNDO_BASE +37)
+#define STR_MERGE_TABLE (UNDO_BASE +38)
+
+#define STR_REPEAT_DUMMY_3 (UNDO_BASE +39)
+#define STR_REPEAT_DUMMY_4 (UNDO_BASE +40)
+#define STR_REPEAT_DUMMY_5 (UNDO_BASE +41)
+#define STR_REPEAT_DUMMY_6 (UNDO_BASE +42)
+#define STR_REPEAT_DUMMY_7 (UNDO_BASE +43)
+#define STR_REPEAT_DUMMY_8 (UNDO_BASE +44)
+#define STR_REPEAT_DUMMY_9 (UNDO_BASE +45)
+// !!!!!! umsetzen !!!!!!!!!!! umsetzen !!!!!!!!!!! umsetzen !!!!
+#define CORE_REPEAT_END STR_REPEAT_DUMMY_9// !!!! umsetzen !!!
+
+
+// Id's nur fuer die Undo/Redo faehigen "Funktionen"
+#define STR_MOVE_UNDO (CORE_REPEAT_END + 1)
+#define STR_INSERT_GLOSSARY (CORE_REPEAT_END + 2)
+#define STR_DELBOOKMARK (CORE_REPEAT_END + 3)
+#define STR_INSBOOKMARK (CORE_REPEAT_END + 4)
+#define STR_SORT_TBL (CORE_REPEAT_END + 5)
+#define STR_DELETEFLY (CORE_REPEAT_END + 6)
+#define STR_AUTOFORMAT (CORE_REPEAT_END + 7)
+#define STR_REPLACE (CORE_REPEAT_END + 8)
+#define STR_DELETESECTION (CORE_REPEAT_END + 9)
+#define STR_CHANGESECTION (CORE_REPEAT_END +10)
+#define STR_CHANGESECTPASSWD (CORE_REPEAT_END +11)
+#define STR_CHANGEDEFATTR (CORE_REPEAT_END +12)
+#define STR_DELNUM (CORE_REPEAT_END +13)
+#define STR_DRAWUNDO (CORE_REPEAT_END +14)
+#define STR_DRAWGROUP (CORE_REPEAT_END +15)
+#define STR_DRAWUNGROUP (CORE_REPEAT_END +16)
+#define STR_DRAWDELETE (CORE_REPEAT_END +17)
+#define STR_REREAD (CORE_REPEAT_END +18)
+#define STR_DELGRF (CORE_REPEAT_END +19)
+#define STR_DELOLE (CORE_REPEAT_END +20)
+#define STR_TABLE_ATTR (CORE_REPEAT_END +21)
+#define STR_TABLE_AUTOFMT (CORE_REPEAT_END +22)
+#define STR_TABLE_INSCOL (CORE_REPEAT_END +23)
+#define STR_TABLE_INSROW (CORE_REPEAT_END +24)
+#define STR_TABLE_DELBOX (CORE_REPEAT_END +25)
+#define STR_TABLE_SPLIT (CORE_REPEAT_END +26)
+#define STR_TABLE_MERGE (CORE_REPEAT_END +27)
+#define STR_TABLE_NUMFORMAT (CORE_REPEAT_END +28)
+#define STR_INSERT_TOX (CORE_REPEAT_END +29)
+#define STR_CLEAR_TOX_RANGE (CORE_REPEAT_END +30)
+#define STR_TABLE_TBLCPYTBL (CORE_REPEAT_END +31)
+#define STR_TABLE_CPYTBL (CORE_REPEAT_END +32)
+#define STR_INS_FROM_SHADOWCRSR (CORE_REPEAT_END +33)
+#define STR_UNDO_CHAIN (CORE_REPEAT_END +34)
+#define STR_UNDO_UNCHAIN (CORE_REPEAT_END +35)
+#define STR_UNDO_FTNINFO (CORE_REPEAT_END +36)
+#define STR_UNDO_ENDNOTEINFO (CORE_REPEAT_END +37)
+#define STR_UNDO_COMPAREDOC (CORE_REPEAT_END +38)
+#define STR_UNDO_SETFLYFRMFMT (CORE_REPEAT_END +39)
+
+#define STR_UNDO_DUMMY_1 (CORE_REPEAT_END +40)
+#define STR_UNDO_DUMMY_2 (CORE_REPEAT_END +41)
+#define STR_UNDO_DUMMY_3 (CORE_REPEAT_END +42)
+#define STR_UNDO_DUMMY_4 (CORE_REPEAT_END +43)
+#define STR_UNDO_DUMMY_5 (CORE_REPEAT_END +44)
+#define STR_UNDO_DUMMY_6 (CORE_REPEAT_END +45)
+#define STR_UNDO_DUMMY_7 (CORE_REPEAT_END +46)
+#define STR_UNDO_DUMMY_8 (CORE_REPEAT_END +47)
+#define STR_UNDO_DUMMY_9 (CORE_REPEAT_END +48)
+// !!!!!! umsetzen !!!!!!!!!!! umsetzen !!!!!!!!!!! umsetzen !!!!
+#define CORE_UNDO_END STR_UNDO_DUMMY_9// !!!! umsetzen !!!
+
+// UI-Undo Klammerungen
+#define UI_UNDO_BEGIN (CORE_UNDO_END + 1)
+#define STR_REPLACE_UNDO (UI_UNDO_BEGIN)
+#define STR_INSERT_PAGE_BREAK_UNDO (UI_UNDO_BEGIN + 1)
+#define STR_INSERT_COLUMN_BREAK_UNDO (UI_UNDO_BEGIN + 2)
+#define STR_PLAY_MACRO_UNDO (UI_UNDO_BEGIN + 3)
+#define STR_INSERT_ENV_UNDO (UI_UNDO_BEGIN + 4)
+#define STR_DRAG_AND_COPY (UI_UNDO_BEGIN + 5)
+#define STR_DRAG_AND_MOVE (UI_UNDO_BEGIN + 6)
+#define STR_INSERT_RULER (UI_UNDO_BEGIN + 7)
+#define STR_INSERT_CHART (UI_UNDO_BEGIN + 8)
+#define STR_INSERT_FOOTNOTE (UI_UNDO_BEGIN + 9)
+#define STR_INSERT_URLBTN (UI_UNDO_BEGIN + 10)
+#define STR_INSERT_URLTXT (UI_UNDO_BEGIN + 11)
+#define STR_DELETE_INVISIBLECNTNT (UI_UNDO_BEGIN + 12)
+#define UNDO_ACT_END STR_DELETE_INVISIBLECNTNT
+
+#if WRTSH_ACT_END > RC_WRTSH_END
+#error Resource-Id Ueberlauf
+#endif
+
+#endif
diff --git a/sw/source/ui/wrtsh/wrtsh.src b/sw/source/ui/wrtsh/wrtsh.src
new file mode 100644
index 000000000000..b86cb66fd42e
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtsh.src
@@ -0,0 +1,2601 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh.src,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "wrtsh.hrc"
+
+ // Undo
+String STR_CANT_UNDO
+{
+ TEXT = "unmöglich" ;
+ TEXT [ English ] = "not possible" ;
+ TEXT [ norwegian ] = "ikke mulig" ;
+ TEXT [ italian ] = "Impossibile" ;
+ TEXT [ portuguese_brazilian ] = "não possível" ;
+ TEXT [ portuguese ] = "Impossível" ;
+ TEXT [ finnish ] = "ei mahdollinen" ;
+ TEXT [ danish ] = "ikke mulig" ;
+ TEXT [ french ] = "impossible" ;
+ TEXT [ swedish ] = "inte möjlig" ;
+ TEXT [ dutch ] = "Onmogelijk" ;
+ TEXT [ spanish ] = "imposible" ;
+ TEXT [ english_us ] = "not possible" ;
+ TEXT[ chinese_simplified ] = "²»¿ÉÄÜ";
+ TEXT[ russian ] = "íåâîçìîæíî";
+ TEXT[ polish ] = "niemo¿liwy";
+ TEXT[ japanese ] = "•s‰Â”\\";
+ TEXT[ chinese_traditional ] = "¤£¥i¯à";
+ TEXT[ arabic ] = "ÛíÑ ããßä";
+ TEXT[ dutch ] = "Onmogelijk";
+ TEXT[ chinese_simplified ] = "²»¿ÉÄÜ";
+ TEXT[ greek ] = "áäýíáôïí";
+ TEXT[ korean ] = "ºÒ°¡´ÉÇÕ´Ï´Ù.";
+ TEXT[ turkish ] = "olanaksýz";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DELETE_UNDO
+{
+ TEXT = "Löschen" ;
+ TEXT [ English ] = "Delete" ;
+ TEXT [ norwegian ] = "Slett" ;
+ TEXT [ italian ] = "Elimina" ;
+ TEXT [ portuguese_brazilian ] = "Apagar" ;
+ TEXT [ portuguese ] = "Eliminar" ;
+ TEXT [ finnish ] = "Poista" ;
+ TEXT [ danish ] = "Slet" ;
+ TEXT [ french ] = "Supprimer" ;
+ TEXT [ swedish ] = "Radera" ;
+ TEXT [ dutch ] = "Wissen" ;
+ TEXT [ spanish ] = "Eliminar" ;
+ TEXT [ english_us ] = "Delete" ;
+ TEXT[ chinese_simplified ] = "ɾ³ý";
+ TEXT[ russian ] = "Óäàëèòü";
+ TEXT[ polish ] = "Usuñ";
+ TEXT[ japanese ] = "íœ";
+ TEXT[ chinese_traditional ] = "§R°£";
+ TEXT[ arabic ] = "ÍÐÝ";
+ TEXT[ dutch ] = "Wissen";
+ TEXT[ chinese_simplified ] = "ɾ³ý";
+ TEXT[ greek ] = "ÄéáãñáöÞ";
+ TEXT[ korean ] = "»èÁ¦";
+ TEXT[ turkish ] = "Sil";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERT_UNDO
+{
+ TEXT = "Einfügen" ;
+ TEXT [ English ] = "Insert" ;
+ TEXT [ norwegian ] = "Sett inn" ;
+ TEXT [ italian ] = "Inserisci" ;
+ TEXT [ portuguese_brazilian ] = "Inserir" ;
+ TEXT [ portuguese ] = "Inserir" ;
+ TEXT [ finnish ] = "Lisää" ;
+ TEXT [ danish ] = "Indsæt" ;
+ TEXT [ french ] = "Insérer" ;
+ TEXT [ swedish ] = "Infoga" ;
+ TEXT [ dutch ] = "Invoegen" ;
+ TEXT [ spanish ] = "Insertar" ;
+ TEXT [ english_us ] = "Insert" ;
+ TEXT[ chinese_simplified ] = "²åÈë";
+ TEXT[ russian ] = "Âñòàâêà";
+ TEXT[ polish ] = "Wstaw";
+ TEXT[ japanese ] = "‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J";
+ TEXT[ arabic ] = "ÅÏÑÇÌ";
+ TEXT[ dutch ] = "Invoegen";
+ TEXT[ chinese_simplified ] = "²åÈë";
+ TEXT[ greek ] = "ÅéóáãùãÞ";
+ TEXT[ korean ] = "»ðÀÔ";
+ TEXT[ turkish ] = "Ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_OVR_UNDO
+{
+ TEXT = "Überschreiben" ;
+ TEXT [ English ] = "Overwrite" ;
+ TEXT [ norwegian ] = "Skriv over" ;
+ TEXT [ italian ] = "Sovrascrivi" ;
+ TEXT [ portuguese_brazilian ] = "Gravar sobre" ;
+ TEXT [ portuguese ] = "Sobregravar" ;
+ TEXT [ finnish ] = "Korvaa" ;
+ TEXT [ danish ] = "Overskriv" ;
+ TEXT [ french ] = "Écraser" ;
+ TEXT [ swedish ] = "Skriv över" ;
+ TEXT [ dutch ] = "Overschrijven" ;
+ TEXT [ spanish ] = "Sobrescribir" ;
+ TEXT [ english_us ] = "Overwrite" ;
+ TEXT[ chinese_simplified ] = "¸²Ð´";
+ TEXT[ russian ] = "Çàìåíèòü";
+ TEXT[ polish ] = "Skasuj przez zapisanie";
+ TEXT[ japanese ] = "ã‘‚«";
+ TEXT[ chinese_traditional ] = "Âмg";
+ TEXT[ arabic ] = "ÇáßÊÇÈÉ ÝæÞ";
+ TEXT[ dutch ] = "Overschrijven";
+ TEXT[ chinese_simplified ] = "¸²Ð´";
+ TEXT[ greek ] = "ÁíôéêáôÜóôáóç";
+ TEXT[ korean ] = "µ¤¾î¾²±â";
+ TEXT[ turkish ] = "Üzerine yaz";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SPLITNODE_UNDO
+{
+ TEXT = "neuer Absatz" ;
+ TEXT [ English ] = "new Paragraph" ;
+ TEXT [ norwegian ] = "nytt Avsnitt" ;
+ TEXT [ italian ] = "Nuovo paragrafo" ;
+ TEXT [ portuguese_brazilian ] = "novo Parágrafo" ;
+ TEXT [ portuguese ] = "Novo parágrafo" ;
+ TEXT [ finnish ] = "uusi kappale" ;
+ TEXT [ danish ] = "nyt afsnit" ;
+ TEXT [ french ] = "Nouveau paragraphe" ;
+ TEXT [ swedish ] = "nytt stycke" ;
+ TEXT [ dutch ] = "Nieuwe alinea" ;
+ TEXT [ spanish ] = "Párrafo nuevo" ;
+ TEXT [ english_us ] = "New Paragraph" ;
+ TEXT[ chinese_simplified ] = "н¨¶ÎÂä";
+ TEXT[ russian ] = "Íîâûé àáçàö";
+ TEXT[ polish ] = "Nowy akapit";
+ TEXT[ japanese ] = "V‚µ‚¢’i—Ž";
+ TEXT[ chinese_traditional ] = "·s«Ø¬q¸¨";
+ TEXT[ arabic ] = "ÝÞÑÉ ÌÏíÏÉ";
+ TEXT[ dutch ] = "Nieuwe alinea";
+ TEXT[ chinese_simplified ] = "н¨¶ÎÂä";
+ TEXT[ greek ] = "Äçìéïõñãßá ðáñáãñÜöïõ";
+ TEXT[ korean ] = "»õ ´Ü¶ô";
+ TEXT[ turkish ] = "Yeni paragraf";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_MOVE_UNDO
+{
+ TEXT = "Verschieben" ;
+ TEXT [ English ] = "Move" ;
+ TEXT [ norwegian ] = "Flytt" ;
+ TEXT [ italian ] = "Sposta" ;
+ TEXT [ portuguese_brazilian ] = "Mover" ;
+ TEXT [ portuguese ] = "Mover" ;
+ TEXT [ finnish ] = "Lisää" ;
+ TEXT [ danish ] = "Flyt" ;
+ TEXT [ french ] = "Déplacer" ;
+ TEXT [ swedish ] = "Flytta" ;
+ TEXT [ dutch ] = "Verplaatsen" ;
+ TEXT [ spanish ] = "Desplazar" ;
+ TEXT [ english_us ] = "Move" ;
+ TEXT[ chinese_simplified ] = "Òƶ¯";
+ TEXT[ russian ] = "Ïåðåìåñòèòü";
+ TEXT[ polish ] = "Przesuñ";
+ TEXT[ japanese ] = "ˆÚ“®";
+ TEXT[ chinese_traditional ] = "²¾°Ê";
+ TEXT[ arabic ] = "ÅÒÇÍÉ";
+ TEXT[ dutch ] = "Verplaatsen";
+ TEXT[ chinese_simplified ] = "Òƶ¯";
+ TEXT[ greek ] = "Ìåôáêßíçóç";
+ TEXT[ korean ] = "À̵¿";
+ TEXT[ turkish ] = "Taþý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSATTR_UNDO
+{
+ TEXT = "Attribute anwenden" ;
+ TEXT [ English ] = "Apply attributes" ;
+ TEXT [ norwegian ] = "Bruk attributter" ;
+ TEXT [ italian ] = "Applica attributi" ;
+ TEXT [ portuguese_brazilian ] = "Aplicar atributos" ;
+ TEXT [ portuguese ] = "Aplicar atributos" ;
+ TEXT [ finnish ] = "Käytä määritteitä" ;
+ TEXT [ danish ] = "Anvend attributter" ;
+ TEXT [ french ] = "Appliquer les attributs" ;
+ TEXT [ swedish ] = "Använd attribut" ;
+ TEXT [ dutch ] = "Attributen toepassen" ;
+ TEXT [ spanish ] = "Aplicar atributos" ;
+ TEXT [ english_us ] = "Apply attributes" ;
+ TEXT[ chinese_simplified ] = "ʹÓÃÊôÐÔ";
+ TEXT[ russian ] = "Ïðèìåíèòü àòðèáóòû";
+ TEXT[ polish ] = "Zastosuj atrybuty";
+ TEXT[ japanese ] = "‘®«‚Ì“K—p";
+ TEXT[ chinese_traditional ] = "¨Ï¥ÎÄÝ©Ê";
+ TEXT[ arabic ] = "ÇÓÊÎÏÇã ÇáÓãÇÊ";
+ TEXT[ dutch ] = "Attributen toepassen";
+ TEXT[ chinese_simplified ] = "ʹÓÃÊôÐÔ";
+ TEXT[ greek ] = "ÅöáñìïãÞ éäéïôÞôùí";
+ TEXT[ korean ] = "¼Ó¼º Àû¿ë";
+ TEXT[ turkish ] = "Öznitelikleri deðiþtir";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SETFMTCOLL_UNDO
+{
+ TEXT = "Vorlagen anwenden" ;
+ TEXT [ English ] = "Apply styles" ;
+ TEXT [ norwegian ] = "Bruk maler" ;
+ TEXT [ italian ] = "Applica stili" ;
+ TEXT [ portuguese_brazilian ] = "Apicar estilos" ;
+ TEXT [ portuguese ] = "Aplicar estilos" ;
+ TEXT [ finnish ] = "Käytä tyylejä" ;
+ TEXT [ danish ] = "Anvend typografi" ;
+ TEXT [ french ] = "Appliquer les styles" ;
+ TEXT [ swedish ] = "Använd formatmallar" ;
+ TEXT [ dutch ] = "Opmaakprofielen toepassen" ;
+ TEXT [ spanish ] = "Aplicar estilos" ;
+ TEXT [ english_us ] = "Apply Styles" ;
+ TEXT[ chinese_simplified ] = "ʹÓÃÑùʽ";
+ TEXT[ russian ] = "Ïðèìåíèòü ñòèëè";
+ TEXT[ polish ] = "Zastosuj szablony";
+ TEXT[ japanese ] = "½À²Ù‚Ì“K—p";
+ TEXT[ chinese_traditional ] = "¨Ï¥Î¼Ë¦¡";
+ TEXT[ arabic ] = "ÇÓÊÎÏÇã ÇáäãÇÐÌ";
+ TEXT[ dutch ] = "Opmaakprofielen toepassen";
+ TEXT[ chinese_simplified ] = "ʹÓÃÑùʽ";
+ TEXT[ greek ] = "ÅöáñìïãÞ ðñïôýðùí";
+ TEXT[ korean ] = "À¯Çü Àû¿ë";
+ TEXT[ turkish ] = "Biçim uygula";
+ TEXT[ language_user1 ] = "All \"Vorlage\"/Styles are always written with capital S. 10.5.00EM";
+};
+String STR_RESET_ATTR_UNDO
+{
+ TEXT = "Attribute zurücksetzen" ;
+ TEXT [ English ] = "Reset attributes" ;
+ TEXT [ norwegian ] = "Sett attributter på nytt" ;
+ TEXT [ italian ] = "Reimposta attributi" ;
+ TEXT [ portuguese_brazilian ] = "Redefinir atributos" ;
+ TEXT [ portuguese ] = "Restaurar atributos" ;
+ TEXT [ finnish ] = "Palauta määritteet" ;
+ TEXT [ danish ] = "Nulstil attributter" ;
+ TEXT [ french ] = "Restaurer les attributs" ;
+ TEXT [ swedish ] = "Återställ attribut" ;
+ TEXT [ dutch ] = "Attributen terugzetten" ;
+ TEXT [ spanish ] = "Restablecer atributos" ;
+ TEXT [ english_us ] = "Reset attributes" ;
+ TEXT[ chinese_simplified ] = "ÖØÉèÊôÐÔ";
+ TEXT[ russian ] = "Âîññòàíîâèòü àòðèáóòû";
+ TEXT[ polish ] = "Zresetuj atrybuty";
+ TEXT[ japanese ] = "‘®«‚Ìؾ¯Ä";
+ TEXT[ chinese_traditional ] = "­«³]ÄÝ©Ê";
+ TEXT[ arabic ] = "ÅÚÇÏÉ ÊÚííä ÇáÓãÇÊ";
+ TEXT[ dutch ] = "Attributen terugzetten";
+ TEXT[ chinese_simplified ] = "ÖØÉèÊôÐÔ";
+ TEXT[ greek ] = "ÅðáíáöïñÜ éäéïôÞôùí";
+ TEXT[ korean ] = "¼Ó¼º ¿ø·¡´ë·Î";
+ TEXT[ turkish ] = "Öznitelikleri baþa al";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_APPLY_ATTR_UNDO
+{
+ TEXT = "Attribute anwenden" ;
+ TEXT [ English ] = "Apply attributes" ;
+ TEXT [ norwegian ] = "Bruk attributter" ;
+ TEXT [ italian ] = "Applica attributi" ;
+ TEXT [ portuguese_brazilian ] = "Aplicar atributos" ;
+ TEXT [ portuguese ] = "Aplicar atributos" ;
+ TEXT [ finnish ] = "Käytä määritteitä" ;
+ TEXT [ danish ] = "Anvend attributter" ;
+ TEXT [ french ] = "Appliquer les attributs" ;
+ TEXT [ swedish ] = "Använd attribut" ;
+ TEXT [ dutch ] = "Attributen toepassen" ;
+ TEXT [ spanish ] = "Aplicar atributos" ;
+ TEXT [ english_us ] = "Apply attributes" ;
+ TEXT[ chinese_simplified ] = "ʹÓÃÊôÐÔ";
+ TEXT[ russian ] = "Ïðèìåíèòü àòðèáóòû";
+ TEXT[ polish ] = "Zastosuj atrybuty";
+ TEXT[ japanese ] = "‘®«‚Ì“K—p";
+ TEXT[ chinese_traditional ] = "¨Ï¥ÎÄÝ©Ê";
+ TEXT[ arabic ] = "ÇÓÊÎÏÇã ÇáÓãÇÊ";
+ TEXT[ dutch ] = "Attributen toepassen";
+ TEXT[ chinese_simplified ] = "ʹÓÃÊôÐÔ";
+ TEXT[ greek ] = "ÅöáñìïãÞ éäéïôÞôùí";
+ TEXT[ korean ] = "¼Ó¼º Àû¿ë";
+ TEXT[ turkish ] = "Öznitelikleri kullan";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERT_DOC_UNDO
+{
+ TEXT = "Dokument einfügen" ;
+ TEXT [ English ] = "Insert document" ;
+ TEXT [ norwegian ] = "Insert document" ;
+ TEXT [ italian ] = "Inserisci documento" ;
+ TEXT [ portuguese_brazilian ] = "Insere um documento" ;
+ TEXT [ portuguese ] = "Inserir documento" ;
+ TEXT [ finnish ] = "Lisää asiakirja" ;
+ TEXT [ danish ] = "Indsæt dokument" ;
+ TEXT [ french ] = "Insérer un document" ;
+ TEXT [ swedish ] = "Infoga dokument" ;
+ TEXT [ dutch ] = "Document invoegen" ;
+ TEXT [ spanish ] = "Insertar documento" ;
+ TEXT [ english_us ] = "Insert Document" ;
+ TEXT[ chinese_simplified ] = "²åÈëÎĵµ";
+ TEXT[ russian ] = "Âñòàâèòü äîêóìåíò";
+ TEXT[ polish ] = "Wstaw dokument";
+ TEXT[ japanese ] = "ÄÞ·­ÒÝÄ‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J¤å¥ó";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ãÓÊäÏ";
+ TEXT[ dutch ] = "Document invoegen";
+ TEXT[ chinese_simplified ] = "²åÈëÎĵµ";
+ TEXT[ greek ] = "ÐñïóèÞêç åããñÜöïõ";
+ TEXT[ korean ] = "¹®¼­ »ðÀÔ";
+ TEXT[ turkish ] = "Belge ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERT_GLOSSARY
+{
+ TEXT = "AutoText einfügen" ;
+ TEXT [ English ] = "Insert AutoText" ;
+ TEXT [ norwegian ] = "Insert AutoText" ;
+ TEXT [ italian ] = "Inserisci testo automatico" ;
+ TEXT [ portuguese_brazilian ] = "Inserir Texto Automático" ;
+ TEXT [ portuguese ] = "Inserir AutoTexto" ;
+ TEXT [ finnish ] = "Lisää automaattiteksti" ;
+ TEXT [ danish ] = "Indsæt AutoTekst" ;
+ TEXT [ french ] = "Insérer un AutoTexte" ;
+ TEXT [ swedish ] = "Infoga AutoText" ;
+ TEXT [ dutch ] = "AutoTekst invoegen" ;
+ TEXT [ spanish ] = "Insertar AutoTexto" ;
+ TEXT [ english_us ] = "Insert AutoText" ;
+ TEXT[ chinese_simplified ] = "²åÈë×Ô¶¯Í¼Îļ¯";
+ TEXT[ russian ] = "Âñòàâèòü àâòîòåêñò";
+ TEXT[ polish ] = "Wstaw Autotekst";
+ TEXT[ japanese ] = "“ü—ÍŽx‰‡‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J¦Û°Ê¹Ï¤å¶°";
+ TEXT[ arabic ] = "ÅÏÑÇÌ äÕ ÊáÞÇÆí";
+ TEXT[ dutch ] = "AutoTekst invoegen";
+ TEXT[ chinese_simplified ] = "²åÈë×Ô¶¯Í¼Îļ¯";
+ TEXT[ greek ] = "ÐñïóèÞêç ÁõôïÊåéìÝíïõ";
+ TEXT[ korean ] = "ÀÚµ¿ ÅؽºÆ® »ðÀÔ";
+ TEXT[ turkish ] = "Otomatik metin ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DELBOOKMARK
+{
+ TEXT = "Textmarke löschen" ;
+ TEXT [ English ] = "Delete bookmark" ;
+ TEXT [ norwegian ] = "Slett bokmerke" ;
+ TEXT [ italian ] = "Elimina segnalibro" ;
+ TEXT [ portuguese_brazilian ] = "Apagar marca" ;
+ TEXT [ portuguese ] = "Eliminar marcador de texto" ;
+ TEXT [ finnish ] = "Poista kirjanmerkki" ;
+ TEXT [ danish ] = "Slet tekstmarkering" ;
+ TEXT [ french ] = "Supprimer le repère de texte" ;
+ TEXT [ swedish ] = "Radera bokmärke" ;
+ TEXT [ dutch ] = "Tekstmarkering verwijderen" ;
+ TEXT [ spanish ] = "Eliminar marcador" ;
+ TEXT [ english_us ] = "Delete bookmark" ;
+ TEXT[ chinese_simplified ] = "ɾ³ýÊéÇ©";
+ TEXT[ russian ] = "Óäàëèòü çàêëàäêó";
+ TEXT[ polish ] = "Usuñ zak³adkê";
+ TEXT[ japanese ] = "÷½ÄÏ°¸‚Ìíœ";
+ TEXT[ chinese_traditional ] = "§R°£¤º¤å¼ÐÅÒ";
+ TEXT[ arabic ] = "ÍÐÝ ÅÔÇÑÉ ãÑÌÚíÉ";
+ TEXT[ dutch ] = "Tekstmarkering verwijderen";
+ TEXT[ chinese_simplified ] = "ɾ³ýÊéÇ©";
+ TEXT[ greek ] = "ÄéáãñáöÞ óåëéäïäåßêôç";
+ TEXT[ korean ] = "Ã¥ °¥ÇÇ »èÁ¦";
+ TEXT[ turkish ] = "Metin iþaretini sil";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSBOOKMARK
+{
+ TEXT = "Textmarke einfügen" ;
+ TEXT [ English ] = "Insert bookmark" ;
+ TEXT [ norwegian ] = "Sett inn bokmerke" ;
+ TEXT [ italian ] = "Inserisci segnalibro" ;
+ TEXT [ portuguese_brazilian ] = "Inserir marca" ;
+ TEXT [ portuguese ] = "Inserir marcador de texto" ;
+ TEXT [ finnish ] = "Lisää kirjanmerkki" ;
+ TEXT [ danish ] = "Indsæt tekstmarkering" ;
+ TEXT [ french ] = "Insérer un repère de texte" ;
+ TEXT [ swedish ] = "Infoga bokmärke" ;
+ TEXT [ dutch ] = "Tekstmarkering invoegen" ;
+ TEXT [ spanish ] = "Insertar marca" ;
+ TEXT [ english_us ] = "Insert bookmark" ;
+ TEXT[ chinese_simplified ] = "²åÈëÊéÇ©";
+ TEXT[ russian ] = "Âñòàâèòü çàêëàäêó";
+ TEXT[ polish ] = "Wstaw zak³adkê";
+ TEXT[ japanese ] = "÷½ÄÏ°¸‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J¤º¤å¼ÐÅÒ";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ÅÔÇÑÉ ãÑÌÚíÉ";
+ TEXT[ dutch ] = "Tekstmarkering invoegen";
+ TEXT[ chinese_simplified ] = "²åÈëÊéÇ©";
+ TEXT[ greek ] = "ÅéóáãùãÞ óåëéäïäåßêôç";
+ TEXT[ korean ] = "Ã¥ °¥ÇÇ »ðÀÔ";
+ TEXT[ turkish ] = "Metin iþareti ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SORT_TBL
+{
+ TEXT = "Tabelle sortieren" ;
+ TEXT [ English ] = "Sort table" ;
+ TEXT [ norwegian ] = "Sorter tabell" ;
+ TEXT [ italian ] = "Ordina tabella" ;
+ TEXT [ portuguese_brazilian ] = "Ordenar tabela" ;
+ TEXT [ portuguese ] = "Ordenar tabela" ;
+ TEXT [ finnish ] = "Lajittele taulukko" ;
+ TEXT [ danish ] = "Sorter tabel" ;
+ TEXT [ french ] = "Trier tableau" ;
+ TEXT [ swedish ] = "Sortera tabell" ;
+ TEXT [ dutch ] = "Tabel sorteren" ;
+ TEXT [ spanish ] = "Ordenar tabla" ;
+ TEXT [ english_us ] = "Sort table" ;
+ TEXT[ chinese_simplified ] = "ÅÅÐò±í¸ñ";
+ TEXT[ russian ] = "Ñîðòèðîâêà òàáëèöû";
+ TEXT[ polish ] = "Sortuj tabelê";
+ TEXT[ japanese ] = "•\\‚Ì•À‚בւ¦";
+ TEXT[ chinese_traditional ] = "±Æ§Çªí®æ";
+ TEXT[ arabic ] = "ÝÑÒ ÇáÌÏæá";
+ TEXT[ dutch ] = "Tabel sorteren";
+ TEXT[ chinese_simplified ] = "ÅÅÐò±í¸ñ";
+ TEXT[ greek ] = "Ôáîéíüìçóç ðßíáêá";
+ TEXT[ korean ] = "Ç¥Á¤·Ä";
+ TEXT[ turkish ] = "Tabloyu sýrala";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_SORT_TXT
+{
+ TEXT = "Text sortieren" ;
+ TEXT [ English ] = "Sort text" ;
+ TEXT [ norwegian ] = "Sorter tekst" ;
+ TEXT [ italian ] = "Ordina testo" ;
+ TEXT [ portuguese_brazilian ] = "Ordenar texto" ;
+ TEXT [ portuguese ] = "Ordenar texto" ;
+ TEXT [ finnish ] = "Lajittele teksti" ;
+ TEXT [ danish ] = "Sorter tekst" ;
+ TEXT [ french ] = "Trier texte" ;
+ TEXT [ swedish ] = "Sortera text" ;
+ TEXT [ dutch ] = "Tekst sorteren" ;
+ TEXT [ spanish ] = "Ordenar texto" ;
+ TEXT [ english_us ] = "Sort text" ;
+ TEXT[ chinese_simplified ] = "ÅÅÐòÎÄ×Ö";
+ TEXT[ russian ] = "Ñîðòèðîâêà òåêñòà";
+ TEXT[ polish ] = "Sortuj tekst";
+ TEXT[ japanese ] = "÷½Ä‚Ì•À‚בւ¦";
+ TEXT[ chinese_traditional ] = "±Æ§Ç¤å¦r";
+ TEXT[ arabic ] = "ÝÑÒ ÇáäÕ";
+ TEXT[ dutch ] = "Tekst sorteren";
+ TEXT[ chinese_simplified ] = "ÅÅÐòÎÄ×Ö";
+ TEXT[ greek ] = "Ôáîéíüìçóç êåéìÝíïõ";
+ TEXT[ korean ] = "ÅؽºÆ® Á¤·Ä";
+ TEXT[ turkish ] = "Metni sýrala";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSTABLE_UNDO
+{
+ TEXT = "Tabelle einfügen" ;
+ TEXT [ English ] = "Insert table" ;
+ TEXT [ norwegian ] = "Insert table" ;
+ TEXT [ italian ] = "Inserisci tabella" ;
+ TEXT [ portuguese_brazilian ] = "Insere uma tabela" ;
+ TEXT [ portuguese ] = "Inserir tabela" ;
+ TEXT [ finnish ] = "Lisää taulukon" ;
+ TEXT [ danish ] = "Indsæt tabel" ;
+ TEXT [ french ] = "Insérer un tableau" ;
+ TEXT [ swedish ] = "Infoga tabell" ;
+ TEXT [ dutch ] = "Tabel invoegen" ;
+ TEXT [ spanish ] = "Insertar tabla" ;
+ TEXT [ english_us ] = "Insert Table" ;
+ TEXT[ chinese_simplified ] = "²åÈë±í¸ñ";
+ TEXT[ russian ] = "Âñòàâèòü òàáëèöó";
+ TEXT[ polish ] = "Wstaw tabelê";
+ TEXT[ japanese ] = "•\\‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤Jªí®æ";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ÌÏæá";
+ TEXT[ dutch ] = "Tabel invoegen";
+ TEXT[ chinese_simplified ] = "²åÈë±í¸ñ";
+ TEXT[ greek ] = "ÅéóáãùãÞ ðßíáêá";
+ TEXT[ korean ] = "Ç¥»ðÀÔ";
+ TEXT[ turkish ] = "Tablo ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TEXTTOTABLE_UNDO
+{
+ TEXT = "Konvertierung Text -> Tabelle" ;
+ TEXT [ English ] = "Convert text to table" ;
+ TEXT [ norwegian ] = "Omdann tekst til tabell" ;
+ TEXT [ italian ] = "Converti testo in tabella." ;
+ TEXT [ portuguese_brazilian ] = "Converter texto em tabela" ;
+ TEXT [ portuguese ] = "Converter texto -> tabela" ;
+ TEXT [ finnish ] = "Muunna teksti taulukoksi" ;
+ TEXT [ danish ] = "Konverter tekst til tabel" ;
+ TEXT [ french ] = "Convertir texte en tableau" ;
+ TEXT [ swedish ] = "Konvertera text till tabell" ;
+ TEXT [ dutch ] = "Tekst naar tabel converteren" ;
+ TEXT [ spanish ] = "Convertir texto en tabla" ;
+ TEXT [ english_us ] = "Convert text -> table" ;
+ TEXT[ chinese_simplified ] = "ÎÄ×Öת»»³É±í¸ñ";
+ TEXT[ russian ] = "Ïðåîáðàçîâàòü Òåêñò -> Òàáëèöà";
+ TEXT[ polish ] = "Konwertuj tekst na tabelê";
+ TEXT[ japanese ] = "÷½Ä->•\\‚Ö‚Ì•ÏŠ·";
+ TEXT[ chinese_traditional ] = "¤å¦rÂà´«¦¨ªí®æ";
+ TEXT[ arabic ] = "ÊÍæíá äÕ -> ÌÏæá";
+ TEXT[ dutch ] = "Tekst naar tabel converteren";
+ TEXT[ chinese_simplified ] = "ÎÄ×Öת»»³É±í¸ñ";
+ TEXT[ greek ] = "ÌåôáôñïðÞ Êåßìåíï -> Ðßíáêáò";
+ TEXT[ korean ] = "º¯È¯ ÅؽºÆ® -> Ç¥";
+ TEXT[ turkish ] = "Metni tabloya dönüþtür";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TABLETOTEXT_UNDO
+{
+ TEXT = "Konvertierung Tabelle -> Text" ;
+ TEXT [ English ] = "Convert table to text" ;
+ TEXT [ norwegian ] = "Omdann tabell til tekst" ;
+ TEXT [ italian ] = "Converti tabella in testo" ;
+ TEXT [ portuguese_brazilian ] = "Converter tabela em texto" ;
+ TEXT [ portuguese ] = "Converter tabela -> texto" ;
+ TEXT [ finnish ] = "Muunna taulukko tekstiksi" ;
+ TEXT [ danish ] = "Konverter tabel til tekst" ;
+ TEXT [ french ] = "Convertir tableau en texte" ;
+ TEXT [ swedish ] = "Konvertera tabell till text" ;
+ TEXT [ dutch ] = "Tabel naar tekst converteren" ;
+ TEXT [ spanish ] = "Convertir tabla en texto" ;
+ TEXT [ english_us ] = "Convert table to text" ;
+ TEXT[ chinese_simplified ] = "±í¸ñת»»³ÉÎÄ×Ö";
+ TEXT[ russian ] = "Ïðåîáðàçîâàòü Òàáëèöà -> Òåêñò";
+ TEXT[ polish ] = "Konwertuj tabelê na tekst";
+ TEXT[ japanese ] = "•\\->÷½Ä‚Ö‚Ì•ÏŠ·";
+ TEXT[ chinese_traditional ] = "ªí®æÂà´«¦¨¤å¦r";
+ TEXT[ arabic ] = "ÊÍæíá ÇáÌÏæá Åáì äÕ";
+ TEXT[ dutch ] = "Tabel naar tekst converteren";
+ TEXT[ chinese_simplified ] = "±í¸ñת»»³ÉÎÄ×Ö";
+ TEXT[ greek ] = "ÌåôáôñïðÞ Ðßíáêáò -> Êåßìåíï";
+ TEXT[ korean ] = "Ç¥¸¦ ÅؽºÆ®·Î º¯È¯";
+ TEXT[ turkish ] = "Tabloyu metne dönüþtür";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_COPY_UNDO
+{
+ TEXT = "Kopieren" ;
+ TEXT [ English ] = "Copy" ;
+ TEXT [ norwegian ] = "Kopi" ;
+ TEXT [ italian ] = "Copia" ;
+ TEXT [ portuguese_brazilian ] = "Copiar" ;
+ TEXT [ portuguese ] = "Copiar" ;
+ TEXT [ finnish ] = "Kopioi" ;
+ TEXT [ danish ] = "Kopier" ;
+ TEXT [ french ] = "Copier" ;
+ TEXT [ swedish ] = "Kopiera" ;
+ TEXT [ dutch ] = "Kopiëren" ;
+ TEXT [ spanish ] = "Copiar" ;
+ TEXT [ english_us ] = "Copy" ;
+ TEXT[ chinese_simplified ] = "¸´ÖÆ";
+ TEXT[ russian ] = "Êîïèðîâàòü";
+ TEXT[ polish ] = "Kopiuj";
+ TEXT[ japanese ] = "ºËß°‚·‚é";
+ TEXT[ chinese_traditional ] = "½Æ»s";
+ TEXT[ arabic ] = "äÓÎ";
+ TEXT[ dutch ] = "Kopiëren";
+ TEXT[ chinese_simplified ] = "¸´ÖÆ";
+ TEXT[ greek ] = "ÁíôéãñáöÞ";
+ TEXT[ korean ] = "º¹»ç";
+ TEXT[ turkish ] = "Kopyala";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_REPLACE_UNDO
+{
+ TEXT = "Ersetzen" ;
+ TEXT [ English ] = "Replace" ;
+ TEXT [ norwegian ] = "Replace" ;
+ TEXT [ italian ] = "Sostituisci" ;
+ TEXT [ portuguese_brazilian ] = "Substituir" ;
+ TEXT [ portuguese ] = "Substituir" ;
+ TEXT [ finnish ] = "Korvaa" ;
+ TEXT [ danish ] = "Erstat" ;
+ TEXT [ french ] = "Remplacer" ;
+ TEXT [ swedish ] = "Ersätt" ;
+ TEXT [ dutch ] = "Vervangen" ;
+ TEXT [ spanish ] = "Reemplazar" ;
+ TEXT [ english_us ] = "Replace" ;
+ TEXT[ chinese_simplified ] = "¸üÌæ";
+ TEXT[ russian ] = "Çàìåíèòü";
+ TEXT[ polish ] = "Zamieñ";
+ TEXT[ japanese ] = "’uŠ·";
+ TEXT[ chinese_traditional ] = "¥N´À";
+ TEXT[ arabic ] = "ÇÓÊÈÏÇá";
+ TEXT[ dutch ] = "Vervangen";
+ TEXT[ chinese_simplified ] = "¸üÌæ";
+ TEXT[ greek ] = "ÁíôéêáôÜóôáóç";
+ TEXT[ korean ] = "¹Ù²Ù±â";
+ TEXT[ turkish ] = "Deðiþtir";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERT_PAGE_BREAK_UNDO
+{
+ TEXT = "Harter Seitenumbruch" ;
+ TEXT [ English ] = "Hard page break" ;
+ TEXT [ norwegian ] = "Fast sideskift" ;
+ TEXT [ italian ] = "Interruzione di pagina fissa" ;
+ TEXT [ portuguese_brazilian ] = "Quebra forçada de página" ;
+ TEXT [ portuguese ] = "Quebra de página fixa" ;
+ TEXT [ finnish ] = "Pysyvä sivunvaihto" ;
+ TEXT [ danish ] = "Hårdt sideskift" ;
+ TEXT [ french ] = "Saut de page forcé" ;
+ TEXT [ swedish ] = "Hård sidbrytning" ;
+ TEXT [ dutch ] = "Vast pagina-einde" ;
+ TEXT [ spanish ] = "Salto fijo de página" ;
+ TEXT [ english_us ] = "Hard page break" ;
+ TEXT[ chinese_simplified ] = "ÊÖ¹¤»»Ò³";
+ TEXT[ russian ] = "Æåñòêèé ðàçðûâ ñòðàíèö";
+ TEXT[ polish ] = "Twarde ³amanie strony";
+ TEXT[ japanese ] = "”CˆÓŽw’è‚̉üÍß°¼Þ";
+ TEXT[ chinese_traditional ] = "¤â¤u´«­¶";
+ TEXT[ arabic ] = "ÝÇÕá ÕÝÍÇÊ íÏæí";
+ TEXT[ dutch ] = "Vast pagina-einde";
+ TEXT[ chinese_simplified ] = "ÊÖ¹¤»»Ò³";
+ TEXT[ greek ] = "¸íôïíç áëëáãÞ óåëßäáò";
+ TEXT[ korean ] = "°íÁ¤ ÆäÀÌÁö¹Ù²Ù±â";
+ TEXT[ turkish ] = "Sabit sayfa sonu";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERT_COLUMN_BREAK_UNDO
+{
+ TEXT = "Harter Spaltenumbruch" ;
+ TEXT [ English ] = "Hard column break" ;
+ TEXT [ norwegian ] = "Fast kolonneskift" ;
+ TEXT [ italian ] = "Interruzione di colonna fissa" ;
+ TEXT [ portuguese_brazilian ] = "Quebra forçada de coluna" ;
+ TEXT [ portuguese ] = "Quebra de coluna fixa" ;
+ TEXT [ finnish ] = "Pysyvä sarakkeenvaihto" ;
+ TEXT [ danish ] = "Hårdt spalteskift" ;
+ TEXT [ french ] = "Saut de colonne forcé" ;
+ TEXT [ swedish ] = "Hård kolumnbrytning" ;
+ TEXT [ dutch ] = "Vast kolomeinde" ;
+ TEXT [ spanish ] = "Salto de columna fijo" ;
+ TEXT [ english_us ] = "Hard column break" ;
+ TEXT[ chinese_simplified ] = "ÊÖ¹¤»»ÁÐ";
+ TEXT[ russian ] = "Æåñòêèé ðàçðûâ êîëîíîê";
+ TEXT[ polish ] = "Twardy podzia³ kolumny";
+ TEXT[ japanese ] = "”CˆÓŽw’è‚̉ü—ñ";
+ TEXT[ chinese_traditional ] = "¤â¤u´«Äæ";
+ TEXT[ arabic ] = "ÝÇÕá ÃÚãÏÉ íÏæí";
+ TEXT[ dutch ] = "Vast kolomeinde";
+ TEXT[ chinese_simplified ] = "ÊÖ¹¤»»ÁÐ";
+ TEXT[ greek ] = "¸íôïíç áëëáãÞ óôÞëçò";
+ TEXT[ korean ] = "°íÁ¤ ¿­¹Ù²Ù±â";
+ TEXT[ turkish ] = "Sabit sütun sonu";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_PLAY_MACRO_UNDO
+{
+ TEXT = "Makro abspielen" ;
+ TEXT [ English ] = "Play macro" ;
+ TEXT [ norwegian ] = "Kjør makro" ;
+ TEXT [ italian ] = "Esegui macro" ;
+ TEXT [ portuguese_brazilian ] = "Reproduzir macro" ;
+ TEXT [ portuguese ] = "Executar macro" ;
+ TEXT [ finnish ] = "Suorita makro" ;
+ TEXT [ danish ] = "Spil makro" ;
+ TEXT [ french ] = "Exécuter la macro" ;
+ TEXT [ swedish ] = "Spela upp makro" ;
+ TEXT [ dutch ] = "Macro starten" ;
+ TEXT [ spanish ] = "Reproducir macro" ;
+ TEXT [ english_us ] = "Run macro" ;
+ TEXT[ chinese_simplified ] = "Ö´Ðкê";
+ TEXT[ russian ] = "Ïðîãîí ìàêðîñà";
+ TEXT[ polish ] = "Wykonaj makro";
+ TEXT[ japanese ] = "ϸۂ̎Às";
+ TEXT[ chinese_traditional ] = "°õ¦æ¥¨¶°";
+ TEXT[ arabic ] = "ÊäÝíÐ ÇáãÇßÑæ";
+ TEXT[ dutch ] = "Macro starten";
+ TEXT[ chinese_simplified ] = "Ö´Ðкê";
+ TEXT[ greek ] = "ÅêôÝëåóç ìáêñïåíôïëÞò";
+ TEXT[ korean ] = "¸ÅÅ©·Î ½ÇÇà";
+ TEXT[ turkish ] = "Makroyu çalýþtýr";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERT_ENV_UNDO
+{
+ Text = "Briefumschlag einfügen" ;
+ Text [ English ] = "Insert envelope" ;
+ Text [ norwegian ] = "Sett inn konvolutt" ;
+ Text [ italian ] = "Inserisci busta" ;
+ Text [ portuguese_brazilian ] = "Inserir envelope" ;
+ Text [ portuguese ] = "Inserir envelope" ;
+ Text [ finnish ] = "Lisää kirjekuori" ;
+ Text [ danish ] = "Indsæt konvolut" ;
+ Text [ french ] = "Insérer une enveloppe" ;
+ Text [ swedish ] = "Infoga kuvert" ;
+ Text [ dutch ] = "Envelop invoegen" ;
+ Text [ spanish ] = "Insertar sobre" ;
+ Text [ english_us ] = "Insert Envelope" ;
+ Text[ chinese_simplified ] = "²åÈëÐÅ·â";
+ Text[ russian ] = "Âñòàâèòü êîíâåðò";
+ Text[ polish ] = "Wstaw kopertê";
+ Text[ japanese ] = "••“›‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J«H«Ê";
+ Text[ arabic ] = "ÅÏÑÇÌ ÙÑÝ";
+ Text[ dutch ] = "Envelop invoegen";
+ Text[ chinese_simplified ] = "²åÈëÐÅ·â";
+ Text[ greek ] = "ÐñïóèÞêç öáêÝëïõ åðéóôïëÞò";
+ Text[ korean ] = "ºÀÅõ »ðÀÔ";
+ Text[ turkish ] = "Zarf ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_DRAG_AND_COPY
+{
+ Text = "Kopieren" ;
+ Text [ English ] = "Copy" ;
+ Text [ dutch ] = "Kopiëren" ;
+ Text [ english_us ] = "Copy" ;
+ Text [ italian ] = "Copia" ;
+ Text [ spanish ] = "Copiar" ;
+ Text [ french ] = "Copier" ;
+ Text [ swedish ] = "Kopiera" ;
+ Text [ danish ] = "Kopier" ;
+ Text [ portuguese ] = "Copiar" ;
+ Text [ portuguese_brazilian ] = "Kopieren" ;
+ Text[ chinese_simplified ] = "¸´ÖÆ";
+ Text[ russian ] = "Êîïèðîâàòü";
+ Text[ polish ] = "Kopiuj";
+ Text[ japanese ] = "ºËß°‚·‚é";
+ Text[ chinese_traditional ] = "½Æ»s";
+ Text[ arabic ] = "äÓÎ";
+ Text[ dutch ] = "Kopiëren";
+ Text[ chinese_simplified ] = "¸´ÖÆ";
+ Text[ greek ] = "ÁíôéãñáöÞ";
+ Text[ korean ] = "º¹»ç";
+ Text[ turkish ] = "Kopyala";
+ Text[ language_user1 ] = " ";
+};
+String STR_DRAG_AND_MOVE
+{
+ Text = "Verschieben" ;
+ Text [ English ] = "Move" ;
+ Text [ english_us ] = "Move" ;
+ Text [ italian ] = "Spostare" ;
+ Text [ spanish ] = "Desplazar" ;
+ Text [ french ] = "Déplacer" ;
+ Text [ dutch ] = "Verplaatsen" ;
+ Text [ swedish ] = "Flytta" ;
+ Text [ danish ] = "Flyt" ;
+ Text [ portuguese ] = "Mover" ;
+ Text [ portuguese_brazilian ] = "Verschieben" ;
+ Text[ chinese_simplified ] = "Òƶ¯";
+ Text[ russian ] = "Ïåðåìåñòèòü";
+ Text[ polish ] = "Przesuñ";
+ Text[ japanese ] = "ˆÚ“®‚·‚é";
+ Text[ chinese_traditional ] = "²¾°Ê";
+ Text[ arabic ] = "ÅÒÇÍÉ";
+ Text[ dutch ] = "Verplaatsen";
+ Text[ chinese_simplified ] = "Òƶ¯";
+ Text[ greek ] = "Ìåôáêßíçóç";
+ Text[ korean ] = "À̵¿";
+ Text[ turkish ] = "Taþý";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_RULER
+{
+ Text = "Ruler einfügen" ;
+ Text [ English ] = "Insert Ruler" ;
+ Text [ portuguese ] = "Inserir régua" ;
+ Text [ english_us ] = "Insert ruler" ;
+ Text [ portuguese_brazilian ] = "Ruler einfügen" ;
+ Text [ swedish ] = "Infoga Ruler" ;
+ Text [ danish ] = "Indsæt lineal" ;
+ Text [ italian ] = "Inserisci ruler" ;
+ Text [ spanish ] = "Insertar regla" ;
+ Text [ french ] = "Insérer une règle" ;
+ Text [ dutch ] = "Ruler invoegen" ;
+ Text[ chinese_simplified ] = "²åÈë±ê³ß";
+ Text[ russian ] = "Âñòàâèòü ëèíåéêó ðàçìåòêè";
+ Text[ polish ] = "Wstaw linijkê";
+ Text[ japanese ] = "ׂٰ̑}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¼Ð¤Ø";
+ Text[ arabic ] = "ÅÏÑÇÌ ãÓØÑÉ";
+ Text[ dutch ] = "Ruler invoegen";
+ Text[ chinese_simplified ] = "²åÈë±ê³ß";
+ Text[ greek ] = "ÅéóáãùãÞ ÷Üñáêá";
+ Text[ korean ] = "´«±ÝÀÚ »ðÀÔ";
+ Text[ turkish ] = "Cetvel ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_CHART
+{
+ Text = "StarChart einfügen" ;
+ Text [ English ] = "Insert StartChart" ;
+ Text [ portuguese ] = "Inserir StarOffice Chart" ;
+ Text [ english_us ] = "Insert StarOffice Chart" ;
+ Text [ portuguese_brazilian ] = "StarOffice Chart einfügen" ;
+ Text [ swedish ] = "Infoga StarOffice Chart" ;
+ Text [ danish ] = "Indsæt StarOffice Chart" ;
+ Text [ italian ] = "Inserisci StarOffice Chart " ;
+ Text [ spanish ] = "Insertar StarOffice Chart" ;
+ Text [ french ] = "Insérer un diagramme StarOffice Chart" ;
+ Text [ dutch ] = "StarOffice Chart invoegen" ;
+ Text[ chinese_simplified ] = "²åÈë StarOffice Chart";
+ Text[ russian ] = "Âñòàâèòü StarOffice Chart";
+ Text[ polish ] = "Wstaw StarOffice Chart";
+ Text[ japanese ] = "StarOffice Chart‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J StarOffice Chart";
+ Text[ arabic ] = "ÅÏÑÇÌ StarOffice Chart";
+ Text[ dutch ] = "StarOffice Chart invoegen";
+ Text[ chinese_simplified ] = "²åÈë StarOffice Chart";
+ Text[ greek ] = "ÐñïóèÞêç StarOffice Chart";
+ Text[ korean ] = "StarOffice Â÷Æ® »ðÀÔ";
+ Text[ turkish ] = "StarOffice Chart ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERTFLY
+{
+ TEXT = "Rahmen einfügen" ;
+ TEXT [ English ] = "Insert frame" ;
+ TEXT [ norwegian ] = "Sett inn ramme" ;
+ TEXT [ italian ] = "Inserisci cornice" ;
+ TEXT [ portuguese_brazilian ] = "Inserir moldura" ;
+ TEXT [ portuguese ] = "Inserir moldura" ;
+ TEXT [ finnish ] = "Lisää kehyksen" ;
+ TEXT [ danish ] = "Indsæt ramme" ;
+ TEXT [ french ] = "Insérer un cadre" ;
+ TEXT [ swedish ] = "Infoga ram" ;
+ TEXT [ dutch ] = "Kader invoegen" ;
+ TEXT [ spanish ] = "Insertar marco" ;
+ TEXT [ english_us ] = "Insert frame" ;
+ TEXT[ chinese_simplified ] = "²åÈë¿ò¶ÔÏó";
+ TEXT[ russian ] = "Âñòàâèòü ðàìêó";
+ TEXT[ polish ] = "Wstaw ramkê";
+ TEXT[ japanese ] = "˜g‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J®Øª«¥ó";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ÅØÇÑ";
+ TEXT[ dutch ] = "Kader invoegen";
+ TEXT[ chinese_simplified ] = "²åÈë¿ò¶ÔÏó";
+ TEXT[ greek ] = "ÐñïóèÞêç ðëáéóßïõ";
+ TEXT[ korean ] = "ÇÁ·¹ÀÓ »ðÀÔ";
+ TEXT[ turkish ] = "Çerçeve ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DELETEFLY
+{
+ TEXT = "Rahmen löschen" ;
+ TEXT [ English ] = "Delete frame" ;
+ TEXT [ norwegian ] = "Slett ramme" ;
+ TEXT [ italian ] = "Elimina cornice" ;
+ TEXT [ portuguese_brazilian ] = "Apagar moldura" ;
+ TEXT [ portuguese ] = "Eliminar moldura" ;
+ TEXT [ finnish ] = "Poista kehys" ;
+ TEXT [ danish ] = "Slet ramme" ;
+ TEXT [ french ] = "Supprimer le cadre" ;
+ TEXT [ swedish ] = "Radera ram" ;
+ TEXT [ dutch ] = "Kader wissen" ;
+ TEXT [ spanish ] = "Eliminar marco" ;
+ TEXT [ english_us ] = "Delete frame" ;
+ TEXT[ chinese_simplified ] = "ɾ³ý¿ò¶ÔÏó";
+ TEXT[ russian ] = "Óäàëèòü ðàìêó";
+ TEXT[ polish ] = "Usuñ ramkê";
+ TEXT[ japanese ] = "˜g‚Ìíœ";
+ TEXT[ chinese_traditional ] = "§R°£®Øª«¥ó";
+ TEXT[ arabic ] = "ÍÐÝ ÅØÇÑ";
+ TEXT[ dutch ] = "Kader wissen";
+ TEXT[ chinese_simplified ] = "ɾ³ý¿ò¶ÔÏó";
+ TEXT[ greek ] = "ÄéáãñáöÞ ðëáéóßïõ";
+ TEXT[ korean ] = "ÇÁ·¹ÀÓ »èÁ¦";
+ TEXT[ turkish ] = "Çerçeveyi düzelt";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_AUTOFORMAT
+{
+ TEXT = "AutoFormat" ;
+ TEXT [ English ] = "AutoFormat" ;
+ TEXT [ norwegian ] = "AutoFormat" ;
+ TEXT [ italian ] = "Formattazione automatica" ;
+ TEXT [ portuguese_brazilian ] = "Auto Formatação" ;
+ TEXT [ portuguese ] = "AutoFormato" ;
+ TEXT [ finnish ] = "Automaattimuoto" ;
+ TEXT [ danish ] = "AutoFormat" ;
+ TEXT [ french ] = "AutoFormat" ;
+ TEXT [ swedish ] = "AutoFormat" ;
+ TEXT [ dutch ] = "AutoOpmaak" ;
+ TEXT [ spanish ] = "AutoFormato" ;
+ TEXT [ english_us ] = "AutoFormat" ;
+ TEXT[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ TEXT[ russian ] = "Àâòîôîðìàò";
+ TEXT[ polish ] = "Autoformatowanie";
+ TEXT[ japanese ] = "µ°ÄÌ«°Ï¯Ä";
+ TEXT[ chinese_traditional ] = "¦Û°Ê®æ¦¡";
+ TEXT[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí";
+ TEXT[ dutch ] = "AutoOpmaak";
+ TEXT[ chinese_simplified ] = "×Ô¶¯¸ñʽ";
+ TEXT[ greek ] = "ÁõôïÌïñöïðïßçóç";
+ TEXT[ korean ] = "ÀÚµ¿ ¼­½Ä";
+ TEXT[ turkish ] = "Otomatik formatlama";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_TABLEHEADLINE
+{
+ TEXT = "Tabellenüberschrift" ;
+ TEXT [ English ] = "Table headline" ;
+ TEXT [ norwegian ] = "Tabelloverskrift" ;
+ TEXT [ italian ] = "Intestazione tabella" ;
+ TEXT [ portuguese_brazilian ] = "Cabeçalho da tabela" ;
+ TEXT [ portuguese ] = "Título da tabela" ;
+ TEXT [ finnish ] = "Taulukon otsikko" ;
+ TEXT [ danish ] = "Tabeloverskrift" ;
+ TEXT [ french ] = "Titre de la table" ;
+ TEXT [ swedish ] = "Tabellöverskrift" ;
+ TEXT [ dutch ] = "Tabelkop" ;
+ TEXT [ spanish ] = "Encabezado de la tabla" ;
+ TEXT [ english_us ] = "Table heading" ;
+ TEXT[ chinese_simplified ] = "±í¸ñ±êÌâ";
+ TEXT[ russian ] = "Çàãîëîâîê òàáëèöû";
+ TEXT[ polish ] = "Nag³ówek tabeli";
+ TEXT[ japanese ] = "•\\‚ÌŒ©o‚µ";
+ TEXT[ chinese_traditional ] = "ªí®æ¼ÐÃD";
+ TEXT[ arabic ] = "ÚäæÇä ÇáÌÏæá";
+ TEXT[ dutch ] = "Tabelkop";
+ TEXT[ chinese_simplified ] = "±í¸ñ±êÌâ";
+ TEXT[ greek ] = "Åðéêåöáëßäá ðßíáêá";
+ TEXT[ korean ] = "Ç¥ Á¦¸ñ";
+ TEXT[ turkish ] = "Tablo baþlýðý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_REPLACE
+{
+ TEXT = "Ersetzen" ;
+ TEXT [ English ] = "Replace" ;
+ TEXT [ norwegian ] = "Replace" ;
+ TEXT [ italian ] = "Sostituisci" ;
+ TEXT [ portuguese_brazilian ] = "Substituir" ;
+ TEXT [ portuguese ] = "Substituir" ;
+ TEXT [ finnish ] = "Korvaa" ;
+ TEXT [ danish ] = "Erstat" ;
+ TEXT [ french ] = "Remplacer" ;
+ TEXT [ swedish ] = "Ersätt" ;
+ TEXT [ dutch ] = "Vervangen" ;
+ TEXT [ spanish ] = "Reemplazar" ;
+ TEXT [ english_us ] = "Replace" ;
+ TEXT[ chinese_simplified ] = "¸üÌæ";
+ TEXT[ russian ] = "Çàìåíèòü";
+ TEXT[ polish ] = "Zamieñ";
+ TEXT[ japanese ] = "’uŠ·";
+ TEXT[ chinese_traditional ] = "¥N´À";
+ TEXT[ arabic ] = "ÇÓÊÈÏÇá";
+ TEXT[ dutch ] = "Vervangen";
+ TEXT[ chinese_simplified ] = "¸üÌæ";
+ TEXT[ greek ] = "ÁíôéêáôÜóôáóç";
+ TEXT[ korean ] = "¹Ù²Ù±â";
+ TEXT[ turkish ] = "Deðiþtir";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSERTSECTION
+{
+ TEXT = "Bereich einfügen" ;
+ TEXT [ English ] = "Section insert" ;
+ TEXT [ norwegian ] = "Sett inn område" ;
+ TEXT [ italian ] = "Inserisci area" ;
+ TEXT [ portuguese_brazilian ] = "Inserir seção" ;
+ TEXT [ portuguese ] = "Inserir secção" ;
+ TEXT [ finnish ] = "Lisää osa" ;
+ TEXT [ danish ] = "Indsæt område" ;
+ TEXT [ french ] = "Insérer une section" ;
+ TEXT [ swedish ] = "Infoga område" ;
+ TEXT [ dutch ] = "Bereik invoegen" ;
+ TEXT [ spanish ] = "Insertar área" ;
+ TEXT [ english_us ] = "Insert section" ;
+ TEXT[ chinese_simplified ] = "²åÈëÇøÓò";
+ TEXT[ russian ] = "Âñòàâèòü îáëàñòü";
+ TEXT[ polish ] = "Wstaw sekcjê";
+ TEXT[ japanese ] = "—̈æ‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J°Ï°ì";
+ TEXT[ arabic ] = "ÅÏÑÇÌ äØÇÞ";
+ TEXT[ dutch ] = "Bereik invoegen";
+ TEXT[ chinese_simplified ] = "²åÈëÇøÓò";
+ TEXT[ greek ] = "ÐñïóèÞêç ðåñéï÷Þò";
+ TEXT[ korean ] = "±¸¿ª »ðÀÔ";
+ TEXT[ turkish ] = "Bölüm ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DELETESECTION
+{
+ TEXT = "Bereich löschen" ;
+ TEXT [ English ] = "Section delete" ;
+ TEXT [ norwegian ] = "Slett område" ;
+ TEXT [ italian ] = "Elimina area" ;
+ TEXT [ portuguese_brazilian ] = "Apagar seção" ;
+ TEXT [ portuguese ] = "Eliminar categoria" ;
+ TEXT [ finnish ] = "Poista osa" ;
+ TEXT [ danish ] = "Slet område" ;
+ TEXT [ french ] = "Supprimer la section" ;
+ TEXT [ swedish ] = "Radera kategori" ;
+ TEXT [ dutch ] = "Bereik wissen" ;
+ TEXT [ spanish ] = "Eliminar área" ;
+ TEXT [ english_us ] = "Delete section" ;
+ TEXT[ chinese_simplified ] = "ɾ³ýÇøÓò";
+ TEXT[ russian ] = "Óäàëèòü êàòåãîðèþ";
+ TEXT[ polish ] = "Usuñ obszar";
+ TEXT[ japanese ] = "—̈æ‚Ìíœ";
+ TEXT[ chinese_traditional ] = "§R°£°Ï°ì";
+ TEXT[ arabic ] = "ÍÐÝ ÇáÝÆÉ";
+ TEXT[ dutch ] = "Bereik wissen";
+ TEXT[ chinese_simplified ] = "ɾ³ýÇøÓò";
+ TEXT[ greek ] = "ÄéáãñáöÞ êáôçãïñßáò";
+ TEXT[ korean ] = "ºÐ·ùÇ׸ñ »èÁ¦";
+ TEXT[ turkish ] = "Bölümü sil";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_CHANGESECTION
+{
+ TEXT = "Bereich ändern" ;
+ TEXT [ English ] = "Section change" ;
+ TEXT [ norwegian ] = "Endre område" ;
+ TEXT [ italian ] = "Cambia area" ;
+ TEXT [ portuguese_brazilian ] = "Mudar seção" ;
+ TEXT [ portuguese ] = "Alterar secção" ;
+ TEXT [ finnish ] = "Vaihda osa" ;
+ TEXT [ danish ] = "Modificer område" ;
+ TEXT [ french ] = "Modifier section" ;
+ TEXT [ swedish ] = "Ändra område" ;
+ TEXT [ dutch ] = "Bereik wijzigen" ;
+ TEXT [ spanish ] = "Modificar área" ;
+ TEXT [ english_us ] = "Modify section" ;
+ TEXT[ chinese_simplified ] = "¸ü¸ÄÇøÓò";
+ TEXT[ russian ] = "Èçìåíèòü îáëàñòü";
+ TEXT[ polish ] = "Zmodyfikuj sekcjê";
+ TEXT[ japanese ] = "¾¸¼®Ý‚Ì•ÏX";
+ TEXT[ chinese_traditional ] = "Åܧó°Ï°ì";
+ TEXT[ arabic ] = "ÊÚÏíá ÇáäØÇÞ";
+ TEXT[ dutch ] = "Bereik wijzigen";
+ TEXT[ chinese_simplified ] = "¸ü¸ÄÇøÓò";
+ TEXT[ greek ] = "Ôñïðïðïßçóç ðåñéï÷Þò";
+ TEXT[ korean ] = "±¸¿ª ¼öÁ¤";
+ TEXT[ turkish ] = "Bölümü deðiþtir";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_CHANGESECTPASSWD
+{
+ TEXT = "Passwortschutz ändern" ;
+ TEXT [ English ] = "password protected change" ;
+ Text [ english_us ] = "Change password protection" ;
+ Text [ italian ] = "Cambia protezione password" ;
+ Text [ spanish ] = "Modificar contraseña" ;
+ Text [ french ] = "Modification du mot de passe" ;
+ Text [ dutch ] = "Wachtwoordbeveiliging wijzigen" ;
+ Text [ swedish ] = "Ändra lösenordsskydd" ;
+ Text [ danish ] = "Modificer adgangskodebeskyttelse" ;
+ Text [ portuguese ] = "Alterar protecção da senha" ;
+ Text [ portuguese_brazilian ] = "Paßwortschutz ändern" ;
+ Text[ chinese_simplified ] = "¸ü¸Ä±£»¤¿ÚÁî";
+ Text[ russian ] = "Èçìåíèòü çàùèòó ïàðîëåì";
+ Text[ polish ] = "Zmieñ ochronê has³a";
+ Text[ japanese ] = "Ê߽ܰÄÞ•ÛŒì‚Ì•ÏX";
+ Text[ chinese_traditional ] = "Åܧó«OÅ@±K½X";
+ Text[ arabic ] = "ÊÛííÑ ÍãÇíÉ ßáãÉ ÇáÓÑ";
+ Text[ dutch ] = "Wachtwoordbeveiliging wijzigen";
+ Text[ chinese_simplified ] = "¸ü¸Ä±£»¤¿ÚÁî";
+ Text[ greek ] = "ÁëëáãÞ ðñïóôáóßáò êùäéêïý ðñüóâáóçò";
+ Text[ korean ] = "Æнº¿öµå º¸È£ º¯°æ";
+ Text[ turkish ] = "Þifre korumasýný deðiþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHANGEDEFATTR
+{
+ TEXT = "Standardwerte ändern" ;
+ TEXT [ English ] = "Defaults change" ;
+ TEXT [ norwegian ] = "Endre standard" ;
+ TEXT [ italian ] = "Cambia valori predefiniti" ;
+ TEXT [ portuguese_brazilian ] = "Mudar padrões" ;
+ TEXT [ portuguese ] = "Alterar valores padrão" ;
+ TEXT [ finnish ] = "Muuta oletuksia" ;
+ TEXT [ danish ] = "Modificer standardværdier" ;
+ TEXT [ french ] = "Changement des valeurs standard" ;
+ TEXT [ swedish ] = "Ändra de standardvärdena" ;
+ TEXT [ dutch ] = "Standaardwaarden wijzigen" ;
+ TEXT [ spanish ] = "Modificar valores estándar" ;
+ TEXT [ english_us ] = "Modify default values" ;
+ TEXT[ chinese_simplified ] = "¸ü¸Ä±ê×¼Öµ";
+ TEXT[ russian ] = "Èçìåíèòü ñòàíäàðòíûå çíà÷åíèÿ";
+ TEXT[ polish ] = "Zmieñ wartoœci domyœlne";
+ TEXT[ japanese ] = "•W€’l‚Ì•ÏX";
+ TEXT[ chinese_traditional ] = "Åܧó¼Ð·Ç­È";
+ TEXT[ arabic ] = "ÊÚÏíá ÇáÞíã ÇáÇÝÊÑÇÖíÉ";
+ TEXT[ dutch ] = "Standaardwaarden wijzigen";
+ TEXT[ chinese_simplified ] = "¸ü¸Ä±ê×¼Öµ";
+ TEXT[ greek ] = "Ôñïðïðïßçóç ðñïåðéëåãìÝíùí ôéìþí";
+ TEXT[ korean ] = "±âº»°ª ¼öÁ¤";
+ TEXT[ turkish ] = "Standart deðerleri deðiþtir";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_OUTLINE_LR
+{
+ TEXT = "Gliederung stufen" ;
+ TEXT [ English ] = "Outline promote" ;
+ TEXT [ norwegian ] = "Framhev Omriss" ;
+ TEXT [ italian ] = "Graduare struttura" ;
+ TEXT [ portuguese_brazilian ] = "Promover vazado" ;
+ TEXT [ portuguese ] = "Subir esquema" ;
+ TEXT [ finnish ] = "Korota jäsennys" ;
+ TEXT [ danish ] = "Inddel disposition" ;
+ TEXT [ french ] = "Échelonner la structure" ;
+ TEXT [ swedish ] = "Höja dispositionsnivån" ;
+ TEXT [ dutch ] = "Overzichtsniveaus bepalen" ;
+ TEXT [ spanish ] = "Escalonar Esquema" ;
+ TEXT [ english_us ] = "Promote Outline" ;
+ TEXT[ chinese_simplified ] = "·Ö¼¶´ó¸Ù";
+ TEXT[ russian ] = "Óðîâíè ñòðóêòóðû";
+ TEXT[ polish ] = "Poziomy konspektu";
+ TEXT[ japanese ] = "±³Äײ݂ÌÚÍÞÙ";
+ TEXT[ chinese_traditional ] = "¤À¯Å¤jºõ";
+ TEXT[ arabic ] = "ÊÏÑíÌ ÇáÊÞÓíã";
+ TEXT[ dutch ] = "Overzichtsniveaus bepalen";
+ TEXT[ chinese_simplified ] = "·Ö¼¶´ó¸Ù";
+ TEXT[ greek ] = "ÄéÜñèñùóç ìå åóï÷Ýò";
+ TEXT[ korean ] = "°³¿ä ¼öÁØ ¿Ã¸®±â";
+ TEXT[ turkish ] = "Anahatý deðiþtir";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_OUTLINE_UD
+{
+ TEXT = "Gliederung verschieben" ;
+ TEXT [ English ] = "Outline move" ;
+ TEXT [ norwegian ] = "Flytt omriss" ;
+ TEXT [ italian ] = "Sposta struttura" ;
+ TEXT [ portuguese_brazilian ] = "Mover vazado" ;
+ TEXT [ portuguese ] = "Mover esquema" ;
+ TEXT [ finnish ] = "Siirrä jäsennys" ;
+ TEXT [ danish ] = "Flyt disposition" ;
+ TEXT [ french ] = "Déplacer le plan" ;
+ TEXT [ swedish ] = "Flytta disposition" ;
+ TEXT [ dutch ] = "Overzicht verplaatsen" ;
+ TEXT [ spanish ] = "Desplazar esquema" ;
+ TEXT [ english_us ] = "Move outline" ;
+ TEXT[ chinese_simplified ] = "Òƶ¯´ó¸Ù";
+ TEXT[ russian ] = "Ïåðåìåñòèòü ñòðóêòóðó";
+ TEXT[ polish ] = "Przesuñ konspekt";
+ TEXT[ japanese ] = "±³Äײ݂̈ړ®";
+ TEXT[ chinese_traditional ] = "²¾°Ê¤jºõ";
+ TEXT[ arabic ] = "äÞá ÇáÊÞÓíã";
+ TEXT[ dutch ] = "Overzicht verplaatsen";
+ TEXT[ chinese_simplified ] = "Òƶ¯´ó¸Ù";
+ TEXT[ greek ] = "Ìåôáêßíçóç äéÜñèñùóçò";
+ TEXT[ korean ] = "°³¿ä À̵¿";
+ TEXT[ turkish ] = "Anahatý taþý";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_INSNUM
+{
+ TEXT = "Nummerierung einfügen" ;
+ TEXT [ English ] = "Numbering insert" ;
+ TEXT [ norwegian ] = "Sett inn nummerering" ;
+ TEXT [ italian ] = "Inserisci numerazione" ;
+ TEXT [ portuguese_brazilian ] = "Inserir Numeração" ;
+ TEXT [ portuguese ] = "Inserir numeração" ;
+ TEXT [ finnish ] = "Lisää numerointi" ;
+ TEXT [ danish ] = "Indsæt nummerering" ;
+ TEXT [ french ] = "Insérer une numérotation" ;
+ TEXT [ swedish ] = "Infoga numrering" ;
+ TEXT [ dutch ] = "Nummering invoegen" ;
+ TEXT [ spanish ] = "Insertar numeración" ;
+ TEXT [ english_us ] = "Insert numbering" ;
+ TEXT[ chinese_simplified ] = "²åÈë±àºÅ";
+ TEXT[ russian ] = "Âñòàâèòü íóìåðàöèþ";
+ TEXT[ polish ] = "Wstaw numeracjê";
+ TEXT[ japanese ] = "”Ô†•t‚¯‚Ì‘}“ü";
+ TEXT[ chinese_traditional ] = "´¡¤J½s¸¹";
+ TEXT[ arabic ] = "ÅÏÑÇÌ ÊÑÞíã";
+ TEXT[ dutch ] = "Nummering invoegen";
+ TEXT[ chinese_simplified ] = "²åÈë±àºÅ";
+ TEXT[ greek ] = "ÐñïóèÞêç áñßèìçóçò";
+ TEXT[ korean ] = "¹øÈ£ »ðÀÔ";
+ TEXT[ turkish ] = "Numaralama ekle";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_NUMUPDOWN
+{
+ TEXT = "Nummerierung stufen" ;
+ TEXT [ English ] = "Numbering promote" ;
+ TEXT [ norwegian ] = "Framhev Nummerering" ;
+ TEXT [ italian ] = "Sposta numerazione" ;
+ TEXT [ portuguese_brazilian ] = "Mover Numeração" ;
+ TEXT [ portuguese ] = "Escalonar numeração" ;
+ TEXT [ finnish ] = "Korota numerointi" ;
+ TEXT [ danish ] = "Inddel nummerering" ;
+ TEXT [ french ] = "Échelonner la numérotation" ;
+ TEXT [ swedish ] = "Flernivånumrering" ;
+ TEXT [ dutch ] = "Nummering indelen" ;
+ TEXT [ spanish ] = "Graduar numeración" ;
+ TEXT [ english_us ] = "Shift numbering" ;
+ TEXT[ chinese_simplified ] = "·Ö¼¶±àºÅ";
+ TEXT[ russian ] = "Óðîâíè íóìåðàöèè";
+ TEXT[ polish ] = "Poziomy numeracji";
+ TEXT[ japanese ] = "”Ô†•t‚¯‚Ì’iŠK•t‚¯";
+ TEXT[ language_user1 ] = " ";
+ TEXT[ chinese_traditional ] = "¤À¯Å½s¸¹";
+ TEXT[ arabic ] = "ÊÏÑíÌ ÇáÊÑÞíã";
+ TEXT[ dutch ] = "Nummering indelen";
+ TEXT[ chinese_simplified ] = "·Ö¼¶±àºÅ";
+ TEXT[ greek ] = "Áñßèìçóç ìå åóï÷Ýò";
+ TEXT[ korean ] = "¹øÈ£ ¹Ð±â";
+ TEXT[ turkish ] = "Numaralamayý deðiþtir";
+};
+String STR_MOVENUM
+{
+ TEXT = "Absätze verschieben" ;
+ TEXT [ English ] = "Paragraph move" ;
+ Text [ portuguese ] = "Mover parágrafos" ;
+ Text [ english_us ] = "Move paragraphs" ;
+ Text [ portuguese_brazilian ] = "Promover Numeração" ;
+ Text [ swedish ] = "Flytta stycken" ;
+ Text [ danish ] = "Flyt afsnit" ;
+ Text [ italian ] = "Sposta paragrafi" ;
+ Text [ spanish ] = "Desplazar párrafos" ;
+ Text [ french ] = "Déplacer paragraphes" ;
+ Text [ dutch ] = "Alinea´s verplaatsen" ;
+ Text[ chinese_simplified ] = "Òƶ¯¶ÎÂä";
+ Text[ russian ] = "Ïåðåìåñòèòü àáçàöû";
+ Text[ polish ] = "Przesuñ akapity";
+ Text[ japanese ] = "’i—Ž‚̈ړ®";
+ Text[ chinese_traditional ] = "²¾°Ê¬q¸¨";
+ Text[ arabic ] = "ÅÒÇÍÉ ÇáÝÞÑÇÊ";
+ Text[ dutch ] = "Alinea´s verplaatsen";
+ Text[ chinese_simplified ] = "Òƶ¯¶ÎÂä";
+ Text[ greek ] = "ÌåôáöïñÜ ðáñáãñÜöùí";
+ Text[ korean ] = "´Ü¶ô À̵¿";
+ Text[ turkish ] = "Paragraflarý taþý";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERTDRAW
+{
+ TEXT = "Zeichenobjekt einfügen" ;
+ TEXT [ English ] = "Insert draw object" ;
+ Text [ dutch ] = "Tekenobject invoegen" ;
+ Text [ english_us ] = "Insert Draw Object" ;
+ Text [ italian ] = "Inserisci oggetti di disegno" ;
+ Text [ spanish ] = "Insertar objeto de dibujo" ;
+ Text [ french ] = "Insérer un objet de dessin" ;
+ Text [ swedish ] = "Infoga ritobjekt" ;
+ Text [ danish ] = "Indsæt tegneobjekt" ;
+ Text [ portuguese ] = "Inserir objecto de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekt einfügen" ;
+ Text[ chinese_simplified ] = "²åÈë»æͼ¶ÔÏó";
+ Text[ russian ] = "Âñòàâèòü ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Wstaw obiekty rysunkowe";
+ Text[ japanese ] = "•`‰æµÌÞ¼Þª¸Ä‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤Jø¹Ïª«¥ó";
+ Text[ arabic ] = "ÅÏÑÇÌ ßÇÆä ÑÓæãí";
+ Text[ dutch ] = "Tekenobject invoegen";
+ Text[ chinese_simplified ] = "²åÈë»æͼ¶ÔÏó";
+ Text[ greek ] = "ÐñïóèÞêç áíôéêåéìÝíïõ ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼ »ðÀÔ";
+ Text[ turkish ] = "Çizim nesnesi ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_NUMORNONUM
+{
+ TEXT = "Nummer an/aus" ;
+ TEXT [ English ] = "Number on/off" ;
+ Text [ english_us ] = "Number On/Off" ;
+ Text [ italian ] = "Numero on/off" ;
+ Text [ spanish ] = "Número activado/desactivado" ;
+ Text [ french ] = "Numéro act./désact." ;
+ Text [ dutch ] = "Nummer aan/uit" ;
+ Text [ swedish ] = "Nummer på/av" ;
+ Text [ danish ] = "Aktiver/deaktiver nummer" ;
+ Text [ portuguese ] = "Número activado/des." ;
+ Text [ portuguese_brazilian ] = "Nummer an/aus" ;
+ Text[ chinese_simplified ] = "ÏÔʾ/ÒþÈë±àºÅ";
+ Text[ russian ] = "Âêë./Îòêë. íîìåðà";
+ Text[ polish ] = "W³¹cz/Wy³¹cz numer";
+ Text[ japanese ] = "”Ô† µÝ/µÌ";
+ Text[ chinese_traditional ] = "Åã¥Ü/Áô¤J½s¸¹";
+ Text[ arabic ] = "ÅÙåÇÑ/ÅÎÝÇÁ ÇáÑÞã";
+ Text[ dutch ] = "Nummer aan/uit";
+ Text[ chinese_simplified ] = "ÏÔʾ/ÒþÈë±àºÅ";
+ Text[ greek ] = "Áñéèìüò Íáé/¼÷é";
+ Text[ korean ] = "¹øÈ£ ÀÛµ¿/ÇØÁ¦";
+ Text[ turkish ] = "Numara açýk/kapalý";
+ Text[ language_user1 ] = " ";
+};
+String STR_INC_LEFTMARGIN
+{
+ TEXT = "Einzug vergrößern" ;
+ TEXT [ English ] = "Increase Indent" ;
+ Text [ dutch ] = "Inspringing vergroten" ;
+ Text [ english_us ] = "Increase Indent" ;
+ Text [ swedish ] = "Öka indrag" ;
+ Text [ danish ] = "Forstør indrykning" ;
+ Text [ italian ] = "Aumenta rientro" ;
+ Text [ spanish ] = "Aumentar sangría" ;
+ Text [ french ] = "Augmenter le retrait" ;
+ Text [ portuguese ] = "Aumentar avanço" ;
+ Text [ portuguese_brazilian ] = "Einzug vergrößern" ;
+ Text[ chinese_simplified ] = "Ôö´óËõ½ø";
+ Text[ russian ] = "Óâåëè÷èòü îòñòóï";
+ Text[ polish ] = "Zwiêksz wciêcie";
+ Text[ japanese ] = "²ÝÃÞÝÄ‚ÌŠÔŠu‚ÌŠg‘å";
+ Text[ chinese_traditional ] = "¼W¤jÁY±Æ";
+ Text[ arabic ] = "ÒíÇÏÉ ÇáÅÒÇÍÉ";
+ Text[ dutch ] = "Inspringing vergroten";
+ Text[ chinese_simplified ] = "Ôö´óËõ½ø";
+ Text[ greek ] = "Áýîçóç åóï÷Þò";
+ Text[ korean ] = "µé¿©¾²±â";
+ Text[ turkish ] = "Girintiyi büyüt";
+ Text[ language_user1 ] = " ";
+};
+String STR_DEC_LEFTMARGIN
+{
+ TEXT = "Einzug verringern" ;
+ TEXT [ English ] = "Decrease Indent" ;
+ Text [ dutch ] = "Inspringing verkleinen" ;
+ Text [ english_us ] = "Decrease indent" ;
+ Text [ swedish ] = "Minska indrag" ;
+ Text [ danish ] = "Formindsk indrykning" ;
+ Text [ italian ] = "Riduci rientro" ;
+ Text [ spanish ] = "Disminuir sangría" ;
+ Text [ french ] = "Diminuer le retrait" ;
+ Text [ portuguese ] = "Reduzir avanço de parágrafo" ;
+ Text [ portuguese_brazilian ] = "Einzug verringern" ;
+ Text[ chinese_simplified ] = "¼õÉÙËõ½ø";
+ Text[ russian ] = "Óìåíüøèòü îòñòóï";
+ Text[ polish ] = "Zmiejsz wciêcie";
+ Text[ japanese ] = "²ÝÃÞÝÄŠÔŠu‚Ìk¬";
+ Text[ chinese_traditional ] = "´î¤ÖÁY±Æ";
+ Text[ arabic ] = "ÅäÞÇÕ ÇáÅÒÇÍÉ";
+ Text[ dutch ] = "Inspringing verkleinen";
+ Text[ chinese_simplified ] = "¼õÉÙËõ½ø";
+ Text[ greek ] = "Ìåßùóç åóï÷Þò";
+ Text[ korean ] = "³»¾î¾²±â";
+ Text[ turkish ] = "Girintiyi küçült";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERTLABEL
+{
+ Text = "Beschriftung einfügen" ;
+ Text [ English ] = "Insert caption" ;
+ Text [ english_us ] = "Insert caption" ;
+ Text [ portuguese_brazilian ] = "Beschriftung einfügen" ;
+ Text [ swedish ] = "Infoga bildtext" ;
+ Text [ danish ] = "Indsæt billedtekst" ;
+ Text [ italian ] = "Inserisci dicitura" ;
+ Text [ spanish ] = "Insertar etiqueta" ;
+ Text [ french ] = "Insérer une légende" ;
+ Text [ dutch ] = "Bijschrift invoegen" ;
+ Text [ portuguese ] = "Inserir legenda" ;
+ Text[ chinese_simplified ] = "²åÈë±êÇ©";
+ Text[ russian ] = "Âñòàâèòü íàçâàíèå";
+ Text[ polish ] = "Wstaw legendê";
+ Text[ japanese ] = "×ÍÞÙ‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¼ÐÅÒ";
+ Text[ arabic ] = "ÅÏÑÇÌ ÊÓãíÉ ÊæÖíÍíÉ";
+ Text[ dutch ] = "Bijschrift invoegen";
+ Text[ chinese_simplified ] = "²åÈë±êÇ©";
+ Text[ greek ] = "ÐñïóèÞêç åðéãñáöÞò";
+ Text[ korean ] = "ĸ¼Ç »ðÀÔ";
+ Text[ turkish ] = "Etiket ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_SETNUMRULESTART
+{
+ Text = "Nummerierung neu starten" ;
+ Text [ English ] = "Start numbering" ;
+ Text [ portuguese ] = "Reiniciar numeração" ;
+ Text [ english_us ] = "Restart numbering" ;
+ Text [ portuguese_brazilian ] = "Numerierung neu starten" ;
+ Text [ swedish ] = "Starta numrering på nytt" ;
+ Text [ danish ] = "Genstart nummerering" ;
+ Text [ italian ] = "Riavvia la numerazione" ;
+ Text [ spanish ] = "Reiniciar numeración" ;
+ Text [ french ] = "Reprendre la numérotation" ;
+ Text [ dutch ] = "Nieuwe nummering" ;
+ Text[ chinese_simplified ] = "ÖØпªÊ¼±àºÅ";
+ Text[ russian ] = "Ïåðåçàïóñê íóìåðàöèè";
+ Text[ polish ] = "W³¹cz ponownie numeracjê";
+ Text[ japanese ] = "”Ô†•t‚¯‚ðV‚µ‚­ŠJŽn";
+ Text[ chinese_traditional ] = "­«·s½s¸¹";
+ Text[ arabic ] = "ÅÚÇÏÉ ÈÏÁ ÇáÊÑÞíã";
+ Text[ dutch ] = "Nieuwe nummering";
+ Text[ chinese_simplified ] = "ÖØпªÊ¼±àºÅ";
+ Text[ greek ] = "Åðáíåêêßíçóç áñßèìçóçò";
+ Text[ korean ] = "¹øÈ£ ´Ù½Ã ½ÃÀÛ";
+ Text[ turkish ] = "Numaralamayý yeniden baþlat";
+ Text[ language_user1 ] = " ";
+};
+String STR_CHANGEFTN
+{
+ Text = "Fußnote ändern" ;
+ Text [ English ] = "Change footnote" ;
+ Text [ portuguese ] = "Modificar nota de rodapé" ;
+ Text [ english_us ] = "Modify footnote" ;
+ Text [ portuguese_brazilian ] = "Fußnote ändern" ;
+ Text [ swedish ] = "Ändra fotnot" ;
+ Text [ danish ] = "Modificer fodnote" ;
+ Text [ italian ] = "Modifica nota a piè pagina" ;
+ Text [ spanish ] = "Modificar nota al pie" ;
+ Text [ french ] = "Modifier note de bas de page" ;
+ Text [ dutch ] = "Voetnoot wijzigingen" ;
+ Text[ chinese_simplified ] = "¸ü¸Ä×¢½Å";
+ Text[ russian ] = "Èçìåíèòü ñíîñêó";
+ Text[ polish ] = "Zmodyfikuj przypis dolny";
+ Text[ japanese ] = "‹r’‚Ì•ÏX";
+ Text[ chinese_traditional ] = "Åܧóµù¸}";
+ Text[ arabic ] = "ÊÚÏíá ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ dutch ] = "Voetnoot wijzigingen";
+ Text[ chinese_simplified ] = "¸ü¸Ä×¢½Å";
+ Text[ greek ] = "Ôñïðïðïßçóç õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ ¼öÁ¤";
+ Text[ turkish ] = "Dipnotu deðiþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_REDLINE
+{
+ /* !! sollte NIE gebraucht/uebersetzt werden !! */
+ Text = "Redline" ;
+};
+String STR_ACCEPT_REDLINE
+{
+ Text = "Änderung akzeptieren" ;
+ Text [ English ] = "Accept redline" ;
+ Text [ english_us ] = "Accept changes" ;
+ Text [ portuguese_brazilian ] = "Änderung akzeptieren" ;
+ Text [ swedish ] = "Acceptera ändring" ;
+ Text [ danish ] = "Accepter ændring" ;
+ Text [ italian ] = "Accetta le modifiche" ;
+ Text [ spanish ] = "Aceptar modificación" ;
+ Text [ french ] = "Accepter la modification" ;
+ Text [ dutch ] = "Wijziging accepteren" ;
+ Text [ portuguese ] = "Aceitar modificações" ;
+ Text[ chinese_simplified ] = "½ÓÊܸü¸Ä";
+ Text[ russian ] = "Ïðèíÿòü èçìåíåíèÿ";
+ Text[ polish ] = "Zaakceptuj zmiany";
+ Text[ japanese ] = "•ÏX‚ðŽó‚¯“ü‚ê‚é";
+ Text[ chinese_traditional ] = "±µ¨üÅܧó";
+ Text[ arabic ] = "ÞÈæá ÇáÊÛííÑÇÊ";
+ Text[ dutch ] = "Wijziging accepteren";
+ Text[ chinese_simplified ] = "½ÓÊܸü¸Ä";
+ Text[ greek ] = "Áðïäï÷Þ áëëáãþí";
+ Text[ korean ] = "º¯°æ Àû¿ë";
+ Text[ turkish ] = "Deðiþiklikleri kaydet";
+ Text[ language_user1 ] = " ";
+};
+String STR_REJECT_REDLINE
+{
+ Text = "Änderung ablehnen" ;
+ Text [ English ] = "Reject redline" ;
+ Text [ portuguese ] = "Rejeitar alteração" ;
+ Text [ english_us ] = "Reject change" ;
+ Text [ portuguese_brazilian ] = "Änderung ablehnen" ;
+ Text [ swedish ] = "Ignorera ändring" ;
+ Text [ danish ] = "Forkast ændring" ;
+ Text [ italian ] = "Rifiuta modifica" ;
+ Text [ spanish ] = "Rechazar modificación" ;
+ Text [ french ] = "Rejeter la modification" ;
+ Text [ dutch ] = "Wijziging verwerpen" ;
+ Text[ chinese_simplified ] = "¾Ü¾ø¸ü¸Ä";
+ Text[ russian ] = "Îòêëîíèòü èçìåíåíèÿ";
+ Text[ polish ] = "Odrzuæ zmiany";
+ Text[ japanese ] = "•ÏX‚ðŽó‚¯“ü‚ê‚È‚¢";
+ Text[ chinese_traditional ] = "©Úµ´Åܧó";
+ Text[ arabic ] = "ÑÝÖ ÇáÊÛííÑ";
+ Text[ dutch ] = "Wijziging verwerpen";
+ Text[ chinese_simplified ] = "¾Ü¾ø¸ü¸Ä";
+ Text[ greek ] = "Áðüññéøç áëëáãþí";
+ Text[ korean ] = "º¯°æ °ÅºÎ";
+ Text[ turkish ] = "Deðiþikliði reddet";
+ Text[ language_user1 ] = " ";
+};
+String STR_SPLIT_TABLE
+{
+ Text = "Tabelle auftrennen" ;
+ Text [ English ] = "Split table" ;
+ Text [ portuguese ] = "Dividir tabela" ;
+ Text [ english_us ] = "Split Table" ;
+ Text [ portuguese_brazilian ] = "Tabelle teilen" ;
+ Text [ swedish ] = "Dela tabell" ;
+ Text [ danish ] = "Opdel tabel" ;
+ Text [ italian ] = "Dividi tabella" ;
+ Text [ spanish ] = "Dividir tabla" ;
+ Text [ french ] = "Scinder le tableau" ;
+ Text [ dutch ] = "Tabel splitsen" ;
+ Text[ chinese_simplified ] = "·Ö¸ô±í¸ñ";
+ Text[ russian ] = "Ðàçáèòü òàáëèöó";
+ Text[ polish ] = "Rozdziel tabelê";
+ Text[ japanese ] = "•\\‚Ì•ªŠ„";
+ Text[ chinese_traditional ] = "¤À¶}ªí®æ";
+ Text[ arabic ] = "ÝÕá ÇáÌÏæá";
+ Text[ dutch ] = "Tabel splitsen";
+ Text[ chinese_simplified ] = "·Ö¸ô±í¸ñ";
+ Text[ greek ] = "Äéáßñåóç ðßíáêá";
+ Text[ korean ] = "Ç¥ ³ª´©±â";
+ Text[ turkish ] = "Tabloyu böl";
+ Text[ language_user1 ] = " ";
+};
+String STR_DONTEXPAND
+{
+ Text = "Attribut stoppen" ;
+ Text [ English ] = "Stop attribute" ;
+ Text [ portuguese ] = "Parar atributo" ;
+ Text [ english_us ] = "Stop attribute" ;
+ Text [ portuguese_brazilian ] = "Attribut stoppen" ;
+ Text [ swedish ] = "Stoppa attribut" ;
+ Text [ danish ] = "Stop attribut" ;
+ Text [ italian ] = "Interrompi attributo" ;
+ Text [ spanish ] = "Detener atributo" ;
+ Text [ french ] = "Arrêter" ;
+ Text [ dutch ] = "Attribuut stoppen" ;
+ Text[ chinese_simplified ] = "Í£Ö¹ÏÔʾÊôÐÔ";
+ Text[ russian ] = "Îñòàíîâèòü àòðèáóò";
+ Text[ polish ] = "Zatrzymaj atrybuty";
+ Text[ japanese ] = "‘®«‚Ì’†Ž~";
+ Text[ chinese_traditional ] = "°±¤îÅã¥ÜÄÝ©Ê";
+ Text[ arabic ] = "æÞÝ ÇáÓãÇÊ";
+ Text[ dutch ] = "Attribuut stoppen";
+ Text[ chinese_simplified ] = "Í£Ö¹ÏÔʾÊôÐÔ";
+ Text[ greek ] = "ÄéáêïðÞ éäéüôçôáò";
+ Text[ korean ] = "¼Ó¼º ÁßÁö";
+ Text[ turkish ] = "Özniteliði durdur";
+ Text[ language_user1 ] = " ";
+};
+String STR_AUTOCORRECT
+{
+ Text = "AutoKorrektur" ;
+ Text [ English ] = "AutoCorrect" ;
+ Text [ portuguese ] = "AutoCorrecção" ;
+ Text [ english_us ] = "AutoCorrect" ;
+ Text [ portuguese_brazilian ] = "AutoKorrektur" ;
+ Text [ swedish ] = "AutoKorrigering" ;
+ Text [ danish ] = "AutoKorrektur" ;
+ Text [ italian ] = "Correzione automatica" ;
+ Text [ spanish ] = "AutoCorrección" ;
+ Text [ french ] = "AutoCorrection" ;
+ Text [ dutch ] = "AutoCorrectie" ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸üÕý";
+ Text[ russian ] = "Àâòîçàìåíà";
+ Text[ polish ] = "Autokorekta";
+ Text[ japanese ] = "µ°ÄºÚ¸Ä";
+ Text[ chinese_traditional ] = "¦Û°Ê®Õ¥¿";
+ Text[ arabic ] = "ÊÕÍíÍ ÊáÞÇÆí";
+ Text[ dutch ] = "AutoCorrectie";
+ Text[ chinese_simplified ] = "×Ô¶¯¸üÕý";
+ Text[ greek ] = "ÁõôïÄéüñèùóç";
+ Text[ korean ] = "ÀÚµ¿ °íħ";
+ Text[ turkish ] = "Otomatik düzeltme";
+ Text[ language_user1 ] = " ";
+};
+String STR_MERGE_TABLE
+{
+ Text = "Tabelle verbinden" ;
+ Text [ English ] = "Merge table" ;
+ Text[ english_us ] = "Merge table";
+ Text[ portuguese ] = "Unir tabela";
+ Text[ russian ] = "Îáúåäèíèòü òàáëèöó";
+ Text[ dutch ] = "Tabel verbinden";
+ Text[ french ] = "Fusionner des tableaux";
+ Text[ spanish ] = "unir tablas";
+ Text[ italian ] = "Collega tabella";
+ Text[ danish ] = "Flet tabeller";
+ Text[ swedish ] = "Förbind tabeller";
+ Text[ polish ] = "Scal tabelê";
+ Text[ portuguese_brazilian ] = "Merge table";
+ Text[ japanese ] = "•\\‚ÌŒ‹‡";
+ Text[ chinese_simplified ] = "ºÏ²¢±í¸ñ";
+ Text[ chinese_traditional ] = "¦X¦}ªí®æ";
+ Text[ arabic ] = "æÕá ÇáÌÏæá";
+ Text[ dutch ] = "Tabel verbinden";
+ Text[ chinese_simplified ] = "ºÏ²¢±í¸ñ";
+ Text[ greek ] = "Óýíäåóç ðéíÜêùí";
+ Text[ korean ] = "Ç¥ º´ÇÕ";
+ Text[ turkish ] = "Tabloyu birleþtir";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_DELNUM
+{
+ TEXT = "Nummerierung löschen" ;
+ TEXT [ English ] = "Numbering delete" ;
+ TEXT [ norwegian ] = "Slett nummerering" ;
+ TEXT [ italian ] = "Elimina numerazione" ;
+ TEXT [ portuguese_brazilian ] = "Apagar Numeração" ;
+ TEXT [ portuguese ] = "Eliminar numeração" ;
+ TEXT [ finnish ] = "Poista numerointi" ;
+ TEXT [ danish ] = "Slet nummerering" ;
+ TEXT [ french ] = "Supprimer la numérotation" ;
+ TEXT [ swedish ] = "Radera numrering" ;
+ TEXT [ dutch ] = "Nummering wissen" ;
+ TEXT [ spanish ] = "Eliminar numeración" ;
+ TEXT [ english_us ] = "Delete numbering" ;
+ TEXT[ chinese_simplified ] = "ɾ³ý±àºÅ";
+ TEXT[ russian ] = "Óäàëèòü íóìåðàöèþ";
+ TEXT[ polish ] = "Usuñ numeracjê";
+ TEXT[ japanese ] = "”Ô†•t‚¯‚Ìíœ";
+ TEXT[ chinese_traditional ] = "§R°£½s¸¹";
+ TEXT[ arabic ] = "ÍÐÝ ÇáÊÑÞíã";
+ TEXT[ dutch ] = "Nummering wissen";
+ TEXT[ chinese_simplified ] = "ɾ³ý±àºÅ";
+ TEXT[ greek ] = "ÄéáãñáöÞ áñßèìçóçò";
+ TEXT[ korean ] = "¹øÈ£ Á¦°Å";
+ TEXT[ turkish ] = "Numaralamayý sil";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DRAWUNDO
+{
+ TEXT = "Zeichenobjekte" ;
+ TEXT [ English ] = "Drawobjects" ;
+ Text [ english_us ] = "Draw objects" ;
+ Text [ italian ] = "Oggetti di disegno" ;
+ Text [ spanish ] = "Objetos de dibujo" ;
+ Text [ french ] = "Objets de dessin" ;
+ Text [ dutch ] = "Tekenobjecten" ;
+ Text [ swedish ] = "Ritobjekt" ;
+ Text [ danish ] = "Tegneobjekter" ;
+ Text [ portuguese ] = "Objectos de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekte" ;
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó";
+ Text[ russian ] = "Ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Obiekty rysunkowe";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸Ä";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó";
+ Text[ arabic ] = "ßÇÆäÇÊ ÑÓæãíÉ";
+ Text[ dutch ] = "Tekenobjecten";
+ Text[ chinese_simplified ] = "»æͼ¶ÔÏó";
+ Text[ greek ] = "Áíôéêåßìåíá ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼";
+ Text[ turkish ] = "Çizim nesneleri";
+ Text[ language_user1 ] = " ";
+};
+String STR_DRAWGROUP
+{
+ TEXT = "Zeichenobjekte gruppieren" ;
+ TEXT [ English ] = "Group Drawobjects" ;
+ Text [ dutch ] = "Tekenobjecten groeperen" ;
+ Text [ english_us ] = "Group draw objects" ;
+ Text [ italian ] = "Raggruppa oggetti di disegno" ;
+ Text [ spanish ] = "Agrupar objetos de dibujo" ;
+ Text [ french ] = "Grouper des objets de dessin" ;
+ Text [ swedish ] = "Gruppera ritobjekt" ;
+ Text [ danish ] = "Grupper tegneobjekter" ;
+ Text [ portuguese ] = "Agrupar objectos de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekte gruppieren" ;
+ Text[ chinese_simplified ] = "·Ö×é»æͼ¶ÔÏó";
+ Text[ russian ] = "Ãðóïïèðîâàòü ãðàôè÷åñêèå îáúåêòû";
+ Text[ polish ] = "Grupuj obiekty rysunkowe";
+ Text[ japanese ] = "}Œ`•`‰æ‚ð¸ÞÙ°Ì߉»‚·‚é";
+ Text[ chinese_traditional ] = "ø¹Ïª«¥ó¸s²Õ";
+ Text[ arabic ] = "ÊÌãíÚ ßÇÆäÇÊ ÑÓæãíÉ";
+ Text[ dutch ] = "Tekenobjecten groeperen";
+ Text[ chinese_simplified ] = "·Ö×é»æͼ¶ÔÏó";
+ Text[ greek ] = "Ïìáäïðïßçóç áíôéêåéìÝíùí ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼ ±×·ì";
+ Text[ turkish ] = "Çizim nesnelerini grupla";
+ Text[ language_user1 ] = " ";
+};
+String STR_DRAWUNGROUP
+{
+ TEXT = "Gruppenobjekt auflösen" ;
+ TEXT [ English ] = "Ungroup Drawobjects" ;
+ Text [ english_us ] = "Ungroup drawing objects" ;
+ Text [ italian ] = "Sciogli gruppo oggetti" ;
+ Text [ spanish ] = "Resolver objeto de grupo" ;
+ Text [ french ] = "Dissocier objets de dessin" ;
+ Text [ dutch ] = "Groepsobject opheffen" ;
+ Text [ swedish ] = "Upplös gruppobjekt" ;
+ Text [ danish ] = "Ophæv gruppeobjekter" ;
+ Text [ portuguese ] = "Desagrupar objectos" ;
+ Text [ portuguese_brazilian ] = "Gruppenobjekt auflösen" ;
+ Text[ chinese_simplified ] = "È¡Ïû·Ö×é¶ÔÏó";
+ Text[ russian ] = "Ðàçãðóïïèðîâàòü ãðàôè÷åñêèé îáúåêò";
+ Text[ polish ] = "Rozgrupuj obiekty rysunkowe";
+ Text[ japanese ] = "¸ÞÙ°Ì߉»‚³‚ꂽµÌÞ¼Þ­¸Ä‚̉ðœ";
+ Text[ chinese_traditional ] = "¨ú®ø¸s²Õª«¥ó";
+ Text[ arabic ] = "Ýß ÊÌãíÚ ÇáßÇÆäÇÊ";
+ Text[ dutch ] = "Groepsobject opheffen";
+ Text[ chinese_simplified ] = "È¡Ïû·Ö×é¶ÔÏó";
+ Text[ greek ] = "ÊáôÜñãçóç ïìáäïðïßçóçò áíôéêåéìÝíùí";
+ Text[ korean ] = "±×¸®±â °³Ã¼ ±×·ìÇØÁ¦";
+ Text[ turkish ] = "Nesne grubunu çöz";
+ Text[ language_user1 ] = " ";
+};
+String STR_DRAWDELETE
+{
+ TEXT = "Zeichenobjekte löschen" ;
+ TEXT [ English ] = "Delete DrawObjects" ;
+ Text [ dutch ] = "Tekenobjecten wissen" ;
+ Text [ english_us ] = "Delete drawing objects" ;
+ Text [ italian ] = "Elimina oggetti di disegno" ;
+ Text [ spanish ] = "Eliminar objetos de dibujo" ;
+ Text [ french ] = "Supprimer des objets de dessin" ;
+ Text [ swedish ] = "Radera ritobjekt" ;
+ Text [ danish ] = "Slet tegneobjekter" ;
+ Text [ portuguese ] = "Eliminar objectos de desenho" ;
+ Text [ portuguese_brazilian ] = "Zeichenobjekte löschen" ;
+ Text[ chinese_simplified ] = "ɾ³ý»æͼ¶ÔÏó";
+ Text[ russian ] = "Óäàëèòü ãðàôè÷åñêèå îáúåêòû";
+ Text[ polish ] = "Usuñ obiekty rysunkowe";
+ Text[ japanese ] = "}Œ`•`‰æµÌÞ¼Þª¸Ä‚ð‰ðœ";
+ Text[ chinese_traditional ] = "§R°£Ã¸¹Ïª«¥ó";
+ Text[ arabic ] = "ÍÐÝ ßÇÆäÇÊ ÑÓæãíÉ";
+ Text[ dutch ] = "Tekenobjecten wissen";
+ Text[ chinese_simplified ] = "ɾ³ý»æͼ¶ÔÏó";
+ Text[ greek ] = "ÄéáãñáöÞ áíôéêåéìÝíùí ó÷åäßáóçò";
+ Text[ korean ] = "±×¸®±â °³Ã¼ »èÁ¦";
+ Text[ turkish ] = "Çizim nesnelerini sil";
+ Text[ language_user1 ] = " ";
+};
+String STR_REREAD
+{
+ TEXT = "Grafik ersetzen" ;
+ TEXT [ English ] = "Replace Picture" ;
+ Text [ english_us ] = "Replace graphics" ;
+ Text [ italian ] = "Sostituisci l'immagine" ;
+ Text [ spanish ] = "Reemplazar imagen" ;
+ Text [ french ] = "Remplacer l'image" ;
+ Text [ dutch ] = "Afbeelding vervangen" ;
+ Text [ swedish ] = "Ersätt grafik" ;
+ Text [ danish ] = "Erstat grafik" ;
+ Text [ portuguese ] = "Substituir imagem" ;
+ Text [ portuguese_brazilian ] = "Grafik ersetzen" ;
+ Text[ chinese_simplified ] = "¸üÌæͼÐÎ";
+ Text[ russian ] = "Çàìåíèòü ãðàôèêó";
+ Text[ polish ] = "Zamieñ grafikê";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ì’uŠ·";
+ Text[ chinese_traditional ] = "¥N´À¹Ï¤ù";
+ Text[ arabic ] = "ÇÓÊÈÏÇá ÇáÑÓæãÇÊ";
+ Text[ dutch ] = "Afbeelding vervangen";
+ Text[ chinese_simplified ] = "¸üÌæͼÐÎ";
+ Text[ greek ] = "ÁíôéêáôÜóôáóç ãñáöéêþí";
+ Text[ korean ] = "±×·¡ÇÈ ¹Ù²Ù±â";
+ Text[ turkish ] = "Grafiði deðiþtirmek";
+ Text[ language_user1 ] = " ";
+};
+String STR_DELGRF
+{
+ TEXT = "Grafik löschen" ;
+ TEXT [ English ] = "Delete Picture" ;
+ Text [ dutch ] = "Afbeelding wissen" ;
+ Text [ english_us ] = "Delete graphics" ;
+ Text [ italian ] = "Elimina immagine" ;
+ Text [ spanish ] = "Eliminar imagen" ;
+ Text [ french ] = "Supprimer l'image" ;
+ Text [ swedish ] = "Radera grafik" ;
+ Text [ danish ] = "Slet billede" ;
+ Text [ portuguese ] = "Eliminar imagem" ;
+ Text [ portuguese_brazilian ] = "Grafik löschen" ;
+ Text[ chinese_simplified ] = "ɾ³ýͼÐÎ";
+ Text[ russian ] = "Óäàëèòü";
+ Text[ polish ] = "Usuñ grafikê";
+ Text[ japanese ] = "¸Þ×̨¯¸‚Ìíœ";
+ Text[ chinese_traditional ] = "§R°£¹Ï¤ù";
+ Text[ arabic ] = "ÍÐÝ ÕæÑÉ";
+ Text[ dutch ] = "Afbeelding wissen";
+ Text[ chinese_simplified ] = "ɾ³ýͼÐÎ";
+ Text[ greek ] = "ÄéáãñáöÞ ãñáöéêïý";
+ Text[ korean ] = "±×·¡ÇÈ »èÁ¦";
+ Text[ turkish ] = "Grafiði sil";
+ Text[ language_user1 ] = " ";
+};
+String STR_DELOLE
+{
+ TEXT = "Objekt löschen" ;
+ TEXT [ English ] = "Delete Object" ;
+ Text [ english_us ] = "Delete object" ;
+ Text [ italian ] = "Elimina oggetto" ;
+ Text [ spanish ] = "Eliminar objeto" ;
+ Text [ french ] = "Supprimer l'objet" ;
+ Text [ dutch ] = "Object wissen" ;
+ Text [ swedish ] = "Radera objekt" ;
+ Text [ danish ] = "Slet objekt" ;
+ Text [ portuguese ] = "Eliminar objecto" ;
+ Text [ portuguese_brazilian ] = "Objekt löschen" ;
+ Text[ chinese_simplified ] = "ɾ³ý¶ÔÏó";
+ Text[ russian ] = "Óäàëèòü îáúåêò";
+ Text[ polish ] = "Usuñ obiekt";
+ Text[ japanese ] = "µÌÞ¼Þª¸Ä‚Ìíœ";
+ Text[ chinese_traditional ] = "§R°£ª«¥ó";
+ Text[ arabic ] = "ÍÐÝ ßÇÆä";
+ Text[ dutch ] = "Object wissen";
+ Text[ chinese_simplified ] = "ɾ³ý¶ÔÏó";
+ Text[ greek ] = "ÄéáãñáöÞ áíôéêåéìÝíïõ";
+ Text[ korean ] = "°³Ã¼ »èÁ¦";
+ Text[ turkish ] = "Nesneyi sil";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_ATTR
+{
+ TEXT = "Tabellenattribute anwenden" ;
+ TEXT [ English ] = "Apply table attributes" ;
+ Text [ english_us ] = "Apply table attributes" ;
+ Text [ italian ] = "Utilizza gli attributi della tabella" ;
+ Text [ spanish ] = "Aplicar atributos de la tabla" ;
+ Text [ french ] = "Appliquer les attributs de tableau" ;
+ Text [ dutch ] = "Tabelattributen toepassen" ;
+ Text [ swedish ] = "Använd tabellattribut" ;
+ Text [ danish ] = "Anvend tabelattributter" ;
+ Text [ portuguese ] = "Aplicar atributos da tabela" ;
+ Text [ portuguese_brazilian ] = "Tabellenattribute anwenden" ;
+ Text[ chinese_simplified ] = "ʹÓñí¸ñÊôÐÔ";
+ Text[ russian ] = "Ïðèìåíèòü àòðèáóòû òàáëèöû";
+ Text[ polish ] = "Zastosuj atrybuty tabeli";
+ Text[ japanese ] = "•\\‚Ì‘®«‚Ì“K—p";
+ Text[ chinese_traditional ] = "¨Ï¥Îªí®æÄÝ©Ê";
+ Text[ arabic ] = "ÇÓÊÎÏÇã ÓãÇÊ ÇáÌÏæá";
+ Text[ dutch ] = "Tabelattributen toepassen";
+ Text[ chinese_simplified ] = "ʹÓñí¸ñÊôÐÔ";
+ Text[ greek ] = "ÅöáñìïãÞ éäéïôÞôùí ðßíáêá";
+ Text[ korean ] = "Ç¥ ¼Ó¼º Àû¿ë";
+ Text[ turkish ] = "Tablo özniteliklerini kullan";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_AUTOFMT
+{
+ TEXT = "Autoformat Tabelle" ;
+ TEXT [ English ] = "Autoformat Table" ;
+ Text [ english_us ] = "AutoFormat Table" ;
+ Text [ italian ] = "Formattazione automatica tabella" ;
+ Text [ spanish ] = "AutoFormato tabla" ;
+ Text [ french ] = "AutoFormat de tableau" ;
+ Text [ dutch ] = "AutoOpmaak tabel" ;
+ Text [ swedish ] = "AutoFormat Tabell" ;
+ Text [ danish ] = "AutoFormat tabel" ;
+ Text [ portuguese ] = "AutoFormato tabela" ;
+ Text [ portuguese_brazilian ] = "Autoformat Tabelle" ;
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ ±í¸ñ";
+ Text[ russian ] = "Àâòîôîðìàò òàáëèöû";
+ Text[ polish ] = "Autoformatowanie Tabela";
+ Text[ japanese ] = "µ°ÄÌ«°Ï¯Ä •\\";
+ Text[ chinese_traditional ] = "¦Û°Ê®æ¦¡ ªí®æ";
+ Text[ arabic ] = "ÊäÓíÞ ÊáÞÇÆí ááÌÏæá";
+ Text[ dutch ] = "AutoOpmaak tabel";
+ Text[ chinese_simplified ] = "×Ô¶¯¸ñʽ ±í¸ñ";
+ Text[ greek ] = "ÁõôïÌïñöïðïßçóç ðßíáêá";
+ Text[ korean ] = "ÀÚµ¿ ¼­½Ä Ç¥";
+ Text[ turkish ] = "Otomatik formatlama Tablo";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_INSCOL
+{
+ Text = "Spalte einfügen" ;
+ Text [ ENGLISH ] = "Insert column" ;
+ Text [ norwegian ] = "Sett inn kolonne" ;
+ Text [ italian ] = "Inserisci colonna" ;
+ Text [ portuguese_brazilian ] = "Inserir coluna" ;
+ Text [ portuguese ] = "Inserir coluna" ;
+ Text [ finnish ] = "Lisää sarake" ;
+ Text [ danish ] = "Indsæt kolonne" ;
+ Text [ french ] = "Insérer une colonne" ;
+ Text [ swedish ] = "Infoga kolumn" ;
+ Text [ dutch ] = "Kolom invoegen" ;
+ Text [ spanish ] = "Insertar columna" ;
+ Text [ english_us ] = "Insert Column" ;
+ Text[ chinese_simplified ] = "²åÈëÁÐ";
+ Text[ russian ] = "Âñòàâèòü ñòîëáåö";
+ Text[ polish ] = "Wstaw kolumnê";
+ Text[ japanese ] = "—ñ‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤JÄæ";
+ Text[ arabic ] = "ÅÏÑÇÌ ÚãæÏ";
+ Text[ dutch ] = "Kolom invoegen";
+ Text[ chinese_simplified ] = "²åÈëÁÐ";
+ Text[ greek ] = "ÅéóáãùãÞ óôÞëçò";
+ Text[ korean ] = "¿­ »ðÀÔ";
+ Text[ turkish ] = "Sütunu ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_INSROW
+{
+ Text = "Zeile einfügen" ;
+ Text [ ENGLISH ] = "Insert row" ;
+ Text [ norwegian ] = "Sett inn rad" ;
+ Text [ italian ] = "Inserisci riga" ;
+ Text [ portuguese_brazilian ] = "Inserir fileira" ;
+ Text [ portuguese ] = "Inserir linha" ;
+ Text [ finnish ] = "Lisää rivi" ;
+ Text [ danish ] = "Indsæt række" ;
+ Text [ french ] = "Insérer une ligne" ;
+ Text [ swedish ] = "Infoga rad" ;
+ Text [ dutch ] = "Rij invoegen" ;
+ Text [ spanish ] = "Insertar fila" ;
+ Text [ english_us ] = "Insert Row" ;
+ Text[ chinese_simplified ] = "²åÈëÐÐ";
+ Text[ russian ] = "Âñòàâèòü ñòðîêó";
+ Text[ polish ] = "Wstaw wiersz";
+ Text[ japanese ] = "s‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¦æ";
+ Text[ arabic ] = "ÅÏÑÇÌ ÕÝ";
+ Text[ dutch ] = "Rij invoegen";
+ Text[ chinese_simplified ] = "²åÈëÐÐ";
+ Text[ greek ] = "ÅéóáãùãÞ ãñáììÞò";
+ Text[ korean ] = "Çà »ðÀÔ";
+ Text[ turkish ] = "Satýr ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_DELBOX
+{
+ Text = "Zeile/Spalte löschen" ;
+ Text [ ENGLISH ] = "Delete row/column" ;
+ Text [ norwegian ] = "Slett rad/kolonne" ;
+ Text [ italian ] = "Elimina riga/colonna" ;
+ Text [ portuguese_brazilian ] = "Apagar fileira/coluna" ;
+ Text [ portuguese ] = "Eliminar linha/coluna" ;
+ Text [ finnish ] = "Poista rivi/sarake" ;
+ Text [ danish ] = "Slet række/kolonne" ;
+ Text [ french ] = "Supprimer la ligne/colonne" ;
+ Text [ swedish ] = "Radera rad/kolumn" ;
+ Text [ dutch ] = "Rij/Kolom wissen" ;
+ Text [ spanish ] = "Eliminar fila/columna" ;
+ Text [ english_us ] = "Delete row/column" ;
+ Text[ chinese_simplified ] = "ɾ³ýÐÐ/ÁÐ";
+ Text[ russian ] = "Óäàëèòü ñòðîêó/ñòîëáåö";
+ Text[ polish ] = "Usuñ wiersz/kolumnê";
+ Text[ japanese ] = "s/—ñ‚Ìíœ";
+ Text[ chinese_traditional ] = "§R°£¦C/Äæ";
+ Text[ arabic ] = "ÍÐÝ ÕÝ/ÚãæÏ";
+ Text[ dutch ] = "Rij/Kolom wissen";
+ Text[ chinese_simplified ] = "ɾ³ýÐÐ/ÁÐ";
+ Text[ greek ] = "ÄéáãñáöÞ ãñáììÞò/óôÞëçò";
+ Text[ korean ] = "Çà/¿­ »èÁ¦";
+ Text[ turkish ] = "Satýrý/sütunu sil";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_SPLIT
+{
+ Text = "Zellen teilen" ;
+ Text [ ENGLISH ] = "Split cells" ;
+ Text [ norwegian ] = "Del celler" ;
+ Text [ italian ] = "Dividi celle" ;
+ Text [ portuguese_brazilian ] = "Partir células" ;
+ Text [ portuguese ] = "Dividir células" ;
+ Text [ finnish ] = "Jaa solut" ;
+ Text [ danish ] = "Opdel celler" ;
+ Text [ french ] = "Scinder les cellules" ;
+ Text [ swedish ] = "Dela celler" ;
+ Text [ dutch ] = "Cellen splitsen" ;
+ Text [ spanish ] = "Dividir celdas" ;
+ Text [ english_us ] = "Split Cells" ;
+ Text[ chinese_simplified ] = "·Ö¸ôµ¥Ôª¸ñ";
+ Text[ russian ] = "Ðàçáèòü ÿ÷åéêè";
+ Text[ polish ] = "Podziel komórki";
+ Text[ japanese ] = "¾Ù‚Ì•ªŠ„";
+ Text[ chinese_traditional ] = "¤À¶}Àx¦s®æ";
+ Text[ arabic ] = "ÊÞÓíã ÇáÎáÇíÇ";
+ Text[ dutch ] = "Cellen splitsen";
+ Text[ chinese_simplified ] = "·Ö¸ôµ¥Ôª¸ñ";
+ Text[ greek ] = "Äéáßñåóç êåëéþí";
+ Text[ korean ] = "¼¿ ³ª´©±â";
+ Text[ turkish ] = "Hücreyi ayýr";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_MERGE
+{
+ Text = "Zelle verbinden" ;
+ Text [ ENGLISH ] = "Merge cell" ;
+ Text [ english_us ] = "Merge Cells" ;
+ Text [ italian ] = "Collega celle" ;
+ Text [ spanish ] = "Unir celdas" ;
+ Text [ french ] = "Fusionner la cellule" ;
+ Text [ dutch ] = "Cel koppelen" ;
+ Text [ swedish ] = "Förbind cell" ;
+ Text [ danish ] = "Flet celler" ;
+ Text [ portuguese ] = "Unir células" ;
+ Text [ portuguese_brazilian ] = "Zelle verbinden" ;
+ Text[ chinese_simplified ] = "ºÏ²¢µ¥Ôª¸ñ";
+ Text[ russian ] = "Îáúåäèíèòü ÿ÷åéêè";
+ Text[ polish ] = "Scal komórki";
+ Text[ japanese ] = "¾Ù‚ÌŒ‹‡";
+ Text[ chinese_traditional ] = "¦X¦}Àx¦s®æ";
+ Text[ arabic ] = "æÕá ÇáÎáíÉ";
+ Text[ dutch ] = "Cel koppelen";
+ Text[ chinese_simplified ] = "ºÏ²¢µ¥Ôª¸ñ";
+ Text[ greek ] = "¸íùóç êåëéþí";
+ Text[ korean ] = "¼¿ º´ÇÕ";
+ Text[ turkish ] = "Hücreyi birleþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_NUMFORMAT
+{
+ Text = "Zelle formatieren" ;
+ Text [ ENGLISH ] = "Format cell" ;
+ Text [ portuguese ] = "Formatar célula" ;
+ Text [ english_us ] = "Format cell" ;
+ Text [ portuguese_brazilian ] = "Zelle formatieren" ;
+ Text [ swedish ] = "Formatera cell" ;
+ Text [ danish ] = "Formater celler" ;
+ Text [ italian ] = "Formatta cella" ;
+ Text [ spanish ] = "Formatear celda" ;
+ Text [ french ] = "Format de cellules" ;
+ Text [ dutch ] = "Cel opmaken" ;
+ Text[ chinese_simplified ] = "¸ñʽ»¯µ¥Ôª¸ñ";
+ Text[ russian ] = "Ôîðìàò ÿ÷ååê";
+ Text[ polish ] = "Formatuj komórkê";
+ Text[ japanese ] = "¾Ù‚Ì‘Ž®Ý’è";
+ Text[ chinese_traditional ] = "®æ¦¡¤ÆÀx¦s®æ";
+ Text[ arabic ] = "ÊäÓíÞ ÇáÎáíÉ";
+ Text[ dutch ] = "Cel opmaken";
+ Text[ chinese_simplified ] = "¸ñʽ»¯µ¥Ôª¸ñ";
+ Text[ greek ] = "Ìïñöïðïßçóç êåëéïý";
+ Text[ korean ] = "¼¿ ¼­½Ä";
+ Text[ turkish ] = "Hücreyi formatla";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_TOX
+{
+ Text = "Einfügen Verzeichnis" ;
+ Text [ ENGLISH ] = "Insert index" ;
+ Text [ portuguese ] = "Inserir índice" ;
+ Text [ english_us ] = "Insert index" ;
+ Text [ portuguese_brazilian ] = "Einfügen Verzeichnis" ;
+ Text [ swedish ] = "Infoga förteckning" ;
+ Text [ danish ] = "Indsæt indeks" ;
+ Text [ italian ] = "Inserisci indice" ;
+ Text [ spanish ] = "Insertar índice" ;
+ Text [ french ] = "Insérer un index" ;
+ Text [ dutch ] = "Index invoegen" ;
+ Text[ chinese_simplified ] = "²åÈëË÷Òý";
+ Text[ russian ] = "Âñòàâèòü óêàçàòåëü";
+ Text[ polish ] = "Wstaw indeks";
+ Text[ japanese ] = "õˆø‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤J¥Ø¿ý";
+ Text[ arabic ] = "ÅÏÑÇÌ ÝåÑÓ";
+ Text[ dutch ] = "Index invoegen";
+ Text[ chinese_simplified ] = "²åÈëË÷Òý";
+ Text[ greek ] = "ÅéóáãùãÞ åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ »ðÀÔ";
+ Text[ turkish ] = "Dizin ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_CLEAR_TOX_RANGE
+{
+ Text = "Verzeichnis aufheben" ;
+ Text [ ENGLISH ] = "Dismiss index" ;
+ Text [ portuguese ] = "Remover índice" ;
+ Text [ english_us ] = "Remove index" ;
+ Text [ portuguese_brazilian ] = "Verzeichnis aufheben" ;
+ Text [ swedish ] = "Upphäv förteckning" ;
+ Text [ danish ] = "Ophæv indeks" ;
+ Text [ italian ] = "Rimuovi indice" ;
+ Text [ spanish ] = "Eliminar directorio" ;
+ Text [ french ] = "Supprimer l'index" ;
+ Text [ dutch ] = "Index verwijderen" ;
+ Text[ chinese_simplified ] = "È¡ÏûË÷Òý";
+ Text[ russian ] = "Óáðàòü óêàçàòåëü";
+ Text[ polish ] = "Usuñ indeks";
+ Text[ japanese ] = "õˆø‚̉ðœ";
+ Text[ chinese_traditional ] = "¨ú®ø¥Ø¿ý";
+ Text[ arabic ] = "ÅÒÇáÉ ÇáÝåÑÓ";
+ Text[ dutch ] = "Index verwijderen";
+ Text[ chinese_simplified ] = "È¡ÏûË÷Òý";
+ Text[ greek ] = "ÊáôÜñãçóç åõñåôçñßïõ";
+ Text[ korean ] = "»öÀÎ Á¦°Å";
+ Text[ turkish ] = "Dizini kaldýr";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_TBLCPYTBL
+{
+ Text = "Tabelle kopieren" ;
+ Text [ ENGLISH ] = "Copy table" ;
+ Text [ portuguese ] = "Copiar tabela" ;
+ Text [ english_us ] = "Copy table" ;
+ Text [ portuguese_brazilian ] = "Tabelle kopieren" ;
+ Text [ swedish ] = "Kopiera tabell" ;
+ Text [ danish ] = "Kopier tabel" ;
+ Text [ italian ] = "Copia tabella" ;
+ Text [ spanish ] = "Copiar tabla" ;
+ Text [ french ] = "Copier le tableau" ;
+ Text [ dutch ] = "Tabel kopiëren" ;
+ Text[ chinese_simplified ] = "¸´ÖƱí¸ñ";
+ Text[ russian ] = "Êîïèðîâàòü òàáëèöó";
+ Text[ polish ] = "Kopiuj tabelê";
+ Text[ japanese ] = "•\\‚̺Ëß°";
+ Text[ chinese_traditional ] = "½Æ»sªí®æ";
+ Text[ arabic ] = "äÓÎ ÇáÌÏæá";
+ Text[ dutch ] = "Tabel kopiëren";
+ Text[ chinese_simplified ] = "¸´ÖƱí¸ñ";
+ Text[ greek ] = "ÁíôéãñáöÞ ðßíáêá";
+ Text[ korean ] = "Ç¥ ¼­½Ä";
+ Text[ turkish ] = "Tabloyu kopyala";
+ Text[ language_user1 ] = " ";
+};
+String STR_TABLE_CPYTBL
+{
+ Text = "Tabelle kopieren" ;
+ Text [ ENGLISH ] = "Copy table" ;
+ Text [ portuguese ] = "Copiar tabela" ;
+ Text [ english_us ] = "Copy table" ;
+ Text [ portuguese_brazilian ] = "Tabelle kopieren" ;
+ Text [ swedish ] = "Kopiera tabell" ;
+ Text [ danish ] = "Kopier tabel" ;
+ Text [ italian ] = "Copia tabella" ;
+ Text [ spanish ] = "Copiar tabla" ;
+ Text [ french ] = "Copier le tableau" ;
+ Text [ dutch ] = "Tabel kopiëren" ;
+ Text[ chinese_simplified ] = "¸´ÖƱí¸ñ";
+ Text[ russian ] = "Êîïèðîâàòü òàáëèöó";
+ Text[ polish ] = "Kopiuj tabelê";
+ Text[ japanese ] = "•\\‚̺Ëß°";
+ Text[ chinese_traditional ] = "½Æ»sªí®æ";
+ Text[ arabic ] = "äÓÎ ÇáÌÏæá";
+ Text[ dutch ] = "Tabel kopiëren";
+ Text[ chinese_simplified ] = "¸´ÖƱí¸ñ";
+ Text[ greek ] = "ÁíôéãñáöÞ ðßíáêá";
+ Text[ korean ] = "Ç¥ º¹»ç";
+ Text[ turkish ] = "Tabloyu kopyala";
+ Text[ language_user1 ] = " ";
+};
+String STR_INS_FROM_SHADOWCRSR
+{
+ Text = "Cursor setzen" ;
+ Text [ ENGLISH ] = "Set cursor" ;
+ Text [ portuguese ] = "Configurar cursor" ;
+ Text [ english_us ] = "Set cursor" ;
+ Text [ portuguese_brazilian ] = "Cursor setzen" ;
+ Text [ swedish ] = "Sätt markör" ;
+ Text [ danish ] = "Konfigurer markør" ;
+ Text [ italian ] = "Imposta cursore" ;
+ Text [ spanish ] = "Poner cursor" ;
+ Text [ french ] = "Mettre le curseur" ;
+ Text [ dutch ] = "Cursor configureren" ;
+ Text[ chinese_simplified ] = "¶¨Î»¹â±ê";
+ Text[ russian ] = "Óñòàíîâèòü êóðñîð";
+ Text[ polish ] = "Ustaw kursor";
+ Text[ japanese ] = "¶°¿Ù‚ÌÝ’è";
+ Text[ chinese_traditional ] = "©w¦ì¥ú¼Ð";
+ Text[ arabic ] = "ÊÚííä ÇáãÄÔÑ";
+ Text[ dutch ] = "Cursor configureren";
+ Text[ chinese_simplified ] = "¶¨Î»¹â±ê";
+ Text[ greek ] = "Ïñéóìüò äåßêôç";
+ Text[ korean ] = "Ä¿¼­ ¼³Á¤";
+ Text[ turkish ] = "Ýmleci ayarla";
+ Text[ language_user1 ] = " ";
+};
+String STR_UNDO_CHAIN
+{
+ Text = "Textrahmen verbinden" ;
+ Text [ ENGLISH ] = "chaine Textframes" ;
+ Text [ portuguese ] = "Ligar molduras de texto" ;
+ Text [ english_us ] = "Link text frames" ;
+ Text [ portuguese_brazilian ] = "Textrahmen verbinden" ;
+ Text [ swedish ] = "Förbind textram" ;
+ Text [ danish ] = "Kæd tekstbokse" ;
+ Text [ italian ] = "Collega la cornice di testo." ;
+ Text [ spanish ] = "Conectar marcos de texto" ;
+ Text [ french ] = "Enchaîner les cadres texte" ;
+ Text [ dutch ] = "Tekstkader verbinden" ;
+ Text[ chinese_simplified ] = "Á´½ÓÎı¾¿ò";
+ Text[ russian ] = "Îáúåäèíèòü òåêñòîâûå ðàìêè";
+ Text[ polish ] = "Po³¹cz ramkê tekstow¹";
+ Text[ japanese ] = "÷½Ä˜g‚ÌŒ‹‡";
+ Text[ chinese_traditional ] = "³sµ²¤å¦r¤è¶ô";
+ Text[ arabic ] = "ÊÑÇÈØ ÅØÇÑÇÊ ÇáäÕ";
+ Text[ dutch ] = "Tekstkader verbinden";
+ Text[ chinese_simplified ] = "Á´½ÓÎı¾¿ò";
+ Text[ greek ] = "Óýíäåóç ðëáéóßïõ êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓ ¿¬°á";
+ Text[ turkish ] = "Metin kutularýný baðla";
+ Text[ language_user1 ] = " ";
+};
+String STR_UNDO_UNCHAIN
+{
+ Text = "Textrahmenverbindung lösen" ;
+ Text [ ENGLISH ] = "unchain Textframes" ;
+ Text [ portuguese ] = "Desligar molduras de texto" ;
+ Text [ english_us ] = "Unlink text frames" ;
+ Text [ portuguese_brazilian ] = "Textrahmenverbindung loesen" ;
+ Text [ swedish ] = "Upplös textramförbindelse" ;
+ Text [ danish ] = "Ophæv tekstbokskædning" ;
+ Text [ italian ] = "Staccare il collegamento della cornice di testo" ;
+ Text [ spanish ] = "Deshacer el vínculo de los marcos de texto." ;
+ Text [ french ] = "Détacher les cadres texte" ;
+ Text [ dutch ] = "Tekstkaderverbinding verwijderen" ;
+ Text[ chinese_simplified ] = "È¡ÏûÎı¾¿òµÄÁ´½Ó";
+ Text[ russian ] = "Ðàçúåäèíèòü òåêñòîâóþ ðàìêó";
+ Text[ polish ] = "Roz³¹cz ramki tekstu";
+ Text[ japanese ] = "÷½Ä˜g‚ÌŒ‹‡‰ðœ";
+ Text[ chinese_traditional ] = "¨ú®ø¤å¦r¤è¶ôªº³sµ²";
+ Text[ arabic ] = "Ýß ÊÑÇÈØ ÅØÇÑÇÊ ÇáäÕ";
+ Text[ dutch ] = "Tekstkaderverbinding verwijderen";
+ Text[ chinese_simplified ] = "È¡ÏûÎı¾¿òµÄÁ´½Ó";
+ Text[ greek ] = "Áðïóýíäåóç ðëáßóéá êåéìÝíïõ";
+ Text[ korean ] = "ÅؽºÆ® ÇÁ·¹ÀÓ ¿¬°á Á¦°Å";
+ Text[ turkish ] = "Metin kutusu baðlantýlarýný çöz";
+ Text[ language_user1 ] = " ";
+};
+String STR_UNDO_FTNINFO
+{
+ Text = "Fußnoteneinstellungen ändern" ;
+ Text [ ENGLISH ] = "change footnote properties" ;
+ Text [ portuguese ] = "Modificar definições de nota final" ;
+ Text [ english_us ] = "Modify footnote options" ;
+ Text [ portuguese_brazilian ] = "Fußnoteneinstellungen ändern" ;
+ Text [ swedish ] = "Ändra fotnotsinställningar" ;
+ Text [ danish ] = "Modificer fodnoteindstillinger" ;
+ Text [ italian ] = "Modifica impostazioni note a piè pagina" ;
+ Text [ spanish ] = "Modificar opciones de nota al pie" ;
+ Text [ french ] = "Modifier les paramètres des notes de bas de page" ;
+ Text [ dutch ] = "Voetnoteninstellingen wijzigen" ;
+ Text[ chinese_simplified ] = "¸ü¸Ä×¢½ÅÉ趨";
+ Text[ russian ] = "Èçìåíèòü óñòàíîâêè ñíîñîê";
+ Text[ polish ] = "Zmodyfikuj ustawienia przypisów dolnych";
+ Text[ japanese ] = "‹r’‚ÌÝ’è•ÏX";
+ Text[ chinese_traditional ] = "Åܧóµù¸}³]©w";
+ Text[ arabic ] = "ÊÚÏíá ÎíÇÑÇÊ ÇáÍÇÔíÉ ÇáÓÝáíÉ";
+ Text[ dutch ] = "Voetnoteninstellingen wijzigen";
+ Text[ chinese_simplified ] = "¸ü¸Ä×¢½ÅÉ趨";
+ Text[ greek ] = "Ôñïðïðïßçóç åðéëïãþí õðïóçìåéþóåùí";
+ Text[ korean ] = "°¢ÁÖ ¿É¼Ç ¼öÁ¤";
+ Text[ turkish ] = "Dipnot ayarlarýný deðiþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_UNDO_ENDNOTEINFO
+{
+ Text = "Endnoteneinstellungen ändern" ;
+ Text [ ENGLISH ] = "change endnote properties" ;
+ Text [ portuguese ] = "Modificar definições de nota final" ;
+ Text [ english_us ] = "Modify endnote settings" ;
+ Text [ portuguese_brazilian ] = "Endnoteneinstellungen ändern" ;
+ Text [ swedish ] = "Ändra slutnotsinställningar" ;
+ Text [ danish ] = "Modificer slutnoteindstillinger" ;
+ Text [ italian ] = "Modifica impostazione note di chiusura" ;
+ Text [ spanish ] = "Modificar configuración de notas finales" ;
+ Text [ french ] = "Modifier les paramètres des notes de fin" ;
+ Text [ dutch ] = "Eindnootinstellingen wijzigen" ;
+ Text[ chinese_simplified ] = "¸ü¸ÄβעÉ趨";
+ Text[ russian ] = "Èçìåíèòü óñòàíîâêè êîíöåâûõ ñíîñîê";
+ Text[ polish ] = "Zmodyfikuj ustawienia przypisów dolnych";
+ Text[ japanese ] = "•¶––‹r’‚ÌÝ’è•ÏX";
+ Text[ chinese_traditional ] = "Åܧó§Àª`³]©w";
+ Text[ arabic ] = "ÊÚÏíá ÅÚÏÇÏÇÊ ÇáÊÚáíÞÇÊ ÇáÎÊÇãíÉ";
+ Text[ dutch ] = "Eindnootinstellingen wijzigen";
+ Text[ chinese_simplified ] = "¸ü¸ÄβעÉ趨";
+ Text[ greek ] = "Ôñïðïðïßçóç åðéëïãþí óçìåéþóåùí ôÝëïõò";
+ Text[ korean ] = "¹ÌÁÖ ¼³Á¤ ¼öÁ¤";
+ Text[ turkish ] = "Sonnot ayarlarýný deðiþtir";
+ Text[ language_user1 ] = " ";
+};
+String STR_UNDO_COMPAREDOC
+{
+ Text = "Dokument vergleich" ;
+ Text [ ENGLISH ] = "compare document" ;
+ Text [ portuguese ] = "Comparar documento" ;
+ Text [ english_us ] = "Compare Document" ;
+ Text [ portuguese_brazilian ] = "Dokument vergleich" ;
+ Text [ swedish ] = "Jämföra dokument" ;
+ Text [ danish ] = "Sammenlign dokument" ;
+ Text [ italian ] = "Confronto documento" ;
+ Text [ spanish ] = "Comparar documento" ;
+ Text [ french ] = "Comparaison de documents" ;
+ Text [ dutch ] = "Vergelijking van documenten" ;
+ Text[ chinese_simplified ] = "±È½ÏÎĵµ";
+ Text[ russian ] = "Ñðàâíèòü âåðñèè äîêóìåíòà";
+ Text[ polish ] = "Porównaj dokument";
+ Text[ japanese ] = "ÄÞ·­ÒÝÄ‚Ì”äŠr";
+ Text[ chinese_traditional ] = "¤ñ¸û¤å¥ó";
+ Text[ arabic ] = "ãÞÇÑäÉ ÇáãÓÊäÏ";
+ Text[ dutch ] = "Vergelijking van documenten";
+ Text[ chinese_simplified ] = "±È½ÏÎĵµ";
+ Text[ greek ] = "Óýãêñéóç åããñÜöïõ";
+ Text[ korean ] = "¹®¼­ºñ±³";
+ Text[ turkish ] = "Belgeyi karþýlaþtýr";
+ Text[ language_user1 ] = " ";
+};
+String STR_UNDO_SETFLYFRMFMT
+{
+ Text = "Rahmenvorlage anwenden" ;
+ Text [ ENGLISH ] = "Apply framestyle" ;
+ Text [ portuguese ] = "Aplicar estilo de moldura" ;
+ Text [ english_us ] = "Apply frame style" ;
+ Text [ portuguese_brazilian ] = "Rahmenvorlage anwenden" ;
+ Text [ swedish ] = "Använd ramformatmall" ;
+ Text [ danish ] = "Anvend rammetypografi" ;
+ Text [ italian ] = "Applica modello di cornice" ;
+ Text [ spanish ] = "Aplicar estilo de marco" ;
+ Text [ french ] = "Utiliser un style de cadre" ;
+ Text [ dutch ] = "Kaderopmaakprofiel toepassen" ;
+ Text[ chinese_simplified ] = "ʹÓÿòÑùʽ";
+ Text[ russian ] = "Ïðèìåíèòü ñòèëü ðàìîê";
+ Text[ polish ] = "Zastosuj styl ramki";
+ Text[ japanese ] = "˜g½À²Ù‚Ì“K—p";
+ Text[ chinese_traditional ] = "¨Ï¥Î¤è¶ô¼Ë¦¡";
+ Text[ arabic ] = "ÇÓÊÎÏÇã äãØ ÅØÇÑ";
+ Text[ dutch ] = "Kaderopmaakprofiel toepassen";
+ Text[ chinese_simplified ] = "ʹÓÿòÑùʽ";
+ Text[ greek ] = "ÅöáñìïãÞ óôõë ðëáéóßïõ";
+ Text[ korean ] = "ÇÁ·¹ÀÓ ½ºÅ¸ÀÏ Àû¿ë";
+ Text[ turkish ] = "Çerçeve biçimi uygula";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_FOOTNOTE
+{
+ Text = "Fußnote einfügen" ;
+ Text [ ENGLISH ] = "insert footnote" ;
+ Text [ english_us ] = "Insert footnote" ;
+ Text [ portuguese_brazilian ] = "Fußnote einfügen" ;
+ Text [ swedish ] = "Infoga fotnot" ;
+ Text [ danish ] = "Indsæt fodnote" ;
+ Text [ italian ] = "Inserisci nota a piè pagina" ;
+ Text [ spanish ] = "Insertar nota al pie" ;
+ Text [ french ] = "Insérer une note de bas de page" ;
+ Text [ dutch ] = "Voetnoot invoegen" ;
+ Text [ portuguese ] = "Inserir nota de rodapé" ;
+ Text[ chinese_simplified ] = "²åÈë×¢½Å";
+ Text[ russian ] = "Âñòàâèòü ñíîñêó";
+ Text[ polish ] = "Wstaw przypis dolny";
+ Text[ japanese ] = "‹r’‚Ì‘}“ü";
+ Text[ chinese_traditional ] = "´¡¤Jµù¸}";
+ Text[ arabic ] = "ÅÏÑÇÌ ÍÇÔíÉ ÓÝáíÉ";
+ Text[ dutch ] = "Voetnoot invoegen";
+ Text[ chinese_simplified ] = "²åÈë×¢½Å";
+ Text[ greek ] = "ÐñïóèÞêç õðïóçìåßùóçò";
+ Text[ korean ] = "°¢ÁÖ »ðÀÔ";
+ Text[ turkish ] = "Dipnot ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_URLBTN
+{
+ Text = "URL Button einfügen" ;
+ Text [ ENGLISH ] = "insert URL button" ;
+ Text[ english_us ] = "insert URL button";
+ Text[ portuguese ] = "Inserir botão URL";
+ Text[ russian ] = "Âñòàâèòü êíîïêó URL";
+ Text[ dutch ] = "URL button invoegen";
+ Text[ french ] = "Insérer un bouton d'URL";
+ Text[ spanish ] = "Insertar botón URL";
+ Text[ italian ] = "Inserisci pulsante URL";
+ Text[ danish ] = "Indsæt URL-knap";
+ Text[ swedish ] = "Infoga URL-knapp";
+ Text[ polish ] = "Wstaw przycisk URL";
+ Text[ portuguese_brazilian ] = "insert URL button";
+ Text[ japanese ] = "URLÎÞÀÝ‚Ì‘}“ü";
+ Text[ chinese_simplified ] = "²åÈë URL °´Å¥";
+ Text[ chinese_traditional ] = "´¡¤J URL «ö¶s";
+ Text[ arabic ] = "ÅÏÑÇÌ ãÝÊÇÍ URL";
+ Text[ dutch ] = "URL button invoegen";
+ Text[ chinese_simplified ] = "²åÈë URL °´Å¥";
+ Text[ greek ] = "Ðñüóèåóç êïõìðéïý URL";
+ Text[ korean ] = "URL ¹öÆ° »ðÀÔ";
+ Text[ turkish ] = "URL düðmesi ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_INSERT_URLTXT
+{
+ Text = "Hyperlink einfügen" ;
+ Text [ ENGLISH ] = "insert Hyperlink" ;
+ Text[ english_us ] = "insert Hyperlink";
+ Text[ portuguese ] = "Inserir hiperligação";
+ Text[ russian ] = "Âñòàâèòü ãèïåðññûëêó";
+ Text[ dutch ] = "Hyperlink invoegen";
+ Text[ french ] = "Insérer un hyperlien";
+ Text[ spanish ] = "Insertar hiperenlace";
+ Text[ italian ] = "Inserisci hyperlink";
+ Text[ danish ] = "Indsæt hyperlink";
+ Text[ swedish ] = "Infoga hyperlänk";
+ Text[ polish ] = "Wstaw hiper³¹cze";
+ Text[ portuguese_brazilian ] = "insert Hyperlink";
+ Text[ japanese ] = "ʲÊß°Øݸ‚Ì‘}“ü";
+ Text[ chinese_simplified ] = "²åÈ볬Á´½Ó";
+ Text[ chinese_traditional ] = "´¡¤J¶W³sµ²";
+ Text[ arabic ] = "ÅÏÑÇÌ ÇÑÊÈÇØ ÊÔÚÈí";
+ Text[ dutch ] = "Hyperlink invoegen";
+ Text[ chinese_simplified ] = "²åÈ볬Á´½Ó";
+ Text[ greek ] = "ÐñïóèÞêç õðåñ-óýíäåóçò";
+ Text[ korean ] = "ÇÏÀÌÆÛ¸µÅ© »ðÀÔ";
+ Text[ turkish ] = "Hyperlink ekle";
+ Text[ language_user1 ] = " ";
+};
+String STR_DELETE_INVISIBLECNTNT
+{
+ Text = "unischtbaren Inhalt enfernen" ;
+ Text [ ENGLISH ] = "remove invisible content" ;
+ Text[ english_us ] = "remove invisible content";
+ Text[ portuguese ] = "eliminar conteúdo invisível";
+ Text[ greek ] = "êáôÜñãçóç ìç ïñáôþí ðåñéå÷ïìÝíùí";
+ Text[ dutch ] = "Ônzichtbare inhoud verwijderen";
+ Text[ french ] = "supprimer le contenu invisible";
+ Text[ spanish ] = "eliminar contenido invisible";
+ Text[ swedish ] = "ta bort osynligt innehåll";
+ Text[ russian ] = "óäàëèòü íåâèäèìîå ñîäåðæèìîå";
+ Text[ italian ] = "Rimuovi contenuto nascosto";
+ Text[ danish ] = "fjern usynlige indhold";
+ Text[ polish ] = "usuñ niewidoczn¹ zawartoœæ";
+ Text[ portuguese_brazilian ] = "remove invisible content";
+ Text[ japanese ] = "•\\Ž¦‚Å‚«‚È‚¢“à—e‚ð휂·‚é";
+ Text[ korean ] = "º¸ÀÌÁö ¾Ê´Â ³»¿ë Á¦°Å";
+ Text[ chinese_simplified ] = "ɾ³ýÒþÈëµÄÄÚÈÝ";
+ Text[ chinese_traditional ] = "²M°£Áô¤Jªº¤º®e";
+ Text[ arabic ] = "ÅÒÇáÉ ÇáãÍÊæíÇÊ ÇáÛíÑ ãÑÆíÉ";
+ Text[ turkish ] = "Görünmez içeriði kaldýr";
+ Text[ language_user1 ] = " ";
+};
+
+String STR_DDEERROR_APP1
+{
+ TEXT = "Die Applikation [" ;
+ TEXT [ ENGLISH ] = "Application [" ;
+ TEXT [ norwegian ] = "Applikasjon[" ;
+ TEXT [ italian ] = "L'applicazione [" ;
+ TEXT [ portuguese_brazilian ] = "Aplicativo [" ;
+ TEXT [ portuguese ] = "A aplicação [" ;
+ TEXT [ finnish ] = "Sovellus [" ;
+ TEXT [ danish ] = "Applikationen [" ;
+ TEXT [ french ] = "L'application [" ;
+ TEXT [ swedish ] = "Programmet [" ;
+ TEXT [ dutch ] = "Applicatie [" ;
+ TEXT [ spanish ] = "La aplicación [" ;
+ TEXT [ english_us ] = "Application [" ;
+ TEXT[ chinese_simplified ] = "Ó¦ÓóÌÐò [";
+ TEXT[ russian ] = "Ê ïðèëîæåíèþ [";
+ TEXT[ polish ] = "Aplikacja [";
+ TEXT[ japanese ] = "±Ìßع°¼®Ý [";
+ TEXT[ greek ] = "Ç åöáñìïãÞ [";
+ TEXT[ korean ] = "ÀÀ¿ëÇÁ·Î±×·¥ [";
+ TEXT[ chinese_traditional ] = "µ{¦¡ [";
+ TEXT[ arabic ] = "ÇáÊØÈíÞ ]";
+ TEXT[ turkish ] = "Uygulama [";
+};
+String STR_DDEERROR_APP2
+{
+ TEXT = "] kann nicht angesprochen werden" ;
+ TEXT [ ENGLISH ] = "] does not respond" ;
+ TEXT [ norwegian ] = "] korresponderer ikke" ;
+ TEXT [ italian ] = "] non risponde" ;
+ TEXT [ portuguese_brazilian ] = "] não responde" ;
+ TEXT [ portuguese ] = "] não responde." ;
+ TEXT [ finnish ] = "] ei vastaa" ;
+ TEXT [ danish ] = "] svarer ikke" ;
+ TEXT [ french ] = "] ne répond pas" ;
+ TEXT [ swedish ] = "] svarar inte" ;
+ TEXT [ dutch ] = "] reageert niet" ;
+ TEXT [ spanish ] = "] no responde" ;
+ TEXT [ english_us ] = "] is not responding." ;
+ TEXT[ chinese_simplified ] = "] ûÓлØÓ¦¡£";
+ TEXT[ russian ] = "] îáðàòèòüñÿ íåâîçìîæíî";
+ TEXT[ polish ] = "] nie reaguje";
+ TEXT[ japanese ] = "] ‚©‚ç‚̉ž“š‚ª‚ ‚è‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "] ¨S¦³¦^À³¡C";
+ TEXT[ arabic ] = "[ áÇ íÓÊÌíÈ";
+ TEXT[ dutch ] = "] reageert niet";
+ TEXT[ chinese_simplified ] = "] ûÓлØÓ¦¡£";
+ TEXT[ greek ] = "] äåí áíôáðïêñßíåôáé.";
+ TEXT[ korean ] = "]ÀÌ ÀÀ´äÇÏÁö ¾Ê½À´Ï´Ù.";
+ TEXT[ turkish ] = "] cevap vermiyor";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DDEERROR_DATA1
+{
+ TEXT = "Die Daten zu [" ;
+ TEXT [ ENGLISH ] = "Data for [" ;
+ TEXT [ norwegian ] = "Data for [" ;
+ TEXT [ italian ] = "Dati per [" ;
+ TEXT [ portuguese_brazilian ] = "Dados para [" ;
+ TEXT [ portuguese ] = "Os dados para [" ;
+ TEXT [ finnish ] = "Tietoja kohteeseen [" ;
+ TEXT [ danish ] = "Dataene til [" ;
+ TEXT [ french ] = "Les données pour [" ;
+ TEXT [ swedish ] = "Data till [" ;
+ TEXT [ dutch ] = "Gegevens voor [" ;
+ TEXT [ spanish ] = "Los datos para [" ;
+ TEXT [ english_us ] = "Data for [" ;
+ TEXT[ chinese_simplified ] = "ÓÃÓÚ [";
+ TEXT[ russian ] = "Äàííûå äëÿ [";
+ TEXT[ polish ] = "Danych dla [";
+ TEXT[ japanese ] = "[";
+ TEXT[ greek ] = "Ôá äåäïìÝíá ãéá [";
+ TEXT[ korean ] = "µ¥ÀÌÅÍ [";
+ TEXT[ chinese_traditional ] = "¥Î©ó[";
+ TEXT[ arabic ] = "ÈíÇäÇÊ ] ";
+ TEXT[ turkish ] = "[";
+};
+String STR_DDEERROR_DATA2
+{
+ TEXT = "] können nicht ermittelt werden" ;
+ TEXT [ ENGLISH ] = "] cannot be obtained" ;
+ TEXT [ norwegian ] = "] kan ikke oppnåes" ;
+ TEXT [ italian ] = "]" ;
+ TEXT [ portuguese_brazilian ] = "] não podem ser obtidos" ;
+ TEXT [ portuguese ] = "] não podem ser determinados." ;
+ TEXT [ finnish ] = "] ei saatu" ;
+ TEXT [ danish ] = "] kan ikke bestemmes" ;
+ TEXT [ french ] = "] ne peuvent pas être obtenues" ;
+ TEXT [ swedish ] = "] kan inte erhållas" ;
+ TEXT [ dutch ] = "] onmogelijk" ;
+ TEXT [ spanish ] = "] no pueden ser determinados" ;
+ TEXT [ english_us ] = "] cannot be obtained" ;
+ TEXT[ chinese_simplified ] = "] µÄÊý¾ÝÎÞ·¨±»¶ÁÈ¡¡£";
+ TEXT[ russian ] = "] îïðåäåëèòü íåâîçìîæíî";
+ TEXT[ polish ] = "] nie mo¿na uzyskaæ";
+ TEXT[ japanese ] = "] ‚ÌÃÞ°À‚ÍŠm”F‚Å‚«‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "] ªº¸ê®ÆµLªk³QŪ¨ú¡C";
+ TEXT[ arabic ] = "[ ÛíÑ ãÊæÝÑÉ";
+ TEXT[ dutch ] = "] onmogelijk";
+ TEXT[ chinese_simplified ] = "] µÄÊý¾ÝÎÞ·¨±»¶ÁÈ¡¡£";
+ TEXT[ greek ] = "] äåí åßíáé äõíáôüí íá åîáêñéâùèïýí.";
+ TEXT[ korean ] = "] À» ¾òÀ» ¼ö ¾øÀ½";
+ TEXT[ turkish ] = "] ile ilgili veriler alýnamýyor";
+ TEXT[ language_user1 ] = " ";
+};
+String STR_DDEERROR_LINK1
+{
+ TEXT = "Die Verknüpfung zu [" ;
+ TEXT [ ENGLISH ] = "Link to [" ;
+ TEXT [ norwegian ] = "Koble til [" ;
+ TEXT [ italian ] = "Collegamento con [" ;
+ TEXT [ portuguese_brazilian ] = "Ligação para [" ;
+ TEXT [ portuguese ] = "A ligação a [" ;
+ TEXT [ finnish ] = "Linkkiä kohteeseen [" ;
+ TEXT [ danish ] = "Kæden til [" ;
+ TEXT [ french ] = "Le lien à [" ;
+ TEXT [ swedish ] = "Länk till [" ;
+ TEXT [ dutch ] = "Koppeling naar [" ;
+ TEXT [ spanish ] = "El vínculo con [" ;
+ TEXT [ english_us ] = "Link to [" ;
+ TEXT[ chinese_simplified ] = "ÎÞ·¨½¨Á¢Óë [";
+ TEXT[ russian ] = "Ññûëêó íà [";
+ TEXT[ polish ] = "£¹cza do [";
+ TEXT[ japanese ] = "[";
+ TEXT[ greek ] = "Ç óýíäåóç ìå [";
+ TEXT[ korean ] = "¿¬°á ´ë»ó [";
+ TEXT[ chinese_traditional ] = "³sµ² [";
+ TEXT[ arabic ] = "ÇáÇÑÊÈÇØ Åáì ]";
+ TEXT[ turkish ] = "[";
+};
+String STR_DDEERROR_LINK2
+{
+ TEXT = "] kann nicht eingerichtet werden" ;
+ TEXT [ ENGLISH ] = "] cannot be established" ;
+ TEXT [ norwegian ] = "] kan ikke etableres" ;
+ TEXT [ italian ] = "]" ;
+ TEXT [ portuguese_brazilian ] = "] não pode ser estabelecido" ;
+ TEXT [ portuguese ] = "] não pode ser estabelecido." ;
+ TEXT [ finnish ] = "] ei voi muodostaa" ;
+ TEXT [ danish ] = "] kan ikke oprettes" ;
+ TEXT [ french ] = "] ne peut pas être établi" ;
+ TEXT [ swedish ] = "] kan inte etableras" ;
+ TEXT [ dutch ] = "] onmogelijk" ;
+ TEXT [ spanish ] = "] no se puede establecer" ;
+ TEXT [ english_us ] = "] cannot be established" ;
+ TEXT[ chinese_simplified ] = "]µÄÁ´½Ó";
+ TEXT[ russian ] = "] ñîçäàòü íåâîçìîæíî";
+ TEXT[ polish ] = "] nie mo¿na ustanowiæ";
+ TEXT[ japanese ] = "] ‚Ö‚ÌØݸ‚͂‚­‚ê‚Ü‚¹‚ñ";
+ TEXT[ chinese_traditional ] = "] µLªk«Ø¥ß¡C";
+ TEXT[ arabic ] = "[ ÛíÑ ÞÇÈá ááÅÚÏÇÏ";
+ TEXT[ dutch ] = "] onmogelijk";
+ TEXT[ chinese_simplified ] = "]µÄÁ´½Ó";
+ TEXT[ greek ] = "] äåí åßíáé äõíáôüí íá ðñáãìáôïðïéçèåß.";
+ TEXT[ korean ] = "] ¼º¸³µÉ ¼ö ¾ø½À´Ï´Ù.";
+ TEXT[ turkish ] = "] ile ilgili baðlantý oluþturulamýyor";
+ TEXT[ language_user1 ] = " ";
+};
diff --git a/sw/source/ui/wrtsh/wrtsh1.cxx b/sw/source/ui/wrtsh/wrtsh1.cxx
new file mode 100644
index 000000000000..cd5702f84b04
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtsh1.cxx
@@ -0,0 +1,1630 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh1.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#if STLPORT_VERSION>=321
+#include <math.h> // prevent conflict between exception and std::exception
+#endif
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SOT_FACTORY_HXX
+#include <sot/factory.hxx>
+#endif
+#ifndef _SFXITEMITER_HXX //autogen
+#include <svtools/itemiter.hxx>
+#endif
+#ifndef _SOUND_HXX //autogen
+#include <vcl/sound.hxx>
+#endif
+#ifndef _BIGINT_HXX //autogen
+#include <tools/bigint.hxx>
+#endif
+#ifndef _SVSTOR_HXX //autogen
+#include <so3/svstor.hxx>
+#endif
+#ifndef _INSDLG_HXX //autogen
+#include <so3/insdlg.hxx>
+#endif
+#ifndef _FRAMEOBJ_HXX //autogen
+#include <sfx2/frameobj.hxx>
+#endif
+#ifndef _EHDL_HXX //autogen
+#include <svtools/ehdl.hxx>
+#endif
+#ifndef _IPENV_HXX //autogen
+#include <so3/ipenv.hxx>
+#endif
+#ifndef _SOERR_HXX //autogen
+#include <so3/soerr.hxx>
+#endif
+#ifndef _CACHESTR_HXX //autogen
+#include <tools/cachestr.hxx>
+#endif
+#ifndef _SVX_BRKITEM_HXX //autogen
+#include <svx/brkitem.hxx>
+#endif
+#ifndef SMDLL0_HXX //autogen
+#include <starmath/smdll0.hxx>
+#endif
+#ifndef _SCHDLL0_HXX
+#include <sch/schdll0.hxx>
+#endif
+#ifndef _SCH_DLL_HXX
+#include <sch/schdll.hxx>
+#endif
+#ifndef _SCH_MEMCHRT_HXX
+#include <sch/memchrt.hxx>
+#endif
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _SBAITEMS_HRC //autogen
+#include <offmgr/sbaitems.hrc>
+#endif
+#ifndef _SV_GRAPH_HXX //autogen
+#include <vcl/graph.hxx>
+#endif
+#ifndef _SVX_IMPGRF_HXX
+#include <svx/impgrf.hxx>
+#endif
+#ifndef _SFX_PRINTER_HXX //autogen
+#include <sfx2/printer.hxx>
+#endif
+
+// MONIKER-SS
+#ifndef PRODUCT
+// fuer den neuen SvBaseLink!
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _FINDER_HXX
+#include <finder.hxx>
+#endif
+#endif
+// MONIKER-SS
+
+
+#ifndef _FMTFTN_HXX //autogen
+#include <fmtftn.hxx>
+#endif
+#ifndef _FMTHBSH_HXX //autogen
+#include <fmthbsh.hxx>
+#endif
+#ifndef _FMTPDSC_HXX //autogen
+#include <fmtpdsc.hxx>
+#endif
+#ifndef _WDOCSH_HXX
+#include <wdocsh.hxx>
+#endif
+#ifndef _BASESH_HXX
+#include <basesh.hxx>
+#endif
+#ifndef _SWMODULE_HXX
+#include <swmodule.hxx>
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _UITOOL_HXX
+#include <uitool.hxx>
+#endif
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _PAGEDESC_HXX
+#include <pagedesc.hxx>
+#endif
+#ifndef _FRMMGR_HXX
+#include <frmmgr.hxx>
+#endif
+#ifndef _SHELLIO_HXX
+#include <shellio.hxx>
+#endif
+#ifndef _UINUMS_HXX
+#include <uinums.hxx> // fuer Anwenden einer
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+#ifndef _SWCLI_HXX
+#include <swcli.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _WVIEW_HXX
+#include <wview.hxx>
+#endif
+#ifndef _EDTWIN_HXX
+#include <edtwin.hxx>
+#endif
+#ifndef _FMTCOL_HXX
+#include <fmtcol.hxx>
+#endif
+#ifndef _SWTABLE_HXX
+#include <swtable.hxx>
+#endif
+#ifndef _CAPTION_HXX
+#include <caption.hxx>
+#endif
+#ifndef _VISCRS_HXX //autogen wg. SwSelPaintRects
+#include <viscrs.hxx>
+#endif
+
+#ifndef _SWERROR_H
+#include <swerror.h>
+#endif
+#ifndef _WRTSH_HRC
+#include <wrtsh.hrc>
+#endif
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+
+#define COMMON_INI_LIST \
+ rView(rShell),\
+ ePageMove(MV_NO),\
+ pCrsrStack(0), \
+ fnLeaveSelect(&SwWrtShell::SttLeaveSelect),\
+ fnDrag(&SwWrtShell::BeginDrag),\
+ fnEndDrag(&SwWrtShell::EndDrag),\
+ fnSetCrsr(&SwWrtShell::SetCrsr),\
+ fnKillSel(&SwWrtShell::Ignore),\
+ bDestOnStack(FALSE),\
+ pModeStack(0)
+
+#define BITFLD_INI_LIST \
+ bClearMark = \
+ bIns = TRUE;\
+ bAddMode = \
+ bExtMode = \
+ bInSelect = \
+ bCopy = \
+ bLayoutMode = \
+ bNoEdit = \
+ bSelWrd = \
+ bSelLn = \
+ bIsInClickToEdit = FALSE;
+
+
+void SwWrtShell::NoEdit(BOOL bHideCrsr)
+{
+ if(bHideCrsr)
+ HideCrsr();
+ bNoEdit = TRUE;
+}
+
+
+
+void SwWrtShell::Edit()
+{
+ if (CanInsert())
+ {
+ ShowCrsr();
+ bNoEdit = FALSE;
+ }
+}
+
+
+
+BOOL SwWrtShell::IsEndWrd()
+{
+ MV_KONTEXT(this);
+ if(IsEndPara() && !IsSttPara())
+ return TRUE;
+
+ return IsEndWord();
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Abfrage, ob Einfuegen moeglich ist; gfs. Beep
+------------------------------------------------------------------------*/
+
+
+
+BOOL SwWrtShell::_CanInsert()
+{
+ if(!CanInsert())
+ {
+ Sound::Beep();
+ return FALSE;
+ }
+ return TRUE;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: String einfuegen
+------------------------------------------------------------------------*/
+
+void SwWrtShell::InsertByWord( const String & rStr)
+{
+ if( rStr.Len() )
+ {
+ BOOL bDelim = WordSelection::IsNormalChar( rStr.GetChar(0) );
+ xub_StrLen nPos = 0, nStt = 0;
+ for( ; nPos < rStr.Len(); nPos++ )
+ {
+ BOOL bTmpDelim = WordSelection::IsNormalChar( rStr.GetChar( nPos ) );
+ if( bTmpDelim != bDelim )
+ {
+ Insert( rStr.Copy( nStt, nPos - nStt ));
+ nStt = nPos;
+ }
+ }
+ if( nStt != nPos )
+ Insert( rStr.Copy( nStt, nPos - nStt ));
+ }
+}
+
+
+void SwWrtShell::Insert( const String &rStr )
+{
+ ResetCursorStack();
+ if( !_CanInsert() )
+ return;
+
+ BOOL bStarted = FALSE, bHasSel = HasSelection(),
+ bCallIns = bIns /*|| bHasSel*/;
+
+ // Notify abschalten
+ SwChgLinkFlag *pChgFlg = bCallIns ? new SwChgLinkFlag( *this ) : 0;
+
+ if( bHasSel )
+ {
+ // nur hier klammern, da das normale Insert schon an der
+ // Editshell geklammert ist
+ StartAllAction();
+ StartUndo(UNDO_INSERT);
+ bStarted = TRUE;
+ DelRight();
+ }
+/*
+JP 21.01.98: Ueberschreiben ueberschreibt nur die Selektion, nicht das
+ naechste Zeichen.
+ if( bHasSel && !bIns && 1 < rStr.Len() )
+ {
+ // falls mehrere Zeichen anstehen, nur das erste einfuegen,
+ // der Rest muss dann aber Ueberschrieben werden.
+ SwEditShell::Insert( rStr.GetChar( 0 ) );
+ SwEditShell::Overwrite( rStr.Copy( 1 ) );
+ }
+ else
+*/
+ bCallIns ? SwEditShell::Insert( rStr ) : SwEditShell::Overwrite( rStr );
+
+
+ if( bStarted )
+ {
+ EndAllAction();
+ EndUndo(UNDO_INSERT);
+ }
+ delete pChgFlg;
+}
+
+/* Begrenzung auf maximale Hoehe geht nicht, da die maximale Hoehe
+ * des aktuellen Frames nicht erfragt werden kann. */
+
+
+
+void SwWrtShell::Insert( const String &rPath, const String &rFilter,
+ const Graphic &rGrf, SwFlyFrmAttrMgr *pFrmMgr,
+ BOOL bRule )
+{
+ ResetCursorStack();
+ if ( !_CanInsert() )
+ return;
+
+ StartAllAction();
+ StartUndo(UNDO_INSERT);
+
+ if ( HasSelection() )
+ DelRight();
+ // eingefuegte Grafik in eigenen Absatz, falls am Ende
+ // eines nichtleeren Absatzes
+ if ( IsEndPara() && !IsSttPara() )
+ SwFEShell::SplitNode();
+
+ EnterSelFrmMode();
+
+ BOOL bSetGrfSize = TRUE;
+ BOOL bOwnMgr = FALSE;
+
+ if ( !pFrmMgr )
+ {
+ bOwnMgr = TRUE;
+ pFrmMgr = new SwFlyFrmAttrMgr( TRUE, this, FRMMGR_TYPE_GRF );
+
+ // VORSICHT
+ // GetAttrSet nimmt einen Abgleich vor
+ // Beim Einfuegen ist eine SwFrmSize vorhanden wegen der
+ // DEF-Rahmengroesse
+ // Diese muss fuer die optimale Groesse explizit entfernt werden
+ pFrmMgr->DelAttr(RES_FRM_SIZE);
+ }
+ else
+ {
+ Size aSz( pFrmMgr->GetSize() );
+ if ( !aSz.Width() || !aSz.Height() )
+ {
+ aSz.Width() = aSz.Height() = 567;
+ pFrmMgr->SetSize( aSz );
+ }
+ else if ( aSz.Width() != DFLT_WIDTH && aSz.Height() != DFLT_HEIGHT )
+ bSetGrfSize = FALSE;
+
+ pFrmMgr->SetSizeType(ATT_FIX_SIZE);
+
+ }
+
+ // Einfuegen der Grafik
+ SwFEShell::Insert(rPath, rFilter, &rGrf, &pFrmMgr->GetAttrSet());
+ if ( bOwnMgr )
+ pFrmMgr->UpdateAttrMgr();
+
+ if( bSetGrfSize && !bRule )
+ {
+ Size aGrfSize, aBound = GetGraphicDefaultSize();
+ GetGrfSize( aGrfSize );
+
+ //Die GrafikSize noch um die Randattribute vergroessern, denn die
+ //Zaehlen beim Rahmen mit.
+ aGrfSize.Width() += pFrmMgr->CalcWidthBorder();
+ aGrfSize.Height()+= pFrmMgr->CalcHeightBorder();
+
+ const BigInt aTempWidth( aGrfSize.Width() );
+ const BigInt aTempHeight( aGrfSize.Height());
+
+ // ggf. Breite anpassen, Hoehe dann proportional verkleinern
+ if( aGrfSize.Width() > aBound.Width() )
+ {
+ aGrfSize.Width() = aBound.Width();
+ aGrfSize.Height() = ((BigInt)aBound.Width()) * aTempHeight / aTempWidth;
+ }
+ // ggf. Hoehe anpassen, Breite dann proportional verkleinern
+ if( aGrfSize.Height() > aBound.Height() )
+ {
+ aGrfSize.Height() = aBound.Height();
+ aGrfSize.Width() = ((BigInt)aBound.Height()) * aTempWidth / aTempHeight;
+ }
+ pFrmMgr->SetSize( aGrfSize );
+ pFrmMgr->UpdateFlyFrm();
+ }
+ if ( bOwnMgr )
+ delete pFrmMgr;
+
+ EndUndo(UNDO_INSERT);
+ EndAllAction();
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Fuegt ein OLE-Objekt in die CORE ein.
+ Wenn kein Object uebergeben wird, so wird eins erzeugt.
+------------------------------------------------------------------------*/
+
+
+void SwWrtShell::Insert( SvInPlaceObjectRef *pRef, SvGlobalName *pName, BOOL bActivate, USHORT nSlotId)
+{
+ ResetCursorStack();
+ if( !_CanInsert() )
+ {
+ delete pRef;
+ return;
+ }
+
+ if( !pRef )
+ {
+ //Wir bauen uns ein neues OLE-Objekt, entweder per Dialog oder direkt
+ //ueber den Namen.
+ SvInPlaceObjectRef xIPObj;
+ BOOL bDoVerb = TRUE;
+ if ( pName )
+ {
+ SvStorageRef aStor = new SvStorage( aEmptyStr );
+ xIPObj = &((SvFactory*)SvInPlaceObject::ClassFactory())->CreateAndInit(
+ *pName,aStor );
+ }
+ else
+ {
+ SvStorageRef aStor = new SvStorage( aEmptyStr, STREAM_STD_READWRITE);
+
+ switch (nSlotId)
+ {
+ case SID_INSERT_OBJECT:
+ {
+ SvInsertOleObjectDialog aDlg;
+ aDlg.SetHelpId(nSlotId);
+
+ //Wir wollen uns nicht selbst servieren.
+ SvObjectServerList aServerList;
+ aDlg.FillObjectServerList( &aServerList );
+ aServerList.Remove( *SwDocShell::ClassFactory() );
+
+ xIPObj = aDlg.Execute( GetWin(), aStor, &aServerList);
+ bDoVerb = aDlg.IsCreateNew();
+ }
+ break;
+
+ case SID_INSERT_PLUGIN:
+ {
+ SvInsertPlugInDialog aDlg;
+ aDlg.SetHelpId(nSlotId);
+
+ xIPObj = aDlg.Execute( GetWin(), aStor);
+ bDoVerb = FALSE;
+ }
+ break;
+
+ case SID_INSERT_APPLET:
+ {
+ SvInsertAppletDialog aDlg;
+ aDlg.SetHelpId(nSlotId);
+
+ xIPObj = aDlg.Execute( GetWin(), aStor);
+ bDoVerb = FALSE;
+ }
+ break;
+
+ case SID_INSERT_FLOATINGFRAME:
+ {
+ SfxInsertFloatingFrameDialog aDlg( GetWin() );
+ xIPObj = aDlg.Execute( aStor );
+ bDoVerb = FALSE;
+ }
+
+ default:
+ break;
+ }
+ }
+
+ if ( xIPObj.Is() )
+ {
+ if( SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE &
+ xIPObj->GetMiscStatus() && GetPrt() )
+ xIPObj->OnDocumentPrinterChanged( GetPrt() );
+
+ if( InsertOle( xIPObj ) && bActivate && bDoVerb )
+ {
+ ASSERT( !xIPObj->IsLink(), "Link nicht aus Datei?" );
+ SfxInPlaceClientRef xCli = GetView().FindIPClient( xIPObj,
+ &GetView().GetEditWin());
+ if ( !xCli.Is() )
+ xCli = new SwOleClient( &GetView(), &GetView().GetEditWin());
+ ErrCode nErr = xIPObj->DoConnect( xCli );
+ ErrorHandler::HandleError( nErr );
+ if ( !ERRCODE_TOERROR(nErr) )
+ {
+ SvEmbeddedObjectRef xObj = &xIPObj;
+ CalcAndSetScale( xObj );
+ //#50270# Error brauchen wir nicht handeln, das erledigt das
+ //DoVerb in der SfxViewShell
+ nErr = GetView().SfxViewShell::DoVerb( xCli, SVVERB_SHOW );
+ if ( !ERRCODE_TOERROR( nErr ) )
+ xIPObj->SetDocumentName( GetView().GetDocShell()->GetTitle() );
+ }
+ }
+ }
+ }
+ else
+ {
+ if( HasSelection() )
+ DelRight();
+ InsertOle( *pRef );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Object in die Core einfuegen.
+ Vom ClipBoard oder Insert
+------------------------------------------------------------------------*/
+
+BOOL SwWrtShell::InsertOle( SvInPlaceObjectRef aRef )
+{
+ if ( aRef.Is() )
+ {
+ ResetCursorStack();
+ StartAllAction();
+ StartUndo(UNDO_INSERT);
+
+ //Some differences between StarMath and any other objects:
+ //1. Selections should be deleted. For StarMath the Text should be
+ // passed to the Object
+ //2. If the cursor is at the end of an non empty paragraph a paragraph
+ // break should be insertet. StarMath objects are character bound and
+ // no break should be inserted.
+ //3. If an selektion is passed to a StarMath object, this object should
+ // not be activated. FALSE should be returned then.
+ BOOL bStarMath,
+ bActivate = TRUE;
+
+ SvGlobalName aCLSID;
+ ULONG lDummy;
+ String aDummy;
+ // determine source CLSID
+ aRef->SvPseudoObject::FillClass( &aCLSID, &lDummy, &aDummy, &aDummy, &aDummy);
+ bStarMath = SmModuleDummy::HasID( *aRef->GetSvFactory() );
+ if ( !bStarMath && aRef->IsLink() && SmModuleDummy::HasID( aCLSID ) )
+ {
+ //StarMath was the server which did the last recent work on
+ //this object.
+ bStarMath = TRUE;
+ }
+
+ if ( IsSelection() )
+ {
+ if ( bStarMath )
+ {
+ String aMathData;
+ GetSelectedText( aMathData, GETSELTXT_PARABRK_TO_ONLYCR );
+ if ( aMathData.Len() )
+ {
+ SvData aData( FORMAT_STRING );
+ aData.SetData( aMathData );
+ if ( aRef->SetData( &aData ) )
+ {
+ bActivate = FALSE;
+ //StarMath size depends on the Printer, which is
+ //passed here direct for avoiding time consuming
+ //connections between StarWriter and StarMath
+ aRef->OnDocumentPrinterChanged( GetPrt() );
+ }
+ else
+ bActivate = TRUE;
+ }
+ }
+ DelRight();
+ }
+
+ if ( !bStarMath )
+ SwFEShell::SplitNode( FALSE, FALSE );
+
+ EnterSelFrmMode();
+
+ SwFlyFrmAttrMgr aFrmMgr( TRUE, this, FRMMGR_TYPE_OLE );
+ aFrmMgr.SetSizeType(ATT_FIX_SIZE);
+
+ SwRect aBound;
+ CalcBoundRect( aBound, aFrmMgr.GetAnchor() );
+
+ //The Size should be suggested by the OLE server
+ MapMode aRefMap( aRef->GetMapUnit() );
+ Size aSz( aRef->GetVisArea().GetSize() );
+ if ( !aSz.Width() || !aSz.Height() )
+ {
+ aSz.Width() = aSz.Height() = 5000;
+ aSz = OutputDevice::LogicToLogic
+ ( aSz, MapMode( MAP_100TH_MM ), aRefMap );
+ }
+ MapMode aMyMap( MAP_TWIP );
+ aSz = OutputDevice::LogicToLogic( aSz, aRefMap, aMyMap );
+ //Object size can be limited
+ if ( aSz.Width() > aBound.Width() )
+ {
+ //Immer proportional begrenzen.
+ aSz.Height() = aSz.Height() * aBound.Width() / aSz.Width();
+ aSz.Width() = aBound.Width();
+ }
+ aFrmMgr.SetSize( aSz );
+ SwFEShell::Insert( &aRef, &aFrmMgr.GetAttrSet() );
+
+ EndAllAction();
+ GetView().AutoCaption(OLE_CAP, &aCLSID);
+ EndUndo(UNDO_INSERT);
+
+ return bActivate;
+ }
+ return FALSE;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Das aktuelle selektierte OLE-Objekt wird mit dem
+ Verb in den Server geladen.
+------------------------------------------------------------------------*/
+
+
+
+void SwWrtShell::LaunchOLEObj( long nVerb )
+{
+ if ( GetCntType() == CNT_OLE &&
+ !GetView().GetDocShell()->GetProtocol().IsInPlaceActive() )
+ {
+ SvInPlaceObjectRef xRef = GetOLEObj();
+ ASSERT( xRef.Is(), "OLE not found" );
+ SfxInPlaceClientRef xCli;
+ if ( !xRef->IsLink() )
+ {
+ // Link fuer Daten-Highlighting im Chart zuruecksetzen
+ if( SFX_APP()->HasFeature( SFX_FEATURE_SCHART ) )
+ {
+ SvGlobalName aObjClsId( *xRef->GetSvFactory() );
+ SchMemChart* pMemChart;
+ if( SchModuleDummy::HasID( aObjClsId ) &&
+ 0 != (pMemChart = SchDLL::GetChartData( xRef ) ))
+ {
+ pMemChart->SetSelectionHdl( LINK( this, SwWrtShell,
+ ChartSelectionHdl ) );
+ //#60043# Damit die DataBrowseBox nicht erscheint wird das
+ //Chart auf Readonly gesetzt wenn es eine Verbindung
+ //zu einer Tabelle hat.
+ if ( GetChartName( xRef ).Len() )
+ pMemChart->SetReadOnly( TRUE );
+ }
+ }
+
+ xCli = GetView().FindIPClient( xRef, &GetView().GetEditWin() );
+ if ( !xCli.Is() )
+ xCli = new SwOleClient( &GetView(), &GetView().GetEditWin() );
+
+ ((SwOleClient*)&xCli)->SetInDoVerb( TRUE );
+
+ xRef->DoConnect( xCli );
+ SvEmbeddedObjectRef xObj = &xRef;
+ CalcAndSetScale( xObj );
+ //#50270# Error brauchen wir nicht handeln, das erledigt das
+ //DoVerb in der SfxViewShell
+ GetView().SfxViewShell::DoVerb( xCli, nVerb );
+
+ ((SwOleClient*)&xCli)->SetInDoVerb( FALSE );
+ CalcAndSetScale( xObj );
+ }
+ else
+ {
+ ErrCode nErr;
+ SfxErrorContext aEc( ERRCTX_SO_DOVERB, &GetView().GetEditWin(),
+ RID_SO_ERRCTX );
+ nErr = xRef->DoVerb( nVerb );
+ if ( nErr )
+ ErrorHandler::HandleError( nErr );
+ }
+
+ }
+}
+
+BOOL SwWrtShell::FinishOLEObj() // Server wird beendet
+{
+ SfxInPlaceClient* pIPClient = GetView().GetIPClient();
+ BOOL bRet = pIPClient && pIPClient->IsInPlaceActive();
+ if( bRet )
+ {
+ // Link fuer Daten-Highlighting im Chart zuruecksetzen
+ if( SFX_APP()->HasFeature(SFX_FEATURE_SCHART) )
+ {
+ SvInPlaceObject* pObj = pIPClient->GetIPObj();
+ SvGlobalName aObjClsId( *pObj->GetSvFactory() );
+ SchMemChart* pMemChart;
+ if( SchModuleDummy::HasID( aObjClsId ) &&
+ 0 != (pMemChart = SchDLL::GetChartData( pObj ) ))
+ {
+ pMemChart->SetSelectionHdl( Link() );
+
+//ggfs. auch die Selektion restaurieren
+ LockView( TRUE ); //Scrollen im EndAction verhindern
+ ClearMark();
+ LockView( FALSE );
+ }
+ }
+
+ //InPlace beenden.
+ pIPClient->GetProtocol().Reset2Open();
+ SFX_APP()->SetViewFrame( GetView().GetViewFrame() );
+ }
+ return bRet;
+}
+
+
+void SwWrtShell::CalcAndSetScale( SvEmbeddedObjectRef xObj,
+ const SwRect *pFlyPrtRect,
+ const SwRect *pFlyFrmRect )
+{
+ //Einstellen der Skalierung am Client. Diese ergibt sich aus der Differenz
+ //zwischen der VisArea des Objektes und der ObjArea.
+ ASSERT( xObj.Is(), "ObjectRef not valid" );
+
+ SfxInPlaceClientRef xCli = GetView().FindIPClient( xObj, &GetView().GetEditWin() );
+ if ( !xCli.Is() || !xCli->GetEnv() )
+ {
+ //Das kann ja wohl nur ein nicht aktives Objekt sein. Diese bekommen
+ //auf Wunsch die neue Groesse als VisArea gesetzt (StarChart)
+ if( SVOBJ_MISCSTATUS_SERVERRESIZE & xObj->GetMiscStatus() )
+ {
+ SwRect aRect( pFlyPrtRect ? *pFlyPrtRect
+ : GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, 0, &xObj ));
+ if( !aRect.IsEmpty() )
+ xObj->SetVisArea( OutputDevice::LogicToLogic(
+ aRect.SVRect(), MAP_TWIP, xObj->GetMapUnit() ));
+ return;
+ }
+ if ( SVOBJ_MISCSTATUS_ALWAYSACTIVATE & xObj->GetMiscStatus() ||
+ SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE & xObj->GetMiscStatus() )
+ {
+ xCli = new SwOleClient( &GetView(), &GetView().GetEditWin() );
+ }
+ else
+ return;
+ }
+
+ Size aVisArea( xObj->GetVisArea().GetSize() );
+ BOOL bSetScale100 = TRUE;
+ SvContainerEnvironment *pEnv = xCli->GetEnv();
+
+ // solange keine vernuenftige Size vom Object kommt, kann nichts
+ // skaliert werden
+ if( aVisArea.Width() && aVisArea.Height() )
+ {
+ const MapMode aTmp( MAP_TWIP );
+ aVisArea = OutputDevice::LogicToLogic( aVisArea, xObj->GetMapUnit(), aTmp);
+ Size aObjArea;
+ if ( pFlyPrtRect )
+ aObjArea = pFlyPrtRect->SSize();
+ else
+ aObjArea = GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, 0, &xObj ).SSize();
+
+ // differ the aObjArea and aVisArea by 1 Pixel then set new VisArea
+ long nX, nY;
+ SwSelPaintRects::Get1PixelInLogic( *this, &nX, &nY );
+ if( !( aVisArea.Width() - nX <= aObjArea.Width() &&
+ aVisArea.Width() + nX >= aObjArea.Width() &&
+ aVisArea.Height()- nY <= aObjArea.Height()&&
+ aVisArea.Height()+ nY >= aObjArea.Height() ))
+ {
+ if( SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE & xObj->GetMiscStatus() )
+ {
+ //This type of objects should never be resized.
+ //If this request comes from the Writer core (inaktive Object
+ //ist resized), the Object should be resized too.
+ //If this request comes from the Object itself, the Frame
+ //in the Writer core should be resized.
+ if ( pFlyPrtRect ) //Request from core?
+ {
+ xObj->SetVisArea( OutputDevice::LogicToLogic(
+ pFlyPrtRect->SVRect(), MAP_TWIP, xObj->GetMapUnit() ));
+ }
+ else
+ {
+ SwRect aTmp( Point( LONG_MIN, LONG_MIN ), aVisArea );
+ RequestObjectResize( aTmp, xObj );
+ }
+ //Der Rest erledigt sich, weil wir eh wiederkommen sollten, evtl.
+ //sogar rekursiv.
+ return;
+ }
+ else
+ {
+ const Fraction aScaleWidth ( aObjArea.Width(), aVisArea.Width() );
+ const Fraction aScaleHeight( aObjArea.Height(), aVisArea.Height());
+ pEnv->SetSizeScale( aScaleWidth, aScaleHeight );
+ bSetScale100 = FALSE;
+ }
+ }
+ }
+
+ if( bSetScale100 )
+ {
+ const Fraction aScale( 1, 1 );
+ pEnv->SetSizeScale( aScale, aScale );
+ }
+
+ //Jetzt ist auch der guenstige Zeitpunkt die ObjArea einzustellen.
+ //Die Scalierung muss beruecksichtigt werden.
+ SwRect aArea;
+ if ( pFlyPrtRect )
+ {
+ aArea = *pFlyPrtRect;
+ aArea += pFlyFrmRect->Pos();
+ }
+ else
+ {
+ aArea = GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, 0, &xObj );
+ aArea.Pos() += GetAnyCurRect( RECT_FLY_EMBEDDED, 0, &xObj ).Pos();
+ }
+ aArea.Width ( Fraction( aArea.Width() ) / pEnv->GetScaleWidth() );
+ aArea.Height( Fraction( aArea.Height() ) / pEnv->GetScaleHeight());
+ pEnv->SetObjArea( aArea.SVRect() );
+
+ if ( SVOBJ_MISCSTATUS_ALWAYSACTIVATE & xObj->GetMiscStatus() )
+ {
+ xObj->DoConnect( xCli );
+ xObj->DoVerb();
+ }
+}
+
+
+
+void SwWrtShell::ConnectObj( SvInPlaceObjectRef xIPObj, const SwRect &rPrt,
+ const SwRect &rFrm )
+{
+ if ( !xIPObj->IsLink() )
+ {
+ SfxInPlaceClientRef xCli = GetView().FindIPClient( xIPObj,
+ &GetView().GetEditWin());
+ if ( !xCli.Is() )
+ xCli = new SwOleClient( &GetView(), &GetView().GetEditWin() );
+ xIPObj->DoConnect( xCli );
+ SvEmbeddedObjectRef xObj = &xIPObj;
+ CalcAndSetScale( xObj, &rPrt, &rFrm );
+ }
+}
+
+IMPL_LINK( SwWrtShell, ChartSelectionHdl, ChartSelectionInfo *, pInfo )
+{
+ long nRet = 0;
+
+#ifdef USED
+// JP 03.11.98: mit der Selektion kann es nicht gehen, da dann der Cursor
+// immer sichtbar gemacht wird. Das fuehrt dann aber zu
+// unbeabsichtigten scrollen. Ausserdem sind 2 Selektionen
+// vorhanden - TabellenSelektion und die OLE-Rahmenselektion.
+
+ if( pInfo )
+ {
+ if( CHART_SEL_QUERYSUPPORT & pInfo->nSelection )
+ nRet = CHART_SEL_NONE | CHART_SEL_ALL | CHART_SEL_ROW |
+ CHART_SEL_COL | CHART_SEL_POINT;
+ else
+ {
+ // dann suche mal die Tabelle zu diesem StarChart-Object
+ SfxInPlaceClient* pIPClient = GetView().GetIPClient();
+ SvInPlaceObject* pObj = pIPClient &&
+ pIPClient->IsInPlaceActive()
+ ? pIPClient->GetIPObj() : 0;
+ String sTable;
+ if( pObj )
+ sTable = GetChartName( pObj );
+
+ if( sTable.Len() )
+ {
+ LockView( TRUE ); //Scrollen im EndAction verhindern
+ StartAction();
+
+ ClearMark();
+ if( GotoTable( sTable ) )
+ {
+ // !!!!!!!!!!!!!!!
+ // im nSelection sind Flags gesetzt, koennen also
+ // auch gemischt auftauchen, darum das nICol, nIRow
+ // !!!!!!!!!!!!!!!!
+ USHORT nIRow = pInfo->nRow, nICol = pInfo->nCol,
+ nRow = 0, nCol = 0;
+
+ SchMemChart* pMemChart = SchDLL::GetChartData( pObj );
+ if( pMemChart && 2 == pMemChart->SomeData2().Len() )
+ {
+ if( '1' == pMemChart->SomeData2().GetChar( 0 ) )
+ ++nIRow;
+ if( '1' == pMemChart->SomeData2().GetChar( 1 ))
+ ++nICol;
+ }
+
+// ist das default if( (CHART_SEL_NONE | CHART_SEL_ALL) & pInfo->nSelection )
+ if( CHART_SEL_ROW & pInfo->nSelection )
+ nRow = nIRow, nCol = 0;
+ if( CHART_SEL_COL & pInfo->nSelection )
+ nCol = nICol, nRow = 0;
+ if( CHART_SEL_POINT & pInfo->nSelection )
+ nCol = nICol, nRow = nIRow;
+
+ if( GotoTblBox( SwTable::GetBoxName( nRow, nCol ) ) )
+ {
+ nRet = pInfo->nSelection;
+ if( ( CHART_SEL_ROW & pInfo->nSelection && !SelTblRow() ) ||
+ ( CHART_SEL_COL & pInfo->nSelection && !SelTblCol() ) ||
+ ( CHART_SEL_ALL & pInfo->nSelection &&
+ ( SetMark(),
+ !MoveTable( fnTableCurr, fnTableEnd ))) )
+ nRet = 0;
+ else if( CHART_SEL_POINT & pInfo->nSelection )
+ {
+ // Selektion der einen Box
+ SetMark();
+ if( GoPrevCell() )
+ GoNextCell( FALSE );
+ else if( GoNextCell( FALSE ) )
+ GoPrevCell();
+ else
+ ClearMark();
+ }
+ }
+ }
+
+ EndAction();
+ LockView( FALSE );
+ }
+ }
+ }
+#endif
+ return nRet;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Einfuegen harter Seitenumbruch;
+ Selektionen werden ueberschrieben
+------------------------------------------------------------------------*/
+
+
+
+void SwWrtShell::InsertPageBreak(const String *pPageDesc, USHORT nPgNum )
+{
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ if(!_CanInsert())
+ return;
+
+ StartUndo(UIUNDO_INSERT_PAGE_BREAK);
+
+ if ( !IsCrsrInTbl() )
+ {
+ if(HasSelection())
+ DelRight();
+ SwFEShell::SplitNode();
+ }
+
+ const SwPageDesc *pDesc = pPageDesc
+ ? FindPageDescByName( *pPageDesc, TRUE ) : 0;
+ if( pDesc )
+ {
+ SwFmtPageDesc aDesc( pDesc );
+ aDesc.SetNumOffset( nPgNum );
+ SetAttr( aDesc );
+ }
+ else
+ SetAttr( SvxFmtBreakItem(SVX_BREAK_PAGE_BEFORE) );
+ EndUndo(UIUNDO_INSERT_PAGE_BREAK);
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Einfuegen harter Zeilenumbruch;
+ Selektionen werden ueberschrieben
+------------------------------------------------------------------------*/
+
+
+void SwWrtShell::InsertLineBreak()
+{
+ ResetCursorStack();
+
+ if(!_CanInsert())
+ return;
+
+ if(HasSelection())
+ DelRight();
+
+ SwWrtShell::Insert(String((char)0x0A));
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Einfuegen harter Spaltenumbruch;
+ Selektionen werden ueberschrieben
+------------------------------------------------------------------------*/
+
+
+void SwWrtShell::InsertColumnBreak()
+{
+ ACT_KONTEXT(this);
+ ResetCursorStack();
+ if(!_CanInsert())
+ return;
+ StartUndo(UIUNDO_INSERT_COLUMN_BREAK);
+
+ if ( !IsCrsrInTbl() )
+ {
+ if(HasSelection())
+ DelRight();
+ SwFEShell::SplitNode();
+ }
+ SetAttr(SvxFmtBreakItem(SVX_BREAK_COLUMN_BEFORE));
+
+ EndUndo(UIUNDO_INSERT_COLUMN_BREAK);
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Einfuegen Fussnote
+ Parameter: rStr -- optionales Fussnotenzeichen
+------------------------------------------------------------------------*/
+
+
+void SwWrtShell::InsertFootnote(const String &rStr, BOOL bEndNote, BOOL bEdit )
+{
+ ResetCursorStack();
+ if(!_CanInsert())
+ return;
+
+ if(HasSelection())
+ DelRight();
+
+ SwFmtFtn aFootNote( bEndNote );
+ if(rStr.Len())
+ aFootNote.SetNumStr( rStr );
+
+ SetAttr(aFootNote);
+
+ if ( bEdit )
+ {
+ // zur Bearbeiung des Fussnotentextes
+ Left();
+ GotoFtnTxt();
+ }
+}
+/*------------------------------------------------------------------------
+ Beschreibung: SplitNode; hier auch, da
+ - selektierter Inhalt geloescht wird;
+ - der Cursorstack gfs. zurueckgesetzt wird.
+------------------------------------------------------------------------*/
+
+
+void SwWrtShell::SplitNode( BOOL bAutoFmt, BOOL bCheckTableStart )
+{
+ ResetCursorStack();
+ if(!_CanInsert())
+ return;
+
+ ACT_KONTEXT(this);
+
+ rView.GetEditWin().FlushInBuffer( this );
+ BOOL bHasSel = HasSelection();
+ if( bHasSel )
+ {
+ StartUndo( UNDO_INSERT );
+ DelRight();
+ }
+
+ SwFEShell::SplitNode( bAutoFmt, bCheckTableStart );
+ if( bHasSel )
+ EndUndo( UNDO_INSERT );
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Numerierung anschalten
+ Parameter: Optionale Angabe eines Namens fuer die benannte Liste;
+ dieser bezeichnet eine Position, wenn er in eine
+ Zahl konvertierbar ist und kleiner ist als nMaxRules.
+-------------------------------------------------------------------------*/
+
+
+// zum Testen der CharFormate an der Numerierung
+// extern void SetNumChrFmt( SwWrtShell*, SwNumRules& );
+
+void SwWrtShell::NumOn()
+{
+ SwNumRule aNumRule( GetUniqueNumRuleName() );
+
+ const SwNumRule* pCurRule = GetCurNumRule();
+ if( !pCurRule )
+ {
+ // Zeichenvorlage an die Numerierung haengen
+ SwCharFmt* pChrFmt = GetCharFmtFromPool( RES_POOLCHR_NUM_LEVEL );
+ SwDocShell* pDocSh = GetView().GetDocShell();
+ BOOL bHtml = 0 != PTR_CAST(SwWebDocShell, pDocSh);
+ for( BYTE nLvl = 0; nLvl < MAXLEVEL; ++nLvl )
+ {
+ SwNumFmt aFmt( aNumRule.Get( nLvl ) );
+ aFmt.SetCharFmt( pChrFmt );
+ if(bHtml && nLvl)
+ {
+ // 1/2" fuer HTML
+ aFmt.SetLSpace(720);
+ aFmt.SetAbsLSpace(nLvl * 720);
+ }
+ aNumRule.Set( nLvl, aFmt );
+ }
+ SetCurNumRule( aNumRule );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Default-Bulletliste erfragen
+------------------------------------------------------------------------*/
+
+void SwWrtShell::BulletOn()
+{
+ SwNumRule aRule( GetUniqueNumRuleName() );
+
+ SwCharFmt* pChrFmt = GetCharFmtFromPool( RES_POOLCHR_BUL_LEVEL );
+ const Font* pFnt = &SwNumRule::GetDefBulletFont();
+
+ SwDocShell* pDocSh = GetView().GetDocShell();
+ BOOL bHtml = 0 != PTR_CAST(SwWebDocShell, pDocSh);
+ for( BYTE n = 0; n < MAXLEVEL; ++n )
+ {
+ SwNumFmt aFmt( aRule.Get( n ) );
+ aFmt.SetBulletFont( pFnt );
+ aFmt.SetBulletChar( cBulletChar );
+ aFmt.eType = SVX_NUM_CHAR_SPECIAL;
+ aFmt.SetCharFmt( pChrFmt );
+ if(bHtml && n)
+ {
+ // 1/2" fuer HTML
+ aFmt.SetLSpace(720);
+ aFmt.SetAbsLSpace(n * 720);
+ }
+ aRule.Set( n, aFmt );
+ }
+ SetCurNumRule( aRule );
+}
+
+/*--------------------------------------------------
+
+--------------------------------------------------*/
+int SwWrtShell::GetSelectionType() const
+{
+ // ContentType kann nicht ermittelt werden innerhalb einer
+ // Start-/Endactionklammerung.
+ // Da es keinen ungueltigen Wert gibt, wird TEXT geliefert.
+ // Der Wert ist egal, da in EndAction ohnehin aktualisiert wird.
+
+ if ( BasicActionPend() )
+ return IsSelFrmMode() ? SEL_FRM : SEL_TXT;
+
+// if ( IsTableMode() )
+// return SEL_TBL | SEL_TBL_CELLS;
+
+ SwView &rView = ((SwView&)GetView());
+ USHORT nCnt;
+
+ // Rahmen einfuegen ist kein DrawMode
+ if ( !rView.GetEditWin().IsFrmAction() &&
+ (IsObjSelected() || (rView.IsDrawMode() && !IsFrmSelected()) ))
+ {
+ if (GetDrawView()->IsTextEdit())
+ nCnt = SEL_DRW_TXT;
+ else
+ {
+ if (GetView().IsFormMode()) // Nur Forms selektiert
+ nCnt = SEL_DRW_FORM;
+ else
+ nCnt = SEL_DRW; // Irgendein Draw-Objekt
+
+ if (rView.IsBezierEditMode())
+ nCnt |= SEL_BEZ;
+ }
+
+ return nCnt;
+ }
+
+ nCnt = GetCntType();
+
+ if ( IsFrmSelected() )
+ {
+ if (rView.IsDrawMode())
+ rView.LeaveDrawCreate(); // Aufraeumen (Bug #45639)
+ if ( !(nCnt & (CNT_GRF | CNT_OLE)) )
+ return SEL_FRM;
+ }
+
+ if ( IsCrsrInTbl() )
+ nCnt |= SEL_TBL;
+
+ if ( IsTableMode() )
+ nCnt |= (SEL_TBL | SEL_TBL_CELLS);
+
+ if ( GetCurNumRule() )
+ nCnt |= SEL_NUM;
+
+ return nCnt;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Finden der TextCollection mit dem Name rCollname
+ Return: Pointer auf die Collection oder 0, wenn keine
+ TextCollection mit diesem Namen existiert oder
+ diese eine Defaultvorlage ist.
+------------------------------------------------------------------------*/
+
+
+SwTxtFmtColl *SwWrtShell::GetParaStyle(const String &rCollName, GetStyle eCreate )
+{
+ SwTxtFmtColl* pColl = FindTxtFmtCollByName( rCollName );
+ if( !pColl && GETSTYLE_NOCREATE != eCreate )
+ {
+ USHORT nId = GetPoolId( rCollName, GET_POOLID_TXTCOLL );
+ if( USHRT_MAX != nId || GETSTYLE_CREATEANY == eCreate )
+ pColl = GetTxtCollFromPool( nId );
+ }
+ return pColl;
+}
+/*------------------------------------------------------------------------
+ Beschreibung: Finden der Zeichenvorlage mit dem Name rCollname
+ Return: Pointer auf die Collection oder 0, wenn keine
+ Zeichenvorlage mit diesem Namen existiert oder
+ diese eine Defaultvorlage oder automatische Vorlage ist.
+------------------------------------------------------------------------*/
+
+
+
+SwCharFmt *SwWrtShell::GetCharStyle(const String &rFmtName, GetStyle eCreate )
+{
+ SwCharFmt* pFmt = FindCharFmtByName( rFmtName );
+ if( !pFmt && GETSTYLE_NOCREATE != eCreate )
+ {
+ USHORT nId = GetPoolId( rFmtName, GET_POOLID_CHRFMT );
+ if( USHRT_MAX != nId || GETSTYLE_CREATEANY == eCreate )
+ pFmt = (SwCharFmt*)GetFmtFromPool( nId );
+ }
+ return pFmt;
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Finden des Tabellenformates mit dem Name rFmtname
+ Return: Pointer auf das Format oder 0, wenn kein
+ Rahmenformat mit diesem Namen existiert oder
+ dieses eine Defaultformat oder automatisches Format ist.
+------------------------------------------------------------------------*/
+
+
+
+SwFrmFmt *SwWrtShell::GetTblStyle(const String &rFmtName)
+{
+ SwFrmFmt *pFmt = 0;
+ for( USHORT i = GetTblFrmFmtCount(); i; )
+ if( !( pFmt = &GetTblFrmFmt( --i ) )->IsDefault() &&
+ pFmt->GetName() == rFmtName && IsUsed( *pFmt ) )
+ return pFmt;
+ return 0;
+}
+
+
+/*------------------------------------------------------------------------
+ Beschreibung: Anwenden der Vorlagen
+------------------------------------------------------------------------*/
+
+
+
+void SwWrtShell::SetPageStyle(const String &rCollName)
+{
+ if( !SwCrsrShell::HasSelection() && !IsSelFrmMode() && !IsObjSelected() )
+ {
+ SwPageDesc* pDesc = FindPageDescByName( rCollName, TRUE );
+ if( pDesc )
+ ChgCurPageDesc( *pDesc );
+ }
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Zugriff Vorlagen
+------------------------------------------------------------------------*/
+
+
+
+String SwWrtShell::GetCurPageStyle( const BOOL bCalcFrm ) const
+{
+ return GetPageDesc(GetCurPageDesc( bCalcFrm )).GetName();
+}
+
+/*------------------------------------------------------------------------
+ Beschreibung: Aktuelle Vorlage anhand der geltenden Attribute aendern
+------------------------------------------------------------------------*/
+
+
+void SwWrtShell::QuickUpdateStyle()
+{
+ SwTxtFmtColl *pColl = GetCurTxtFmtColl();
+
+ // Standard kann nicht geaendert werden
+ if(pColl && !pColl->IsDefault())
+ {
+ FillByEx(pColl);
+ // Vorlage auch anwenden, um harte Attributierung
+ // zu entfernen
+ SetTxtFmtColl(pColl);
+ }
+}
+
+
+void SwWrtShell::AutoUpdatePara(SwTxtFmtColl* pColl, const SfxItemSet& rStyleSet)
+{
+ SfxItemSet aCoreSet( GetAttrPool(),
+ RES_CHRATR_BEGIN, RES_CHRATR_END - 1,
+ RES_PARATR_BEGIN, RES_PARATR_END - 1,
+ RES_FRMATR_BEGIN, RES_FRMATR_END - 1,
+ SID_ATTR_TABSTOP_POS, SID_ATTR_TABSTOP_POS,
+ SID_ATTR_TABSTOP_DEFAULTS, SID_ATTR_TABSTOP_DEFAULTS,
+ SID_ATTR_TABSTOP_OFFSET, SID_ATTR_TABSTOP_OFFSET,
+ SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
+ SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
+ SID_ATTR_PARA_PAGENUM, SID_ATTR_PARA_PAGENUM,
+ 0 );
+ GetAttr( aCoreSet );
+ BOOL bReset = FALSE;
+ SfxItemIter aParaIter( aCoreSet );
+ const SfxPoolItem* pParaItem = aParaIter.FirstItem();
+ while( pParaItem )
+ {
+ if(!IsInvalidItem(pParaItem))
+ {
+ USHORT nWhich = pParaItem->Which();
+ if(SFX_ITEM_SET == aCoreSet.GetItemState(nWhich) &&
+ SFX_ITEM_SET == rStyleSet.GetItemState(nWhich))
+ {
+ aCoreSet.ClearItem(nWhich);
+ bReset = TRUE;
+ }
+ }
+ pParaItem = aParaIter.NextItem();
+ }
+ StartAction();
+ if(bReset)
+ {
+ ResetAttr();
+ SetAttr(aCoreSet);
+ }
+ pColl->SetAttr( rStyleSet );
+ EndAction();
+}
+
+/*-----------------12.03.97 12.24-------------------
+
+--------------------------------------------------*/
+
+void SwWrtShell::AutoUpdateFrame( SwFrmFmt* pFmt, const SfxItemSet& rStyleSet )
+{
+ StartAction();
+
+ ResetFlyFrmAttr( 0, &rStyleSet );
+ pFmt->SetAttr( rStyleSet );
+
+ EndAction();
+}
+
+
+void SwWrtShell::AutoCorrect( SvxAutoCorrect& rACorr, sal_Unicode cChar )
+{
+ ResetCursorStack();
+ if(_CanInsert())
+ {
+ BOOL bStarted = FALSE;
+ if(HasSelection())
+ {
+ // nur hier klammern, da das normale Insert schon an der
+ // Editshell geklammert ist
+ StartAllAction();
+ StartUndo(UNDO_INSERT);
+ bStarted = TRUE;
+ DelRight();
+ }
+ SwEditShell::AutoCorrect( rACorr, IsInsMode(), cChar );
+
+ if(bStarted)
+ {
+ EndAllAction();
+ EndUndo(UNDO_INSERT);
+ }
+ }
+}
+
+
+/*
+ * eine Art kontrollierter copy ctor
+ */
+
+SwWrtShell::SwWrtShell(SwWrtShell *pSh, Window *pWin, SwView &rShell) :
+ SwFEShell( pSh,pWin ),
+ COMMON_INI_LIST
+{
+ BITFLD_INI_LIST
+ SET_CURR_SHELL( this );
+ SetSfxViewShell( (SfxViewShell *)&rShell );
+ SetFlyMacroLnk( LINK(this, SwWrtShell, ExecFlyMac) );
+}
+
+
+SwWrtShell::SwWrtShell(SwDoc *pDoc,
+ uno::Reference< linguistic::XSpellChecker1 > &xSpell,
+ uno::Reference< linguistic::XHyphenator > &xHyph,
+ Window *pWin, SwView &rShell, SwRootFrm *pRoot,
+ const SwViewOption *pViewOpt )
+ : SwFEShell(pDoc, xSpell, xHyph, pWin, pRoot, pViewOpt),
+ COMMON_INI_LIST
+{
+ BITFLD_INI_LIST
+ SET_CURR_SHELL( this );
+ SetSfxViewShell( (SfxViewShell *)&rShell );
+ SetFlyMacroLnk( LINK(this, SwWrtShell, ExecFlyMac) );
+}
+
+/*
+ * ctor
+ */
+
+
+
+SwWrtShell::~SwWrtShell()
+{
+ SET_CURR_SHELL( this );
+ while(IsModePushed())
+ PopMode();
+ while(PopCrsr(FALSE))
+ ;
+}
+
+
+
+
+void SwWrtShell::StartBasicAction()
+{
+ IncBasicAction();
+ StartAllAction();
+}
+
+
+
+void SwWrtShell::SetBasicActionCount(USHORT nSet)
+{
+ DBG_ASSERT(!GetBasicActionCnt(), "Es sind schon Actions offen!")
+ while( nSet )
+ {
+ IncBasicAction();
+ StartAllAction();
+ nSet--;
+ }
+}
+
+
+
+void SwWrtShell::EndBasicAction()
+{
+ if(GetBasicActionCnt())
+ {
+ DecBasicAction();
+ EndAllAction();
+ }
+}
+
+
+
+USHORT SwWrtShell::EndAllBasicActions()
+{
+ USHORT nRet = GetBasicActionCnt();
+ while( GetBasicActionCnt() )
+ {
+ DecBasicAction();
+ EndAllAction();
+ }
+ return nRet;
+}
+
+
+
+FASTBOOL SwWrtShell::Pop( BOOL bOldCrsr )
+{
+ FASTBOOL bRet = SwCrsrShell::Pop( bOldCrsr );
+ if( bRet && IsSelection() )
+ {
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ fnKillSel = &SwWrtShell::ResetSelect;
+ }
+ return bRet;
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+
+
+
+BOOL SwWrtShell::CanInsert()
+{
+ return (!(IsSelFrmMode() | IsObjSelected() | (GetView().GetDrawFuncPtr() != NULL)));
+}
+
+
+
+ // die Core erzeugt eine Selektion, das SttSelect muss gerufen werden
+void SwWrtShell::NewCoreSelection()
+{
+ SttSelect();
+}
+
+// --------------
+
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.342 2000/09/18 16:06:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.341 2000/08/17 11:36:19 jp
+ remove the SW graphicmanager
+
+ Revision 1.340 2000/08/04 10:54:03 jp
+ Soft-/HardHyphens & HardBlanks changed from attribute to unicode character; remove unused methods
+
+ Revision 1.339 2000/07/04 15:19:25 tl
+ XHyphenator1 => XHyphenator
+
+ Revision 1.338 2000/06/27 17:42:38 jp
+ Bug #76332#: internal SplitNode don't insert a new node before a table
+
+ Revision 1.337 2000/06/26 13:28:29 os
+ InsertDBColumnCntnt removed
+
+ Revision 1.336 2000/05/19 12:58:39 jp
+ use WordSelection class for check chars
+
+ Revision 1.335 2000/05/19 11:00:26 jp
+ Changes for Unicode
+
+ Revision 1.334 2000/04/20 12:51:14 os
+ GetName() returns String&
+
+ Revision 1.333 2000/04/19 11:18:25 os
+ UNICODE
+
+ Revision 1.332 2000/03/30 13:26:18 os
+ UNO III
+
+ Revision 1.331 2000/03/23 07:51:11 os
+ UNO III
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx
new file mode 100644
index 000000000000..9b55eb3b64a3
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtsh2.cxx
@@ -0,0 +1,805 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh2.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx> // define ITEMIDs
+#endif
+
+#ifndef _SFXMACITEM_HXX //autogen
+#include <svtools/macitem.hxx>
+#endif
+#ifndef _SFXFRAME_HXX //autogen
+#include <sfx2/frame.hxx>
+#endif
+#ifndef _SFXDOCINF_HXX //autogen
+#include <sfx2/docinf.hxx>
+#endif
+#ifndef _SFXINIMGR_HXX //autogen
+#include <svtools/iniman.hxx>
+#endif
+#ifndef _MSGBOX_HXX //autogen
+#include <vcl/msgbox.hxx>
+#endif
+#ifndef SVTOOLS_URIHELPER_HXX
+#include <svtools/urihelper.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SFXSTRITEM_HXX
+#include <svtools/stritem.hxx>
+#endif
+#ifndef _SFXDOCFILE_HXX //autogen
+#include <sfx2/docfile.hxx>
+#endif
+#ifndef _SFX_FCONTNR_HXX //autogen
+#include <sfx2/fcontnr.hxx>
+#endif
+#ifndef _SFXDISPATCH_HXX //autogen
+#include <sfx2/dispatch.hxx>
+#endif
+#ifndef _LINKMGR_HXX //autogen
+#include <so3/linkmgr.hxx>
+#endif
+
+#ifndef _FMTINFMT_HXX //autogen
+#include <fmtinfmt.hxx>
+#endif
+#ifndef _FRMATR_HXX
+#include <frmatr.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx> // SET_CURR_SHELL
+#endif
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _DOCSH_HXX
+#include <docsh.hxx>
+#endif
+#ifndef _FLDBAS_HXX
+#include <fldbas.hxx> // Felder
+#endif
+#ifndef _EXPFLD_HXX
+#include <expfld.hxx>
+#endif
+#ifndef _DDEFLD_HXX
+#include <ddefld.hxx>
+#endif
+#ifndef _DOCUFLD_HXX
+#include <docufld.hxx>
+#endif
+#ifndef _REFFLD_HXX
+#include <reffld.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
+#ifndef _NUMRULE_HXX
+#include <numrule.hxx> // Numerierung
+#endif
+#ifndef _DOC_HXX
+#include <doc.hxx>
+#endif
+#ifndef _INPDLG_HXX
+#include <inpdlg.hxx> // Eingabefelder
+#endif
+#ifndef _VIEWOPT_HXX
+#include <viewopt.hxx> // SwViewOptions
+#endif
+#ifndef _FRMFMT_HXX
+#include <frmfmt.hxx> // fuer UpdateTable
+#endif
+#ifndef _SWTABLE_HXX
+#include <swtable.hxx> // fuer UpdateTable
+#endif
+#ifndef _HINTS_HXX
+#include <hints.hxx> // fuer UpdateTable
+#endif
+#ifndef _MDIEXP_HXX
+#include <mdiexp.hxx>
+#endif
+#ifndef _VIEW_HXX
+#include <view.hxx>
+#endif
+#ifndef _SWEVENT_HXX
+#include <swevent.hxx>
+#endif
+#ifndef _POOLFMT_HXX
+#include <poolfmt.hxx>
+#endif
+#ifndef _SECTION_HXX
+#include <section.hxx>
+#endif
+#ifndef _NAVICONT_HXX
+#include <navicont.hxx>
+#endif
+#ifndef _NAVIPI_HXX
+#include <navipi.hxx>
+#endif
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _WRTSH_HRC
+#include <wrtsh.hrc>
+#endif
+
+
+void lcl_LoadUrl( const String& rURL, const String& rTargetFrameName,
+ const String& rReferer, USHORT nFilter, SfxFrameItem& );
+
+
+/*------------------------------------------------------------------------
+ Beschreibung:
+------------------------------------------------------------------------*/
+
+void SwWrtShell::Insert(SwField &rFld)
+{
+ ResetCursorStack();
+ if(!_CanInsert())
+ return;
+ StartAllAction();
+ StartUndo(UNDO_INSERT);
+
+//JP 09.06.97: Wozu die Abpruefung des FeldTypen??
+// Wobei das SETREFFLD kein Feld ist und hier garnicht durchkommt!
+// USHORT nType = rFld.GetTyp()->Which();
+// if(HasSelection() && nType != RES_HIDDENTXTFLD && nType != RES_SETREFFLD)
+ if( HasSelection() )
+ DelRight();
+
+ SwEditShell::Insert(rFld);
+ EndUndo(UNDO_INSERT);
+ EndAllAction();
+}
+
+/*--------------------------------------------------------------------
+ Beschreibung: Felder Update anschmeissen
+ --------------------------------------------------------------------*/
+
+
+
+void SwWrtShell::UpdateInputFlds( SwInputFieldList* pLst, BOOL bOnlyInSel )
+{
+ // ueber die Liste der Eingabefelder gehen und Updaten
+ SwInputFieldList* pTmp = pLst;
+ if( !pTmp )
+ pTmp = new SwInputFieldList( this );
+
+ if (bOnlyInSel)
+ pTmp->RemoveUnselectedFlds();
+
+ pTmp->PushCrsr();
+
+ const USHORT nCnt = pTmp->Count();
+ BOOL bCancel = FALSE;
+ for( USHORT i = 0; i < nCnt && !bCancel; ++i )
+ {
+ pTmp->GotoFieldPos( i );
+ bCancel = StartInputFldDlg( pTmp->GetField( i ), TRUE );
+
+ // Sonst Updatefehler bei Multiselektion:
+ pTmp->GetField( i )->GetTyp()->UpdateFlds();
+ }
+ pTmp->PopCrsr();
+
+ if( !pLst )
+ delete pTmp;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: EingabeDialog fuer ein bestimmtes Feld starten
+ --------------------------------------------------------------------*/
+
+
+
+BOOL SwWrtShell::StartInputFldDlg( SwField* pFld, BOOL bNextButton )
+{
+//JP 14.08.96: Bug 30332 - nach Umbau der modularietaet im SFX, muss jetzt
+// das TopWindow der Application benutzt werden.
+// SwFldInputDlg* pDlg = new SwFldInputDlg( GetWin(), *this, pFld );
+
+ SwFldInputDlg* pDlg = new SwFldInputDlg( NULL, *this, pFld, bNextButton );
+ BOOL bRet = RET_CANCEL == pDlg->Execute();
+
+ delete pDlg;
+ GetWin()->Update();
+ return bRet;
+}
+
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Verzeichnis einfuegen Selektion loeschen
+ --------------------------------------------------------------------*/
+
+
+
+void SwWrtShell::InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
+{
+ if(!_CanInsert())
+ return;
+
+ if(HasSelection())
+ DelRight();
+
+ SwEditShell::InsertTableOf(rTOX, pSet);
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: Verzeichnis Updaten Selektion loeschen
+ --------------------------------------------------------------------*/
+
+BOOL SwWrtShell::UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
+{
+ if(!_CanInsert())
+ return FALSE;
+
+ return SwEditShell::UpdateTableOf(rTOX, pSet);
+}
+
+ // ein Klick aus das angegebene Feld. Der Cursor steht auf diesem.
+ // Fuehre die vor definierten Aktionen aus.
+
+
+void SwWrtShell::ClickToField( const SwField& rFld, USHORT nFilter )
+{
+ bIsInClickToEdit = TRUE;
+ switch( rFld.GetTyp()->Which() )
+ {
+ case RES_JUMPEDITFLD:
+ {
+ USHORT nSlotId = 0;
+ switch( rFld.GetFormat() )
+ {
+ case JE_FMT_TABLE:
+ nSlotId = FN_INSERT_TABLE;
+ break;
+
+ case JE_FMT_FRAME:
+ nSlotId = FN_INSERT_FRAME;
+ break;
+
+ case JE_FMT_GRAPHIC: nSlotId = SID_INSERT_GRAPHIC; break;
+ case JE_FMT_OLE: nSlotId = SID_INSERT_OBJECT; break;
+
+// case JE_FMT_TEXT:
+ }
+
+ Right( TRUE ); // Feld selektieren
+
+ if( nSlotId )
+ {
+ StartUndo( UNDO_START );
+ GetView().GetViewFrame()->GetDispatcher()->Execute( nSlotId,
+ SFX_CALLMODE_SYNCHRON|SFX_CALLMODE_RECORD );
+ EndUndo( UNDO_END );
+ }
+ }
+ break;
+
+ case RES_MACROFLD:
+ {
+ const SwMacroField *pFld = (const SwMacroField*)&rFld;
+ String sLibName(pFld->GetLibName());
+ String sMacroName(pFld->GetMacroName());
+
+ if( sLibName.Len() && sMacroName.Len() )
+ {
+ String sText( rFld.GetPar2() );
+ String sRet( sText );
+ SvxMacro aMacro( sMacroName, sLibName, STARBASIC );
+ ExecMacro( aMacro, &sRet );
+
+ // return Wert veraendert?
+ if( sRet != sText )
+ {
+ StartAllAction();
+ ((SwField&)rFld).SetPar2( sRet );
+ ((SwField&)rFld).GetTyp()->UpdateFlds();
+ EndAllAction();
+ }
+ }
+ }
+ break;
+
+ case RES_GETREFFLD:
+ StartAllAction();
+ SwCrsrShell::GotoRefMark( ((SwGetRefField&)rFld).GetSetRefName(),
+ ((SwGetRefField&)rFld).GetSubType(),
+ ((SwGetRefField&)rFld).GetSeqNo() );
+ EndAllAction();
+ break;
+
+ case RES_INPUTFLD:
+ StartInputFldDlg( (SwField*)&rFld, FALSE );
+ break;
+
+ case RES_SETEXPFLD:
+ if( ((SwSetExpField&)rFld).GetInputFlag() )
+ StartInputFldDlg( (SwField*)&rFld, FALSE );
+ break;
+ }
+
+ bIsInClickToEdit = FALSE;
+}
+
+
+
+void SwWrtShell::ClickToINetAttr( const SwFmtINetFmt& rItem, USHORT nFilter )
+{
+ if( !rItem.GetValue().Len() )
+ return ;
+
+ bIsInClickToEdit = TRUE;
+
+ // erstmal das evt. gesetzte ObjectSelect Macro ausfuehren
+ const SvxMacro* pMac = rItem.GetMacro( SFX_EVENT_MOUSECLICK_OBJECT );
+ if( pMac )
+ {
+ SwCallMouseEvent aCallEvent;
+ aCallEvent.Set( &rItem );
+ GetDoc()->CallEvent( SFX_EVENT_MOUSECLICK_OBJECT, aCallEvent, FALSE );
+ }
+
+ // damit die Vorlagenumsetzung sofort angezeigt wird
+ ::LoadURL( rItem.GetValue(), this, nFilter, &rItem.GetTargetFrame() );
+ bIsInClickToEdit = FALSE;
+}
+
+
+
+BOOL SwWrtShell::ClickToINetGrf( const Point& rDocPt, USHORT nFilter )
+{
+ BOOL bRet = FALSE;
+ String sURL;
+ String sTargetFrameName;
+ const SwFrmFmt* pFnd = IsURLGrfAtPos( rDocPt, &sURL, &sTargetFrameName );
+ if( pFnd && sURL.Len() )
+ {
+ bRet = TRUE;
+ // erstmal das evt. gesetzte ObjectSelect Macro ausfuehren
+ const SvxMacro* pMac = &pFnd->GetMacro().GetMacro( SFX_EVENT_MOUSECLICK_OBJECT );
+ if( pMac )
+ {
+ SwCallMouseEvent aCallEvent;
+ aCallEvent.Set( EVENT_OBJECT_URLITEM, pFnd );
+ GetDoc()->CallEvent( SFX_EVENT_MOUSECLICK_OBJECT, aCallEvent, FALSE );
+ }
+
+ ::LoadURL( sURL, this, nFilter, &sTargetFrameName);
+ }
+ return bRet;
+}
+
+
+void LoadURL( const String& rURL, ViewShell* pVSh, USHORT nFilter,
+ const String *pTargetFrameName )
+{
+ ASSERT( rURL.Len(), "was soll hier geladen werden?" );
+ if( !rURL.Len() )
+ return ;
+
+ // die Shell kann auch 0 sein !!!!!
+ SwWrtShell *pSh = 0;
+ if ( pVSh && pVSh->ISA(SwCrsrShell) )
+ {
+ //Eine CrsrShell ist auch immer eine WrtShell
+ pSh = (SwWrtShell*)pVSh;
+ }
+
+ String sTargetFrame;
+ if( pTargetFrameName && pTargetFrameName->Len() )
+ sTargetFrame = *pTargetFrameName;
+ else if( pSh )
+ sTargetFrame = pSh->GetDoc()->GetInfo()->GetDefaultTarget();
+
+ String sReferer;
+ SfxFrame* pViewFrm = 0;
+ if( pSh )
+ {
+ SwDocShell* pDShell = pSh->GetView().GetDocShell();
+ if( pDShell && pDShell->GetMedium() )
+ sReferer = pDShell->GetMedium()->GetName();
+ pViewFrm = pSh->GetView().GetViewFrame()->GetFrame();
+ }
+
+ SfxFrameItem aView( SID_DOCFRAME, pViewFrm );
+ ::lcl_LoadUrl( rURL, sTargetFrame, sReferer, nFilter,
+ aView );
+}
+
+void lcl_LoadUrl( const String& rURL, const String& rTargetFrameName,
+ const String& rReferer, USHORT nFilter,
+ SfxFrameItem& rView )
+{
+ SfxStringItem aName( SID_FILE_NAME, rURL );
+ SfxStringItem aTargetFrameName( SID_TARGETNAME, rTargetFrameName );
+ SfxStringItem aReferer( SID_REFERER, rReferer );
+
+ SfxBoolItem aNewView( SID_OPEN_NEW_VIEW, FALSE );
+ //#39076# Silent kann lt. SFX entfernt werden.
+// SfxBoolItem aSilent( SID_SILENT, TRUE );
+ SfxBoolItem aReadOnly( SID_BROWSING, TRUE );
+
+ SfxStringItem aFilter( SID_FILTER_NAME, aEmptyStr );
+ switch( nFilter & ~URLLOAD_NEWVIEW )
+ {
+ case URLLOAD_CHOOSEFILTER:
+ aFilter.SetValue( SfxExecutableFilterContainer::GetChooserFilter()
+ ->GetName() );
+ break;
+ case URLLOAD_DOWNLOADFILTER:
+ aFilter.SetValue( SfxExecutableFilterContainer::GetDownloadFilter()
+ ->GetName() );
+ break;
+ }
+
+ if( nFilter & URLLOAD_NEWVIEW )
+ aTargetFrameName.SetValue( String::CreateFromAscii("_blank") );
+
+ ((SfxViewFrame*)rView.GetFrame())->GetDispatcher()->Execute( SID_OPENDOC,
+ SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD,
+ &aName,
+ &aFilter,
+ &aNewView, /*&aSilent,*/ &aReadOnly,
+ &aReferer,
+ &rView, &aTargetFrameName,
+ 0L );
+}
+
+void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk, const DropEvent* pEvt )
+{
+ USHORT nRegionMode;
+ if(pEvt->IsDefaultAction())
+ nRegionMode = rBkmk.GetDefaultDragType();
+ else
+ switch(pEvt->GetAction())
+ {
+ case DROP_COPY: nRegionMode = REGION_MODE_NONE; break;
+ case DROP_MOVE: nRegionMode = REGION_MODE_EMBEDDED; break;
+ default: nRegionMode = REGION_MODE_LINK;
+ }
+ if(nRegionMode == REGION_MODE_NONE)
+ {
+ // Einfuegen
+ String sURL = rBkmk.GetURL();
+ //handelt es sich um ein Sprung innerhalb des akt. Docs?
+ const SwDocShell* pDocShell = GetView().GetDocShell();
+ if(pDocShell->HasName())
+ {
+ USHORT nPos = 0;
+ const String rName = URIHelper::SmartRelToAbs(
+ pDocShell->GetMedium()->GetURLObject().GetURLNoMark());
+
+ if(COMPARE_EQUAL == sURL.CompareTo(rName, rName.Len()))
+ sURL.Erase(0, rName.Len());
+ }
+ SwFmtINetFmt aFmt( sURL, aEmptyStr );
+ InsertURL( aFmt, rBkmk.GetDescription() );
+ }
+ else
+ {
+ SwSection aSection( FILE_LINK_SECTION, GetUniqueSectionName( 0 ) );
+ String aLinkFile( rBkmk.GetURL().GetToken(0, '#') );
+ aLinkFile += cTokenSeperator;
+ aLinkFile += cTokenSeperator;
+ aLinkFile += rBkmk.GetURL().GetToken(1, '#');
+ aSection.SetLinkFileName( aLinkFile );
+ aSection.SetProtect( TRUE );
+ const SwSection* pIns = InsertSection( aSection );
+ if( REGION_MODE_EMBEDDED == nRegionMode && pIns )
+ {
+ aSection = *pIns;
+ aSection.SetLinkFileName( aEmptyStr );
+ aSection.SetType( CONTENT_SECTION );
+ aSection.SetProtect( FALSE );
+
+ // the update of content from linked section at time delete
+ // the undostack. Then the change of the section dont create
+ // any undoobject. - BUG 69145
+ BOOL bDoesUndo = DoesUndo();
+ if( UNDO_INSSECTION != GetUndoIds() )
+ DoUndo( FALSE );
+ ChgSection( GetSectionFmtPos( *pIns->GetFmt() ), aSection );
+ DoUndo( bDoesUndo );
+ }
+ }
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.137 2000/09/18 16:06:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.136 2000/09/07 15:59:36 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.135 2000/08/31 11:31:37 jp
+ add missing include
+
+ Revision 1.134 2000/06/26 13:04:50 os
+ INetURLObject::SmartRelToAbs removed
+
+ Revision 1.133 2000/04/19 11:18:25 os
+ UNICODE
+
+ Revision 1.132 2000/03/03 12:29:37 mib
+ Removed JavaScript
+
+ Revision 1.131 2000/02/11 15:03:35 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.130 1999/10/15 09:58:25 jp
+ Bug #69145#: NavigatorPaste: copy embedded Section without undo
+
+ Revision 1.129 1999/08/17 11:59:18 OS
+ extended indexes: get/set section attributes
+
+
+ Rev 1.128 17 Aug 1999 13:59:18 OS
+ extended indexes: get/set section attributes
+
+ Rev 1.127 27 Apr 1999 16:50:36 JP
+ Bug #65314#: neu: IsJavaScriptEnabled
+
+ Rev 1.126 19 Apr 1999 13:00:42 OS
+ #64960# GetURLObject()->GetURLNoMark statt GetPhysicalName
+
+ Rev 1.125 15 Apr 1999 16:48:32 JP
+ Bug #64841#: LoadURL: URL-Attrs ohne URL ignorieren
+
+ Rev 1.124 12 Oct 1998 10:01:38 OM
+ #57790# Dialog nicht mehr AppModal
+
+ Rev 1.123 01 Jul 1998 16:37:48 JP
+ Bug #51378#: Return String von JavaScript auswerten
+
+ Rev 1.122 19 Jun 1998 18:57:48 JP
+ Bug #51378#: LoadURL CallbackHdl - JavaReturnWert auswerten
+
+ Rev 1.121 19 May 1998 12:45:06 OM
+ SvxMacro-Umstellung
+
+ Rev 1.120 13 Feb 1998 17:46:50 HJS
+ falsche ifdef SOLAR_JAVE aufgeloest
+
+ Rev 1.119 02 Feb 1998 15:04:18 OM
+ #46781# Macrofelder auch ausfuehren, wenn Dateiname mehr als 1 Punkt enthaelt
+
+ Rev 1.118 02 Dec 1997 14:21:40 MA
+ includes
+
+ Rev 1.117 24 Nov 1997 14:35:08 MA
+ includes
+
+ Rev 1.116 03 Nov 1997 14:02:56 MA
+ precomp entfernt
+
+ Rev 1.115 24 Oct 1997 18:30:08 JP
+ ClickToINetGrf: BOOL returnen - ob wirklich eine Grafik getroffen wurde
+
+ Rev 1.114 01 Sep 1997 13:22:00 OS
+ DLL-Umstellung
+
+ Rev 1.113 15 Aug 1997 12:15:42 OS
+ chartar/frmatr/txtatr aufgeteilt
+
+ Rev 1.112 11 Aug 1997 10:54:18 OS
+ paraitem/frmitems/textitem aufgeteilt
+
+ Rev 1.111 08 Aug 1997 17:28:40 OM
+ Headerfile-Umstellung
+
+ Rev 1.110 07 Aug 1997 14:59:36 OM
+ Headerfile-Umstellung
+
+ Rev 1.109 05 Aug 1997 13:40:10 MH
+ chg: header
+
+ Rev 1.108 23 Jul 1997 21:46:28 HJS
+ includes
+
+ Rev 1.107 23 Jul 1997 10:19:04 OM
+ Inputfields in Selektion updaten
+
+ Rev 1.106 27 Jun 1997 17:27:06 JP
+ Bug #38115#: nicht nur Top sondern auch den akt. Frame merken
+
+ Rev 1.105 26 Jun 1997 15:59:24 OS
+ BulletOn jetzt in wrtsh1.cxx
+
+ Rev 1.104 09 Jun 1997 16:21:08 JP
+ ClickINetURL/ClickToINetGrf: falls JavaScript abgeschaltet ist LoadURL trotzdem rufen
+
+ Rev 1.103 09 Jun 1997 15:28:04 NF
+ Define raus, da SfxModalDialog unbekannt
+
+ Rev 1.102 09 Jun 1997 11:47:46 JP
+ InsertFld: Abpruefung auf den FeldTypen entfernt - ueberflussig
+
+ Rev 1.101 23 Apr 1997 14:44:36 OS
+ FrameItem anlegen fuer VA3.0
+
+ Rev 1.100 21 Apr 1997 18:22:12 MA
+ #39076# kein Silent
+
+ Rev 1.99 19 Apr 1997 09:39:32 OS
+ NavigatorPaste: GetPhysicalName am Medium!
+
+ Rev 1.98 15 Apr 1997 15:12:38 JP
+ Bug #37980#: LoadURL - bei Events mit JavaScript immer asynchron callen
+
+ Rev 1.97 11 Apr 1997 08:48:52 MA
+ includes
+
+ Rev 1.96 09 Apr 1997 15:34:40 JP
+ ClickToINetGrf/ClickToINetAttr - handelt das asynchron JavaScript und Laden einer URL
+
+ Rev 1.95 07 Apr 1997 13:47:12 MH
+ chg: header
+
+ Rev 1.94 20 Mar 1997 08:02:40 OS
+ Bookmark nicht mit GetToken(#), sondern mit Compare behandeln
+
+ Rev 1.93 18 Feb 1997 23:29:30 NF
+ SID_FILE_CONVERT wech...
+
+ Rev 1.92 18 Feb 1997 23:26:56 NF
+ SID_FILE_CONVERT wech...
+
+ Rev 1.91 12 Feb 1997 18:22:32 MA
+ chg: LoadURL, Historie auch bei newview erhalten (kopieren)
+
+ Rev 1.90 07 Feb 1997 12:04:18 OS
+ Navigator benutzt eigenes Drag-Format
+
+ Rev 1.89 28 Jan 1997 14:11:10 JP
+ ClickToINet: CallEvent statt ExecMac rufen
+
+ Rev 1.88 16 Jan 1997 09:59:46 MA
+ Umstellung Frame
+
+ Rev 1.87 15 Jan 1997 16:09:00 OM
+ Neue OLE-Dialoge
+
+ Rev 1.86 04 Dec 1996 15:11:22 JP
+ SW_EVENT -> SVX_EVENT/SFX_EVENT
+
+ Rev 1.85 28 Nov 1996 17:15:40 OS
+ ChildWindow testen
+
+ Rev 1.84 19 Nov 1996 16:15:26 OS
+ Navigatorumstellung
+
+ Rev 1.83 06 Nov 1996 10:54:20 MA
+ chg: URL per Dokument; Draw+Calc eingebunden (ifdef)
+
+ Rev 1.82 05 Nov 1996 15:34:12 JP
+ GotoRefMark: Parameter erweitert fuer erweiterte RefMarks
+
+ Rev 1.81 17 Oct 1996 14:45:42 MH
+ Syntax
+
+ Rev 1.80 17 Oct 1996 14:37:08 MH
+ add: include
+
+ Rev 1.79 11 Oct 1996 14:52:58 NF
+ clooks
+
+ Rev 1.78 25 Sep 1996 10:36:46 PL
+ IRIX
+
+ Rev 1.77 05 Sep 1996 16:53:20 OS
+ Tasten fuer NavigatorPaste auswerten
+
+ Rev 1.76 02 Sep 1996 18:43:22 JP
+ INetFeld entfernt
+
+ Rev 1.75 30 Aug 1996 12:40:20 OS
+ InputFldDlg mit Next-Button
+
+ Rev 1.74 29 Aug 1996 09:26:02 OS
+ includes
+
+ Rev 1.73 19 Aug 1996 22:22:24 JP
+ LoadURL: neue View darf auch keinen TargetNamen haben
+
+ Rev 1.72 14 Aug 1996 16:54:54 JP
+ Bug #30332#: am FieldInputWin das TopWindow der Applikation setzen
+
+ Rev 1.71 14 Aug 1996 09:35:02 JP
+ neu: NavigatorPaste - Paste aus dem Navigator ins Doc (Code aus dataex hierher verschoben)
+
+ Rev 1.70 12 Aug 1996 18:10:46 JP
+ LoadURL: das ViewItem darf nicht uebergeben werden
+
+ Rev 1.69 12 Aug 1996 16:56:36 JP
+ neues FilterFlag: neue Ansicht beim LoadURL oeffnen
+
+ Rev 1.68 08 Aug 1996 10:04:02 JP
+ neu: ClickToINetAttr - entspricht dem ClickToFld
+
+ Rev 1.67 29 Jul 1996 11:06:10 JP
+ ueberfluessige Methode entfernt
+
+ Rev 1.66 23 Jul 1996 19:45:24 MIB
+ Default-Target-Frame aus Dokinfo holen
+
+ Rev 1.65 19 Jul 1996 15:38:12 JP
+ Umstellung Numerierung
+
+ Rev 1.64 26 Jun 1996 15:22:58 OS
+ Aufruf von Dispatcher.Execute an 324 angepasst
+
+*************************************************************************/
+
+
diff --git a/sw/source/ui/wrtsh/wrtsh3.cxx b/sw/source/ui/wrtsh/wrtsh3.cxx
new file mode 100644
index 000000000000..ec93e1c6bf03
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtsh3.cxx
@@ -0,0 +1,468 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh3.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _SVX_SVXIDS_HRC //autogen
+#include <svx/svxids.hrc>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX //autogen
+#include <sfx2/bindings.hxx>
+#endif
+#ifndef _SVDMARK_HXX //autogen
+#include <svx/svdmark.hxx>
+#endif
+#ifndef _SVDVIEW_HXX //autogen
+#include <svx/svdview.hxx>
+#endif
+#ifndef _SVX_FMGLOB_HXX
+#include <svx/fmglob.hxx>
+#endif
+#ifndef _SVDOUNO_HXX //autogen
+#include <svx/svdouno.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FORM_FORMBUTTONTYPE_HPP_
+#include <com/sun/star/form/FormButtonType.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSETINFO_HPP_
+#include <com/sun/star/beans/XPropertySetInfo.hpp>
+#endif
+#ifndef _SVX_HTMLMODE_HXX
+#include <svx/htmlmode.hxx>
+#endif
+#ifndef _URLOBJ_HXX //autogen
+#include <tools/urlobj.hxx>
+#endif
+#ifndef _SFXVIEWFRM_HXX
+#include <sfx2/viewfrm.hxx>
+#endif
+
+
+#include "wrtsh.hxx"
+#include "view.hxx"
+#include "bookmrk.hxx"
+#include "doc.hxx"
+#include "wrtsh.hrc"
+
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+
+using namespace ::com::sun::star;
+using namespace ::rtl;
+
+extern sal_Bool bNoInterrupt; // in mainwn.cxx
+
+FASTBOOL SwWrtShell::MoveBookMark( BookMarkMove eFuncId,
+ sal_uInt16 nPos,
+ sal_Bool bStart )
+{
+//JP 08.03.96: die Wizards brauchen die Selektion !!
+// EndSelect();
+ (this->*fnKillSel)( 0, sal_False );
+
+ FASTBOOL bRet = sal_True;
+ switch(eFuncId)
+ {
+ case BOOKMARK_INDEX:bRet = SwCrsrShell::GotoBookmark( nPos );break;
+ case BOOKMARK_NEXT: bRet = SwCrsrShell::GoNextBookmark();break;
+ case BOOKMARK_PREV: bRet = SwCrsrShell::GoPrevBookmark();break;
+ }
+
+ if( bRet && IsSelFrmMode() )
+ {
+ UnSelectFrm();
+ LeaveSelFrmMode();
+ }
+ if( IsSelection() )
+ {
+ fnKillSel = &SwWrtShell::ResetSelect;
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ }
+ return bRet;
+}
+
+
+/*--------------------------------------------------------------------
+ Beschreibung: FontWork-Slots invalidieren
+ --------------------------------------------------------------------*/
+
+
+void SwWrtShell::DrawSelChanged(SdrView* pView)
+{
+ static sal_uInt16 __READONLY_DATA aInval[] =
+ {
+ SID_ATTR_FILL_STYLE, SID_ATTR_FILL_COLOR, SID_ATTR_LINE_STYLE,
+ SID_ATTR_LINE_WIDTH, SID_ATTR_LINE_COLOR, 0
+ };
+
+ GetView().GetViewFrame()->GetBindings().Invalidate(aInval);
+
+ sal_Bool bOldVal = bNoInterrupt;
+ bNoInterrupt = sal_True; // Trick, um AttrChangedNotify ueber Timer auszufuehren
+ GetView().AttrChangedNotify(this);
+ bNoInterrupt = bOldVal;
+}
+
+FASTBOOL SwWrtShell::GotoBookmark( const String& rName )
+{
+ sal_uInt16 nPos = FindBookmark( rName );
+ if( USHRT_MAX == nPos )
+ return sal_False;
+
+ return MoveBookMark( BOOKMARK_INDEX, nPos );
+}
+
+
+FASTBOOL SwWrtShell::GotoBookmark( sal_uInt16 nPos )
+{
+ return MoveBookMark( BOOKMARK_INDEX, nPos );
+}
+
+
+FASTBOOL SwWrtShell::GoNextBookmark()
+{
+ return MoveBookMark( BOOKMARK_NEXT );
+}
+
+
+FASTBOOL SwWrtShell::GoPrevBookmark()
+{
+ return MoveBookMark( BOOKMARK_PREV );
+}
+
+
+void SwWrtShell::ExecMacro( const SvxMacro& rMacro, String* pRet, SbxArray* pArgs )
+{
+ GetDoc()->ExecMacro( rMacro, pRet, pArgs );
+}
+
+
+sal_uInt16 SwWrtShell::CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEvent,
+ sal_Bool bChkPtr, SbxArray* pArgs,
+ const Link* pCallBack )
+{
+ return GetDoc()->CallEvent( nEvent, rCallEvent, bChkPtr, pArgs, pCallBack );
+}
+
+
+ // fall ein util::URL-Button selektiert ist, dessen util::URL returnen, ansonsten
+ // einen LeerString
+sal_Bool SwWrtShell::GetURLFromButton( String& rURL, String& rDescr ) const
+{
+ sal_Bool bRet = sal_False;
+ const SdrView *pDView = GetDrawView();
+ if( pDView )
+ {
+ // Ein Fly ist genau dann erreichbar, wenn er selektiert ist.
+ const SdrMarkList &rMarkList = pDView->GetMarkList();
+
+ if (rMarkList.GetMark(0))
+ {
+ SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, rMarkList.GetMark(0)->GetObj());
+ if (pUnoCtrl && FmFormInventor == pUnoCtrl->GetObjInventor())
+ {
+ uno::Reference< awt::XControlModel > xControlModel = pUnoCtrl->GetUnoControlModel();
+
+ ASSERT( xControlModel.is(), "UNO-Control ohne Model" );
+ if( !xControlModel.is() )
+ return bRet;
+
+ uno::Reference< beans::XPropertySet > xPropSet(xControlModel, uno::UNO_QUERY);
+
+ uno::Any aTmp;
+
+ form::FormButtonType eButtonType = form::FormButtonType_URL;
+ uno::Reference< beans::XPropertySetInfo > xInfo = xPropSet->getPropertySetInfo();
+ if(xInfo->hasPropertyByName( C2U("ButtonType") ))
+ {
+ aTmp = xPropSet->getPropertyValue( C2U("ButtonType") );
+ if( eButtonType == *((form::FormButtonType*)aTmp.getValue()))
+ {
+ // Label
+ aTmp = xPropSet->getPropertyValue( C2U("Label") );
+
+ if( aTmp.getValueType() == ::getCppuType((OUString*)0))
+ {
+ OUString uTmp(*(OUString*)aTmp.getValue());
+ if(uTmp.getLength())
+ rDescr = String(uTmp);
+ }
+
+ // util::URL
+ aTmp = xPropSet->getPropertyValue( C2U("TargetURL") );
+ if( aTmp.getValueType() == ::getCppuType((const OUString*)0))
+ {
+ OUString uTmp(*(OUString*)aTmp.getValue());
+ if(uTmp.getLength())
+ rURL = String(uTmp);
+ }
+ bRet = sal_True;
+ }
+ }
+ }
+ }
+ }
+
+ return bRet;
+}
+
+
+ // falls ein util::URL-Button selektiert ist, dessen util::URL returnen, ansonsten
+ // einen LeerString
+sal_Bool SwWrtShell::SetURLToButton( const String& rURL, const String& rDescr )
+{
+ sal_Bool bRet = sal_False;
+ const SdrView *pDView = GetDrawView();
+ if( pDView )
+ {
+ // Ein Fly ist genau dann erreichbar, wenn er selektiert ist.
+ const SdrMarkList &rMarkList = pDView->GetMarkList();
+ if (rMarkList.GetMark(0))
+ {
+ SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, rMarkList.GetMark(0)->GetObj());
+ if (pUnoCtrl && FmFormInventor == pUnoCtrl->GetObjInventor())
+ {
+ uno::Reference< awt::XControlModel > xControlModel = pUnoCtrl->GetUnoControlModel();
+
+ ASSERT( xControlModel.is(), "UNO-Control ohne Model" );
+ if( !xControlModel.is() )
+ return bRet;
+
+ uno::Reference< beans::XPropertySet > xPropSet(xControlModel, uno::UNO_QUERY);
+
+ uno::Any aTmp;
+
+ // Darf man eine util::URL an dem Objekt setzen?
+ uno::Reference< beans::XPropertySetInfo > xPropInfoSet = xPropSet->getPropertySetInfo();
+ beans::Property aProp = xPropInfoSet->getPropertyByName( C2U("TargetURL") );
+ if (aProp.Name.len())
+ {
+ // Ja!
+ aTmp <<= OUString(rDescr);
+ xPropSet->setPropertyValue( C2U("Label"), aTmp );
+
+ aTmp <<= OUString(rURL);
+ xPropSet->setPropertyValue( C2U("TargetURL"), aTmp );
+
+
+ form::FormButtonType eButtonType = form::FormButtonType_URL;
+ aTmp.setValue( &eButtonType, ::getCppuType((form::FormButtonType*)0));
+ xPropSet->setPropertyValue( C2U("ButtonType"), aTmp );
+ }
+ }
+ }
+ }
+
+ return bRet;
+}
+
+
+/*-------------------------------------------------------------------------
+ $Log: not supported by cvs2svn $
+ Revision 1.65 2000/09/18 16:06:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.64 2000/09/07 15:59:36 os
+ change: SFX_DISPATCHER/SFX_BINDINGS removed
+
+ Revision 1.63 2000/05/16 09:15:15 os
+ project usr removed
+
+ Revision 1.62 2000/04/19 11:18:25 os
+ UNICODE
+
+ Revision 1.61 2000/03/23 07:51:11 os
+ UNO III
+
+ Revision 1.60 2000/02/11 15:03:40 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.59 1999/11/19 16:40:25 os
+ modules renamed
+
+ Revision 1.58 1999/02/17 06:46:48 OS
+ #61990# Property vor dem Aufruf auf Existenz pruefen
+
+
+ Rev 1.57 17 Feb 1999 07:46:48 OS
+ #61990# Property vor dem Aufruf auf Existenz pruefen
+
+ Rev 1.56 27 Jan 1999 09:59:54 OS
+ #56371# TF_ONE51
+
+ Rev 1.55 24 Nov 1998 17:01:30 OM
+ #59654# GPF durch Assertion behoben
+
+ Rev 1.54 18 Nov 1998 16:43:22 OM
+ #58898# Kein Statusupdate im SFX-Update
+
+ Rev 1.53 02 Oct 1998 16:17:12 OM
+ #57349# Shellwechsel nach Controlselektion durch Formularnavigator
+
+ Rev 1.52 10 Jul 1998 15:31:28 OM
+ Clipboard-Anbindung fuer util::URL-Button
+
+ Rev 1.51 09 Jun 1998 15:34:36 OM
+ VC-Controls entfernt
+
+ Rev 1.50 04 May 1998 18:00:18 JP
+ Bug #49993#: IsSelOver darf nicht immer den Cursor verschieben; GotoBookmark mit ReturntWert
+
+ Rev 1.49 29 Nov 1997 15:15:06 MA
+ includes
+
+ Rev 1.48 24 Nov 1997 14:35:08 MA
+ includes
+
+ Rev 1.47 01 Sep 1997 13:22:00 OS
+ DLL-Umstellung
+
+ Rev 1.46 29 Jul 1997 17:09:48 TJ
+ include VCURLButton
+
+ Rev 1.45 02 May 1997 20:45:48 NF
+ includes...
+
+ Rev 1.44 09 Apr 1997 08:30:52 NF
+ includes...
+
+ Rev 1.43 07 Apr 1997 17:02:30 JP
+ CallEvent: Callback als weiteren Parameter
+
+ Rev 1.42 04 Apr 1997 16:51:34 HJS
+ includes
+
+ Rev 1.41 18 Feb 1997 17:08:08 JP
+ CallEvent/ExecMacro: zusaetzlich Parameter fuers Basic
+
+ Rev 1.40 22 Jan 1997 11:55:56 MA
+ opt: bSelection entfernt
+
+ Rev 1.39 09 Dec 1996 15:05:18 JP
+ CallEvent: Parameter geaendert
+
+ Rev 1.38 28 Nov 1996 20:28:44 JP
+ Bug #33859#: CallEvent - Object muss ggfs. ueberprueft werden
+
+ Rev 1.37 23 Nov 1996 16:44:38 JP
+ neu: CallEvent - Event ans Basic oder script::JavaScript weitergeben
+
+ Rev 1.36 21 Nov 1996 18:22:08 JP
+ ExecMacro aus der WrtShell ins SwDoc verschoben
+
+ Rev 1.35 19 Nov 1996 16:06:00 NF
+ defines...
+
+ Rev 1.34 08 Nov 1996 12:29:38 HJS
+ include w.g. positivdefine
+
+ Rev 1.33 10 Oct 1996 15:17:42 HJS
+ clooks
+
+ Rev 1.32 13 Sep 1996 18:10:48 JP
+ neu: SetURLToButton - util::URL am util::URL-Button setzen
+
+ Rev 1.31 29 Aug 1996 09:25:54 OS
+ includes
+
+ Rev 1.30 07 Aug 1996 18:24:20 HJS
+ clooks
+
+ Rev 1.29 27 Jun 1996 11:14:10 NF
+ CLOOKS
+
+ Rev 1.28 17 Jun 1996 13:34:00 TRI
+ CLOOKS
+
+ Rev 1.27 13 Jun 1996 15:43:34 MA
+ split sihxx
+
+ Rev 1.26 06 Jun 1996 15:40:14 HJS
+ alte defs raus, neue rein...
+
+ Rev 1.25 05 Jun 1996 15:33:00 JP
+ ExecMacro: optional einen ErgebnisString erfragen
+
+ Rev 1.24 05 Jun 1996 15:24:46 OS
+ clook-defines hinter hdrstop
+
+ Rev 1.23 05 Jun 1996 12:01:44 OV
+ VCBrowser Umstellung
+
+ Rev 1.22 10 May 1996 15:55:32 OS
+ GotoBookmark markiert jetzt immer bug #27690#
+
+ Rev 1.21 08 May 1996 12:59:40 OS
+ MoveBookmark mit Start-Flag
+
+ -------------------------------------------------------------------------*/
diff --git a/sw/source/ui/wrtsh/wrtsh4.cxx b/sw/source/ui/wrtsh/wrtsh4.cxx
new file mode 100644
index 000000000000..a151640e3449
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtsh4.cxx
@@ -0,0 +1,289 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtsh4.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#include "wrtsh.hxx"
+
+
+/*
+* private Methoden, die den Cursor ueber Suchen bewegen. Das
+* Aufheben der Selektion muss auf der Ebene darueber erfolgen.
+*/
+
+/*
+* Der Anfang eines Wortes ist das Folgen eines nicht-
+* Trennzeichens auf Trennzeichen. Ferner das Folgen von
+* nicht-Satztrennern auf Satztrenner. Der Absatzanfang ist
+* ebenfalls Wortanfang.
+*/
+
+
+FASTBOOL SwWrtShell::_SttWrd()
+{
+ if ( IsSttPara() )
+ return 1;
+ /*
+ * temporaeren Cursor ohne Selektion erzeugen
+ */
+ Push();
+ ClearMark();
+ if( !GoStartWord() )
+ // nicht gefunden --> an den Absatzanfang
+ SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ ClearMark();
+ // falls vorher Mark gesetzt war, zusammenfassen
+ Combine();
+ return 1;
+}
+/*
+ * Das Ende eines Wortes ist das Folgen von Trennzeichen auf
+ * nicht-Trennzeichen. Unter dem Ende eines Wortes wird
+ * ebenfalls die Folge von Worttrennzeichen auf Interpunktions-
+ * zeichen verstanden. Das Absatzende ist ebenfalls Wortende.
+ */
+
+
+
+FASTBOOL SwWrtShell::_EndWrd()
+{
+ if ( IsEndWrd() )
+ return 1;
+ // temporaeren Cursor ohne Selektion erzeugen
+ Push();
+ ClearMark();
+ if( !GoEndWord() )
+ // nicht gefunden --> an das Absatz Ende
+ SwCrsrShell::MovePara(fnParaCurr, fnParaEnd);
+ ClearMark();
+ // falls vorher Mark gesetzt war, zusammenfassen
+ Combine();
+ return 1;
+}
+
+
+
+FASTBOOL SwWrtShell::_NxtWrd()
+{
+ if( IsEndPara() ) // wenn schon am Ende, dann naechsten ???
+ {
+ if(!SwCrsrShell::Right()) // Document - Ende ??
+ {
+ Pop( FALSE );
+ return 0L;
+ }
+ return 1;
+ }
+ Push();
+ ClearMark();
+ if( !GoNextWord() )
+ // nicht gefunden --> das AbsatzEnde ist Ende vom Wort
+ SwCrsrShell::MovePara( fnParaCurr, fnParaEnd );
+ ClearMark();
+ Combine();
+ return 1;
+}
+
+
+
+FASTBOOL SwWrtShell::_PrvWrd()
+{
+ if(IsSttPara())
+ { // wenn schon am Anfang, dann naechsten ???
+ if(!SwCrsrShell::Left())
+ { // Document - Anfang ??
+ Pop( FALSE );
+ return 0;
+ }
+ return 1;
+ }
+ Push();
+ ClearMark();
+ if( !GoPrevWord() )
+ // nicht gefunden --> an den Absatz Anfang
+ SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ ClearMark();
+ Combine();
+ return 1;
+}
+
+
+
+FASTBOOL SwWrtShell::_FwdSentence()
+{
+ Push();
+ ClearMark();
+ if(!SwCrsrShell::Right())
+ {
+ Pop(FALSE);
+ return 0;
+ }
+ if( !GoNextSentence() && !IsEndPara() )
+ SwCrsrShell::MovePara(fnParaCurr, fnParaEnd);
+
+ ClearMark();
+ Combine();
+ return 1;
+}
+
+
+
+FASTBOOL SwWrtShell::_BwdSentence()
+{
+ Push();
+ ClearMark();
+ if(!SwCrsrShell::Left())
+ {
+ Pop(FALSE);
+ return 0;
+ }
+ if(IsSttPara())
+ {
+ Pop();
+ return 1;
+ }
+ if( !GoPrevSentence() && !IsSttPara() )
+ // nicht gefunden --> an den Absatz Anfang
+ SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ ClearMark();
+ Combine();
+ return 1;
+}
+
+
+FASTBOOL SwWrtShell::_FwdPara()
+{
+ Push();
+ ClearMark();
+ if(!SwCrsrShell::Right())
+ {
+ Pop(FALSE);
+ return 0;
+ }
+ SwCrsrShell::Left();
+ SwCrsrShell::MovePara(fnParaNext, fnParaStart);
+
+ ClearMark();
+ Combine();
+ return 1;
+}
+
+
+FASTBOOL SwWrtShell::_BwdPara()
+{
+ Push();
+ ClearMark();
+ if(!SwCrsrShell::Left())
+ {
+ Pop(FALSE);
+ return 0;
+ }
+ SwCrsrShell::Right();
+ if(!IsSttOfPara())
+ SttPara();
+ SwCrsrShell::MovePara(fnParaPrev, fnParaStart);
+
+ ClearMark();
+ Combine();
+ return 1;
+}
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.8 2000/09/18 16:06:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.7 1998/07/13 08:58:02 JP
+ Bug #52635#: _Fwd/_BwdSentence: End-/SttPara beachten
+
+
+ Rev 1.6 13 Jul 1998 10:58:02 JP
+ Bug #52635#: _Fwd/_BwdSentence: End-/SttPara beachten
+
+ Rev 1.5 24 Nov 1997 14:35:04 MA
+ includes
+
+ Rev 1.4 03 Nov 1997 14:02:54 MA
+ precomp entfernt
+
+ Rev 1.3 29 Aug 1996 09:25:56 OS
+ includes
+
+ Rev 1.2 07 Jun 1996 09:14:06 OS
+ Spruenge zum vorherigen/folgenden Absatz: auch bei leerem Absatz richtig springen Bug #28382#
+
+ Rev 1.1 14 May 1996 13:35:32 HJS
+ wer braucht schon includes...
+
+ Rev 1.0 14 May 1996 13:29:20 HJS
+ aus wrtsh1 w.g. clooks
+
+ Rev 1.0 12 May 1996 12:41:56 HJS
+ clooks
+
+*************************************************************************/
+
+
+
diff --git a/sw/source/ui/wrtsh/wrtundo.cxx b/sw/source/ui/wrtsh/wrtundo.cxx
new file mode 100644
index 000000000000..4de9cbf3ae3e
--- /dev/null
+++ b/sw/source/ui/wrtsh/wrtundo.cxx
@@ -0,0 +1,246 @@
+/*************************************************************************
+ *
+ * $RCSfile: wrtundo.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _TOOLS_RESID_HXX
+#include <tools/resid.hxx>
+#endif
+#ifndef _SFXAPP_HXX //autogen
+#include <sfx2/app.hxx>
+#endif
+
+#ifndef _WRTSH_HXX
+#include <wrtsh.hxx>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx> // fuer Undo-Ids
+#endif
+
+#ifndef _WRTSH_HRC
+#include <wrtsh.hrc>
+#endif
+#include <sfx2/sfx.hrc>
+
+
+// Undo beendet alle Modi. Falls eine Selektion durch das Undo entstanden
+// ist, muss die fuer die weiteren Aktionen beruecksichtigt werden.
+
+
+void SwWrtShell::Do( DoType eDoType )
+{
+ StartAllAction();
+ switch( eDoType )
+ {
+ case UNDO:
+ // Modi zuruecksetzen
+ EnterStdMode();
+ SwEditShell::Undo(0);
+ break;
+ case REDO:
+ // Modi zuruecksetzen
+ EnterStdMode();
+ SwEditShell::Redo();
+ break;
+ case REPEAT:
+ SwEditShell::Repeat( 1 /*Anzahl!*/ );
+ break;
+ }
+ EndAllAction();
+
+ const FASTBOOL bFrmSelected = IsFrmSelected() || IsObjSelected();
+ if ( IsSelection() )
+ {
+ if ( bFrmSelected )
+ UnSelectFrm();
+
+ // Funktionspointer fuer das Aufheben der Selektion setzen
+ // bei Cursor setzen
+ fnKillSel = &SwWrtShell::ResetSelect;
+ fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ }
+ else if ( bFrmSelected )
+ EnterSelFrmMode();
+ else if( (CNT_GRF | CNT_OLE ) & GetCntType() )
+ {
+ SelectObj( GetCharRect().Pos() );
+ EnterSelFrmMode();
+ }
+
+ // Bug 32918: nach loeschen der Numerierung bleibt die Obj. Leiste stehen
+ // Warum wird hier nicht immer ein CallChgLink gerufen?
+ CallChgLnk();
+}
+
+
+String SwWrtShell::GetDoString( DoType eDoType ) const
+{
+ String aStr;
+ USHORT nId = 0, nResStr;
+ switch( eDoType )
+ {
+ case UNDO:
+ nResStr = STR_UNDO;
+ nId = GetUndoIds( &aStr );
+ break;
+ case REDO:
+ nResStr = STR_REDO;
+ nId = GetRedoIds( &aStr );
+ break;
+ }
+
+ if( UNDO_END < nId )
+ {
+ aStr.Insert( String(ResId( nResStr, SFX_APP()->GetSfxResManager() )), 0 );
+ if( UNDO_DRAWUNDO != nId )
+ aStr += SW_RESSTR( UNDO_BASE + nId );
+ }
+ return aStr;
+}
+
+
+String SwWrtShell::GetRepeatString() const
+{
+ String aStr;
+ USHORT nId = GetRepeatIds( &aStr );
+ if( UNDO_END < nId )
+ {
+ aStr.Insert( ResId( STR_REPEAT, SFX_APP()->GetSfxResManager()), 0 );
+ if( UNDO_DRAWUNDO != nId )
+ aStr += SW_RESSTR( UNDO_BASE + nId );
+ }
+ return aStr;
+}
+
+/*************************************************************************
+
+ $Log: not supported by cvs2svn $
+ Revision 1.53 2000/09/18 16:06:27 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.52 2000/07/27 21:01:41 jp
+ Bug #76923#: Do - clamp the enterstdmode and Undo/Redo/Repeat call
+
+ Revision 1.51 2000/03/03 15:17:06 os
+ StarView remainders removed
+
+ Revision 1.50 1998/04/15 14:35:34 OS
+ STR_UNDO/REDO/REPEAT aus dem Sfx
+
+
+ Rev 1.49 15 Apr 1998 16:35:34 OS
+ STR_UNDO/REDO/REPEAT aus dem Sfx
+
+ Rev 1.48 24 Nov 1997 14:35:02 MA
+ includes
+
+ Rev 1.47 03 Nov 1997 14:02:56 MA
+ precomp entfernt
+
+ Rev 1.46 22 Jan 1997 11:55:56 MA
+ opt: bSelection entfernt
+
+ Rev 1.45 11 Nov 1996 10:18:48 MA
+ ResMgr
+
+ Rev 1.44 31 Oct 1996 18:32:30 JP
+ Bug #32918#: nach Undo der View sagen, das sich was getan hat
+
+ Rev 1.43 29 Aug 1996 09:25:56 OS
+ includes
+
+ Rev 1.42 24 Nov 1995 16:59:06 OM
+ PCH->PRECOMPILED
+
+ Rev 1.41 19 Sep 1995 19:11:52 JP
+ Bug 19431: Repeat funkt. wieder
+
+ Rev 1.40 12 Sep 1995 17:59:32 JP
+ Bug19137: vor Undo den Cursor in den StandardMode setzen
+
+ Rev 1.39 28 Aug 1995 15:59:40 MA
+ Renovierung: IDL, Shells, Textshell-Doktrin aufgegeben
+
+ Rev 1.38 22 Aug 1995 17:30:04 JP
+ GetUndo-/-Redo-/-RepeatIds: optional mit String-Ptr - DrawUndo-Objecte erzeuge die Strings selbst
+
+ Rev 1.37 15 Aug 1995 19:52:20 JP
+ Nach Undo/Redo kann der Cursor in OLE oder GRF stehen, selektieren dann den Frame
+
+ Rev 1.36 27 Apr 1995 13:14:16 AMA
+ Fix (JP): ResId-Ueberpruef. bei Undo
+
+ Rev 1.35 23 Feb 1995 17:51:58 MA
+ Rudimentaer Undo/Redo fuer Zeichenobjekte.
+
+ Rev 1.34 08 Feb 1995 23:36:12 ER
+ undo.hxx -> swundo.hxx wegen solar undo.hxx
+
+ Rev 1.33 08 Feb 1995 19:01:30 JP
+ UI-UndoIds ins undo.hxx verschoben
+
+*************************************************************************/
+
+